x-runtime-lib 0.9.24 → 0.9.26
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/dynamic/index.d.ts +2 -2
- package/dist/composables/element/core/elementBase.d.ts +1 -1
- package/dist/element/3d/camera/orthographicCamera/v1/spawn.d.ts +2 -2
- package/dist/element/3d/camera/perspectiveCamera/v1/spawn.d.ts +2 -2
- package/dist/element/3d/controls/keyboardControls/v1/spawn.d.ts +2 -2
- package/dist/element/3d/controls/mapControls/v1/spawn.d.ts +2 -2
- package/dist/element/3d/controls/orbitControls/v1/spawn.d.ts +2 -2
- package/dist/element/3d/geometry/boxGeometry/v1/spawn.d.ts +2 -2
- package/dist/element/3d/geometry/sphereGeometry/v1/spawn.d.ts +2 -2
- package/dist/element/3d/light/ambientLight/v1/spawn.d.ts +2 -2
- package/dist/element/3d/light/directionalLight/v1/spawn.d.ts +2 -2
- package/dist/element/3d/light/pointLight/v1/spawn.d.ts +2 -2
- package/dist/element/3d/light/spotLight/v1/spawn.d.ts +2 -2
- package/dist/element/3d/object/group/v1/spawn.d.ts +2 -2
- package/dist/element/3d/object/mesh/v1/spawn.d.ts +2 -2
- package/dist/element/chart/barChart/v1/spawn.d.ts +2 -2
- package/dist/element/chart/lineChart/v1/spawn.d.ts +2 -2
- package/dist/element/dynamic/index.d.ts +1 -1
- package/dist/element/dynamic/inlineSlot/v1/spawn.d.ts +2 -0
- package/dist/element/dynamic/multipleRef/v1/spawn.d.ts +2 -2
- package/dist/element/dynamic/multipleSlot/v1/spawn.d.ts +2 -2
- package/dist/element/dynamic/ref/v1/spawn.d.ts +2 -2
- package/dist/element/dynamic/renderSwitch/v1/spawn.d.ts +2 -2
- package/dist/element/dynamic/slot/v1/spawn.d.ts +2 -2
- package/dist/element/ui/badge/v1/spawn.d.ts +2 -2
- package/dist/element/ui/breadcrumbs/v1/spawn.d.ts +2 -2
- package/dist/element/ui/btn/v1/spawn.d.ts +2 -2
- package/dist/element/ui/btnToggle/v1/spawn.d.ts +2 -2
- package/dist/element/ui/card/v1/spawn.d.ts +2 -2
- package/dist/element/ui/checkbox/v1/spawn.d.ts +2 -2
- package/dist/element/ui/chip/v1/spawn.d.ts +2 -2
- package/dist/element/ui/chipGroup/v1/spawn.d.ts +2 -2
- package/dist/element/ui/combobox/v1/spawn.d.ts +2 -2
- package/dist/element/ui/container/v1/spawn.d.ts +2 -2
- package/dist/element/ui/dataTableClient/v1/spawn.d.ts +2 -2
- package/dist/element/ui/dataTableServer/v1/spawn.d.ts +2 -2
- package/dist/element/ui/dialog/v1/spawn1.d.ts +2 -0
- package/dist/element/ui/dialog/v1/spawn2.d.ts +2 -0
- package/dist/element/ui/fab/v1/spawn.d.ts +2 -2
- package/dist/element/ui/fileInput/v1/spawn.d.ts +2 -2
- package/dist/element/ui/flexbox/v1/spawn.d.ts +2 -2
- package/dist/element/ui/form/v1/spawn.d.ts +2 -2
- package/dist/element/ui/hover/v1/spawn.d.ts +2 -2
- package/dist/element/ui/icon/v1/spawn.d.ts +2 -2
- package/dist/element/ui/itemGroup/v1/spawn.d.ts +2 -2
- package/dist/element/ui/list/v1/spawn.d.ts +2 -2
- package/dist/element/ui/menu/v1/spawn.d.ts +2 -2
- package/dist/element/ui/numberInput/v1/spawn.d.ts +2 -2
- package/dist/element/ui/optInput/v1/spawn.d.ts +2 -2
- package/dist/element/ui/pagination/v1/spawn.d.ts +2 -2
- package/dist/element/ui/positioner/v1/spawn.d.ts +2 -2
- package/dist/element/ui/radioGroup/v1/spawn.d.ts +2 -2
- package/dist/element/ui/rangeSlider/v1/spawn.d.ts +2 -2
- package/dist/element/ui/rating/v1/spawn.d.ts +2 -2
- package/dist/element/ui/select/v1/spawn.d.ts +2 -2
- package/dist/element/ui/sheet/v1/spawn.d.ts +2 -2
- package/dist/element/ui/slideGroup/v1/spawn.d.ts +2 -2
- package/dist/element/ui/slider/v1/spawn.d.ts +2 -2
- package/dist/element/ui/speedDial/v1/spawn.d.ts +2 -2
- package/dist/element/ui/stepper/v1/spawn.d.ts +2 -2
- package/dist/element/ui/switch/v1/spawn.d.ts +2 -2
- package/dist/element/ui/table/v1/spawn.d.ts +2 -2
- package/dist/element/ui/tabs/v1/spawn.d.ts +2 -2
- package/dist/element/ui/text/v1/spawn.d.ts +2 -2
- package/dist/element/ui/textField/v1/spawn.d.ts +2 -2
- package/dist/element/ui/textarea/v1/spawn.d.ts +2 -2
- package/dist/element/ui/timeline/v1/spawn.d.ts +2 -2
- package/dist/element/ui/tooltip/v1/spawn.d.ts +2 -2
- package/dist/element/ui/window/v1/spawn.d.ts +2 -2
- package/dist/{i18n-en.jnth2scb.js → i18n-en.d77xnpwk.js} +2 -1
- package/dist/{i18n-zhHans.lg0rse69.js → i18n-zhHans.ru0mxxmi.js} +2 -1
- package/dist/index.js +2304 -2455
- package/dist/meta/element.d.ts +9 -9
- package/dist/meta/property.d.ts +5 -1
- package/dist/types/block.d.ts +30 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/render.d.ts +3 -1
- package/package.json +1 -1
- package/dist/element/dynamic/renderGroup/v1/spawn.d.ts +0 -2
- package/dist/element/ui/dialog/v1/spawn.d.ts +0 -2
- /package/dist/components/element/dynamic/{renderGroup → inlineSlot}/v1/index.vue.d.ts +0 -0
- /package/dist/element/dynamic/{renderGroup → inlineSlot}/v1/index.d.ts +0 -0
package/dist/meta/element.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type } from 'x-essential-lib';
|
|
2
|
-
import { NodePair } from '@/types';
|
|
2
|
+
import { BlockState, NodePair } from '@/types';
|
|
3
3
|
import { Tag } from './base';
|
|
4
4
|
import { ZProperty } from './property';
|
|
5
|
-
export declare const elementKeys: readonly ["globality_v1", "
|
|
5
|
+
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_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;
|
|
@@ -32,10 +32,6 @@ export type ZEvent = {
|
|
|
32
32
|
}[];
|
|
33
33
|
desc?: string;
|
|
34
34
|
};
|
|
35
|
-
export type ZSpeedSlot = {
|
|
36
|
-
key: string;
|
|
37
|
-
name: string;
|
|
38
|
-
};
|
|
39
35
|
export type ZSlotProperty = {
|
|
40
36
|
key: string;
|
|
41
37
|
name: string;
|
|
@@ -80,7 +76,11 @@ export type ZSlot = {
|
|
|
80
76
|
events?: ZSlotEvent[];
|
|
81
77
|
desc?: string;
|
|
82
78
|
};
|
|
83
|
-
export
|
|
79
|
+
export interface ZSpawnResult {
|
|
80
|
+
nodePairs: NodePair[];
|
|
81
|
+
blockStates?: BlockState[];
|
|
82
|
+
}
|
|
83
|
+
export type ZSpawnFunc = (type: string, subtype: string, ...params: any[]) => ZSpawnResult;
|
|
84
84
|
export type ZElement = {
|
|
85
85
|
key: ZElementKey;
|
|
86
86
|
name: string;
|
|
@@ -90,13 +90,13 @@ export type ZElement = {
|
|
|
90
90
|
};
|
|
91
91
|
methods?: ZMethod[];
|
|
92
92
|
events?: ZEvent[];
|
|
93
|
-
|
|
93
|
+
inlineSlots?: string[];
|
|
94
94
|
slots?: ZSlot[];
|
|
95
95
|
internal?: boolean;
|
|
96
96
|
teleport?: boolean;
|
|
97
97
|
spawn?: ZSpawnFunc | {
|
|
98
|
-
name: string;
|
|
99
98
|
func: ZSpawnFunc;
|
|
99
|
+
desc?: string;
|
|
100
100
|
}[];
|
|
101
101
|
};
|
|
102
102
|
export declare function regElement(element: ZElement): void;
|
package/dist/meta/property.d.ts
CHANGED
|
@@ -64,6 +64,10 @@ type ZPropertySelectAdaptSlot = {
|
|
|
64
64
|
ui: 'selectAdaptSlot';
|
|
65
65
|
default: string;
|
|
66
66
|
} & ZPropertyBase;
|
|
67
|
+
type ZPropertySelectInlineSlot = {
|
|
68
|
+
ui: 'selectInlineSlot';
|
|
69
|
+
default: string;
|
|
70
|
+
} & ZPropertyBase;
|
|
67
71
|
type ZPropertyRuntime<T extends Type> = {
|
|
68
72
|
ui: 'runtime';
|
|
69
73
|
type: T;
|
|
@@ -100,5 +104,5 @@ export type ZProperty = ({
|
|
|
100
104
|
} & ZPropertyBranch) | ({
|
|
101
105
|
array: true;
|
|
102
106
|
defaultArray: any[];
|
|
103
|
-
} & 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> | WithArray<ZPropertyRuntime<Type>>;
|
|
107
|
+
} & 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> | WithArray<ZPropertySelectInlineSlot> | WithArray<ZPropertyRuntime<Type>>;
|
|
104
108
|
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface ConnectionState {
|
|
2
|
+
shadow?: BlockState;
|
|
3
|
+
block?: BlockState;
|
|
4
|
+
}
|
|
5
|
+
export interface BlockState {
|
|
6
|
+
type: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
|
+
collapsed?: boolean;
|
|
11
|
+
deletable?: boolean;
|
|
12
|
+
movable?: boolean;
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
disabledReasons?: string[];
|
|
16
|
+
inline?: boolean;
|
|
17
|
+
data?: string;
|
|
18
|
+
extraState?: any;
|
|
19
|
+
icons?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
fields?: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
inputs?: {
|
|
26
|
+
[key: string]: ConnectionState;
|
|
27
|
+
};
|
|
28
|
+
next?: ConnectionState;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
package/dist/utils/render.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ZElement } from '@/meta';
|
|
1
2
|
import { NodeLite } from '@/types';
|
|
2
3
|
export declare function isRenderSwitch(key: string): boolean;
|
|
3
|
-
export declare function
|
|
4
|
+
export declare function isInlineSlot(key: string): boolean;
|
|
5
|
+
export declare function hasInlineSlot(element: ZElement): boolean | undefined;
|
|
4
6
|
export declare function hasSlot(key: string): boolean;
|
|
5
7
|
export declare function hasComp(key: string): boolean;
|
|
6
8
|
export declare function toRenderDefault(children: NodeLite[] | undefined, renderNode: (n: NodeLite, ...params: any[]) => any, ...params: any[]): any[];
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|