x-prop-tree 0.6.12 → 0.6.14

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 +65 -56
  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 Re, 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 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";
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";
@@ -20,13 +20,13 @@ function Wn(e) {
20
20
  return Jn.call(e);
21
21
  }
22
22
  var Yn = "[object Null]", Qn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
23
- function Ue(e) {
23
+ function Le(e) {
24
24
  return e == null ? e === void 0 ? Qn : Yn : gt && gt in Object(e) ? Xn(e) : Wn(e);
25
25
  }
26
26
  function de(e) {
27
27
  return e != null && typeof e == "object";
28
28
  }
29
- var xe = Array.isArray;
29
+ var Ve = Array.isArray;
30
30
  function ze(e) {
31
31
  var t = typeof e;
32
32
  return e != null && (t == "object" || t == "function");
@@ -35,7 +35,7 @@ var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object Gener
35
35
  function Zt(e) {
36
36
  if (!ze(e))
37
37
  return !1;
38
- var t = Ue(e);
38
+ var t = Le(e);
39
39
  return t == tr || t == nr || t == er || t == rr;
40
40
  }
41
41
  var Qe = Y["__core-js_shared__"], yt = function() {
@@ -139,7 +139,7 @@ function Or(e, t) {
139
139
  }
140
140
  var xr = "[object Arguments]";
141
141
  function bt(e) {
142
- return de(e) && Ue(e) == xr;
142
+ return de(e) && Le(e) == xr;
143
143
  }
144
144
  var Yt = Object.prototype, Vr = Yt.hasOwnProperty, Mr = Yt.propertyIsEnumerable, Ur = bt(/* @__PURE__ */ function() {
145
145
  return arguments;
@@ -153,22 +153,22 @@ var Qt = typeof exports == "object" && exports && !exports.nodeType && exports,
153
153
  M[Wr] = M[Yr] = M[Qr] = M[eo] = M[to] = M[no] = M[ro] = M[oo] = M[io] = !0;
154
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;
155
155
  function lo(e) {
156
- return de(e) && Jt(e.length) && !!M[Ue(e)];
156
+ return de(e) && Jt(e.length) && !!M[Le(e)];
157
157
  }
158
158
  function ft(e) {
159
159
  return function(t) {
160
160
  return e(t);
161
161
  };
162
162
  }
163
- var en = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = en && typeof module == "object" && module && !module.nodeType && module, so = Oe && Oe.exports === en, et = so && It.process, $e = function() {
163
+ var en = typeof exports == "object" && exports && !exports.nodeType && exports, xe = en && typeof module == "object" && module && !module.nodeType && module, so = xe && xe.exports === en, et = so && It.process, $e = function() {
164
164
  try {
165
- var e = Oe && Oe.require && Oe.require("util").types;
165
+ var e = xe && xe.require && xe.require("util").types;
166
166
  return e || et && et.binding && et.binding("util");
167
167
  } catch {
168
168
  }
169
169
  }(), St = $e && $e.isTypedArray, tn = St ? ft(St) : lo, ao = Object.prototype, uo = ao.hasOwnProperty;
170
170
  function co(e, t) {
171
- var n = xe(e), r = !n && Ur(e), i = !n && !r && Ge(e), o = !n && !r && !i && tn(e), l = n || r || i || o, u = l ? Or(e.length, String) : [], a = u.length;
171
+ var n = Ve(e), r = !n && Ur(e), i = !n && !r && Ge(e), o = !n && !r && !i && tn(e), l = n || r || i || o, u = l ? Or(e.length, String) : [], a = u.length;
172
172
  for (var s in e)
173
173
  uo.call(e, s) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
174
174
  (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -194,9 +194,9 @@ function mo(e) {
194
194
  function go(e) {
195
195
  return Cr(e) ? co(e) : mo(e);
196
196
  }
197
- var Ve = me(Object, "create");
197
+ var Me = me(Object, "create");
198
198
  function yo() {
199
- this.__data__ = Ve ? Ve(null) : {}, this.size = 0;
199
+ this.__data__ = Me ? Me(null) : {}, this.size = 0;
200
200
  }
201
201
  function ho(e) {
202
202
  var t = this.has(e) && delete this.__data__[e];
@@ -205,7 +205,7 @@ function ho(e) {
205
205
  var _o = "__lodash_hash_undefined__", bo = Object.prototype, $o = bo.hasOwnProperty;
206
206
  function To(e) {
207
207
  var t = this.__data__;
208
- if (Ve) {
208
+ if (Me) {
209
209
  var n = t[e];
210
210
  return n === _o ? void 0 : n;
211
211
  }
@@ -214,12 +214,12 @@ function To(e) {
214
214
  var So = Object.prototype, wo = So.hasOwnProperty;
215
215
  function Ao(e) {
216
216
  var t = this.__data__;
217
- return Ve ? t[e] !== void 0 : wo.call(t, e);
217
+ return Me ? t[e] !== void 0 : wo.call(t, e);
218
218
  }
219
219
  var Co = "__lodash_hash_undefined__";
220
220
  function Po(e, t) {
221
221
  var n = this.__data__;
222
- return this.size += this.has(e) ? 0 : 1, n[e] = Ve && t === void 0 ? Co : t, this;
222
+ return this.size += this.has(e) ? 0 : 1, n[e] = Me && t === void 0 ? Co : t, this;
223
223
  }
224
224
  function pe(e) {
225
225
  var t = -1, n = e == null ? 0 : e.length;
@@ -273,11 +273,11 @@ ie.prototype.delete = Mo;
273
273
  ie.prototype.get = Uo;
274
274
  ie.prototype.has = Lo;
275
275
  ie.prototype.set = Do;
276
- var Me = me(Y, "Map");
276
+ var Ue = me(Y, "Map");
277
277
  function jo() {
278
278
  this.size = 0, this.__data__ = {
279
279
  hash: new pe(),
280
- map: new (Me || ie)(),
280
+ map: new (Ue || ie)(),
281
281
  string: new pe()
282
282
  };
283
283
  }
@@ -339,7 +339,7 @@ function Xo(e, t) {
339
339
  var n = this.__data__;
340
340
  if (n instanceof ie) {
341
341
  var r = n.__data__;
342
- if (!Me || r.length < Io - 1)
342
+ if (!Ue || r.length < Io - 1)
343
343
  return r.push([e, t]), this.size = ++n.size, this;
344
344
  n = this.__data__ = new ge(r);
345
345
  }
@@ -376,14 +376,14 @@ var Qo = Object.prototype, ei = Qo.propertyIsEnumerable, Ct = Object.getOwnPrope
376
376
  } : Yo;
377
377
  function ni(e, t, n) {
378
378
  var r = t(e);
379
- return xe(e) ? r : Fo(r, n(e));
379
+ return Ve(e) ? r : Fo(r, n(e));
380
380
  }
381
381
  function ot(e) {
382
382
  return ni(e, go, ti);
383
383
  }
384
- var it = me(Y, "DataView"), lt = me(Y, "Promise"), st = me(Y, "Set"), Pt = "[object Map]", ri = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Vt = "[object WeakMap]", Mt = "[object DataView]", oi = ve(it), ii = ve(Me), li = ve(lt), si = ve(st), ai = ve(rt), Z = Ue;
385
- (it && Z(new it(new ArrayBuffer(1))) != Mt || Me && Z(new Me()) != Pt || lt && Z(lt.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Vt) && (Z = function(e) {
386
- var t = Ue(e), n = t == ri ? e.constructor : void 0, r = n ? ve(n) : "";
384
+ var it = me(Y, "DataView"), lt = me(Y, "Promise"), st = me(Y, "Set"), Pt = "[object Map]", ri = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Vt = "[object WeakMap]", Mt = "[object DataView]", oi = ve(it), ii = ve(Ue), li = ve(lt), si = ve(st), ai = ve(rt), Z = Le;
385
+ (it && Z(new it(new ArrayBuffer(1))) != Mt || Ue && Z(new Ue()) != Pt || lt && Z(lt.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Vt) && (Z = function(e) {
386
+ var t = Le(e), n = t == ri ? e.constructor : void 0, r = n ? ve(n) : "";
387
387
  if (r)
388
388
  switch (r) {
389
389
  case oi:
@@ -480,7 +480,7 @@ function ke(e, t, n, r, i, o) {
480
480
  return l;
481
481
  if (!ze(e))
482
482
  return e;
483
- var u = xe(e);
483
+ var u = Ve(e);
484
484
  if (u)
485
485
  l = fi(e);
486
486
  else {
@@ -650,11 +650,11 @@ function Fl(e, t, n, r, i, o) {
650
650
  }
651
651
  return o.delete(e), o.delete(t), V;
652
652
  }
653
- var Hl = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", Gl = Object.prototype, Rt = Gl.hasOwnProperty;
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
- var l = xe(e), u = xe(t), a = l ? Bt : Z(e), s = u ? Bt : Z(t);
656
- a = a == Nt ? Ee : a, s = s == Nt ? Ee : s;
657
- var p = a == Ee, f = s == Ee, d = a == s;
655
+ var l = Ve(e), u = Ve(t), a = l ? Bt : Z(e), s = u ? Bt : Z(t);
656
+ a = a == Nt ? Ne : a, s = s == Nt ? Ne : s;
657
+ var p = a == Ne, f = s == Ne, d = a == s;
658
658
  if (d && Ge(e)) {
659
659
  if (!Ge(t))
660
660
  return !1;
@@ -712,7 +712,7 @@ function zl(e, t, n) {
712
712
  }
713
713
  }
714
714
  }
715
- const Ne = (e, t) => {
715
+ const Be = (e, t) => {
716
716
  let n = { key: "", name: "", children: e };
717
717
  return t.forEach((r) => {
718
718
  if (typeof r != "number") {
@@ -914,7 +914,7 @@ const cs = /* @__PURE__ */ K({
914
914
  const A = () => !(a.value.length <= 0 || !be(i.value, a.value)), b = () => {
915
915
  if (!A())
916
916
  return;
917
- const U = Ne(n.value, a.value);
917
+ const U = Be(n.value, a.value);
918
918
  if (U)
919
919
  if (U.ui) {
920
920
  const C = Pe(r.value, a.value.slice(0, -1));
@@ -955,7 +955,7 @@ const cs = /* @__PURE__ */ K({
955
955
  });
956
956
  }, f = (w) => {
957
957
  const A = () => {
958
- const b = Ne(n.value, a.value), U = Pe(r.value, a.value);
958
+ const b = Be(n.value, a.value), U = Pe(r.value, a.value);
959
959
  localStorage.setItem("propTreeCopy", JSON.stringify({ prop: b, object: U }));
960
960
  };
961
961
  w.push({
@@ -968,7 +968,7 @@ const cs = /* @__PURE__ */ K({
968
968
  if (!U)
969
969
  return !1;
970
970
  try {
971
- const { prop: C } = JSON.parse(U), L = Ne(n.value, a.value);
971
+ const { prop: C } = JSON.parse(U), L = Be(n.value, a.value);
972
972
  return Il(C, L);
973
973
  } catch (C) {
974
974
  console.error(C);
@@ -980,7 +980,7 @@ const cs = /* @__PURE__ */ K({
980
980
  const U = localStorage.getItem("propTreeCopy");
981
981
  if (U)
982
982
  try {
983
- const { object: C } = JSON.parse(U), L = Ne(n.value, a.value);
983
+ const { object: C } = JSON.parse(U), L = Be(n.value, a.value);
984
984
  console.log(C, L);
985
985
  } catch (C) {
986
986
  console.error(C);
@@ -1033,7 +1033,7 @@ const cs = /* @__PURE__ */ K({
1033
1033
  }
1034
1034
  });
1035
1035
  var bn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", $n = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", fs = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ye = "M19,13H5V11H19V13Z", ds = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1036
- const Be = /* @__PURE__ */ K({
1036
+ const Re = /* @__PURE__ */ K({
1037
1037
  __name: "title",
1038
1038
  props: {
1039
1039
  title: {},
@@ -1390,9 +1390,10 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1390
1390
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1391
1391
  setup(e, { emit: t }) {
1392
1392
  const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => {
1393
+ var a;
1393
1394
  const u = [];
1394
- return zt[o.value].items[e.items].forEach(({ title: a, value: s }) => {
1395
- u.push({ title: n(a), value: s });
1395
+ return (a = zt[o.value]) == null || a.items[e.items].forEach(({ title: s, value: p }) => {
1396
+ u.push({ title: n(s), value: p });
1396
1397
  }), u;
1397
1398
  });
1398
1399
  return (u, a) => {
@@ -1791,7 +1792,10 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1791
1792
  }),
1792
1793
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1793
1794
  setup(e, { emit: t }) {
1794
- const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => zt[o.value].types[e.types]), u = R(0), a = k(() => {
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];
1798
+ }), u = R(0), a = k(() => {
1795
1799
  const d = [];
1796
1800
  return l.value.forEach(({ title: v }, h) => {
1797
1801
  d.push({
@@ -1808,7 +1812,7 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1808
1812
  }, f = R(0);
1809
1813
  return mt(() => {
1810
1814
  s.value.ui === "pixelInput" ? f.value = Fn(r.value) : s.value.ui === "percentInput" && (f.value = Hn(r.value));
1811
- }), Re(f, (d) => {
1815
+ }), Oe(f, (d) => {
1812
1816
  s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
1813
1817
  }), (d, v) => {
1814
1818
  const h = x("v-select"), V = x("v-number-input"), w = x("v-icon"), A = ae("ripple");
@@ -1904,7 +1908,7 @@ const zs = /* @__PURE__ */ K({
1904
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) => {
1905
1909
  Ft(p, i.config, i.object), o("change", g, c);
1906
1910
  };
1907
- Re(
1911
+ Oe(
1908
1912
  [() => i.config, () => i.object],
1909
1913
  () => {
1910
1914
  Ft(p, i.config, i.object, (g, c) => {
@@ -1914,16 +1918,21 @@ const zs = /* @__PURE__ */ K({
1914
1918
  { immediate: !0 }
1915
1919
  );
1916
1920
  const d = R(i.version);
1917
- es(d);
1921
+ es(d), Oe(
1922
+ () => i.version,
1923
+ () => {
1924
+ d.value = i.version;
1925
+ }
1926
+ );
1918
1927
  const v = R(i.config);
1919
- ts(v), Re(
1928
+ ts(v), Oe(
1920
1929
  () => i.config,
1921
1930
  () => {
1922
1931
  v.value = i.config;
1923
1932
  }
1924
1933
  );
1925
1934
  const h = R(i.object);
1926
- rs(h), Re(
1935
+ rs(h), Oe(
1927
1936
  () => i.object,
1928
1937
  () => {
1929
1938
  h.value = i.object;
@@ -1959,7 +1968,7 @@ const zs = /* @__PURE__ */ K({
1959
1968
  }), Rn(() => {
1960
1969
  U();
1961
1970
  });
1962
- 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), Le = (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(
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(
1963
1972
  g,
1964
1973
  c,
1965
1974
  y,
@@ -1977,7 +1986,7 @@ const zs = /* @__PURE__ */ K({
1977
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]);
1978
1987
  let Q = n(c.name);
1979
1988
  m.collapse && be(p.value, g) && (Q += " *");
1980
- const Ae = _(Be, {
1989
+ const Ae = _(Re, {
1981
1990
  title: Q,
1982
1991
  collapse: m.collapse,
1983
1992
  hasCreate: !0,
@@ -2008,10 +2017,10 @@ const zs = /* @__PURE__ */ K({
2008
2017
  collapse: !0,
2009
2018
  children: {}
2010
2019
  });
2011
- const De = [...g, j], je = m.children[j];
2020
+ const je = [...g, j], Ee = m.children[j];
2012
2021
  let vt = `[${j + 1}]`;
2013
- m.children[j].collapse && be(p.value, De) && (vt += " *");
2014
- const Un = _(Be, {
2022
+ m.children[j].collapse && be(p.value, je) && (vt += " *");
2023
+ const Un = _(Re, {
2015
2024
  title: vt,
2016
2025
  collapse: m.children[j].collapse,
2017
2026
  hasDelete: !0,
@@ -2024,7 +2033,7 @@ const zs = /* @__PURE__ */ K({
2024
2033
  m.children[j].collapse = ee;
2025
2034
  },
2026
2035
  onMenu: (ee, fe) => {
2027
- _e.emit("propTreeMenu", { x: ee, y: fe, keys: De });
2036
+ _e.emit("propTreeMenu", { x: ee, y: fe, keys: je });
2028
2037
  },
2029
2038
  onDelete: (ee) => {
2030
2039
  if (!nt(m.children)) {
@@ -2045,19 +2054,19 @@ const zs = /* @__PURE__ */ K({
2045
2054
  (() => {
2046
2055
  const ee = [];
2047
2056
  return c.children.forEach((fe) => {
2048
- if (!kt(je.children)) {
2057
+ if (!kt(Ee.children)) {
2049
2058
  console.assert(!1);
2050
2059
  return;
2051
2060
  }
2052
- je.children[fe.key] || (je.children[fe.key] = {
2061
+ Ee.children[fe.key] || (Ee.children[fe.key] = {
2053
2062
  collapse: !0,
2054
2063
  children: fe.array ? [] : {}
2055
2064
  });
2056
- const Dn = Le(
2065
+ const Dn = De(
2057
2066
  g,
2058
2067
  fe,
2059
2068
  D[j],
2060
- je.children[fe.key],
2069
+ Ee.children[fe.key],
2061
2070
  j,
2062
2071
  !0
2063
2072
  );
@@ -2091,7 +2100,7 @@ const zs = /* @__PURE__ */ K({
2091
2100
  return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2092
2101
  let D = n(c.name);
2093
2102
  m.collapse && be(p.value, g) && (D += " *");
2094
- const Q = _(Be, {
2103
+ const Q = _(Re, {
2095
2104
  title: D,
2096
2105
  collapse: m.collapse,
2097
2106
  hasDelete: $ !== void 0 && !P,
@@ -2122,7 +2131,7 @@ const zs = /* @__PURE__ */ K({
2122
2131
  collapse: !0,
2123
2132
  children: !T.ui && T.array ? [] : {}
2124
2133
  });
2125
- const j = Le(
2134
+ const j = De(
2126
2135
  g,
2127
2136
  T,
2128
2137
  (typeof y[c.key] != "object" && (y[c.key] = {}, f(g, y[c.key])), y[c.key]),
@@ -2155,7 +2164,7 @@ const zs = /* @__PURE__ */ K({
2155
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]);
2156
2165
  let Q = n(c.name);
2157
2166
  m.collapse && be(p.value, g) && (Q += " *");
2158
- const Ae = _(Be, {
2167
+ const Ae = _(Re, {
2159
2168
  title: Q,
2160
2169
  collapse: m.collapse,
2161
2170
  hasCreate: !0,
@@ -2178,8 +2187,8 @@ const zs = /* @__PURE__ */ K({
2178
2187
  (() => {
2179
2188
  const T = [];
2180
2189
  for (let j = 0; j < D.length; j++) {
2181
- const De = Le(g, c, D, void 0, j, !1);
2182
- T.push(De);
2190
+ const je = De(g, c, D, void 0, j, !1);
2191
+ T.push(je);
2183
2192
  }
2184
2193
  return T;
2185
2194
  })()
@@ -2219,7 +2228,7 @@ const zs = /* @__PURE__ */ K({
2219
2228
  collapse: !0,
2220
2229
  children: !y.ui && y.array ? [] : {}
2221
2230
  });
2222
- const m = Le([], y, i.object, c[y.key]);
2231
+ const m = De([], y, i.object, c[y.key]);
2223
2232
  g.push(m);
2224
2233
  });
2225
2234
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.6.12",
4
+ "version": "0.6.14",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",