x-runtime-lib 0.9.40 → 0.9.42

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",
@@ -356,6 +357,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
356
357
  show: "Show",
357
358
  showArrows: "Show Arrows",
358
359
  showFirstLastPage: "Show First Last Page",
360
+ showLabel: "Show Label",
359
361
  showSize: "Show Size",
360
362
  showTicks: "Show Ticks",
361
363
  shrink: "Shrink",
@@ -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: "结束",
@@ -356,6 +357,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-runtime-lib": {
356
357
  show: "显示",
357
358
  showArrows: "显示箭头",
358
359
  showFirstLastPage: "显示首尾页",
360
+ showLabel: "显示标签",
359
361
  showSize: "显示大小",
360
362
  showTicks: "显示刻度",
361
363
  shrink: "收缩",
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[] | ("" | "required" | "email" | "minLength" | "maxLength" | "length")[];
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
 
@@ -270,6 +270,10 @@ export declare function isHexColor(v: unknown): boolean;
270
270
 
271
271
  export declare function isInlineSlot(key: string): boolean;
272
272
 
273
+ export declare function isNull(v: unknown): boolean;
274
+
275
+ export declare function isNumber(v: unknown): boolean;
276
+
273
277
  export declare function isPercent(v: unknown): boolean;
274
278
 
275
279
  export declare function isPixel(v: unknown): boolean;
@@ -278,7 +282,7 @@ export declare function isRenderSwitch(key: string): boolean;
278
282
 
279
283
  export declare function isThemeColor(v: unknown): boolean;
280
284
 
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"];
285
+ export declare const itemsKeys: readonly ["alignTabsV1", "axisTypeV1", "borderStyleV1", "btnSpacedV1", "btnTypeV1", "densityV1", "directionV1", "expansionPanelVariantV1", "fieldVariantV1", "flexCrossAlignV1", "flexDirectionV1", "flexMainAlignV1", "flexWrapV1", "fontWeightV1", "inputTypeV1", "numberInputControlVariantV1", "positionV1", "sheetVariantV1", "sizeV1", "speedDialOpenWayV1", "textAlignV1", "textDecorationV1", "textEmphasisV1", "textSizeV1", "textTypeV1", "thumbLabelV1", "tickShowV1", "timelineAlignV1", "timelineDirectionV1", "timelineSideV1", "timelineTruncateLineV1", "transitionV1"];
282
286
 
283
287
  export declare function loadLocaleMessageRuntime(locale: string): Promise<object>;
284
288
 
@@ -654,7 +658,7 @@ export declare interface Transients {
654
658
 
655
659
  export declare type TriggerKind = 'propertyTrigger' | 'stateTrigger';
656
660
 
657
- export declare const typesKeys: readonly ["borderRadiusTypesV1", "borderWidthTypesV1", "colorTypesV1", "leftRightTypesV1", "marginTypesV1", "paddingTypesV1", "sizeTypesV1", "tableColumnAlignTypesV1", "topBottomTypesV1"];
661
+ export declare const typesKeys: readonly ["borderRadiusV1", "borderWidthV1", "colorV1", "elevationV1", "leftRightV1", "marginV1", "paddingV1", "sizeV1", "tableColumnAlignV1", "topBottomV1"];
658
662
 
659
663
  export declare function unwrapEventId(id: string): {
660
664
  kind: EventKind;
@@ -838,7 +842,7 @@ export declare type ZProperty = ({
838
842
  } & ZPropertyBranch) | ({
839
843
  array: true;
840
844
  defaultArray: any[];
841
- } & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyText> | WithArray<ZPropertyNumber> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyJson> | WithArray<ZPropertyIcon> | WithArray<ZPropertyComp> | WithArray<ZPropertySlot> | WithArray<ZPropertyAdaptSlot> | WithArray<ZPropertyInlineSlot> | WithArray<ZPropertyRule> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertyTransient<Type>>;
845
+ } & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyText> | WithArray<ZPropertyNumber> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyJson> | WithArray<ZPropertyIcon> | WithArray<ZPropertyImage> | WithArray<ZPropertyComp> | WithArray<ZPropertySlot> | WithArray<ZPropertyAdaptSlot> | WithArray<ZPropertyInlineSlot> | WithArray<ZPropertyRule> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertyTransient<Type>>;
842
846
 
843
847
  declare type ZPropertyAdaptSlot = {
844
848
  ui: 'adaptSlot';
@@ -875,6 +879,11 @@ declare type ZPropertyIcon = {
875
879
  default: string;
876
880
  } & ZPropertyBase;
877
881
 
882
+ declare type ZPropertyImage = {
883
+ ui: 'image';
884
+ default: string;
885
+ } & ZPropertyBase;
886
+
878
887
  declare type ZPropertyInlineSlot = {
879
888
  ui: 'inlineSlot';
880
889
  default: string;
@@ -888,7 +897,7 @@ declare type ZPropertyJson = {
888
897
  declare type ZPropertyMultiTypes = {
889
898
  ui: 'multiTypes';
890
899
  types: ZTypesKey;
891
- default: string;
900
+ default: any;
892
901
  } & ZPropertyBase;
893
902
 
894
903
  declare type ZPropertyNumber = {
@@ -897,7 +906,7 @@ declare type ZPropertyNumber = {
897
906
  min?: number;
898
907
  max?: number;
899
908
  step?: number;
900
- default: number;
909
+ default: number | null;
901
910
  } & ZPropertyBase;
902
911
 
903
912
  declare type ZPropertyRule = {
@@ -1010,7 +1019,7 @@ export declare interface ZSpawnResult {
1010
1019
  };
1011
1020
  }
1012
1021
 
1013
- export declare type ZType = ZTypeWord | ZTypePixel | ZTypePercent | ZTypeHexColor | ZTypeThemeColor;
1022
+ export declare type ZType = ZTypeNull | ZTypeWord | ZTypeNumber | ZTypePixel | ZTypePercent | ZTypeHexColor | ZTypeThemeColor;
1014
1023
 
1015
1024
  declare type ZTypeBase = {
1016
1025
  value: string;
@@ -1023,6 +1032,20 @@ declare type ZTypeHexColor = {
1023
1032
  default: string;
1024
1033
  } & ZTypeBase;
1025
1034
 
1035
+ declare type ZTypeNull = {
1036
+ trait: 'null';
1037
+ default: null;
1038
+ } & ZTypeBase;
1039
+
1040
+ declare type ZTypeNumber = {
1041
+ trait: 'number';
1042
+ precision?: number;
1043
+ min?: number;
1044
+ max?: number;
1045
+ step?: number;
1046
+ default: number;
1047
+ } & ZTypeBase;
1048
+
1026
1049
  declare type ZTypePercent = {
1027
1050
  trait: 'percent';
1028
1051
  precision?: number;