x-runtime-lib 0.9.33 → 0.9.35
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.
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime.jd1hion4.js";
|
|
2
2
|
//#region src/i18n/locales/en/index.ts
|
|
3
3
|
var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
4
|
+
0: "0",
|
|
5
|
+
1: "1",
|
|
6
|
+
2: "2",
|
|
7
|
+
3: "3",
|
|
8
|
+
4: "4",
|
|
9
|
+
5: "5",
|
|
4
10
|
absolute: "Absolute",
|
|
5
11
|
accordion: "Accordion",
|
|
6
12
|
activator: "Activator",
|
|
13
|
+
activeColor: "Active Color",
|
|
7
14
|
adaptSlot: "Adapt Slot",
|
|
8
15
|
adaptSlotPropertyChange: "Adapt Slot Property Change",
|
|
9
16
|
add: "Add",
|
|
10
|
-
addIcon: "Add Icon",
|
|
11
17
|
alias: "Alias",
|
|
12
18
|
align: "Align",
|
|
13
19
|
alignTabs: "Align Tabs",
|
|
@@ -20,7 +26,6 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
20
26
|
appendInnerIcon: "Append Inner Icon",
|
|
21
27
|
aspectRatio: "Aspect Ratio",
|
|
22
28
|
auto: "Auto",
|
|
23
|
-
autofocus: "Autofocus",
|
|
24
29
|
autoGrow: "Auto Grow",
|
|
25
30
|
background0: "Background 0",
|
|
26
31
|
background1: "Background 1",
|
|
@@ -28,6 +33,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
28
33
|
backgroundColor: "Background Color",
|
|
29
34
|
badge: "Badge",
|
|
30
35
|
barChart: "Bar Chart",
|
|
36
|
+
baseColor: "Base Color",
|
|
31
37
|
baseline: "Baseline",
|
|
32
38
|
basic: "Basic",
|
|
33
39
|
black: "Black",
|
|
@@ -59,6 +65,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
59
65
|
chipGroup: "Chip Group",
|
|
60
66
|
circle: "Circle",
|
|
61
67
|
circularReference: "Circular Reference",
|
|
68
|
+
clear: "Clear",
|
|
62
69
|
clearable: "Clearable",
|
|
63
70
|
click: "Click",
|
|
64
71
|
clickAppend: "Click Append",
|
|
@@ -84,6 +91,9 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
84
91
|
content: "Content",
|
|
85
92
|
continuous: "Continuous",
|
|
86
93
|
controls: "Controls",
|
|
94
|
+
controlVariant: "Control Variant",
|
|
95
|
+
count: "Count",
|
|
96
|
+
counter: "Counter",
|
|
87
97
|
crossAlign: "Cross Align",
|
|
88
98
|
custom: "Custom",
|
|
89
99
|
customPropertyChange: "Custom Property Change",
|
|
@@ -104,6 +114,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
104
114
|
depth: "Depth",
|
|
105
115
|
depthSegments: "Depth Segments",
|
|
106
116
|
detail: "Detail",
|
|
117
|
+
details: "Details",
|
|
107
118
|
dialog: "Dialog",
|
|
108
119
|
direction: "Direction",
|
|
109
120
|
directionalLight: "Directional Light",
|
|
@@ -113,6 +124,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
113
124
|
displaySmall: "Display Small",
|
|
114
125
|
distance: "Distance",
|
|
115
126
|
divided: "Divided",
|
|
127
|
+
divider: "Divider",
|
|
116
128
|
dot: "Dot",
|
|
117
129
|
dotted: "Dotted",
|
|
118
130
|
double: "Double",
|
|
@@ -122,6 +134,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
122
134
|
elevated: "Elevated",
|
|
123
135
|
elevation: "Elevation",
|
|
124
136
|
emphasis: "Emphasis",
|
|
137
|
+
enable: "Enable",
|
|
125
138
|
end: "End",
|
|
126
139
|
error: "Error",
|
|
127
140
|
expansionPanel: "Expansion Panel",
|
|
@@ -161,16 +174,23 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
161
174
|
headlineSmall: "Headline Small",
|
|
162
175
|
height: "Height",
|
|
163
176
|
heightSegments: "Height Segments",
|
|
177
|
+
hidden: "Hidden",
|
|
178
|
+
hide: "Hide",
|
|
164
179
|
hideActions: "Hide Actions",
|
|
165
180
|
hideDetails: "Hide Details",
|
|
166
181
|
hideOppoSite: "Hide Opposite",
|
|
167
182
|
hideSlider: "Hide Slider",
|
|
168
183
|
high: "High",
|
|
184
|
+
hint: "Hint",
|
|
169
185
|
horizontal: "Horizontal",
|
|
170
186
|
hover: "Hover",
|
|
187
|
+
href: "href",
|
|
171
188
|
icon: "Icon",
|
|
189
|
+
iconColor: "Icon Color",
|
|
172
190
|
id: "ID",
|
|
191
|
+
image: "Image",
|
|
173
192
|
imagesAndIcons: "Images & Icons",
|
|
193
|
+
indeterminate: "Indeterminate",
|
|
174
194
|
info: "Info",
|
|
175
195
|
inline: "Inline",
|
|
176
196
|
inlineSlot: "Inline Slot",
|
|
@@ -178,9 +198,10 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
178
198
|
instance: "Instance",
|
|
179
199
|
instances: "Instances",
|
|
180
200
|
intensity: "Intensity",
|
|
181
|
-
|
|
201
|
+
isDirty: "Is Dirty",
|
|
182
202
|
isFocused: "Is Focused",
|
|
183
203
|
isHovering: "Is Hovering",
|
|
204
|
+
isValid: "Is Valid",
|
|
184
205
|
italic: "Italic",
|
|
185
206
|
item: "Item",
|
|
186
207
|
itemGroup: "Item Group",
|
|
@@ -214,6 +235,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
214
235
|
margin: "Margin",
|
|
215
236
|
masked: "Masked",
|
|
216
237
|
max: "Max",
|
|
238
|
+
maxErrors: "Max Errors",
|
|
217
239
|
maxHeight: "Max Height",
|
|
218
240
|
maxRows: "Max Rows",
|
|
219
241
|
maxWidth: "Max Width",
|
|
@@ -222,6 +244,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
222
244
|
mesh: "Mesh",
|
|
223
245
|
meshBasicMaterial: "Mesh Basic Material",
|
|
224
246
|
message: "Message",
|
|
247
|
+
messages: "Messages",
|
|
225
248
|
middle: "Middle",
|
|
226
249
|
min: "Min",
|
|
227
250
|
minHeight: "Min Height",
|
|
@@ -256,6 +279,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
256
279
|
penumbra: "Penumbra",
|
|
257
280
|
percent: "Percent",
|
|
258
281
|
perspectiveCamera: "Perspective Camera",
|
|
282
|
+
persistent: "Persistent",
|
|
259
283
|
phiLength: "Horizontal End Angle",
|
|
260
284
|
phiStart: "Horizontal Start Angle",
|
|
261
285
|
pickers: "Pickers",
|
|
@@ -331,8 +355,10 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
331
355
|
spaceAround: "Space Around",
|
|
332
356
|
spaceBetween: "Space Between",
|
|
333
357
|
spaceEvenly: "Space Evenly",
|
|
358
|
+
spaced: "Spaced",
|
|
334
359
|
speedDial: "Speed Dial",
|
|
335
360
|
sphereGeometry: "Sphere Geometry",
|
|
361
|
+
split: "Split",
|
|
336
362
|
spotLight: "Spot Light",
|
|
337
363
|
stacked: "Stacked",
|
|
338
364
|
start: "Start",
|
|
@@ -371,11 +397,10 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
371
397
|
thin: "Thin",
|
|
372
398
|
thick: "Thick",
|
|
373
399
|
thickness: "Thickness",
|
|
400
|
+
thumb: "Thumb",
|
|
374
401
|
thumbColor: "Thumb Color",
|
|
375
|
-
|
|
376
|
-
thumbSize: "Thumb Size",
|
|
402
|
+
tick: "Tick",
|
|
377
403
|
ticks: "Ticks",
|
|
378
|
-
tickSize: "Tick Size",
|
|
379
404
|
tile: "Tile",
|
|
380
405
|
time: "Time",
|
|
381
406
|
timeline: "Timeline",
|
|
@@ -391,7 +416,9 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
391
416
|
topRight: "Top Right",
|
|
392
417
|
totalVisiable: "Total Visiable",
|
|
393
418
|
touch: "Touch",
|
|
419
|
+
track: "Track",
|
|
394
420
|
trackColor: "Track Color",
|
|
421
|
+
trackFillColor: "Track Fill Color",
|
|
395
422
|
transform: "Transform",
|
|
396
423
|
true: "True",
|
|
397
424
|
truncate: "Truncate",
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime.jd1hion4.js";
|
|
2
2
|
//#region src/i18n/locales/zhHans/index.ts
|
|
3
3
|
var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
4
|
+
0: "0",
|
|
5
|
+
1: "1",
|
|
6
|
+
2: "2",
|
|
7
|
+
3: "3",
|
|
8
|
+
4: "4",
|
|
9
|
+
5: "5",
|
|
4
10
|
absolute: "绝对",
|
|
5
11
|
accordion: "手风琴",
|
|
6
12
|
activator: "激活器",
|
|
13
|
+
activeColor: "激活颜色",
|
|
7
14
|
adaptSlot: "适配插槽",
|
|
8
15
|
adaptSlotPropertyChange: "适配插槽属性变化",
|
|
9
16
|
add: "添加",
|
|
10
|
-
addIcon: "添加图标",
|
|
11
17
|
alias: "别名",
|
|
12
18
|
align: "对齐",
|
|
13
19
|
alignTabs: "对齐选项卡",
|
|
@@ -20,7 +26,6 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
20
26
|
appendInnerIcon: "后置内部图标",
|
|
21
27
|
aspectRatio: "宽高比",
|
|
22
28
|
auto: "自动",
|
|
23
|
-
autofocus: "自动聚焦",
|
|
24
29
|
autoGrow: "自动增长",
|
|
25
30
|
background0: "背景0",
|
|
26
31
|
background1: "背景1",
|
|
@@ -28,6 +33,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
28
33
|
backgroundColor: "背景颜色",
|
|
29
34
|
badge: "徽章",
|
|
30
35
|
barChart: "柱状图",
|
|
36
|
+
baseColor: "基础颜色",
|
|
31
37
|
baseline: "基线",
|
|
32
38
|
basic: "基本",
|
|
33
39
|
black: "黑",
|
|
@@ -59,6 +65,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
59
65
|
chipGroup: "纸片分组",
|
|
60
66
|
circle: "圆",
|
|
61
67
|
circularReference: "循环引用",
|
|
68
|
+
clear: "清除",
|
|
62
69
|
clearable: "可清除",
|
|
63
70
|
click: "单击",
|
|
64
71
|
clickAppend: "单击追加",
|
|
@@ -84,6 +91,9 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
84
91
|
content: "内容",
|
|
85
92
|
continuous: "连续",
|
|
86
93
|
controls: "控制",
|
|
94
|
+
controlVariant: "控制变种",
|
|
95
|
+
count: "计数",
|
|
96
|
+
counter: "计数器",
|
|
87
97
|
crossAlign: "交叉对齐",
|
|
88
98
|
custom: "自定义",
|
|
89
99
|
customPropertyChange: "自定义属性变化",
|
|
@@ -104,6 +114,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
104
114
|
depth: "深度",
|
|
105
115
|
depthSegments: "深度分段(s)",
|
|
106
116
|
detail: "细节",
|
|
117
|
+
details: "细节(s)",
|
|
107
118
|
dialog: "对话框",
|
|
108
119
|
direction: "方向",
|
|
109
120
|
directionalLight: "平行光",
|
|
@@ -113,6 +124,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
113
124
|
displaySmall: "展示(小)",
|
|
114
125
|
distance: "距离",
|
|
115
126
|
divided: "分开",
|
|
127
|
+
divider: "分割符",
|
|
116
128
|
dot: "点",
|
|
117
129
|
dotted: "点画线",
|
|
118
130
|
double: "双线",
|
|
@@ -122,6 +134,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
122
134
|
elevated: "升高",
|
|
123
135
|
elevation: "海拔",
|
|
124
136
|
emphasis: "强调",
|
|
137
|
+
enable: "启用",
|
|
125
138
|
end: "结束",
|
|
126
139
|
error: "错误",
|
|
127
140
|
expansionPanel: "折叠面板",
|
|
@@ -161,16 +174,23 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
161
174
|
headlineSmall: "头条(小)",
|
|
162
175
|
height: "高度",
|
|
163
176
|
heightSegments: "高度分段(s)",
|
|
177
|
+
hidden: "隐藏",
|
|
178
|
+
hide: "隐藏",
|
|
164
179
|
hideActions: "隐藏动作",
|
|
165
180
|
hideDetails: "隐藏细节",
|
|
166
181
|
hideOpposite: "隐藏对面",
|
|
167
182
|
hideSlider: "隐藏滑动条",
|
|
168
183
|
high: "高",
|
|
184
|
+
hint: "提示",
|
|
169
185
|
horizontal: "水平",
|
|
170
186
|
hover: "悬浮",
|
|
187
|
+
href: "href",
|
|
171
188
|
icon: "图标",
|
|
189
|
+
iconColor: "图标颜色",
|
|
172
190
|
id: "ID",
|
|
191
|
+
image: "图像",
|
|
173
192
|
imagesAndIcons: "图像 & 图标",
|
|
193
|
+
indeterminate: "半选",
|
|
174
194
|
info: "信息",
|
|
175
195
|
inline: "内联",
|
|
176
196
|
inlineSlot: "内联插槽",
|
|
@@ -178,9 +198,10 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
178
198
|
instance: "实例",
|
|
179
199
|
instances: "实例(s)",
|
|
180
200
|
intensity: "强度",
|
|
181
|
-
|
|
201
|
+
isDirty: "是否脏",
|
|
182
202
|
isFocused: "是否聚集",
|
|
183
203
|
isHovering: "是否悬浮",
|
|
204
|
+
isValid: "是否有效",
|
|
184
205
|
italic: "斜体",
|
|
185
206
|
item: "项目",
|
|
186
207
|
itemGroup: "项目分组",
|
|
@@ -214,14 +235,16 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
214
235
|
margin: "外边距",
|
|
215
236
|
masked: "掩码",
|
|
216
237
|
max: "最大值",
|
|
238
|
+
maxErrors: "最大错误数",
|
|
217
239
|
maxHeight: "最大高度",
|
|
218
|
-
maxRows: "
|
|
240
|
+
maxRows: "最大行数",
|
|
219
241
|
maxWidth: "最大宽度",
|
|
220
242
|
medium: "中",
|
|
221
243
|
menu: "菜单",
|
|
222
244
|
mesh: "网格",
|
|
223
245
|
meshBasicMaterial: "网格基本材质",
|
|
224
246
|
message: "消息",
|
|
247
|
+
messages: "消息(s)",
|
|
225
248
|
middle: "中",
|
|
226
249
|
min: "最小值",
|
|
227
250
|
minHeight: "最小高度",
|
|
@@ -256,6 +279,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
256
279
|
penumbra: "边缘",
|
|
257
280
|
percent: "百分比",
|
|
258
281
|
perspectiveCamera: "透视相机",
|
|
282
|
+
persistent: "常驻",
|
|
259
283
|
phiLength: "水平结束角度",
|
|
260
284
|
phiStart: "水平起始角度",
|
|
261
285
|
pickers: "拾取器",
|
|
@@ -298,7 +322,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
298
322
|
rotation: "旋转",
|
|
299
323
|
row: "行",
|
|
300
324
|
rowReverse: "行反向",
|
|
301
|
-
rows: "
|
|
325
|
+
rows: "行数",
|
|
302
326
|
runtime: "运行时",
|
|
303
327
|
scale: "缩放",
|
|
304
328
|
secondary: "次要",
|
|
@@ -331,8 +355,10 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
331
355
|
spaceAround: "环绕",
|
|
332
356
|
spaceBetween: "间隔",
|
|
333
357
|
spaceEvenly: "均匀",
|
|
358
|
+
spaced: "留白",
|
|
334
359
|
speedDial: "快速拨号",
|
|
335
360
|
sphereGeometry: "球形几何体",
|
|
361
|
+
split: "分开",
|
|
336
362
|
spotLight: "聚光灯",
|
|
337
363
|
stacked: "栈式",
|
|
338
364
|
start: "开始",
|
|
@@ -371,11 +397,10 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
371
397
|
thin: "细",
|
|
372
398
|
thick: "粗",
|
|
373
399
|
thickness: "粗细",
|
|
400
|
+
thumb: "拇指",
|
|
374
401
|
thumbColor: "拇指颜色",
|
|
375
|
-
|
|
376
|
-
thumbSize: "拇指大小",
|
|
402
|
+
tick: "刻度",
|
|
377
403
|
ticks: "刻度(s)",
|
|
378
|
-
tickSize: "刻度大小",
|
|
379
404
|
tile: "瓦片",
|
|
380
405
|
time: "时间",
|
|
381
406
|
timeline: "时间线",
|
|
@@ -391,7 +416,9 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
391
416
|
topRight: "顶右",
|
|
392
417
|
totalVisiable: "总可见数",
|
|
393
418
|
touch: "触摸",
|
|
419
|
+
track: "轨道",
|
|
394
420
|
trackColor: "轨道颜色",
|
|
421
|
+
trackFillColor: "轨道填充颜色",
|
|
395
422
|
transform: "变换",
|
|
396
423
|
true: "真",
|
|
397
424
|
truncate: "截断",
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare type BindContext = {
|
|
|
24
24
|
nodeIds?: {
|
|
25
25
|
[alias: string]: string;
|
|
26
26
|
};
|
|
27
|
-
hooks:
|
|
27
|
+
hooks: Hooks;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export declare type BindHandle = (ctx: BindContext, state: BlockState) => void;
|
|
@@ -146,7 +146,7 @@ declare interface EventInfo {
|
|
|
146
146
|
key: string;
|
|
147
147
|
name: string;
|
|
148
148
|
type: Type;
|
|
149
|
-
};
|
|
149
|
+
}[];
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
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';
|
|
@@ -202,14 +202,7 @@ export declare function hasInlineSlot(element: ZElement): boolean | undefined;
|
|
|
202
202
|
|
|
203
203
|
export declare function hasSlot(key: string): boolean;
|
|
204
204
|
|
|
205
|
-
declare
|
|
206
|
-
onReady: () => Promise<void>;
|
|
207
|
-
onDestroy: () => void;
|
|
208
|
-
onPropertyChange: (id: string, newValue: any, oldValue: any, instance?: string) => Promise<void>;
|
|
209
|
-
onStateChange: (id: string, newValue: any, oldValue: any) => Promise<void>;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
declare type Hooks_2 = {
|
|
205
|
+
declare type Hooks = {
|
|
213
206
|
getNodeInfo: (id: string) => NodeInfo | undefined;
|
|
214
207
|
getPropertyInfo: (id: string) => PropertyInfo | undefined;
|
|
215
208
|
getOnEventInfo: (id: string) => EventInfo | undefined;
|
|
@@ -218,6 +211,13 @@ declare type Hooks_2 = {
|
|
|
218
211
|
getImplementMethodInfo: (id: string) => MethodInfo | undefined;
|
|
219
212
|
};
|
|
220
213
|
|
|
214
|
+
declare interface Hooks_2 {
|
|
215
|
+
onReady: () => Promise<void>;
|
|
216
|
+
onDestroy: () => void;
|
|
217
|
+
onPropertyChange: (id: string, newValue: any, oldValue: any, instance?: string) => Promise<void>;
|
|
218
|
+
onStateChange: (id: string, newValue: any, oldValue: any) => Promise<void>;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
221
|
export declare function initProperties(node: Node_2, properties: ZProperty[]): void;
|
|
222
222
|
|
|
223
223
|
export declare function initQuickJS(): Promise<void>;
|
|
@@ -278,7 +278,7 @@ export declare function isRenderSwitch(key: string): boolean;
|
|
|
278
278
|
|
|
279
279
|
export declare function isThemeColor(v: unknown): boolean;
|
|
280
280
|
|
|
281
|
-
export declare const itemsKeys: readonly ["alignTabsItemsV1", "axisTypeItemsV1", "borderStyleItemsV1", "densityItemsV1", "directionItemsV1", "expansionPanelVariantItemsV1", "fieldVariantItemsV1", "flexCrossAlignItemsV1", "flexDirectionItemsV1", "flexMainAlignItemsV1", "flexWrapItemsV1", "fontWeightItemsV1", "
|
|
281
|
+
export declare const itemsKeys: readonly ["alignTabsItemsV1", "axisTypeItemsV1", "borderStyleItemsV1", "btnSpacedItemsV1", "densityItemsV1", "directionItemsV1", "elevationItemsV1", "expansionPanelVariantItemsV1", "fieldVariantItemsV1", "flexCrossAlignItemsV1", "flexDirectionItemsV1", "flexMainAlignItemsV1", "flexWrapItemsV1", "fontWeightItemsV1", "numberInputControlVariantItemsV1", "positionItemsV1", "sheetVariantItemsV1", "sizeItemsV1", "speedDialOpenWayItemsV1", "textAlignItemsV1", "textDecorationItemsV1", "textEmphasisItemsV1", "textSizeItemsV1", "thumbLabelItemsV1", "tickShowItemsV1", "timelineAlignItemsV1", "timelineDirectionItemsV1", "timelineSideItemsV1", "timelineTruncateLineItemsV1", "transitionItemsV1"];
|
|
282
282
|
|
|
283
283
|
export declare function loadLocaleMessageRuntime(locale: string): Promise<object>;
|
|
284
284
|
|
|
@@ -366,7 +366,7 @@ export declare type NodeLite = {
|
|
|
366
366
|
id: string;
|
|
367
367
|
key: string;
|
|
368
368
|
alias?: string;
|
|
369
|
-
|
|
369
|
+
inlineSlot?: string;
|
|
370
370
|
render?: boolean;
|
|
371
371
|
slotId?: string;
|
|
372
372
|
compId?: string;
|
|
@@ -423,15 +423,6 @@ declare interface PropertyInfo {
|
|
|
423
423
|
id: string;
|
|
424
424
|
kind: PropertyKind;
|
|
425
425
|
names: string[];
|
|
426
|
-
meta: {
|
|
427
|
-
element: true;
|
|
428
|
-
raw: ZProperty;
|
|
429
|
-
} | {
|
|
430
|
-
element?: false;
|
|
431
|
-
raw: {
|
|
432
|
-
type: Type;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
426
|
}
|
|
436
427
|
|
|
437
428
|
export declare type PropertyKind = 'elementProperty' | 'elementSlotProperty' | 'multipleElementSlotProperty' | 'refProperty' | 'multipleRefProperty' | 'customSlotProperty' | 'multipleCustomSlotProperty' | 'customProperty' | 'elementAdaptSlotProperty' | 'customAdaptSlotProperty';
|
|
@@ -514,10 +505,10 @@ declare class Sandbox {
|
|
|
514
505
|
mode: Mode;
|
|
515
506
|
type: 'page' | 'comp';
|
|
516
507
|
eventBus: Emitter<Record<EventType, unknown>>;
|
|
517
|
-
hooks:
|
|
508
|
+
hooks: Hooks_2;
|
|
518
509
|
vm: QuickJSContext | undefined;
|
|
519
510
|
promiseManager: PromiseManager | undefined;
|
|
520
|
-
constructor(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks:
|
|
511
|
+
constructor(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks: Hooks_2);
|
|
521
512
|
dispose(): void;
|
|
522
513
|
debugTrace(...data: any[]): void;
|
|
523
514
|
private addChild;
|
|
@@ -615,7 +606,7 @@ export declare type SandboxKind = 'root' | 'ref' | 'multipleRef' | 'elementSlot'
|
|
|
615
606
|
|
|
616
607
|
export declare function setField(object: any, keys: string | string[], value: any): void;
|
|
617
608
|
|
|
618
|
-
export declare function setupHooks(hooks:
|
|
609
|
+
export declare function setupHooks(hooks: Hooks): void;
|
|
619
610
|
|
|
620
611
|
export declare type Slot = {
|
|
621
612
|
id: string;
|
|
@@ -744,10 +735,6 @@ export declare function useSandbox(kind: SandboxKind, nodeId: string, slotId: st
|
|
|
744
735
|
sandbox: Sandbox;
|
|
745
736
|
};
|
|
746
737
|
|
|
747
|
-
export declare function useTheme(): {
|
|
748
|
-
theme: ComputedRef<"light" | "dark">;
|
|
749
|
-
};
|
|
750
|
-
|
|
751
738
|
export declare interface View {
|
|
752
739
|
nodeLites: NodeLite[];
|
|
753
740
|
nodes: {
|
|
@@ -806,7 +793,7 @@ export declare type ZGroup = {
|
|
|
806
793
|
|
|
807
794
|
export declare type ZItem = {
|
|
808
795
|
value: string;
|
|
809
|
-
title
|
|
796
|
+
title?: string;
|
|
810
797
|
};
|
|
811
798
|
|
|
812
799
|
export declare type ZItemsKey = (typeof itemsKeys)[number];
|