x-runtime-lib 0.8.32 → 0.8.33

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.
@@ -9,9 +9,12 @@ const e = {
9
9
  ambientLight: "Ambient Light",
10
10
  angle: "Angle",
11
11
  append: "Append",
12
- appendInner: "Append Inner",
12
+ appendIcon: "Append Icon",
13
+ appendInner: "Append / Inner",
14
+ appendInnerIcon: "Append Icon / Inner",
13
15
  aspectRatio: "Aspect Ratio",
14
16
  auto: "Auto",
17
+ autofocus: "Autofocus",
15
18
  autoGrow: "Auto Grow",
16
19
  background0: "Background 0",
17
20
  background1: "Background 1",
@@ -229,7 +232,9 @@ const e = {
229
232
  precision: "Precision",
230
233
  prefix: "Prefix",
231
234
  prepend: "Prepend",
232
- prependInner: "Prepend Inner",
235
+ prependIcon: "Prepend Icon",
236
+ prependInner: "Prepend / Inner",
237
+ prependInnerIcon: "Prepend Icon / Inner",
233
238
  primary: "Primary",
234
239
  property: "Property",
235
240
  propertyChange: "Property Change",
@@ -8,10 +8,13 @@ const e = {
8
8
  always: "总是",
9
9
  ambientLight: "环境光",
10
10
  angle: "角度",
11
- append: "后置添加",
12
- appendInner: "后置添加/内部",
11
+ append: "后置",
12
+ appendIcon: "后置图标",
13
+ appendInner: "后置/内部",
14
+ appendInnerIcon: "后置图标/内部",
13
15
  aspectRatio: "宽高比",
14
16
  auto: "自动",
17
+ autofocus: "自动聚焦",
15
18
  autoGrow: "自动增长",
16
19
  background0: "背景0",
17
20
  background1: "背景1",
@@ -228,8 +231,10 @@ const e = {
228
231
  position: "位置",
229
232
  precision: "精度",
230
233
  prefix: "前缀",
231
- prepend: "前置添加",
232
- prependInner: "前置添加/内部",
234
+ prepend: "前置",
235
+ prependIcon: "前置图标",
236
+ prependInner: "前置/内部",
237
+ prependInnerIcon: "前置图标/内部",
233
238
  primary: "首要",
234
239
  property: "属性",
235
240
  propertyChange: "属性变化",
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as $, createElementBlock as Y, renderSlot as L, unref as n, openBlock as v, createElementVNode as ie, computed as k, normalizeStyle as Q, ref as ce, watchEffect as ue, watch as q, onBeforeMount as No, onUnmounted as je, createBlock as V, withCtx as I, createCommentVNode as ee, useTemplateRef as Xi, onMounted as Yi, nextTick as Ji, h as ae, resolveComponent as z, createVNode as H, isRef as O, createSlots as Pn, renderList as Mo, useId as Zi, withModifiers as Ro, normalizeClass as Do, toDisplayString as Fo, inject as oe, provide as se, readonly as zn } from "vue";
1
+ import { defineComponent as $, createElementBlock as Y, renderSlot as L, unref as n, openBlock as v, createElementVNode as ee, computed as k, normalizeStyle as q, ref as ce, watchEffect as ue, watch as Q, onBeforeMount as No, onUnmounted as je, createBlock as V, withCtx as I, createCommentVNode as te, useTemplateRef as Xi, onMounted as Yi, nextTick as Ji, h as ae, resolveComponent as z, createVNode as H, isRef as O, createSlots as Pn, renderList as Mo, useId as Zi, withModifiers as Ro, normalizeClass as Do, toDisplayString as Fo, inject as oe, provide as se, readonly as zn } from "vue";
2
2
  import { globalObjects as fe, waitUtil as qi, eventBus as Qi, useViewStack as eo, messageInfo as Go, messageSuccess as Ho, messageWarning as to, messageError as no, createAxios as Ko, openConfirmDlg as jo, openPromptDlg as Oo } from "x-essential-lib";
3
3
  import { CameraHelper as io, DirectionalLightHelper as Uo, PointLightHelper as Xo, SpotLightHelper as Yo } from "three";
4
- import { c as B, i as ne, q as Be, u as Jo, r as oo, e as so, a as Zo, b as qo, d as Qo, f as es, g as ts, h as ns, j as is, k as os, l as ro, X as ss, Y as rs, K as ls, m as as, n as us, o as cs, I as ms } from "./vendor.dd29fg1n.js";
4
+ import { c as B, i as ie, q as Be, u as Jo, r as oo, e as so, a as Zo, b as qo, d as Qo, f as es, g as ts, h as ns, j as is, k as os, l as ro, X as ss, Y as rs, K as ls, m as as, n as us, o as cs, I as ms } from "./vendor.dd29fg1n.js";
5
5
  import { getErrorMessage as ps } from "x-error-lib";
6
6
  import { useTheme as ds } from "vuetify";
7
7
  import { useI18n as ys } from "vue-i18n";
@@ -212,8 +212,8 @@ const Te = {}, _ = (t) => {
212
212
  scale: t.scale,
213
213
  visible: !1
214
214
  }, [
215
- o[0] || (o[0] = ie("TresBoxGeometry", { args: [1, 1, 1] }, null, -1)),
216
- o[1] || (o[1] = ie("TresMeshBasicMaterial", null, null, -1)),
215
+ o[0] || (o[0] = ee("TresBoxGeometry", { args: [1, 1, 1] }, null, -1)),
216
+ o[1] || (o[1] = ee("TresMeshBasicMaterial", null, null, -1)),
217
217
  L(i.$slots, "default")
218
218
  ], 8, ks)) : L(i.$slots, "default", { key: 1 });
219
219
  }
@@ -224,15 +224,27 @@ const Te = {}, _ = (t) => {
224
224
  },
225
225
  setup(t) {
226
226
  const e = G(), i = k(() => {
227
- const o = {};
228
- return t.fitContent && (o.width = "fit-content", o.height = "fit-content"), o;
229
- });
230
- return (o, l) => n(e) === "editor" ? (v(), Y("div", {
227
+ const l = {
228
+ position: "relative"
229
+ };
230
+ return t.fitContent && (l.width = "fit-content", l.height = "fit-content"), l;
231
+ }), o = k(() => ({
232
+ position: "absolute",
233
+ top: 0,
234
+ left: 0,
235
+ right: 0,
236
+ bottom: 0,
237
+ pointerEvents: "auto"
238
+ }));
239
+ return (l, s) => n(e) === "editor" ? (v(), Y("div", {
231
240
  key: 0,
232
- style: Q(i.value)
241
+ style: q(i.value)
233
242
  }, [
234
- L(o.$slots, "default")
235
- ], 4)) : L(o.$slots, "default", { key: 1 });
243
+ L(l.$slots, "default"),
244
+ ee("div", {
245
+ style: q(o.value)
246
+ }, null, 4)
247
+ ], 4)) : L(l.$slots, "default", { key: 1 });
236
248
  }
237
249
  }), _s = (t, e, i, o) => {
238
250
  const l = t.getElementPropertyInner(e, i);
@@ -252,8 +264,8 @@ function r(t, e, i) {
252
264
  return ue(() => {
253
265
  let a = _s(l, t.node, e, i);
254
266
  o === "editor" && e[e.length - 1] === "readonly" && (a = !0), s.value = a;
255
- }), q(s, (a, p) => {
256
- ne(a, p) || ws(l, t.node, e, s.value, i);
267
+ }), Q(s, (a, p) => {
268
+ ie(a, p) || ws(l, t.node, e, s.value, i);
257
269
  }), { property: s };
258
270
  }
259
271
  function me(t) {
@@ -448,7 +460,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
448
460
  scale: n(s)
449
461
  }, {
450
462
  default: I(() => [
451
- ie("TresOrthographicCamera", {
463
+ ee("TresOrthographicCamera", {
452
464
  bottom: n(a),
453
465
  far: n(p),
454
466
  left: n(d),
@@ -462,7 +474,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
462
474
  n(i) === "editor" ? (v(), V(n(Be), {
463
475
  key: 0,
464
476
  type: n(io)
465
- }, null, 8, ["type"])) : ee("", !0),
477
+ }, null, 8, ["type"])) : te("", !0),
466
478
  L(c.$slots, "default")
467
479
  ], 8, Vs)
468
480
  ]),
@@ -483,7 +495,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
483
495
  scale: n(s)
484
496
  }, {
485
497
  default: I(() => [
486
- ie("TresPerspectiveCamera", {
498
+ ee("TresPerspectiveCamera", {
487
499
  aspect: n(a),
488
500
  far: n(p),
489
501
  fov: n(d),
@@ -495,7 +507,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
495
507
  n(i) === "editor" ? (v(), V(n(Be), {
496
508
  key: 0,
497
509
  type: n(io)
498
- }, null, 8, ["type"])) : ee("", !0),
510
+ }, null, 8, ["type"])) : te("", !0),
499
511
  L(m.$slots, "default")
500
512
  ], 8, Is)
501
513
  ]),
@@ -590,7 +602,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
590
602
  scale: n(s)
591
603
  }, {
592
604
  default: I(() => [
593
- ie("TresAmbientLight", {
605
+ ee("TresAmbientLight", {
594
606
  color: n(p),
595
607
  intensity: n(d),
596
608
  position: n(i) !== "editor" ? n(o) : [0, 0, 0],
@@ -620,7 +632,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
620
632
  scale: n(s)
621
633
  }, {
622
634
  default: I(() => [
623
- ie("TresDirectionalLight", {
635
+ ee("TresDirectionalLight", {
624
636
  color: n(p),
625
637
  intensity: n(d),
626
638
  position: n(i) !== "editor" ? n(o) : [0, 0, 0],
@@ -630,7 +642,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
630
642
  n(i) === "editor" ? (v(), V(n(Be), {
631
643
  key: 0,
632
644
  type: n(Uo)
633
- }, null, 8, ["type"])) : ee("", !0),
645
+ }, null, 8, ["type"])) : te("", !0),
634
646
  L(f.$slots, "default")
635
647
  ], 8, Bs)
636
648
  ]),
@@ -657,7 +669,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
657
669
  scale: n(s)
658
670
  }, {
659
671
  default: I(() => [
660
- ie("TresPointLight", {
672
+ ee("TresPointLight", {
661
673
  color: n(p),
662
674
  decay: n(d),
663
675
  distance: n(f),
@@ -669,7 +681,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
669
681
  n(i) === "editor" ? (v(), V(n(Be), {
670
682
  key: 0,
671
683
  type: n(Xo)
672
- }, null, 8, ["type"])) : ee("", !0),
684
+ }, null, 8, ["type"])) : te("", !0),
673
685
  L(u.$slots, "default")
674
686
  ], 8, Es)
675
687
  ]),
@@ -699,7 +711,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
699
711
  scale: n(s)
700
712
  }, {
701
713
  default: I(() => [
702
- ie("TresSpotLight", {
714
+ ee("TresSpotLight", {
703
715
  angle: n(a),
704
716
  color: n(d),
705
717
  decay: n(f),
@@ -713,7 +725,7 @@ const Vs = ["bottom", "far", "left", "near", "position", "right", "rotation", "s
713
725
  n(i) === "editor" ? (v(), V(n(Be), {
714
726
  key: 0,
715
727
  type: n(Yo)
716
- }, null, 8, ["type"])) : ee("", !0),
728
+ }, null, 8, ["type"])) : te("", !0),
717
729
  L(y.$slots, "default")
718
730
  ], 8, Ms)
719
731
  ]),
@@ -738,7 +750,7 @@ const Gs = /* @__PURE__ */ xe(Ds, [["render", Fs]]), Hs = ["position", "rotation
738
750
  scale: n(s)
739
751
  }, {
740
752
  default: I(() => [
741
- ie("TresGroup", {
753
+ ee("TresGroup", {
742
754
  position: n(i) !== "editor" ? n(o) : [0, 0, 0],
743
755
  rotation: n(i) !== "editor" ? n(l) : [0, 0, 0],
744
756
  scale: n(i) !== "editor" ? n(s) : [1, 1, 1]
@@ -864,7 +876,7 @@ const Qr = /* @__PURE__ */ $({
864
876
  window.addEventListener("resize", R, !1), await qi(() => !!M.value), F(), E();
865
877
  }), je(() => {
866
878
  window.removeEventListener("resize", R, !1), W?.dispose();
867
- }), q(
879
+ }), Q(
868
880
  [
869
881
  () => i.value.width,
870
882
  () => i.value.height,
@@ -878,9 +890,9 @@ const Qr = /* @__PURE__ */ $({
878
890
  async () => {
879
891
  await Ji(), R();
880
892
  }
881
- ), q([o], () => {
893
+ ), Q([o], () => {
882
894
  F(), E();
883
- }), q(
895
+ }), Q(
884
896
  [e],
885
897
  () => {
886
898
  E();
@@ -888,7 +900,7 @@ const Qr = /* @__PURE__ */ $({
888
900
  { deep: !0 }
889
901
  ), (S, D) => (v(), Y("div", {
890
902
  ref: "chart",
891
- style: Q(C.value)
903
+ style: q(C.value)
892
904
  }, null, 4));
893
905
  }
894
906
  }), el = /* @__PURE__ */ $({
@@ -917,7 +929,7 @@ const Qr = /* @__PURE__ */ $({
917
929
  window.addEventListener("resize", R, !1), await qi(() => !!M.value), F(), E();
918
930
  }), je(() => {
919
931
  window.removeEventListener("resize", R, !1), W?.dispose();
920
- }), q(
932
+ }), Q(
921
933
  [
922
934
  () => i.value.width,
923
935
  () => i.value.height,
@@ -931,9 +943,9 @@ const Qr = /* @__PURE__ */ $({
931
943
  async () => {
932
944
  await Ji(), R();
933
945
  }
934
- ), q([o], () => {
946
+ ), Q([o], () => {
935
947
  F(), E();
936
- }), q(
948
+ }), Q(
937
949
  [e],
938
950
  () => {
939
951
  E();
@@ -941,7 +953,7 @@ const Qr = /* @__PURE__ */ $({
941
953
  { deep: !0 }
942
954
  ), (S, D) => (v(), Y("div", {
943
955
  ref: "chart",
944
- style: Q(C.value)
956
+ style: q(C.value)
945
957
  }, null, 4));
946
958
  }
947
959
  }), ye = /* @__PURE__ */ $({
@@ -1070,7 +1082,7 @@ const Qr = /* @__PURE__ */ $({
1070
1082
  Ce("elementEvent", e.node.basic.id, "click")
1071
1083
  ]));
1072
1084
  };
1073
- return (J, te) => {
1085
+ return (J, ne) => {
1074
1086
  const re = z("v-btn");
1075
1087
  return v(), V(n(Z), null, {
1076
1088
  default: I(() => [
@@ -1338,7 +1350,7 @@ const sl = /* @__PURE__ */ xe(il, [["render", ol]]), rl = /* @__PURE__ */ $({
1338
1350
  "hide-sliders": n(m),
1339
1351
  landscape: n(u),
1340
1352
  "show-swatches": n(c),
1341
- style: Q(s.value),
1353
+ style: q(s.value),
1342
1354
  theme: n(y)
1343
1355
  }, null, 8, ["disabled", "hide-canvas", "hide-header", "hide-inputs", "hide-sliders", "landscape", "show-swatches", "style", "theme"]);
1344
1356
  };
@@ -1397,7 +1409,7 @@ const sl = /* @__PURE__ */ xe(il, [["render", ol]]), rl = /* @__PURE__ */ $({
1397
1409
  return i === "page" ? c === "common" ? (a(u), p(u), d(u), f(u), s.value && (u.backgroundColor = s.value)) : console.assert(!1) : i === "comp" && c === "common" ? (a(u), p(u), d(u), f(u), s.value && (u.backgroundColor = s.value)) : console.assert(!1), u;
1398
1410
  });
1399
1411
  return (u, c) => (v(), Y("div", {
1400
- style: Q(m.value)
1412
+ style: q(m.value)
1401
1413
  }, [
1402
1414
  L(u.$slots, "default")
1403
1415
  ], 4));
@@ -1484,7 +1496,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1484
1496
  n(i) === "editor" ? (v(), Y("div", {
1485
1497
  key: 0,
1486
1498
  id: `__node__@${l.value}`
1487
- }, null, 8, gl)) : ee("", !0)
1499
+ }, null, 8, gl)) : te("", !0)
1488
1500
  ]),
1489
1501
  default: I(() => [
1490
1502
  L(p.$slots, "default")
@@ -1557,7 +1569,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1557
1569
  return o === "page" ? h === "common" ? (s(y), a(y), p(y), d(y), u(y)) : console.assert(!1) : o === "comp" && h === "common" ? (s(y), a(y), p(y), d(y), u(y)) : console.assert(!1), y;
1558
1570
  });
1559
1571
  return (y, h) => (v(), Y("div", {
1560
- style: Q(c.value)
1572
+ style: q(c.value)
1561
1573
  }, [
1562
1574
  L(y.$slots, "default")
1563
1575
  ], 4));
@@ -1574,7 +1586,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1574
1586
  return i === "page" ? f === "common" ? (l(d), d.flexGrow = s.value ? 1 : 0, d.flexShrink = a.value ? 1 : 0) : console.assert(!1) : i === "comp" && f === "common" ? (l(d), d.flexGrow = s.value ? 1 : 0, d.flexShrink = a.value ? 1 : 0) : console.assert(!1), d;
1575
1587
  });
1576
1588
  return (d, f) => (v(), Y("div", {
1577
- style: Q(p.value)
1589
+ style: q(p.value)
1578
1590
  }, [
1579
1591
  L(d.$slots, "default")
1580
1592
  ], 4));
@@ -1606,7 +1618,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1606
1618
  modelValue: n(a),
1607
1619
  "onUpdate:modelValue": w[0] || (w[0] = (M) => O(a) ? a.value = M : null),
1608
1620
  "fast-fail": n(p),
1609
- style: Q(h.value),
1621
+ style: q(h.value),
1610
1622
  onSubmit: Ro(g, ["prevent"])
1611
1623
  }, {
1612
1624
  default: I(() => [
@@ -1665,7 +1677,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1665
1677
  n(i) === "editor" ? (v(), Y("div", {
1666
1678
  key: 0,
1667
1679
  id: `__node__@${p.value}`
1668
- }, null, 8, $l)) : ee("", !0)
1680
+ }, null, 8, $l)) : te("", !0)
1669
1681
  ]),
1670
1682
  default: I(() => [
1671
1683
  L(m.$slots, "default")
@@ -1716,13 +1728,13 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1716
1728
  "settings",
1717
1729
  "singleLine"
1718
1730
  ]), { property: W } = r(e, ["settings", "step"]), { property: F } = r(e, ["settings", "suffix"]), { theme: R } = N(), { property: E } = r(e, ["settings", "value"]), { property: S } = r(e, ["settings", "variant"]), { property: D } = r(e, ["size", "width"]);
1719
- return (J, te) => {
1731
+ return (J, ne) => {
1720
1732
  const re = z("v-number-input");
1721
1733
  return v(), V(n(Z), null, {
1722
1734
  default: I(() => [
1723
1735
  H(re, {
1724
1736
  modelValue: n(E),
1725
- "onUpdate:modelValue": te[0] || (te[0] = (le) => O(E) ? E.value = le : null),
1737
+ "onUpdate:modelValue": ne[0] || (ne[0] = (le) => O(E) ? E.value = le : null),
1726
1738
  "append-icon": n(i),
1727
1739
  "append-inner-icon": n(o),
1728
1740
  clearable: n(l),
@@ -1782,7 +1794,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
1782
1794
  "show-first-last-page": n(a),
1783
1795
  size: n(p),
1784
1796
  start: n(d),
1785
- style: Q(y.value),
1797
+ style: q(y.value),
1786
1798
  theme: n(f),
1787
1799
  tile: n(m),
1788
1800
  variant: n(c)
@@ -2089,7 +2101,7 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
2089
2101
  ]), { property: S } = r(e, [
2090
2102
  "settings",
2091
2103
  "trackColor"
2092
- ]), { color: D } = K(S), { property: J } = r(e, ["settings", "value"]), { property: te } = r(e, ["slots", "append"]), { property: re } = r(e, [
2104
+ ]), { color: D } = K(S), { property: J } = r(e, ["settings", "value"]), { property: ne } = r(e, ["slots", "append"]), { property: re } = r(e, [
2093
2105
  "slots",
2094
2106
  "prepend"
2095
2107
  ]);
@@ -2119,11 +2131,11 @@ const hl = /* @__PURE__ */ xe(fl, [["render", bl]]), gl = ["id"], xl = /* @__PUR
2119
2131
  ticks: R.value,
2120
2132
  "track-color": n(D)
2121
2133
  }, Pn({ _: 2 }, [
2122
- n(te) ? {
2134
+ n(ne) ? {
2123
2135
  name: "append",
2124
2136
  fn: I(() => [
2125
2137
  H(n(ye), {
2126
- "ref-context": { refid: n(te) },
2138
+ "ref-context": { refid: n(ne) },
2127
2139
  state: {}
2128
2140
  }, null, 8, ["ref-context"])
2129
2141
  ]),
@@ -2286,7 +2298,7 @@ const Gl = /* @__PURE__ */ xe(Dl, [["render", Fl]]), Hl = /* @__PURE__ */ $({
2286
2298
  return v(), V(n(Z), { "fit-content": !0 }, {
2287
2299
  default: I(() => [
2288
2300
  H(f, {
2289
- style: Q(a.value),
2301
+ style: q(a.value),
2290
2302
  text: n(o),
2291
2303
  theme: n(l),
2292
2304
  value: n(s)
@@ -2493,13 +2505,13 @@ const Gl = /* @__PURE__ */ xe(Dl, [["render", Fl]]), Hl = /* @__PURE__ */ $({
2493
2505
  "slots",
2494
2506
  "prependInner"
2495
2507
  ]);
2496
- return (J, te) => {
2508
+ return (J, ne) => {
2497
2509
  const re = z("v-text-field");
2498
2510
  return v(), V(n(Z), null, {
2499
2511
  default: I(() => [
2500
2512
  H(re, {
2501
2513
  modelValue: n(W),
2502
- "onUpdate:modelValue": te[0] || (te[0] = (le) => O(W) ? W.value = le : null),
2514
+ "onUpdate:modelValue": ne[0] || (ne[0] = (le) => O(W) ? W.value = le : null),
2503
2515
  "append-icon": n(i),
2504
2516
  "append-inner-icon": n(o),
2505
2517
  autofocus: n(l),
@@ -3226,19 +3238,19 @@ const aa = /* @__PURE__ */ $({
3226
3238
  __name: "index",
3227
3239
  setup(t) {
3228
3240
  const e = G();
3229
- return (i, o) => n(e) !== "editor" ? (v(), V(n(ss), { key: 0 })) : ee("", !0);
3241
+ return (i, o) => n(e) !== "editor" ? (v(), V(n(ss), { key: 0 })) : te("", !0);
3230
3242
  }
3231
3243
  }), ua = /* @__PURE__ */ $({
3232
3244
  __name: "index",
3233
3245
  setup(t) {
3234
3246
  const e = G();
3235
- return (i, o) => n(e) !== "editor" ? (v(), V(n(rs), { key: 0 })) : ee("", !0);
3247
+ return (i, o) => n(e) !== "editor" ? (v(), V(n(rs), { key: 0 })) : te("", !0);
3236
3248
  }
3237
3249
  }), ca = /* @__PURE__ */ $({
3238
3250
  __name: "index",
3239
3251
  setup(t) {
3240
3252
  const e = G();
3241
- return (i, o) => n(e) !== "editor" ? (v(), V(n(ls), { key: 0 })) : ee("", !0);
3253
+ return (i, o) => n(e) !== "editor" ? (v(), V(n(ls), { key: 0 })) : te("", !0);
3242
3254
  }
3243
3255
  }), ma = {
3244
3256
  key: bt,
@@ -8048,14 +8060,14 @@ function Me(t, e, i, o, l) {
8048
8060
  for (const u of d)
8049
8061
  if (i === Se(u)) {
8050
8062
  if (u.subKeys) {
8051
- if (!ne(
8063
+ if (!ie(
8052
8064
  ke(o, u.subKeys),
8053
8065
  ke(l, u.subKeys)
8054
8066
  )) {
8055
8067
  f = u;
8056
8068
  break;
8057
8069
  }
8058
- } else if (!ne(o, l)) {
8070
+ } else if (!ie(o, l)) {
8059
8071
  f = u;
8060
8072
  break;
8061
8073
  }
@@ -8083,7 +8095,7 @@ function Me(t, e, i, o, l) {
8083
8095
  continue;
8084
8096
  }
8085
8097
  const y = ke(c, u.subKeys);
8086
- if (ne(m, y))
8098
+ if (ie(m, y))
8087
8099
  continue;
8088
8100
  const h = B(c);
8089
8101
  ao(h, u.subKeys, B(m)), u.type === "elementProperty" ? t.setElementProperty(
@@ -8108,7 +8120,7 @@ function Me(t, e, i, o, l) {
8108
8120
  console.assert(!1);
8109
8121
  continue;
8110
8122
  }
8111
- if (ne(m, c))
8123
+ if (ie(m, c))
8112
8124
  continue;
8113
8125
  u.type === "elementProperty" ? t.setElementProperty(
8114
8126
  u.nodeId,
@@ -8458,7 +8470,7 @@ class hc {
8458
8470
  }
8459
8471
  setElementPropertyInner(e, i, o) {
8460
8472
  const l = ke(e, i);
8461
- ne(o, l) || (ao(e, i, o), this.hooks?.onElementPropertyChange(
8473
+ ie(o, l) || (ao(e, i, o), this.hooks?.onElementPropertyChange(
8462
8474
  e.basic.id,
8463
8475
  i,
8464
8476
  o,
@@ -8490,7 +8502,7 @@ class hc {
8490
8502
  }
8491
8503
  setCustomProperty(e, i) {
8492
8504
  const o = this.customProperties[e];
8493
- ne(i, o) || (this.customProperties[e] = i, this.hooks?.onCustomPropertyChange(e, i, o));
8505
+ ie(i, o) || (this.customProperties[e] = i, this.hooks?.onCustomPropertyChange(e, i, o));
8494
8506
  }
8495
8507
  //--------------------------
8496
8508
  // 自定义状态
@@ -8504,7 +8516,7 @@ class hc {
8504
8516
  }
8505
8517
  setCustomState(e, i) {
8506
8518
  const o = this.customStates[e];
8507
- ne(i, o) || (this.customStates[e] = i, this.hooks?.onCustomStateChange(e, i, o));
8519
+ ie(i, o) || (this.customStates[e] = i, this.hooks?.onCustomStateChange(e, i, o));
8508
8520
  }
8509
8521
  //--------------------------
8510
8522
  // 适配的插槽属性
@@ -8518,7 +8530,7 @@ class hc {
8518
8530
  }
8519
8531
  setAdaptSlotProperty(e, i) {
8520
8532
  const o = this.adaptSlotProperties[e];
8521
- ne(i, o) || (this.adaptSlotProperties[e] = i, this.hooks?.onAdaptSlotPropertyChange(e, i, o));
8533
+ ie(i, o) || (this.adaptSlotProperties[e] = i, this.hooks?.onAdaptSlotPropertyChange(e, i, o));
8522
8534
  }
8523
8535
  //--------------------------
8524
8536
  // 解释器
@@ -8626,11 +8638,11 @@ function gc(t) {
8626
8638
  const c = () => {
8627
8639
  o !== "runtime" && o !== "preview" || (u.destroyInterpreter(), u.syncNodes(t.value), u.resetCustomProperties(), u.resetCustomStates(), u.resetAdaptSlotProperties(), !(!t.value || !t.value.code.script) && u.createInterpreter(t.value.code.script));
8628
8640
  };
8629
- c(), q(t, () => {
8641
+ c(), Q(t, () => {
8630
8642
  c();
8631
8643
  }), je(() => {
8632
8644
  u.destroyInterpreter();
8633
- }), (o === "runtime" || o === "preview") && q(
8645
+ }), (o === "runtime" || o === "preview") && Q(
8634
8646
  s,
8635
8647
  (y, h) => {
8636
8648
  const g = Re(y.width), x = Re(h?.width ?? y.width);
@@ -8641,7 +8653,7 @@ function gc(t) {
8641
8653
  ]);
8642
8654
  },
8643
8655
  { immediate: !0 }
8644
- ), (o === "runtime" || o === "preview") && q(
8656
+ ), (o === "runtime" || o === "preview") && Q(
8645
8657
  a,
8646
8658
  (y) => {
8647
8659
  u.callFunction("__triggerEventV1__", [
@@ -8659,7 +8671,7 @@ const xc = (t, e, i) => {
8659
8671
  });
8660
8672
  };
8661
8673
  async function qc(t) {
8662
- return (await xc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.escg6ifs.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ht3um6fb.js") }), `./locales/${t}/index.ts`, 4)).default;
8674
+ return (await xc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.newu3yte.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.bu8byhfo.js") }), `./locales/${t}/index.ts`, 4)).default;
8663
8675
  }
8664
8676
  export {
8665
8677
  hc as Sandbox,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.32",
4
+ "version": "0.8.33",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",