x-runtime-lib 0.9.18 → 0.9.20
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/hover/v1/index.vue.d.ts +14 -0
- package/dist/components/element/ui/index.d.ts +2 -1
- package/dist/components/element/ui/tooltip/v1/index.vue.d.ts +3 -1
- package/dist/composables/element/core/elementPropertyBreakpoint.d.ts +1 -1
- package/dist/composables/element/core/elementPropertyEager.d.ts +5 -0
- package/dist/composables/element/core/index.d.ts +1 -0
- package/dist/element/ui/hover/v1/index.d.ts +1 -0
- package/dist/element/ui/hover/v1/spawn.d.ts +2 -0
- package/dist/element/ui/index.d.ts +1 -0
- package/dist/{i18n-en.c4o3ow1m.js → i18n-en.l6hoh6hn.js} +2 -0
- package/dist/{i18n-zhHans.ooj6bjm3.js → i18n-zhHans.cp2lj423.js} +2 -0
- package/dist/index.js +2355 -2296
- package/dist/meta/element.d.ts +1 -1
- package/dist/meta/property.d.ts +31 -1
- package/dist/utils/property.d.ts +1 -1
- package/dist/utils/render.d.ts +2 -6
- package/package.json +1 -1
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_group_v1", "render_switch_v1", "slot_v1", "ui_activator_v1", "ui_badge_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_combobox_v1", "ui_container_v1", "ui_data_table_client_v1", "ui_data_table_server_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_item_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_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_select_v1", "ui_sheet_v1", "ui_slider_v1", "ui_slide_group_v1", "ui_slide_group_item_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_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"];
|
|
5
|
+
export declare const elementKeys: readonly ["globality_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_group_v1", "render_switch_v1", "slot_v1", "ui_activator_v1", "ui_badge_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_combobox_v1", "ui_container_v1", "ui_data_table_client_v1", "ui_data_table_server_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_hover_v1", "ui_icon_v1", "ui_item_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_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_select_v1", "ui_sheet_v1", "ui_slider_v1", "ui_slide_group_v1", "ui_slide_group_item_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_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/dist/meta/property.d.ts
CHANGED
|
@@ -13,6 +13,36 @@ type ZPropertyBase = {
|
|
|
13
13
|
static?: boolean;
|
|
14
14
|
value?: any;
|
|
15
15
|
};
|
|
16
|
+
type ZPropertyTempString = {
|
|
17
|
+
ui: 'temp';
|
|
18
|
+
type: 'string';
|
|
19
|
+
default: string;
|
|
20
|
+
} & ZPropertyBase;
|
|
21
|
+
type ZPropertyTempNumber = {
|
|
22
|
+
ui: 'temp';
|
|
23
|
+
type: 'number';
|
|
24
|
+
default: number;
|
|
25
|
+
} & ZPropertyBase;
|
|
26
|
+
type ZPropertyTempBoolean = {
|
|
27
|
+
ui: 'temp';
|
|
28
|
+
type: 'boolean';
|
|
29
|
+
default: boolean;
|
|
30
|
+
} & ZPropertyBase;
|
|
31
|
+
type ZPropertyTempObject = {
|
|
32
|
+
ui: 'temp';
|
|
33
|
+
type: 'object';
|
|
34
|
+
default: object;
|
|
35
|
+
} & ZPropertyBase;
|
|
36
|
+
type ZPropertyTempArray = {
|
|
37
|
+
ui: 'temp';
|
|
38
|
+
type: 'array';
|
|
39
|
+
default: object;
|
|
40
|
+
} & ZPropertyBase;
|
|
41
|
+
type ZPropertyTempAny = {
|
|
42
|
+
ui: 'temp';
|
|
43
|
+
type: 'any';
|
|
44
|
+
default: any;
|
|
45
|
+
} & ZPropertyBase;
|
|
16
46
|
type ZPropertyDummy = {
|
|
17
47
|
ui: 'dummy';
|
|
18
48
|
default: any;
|
|
@@ -76,5 +106,5 @@ export type ZProperty = ({
|
|
|
76
106
|
} & ZPropertyBranch) | ({
|
|
77
107
|
array: true;
|
|
78
108
|
defaultArray: any[];
|
|
79
|
-
} & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyStrInput> | WithArray<ZPropertyNumInput> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyColorPicker> | WithArray<ZPropertyJsonEditor> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertySelectComp> | WithArray<ZPropertySelectSlot> | WithArray<ZPropertyStrInput> | WithArray<ZPropertySelectAdaptSlot>;
|
|
109
|
+
} & ZPropertyBranch) | WithArray<ZPropertyTempString> | WithArray<ZPropertyTempNumber> | WithArray<ZPropertyTempBoolean> | WithArray<ZPropertyTempObject> | WithArray<ZPropertyTempArray> | WithArray<ZPropertyTempAny> | WithArray<ZPropertyDummy> | WithArray<ZPropertyStrInput> | WithArray<ZPropertyNumInput> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyColorPicker> | WithArray<ZPropertyJsonEditor> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertySelectComp> | WithArray<ZPropertySelectSlot> | WithArray<ZPropertyStrInput> | WithArray<ZPropertySelectAdaptSlot>;
|
|
80
110
|
export {};
|
package/dist/utils/property.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from '@/meta';
|
|
2
2
|
import { Node } from '@/types';
|
|
3
|
-
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[];
|
|
3
|
+
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[] | object[];
|
|
4
4
|
export declare function getPropertyDefault(property: ZProperty): any;
|
|
5
5
|
export declare function initProperties(node: Node, properties: ZProperty[]): void;
|
package/dist/utils/render.d.ts
CHANGED
|
@@ -3,11 +3,7 @@ export declare function isRenderSwitch(key: string): boolean;
|
|
|
3
3
|
export declare function isRenderGroup(key: string): boolean;
|
|
4
4
|
export declare function hasSlot(key: string): boolean;
|
|
5
5
|
export declare function hasComp(key: string): boolean;
|
|
6
|
-
export declare function
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export declare function toRenderSlots(groups: {
|
|
10
|
-
[key: string]: any[];
|
|
11
|
-
}): {
|
|
6
|
+
export declare function toRenderDefault(children: NodeLite[] | undefined, renderNode: (n: NodeLite, ...params: any[]) => any, ...params: any[]): any[];
|
|
7
|
+
export declare function toRenderSlots(children: NodeLite[] | undefined, renderNode: (n: NodeLite, ...params: any[]) => any, ...params: any[]): {
|
|
12
8
|
[key: string]: any;
|
|
13
9
|
};
|