Skip to content

Commit 118478d

Browse files
authored
feat: morph-modal-kit (#17)
1 parent 3389b13 commit 118478d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1377
-360
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- [@nativescript/flutter](packages/flutter/README.md)
22
- [@nativescript/ionic-portals](packages/ionic-portals/README.md)
33
- [@nativescript/jetpack-compose](packages/jetpack-compose/README.md)
4+
- [@nativescript/morph-modal-kit](packages/morph-modal-kit/README.md)
45
- [@nativescript/rive](packages/rive/README.md)
56
- [@nativescript/swift-ui](packages/swift-ui/README.md)
67
- [@nativescript/ui-charts](packages/ui-charts/README.md)

apps/demo-angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"main": "./src/main.ts",
33
"dependencies": {
44
"@nativescript/core": "*",
5-
"@nativescript/rive": "file:../../dist/packages/rive",
5+
"@nativescript/morph-modal-kit": "file:../../dist/packages/morph-modal-kit",
66
"@nativescript/flutter": "file:../../dist/packages/flutter",
77
"@nativescript/ionic-portals": "file:../../dist/packages/ionic-portals",
88
"@nativescript/jetpack-compose": "file:../../dist/packages/jetpack-compose",
9+
"@nativescript/rive": "file:../../dist/packages/rive",
910
"@nativescript/swift-ui": "file:../../dist/packages/swift-ui",
1011
"@nativescript/ui-charts": "file:../../dist/packages/ui-charts"
1112
},

apps/demo-angular/src/app-routing.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const routes: Routes = [
1010
{ path: 'flutter', loadChildren: () => import('./plugin-demos/flutter.module').then((m) => m.FlutterModule) },
1111
{ path: 'ionic-portals', loadChildren: () => import('./plugin-demos/ionic-portals.module').then((m) => m.IonicPortalsModule) },
1212
{ path: 'jetpack-compose', loadChildren: () => import('./plugin-demos/jetpack-compose.module').then((m) => m.JetpackComposeModule) },
13+
{ path: 'morph-modal-kit', loadChildren: () => import('./plugin-demos/morph-modal-kit.module').then((m) => m.MorphModalKitModule) },
1314
{ path: 'rive', loadChildren: () => import('./plugin-demos/rive.module').then((m) => m.RiveModule) },
1415
{ path: 'swift-ui', loadChildren: () => import('./plugin-demos/swift-ui.module').then((m) => m.SwiftUiModule) },
1516
{ path: 'ui-charts', loadChildren: () => import('./plugin-demos/ui-charts.module').then((m) => m.UiChartsModule) },

apps/demo-angular/src/home.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export class HomeComponent {
1515
{
1616
name: 'jetpack-compose',
1717
},
18+
{
19+
name: 'morph-modal-kit',
20+
},
1821
{
1922
name: 'rive',
2023
},
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="morph-modal-kit" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test morph-modal-kit" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedMorphModalKit } from '@demo/shared';
3+
import {} from '@nativescript/morph-modal-kit';
4+
5+
@Component({
6+
selector: 'demo-morph-modal-kit',
7+
templateUrl: 'morph-modal-kit.component.html',
8+
})
9+
export class MorphModalKitComponent {
10+
demoShared: DemoSharedMorphModalKit;
11+
12+
constructor(private _ngZone: NgZone) {}
13+
14+
ngOnInit() {
15+
this.demoShared = new DemoSharedMorphModalKit();
16+
}
17+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3+
import { MorphModalKitComponent } from './morph-modal-kit.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: MorphModalKitComponent }])],
7+
declarations: [MorphModalKitComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class MorphModalKitModule {}

apps/demo-angular/tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
"paths": {
55
"~/*": ["src/*"],
66
"@demo/shared": ["tools/demo/index.ts"],
7-
"@nativescript/*": ["../../dist/packages/*"]
7+
"@nativescript/*": ["../../dist/packages/*"],
8+
"@nativescript/morph-modal-kit": ["../../packages/morph-modal-kit/index.d.ts"],
9+
"@nativescript/flutter": ["../../packages/flutter/index.d.ts"],
10+
"@nativescript/ionic-portals": ["../../packages/ionic-portals/index.d.ts"],
11+
"@nativescript/jetpack-compose": ["../../packages/jetpack-compose/index.d.ts"],
12+
"@nativescript/rive": ["../../packages/rive/index.d.ts"],
13+
"@nativescript/swift-ui": ["../../packages/swift-ui/index.d.ts"],
14+
"@nativescript/ui-charts": ["../../packages/ui-charts/index.d.ts"]
815
}
916
},
1017
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],

apps/demo/nativescript.config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,4 @@ export default {
1717
script: '../../tools/scripts/before-prepare.js',
1818
},
1919
],
20-
ios: {
21-
SPMPackages: [
22-
{
23-
name: 'RiveRuntime',
24-
libs: ['RiveRuntime'],
25-
repositoryURL: 'https://github.com/rive-app/rive-ios.git',
26-
version: '5.10.0',
27-
},
28-
],
29-
},
3020
} as NativeScriptConfig;

apps/demo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"repository": "<fill-your-repository-here>",
66
"dependencies": {
77
"@nativescript/core": "*",
8-
"@nativescript/rive": "file:../../packages/rive",
8+
"@nativescript/morph-modal-kit": "file:../../packages/morph-modal-kit",
99
"@nativescript/flutter": "file:../../packages/flutter",
1010
"@nativescript/ionic-portals": "file:../../packages/ionic-portals",
1111
"@nativescript/jetpack-compose": "file:../../packages/jetpack-compose",
12+
"@nativescript/rive": "file:../../packages/rive",
1213
"@nativescript/swift-ui": "file:../../packages/swift-ui",
1314
"@nativescript/ui-charts": "file:../../packages/ui-charts"
1415
},

0 commit comments

Comments
 (0)