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