x-prop-tree 0.6.14 → 0.6.15

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 +338 -329
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as Te, inject as Se, defineComponent as K, ref as R, computed as k, resolveComponent as x, createBlock as F, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as le, createElementVNode as z, createCommentVNode as I, renderSlot as jn, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as En, mergeProps as qt, watchEffect as mt, watch as Oe, reactive as Nn, onMounted as Bn, onBeforeUnmount as Rn } from "vue";
1
+ import { provide as Te, inject as Se, defineComponent as K, ref as R, computed as k, resolveComponent as M, createBlock as F, openBlock as w, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as le, createElementVNode as z, createCommentVNode as I, renderSlot as jn, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as En, mergeProps as qt, watchEffect as mt, watch as Oe, reactive as Nn, onMounted as Bn, onBeforeUnmount as Rn } from "vue";
2
2
  import { useI18n as ue } from "vue-i18n";
3
3
  import { useViewStack as ut, useColor as we, eventBus as _e, useSystem as kn } from "x-essential-lib";
4
4
  import { getPropDefault as N, pkgs as zt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
@@ -149,11 +149,11 @@ var Yt = Object.prototype, Vr = Yt.hasOwnProperty, Mr = Yt.propertyIsEnumerable,
149
149
  function Lr() {
150
150
  return !1;
151
151
  }
152
- var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Qt && typeof module == "object" && module && !module.nodeType && module, Dr = $t && $t.exports === Qt, Tt = Dr ? Y.Buffer : void 0, jr = Tt ? Tt.isBuffer : void 0, Ge = jr || Lr, Er = "[object Arguments]", Nr = "[object Array]", Br = "[object Boolean]", Rr = "[object Date]", kr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", qr = "[object RegExp]", zr = "[object Set]", Ir = "[object String]", Xr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Jr = "[object DataView]", Wr = "[object Float32Array]", Yr = "[object Float64Array]", Qr = "[object Int8Array]", eo = "[object Int16Array]", to = "[object Int32Array]", no = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", io = "[object Uint32Array]", M = {};
153
- M[Wr] = M[Yr] = M[Qr] = M[eo] = M[to] = M[no] = M[ro] = M[oo] = M[io] = !0;
154
- M[Er] = M[Nr] = M[Zr] = M[Br] = M[Jr] = M[Rr] = M[kr] = M[Fr] = M[Hr] = M[Gr] = M[Kr] = M[qr] = M[zr] = M[Ir] = M[Xr] = !1;
152
+ var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Qt && typeof module == "object" && module && !module.nodeType && module, Dr = $t && $t.exports === Qt, Tt = Dr ? Y.Buffer : void 0, jr = Tt ? Tt.isBuffer : void 0, Ge = jr || Lr, Er = "[object Arguments]", Nr = "[object Array]", Br = "[object Boolean]", Rr = "[object Date]", kr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", qr = "[object RegExp]", zr = "[object Set]", Ir = "[object String]", Xr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Jr = "[object DataView]", Wr = "[object Float32Array]", Yr = "[object Float64Array]", Qr = "[object Int8Array]", eo = "[object Int16Array]", to = "[object Int32Array]", no = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", io = "[object Uint32Array]", U = {};
153
+ U[Wr] = U[Yr] = U[Qr] = U[eo] = U[to] = U[no] = U[ro] = U[oo] = U[io] = !0;
154
+ U[Er] = U[Nr] = U[Zr] = U[Br] = U[Jr] = U[Rr] = U[kr] = U[Fr] = U[Hr] = U[Gr] = U[Kr] = U[qr] = U[zr] = U[Ir] = U[Xr] = !1;
155
155
  function lo(e) {
156
- return de(e) && Jt(e.length) && !!M[Le(e)];
156
+ return de(e) && Jt(e.length) && !!U[Le(e)];
157
157
  }
158
158
  function ft(e) {
159
159
  return function(t) {
@@ -471,9 +471,9 @@ var Dt = $e && $e.isMap, ki = Dt ? ft(Dt) : Ri, Fi = "[object Set]";
471
471
  function Hi(e) {
472
472
  return de(e) && Z(e) == Fi;
473
473
  }
474
- var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]", qi = "[object Boolean]", zi = "[object Date]", Ii = "[object Error]", ln = "[object Function]", Xi = "[object GeneratorFunction]", Zi = "[object Map]", Ji = "[object Number]", sn = "[object Object]", Wi = "[object RegExp]", Yi = "[object Set]", Qi = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", il = "[object Float64Array]", ll = "[object Int8Array]", sl = "[object Int16Array]", al = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", O = {};
475
- O[on] = O[Ki] = O[nl] = O[rl] = O[qi] = O[zi] = O[ol] = O[il] = O[ll] = O[sl] = O[al] = O[Zi] = O[Ji] = O[sn] = O[Wi] = O[Yi] = O[Qi] = O[el] = O[ul] = O[cl] = O[fl] = O[dl] = !0;
476
- O[Ii] = O[ln] = O[tl] = !1;
474
+ var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]", qi = "[object Boolean]", zi = "[object Date]", Ii = "[object Error]", ln = "[object Function]", Xi = "[object GeneratorFunction]", Zi = "[object Map]", Ji = "[object Number]", sn = "[object Object]", Wi = "[object RegExp]", Yi = "[object Set]", Qi = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", il = "[object Float64Array]", ll = "[object Int8Array]", sl = "[object Int16Array]", al = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", V = {};
475
+ V[on] = V[Ki] = V[nl] = V[rl] = V[qi] = V[zi] = V[ol] = V[il] = V[ll] = V[sl] = V[al] = V[Zi] = V[Ji] = V[sn] = V[Wi] = V[Yi] = V[Qi] = V[el] = V[ul] = V[cl] = V[fl] = V[dl] = !0;
476
+ V[Ii] = V[ln] = V[tl] = !1;
477
477
  function ke(e, t, n, r, i, o) {
478
478
  var l;
479
479
  if (l !== void 0)
@@ -490,23 +490,23 @@ function ke(e, t, n, r, i, o) {
490
490
  if (a == sn || a == on || s && !i)
491
491
  l = s ? {} : Ni(e);
492
492
  else {
493
- if (!O[a])
493
+ if (!V[a])
494
494
  return i ? e : {};
495
495
  l = Ei(e, a);
496
496
  }
497
497
  }
498
498
  o || (o = new te());
499
- var p = o.get(e);
500
- if (p)
501
- return p;
502
- o.set(e, l), Gi(e) ? e.forEach(function(v) {
503
- l.add(ke(v, t, n, v, e, o));
504
- }) : ki(e) && e.forEach(function(v, h) {
505
- l.set(h, ke(v, t, n, h, e, o));
499
+ var v = o.get(e);
500
+ if (v)
501
+ return v;
502
+ o.set(e, l), Gi(e) ? e.forEach(function(p) {
503
+ l.add(ke(p, t, n, p, e, o));
504
+ }) : ki(e) && e.forEach(function(p, h) {
505
+ l.set(h, ke(p, t, n, h, e, o));
506
506
  });
507
- var f = ot, d = u ? void 0 : f(e);
508
- return yr(d || e, function(v, h) {
509
- d && (h = v, v = e[h]), wr(l, h, ke(v, t, n, h, e, o));
507
+ var d = ot, f = u ? void 0 : d(e);
508
+ return yr(f || e, function(p, h) {
509
+ f && (h = p, p = e[h]), wr(l, h, ke(p, t, n, h, e, o));
510
510
  }), l;
511
511
  }
512
512
  var pl = 1, vl = 4;
@@ -541,34 +541,34 @@ function un(e, t, n, r, i, o) {
541
541
  var l = n & bl, u = e.length, a = t.length;
542
542
  if (u != a && !(l && a > u))
543
543
  return !1;
544
- var s = o.get(e), p = o.get(t);
545
- if (s && p)
546
- return s == t && p == e;
547
- var f = -1, d = !0, v = n & $l ? new qe() : void 0;
548
- for (o.set(e, t), o.set(t, e); ++f < u; ) {
549
- var h = e[f], V = t[f];
544
+ var s = o.get(e), v = o.get(t);
545
+ if (s && v)
546
+ return s == t && v == e;
547
+ var d = -1, f = !0, p = n & $l ? new qe() : void 0;
548
+ for (o.set(e, t), o.set(t, e); ++d < u; ) {
549
+ var h = e[d], P = t[d];
550
550
  if (r)
551
- var w = l ? r(V, h, f, t, e, o) : r(h, V, f, e, t, o);
552
- if (w !== void 0) {
553
- if (w)
551
+ var A = l ? r(P, h, d, t, e, o) : r(h, P, d, e, t, o);
552
+ if (A !== void 0) {
553
+ if (A)
554
554
  continue;
555
- d = !1;
555
+ f = !1;
556
556
  break;
557
557
  }
558
- if (v) {
559
- if (!hl(t, function(A, b) {
560
- if (!_l(v, b) && (h === A || i(h, A, n, r, o)))
561
- return v.push(b);
558
+ if (p) {
559
+ if (!hl(t, function(C, $) {
560
+ if (!_l(p, $) && (h === C || i(h, C, n, r, o)))
561
+ return p.push($);
562
562
  })) {
563
- d = !1;
563
+ f = !1;
564
564
  break;
565
565
  }
566
- } else if (!(h === V || i(h, V, n, r, o))) {
567
- d = !1;
566
+ } else if (!(h === P || i(h, P, n, r, o))) {
567
+ f = !1;
568
568
  break;
569
569
  }
570
570
  }
571
- return o.delete(e), o.delete(t), d;
571
+ return o.delete(e), o.delete(t), f;
572
572
  }
573
573
  function Tl(e) {
574
574
  var t = -1, n = Array(e.size);
@@ -610,8 +610,8 @@ function Nl(e, t, n, r, i, o, l) {
610
610
  if (s)
611
611
  return s == t;
612
612
  r |= Al, l.set(e, t);
613
- var p = un(u(e), u(t), r, i, o, l);
614
- return l.delete(e), p;
613
+ var v = un(u(e), u(t), r, i, o, l);
614
+ return l.delete(e), v;
615
615
  case Dl:
616
616
  if (tt)
617
617
  return tt.call(e) == tt.call(t);
@@ -620,56 +620,56 @@ function Nl(e, t, n, r, i, o, l) {
620
620
  }
621
621
  var Bl = 1, Rl = Object.prototype, kl = Rl.hasOwnProperty;
622
622
  function Fl(e, t, n, r, i, o) {
623
- var l = n & Bl, u = ot(e), a = u.length, s = ot(t), p = s.length;
624
- if (a != p && !l)
623
+ var l = n & Bl, u = ot(e), a = u.length, s = ot(t), v = s.length;
624
+ if (a != v && !l)
625
625
  return !1;
626
- for (var f = a; f--; ) {
627
- var d = u[f];
628
- if (!(l ? d in t : kl.call(t, d)))
626
+ for (var d = a; d--; ) {
627
+ var f = u[d];
628
+ if (!(l ? f in t : kl.call(t, f)))
629
629
  return !1;
630
630
  }
631
- var v = o.get(e), h = o.get(t);
632
- if (v && h)
633
- return v == t && h == e;
634
- var V = !0;
631
+ var p = o.get(e), h = o.get(t);
632
+ if (p && h)
633
+ return p == t && h == e;
634
+ var P = !0;
635
635
  o.set(e, t), o.set(t, e);
636
- for (var w = l; ++f < a; ) {
637
- d = u[f];
638
- var A = e[d], b = t[d];
636
+ for (var A = l; ++d < a; ) {
637
+ f = u[d];
638
+ var C = e[f], $ = t[f];
639
639
  if (r)
640
- var U = l ? r(b, A, d, t, e, o) : r(A, b, d, e, t, o);
641
- if (!(U === void 0 ? A === b || i(A, b, n, r, o) : U)) {
642
- V = !1;
640
+ var O = l ? r($, C, f, t, e, o) : r(C, $, f, e, t, o);
641
+ if (!(O === void 0 ? C === $ || i(C, $, n, r, o) : O)) {
642
+ P = !1;
643
643
  break;
644
644
  }
645
- w || (w = d == "constructor");
645
+ A || (A = f == "constructor");
646
646
  }
647
- if (V && !w) {
648
- var C = e.constructor, L = t.constructor;
649
- C != L && "constructor" in e && "constructor" in t && !(typeof C == "function" && C instanceof C && typeof L == "function" && L instanceof L) && (V = !1);
647
+ if (P && !A) {
648
+ var T = e.constructor, L = t.constructor;
649
+ T != L && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof L == "function" && L instanceof L) && (P = !1);
650
650
  }
651
- return o.delete(e), o.delete(t), V;
651
+ return o.delete(e), o.delete(t), P;
652
652
  }
653
653
  var Hl = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ne = "[object Object]", Gl = Object.prototype, Rt = Gl.hasOwnProperty;
654
654
  function Kl(e, t, n, r, i, o) {
655
655
  var l = Ve(e), u = Ve(t), a = l ? Bt : Z(e), s = u ? Bt : Z(t);
656
656
  a = a == Nt ? Ne : a, s = s == Nt ? Ne : s;
657
- var p = a == Ne, f = s == Ne, d = a == s;
658
- if (d && Ge(e)) {
657
+ var v = a == Ne, d = s == Ne, f = a == s;
658
+ if (f && Ge(e)) {
659
659
  if (!Ge(t))
660
660
  return !1;
661
- l = !0, p = !1;
661
+ l = !0, v = !1;
662
662
  }
663
- if (d && !p)
663
+ if (f && !v)
664
664
  return o || (o = new te()), l || tn(e) ? un(e, t, n, r, i, o) : Nl(e, t, a, n, r, i, o);
665
665
  if (!(n & Hl)) {
666
- var v = p && Rt.call(e, "__wrapped__"), h = f && Rt.call(t, "__wrapped__");
667
- if (v || h) {
668
- var V = v ? e.value() : e, w = h ? t.value() : t;
669
- return o || (o = new te()), i(V, w, n, r, o);
666
+ var p = v && Rt.call(e, "__wrapped__"), h = d && Rt.call(t, "__wrapped__");
667
+ if (p || h) {
668
+ var P = p ? e.value() : e, A = h ? t.value() : t;
669
+ return o || (o = new te()), i(P, A, n, r, o);
670
670
  }
671
671
  }
672
- return d ? (o || (o = new te()), Fl(e, t, n, r, i, o)) : !1;
672
+ return f ? (o || (o = new te()), Fl(e, t, n, r, i, o)) : !1;
673
673
  }
674
674
  function cn(e, t, n, r, i) {
675
675
  return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Kl(e, t, n, r, cn, i);
@@ -792,19 +792,19 @@ const Be = (e, t) => {
792
792
  children: {}
793
793
  });
794
794
  const s = r.children[a];
795
- t.children.forEach((p) => {
795
+ t.children.forEach((v) => {
796
796
  if (!s.children || !pt(s.children)) {
797
797
  console.assert(!1);
798
798
  return;
799
799
  }
800
- s.children[p.key] = {
800
+ s.children[v.key] = {
801
801
  change: !1,
802
- children: p.array ? [] : {}
802
+ children: v.array ? [] : {}
803
803
  }, We(
804
804
  e,
805
- p,
805
+ v,
806
806
  u[a],
807
- s.children[p.key],
807
+ s.children[v.key],
808
808
  i,
809
809
  a,
810
810
  !0
@@ -910,111 +910,111 @@ function _n() {
910
910
  const cs = /* @__PURE__ */ K({
911
911
  __name: "menu",
912
912
  setup(e) {
913
- const { t } = ue(), n = ns(), r = os(), i = ls(), o = as(), l = R(0), u = R(0), a = R([]), s = k(() => [l.value, u.value]), p = (w) => {
914
- const A = () => !(a.value.length <= 0 || !be(i.value, a.value)), b = () => {
915
- if (!A())
913
+ const { t } = ue(), n = ns(), r = os(), i = ls(), o = as(), l = R(0), u = R(0), a = R([]), s = k(() => [l.value, u.value]), v = (A) => {
914
+ const C = () => !(a.value.length <= 0 || !be(i.value, a.value)), $ = () => {
915
+ if (!C())
916
916
  return;
917
- const U = Be(n.value, a.value);
918
- if (U)
919
- if (U.ui) {
920
- const C = Pe(r.value, a.value.slice(0, -1));
921
- if (!C)
917
+ const O = Be(n.value, a.value);
918
+ if (O)
919
+ if (O.ui) {
920
+ const T = Pe(r.value, a.value.slice(0, -1));
921
+ if (!T)
922
922
  return;
923
- C[a.value.at(-1)] = N(U), o(a.value, C[a.value.at(-1)]);
924
- } else if (U.array) {
925
- const C = a.value.at(-1);
926
- if (C === void 0) {
923
+ T[a.value.at(-1)] = N(O), o(a.value, T[a.value.at(-1)]);
924
+ } else if (O.array) {
925
+ const T = a.value.at(-1);
926
+ if (T === void 0) {
927
927
  console.assert(!1, "invalid last key");
928
928
  return;
929
929
  }
930
- if (typeof C == "string") {
930
+ if (typeof T == "string") {
931
931
  const L = Pe(r.value, a.value.slice(0, -1));
932
932
  if (!L)
933
933
  return;
934
- L[a.value.at(-1)] = N(U), o(a.value, L[a.value.at(-1)]);
934
+ L[a.value.at(-1)] = N(O), o(a.value, L[a.value.at(-1)]);
935
935
  } else {
936
936
  const L = Pe(r.value, a.value);
937
937
  if (!L)
938
938
  return;
939
- U.children.forEach((W) => {
940
- L[W.key] = N(U), o([...a.value, W.key], L[W.key]);
939
+ O.children.forEach((W) => {
940
+ L[W.key] = N(O), o([...a.value, W.key], L[W.key]);
941
941
  });
942
942
  }
943
943
  } else {
944
- const C = Pe(r.value, a.value);
945
- if (!C)
944
+ const T = Pe(r.value, a.value);
945
+ if (!T)
946
946
  return;
947
- U.children.forEach((L) => {
948
- C[L.key] = N(U), o([...a.value, L.key], C[L.key]);
947
+ O.children.forEach((L) => {
948
+ T[L.key] = N(O), o([...a.value, L.key], T[L.key]);
949
949
  });
950
950
  }
951
951
  };
952
- A() && w.push({
952
+ C() && A.push({
953
953
  title: t("x-prop-tree.reset"),
954
- func: b
954
+ func: $
955
955
  });
956
- }, f = (w) => {
957
- const A = () => {
958
- const b = Be(n.value, a.value), U = Pe(r.value, a.value);
959
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: b, object: U }));
956
+ }, d = (A) => {
957
+ const C = () => {
958
+ const $ = Be(n.value, a.value), O = Pe(r.value, a.value);
959
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: $, object: O }));
960
960
  };
961
- w.push({
961
+ A.push({
962
962
  title: t("x-prop-tree.copy"),
963
- func: A
963
+ func: C
964
964
  });
965
- }, d = (w) => {
966
- const A = () => {
967
- const U = localStorage.getItem("propTreeCopy");
968
- if (!U)
965
+ }, f = (A) => {
966
+ const C = () => {
967
+ const O = localStorage.getItem("propTreeCopy");
968
+ if (!O)
969
969
  return !1;
970
970
  try {
971
- const { prop: C } = JSON.parse(U), L = Be(n.value, a.value);
972
- return Il(C, L);
973
- } catch (C) {
974
- console.error(C);
971
+ const { prop: T } = JSON.parse(O), L = Be(n.value, a.value);
972
+ return Il(T, L);
973
+ } catch (T) {
974
+ console.error(T);
975
975
  }
976
976
  return !1;
977
- }, b = () => {
978
- if (!A())
977
+ }, $ = () => {
978
+ if (!C())
979
979
  return;
980
- const U = localStorage.getItem("propTreeCopy");
981
- if (U)
980
+ const O = localStorage.getItem("propTreeCopy");
981
+ if (O)
982
982
  try {
983
- const { object: C } = JSON.parse(U), L = Be(n.value, a.value);
984
- console.log(C, L);
985
- } catch (C) {
986
- console.error(C);
983
+ const { object: T } = JSON.parse(O), L = Be(n.value, a.value);
984
+ console.log(T, L);
985
+ } catch (T) {
986
+ console.error(T);
987
987
  }
988
988
  };
989
- A() && w.push({
989
+ C() && A.push({
990
990
  title: t("x-prop-tree.paste"),
991
- func: b
991
+ func: $
992
992
  });
993
- }, v = k(() => {
994
- const w = [];
995
- return p(w), f(w), d(w), w;
996
- }), h = (w) => {
997
- l.value = w.x, u.value = w.y, a.value = w.keys;
998
- }, { open: V } = ut("propTreeMenu", h);
999
- return (w, A) => {
1000
- const b = x("v-list-item-title"), U = x("v-list-item"), C = x("v-list"), L = x("v-menu");
1001
- return S(), F(L, {
1002
- modelValue: E(V),
1003
- "onUpdate:modelValue": A[0] || (A[0] = (W) => Fe(V) ? V.value = W : null),
993
+ }, p = k(() => {
994
+ const A = [];
995
+ return v(A), d(A), f(A), A;
996
+ }), h = (A) => {
997
+ l.value = A.x, u.value = A.y, a.value = A.keys;
998
+ }, { open: P } = ut("propTreeMenu", h);
999
+ return (A, C) => {
1000
+ const $ = M("v-list-item-title"), O = M("v-list-item"), T = M("v-list"), L = M("v-menu");
1001
+ return w(), F(L, {
1002
+ modelValue: E(P),
1003
+ "onUpdate:modelValue": C[0] || (C[0] = (W) => Fe(P) ? P.value = W : null),
1004
1004
  "location-strategy": "connected",
1005
1005
  target: s.value,
1006
1006
  scrim: "transparent"
1007
1007
  }, {
1008
1008
  default: J(() => [
1009
- B(C, null, {
1009
+ B(T, null, {
1010
1010
  default: J(() => [
1011
- (S(!0), H(He, null, Ht(v.value, (W, Ye) => (S(), F(U, {
1011
+ (w(!0), H(He, null, Ht(p.value, (W, Ye) => (w(), F(O, {
1012
1012
  key: Ye,
1013
1013
  link: "",
1014
1014
  onClick: W.func
1015
1015
  }, {
1016
1016
  default: J(() => [
1017
- B(b, null, {
1017
+ B($, null, {
1018
1018
  default: J(() => [
1019
1019
  at(ne(W.title), 1)
1020
1020
  ]),
@@ -1054,36 +1054,36 @@ const Re = /* @__PURE__ */ K({
1054
1054
  }, a = (s) => {
1055
1055
  i("menu", s.clientX, s.clientY);
1056
1056
  };
1057
- return (s, p) => {
1058
- const f = x("v-icon"), d = x("v-spacer"), v = ae("ripple");
1059
- return re((S(), H("div", {
1057
+ return (s, v) => {
1058
+ const d = M("v-icon"), f = M("v-spacer"), p = ae("ripple");
1059
+ return re((w(), H("div", {
1060
1060
  class: "d-flex align-center cursor-pointer",
1061
1061
  style: le(l.value),
1062
1062
  onClick: u,
1063
1063
  onContextmenu: q(a, ["prevent"]),
1064
- onMouseover: p[2] || (p[2] = (h) => o.value = !0),
1065
- onMouseout: p[3] || (p[3] = (h) => o.value = !1)
1064
+ onMouseover: v[2] || (v[2] = (h) => o.value = !0),
1065
+ onMouseout: v[3] || (v[3] = (h) => o.value = !1)
1066
1066
  }, [
1067
- B(f, {
1067
+ B(d, {
1068
1068
  class: "mr-1",
1069
1069
  icon: s.collapse ? E($n) : E(bn)
1070
1070
  }, null, 8, ["icon"]),
1071
1071
  z("span", null, ne(s.title), 1),
1072
- B(d),
1073
- s.hasCreate ? (S(), F(f, {
1072
+ B(f),
1073
+ s.hasCreate ? (w(), F(d, {
1074
1074
  key: 0,
1075
1075
  class: "mx-3",
1076
1076
  icon: E(ds),
1077
- onClick: p[0] || (p[0] = q((h) => i("create"), ["stop"]))
1077
+ onClick: v[0] || (v[0] = q((h) => i("create"), ["stop"]))
1078
1078
  }, null, 8, ["icon"])) : I("", !0),
1079
- s.hasDelete ? (S(), F(f, {
1079
+ s.hasDelete ? (w(), F(d, {
1080
1080
  key: 1,
1081
1081
  class: "mx-3",
1082
1082
  icon: E(ye),
1083
- onClick: p[1] || (p[1] = q((h) => i("delete", s.index), ["stop"]))
1083
+ onClick: v[1] || (v[1] = q((h) => i("delete", s.index), ["stop"]))
1084
1084
  }, null, 8, ["icon"])) : I("", !0)
1085
1085
  ], 36)), [
1086
- [v]
1086
+ [p]
1087
1087
  ]);
1088
1088
  };
1089
1089
  }
@@ -1104,17 +1104,17 @@ const Re = /* @__PURE__ */ K({
1104
1104
  i("menu", a.clientX, a.clientY);
1105
1105
  };
1106
1106
  return (a, s) => {
1107
- const p = ae("ripple");
1108
- return re((S(), H("div", {
1107
+ const v = ae("ripple");
1108
+ return re((w(), H("div", {
1109
1109
  class: "d-flex justify-space-between align-center cursor-pointer",
1110
1110
  style: le(l.value),
1111
1111
  onContextmenu: q(u, ["prevent"]),
1112
- onMouseover: s[0] || (s[0] = (f) => o.value = !0),
1113
- onMouseout: s[1] || (s[1] = (f) => o.value = !1)
1112
+ onMouseover: s[0] || (s[0] = (d) => o.value = !0),
1113
+ onMouseout: s[1] || (s[1] = (d) => o.value = !1)
1114
1114
  }, [
1115
1115
  jn(a.$slots, "default")
1116
1116
  ], 36)), [
1117
- [p]
1117
+ [v]
1118
1118
  ]);
1119
1119
  };
1120
1120
  }
@@ -1123,17 +1123,17 @@ function vs(e, t, n) {
1123
1123
  const { t: r } = ue();
1124
1124
  return { renderProp: (o, l, u) => {
1125
1125
  const a = o.at(-1);
1126
- let p = typeof a == "number" ? `[${a + 1}]` : r(l.name);
1127
- return be(e.value, o) && (p += " *"), _(
1126
+ let v = typeof a == "number" ? `[${a + 1}]` : r(l.name);
1127
+ return be(e.value, o) && (v += " *"), _(
1128
1128
  ps,
1129
1129
  {
1130
1130
  minHeight: t.value,
1131
- onMenu: (f, d) => {
1132
- _e.emit("propTreeMenu", { x: f, y: d, keys: o });
1131
+ onMenu: (d, f) => {
1132
+ _e.emit("propTreeMenu", { x: d, y: f, keys: o });
1133
1133
  }
1134
1134
  },
1135
1135
  () => [
1136
- _("span", { class: "ml-1", innerHTML: p }),
1136
+ _("span", { class: "ml-1", innerHTML: v }),
1137
1137
  _("div", { style: { width: n.value } }, u)
1138
1138
  ]
1139
1139
  );
@@ -1178,8 +1178,8 @@ const gs = { class: "d-flex justify-space-between align-center" }, ys = /* @__PU
1178
1178
  setup(e, { emit: t }) {
1179
1179
  const n = oe(e, "modelValue"), r = t;
1180
1180
  return (i, o) => {
1181
- const l = x("v-text-field"), u = x("v-icon"), a = ae("ripple");
1182
- return S(), H("div", gs, [
1181
+ const l = M("v-text-field"), u = M("v-icon"), a = ae("ripple");
1182
+ return w(), H("div", gs, [
1183
1183
  re(B(l, {
1184
1184
  modelValue: n.value,
1185
1185
  "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
@@ -1195,7 +1195,7 @@ const gs = { class: "d-flex justify-space-between align-center" }, ys = /* @__PU
1195
1195
  { stop: !0 }
1196
1196
  ]
1197
1197
  ]),
1198
- i.hasDelete ? (S(), F(u, {
1198
+ i.hasDelete ? (w(), F(u, {
1199
1199
  key: 0,
1200
1200
  class: "mx-2",
1201
1201
  icon: E(ye),
@@ -1251,8 +1251,8 @@ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PU
1251
1251
  setup(e, { emit: t }) {
1252
1252
  const n = oe(e, "modelValue"), r = t;
1253
1253
  return (i, o) => {
1254
- const l = x("v-number-input"), u = x("v-icon"), a = ae("ripple");
1255
- return S(), H("div", _s, [
1254
+ const l = M("v-number-input"), u = M("v-icon"), a = ae("ripple");
1255
+ return w(), H("div", _s, [
1256
1256
  re(B(l, {
1257
1257
  modelValue: n.value,
1258
1258
  "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
@@ -1273,7 +1273,7 @@ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PU
1273
1273
  { stop: !0 }
1274
1274
  ]
1275
1275
  ]),
1276
- i.hasDelete ? (S(), F(u, {
1276
+ i.hasDelete ? (w(), F(u, {
1277
1277
  key: 0,
1278
1278
  class: "mx-2",
1279
1279
  icon: E(ye),
@@ -1328,8 +1328,8 @@ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PU
1328
1328
  setup(e, { emit: t }) {
1329
1329
  const n = oe(e, "modelValue"), r = t;
1330
1330
  return (i, o) => {
1331
- const l = x("v-switch"), u = x("v-icon");
1332
- return S(), H("div", Ts, [
1331
+ const l = M("v-switch"), u = M("v-icon");
1332
+ return w(), H("div", Ts, [
1333
1333
  B(l, {
1334
1334
  modelValue: n.value,
1335
1335
  "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
@@ -1339,7 +1339,7 @@ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PU
1339
1339
  "hide-details": "",
1340
1340
  readonly: i.readonly
1341
1341
  }, null, 8, ["modelValue", "readonly"]),
1342
- i.hasDelete ? (S(), F(u, {
1342
+ i.hasDelete ? (w(), F(u, {
1343
1343
  key: 0,
1344
1344
  class: "mx-2",
1345
1345
  icon: E(ye),
@@ -1392,16 +1392,16 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1392
1392
  const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => {
1393
1393
  var a;
1394
1394
  const u = [];
1395
- return (a = zt[o.value]) == null || a.items[e.items].forEach(({ title: s, value: p }) => {
1396
- u.push({ title: n(s), value: p });
1395
+ return (a = zt[o.value]) == null || a.items[e.items].forEach(({ title: s, value: v }) => {
1396
+ u.push({ title: n(s), value: v });
1397
1397
  }), u;
1398
1398
  });
1399
1399
  return (u, a) => {
1400
- const s = x("v-select"), p = x("v-icon"), f = ae("ripple");
1401
- return S(), H("div", As, [
1400
+ const s = M("v-select"), v = M("v-icon"), d = ae("ripple");
1401
+ return w(), H("div", As, [
1402
1402
  re(B(s, {
1403
1403
  modelValue: r.value,
1404
- "onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d),
1404
+ "onUpdate:modelValue": a[0] || (a[0] = (f) => r.value = f),
1405
1405
  density: "compact",
1406
1406
  items: l.value,
1407
1407
  "hide-details": "",
@@ -1409,17 +1409,17 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1409
1409
  readonly: u.readonly
1410
1410
  }, null, 8, ["modelValue", "items", "readonly"]), [
1411
1411
  [
1412
- f,
1412
+ d,
1413
1413
  void 0,
1414
1414
  void 0,
1415
1415
  { stop: !0 }
1416
1416
  ]
1417
1417
  ]),
1418
- u.hasDelete ? (S(), F(p, {
1418
+ u.hasDelete ? (w(), F(v, {
1419
1419
  key: 0,
1420
1420
  class: "mx-2",
1421
1421
  icon: E(ye),
1422
- onClick: a[1] || (a[1] = q((d) => i("delete"), ["stop"]))
1422
+ onClick: a[1] || (a[1] = q((f) => i("delete"), ["stop"]))
1423
1423
  }, null, 8, ["icon"])) : I("", !0)
1424
1424
  ]);
1425
1425
  };
@@ -1471,22 +1471,22 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1471
1471
  userSelect: "none"
1472
1472
  }));
1473
1473
  return (a, s) => {
1474
- const p = x("v-icon"), f = ae("ripple");
1475
- return re((S(), H("div", {
1474
+ const v = M("v-icon"), d = ae("ripple");
1475
+ return re((w(), H("div", {
1476
1476
  class: "d-flex align-center cursor-pointer",
1477
1477
  style: le(u.value),
1478
- onClick: s[0] || (s[0] = (d) => o("x-click", i.id)),
1479
- onMouseover: s[1] || (s[1] = (d) => l.value = !0),
1480
- onMouseout: s[2] || (s[2] = (d) => l.value = !1)
1478
+ onClick: s[0] || (s[0] = (f) => o("x-click", i.id)),
1479
+ onMouseover: s[1] || (s[1] = (f) => l.value = !0),
1480
+ onMouseout: s[2] || (s[2] = (f) => l.value = !1)
1481
1481
  }, [
1482
- B(p, {
1482
+ B(v, {
1483
1483
  icon: i.collapse ? E($n) : E(bn),
1484
1484
  size: "small"
1485
1485
  }, null, 8, ["icon"]),
1486
1486
  z("span", Os, ne(i.title), 1),
1487
1487
  z("span", xs, ne(i.count), 1)
1488
1488
  ], 36)), [
1489
- [f]
1489
+ [d]
1490
1490
  ]);
1491
1491
  };
1492
1492
  }
@@ -1505,17 +1505,17 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1505
1505
  userSelect: "none"
1506
1506
  }));
1507
1507
  return (a, s) => {
1508
- const p = ae("ripple");
1509
- return re((S(), H("div", {
1508
+ const v = ae("ripple");
1509
+ return re((w(), H("div", {
1510
1510
  class: "d-flex align-center cursor-pointer",
1511
1511
  style: le(u.value),
1512
- onClick: s[0] || (s[0] = (f) => o("x-click", i.id)),
1513
- onMouseover: s[1] || (s[1] = (f) => l.value = !0),
1514
- onMouseout: s[2] || (s[2] = (f) => l.value = !1)
1512
+ onClick: s[0] || (s[0] = (d) => o("x-click", i.id)),
1513
+ onMouseover: s[1] || (s[1] = (d) => l.value = !0),
1514
+ onMouseout: s[2] || (s[2] = (d) => l.value = !1)
1515
1515
  }, [
1516
1516
  z("span", Ms, ne(i.title), 1)
1517
1517
  ], 36)), [
1518
- [p]
1518
+ [v]
1519
1519
  ]);
1520
1520
  };
1521
1521
  }
@@ -1538,11 +1538,11 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1538
1538
  }, l = (u) => {
1539
1539
  n.value = u, r.value = !1, _e.emit("refreshDepends");
1540
1540
  };
1541
- return (u, a) => E(i).length > 0 ? (S(), H("div", Ls, [
1542
- (S(!0), H(He, null, Ht(E(i), (s) => (S(), H(He, {
1541
+ return (u, a) => E(i).length > 0 ? (w(), H("div", Ls, [
1542
+ (w(!0), H(He, null, Ht(E(i), (s) => (w(), H(He, {
1543
1543
  key: s.id
1544
1544
  }, [
1545
- s.type === 0 ? (S(), F(Vs, {
1545
+ s.type === 0 ? (w(), F(Vs, {
1546
1546
  key: 0,
1547
1547
  id: s.id,
1548
1548
  title: s.name,
@@ -1550,14 +1550,14 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1550
1550
  count: s.count ?? 0,
1551
1551
  onXClick: o
1552
1552
  }, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
1553
- s.type === 1 && s.show ? (S(), F(Us, {
1553
+ s.type === 1 && s.show ? (w(), F(Us, {
1554
1554
  key: 1,
1555
1555
  id: s.id,
1556
1556
  title: s.name,
1557
1557
  onXClick: l
1558
1558
  }, null, 8, ["id", "title"])) : I("", !0)
1559
1559
  ], 64))), 128))
1560
- ])) : (S(), H("div", Ds, ne(E(t)("x-prop-tree.noComp")), 1));
1560
+ ])) : (w(), H("div", Ds, ne(E(t)("x-prop-tree.noComp")), 1));
1561
1561
  }
1562
1562
  }), Es = { class: "text-subtitle-1 ml-3" }, Ns = /* @__PURE__ */ K({
1563
1563
  __name: "index",
@@ -1568,46 +1568,46 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1568
1568
  emits: ["update:modelValue"],
1569
1569
  setup(e) {
1570
1570
  const { t } = ue(), n = Kn(), { sysBarAvail: r } = kn(), { backgroundColor1: i } = we(), o = oe(e, "modelValue"), l = _n(), u = k(() => {
1571
- let d = "100%";
1572
- return n.mdAndUp.value && (d = "400px"), {
1571
+ let f = "100%";
1572
+ return n.mdAndUp.value && (f = "400px"), {
1573
1573
  background: i.value,
1574
- width: d,
1574
+ width: f,
1575
1575
  height: "100%"
1576
1576
  };
1577
1577
  }), a = k(() => {
1578
- let d = 48;
1579
- return r.value && (d += 24), {
1578
+ let f = 48;
1579
+ return r.value && (f += 24), {
1580
1580
  position: "relative",
1581
- height: `calc(100% - ${d}px)`
1581
+ height: `calc(100% - ${f}px)`
1582
1582
  };
1583
1583
  }), s = k(() => ({
1584
1584
  height: "60px"
1585
- })), p = k(() => {
1585
+ })), v = k(() => {
1586
1586
  if (!o.value)
1587
1587
  return t("x-runtime-lib.notSet");
1588
- const d = fn(l, o.value);
1589
- return d ? d.name : t("x-runtime-lib.compNotAvail");
1590
- }), { open: f } = ut(`propTreeCompSelectDlg${Gt()}`);
1588
+ const f = fn(l, o.value);
1589
+ return f ? f.name : t("x-runtime-lib.compNotAvail");
1590
+ }), { open: d } = ut(`propTreeCompSelectDlg${Gt()}`);
1591
1591
  return Kt(() => {
1592
- f.value = !1;
1593
- }), (d, v) => {
1594
- const h = x("v-btn"), V = x("v-sheet"), w = x("v-icon"), A = x("v-dialog");
1595
- return S(), F(A, {
1596
- modelValue: E(f),
1597
- "onUpdate:modelValue": v[5] || (v[5] = (b) => Fe(f) ? f.value = b : null),
1592
+ d.value = !1;
1593
+ }), (f, p) => {
1594
+ const h = M("v-btn"), P = M("v-sheet"), A = M("v-icon"), C = M("v-dialog");
1595
+ return w(), F(C, {
1596
+ modelValue: E(d),
1597
+ "onUpdate:modelValue": p[5] || (p[5] = ($) => Fe(d) ? d.value = $ : null),
1598
1598
  transition: "scroll-x-reverse-transition",
1599
1599
  persistent: "",
1600
1600
  "no-click-animation": "",
1601
1601
  fullscreen: "",
1602
- onKeydown: v[6] || (v[6] = En(q((b) => f.value = !1, ["stop", "prevent"]), ["esc"]))
1602
+ onKeydown: p[6] || (p[6] = En(q(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1603
1603
  }, {
1604
- activator: J(({ props: b }) => [
1605
- B(h, qt(b, {
1604
+ activator: J(({ props: $ }) => [
1605
+ B(h, qt($, {
1606
1606
  density: "comfortable",
1607
1607
  block: ""
1608
1608
  }), {
1609
1609
  default: J(() => [
1610
- at(ne(p.value), 1)
1610
+ at(ne(v.value), 1)
1611
1611
  ]),
1612
1612
  _: 2
1613
1613
  }, 1040)
@@ -1615,27 +1615,27 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1615
1615
  default: J(() => [
1616
1616
  z("div", {
1617
1617
  class: "w-100 h-100 d-flex flex-row-reverse",
1618
- onClick: v[3] || (v[3] = q((b) => f.value = !1, ["self"])),
1619
- onContextmenu: v[4] || (v[4] = q((b) => f.value = !1, ["self", "prevent"]))
1618
+ onClick: p[3] || (p[3] = q(($) => d.value = !1, ["self"])),
1619
+ onContextmenu: p[4] || (p[4] = q(($) => d.value = !1, ["self", "prevent"]))
1620
1620
  }, [
1621
1621
  z("div", {
1622
1622
  class: "elevation-2",
1623
1623
  style: le(u.value)
1624
1624
  }, [
1625
- E(r) ? (S(), F(V, {
1625
+ E(r) ? (w(), F(P, {
1626
1626
  key: 0,
1627
1627
  color: "transparent",
1628
1628
  height: 24
1629
1629
  })) : I("", !0),
1630
- B(V, {
1630
+ B(P, {
1631
1631
  class: "d-flex align-center px-3",
1632
1632
  color: "transparent",
1633
1633
  height: 48
1634
1634
  }, {
1635
1635
  default: J(() => [
1636
- B(w, {
1636
+ B(A, {
1637
1637
  icon: E(fs),
1638
- onClick: v[0] || (v[0] = (b) => f.value = !1)
1638
+ onClick: p[0] || (p[0] = ($) => d.value = !1)
1639
1639
  }, null, 8, ["icon"]),
1640
1640
  z("span", Es, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
1641
1641
  ]),
@@ -1647,9 +1647,9 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1647
1647
  }, [
1648
1648
  B(js, {
1649
1649
  modelValue: o.value,
1650
- "onUpdate:modelValue": v[1] || (v[1] = (b) => o.value = b),
1651
- open: E(f),
1652
- "onUpdate:open": v[2] || (v[2] = (b) => Fe(f) ? f.value = b : null)
1650
+ "onUpdate:modelValue": p[1] || (p[1] = ($) => o.value = $),
1651
+ open: E(d),
1652
+ "onUpdate:open": p[2] || (p[2] = ($) => Fe(d) ? d.value = $ : null)
1653
1653
  }, null, 8, ["modelValue", "open"]),
1654
1654
  z("div", {
1655
1655
  style: le(s.value)
@@ -1706,8 +1706,8 @@ const Rs = { class: "d-flex justify-space-between align-center" }, ks = /* @__PU
1706
1706
  return Kt(() => {
1707
1707
  u.value = !1;
1708
1708
  }), (a, s) => {
1709
- const p = x("v-btn"), f = x("v-icon"), d = x("v-color-picker"), v = x("v-menu");
1710
- return S(), F(v, {
1709
+ const v = M("v-btn"), d = M("v-icon"), f = M("v-color-picker"), p = M("v-menu");
1710
+ return w(), F(p, {
1711
1711
  modelValue: E(u),
1712
1712
  "onUpdate:modelValue": s[2] || (s[2] = (h) => Fe(u) ? u.value = h : null),
1713
1713
  "close-on-content-click": !1,
@@ -1719,7 +1719,7 @@ const Rs = { class: "d-flex justify-space-between align-center" }, ks = /* @__PU
1719
1719
  class: "flex-grow-1",
1720
1720
  style: le(o.value)
1721
1721
  }, [
1722
- B(p, qt(h, {
1722
+ B(v, qt(h, {
1723
1723
  density: "comfortable",
1724
1724
  color: r.value,
1725
1725
  block: "",
@@ -1731,16 +1731,16 @@ const Rs = { class: "d-flex justify-space-between align-center" }, ks = /* @__PU
1731
1731
  _: 2
1732
1732
  }, 1040, ["color", "disabled"])
1733
1733
  ], 4),
1734
- a.hasDelete ? (S(), F(f, {
1734
+ a.hasDelete ? (w(), F(d, {
1735
1735
  key: 0,
1736
1736
  class: "mx-2",
1737
1737
  icon: E(ye),
1738
- onClick: s[0] || (s[0] = q((V) => i("delete"), ["stop"]))
1738
+ onClick: s[0] || (s[0] = q((P) => i("delete"), ["stop"]))
1739
1739
  }, null, 8, ["icon"])) : I("", !0)
1740
1740
  ])
1741
1741
  ]),
1742
1742
  default: J(() => [
1743
- B(d, {
1743
+ B(f, {
1744
1744
  modelValue: r.value,
1745
1745
  "onUpdate:modelValue": s[1] || (s[1] = (h) => r.value = h),
1746
1746
  mode: "hexa",
@@ -1793,36 +1793,45 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1793
1793
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1794
1794
  setup(e, { emit: t }) {
1795
1795
  const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => {
1796
- var d;
1797
- return (d = zt[o.value]) == null ? void 0 : d.types[e.types];
1796
+ var f;
1797
+ return (f = zt[o.value]) == null ? void 0 : f.types[e.types];
1798
1798
  }), u = R(0), a = k(() => {
1799
- const d = [];
1800
- return l.value.forEach(({ title: v }, h) => {
1801
- d.push({
1802
- title: n(v),
1803
- value: h
1799
+ var p;
1800
+ const f = [];
1801
+ return (p = l.value) == null || p.forEach(({ title: h }, P) => {
1802
+ f.push({
1803
+ title: n(h),
1804
+ value: P
1804
1805
  });
1805
- }), d;
1806
+ }), f;
1806
1807
  });
1807
1808
  mt(() => {
1808
- l.value.some((d, v) => d.validator(r.value) ? (u.value = v, !0) : !1);
1809
+ var f;
1810
+ (f = l.value) == null || f.some((p, h) => p.validator(r.value) ? (u.value = h, !0) : !1);
1809
1811
  });
1810
- const s = k(() => l.value[u.value]), p = () => {
1811
- r.value = s.value.default;
1812
- }, f = R(0);
1812
+ const s = k(() => {
1813
+ var f;
1814
+ return (f = l.value) == null ? void 0 : f[u.value];
1815
+ }), v = () => {
1816
+ var f;
1817
+ r.value = (f = s.value) == null ? void 0 : f.default;
1818
+ }, d = R(0);
1813
1819
  return mt(() => {
1814
- s.value.ui === "pixelInput" ? f.value = Fn(r.value) : s.value.ui === "percentInput" && (f.value = Hn(r.value));
1815
- }), Oe(f, (d) => {
1816
- s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
1817
- }), (d, v) => {
1818
- const h = x("v-select"), V = x("v-number-input"), w = x("v-icon"), A = ae("ripple");
1819
- return S(), H("div", Hs, [
1820
+ var f, p;
1821
+ ((f = s.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = Fn(r.value) : ((p = s.value) == null ? void 0 : p.ui) === "percentInput" && (d.value = Hn(r.value));
1822
+ }), Oe(d, (f) => {
1823
+ var p, h;
1824
+ ((p = s.value) == null ? void 0 : p.ui) === "pixelInput" ? r.value = f + "px" : ((h = s.value) == null ? void 0 : h.ui) === "percentInput" && (r.value = f + "%");
1825
+ }), (f, p) => {
1826
+ var $, O;
1827
+ const h = M("v-select"), P = M("v-number-input"), A = M("v-icon"), C = ae("ripple");
1828
+ return w(), H("div", Hs, [
1820
1829
  z("div", Gs, [
1821
1830
  re(B(h, {
1822
1831
  modelValue: u.value,
1823
1832
  "onUpdate:modelValue": [
1824
- v[0] || (v[0] = (b) => u.value = b),
1825
- p
1833
+ p[0] || (p[0] = (T) => u.value = T),
1834
+ v
1826
1835
  ],
1827
1836
  density: "compact",
1828
1837
  items: a.value,
@@ -1830,16 +1839,16 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1830
1839
  "single-line": ""
1831
1840
  }, null, 8, ["modelValue", "items"]), [
1832
1841
  [
1833
- A,
1842
+ C,
1834
1843
  void 0,
1835
1844
  void 0,
1836
1845
  { stop: !0 }
1837
1846
  ]
1838
1847
  ]),
1839
- s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), F(V, {
1848
+ (($ = s.value) == null ? void 0 : $.ui) === "pixelInput" || ((O = s.value) == null ? void 0 : O.ui) === "percentInput" ? re((w(), F(P, {
1840
1849
  key: 0,
1841
- modelValue: f.value,
1842
- "onUpdate:modelValue": v[1] || (v[1] = (b) => f.value = b),
1850
+ modelValue: d.value,
1851
+ "onUpdate:modelValue": p[1] || (p[1] = (T) => d.value = T),
1843
1852
  density: "compact",
1844
1853
  "control-variant": "stacked",
1845
1854
  precision: s.value.precision,
@@ -1850,18 +1859,18 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1850
1859
  "single-line": ""
1851
1860
  }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1852
1861
  [
1853
- A,
1862
+ C,
1854
1863
  void 0,
1855
1864
  void 0,
1856
1865
  { stop: !0 }
1857
1866
  ]
1858
1867
  ]) : I("", !0)
1859
1868
  ]),
1860
- d.hasDelete ? (S(), F(w, {
1869
+ f.hasDelete ? (w(), F(A, {
1861
1870
  key: 0,
1862
1871
  class: "mx-2",
1863
1872
  icon: E(ye),
1864
- onClick: v[2] || (v[2] = q((b) => i("delete"), ["stop"]))
1873
+ onClick: p[2] || (p[2] = q((T) => i("delete"), ["stop"]))
1865
1874
  }, null, 8, ["icon"])) : I("", !0)
1866
1875
  ]);
1867
1876
  };
@@ -1905,30 +1914,30 @@ const zs = /* @__PURE__ */ K({
1905
1914
  },
1906
1915
  emits: ["change"],
1907
1916
  setup(e, { emit: t }) {
1908
- const { t: n } = ue(), { backgroundColor1: r } = we(), i = e, o = t, l = R("20px"), u = R("56px"), a = R("200px"), s = Nn({}), p = R({}), f = (g, c) => {
1909
- Ft(p, i.config, i.object), o("change", g, c);
1917
+ const { t: n } = ue(), { backgroundColor1: r } = we(), i = e, o = t, l = R("20px"), u = R("56px"), a = R("200px"), s = Nn({}), v = R({}), d = (g, c) => {
1918
+ Ft(v, i.config, i.object), o("change", g, c);
1910
1919
  };
1911
1920
  Oe(
1912
1921
  [() => i.config, () => i.object],
1913
1922
  () => {
1914
- Ft(p, i.config, i.object, (g, c) => {
1923
+ Ft(v, i.config, i.object, (g, c) => {
1915
1924
  o("change", g, c);
1916
1925
  });
1917
1926
  },
1918
1927
  { immediate: !0 }
1919
1928
  );
1920
- const d = R(i.version);
1921
- es(d), Oe(
1929
+ const f = R(i.version);
1930
+ es(f), Oe(
1922
1931
  () => i.version,
1923
1932
  () => {
1924
- d.value = i.version;
1933
+ f.value = i.version;
1925
1934
  }
1926
1935
  );
1927
- const v = R(i.config);
1928
- ts(v), Oe(
1936
+ const p = R(i.config);
1937
+ ts(p), Oe(
1929
1938
  () => i.config,
1930
1939
  () => {
1931
- v.value = i.config;
1940
+ p.value = i.config;
1932
1941
  }
1933
1942
  );
1934
1943
  const h = R(i.object);
@@ -1937,45 +1946,45 @@ const zs = /* @__PURE__ */ K({
1937
1946
  () => {
1938
1947
  h.value = i.object;
1939
1948
  }
1940
- ), is(p), ss(f);
1941
- const V = R([]);
1942
- us(V);
1943
- const w = () => {
1949
+ ), is(v), ss(d);
1950
+ const P = R([]);
1951
+ us(P);
1952
+ const A = () => {
1944
1953
  const { compGroups: g, comps: c } = Gn.app.activeApp, y = [];
1945
- g.forEach(({ id: m, name: $, position: P }) => {
1946
- const D = V.value.find((Q) => Q.id === m);
1954
+ g.forEach(({ id: m, name: b, position: x }) => {
1955
+ const D = P.value.find((Q) => Q.id === m);
1947
1956
  y.push({
1948
1957
  id: m,
1949
1958
  type: 0,
1950
- name: $,
1951
- position: P,
1959
+ name: b,
1960
+ position: x,
1952
1961
  collapse: (D == null ? void 0 : D.collapse) ?? !0
1953
1962
  });
1954
- }), c.forEach(({ id: m, groupid: $, name: P, position: D }) => {
1955
- y.push({ id: m, type: 1, name: P, position: D, group: $ });
1956
- }), ql(y, !0), V.value = y;
1963
+ }), c.forEach(({ id: m, groupid: b, name: x, position: D }) => {
1964
+ y.push({ id: m, type: 1, name: x, position: D, group: b });
1965
+ }), ql(y, !0), P.value = y;
1957
1966
  };
1958
- let A;
1959
- const b = () => {
1960
- clearTimeout(A), A = window.setTimeout(() => {
1961
- w(), A && b();
1967
+ let C;
1968
+ const $ = () => {
1969
+ clearTimeout(C), C = window.setTimeout(() => {
1970
+ A(), C && $();
1962
1971
  }, 1e3);
1963
- }, U = () => {
1964
- clearTimeout(A), A = void 0;
1972
+ }, O = () => {
1973
+ clearTimeout(C), C = void 0;
1965
1974
  };
1966
1975
  Bn(() => {
1967
- b();
1976
+ $();
1968
1977
  }), Rn(() => {
1969
- U();
1978
+ O();
1970
1979
  });
1971
- const { renderProp: C } = vs(p, u, a), { renderUiDummy: L } = ms(f), { renderUiStrInput: W } = hs(f), { renderUiNumInput: Ye } = $s(f), { renderUiSwitch: Tn } = ws(f), { renderUiSelect: Sn } = Ps(f), { renderUiColorPicker: wn } = Fs(f), { renderUiMultiTypes: An } = qs(f), { renderUiCompSelect: Cn } = Bs(f), De = (g, c, y, m, $, P) => (g = an(g), $ !== void 0 ? (g.push($), P && g.push(c.key)) : g.push(c.key), c.ui ? c.array && m ? xn(g, c, y, m, $, P) : Vn(g, c, y, $, P) : c.array ? Pn(g, c, y, m, $, P) : On(
1980
+ const { renderProp: T } = vs(v, u, a), { renderUiDummy: L } = ms(d), { renderUiStrInput: W } = hs(d), { renderUiNumInput: Ye } = $s(d), { renderUiSwitch: Tn } = ws(d), { renderUiSelect: Sn } = Ps(d), { renderUiColorPicker: wn } = Fs(d), { renderUiMultiTypes: An } = qs(d), { renderUiCompSelect: Cn } = Bs(d), De = (g, c, y, m, b, x) => (g = an(g), b !== void 0 ? (g.push(b), x && g.push(c.key)) : g.push(c.key), c.ui ? c.array && m ? xn(g, c, y, m, b, x) : Vn(g, c, y, b, x) : c.array ? Pn(g, c, y, m, b, x) : On(
1972
1981
  g,
1973
1982
  c,
1974
1983
  y,
1975
1984
  m,
1976
- $,
1977
- P
1978
- )), Pn = (g, c, y, m, $, P) => {
1985
+ b,
1986
+ x
1987
+ )), Pn = (g, c, y, m, b, x) => {
1979
1988
  if (c.ui)
1980
1989
  return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
1981
1990
  if (!c.array)
@@ -1983,21 +1992,21 @@ const zs = /* @__PURE__ */ K({
1983
1992
  if (!m)
1984
1993
  return console.assert(!1), _("div", "renderBranchArray branch must be valid");
1985
1994
  let D;
1986
- $ !== void 0 && !P ? (y[$] instanceof Array || (y[$] = N(c), f(g, y[c.key])), D = y[$]) : (y[c.key] instanceof Array || (y[c.key] = N(c), f(g, y[c.key])), D = y[c.key]);
1995
+ b !== void 0 && !x ? (y[b] instanceof Array || (y[b] = N(c), d(g, y[c.key])), D = y[b]) : (y[c.key] instanceof Array || (y[c.key] = N(c), d(g, y[c.key])), D = y[c.key]);
1987
1996
  let Q = n(c.name);
1988
- m.collapse && be(p.value, g) && (Q += " *");
1997
+ m.collapse && be(v.value, g) && (Q += " *");
1989
1998
  const Ae = _(Re, {
1990
1999
  title: Q,
1991
2000
  collapse: m.collapse,
1992
2001
  hasCreate: !0,
1993
- onCollapse: (T) => {
1994
- m.collapse = T;
2002
+ onCollapse: (S) => {
2003
+ m.collapse = S;
1995
2004
  },
1996
- onMenu: (T, j) => {
1997
- _e.emit("propTreeMenu", { x: T, y: j, keys: g });
2005
+ onMenu: (S, j) => {
2006
+ _e.emit("propTreeMenu", { x: S, y: j, keys: g });
1998
2007
  },
1999
2008
  onCreate: () => {
2000
- D.push({}), f(g, D);
2009
+ D.push({}), d(g, D);
2001
2010
  }
2002
2011
  }), G = _(
2003
2012
  "div",
@@ -2007,7 +2016,7 @@ const zs = /* @__PURE__ */ K({
2007
2016
  }
2008
2017
  },
2009
2018
  (() => {
2010
- const T = [];
2019
+ const S = [];
2011
2020
  for (let j = 0; j < D.length; j++) {
2012
2021
  if (!nt(m.children)) {
2013
2022
  console.assert(!1);
@@ -2019,7 +2028,7 @@ const zs = /* @__PURE__ */ K({
2019
2028
  });
2020
2029
  const je = [...g, j], Ee = m.children[j];
2021
2030
  let vt = `[${j + 1}]`;
2022
- m.children[j].collapse && be(p.value, je) && (vt += " *");
2031
+ m.children[j].collapse && be(v.value, je) && (vt += " *");
2023
2032
  const Un = _(Re, {
2024
2033
  title: vt,
2025
2034
  collapse: m.children[j].collapse,
@@ -2040,10 +2049,10 @@ const zs = /* @__PURE__ */ K({
2040
2049
  console.assert(!1);
2041
2050
  return;
2042
2051
  }
2043
- m.children.splice(ee, 1), D.splice(ee, 1), f(g, D);
2052
+ m.children.splice(ee, 1), D.splice(ee, 1), d(g, D);
2044
2053
  }
2045
2054
  });
2046
- T.push(Un);
2055
+ S.push(Un);
2047
2056
  const Ln = _(
2048
2057
  "div",
2049
2058
  {
@@ -2074,9 +2083,9 @@ const zs = /* @__PURE__ */ K({
2074
2083
  }), ee;
2075
2084
  })()
2076
2085
  );
2077
- m.children[j].collapse || T.push(Ln);
2086
+ m.children[j].collapse || S.push(Ln);
2078
2087
  }
2079
- return T;
2088
+ return S;
2080
2089
  })()
2081
2090
  );
2082
2091
  return _(
@@ -2087,11 +2096,11 @@ const zs = /* @__PURE__ */ K({
2087
2096
  }
2088
2097
  },
2089
2098
  (() => {
2090
- const T = [];
2091
- return T.push(Ae), m.collapse || T.push(G), T;
2099
+ const S = [];
2100
+ return S.push(Ae), m.collapse || S.push(G), S;
2092
2101
  })()
2093
2102
  );
2094
- }, On = (g, c, y, m, $, P) => {
2103
+ }, On = (g, c, y, m, b, x) => {
2095
2104
  if (c.ui)
2096
2105
  return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2097
2106
  if (c.array)
@@ -2099,19 +2108,19 @@ const zs = /* @__PURE__ */ K({
2099
2108
  if (!m)
2100
2109
  return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2101
2110
  let D = n(c.name);
2102
- m.collapse && be(p.value, g) && (D += " *");
2111
+ m.collapse && be(v.value, g) && (D += " *");
2103
2112
  const Q = _(Re, {
2104
2113
  title: D,
2105
2114
  collapse: m.collapse,
2106
- hasDelete: $ !== void 0 && !P,
2115
+ hasDelete: b !== void 0 && !x,
2107
2116
  onCollapse: (G) => {
2108
2117
  m.collapse = G;
2109
2118
  },
2110
- onMenu: (G, T) => {
2111
- _e.emit("propTreeMenu", { x: G, y: T, keys: g });
2119
+ onMenu: (G, S) => {
2120
+ _e.emit("propTreeMenu", { x: G, y: S, keys: g });
2112
2121
  },
2113
2122
  onDelete: () => {
2114
- $ === void 0 || P || (y.splice($, 1), f(g.slice(0, -1), y));
2123
+ b === void 0 || x || (y.splice(b, 1), d(g.slice(0, -1), y));
2115
2124
  }
2116
2125
  }), Ae = _(
2117
2126
  "div",
@@ -2122,20 +2131,20 @@ const zs = /* @__PURE__ */ K({
2122
2131
  },
2123
2132
  (() => {
2124
2133
  const G = [];
2125
- return c.children.forEach((T) => {
2134
+ return c.children.forEach((S) => {
2126
2135
  if (!kt(m.children)) {
2127
2136
  console.assert(!1);
2128
2137
  return;
2129
2138
  }
2130
- m.children[T.key] || (m.children[T.key] = {
2139
+ m.children[S.key] || (m.children[S.key] = {
2131
2140
  collapse: !0,
2132
- children: !T.ui && T.array ? [] : {}
2141
+ children: !S.ui && S.array ? [] : {}
2133
2142
  });
2134
2143
  const j = De(
2135
2144
  g,
2136
- T,
2137
- (typeof y[c.key] != "object" && (y[c.key] = {}, f(g, y[c.key])), y[c.key]),
2138
- m.children[T.key]
2145
+ S,
2146
+ (typeof y[c.key] != "object" && (y[c.key] = {}, d(g, y[c.key])), y[c.key]),
2147
+ m.children[S.key]
2139
2148
  );
2140
2149
  G.push(j);
2141
2150
  }), G;
@@ -2153,7 +2162,7 @@ const zs = /* @__PURE__ */ K({
2153
2162
  return G.push(Q), m.collapse || G.push(Ae), G;
2154
2163
  })()
2155
2164
  );
2156
- }, xn = (g, c, y, m, $, P) => {
2165
+ }, xn = (g, c, y, m, b, x) => {
2157
2166
  if (!c.ui)
2158
2167
  return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2159
2168
  if (!c.array)
@@ -2161,21 +2170,21 @@ const zs = /* @__PURE__ */ K({
2161
2170
  if (!m)
2162
2171
  return console.assert(!1), _("div", "renderLeafArray branch must be valid");
2163
2172
  let D;
2164
- $ !== void 0 && !P ? (y[$] instanceof Array || (y[$] = N(c), f(g, y[$])), D = y[$]) : (y[c.key] instanceof Array || (y[c.key] = N(c), f(g, y[c.key])), D = y[c.key]);
2173
+ b !== void 0 && !x ? (y[b] instanceof Array || (y[b] = N(c), d(g, y[b])), D = y[b]) : (y[c.key] instanceof Array || (y[c.key] = N(c), d(g, y[c.key])), D = y[c.key]);
2165
2174
  let Q = n(c.name);
2166
- m.collapse && be(p.value, g) && (Q += " *");
2175
+ m.collapse && be(v.value, g) && (Q += " *");
2167
2176
  const Ae = _(Re, {
2168
2177
  title: Q,
2169
2178
  collapse: m.collapse,
2170
2179
  hasCreate: !0,
2171
- onCollapse: (T) => {
2172
- m.collapse = T;
2180
+ onCollapse: (S) => {
2181
+ m.collapse = S;
2173
2182
  },
2174
- onMenu: (T, j) => {
2175
- _e.emit("propTreeMenu", { x: T, y: j, keys: g });
2183
+ onMenu: (S, j) => {
2184
+ _e.emit("propTreeMenu", { x: S, y: j, keys: g });
2176
2185
  },
2177
2186
  onCreate: () => {
2178
- D.push(N(c, !0)), f(g, D);
2187
+ D.push(N(c, !0)), d(g, D);
2179
2188
  }
2180
2189
  }), G = _(
2181
2190
  "div",
@@ -2185,12 +2194,12 @@ const zs = /* @__PURE__ */ K({
2185
2194
  }
2186
2195
  },
2187
2196
  (() => {
2188
- const T = [];
2197
+ const S = [];
2189
2198
  for (let j = 0; j < D.length; j++) {
2190
2199
  const je = De(g, c, D, void 0, j, !1);
2191
- T.push(je);
2200
+ S.push(je);
2192
2201
  }
2193
- return T;
2202
+ return S;
2194
2203
  })()
2195
2204
  );
2196
2205
  return _(
@@ -2201,15 +2210,15 @@ const zs = /* @__PURE__ */ K({
2201
2210
  }
2202
2211
  },
2203
2212
  (() => {
2204
- const T = [];
2205
- return T.push(Ae), m.collapse || T.push(G), T;
2213
+ const S = [];
2214
+ return S.push(Ae), m.collapse || S.push(G), S;
2206
2215
  })()
2207
2216
  );
2208
- }, Vn = (g, c, y, m, $) => {
2217
+ }, Vn = (g, c, y, m, b) => {
2209
2218
  if (!c.ui)
2210
2219
  return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
2211
- let P;
2212
- return c.ui === "dummy" ? P = L(g, c, y, m, $) : c.ui === "strInput" ? P = W(g, c, y, m, $) : c.ui === "numInput" ? P = Ye(g, c, y, m, $) : c.ui === "switch" ? P = Tn(g, c, y, m, $) : c.ui === "select" ? P = Sn(g, c, y, m, $) : c.ui === "colorPicker" ? P = wn(g, c, y, m, $) : c.ui === "multiTypes" ? P = An(g, c, y, m, $) : c.ui === "compSelect" ? P = Cn(g, c, y, m, $) : console.assert(!1, "renderLeafScalar not implemented"), P ? C(g, c, P) : _("div");
2220
+ let x;
2221
+ return c.ui === "dummy" ? x = L(g, c, y, m, b) : c.ui === "strInput" ? x = W(g, c, y, m, b) : c.ui === "numInput" ? x = Ye(g, c, y, m, b) : c.ui === "switch" ? x = Tn(g, c, y, m, b) : c.ui === "select" ? x = Sn(g, c, y, m, b) : c.ui === "colorPicker" ? x = wn(g, c, y, m, b) : c.ui === "multiTypes" ? x = An(g, c, y, m, b) : c.ui === "compSelect" ? x = Cn(g, c, y, m, b) : console.assert(!1, "renderLeafScalar not implemented"), x ? T(g, c, x) : _("div");
2213
2222
  }, Mn = () => _(
2214
2223
  "div",
2215
2224
  {
@@ -2235,12 +2244,12 @@ const zs = /* @__PURE__ */ K({
2235
2244
  return g;
2236
2245
  })()
2237
2246
  );
2238
- return (g, c) => (S(), H(He, null, [
2247
+ return (g, c) => (w(), H(He, null, [
2239
2248
  B(Mn),
2240
2249
  B(cs, {
2241
2250
  config: i.config,
2242
2251
  object: i.object,
2243
- "prop-states": p.value
2252
+ "prop-states": v.value
2244
2253
  }, null, 8, ["config", "object", "prop-states"])
2245
2254
  ], 64));
2246
2255
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.6.14",
4
+ "version": "0.6.15",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",