x-prop-tree 0.6.7 → 0.6.8
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/components/propTree/components/values/numInput.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/select.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/strInput.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/switch.vue.d.ts +3 -3
- package/dist/index.js +273 -284
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { provide as Me, inject as Ue, defineComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { provide as Me, inject as Ue, defineComponent as q, ref as k, computed as G, resolveComponent as O, createBlock as R, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as F, Fragment as He, renderList as Ht, createTextVNode as st, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as z, normalizeStyle as ie, createElementVNode as K, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as qt, withKeys as Vn, mergeProps as zt, watchEffect as mt, watch as ke, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
|
+
import { useI18n as ue } from "vue-i18n";
|
|
3
3
|
import { useViewStack as at, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
|
|
4
4
|
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
|
|
5
5
|
import { useDisplay as kn } from "vuetify";
|
|
6
6
|
import { globalState as Rn } from "x-state-lib";
|
|
7
|
-
var
|
|
8
|
-
function
|
|
7
|
+
var Kt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Y = Kt || Fn || Function("return this")(), se = Y.Symbol, It = Object.prototype, Hn = It.hasOwnProperty, Gn = It.toString, we = se ? se.toStringTag : void 0;
|
|
8
|
+
function qn(e) {
|
|
9
9
|
var t = Hn.call(e, we), n = e[we];
|
|
10
10
|
try {
|
|
11
11
|
e[we] = void 0;
|
|
@@ -15,30 +15,30 @@ function zn(e) {
|
|
|
15
15
|
var l = Gn.call(e);
|
|
16
16
|
return r && (t ? e[we] = n : delete e[we]), l;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var zn = Object.prototype, Kn = zn.toString;
|
|
19
19
|
function In(e) {
|
|
20
|
-
return
|
|
20
|
+
return Kn.call(e);
|
|
21
21
|
}
|
|
22
|
-
var Xn = "[object Null]", Zn = "[object Undefined]", gt =
|
|
22
|
+
var Xn = "[object Null]", Zn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
|
|
23
23
|
function Ve(e) {
|
|
24
|
-
return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ?
|
|
24
|
+
return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ? qn(e) : In(e);
|
|
25
25
|
}
|
|
26
26
|
function de(e) {
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
29
|
var Pe = Array.isArray;
|
|
30
|
-
function
|
|
30
|
+
function Ke(e) {
|
|
31
31
|
var t = typeof e;
|
|
32
32
|
return e != null && (t == "object" || t == "function");
|
|
33
33
|
}
|
|
34
34
|
var Jn = "[object AsyncFunction]", Wn = "[object Function]", Yn = "[object GeneratorFunction]", Qn = "[object Proxy]";
|
|
35
35
|
function Xt(e) {
|
|
36
|
-
if (!
|
|
36
|
+
if (!Ke(e))
|
|
37
37
|
return !1;
|
|
38
38
|
var t = Ve(e);
|
|
39
39
|
return t == Wn || t == Yn || t == Jn || t == Qn;
|
|
40
40
|
}
|
|
41
|
-
var Ye =
|
|
41
|
+
var Ye = Y["__core-js_shared__"], yt = function() {
|
|
42
42
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
43
43
|
return e ? "Symbol(src)_1." + e : "";
|
|
44
44
|
}();
|
|
@@ -63,7 +63,7 @@ var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, lr = Functio
|
|
|
63
63
|
"^" + sr.call(ar).replace(rr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
64
64
|
);
|
|
65
65
|
function cr(e) {
|
|
66
|
-
if (!
|
|
66
|
+
if (!Ke(e) || er(e))
|
|
67
67
|
return !1;
|
|
68
68
|
var t = Xt(e) ? ur : or;
|
|
69
69
|
return t.test(ve(e));
|
|
@@ -75,11 +75,11 @@ function me(e, t) {
|
|
|
75
75
|
var n = fr(e, t);
|
|
76
76
|
return cr(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var nt = me(
|
|
78
|
+
var nt = me(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
82
|
-
if (!
|
|
82
|
+
if (!Ke(t))
|
|
83
83
|
return {};
|
|
84
84
|
if (ht)
|
|
85
85
|
return ht(t);
|
|
@@ -149,9 +149,9 @@ var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable,
|
|
|
149
149
|
function xr() {
|
|
150
150
|
return !1;
|
|
151
151
|
}
|
|
152
|
-
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Yt && typeof module == "object" && module && !module.nodeType && module, Mr = $t && $t.exports === Yt, Tt = Mr ?
|
|
152
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Yt && typeof module == "object" && module && !module.nodeType && module, Mr = $t && $t.exports === Yt, Tt = Mr ? Y.Buffer : void 0, Ur = Tt ? Tt.isBuffer : void 0, Ge = Ur || xr, Vr = "[object Arguments]", Lr = "[object Array]", Dr = "[object Boolean]", jr = "[object Date]", Er = "[object Error]", Nr = "[object Function]", Br = "[object Map]", kr = "[object Number]", Rr = "[object Object]", Fr = "[object RegExp]", Hr = "[object Set]", Gr = "[object String]", qr = "[object WeakMap]", zr = "[object ArrayBuffer]", Kr = "[object DataView]", Ir = "[object Float32Array]", Xr = "[object Float64Array]", Zr = "[object Int8Array]", Jr = "[object Int16Array]", Wr = "[object Int32Array]", Yr = "[object Uint8Array]", Qr = "[object Uint8ClampedArray]", eo = "[object Uint16Array]", to = "[object Uint32Array]", x = {};
|
|
153
153
|
x[Ir] = x[Xr] = x[Zr] = x[Jr] = x[Wr] = x[Yr] = x[Qr] = x[eo] = x[to] = !0;
|
|
154
|
-
x[Vr] = x[Lr] = x[
|
|
154
|
+
x[Vr] = x[Lr] = x[zr] = x[Dr] = x[Kr] = x[jr] = x[Er] = x[Nr] = x[Br] = x[kr] = x[Rr] = x[Fr] = x[Hr] = x[Gr] = x[qr] = !1;
|
|
155
155
|
function no(e) {
|
|
156
156
|
return de(e) && Zt(e.length) && !!x[Ve(e)];
|
|
157
157
|
}
|
|
@@ -160,7 +160,7 @@ function ct(e) {
|
|
|
160
160
|
return e(t);
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, Qe = ro &&
|
|
163
|
+
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, Qe = ro && Kt.process, $e = function() {
|
|
164
164
|
try {
|
|
165
165
|
var e = Ce && Ce.require && Ce.require("util").types;
|
|
166
166
|
return e || Qe && Qe.binding && Qe.binding("util");
|
|
@@ -261,23 +261,23 @@ function Mo(e, t) {
|
|
|
261
261
|
var n = this.__data__, r = Ie(n, e);
|
|
262
262
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function le(e) {
|
|
265
265
|
var t = -1, n = e == null ? 0 : e.length;
|
|
266
266
|
for (this.clear(); ++t < n; ) {
|
|
267
267
|
var r = e[t];
|
|
268
268
|
this.set(r[0], r[1]);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
var xe = me(
|
|
271
|
+
le.prototype.clear = wo;
|
|
272
|
+
le.prototype.delete = Po;
|
|
273
|
+
le.prototype.get = Oo;
|
|
274
|
+
le.prototype.has = xo;
|
|
275
|
+
le.prototype.set = Mo;
|
|
276
|
+
var xe = me(Y, "Map");
|
|
277
277
|
function Uo() {
|
|
278
278
|
this.size = 0, this.__data__ = {
|
|
279
279
|
hash: new pe(),
|
|
280
|
-
map: new (xe ||
|
|
280
|
+
map: new (xe || le)(),
|
|
281
281
|
string: new pe()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
@@ -322,7 +322,7 @@ function No(e, t) {
|
|
|
322
322
|
}
|
|
323
323
|
var Bo = tn(Object.getPrototypeOf, Object);
|
|
324
324
|
function ko() {
|
|
325
|
-
this.__data__ = new
|
|
325
|
+
this.__data__ = new le(), this.size = 0;
|
|
326
326
|
}
|
|
327
327
|
function Ro(e) {
|
|
328
328
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -335,9 +335,9 @@ function Ho(e) {
|
|
|
335
335
|
return this.__data__.has(e);
|
|
336
336
|
}
|
|
337
337
|
var Go = 200;
|
|
338
|
-
function
|
|
338
|
+
function qo(e, t) {
|
|
339
339
|
var n = this.__data__;
|
|
340
|
-
if (n instanceof
|
|
340
|
+
if (n instanceof le) {
|
|
341
341
|
var r = n.__data__;
|
|
342
342
|
if (!xe || r.length < Go - 1)
|
|
343
343
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
@@ -345,18 +345,18 @@ function zo(e, t) {
|
|
|
345
345
|
}
|
|
346
346
|
return n.set(e, t), this.size = n.size, this;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
var t = this.__data__ = new
|
|
348
|
+
function te(e) {
|
|
349
|
+
var t = this.__data__ = new le(e);
|
|
350
350
|
this.size = t.size;
|
|
351
351
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module,
|
|
352
|
+
te.prototype.clear = ko;
|
|
353
|
+
te.prototype.delete = Ro;
|
|
354
|
+
te.prototype.get = Fo;
|
|
355
|
+
te.prototype.has = Ho;
|
|
356
|
+
te.prototype.set = qo;
|
|
357
|
+
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module, zo = wt && wt.exports === nn, At = zo ? Y.Buffer : void 0;
|
|
358
358
|
At && At.allocUnsafe;
|
|
359
|
-
function
|
|
359
|
+
function Ko(e, t) {
|
|
360
360
|
return e.slice();
|
|
361
361
|
}
|
|
362
362
|
function Io(e, t) {
|
|
@@ -381,7 +381,7 @@ function Yo(e, t, n) {
|
|
|
381
381
|
function rt(e) {
|
|
382
382
|
return Yo(e, fo, Wo);
|
|
383
383
|
}
|
|
384
|
-
var ot = me(
|
|
384
|
+
var ot = me(Y, "DataView"), lt = me(Y, "Promise"), it = me(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = ve(ot), tl = ve(xe), nl = ve(lt), rl = ve(it), ol = ve(nt), Z = Ve;
|
|
385
385
|
(ot && Z(new ot(new ArrayBuffer(1))) != Ut || xe && Z(new xe()) != Pt || lt && Z(lt.resolve()) != Ot || it && Z(new it()) != xt || nt && Z(new nt()) != Mt) && (Z = function(e) {
|
|
386
386
|
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? ve(n) : "";
|
|
387
387
|
if (r)
|
|
@@ -404,10 +404,10 @@ function sl(e) {
|
|
|
404
404
|
var t = e.length, n = new e.constructor(t);
|
|
405
405
|
return t && typeof e[0] == "string" && il.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var qe = Y.Uint8Array;
|
|
408
408
|
function ft(e) {
|
|
409
409
|
var t = new e.constructor(e.byteLength);
|
|
410
|
-
return new
|
|
410
|
+
return new qe(t).set(new qe(e)), t;
|
|
411
411
|
}
|
|
412
412
|
function al(e, t) {
|
|
413
413
|
var n = ft(e.buffer);
|
|
@@ -418,7 +418,7 @@ function cl(e) {
|
|
|
418
418
|
var t = new e.constructor(e.source, ul.exec(e));
|
|
419
419
|
return t.lastIndex = e.lastIndex, t;
|
|
420
420
|
}
|
|
421
|
-
var Vt =
|
|
421
|
+
var Vt = se ? se.prototype : void 0, Lt = Vt ? Vt.valueOf : void 0;
|
|
422
422
|
function fl(e) {
|
|
423
423
|
return Lt ? Object(Lt.call(e)) : {};
|
|
424
424
|
}
|
|
@@ -471,22 +471,22 @@ var Dt = $e && $e.isMap, El = Dt ? ct(Dt) : jl, Nl = "[object Set]";
|
|
|
471
471
|
function Bl(e) {
|
|
472
472
|
return de(e) && Z(e) == Nl;
|
|
473
473
|
}
|
|
474
|
-
var jt = $e && $e.isSet, kl = jt ? ct(jt) : Bl, rn = "[object Arguments]", Rl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]",
|
|
475
|
-
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[
|
|
474
|
+
var jt = $e && $e.isSet, kl = jt ? ct(jt) : Bl, rn = "[object Arguments]", Rl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]", ql = "[object GeneratorFunction]", zl = "[object Map]", Kl = "[object Number]", ln = "[object Object]", Il = "[object RegExp]", Xl = "[object Set]", Zl = "[object String]", Jl = "[object Symbol]", Wl = "[object WeakMap]", Yl = "[object ArrayBuffer]", Ql = "[object DataView]", ei = "[object Float32Array]", ti = "[object Float64Array]", ni = "[object Int8Array]", ri = "[object Int16Array]", oi = "[object Int32Array]", li = "[object Uint8Array]", ii = "[object Uint8ClampedArray]", si = "[object Uint16Array]", ai = "[object Uint32Array]", P = {};
|
|
475
|
+
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[zl] = P[Kl] = P[ln] = P[Il] = P[Xl] = P[Zl] = P[Jl] = P[li] = P[ii] = P[si] = P[ai] = !0;
|
|
476
476
|
P[Gl] = P[on] = P[Wl] = !1;
|
|
477
477
|
function Re(e, t, n, r, l, o) {
|
|
478
478
|
var i;
|
|
479
479
|
if (i !== void 0)
|
|
480
480
|
return i;
|
|
481
|
-
if (!
|
|
481
|
+
if (!Ke(e))
|
|
482
482
|
return e;
|
|
483
483
|
var s = Pe(e);
|
|
484
484
|
if (s)
|
|
485
485
|
i = sl(e);
|
|
486
486
|
else {
|
|
487
|
-
var u = Z(e), a = u == on || u ==
|
|
487
|
+
var u = Z(e), a = u == on || u == ql;
|
|
488
488
|
if (Ge(e))
|
|
489
|
-
return
|
|
489
|
+
return Ko(e);
|
|
490
490
|
if (u == ln || u == rn || a && !l)
|
|
491
491
|
i = a ? {} : Ll(e);
|
|
492
492
|
else {
|
|
@@ -495,7 +495,7 @@ function Re(e, t, n, r, l, o) {
|
|
|
495
495
|
i = Vl(e, u);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
o || (o = new
|
|
498
|
+
o || (o = new te());
|
|
499
499
|
var d = o.get(e);
|
|
500
500
|
if (d)
|
|
501
501
|
return d;
|
|
@@ -504,7 +504,7 @@ function Re(e, t, n, r, l, o) {
|
|
|
504
504
|
}) : El(e) && e.forEach(function(y, h) {
|
|
505
505
|
i.set(h, Re(y, t, n, h, e, o));
|
|
506
506
|
});
|
|
507
|
-
var
|
|
507
|
+
var f = rt, g = s ? void 0 : f(e);
|
|
508
508
|
return pr(g || e, function(y, h) {
|
|
509
509
|
g && (h = y, y = e[h]), br(i, h, Re(y, t, n, h, e, o));
|
|
510
510
|
}), i;
|
|
@@ -520,13 +520,13 @@ function di(e) {
|
|
|
520
520
|
function pi(e) {
|
|
521
521
|
return this.__data__.has(e);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function ze(e) {
|
|
524
524
|
var t = -1, n = e == null ? 0 : e.length;
|
|
525
525
|
for (this.__data__ = new ge(); ++t < n; )
|
|
526
526
|
this.add(e[t]);
|
|
527
527
|
}
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
ze.prototype.add = ze.prototype.push = di;
|
|
529
|
+
ze.prototype.has = pi;
|
|
530
530
|
function vi(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,11 +544,11 @@ function an(e, t, n, r, l, o) {
|
|
|
544
544
|
var a = o.get(e), d = o.get(t);
|
|
545
545
|
if (a && d)
|
|
546
546
|
return a == t && d == e;
|
|
547
|
-
var
|
|
548
|
-
for (o.set(e, t), o.set(t, e); ++
|
|
549
|
-
var h = e[
|
|
547
|
+
var f = -1, g = !0, y = n & yi ? new ze() : void 0;
|
|
548
|
+
for (o.set(e, t), o.set(t, e); ++f < s; ) {
|
|
549
|
+
var h = e[f], M = t[f];
|
|
550
550
|
if (r)
|
|
551
|
-
var b = i ? r(M, h,
|
|
551
|
+
var b = i ? r(M, h, f, t, e, o) : r(h, M, f, e, t, o);
|
|
552
552
|
if (b !== void 0) {
|
|
553
553
|
if (b)
|
|
554
554
|
continue;
|
|
@@ -582,7 +582,7 @@ function _i(e) {
|
|
|
582
582
|
n[++t] = r;
|
|
583
583
|
}), n;
|
|
584
584
|
}
|
|
585
|
-
var bi = 1, $i = 2, Ti = "[object Boolean]", Si = "[object Date]", wi = "[object Error]", Ai = "[object Map]", Ci = "[object Number]", Pi = "[object RegExp]", Oi = "[object Set]", xi = "[object String]", Mi = "[object Symbol]", Ui = "[object ArrayBuffer]", Vi = "[object DataView]", Et =
|
|
585
|
+
var bi = 1, $i = 2, Ti = "[object Boolean]", Si = "[object Date]", wi = "[object Error]", Ai = "[object Map]", Ci = "[object Number]", Pi = "[object RegExp]", Oi = "[object Set]", xi = "[object String]", Mi = "[object Symbol]", Ui = "[object ArrayBuffer]", Vi = "[object DataView]", Et = se ? se.prototype : void 0, et = Et ? Et.valueOf : void 0;
|
|
586
586
|
function Li(e, t, n, r, l, o, i) {
|
|
587
587
|
switch (n) {
|
|
588
588
|
case Vi:
|
|
@@ -590,7 +590,7 @@ function Li(e, t, n, r, l, o, i) {
|
|
|
590
590
|
return !1;
|
|
591
591
|
e = e.buffer, t = t.buffer;
|
|
592
592
|
case Ui:
|
|
593
|
-
return !(e.byteLength != t.byteLength || !o(new
|
|
593
|
+
return !(e.byteLength != t.byteLength || !o(new qe(e), new qe(t)));
|
|
594
594
|
case Ti:
|
|
595
595
|
case Si:
|
|
596
596
|
case Ci:
|
|
@@ -623,8 +623,8 @@ function Ni(e, t, n, r, l, o) {
|
|
|
623
623
|
var i = n & Di, s = rt(e), u = s.length, a = rt(t), d = a.length;
|
|
624
624
|
if (u != d && !i)
|
|
625
625
|
return !1;
|
|
626
|
-
for (var
|
|
627
|
-
var g = s[
|
|
626
|
+
for (var f = u; f--; ) {
|
|
627
|
+
var g = s[f];
|
|
628
628
|
if (!(i ? g in t : Ei.call(t, g)))
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
@@ -633,8 +633,8 @@ function Ni(e, t, n, r, l, o) {
|
|
|
633
633
|
return y == t && h == e;
|
|
634
634
|
var M = !0;
|
|
635
635
|
o.set(e, t), o.set(t, e);
|
|
636
|
-
for (var b = i; ++
|
|
637
|
-
g = s[
|
|
636
|
+
for (var b = i; ++f < u; ) {
|
|
637
|
+
g = s[f];
|
|
638
638
|
var D = e[g], w = t[g];
|
|
639
639
|
if (r)
|
|
640
640
|
var U = i ? r(w, D, g, t, e, o) : r(D, w, g, e, t, o);
|
|
@@ -654,22 +654,22 @@ var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Obje
|
|
|
654
654
|
function Ri(e, t, n, r, l, o) {
|
|
655
655
|
var i = Pe(e), s = Pe(t), u = i ? Bt : Z(e), a = s ? Bt : Z(t);
|
|
656
656
|
u = u == Nt ? Ee : u, a = a == Nt ? Ee : a;
|
|
657
|
-
var d = u == Ee,
|
|
657
|
+
var d = u == Ee, f = a == Ee, g = u == a;
|
|
658
658
|
if (g && Ge(e)) {
|
|
659
659
|
if (!Ge(t))
|
|
660
660
|
return !1;
|
|
661
661
|
i = !0, d = !1;
|
|
662
662
|
}
|
|
663
663
|
if (g && !d)
|
|
664
|
-
return o || (o = new
|
|
664
|
+
return o || (o = new te()), i || en(e) ? an(e, t, n, r, l, o) : Li(e, t, u, n, r, l, o);
|
|
665
665
|
if (!(n & Bi)) {
|
|
666
|
-
var y = d && kt.call(e, "__wrapped__"), h =
|
|
666
|
+
var y = d && kt.call(e, "__wrapped__"), h = f && kt.call(t, "__wrapped__");
|
|
667
667
|
if (y || h) {
|
|
668
668
|
var M = y ? e.value() : e, b = h ? t.value() : t;
|
|
669
|
-
return o || (o = new
|
|
669
|
+
return o || (o = new te()), l(M, b, n, r, o);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
return g ? (o || (o = new
|
|
672
|
+
return g ? (o || (o = new te()), Ni(e, t, n, r, l, o)) : !1;
|
|
673
673
|
}
|
|
674
674
|
function un(e, t, n, r, l) {
|
|
675
675
|
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Ri(e, t, n, r, un, l);
|
|
@@ -750,10 +750,10 @@ const Ne = (e, t) => {
|
|
|
750
750
|
return !0;
|
|
751
751
|
};
|
|
752
752
|
return n(e, t);
|
|
753
|
-
}, dt = (e) => !(e instanceof Array), pt = (e) => e instanceof Array,
|
|
753
|
+
}, dt = (e) => !(e instanceof Array), pt = (e) => e instanceof Array, qi = [
|
|
754
754
|
["basic", "id"],
|
|
755
755
|
["basic", "name"]
|
|
756
|
-
],
|
|
756
|
+
], zi = (e) => qi.find((t) => Ze(e, t)), Je = (e, t, n, r, l, o, i) => (e = sn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), zi(e) ? (r.change = !1, r.change) : t.ui ? t.array && o === void 0 ? Xi(
|
|
757
757
|
e,
|
|
758
758
|
t,
|
|
759
759
|
n,
|
|
@@ -761,7 +761,7 @@ const Ne = (e, t) => {
|
|
|
761
761
|
l,
|
|
762
762
|
o,
|
|
763
763
|
i
|
|
764
|
-
) : Zi(t, n, r, o, i) : t.array ?
|
|
764
|
+
) : Zi(t, n, r, o, i) : t.array ? Ki(
|
|
765
765
|
e,
|
|
766
766
|
t,
|
|
767
767
|
n,
|
|
@@ -777,7 +777,7 @@ const Ne = (e, t) => {
|
|
|
777
777
|
l,
|
|
778
778
|
o,
|
|
779
779
|
i
|
|
780
|
-
)),
|
|
780
|
+
)), Ki = (e, t, n, r, l, o, i) => {
|
|
781
781
|
if (t.ui)
|
|
782
782
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
783
783
|
if (!t.array)
|
|
@@ -899,10 +899,10 @@ function os(e) {
|
|
|
899
899
|
function gn() {
|
|
900
900
|
return Ue(mn);
|
|
901
901
|
}
|
|
902
|
-
const ls = /* @__PURE__ */
|
|
902
|
+
const ls = /* @__PURE__ */ q({
|
|
903
903
|
__name: "menu",
|
|
904
904
|
setup(e) {
|
|
905
|
-
const { t } =
|
|
905
|
+
const { t } = ue(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = k(0), s = k(0), u = k([]), a = G(() => [i.value, s.value]), d = (b) => {
|
|
906
906
|
const D = () => !(u.value.length <= 0 || !be(l.value, u.value)), w = () => {
|
|
907
907
|
if (!D())
|
|
908
908
|
return;
|
|
@@ -945,7 +945,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
945
945
|
title: t("x-prop-tree.reset"),
|
|
946
946
|
func: w
|
|
947
947
|
});
|
|
948
|
-
},
|
|
948
|
+
}, f = (b) => {
|
|
949
949
|
const D = () => {
|
|
950
950
|
const w = Ne(n.value, u.value), U = Ae(r.value, u.value);
|
|
951
951
|
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: U }));
|
|
@@ -982,9 +982,9 @@ const ls = /* @__PURE__ */ z({
|
|
|
982
982
|
title: t("x-prop-tree.paste"),
|
|
983
983
|
func: w
|
|
984
984
|
});
|
|
985
|
-
}, y =
|
|
985
|
+
}, y = G(() => {
|
|
986
986
|
const b = [];
|
|
987
|
-
return d(b),
|
|
987
|
+
return d(b), f(b), g(b), b;
|
|
988
988
|
}), h = (b) => {
|
|
989
989
|
i.value = b.x, s.value = b.y, u.value = b.keys;
|
|
990
990
|
}, { open: M } = at("propTreeMenu", h);
|
|
@@ -1000,7 +1000,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
1000
1000
|
default: J(() => [
|
|
1001
1001
|
B(A, null, {
|
|
1002
1002
|
default: J(() => [
|
|
1003
|
-
(S(!0),
|
|
1003
|
+
(S(!0), F(He, null, Ht(y.value, (W, We) => (S(), R(U, {
|
|
1004
1004
|
key: We,
|
|
1005
1005
|
link: "",
|
|
1006
1006
|
onClick: W.func
|
|
@@ -1008,7 +1008,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
1008
1008
|
default: J(() => [
|
|
1009
1009
|
B(w, null, {
|
|
1010
1010
|
default: J(() => [
|
|
1011
|
-
st(
|
|
1011
|
+
st(ne(W.title), 1)
|
|
1012
1012
|
]),
|
|
1013
1013
|
_: 2
|
|
1014
1014
|
}, 1024)
|
|
@@ -1025,7 +1025,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
1027
1027
|
var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "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", ss = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
1028
|
-
const Be = /* @__PURE__ */
|
|
1028
|
+
const Be = /* @__PURE__ */ q({
|
|
1029
1029
|
__name: "title",
|
|
1030
1030
|
props: {
|
|
1031
1031
|
title: {},
|
|
@@ -1036,7 +1036,7 @@ const Be = /* @__PURE__ */ z({
|
|
|
1036
1036
|
},
|
|
1037
1037
|
emits: ["collapse", "menu", "create", "delete"],
|
|
1038
1038
|
setup(e, { emit: t }) {
|
|
1039
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i =
|
|
1039
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = G(() => ({
|
|
1040
1040
|
background: o.value ? r.value : n.value,
|
|
1041
1041
|
height: "36px",
|
|
1042
1042
|
marginBottom: "1px",
|
|
@@ -1047,46 +1047,46 @@ const Be = /* @__PURE__ */ z({
|
|
|
1047
1047
|
l("menu", a.clientX, a.clientY);
|
|
1048
1048
|
};
|
|
1049
1049
|
return (a, d) => {
|
|
1050
|
-
const
|
|
1051
|
-
return
|
|
1050
|
+
const f = O("v-icon"), g = O("v-spacer"), y = ae("ripple");
|
|
1051
|
+
return re((S(), F("div", {
|
|
1052
1052
|
class: "d-flex align-center cursor-pointer",
|
|
1053
|
-
style:
|
|
1053
|
+
style: ie(i.value),
|
|
1054
1054
|
onClick: s,
|
|
1055
|
-
onContextmenu:
|
|
1055
|
+
onContextmenu: z(u, ["prevent"]),
|
|
1056
1056
|
onMouseover: d[2] || (d[2] = (h) => o.value = !0),
|
|
1057
1057
|
onMouseout: d[3] || (d[3] = (h) => o.value = !1)
|
|
1058
1058
|
}, [
|
|
1059
|
-
B(
|
|
1059
|
+
B(f, {
|
|
1060
1060
|
class: "mr-1",
|
|
1061
1061
|
icon: a.collapse ? E(hn) : E(yn)
|
|
1062
1062
|
}, null, 8, ["icon"]),
|
|
1063
|
-
|
|
1063
|
+
K("span", null, ne(a.title), 1),
|
|
1064
1064
|
B(g),
|
|
1065
|
-
a.hasCreate ? (S(), R(
|
|
1065
|
+
a.hasCreate ? (S(), R(f, {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "mx-3",
|
|
1068
1068
|
icon: E(ss),
|
|
1069
|
-
onClick: d[0] || (d[0] =
|
|
1069
|
+
onClick: d[0] || (d[0] = z((h) => l("create"), ["stop"]))
|
|
1070
1070
|
}, null, 8, ["icon"])) : I("", !0),
|
|
1071
|
-
a.hasDelete ? (S(), R(
|
|
1071
|
+
a.hasDelete ? (S(), R(f, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
class: "mx-3",
|
|
1074
1074
|
icon: E(ye),
|
|
1075
|
-
onClick: d[1] || (d[1] =
|
|
1075
|
+
onClick: d[1] || (d[1] = z((h) => l("delete", a.index), ["stop"]))
|
|
1076
1076
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1077
1077
|
], 36)), [
|
|
1078
1078
|
[y]
|
|
1079
1079
|
]);
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
|
-
}), as = /* @__PURE__ */
|
|
1082
|
+
}), as = /* @__PURE__ */ q({
|
|
1083
1083
|
__name: "entry",
|
|
1084
1084
|
props: {
|
|
1085
1085
|
minHeight: {}
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["menu"],
|
|
1088
1088
|
setup(e, { emit: t }) {
|
|
1089
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i =
|
|
1089
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = G(() => ({
|
|
1090
1090
|
background: o.value ? r.value : n.value,
|
|
1091
1091
|
minHeight: e.minHeight,
|
|
1092
1092
|
paddingRight: "4px",
|
|
@@ -1096,13 +1096,13 @@ const Be = /* @__PURE__ */ z({
|
|
|
1096
1096
|
l("menu", u.clientX, u.clientY);
|
|
1097
1097
|
};
|
|
1098
1098
|
return (u, a) => {
|
|
1099
|
-
const d =
|
|
1100
|
-
return
|
|
1099
|
+
const d = ae("ripple");
|
|
1100
|
+
return re((S(), F("div", {
|
|
1101
1101
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1102
|
-
style:
|
|
1103
|
-
onContextmenu:
|
|
1104
|
-
onMouseover: a[0] || (a[0] = (
|
|
1105
|
-
onMouseout: a[1] || (a[1] = (
|
|
1102
|
+
style: ie(i.value),
|
|
1103
|
+
onContextmenu: z(s, ["prevent"]),
|
|
1104
|
+
onMouseover: a[0] || (a[0] = (f) => o.value = !0),
|
|
1105
|
+
onMouseout: a[1] || (a[1] = (f) => o.value = !1)
|
|
1106
1106
|
}, [
|
|
1107
1107
|
Un(u.$slots, "default")
|
|
1108
1108
|
], 36)), [
|
|
@@ -1112,7 +1112,7 @@ const Be = /* @__PURE__ */ z({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
1114
|
function us(e, t, n) {
|
|
1115
|
-
const { t: r } =
|
|
1115
|
+
const { t: r } = ue();
|
|
1116
1116
|
return { renderProp: (o, i, s) => {
|
|
1117
1117
|
let u = r(i.name);
|
|
1118
1118
|
return be(e.value, o) && (u += " *"), _(
|
|
@@ -1156,22 +1156,22 @@ function cs(e) {
|
|
|
1156
1156
|
ce(n, r, l, e, o, i);
|
|
1157
1157
|
} };
|
|
1158
1158
|
}
|
|
1159
|
-
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */
|
|
1159
|
+
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ q({
|
|
1160
1160
|
__name: "strInput",
|
|
1161
1161
|
props: /* @__PURE__ */ X({
|
|
1162
1162
|
hasDelete: { type: Boolean, default: !1 },
|
|
1163
1163
|
readonly: { type: Boolean, default: !1 }
|
|
1164
1164
|
}, {
|
|
1165
|
-
modelValue: {},
|
|
1165
|
+
modelValue: { required: !0 },
|
|
1166
1166
|
modelModifiers: {}
|
|
1167
1167
|
}),
|
|
1168
1168
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1169
1169
|
setup(e, { emit: t }) {
|
|
1170
1170
|
const n = oe(e, "modelValue"), r = t;
|
|
1171
1171
|
return (l, o) => {
|
|
1172
|
-
const i = O("v-text-field"), s = O("v-icon"), u =
|
|
1173
|
-
return S(),
|
|
1174
|
-
|
|
1172
|
+
const i = O("v-text-field"), s = O("v-icon"), u = ae("ripple");
|
|
1173
|
+
return S(), F("div", fs, [
|
|
1174
|
+
re(B(i, {
|
|
1175
1175
|
modelValue: n.value,
|
|
1176
1176
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1177
1177
|
density: "compact",
|
|
@@ -1190,7 +1190,7 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
|
|
|
1190
1190
|
key: 0,
|
|
1191
1191
|
class: "mx-2",
|
|
1192
1192
|
icon: E(ye),
|
|
1193
|
-
onClick: o[1] || (o[1] =
|
|
1193
|
+
onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
|
|
1194
1194
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1195
1195
|
]);
|
|
1196
1196
|
};
|
|
@@ -1224,7 +1224,7 @@ function ps(e) {
|
|
|
1224
1224
|
readonly: r.static || r.readonly
|
|
1225
1225
|
}) };
|
|
1226
1226
|
}
|
|
1227
|
-
const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */
|
|
1227
|
+
const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */ q({
|
|
1228
1228
|
__name: "numInput",
|
|
1229
1229
|
props: /* @__PURE__ */ X({
|
|
1230
1230
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1235,16 +1235,16 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1235
1235
|
step: { default: 1 },
|
|
1236
1236
|
readonly: { type: Boolean, default: !1 }
|
|
1237
1237
|
}, {
|
|
1238
|
-
modelValue: {},
|
|
1238
|
+
modelValue: { required: !0 },
|
|
1239
1239
|
modelModifiers: {}
|
|
1240
1240
|
}),
|
|
1241
1241
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1242
1242
|
setup(e, { emit: t }) {
|
|
1243
1243
|
const n = oe(e, "modelValue"), r = t;
|
|
1244
1244
|
return (l, o) => {
|
|
1245
|
-
const i = O("v-number-input"), s = O("v-icon"), u =
|
|
1246
|
-
return S(),
|
|
1247
|
-
|
|
1245
|
+
const i = O("v-number-input"), s = O("v-icon"), u = ae("ripple");
|
|
1246
|
+
return S(), F("div", vs, [
|
|
1247
|
+
re(B(i, {
|
|
1248
1248
|
modelValue: n.value,
|
|
1249
1249
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1250
1250
|
density: "compact",
|
|
@@ -1268,7 +1268,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
class: "mx-2",
|
|
1270
1270
|
icon: E(ye),
|
|
1271
|
-
onClick: o[1] || (o[1] =
|
|
1271
|
+
onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
|
|
1272
1272
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1273
1273
|
]);
|
|
1274
1274
|
};
|
|
@@ -1302,46 +1302,35 @@ function gs(e) {
|
|
|
1302
1302
|
readonly: r.readonly
|
|
1303
1303
|
}) };
|
|
1304
1304
|
}
|
|
1305
|
-
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */
|
|
1305
|
+
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ q({
|
|
1306
1306
|
__name: "switch",
|
|
1307
1307
|
props: /* @__PURE__ */ X({
|
|
1308
1308
|
hasDelete: { type: Boolean, default: !1 },
|
|
1309
1309
|
readonly: { type: Boolean, default: !1 }
|
|
1310
1310
|
}, {
|
|
1311
|
-
modelValue: { type: Boolean },
|
|
1311
|
+
modelValue: { type: Boolean, required: !0 },
|
|
1312
1312
|
modelModifiers: {}
|
|
1313
1313
|
}),
|
|
1314
1314
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1315
1315
|
setup(e, { emit: t }) {
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
Y(B(u, {
|
|
1325
|
-
modelValue: r.value,
|
|
1326
|
-
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
1316
|
+
const n = oe(e, "modelValue"), r = t;
|
|
1317
|
+
return (l, o) => {
|
|
1318
|
+
const i = O("v-switch"), s = O("v-icon");
|
|
1319
|
+
return S(), F("div", ys, [
|
|
1320
|
+
B(i, {
|
|
1321
|
+
modelValue: n.value,
|
|
1322
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
|
|
1323
|
+
class: "ml-1",
|
|
1327
1324
|
density: "compact",
|
|
1328
|
-
|
|
1325
|
+
color: "primary",
|
|
1329
1326
|
"hide-details": "",
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
[
|
|
1334
|
-
d,
|
|
1335
|
-
void 0,
|
|
1336
|
-
void 0,
|
|
1337
|
-
{ stop: !0 }
|
|
1338
|
-
]
|
|
1339
|
-
]),
|
|
1340
|
-
i.hasDelete ? (S(), R(a, {
|
|
1327
|
+
readonly: l.readonly
|
|
1328
|
+
}, null, 8, ["modelValue", "readonly"]),
|
|
1329
|
+
l.hasDelete ? (S(), R(s, {
|
|
1341
1330
|
key: 0,
|
|
1342
1331
|
class: "mx-2",
|
|
1343
1332
|
icon: E(ye),
|
|
1344
|
-
onClick:
|
|
1333
|
+
onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
|
|
1345
1334
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1346
1335
|
]);
|
|
1347
1336
|
};
|
|
@@ -1375,23 +1364,23 @@ function _s(e) {
|
|
|
1375
1364
|
readonly: r.readonly
|
|
1376
1365
|
}) };
|
|
1377
1366
|
}
|
|
1378
|
-
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */
|
|
1367
|
+
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ q({
|
|
1379
1368
|
__name: "select",
|
|
1380
1369
|
props: /* @__PURE__ */ X({
|
|
1381
1370
|
hasDelete: { type: Boolean, default: !1 },
|
|
1382
1371
|
readonly: { type: Boolean, default: !1 },
|
|
1383
1372
|
items: {}
|
|
1384
1373
|
}, {
|
|
1385
|
-
modelValue: {},
|
|
1374
|
+
modelValue: { required: !0 },
|
|
1386
1375
|
modelModifiers: {}
|
|
1387
1376
|
}),
|
|
1388
1377
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1389
1378
|
setup(e, { emit: t }) {
|
|
1390
1379
|
const n = oe(e, "modelValue"), r = t;
|
|
1391
1380
|
return (l, o) => {
|
|
1392
|
-
const i = O("v-select"), s = O("v-icon"), u =
|
|
1393
|
-
return S(),
|
|
1394
|
-
|
|
1381
|
+
const i = O("v-select"), s = O("v-icon"), u = ae("ripple");
|
|
1382
|
+
return S(), F("div", bs, [
|
|
1383
|
+
re(B(i, {
|
|
1395
1384
|
modelValue: n.value,
|
|
1396
1385
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1397
1386
|
density: "compact",
|
|
@@ -1411,14 +1400,14 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1411
1400
|
key: 0,
|
|
1412
1401
|
class: "mx-2",
|
|
1413
1402
|
icon: E(ye),
|
|
1414
|
-
onClick: o[1] || (o[1] =
|
|
1403
|
+
onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
|
|
1415
1404
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1416
1405
|
]);
|
|
1417
1406
|
};
|
|
1418
1407
|
}
|
|
1419
1408
|
});
|
|
1420
1409
|
function Ts(e) {
|
|
1421
|
-
const { t } =
|
|
1410
|
+
const { t } = ue();
|
|
1422
1411
|
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _($s, {
|
|
1423
1412
|
modelValue: ce(
|
|
1424
1413
|
r,
|
|
@@ -1455,7 +1444,7 @@ function Ts(e) {
|
|
|
1455
1444
|
readonly: l.readonly
|
|
1456
1445
|
}) };
|
|
1457
1446
|
}
|
|
1458
|
-
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */
|
|
1447
|
+
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */ q({
|
|
1459
1448
|
__name: "group",
|
|
1460
1449
|
props: {
|
|
1461
1450
|
id: {},
|
|
@@ -1465,17 +1454,17 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1465
1454
|
},
|
|
1466
1455
|
emits: ["x-click"],
|
|
1467
1456
|
setup(e, { emit: t }) {
|
|
1468
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s =
|
|
1457
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = G(() => ({
|
|
1469
1458
|
background: i.value ? r.value : n.value,
|
|
1470
1459
|
height: "30px",
|
|
1471
1460
|
marginBottom: "1px",
|
|
1472
1461
|
userSelect: "none"
|
|
1473
1462
|
}));
|
|
1474
1463
|
return (u, a) => {
|
|
1475
|
-
const d = O("v-icon"),
|
|
1476
|
-
return
|
|
1464
|
+
const d = O("v-icon"), f = ae("ripple");
|
|
1465
|
+
return re((S(), F("div", {
|
|
1477
1466
|
class: "d-flex align-center cursor-pointer",
|
|
1478
|
-
style:
|
|
1467
|
+
style: ie(s.value),
|
|
1479
1468
|
onClick: a[0] || (a[0] = (g) => o("x-click", l.id)),
|
|
1480
1469
|
onMouseover: a[1] || (a[1] = (g) => i.value = !0),
|
|
1481
1470
|
onMouseout: a[2] || (a[2] = (g) => i.value = !1)
|
|
@@ -1484,14 +1473,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1484
1473
|
icon: l.collapse ? E(hn) : E(yn),
|
|
1485
1474
|
size: "small"
|
|
1486
1475
|
}, null, 8, ["icon"]),
|
|
1487
|
-
|
|
1488
|
-
|
|
1476
|
+
K("span", Ss, ne(l.title), 1),
|
|
1477
|
+
K("span", ws, ne(l.count), 1)
|
|
1489
1478
|
], 36)), [
|
|
1490
|
-
[
|
|
1479
|
+
[f]
|
|
1491
1480
|
]);
|
|
1492
1481
|
};
|
|
1493
1482
|
}
|
|
1494
|
-
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */
|
|
1483
|
+
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */ q({
|
|
1495
1484
|
__name: "item",
|
|
1496
1485
|
props: {
|
|
1497
1486
|
id: {},
|
|
@@ -1499,22 +1488,22 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1499
1488
|
},
|
|
1500
1489
|
emits: ["x-click"],
|
|
1501
1490
|
setup(e, { emit: t }) {
|
|
1502
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s =
|
|
1491
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = G(() => ({
|
|
1503
1492
|
background: i.value ? r.value : n.value,
|
|
1504
1493
|
height: "48px",
|
|
1505
1494
|
marginBottom: "1px",
|
|
1506
1495
|
userSelect: "none"
|
|
1507
1496
|
}));
|
|
1508
1497
|
return (u, a) => {
|
|
1509
|
-
const d =
|
|
1510
|
-
return
|
|
1498
|
+
const d = ae("ripple");
|
|
1499
|
+
return re((S(), F("div", {
|
|
1511
1500
|
class: "d-flex align-center cursor-pointer",
|
|
1512
|
-
style:
|
|
1513
|
-
onClick: a[0] || (a[0] = (
|
|
1514
|
-
onMouseover: a[1] || (a[1] = (
|
|
1515
|
-
onMouseout: a[2] || (a[2] = (
|
|
1501
|
+
style: ie(s.value),
|
|
1502
|
+
onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
|
|
1503
|
+
onMouseover: a[1] || (a[1] = (f) => i.value = !0),
|
|
1504
|
+
onMouseout: a[2] || (a[2] = (f) => i.value = !1)
|
|
1516
1505
|
}, [
|
|
1517
|
-
|
|
1506
|
+
K("span", Cs, ne(l.title), 1)
|
|
1518
1507
|
], 36)), [
|
|
1519
1508
|
[d]
|
|
1520
1509
|
]);
|
|
@@ -1523,7 +1512,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1523
1512
|
}), Os = { key: 0 }, xs = {
|
|
1524
1513
|
key: 1,
|
|
1525
1514
|
class: "text-body-2 text-grey ml-3"
|
|
1526
|
-
}, Ms = /* @__PURE__ */
|
|
1515
|
+
}, Ms = /* @__PURE__ */ q({
|
|
1527
1516
|
__name: "index",
|
|
1528
1517
|
props: {
|
|
1529
1518
|
modelValue: {},
|
|
@@ -1533,14 +1522,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1533
1522
|
},
|
|
1534
1523
|
emits: ["update:modelValue", "update:open"],
|
|
1535
1524
|
setup(e) {
|
|
1536
|
-
const { t } =
|
|
1525
|
+
const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), l = gn(), o = (s) => {
|
|
1537
1526
|
const u = cn(l, s);
|
|
1538
1527
|
u && Hi(l, s, !u.collapse);
|
|
1539
1528
|
}, i = (s) => {
|
|
1540
1529
|
n.value = s, r.value = !1, _e.emit("refreshDepends");
|
|
1541
1530
|
};
|
|
1542
|
-
return (s, u) => E(l).length > 0 ? (S(),
|
|
1543
|
-
(S(!0),
|
|
1531
|
+
return (s, u) => E(l).length > 0 ? (S(), F("div", Os, [
|
|
1532
|
+
(S(!0), F(He, null, Ht(E(l), (a) => (S(), F(He, {
|
|
1544
1533
|
key: a.id
|
|
1545
1534
|
}, [
|
|
1546
1535
|
a.type === 0 ? (S(), R(As, {
|
|
@@ -1558,9 +1547,9 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1558
1547
|
onXClick: i
|
|
1559
1548
|
}, null, 8, ["id", "title"])) : I("", !0)
|
|
1560
1549
|
], 64))), 128))
|
|
1561
|
-
])) : (S(),
|
|
1550
|
+
])) : (S(), F("div", xs, ne(E(t)("x-prop-tree.noComp")), 1));
|
|
1562
1551
|
}
|
|
1563
|
-
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */
|
|
1552
|
+
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */ q({
|
|
1564
1553
|
__name: "index",
|
|
1565
1554
|
props: {
|
|
1566
1555
|
modelValue: {},
|
|
@@ -1568,60 +1557,60 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1568
1557
|
},
|
|
1569
1558
|
emits: ["update:modelValue"],
|
|
1570
1559
|
setup(e) {
|
|
1571
|
-
const { t } =
|
|
1560
|
+
const { t } = ue(), n = kn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = G(() => {
|
|
1572
1561
|
let g = "100%";
|
|
1573
1562
|
return n.mdAndUp.value && (g = "400px"), {
|
|
1574
1563
|
background: l.value,
|
|
1575
1564
|
width: g,
|
|
1576
1565
|
height: "100%"
|
|
1577
1566
|
};
|
|
1578
|
-
}), u =
|
|
1567
|
+
}), u = G(() => {
|
|
1579
1568
|
let g = 48;
|
|
1580
1569
|
return r.value && (g += 24), {
|
|
1581
1570
|
position: "relative",
|
|
1582
1571
|
height: `calc(100% - ${g}px)`
|
|
1583
1572
|
};
|
|
1584
|
-
}), a =
|
|
1573
|
+
}), a = G(() => ({
|
|
1585
1574
|
height: "60px"
|
|
1586
|
-
})), d =
|
|
1575
|
+
})), d = G(() => {
|
|
1587
1576
|
if (!o.value)
|
|
1588
1577
|
return t("x-prop-tree.notSet");
|
|
1589
1578
|
const g = cn(i, o.value);
|
|
1590
1579
|
return g ? g.name : t("x-runtime-lib.compNotAvail");
|
|
1591
|
-
}), { open:
|
|
1592
|
-
return
|
|
1593
|
-
|
|
1580
|
+
}), { open: f } = at(`propTreeCompSelectDlg${Gt()}`);
|
|
1581
|
+
return qt(() => {
|
|
1582
|
+
f.value = !1;
|
|
1594
1583
|
}), (g, y) => {
|
|
1595
1584
|
const h = O("v-btn"), M = O("v-sheet"), b = O("v-icon"), D = O("v-dialog");
|
|
1596
1585
|
return S(), R(D, {
|
|
1597
|
-
modelValue: E(
|
|
1598
|
-
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(
|
|
1586
|
+
modelValue: E(f),
|
|
1587
|
+
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(f) ? f.value = w : null),
|
|
1599
1588
|
transition: "scroll-x-reverse-transition",
|
|
1600
1589
|
persistent: "",
|
|
1601
1590
|
"no-click-animation": "",
|
|
1602
1591
|
fullscreen: "",
|
|
1603
|
-
onKeydown: y[6] || (y[6] = Vn(
|
|
1592
|
+
onKeydown: y[6] || (y[6] = Vn(z((w) => f.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1604
1593
|
}, {
|
|
1605
1594
|
activator: J(({ props: w }) => [
|
|
1606
|
-
B(h,
|
|
1595
|
+
B(h, zt(w, {
|
|
1607
1596
|
density: "comfortable",
|
|
1608
1597
|
block: ""
|
|
1609
1598
|
}), {
|
|
1610
1599
|
default: J(() => [
|
|
1611
|
-
st(
|
|
1600
|
+
st(ne(d.value), 1)
|
|
1612
1601
|
]),
|
|
1613
1602
|
_: 2
|
|
1614
1603
|
}, 1040)
|
|
1615
1604
|
]),
|
|
1616
1605
|
default: J(() => [
|
|
1617
|
-
|
|
1606
|
+
K("div", {
|
|
1618
1607
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1619
|
-
onClick: y[3] || (y[3] =
|
|
1620
|
-
onContextmenu: y[4] || (y[4] =
|
|
1608
|
+
onClick: y[3] || (y[3] = z((w) => f.value = !1, ["self"])),
|
|
1609
|
+
onContextmenu: y[4] || (y[4] = z((w) => f.value = !1, ["self", "prevent"]))
|
|
1621
1610
|
}, [
|
|
1622
|
-
|
|
1611
|
+
K("div", {
|
|
1623
1612
|
class: "elevation-2",
|
|
1624
|
-
style:
|
|
1613
|
+
style: ie(s.value)
|
|
1625
1614
|
}, [
|
|
1626
1615
|
E(r) ? (S(), R(M, {
|
|
1627
1616
|
key: 0,
|
|
@@ -1636,24 +1625,24 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1636
1625
|
default: J(() => [
|
|
1637
1626
|
B(b, {
|
|
1638
1627
|
icon: E(is),
|
|
1639
|
-
onClick: y[0] || (y[0] = (w) =>
|
|
1628
|
+
onClick: y[0] || (y[0] = (w) => f.value = !1)
|
|
1640
1629
|
}, null, 8, ["icon"]),
|
|
1641
|
-
|
|
1630
|
+
K("span", Us, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1642
1631
|
]),
|
|
1643
1632
|
_: 1
|
|
1644
1633
|
}),
|
|
1645
|
-
|
|
1634
|
+
K("div", {
|
|
1646
1635
|
class: "overflow-y-auto",
|
|
1647
|
-
style:
|
|
1636
|
+
style: ie(u.value)
|
|
1648
1637
|
}, [
|
|
1649
1638
|
B(Ms, {
|
|
1650
1639
|
modelValue: o.value,
|
|
1651
1640
|
"onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
|
|
1652
|
-
open: E(
|
|
1653
|
-
"onUpdate:open": y[2] || (y[2] = (w) => Fe(
|
|
1641
|
+
open: E(f),
|
|
1642
|
+
"onUpdate:open": y[2] || (y[2] = (w) => Fe(f) ? f.value = w : null)
|
|
1654
1643
|
}, null, 8, ["modelValue", "open"]),
|
|
1655
|
-
|
|
1656
|
-
style:
|
|
1644
|
+
K("div", {
|
|
1645
|
+
style: ie(a.value)
|
|
1657
1646
|
}, null, 4)
|
|
1658
1647
|
], 4)
|
|
1659
1648
|
], 4)
|
|
@@ -1687,7 +1676,7 @@ function Ls(e) {
|
|
|
1687
1676
|
}
|
|
1688
1677
|
}) };
|
|
1689
1678
|
}
|
|
1690
|
-
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */
|
|
1679
|
+
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ q({
|
|
1691
1680
|
__name: "colorPicker",
|
|
1692
1681
|
props: /* @__PURE__ */ X({
|
|
1693
1682
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1698,16 +1687,16 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1698
1687
|
}),
|
|
1699
1688
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1700
1689
|
setup(e, { emit: t }) {
|
|
1701
|
-
const { t: n } =
|
|
1690
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = G(() => {
|
|
1702
1691
|
let u = "100%";
|
|
1703
1692
|
return e.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1704
1693
|
width: u
|
|
1705
1694
|
};
|
|
1706
|
-
}), i =
|
|
1707
|
-
return
|
|
1695
|
+
}), i = G(() => e.readonly), { open: s } = at(`propTreeColorPickerMenu${Gt()}`);
|
|
1696
|
+
return qt(() => {
|
|
1708
1697
|
s.value = !1;
|
|
1709
1698
|
}), (u, a) => {
|
|
1710
|
-
const d = O("v-btn"),
|
|
1699
|
+
const d = O("v-btn"), f = O("v-icon"), g = O("v-color-picker"), y = O("v-menu");
|
|
1711
1700
|
return S(), R(y, {
|
|
1712
1701
|
modelValue: E(s),
|
|
1713
1702
|
"onUpdate:modelValue": a[2] || (a[2] = (h) => Fe(s) ? s.value = h : null),
|
|
@@ -1715,28 +1704,28 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1715
1704
|
scrim: "transparent"
|
|
1716
1705
|
}, {
|
|
1717
1706
|
activator: J(({ props: h }) => [
|
|
1718
|
-
|
|
1719
|
-
|
|
1707
|
+
K("div", Ds, [
|
|
1708
|
+
K("div", {
|
|
1720
1709
|
class: "flex-grow-1",
|
|
1721
|
-
style:
|
|
1710
|
+
style: ie(o.value)
|
|
1722
1711
|
}, [
|
|
1723
|
-
B(d,
|
|
1712
|
+
B(d, zt(h, {
|
|
1724
1713
|
density: "comfortable",
|
|
1725
1714
|
color: r.value,
|
|
1726
1715
|
block: "",
|
|
1727
1716
|
disabled: i.value
|
|
1728
1717
|
}), {
|
|
1729
1718
|
default: J(() => [
|
|
1730
|
-
st(
|
|
1719
|
+
st(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
|
|
1731
1720
|
]),
|
|
1732
1721
|
_: 2
|
|
1733
1722
|
}, 1040, ["color", "disabled"])
|
|
1734
1723
|
], 4),
|
|
1735
|
-
u.hasDelete ? (S(), R(
|
|
1724
|
+
u.hasDelete ? (S(), R(f, {
|
|
1736
1725
|
key: 0,
|
|
1737
1726
|
class: "mx-2",
|
|
1738
1727
|
icon: E(ye),
|
|
1739
|
-
onClick: a[0] || (a[0] =
|
|
1728
|
+
onClick: a[0] || (a[0] = z((M) => l("delete"), ["stop"]))
|
|
1740
1729
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1741
1730
|
])
|
|
1742
1731
|
]),
|
|
@@ -1782,7 +1771,7 @@ function Es(e) {
|
|
|
1782
1771
|
readonly: r.readonly
|
|
1783
1772
|
}) };
|
|
1784
1773
|
}
|
|
1785
|
-
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, ks = /* @__PURE__ */
|
|
1774
|
+
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, ks = /* @__PURE__ */ q({
|
|
1786
1775
|
__name: "multiTypes",
|
|
1787
1776
|
props: /* @__PURE__ */ X({
|
|
1788
1777
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1793,33 +1782,33 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1793
1782
|
}),
|
|
1794
1783
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1795
1784
|
setup(e, { emit: t }) {
|
|
1796
|
-
const { t: n } =
|
|
1785
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = k(0), i = G(() => {
|
|
1797
1786
|
const d = [];
|
|
1798
|
-
return e.types.forEach(({ name:
|
|
1787
|
+
return e.types.forEach(({ name: f }, g) => {
|
|
1799
1788
|
d.push({
|
|
1800
|
-
title: n(
|
|
1789
|
+
title: n(f),
|
|
1801
1790
|
value: g
|
|
1802
1791
|
});
|
|
1803
1792
|
}), d;
|
|
1804
1793
|
});
|
|
1805
1794
|
mt(() => {
|
|
1806
|
-
e.types.some((d,
|
|
1795
|
+
e.types.some((d, f) => d.validator(r.value) ? (o.value = f, !0) : !1);
|
|
1807
1796
|
});
|
|
1808
|
-
const s =
|
|
1797
|
+
const s = G(() => e.types[o.value]), u = () => {
|
|
1809
1798
|
r.value = s.value.default;
|
|
1810
1799
|
}, a = k(0);
|
|
1811
1800
|
return mt(() => {
|
|
1812
1801
|
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
|
|
1813
1802
|
}), ke(a, (d) => {
|
|
1814
1803
|
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1815
|
-
}), (d,
|
|
1816
|
-
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M =
|
|
1817
|
-
return S(),
|
|
1818
|
-
|
|
1819
|
-
|
|
1804
|
+
}), (d, f) => {
|
|
1805
|
+
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = ae("ripple");
|
|
1806
|
+
return S(), F("div", Ns, [
|
|
1807
|
+
K("div", Bs, [
|
|
1808
|
+
re(B(g, {
|
|
1820
1809
|
modelValue: o.value,
|
|
1821
1810
|
"onUpdate:modelValue": [
|
|
1822
|
-
|
|
1811
|
+
f[0] || (f[0] = (b) => o.value = b),
|
|
1823
1812
|
u
|
|
1824
1813
|
],
|
|
1825
1814
|
density: "compact",
|
|
@@ -1834,10 +1823,10 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1834
1823
|
{ stop: !0 }
|
|
1835
1824
|
]
|
|
1836
1825
|
]),
|
|
1837
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ?
|
|
1826
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), R(y, {
|
|
1838
1827
|
key: 0,
|
|
1839
1828
|
modelValue: a.value,
|
|
1840
|
-
"onUpdate:modelValue":
|
|
1829
|
+
"onUpdate:modelValue": f[1] || (f[1] = (b) => a.value = b),
|
|
1841
1830
|
density: "compact",
|
|
1842
1831
|
"control-variant": "stacked",
|
|
1843
1832
|
precision: s.value.precision,
|
|
@@ -1859,7 +1848,7 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1859
1848
|
key: 0,
|
|
1860
1849
|
class: "mx-2",
|
|
1861
1850
|
icon: E(ye),
|
|
1862
|
-
onClick:
|
|
1851
|
+
onClick: f[2] || (f[2] = z((b) => l("delete"), ["stop"]))
|
|
1863
1852
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1864
1853
|
]);
|
|
1865
1854
|
};
|
|
@@ -1893,7 +1882,7 @@ function Rs(e) {
|
|
|
1893
1882
|
types: r.types
|
|
1894
1883
|
}) };
|
|
1895
1884
|
}
|
|
1896
|
-
const Fs = /* @__PURE__ */
|
|
1885
|
+
const Fs = /* @__PURE__ */ q({
|
|
1897
1886
|
__name: "index",
|
|
1898
1887
|
props: {
|
|
1899
1888
|
unique: {},
|
|
@@ -1902,14 +1891,14 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1902
1891
|
},
|
|
1903
1892
|
emits: ["change"],
|
|
1904
1893
|
setup(e, { emit: t }) {
|
|
1905
|
-
const { t: n } =
|
|
1906
|
-
Ft(d, l.config, l.object), o("change", v,
|
|
1894
|
+
const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i = k("20px"), s = k("56px"), u = k("200px"), a = Ln({}), d = k({}), f = (v, c) => {
|
|
1895
|
+
Ft(d, l.config, l.object), o("change", v, c);
|
|
1907
1896
|
};
|
|
1908
1897
|
ke(
|
|
1909
1898
|
[() => l.config, () => l.object],
|
|
1910
1899
|
() => {
|
|
1911
|
-
Ft(d, l.config, l.object, (v,
|
|
1912
|
-
o("change", v,
|
|
1900
|
+
Ft(d, l.config, l.object, (v, c) => {
|
|
1901
|
+
o("change", v, c);
|
|
1913
1902
|
});
|
|
1914
1903
|
},
|
|
1915
1904
|
{ immediate: !0 }
|
|
@@ -1927,13 +1916,13 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1927
1916
|
() => {
|
|
1928
1917
|
y.value = l.object;
|
|
1929
1918
|
}
|
|
1930
|
-
), es(d), ns(
|
|
1919
|
+
), es(d), ns(f);
|
|
1931
1920
|
const h = k([]);
|
|
1932
1921
|
os(h);
|
|
1933
1922
|
const M = () => {
|
|
1934
|
-
const { compGroups: v, comps:
|
|
1923
|
+
const { compGroups: v, comps: c } = Rn.app.activeApp, m = [];
|
|
1935
1924
|
v.forEach(({ id: p, name: $, position: C }) => {
|
|
1936
|
-
const L = h.value.find((
|
|
1925
|
+
const L = h.value.find((Q) => Q.id === p);
|
|
1937
1926
|
m.push({
|
|
1938
1927
|
id: p,
|
|
1939
1928
|
type: 0,
|
|
@@ -1941,7 +1930,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1941
1930
|
position: C,
|
|
1942
1931
|
collapse: (L == null ? void 0 : L.collapse) ?? !0
|
|
1943
1932
|
});
|
|
1944
|
-
}),
|
|
1933
|
+
}), c.forEach(({ id: p, groupid: $, name: C, position: L }) => {
|
|
1945
1934
|
m.push({ id: p, type: 1, name: C, position: L, group: $ });
|
|
1946
1935
|
}), Fi(m, !0), h.value = m;
|
|
1947
1936
|
};
|
|
@@ -1958,26 +1947,26 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1958
1947
|
}), jn(() => {
|
|
1959
1948
|
w();
|
|
1960
1949
|
});
|
|
1961
|
-
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(
|
|
1950
|
+
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(f), { renderUiStrInput: V } = ps(f), { renderUiNumInput: W } = gs(f), { renderUiSwitch: We } = _s(f), { renderUiSelect: _n } = Ts(f), { renderUiColorPicker: bn } = Es(f), { renderUiMultiTypes: $n } = Rs(f), { renderUiCompSelect: Tn } = Ls(f), Le = (v, c, m, p, $, C) => (v = sn(v), $ !== void 0 ? (v.push($), C && v.push(c.key)) : v.push(c.key), c.ui ? c.array && $ === void 0 ? An(v, c, m, p, $, C) : Cn(v, c, m, $, C) : c.array ? Sn(v, c, m, p, $, C) : wn(
|
|
1962
1951
|
v,
|
|
1963
|
-
|
|
1952
|
+
c,
|
|
1964
1953
|
m,
|
|
1965
1954
|
p,
|
|
1966
1955
|
$,
|
|
1967
1956
|
C
|
|
1968
|
-
)), Sn = (v,
|
|
1969
|
-
if (
|
|
1957
|
+
)), Sn = (v, c, m, p, $, C) => {
|
|
1958
|
+
if (c.ui)
|
|
1970
1959
|
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
1971
|
-
if (!
|
|
1960
|
+
if (!c.array)
|
|
1972
1961
|
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
1973
1962
|
if (!p)
|
|
1974
1963
|
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
1975
1964
|
let L;
|
|
1976
|
-
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(
|
|
1977
|
-
let
|
|
1978
|
-
p.collapse && be(d.value, v) && (
|
|
1965
|
+
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(c), f(v, m[c.key])), L = m[$]) : (m[c.key] instanceof Array || (m[c.key] = N(c), f(v, m[c.key])), L = m[c.key]);
|
|
1966
|
+
let Q = n(c.name);
|
|
1967
|
+
p.collapse && be(d.value, v) && (Q += " *");
|
|
1979
1968
|
const Se = _(Be, {
|
|
1980
|
-
title:
|
|
1969
|
+
title: Q,
|
|
1981
1970
|
collapse: p.collapse,
|
|
1982
1971
|
hasCreate: !0,
|
|
1983
1972
|
onCollapse: (T) => {
|
|
@@ -1987,9 +1976,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1987
1976
|
_e.emit("propTreeMenu", { x: T, y: j, keys: v });
|
|
1988
1977
|
},
|
|
1989
1978
|
onCreate: () => {
|
|
1990
|
-
L.push({}),
|
|
1979
|
+
L.push({}), f(v, L);
|
|
1991
1980
|
}
|
|
1992
|
-
}),
|
|
1981
|
+
}), H = _(
|
|
1993
1982
|
"div",
|
|
1994
1983
|
{
|
|
1995
1984
|
style: {
|
|
@@ -2015,22 +2004,22 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2015
2004
|
collapse: p.children[j].collapse,
|
|
2016
2005
|
hasDelete: !0,
|
|
2017
2006
|
index: j,
|
|
2018
|
-
onCollapse: (
|
|
2007
|
+
onCollapse: (ee) => {
|
|
2019
2008
|
if (!tt(p.children)) {
|
|
2020
2009
|
console.assert(!1);
|
|
2021
2010
|
return;
|
|
2022
2011
|
}
|
|
2023
|
-
p.children[j].collapse =
|
|
2012
|
+
p.children[j].collapse = ee;
|
|
2024
2013
|
},
|
|
2025
|
-
onMenu: (
|
|
2026
|
-
_e.emit("propTreeMenu", { x:
|
|
2014
|
+
onMenu: (ee, fe) => {
|
|
2015
|
+
_e.emit("propTreeMenu", { x: ee, y: fe, keys: De });
|
|
2027
2016
|
},
|
|
2028
|
-
onDelete: (
|
|
2017
|
+
onDelete: (ee) => {
|
|
2029
2018
|
if (!tt(p.children)) {
|
|
2030
2019
|
console.assert(!1);
|
|
2031
2020
|
return;
|
|
2032
2021
|
}
|
|
2033
|
-
p.children.splice(
|
|
2022
|
+
p.children.splice(ee, 1), L.splice(ee, 1), f(v, L);
|
|
2034
2023
|
}
|
|
2035
2024
|
});
|
|
2036
2025
|
T.push(On);
|
|
@@ -2042,8 +2031,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2042
2031
|
}
|
|
2043
2032
|
},
|
|
2044
2033
|
(() => {
|
|
2045
|
-
const
|
|
2046
|
-
return
|
|
2034
|
+
const ee = [];
|
|
2035
|
+
return c.children.forEach((fe) => {
|
|
2047
2036
|
if (!Rt(je.children)) {
|
|
2048
2037
|
console.assert(!1);
|
|
2049
2038
|
return;
|
|
@@ -2060,8 +2049,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2060
2049
|
j,
|
|
2061
2050
|
!0
|
|
2062
2051
|
);
|
|
2063
|
-
|
|
2064
|
-
}),
|
|
2052
|
+
ee.push(Mn);
|
|
2053
|
+
}), ee;
|
|
2065
2054
|
})()
|
|
2066
2055
|
);
|
|
2067
2056
|
p.children[j].collapse || T.push(xn);
|
|
@@ -2078,30 +2067,30 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2078
2067
|
},
|
|
2079
2068
|
(() => {
|
|
2080
2069
|
const T = [];
|
|
2081
|
-
return T.push(Se), p.collapse || T.push(
|
|
2070
|
+
return T.push(Se), p.collapse || T.push(H), T;
|
|
2082
2071
|
})()
|
|
2083
2072
|
);
|
|
2084
|
-
}, wn = (v,
|
|
2085
|
-
if (
|
|
2073
|
+
}, wn = (v, c, m, p, $, C) => {
|
|
2074
|
+
if (c.ui)
|
|
2086
2075
|
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
2087
|
-
if (
|
|
2076
|
+
if (c.array)
|
|
2088
2077
|
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
2089
2078
|
if (!p)
|
|
2090
2079
|
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2091
|
-
let L = n(
|
|
2080
|
+
let L = n(c.name);
|
|
2092
2081
|
p.collapse && be(d.value, v) && (L += " *");
|
|
2093
|
-
const
|
|
2082
|
+
const Q = _(Be, {
|
|
2094
2083
|
title: L,
|
|
2095
2084
|
collapse: p.collapse,
|
|
2096
2085
|
hasDelete: $ !== void 0 && !C,
|
|
2097
|
-
onCollapse: (
|
|
2098
|
-
p.collapse =
|
|
2086
|
+
onCollapse: (H) => {
|
|
2087
|
+
p.collapse = H;
|
|
2099
2088
|
},
|
|
2100
|
-
onMenu: (
|
|
2101
|
-
_e.emit("propTreeMenu", { x:
|
|
2089
|
+
onMenu: (H, T) => {
|
|
2090
|
+
_e.emit("propTreeMenu", { x: H, y: T, keys: v });
|
|
2102
2091
|
},
|
|
2103
2092
|
onDelete: () => {
|
|
2104
|
-
$ === void 0 || C || (m.splice($, 1),
|
|
2093
|
+
$ === void 0 || C || (m.splice($, 1), f(v.slice(0, -1), m));
|
|
2105
2094
|
}
|
|
2106
2095
|
}), Se = _(
|
|
2107
2096
|
"div",
|
|
@@ -2111,8 +2100,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2111
2100
|
}
|
|
2112
2101
|
},
|
|
2113
2102
|
(() => {
|
|
2114
|
-
const
|
|
2115
|
-
return
|
|
2103
|
+
const H = [];
|
|
2104
|
+
return c.children.forEach((T) => {
|
|
2116
2105
|
if (!Rt(p.children)) {
|
|
2117
2106
|
console.assert(!1);
|
|
2118
2107
|
return;
|
|
@@ -2124,11 +2113,11 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2124
2113
|
const j = Le(
|
|
2125
2114
|
v,
|
|
2126
2115
|
T,
|
|
2127
|
-
(typeof m[
|
|
2116
|
+
(typeof m[c.key] != "object" && (m[c.key] = {}, f(v, m[c.key])), m[c.key]),
|
|
2128
2117
|
p.children[T.key]
|
|
2129
2118
|
);
|
|
2130
|
-
|
|
2131
|
-
}),
|
|
2119
|
+
H.push(j);
|
|
2120
|
+
}), H;
|
|
2132
2121
|
})()
|
|
2133
2122
|
);
|
|
2134
2123
|
return _(
|
|
@@ -2139,23 +2128,23 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2139
2128
|
}
|
|
2140
2129
|
},
|
|
2141
2130
|
(() => {
|
|
2142
|
-
const
|
|
2143
|
-
return
|
|
2131
|
+
const H = [];
|
|
2132
|
+
return H.push(Q), p.collapse || H.push(Se), H;
|
|
2144
2133
|
})()
|
|
2145
2134
|
);
|
|
2146
|
-
}, An = (v,
|
|
2147
|
-
if (!
|
|
2135
|
+
}, An = (v, c, m, p, $, C) => {
|
|
2136
|
+
if (!c.ui)
|
|
2148
2137
|
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
2149
|
-
if (!
|
|
2138
|
+
if (!c.array)
|
|
2150
2139
|
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
2151
2140
|
if (!p)
|
|
2152
2141
|
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
2153
2142
|
let L;
|
|
2154
|
-
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(
|
|
2155
|
-
let
|
|
2156
|
-
p.collapse && be(d.value, v) && (
|
|
2143
|
+
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(c), f(v, m[$])), L = m[$]) : (m[c.key] instanceof Array || (m[c.key] = N(c), f(v, m[c.key])), L = m[c.key]);
|
|
2144
|
+
let Q = n(c.name);
|
|
2145
|
+
p.collapse && be(d.value, v) && (Q += " *");
|
|
2157
2146
|
const Se = _(Be, {
|
|
2158
|
-
title:
|
|
2147
|
+
title: Q,
|
|
2159
2148
|
collapse: p.collapse,
|
|
2160
2149
|
hasCreate: !0,
|
|
2161
2150
|
onCollapse: (T) => {
|
|
@@ -2165,9 +2154,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2165
2154
|
_e.emit("propTreeMenu", { x: T, y: j, keys: v });
|
|
2166
2155
|
},
|
|
2167
2156
|
onCreate: () => {
|
|
2168
|
-
L.push(N(
|
|
2157
|
+
L.push(N(c, !0)), f(v, L);
|
|
2169
2158
|
}
|
|
2170
|
-
}),
|
|
2159
|
+
}), H = _(
|
|
2171
2160
|
"div",
|
|
2172
2161
|
{
|
|
2173
2162
|
style: {
|
|
@@ -2177,7 +2166,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2177
2166
|
(() => {
|
|
2178
2167
|
const T = [];
|
|
2179
2168
|
for (let j = 0; j < L.length; j++) {
|
|
2180
|
-
const De = Le(v,
|
|
2169
|
+
const De = Le(v, c, L, void 0, j, !1);
|
|
2181
2170
|
T.push(De);
|
|
2182
2171
|
}
|
|
2183
2172
|
return T;
|
|
@@ -2192,14 +2181,14 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2192
2181
|
},
|
|
2193
2182
|
(() => {
|
|
2194
2183
|
const T = [];
|
|
2195
|
-
return T.push(Se), p.collapse || T.push(
|
|
2184
|
+
return T.push(Se), p.collapse || T.push(H), T;
|
|
2196
2185
|
})()
|
|
2197
2186
|
);
|
|
2198
|
-
}, Cn = (v,
|
|
2199
|
-
if (!
|
|
2187
|
+
}, Cn = (v, c, m, p, $) => {
|
|
2188
|
+
if (!c.ui)
|
|
2200
2189
|
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
2201
2190
|
let C;
|
|
2202
|
-
return
|
|
2191
|
+
return c.ui === "dummy" ? C = A(v, c, m, p, $) : c.ui === "strInput" ? C = V(v, c, m, p, $) : c.ui === "numInput" ? C = W(v, c, m, p, $) : c.ui === "switch" ? C = We(v, c, m, p, $) : c.ui === "select" ? C = _n(v, c, m, p, $) : c.ui === "colorPicker" ? C = bn(v, c, m, p, $) : c.ui === "multiTypes" ? C = $n(v, c, m, p, $) : c.ui === "compSelect" ? C = Tn(v, c, m, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(v, c, C) : _("div");
|
|
2203
2192
|
}, Pn = () => _(
|
|
2204
2193
|
"div",
|
|
2205
2194
|
{
|
|
@@ -2212,20 +2201,20 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2212
2201
|
const v = [];
|
|
2213
2202
|
if (l.unique && l.config.length > 0 && l.object) {
|
|
2214
2203
|
a[l.unique] || (a[l.unique] = {});
|
|
2215
|
-
const
|
|
2204
|
+
const c = a[l.unique];
|
|
2216
2205
|
l.config.forEach((m) => {
|
|
2217
|
-
|
|
2206
|
+
c[m.key] || (c[m.key] = {
|
|
2218
2207
|
collapse: !0,
|
|
2219
2208
|
children: !m.ui && m.array ? [] : {}
|
|
2220
2209
|
});
|
|
2221
|
-
const p = Le([], m, l.object,
|
|
2210
|
+
const p = Le([], m, l.object, c[m.key]);
|
|
2222
2211
|
v.push(p);
|
|
2223
2212
|
});
|
|
2224
2213
|
}
|
|
2225
2214
|
return v;
|
|
2226
2215
|
})()
|
|
2227
2216
|
);
|
|
2228
|
-
return (v,
|
|
2217
|
+
return (v, c) => (S(), F(He, null, [
|
|
2229
2218
|
B(Pn),
|
|
2230
2219
|
B(ls, {
|
|
2231
2220
|
config: l.config,
|