x-prop-tree 0.6.9 → 0.6.10

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 +84 -80
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as Me, inject as Ue, defineComponent as K, ref as R, computed as G, resolveComponent as O, createBlock as k, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as F, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as ie, createElementVNode as z, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as Vn, mergeProps as qt, watchEffect as mt, watch as Re, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
1
+ import { provide as Me, inject as Ue, defineComponent as K, ref as R, computed as G, resolveComponent as O, createBlock as k, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as F, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as ie, createElementVNode as z, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as Vn, mergeProps as qt, watchEffect as vt, watch as Re, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
2
2
  import { useI18n as ue } from "vue-i18n";
3
3
  import { useViewStack as ut, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
4
4
  import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
@@ -46,7 +46,7 @@ function er(e) {
46
46
  return !!yt && yt in e;
47
47
  }
48
48
  var tr = Function.prototype, nr = tr.toString;
49
- function ve(e) {
49
+ function me(e) {
50
50
  if (e != null) {
51
51
  try {
52
52
  return nr.call(e);
@@ -66,16 +66,16 @@ function cr(e) {
66
66
  if (!ze(e) || er(e))
67
67
  return !1;
68
68
  var t = Xt(e) ? ur : or;
69
- return t.test(ve(e));
69
+ return t.test(me(e));
70
70
  }
71
71
  function fr(e, t) {
72
72
  return e == null ? void 0 : e[t];
73
73
  }
74
- function me(e, t) {
74
+ function ve(e, t) {
75
75
  var n = fr(e, t);
76
76
  return cr(n) ? n : void 0;
77
77
  }
78
- var rt = me(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
78
+ var rt = ve(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
79
79
  function e() {
80
80
  }
81
81
  return function(t) {
@@ -89,7 +89,7 @@ var rt = me(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
89
89
  };
90
90
  }(), _t = function() {
91
91
  try {
92
- var e = me(Object, "defineProperty");
92
+ var e = ve(Object, "defineProperty");
93
93
  return e({}, "", {}), e;
94
94
  } catch {
95
95
  }
@@ -99,10 +99,10 @@ function pr(e, t) {
99
99
  ;
100
100
  return e;
101
101
  }
102
- var vr = 9007199254740991, mr = /^(?:0|[1-9]\d*)$/;
102
+ var mr = 9007199254740991, vr = /^(?:0|[1-9]\d*)$/;
103
103
  function gr(e, t) {
104
104
  var n = typeof e;
105
- return t = t ?? vr, !!t && (n == "number" || n != "symbol" && mr.test(e)) && e > -1 && e % 1 == 0 && e < t;
105
+ return t = t ?? mr, !!t && (n == "number" || n != "symbol" && vr.test(e)) && e > -1 && e % 1 == 0 && e < t;
106
106
  }
107
107
  function yr(e, t, n) {
108
108
  t == "__proto__" && _t ? _t(e, t, {
@@ -194,20 +194,20 @@ function co(e) {
194
194
  function fo(e) {
195
195
  return Tr(e) ? io(e) : co(e);
196
196
  }
197
- var Oe = me(Object, "create");
197
+ var Oe = ve(Object, "create");
198
198
  function po() {
199
199
  this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
200
200
  }
201
- function vo(e) {
201
+ function mo(e) {
202
202
  var t = this.has(e) && delete this.__data__[e];
203
203
  return this.size -= t ? 1 : 0, t;
204
204
  }
205
- var mo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
205
+ var vo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
206
206
  function ho(e) {
207
207
  var t = this.__data__;
208
208
  if (Oe) {
209
209
  var n = t[e];
210
- return n === mo ? void 0 : n;
210
+ return n === vo ? void 0 : n;
211
211
  }
212
212
  return yo.call(t, e) ? t[e] : void 0;
213
213
  }
@@ -229,7 +229,7 @@ function pe(e) {
229
229
  }
230
230
  }
231
231
  pe.prototype.clear = po;
232
- pe.prototype.delete = vo;
232
+ pe.prototype.delete = mo;
233
233
  pe.prototype.get = ho;
234
234
  pe.prototype.has = $o;
235
235
  pe.prototype.set = So;
@@ -273,7 +273,7 @@ le.prototype.delete = Po;
273
273
  le.prototype.get = Oo;
274
274
  le.prototype.has = xo;
275
275
  le.prototype.set = Mo;
276
- var xe = me(Y, "Map");
276
+ var xe = ve(Y, "Map");
277
277
  function Uo() {
278
278
  this.size = 0, this.__data__ = {
279
279
  hash: new pe(),
@@ -381,9 +381,9 @@ function Yo(e, t, n) {
381
381
  function ot(e) {
382
382
  return Yo(e, fo, Wo);
383
383
  }
384
- var lt = me(Y, "DataView"), it = me(Y, "Promise"), st = me(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = ve(lt), tl = ve(xe), nl = ve(it), rl = ve(st), ol = ve(rt), Z = Ve;
384
+ var lt = ve(Y, "DataView"), it = ve(Y, "Promise"), st = ve(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = me(lt), tl = me(xe), nl = me(it), rl = me(st), ol = me(rt), Z = Ve;
385
385
  (lt && Z(new lt(new ArrayBuffer(1))) != Ut || xe && Z(new xe()) != Pt || it && Z(it.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Mt) && (Z = function(e) {
386
- var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? ve(n) : "";
386
+ var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? me(n) : "";
387
387
  if (r)
388
388
  switch (r) {
389
389
  case el:
@@ -426,14 +426,14 @@ function dl(e, t) {
426
426
  var n = dt(e.buffer);
427
427
  return new e.constructor(n, e.byteOffset, e.length);
428
428
  }
429
- var pl = "[object Boolean]", vl = "[object Date]", ml = "[object Map]", gl = "[object Number]", yl = "[object RegExp]", hl = "[object Set]", _l = "[object String]", bl = "[object Symbol]", $l = "[object ArrayBuffer]", Tl = "[object DataView]", Sl = "[object Float32Array]", wl = "[object Float64Array]", Al = "[object Int8Array]", Cl = "[object Int16Array]", Pl = "[object Int32Array]", Ol = "[object Uint8Array]", xl = "[object Uint8ClampedArray]", Ml = "[object Uint16Array]", Ul = "[object Uint32Array]";
429
+ var pl = "[object Boolean]", ml = "[object Date]", vl = "[object Map]", gl = "[object Number]", yl = "[object RegExp]", hl = "[object Set]", _l = "[object String]", bl = "[object Symbol]", $l = "[object ArrayBuffer]", Tl = "[object DataView]", Sl = "[object Float32Array]", wl = "[object Float64Array]", Al = "[object Int8Array]", Cl = "[object Int16Array]", Pl = "[object Int32Array]", Ol = "[object Uint8Array]", xl = "[object Uint8ClampedArray]", Ml = "[object Uint16Array]", Ul = "[object Uint32Array]";
430
430
  function Vl(e, t, n) {
431
431
  var r = e.constructor;
432
432
  switch (t) {
433
433
  case $l:
434
434
  return dt(e);
435
435
  case pl:
436
- case vl:
436
+ case ml:
437
437
  return new r(+e);
438
438
  case Tl:
439
439
  return al(e);
@@ -447,7 +447,7 @@ function Vl(e, t, n) {
447
447
  case Ml:
448
448
  case Ul:
449
449
  return dl(e);
450
- case ml:
450
+ case vl:
451
451
  return new r();
452
452
  case gl:
453
453
  case _l:
@@ -527,13 +527,13 @@ function qe(e) {
527
527
  }
528
528
  qe.prototype.add = qe.prototype.push = di;
529
529
  qe.prototype.has = pi;
530
- function vi(e, t) {
530
+ function mi(e, t) {
531
531
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
532
532
  if (t(e[n], n, e))
533
533
  return !0;
534
534
  return !1;
535
535
  }
536
- function mi(e, t) {
536
+ function vi(e, t) {
537
537
  return e.has(t);
538
538
  }
539
539
  var gi = 1, yi = 2;
@@ -556,8 +556,8 @@ function an(e, t, n, r, l, o) {
556
556
  break;
557
557
  }
558
558
  if (y) {
559
- if (!vi(t, function(D, w) {
560
- if (!mi(y, w) && (h === D || l(h, D, n, r, o)))
559
+ if (!mi(t, function(D, w) {
560
+ if (!vi(y, w) && (h === D || l(h, D, n, r, o)))
561
561
  return y.push(w);
562
562
  })) {
563
563
  g = !1;
@@ -870,7 +870,7 @@ const Ne = (e, t) => {
870
870
  return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
871
871
  typeof r == "string" ? pt(n.children) && (n = n.children[r]) : Je(n.children) && (n = n.children[r]);
872
872
  }), (n == null ? void 0 : n.change) ?? !1;
873
- }, fn = Symbol(), dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol();
873
+ }, fn = Symbol(), dn = Symbol(), pn = Symbol(), mn = Symbol(), vn = Symbol();
874
874
  function Ji(e) {
875
875
  Me(fn, e);
876
876
  }
@@ -890,16 +890,16 @@ function ts() {
890
890
  return Ue(pn);
891
891
  }
892
892
  function ns(e) {
893
- Me(vn, e);
893
+ Me(mn, e);
894
894
  }
895
895
  function rs() {
896
- return Ue(vn);
896
+ return Ue(mn);
897
897
  }
898
898
  function os(e) {
899
- Me(mn, e);
899
+ Me(vn, e);
900
900
  }
901
901
  function gn() {
902
- return Ue(mn);
902
+ return Ue(vn);
903
903
  }
904
904
  const ls = /* @__PURE__ */ K({
905
905
  __name: "menu",
@@ -1227,7 +1227,7 @@ function ps(e) {
1227
1227
  readonly: r.static || r.readonly
1228
1228
  }) };
1229
1229
  }
1230
- const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */ K({
1230
+ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PURE__ */ K({
1231
1231
  __name: "numInput",
1232
1232
  props: /* @__PURE__ */ X({
1233
1233
  hasDelete: { type: Boolean, default: !1 },
@@ -1246,7 +1246,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
1246
1246
  const n = oe(e, "modelValue"), r = t;
1247
1247
  return (l, o) => {
1248
1248
  const i = O("v-number-input"), s = O("v-icon"), u = ae("ripple");
1249
- return S(), F("div", vs, [
1249
+ return S(), F("div", ms, [
1250
1250
  re(B(i, {
1251
1251
  modelValue: n.value,
1252
1252
  "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
@@ -1278,7 +1278,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
1278
1278
  }
1279
1279
  });
1280
1280
  function gs(e) {
1281
- return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(ms, {
1281
+ return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(vs, {
1282
1282
  modelValue: ce(
1283
1283
  n,
1284
1284
  r,
@@ -1302,6 +1302,10 @@ function gs(e) {
1302
1302
  onDelete: () => {
1303
1303
  o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1304
1304
  },
1305
+ precision: r.precision,
1306
+ min: r.min,
1307
+ max: r.max,
1308
+ step: r.step,
1305
1309
  readonly: r.readonly
1306
1310
  }) };
1307
1311
  }
@@ -1577,7 +1581,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1577
1581
  height: "60px"
1578
1582
  })), d = G(() => {
1579
1583
  if (!o.value)
1580
- return t("x-prop-tree.notSet");
1584
+ return t("x-runtime-lib.notSet");
1581
1585
  const g = cn(i, o.value);
1582
1586
  return g ? g.name : t("x-runtime-lib.compNotAvail");
1583
1587
  }), { open: c } = ut(`propTreeCompSelectDlg${Gt()}`);
@@ -1787,20 +1791,20 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
1787
1791
  setup(e, { emit: t }) {
1788
1792
  const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = R(0), i = G(() => {
1789
1793
  const d = [];
1790
- return e.types.forEach(({ name: c }, g) => {
1794
+ return e.types.forEach(({ title: c }, g) => {
1791
1795
  d.push({
1792
1796
  title: n(c),
1793
1797
  value: g
1794
1798
  });
1795
1799
  }), d;
1796
1800
  });
1797
- mt(() => {
1801
+ vt(() => {
1798
1802
  e.types.some((d, c) => d.validator(r.value) ? (o.value = c, !0) : !1);
1799
1803
  });
1800
1804
  const s = G(() => e.types[o.value]), u = () => {
1801
1805
  r.value = s.value.default;
1802
1806
  }, a = R(0);
1803
- return mt(() => {
1807
+ return vt(() => {
1804
1808
  s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
1805
1809
  }), Re(a, (d) => {
1806
1810
  s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
@@ -1894,14 +1898,14 @@ const Fs = /* @__PURE__ */ K({
1894
1898
  },
1895
1899
  emits: ["change"],
1896
1900
  setup(e, { emit: t }) {
1897
- const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i = R("20px"), s = R("56px"), u = R("200px"), a = Ln({}), d = R({}), c = (v, f) => {
1898
- Ft(d, l.config, l.object), o("change", v, f);
1901
+ const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i = R("20px"), s = R("56px"), u = R("200px"), a = Ln({}), d = R({}), c = (m, f) => {
1902
+ Ft(d, l.config, l.object), o("change", m, f);
1899
1903
  };
1900
1904
  Re(
1901
1905
  [() => l.config, () => l.object],
1902
1906
  () => {
1903
- Ft(d, l.config, l.object, (v, f) => {
1904
- o("change", v, f);
1907
+ Ft(d, l.config, l.object, (m, f) => {
1908
+ o("change", m, f);
1905
1909
  });
1906
1910
  },
1907
1911
  { immediate: !0 }
@@ -1923,10 +1927,10 @@ const Fs = /* @__PURE__ */ K({
1923
1927
  const h = R([]);
1924
1928
  os(h);
1925
1929
  const M = () => {
1926
- const { compGroups: v, comps: f } = kn.app.activeApp, m = [];
1927
- v.forEach(({ id: p, name: $, position: C }) => {
1930
+ const { compGroups: m, comps: f } = kn.app.activeApp, v = [];
1931
+ m.forEach(({ id: p, name: $, position: C }) => {
1928
1932
  const L = h.value.find((Q) => Q.id === p);
1929
- m.push({
1933
+ v.push({
1930
1934
  id: p,
1931
1935
  type: 0,
1932
1936
  name: $,
@@ -1934,8 +1938,8 @@ const Fs = /* @__PURE__ */ K({
1934
1938
  collapse: (L == null ? void 0 : L.collapse) ?? !0
1935
1939
  });
1936
1940
  }), f.forEach(({ id: p, groupid: $, name: C, position: L }) => {
1937
- m.push({ id: p, type: 1, name: C, position: L, group: $ });
1938
- }), Fi(m, !0), h.value = m;
1941
+ v.push({ id: p, type: 1, name: C, position: L, group: $ });
1942
+ }), Fi(v, !0), h.value = v;
1939
1943
  };
1940
1944
  let b;
1941
1945
  const D = () => {
@@ -1950,14 +1954,14 @@ const Fs = /* @__PURE__ */ K({
1950
1954
  }), jn(() => {
1951
1955
  w();
1952
1956
  });
1953
- const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(c), { renderUiStrInput: V } = ps(c), { renderUiNumInput: W } = gs(c), { renderUiSwitch: Ye } = _s(c), { renderUiSelect: _n } = Ts(c), { renderUiColorPicker: bn } = Es(c), { renderUiMultiTypes: $n } = ks(c), { renderUiCompSelect: Tn } = Ls(c), Le = (v, f, m, p, $, C) => (v = sn(v), $ !== void 0 ? (v.push($), C && v.push(f.key)) : v.push(f.key), f.ui ? f.array && p ? An(v, f, m, p, $, C) : Cn(v, f, m, $, C) : f.array ? Sn(v, f, m, p, $, C) : wn(
1954
- v,
1955
- f,
1957
+ const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(c), { renderUiStrInput: V } = ps(c), { renderUiNumInput: W } = gs(c), { renderUiSwitch: Ye } = _s(c), { renderUiSelect: _n } = Ts(c), { renderUiColorPicker: bn } = Es(c), { renderUiMultiTypes: $n } = ks(c), { renderUiCompSelect: Tn } = Ls(c), Le = (m, f, v, p, $, C) => (m = sn(m), $ !== void 0 ? (m.push($), C && m.push(f.key)) : m.push(f.key), f.ui ? f.array && p ? An(m, f, v, p, $, C) : Cn(m, f, v, $, C) : f.array ? Sn(m, f, v, p, $, C) : wn(
1956
1958
  m,
1959
+ f,
1960
+ v,
1957
1961
  p,
1958
1962
  $,
1959
1963
  C
1960
- )), Sn = (v, f, m, p, $, C) => {
1964
+ )), Sn = (m, f, v, p, $, C) => {
1961
1965
  if (f.ui)
1962
1966
  return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
1963
1967
  if (!f.array)
@@ -1965,9 +1969,9 @@ const Fs = /* @__PURE__ */ K({
1965
1969
  if (!p)
1966
1970
  return console.assert(!1), _("div", "renderBranchArray branch must be valid");
1967
1971
  let L;
1968
- $ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(f), c(v, m[f.key])), L = m[$]) : (m[f.key] instanceof Array || (m[f.key] = N(f), c(v, m[f.key])), L = m[f.key]);
1972
+ $ !== void 0 && !C ? (v[$] instanceof Array || (v[$] = N(f), c(m, v[f.key])), L = v[$]) : (v[f.key] instanceof Array || (v[f.key] = N(f), c(m, v[f.key])), L = v[f.key]);
1969
1973
  let Q = n(f.name);
1970
- p.collapse && be(d.value, v) && (Q += " *");
1974
+ p.collapse && be(d.value, m) && (Q += " *");
1971
1975
  const Se = _(Be, {
1972
1976
  title: Q,
1973
1977
  collapse: p.collapse,
@@ -1976,10 +1980,10 @@ const Fs = /* @__PURE__ */ K({
1976
1980
  p.collapse = T;
1977
1981
  },
1978
1982
  onMenu: (T, j) => {
1979
- _e.emit("propTreeMenu", { x: T, y: j, keys: v });
1983
+ _e.emit("propTreeMenu", { x: T, y: j, keys: m });
1980
1984
  },
1981
1985
  onCreate: () => {
1982
- L.push({}), c(v, L);
1986
+ L.push({}), c(m, L);
1983
1987
  }
1984
1988
  }), H = _(
1985
1989
  "div",
@@ -1999,11 +2003,11 @@ const Fs = /* @__PURE__ */ K({
1999
2003
  collapse: !0,
2000
2004
  children: {}
2001
2005
  });
2002
- const De = [...v, j], je = p.children[j];
2003
- let vt = `[${j + 1}]`;
2004
- p.children[j].collapse && be(d.value, De) && (vt += " *");
2006
+ const De = [...m, j], je = p.children[j];
2007
+ let mt = `[${j + 1}]`;
2008
+ p.children[j].collapse && be(d.value, De) && (mt += " *");
2005
2009
  const On = _(Be, {
2006
- title: vt,
2010
+ title: mt,
2007
2011
  collapse: p.children[j].collapse,
2008
2012
  hasDelete: !0,
2009
2013
  index: j,
@@ -2022,7 +2026,7 @@ const Fs = /* @__PURE__ */ K({
2022
2026
  console.assert(!1);
2023
2027
  return;
2024
2028
  }
2025
- p.children.splice(ee, 1), L.splice(ee, 1), c(v, L);
2029
+ p.children.splice(ee, 1), L.splice(ee, 1), c(m, L);
2026
2030
  }
2027
2031
  });
2028
2032
  T.push(On);
@@ -2045,7 +2049,7 @@ const Fs = /* @__PURE__ */ K({
2045
2049
  children: fe.array ? [] : {}
2046
2050
  });
2047
2051
  const Mn = Le(
2048
- v,
2052
+ m,
2049
2053
  fe,
2050
2054
  L[j],
2051
2055
  je.children[fe.key],
@@ -2073,7 +2077,7 @@ const Fs = /* @__PURE__ */ K({
2073
2077
  return T.push(Se), p.collapse || T.push(H), T;
2074
2078
  })()
2075
2079
  );
2076
- }, wn = (v, f, m, p, $, C) => {
2080
+ }, wn = (m, f, v, p, $, C) => {
2077
2081
  if (f.ui)
2078
2082
  return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2079
2083
  if (f.array)
@@ -2081,7 +2085,7 @@ const Fs = /* @__PURE__ */ K({
2081
2085
  if (!p)
2082
2086
  return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2083
2087
  let L = n(f.name);
2084
- p.collapse && be(d.value, v) && (L += " *");
2088
+ p.collapse && be(d.value, m) && (L += " *");
2085
2089
  const Q = _(Be, {
2086
2090
  title: L,
2087
2091
  collapse: p.collapse,
@@ -2090,10 +2094,10 @@ const Fs = /* @__PURE__ */ K({
2090
2094
  p.collapse = H;
2091
2095
  },
2092
2096
  onMenu: (H, T) => {
2093
- _e.emit("propTreeMenu", { x: H, y: T, keys: v });
2097
+ _e.emit("propTreeMenu", { x: H, y: T, keys: m });
2094
2098
  },
2095
2099
  onDelete: () => {
2096
- $ === void 0 || C || (m.splice($, 1), c(v.slice(0, -1), m));
2100
+ $ === void 0 || C || (v.splice($, 1), c(m.slice(0, -1), v));
2097
2101
  }
2098
2102
  }), Se = _(
2099
2103
  "div",
@@ -2114,9 +2118,9 @@ const Fs = /* @__PURE__ */ K({
2114
2118
  children: !T.ui && T.array ? [] : {}
2115
2119
  });
2116
2120
  const j = Le(
2117
- v,
2121
+ m,
2118
2122
  T,
2119
- (typeof m[f.key] != "object" && (m[f.key] = {}, c(v, m[f.key])), m[f.key]),
2123
+ (typeof v[f.key] != "object" && (v[f.key] = {}, c(m, v[f.key])), v[f.key]),
2120
2124
  p.children[T.key]
2121
2125
  );
2122
2126
  H.push(j);
@@ -2135,7 +2139,7 @@ const Fs = /* @__PURE__ */ K({
2135
2139
  return H.push(Q), p.collapse || H.push(Se), H;
2136
2140
  })()
2137
2141
  );
2138
- }, An = (v, f, m, p, $, C) => {
2142
+ }, An = (m, f, v, p, $, C) => {
2139
2143
  if (!f.ui)
2140
2144
  return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2141
2145
  if (!f.array)
@@ -2143,9 +2147,9 @@ const Fs = /* @__PURE__ */ K({
2143
2147
  if (!p)
2144
2148
  return console.assert(!1), _("div", "renderLeafArray branch must be valid");
2145
2149
  let L;
2146
- $ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(f), c(v, m[$])), L = m[$]) : (m[f.key] instanceof Array || (m[f.key] = N(f), c(v, m[f.key])), L = m[f.key]);
2150
+ $ !== void 0 && !C ? (v[$] instanceof Array || (v[$] = N(f), c(m, v[$])), L = v[$]) : (v[f.key] instanceof Array || (v[f.key] = N(f), c(m, v[f.key])), L = v[f.key]);
2147
2151
  let Q = n(f.name);
2148
- p.collapse && be(d.value, v) && (Q += " *");
2152
+ p.collapse && be(d.value, m) && (Q += " *");
2149
2153
  const Se = _(Be, {
2150
2154
  title: Q,
2151
2155
  collapse: p.collapse,
@@ -2154,10 +2158,10 @@ const Fs = /* @__PURE__ */ K({
2154
2158
  p.collapse = T;
2155
2159
  },
2156
2160
  onMenu: (T, j) => {
2157
- _e.emit("propTreeMenu", { x: T, y: j, keys: v });
2161
+ _e.emit("propTreeMenu", { x: T, y: j, keys: m });
2158
2162
  },
2159
2163
  onCreate: () => {
2160
- L.push(N(f, !0)), c(v, L);
2164
+ L.push(N(f, !0)), c(m, L);
2161
2165
  }
2162
2166
  }), H = _(
2163
2167
  "div",
@@ -2169,7 +2173,7 @@ const Fs = /* @__PURE__ */ K({
2169
2173
  (() => {
2170
2174
  const T = [];
2171
2175
  for (let j = 0; j < L.length; j++) {
2172
- const De = Le(v, f, L, void 0, j, !1);
2176
+ const De = Le(m, f, L, void 0, j, !1);
2173
2177
  T.push(De);
2174
2178
  }
2175
2179
  return T;
@@ -2187,11 +2191,11 @@ const Fs = /* @__PURE__ */ K({
2187
2191
  return T.push(Se), p.collapse || T.push(H), T;
2188
2192
  })()
2189
2193
  );
2190
- }, Cn = (v, f, m, p, $) => {
2194
+ }, Cn = (m, f, v, p, $) => {
2191
2195
  if (!f.ui)
2192
2196
  return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
2193
2197
  let C;
2194
- return f.ui === "dummy" ? C = A(v, f, m, p, $) : f.ui === "strInput" ? C = V(v, f, m, p, $) : f.ui === "numInput" ? C = W(v, f, m, p, $) : f.ui === "switch" ? C = Ye(v, f, m, p, $) : f.ui === "select" ? C = _n(v, f, m, p, $) : f.ui === "colorPicker" ? C = bn(v, f, m, p, $) : f.ui === "multiTypes" ? C = $n(v, f, m, p, $) : f.ui === "compSelect" ? C = Tn(v, f, m, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(v, f, C) : _("div");
2198
+ return f.ui === "dummy" ? C = A(m, f, v, p, $) : f.ui === "strInput" ? C = V(m, f, v, p, $) : f.ui === "numInput" ? C = W(m, f, v, p, $) : f.ui === "switch" ? C = Ye(m, f, v, p, $) : f.ui === "select" ? C = _n(m, f, v, p, $) : f.ui === "colorPicker" ? C = bn(m, f, v, p, $) : f.ui === "multiTypes" ? C = $n(m, f, v, p, $) : f.ui === "compSelect" ? C = Tn(m, f, v, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(m, f, C) : _("div");
2195
2199
  }, Pn = () => _(
2196
2200
  "div",
2197
2201
  {
@@ -2201,23 +2205,23 @@ const Fs = /* @__PURE__ */ K({
2201
2205
  }
2202
2206
  },
2203
2207
  (() => {
2204
- const v = [];
2208
+ const m = [];
2205
2209
  if (l.unique && l.config.length > 0 && l.object) {
2206
2210
  a[l.unique] || (a[l.unique] = {});
2207
2211
  const f = a[l.unique];
2208
- l.config.forEach((m) => {
2209
- f[m.key] || (f[m.key] = {
2212
+ l.config.forEach((v) => {
2213
+ f[v.key] || (f[v.key] = {
2210
2214
  collapse: !0,
2211
- children: !m.ui && m.array ? [] : {}
2215
+ children: !v.ui && v.array ? [] : {}
2212
2216
  });
2213
- const p = Le([], m, l.object, f[m.key]);
2214
- v.push(p);
2217
+ const p = Le([], v, l.object, f[v.key]);
2218
+ m.push(p);
2215
2219
  });
2216
2220
  }
2217
- return v;
2221
+ return m;
2218
2222
  })()
2219
2223
  );
2220
- return (v, f) => (S(), F(He, null, [
2224
+ return (m, f) => (S(), F(He, null, [
2221
2225
  B(Pn),
2222
2226
  B(ls, {
2223
2227
  config: l.config,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.6.9",
4
+ "version": "0.6.10",
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.28",
31
+ "x-runtime-lib": "^0.6.30",
32
32
  "x-state-lib": "^0.2.1"
33
33
  },
34
34
  "devDependencies": {