nativescript-web-adapter 0.1.2 → 0.1.5
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/README.md +220 -244
- package/core/components/AbsoluteLayout.vue +11 -0
- package/core/components/ActionBar.vue +11 -0
- package/core/components/ActionItem.vue +11 -0
- package/core/components/ActivityIndicator.vue +15 -0
- package/core/components/Button.vue +41 -0
- package/core/components/DatePicker.vue +27 -0
- package/core/components/DockLayout.vue +23 -0
- package/core/components/FlexboxLayout.vue +11 -0
- package/core/components/Frame.vue +11 -0
- package/core/components/GridLayout.vue +85 -0
- package/core/components/HtmlView.vue +13 -0
- package/core/components/Image.vue +12 -0
- package/core/components/ImageCacheIt.vue +12 -0
- package/core/components/Label.vue +15 -0
- package/core/components/ListPicker.vue +21 -0
- package/core/components/ListView.vue +12 -0
- package/core/components/NavigationButton.vue +28 -0
- package/core/components/Page.vue +18 -0
- package/core/components/Placeholder.vue +11 -0
- package/core/components/Progress.vue +12 -0
- package/core/components/RootLayout.vue +11 -0
- package/core/components/ScrollView.vue +11 -0
- package/core/components/SearchBar.vue +22 -0
- package/core/components/SegmentedBar.vue +50 -0
- package/core/components/SegmentedBarItem.vue +21 -0
- package/core/components/Slider.vue +18 -0
- package/core/components/StackLayout.vue +11 -0
- package/core/components/Switch.vue +26 -0
- package/core/components/TabView.vue +48 -0
- package/core/components/TabViewItem.vue +27 -0
- package/core/components/TextField.vue +15 -0
- package/core/components/TextView.vue +18 -0
- package/core/components/TimePicker.vue +21 -0
- package/core/components/WebView.vue +13 -0
- package/core/components/WrapLayout.vue +11 -0
- package/core/components/index.js +3 -0
- package/core/components/index.ts +35 -0
- package/core/composables/dialogs.ts +31 -0
- package/core/composables/index.js +3 -0
- package/core/composables/index.ts +4 -0
- package/core/composables/useActionBar.js +7 -0
- package/core/composables/useActionBar.ts +19 -0
- package/core/composables/useFrame.js +8 -0
- package/core/composables/useFrame.ts +25 -0
- package/core/composables/usePage.js +8 -0
- package/core/composables/usePage.ts +25 -0
- package/core/env.d.ts +7 -0
- package/core/index.js +4 -0
- package/core/index.ts +85 -0
- package/core/types.ts +12 -0
- package/dist/nativescript-web-adapter.es.js +83 -0
- package/dist/nativescript-web-adapter.umd.js +1 -0
- package/dist/style.css +1 -0
- package/package.json +35 -49
- package/tools/cli.cjs +59 -0
- package/tools/create-nuxt-platform.cjs +57 -0
- package/tools/create-web-platform.cjs +76 -0
- package/tools/create-web-platform.js +196 -0
- package/tools/modules/appPatch.cjs +27 -0
- package/tools/modules/copy.cjs +84 -0
- package/tools/modules/router.cjs +46 -0
- package/tools/modules/templates-nuxt.cjs +63 -0
- package/tools/modules/templates.cjs +130 -0
- package/tools/modules/transform-nuxt.cjs +59 -0
- package/tools/modules/transform.cjs +93 -0
- package/dist/core.cjs +0 -3
- package/dist/core.cjs.map +0 -1
- package/dist/core.js +0 -2
- package/dist/core.js.map +0 -1
- package/dist/index.cjs +0 -377
- package/dist/index.cjs.map +0 -1
- package/dist/index.css +0 -172
- package/dist/index.js +0 -361
- package/dist/index.js.map +0 -1
- package/dist/types/core/index.d.ts +0 -8
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.types.d.ts +0 -1
- package/dist/types/vue/components/ActionBar.d.ts +0 -5
- package/dist/types/vue/components/ActionItem.d.ts +0 -15
- package/dist/types/vue/components/Button.d.ts +0 -26
- package/dist/types/vue/components/ContentView.d.ts +0 -3
- package/dist/types/vue/components/FlexboxLayout.d.ts +0 -35
- package/dist/types/vue/components/Frame.d.ts +0 -3
- package/dist/types/vue/components/GridLayout.d.ts +0 -26
- package/dist/types/vue/components/ImageCacheIt.d.ts +0 -23
- package/dist/types/vue/components/Label.d.ts +0 -26
- package/dist/types/vue/components/ListView.d.ts +0 -24
- package/dist/types/vue/components/Page.d.ts +0 -5
- package/dist/types/vue/components/StackLayout.d.ts +0 -5
- package/dist/types/vue/components/TabView.d.ts +0 -26
- package/dist/types/vue/components/TabViewItem.d.ts +0 -24
- package/dist/types/vue/index.d.ts +0 -18
- package/dist/types/vue/index.types.d.ts +0 -17
- package/dist/types/vue.d.ts +0 -266
- package/dist/vue.cjs +0 -377
- package/dist/vue.cjs.map +0 -1
- package/dist/vue.css +0 -172
- package/dist/vue.js +0 -361
- package/dist/vue.js.map +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// Transform module: handle script-level transformations only
|
|
2
|
+
// - Replace 'nativescript-vue' imports with 'vue'
|
|
3
|
+
// - Remove '@nativescript/core' and adapter imports
|
|
4
|
+
// - Clean platform-specific globals and handlers
|
|
5
|
+
// - Keep template tags intact for custom web components to handle
|
|
6
|
+
|
|
7
|
+
function transformContent(content, srcPath) {
|
|
8
|
+
// globals.ts shim for web
|
|
9
|
+
if (srcPath && /globals\.ts$/.test(srcPath)) {
|
|
10
|
+
return "export function initGlobals() { /* web shim: no-op */ }\n";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Import replacements
|
|
14
|
+
content = content.replace(/from\s+['\"](nativescript-vue)['\"]/g, "from 'vue'");
|
|
15
|
+
content = content.replace(/import\s+.*@nativescript\/core.*;?\n?/g, '');
|
|
16
|
+
content = content.replace(/import\s+.*nativescript-web-adapter.*;?\n?/g, '');
|
|
17
|
+
|
|
18
|
+
// Platform/global cleanup
|
|
19
|
+
content = content.replace(/declare\s+var\s+com[:\s\w]*;?\n?/g, '');
|
|
20
|
+
|
|
21
|
+
// Demo-specific native function replacement
|
|
22
|
+
content = content.replace(/function\s+enterNow\([^\)]*\)\s*\{[\s\S]*?\}\n?/g, "function enterNow() { window.open(\"https://viteconf.amsterdam\", '_blank'); }\n");
|
|
23
|
+
content = content.replace(/function\s+enterNow\([^\)]*\)\s*\{[\s\S]*?\}\s*[\s\S]*?let interval/g, 'function enterNow() { window.open("https://viteconf.amsterdam", \'_blank\'); }\n\nlet interval');
|
|
24
|
+
|
|
25
|
+
// Navigation: compile-time transform for web
|
|
26
|
+
// $navigateTo(Test) -> router.push('/Test')
|
|
27
|
+
// $navigateBack() -> router.go(-1)
|
|
28
|
+
// Frame.navigate(...) -> router.push('/...')
|
|
29
|
+
// Frame.goBack() -> router.go(-1)
|
|
30
|
+
if (srcPath && /\.vue$/i.test(srcPath)) {
|
|
31
|
+
const hasNavigateTo = /\$navigateTo\(\s*[A-Za-z_][A-Za-z0-9_]*\s*\)/.test(content);
|
|
32
|
+
const hasNavigateBack = /\$navigateBack\(\s*\)/.test(content);
|
|
33
|
+
const hasFrameNav = /Frame\.(navigate|goBack)\(/.test(content);
|
|
34
|
+
const hasFrameTopmost = /Frame\.topmost\(\)\.(navigate|goBack)\(/.test(content);
|
|
35
|
+
if (hasNavigateTo || hasNavigateBack || hasFrameNav || hasFrameTopmost) {
|
|
36
|
+
// Replace any property chain ending with $navigateTo(Symbol) -> router.push('/Symbol')
|
|
37
|
+
content = content.replace(/(?:this\.|[A-Za-z_$]+\?\.|[A-Za-z_$]+\.)*\$navigateTo\(\s*([A-Za-z_][A-Za-z0-9_]*)\s*\)/g, "router.push('/$1')");
|
|
38
|
+
// Replace any property chain ending with $navigateBack() -> router.go(-1)
|
|
39
|
+
content = content.replace(/(?:this\.|[A-Za-z_$]+\?\.|[A-Za-z_$]+\.)*\$navigateBack\(\s*\)/g, 'router.go(-1)');
|
|
40
|
+
// Replace Frame.goBack() -> router.go(-1)
|
|
41
|
+
content = content.replace(/Frame\.goBack\(\s*\)/g, 'router.go(-1)');
|
|
42
|
+
// Replace Frame.navigate(Identifier) -> router.push('/Identifier')
|
|
43
|
+
content = content.replace(/Frame\.navigate\(\s*([A-Za-z_][A-Za-z0-9_]*)\s*\)/g, "router.push('/$1')");
|
|
44
|
+
// Replace Frame.navigate('pages/Test') or module path -> router.push('/Test')
|
|
45
|
+
content = content.replace(/Frame\.navigate\(\s*['\"]([^'\"]+)['\"]\s*\)/g, (m, p1) => {
|
|
46
|
+
const base = String(p1).split('/')?.pop()?.replace(/\.vue$/i, '') || p1;
|
|
47
|
+
return `router.push('/${base}')`;
|
|
48
|
+
});
|
|
49
|
+
// Replace Frame.navigate({ moduleName: 'pages/Test' }) -> router.push('/Test')
|
|
50
|
+
content = content.replace(/Frame\.navigate\(\s*\{[\s\S]*?moduleName\s*:\s*['\"]([^'\"]+)['\"][\s\S]*?\}\s*\)/g, (m, p1) => {
|
|
51
|
+
const base = String(p1).split('/')?.pop()?.replace(/\.vue$/i, '') || p1;
|
|
52
|
+
return `router.push('/${base}')`;
|
|
53
|
+
});
|
|
54
|
+
// Replace Frame.topmost().goBack() -> router.go(-1)
|
|
55
|
+
content = content.replace(/Frame\.topmost\(\)\.goBack\(\s*\)/g, 'router.go(-1)');
|
|
56
|
+
// Replace Frame.topmost().navigate(Identifier) -> router.push('/Identifier')
|
|
57
|
+
content = content.replace(/Frame\.topmost\(\)\.navigate\(\s*([A-Za-z_][A-Za-z0-9_]*)\s*\)/g, "router.push('/$1')");
|
|
58
|
+
// Replace Frame.topmost().navigate('pages/Test') -> router.push('/Test')
|
|
59
|
+
content = content.replace(/Frame\.topmost\(\)\.navigate\(\s*['\"]([^'\"]+)['\"]\s*\)/g, (m, p1) => {
|
|
60
|
+
const base = String(p1).split('/')?.pop()?.replace(/\.vue$/i, '') || p1;
|
|
61
|
+
return `router.push('/${base}')`;
|
|
62
|
+
});
|
|
63
|
+
// Replace Frame.topmost().navigate({ moduleName: 'pages/Test' }) -> router.push('/Test')
|
|
64
|
+
content = content.replace(/Frame\.topmost\(\)\.navigate\(\s*\{[\s\S]*?moduleName\s*:\s*['\"]([^'\"]+)['\"][\s\S]*?\}\s*\)/g, (m, p1) => {
|
|
65
|
+
const base = String(p1).split('/')?.pop()?.replace(/\.vue$/i, '') || p1;
|
|
66
|
+
return `router.push('/${base}')`;
|
|
67
|
+
});
|
|
68
|
+
// Ensure router import inside <script> block
|
|
69
|
+
if (!/import\s+router\s+from\s+['\"]@\/router['\"]/.test(content)) {
|
|
70
|
+
content = content.replace(/(<script[^>]*>)/i, "$1\nimport router from '@/router';\n");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Remove platform residual lines and blocks
|
|
76
|
+
content = content.replace(/.*(nativeApp|android\.|UIApplication|NSURL|NSDictionary|com\.tns|intent|startActivity|android\.content).*/g, '');
|
|
77
|
+
content = content.replace(/else\s*\{[\s\S]*?\}/g, '');
|
|
78
|
+
|
|
79
|
+
// Fix markup formatting artifacts
|
|
80
|
+
content = content.replace(/\/\s+\/>/g, '\/>');
|
|
81
|
+
|
|
82
|
+
// Remove registerElement
|
|
83
|
+
content = content.replace(/registerElement\([^)]+\);?\n?/g, '// registerElement removed for web\n');
|
|
84
|
+
|
|
85
|
+
// Remove Application.on handlers if present
|
|
86
|
+
if (content.includes('__ANDROID__') || content.includes('Application.launchEvent')) {
|
|
87
|
+
content = content.replace(/Application\.on[\s\S]*?}\);/g, '');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return content;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
module.exports = { transformContent };
|
package/dist/core.cjs
DELETED
package/dist/core.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/core.js
DELETED
package/dist/core.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs
DELETED
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var vue = require('vue');
|
|
4
|
-
|
|
5
|
-
const Label = vue.defineComponent({
|
|
6
|
-
name: 'NSLabel',
|
|
7
|
-
props: {
|
|
8
|
-
text: { type: String, default: '' },
|
|
9
|
-
horizontalAlignment: { type: String, default: undefined }
|
|
10
|
-
},
|
|
11
|
-
emits: ['tap'],
|
|
12
|
-
setup(props, { slots, attrs, emit }) {
|
|
13
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
14
|
-
const defaultClass = 'ns-label';
|
|
15
|
-
const defaultStyle = {};
|
|
16
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
17
|
-
return () => vue.h('span', {
|
|
18
|
-
onClick,
|
|
19
|
-
...rest,
|
|
20
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
21
|
-
style: { ...defaultStyle, ...userStyle }
|
|
22
|
-
}, slots.default ? slots.default() : props.text);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const Button = vue.defineComponent({
|
|
27
|
-
name: 'NSButton',
|
|
28
|
-
props: {
|
|
29
|
-
text: { type: String, default: '' },
|
|
30
|
-
horizontalAlignment: { type: String, default: undefined }
|
|
31
|
-
},
|
|
32
|
-
emits: ['tap'],
|
|
33
|
-
setup(props, { emit, slots, attrs }) {
|
|
34
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
35
|
-
const defaultClass = 'ns-button';
|
|
36
|
-
const defaultStyle = (() => {
|
|
37
|
-
const style = {};
|
|
38
|
-
if (props.horizontalAlignment === 'center') {
|
|
39
|
-
// Center within GridLayout and StackLayout (column flex)
|
|
40
|
-
style.justifySelf = 'center';
|
|
41
|
-
style.alignSelf = 'center';
|
|
42
|
-
}
|
|
43
|
-
else if (props.horizontalAlignment === 'right') {
|
|
44
|
-
style.justifySelf = 'end';
|
|
45
|
-
style.alignSelf = 'flex-end';
|
|
46
|
-
}
|
|
47
|
-
else if (props.horizontalAlignment === 'left') {
|
|
48
|
-
style.justifySelf = 'start';
|
|
49
|
-
style.alignSelf = 'flex-start';
|
|
50
|
-
}
|
|
51
|
-
return style;
|
|
52
|
-
})();
|
|
53
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
54
|
-
return () => vue.h('button', {
|
|
55
|
-
onClick,
|
|
56
|
-
...rest,
|
|
57
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
58
|
-
style: { ...defaultStyle, ...userStyle }
|
|
59
|
-
}, slots.default ? slots.default() : props.text);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
const StackLayout = vue.defineComponent({
|
|
64
|
-
name: 'NSStackLayout',
|
|
65
|
-
emits: ['tap'],
|
|
66
|
-
setup(_, { slots, attrs, emit }) {
|
|
67
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
68
|
-
const defaultClass = 'ns-stack-layout';
|
|
69
|
-
const defaultStyle = {};
|
|
70
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
71
|
-
return () => {
|
|
72
|
-
var _a;
|
|
73
|
-
return vue.h('div', {
|
|
74
|
-
onClick,
|
|
75
|
-
...rest,
|
|
76
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
77
|
-
style: { ...defaultStyle, ...userStyle }
|
|
78
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
const FlexboxLayout = vue.defineComponent({
|
|
84
|
-
name: 'NSFlexboxLayout',
|
|
85
|
-
props: {
|
|
86
|
-
flexDirection: { type: String, default: 'row' },
|
|
87
|
-
justifyContent: { type: String, default: 'flex-start' },
|
|
88
|
-
alignItems: { type: String, default: 'stretch' }
|
|
89
|
-
},
|
|
90
|
-
emits: ['tap'],
|
|
91
|
-
setup(props, { slots, attrs, emit }) {
|
|
92
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
93
|
-
const defaultClass = 'ns-flexbox-layout';
|
|
94
|
-
const defaultStyle = {};
|
|
95
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
96
|
-
return () => {
|
|
97
|
-
var _a;
|
|
98
|
-
return vue.h('div', {
|
|
99
|
-
onClick,
|
|
100
|
-
...rest,
|
|
101
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
102
|
-
style: { ...defaultStyle, ...userStyle }
|
|
103
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
const GridLayout = vue.defineComponent({
|
|
109
|
-
name: 'NSGridLayout',
|
|
110
|
-
props: {
|
|
111
|
-
rows: { type: String, default: undefined },
|
|
112
|
-
columns: { type: String, default: undefined }
|
|
113
|
-
},
|
|
114
|
-
emits: ['tap'],
|
|
115
|
-
setup(_, { slots, attrs, emit }) {
|
|
116
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
117
|
-
const defaultClass = 'ns-grid-layout';
|
|
118
|
-
const defaultStyle = {};
|
|
119
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
120
|
-
return () => {
|
|
121
|
-
var _a;
|
|
122
|
-
return vue.h('div', {
|
|
123
|
-
onClick,
|
|
124
|
-
...rest,
|
|
125
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
126
|
-
style: { ...defaultStyle, ...userStyle }
|
|
127
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
const Page = vue.defineComponent({
|
|
133
|
-
name: 'NSPage',
|
|
134
|
-
emits: ['tap'],
|
|
135
|
-
setup(_, { slots, attrs, emit }) {
|
|
136
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
137
|
-
const defaultClass = 'ns-page';
|
|
138
|
-
const defaultStyle = {};
|
|
139
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
140
|
-
return () => {
|
|
141
|
-
var _a;
|
|
142
|
-
return vue.h('main', {
|
|
143
|
-
onClick,
|
|
144
|
-
...rest,
|
|
145
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
146
|
-
style: { ...defaultStyle, ...userStyle }
|
|
147
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
const Frame = vue.defineComponent({
|
|
153
|
-
name: 'NSFrame',
|
|
154
|
-
setup(_, { slots, attrs }) {
|
|
155
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
156
|
-
const defaultClass = 'ns-frame';
|
|
157
|
-
const defaultStyle = {};
|
|
158
|
-
return () => {
|
|
159
|
-
var _a;
|
|
160
|
-
return vue.h('div', {
|
|
161
|
-
...rest,
|
|
162
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
163
|
-
style: { ...defaultStyle, ...userStyle }
|
|
164
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
const ActionBar = vue.defineComponent({
|
|
170
|
-
name: 'NSActionBar',
|
|
171
|
-
emits: ['tap'],
|
|
172
|
-
setup(_, { slots, attrs, emit }) {
|
|
173
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
174
|
-
const defaultClass = 'ns-action-bar';
|
|
175
|
-
const defaultStyle = {};
|
|
176
|
-
const onClick = (e) => emit('tap', { eventName: 'tap', object: e.currentTarget });
|
|
177
|
-
return () => {
|
|
178
|
-
var _a;
|
|
179
|
-
return vue.h('header', {
|
|
180
|
-
onClick,
|
|
181
|
-
...rest,
|
|
182
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
183
|
-
style: { ...defaultStyle, ...userStyle }
|
|
184
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
const ActionItem = vue.defineComponent({
|
|
190
|
-
name: 'NSActionItem',
|
|
191
|
-
props: {
|
|
192
|
-
iosPosition: { type: String, default: undefined }
|
|
193
|
-
},
|
|
194
|
-
setup(props, { slots, attrs }) {
|
|
195
|
-
var _a;
|
|
196
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
197
|
-
// Support attribute `ios.position="right"` via attrs['ios.position']
|
|
198
|
-
const pos = (_a = attrs['ios.position']) !== null && _a !== void 0 ? _a : props.iosPosition;
|
|
199
|
-
const defaultClass = 'ns-action-item';
|
|
200
|
-
const defaultStyle = {};
|
|
201
|
-
if (pos === 'right') {
|
|
202
|
-
defaultStyle.marginLeft = 'auto';
|
|
203
|
-
}
|
|
204
|
-
return () => {
|
|
205
|
-
var _a;
|
|
206
|
-
return vue.h('div', {
|
|
207
|
-
...rest,
|
|
208
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
209
|
-
style: { ...defaultStyle, ...userStyle }
|
|
210
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
const ImageCacheIt = vue.defineComponent({
|
|
216
|
-
name: 'ImageCacheIt',
|
|
217
|
-
props: {
|
|
218
|
-
src: { type: String, required: true },
|
|
219
|
-
stretch: { type: String, default: 'aspectFill' }
|
|
220
|
-
},
|
|
221
|
-
setup(props, { attrs }) {
|
|
222
|
-
var _a;
|
|
223
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
224
|
-
const defaultClass = 'ns-image-cache-it';
|
|
225
|
-
const objectFitMap = {};
|
|
226
|
-
const defaultStyle = {
|
|
227
|
-
objectFit: (_a = objectFitMap[props.stretch]) !== null && _a !== void 0 ? _a : 'cover',
|
|
228
|
-
display: 'block'
|
|
229
|
-
};
|
|
230
|
-
return () => vue.h('img', {
|
|
231
|
-
...rest,
|
|
232
|
-
src: props.src,
|
|
233
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
234
|
-
style: { ...defaultStyle, ...userStyle }
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
const ContentView = vue.defineComponent({
|
|
240
|
-
name: 'NSContentView',
|
|
241
|
-
setup(_, { slots, attrs }) {
|
|
242
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
243
|
-
const defaultClass = 'ns-content-view';
|
|
244
|
-
const defaultStyle = {};
|
|
245
|
-
return () => {
|
|
246
|
-
var _a;
|
|
247
|
-
return vue.h('div', {
|
|
248
|
-
...rest,
|
|
249
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
250
|
-
style: { ...defaultStyle, ...userStyle }
|
|
251
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
const ListView = vue.defineComponent({
|
|
257
|
-
name: 'NSListView',
|
|
258
|
-
props: {
|
|
259
|
-
items: { type: Array, default: () => [] },
|
|
260
|
-
separatorColor: { type: String, default: 'transparent' }
|
|
261
|
-
},
|
|
262
|
-
setup(props, { slots, attrs }) {
|
|
263
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
264
|
-
const defaultClass = 'ns-list-view';
|
|
265
|
-
const defaultStyle = { overflow: 'auto' };
|
|
266
|
-
return () => vue.h('div', { ...rest, class: [defaultClass, userClass].filter(Boolean), style: { ...defaultStyle, ...userStyle } }, props.items.map((item, index) => vue.h('div', { class: 'ns-list-item', style: { borderBottom: `1px solid ${props.separatorColor}` } }, slots.default ? slots.default({ item, index }) : String(item))));
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
const TabView = vue.defineComponent({
|
|
271
|
-
name: 'NSTabView',
|
|
272
|
-
props: {
|
|
273
|
-
selectedIndex: { type: Number, default: 0 },
|
|
274
|
-
androidTabsPosition: { type: String, default: 'bottom' }
|
|
275
|
-
},
|
|
276
|
-
emits: ['selectedIndexChange'],
|
|
277
|
-
setup(props, { slots, emit, attrs }) {
|
|
278
|
-
var _a;
|
|
279
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
280
|
-
const defaultClass = 'ns-tab-view';
|
|
281
|
-
const currentIndex = vue.ref((_a = props.selectedIndex) !== null && _a !== void 0 ? _a : 0);
|
|
282
|
-
vue.watch(() => props.selectedIndex, (val) => {
|
|
283
|
-
if (typeof val === 'number')
|
|
284
|
-
currentIndex.value = val;
|
|
285
|
-
});
|
|
286
|
-
const onSelect = (idx) => {
|
|
287
|
-
currentIndex.value = idx;
|
|
288
|
-
emit('selectedIndexChange', { value: idx, object: null });
|
|
289
|
-
};
|
|
290
|
-
return () => {
|
|
291
|
-
var _a, _b;
|
|
292
|
-
const children = (_b = (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)) !== null && _b !== void 0 ? _b : [];
|
|
293
|
-
const items = children.filter((v) => { var _a, _b; return ((_b = (_a = v === null || v === void 0 ? void 0 : v.type) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '') === 'NSTabViewItem'; });
|
|
294
|
-
const useChildren = items.length ? items : children;
|
|
295
|
-
const barItems = useChildren.map((v) => {
|
|
296
|
-
var _a, _b, _c;
|
|
297
|
-
const p = v.props || {};
|
|
298
|
-
const title = (_a = p.title) !== null && _a !== void 0 ? _a : '';
|
|
299
|
-
const icon = (_c = (_b = p['android:iconSource']) !== null && _b !== void 0 ? _b : p.iconSource) !== null && _c !== void 0 ? _c : undefined;
|
|
300
|
-
return { title, icon };
|
|
301
|
-
});
|
|
302
|
-
const renderedContent = useChildren.map((v, idx) => {
|
|
303
|
-
var _a, _b;
|
|
304
|
-
return vue.cloneVNode(v, {
|
|
305
|
-
class: ['ns-tab-view-item', (_a = v.props) === null || _a === void 0 ? void 0 : _a.class].filter(Boolean),
|
|
306
|
-
style: { ...(((_b = v.props) === null || _b === void 0 ? void 0 : _b.style) || {}), display: idx === currentIndex.value ? '' : 'none' }
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
const tabBar = vue.h('nav', { class: 'ns-tab-bar' }, barItems.map((item, idx) => vue.h('button', {
|
|
310
|
-
class: ['ns-tab-bar-item', idx === currentIndex.value ? 'active' : ''].filter(Boolean),
|
|
311
|
-
onClick: () => onSelect(idx)
|
|
312
|
-
}, item.title || '•')));
|
|
313
|
-
return vue.h('div', {
|
|
314
|
-
...rest,
|
|
315
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
316
|
-
style: { ...userStyle }
|
|
317
|
-
}, [vue.h('div', { class: 'ns-tab-content' }, renderedContent), props.androidTabsPosition === 'bottom' ? tabBar : null]);
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
|
|
322
|
-
const TabViewItem = vue.defineComponent({
|
|
323
|
-
name: 'NSTabViewItem',
|
|
324
|
-
props: {
|
|
325
|
-
title: { type: String, default: '' },
|
|
326
|
-
iconSource: { type: String, default: undefined }
|
|
327
|
-
},
|
|
328
|
-
setup(_, { slots, attrs }) {
|
|
329
|
-
const { class: userClass, style: userStyle, ...rest } = (attrs || {});
|
|
330
|
-
const defaultClass = 'ns-tab-view-item';
|
|
331
|
-
const defaultStyle = {};
|
|
332
|
-
return () => {
|
|
333
|
-
var _a;
|
|
334
|
-
return vue.h('div', {
|
|
335
|
-
...rest,
|
|
336
|
-
class: [defaultClass, userClass].filter(Boolean),
|
|
337
|
-
style: { ...defaultStyle, ...userStyle }
|
|
338
|
-
}, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
const NativeScriptWebPlugin = {
|
|
344
|
-
install(app) {
|
|
345
|
-
app.component('Label', Label);
|
|
346
|
-
app.component('Button', Button);
|
|
347
|
-
app.component('StackLayout', StackLayout);
|
|
348
|
-
app.component('FlexboxLayout', FlexboxLayout);
|
|
349
|
-
app.component('GridLayout', GridLayout);
|
|
350
|
-
app.component('Page', Page);
|
|
351
|
-
app.component('Frame', Frame);
|
|
352
|
-
app.component('ActionBar', ActionBar);
|
|
353
|
-
app.component('ActionItem', ActionItem);
|
|
354
|
-
app.component('ImageCacheIt', ImageCacheIt);
|
|
355
|
-
app.component('ContentView', ContentView);
|
|
356
|
-
app.component('ListView', ListView);
|
|
357
|
-
app.component('TabView', TabView);
|
|
358
|
-
app.component('TabViewItem', TabViewItem);
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
exports.ActionBar = ActionBar;
|
|
363
|
-
exports.ActionItem = ActionItem;
|
|
364
|
-
exports.Button = Button;
|
|
365
|
-
exports.ContentView = ContentView;
|
|
366
|
-
exports.FlexboxLayout = FlexboxLayout;
|
|
367
|
-
exports.Frame = Frame;
|
|
368
|
-
exports.GridLayout = GridLayout;
|
|
369
|
-
exports.ImageCacheIt = ImageCacheIt;
|
|
370
|
-
exports.Label = Label;
|
|
371
|
-
exports.ListView = ListView;
|
|
372
|
-
exports.NativeScriptWebPlugin = NativeScriptWebPlugin;
|
|
373
|
-
exports.Page = Page;
|
|
374
|
-
exports.StackLayout = StackLayout;
|
|
375
|
-
exports.TabView = TabView;
|
|
376
|
-
exports.TabViewItem = TabViewItem;
|
|
377
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/vue/components/Label.ts","../../src/vue/components/Button.ts","../../src/vue/components/StackLayout.ts","../../src/vue/components/FlexboxLayout.ts","../../src/vue/components/GridLayout.ts","../../src/vue/components/Page.ts","../../src/vue/components/Frame.ts","../../src/vue/components/ActionBar.ts","../../src/vue/components/ActionItem.ts","../../src/vue/components/ImageCacheIt.ts","../../src/vue/components/ContentView.ts","../../src/vue/components/ListView.ts","../../src/vue/components/TabView.ts","../../src/vue/components/TabViewItem.ts","../../src/vue/index.ts"],"sourcesContent":["import { defineComponent, h } from 'vue';\n\nexport const Label = defineComponent({\n name: 'NSLabel',\n props: {\n text: { type: String, default: '' },\n horizontalAlignment: { type: String, default: undefined }\n },\n emits: ['tap'],\n setup(props, { slots, attrs, emit }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-label';\n const defaultStyle = {} as Record<string, any>;\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'span',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default ? slots.default() : props.text\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const Button = defineComponent({\n name: 'NSButton',\n props: {\n text: { type: String, default: '' },\n horizontalAlignment: { type: String, default: undefined }\n },\n emits: ['tap'],\n setup(props, { emit, slots, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-button';\n const defaultStyle = (() => {\n const style: Record<string, any> = {};\n if (props.horizontalAlignment === 'center') {\n // Center within GridLayout and StackLayout (column flex)\n style.justifySelf = 'center';\n style.alignSelf = 'center';\n } else if (props.horizontalAlignment === 'right') {\n style.justifySelf = 'end';\n style.alignSelf = 'flex-end';\n } else if (props.horizontalAlignment === 'left') {\n style.justifySelf = 'start';\n style.alignSelf = 'flex-start';\n }\n return style;\n })();\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'button',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default ? slots.default() : props.text\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const StackLayout = defineComponent({\n name: 'NSStackLayout',\n emits: ['tap'],\n setup(_, { slots, attrs, emit }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-stack-layout';\n const defaultStyle = {} as Record<string, any>;\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'div',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const FlexboxLayout = defineComponent({\n name: 'NSFlexboxLayout',\n props: {\n flexDirection: { type: String, default: 'row' },\n justifyContent: { type: String, default: 'flex-start' },\n alignItems: { type: String, default: 'stretch' }\n },\n emits: ['tap'],\n setup(props, { slots, attrs, emit }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-flexbox-layout';\n const defaultStyle = {} as Record<string, any>;\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'div',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const GridLayout = defineComponent({\n name: 'NSGridLayout',\n props: {\n rows: { type: String, default: undefined },\n columns: { type: String, default: undefined }\n },\n emits: ['tap'],\n setup(_, { slots, attrs, emit }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-grid-layout';\n const defaultStyle = {} as Record<string, any>;\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'div',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const Page = defineComponent({\n name: 'NSPage',\n emits: ['tap'],\n setup(_, { slots, attrs, emit }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-page';\n const defaultStyle = {} as Record<string, any>;\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'main',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const Frame = defineComponent({\n name: 'NSFrame',\n setup(_, { slots, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-frame';\n const defaultStyle = {\n \n } as Record<string, any>; \n\n return () =>\n h(\n 'div',\n {\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const ActionBar = defineComponent({\n name: 'NSActionBar',\n emits: ['tap'],\n setup(_, { slots, attrs, emit }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-action-bar';\n const defaultStyle = {} as Record<string, any>;\n const onClick = (e: MouseEvent) => emit('tap', { eventName: 'tap', object: e.currentTarget });\n return () =>\n h(\n 'header',\n {\n onClick,\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const ActionItem = defineComponent({\n name: 'NSActionItem',\n props: {\n iosPosition: { type: String, default: undefined }\n },\n setup(props, { slots, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n // Support attribute `ios.position=\"right\"` via attrs['ios.position']\n const pos = (attrs as any)['ios.position'] ?? props.iosPosition;\n const defaultClass = 'ns-action-item';\n const defaultStyle: Record<string, any> = {};\n if (pos === 'right') {\n defaultStyle.marginLeft = 'auto';\n }\n return () =>\n h(\n 'div',\n {\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const ImageCacheIt = defineComponent({\n name: 'ImageCacheIt',\n props: {\n src: { type: String, required: true },\n stretch: { type: String, default: 'aspectFill' }\n },\n setup(props, { attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-image-cache-it';\n const objectFitMap: Record<string, string> = {\n \n };\n const defaultStyle = {\n objectFit: objectFitMap[props.stretch] ?? 'cover',\n display: 'block'\n } as Record<string, any>;\n\n return () =>\n h('img', {\n ...rest,\n src: props.src,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n });\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const ContentView = defineComponent({\n name: 'NSContentView',\n setup(_, { slots, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-content-view';\n const defaultStyle = {} as Record<string, any>;\n return () =>\n h(\n 'div',\n {\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const ListView = defineComponent({\n name: 'NSListView',\n props: {\n items: { type: Array as () => any[], default: () => [] },\n separatorColor: { type: String, default: 'transparent' }\n },\n setup(props, { slots, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-list-view';\n const defaultStyle: Record<string, any> = { overflow: 'auto' };\n return () =>\n h(\n 'div',\n { ...rest, class: [defaultClass, userClass].filter(Boolean), style: { ...defaultStyle, ...(userStyle as any) } },\n props.items.map((item: any, index: number) =>\n h(\n 'div',\n { class: 'ns-list-item', style: { borderBottom: `1px solid ${props.separatorColor}` } },\n slots.default ? slots.default({ item, index }) : String(item)\n )\n )\n );\n }\n});","import { defineComponent, h, ref, watch, cloneVNode } from 'vue';\n\nexport const TabView = defineComponent({\n name: 'NSTabView',\n props: {\n selectedIndex: { type: Number, default: 0 },\n androidTabsPosition: { type: String, default: 'bottom' }\n },\n emits: ['selectedIndexChange'],\n setup(props, { slots, emit, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-tab-view';\n const currentIndex = ref(props.selectedIndex ?? 0);\n\n watch(\n () => props.selectedIndex,\n (val) => {\n if (typeof val === 'number') currentIndex.value = val;\n }\n );\n\n const onSelect = (idx: number) => {\n currentIndex.value = idx;\n emit('selectedIndexChange', { value: idx, object: null });\n };\n\n return () => {\n const children = slots.default?.() ?? [];\n const items = children.filter((v: any) => (v?.type?.name ?? '') === 'NSTabViewItem');\n const useChildren = items.length ? items : children;\n\n const barItems = useChildren.map((v: any) => {\n const p = v.props || {};\n const title = p.title ?? '';\n const icon = p['android:iconSource'] ?? p.iconSource ?? undefined;\n return { title, icon };\n });\n\n const renderedContent = useChildren.map((v: any, idx: number) =>\n cloneVNode(v, {\n class: ['ns-tab-view-item', v.props?.class].filter(Boolean),\n style: { ...(v.props?.style || {}), display: idx === currentIndex.value ? '' : 'none' }\n })\n );\n\n const tabBar = h(\n 'nav',\n { class: 'ns-tab-bar' },\n barItems.map((item, idx) =>\n h(\n 'button',\n {\n class: ['ns-tab-bar-item', idx === currentIndex.value ? 'active' : ''].filter(Boolean),\n onClick: () => onSelect(idx)\n },\n item.title || '•'\n )\n )\n );\n\n return h(\n 'div',\n {\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...(userStyle as any) }\n },\n [h('div', { class: 'ns-tab-content' }, renderedContent), props.androidTabsPosition === 'bottom' ? tabBar : null]\n );\n };\n }\n});","import { defineComponent, h } from 'vue';\n\nexport const TabViewItem = defineComponent({\n name: 'NSTabViewItem',\n props: {\n title: { type: String, default: '' },\n iconSource: { type: String, default: undefined }\n },\n setup(_, { slots, attrs }) {\n const { class: userClass, style: userStyle, ...rest } = (attrs || {}) as any;\n const defaultClass = 'ns-tab-view-item';\n const defaultStyle = {} as Record<string, any>;\n return () =>\n h(\n 'div',\n {\n ...rest,\n class: [defaultClass, userClass].filter(Boolean),\n style: { ...defaultStyle, ...(userStyle as any) }\n },\n slots.default?.()\n );\n }\n});","import type { App, Plugin } from 'vue';\nimport './adapter.css';\nimport { Label } from './components/Label';\nimport { Button } from './components/Button';\nimport { StackLayout } from './components/StackLayout';\nimport { FlexboxLayout } from './components/FlexboxLayout';\nimport { GridLayout } from './components/GridLayout';\nimport { Page } from './components/Page';\nimport { Frame } from './components/Frame';\nimport { ActionBar } from './components/ActionBar';\nimport { ActionItem } from './components/ActionItem';\nimport { ImageCacheIt } from './components/ImageCacheIt';\nimport { ContentView } from './components/ContentView';\nimport { ListView } from './components/ListView';\nimport { TabView } from './components/TabView';\nimport { TabViewItem } from './components/TabViewItem';\n\nexport const NativeScriptWebPlugin: Plugin = {\n install(app: App) {\n app.component('Label', Label);\n app.component('Button', Button);\n app.component('StackLayout', StackLayout);\n app.component('FlexboxLayout', FlexboxLayout);\n app.component('GridLayout', GridLayout);\n app.component('Page', Page);\n app.component('Frame', Frame);\n app.component('ActionBar', ActionBar);\n app.component('ActionItem', ActionItem);\n app.component('ImageCacheIt', ImageCacheIt);\n app.component('ContentView', ContentView);\n app.component('ListView', ListView);\n app.component('TabView', TabView);\n app.component('TabViewItem', TabViewItem);\n }\n};\n\nexport { Label, Button, StackLayout, FlexboxLayout, GridLayout, Page, Frame, ActionBar, ActionItem, ImageCacheIt, ContentView, ListView, TabView, TabViewItem };\n"],"names":["defineComponent","h","ref","watch","cloneVNode"],"mappings":";;;;AAEO,MAAM,KAAK,GAAGA,mBAAe,CAAC;AACnC,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;QACnC,mBAAmB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS;AACxD,KAAA;IACD,KAAK,EAAE,CAAC,KAAK,CAAC;IACd,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK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