@nativescript/template-blank-solid-vision 8.6.0
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/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Back.png +0 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +13 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +6 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Contents.json +17 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +13 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Front.png +0 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +6 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +13 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Middle.png +0 -0
- package/App_Resources/visionOS/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +6 -0
- package/App_Resources/visionOS/Assets.xcassets/Contents.json +6 -0
- package/App_Resources/visionOS/Info.plist +45 -0
- package/App_Resources/visionOS/build.xcconfig +3 -0
- package/App_Resources/visionOS/src/NativeScriptApp.swift +9 -0
- package/README.md +5 -0
- package/hooks/after-createProject/after-createProject.js +65 -0
- package/package.json +66 -0
- package/patches/@nativescript-community+solid-js+0.0.4-alpha.5.patch +233 -0
- package/patches/dominative+0.0.9-alpha.4.patch +746 -0
- package/src/app.css +3 -0
- package/src/app.tsx +73 -0
- package/src/assets/solid.png +0 -0
- package/src/components/collectionview.tsx +95 -0
- package/src/components/list.tsx +81 -0
- package/src/index.js +14 -0
- package/src/router.ts +14 -0
- package/src/routes/home.tsx +23 -0
- package/src/routes/settings.tsx +31 -0
- package/tailwind.config.js +15 -0
- package/tools/dot.gitignore +28 -0
- package/tools/vscode.extensions.json +3 -0
- package/tsconfig.json +35 -0
- package/webpack.config.js +9 -0
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
diff --git a/node_modules/dominative/index.d.ts b/node_modules/dominative/index.d.ts
|
|
2
|
+
deleted file mode 100644
|
|
3
|
+
index 3626f82..0000000
|
|
4
|
+
--- a/node_modules/dominative/index.d.ts
|
|
5
|
+
+++ /dev/null
|
|
6
|
+
@@ -1,740 +0,0 @@
|
|
7
|
+
-import * as NS from "@nativescript/core";
|
|
8
|
+
-
|
|
9
|
+
-declare module "dominative" {
|
|
10
|
+
- export interface NSCustomComponentsMap {}
|
|
11
|
+
-
|
|
12
|
+
- interface NSTypeofComponents {
|
|
13
|
+
- Frame: NS.Frame & typeof NS.Frame;
|
|
14
|
+
- Page: NS.Page & typeof NS.Page;
|
|
15
|
+
- AbsoluteLayout: NS.AbsoluteLayout & typeof NS.AbsoluteLayout;
|
|
16
|
+
- ActionBar: NS.ActionBar & typeof NS.ActionBar;
|
|
17
|
+
- ActionItem: NS.ActionItem & typeof NS.ActionItem;
|
|
18
|
+
- ActivityIndicator: NS.ActivityIndicator & typeof NS.ActivityIndicator;
|
|
19
|
+
- Button: NS.Button & typeof NS.Button;
|
|
20
|
+
- ContentView: NS.ContentView & typeof NS.ContentView;
|
|
21
|
+
- DatePicker: NS.DatePicker & typeof NS.DatePicker;
|
|
22
|
+
- DockLayout: NS.DockLayout & typeof NS.DockLayout;
|
|
23
|
+
- FlexboxLayout: NS.FlexboxLayout & typeof NS.FlexboxLayout;
|
|
24
|
+
- FormattedString: NS.FormattedString & typeof NS.FormattedString;
|
|
25
|
+
- GridLayout: NS.GridLayout & typeof NS.GridLayout;
|
|
26
|
+
- HtmlView: NS.HtmlView & typeof NS.HtmlView;
|
|
27
|
+
- Image: NS.Image & typeof NS.Image;
|
|
28
|
+
- Label: NS.Label & typeof NS.Label;
|
|
29
|
+
- ListPicker: NS.ListPicker & typeof NS.ListPicker;
|
|
30
|
+
- ListView: NS.ListView & typeof NS.ListView;
|
|
31
|
+
- NavigationButton: NS.NavigationButton & typeof NS.NavigationButton;
|
|
32
|
+
- Placeholder: NS.Placeholder & typeof NS.Placeholder;
|
|
33
|
+
- Progress: NS.Progress & typeof NS.Progress;
|
|
34
|
+
- ProxyViewContainer: NS.ProxyViewContainer & typeof NS.ProxyViewContainer;
|
|
35
|
+
- RootLayout: NS.RootLayout & typeof NS.RootLayout;
|
|
36
|
+
- ScrollView: NS.ScrollView & typeof NS.ScrollView;
|
|
37
|
+
- SearchBar: NS.SearchBar & typeof NS.SearchBar;
|
|
38
|
+
- SegmentedBar: NS.SegmentedBar & typeof NS.SegmentedBar;
|
|
39
|
+
- SegmentedBarItem: NS.SegmentedBarItem & typeof NS.SegmentedBarItem;
|
|
40
|
+
- Slider: NS.Slider & typeof NS.Slider;
|
|
41
|
+
- Span: NS.Span & typeof NS.Span;
|
|
42
|
+
- StackLayout: NS.StackLayout & typeof NS.StackLayout;
|
|
43
|
+
- Switch: NS.Switch & typeof NS.Switch;
|
|
44
|
+
- TabView: NS.TabView & typeof NS.TabView;
|
|
45
|
+
- TabViewItem: NS.TabViewItem & typeof NS.TabViewItem;
|
|
46
|
+
- TextField: NS.TextField & typeof NS.TextField;
|
|
47
|
+
- TextView: NS.TextView & typeof NS.TextView;
|
|
48
|
+
- TimePicker: NS.TimePicker & typeof NS.TimePicker;
|
|
49
|
+
- WebView: NS.WebView & typeof NS.WebView;
|
|
50
|
+
- WrapLayout: NS.WrapLayout & typeof NS.WrapLayout;
|
|
51
|
+
- }
|
|
52
|
+
-
|
|
53
|
+
- export const NSComponentsWithTypeOfMap: NSTypeofComponents;
|
|
54
|
+
-
|
|
55
|
+
- interface TypeofVirtualElements {
|
|
56
|
+
- Prop: Prop & typeof Prop;
|
|
57
|
+
- KeyProp: KeyProp & typeof KeyProp;
|
|
58
|
+
- ArrayProp: ArrayProp & typeof ArrayProp;
|
|
59
|
+
- ItemTemplate: ItemTemplate & typeof ItemTemplate;
|
|
60
|
+
- }
|
|
61
|
+
-
|
|
62
|
+
- export const VirtualElementsWithTypeofMap: TypeofVirtualElements;
|
|
63
|
+
-
|
|
64
|
+
- interface VirtualElementsMap {
|
|
65
|
+
- Prop: Prop;
|
|
66
|
+
- KeyProp: KeyProp;
|
|
67
|
+
- ArrayProp: ArrayProp;
|
|
68
|
+
- ItemTemplate: ItemTemplate;
|
|
69
|
+
- }
|
|
70
|
+
-
|
|
71
|
+
- interface NSComponentsMap {
|
|
72
|
+
- Frame: NS.Frame;
|
|
73
|
+
- Page: NS.Page;
|
|
74
|
+
- AbsoluteLayout: NS.AbsoluteLayout;
|
|
75
|
+
- ActionBar: NS.ActionBar;
|
|
76
|
+
- ActionItem: NS.ActionItem;
|
|
77
|
+
- ActivityIndicator: NS.ActivityIndicator;
|
|
78
|
+
- Button: NS.Button;
|
|
79
|
+
- ContentView: NS.ContentView;
|
|
80
|
+
- DatePicker: NS.DatePicker;
|
|
81
|
+
- DockLayout: NS.DockLayout;
|
|
82
|
+
- FlexboxLayout: NS.FlexboxLayout;
|
|
83
|
+
- FormattedString: NS.FormattedString;
|
|
84
|
+
- GridLayout: NS.GridLayout;
|
|
85
|
+
- HtmlView: NS.HtmlView;
|
|
86
|
+
- Image: NS.Image;
|
|
87
|
+
- Label: NS.Label;
|
|
88
|
+
- ListPicker: NS.ListPicker;
|
|
89
|
+
- ListView: NS.ListView;
|
|
90
|
+
- NavigationButton: NS.NavigationButton;
|
|
91
|
+
- Placeholder: NS.Placeholder;
|
|
92
|
+
- Progress: NS.Progress;
|
|
93
|
+
- ProxyViewContainer: NS.ProxyViewContainer;
|
|
94
|
+
- RootLayout: NS.RootLayout;
|
|
95
|
+
- ScrollView: NS.ScrollView;
|
|
96
|
+
- SearchBar: NS.SearchBar;
|
|
97
|
+
- SegmentedBar: NS.SegmentedBar;
|
|
98
|
+
- SegmentedBarItem: NS.SegmentedBarItem;
|
|
99
|
+
- Slider: NS.Slider;
|
|
100
|
+
- Span: NS.Span;
|
|
101
|
+
- StackLayout: NS.StackLayout;
|
|
102
|
+
- Switch: NS.Switch;
|
|
103
|
+
- TabView: NS.TabView;
|
|
104
|
+
- TabViewItem: NS.TabViewItem;
|
|
105
|
+
- TextField: NS.TextField;
|
|
106
|
+
- TextView: NS.TextView;
|
|
107
|
+
- TimePicker: NS.TimePicker;
|
|
108
|
+
- WebView: NS.WebView;
|
|
109
|
+
- WrapLayout: NS.WrapLayout;
|
|
110
|
+
- }
|
|
111
|
+
-
|
|
112
|
+
- export type ExtractEventNamesWithDefault<T> =
|
|
113
|
+
- | {
|
|
114
|
+
- [K in keyof T]: K extends `${infer Name}Event` ? Name : never;
|
|
115
|
+
- }[keyof T]
|
|
116
|
+
- | ({} & string);
|
|
117
|
+
-
|
|
118
|
+
- export type ExtractEventNames<T> = {
|
|
119
|
+
- [K in keyof T]: K extends `${infer Name}Event` ? Name : never;
|
|
120
|
+
- }[keyof T];
|
|
121
|
+
-
|
|
122
|
+
- interface ElementCreationOptions {
|
|
123
|
+
- is?: string;
|
|
124
|
+
- }
|
|
125
|
+
-
|
|
126
|
+
- interface EventListener<T = HTMLViewBaseElement> {
|
|
127
|
+
- (event: Event<T>): void;
|
|
128
|
+
- }
|
|
129
|
+
-
|
|
130
|
+
- interface EventListenerObject<T = HTMLViewBaseElement> {
|
|
131
|
+
- handleEvent(event: Event<T>): void;
|
|
132
|
+
- }
|
|
133
|
+
-
|
|
134
|
+
- type EventListenerOrEventListenerObject<T = HTMLViewBaseElement> =
|
|
135
|
+
- | EventListener<T>
|
|
136
|
+
- | EventListenerObject<T>;
|
|
137
|
+
-
|
|
138
|
+
- interface AddEventListenerOptions extends EventListenerOptions {
|
|
139
|
+
- once?: boolean;
|
|
140
|
+
- passive?: boolean;
|
|
141
|
+
- //signal?: AbortSignal;
|
|
142
|
+
- }
|
|
143
|
+
-
|
|
144
|
+
- interface EventListenerOptions {
|
|
145
|
+
- capture?: boolean;
|
|
146
|
+
- }
|
|
147
|
+
-
|
|
148
|
+
- type DOMHighResTimeStamp = number;
|
|
149
|
+
-
|
|
150
|
+
- export interface EventOption {
|
|
151
|
+
- bubbles?: boolean;
|
|
152
|
+
- captures?: boolean;
|
|
153
|
+
- cancelable?: boolean;
|
|
154
|
+
- }
|
|
155
|
+
-
|
|
156
|
+
- export interface Event<T = HTMLViewBaseElement> {
|
|
157
|
+
- /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
|
|
158
|
+
- readonly bubbles: boolean;
|
|
159
|
+
- /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
|
|
160
|
+
- readonly cancelable: boolean;
|
|
161
|
+
- /** Returns the object who triggeres the event. */
|
|
162
|
+
- readonly target: (EventTarget<T> & T) | null;
|
|
163
|
+
- /** Returns the object whose event listener's callback is currently being invoked. */
|
|
164
|
+
- readonly currentTarget: (EventTarget<T> & T) | null;
|
|
165
|
+
-
|
|
166
|
+
- readonly object: (EventTarget<T> & T) | null;
|
|
167
|
+
- /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
|
|
168
|
+
- readonly defaultPrevented: boolean;
|
|
169
|
+
- /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
|
|
170
|
+
- readonly type: string;
|
|
171
|
+
- initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
172
|
+
- /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
|
|
173
|
+
- preventDefault(): void;
|
|
174
|
+
- /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
|
|
175
|
+
- stopImmediatePropagation(): void;
|
|
176
|
+
- /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
|
|
177
|
+
- stopPropagation(): void;
|
|
178
|
+
- }
|
|
179
|
+
-
|
|
180
|
+
- export interface DOMEvent<T> extends Event<T> {}
|
|
181
|
+
-
|
|
182
|
+
- export type ExtendWithCustomEventHandlers<T, C> = {
|
|
183
|
+
- eventNames: ExtractEventNames<T>;
|
|
184
|
+
- on(
|
|
185
|
+
- eventNames: ExtractEventNames<T>,
|
|
186
|
+
- callback: (event: EventListenerOrEventListenerObject<C>) => void,
|
|
187
|
+
- thisArg?: any
|
|
188
|
+
- ): void;
|
|
189
|
+
- off(
|
|
190
|
+
- event: ExtractEventNames<T>,
|
|
191
|
+
- callback: (event: EventListenerOrEventListenerObject<C>) => void,
|
|
192
|
+
- thisArg?: any
|
|
193
|
+
- ): void;
|
|
194
|
+
- addEventListener(
|
|
195
|
+
- type: ExtractEventNames<T>,
|
|
196
|
+
- callback: EventListenerOrEventListenerObject<C>,
|
|
197
|
+
- options?: boolean | AddEventListenerOptions
|
|
198
|
+
- ): void;
|
|
199
|
+
- removeEventListener(
|
|
200
|
+
- type: ExtractEventNames<T>,
|
|
201
|
+
- callback: EventListenerOrEventListenerObject<C>,
|
|
202
|
+
- options?: boolean | EventListenerOptions
|
|
203
|
+
- ): void;
|
|
204
|
+
- } & C;
|
|
205
|
+
-
|
|
206
|
+
- type HTMLViewBaseElement = ExtendWithCustomEventHandlers<
|
|
207
|
+
- typeof NS.ViewBase,
|
|
208
|
+
- HTMLElement<NS.ViewBase>
|
|
209
|
+
- >;
|
|
210
|
+
-
|
|
211
|
+
- export class Node extends NS.ViewBase {
|
|
212
|
+
- constructor(nodeType: number, nodeName: string);
|
|
213
|
+
- readonly nodeType: number;
|
|
214
|
+
- readonly nodeName: string;
|
|
215
|
+
- readonly tagName: string;
|
|
216
|
+
- parentNode: ParentNode;
|
|
217
|
+
- get nextSibling(): Node;
|
|
218
|
+
- get previousSibling(): Node;
|
|
219
|
+
-
|
|
220
|
+
- get firstChild(): Node;
|
|
221
|
+
- get lastChild(): Node;
|
|
222
|
+
-
|
|
223
|
+
- hasChildNodes(): boolean;
|
|
224
|
+
- replaceWith(...nodes: Node[]): void;
|
|
225
|
+
- cloneNode(deep: boolean): Node;
|
|
226
|
+
- remove(): void;
|
|
227
|
+
- }
|
|
228
|
+
-
|
|
229
|
+
- export interface EventTarget<T = HTMLViewBaseElement> {
|
|
230
|
+
- /**
|
|
231
|
+
- * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
|
|
232
|
+
- *
|
|
233
|
+
- * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
|
|
234
|
+
- *
|
|
235
|
+
- * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
|
|
236
|
+
- *
|
|
237
|
+
- * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
|
|
238
|
+
- *
|
|
239
|
+
- * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
|
|
240
|
+
- *
|
|
241
|
+
- * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
|
|
242
|
+
- *
|
|
243
|
+
- * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
|
|
244
|
+
- */
|
|
245
|
+
- addEventListener(
|
|
246
|
+
- type: string,
|
|
247
|
+
- callback: EventListenerOrEventListenerObject<T> | null,
|
|
248
|
+
- options?: AddEventListenerOptions | boolean
|
|
249
|
+
- ): void;
|
|
250
|
+
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
251
|
+
- dispatchEvent(event: Event): boolean;
|
|
252
|
+
- /** Removes the event listener in target's event listener list with the same type, callback, and options. */
|
|
253
|
+
- removeEventListener(
|
|
254
|
+
- type: string,
|
|
255
|
+
- callback: EventListenerOrEventListenerObject<T> | null,
|
|
256
|
+
- options?: EventListenerOptions | boolean
|
|
257
|
+
- ): void;
|
|
258
|
+
- }
|
|
259
|
+
-
|
|
260
|
+
- export class Element extends ParentNode implements EventTarget {
|
|
261
|
+
- attributes: { namespace: string; name: string }[];
|
|
262
|
+
- style: NS.Style;
|
|
263
|
+
- localName: string;
|
|
264
|
+
- //@ts-ignore
|
|
265
|
+
- get className(): string;
|
|
266
|
+
-
|
|
267
|
+
- set className(val: string);
|
|
268
|
+
-
|
|
269
|
+
- get cssText(): string;
|
|
270
|
+
- set cssText(val: string);
|
|
271
|
+
- //@ts-ignore
|
|
272
|
+
- get children(): Element[];
|
|
273
|
+
-
|
|
274
|
+
- namespaceURI(): string;
|
|
275
|
+
-
|
|
276
|
+
- get innerHTML(): string;
|
|
277
|
+
-
|
|
278
|
+
- set innerHTML(value: string);
|
|
279
|
+
-
|
|
280
|
+
- get outerHTML(): string;
|
|
281
|
+
-
|
|
282
|
+
- set outerHTML(value: string);
|
|
283
|
+
-
|
|
284
|
+
- get textContent(): string;
|
|
285
|
+
-
|
|
286
|
+
- set textContent(value: string);
|
|
287
|
+
-
|
|
288
|
+
- insertBefore(child: Node, ref: Node): Node;
|
|
289
|
+
-
|
|
290
|
+
- setAttribute(qualifiedName: string, value: string): void;
|
|
291
|
+
- getAttribute(qualifiedName: string): string | null;
|
|
292
|
+
-
|
|
293
|
+
- removeAttribute(qualifiedName: string): void;
|
|
294
|
+
- /** Removes element's attribute whose namespace is namespace and local name is localName. */
|
|
295
|
+
- removeAttributeNS(namespace: string | null, localName: string): void;
|
|
296
|
+
-
|
|
297
|
+
- setAttributeNS(
|
|
298
|
+
- namespace: string | null,
|
|
299
|
+
- qualifiedName: string,
|
|
300
|
+
- value: string
|
|
301
|
+
- ): void;
|
|
302
|
+
- /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
|
|
303
|
+
- getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
304
|
+
- //@ts-ignore
|
|
305
|
+
- addEventListener(
|
|
306
|
+
- type: string,
|
|
307
|
+
- callback: EventListenerOrEventListenerObject,
|
|
308
|
+
- options?: boolean | AddEventListenerOptions
|
|
309
|
+
- ): void;
|
|
310
|
+
- dispatchEvent(event: Event): boolean;
|
|
311
|
+
- removeEventListener(
|
|
312
|
+
- type: string,
|
|
313
|
+
- callback: EventListenerOrEventListenerObject,
|
|
314
|
+
- options?: boolean | EventListenerOptions
|
|
315
|
+
- ): void;
|
|
316
|
+
- }
|
|
317
|
+
-
|
|
318
|
+
- export interface CharacterData extends Node {
|
|
319
|
+
- get data(): string;
|
|
320
|
+
- set data(data: string);
|
|
321
|
+
-
|
|
322
|
+
- get length(): number;
|
|
323
|
+
-
|
|
324
|
+
- get nodeValue(): string;
|
|
325
|
+
- set nodeValue(data: string);
|
|
326
|
+
-
|
|
327
|
+
- get textContent(): string;
|
|
328
|
+
- set textContent(value: string);
|
|
329
|
+
-
|
|
330
|
+
- appendData(data: string);
|
|
331
|
+
- }
|
|
332
|
+
-
|
|
333
|
+
- export interface Comment extends CharacterData {
|
|
334
|
+
- constructor(data: string): void;
|
|
335
|
+
- }
|
|
336
|
+
-
|
|
337
|
+
- //@ts-ignore
|
|
338
|
+
- export interface Text extends Node {
|
|
339
|
+
- constructor(text: string);
|
|
340
|
+
- set textContent(value: string);
|
|
341
|
+
- get textContent(): string;
|
|
342
|
+
- }
|
|
343
|
+
-
|
|
344
|
+
- export class ParentNode extends Node {
|
|
345
|
+
- childElementCount: number;
|
|
346
|
+
- get firstElementChild(): Node;
|
|
347
|
+
- get lastElementChild(): Node;
|
|
348
|
+
- get children(): Node[];
|
|
349
|
+
- get childNodes(): Node;
|
|
350
|
+
- append(...nodes: Node[]): void;
|
|
351
|
+
- insertBefore(child: Node, ref: Node): Node;
|
|
352
|
+
- replaceChild(child: Node, ref: Node): Node;
|
|
353
|
+
- appendChild(child: Node): Node;
|
|
354
|
+
- get textContent(): string;
|
|
355
|
+
- set textContent(value: string);
|
|
356
|
+
- removeChild(child: Node): Node;
|
|
357
|
+
- }
|
|
358
|
+
-
|
|
359
|
+
- export interface Scope {
|
|
360
|
+
- Event: Event;
|
|
361
|
+
- Node: Node;
|
|
362
|
+
- ParentNode: ParentNode;
|
|
363
|
+
- HTMLElement: HTMLElement;
|
|
364
|
+
- SVGElement: SVGElement;
|
|
365
|
+
- DocumentFragment: DocumentFragment;
|
|
366
|
+
- Comment: Comment;
|
|
367
|
+
- CharacterData: CharacterData;
|
|
368
|
+
- Text: Text;
|
|
369
|
+
- Element: Element;
|
|
370
|
+
- Document: Document;
|
|
371
|
+
- }
|
|
372
|
+
-
|
|
373
|
+
- export class DocumentFragment extends ParentNode {}
|
|
374
|
+
-
|
|
375
|
+
- export class SVGElement extends Element {}
|
|
376
|
+
-
|
|
377
|
+
- class HTMLElementBase extends Element {
|
|
378
|
+
- style: NS.Style;
|
|
379
|
+
- }
|
|
380
|
+
-
|
|
381
|
+
- export type HTMLElement<T = any> = Omit<HTMLElementBase & T, "on" | "off">;
|
|
382
|
+
-
|
|
383
|
+
- export type DominativeExtended<T = NS.ViewBase> = T & {};
|
|
384
|
+
-
|
|
385
|
+
- class TweakableBase {
|
|
386
|
+
- static getEventMap(fromEvent: string): string;
|
|
387
|
+
- static getEventOption(type: string): EventOption | void;
|
|
388
|
+
- static mapEvent(fromEvent: string, toEvent: string): void;
|
|
389
|
+
- static mapProp(fromProp: string, toProp: string): void;
|
|
390
|
+
- static defineEventOption(type: string, option: EventOption): void;
|
|
391
|
+
- }
|
|
392
|
+
-
|
|
393
|
+
- export type Tweakable<T> = TweakableBase & T;
|
|
394
|
+
-
|
|
395
|
+
- export class Prop extends HTMLElementBase {
|
|
396
|
+
- constructor(key: string, type: string);
|
|
397
|
+
- get key(): string;
|
|
398
|
+
- set key(key: string);
|
|
399
|
+
- get class(): string;
|
|
400
|
+
- set class(value: string);
|
|
401
|
+
- get type(): string;
|
|
402
|
+
- set type(type: string);
|
|
403
|
+
- get value(): any;
|
|
404
|
+
- set value(value: any);
|
|
405
|
+
- //@ts-ignore
|
|
406
|
+
- get parent(): ParentNode;
|
|
407
|
+
- }
|
|
408
|
+
-
|
|
409
|
+
- export class KeyProp extends Prop {
|
|
410
|
+
- constructor(key: string);
|
|
411
|
+
- }
|
|
412
|
+
-
|
|
413
|
+
- export class ArrayProp extends Prop {
|
|
414
|
+
- constructor(key: string);
|
|
415
|
+
- }
|
|
416
|
+
-
|
|
417
|
+
- export class ItemTemplate extends Prop {
|
|
418
|
+
- public static createViewEvent: string;
|
|
419
|
+
- public static itemLoadingEvent: string;
|
|
420
|
+
- get content(): any;
|
|
421
|
+
- set content(value: any);
|
|
422
|
+
- patch(data: {
|
|
423
|
+
- view: HTMLElement;
|
|
424
|
+
- index: number;
|
|
425
|
+
- item: any;
|
|
426
|
+
- data: any;
|
|
427
|
+
- }): HTMLElement;
|
|
428
|
+
- createView(): HTMLElement;
|
|
429
|
+
- }
|
|
430
|
+
-
|
|
431
|
+
- class DocumentBase extends ParentNode {
|
|
432
|
+
- createElement<K extends keyof HTMLElementTagNameMap | (string & {})>(
|
|
433
|
+
- tagName: K
|
|
434
|
+
- ): //options?: ElementCreationOptions
|
|
435
|
+
- //@ts-ignore
|
|
436
|
+
- HTMLElementTagNameMap[K];
|
|
437
|
+
- createElementNS<K extends keyof HTMLElementTagNameMap | (string & {})>(
|
|
438
|
+
- namespace: string | null,
|
|
439
|
+
- qualifiedName: K
|
|
440
|
+
- ): //options?: ElementCreationOptions
|
|
441
|
+
- Element;
|
|
442
|
+
- createTextNode(text: string): Text;
|
|
443
|
+
- createDocumentFragment(): DocumentFragment;
|
|
444
|
+
- createEvent(type: string): Event;
|
|
445
|
+
- createComment(data: string): Comment;
|
|
446
|
+
- get defaultView(): Scope;
|
|
447
|
+
- }
|
|
448
|
+
-
|
|
449
|
+
- type DominativeExtendedMap = {
|
|
450
|
+
- [K in keyof NSComponentsMap]: DominativeExtended<NSComponentsMap[K]>;
|
|
451
|
+
- } & {
|
|
452
|
+
- [K in keyof VirtualElementsMap]: DominativeExtended<VirtualElementsMap[K]>;
|
|
453
|
+
- };
|
|
454
|
+
-
|
|
455
|
+
- type TweakableMap = {
|
|
456
|
+
- [K in keyof NSComponentsMap]: Tweakable<DominativeExtendedMap[K]>;
|
|
457
|
+
- } & {
|
|
458
|
+
- [K in keyof VirtualElementsMap]: Tweakable<DominativeExtendedMap[K]>;
|
|
459
|
+
- };
|
|
460
|
+
-
|
|
461
|
+
- type HTMLElementTagNameMap = {
|
|
462
|
+
- [K in keyof NSComponentsMap]: ExtendWithCustomEventHandlers<
|
|
463
|
+
- typeof NSComponentsWithTypeOfMap[K],
|
|
464
|
+
- HTMLElement<TweakableMap[K]>
|
|
465
|
+
- >;
|
|
466
|
+
- } & {
|
|
467
|
+
- [K in keyof NSCustomComponentsMap]: HTMLElement<
|
|
468
|
+
- Tweakable<DominativeExtended<NSCustomComponentsMap[K]>>
|
|
469
|
+
- >;
|
|
470
|
+
- } & {
|
|
471
|
+
- [K in keyof VirtualElementsMap]: ExtendWithCustomEventHandlers<
|
|
472
|
+
- typeof VirtualElementsWithTypeofMap[K],
|
|
473
|
+
- HTMLElement<TweakableMap[K]>
|
|
474
|
+
- >;
|
|
475
|
+
- };
|
|
476
|
+
-
|
|
477
|
+
- export type Document = DocumentBase &
|
|
478
|
+
- Tweakable<DominativeExtended<NS.ContentView>> & {
|
|
479
|
+
- documentElement: HTMLElementTagNameMap["Frame"];
|
|
480
|
+
- body: HTMLElementTagNameMap["Page"];
|
|
481
|
+
- };
|
|
482
|
+
-
|
|
483
|
+
- export const document: Document;
|
|
484
|
+
- export const scope: Scope;
|
|
485
|
+
- /**
|
|
486
|
+
- * Creates alias for tag names
|
|
487
|
+
- * Useful when frameworks doesn't support case sensitive tag names
|
|
488
|
+
- *
|
|
489
|
+
- * @param {string} nameHandler The name converter
|
|
490
|
+
- */
|
|
491
|
+
- export function aliasTagName(nameHandler: (tag: string) => string): void;
|
|
492
|
+
- export const domImpl: {
|
|
493
|
+
- Node: Node;
|
|
494
|
+
- document: Document;
|
|
495
|
+
- isNode(node: any): boolean;
|
|
496
|
+
- };
|
|
497
|
+
- /**
|
|
498
|
+
- * Creates a document
|
|
499
|
+
- *
|
|
500
|
+
- * @param {Document} initDocument Method to initialize the document
|
|
501
|
+
- */
|
|
502
|
+
- export function createDocument(
|
|
503
|
+
- initDocument?: (document: Document) => void
|
|
504
|
+
- ): Document;
|
|
505
|
+
- /**
|
|
506
|
+
- * Register a NativeScript view to be a DOM element
|
|
507
|
+
- *
|
|
508
|
+
- * @param {string} name The name of the element
|
|
509
|
+
- * @param {T} element The view to be registered
|
|
510
|
+
- */
|
|
511
|
+
- export function registerElement<T = NS.ViewBase>(
|
|
512
|
+
- name: string,
|
|
513
|
+
- element: T
|
|
514
|
+
- ): HTMLElement<Tweakable<DominativeExtended<T>>>;
|
|
515
|
+
- /**
|
|
516
|
+
- * Register anything as a DOM element
|
|
517
|
+
- *
|
|
518
|
+
- * @param {string} name The name of the element
|
|
519
|
+
- * @param {T} element The element to be rsgistered
|
|
520
|
+
- * @param {boolean} isSvg Indicates if the element is svg
|
|
521
|
+
- */
|
|
522
|
+
- export function registerDOMElement<T = any>(
|
|
523
|
+
- name: string,
|
|
524
|
+
- element?: T,
|
|
525
|
+
- isSvg?: boolean
|
|
526
|
+
- ): HTMLElement<T>;
|
|
527
|
+
- /**
|
|
528
|
+
- * Register all built-in elements automatically
|
|
529
|
+
- * **Harmful to tree-shaking**
|
|
530
|
+
- */
|
|
531
|
+
- export function registerAllElements(): void;
|
|
532
|
+
- /**
|
|
533
|
+
- * Automatically register `document`, `window` and related variables globally
|
|
534
|
+
- *
|
|
535
|
+
- * @param {any} global The global
|
|
536
|
+
- */
|
|
537
|
+
- export function globalRegister(global: any): void;
|
|
538
|
+
-
|
|
539
|
+
- export function makeTweakable<T = Object>(obj: T, options: any): Tweakable<T>;
|
|
540
|
+
- export function makeView<T = NS.ViewBase>(
|
|
541
|
+
- view: T,
|
|
542
|
+
- options: any
|
|
543
|
+
- ): DominativeExtended<T>;
|
|
544
|
+
- export function makeLayout<T = NS.LayoutBase>(
|
|
545
|
+
- view: T,
|
|
546
|
+
- options: any
|
|
547
|
+
- ): DominativeExtended<T>;
|
|
548
|
+
- export function makeText<T = NS.TextBase>(
|
|
549
|
+
- view: T,
|
|
550
|
+
- options: any
|
|
551
|
+
- ): DominativeExtended<T>;
|
|
552
|
+
- export function makeEditableText<T = NS.EditableTextBase>(
|
|
553
|
+
- view: T,
|
|
554
|
+
- options: any
|
|
555
|
+
- ): DominativeExtended<T>;
|
|
556
|
+
- export function makeAbsoluteLayout<T = NS.AbsoluteLayout>(
|
|
557
|
+
- view: T,
|
|
558
|
+
- options: any
|
|
559
|
+
- ): DominativeExtended<T>;
|
|
560
|
+
- export function makeActionBar<T = NS.ActionBar>(
|
|
561
|
+
- view: T,
|
|
562
|
+
- options: any
|
|
563
|
+
- ): DominativeExtended<T>;
|
|
564
|
+
- export function makeActionItem<T = NS.ActionItem>(
|
|
565
|
+
- view: T,
|
|
566
|
+
- options: any
|
|
567
|
+
- ): DominativeExtended<T>;
|
|
568
|
+
- export function makeActivityIndicator<T = NS.ActivityIndicator>(
|
|
569
|
+
- view: T,
|
|
570
|
+
- options: any
|
|
571
|
+
- ): DominativeExtended<T>;
|
|
572
|
+
- export function makeButton<T = NS.Button>(
|
|
573
|
+
- view: T,
|
|
574
|
+
- options: any
|
|
575
|
+
- ): DominativeExtended<T>;
|
|
576
|
+
- export function makeContentView<T = NS.ContentView>(
|
|
577
|
+
- view: T,
|
|
578
|
+
- options: any
|
|
579
|
+
- ): DominativeExtended<T>;
|
|
580
|
+
- export function makeDatePicker<T = NS.DatePicker>(
|
|
581
|
+
- view: T,
|
|
582
|
+
- options: any
|
|
583
|
+
- ): DominativeExtended<T>;
|
|
584
|
+
- export function makeDockLayout<T = NS.DockLayout>(
|
|
585
|
+
- view: T,
|
|
586
|
+
- options: any
|
|
587
|
+
- ): DominativeExtended<T>;
|
|
588
|
+
- export function makeFlexboxLayout<T = NS.FlexboxLayout>(
|
|
589
|
+
- view: T,
|
|
590
|
+
- options: any
|
|
591
|
+
- ): DominativeExtended<T>;
|
|
592
|
+
- export function makeFormattedString<T = NS.FormattedString>(
|
|
593
|
+
- view: T,
|
|
594
|
+
- options: any
|
|
595
|
+
- ): DominativeExtended<T>;
|
|
596
|
+
- export function makeFrame<T = NS.Frame>(
|
|
597
|
+
- view: T,
|
|
598
|
+
- options: any
|
|
599
|
+
- ): DominativeExtended<T>;
|
|
600
|
+
- export function makeGridLayout<T = NS.GridLayout>(
|
|
601
|
+
- view: T,
|
|
602
|
+
- options: any
|
|
603
|
+
- ): DominativeExtended<T>;
|
|
604
|
+
- export function makeHtmlView<T = NS.HtmlView>(
|
|
605
|
+
- view: T,
|
|
606
|
+
- options: any
|
|
607
|
+
- ): DominativeExtended<T>;
|
|
608
|
+
- export function makeImage<T = NS.Image>(
|
|
609
|
+
- view: T,
|
|
610
|
+
- options: any
|
|
611
|
+
- ): DominativeExtended<T>;
|
|
612
|
+
- export function makeLabel<T = NS.Label>(
|
|
613
|
+
- view: T,
|
|
614
|
+
- options: any
|
|
615
|
+
- ): DominativeExtended<T>;
|
|
616
|
+
- export function makeListPicker<T = NS.ListPicker>(
|
|
617
|
+
- view: T,
|
|
618
|
+
- options: any
|
|
619
|
+
- ): DominativeExtended<T>;
|
|
620
|
+
- export function makeListView<T = NS.ListView>(
|
|
621
|
+
- view: T,
|
|
622
|
+
- options: any
|
|
623
|
+
- ): DominativeExtended<T>;
|
|
624
|
+
- export function makeNavigationButton<T = NS.NavigationButton>(
|
|
625
|
+
- view: T,
|
|
626
|
+
- options: any
|
|
627
|
+
- ): DominativeExtended<T>;
|
|
628
|
+
- export function makePage<T = NS.Page>(
|
|
629
|
+
- view: T,
|
|
630
|
+
- options: any
|
|
631
|
+
- ): DominativeExtended<T>;
|
|
632
|
+
- export function makePlaceholder<T = NS.Placeholder>(
|
|
633
|
+
- view: T,
|
|
634
|
+
- options: any
|
|
635
|
+
- ): DominativeExtended<T>;
|
|
636
|
+
- export function makeProgress<T = NS.Progress>(
|
|
637
|
+
- view: T,
|
|
638
|
+
- options: any
|
|
639
|
+
- ): DominativeExtended<T>;
|
|
640
|
+
- export function makeProxyViewContainer<T = NS.ProxyViewContainer>(
|
|
641
|
+
- view: T,
|
|
642
|
+
- options: any
|
|
643
|
+
- ): DominativeExtended<T>;
|
|
644
|
+
- export function makeRootLayout<T = NS.RootLayout>(
|
|
645
|
+
- view: T,
|
|
646
|
+
- options: any
|
|
647
|
+
- ): DominativeExtended<T>;
|
|
648
|
+
- export function makeScrollView<T = NS.ScrollView>(
|
|
649
|
+
- view: T,
|
|
650
|
+
- options: any
|
|
651
|
+
- ): DominativeExtended<T>;
|
|
652
|
+
- export function makeSearchBar<T = NS.SearchBar>(
|
|
653
|
+
- view: T,
|
|
654
|
+
- options: any
|
|
655
|
+
- ): DominativeExtended<T>;
|
|
656
|
+
- export function makeSegmentedBar<T = NS.SegmentedBar>(
|
|
657
|
+
- view: T,
|
|
658
|
+
- options: any
|
|
659
|
+
- ): DominativeExtended<T>;
|
|
660
|
+
- export function makeSegmentedBarItem<T = NS.SegmentedBarItem>(
|
|
661
|
+
- view: T,
|
|
662
|
+
- options: any
|
|
663
|
+
- ): DominativeExtended<T>;
|
|
664
|
+
- export function makeSlider<T = NS.Slider>(
|
|
665
|
+
- view: T,
|
|
666
|
+
- options: any
|
|
667
|
+
- ): DominativeExtended<T>;
|
|
668
|
+
- export function makeSpan<T = NS.Span>(
|
|
669
|
+
- view: T,
|
|
670
|
+
- options: any
|
|
671
|
+
- ): DominativeExtended<T>;
|
|
672
|
+
- export function makeStackLayout<T = NS.StackLayout>(
|
|
673
|
+
- view: T,
|
|
674
|
+
- options: any
|
|
675
|
+
- ): DominativeExtended<T>;
|
|
676
|
+
- export function makeSwitch<T = NS.Switch>(
|
|
677
|
+
- view: T,
|
|
678
|
+
- options: any
|
|
679
|
+
- ): DominativeExtended<T>;
|
|
680
|
+
- export function makeTabView<T = NS.TabView>(
|
|
681
|
+
- view: T,
|
|
682
|
+
- options: any
|
|
683
|
+
- ): DominativeExtended<T>;
|
|
684
|
+
- export function makeTemplateReceiver<T = NS.ViewBase>(
|
|
685
|
+
- view: T,
|
|
686
|
+
- options: any
|
|
687
|
+
- ): DominativeExtended<T>;
|
|
688
|
+
- export function makeTextField<T = NS.TextField>(
|
|
689
|
+
- view: T,
|
|
690
|
+
- options: any
|
|
691
|
+
- ): DominativeExtended<T>;
|
|
692
|
+
- export function makeTextView<T = NS.TextView>(
|
|
693
|
+
- view: T,
|
|
694
|
+
- options: any
|
|
695
|
+
- ): DominativeExtended<T>;
|
|
696
|
+
- export function makeTimePicker<T = NS.TimePicker>(
|
|
697
|
+
- view: T,
|
|
698
|
+
- options: any
|
|
699
|
+
- ): DominativeExtended<T>;
|
|
700
|
+
- export function makeWebView<T = NS.WebView>(
|
|
701
|
+
- view: T,
|
|
702
|
+
- options: any
|
|
703
|
+
- ): DominativeExtended<T>;
|
|
704
|
+
- export function makeWrapLayout<T = NS.WrapLayout>(
|
|
705
|
+
- view: T,
|
|
706
|
+
- options: any
|
|
707
|
+
- ): DominativeExtended<T>;
|
|
708
|
+
-
|
|
709
|
+
- export const AbsoluteLayout: DominativeExtendedMap["AbsoluteLayout"];
|
|
710
|
+
- export const ActionBar: DominativeExtendedMap["ActionBar"];
|
|
711
|
+
- export const ActionItem: DominativeExtendedMap["ActionItem"];
|
|
712
|
+
- export const ActivityIndicator: DominativeExtendedMap["ActivityIndicator"];
|
|
713
|
+
- export const Button: DominativeExtendedMap["Button"];
|
|
714
|
+
- export const ContentView: DominativeExtendedMap["ContentView"];
|
|
715
|
+
- export const DatePicker: DominativeExtendedMap["DatePicker"];
|
|
716
|
+
- export const DockLayout: DominativeExtendedMap["DockLayout"];
|
|
717
|
+
- export const FlexboxLayout: DominativeExtendedMap["FlexboxLayout"];
|
|
718
|
+
- export const FormattedString: DominativeExtendedMap["FormattedString"];
|
|
719
|
+
- export const Frame: DominativeExtendedMap["Frame"];
|
|
720
|
+
- export const GridLayout: DominativeExtendedMap["GridLayout"];
|
|
721
|
+
- export const HtmlView: DominativeExtendedMap["HtmlView"];
|
|
722
|
+
- export const Image: DominativeExtendedMap["Image"];
|
|
723
|
+
- export const Label: DominativeExtendedMap["Label"];
|
|
724
|
+
- export const ListPicker: DominativeExtendedMap["ListPicker"];
|
|
725
|
+
- export const ListView: DominativeExtendedMap["ListView"];
|
|
726
|
+
- export const NavigationButton: DominativeExtendedMap["NavigationButton"];
|
|
727
|
+
- export const Page: DominativeExtendedMap["Page"];
|
|
728
|
+
- export const Placeholder: DominativeExtendedMap["Placeholder"];
|
|
729
|
+
- export const Progress: DominativeExtendedMap["Progress"];
|
|
730
|
+
- export const ProxyViewContainer: DominativeExtendedMap["ProxyViewContainer"];
|
|
731
|
+
- export const RootLayout: DominativeExtendedMap["RootLayout"];
|
|
732
|
+
- export const ScrollView: DominativeExtendedMap["ScrollView"];
|
|
733
|
+
- export const SearchBar: DominativeExtendedMap["SearchBar"];
|
|
734
|
+
- export const SegmentedBar: DominativeExtendedMap["SegmentedBar"];
|
|
735
|
+
- export const SegmentedBarItem: DominativeExtendedMap["SegmentedBarItem"];
|
|
736
|
+
- export const Slider: DominativeExtendedMap["Slider"];
|
|
737
|
+
- export const Span: DominativeExtendedMap["Span"];
|
|
738
|
+
- export const StackLayout: DominativeExtendedMap["StackLayout"];
|
|
739
|
+
- export const Switch: DominativeExtendedMap["Switch"];
|
|
740
|
+
- export const TabView: DominativeExtendedMap["TabView"];
|
|
741
|
+
- export const TextField: DominativeExtendedMap["TextField"];
|
|
742
|
+
- export const TextView: DominativeExtendedMap["TextView"];
|
|
743
|
+
- export const TimePicker: DominativeExtendedMap["TimePicker"];
|
|
744
|
+
- export const WebView: DominativeExtendedMap["WebView"];
|
|
745
|
+
- export const WrapLayout: DominativeExtendedMap["WrapLayout"];
|
|
746
|
+
-}
|