@nativescript-community/ui-drawer 0.0.28 → 0.0.32

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.32](https://github.com/nativescript-community/ui-drawer/compare/v0.0.31...v0.0.32) (2022-01-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * gesturehandler fix for `gestureEnabled` property ([8f92c62](https://github.com/nativescript-community/ui-drawer/commit/8f92c62426a439a4175fb64e64e8883f0fda3c4f))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.0.31](https://github.com/nativescript-community/ui-drawer/compare/v0.0.30...v0.0.31) (2021-10-12)
18
+
19
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.0.30](https://github.com/nativescript-community/ui-drawer/compare/v0.0.29...v0.0.30) (2021-09-21)
26
+
27
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.0.29](https://github.com/nativescript-community/ui-drawer/compare/v0.0.28...v0.0.29) (2021-08-05)
34
+
35
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
36
+
37
+
38
+
39
+
40
+
6
41
  ## [0.0.28](https://github.com/nativescript-community/ui-drawer/compare/v0.0.27...v0.0.28) (2021-05-07)
7
42
 
8
43
  **Note:** Version bump only for package @nativescript-community/ui-drawer
package/README.md CHANGED
@@ -1,32 +1,77 @@
1
- # NativeScript Drawer
2
-
3
- NativeScript plugin that allows you to easily add a side drawer (side menu) to your projects. This can be used as an Open Source alternative to [RadSideDrawer](https://docs.nativescript.org/ui/components/sidedrawer/overview).
4
-
5
- [![npm](https://img.shields.io/npm/v/@nativescript-community/ui-drawer.svg)](https://www.npmjs.com/package/@nativescript-community/ui-drawer)
6
- [![npm downloads](https://img.shields.io/npm/dm/@nativescript-community/ui-drawer.svg)](https://www.npmjs.com/package/@nativescript-community/ui-drawer)
7
- [![npm downloads](https://img.shields.io/npm/dt/@nativescript-community/ui-drawer.svg)](https://www.npmjs.com/package/@nativescript-community/ui-drawer)
8
-
9
- | <img src="images/demo-ios.gif" height="500" /> | <img src="images/demo-android.gif" height="500" /> |
1
+ <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
2
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11
+ DO NOT EDIT THIS READEME DIRECTLY! Edit "bluesprint.md" instead.
12
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
17
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
21
+ <h1 align="center">@nativescript-community/ui-drawer</h1>
22
+ <p align="center">
23
+ <a href="https://npmcharts.com/compare/@nativescript-community/ui-drawer?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-drawer.svg" height="20"/></a>
24
+ <a href="https://www.npmjs.com/package/@nativescript-community/ui-drawer"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/ui-drawer.svg" height="20"/></a>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <b>Easily add a side drawer (side menu) to your projects.</b></br>
29
+ <sub><sub>
30
+ </p>
31
+
32
+ <br />
33
+
34
+
35
+ | <img src="https://raw.githubusercontent.com/nativescript-community/ui-drawer/master/images/demo-ios.gif" height="500" /> | <img src="https://raw.githubusercontent.com/nativescript-community/ui-drawer/master/images/demo-android.gif" height="500" /> |
10
36
  | --- | ----------- |
11
37
  | iOS Demo | Android Demo |
12
38
 
13
- ---
39
+
40
+ [](#table-of-contents)
41
+
14
42
  ## Table of Contents
15
- 1. [Installation](#installation)
16
- 2. [Configuration](#configuration)
17
- 3. [API](#api)
18
- 4. [Usage in Angular](#usage-in-angular)
19
- 5. [Usage in Vue](#usage-in-vue)
20
- 6. [Usage in Svelte](#usage-in-svelte)
21
- 7. [Usage in React](#usage-in-react)
22
- 8. [Demos](#demos)
23
43
 
44
+ * [Installation](#installation)
45
+ * [Configuration](#configuration)
46
+ * [API](#api)
47
+ * [Properties](#properties)
48
+ * [Methods](#methods)
49
+ * [Events](#events)
50
+ * [Usage in Angular](#usage-in-angular)
51
+ * [Examples:](#examples)
52
+ * [Usage in React](#usage-in-react)
53
+ * [Examples:](#examples-1)
54
+ * [Usage in Svelte](#usage-in-svelte)
55
+ * [Examples:](#examples-2)
56
+ * [Usage in Vue](#usage-in-vue)
57
+ * [Examples:](#examples-3)
58
+ * [Demos and Development](#demos-and-development)
59
+ * [Setup](#setup)
60
+ * [Build](#build)
61
+ * [Demos](#demos)
62
+ * [Questions](#questions)
63
+
64
+
65
+ [](#installation)
66
+
24
67
  ## Installation
68
+ Run the following command from the root of your project:
25
69
 
26
- ```
27
- ns plugin add @nativescript-community/ui-drawer
28
- ```
70
+ `ns plugin add @nativescript-community/ui-drawer`
29
71
 
72
+
73
+ [](#configuration)
74
+
30
75
  ## Configuration
31
76
  For gestures to work, make sure to add the following code block inside the main application file (e.g. app.ts):
32
77
 
@@ -35,6 +80,9 @@ import { install } from '@nativescript-community/ui-drawer';
35
80
  install();
36
81
  ```
37
82
 
83
+
84
+ [](#api)
85
+
38
86
  ## API
39
87
 
40
88
  ### Properties
@@ -78,6 +126,9 @@ install();
78
126
  | open | `side`, `duration` | Drawer opens |
79
127
  | close | `side`, `duration` | Drawer closes |
80
128
 
129
+
130
+ [](#usage-in-angular)
131
+
81
132
  ## Usage in Angular
82
133
  Import the module into your project.
83
134
 
@@ -96,45 +147,36 @@ import { DrawerModule } from "@nativescript-community/ui-drawer/angular";
96
147
  export class AppModule { }
97
148
  ```
98
149
 
99
- Then in your component add the following:
150
+ ### Examples:
100
151
 
101
- ```xml
102
- <Drawer>
103
- <GridLayout leftDrawer backgroundColor="white">
104
- <Label text="This is the side drawer content"></Label>
105
- </GridLayout>
152
+ - [Basic Drawer](demo-snippets/ng/basic-drawer)
153
+ - A basic sliding drawer.
154
+ - [All Sides](demo-snippets/ng/all-sides)
155
+ - An example of drawers on all sides: left, right, top, bottom.
106
156
 
107
- <StackLayout mainContent backgroundColor="white">
108
- <Label text="This is the main content"></Label>
109
- </StackLayout>
110
- </Drawer>
111
- ```
112
- For a more complete example, look in the `demo-ng` directory.
113
157
 
114
- ## Usage in Vue
158
+
159
+ [](#usage-in-react)
160
+
161
+ ## Usage in React
115
162
 
116
- Register the plugin in your `app.js`.
163
+ Register the plugin in your `app.ts`.
117
164
 
118
165
  ```typescript
119
- import DrawerPlugin from '@nativescript-community/ui-drawer/vue'
120
- Vue.use(DrawerPlugin);
166
+ import DrawerElement from '@nativescript-community/ui-drawer/react';
167
+ DrawerElement.register();
121
168
  ```
122
169
 
123
- Then in your component add the following:
170
+ ### Examples:
124
171
 
125
- ```xml
126
- <Drawer>
127
- <GridLayout ~leftDrawer backgroundColor="white">
128
- <Label text="This is the side drawer content" />
129
- </GridLayout>
130
-
131
- <StackLayout ~mainContent backgroundColor="white">
132
- <Label text="This is the main content" />
133
- </StackLayout>
134
- </Drawer>
135
- ```
136
- For a more complete example, look in the `demo-vue` directory.
172
+ - [Basic Drawer](demo-snippets/react/BasicDrawer.tsx)
173
+ - A basic sliding drawer.
174
+ - [All Sides](demo-snippets/react/AllSides.tsx)
175
+ - An example of drawers on all sides: left, right, top, bottom.
137
176
 
177
+
178
+ [](#usage-in-svelte)
179
+
138
180
  ## Usage in Svelte
139
181
 
140
182
  Register the plugin in your `app.ts`.
@@ -144,56 +186,73 @@ import DrawerElement from '@nativescript-community/ui-drawer/svelte';
144
186
  DrawerElement.register();
145
187
  ```
146
188
 
147
- Then in your component, add the following:
189
+ ### Examples:
148
190
 
149
- ```xml
150
- <drawer>
151
- <gridlayout prop:leftDrawer backgroundColor="white">
152
- <Label text="This is the side drawer content" />
153
- </gridlayout>
191
+ - [Basic Drawer](demo-snippets/svelte/BasicDrawer.svelte)
192
+ - A basic sliding drawer.
193
+ - [All Sides](demo-snippets/svelte/AllSides.svelte)
194
+ - An example of drawers on all sides: left, right, top, bottom.
154
195
 
155
- <stacklayout prop:mainContent backgroundColor="white">
156
- <Label text="This is the main content" />
157
- </stacklayout>
158
- </drawer>
196
+
197
+ [](#usage-in-vue)
198
+
199
+ ## Usage in Vue
200
+
201
+ Register the plugin in your `app.js`.
202
+
203
+ ```typescript
204
+ import DrawerPlugin from '@nativescript-community/ui-drawer/vue'
205
+ Vue.use(DrawerPlugin);
159
206
  ```
160
- For a more complete example, look in the `demo-svelte` directory.
161
207
 
162
- ## Usage in React
208
+ ### Examples:
163
209
 
164
- Register the plugin in your `app.ts`.
210
+ - [Basic Drawer](demo-snippets/vue/BasicDrawer.vue)
211
+ - A basic sliding drawer.
212
+ - [All Sides](demo-snippets/vue/AllSides.vue)
213
+ - An example of drawers on all sides: left, right, top, bottom.
165
214
 
166
- ```typescript
167
- import DrawerElement from '@nativescript-community/ui-drawer/react';
168
- DrawerElement.register();
215
+
216
+ [](#demos-and-development)
217
+
218
+ ## Demos and Development
219
+
220
+
221
+ ### Setup
222
+
223
+ To run the demos, you must clone this repo **recursively**.
224
+
225
+ ```
226
+ git clone https://github.com/@nativescript-community/ui-drawer.git --recursive
169
227
  ```
170
228
 
171
- Then in your component, add the following:
172
- ```ts
173
- import { Drawer } from "@nativescript-community/ui-drawer/react"
229
+ **Install Dependencies:**
230
+ ```bash
231
+ npm i # or 'yarn install' or 'pnpm install'
232
+ ```
233
+
234
+ **Interactive Menu:**
235
+
236
+ To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
237
+
238
+ ### Build
239
+
240
+ ```bash
241
+ npm run build
242
+
243
+ npm run build.angular # or for Angular
174
244
  ```
175
245
 
176
- ```xml
177
- <Drawer>
178
- <gridLayout nodeRole="leftDrawer" backgroundColor="white" width="300">
179
- <label text="This is the side drawer content" />
180
- </gridLayout>
246
+ ### Demos
181
247
 
182
- <stackLayout nodeRole="mainContent" backgroundColor="white">
183
- <label text="This is the main content" />
184
- </stackLayout>
185
- </Drawer>
248
+ ```bash
249
+ npm run demo.[ng|react|svelte|vue].[ios|android]
250
+
251
+ npm run demo.svelte.ios # Example
186
252
  ```
187
- For a more complete example, look in the `demo-react` directory.
188
-
189
- ## Demos
190
- This repository includes Angular, Vue.js, and Svelte demos. In order to run these execute the following in your shell:
191
- ```shell
192
- $ git clone https://github.com/@nativescript-community/ui-drawer
193
- $ cd ui-drawer
194
- $ npm run i
195
- $ npm run setup
196
- $ npm run build && npm run build.angular
197
- $ cd demo-ng # or demo-vue or demo-svelte or demo-react
198
- $ ns run ios|android
199
- ```
253
+
254
+ [](#questions)
255
+
256
+ ## Questions
257
+
258
+ If you have any questions/issues/comments please feel free to create an issue or start a conversation in the [NativeScript Community Discord](https://nativescript.org/discord).
@@ -66,7 +66,7 @@
66
66
  }
67
67
  }, encapsulation: 2 });
68
68
  (function () {
69
- i0__namespace.ɵsetClassMetadata(DrawerComponent, [{
69
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DrawerComponent, [{
70
70
  type: i0.Component,
71
71
  args: [{
72
72
  selector: 'Drawer',
@@ -92,7 +92,7 @@
92
92
  LeftDrawerDirective.ɵfac = function LeftDrawerDirective_Factory(t) { return new (t || LeftDrawerDirective)(i0__namespace.ɵɵdirectiveInject(i0.ElementRef)); };
93
93
  LeftDrawerDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: LeftDrawerDirective, selectors: [["", "leftDrawer", ""]] });
94
94
  (function () {
95
- i0__namespace.ɵsetClassMetadata(LeftDrawerDirective, [{
95
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LeftDrawerDirective, [{
96
96
  type: i0.Directive,
97
97
  args: [{
98
98
  selector: '[leftDrawer]',
@@ -114,7 +114,7 @@
114
114
  RightDrawerDirective.ɵfac = function RightDrawerDirective_Factory(t) { return new (t || RightDrawerDirective)(i0__namespace.ɵɵdirectiveInject(i0.ElementRef)); };
115
115
  RightDrawerDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: RightDrawerDirective, selectors: [["", "rightDrawer", ""]] });
116
116
  (function () {
117
- i0__namespace.ɵsetClassMetadata(RightDrawerDirective, [{
117
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RightDrawerDirective, [{
118
118
  type: i0.Directive,
119
119
  args: [{
120
120
  selector: '[rightDrawer]',
@@ -136,7 +136,7 @@
136
136
  TopDrawerDirective.ɵfac = function TopDrawerDirective_Factory(t) { return new (t || TopDrawerDirective)(i0__namespace.ɵɵdirectiveInject(i0.ElementRef)); };
137
137
  TopDrawerDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: TopDrawerDirective, selectors: [["", "topDrawer", ""]] });
138
138
  (function () {
139
- i0__namespace.ɵsetClassMetadata(TopDrawerDirective, [{
139
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TopDrawerDirective, [{
140
140
  type: i0.Directive,
141
141
  args: [{
142
142
  selector: '[topDrawer]',
@@ -158,7 +158,7 @@
158
158
  BottomDrawerDirective.ɵfac = function BottomDrawerDirective_Factory(t) { return new (t || BottomDrawerDirective)(i0__namespace.ɵɵdirectiveInject(i0.ElementRef)); };
159
159
  BottomDrawerDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: BottomDrawerDirective, selectors: [["", "bottomDrawer", ""]] });
160
160
  (function () {
161
- i0__namespace.ɵsetClassMetadata(BottomDrawerDirective, [{
161
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BottomDrawerDirective, [{
162
162
  type: i0.Directive,
163
163
  args: [{
164
164
  selector: '[bottomDrawer]',
@@ -180,7 +180,7 @@
180
180
  MainContentDirective.ɵfac = function MainContentDirective_Factory(t) { return new (t || MainContentDirective)(i0__namespace.ɵɵdirectiveInject(i0.ElementRef)); };
181
181
  MainContentDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MainContentDirective, selectors: [["", "mainContent", ""]] });
182
182
  (function () {
183
- i0__namespace.ɵsetClassMetadata(MainContentDirective, [{
183
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MainContentDirective, [{
184
184
  type: i0.Directive,
185
185
  args: [{
186
186
  selector: '[mainContent]',
@@ -239,11 +239,11 @@
239
239
  }
240
240
  return DrawerModule;
241
241
  }());
242
+ DrawerModule.ɵfac = function DrawerModule_Factory(t) { return new (t || DrawerModule)(); };
242
243
  DrawerModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: DrawerModule });
243
- DrawerModule.ɵinj = i0__namespace.ɵɵdefineInjector({ factory: function DrawerModule_Factory(t) { return new (t || DrawerModule)(); } });
244
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(DrawerModule, { declarations: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective], exports: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective] }); })();
244
+ DrawerModule.ɵinj = i0__namespace.ɵɵdefineInjector({});
245
245
  (function () {
246
- i0__namespace.ɵsetClassMetadata(DrawerModule, [{
246
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DrawerModule, [{
247
247
  type: i0.NgModule,
248
248
  args: [{
249
249
  declarations: [DrawerComponent, SIDEDRAWER_DIRECTIVES],
@@ -251,6 +251,7 @@
251
251
  }]
252
252
  }], null, null);
253
253
  })();
254
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(DrawerModule, { declarations: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective], exports: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective] }); })();
254
255
 
255
256
  exports.BottomDrawerDirective = BottomDrawerDirective;
256
257
  exports.DrawerComponent = DrawerComponent;
@@ -1,2 +1,2 @@
1
1
  export * from './module';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2thcmxzY2htYWx0ei9EZXNrdG9wL1Byb2plY3RzL2NvbW11bml0eS9kcmF3ZXIyL3NyYy9hbmd1bGFyLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21vZHVsZSc7XG4iXX0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdWktZHJhd2VyL2FuZ3VsYXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21vZHVsZSc7XG4iXX0=
@@ -30,7 +30,7 @@ DrawerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DrawerComponent, selector
30
30
  i0.ɵɵprojectionDef();
31
31
  i0.ɵɵprojection(0);
32
32
  } }, encapsulation: 2 });
33
- (function () { i0.ɵsetClassMetadata(DrawerComponent, [{
33
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerComponent, [{
34
34
  type: Component,
35
35
  args: [{
36
36
  selector: 'Drawer',
@@ -51,7 +51,7 @@ export class LeftDrawerDirective {
51
51
  }
52
52
  LeftDrawerDirective.ɵfac = function LeftDrawerDirective_Factory(t) { return new (t || LeftDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
53
53
  LeftDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: LeftDrawerDirective, selectors: [["", "leftDrawer", ""]] });
54
- (function () { i0.ɵsetClassMetadata(LeftDrawerDirective, [{
54
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LeftDrawerDirective, [{
55
55
  type: Directive,
56
56
  args: [{
57
57
  selector: '[leftDrawer]',
@@ -68,7 +68,7 @@ export class RightDrawerDirective {
68
68
  }
69
69
  RightDrawerDirective.ɵfac = function RightDrawerDirective_Factory(t) { return new (t || RightDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
70
70
  RightDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: RightDrawerDirective, selectors: [["", "rightDrawer", ""]] });
71
- (function () { i0.ɵsetClassMetadata(RightDrawerDirective, [{
71
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RightDrawerDirective, [{
72
72
  type: Directive,
73
73
  args: [{
74
74
  selector: '[rightDrawer]',
@@ -85,7 +85,7 @@ export class TopDrawerDirective {
85
85
  }
86
86
  TopDrawerDirective.ɵfac = function TopDrawerDirective_Factory(t) { return new (t || TopDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
87
87
  TopDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: TopDrawerDirective, selectors: [["", "topDrawer", ""]] });
88
- (function () { i0.ɵsetClassMetadata(TopDrawerDirective, [{
88
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TopDrawerDirective, [{
89
89
  type: Directive,
90
90
  args: [{
91
91
  selector: '[topDrawer]',
@@ -102,7 +102,7 @@ export class BottomDrawerDirective {
102
102
  }
103
103
  BottomDrawerDirective.ɵfac = function BottomDrawerDirective_Factory(t) { return new (t || BottomDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
104
104
  BottomDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: BottomDrawerDirective, selectors: [["", "bottomDrawer", ""]] });
105
- (function () { i0.ɵsetClassMetadata(BottomDrawerDirective, [{
105
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BottomDrawerDirective, [{
106
106
  type: Directive,
107
107
  args: [{
108
108
  selector: '[bottomDrawer]',
@@ -119,7 +119,7 @@ export class MainContentDirective {
119
119
  }
120
120
  MainContentDirective.ɵfac = function MainContentDirective_Factory(t) { return new (t || MainContentDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
121
121
  MainContentDirective.ɵdir = i0.ɵɵdefineDirective({ type: MainContentDirective, selectors: [["", "mainContent", ""]] });
122
- (function () { i0.ɵsetClassMetadata(MainContentDirective, [{
122
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainContentDirective, [{
123
123
  type: Directive,
124
124
  args: [{
125
125
  selector: '[mainContent]',
@@ -172,14 +172,15 @@ export const SIDEDRAWER_DIRECTIVES = [LeftDrawerDirective, RightDrawerDirective,
172
172
  registerElement('Drawer', () => Drawer, sideDrawerMeta);
173
173
  export class DrawerModule {
174
174
  }
175
+ DrawerModule.ɵfac = function DrawerModule_Factory(t) { return new (t || DrawerModule)(); };
175
176
  DrawerModule.ɵmod = i0.ɵɵdefineNgModule({ type: DrawerModule });
176
- DrawerModule.ɵinj = i0.ɵɵdefineInjector({ factory: function DrawerModule_Factory(t) { return new (t || DrawerModule)(); } });
177
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrawerModule, { declarations: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective], exports: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective] }); })();
178
- (function () { i0.ɵsetClassMetadata(DrawerModule, [{
177
+ DrawerModule.ɵinj = i0.ɵɵdefineInjector({});
178
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerModule, [{
179
179
  type: NgModule,
180
180
  args: [{
181
181
  declarations: [DrawerComponent, SIDEDRAWER_DIRECTIVES],
182
182
  exports: [DrawerComponent, SIDEDRAWER_DIRECTIVES],
183
183
  }]
184
184
  }], null, null); })();
185
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9rYXJsc2NobWFsdHovRGVza3RvcC9Qcm9qZWN0cy9jb21tdW5pdHkvZHJhd2VyMi9zcmMvYW5ndWxhci8iLCJzb3VyY2VzIjpbIm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQWlDLE1BQU0sRUFBUyxRQUFRLEVBQXVCLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hLLE9BQU8sRUFBeUIsZUFBZSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDL0UsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLG1DQUFtQyxDQUFDOzs7QUFFM0QsTUFBTSxVQUFVLEdBQVcsWUFBWSxDQUFDO0FBQ3hDLE1BQU0sV0FBVyxHQUFXLGFBQWEsQ0FBQztBQUMxQyxNQUFNLFNBQVMsR0FBVyxXQUFXLENBQUM7QUFDdEMsTUFBTSxZQUFZLEdBQVcsY0FBYyxDQUFDO0FBQzVDLE1BQU0sV0FBVyxHQUFXLGFBQWEsQ0FBQztBQWlCMUMsTUFBTSxPQUFPLGVBQWU7SUFPeEIsWUFBdUMsVUFBc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lckVsZW1lbnQoJ0RyYXdlcicsICgpID0+IERyYXdlciwgc2lkZURyYXdlck1ldGEpO1xuXG4vKipcbiAqIE5nTW9kdWxlIGNvbnRhaW5pbmcgYWxsIG9mIHRoZSBSYWRTaWRlRHJhd2VyIGRpcmVjdGl2ZXMuXG4gKi9cbkBOZ01vZHVsZSh7XG4gICAgZGVjbGFyYXRpb25zOiBbRHJhd2VyQ29tcG9uZW50LCBTSURFRFJBV0VSX0RJUkVDVElWRVNdLFxuICAgIGV4cG9ydHM6IFtEcmF3ZXJDb21wb25lbnQsIFNJREVEUkFXRVJfRElSRUNUSVZFU10sXG59KVxuZXhwb3J0IGNsYXNzIERyYXdlck1vZHVsZSB7fVxuIl19
185
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrawerModule, { declarations: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective], exports: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective] }); })();
186
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3VpLWRyYXdlci9hbmd1bGFyL21vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQWlDLE1BQU0sRUFBUyxRQUFRLEVBQXVCLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hLLE9BQU8sRUFBeUIsZUFBZSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDL0UsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLG1DQUFtQyxDQUFDOzs7QUFFM0QsTUFBTSxVQUFVLEdBQVcsWUFBWSx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7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGNoaWxkVmlldy5pZCA9PT0gVE9QRFJBV0VSKSB7XG4gICAgICAgICAgICBkcmF3ZXIudG9wRHJhd2VyID0gY2hpbGRWaWV3O1xuICAgICAgICB9XG4gICAgICAgIGlmIChjaGlsZFZpZXcuaWQgPT09IEJPVFRPTURSQVdFUikge1xuICAgICAgICAgICAgZHJhd2VyLmJvdHRvbURyYXdlciA9IGNoaWxkVmlldztcbiAgICAgICAgfVxuICAgIH0sXG4gICAgcmVtb3ZlQ2hpbGQ6IChwYXJlbnQ6IE5nVmlldywgY2hpbGQ6IE5nVmlldykgPT4ge1xuICAgICAgICBjb25zdCBkcmF3ZXIgPSAocGFyZW50IGFzIGFueSkgYXMgRHJhd2VyO1xuICAgICAgICBjb25zdCBjaGlsZFZpZXcgPSBjaGlsZDtcblxuICAgICAgICBpZiAoY2hpbGRWaWV3LmlkID09PSBNQUlOQ09OVEVOVCkge1xuICAgICAgICAgICAgZHJhd2VyLm1haW5Db250ZW50ID0gbnVsbDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChjaGlsZFZpZXcuaWQgPT09IExFRlREUkFXRVIpIHtcbiAgICAgICAgICAgIGRyYXdlci5sZWZ0RHJhd2VyID0gbnVsbDtcbiAgICAgICAgfVxuICAgICAgICBpZiAoY2hpbGRWaWV3LmlkID09PSBSSUdIVERSQVdFUikge1xuICAgICAgICAgICAgZHJhd2VyLnJpZ2h0RHJhd2VyID0gbnVsbDtcbiAgICAgICAgfVxuICAgICAgICBpZiAoY2hpbGRWaWV3LmlkID09PSBUT1BEUkFXRVIpIHtcbiAgICAgICAgICAgIGRyYXdlci50b3BEcmF3ZXIgPSBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGlmIChjaGlsZFZpZXcuaWQgPT09IEJPVFRPTURSQVdFUikge1xuICAgICAgICAgICAgZHJhd2VyLmJvdHRvbURyYXdlciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9LFxufTtcblx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nRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlc2NyaXB0LWNvbW11bml0eS11aS1kcmF3ZXItYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91aS1kcmF3ZXIvYW5ndWxhci9uYXRpdmVzY3JpcHQtY29tbXVuaXR5LXVpLWRyYXdlci1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -31,7 +31,7 @@ DrawerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DrawerComponent, selector
31
31
  i0.ɵɵprojectionDef();
32
32
  i0.ɵɵprojection(0);
33
33
  } }, encapsulation: 2 });
34
- (function () { i0.ɵsetClassMetadata(DrawerComponent, [{
34
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerComponent, [{
35
35
  type: Component,
36
36
  args: [{
37
37
  selector: 'Drawer',
@@ -52,7 +52,7 @@ class LeftDrawerDirective {
52
52
  }
53
53
  LeftDrawerDirective.ɵfac = function LeftDrawerDirective_Factory(t) { return new (t || LeftDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
54
54
  LeftDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: LeftDrawerDirective, selectors: [["", "leftDrawer", ""]] });
55
- (function () { i0.ɵsetClassMetadata(LeftDrawerDirective, [{
55
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LeftDrawerDirective, [{
56
56
  type: Directive,
57
57
  args: [{
58
58
  selector: '[leftDrawer]',
@@ -69,7 +69,7 @@ class RightDrawerDirective {
69
69
  }
70
70
  RightDrawerDirective.ɵfac = function RightDrawerDirective_Factory(t) { return new (t || RightDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
71
71
  RightDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: RightDrawerDirective, selectors: [["", "rightDrawer", ""]] });
72
- (function () { i0.ɵsetClassMetadata(RightDrawerDirective, [{
72
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RightDrawerDirective, [{
73
73
  type: Directive,
74
74
  args: [{
75
75
  selector: '[rightDrawer]',
@@ -86,7 +86,7 @@ class TopDrawerDirective {
86
86
  }
87
87
  TopDrawerDirective.ɵfac = function TopDrawerDirective_Factory(t) { return new (t || TopDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
88
88
  TopDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: TopDrawerDirective, selectors: [["", "topDrawer", ""]] });
89
- (function () { i0.ɵsetClassMetadata(TopDrawerDirective, [{
89
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TopDrawerDirective, [{
90
90
  type: Directive,
91
91
  args: [{
92
92
  selector: '[topDrawer]',
@@ -103,7 +103,7 @@ class BottomDrawerDirective {
103
103
  }
104
104
  BottomDrawerDirective.ɵfac = function BottomDrawerDirective_Factory(t) { return new (t || BottomDrawerDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
105
105
  BottomDrawerDirective.ɵdir = i0.ɵɵdefineDirective({ type: BottomDrawerDirective, selectors: [["", "bottomDrawer", ""]] });
106
- (function () { i0.ɵsetClassMetadata(BottomDrawerDirective, [{
106
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BottomDrawerDirective, [{
107
107
  type: Directive,
108
108
  args: [{
109
109
  selector: '[bottomDrawer]',
@@ -120,7 +120,7 @@ class MainContentDirective {
120
120
  }
121
121
  MainContentDirective.ɵfac = function MainContentDirective_Factory(t) { return new (t || MainContentDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
122
122
  MainContentDirective.ɵdir = i0.ɵɵdefineDirective({ type: MainContentDirective, selectors: [["", "mainContent", ""]] });
123
- (function () { i0.ɵsetClassMetadata(MainContentDirective, [{
123
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainContentDirective, [{
124
124
  type: Directive,
125
125
  args: [{
126
126
  selector: '[mainContent]',
@@ -173,16 +173,17 @@ const SIDEDRAWER_DIRECTIVES = [LeftDrawerDirective, RightDrawerDirective, TopDra
173
173
  registerElement('Drawer', () => Drawer, sideDrawerMeta);
174
174
  class DrawerModule {
175
175
  }
176
+ DrawerModule.ɵfac = function DrawerModule_Factory(t) { return new (t || DrawerModule)(); };
176
177
  DrawerModule.ɵmod = i0.ɵɵdefineNgModule({ type: DrawerModule });
177
- DrawerModule.ɵinj = i0.ɵɵdefineInjector({ factory: function DrawerModule_Factory(t) { return new (t || DrawerModule)(); } });
178
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrawerModule, { declarations: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective], exports: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective] }); })();
179
- (function () { i0.ɵsetClassMetadata(DrawerModule, [{
178
+ DrawerModule.ɵinj = i0.ɵɵdefineInjector({});
179
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerModule, [{
180
180
  type: NgModule,
181
181
  args: [{
182
182
  declarations: [DrawerComponent, SIDEDRAWER_DIRECTIVES],
183
183
  exports: [DrawerComponent, SIDEDRAWER_DIRECTIVES],
184
184
  }]
185
185
  }], null, null); })();
186
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrawerModule, { declarations: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective], exports: [DrawerComponent, LeftDrawerDirective, RightDrawerDirective, TopDrawerDirective, BottomDrawerDirective, MainContentDirective] }); })();
186
187
 
187
188
  export { BottomDrawerDirective, DrawerComponent, DrawerModule, LeftDrawerDirective, MainContentDirective, RightDrawerDirective, SIDEDRAWER_DIRECTIVES, TopDrawerDirective };
188
189
  //# sourceMappingURL=nativescript-community-ui-drawer-angular.js.map
@@ -17,41 +17,42 @@ export declare class DrawerComponent {
17
17
  get nativeElement(): Drawer;
18
18
  set gestureEnabled(value: boolean);
19
19
  private updateGestureEnabled;
20
- static ɵfac: i0.ɵɵFactoryDef<DrawerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDefWithMeta<DrawerComponent, "Drawer", never, {}, {}, never, ["*"]>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "Drawer", never, {}, {}, never, ["*"]>;
22
22
  }
23
23
  export declare class LeftDrawerDirective {
24
24
  private _elementRef;
25
25
  constructor(_elementRef: ElementRef);
26
- static ɵfac: i0.ɵɵFactoryDef<LeftDrawerDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<LeftDrawerDirective, "[leftDrawer]", never, {}, {}, never>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<LeftDrawerDirective, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LeftDrawerDirective, "[leftDrawer]", never, {}, {}, never>;
28
28
  }
29
29
  export declare class RightDrawerDirective {
30
30
  private _elementRef;
31
31
  constructor(_elementRef: ElementRef);
32
- static ɵfac: i0.ɵɵFactoryDef<RightDrawerDirective, never>;
33
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<RightDrawerDirective, "[rightDrawer]", never, {}, {}, never>;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<RightDrawerDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RightDrawerDirective, "[rightDrawer]", never, {}, {}, never>;
34
34
  }
35
35
  export declare class TopDrawerDirective {
36
36
  private _elementRef;
37
37
  constructor(_elementRef: ElementRef);
38
- static ɵfac: i0.ɵɵFactoryDef<TopDrawerDirective, never>;
39
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<TopDrawerDirective, "[topDrawer]", never, {}, {}, never>;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopDrawerDirective, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TopDrawerDirective, "[topDrawer]", never, {}, {}, never>;
40
40
  }
41
41
  export declare class BottomDrawerDirective {
42
42
  private _elementRef;
43
43
  constructor(_elementRef: ElementRef);
44
- static ɵfac: i0.ɵɵFactoryDef<BottomDrawerDirective, never>;
45
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<BottomDrawerDirective, "[bottomDrawer]", never, {}, {}, never>;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<BottomDrawerDirective, never>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BottomDrawerDirective, "[bottomDrawer]", never, {}, {}, never>;
46
46
  }
47
47
  export declare class MainContentDirective {
48
48
  private _elementRef;
49
49
  constructor(_elementRef: ElementRef);
50
- static ɵfac: i0.ɵɵFactoryDef<MainContentDirective, never>;
51
- static ɵdir: i0.ɵɵDirectiveDefWithMeta<MainContentDirective, "[mainContent]", never, {}, {}, never>;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainContentDirective, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MainContentDirective, "[mainContent]", never, {}, {}, never>;
52
52
  }
53
53
  export declare const SIDEDRAWER_DIRECTIVES: (typeof LeftDrawerDirective | typeof RightDrawerDirective | typeof TopDrawerDirective | typeof BottomDrawerDirective | typeof MainContentDirective)[];
54
54
  export declare class DrawerModule {
55
- static ɵmod: i0.ɵɵNgModuleDefWithMeta<DrawerModule, [typeof DrawerComponent, typeof LeftDrawerDirective, typeof RightDrawerDirective, typeof TopDrawerDirective, typeof BottomDrawerDirective, typeof MainContentDirective], never, [typeof DrawerComponent, typeof LeftDrawerDirective, typeof RightDrawerDirective, typeof TopDrawerDirective, typeof BottomDrawerDirective, typeof MainContentDirective]>;
56
- static ɵinj: i0.ɵɵInjectorDef<DrawerModule>;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>;
56
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, [typeof DrawerComponent, typeof LeftDrawerDirective, typeof RightDrawerDirective, typeof TopDrawerDirective, typeof BottomDrawerDirective, typeof MainContentDirective], never, [typeof DrawerComponent, typeof LeftDrawerDirective, typeof RightDrawerDirective, typeof TopDrawerDirective, typeof BottomDrawerDirective, typeof MainContentDirective]>;
57
+ static ɵinj: i0.ɵɵInjectorDeclaration<DrawerModule>;
57
58
  }
@@ -8,9 +8,9 @@
8
8
  "typings": "nativescript-community-ui-drawer-angular.d.ts",
9
9
  "sideEffects": false,
10
10
  "dependencies": {
11
- "tslib": "^2.0.0"
11
+ "tslib": "^2.2.0"
12
12
  },
13
13
  "scripts": {
14
- "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1"
14
+ "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.\\n')\" && exit 1"
15
15
  }
16
- }
16
+ }
package/index.d.ts CHANGED
@@ -125,6 +125,7 @@ export declare class Drawer extends GridLayout {
125
125
  };
126
126
  };
127
127
  onLayoutChange(side: Side | VerticalSide, event: EventData): void;
128
+ forceEnsureSize(side: Side | VerticalSide): void;
128
129
  onTapGestureState(args: GestureStateEventData): void;
129
130
  updateIsPanning(state: GestureState): void;
130
131
  applyTrData(trData: {
package/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureState, HandlerType, Manager, install as installGestures } from '@nativescript-community/gesturehandler';
2
- import { Animation, Application, CSSType, Color, GridLayout, Property, Utils, booleanConverter } from '@nativescript/core';
3
- import { AnimationCurve } from '@nativescript/core/ui/enums';
2
+ import { Animation, Application, CSSType, Color, CoreTypes, GridLayout, Property, Utils, booleanConverter } from '@nativescript/core';
4
3
  installGestures(false);
5
4
  const OPEN_DURATION = 200;
6
5
  const CLOSE_DURATION = 200;
@@ -283,7 +282,7 @@ let Drawer = class Drawer extends GridLayout {
283
282
  onGestureTouch(args) {
284
283
  const data = args.data;
285
284
  const side = this.showingSide || this.needToSetSide;
286
- if (data.state !== GestureState.ACTIVE || !side) {
285
+ if (data.state !== GestureState.ACTIVE || !side || this.isAnimating) {
287
286
  return;
288
287
  }
289
288
  if (side === 'left' || side === 'right') {
@@ -551,6 +550,7 @@ let Drawer = class Drawer extends GridLayout {
551
550
  const contentView = event.object;
552
551
  let data;
553
552
  let safeAreaOffset = 0;
553
+ let changed = false;
554
554
  if (side === 'left' || side === 'right') {
555
555
  if (global.isIOS) {
556
556
  const deviceOrientation = UIDevice.currentDevice.orientation;
@@ -562,14 +562,14 @@ let Drawer = class Drawer extends GridLayout {
562
562
  }
563
563
  }
564
564
  const width = Math.ceil(Utils.layout.toDeviceIndependentPixels(contentView.getMeasuredWidth()) + safeAreaOffset);
565
+ changed = width !== this.viewWidth[side];
566
+ this.viewWidth[side] = width;
565
567
  if (this.translationX[side] === 0) {
566
- this.viewWidth[side] = width;
567
568
  data = this.computeTranslationData(side, width);
568
569
  this.translationX[side] = width;
569
570
  }
570
571
  else {
571
572
  const shown = this.viewWidth[side] - this.translationX[side];
572
- this.viewWidth[side] = width;
573
573
  data = this.computeTranslationData(side, width - shown);
574
574
  this.translationX[side] = width - shown;
575
575
  }
@@ -577,22 +577,45 @@ let Drawer = class Drawer extends GridLayout {
577
577
  else {
578
578
  safeAreaOffset = global.isIOS && Application.ios.window.safeAreaInsets ? Application.ios.window.safeAreaInsets.bottom : 0;
579
579
  const height = Math.ceil(Utils.layout.toDeviceIndependentPixels(contentView.getMeasuredHeight()) + safeAreaOffset);
580
+ changed = height !== this.viewHeight[side];
581
+ this.viewHeight[side] = height;
580
582
  if (this.translationY[side] === 0) {
581
- this.viewHeight[side] = height;
582
583
  data = this.computeTranslationData(side, height);
583
584
  this.translationY[side] = height;
584
585
  }
585
586
  else {
586
587
  const shown = this.viewHeight[side] - this.translationY[side];
587
- this.viewHeight[side] = height;
588
588
  data = this.computeTranslationData(side, height - shown);
589
589
  this.translationY[side] = height - shown;
590
590
  }
591
591
  }
592
- if (data) {
592
+ if (changed && data) {
593
593
  setTimeout(() => this.applyTrData(data, side), 0);
594
594
  }
595
595
  }
596
+ forceEnsureSize(side) {
597
+ const contentView = this[side + 'Drawer'];
598
+ let data;
599
+ let safeAreaOffset = 0;
600
+ if (side === 'left' || side === 'right') {
601
+ if (global.isIOS) {
602
+ const deviceOrientation = UIDevice.currentDevice.orientation;
603
+ if (deviceOrientation === 3) {
604
+ safeAreaOffset = Application.ios.window.safeAreaInsets.left;
605
+ }
606
+ else if (deviceOrientation === 4) {
607
+ safeAreaOffset = Application.ios.window.safeAreaInsets.right;
608
+ }
609
+ }
610
+ const width = Math.ceil(Utils.layout.toDeviceIndependentPixels(contentView.getMeasuredWidth()) + safeAreaOffset);
611
+ this.viewWidth[side] = width;
612
+ }
613
+ else {
614
+ safeAreaOffset = global.isIOS && Application.ios.window.safeAreaInsets ? Application.ios.window.safeAreaInsets.bottom : 0;
615
+ const height = Math.ceil(Utils.layout.toDeviceIndependentPixels(contentView.getMeasuredHeight()) + safeAreaOffset);
616
+ this.viewHeight[side] = height;
617
+ }
618
+ }
596
619
  onTapGestureState(args) {
597
620
  const { state } = args.data;
598
621
  if (state === GestureState.BEGAN) {
@@ -664,7 +687,7 @@ let Drawer = class Drawer extends GridLayout {
664
687
  .map((k) => this[k] &&
665
688
  Object.assign({
666
689
  target: this[k],
667
- curve: AnimationCurve.easeInOut,
690
+ curve: CoreTypes.AnimationCurve.easeInOut,
668
691
  duration
669
692
  }, transformAnimationValues(trData[k])))
670
693
  .filter((a) => !!a);
@@ -675,12 +698,18 @@ let Drawer = class Drawer extends GridLayout {
675
698
  console.error('animateToPosition', err);
676
699
  }
677
700
  finally {
678
- this.applyTrData(trData, side);
679
- if (position !== 0) {
680
- }
681
- else {
682
- if (trData.backDrop) {
683
- this.backDrop.visibility = 'hidden';
701
+ if ((position !== 0 && this.showingSide === side) || (position === 0 && !this.showingSide)) {
702
+ this.applyTrData(trData, side);
703
+ if (position !== 0) {
704
+ }
705
+ else {
706
+ const drawer = this[side + 'Drawer'];
707
+ if (drawer) {
708
+ drawer.visibility = 'hidden';
709
+ }
710
+ if (trData.backDrop) {
711
+ this.backDrop.visibility = 'hidden';
712
+ }
684
713
  }
685
714
  }
686
715
  }
@@ -737,6 +766,9 @@ let Drawer = class Drawer extends GridLayout {
737
766
  return;
738
767
  }
739
768
  }
769
+ if (!this.isOpened(side)) {
770
+ this.forceEnsureSize(side);
771
+ }
740
772
  if (side === 'left' || side === 'right') {
741
773
  this.animateToPosition(side, this.viewWidth[side]);
742
774
  }
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-drawer",
3
- "version": "0.0.28",
3
+ "version": "0.0.32",
4
4
  "description": "Easily add a side drawer (side menu) to your projects.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
7
7
  "typings": "./index.d.ts",
8
+ "scripts": {
9
+ "build": "npm run tsc && npm run readme",
10
+ "build.all": "npm run build && npm run build.angular",
11
+ "build.angular": "../../node_modules/.bin/ng-packagr -p ../../src/ui-drawer/angular/package.json -c ../../src/ui-drawer/angular/tsconfig.json",
12
+ "readme": "../../node_modules/.bin/readme generate -c ../../tools/readme/blueprint.json",
13
+ "tsc": "../../node_modules/.bin/cpy '**/*.d.ts' '../../packages/ui-drawer' --parents --cwd=../../src/ui-drawer && ../../node_modules/.bin/tsc -skipLibCheck -d",
14
+ "clean": "../../node_modules/.bin/rimraf ./*.d.ts ./*.js ./*.js.map"
15
+ },
8
16
  "nativescript": {
9
17
  "platforms": {
10
18
  "android": "6.0.0",
@@ -44,7 +52,7 @@
44
52
  "license": "Apache-2.0",
45
53
  "readmeFilename": "README.md",
46
54
  "dependencies": {
47
- "@nativescript-community/gesturehandler": "^0.1.35"
55
+ "@nativescript-community/gesturehandler": "^0.1.49"
48
56
  },
49
- "gitHead": "a99dfe99635b2fcf3e51f1023036617845ff4294"
57
+ "gitHead": "f9061aa7c40ac4afe8956d346b5558a0c03c33db"
50
58
  }
package/vue/index.js CHANGED
@@ -2,7 +2,7 @@ import DrawerComp from './component';
2
2
  const DrawerPlugin = {
3
3
  install(Vue) {
4
4
  Vue.registerElement('Drawer', () => require('../index').Drawer, {
5
- component: DrawerComp,
5
+ component: DrawerComp
6
6
  });
7
7
  }
8
8
  };
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@nativescript/angular"),require("@nativescript-community/ui-drawer")):"function"==typeof define&&define.amd?define("@nativescript-community/ui-drawer-angular",["exports","@angular/core","@nativescript/angular","@nativescript-community/ui-drawer"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["nativescript-community"]=e["nativescript-community"]||{},e["nativescript-community"]["ui-drawer-angular"]={}),e.ng.core,e["ns-angular"],e["ns-drawer"])}(this,(function(e,t,r,n){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=i(t),o=function(){function e(e,t){this.elementRef=e,this.viewContainer=t,this.drawer=this.elementRef.nativeElement}return Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.drawer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gestureEnabled",{set:function(e){this._gestureEnabled=e,this.updateGestureEnabled()},enumerable:!1,configurable:!0}),e.prototype.updateGestureEnabled=function(){this.drawer.gestureEnabled=this._gestureEnabled},e}();o.ɵfac=function(e){return new(e||o)(a.ɵɵdirectiveInject(t.ElementRef),a.ɵɵdirectiveInject(t.ViewContainerRef))},o.ɵcmp=a.ɵɵdefineComponent({type:o,selectors:[["Drawer"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(a.ɵɵprojectionDef(),a.ɵɵprojection(0))},encapsulation:2}),a.ɵsetClassMetadata(o,[{type:t.Component,args:[{selector:"Drawer",template:"<ng-content></ng-content>"}]}],(function(){return[{type:a.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:a.ViewContainerRef,decorators:[{type:t.Inject,args:[t.ViewContainerRef]}]}]}),null);var c=function(e){this._elementRef=e,this._elementRef.nativeElement.id="LeftDrawer"};c.ɵfac=function(e){return new(e||c)(a.ɵɵdirectiveInject(t.ElementRef))},c.ɵdir=a.ɵɵdefineDirective({type:c,selectors:[["","leftDrawer",""]]}),a.ɵsetClassMetadata(c,[{type:t.Directive,args:[{selector:"[leftDrawer]"}]}],(function(){return[{type:a.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]}]}),null);var l=function(e){this._elementRef=e,this._elementRef.nativeElement.id="RightDrawer"};l.ɵfac=function(e){return new(e||l)(a.ɵɵdirectiveInject(t.ElementRef))},l.ɵdir=a.ɵɵdefineDirective({type:l,selectors:[["","rightDrawer",""]]}),a.ɵsetClassMetadata(l,[{type:t.Directive,args:[{selector:"[rightDrawer]"}]}],(function(){return[{type:a.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]}]}),null);var s=function(e){this._elementRef=e,this._elementRef.nativeElement.id="TopDrawer"};s.ɵfac=function(e){return new(e||s)(a.ɵɵdirectiveInject(t.ElementRef))},s.ɵdir=a.ɵɵdefineDirective({type:s,selectors:[["","topDrawer",""]]}),a.ɵsetClassMetadata(s,[{type:t.Directive,args:[{selector:"[topDrawer]"}]}],(function(){return[{type:a.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]}]}),null);var f=function(e){this._elementRef=e,this._elementRef.nativeElement.id="BottomDrawer"};f.ɵfac=function(e){return new(e||f)(a.ɵɵdirectiveInject(t.ElementRef))},f.ɵdir=a.ɵɵdefineDirective({type:f,selectors:[["","bottomDrawer",""]]}),a.ɵsetClassMetadata(f,[{type:t.Directive,args:[{selector:"[bottomDrawer]"}]}],(function(){return[{type:a.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]}]}),null);var u=function(e){this._elementRef=e,this._elementRef.nativeElement.id="MainContent"};u.ɵfac=function(e){return new(e||u)(a.ɵɵdirectiveInject(t.ElementRef))},u.ɵdir=a.ɵɵdefineDirective({type:u,selectors:[["","mainContent",""]]}),a.ɵsetClassMetadata(u,[{type:t.Directive,args:[{selector:"[mainContent]"}]}],(function(){return[{type:a.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]}]}),null);var d={insertChild:function(e,t){var r=e,n=t;"MainContent"===n.id&&(r.mainContent=n),"LeftDrawer"===n.id&&(r.leftDrawer=n),"RightDrawer"===n.id&&(r.rightDrawer=n),"TopDrawer"===n.id&&(r.topDrawer=n),"BottomDrawer"===n.id&&(r.bottomDrawer=n)},removeChild:function(e,t){var r=e,n=t;"MainContent"===n.id&&(r.mainContent=null),"LeftDrawer"===n.id&&(r.leftDrawer=null),"RightDrawer"===n.id&&(r.rightDrawer=null),"TopDrawer"===n.id&&(r.topDrawer=null),"BottomDrawer"===n.id&&(r.bottomDrawer=null)}},p=[c,l,s,f,u];r.registerElement("Drawer",(function(){return n.Drawer}),d);var m=function(){};m.ɵmod=a.ɵɵdefineNgModule({type:m}),m.ɵinj=a.ɵɵdefineInjector({factory:function(e){return new(e||m)}}),("undefined"==typeof ngJitMode||ngJitMode)&&a.ɵɵsetNgModuleScope(m,{declarations:[o,c,l,s,f,u],exports:[o,c,l,s,f,u]}),a.ɵsetClassMetadata(m,[{type:t.NgModule,args:[{declarations:[o,p],exports:[o,p]}]}],null,null),e.BottomDrawerDirective=f,e.DrawerComponent=o,e.DrawerModule=m,e.LeftDrawerDirective=c,e.MainContentDirective=u,e.RightDrawerDirective=l,e.SIDEDRAWER_DIRECTIVES=p,e.TopDrawerDirective=s,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=nativescript-community-ui-drawer-angular.umd.min.js.map
package/react/index.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { GridLayoutAttributes, NativeScriptProps, NSVElement } from "react-nativescript";
3
- import { Color, View } from "@nativescript/core";
4
- import { Drawer as NativeScriptDrawer } from '..';
5
- export declare function registerDrawer(): void;
6
- interface DrawerAttributes extends GridLayoutAttributes {
7
- backdropColor?: Color;
8
- gestureEnabled?: boolean;
9
- leftDrawer?: View;
10
- mainContent?: View;
11
- }
12
- declare global {
13
- module JSX {
14
- interface IntrinsicElements {
15
- drawer: NativeScriptProps<DrawerAttributes, NativeScriptDrawer>;
16
- }
17
- }
18
- }
19
- export declare const Drawer: React.ForwardRefExoticComponent<Pick<NativeScriptProps<DrawerAttributes, NativeScriptDrawer>, "left" | "gestureEnabled" | "backdropColor" | "leftDrawer" | "top" | "mainContent" | "nodeRole" | "children" | "style" | "key" | "onPropertyChange" | "alignSelf" | "android" | "automationText" | "bindingContext" | "className" | "col" | "colSpan" | "column" | "columnSpan" | "cssClasses" | "cssPseudoClasses" | "dock" | "domNode" | "effectiveBorderBottomWidth" | "effectiveBorderLeftWidth" | "effectiveBorderRightWidth" | "effectiveBorderTopWidth" | "effectiveHeight" | "effectiveLeft" | "effectiveMarginBottom" | "effectiveMarginLeft" | "effectiveMarginRight" | "effectiveMarginTop" | "effectiveMinHeight" | "effectiveMinWidth" | "effectivePaddingBottom" | "effectivePaddingLeft" | "effectivePaddingRight" | "effectivePaddingTop" | "effectiveTop" | "effectiveWidth" | "flexGrow" | "flexShrink" | "flexWrapBefore" | "id" | "ios" | "iosOverflowSafeArea" | "iosOverflowSafeAreaEnabled" | "isCollapsed" | "isEnabled" | "isLoaded" | "isUserInteractionEnabled" | "nativeView" | "onAutomationTextChange" | "onBindingContextChange" | "onClassNameChange" | "onIdChange" | "onIosOverflowSafeAreaChange" | "onIosOverflowSafeAreaEnabledChange" | "onIsEnabledChange" | "onIsUserInteractionEnabledChange" | "onOriginXChange" | "onOriginYChange" | "order" | "originX" | "originY" | "page" | "parent" | "parentNode" | "recycleNativeView" | "row" | "rowSpan" | "typeName" | "viewController" | "androidDynamicElevationOffset" | "androidElevation" | "background" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomWidth" | "borderColor" | "borderLeftColor" | "borderLeftWidth" | "borderRadius" | "borderRightColor" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopWidth" | "borderWidth" | "color" | "css" | "cssType" | "height" | "horizontalAlignment" | "isLayoutRequired" | "isLayoutValid" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "modal" | "onAndroidBackPressed" | "onColumnChange" | "onColumnSpanChange" | "onDockChange" | "onDoubleTap" | "onLeftChange" | "onLoaded" | "onLongPress" | "onPan" | "onPinch" | "onRotation" | "onRowChange" | "onRowSpanChange" | "onShowingModally" | "onShownModally" | "onLayoutChanged" | "onSwipe" | "onTap" | "onTopChange" | "onTouch" | "onUnloaded" | "opacity" | "perspective" | "rotate" | "rotateX" | "rotateY" | "scaleX" | "scaleY" | "textTransform" | "translateX" | "translateY" | "verticalAlignment" | "visibility" | "width" | "clipToBounds" | "isPassThroughParentEnabled" | "onClipToBoundsChange" | "onIsPassThroughParentEnabledChange" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "columns" | "rows"> & React.RefAttributes<NSVElement<NativeScriptDrawer>>>;
20
- export {};
package/react/index.js DELETED
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- import { registerElement } from "react-nativescript";
3
- export function registerDrawer() {
4
- registerElement('drawer', () => require('../').Drawer);
5
- }
6
- ;
7
- export const Drawer = React.forwardRef((props, ref) => React.createElement("drawer", Object.assign({}, props, { ref: ref })));
8
- //# sourceMappingURL=index.js.map