x-prop-tree 0.6.19 → 0.6.21

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.
@@ -4,13 +4,13 @@ interface Props {
4
4
  }
5
5
  type __VLS_Props = Props;
6
6
  type __VLS_PublicProps = __VLS_Props & {
7
- modelValue?: string;
7
+ modelValue: string;
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  delete: (...args: any[]) => void;
11
- "update:modelValue": (value: string | undefined) => void;
11
+ "update:modelValue": (value: string) => void;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  onDelete?: ((...args: any[]) => any) | undefined;
14
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  export default _default;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { provide as Te, inject as Se, defineComponent as K, ref as B, computed as R, resolveComponent as V, createBlock as F, openBlock as w, unref as k, isRef as Fe, withCtx as J, createVNode as N, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as z, normalizeStyle as le, createElementVNode as q, createCommentVNode as I, renderSlot as jn, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as kn, mergeProps as zt, watchEffect as mt, watch as Oe, reactive as En, onMounted as Nn, onBeforeUnmount as Bn } from "vue";
1
+ import { provide as Te, inject as Se, defineComponent as K, ref as B, computed as R, resolveComponent as V, createBlock as F, openBlock as w, unref as E, isRef as Fe, withCtx as J, createVNode as N, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as z, normalizeStyle as le, createElementVNode as q, 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 zt, watchEffect as mt, watch as Oe, reactive as kn, onMounted as Nn, onBeforeUnmount as Bn } 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 Rn } from "x-essential-lib";
4
- import { getPropDefault as E, pkgs as qt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
4
+ import { getPropDefault as k, pkgs as qt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
5
5
  import { globalState as Gn } from "x-state-lib";
6
6
  import { useDisplay as Kn } from "vuetify";
7
7
  var It = typeof global == "object" && global && global.Object === Object && global, zn = typeof self == "object" && self && self.Object === Object && self, Y = It || zn || Function("return this")(), se = Y.Symbol, Xt = Object.prototype, qn = Xt.hasOwnProperty, In = Xt.toString, Ce = se ? se.toStringTag : void 0;
@@ -149,9 +149,9 @@ var Yt = Object.prototype, Mr = Yt.hasOwnProperty, Vr = 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, kr = "[object Arguments]", Er = "[object Array]", Nr = "[object Boolean]", Br = "[object Date]", Rr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", zr = "[object RegExp]", qr = "[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 = {};
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]", kr = "[object Array]", Nr = "[object Boolean]", Br = "[object Date]", Rr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", zr = "[object RegExp]", qr = "[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
153
  U[Wr] = U[Yr] = U[Qr] = U[eo] = U[to] = U[no] = U[ro] = U[oo] = U[io] = !0;
154
- U[kr] = U[Er] = U[Zr] = U[Nr] = U[Jr] = U[Br] = U[Rr] = U[Fr] = U[Hr] = U[Gr] = U[Kr] = U[zr] = U[qr] = U[Ir] = U[Xr] = !1;
154
+ U[Er] = U[kr] = U[Zr] = U[Nr] = U[Jr] = U[Br] = U[Rr] = U[Fr] = U[Hr] = U[Gr] = U[Kr] = U[zr] = U[qr] = U[Ir] = U[Xr] = !1;
155
155
  function lo(e) {
156
156
  return de(e) && Jt(e.length) && !!U[Le(e)];
157
157
  }
@@ -281,15 +281,15 @@ function jo() {
281
281
  string: new pe()
282
282
  };
283
283
  }
284
- function ko(e) {
284
+ function Eo(e) {
285
285
  var t = typeof e;
286
286
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
287
287
  }
288
288
  function Xe(e, t) {
289
289
  var n = e.__data__;
290
- return ko(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
290
+ return Eo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
291
291
  }
292
- function Eo(e) {
292
+ function ko(e) {
293
293
  var t = Xe(this, e).delete(e);
294
294
  return this.size -= t ? 1 : 0, t;
295
295
  }
@@ -311,7 +311,7 @@ function ge(e) {
311
311
  }
312
312
  }
313
313
  ge.prototype.clear = jo;
314
- ge.prototype.delete = Eo;
314
+ ge.prototype.delete = ko;
315
315
  ge.prototype.get = No;
316
316
  ge.prototype.has = Bo;
317
317
  ge.prototype.set = Ro;
@@ -427,7 +427,7 @@ function gi(e, t) {
427
427
  return new e.constructor(n, e.byteOffset, e.length);
428
428
  }
429
429
  var yi = "[object Boolean]", hi = "[object Date]", _i = "[object Map]", bi = "[object Number]", $i = "[object RegExp]", Ti = "[object Set]", Si = "[object String]", wi = "[object Symbol]", Ai = "[object ArrayBuffer]", Ci = "[object DataView]", Pi = "[object Float32Array]", Oi = "[object Float64Array]", xi = "[object Int8Array]", Mi = "[object Int16Array]", Vi = "[object Int32Array]", Ui = "[object Uint8Array]", Li = "[object Uint8ClampedArray]", Di = "[object Uint16Array]", ji = "[object Uint32Array]";
430
- function ki(e, t, n) {
430
+ function Ei(e, t, n) {
431
431
  var r = e.constructor;
432
432
  switch (t) {
433
433
  case Ai:
@@ -460,7 +460,7 @@ function ki(e, t, n) {
460
460
  return mi(e);
461
461
  }
462
462
  }
463
- function Ei(e) {
463
+ function ki(e) {
464
464
  return typeof e.constructor == "function" && !Wt(e) ? gr(Ho(e)) : {};
465
465
  }
466
466
  var Ni = "[object Map]";
@@ -488,11 +488,11 @@ function Re(e, t, n, r, i, o) {
488
488
  if (Ge(e))
489
489
  return Jo(e);
490
490
  if (u == sn || u == on || s && !i)
491
- l = s ? {} : Ei(e);
491
+ l = s ? {} : ki(e);
492
492
  else {
493
493
  if (!M[u])
494
494
  return i ? e : {};
495
- l = ki(e, u);
495
+ l = Ei(e, u);
496
496
  }
497
497
  }
498
498
  o || (o = new te());
@@ -582,10 +582,10 @@ function Sl(e) {
582
582
  n[++t] = r;
583
583
  }), n;
584
584
  }
585
- var wl = 1, Al = 2, Cl = "[object Boolean]", Pl = "[object Date]", Ol = "[object Error]", xl = "[object Map]", Ml = "[object Number]", Vl = "[object RegExp]", Ul = "[object Set]", Ll = "[object String]", Dl = "[object Symbol]", jl = "[object ArrayBuffer]", kl = "[object DataView]", kt = se ? se.prototype : void 0, tt = kt ? kt.valueOf : void 0;
586
- function El(e, t, n, r, i, o, l) {
585
+ var wl = 1, Al = 2, Cl = "[object Boolean]", Pl = "[object Date]", Ol = "[object Error]", xl = "[object Map]", Ml = "[object Number]", Vl = "[object RegExp]", Ul = "[object Set]", Ll = "[object String]", Dl = "[object Symbol]", jl = "[object ArrayBuffer]", El = "[object DataView]", Et = se ? se.prototype : void 0, tt = Et ? Et.valueOf : void 0;
586
+ function kl(e, t, n, r, i, o, l) {
587
587
  switch (n) {
588
- case kl:
588
+ case El:
589
589
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
590
590
  return !1;
591
591
  e = e.buffer, t = t.buffer;
@@ -650,18 +650,18 @@ function Fl(e, t, n, r, i, o) {
650
650
  }
651
651
  return o.delete(e), o.delete(t), P;
652
652
  }
653
- var Hl = 1, Et = "[object Arguments]", Nt = "[object Array]", Ee = "[object Object]", Gl = Object.prototype, Bt = Gl.hasOwnProperty;
653
+ var Hl = 1, kt = "[object Arguments]", Nt = "[object Array]", ke = "[object Object]", Gl = Object.prototype, Bt = Gl.hasOwnProperty;
654
654
  function Kl(e, t, n, r, i, o) {
655
655
  var l = Me(e), a = Me(t), u = l ? Nt : Z(e), s = a ? Nt : Z(t);
656
- u = u == Et ? Ee : u, s = s == Et ? Ee : s;
657
- var v = u == Ee, d = s == Ee, f = u == s;
656
+ u = u == kt ? ke : u, s = s == kt ? ke : s;
657
+ var v = u == ke, d = s == ke, f = u == s;
658
658
  if (f && Ge(e)) {
659
659
  if (!Ge(t))
660
660
  return !1;
661
661
  l = !0, v = !1;
662
662
  }
663
663
  if (f && !v)
664
- return o || (o = new te()), l || tn(e) ? un(e, t, n, r, i, o) : El(e, t, u, n, r, i, o);
664
+ return o || (o = new te()), l || tn(e) ? un(e, t, n, r, i, o) : kl(e, t, u, n, r, i, o);
665
665
  if (!(n & Hl)) {
666
666
  var p = v && Bt.call(e, "__wrapped__"), h = d && Bt.call(t, "__wrapped__");
667
667
  if (p || h) {
@@ -785,7 +785,7 @@ const Ne = (e, t) => {
785
785
  if (!r.children || !Je(r.children))
786
786
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
787
787
  let a;
788
- o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = E(t), i == null || i(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = E(t), i == null || i(e, n[t.key])), a = n[t.key]), r.change = !1;
788
+ o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = k(t), i == null || i(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = k(t), i == null || i(e, n[t.key])), a = n[t.key]), r.change = !1;
789
789
  for (let u = 0; u < a.length; u++) {
790
790
  r.children.push({
791
791
  change: !1,
@@ -811,7 +811,7 @@ const Ne = (e, t) => {
811
811
  ) && (s.change = !0), s.change && (r.change = !0);
812
812
  });
813
813
  }
814
- return r.change || (r.change = !Ze(a, E(t))), r.change;
814
+ return r.change || (r.change = !Ze(a, k(t))), r.change;
815
815
  }, Wl = (e, t, n, r, i, o, l) => {
816
816
  if (t.ui)
817
817
  return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
@@ -837,18 +837,18 @@ const Ne = (e, t) => {
837
837
  if (!r.children || !Je(r.children))
838
838
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
839
839
  let a;
840
- o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = E(t), i == null || i(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = E(t), i == null || i(e, n[t.key])), a = n[t.key]), r.change = !1;
840
+ o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = k(t), i == null || i(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = k(t), i == null || i(e, n[t.key])), a = n[t.key]), r.change = !1;
841
841
  for (let u = 0; u < a.length; u++)
842
842
  r.children[u] = {
843
843
  change: !1,
844
844
  children: {}
845
845
  }, We(e, t, a, r.children[u], i, u, !1) && (r.change = !0);
846
- return r.change || (r.change = !Ze(a, E(t))), r.change;
846
+ return r.change || (r.change = !Ze(a, k(t))), r.change;
847
847
  }, Ql = (e, t, n, r, i) => {
848
848
  if (!e.ui)
849
849
  return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
850
850
  let o;
851
- return r !== void 0 && !i ? o = t[r] : o = t[e.key], n.change = !Ze(o, E(e, !0)), n.change;
851
+ return r !== void 0 && !i ? o = t[r] : o = t[e.key], n.change = !Ze(o, k(e, !0)), n.change;
852
852
  }, Ft = (e, t, n, r) => {
853
853
  if (t.length <= 0 || !n) {
854
854
  e.value = {};
@@ -920,7 +920,7 @@ const cs = /* @__PURE__ */ K({
920
920
  const T = Pe(r.value, u.value.slice(0, -1));
921
921
  if (!T)
922
922
  return;
923
- T[u.value.at(-1)] = E(O), o(u.value, T[u.value.at(-1)]);
923
+ T[u.value.at(-1)] = k(O), o(u.value, T[u.value.at(-1)]);
924
924
  } else if (O.array) {
925
925
  const T = u.value.at(-1);
926
926
  if (T === void 0) {
@@ -931,13 +931,13 @@ const cs = /* @__PURE__ */ K({
931
931
  const L = Pe(r.value, u.value.slice(0, -1));
932
932
  if (!L)
933
933
  return;
934
- L[u.value.at(-1)] = E(O), o(u.value, L[u.value.at(-1)]);
934
+ L[u.value.at(-1)] = k(O), o(u.value, L[u.value.at(-1)]);
935
935
  } else {
936
936
  const L = Pe(r.value, u.value);
937
937
  if (!L)
938
938
  return;
939
939
  O.children.forEach((W) => {
940
- L[W.key] = E(O), o([...u.value, W.key], L[W.key]);
940
+ L[W.key] = k(O), o([...u.value, W.key], L[W.key]);
941
941
  });
942
942
  }
943
943
  } else {
@@ -945,7 +945,7 @@ const cs = /* @__PURE__ */ K({
945
945
  if (!T)
946
946
  return;
947
947
  O.children.forEach((L) => {
948
- T[L.key] = E(O), o([...u.value, L.key], T[L.key]);
948
+ T[L.key] = k(O), o([...u.value, L.key], T[L.key]);
949
949
  });
950
950
  }
951
951
  };
@@ -999,7 +999,7 @@ const cs = /* @__PURE__ */ K({
999
999
  return (A, C) => {
1000
1000
  const $ = V("v-list-item-title"), O = V("v-list-item"), T = V("v-list"), L = V("v-menu");
1001
1001
  return w(), F(L, {
1002
- modelValue: k(P),
1002
+ modelValue: E(P),
1003
1003
  "onUpdate:modelValue": C[0] || (C[0] = (W) => Fe(P) ? P.value = W : null),
1004
1004
  "location-strategy": "connected",
1005
1005
  target: s.value,
@@ -1066,20 +1066,20 @@ const Be = /* @__PURE__ */ K({
1066
1066
  }, [
1067
1067
  N(d, {
1068
1068
  class: "mr-1",
1069
- icon: s.collapse ? k($n) : k(bn)
1069
+ icon: s.collapse ? E($n) : E(bn)
1070
1070
  }, null, 8, ["icon"]),
1071
1071
  q("span", null, ne(s.title), 1),
1072
1072
  N(f),
1073
1073
  s.hasCreate ? (w(), F(d, {
1074
1074
  key: 0,
1075
1075
  class: "mx-3",
1076
- icon: k(ds),
1076
+ icon: E(ds),
1077
1077
  onClick: v[0] || (v[0] = z((h) => i("create"), ["stop"]))
1078
1078
  }, null, 8, ["icon"])) : I("", !0),
1079
1079
  s.hasDelete ? (w(), F(d, {
1080
1080
  key: 1,
1081
1081
  class: "mx-3",
1082
- icon: k(ye),
1082
+ icon: E(ye),
1083
1083
  onClick: v[1] || (v[1] = z((h) => i("delete", s.index), ["stop"]))
1084
1084
  }, null, 8, ["icon"])) : I("", !0)
1085
1085
  ], 36)), [
@@ -1143,21 +1143,21 @@ const ce = (e, t, n, r, i, o) => {
1143
1143
  if (i !== void 0)
1144
1144
  if (o) {
1145
1145
  if (n[t.key] === void 0) {
1146
- const l = E(t);
1146
+ const l = k(t);
1147
1147
  l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
1148
1148
  }
1149
1149
  return n[t.key];
1150
1150
  } else {
1151
1151
  if (n[i] === void 0) {
1152
- const l = E(t, !0);
1152
+ const l = k(t, !0);
1153
1153
  l !== void 0 && (n[i] = l, r(e, n[i]));
1154
1154
  }
1155
1155
  return n[i];
1156
1156
  }
1157
1157
  else {
1158
1158
  if (n[t.key] === void 0) {
1159
- const l = E(t);
1160
- t.ui === "strInput" || t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "compSelect" ? l && (n[t.key] = l, r(e, n[t.key])) : l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
1159
+ const l = k(t);
1160
+ l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
1161
1161
  }
1162
1162
  return n[t.key];
1163
1163
  }
@@ -1166,7 +1166,7 @@ const ce = (e, t, n, r, i, o) => {
1166
1166
  l ? r !== n[t.key] && (n[t.key] = r, i(e, n[t.key])) : r !== n[o] && (n[o] = r, i(e, n[o]));
1167
1167
  else {
1168
1168
  let a = r;
1169
- (t.ui === "strInput" || t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "compSelect") && (r || (a = void 0)), a !== n[t.key] && (n[t.key] = a, i(e, n[t.key]));
1169
+ (t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "compSelect") && (r || (a = void 0)), a !== n[t.key] && (n[t.key] = a, i(e, n[t.key]));
1170
1170
  }
1171
1171
  };
1172
1172
  function ms(e) {
@@ -1184,7 +1184,7 @@ const gs = { class: "d-flex justify-space-between align-center" }, ys = /* @__PU
1184
1184
  hasDelete: { type: Boolean, default: !1 },
1185
1185
  readonly: { type: Boolean, default: !1 }
1186
1186
  }, {
1187
- modelValue: {},
1187
+ modelValue: { required: !0 },
1188
1188
  modelModifiers: {}
1189
1189
  }),
1190
1190
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
@@ -1211,7 +1211,7 @@ const gs = { class: "d-flex justify-space-between align-center" }, ys = /* @__PU
1211
1211
  i.hasDelete ? (w(), F(a, {
1212
1212
  key: 0,
1213
1213
  class: "mx-2",
1214
- icon: k(ye),
1214
+ icon: E(ye),
1215
1215
  onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
1216
1216
  }, null, 8, ["icon"])) : I("", !0)
1217
1217
  ]);
@@ -1289,7 +1289,7 @@ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PU
1289
1289
  i.hasDelete ? (w(), F(a, {
1290
1290
  key: 0,
1291
1291
  class: "mx-2",
1292
- icon: k(ye),
1292
+ icon: E(ye),
1293
1293
  onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
1294
1294
  }, null, 8, ["icon"])) : I("", !0)
1295
1295
  ]);
@@ -1355,7 +1355,7 @@ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PU
1355
1355
  i.hasDelete ? (w(), F(a, {
1356
1356
  key: 0,
1357
1357
  class: "mx-2",
1358
- icon: k(ye),
1358
+ icon: E(ye),
1359
1359
  onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
1360
1360
  }, null, 8, ["icon"])) : I("", !0)
1361
1361
  ]);
@@ -1371,7 +1371,7 @@ function ws(e) {
1371
1371
  e,
1372
1372
  o,
1373
1373
  l
1374
- ),
1374
+ ) ?? !1,
1375
1375
  "onUpdate:modelValue": (a) => {
1376
1376
  he(
1377
1377
  n,
@@ -1431,7 +1431,7 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1431
1431
  a.hasDelete ? (w(), F(v, {
1432
1432
  key: 0,
1433
1433
  class: "mx-2",
1434
- icon: k(ye),
1434
+ icon: E(ye),
1435
1435
  onClick: u[1] || (u[1] = z((f) => i("delete"), ["stop"]))
1436
1436
  }, null, 8, ["icon"])) : I("", !0)
1437
1437
  ]);
@@ -1447,7 +1447,7 @@ function Ps(e) {
1447
1447
  e,
1448
1448
  o,
1449
1449
  l
1450
- ),
1450
+ ) ?? "",
1451
1451
  "onUpdate:modelValue": (a) => {
1452
1452
  he(
1453
1453
  n,
@@ -1493,7 +1493,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1493
1493
  onMouseout: s[2] || (s[2] = (f) => l.value = !1)
1494
1494
  }, [
1495
1495
  N(v, {
1496
- icon: i.collapse ? k($n) : k(bn),
1496
+ icon: i.collapse ? E($n) : E(bn),
1497
1497
  size: "small"
1498
1498
  }, null, 8, ["icon"]),
1499
1499
  q("span", Os, ne(i.title), 1),
@@ -1551,8 +1551,8 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1551
1551
  }, l = (a) => {
1552
1552
  n.value = a, r.value = !1, _e.emit("refreshDepends");
1553
1553
  };
1554
- return (a, u) => k(i).length > 0 ? (w(), H("div", Ls, [
1555
- (w(!0), H(He, null, Ht(k(i), (s) => (w(), H(He, {
1554
+ return (a, u) => E(i).length > 0 ? (w(), H("div", Ls, [
1555
+ (w(!0), H(He, null, Ht(E(i), (s) => (w(), H(He, {
1556
1556
  key: s.id
1557
1557
  }, [
1558
1558
  s.type === 0 ? (w(), F(Ms, {
@@ -1570,9 +1570,9 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1570
1570
  onXClick: l
1571
1571
  }, null, 8, ["id", "title"])) : I("", !0)
1572
1572
  ], 64))), 128))
1573
- ])) : (w(), H("div", Ds, ne(k(t)("x-prop-tree.noComp")), 1));
1573
+ ])) : (w(), H("div", Ds, ne(E(t)("x-prop-tree.noComp")), 1));
1574
1574
  }
1575
- }), ks = { class: "text-subtitle-1 ml-3" }, Es = /* @__PURE__ */ K({
1575
+ }), Es = { class: "text-subtitle-1 ml-3" }, ks = /* @__PURE__ */ K({
1576
1576
  __name: "index",
1577
1577
  props: {
1578
1578
  modelValue: {},
@@ -1606,13 +1606,13 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1606
1606
  }), (f, p) => {
1607
1607
  const h = V("v-btn"), P = V("v-sheet"), A = V("v-icon"), C = V("v-dialog");
1608
1608
  return w(), F(C, {
1609
- modelValue: k(d),
1609
+ modelValue: E(d),
1610
1610
  "onUpdate:modelValue": p[5] || (p[5] = ($) => Fe(d) ? d.value = $ : null),
1611
1611
  transition: "scroll-x-reverse-transition",
1612
1612
  persistent: "",
1613
1613
  "no-click-animation": "",
1614
1614
  fullscreen: "",
1615
- onKeydown: p[6] || (p[6] = kn(z(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1615
+ onKeydown: p[6] || (p[6] = En(z(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1616
1616
  }, {
1617
1617
  activator: J(({ props: $ }) => [
1618
1618
  N(h, zt($, {
@@ -1635,7 +1635,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1635
1635
  class: "elevation-2",
1636
1636
  style: le(a.value)
1637
1637
  }, [
1638
- k(r) ? (w(), F(P, {
1638
+ E(r) ? (w(), F(P, {
1639
1639
  key: 0,
1640
1640
  color: "transparent",
1641
1641
  height: 24
@@ -1647,10 +1647,10 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1647
1647
  }, {
1648
1648
  default: J(() => [
1649
1649
  N(A, {
1650
- icon: k(fs),
1650
+ icon: E(fs),
1651
1651
  onClick: p[0] || (p[0] = ($) => d.value = !1)
1652
1652
  }, null, 8, ["icon"]),
1653
- q("span", ks, ne(k(t)("x-prop-tree.dlg.compSelect.title")), 1)
1653
+ q("span", Es, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
1654
1654
  ]),
1655
1655
  _: 1
1656
1656
  }),
@@ -1661,7 +1661,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1661
1661
  N(js, {
1662
1662
  modelValue: o.value,
1663
1663
  "onUpdate:modelValue": p[1] || (p[1] = ($) => o.value = $),
1664
- open: k(d),
1664
+ open: E(d),
1665
1665
  "onUpdate:open": p[2] || (p[2] = ($) => Fe(d) ? d.value = $ : null)
1666
1666
  }, null, 8, ["modelValue", "open"]),
1667
1667
  q("div", {
@@ -1677,7 +1677,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1677
1677
  }
1678
1678
  });
1679
1679
  function Ns(e) {
1680
- return { renderUiCompSelect: (n, r, i, o, l) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Es, {
1680
+ return { renderUiCompSelect: (n, r, i, o, l) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(ks, {
1681
1681
  modelValue: ce(
1682
1682
  n,
1683
1683
  r,
@@ -1721,7 +1721,7 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
1721
1721
  }), (u, s) => {
1722
1722
  const v = V("v-btn"), d = V("v-icon"), f = V("v-color-picker"), p = V("v-menu");
1723
1723
  return w(), F(p, {
1724
- modelValue: k(a),
1724
+ modelValue: E(a),
1725
1725
  "onUpdate:modelValue": s[2] || (s[2] = (h) => Fe(a) ? a.value = h : null),
1726
1726
  "close-on-content-click": !1,
1727
1727
  scrim: "transparent"
@@ -1739,7 +1739,7 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
1739
1739
  disabled: l.value
1740
1740
  }), {
1741
1741
  default: J(() => [
1742
- at(ne(r.value ? r.value : k(n)("x-runtime-lib.notSet")), 1)
1742
+ at(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
1743
1743
  ]),
1744
1744
  _: 2
1745
1745
  }, 1040, ["color", "disabled"])
@@ -1747,7 +1747,7 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
1747
1747
  u.hasDelete ? (w(), F(d, {
1748
1748
  key: 0,
1749
1749
  class: "mx-2",
1750
- icon: k(ye),
1750
+ icon: E(ye),
1751
1751
  onClick: s[0] || (s[0] = z((P) => i("delete"), ["stop"]))
1752
1752
  }, null, 8, ["icon"])) : I("", !0)
1753
1753
  ])
@@ -1882,7 +1882,7 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1882
1882
  f.hasDelete ? (w(), F(A, {
1883
1883
  key: 0,
1884
1884
  class: "mx-2",
1885
- icon: k(ye),
1885
+ icon: E(ye),
1886
1886
  onClick: p[2] || (p[2] = z((T) => i("delete"), ["stop"]))
1887
1887
  }, null, 8, ["icon"])) : I("", !0)
1888
1888
  ]);
@@ -1898,7 +1898,7 @@ function zs(e) {
1898
1898
  e,
1899
1899
  o,
1900
1900
  l
1901
- ),
1901
+ ) ?? "",
1902
1902
  "onUpdate:modelValue": (a) => {
1903
1903
  he(
1904
1904
  n,
@@ -1927,7 +1927,7 @@ const qs = /* @__PURE__ */ K({
1927
1927
  },
1928
1928
  emits: ["change"],
1929
1929
  setup(e, { emit: t }) {
1930
- const { t: n } = ue(), { backgroundColor1: r } = we(), i = e, o = t, l = B("20px"), a = B("56px"), u = B("200px"), s = En({}), v = B({}), d = (g, c) => {
1930
+ const { t: n } = ue(), { backgroundColor1: r } = we(), i = e, o = t, l = B("20px"), a = B("56px"), u = B("200px"), s = kn({}), v = B({}), d = (g, c) => {
1931
1931
  Ft(v, i.config, i.object), o("change", g, c);
1932
1932
  };
1933
1933
  Oe(
@@ -2005,7 +2005,7 @@ const qs = /* @__PURE__ */ K({
2005
2005
  if (!m)
2006
2006
  return console.assert(!1), _("div", "renderBranchArray branch must be valid");
2007
2007
  let D;
2008
- b !== void 0 && !x ? (y[b] instanceof Array || (y[b] = E(c), d(g, y[c.key])), D = y[b]) : (y[c.key] instanceof Array || (y[c.key] = E(c), d(g, y[c.key])), D = y[c.key]);
2008
+ b !== void 0 && !x ? (y[b] instanceof Array || (y[b] = k(c), d(g, y[c.key])), D = y[b]) : (y[c.key] instanceof Array || (y[c.key] = k(c), d(g, y[c.key])), D = y[c.key]);
2009
2009
  let Q = n(c.name);
2010
2010
  m.collapse && be(v.value, g) && (Q += " *");
2011
2011
  const Ae = _(Be, {
@@ -2039,7 +2039,7 @@ const qs = /* @__PURE__ */ K({
2039
2039
  collapse: !0,
2040
2040
  children: {}
2041
2041
  });
2042
- const je = [...g, j], ke = m.children[j];
2042
+ const je = [...g, j], Ee = m.children[j];
2043
2043
  let vt = `[${j + 1}]`;
2044
2044
  m.children[j].collapse && be(v.value, je) && (vt += " *");
2045
2045
  const Un = _(Be, {
@@ -2076,11 +2076,11 @@ const qs = /* @__PURE__ */ K({
2076
2076
  (() => {
2077
2077
  const ee = [];
2078
2078
  return c.children.forEach((fe) => {
2079
- if (!Rt(ke.children)) {
2079
+ if (!Rt(Ee.children)) {
2080
2080
  console.assert(!1);
2081
2081
  return;
2082
2082
  }
2083
- ke.children[fe.key] || (ke.children[fe.key] = {
2083
+ Ee.children[fe.key] || (Ee.children[fe.key] = {
2084
2084
  collapse: !0,
2085
2085
  children: fe.array ? [] : {}
2086
2086
  });
@@ -2088,7 +2088,7 @@ const qs = /* @__PURE__ */ K({
2088
2088
  g,
2089
2089
  fe,
2090
2090
  D[j],
2091
- ke.children[fe.key],
2091
+ Ee.children[fe.key],
2092
2092
  j,
2093
2093
  !0
2094
2094
  );
@@ -2183,7 +2183,7 @@ const qs = /* @__PURE__ */ K({
2183
2183
  if (!m)
2184
2184
  return console.assert(!1), _("div", "renderLeafArray branch must be valid");
2185
2185
  let D;
2186
- b !== void 0 && !x ? (y[b] instanceof Array || (y[b] = E(c), d(g, y[b])), D = y[b]) : (y[c.key] instanceof Array || (y[c.key] = E(c), d(g, y[c.key])), D = y[c.key]);
2186
+ b !== void 0 && !x ? (y[b] instanceof Array || (y[b] = k(c), d(g, y[b])), D = y[b]) : (y[c.key] instanceof Array || (y[c.key] = k(c), d(g, y[c.key])), D = y[c.key]);
2187
2187
  let Q = n(c.name);
2188
2188
  m.collapse && be(v.value, g) && (Q += " *");
2189
2189
  const Ae = _(Be, {
@@ -2197,7 +2197,7 @@ const qs = /* @__PURE__ */ K({
2197
2197
  _e.emit("propTreeMenu", { x: S, y: j, keys: g });
2198
2198
  },
2199
2199
  onCreate: () => {
2200
- D.push(E(c, !0)), d(g, D);
2200
+ D.push(k(c, !0)), d(g, D);
2201
2201
  }
2202
2202
  }), G = _(
2203
2203
  "div",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.6.19",
4
+ "version": "0.6.21",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "vuetify": "^3.8.1",
29
29
  "x-essential-lib": "^0.8.6",
30
30
  "x-group-list": "^0.4.1",
31
- "x-runtime-lib": "^0.6.38",
31
+ "x-runtime-lib": "^0.6.40",
32
32
  "x-state-lib": "^0.2.1"
33
33
  },
34
34
  "devDependencies": {