x-runtime-lib 0.4.15 → 0.4.16

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,6 +1,7 @@
1
1
  const t = {
2
2
  "x-runtime-lib": {
3
3
  alias: "Alias",
4
+ auto: "Auto",
4
5
  backgroundColor: "Background Color",
5
6
  basic: "Basic",
6
7
  block: "Block",
@@ -25,11 +26,14 @@ const t = {
25
26
  minWidth: "Min Width",
26
27
  name: "Name",
27
28
  outlined: "Outlined",
29
+ percent: "Percent",
30
+ pixel: "Pixel",
28
31
  plain: "Plain",
29
32
  ref: "Reference",
30
33
  settings: "Settings",
31
34
  text: "Text",
32
35
  tonal: "Tonal",
36
+ unset: "Unset",
33
37
  variant: "Variant",
34
38
  width: "Width"
35
39
  }
@@ -1,6 +1,7 @@
1
1
  const t = {
2
2
  "x-runtime-lib": {
3
3
  alias: "别名",
4
+ auto: "自动",
4
5
  backgroundColor: "背景颜色",
5
6
  basic: "基本",
6
7
  block: "块",
@@ -25,11 +26,14 @@ const t = {
25
26
  minWidth: "最小宽度",
26
27
  name: "名称",
27
28
  outlined: "轮廓",
29
+ percent: "百分比",
30
+ pixel: "像素",
28
31
  plain: "朴素",
29
32
  ref: "引用",
30
33
  settings: "设置",
31
34
  text: "文本",
32
35
  tonal: "色调",
36
+ unset: "未设置",
33
37
  variant: "变种",
34
38
  width: "宽度"
35
39
  }
package/dist/index.js CHANGED
@@ -22,28 +22,6 @@ const Gi = /* @__PURE__ */ new Set([
22
22
  groups: Vi
23
23
  }, ln = {
24
24
  v1: Yi
25
- }, nt = {
26
- key: "basic",
27
- name: "x-runtime-lib.basic",
28
- children: [
29
- {
30
- key: "id",
31
- name: "x-runtime-lib.id",
32
- ui: "strInput",
33
- readonly: !0
34
- },
35
- {
36
- key: "name",
37
- name: "x-runtime-lib.name",
38
- ui: "strInput",
39
- static: !0
40
- },
41
- {
42
- key: "alias",
43
- name: "x-runtime-lib.alias",
44
- ui: "strInput"
45
- }
46
- ]
47
25
  }, Ar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
48
26
  function pn(n) {
49
27
  let s = "";
@@ -658,7 +636,7 @@ function Ns(n, s) {
658
636
  return "compCommon";
659
637
  }
660
638
  function en(n) {
661
- var s;
639
+ var s, p;
662
640
  if (n.array)
663
641
  return n.default instanceof Array ? Mt(n.default) : [];
664
642
  if (n.default !== void 0)
@@ -676,6 +654,8 @@ function en(n) {
676
654
  return ((s = n.items) == null ? void 0 : s[0].value) ?? "";
677
655
  case "colorPicker":
678
656
  return "#FFFFFF";
657
+ case "multiTypes":
658
+ return ((p = n.types) == null ? void 0 : p[0].default) ?? "";
679
659
  default:
680
660
  console.assert(!1, `not implemented ui=${n.ui}`);
681
661
  }
@@ -840,7 +820,29 @@ const Ds = /* @__PURE__ */ un({
840
820
  }, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
841
821
  };
842
822
  }
843
- }), Fs = [
823
+ }), nt = {
824
+ key: "basic",
825
+ name: "x-runtime-lib.basic",
826
+ children: [
827
+ {
828
+ key: "id",
829
+ name: "x-runtime-lib.id",
830
+ ui: "strInput",
831
+ readonly: !0
832
+ },
833
+ {
834
+ key: "name",
835
+ name: "x-runtime-lib.name",
836
+ ui: "strInput",
837
+ static: !0
838
+ },
839
+ {
840
+ key: "alias",
841
+ name: "x-runtime-lib.alias",
842
+ ui: "strInput"
843
+ }
844
+ ]
845
+ }, Fs = [
844
846
  { title: "x-runtime-lib.elevated", value: "elevated" },
845
847
  { title: "x-runtime-lib.flat", value: "flat" },
846
848
  { title: "x-runtime-lib.tonal", value: "tonal" },
@@ -958,34 +960,7 @@ const Ds = /* @__PURE__ */ un({
958
960
  compCommon: [nn]
959
961
  },
960
962
  internal: !0
961
- }, me = [
962
- {
963
- name: "default",
964
- ui: "word",
965
- validator: Xi,
966
- default: ""
967
- },
968
- {
969
- name: "pixel",
970
- ui: "pixelInput",
971
- validator: Wi,
972
- default: "0px",
973
- precision: 0,
974
- min: 0,
975
- max: 1 / 0,
976
- step: 1
977
- },
978
- {
979
- name: "percent",
980
- ui: "percentInput",
981
- validator: Ji,
982
- default: "0%",
983
- precision: 4,
984
- min: 0,
985
- max: 1 / 0,
986
- step: 1
987
- }
988
- ];
963
+ };
989
964
  function js(n) {
990
965
  const s = Ps(), p = ws(), v = J(() => n.node.width), g = J(() => n.node.minWidth), O = J(() => n.node.maxWidth), m = J(() => {
991
966
  if (n.outer && s === "editor") {
@@ -5307,7 +5282,34 @@ const nc = /* @__PURE__ */ un({
5307
5282
  };
5308
5283
  return (a, l) => (sn(), cn(c));
5309
5284
  }
5310
- }), Xn = {
5285
+ }), me = [
5286
+ {
5287
+ name: "x-runtime-lib.unset",
5288
+ ui: "word",
5289
+ validator: Xi,
5290
+ default: ""
5291
+ },
5292
+ {
5293
+ name: "x-runtime-lib.pixel",
5294
+ ui: "pixelInput",
5295
+ validator: Wi,
5296
+ default: "0px",
5297
+ precision: 0,
5298
+ min: 0,
5299
+ max: 1 / 0,
5300
+ step: 1
5301
+ },
5302
+ {
5303
+ name: "x-runtime-lib.percent",
5304
+ ui: "percentInput",
5305
+ validator: Ji,
5306
+ default: "0%",
5307
+ precision: 4,
5308
+ min: 0,
5309
+ max: 1 / 0,
5310
+ step: 1
5311
+ }
5312
+ ], Xn = {
5311
5313
  key: "ref",
5312
5314
  name: "x-runtime-lib.ref",
5313
5315
  children: [
@@ -5410,7 +5412,7 @@ const sc = (n, s, p) => {
5410
5412
  });
5411
5413
  };
5412
5414
  async function Nc(n) {
5413
- return (await sc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-nwe0okhu.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-n9fk1na9.js") }), `./locales/${n}/index.ts`, 4)).default;
5415
+ return (await sc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-j2twg2xy.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-hdbgtmk2.js") }), `./locales/${n}/index.ts`, 4)).default;
5414
5416
  }
5415
5417
  export {
5416
5418
  vc as duplicateNode,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.4.15",
4
+ "version": "0.4.16",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",