@nativescript-community/ui-collectionview-swipemenu 5.3.0 → 5.3.2

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,14 @@
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
+ ## [5.3.2](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.1...v5.3.2) (2023-10-20)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-collectionview-swipemenu
9
+
10
+ ## [5.3.1](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.0...v5.3.1) (2023-10-18)
11
+
12
+ **Note:** Version bump only for package @nativescript-community/ui-collectionview-swipemenu
13
+
6
14
  # [5.3.0](https://github.com/nativescript-community/ui-collectionview/compare/v5.2.0...v5.3.0) (2023-10-18)
7
15
 
8
16
  **Note:** Version bump only for package @nativescript-community/ui-collectionview-swipemenu
@@ -0,0 +1,224 @@
1
+ import { Component, Directive, ElementRef, EmbeddedViewRef, Inject, NgModule, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { SwipeMenu, install as installSwipeMenu } from '@nativescript-community/ui-collectionview-swipemenu';
3
+ import { registerElement } from '@nativescript/angular';
4
+ import * as i0 from "@angular/core";
5
+ const _c0 = ["*"];
6
+ installSwipeMenu();
7
+ const LEFTDRAWER = 'LeftSwipeMenu';
8
+ const RIGHTDRAWER = 'RightSwipeMenu';
9
+ const TOPDRAWER = 'TopSwipeMenu';
10
+ const BOTTOMDRAWER = 'BottomSwipeMenu';
11
+ const MAINCONTENT = 'MainContent';
12
+ /**
13
+ * This is the SideSwipeMenu component. It separates your mobile app's screen
14
+ * into a main part and a menu part whereby the menu part is shown upon a swipe
15
+ * gesture using a transition effect.
16
+ */
17
+ export class SwipeMenuComponent {
18
+ elementRef;
19
+ viewContainer;
20
+ swipemenu;
21
+ mainTemplate;
22
+ swipemenuTemplate;
23
+ _gestureEnabled;
24
+ constructor(elementRef, viewContainer) {
25
+ this.elementRef = elementRef;
26
+ this.viewContainer = viewContainer;
27
+ this.swipemenu = this.elementRef.nativeElement;
28
+ }
29
+ get nativeElement() {
30
+ return this.swipemenu;
31
+ }
32
+ set gestureEnabled(value) {
33
+ this._gestureEnabled = value;
34
+ this.updateGestureEnabled();
35
+ }
36
+ updateGestureEnabled() {
37
+ this.swipemenu.gestureEnabled = this._gestureEnabled;
38
+ }
39
+ static ɵfac = function SwipeMenuComponent_Factory(t) { return new (t || SwipeMenuComponent)(i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(ViewContainerRef)); };
40
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SwipeMenuComponent, selectors: [["SwipeMenu"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function SwipeMenuComponent_Template(rf, ctx) { if (rf & 1) {
41
+ i0.ɵɵprojectionDef();
42
+ i0.ɵɵprojection(0);
43
+ } }, encapsulation: 2 });
44
+ }
45
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SwipeMenuComponent, [{
46
+ type: Component,
47
+ args: [{
48
+ selector: 'SwipeMenu',
49
+ template: '<ng-content></ng-content>'
50
+ }]
51
+ }], function () { return [{ type: i0.ElementRef, decorators: [{
52
+ type: Inject,
53
+ args: [ElementRef]
54
+ }] }, { type: i0.ViewContainerRef, decorators: [{
55
+ type: Inject,
56
+ args: [ViewContainerRef]
57
+ }] }]; }, null); })();
58
+ /**
59
+ * Directive identifying the left swipemenu
60
+ */
61
+ export class LeftSwipeMenuDirective {
62
+ _elementRef;
63
+ constructor(_elementRef) {
64
+ this._elementRef = _elementRef;
65
+ this._elementRef.nativeElement.id = LEFTDRAWER;
66
+ }
67
+ static ɵfac = function LeftSwipeMenuDirective_Factory(t) { return new (t || LeftSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
68
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftSwipeMenuDirective, selectors: [["", "leftSwipeMenu", ""]] });
69
+ }
70
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LeftSwipeMenuDirective, [{
71
+ type: Directive,
72
+ args: [{
73
+ selector: '[leftSwipeMenu]'
74
+ }]
75
+ }], function () { return [{ type: i0.ElementRef, decorators: [{
76
+ type: Inject,
77
+ args: [ElementRef]
78
+ }] }]; }, null); })();
79
+ /**
80
+ * Directive identifying the right swipemenu
81
+ */
82
+ export class RightSwipeMenuDirective {
83
+ _elementRef;
84
+ constructor(_elementRef) {
85
+ this._elementRef = _elementRef;
86
+ this._elementRef.nativeElement.id = RIGHTDRAWER;
87
+ }
88
+ static ɵfac = function RightSwipeMenuDirective_Factory(t) { return new (t || RightSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
89
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightSwipeMenuDirective, selectors: [["", "rightSwipeMenu", ""]] });
90
+ }
91
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RightSwipeMenuDirective, [{
92
+ type: Directive,
93
+ args: [{
94
+ selector: '[rightSwipeMenu]'
95
+ }]
96
+ }], function () { return [{ type: i0.ElementRef, decorators: [{
97
+ type: Inject,
98
+ args: [ElementRef]
99
+ }] }]; }, null); })();
100
+ /**
101
+ * Directive identifying the right swipemenu
102
+ */
103
+ export class TopSwipeMenuDirective {
104
+ _elementRef;
105
+ constructor(_elementRef) {
106
+ this._elementRef = _elementRef;
107
+ this._elementRef.nativeElement.id = TOPDRAWER;
108
+ }
109
+ static ɵfac = function TopSwipeMenuDirective_Factory(t) { return new (t || TopSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
110
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TopSwipeMenuDirective, selectors: [["", "topSwipeMenu", ""]] });
111
+ }
112
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TopSwipeMenuDirective, [{
113
+ type: Directive,
114
+ args: [{
115
+ selector: '[topSwipeMenu]'
116
+ }]
117
+ }], function () { return [{ type: i0.ElementRef, decorators: [{
118
+ type: Inject,
119
+ args: [ElementRef]
120
+ }] }]; }, null); })();
121
+ /**
122
+ * Directive identifying the right swipemenu
123
+ */
124
+ export class BottomSwipeMenuDirective {
125
+ _elementRef;
126
+ constructor(_elementRef) {
127
+ this._elementRef = _elementRef;
128
+ this._elementRef.nativeElement.id = BOTTOMDRAWER;
129
+ }
130
+ static ɵfac = function BottomSwipeMenuDirective_Factory(t) { return new (t || BottomSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
131
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BottomSwipeMenuDirective, selectors: [["", "bottomSwipeMenu", ""]] });
132
+ }
133
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BottomSwipeMenuDirective, [{
134
+ type: Directive,
135
+ args: [{
136
+ selector: '[bottomSwipeMenu]'
137
+ }]
138
+ }], function () { return [{ type: i0.ElementRef, decorators: [{
139
+ type: Inject,
140
+ args: [ElementRef]
141
+ }] }]; }, null); })();
142
+ /**
143
+ * Directive identifying the main content.
144
+ */
145
+ export class MainContentDirective {
146
+ _elementRef;
147
+ constructor(_elementRef) {
148
+ this._elementRef = _elementRef;
149
+ this._elementRef.nativeElement.id = MAINCONTENT;
150
+ }
151
+ static ɵfac = function MainContentDirective_Factory(t) { return new (t || MainContentDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
152
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MainContentDirective, selectors: [["", "mainContent", ""]] });
153
+ }
154
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainContentDirective, [{
155
+ type: Directive,
156
+ args: [{
157
+ selector: '[mainContent]'
158
+ }]
159
+ }], function () { return [{ type: i0.ElementRef, decorators: [{
160
+ type: Inject,
161
+ args: [ElementRef]
162
+ }] }]; }, null); })();
163
+ const sideSwipeMenuMeta = {
164
+ insertChild: (parent, child) => {
165
+ const swipemenu = parent;
166
+ const childView = child;
167
+ if (childView.id === MAINCONTENT) {
168
+ swipemenu.mainContent = childView;
169
+ }
170
+ if (childView.id === LEFTDRAWER) {
171
+ swipemenu.leftDrawer = childView;
172
+ }
173
+ if (childView.id === RIGHTDRAWER) {
174
+ swipemenu.rightDrawer = childView;
175
+ }
176
+ if (childView.id === TOPDRAWER) {
177
+ swipemenu.topDrawer = childView;
178
+ }
179
+ if (childView.id === BOTTOMDRAWER) {
180
+ swipemenu.bottomDrawer = childView;
181
+ }
182
+ },
183
+ removeChild: (parent, child) => {
184
+ const swipemenu = parent;
185
+ const childView = child;
186
+ if (childView.id === MAINCONTENT) {
187
+ swipemenu.mainContent = null;
188
+ }
189
+ if (childView.id === LEFTDRAWER) {
190
+ swipemenu.leftDrawer = null;
191
+ }
192
+ if (childView.id === RIGHTDRAWER) {
193
+ swipemenu.rightDrawer = null;
194
+ }
195
+ if (childView.id === TOPDRAWER) {
196
+ swipemenu.topDrawer = null;
197
+ }
198
+ if (childView.id === BOTTOMDRAWER) {
199
+ swipemenu.bottomDrawer = null;
200
+ }
201
+ }
202
+ };
203
+ /**
204
+ * Directives identifying the SwipeMenu.
205
+ */
206
+ export const SIDEDRAWER_DIRECTIVES = [LeftSwipeMenuDirective, RightSwipeMenuDirective, TopSwipeMenuDirective, BottomSwipeMenuDirective, MainContentDirective];
207
+ registerElement('SwipeMenu', () => SwipeMenu, sideSwipeMenuMeta);
208
+ /**
209
+ * NgModule containing all of the RadSideSwipeMenu directives.
210
+ */
211
+ export class SwipeMenuModule {
212
+ static ɵfac = function SwipeMenuModule_Factory(t) { return new (t || SwipeMenuModule)(); };
213
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SwipeMenuModule });
214
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
215
+ }
216
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SwipeMenuModule, [{
217
+ type: NgModule,
218
+ args: [{
219
+ declarations: [SwipeMenuComponent, SIDEDRAWER_DIRECTIVES],
220
+ exports: [SwipeMenuComponent, SIDEDRAWER_DIRECTIVES]
221
+ }]
222
+ }], null, null); })();
223
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SwipeMenuModule, { declarations: [SwipeMenuComponent, LeftSwipeMenuDirective, RightSwipeMenuDirective, TopSwipeMenuDirective, BottomSwipeMenuDirective, MainContentDirective], exports: [SwipeMenuComponent, LeftSwipeMenuDirective, RightSwipeMenuDirective, TopSwipeMenuDirective, BottomSwipeMenuDirective, MainContentDirective] }); })();
224
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3N3aXBlbWVudS9hbmd1bGFyL21vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsZUFBZSxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsV0FBVyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25JLE9BQU8sRUFBRSxTQUFTLEVBQUUsT0FBTyxJQUFJLGdCQUFnQixFQUFFLE1BQU0scURBQXFELENBQUM7QUFDN0csT0FBTyxFQUF5QixlQUFlLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7O0FBQy9FLGdCQUFnQixFQUFFLENBQUM7QUFDbkIsTUFBTSxVQUFVLEdBQVcsZUFBZSxDQUFDO0FBQzNDLE1BQU0sV0FBVyxHQUFXLGdCQUFnQ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XG5cbiAgICAgICAgaWYgKGNoaWxkVmlldy5pZCA9PT0gTUFJTkNPTlRFTlQpIHtcbiAgICAgICAgICAgIHN3aXBlbWVudS5tYWluQ29udGVudCA9IGNoaWxkVmlldztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChjaGlsZFZpZXcuaWQgPT09IExFRlREUkFXRVIpIHtcbiAgICAgICAgICAgIHN3aXBlbWVudS5sZWZ0RHJhd2VyID0gY2hpbGRWaWV3O1xuICAgICAgICB9XG4gICAgICAgIGlmIChjaGlsZFZpZXcuaWQgPT09IFJJR0hURFJBV0VSKSB7XG4gICAgICAgICAgICBzd2lwZW1lbnUucmlnaHREcmF3ZXIgPSBjaGlsZFZpZXc7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGNoaWxkVmlldy5pZCA9PT0gVE9QRFJBV0VSKSB7XG4gICAgICAgICAgICBzd2lwZW1lbnUudG9wRHJhd2VyID0gY2hpbGRWaWV3O1xuICAgICAgICB9XG4gICAgICAgIGlmIChjaGlsZFZpZXcuaWQgPT09IEJPVFRPTURSQVdFUikge1xuICAgICAgICAgICAgc3dpcGVtZW51LmJvdHRvbURyYXdlciA9IGNoaWxkVmlldztcbiAgICAgICAgfVxuICAgIH0sXG4gICAgcmVtb3ZlQ2hpbGQ6IChwYXJlbnQ6IE5nVmlldywgY2hpbGQ6IE5nVmlldykgPT4ge1xuICAgICAgICBjb25zdCBzd2lwZW1lbnUgPSBwYXJlbnQgYXMgYW55IGFzIFN3aXBlTWVudTtcbiAgICAgICAgY29uc3QgY2hpbGRWaWV3ID0gY2hpbGQ7XG5cbiAgICAgICAgaWYgKGNoaWxkVmlldy5pZCA9PT0gTUFJTkNPTlRFTlQpIHtcbiAgICAgICAgICAgIHN3aXBlbWVudS5tYWluQ29udGVudCA9IG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoY2hpbGRWaWV3LmlkID09PSBMRUZURFJBV0VSKSB7XG4gICAgICAgICAgICBzd2lwZW1lbnUubGVm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SlcbmV4cG9ydCBjbGFzcyBTd2lwZU1lbnVNb2R1bGUge31cbiJdfQ==
@@ -16,6 +16,12 @@ const MAINCONTENT = 'MainContent';
16
16
  * gesture using a transition effect.
17
17
  */
18
18
  class SwipeMenuComponent {
19
+ elementRef;
20
+ viewContainer;
21
+ swipemenu;
22
+ mainTemplate;
23
+ swipemenuTemplate;
24
+ _gestureEnabled;
19
25
  constructor(elementRef, viewContainer) {
20
26
  this.elementRef = elementRef;
21
27
  this.viewContainer = viewContainer;
@@ -31,12 +37,12 @@ class SwipeMenuComponent {
31
37
  updateGestureEnabled() {
32
38
  this.swipemenu.gestureEnabled = this._gestureEnabled;
33
39
  }
40
+ static ɵfac = function SwipeMenuComponent_Factory(t) { return new (t || SwipeMenuComponent)(i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(ViewContainerRef)); };
41
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SwipeMenuComponent, selectors: [["SwipeMenu"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function SwipeMenuComponent_Template(rf, ctx) { if (rf & 1) {
42
+ i0.ɵɵprojectionDef();
43
+ i0.ɵɵprojection(0);
44
+ } }, encapsulation: 2 });
34
45
  }
35
- SwipeMenuComponent.ɵfac = function SwipeMenuComponent_Factory(t) { return new (t || SwipeMenuComponent)(i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(ViewContainerRef)); };
36
- SwipeMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SwipeMenuComponent, selectors: [["SwipeMenu"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function SwipeMenuComponent_Template(rf, ctx) { if (rf & 1) {
37
- i0.ɵɵprojectionDef();
38
- i0.ɵɵprojection(0);
39
- } }, encapsulation: 2 });
40
46
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SwipeMenuComponent, [{
41
47
  type: Component,
42
48
  args: [{
@@ -54,13 +60,14 @@ SwipeMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SwipeMen
54
60
  * Directive identifying the left swipemenu
55
61
  */
56
62
  class LeftSwipeMenuDirective {
63
+ _elementRef;
57
64
  constructor(_elementRef) {
58
65
  this._elementRef = _elementRef;
59
66
  this._elementRef.nativeElement.id = LEFTDRAWER;
60
67
  }
68
+ static ɵfac = function LeftSwipeMenuDirective_Factory(t) { return new (t || LeftSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
69
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftSwipeMenuDirective, selectors: [["", "leftSwipeMenu", ""]] });
61
70
  }
62
- LeftSwipeMenuDirective.ɵfac = function LeftSwipeMenuDirective_Factory(t) { return new (t || LeftSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
63
- LeftSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftSwipeMenuDirective, selectors: [["", "leftSwipeMenu", ""]] });
64
71
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LeftSwipeMenuDirective, [{
65
72
  type: Directive,
66
73
  args: [{
@@ -74,13 +81,14 @@ LeftSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Left
74
81
  * Directive identifying the right swipemenu
75
82
  */
76
83
  class RightSwipeMenuDirective {
84
+ _elementRef;
77
85
  constructor(_elementRef) {
78
86
  this._elementRef = _elementRef;
79
87
  this._elementRef.nativeElement.id = RIGHTDRAWER;
80
88
  }
89
+ static ɵfac = function RightSwipeMenuDirective_Factory(t) { return new (t || RightSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
90
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightSwipeMenuDirective, selectors: [["", "rightSwipeMenu", ""]] });
81
91
  }
82
- RightSwipeMenuDirective.ɵfac = function RightSwipeMenuDirective_Factory(t) { return new (t || RightSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
83
- RightSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightSwipeMenuDirective, selectors: [["", "rightSwipeMenu", ""]] });
84
92
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RightSwipeMenuDirective, [{
85
93
  type: Directive,
86
94
  args: [{
@@ -94,13 +102,14 @@ RightSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Rig
94
102
  * Directive identifying the right swipemenu
95
103
  */
96
104
  class TopSwipeMenuDirective {
105
+ _elementRef;
97
106
  constructor(_elementRef) {
98
107
  this._elementRef = _elementRef;
99
108
  this._elementRef.nativeElement.id = TOPDRAWER;
100
109
  }
110
+ static ɵfac = function TopSwipeMenuDirective_Factory(t) { return new (t || TopSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
111
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TopSwipeMenuDirective, selectors: [["", "topSwipeMenu", ""]] });
101
112
  }
102
- TopSwipeMenuDirective.ɵfac = function TopSwipeMenuDirective_Factory(t) { return new (t || TopSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
103
- TopSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TopSwipeMenuDirective, selectors: [["", "topSwipeMenu", ""]] });
104
113
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TopSwipeMenuDirective, [{
105
114
  type: Directive,
106
115
  args: [{
@@ -114,13 +123,14 @@ TopSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TopSw
114
123
  * Directive identifying the right swipemenu
115
124
  */
116
125
  class BottomSwipeMenuDirective {
126
+ _elementRef;
117
127
  constructor(_elementRef) {
118
128
  this._elementRef = _elementRef;
119
129
  this._elementRef.nativeElement.id = BOTTOMDRAWER;
120
130
  }
131
+ static ɵfac = function BottomSwipeMenuDirective_Factory(t) { return new (t || BottomSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
132
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BottomSwipeMenuDirective, selectors: [["", "bottomSwipeMenu", ""]] });
121
133
  }
122
- BottomSwipeMenuDirective.ɵfac = function BottomSwipeMenuDirective_Factory(t) { return new (t || BottomSwipeMenuDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
123
- BottomSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BottomSwipeMenuDirective, selectors: [["", "bottomSwipeMenu", ""]] });
124
134
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BottomSwipeMenuDirective, [{
125
135
  type: Directive,
126
136
  args: [{
@@ -134,13 +144,14 @@ BottomSwipeMenuDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Bo
134
144
  * Directive identifying the main content.
135
145
  */
136
146
  class MainContentDirective {
147
+ _elementRef;
137
148
  constructor(_elementRef) {
138
149
  this._elementRef = _elementRef;
139
150
  this._elementRef.nativeElement.id = MAINCONTENT;
140
151
  }
152
+ static ɵfac = function MainContentDirective_Factory(t) { return new (t || MainContentDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
153
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MainContentDirective, selectors: [["", "mainContent", ""]] });
141
154
  }
142
- MainContentDirective.ɵfac = function MainContentDirective_Factory(t) { return new (t || MainContentDirective)(i0.ɵɵdirectiveInject(ElementRef)); };
143
- MainContentDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MainContentDirective, selectors: [["", "mainContent", ""]] });
144
155
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainContentDirective, [{
145
156
  type: Directive,
146
157
  args: [{
@@ -199,10 +210,10 @@ registerElement('SwipeMenu', () => SwipeMenu, sideSwipeMenuMeta);
199
210
  * NgModule containing all of the RadSideSwipeMenu directives.
200
211
  */
201
212
  class SwipeMenuModule {
213
+ static ɵfac = function SwipeMenuModule_Factory(t) { return new (t || SwipeMenuModule)(); };
214
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SwipeMenuModule });
215
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
202
216
  }
203
- SwipeMenuModule.ɵfac = function SwipeMenuModule_Factory(t) { return new (t || SwipeMenuModule)(); };
204
- SwipeMenuModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SwipeMenuModule });
205
- SwipeMenuModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
206
217
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SwipeMenuModule, [{
207
218
  type: NgModule,
208
219
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"nativescript-community-ui-collectionview-swipemenu-angular.mjs","sources":["../../../../src/swipemenu/angular/module.ts","../../../../src/swipemenu/angular/nativescript-community-ui-collectionview-swipemenu-angular.ts"],"sourcesContent":["import { Component, Directive, ElementRef, EmbeddedViewRef, Inject, NgModule, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { SwipeMenu, install as installSwipeMenu } from '@nativescript-community/ui-collectionview-swipemenu';\nimport { NgView, ViewClassMeta, registerElement } from '@nativescript/angular';\ninstallSwipeMenu();\nconst LEFTDRAWER: string = 'LeftSwipeMenu';\nconst RIGHTDRAWER: string = 'RightSwipeMenu';\nconst TOPDRAWER: string = 'TopSwipeMenu';\nconst BOTTOMDRAWER: string = 'BottomSwipeMenu';\nconst MAINCONTENT: string = 'MainContent';\n\nexport interface ItemEventArgs {\n object: any;\n view: EmbeddedViewRef<any>;\n returnValue?: boolean;\n}\n\n/**\n * This is the SideSwipeMenu component. It separates your mobile app's screen\n * into a main part and a menu part whereby the menu part is shown upon a swipe\n * gesture using a transition effect.\n */\n@Component({\n selector: 'SwipeMenu',\n template: '<ng-content></ng-content>'\n})\nexport class SwipeMenuComponent {\n public swipemenu: SwipeMenu;\n public mainTemplate: TemplateRef<ElementRef>;\n public swipemenuTemplate: TemplateRef<ElementRef>;\n\n private _gestureEnabled: boolean;\n\n constructor(@Inject(ElementRef) public elementRef: ElementRef, @Inject(ViewContainerRef) private viewContainer: ViewContainerRef) {\n this.swipemenu = this.elementRef.nativeElement;\n }\n\n public get nativeElement(): SwipeMenu {\n return this.swipemenu;\n }\n\n set gestureEnabled(value: boolean) {\n this._gestureEnabled = value;\n this.updateGestureEnabled();\n }\n\n private updateGestureEnabled() {\n this.swipemenu.gestureEnabled = this._gestureEnabled;\n }\n}\n\n/**\n * Directive identifying the left swipemenu\n */\n@Directive({\n selector: '[leftSwipeMenu]'\n})\nexport class LeftSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = LEFTDRAWER;\n }\n}\n/**\n * Directive identifying the right swipemenu\n */\n@Directive({\n selector: '[rightSwipeMenu]'\n})\nexport class RightSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = RIGHTDRAWER;\n }\n}\n\n/**\n * Directive identifying the right swipemenu\n */\n@Directive({\n selector: '[topSwipeMenu]'\n})\nexport class TopSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = TOPDRAWER;\n }\n}\n\n/**\n * Directive identifying the right swipemenu\n */\n@Directive({\n selector: '[bottomSwipeMenu]'\n})\nexport class BottomSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = BOTTOMDRAWER;\n }\n}\n\n/**\n * Directive identifying the main content.\n */\n@Directive({\n selector: '[mainContent]'\n})\nexport class MainContentDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = MAINCONTENT;\n }\n}\n\nconst sideSwipeMenuMeta: ViewClassMeta = {\n insertChild: (parent: NgView, child: NgView) => {\n const swipemenu = parent as any as SwipeMenu;\n const childView = child;\n\n if (childView.id === MAINCONTENT) {\n swipemenu.mainContent = childView;\n }\n\n if (childView.id === LEFTDRAWER) {\n swipemenu.leftDrawer = childView;\n }\n if (childView.id === RIGHTDRAWER) {\n swipemenu.rightDrawer = childView;\n }\n if (childView.id === TOPDRAWER) {\n swipemenu.topDrawer = childView;\n }\n if (childView.id === BOTTOMDRAWER) {\n swipemenu.bottomDrawer = childView;\n }\n },\n removeChild: (parent: NgView, child: NgView) => {\n const swipemenu = parent as any as SwipeMenu;\n const childView = child;\n\n if (childView.id === MAINCONTENT) {\n swipemenu.mainContent = null;\n }\n\n if (childView.id === LEFTDRAWER) {\n swipemenu.leftDrawer = null;\n }\n if (childView.id === RIGHTDRAWER) {\n swipemenu.rightDrawer = null;\n }\n if (childView.id === TOPDRAWER) {\n swipemenu.topDrawer = null;\n }\n if (childView.id === BOTTOMDRAWER) {\n swipemenu.bottomDrawer = null;\n }\n }\n};\n\n/**\n * Directives identifying the SwipeMenu.\n */\nexport const SIDEDRAWER_DIRECTIVES = [LeftSwipeMenuDirective, RightSwipeMenuDirective, TopSwipeMenuDirective, BottomSwipeMenuDirective, MainContentDirective];\n\nregisterElement('SwipeMenu', () => SwipeMenu, sideSwipeMenuMeta);\n\n/**\n * NgModule containing all of the RadSideSwipeMenu directives.\n */\n@NgModule({\n declarations: [SwipeMenuComponent, SIDEDRAWER_DIRECTIVES],\n exports: [SwipeMenuComponent, SIDEDRAWER_DIRECTIVES]\n})\nexport class SwipeMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["installSwipeMenu"],"mappings":";;;;;;AAGAA,OAAgB,EAAE,CAAC;AACnB,MAAM,UAAU,GAAW,eAAe,CAAC;AAC3C,MAAM,WAAW,GAAW,gBAAgB,CA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,YAAY,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;AACzD,gBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;AACvD,aAAA,CAAA;;wFACY,eAAe,EAAA,EAAA,YAAA,EAAA,CA/If,kBAAkB,EA+BlB,sBAAsB,EAWtB,uBAAuB,EAYvB,qBAAqB,EAYrB,wBAAwB,EAYxB,oBAAoB,CA9EpB,EAAA,OAAA,EAAA,CAAA,kBAAkB,EA+BlB,sBAAsB,EAWtB,uBAAuB,EAYvB,qBAAqB,EAYrB,wBAAwB,EAYxB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACvGjC;;AAEG;;;;"}
1
+ {"version":3,"file":"nativescript-community-ui-collectionview-swipemenu-angular.mjs","sources":["../../../../src/swipemenu/angular/module.ts","../../../../src/swipemenu/angular/nativescript-community-ui-collectionview-swipemenu-angular.ts"],"sourcesContent":["import { Component, Directive, ElementRef, EmbeddedViewRef, Inject, NgModule, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { SwipeMenu, install as installSwipeMenu } from '@nativescript-community/ui-collectionview-swipemenu';\nimport { NgView, ViewClassMeta, registerElement } from '@nativescript/angular';\ninstallSwipeMenu();\nconst LEFTDRAWER: string = 'LeftSwipeMenu';\nconst RIGHTDRAWER: string = 'RightSwipeMenu';\nconst TOPDRAWER: string = 'TopSwipeMenu';\nconst BOTTOMDRAWER: string = 'BottomSwipeMenu';\nconst MAINCONTENT: string = 'MainContent';\n\nexport interface ItemEventArgs {\n object: any;\n view: EmbeddedViewRef<any>;\n returnValue?: boolean;\n}\n\n/**\n * This is the SideSwipeMenu component. It separates your mobile app's screen\n * into a main part and a menu part whereby the menu part is shown upon a swipe\n * gesture using a transition effect.\n */\n@Component({\n selector: 'SwipeMenu',\n template: '<ng-content></ng-content>'\n})\nexport class SwipeMenuComponent {\n public swipemenu: SwipeMenu;\n public mainTemplate: TemplateRef<ElementRef>;\n public swipemenuTemplate: TemplateRef<ElementRef>;\n\n private _gestureEnabled: boolean;\n\n constructor(@Inject(ElementRef) public elementRef: ElementRef, @Inject(ViewContainerRef) private viewContainer: ViewContainerRef) {\n this.swipemenu = this.elementRef.nativeElement;\n }\n\n public get nativeElement(): SwipeMenu {\n return this.swipemenu;\n }\n\n set gestureEnabled(value: boolean) {\n this._gestureEnabled = value;\n this.updateGestureEnabled();\n }\n\n private updateGestureEnabled() {\n this.swipemenu.gestureEnabled = this._gestureEnabled;\n }\n}\n\n/**\n * Directive identifying the left swipemenu\n */\n@Directive({\n selector: '[leftSwipeMenu]'\n})\nexport class LeftSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = LEFTDRAWER;\n }\n}\n/**\n * Directive identifying the right swipemenu\n */\n@Directive({\n selector: '[rightSwipeMenu]'\n})\nexport class RightSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = RIGHTDRAWER;\n }\n}\n\n/**\n * Directive identifying the right swipemenu\n */\n@Directive({\n selector: '[topSwipeMenu]'\n})\nexport class TopSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = TOPDRAWER;\n }\n}\n\n/**\n * Directive identifying the right swipemenu\n */\n@Directive({\n selector: '[bottomSwipeMenu]'\n})\nexport class BottomSwipeMenuDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = BOTTOMDRAWER;\n }\n}\n\n/**\n * Directive identifying the main content.\n */\n@Directive({\n selector: '[mainContent]'\n})\nexport class MainContentDirective {\n constructor(@Inject(ElementRef) private _elementRef: ElementRef) {\n this._elementRef.nativeElement.id = MAINCONTENT;\n }\n}\n\nconst sideSwipeMenuMeta: ViewClassMeta = {\n insertChild: (parent: NgView, child: NgView) => {\n const swipemenu = parent as any as SwipeMenu;\n const childView = child;\n\n if (childView.id === MAINCONTENT) {\n swipemenu.mainContent = childView;\n }\n\n if (childView.id === LEFTDRAWER) {\n swipemenu.leftDrawer = childView;\n }\n if (childView.id === RIGHTDRAWER) {\n swipemenu.rightDrawer = childView;\n }\n if (childView.id === TOPDRAWER) {\n swipemenu.topDrawer = childView;\n }\n if (childView.id === BOTTOMDRAWER) {\n swipemenu.bottomDrawer = childView;\n }\n },\n removeChild: (parent: NgView, child: NgView) => {\n const swipemenu = parent as any as SwipeMenu;\n const childView = child;\n\n if (childView.id === MAINCONTENT) {\n swipemenu.mainContent = null;\n }\n\n if (childView.id === LEFTDRAWER) {\n swipemenu.leftDrawer = null;\n }\n if (childView.id === RIGHTDRAWER) {\n swipemenu.rightDrawer = null;\n }\n if (childView.id === TOPDRAWER) {\n swipemenu.topDrawer = null;\n }\n if (childView.id === BOTTOMDRAWER) {\n swipemenu.bottomDrawer = null;\n }\n }\n};\n\n/**\n * Directives identifying the SwipeMenu.\n */\nexport const SIDEDRAWER_DIRECTIVES = [LeftSwipeMenuDirective, RightSwipeMenuDirective, TopSwipeMenuDirective, BottomSwipeMenuDirective, MainContentDirective];\n\nregisterElement('SwipeMenu', () => SwipeMenu, sideSwipeMenuMeta);\n\n/**\n * NgModule containing all of the RadSideSwipeMenu directives.\n */\n@NgModule({\n declarations: [SwipeMenuComponent, SIDEDRAWER_DIRECTIVES],\n exports: [SwipeMenuComponent, SIDEDRAWER_DIRECTIVES]\n})\nexport class SwipeMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["installSwipeMenu"],"mappings":";;;;;;AAGAA,OAAgB,EAAE,CAAC;AACnB,MAAM,UAAU,GAAW,eAAe,CAAC;AAC3C,MAAM,WAAW,GAAW,gBAAgB,CAAC;AAC7C,MAAM,SAAS,GAAW,cAAc,CAAC;AACzC,MAAM,YAAY,GAAW,iBAAiB,CAAC;AAC/C,MAAM,WAAW,GAAW,aAAa,CAAC;AAQ1C;;;;AAIG;MAKU,kBAAkB,CAAA;AAOY,IAAA,UAA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AA,CAAA;;;uFAAf,eAAe,EAAA,CAAA;cAJ3B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;AACzD,gBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;AACvD,aAAA,CAAA;;wFACY,eAAe,EAAA,EAAA,YAAA,EAAA,CA/If,kBAAkB,EA+BlB,sBAAsB,EAWtB,uBAAuB,EAYvB,qBAAqB,EAYrB,wBAAwB,EAYxB,oBAAoB,CA9EpB,EAAA,OAAA,EAAA,CAAA,kBAAkB,EA+BlB,sBAAsB,EAWtB,uBAAuB,EAYvB,qBAAqB,EAYrB,wBAAwB,EAYxB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACvGjC;;AAEG;;;;"}
@@ -0,0 +1 @@
1
+ export * from './module';
@@ -0,0 +1,84 @@
1
+ import { ElementRef, EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { SwipeMenu } from '@nativescript-community/ui-collectionview-swipemenu';
3
+ import * as i0 from "@angular/core";
4
+ export interface ItemEventArgs {
5
+ object: any;
6
+ view: EmbeddedViewRef<any>;
7
+ returnValue?: boolean;
8
+ }
9
+ /**
10
+ * This is the SideSwipeMenu component. It separates your mobile app's screen
11
+ * into a main part and a menu part whereby the menu part is shown upon a swipe
12
+ * gesture using a transition effect.
13
+ */
14
+ export declare class SwipeMenuComponent {
15
+ elementRef: ElementRef;
16
+ private viewContainer;
17
+ swipemenu: SwipeMenu;
18
+ mainTemplate: TemplateRef<ElementRef>;
19
+ swipemenuTemplate: TemplateRef<ElementRef>;
20
+ private _gestureEnabled;
21
+ constructor(elementRef: ElementRef, viewContainer: ViewContainerRef);
22
+ get nativeElement(): SwipeMenu;
23
+ set gestureEnabled(value: boolean);
24
+ private updateGestureEnabled;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwipeMenuComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwipeMenuComponent, "SwipeMenu", never, {}, {}, never, ["*"], false, never>;
27
+ }
28
+ /**
29
+ * Directive identifying the left swipemenu
30
+ */
31
+ export declare class LeftSwipeMenuDirective {
32
+ private _elementRef;
33
+ constructor(_elementRef: ElementRef);
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<LeftSwipeMenuDirective, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LeftSwipeMenuDirective, "[leftSwipeMenu]", never, {}, {}, never, never, false, never>;
36
+ }
37
+ /**
38
+ * Directive identifying the right swipemenu
39
+ */
40
+ export declare class RightSwipeMenuDirective {
41
+ private _elementRef;
42
+ constructor(_elementRef: ElementRef);
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<RightSwipeMenuDirective, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RightSwipeMenuDirective, "[rightSwipeMenu]", never, {}, {}, never, never, false, never>;
45
+ }
46
+ /**
47
+ * Directive identifying the right swipemenu
48
+ */
49
+ export declare class TopSwipeMenuDirective {
50
+ private _elementRef;
51
+ constructor(_elementRef: ElementRef);
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopSwipeMenuDirective, never>;
53
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TopSwipeMenuDirective, "[topSwipeMenu]", never, {}, {}, never, never, false, never>;
54
+ }
55
+ /**
56
+ * Directive identifying the right swipemenu
57
+ */
58
+ export declare class BottomSwipeMenuDirective {
59
+ private _elementRef;
60
+ constructor(_elementRef: ElementRef);
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<BottomSwipeMenuDirective, never>;
62
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BottomSwipeMenuDirective, "[bottomSwipeMenu]", never, {}, {}, never, never, false, never>;
63
+ }
64
+ /**
65
+ * Directive identifying the main content.
66
+ */
67
+ export declare class MainContentDirective {
68
+ private _elementRef;
69
+ constructor(_elementRef: ElementRef);
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainContentDirective, never>;
71
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MainContentDirective, "[mainContent]", never, {}, {}, never, never, false, never>;
72
+ }
73
+ /**
74
+ * Directives identifying the SwipeMenu.
75
+ */
76
+ export declare const SIDEDRAWER_DIRECTIVES: (typeof LeftSwipeMenuDirective | typeof RightSwipeMenuDirective | typeof TopSwipeMenuDirective | typeof BottomSwipeMenuDirective | typeof MainContentDirective)[];
77
+ /**
78
+ * NgModule containing all of the RadSideSwipeMenu directives.
79
+ */
80
+ export declare class SwipeMenuModule {
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwipeMenuModule, never>;
82
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SwipeMenuModule, [typeof SwipeMenuComponent, typeof LeftSwipeMenuDirective, typeof RightSwipeMenuDirective, typeof TopSwipeMenuDirective, typeof BottomSwipeMenuDirective, typeof MainContentDirective], never, [typeof SwipeMenuComponent, typeof LeftSwipeMenuDirective, typeof RightSwipeMenuDirective, typeof TopSwipeMenuDirective, typeof BottomSwipeMenuDirective, typeof MainContentDirective]>;
83
+ static ɵinj: i0.ɵɵInjectorDeclaration<SwipeMenuModule>;
84
+ }
@@ -1,11 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-collectionview-swipemenu-angular",
3
3
  "main": "index.js",
4
- "module": "fesm2015/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
5
- "es2020": "fesm2020/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
6
- "esm2020": "esm2020/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
7
- "fesm2020": "fesm2020/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
8
- "fesm2015": "fesm2015/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
4
+ "module": "fesm2022/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
9
5
  "typings": "index.d.ts",
10
6
  "exports": {
11
7
  "./package.json": {
@@ -13,11 +9,9 @@
13
9
  },
14
10
  ".": {
15
11
  "types": "./index.d.ts",
16
- "esm2020": "./esm2020/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
17
- "es2020": "./fesm2020/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
18
- "es2015": "./fesm2015/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
19
- "node": "./fesm2015/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
20
- "default": "./fesm2020/nativescript-community-ui-collectionview-swipemenu-angular.mjs"
12
+ "esm2022": "./esm2022/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
13
+ "esm": "./esm2022/nativescript-community-ui-collectionview-swipemenu-angular.mjs",
14
+ "default": "./fesm2022/nativescript-community-ui-collectionview-swipemenu-angular.mjs"
21
15
  }
22
16
  },
23
17
  "sideEffects": false,
package/index.d.ts ADDED
@@ -0,0 +1,30 @@
1
+ import { CollectionView } from '@nativescript-community/ui-collectionview';
2
+ import { Drawer } from '@nativescript-community/ui-drawer';
3
+ import { Property, View } from '@nativescript/core';
4
+ export { Side } from '@nativescript-community/ui-drawer';
5
+ export declare const onlyOneMenuOpenedProperty: Property<CollectionView, boolean>;
6
+ declare module '@nativescript-community/ui-collectionview' {
7
+ interface CollectionView {
8
+ notifyForItemAtIndex(eventName: string, view: View, index: number, bindingContext?: any, native?: any): any;
9
+ }
10
+ }
11
+ export declare class CollectionViewWithSwipeMenu extends CollectionView {
12
+ static swipeMenuOpenEvent: string;
13
+ static swipeMenuCloseEvent: string;
14
+ onlyOneMenuOpened: any;
15
+ openedDrawerIndex: number;
16
+ setItemAtIndex(index: number, item: any): any;
17
+ closeCurrentMenu(): Promise<void>;
18
+ getCellView(view: View): View;
19
+ onItemMenuStart(event: any): Promise<void>;
20
+ onItemMenuOpened(event: any): void;
21
+ onItemMenuClosed(event: any): void;
22
+ }
23
+ export declare function overrideCollectionView(): void;
24
+ export declare class SwipeMenu extends Drawer {
25
+ constructor();
26
+ getParentCollectionView(): CollectionViewWithSwipeMenu;
27
+ initNativeView(): void;
28
+ disposeNativeView(): void;
29
+ }
30
+ export declare function install(): void;