@nativescript/template-drawer-navigation-ng 8.0.3 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App_Resources/Android/src/main/AndroidManifest.xml +5 -2
- package/hooks/after-createProject/after-createProject.js +0 -1
- package/package.json +18 -18
- package/src/app/app.component.html +3 -1
- package/src/app/browse/browse.component.html +5 -5
- package/src/app/featured/featured.component.html +5 -5
- package/src/app/home/home.component.html +5 -5
- package/src/app/search/search.component.html +5 -5
- package/src/app/settings/settings.component.html +5 -5
- package/src/main.ts +6 -4
- package/src/polyfills.ts +20 -0
- package/tsconfig.json +2 -2
|
@@ -20,13 +20,16 @@
|
|
|
20
20
|
android:allowBackup="true"
|
|
21
21
|
android:icon="@mipmap/ic_launcher"
|
|
22
22
|
android:label="@string/app_name"
|
|
23
|
-
android:theme="@style/AppTheme"
|
|
23
|
+
android:theme="@style/AppTheme"
|
|
24
|
+
android:hardwareAccelerated="true">
|
|
24
25
|
|
|
25
26
|
<activity
|
|
26
27
|
android:name="com.tns.NativeScriptActivity"
|
|
27
28
|
android:label="@string/title_activity_kimera"
|
|
28
29
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
|
|
29
|
-
android:theme="@style/LaunchScreenTheme"
|
|
30
|
+
android:theme="@style/LaunchScreenTheme"
|
|
31
|
+
android:hardwareAccelerated="true"
|
|
32
|
+
android:launchMode="singleTask">
|
|
30
33
|
|
|
31
34
|
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
|
|
32
35
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "src/main.ts",
|
|
4
4
|
"displayName": "Navigation Drawer",
|
|
5
5
|
"templateType": "App template",
|
|
6
|
-
"version": "8.
|
|
6
|
+
"version": "8.1.1",
|
|
7
7
|
"description": "Side navigation template",
|
|
8
8
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
9
9
|
"license": "Apache-2.0",
|
|
@@ -41,27 +41,27 @@
|
|
|
41
41
|
"url": "https://github.com/NativeScript/NativeScript/issues"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@angular/animations": "
|
|
45
|
-
"@angular/common": "
|
|
46
|
-
"@angular/compiler": "
|
|
47
|
-
"@angular/core": "
|
|
48
|
-
"@angular/forms": "
|
|
49
|
-
"@angular/platform-browser": "
|
|
50
|
-
"@angular/platform-browser-dynamic": "
|
|
51
|
-
"@angular/router": "
|
|
52
|
-
"@nativescript/angular": "
|
|
53
|
-
"@nativescript/core": "~8.
|
|
44
|
+
"@angular/animations": "^12.2.0",
|
|
45
|
+
"@angular/common": "^12.2.0",
|
|
46
|
+
"@angular/compiler": "^12.2.0",
|
|
47
|
+
"@angular/core": "^12.2.0",
|
|
48
|
+
"@angular/forms": "^12.2.0",
|
|
49
|
+
"@angular/platform-browser": "^12.2.0",
|
|
50
|
+
"@angular/platform-browser-dynamic": "^12.2.0",
|
|
51
|
+
"@angular/router": "^12.2.0",
|
|
52
|
+
"@nativescript/angular": "^12.2.0",
|
|
53
|
+
"@nativescript/core": "~8.1.1",
|
|
54
54
|
"@nativescript/theme": "~3.0.1",
|
|
55
|
-
"nativescript-ui-sidedrawer": "~
|
|
55
|
+
"nativescript-ui-sidedrawer": "~10.0.1",
|
|
56
56
|
"reflect-metadata": "~0.1.13",
|
|
57
|
-
"rxjs": "~
|
|
57
|
+
"rxjs": "~7.3.0",
|
|
58
58
|
"zone.js": "~0.11.4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@angular/compiler-cli": "
|
|
62
|
-
"@nativescript/types": "~8.
|
|
63
|
-
"@nativescript/webpack": "5.0.0
|
|
64
|
-
"@ngtools/webpack": "
|
|
65
|
-
"typescript": "~4.
|
|
61
|
+
"@angular/compiler-cli": "^12.2.0",
|
|
62
|
+
"@nativescript/types": "~8.1.1",
|
|
63
|
+
"@nativescript/webpack": "~5.0.0",
|
|
64
|
+
"@ngtools/webpack": "^12.2.0",
|
|
65
|
+
"typescript": "~4.3.5"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -68,5 +68,7 @@ https://docs.nativescript.org/angular/ui/professional-ui-components/ng-SideDrawe
|
|
|
68
68
|
</ScrollView>
|
|
69
69
|
</GridLayout>
|
|
70
70
|
|
|
71
|
-
<
|
|
71
|
+
<GridLayout tkMainContent>
|
|
72
|
+
<page-router-outlet></page-router-outlet>
|
|
73
|
+
</GridLayout>
|
|
72
74
|
</RadSideDrawer>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<ActionBar class="action-bar">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<NavigationButton visibility="hidden"></NavigationButton>
|
|
3
|
+
<GridLayout columns="50, *">
|
|
4
|
+
<Label class="action-bar-title" text="Browse" colSpan="2"></Label>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<Label class="fas" text="" (tap)="onDrawerButtonTap()"></Label>
|
|
7
|
+
</GridLayout>
|
|
8
8
|
</ActionBar>
|
|
9
9
|
|
|
10
10
|
<GridLayout class="page__content">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<ActionBar class="action-bar">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<NavigationButton visibility="hidden"></NavigationButton>
|
|
3
|
+
<GridLayout columns="50, *">
|
|
4
|
+
<Label class="action-bar-title" text="Featured" colSpan="2"></Label>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<Label class="fas" text="" (tap)="onDrawerButtonTap()"></Label>
|
|
7
|
+
</GridLayout>
|
|
8
8
|
</ActionBar>
|
|
9
9
|
|
|
10
10
|
<GridLayout class="page__content">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<ActionBar class="action-bar">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<NavigationButton visibility="hidden"></NavigationButton>
|
|
3
|
+
<GridLayout columns="50, *">
|
|
4
|
+
<Label class="action-bar-title" text="Home" colSpan="2"></Label>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<Label class="fas" text="" (tap)="onDrawerButtonTap()"></Label>
|
|
7
|
+
</GridLayout>
|
|
8
8
|
</ActionBar>
|
|
9
9
|
|
|
10
10
|
<GridLayout class="page__content">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<ActionBar class="action-bar">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<NavigationButton visibility="hidden"></NavigationButton>
|
|
3
|
+
<GridLayout columns="50, *">
|
|
4
|
+
<Label class="action-bar-title" text="Search" colSpan="2"></Label>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<Label class="fas" text="" (tap)="onDrawerButtonTap()"></Label>
|
|
7
|
+
</GridLayout>
|
|
8
8
|
</ActionBar>
|
|
9
9
|
|
|
10
10
|
<GridLayout class="page__content">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<ActionBar class="action-bar">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<NavigationButton visibility="hidden"></NavigationButton>
|
|
3
|
+
<GridLayout columns="50, *">
|
|
4
|
+
<Label class="action-bar-title" text="Settings" colSpan="2"></Label>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<Label class="fas" text="" (tap)="onDrawerButtonTap()"></Label>
|
|
7
|
+
</GridLayout>
|
|
8
8
|
</ActionBar>
|
|
9
9
|
|
|
10
10
|
<GridLayout class="page__content">
|
package/src/main.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { platformNativeScriptDynamic } from '@nativescript/angular'
|
|
1
|
+
import { platformNativeScript, runNativeScriptAngularApp } from '@nativescript/angular';
|
|
3
2
|
|
|
4
|
-
import { AppModule } from './app/app.module'
|
|
3
|
+
import { AppModule } from './app/app.module';
|
|
4
|
+
|
|
5
|
+
runNativeScriptAngularApp({
|
|
6
|
+
appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
|
|
7
|
+
});
|
|
5
8
|
|
|
6
|
-
platformNativeScriptDynamic().bootstrapModule(AppModule)
|
package/src/polyfills.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NativeScript Polyfills
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
|
|
6
|
+
import '@nativescript/core/globals';
|
|
7
|
+
// Install @nativescript/angular specific polyfills
|
|
8
|
+
import '@nativescript/angular/polyfills';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Zone.js and patches
|
|
12
|
+
*/
|
|
13
|
+
// Add pre-zone.js patches needed for the NativeScript platform
|
|
14
|
+
import '@nativescript/zone-js/dist/pre-zone-polyfills';
|
|
15
|
+
|
|
16
|
+
// Zone JS is required by default for Angular itself
|
|
17
|
+
import 'zone.js';
|
|
18
|
+
|
|
19
|
+
// Add NativeScript specific Zone JS patches
|
|
20
|
+
import '@nativescript/zone-js';
|
package/tsconfig.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@/*": ["src/*"]
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"include": ["./src/**/*.ios.ts", "./src/**/*.
|
|
19
|
-
"files": ["./src/main.ts", "./references.d.ts"],
|
|
18
|
+
"include": ["./src/**/*.ios.ts", "./src/**/*.android.ts"],
|
|
19
|
+
"files": ["./src/main.ts", "./references.d.ts", "./src/polyfills.ts"],
|
|
20
20
|
"exclude": ["node_modules", "platforms"]
|
|
21
21
|
}
|