x-runtime-lib 0.9.57 → 0.9.59

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/dist/index.d.ts CHANGED
@@ -1,1122 +1,2013 @@
1
- import { ComputedRef } from 'vue';
2
- import { Emitter } from 'mitt';
3
- import { EventType } from 'mitt';
4
- import { QuickJSContext } from 'quickjs-emscripten';
5
- import { QuickJSDeferredPromise } from 'quickjs-emscripten';
6
- import { QuickJSRuntime } from 'quickjs-emscripten';
7
- import { Reactive } from 'vue';
8
- import { Ref } from 'vue';
9
- import { ShallowRef } from 'vue';
10
- import { Type } from 'x-essential-lib';
11
- import { VNode } from 'vue';
12
- import { WritableComputedRef } from 'vue';
13
-
14
- export declare function addIndent(code: string, spaces?: number): string;
15
-
16
- export declare function addUnique(items: string[], item: string): void;
17
-
18
- export declare function applyBlockBind(state: BlockState, nodeIds?: {
19
- [alias: string]: string;
20
- }): void;
21
-
22
- export declare type BindContext = {
23
- nodeIds?: {
24
- [alias: string]: string;
25
- };
26
- hooks: Hooks;
27
- };
28
-
29
- export declare type BindHandle = (ctx: BindContext, state: BlockState) => void;
30
-
31
- export declare interface BlockState {
32
- type: string;
33
- binds?: string[];
34
- id?: string;
35
- x?: number;
36
- y?: number;
37
- collapsed?: boolean;
38
- deletable?: boolean;
39
- movable?: boolean;
40
- editable?: boolean;
41
- enabled?: boolean;
42
- disabledReasons?: string[];
43
- inline?: boolean;
44
- data?: string;
45
- extraState?: any;
46
- icons?: {
47
- [key: string]: any;
48
- };
49
- fields?: {
50
- [key: string]: any;
51
- };
52
- inputs?: {
53
- [key: string]: ConnectionState;
54
- };
55
- next?: ConnectionState;
56
- }
57
-
58
- export declare type Breakpoint = (typeof breakpoints)[number];
59
-
60
- export declare const breakpoints: readonly ["xs", "sm", "md", "lg", "xl"];
61
-
62
- export declare function calcBreakpoint(width: number): Breakpoint;
63
-
64
- export declare interface Code {
65
- blockly: object;
66
- script: string;
67
- reactivity?: Reactivity;
68
- }
69
-
70
- export declare type CompType = (typeof compTypes)[number];
71
-
72
- export declare const compTypes: string[];
73
-
74
- declare interface ConnectionState {
75
- shadow?: BlockState;
76
- block?: BlockState;
77
- }
78
-
79
- export declare function createBreakpointProperty(prototype: ZProperty): ZProperty;
80
-
81
- export declare function createMakeNode(type: string, subtype: string): {
82
- nodeIds: {
83
- [alias: string]: string;
84
- };
85
- n: (key: ZElementKey, nodePairs?: NodePair[], props?: {
86
- [keys: string]: any;
87
- }) => NodePair;
88
- };
89
-
90
- export declare function createNode(type: string, subtype: string, key: ZElementKey): Node_2;
91
-
92
- export declare interface Data {
93
- type: string;
94
- version: string;
95
- view: View;
96
- code: Code;
97
- }
98
-
99
- export declare function dataStringify({ type, version, view, code }: Data): string;
100
-
101
- export declare interface Depend {
102
- name: string;
103
- metaSeq: number;
104
- meta: Meta;
105
- dataSeq: number;
106
- data: Data;
107
- }
108
-
109
- export declare interface Depends {
110
- [key: string]: Depend;
111
- }
112
-
113
- export declare type Device = {
114
- width: number;
115
- height: number;
116
- };
117
-
118
- export declare function duplicateNodePair(src: NodePair): NodePair;
119
-
120
- export declare function duplicateNodePairs(srcs: NodePair[]): NodePair[];
121
-
122
- export declare const elementKeys: readonly ["globality_v1", "inline_slot_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_activator_v1", "ui_avatar_v1", "ui_badge_v1", "ui_banner_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_column_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_client_v1", "ui_data_table_server_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_divider_v1", "ui_expansion_panel_v1", "ui_fab_v1", "ui_file_input_v1", "ui_flexbox_v1", "ui_flexbox_entry_v1", "ui_form_v1", "ui_hover_v1", "ui_icon_v1", "ui_image_v1", "ui_item_group_v1", "ui_line_chart_v1", "ui_list_v1", "ui_menu_v1", "ui_number_input_v1", "ui_opt_input_v1", "ui_pagination_v1", "ui_positioner_v1", "ui_progress_circular_v1", "ui_progress_linear_v1", "ui_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_row_v1", "ui_select_v1", "ui_slider_v1", "ui_slide_group_v1", "ui_spacer_v1", "ui_speed_dial_v1", "ui_stepper_v1", "ui_stepper_header_v1", "ui_stepper_item_v1", "ui_stepper_window_v1", "ui_stepper_window_item_v1", "ui_switch_v1", "ui_tab_v1", "ui_table_v1", "ui_table_body_v1", "ui_table_body_cell_v1", "ui_table_head_v1", "ui_table_head_cell_v1", "ui_table_row_v1", "ui_tabs_v1", "ui_text_v1", "ui_textarea_v1", "ui_text_field_v1", "ui_timeline_v1", "ui_timeline_item_v1", "ui_tooltip_v1", "ui_windows_v1", "3d_ambient_light_v1", "3d_box_geometry_v1", "3d_directional_light_v1", "3d_group_v1", "3d_keyboard_controls_v1", "3d_map_controls_v1", "3d_mesh_v1", "3d_mesh_basic_material_v1", "3d_orbit_controls_v1", "3d_orthographic_camera_v1", "3d_perspective_camera_v1", "3d_point_light_v1", "3d_sphere_geometry_v1", "3d_spot_light_v1"];
123
-
124
- export declare interface ElementProps {
125
- nodeId: string;
126
- outer?: boolean;
127
- refContext?: RefContext;
128
- }
129
-
130
- export declare type Env = 'dev' | 'prod';
131
-
132
- declare type Event_2 = {
133
- id: string;
134
- name: string;
135
- params?: Field[];
136
- desc?: string;
137
- };
138
- export { Event_2 as Event }
139
-
140
- declare interface EventInfo {
141
- id: string;
142
- kind: EventKind;
143
- names: string[];
144
- params?: {
145
- key: string;
146
- name: string;
147
- type: Type;
148
- }[];
149
- }
150
-
151
- export declare type EventKind = 'elementEvent' | 'elementPropertyChangeEvent' | 'elementSlotEvent' | 'elementSlotPropertyChangeEvent' | 'multipleElementSlotEvent' | 'multipleElementSlotPropertyChangeEvent' | 'refEvent' | 'refPropertyChangeEvent' | 'multipleRefEvent' | 'multipleRefPropertyChangeEvent' | 'customSlotEvent' | 'customSlotPropertyChangeEvent' | 'multipleCustomSlotEvent' | 'multipleCustomSlotPropertyChangeEvent' | 'customEvent' | 'customPropertyChangeEvent' | 'elementAdaptSlotEvent' | 'elementAdaptSlotPropertyChangeEvent' | 'customAdaptSlotEvent' | 'customAdaptSlotPropertyChangeEvent' | 'stateChangeEvent';
152
-
153
- export declare type Field = {
154
- id: string;
155
- name: string;
156
- type: Type;
157
- desc?: string;
158
- };
159
-
160
- export declare const finalProperties: Properties;
161
-
162
- export declare function fromDotString(target: string | string[]): string[];
163
-
164
- export declare function genId(len: number): string;
165
-
166
- export declare function getAllElements(): {
167
- [key: string]: ZElement;
168
- };
169
-
170
- export declare function getBreakpointName(breakpoint: Breakpoint): string;
171
-
172
- export declare function getBreakpointProperty<T>(current: Breakpoint, props: {
173
- [key: string]: T;
174
- }): T | undefined;
175
-
176
- export declare function getElement(key: ZElementKey | string): ZElement | undefined;
177
-
178
- export declare function getField(object: any, keys: string | string[]): any;
179
-
180
- export declare function getImplementMethodName(kind: MethodKind, nodeId: string, methodKey: string): string;
181
-
182
- export declare function getIndexOfBreakpoint(breakpoint: Breakpoint): number;
183
-
184
- export declare function getItems(key: ZItemsKey | string): ZItem[] | undefined;
185
-
186
- export declare function getNodeLite(nodeLites: NodeLite[], id: string): NodeLite | undefined;
187
-
188
- export declare function getPropertyDefault(property: ZProperty): any;
189
-
190
- export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | (number | null)[] | boolean[] | ({
191
- id: string;
192
- name: string;
193
- properties?: {
194
- id: string;
195
- name: string;
196
- type: Type;
197
- value: any;
198
- }[];
199
- } | null)[] | ({
200
- id: string;
201
- name: string;
202
- } | null)[] | ({
203
- id: string;
204
- names: string[];
205
- } | null)[] | ("" | "required" | "email" | "minLength" | "maxLength" | "length")[];
206
-
207
- export declare function getRadius(val: unknown): string | undefined;
208
-
209
- export declare function getTag(type: string, subtype: string): Tag;
210
-
211
- export declare function getTypes(key: ZTypesKey | string): ZType[] | undefined;
212
-
213
- export declare function hasComp(key: string): boolean;
214
-
215
- export declare function hasInlineSlot(element: ZElement): boolean | undefined;
216
-
217
- export declare function hasSlot(key: string): boolean;
218
-
219
- declare type Hooks = {
220
- getNodeInfo: (id: string) => NodeInfo | undefined;
221
- getPropertyInfo: (id: string) => PropertyInfo | undefined;
222
- getOnEventInfo: (id: string) => EventInfo | undefined;
223
- getTriggerEventInfo: (id: string) => EventInfo | undefined;
224
- getCallMethodInfo: (id: string) => MethodInfo | undefined;
225
- getImplementMethodInfo: (id: string) => MethodInfo | undefined;
226
- };
227
-
228
- declare interface Hooks_2 {
229
- onReady: () => Promise<void>;
230
- onDestroy: () => void;
231
- onPropertyChange: (id: string, newValue: any, oldValue: any, instance?: string) => Promise<void>;
232
- onStateChange: (id: string, newValue: any, oldValue: any) => Promise<void>;
233
- }
234
-
235
- export declare function initProperties(node: Node_2, properties: ZProperty[]): void;
236
-
237
- export declare function initQuickJS(): Promise<void>;
238
-
239
- declare type InitValues = {
240
- [key: string]: any;
241
- };
242
-
243
- export declare function injectDark(): Ref<boolean>;
244
-
245
- export declare function injectData(): Ref<Data | undefined>;
246
-
247
- export declare function injectDepends(): ShallowRef<Depends>;
248
-
249
- export declare function injectDevice(): Ref<Device>;
250
-
251
- export declare function injectEnv(): Env;
252
-
253
- export declare function injectId(): string;
254
-
255
- export declare function injectMeta(): Ref<Meta | undefined>;
256
-
257
- export declare function injectMode(): Mode;
258
-
259
- export declare function injectNode(): Ref<Node_2> | undefined;
260
-
261
- export declare function injectNodeLite(): Ref<NodeLite> | undefined;
262
-
263
- export declare function injectOrg(): string;
264
-
265
- export declare function injectRadioGroupProps(): RadioGroupProps | undefined;
266
-
267
- export declare function injectRuntime(): QuickJSRuntime;
268
-
269
- export declare function injectSandbox(): Sandbox | undefined;
270
-
271
- export declare function injectSlotProps(): Record<string, any> | undefined;
272
-
273
- export declare function injectTransients(): Reactive<Transients>;
274
-
275
- export declare function injectType(): "page" | "comp";
276
-
277
- declare interface Inputs {
278
- [key: string]: any;
279
- }
280
-
281
- export declare function isActivator(key: string): boolean;
282
-
283
- export declare function isCircularReference(refContext: RefContext, id: string): boolean;
284
-
285
- export declare function isExecutableMode(mode: Mode): mode is "runtime" | "preview";
286
-
287
- export declare function isHexColor(v: unknown): boolean;
288
-
289
- export declare function isInlineSlot(key: string): boolean;
290
-
291
- export declare function isNull(v: unknown): boolean;
292
-
293
- export declare function isNumber(v: unknown): boolean;
294
-
295
- export declare function isNumberUnit(v: unknown, unit: string): boolean;
296
-
297
- export declare function isPercent(v: unknown): boolean;
298
-
299
- export declare function isPixel(v: unknown): boolean;
300
-
301
- export declare function isRenderSwitch(key: string): boolean;
302
-
303
- export declare function isThemeColor(v: unknown): boolean;
304
-
305
- export declare const itemsKeys: readonly ["alignTabsV1", "axisTypeV1", "borderStyleV1", "btnSpacedV1", "btnTypeV1", "columnsV1", "densityV1", "directionV1", "expansionPanelVariantV1", "fieldVariantV1", "flexCrossAlignV1", "flexDirectionV1", "flexMainAlignV1", "flexWrapV1", "fontWeightV1", "inputTypeV1", "linesV1", "numberInputControlVariantV1", "positionV1", "sheetVariantV1", "sizeV1", "speedDialOpenWayV1", "textAlignV1", "textDecorationV1", "textEmphasisV1", "textSizeV1", "textTypeV1", "thumbLabelV1", "tickShowV1", "timelineAlignV1", "timelineDirectionV1", "timelineSideV1", "timelineTruncateLineV1", "transitionV1"];
306
-
307
- export declare function loadLocaleMessageRuntime(locale: string): Promise<object>;
308
-
309
- export declare function makeEventId(kind: EventKind, nodeId: string, eventKey: string): string;
310
-
311
- export declare function makeEventKeyOfCustomSlot(compId: string, slotId: string, eventId: string): string;
312
-
313
- export declare function makeEventKeyOfElementSlot(elementKey: string, slotKey: string, eventKey: string): string;
314
-
315
- export declare function makeMethodId(kind: MethodKind, nodeId: string, methodKey: string): string;
316
-
317
- export declare function makeMethodKeyOfCustomSlot(compId: string, slotId: string, methodId: string): string;
318
-
319
- export declare function makeMethodKeyOfElementSlot(elementKey: string, slotKey: string, methodKey: string): string;
320
-
321
- export declare function makeNodePair(node: Node_2, nodePairs?: NodePair[]): NodePair;
322
-
323
- export declare function makePropertyId(kind: PropertyKind, nodeId: string, propertyKey: string): string;
324
-
325
- export declare function makePropertyKeyOfCustomSlot(compId: string, slotId: string, propertyId: string): string;
326
-
327
- export declare function makePropertyKeyOfElementSlot(elementKey: string, slotKey: string, propertyKey: string): string;
328
-
329
- export declare function makeSlotId(kind: SlotKind, mainKey: string, slotKey: string): string;
330
-
331
- export declare function makeTriggerId(kind: TriggerKind, triggerKey: string): string;
332
-
333
- export declare function mergeRenderResult(main: RenderResult, part: RenderResult): void;
334
-
335
- export declare type Meta = {
336
- version: string;
337
- states?: Field[];
338
- arguments?: Field[];
339
- properties?: Field[];
340
- methods?: Method[];
341
- events?: Event_2[];
342
- slots?: Slot[];
343
- };
344
-
345
- export declare function metaStringify(meta: Meta): string;
346
-
347
- export declare type Method = {
348
- id: string;
349
- name: string;
350
- inputs?: Field[];
351
- outputs?: Field[];
352
- desc?: string;
353
- };
354
-
355
- declare interface MethodInfo {
356
- id: string;
357
- kind: MethodKind;
358
- names: string[];
359
- inputs?: {
360
- key: string;
361
- name: string;
362
- type: Type;
363
- }[];
364
- outputs?: {
365
- key: string;
366
- name: string;
367
- type: Type;
368
- }[];
369
- }
370
-
371
- export declare type MethodKind = 'elementMethod' | 'elementSlotMethod' | 'multipeElementSlotMethod' | 'refMethod' | 'multipleRefMethod' | 'customSlotMethod' | 'multipleCustomSlotMethod' | 'customMethod' | 'elementAdaptSlotMethod' | 'customAdaptSlotMethod';
372
-
373
- export declare type Mode = 'runtime' | 'preview' | 'editor';
374
-
375
- declare type Node_2 = {
376
- basic: {
377
- id: string;
378
- key: string;
379
- desc: string;
380
- alias: string;
381
- };
382
- [key: string]: any;
383
- };
384
- export { Node_2 as Node }
385
-
386
- declare interface NodeInfo {
387
- id: string;
388
- key: string;
389
- alias: string;
390
- }
391
-
392
- export declare type NodeLite = {
393
- id: string;
394
- key: string;
395
- alias?: string;
396
- inlineSlot?: string;
397
- render?: boolean;
398
- slotId?: string;
399
- compId?: string;
400
- children?: NodeLite[];
401
- };
402
-
403
- export declare type NodePair = {
404
- nodeLite: NodeLite;
405
- nodes: {
406
- [key: string]: Node_2;
407
- };
408
- };
409
-
410
- export declare type PageType = (typeof pageTypes)[number];
411
-
412
- export declare const pageTypes: string[];
413
-
414
- export declare function parseData(str: string): Data;
415
-
416
- export declare function parseMeta(str: string): Meta;
417
-
418
- export declare function parseNumberUnit(v: unknown, unit: string): number;
419
-
420
- export declare function parsePercent(v: unknown): number;
421
-
422
- export declare function parsePixel(v: unknown): number;
423
-
424
- export declare const pkgs: ZPkgs;
425
-
426
- declare class PromiseManager {
427
- private vm;
428
- private promises;
429
- private currPromiseId;
430
- constructor(vm: QuickJSContext);
431
- dispose(): void;
432
- create(): {
433
- promise: QuickJSDeferredPromise;
434
- resolve: (value: any) => void;
435
- reject: (reason: any) => void;
436
- };
437
- }
438
-
439
- declare type Properties = {
440
- [key: string]: {
441
- [tag: string]: Property[];
442
- };
443
- };
444
-
445
- declare type Property = {
446
- keys: string;
447
- names: string[];
448
- raw: ZProperty;
449
- };
450
-
451
- declare interface PropertyInfo {
452
- id: string;
453
- kind: PropertyKind;
454
- names: string[];
455
- }
456
-
457
- export declare type PropertyKind = 'elementProperty' | 'elementSlotProperty' | 'multipleElementSlotProperty' | 'refProperty' | 'multipleRefProperty' | 'customSlotProperty' | 'multipleCustomSlotProperty' | 'customProperty' | 'elementAdaptSlotProperty' | 'customAdaptSlotProperty';
458
-
459
- export declare function provideDark(dark: Ref<boolean>): void;
460
-
461
- export declare function provideData(data: Ref<Data | undefined>): void;
462
-
463
- export declare function provideDepends(depends: ShallowRef<Depends>): void;
464
-
465
- export declare function provideDevice(device: Ref<Device>): void;
466
-
467
- export declare function provideEnv(env: Env): void;
468
-
469
- export declare function provideId(id: string): void;
470
-
471
- export declare function provideMeta(meta: Ref<Meta | undefined>): void;
472
-
473
- export declare function provideMode(mode: Mode): void;
474
-
475
- export declare function provideNode(node: Ref<Node_2>): void;
476
-
477
- export declare function provideNodeLite(nodeLite: Ref<NodeLite>): void;
478
-
479
- export declare function provideOrg(org: string): void;
480
-
481
- export declare function provideRadioGroupProps(radioGroupProps: RadioGroupProps): void;
482
-
483
- export declare function provideRuntime(runtime: QuickJSRuntime): void;
484
-
485
- export declare function provideSandbox(sandbox: Sandbox): void;
486
-
487
- export declare function provideSlotProps(slotProps: Record<string, any>): void;
488
-
489
- export declare function provideTransients(transients: Reactive<Transients>): void;
490
-
491
- export declare function provideType(type: 'page' | 'comp'): void;
492
-
493
- declare interface RadioGroupProps {
494
- disabled: ComputedRef<any>;
495
- readonly: ComputedRef<any>;
496
- }
497
-
498
- export declare interface Reactivity {
499
- watchEffect: {
500
- ids: string[];
501
- triggers: {
502
- [key: string]: string[];
503
- };
504
- };
505
- bind: {
506
- sets: {
507
- [key: string]: string[];
508
- };
509
- triggers: {
510
- [key: string]: string[];
511
- };
512
- };
513
- }
514
-
515
- export declare interface RefContext {
516
- parent?: RefContext;
517
- compId: string | undefined;
518
- }
519
-
520
- export declare function regBindHandles(type: string, handle: BindHandle): void;
521
-
522
- export declare function regElement(element: ZElement): void;
523
-
524
- export declare function regItems(key: ZItemsKey, items: ZItem[]): void;
525
-
526
- export declare function regTypes(key: ZTypesKey, types: ZType[]): void;
527
-
528
- export declare interface RenderResult {
529
- [slot: string]: VNode[];
530
- }
531
-
532
- export declare interface RenderSlots {
533
- [slot: string]: () => VNode[];
534
- }
535
-
536
- export declare const reverseBreakpoints: readonly ["xl", "lg", "md", "sm", "xs"];
537
-
538
- export declare const rules: readonly ["required", "email", "minLength", "maxLength", "length"];
539
-
540
- declare class Sandbox {
541
- kind: SandboxKind;
542
- nodeId: string;
543
- slotId: string;
544
- instance: string;
545
- parent: Sandbox | undefined;
546
- children: {
547
- [key: string]: Sandbox;
548
- };
549
- org: string;
550
- env: Env;
551
- mode: Mode;
552
- type: 'page' | 'comp';
553
- eventBus: Emitter<Record<EventType, unknown>>;
554
- hooks: Hooks_2;
555
- vm: QuickJSContext | undefined;
556
- promiseManager: PromiseManager | undefined;
557
- constructor(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks: Hooks_2);
558
- dispose(): void;
559
- debugTrace(...data: any[]): void;
560
- private addChild;
561
- private removeChild;
562
- private meta;
563
- private data;
564
- private transients;
565
- private depends;
566
- prepare(meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, transients: Reactive<Transients>, depends: ShallowRef<Depends | undefined>, initValues?: InitValues): void;
567
- createVm(runtime: QuickJSRuntime, code: string): Promise<void>;
568
- destroyVm(): void;
569
- setGlobalVariable(key: string, value: any): void;
570
- getGlobalVariable(key: string): any;
571
- evalCode(code: string): void;
572
- callFunctionSync(funcName: string, ...params: any[]): any;
573
- callFunctionAsync(funcName: string, ...params: any[]): Promise<any>;
574
- getNode(nodeId: string): Node_2 | undefined;
575
- isEqualOfElementSlot(elementKey: string, slotKey: string): boolean;
576
- isEqualOfCustomSlot(compId: string, slotId: string): boolean;
577
- customProperties: {
578
- [key: string]: any;
579
- };
580
- customSlotProperties: {
581
- [key: string]: any;
582
- };
583
- private resetCustomProperties;
584
- private resetCustomSlotProperties;
585
- private getMetaOfElementProperty;
586
- private isValidOfElementProperty;
587
- private isValidOfElementSlotProperty;
588
- private isValidOfCustomProperty;
589
- private isValidOfCustomSlotProperty;
590
- getProperty(id: string, instance?: string): any;
591
- private getElementProperty;
592
- private getRefProperty;
593
- private getMultipleRefProperty;
594
- private getCustomSlotProperty;
595
- private getMultipleCustomSlotProperty;
596
- private getCustomProperty;
597
- private getElementAdaptSlotProperty;
598
- private getCustomAdaptSlotProperty;
599
- setProperty(id: string, newValue: any, instance?: string): Promise<void>;
600
- private setElementProperty;
601
- private setRefProperty;
602
- private setMultipleRefProperty;
603
- private setCustomSlotProperty;
604
- private setMultipleCustomSlotProperty;
605
- private setCustomProperty;
606
- private setElementAdaptSlotProperty;
607
- private setCustomAdaptSlotProperty;
608
- isValidOfElementMethod(elementKey: string, methodKey: string): boolean;
609
- isValidOfElementSlotMethod(elementKey: string, slotKey: string, methodKey: string): boolean;
610
- isValidOfCustomMethod(methodId: string): boolean;
611
- isValidOfCustomSlotMethod(compId: string, slotId: string, methodId: string): boolean;
612
- callMethod(id: string, instance: string, inputs: Inputs): Promise<any>;
613
- private callElementMethod;
614
- private callRefMethod;
615
- private callMultipleRefMethod;
616
- private callElementAdaptSlotMethod;
617
- private callCustomAdaptSlotMethod;
618
- isValidOfElementEvent(elementKey: string, eventKey: string): boolean;
619
- isValidOfElementSlotEvent(elementKey: string, slotKey: string, eventKey: string): boolean;
620
- isValidOfCustomEvent(eventId: string): boolean;
621
- isValidOfCustomSlotEvent(compId: string, slotId: string, eventId: string): boolean;
622
- triggerEvent(id: string, params: any[], instance?: string): Promise<void>;
623
- private triggerElementEvent;
624
- private triggerElementPropertyChangeEvent;
625
- private triggerElementSlotEvent;
626
- private triggerElementSlotPropertyChangeEvent;
627
- private triggerMultipleElementSlotEvent;
628
- private triggerMultipleElementSlotPropertyChangeEvent;
629
- private triggerRefEvent;
630
- private triggerRefPropertyChangeEvent;
631
- private triggerMultipleRefEvent;
632
- private triggerMultipleRefPropertyChangeEvent;
633
- private triggerCustomSlotEvent;
634
- private triggerCustomSlotPropertyChangeEvent;
635
- private triggerMultipleCustomSlotEvent;
636
- private triggerMultipleCustomSlotPropertyChangeEvent;
637
- private triggerCustomEvent;
638
- private triggerCustomPropertyChangeEvent;
639
- private triggerElementAdaptSlotEvent;
640
- private triggerElementAdaptSlotPropertyChangeEvent;
641
- private triggerCustomAdaptSlotEvent;
642
- private triggerCustomAdaptSlotPropertyChangeEvent;
643
- private triggerStateChangeEvent;
644
- private states;
645
- private resetStates;
646
- isValidOfState(id: string): boolean;
647
- getState(id: string): Promise<any>;
648
- setState(id: string, newValue: any): Promise<void>;
649
- }
650
-
651
- export declare type SandboxKind = 'root' | 'ref' | 'multipleRef' | 'elementSlot' | 'multipleElementSlot' | 'customSlot' | 'multipleCustomSlot';
652
-
653
- export declare function setField(object: any, keys: string | string[], value: any): void;
654
-
655
- export declare function setupHooks(hooks: Hooks): void;
656
-
657
- export declare type Slot = {
658
- id: string;
659
- name: string;
660
- properties?: Field[];
661
- methods?: Method[];
662
- events?: Event_2[];
663
- desc?: string;
664
- };
665
-
666
- export declare type SlotKind = 'elementSlot' | 'multipleElementSlot' | 'customSlot' | 'multipleCustomSlot';
667
-
668
- export declare function syncNodeLite(nodeLite: NodeLite, node: Node_2): void;
669
-
670
- export declare type Tag = 'pageUi' | 'compUi' | 'page3d' | 'comp3d';
671
-
672
- export declare const themeColors: {
673
- value: string;
674
- title: string;
675
- }[];
676
-
677
- export declare function toDotString(target: string | string[]): string;
678
-
679
- export declare function toEventName(kind: EventKind, names: string[]): string;
680
-
681
- export declare function toMethodName(kind: MethodKind, names: string[]): string;
682
-
683
- export declare function toNodeLite(node: Node_2, children?: NodeLite[]): NodeLite;
684
-
685
- export declare function toPropertyName(kind: PropertyKind, names: string[]): string;
686
-
687
- export declare function toRenderSlots(result: RenderResult): RenderSlots;
688
-
689
- export declare interface Transients {
690
- [nodeId: string]: {
691
- [propertyKey: string]: any;
692
- };
693
- }
694
-
695
- export declare type TriggerKind = 'propertyTrigger' | 'stateTrigger';
696
-
697
- export declare const typesKeys: readonly ["borderRadiusV1", "borderWidthV1", "colorV1", "elevationV1", "heightV1", "leftRightV1", "marginV1", "paddingV1", "progressChunkWayV1", "sizeV1", "tableColumnAlignV1", "topBottomV1", "widthV1"];
698
-
699
- export declare function unwrapEventId(id: string): {
700
- kind: EventKind;
701
- nodeId: string;
702
- eventKey: string;
703
- };
704
-
705
- export declare function unwrapEventKeyOfCustomSlot(key: string): {
706
- compId: string;
707
- slotId: string;
708
- eventId: string;
709
- };
710
-
711
- export declare function unwrapEventKeyOfElementSlot(key: string): {
712
- elementKey: string;
713
- slotKey: string;
714
- eventKey: string;
715
- };
716
-
717
- export declare function unwrapMethodId(id: string): {
718
- kind: MethodKind;
719
- nodeId: string;
720
- methodKey: string;
721
- };
722
-
723
- export declare function unwrapMethodKeyOfCustomSlot(key: string): {
724
- compId: string;
725
- slotId: string;
726
- methodId: string;
727
- };
728
-
729
- export declare function unwrapMethodKeyOfElementSlot(key: string): {
730
- elementKey: string;
731
- slotKey: string;
732
- methodKey: string;
733
- };
734
-
735
- export declare function unwrapPropertyId(id: string): {
736
- kind: PropertyKind;
737
- nodeId: string;
738
- propertyKey: string;
739
- };
740
-
741
- export declare function unwrapPropertyKeyOfCustomSlot(key: string): {
742
- compId: string;
743
- slotId: string;
744
- propertyId: string;
745
- };
746
-
747
- export declare function unwrapPropertyKeyOfElementSlot(key: string): {
748
- elementKey: string;
749
- slotKey: string;
750
- propertyKey: string;
751
- };
752
-
753
- export declare function unwrapSlotId(id: string): {
754
- kind: SlotKind;
755
- mainKey: string;
756
- slotKey: string;
757
- };
758
-
759
- export declare function unwrapTriggerId(id: string): {
760
- kind: TriggerKind;
761
- triggerKey: string;
762
- };
763
-
764
- export declare function useColor(src: Readonly<Ref<string | undefined>>): {
765
- color: ComputedRef<string | undefined>;
766
- };
767
-
768
- export declare function useDepend(compId: Ref<string | undefined>, meta: Ref<Meta | undefined>, data: Ref<Data | undefined>): void;
769
-
770
- export declare function useGlobalTransient(sandbox: Sandbox, transients: Reactive<Transients>, propertyKey: string): {
771
- property: WritableComputedRef<any, any>;
772
- };
773
-
774
- export declare function useRuntime(): void;
775
-
776
- export declare function useSandbox(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, transients: Reactive<Transients>, initValues?: InitValues): {
777
- sandbox: Sandbox;
778
- };
779
-
780
- export declare interface View {
781
- nodeLites: NodeLite[];
782
- nodes: {
783
- globality: Node_2;
784
- [key: string]: Node_2;
785
- };
786
- }
787
-
788
- declare type WithArray<T extends {
789
- default: unknown;
790
- }> = (T & {
791
- array?: false;
792
- }) | (T & {
793
- array: true;
794
- defaultArray: T['default'][];
795
- });
796
-
797
- export declare type ZElement = {
798
- key: ZElementKey;
799
- name: string;
800
- comp: any;
801
- properties: {
802
- [key in Tag]?: ZProperty[];
803
- };
804
- methods?: ZMethod[];
805
- events?: ZEvent[];
806
- inlineSlots?: string[];
807
- slots?: ZSlot[];
808
- internal?: boolean;
809
- teleport?: boolean;
810
- spawn?: ZSpawnFunc | {
811
- func: ZSpawnFunc;
812
- desc?: string;
813
- }[];
814
- };
815
-
816
- export declare type ZElementKey = (typeof elementKeys)[number];
817
-
818
- export declare type ZEvent = {
819
- key: string;
820
- name: string;
821
- params?: {
822
- key: string;
823
- name: string;
824
- type: Type;
825
- desc?: string;
826
- }[];
827
- desc?: string;
828
- };
829
-
830
- export declare type ZGroup = {
831
- key: string;
832
- name: string;
833
- items: ZElementKey[];
834
- };
835
-
836
- export declare type ZItem = {
837
- value: string;
838
- title?: string;
839
- };
840
-
841
- export declare type ZItemsKey = (typeof itemsKeys)[number];
842
-
843
- export declare type ZMethod = {
844
- key: string;
845
- name: string;
846
- inputs?: {
847
- key: string;
848
- name: string;
849
- type: Type;
850
- desc?: string;
851
- }[];
852
- outputs?: {
853
- key: string;
854
- name: string;
855
- type: Type;
856
- desc?: string;
857
- }[];
858
- desc?: string;
859
- };
860
-
861
- export declare type ZPkg = {
862
- version: string;
863
- globalityKey: ZElementKey;
864
- refKey: ZElementKey;
865
- items: Set<ZItemsKey>;
866
- types: Set<ZTypesKey>;
867
- groups: {
868
- [tag: string]: ZGroup[];
869
- };
870
- };
871
-
872
- export declare type ZPkgs = {
873
- [key: string]: ZPkg;
874
- };
875
-
876
- export declare type ZProperty = ({
877
- array?: false;
878
- } & ZPropertyBranch) | ({
879
- array: true;
880
- defaultArray: any[];
881
- } & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyText> | WithArray<ZPropertyNumber> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyJson> | WithArray<ZPropertyIcon> | WithArray<ZPropertyImage> | WithArray<ZPropertyComp> | WithArray<ZPropertySlot> | WithArray<ZPropertyAdaptSlot> | WithArray<ZPropertyInlineSlot> | WithArray<ZPropertyRule> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertyTransient<Type>>;
882
-
883
- declare type ZPropertyAdaptSlot = {
884
- ui: 'adaptSlot';
885
- default: {
886
- id: string;
887
- names: string[];
888
- } | null;
889
- } & ZPropertyBase;
890
-
891
- declare type ZPropertyBase = {
892
- key: string;
893
- name: string;
894
- readonly?: boolean;
895
- static?: boolean;
896
- value?: any;
897
- };
898
-
899
- declare type ZPropertyBranch = {
900
- key: string;
901
- name: string;
902
- ui?: undefined;
903
- children: ZProperty[];
904
- };
905
-
906
- declare type ZPropertyComp = {
907
- ui: 'comp';
908
- default: {
909
- id: string;
910
- name: string;
911
- properties?: {
912
- id: string;
913
- name: string;
914
- type: Type;
915
- value: any;
916
- }[];
917
- } | null;
918
- } & ZPropertyBase;
919
-
920
- declare type ZPropertyDummy = {
921
- ui: 'dummy';
922
- default: any;
923
- } & ZPropertyBase;
924
-
925
- declare type ZPropertyIcon = {
926
- ui: 'icon';
927
- default: string;
928
- } & ZPropertyBase;
929
-
930
- declare type ZPropertyImage = {
931
- ui: 'image';
932
- default: string;
933
- } & ZPropertyBase;
934
-
935
- declare type ZPropertyInlineSlot = {
936
- ui: 'inlineSlot';
937
- default: string;
938
- } & ZPropertyBase;
939
-
940
- declare type ZPropertyJson = {
941
- ui: 'json';
942
- default: string;
943
- } & ZPropertyBase;
944
-
945
- declare type ZPropertyMultiTypes = {
946
- ui: 'multiTypes';
947
- types: ZTypesKey;
948
- default: any;
949
- } & ZPropertyBase;
950
-
951
- declare type ZPropertyNumber = {
952
- ui: 'number';
953
- precision?: number;
954
- min?: number;
955
- max?: number;
956
- step?: number;
957
- default: number | null;
958
- } & ZPropertyBase;
959
-
960
- declare type ZPropertyRule = {
961
- ui: 'rule';
962
- default: ZRule | '';
963
- } & ZPropertyBase;
964
-
965
- declare type ZPropertySelect = {
966
- ui: 'select';
967
- items: ZItemsKey;
968
- default: string;
969
- } & ZPropertyBase;
970
-
971
- declare type ZPropertySlot = {
972
- ui: 'slot';
973
- default: {
974
- id: string;
975
- name: string;
976
- } | null;
977
- } & ZPropertyBase;
978
-
979
- declare type ZPropertySwitch = {
980
- ui: 'switch';
981
- default: boolean;
982
- } & ZPropertyBase;
983
-
984
- declare type ZPropertyText = {
985
- ui: 'text';
986
- default: string;
987
- } & ZPropertyBase;
988
-
989
- declare type ZPropertyTransient<T extends Type> = {
990
- ui: 'transient';
991
- type: T;
992
- } & ZPropertyBase & {
993
- string: {
994
- default: string;
995
- };
996
- number: {
997
- default: number;
998
- };
999
- boolean: {
1000
- default: boolean;
1001
- };
1002
- object: {
1003
- default: object;
1004
- };
1005
- array: {
1006
- default: object;
1007
- };
1008
- any: {
1009
- default: any;
1010
- };
1011
- }[T];
1012
-
1013
- export declare type ZRule = (typeof rules)[number];
1014
-
1015
- export declare type ZSlot = {
1016
- key: string;
1017
- name: string;
1018
- multiple?: boolean;
1019
- properties?: ZSlotProperty[];
1020
- methods?: ZSlotMethod[];
1021
- events?: ZSlotEvent[];
1022
- desc?: string;
1023
- };
1024
-
1025
- export declare type ZSlotEvent = {
1026
- key: string;
1027
- name: string;
1028
- params?: {
1029
- key: string;
1030
- name: string;
1031
- type: Type;
1032
- desc?: string;
1033
- }[];
1034
- desc?: string;
1035
- };
1036
-
1037
- export declare type ZSlotMethod = {
1038
- key: string;
1039
- name: string;
1040
- inputs?: {
1041
- key: string;
1042
- name: string;
1043
- type: Type;
1044
- desc?: string;
1045
- }[];
1046
- outputs?: {
1047
- key: string;
1048
- name: string;
1049
- type: Type;
1050
- desc?: string;
1051
- }[];
1052
- desc?: string;
1053
- };
1054
-
1055
- export declare type ZSlotProperty = {
1056
- key: string;
1057
- name: string;
1058
- type: Type;
1059
- readonly?: boolean;
1060
- desc?: string;
1061
- };
1062
-
1063
- export declare type ZSpawnFunc = (type: string, subtype: string, ...params: any[]) => ZSpawnResult;
1064
-
1065
- export declare interface ZSpawnResult {
1066
- nodePairs: NodePair[];
1067
- blockStates?: BlockState[];
1068
- nodeIds?: {
1069
- [alias: string]: string;
1070
- };
1071
- }
1072
-
1073
- export declare type ZType = ZTypeNull | ZTypeWord | ZTypeNumber | ZTypeNumberUnit | ZTypeHexColor | ZTypeThemeColor;
1074
-
1075
- declare type ZTypeBase = {
1076
- value: string;
1077
- title: string;
1078
- validator: (v: unknown) => boolean;
1079
- };
1080
-
1081
- declare type ZTypeHexColor = {
1082
- trait: 'hexColor';
1083
- default: string;
1084
- } & ZTypeBase;
1085
-
1086
- declare type ZTypeNull = {
1087
- trait: 'null';
1088
- default: null;
1089
- } & ZTypeBase;
1090
-
1091
- declare type ZTypeNumber = {
1092
- trait: 'number';
1093
- precision?: number;
1094
- min?: number;
1095
- max?: number;
1096
- step?: number;
1097
- default: number;
1098
- } & ZTypeBase;
1099
-
1100
- declare type ZTypeNumberUnit = {
1101
- trait: 'numberUnit';
1102
- unit: string;
1103
- precision?: number;
1104
- min?: number;
1105
- max?: number;
1106
- step?: number;
1107
- default: string;
1108
- } & ZTypeBase;
1109
-
1110
- export declare type ZTypesKey = (typeof typesKeys)[number];
1111
-
1112
- declare type ZTypeThemeColor = {
1113
- trait: 'themeColor';
1114
- default: string;
1115
- } & ZTypeBase;
1116
-
1117
- declare type ZTypeWord = {
1118
- trait: 'word';
1119
- default: string;
1120
- } & ZTypeBase;
1121
-
1122
- export { }
1
+ import { Type } from "x-essential-lib";
2
+ import { ComputedRef, Reactive, Ref, ShallowRef, VNode } from "vue";
3
+ import { QuickJSContext, QuickJSDeferredPromise, QuickJSRuntime } from "quickjs-emscripten";
4
+
5
+ //#region src/types/basic.d.ts
6
+ type Env = 'dev' | 'prod';
7
+ type Mode = 'runtime' | 'preview' | 'editor';
8
+ declare function isExecutableMode(mode: Mode): mode is "runtime" | "preview";
9
+ interface RefContext {
10
+ parent?: RefContext;
11
+ compId: string | undefined;
12
+ }
13
+ declare function isCircularReference(refContext: RefContext, id: string): boolean;
14
+ interface ElementProps {
15
+ nodeId: string;
16
+ outer?: boolean;
17
+ refContext?: RefContext;
18
+ }
19
+ //#endregion
20
+ //#region src/types/data.d.ts
21
+ type NodeLite = {
22
+ id: string;
23
+ key: string;
24
+ alias?: string;
25
+ inlineSlot?: string;
26
+ render?: boolean;
27
+ slotId?: string;
28
+ compId?: string;
29
+ children?: NodeLite[];
30
+ };
31
+ type Node = {
32
+ basic: {
33
+ id: string;
34
+ key: string;
35
+ desc: string;
36
+ alias: string;
37
+ };
38
+ [key: string]: any;
39
+ };
40
+ type NodePair = {
41
+ nodeLite: NodeLite;
42
+ nodes: {
43
+ [key: string]: Node;
44
+ };
45
+ };
46
+ declare function syncNodeLite(nodeLite: NodeLite, node: Node): void;
47
+ declare function toNodeLite(node: Node, children?: NodeLite[]): NodeLite;
48
+ interface View {
49
+ nodeLites: NodeLite[];
50
+ nodes: {
51
+ globality: Node;
52
+ [key: string]: Node;
53
+ };
54
+ }
55
+ interface Reactivity {
56
+ watchEffect: {
57
+ ids: string[];
58
+ triggers: {
59
+ [key: string]: string[];
60
+ };
61
+ };
62
+ bind: {
63
+ sets: {
64
+ [key: string]: string[];
65
+ };
66
+ triggers: {
67
+ [key: string]: string[];
68
+ };
69
+ };
70
+ }
71
+ interface Code {
72
+ blockly: object;
73
+ script: string;
74
+ reactivity?: Reactivity;
75
+ }
76
+ interface Data {
77
+ type: string;
78
+ version: string;
79
+ view: View;
80
+ code: Code;
81
+ }
82
+ declare function dataStringify({
83
+ type,
84
+ version,
85
+ view,
86
+ code
87
+ }: Data): string;
88
+ declare function parseData(str: string): Data;
89
+ //#endregion
90
+ //#region src/types/meta.d.ts
91
+ type Field = {
92
+ id: string;
93
+ name: string;
94
+ type: Type;
95
+ desc?: string;
96
+ };
97
+ type Method = {
98
+ id: string;
99
+ name: string;
100
+ inputs?: Field[];
101
+ outputs?: Field[];
102
+ desc?: string;
103
+ };
104
+ type Event = {
105
+ id: string;
106
+ name: string;
107
+ params?: Field[];
108
+ desc?: string;
109
+ };
110
+ type Slot = {
111
+ id: string;
112
+ name: string;
113
+ properties?: Field[];
114
+ methods?: Method[];
115
+ events?: Event[];
116
+ desc?: string;
117
+ };
118
+ type Meta = {
119
+ version: string;
120
+ states?: Field[];
121
+ arguments?: Field[];
122
+ properties?: Field[];
123
+ methods?: Method[];
124
+ events?: Event[];
125
+ slots?: Slot[];
126
+ };
127
+ declare function metaStringify(meta: Meta): string;
128
+ declare function parseMeta(str: string): Meta;
129
+ //#endregion
130
+ //#region src/types/depend.d.ts
131
+ interface Depend {
132
+ name: string;
133
+ metaSeq: number;
134
+ meta: Meta;
135
+ dataSeq: number;
136
+ data: Data;
137
+ }
138
+ interface Depends {
139
+ [key: string]: Depend;
140
+ }
141
+ //#endregion
142
+ //#region src/types/kind.d.ts
143
+ type SandboxKind = 'root' | 'ref' | 'multipleRef' | 'elementSlot' | 'multipleElementSlot' | 'customSlot' | 'multipleCustomSlot';
144
+ type SlotKind = 'elementSlot' | 'multipleElementSlot' | 'customSlot' | 'multipleCustomSlot';
145
+ type PropertyKind = 'elementProperty' | 'elementSlotProperty' | 'multipleElementSlotProperty' | 'refProperty' | 'multipleRefProperty' | 'customSlotProperty' | 'multipleCustomSlotProperty' | 'customProperty' | 'elementAdaptSlotProperty' | 'customAdaptSlotProperty';
146
+ type MethodKind = 'elementMethod' | 'elementSlotMethod' | 'multipeElementSlotMethod' | 'refMethod' | 'multipleRefMethod' | 'customSlotMethod' | 'multipleCustomSlotMethod' | 'customMethod' | 'elementAdaptSlotMethod' | 'customAdaptSlotMethod';
147
+ type EventKind = 'elementEvent' | 'elementPropertyChangeEvent' | 'elementSlotEvent' | 'elementSlotPropertyChangeEvent' | 'multipleElementSlotEvent' | 'multipleElementSlotPropertyChangeEvent' | 'refEvent' | 'refPropertyChangeEvent' | 'multipleRefEvent' | 'multipleRefPropertyChangeEvent' | 'customSlotEvent' | 'customSlotPropertyChangeEvent' | 'multipleCustomSlotEvent' | 'multipleCustomSlotPropertyChangeEvent' | 'customEvent' | 'customPropertyChangeEvent' | 'elementAdaptSlotEvent' | 'elementAdaptSlotPropertyChangeEvent' | 'customAdaptSlotEvent' | 'customAdaptSlotPropertyChangeEvent' | 'stateChangeEvent';
148
+ type TriggerKind = 'propertyTrigger' | 'stateTrigger';
149
+ //#endregion
150
+ //#region src/types/transient.d.ts
151
+ interface Transients {
152
+ [nodeId: string]: {
153
+ [propertyKey: string]: any;
154
+ };
155
+ }
156
+ //#endregion
157
+ //#region src/block/core/index.d.ts
158
+ interface ConnectionState {
159
+ shadow?: BlockState;
160
+ block?: BlockState;
161
+ }
162
+ interface BlockState {
163
+ type: string;
164
+ binds?: string[];
165
+ id?: string;
166
+ x?: number;
167
+ y?: number;
168
+ collapsed?: boolean;
169
+ deletable?: boolean;
170
+ movable?: boolean;
171
+ editable?: boolean;
172
+ enabled?: boolean;
173
+ disabledReasons?: string[];
174
+ inline?: boolean;
175
+ data?: string;
176
+ extraState?: any;
177
+ icons?: {
178
+ [key: string]: any;
179
+ };
180
+ fields?: {
181
+ [key: string]: any;
182
+ };
183
+ inputs?: {
184
+ [key: string]: ConnectionState;
185
+ };
186
+ next?: ConnectionState;
187
+ }
188
+ interface NodeInfo {
189
+ id: string;
190
+ key: string;
191
+ alias: string;
192
+ }
193
+ interface PropertyInfo {
194
+ id: string;
195
+ kind: PropertyKind;
196
+ names: string[];
197
+ }
198
+ interface EventInfo {
199
+ id: string;
200
+ kind: EventKind;
201
+ names: string[];
202
+ params?: {
203
+ key: string;
204
+ name: string;
205
+ type: Type;
206
+ }[];
207
+ }
208
+ interface MethodInfo {
209
+ id: string;
210
+ kind: MethodKind;
211
+ names: string[];
212
+ inputs?: {
213
+ key: string;
214
+ name: string;
215
+ type: Type;
216
+ }[];
217
+ outputs?: {
218
+ key: string;
219
+ name: string;
220
+ type: Type;
221
+ }[];
222
+ }
223
+ type Hooks$1 = {
224
+ getNodeInfo: (id: string) => NodeInfo | undefined;
225
+ getPropertyInfo: (id: string) => PropertyInfo | undefined;
226
+ getOnEventInfo: (id: string) => EventInfo | undefined;
227
+ getTriggerEventInfo: (id: string) => EventInfo | undefined;
228
+ getCallMethodInfo: (id: string) => MethodInfo | undefined;
229
+ getImplementMethodInfo: (id: string) => MethodInfo | undefined;
230
+ };
231
+ declare function setupHooks(hooks: Hooks$1): void;
232
+ type BindContext = {
233
+ nodeIds?: {
234
+ [alias: string]: string;
235
+ };
236
+ hooks: Hooks$1;
237
+ };
238
+ type BindHandle = (ctx: BindContext, state: BlockState) => void;
239
+ declare function regBindHandles(type: string, handle: BindHandle): void;
240
+ declare function applyBlockBind(state: BlockState, nodeIds?: {
241
+ [alias: string]: string;
242
+ }): void;
243
+ //#endregion
244
+ //#region src/composables/runtime/color.d.ts
245
+ declare function useColor(src: Readonly<Ref<string | undefined>>): {
246
+ color: import("vue").ComputedRef<string | undefined>;
247
+ };
248
+ //#endregion
249
+ //#region src/composables/runtime/depend.d.ts
250
+ declare function useDepend(compId: Ref<string | undefined>, meta: Ref<Meta | undefined>, data: Ref<Data | undefined>): void;
251
+ //#endregion
252
+ //#region src/composables/runtime/runtime.d.ts
253
+ declare function initQuickJS(): Promise<void>;
254
+ declare function useRuntime(): void;
255
+ //#endregion
256
+ //#region src/sandbox/common/index.d.ts
257
+ type InitValues = {
258
+ [key: string]: any;
259
+ };
260
+ interface Inputs {
261
+ [key: string]: any;
262
+ }
263
+ //#endregion
264
+ //#region src/sandbox/sandbox/hooks.d.ts
265
+ interface Hooks {
266
+ onReady: () => Promise<void>;
267
+ onDestroy: () => void;
268
+ onPropertyChange: (id: string, newValue: any, oldValue: any, instance?: string) => Promise<void>;
269
+ onStateChange: (id: string, newValue: any, oldValue: any) => Promise<void>;
270
+ }
271
+ //#endregion
272
+ //#region src/sandbox/sandbox/promiseManager.d.ts
273
+ declare class PromiseManager {
274
+ private vm;
275
+ private promises;
276
+ private currPromiseId;
277
+ constructor(vm: QuickJSContext);
278
+ dispose(): void;
279
+ create(): {
280
+ promise: QuickJSDeferredPromise;
281
+ resolve: (value: any) => void;
282
+ reject: (reason: any) => void;
283
+ };
284
+ }
285
+ //#endregion
286
+ //#region src/sandbox/sandbox/index.d.ts
287
+ declare class Sandbox {
288
+ kind: SandboxKind;
289
+ nodeId: string;
290
+ slotId: string;
291
+ instance: string;
292
+ parent: Sandbox | undefined;
293
+ children: {
294
+ [key: string]: Sandbox;
295
+ };
296
+ org: string;
297
+ env: Env;
298
+ mode: Mode;
299
+ type: 'page' | 'comp';
300
+ eventBus: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
301
+ hooks: Hooks;
302
+ vm: QuickJSContext | undefined;
303
+ promiseManager: PromiseManager | undefined;
304
+ constructor(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks: Hooks);
305
+ dispose(): void;
306
+ debugTrace(...data: any[]): void;
307
+ private addChild;
308
+ private removeChild;
309
+ private meta;
310
+ private data;
311
+ private transients;
312
+ private depends;
313
+ prepare(meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, transients: Reactive<Transients>, depends: ShallowRef<Depends | undefined>, initValues?: InitValues): void;
314
+ createVm(runtime: QuickJSRuntime, code: string): Promise<void>;
315
+ destroyVm(): void;
316
+ setGlobalVariable(key: string, value: any): void;
317
+ getGlobalVariable(key: string): any;
318
+ evalCode(code: string): void;
319
+ callFunctionSync(funcName: string, ...params: any[]): any;
320
+ callFunctionAsync(funcName: string, ...params: any[]): Promise<any>;
321
+ getNode(nodeId: string): Node | undefined;
322
+ isEqualOfElementSlot(elementKey: string, slotKey: string): boolean;
323
+ isEqualOfCustomSlot(compId: string, slotId: string): boolean;
324
+ customProperties: {
325
+ [key: string]: any;
326
+ };
327
+ customSlotProperties: {
328
+ [key: string]: any;
329
+ };
330
+ private resetCustomProperties;
331
+ private resetCustomSlotProperties;
332
+ private getMetaOfElementProperty;
333
+ private isValidOfElementProperty;
334
+ private isValidOfElementSlotProperty;
335
+ private isValidOfCustomProperty;
336
+ private isValidOfCustomSlotProperty;
337
+ getProperty(id: string, instance?: string): any;
338
+ private getElementProperty;
339
+ private getRefProperty;
340
+ private getMultipleRefProperty;
341
+ private getCustomSlotProperty;
342
+ private getMultipleCustomSlotProperty;
343
+ private getCustomProperty;
344
+ private getElementAdaptSlotProperty;
345
+ private getCustomAdaptSlotProperty;
346
+ setProperty(id: string, newValue: any, instance?: string): Promise<void>;
347
+ private setElementProperty;
348
+ private setRefProperty;
349
+ private setMultipleRefProperty;
350
+ private setCustomSlotProperty;
351
+ private setMultipleCustomSlotProperty;
352
+ private setCustomProperty;
353
+ private setElementAdaptSlotProperty;
354
+ private setCustomAdaptSlotProperty;
355
+ isValidOfElementMethod(elementKey: string, methodKey: string): boolean;
356
+ isValidOfElementSlotMethod(elementKey: string, slotKey: string, methodKey: string): boolean;
357
+ isValidOfCustomMethod(methodId: string): boolean;
358
+ isValidOfCustomSlotMethod(compId: string, slotId: string, methodId: string): boolean;
359
+ callMethod(id: string, instance: string, inputs: Inputs): Promise<any>;
360
+ private callElementMethod;
361
+ private callRefMethod;
362
+ private callMultipleRefMethod;
363
+ private callElementAdaptSlotMethod;
364
+ private callCustomAdaptSlotMethod;
365
+ isValidOfElementEvent(elementKey: string, eventKey: string): boolean;
366
+ isValidOfElementSlotEvent(elementKey: string, slotKey: string, eventKey: string): boolean;
367
+ isValidOfCustomEvent(eventId: string): boolean;
368
+ isValidOfCustomSlotEvent(compId: string, slotId: string, eventId: string): boolean;
369
+ triggerEvent(id: string, params: any[], instance?: string): Promise<void>;
370
+ private triggerElementEvent;
371
+ private triggerElementPropertyChangeEvent;
372
+ private triggerElementSlotEvent;
373
+ private triggerElementSlotPropertyChangeEvent;
374
+ private triggerMultipleElementSlotEvent;
375
+ private triggerMultipleElementSlotPropertyChangeEvent;
376
+ private triggerRefEvent;
377
+ private triggerRefPropertyChangeEvent;
378
+ private triggerMultipleRefEvent;
379
+ private triggerMultipleRefPropertyChangeEvent;
380
+ private triggerCustomSlotEvent;
381
+ private triggerCustomSlotPropertyChangeEvent;
382
+ private triggerMultipleCustomSlotEvent;
383
+ private triggerMultipleCustomSlotPropertyChangeEvent;
384
+ private triggerCustomEvent;
385
+ private triggerCustomPropertyChangeEvent;
386
+ private triggerElementAdaptSlotEvent;
387
+ private triggerElementAdaptSlotPropertyChangeEvent;
388
+ private triggerCustomAdaptSlotEvent;
389
+ private triggerCustomAdaptSlotPropertyChangeEvent;
390
+ private triggerStateChangeEvent;
391
+ private states;
392
+ private resetStates;
393
+ isValidOfState(id: string): boolean;
394
+ getState(id: string): Promise<any>;
395
+ setState(id: string, newValue: any): Promise<void>;
396
+ }
397
+ //#endregion
398
+ //#region src/composables/runtime/sandbox.d.ts
399
+ declare function useGlobalTransient(sandbox: Sandbox, transients: Reactive<Transients>, propertyKey: string): {
400
+ property: import("vue").WritableComputedRef<any, any>;
401
+ };
402
+ declare function useSandbox(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, transients: Reactive<Transients>, initValues?: InitValues): {
403
+ sandbox: Sandbox;
404
+ };
405
+ //#endregion
406
+ //#region src/meta/base.d.ts
407
+ declare const pageTypes: string[];
408
+ type PageType = (typeof pageTypes)[number];
409
+ declare const compTypes: string[];
410
+ type CompType = (typeof compTypes)[number];
411
+ type Tag = 'pageUi' | 'compUi' | 'page3d' | 'comp3d';
412
+ declare function getTag(type: string, subtype: string): Tag;
413
+ //#endregion
414
+ //#region src/meta/items.d.ts
415
+ declare const itemsKeys: readonly ["alignTabsV1", "axisTypeV1", "borderStyleV1", "btnSpacedV1", "btnTypeV1", "columnsV1", "densityV1", "directionV1", "expansionPanelVariantV1", "fieldVariantV1", "flexCrossAlignV1", "flexDirectionV1", "flexMainAlignV1", "flexWrapV1", "fontWeightV1", "inputTypeV1", "linesV1", "numberInputControlVariantV1", "overflowV1", "positionV1", "sheetVariantV1", "sizeV1", "speedDialOpenWayV1", "textAlignV1", "textDecorationV1", "textEmphasisV1", "textSizeV1", "textTypeV1", "thumbLabelV1", "tickShowV1", "timelineAlignV1", "timelineDirectionV1", "timelineSideV1", "timelineTruncateLineV1", "transitionV1"];
416
+ type ZItemsKey = (typeof itemsKeys)[number];
417
+ type ZItem = {
418
+ value: string;
419
+ title?: string;
420
+ };
421
+ declare function regItems(key: ZItemsKey, items: ZItem[]): void;
422
+ declare function getItems(key: ZItemsKey | string): ZItem[] | undefined;
423
+ //#endregion
424
+ //#region src/meta/rule.d.ts
425
+ declare const rules: readonly ["required", "email", "minLength", "maxLength", "length"];
426
+ type ZRule = (typeof rules)[number];
427
+ //#endregion
428
+ //#region src/meta/types.d.ts
429
+ declare const typesKeys: readonly ["borderRadiusV1", "borderWidthV1", "colorV1", "elevationV1", "gapV1", "heightV1", "leftRightV1", "marginV1", "paddingV1", "progressChunkWayV1", "sizeV1", "tableColumnAlignV1", "topBottomV1", "widthV1"];
430
+ type ZTypesKey = (typeof typesKeys)[number];
431
+ type ZTypeBase = {
432
+ value: string;
433
+ title: string;
434
+ validator: (v: unknown) => boolean;
435
+ };
436
+ type ZTypeNull = {
437
+ trait: 'null';
438
+ default: null;
439
+ } & ZTypeBase;
440
+ type ZTypeWord = {
441
+ trait: 'word';
442
+ default: string;
443
+ } & ZTypeBase;
444
+ type ZTypeNumber = {
445
+ trait: 'number';
446
+ precision?: number;
447
+ min?: number;
448
+ max?: number;
449
+ step?: number;
450
+ default: number;
451
+ } & ZTypeBase;
452
+ type ZTypeNumberUnit = {
453
+ trait: 'numberUnit';
454
+ unit: string;
455
+ precision?: number;
456
+ min?: number;
457
+ max?: number;
458
+ step?: number;
459
+ default: string;
460
+ } & ZTypeBase;
461
+ type ZTypeHexColor = {
462
+ trait: 'hexColor';
463
+ default: string;
464
+ } & ZTypeBase;
465
+ type ZTypeThemeColor = {
466
+ trait: 'themeColor';
467
+ default: string;
468
+ } & ZTypeBase;
469
+ type ZType = ZTypeNull | ZTypeWord | ZTypeNumber | ZTypeNumberUnit | ZTypeHexColor | ZTypeThemeColor;
470
+ declare function regTypes(key: ZTypesKey, types: ZType[]): void;
471
+ declare function getTypes(key: ZTypesKey | string): ZType[] | undefined;
472
+ //#endregion
473
+ //#region src/meta/property.d.ts
474
+ type ZPropertyBranch = {
475
+ key: string;
476
+ name: string;
477
+ ui?: undefined;
478
+ children: ZProperty[];
479
+ };
480
+ type ZPropertyBase = {
481
+ key: string;
482
+ name: string;
483
+ readonly?: boolean;
484
+ static?: boolean;
485
+ value?: any;
486
+ };
487
+ type ZPropertyDummy = {
488
+ ui: 'dummy';
489
+ default: any;
490
+ } & ZPropertyBase;
491
+ type ZPropertyText = {
492
+ ui: 'text';
493
+ default: string;
494
+ } & ZPropertyBase;
495
+ type ZPropertyNumber = {
496
+ ui: 'number';
497
+ precision?: number;
498
+ min?: number;
499
+ max?: number;
500
+ step?: number;
501
+ default: number | null;
502
+ } & ZPropertyBase;
503
+ type ZPropertySwitch = {
504
+ ui: 'switch';
505
+ default: boolean;
506
+ } & ZPropertyBase;
507
+ type ZPropertySelect = {
508
+ ui: 'select';
509
+ items: ZItemsKey;
510
+ default: string;
511
+ } & ZPropertyBase;
512
+ type ZPropertyJson = {
513
+ ui: 'json';
514
+ default: string;
515
+ } & ZPropertyBase;
516
+ type ZPropertyIcon = {
517
+ ui: 'icon';
518
+ default: string;
519
+ } & ZPropertyBase;
520
+ type ZPropertyImage = {
521
+ ui: 'image';
522
+ default: string;
523
+ } & ZPropertyBase;
524
+ type ZPropertyComp = {
525
+ ui: 'comp';
526
+ default: {
527
+ id: string;
528
+ name: string;
529
+ properties?: {
530
+ id: string;
531
+ name: string;
532
+ type: Type;
533
+ value: any;
534
+ }[];
535
+ } | null;
536
+ } & ZPropertyBase;
537
+ type ZPropertySlot = {
538
+ ui: 'slot';
539
+ default: {
540
+ id: string;
541
+ name: string;
542
+ } | null;
543
+ } & ZPropertyBase;
544
+ type ZPropertyAdaptSlot = {
545
+ ui: 'adaptSlot';
546
+ default: {
547
+ id: string;
548
+ names: string[];
549
+ } | null;
550
+ } & ZPropertyBase;
551
+ type ZPropertyInlineSlot = {
552
+ ui: 'inlineSlot';
553
+ default: string;
554
+ } & ZPropertyBase;
555
+ type ZPropertyRule = {
556
+ ui: 'rule';
557
+ default: ZRule | '';
558
+ } & ZPropertyBase;
559
+ type ZPropertyMultiTypes = {
560
+ ui: 'multiTypes';
561
+ types: ZTypesKey;
562
+ default: any;
563
+ } & ZPropertyBase;
564
+ type ZPropertyTransient<T extends Type> = {
565
+ ui: 'transient';
566
+ type: T;
567
+ } & ZPropertyBase & {
568
+ string: {
569
+ default: string;
570
+ };
571
+ number: {
572
+ default: number;
573
+ };
574
+ boolean: {
575
+ default: boolean;
576
+ };
577
+ object: {
578
+ default: object;
579
+ };
580
+ array: {
581
+ default: object;
582
+ };
583
+ any: {
584
+ default: any;
585
+ };
586
+ }[T];
587
+ type WithArray<T extends {
588
+ default: unknown;
589
+ }> = (T & {
590
+ array?: false;
591
+ }) | (T & {
592
+ array: true;
593
+ defaultArray: T['default'][];
594
+ });
595
+ type ZProperty = ({
596
+ array?: false;
597
+ } & ZPropertyBranch) | ({
598
+ array: true;
599
+ defaultArray: any[];
600
+ } & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyText> | WithArray<ZPropertyNumber> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyJson> | WithArray<ZPropertyIcon> | WithArray<ZPropertyImage> | WithArray<ZPropertyComp> | WithArray<ZPropertySlot> | WithArray<ZPropertyAdaptSlot> | WithArray<ZPropertyInlineSlot> | WithArray<ZPropertyRule> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertyTransient<Type>>;
601
+ //#endregion
602
+ //#region src/meta/element.d.ts
603
+ declare const elementKeys: readonly ["globality_v1", "inline_slot_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_activator_v1", "ui_avatar_v1", "ui_badge_v1", "ui_banner_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_column_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_client_v1", "ui_data_table_server_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_divider_v1", "ui_expansion_panel_v1", "ui_fab_v1", "ui_file_input_v1", "ui_flexbox_v1", "ui_flex_unit_v1", "ui_form_v1", "ui_hover_v1", "ui_icon_v1", "ui_image_v1", "ui_item_group_v1", "ui_line_chart_v1", "ui_list_v1", "ui_list_item_v1", "ui_menu_v1", "ui_number_input_v1", "ui_opt_input_v1", "ui_pagination_v1", "ui_positioner_v1", "ui_progress_circular_v1", "ui_progress_linear_v1", "ui_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_row_v1", "ui_select_v1", "ui_slider_v1", "ui_slide_group_v1", "ui_spacer_v1", "ui_speed_dial_v1", "ui_stepper_v1", "ui_stepper_header_v1", "ui_stepper_item_v1", "ui_stepper_window_v1", "ui_stepper_window_item_v1", "ui_switch_v1", "ui_tab_v1", "ui_table_v1", "ui_table_body_v1", "ui_table_body_cell_v1", "ui_table_head_v1", "ui_table_head_cell_v1", "ui_table_row_v1", "ui_tabs_v1", "ui_text_v1", "ui_textarea_v1", "ui_text_field_v1", "ui_timeline_v1", "ui_timeline_item_v1", "ui_tooltip_v1", "ui_windows_v1", "3d_ambient_light_v1", "3d_box_geometry_v1", "3d_directional_light_v1", "3d_group_v1", "3d_keyboard_controls_v1", "3d_map_controls_v1", "3d_mesh_v1", "3d_mesh_basic_material_v1", "3d_orbit_controls_v1", "3d_orthographic_camera_v1", "3d_perspective_camera_v1", "3d_point_light_v1", "3d_sphere_geometry_v1", "3d_spot_light_v1"];
604
+ type ZElementKey = (typeof elementKeys)[number];
605
+ type ZMethod = {
606
+ key: string;
607
+ name: string;
608
+ inputs?: {
609
+ key: string;
610
+ name: string;
611
+ type: Type;
612
+ desc?: string;
613
+ }[];
614
+ outputs?: {
615
+ key: string;
616
+ name: string;
617
+ type: Type;
618
+ desc?: string;
619
+ }[];
620
+ desc?: string;
621
+ };
622
+ type ZEvent = {
623
+ key: string;
624
+ name: string;
625
+ params?: {
626
+ key: string;
627
+ name: string;
628
+ type: Type;
629
+ desc?: string;
630
+ }[];
631
+ desc?: string;
632
+ };
633
+ type ZSlotProperty = {
634
+ key: string;
635
+ name: string;
636
+ type: Type;
637
+ readonly?: boolean;
638
+ desc?: string;
639
+ };
640
+ type ZSlotMethod = {
641
+ key: string;
642
+ name: string;
643
+ inputs?: {
644
+ key: string;
645
+ name: string;
646
+ type: Type;
647
+ desc?: string;
648
+ }[];
649
+ outputs?: {
650
+ key: string;
651
+ name: string;
652
+ type: Type;
653
+ desc?: string;
654
+ }[];
655
+ desc?: string;
656
+ };
657
+ type ZSlotEvent = {
658
+ key: string;
659
+ name: string;
660
+ params?: {
661
+ key: string;
662
+ name: string;
663
+ type: Type;
664
+ desc?: string;
665
+ }[];
666
+ desc?: string;
667
+ };
668
+ type ZSlot = {
669
+ key: string;
670
+ name: string;
671
+ multiple?: boolean;
672
+ properties?: ZSlotProperty[];
673
+ methods?: ZSlotMethod[];
674
+ events?: ZSlotEvent[];
675
+ desc?: string;
676
+ };
677
+ interface ZSpawnResult {
678
+ nodePairs: NodePair[];
679
+ blockStates?: BlockState[];
680
+ nodeIds?: {
681
+ [alias: string]: string;
682
+ };
683
+ }
684
+ type ZSpawnFunc = (type: string, subtype: string, ...params: any[]) => ZSpawnResult;
685
+ type ZElement = {
686
+ key: ZElementKey;
687
+ name: string;
688
+ comp: any;
689
+ properties: { [key in Tag]?: ZProperty[] };
690
+ methods?: ZMethod[];
691
+ events?: ZEvent[];
692
+ inlineSlots?: string[];
693
+ slots?: ZSlot[];
694
+ internal?: boolean;
695
+ teleport?: boolean;
696
+ spawn?: ZSpawnFunc | {
697
+ func: ZSpawnFunc;
698
+ desc?: string;
699
+ }[];
700
+ };
701
+ declare function regElement(element: ZElement): void;
702
+ declare function getAllElements(): {
703
+ [key: string]: ZElement;
704
+ };
705
+ declare function getElement(key: ZElementKey | string): ZElement | undefined;
706
+ //#endregion
707
+ //#region src/meta/pkg.d.ts
708
+ type ZGroup = {
709
+ key: string;
710
+ name: string;
711
+ items: ZElementKey[];
712
+ };
713
+ type ZPkg = {
714
+ version: string;
715
+ globalityKey: ZElementKey;
716
+ refKey: ZElementKey;
717
+ items: Set<ZItemsKey>;
718
+ types: Set<ZTypesKey>;
719
+ groups: {
720
+ [tag: string]: ZGroup[];
721
+ };
722
+ };
723
+ type ZPkgs = {
724
+ [key: string]: ZPkg;
725
+ };
726
+ //#endregion
727
+ //#region src/element/_pkgs/index.d.ts
728
+ declare const pkgs: ZPkgs;
729
+ //#endregion
730
+ //#region src/element/finalProperties.d.ts
731
+ type Property = {
732
+ keys: string;
733
+ names: string[];
734
+ raw: ZProperty;
735
+ };
736
+ type Properties = {
737
+ [key: string]: {
738
+ [tag: string]: Property[];
739
+ };
740
+ };
741
+ declare const finalProperties: Properties;
742
+ //#endregion
743
+ //#region src/i18n/index.d.ts
744
+ declare function loadLocaleMessageRuntime(locale: string): Promise<{
745
+ 'x-runtime-lib': {
746
+ absolute: string;
747
+ accordion: string;
748
+ activator: string;
749
+ activeColor: string;
750
+ adaptSlot: string;
751
+ adaptSlotPropertyChange: string;
752
+ add: string;
753
+ alias: string;
754
+ align: string;
755
+ alignTabs: string;
756
+ always: string;
757
+ ambientLight: string;
758
+ angle: string;
759
+ append: string;
760
+ appendIcon: string;
761
+ appendInner: string;
762
+ appendInnerIcon: string;
763
+ aspectRatio: string;
764
+ auto: string;
765
+ autoGrow: string;
766
+ avatar: string;
767
+ badge: string;
768
+ banner: string;
769
+ barChart: string;
770
+ baseColor: string;
771
+ baseline: string;
772
+ basic: string;
773
+ bg0: string;
774
+ bg1: string;
775
+ bg2: string;
776
+ bgColor: string;
777
+ black: string;
778
+ block: string;
779
+ blur: string;
780
+ bodyLarge: string;
781
+ bodyMedium: string;
782
+ bodySmall: string;
783
+ bold: string;
784
+ border: string;
785
+ both: string;
786
+ bottom: string;
787
+ bottomLeft: string;
788
+ bottomRight: string;
789
+ boxGeometry: string;
790
+ breadcrumbs: string;
791
+ breakpoint: string;
792
+ bufferValue: string;
793
+ button: string;
794
+ buttonToggle: string;
795
+ buttonToggleEntry: string;
796
+ cameras: string;
797
+ card: string;
798
+ category: string;
799
+ center: string;
800
+ centerActive: string;
801
+ chart: string;
802
+ checkbox: string;
803
+ chip: string;
804
+ chipGroup: string;
805
+ chipify: string;
806
+ chunk: string;
807
+ circle: string;
808
+ circularReference: string;
809
+ clear: string;
810
+ clearable: string;
811
+ click: string;
812
+ clickable: string;
813
+ clickAppend: string;
814
+ clickAppendInner: string;
815
+ clickClear: string;
816
+ clickClose: string;
817
+ clickPrepend: string;
818
+ clickPrependInner: string;
819
+ clickSelect: string;
820
+ closable: string;
821
+ close: string;
822
+ closeDelay: string;
823
+ color: string;
824
+ colorPicker: string;
825
+ column: string;
826
+ column1: string;
827
+ column2: string;
828
+ column3: string;
829
+ column4: string;
830
+ column5: string;
831
+ column6: string;
832
+ column7: string;
833
+ column8: string;
834
+ column9: string;
835
+ column10: string;
836
+ column11: string;
837
+ column12: string;
838
+ columnReverse: string;
839
+ columns: string;
840
+ combobox: string;
841
+ comfortable: string;
842
+ comp: string;
843
+ compact: string;
844
+ compNotAvail: string;
845
+ container: string;
846
+ containment: string;
847
+ content: string;
848
+ contentOffset: string;
849
+ continuous: string;
850
+ control: string;
851
+ controls: string;
852
+ controlVariant: string;
853
+ count: string;
854
+ counter: string;
855
+ crossAlign: string;
856
+ crossAxis: string;
857
+ currentPage: string;
858
+ custom: string;
859
+ customPropertyChange: string;
860
+ customSlot: string;
861
+ customSlotPropertyChange: string;
862
+ dark: string;
863
+ darkMode: string;
864
+ dashed: string;
865
+ data: string;
866
+ dataDisplay: string;
867
+ dataTableClient: string;
868
+ dataTableServer: string;
869
+ datePicker: string;
870
+ decay: string;
871
+ decoration: string;
872
+ default: string;
873
+ delay: string;
874
+ density: string;
875
+ depth: string;
876
+ depthSegments: string;
877
+ desc: string;
878
+ detail: string;
879
+ dialog: string;
880
+ dialogBottom: string;
881
+ dialogTop: string;
882
+ direction: string;
883
+ directionalLight: string;
884
+ disable: string;
885
+ disabled: string;
886
+ displayLarge: string;
887
+ displayMedium: string;
888
+ displaySmall: string;
889
+ distance: string;
890
+ divided: string;
891
+ divider: string;
892
+ dot: string;
893
+ dotted: string;
894
+ double: string;
895
+ draggable: string;
896
+ dynamic: string;
897
+ eager: string;
898
+ elevated: string;
899
+ elevation: string;
900
+ email: string;
901
+ emphasis: string;
902
+ enable: string;
903
+ end: string;
904
+ error: string;
905
+ errorMessages: string;
906
+ expand: string;
907
+ expandX: string;
908
+ expandY: string;
909
+ expansionPanel: string;
910
+ extraData: string;
911
+ fade: string;
912
+ false: string;
913
+ farDistance: string;
914
+ fastFail: string;
915
+ feedback: string;
916
+ fieldOfView: string;
917
+ fields: string;
918
+ fileInput: string;
919
+ fill: string;
920
+ filled: string;
921
+ filter: string;
922
+ fixed: string;
923
+ fixedFooter: string;
924
+ fixedHeader: string;
925
+ fixedTabs: string;
926
+ flat: string;
927
+ flexbox: string;
928
+ flexUnit: string;
929
+ floating: string;
930
+ floatingActionButton: string;
931
+ focus: string;
932
+ footer: string;
933
+ form: string;
934
+ formRelated: string;
935
+ fullscreen: string;
936
+ gap: string;
937
+ geometries: string;
938
+ globality: string;
939
+ gradient: string;
940
+ group: string;
941
+ grow: string;
942
+ halfIncrements: string;
943
+ header: string;
944
+ headers: string;
945
+ headlineLarge: string;
946
+ headlineMedium: string;
947
+ headlineSmall: string;
948
+ height: string;
949
+ heightSegments: string;
950
+ hidden: string;
951
+ hide: string;
952
+ hideActions: string;
953
+ hideDetails: string;
954
+ hideInput: string;
955
+ hideOppoSite: string;
956
+ hideSlider: string;
957
+ high: string;
958
+ hint: string;
959
+ horizontal: string;
960
+ hover: string;
961
+ href: string;
962
+ icon: string;
963
+ iconColor: string;
964
+ id: string;
965
+ image: string;
966
+ imagesAndIcons: string;
967
+ indeterminate: string;
968
+ info: string;
969
+ inline: string;
970
+ inlineSlot: string;
971
+ inset: string;
972
+ instance: string;
973
+ instances: string;
974
+ intensity: string;
975
+ isDirty: string;
976
+ isFocused: string;
977
+ isHovering: string;
978
+ isSelected: string;
979
+ isValid: string;
980
+ italic: string;
981
+ item: string;
982
+ itemGroup: string;
983
+ items: string;
984
+ itemsPerPage: string;
985
+ justify: string;
986
+ key: string;
987
+ keyboardControls: string;
988
+ label: string;
989
+ labelLarge: string;
990
+ labelMedium: string;
991
+ labelSmall: string;
992
+ large: string;
993
+ layout: string;
994
+ left: string;
995
+ legend: string;
996
+ length: string;
997
+ light: string;
998
+ lights: string;
999
+ line: string;
1000
+ lineChart: string;
1001
+ lines: string;
1002
+ lineThrough: string;
1003
+ list: string;
1004
+ listItem: string;
1005
+ loader: string;
1006
+ loading: string;
1007
+ log: string;
1008
+ main: string;
1009
+ mainAlign: string;
1010
+ mainAxis: string;
1011
+ mainData: string;
1012
+ mandatory: string;
1013
+ mapControls: string;
1014
+ margin: string;
1015
+ masked: string;
1016
+ max: string;
1017
+ maxErrors: string;
1018
+ maxHeight: string;
1019
+ maxLength: string;
1020
+ maxRows: string;
1021
+ maxWidth: string;
1022
+ medium: string;
1023
+ menu: string;
1024
+ mesh: string;
1025
+ meshBasicMaterial: string;
1026
+ message: string;
1027
+ messages: string;
1028
+ middle: string;
1029
+ min: string;
1030
+ minHeight: string;
1031
+ minLength: string;
1032
+ minWidth: string;
1033
+ misc: string;
1034
+ mode: string;
1035
+ msg: {
1036
+ takeEffectOnlyAfterReleased: string;
1037
+ };
1038
+ multiple: string;
1039
+ multipleRef: string;
1040
+ multipleRefPropertyChange: string;
1041
+ multipleSlot: string;
1042
+ multiSort: string;
1043
+ name: string;
1044
+ navigation: string;
1045
+ nearDistance: string;
1046
+ newValue: string;
1047
+ next: string;
1048
+ no: string;
1049
+ none: string;
1050
+ notSet: string;
1051
+ number: string;
1052
+ numberInput: string;
1053
+ objects: string;
1054
+ offset: string;
1055
+ oldValue: string;
1056
+ one: string;
1057
+ oneTimePasswordInput: string;
1058
+ opacity: string;
1059
+ open: string;
1060
+ openDelay: string;
1061
+ options: string;
1062
+ orbitControls: string;
1063
+ orthographicCamera: string;
1064
+ overflow: string;
1065
+ overline: string;
1066
+ outlined: string;
1067
+ padding: string;
1068
+ pagination: string;
1069
+ password: string;
1070
+ penumbra: string;
1071
+ percent: string;
1072
+ perspectiveCamera: string;
1073
+ persistent: string;
1074
+ phiLength: string;
1075
+ phiStart: string;
1076
+ pickers: string;
1077
+ pill: string;
1078
+ pixel: string;
1079
+ placeholder: string;
1080
+ plain: string;
1081
+ pointLight: string;
1082
+ popout: string;
1083
+ position: string;
1084
+ positioner: string;
1085
+ precision: string;
1086
+ prefix: string;
1087
+ prepend: string;
1088
+ prependIcon: string;
1089
+ prependInner: string;
1090
+ prependInnerIcon: string;
1091
+ prev: string;
1092
+ primary: string;
1093
+ progressCircular: string;
1094
+ progressLinear: string;
1095
+ property: string;
1096
+ propertyChange: string;
1097
+ radio: string;
1098
+ radioGroup: string;
1099
+ radius: string;
1100
+ rangeSlider: string;
1101
+ rating: string;
1102
+ readonly: string;
1103
+ reference: string;
1104
+ referencePropertyChange: string;
1105
+ refKey: string;
1106
+ regular: string;
1107
+ relative: string;
1108
+ renderSwitch: string;
1109
+ required: string;
1110
+ reset: string;
1111
+ resetValidation: string;
1112
+ result: string;
1113
+ reveal: string;
1114
+ reverse: string;
1115
+ right: string;
1116
+ ripple: string;
1117
+ rotate: string;
1118
+ rotation: string;
1119
+ rounded: string;
1120
+ row: string;
1121
+ rowKey: string;
1122
+ rowReverse: string;
1123
+ rows: string;
1124
+ rules: string;
1125
+ runtime: string;
1126
+ scale: string;
1127
+ scrollX: string;
1128
+ scrollXReverse: string;
1129
+ scrollY: string;
1130
+ scrollYReverse: string;
1131
+ secondary: string;
1132
+ select: string;
1133
+ selection: string;
1134
+ selections: string;
1135
+ series: string;
1136
+ settings: string;
1137
+ shaped: string;
1138
+ sheet: string;
1139
+ show: string;
1140
+ showArrows: string;
1141
+ showFirstLastPage: string;
1142
+ showLabel: string;
1143
+ showSize: string;
1144
+ showTicks: string;
1145
+ shrink: string;
1146
+ side: string;
1147
+ singleLine: string;
1148
+ size: string;
1149
+ slideGroup: string;
1150
+ slideGroupItem: string;
1151
+ slider: string;
1152
+ sliderColor: string;
1153
+ slideX: string;
1154
+ slideXReverse: string;
1155
+ slideY: string;
1156
+ slideYReverse: string;
1157
+ slot: string;
1158
+ slotPropertyChange: string;
1159
+ slots: string;
1160
+ small: string;
1161
+ solid: string;
1162
+ solo: string;
1163
+ soloFilled: string;
1164
+ soloInverted: string;
1165
+ sort: string;
1166
+ sortable: string;
1167
+ spaceAround: string;
1168
+ spaceBetween: string;
1169
+ spaceEvenly: string;
1170
+ spaced: string;
1171
+ spacer: string;
1172
+ speedDial: string;
1173
+ sphereGeometry: string;
1174
+ split: string;
1175
+ spotLight: string;
1176
+ stacked: string;
1177
+ start: string;
1178
+ startPage: string;
1179
+ startup: string;
1180
+ state: string;
1181
+ stateChange: string;
1182
+ step: string;
1183
+ stepper: string;
1184
+ stepperHeader: string;
1185
+ stepperItem: string;
1186
+ stepperWindow: string;
1187
+ stepperWindowItem: string;
1188
+ sticky: string;
1189
+ stream: string;
1190
+ stretch: string;
1191
+ striped: string;
1192
+ style: string;
1193
+ submit: string;
1194
+ subtext: string;
1195
+ subtitle: string;
1196
+ success: string;
1197
+ suffix: string;
1198
+ switch: string;
1199
+ tab: string;
1200
+ table: string;
1201
+ tableBody: string;
1202
+ tableBodyCell: string;
1203
+ tableHead: string;
1204
+ tableHeadCell: string;
1205
+ tableRow: string;
1206
+ tabs: string;
1207
+ text: string;
1208
+ textarea: string;
1209
+ textField: string;
1210
+ theme: string;
1211
+ thetaLength: string;
1212
+ thetaStart: string;
1213
+ thin: string;
1214
+ thick: string;
1215
+ thickness: string;
1216
+ three: string;
1217
+ thumb: string;
1218
+ thumbColor: string;
1219
+ tick: string;
1220
+ ticks: string;
1221
+ tile: string;
1222
+ time: string;
1223
+ timeline: string;
1224
+ timelineItem: string;
1225
+ title: string;
1226
+ titleLarge: string;
1227
+ titleMedium: string;
1228
+ titleSmall: string;
1229
+ toggle: string;
1230
+ tonal: string;
1231
+ tooltip: string;
1232
+ top: string;
1233
+ topLeft: string;
1234
+ topRight: string;
1235
+ totalItems: string;
1236
+ totalVisiable: string;
1237
+ touch: string;
1238
+ track: string;
1239
+ trackColor: string;
1240
+ trackFillColor: string;
1241
+ transform: string;
1242
+ transition: string;
1243
+ triggerOpen: string;
1244
+ true: string;
1245
+ truncate: string;
1246
+ two: string;
1247
+ type: string;
1248
+ underline: string;
1249
+ underlined: string;
1250
+ updateOptions: string;
1251
+ valid: string;
1252
+ validate: string;
1253
+ value: string;
1254
+ variant: string;
1255
+ warning: string;
1256
+ vertical: string;
1257
+ viewportPercent: string;
1258
+ visible: string;
1259
+ way: string;
1260
+ weight: string;
1261
+ width: string;
1262
+ widthSegments: string;
1263
+ windows: string;
1264
+ wrap: string;
1265
+ x: string;
1266
+ xAxis: string;
1267
+ xLarge: string;
1268
+ xSmall: string;
1269
+ y: string;
1270
+ yAxis: string;
1271
+ yes: string;
1272
+ z: string;
1273
+ };
1274
+ } | {
1275
+ 'x-runtime-lib': {
1276
+ absolute: string;
1277
+ accordion: string;
1278
+ activator: string;
1279
+ activeColor: string;
1280
+ adaptSlot: string;
1281
+ adaptSlotPropertyChange: string;
1282
+ add: string;
1283
+ alias: string;
1284
+ align: string;
1285
+ alignTabs: string;
1286
+ always: string;
1287
+ ambientLight: string;
1288
+ angle: string;
1289
+ append: string;
1290
+ appendIcon: string;
1291
+ appendInner: string;
1292
+ appendInnerIcon: string;
1293
+ aspectRatio: string;
1294
+ auto: string;
1295
+ autoGrow: string;
1296
+ avatar: string;
1297
+ badge: string;
1298
+ banner: string;
1299
+ barChart: string;
1300
+ baseColor: string;
1301
+ baseline: string;
1302
+ basic: string;
1303
+ bg0: string;
1304
+ bg1: string;
1305
+ bg2: string;
1306
+ bgColor: string;
1307
+ black: string;
1308
+ block: string;
1309
+ blur: string;
1310
+ bodyLarge: string;
1311
+ bodyMedium: string;
1312
+ bodySmall: string;
1313
+ bold: string;
1314
+ border: string;
1315
+ both: string;
1316
+ bottom: string;
1317
+ bottomLeft: string;
1318
+ bottomRight: string;
1319
+ boxGeometry: string;
1320
+ breadcrumbs: string;
1321
+ breakpoint: string;
1322
+ bufferValue: string;
1323
+ button: string;
1324
+ buttonToggle: string;
1325
+ buttonToggleEntry: string;
1326
+ cameras: string;
1327
+ card: string;
1328
+ category: string;
1329
+ center: string;
1330
+ centerActive: string;
1331
+ chart: string;
1332
+ checkbox: string;
1333
+ chip: string;
1334
+ chipGroup: string;
1335
+ chipify: string;
1336
+ chunk: string;
1337
+ circle: string;
1338
+ circularReference: string;
1339
+ clear: string;
1340
+ clearable: string;
1341
+ click: string;
1342
+ clickable: string;
1343
+ clickAppend: string;
1344
+ clickAppendInner: string;
1345
+ clickClear: string;
1346
+ clickClose: string;
1347
+ clickPrepend: string;
1348
+ clickPrependInner: string;
1349
+ clickSelect: string;
1350
+ closable: string;
1351
+ close: string;
1352
+ closeDelay: string;
1353
+ color: string;
1354
+ colorPicker: string;
1355
+ column: string;
1356
+ column1: string;
1357
+ column2: string;
1358
+ column3: string;
1359
+ column4: string;
1360
+ column5: string;
1361
+ column6: string;
1362
+ column7: string;
1363
+ column8: string;
1364
+ column9: string;
1365
+ column10: string;
1366
+ column11: string;
1367
+ column12: string;
1368
+ columnReverse: string;
1369
+ columns: string;
1370
+ combobox: string;
1371
+ comfortable: string;
1372
+ comp: string;
1373
+ compact: string;
1374
+ compNotAvail: string;
1375
+ container: string;
1376
+ containment: string;
1377
+ content: string;
1378
+ contentOffset: string;
1379
+ continuous: string;
1380
+ control: string;
1381
+ controls: string;
1382
+ controlVariant: string;
1383
+ count: string;
1384
+ counter: string;
1385
+ crossAlign: string;
1386
+ crossAxis: string;
1387
+ currentPage: string;
1388
+ custom: string;
1389
+ customPropertyChange: string;
1390
+ customSlot: string;
1391
+ customSlotPropertyChange: string;
1392
+ dark: string;
1393
+ darkMode: string;
1394
+ dashed: string;
1395
+ data: string;
1396
+ dataDisplay: string;
1397
+ dataTableClient: string;
1398
+ dataTableServer: string;
1399
+ datePicker: string;
1400
+ decay: string;
1401
+ decoration: string;
1402
+ default: string;
1403
+ delay: string;
1404
+ density: string;
1405
+ depth: string;
1406
+ depthSegments: string;
1407
+ desc: string;
1408
+ detail: string;
1409
+ dialog: string;
1410
+ dialogBottom: string;
1411
+ dialogTop: string;
1412
+ direction: string;
1413
+ directionalLight: string;
1414
+ disable: string;
1415
+ disabled: string;
1416
+ displayLarge: string;
1417
+ displayMedium: string;
1418
+ displaySmall: string;
1419
+ distance: string;
1420
+ divided: string;
1421
+ divider: string;
1422
+ dot: string;
1423
+ dotted: string;
1424
+ double: string;
1425
+ draggable: string;
1426
+ dynamic: string;
1427
+ eager: string;
1428
+ elevated: string;
1429
+ elevation: string;
1430
+ email: string;
1431
+ emphasis: string;
1432
+ enable: string;
1433
+ end: string;
1434
+ error: string;
1435
+ errorMessages: string;
1436
+ expand: string;
1437
+ expandX: string;
1438
+ expandY: string;
1439
+ expansionPanel: string;
1440
+ extraData: string;
1441
+ fade: string;
1442
+ false: string;
1443
+ farDistance: string;
1444
+ fastFail: string;
1445
+ feedback: string;
1446
+ fieldOfView: string;
1447
+ fields: string;
1448
+ fileInput: string;
1449
+ fill: string;
1450
+ filled: string;
1451
+ filter: string;
1452
+ fixed: string;
1453
+ fixedFooter: string;
1454
+ fixedHeader: string;
1455
+ fixedTabs: string;
1456
+ flat: string;
1457
+ flexbox: string;
1458
+ flexUnit: string;
1459
+ floating: string;
1460
+ floatingActionButton: string;
1461
+ focus: string;
1462
+ footer: string;
1463
+ form: string;
1464
+ formRelated: string;
1465
+ fullscreen: string;
1466
+ gap: string;
1467
+ geometries: string;
1468
+ globality: string;
1469
+ gradient: string;
1470
+ group: string;
1471
+ grow: string;
1472
+ halfIncrements: string;
1473
+ header: string;
1474
+ headers: string;
1475
+ headlineLarge: string;
1476
+ headlineMedium: string;
1477
+ headlineSmall: string;
1478
+ height: string;
1479
+ heightSegments: string;
1480
+ hidden: string;
1481
+ hide: string;
1482
+ hideActions: string;
1483
+ hideDetails: string;
1484
+ hideInput: string;
1485
+ hideOpposite: string;
1486
+ hideSlider: string;
1487
+ high: string;
1488
+ hint: string;
1489
+ horizontal: string;
1490
+ hover: string;
1491
+ href: string;
1492
+ icon: string;
1493
+ iconColor: string;
1494
+ id: string;
1495
+ image: string;
1496
+ imagesAndIcons: string;
1497
+ indeterminate: string;
1498
+ info: string;
1499
+ inline: string;
1500
+ inlineSlot: string;
1501
+ inset: string;
1502
+ instance: string;
1503
+ instances: string;
1504
+ intensity: string;
1505
+ isDirty: string;
1506
+ isFocused: string;
1507
+ isHovering: string;
1508
+ isSelected: string;
1509
+ isValid: string;
1510
+ italic: string;
1511
+ item: string;
1512
+ itemGroup: string;
1513
+ items: string;
1514
+ itemsPerPage: string;
1515
+ justify: string;
1516
+ key: string;
1517
+ keyboardControls: string;
1518
+ label: string;
1519
+ labelLarge: string;
1520
+ labelMedium: string;
1521
+ labelSmall: string;
1522
+ large: string;
1523
+ layout: string;
1524
+ left: string;
1525
+ legend: string;
1526
+ length: string;
1527
+ light: string;
1528
+ lights: string;
1529
+ line: string;
1530
+ lineChart: string;
1531
+ lines: string;
1532
+ lineThrough: string;
1533
+ list: string;
1534
+ listItem: string;
1535
+ loader: string;
1536
+ loading: string;
1537
+ log: string;
1538
+ main: string;
1539
+ mainAlign: string;
1540
+ mainAxis: string;
1541
+ mainData: string;
1542
+ mandatory: string;
1543
+ mapControls: string;
1544
+ margin: string;
1545
+ masked: string;
1546
+ max: string;
1547
+ maxErrors: string;
1548
+ maxHeight: string;
1549
+ maxLength: string;
1550
+ maxRows: string;
1551
+ maxWidth: string;
1552
+ medium: string;
1553
+ menu: string;
1554
+ mesh: string;
1555
+ meshBasicMaterial: string;
1556
+ message: string;
1557
+ messages: string;
1558
+ middle: string;
1559
+ min: string;
1560
+ minHeight: string;
1561
+ minLength: string;
1562
+ minWidth: string;
1563
+ misc: string;
1564
+ mode: string;
1565
+ msg: {
1566
+ takeEffectOnlyAfterReleased: string;
1567
+ };
1568
+ multiple: string;
1569
+ multipleRef: string;
1570
+ multipleRefPropertyChange: string;
1571
+ multipleSlot: string;
1572
+ multiSort: string;
1573
+ name: string;
1574
+ navigation: string;
1575
+ nearDistance: string;
1576
+ newValue: string;
1577
+ next: string;
1578
+ no: string;
1579
+ none: string;
1580
+ notSet: string;
1581
+ number: string;
1582
+ numberInput: string;
1583
+ objects: string;
1584
+ offset: string;
1585
+ oldValue: string;
1586
+ one: string;
1587
+ oneTimePasswordInput: string;
1588
+ opacity: string;
1589
+ open: string;
1590
+ openDelay: string;
1591
+ options: string;
1592
+ orbitControls: string;
1593
+ orthographicCamera: string;
1594
+ overflow: string;
1595
+ overline: string;
1596
+ outlined: string;
1597
+ padding: string;
1598
+ pagination: string;
1599
+ password: string;
1600
+ penumbra: string;
1601
+ percent: string;
1602
+ perspectiveCamera: string;
1603
+ persistent: string;
1604
+ phiLength: string;
1605
+ phiStart: string;
1606
+ pickers: string;
1607
+ pill: string;
1608
+ pixel: string;
1609
+ placeholder: string;
1610
+ plain: string;
1611
+ pointLight: string;
1612
+ popout: string;
1613
+ position: string;
1614
+ positioner: string;
1615
+ precision: string;
1616
+ prefix: string;
1617
+ prepend: string;
1618
+ prependIcon: string;
1619
+ prependInner: string;
1620
+ prependInnerIcon: string;
1621
+ prev: string;
1622
+ primary: string;
1623
+ progressCircular: string;
1624
+ progressLinear: string;
1625
+ property: string;
1626
+ propertyChange: string;
1627
+ radio: string;
1628
+ radioGroup: string;
1629
+ radius: string;
1630
+ rangeSlider: string;
1631
+ rating: string;
1632
+ readonly: string;
1633
+ reference: string;
1634
+ referencePropertyChange: string;
1635
+ refKey: string;
1636
+ regular: string;
1637
+ relative: string;
1638
+ renderSwitch: string;
1639
+ required: string;
1640
+ reset: string;
1641
+ resetValidation: string;
1642
+ result: string;
1643
+ reveal: string;
1644
+ reverse: string;
1645
+ right: string;
1646
+ ripple: string;
1647
+ rotate: string;
1648
+ rotation: string;
1649
+ rounded: string;
1650
+ row: string;
1651
+ rowKey: string;
1652
+ rowReverse: string;
1653
+ rows: string;
1654
+ rules: string;
1655
+ runtime: string;
1656
+ scale: string;
1657
+ scrollX: string;
1658
+ scrollXReverse: string;
1659
+ scrollY: string;
1660
+ scrollYReverse: string;
1661
+ secondary: string;
1662
+ select: string;
1663
+ selection: string;
1664
+ selections: string;
1665
+ series: string;
1666
+ settings: string;
1667
+ shaped: string;
1668
+ sheet: string;
1669
+ show: string;
1670
+ showArrows: string;
1671
+ showFirstLastPage: string;
1672
+ showLabel: string;
1673
+ showSize: string;
1674
+ showTicks: string;
1675
+ shrink: string;
1676
+ side: string;
1677
+ singleLine: string;
1678
+ size: string;
1679
+ slideGroup: string;
1680
+ slideGroupItem: string;
1681
+ slider: string;
1682
+ sliderColor: string;
1683
+ slideX: string;
1684
+ slideXReverse: string;
1685
+ slideY: string;
1686
+ slideYReverse: string;
1687
+ slot: string;
1688
+ slotPropertyChange: string;
1689
+ slots: string;
1690
+ small: string;
1691
+ solid: string;
1692
+ solo: string;
1693
+ soloFilled: string;
1694
+ soloInverted: string;
1695
+ sort: string;
1696
+ sortable: string;
1697
+ spaceAround: string;
1698
+ spaceBetween: string;
1699
+ spaceEvenly: string;
1700
+ spaced: string;
1701
+ spacer: string;
1702
+ speedDial: string;
1703
+ sphereGeometry: string;
1704
+ split: string;
1705
+ spotLight: string;
1706
+ stacked: string;
1707
+ start: string;
1708
+ startPage: string;
1709
+ startup: string;
1710
+ state: string;
1711
+ stateChange: string;
1712
+ step: string;
1713
+ stepper: string;
1714
+ stepperHeader: string;
1715
+ stepperItem: string;
1716
+ stepperWindow: string;
1717
+ stepperWindowItem: string;
1718
+ sticky: string;
1719
+ stream: string;
1720
+ stretch: string;
1721
+ striped: string;
1722
+ style: string;
1723
+ submit: string;
1724
+ subtext: string;
1725
+ subtitle: string;
1726
+ success: string;
1727
+ suffix: string;
1728
+ switch: string;
1729
+ tab: string;
1730
+ table: string;
1731
+ tableBody: string;
1732
+ tableBodyCell: string;
1733
+ tableHead: string;
1734
+ tableHeadCell: string;
1735
+ tableRow: string;
1736
+ tabs: string;
1737
+ text: string;
1738
+ textarea: string;
1739
+ textField: string;
1740
+ theme: string;
1741
+ thetaLength: string;
1742
+ thetaStart: string;
1743
+ thin: string;
1744
+ thick: string;
1745
+ thickness: string;
1746
+ three: string;
1747
+ thumb: string;
1748
+ thumbColor: string;
1749
+ tick: string;
1750
+ ticks: string;
1751
+ tile: string;
1752
+ time: string;
1753
+ timeline: string;
1754
+ timelineItem: string;
1755
+ title: string;
1756
+ titleLarge: string;
1757
+ titleMedium: string;
1758
+ titleSmall: string;
1759
+ toggle: string;
1760
+ tonal: string;
1761
+ tooltip: string;
1762
+ top: string;
1763
+ topLeft: string;
1764
+ topRight: string;
1765
+ totalItems: string;
1766
+ totalVisiable: string;
1767
+ touch: string;
1768
+ track: string;
1769
+ trackColor: string;
1770
+ trackFillColor: string;
1771
+ transform: string;
1772
+ transition: string;
1773
+ triggerOpen: string;
1774
+ true: string;
1775
+ truncate: string;
1776
+ two: string;
1777
+ type: string;
1778
+ underline: string;
1779
+ underlined: string;
1780
+ updateOptions: string;
1781
+ valid: string;
1782
+ validate: string;
1783
+ value: string;
1784
+ variant: string;
1785
+ warning: string;
1786
+ vertical: string;
1787
+ viewportPercent: string;
1788
+ visible: string;
1789
+ way: string;
1790
+ weight: string;
1791
+ width: string;
1792
+ widthSegments: string;
1793
+ windows: string;
1794
+ wrap: string;
1795
+ x: string;
1796
+ xAxis: string;
1797
+ xLarge: string;
1798
+ xSmall: string;
1799
+ y: string;
1800
+ yAxis: string;
1801
+ yes: string;
1802
+ z: string;
1803
+ };
1804
+ }>;
1805
+ //#endregion
1806
+ //#region src/utils/breakpoint.d.ts
1807
+ declare const breakpoints: readonly ["xs", "sm", "md", "lg", "xl"];
1808
+ declare const reverseBreakpoints: readonly ["xl", "lg", "md", "sm", "xs"];
1809
+ type Breakpoint = (typeof breakpoints)[number];
1810
+ declare function getBreakpointName(breakpoint: Breakpoint): string;
1811
+ declare function calcBreakpoint(width: number): Breakpoint;
1812
+ declare function getIndexOfBreakpoint(breakpoint: Breakpoint): number;
1813
+ declare function getBreakpointProperty<T>(current: Breakpoint, props: {
1814
+ [key: string]: T;
1815
+ }): T | undefined;
1816
+ declare function createBreakpointProperty(prototype: ZProperty): ZProperty;
1817
+ //#endregion
1818
+ //#region src/utils/misc.d.ts
1819
+ declare function genId(len: number): string;
1820
+ declare function isNull(v: unknown): boolean;
1821
+ declare function isNumber(v: unknown): boolean;
1822
+ declare function isNumberUnit(v: unknown, unit: string): boolean;
1823
+ declare function parseNumberUnit(v: unknown, unit: string): number;
1824
+ declare function isPixel(v: unknown): boolean;
1825
+ declare function parsePixel(v: unknown): number;
1826
+ declare function isPercent(v: unknown): boolean;
1827
+ declare function parsePercent(v: unknown): number;
1828
+ declare function isHexColor(v: unknown): boolean;
1829
+ declare const themeColors: {
1830
+ value: string;
1831
+ title: string;
1832
+ }[];
1833
+ declare function isThemeColor(v: unknown): boolean;
1834
+ declare function getRadius(val: unknown): string | undefined;
1835
+ declare function toDotString(target: string | string[]): string;
1836
+ declare function fromDotString(target: string | string[]): string[];
1837
+ declare function getField(object: any, keys: string | string[]): any;
1838
+ declare function setField(object: any, keys: string | string[], value: any): void;
1839
+ declare function addIndent(code: string, spaces?: number): string;
1840
+ declare function addUnique(items: string[], item: string): void;
1841
+ //#endregion
1842
+ //#region src/utils/name.d.ts
1843
+ declare function toPropertyName(kind: PropertyKind, names: string[]): string;
1844
+ declare function toMethodName(kind: MethodKind, names: string[]): string;
1845
+ declare function toEventName(kind: EventKind, names: string[]): string;
1846
+ //#endregion
1847
+ //#region src/utils/node.d.ts
1848
+ declare function createNode(type: string, subtype: string, key: ZElementKey): Node;
1849
+ declare function getNodeLite(nodeLites: NodeLite[], id: string): NodeLite | undefined;
1850
+ declare function makeNodePair(node: Node, nodePairs?: NodePair[]): NodePair;
1851
+ declare function duplicateNodePair(src: NodePair): NodePair;
1852
+ declare function duplicateNodePairs(srcs: NodePair[]): NodePair[];
1853
+ declare function createMakeNode(type: string, subtype: string): {
1854
+ nodeIds: {
1855
+ [alias: string]: string;
1856
+ };
1857
+ n: (key: ZElementKey, nodePairs?: NodePair[], props?: {
1858
+ [keys: string]: any;
1859
+ }) => NodePair;
1860
+ };
1861
+ //#endregion
1862
+ //#region src/utils/property.d.ts
1863
+ declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | (number | null)[] | boolean[] | ({
1864
+ id: string;
1865
+ name: string;
1866
+ properties?: {
1867
+ id: string;
1868
+ name: string;
1869
+ type: import("x-essential-lib").Type;
1870
+ value: any;
1871
+ }[];
1872
+ } | null)[] | ({
1873
+ id: string;
1874
+ name: string;
1875
+ } | null)[] | ({
1876
+ id: string;
1877
+ names: string[];
1878
+ } | null)[] | ("" | "required" | "email" | "minLength" | "maxLength" | "length")[];
1879
+ declare function getPropertyDefault(property: ZProperty): any;
1880
+ declare function initProperties(node: Node, properties: ZProperty[]): void;
1881
+ //#endregion
1882
+ //#region src/utils/provideInject.d.ts
1883
+ declare function provideOrg(org: string): void;
1884
+ declare function injectOrg(): string;
1885
+ declare function provideEnv(env: Env): void;
1886
+ declare function injectEnv(): Env;
1887
+ declare function provideMode(mode: Mode): void;
1888
+ declare function injectMode(): Mode;
1889
+ type Device = {
1890
+ width: number;
1891
+ height: number;
1892
+ };
1893
+ declare function provideDevice(device: Ref<Device>): void;
1894
+ declare function injectDevice(): Ref<Device>;
1895
+ declare function provideDark(dark: Ref<boolean>): void;
1896
+ declare function injectDark(): Ref<boolean>;
1897
+ declare function provideId(id: string): void;
1898
+ declare function injectId(): string;
1899
+ declare function provideType(type: 'page' | 'comp'): void;
1900
+ declare function injectType(): "page" | "comp";
1901
+ declare function provideMeta(meta: Ref<Meta | undefined>): void;
1902
+ declare function injectMeta(): Ref<Meta | undefined>;
1903
+ declare function provideData(data: Ref<Data | undefined>): void;
1904
+ declare function injectData(): Ref<Data | undefined>;
1905
+ declare function provideTransients(transients: Reactive<Transients>): void;
1906
+ declare function injectTransients(): Reactive<Transients>;
1907
+ declare function provideDepends(depends: ShallowRef<Depends>): void;
1908
+ declare function injectDepends(): ShallowRef<Depends>;
1909
+ declare function provideRuntime(runtime: QuickJSRuntime): void;
1910
+ declare function injectRuntime(): QuickJSRuntime;
1911
+ declare function provideSandbox(sandbox: Sandbox): void;
1912
+ declare function injectSandbox(): Sandbox | undefined;
1913
+ declare function provideNodeLite(nodeLite: Ref<NodeLite>): void;
1914
+ declare function injectNodeLite(): Ref<NodeLite> | undefined;
1915
+ declare function provideNode(node: Ref<Node>): void;
1916
+ declare function injectNode(): Ref<Node> | undefined;
1917
+ declare function provideSlotProps(slotProps: Record<string, any>): void;
1918
+ declare function injectSlotProps(): Record<string, any> | undefined;
1919
+ interface RadioGroupProps {
1920
+ disabled: ComputedRef<any>;
1921
+ readonly: ComputedRef<any>;
1922
+ }
1923
+ declare function provideRadioGroupProps(radioGroupProps: RadioGroupProps): void;
1924
+ declare function injectRadioGroupProps(): RadioGroupProps | undefined;
1925
+ //#endregion
1926
+ //#region src/utils/render.d.ts
1927
+ declare function isRenderSwitch(key: string): boolean;
1928
+ declare function isInlineSlot(key: string): boolean;
1929
+ declare function isActivator(key: string): boolean;
1930
+ declare function isFlexUnit(key: string): boolean;
1931
+ declare function hasInlineSlot(element: ZElement): boolean | undefined;
1932
+ declare function hasSlot(key: string): boolean;
1933
+ declare function hasComp(key: string): boolean;
1934
+ interface RenderResult {
1935
+ [slot: string]: VNode[];
1936
+ }
1937
+ declare function mergeRenderResult(main: RenderResult, part: RenderResult): void;
1938
+ interface RenderSlots {
1939
+ [slot: string]: () => VNode[];
1940
+ }
1941
+ declare function toRenderSlots(result: RenderResult): RenderSlots;
1942
+ //#endregion
1943
+ //#region src/utils/sandbox.d.ts
1944
+ declare function getImplementMethodName(kind: MethodKind, nodeId: string, methodKey: string): string;
1945
+ //#endregion
1946
+ //#region src/utils/unifiedId.d.ts
1947
+ declare function makePropertyId(kind: PropertyKind, nodeId: string, propertyKey: string): string;
1948
+ declare function unwrapPropertyId(id: string): {
1949
+ kind: PropertyKind;
1950
+ nodeId: string;
1951
+ propertyKey: string;
1952
+ };
1953
+ declare function makePropertyKeyOfElementSlot(elementKey: string, slotKey: string, propertyKey: string): string;
1954
+ declare function unwrapPropertyKeyOfElementSlot(key: string): {
1955
+ elementKey: string;
1956
+ slotKey: string;
1957
+ propertyKey: string;
1958
+ };
1959
+ declare function makePropertyKeyOfCustomSlot(compId: string, slotId: string, propertyId: string): string;
1960
+ declare function unwrapPropertyKeyOfCustomSlot(key: string): {
1961
+ compId: string;
1962
+ slotId: string;
1963
+ propertyId: string;
1964
+ };
1965
+ declare function makeMethodId(kind: MethodKind, nodeId: string, methodKey: string): string;
1966
+ declare function unwrapMethodId(id: string): {
1967
+ kind: MethodKind;
1968
+ nodeId: string;
1969
+ methodKey: string;
1970
+ };
1971
+ declare function makeMethodKeyOfElementSlot(elementKey: string, slotKey: string, methodKey: string): string;
1972
+ declare function unwrapMethodKeyOfElementSlot(key: string): {
1973
+ elementKey: string;
1974
+ slotKey: string;
1975
+ methodKey: string;
1976
+ };
1977
+ declare function makeMethodKeyOfCustomSlot(compId: string, slotId: string, methodId: string): string;
1978
+ declare function unwrapMethodKeyOfCustomSlot(key: string): {
1979
+ compId: string;
1980
+ slotId: string;
1981
+ methodId: string;
1982
+ };
1983
+ declare function makeEventId(kind: EventKind, nodeId: string, eventKey: string): string;
1984
+ declare function unwrapEventId(id: string): {
1985
+ kind: EventKind;
1986
+ nodeId: string;
1987
+ eventKey: string;
1988
+ };
1989
+ declare function makeEventKeyOfElementSlot(elementKey: string, slotKey: string, eventKey: string): string;
1990
+ declare function unwrapEventKeyOfElementSlot(key: string): {
1991
+ elementKey: string;
1992
+ slotKey: string;
1993
+ eventKey: string;
1994
+ };
1995
+ declare function makeEventKeyOfCustomSlot(compId: string, slotId: string, eventId: string): string;
1996
+ declare function unwrapEventKeyOfCustomSlot(key: string): {
1997
+ compId: string;
1998
+ slotId: string;
1999
+ eventId: string;
2000
+ };
2001
+ declare function makeSlotId(kind: SlotKind, mainKey: string, slotKey: string): string;
2002
+ declare function unwrapSlotId(id: string): {
2003
+ kind: SlotKind;
2004
+ mainKey: string;
2005
+ slotKey: string;
2006
+ };
2007
+ declare function makeTriggerId(kind: TriggerKind, triggerKey: string): string;
2008
+ declare function unwrapTriggerId(id: string): {
2009
+ kind: TriggerKind;
2010
+ triggerKey: string;
2011
+ };
2012
+ //#endregion
2013
+ export { BindContext, BindHandle, BlockState, Breakpoint, Code, CompType, Data, Depend, Depends, Device, ElementProps, Env, Event, EventKind, Field, Meta, Method, MethodKind, Mode, Node, NodeLite, NodePair, PageType, PropertyKind, Reactivity, RefContext, RenderResult, RenderSlots, SandboxKind, Slot, SlotKind, Tag, Transients, TriggerKind, View, ZElement, ZElementKey, ZEvent, ZGroup, ZItem, ZItemsKey, ZMethod, ZPkg, ZPkgs, ZProperty, ZRule, ZSlot, ZSlotEvent, ZSlotMethod, ZSlotProperty, ZSpawnFunc, ZSpawnResult, ZType, ZTypesKey, addIndent, addUnique, applyBlockBind, breakpoints, calcBreakpoint, compTypes, createBreakpointProperty, createMakeNode, createNode, dataStringify, duplicateNodePair, duplicateNodePairs, elementKeys, finalProperties, fromDotString, genId, getAllElements, getBreakpointName, getBreakpointProperty, getElement, getField, getImplementMethodName, getIndexOfBreakpoint, getItems, getNodeLite, getPropertyDefault, getPropertyDefaultArray, getRadius, getTag, getTypes, hasComp, hasInlineSlot, hasSlot, initProperties, initQuickJS, injectDark, injectData, injectDepends, injectDevice, injectEnv, injectId, injectMeta, injectMode, injectNode, injectNodeLite, injectOrg, injectRadioGroupProps, injectRuntime, injectSandbox, injectSlotProps, injectTransients, injectType, isActivator, isCircularReference, isExecutableMode, isFlexUnit, isHexColor, isInlineSlot, isNull, isNumber, isNumberUnit, isPercent, isPixel, isRenderSwitch, isThemeColor, itemsKeys, loadLocaleMessageRuntime, makeEventId, makeEventKeyOfCustomSlot, makeEventKeyOfElementSlot, makeMethodId, makeMethodKeyOfCustomSlot, makeMethodKeyOfElementSlot, makeNodePair, makePropertyId, makePropertyKeyOfCustomSlot, makePropertyKeyOfElementSlot, makeSlotId, makeTriggerId, mergeRenderResult, metaStringify, pageTypes, parseData, parseMeta, parseNumberUnit, parsePercent, parsePixel, pkgs, provideDark, provideData, provideDepends, provideDevice, provideEnv, provideId, provideMeta, provideMode, provideNode, provideNodeLite, provideOrg, provideRadioGroupProps, provideRuntime, provideSandbox, provideSlotProps, provideTransients, provideType, regBindHandles, regElement, regItems, regTypes, reverseBreakpoints, rules, setField, setupHooks, syncNodeLite, themeColors, toDotString, toEventName, toMethodName, toNodeLite, toPropertyName, toRenderSlots, typesKeys, unwrapEventId, unwrapEventKeyOfCustomSlot, unwrapEventKeyOfElementSlot, unwrapMethodId, unwrapMethodKeyOfCustomSlot, unwrapMethodKeyOfElementSlot, unwrapPropertyId, unwrapPropertyKeyOfCustomSlot, unwrapPropertyKeyOfElementSlot, unwrapSlotId, unwrapTriggerId, useColor, useDepend, useGlobalTransient, useRuntime, useSandbox };