x-prop-tree 0.8.6 → 0.8.8
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.d.ts +10 -5
- package/dist/index.js +576 -576
- package/dist/{vendor.kbufw3jy.js → vendor.jothdq5o.js} +111 -110
- package/package.json +24 -20
- package/dist/components/entry/index.vue.d.ts +0 -20
- package/dist/components/index.d.ts +0 -4
- package/dist/components/menu/index.vue.d.ts +0 -3
- package/dist/components/propTree/index.vue.d.ts +0 -15
- package/dist/components/propTree/main.vue.d.ts +0 -3
- package/dist/components/title/index.vue.d.ts +0 -20
- package/dist/components/values/adaptSlotSelect/adaptSlotList/group.vue.d.ts +0 -13
- package/dist/components/values/adaptSlotSelect/adaptSlotList/index.vue.d.ts +0 -13
- package/dist/components/values/adaptSlotSelect/adaptSlotList/item.vue.d.ts +0 -11
- package/dist/components/values/adaptSlotSelect/index.vue.d.ts +0 -17
- package/dist/components/values/colorPicker/index.vue.d.ts +0 -17
- package/dist/components/values/compSelect/compList/group.vue.d.ts +0 -13
- package/dist/components/values/compSelect/compList/index.vue.d.ts +0 -13
- package/dist/components/values/compSelect/compList/item.vue.d.ts +0 -11
- package/dist/components/values/compSelect/index.vue.d.ts +0 -17
- package/dist/components/values/iconSelect/index.vue.d.ts +0 -11
- package/dist/components/values/iconSelect/item.vue.d.ts +0 -3
- package/dist/components/values/iconSelect/materialDesignIcons.d.ts +0 -11
- package/dist/components/values/index.d.ts +0 -12
- package/dist/components/values/jsonEditor/editor.vue.d.ts +0 -18
- package/dist/components/values/jsonEditor/index.vue.d.ts +0 -17
- package/dist/components/values/multiTypes/index.vue.d.ts +0 -18
- package/dist/components/values/numInput/index.vue.d.ts +0 -21
- package/dist/components/values/select/index.vue.d.ts +0 -18
- package/dist/components/values/slotSelect/index.vue.d.ts +0 -17
- package/dist/components/values/slotSelect/slotList/index.vue.d.ts +0 -13
- package/dist/components/values/slotSelect/slotList/item.vue.d.ts +0 -11
- package/dist/components/values/strInput/index.vue.d.ts +0 -17
- package/dist/components/values/switch/index.vue.d.ts +0 -17
- package/dist/composables/adaptSlotList/index.d.ts +0 -1
- package/dist/composables/compList/index.d.ts +0 -1
- package/dist/composables/slotList/index.d.ts +0 -1
- package/dist/composables/uis/index.d.ts +0 -12
- package/dist/composables/uis/uiAdaptSlotSelect.d.ts +0 -7
- package/dist/composables/uis/uiColorPicker.d.ts +0 -7
- package/dist/composables/uis/uiCompSelect.d.ts +0 -7
- package/dist/composables/uis/uiDummy.d.ts +0 -5
- package/dist/composables/uis/uiJsonEditor.d.ts +0 -7
- package/dist/composables/uis/uiMultiTypes.d.ts +0 -7
- package/dist/composables/uis/uiNumInput.d.ts +0 -7
- package/dist/composables/uis/uiProperty.d.ts +0 -7
- package/dist/composables/uis/uiSelect.d.ts +0 -7
- package/dist/composables/uis/uiSlotSelect.d.ts +0 -7
- package/dist/composables/uis/uiStrInput.d.ts +0 -7
- package/dist/composables/uis/uiSwitch.d.ts +0 -7
- package/dist/i18n/index.d.ts +0 -1
- package/dist/utils/collapseState.d.ts +0 -10
- package/dist/utils/common.d.ts +0 -8
- package/dist/utils/copyPaste.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/propertyState.d.ts +0 -15
- package/dist/utils/provideInject.d.ts +0 -32
package/dist/index.js
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./vendor.
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./vendor.jothdq5o.js";
|
|
2
2
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as ee, resolveComponent as D, resolveDirective as O, toDisplayString as k, unref as A, useId as j, useModel as M, useTemplateRef as te, watch as N, watchEffect as P, withCtx as F, withDirectives as I, withKeys as L, withModifiers as R } from "vue";
|
|
3
3
|
import { getElement as ne, getItems as re, getPropertyDefault as z, getPropertyDefaultArray as ie, getTag as ae, getTypes as oe, isHexColor as se, isThemeColor as ce, makeSlotId as le, parsePercent as ue, parsePixel as de, pkgs as fe, themeColors as pe } from "x-runtime-lib";
|
|
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 {
|
|
9
|
-
//#region src/utils/collapseState.ts
|
|
10
|
-
function G(e, t) {
|
|
11
|
-
let n = e.value;
|
|
12
|
-
for (let e of t) {
|
|
13
|
-
if (!n.children[e]) return !0;
|
|
14
|
-
n = n.children[e];
|
|
15
|
-
}
|
|
16
|
-
return n.collapse;
|
|
17
|
-
}
|
|
18
|
-
function K(e, t, n) {
|
|
19
|
-
let r = e.value;
|
|
20
|
-
for (let e of t) r.children[e] || (r.children[e] = {
|
|
21
|
-
collapse: !0,
|
|
22
|
-
children: {}
|
|
23
|
-
}), r = r.children[e];
|
|
24
|
-
r.collapse = n;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
7
|
+
import { XBlockly as be } from "x-block-lib";
|
|
8
|
+
import { useDisplay as xe } from "vuetify";
|
|
27
9
|
//#region src/utils/common.ts
|
|
28
|
-
function
|
|
10
|
+
function G(e, t) {
|
|
29
11
|
let n = {
|
|
30
12
|
key: "",
|
|
31
13
|
name: "",
|
|
@@ -38,7 +20,7 @@ function q(e, t) {
|
|
|
38
20
|
}
|
|
39
21
|
return n;
|
|
40
22
|
}
|
|
41
|
-
function
|
|
23
|
+
function K(e, t) {
|
|
42
24
|
let n = e;
|
|
43
25
|
for (let e of t) {
|
|
44
26
|
if (!n) throw Error("target must be valid");
|
|
@@ -61,7 +43,7 @@ function Se(e, n, r, i, a, o) {
|
|
|
61
43
|
return r[n.key];
|
|
62
44
|
}
|
|
63
45
|
}
|
|
64
|
-
function
|
|
46
|
+
function q(e, n, r, i, a, o) {
|
|
65
47
|
if (i !== void 0 && !a) {
|
|
66
48
|
if (r[i] === void 0) {
|
|
67
49
|
let a = z(n);
|
|
@@ -76,10 +58,28 @@ function Y(e, n, r, i, a, o) {
|
|
|
76
58
|
return r[n.key];
|
|
77
59
|
}
|
|
78
60
|
}
|
|
79
|
-
function
|
|
61
|
+
function J(e, t, n, r, i, a, o) {
|
|
80
62
|
i !== void 0 && !a ? r !== n[i] && (n[i] = r, o(e, n[i])) : r !== n[t.key] && (n[t.key] = r, o(e, n[t.key]));
|
|
81
63
|
}
|
|
82
64
|
//#endregion
|
|
65
|
+
//#region src/utils/collapseState.ts
|
|
66
|
+
function Y(e, t) {
|
|
67
|
+
let n = e.value;
|
|
68
|
+
for (let e of t) {
|
|
69
|
+
if (!n.children[e]) return !0;
|
|
70
|
+
n = n.children[e];
|
|
71
|
+
}
|
|
72
|
+
return n.collapse;
|
|
73
|
+
}
|
|
74
|
+
function X(e, t, n) {
|
|
75
|
+
let r = e.value;
|
|
76
|
+
for (let e of t) r.children[e] || (r.children[e] = {
|
|
77
|
+
collapse: !0,
|
|
78
|
+
children: {}
|
|
79
|
+
}), r = r.children[e];
|
|
80
|
+
r.collapse = n;
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
84
|
var Ce = (e, t) => {
|
|
85
85
|
let n = (e, t) => {
|
|
@@ -296,9 +296,9 @@ var lt = /* @__PURE__ */ p({
|
|
|
296
296
|
!(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
|
|
297
297
|
title: t("x-prop-tree.reset"),
|
|
298
298
|
func: () => {
|
|
299
|
-
let e =
|
|
299
|
+
let e = G(n.value, m.value);
|
|
300
300
|
if (e) if (e.ui) {
|
|
301
|
-
let t =
|
|
301
|
+
let t = K(r.value, m.value.slice(0, -1));
|
|
302
302
|
if (!t) return;
|
|
303
303
|
t[m.value[m.value.length - 1]] = z(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
304
304
|
} else if (e.array) {
|
|
@@ -308,18 +308,18 @@ var lt = /* @__PURE__ */ p({
|
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
if (typeof t == "string") {
|
|
311
|
-
let t =
|
|
311
|
+
let t = K(r.value, m.value.slice(0, -1));
|
|
312
312
|
if (!t) return;
|
|
313
313
|
t[m.value[m.value.length - 1]] = z(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
314
314
|
} else {
|
|
315
|
-
let t =
|
|
315
|
+
let t = K(r.value, m.value);
|
|
316
316
|
if (!t) return;
|
|
317
317
|
e.children.forEach((n) => {
|
|
318
318
|
t[n.key] = z(e), c([...m.value, n.key], t[n.key]);
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
} else {
|
|
322
|
-
let t =
|
|
322
|
+
let t = K(r.value, m.value);
|
|
323
323
|
if (!t) return;
|
|
324
324
|
e.children.forEach((n) => {
|
|
325
325
|
t[n.key] = z(e), c([...m.value, n.key], t[n.key]);
|
|
@@ -331,7 +331,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
331
331
|
e.push({
|
|
332
332
|
title: t("x-prop-tree.copy"),
|
|
333
333
|
func: () => {
|
|
334
|
-
let e =
|
|
334
|
+
let e = G(n.value, m.value), t = K(r.value, m.value);
|
|
335
335
|
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
336
336
|
property: e,
|
|
337
337
|
object: t
|
|
@@ -345,7 +345,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
345
345
|
try {
|
|
346
346
|
let { property: t } = JSON.parse(e);
|
|
347
347
|
if (!t) return !1;
|
|
348
|
-
let r =
|
|
348
|
+
let r = G(n.value, m.value);
|
|
349
349
|
return r ? Ce(t, r) : !1;
|
|
350
350
|
} catch (e) {
|
|
351
351
|
console.error(e);
|
|
@@ -358,7 +358,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
358
358
|
if (!r()) return;
|
|
359
359
|
let e = localStorage.getItem("propTreeCopy");
|
|
360
360
|
if (e) try {
|
|
361
|
-
let { object: t } = JSON.parse(e), r =
|
|
361
|
+
let { object: t } = JSON.parse(e), r = G(n.value, m.value);
|
|
362
362
|
console.log(t, r);
|
|
363
363
|
} catch (e) {
|
|
364
364
|
console.error(e);
|
|
@@ -616,219 +616,8 @@ function mt() {
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
|
-
//#region src/components/values/
|
|
620
|
-
var ht = { class: "
|
|
621
|
-
__name: "group",
|
|
622
|
-
props: {
|
|
623
|
-
id: {},
|
|
624
|
-
title: {},
|
|
625
|
-
collapse: { type: Boolean },
|
|
626
|
-
count: {}
|
|
627
|
-
},
|
|
628
|
-
emits: ["x-click"],
|
|
629
|
-
setup(e, { emit: t }) {
|
|
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]]);
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
}), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
|
|
655
|
-
__name: "item",
|
|
656
|
-
props: {
|
|
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: {},
|
|
686
|
-
modelModifiers: {},
|
|
687
|
-
open: {
|
|
688
|
-
type: Boolean,
|
|
689
|
-
required: !0
|
|
690
|
-
},
|
|
691
|
-
openModifiers: {}
|
|
692
|
-
},
|
|
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;
|
|
700
|
-
};
|
|
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
|
|
708
|
-
}, null, 8, [
|
|
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));
|
|
723
|
-
}
|
|
724
|
-
}), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
|
|
725
|
-
__name: "index",
|
|
726
|
-
props: /* @__PURE__ */ _({
|
|
727
|
-
hasDelete: {
|
|
728
|
-
type: Boolean,
|
|
729
|
-
default: !1
|
|
730
|
-
},
|
|
731
|
-
readonly: {
|
|
732
|
-
type: Boolean,
|
|
733
|
-
default: !1
|
|
734
|
-
}
|
|
735
|
-
}, {
|
|
736
|
-
modelValue: {},
|
|
737
|
-
modelModifiers: {}
|
|
738
|
-
}),
|
|
739
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
740
|
-
setup(e, { emit: t }) {
|
|
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(() => {
|
|
749
|
-
let e = 48;
|
|
750
|
-
return a.value && (e += 24), {
|
|
751
|
-
position: "relative",
|
|
752
|
-
height: `calc(100% - ${e}px)`
|
|
753
|
-
};
|
|
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;
|
|
761
|
-
}), (t, n) => {
|
|
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,
|
|
766
|
-
fullscreen: "",
|
|
767
|
-
"no-click-animation": "",
|
|
768
|
-
persistent: "",
|
|
769
|
-
transition: "scroll-x-reverse-transition",
|
|
770
|
-
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
771
|
-
}, {
|
|
772
|
-
activator: F(({ props: t }) => [f(r, v(t, {
|
|
773
|
-
block: "",
|
|
774
|
-
density: "comfortable",
|
|
775
|
-
readonly: e.readonly
|
|
776
|
-
}), {
|
|
777
|
-
default: F(() => [d(k(T.value), 1)]),
|
|
778
|
-
_: 1
|
|
779
|
-
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
780
|
-
key: 0,
|
|
781
|
-
class: "mx-2",
|
|
782
|
-
density: "compact",
|
|
783
|
-
icon: "mdi-minus",
|
|
784
|
-
variant: "text",
|
|
785
|
-
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
786
|
-
})) : 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"]);
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
}), Tt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ p({
|
|
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({
|
|
832
621
|
__name: "index",
|
|
833
622
|
props: /* @__PURE__ */ _({
|
|
834
623
|
hasDelete: {
|
|
@@ -859,7 +648,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
859
648
|
"close-on-content-click": !1,
|
|
860
649
|
scrim: "transparent"
|
|
861
650
|
}, {
|
|
862
|
-
activator: F(({ props: t }) => [u("div",
|
|
651
|
+
activator: F(({ props: t }) => [u("div", ht, [u("div", {
|
|
863
652
|
class: "flex-grow-1",
|
|
864
653
|
style: y(a.value)
|
|
865
654
|
}, [f(m, v(t, {
|
|
@@ -889,221 +678,18 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
889
678
|
}, 8, ["modelValue"]);
|
|
890
679
|
};
|
|
891
680
|
}
|
|
892
|
-
}),
|
|
893
|
-
__name: "
|
|
681
|
+
}), _t = /* @__PURE__ */ p({
|
|
682
|
+
__name: "editor",
|
|
894
683
|
props: {
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
height: "30px",
|
|
905
|
-
marginTop: "1px",
|
|
906
|
-
userSelect: "none"
|
|
907
|
-
}));
|
|
908
|
-
return (e, t) => {
|
|
909
|
-
let n = D("v-icon"), r = O("ripple");
|
|
910
|
-
return I((C(), l("div", {
|
|
911
|
-
class: "d-flex align-center cursor-pointer",
|
|
912
|
-
style: y(c.value),
|
|
913
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
914
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
915
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
916
|
-
}, [
|
|
917
|
-
f(n, {
|
|
918
|
-
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
919
|
-
size: "small"
|
|
920
|
-
}, null, 8, ["icon"]),
|
|
921
|
-
u("span", Dt, k(i.title), 1),
|
|
922
|
-
u("span", Ot, k(i.count), 1)
|
|
923
|
-
], 36)), [[r]]);
|
|
924
|
-
};
|
|
925
|
-
}
|
|
926
|
-
}), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
|
|
927
|
-
__name: "item",
|
|
928
|
-
props: {
|
|
929
|
-
id: {},
|
|
930
|
-
title: {}
|
|
931
|
-
},
|
|
932
|
-
emits: ["x-click"],
|
|
933
|
-
setup(e, { emit: t }) {
|
|
934
|
-
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
935
|
-
background: s.value ? r.value : n.value,
|
|
936
|
-
height: "48px",
|
|
937
|
-
marginTop: "1px",
|
|
938
|
-
userSelect: "none"
|
|
939
|
-
}));
|
|
940
|
-
return (e, t) => {
|
|
941
|
-
let n = O("ripple");
|
|
942
|
-
return I((C(), l("div", {
|
|
943
|
-
class: "d-flex align-center cursor-pointer",
|
|
944
|
-
style: y(c.value),
|
|
945
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
946
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
947
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
948
|
-
}, [u("span", At, k(i.title), 1)], 36)), [[n]]);
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
}), Mt = { key: 0 }, Nt = {
|
|
952
|
-
key: 1,
|
|
953
|
-
class: "text-body-medium text-grey ml-3"
|
|
954
|
-
}, Pt = /* @__PURE__ */ p({
|
|
955
|
-
__name: "index",
|
|
956
|
-
props: {
|
|
957
|
-
modelValue: {},
|
|
958
|
-
modelModifiers: {},
|
|
959
|
-
open: {
|
|
960
|
-
type: Boolean,
|
|
961
|
-
required: !0
|
|
962
|
-
},
|
|
963
|
-
openModifiers: {}
|
|
964
|
-
},
|
|
965
|
-
emits: ["update:modelValue", "update:open"],
|
|
966
|
-
setup(e) {
|
|
967
|
-
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = it(), d = (e) => {
|
|
968
|
-
let t = r(u, e);
|
|
969
|
-
t && n(u, e, !t.collapse);
|
|
970
|
-
}, f = (e) => {
|
|
971
|
-
i.value = e, o.value = !1, V.emit("refreshDepends");
|
|
972
|
-
};
|
|
973
|
-
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, {
|
|
974
|
-
key: 0,
|
|
975
|
-
id: e.id,
|
|
976
|
-
collapse: e.collapse,
|
|
977
|
-
count: e.count ?? 0,
|
|
978
|
-
title: e.name,
|
|
979
|
-
onXClick: d
|
|
980
|
-
}, null, 8, [
|
|
981
|
-
"id",
|
|
982
|
-
"collapse",
|
|
983
|
-
"count",
|
|
984
|
-
"title"
|
|
985
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
|
|
986
|
-
key: 1,
|
|
987
|
-
id: e.id,
|
|
988
|
-
title: e.name,
|
|
989
|
-
onXClick: f
|
|
990
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
991
|
-
}
|
|
992
|
-
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
993
|
-
__name: "index",
|
|
994
|
-
props: /* @__PURE__ */ _({
|
|
995
|
-
hasDelete: {
|
|
996
|
-
type: Boolean,
|
|
997
|
-
default: !1
|
|
998
|
-
},
|
|
999
|
-
readonly: {
|
|
1000
|
-
type: Boolean,
|
|
1001
|
-
default: !1
|
|
1002
|
-
}
|
|
1003
|
-
}, {
|
|
1004
|
-
modelValue: {},
|
|
1005
|
-
modelModifiers: {}
|
|
1006
|
-
}),
|
|
1007
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1008
|
-
setup(e, { emit: t }) {
|
|
1009
|
-
let { t: n } = B(), i = be(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
1010
|
-
let e = "100%";
|
|
1011
|
-
return i.mdAndUp.value && (e = "400px"), {
|
|
1012
|
-
background: p.value,
|
|
1013
|
-
width: e,
|
|
1014
|
-
height: "100%"
|
|
1015
|
-
};
|
|
1016
|
-
}), x = o(() => {
|
|
1017
|
-
let e = 48;
|
|
1018
|
-
return a.value && (e += 24), {
|
|
1019
|
-
position: "relative",
|
|
1020
|
-
height: `calc(100% - ${e}px)`
|
|
1021
|
-
};
|
|
1022
|
-
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1023
|
-
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1024
|
-
let e = r(_, m.value);
|
|
1025
|
-
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1026
|
-
}), { open: E } = W(`propTreeCompSelectDlg${j()}`);
|
|
1027
|
-
return S(() => {
|
|
1028
|
-
E.value = !1;
|
|
1029
|
-
}), (t, n) => {
|
|
1030
|
-
let r = D("v-btn"), i = D("v-sheet"), o = D("v-dialog");
|
|
1031
|
-
return C(), s(o, {
|
|
1032
|
-
modelValue: A(E),
|
|
1033
|
-
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
1034
|
-
fullscreen: "",
|
|
1035
|
-
"no-click-animation": "",
|
|
1036
|
-
persistent: "",
|
|
1037
|
-
transition: "scroll-x-reverse-transition",
|
|
1038
|
-
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1039
|
-
}, {
|
|
1040
|
-
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1041
|
-
block: "",
|
|
1042
|
-
density: "comfortable",
|
|
1043
|
-
readonly: e.readonly
|
|
1044
|
-
}), {
|
|
1045
|
-
default: F(() => [d(k(T.value), 1)]),
|
|
1046
|
-
_: 1
|
|
1047
|
-
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1048
|
-
key: 0,
|
|
1049
|
-
class: "mx-2",
|
|
1050
|
-
density: "compact",
|
|
1051
|
-
icon: "mdi-minus",
|
|
1052
|
-
variant: "text",
|
|
1053
|
-
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
1054
|
-
})) : c("", !0)]),
|
|
1055
|
-
default: F(() => [u("div", {
|
|
1056
|
-
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1057
|
-
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
1058
|
-
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
1059
|
-
}, [u("div", {
|
|
1060
|
-
class: "elevation-2",
|
|
1061
|
-
style: y(b.value)
|
|
1062
|
-
}, [
|
|
1063
|
-
A(a) ? (C(), s(i, {
|
|
1064
|
-
key: 0,
|
|
1065
|
-
color: "transparent",
|
|
1066
|
-
height: 24
|
|
1067
|
-
})) : c("", !0),
|
|
1068
|
-
f(i, {
|
|
1069
|
-
class: "d-flex align-center px-3",
|
|
1070
|
-
color: "transparent",
|
|
1071
|
-
height: 48
|
|
1072
|
-
}, {
|
|
1073
|
-
default: F(() => [f(r, {
|
|
1074
|
-
density: "comfortable",
|
|
1075
|
-
icon: "mdi-close",
|
|
1076
|
-
variant: "text",
|
|
1077
|
-
onClick: n[1] ||= (e) => E.value = !1
|
|
1078
|
-
}), u("span", Ft, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1079
|
-
_: 1
|
|
1080
|
-
}),
|
|
1081
|
-
u("div", {
|
|
1082
|
-
class: "overflow-y-auto",
|
|
1083
|
-
style: y(x.value)
|
|
1084
|
-
}, [f(Pt, {
|
|
1085
|
-
modelValue: m.value,
|
|
1086
|
-
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1087
|
-
open: A(E),
|
|
1088
|
-
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1089
|
-
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1090
|
-
], 4)], 32)]),
|
|
1091
|
-
_: 1
|
|
1092
|
-
}, 8, ["modelValue"]);
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
}), Lt = /* @__PURE__ */ p({
|
|
1096
|
-
__name: "editor",
|
|
1097
|
-
props: {
|
|
1098
|
-
modelValue: { required: !0 },
|
|
1099
|
-
modelModifiers: {},
|
|
1100
|
-
lock: {
|
|
1101
|
-
type: Boolean,
|
|
1102
|
-
required: !0
|
|
1103
|
-
},
|
|
1104
|
-
lockModifiers: {},
|
|
1105
|
-
scale: { required: !0 },
|
|
1106
|
-
scaleModifiers: {}
|
|
684
|
+
modelValue: { required: !0 },
|
|
685
|
+
modelModifiers: {},
|
|
686
|
+
lock: {
|
|
687
|
+
type: Boolean,
|
|
688
|
+
required: !0
|
|
689
|
+
},
|
|
690
|
+
lockModifiers: {},
|
|
691
|
+
scale: { required: !0 },
|
|
692
|
+
scaleModifiers: {}
|
|
1107
693
|
},
|
|
1108
694
|
emits: [
|
|
1109
695
|
"update:modelValue",
|
|
@@ -1118,7 +704,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1118
704
|
return t({ save: () => {
|
|
1119
705
|
let e = l.value.save();
|
|
1120
706
|
n.value = JSON.stringify(e, null, 2);
|
|
1121
|
-
} }), (e, t) => (C(), s(A(
|
|
707
|
+
} }), (e, t) => (C(), s(A(be), {
|
|
1122
708
|
ref_key: "target",
|
|
1123
709
|
ref: l,
|
|
1124
710
|
lock: r.value,
|
|
@@ -1138,7 +724,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1138
724
|
"version"
|
|
1139
725
|
]));
|
|
1140
726
|
}
|
|
1141
|
-
}),
|
|
727
|
+
}), vt = { class: "text-body-large" }, yt = /* @__PURE__ */ p({
|
|
1142
728
|
__name: "index",
|
|
1143
729
|
props: /* @__PURE__ */ _({
|
|
1144
730
|
hasDelete: {
|
|
@@ -1219,12 +805,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1219
805
|
variant: "text",
|
|
1220
806
|
onClick: n[1] ||= (e) => w.value = !1
|
|
1221
807
|
}),
|
|
1222
|
-
u("span",
|
|
808
|
+
u("span", vt, k(x.value), 1),
|
|
1223
809
|
f(S)
|
|
1224
810
|
]),
|
|
1225
811
|
_: 1
|
|
1226
812
|
}, 8, ["color"]),
|
|
1227
|
-
u("div", { style: y(b.value) }, [f(
|
|
813
|
+
u("div", { style: y(b.value) }, [f(_t, {
|
|
1228
814
|
ref_key: "editor",
|
|
1229
815
|
ref: E,
|
|
1230
816
|
modelValue: p.value,
|
|
@@ -1245,7 +831,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1245
831
|
}, 8, ["modelValue"]);
|
|
1246
832
|
};
|
|
1247
833
|
}
|
|
1248
|
-
}),
|
|
834
|
+
}), bt = { class: "d-flex justify-space-between align-center my-2" }, xt = { class: "flex-grow-1" }, St = /* @__PURE__ */ p({
|
|
1249
835
|
__name: "index",
|
|
1250
836
|
props: /* @__PURE__ */ _({
|
|
1251
837
|
hasDelete: {
|
|
@@ -1317,7 +903,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1317
903
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1318
904
|
}), (t, n) => {
|
|
1319
905
|
let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
|
|
1320
|
-
return C(), l("div",
|
|
906
|
+
return C(), l("div", bt, [u("div", xt, [
|
|
1321
907
|
I(f(r, {
|
|
1322
908
|
modelValue: p.value,
|
|
1323
909
|
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
@@ -1363,7 +949,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1363
949
|
void 0,
|
|
1364
950
|
{ stop: !0 }
|
|
1365
951
|
]]) : c("", !0),
|
|
1366
|
-
h.value?.trait === "hexColor" ? (C(), s(
|
|
952
|
+
h.value?.trait === "hexColor" ? (C(), s(gt, {
|
|
1367
953
|
key: 1,
|
|
1368
954
|
modelValue: y.value,
|
|
1369
955
|
"onUpdate:modelValue": n[2] ||= (e) => y.value = e
|
|
@@ -1392,7 +978,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1392
978
|
})) : c("", !0)]);
|
|
1393
979
|
};
|
|
1394
980
|
}
|
|
1395
|
-
}),
|
|
981
|
+
}), Ct = { class: "d-flex justify-space-between align-center" }, wt = /* @__PURE__ */ p({
|
|
1396
982
|
__name: "index",
|
|
1397
983
|
props: /* @__PURE__ */ _({
|
|
1398
984
|
hasDelete: {
|
|
@@ -1427,7 +1013,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1427
1013
|
};
|
|
1428
1014
|
return (t, n) => {
|
|
1429
1015
|
let o = D("v-number-input"), u = D("v-btn"), d = O("ripple");
|
|
1430
|
-
return C(), l("div",
|
|
1016
|
+
return C(), l("div", Ct, [I(f(o, {
|
|
1431
1017
|
modelValue: r.value,
|
|
1432
1018
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1433
1019
|
"control-variant": "stacked",
|
|
@@ -1462,7 +1048,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1462
1048
|
})) : c("", !0)]);
|
|
1463
1049
|
};
|
|
1464
1050
|
}
|
|
1465
|
-
}),
|
|
1051
|
+
}), Tt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ p({
|
|
1466
1052
|
__name: "index",
|
|
1467
1053
|
props: /* @__PURE__ */ _({
|
|
1468
1054
|
hasDelete: {
|
|
@@ -1491,7 +1077,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1491
1077
|
});
|
|
1492
1078
|
return (t, n) => {
|
|
1493
1079
|
let o = D("v-select"), u = D("v-btn"), d = O("ripple");
|
|
1494
|
-
return C(), l("div",
|
|
1080
|
+
return C(), l("div", Tt, [I(f(o, {
|
|
1495
1081
|
modelValue: r.value,
|
|
1496
1082
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1497
1083
|
density: "compact",
|
|
@@ -1518,7 +1104,41 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1518
1104
|
})) : c("", !0)]);
|
|
1519
1105
|
};
|
|
1520
1106
|
}
|
|
1521
|
-
}),
|
|
1107
|
+
}), Dt = { class: "text-label-large ml-1" }, Ot = { class: "text-body-small text-grey ml-1" }, kt = /* @__PURE__ */ p({
|
|
1108
|
+
__name: "group",
|
|
1109
|
+
props: {
|
|
1110
|
+
id: {},
|
|
1111
|
+
title: {},
|
|
1112
|
+
collapse: { type: Boolean },
|
|
1113
|
+
count: {}
|
|
1114
|
+
},
|
|
1115
|
+
emits: ["x-click"],
|
|
1116
|
+
setup(e, { emit: t }) {
|
|
1117
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
1118
|
+
background: s.value ? r.value : n.value,
|
|
1119
|
+
height: "30px",
|
|
1120
|
+
marginTop: "1px",
|
|
1121
|
+
userSelect: "none"
|
|
1122
|
+
}));
|
|
1123
|
+
return (e, t) => {
|
|
1124
|
+
let n = D("v-icon"), r = O("ripple");
|
|
1125
|
+
return I((C(), l("div", {
|
|
1126
|
+
class: "d-flex align-center cursor-pointer",
|
|
1127
|
+
style: y(c.value),
|
|
1128
|
+
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
1129
|
+
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
1130
|
+
onMouseover: t[2] ||= (e) => s.value = !0
|
|
1131
|
+
}, [
|
|
1132
|
+
f(n, {
|
|
1133
|
+
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1134
|
+
size: "small"
|
|
1135
|
+
}, null, 8, ["icon"]),
|
|
1136
|
+
u("span", Dt, k(i.title), 1),
|
|
1137
|
+
u("span", Ot, k(i.count), 1)
|
|
1138
|
+
], 36)), [[r]]);
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
}), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
|
|
1522
1142
|
__name: "item",
|
|
1523
1143
|
props: {
|
|
1524
1144
|
id: {},
|
|
@@ -1540,13 +1160,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1540
1160
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1541
1161
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1542
1162
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1543
|
-
}, [u("span",
|
|
1163
|
+
}, [u("span", At, k(e.title), 1)], 36)), [[r]]);
|
|
1544
1164
|
};
|
|
1545
1165
|
}
|
|
1546
|
-
}),
|
|
1166
|
+
}), Mt = { key: 0 }, Nt = {
|
|
1547
1167
|
key: 1,
|
|
1548
1168
|
class: "text-body-medium text-grey ml-3"
|
|
1549
|
-
},
|
|
1169
|
+
}, Pt = /* @__PURE__ */ p({
|
|
1550
1170
|
__name: "index",
|
|
1551
1171
|
props: {
|
|
1552
1172
|
modelValue: {},
|
|
@@ -1559,19 +1179,399 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1559
1179
|
},
|
|
1560
1180
|
emits: ["update:modelValue", "update:open"],
|
|
1561
1181
|
setup(e) {
|
|
1562
|
-
let { nameList: t } = U(),
|
|
1563
|
-
|
|
1182
|
+
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = ct(), d = (e) => {
|
|
1183
|
+
let t = r(u, e);
|
|
1184
|
+
t && n(u, e, !t.collapse);
|
|
1185
|
+
}, f = (e) => {
|
|
1186
|
+
i.value = e, o.value = !1;
|
|
1564
1187
|
};
|
|
1565
|
-
return (e, n) => A(
|
|
1566
|
-
key:
|
|
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, {
|
|
1189
|
+
key: 0,
|
|
1567
1190
|
id: e.id,
|
|
1191
|
+
collapse: e.collapse,
|
|
1192
|
+
count: e.count ?? 0,
|
|
1568
1193
|
title: e.name,
|
|
1569
|
-
onXClick:
|
|
1570
|
-
}, null, 8, [
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1194
|
+
onXClick: d
|
|
1195
|
+
}, null, 8, [
|
|
1196
|
+
"id",
|
|
1197
|
+
"collapse",
|
|
1198
|
+
"count",
|
|
1199
|
+
"title"
|
|
1200
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
|
|
1201
|
+
key: 1,
|
|
1202
|
+
id: e.id,
|
|
1203
|
+
title: e.name,
|
|
1204
|
+
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));
|
|
1210
|
+
}
|
|
1211
|
+
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
1212
|
+
__name: "index",
|
|
1213
|
+
props: /* @__PURE__ */ _({
|
|
1214
|
+
hasDelete: {
|
|
1215
|
+
type: Boolean,
|
|
1216
|
+
default: !1
|
|
1217
|
+
},
|
|
1218
|
+
readonly: {
|
|
1219
|
+
type: Boolean,
|
|
1220
|
+
default: !1
|
|
1221
|
+
}
|
|
1222
|
+
}, {
|
|
1223
|
+
modelValue: {},
|
|
1224
|
+
modelModifiers: {}
|
|
1225
|
+
}),
|
|
1226
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1227
|
+
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(() => {
|
|
1229
|
+
let e = "100%";
|
|
1230
|
+
return i.mdAndUp.value && (e = "400px"), {
|
|
1231
|
+
background: p.value,
|
|
1232
|
+
width: e,
|
|
1233
|
+
height: "100%"
|
|
1234
|
+
};
|
|
1235
|
+
}), x = o(() => {
|
|
1236
|
+
let e = 48;
|
|
1237
|
+
return a.value && (e += 24), {
|
|
1238
|
+
position: "relative",
|
|
1239
|
+
height: `calc(100% - ${e}px)`
|
|
1240
|
+
};
|
|
1241
|
+
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1242
|
+
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1243
|
+
let e = r(_, m.value);
|
|
1244
|
+
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1245
|
+
}), { open: E } = W(`propTreeAdaptSlotSelectDlg${j()}`);
|
|
1246
|
+
return S(() => {
|
|
1247
|
+
E.value = !1;
|
|
1248
|
+
}), (t, n) => {
|
|
1249
|
+
let r = D("v-btn"), i = D("v-sheet"), o = D("v-dialog");
|
|
1250
|
+
return C(), s(o, {
|
|
1251
|
+
modelValue: A(E),
|
|
1252
|
+
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
1253
|
+
fullscreen: "",
|
|
1254
|
+
"no-click-animation": "",
|
|
1255
|
+
persistent: "",
|
|
1256
|
+
transition: "scroll-x-reverse-transition",
|
|
1257
|
+
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1258
|
+
}, {
|
|
1259
|
+
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1260
|
+
block: "",
|
|
1261
|
+
density: "comfortable",
|
|
1262
|
+
readonly: e.readonly
|
|
1263
|
+
}), {
|
|
1264
|
+
default: F(() => [d(k(T.value), 1)]),
|
|
1265
|
+
_: 1
|
|
1266
|
+
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1267
|
+
key: 0,
|
|
1268
|
+
class: "mx-2",
|
|
1269
|
+
density: "compact",
|
|
1270
|
+
icon: "mdi-minus",
|
|
1271
|
+
variant: "text",
|
|
1272
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
1273
|
+
})) : c("", !0)]),
|
|
1274
|
+
default: F(() => [u("div", {
|
|
1275
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1276
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
1277
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
1278
|
+
}, [u("div", {
|
|
1279
|
+
class: "elevation-2",
|
|
1280
|
+
style: y(b.value)
|
|
1281
|
+
}, [
|
|
1282
|
+
A(a) ? (C(), s(i, {
|
|
1283
|
+
key: 0,
|
|
1284
|
+
color: "transparent",
|
|
1285
|
+
height: 24
|
|
1286
|
+
})) : c("", !0),
|
|
1287
|
+
f(i, {
|
|
1288
|
+
class: "d-flex align-center px-3",
|
|
1289
|
+
color: "transparent",
|
|
1290
|
+
height: 48
|
|
1291
|
+
}, {
|
|
1292
|
+
default: F(() => [f(r, {
|
|
1293
|
+
density: "comfortable",
|
|
1294
|
+
icon: "mdi-close",
|
|
1295
|
+
variant: "text",
|
|
1296
|
+
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)]),
|
|
1302
|
+
_: 1
|
|
1303
|
+
}),
|
|
1304
|
+
u("div", {
|
|
1305
|
+
class: "overflow-y-auto",
|
|
1306
|
+
style: y(x.value)
|
|
1307
|
+
}, [f(Pt, {
|
|
1308
|
+
modelValue: m.value,
|
|
1309
|
+
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1310
|
+
open: A(E),
|
|
1311
|
+
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1312
|
+
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1313
|
+
], 4)], 32)]),
|
|
1314
|
+
_: 1
|
|
1315
|
+
}, 8, ["modelValue"]);
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
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",
|
|
1382
|
+
props: {
|
|
1383
|
+
modelValue: {},
|
|
1384
|
+
modelModifiers: {},
|
|
1385
|
+
open: {
|
|
1386
|
+
type: Boolean,
|
|
1387
|
+
required: !0
|
|
1388
|
+
},
|
|
1389
|
+
openModifiers: {}
|
|
1390
|
+
},
|
|
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");
|
|
1398
|
+
};
|
|
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
|
|
1406
|
+
}, 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));
|
|
1417
|
+
}
|
|
1418
|
+
}), Gt = { class: "text-body-large" }, Kt = /* @__PURE__ */ p({
|
|
1419
|
+
__name: "index",
|
|
1420
|
+
props: /* @__PURE__ */ _({
|
|
1421
|
+
hasDelete: {
|
|
1422
|
+
type: Boolean,
|
|
1423
|
+
default: !1
|
|
1424
|
+
},
|
|
1425
|
+
readonly: {
|
|
1426
|
+
type: Boolean,
|
|
1427
|
+
default: !1
|
|
1428
|
+
}
|
|
1429
|
+
}, {
|
|
1430
|
+
modelValue: {},
|
|
1431
|
+
modelModifiers: {}
|
|
1432
|
+
}),
|
|
1433
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1434
|
+
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()}`);
|
|
1453
|
+
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"])
|
|
1465
|
+
}, {
|
|
1466
|
+
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1467
|
+
block: "",
|
|
1468
|
+
density: "comfortable",
|
|
1469
|
+
readonly: e.readonly
|
|
1470
|
+
}), {
|
|
1471
|
+
default: F(() => [d(k(T.value), 1)]),
|
|
1472
|
+
_: 1
|
|
1473
|
+
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1474
|
+
key: 0,
|
|
1475
|
+
class: "mx-2",
|
|
1476
|
+
density: "compact",
|
|
1477
|
+
icon: "mdi-minus",
|
|
1478
|
+
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)]),
|
|
1517
|
+
_: 1
|
|
1518
|
+
}, 8, ["modelValue"]);
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
}), qt = { class: "text-body-large ml-6" }, Jt = /* @__PURE__ */ p({
|
|
1522
|
+
__name: "item",
|
|
1523
|
+
props: {
|
|
1524
|
+
id: {},
|
|
1525
|
+
title: {}
|
|
1526
|
+
},
|
|
1527
|
+
emits: ["x-click"],
|
|
1528
|
+
setup(e, { emit: t }) {
|
|
1529
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
|
|
1530
|
+
background: a.value ? r.value : n.value,
|
|
1531
|
+
height: "48px",
|
|
1532
|
+
marginTop: "1px",
|
|
1533
|
+
userSelect: "none"
|
|
1534
|
+
}));
|
|
1535
|
+
return (t, n) => {
|
|
1536
|
+
let r = O("ripple");
|
|
1537
|
+
return I((C(), l("div", {
|
|
1538
|
+
class: "d-flex align-center cursor-pointer",
|
|
1539
|
+
style: y(s.value),
|
|
1540
|
+
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1541
|
+
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1542
|
+
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1543
|
+
}, [u("span", qt, k(e.title), 1)], 36)), [[r]]);
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1546
|
+
}), Yt = { key: 0 }, Xt = {
|
|
1547
|
+
key: 1,
|
|
1548
|
+
class: "text-body-medium text-grey ml-3"
|
|
1549
|
+
}, Zt = /* @__PURE__ */ p({
|
|
1550
|
+
__name: "index",
|
|
1551
|
+
props: {
|
|
1552
|
+
modelValue: {},
|
|
1553
|
+
modelModifiers: {},
|
|
1554
|
+
open: {
|
|
1555
|
+
type: Boolean,
|
|
1556
|
+
required: !0
|
|
1557
|
+
},
|
|
1558
|
+
openModifiers: {}
|
|
1559
|
+
},
|
|
1560
|
+
emits: ["update:modelValue", "update:open"],
|
|
1561
|
+
setup(e) {
|
|
1562
|
+
let { nameList: t } = U(), n = M(e, "modelValue"), r = M(e, "open"), i = ot(), o = (e) => {
|
|
1563
|
+
n.value = e, r.value = !1;
|
|
1564
|
+
};
|
|
1565
|
+
return (e, n) => A(i).length > 0 ? (C(), l("div", Yt, [(C(!0), l(a, null, E(A(i), (e) => (C(), s(Jt, {
|
|
1566
|
+
key: e.id,
|
|
1567
|
+
id: e.id,
|
|
1568
|
+
title: e.name,
|
|
1569
|
+
onXClick: o
|
|
1570
|
+
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Xt, k(A(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1571
|
+
}
|
|
1572
|
+
}), Qt = { class: "text-body-large" }, $t = /* @__PURE__ */ p({
|
|
1573
|
+
__name: "index",
|
|
1574
|
+
props: /* @__PURE__ */ _({
|
|
1575
1575
|
hasDelete: {
|
|
1576
1576
|
type: Boolean,
|
|
1577
1577
|
default: !1
|
|
@@ -1586,7 +1586,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1586
1586
|
}),
|
|
1587
1587
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1588
1588
|
setup(e, { emit: t }) {
|
|
1589
|
-
let { t: n } = B(), r =
|
|
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
1590
|
let e = "100%";
|
|
1591
1591
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1592
1592
|
background: l.value,
|
|
@@ -1762,53 +1762,15 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1762
1762
|
}
|
|
1763
1763
|
});
|
|
1764
1764
|
//#endregion
|
|
1765
|
-
//#region src/composables/uis/uiAdaptSlotSelect.ts
|
|
1766
|
-
function an() {
|
|
1767
|
-
let e = $();
|
|
1768
|
-
return { renderUiAdaptSlotSelect: (t, n, r, i, a) => {
|
|
1769
|
-
if (n.ui !== "selectAdaptSlot") throw Error("renderUiSlotSelect property ui must be selectAdaptSlot");
|
|
1770
|
-
return m(wt, {
|
|
1771
|
-
modelValue: Y(t, n, r, i, a, e),
|
|
1772
|
-
"onUpdate:modelValue": (o) => {
|
|
1773
|
-
X(t, n, r, o, i, a, e);
|
|
1774
|
-
},
|
|
1775
|
-
hasDelete: i !== void 0 && !a,
|
|
1776
|
-
onDelete: () => {
|
|
1777
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1778
|
-
},
|
|
1779
|
-
readonly: n.readonly
|
|
1780
|
-
});
|
|
1781
|
-
} };
|
|
1782
|
-
}
|
|
1783
|
-
//#endregion
|
|
1784
1765
|
//#region src/composables/uis/uiColorPicker.ts
|
|
1785
|
-
function
|
|
1766
|
+
function an() {
|
|
1786
1767
|
let e = $();
|
|
1787
1768
|
return { renderUiColorPicker: (t, n, r, i, a) => {
|
|
1788
1769
|
if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
|
|
1789
|
-
return m(
|
|
1790
|
-
modelValue:
|
|
1770
|
+
return m(gt, {
|
|
1771
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1791
1772
|
"onUpdate:modelValue": (o) => {
|
|
1792
|
-
|
|
1793
|
-
},
|
|
1794
|
-
hasDelete: i !== void 0 && !a,
|
|
1795
|
-
onDelete: () => {
|
|
1796
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1797
|
-
},
|
|
1798
|
-
readonly: n.readonly
|
|
1799
|
-
});
|
|
1800
|
-
} };
|
|
1801
|
-
}
|
|
1802
|
-
//#endregion
|
|
1803
|
-
//#region src/composables/uis/uiCompSelect.ts
|
|
1804
|
-
function sn() {
|
|
1805
|
-
let e = $();
|
|
1806
|
-
return { renderUiCompSelect: (t, n, r, i, a) => {
|
|
1807
|
-
if (n.ui !== "selectComp") throw Error("renderUiCompSelect property ui must be selectComp");
|
|
1808
|
-
return m(It, {
|
|
1809
|
-
modelValue: Y(t, n, r, i, a, e),
|
|
1810
|
-
"onUpdate:modelValue": (o) => {
|
|
1811
|
-
X(t, n, r, o, i, a, e);
|
|
1773
|
+
J(t, n, r, o, i, a, e);
|
|
1812
1774
|
},
|
|
1813
1775
|
hasDelete: i !== void 0 && !a,
|
|
1814
1776
|
onDelete: () => {
|
|
@@ -1820,23 +1782,23 @@ function sn() {
|
|
|
1820
1782
|
}
|
|
1821
1783
|
//#endregion
|
|
1822
1784
|
//#region src/composables/uis/uiDummy.ts
|
|
1823
|
-
function
|
|
1785
|
+
function on() {
|
|
1824
1786
|
let e = $();
|
|
1825
1787
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1826
1788
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1827
|
-
|
|
1789
|
+
q(t, n, r, i, a, e);
|
|
1828
1790
|
} };
|
|
1829
1791
|
}
|
|
1830
1792
|
//#endregion
|
|
1831
1793
|
//#region src/composables/uis/uiJsonEditor.ts
|
|
1832
|
-
function
|
|
1794
|
+
function sn() {
|
|
1833
1795
|
let e = $();
|
|
1834
1796
|
return { renderUiJsonEditor: (t, n, r, i, a) => {
|
|
1835
1797
|
if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
|
|
1836
|
-
return m(
|
|
1837
|
-
modelValue:
|
|
1798
|
+
return m(yt, {
|
|
1799
|
+
modelValue: q(t, n, r, i, a, e) ?? "{}",
|
|
1838
1800
|
"onUpdate:modelValue": (o) => {
|
|
1839
|
-
|
|
1801
|
+
J(t, n, r, o, i, a, e);
|
|
1840
1802
|
},
|
|
1841
1803
|
hasDelete: i !== void 0 && !a,
|
|
1842
1804
|
onDelete: () => {
|
|
@@ -1848,14 +1810,14 @@ function ln() {
|
|
|
1848
1810
|
}
|
|
1849
1811
|
//#endregion
|
|
1850
1812
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
1851
|
-
function
|
|
1813
|
+
function cn() {
|
|
1852
1814
|
let e = $();
|
|
1853
1815
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
1854
1816
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
1855
|
-
return m(
|
|
1856
|
-
modelValue:
|
|
1817
|
+
return m(St, {
|
|
1818
|
+
modelValue: q(t, n, r, i, a, e) ?? "",
|
|
1857
1819
|
"onUpdate:modelValue": (o) => {
|
|
1858
|
-
|
|
1820
|
+
J(t, n, r, o, i, a, e);
|
|
1859
1821
|
},
|
|
1860
1822
|
hasDelete: i !== void 0 && !a,
|
|
1861
1823
|
onDelete: () => {
|
|
@@ -1867,14 +1829,14 @@ function un() {
|
|
|
1867
1829
|
}
|
|
1868
1830
|
//#endregion
|
|
1869
1831
|
//#region src/composables/uis/uiNumInput.ts
|
|
1870
|
-
function
|
|
1832
|
+
function ln() {
|
|
1871
1833
|
let e = $();
|
|
1872
1834
|
return { renderUiNumInput: (t, n, r, i, a) => {
|
|
1873
1835
|
if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
|
|
1874
|
-
return m(
|
|
1875
|
-
modelValue:
|
|
1836
|
+
return m(wt, {
|
|
1837
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1876
1838
|
"onUpdate:modelValue": (o) => {
|
|
1877
|
-
|
|
1839
|
+
J(t, n, r, o, i, a, e);
|
|
1878
1840
|
},
|
|
1879
1841
|
hasDelete: i !== void 0 && !a,
|
|
1880
1842
|
onDelete: () => {
|
|
@@ -1890,7 +1852,7 @@ function dn() {
|
|
|
1890
1852
|
}
|
|
1891
1853
|
//#endregion
|
|
1892
1854
|
//#region src/components/entry/index.vue
|
|
1893
|
-
var
|
|
1855
|
+
var un = /* @__PURE__ */ p({
|
|
1894
1856
|
__name: "index",
|
|
1895
1857
|
props: { minHeight: {} },
|
|
1896
1858
|
emits: ["menu"],
|
|
@@ -1918,11 +1880,11 @@ var fn = /* @__PURE__ */ p({
|
|
|
1918
1880
|
});
|
|
1919
1881
|
//#endregion
|
|
1920
1882
|
//#region src/composables/uis/uiProperty.ts
|
|
1921
|
-
function
|
|
1883
|
+
function dn() {
|
|
1922
1884
|
let { t: e } = B(), t = tt();
|
|
1923
1885
|
return { renderProperty: (n, r, i) => {
|
|
1924
1886
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
1925
|
-
return Q(t.value, n) && (o += " *"), m(
|
|
1887
|
+
return Q(t.value, n) && (o += " *"), m(un, {
|
|
1926
1888
|
minHeight: "56px",
|
|
1927
1889
|
onMenu: (e, t) => {
|
|
1928
1890
|
V.emit("propTreeMenu", {
|
|
@@ -1942,14 +1904,14 @@ function pn() {
|
|
|
1942
1904
|
}
|
|
1943
1905
|
//#endregion
|
|
1944
1906
|
//#region src/composables/uis/uiSelect.ts
|
|
1945
|
-
function
|
|
1907
|
+
function fn() {
|
|
1946
1908
|
let e = $();
|
|
1947
1909
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
1948
1910
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
1949
|
-
return m(
|
|
1950
|
-
modelValue:
|
|
1911
|
+
return m(Et, {
|
|
1912
|
+
modelValue: q(t, n, r, i, a, e) ?? "",
|
|
1951
1913
|
"onUpdate:modelValue": (o) => {
|
|
1952
|
-
|
|
1914
|
+
J(t, n, r, o, i, a, e);
|
|
1953
1915
|
},
|
|
1954
1916
|
hasDelete: i !== void 0 && !a,
|
|
1955
1917
|
onDelete: () => {
|
|
@@ -1961,15 +1923,53 @@ function mn() {
|
|
|
1961
1923
|
} };
|
|
1962
1924
|
}
|
|
1963
1925
|
//#endregion
|
|
1964
|
-
//#region src/composables/uis/
|
|
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
|
+
function mn() {
|
|
1947
|
+
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, {
|
|
1951
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1952
|
+
"onUpdate:modelValue": (o) => {
|
|
1953
|
+
J(t, n, r, o, i, a, e);
|
|
1954
|
+
},
|
|
1955
|
+
hasDelete: i !== void 0 && !a,
|
|
1956
|
+
onDelete: () => {
|
|
1957
|
+
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1958
|
+
},
|
|
1959
|
+
readonly: n.readonly
|
|
1960
|
+
});
|
|
1961
|
+
} };
|
|
1962
|
+
}
|
|
1963
|
+
//#endregion
|
|
1964
|
+
//#region src/composables/uis/uiSelectSlot.ts
|
|
1965
1965
|
function hn() {
|
|
1966
1966
|
let e = $();
|
|
1967
|
-
return {
|
|
1968
|
-
if (n.ui !== "selectSlot") throw Error("
|
|
1967
|
+
return { renderUiSelectSlot: (t, n, r, i, a) => {
|
|
1968
|
+
if (n.ui !== "selectSlot") throw Error("renderUiSelectSlot property ui must be selectSlot");
|
|
1969
1969
|
return m($t, {
|
|
1970
|
-
modelValue:
|
|
1970
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1971
1971
|
"onUpdate:modelValue": (o) => {
|
|
1972
|
-
|
|
1972
|
+
J(t, n, r, o, i, a, e);
|
|
1973
1973
|
},
|
|
1974
1974
|
hasDelete: i !== void 0 && !a,
|
|
1975
1975
|
onDelete: () => {
|
|
@@ -1986,9 +1986,9 @@ function gn() {
|
|
|
1986
1986
|
return { renderUiStrInput: (t, n, r, i, a) => {
|
|
1987
1987
|
if (n.ui !== "strInput") throw Error("renderUiStrInput property ui must be strInput");
|
|
1988
1988
|
return m(tn, {
|
|
1989
|
-
modelValue: n.static ? n.value :
|
|
1989
|
+
modelValue: n.static ? n.value : q(t, n, r, i, a, e),
|
|
1990
1990
|
"onUpdate:modelValue": (o) => {
|
|
1991
|
-
n.static ||
|
|
1991
|
+
n.static || J(t, n, r, o, i, a, e);
|
|
1992
1992
|
},
|
|
1993
1993
|
hasDelete: i !== void 0 && !a,
|
|
1994
1994
|
onDelete: () => {
|
|
@@ -2005,9 +2005,9 @@ function _n() {
|
|
|
2005
2005
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2006
2006
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2007
2007
|
return m(rn, {
|
|
2008
|
-
modelValue:
|
|
2008
|
+
modelValue: q(t, n, r, i, a, e) ?? !1,
|
|
2009
2009
|
"onUpdate:modelValue": (o) => {
|
|
2010
|
-
|
|
2010
|
+
J(t, n, r, o, i, a, e);
|
|
2011
2011
|
},
|
|
2012
2012
|
hasDelete: i !== void 0 && !a,
|
|
2013
2013
|
onDelete: () => {
|
|
@@ -2024,19 +2024,19 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2024
2024
|
setup(t) {
|
|
2025
2025
|
let { t: n } = B(), { backgroundColor1: r } = H(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
|
|
2026
2026
|
pt(), mt(), ft();
|
|
2027
|
-
let { renderProperty: d } =
|
|
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
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
2029
|
}, ee = (e, t, r, i, a) => {
|
|
2030
2030
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2031
2031
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2032
2032
|
let o = Se(e, t, r, i, a, u), l = n(t.name);
|
|
2033
|
-
|
|
2033
|
+
Y(s, e) && Q(c.value, e) && (l += " *");
|
|
2034
2034
|
let d = m(dt, {
|
|
2035
2035
|
title: l,
|
|
2036
|
-
collapse:
|
|
2036
|
+
collapse: Y(s, e),
|
|
2037
2037
|
hasCreate: !0,
|
|
2038
2038
|
onCollapse: (t) => {
|
|
2039
|
-
|
|
2039
|
+
X(s, e, t);
|
|
2040
2040
|
},
|
|
2041
2041
|
onMenu: (t, n) => {
|
|
2042
2042
|
V.emit("propTreeMenu", {
|
|
@@ -2052,14 +2052,14 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2052
2052
|
let n = [];
|
|
2053
2053
|
for (let r = 0; r < o.length; r++) {
|
|
2054
2054
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2055
|
-
|
|
2055
|
+
Y(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2056
2056
|
let l = m(dt, {
|
|
2057
2057
|
title: a,
|
|
2058
|
-
collapse:
|
|
2058
|
+
collapse: Y(s, [...e, r]),
|
|
2059
2059
|
hasDelete: !0,
|
|
2060
2060
|
index: r,
|
|
2061
2061
|
onCollapse: (t) => {
|
|
2062
|
-
|
|
2062
|
+
X(s, [...e, r], t);
|
|
2063
2063
|
},
|
|
2064
2064
|
onMenu: (e, t) => {
|
|
2065
2065
|
V.emit("propTreeMenu", {
|
|
@@ -2078,25 +2078,25 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2078
2078
|
for (let i of t.children) n.push(E(e, i, o[r], r, !0));
|
|
2079
2079
|
return n;
|
|
2080
2080
|
})());
|
|
2081
|
-
|
|
2081
|
+
Y(s, [...e, r]) || n.push(d);
|
|
2082
2082
|
}
|
|
2083
2083
|
return n;
|
|
2084
2084
|
})());
|
|
2085
2085
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2086
2086
|
let t = [];
|
|
2087
|
-
return t.push(d),
|
|
2087
|
+
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2088
2088
|
})());
|
|
2089
2089
|
}, D = (e, t, r, i, a) => {
|
|
2090
2090
|
if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2091
2091
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2092
2092
|
let o = n(t.name);
|
|
2093
|
-
|
|
2093
|
+
Y(s, e) && Q(c.value, e) && (o += " *");
|
|
2094
2094
|
let l = m(dt, {
|
|
2095
2095
|
title: o,
|
|
2096
|
-
collapse:
|
|
2096
|
+
collapse: Y(s, e),
|
|
2097
2097
|
hasDelete: i !== void 0 && !a,
|
|
2098
2098
|
onCollapse: (t) => {
|
|
2099
|
-
|
|
2099
|
+
X(s, e, t);
|
|
2100
2100
|
},
|
|
2101
2101
|
onMenu: (t, n) => {
|
|
2102
2102
|
V.emit("propTreeMenu", {
|
|
@@ -2115,19 +2115,19 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2115
2115
|
})());
|
|
2116
2116
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2117
2117
|
let t = [];
|
|
2118
|
-
return t.push(l),
|
|
2118
|
+
return t.push(l), Y(s, e) || t.push(d), t;
|
|
2119
2119
|
})());
|
|
2120
2120
|
}, O = (e, t, r, i, a) => {
|
|
2121
2121
|
if (!t.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2122
2122
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2123
2123
|
let o = Se(e, t, r, i, a, u), l = n(t.name);
|
|
2124
|
-
|
|
2124
|
+
Y(s, e) && Q(c.value, e) && (l += " *");
|
|
2125
2125
|
let d = m(dt, {
|
|
2126
2126
|
title: l,
|
|
2127
|
-
collapse:
|
|
2127
|
+
collapse: Y(s, e),
|
|
2128
2128
|
hasCreate: !0,
|
|
2129
2129
|
onCollapse: (t) => {
|
|
2130
|
-
|
|
2130
|
+
X(s, e, t);
|
|
2131
2131
|
},
|
|
2132
2132
|
onMenu: (t, n) => {
|
|
2133
2133
|
V.emit("propTreeMenu", {
|
|
@@ -2146,7 +2146,7 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2146
2146
|
})());
|
|
2147
2147
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2148
2148
|
let t = [];
|
|
2149
|
-
return t.push(d),
|
|
2149
|
+
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2150
2150
|
})());
|
|
2151
2151
|
}, k = (e, t, n, r, i) => {
|
|
2152
2152
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|