x-prop-tree 0.6.17 → 0.6.19

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.
@@ -5,13 +5,13 @@ interface Props {
5
5
  }
6
6
  type __VLS_Props = Props;
7
7
  type __VLS_PublicProps = __VLS_Props & {
8
- modelValue: string;
8
+ modelValue?: string;
9
9
  };
10
10
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  delete: (...args: any[]) => void;
12
- "update:modelValue": (value: string) => void;
12
+ "update:modelValue": (value: string | undefined) => void;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  onDelete?: ((...args: any[]) => any) | undefined;
15
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
@@ -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) => void;
11
+ "update:modelValue": (value: string | undefined) => void;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  onDelete?: ((...args: any[]) => any) | undefined;
14
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  export default _default;
@@ -4,13 +4,13 @@ interface Props {
4
4
  }
5
5
  type __VLS_Props = Props;
6
6
  type __VLS_PublicProps = __VLS_Props & {
7
- modelValue: boolean;
7
+ modelValue?: boolean;
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: boolean) => void;
11
+ "update:modelValue": (value: boolean | undefined) => void;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  onDelete?: ((...args: any[]) => any) | undefined;
14
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  export default _default;
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
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 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 kn, mergeProps as qt, 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 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";
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 zt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
4
+ import { getPropDefault as E, 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
- var It = typeof global == "object" && global && global.Object === Object && global, qn = typeof self == "object" && self && self.Object === Object && self, Y = It || qn || Function("return this")(), se = Y.Symbol, Xt = Object.prototype, zn = Xt.hasOwnProperty, In = Xt.toString, Ce = se ? se.toStringTag : void 0;
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;
8
8
  function Xn(e) {
9
- var t = zn.call(e, Ce), n = e[Ce];
9
+ var t = qn.call(e, Ce), n = e[Ce];
10
10
  try {
11
11
  e[Ce] = void 0;
12
12
  var r = !0;
@@ -19,31 +19,31 @@ var Zn = Object.prototype, Jn = Zn.toString;
19
19
  function Wn(e) {
20
20
  return Jn.call(e);
21
21
  }
22
- var Yn = "[object Null]", Qn = "[object Undefined]", yt = se ? se.toStringTag : void 0;
22
+ var Yn = "[object Null]", Qn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
23
23
  function Le(e) {
24
- return e == null ? e === void 0 ? Qn : Yn : yt && yt in Object(e) ? Xn(e) : Wn(e);
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
29
  var Me = Array.isArray;
30
- function ze(e) {
30
+ function qe(e) {
31
31
  var t = typeof e;
32
32
  return e != null && (t == "object" || t == "function");
33
33
  }
34
34
  var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object GeneratorFunction]", rr = "[object Proxy]";
35
35
  function Zt(e) {
36
- if (!ze(e))
36
+ if (!qe(e))
37
37
  return !1;
38
38
  var t = Le(e);
39
39
  return t == tr || t == nr || t == er || t == rr;
40
40
  }
41
- var Qe = Y["__core-js_shared__"], gt = function() {
41
+ var Qe = Y["__core-js_shared__"], yt = function() {
42
42
  var e = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
43
43
  return e ? "Symbol(src)_1." + e : "";
44
44
  }();
45
45
  function or(e) {
46
- return !!gt && gt in e;
46
+ return !!yt && yt in e;
47
47
  }
48
48
  var ir = Function.prototype, lr = ir.toString;
49
49
  function ve(e) {
@@ -63,7 +63,7 @@ var sr = /[\\^$.*+?()[\]{}|]/g, ar = /^\[object .+?Constructor\]$/, ur = Functio
63
63
  "^" + fr.call(dr).replace(sr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
64
64
  );
65
65
  function vr(e) {
66
- if (!ze(e) || or(e))
66
+ if (!qe(e) || or(e))
67
67
  return !1;
68
68
  var t = Zt(e) ? pr : ar;
69
69
  return t.test(ve(e));
@@ -75,11 +75,11 @@ function me(e, t) {
75
75
  var n = mr(e, t);
76
76
  return vr(n) ? n : void 0;
77
77
  }
78
- var rt = me(Y, "WeakMap"), ht = Object.create, yr = /* @__PURE__ */ function() {
78
+ var rt = me(Y, "WeakMap"), ht = Object.create, gr = /* @__PURE__ */ function() {
79
79
  function e() {
80
80
  }
81
81
  return function(t) {
82
- if (!ze(t))
82
+ if (!qe(t))
83
83
  return {};
84
84
  if (ht)
85
85
  return ht(t);
@@ -94,7 +94,7 @@ var rt = me(Y, "WeakMap"), ht = Object.create, yr = /* @__PURE__ */ function() {
94
94
  } catch {
95
95
  }
96
96
  }();
97
- function gr(e, t) {
97
+ function yr(e, t) {
98
98
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
99
99
  ;
100
100
  return e;
@@ -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]", 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 = {};
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 = {};
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[qr] = U[zr] = U[Ir] = U[Xr] = !1;
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;
155
155
  function lo(e) {
156
156
  return de(e) && Jt(e.length) && !!U[Le(e)];
157
157
  }
@@ -191,11 +191,11 @@ function mo(e) {
191
191
  vo.call(e, n) && n != "constructor" && t.push(n);
192
192
  return t;
193
193
  }
194
- function yo(e) {
194
+ function go(e) {
195
195
  return Cr(e) ? co(e) : mo(e);
196
196
  }
197
197
  var Ve = me(Object, "create");
198
- function go() {
198
+ function yo() {
199
199
  this.__data__ = Ve ? Ve(null) : {}, this.size = 0;
200
200
  }
201
201
  function ho(e) {
@@ -228,7 +228,7 @@ function pe(e) {
228
228
  this.set(r[0], r[1]);
229
229
  }
230
230
  }
231
- pe.prototype.clear = go;
231
+ pe.prototype.clear = yo;
232
232
  pe.prototype.delete = ho;
233
233
  pe.prototype.get = To;
234
234
  pe.prototype.has = Ao;
@@ -303,18 +303,18 @@ function Ro(e, t) {
303
303
  var n = Xe(this, e), r = n.size;
304
304
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
305
305
  }
306
- function ye(e) {
306
+ function ge(e) {
307
307
  var t = -1, n = e == null ? 0 : e.length;
308
308
  for (this.clear(); ++t < n; ) {
309
309
  var r = e[t];
310
310
  this.set(r[0], r[1]);
311
311
  }
312
312
  }
313
- ye.prototype.clear = jo;
314
- ye.prototype.delete = Eo;
315
- ye.prototype.get = No;
316
- ye.prototype.has = Bo;
317
- ye.prototype.set = Ro;
313
+ ge.prototype.clear = jo;
314
+ ge.prototype.delete = Eo;
315
+ ge.prototype.get = No;
316
+ ge.prototype.has = Bo;
317
+ ge.prototype.set = Ro;
318
318
  function Fo(e, t) {
319
319
  for (var n = -1, r = t.length, i = e.length; ++n < r; )
320
320
  e[i + n] = t[n];
@@ -328,10 +328,10 @@ function Ko(e) {
328
328
  var t = this.__data__, n = t.delete(e);
329
329
  return this.size = t.size, n;
330
330
  }
331
- function qo(e) {
331
+ function zo(e) {
332
332
  return this.__data__.get(e);
333
333
  }
334
- function zo(e) {
334
+ function qo(e) {
335
335
  return this.__data__.has(e);
336
336
  }
337
337
  var Io = 200;
@@ -341,7 +341,7 @@ function Xo(e, t) {
341
341
  var r = n.__data__;
342
342
  if (!Ue || r.length < Io - 1)
343
343
  return r.push([e, t]), this.size = ++n.size, this;
344
- n = this.__data__ = new ye(r);
344
+ n = this.__data__ = new ge(r);
345
345
  }
346
346
  return n.set(e, t), this.size = n.size, this;
347
347
  }
@@ -351,8 +351,8 @@ function te(e) {
351
351
  }
352
352
  te.prototype.clear = Go;
353
353
  te.prototype.delete = Ko;
354
- te.prototype.get = qo;
355
- te.prototype.has = zo;
354
+ te.prototype.get = zo;
355
+ te.prototype.has = qo;
356
356
  te.prototype.set = Xo;
357
357
  var rn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = rn && typeof module == "object" && module && !module.nodeType && module, Zo = wt && wt.exports === rn, At = Zo ? Y.Buffer : void 0;
358
358
  At && At.allocUnsafe;
@@ -379,7 +379,7 @@ function ni(e, t, n) {
379
379
  return Me(e) ? r : Fo(r, n(e));
380
380
  }
381
381
  function ot(e) {
382
- return ni(e, yo, ti);
382
+ return ni(e, go, ti);
383
383
  }
384
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]", Mt = "[object WeakMap]", Vt = "[object DataView]", oi = ve(it), ii = ve(Ue), li = ve(lt), si = ve(st), ai = ve(rt), Z = Le;
385
385
  (it && Z(new it(new ArrayBuffer(1))) != Vt || Ue && Z(new Ue()) != Pt || lt && Z(lt.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Mt) && (Z = function(e) {
@@ -422,17 +422,17 @@ var Ut = se ? se.prototype : void 0, Lt = Ut ? Ut.valueOf : void 0;
422
422
  function mi(e) {
423
423
  return Lt ? Object(Lt.call(e)) : {};
424
424
  }
425
- function yi(e, t) {
425
+ function gi(e, t) {
426
426
  var n = dt(e.buffer);
427
427
  return new e.constructor(n, e.byteOffset, e.length);
428
428
  }
429
- var gi = "[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]";
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
430
  function ki(e, t, n) {
431
431
  var r = e.constructor;
432
432
  switch (t) {
433
433
  case Ai:
434
434
  return dt(e);
435
- case gi:
435
+ case yi:
436
436
  case hi:
437
437
  return new r(+e);
438
438
  case Ci:
@@ -446,7 +446,7 @@ function ki(e, t, n) {
446
446
  case Li:
447
447
  case Di:
448
448
  case ji:
449
- return yi(e);
449
+ return gi(e);
450
450
  case _i:
451
451
  return new r();
452
452
  case bi:
@@ -461,7 +461,7 @@ function ki(e, t, n) {
461
461
  }
462
462
  }
463
463
  function Ei(e) {
464
- return typeof e.constructor == "function" && !Wt(e) ? yr(Ho(e)) : {};
464
+ return typeof e.constructor == "function" && !Wt(e) ? gr(Ho(e)) : {};
465
465
  }
466
466
  var Ni = "[object Map]";
467
467
  function Bi(e) {
@@ -471,14 +471,14 @@ var Dt = $e && $e.isMap, Ri = Dt ? ft(Dt) : Bi, 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]", M = {};
475
- M[on] = M[Ki] = M[nl] = M[rl] = M[qi] = M[zi] = M[ol] = M[il] = M[ll] = M[sl] = M[al] = M[Zi] = M[Ji] = M[sn] = M[Wi] = M[Yi] = M[Qi] = M[el] = M[ul] = M[cl] = M[fl] = M[dl] = !0;
474
+ var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]", zi = "[object Boolean]", qi = "[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]", M = {};
475
+ M[on] = M[Ki] = M[nl] = M[rl] = M[zi] = M[qi] = M[ol] = M[il] = M[ll] = M[sl] = M[al] = M[Zi] = M[Ji] = M[sn] = M[Wi] = M[Yi] = M[Qi] = M[el] = M[ul] = M[cl] = M[fl] = M[dl] = !0;
476
476
  M[Ii] = M[ln] = M[tl] = !1;
477
477
  function Re(e, t, n, r, i, o) {
478
478
  var l;
479
479
  if (l !== void 0)
480
480
  return l;
481
- if (!ze(e))
481
+ if (!qe(e))
482
482
  return e;
483
483
  var a = Me(e);
484
484
  if (a)
@@ -505,7 +505,7 @@ function Re(e, t, n, r, i, o) {
505
505
  l.set(h, Re(p, t, n, h, e, o));
506
506
  });
507
507
  var d = ot, f = a ? void 0 : d(e);
508
- return gr(f || e, function(p, h) {
508
+ return yr(f || e, function(p, h) {
509
509
  f && (h = p, p = e[h]), wr(l, h, Re(p, t, n, h, e, o));
510
510
  }), l;
511
511
  }
@@ -514,19 +514,19 @@ function an(e) {
514
514
  return Re(e, pl | vl);
515
515
  }
516
516
  var ml = "__lodash_hash_undefined__";
517
- function yl(e) {
517
+ function gl(e) {
518
518
  return this.__data__.set(e, ml), this;
519
519
  }
520
- function gl(e) {
520
+ function yl(e) {
521
521
  return this.__data__.has(e);
522
522
  }
523
- function qe(e) {
523
+ function ze(e) {
524
524
  var t = -1, n = e == null ? 0 : e.length;
525
- for (this.__data__ = new ye(); ++t < n; )
525
+ for (this.__data__ = new ge(); ++t < n; )
526
526
  this.add(e[t]);
527
527
  }
528
- qe.prototype.add = qe.prototype.push = yl;
529
- qe.prototype.has = gl;
528
+ ze.prototype.add = ze.prototype.push = gl;
529
+ ze.prototype.has = yl;
530
530
  function hl(e, t) {
531
531
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
532
532
  if (t(e[n], n, e))
@@ -544,7 +544,7 @@ function un(e, t, n, r, i, o) {
544
544
  var s = o.get(e), v = o.get(t);
545
545
  if (s && v)
546
546
  return s == t && v == e;
547
- var d = -1, f = !0, p = n & $l ? new qe() : void 0;
547
+ var d = -1, f = !0, p = n & $l ? new ze() : void 0;
548
548
  for (o.set(e, t), o.set(t, e); ++d < a; ) {
549
549
  var h = e[d], P = t[d];
550
550
  if (r)
@@ -677,7 +677,7 @@ function cn(e, t, n, r, i) {
677
677
  function Ze(e, t) {
678
678
  return cn(e, t);
679
679
  }
680
- function ql(e, t) {
680
+ function zl(e, t) {
681
681
  const n = [];
682
682
  let r = [];
683
683
  e.forEach((l) => {
@@ -698,7 +698,7 @@ function ql(e, t) {
698
698
  function fn(e, t) {
699
699
  return e.value.find((n) => n.id === t);
700
700
  }
701
- function zl(e, t, n) {
701
+ function ql(e, t, n) {
702
702
  for (let r = 0; r < e.value.length; r++) {
703
703
  let i = e.value[r];
704
704
  if (i.id === t) {
@@ -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
- }, dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol(), yn = Symbol(), gn = Symbol();
873
+ }, dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol(), gn = Symbol(), yn = Symbol();
874
874
  function es(e) {
875
875
  Te(dn, e);
876
876
  }
@@ -896,16 +896,16 @@ function ls() {
896
896
  return Se(mn);
897
897
  }
898
898
  function ss(e) {
899
- Te(yn, e);
899
+ Te(gn, e);
900
900
  }
901
901
  function as() {
902
- return Se(yn);
902
+ return Se(gn);
903
903
  }
904
904
  function us(e) {
905
- Te(gn, e);
905
+ Te(yn, e);
906
906
  }
907
907
  function _n() {
908
- return Se(gn);
908
+ return Se(yn);
909
909
  }
910
910
  const cs = /* @__PURE__ */ K({
911
911
  __name: "menu",
@@ -1032,7 +1032,7 @@ const cs = /* @__PURE__ */ K({
1032
1032
  };
1033
1033
  }
1034
1034
  });
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", ge = "M19,13H5V11H19V13Z", ds = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
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
1036
  const Be = /* @__PURE__ */ K({
1037
1037
  __name: "title",
1038
1038
  props: {
@@ -1060,7 +1060,7 @@ const Be = /* @__PURE__ */ K({
1060
1060
  class: "d-flex align-center cursor-pointer",
1061
1061
  style: le(l.value),
1062
1062
  onClick: a,
1063
- onContextmenu: q(u, ["prevent"]),
1063
+ onContextmenu: z(u, ["prevent"]),
1064
1064
  onMouseover: v[2] || (v[2] = (h) => o.value = !0),
1065
1065
  onMouseout: v[3] || (v[3] = (h) => o.value = !1)
1066
1066
  }, [
@@ -1068,19 +1068,19 @@ const Be = /* @__PURE__ */ K({
1068
1068
  class: "mr-1",
1069
1069
  icon: s.collapse ? k($n) : k(bn)
1070
1070
  }, null, 8, ["icon"]),
1071
- z("span", null, ne(s.title), 1),
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
1076
  icon: k(ds),
1077
- onClick: v[0] || (v[0] = q((h) => i("create"), ["stop"]))
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(ge),
1083
- onClick: v[1] || (v[1] = q((h) => i("delete", s.index), ["stop"]))
1082
+ icon: k(ye),
1083
+ onClick: v[1] || (v[1] = z((h) => i("delete", s.index), ["stop"]))
1084
1084
  }, null, 8, ["icon"])) : I("", !0)
1085
1085
  ], 36)), [
1086
1086
  [p]
@@ -1108,7 +1108,7 @@ const Be = /* @__PURE__ */ K({
1108
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
- onContextmenu: q(a, ["prevent"]),
1111
+ onContextmenu: z(a, ["prevent"]),
1112
1112
  onMouseover: s[0] || (s[0] = (d) => o.value = !0),
1113
1113
  onMouseout: s[1] || (s[1] = (d) => o.value = !1)
1114
1114
  }, [
@@ -1157,7 +1157,7 @@ const ce = (e, t, n, r, i, o) => {
1157
1157
  else {
1158
1158
  if (n[t.key] === void 0) {
1159
1159
  const l = E(t);
1160
- t.ui === "switch" ? l && (n[t.key] = !0, r(e, n[t.key])) : t.ui === "select" || t.ui === "multiTypes" ? l && (n[t.key] = l, r(e, n[t.key])) : l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
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]));
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 === "switch" || t.ui === "select" || t.ui === "multiTypes") && (r || (a = void 0)), a !== n[t.key] && (n[t.key] = a, i(e, n[t.key]));
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]));
1170
1170
  }
1171
1171
  };
1172
1172
  function ms(e) {
@@ -1178,13 +1178,13 @@ function ms(e) {
1178
1178
  ce(n, r, i, e, o, l);
1179
1179
  } };
1180
1180
  }
1181
- const ys = { class: "d-flex justify-space-between align-center" }, gs = /* @__PURE__ */ K({
1181
+ const gs = { class: "d-flex justify-space-between align-center" }, ys = /* @__PURE__ */ K({
1182
1182
  __name: "strInput",
1183
1183
  props: /* @__PURE__ */ X({
1184
1184
  hasDelete: { type: Boolean, default: !1 },
1185
1185
  readonly: { type: Boolean, default: !1 }
1186
1186
  }, {
1187
- modelValue: { required: !0 },
1187
+ modelValue: {},
1188
1188
  modelModifiers: {}
1189
1189
  }),
1190
1190
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
@@ -1192,7 +1192,7 @@ const ys = { class: "d-flex justify-space-between align-center" }, gs = /* @__PU
1192
1192
  const n = oe(e, "modelValue"), r = t;
1193
1193
  return (i, o) => {
1194
1194
  const l = V("v-text-field"), a = V("v-icon"), u = ae("ripple");
1195
- return w(), H("div", ys, [
1195
+ return w(), H("div", gs, [
1196
1196
  re(N(l, {
1197
1197
  modelValue: n.value,
1198
1198
  "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
@@ -1211,15 +1211,15 @@ const ys = { class: "d-flex justify-space-between align-center" }, gs = /* @__PU
1211
1211
  i.hasDelete ? (w(), F(a, {
1212
1212
  key: 0,
1213
1213
  class: "mx-2",
1214
- icon: k(ge),
1215
- onClick: o[1] || (o[1] = q((s) => r("delete"), ["stop"]))
1214
+ icon: k(ye),
1215
+ onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
1216
1216
  }, null, 8, ["icon"])) : I("", !0)
1217
1217
  ]);
1218
1218
  };
1219
1219
  }
1220
1220
  });
1221
1221
  function hs(e) {
1222
- return { renderUiStrInput: (n, r, i, o, l) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(gs, {
1222
+ return { renderUiStrInput: (n, r, i, o, l) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(ys, {
1223
1223
  modelValue: r.static ? r.value : ce(
1224
1224
  n,
1225
1225
  r,
@@ -1289,8 +1289,8 @@ 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(ge),
1293
- onClick: o[1] || (o[1] = q((s) => r("delete"), ["stop"]))
1292
+ icon: k(ye),
1293
+ onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
1294
1294
  }, null, 8, ["icon"])) : I("", !0)
1295
1295
  ]);
1296
1296
  };
@@ -1334,7 +1334,7 @@ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PU
1334
1334
  hasDelete: { type: Boolean, default: !1 },
1335
1335
  readonly: { type: Boolean, default: !1 }
1336
1336
  }, {
1337
- modelValue: { type: Boolean, required: !0 },
1337
+ modelValue: { type: Boolean },
1338
1338
  modelModifiers: {}
1339
1339
  }),
1340
1340
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
@@ -1355,8 +1355,8 @@ 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(ge),
1359
- onClick: o[1] || (o[1] = q((u) => r("delete"), ["stop"]))
1358
+ icon: k(ye),
1359
+ onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
1360
1360
  }, null, 8, ["icon"])) : I("", !0)
1361
1361
  ]);
1362
1362
  };
@@ -1397,7 +1397,7 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1397
1397
  readonly: { type: Boolean, default: !1 },
1398
1398
  items: {}
1399
1399
  }, {
1400
- modelValue: { required: !0 },
1400
+ modelValue: {},
1401
1401
  modelModifiers: {}
1402
1402
  }),
1403
1403
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
@@ -1405,7 +1405,7 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1405
1405
  const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = R(() => {
1406
1406
  var u;
1407
1407
  const a = [];
1408
- return (u = zt[o.value]) == null || u.items[e.items].forEach(({ title: s, value: v }) => {
1408
+ return (u = qt[o.value]) == null || u.items[e.items].forEach(({ title: s, value: v }) => {
1409
1409
  a.push({ title: n(s), value: v });
1410
1410
  }), a;
1411
1411
  });
@@ -1431,8 +1431,8 @@ 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(ge),
1435
- onClick: u[1] || (u[1] = q((f) => i("delete"), ["stop"]))
1434
+ icon: k(ye),
1435
+ onClick: u[1] || (u[1] = z((f) => i("delete"), ["stop"]))
1436
1436
  }, null, 8, ["icon"])) : I("", !0)
1437
1437
  ]);
1438
1438
  };
@@ -1496,8 +1496,8 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1496
1496
  icon: i.collapse ? k($n) : k(bn),
1497
1497
  size: "small"
1498
1498
  }, null, 8, ["icon"]),
1499
- z("span", Os, ne(i.title), 1),
1500
- z("span", xs, ne(i.count), 1)
1499
+ q("span", Os, ne(i.title), 1),
1500
+ q("span", xs, ne(i.count), 1)
1501
1501
  ], 36)), [
1502
1502
  [d]
1503
1503
  ]);
@@ -1526,7 +1526,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1526
1526
  onMouseover: s[1] || (s[1] = (d) => l.value = !0),
1527
1527
  onMouseout: s[2] || (s[2] = (d) => l.value = !1)
1528
1528
  }, [
1529
- z("span", Vs, ne(i.title), 1)
1529
+ q("span", Vs, ne(i.title), 1)
1530
1530
  ], 36)), [
1531
1531
  [v]
1532
1532
  ]);
@@ -1547,7 +1547,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1547
1547
  setup(e) {
1548
1548
  const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), i = _n(), o = (a) => {
1549
1549
  const u = fn(i, a);
1550
- u && zl(i, a, !u.collapse);
1550
+ u && ql(i, a, !u.collapse);
1551
1551
  }, l = (a) => {
1552
1552
  n.value = a, r.value = !1, _e.emit("refreshDepends");
1553
1553
  };
@@ -1612,10 +1612,10 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1612
1612
  persistent: "",
1613
1613
  "no-click-animation": "",
1614
1614
  fullscreen: "",
1615
- onKeydown: p[6] || (p[6] = kn(q(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1615
+ onKeydown: p[6] || (p[6] = kn(z(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1616
1616
  }, {
1617
1617
  activator: J(({ props: $ }) => [
1618
- N(h, qt($, {
1618
+ N(h, zt($, {
1619
1619
  density: "comfortable",
1620
1620
  block: ""
1621
1621
  }), {
@@ -1626,12 +1626,12 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1626
1626
  }, 1040)
1627
1627
  ]),
1628
1628
  default: J(() => [
1629
- z("div", {
1629
+ q("div", {
1630
1630
  class: "w-100 h-100 d-flex flex-row-reverse",
1631
- onClick: p[3] || (p[3] = q(($) => d.value = !1, ["self"])),
1632
- onContextmenu: p[4] || (p[4] = q(($) => d.value = !1, ["self", "prevent"]))
1631
+ onClick: p[3] || (p[3] = z(($) => d.value = !1, ["self"])),
1632
+ onContextmenu: p[4] || (p[4] = z(($) => d.value = !1, ["self", "prevent"]))
1633
1633
  }, [
1634
- z("div", {
1634
+ q("div", {
1635
1635
  class: "elevation-2",
1636
1636
  style: le(a.value)
1637
1637
  }, [
@@ -1650,11 +1650,11 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1650
1650
  icon: k(fs),
1651
1651
  onClick: p[0] || (p[0] = ($) => d.value = !1)
1652
1652
  }, null, 8, ["icon"]),
1653
- z("span", ks, ne(k(t)("x-prop-tree.dlg.compSelect.title")), 1)
1653
+ q("span", ks, ne(k(t)("x-prop-tree.dlg.compSelect.title")), 1)
1654
1654
  ]),
1655
1655
  _: 1
1656
1656
  }),
1657
- z("div", {
1657
+ q("div", {
1658
1658
  class: "overflow-y-auto",
1659
1659
  style: le(u.value)
1660
1660
  }, [
@@ -1664,7 +1664,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
1664
1664
  open: k(d),
1665
1665
  "onUpdate:open": p[2] || (p[2] = ($) => Fe(d) ? d.value = $ : null)
1666
1666
  }, null, 8, ["modelValue", "open"]),
1667
- z("div", {
1667
+ q("div", {
1668
1668
  style: le(s.value)
1669
1669
  }, null, 4)
1670
1670
  ], 4)
@@ -1727,12 +1727,12 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
1727
1727
  scrim: "transparent"
1728
1728
  }, {
1729
1729
  activator: J(({ props: h }) => [
1730
- z("div", Bs, [
1731
- z("div", {
1730
+ q("div", Bs, [
1731
+ q("div", {
1732
1732
  class: "flex-grow-1",
1733
1733
  style: le(o.value)
1734
1734
  }, [
1735
- N(v, qt(h, {
1735
+ N(v, zt(h, {
1736
1736
  density: "comfortable",
1737
1737
  color: r.value,
1738
1738
  block: "",
@@ -1747,8 +1747,8 @@ 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(ge),
1751
- onClick: s[0] || (s[0] = q((P) => i("delete"), ["stop"]))
1750
+ icon: k(ye),
1751
+ onClick: s[0] || (s[0] = z((P) => i("delete"), ["stop"]))
1752
1752
  }, null, 8, ["icon"])) : I("", !0)
1753
1753
  ])
1754
1754
  ]),
@@ -1807,7 +1807,7 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1807
1807
  setup(e, { emit: t }) {
1808
1808
  const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = R(() => {
1809
1809
  var f;
1810
- return (f = zt[o.value]) == null ? void 0 : f.types[e.types];
1810
+ return (f = qt[o.value]) == null ? void 0 : f.types[e.types];
1811
1811
  }), a = B(0), u = R(() => {
1812
1812
  var p;
1813
1813
  const f = [];
@@ -1839,7 +1839,7 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1839
1839
  var $, O;
1840
1840
  const h = V("v-select"), P = V("v-number-input"), A = V("v-icon"), C = ae("ripple");
1841
1841
  return w(), H("div", Hs, [
1842
- z("div", Gs, [
1842
+ q("div", Gs, [
1843
1843
  re(N(h, {
1844
1844
  modelValue: a.value,
1845
1845
  "onUpdate:modelValue": [
@@ -1882,14 +1882,14 @@ 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(ge),
1886
- onClick: p[2] || (p[2] = q((T) => i("delete"), ["stop"]))
1885
+ icon: k(ye),
1886
+ onClick: p[2] || (p[2] = z((T) => i("delete"), ["stop"]))
1887
1887
  }, null, 8, ["icon"])) : I("", !0)
1888
1888
  ]);
1889
1889
  };
1890
1890
  }
1891
1891
  });
1892
- function qs(e) {
1892
+ function zs(e) {
1893
1893
  return { renderUiMultiTypes: (n, r, i, o, l) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Ks, {
1894
1894
  modelValue: ce(
1895
1895
  n,
@@ -1917,7 +1917,7 @@ function qs(e) {
1917
1917
  types: r.types
1918
1918
  }) };
1919
1919
  }
1920
- const zs = /* @__PURE__ */ K({
1920
+ const qs = /* @__PURE__ */ K({
1921
1921
  __name: "index",
1922
1922
  props: {
1923
1923
  unique: {},
@@ -1927,14 +1927,14 @@ const zs = /* @__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 = (y, c) => {
1931
- Ft(v, i.config, i.object), o("change", y, c);
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) => {
1931
+ Ft(v, i.config, i.object), o("change", g, c);
1932
1932
  };
1933
1933
  Oe(
1934
1934
  [() => i.config, () => i.object],
1935
1935
  () => {
1936
- Ft(v, i.config, i.object, (y, c) => {
1937
- o("change", y, c);
1936
+ Ft(v, i.config, i.object, (g, c) => {
1937
+ o("change", g, c);
1938
1938
  });
1939
1939
  },
1940
1940
  { immediate: !0 }
@@ -1963,10 +1963,10 @@ const zs = /* @__PURE__ */ K({
1963
1963
  const P = B([]);
1964
1964
  us(P);
1965
1965
  const A = () => {
1966
- const { compGroups: y, comps: c } = Gn.app.activeApp, g = [];
1967
- y.forEach(({ id: m, name: b, position: x }) => {
1966
+ const { compGroups: g, comps: c } = Gn.app.activeApp, y = [];
1967
+ g.forEach(({ id: m, name: b, position: x }) => {
1968
1968
  const D = P.value.find((Q) => Q.id === m);
1969
- g.push({
1969
+ y.push({
1970
1970
  id: m,
1971
1971
  type: 0,
1972
1972
  name: b,
@@ -1974,8 +1974,8 @@ const zs = /* @__PURE__ */ K({
1974
1974
  collapse: (D == null ? void 0 : D.collapse) ?? !0
1975
1975
  });
1976
1976
  }), c.forEach(({ id: m, groupid: b, name: x, position: D }) => {
1977
- g.push({ id: m, type: 1, name: x, position: D, group: b });
1978
- }), ql(g, !0), P.value = g;
1977
+ y.push({ id: m, type: 1, name: x, position: D, group: b });
1978
+ }), zl(y, !0), P.value = y;
1979
1979
  };
1980
1980
  let C;
1981
1981
  const $ = () => {
@@ -1990,14 +1990,14 @@ const zs = /* @__PURE__ */ K({
1990
1990
  }), Bn(() => {
1991
1991
  O();
1992
1992
  });
1993
- const { renderProp: T } = vs(v, a, u), { 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 } = Ns(d), De = (y, c, g, m, b, x) => (y = an(y), b !== void 0 ? (y.push(b), x && y.push(c.key)) : y.push(c.key), c.ui ? c.array && m ? xn(y, c, g, m, b, x) : Mn(y, c, g, b, x) : c.array ? Pn(y, c, g, m, b, x) : On(
1994
- y,
1995
- c,
1993
+ const { renderProp: T } = vs(v, a, u), { 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 } = zs(d), { renderUiCompSelect: Cn } = Ns(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) : Mn(g, c, y, b, x) : c.array ? Pn(g, c, y, m, b, x) : On(
1996
1994
  g,
1995
+ c,
1996
+ y,
1997
1997
  m,
1998
1998
  b,
1999
1999
  x
2000
- )), Pn = (y, c, g, m, b, x) => {
2000
+ )), Pn = (g, c, y, m, b, x) => {
2001
2001
  if (c.ui)
2002
2002
  return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
2003
2003
  if (!c.array)
@@ -2005,9 +2005,9 @@ const zs = /* @__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 ? (g[b] instanceof Array || (g[b] = E(c), d(y, g[c.key])), D = g[b]) : (g[c.key] instanceof Array || (g[c.key] = E(c), d(y, g[c.key])), D = g[c.key]);
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]);
2009
2009
  let Q = n(c.name);
2010
- m.collapse && be(v.value, y) && (Q += " *");
2010
+ m.collapse && be(v.value, g) && (Q += " *");
2011
2011
  const Ae = _(Be, {
2012
2012
  title: Q,
2013
2013
  collapse: m.collapse,
@@ -2016,10 +2016,10 @@ const zs = /* @__PURE__ */ K({
2016
2016
  m.collapse = S;
2017
2017
  },
2018
2018
  onMenu: (S, j) => {
2019
- _e.emit("propTreeMenu", { x: S, y: j, keys: y });
2019
+ _e.emit("propTreeMenu", { x: S, y: j, keys: g });
2020
2020
  },
2021
2021
  onCreate: () => {
2022
- D.push({}), d(y, D);
2022
+ D.push({}), d(g, D);
2023
2023
  }
2024
2024
  }), G = _(
2025
2025
  "div",
@@ -2039,7 +2039,7 @@ const zs = /* @__PURE__ */ K({
2039
2039
  collapse: !0,
2040
2040
  children: {}
2041
2041
  });
2042
- const je = [...y, j], ke = m.children[j];
2042
+ const je = [...g, j], ke = 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, {
@@ -2062,7 +2062,7 @@ const zs = /* @__PURE__ */ K({
2062
2062
  console.assert(!1);
2063
2063
  return;
2064
2064
  }
2065
- m.children.splice(ee, 1), D.splice(ee, 1), d(y, D);
2065
+ m.children.splice(ee, 1), D.splice(ee, 1), d(g, D);
2066
2066
  }
2067
2067
  });
2068
2068
  S.push(Un);
@@ -2085,7 +2085,7 @@ const zs = /* @__PURE__ */ K({
2085
2085
  children: fe.array ? [] : {}
2086
2086
  });
2087
2087
  const Dn = De(
2088
- y,
2088
+ g,
2089
2089
  fe,
2090
2090
  D[j],
2091
2091
  ke.children[fe.key],
@@ -2113,7 +2113,7 @@ const zs = /* @__PURE__ */ K({
2113
2113
  return S.push(Ae), m.collapse || S.push(G), S;
2114
2114
  })()
2115
2115
  );
2116
- }, On = (y, c, g, m, b, x) => {
2116
+ }, On = (g, c, y, m, b, x) => {
2117
2117
  if (c.ui)
2118
2118
  return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2119
2119
  if (c.array)
@@ -2121,7 +2121,7 @@ const zs = /* @__PURE__ */ K({
2121
2121
  if (!m)
2122
2122
  return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2123
2123
  let D = n(c.name);
2124
- m.collapse && be(v.value, y) && (D += " *");
2124
+ m.collapse && be(v.value, g) && (D += " *");
2125
2125
  const Q = _(Be, {
2126
2126
  title: D,
2127
2127
  collapse: m.collapse,
@@ -2130,10 +2130,10 @@ const zs = /* @__PURE__ */ K({
2130
2130
  m.collapse = G;
2131
2131
  },
2132
2132
  onMenu: (G, S) => {
2133
- _e.emit("propTreeMenu", { x: G, y: S, keys: y });
2133
+ _e.emit("propTreeMenu", { x: G, y: S, keys: g });
2134
2134
  },
2135
2135
  onDelete: () => {
2136
- b === void 0 || x || (g.splice(b, 1), d(y.slice(0, -1), g));
2136
+ b === void 0 || x || (y.splice(b, 1), d(g.slice(0, -1), y));
2137
2137
  }
2138
2138
  }), Ae = _(
2139
2139
  "div",
@@ -2154,9 +2154,9 @@ const zs = /* @__PURE__ */ K({
2154
2154
  children: !S.ui && S.array ? [] : {}
2155
2155
  });
2156
2156
  const j = De(
2157
- y,
2157
+ g,
2158
2158
  S,
2159
- (typeof g[c.key] != "object" && (g[c.key] = {}, d(y, g[c.key])), g[c.key]),
2159
+ (typeof y[c.key] != "object" && (y[c.key] = {}, d(g, y[c.key])), y[c.key]),
2160
2160
  m.children[S.key]
2161
2161
  );
2162
2162
  G.push(j);
@@ -2175,7 +2175,7 @@ const zs = /* @__PURE__ */ K({
2175
2175
  return G.push(Q), m.collapse || G.push(Ae), G;
2176
2176
  })()
2177
2177
  );
2178
- }, xn = (y, c, g, m, b, x) => {
2178
+ }, xn = (g, c, y, m, b, x) => {
2179
2179
  if (!c.ui)
2180
2180
  return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2181
2181
  if (!c.array)
@@ -2183,9 +2183,9 @@ const zs = /* @__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 ? (g[b] instanceof Array || (g[b] = E(c), d(y, g[b])), D = g[b]) : (g[c.key] instanceof Array || (g[c.key] = E(c), d(y, g[c.key])), D = g[c.key]);
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]);
2187
2187
  let Q = n(c.name);
2188
- m.collapse && be(v.value, y) && (Q += " *");
2188
+ m.collapse && be(v.value, g) && (Q += " *");
2189
2189
  const Ae = _(Be, {
2190
2190
  title: Q,
2191
2191
  collapse: m.collapse,
@@ -2194,10 +2194,10 @@ const zs = /* @__PURE__ */ K({
2194
2194
  m.collapse = S;
2195
2195
  },
2196
2196
  onMenu: (S, j) => {
2197
- _e.emit("propTreeMenu", { x: S, y: j, keys: y });
2197
+ _e.emit("propTreeMenu", { x: S, y: j, keys: g });
2198
2198
  },
2199
2199
  onCreate: () => {
2200
- D.push(E(c, !0)), d(y, D);
2200
+ D.push(E(c, !0)), d(g, D);
2201
2201
  }
2202
2202
  }), G = _(
2203
2203
  "div",
@@ -2209,7 +2209,7 @@ const zs = /* @__PURE__ */ K({
2209
2209
  (() => {
2210
2210
  const S = [];
2211
2211
  for (let j = 0; j < D.length; j++) {
2212
- const je = De(y, c, D, void 0, j, !1);
2212
+ const je = De(g, c, D, void 0, j, !1);
2213
2213
  S.push(je);
2214
2214
  }
2215
2215
  return S;
@@ -2227,11 +2227,11 @@ const zs = /* @__PURE__ */ K({
2227
2227
  return S.push(Ae), m.collapse || S.push(G), S;
2228
2228
  })()
2229
2229
  );
2230
- }, Mn = (y, c, g, m, b) => {
2230
+ }, Mn = (g, c, y, m, b) => {
2231
2231
  if (!c.ui)
2232
2232
  return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
2233
2233
  let x;
2234
- return c.ui === "dummy" ? x = L(y, c, g, m, b) : c.ui === "strInput" ? x = W(y, c, g, m, b) : c.ui === "numInput" ? x = Ye(y, c, g, m, b) : c.ui === "switch" ? x = Tn(y, c, g, m, b) : c.ui === "select" ? x = Sn(y, c, g, m, b) : c.ui === "colorPicker" ? x = wn(y, c, g, m, b) : c.ui === "multiTypes" ? x = An(y, c, g, m, b) : c.ui === "compSelect" ? x = Cn(y, c, g, m, b) : console.assert(!1, "renderLeafScalar not implemented"), x ? T(y, c, x) : _("div");
2234
+ 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");
2235
2235
  }, Vn = () => _(
2236
2236
  "div",
2237
2237
  {
@@ -2241,23 +2241,23 @@ const zs = /* @__PURE__ */ K({
2241
2241
  }
2242
2242
  },
2243
2243
  (() => {
2244
- const y = [];
2244
+ const g = [];
2245
2245
  if (i.unique && i.config.length > 0 && i.object) {
2246
2246
  s[i.unique] || (s[i.unique] = {});
2247
2247
  const c = s[i.unique];
2248
- i.config.forEach((g) => {
2249
- c[g.key] || (c[g.key] = {
2248
+ i.config.forEach((y) => {
2249
+ c[y.key] || (c[y.key] = {
2250
2250
  collapse: !0,
2251
- children: !g.ui && g.array ? [] : {}
2251
+ children: !y.ui && y.array ? [] : {}
2252
2252
  });
2253
- const m = De([], g, i.object, c[g.key]);
2254
- y.push(m);
2253
+ const m = De([], y, i.object, c[y.key]);
2254
+ g.push(m);
2255
2255
  });
2256
2256
  }
2257
- return y;
2257
+ return g;
2258
2258
  })()
2259
2259
  );
2260
- return (y, c) => (w(), H(He, null, [
2260
+ return (g, c) => (w(), H(He, null, [
2261
2261
  N(Vn),
2262
2262
  N(cs, {
2263
2263
  config: i.config,
@@ -2267,7 +2267,7 @@ const zs = /* @__PURE__ */ K({
2267
2267
  ], 64));
2268
2268
  }
2269
2269
  }), Is = (e) => {
2270
- e.component("XPropTree", zs);
2270
+ e.component("XPropTree", qs);
2271
2271
  }, Xs = (e, t, n) => {
2272
2272
  const r = e[t];
2273
2273
  return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((i, o) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.6.17",
4
+ "version": "0.6.19",
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.35",
31
+ "x-runtime-lib": "^0.6.38",
32
32
  "x-state-lib": "^0.2.1"
33
33
  },
34
34
  "devDependencies": {