nativescript-web-adapter 0.1.2 → 0.1.3

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.
Files changed (97) hide show
  1. package/README.md +218 -246
  2. package/core/components/AbsoluteLayout.vue +11 -0
  3. package/core/components/ActionBar.vue +11 -0
  4. package/core/components/ActionItem.vue +11 -0
  5. package/core/components/ActivityIndicator.vue +15 -0
  6. package/core/components/Button.vue +41 -0
  7. package/core/components/DatePicker.vue +27 -0
  8. package/core/components/DockLayout.vue +23 -0
  9. package/core/components/FlexboxLayout.vue +11 -0
  10. package/core/components/Frame.vue +11 -0
  11. package/core/components/GridLayout.vue +85 -0
  12. package/core/components/HtmlView.vue +13 -0
  13. package/core/components/Image.vue +12 -0
  14. package/core/components/ImageCacheIt.vue +12 -0
  15. package/core/components/Label.vue +15 -0
  16. package/core/components/ListPicker.vue +21 -0
  17. package/core/components/ListView.vue +12 -0
  18. package/core/components/NavigationButton.vue +28 -0
  19. package/core/components/Page.vue +18 -0
  20. package/core/components/Placeholder.vue +11 -0
  21. package/core/components/Progress.vue +12 -0
  22. package/core/components/RootLayout.vue +11 -0
  23. package/core/components/ScrollView.vue +11 -0
  24. package/core/components/SearchBar.vue +22 -0
  25. package/core/components/SegmentedBar.vue +50 -0
  26. package/core/components/SegmentedBarItem.vue +21 -0
  27. package/core/components/Slider.vue +18 -0
  28. package/core/components/StackLayout.vue +11 -0
  29. package/core/components/Switch.vue +26 -0
  30. package/core/components/TabView.vue +48 -0
  31. package/core/components/TabViewItem.vue +27 -0
  32. package/core/components/TextField.vue +15 -0
  33. package/core/components/TextView.vue +18 -0
  34. package/core/components/TimePicker.vue +21 -0
  35. package/core/components/WebView.vue +13 -0
  36. package/core/components/WrapLayout.vue +11 -0
  37. package/core/components/index.js +3 -0
  38. package/core/components/index.ts +35 -0
  39. package/core/composables/dialogs.ts +31 -0
  40. package/core/composables/index.js +3 -0
  41. package/core/composables/index.ts +4 -0
  42. package/core/composables/useActionBar.js +7 -0
  43. package/core/composables/useActionBar.ts +19 -0
  44. package/core/composables/useFrame.js +8 -0
  45. package/core/composables/useFrame.ts +25 -0
  46. package/core/composables/usePage.js +8 -0
  47. package/core/composables/usePage.ts +25 -0
  48. package/core/env.d.ts +7 -0
  49. package/core/index.js +4 -0
  50. package/core/index.ts +85 -0
  51. package/core/types.ts +12 -0
  52. package/dist/nativescript-web-adapter.es.js +83 -0
  53. package/dist/nativescript-web-adapter.umd.js +1 -0
  54. package/dist/style.css +1 -0
  55. package/package.json +35 -49
  56. package/tools/cli.cjs +45 -0
  57. package/tools/create-web-platform.cjs +76 -0
  58. package/tools/create-web-platform.js +196 -0
  59. package/tools/modules/appPatch.cjs +27 -0
  60. package/tools/modules/copy.cjs +84 -0
  61. package/tools/modules/router.cjs +46 -0
  62. package/tools/modules/templates.cjs +130 -0
  63. package/tools/modules/transform.cjs +93 -0
  64. package/dist/core.cjs +0 -3
  65. package/dist/core.cjs.map +0 -1
  66. package/dist/core.js +0 -2
  67. package/dist/core.js.map +0 -1
  68. package/dist/index.cjs +0 -377
  69. package/dist/index.cjs.map +0 -1
  70. package/dist/index.css +0 -172
  71. package/dist/index.js +0 -361
  72. package/dist/index.js.map +0 -1
  73. package/dist/types/core/index.d.ts +0 -8
  74. package/dist/types/index.d.ts +0 -1
  75. package/dist/types/index.types.d.ts +0 -1
  76. package/dist/types/vue/components/ActionBar.d.ts +0 -5
  77. package/dist/types/vue/components/ActionItem.d.ts +0 -15
  78. package/dist/types/vue/components/Button.d.ts +0 -26
  79. package/dist/types/vue/components/ContentView.d.ts +0 -3
  80. package/dist/types/vue/components/FlexboxLayout.d.ts +0 -35
  81. package/dist/types/vue/components/Frame.d.ts +0 -3
  82. package/dist/types/vue/components/GridLayout.d.ts +0 -26
  83. package/dist/types/vue/components/ImageCacheIt.d.ts +0 -23
  84. package/dist/types/vue/components/Label.d.ts +0 -26
  85. package/dist/types/vue/components/ListView.d.ts +0 -24
  86. package/dist/types/vue/components/Page.d.ts +0 -5
  87. package/dist/types/vue/components/StackLayout.d.ts +0 -5
  88. package/dist/types/vue/components/TabView.d.ts +0 -26
  89. package/dist/types/vue/components/TabViewItem.d.ts +0 -24
  90. package/dist/types/vue/index.d.ts +0 -18
  91. package/dist/types/vue/index.types.d.ts +0 -17
  92. package/dist/types/vue.d.ts +0 -266
  93. package/dist/vue.cjs +0 -377
  94. package/dist/vue.cjs.map +0 -1
  95. package/dist/vue.css +0 -172
  96. package/dist/vue.js +0 -361
  97. package/dist/vue.js.map +0 -1
@@ -1,5 +0,0 @@
1
- export declare const StackLayout: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "tap"[], "tap", import("vue").PublicProps, Readonly<{}> & Readonly<{
4
- onTap?: (...args: any[]) => any;
5
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,26 +0,0 @@
1
- export declare const TabView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- selectedIndex: {
3
- type: NumberConstructor;
4
- default: number;
5
- };
6
- androidTabsPosition: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
- [key: string]: any;
12
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "selectedIndexChange"[], "selectedIndexChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
- selectedIndex: {
14
- type: NumberConstructor;
15
- default: number;
16
- };
17
- androidTabsPosition: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- }>> & Readonly<{
22
- onSelectedIndexChange?: (...args: any[]) => any;
23
- }>, {
24
- selectedIndex: number;
25
- androidTabsPosition: string;
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,24 +0,0 @@
1
- export declare const TabViewItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- title: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- iconSource: {
7
- type: StringConstructor;
8
- default: any;
9
- };
10
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
- [key: string]: any;
12
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
- title: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- iconSource: {
18
- type: StringConstructor;
19
- default: any;
20
- };
21
- }>> & Readonly<{}>, {
22
- title: string;
23
- iconSource: string;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,18 +0,0 @@
1
- import type { Plugin } from 'vue';
2
- import './adapter.css';
3
- import { Label } from './components/Label';
4
- import { Button } from './components/Button';
5
- import { StackLayout } from './components/StackLayout';
6
- import { FlexboxLayout } from './components/FlexboxLayout';
7
- import { GridLayout } from './components/GridLayout';
8
- import { Page } from './components/Page';
9
- import { Frame } from './components/Frame';
10
- import { ActionBar } from './components/ActionBar';
11
- import { ActionItem } from './components/ActionItem';
12
- import { ImageCacheIt } from './components/ImageCacheIt';
13
- import { ContentView } from './components/ContentView';
14
- import { ListView } from './components/ListView';
15
- import { TabView } from './components/TabView';
16
- import { TabViewItem } from './components/TabViewItem';
17
- export declare const NativeScriptWebPlugin: Plugin;
18
- export { Label, Button, StackLayout, FlexboxLayout, GridLayout, Page, Frame, ActionBar, ActionItem, ImageCacheIt, ContentView, ListView, TabView, TabViewItem };
@@ -1,17 +0,0 @@
1
- import type { Plugin } from 'vue';
2
- import { Label } from './components/Label';
3
- import { Button } from './components/Button';
4
- import { StackLayout } from './components/StackLayout';
5
- import { FlexboxLayout } from './components/FlexboxLayout';
6
- import { GridLayout } from './components/GridLayout';
7
- import { Page } from './components/Page';
8
- import { Frame } from './components/Frame';
9
- import { ActionBar } from './components/ActionBar';
10
- import { ActionItem } from './components/ActionItem';
11
- import { ImageCacheIt } from './components/ImageCacheIt';
12
- import { ContentView } from './components/ContentView';
13
- import { ListView } from './components/ListView';
14
- import { TabView } from './components/TabView';
15
- import { TabViewItem } from './components/TabViewItem';
16
- export declare const NativeScriptWebPlugin: Plugin;
17
- export { Label, Button, StackLayout, FlexboxLayout, GridLayout, Page, Frame, ActionBar, ActionItem, ImageCacheIt, ContentView, ListView, TabView, TabViewItem };
@@ -1,266 +0,0 @@
1
- import * as vue from 'vue';
2
- import { Plugin } from 'vue';
3
-
4
- declare const Label: vue.DefineComponent<vue.ExtractPropTypes<{
5
- text: {
6
- type: StringConstructor;
7
- default: string;
8
- };
9
- horizontalAlignment: {
10
- type: StringConstructor;
11
- default: any;
12
- };
13
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
14
- [key: string]: any;
15
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
16
- text: {
17
- type: StringConstructor;
18
- default: string;
19
- };
20
- horizontalAlignment: {
21
- type: StringConstructor;
22
- default: any;
23
- };
24
- }>> & Readonly<{
25
- onTap?: (...args: any[]) => any;
26
- }>, {
27
- text: string;
28
- horizontalAlignment: string;
29
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
30
-
31
- declare const Button: vue.DefineComponent<vue.ExtractPropTypes<{
32
- text: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- horizontalAlignment: {
37
- type: StringConstructor;
38
- default: any;
39
- };
40
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
41
- [key: string]: any;
42
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
43
- text: {
44
- type: StringConstructor;
45
- default: string;
46
- };
47
- horizontalAlignment: {
48
- type: StringConstructor;
49
- default: any;
50
- };
51
- }>> & Readonly<{
52
- onTap?: (...args: any[]) => any;
53
- }>, {
54
- text: string;
55
- horizontalAlignment: string;
56
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
57
-
58
- declare const StackLayout: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
59
- [key: string]: any;
60
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<{}> & Readonly<{
61
- onTap?: (...args: any[]) => any;
62
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
63
-
64
- declare const FlexboxLayout: vue.DefineComponent<vue.ExtractPropTypes<{
65
- flexDirection: {
66
- type: StringConstructor;
67
- default: string;
68
- };
69
- justifyContent: {
70
- type: StringConstructor;
71
- default: string;
72
- };
73
- alignItems: {
74
- type: StringConstructor;
75
- default: string;
76
- };
77
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
78
- [key: string]: any;
79
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
80
- flexDirection: {
81
- type: StringConstructor;
82
- default: string;
83
- };
84
- justifyContent: {
85
- type: StringConstructor;
86
- default: string;
87
- };
88
- alignItems: {
89
- type: StringConstructor;
90
- default: string;
91
- };
92
- }>> & Readonly<{
93
- onTap?: (...args: any[]) => any;
94
- }>, {
95
- flexDirection: string;
96
- justifyContent: string;
97
- alignItems: string;
98
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
99
-
100
- declare const GridLayout: vue.DefineComponent<vue.ExtractPropTypes<{
101
- rows: {
102
- type: StringConstructor;
103
- default: any;
104
- };
105
- columns: {
106
- type: StringConstructor;
107
- default: any;
108
- };
109
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
110
- [key: string]: any;
111
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
112
- rows: {
113
- type: StringConstructor;
114
- default: any;
115
- };
116
- columns: {
117
- type: StringConstructor;
118
- default: any;
119
- };
120
- }>> & Readonly<{
121
- onTap?: (...args: any[]) => any;
122
- }>, {
123
- rows: string;
124
- columns: string;
125
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
126
-
127
- declare const Page: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
128
- [key: string]: any;
129
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<{}> & Readonly<{
130
- onTap?: (...args: any[]) => any;
131
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
132
-
133
- declare const Frame: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
134
- [key: string]: any;
135
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
136
-
137
- declare const ActionBar: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
138
- [key: string]: any;
139
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tap"[], "tap", vue.PublicProps, Readonly<{}> & Readonly<{
140
- onTap?: (...args: any[]) => any;
141
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
142
-
143
- declare const ActionItem: vue.DefineComponent<vue.ExtractPropTypes<{
144
- iosPosition: {
145
- type: StringConstructor;
146
- default: any;
147
- };
148
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
149
- [key: string]: any;
150
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
151
- iosPosition: {
152
- type: StringConstructor;
153
- default: any;
154
- };
155
- }>> & Readonly<{}>, {
156
- iosPosition: string;
157
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
158
-
159
- declare const ImageCacheIt: vue.DefineComponent<vue.ExtractPropTypes<{
160
- src: {
161
- type: StringConstructor;
162
- required: true;
163
- };
164
- stretch: {
165
- type: StringConstructor;
166
- default: string;
167
- };
168
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
169
- [key: string]: any;
170
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
171
- src: {
172
- type: StringConstructor;
173
- required: true;
174
- };
175
- stretch: {
176
- type: StringConstructor;
177
- default: string;
178
- };
179
- }>> & Readonly<{}>, {
180
- stretch: string;
181
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
182
-
183
- declare const ContentView: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
184
- [key: string]: any;
185
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
186
-
187
- declare const ListView: vue.DefineComponent<vue.ExtractPropTypes<{
188
- items: {
189
- type: () => any[];
190
- default: () => any[];
191
- };
192
- separatorColor: {
193
- type: StringConstructor;
194
- default: string;
195
- };
196
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
197
- [key: string]: any;
198
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
199
- items: {
200
- type: () => any[];
201
- default: () => any[];
202
- };
203
- separatorColor: {
204
- type: StringConstructor;
205
- default: string;
206
- };
207
- }>> & Readonly<{}>, {
208
- items: any[];
209
- separatorColor: string;
210
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
211
-
212
- declare const TabView: vue.DefineComponent<vue.ExtractPropTypes<{
213
- selectedIndex: {
214
- type: NumberConstructor;
215
- default: number;
216
- };
217
- androidTabsPosition: {
218
- type: StringConstructor;
219
- default: string;
220
- };
221
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
222
- [key: string]: any;
223
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "selectedIndexChange"[], "selectedIndexChange", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
224
- selectedIndex: {
225
- type: NumberConstructor;
226
- default: number;
227
- };
228
- androidTabsPosition: {
229
- type: StringConstructor;
230
- default: string;
231
- };
232
- }>> & Readonly<{
233
- onSelectedIndexChange?: (...args: any[]) => any;
234
- }>, {
235
- selectedIndex: number;
236
- androidTabsPosition: string;
237
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
238
-
239
- declare const TabViewItem: vue.DefineComponent<vue.ExtractPropTypes<{
240
- title: {
241
- type: StringConstructor;
242
- default: string;
243
- };
244
- iconSource: {
245
- type: StringConstructor;
246
- default: any;
247
- };
248
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
249
- [key: string]: any;
250
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
251
- title: {
252
- type: StringConstructor;
253
- default: string;
254
- };
255
- iconSource: {
256
- type: StringConstructor;
257
- default: any;
258
- };
259
- }>> & Readonly<{}>, {
260
- title: string;
261
- iconSource: string;
262
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
263
-
264
- declare const NativeScriptWebPlugin: Plugin;
265
-
266
- export { ActionBar, ActionItem, Button, ContentView, FlexboxLayout, Frame, GridLayout, ImageCacheIt, Label, ListView, NativeScriptWebPlugin, Page, StackLayout, TabView, TabViewItem };