x-prop-tree 0.8.9 → 0.8.10
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 +759 -778
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { getElement as ne, getItems as re, getPropertyDefault as z, getPropertyD
|
|
|
4
4
|
import { useI18n as B } from "vue-i18n";
|
|
5
5
|
import { eventBus as V, globalObjects as me, injectDark as he, injectLocale as ge, openNumberDlg as _e, openPromptDlg as ve, useColor as H, useSystem as U, useViewStack as W } from "x-essential-lib";
|
|
6
6
|
import { globalState as ye } from "x-state-lib";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useDisplay as be } from "vuetify";
|
|
8
|
+
import { XBlockly as xe } from "x-block-lib";
|
|
9
9
|
//#region src/utils/common.ts
|
|
10
10
|
function G(e, t) {
|
|
11
11
|
let n = {
|
|
@@ -616,115 +616,112 @@ function mt() {
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
|
-
//#region src/components/values/
|
|
620
|
-
var ht = { class: "
|
|
621
|
-
__name: "
|
|
622
|
-
props:
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
default: !1
|
|
630
|
-
}
|
|
631
|
-
}, {
|
|
632
|
-
modelValue: {},
|
|
633
|
-
modelModifiers: {}
|
|
634
|
-
}),
|
|
635
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
619
|
+
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
620
|
+
var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text-grey ml-1" }, _t = /* @__PURE__ */ p({
|
|
621
|
+
__name: "group",
|
|
622
|
+
props: {
|
|
623
|
+
id: {},
|
|
624
|
+
title: {},
|
|
625
|
+
collapse: { type: Boolean },
|
|
626
|
+
count: {}
|
|
627
|
+
},
|
|
628
|
+
emits: ["x-click"],
|
|
636
629
|
setup(e, { emit: t }) {
|
|
637
|
-
let {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
let
|
|
645
|
-
return C(),
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
"
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}), {
|
|
660
|
-
default: F(() => [d(k(r.value ? r.value : A(n)("x-runtime-lib.notSet")), 1)]),
|
|
661
|
-
_: 1
|
|
662
|
-
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (C(), s(m, {
|
|
663
|
-
key: 0,
|
|
664
|
-
class: "mx-2",
|
|
665
|
-
density: "compact",
|
|
666
|
-
icon: "mdi-minus",
|
|
667
|
-
variant: "text",
|
|
668
|
-
onClick: o[0] ||= R((e) => i("delete"), ["stop"])
|
|
669
|
-
})) : c("", !0)])]),
|
|
670
|
-
default: F(() => [f(h, {
|
|
671
|
-
modelValue: r.value,
|
|
672
|
-
"onUpdate:modelValue": o[1] ||= (e) => r.value = e,
|
|
673
|
-
mode: "hexa",
|
|
674
|
-
"show-swatches": "",
|
|
675
|
-
"swatches-max-height": "150px"
|
|
676
|
-
}, null, 8, ["modelValue"])]),
|
|
677
|
-
_: 1
|
|
678
|
-
}, 8, ["modelValue"]);
|
|
630
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
631
|
+
background: s.value ? r.value : n.value,
|
|
632
|
+
height: "30px",
|
|
633
|
+
marginTop: "1px",
|
|
634
|
+
userSelect: "none"
|
|
635
|
+
}));
|
|
636
|
+
return (e, t) => {
|
|
637
|
+
let n = D("v-icon"), r = O("ripple");
|
|
638
|
+
return I((C(), l("div", {
|
|
639
|
+
class: "d-flex align-center cursor-pointer",
|
|
640
|
+
style: y(c.value),
|
|
641
|
+
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
642
|
+
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
643
|
+
onMouseover: t[2] ||= (e) => s.value = !0
|
|
644
|
+
}, [
|
|
645
|
+
f(n, {
|
|
646
|
+
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
647
|
+
size: "small"
|
|
648
|
+
}, null, 8, ["icon"]),
|
|
649
|
+
u("span", ht, k(i.title), 1),
|
|
650
|
+
u("span", gt, k(i.count), 1)
|
|
651
|
+
], 36)), [[r]]);
|
|
679
652
|
};
|
|
680
653
|
}
|
|
681
|
-
}),
|
|
682
|
-
__name: "
|
|
654
|
+
}), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
|
|
655
|
+
__name: "item",
|
|
683
656
|
props: {
|
|
684
|
-
|
|
657
|
+
id: {},
|
|
658
|
+
title: {}
|
|
659
|
+
},
|
|
660
|
+
emits: ["x-click"],
|
|
661
|
+
setup(e, { emit: t }) {
|
|
662
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
|
|
663
|
+
background: a.value ? r.value : n.value,
|
|
664
|
+
height: "48px",
|
|
665
|
+
marginTop: "1px",
|
|
666
|
+
userSelect: "none"
|
|
667
|
+
}));
|
|
668
|
+
return (t, n) => {
|
|
669
|
+
let r = O("ripple");
|
|
670
|
+
return I((C(), l("div", {
|
|
671
|
+
class: "d-flex align-center cursor-pointer",
|
|
672
|
+
style: y(s.value),
|
|
673
|
+
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
674
|
+
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
675
|
+
onMouseover: n[2] ||= (e) => a.value = !0
|
|
676
|
+
}, [u("span", vt, k(e.title), 1)], 36)), [[r]]);
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
}), bt = { key: 0 }, xt = {
|
|
680
|
+
key: 1,
|
|
681
|
+
class: "text-body-medium text-grey ml-3"
|
|
682
|
+
}, St = /* @__PURE__ */ p({
|
|
683
|
+
__name: "index",
|
|
684
|
+
props: {
|
|
685
|
+
modelValue: {},
|
|
685
686
|
modelModifiers: {},
|
|
686
|
-
|
|
687
|
+
open: {
|
|
687
688
|
type: Boolean,
|
|
688
689
|
required: !0
|
|
689
690
|
},
|
|
690
|
-
|
|
691
|
-
scale: { required: !0 },
|
|
692
|
-
scaleModifiers: {}
|
|
691
|
+
openModifiers: {}
|
|
693
692
|
},
|
|
694
|
-
emits: [
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
let e = JSON.parse(n.value);
|
|
702
|
-
l.value?.load(e);
|
|
693
|
+
emits: ["update:modelValue", "update:open"],
|
|
694
|
+
setup(e) {
|
|
695
|
+
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = ct(), d = (e) => {
|
|
696
|
+
let t = r(u, e);
|
|
697
|
+
t && n(u, e, !t.collapse);
|
|
698
|
+
}, f = (e) => {
|
|
699
|
+
i.value = e, o.value = !1;
|
|
703
700
|
};
|
|
704
|
-
return
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
"onUpdate:lock": t[0] ||= (e) => r.value = e,
|
|
712
|
-
scale: i.value,
|
|
713
|
-
"onUpdate:scale": t[1] ||= (e) => i.value = e,
|
|
714
|
-
dark: A(a),
|
|
715
|
-
locale: A(o),
|
|
716
|
-
type: "json",
|
|
717
|
-
version: A(c),
|
|
718
|
-
onReady: u
|
|
701
|
+
return (e, n) => A(u).length > 0 ? (C(), l("div", bt, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(_t, {
|
|
702
|
+
key: 0,
|
|
703
|
+
id: e.id,
|
|
704
|
+
collapse: e.collapse,
|
|
705
|
+
count: e.count ?? 0,
|
|
706
|
+
title: e.name,
|
|
707
|
+
onXClick: d
|
|
719
708
|
}, null, 8, [
|
|
720
|
-
"
|
|
721
|
-
"
|
|
722
|
-
"
|
|
723
|
-
"
|
|
724
|
-
|
|
725
|
-
|
|
709
|
+
"id",
|
|
710
|
+
"collapse",
|
|
711
|
+
"count",
|
|
712
|
+
"title"
|
|
713
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(yt, {
|
|
714
|
+
key: 1,
|
|
715
|
+
id: e.id,
|
|
716
|
+
title: e.name,
|
|
717
|
+
onXClick: f
|
|
718
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt, k(A(t)([
|
|
719
|
+
"x-prop-tree.no",
|
|
720
|
+
"x-prop-tree.adapt",
|
|
721
|
+
"x-prop-tree.slot"
|
|
722
|
+
])), 1));
|
|
726
723
|
}
|
|
727
|
-
}),
|
|
724
|
+
}), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
|
|
728
725
|
__name: "index",
|
|
729
726
|
props: /* @__PURE__ */ _({
|
|
730
727
|
hasDelete: {
|
|
@@ -736,376 +733,102 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
736
733
|
default: !1
|
|
737
734
|
}
|
|
738
735
|
}, {
|
|
739
|
-
modelValue: {
|
|
736
|
+
modelValue: {},
|
|
740
737
|
modelModifiers: {}
|
|
741
738
|
}),
|
|
742
739
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
743
740
|
setup(e, { emit: t }) {
|
|
744
|
-
let { t: n } = B(), { sysBarAvail:
|
|
741
|
+
let { t: n } = B(), i = be(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = ct(), b = o(() => {
|
|
742
|
+
let e = "100%";
|
|
743
|
+
return i.mdAndUp.value && (e = "400px"), {
|
|
744
|
+
background: p.value,
|
|
745
|
+
width: e,
|
|
746
|
+
height: "100%"
|
|
747
|
+
};
|
|
748
|
+
}), x = o(() => {
|
|
745
749
|
let e = 48;
|
|
746
|
-
return
|
|
750
|
+
return a.value && (e += 24), {
|
|
747
751
|
position: "relative",
|
|
748
|
-
background: a.value,
|
|
749
752
|
height: `calc(100% - ${e}px)`
|
|
750
753
|
};
|
|
751
|
-
}),
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
return
|
|
757
|
-
|
|
754
|
+
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
755
|
+
if (!m.value) return n("x-runtime-lib.notSet");
|
|
756
|
+
let e = r(_, m.value);
|
|
757
|
+
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
758
|
+
}), { open: E } = W(`propTreeAdaptSlotSelectDlg${j()}`);
|
|
759
|
+
return S(() => {
|
|
760
|
+
E.value = !1;
|
|
758
761
|
}), (t, n) => {
|
|
759
|
-
let
|
|
760
|
-
return C(), s(
|
|
761
|
-
modelValue: A(
|
|
762
|
-
"onUpdate:modelValue": n[
|
|
763
|
-
attach: "",
|
|
762
|
+
let r = D("v-btn"), i = D("v-sheet"), o = D("v-dialog");
|
|
763
|
+
return C(), s(o, {
|
|
764
|
+
modelValue: A(E),
|
|
765
|
+
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
764
766
|
fullscreen: "",
|
|
765
767
|
"no-click-animation": "",
|
|
766
768
|
persistent: "",
|
|
767
|
-
transition: "
|
|
768
|
-
onKeydown: n[
|
|
769
|
+
transition: "scroll-x-reverse-transition",
|
|
770
|
+
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
769
771
|
}, {
|
|
770
|
-
activator: F(({ props: t }) => [f(
|
|
772
|
+
activator: F(({ props: t }) => [f(r, v(t, {
|
|
771
773
|
block: "",
|
|
772
774
|
density: "comfortable",
|
|
773
775
|
readonly: e.readonly
|
|
774
776
|
}), {
|
|
775
|
-
default: F(() => [d(k(
|
|
777
|
+
default: F(() => [d(k(T.value), 1)]),
|
|
776
778
|
_: 1
|
|
777
|
-
}, 16, ["readonly"]), e.hasDelete ? (C(), s(
|
|
779
|
+
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
778
780
|
key: 0,
|
|
779
781
|
class: "mx-2",
|
|
780
782
|
density: "compact",
|
|
781
783
|
icon: "mdi-minus",
|
|
782
784
|
variant: "text",
|
|
783
|
-
onClick: n[0] ||= R((e) =>
|
|
785
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
784
786
|
})) : c("", !0)]),
|
|
785
|
-
default: F(() => [
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}, {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
]),
|
|
828
|
-
_: 1
|
|
829
|
-
}, 8, ["color"])]),
|
|
830
|
-
_: 1
|
|
831
|
-
}, 8, ["modelValue"]);
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
}), bt = { class: "d-flex justify-space-between align-center my-2" }, xt = { class: "flex-grow-1" }, St = /* @__PURE__ */ p({
|
|
835
|
-
__name: "index",
|
|
836
|
-
props: /* @__PURE__ */ _({
|
|
837
|
-
hasDelete: {
|
|
838
|
-
type: Boolean,
|
|
839
|
-
default: !1
|
|
840
|
-
},
|
|
841
|
-
readonly: {
|
|
842
|
-
type: Boolean,
|
|
843
|
-
default: !1
|
|
844
|
-
},
|
|
845
|
-
types: {}
|
|
846
|
-
}, {
|
|
847
|
-
modelValue: {},
|
|
848
|
-
modelModifiers: {}
|
|
849
|
-
}),
|
|
850
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
851
|
-
setup(e, { emit: t }) {
|
|
852
|
-
let { t: n } = B(), { isMobile: r } = U(), i = M(e, "modelValue"), a = t, d = o(() => oe(e.types)), p = T(""), m = o(() => {
|
|
853
|
-
let e = [];
|
|
854
|
-
for (let { value: t, title: r } of d.value) e.push({
|
|
855
|
-
value: t,
|
|
856
|
-
title: n(r)
|
|
857
|
-
});
|
|
858
|
-
return e;
|
|
859
|
-
});
|
|
860
|
-
P(() => {
|
|
861
|
-
for (let { value: e, validator: t } of d.value) if (t(i.value)) {
|
|
862
|
-
p.value = e;
|
|
863
|
-
return;
|
|
864
|
-
}
|
|
865
|
-
p.value = "";
|
|
866
|
-
});
|
|
867
|
-
let h = o(() => d.value.find((e) => e.value === p.value)), g = () => {
|
|
868
|
-
i.value = h.value?.default;
|
|
869
|
-
}, _ = T(0), v = async (e) => {
|
|
870
|
-
if (!e || !r() || !h.value || h.value.trait !== "pixel" && h.value.trait !== "percent") return;
|
|
871
|
-
let t = await _e({
|
|
872
|
-
title: "",
|
|
873
|
-
value: _.value,
|
|
874
|
-
precision: h.value.precision,
|
|
875
|
-
min: h.value.min,
|
|
876
|
-
max: h.value.max,
|
|
877
|
-
step: h.value.step
|
|
878
|
-
});
|
|
879
|
-
t !== void 0 && (_.value = t);
|
|
880
|
-
};
|
|
881
|
-
P(() => {
|
|
882
|
-
h.value?.trait === "pixel" ? _.value = de(i.value) : h.value?.trait === "percent" && (_.value = ue(i.value));
|
|
883
|
-
}), N(_, (e) => {
|
|
884
|
-
h.value?.trait === "pixel" ? i.value = e + "px" : h.value?.trait === "percent" && (i.value = e + "%");
|
|
885
|
-
});
|
|
886
|
-
let y = T("#ff00ff");
|
|
887
|
-
P(() => {
|
|
888
|
-
h.value?.trait === "hexColor" && se(i.value) && (y.value = i.value);
|
|
889
|
-
}), N(y, (e) => {
|
|
890
|
-
h.value?.trait === "hexColor" && (i.value = e);
|
|
891
|
-
});
|
|
892
|
-
let b = T("primary"), x = o(() => {
|
|
893
|
-
let e = [];
|
|
894
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of pe) e.push({
|
|
895
|
-
value: t,
|
|
896
|
-
title: n(r)
|
|
897
|
-
});
|
|
898
|
-
return e;
|
|
899
|
-
});
|
|
900
|
-
return P(() => {
|
|
901
|
-
h.value?.trait === "themeColor" && ce(i.value) && (b.value = i.value);
|
|
902
|
-
}), N(b, (e) => {
|
|
903
|
-
h.value?.trait === "themeColor" && (i.value = e);
|
|
904
|
-
}), (t, n) => {
|
|
905
|
-
let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
|
|
906
|
-
return C(), l("div", bt, [u("div", xt, [
|
|
907
|
-
I(f(r, {
|
|
908
|
-
modelValue: p.value,
|
|
909
|
-
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
910
|
-
density: "compact",
|
|
911
|
-
"hide-details": "",
|
|
912
|
-
items: m.value,
|
|
913
|
-
readonly: e.readonly,
|
|
914
|
-
"single-line": ""
|
|
915
|
-
}, null, 8, [
|
|
916
|
-
"modelValue",
|
|
917
|
-
"items",
|
|
918
|
-
"readonly"
|
|
919
|
-
]), [[
|
|
920
|
-
d,
|
|
921
|
-
void 0,
|
|
922
|
-
void 0,
|
|
923
|
-
{ stop: !0 }
|
|
924
|
-
]]),
|
|
925
|
-
h.value?.trait === "pixel" || h.value?.trait === "percent" ? I((C(), s(i, {
|
|
926
|
-
key: 0,
|
|
927
|
-
modelValue: _.value,
|
|
928
|
-
"onUpdate:modelValue": n[1] ||= (e) => _.value = e,
|
|
929
|
-
"control-variant": "stacked",
|
|
930
|
-
density: "compact",
|
|
931
|
-
"hide-details": "",
|
|
932
|
-
max: h.value.max,
|
|
933
|
-
min: h.value.min,
|
|
934
|
-
precision: h.value.precision,
|
|
935
|
-
readonly: e.readonly,
|
|
936
|
-
"single-line": "",
|
|
937
|
-
step: h.value.step,
|
|
938
|
-
"onUpdate:focused": v
|
|
939
|
-
}, null, 8, [
|
|
940
|
-
"modelValue",
|
|
941
|
-
"max",
|
|
942
|
-
"min",
|
|
943
|
-
"precision",
|
|
944
|
-
"readonly",
|
|
945
|
-
"step"
|
|
946
|
-
])), [[
|
|
947
|
-
d,
|
|
948
|
-
void 0,
|
|
949
|
-
void 0,
|
|
950
|
-
{ stop: !0 }
|
|
951
|
-
]]) : c("", !0),
|
|
952
|
-
h.value?.trait === "hexColor" ? (C(), s(gt, {
|
|
953
|
-
key: 1,
|
|
954
|
-
modelValue: y.value,
|
|
955
|
-
"onUpdate:modelValue": n[2] ||= (e) => y.value = e
|
|
956
|
-
}, null, 8, ["modelValue"])) : c("", !0),
|
|
957
|
-
h.value?.trait === "themeColor" ? I((C(), s(r, {
|
|
958
|
-
key: 2,
|
|
959
|
-
modelValue: b.value,
|
|
960
|
-
"onUpdate:modelValue": n[3] ||= (e) => b.value = e,
|
|
961
|
-
density: "compact",
|
|
962
|
-
"hide-details": "",
|
|
963
|
-
items: x.value,
|
|
964
|
-
"single-line": ""
|
|
965
|
-
}, null, 8, ["modelValue", "items"])), [[
|
|
966
|
-
d,
|
|
967
|
-
void 0,
|
|
968
|
-
void 0,
|
|
969
|
-
{ stop: !0 }
|
|
970
|
-
]]) : c("", !0)
|
|
971
|
-
]), e.hasDelete ? (C(), s(o, {
|
|
972
|
-
key: 0,
|
|
973
|
-
class: "mx-2",
|
|
974
|
-
density: "compact",
|
|
975
|
-
icon: "mdi-minus",
|
|
976
|
-
variant: "text",
|
|
977
|
-
onClick: n[4] ||= R((e) => a("delete"), ["stop"])
|
|
978
|
-
})) : c("", !0)]);
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
}), Ct = { class: "d-flex justify-space-between align-center" }, wt = /* @__PURE__ */ p({
|
|
982
|
-
__name: "index",
|
|
983
|
-
props: /* @__PURE__ */ _({
|
|
984
|
-
hasDelete: {
|
|
985
|
-
type: Boolean,
|
|
986
|
-
default: !1
|
|
987
|
-
},
|
|
988
|
-
precision: { default: () => void 0 },
|
|
989
|
-
min: { default: () => -Infinity },
|
|
990
|
-
max: { default: () => Infinity },
|
|
991
|
-
step: { default: 1 },
|
|
992
|
-
readonly: {
|
|
993
|
-
type: Boolean,
|
|
994
|
-
default: !1
|
|
995
|
-
}
|
|
996
|
-
}, {
|
|
997
|
-
modelValue: { required: !0 },
|
|
998
|
-
modelModifiers: {}
|
|
999
|
-
}),
|
|
1000
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1001
|
-
setup(e, { emit: t }) {
|
|
1002
|
-
let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
|
|
1003
|
-
if (!t || e.readonly || !n()) return;
|
|
1004
|
-
let i = await _e({
|
|
1005
|
-
title: "",
|
|
1006
|
-
value: r.value,
|
|
1007
|
-
precision: e.precision,
|
|
1008
|
-
min: e.min,
|
|
1009
|
-
max: e.max,
|
|
1010
|
-
step: e.step
|
|
1011
|
-
});
|
|
1012
|
-
i !== void 0 && (r.value = i);
|
|
1013
|
-
};
|
|
1014
|
-
return (t, n) => {
|
|
1015
|
-
let o = D("v-number-input"), u = D("v-btn"), d = O("ripple");
|
|
1016
|
-
return C(), l("div", Ct, [I(f(o, {
|
|
1017
|
-
modelValue: r.value,
|
|
1018
|
-
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1019
|
-
"control-variant": "stacked",
|
|
1020
|
-
density: "compact",
|
|
1021
|
-
"hide-details": "",
|
|
1022
|
-
max: e.max,
|
|
1023
|
-
min: e.min,
|
|
1024
|
-
precision: e.precision,
|
|
1025
|
-
readonly: e.readonly,
|
|
1026
|
-
"single-line": "",
|
|
1027
|
-
step: e.step,
|
|
1028
|
-
"onUpdate:focused": a
|
|
1029
|
-
}, null, 8, [
|
|
1030
|
-
"modelValue",
|
|
1031
|
-
"max",
|
|
1032
|
-
"min",
|
|
1033
|
-
"precision",
|
|
1034
|
-
"readonly",
|
|
1035
|
-
"step"
|
|
1036
|
-
]), [[
|
|
1037
|
-
d,
|
|
1038
|
-
void 0,
|
|
1039
|
-
void 0,
|
|
1040
|
-
{ stop: !0 }
|
|
1041
|
-
]]), e.hasDelete ? (C(), s(u, {
|
|
1042
|
-
key: 0,
|
|
1043
|
-
class: "mx-2",
|
|
1044
|
-
density: "compact",
|
|
1045
|
-
icon: "mdi-minus",
|
|
1046
|
-
variant: "text",
|
|
1047
|
-
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1048
|
-
})) : c("", !0)]);
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
}), Tt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ p({
|
|
1052
|
-
__name: "index",
|
|
1053
|
-
props: /* @__PURE__ */ _({
|
|
1054
|
-
hasDelete: {
|
|
1055
|
-
type: Boolean,
|
|
1056
|
-
default: !1
|
|
1057
|
-
},
|
|
1058
|
-
readonly: {
|
|
1059
|
-
type: Boolean,
|
|
1060
|
-
default: !1
|
|
1061
|
-
},
|
|
1062
|
-
items: {}
|
|
1063
|
-
}, {
|
|
1064
|
-
modelValue: {},
|
|
1065
|
-
modelModifiers: {}
|
|
1066
|
-
}),
|
|
1067
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1068
|
-
setup(e, { emit: t }) {
|
|
1069
|
-
let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
|
|
1070
|
-
let t = [];
|
|
1071
|
-
return re(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1072
|
-
let i = e;
|
|
1073
|
-
r && (i = n(r)), t.push({
|
|
1074
|
-
value: e,
|
|
1075
|
-
title: i
|
|
1076
|
-
});
|
|
1077
|
-
}), t;
|
|
1078
|
-
});
|
|
1079
|
-
return (t, n) => {
|
|
1080
|
-
let o = D("v-select"), u = D("v-btn"), d = O("ripple");
|
|
1081
|
-
return C(), l("div", Tt, [I(f(o, {
|
|
1082
|
-
modelValue: r.value,
|
|
1083
|
-
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1084
|
-
density: "compact",
|
|
1085
|
-
"hide-details": "",
|
|
1086
|
-
items: a.value,
|
|
1087
|
-
readonly: e.readonly,
|
|
1088
|
-
"single-line": ""
|
|
1089
|
-
}, null, 8, [
|
|
1090
|
-
"modelValue",
|
|
1091
|
-
"items",
|
|
1092
|
-
"readonly"
|
|
1093
|
-
]), [[
|
|
1094
|
-
d,
|
|
1095
|
-
void 0,
|
|
1096
|
-
void 0,
|
|
1097
|
-
{ stop: !0 }
|
|
1098
|
-
]]), e.hasDelete ? (C(), s(u, {
|
|
1099
|
-
key: 0,
|
|
1100
|
-
class: "mx-2",
|
|
1101
|
-
density: "compact",
|
|
1102
|
-
icon: "mdi-minus",
|
|
1103
|
-
variant: "text",
|
|
1104
|
-
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1105
|
-
})) : c("", !0)]);
|
|
787
|
+
default: F(() => [u("div", {
|
|
788
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
789
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
790
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
791
|
+
}, [u("div", {
|
|
792
|
+
class: "elevation-2",
|
|
793
|
+
style: y(b.value)
|
|
794
|
+
}, [
|
|
795
|
+
A(a) ? (C(), s(i, {
|
|
796
|
+
key: 0,
|
|
797
|
+
color: "transparent",
|
|
798
|
+
height: 24
|
|
799
|
+
})) : c("", !0),
|
|
800
|
+
f(i, {
|
|
801
|
+
class: "d-flex align-center px-3",
|
|
802
|
+
color: "transparent",
|
|
803
|
+
height: 48
|
|
804
|
+
}, {
|
|
805
|
+
default: F(() => [f(r, {
|
|
806
|
+
density: "comfortable",
|
|
807
|
+
icon: "mdi-close",
|
|
808
|
+
variant: "text",
|
|
809
|
+
onClick: n[1] ||= (e) => E.value = !1
|
|
810
|
+
}), u("span", Ct, k(A(l)([
|
|
811
|
+
"x-prop-tree.select",
|
|
812
|
+
"x-prop-tree.adapt",
|
|
813
|
+
"x-prop-tree.slot"
|
|
814
|
+
])), 1)]),
|
|
815
|
+
_: 1
|
|
816
|
+
}),
|
|
817
|
+
u("div", {
|
|
818
|
+
class: "overflow-y-auto",
|
|
819
|
+
style: y(x.value)
|
|
820
|
+
}, [f(St, {
|
|
821
|
+
modelValue: m.value,
|
|
822
|
+
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
823
|
+
open: A(E),
|
|
824
|
+
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
825
|
+
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
826
|
+
], 4)], 32)]),
|
|
827
|
+
_: 1
|
|
828
|
+
}, 8, ["modelValue"]);
|
|
1106
829
|
};
|
|
1107
830
|
}
|
|
1108
|
-
}),
|
|
831
|
+
}), Tt = { class: "text-label-large ml-1" }, Et = { class: "text-body-small text-grey ml-1" }, Dt = /* @__PURE__ */ p({
|
|
1109
832
|
__name: "group",
|
|
1110
833
|
props: {
|
|
1111
834
|
id: {},
|
|
@@ -1134,12 +857,12 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1134
857
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1135
858
|
size: "small"
|
|
1136
859
|
}, null, 8, ["icon"]),
|
|
1137
|
-
u("span",
|
|
1138
|
-
u("span",
|
|
860
|
+
u("span", Tt, k(i.title), 1),
|
|
861
|
+
u("span", Et, k(i.count), 1)
|
|
1139
862
|
], 36)), [[r]]);
|
|
1140
863
|
};
|
|
1141
864
|
}
|
|
1142
|
-
}),
|
|
865
|
+
}), Ot = { class: "text-body-large ml-6" }, kt = /* @__PURE__ */ p({
|
|
1143
866
|
__name: "item",
|
|
1144
867
|
props: {
|
|
1145
868
|
id: {},
|
|
@@ -1147,27 +870,27 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1147
870
|
},
|
|
1148
871
|
emits: ["x-click"],
|
|
1149
872
|
setup(e, { emit: t }) {
|
|
1150
|
-
let { backgroundColor2: n, highlightColor: r } = H(), i =
|
|
1151
|
-
background:
|
|
873
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
874
|
+
background: s.value ? r.value : n.value,
|
|
1152
875
|
height: "48px",
|
|
1153
876
|
marginTop: "1px",
|
|
1154
877
|
userSelect: "none"
|
|
1155
878
|
}));
|
|
1156
|
-
return (
|
|
1157
|
-
let
|
|
879
|
+
return (e, t) => {
|
|
880
|
+
let n = O("ripple");
|
|
1158
881
|
return I((C(), l("div", {
|
|
1159
882
|
class: "d-flex align-center cursor-pointer",
|
|
1160
|
-
style: y(
|
|
1161
|
-
onClick:
|
|
1162
|
-
onMouseout:
|
|
1163
|
-
onMouseover:
|
|
1164
|
-
}, [u("span",
|
|
883
|
+
style: y(c.value),
|
|
884
|
+
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
885
|
+
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
886
|
+
onMouseover: t[2] ||= (e) => s.value = !0
|
|
887
|
+
}, [u("span", Ot, k(i.title), 1)], 36)), [[n]]);
|
|
1165
888
|
};
|
|
1166
889
|
}
|
|
1167
|
-
}),
|
|
890
|
+
}), At = { key: 0 }, jt = {
|
|
1168
891
|
key: 1,
|
|
1169
892
|
class: "text-body-medium text-grey ml-3"
|
|
1170
|
-
},
|
|
893
|
+
}, Mt = /* @__PURE__ */ p({
|
|
1171
894
|
__name: "index",
|
|
1172
895
|
props: {
|
|
1173
896
|
modelValue: {},
|
|
@@ -1180,13 +903,13 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1180
903
|
},
|
|
1181
904
|
emits: ["update:modelValue", "update:open"],
|
|
1182
905
|
setup(e) {
|
|
1183
|
-
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u =
|
|
906
|
+
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = it(), d = (e) => {
|
|
1184
907
|
let t = r(u, e);
|
|
1185
908
|
t && n(u, e, !t.collapse);
|
|
1186
909
|
}, f = (e) => {
|
|
1187
|
-
i.value = e, o.value = !1;
|
|
910
|
+
i.value = e, o.value = !1, V.emit("refreshDepends");
|
|
1188
911
|
};
|
|
1189
|
-
return (e, n) => A(u).length > 0 ? (C(), l("div",
|
|
912
|
+
return (e, n) => A(u).length > 0 ? (C(), l("div", At, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(Dt, {
|
|
1190
913
|
key: 0,
|
|
1191
914
|
id: e.id,
|
|
1192
915
|
collapse: e.collapse,
|
|
@@ -1198,18 +921,14 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1198
921
|
"collapse",
|
|
1199
922
|
"count",
|
|
1200
923
|
"title"
|
|
1201
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
924
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(kt, {
|
|
1202
925
|
key: 1,
|
|
1203
926
|
id: e.id,
|
|
1204
927
|
title: e.name,
|
|
1205
928
|
onXClick: f
|
|
1206
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
1207
|
-
"x-prop-tree.no",
|
|
1208
|
-
"x-prop-tree.adapt",
|
|
1209
|
-
"x-prop-tree.slot"
|
|
1210
|
-
])), 1));
|
|
929
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", jt, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
1211
930
|
}
|
|
1212
|
-
}),
|
|
931
|
+
}), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
|
|
1213
932
|
__name: "index",
|
|
1214
933
|
props: /* @__PURE__ */ _({
|
|
1215
934
|
hasDelete: {
|
|
@@ -1226,7 +945,7 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1226
945
|
}),
|
|
1227
946
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1228
947
|
setup(e, { emit: t }) {
|
|
1229
|
-
let { t: n } = B(), i =
|
|
948
|
+
let { t: n } = B(), i = be(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
1230
949
|
let e = "100%";
|
|
1231
950
|
return i.mdAndUp.value && (e = "400px"), {
|
|
1232
951
|
background: p.value,
|
|
@@ -1242,8 +961,8 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1242
961
|
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1243
962
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1244
963
|
let e = r(_, m.value);
|
|
1245
|
-
return e ? e.name : n("x-runtime-lib.
|
|
1246
|
-
}), { open: E } = W(`
|
|
964
|
+
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
965
|
+
}), { open: E } = W(`propTreeCompSelectDlg${j()}`);
|
|
1247
966
|
return S(() => {
|
|
1248
967
|
E.value = !1;
|
|
1249
968
|
}), (t, n) => {
|
|
@@ -1295,17 +1014,13 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1295
1014
|
icon: "mdi-close",
|
|
1296
1015
|
variant: "text",
|
|
1297
1016
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1298
|
-
}), u("span",
|
|
1299
|
-
"x-prop-tree.select",
|
|
1300
|
-
"x-prop-tree.adapt",
|
|
1301
|
-
"x-prop-tree.slot"
|
|
1302
|
-
])), 1)]),
|
|
1017
|
+
}), u("span", Nt, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1303
1018
|
_: 1
|
|
1304
1019
|
}),
|
|
1305
1020
|
u("div", {
|
|
1306
1021
|
class: "overflow-y-auto",
|
|
1307
1022
|
style: y(x.value)
|
|
1308
|
-
}, [f(
|
|
1023
|
+
}, [f(Mt, {
|
|
1309
1024
|
modelValue: m.value,
|
|
1310
1025
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1311
1026
|
open: A(E),
|
|
@@ -1316,108 +1031,161 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1316
1031
|
}, 8, ["modelValue"]);
|
|
1317
1032
|
};
|
|
1318
1033
|
}
|
|
1319
|
-
}),
|
|
1320
|
-
__name: "
|
|
1321
|
-
props: {
|
|
1322
|
-
id: {},
|
|
1323
|
-
title: {},
|
|
1324
|
-
collapse: { type: Boolean },
|
|
1325
|
-
count: {}
|
|
1326
|
-
},
|
|
1327
|
-
emits: ["x-click"],
|
|
1328
|
-
setup(e, { emit: t }) {
|
|
1329
|
-
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
1330
|
-
background: s.value ? r.value : n.value,
|
|
1331
|
-
height: "30px",
|
|
1332
|
-
marginTop: "1px",
|
|
1333
|
-
userSelect: "none"
|
|
1334
|
-
}));
|
|
1335
|
-
return (e, t) => {
|
|
1336
|
-
let n = D("v-icon"), r = O("ripple");
|
|
1337
|
-
return I((C(), l("div", {
|
|
1338
|
-
class: "d-flex align-center cursor-pointer",
|
|
1339
|
-
style: y(c.value),
|
|
1340
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
1341
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
1342
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
1343
|
-
}, [
|
|
1344
|
-
f(n, {
|
|
1345
|
-
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1346
|
-
size: "small"
|
|
1347
|
-
}, null, 8, ["icon"]),
|
|
1348
|
-
u("span", Lt, k(i.title), 1),
|
|
1349
|
-
u("span", Rt, k(i.count), 1)
|
|
1350
|
-
], 36)), [[r]]);
|
|
1351
|
-
};
|
|
1352
|
-
}
|
|
1353
|
-
}), Bt = { class: "text-body-large ml-6" }, Vt = /* @__PURE__ */ p({
|
|
1354
|
-
__name: "item",
|
|
1355
|
-
props: {
|
|
1356
|
-
id: {},
|
|
1357
|
-
title: {}
|
|
1358
|
-
},
|
|
1359
|
-
emits: ["x-click"],
|
|
1360
|
-
setup(e, { emit: t }) {
|
|
1361
|
-
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
1362
|
-
background: s.value ? r.value : n.value,
|
|
1363
|
-
height: "48px",
|
|
1364
|
-
marginTop: "1px",
|
|
1365
|
-
userSelect: "none"
|
|
1366
|
-
}));
|
|
1367
|
-
return (e, t) => {
|
|
1368
|
-
let n = O("ripple");
|
|
1369
|
-
return I((C(), l("div", {
|
|
1370
|
-
class: "d-flex align-center cursor-pointer",
|
|
1371
|
-
style: y(c.value),
|
|
1372
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
1373
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
1374
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
1375
|
-
}, [u("span", Bt, k(i.title), 1)], 36)), [[n]]);
|
|
1376
|
-
};
|
|
1377
|
-
}
|
|
1378
|
-
}), Ht = { key: 0 }, Ut = {
|
|
1379
|
-
key: 1,
|
|
1380
|
-
class: "text-body-medium text-grey ml-3"
|
|
1381
|
-
}, Wt = /* @__PURE__ */ p({
|
|
1382
|
-
__name: "index",
|
|
1034
|
+
}), Ft = /* @__PURE__ */ p({
|
|
1035
|
+
__name: "editor",
|
|
1383
1036
|
props: {
|
|
1384
|
-
modelValue: {},
|
|
1037
|
+
modelValue: { required: !0 },
|
|
1385
1038
|
modelModifiers: {},
|
|
1386
|
-
|
|
1039
|
+
lock: {
|
|
1387
1040
|
type: Boolean,
|
|
1388
1041
|
required: !0
|
|
1389
1042
|
},
|
|
1390
|
-
|
|
1043
|
+
lockModifiers: {},
|
|
1044
|
+
scale: { required: !0 },
|
|
1045
|
+
scaleModifiers: {}
|
|
1391
1046
|
},
|
|
1392
|
-
emits: [
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1047
|
+
emits: [
|
|
1048
|
+
"update:modelValue",
|
|
1049
|
+
"update:lock",
|
|
1050
|
+
"update:scale"
|
|
1051
|
+
],
|
|
1052
|
+
setup(e, { expose: t }) {
|
|
1053
|
+
let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = he(), o = ge(), c = Ue(), l = te("target"), u = () => {
|
|
1054
|
+
let e = JSON.parse(n.value);
|
|
1055
|
+
l.value?.load(e);
|
|
1399
1056
|
};
|
|
1400
|
-
return (
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1057
|
+
return t({ save: () => {
|
|
1058
|
+
let e = l.value.save();
|
|
1059
|
+
n.value = JSON.stringify(e, null, 2);
|
|
1060
|
+
} }), (e, t) => (C(), s(A(xe), {
|
|
1061
|
+
ref_key: "target",
|
|
1062
|
+
ref: l,
|
|
1063
|
+
lock: r.value,
|
|
1064
|
+
"onUpdate:lock": t[0] ||= (e) => r.value = e,
|
|
1065
|
+
scale: i.value,
|
|
1066
|
+
"onUpdate:scale": t[1] ||= (e) => i.value = e,
|
|
1067
|
+
dark: A(a),
|
|
1068
|
+
locale: A(o),
|
|
1069
|
+
type: "json",
|
|
1070
|
+
version: A(c),
|
|
1071
|
+
onReady: u
|
|
1407
1072
|
}, null, 8, [
|
|
1408
|
-
"
|
|
1409
|
-
"
|
|
1410
|
-
"
|
|
1411
|
-
"
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1073
|
+
"lock",
|
|
1074
|
+
"scale",
|
|
1075
|
+
"dark",
|
|
1076
|
+
"locale",
|
|
1077
|
+
"version"
|
|
1078
|
+
]));
|
|
1079
|
+
}
|
|
1080
|
+
}), It = { class: "text-body-large" }, Lt = /* @__PURE__ */ p({
|
|
1081
|
+
__name: "index",
|
|
1082
|
+
props: /* @__PURE__ */ _({
|
|
1083
|
+
hasDelete: {
|
|
1084
|
+
type: Boolean,
|
|
1085
|
+
default: !1
|
|
1086
|
+
},
|
|
1087
|
+
readonly: {
|
|
1088
|
+
type: Boolean,
|
|
1089
|
+
default: !1
|
|
1090
|
+
}
|
|
1091
|
+
}, {
|
|
1092
|
+
modelValue: { required: !0 },
|
|
1093
|
+
modelModifiers: {}
|
|
1094
|
+
}),
|
|
1095
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1096
|
+
setup(e, { emit: t }) {
|
|
1097
|
+
let { t: n } = B(), { sysBarAvail: r } = U(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = H(), p = M(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
|
|
1098
|
+
let e = 48;
|
|
1099
|
+
return r.value && (e += 24), {
|
|
1100
|
+
position: "relative",
|
|
1101
|
+
background: a.value,
|
|
1102
|
+
height: `calc(100% - ${e}px)`
|
|
1103
|
+
};
|
|
1104
|
+
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = W(`propTreejsonEditorDlg${j()}`);
|
|
1105
|
+
S(() => {
|
|
1106
|
+
w.value = !1;
|
|
1107
|
+
});
|
|
1108
|
+
let E = te("editor");
|
|
1109
|
+
return N(w, (e) => {
|
|
1110
|
+
e || E.value?.save();
|
|
1111
|
+
}), (t, n) => {
|
|
1112
|
+
let a = D("v-btn"), o = D("v-sheet"), S = D("v-spacer"), T = D("v-dialog");
|
|
1113
|
+
return C(), s(T, {
|
|
1114
|
+
modelValue: A(w),
|
|
1115
|
+
"onUpdate:modelValue": n[5] ||= (e) => g(w) ? w.value = e : null,
|
|
1116
|
+
attach: "",
|
|
1117
|
+
fullscreen: "",
|
|
1118
|
+
"no-click-animation": "",
|
|
1119
|
+
persistent: "",
|
|
1120
|
+
transition: "dialog-bottom-transition",
|
|
1121
|
+
onKeydown: n[6] ||= L(R((e) => w.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1122
|
+
}, {
|
|
1123
|
+
activator: F(({ props: t }) => [f(a, v(t, {
|
|
1124
|
+
block: "",
|
|
1125
|
+
density: "comfortable",
|
|
1126
|
+
readonly: e.readonly
|
|
1127
|
+
}), {
|
|
1128
|
+
default: F(() => [d(k(x.value), 1)]),
|
|
1129
|
+
_: 1
|
|
1130
|
+
}, 16, ["readonly"]), e.hasDelete ? (C(), s(a, {
|
|
1131
|
+
key: 0,
|
|
1132
|
+
class: "mx-2",
|
|
1133
|
+
density: "compact",
|
|
1134
|
+
icon: "mdi-minus",
|
|
1135
|
+
variant: "text",
|
|
1136
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1137
|
+
})) : c("", !0)]),
|
|
1138
|
+
default: F(() => [f(o, {
|
|
1139
|
+
color: A(i),
|
|
1140
|
+
height: "100%",
|
|
1141
|
+
width: "100%"
|
|
1142
|
+
}, {
|
|
1143
|
+
default: F(() => [
|
|
1144
|
+
A(r) ? (C(), s(o, {
|
|
1145
|
+
key: 0,
|
|
1146
|
+
color: A(l),
|
|
1147
|
+
height: 24
|
|
1148
|
+
}, null, 8, ["color"])) : c("", !0),
|
|
1149
|
+
f(o, {
|
|
1150
|
+
class: "d-flex align-center px-2",
|
|
1151
|
+
color: A(l),
|
|
1152
|
+
height: 48
|
|
1153
|
+
}, {
|
|
1154
|
+
default: F(() => [
|
|
1155
|
+
f(a, {
|
|
1156
|
+
density: "comfortable",
|
|
1157
|
+
icon: "mdi-close",
|
|
1158
|
+
variant: "text",
|
|
1159
|
+
onClick: n[1] ||= (e) => w.value = !1
|
|
1160
|
+
}),
|
|
1161
|
+
u("span", It, k(x.value), 1),
|
|
1162
|
+
f(S)
|
|
1163
|
+
]),
|
|
1164
|
+
_: 1
|
|
1165
|
+
}, 8, ["color"]),
|
|
1166
|
+
u("div", { style: y(b.value) }, [f(Ft, {
|
|
1167
|
+
ref_key: "editor",
|
|
1168
|
+
ref: E,
|
|
1169
|
+
modelValue: p.value,
|
|
1170
|
+
"onUpdate:modelValue": n[2] ||= (e) => p.value = e,
|
|
1171
|
+
lock: h.value,
|
|
1172
|
+
"onUpdate:lock": n[3] ||= (e) => h.value = e,
|
|
1173
|
+
scale: _.value,
|
|
1174
|
+
"onUpdate:scale": n[4] ||= (e) => _.value = e
|
|
1175
|
+
}, null, 8, [
|
|
1176
|
+
"modelValue",
|
|
1177
|
+
"lock",
|
|
1178
|
+
"scale"
|
|
1179
|
+
])], 4)
|
|
1180
|
+
]),
|
|
1181
|
+
_: 1
|
|
1182
|
+
}, 8, ["color"])]),
|
|
1183
|
+
_: 1
|
|
1184
|
+
}, 8, ["modelValue"]);
|
|
1185
|
+
};
|
|
1418
1186
|
}
|
|
1419
|
-
}),
|
|
1420
|
-
__name: "
|
|
1187
|
+
}), Rt = { class: "d-flex justify-space-between align-center" }, zt = /* @__PURE__ */ p({
|
|
1188
|
+
__name: "color",
|
|
1421
1189
|
props: /* @__PURE__ */ _({
|
|
1422
1190
|
hasDelete: {
|
|
1423
1191
|
type: Boolean,
|
|
@@ -1433,92 +1201,324 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1433
1201
|
}),
|
|
1434
1202
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1435
1203
|
setup(e, { emit: t }) {
|
|
1436
|
-
let { t: n } = B(),
|
|
1437
|
-
let
|
|
1438
|
-
return
|
|
1439
|
-
|
|
1440
|
-
width: e,
|
|
1441
|
-
height: "100%"
|
|
1442
|
-
};
|
|
1443
|
-
}), x = o(() => {
|
|
1444
|
-
let e = 48;
|
|
1445
|
-
return a.value && (e += 24), {
|
|
1446
|
-
position: "relative",
|
|
1447
|
-
height: `calc(100% - ${e}px)`
|
|
1448
|
-
};
|
|
1449
|
-
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1450
|
-
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1451
|
-
let e = r(_, m.value);
|
|
1452
|
-
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1453
|
-
}), { open: E } = W(`propTreeCompSelectDlg${j()}`);
|
|
1204
|
+
let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
|
|
1205
|
+
let t = "100%";
|
|
1206
|
+
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1207
|
+
}), l = o(() => e.readonly), { open: p } = W(`propTreeColorPickerMenu${j()}`);
|
|
1454
1208
|
return S(() => {
|
|
1455
|
-
|
|
1456
|
-
}), (t,
|
|
1457
|
-
let
|
|
1458
|
-
return C(), s(
|
|
1459
|
-
modelValue: A(
|
|
1460
|
-
"onUpdate:modelValue":
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
persistent: "",
|
|
1464
|
-
transition: "scroll-x-reverse-transition",
|
|
1465
|
-
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1209
|
+
p.value = !1;
|
|
1210
|
+
}), (t, o) => {
|
|
1211
|
+
let m = D("v-btn"), h = D("v-color-picker"), _ = D("v-menu");
|
|
1212
|
+
return C(), s(_, {
|
|
1213
|
+
modelValue: A(p),
|
|
1214
|
+
"onUpdate:modelValue": o[2] ||= (e) => g(p) ? p.value = e : null,
|
|
1215
|
+
"close-on-content-click": !1,
|
|
1216
|
+
scrim: "transparent"
|
|
1466
1217
|
}, {
|
|
1467
|
-
activator: F(({ props: t }) => [
|
|
1218
|
+
activator: F(({ props: t }) => [u("div", Rt, [u("div", {
|
|
1219
|
+
class: "flex-grow-1",
|
|
1220
|
+
style: y(a.value)
|
|
1221
|
+
}, [f(m, v(t, {
|
|
1468
1222
|
block: "",
|
|
1223
|
+
color: r.value,
|
|
1469
1224
|
density: "comfortable",
|
|
1470
|
-
|
|
1225
|
+
disabled: l.value
|
|
1471
1226
|
}), {
|
|
1472
|
-
default: F(() => [d(k(
|
|
1227
|
+
default: F(() => [d(k(r.value ? r.value : A(n)("x-runtime-lib.notSet")), 1)]),
|
|
1473
1228
|
_: 1
|
|
1474
|
-
}, 16, ["
|
|
1229
|
+
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (C(), s(m, {
|
|
1475
1230
|
key: 0,
|
|
1476
1231
|
class: "mx-2",
|
|
1477
1232
|
density: "compact",
|
|
1478
1233
|
icon: "mdi-minus",
|
|
1479
1234
|
variant: "text",
|
|
1480
|
-
onClick:
|
|
1481
|
-
})) : c("", !0)]),
|
|
1482
|
-
default: F(() => [
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
}, [
|
|
1490
|
-
A(a) ? (C(), s(i, {
|
|
1491
|
-
key: 0,
|
|
1492
|
-
color: "transparent",
|
|
1493
|
-
height: 24
|
|
1494
|
-
})) : c("", !0),
|
|
1495
|
-
f(i, {
|
|
1496
|
-
class: "d-flex align-center px-3",
|
|
1497
|
-
color: "transparent",
|
|
1498
|
-
height: 48
|
|
1499
|
-
}, {
|
|
1500
|
-
default: F(() => [f(r, {
|
|
1501
|
-
density: "comfortable",
|
|
1502
|
-
icon: "mdi-close",
|
|
1503
|
-
variant: "text",
|
|
1504
|
-
onClick: n[1] ||= (e) => E.value = !1
|
|
1505
|
-
}), u("span", Gt, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1506
|
-
_: 1
|
|
1507
|
-
}),
|
|
1508
|
-
u("div", {
|
|
1509
|
-
class: "overflow-y-auto",
|
|
1510
|
-
style: y(x.value)
|
|
1511
|
-
}, [f(Wt, {
|
|
1512
|
-
modelValue: m.value,
|
|
1513
|
-
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1514
|
-
open: A(E),
|
|
1515
|
-
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1516
|
-
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1517
|
-
], 4)], 32)]),
|
|
1235
|
+
onClick: o[0] ||= R((e) => i("delete"), ["stop"])
|
|
1236
|
+
})) : c("", !0)])]),
|
|
1237
|
+
default: F(() => [f(h, {
|
|
1238
|
+
modelValue: r.value,
|
|
1239
|
+
"onUpdate:modelValue": o[1] ||= (e) => r.value = e,
|
|
1240
|
+
mode: "hexa",
|
|
1241
|
+
"show-swatches": "",
|
|
1242
|
+
"swatches-max-height": "150px"
|
|
1243
|
+
}, null, 8, ["modelValue"])]),
|
|
1518
1244
|
_: 1
|
|
1519
1245
|
}, 8, ["modelValue"]);
|
|
1520
1246
|
};
|
|
1521
1247
|
}
|
|
1248
|
+
}), Bt = { class: "d-flex justify-space-between align-center my-2" }, Vt = { class: "flex-grow-1" }, Ht = /* @__PURE__ */ p({
|
|
1249
|
+
__name: "index",
|
|
1250
|
+
props: /* @__PURE__ */ _({
|
|
1251
|
+
hasDelete: {
|
|
1252
|
+
type: Boolean,
|
|
1253
|
+
default: !1
|
|
1254
|
+
},
|
|
1255
|
+
readonly: {
|
|
1256
|
+
type: Boolean,
|
|
1257
|
+
default: !1
|
|
1258
|
+
},
|
|
1259
|
+
types: {}
|
|
1260
|
+
}, {
|
|
1261
|
+
modelValue: {},
|
|
1262
|
+
modelModifiers: {}
|
|
1263
|
+
}),
|
|
1264
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1265
|
+
setup(e, { emit: t }) {
|
|
1266
|
+
let { t: n } = B(), { isMobile: r } = U(), i = M(e, "modelValue"), a = t, d = o(() => oe(e.types)), p = T(""), m = o(() => {
|
|
1267
|
+
let e = [];
|
|
1268
|
+
for (let { value: t, title: r } of d.value) e.push({
|
|
1269
|
+
value: t,
|
|
1270
|
+
title: n(r)
|
|
1271
|
+
});
|
|
1272
|
+
return e;
|
|
1273
|
+
});
|
|
1274
|
+
P(() => {
|
|
1275
|
+
for (let { value: e, validator: t } of d.value) if (t(i.value)) {
|
|
1276
|
+
p.value = e;
|
|
1277
|
+
return;
|
|
1278
|
+
}
|
|
1279
|
+
p.value = "";
|
|
1280
|
+
});
|
|
1281
|
+
let h = o(() => d.value.find((e) => e.value === p.value)), g = () => {
|
|
1282
|
+
i.value = h.value?.default;
|
|
1283
|
+
}, _ = T(0), v = async (e) => {
|
|
1284
|
+
if (!e || !r() || !h.value || h.value.trait !== "pixel" && h.value.trait !== "percent") return;
|
|
1285
|
+
let t = await _e({
|
|
1286
|
+
title: "",
|
|
1287
|
+
value: _.value,
|
|
1288
|
+
precision: h.value.precision,
|
|
1289
|
+
min: h.value.min,
|
|
1290
|
+
max: h.value.max,
|
|
1291
|
+
step: h.value.step
|
|
1292
|
+
});
|
|
1293
|
+
t !== void 0 && (_.value = t);
|
|
1294
|
+
};
|
|
1295
|
+
P(() => {
|
|
1296
|
+
h.value?.trait === "pixel" ? _.value = de(i.value) : h.value?.trait === "percent" && (_.value = ue(i.value));
|
|
1297
|
+
}), N(_, (e) => {
|
|
1298
|
+
h.value?.trait === "pixel" ? i.value = e + "px" : h.value?.trait === "percent" && (i.value = e + "%");
|
|
1299
|
+
});
|
|
1300
|
+
let y = T("#ff00ff");
|
|
1301
|
+
P(() => {
|
|
1302
|
+
h.value?.trait === "hexColor" && se(i.value) && (y.value = i.value);
|
|
1303
|
+
}), N(y, (e) => {
|
|
1304
|
+
h.value?.trait === "hexColor" && (i.value = e);
|
|
1305
|
+
});
|
|
1306
|
+
let b = T("primary"), x = o(() => {
|
|
1307
|
+
let e = [];
|
|
1308
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of pe) e.push({
|
|
1309
|
+
value: t,
|
|
1310
|
+
title: n(r)
|
|
1311
|
+
});
|
|
1312
|
+
return e;
|
|
1313
|
+
});
|
|
1314
|
+
return P(() => {
|
|
1315
|
+
h.value?.trait === "themeColor" && ce(i.value) && (b.value = i.value);
|
|
1316
|
+
}), N(b, (e) => {
|
|
1317
|
+
h.value?.trait === "themeColor" && (i.value = e);
|
|
1318
|
+
}), (t, n) => {
|
|
1319
|
+
let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
|
|
1320
|
+
return C(), l("div", Bt, [u("div", Vt, [
|
|
1321
|
+
I(f(r, {
|
|
1322
|
+
modelValue: p.value,
|
|
1323
|
+
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
1324
|
+
density: "compact",
|
|
1325
|
+
"hide-details": "",
|
|
1326
|
+
items: m.value,
|
|
1327
|
+
readonly: e.readonly,
|
|
1328
|
+
"single-line": ""
|
|
1329
|
+
}, null, 8, [
|
|
1330
|
+
"modelValue",
|
|
1331
|
+
"items",
|
|
1332
|
+
"readonly"
|
|
1333
|
+
]), [[
|
|
1334
|
+
d,
|
|
1335
|
+
void 0,
|
|
1336
|
+
void 0,
|
|
1337
|
+
{ stop: !0 }
|
|
1338
|
+
]]),
|
|
1339
|
+
h.value?.trait === "pixel" || h.value?.trait === "percent" ? I((C(), s(i, {
|
|
1340
|
+
key: 0,
|
|
1341
|
+
modelValue: _.value,
|
|
1342
|
+
"onUpdate:modelValue": n[1] ||= (e) => _.value = e,
|
|
1343
|
+
"control-variant": "stacked",
|
|
1344
|
+
density: "compact",
|
|
1345
|
+
"hide-details": "",
|
|
1346
|
+
max: h.value.max,
|
|
1347
|
+
min: h.value.min,
|
|
1348
|
+
precision: h.value.precision,
|
|
1349
|
+
readonly: e.readonly,
|
|
1350
|
+
"single-line": "",
|
|
1351
|
+
step: h.value.step,
|
|
1352
|
+
"onUpdate:focused": v
|
|
1353
|
+
}, null, 8, [
|
|
1354
|
+
"modelValue",
|
|
1355
|
+
"max",
|
|
1356
|
+
"min",
|
|
1357
|
+
"precision",
|
|
1358
|
+
"readonly",
|
|
1359
|
+
"step"
|
|
1360
|
+
])), [[
|
|
1361
|
+
d,
|
|
1362
|
+
void 0,
|
|
1363
|
+
void 0,
|
|
1364
|
+
{ stop: !0 }
|
|
1365
|
+
]]) : c("", !0),
|
|
1366
|
+
h.value?.trait === "hexColor" ? (C(), s(zt, {
|
|
1367
|
+
key: 1,
|
|
1368
|
+
modelValue: y.value,
|
|
1369
|
+
"onUpdate:modelValue": n[2] ||= (e) => y.value = e
|
|
1370
|
+
}, null, 8, ["modelValue"])) : c("", !0),
|
|
1371
|
+
h.value?.trait === "themeColor" ? I((C(), s(r, {
|
|
1372
|
+
key: 2,
|
|
1373
|
+
modelValue: b.value,
|
|
1374
|
+
"onUpdate:modelValue": n[3] ||= (e) => b.value = e,
|
|
1375
|
+
density: "compact",
|
|
1376
|
+
"hide-details": "",
|
|
1377
|
+
items: x.value,
|
|
1378
|
+
"single-line": ""
|
|
1379
|
+
}, null, 8, ["modelValue", "items"])), [[
|
|
1380
|
+
d,
|
|
1381
|
+
void 0,
|
|
1382
|
+
void 0,
|
|
1383
|
+
{ stop: !0 }
|
|
1384
|
+
]]) : c("", !0)
|
|
1385
|
+
]), e.hasDelete ? (C(), s(o, {
|
|
1386
|
+
key: 0,
|
|
1387
|
+
class: "mx-2",
|
|
1388
|
+
density: "compact",
|
|
1389
|
+
icon: "mdi-minus",
|
|
1390
|
+
variant: "text",
|
|
1391
|
+
onClick: n[4] ||= R((e) => a("delete"), ["stop"])
|
|
1392
|
+
})) : c("", !0)]);
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
}), Ut = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PURE__ */ p({
|
|
1396
|
+
__name: "index",
|
|
1397
|
+
props: /* @__PURE__ */ _({
|
|
1398
|
+
hasDelete: {
|
|
1399
|
+
type: Boolean,
|
|
1400
|
+
default: !1
|
|
1401
|
+
},
|
|
1402
|
+
precision: { default: () => void 0 },
|
|
1403
|
+
min: { default: () => -Infinity },
|
|
1404
|
+
max: { default: () => Infinity },
|
|
1405
|
+
step: { default: 1 },
|
|
1406
|
+
readonly: {
|
|
1407
|
+
type: Boolean,
|
|
1408
|
+
default: !1
|
|
1409
|
+
}
|
|
1410
|
+
}, {
|
|
1411
|
+
modelValue: { required: !0 },
|
|
1412
|
+
modelModifiers: {}
|
|
1413
|
+
}),
|
|
1414
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1415
|
+
setup(e, { emit: t }) {
|
|
1416
|
+
let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
|
|
1417
|
+
if (!t || e.readonly || !n()) return;
|
|
1418
|
+
let i = await _e({
|
|
1419
|
+
title: "",
|
|
1420
|
+
value: r.value,
|
|
1421
|
+
precision: e.precision,
|
|
1422
|
+
min: e.min,
|
|
1423
|
+
max: e.max,
|
|
1424
|
+
step: e.step
|
|
1425
|
+
});
|
|
1426
|
+
i !== void 0 && (r.value = i);
|
|
1427
|
+
};
|
|
1428
|
+
return (t, n) => {
|
|
1429
|
+
let o = D("v-number-input"), u = D("v-btn"), d = O("ripple");
|
|
1430
|
+
return C(), l("div", Ut, [I(f(o, {
|
|
1431
|
+
modelValue: r.value,
|
|
1432
|
+
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1433
|
+
"control-variant": "stacked",
|
|
1434
|
+
density: "compact",
|
|
1435
|
+
"hide-details": "",
|
|
1436
|
+
max: e.max,
|
|
1437
|
+
min: e.min,
|
|
1438
|
+
precision: e.precision,
|
|
1439
|
+
readonly: e.readonly,
|
|
1440
|
+
"single-line": "",
|
|
1441
|
+
step: e.step,
|
|
1442
|
+
"onUpdate:focused": a
|
|
1443
|
+
}, null, 8, [
|
|
1444
|
+
"modelValue",
|
|
1445
|
+
"max",
|
|
1446
|
+
"min",
|
|
1447
|
+
"precision",
|
|
1448
|
+
"readonly",
|
|
1449
|
+
"step"
|
|
1450
|
+
]), [[
|
|
1451
|
+
d,
|
|
1452
|
+
void 0,
|
|
1453
|
+
void 0,
|
|
1454
|
+
{ stop: !0 }
|
|
1455
|
+
]]), e.hasDelete ? (C(), s(u, {
|
|
1456
|
+
key: 0,
|
|
1457
|
+
class: "mx-2",
|
|
1458
|
+
density: "compact",
|
|
1459
|
+
icon: "mdi-minus",
|
|
1460
|
+
variant: "text",
|
|
1461
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1462
|
+
})) : c("", !0)]);
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
}), Gt = { class: "d-flex justify-space-between align-center" }, Kt = /* @__PURE__ */ p({
|
|
1466
|
+
__name: "index",
|
|
1467
|
+
props: /* @__PURE__ */ _({
|
|
1468
|
+
hasDelete: {
|
|
1469
|
+
type: Boolean,
|
|
1470
|
+
default: !1
|
|
1471
|
+
},
|
|
1472
|
+
readonly: {
|
|
1473
|
+
type: Boolean,
|
|
1474
|
+
default: !1
|
|
1475
|
+
},
|
|
1476
|
+
items: {}
|
|
1477
|
+
}, {
|
|
1478
|
+
modelValue: {},
|
|
1479
|
+
modelModifiers: {}
|
|
1480
|
+
}),
|
|
1481
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1482
|
+
setup(e, { emit: t }) {
|
|
1483
|
+
let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
|
|
1484
|
+
let t = [];
|
|
1485
|
+
return re(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1486
|
+
let i = e;
|
|
1487
|
+
r && (i = n(r)), t.push({
|
|
1488
|
+
value: e,
|
|
1489
|
+
title: i
|
|
1490
|
+
});
|
|
1491
|
+
}), t;
|
|
1492
|
+
});
|
|
1493
|
+
return (t, n) => {
|
|
1494
|
+
let o = D("v-select"), u = D("v-btn"), d = O("ripple");
|
|
1495
|
+
return C(), l("div", Gt, [I(f(o, {
|
|
1496
|
+
modelValue: r.value,
|
|
1497
|
+
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1498
|
+
density: "compact",
|
|
1499
|
+
"hide-details": "",
|
|
1500
|
+
items: a.value,
|
|
1501
|
+
readonly: e.readonly,
|
|
1502
|
+
"single-line": ""
|
|
1503
|
+
}, null, 8, [
|
|
1504
|
+
"modelValue",
|
|
1505
|
+
"items",
|
|
1506
|
+
"readonly"
|
|
1507
|
+
]), [[
|
|
1508
|
+
d,
|
|
1509
|
+
void 0,
|
|
1510
|
+
void 0,
|
|
1511
|
+
{ stop: !0 }
|
|
1512
|
+
]]), e.hasDelete ? (C(), s(u, {
|
|
1513
|
+
key: 0,
|
|
1514
|
+
class: "mx-2",
|
|
1515
|
+
density: "compact",
|
|
1516
|
+
icon: "mdi-minus",
|
|
1517
|
+
variant: "text",
|
|
1518
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1519
|
+
})) : c("", !0)]);
|
|
1520
|
+
};
|
|
1521
|
+
}
|
|
1522
1522
|
}), qt = { class: "text-body-large ml-6" }, Jt = /* @__PURE__ */ p({
|
|
1523
1523
|
__name: "item",
|
|
1524
1524
|
props: {
|
|
@@ -1587,7 +1587,7 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1587
1587
|
}),
|
|
1588
1588
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1589
1589
|
setup(e, { emit: t }) {
|
|
1590
|
-
let { t: n } = B(), r =
|
|
1590
|
+
let { t: n } = B(), r = be(), { sysBarAvail: i, nameList: a } = U(), { backgroundColor1: l } = H(), p = M(e, "modelValue"), m = t, h = ot(), _ = o(() => {
|
|
1591
1591
|
let e = "100%";
|
|
1592
1592
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1593
1593
|
background: l.value,
|
|
@@ -1685,41 +1685,29 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1685
1685
|
default: !1
|
|
1686
1686
|
}
|
|
1687
1687
|
}, {
|
|
1688
|
-
modelValue: {
|
|
1688
|
+
modelValue: { type: Boolean },
|
|
1689
1689
|
modelModifiers: {}
|
|
1690
1690
|
}),
|
|
1691
1691
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1692
1692
|
setup(e, { emit: t }) {
|
|
1693
|
-
let
|
|
1694
|
-
|
|
1695
|
-
let
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
return (t, n) => {
|
|
1702
|
-
let o = D("v-text-field"), u = D("v-btn"), d = O("ripple");
|
|
1703
|
-
return C(), l("div", en, [I(f(o, {
|
|
1704
|
-
modelValue: r.value,
|
|
1705
|
-
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1693
|
+
let n = M(e, "modelValue"), r = t;
|
|
1694
|
+
return (t, i) => {
|
|
1695
|
+
let a = D("v-switch"), o = D("v-btn");
|
|
1696
|
+
return C(), l("div", en, [f(a, {
|
|
1697
|
+
modelValue: n.value,
|
|
1698
|
+
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1699
|
+
class: "ml-1",
|
|
1700
|
+
color: "primary",
|
|
1706
1701
|
density: "compact",
|
|
1707
1702
|
"hide-details": "",
|
|
1708
|
-
readonly: e.readonly
|
|
1709
|
-
|
|
1710
|
-
"onUpdate:focused": a
|
|
1711
|
-
}, null, 8, ["modelValue", "readonly"]), [[
|
|
1712
|
-
d,
|
|
1713
|
-
void 0,
|
|
1714
|
-
void 0,
|
|
1715
|
-
{ stop: !0 }
|
|
1716
|
-
]]), e.hasDelete ? (C(), s(u, {
|
|
1703
|
+
readonly: e.readonly
|
|
1704
|
+
}, null, 8, ["modelValue", "readonly"]), e.hasDelete ? (C(), s(o, {
|
|
1717
1705
|
key: 0,
|
|
1718
1706
|
class: "mx-2",
|
|
1719
1707
|
density: "compact",
|
|
1720
1708
|
icon: "mdi-minus",
|
|
1721
1709
|
variant: "text",
|
|
1722
|
-
onClick:
|
|
1710
|
+
onClick: i[1] ||= R((e) => r("delete"), ["stop"])
|
|
1723
1711
|
})) : c("", !0)]);
|
|
1724
1712
|
};
|
|
1725
1713
|
}
|
|
@@ -1735,40 +1723,52 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
|
|
|
1735
1723
|
default: !1
|
|
1736
1724
|
}
|
|
1737
1725
|
}, {
|
|
1738
|
-
modelValue: {
|
|
1726
|
+
modelValue: { required: !0 },
|
|
1739
1727
|
modelModifiers: {}
|
|
1740
1728
|
}),
|
|
1741
1729
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1742
1730
|
setup(e, { emit: t }) {
|
|
1743
|
-
let n = M(e, "modelValue"),
|
|
1744
|
-
|
|
1745
|
-
let
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1731
|
+
let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
|
|
1732
|
+
if (!t || e.readonly || !n()) return;
|
|
1733
|
+
let i = await ve({
|
|
1734
|
+
title: "",
|
|
1735
|
+
value: r.value
|
|
1736
|
+
});
|
|
1737
|
+
i !== void 0 && (r.value = i);
|
|
1738
|
+
};
|
|
1739
|
+
return (t, n) => {
|
|
1740
|
+
let o = D("v-text-field"), u = D("v-btn"), d = O("ripple");
|
|
1741
|
+
return C(), l("div", nn, [I(f(o, {
|
|
1742
|
+
modelValue: r.value,
|
|
1743
|
+
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1751
1744
|
density: "compact",
|
|
1752
1745
|
"hide-details": "",
|
|
1753
|
-
readonly: e.readonly
|
|
1754
|
-
|
|
1746
|
+
readonly: e.readonly,
|
|
1747
|
+
"single-line": "",
|
|
1748
|
+
"onUpdate:focused": a
|
|
1749
|
+
}, null, 8, ["modelValue", "readonly"]), [[
|
|
1750
|
+
d,
|
|
1751
|
+
void 0,
|
|
1752
|
+
void 0,
|
|
1753
|
+
{ stop: !0 }
|
|
1754
|
+
]]), e.hasDelete ? (C(), s(u, {
|
|
1755
1755
|
key: 0,
|
|
1756
1756
|
class: "mx-2",
|
|
1757
1757
|
density: "compact",
|
|
1758
1758
|
icon: "mdi-minus",
|
|
1759
1759
|
variant: "text",
|
|
1760
|
-
onClick:
|
|
1760
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1761
1761
|
})) : c("", !0)]);
|
|
1762
1762
|
};
|
|
1763
1763
|
}
|
|
1764
1764
|
});
|
|
1765
1765
|
//#endregion
|
|
1766
|
-
//#region src/composables/uis/
|
|
1766
|
+
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1767
1767
|
function an() {
|
|
1768
1768
|
let e = $();
|
|
1769
|
-
return {
|
|
1770
|
-
if (n.ui !== "
|
|
1771
|
-
return m(
|
|
1769
|
+
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1770
|
+
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1771
|
+
return m(wt, {
|
|
1772
1772
|
modelValue: q(t, n, r, i, a, e),
|
|
1773
1773
|
"onUpdate:modelValue": (o) => {
|
|
1774
1774
|
J(t, n, r, o, i, a, e);
|
|
@@ -1782,8 +1782,27 @@ function an() {
|
|
|
1782
1782
|
} };
|
|
1783
1783
|
}
|
|
1784
1784
|
//#endregion
|
|
1785
|
-
//#region src/composables/uis/
|
|
1785
|
+
//#region src/composables/uis/uiComp.ts
|
|
1786
1786
|
function on() {
|
|
1787
|
+
let e = $();
|
|
1788
|
+
return { renderUiComp: (t, n, r, i, a) => {
|
|
1789
|
+
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1790
|
+
return m(Pt, {
|
|
1791
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1792
|
+
"onUpdate:modelValue": (o) => {
|
|
1793
|
+
J(t, n, r, o, i, a, e);
|
|
1794
|
+
},
|
|
1795
|
+
hasDelete: i !== void 0 && !a,
|
|
1796
|
+
onDelete: () => {
|
|
1797
|
+
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1798
|
+
},
|
|
1799
|
+
readonly: n.readonly
|
|
1800
|
+
});
|
|
1801
|
+
} };
|
|
1802
|
+
}
|
|
1803
|
+
//#endregion
|
|
1804
|
+
//#region src/composables/uis/uiDummy.ts
|
|
1805
|
+
function sn() {
|
|
1787
1806
|
let e = $();
|
|
1788
1807
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1789
1808
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
@@ -1791,12 +1810,12 @@ function on() {
|
|
|
1791
1810
|
} };
|
|
1792
1811
|
}
|
|
1793
1812
|
//#endregion
|
|
1794
|
-
//#region src/composables/uis/
|
|
1795
|
-
function
|
|
1813
|
+
//#region src/composables/uis/uiJson.ts
|
|
1814
|
+
function cn() {
|
|
1796
1815
|
let e = $();
|
|
1797
|
-
return {
|
|
1798
|
-
if (n.ui !== "
|
|
1799
|
-
return m(
|
|
1816
|
+
return { renderUiJson: (t, n, r, i, a) => {
|
|
1817
|
+
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
1818
|
+
return m(Lt, {
|
|
1800
1819
|
modelValue: q(t, n, r, i, a, e) ?? "{}",
|
|
1801
1820
|
"onUpdate:modelValue": (o) => {
|
|
1802
1821
|
J(t, n, r, o, i, a, e);
|
|
@@ -1811,11 +1830,11 @@ function sn() {
|
|
|
1811
1830
|
}
|
|
1812
1831
|
//#endregion
|
|
1813
1832
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
1814
|
-
function
|
|
1833
|
+
function ln() {
|
|
1815
1834
|
let e = $();
|
|
1816
1835
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
1817
1836
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
1818
|
-
return m(
|
|
1837
|
+
return m(Ht, {
|
|
1819
1838
|
modelValue: q(t, n, r, i, a, e) ?? "",
|
|
1820
1839
|
"onUpdate:modelValue": (o) => {
|
|
1821
1840
|
J(t, n, r, o, i, a, e);
|
|
@@ -1829,12 +1848,12 @@ function cn() {
|
|
|
1829
1848
|
} };
|
|
1830
1849
|
}
|
|
1831
1850
|
//#endregion
|
|
1832
|
-
//#region src/composables/uis/
|
|
1833
|
-
function
|
|
1851
|
+
//#region src/composables/uis/uiNumber.ts
|
|
1852
|
+
function un() {
|
|
1834
1853
|
let e = $();
|
|
1835
|
-
return {
|
|
1836
|
-
if (n.ui !== "
|
|
1837
|
-
return m(
|
|
1854
|
+
return { renderUiNumber: (t, n, r, i, a) => {
|
|
1855
|
+
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
1856
|
+
return m(Wt, {
|
|
1838
1857
|
modelValue: q(t, n, r, i, a, e),
|
|
1839
1858
|
"onUpdate:modelValue": (o) => {
|
|
1840
1859
|
J(t, n, r, o, i, a, e);
|
|
@@ -1853,7 +1872,7 @@ function ln() {
|
|
|
1853
1872
|
}
|
|
1854
1873
|
//#endregion
|
|
1855
1874
|
//#region src/components/entry/index.vue
|
|
1856
|
-
var
|
|
1875
|
+
var dn = /* @__PURE__ */ p({
|
|
1857
1876
|
__name: "index",
|
|
1858
1877
|
props: { minHeight: {} },
|
|
1859
1878
|
emits: ["menu"],
|
|
@@ -1881,11 +1900,11 @@ var un = /* @__PURE__ */ p({
|
|
|
1881
1900
|
});
|
|
1882
1901
|
//#endregion
|
|
1883
1902
|
//#region src/composables/uis/uiProperty.ts
|
|
1884
|
-
function
|
|
1903
|
+
function fn() {
|
|
1885
1904
|
let { t: e } = B(), t = tt();
|
|
1886
1905
|
return { renderProperty: (n, r, i) => {
|
|
1887
1906
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
1888
|
-
return Q(t.value, n) && (o += " *"), m(
|
|
1907
|
+
return Q(t.value, n) && (o += " *"), m(dn, {
|
|
1889
1908
|
minHeight: "56px",
|
|
1890
1909
|
onMenu: (e, t) => {
|
|
1891
1910
|
V.emit("propTreeMenu", {
|
|
@@ -1905,11 +1924,11 @@ function dn() {
|
|
|
1905
1924
|
}
|
|
1906
1925
|
//#endregion
|
|
1907
1926
|
//#region src/composables/uis/uiSelect.ts
|
|
1908
|
-
function
|
|
1927
|
+
function pn() {
|
|
1909
1928
|
let e = $();
|
|
1910
1929
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
1911
1930
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
1912
|
-
return m(
|
|
1931
|
+
return m(Kt, {
|
|
1913
1932
|
modelValue: q(t, n, r, i, a, e) ?? "",
|
|
1914
1933
|
"onUpdate:modelValue": (o) => {
|
|
1915
1934
|
J(t, n, r, o, i, a, e);
|
|
@@ -1924,31 +1943,12 @@ function fn() {
|
|
|
1924
1943
|
} };
|
|
1925
1944
|
}
|
|
1926
1945
|
//#endregion
|
|
1927
|
-
//#region src/composables/uis/
|
|
1928
|
-
function pn() {
|
|
1929
|
-
let e = $();
|
|
1930
|
-
return { renderUiSelectAdaptSlot: (t, n, r, i, a) => {
|
|
1931
|
-
if (n.ui !== "selectAdaptSlot") throw Error("useUiSelectAdaptSlot property ui must be selectAdaptSlot");
|
|
1932
|
-
return m(It, {
|
|
1933
|
-
modelValue: q(t, n, r, i, a, e),
|
|
1934
|
-
"onUpdate:modelValue": (o) => {
|
|
1935
|
-
J(t, n, r, o, i, a, e);
|
|
1936
|
-
},
|
|
1937
|
-
hasDelete: i !== void 0 && !a,
|
|
1938
|
-
onDelete: () => {
|
|
1939
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1940
|
-
},
|
|
1941
|
-
readonly: n.readonly
|
|
1942
|
-
});
|
|
1943
|
-
} };
|
|
1944
|
-
}
|
|
1945
|
-
//#endregion
|
|
1946
|
-
//#region src/composables/uis/uiSelectComp.ts
|
|
1946
|
+
//#region src/composables/uis/uiSlot.ts
|
|
1947
1947
|
function mn() {
|
|
1948
1948
|
let e = $();
|
|
1949
|
-
return {
|
|
1950
|
-
if (n.ui !== "
|
|
1951
|
-
return m(
|
|
1949
|
+
return { renderUiSlot: (t, n, r, i, a) => {
|
|
1950
|
+
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
1951
|
+
return m($t, {
|
|
1952
1952
|
modelValue: q(t, n, r, i, a, e),
|
|
1953
1953
|
"onUpdate:modelValue": (o) => {
|
|
1954
1954
|
J(t, n, r, o, i, a, e);
|
|
@@ -1962,31 +1962,31 @@ function mn() {
|
|
|
1962
1962
|
} };
|
|
1963
1963
|
}
|
|
1964
1964
|
//#endregion
|
|
1965
|
-
//#region src/composables/uis/
|
|
1965
|
+
//#region src/composables/uis/uiSwitch.ts
|
|
1966
1966
|
function hn() {
|
|
1967
1967
|
let e = $();
|
|
1968
|
-
return {
|
|
1969
|
-
if (n.ui !== "
|
|
1970
|
-
return m(
|
|
1971
|
-
modelValue: q(t, n, r, i, a, e),
|
|
1968
|
+
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
1969
|
+
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
1970
|
+
return m(tn, {
|
|
1971
|
+
modelValue: q(t, n, r, i, a, e) ?? !1,
|
|
1972
1972
|
"onUpdate:modelValue": (o) => {
|
|
1973
1973
|
J(t, n, r, o, i, a, e);
|
|
1974
1974
|
},
|
|
1975
1975
|
hasDelete: i !== void 0 && !a,
|
|
1976
1976
|
onDelete: () => {
|
|
1977
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0,
|
|
1977
|
+
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, 1), r));
|
|
1978
1978
|
},
|
|
1979
1979
|
readonly: n.readonly
|
|
1980
1980
|
});
|
|
1981
1981
|
} };
|
|
1982
1982
|
}
|
|
1983
1983
|
//#endregion
|
|
1984
|
-
//#region src/composables/uis/
|
|
1984
|
+
//#region src/composables/uis/uiText.ts
|
|
1985
1985
|
function gn() {
|
|
1986
1986
|
let e = $();
|
|
1987
|
-
return {
|
|
1988
|
-
if (n.ui !== "
|
|
1989
|
-
return m(
|
|
1987
|
+
return { renderUiText: (t, n, r, i, a) => {
|
|
1988
|
+
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
1989
|
+
return m(rn, {
|
|
1990
1990
|
modelValue: n.static ? n.value : q(t, n, r, i, a, e),
|
|
1991
1991
|
"onUpdate:modelValue": (o) => {
|
|
1992
1992
|
n.static || J(t, n, r, o, i, a, e);
|
|
@@ -2000,34 +2000,15 @@ function gn() {
|
|
|
2000
2000
|
} };
|
|
2001
2001
|
}
|
|
2002
2002
|
//#endregion
|
|
2003
|
-
//#region src/composables/uis/uiSwitch.ts
|
|
2004
|
-
function _n() {
|
|
2005
|
-
let e = $();
|
|
2006
|
-
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2007
|
-
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2008
|
-
return m(rn, {
|
|
2009
|
-
modelValue: q(t, n, r, i, a, e) ?? !1,
|
|
2010
|
-
"onUpdate:modelValue": (o) => {
|
|
2011
|
-
J(t, n, r, o, i, a, e);
|
|
2012
|
-
},
|
|
2013
|
-
hasDelete: i !== void 0 && !a,
|
|
2014
|
-
onDelete: () => {
|
|
2015
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, 1), r));
|
|
2016
|
-
},
|
|
2017
|
-
readonly: n.readonly
|
|
2018
|
-
});
|
|
2019
|
-
} };
|
|
2020
|
-
}
|
|
2021
|
-
//#endregion
|
|
2022
2003
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2023
|
-
var
|
|
2004
|
+
var _n = "20px", vn = /* @__PURE__ */ p({
|
|
2024
2005
|
__name: "main",
|
|
2025
2006
|
setup(t) {
|
|
2026
2007
|
let { t: n } = B(), { backgroundColor1: r } = H(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
|
|
2027
2008
|
pt(), mt(), ft();
|
|
2028
|
-
let { renderProperty: d } =
|
|
2029
|
-
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 ?
|
|
2030
|
-
},
|
|
2009
|
+
let { renderProperty: d } = fn(), { renderUiDummy: p } = sn(), { renderUiText: h } = gn(), { renderUiNumber: g } = un(), { renderUiSwitch: _ } = hn(), { renderUiSelect: v } = pn(), { renderUiJson: y } = cn(), { renderUiMultiTypes: b } = ln(), { renderUiComp: x } = on(), { renderUiSlot: S } = mn(), { renderUiAdaptSlot: w } = an(), T = (t, n, r, i, a, o) => {
|
|
2010
|
+
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 ? D(t, n, r, i, a) : O(t, n, r, i, a) : n.array ? E(t, n, r, i, a) : ee(t, n, r, i, a);
|
|
2011
|
+
}, E = (e, t, r, i, a) => {
|
|
2031
2012
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2032
2013
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2033
2014
|
let o = Se(e, t, r, i, a, u), l = n(t.name);
|
|
@@ -2049,7 +2030,7 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2049
2030
|
onCreate: () => {
|
|
2050
2031
|
o.push({}), u(e, o);
|
|
2051
2032
|
}
|
|
2052
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2033
|
+
}), f = m("div", { style: { paddingLeft: _n } }, (() => {
|
|
2053
2034
|
let n = [];
|
|
2054
2035
|
for (let r = 0; r < o.length; r++) {
|
|
2055
2036
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
@@ -2074,9 +2055,9 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2074
2055
|
}
|
|
2075
2056
|
});
|
|
2076
2057
|
n.push(l);
|
|
2077
|
-
let d = m("div", { style: { paddingLeft:
|
|
2058
|
+
let d = m("div", { style: { paddingLeft: _n } }, (() => {
|
|
2078
2059
|
let n = [];
|
|
2079
|
-
for (let i of t.children) n.push(
|
|
2060
|
+
for (let i of t.children) n.push(T(e, i, o[r], r, !0));
|
|
2080
2061
|
return n;
|
|
2081
2062
|
})());
|
|
2082
2063
|
Y(s, [...e, r]) || n.push(d);
|
|
@@ -2087,7 +2068,7 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2087
2068
|
let t = [];
|
|
2088
2069
|
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2089
2070
|
})());
|
|
2090
|
-
},
|
|
2071
|
+
}, ee = (e, t, r, i, a) => {
|
|
2091
2072
|
if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2092
2073
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2093
2074
|
let o = n(t.name);
|
|
@@ -2109,16 +2090,16 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2109
2090
|
onDelete: () => {
|
|
2110
2091
|
i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
|
|
2111
2092
|
}
|
|
2112
|
-
}), d = m("div", { style: { paddingLeft:
|
|
2093
|
+
}), d = m("div", { style: { paddingLeft: _n } }, (() => {
|
|
2113
2094
|
let n = [];
|
|
2114
|
-
for (let i of t.children) n.push(
|
|
2095
|
+
for (let i of t.children) n.push(T(e, i, (typeof r[t.key] != "object" && (r[t.key] = {}, u(e, r[t.key])), r[t.key]), void 0, !1));
|
|
2115
2096
|
return n;
|
|
2116
2097
|
})());
|
|
2117
2098
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2118
2099
|
let t = [];
|
|
2119
2100
|
return t.push(l), Y(s, e) || t.push(d), t;
|
|
2120
2101
|
})());
|
|
2121
|
-
},
|
|
2102
|
+
}, D = (e, t, r, i, a) => {
|
|
2122
2103
|
if (!t.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2123
2104
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2124
2105
|
let o = Se(e, t, r, i, a, u), l = n(t.name);
|
|
@@ -2140,30 +2121,30 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2140
2121
|
onCreate: () => {
|
|
2141
2122
|
o.push(z(t)), u(e, o);
|
|
2142
2123
|
}
|
|
2143
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2124
|
+
}), f = m("div", { style: { paddingLeft: _n } }, (() => {
|
|
2144
2125
|
let n = [];
|
|
2145
|
-
for (let r = 0; r < o.length; r++) n.push(
|
|
2126
|
+
for (let r = 0; r < o.length; r++) n.push(T(e, t, o, r, !1, !0));
|
|
2146
2127
|
return n;
|
|
2147
2128
|
})());
|
|
2148
2129
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2149
2130
|
let t = [];
|
|
2150
2131
|
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2151
2132
|
})());
|
|
2152
|
-
},
|
|
2133
|
+
}, O = (e, t, n, r, i) => {
|
|
2153
2134
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
2154
2135
|
let a;
|
|
2155
|
-
return t.ui === "dummy" ? a = p(e, t, n, r, i) : t.ui === "
|
|
2156
|
-
},
|
|
2136
|
+
return t.ui === "dummy" ? a = p(e, t, n, r, i) : t.ui === "text" ? a = h(e, t, n, r, i) : t.ui === "number" ? a = g(e, t, n, r, i) : t.ui === "switch" ? a = _(e, t, n, r, i) : t.ui === "select" ? a = v(e, t, n, r, i) : t.ui === "json" ? a = y(e, t, n, r, i) : t.ui === "multiTypes" ? a = b(e, t, n, r, i) : t.ui === "comp" ? a = x(e, t, n, r, i) : t.ui === "slot" ? a = S(e, t, n, r, i) : t.ui === "adaptSlot" ? a = w(e, t, n, r, i) : console.assert(!1, "renderLeafScalar not implemented"), a ? d(e, t, a) : m("div");
|
|
2137
|
+
}, k = () => m("div", {
|
|
2157
2138
|
class: "text-body-medium",
|
|
2158
2139
|
style: { background: r.value }
|
|
2159
2140
|
}, (() => {
|
|
2160
2141
|
let e = [];
|
|
2161
|
-
if (i.value.length > 0 && o.value) for (let t of i.value) e.push(
|
|
2142
|
+
if (i.value.length > 0 && o.value) for (let t of i.value) e.push(T([], t, o.value, void 0, !1));
|
|
2162
2143
|
return e;
|
|
2163
2144
|
})());
|
|
2164
|
-
return (e, t) => (C(), l(a, null, [f(
|
|
2145
|
+
return (e, t) => (C(), l(a, null, [f(k), f(lt)], 64));
|
|
2165
2146
|
}
|
|
2166
|
-
}),
|
|
2147
|
+
}), yn = /* @__PURE__ */ p({
|
|
2167
2148
|
__name: "index",
|
|
2168
2149
|
props: {
|
|
2169
2150
|
config: {},
|
|
@@ -2206,11 +2187,11 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2206
2187
|
Ae(l, e.config, e.object), n("change", t, r);
|
|
2207
2188
|
}), N([() => e.config, () => e.object], () => {
|
|
2208
2189
|
Ae(l, e.config, e.object);
|
|
2209
|
-
}, { immediate: !0 }), (e, t) => (C(), s(
|
|
2190
|
+
}, { immediate: !0 }), (e, t) => (C(), s(vn));
|
|
2210
2191
|
}
|
|
2211
|
-
}),
|
|
2212
|
-
e.component("XPropTree",
|
|
2213
|
-
},
|
|
2192
|
+
}), bn = (e) => {
|
|
2193
|
+
e.component("XPropTree", yn);
|
|
2194
|
+
}, xn = (e, t, n) => {
|
|
2214
2195
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2215
2196
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2216
2197
|
(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."))));
|
|
@@ -2218,14 +2199,14 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2218
2199
|
};
|
|
2219
2200
|
//#endregion
|
|
2220
2201
|
//#region src/i18n/index.ts
|
|
2221
|
-
async function
|
|
2222
|
-
return (await
|
|
2202
|
+
async function Sn(e) {
|
|
2203
|
+
return (await xn(/* @__PURE__ */ Object.assign({
|
|
2223
2204
|
"./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
|
|
2224
2205
|
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
|
|
2225
2206
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2226
2207
|
}
|
|
2227
2208
|
//#endregion
|
|
2228
2209
|
//#region src/index.ts
|
|
2229
|
-
var
|
|
2210
|
+
var Cn = { install: bn };
|
|
2230
2211
|
//#endregion
|
|
2231
|
-
export {
|
|
2212
|
+
export { Cn as default, Sn as loadLocaleMessagePropTree };
|