@nativescript-community/ui-collectionview-swipemenu 5.3.6 → 5.3.8
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 +8 -0
- package/package.json +3 -3
- package/angular/index.d.ts +0 -1
- package/angular/module.d.ts +0 -84
- package/index.d.ts +0 -30
- package/index.js +0 -173
- package/index.js.map +0 -1
- package/svelte/index.d.ts +0 -11
- package/svelte/index.js +0 -27
- package/svelte/index.js.map +0 -1
- package/vue/component.d.ts +0 -11
- package/vue/component.js +0 -25
- package/vue/component.js.map +0 -1
- package/vue/index.d.ts +0 -4
- package/vue/index.js +0 -12
- package/vue/index.js.map +0 -1
- package/vue3/component.d.ts +0 -3
- package/vue3/component.js +0 -18
- package/vue3/component.js.map +0 -1
- package/vue3/index.d.ts +0 -4
- package/vue3/index.js +0 -33
- package/vue3/index.js.map +0 -1
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.8](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.7...v5.3.8) (2023-11-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-collectionview-swipemenu
|
|
9
|
+
|
|
10
|
+
## [5.3.7](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.6...v5.3.7) (2023-11-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nativescript-community/ui-collectionview-swipemenu
|
|
13
|
+
|
|
6
14
|
## [5.3.6](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.5...v5.3.6) (2023-11-22)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @nativescript-community/ui-collectionview-swipemenu
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-collectionview-swipemenu",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.8",
|
|
4
4
|
"description": "A NativeScript CollectionView SwipeMenu Plugin.",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"homepage": "https://github.com/nativescript-community/ui-collectionview#readme",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@nativescript-community/class-mixins": "^1.0.0",
|
|
43
|
-
"@nativescript-community/ui-collectionview": "^5.3.
|
|
43
|
+
"@nativescript-community/ui-collectionview": "^5.3.8",
|
|
44
44
|
"@nativescript-community/ui-drawer": "^0.1.13"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "490b59ada806e7ff8b30c3f3575df280e8708b51"
|
|
47
47
|
}
|
package/angular/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './module';
|
package/angular/module.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
}
|
package/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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;
|
package/index.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { applyMixins } from '@nativescript-community/class-mixins';
|
|
2
|
-
import { CollectionView, CollectionViewBase } from '@nativescript-community/ui-collectionview';
|
|
3
|
-
import { Drawer, install as installDrawer } from '@nativescript-community/ui-drawer';
|
|
4
|
-
import { CSSType, ContentView, Property, View, booleanConverter } from '@nativescript/core';
|
|
5
|
-
export const onlyOneMenuOpenedProperty = new Property({
|
|
6
|
-
defaultValue: true,
|
|
7
|
-
valueConverter: booleanConverter,
|
|
8
|
-
name: 'onlyOneMenuOpened'
|
|
9
|
-
});
|
|
10
|
-
let mixinInstalled = false;
|
|
11
|
-
export class CollectionViewWithSwipeMenu extends CollectionView {
|
|
12
|
-
setItemAtIndex(index, item) {
|
|
13
|
-
// will be overriden in onItemsChangedInternal
|
|
14
|
-
const thisItems = this.items;
|
|
15
|
-
if (thisItems['setItem']) {
|
|
16
|
-
thisItems['setItem'](index, item);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
thisItems[index] = item;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
// getItemSourceAtIndex(index: number) {
|
|
23
|
-
// const result = (this.items as ItemsSource).getItem(index);
|
|
24
|
-
// if (result) {
|
|
25
|
-
// result.startingSide = result.startingSide || null;
|
|
26
|
-
// }
|
|
27
|
-
// return result;
|
|
28
|
-
// }
|
|
29
|
-
// getItemArrayAtIndex(index: number) {
|
|
30
|
-
// const result = this.items[index];
|
|
31
|
-
// if (result) {
|
|
32
|
-
// result.startingSide = result.startingSide || null;
|
|
33
|
-
// }
|
|
34
|
-
// return result;
|
|
35
|
-
// }
|
|
36
|
-
async closeCurrentMenu() {
|
|
37
|
-
try {
|
|
38
|
-
const openedIndex = this.openedDrawerIndex;
|
|
39
|
-
this.openedDrawerIndex = -1;
|
|
40
|
-
const oldItem = this.items ? this.getItemAtIndex(openedIndex) : null;
|
|
41
|
-
if (!oldItem) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const view = this.getViewForItemAtIndex(openedIndex);
|
|
45
|
-
let drawer = view;
|
|
46
|
-
// console.log('closeCurrentMenu', openedIndex, view, view.bindingContext);
|
|
47
|
-
if (drawer instanceof ContentView) {
|
|
48
|
-
drawer = drawer.content;
|
|
49
|
-
}
|
|
50
|
-
if (drawer instanceof Drawer) {
|
|
51
|
-
drawer.close();
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
// console.log('closeCurrentMenu', view, openedIndex, oldItem, new Error().stack);
|
|
55
|
-
oldItem.startingSide = null;
|
|
56
|
-
// this.notifyForItemAtIndex(CollectionViewBase.itemLoadingEvent, view, openedIndex, oldItem);
|
|
57
|
-
// setTimeout(() => {
|
|
58
|
-
this.setItemAtIndex(openedIndex, oldItem);
|
|
59
|
-
this.notifyForItemAtIndex(CollectionViewWithSwipeMenu.swipeMenuCloseEvent, view, openedIndex, oldItem);
|
|
60
|
-
// }, 0);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
console.error('closeCurrentMenu', error, error.stack);
|
|
65
|
-
}
|
|
66
|
-
finally {
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
getCellView(view) {
|
|
70
|
-
if (view && view.parent instanceof ContentView && view.parent['__SvelteComponent__']) {
|
|
71
|
-
view = view.parent;
|
|
72
|
-
}
|
|
73
|
-
return view;
|
|
74
|
-
}
|
|
75
|
-
async onItemMenuStart(event) {
|
|
76
|
-
const view = this.getCellView(event.object);
|
|
77
|
-
const bindingContext = view.bindingContext;
|
|
78
|
-
const index = this.items.findIndex((i) => i === bindingContext);
|
|
79
|
-
// console.error('onItemMenuStart', index, bindingContext, view, this.openedDrawerIndex);
|
|
80
|
-
if (this.openedDrawerIndex !== index && this.openedDrawerIndex >= 0) {
|
|
81
|
-
this.closeCurrentMenu();
|
|
82
|
-
}
|
|
83
|
-
this.openedDrawerIndex = index;
|
|
84
|
-
}
|
|
85
|
-
onItemMenuOpened(event) {
|
|
86
|
-
const view = this.getCellView(event.object);
|
|
87
|
-
const bindingContext = view.bindingContext;
|
|
88
|
-
const index = this.items.findIndex((i) => i === bindingContext);
|
|
89
|
-
// console.error('onItemMenuOpened', index, bindingContext, view, this.openedDrawerIndex);
|
|
90
|
-
if (this.openedDrawerIndex >= 0 && this.openedDrawerIndex !== index) {
|
|
91
|
-
this.closeCurrentMenu();
|
|
92
|
-
}
|
|
93
|
-
this.openedDrawerIndex = index;
|
|
94
|
-
bindingContext.startingSide = event.side;
|
|
95
|
-
this.notifyForItemAtIndex(CollectionViewWithSwipeMenu.swipeMenuOpenEvent, view, index, bindingContext);
|
|
96
|
-
this.notifyForItemAtIndex(CollectionViewBase.itemLoadingEvent, view, index, bindingContext);
|
|
97
|
-
}
|
|
98
|
-
onItemMenuClosed(event) {
|
|
99
|
-
const view = this.getCellView(event.object);
|
|
100
|
-
const bindingContext = view.bindingContext;
|
|
101
|
-
const index = this.items.findIndex((i) => i === bindingContext);
|
|
102
|
-
// console.error('onItemMenuClosed', index, bindingContext, view, this.openedDrawerIndex);
|
|
103
|
-
if (bindingContext.startingSide !== null) {
|
|
104
|
-
if (index === this.openedDrawerIndex) {
|
|
105
|
-
this.openedDrawerIndex = -1;
|
|
106
|
-
}
|
|
107
|
-
bindingContext.startingSide = null;
|
|
108
|
-
this.notifyForItemAtIndex(CollectionViewWithSwipeMenu.swipeMenuCloseEvent, view, index, bindingContext);
|
|
109
|
-
this.notifyForItemAtIndex(CollectionViewBase.itemLoadingEvent, view, index, bindingContext);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
CollectionViewWithSwipeMenu.swipeMenuOpenEvent = 'swipeMenuOpen';
|
|
114
|
-
CollectionViewWithSwipeMenu.swipeMenuCloseEvent = 'swipeMenuClose';
|
|
115
|
-
export function overrideCollectionView() {
|
|
116
|
-
applyMixins(CollectionView, [CollectionViewWithSwipeMenu], { override: true });
|
|
117
|
-
}
|
|
118
|
-
let SwipeMenu = class SwipeMenu extends Drawer {
|
|
119
|
-
constructor() {
|
|
120
|
-
super();
|
|
121
|
-
this.gestureHandlerOptions = { activeOffsetXStart: -10, activeOffsetXEnd: 10, failOffsetYStart: -10, failOffsetYEnd: 10, minDist: 15 };
|
|
122
|
-
this.leftOpenedDrawerAllowDraging = true;
|
|
123
|
-
this.rightOpenedDrawerAllowDraging = true;
|
|
124
|
-
this.topOpenedDrawerAllowDraging = true;
|
|
125
|
-
this.bottomOpenedDrawerAllowDraging = true;
|
|
126
|
-
this.openAnimationDuration = 100;
|
|
127
|
-
this.closeAnimationDuration = 100;
|
|
128
|
-
if (__IOS__) {
|
|
129
|
-
this.iosIgnoreSafeArea = true;
|
|
130
|
-
}
|
|
131
|
-
this.leftDrawerMode = 'under';
|
|
132
|
-
this.rightDrawerMode = 'under';
|
|
133
|
-
this.topDrawerMode = 'under';
|
|
134
|
-
this.bottomDrawerMode = 'under';
|
|
135
|
-
}
|
|
136
|
-
getParentCollectionView() {
|
|
137
|
-
let collectionview = this.parent;
|
|
138
|
-
while (collectionview && !(collectionview instanceof CollectionView)) {
|
|
139
|
-
collectionview = collectionview.parent;
|
|
140
|
-
}
|
|
141
|
-
return collectionview instanceof CollectionView ? collectionview : null;
|
|
142
|
-
}
|
|
143
|
-
initNativeView() {
|
|
144
|
-
super.initNativeView();
|
|
145
|
-
const collectionview = this.getParentCollectionView();
|
|
146
|
-
if (collectionview) {
|
|
147
|
-
this.on('start', collectionview.onItemMenuStart, collectionview);
|
|
148
|
-
this.on('open', collectionview.onItemMenuOpened, collectionview);
|
|
149
|
-
this.on('close', collectionview.onItemMenuClosed, collectionview);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
disposeNativeView() {
|
|
153
|
-
super.disposeNativeView();
|
|
154
|
-
const collectionview = this.getParentCollectionView();
|
|
155
|
-
if (collectionview) {
|
|
156
|
-
this.on('start', collectionview.onItemMenuStart, collectionview);
|
|
157
|
-
this.on('open', collectionview.onItemMenuOpened, collectionview);
|
|
158
|
-
this.on('close', collectionview.onItemMenuClosed, collectionview);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
SwipeMenu = __decorate([
|
|
163
|
-
CSSType('SwipeMenu')
|
|
164
|
-
], SwipeMenu);
|
|
165
|
-
export { SwipeMenu };
|
|
166
|
-
export function install() {
|
|
167
|
-
if (!mixinInstalled) {
|
|
168
|
-
mixinInstalled = true;
|
|
169
|
-
installDrawer();
|
|
170
|
-
overrideCollectionView();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
//# sourceMappingURL=index.js.map
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAe,QAAQ,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAIzG,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,QAAQ,CAA0B;IAC3E,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,mBAAmB;CAC5B,CAAC,CAAC;AAQH,IAAI,cAAc,GAAG,KAAK,CAAC;AAC3B,MAAM,OAAO,2BAA4B,SAAQ,cAAc;IAKpD,cAAc,CAAC,KAAa,EAAE,IAAI;QACrC,8CAA8C;QAC9C,MAAM,SAAS,GAAG,IAAI,CAAC,KAAoB,CAAC;QAC5C,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;YACtB,SAAS,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;SACrC;aAAM;YACH,SA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AAI,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;YACjE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;SACrE;IACL,CAAC;IACD,iBAAiB;QACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,MAAM,cAAc,GAAG,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACtD,IAAI,cAAc,EAAE;YAChB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;YACjE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;YACjE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;SACrE;IACL,CAAC;CACJ,CAAA;AA3CY,SAAS;IADrB,OAAO,CAAC,WAAW,CAAC;GACR,SAAS,CA2CrB;SA3CY,SAAS;AA6CtB,MAAM,UAAU,OAAO;IACnB,IAAI,CAAC,cAAc,EAAE;QACjB,cAAc,GAAG,IAAI,CAAC;QACtB,aAAa,EAAE,CAAC;QAChB,sBAAsB,EAAE,CAAC;KAC5B;AACL,CAAC"}
|
package/svelte/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NativeViewElementNode } from 'svelte-native/dom';
|
|
2
|
-
import { Side, SwipeMenu } from '../';
|
|
3
|
-
export default class DrawerElement extends NativeViewElementNode<SwipeMenu> {
|
|
4
|
-
constructor();
|
|
5
|
-
private get _drawer();
|
|
6
|
-
close(side?: Side): void;
|
|
7
|
-
isOpened(side?: Side): boolean;
|
|
8
|
-
open(side?: Side): void;
|
|
9
|
-
toggle(side?: Side): void;
|
|
10
|
-
static register(): void;
|
|
11
|
-
}
|
package/svelte/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NativeViewElementNode, registerElement } from 'svelte-native/dom';
|
|
2
|
-
import { SwipeMenu, install } from '../';
|
|
3
|
-
export default class DrawerElement extends NativeViewElementNode {
|
|
4
|
-
constructor() {
|
|
5
|
-
super('swipemenu', SwipeMenu);
|
|
6
|
-
}
|
|
7
|
-
get _drawer() {
|
|
8
|
-
return this.nativeView;
|
|
9
|
-
}
|
|
10
|
-
close(side) {
|
|
11
|
-
this._drawer.close(side);
|
|
12
|
-
}
|
|
13
|
-
isOpened(side) {
|
|
14
|
-
return this._drawer.isOpened(side);
|
|
15
|
-
}
|
|
16
|
-
open(side) {
|
|
17
|
-
this._drawer.open(side);
|
|
18
|
-
}
|
|
19
|
-
toggle(side) {
|
|
20
|
-
this._drawer.toggle(side);
|
|
21
|
-
}
|
|
22
|
-
static register() {
|
|
23
|
-
install();
|
|
24
|
-
registerElement('swipemenu', () => new DrawerElement());
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
package/svelte/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAQ,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAE/C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,qBAAgC;IACvE;QACI,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAClC,CAAC;IAED,IAAY,OAAO;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAW;QACb,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,QAAQ,CAAC,IAAW;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,CAAC,IAAW;QACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,IAAW;QACd,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,QAAQ;QACX,OAAO,EAAE,CAAC;QACV,eAAe,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;IAC5D,CAAC;CACJ"}
|
package/vue/component.d.ts
DELETED
package/vue/component.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
props: {},
|
|
3
|
-
template: `
|
|
4
|
-
<NativeSwipeMenu
|
|
5
|
-
v-bind="$attrs"
|
|
6
|
-
v-on="$listeners">
|
|
7
|
-
<slot />
|
|
8
|
-
</NativeSwipeMenu>
|
|
9
|
-
`,
|
|
10
|
-
methods: {
|
|
11
|
-
open(side) {
|
|
12
|
-
return this.$refs.drawer.nativeView.open(side);
|
|
13
|
-
},
|
|
14
|
-
close(side) {
|
|
15
|
-
return this.$refs.drawer.nativeView.close(side);
|
|
16
|
-
},
|
|
17
|
-
isOpened(side) {
|
|
18
|
-
return this.$refs.drawer.nativeView.isOpened(side);
|
|
19
|
-
},
|
|
20
|
-
toggle(side) {
|
|
21
|
-
return this.$refs.drawer.nativeView.toggle(side);
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=component.js.map
|
package/vue/component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"../src/","sources":["vue/component.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,KAAK,EAAE,EAAE;IAET,QAAQ,EAAE;;;;;;GAMX;IAEC,OAAO,EAAE;QACL,IAAI,CAAC,IAAI;YACL,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnD,CAAC;QACD,KAAK,CAAC,IAAI;YACN,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;QACD,QAAQ,CAAC,IAAI;YACT,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvD,CAAC;QACD,MAAM,CAAC,IAAI;YACP,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;KACJ;CACJ,CAAC"}
|
package/vue/index.d.ts
DELETED
package/vue/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import SwipeMenuComp from './component';
|
|
2
|
-
import { install } from '..';
|
|
3
|
-
const SwipeMenuPlugin = {
|
|
4
|
-
install(Vue) {
|
|
5
|
-
install();
|
|
6
|
-
Vue.registerElement('SwipeMenu', () => require('../index').SwipeMenu, {
|
|
7
|
-
component: SwipeMenuComp
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export default SwipeMenuPlugin;
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
package/vue/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["vue/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,MAAM,eAAe,GAAG;IACpB,OAAO,CAAC,GAAG;QACP,OAAO,EAAE,CAAC;QACV,GAAG,CAAC,eAAe,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,SAAS,EAAE;YAClE,SAAS,EAAE,aAAa;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/vue3/component.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const SwipeMenuComp: import("nativescript-vue").DefineComponent<{}, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {}, string, import("nativescript-vue").VNodeProps & import("nativescript-vue").AllowedComponentProps & import("nativescript-vue").ComponentCustomProps, Readonly<import("nativescript-vue").ExtractPropTypes<{}>>, {}, {}>;
|
package/vue3/component.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h, ref } from 'nativescript-vue';
|
|
2
|
-
export const SwipeMenuComp = defineComponent({
|
|
3
|
-
setup() {
|
|
4
|
-
const swipeMenu = ref();
|
|
5
|
-
const open = (side) => swipeMenu.value.nativeView.open(side);
|
|
6
|
-
const close = (side) => swipeMenu.value.nativeView.close(side);
|
|
7
|
-
const isOpened = (side) => swipeMenu.value.nativeView.isOpened(side);
|
|
8
|
-
const toggle = (side) => swipeMenu.value.nativeView.toggle(side);
|
|
9
|
-
return () => h('SwipeMenu', {
|
|
10
|
-
ref: swipeMenu,
|
|
11
|
-
open,
|
|
12
|
-
close,
|
|
13
|
-
isOpened,
|
|
14
|
-
toggle
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=component.js.map
|
package/vue3/component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"../src/","sources":["vue3/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;IACzC,KAAK;QACD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7D,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/D,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEjE,OAAO,GAAG,EAAE,CACR,CAAC,CAAC,WAAW,EAAE;YACX,GAAG,EAAE,SAAS;YACd,IAAI;YACJ,KAAK;YACL,QAAQ;YACR,MAAM;SACT,CAAC,CAAC;IACX,CAAC;CACJ,CAAC,CAAC"}
|
package/vue3/index.d.ts
DELETED
package/vue3/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { SwipeMenuComp } from './component';
|
|
2
|
-
import { install } from '..';
|
|
3
|
-
const SwipeMenuPlugin = {
|
|
4
|
-
install(app) {
|
|
5
|
-
install();
|
|
6
|
-
app.registerElement('SwipeMenu', () => require('../index').SwipeMenu, {
|
|
7
|
-
overwriteExisting: true,
|
|
8
|
-
nodeOps: {
|
|
9
|
-
insert(child, parent) {
|
|
10
|
-
if (child.nativeView['~mainContent'] === '') {
|
|
11
|
-
parent.nativeView.mainContent = child.nativeView;
|
|
12
|
-
}
|
|
13
|
-
else if (child.nativeView['~leftDrawer'] === '') {
|
|
14
|
-
parent.nativeView.leftDrawer = child.nativeView;
|
|
15
|
-
}
|
|
16
|
-
else if (child.nativeView['~rightDrawer'] === '') {
|
|
17
|
-
parent.nativeView.rightDrawer = child.nativeView;
|
|
18
|
-
}
|
|
19
|
-
else if (child.nativeView['~topDrawer'] === '') {
|
|
20
|
-
parent.nativeView.topDrawer = child.nativeView;
|
|
21
|
-
}
|
|
22
|
-
else if (child.nativeView['~bottomDrawer'] === '') {
|
|
23
|
-
parent.nativeView.bottomDrawer = child.nativeView;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
// it seems that we don't need define vue component
|
|
29
|
-
// app.component("SwipeMenu", SwipeMenuComp)
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export default SwipeMenuPlugin;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
package/vue3/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["vue3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,MAAM,eAAe,GAAG;IACpB,OAAO,CAAC,GAAQ;QACZ,OAAO,EAAE,CAAC;QACV,GAAG,CAAC,eAAe,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,SAAS,EAAE;YAClE,iBAAiB,EAAE,IAAI;YACvB,OAAO,EAAE;gBACL,MAAM,CAAC,KAAK,EAAE,MAAM;oBAChB,IAAI,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,EAAE,EAAE;wBACzC,MAAM,CAAC,UAAU,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC;qBACpD;yBAAM,IAAI,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE;wBAC/C,MAAM,CAAC,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;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