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