x-runtime-lib 0.9.7 → 0.9.9
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/components/element/ui/container/v1/index.vue.d.ts +2 -2
- package/dist/components/element/ui/index.d.ts +3 -3
- package/dist/components/element/ui/tabs/v1/index.vue.d.ts +2 -2
- package/dist/composables/runtime/theme.d.ts +1 -1
- package/dist/element/_common/index.d.ts +3 -0
- package/dist/element/_common/items/index.d.ts +24 -24
- package/dist/element/_common/types/index.d.ts +8 -8
- package/dist/element/_pkgs/v1/elements.d.ts +1 -1
- package/dist/element/index.d.ts +1 -0
- package/dist/element/ui/flexbox/v1/meta.d.ts +2 -0
- package/dist/element/ui/flexboxEntry/v1/meta.d.ts +2 -0
- package/dist/element/ui/index.d.ts +2 -2
- package/dist/{i18n-en.ijgolucs.js → i18n-en.b60i5ddj.js} +3 -2
- package/dist/{i18n-zhHans.iukcgmn0.js → i18n-zhHans.mh8d6pad.js} +3 -2
- package/dist/index.js +6057 -5369
- package/dist/meta/element.d.ts +1 -1
- package/package.json +1 -1
- package/dist/element/_common/global/index.d.ts +0 -10
- package/dist/element/ui/flexLayout/v1/meta.d.ts +0 -2
- package/dist/element/ui/flexLayoutEntry/v1/meta.d.ts +0 -2
- package/dist/types/protocol.d.ts +0 -287
- /package/dist/components/element/ui/{flexLayout → flexbox}/v1/index.vue.d.ts +0 -0
- /package/dist/components/element/ui/{flexLayoutEntry → flexboxEntry}/v1/index.vue.d.ts +0 -0
- /package/dist/element/ui/{flexLayout → flexbox}/v1/index.d.ts +0 -0
- /package/dist/element/ui/{flexLayout → flexbox}/v1/spawn.d.ts +0 -0
- /package/dist/element/ui/{flexLayoutEntry → flexboxEntry}/v1/index.d.ts +0 -0
package/dist/meta/element.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Type } from 'x-essential-lib';
|
|
|
2
2
|
import { NodePair } from '@/types';
|
|
3
3
|
import { Tag } from './base';
|
|
4
4
|
import { ZProperty } from './property';
|
|
5
|
-
export declare const elementKeys: readonly ["globality_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_badge_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_btn_toggle_entry_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_fab_v1", "ui_file_input_v1", "
|
|
5
|
+
export declare const elementKeys: readonly ["globality_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_badge_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_btn_toggle_entry_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_fab_v1", "ui_file_input_v1", "ui_flexbox_v1", "ui_flexbox_entry_v1", "ui_form_v1", "ui_icon_v1", "ui_line_chart_v1", "ui_menu_v1", "ui_number_input_v1", "ui_pagination_v1", "ui_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_select_v1", "ui_sheet_v1", "ui_slider_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_window_v1", "ui_window_item_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"];
|
|
6
6
|
export type ZElementKey = (typeof elementKeys)[number];
|
|
7
7
|
export type ZMethod = {
|
|
8
8
|
key: string;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ZElement, ZElementKey, ZItem, ZItemsKey, ZType, ZTypesKey } from '@/meta';
|
|
2
|
-
export declare function regItems(key: ZItemsKey, items: ZItem[]): void;
|
|
3
|
-
export declare function getItems(key: ZItemsKey | string): ZItem[] | undefined;
|
|
4
|
-
export declare function regTypes(key: ZTypesKey, types: ZType[]): void;
|
|
5
|
-
export declare function getTypes(key: ZTypesKey | string): ZType[] | undefined;
|
|
6
|
-
export declare function regElement(element: ZElement): void;
|
|
7
|
-
export declare function getAllElements(): {
|
|
8
|
-
[key: string]: ZElement;
|
|
9
|
-
};
|
|
10
|
-
export declare function getElement(key: ZElementKey | string): ZElement | undefined;
|
package/dist/types/protocol.d.ts
DELETED
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import { Type } from 'x-essential-lib';
|
|
2
|
-
import { NodePair } from './data';
|
|
3
|
-
export declare const pageTypes: string[];
|
|
4
|
-
export type PageType = (typeof pageTypes)[number];
|
|
5
|
-
export declare const compTypes: string[];
|
|
6
|
-
export type CompType = (typeof compTypes)[number];
|
|
7
|
-
export type Tag = 'pageUi' | 'compUi' | 'page3d' | 'comp3d';
|
|
8
|
-
export declare function getTag(type: string, subtype: string): Tag;
|
|
9
|
-
export type ZItem = {
|
|
10
|
-
value: string;
|
|
11
|
-
title: string;
|
|
12
|
-
};
|
|
13
|
-
type ZTypeBase = {
|
|
14
|
-
value: string;
|
|
15
|
-
title: string;
|
|
16
|
-
validator: (v: unknown) => boolean;
|
|
17
|
-
};
|
|
18
|
-
type ZTypeWord = {
|
|
19
|
-
trait: 'word';
|
|
20
|
-
default: string;
|
|
21
|
-
} & ZTypeBase;
|
|
22
|
-
type ZTypePixel = {
|
|
23
|
-
trait: 'pixel';
|
|
24
|
-
precision?: number;
|
|
25
|
-
min?: number;
|
|
26
|
-
max?: number;
|
|
27
|
-
step?: number;
|
|
28
|
-
default: string;
|
|
29
|
-
} & ZTypeBase;
|
|
30
|
-
type ZTypePercent = {
|
|
31
|
-
trait: 'percent';
|
|
32
|
-
precision?: number;
|
|
33
|
-
min?: number;
|
|
34
|
-
max?: number;
|
|
35
|
-
step?: number;
|
|
36
|
-
default: string;
|
|
37
|
-
} & ZTypeBase;
|
|
38
|
-
type ZTypeHexColor = {
|
|
39
|
-
trait: 'hexColor';
|
|
40
|
-
default: string;
|
|
41
|
-
} & ZTypeBase;
|
|
42
|
-
type ZTypeThemeColor = {
|
|
43
|
-
trait: 'themeColor';
|
|
44
|
-
default: string;
|
|
45
|
-
} & ZTypeBase;
|
|
46
|
-
export type ZType = ZTypeWord | ZTypePixel | ZTypePercent | ZTypeHexColor | ZTypeThemeColor;
|
|
47
|
-
type ZPropertyBranch = {
|
|
48
|
-
key: string;
|
|
49
|
-
name: string;
|
|
50
|
-
ui?: undefined;
|
|
51
|
-
children: ZProperty[];
|
|
52
|
-
default?: undefined;
|
|
53
|
-
};
|
|
54
|
-
type ZPropertyBase = {
|
|
55
|
-
key: string;
|
|
56
|
-
name: string;
|
|
57
|
-
readonly?: boolean;
|
|
58
|
-
static?: boolean;
|
|
59
|
-
value?: any;
|
|
60
|
-
};
|
|
61
|
-
type ZPropertyDummy = {
|
|
62
|
-
ui: 'dummy';
|
|
63
|
-
default: any;
|
|
64
|
-
} & ZPropertyBase;
|
|
65
|
-
type ZPropertyStrInput = {
|
|
66
|
-
ui: 'strInput';
|
|
67
|
-
default: string;
|
|
68
|
-
} & ZPropertyBase;
|
|
69
|
-
type ZPropertyNumInput = {
|
|
70
|
-
ui: 'numInput';
|
|
71
|
-
precision?: number;
|
|
72
|
-
min?: number;
|
|
73
|
-
max?: number;
|
|
74
|
-
step?: number;
|
|
75
|
-
default: number;
|
|
76
|
-
} & ZPropertyBase;
|
|
77
|
-
type ZPropertySwitch = {
|
|
78
|
-
ui: 'switch';
|
|
79
|
-
default: boolean;
|
|
80
|
-
} & ZPropertyBase;
|
|
81
|
-
type ZPropertySelect = {
|
|
82
|
-
ui: 'select';
|
|
83
|
-
items: 'alignTabsItemsV1' | 'axisTypeItemsV1' | 'borderStyleItemsV1' | 'densityItemsV1' | 'directionItemsV1' | 'fieldVariantItemsV1' | 'flexCrossAlignItemsV1' | 'flexDirectionItemsV1' | 'flexMainAlignItemsV1' | 'flexWrapItemsV1' | 'fontWeightItemsV1' | 'sheetVariantItemsV1' | 'showTicksItemsV1' | 'sizeItemsV1' | 'speedDialOpenWayItemsV1' | 'textAlignItemsV1' | 'textDecorationItemsV1' | 'textEmphasisItemsV1' | 'textSizeItemsV1' | 'thumbLabelItemsV1' | 'timelineAlignItemsV1' | 'timelineDirectionItemsV1' | 'timelineSideItemsV1' | 'timelineTruncateLineItemsV1';
|
|
84
|
-
default: string;
|
|
85
|
-
} & ZPropertyBase;
|
|
86
|
-
type ZPropertyColorPicker = {
|
|
87
|
-
ui: 'colorPicker';
|
|
88
|
-
default: string;
|
|
89
|
-
} & ZPropertyBase;
|
|
90
|
-
type ZPropertyJsonEditor = {
|
|
91
|
-
ui: 'jsonEditor';
|
|
92
|
-
default: string;
|
|
93
|
-
} & ZPropertyBase;
|
|
94
|
-
type ZPropertyMultiTypes = {
|
|
95
|
-
ui: 'multiTypes';
|
|
96
|
-
types: 'borderWidthTypesV1' | 'colorTypesV1' | 'leftRightTypesV1' | 'marginTypesV1' | 'paddingTypesV1' | 'sizeTypesV1' | 'tableColumnAlignTypesV1' | 'topBottomTypesV1';
|
|
97
|
-
default: string;
|
|
98
|
-
} & ZPropertyBase;
|
|
99
|
-
type ZPropertySelectComp = {
|
|
100
|
-
ui: 'selectComp';
|
|
101
|
-
default: string;
|
|
102
|
-
} & ZPropertyBase;
|
|
103
|
-
type ZPropertySelectSlot = {
|
|
104
|
-
ui: 'selectSlot';
|
|
105
|
-
default: string;
|
|
106
|
-
} & ZPropertyBase;
|
|
107
|
-
type ZPropertySelectAdaptSlot = {
|
|
108
|
-
ui: 'selectAdaptSlot';
|
|
109
|
-
default: string;
|
|
110
|
-
} & ZPropertyBase;
|
|
111
|
-
export type ZProperty = ({
|
|
112
|
-
array?: false;
|
|
113
|
-
} & ZPropertyBranch) | ({
|
|
114
|
-
array: true;
|
|
115
|
-
defaultArray: any[];
|
|
116
|
-
} & ZPropertyBranch) | ({
|
|
117
|
-
array?: false;
|
|
118
|
-
} & ZPropertyDummy) | ({
|
|
119
|
-
array: true;
|
|
120
|
-
defaultArray: any[];
|
|
121
|
-
} & ZPropertyDummy) | ({
|
|
122
|
-
array?: false;
|
|
123
|
-
} & ZPropertyStrInput) | ({
|
|
124
|
-
array: true;
|
|
125
|
-
defaultArray: string[];
|
|
126
|
-
} & ZPropertyStrInput) | ({
|
|
127
|
-
array?: false;
|
|
128
|
-
} & ZPropertyNumInput) | ({
|
|
129
|
-
array: true;
|
|
130
|
-
defaultArray: number[];
|
|
131
|
-
} & ZPropertyNumInput) | ({
|
|
132
|
-
array?: false;
|
|
133
|
-
} & ZPropertySwitch) | ({
|
|
134
|
-
array: true;
|
|
135
|
-
defaultArray: boolean[];
|
|
136
|
-
} & ZPropertySwitch) | ({
|
|
137
|
-
array?: false;
|
|
138
|
-
} & ZPropertySelect) | ({
|
|
139
|
-
array: true;
|
|
140
|
-
defaultArray: string[];
|
|
141
|
-
} & ZPropertySelect) | ({
|
|
142
|
-
array?: false;
|
|
143
|
-
} & ZPropertyColorPicker) | ({
|
|
144
|
-
array: true;
|
|
145
|
-
defaultArray: string[];
|
|
146
|
-
} & ZPropertyColorPicker) | ({
|
|
147
|
-
array?: false;
|
|
148
|
-
} & ZPropertyJsonEditor) | ({
|
|
149
|
-
array: true;
|
|
150
|
-
defaultArray: string[];
|
|
151
|
-
} & ZPropertyJsonEditor) | ({
|
|
152
|
-
array?: false;
|
|
153
|
-
} & ZPropertyMultiTypes) | ({
|
|
154
|
-
array: true;
|
|
155
|
-
defaultArray: string[];
|
|
156
|
-
} & ZPropertyMultiTypes) | ({
|
|
157
|
-
array?: false;
|
|
158
|
-
} & ZPropertySelectComp) | ({
|
|
159
|
-
array: true;
|
|
160
|
-
defaultArray: string[];
|
|
161
|
-
} & ZPropertySelectComp) | ({
|
|
162
|
-
array?: false;
|
|
163
|
-
} & ZPropertySelectSlot) | ({
|
|
164
|
-
array: true;
|
|
165
|
-
defaultArray: string[];
|
|
166
|
-
} & ZPropertySelectSlot) | ({
|
|
167
|
-
array?: false;
|
|
168
|
-
} & ZPropertySelectAdaptSlot) | ({
|
|
169
|
-
array: true;
|
|
170
|
-
defaultArray: string[];
|
|
171
|
-
} & ZPropertySelectAdaptSlot);
|
|
172
|
-
export type ZMethod = {
|
|
173
|
-
key: string;
|
|
174
|
-
name: string;
|
|
175
|
-
inputs?: {
|
|
176
|
-
key: string;
|
|
177
|
-
name: string;
|
|
178
|
-
type: Type;
|
|
179
|
-
desc?: string;
|
|
180
|
-
}[];
|
|
181
|
-
outputs?: {
|
|
182
|
-
key: string;
|
|
183
|
-
name: string;
|
|
184
|
-
type: Type;
|
|
185
|
-
desc?: string;
|
|
186
|
-
}[];
|
|
187
|
-
desc?: string;
|
|
188
|
-
};
|
|
189
|
-
export type ZEvent = {
|
|
190
|
-
key: string;
|
|
191
|
-
name: string;
|
|
192
|
-
params?: {
|
|
193
|
-
key: string;
|
|
194
|
-
name: string;
|
|
195
|
-
type: Type;
|
|
196
|
-
desc?: string;
|
|
197
|
-
}[];
|
|
198
|
-
desc?: string;
|
|
199
|
-
};
|
|
200
|
-
export type ZSlotProperty = {
|
|
201
|
-
key: string;
|
|
202
|
-
name: string;
|
|
203
|
-
type: Type;
|
|
204
|
-
readonly?: boolean;
|
|
205
|
-
desc?: string;
|
|
206
|
-
};
|
|
207
|
-
export type ZSlotMethod = {
|
|
208
|
-
key: string;
|
|
209
|
-
name: string;
|
|
210
|
-
inputs?: {
|
|
211
|
-
key: string;
|
|
212
|
-
name: string;
|
|
213
|
-
type: Type;
|
|
214
|
-
desc?: string;
|
|
215
|
-
}[];
|
|
216
|
-
outputs?: {
|
|
217
|
-
key: string;
|
|
218
|
-
name: string;
|
|
219
|
-
type: Type;
|
|
220
|
-
desc?: string;
|
|
221
|
-
}[];
|
|
222
|
-
desc?: string;
|
|
223
|
-
};
|
|
224
|
-
export type ZSlotEvent = {
|
|
225
|
-
key: string;
|
|
226
|
-
name: string;
|
|
227
|
-
params?: {
|
|
228
|
-
key: string;
|
|
229
|
-
name: string;
|
|
230
|
-
type: Type;
|
|
231
|
-
desc?: string;
|
|
232
|
-
}[];
|
|
233
|
-
desc?: string;
|
|
234
|
-
};
|
|
235
|
-
export type ZSlot = {
|
|
236
|
-
key: string;
|
|
237
|
-
name: string;
|
|
238
|
-
multiple?: boolean;
|
|
239
|
-
properties?: ZSlotProperty[];
|
|
240
|
-
methods?: ZSlotMethod[];
|
|
241
|
-
events?: ZSlotEvent[];
|
|
242
|
-
desc?: string;
|
|
243
|
-
};
|
|
244
|
-
export declare const elementKeys: readonly ["globality_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_badge_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_btn_toggle_entry_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_fab_v1", "ui_file_input_v1", "ui_flex_layout_v1", "ui_flex_layout_entry_v1", "ui_form_v1", "ui_icon_v1", "ui_line_chart_v1", "ui_menu_v1", "ui_number_input_v1", "ui_pagination_v1", "ui_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_select_v1", "ui_sheet_v1", "ui_slider_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_window_v1", "ui_window_item_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"];
|
|
245
|
-
export type ZElementKey = (typeof elementKeys)[number];
|
|
246
|
-
export type ZElement = {
|
|
247
|
-
key: ZElementKey;
|
|
248
|
-
name: string;
|
|
249
|
-
comp: any;
|
|
250
|
-
properties: {
|
|
251
|
-
[key in Tag]?: ZProperty[];
|
|
252
|
-
};
|
|
253
|
-
methods?: ZMethod[];
|
|
254
|
-
events?: ZEvent[];
|
|
255
|
-
slots?: ZSlot[];
|
|
256
|
-
leaf?: boolean;
|
|
257
|
-
internal?: boolean;
|
|
258
|
-
teleport?: boolean;
|
|
259
|
-
spawn?: (type: string, subtype: string, ...params: any[]) => NodePair;
|
|
260
|
-
};
|
|
261
|
-
export type ZElements = {
|
|
262
|
-
[key: string]: ZElement;
|
|
263
|
-
};
|
|
264
|
-
export type ZGroup = {
|
|
265
|
-
key: string;
|
|
266
|
-
name: string;
|
|
267
|
-
items: ZElementKey[];
|
|
268
|
-
};
|
|
269
|
-
export type ZPkg = {
|
|
270
|
-
version: string;
|
|
271
|
-
globalityKey: ZElementKey;
|
|
272
|
-
refKey: ZElementKey;
|
|
273
|
-
items: {
|
|
274
|
-
[key: string]: ZItem[];
|
|
275
|
-
};
|
|
276
|
-
types: {
|
|
277
|
-
[key: string]: ZType[];
|
|
278
|
-
};
|
|
279
|
-
elements: Set<string>;
|
|
280
|
-
groups: {
|
|
281
|
-
[tag: string]: ZGroup[];
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
export type ZPkgs = {
|
|
285
|
-
[key: string]: ZPkg;
|
|
286
|
-
};
|
|
287
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|