x-prop-tree 0.8.14 → 0.8.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 +167 -143
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13,10 +13,10 @@ function q(e, t) {
|
|
|
13
13
|
name: "",
|
|
14
14
|
children: e
|
|
15
15
|
};
|
|
16
|
-
for (let e of t) {
|
|
16
|
+
for (let e of t) if (typeof e != "number") {
|
|
17
17
|
if (!n) throw Error("target must be valid");
|
|
18
18
|
if (n.ui) throw Error("target ui must be invalid");
|
|
19
|
-
|
|
19
|
+
n = n.children.find((t) => t.key === e);
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
@@ -94,14 +94,14 @@ var Se = (e, t) => {
|
|
|
94
94
|
function we(e) {
|
|
95
95
|
return Ce.find((n) => t(e, n));
|
|
96
96
|
}
|
|
97
|
-
function Te(t, n, r, i, a, o) {
|
|
97
|
+
function Te(t, n, r, i, a, o, s) {
|
|
98
98
|
return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)), t?.[0] === "runtime" ? {
|
|
99
99
|
change: !1,
|
|
100
100
|
warning: !1
|
|
101
101
|
} : we(t) ? (i.change = !1, i.warning = !1, {
|
|
102
102
|
change: i.change,
|
|
103
103
|
warning: i.warning
|
|
104
|
-
}) : n.ui ? n.array &&
|
|
104
|
+
}) : n.ui ? n.array && !s ? Oe(t, n, r, i, a, o) : ke(n, r, i, a, o) : n.array ? Ee(t, n, r, i, a, o) : De(t, n, r, i, a, o);
|
|
105
105
|
}
|
|
106
106
|
function Ee(e, n, r, i, a, o) {
|
|
107
107
|
if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
|
|
@@ -170,7 +170,7 @@ function Oe(e, n, r, i, a, o) {
|
|
|
170
170
|
warning: !1,
|
|
171
171
|
children: {}
|
|
172
172
|
};
|
|
173
|
-
let { change: r, warning: a } = Te(e, n, s, i.children[t], t, !1);
|
|
173
|
+
let { change: r, warning: a } = Te(e, n, s, i.children[t], t, !1, !0);
|
|
174
174
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
175
175
|
}
|
|
176
176
|
return i.change ||= !t(s, V(n)), {
|
|
@@ -288,43 +288,67 @@ function ct() {
|
|
|
288
288
|
return h(Ve);
|
|
289
289
|
}
|
|
290
290
|
//#endregion
|
|
291
|
+
//#region src/utils/reset.ts
|
|
292
|
+
function lt(e, n, r, i) {
|
|
293
|
+
if (n.ui) if (n.array) {
|
|
294
|
+
let a = e[n.key], o = V(n);
|
|
295
|
+
t(o, a) || (e[n.key] = o, i([...r, n.key], o));
|
|
296
|
+
} else {
|
|
297
|
+
let a = e[n.key], o = B(n);
|
|
298
|
+
t(o, a) || (e[n.key] = o, i([...r, n.key], o));
|
|
299
|
+
}
|
|
300
|
+
else if (n.array) {
|
|
301
|
+
let a = e[n.key], o = V(n);
|
|
302
|
+
t(o, a) || (e[n.key] = o, i([...r, n.key], o));
|
|
303
|
+
} else for (let t of n.children) lt(e[n.key], t, [...r, n.key], i);
|
|
304
|
+
}
|
|
305
|
+
function ut(e, n, r, i) {
|
|
306
|
+
let a = r.at(-1);
|
|
307
|
+
if (a === void 0) return;
|
|
308
|
+
let o = q(n, r);
|
|
309
|
+
if (o) if (o.ui) if (o.array) if (typeof a == "string") {
|
|
310
|
+
let n = J(e, r.slice(0, -1));
|
|
311
|
+
if (!n) return;
|
|
312
|
+
let s = n[a], c = V(o);
|
|
313
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
314
|
+
} else {
|
|
315
|
+
let n = J(e, r.slice(0, -1));
|
|
316
|
+
if (!n) return;
|
|
317
|
+
let s = n[a], c = B(o);
|
|
318
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
let n = J(e, r.slice(0, -1));
|
|
322
|
+
if (!n) return;
|
|
323
|
+
let s = n[a], c = B(o);
|
|
324
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
325
|
+
}
|
|
326
|
+
else if (o.array) if (typeof a == "string") {
|
|
327
|
+
let n = J(e, r.slice(0, -1));
|
|
328
|
+
if (!n) return;
|
|
329
|
+
let s = n[a], c = V(o);
|
|
330
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
331
|
+
} else {
|
|
332
|
+
let t = J(e, r);
|
|
333
|
+
if (!t) return;
|
|
334
|
+
for (let e of o.children) lt(t, e, r, i);
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
let t = J(e, r);
|
|
338
|
+
if (!t) return;
|
|
339
|
+
for (let e of o.children) lt(t, e, r, i);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
//#endregion
|
|
291
343
|
//#region src/components/menu/index.vue
|
|
292
|
-
var
|
|
344
|
+
var dt = /* @__PURE__ */ p({
|
|
293
345
|
__name: "index",
|
|
294
346
|
setup(e) {
|
|
295
347
|
let { t } = H(), n = Ye(), r = Ze(), i = tt(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
|
|
296
348
|
!(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
|
|
297
349
|
title: t("x-prop-tree.reset"),
|
|
298
350
|
func: () => {
|
|
299
|
-
|
|
300
|
-
if (e) if (e.ui) {
|
|
301
|
-
let t = J(r.value, m.value.slice(0, -1));
|
|
302
|
-
if (!t) return;
|
|
303
|
-
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
304
|
-
} else if (e.array) {
|
|
305
|
-
let t = m.value[m.value.length - 1];
|
|
306
|
-
if (t === void 0) {
|
|
307
|
-
console.assert(!1, "invalid last key");
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
if (typeof t == "string") {
|
|
311
|
-
let t = J(r.value, m.value.slice(0, -1));
|
|
312
|
-
if (!t) return;
|
|
313
|
-
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
314
|
-
} else {
|
|
315
|
-
let t = J(r.value, m.value);
|
|
316
|
-
if (!t) return;
|
|
317
|
-
e.children.forEach((n) => {
|
|
318
|
-
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
} else {
|
|
322
|
-
let t = J(r.value, m.value);
|
|
323
|
-
if (!t) return;
|
|
324
|
-
e.children.forEach((n) => {
|
|
325
|
-
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
351
|
+
ut(r.value, n.value, m.value, c);
|
|
328
352
|
}
|
|
329
353
|
});
|
|
330
354
|
}, v = (e) => {
|
|
@@ -398,7 +422,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
398
422
|
}, 8, ["modelValue", "target"]);
|
|
399
423
|
};
|
|
400
424
|
}
|
|
401
|
-
}),
|
|
425
|
+
}), ft = { style: { pointerEvents: "none" } }, pt = /* @__PURE__ */ p({
|
|
402
426
|
__name: "index",
|
|
403
427
|
props: {
|
|
404
428
|
title: {},
|
|
@@ -444,7 +468,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
444
468
|
class: "mr-1",
|
|
445
469
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
446
470
|
}, null, 8, ["icon"]),
|
|
447
|
-
u("span",
|
|
471
|
+
u("span", ft, A(e.title), 1),
|
|
448
472
|
f(o),
|
|
449
473
|
e.hasCreate ? (C(), s(h, {
|
|
450
474
|
key: 0,
|
|
@@ -468,7 +492,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
468
492
|
});
|
|
469
493
|
//#endregion
|
|
470
494
|
//#region src/composables/adaptSlotList/index.ts
|
|
471
|
-
function
|
|
495
|
+
function mt() {
|
|
472
496
|
let e = Ue(), t = Ge(), n = qe(), { i18n: a } = fe, o = T([]);
|
|
473
497
|
st(o);
|
|
474
498
|
let s = () => {
|
|
@@ -550,7 +574,7 @@ function ft() {
|
|
|
550
574
|
}
|
|
551
575
|
//#endregion
|
|
552
576
|
//#region src/composables/compList/index.ts
|
|
553
|
-
function
|
|
577
|
+
function ht() {
|
|
554
578
|
let e = T([]);
|
|
555
579
|
rt(e);
|
|
556
580
|
let t = () => {
|
|
@@ -588,7 +612,7 @@ function pt() {
|
|
|
588
612
|
}
|
|
589
613
|
//#endregion
|
|
590
614
|
//#region src/composables/slotList/index.ts
|
|
591
|
-
function
|
|
615
|
+
function gt() {
|
|
592
616
|
let e = T([]);
|
|
593
617
|
at(e);
|
|
594
618
|
let t = () => {
|
|
@@ -617,7 +641,7 @@ function mt() {
|
|
|
617
641
|
}
|
|
618
642
|
//#endregion
|
|
619
643
|
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
620
|
-
var
|
|
644
|
+
var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text-grey ml-1" }, yt = /* @__PURE__ */ p({
|
|
621
645
|
__name: "group",
|
|
622
646
|
props: {
|
|
623
647
|
id: {},
|
|
@@ -646,12 +670,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
646
670
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
647
671
|
size: "small"
|
|
648
672
|
}, null, 8, ["icon"]),
|
|
649
|
-
u("span",
|
|
650
|
-
u("span",
|
|
673
|
+
u("span", _t, A(i.title), 1),
|
|
674
|
+
u("span", vt, A(i.count), 1)
|
|
651
675
|
], 36)), [[r]]);
|
|
652
676
|
};
|
|
653
677
|
}
|
|
654
|
-
}),
|
|
678
|
+
}), bt = { class: "text-body-large ml-6" }, xt = /* @__PURE__ */ p({
|
|
655
679
|
__name: "item",
|
|
656
680
|
props: {
|
|
657
681
|
id: {},
|
|
@@ -673,13 +697,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
673
697
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
674
698
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
675
699
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
676
|
-
}, [u("span",
|
|
700
|
+
}, [u("span", bt, A(e.title), 1)], 36)), [[r]]);
|
|
677
701
|
};
|
|
678
702
|
}
|
|
679
|
-
}),
|
|
703
|
+
}), St = { key: 0 }, Ct = {
|
|
680
704
|
key: 1,
|
|
681
705
|
class: "text-body-medium text-grey ml-3"
|
|
682
|
-
},
|
|
706
|
+
}, wt = /* @__PURE__ */ p({
|
|
683
707
|
__name: "index",
|
|
684
708
|
props: {
|
|
685
709
|
modelValue: {},
|
|
@@ -698,7 +722,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
698
722
|
}, f = (e) => {
|
|
699
723
|
i.value = e, o.value = !1;
|
|
700
724
|
};
|
|
701
|
-
return (e, n) => j(u).length > 0 ? (C(), l("div",
|
|
725
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", St, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(yt, {
|
|
702
726
|
key: 0,
|
|
703
727
|
id: e.id,
|
|
704
728
|
collapse: e.collapse,
|
|
@@ -710,18 +734,18 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
710
734
|
"collapse",
|
|
711
735
|
"count",
|
|
712
736
|
"title"
|
|
713
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
737
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(xt, {
|
|
714
738
|
key: 1,
|
|
715
739
|
id: e.id,
|
|
716
740
|
title: e.name,
|
|
717
741
|
onXClick: f
|
|
718
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
742
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Ct, A(j(t)([
|
|
719
743
|
"x-prop-tree.no",
|
|
720
744
|
"x-prop-tree.adapt",
|
|
721
745
|
"x-prop-tree.slot"
|
|
722
746
|
])), 1));
|
|
723
747
|
}
|
|
724
|
-
}),
|
|
748
|
+
}), Tt = { class: "text-body-large" }, Et = /* @__PURE__ */ p({
|
|
725
749
|
__name: "index",
|
|
726
750
|
props: /* @__PURE__ */ _({
|
|
727
751
|
hasDelete: {
|
|
@@ -807,7 +831,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
807
831
|
icon: "mdi-close",
|
|
808
832
|
variant: "text",
|
|
809
833
|
onClick: n[1] ||= (e) => E.value = !1
|
|
810
|
-
}), u("span",
|
|
834
|
+
}), u("span", Tt, A(j(l)([
|
|
811
835
|
"x-prop-tree.select",
|
|
812
836
|
"x-prop-tree.adapt",
|
|
813
837
|
"x-prop-tree.slot"
|
|
@@ -817,7 +841,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
817
841
|
u("div", {
|
|
818
842
|
class: "overflow-y-auto",
|
|
819
843
|
style: y(x.value)
|
|
820
|
-
}, [f(
|
|
844
|
+
}, [f(wt, {
|
|
821
845
|
modelValue: m.value,
|
|
822
846
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
823
847
|
open: j(E),
|
|
@@ -828,7 +852,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
828
852
|
}, 8, ["modelValue"]);
|
|
829
853
|
};
|
|
830
854
|
}
|
|
831
|
-
}),
|
|
855
|
+
}), Dt = { class: "text-label-large ml-1" }, Ot = { class: "text-body-small text-grey ml-1" }, kt = /* @__PURE__ */ p({
|
|
832
856
|
__name: "group",
|
|
833
857
|
props: {
|
|
834
858
|
id: {},
|
|
@@ -857,12 +881,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
857
881
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
858
882
|
size: "small"
|
|
859
883
|
}, null, 8, ["icon"]),
|
|
860
|
-
u("span",
|
|
861
|
-
u("span",
|
|
884
|
+
u("span", Dt, A(i.title), 1),
|
|
885
|
+
u("span", Ot, A(i.count), 1)
|
|
862
886
|
], 36)), [[r]]);
|
|
863
887
|
};
|
|
864
888
|
}
|
|
865
|
-
}),
|
|
889
|
+
}), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
|
|
866
890
|
__name: "item",
|
|
867
891
|
props: {
|
|
868
892
|
id: {},
|
|
@@ -884,13 +908,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
884
908
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
885
909
|
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
886
910
|
onMouseover: t[2] ||= (e) => s.value = !0
|
|
887
|
-
}, [u("span",
|
|
911
|
+
}, [u("span", At, A(i.title), 1)], 36)), [[n]]);
|
|
888
912
|
};
|
|
889
913
|
}
|
|
890
|
-
}),
|
|
914
|
+
}), Mt = { key: 0 }, Nt = {
|
|
891
915
|
key: 1,
|
|
892
916
|
class: "text-body-medium text-grey ml-3"
|
|
893
|
-
},
|
|
917
|
+
}, Pt = /* @__PURE__ */ p({
|
|
894
918
|
__name: "index",
|
|
895
919
|
props: {
|
|
896
920
|
modelValue: {},
|
|
@@ -909,7 +933,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
909
933
|
}, f = (e) => {
|
|
910
934
|
i.value = e, o.value = !1, U.emit("refreshDepends");
|
|
911
935
|
};
|
|
912
|
-
return (e, n) => j(u).length > 0 ? (C(), l("div",
|
|
936
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", Mt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(kt, {
|
|
913
937
|
key: 0,
|
|
914
938
|
id: e.id,
|
|
915
939
|
collapse: e.collapse,
|
|
@@ -921,14 +945,14 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
921
945
|
"collapse",
|
|
922
946
|
"count",
|
|
923
947
|
"title"
|
|
924
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
948
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
|
|
925
949
|
key: 1,
|
|
926
950
|
id: e.id,
|
|
927
951
|
title: e.name,
|
|
928
952
|
onXClick: f
|
|
929
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
953
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
930
954
|
}
|
|
931
|
-
}),
|
|
955
|
+
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
932
956
|
__name: "index",
|
|
933
957
|
props: /* @__PURE__ */ _({
|
|
934
958
|
hasDelete: {
|
|
@@ -1014,13 +1038,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1014
1038
|
icon: "mdi-close",
|
|
1015
1039
|
variant: "text",
|
|
1016
1040
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1017
|
-
}), u("span",
|
|
1041
|
+
}), u("span", Ft, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1018
1042
|
_: 1
|
|
1019
1043
|
}),
|
|
1020
1044
|
u("div", {
|
|
1021
1045
|
class: "overflow-y-auto",
|
|
1022
1046
|
style: y(x.value)
|
|
1023
|
-
}, [f(
|
|
1047
|
+
}, [f(Pt, {
|
|
1024
1048
|
modelValue: m.value,
|
|
1025
1049
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1026
1050
|
open: j(E),
|
|
@@ -1031,7 +1055,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1031
1055
|
}, 8, ["modelValue"]);
|
|
1032
1056
|
};
|
|
1033
1057
|
}
|
|
1034
|
-
}),
|
|
1058
|
+
}), Lt = { class: "d-flex justify-space-between align-center" }, Rt = /* @__PURE__ */ p({
|
|
1035
1059
|
__name: "index",
|
|
1036
1060
|
props: /* @__PURE__ */ _({
|
|
1037
1061
|
hasDelete: {
|
|
@@ -1058,7 +1082,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1058
1082
|
};
|
|
1059
1083
|
return (t, n) => {
|
|
1060
1084
|
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1061
|
-
return C(), l("div",
|
|
1085
|
+
return C(), l("div", Lt, [L(f(o, {
|
|
1062
1086
|
modelValue: r.value,
|
|
1063
1087
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1064
1088
|
density: "compact",
|
|
@@ -1081,7 +1105,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1081
1105
|
})) : c("", !0)]);
|
|
1082
1106
|
};
|
|
1083
1107
|
}
|
|
1084
|
-
}),
|
|
1108
|
+
}), zt = /* @__PURE__ */ p({
|
|
1085
1109
|
__name: "editor",
|
|
1086
1110
|
props: {
|
|
1087
1111
|
modelValue: { required: !0 },
|
|
@@ -1127,7 +1151,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1127
1151
|
"version"
|
|
1128
1152
|
]));
|
|
1129
1153
|
}
|
|
1130
|
-
}),
|
|
1154
|
+
}), Bt = { class: "text-body-large" }, Vt = /* @__PURE__ */ p({
|
|
1131
1155
|
__name: "index",
|
|
1132
1156
|
props: /* @__PURE__ */ _({
|
|
1133
1157
|
hasDelete: {
|
|
@@ -1208,12 +1232,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1208
1232
|
variant: "text",
|
|
1209
1233
|
onClick: n[1] ||= (e) => w.value = !1
|
|
1210
1234
|
}),
|
|
1211
|
-
u("span",
|
|
1235
|
+
u("span", Bt, A(x.value), 1),
|
|
1212
1236
|
f(S)
|
|
1213
1237
|
]),
|
|
1214
1238
|
_: 1
|
|
1215
1239
|
}, 8, ["color"]),
|
|
1216
|
-
u("div", { style: y(b.value) }, [f(
|
|
1240
|
+
u("div", { style: y(b.value) }, [f(zt, {
|
|
1217
1241
|
ref_key: "editor",
|
|
1218
1242
|
ref: E,
|
|
1219
1243
|
modelValue: p.value,
|
|
@@ -1234,7 +1258,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1234
1258
|
}, 8, ["modelValue"]);
|
|
1235
1259
|
};
|
|
1236
1260
|
}
|
|
1237
|
-
}),
|
|
1261
|
+
}), Ht = { class: "d-flex justify-space-between align-center" }, Ut = /* @__PURE__ */ p({
|
|
1238
1262
|
__name: "color",
|
|
1239
1263
|
props: /* @__PURE__ */ _({
|
|
1240
1264
|
hasDelete: {
|
|
@@ -1265,7 +1289,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1265
1289
|
"close-on-content-click": !1,
|
|
1266
1290
|
scrim: "transparent"
|
|
1267
1291
|
}, {
|
|
1268
|
-
activator: I(({ props: t }) => [u("div",
|
|
1292
|
+
activator: I(({ props: t }) => [u("div", Ht, [u("div", {
|
|
1269
1293
|
class: "flex-grow-1",
|
|
1270
1294
|
style: y(a.value)
|
|
1271
1295
|
}, [f(m, v(t, {
|
|
@@ -1295,7 +1319,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1295
1319
|
}, 8, ["modelValue"]);
|
|
1296
1320
|
};
|
|
1297
1321
|
}
|
|
1298
|
-
}),
|
|
1322
|
+
}), Wt = { class: "d-flex justify-space-between align-center my-2" }, Gt = { class: "flex-grow-1" }, Kt = /* @__PURE__ */ p({
|
|
1299
1323
|
__name: "index",
|
|
1300
1324
|
props: /* @__PURE__ */ _({
|
|
1301
1325
|
hasDelete: {
|
|
@@ -1372,7 +1396,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1372
1396
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1373
1397
|
}), (t, n) => {
|
|
1374
1398
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), d = k("ripple");
|
|
1375
|
-
return C(), l("div",
|
|
1399
|
+
return C(), l("div", Wt, [u("div", Gt, [
|
|
1376
1400
|
L(f(r, {
|
|
1377
1401
|
modelValue: p.value,
|
|
1378
1402
|
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
@@ -1418,7 +1442,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1418
1442
|
void 0,
|
|
1419
1443
|
{ stop: !0 }
|
|
1420
1444
|
]]) : c("", !0),
|
|
1421
|
-
h.value?.trait === "hexColor" ? (C(), s(
|
|
1445
|
+
h.value?.trait === "hexColor" ? (C(), s(Ut, {
|
|
1422
1446
|
key: 1,
|
|
1423
1447
|
modelValue: b.value,
|
|
1424
1448
|
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
@@ -1447,7 +1471,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1447
1471
|
})) : c("", !0)]);
|
|
1448
1472
|
};
|
|
1449
1473
|
}
|
|
1450
|
-
}),
|
|
1474
|
+
}), qt = { class: "d-flex justify-space-between align-center" }, Jt = /* @__PURE__ */ p({
|
|
1451
1475
|
__name: "index",
|
|
1452
1476
|
props: /* @__PURE__ */ _({
|
|
1453
1477
|
hasDelete: {
|
|
@@ -1482,7 +1506,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1482
1506
|
};
|
|
1483
1507
|
return (t, n) => {
|
|
1484
1508
|
let o = O("v-number-input"), u = O("v-btn"), d = k("ripple");
|
|
1485
|
-
return C(), l("div",
|
|
1509
|
+
return C(), l("div", qt, [L(f(o, {
|
|
1486
1510
|
modelValue: r.value,
|
|
1487
1511
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1488
1512
|
"control-variant": "stacked",
|
|
@@ -1517,7 +1541,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1517
1541
|
})) : c("", !0)]);
|
|
1518
1542
|
};
|
|
1519
1543
|
}
|
|
1520
|
-
}),
|
|
1544
|
+
}), Yt = { class: "d-flex justify-space-between align-center my-2" }, Xt = { class: "flex-grow-1" }, Zt = /* @__PURE__ */ p({
|
|
1521
1545
|
__name: "index",
|
|
1522
1546
|
props: /* @__PURE__ */ _({
|
|
1523
1547
|
hasDelete: {
|
|
@@ -1577,7 +1601,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1577
1601
|
}
|
|
1578
1602
|
return (t, n) => {
|
|
1579
1603
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), m = k("ripple");
|
|
1580
|
-
return C(), l("div",
|
|
1604
|
+
return C(), l("div", Yt, [u("div", Xt, [L(f(r, {
|
|
1581
1605
|
modelValue: d.value,
|
|
1582
1606
|
"onUpdate:modelValue": [n[0] ||= (e) => d.value = e, g],
|
|
1583
1607
|
density: "compact",
|
|
@@ -1623,7 +1647,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1623
1647
|
})) : c("", !0)]);
|
|
1624
1648
|
};
|
|
1625
1649
|
}
|
|
1626
|
-
}),
|
|
1650
|
+
}), Qt = { class: "d-flex justify-space-between align-center" }, $t = /* @__PURE__ */ p({
|
|
1627
1651
|
__name: "index",
|
|
1628
1652
|
props: /* @__PURE__ */ _({
|
|
1629
1653
|
hasDelete: {
|
|
@@ -1653,7 +1677,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1653
1677
|
});
|
|
1654
1678
|
return (t, n) => {
|
|
1655
1679
|
let o = O("v-select"), u = O("v-btn"), d = k("ripple");
|
|
1656
|
-
return C(), l("div",
|
|
1680
|
+
return C(), l("div", Qt, [L(f(o, {
|
|
1657
1681
|
modelValue: r.value,
|
|
1658
1682
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1659
1683
|
density: "compact",
|
|
@@ -1680,7 +1704,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1680
1704
|
})) : c("", !0)]);
|
|
1681
1705
|
};
|
|
1682
1706
|
}
|
|
1683
|
-
}),
|
|
1707
|
+
}), en = { class: "text-body-large ml-6" }, tn = /* @__PURE__ */ p({
|
|
1684
1708
|
__name: "item",
|
|
1685
1709
|
props: {
|
|
1686
1710
|
id: {},
|
|
@@ -1702,13 +1726,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1702
1726
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1703
1727
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1704
1728
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1705
|
-
}, [u("span",
|
|
1729
|
+
}, [u("span", en, A(e.title), 1)], 36)), [[r]]);
|
|
1706
1730
|
};
|
|
1707
1731
|
}
|
|
1708
|
-
}),
|
|
1732
|
+
}), nn = { key: 0 }, rn = {
|
|
1709
1733
|
key: 1,
|
|
1710
1734
|
class: "text-body-medium text-grey ml-3"
|
|
1711
|
-
},
|
|
1735
|
+
}, an = /* @__PURE__ */ p({
|
|
1712
1736
|
__name: "index",
|
|
1713
1737
|
props: {
|
|
1714
1738
|
modelValue: {},
|
|
@@ -1724,14 +1748,14 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1724
1748
|
let { nameList: t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ot(), o = (e) => {
|
|
1725
1749
|
n.value = e, r.value = !1;
|
|
1726
1750
|
};
|
|
1727
|
-
return (e, n) => j(i).length > 0 ? (C(), l("div",
|
|
1751
|
+
return (e, n) => j(i).length > 0 ? (C(), l("div", nn, [(C(!0), l(a, null, E(j(i), (e) => (C(), s(tn, {
|
|
1728
1752
|
key: e.id,
|
|
1729
1753
|
id: e.id,
|
|
1730
1754
|
title: e.name,
|
|
1731
1755
|
onXClick: o
|
|
1732
|
-
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div",
|
|
1756
|
+
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", rn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1733
1757
|
}
|
|
1734
|
-
}),
|
|
1758
|
+
}), on = { class: "text-body-large" }, sn = /* @__PURE__ */ p({
|
|
1735
1759
|
__name: "index",
|
|
1736
1760
|
props: /* @__PURE__ */ _({
|
|
1737
1761
|
hasDelete: {
|
|
@@ -1817,13 +1841,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1817
1841
|
icon: "mdi-close",
|
|
1818
1842
|
variant: "text",
|
|
1819
1843
|
onClick: n[1] ||= (e) => T.value = !1
|
|
1820
|
-
}), u("span",
|
|
1844
|
+
}), u("span", on, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1821
1845
|
_: 1
|
|
1822
1846
|
}),
|
|
1823
1847
|
u("div", {
|
|
1824
1848
|
class: "overflow-y-auto",
|
|
1825
1849
|
style: y(b.value)
|
|
1826
|
-
}, [f(
|
|
1850
|
+
}, [f(an, {
|
|
1827
1851
|
modelValue: p.value,
|
|
1828
1852
|
"onUpdate:modelValue": n[2] ||= (e) => p.value = e,
|
|
1829
1853
|
open: j(T),
|
|
@@ -1834,7 +1858,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1834
1858
|
}, 8, ["modelValue"]);
|
|
1835
1859
|
};
|
|
1836
1860
|
}
|
|
1837
|
-
}),
|
|
1861
|
+
}), cn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PURE__ */ p({
|
|
1838
1862
|
__name: "index",
|
|
1839
1863
|
props: /* @__PURE__ */ _({
|
|
1840
1864
|
hasDelete: {
|
|
@@ -1854,7 +1878,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1854
1878
|
let n = N(e, "modelValue"), r = t;
|
|
1855
1879
|
return (t, i) => {
|
|
1856
1880
|
let a = O("v-switch"), o = O("v-btn");
|
|
1857
|
-
return C(), l("div",
|
|
1881
|
+
return C(), l("div", cn, [f(a, {
|
|
1858
1882
|
modelValue: n.value,
|
|
1859
1883
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1860
1884
|
class: "ml-1",
|
|
@@ -1872,7 +1896,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1872
1896
|
})) : c("", !0)]);
|
|
1873
1897
|
};
|
|
1874
1898
|
}
|
|
1875
|
-
}),
|
|
1899
|
+
}), un = { class: "d-flex justify-space-between align-center" }, dn = /* @__PURE__ */ p({
|
|
1876
1900
|
__name: "index",
|
|
1877
1901
|
props: /* @__PURE__ */ _({
|
|
1878
1902
|
hasDelete: {
|
|
@@ -1899,7 +1923,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1899
1923
|
};
|
|
1900
1924
|
return (t, n) => {
|
|
1901
1925
|
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1902
|
-
return C(), l("div",
|
|
1926
|
+
return C(), l("div", un, [L(f(o, {
|
|
1903
1927
|
modelValue: r.value,
|
|
1904
1928
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1905
1929
|
density: "compact",
|
|
@@ -1925,11 +1949,11 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1925
1949
|
});
|
|
1926
1950
|
//#endregion
|
|
1927
1951
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1928
|
-
function
|
|
1952
|
+
function fn() {
|
|
1929
1953
|
let e = $();
|
|
1930
1954
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1931
1955
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1932
|
-
return m(
|
|
1956
|
+
return m(Et, {
|
|
1933
1957
|
modelValue: Y(t, n, r, i, a, e),
|
|
1934
1958
|
"onUpdate:modelValue": (o) => {
|
|
1935
1959
|
X(t, n, r, o, i, a, e);
|
|
@@ -1944,11 +1968,11 @@ function un() {
|
|
|
1944
1968
|
}
|
|
1945
1969
|
//#endregion
|
|
1946
1970
|
//#region src/composables/uis/uiComp.ts
|
|
1947
|
-
function
|
|
1971
|
+
function pn() {
|
|
1948
1972
|
let e = $();
|
|
1949
1973
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
1950
1974
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1951
|
-
return m(
|
|
1975
|
+
return m(It, {
|
|
1952
1976
|
modelValue: Y(t, n, r, i, a, e),
|
|
1953
1977
|
"onUpdate:modelValue": (o) => {
|
|
1954
1978
|
X(t, n, r, o, i, a, e);
|
|
@@ -1963,7 +1987,7 @@ function dn() {
|
|
|
1963
1987
|
}
|
|
1964
1988
|
//#endregion
|
|
1965
1989
|
//#region src/composables/uis/uiDummy.ts
|
|
1966
|
-
function
|
|
1990
|
+
function mn() {
|
|
1967
1991
|
let e = $();
|
|
1968
1992
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1969
1993
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
@@ -1972,11 +1996,11 @@ function fn() {
|
|
|
1972
1996
|
}
|
|
1973
1997
|
//#endregion
|
|
1974
1998
|
//#region src/composables/uis/uiIcon.ts
|
|
1975
|
-
function
|
|
1999
|
+
function hn() {
|
|
1976
2000
|
let e = $();
|
|
1977
2001
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
1978
2002
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
1979
|
-
return m(
|
|
2003
|
+
return m(Rt, {
|
|
1980
2004
|
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
1981
2005
|
"onUpdate:modelValue": (o) => {
|
|
1982
2006
|
n.static || X(t, n, r, o, i, a, e);
|
|
@@ -1991,11 +2015,11 @@ function pn() {
|
|
|
1991
2015
|
}
|
|
1992
2016
|
//#endregion
|
|
1993
2017
|
//#region src/composables/uis/uiJson.ts
|
|
1994
|
-
function
|
|
2018
|
+
function gn() {
|
|
1995
2019
|
let e = $();
|
|
1996
2020
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
1997
2021
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
1998
|
-
return m(
|
|
2022
|
+
return m(Vt, {
|
|
1999
2023
|
modelValue: Y(t, n, r, i, a, e) ?? "{}",
|
|
2000
2024
|
"onUpdate:modelValue": (o) => {
|
|
2001
2025
|
X(t, n, r, o, i, a, e);
|
|
@@ -2010,11 +2034,11 @@ function mn() {
|
|
|
2010
2034
|
}
|
|
2011
2035
|
//#endregion
|
|
2012
2036
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2013
|
-
function
|
|
2037
|
+
function _n() {
|
|
2014
2038
|
let e = $();
|
|
2015
2039
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2016
2040
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2017
|
-
return m(
|
|
2041
|
+
return m(Kt, {
|
|
2018
2042
|
modelValue: Y(t, n, r, i, a, e),
|
|
2019
2043
|
"onUpdate:modelValue": (o) => {
|
|
2020
2044
|
X(t, n, r, o, i, a, e);
|
|
@@ -2029,11 +2053,11 @@ function hn() {
|
|
|
2029
2053
|
}
|
|
2030
2054
|
//#endregion
|
|
2031
2055
|
//#region src/composables/uis/uiNumber.ts
|
|
2032
|
-
function
|
|
2056
|
+
function vn() {
|
|
2033
2057
|
let e = $();
|
|
2034
2058
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2035
2059
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2036
|
-
return m(
|
|
2060
|
+
return m(Jt, {
|
|
2037
2061
|
modelValue: Y(t, n, r, i, a, e),
|
|
2038
2062
|
"onUpdate:modelValue": (o) => {
|
|
2039
2063
|
X(t, n, r, o, i, a, e);
|
|
@@ -2052,7 +2076,7 @@ function gn() {
|
|
|
2052
2076
|
}
|
|
2053
2077
|
//#endregion
|
|
2054
2078
|
//#region src/components/entry/index.vue
|
|
2055
|
-
var
|
|
2079
|
+
var yn = /* @__PURE__ */ p({
|
|
2056
2080
|
__name: "index",
|
|
2057
2081
|
props: { minHeight: {} },
|
|
2058
2082
|
emits: ["menu"],
|
|
@@ -2080,11 +2104,11 @@ var _n = /* @__PURE__ */ p({
|
|
|
2080
2104
|
});
|
|
2081
2105
|
//#endregion
|
|
2082
2106
|
//#region src/composables/uis/uiProperty.ts
|
|
2083
|
-
function
|
|
2107
|
+
function bn() {
|
|
2084
2108
|
let { t: e } = H(), t = tt();
|
|
2085
2109
|
return { renderProperty: (n, r, i) => {
|
|
2086
2110
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2087
|
-
return Q(t.value, n) && (o += " *"), m(
|
|
2111
|
+
return Q(t.value, n) && (o += " *"), m(yn, {
|
|
2088
2112
|
minHeight: "56px",
|
|
2089
2113
|
onMenu: (e, t) => {
|
|
2090
2114
|
U.emit("propTreeMenu", {
|
|
@@ -2104,11 +2128,11 @@ function vn() {
|
|
|
2104
2128
|
}
|
|
2105
2129
|
//#endregion
|
|
2106
2130
|
//#region src/composables/uis/uiRule.ts
|
|
2107
|
-
function
|
|
2131
|
+
function xn() {
|
|
2108
2132
|
let e = $();
|
|
2109
2133
|
function t(t, n, r, i, a) {
|
|
2110
2134
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2111
|
-
return m(
|
|
2135
|
+
return m(Zt, {
|
|
2112
2136
|
modelValue: Y(t, n, r, i, a, e),
|
|
2113
2137
|
"onUpdate:modelValue": (o) => {
|
|
2114
2138
|
X(t, n, r, o, i, a, e);
|
|
@@ -2123,11 +2147,11 @@ function yn() {
|
|
|
2123
2147
|
}
|
|
2124
2148
|
//#endregion
|
|
2125
2149
|
//#region src/composables/uis/uiSelect.ts
|
|
2126
|
-
function
|
|
2150
|
+
function Sn() {
|
|
2127
2151
|
let e = $();
|
|
2128
2152
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2129
2153
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2130
|
-
return m(
|
|
2154
|
+
return m($t, {
|
|
2131
2155
|
modelValue: Y(t, n, r, i, a, e),
|
|
2132
2156
|
"onUpdate:modelValue": (o) => {
|
|
2133
2157
|
X(t, n, r, o, i, a, e);
|
|
@@ -2143,11 +2167,11 @@ function bn() {
|
|
|
2143
2167
|
}
|
|
2144
2168
|
//#endregion
|
|
2145
2169
|
//#region src/composables/uis/uiSlot.ts
|
|
2146
|
-
function
|
|
2170
|
+
function Cn() {
|
|
2147
2171
|
let e = $();
|
|
2148
2172
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2149
2173
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2150
|
-
return m(
|
|
2174
|
+
return m(sn, {
|
|
2151
2175
|
modelValue: Y(t, n, r, i, a, e),
|
|
2152
2176
|
"onUpdate:modelValue": (o) => {
|
|
2153
2177
|
X(t, n, r, o, i, a, e);
|
|
@@ -2162,11 +2186,11 @@ function xn() {
|
|
|
2162
2186
|
}
|
|
2163
2187
|
//#endregion
|
|
2164
2188
|
//#region src/composables/uis/uiSwitch.ts
|
|
2165
|
-
function
|
|
2189
|
+
function wn() {
|
|
2166
2190
|
let e = $();
|
|
2167
2191
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2168
2192
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2169
|
-
return m(
|
|
2193
|
+
return m(ln, {
|
|
2170
2194
|
modelValue: Y(t, n, r, i, a, e),
|
|
2171
2195
|
"onUpdate:modelValue": (o) => {
|
|
2172
2196
|
X(t, n, r, o, i, a, e);
|
|
@@ -2181,11 +2205,11 @@ function Sn() {
|
|
|
2181
2205
|
}
|
|
2182
2206
|
//#endregion
|
|
2183
2207
|
//#region src/composables/uis/uiText.ts
|
|
2184
|
-
function
|
|
2208
|
+
function Tn() {
|
|
2185
2209
|
let e = $();
|
|
2186
2210
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2187
2211
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2188
|
-
return m(
|
|
2212
|
+
return m(dn, {
|
|
2189
2213
|
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2190
2214
|
"onUpdate:modelValue": (o) => {
|
|
2191
2215
|
n.static || X(t, n, r, o, i, a, e);
|
|
@@ -2200,19 +2224,19 @@ function Cn() {
|
|
|
2200
2224
|
}
|
|
2201
2225
|
//#endregion
|
|
2202
2226
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2203
|
-
var
|
|
2227
|
+
var En = "20px", Dn = /* @__PURE__ */ p({
|
|
2204
2228
|
__name: "main",
|
|
2205
2229
|
setup(t) {
|
|
2206
2230
|
let { t: n } = H(), { backgroundColor1: r } = W(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
|
|
2207
|
-
|
|
2208
|
-
let { renderProperty: d } =
|
|
2231
|
+
ht(), gt(), mt();
|
|
2232
|
+
let { renderProperty: d } = bn(), { renderUiDummy: p } = mn(), { renderUiText: h } = Tn(), { renderUiNumber: g } = vn(), { renderUiSwitch: _ } = wn(), { renderUiSelect: v } = Sn(), { renderUiJson: y } = gn(), { renderUiIcon: b } = hn(), { renderUiComp: x } = pn(), { renderUiSlot: S } = Cn(), { renderUiAdaptSlot: w } = fn(), { renderUiRule: T } = xn(), { renderUiMultiTypes: E } = _n(), D = (t, n, r, i, a, o) => {
|
|
2209
2233
|
if (t = e(t), i === void 0 ? t.push(n.key) : (t.push(i), a && t.push(n.key)), t?.[0] !== "runtime") return n.ui ? n.array && !o ? A(t, n, r, i, a) : j(t, n, r, i, a) : n.array ? O(t, n, r, i, a) : k(t, n, r, i, a);
|
|
2210
2234
|
}, O = (e, t, r, i, a) => {
|
|
2211
2235
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2212
2236
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2213
2237
|
let o = be(e, t, r, i, a, u), l = n(t.name);
|
|
2214
2238
|
Z(s, e) && Q(c.value, e) && (l += " *");
|
|
2215
|
-
let d = m(
|
|
2239
|
+
let d = m(pt, {
|
|
2216
2240
|
title: l,
|
|
2217
2241
|
collapse: Z(s, e),
|
|
2218
2242
|
hasCreate: !0,
|
|
@@ -2229,12 +2253,12 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2229
2253
|
onCreate: () => {
|
|
2230
2254
|
o.push({}), u(e, o);
|
|
2231
2255
|
}
|
|
2232
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2256
|
+
}), f = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2233
2257
|
let n = [];
|
|
2234
2258
|
for (let r = 0; r < o.length; r++) {
|
|
2235
2259
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2236
2260
|
Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2237
|
-
let l = m(
|
|
2261
|
+
let l = m(pt, {
|
|
2238
2262
|
title: a,
|
|
2239
2263
|
collapse: Z(s, [...e, r]),
|
|
2240
2264
|
hasDelete: !0,
|
|
@@ -2254,7 +2278,7 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2254
2278
|
}
|
|
2255
2279
|
});
|
|
2256
2280
|
n.push(l);
|
|
2257
|
-
let d = m("div", { style: { paddingLeft:
|
|
2281
|
+
let d = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2258
2282
|
let n = [];
|
|
2259
2283
|
for (let i of t.children) n.push(D(e, i, o[r], r, !0));
|
|
2260
2284
|
return n;
|
|
@@ -2272,7 +2296,7 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2272
2296
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2273
2297
|
let o = n(t.name);
|
|
2274
2298
|
Z(s, e) && Q(c.value, e) && (o += " *");
|
|
2275
|
-
let l = m(
|
|
2299
|
+
let l = m(pt, {
|
|
2276
2300
|
title: o,
|
|
2277
2301
|
collapse: Z(s, e),
|
|
2278
2302
|
hasDelete: i !== void 0 && !a,
|
|
@@ -2289,7 +2313,7 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2289
2313
|
onDelete: () => {
|
|
2290
2314
|
i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
|
|
2291
2315
|
}
|
|
2292
|
-
}), d = m("div", { style: { paddingLeft:
|
|
2316
|
+
}), d = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2293
2317
|
let n = [];
|
|
2294
2318
|
for (let i of t.children) n.push(D(e, i, (typeof r[t.key] != "object" && (r[t.key] = {}, u(e, r[t.key])), r[t.key]), void 0, !1));
|
|
2295
2319
|
return n;
|
|
@@ -2303,7 +2327,7 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2303
2327
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2304
2328
|
let o = be(e, t, r, i, a, u), l = n(t.name);
|
|
2305
2329
|
Z(s, e) && Q(c.value, e) && (l += " *");
|
|
2306
|
-
let d = m(
|
|
2330
|
+
let d = m(pt, {
|
|
2307
2331
|
title: l,
|
|
2308
2332
|
collapse: Z(s, e),
|
|
2309
2333
|
hasCreate: !0,
|
|
@@ -2320,7 +2344,7 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2320
2344
|
onCreate: () => {
|
|
2321
2345
|
o.push(B(t)), u(e, o);
|
|
2322
2346
|
}
|
|
2323
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2347
|
+
}), f = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2324
2348
|
let n = [];
|
|
2325
2349
|
for (let r = 0; r < o.length; r++) n.push(D(e, t, o, r, !1, !0));
|
|
2326
2350
|
return n;
|
|
@@ -2341,9 +2365,9 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2341
2365
|
if (i.value.length > 0 && o.value) for (let t of i.value) e.push(D([], t, o.value, void 0, !1));
|
|
2342
2366
|
return e;
|
|
2343
2367
|
})());
|
|
2344
|
-
return (e, t) => (C(), l(a, null, [f(M), f(
|
|
2368
|
+
return (e, t) => (C(), l(a, null, [f(M), f(dt)], 64));
|
|
2345
2369
|
}
|
|
2346
|
-
}),
|
|
2370
|
+
}), On = /* @__PURE__ */ p({
|
|
2347
2371
|
__name: "index",
|
|
2348
2372
|
props: {
|
|
2349
2373
|
config: {},
|
|
@@ -2386,11 +2410,11 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2386
2410
|
Ae(l, e.config, e.object), n("change", t, r);
|
|
2387
2411
|
}), P([() => e.config, () => e.object], () => {
|
|
2388
2412
|
Ae(l, e.config, e.object);
|
|
2389
|
-
}, { immediate: !0 }), (e, t) => (C(), s(
|
|
2413
|
+
}, { immediate: !0 }), (e, t) => (C(), s(Dn));
|
|
2390
2414
|
}
|
|
2391
|
-
}),
|
|
2392
|
-
e.component("XPropTree",
|
|
2393
|
-
},
|
|
2415
|
+
}), kn = (e) => {
|
|
2416
|
+
e.component("XPropTree", On);
|
|
2417
|
+
}, An = (e, t, n) => {
|
|
2394
2418
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2395
2419
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2396
2420
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
@@ -2398,14 +2422,14 @@ var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
|
2398
2422
|
};
|
|
2399
2423
|
//#endregion
|
|
2400
2424
|
//#region src/i18n/index.ts
|
|
2401
|
-
async function
|
|
2402
|
-
return (await
|
|
2425
|
+
async function jn(e) {
|
|
2426
|
+
return (await An(/* @__PURE__ */ Object.assign({
|
|
2403
2427
|
"./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
|
|
2404
2428
|
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
|
|
2405
2429
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2406
2430
|
}
|
|
2407
2431
|
//#endregion
|
|
2408
2432
|
//#region src/index.ts
|
|
2409
|
-
var
|
|
2433
|
+
var Mn = { install: kn };
|
|
2410
2434
|
//#endregion
|
|
2411
|
-
export {
|
|
2435
|
+
export { Mn as default, jn as loadLocaleMessagePropTree };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"vuetify": "^4.0.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"x-block-lib": "^0.10.
|
|
31
|
+
"x-block-lib": "^0.10.32",
|
|
32
32
|
"x-error-lib": "^0.5.18",
|
|
33
33
|
"x-essential-lib": "^0.9.31",
|
|
34
34
|
"x-group-list": "^0.4.13",
|
|
35
|
-
"x-runtime-lib": "^0.9.
|
|
35
|
+
"x-runtime-lib": "^0.9.45",
|
|
36
36
|
"x-state-lib": "^0.3.43"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|