x-prop-tree 0.8.8 → 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.
Files changed (2) hide show
  1. package/dist/index.js +759 -777
  2. 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 { XBlockly as be } from "x-block-lib";
8
- import { useDisplay as xe } from "vuetify";
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/colorPicker/index.vue?vue&type=script&setup=true&lang.ts
620
- var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE__ */ p({
621
- __name: "index",
622
- props: /* @__PURE__ */ _({
623
- hasDelete: {
624
- type: Boolean,
625
- default: !1
626
- },
627
- readonly: {
628
- type: Boolean,
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 { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
638
- let t = "100%";
639
- return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
640
- }), l = o(() => e.readonly), { open: p } = W(`propTreeColorPickerMenu${j()}`);
641
- return S(() => {
642
- p.value = !1;
643
- }), (t, o) => {
644
- let m = D("v-btn"), h = D("v-color-picker"), _ = D("v-menu");
645
- return C(), s(_, {
646
- modelValue: A(p),
647
- "onUpdate:modelValue": o[2] ||= (e) => g(p) ? p.value = e : null,
648
- "close-on-content-click": !1,
649
- scrim: "transparent"
650
- }, {
651
- activator: F(({ props: t }) => [u("div", ht, [u("div", {
652
- class: "flex-grow-1",
653
- style: y(a.value)
654
- }, [f(m, v(t, {
655
- block: "",
656
- color: r.value,
657
- density: "comfortable",
658
- disabled: l.value
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
- }), _t = /* @__PURE__ */ p({
682
- __name: "editor",
654
+ }), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
655
+ __name: "item",
683
656
  props: {
684
- modelValue: { required: !0 },
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
- lock: {
687
+ open: {
687
688
  type: Boolean,
688
689
  required: !0
689
690
  },
690
- lockModifiers: {},
691
- scale: { required: !0 },
692
- scaleModifiers: {}
691
+ openModifiers: {}
693
692
  },
694
- emits: [
695
- "update:modelValue",
696
- "update:lock",
697
- "update:scale"
698
- ],
699
- setup(e, { expose: t }) {
700
- let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = he(), o = ge(), c = Ue(), l = te("target"), u = () => {
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 t({ save: () => {
705
- let e = l.value.save();
706
- n.value = JSON.stringify(e, null, 2);
707
- } }), (e, t) => (C(), s(A(be), {
708
- ref_key: "target",
709
- ref: l,
710
- lock: r.value,
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
- "lock",
721
- "scale",
722
- "dark",
723
- "locale",
724
- "version"
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
- }), vt = { class: "text-body-large" }, yt = /* @__PURE__ */ p({
724
+ }), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
728
725
  __name: "index",
729
726
  props: /* @__PURE__ */ _({
730
727
  hasDelete: {
@@ -736,375 +733,102 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
736
733
  default: !1
737
734
  }
738
735
  }, {
739
- modelValue: { required: !0 },
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: r } = U(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = H(), p = M(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
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 r.value && (e += 24), {
750
+ return a.value && (e += 24), {
747
751
  position: "relative",
748
- background: a.value,
749
752
  height: `calc(100% - ${e}px)`
750
753
  };
751
- }), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = W(`propTreejsonEditorDlg${j()}`);
752
- S(() => {
753
- w.value = !1;
754
- });
755
- let E = te("editor");
756
- return N(w, (e) => {
757
- e || E.value?.save();
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 a = D("v-btn"), o = D("v-sheet"), S = D("v-spacer"), T = D("v-dialog");
760
- return C(), s(T, {
761
- modelValue: A(w),
762
- "onUpdate:modelValue": n[5] ||= (e) => g(w) ? w.value = e : null,
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: "dialog-bottom-transition",
768
- onKeydown: n[6] ||= L(R((e) => w.value = !1, ["stop", "prevent"]), ["esc"])
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(a, v(t, {
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(x.value), 1)]),
777
+ default: F(() => [d(k(T.value), 1)]),
776
778
  _: 1
777
- }, 16, ["readonly"]), e.hasDelete ? (C(), s(a, {
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) => m("delete"), ["stop"])
785
+ onClick: n[0] ||= R((e) => h("delete"), ["stop"])
784
786
  })) : c("", !0)]),
785
- default: F(() => [f(o, {
786
- color: A(i),
787
- height: "100%",
788
- width: "100%"
789
- }, {
790
- default: F(() => [
791
- A(r) ? (C(), s(o, {
792
- key: 0,
793
- color: A(l),
794
- height: 24
795
- }, null, 8, ["color"])) : c("", !0),
796
- f(o, {
797
- class: "d-flex align-center px-2",
798
- color: A(l),
799
- height: 48
800
- }, {
801
- default: F(() => [
802
- f(a, {
803
- density: "comfortable",
804
- icon: "mdi-close",
805
- variant: "text",
806
- onClick: n[1] ||= (e) => w.value = !1
807
- }),
808
- u("span", vt, k(x.value), 1),
809
- f(S)
810
- ]),
811
- _: 1
812
- }, 8, ["color"]),
813
- u("div", { style: y(b.value) }, [f(_t, {
814
- ref_key: "editor",
815
- ref: E,
816
- modelValue: p.value,
817
- "onUpdate:modelValue": n[2] ||= (e) => p.value = e,
818
- lock: h.value,
819
- "onUpdate:lock": n[3] ||= (e) => h.value = e,
820
- scale: _.value,
821
- "onUpdate:scale": n[4] ||= (e) => _.value = e
822
- }, null, 8, [
823
- "modelValue",
824
- "lock",
825
- "scale"
826
- ])], 4)
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
- t.push({
1073
- value: e,
1074
- title: n(r)
1075
- });
1076
- }), t;
1077
- });
1078
- return (t, n) => {
1079
- let o = D("v-select"), u = D("v-btn"), d = O("ripple");
1080
- return C(), l("div", Tt, [I(f(o, {
1081
- modelValue: r.value,
1082
- "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1083
- density: "compact",
1084
- "hide-details": "",
1085
- items: a.value,
1086
- readonly: e.readonly,
1087
- "single-line": ""
1088
- }, null, 8, [
1089
- "modelValue",
1090
- "items",
1091
- "readonly"
1092
- ]), [[
1093
- d,
1094
- void 0,
1095
- void 0,
1096
- { stop: !0 }
1097
- ]]), e.hasDelete ? (C(), s(u, {
1098
- key: 0,
1099
- class: "mx-2",
1100
- density: "compact",
1101
- icon: "mdi-minus",
1102
- variant: "text",
1103
- onClick: n[1] ||= R((e) => i("delete"), ["stop"])
1104
- })) : 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"]);
1105
829
  };
1106
830
  }
1107
- }), Dt = { class: "text-label-large ml-1" }, Ot = { class: "text-body-small text-grey ml-1" }, kt = /* @__PURE__ */ p({
831
+ }), Tt = { class: "text-label-large ml-1" }, Et = { class: "text-body-small text-grey ml-1" }, Dt = /* @__PURE__ */ p({
1108
832
  __name: "group",
1109
833
  props: {
1110
834
  id: {},
@@ -1133,12 +857,12 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1133
857
  icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1134
858
  size: "small"
1135
859
  }, null, 8, ["icon"]),
1136
- u("span", Dt, k(i.title), 1),
1137
- u("span", Ot, k(i.count), 1)
860
+ u("span", Tt, k(i.title), 1),
861
+ u("span", Et, k(i.count), 1)
1138
862
  ], 36)), [[r]]);
1139
863
  };
1140
864
  }
1141
- }), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
865
+ }), Ot = { class: "text-body-large ml-6" }, kt = /* @__PURE__ */ p({
1142
866
  __name: "item",
1143
867
  props: {
1144
868
  id: {},
@@ -1146,27 +870,27 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1146
870
  },
1147
871
  emits: ["x-click"],
1148
872
  setup(e, { emit: t }) {
1149
- let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
1150
- background: a.value ? r.value : n.value,
873
+ let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
874
+ background: s.value ? r.value : n.value,
1151
875
  height: "48px",
1152
876
  marginTop: "1px",
1153
877
  userSelect: "none"
1154
878
  }));
1155
- return (t, n) => {
1156
- let r = O("ripple");
879
+ return (e, t) => {
880
+ let n = O("ripple");
1157
881
  return I((C(), l("div", {
1158
882
  class: "d-flex align-center cursor-pointer",
1159
- style: y(s.value),
1160
- onClick: n[0] ||= (t) => i("x-click", e.id),
1161
- onMouseout: n[1] ||= (e) => a.value = !1,
1162
- onMouseover: n[2] ||= (e) => a.value = !0
1163
- }, [u("span", At, k(e.title), 1)], 36)), [[r]]);
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]]);
1164
888
  };
1165
889
  }
1166
- }), Mt = { key: 0 }, Nt = {
890
+ }), At = { key: 0 }, jt = {
1167
891
  key: 1,
1168
892
  class: "text-body-medium text-grey ml-3"
1169
- }, Pt = /* @__PURE__ */ p({
893
+ }, Mt = /* @__PURE__ */ p({
1170
894
  __name: "index",
1171
895
  props: {
1172
896
  modelValue: {},
@@ -1179,13 +903,13 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1179
903
  },
1180
904
  emits: ["update:modelValue", "update:open"],
1181
905
  setup(e) {
1182
- let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = ct(), d = (e) => {
906
+ let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = it(), d = (e) => {
1183
907
  let t = r(u, e);
1184
908
  t && n(u, e, !t.collapse);
1185
909
  }, f = (e) => {
1186
- i.value = e, o.value = !1;
910
+ i.value = e, o.value = !1, V.emit("refreshDepends");
1187
911
  };
1188
- return (e, n) => A(u).length > 0 ? (C(), l("div", Mt, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(kt, {
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, {
1189
913
  key: 0,
1190
914
  id: e.id,
1191
915
  collapse: e.collapse,
@@ -1197,18 +921,14 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1197
921
  "collapse",
1198
922
  "count",
1199
923
  "title"
1200
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
924
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(kt, {
1201
925
  key: 1,
1202
926
  id: e.id,
1203
927
  title: e.name,
1204
928
  onXClick: f
1205
- }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, k(A(t)([
1206
- "x-prop-tree.no",
1207
- "x-prop-tree.adapt",
1208
- "x-prop-tree.slot"
1209
- ])), 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));
1210
930
  }
1211
- }), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
931
+ }), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
1212
932
  __name: "index",
1213
933
  props: /* @__PURE__ */ _({
1214
934
  hasDelete: {
@@ -1225,7 +945,7 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1225
945
  }),
1226
946
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1227
947
  setup(e, { emit: t }) {
1228
- let { t: n } = B(), i = xe(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = ct(), b = o(() => {
948
+ let { t: n } = B(), i = be(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = it(), b = o(() => {
1229
949
  let e = "100%";
1230
950
  return i.mdAndUp.value && (e = "400px"), {
1231
951
  background: p.value,
@@ -1241,8 +961,8 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1241
961
  }), w = o(() => ({ height: "60px" })), T = o(() => {
1242
962
  if (!m.value) return n("x-runtime-lib.notSet");
1243
963
  let e = r(_, m.value);
1244
- return e ? e.name : n("x-runtime-lib.slotNotAvail");
1245
- }), { open: E } = W(`propTreeAdaptSlotSelectDlg${j()}`);
964
+ return e ? e.name : n("x-runtime-lib.compNotAvail");
965
+ }), { open: E } = W(`propTreeCompSelectDlg${j()}`);
1246
966
  return S(() => {
1247
967
  E.value = !1;
1248
968
  }), (t, n) => {
@@ -1294,17 +1014,13 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1294
1014
  icon: "mdi-close",
1295
1015
  variant: "text",
1296
1016
  onClick: n[1] ||= (e) => E.value = !1
1297
- }), u("span", Ft, k(A(l)([
1298
- "x-prop-tree.select",
1299
- "x-prop-tree.adapt",
1300
- "x-prop-tree.slot"
1301
- ])), 1)]),
1017
+ }), u("span", Nt, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1302
1018
  _: 1
1303
1019
  }),
1304
1020
  u("div", {
1305
1021
  class: "overflow-y-auto",
1306
1022
  style: y(x.value)
1307
- }, [f(Pt, {
1023
+ }, [f(Mt, {
1308
1024
  modelValue: m.value,
1309
1025
  "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
1310
1026
  open: A(E),
@@ -1315,108 +1031,161 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1315
1031
  }, 8, ["modelValue"]);
1316
1032
  };
1317
1033
  }
1318
- }), Lt = { class: "text-label-large ml-1" }, Rt = { class: "text-body-small text-grey ml-1" }, zt = /* @__PURE__ */ p({
1319
- __name: "group",
1320
- props: {
1321
- id: {},
1322
- title: {},
1323
- collapse: { type: Boolean },
1324
- count: {}
1325
- },
1326
- emits: ["x-click"],
1327
- setup(e, { emit: t }) {
1328
- let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
1329
- background: s.value ? r.value : n.value,
1330
- height: "30px",
1331
- marginTop: "1px",
1332
- userSelect: "none"
1333
- }));
1334
- return (e, t) => {
1335
- let n = D("v-icon"), r = O("ripple");
1336
- return I((C(), l("div", {
1337
- class: "d-flex align-center cursor-pointer",
1338
- style: y(c.value),
1339
- onClick: t[0] ||= (e) => a("x-click", i.id),
1340
- onMouseout: t[1] ||= (e) => s.value = !1,
1341
- onMouseover: t[2] ||= (e) => s.value = !0
1342
- }, [
1343
- f(n, {
1344
- icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1345
- size: "small"
1346
- }, null, 8, ["icon"]),
1347
- u("span", Lt, k(i.title), 1),
1348
- u("span", Rt, k(i.count), 1)
1349
- ], 36)), [[r]]);
1350
- };
1351
- }
1352
- }), Bt = { class: "text-body-large ml-6" }, Vt = /* @__PURE__ */ p({
1353
- __name: "item",
1354
- props: {
1355
- id: {},
1356
- title: {}
1357
- },
1358
- emits: ["x-click"],
1359
- setup(e, { emit: t }) {
1360
- let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
1361
- background: s.value ? r.value : n.value,
1362
- height: "48px",
1363
- marginTop: "1px",
1364
- userSelect: "none"
1365
- }));
1366
- return (e, t) => {
1367
- let n = O("ripple");
1368
- return I((C(), l("div", {
1369
- class: "d-flex align-center cursor-pointer",
1370
- style: y(c.value),
1371
- onClick: t[0] ||= (e) => a("x-click", i.id),
1372
- onMouseout: t[1] ||= (e) => s.value = !1,
1373
- onMouseover: t[2] ||= (e) => s.value = !0
1374
- }, [u("span", Bt, k(i.title), 1)], 36)), [[n]]);
1375
- };
1376
- }
1377
- }), Ht = { key: 0 }, Ut = {
1378
- key: 1,
1379
- class: "text-body-medium text-grey ml-3"
1380
- }, Wt = /* @__PURE__ */ p({
1381
- __name: "index",
1034
+ }), Ft = /* @__PURE__ */ p({
1035
+ __name: "editor",
1382
1036
  props: {
1383
- modelValue: {},
1037
+ modelValue: { required: !0 },
1384
1038
  modelModifiers: {},
1385
- open: {
1039
+ lock: {
1386
1040
  type: Boolean,
1387
1041
  required: !0
1388
1042
  },
1389
- openModifiers: {}
1043
+ lockModifiers: {},
1044
+ scale: { required: !0 },
1045
+ scaleModifiers: {}
1390
1046
  },
1391
- emits: ["update:modelValue", "update:open"],
1392
- setup(e) {
1393
- let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = it(), d = (e) => {
1394
- let t = r(u, e);
1395
- t && n(u, e, !t.collapse);
1396
- }, f = (e) => {
1397
- i.value = e, o.value = !1, V.emit("refreshDepends");
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);
1398
1056
  };
1399
- return (e, n) => A(u).length > 0 ? (C(), l("div", Ht, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(zt, {
1400
- key: 0,
1401
- id: e.id,
1402
- collapse: e.collapse,
1403
- count: e.count ?? 0,
1404
- title: e.name,
1405
- onXClick: d
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
1406
1072
  }, null, 8, [
1407
- "id",
1408
- "collapse",
1409
- "count",
1410
- "title"
1411
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(Vt, {
1412
- key: 1,
1413
- id: e.id,
1414
- title: e.name,
1415
- onXClick: f
1416
- }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Ut, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
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
+ };
1417
1186
  }
1418
- }), Gt = { class: "text-body-large" }, Kt = /* @__PURE__ */ p({
1419
- __name: "index",
1187
+ }), Rt = { class: "d-flex justify-space-between align-center" }, zt = /* @__PURE__ */ p({
1188
+ __name: "color",
1420
1189
  props: /* @__PURE__ */ _({
1421
1190
  hasDelete: {
1422
1191
  type: Boolean,
@@ -1432,92 +1201,324 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1432
1201
  }),
1433
1202
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1434
1203
  setup(e, { emit: t }) {
1435
- let { t: n } = B(), i = xe(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = it(), b = o(() => {
1436
- let e = "100%";
1437
- return i.mdAndUp.value && (e = "400px"), {
1438
- background: p.value,
1439
- width: e,
1440
- height: "100%"
1441
- };
1442
- }), x = o(() => {
1443
- let e = 48;
1444
- return a.value && (e += 24), {
1445
- position: "relative",
1446
- height: `calc(100% - ${e}px)`
1447
- };
1448
- }), w = o(() => ({ height: "60px" })), T = o(() => {
1449
- if (!m.value) return n("x-runtime-lib.notSet");
1450
- let e = r(_, m.value);
1451
- return e ? e.name : n("x-runtime-lib.compNotAvail");
1452
- }), { 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()}`);
1453
1208
  return S(() => {
1454
- E.value = !1;
1455
- }), (t, n) => {
1456
- let r = D("v-btn"), i = D("v-sheet"), o = D("v-dialog");
1457
- return C(), s(o, {
1458
- modelValue: A(E),
1459
- "onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
1460
- fullscreen: "",
1461
- "no-click-animation": "",
1462
- persistent: "",
1463
- transition: "scroll-x-reverse-transition",
1464
- 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"
1465
1217
  }, {
1466
- activator: F(({ props: t }) => [f(r, v(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, {
1467
1222
  block: "",
1223
+ color: r.value,
1468
1224
  density: "comfortable",
1469
- readonly: e.readonly
1225
+ disabled: l.value
1470
1226
  }), {
1471
- default: F(() => [d(k(T.value), 1)]),
1227
+ default: F(() => [d(k(r.value ? r.value : A(n)("x-runtime-lib.notSet")), 1)]),
1472
1228
  _: 1
1473
- }, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
1229
+ }, 16, ["color", "disabled"])], 4), e.hasDelete ? (C(), s(m, {
1474
1230
  key: 0,
1475
1231
  class: "mx-2",
1476
1232
  density: "compact",
1477
1233
  icon: "mdi-minus",
1478
1234
  variant: "text",
1479
- onClick: n[0] ||= R((e) => h("delete"), ["stop"])
1480
- })) : c("", !0)]),
1481
- default: F(() => [u("div", {
1482
- class: "w-100 h-100 d-flex flex-row-reverse",
1483
- onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
1484
- onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
1485
- }, [u("div", {
1486
- class: "elevation-2",
1487
- style: y(b.value)
1488
- }, [
1489
- A(a) ? (C(), s(i, {
1490
- key: 0,
1491
- color: "transparent",
1492
- height: 24
1493
- })) : c("", !0),
1494
- f(i, {
1495
- class: "d-flex align-center px-3",
1496
- color: "transparent",
1497
- height: 48
1498
- }, {
1499
- default: F(() => [f(r, {
1500
- density: "comfortable",
1501
- icon: "mdi-close",
1502
- variant: "text",
1503
- onClick: n[1] ||= (e) => E.value = !1
1504
- }), u("span", Gt, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1505
- _: 1
1506
- }),
1507
- u("div", {
1508
- class: "overflow-y-auto",
1509
- style: y(x.value)
1510
- }, [f(Wt, {
1511
- modelValue: m.value,
1512
- "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
1513
- open: A(E),
1514
- "onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
1515
- }, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
1516
- ], 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"])]),
1517
1244
  _: 1
1518
1245
  }, 8, ["modelValue"]);
1519
1246
  };
1520
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
+ }
1521
1522
  }), qt = { class: "text-body-large ml-6" }, Jt = /* @__PURE__ */ p({
1522
1523
  __name: "item",
1523
1524
  props: {
@@ -1586,7 +1587,7 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1586
1587
  }),
1587
1588
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1588
1589
  setup(e, { emit: t }) {
1589
- let { t: n } = B(), r = xe(), { sysBarAvail: i, nameList: a } = U(), { backgroundColor1: l } = H(), p = M(e, "modelValue"), m = t, h = ot(), _ = o(() => {
1590
+ let { t: n } = B(), r = be(), { sysBarAvail: i, nameList: a } = U(), { backgroundColor1: l } = H(), p = M(e, "modelValue"), m = t, h = ot(), _ = o(() => {
1590
1591
  let e = "100%";
1591
1592
  return r.mdAndUp.value && (e = "400px"), {
1592
1593
  background: l.value,
@@ -1684,41 +1685,29 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1684
1685
  default: !1
1685
1686
  }
1686
1687
  }, {
1687
- modelValue: { required: !0 },
1688
+ modelValue: { type: Boolean },
1688
1689
  modelModifiers: {}
1689
1690
  }),
1690
1691
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1691
1692
  setup(e, { emit: t }) {
1692
- let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
1693
- if (!t || e.readonly || !n()) return;
1694
- let i = await ve({
1695
- title: "",
1696
- value: r.value
1697
- });
1698
- i !== void 0 && (r.value = i);
1699
- };
1700
- return (t, n) => {
1701
- let o = D("v-text-field"), u = D("v-btn"), d = O("ripple");
1702
- return C(), l("div", en, [I(f(o, {
1703
- modelValue: r.value,
1704
- "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",
1705
1701
  density: "compact",
1706
1702
  "hide-details": "",
1707
- readonly: e.readonly,
1708
- "single-line": "",
1709
- "onUpdate:focused": a
1710
- }, null, 8, ["modelValue", "readonly"]), [[
1711
- d,
1712
- void 0,
1713
- void 0,
1714
- { stop: !0 }
1715
- ]]), e.hasDelete ? (C(), s(u, {
1703
+ readonly: e.readonly
1704
+ }, null, 8, ["modelValue", "readonly"]), e.hasDelete ? (C(), s(o, {
1716
1705
  key: 0,
1717
1706
  class: "mx-2",
1718
1707
  density: "compact",
1719
1708
  icon: "mdi-minus",
1720
1709
  variant: "text",
1721
- onClick: n[1] ||= R((e) => i("delete"), ["stop"])
1710
+ onClick: i[1] ||= R((e) => r("delete"), ["stop"])
1722
1711
  })) : c("", !0)]);
1723
1712
  };
1724
1713
  }
@@ -1734,40 +1723,52 @@ var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE
1734
1723
  default: !1
1735
1724
  }
1736
1725
  }, {
1737
- modelValue: { type: Boolean },
1726
+ modelValue: { required: !0 },
1738
1727
  modelModifiers: {}
1739
1728
  }),
1740
1729
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1741
1730
  setup(e, { emit: t }) {
1742
- let n = M(e, "modelValue"), r = t;
1743
- return (t, i) => {
1744
- let a = D("v-switch"), o = D("v-btn");
1745
- return C(), l("div", nn, [f(a, {
1746
- modelValue: n.value,
1747
- "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
1748
- class: "ml-1",
1749
- color: "primary",
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,
1750
1744
  density: "compact",
1751
1745
  "hide-details": "",
1752
- readonly: e.readonly
1753
- }, null, 8, ["modelValue", "readonly"]), e.hasDelete ? (C(), s(o, {
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, {
1754
1755
  key: 0,
1755
1756
  class: "mx-2",
1756
1757
  density: "compact",
1757
1758
  icon: "mdi-minus",
1758
1759
  variant: "text",
1759
- onClick: i[1] ||= R((e) => r("delete"), ["stop"])
1760
+ onClick: n[1] ||= R((e) => i("delete"), ["stop"])
1760
1761
  })) : c("", !0)]);
1761
1762
  };
1762
1763
  }
1763
1764
  });
1764
1765
  //#endregion
1765
- //#region src/composables/uis/uiColorPicker.ts
1766
+ //#region src/composables/uis/uiAdaptSlot.ts
1766
1767
  function an() {
1767
1768
  let e = $();
1768
- return { renderUiColorPicker: (t, n, r, i, a) => {
1769
- if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
1770
- return m(gt, {
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, {
1771
1772
  modelValue: q(t, n, r, i, a, e),
1772
1773
  "onUpdate:modelValue": (o) => {
1773
1774
  J(t, n, r, o, i, a, e);
@@ -1781,8 +1782,27 @@ function an() {
1781
1782
  } };
1782
1783
  }
1783
1784
  //#endregion
1784
- //#region src/composables/uis/uiDummy.ts
1785
+ //#region src/composables/uis/uiComp.ts
1785
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() {
1786
1806
  let e = $();
1787
1807
  return { renderUiDummy: (t, n, r, i, a) => {
1788
1808
  if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
@@ -1790,12 +1810,12 @@ function on() {
1790
1810
  } };
1791
1811
  }
1792
1812
  //#endregion
1793
- //#region src/composables/uis/uiJsonEditor.ts
1794
- function sn() {
1813
+ //#region src/composables/uis/uiJson.ts
1814
+ function cn() {
1795
1815
  let e = $();
1796
- return { renderUiJsonEditor: (t, n, r, i, a) => {
1797
- if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
1798
- return m(yt, {
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, {
1799
1819
  modelValue: q(t, n, r, i, a, e) ?? "{}",
1800
1820
  "onUpdate:modelValue": (o) => {
1801
1821
  J(t, n, r, o, i, a, e);
@@ -1810,11 +1830,11 @@ function sn() {
1810
1830
  }
1811
1831
  //#endregion
1812
1832
  //#region src/composables/uis/uiMultiTypes.ts
1813
- function cn() {
1833
+ function ln() {
1814
1834
  let e = $();
1815
1835
  return { renderUiMultiTypes: (t, n, r, i, a) => {
1816
1836
  if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
1817
- return m(St, {
1837
+ return m(Ht, {
1818
1838
  modelValue: q(t, n, r, i, a, e) ?? "",
1819
1839
  "onUpdate:modelValue": (o) => {
1820
1840
  J(t, n, r, o, i, a, e);
@@ -1828,12 +1848,12 @@ function cn() {
1828
1848
  } };
1829
1849
  }
1830
1850
  //#endregion
1831
- //#region src/composables/uis/uiNumInput.ts
1832
- function ln() {
1851
+ //#region src/composables/uis/uiNumber.ts
1852
+ function un() {
1833
1853
  let e = $();
1834
- return { renderUiNumInput: (t, n, r, i, a) => {
1835
- if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
1836
- return m(wt, {
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, {
1837
1857
  modelValue: q(t, n, r, i, a, e),
1838
1858
  "onUpdate:modelValue": (o) => {
1839
1859
  J(t, n, r, o, i, a, e);
@@ -1852,7 +1872,7 @@ function ln() {
1852
1872
  }
1853
1873
  //#endregion
1854
1874
  //#region src/components/entry/index.vue
1855
- var un = /* @__PURE__ */ p({
1875
+ var dn = /* @__PURE__ */ p({
1856
1876
  __name: "index",
1857
1877
  props: { minHeight: {} },
1858
1878
  emits: ["menu"],
@@ -1880,11 +1900,11 @@ var un = /* @__PURE__ */ p({
1880
1900
  });
1881
1901
  //#endregion
1882
1902
  //#region src/composables/uis/uiProperty.ts
1883
- function dn() {
1903
+ function fn() {
1884
1904
  let { t: e } = B(), t = tt();
1885
1905
  return { renderProperty: (n, r, i) => {
1886
1906
  let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
1887
- return Q(t.value, n) && (o += " *"), m(un, {
1907
+ return Q(t.value, n) && (o += " *"), m(dn, {
1888
1908
  minHeight: "56px",
1889
1909
  onMenu: (e, t) => {
1890
1910
  V.emit("propTreeMenu", {
@@ -1904,11 +1924,11 @@ function dn() {
1904
1924
  }
1905
1925
  //#endregion
1906
1926
  //#region src/composables/uis/uiSelect.ts
1907
- function fn() {
1927
+ function pn() {
1908
1928
  let e = $();
1909
1929
  return { renderUiSelect: (t, n, r, i, a) => {
1910
1930
  if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
1911
- return m(Et, {
1931
+ return m(Kt, {
1912
1932
  modelValue: q(t, n, r, i, a, e) ?? "",
1913
1933
  "onUpdate:modelValue": (o) => {
1914
1934
  J(t, n, r, o, i, a, e);
@@ -1923,31 +1943,12 @@ function fn() {
1923
1943
  } };
1924
1944
  }
1925
1945
  //#endregion
1926
- //#region src/composables/uis/uiSelectAdaptSlot.ts
1927
- function pn() {
1928
- let e = $();
1929
- return { renderUiSelectAdaptSlot: (t, n, r, i, a) => {
1930
- if (n.ui !== "selectAdaptSlot") throw Error("useUiSelectAdaptSlot property ui must be selectAdaptSlot");
1931
- return m(It, {
1932
- modelValue: q(t, n, r, i, a, e),
1933
- "onUpdate:modelValue": (o) => {
1934
- J(t, n, r, o, i, a, e);
1935
- },
1936
- hasDelete: i !== void 0 && !a,
1937
- onDelete: () => {
1938
- i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
1939
- },
1940
- readonly: n.readonly
1941
- });
1942
- } };
1943
- }
1944
- //#endregion
1945
- //#region src/composables/uis/uiSelectComp.ts
1946
+ //#region src/composables/uis/uiSlot.ts
1946
1947
  function mn() {
1947
1948
  let e = $();
1948
- return { renderUiSelectComp: (t, n, r, i, a) => {
1949
- if (n.ui !== "selectComp") throw Error("renderUiSelectComp property ui must be selectComp");
1950
- return m(Kt, {
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, {
1951
1952
  modelValue: q(t, n, r, i, a, e),
1952
1953
  "onUpdate:modelValue": (o) => {
1953
1954
  J(t, n, r, o, i, a, e);
@@ -1961,31 +1962,31 @@ function mn() {
1961
1962
  } };
1962
1963
  }
1963
1964
  //#endregion
1964
- //#region src/composables/uis/uiSelectSlot.ts
1965
+ //#region src/composables/uis/uiSwitch.ts
1965
1966
  function hn() {
1966
1967
  let e = $();
1967
- return { renderUiSelectSlot: (t, n, r, i, a) => {
1968
- if (n.ui !== "selectSlot") throw Error("renderUiSelectSlot property ui must be selectSlot");
1969
- return m($t, {
1970
- 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,
1971
1972
  "onUpdate:modelValue": (o) => {
1972
1973
  J(t, n, r, o, i, a, e);
1973
1974
  },
1974
1975
  hasDelete: i !== void 0 && !a,
1975
1976
  onDelete: () => {
1976
- i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
1977
+ i === void 0 || a || (r.splice(i, 1), e(t.slice(0, 1), r));
1977
1978
  },
1978
1979
  readonly: n.readonly
1979
1980
  });
1980
1981
  } };
1981
1982
  }
1982
1983
  //#endregion
1983
- //#region src/composables/uis/uiStrInput.ts
1984
+ //#region src/composables/uis/uiText.ts
1984
1985
  function gn() {
1985
1986
  let e = $();
1986
- return { renderUiStrInput: (t, n, r, i, a) => {
1987
- if (n.ui !== "strInput") throw Error("renderUiStrInput property ui must be strInput");
1988
- return m(tn, {
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, {
1989
1990
  modelValue: n.static ? n.value : q(t, n, r, i, a, e),
1990
1991
  "onUpdate:modelValue": (o) => {
1991
1992
  n.static || J(t, n, r, o, i, a, e);
@@ -1999,34 +2000,15 @@ function gn() {
1999
2000
  } };
2000
2001
  }
2001
2002
  //#endregion
2002
- //#region src/composables/uis/uiSwitch.ts
2003
- function _n() {
2004
- let e = $();
2005
- return { renderUiSwitch: (t, n, r, i, a) => {
2006
- if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
2007
- return m(rn, {
2008
- modelValue: q(t, n, r, i, a, e) ?? !1,
2009
- "onUpdate:modelValue": (o) => {
2010
- J(t, n, r, o, i, a, e);
2011
- },
2012
- hasDelete: i !== void 0 && !a,
2013
- onDelete: () => {
2014
- i === void 0 || a || (r.splice(i, 1), e(t.slice(0, 1), r));
2015
- },
2016
- readonly: n.readonly
2017
- });
2018
- } };
2019
- }
2020
- //#endregion
2021
2003
  //#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
2022
- var vn = "20px", yn = /* @__PURE__ */ p({
2004
+ var _n = "20px", vn = /* @__PURE__ */ p({
2023
2005
  __name: "main",
2024
2006
  setup(t) {
2025
2007
  let { t: n } = B(), { backgroundColor1: r } = H(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
2026
2008
  pt(), mt(), ft();
2027
- let { renderProperty: d } = dn(), { renderUiDummy: p } = on(), { renderUiStrInput: h } = gn(), { renderUiNumInput: g } = ln(), { renderUiSwitch: _ } = _n(), { renderUiSelect: v } = fn(), { renderUiColorPicker: y } = an(), { renderUiJsonEditor: b } = sn(), { renderUiMultiTypes: x } = cn(), { renderUiSelectComp: S } = mn(), { renderUiSelectSlot: w } = hn(), { renderUiSelectAdaptSlot: T } = pn(), E = (t, n, r, i, a, o) => {
2028
- 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 ? O(t, n, r, i, a) : k(t, n, r, i, a) : n.array ? ee(t, n, r, i, a) : D(t, n, r, i, a);
2029
- }, ee = (e, t, r, i, a) => {
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) => {
2030
2012
  if (t.ui) throw Error("renderBranchArray property ui must be invalid");
2031
2013
  if (!t.array) throw Error("renderBranchArray property array must be valid");
2032
2014
  let o = Se(e, t, r, i, a, u), l = n(t.name);
@@ -2048,7 +2030,7 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2048
2030
  onCreate: () => {
2049
2031
  o.push({}), u(e, o);
2050
2032
  }
2051
- }), f = m("div", { style: { paddingLeft: vn } }, (() => {
2033
+ }), f = m("div", { style: { paddingLeft: _n } }, (() => {
2052
2034
  let n = [];
2053
2035
  for (let r = 0; r < o.length; r++) {
2054
2036
  let i = [...e, r], a = `[${r + 1}]`;
@@ -2073,9 +2055,9 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2073
2055
  }
2074
2056
  });
2075
2057
  n.push(l);
2076
- let d = m("div", { style: { paddingLeft: vn } }, (() => {
2058
+ let d = m("div", { style: { paddingLeft: _n } }, (() => {
2077
2059
  let n = [];
2078
- for (let i of t.children) n.push(E(e, i, o[r], r, !0));
2060
+ for (let i of t.children) n.push(T(e, i, o[r], r, !0));
2079
2061
  return n;
2080
2062
  })());
2081
2063
  Y(s, [...e, r]) || n.push(d);
@@ -2086,7 +2068,7 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2086
2068
  let t = [];
2087
2069
  return t.push(d), Y(s, e) || t.push(f), t;
2088
2070
  })());
2089
- }, D = (e, t, r, i, a) => {
2071
+ }, ee = (e, t, r, i, a) => {
2090
2072
  if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
2091
2073
  if (t.array) throw Error("renderBranchScalar property array must be invalid");
2092
2074
  let o = n(t.name);
@@ -2108,16 +2090,16 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2108
2090
  onDelete: () => {
2109
2091
  i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
2110
2092
  }
2111
- }), d = m("div", { style: { paddingLeft: vn } }, (() => {
2093
+ }), d = m("div", { style: { paddingLeft: _n } }, (() => {
2112
2094
  let n = [];
2113
- for (let i of t.children) n.push(E(e, i, (typeof r[t.key] != "object" && (r[t.key] = {}, u(e, r[t.key])), r[t.key]), void 0, !1));
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));
2114
2096
  return n;
2115
2097
  })());
2116
2098
  return m("div", { style: { marginTop: "1px" } }, (() => {
2117
2099
  let t = [];
2118
2100
  return t.push(l), Y(s, e) || t.push(d), t;
2119
2101
  })());
2120
- }, O = (e, t, r, i, a) => {
2102
+ }, D = (e, t, r, i, a) => {
2121
2103
  if (!t.ui) throw Error("renderLeafArray property ui must be valid");
2122
2104
  if (!t.array) throw Error("renderLeafArray property array must be valid");
2123
2105
  let o = Se(e, t, r, i, a, u), l = n(t.name);
@@ -2139,30 +2121,30 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2139
2121
  onCreate: () => {
2140
2122
  o.push(z(t)), u(e, o);
2141
2123
  }
2142
- }), f = m("div", { style: { paddingLeft: vn } }, (() => {
2124
+ }), f = m("div", { style: { paddingLeft: _n } }, (() => {
2143
2125
  let n = [];
2144
- for (let r = 0; r < o.length; r++) n.push(E(e, t, o, r, !1, !0));
2126
+ for (let r = 0; r < o.length; r++) n.push(T(e, t, o, r, !1, !0));
2145
2127
  return n;
2146
2128
  })());
2147
2129
  return m("div", { style: { marginTop: "1px" } }, (() => {
2148
2130
  let t = [];
2149
2131
  return t.push(d), Y(s, e) || t.push(f), t;
2150
2132
  })());
2151
- }, k = (e, t, n, r, i) => {
2133
+ }, O = (e, t, n, r, i) => {
2152
2134
  if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
2153
2135
  let a;
2154
- return t.ui === "dummy" ? a = p(e, t, n, r, i) : t.ui === "strInput" ? a = h(e, t, n, r, i) : t.ui === "numInput" ? 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 === "colorPicker" ? a = y(e, t, n, r, i) : t.ui === "jsonEditor" ? a = b(e, t, n, r, i) : t.ui === "multiTypes" ? a = x(e, t, n, r, i) : t.ui === "selectComp" ? a = S(e, t, n, r, i) : t.ui === "selectSlot" ? a = w(e, t, n, r, i) : t.ui === "selectAdaptSlot" ? a = T(e, t, n, r, i) : console.assert(!1, "renderLeafScalar not implemented"), a ? d(e, t, a) : m("div");
2155
- }, A = () => m("div", {
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", {
2156
2138
  class: "text-body-medium",
2157
2139
  style: { background: r.value }
2158
2140
  }, (() => {
2159
2141
  let e = [];
2160
- if (i.value.length > 0 && o.value) for (let t of i.value) e.push(E([], t, o.value, void 0, !1));
2142
+ if (i.value.length > 0 && o.value) for (let t of i.value) e.push(T([], t, o.value, void 0, !1));
2161
2143
  return e;
2162
2144
  })());
2163
- return (e, t) => (C(), l(a, null, [f(A), f(lt)], 64));
2145
+ return (e, t) => (C(), l(a, null, [f(k), f(lt)], 64));
2164
2146
  }
2165
- }), bn = /* @__PURE__ */ p({
2147
+ }), yn = /* @__PURE__ */ p({
2166
2148
  __name: "index",
2167
2149
  props: {
2168
2150
  config: {},
@@ -2205,11 +2187,11 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2205
2187
  Ae(l, e.config, e.object), n("change", t, r);
2206
2188
  }), N([() => e.config, () => e.object], () => {
2207
2189
  Ae(l, e.config, e.object);
2208
- }, { immediate: !0 }), (e, t) => (C(), s(yn));
2190
+ }, { immediate: !0 }), (e, t) => (C(), s(vn));
2209
2191
  }
2210
- }), xn = (e) => {
2211
- e.component("XPropTree", bn);
2212
- }, Sn = (e, t, n) => {
2192
+ }), bn = (e) => {
2193
+ e.component("XPropTree", yn);
2194
+ }, xn = (e, t, n) => {
2213
2195
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
2214
2196
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
2215
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."))));
@@ -2217,14 +2199,14 @@ var vn = "20px", yn = /* @__PURE__ */ p({
2217
2199
  };
2218
2200
  //#endregion
2219
2201
  //#region src/i18n/index.ts
2220
- async function Cn(e) {
2221
- return (await Sn(/* @__PURE__ */ Object.assign({
2202
+ async function Sn(e) {
2203
+ return (await xn(/* @__PURE__ */ Object.assign({
2222
2204
  "./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
2223
2205
  "./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
2224
2206
  }), `./locales/${e}/index.ts`, 4)).default;
2225
2207
  }
2226
2208
  //#endregion
2227
2209
  //#region src/index.ts
2228
- var wn = { install: xn };
2210
+ var Cn = { install: bn };
2229
2211
  //#endregion
2230
- export { wn as default, Cn as loadLocaleMessagePropTree };
2212
+ export { Cn as default, Sn as loadLocaleMessagePropTree };