x-runtime-lib 0.9.39 → 0.9.41
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.
|
@@ -136,6 +136,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
136
136
|
eager: "Eager",
|
|
137
137
|
elevated: "Elevated",
|
|
138
138
|
elevation: "Elevation",
|
|
139
|
+
email: "Email",
|
|
139
140
|
emphasis: "Emphasis",
|
|
140
141
|
enable: "Enable",
|
|
141
142
|
end: "End",
|
|
@@ -247,6 +248,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
247
248
|
max: "Max",
|
|
248
249
|
maxErrors: "Max Errors",
|
|
249
250
|
maxHeight: "Max Height",
|
|
251
|
+
maxLength: "Max Length",
|
|
250
252
|
maxRows: "Max Rows",
|
|
251
253
|
maxWidth: "Max Width",
|
|
252
254
|
medium: "Medium",
|
|
@@ -258,6 +260,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
258
260
|
middle: "Middle",
|
|
259
261
|
min: "Min",
|
|
260
262
|
minHeight: "Min Height",
|
|
263
|
+
minLength: "Min Length",
|
|
261
264
|
minWidth: "Min Width",
|
|
262
265
|
misc: "Misc",
|
|
263
266
|
mode: "Mode",
|
|
@@ -329,6 +332,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
329
332
|
regular: "Regular",
|
|
330
333
|
relative: "Relative",
|
|
331
334
|
renderSwitch: "Render Switch",
|
|
335
|
+
required: "Required",
|
|
332
336
|
reset: "Reset",
|
|
333
337
|
resetValidation: "Reset Validation",
|
|
334
338
|
result: "Result",
|
|
@@ -136,6 +136,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
136
136
|
eager: "急切",
|
|
137
137
|
elevated: "升高",
|
|
138
138
|
elevation: "海拔",
|
|
139
|
+
email: "电子邮件",
|
|
139
140
|
emphasis: "强调",
|
|
140
141
|
enable: "启用",
|
|
141
142
|
end: "结束",
|
|
@@ -247,6 +248,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
247
248
|
max: "最大值",
|
|
248
249
|
maxErrors: "最大错误数",
|
|
249
250
|
maxHeight: "最大高度",
|
|
251
|
+
maxLength: "最大长度",
|
|
250
252
|
maxRows: "最大行数",
|
|
251
253
|
maxWidth: "最大宽度",
|
|
252
254
|
medium: "中",
|
|
@@ -258,6 +260,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
258
260
|
middle: "中",
|
|
259
261
|
min: "最小值",
|
|
260
262
|
minHeight: "最小高度",
|
|
263
|
+
minLength: "最小长度",
|
|
261
264
|
minWidth: "最小宽度",
|
|
262
265
|
misc: "杂项",
|
|
263
266
|
mode: "模式",
|
|
@@ -329,6 +332,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
|
|
|
329
332
|
regular: "常规",
|
|
330
333
|
relative: "相对",
|
|
331
334
|
renderSwitch: "渲染开关",
|
|
335
|
+
required: "必填",
|
|
332
336
|
reset: "重置",
|
|
333
337
|
resetValidation: "重置验证",
|
|
334
338
|
result: "结果",
|
package/dist/index.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ export declare function getNodeLite(nodeLites: NodeLite[], id: string): NodeLite
|
|
|
188
188
|
|
|
189
189
|
export declare function getPropertyDefault(property: ZProperty): any;
|
|
190
190
|
|
|
191
|
-
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[];
|
|
191
|
+
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | (number | null)[] | boolean[] | ("" | "required" | "email" | "minLength" | "maxLength" | "length")[];
|
|
192
192
|
|
|
193
193
|
export declare function getRadius(val: unknown): string | undefined;
|
|
194
194
|
|
|
@@ -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", "btnSpacedItemsV1", "btnTypeItemsV1", "densityItemsV1", "directionItemsV1", "elevationItemsV1", "expansionPanelVariantItemsV1", "fieldVariantItemsV1", "flexCrossAlignItemsV1", "flexDirectionItemsV1", "flexMainAlignItemsV1", "flexWrapItemsV1", "fontWeightItemsV1", "inputTypeItemsV1", "numberInputControlVariantItemsV1", "positionItemsV1", "sheetVariantItemsV1", "sizeItemsV1", "speedDialOpenWayItemsV1", "textAlignItemsV1", "textDecorationItemsV1", "textEmphasisItemsV1", "textSizeItemsV1", "thumbLabelItemsV1", "tickShowItemsV1", "timelineAlignItemsV1", "timelineDirectionItemsV1", "timelineSideItemsV1", "timelineTruncateLineItemsV1", "transitionItemsV1"];
|
|
281
|
+
export declare const itemsKeys: readonly ["alignTabsItemsV1", "axisTypeItemsV1", "borderStyleItemsV1", "btnSpacedItemsV1", "btnTypeItemsV1", "densityItemsV1", "directionItemsV1", "elevationItemsV1", "expansionPanelVariantItemsV1", "fieldVariantItemsV1", "flexCrossAlignItemsV1", "flexDirectionItemsV1", "flexMainAlignItemsV1", "flexWrapItemsV1", "fontWeightItemsV1", "inputTypeItemsV1", "numberInputControlVariantItemsV1", "positionItemsV1", "sheetVariantItemsV1", "sizeItemsV1", "speedDialOpenWayItemsV1", "textAlignItemsV1", "textDecorationItemsV1", "textEmphasisItemsV1", "textSizeItemsV1", "textTypeItemsV1", "thumbLabelItemsV1", "tickShowItemsV1", "timelineAlignItemsV1", "timelineDirectionItemsV1", "timelineSideItemsV1", "timelineTruncateLineItemsV1", "transitionItemsV1"];
|
|
282
282
|
|
|
283
283
|
export declare function loadLocaleMessageRuntime(locale: string): Promise<object>;
|
|
284
284
|
|
|
@@ -491,6 +491,8 @@ export declare function regTypes(key: ZTypesKey, types: ZType[]): void;
|
|
|
491
491
|
|
|
492
492
|
export declare const reverseBreakpoints: readonly ["xl", "lg", "md", "sm", "xs"];
|
|
493
493
|
|
|
494
|
+
export declare const rules: readonly ["required", "email", "minLength", "maxLength", "length"];
|
|
495
|
+
|
|
494
496
|
declare class Sandbox {
|
|
495
497
|
kind: SandboxKind;
|
|
496
498
|
nodeId: string;
|
|
@@ -895,12 +897,12 @@ declare type ZPropertyNumber = {
|
|
|
895
897
|
min?: number;
|
|
896
898
|
max?: number;
|
|
897
899
|
step?: number;
|
|
898
|
-
default: number;
|
|
900
|
+
default: number | null;
|
|
899
901
|
} & ZPropertyBase;
|
|
900
902
|
|
|
901
903
|
declare type ZPropertyRule = {
|
|
902
904
|
ui: 'rule';
|
|
903
|
-
default:
|
|
905
|
+
default: ZRule | '';
|
|
904
906
|
} & ZPropertyBase;
|
|
905
907
|
|
|
906
908
|
declare type ZPropertySelect = {
|
|
@@ -948,6 +950,8 @@ declare type ZPropertyTransient<T extends Type> = {
|
|
|
948
950
|
};
|
|
949
951
|
}[T];
|
|
950
952
|
|
|
953
|
+
export declare type ZRule = (typeof rules)[number];
|
|
954
|
+
|
|
951
955
|
export declare type ZSlot = {
|
|
952
956
|
key: string;
|
|
953
957
|
name: string;
|