@nativescript-community/ui-drawer 0.1.1 → 0.1.4

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,30 @@
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.1.4](https://github.com/nativescript-community/ui-drawer/compare/v0.1.3...v0.1.4) (2022-12-16)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.3](https://github.com/nativescript-community/ui-drawer/compare/v0.1.2...v0.1.3) (2022-12-16)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.1.2](https://github.com/nativescript-community/ui-drawer/compare/v0.1.1...v0.1.2) (2022-12-16)
23
+
24
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
25
+
26
+
27
+
28
+
29
+
6
30
  ## [0.1.1](https://github.com/nativescript-community/ui-drawer/compare/v0.1.0...v0.1.1) (2022-05-12)
7
31
 
8
32
  **Note:** Version bump only for package @nativescript-community/ui-drawer
package/README.md CHANGED
@@ -56,9 +56,12 @@
56
56
  * [Usage in Vue](#usage-in-vue)
57
57
  * [Examples:](#examples-3)
58
58
  * [Demos and Development](#demos-and-development)
59
- * [Setup](#setup)
59
+ * [Repo Setup](#repo-setup)
60
60
  * [Build](#build)
61
61
  * [Demos](#demos)
62
+ * [Contributing](#contributing)
63
+ * [Update repo ](#update-repo-)
64
+ * [Publish](#publish)
62
65
  * [Questions](#questions)
63
66
 
64
67
 
@@ -219,18 +222,18 @@ Vue.use(DrawerPlugin);
219
222
  ## Demos and Development
220
223
 
221
224
 
222
- ### Setup
223
-
224
- To run the demos, you must clone this repo **recursively**.
225
+ ### Repo Setup
225
226
 
227
+ The repo uses submodules. If you did not clone with ` --recursive` then you need to call
226
228
  ```
227
- git clone https://github.com/@nativescript-community/ui-drawer.git --recursive
229
+ git submodule update --init
228
230
  ```
229
231
 
230
- **Install Dependencies:**
231
- ```bash
232
- npm i # or 'yarn install' or 'pnpm install'
233
- ```
232
+ The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
233
+
234
+ To develop and test:
235
+ if you use `yarn` then run `yarn`
236
+ if you use `pnpm` then run `pnpm i`
234
237
 
235
238
  **Interactive Menu:**
236
239
 
@@ -239,9 +242,7 @@ To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`)
239
242
  ### Build
240
243
 
241
244
  ```bash
242
- npm run build
243
-
244
- npm run build.angular # or for Angular
245
+ npm run build.all
245
246
  ```
246
247
 
247
248
  ### Demos
@@ -251,6 +252,38 @@ npm run demo.[ng|react|svelte|vue].[ios|android]
251
252
 
252
253
  npm run demo.svelte.ios # Example
253
254
  ```
255
+
256
+
257
+ [](#contributing)
258
+
259
+ ## Contributing
260
+
261
+ ### Update repo
262
+
263
+ You can update the repo files quite easily
264
+
265
+ First update the submodules
266
+
267
+ ```bash
268
+ npm run update
269
+ ```
270
+
271
+ Then commit the changes
272
+ Then update common files
273
+
274
+ ```bash
275
+ npm run sync
276
+ ```
277
+ Then you can run `yarn|pnpm`, commit changed files if any
278
+
279
+ ### Publish
280
+
281
+ The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
282
+ Simply run
283
+ ```shell
284
+ npm run publish
285
+ ```
286
+
254
287
 
255
288
  [](#questions)
256
289
 
@@ -18,37 +18,37 @@ export declare class DrawerComponent {
18
18
  set gestureEnabled(value: boolean);
19
19
  private updateGestureEnabled;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "Drawer", never, {}, {}, never, ["*"]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "Drawer", never, {}, {}, never, ["*"], false>;
22
22
  }
23
23
  export declare class LeftDrawerDirective {
24
24
  private _elementRef;
25
25
  constructor(_elementRef: ElementRef);
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<LeftDrawerDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<LeftDrawerDirective, "[leftDrawer]", never, {}, {}, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LeftDrawerDirective, "[leftDrawer]", never, {}, {}, never, never, false>;
28
28
  }
29
29
  export declare class RightDrawerDirective {
30
30
  private _elementRef;
31
31
  constructor(_elementRef: ElementRef);
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<RightDrawerDirective, never>;
33
- static ɵdir: i0.ɵɵDirectiveDeclaration<RightDrawerDirective, "[rightDrawer]", never, {}, {}, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RightDrawerDirective, "[rightDrawer]", never, {}, {}, never, never, false>;
34
34
  }
35
35
  export declare class TopDrawerDirective {
36
36
  private _elementRef;
37
37
  constructor(_elementRef: ElementRef);
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<TopDrawerDirective, never>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<TopDrawerDirective, "[topDrawer]", never, {}, {}, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TopDrawerDirective, "[topDrawer]", never, {}, {}, never, never, false>;
40
40
  }
41
41
  export declare class BottomDrawerDirective {
42
42
  private _elementRef;
43
43
  constructor(_elementRef: ElementRef);
44
44
  static ɵfac: i0.ɵɵFactoryDeclaration<BottomDrawerDirective, never>;
45
- static ɵdir: i0.ɵɵDirectiveDeclaration<BottomDrawerDirective, "[bottomDrawer]", never, {}, {}, never>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BottomDrawerDirective, "[bottomDrawer]", never, {}, {}, never, never, false>;
46
46
  }
47
47
  export declare class MainContentDirective {
48
48
  private _elementRef;
49
49
  constructor(_elementRef: ElementRef);
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<MainContentDirective, never>;
51
- static ɵdir: i0.ɵɵDirectiveDeclaration<MainContentDirective, "[mainContent]", never, {}, {}, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MainContentDirective, "[mainContent]", never, {}, {}, never, never, false>;
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 {
@@ -6,13 +6,13 @@
6
6
  "esm2020": "esm2020/nativescript-community-ui-drawer-angular.mjs",
7
7
  "fesm2020": "fesm2020/nativescript-community-ui-drawer-angular.mjs",
8
8
  "fesm2015": "fesm2015/nativescript-community-ui-drawer-angular.mjs",
9
- "typings": "nativescript-community-ui-drawer-angular.d.ts",
9
+ "typings": "index.d.ts",
10
10
  "exports": {
11
11
  "./package.json": {
12
12
  "default": "./package.json"
13
13
  },
14
14
  ".": {
15
- "types": "./nativescript-community-ui-drawer-angular.d.ts",
15
+ "types": "./index.d.ts",
16
16
  "esm2020": "./esm2020/nativescript-community-ui-drawer-angular.mjs",
17
17
  "es2020": "./fesm2020/nativescript-community-ui-drawer-angular.mjs",
18
18
  "es2015": "./fesm2015/nativescript-community-ui-drawer-angular.mjs",
package/index.js CHANGED
@@ -112,7 +112,13 @@ let Drawer = class Drawer extends GridLayout {
112
112
  }
113
113
  initGestures() {
114
114
  const manager = Manager.getInstance();
115
- const gestureHandler = manager.createGestureHandler(HandlerType.PAN, PAN_GESTURE_TAG, Object.assign({ shouldStartGesture: this.shouldStartGesture.bind(this), simultaneousHandlers: this.simultaneousHandlers, waitFor: this.waitFor, minDist: this.gestureMinDist }, (this.gestureHandlerOptions || {})));
115
+ const gestureHandler = manager.createGestureHandler(HandlerType.PAN, PAN_GESTURE_TAG, {
116
+ shouldStartGesture: this.shouldStartGesture.bind(this),
117
+ simultaneousHandlers: this.simultaneousHandlers,
118
+ waitFor: this.waitFor,
119
+ minDist: this.gestureMinDist,
120
+ ...(this.gestureHandlerOptions || {})
121
+ });
116
122
  gestureHandler.on(GestureHandlerTouchEvent, this.onGestureTouch, this);
117
123
  gestureHandler.on(GestureHandlerStateEvent, this.onGestureState, this);
118
124
  gestureHandler.attachToView(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-drawer",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Easily add a side drawer (side menu) to your projects.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
@@ -8,10 +8,10 @@
8
8
  "scripts": {
9
9
  "build": "npm run tsc && npm run readme",
10
10
  "build.all": "npm run build && npm run build.angular",
11
- "build.angular": "../../node_modules/.bin/ng-packagr -p ../../src/ui-drawer/angular/ng-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"
11
+ "build.angular": "ng-packagr -p ../../src/ui-drawer/angular/ng-package.json -c ../../src/ui-drawer/angular/tsconfig.json",
12
+ "readme": "readme generate -c ../../tools/readme/blueprint.json",
13
+ "tsc": "cpy '**/*.d.ts' '../../packages/ui-drawer' --parents --cwd=../../src/ui-drawer && tsc -skipLibCheck -d",
14
+ "clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
15
15
  },
16
16
  "nativescript": {
17
17
  "platforms": {
@@ -52,7 +52,7 @@
52
52
  "license": "Apache-2.0",
53
53
  "readmeFilename": "README.md",
54
54
  "dependencies": {
55
- "@nativescript-community/gesturehandler": "^2.0.5"
55
+ "@nativescript-community/gesturehandler": "^2.0.8"
56
56
  },
57
- "gitHead": "e4f63bef53edc1e7e0f1ec9c5195677cac46f552"
57
+ "gitHead": "b5901291f36fed60121d0c307c6abdc5a9e96e2d"
58
58
  }
package/react/index.js CHANGED
@@ -5,5 +5,5 @@ import { Drawer as NativeScriptDrawer } from '..';
5
5
  export function registerDrawer() {
6
6
  registerElement('drawer', () => require('../').Drawer);
7
7
  }
8
- export const Drawer = React.forwardRef((props, ref) => React.createElement("drawer", Object.assign({}, props, { ref: ref })));
8
+ export const Drawer = React.forwardRef((props, ref) => React.createElement("drawer", { ...props, ref: ref }));
9
9
  //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- /// <amd-module name="@nativescript-community/ui-drawer-angular" />
2
- export * from './index';