x-runtime-lib 0.9.25 → 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/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/inlineSlot/v1/spawn.d.ts +2 -2
- 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.i5exmkwv.js → i18n-en.d77xnpwk.js} +1 -0
- package/dist/{i18n-zhHans.ma93zsw5.js → i18n-zhHans.ru0mxxmi.js} +1 -0
- package/dist/index.js +1554 -1543
- package/dist/meta/element.d.ts +7 -3
- 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/package.json +1 -1
- package/dist/element/ui/dialog/v1/spawn.d.ts +0 -2
package/dist/meta/element.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
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"];
|
|
@@ -76,7 +76,11 @@ export type ZSlot = {
|
|
|
76
76
|
events?: ZSlotEvent[];
|
|
77
77
|
desc?: string;
|
|
78
78
|
};
|
|
79
|
-
export
|
|
79
|
+
export interface ZSpawnResult {
|
|
80
|
+
nodePairs: NodePair[];
|
|
81
|
+
blockStates?: BlockState[];
|
|
82
|
+
}
|
|
83
|
+
export type ZSpawnFunc = (type: string, subtype: string, ...params: any[]) => ZSpawnResult;
|
|
80
84
|
export type ZElement = {
|
|
81
85
|
key: ZElementKey;
|
|
82
86
|
name: string;
|
|
@@ -91,8 +95,8 @@ export type ZElement = {
|
|
|
91
95
|
internal?: boolean;
|
|
92
96
|
teleport?: boolean;
|
|
93
97
|
spawn?: ZSpawnFunc | {
|
|
94
|
-
name: string;
|
|
95
98
|
func: ZSpawnFunc;
|
|
99
|
+
desc?: string;
|
|
96
100
|
}[];
|
|
97
101
|
};
|
|
98
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/package.json
CHANGED