x-prop-tree 0.6.6 → 0.6.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ZProp } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
|
-
export declare const getModelValue: (
|
|
3
|
+
export declare const getModelValue: (keys: (string | number)[], prop: ZProp, object: any, changeEvent: ChangeEvent, arrayIndex?: number, isBranch?: boolean) => any;
|
|
4
4
|
export declare const setModelValue: (keys: (string | number)[], prop: ZProp, object: any, val: unknown, changeEvent: ChangeEvent, arrayIndex?: number, isBranch?: boolean) => void;
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { provide as Me, inject as Ue, defineComponent as z, ref as
|
|
1
|
+
import { provide as Me, inject as Ue, defineComponent as z, ref as k, computed as F, resolveComponent as O, createBlock as R, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as st, toDisplayString as re, resolveDirective as le, withDirectives as Y, withModifiers as K, normalizeStyle as ae, createElementVNode as q, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as zt, withKeys as Vn, mergeProps as Kt, watchEffect as mt, watch as ke, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
2
|
import { useI18n as ie } from "vue-i18n";
|
|
3
3
|
import { useViewStack as at, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
|
|
4
|
-
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as
|
|
5
|
-
import { useDisplay as
|
|
4
|
+
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
|
|
5
|
+
import { useDisplay as kn } from "vuetify";
|
|
6
6
|
import { globalState as Rn } from "x-state-lib";
|
|
7
7
|
var qt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Q = qt || Fn || Function("return this")(), ue = Q.Symbol, It = Object.prototype, Hn = It.hasOwnProperty, Gn = It.toString, we = ue ? ue.toStringTag : void 0;
|
|
8
8
|
function zn(e) {
|
|
@@ -23,7 +23,7 @@ var Xn = "[object Null]", Zn = "[object Undefined]", gt = ue ? ue.toStringTag :
|
|
|
23
23
|
function Ve(e) {
|
|
24
24
|
return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ? zn(e) : In(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function de(e) {
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
29
|
var Pe = Array.isArray;
|
|
@@ -46,7 +46,7 @@ function er(e) {
|
|
|
46
46
|
return !!yt && yt in e;
|
|
47
47
|
}
|
|
48
48
|
var tr = Function.prototype, nr = tr.toString;
|
|
49
|
-
function
|
|
49
|
+
function ve(e) {
|
|
50
50
|
if (e != null) {
|
|
51
51
|
try {
|
|
52
52
|
return nr.call(e);
|
|
@@ -66,16 +66,16 @@ function cr(e) {
|
|
|
66
66
|
if (!qe(e) || er(e))
|
|
67
67
|
return !1;
|
|
68
68
|
var t = Xt(e) ? ur : or;
|
|
69
|
-
return t.test(
|
|
69
|
+
return t.test(ve(e));
|
|
70
70
|
}
|
|
71
71
|
function fr(e, t) {
|
|
72
72
|
return e == null ? void 0 : e[t];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function me(e, t) {
|
|
75
75
|
var n = fr(e, t);
|
|
76
76
|
return cr(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var nt =
|
|
78
|
+
var nt = me(Q, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
@@ -89,7 +89,7 @@ var nt = ve(Q, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
|
89
89
|
};
|
|
90
90
|
}(), _t = function() {
|
|
91
91
|
try {
|
|
92
|
-
var e =
|
|
92
|
+
var e = me(Object, "defineProperty");
|
|
93
93
|
return e({}, "", {}), e;
|
|
94
94
|
} catch {
|
|
95
95
|
}
|
|
@@ -139,21 +139,21 @@ function wr(e, t) {
|
|
|
139
139
|
}
|
|
140
140
|
var Ar = "[object Arguments]";
|
|
141
141
|
function bt(e) {
|
|
142
|
-
return
|
|
142
|
+
return de(e) && Ve(e) == Ar;
|
|
143
143
|
}
|
|
144
144
|
var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable, Or = bt(/* @__PURE__ */ function() {
|
|
145
145
|
return arguments;
|
|
146
146
|
}()) ? bt : function(e) {
|
|
147
|
-
return
|
|
147
|
+
return de(e) && Cr.call(e, "callee") && !Pr.call(e, "callee");
|
|
148
148
|
};
|
|
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 ? Q.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]",
|
|
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 ? Q.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]", zr = "[object WeakMap]", Kr = "[object ArrayBuffer]", qr = "[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[Kr] = x[Dr] = x[qr] = x[jr] = x[Er] = x[Nr] = x[
|
|
154
|
+
x[Vr] = x[Lr] = x[Kr] = x[Dr] = x[qr] = x[jr] = x[Er] = x[Nr] = x[Br] = x[kr] = x[Rr] = x[Fr] = x[Hr] = x[Gr] = x[zr] = !1;
|
|
155
155
|
function no(e) {
|
|
156
|
-
return
|
|
156
|
+
return de(e) && Zt(e.length) && !!x[Ve(e)];
|
|
157
157
|
}
|
|
158
158
|
function ct(e) {
|
|
159
159
|
return function(t) {
|
|
@@ -194,7 +194,7 @@ function co(e) {
|
|
|
194
194
|
function fo(e) {
|
|
195
195
|
return Tr(e) ? io(e) : co(e);
|
|
196
196
|
}
|
|
197
|
-
var Oe =
|
|
197
|
+
var Oe = me(Object, "create");
|
|
198
198
|
function po() {
|
|
199
199
|
this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
|
|
200
200
|
}
|
|
@@ -221,18 +221,18 @@ function So(e, t) {
|
|
|
221
221
|
var n = this.__data__;
|
|
222
222
|
return this.size += this.has(e) ? 0 : 1, n[e] = Oe && t === void 0 ? To : t, this;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function pe(e) {
|
|
225
225
|
var t = -1, n = e == null ? 0 : e.length;
|
|
226
226
|
for (this.clear(); ++t < n; ) {
|
|
227
227
|
var r = e[t];
|
|
228
228
|
this.set(r[0], r[1]);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
pe.prototype.clear = po;
|
|
232
|
+
pe.prototype.delete = vo;
|
|
233
|
+
pe.prototype.get = ho;
|
|
234
|
+
pe.prototype.has = $o;
|
|
235
|
+
pe.prototype.set = So;
|
|
236
236
|
function wo() {
|
|
237
237
|
this.__data__ = [], this.size = 0;
|
|
238
238
|
}
|
|
@@ -273,12 +273,12 @@ se.prototype.delete = Po;
|
|
|
273
273
|
se.prototype.get = Oo;
|
|
274
274
|
se.prototype.has = xo;
|
|
275
275
|
se.prototype.set = Mo;
|
|
276
|
-
var xe =
|
|
276
|
+
var xe = me(Q, "Map");
|
|
277
277
|
function Uo() {
|
|
278
278
|
this.size = 0, this.__data__ = {
|
|
279
|
-
hash: new
|
|
279
|
+
hash: new pe(),
|
|
280
280
|
map: new (xe || se)(),
|
|
281
|
-
string: new
|
|
281
|
+
string: new pe()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
function Vo(e) {
|
|
@@ -303,25 +303,25 @@ function Eo(e, t) {
|
|
|
303
303
|
var n = Xe(this, e), r = n.size;
|
|
304
304
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ge(e) {
|
|
307
307
|
var t = -1, n = e == null ? 0 : e.length;
|
|
308
308
|
for (this.clear(); ++t < n; ) {
|
|
309
309
|
var r = e[t];
|
|
310
310
|
this.set(r[0], r[1]);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
313
|
+
ge.prototype.clear = Uo;
|
|
314
|
+
ge.prototype.delete = Lo;
|
|
315
|
+
ge.prototype.get = Do;
|
|
316
|
+
ge.prototype.has = jo;
|
|
317
|
+
ge.prototype.set = Eo;
|
|
318
318
|
function No(e, t) {
|
|
319
319
|
for (var n = -1, r = t.length, l = e.length; ++n < r; )
|
|
320
320
|
e[l + n] = t[n];
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var Bo = tn(Object.getPrototypeOf, Object);
|
|
324
|
+
function ko() {
|
|
325
325
|
this.__data__ = new se(), this.size = 0;
|
|
326
326
|
}
|
|
327
327
|
function Ro(e) {
|
|
@@ -341,7 +341,7 @@ function zo(e, t) {
|
|
|
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;
|
|
344
|
-
n = this.__data__ = new
|
|
344
|
+
n = this.__data__ = new ge(r);
|
|
345
345
|
}
|
|
346
346
|
return n.set(e, t), this.size = n.size, this;
|
|
347
347
|
}
|
|
@@ -349,7 +349,7 @@ function ne(e) {
|
|
|
349
349
|
var t = this.__data__ = new se(e);
|
|
350
350
|
this.size = t.size;
|
|
351
351
|
}
|
|
352
|
-
ne.prototype.clear =
|
|
352
|
+
ne.prototype.clear = ko;
|
|
353
353
|
ne.prototype.delete = Ro;
|
|
354
354
|
ne.prototype.get = Fo;
|
|
355
355
|
ne.prototype.has = Ho;
|
|
@@ -381,9 +381,9 @@ function Yo(e, t, n) {
|
|
|
381
381
|
function rt(e) {
|
|
382
382
|
return Yo(e, fo, Wo);
|
|
383
383
|
}
|
|
384
|
-
var ot =
|
|
384
|
+
var ot = me(Q, "DataView"), lt = me(Q, "Promise"), it = me(Q, "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
|
-
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ?
|
|
386
|
+
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? ve(n) : "";
|
|
387
387
|
if (r)
|
|
388
388
|
switch (r) {
|
|
389
389
|
case el:
|
|
@@ -461,17 +461,17 @@ function Vl(e, t, n) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ll(e) {
|
|
464
|
-
return typeof e.constructor == "function" && !Jt(e) ? dr(
|
|
464
|
+
return typeof e.constructor == "function" && !Jt(e) ? dr(Bo(e)) : {};
|
|
465
465
|
}
|
|
466
466
|
var Dl = "[object Map]";
|
|
467
467
|
function jl(e) {
|
|
468
|
-
return
|
|
468
|
+
return de(e) && Z(e) == Dl;
|
|
469
469
|
}
|
|
470
470
|
var Dt = $e && $e.isMap, El = Dt ? ct(Dt) : jl, Nl = "[object Set]";
|
|
471
|
-
function
|
|
472
|
-
return
|
|
471
|
+
function Bl(e) {
|
|
472
|
+
return de(e) && Z(e) == Nl;
|
|
473
473
|
}
|
|
474
|
-
var jt = $e && $e.isSet,
|
|
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]", zl = "[object GeneratorFunction]", Kl = "[object Map]", ql = "[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
475
|
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[Kl] = P[ql] = 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) {
|
|
@@ -499,7 +499,7 @@ function Re(e, t, n, r, l, o) {
|
|
|
499
499
|
var d = o.get(e);
|
|
500
500
|
if (d)
|
|
501
501
|
return d;
|
|
502
|
-
o.set(e, i),
|
|
502
|
+
o.set(e, i), kl(e) ? e.forEach(function(y) {
|
|
503
503
|
i.add(Re(y, t, n, y, e, o));
|
|
504
504
|
}) : El(e) && e.forEach(function(y, h) {
|
|
505
505
|
i.set(h, Re(y, t, n, h, e, o));
|
|
@@ -522,7 +522,7 @@ function pi(e) {
|
|
|
522
522
|
}
|
|
523
523
|
function Ke(e) {
|
|
524
524
|
var t = -1, n = e == null ? 0 : e.length;
|
|
525
|
-
for (this.__data__ = new
|
|
525
|
+
for (this.__data__ = new ge(); ++t < n; )
|
|
526
526
|
this.add(e[t]);
|
|
527
527
|
}
|
|
528
528
|
Ke.prototype.add = Ke.prototype.push = di;
|
|
@@ -650,9 +650,9 @@ function Ni(e, t, n, r, l, o) {
|
|
|
650
650
|
}
|
|
651
651
|
return o.delete(e), o.delete(t), M;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", ki = Object.prototype, kt = ki.hasOwnProperty;
|
|
654
654
|
function Ri(e, t, n, r, l, o) {
|
|
655
|
-
var i = Pe(e), s = Pe(t), u = i ?
|
|
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
657
|
var d = u == Ee, c = a == Ee, g = u == a;
|
|
658
658
|
if (g && Ge(e)) {
|
|
@@ -662,8 +662,8 @@ function Ri(e, t, n, r, l, o) {
|
|
|
662
662
|
}
|
|
663
663
|
if (g && !d)
|
|
664
664
|
return o || (o = new ne()), i || en(e) ? an(e, t, n, r, l, o) : Li(e, t, u, n, r, l, o);
|
|
665
|
-
if (!(n &
|
|
666
|
-
var y = d &&
|
|
665
|
+
if (!(n & Bi)) {
|
|
666
|
+
var y = d && kt.call(e, "__wrapped__"), h = c && kt.call(t, "__wrapped__");
|
|
667
667
|
if (y || h) {
|
|
668
668
|
var M = y ? e.value() : e, b = h ? t.value() : t;
|
|
669
669
|
return o || (o = new ne()), l(M, b, n, r, o);
|
|
@@ -672,7 +672,7 @@ function Ri(e, t, n, r, l, o) {
|
|
|
672
672
|
return g ? (o || (o = new ne()), Ni(e, t, n, r, l, o)) : !1;
|
|
673
673
|
}
|
|
674
674
|
function un(e, t, n, r, l) {
|
|
675
|
-
return e === t ? !0 : e == null || t == null || !
|
|
675
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Ri(e, t, n, r, un, l);
|
|
676
676
|
}
|
|
677
677
|
function Ze(e, t) {
|
|
678
678
|
return un(e, t);
|
|
@@ -902,7 +902,7 @@ function gn() {
|
|
|
902
902
|
const ls = /* @__PURE__ */ z({
|
|
903
903
|
__name: "menu",
|
|
904
904
|
setup(e) {
|
|
905
|
-
const { t } = ie(), n = Wi(), r = Qi(), l = ts(), o = rs(), i =
|
|
905
|
+
const { t } = ie(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = k(0), s = k(0), u = k([]), a = F(() => [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;
|
|
@@ -998,7 +998,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
998
998
|
scrim: "transparent"
|
|
999
999
|
}, {
|
|
1000
1000
|
default: J(() => [
|
|
1001
|
-
|
|
1001
|
+
B(A, null, {
|
|
1002
1002
|
default: J(() => [
|
|
1003
1003
|
(S(!0), H(He, null, Ht(y.value, (W, We) => (S(), R(U, {
|
|
1004
1004
|
key: We,
|
|
@@ -1006,7 +1006,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
1006
1006
|
onClick: W.func
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: J(() => [
|
|
1009
|
-
|
|
1009
|
+
B(w, null, {
|
|
1010
1010
|
default: J(() => [
|
|
1011
1011
|
st(re(W.title), 1)
|
|
1012
1012
|
]),
|
|
@@ -1024,8 +1024,8 @@ const ls = /* @__PURE__ */ z({
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
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",
|
|
1028
|
-
const
|
|
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__ */ z({
|
|
1029
1029
|
__name: "title",
|
|
1030
1030
|
props: {
|
|
1031
1031
|
title: {},
|
|
@@ -1036,7 +1036,7 @@ const ke = /* @__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 =
|
|
1039
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = F(() => ({
|
|
1040
1040
|
background: o.value ? r.value : n.value,
|
|
1041
1041
|
height: "36px",
|
|
1042
1042
|
marginBottom: "1px",
|
|
@@ -1056,12 +1056,12 @@ const ke = /* @__PURE__ */ z({
|
|
|
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
|
-
|
|
1059
|
+
B(c, {
|
|
1060
1060
|
class: "mr-1",
|
|
1061
1061
|
icon: a.collapse ? E(hn) : E(yn)
|
|
1062
1062
|
}, null, 8, ["icon"]),
|
|
1063
1063
|
q("span", null, re(a.title), 1),
|
|
1064
|
-
|
|
1064
|
+
B(g),
|
|
1065
1065
|
a.hasCreate ? (S(), R(c, {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "mx-3",
|
|
@@ -1071,7 +1071,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
1071
1071
|
a.hasDelete ? (S(), R(c, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
class: "mx-3",
|
|
1074
|
-
icon: E(
|
|
1074
|
+
icon: E(ye),
|
|
1075
1075
|
onClick: d[1] || (d[1] = K((h) => l("delete", a.index), ["stop"]))
|
|
1076
1076
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1077
1077
|
], 36)), [
|
|
@@ -1086,7 +1086,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["menu"],
|
|
1088
1088
|
setup(e, { emit: t }) {
|
|
1089
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1089
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = F(() => ({
|
|
1090
1090
|
background: o.value ? r.value : n.value,
|
|
1091
1091
|
minHeight: e.minHeight,
|
|
1092
1092
|
paddingRight: "4px",
|
|
@@ -1130,19 +1130,30 @@ function us(e, t, n) {
|
|
|
1130
1130
|
);
|
|
1131
1131
|
} };
|
|
1132
1132
|
}
|
|
1133
|
+
const ce = (e, t, n, r, l, o) => {
|
|
1134
|
+
if (l !== void 0 && !o) {
|
|
1135
|
+
if (n[l] === void 0) {
|
|
1136
|
+
const i = N(t, !0);
|
|
1137
|
+
i !== void 0 && (n[l] = i, r(e, n[l]));
|
|
1138
|
+
}
|
|
1139
|
+
return n[l];
|
|
1140
|
+
} else {
|
|
1141
|
+
if (n[t.key] === void 0) {
|
|
1142
|
+
const i = N(t);
|
|
1143
|
+
i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
|
|
1144
|
+
}
|
|
1145
|
+
return n[t.key];
|
|
1146
|
+
}
|
|
1147
|
+
}, he = (e, t, n, r, l, o, i) => {
|
|
1148
|
+
o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1149
|
+
};
|
|
1133
1150
|
function cs(e) {
|
|
1134
1151
|
return { renderUiDummy: (n, r, l, o, i) => {
|
|
1135
1152
|
if (r.ui !== "dummy") {
|
|
1136
1153
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
1137
1154
|
return;
|
|
1138
1155
|
}
|
|
1139
|
-
|
|
1140
|
-
const s = N(r, !0);
|
|
1141
|
-
typeof l[o] != typeof s && (l[o] = s, e(n, l[o]));
|
|
1142
|
-
} else {
|
|
1143
|
-
const s = N(r);
|
|
1144
|
-
typeof l[r.key] != typeof s && (l[r.key] = s, e(n, l[r.key]));
|
|
1145
|
-
}
|
|
1156
|
+
ce(n, r, l, e, o, i);
|
|
1146
1157
|
} };
|
|
1147
1158
|
}
|
|
1148
1159
|
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ z({
|
|
@@ -1160,7 +1171,7 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
|
|
|
1160
1171
|
return (l, o) => {
|
|
1161
1172
|
const i = O("v-text-field"), s = O("v-icon"), u = le("ripple");
|
|
1162
1173
|
return S(), H("div", fs, [
|
|
1163
|
-
Y(
|
|
1174
|
+
Y(B(i, {
|
|
1164
1175
|
modelValue: n.value,
|
|
1165
1176
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1166
1177
|
density: "compact",
|
|
@@ -1178,23 +1189,16 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
|
|
|
1178
1189
|
l.hasDelete ? (S(), R(s, {
|
|
1179
1190
|
key: 0,
|
|
1180
1191
|
class: "mx-2",
|
|
1181
|
-
icon: E(
|
|
1192
|
+
icon: E(ye),
|
|
1182
1193
|
onClick: o[1] || (o[1] = K((a) => r("delete"), ["stop"]))
|
|
1183
1194
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1184
1195
|
]);
|
|
1185
1196
|
};
|
|
1186
1197
|
}
|
|
1187
|
-
})
|
|
1188
|
-
const s = N(t, !0);
|
|
1189
|
-
if (typeof r != typeof s) {
|
|
1190
|
-
console.assert(!1);
|
|
1191
|
-
return;
|
|
1192
|
-
}
|
|
1193
|
-
o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1194
|
-
};
|
|
1198
|
+
});
|
|
1195
1199
|
function ps(e) {
|
|
1196
1200
|
return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(ds, {
|
|
1197
|
-
modelValue: r.static ? r.value :
|
|
1201
|
+
modelValue: r.static ? r.value : ce(
|
|
1198
1202
|
n,
|
|
1199
1203
|
r,
|
|
1200
1204
|
l,
|
|
@@ -1240,7 +1244,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1240
1244
|
return (l, o) => {
|
|
1241
1245
|
const i = O("v-number-input"), s = O("v-icon"), u = le("ripple");
|
|
1242
1246
|
return S(), H("div", vs, [
|
|
1243
|
-
Y(
|
|
1247
|
+
Y(B(i, {
|
|
1244
1248
|
modelValue: n.value,
|
|
1245
1249
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1246
1250
|
density: "compact",
|
|
@@ -1263,7 +1267,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1263
1267
|
l.hasDelete ? (S(), R(s, {
|
|
1264
1268
|
key: 0,
|
|
1265
1269
|
class: "mx-2",
|
|
1266
|
-
icon: E(
|
|
1270
|
+
icon: E(ye),
|
|
1267
1271
|
onClick: o[1] || (o[1] = K((a) => r("delete"), ["stop"]))
|
|
1268
1272
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1269
1273
|
]);
|
|
@@ -1272,7 +1276,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1272
1276
|
});
|
|
1273
1277
|
function gs(e) {
|
|
1274
1278
|
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(ms, {
|
|
1275
|
-
modelValue:
|
|
1279
|
+
modelValue: ce(
|
|
1276
1280
|
n,
|
|
1277
1281
|
r,
|
|
1278
1282
|
l,
|
|
@@ -1317,7 +1321,7 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
|
|
|
1317
1321
|
return (i, s) => {
|
|
1318
1322
|
const u = O("v-select"), a = O("v-icon"), d = le("ripple");
|
|
1319
1323
|
return S(), H("div", ys, [
|
|
1320
|
-
Y(
|
|
1324
|
+
Y(B(u, {
|
|
1321
1325
|
modelValue: r.value,
|
|
1322
1326
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
1323
1327
|
density: "compact",
|
|
@@ -1336,7 +1340,7 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
|
|
|
1336
1340
|
i.hasDelete ? (S(), R(a, {
|
|
1337
1341
|
key: 0,
|
|
1338
1342
|
class: "mx-2",
|
|
1339
|
-
icon: E(
|
|
1343
|
+
icon: E(ye),
|
|
1340
1344
|
onClick: s[1] || (s[1] = K((c) => l("delete"), ["stop"]))
|
|
1341
1345
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1342
1346
|
]);
|
|
@@ -1345,7 +1349,7 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
|
|
|
1345
1349
|
});
|
|
1346
1350
|
function _s(e) {
|
|
1347
1351
|
return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(hs, {
|
|
1348
|
-
modelValue:
|
|
1352
|
+
modelValue: ce(
|
|
1349
1353
|
n,
|
|
1350
1354
|
r,
|
|
1351
1355
|
l,
|
|
@@ -1387,7 +1391,7 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1387
1391
|
return (l, o) => {
|
|
1388
1392
|
const i = O("v-select"), s = O("v-icon"), u = le("ripple");
|
|
1389
1393
|
return S(), H("div", bs, [
|
|
1390
|
-
Y(
|
|
1394
|
+
Y(B(i, {
|
|
1391
1395
|
modelValue: n.value,
|
|
1392
1396
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1393
1397
|
density: "compact",
|
|
@@ -1406,7 +1410,7 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1406
1410
|
l.hasDelete ? (S(), R(s, {
|
|
1407
1411
|
key: 0,
|
|
1408
1412
|
class: "mx-2",
|
|
1409
|
-
icon: E(
|
|
1413
|
+
icon: E(ye),
|
|
1410
1414
|
onClick: o[1] || (o[1] = K((a) => r("delete"), ["stop"]))
|
|
1411
1415
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1412
1416
|
]);
|
|
@@ -1416,7 +1420,7 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1416
1420
|
function Ts(e) {
|
|
1417
1421
|
const { t } = ie();
|
|
1418
1422
|
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _($s, {
|
|
1419
|
-
modelValue:
|
|
1423
|
+
modelValue: ce(
|
|
1420
1424
|
r,
|
|
1421
1425
|
l,
|
|
1422
1426
|
o,
|
|
@@ -1461,7 +1465,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1461
1465
|
},
|
|
1462
1466
|
emits: ["x-click"],
|
|
1463
1467
|
setup(e, { emit: t }) {
|
|
1464
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1468
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = F(() => ({
|
|
1465
1469
|
background: i.value ? r.value : n.value,
|
|
1466
1470
|
height: "30px",
|
|
1467
1471
|
marginBottom: "1px",
|
|
@@ -1476,7 +1480,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1476
1480
|
onMouseover: a[1] || (a[1] = (g) => i.value = !0),
|
|
1477
1481
|
onMouseout: a[2] || (a[2] = (g) => i.value = !1)
|
|
1478
1482
|
}, [
|
|
1479
|
-
|
|
1483
|
+
B(d, {
|
|
1480
1484
|
icon: l.collapse ? E(hn) : E(yn),
|
|
1481
1485
|
size: "small"
|
|
1482
1486
|
}, null, 8, ["icon"]),
|
|
@@ -1495,7 +1499,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1495
1499
|
},
|
|
1496
1500
|
emits: ["x-click"],
|
|
1497
1501
|
setup(e, { emit: t }) {
|
|
1498
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1502
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = F(() => ({
|
|
1499
1503
|
background: i.value ? r.value : n.value,
|
|
1500
1504
|
height: "48px",
|
|
1501
1505
|
marginBottom: "1px",
|
|
@@ -1564,7 +1568,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1564
1568
|
},
|
|
1565
1569
|
emits: ["update:modelValue"],
|
|
1566
1570
|
setup(e) {
|
|
1567
|
-
const { t } = ie(), n =
|
|
1571
|
+
const { t } = ie(), n = kn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = F(() => {
|
|
1568
1572
|
let g = "100%";
|
|
1569
1573
|
return n.mdAndUp.value && (g = "400px"), {
|
|
1570
1574
|
background: l.value,
|
|
@@ -1599,7 +1603,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1599
1603
|
onKeydown: y[6] || (y[6] = Vn(K((w) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1600
1604
|
}, {
|
|
1601
1605
|
activator: J(({ props: w }) => [
|
|
1602
|
-
|
|
1606
|
+
B(h, Kt(w, {
|
|
1603
1607
|
density: "comfortable",
|
|
1604
1608
|
block: ""
|
|
1605
1609
|
}), {
|
|
@@ -1624,13 +1628,13 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1624
1628
|
color: "transparent",
|
|
1625
1629
|
height: 24
|
|
1626
1630
|
})) : I("", !0),
|
|
1627
|
-
|
|
1631
|
+
B(M, {
|
|
1628
1632
|
class: "d-flex align-center px-3",
|
|
1629
1633
|
color: "transparent",
|
|
1630
1634
|
height: 48
|
|
1631
1635
|
}, {
|
|
1632
1636
|
default: J(() => [
|
|
1633
|
-
|
|
1637
|
+
B(b, {
|
|
1634
1638
|
icon: E(is),
|
|
1635
1639
|
onClick: y[0] || (y[0] = (w) => c.value = !1)
|
|
1636
1640
|
}, null, 8, ["icon"]),
|
|
@@ -1642,7 +1646,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1642
1646
|
class: "overflow-y-auto",
|
|
1643
1647
|
style: ae(u.value)
|
|
1644
1648
|
}, [
|
|
1645
|
-
|
|
1649
|
+
B(Ms, {
|
|
1646
1650
|
modelValue: o.value,
|
|
1647
1651
|
"onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
|
|
1648
1652
|
open: E(c),
|
|
@@ -1662,7 +1666,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1662
1666
|
});
|
|
1663
1667
|
function Ls(e) {
|
|
1664
1668
|
return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Vs, {
|
|
1665
|
-
modelValue:
|
|
1669
|
+
modelValue: ce(
|
|
1666
1670
|
n,
|
|
1667
1671
|
r,
|
|
1668
1672
|
l,
|
|
@@ -1716,7 +1720,7 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1716
1720
|
class: "flex-grow-1",
|
|
1717
1721
|
style: ae(o.value)
|
|
1718
1722
|
}, [
|
|
1719
|
-
|
|
1723
|
+
B(d, Kt(h, {
|
|
1720
1724
|
density: "comfortable",
|
|
1721
1725
|
color: r.value,
|
|
1722
1726
|
block: "",
|
|
@@ -1731,13 +1735,13 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1731
1735
|
u.hasDelete ? (S(), R(c, {
|
|
1732
1736
|
key: 0,
|
|
1733
1737
|
class: "mx-2",
|
|
1734
|
-
icon: E(
|
|
1738
|
+
icon: E(ye),
|
|
1735
1739
|
onClick: a[0] || (a[0] = K((M) => l("delete"), ["stop"]))
|
|
1736
1740
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1737
1741
|
])
|
|
1738
1742
|
]),
|
|
1739
1743
|
default: J(() => [
|
|
1740
|
-
|
|
1744
|
+
B(g, {
|
|
1741
1745
|
modelValue: r.value,
|
|
1742
1746
|
"onUpdate:modelValue": a[1] || (a[1] = (h) => r.value = h),
|
|
1743
1747
|
mode: "hexa",
|
|
@@ -1752,7 +1756,7 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1752
1756
|
});
|
|
1753
1757
|
function Es(e) {
|
|
1754
1758
|
return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(js, {
|
|
1755
|
-
modelValue:
|
|
1759
|
+
modelValue: ce(
|
|
1756
1760
|
n,
|
|
1757
1761
|
r,
|
|
1758
1762
|
l,
|
|
@@ -1778,7 +1782,7 @@ function Es(e) {
|
|
|
1778
1782
|
readonly: r.readonly
|
|
1779
1783
|
}) };
|
|
1780
1784
|
}
|
|
1781
|
-
const Ns = { class: "d-flex justify-space-between align-center my-2" },
|
|
1785
|
+
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, ks = /* @__PURE__ */ z({
|
|
1782
1786
|
__name: "multiTypes",
|
|
1783
1787
|
props: /* @__PURE__ */ X({
|
|
1784
1788
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1789,7 +1793,7 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1789
1793
|
}),
|
|
1790
1794
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1791
1795
|
setup(e, { emit: t }) {
|
|
1792
|
-
const { t: n } = ie(), r = oe(e, "modelValue"), l = t, o =
|
|
1796
|
+
const { t: n } = ie(), r = oe(e, "modelValue"), l = t, o = k(0), i = F(() => {
|
|
1793
1797
|
const d = [];
|
|
1794
1798
|
return e.types.forEach(({ name: c }, g) => {
|
|
1795
1799
|
d.push({
|
|
@@ -1803,16 +1807,16 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1803
1807
|
});
|
|
1804
1808
|
const s = F(() => e.types[o.value]), u = () => {
|
|
1805
1809
|
r.value = s.value.default;
|
|
1806
|
-
}, a =
|
|
1810
|
+
}, a = k(0);
|
|
1807
1811
|
return mt(() => {
|
|
1808
|
-
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value =
|
|
1809
|
-
}),
|
|
1812
|
+
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
|
|
1813
|
+
}), ke(a, (d) => {
|
|
1810
1814
|
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1811
1815
|
}), (d, c) => {
|
|
1812
1816
|
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = le("ripple");
|
|
1813
1817
|
return S(), H("div", Ns, [
|
|
1814
|
-
q("div",
|
|
1815
|
-
Y(
|
|
1818
|
+
q("div", Bs, [
|
|
1819
|
+
Y(B(g, {
|
|
1816
1820
|
modelValue: o.value,
|
|
1817
1821
|
"onUpdate:modelValue": [
|
|
1818
1822
|
c[0] || (c[0] = (b) => o.value = b),
|
|
@@ -1854,7 +1858,7 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1854
1858
|
d.hasDelete ? (S(), R(h, {
|
|
1855
1859
|
key: 0,
|
|
1856
1860
|
class: "mx-2",
|
|
1857
|
-
icon: E(
|
|
1861
|
+
icon: E(ye),
|
|
1858
1862
|
onClick: c[2] || (c[2] = K((b) => l("delete"), ["stop"]))
|
|
1859
1863
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1860
1864
|
]);
|
|
@@ -1862,8 +1866,8 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1862
1866
|
}
|
|
1863
1867
|
});
|
|
1864
1868
|
function Rs(e) {
|
|
1865
|
-
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(
|
|
1866
|
-
modelValue:
|
|
1869
|
+
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(ks, {
|
|
1870
|
+
modelValue: ce(
|
|
1867
1871
|
n,
|
|
1868
1872
|
r,
|
|
1869
1873
|
l,
|
|
@@ -1898,10 +1902,10 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1898
1902
|
},
|
|
1899
1903
|
emits: ["change"],
|
|
1900
1904
|
setup(e, { emit: t }) {
|
|
1901
|
-
const { t: n } = ie(), { backgroundColor1: r } = Te(), l = e, o = t, i =
|
|
1905
|
+
const { t: n } = ie(), { backgroundColor1: r } = Te(), l = e, o = t, i = k("20px"), s = k("56px"), u = k("200px"), a = Ln({}), d = k({}), c = (v, f) => {
|
|
1902
1906
|
Ft(d, l.config, l.object), o("change", v, f);
|
|
1903
1907
|
};
|
|
1904
|
-
|
|
1908
|
+
ke(
|
|
1905
1909
|
[() => l.config, () => l.object],
|
|
1906
1910
|
() => {
|
|
1907
1911
|
Ft(d, l.config, l.object, (v, f) => {
|
|
@@ -1910,21 +1914,21 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1910
1914
|
},
|
|
1911
1915
|
{ immediate: !0 }
|
|
1912
1916
|
);
|
|
1913
|
-
const g =
|
|
1914
|
-
Ji(g),
|
|
1917
|
+
const g = k(l.config);
|
|
1918
|
+
Ji(g), ke(
|
|
1915
1919
|
() => l.config,
|
|
1916
1920
|
() => {
|
|
1917
1921
|
g.value = l.config;
|
|
1918
1922
|
}
|
|
1919
1923
|
);
|
|
1920
|
-
const y =
|
|
1921
|
-
Yi(y),
|
|
1924
|
+
const y = k(l.object);
|
|
1925
|
+
Yi(y), ke(
|
|
1922
1926
|
() => l.object,
|
|
1923
1927
|
() => {
|
|
1924
1928
|
y.value = l.object;
|
|
1925
1929
|
}
|
|
1926
1930
|
), es(d), ns(c);
|
|
1927
|
-
const h =
|
|
1931
|
+
const h = k([]);
|
|
1928
1932
|
os(h);
|
|
1929
1933
|
const M = () => {
|
|
1930
1934
|
const { compGroups: v, comps: f } = Rn.app.activeApp, m = [];
|
|
@@ -1972,7 +1976,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1972
1976
|
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(f), c(v, m[f.key])), L = m[$]) : (m[f.key] instanceof Array || (m[f.key] = N(f), c(v, m[f.key])), L = m[f.key]);
|
|
1973
1977
|
let ee = n(f.name);
|
|
1974
1978
|
p.collapse && be(d.value, v) && (ee += " *");
|
|
1975
|
-
const Se = _(
|
|
1979
|
+
const Se = _(Be, {
|
|
1976
1980
|
title: ee,
|
|
1977
1981
|
collapse: p.collapse,
|
|
1978
1982
|
hasCreate: !0,
|
|
@@ -2006,7 +2010,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2006
2010
|
const De = [...v, j], je = p.children[j];
|
|
2007
2011
|
let vt = n("x-prop-tree.entry", { index: j });
|
|
2008
2012
|
p.children[j].collapse && be(d.value, De) && (vt += " *");
|
|
2009
|
-
const On = _(
|
|
2013
|
+
const On = _(Be, {
|
|
2010
2014
|
title: vt,
|
|
2011
2015
|
collapse: p.children[j].collapse,
|
|
2012
2016
|
hasDelete: !0,
|
|
@@ -2018,8 +2022,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2018
2022
|
}
|
|
2019
2023
|
p.children[j].collapse = te;
|
|
2020
2024
|
},
|
|
2021
|
-
onMenu: (te,
|
|
2022
|
-
_e.emit("propTreeMenu", { x: te, y:
|
|
2025
|
+
onMenu: (te, fe) => {
|
|
2026
|
+
_e.emit("propTreeMenu", { x: te, y: fe, keys: De });
|
|
2023
2027
|
},
|
|
2024
2028
|
onDelete: (te) => {
|
|
2025
2029
|
if (!tt(p.children)) {
|
|
@@ -2039,20 +2043,20 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2039
2043
|
},
|
|
2040
2044
|
(() => {
|
|
2041
2045
|
const te = [];
|
|
2042
|
-
return f.children.forEach((
|
|
2046
|
+
return f.children.forEach((fe) => {
|
|
2043
2047
|
if (!Rt(je.children)) {
|
|
2044
2048
|
console.assert(!1);
|
|
2045
2049
|
return;
|
|
2046
2050
|
}
|
|
2047
|
-
je.children[
|
|
2051
|
+
je.children[fe.key] || (je.children[fe.key] = {
|
|
2048
2052
|
collapse: !0,
|
|
2049
|
-
children:
|
|
2053
|
+
children: fe.array ? [] : {}
|
|
2050
2054
|
});
|
|
2051
2055
|
const Mn = Le(
|
|
2052
2056
|
v,
|
|
2053
|
-
|
|
2057
|
+
fe,
|
|
2054
2058
|
L[j],
|
|
2055
|
-
je.children[
|
|
2059
|
+
je.children[fe.key],
|
|
2056
2060
|
j,
|
|
2057
2061
|
!0
|
|
2058
2062
|
);
|
|
@@ -2086,7 +2090,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2086
2090
|
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2087
2091
|
let L = n(f.name);
|
|
2088
2092
|
p.collapse && be(d.value, v) && (L += " *");
|
|
2089
|
-
const ee = _(
|
|
2093
|
+
const ee = _(Be, {
|
|
2090
2094
|
title: L,
|
|
2091
2095
|
collapse: p.collapse,
|
|
2092
2096
|
hasDelete: $ !== void 0 && !C,
|
|
@@ -2150,7 +2154,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2150
2154
|
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(f), c(v, m[$])), L = m[$]) : (m[f.key] instanceof Array || (m[f.key] = N(f), c(v, m[f.key])), L = m[f.key]);
|
|
2151
2155
|
let ee = n(f.name);
|
|
2152
2156
|
p.collapse && be(d.value, v) && (ee += " *");
|
|
2153
|
-
const Se = _(
|
|
2157
|
+
const Se = _(Be, {
|
|
2154
2158
|
title: ee,
|
|
2155
2159
|
collapse: p.collapse,
|
|
2156
2160
|
hasCreate: !0,
|
|
@@ -2222,8 +2226,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2222
2226
|
})()
|
|
2223
2227
|
);
|
|
2224
2228
|
return (v, f) => (S(), H(He, null, [
|
|
2225
|
-
|
|
2226
|
-
|
|
2229
|
+
B(Pn),
|
|
2230
|
+
B(ls, {
|
|
2227
2231
|
config: l.config,
|
|
2228
2232
|
object: l.object,
|
|
2229
2233
|
"prop-states": d.value
|