x-prop-tree 0.7.20 → 0.7.22

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.
Files changed (2) hide show
  1. package/dist/index.js +81 -78
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as U, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as he, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as He, watch as oe, watchEffect as Ke, h as k, renderSlot as kt, onMounted as Xe, onBeforeUnmount as Fe, reactive as _t } from "vue";
1
+ import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as ke, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as He, watch as oe, watchEffect as Ke, h as k, renderSlot as kt, onMounted as Xe, onBeforeUnmount as Fe, reactive as _t } from "vue";
2
2
  import { useI18n as I } from "vue-i18n";
3
- import { useViewStack as ke, useColor as te, eventBus as de, useSystem as ve, injectDark as xt, injectLocale as St, openNumberDlg as ze, openPromptDlg as Vt, globalObjects as Ct } from "x-essential-lib";
3
+ import { useViewStack as _e, useColor as te, eventBus as de, useSystem as pe, injectDark as xt, injectLocale as St, openNumberDlg as ze, openPromptDlg as Vt, globalObjects as Ct } from "x-essential-lib";
4
4
  import { getPropertyDefault as J, pkgs as Ne, parsePixelStr as Ut, parsePercentStr as $t, getPropertyTag as wt, elements as Mt, makeSlotId as Re } from "x-runtime-lib";
5
- import { c as Ge, i as be, r as _e, v as Ye, d as We } from "./vendor.f0ug048x.js";
5
+ import { c as Ge, i as be, r as ve, v as Ye, d as We } from "./vendor.f0ug048x.js";
6
6
  import { useDisplay as Qe } from "vuetify";
7
7
  import { XBlockly as bt } from "x-block-lib";
8
8
  import { globalState as Ze } from "x-state-lib";
@@ -42,7 +42,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
42
42
  n = n.children.find((l) => l.key === e);
43
43
  }
44
44
  }), n;
45
- }, ye = (t, s) => {
45
+ }, he = (t, s) => {
46
46
  let n = t;
47
47
  return s.forEach((e) => {
48
48
  if (!n) {
@@ -280,23 +280,23 @@ const Yt = /* @__PURE__ */ E({
280
280
  const V = Ce(n.value, r.value);
281
281
  if (V)
282
282
  if (V.ui) {
283
- const $ = ye(e.value, r.value.slice(0, -1));
284
- if (!$)
283
+ const U = he(e.value, r.value.slice(0, -1));
284
+ if (!U)
285
285
  return;
286
- $[r.value[r.value.length - 1]] = J(V), o(r.value, $[r.value[r.value.length - 1]]);
286
+ U[r.value[r.value.length - 1]] = J(V), o(r.value, U[r.value[r.value.length - 1]]);
287
287
  } else if (V.array) {
288
- const $ = r.value[r.value.length - 1];
289
- if ($ === void 0) {
288
+ const U = r.value[r.value.length - 1];
289
+ if (U === void 0) {
290
290
  console.assert(!1, "invalid last key");
291
291
  return;
292
292
  }
293
- if (typeof $ == "string") {
294
- const O = ye(e.value, r.value.slice(0, -1));
293
+ if (typeof U == "string") {
294
+ const O = he(e.value, r.value.slice(0, -1));
295
295
  if (!O)
296
296
  return;
297
297
  O[r.value[r.value.length - 1]] = J(V), o(r.value, O[r.value[r.value.length - 1]]);
298
298
  } else {
299
- const O = ye(e.value, r.value);
299
+ const O = he(e.value, r.value);
300
300
  if (!O)
301
301
  return;
302
302
  V.children.forEach((Q) => {
@@ -304,11 +304,11 @@ const Yt = /* @__PURE__ */ E({
304
304
  });
305
305
  }
306
306
  } else {
307
- const $ = ye(e.value, r.value);
308
- if (!$)
307
+ const U = he(e.value, r.value);
308
+ if (!U)
309
309
  return;
310
310
  V.children.forEach((O) => {
311
- $[O.key] = J(V), o([...r.value, O.key], $[O.key]);
311
+ U[O.key] = J(V), o([...r.value, O.key], U[O.key]);
312
312
  });
313
313
  }
314
314
  };
@@ -318,7 +318,7 @@ const Yt = /* @__PURE__ */ E({
318
318
  });
319
319
  }, c = (S) => {
320
320
  const D = () => {
321
- const x = Ce(n.value, r.value), V = ye(e.value, r.value);
321
+ const x = Ce(n.value, r.value), V = he(e.value, r.value);
322
322
  localStorage.setItem("propTreeCopy", JSON.stringify({ property: x, object: V }));
323
323
  };
324
324
  S.push({
@@ -331,10 +331,13 @@ const Yt = /* @__PURE__ */ E({
331
331
  if (!V)
332
332
  return !1;
333
333
  try {
334
- const { property: $ } = JSON.parse(V), O = Ce(n.value, r.value);
335
- return Pt($, O);
336
- } catch ($) {
337
- console.error($);
334
+ const { property: U } = JSON.parse(V);
335
+ if (!U)
336
+ return !1;
337
+ const O = Ce(n.value, r.value);
338
+ return Pt(U, O);
339
+ } catch (U) {
340
+ console.error(U);
338
341
  }
339
342
  return !1;
340
343
  }, x = () => {
@@ -343,10 +346,10 @@ const Yt = /* @__PURE__ */ E({
343
346
  const V = localStorage.getItem("propTreeCopy");
344
347
  if (V)
345
348
  try {
346
- const { object: $ } = JSON.parse(V), O = Ce(n.value, r.value);
347
- console.log($, O);
348
- } catch ($) {
349
- console.error($);
349
+ const { object: U } = JSON.parse(V), O = Ce(n.value, r.value);
350
+ console.log(U, O);
351
+ } catch (U) {
352
+ console.error(U);
350
353
  }
351
354
  };
352
355
  D() && S.push({
@@ -358,9 +361,9 @@ const Yt = /* @__PURE__ */ E({
358
361
  return d(S), c(S), f(S), S;
359
362
  }), C = (S) => {
360
363
  i.value = S.x, u.value = S.y, r.value = S.keys;
361
- }, { open: h } = ke("propTreeMenu", C);
364
+ }, { open: h } = _e("propTreeMenu", C);
362
365
  return (S, D) => {
363
- const x = U("v-list-item-title"), V = U("v-list-item"), $ = U("v-list"), O = U("v-menu");
366
+ const x = $("v-list-item-title"), V = $("v-list-item"), U = $("v-list"), O = $("v-menu");
364
367
  return _(), B(O, {
365
368
  modelValue: P(h),
366
369
  "onUpdate:modelValue": D[0] || (D[0] = (Q) => re(h) ? h.value = Q : null),
@@ -369,17 +372,17 @@ const Yt = /* @__PURE__ */ E({
369
372
  target: a.value
370
373
  }, {
371
374
  default: R(() => [
372
- b($, null, {
375
+ b(U, null, {
373
376
  default: R(() => [
374
- (_(!0), K(fe, null, Te(v.value, (Q, pe) => (_(), B(V, {
375
- key: pe,
377
+ (_(!0), K(fe, null, Te(v.value, (Q, ge) => (_(), B(V, {
378
+ key: ge,
376
379
  link: "",
377
380
  onClick: Q.func
378
381
  }, {
379
382
  default: R(() => [
380
383
  b(x, null, {
381
384
  default: R(() => [
382
- he(F(Q.title), 1)
385
+ ke(F(Q.title), 1)
383
386
  ]),
384
387
  _: 2
385
388
  }, 1024)
@@ -416,7 +419,7 @@ const Yt = /* @__PURE__ */ E({
416
419
  l("menu", a.clientX, a.clientY);
417
420
  };
418
421
  return (a, d) => {
419
- const c = U("v-icon"), f = U("v-spacer"), v = U("v-btn"), C = ee("ripple");
422
+ const c = $("v-icon"), f = $("v-spacer"), v = $("v-btn"), C = ee("ripple");
420
423
  return j((_(), K("div", {
421
424
  class: "d-flex align-center cursor-pointer",
422
425
  style: W(i.value),
@@ -468,11 +471,11 @@ const Yt = /* @__PURE__ */ E({
468
471
  return t.hasDelete && (r = "calc(100% - 37px)"), {
469
472
  width: r
470
473
  };
471
- }), i = L(() => t.readonly), { open: u } = ke(`propTreeColorPickerMenu${$e()}`);
474
+ }), i = L(() => t.readonly), { open: u } = _e(`propTreeColorPickerMenu${$e()}`);
472
475
  return we(() => {
473
476
  u.value = !1;
474
477
  }), (r, a) => {
475
- const d = U("v-btn"), c = U("v-color-picker"), f = U("v-menu");
478
+ const d = $("v-btn"), c = $("v-color-picker"), f = $("v-menu");
476
479
  return _(), B(f, {
477
480
  modelValue: P(u),
478
481
  "onUpdate:modelValue": a[2] || (a[2] = (v) => re(u) ? u.value = v : null),
@@ -492,7 +495,7 @@ const Yt = /* @__PURE__ */ E({
492
495
  disabled: i.value
493
496
  }), {
494
497
  default: R(() => [
495
- he(F(e.value ? e.value : P(n)("x-runtime-lib.notSet")), 1)
498
+ ke(F(e.value ? e.value : P(n)("x-runtime-lib.notSet")), 1)
496
499
  ]),
497
500
  _: 1
498
501
  }, 16, ["color", "disabled"])
@@ -537,7 +540,7 @@ const Yt = /* @__PURE__ */ E({
537
540
  userSelect: "none"
538
541
  }));
539
542
  return (r, a) => {
540
- const d = U("v-icon"), c = ee("ripple");
543
+ const d = $("v-icon"), c = ee("ripple");
541
544
  return j((_(), K("div", {
542
545
  class: "d-flex align-center cursor-pointer",
543
546
  style: W(u.value),
@@ -599,7 +602,7 @@ const Yt = /* @__PURE__ */ E({
599
602
  emits: ["update:modelValue", "update:open"],
600
603
  setup(t) {
601
604
  const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
602
- const r = _e(l, u);
605
+ const r = ve(l, u);
603
606
  r && Ye(l, u, !r.collapse);
604
607
  }, i = (u) => {
605
608
  n.value = u, e.value = !1, de.emit("refreshDepends");
@@ -633,7 +636,7 @@ const Yt = /* @__PURE__ */ E({
633
636
  },
634
637
  emits: ["update:modelValue"],
635
638
  setup(t) {
636
- const { t: s } = I(), n = Qe(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
639
+ const { t: s } = I(), n = Qe(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
637
640
  let f = "100%";
638
641
  return n.mdAndUp.value && (f = "400px"), {
639
642
  background: l.value,
@@ -651,13 +654,13 @@ const Yt = /* @__PURE__ */ E({
651
654
  })), d = L(() => {
652
655
  if (!o.value)
653
656
  return s("x-runtime-lib.notSet");
654
- const f = _e(i, o.value);
657
+ const f = ve(i, o.value);
655
658
  return f ? f.name : s("x-runtime-lib.compNotAvail");
656
- }), { open: c } = ke(`propTreeCompSelectDlg${$e()}`);
659
+ }), { open: c } = _e(`propTreeCompSelectDlg${$e()}`);
657
660
  return we(() => {
658
661
  c.value = !1;
659
662
  }), (f, v) => {
660
- const C = U("v-btn"), h = U("v-sheet"), S = U("v-icon"), D = U("v-dialog");
663
+ const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
661
664
  return _(), B(D, {
662
665
  modelValue: P(c),
663
666
  "onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
@@ -673,7 +676,7 @@ const Yt = /* @__PURE__ */ E({
673
676
  density: "comfortable"
674
677
  }), {
675
678
  default: R(() => [
676
- he(F(d.value), 1)
679
+ ke(F(d.value), 1)
677
680
  ]),
678
681
  _: 1
679
682
  }, 16)
@@ -769,14 +772,14 @@ const Yt = /* @__PURE__ */ E({
769
772
  },
770
773
  emits: ["update:modelValue"],
771
774
  setup(t) {
772
- const { t: s } = I(), { sysBarAvail: n } = ve(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = T(!1), r = T(1), a = L(() => {
775
+ const { t: s } = I(), { sysBarAvail: n } = pe(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = T(!1), r = T(1), a = L(() => {
773
776
  let v = 48;
774
777
  return n.value && (v += 24), {
775
778
  position: "relative",
776
779
  background: l.value,
777
780
  height: `calc(100% - ${v}px)`
778
781
  };
779
- }), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = ke(`propTreejsonEditorDlg${$e()}`);
782
+ }), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = _e(`propTreejsonEditorDlg${$e()}`);
780
783
  we(() => {
781
784
  c.value = !1;
782
785
  });
@@ -784,7 +787,7 @@ const Yt = /* @__PURE__ */ E({
784
787
  return oe(c, (v) => {
785
788
  v || f.value?.save();
786
789
  }), (v, C) => {
787
- const h = U("v-btn"), S = U("v-sheet"), D = U("v-spacer"), x = U("v-dialog");
790
+ const h = $("v-btn"), S = $("v-sheet"), D = $("v-spacer"), x = $("v-dialog");
788
791
  return _(), B(x, {
789
792
  modelValue: P(c),
790
793
  "onUpdate:modelValue": C[4] || (C[4] = (V) => re(c) ? c.value = V : null),
@@ -801,7 +804,7 @@ const Yt = /* @__PURE__ */ E({
801
804
  density: "comfortable"
802
805
  }), {
803
806
  default: R(() => [
804
- he(F(d.value), 1)
807
+ ke(F(d.value), 1)
805
808
  ]),
806
809
  _: 1
807
810
  }, 16)
@@ -868,7 +871,7 @@ const Yt = /* @__PURE__ */ E({
868
871
  }),
869
872
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
870
873
  setup(t, { emit: s }) {
871
- const { t: n } = I(), { isMobile: e } = ve(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value]?.types[t.types]), r = T(0), a = L(() => {
874
+ const { t: n } = I(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value]?.types[t.types]), r = T(0), a = L(() => {
872
875
  const C = [];
873
876
  return u.value?.forEach(({ title: h }, S) => {
874
877
  C.push({
@@ -900,13 +903,13 @@ const Yt = /* @__PURE__ */ E({
900
903
  }), oe(f, (C) => {
901
904
  d.value?.ui === "pixelInput" ? l.value = C + "px" : d.value?.ui === "percentInput" && (l.value = C + "%");
902
905
  }), (C, h) => {
903
- const S = U("v-select"), D = U("v-number-input"), x = U("v-btn"), V = ee("ripple");
906
+ const S = $("v-select"), D = $("v-number-input"), x = $("v-btn"), V = ee("ripple");
904
907
  return _(), K("div", mn, [
905
908
  q("div", fn, [
906
909
  j(b(S, {
907
910
  modelValue: r.value,
908
911
  "onUpdate:modelValue": [
909
- h[0] || (h[0] = ($) => r.value = $),
912
+ h[0] || (h[0] = (U) => r.value = U),
910
913
  c
911
914
  ],
912
915
  density: "compact",
@@ -924,7 +927,7 @@ const Yt = /* @__PURE__ */ E({
924
927
  d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? j((_(), B(D, {
925
928
  key: 0,
926
929
  modelValue: f.value,
927
- "onUpdate:modelValue": h[1] || (h[1] = ($) => f.value = $),
930
+ "onUpdate:modelValue": h[1] || (h[1] = (U) => f.value = U),
928
931
  "control-variant": "stacked",
929
932
  density: "compact",
930
933
  "hide-details": "",
@@ -949,7 +952,7 @@ const Yt = /* @__PURE__ */ E({
949
952
  density: "compact",
950
953
  icon: "mdi-minus",
951
954
  variant: "text",
952
- onClick: h[2] || (h[2] = X(($) => o("delete"), ["stop"]))
955
+ onClick: h[2] || (h[2] = X((U) => o("delete"), ["stop"]))
953
956
  })) : G("", !0)
954
957
  ]);
955
958
  };
@@ -970,7 +973,7 @@ const Yt = /* @__PURE__ */ E({
970
973
  }),
971
974
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
972
975
  setup(t, { emit: s }) {
973
- const { isMobile: n } = ve(), e = z(t, "modelValue"), l = s, o = async (i) => {
976
+ const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
974
977
  if (!i || t.readonly || !n())
975
978
  return;
976
979
  const u = await ze({
@@ -984,7 +987,7 @@ const Yt = /* @__PURE__ */ E({
984
987
  u !== void 0 && (e.value = u);
985
988
  };
986
989
  return (i, u) => {
987
- const r = U("v-number-input"), a = U("v-btn"), d = ee("ripple");
990
+ const r = $("v-number-input"), a = $("v-btn"), d = ee("ripple");
988
991
  return _(), K("div", pn, [
989
992
  j(b(r, {
990
993
  modelValue: e.value,
@@ -1037,7 +1040,7 @@ const Yt = /* @__PURE__ */ E({
1037
1040
  }), u;
1038
1041
  });
1039
1042
  return (u, r) => {
1040
- const a = U("v-select"), d = U("v-btn"), c = ee("ripple");
1043
+ const a = $("v-select"), d = $("v-btn"), c = ee("ripple");
1041
1044
  return _(), K("div", yn, [
1042
1045
  j(b(a, {
1043
1046
  modelValue: e.value,
@@ -1083,7 +1086,7 @@ const Yt = /* @__PURE__ */ E({
1083
1086
  userSelect: "none"
1084
1087
  }));
1085
1088
  return (r, a) => {
1086
- const d = U("v-icon"), c = ee("ripple");
1089
+ const d = $("v-icon"), c = ee("ripple");
1087
1090
  return j((_(), K("div", {
1088
1091
  class: "d-flex align-center cursor-pointer",
1089
1092
  style: W(u.value),
@@ -1145,7 +1148,7 @@ const Yt = /* @__PURE__ */ E({
1145
1148
  emits: ["update:modelValue", "update:open"],
1146
1149
  setup(t) {
1147
1150
  const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = it(), o = (u) => {
1148
- const r = _e(l, u);
1151
+ const r = ve(l, u);
1149
1152
  r && Ye(l, u, !r.collapse);
1150
1153
  }, i = (u) => {
1151
1154
  n.value = u, e.value = !1;
@@ -1179,7 +1182,7 @@ const Yt = /* @__PURE__ */ E({
1179
1182
  },
1180
1183
  emits: ["update:modelValue"],
1181
1184
  setup(t) {
1182
- const { t: s } = I(), n = Qe(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
1185
+ const { t: s } = I(), n = Qe(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
1183
1186
  let f = "100%";
1184
1187
  return n.mdAndUp.value && (f = "400px"), {
1185
1188
  background: l.value,
@@ -1197,13 +1200,13 @@ const Yt = /* @__PURE__ */ E({
1197
1200
  })), d = L(() => {
1198
1201
  if (!o.value)
1199
1202
  return s("x-runtime-lib.notSet");
1200
- const f = _e(i, o.value);
1203
+ const f = ve(i, o.value);
1201
1204
  return f ? f.name : s("x-runtime-lib.slotNotAvail");
1202
- }), { open: c } = ke(`propTreeSlotSelectDlg${$e()}`);
1205
+ }), { open: c } = _e(`propTreeSlotSelectDlg${$e()}`);
1203
1206
  return we(() => {
1204
1207
  c.value = !1;
1205
1208
  }), (f, v) => {
1206
- const C = U("v-btn"), h = U("v-sheet"), S = U("v-icon"), D = U("v-dialog");
1209
+ const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
1207
1210
  return _(), B(D, {
1208
1211
  modelValue: P(c),
1209
1212
  "onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
@@ -1219,7 +1222,7 @@ const Yt = /* @__PURE__ */ E({
1219
1222
  density: "comfortable"
1220
1223
  }), {
1221
1224
  default: R(() => [
1222
- he(F(d.value), 1)
1225
+ ke(F(d.value), 1)
1223
1226
  ]),
1224
1227
  _: 1
1225
1228
  }, 16)
@@ -1285,7 +1288,7 @@ const Yt = /* @__PURE__ */ E({
1285
1288
  }),
1286
1289
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1287
1290
  setup(t, { emit: s }) {
1288
- const { isMobile: n } = ve(), e = z(t, "modelValue"), l = s, o = async (i) => {
1291
+ const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
1289
1292
  if (!i || t.readonly || !n())
1290
1293
  return;
1291
1294
  const u = await Vt({
@@ -1295,7 +1298,7 @@ const Yt = /* @__PURE__ */ E({
1295
1298
  u !== void 0 && (e.value = u);
1296
1299
  };
1297
1300
  return (i, u) => {
1298
- const r = U("v-text-field"), a = U("v-btn"), d = ee("ripple");
1301
+ const r = $("v-text-field"), a = $("v-btn"), d = ee("ripple");
1299
1302
  return _(), K("div", bn, [
1300
1303
  j(b(r, {
1301
1304
  modelValue: e.value,
@@ -1337,7 +1340,7 @@ const Yt = /* @__PURE__ */ E({
1337
1340
  setup(t, { emit: s }) {
1338
1341
  const n = z(t, "modelValue"), e = s;
1339
1342
  return (l, o) => {
1340
- const i = U("v-switch"), u = U("v-btn");
1343
+ const i = $("v-switch"), u = $("v-btn");
1341
1344
  return _(), K("div", Dn, [
1342
1345
  b(i, {
1343
1346
  modelValue: n.value,
@@ -1712,7 +1715,7 @@ function zn(t, s, n) {
1712
1715
  }
1713
1716
  const d = wt(s.value, n.value), c = [];
1714
1717
  for (let h = 0; h < a.groups[d].length; h++) {
1715
- const S = a.groups[d][h], D = _e(l, S.key);
1718
+ const S = a.groups[d][h], D = ve(l, S.key);
1716
1719
  c.push({
1717
1720
  id: S.key,
1718
1721
  type: 0,
@@ -1723,14 +1726,14 @@ function zn(t, s, n) {
1723
1726
  });
1724
1727
  let x = 0;
1725
1728
  for (const V of S.items) {
1726
- const $ = Mt[V];
1727
- if ($ && !$.internal && $.slots)
1728
- for (const O of $.slots) {
1729
- const Q = Re("elementSlot", $.key, O.key), pe = `${e.global.t($.name)} / ${e.global.t(O.name)}`;
1729
+ const U = Mt[V];
1730
+ if (U && !U.internal && U.slots)
1731
+ for (const O of U.slots) {
1732
+ const Q = Re("elementSlot", U.key, O.key), ge = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
1730
1733
  c.push({
1731
1734
  id: Q,
1732
1735
  type: 1,
1733
- name: pe,
1736
+ name: ge,
1734
1737
  position: x++,
1735
1738
  group: S.key
1736
1739
  });
@@ -1739,7 +1742,7 @@ function zn(t, s, n) {
1739
1742
  }
1740
1743
  const { activeApp: f, depends: v } = Ze.app;
1741
1744
  for (const { id: h, name: S, position: D } of f.compGroups) {
1742
- const x = l.value.find((V) => V.id);
1745
+ const x = ve(l, h);
1743
1746
  c.push({
1744
1747
  id: h,
1745
1748
  type: 0,
@@ -1849,7 +1852,7 @@ const Gn = /* @__PURE__ */ E({
1849
1852
  d,
1850
1853
  u,
1851
1854
  r
1852
- ), { renderUiDummy: x } = Nn(c), { renderUiStrInput: V } = Hn(c), { renderUiNumInput: $ } = qn(c), { renderUiSwitch: O } = Xn(c), { renderUiSelect: Q } = En(c), { renderUiColorPicker: pe } = Tn(c), { renderUiJsonEditor: ut } = Bn(c), { renderUiMultiTypes: rt } = On(c), { renderUiCompSelect: at } = Ln(c), { renderUiSlotSelect: ct } = Jn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
1855
+ ), { renderUiDummy: x } = Nn(c), { renderUiStrInput: V } = Hn(c), { renderUiNumInput: U } = qn(c), { renderUiSwitch: O } = Xn(c), { renderUiSelect: Q } = En(c), { renderUiColorPicker: ge } = Tn(c), { renderUiJsonEditor: ut } = Bn(c), { renderUiMultiTypes: rt } = On(c), { renderUiCompSelect: at } = Ln(c), { renderUiSlotSelect: ct } = Jn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
1853
1856
  p,
1854
1857
  m,
1855
1858
  y,
@@ -1881,7 +1884,7 @@ const Gn = /* @__PURE__ */ E({
1881
1884
  w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[m.key])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
1882
1885
  let ie = n(m.name);
1883
1886
  g.collapse && me(d.value, p) && (ie += " *");
1884
- const ge = k(Ue, {
1887
+ const ye = k(Ue, {
1885
1888
  title: ie,
1886
1889
  collapse: g.collapse,
1887
1890
  hasCreate: !0,
@@ -1983,7 +1986,7 @@ const Gn = /* @__PURE__ */ E({
1983
1986
  },
1984
1987
  (() => {
1985
1988
  const M = [];
1986
- return M.push(ge), g.collapse || M.push(Y), M;
1989
+ return M.push(ye), g.collapse || M.push(Y), M;
1987
1990
  })()
1988
1991
  );
1989
1992
  }, mt = (p, m, y, g, w, A) => {
@@ -2008,7 +2011,7 @@ const Gn = /* @__PURE__ */ E({
2008
2011
  onDelete: () => {
2009
2012
  w === void 0 || A || (y.splice(w, 1), c(p.slice(0, -1), y));
2010
2013
  }
2011
- }), ge = k(
2014
+ }), ye = k(
2012
2015
  "div",
2013
2016
  {
2014
2017
  style: {
@@ -2045,7 +2048,7 @@ const Gn = /* @__PURE__ */ E({
2045
2048
  },
2046
2049
  (() => {
2047
2050
  const Y = [];
2048
- return Y.push(ie), g.collapse || Y.push(ge), Y;
2051
+ return Y.push(ie), g.collapse || Y.push(ye), Y;
2049
2052
  })()
2050
2053
  );
2051
2054
  }, ft = (p, m, y, g, w, A) => {
@@ -2059,7 +2062,7 @@ const Gn = /* @__PURE__ */ E({
2059
2062
  w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[w])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
2060
2063
  let ie = n(m.name);
2061
2064
  g.collapse && me(d.value, p) && (ie += " *");
2062
- const ge = k(Ue, {
2065
+ const ye = k(Ue, {
2063
2066
  title: ie,
2064
2067
  collapse: g.collapse,
2065
2068
  hasCreate: !0,
@@ -2097,14 +2100,14 @@ const Gn = /* @__PURE__ */ E({
2097
2100
  },
2098
2101
  (() => {
2099
2102
  const M = [];
2100
- return M.push(ge), g.collapse || M.push(Y), M;
2103
+ return M.push(ye), g.collapse || M.push(Y), M;
2101
2104
  })()
2102
2105
  );
2103
2106
  }, vt = (p, m, y, g, w) => {
2104
2107
  if (!m.ui)
2105
2108
  return console.assert(!1), k("div", "renderLeafScalar property ui must be valid");
2106
2109
  let A;
2107
- return m.ui === "dummy" ? A = x(p, m, y, g, w) : m.ui === "strInput" ? A = V(p, m, y, g, w) : m.ui === "numInput" ? A = $(p, m, y, g, w) : m.ui === "switch" ? A = O(p, m, y, g, w) : m.ui === "select" ? A = Q(p, m, y, g, w) : m.ui === "colorPicker" ? A = pe(p, m, y, g, w) : m.ui === "jsonEditor" ? A = ut(p, m, y, g, w) : m.ui === "multiTypes" ? A = rt(p, m, y, g, w) : m.ui === "compSelect" ? A = at(p, m, y, g, w) : m.ui === "slotSelect" ? A = ct(p, m, y, g, w) : console.assert(!1, "renderLeafScalar not implemented"), A ? D(p, m, A) : k("div");
2110
+ return m.ui === "dummy" ? A = x(p, m, y, g, w) : m.ui === "strInput" ? A = V(p, m, y, g, w) : m.ui === "numInput" ? A = U(p, m, y, g, w) : m.ui === "switch" ? A = O(p, m, y, g, w) : m.ui === "select" ? A = Q(p, m, y, g, w) : m.ui === "colorPicker" ? A = ge(p, m, y, g, w) : m.ui === "jsonEditor" ? A = ut(p, m, y, g, w) : m.ui === "multiTypes" ? A = rt(p, m, y, g, w) : m.ui === "compSelect" ? A = at(p, m, y, g, w) : m.ui === "slotSelect" ? A = ct(p, m, y, g, w) : console.assert(!1, "renderLeafScalar not implemented"), A ? D(p, m, A) : k("div");
2108
2111
  }, pt = () => k(
2109
2112
  "div",
2110
2113
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.7.20",
4
+ "version": "0.7.22",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -26,11 +26,11 @@
26
26
  "vue": "^3.5.23",
27
27
  "vue-i18n": "^11.1.12",
28
28
  "vuetify": "^3.10.9",
29
- "x-block-lib": "^0.8.48",
30
- "x-essential-lib": "^0.9.3",
29
+ "x-block-lib": "^0.8.51",
30
+ "x-essential-lib": "^0.9.13",
31
31
  "x-group-list": "^0.4.7",
32
- "x-runtime-lib": "^0.8.94",
33
- "x-state-lib": "^0.3.26"
32
+ "x-runtime-lib": "^0.8.97",
33
+ "x-state-lib": "^0.3.28"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@eslint/js": "^9.39.1",