@nativescript/template-drawer-navigation-ng 8.0.5 → 8.1.3

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.
@@ -20,13 +20,17 @@
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"
33
+ android:exported="true">
30
34
 
31
35
  <meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
32
36
 
@@ -30,7 +30,6 @@ module.exports = function (hookArgs) {
30
30
  console.log(error)
31
31
  }
32
32
 
33
-
34
33
  function deleteFolderSync(folderPath) {
35
34
  if (fs.statSync(folderPath).isDirectory()) {
36
35
  fs.readdirSync(folderPath).forEach((file) => {
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.0.5",
6
+ "version": "8.1.3",
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": "~11.2.7",
45
- "@angular/common": "~11.2.7",
46
- "@angular/compiler": "~11.2.7",
47
- "@angular/core": "~11.2.7",
48
- "@angular/forms": "~11.2.7",
49
- "@angular/platform-browser": "~11.2.7",
50
- "@angular/platform-browser-dynamic": "~11.2.7",
51
- "@angular/router": "~11.2.7",
52
- "@nativescript/angular": "~11.8.0",
53
- "@nativescript/core": "~8.0.0",
44
+ "@angular/animations": "~13.1.1",
45
+ "@angular/common": "~13.1.1",
46
+ "@angular/compiler": "~13.1.1",
47
+ "@angular/core": "~13.1.1",
48
+ "@angular/forms": "~13.1.1",
49
+ "@angular/platform-browser": "~13.1.1",
50
+ "@angular/platform-browser-dynamic": "~13.1.1",
51
+ "@angular/router": "~13.1.1",
52
+ "@nativescript/angular": "^13.0.0",
53
+ "@nativescript/core": "~8.1.1",
54
54
  "@nativescript/theme": "~3.0.1",
55
- "nativescript-ui-sidedrawer": "~9.0.3",
56
- "reflect-metadata": "~0.1.13",
57
- "rxjs": "~6.6.7",
55
+ "nativescript-ui-sidedrawer": "~10.0.1",
56
+ "rxjs": "~7.4.0",
58
57
  "zone.js": "~0.11.4"
59
58
  },
60
59
  "devDependencies": {
61
- "@angular/compiler-cli": "~11.2.7",
62
- "@nativescript/types": "~8.0.0",
63
- "@nativescript/webpack": "beta",
64
- "@ngtools/webpack": "~11.2.6",
65
- "typescript": "~4.0.0"
60
+ "@angular-devkit/build-angular": "~13.1.1",
61
+ "@angular/compiler-cli": "~13.1.1",
62
+ "@nativescript/types": "~8.1.1",
63
+ "@nativescript/webpack": "~5.0.0",
64
+ "@ngtools/webpack": "~13.1.1",
65
+ "typescript": "~4.4.4"
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
- <page-router-outlet tkMainContent></page-router-outlet>
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
- <NavigationButton visibility="hidden"></NavigationButton>
3
- <GridLayout columns="50, *">
4
- <Label class="action-bar-title" text="Browse" colSpan="2"></Label>
2
+ <NavigationButton visibility="hidden"></NavigationButton>
3
+ <GridLayout columns="50, *">
4
+ <Label class="action-bar-title" text="Browse" colSpan="2"></Label>
5
5
 
6
- <Label class="fas" text="&#xf0c9;" (tap)="onDrawerButtonTap()"></Label>
7
- </GridLayout>
6
+ <Label class="fas" text="&#xf0c9;" (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
- <NavigationButton visibility="hidden"></NavigationButton>
3
- <GridLayout columns="50, *">
4
- <Label class="action-bar-title" text="Featured" colSpan="2"></Label>
2
+ <NavigationButton visibility="hidden"></NavigationButton>
3
+ <GridLayout columns="50, *">
4
+ <Label class="action-bar-title" text="Featured" colSpan="2"></Label>
5
5
 
6
- <Label class="fas" text="&#xf0c9;" (tap)="onDrawerButtonTap()"></Label>
7
- </GridLayout>
6
+ <Label class="fas" text="&#xf0c9;" (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
- <NavigationButton visibility="hidden"></NavigationButton>
3
- <GridLayout columns="50, *">
4
- <Label class="action-bar-title" text="Home" colSpan="2"></Label>
2
+ <NavigationButton visibility="hidden"></NavigationButton>
3
+ <GridLayout columns="50, *">
4
+ <Label class="action-bar-title" text="Home" colSpan="2"></Label>
5
5
 
6
- <Label class="fas" text="&#xf0c9;" (tap)="onDrawerButtonTap()"></Label>
7
- </GridLayout>
6
+ <Label class="fas" text="&#xf0c9;" (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
- <NavigationButton visibility="hidden"></NavigationButton>
3
- <GridLayout columns="50, *">
4
- <Label class="action-bar-title" text="Search" colSpan="2"></Label>
2
+ <NavigationButton visibility="hidden"></NavigationButton>
3
+ <GridLayout columns="50, *">
4
+ <Label class="action-bar-title" text="Search" colSpan="2"></Label>
5
5
 
6
- <Label class="fas" text="&#xf0c9;" (tap)="onDrawerButtonTap()"></Label>
7
- </GridLayout>
6
+ <Label class="fas" text="&#xf0c9;" (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
- <NavigationButton visibility="hidden"></NavigationButton>
3
- <GridLayout columns="50, *">
4
- <Label class="action-bar-title" text="Settings" colSpan="2"></Label>
2
+ <NavigationButton visibility="hidden"></NavigationButton>
3
+ <GridLayout columns="50, *">
4
+ <Label class="action-bar-title" text="Settings" colSpan="2"></Label>
5
5
 
6
- <Label class="fas" text="&#xf0c9;" (tap)="onDrawerButtonTap()"></Label>
7
- </GridLayout>
6
+ <Label class="fas" text="&#xf0c9;" (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
- // this import should be first in order to load some required settings (like globals and reflect-metadata)
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)
@@ -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
@@ -16,6 +16,6 @@
16
16
  }
17
17
  },
18
18
  "include": ["./src/**/*.ios.ts", "./src/**/*.android.ts"],
19
- "files": ["./src/main.ts", "./references.d.ts"],
19
+ "files": ["./src/main.ts", "./references.d.ts", "./src/polyfills.ts"],
20
20
  "exclude": ["node_modules", "platforms"]
21
21
  }