x-prop-tree 0.7.35 → 0.7.37
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/en.ce88mjes.js +2 -0
- package/dist/i18n-en.kgpuxcjs.js +12 -0
- package/dist/i18n-zhHans.emp7062h.js +12 -0
- package/dist/index.js +1932 -2356
- package/dist/vendor.gmzhs72f.js +714 -0
- package/dist/zhHans.dfzi966a.js +2 -0
- package/package.json +16 -11
- package/dist/i18n-en.iz9vb07b.js +0 -16
- package/dist/i18n-zhHans.o4ue3kpx.js +0 -16
- package/dist/vendor.f0ug048x.js +0 -715
package/dist/index.js
CHANGED
|
@@ -1,2392 +1,1968 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { globalState
|
|
7
|
-
import { useDisplay
|
|
8
|
-
import { XBlockly
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
return e.change || (e.change = !Pe(r, H(s))), e.change;
|
|
157
|
-
}, Bt = (t, s, l, e, n, o, i) => {
|
|
158
|
-
if (s.ui)
|
|
159
|
-
return console.assert(
|
|
160
|
-
!1,
|
|
161
|
-
"execPropertyBranchScalar property ui must be invalid"
|
|
162
|
-
), !1;
|
|
163
|
-
if (s.array)
|
|
164
|
-
return console.assert(
|
|
165
|
-
!1,
|
|
166
|
-
"execPropertyBranchScalar property array must be invalid"
|
|
167
|
-
), !1;
|
|
168
|
-
if (!e.children || !Ee(e.children))
|
|
169
|
-
return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
|
|
170
|
-
let r;
|
|
171
|
-
o !== void 0 && !i ? (l[o] || (l[o] = {}), r = l[o]) : (l[s.key] || (l[s.key] = {}), r = l[s.key]), e.change = !1;
|
|
172
|
-
for (let u = 0; u < s.children.length; u++) {
|
|
173
|
-
const a = s.children[u];
|
|
174
|
-
e.children[a.key] = {
|
|
175
|
-
change: !1,
|
|
176
|
-
children: a.array ? [] : {}
|
|
177
|
-
}, De(t, a, r, e.children[a.key], n) && (e.change = !0);
|
|
178
|
-
}
|
|
179
|
-
return e.change;
|
|
180
|
-
}, qt = (t, s, l, e, n, o, i) => {
|
|
181
|
-
if (!s.ui)
|
|
182
|
-
return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
|
|
183
|
-
if (!s.array)
|
|
184
|
-
return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
|
|
185
|
-
if (!e.children || !Le(e.children))
|
|
186
|
-
return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
|
|
187
|
-
let r;
|
|
188
|
-
o !== void 0 && !i ? (l[o] instanceof Array || (l[o] = H(s), n?.(t, l[o])), r = l[o]) : (l[s.key] instanceof Array || (l[s.key] = H(s), n?.(t, l[s.key])), r = l[s.key]), e.change = !1;
|
|
189
|
-
for (let u = 0; u < r.length; u++)
|
|
190
|
-
e.children[u] = {
|
|
191
|
-
change: !1,
|
|
192
|
-
children: {}
|
|
193
|
-
}, De(
|
|
194
|
-
t,
|
|
195
|
-
s,
|
|
196
|
-
r,
|
|
197
|
-
e.children[u],
|
|
198
|
-
n,
|
|
199
|
-
u,
|
|
200
|
-
!1
|
|
201
|
-
) && (e.change = !0);
|
|
202
|
-
return e.change || (e.change = !Pe(r, H(s))), e.change;
|
|
203
|
-
}, Kt = (t, s, l, e, n) => {
|
|
204
|
-
if (!t.ui)
|
|
205
|
-
return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
|
|
206
|
-
let o;
|
|
207
|
-
return e !== void 0 && !n ? o = s[e] : o = s[t.key], l.change = !Pe(o, H(t, !0)), l.change;
|
|
208
|
-
}, Ge = (t, s, l, e) => {
|
|
209
|
-
if (s.length <= 0 || !l) {
|
|
210
|
-
t.value = {};
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
const n = {};
|
|
214
|
-
s.forEach((o) => {
|
|
215
|
-
n[o.key] = {
|
|
216
|
-
change: !1,
|
|
217
|
-
children: o.array ? [] : {}
|
|
218
|
-
}, De([], o, l, n[o.key], e);
|
|
219
|
-
}), t.value = n;
|
|
220
|
-
}, ve = (t, s) => {
|
|
221
|
-
let l = {
|
|
222
|
-
change: !1,
|
|
223
|
-
children: t
|
|
224
|
-
};
|
|
225
|
-
return s.forEach((e) => {
|
|
226
|
-
if (!l)
|
|
227
|
-
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
228
|
-
if (!l.children)
|
|
229
|
-
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
230
|
-
typeof e == "string" ? Ee(l.children) && (l = l.children[e]) : Le(l.children) && (l = l.children[e]);
|
|
231
|
-
}), l?.change ?? !1;
|
|
232
|
-
}, Ie = /* @__PURE__ */ Symbol(), et = /* @__PURE__ */ Symbol(), tt = /* @__PURE__ */ Symbol(), nt = /* @__PURE__ */ Symbol(), lt = /* @__PURE__ */ Symbol(), ot = /* @__PURE__ */ Symbol(), st = /* @__PURE__ */ Symbol(), it = /* @__PURE__ */ Symbol();
|
|
233
|
-
function Rt(t) {
|
|
234
|
-
re(Ie, t);
|
|
1
|
+
import { a as cloneDeep_default, i as isEqual_default, n as setCollapse, r as tidyList, t as getListEntry } from "./vendor.gmzhs72f.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, inject, isRef, mergeModels, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, resolveDirective, toDisplayString, unref, useId, useModel, useTemplateRef, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
import { eventBus, globalObjects, injectDark, injectLocale, openNumberDlg, openPromptDlg, useColor, useSystem, useViewStack } from "x-essential-lib";
|
|
5
|
+
import { elements, getPropertyDefault, getTag, makeSlotId, parsePercentStr, parsePixelStr, pkgs } from "x-runtime-lib";
|
|
6
|
+
import { globalState } from "x-state-lib";
|
|
7
|
+
import { useDisplay } from "vuetify";
|
|
8
|
+
import { XBlockly } from "x-block-lib";
|
|
9
|
+
const isBranchChildrenMap = (e) => !(e instanceof Array), isBranchChildrenArray = (e) => e instanceof Array, isPropertyCompatible = (e, m) => {
|
|
10
|
+
let g = (e, m) => {
|
|
11
|
+
if (e.ui !== m.ui || e.array !== m.array) return !1;
|
|
12
|
+
if (e.ui || m.ui) return !0;
|
|
13
|
+
if (e.children.length !== m.children.length) return !1;
|
|
14
|
+
for (let _ = 0; _ < e.children.length; _++) if (!g(e.children[_], m.children[_])) return !1;
|
|
15
|
+
return !0;
|
|
16
|
+
};
|
|
17
|
+
return g(e, m);
|
|
18
|
+
}, unpkgProperty = (e, m) => {
|
|
19
|
+
let g = {
|
|
20
|
+
key: "",
|
|
21
|
+
name: "",
|
|
22
|
+
children: e
|
|
23
|
+
};
|
|
24
|
+
return m.forEach((e) => {
|
|
25
|
+
if (typeof e != "number") {
|
|
26
|
+
if (!g) {
|
|
27
|
+
console.assert(!1, `unpkgProp invalid property keys=${m}`);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (g.ui) {
|
|
31
|
+
console.assert(!1, `unpkgProp property ui must be invalid keys=${m}`);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
g = g.children.find((m) => m.key === e);
|
|
35
|
+
}
|
|
36
|
+
}), g;
|
|
37
|
+
}, unpkgObject = (e, m) => {
|
|
38
|
+
let g = e;
|
|
39
|
+
return m.forEach((e) => {
|
|
40
|
+
if (!g) {
|
|
41
|
+
console.assert(!1, `unpkgObject object must be valid keys=${m}`);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
g = g[e];
|
|
45
|
+
}), g;
|
|
46
|
+
}, getModelValue = (e, m, g, _, v, y) => {
|
|
47
|
+
if (v !== void 0) if (y) {
|
|
48
|
+
if (g[m.key] === void 0) {
|
|
49
|
+
let v = getPropertyDefault(m);
|
|
50
|
+
v !== void 0 && (g[m.key] = v, _(e, g[m.key]));
|
|
51
|
+
}
|
|
52
|
+
return g[m.key];
|
|
53
|
+
} else {
|
|
54
|
+
if (g[v] === void 0) {
|
|
55
|
+
let y = getPropertyDefault(m, !0);
|
|
56
|
+
y !== void 0 && (g[v] = y, _(e, g[v]));
|
|
57
|
+
}
|
|
58
|
+
return g[v];
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
if (g[m.key] === void 0) {
|
|
62
|
+
let v = getPropertyDefault(m);
|
|
63
|
+
v !== void 0 && (g[m.key] = v, _(e, g[m.key]));
|
|
64
|
+
}
|
|
65
|
+
return g[m.key];
|
|
66
|
+
}
|
|
67
|
+
}, setModelValue = (e, m, g, _, v, y, b) => {
|
|
68
|
+
if (y !== void 0) b ? _ !== g[m.key] && (g[m.key] = _, v(e, g[m.key])) : _ !== g[y] && (g[y] = _, v(e, g[y]));
|
|
69
|
+
else {
|
|
70
|
+
let y = _;
|
|
71
|
+
(m.ui === "switch" || m.ui === "select" || m.ui === "colorPicker" || m.ui === "multiTypes" || m.ui === "selectComp" || m.ui === "selectSlot" || m.ui === "selectAdaptSlot") && (_ || (y = void 0)), y !== g[m.key] && (g[m.key] = y, v(e, g[m.key]));
|
|
72
|
+
}
|
|
73
|
+
}, isPropertyStateChildrenMap = (e) => !(e instanceof Array), isPropertyStateChildrenArray = (e) => e instanceof Array;
|
|
74
|
+
var propertyStateIgnores = [["basic", "id"], ["basic", "name"]], isPropertyStateIgnored = (e) => propertyStateIgnores.find((g) => isEqual_default(e, g));
|
|
75
|
+
const execProperty = (m, g, _, v, y, b, x) => (m = cloneDeep_default(m), b === void 0 ? m.push(g.key) : (m.push(b), x && m.push(g.key)), isPropertyStateIgnored(m) ? (v.change = !1, v.change) : g.ui ? g.array && v.children && isPropertyStateChildrenArray(v.children) ? execPropertyLeafArray(m, g, _, v, y, b, x) : execPropertyLeafScalar(g, _, v, b, x) : g.array ? execPropertyBranchArray(m, g, _, v, y, b, x) : execPropertyBranchScalar(m, g, _, v, y, b, x));
|
|
76
|
+
var execPropertyBranchArray = (e, g, _, v, y, b, x) => {
|
|
77
|
+
if (g.ui) return console.assert(!1, "execPropertyBranchArray property ui must be invalid"), !1;
|
|
78
|
+
if (!g.array) return console.assert(!1, "execPropertyBranchArray property array must be valid"), !1;
|
|
79
|
+
if (!v.children || !isPropertyStateChildrenArray(v.children)) return console.assert(!1, "execPropertyBranchArray state children must be array"), !1;
|
|
80
|
+
let S;
|
|
81
|
+
b !== void 0 && !x ? (_[b] instanceof Array || (_[b] = getPropertyDefault(g), y?.(e, _[b])), S = _[b]) : (_[g.key] instanceof Array || (_[g.key] = getPropertyDefault(g), y?.(e, _[g.key])), S = _[g.key]), v.change = !1;
|
|
82
|
+
for (let m = 0; m < S.length; m++) {
|
|
83
|
+
v.children.push({
|
|
84
|
+
change: !1,
|
|
85
|
+
children: {}
|
|
86
|
+
});
|
|
87
|
+
let _ = v.children[m];
|
|
88
|
+
g.children.forEach((g) => {
|
|
89
|
+
if (!_.children || !isPropertyStateChildrenMap(_.children)) {
|
|
90
|
+
console.assert(!1);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
_.children[g.key] = {
|
|
94
|
+
change: !1,
|
|
95
|
+
children: g.array ? [] : {}
|
|
96
|
+
}, execProperty(e, g, S[m], _.children[g.key], y, m, !0) && (_.change = !0), _.change && (v.change = !0);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return v.change ||= !isEqual_default(S, getPropertyDefault(g)), v.change;
|
|
100
|
+
}, execPropertyBranchScalar = (e, m, g, _, v, y, b) => {
|
|
101
|
+
if (m.ui) return console.assert(!1, "execPropertyBranchScalar property ui must be invalid"), !1;
|
|
102
|
+
if (m.array) return console.assert(!1, "execPropertyBranchScalar property array must be invalid"), !1;
|
|
103
|
+
if (!_.children || !isPropertyStateChildrenMap(_.children)) return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
|
|
104
|
+
let x;
|
|
105
|
+
y !== void 0 && !b ? (g[y] || (g[y] = {}), x = g[y]) : (g[m.key] || (g[m.key] = {}), x = g[m.key]), _.change = !1;
|
|
106
|
+
for (let g = 0; g < m.children.length; g++) {
|
|
107
|
+
let y = m.children[g];
|
|
108
|
+
_.children[y.key] = {
|
|
109
|
+
change: !1,
|
|
110
|
+
children: y.array ? [] : {}
|
|
111
|
+
}, execProperty(e, y, x, _.children[y.key], v) && (_.change = !0);
|
|
112
|
+
}
|
|
113
|
+
return _.change;
|
|
114
|
+
}, execPropertyLeafArray = (e, g, _, v, y, b, x) => {
|
|
115
|
+
if (!g.ui) return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
|
|
116
|
+
if (!g.array) return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
|
|
117
|
+
if (!v.children || !isPropertyStateChildrenArray(v.children)) return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
|
|
118
|
+
let S;
|
|
119
|
+
b !== void 0 && !x ? (_[b] instanceof Array || (_[b] = getPropertyDefault(g), y?.(e, _[b])), S = _[b]) : (_[g.key] instanceof Array || (_[g.key] = getPropertyDefault(g), y?.(e, _[g.key])), S = _[g.key]), v.change = !1;
|
|
120
|
+
for (let m = 0; m < S.length; m++) v.children[m] = {
|
|
121
|
+
change: !1,
|
|
122
|
+
children: {}
|
|
123
|
+
}, execProperty(e, g, S, v.children[m], y, m, !1) && (v.change = !0);
|
|
124
|
+
return v.change ||= !isEqual_default(S, getPropertyDefault(g)), v.change;
|
|
125
|
+
}, execPropertyLeafScalar = (e, g, _, v, y) => {
|
|
126
|
+
if (!e.ui) return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
|
|
127
|
+
let b;
|
|
128
|
+
return b = v !== void 0 && !y ? g[v] : g[e.key], _.change = !isEqual_default(b, getPropertyDefault(e, !0)), _.change;
|
|
129
|
+
};
|
|
130
|
+
const rebuildPropertyState = (e, m, g, _) => {
|
|
131
|
+
if (m.length <= 0 || !g) {
|
|
132
|
+
e.value = {};
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
let v = {};
|
|
136
|
+
m.forEach((e) => {
|
|
137
|
+
v[e.key] = {
|
|
138
|
+
change: !1,
|
|
139
|
+
children: e.array ? [] : {}
|
|
140
|
+
}, execProperty([], e, g, v[e.key], _);
|
|
141
|
+
}), e.value = v;
|
|
142
|
+
}, isPropertyChanged = (e, m) => {
|
|
143
|
+
let g = {
|
|
144
|
+
change: !1,
|
|
145
|
+
children: e
|
|
146
|
+
};
|
|
147
|
+
return m.forEach((e) => {
|
|
148
|
+
if (!g || !g.children) return console.assert(!1, `isPropChanged state must be valid keys=${m}`), !1;
|
|
149
|
+
typeof e == "string" ? isPropertyStateChildrenMap(g.children) && (g = g.children[e]) : isPropertyStateChildrenArray(g.children) && (g = g.children[e]);
|
|
150
|
+
}), g?.change ?? !1;
|
|
151
|
+
};
|
|
152
|
+
var versionKey = Symbol(), configKey = Symbol(), objectKey = Symbol(), propertyStatesKey = Symbol(), changeEventKey = Symbol(), compListKey = Symbol(), slotListKey = Symbol(), adaptSlotListKey = Symbol();
|
|
153
|
+
function provideVersion(e) {
|
|
154
|
+
provide(versionKey, e);
|
|
235
155
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
156
|
+
function injectVersion() {
|
|
157
|
+
return inject(versionKey);
|
|
238
158
|
}
|
|
239
|
-
function
|
|
240
|
-
|
|
159
|
+
function provideConfig(e) {
|
|
160
|
+
provide(configKey, e);
|
|
241
161
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
162
|
+
function injectConfig() {
|
|
163
|
+
return inject(configKey);
|
|
244
164
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
165
|
+
function provideObject(e) {
|
|
166
|
+
provide(objectKey, e);
|
|
247
167
|
}
|
|
248
|
-
function
|
|
249
|
-
|
|
168
|
+
function injectObject() {
|
|
169
|
+
return inject(objectKey);
|
|
250
170
|
}
|
|
251
|
-
function
|
|
252
|
-
|
|
171
|
+
function providePropertyStates(e) {
|
|
172
|
+
provide(propertyStatesKey, e);
|
|
253
173
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
174
|
+
function injectPropertyStates() {
|
|
175
|
+
return inject(propertyStatesKey);
|
|
256
176
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
177
|
+
function provideChangeEvent(e) {
|
|
178
|
+
provide(changeEventKey, e);
|
|
259
179
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
180
|
+
function injectChangeEvent() {
|
|
181
|
+
return inject(changeEventKey);
|
|
262
182
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
183
|
+
function provideCompList(e) {
|
|
184
|
+
provide(compListKey, e);
|
|
265
185
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
186
|
+
function injectCompList() {
|
|
187
|
+
return inject(compListKey);
|
|
268
188
|
}
|
|
269
|
-
function
|
|
270
|
-
|
|
189
|
+
function provideSlotList(e) {
|
|
190
|
+
provide(slotListKey, e);
|
|
271
191
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
192
|
+
function injectSlotList() {
|
|
193
|
+
return inject(slotListKey);
|
|
274
194
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
195
|
+
function provideAdaptSlotList(e) {
|
|
196
|
+
provide(adaptSlotListKey, e);
|
|
277
197
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
198
|
+
function injectAdaptSlotList() {
|
|
199
|
+
return inject(adaptSlotListKey);
|
|
280
200
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
icon: "mdi-minus",
|
|
456
|
-
variant: "text",
|
|
457
|
-
onClick: c[1] || (c[1] = X((C) => n("delete", t.index), ["stop"]))
|
|
458
|
-
})) : Y("", !0)
|
|
459
|
-
], 36)), [
|
|
460
|
-
[d]
|
|
461
|
-
]);
|
|
462
|
-
};
|
|
463
|
-
}
|
|
201
|
+
var menu_default = /* @__PURE__ */ defineComponent({
|
|
202
|
+
__name: "index",
|
|
203
|
+
setup(e) {
|
|
204
|
+
let { t: m } = useI18n(), g = injectConfig(), _ = injectObject(), v = injectPropertyStates(), S = injectChangeEvent(), w = ref(0), D = ref(0), O = ref([]), k = computed(() => [w.value, D.value]), j = (e) => {
|
|
205
|
+
(() => !(O.value.length <= 0 || !isPropertyChanged(v.value, O.value)))() && e.push({
|
|
206
|
+
title: m("x-prop-tree.reset"),
|
|
207
|
+
func: () => {
|
|
208
|
+
let e = unpkgProperty(g.value, O.value);
|
|
209
|
+
if (e) if (e.ui) {
|
|
210
|
+
let m = unpkgObject(_.value, O.value.slice(0, -1));
|
|
211
|
+
if (!m) return;
|
|
212
|
+
m[O.value[O.value.length - 1]] = getPropertyDefault(e), S(O.value, m[O.value[O.value.length - 1]]);
|
|
213
|
+
} else if (e.array) {
|
|
214
|
+
let m = O.value[O.value.length - 1];
|
|
215
|
+
if (m === void 0) {
|
|
216
|
+
console.assert(!1, "invalid last key");
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (typeof m == "string") {
|
|
220
|
+
let m = unpkgObject(_.value, O.value.slice(0, -1));
|
|
221
|
+
if (!m) return;
|
|
222
|
+
m[O.value[O.value.length - 1]] = getPropertyDefault(e), S(O.value, m[O.value[O.value.length - 1]]);
|
|
223
|
+
} else {
|
|
224
|
+
let m = unpkgObject(_.value, O.value);
|
|
225
|
+
if (!m) return;
|
|
226
|
+
e.children.forEach((g) => {
|
|
227
|
+
m[g.key] = getPropertyDefault(e), S([...O.value, g.key], m[g.key]);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
} else {
|
|
231
|
+
let m = unpkgObject(_.value, O.value);
|
|
232
|
+
if (!m) return;
|
|
233
|
+
e.children.forEach((g) => {
|
|
234
|
+
m[g.key] = getPropertyDefault(e), S([...O.value, g.key], m[g.key]);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}, M = (e) => {
|
|
240
|
+
(() => !0)() && e.push({
|
|
241
|
+
title: m("x-prop-tree.copy"),
|
|
242
|
+
func: () => {
|
|
243
|
+
let e = unpkgProperty(g.value, O.value), m = unpkgObject(_.value, O.value);
|
|
244
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
245
|
+
property: e,
|
|
246
|
+
object: m
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}, N = (e) => {
|
|
251
|
+
let _ = () => {
|
|
252
|
+
let e = localStorage.getItem("propTreeCopy");
|
|
253
|
+
if (!e) return !1;
|
|
254
|
+
try {
|
|
255
|
+
let { property: m } = JSON.parse(e);
|
|
256
|
+
return m ? isPropertyCompatible(m, unpkgProperty(g.value, O.value)) : !1;
|
|
257
|
+
} catch (e) {
|
|
258
|
+
console.error(e);
|
|
259
|
+
}
|
|
260
|
+
return !1;
|
|
261
|
+
};
|
|
262
|
+
_() && e.push({
|
|
263
|
+
title: m("x-prop-tree.paste"),
|
|
264
|
+
func: () => {
|
|
265
|
+
if (!_()) return;
|
|
266
|
+
let e = localStorage.getItem("propTreeCopy");
|
|
267
|
+
if (e) try {
|
|
268
|
+
let { object: m } = JSON.parse(e), _ = unpkgProperty(g.value, O.value);
|
|
269
|
+
console.log(m, _);
|
|
270
|
+
} catch (e) {
|
|
271
|
+
console.error(e);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}, P = computed(() => {
|
|
276
|
+
let e = [];
|
|
277
|
+
return j(e), M(e), N(e), e;
|
|
278
|
+
}), { open: F } = useViewStack("propTreeMenu", (e) => {
|
|
279
|
+
w.value = e.x, D.value = e.y, O.value = e.keys;
|
|
280
|
+
});
|
|
281
|
+
return (e, m) => {
|
|
282
|
+
let g = resolveComponent("v-list-item-title"), _ = resolveComponent("v-list-item"), v = resolveComponent("v-list"), b = resolveComponent("v-menu");
|
|
283
|
+
return openBlock(), createBlock(b, {
|
|
284
|
+
modelValue: unref(F),
|
|
285
|
+
"onUpdate:modelValue": m[0] ||= (e) => isRef(F) ? F.value = e : null,
|
|
286
|
+
"location-strategy": "connected",
|
|
287
|
+
scrim: "transparent",
|
|
288
|
+
target: k.value
|
|
289
|
+
}, {
|
|
290
|
+
default: withCtx(() => [createVNode(v, null, {
|
|
291
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(P.value, (e, m) => (openBlock(), createBlock(_, {
|
|
292
|
+
key: m,
|
|
293
|
+
link: "",
|
|
294
|
+
onClick: e.func
|
|
295
|
+
}, {
|
|
296
|
+
default: withCtx(() => [createVNode(g, null, {
|
|
297
|
+
default: withCtx(() => [createTextVNode(toDisplayString(e.title), 1)]),
|
|
298
|
+
_: 2
|
|
299
|
+
}, 1024)]),
|
|
300
|
+
_: 2
|
|
301
|
+
}, 1032, ["onClick"]))), 128))]),
|
|
302
|
+
_: 1
|
|
303
|
+
})]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["modelValue", "target"]);
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}), _hoisted_1$18 = { style: { pointerEvents: "none" } }, title_default = /* @__PURE__ */ defineComponent({
|
|
309
|
+
__name: "index",
|
|
310
|
+
props: {
|
|
311
|
+
title: {},
|
|
312
|
+
collapse: { type: Boolean },
|
|
313
|
+
hasCreate: {
|
|
314
|
+
type: Boolean,
|
|
315
|
+
default: !1
|
|
316
|
+
},
|
|
317
|
+
hasDelete: {
|
|
318
|
+
type: Boolean,
|
|
319
|
+
default: !1
|
|
320
|
+
},
|
|
321
|
+
index: { default: 0 }
|
|
322
|
+
},
|
|
323
|
+
emits: [
|
|
324
|
+
"collapse",
|
|
325
|
+
"menu",
|
|
326
|
+
"create",
|
|
327
|
+
"delete"
|
|
328
|
+
],
|
|
329
|
+
setup(e, { emit: m }) {
|
|
330
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = m, y = ref(!1), T = computed(() => ({
|
|
331
|
+
background: y.value ? _.value : g.value,
|
|
332
|
+
height: "36px",
|
|
333
|
+
marginBottom: "1px",
|
|
334
|
+
userSelect: "none"
|
|
335
|
+
})), D = () => {
|
|
336
|
+
v("collapse", !e.collapse);
|
|
337
|
+
}, O = (e) => {
|
|
338
|
+
v("menu", e.clientX, e.clientY);
|
|
339
|
+
};
|
|
340
|
+
return (m, g) => {
|
|
341
|
+
let _ = resolveComponent("v-icon"), b = resolveComponent("v-spacer"), k = resolveComponent("v-btn"), A = resolveDirective("ripple");
|
|
342
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
343
|
+
class: "d-flex align-center cursor-pointer",
|
|
344
|
+
style: normalizeStyle(T.value),
|
|
345
|
+
onClick: D,
|
|
346
|
+
onContextmenu: withModifiers(O, ["self", "prevent"]),
|
|
347
|
+
onMouseout: g[2] ||= (e) => y.value = !1,
|
|
348
|
+
onMouseover: g[3] ||= (e) => y.value = !0
|
|
349
|
+
}, [
|
|
350
|
+
createVNode(_, {
|
|
351
|
+
class: "mr-1",
|
|
352
|
+
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
353
|
+
}, null, 8, ["icon"]),
|
|
354
|
+
createElementVNode("span", _hoisted_1$18, toDisplayString(e.title), 1),
|
|
355
|
+
createVNode(b),
|
|
356
|
+
e.hasCreate ? (openBlock(), createBlock(k, {
|
|
357
|
+
key: 0,
|
|
358
|
+
class: "mx-3",
|
|
359
|
+
density: "compact",
|
|
360
|
+
icon: "mdi-plus",
|
|
361
|
+
variant: "text",
|
|
362
|
+
onClick: g[0] ||= withModifiers((e) => v("create"), ["stop"])
|
|
363
|
+
})) : createCommentVNode("", !0),
|
|
364
|
+
e.hasDelete ? (openBlock(), createBlock(k, {
|
|
365
|
+
key: 1,
|
|
366
|
+
class: "mx-3",
|
|
367
|
+
density: "compact",
|
|
368
|
+
icon: "mdi-minus",
|
|
369
|
+
variant: "text",
|
|
370
|
+
onClick: g[1] ||= withModifiers((m) => v("delete", e.index), ["stop"])
|
|
371
|
+
})) : createCommentVNode("", !0)
|
|
372
|
+
], 36)), [[A]]);
|
|
373
|
+
};
|
|
374
|
+
}
|
|
464
375
|
});
|
|
465
|
-
function
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
i(), u();
|
|
545
|
-
});
|
|
376
|
+
function useAdaptSlotList(e, m, g) {
|
|
377
|
+
let { i18n: y } = globalObjects, b = ref([]);
|
|
378
|
+
provideAdaptSlotList(b);
|
|
379
|
+
let x = () => {
|
|
380
|
+
if (!e.value || !m.value || !g.value) return [];
|
|
381
|
+
let x = pkgs[e.value];
|
|
382
|
+
if (!x) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
383
|
+
let S = getTag(m.value, g.value), C = [];
|
|
384
|
+
for (let e = 0; e < x.groups[S].length; e++) {
|
|
385
|
+
let m = x.groups[S][e], g = getListEntry(b, m.key);
|
|
386
|
+
C.push({
|
|
387
|
+
id: m.key,
|
|
388
|
+
type: 0,
|
|
389
|
+
name: y.global.t(m.name),
|
|
390
|
+
position: e,
|
|
391
|
+
collapse: g?.collapse ?? !0,
|
|
392
|
+
count: 0
|
|
393
|
+
});
|
|
394
|
+
let _ = 0;
|
|
395
|
+
for (let e of m.items) {
|
|
396
|
+
let g = elements[e];
|
|
397
|
+
if (g && !g.internal && g.slots) for (let e of g.slots) {
|
|
398
|
+
let v = makeSlotId("elementSlot", g.key, e.key), b = `${y.global.t(g.name)} / ${y.global.t(e.name)}`;
|
|
399
|
+
C.push({
|
|
400
|
+
id: v,
|
|
401
|
+
type: 1,
|
|
402
|
+
name: b,
|
|
403
|
+
position: _++,
|
|
404
|
+
group: m.key
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
let { activeApp: w, depends: T } = globalState.app;
|
|
410
|
+
for (let { id: e, name: m, position: g } of w.compGroups) {
|
|
411
|
+
let _ = getListEntry(b, e);
|
|
412
|
+
C.push({
|
|
413
|
+
id: e,
|
|
414
|
+
type: 0,
|
|
415
|
+
name: m,
|
|
416
|
+
position: g,
|
|
417
|
+
collapse: _?.collapse ?? !0
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
let E = 0;
|
|
421
|
+
for (let e of w.comps) {
|
|
422
|
+
let m = T[e.id];
|
|
423
|
+
if (m && m.meta.slots) for (let g of m.meta.slots) {
|
|
424
|
+
let m = makeSlotId("customSlot", e.id, g.id), _ = `${e.name} / ${g.name}`;
|
|
425
|
+
C.push({
|
|
426
|
+
id: m,
|
|
427
|
+
type: 1,
|
|
428
|
+
name: _,
|
|
429
|
+
position: E++,
|
|
430
|
+
group: e.groupId
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
return tidyList(C, !0);
|
|
435
|
+
}, S = () => {
|
|
436
|
+
b.value = x();
|
|
437
|
+
}, C, w = () => {
|
|
438
|
+
clearTimeout(C), C = window.setTimeout(() => {
|
|
439
|
+
S(), C && w();
|
|
440
|
+
}, 1e3);
|
|
441
|
+
}, T = () => {
|
|
442
|
+
clearTimeout(C), C = void 0;
|
|
443
|
+
};
|
|
444
|
+
onMounted(() => {
|
|
445
|
+
w();
|
|
446
|
+
}), onBeforeUnmount(() => {
|
|
447
|
+
T();
|
|
448
|
+
}), watch([
|
|
449
|
+
e,
|
|
450
|
+
m,
|
|
451
|
+
g
|
|
452
|
+
], () => {
|
|
453
|
+
S(), w();
|
|
454
|
+
});
|
|
546
455
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
456
|
+
function useCompList() {
|
|
457
|
+
let e = ref([]);
|
|
458
|
+
provideCompList(e);
|
|
459
|
+
let m = () => {
|
|
460
|
+
let { activeApp: m, depends: g } = globalState.app, v = [];
|
|
461
|
+
for (let { id: g, name: _, position: y } of m.compGroups) {
|
|
462
|
+
let m = e.value.find((e) => e.id === g);
|
|
463
|
+
v.push({
|
|
464
|
+
id: g,
|
|
465
|
+
type: 0,
|
|
466
|
+
name: _,
|
|
467
|
+
position: y,
|
|
468
|
+
collapse: m?.collapse ?? !0
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
for (let { id: e, groupId: _, name: y, position: b } of m.comps) g[e] && v.push({
|
|
472
|
+
id: e,
|
|
473
|
+
type: 1,
|
|
474
|
+
name: y,
|
|
475
|
+
position: b,
|
|
476
|
+
group: _
|
|
477
|
+
});
|
|
478
|
+
tidyList(v, !0), e.value = v;
|
|
479
|
+
}, g, v = () => {
|
|
480
|
+
clearTimeout(g), g = window.setTimeout(() => {
|
|
481
|
+
m(), g && v();
|
|
482
|
+
}, 1e3);
|
|
483
|
+
}, y = () => {
|
|
484
|
+
clearTimeout(g), g = void 0;
|
|
485
|
+
};
|
|
486
|
+
onMounted(() => {
|
|
487
|
+
v();
|
|
488
|
+
}), onBeforeUnmount(() => {
|
|
489
|
+
y();
|
|
490
|
+
});
|
|
579
491
|
}
|
|
580
|
-
function
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}), Be(() => {
|
|
607
|
-
o();
|
|
608
|
-
});
|
|
492
|
+
function useSlotList() {
|
|
493
|
+
let e = ref([]);
|
|
494
|
+
provideSlotList(e);
|
|
495
|
+
let m = () => {
|
|
496
|
+
let { activeObject: e, activeComp: m } = globalState.app;
|
|
497
|
+
if (e.type !== "comp" || !m.meta.slots) return [];
|
|
498
|
+
let g = [];
|
|
499
|
+
for (let { id: e, name: _ } of m.meta.slots) g.push({
|
|
500
|
+
id: e,
|
|
501
|
+
name: _
|
|
502
|
+
});
|
|
503
|
+
return g;
|
|
504
|
+
}, g = () => {
|
|
505
|
+
e.value = m();
|
|
506
|
+
}, _, v = () => {
|
|
507
|
+
clearTimeout(_), _ = window.setTimeout(() => {
|
|
508
|
+
g(), _ && v();
|
|
509
|
+
}, 1e3);
|
|
510
|
+
}, y = () => {
|
|
511
|
+
clearTimeout(_), _ = void 0;
|
|
512
|
+
};
|
|
513
|
+
onMounted(() => {
|
|
514
|
+
v();
|
|
515
|
+
}), onBeforeUnmount(() => {
|
|
516
|
+
y();
|
|
517
|
+
});
|
|
609
518
|
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
}),
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}),
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
}, null, 8, ["modelValue", "readonly"]), [
|
|
1631
|
-
[
|
|
1632
|
-
c,
|
|
1633
|
-
void 0,
|
|
1634
|
-
void 0,
|
|
1635
|
-
{ stop: !0 }
|
|
1636
|
-
]
|
|
1637
|
-
]),
|
|
1638
|
-
t.hasDelete ? (k(), B(a, {
|
|
1639
|
-
key: 0,
|
|
1640
|
-
class: "mx-2",
|
|
1641
|
-
density: "compact",
|
|
1642
|
-
icon: "mdi-minus",
|
|
1643
|
-
variant: "text",
|
|
1644
|
-
onClick: r[1] || (r[1] = X((v) => n("delete"), ["stop"]))
|
|
1645
|
-
})) : Y("", !0)
|
|
1646
|
-
]);
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
}), Fn = { class: "d-flex justify-space-between align-center" }, zn = /* @__PURE__ */ E({
|
|
1650
|
-
__name: "index",
|
|
1651
|
-
props: /* @__PURE__ */ j({
|
|
1652
|
-
hasDelete: { type: Boolean, default: !1 },
|
|
1653
|
-
readonly: { type: Boolean, default: !1 }
|
|
1654
|
-
}, {
|
|
1655
|
-
modelValue: { type: Boolean },
|
|
1656
|
-
modelModifiers: {}
|
|
1657
|
-
}),
|
|
1658
|
-
emits: /* @__PURE__ */ j(["delete"], ["update:modelValue"]),
|
|
1659
|
-
setup(t, { emit: s }) {
|
|
1660
|
-
const l = F(t, "modelValue"), e = s;
|
|
1661
|
-
return (n, o) => {
|
|
1662
|
-
const i = $("v-switch"), r = $("v-btn");
|
|
1663
|
-
return k(), q("div", Fn, [
|
|
1664
|
-
w(i, {
|
|
1665
|
-
modelValue: l.value,
|
|
1666
|
-
"onUpdate:modelValue": o[0] || (o[0] = (u) => l.value = u),
|
|
1667
|
-
class: "ml-1",
|
|
1668
|
-
color: "primary",
|
|
1669
|
-
density: "compact",
|
|
1670
|
-
"hide-details": "",
|
|
1671
|
-
readonly: t.readonly
|
|
1672
|
-
}, null, 8, ["modelValue", "readonly"]),
|
|
1673
|
-
t.hasDelete ? (k(), B(r, {
|
|
1674
|
-
key: 0,
|
|
1675
|
-
class: "mx-2",
|
|
1676
|
-
density: "compact",
|
|
1677
|
-
icon: "mdi-minus",
|
|
1678
|
-
variant: "text",
|
|
1679
|
-
onClick: o[1] || (o[1] = X((u) => e("delete"), ["stop"]))
|
|
1680
|
-
})) : Y("", !0)
|
|
1681
|
-
]);
|
|
1682
|
-
};
|
|
1683
|
-
}
|
|
519
|
+
var _hoisted_1$17 = { class: "text-subtitle-2 ml-1" }, _hoisted_2$5 = { class: "text-caption text-grey ml-1" }, group_default$1 = /* @__PURE__ */ defineComponent({
|
|
520
|
+
__name: "group",
|
|
521
|
+
props: {
|
|
522
|
+
id: {},
|
|
523
|
+
title: {},
|
|
524
|
+
collapse: { type: Boolean },
|
|
525
|
+
count: {}
|
|
526
|
+
},
|
|
527
|
+
emits: ["x-click"],
|
|
528
|
+
setup(e, { emit: m }) {
|
|
529
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = e, y = m, x = ref(!1), S = computed(() => ({
|
|
530
|
+
background: x.value ? _.value : g.value,
|
|
531
|
+
height: "30px",
|
|
532
|
+
marginBottom: "1px",
|
|
533
|
+
userSelect: "none"
|
|
534
|
+
}));
|
|
535
|
+
return (e, m) => {
|
|
536
|
+
let g = resolveComponent("v-icon"), _ = resolveDirective("ripple");
|
|
537
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
538
|
+
class: "d-flex align-center cursor-pointer",
|
|
539
|
+
style: normalizeStyle(S.value),
|
|
540
|
+
onClick: m[0] ||= (e) => y("x-click", v.id),
|
|
541
|
+
onMouseout: m[1] ||= (e) => x.value = !1,
|
|
542
|
+
onMouseover: m[2] ||= (e) => x.value = !0
|
|
543
|
+
}, [
|
|
544
|
+
createVNode(g, {
|
|
545
|
+
icon: v.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
546
|
+
size: "small"
|
|
547
|
+
}, null, 8, ["icon"]),
|
|
548
|
+
createElementVNode("span", _hoisted_1$17, toDisplayString(v.title), 1),
|
|
549
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString(v.count), 1)
|
|
550
|
+
], 36)), [[_]]);
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
}), _hoisted_1$16 = { class: "text-subtitle-1 ml-6" }, item_default$2 = /* @__PURE__ */ defineComponent({
|
|
554
|
+
__name: "item",
|
|
555
|
+
props: {
|
|
556
|
+
id: {},
|
|
557
|
+
title: {}
|
|
558
|
+
},
|
|
559
|
+
emits: ["x-click"],
|
|
560
|
+
setup(e, { emit: m }) {
|
|
561
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = m, y = ref(!1), x = computed(() => ({
|
|
562
|
+
background: y.value ? _.value : g.value,
|
|
563
|
+
height: "48px",
|
|
564
|
+
marginBottom: "1px",
|
|
565
|
+
userSelect: "none"
|
|
566
|
+
}));
|
|
567
|
+
return (m, g) => {
|
|
568
|
+
let _ = resolveDirective("ripple");
|
|
569
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
570
|
+
class: "d-flex align-center cursor-pointer",
|
|
571
|
+
style: normalizeStyle(x.value),
|
|
572
|
+
onClick: g[0] ||= (m) => v("x-click", e.id),
|
|
573
|
+
onMouseout: g[1] ||= (e) => y.value = !1,
|
|
574
|
+
onMouseover: g[2] ||= (e) => y.value = !0
|
|
575
|
+
}, [createElementVNode("span", _hoisted_1$16, toDisplayString(e.title), 1)], 36)), [[_]]);
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
}), _hoisted_1$15 = { key: 0 }, _hoisted_2$4 = {
|
|
579
|
+
key: 1,
|
|
580
|
+
class: "text-body-2 text-grey ml-3"
|
|
581
|
+
}, adaptSlotList_default = /* @__PURE__ */ defineComponent({
|
|
582
|
+
__name: "index",
|
|
583
|
+
props: {
|
|
584
|
+
modelValue: {},
|
|
585
|
+
modelModifiers: {},
|
|
586
|
+
open: {
|
|
587
|
+
type: Boolean,
|
|
588
|
+
required: !0
|
|
589
|
+
},
|
|
590
|
+
openModifiers: {}
|
|
591
|
+
},
|
|
592
|
+
emits: ["update:modelValue", "update:open"],
|
|
593
|
+
setup(e) {
|
|
594
|
+
let { nameList: m } = useSystem(), _ = useModel(e, "modelValue"), b = useModel(e, "open"), w = injectAdaptSlotList(), T = (e) => {
|
|
595
|
+
let m = getListEntry(w, e);
|
|
596
|
+
m && setCollapse(w, e, !m.collapse);
|
|
597
|
+
}, E = (e) => {
|
|
598
|
+
_.value = e, b.value = !1;
|
|
599
|
+
};
|
|
600
|
+
return (e, g) => unref(w).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$15, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(w), (e) => (openBlock(), createElementBlock(Fragment, { key: e.id }, [e.type === 0 ? (openBlock(), createBlock(group_default$1, {
|
|
601
|
+
key: 0,
|
|
602
|
+
id: e.id,
|
|
603
|
+
collapse: e.collapse,
|
|
604
|
+
count: e.count ?? 0,
|
|
605
|
+
title: e.name,
|
|
606
|
+
onXClick: T
|
|
607
|
+
}, null, 8, [
|
|
608
|
+
"id",
|
|
609
|
+
"collapse",
|
|
610
|
+
"count",
|
|
611
|
+
"title"
|
|
612
|
+
])) : createCommentVNode("", !0), e.type === 1 && e.show ? (openBlock(), createBlock(item_default$2, {
|
|
613
|
+
key: 1,
|
|
614
|
+
id: e.id,
|
|
615
|
+
title: e.name,
|
|
616
|
+
onXClick: E
|
|
617
|
+
}, null, 8, ["id", "title"])) : createCommentVNode("", !0)], 64))), 128))])) : (openBlock(), createElementBlock("div", _hoisted_2$4, toDisplayString(unref(m)([
|
|
618
|
+
"x-prop-tree.no",
|
|
619
|
+
"x-prop-tree.adapt",
|
|
620
|
+
"x-prop-tree.slot"
|
|
621
|
+
])), 1));
|
|
622
|
+
}
|
|
623
|
+
}), _hoisted_1$14 = { class: "text-subtitle-1" }, adaptSlotSelect_default = /* @__PURE__ */ defineComponent({
|
|
624
|
+
__name: "index",
|
|
625
|
+
props: {
|
|
626
|
+
modelValue: {},
|
|
627
|
+
modelModifiers: {}
|
|
628
|
+
},
|
|
629
|
+
emits: ["update:modelValue"],
|
|
630
|
+
setup(e) {
|
|
631
|
+
let { t: m } = useI18n(), g = useDisplay(), { sysBarAvail: _, nameList: y } = useSystem(), { backgroundColor1: C } = useColor(), D = useModel(e, "modelValue"), O = injectAdaptSlotList(), k = computed(() => {
|
|
632
|
+
let e = "100%";
|
|
633
|
+
return g.mdAndUp.value && (e = "400px"), {
|
|
634
|
+
background: C.value,
|
|
635
|
+
width: e,
|
|
636
|
+
height: "100%"
|
|
637
|
+
};
|
|
638
|
+
}), j = computed(() => {
|
|
639
|
+
let e = 48;
|
|
640
|
+
return _.value && (e += 24), {
|
|
641
|
+
position: "relative",
|
|
642
|
+
height: `calc(100% - ${e}px)`
|
|
643
|
+
};
|
|
644
|
+
}), P = computed(() => ({ height: "60px" })), F = computed(() => {
|
|
645
|
+
if (!D.value) return m("x-runtime-lib.notSet");
|
|
646
|
+
let e = getListEntry(O, D.value);
|
|
647
|
+
return e ? e.name : m("x-runtime-lib.slotNotAvail");
|
|
648
|
+
}), { open: L } = useViewStack(`propTreeAdaptSlotSelectDlg${useId()}`);
|
|
649
|
+
return onUnmounted(() => {
|
|
650
|
+
L.value = !1;
|
|
651
|
+
}), (e, m) => {
|
|
652
|
+
let g = resolveComponent("v-btn"), v = resolveComponent("v-sheet"), b = resolveComponent("v-dialog");
|
|
653
|
+
return openBlock(), createBlock(b, {
|
|
654
|
+
modelValue: unref(L),
|
|
655
|
+
"onUpdate:modelValue": m[5] ||= (e) => isRef(L) ? L.value = e : null,
|
|
656
|
+
fullscreen: "",
|
|
657
|
+
"no-click-animation": "",
|
|
658
|
+
persistent: "",
|
|
659
|
+
transition: "scroll-x-reverse-transition",
|
|
660
|
+
onKeydown: m[6] ||= withKeys(withModifiers((e) => L.value = !1, ["stop", "prevent"]), ["esc"])
|
|
661
|
+
}, {
|
|
662
|
+
activator: withCtx(({ props: e }) => [createVNode(g, mergeProps(e, {
|
|
663
|
+
block: "",
|
|
664
|
+
density: "comfortable"
|
|
665
|
+
}), {
|
|
666
|
+
default: withCtx(() => [createTextVNode(toDisplayString(F.value), 1)]),
|
|
667
|
+
_: 1
|
|
668
|
+
}, 16)]),
|
|
669
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
670
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
671
|
+
onClick: m[3] ||= withModifiers((e) => L.value = !1, ["self"]),
|
|
672
|
+
onContextmenu: m[4] ||= withModifiers((e) => L.value = !1, ["self", "prevent"])
|
|
673
|
+
}, [createElementVNode("div", {
|
|
674
|
+
class: "elevation-2",
|
|
675
|
+
style: normalizeStyle(k.value)
|
|
676
|
+
}, [
|
|
677
|
+
unref(_) ? (openBlock(), createBlock(v, {
|
|
678
|
+
key: 0,
|
|
679
|
+
color: "transparent",
|
|
680
|
+
height: 24
|
|
681
|
+
})) : createCommentVNode("", !0),
|
|
682
|
+
createVNode(v, {
|
|
683
|
+
class: "d-flex align-center px-3",
|
|
684
|
+
color: "transparent",
|
|
685
|
+
height: 48
|
|
686
|
+
}, {
|
|
687
|
+
default: withCtx(() => [createVNode(g, {
|
|
688
|
+
density: "comfortable",
|
|
689
|
+
icon: "mdi-close",
|
|
690
|
+
variant: "text",
|
|
691
|
+
onClick: m[0] ||= (e) => L.value = !1
|
|
692
|
+
}), createElementVNode("span", _hoisted_1$14, toDisplayString(unref(y)([
|
|
693
|
+
"x-prop-tree.select",
|
|
694
|
+
"x-prop-tree.adapt",
|
|
695
|
+
"x-prop-tree.slot"
|
|
696
|
+
])), 1)]),
|
|
697
|
+
_: 1
|
|
698
|
+
}),
|
|
699
|
+
createElementVNode("div", {
|
|
700
|
+
class: "overflow-y-auto",
|
|
701
|
+
style: normalizeStyle(j.value)
|
|
702
|
+
}, [createVNode(adaptSlotList_default, {
|
|
703
|
+
modelValue: D.value,
|
|
704
|
+
"onUpdate:modelValue": m[1] ||= (e) => D.value = e,
|
|
705
|
+
open: unref(L),
|
|
706
|
+
"onUpdate:open": m[2] ||= (e) => isRef(L) ? L.value = e : null
|
|
707
|
+
}, null, 8, ["modelValue", "open"]), createElementVNode("div", { style: normalizeStyle(P.value) }, null, 4)], 4)
|
|
708
|
+
], 4)], 32)]),
|
|
709
|
+
_: 1
|
|
710
|
+
}, 8, ["modelValue"]);
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
}), _hoisted_1$13 = { class: "d-flex justify-space-between align-center" }, colorPicker_default = /* @__PURE__ */ defineComponent({
|
|
714
|
+
__name: "index",
|
|
715
|
+
props: /* @__PURE__ */ mergeModels({
|
|
716
|
+
hasDelete: {
|
|
717
|
+
type: Boolean,
|
|
718
|
+
default: !1
|
|
719
|
+
},
|
|
720
|
+
readonly: {
|
|
721
|
+
type: Boolean,
|
|
722
|
+
default: !1
|
|
723
|
+
}
|
|
724
|
+
}, {
|
|
725
|
+
modelValue: {},
|
|
726
|
+
modelModifiers: {}
|
|
727
|
+
}),
|
|
728
|
+
emits: /* @__PURE__ */ mergeModels(["delete"], ["update:modelValue"]),
|
|
729
|
+
setup(e, { emit: m }) {
|
|
730
|
+
let { t: g } = useI18n(), _ = useModel(e, "modelValue"), v = m, y = computed(() => {
|
|
731
|
+
let m = "100%";
|
|
732
|
+
return e.hasDelete && (m = "calc(100% - 37px)"), { width: m };
|
|
733
|
+
}), C = computed(() => e.readonly), { open: D } = useViewStack(`propTreeColorPickerMenu${useId()}`);
|
|
734
|
+
return onUnmounted(() => {
|
|
735
|
+
D.value = !1;
|
|
736
|
+
}), (m, b) => {
|
|
737
|
+
let O = resolveComponent("v-btn"), k = resolveComponent("v-color-picker"), j = resolveComponent("v-menu");
|
|
738
|
+
return openBlock(), createBlock(j, {
|
|
739
|
+
modelValue: unref(D),
|
|
740
|
+
"onUpdate:modelValue": b[2] ||= (e) => isRef(D) ? D.value = e : null,
|
|
741
|
+
"close-on-content-click": !1,
|
|
742
|
+
scrim: "transparent"
|
|
743
|
+
}, {
|
|
744
|
+
activator: withCtx(({ props: m }) => [createElementVNode("div", _hoisted_1$13, [createElementVNode("div", {
|
|
745
|
+
class: "flex-grow-1",
|
|
746
|
+
style: normalizeStyle(y.value)
|
|
747
|
+
}, [createVNode(O, mergeProps(m, {
|
|
748
|
+
block: "",
|
|
749
|
+
color: _.value,
|
|
750
|
+
density: "comfortable",
|
|
751
|
+
disabled: C.value
|
|
752
|
+
}), {
|
|
753
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_.value ? _.value : unref(g)("x-runtime-lib.notSet")), 1)]),
|
|
754
|
+
_: 1
|
|
755
|
+
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (openBlock(), createBlock(O, {
|
|
756
|
+
key: 0,
|
|
757
|
+
class: "mx-2",
|
|
758
|
+
density: "compact",
|
|
759
|
+
icon: "mdi-minus",
|
|
760
|
+
variant: "text",
|
|
761
|
+
onClick: b[0] ||= withModifiers((e) => v("delete"), ["stop"])
|
|
762
|
+
})) : createCommentVNode("", !0)])]),
|
|
763
|
+
default: withCtx(() => [createVNode(k, {
|
|
764
|
+
modelValue: _.value,
|
|
765
|
+
"onUpdate:modelValue": b[1] ||= (e) => _.value = e,
|
|
766
|
+
mode: "hexa",
|
|
767
|
+
"show-swatches": "",
|
|
768
|
+
"swatches-max-height": "150px"
|
|
769
|
+
}, null, 8, ["modelValue"])]),
|
|
770
|
+
_: 1
|
|
771
|
+
}, 8, ["modelValue"]);
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
}), _hoisted_1$12 = { class: "text-subtitle-2 ml-1" }, _hoisted_2$3 = { class: "text-caption text-grey ml-1" }, group_default = /* @__PURE__ */ defineComponent({
|
|
775
|
+
__name: "group",
|
|
776
|
+
props: {
|
|
777
|
+
id: {},
|
|
778
|
+
title: {},
|
|
779
|
+
collapse: { type: Boolean },
|
|
780
|
+
count: {}
|
|
781
|
+
},
|
|
782
|
+
emits: ["x-click"],
|
|
783
|
+
setup(e, { emit: m }) {
|
|
784
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = e, y = m, x = ref(!1), S = computed(() => ({
|
|
785
|
+
background: x.value ? _.value : g.value,
|
|
786
|
+
height: "30px",
|
|
787
|
+
marginBottom: "1px",
|
|
788
|
+
userSelect: "none"
|
|
789
|
+
}));
|
|
790
|
+
return (e, m) => {
|
|
791
|
+
let g = resolveComponent("v-icon"), _ = resolveDirective("ripple");
|
|
792
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
793
|
+
class: "d-flex align-center cursor-pointer",
|
|
794
|
+
style: normalizeStyle(S.value),
|
|
795
|
+
onClick: m[0] ||= (e) => y("x-click", v.id),
|
|
796
|
+
onMouseout: m[1] ||= (e) => x.value = !1,
|
|
797
|
+
onMouseover: m[2] ||= (e) => x.value = !0
|
|
798
|
+
}, [
|
|
799
|
+
createVNode(g, {
|
|
800
|
+
icon: v.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
801
|
+
size: "small"
|
|
802
|
+
}, null, 8, ["icon"]),
|
|
803
|
+
createElementVNode("span", _hoisted_1$12, toDisplayString(v.title), 1),
|
|
804
|
+
createElementVNode("span", _hoisted_2$3, toDisplayString(v.count), 1)
|
|
805
|
+
], 36)), [[_]]);
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
}), _hoisted_1$11 = { class: "text-subtitle-1 ml-6" }, item_default$1 = /* @__PURE__ */ defineComponent({
|
|
809
|
+
__name: "item",
|
|
810
|
+
props: {
|
|
811
|
+
id: {},
|
|
812
|
+
title: {}
|
|
813
|
+
},
|
|
814
|
+
emits: ["x-click"],
|
|
815
|
+
setup(e, { emit: m }) {
|
|
816
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = e, y = m, x = ref(!1), S = computed(() => ({
|
|
817
|
+
background: x.value ? _.value : g.value,
|
|
818
|
+
height: "48px",
|
|
819
|
+
marginBottom: "1px",
|
|
820
|
+
userSelect: "none"
|
|
821
|
+
}));
|
|
822
|
+
return (e, m) => {
|
|
823
|
+
let g = resolveDirective("ripple");
|
|
824
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
825
|
+
class: "d-flex align-center cursor-pointer",
|
|
826
|
+
style: normalizeStyle(S.value),
|
|
827
|
+
onClick: m[0] ||= (e) => y("x-click", v.id),
|
|
828
|
+
onMouseout: m[1] ||= (e) => x.value = !1,
|
|
829
|
+
onMouseover: m[2] ||= (e) => x.value = !0
|
|
830
|
+
}, [createElementVNode("span", _hoisted_1$11, toDisplayString(v.title), 1)], 36)), [[g]]);
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
}), _hoisted_1$10 = { key: 0 }, _hoisted_2$2 = {
|
|
834
|
+
key: 1,
|
|
835
|
+
class: "text-body-2 text-grey ml-3"
|
|
836
|
+
}, compList_default = /* @__PURE__ */ defineComponent({
|
|
837
|
+
__name: "index",
|
|
838
|
+
props: {
|
|
839
|
+
modelValue: {},
|
|
840
|
+
modelModifiers: {},
|
|
841
|
+
open: {
|
|
842
|
+
type: Boolean,
|
|
843
|
+
required: !0
|
|
844
|
+
},
|
|
845
|
+
openModifiers: {}
|
|
846
|
+
},
|
|
847
|
+
emits: ["update:modelValue", "update:open"],
|
|
848
|
+
setup(e) {
|
|
849
|
+
let { nameList: m } = useSystem(), _ = useModel(e, "modelValue"), b = useModel(e, "open"), w = injectCompList(), T = (e) => {
|
|
850
|
+
let m = getListEntry(w, e);
|
|
851
|
+
m && setCollapse(w, e, !m.collapse);
|
|
852
|
+
}, E = (e) => {
|
|
853
|
+
_.value = e, b.value = !1, eventBus.emit("refreshDepends");
|
|
854
|
+
};
|
|
855
|
+
return (e, g) => unref(w).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$10, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(w), (e) => (openBlock(), createElementBlock(Fragment, { key: e.id }, [e.type === 0 ? (openBlock(), createBlock(group_default, {
|
|
856
|
+
key: 0,
|
|
857
|
+
id: e.id,
|
|
858
|
+
collapse: e.collapse,
|
|
859
|
+
count: e.count ?? 0,
|
|
860
|
+
title: e.name,
|
|
861
|
+
onXClick: T
|
|
862
|
+
}, null, 8, [
|
|
863
|
+
"id",
|
|
864
|
+
"collapse",
|
|
865
|
+
"count",
|
|
866
|
+
"title"
|
|
867
|
+
])) : createCommentVNode("", !0), e.type === 1 && e.show ? (openBlock(), createBlock(item_default$1, {
|
|
868
|
+
key: 1,
|
|
869
|
+
id: e.id,
|
|
870
|
+
title: e.name,
|
|
871
|
+
onXClick: E
|
|
872
|
+
}, null, 8, ["id", "title"])) : createCommentVNode("", !0)], 64))), 128))])) : (openBlock(), createElementBlock("div", _hoisted_2$2, toDisplayString(unref(m)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
873
|
+
}
|
|
874
|
+
}), _hoisted_1$9 = { class: "text-subtitle-1" }, compSelect_default = /* @__PURE__ */ defineComponent({
|
|
875
|
+
__name: "index",
|
|
876
|
+
props: {
|
|
877
|
+
modelValue: {},
|
|
878
|
+
modelModifiers: {}
|
|
879
|
+
},
|
|
880
|
+
emits: ["update:modelValue"],
|
|
881
|
+
setup(e) {
|
|
882
|
+
let { t: m } = useI18n(), g = useDisplay(), { sysBarAvail: _, nameList: y } = useSystem(), { backgroundColor1: C } = useColor(), D = useModel(e, "modelValue"), O = injectCompList(), k = computed(() => {
|
|
883
|
+
let e = "100%";
|
|
884
|
+
return g.mdAndUp.value && (e = "400px"), {
|
|
885
|
+
background: C.value,
|
|
886
|
+
width: e,
|
|
887
|
+
height: "100%"
|
|
888
|
+
};
|
|
889
|
+
}), j = computed(() => {
|
|
890
|
+
let e = 48;
|
|
891
|
+
return _.value && (e += 24), {
|
|
892
|
+
position: "relative",
|
|
893
|
+
height: `calc(100% - ${e}px)`
|
|
894
|
+
};
|
|
895
|
+
}), P = computed(() => ({ height: "60px" })), F = computed(() => {
|
|
896
|
+
if (!D.value) return m("x-runtime-lib.notSet");
|
|
897
|
+
let e = getListEntry(O, D.value);
|
|
898
|
+
return e ? e.name : m("x-runtime-lib.compNotAvail");
|
|
899
|
+
}), { open: L } = useViewStack(`propTreeCompSelectDlg${useId()}`);
|
|
900
|
+
return onUnmounted(() => {
|
|
901
|
+
L.value = !1;
|
|
902
|
+
}), (e, m) => {
|
|
903
|
+
let g = resolveComponent("v-btn"), v = resolveComponent("v-sheet"), b = resolveComponent("v-dialog");
|
|
904
|
+
return openBlock(), createBlock(b, {
|
|
905
|
+
modelValue: unref(L),
|
|
906
|
+
"onUpdate:modelValue": m[5] ||= (e) => isRef(L) ? L.value = e : null,
|
|
907
|
+
fullscreen: "",
|
|
908
|
+
"no-click-animation": "",
|
|
909
|
+
persistent: "",
|
|
910
|
+
transition: "scroll-x-reverse-transition",
|
|
911
|
+
onKeydown: m[6] ||= withKeys(withModifiers((e) => L.value = !1, ["stop", "prevent"]), ["esc"])
|
|
912
|
+
}, {
|
|
913
|
+
activator: withCtx(({ props: e }) => [createVNode(g, mergeProps(e, {
|
|
914
|
+
block: "",
|
|
915
|
+
density: "comfortable"
|
|
916
|
+
}), {
|
|
917
|
+
default: withCtx(() => [createTextVNode(toDisplayString(F.value), 1)]),
|
|
918
|
+
_: 1
|
|
919
|
+
}, 16)]),
|
|
920
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
921
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
922
|
+
onClick: m[3] ||= withModifiers((e) => L.value = !1, ["self"]),
|
|
923
|
+
onContextmenu: m[4] ||= withModifiers((e) => L.value = !1, ["self", "prevent"])
|
|
924
|
+
}, [createElementVNode("div", {
|
|
925
|
+
class: "elevation-2",
|
|
926
|
+
style: normalizeStyle(k.value)
|
|
927
|
+
}, [
|
|
928
|
+
unref(_) ? (openBlock(), createBlock(v, {
|
|
929
|
+
key: 0,
|
|
930
|
+
color: "transparent",
|
|
931
|
+
height: 24
|
|
932
|
+
})) : createCommentVNode("", !0),
|
|
933
|
+
createVNode(v, {
|
|
934
|
+
class: "d-flex align-center px-3",
|
|
935
|
+
color: "transparent",
|
|
936
|
+
height: 48
|
|
937
|
+
}, {
|
|
938
|
+
default: withCtx(() => [createVNode(g, {
|
|
939
|
+
density: "comfortable",
|
|
940
|
+
icon: "mdi-close",
|
|
941
|
+
variant: "text",
|
|
942
|
+
onClick: m[0] ||= (e) => L.value = !1
|
|
943
|
+
}), createElementVNode("span", _hoisted_1$9, toDisplayString(unref(y)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
944
|
+
_: 1
|
|
945
|
+
}),
|
|
946
|
+
createElementVNode("div", {
|
|
947
|
+
class: "overflow-y-auto",
|
|
948
|
+
style: normalizeStyle(j.value)
|
|
949
|
+
}, [createVNode(compList_default, {
|
|
950
|
+
modelValue: D.value,
|
|
951
|
+
"onUpdate:modelValue": m[1] ||= (e) => D.value = e,
|
|
952
|
+
open: unref(L),
|
|
953
|
+
"onUpdate:open": m[2] ||= (e) => isRef(L) ? L.value = e : null
|
|
954
|
+
}, null, 8, ["modelValue", "open"]), createElementVNode("div", { style: normalizeStyle(P.value) }, null, 4)], 4)
|
|
955
|
+
], 4)], 32)]),
|
|
956
|
+
_: 1
|
|
957
|
+
}, 8, ["modelValue"]);
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
}), editor_default = /* @__PURE__ */ defineComponent({
|
|
961
|
+
__name: "editor",
|
|
962
|
+
props: {
|
|
963
|
+
modelValue: { required: !0 },
|
|
964
|
+
modelModifiers: {},
|
|
965
|
+
lock: {
|
|
966
|
+
type: Boolean,
|
|
967
|
+
required: !0
|
|
968
|
+
},
|
|
969
|
+
lockModifiers: {},
|
|
970
|
+
scale: { required: !0 },
|
|
971
|
+
scaleModifiers: {}
|
|
972
|
+
},
|
|
973
|
+
emits: [
|
|
974
|
+
"update:modelValue",
|
|
975
|
+
"update:lock",
|
|
976
|
+
"update:scale"
|
|
977
|
+
],
|
|
978
|
+
setup(e, { expose: m }) {
|
|
979
|
+
let g = useModel(e, "modelValue"), _ = useModel(e, "lock"), v = useModel(e, "scale"), y = injectDark(), b = injectLocale(), S = injectVersion(), C = useTemplateRef("target"), w = () => {
|
|
980
|
+
let e = JSON.parse(g.value);
|
|
981
|
+
C.value?.load(e);
|
|
982
|
+
};
|
|
983
|
+
return m({ save: () => {
|
|
984
|
+
let e = C.value.save();
|
|
985
|
+
g.value = JSON.stringify(e, null, 2);
|
|
986
|
+
} }), (e, m) => (openBlock(), createBlock(unref(XBlockly), {
|
|
987
|
+
ref_key: "target",
|
|
988
|
+
ref: C,
|
|
989
|
+
lock: _.value,
|
|
990
|
+
"onUpdate:lock": m[0] ||= (e) => _.value = e,
|
|
991
|
+
scale: v.value,
|
|
992
|
+
"onUpdate:scale": m[1] ||= (e) => v.value = e,
|
|
993
|
+
dark: unref(y),
|
|
994
|
+
locale: unref(b),
|
|
995
|
+
type: "json",
|
|
996
|
+
version: unref(S),
|
|
997
|
+
onReady: w
|
|
998
|
+
}, null, 8, [
|
|
999
|
+
"lock",
|
|
1000
|
+
"scale",
|
|
1001
|
+
"dark",
|
|
1002
|
+
"locale",
|
|
1003
|
+
"version"
|
|
1004
|
+
]));
|
|
1005
|
+
}
|
|
1006
|
+
}), _hoisted_1$8 = { class: "text-subtitle-1" }, jsonEditor_default = /* @__PURE__ */ defineComponent({
|
|
1007
|
+
__name: "index",
|
|
1008
|
+
props: {
|
|
1009
|
+
modelValue: { required: !0 },
|
|
1010
|
+
modelModifiers: {}
|
|
1011
|
+
},
|
|
1012
|
+
emits: ["update:modelValue"],
|
|
1013
|
+
setup(e) {
|
|
1014
|
+
let { t: m } = useI18n(), { sysBarAvail: g } = useSystem(), { backgroundColor0: _, backgroundColor1: v, backgroundColor2: y } = useColor(), C = useModel(e, "modelValue"), D = ref(!1), O = ref(1), k = computed(() => {
|
|
1015
|
+
let e = 48;
|
|
1016
|
+
return g.value && (e += 24), {
|
|
1017
|
+
position: "relative",
|
|
1018
|
+
background: v.value,
|
|
1019
|
+
height: `calc(100% - ${e}px)`
|
|
1020
|
+
};
|
|
1021
|
+
}), j = computed(() => m("x-prop-tree.jsonEditor")), { open: P } = useViewStack(`propTreejsonEditorDlg${useId()}`);
|
|
1022
|
+
onUnmounted(() => {
|
|
1023
|
+
P.value = !1;
|
|
1024
|
+
});
|
|
1025
|
+
let F = useTemplateRef("editor");
|
|
1026
|
+
return watch(P, (e) => {
|
|
1027
|
+
e || F.value?.save();
|
|
1028
|
+
}), (e, m) => {
|
|
1029
|
+
let v = resolveComponent("v-btn"), b = resolveComponent("v-sheet"), I = resolveComponent("v-spacer"), L = resolveComponent("v-dialog");
|
|
1030
|
+
return openBlock(), createBlock(L, {
|
|
1031
|
+
modelValue: unref(P),
|
|
1032
|
+
"onUpdate:modelValue": m[4] ||= (e) => isRef(P) ? P.value = e : null,
|
|
1033
|
+
attach: "",
|
|
1034
|
+
fullscreen: "",
|
|
1035
|
+
"no-click-animation": "",
|
|
1036
|
+
persistent: "",
|
|
1037
|
+
transition: "dialog-bottom-transition",
|
|
1038
|
+
onKeydown: m[5] ||= withKeys(withModifiers((e) => P.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1039
|
+
}, {
|
|
1040
|
+
activator: withCtx(({ props: e }) => [createVNode(v, mergeProps(e, {
|
|
1041
|
+
block: "",
|
|
1042
|
+
density: "comfortable"
|
|
1043
|
+
}), {
|
|
1044
|
+
default: withCtx(() => [createTextVNode(toDisplayString(j.value), 1)]),
|
|
1045
|
+
_: 1
|
|
1046
|
+
}, 16)]),
|
|
1047
|
+
default: withCtx(() => [createVNode(b, {
|
|
1048
|
+
color: unref(_),
|
|
1049
|
+
height: "100%",
|
|
1050
|
+
width: "100%"
|
|
1051
|
+
}, {
|
|
1052
|
+
default: withCtx(() => [
|
|
1053
|
+
unref(g) ? (openBlock(), createBlock(b, {
|
|
1054
|
+
key: 0,
|
|
1055
|
+
color: unref(y),
|
|
1056
|
+
height: 24
|
|
1057
|
+
}, null, 8, ["color"])) : createCommentVNode("", !0),
|
|
1058
|
+
createVNode(b, {
|
|
1059
|
+
class: "d-flex align-center px-2",
|
|
1060
|
+
color: unref(y),
|
|
1061
|
+
height: 48
|
|
1062
|
+
}, {
|
|
1063
|
+
default: withCtx(() => [
|
|
1064
|
+
createVNode(v, {
|
|
1065
|
+
density: "comfortable",
|
|
1066
|
+
icon: "mdi-close",
|
|
1067
|
+
variant: "text",
|
|
1068
|
+
onClick: m[0] ||= (e) => P.value = !1
|
|
1069
|
+
}),
|
|
1070
|
+
createElementVNode("span", _hoisted_1$8, toDisplayString(j.value), 1),
|
|
1071
|
+
createVNode(I)
|
|
1072
|
+
]),
|
|
1073
|
+
_: 1
|
|
1074
|
+
}, 8, ["color"]),
|
|
1075
|
+
createElementVNode("div", { style: normalizeStyle(k.value) }, [createVNode(editor_default, {
|
|
1076
|
+
ref_key: "editor",
|
|
1077
|
+
ref: F,
|
|
1078
|
+
modelValue: C.value,
|
|
1079
|
+
"onUpdate:modelValue": m[1] ||= (e) => C.value = e,
|
|
1080
|
+
lock: D.value,
|
|
1081
|
+
"onUpdate:lock": m[2] ||= (e) => D.value = e,
|
|
1082
|
+
scale: O.value,
|
|
1083
|
+
"onUpdate:scale": m[3] ||= (e) => O.value = e
|
|
1084
|
+
}, null, 8, [
|
|
1085
|
+
"modelValue",
|
|
1086
|
+
"lock",
|
|
1087
|
+
"scale"
|
|
1088
|
+
])], 4)
|
|
1089
|
+
]),
|
|
1090
|
+
_: 1
|
|
1091
|
+
}, 8, ["color"])]),
|
|
1092
|
+
_: 1
|
|
1093
|
+
}, 8, ["modelValue"]);
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
}), _hoisted_1$7 = { class: "d-flex justify-space-between align-center my-2" }, _hoisted_2$1 = { class: "flex-grow-1" }, multiTypes_default = /* @__PURE__ */ defineComponent({
|
|
1097
|
+
__name: "index",
|
|
1098
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1099
|
+
hasDelete: {
|
|
1100
|
+
type: Boolean,
|
|
1101
|
+
default: !1
|
|
1102
|
+
},
|
|
1103
|
+
types: {}
|
|
1104
|
+
}, {
|
|
1105
|
+
modelValue: {},
|
|
1106
|
+
modelModifiers: {}
|
|
1107
|
+
}),
|
|
1108
|
+
emits: /* @__PURE__ */ mergeModels(["delete"], ["update:modelValue"]),
|
|
1109
|
+
setup(e, { emit: m }) {
|
|
1110
|
+
let { t: g } = useI18n(), { isMobile: _ } = useSystem(), v = useModel(e, "modelValue"), y = m, T = injectVersion(), D = computed(() => pkgs[T.value].types[e.types]), O = ref(0), k = computed(() => {
|
|
1111
|
+
let e = [];
|
|
1112
|
+
return D.value?.forEach(({ title: m }, _) => {
|
|
1113
|
+
e.push({
|
|
1114
|
+
title: g(m),
|
|
1115
|
+
value: _
|
|
1116
|
+
});
|
|
1117
|
+
}), e;
|
|
1118
|
+
});
|
|
1119
|
+
watchEffect(() => {
|
|
1120
|
+
D.value?.some((e, m) => e.validator(v.value) ? (O.value = m, !0) : !1);
|
|
1121
|
+
});
|
|
1122
|
+
let A = computed(() => D.value?.[O.value]), j = () => {
|
|
1123
|
+
v.value = A.value?.default;
|
|
1124
|
+
}, M = ref(0), N = async (e) => {
|
|
1125
|
+
if (!e || !_() || A.value.ui !== "pixelInput" && A.value.ui !== "percentInput") return;
|
|
1126
|
+
let m = await openNumberDlg({
|
|
1127
|
+
title: "",
|
|
1128
|
+
value: M.value,
|
|
1129
|
+
precision: A.value.precision,
|
|
1130
|
+
min: A.value.min,
|
|
1131
|
+
max: A.value.max,
|
|
1132
|
+
step: A.value.step
|
|
1133
|
+
});
|
|
1134
|
+
m !== void 0 && (M.value = m);
|
|
1135
|
+
};
|
|
1136
|
+
return watchEffect(() => {
|
|
1137
|
+
A.value?.ui === "pixelInput" ? M.value = parsePixelStr(v.value) : A.value?.ui === "percentInput" && (M.value = parsePercentStr(v.value));
|
|
1138
|
+
}), watch(M, (e) => {
|
|
1139
|
+
A.value?.ui === "pixelInput" ? v.value = e + "px" : A.value?.ui === "percentInput" && (v.value = e + "%");
|
|
1140
|
+
}), (m, g) => {
|
|
1141
|
+
let _ = resolveComponent("v-select"), v = resolveComponent("v-number-input"), b = resolveComponent("v-btn"), T = resolveDirective("ripple");
|
|
1142
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [createElementVNode("div", _hoisted_2$1, [withDirectives(createVNode(_, {
|
|
1143
|
+
modelValue: O.value,
|
|
1144
|
+
"onUpdate:modelValue": [g[0] ||= (e) => O.value = e, j],
|
|
1145
|
+
density: "compact",
|
|
1146
|
+
"hide-details": "",
|
|
1147
|
+
items: k.value,
|
|
1148
|
+
"single-line": ""
|
|
1149
|
+
}, null, 8, ["modelValue", "items"]), [[
|
|
1150
|
+
T,
|
|
1151
|
+
void 0,
|
|
1152
|
+
void 0,
|
|
1153
|
+
{ stop: !0 }
|
|
1154
|
+
]]), A.value?.ui === "pixelInput" || A.value?.ui === "percentInput" ? withDirectives((openBlock(), createBlock(v, {
|
|
1155
|
+
key: 0,
|
|
1156
|
+
modelValue: M.value,
|
|
1157
|
+
"onUpdate:modelValue": g[1] ||= (e) => M.value = e,
|
|
1158
|
+
"control-variant": "stacked",
|
|
1159
|
+
density: "compact",
|
|
1160
|
+
"hide-details": "",
|
|
1161
|
+
max: A.value.max,
|
|
1162
|
+
min: A.value.min,
|
|
1163
|
+
precision: A.value.precision,
|
|
1164
|
+
"single-line": "",
|
|
1165
|
+
step: A.value.step,
|
|
1166
|
+
"onUpdate:focused": N
|
|
1167
|
+
}, null, 8, [
|
|
1168
|
+
"modelValue",
|
|
1169
|
+
"max",
|
|
1170
|
+
"min",
|
|
1171
|
+
"precision",
|
|
1172
|
+
"step"
|
|
1173
|
+
])), [[
|
|
1174
|
+
T,
|
|
1175
|
+
void 0,
|
|
1176
|
+
void 0,
|
|
1177
|
+
{ stop: !0 }
|
|
1178
|
+
]]) : createCommentVNode("", !0)]), e.hasDelete ? (openBlock(), createBlock(b, {
|
|
1179
|
+
key: 0,
|
|
1180
|
+
class: "mx-2",
|
|
1181
|
+
density: "compact",
|
|
1182
|
+
icon: "mdi-minus",
|
|
1183
|
+
variant: "text",
|
|
1184
|
+
onClick: g[2] ||= withModifiers((e) => y("delete"), ["stop"])
|
|
1185
|
+
})) : createCommentVNode("", !0)]);
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
}), _hoisted_1$6 = { class: "d-flex justify-space-between align-center" }, numInput_default = /* @__PURE__ */ defineComponent({
|
|
1189
|
+
__name: "index",
|
|
1190
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1191
|
+
hasDelete: {
|
|
1192
|
+
type: Boolean,
|
|
1193
|
+
default: !1
|
|
1194
|
+
},
|
|
1195
|
+
precision: { default: () => void 0 },
|
|
1196
|
+
min: { default: () => -Infinity },
|
|
1197
|
+
max: { default: () => Infinity },
|
|
1198
|
+
step: { default: 1 },
|
|
1199
|
+
readonly: {
|
|
1200
|
+
type: Boolean,
|
|
1201
|
+
default: !1
|
|
1202
|
+
}
|
|
1203
|
+
}, {
|
|
1204
|
+
modelValue: { required: !0 },
|
|
1205
|
+
modelModifiers: {}
|
|
1206
|
+
}),
|
|
1207
|
+
emits: /* @__PURE__ */ mergeModels(["delete"], ["update:modelValue"]),
|
|
1208
|
+
setup(e, { emit: m }) {
|
|
1209
|
+
let { isMobile: g } = useSystem(), _ = useModel(e, "modelValue"), v = m, y = async (m) => {
|
|
1210
|
+
if (!m || e.readonly || !g()) return;
|
|
1211
|
+
let v = await openNumberDlg({
|
|
1212
|
+
title: "",
|
|
1213
|
+
value: _.value,
|
|
1214
|
+
precision: e.precision,
|
|
1215
|
+
min: e.min,
|
|
1216
|
+
max: e.max,
|
|
1217
|
+
step: e.step
|
|
1218
|
+
});
|
|
1219
|
+
v !== void 0 && (_.value = v);
|
|
1220
|
+
};
|
|
1221
|
+
return (m, g) => {
|
|
1222
|
+
let b = resolveComponent("v-number-input"), w = resolveComponent("v-btn"), T = resolveDirective("ripple");
|
|
1223
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [withDirectives(createVNode(b, {
|
|
1224
|
+
modelValue: _.value,
|
|
1225
|
+
"onUpdate:modelValue": g[0] ||= (e) => _.value = e,
|
|
1226
|
+
"control-variant": "stacked",
|
|
1227
|
+
density: "compact",
|
|
1228
|
+
"hide-details": "",
|
|
1229
|
+
max: e.max,
|
|
1230
|
+
min: e.min,
|
|
1231
|
+
precision: e.precision,
|
|
1232
|
+
readonly: e.readonly,
|
|
1233
|
+
"single-line": "",
|
|
1234
|
+
step: e.step,
|
|
1235
|
+
"onUpdate:focused": y
|
|
1236
|
+
}, null, 8, [
|
|
1237
|
+
"modelValue",
|
|
1238
|
+
"max",
|
|
1239
|
+
"min",
|
|
1240
|
+
"precision",
|
|
1241
|
+
"readonly",
|
|
1242
|
+
"step"
|
|
1243
|
+
]), [[
|
|
1244
|
+
T,
|
|
1245
|
+
void 0,
|
|
1246
|
+
void 0,
|
|
1247
|
+
{ stop: !0 }
|
|
1248
|
+
]]), e.hasDelete ? (openBlock(), createBlock(w, {
|
|
1249
|
+
key: 0,
|
|
1250
|
+
class: "mx-2",
|
|
1251
|
+
density: "compact",
|
|
1252
|
+
icon: "mdi-minus",
|
|
1253
|
+
variant: "text",
|
|
1254
|
+
onClick: g[1] ||= withModifiers((e) => v("delete"), ["stop"])
|
|
1255
|
+
})) : createCommentVNode("", !0)]);
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
}), _hoisted_1$5 = { class: "d-flex justify-space-between align-center" }, select_default = /* @__PURE__ */ defineComponent({
|
|
1259
|
+
__name: "index",
|
|
1260
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1261
|
+
hasDelete: {
|
|
1262
|
+
type: Boolean,
|
|
1263
|
+
default: !1
|
|
1264
|
+
},
|
|
1265
|
+
readonly: {
|
|
1266
|
+
type: Boolean,
|
|
1267
|
+
default: !1
|
|
1268
|
+
},
|
|
1269
|
+
items: {}
|
|
1270
|
+
}, {
|
|
1271
|
+
modelValue: {},
|
|
1272
|
+
modelModifiers: {}
|
|
1273
|
+
}),
|
|
1274
|
+
emits: /* @__PURE__ */ mergeModels(["delete"], ["update:modelValue"]),
|
|
1275
|
+
setup(e, { emit: m }) {
|
|
1276
|
+
let { t: g } = useI18n(), _ = useModel(e, "modelValue"), v = m, y = injectVersion(), w = computed(() => {
|
|
1277
|
+
let m = [];
|
|
1278
|
+
return pkgs[y.value].items[e.items].forEach(({ title: e, value: _ }) => {
|
|
1279
|
+
m.push({
|
|
1280
|
+
title: g(e),
|
|
1281
|
+
value: _
|
|
1282
|
+
});
|
|
1283
|
+
}), m;
|
|
1284
|
+
});
|
|
1285
|
+
return (m, g) => {
|
|
1286
|
+
let y = resolveComponent("v-select"), b = resolveComponent("v-btn"), T = resolveDirective("ripple");
|
|
1287
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [withDirectives(createVNode(y, {
|
|
1288
|
+
modelValue: _.value,
|
|
1289
|
+
"onUpdate:modelValue": g[0] ||= (e) => _.value = e,
|
|
1290
|
+
density: "compact",
|
|
1291
|
+
"hide-details": "",
|
|
1292
|
+
items: w.value,
|
|
1293
|
+
readonly: e.readonly,
|
|
1294
|
+
"single-line": ""
|
|
1295
|
+
}, null, 8, [
|
|
1296
|
+
"modelValue",
|
|
1297
|
+
"items",
|
|
1298
|
+
"readonly"
|
|
1299
|
+
]), [[
|
|
1300
|
+
T,
|
|
1301
|
+
void 0,
|
|
1302
|
+
void 0,
|
|
1303
|
+
{ stop: !0 }
|
|
1304
|
+
]]), e.hasDelete ? (openBlock(), createBlock(b, {
|
|
1305
|
+
key: 0,
|
|
1306
|
+
class: "mx-2",
|
|
1307
|
+
density: "compact",
|
|
1308
|
+
icon: "mdi-minus",
|
|
1309
|
+
variant: "text",
|
|
1310
|
+
onClick: g[1] ||= withModifiers((e) => v("delete"), ["stop"])
|
|
1311
|
+
})) : createCommentVNode("", !0)]);
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
}), _hoisted_1$4 = { class: "text-subtitle-1 ml-6" }, item_default = /* @__PURE__ */ defineComponent({
|
|
1315
|
+
__name: "item",
|
|
1316
|
+
props: {
|
|
1317
|
+
id: {},
|
|
1318
|
+
title: {}
|
|
1319
|
+
},
|
|
1320
|
+
emits: ["x-click"],
|
|
1321
|
+
setup(e, { emit: m }) {
|
|
1322
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = m, y = ref(!1), x = computed(() => ({
|
|
1323
|
+
background: y.value ? _.value : g.value,
|
|
1324
|
+
height: "48px",
|
|
1325
|
+
marginBottom: "1px",
|
|
1326
|
+
userSelect: "none"
|
|
1327
|
+
}));
|
|
1328
|
+
return (m, g) => {
|
|
1329
|
+
let _ = resolveDirective("ripple");
|
|
1330
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
1331
|
+
class: "d-flex align-center cursor-pointer",
|
|
1332
|
+
style: normalizeStyle(x.value),
|
|
1333
|
+
onClick: g[0] ||= (m) => v("x-click", e.id),
|
|
1334
|
+
onMouseout: g[1] ||= (e) => y.value = !1,
|
|
1335
|
+
onMouseover: g[2] ||= (e) => y.value = !0
|
|
1336
|
+
}, [createElementVNode("span", _hoisted_1$4, toDisplayString(e.title), 1)], 36)), [[_]]);
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
}), _hoisted_1$3 = { key: 0 }, _hoisted_2 = {
|
|
1340
|
+
key: 1,
|
|
1341
|
+
class: "text-body-2 text-grey ml-3"
|
|
1342
|
+
}, slotList_default = /* @__PURE__ */ defineComponent({
|
|
1343
|
+
__name: "index",
|
|
1344
|
+
props: {
|
|
1345
|
+
modelValue: {},
|
|
1346
|
+
modelModifiers: {},
|
|
1347
|
+
open: {
|
|
1348
|
+
type: Boolean,
|
|
1349
|
+
required: !0
|
|
1350
|
+
},
|
|
1351
|
+
openModifiers: {}
|
|
1352
|
+
},
|
|
1353
|
+
emits: ["update:modelValue", "update:open"],
|
|
1354
|
+
setup(e) {
|
|
1355
|
+
let { nameList: m } = useSystem(), g = useModel(e, "modelValue"), _ = useModel(e, "open"), v = injectSlotList(), b = (e) => {
|
|
1356
|
+
g.value = e, _.value = !1;
|
|
1357
|
+
};
|
|
1358
|
+
return (e, g) => unref(v).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$3, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(v), (e) => (openBlock(), createBlock(item_default, {
|
|
1359
|
+
key: e.id,
|
|
1360
|
+
id: e.id,
|
|
1361
|
+
title: e.name,
|
|
1362
|
+
onXClick: b
|
|
1363
|
+
}, null, 8, ["id", "title"]))), 128))])) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(m)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1364
|
+
}
|
|
1365
|
+
}), _hoisted_1$2 = { class: "text-subtitle-1" }, slotSelect_default = /* @__PURE__ */ defineComponent({
|
|
1366
|
+
__name: "index",
|
|
1367
|
+
props: {
|
|
1368
|
+
modelValue: {},
|
|
1369
|
+
modelModifiers: {}
|
|
1370
|
+
},
|
|
1371
|
+
emits: ["update:modelValue"],
|
|
1372
|
+
setup(e) {
|
|
1373
|
+
let { t: m } = useI18n(), g = useDisplay(), { sysBarAvail: _, nameList: v } = useSystem(), { backgroundColor1: y } = useColor(), C = useModel(e, "modelValue"), D = injectSlotList(), O = computed(() => {
|
|
1374
|
+
let e = "100%";
|
|
1375
|
+
return g.mdAndUp.value && (e = "400px"), {
|
|
1376
|
+
background: y.value,
|
|
1377
|
+
width: e,
|
|
1378
|
+
height: "100%"
|
|
1379
|
+
};
|
|
1380
|
+
}), k = computed(() => {
|
|
1381
|
+
let e = 48;
|
|
1382
|
+
return _.value && (e += 24), {
|
|
1383
|
+
position: "relative",
|
|
1384
|
+
height: `calc(100% - ${e}px)`
|
|
1385
|
+
};
|
|
1386
|
+
}), j = computed(() => ({ height: "60px" })), P = computed(() => {
|
|
1387
|
+
if (!C.value) return m("x-runtime-lib.notSet");
|
|
1388
|
+
let e = D.value.find((e) => e.id === C.value);
|
|
1389
|
+
return e ? e.name : m("x-runtime-lib.slotNotAvail");
|
|
1390
|
+
}), { open: F } = useViewStack(`propTreeSlotSelectDlg${useId()}`);
|
|
1391
|
+
return onUnmounted(() => {
|
|
1392
|
+
F.value = !1;
|
|
1393
|
+
}), (e, m) => {
|
|
1394
|
+
let g = resolveComponent("v-btn"), y = resolveComponent("v-sheet"), b = resolveComponent("v-dialog");
|
|
1395
|
+
return openBlock(), createBlock(b, {
|
|
1396
|
+
modelValue: unref(F),
|
|
1397
|
+
"onUpdate:modelValue": m[5] ||= (e) => isRef(F) ? F.value = e : null,
|
|
1398
|
+
fullscreen: "",
|
|
1399
|
+
"no-click-animation": "",
|
|
1400
|
+
persistent: "",
|
|
1401
|
+
transition: "scroll-x-reverse-transition",
|
|
1402
|
+
onKeydown: m[6] ||= withKeys(withModifiers((e) => F.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1403
|
+
}, {
|
|
1404
|
+
activator: withCtx(({ props: e }) => [createVNode(g, mergeProps(e, {
|
|
1405
|
+
block: "",
|
|
1406
|
+
density: "comfortable"
|
|
1407
|
+
}), {
|
|
1408
|
+
default: withCtx(() => [createTextVNode(toDisplayString(P.value), 1)]),
|
|
1409
|
+
_: 1
|
|
1410
|
+
}, 16)]),
|
|
1411
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1412
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1413
|
+
onClick: m[3] ||= withModifiers((e) => F.value = !1, ["self"]),
|
|
1414
|
+
onContextmenu: m[4] ||= withModifiers((e) => F.value = !1, ["self", "prevent"])
|
|
1415
|
+
}, [createElementVNode("div", {
|
|
1416
|
+
class: "elevation-2",
|
|
1417
|
+
style: normalizeStyle(O.value)
|
|
1418
|
+
}, [
|
|
1419
|
+
unref(_) ? (openBlock(), createBlock(y, {
|
|
1420
|
+
key: 0,
|
|
1421
|
+
color: "transparent",
|
|
1422
|
+
height: 24
|
|
1423
|
+
})) : createCommentVNode("", !0),
|
|
1424
|
+
createVNode(y, {
|
|
1425
|
+
class: "d-flex align-center px-3",
|
|
1426
|
+
color: "transparent",
|
|
1427
|
+
height: 48
|
|
1428
|
+
}, {
|
|
1429
|
+
default: withCtx(() => [createVNode(g, {
|
|
1430
|
+
density: "comfortable",
|
|
1431
|
+
icon: "mdi-close",
|
|
1432
|
+
variant: "text",
|
|
1433
|
+
onClick: m[0] ||= (e) => F.value = !1
|
|
1434
|
+
}), createElementVNode("span", _hoisted_1$2, toDisplayString(unref(v)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1435
|
+
_: 1
|
|
1436
|
+
}),
|
|
1437
|
+
createElementVNode("div", {
|
|
1438
|
+
class: "overflow-y-auto",
|
|
1439
|
+
style: normalizeStyle(k.value)
|
|
1440
|
+
}, [createVNode(slotList_default, {
|
|
1441
|
+
modelValue: C.value,
|
|
1442
|
+
"onUpdate:modelValue": m[1] ||= (e) => C.value = e,
|
|
1443
|
+
open: unref(F),
|
|
1444
|
+
"onUpdate:open": m[2] ||= (e) => isRef(F) ? F.value = e : null
|
|
1445
|
+
}, null, 8, ["modelValue", "open"]), createElementVNode("div", { style: normalizeStyle(j.value) }, null, 4)], 4)
|
|
1446
|
+
], 4)], 32)]),
|
|
1447
|
+
_: 1
|
|
1448
|
+
}, 8, ["modelValue"]);
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
}), _hoisted_1$1 = { class: "d-flex justify-space-between align-center" }, strInput_default = /* @__PURE__ */ defineComponent({
|
|
1452
|
+
__name: "index",
|
|
1453
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1454
|
+
hasDelete: {
|
|
1455
|
+
type: Boolean,
|
|
1456
|
+
default: !1
|
|
1457
|
+
},
|
|
1458
|
+
readonly: {
|
|
1459
|
+
type: Boolean,
|
|
1460
|
+
default: !1
|
|
1461
|
+
}
|
|
1462
|
+
}, {
|
|
1463
|
+
modelValue: { required: !0 },
|
|
1464
|
+
modelModifiers: {}
|
|
1465
|
+
}),
|
|
1466
|
+
emits: /* @__PURE__ */ mergeModels(["delete"], ["update:modelValue"]),
|
|
1467
|
+
setup(e, { emit: m }) {
|
|
1468
|
+
let { isMobile: g } = useSystem(), _ = useModel(e, "modelValue"), v = m, y = async (m) => {
|
|
1469
|
+
if (!m || e.readonly || !g()) return;
|
|
1470
|
+
let v = await openPromptDlg({
|
|
1471
|
+
title: "",
|
|
1472
|
+
value: _.value
|
|
1473
|
+
});
|
|
1474
|
+
v !== void 0 && (_.value = v);
|
|
1475
|
+
};
|
|
1476
|
+
return (m, g) => {
|
|
1477
|
+
let b = resolveComponent("v-text-field"), w = resolveComponent("v-btn"), T = resolveDirective("ripple");
|
|
1478
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [withDirectives(createVNode(b, {
|
|
1479
|
+
modelValue: _.value,
|
|
1480
|
+
"onUpdate:modelValue": g[0] ||= (e) => _.value = e,
|
|
1481
|
+
density: "compact",
|
|
1482
|
+
"hide-details": "",
|
|
1483
|
+
readonly: e.readonly,
|
|
1484
|
+
"single-line": "",
|
|
1485
|
+
"onUpdate:focused": y
|
|
1486
|
+
}, null, 8, ["modelValue", "readonly"]), [[
|
|
1487
|
+
T,
|
|
1488
|
+
void 0,
|
|
1489
|
+
void 0,
|
|
1490
|
+
{ stop: !0 }
|
|
1491
|
+
]]), e.hasDelete ? (openBlock(), createBlock(w, {
|
|
1492
|
+
key: 0,
|
|
1493
|
+
class: "mx-2",
|
|
1494
|
+
density: "compact",
|
|
1495
|
+
icon: "mdi-minus",
|
|
1496
|
+
variant: "text",
|
|
1497
|
+
onClick: g[1] ||= withModifiers((e) => v("delete"), ["stop"])
|
|
1498
|
+
})) : createCommentVNode("", !0)]);
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
}), _hoisted_1 = { class: "d-flex justify-space-between align-center" }, switch_default = /* @__PURE__ */ defineComponent({
|
|
1502
|
+
__name: "index",
|
|
1503
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1504
|
+
hasDelete: {
|
|
1505
|
+
type: Boolean,
|
|
1506
|
+
default: !1
|
|
1507
|
+
},
|
|
1508
|
+
readonly: {
|
|
1509
|
+
type: Boolean,
|
|
1510
|
+
default: !1
|
|
1511
|
+
}
|
|
1512
|
+
}, {
|
|
1513
|
+
modelValue: { type: Boolean },
|
|
1514
|
+
modelModifiers: {}
|
|
1515
|
+
}),
|
|
1516
|
+
emits: /* @__PURE__ */ mergeModels(["delete"], ["update:modelValue"]),
|
|
1517
|
+
setup(e, { emit: m }) {
|
|
1518
|
+
let g = useModel(e, "modelValue"), _ = m;
|
|
1519
|
+
return (m, v) => {
|
|
1520
|
+
let y = resolveComponent("v-switch"), b = resolveComponent("v-btn");
|
|
1521
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(y, {
|
|
1522
|
+
modelValue: g.value,
|
|
1523
|
+
"onUpdate:modelValue": v[0] ||= (e) => g.value = e,
|
|
1524
|
+
class: "ml-1",
|
|
1525
|
+
color: "primary",
|
|
1526
|
+
density: "compact",
|
|
1527
|
+
"hide-details": "",
|
|
1528
|
+
readonly: e.readonly
|
|
1529
|
+
}, null, 8, ["modelValue", "readonly"]), e.hasDelete ? (openBlock(), createBlock(b, {
|
|
1530
|
+
key: 0,
|
|
1531
|
+
class: "mx-2",
|
|
1532
|
+
density: "compact",
|
|
1533
|
+
icon: "mdi-minus",
|
|
1534
|
+
variant: "text",
|
|
1535
|
+
onClick: v[1] ||= withModifiers((e) => _("delete"), ["stop"])
|
|
1536
|
+
})) : createCommentVNode("", !0)]);
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1684
1539
|
});
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
o,
|
|
1693
|
-
i
|
|
1694
|
-
),
|
|
1695
|
-
"onUpdate:modelValue": (r) => {
|
|
1696
|
-
oe(
|
|
1697
|
-
l,
|
|
1698
|
-
e,
|
|
1699
|
-
n,
|
|
1700
|
-
r,
|
|
1701
|
-
t,
|
|
1702
|
-
o,
|
|
1703
|
-
i
|
|
1704
|
-
);
|
|
1705
|
-
}
|
|
1706
|
-
}) };
|
|
1540
|
+
function useUiAdaptSlotSelect(e) {
|
|
1541
|
+
return { renderUiAdaptSlotSelect: (m, g, _, v, y) => g.ui === "selectAdaptSlot" ? h(adaptSlotSelect_default, {
|
|
1542
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y))(),
|
|
1543
|
+
"onUpdate:modelValue": (b) => {
|
|
1544
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1545
|
+
}
|
|
1546
|
+
}) : (console.assert(!1), h("div", "renderUiSlotSelect property ui must be selectAdaptSlot")) };
|
|
1707
1547
|
}
|
|
1708
|
-
function
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
l,
|
|
1721
|
-
e,
|
|
1722
|
-
n,
|
|
1723
|
-
r,
|
|
1724
|
-
t,
|
|
1725
|
-
o,
|
|
1726
|
-
i
|
|
1727
|
-
);
|
|
1728
|
-
},
|
|
1729
|
-
hasDelete: o !== void 0 && !i,
|
|
1730
|
-
onDelete: () => {
|
|
1731
|
-
o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
|
|
1732
|
-
},
|
|
1733
|
-
readonly: e.readonly
|
|
1734
|
-
}) };
|
|
1548
|
+
function useUiColorPicker(e) {
|
|
1549
|
+
return { renderUiColorPicker: (m, g, _, v, y) => g.ui === "colorPicker" ? h(colorPicker_default, {
|
|
1550
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y))(),
|
|
1551
|
+
"onUpdate:modelValue": (b) => {
|
|
1552
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1553
|
+
},
|
|
1554
|
+
hasDelete: v !== void 0 && !y,
|
|
1555
|
+
onDelete: () => {
|
|
1556
|
+
v === void 0 || y || (_.splice(v, 1), e(m.slice(0, -1), _));
|
|
1557
|
+
},
|
|
1558
|
+
readonly: g.readonly
|
|
1559
|
+
}) : (console.assert(!1), h("div", "renderUiColorPicker property ui must be colorPicker")) };
|
|
1735
1560
|
}
|
|
1736
|
-
function
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
o,
|
|
1744
|
-
i
|
|
1745
|
-
),
|
|
1746
|
-
"onUpdate:modelValue": (r) => {
|
|
1747
|
-
oe(
|
|
1748
|
-
l,
|
|
1749
|
-
e,
|
|
1750
|
-
n,
|
|
1751
|
-
r,
|
|
1752
|
-
t,
|
|
1753
|
-
o,
|
|
1754
|
-
i
|
|
1755
|
-
);
|
|
1756
|
-
}
|
|
1757
|
-
}) };
|
|
1561
|
+
function useUiCompSelect(e) {
|
|
1562
|
+
return { renderUiCompSelect: (m, g, _, v, y) => g.ui === "selectComp" ? h(compSelect_default, {
|
|
1563
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y))(),
|
|
1564
|
+
"onUpdate:modelValue": (b) => {
|
|
1565
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1566
|
+
}
|
|
1567
|
+
}) : (console.assert(!1), h("div", "renderUiCompSelect property ui must be selectComp")) };
|
|
1758
1568
|
}
|
|
1759
|
-
function
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1569
|
+
function useUiDummy(e) {
|
|
1570
|
+
return { renderUiDummy: (m, g, _, v, y) => {
|
|
1571
|
+
if (g.ui !== "dummy") {
|
|
1572
|
+
console.assert(!1, "renderUiDummy property ui must be dummy");
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
getModelValue(m, g, _, e, v, y);
|
|
1576
|
+
} };
|
|
1767
1577
|
}
|
|
1768
|
-
function
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
o,
|
|
1776
|
-
i
|
|
1777
|
-
) ?? "{}",
|
|
1778
|
-
"onUpdate:modelValue": (r) => {
|
|
1779
|
-
oe(
|
|
1780
|
-
l,
|
|
1781
|
-
e,
|
|
1782
|
-
n,
|
|
1783
|
-
r,
|
|
1784
|
-
t,
|
|
1785
|
-
o,
|
|
1786
|
-
i
|
|
1787
|
-
);
|
|
1788
|
-
}
|
|
1789
|
-
}) };
|
|
1578
|
+
function useUiJsonEditor(e) {
|
|
1579
|
+
return { renderUiJsonEditor: (m, g, _, v, y) => g.ui === "jsonEditor" ? h(jsonEditor_default, {
|
|
1580
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y) ?? "{}")(),
|
|
1581
|
+
"onUpdate:modelValue": (b) => {
|
|
1582
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1583
|
+
}
|
|
1584
|
+
}) : h("div", "renderUijsonEditor property ui must be jsonEditor") };
|
|
1790
1585
|
}
|
|
1791
|
-
function
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
l,
|
|
1804
|
-
e,
|
|
1805
|
-
n,
|
|
1806
|
-
r,
|
|
1807
|
-
t,
|
|
1808
|
-
o,
|
|
1809
|
-
i
|
|
1810
|
-
);
|
|
1811
|
-
},
|
|
1812
|
-
hasDelete: o !== void 0 && !i,
|
|
1813
|
-
onDelete: () => {
|
|
1814
|
-
o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
|
|
1815
|
-
},
|
|
1816
|
-
types: e.types
|
|
1817
|
-
}) };
|
|
1586
|
+
function useUiMultiTypes(e) {
|
|
1587
|
+
return { renderUiMultiTypes: (m, g, _, v, y) => g.ui === "multiTypes" ? h(multiTypes_default, {
|
|
1588
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y) ?? "")(),
|
|
1589
|
+
"onUpdate:modelValue": (b) => {
|
|
1590
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1591
|
+
},
|
|
1592
|
+
hasDelete: v !== void 0 && !y,
|
|
1593
|
+
onDelete: () => {
|
|
1594
|
+
v === void 0 || y || (_.splice(v, 1), e(m.slice(0, -1), _));
|
|
1595
|
+
},
|
|
1596
|
+
types: g.types
|
|
1597
|
+
}) : (console.assert(!1), h("div", "renderUiMultiTypes property ui must be multiTypes")) };
|
|
1818
1598
|
}
|
|
1819
|
-
function
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
t,
|
|
1836
|
-
o,
|
|
1837
|
-
i
|
|
1838
|
-
);
|
|
1839
|
-
},
|
|
1840
|
-
hasDelete: o !== void 0 && !i,
|
|
1841
|
-
onDelete: () => {
|
|
1842
|
-
o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
|
|
1843
|
-
},
|
|
1844
|
-
precision: e.precision,
|
|
1845
|
-
min: e.min,
|
|
1846
|
-
max: e.max,
|
|
1847
|
-
step: e.step,
|
|
1848
|
-
readonly: e.readonly
|
|
1849
|
-
}) };
|
|
1599
|
+
function useUiNumInput(e) {
|
|
1600
|
+
return { renderUiNumInput: (m, g, _, v, y) => g.ui === "numInput" ? h(numInput_default, {
|
|
1601
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y))(),
|
|
1602
|
+
"onUpdate:modelValue": (b) => {
|
|
1603
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1604
|
+
},
|
|
1605
|
+
hasDelete: v !== void 0 && !y,
|
|
1606
|
+
onDelete: () => {
|
|
1607
|
+
v === void 0 || y || (_.splice(v, 1), e(m.slice(0, -1), _));
|
|
1608
|
+
},
|
|
1609
|
+
precision: g.precision,
|
|
1610
|
+
min: g.min,
|
|
1611
|
+
max: g.max,
|
|
1612
|
+
step: g.step,
|
|
1613
|
+
readonly: g.readonly
|
|
1614
|
+
}) : (console.assert(!1), h("div", "renderUiNumInput property ui must be numInput")) };
|
|
1850
1615
|
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
St(u.$slots, "default")
|
|
1877
|
-
], 36)), [
|
|
1878
|
-
[c]
|
|
1879
|
-
]);
|
|
1880
|
-
};
|
|
1881
|
-
}
|
|
1616
|
+
var entry_default = /* @__PURE__ */ defineComponent({
|
|
1617
|
+
__name: "index",
|
|
1618
|
+
props: { minHeight: {} },
|
|
1619
|
+
emits: ["menu"],
|
|
1620
|
+
setup(e, { emit: m }) {
|
|
1621
|
+
let { backgroundColor2: g, highlightColor: _ } = useColor(), v = m, y = ref(!1), x = computed(() => ({
|
|
1622
|
+
background: y.value ? _.value : g.value,
|
|
1623
|
+
minHeight: e.minHeight,
|
|
1624
|
+
paddingRight: "4px",
|
|
1625
|
+
marginBottom: "1px",
|
|
1626
|
+
userSelect: "none"
|
|
1627
|
+
})), S = (e) => {
|
|
1628
|
+
v("menu", e.clientX, e.clientY);
|
|
1629
|
+
};
|
|
1630
|
+
return (e, m) => {
|
|
1631
|
+
let g = resolveDirective("ripple");
|
|
1632
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
1633
|
+
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1634
|
+
style: normalizeStyle(x.value),
|
|
1635
|
+
onContextmenu: withModifiers(S, ["self", "prevent"]),
|
|
1636
|
+
onMouseout: m[0] ||= (e) => y.value = !1,
|
|
1637
|
+
onMouseover: m[1] ||= (e) => y.value = !0
|
|
1638
|
+
}, [renderSlot(e.$slots, "default")], 36)), [[g]]);
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1882
1641
|
});
|
|
1883
|
-
function
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
} };
|
|
1642
|
+
function useUiProperty(e, m, g) {
|
|
1643
|
+
let { t: _ } = useI18n();
|
|
1644
|
+
return { renderProperty: (v, y, b) => {
|
|
1645
|
+
let x = v[v.length - 1], S = typeof x == "number" ? `[${x + 1}]` : _(y.name);
|
|
1646
|
+
return isPropertyChanged(e.value, v) && (S += " *"), h(entry_default, {
|
|
1647
|
+
minHeight: m.value,
|
|
1648
|
+
onMenu: (e, m) => {
|
|
1649
|
+
eventBus.emit("propTreeMenu", {
|
|
1650
|
+
x: e,
|
|
1651
|
+
y: m,
|
|
1652
|
+
keys: v
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
}, () => [h("span", {
|
|
1656
|
+
style: {
|
|
1657
|
+
marginLeft: "4px",
|
|
1658
|
+
pointerEvents: "none"
|
|
1659
|
+
},
|
|
1660
|
+
innerHTML: S
|
|
1661
|
+
}), h("div", { style: { width: g.value } }, b)]);
|
|
1662
|
+
} };
|
|
1905
1663
|
}
|
|
1906
|
-
function
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
e,
|
|
1920
|
-
n,
|
|
1921
|
-
r,
|
|
1922
|
-
t,
|
|
1923
|
-
o,
|
|
1924
|
-
i
|
|
1925
|
-
);
|
|
1926
|
-
},
|
|
1927
|
-
hasDelete: o !== void 0 && !i,
|
|
1928
|
-
onDelete: () => {
|
|
1929
|
-
o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
|
|
1930
|
-
},
|
|
1931
|
-
items: e.items,
|
|
1932
|
-
readonly: e.readonly
|
|
1933
|
-
}) };
|
|
1664
|
+
function useUiSelect(e) {
|
|
1665
|
+
return { renderUiSelect: (m, g, _, v, y) => g.ui === "select" ? h(select_default, {
|
|
1666
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y) ?? "")(),
|
|
1667
|
+
"onUpdate:modelValue": (b) => {
|
|
1668
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1669
|
+
},
|
|
1670
|
+
hasDelete: v !== void 0 && !y,
|
|
1671
|
+
onDelete: () => {
|
|
1672
|
+
v === void 0 || y || (_.splice(v, 1), e(m.slice(0, -1), _));
|
|
1673
|
+
},
|
|
1674
|
+
items: g.items,
|
|
1675
|
+
readonly: g.readonly
|
|
1676
|
+
}) : (console.assert(!1), h("div", "renderUiSelect property ui must be select")) };
|
|
1934
1677
|
}
|
|
1935
|
-
function
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
o,
|
|
1943
|
-
i
|
|
1944
|
-
),
|
|
1945
|
-
"onUpdate:modelValue": (r) => {
|
|
1946
|
-
oe(
|
|
1947
|
-
l,
|
|
1948
|
-
e,
|
|
1949
|
-
n,
|
|
1950
|
-
r,
|
|
1951
|
-
t,
|
|
1952
|
-
o,
|
|
1953
|
-
i
|
|
1954
|
-
);
|
|
1955
|
-
}
|
|
1956
|
-
}) };
|
|
1678
|
+
function useUiSlotSelect(e) {
|
|
1679
|
+
return { renderUiSlotSelect: (m, g, _, v, y) => g.ui === "selectSlot" ? h(slotSelect_default, {
|
|
1680
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y))(),
|
|
1681
|
+
"onUpdate:modelValue": (b) => {
|
|
1682
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1683
|
+
}
|
|
1684
|
+
}) : (console.assert(!1), h("div", "renderUiSlotSelect property ui must be selectSlot")) };
|
|
1957
1685
|
}
|
|
1958
|
-
function
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
l,
|
|
1971
|
-
e,
|
|
1972
|
-
n,
|
|
1973
|
-
r,
|
|
1974
|
-
t,
|
|
1975
|
-
o,
|
|
1976
|
-
i
|
|
1977
|
-
);
|
|
1978
|
-
},
|
|
1979
|
-
hasDelete: o !== void 0 && !i,
|
|
1980
|
-
onDelete: () => {
|
|
1981
|
-
o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
|
|
1982
|
-
},
|
|
1983
|
-
readonly: e.static || e.readonly
|
|
1984
|
-
}) };
|
|
1686
|
+
function useUiStrInput(e) {
|
|
1687
|
+
return { renderUiStrInput: (m, g, _, v, y) => g.ui === "strInput" ? h(strInput_default, {
|
|
1688
|
+
modelValue: (() => g.static ? g.value : getModelValue(m, g, _, e, v, y))(),
|
|
1689
|
+
"onUpdate:modelValue": (b) => {
|
|
1690
|
+
g.static || setModelValue(m, g, _, b, e, v, y);
|
|
1691
|
+
},
|
|
1692
|
+
hasDelete: v !== void 0 && !y,
|
|
1693
|
+
onDelete: () => {
|
|
1694
|
+
v === void 0 || y || (_.splice(v, 1), e(m.slice(0, -1), _));
|
|
1695
|
+
},
|
|
1696
|
+
readonly: g.static || g.readonly
|
|
1697
|
+
}) : (console.assert(!1), h("div", "renderUiStrInput property ui must be strInput")) };
|
|
1985
1698
|
}
|
|
1986
|
-
function
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
l,
|
|
1999
|
-
e,
|
|
2000
|
-
n,
|
|
2001
|
-
r,
|
|
2002
|
-
t,
|
|
2003
|
-
o,
|
|
2004
|
-
i
|
|
2005
|
-
);
|
|
2006
|
-
},
|
|
2007
|
-
hasDelete: o !== void 0 && !i,
|
|
2008
|
-
onDelete: () => {
|
|
2009
|
-
o === void 0 || i || (n.splice(o, 1), t(l.slice(0, 1), n));
|
|
2010
|
-
},
|
|
2011
|
-
readonly: e.readonly
|
|
2012
|
-
}) };
|
|
1699
|
+
function useUiSwitch(e) {
|
|
1700
|
+
return { renderUiSwitch: (m, g, _, v, y) => g.ui === "switch" ? h(switch_default, {
|
|
1701
|
+
modelValue: (() => getModelValue(m, g, _, e, v, y) ?? !1)(),
|
|
1702
|
+
"onUpdate:modelValue": (b) => {
|
|
1703
|
+
setModelValue(m, g, _, b, e, v, y);
|
|
1704
|
+
},
|
|
1705
|
+
hasDelete: v !== void 0 && !y,
|
|
1706
|
+
onDelete: () => {
|
|
1707
|
+
v === void 0 || y || (_.splice(v, 1), e(m.slice(0, 1), _));
|
|
1708
|
+
},
|
|
1709
|
+
readonly: g.readonly
|
|
1710
|
+
}) : (console.assert(!1), h("div", "renderUiSwitch property ui must be switch")) };
|
|
2013
1711
|
}
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
(typeof _[f.key] != "object" && (_[f.key] = {}, v(y, _[f.key])), _[f.key]),
|
|
2263
|
-
h.children[P.key]
|
|
2264
|
-
);
|
|
2265
|
-
W.push(R);
|
|
2266
|
-
}), W;
|
|
2267
|
-
})()
|
|
2268
|
-
);
|
|
2269
|
-
return S(
|
|
2270
|
-
"div",
|
|
2271
|
-
{
|
|
2272
|
-
style: {
|
|
2273
|
-
marginBottom: "1px"
|
|
2274
|
-
}
|
|
2275
|
-
},
|
|
2276
|
-
(() => {
|
|
2277
|
-
const W = [];
|
|
2278
|
-
return W.push(ce), h.collapse || W.push(ke), W;
|
|
2279
|
-
})()
|
|
2280
|
-
);
|
|
2281
|
-
}, gt = (y, f, _, h, b, N) => {
|
|
2282
|
-
if (!f.ui)
|
|
2283
|
-
return console.assert(!1), S("div", "renderLeafArray property ui must be valid");
|
|
2284
|
-
if (!f.array)
|
|
2285
|
-
return console.assert(!1), S("div", "renderLeafArray property array must be valid");
|
|
2286
|
-
if (!h)
|
|
2287
|
-
return console.assert(!1), S("div", "renderLeafArray branch must be valid");
|
|
2288
|
-
let z;
|
|
2289
|
-
b !== void 0 && !N ? (_[b] instanceof Array || (_[b] = H(f), v(y, _[b])), z = _[b]) : (_[f.key] instanceof Array || (_[f.key] = H(f), v(y, _[f.key])), z = _[f.key]);
|
|
2290
|
-
let ce = l(f.name);
|
|
2291
|
-
h.collapse && ve(c.value, y) && (ce += " *");
|
|
2292
|
-
const ke = S(we, {
|
|
2293
|
-
title: ce,
|
|
2294
|
-
collapse: h.collapse,
|
|
2295
|
-
hasCreate: !0,
|
|
2296
|
-
onCollapse: (P) => {
|
|
2297
|
-
h.collapse = P;
|
|
2298
|
-
},
|
|
2299
|
-
onMenu: (P, R) => {
|
|
2300
|
-
fe.emit("propTreeMenu", { x: P, y: R, keys: y });
|
|
2301
|
-
},
|
|
2302
|
-
onCreate: () => {
|
|
2303
|
-
z.push(H(f, !0)), v(y, z);
|
|
2304
|
-
}
|
|
2305
|
-
}), W = S(
|
|
2306
|
-
"div",
|
|
2307
|
-
{
|
|
2308
|
-
style: {
|
|
2309
|
-
paddingLeft: i.value
|
|
2310
|
-
}
|
|
2311
|
-
},
|
|
2312
|
-
(() => {
|
|
2313
|
-
const P = [];
|
|
2314
|
-
for (let R = 0; R < z.length; R++) {
|
|
2315
|
-
const $e = Ce(y, f, z, void 0, R, !1);
|
|
2316
|
-
P.push($e);
|
|
2317
|
-
}
|
|
2318
|
-
return P;
|
|
2319
|
-
})()
|
|
2320
|
-
);
|
|
2321
|
-
return S(
|
|
2322
|
-
"div",
|
|
2323
|
-
{
|
|
2324
|
-
style: {
|
|
2325
|
-
marginBottom: "1px"
|
|
2326
|
-
}
|
|
2327
|
-
},
|
|
2328
|
-
(() => {
|
|
2329
|
-
const P = [];
|
|
2330
|
-
return P.push(ke), h.collapse || P.push(W), P;
|
|
2331
|
-
})()
|
|
2332
|
-
);
|
|
2333
|
-
}, yt = (y, f, _, h, b) => {
|
|
2334
|
-
if (!f.ui)
|
|
2335
|
-
return console.assert(!1), S("div", "renderLeafScalar property ui must be valid");
|
|
2336
|
-
let N;
|
|
2337
|
-
return f.ui === "dummy" ? N = g(y, f, _, h, b) : f.ui === "strInput" ? N = V(y, f, _, h, b) : f.ui === "numInput" ? N = A(y, f, _, h, b) : f.ui === "switch" ? N = T(y, f, _, h, b) : f.ui === "select" ? N = Q(y, f, _, h, b) : f.ui === "colorPicker" ? N = he(y, f, _, h, b) : f.ui === "jsonEditor" ? N = Te(y, f, _, h, b) : f.ui === "multiTypes" ? N = ct(y, f, _, h, b) : f.ui === "selectComp" ? N = dt(y, f, _, h, b) : f.ui === "selectSlot" ? N = mt(y, f, _, h, b) : f.ui === "selectAdaptSlot" ? N = ft(y, f, _, h, b) : console.assert(!1, "renderLeafScalar not implemented"), N ? U(y, f, N) : S("div");
|
|
2338
|
-
}, ht = () => S(
|
|
2339
|
-
"div",
|
|
2340
|
-
{
|
|
2341
|
-
class: "text-body-2",
|
|
2342
|
-
style: {
|
|
2343
|
-
background: e.value
|
|
2344
|
-
}
|
|
2345
|
-
},
|
|
2346
|
-
(() => {
|
|
2347
|
-
const y = [];
|
|
2348
|
-
if (n.unique && n.config.length > 0 && n.object) {
|
|
2349
|
-
a[n.unique] || (a[n.unique] = {});
|
|
2350
|
-
const f = a[n.unique];
|
|
2351
|
-
n.config.forEach((_) => {
|
|
2352
|
-
f[_.key] || (f[_.key] = {
|
|
2353
|
-
collapse: !0,
|
|
2354
|
-
children: !_.ui && _.array ? [] : {}
|
|
2355
|
-
});
|
|
2356
|
-
const h = Ce(
|
|
2357
|
-
[],
|
|
2358
|
-
_,
|
|
2359
|
-
n.object,
|
|
2360
|
-
f[_.key]
|
|
2361
|
-
);
|
|
2362
|
-
y.push(h);
|
|
2363
|
-
});
|
|
2364
|
-
}
|
|
2365
|
-
return y;
|
|
2366
|
-
})()
|
|
2367
|
-
);
|
|
2368
|
-
return (y, f) => (k(), q(me, null, [
|
|
2369
|
-
w(ht),
|
|
2370
|
-
w(jt, {
|
|
2371
|
-
config: n.config,
|
|
2372
|
-
object: n.object,
|
|
2373
|
-
"property-states": c.value
|
|
2374
|
-
}, null, 8, ["config", "object", "property-states"])
|
|
2375
|
-
], 64));
|
|
2376
|
-
}
|
|
2377
|
-
}), ul = (t) => {
|
|
2378
|
-
t.component("XPropTree", il);
|
|
2379
|
-
}, rl = (t, s, l) => {
|
|
2380
|
-
const e = t[s];
|
|
2381
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, o) => {
|
|
2382
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== l ? ". Note that variables only represent file names one level deep." : ""))));
|
|
2383
|
-
});
|
|
1712
|
+
var propTree_default = /* @__PURE__ */ defineComponent({
|
|
1713
|
+
__name: "index",
|
|
1714
|
+
props: {
|
|
1715
|
+
unique: {},
|
|
1716
|
+
config: {},
|
|
1717
|
+
object: {},
|
|
1718
|
+
version: {},
|
|
1719
|
+
type: {},
|
|
1720
|
+
subtype: {}
|
|
1721
|
+
},
|
|
1722
|
+
emits: ["change"],
|
|
1723
|
+
setup(m, { emit: g }) {
|
|
1724
|
+
let { t: _ } = useI18n(), { backgroundColor1: v } = useColor(), b = m, x = g, S = ref("20px"), w = ref("56px"), T = ref("200px"), D = reactive({}), k = ref({}), A = (e, m) => {
|
|
1725
|
+
rebuildPropertyState(k, b.config, b.object), x("change", e, m);
|
|
1726
|
+
};
|
|
1727
|
+
watch([() => b.config, () => b.object], () => {
|
|
1728
|
+
rebuildPropertyState(k, b.config, b.object, (e, m) => {
|
|
1729
|
+
x("change", e, m);
|
|
1730
|
+
});
|
|
1731
|
+
}, { immediate: !0 });
|
|
1732
|
+
let j = ref(b.version);
|
|
1733
|
+
provideVersion(j), watch(() => b.version, () => {
|
|
1734
|
+
j.value = b.version;
|
|
1735
|
+
});
|
|
1736
|
+
let M = ref(b.type);
|
|
1737
|
+
watch(() => b.type, () => {
|
|
1738
|
+
M.value = b.type;
|
|
1739
|
+
});
|
|
1740
|
+
let N = ref(b.subtype);
|
|
1741
|
+
watch(() => b.subtype, () => {
|
|
1742
|
+
N.value = b.subtype;
|
|
1743
|
+
});
|
|
1744
|
+
let P = ref(b.config);
|
|
1745
|
+
provideConfig(P), watch(() => b.config, () => {
|
|
1746
|
+
P.value = b.config;
|
|
1747
|
+
});
|
|
1748
|
+
let F = ref(b.object);
|
|
1749
|
+
provideObject(F), watch(() => b.object, () => {
|
|
1750
|
+
F.value = b.object;
|
|
1751
|
+
}), providePropertyStates(k), provideChangeEvent(A), useCompList(), useSlotList(), useAdaptSlotList(j, M, N);
|
|
1752
|
+
let { renderProperty: I } = useUiProperty(k, w, T), { renderUiDummy: L } = useUiDummy(A), { renderUiStrInput: R } = useUiStrInput(A), { renderUiNumInput: z } = useUiNumInput(A), { renderUiSwitch: B } = useUiSwitch(A), { renderUiSelect: V } = useUiSelect(A), { renderUiColorPicker: H } = useUiColorPicker(A), { renderUiJsonEditor: U } = useUiJsonEditor(A), { renderUiMultiTypes: W } = useUiMultiTypes(A), { renderUiCompSelect: G } = useUiCompSelect(A), { renderUiSlotSelect: K } = useUiSlotSelect(A), { renderUiAdaptSlotSelect: q } = useUiAdaptSlotSelect(A), J = (m, g, _, v, y, b) => (m = cloneDeep_default(m), y === void 0 ? m.push(g.key) : (m.push(y), b && m.push(g.key)), g.ui ? g.array && v ? Z(m, g, _, v, y, b) : Q(m, g, _, y, b) : g.array ? Y(m, g, _, v, y, b) : X(m, g, _, v, y, b)), Y = (e, m, g, v, y, b) => {
|
|
1753
|
+
if (m.ui) return console.assert(!1), h("div", "renderBranchArray property ui must be invalid");
|
|
1754
|
+
if (!m.array) return console.assert(!1), h("div", "renderBranchArray property array must be valid");
|
|
1755
|
+
if (!v) return console.assert(!1), h("div", "renderBranchArray branch must be valid");
|
|
1756
|
+
let x;
|
|
1757
|
+
y !== void 0 && !b ? (g[y] instanceof Array || (g[y] = getPropertyDefault(m), A(e, g[m.key])), x = g[y]) : (g[m.key] instanceof Array || (g[m.key] = getPropertyDefault(m), A(e, g[m.key])), x = g[m.key]);
|
|
1758
|
+
let C = _(m.name);
|
|
1759
|
+
v.collapse && isPropertyChanged(k.value, e) && (C += " *");
|
|
1760
|
+
let w = h(title_default, {
|
|
1761
|
+
title: C,
|
|
1762
|
+
collapse: v.collapse,
|
|
1763
|
+
hasCreate: !0,
|
|
1764
|
+
onCollapse: (e) => {
|
|
1765
|
+
v.collapse = e;
|
|
1766
|
+
},
|
|
1767
|
+
onMenu: (m, g) => {
|
|
1768
|
+
eventBus.emit("propTreeMenu", {
|
|
1769
|
+
x: m,
|
|
1770
|
+
y: g,
|
|
1771
|
+
keys: e
|
|
1772
|
+
});
|
|
1773
|
+
},
|
|
1774
|
+
onCreate: () => {
|
|
1775
|
+
x.push({}), A(e, x);
|
|
1776
|
+
}
|
|
1777
|
+
}), T = h("div", { style: { paddingLeft: S.value } }, (() => {
|
|
1778
|
+
let g = [];
|
|
1779
|
+
for (let _ = 0; _ < x.length; _++) {
|
|
1780
|
+
if (!isBranchChildrenArray(v.children)) {
|
|
1781
|
+
console.assert(!1);
|
|
1782
|
+
break;
|
|
1783
|
+
}
|
|
1784
|
+
v.children[_] || v.children.push({
|
|
1785
|
+
collapse: !0,
|
|
1786
|
+
children: {}
|
|
1787
|
+
});
|
|
1788
|
+
let y = [...e, _], b = v.children[_], C = `[${_ + 1}]`;
|
|
1789
|
+
v.children[_].collapse && isPropertyChanged(k.value, y) && (C += " *");
|
|
1790
|
+
let w = h(title_default, {
|
|
1791
|
+
title: C,
|
|
1792
|
+
collapse: v.children[_].collapse,
|
|
1793
|
+
hasDelete: !0,
|
|
1794
|
+
index: _,
|
|
1795
|
+
onCollapse: (e) => {
|
|
1796
|
+
if (!isBranchChildrenArray(v.children)) {
|
|
1797
|
+
console.assert(!1);
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1800
|
+
v.children[_].collapse = e;
|
|
1801
|
+
},
|
|
1802
|
+
onMenu: (e, m) => {
|
|
1803
|
+
eventBus.emit("propTreeMenu", {
|
|
1804
|
+
x: e,
|
|
1805
|
+
y: m,
|
|
1806
|
+
keys: y
|
|
1807
|
+
});
|
|
1808
|
+
},
|
|
1809
|
+
onDelete: (m) => {
|
|
1810
|
+
if (!isBranchChildrenArray(v.children)) {
|
|
1811
|
+
console.assert(!1);
|
|
1812
|
+
return;
|
|
1813
|
+
}
|
|
1814
|
+
v.children.splice(m, 1), x.splice(m, 1), A(e, x);
|
|
1815
|
+
}
|
|
1816
|
+
});
|
|
1817
|
+
g.push(w);
|
|
1818
|
+
let T = h("div", { style: { paddingLeft: S.value } }, (() => {
|
|
1819
|
+
let g = [];
|
|
1820
|
+
return m.children.forEach((m) => {
|
|
1821
|
+
if (!isBranchChildrenMap(b.children)) {
|
|
1822
|
+
console.assert(!1);
|
|
1823
|
+
return;
|
|
1824
|
+
}
|
|
1825
|
+
b.children[m.key] || (b.children[m.key] = {
|
|
1826
|
+
collapse: !0,
|
|
1827
|
+
children: m.array ? [] : {}
|
|
1828
|
+
});
|
|
1829
|
+
let v = J(e, m, x[_], b.children[m.key], _, !0);
|
|
1830
|
+
g.push(v);
|
|
1831
|
+
}), g;
|
|
1832
|
+
})());
|
|
1833
|
+
v.children[_].collapse || g.push(T);
|
|
1834
|
+
}
|
|
1835
|
+
return g;
|
|
1836
|
+
})());
|
|
1837
|
+
return h("div", { style: { marginBottom: "1px" } }, (() => {
|
|
1838
|
+
let e = [];
|
|
1839
|
+
return e.push(w), v.collapse || e.push(T), e;
|
|
1840
|
+
})());
|
|
1841
|
+
}, X = (e, m, g, v, y, b) => {
|
|
1842
|
+
if (m.ui) return console.assert(!1), h("div", "renderBranchScalar property ui must be invalid");
|
|
1843
|
+
if (m.array) return console.assert(!1), h("div", "renderBranchScalar property array must be invalid");
|
|
1844
|
+
if (!v) return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
|
|
1845
|
+
let x = _(m.name);
|
|
1846
|
+
v.collapse && isPropertyChanged(k.value, e) && (x += " *");
|
|
1847
|
+
let C = h(title_default, {
|
|
1848
|
+
title: x,
|
|
1849
|
+
collapse: v.collapse,
|
|
1850
|
+
hasDelete: y !== void 0 && !b,
|
|
1851
|
+
onCollapse: (e) => {
|
|
1852
|
+
v.collapse = e;
|
|
1853
|
+
},
|
|
1854
|
+
onMenu: (m, g) => {
|
|
1855
|
+
eventBus.emit("propTreeMenu", {
|
|
1856
|
+
x: m,
|
|
1857
|
+
y: g,
|
|
1858
|
+
keys: e
|
|
1859
|
+
});
|
|
1860
|
+
},
|
|
1861
|
+
onDelete: () => {
|
|
1862
|
+
y === void 0 || b || (g.splice(y, 1), A(e.slice(0, -1), g));
|
|
1863
|
+
}
|
|
1864
|
+
}), w = h("div", { style: { paddingLeft: S.value } }, (() => {
|
|
1865
|
+
let _ = [];
|
|
1866
|
+
return m.children.forEach((y) => {
|
|
1867
|
+
if (!isBranchChildrenMap(v.children)) {
|
|
1868
|
+
console.assert(!1);
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
v.children[y.key] || (v.children[y.key] = {
|
|
1872
|
+
collapse: !0,
|
|
1873
|
+
children: !y.ui && y.array ? [] : {}
|
|
1874
|
+
});
|
|
1875
|
+
let b = J(e, y, (() => (typeof g[m.key] != "object" && (g[m.key] = {}, A(e, g[m.key])), g[m.key]))(), v.children[y.key]);
|
|
1876
|
+
_.push(b);
|
|
1877
|
+
}), _;
|
|
1878
|
+
})());
|
|
1879
|
+
return h("div", { style: { marginBottom: "1px" } }, (() => {
|
|
1880
|
+
let e = [];
|
|
1881
|
+
return e.push(C), v.collapse || e.push(w), e;
|
|
1882
|
+
})());
|
|
1883
|
+
}, Z = (e, m, g, v, y, b) => {
|
|
1884
|
+
if (!m.ui) return console.assert(!1), h("div", "renderLeafArray property ui must be valid");
|
|
1885
|
+
if (!m.array) return console.assert(!1), h("div", "renderLeafArray property array must be valid");
|
|
1886
|
+
if (!v) return console.assert(!1), h("div", "renderLeafArray branch must be valid");
|
|
1887
|
+
let x;
|
|
1888
|
+
y !== void 0 && !b ? (g[y] instanceof Array || (g[y] = getPropertyDefault(m), A(e, g[y])), x = g[y]) : (g[m.key] instanceof Array || (g[m.key] = getPropertyDefault(m), A(e, g[m.key])), x = g[m.key]);
|
|
1889
|
+
let C = _(m.name);
|
|
1890
|
+
v.collapse && isPropertyChanged(k.value, e) && (C += " *");
|
|
1891
|
+
let w = h(title_default, {
|
|
1892
|
+
title: C,
|
|
1893
|
+
collapse: v.collapse,
|
|
1894
|
+
hasCreate: !0,
|
|
1895
|
+
onCollapse: (e) => {
|
|
1896
|
+
v.collapse = e;
|
|
1897
|
+
},
|
|
1898
|
+
onMenu: (m, g) => {
|
|
1899
|
+
eventBus.emit("propTreeMenu", {
|
|
1900
|
+
x: m,
|
|
1901
|
+
y: g,
|
|
1902
|
+
keys: e
|
|
1903
|
+
});
|
|
1904
|
+
},
|
|
1905
|
+
onCreate: () => {
|
|
1906
|
+
x.push(getPropertyDefault(m, !0)), A(e, x);
|
|
1907
|
+
}
|
|
1908
|
+
}), T = h("div", { style: { paddingLeft: S.value } }, (() => {
|
|
1909
|
+
let g = [];
|
|
1910
|
+
for (let _ = 0; _ < x.length; _++) {
|
|
1911
|
+
let v = J(e, m, x, void 0, _, !1);
|
|
1912
|
+
g.push(v);
|
|
1913
|
+
}
|
|
1914
|
+
return g;
|
|
1915
|
+
})());
|
|
1916
|
+
return h("div", { style: { marginBottom: "1px" } }, (() => {
|
|
1917
|
+
let e = [];
|
|
1918
|
+
return e.push(w), v.collapse || e.push(T), e;
|
|
1919
|
+
})());
|
|
1920
|
+
}, Q = (e, m, g, _, v) => {
|
|
1921
|
+
if (!m.ui) return console.assert(!1), h("div", "renderLeafScalar property ui must be valid");
|
|
1922
|
+
let y;
|
|
1923
|
+
return m.ui === "dummy" ? y = L(e, m, g, _, v) : m.ui === "strInput" ? y = R(e, m, g, _, v) : m.ui === "numInput" ? y = z(e, m, g, _, v) : m.ui === "switch" ? y = B(e, m, g, _, v) : m.ui === "select" ? y = V(e, m, g, _, v) : m.ui === "colorPicker" ? y = H(e, m, g, _, v) : m.ui === "jsonEditor" ? y = U(e, m, g, _, v) : m.ui === "multiTypes" ? y = W(e, m, g, _, v) : m.ui === "selectComp" ? y = G(e, m, g, _, v) : m.ui === "selectSlot" ? y = K(e, m, g, _, v) : m.ui === "selectAdaptSlot" ? y = q(e, m, g, _, v) : console.assert(!1, "renderLeafScalar not implemented"), y ? I(e, m, y) : h("div");
|
|
1924
|
+
}, $ = () => h("div", {
|
|
1925
|
+
class: "text-body-2",
|
|
1926
|
+
style: { background: v.value }
|
|
1927
|
+
}, (() => {
|
|
1928
|
+
let e = [];
|
|
1929
|
+
if (b.unique && b.config.length > 0 && b.object) {
|
|
1930
|
+
D[b.unique] || (D[b.unique] = {});
|
|
1931
|
+
let m = D[b.unique];
|
|
1932
|
+
b.config.forEach((g) => {
|
|
1933
|
+
m[g.key] || (m[g.key] = {
|
|
1934
|
+
collapse: !0,
|
|
1935
|
+
children: !g.ui && g.array ? [] : {}
|
|
1936
|
+
});
|
|
1937
|
+
let _ = J([], g, b.object, m[g.key]);
|
|
1938
|
+
e.push(_);
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
return e;
|
|
1942
|
+
})());
|
|
1943
|
+
return (e, m) => (openBlock(), createElementBlock(Fragment, null, [createVNode($), createVNode(menu_default, {
|
|
1944
|
+
config: b.config,
|
|
1945
|
+
object: b.object,
|
|
1946
|
+
"property-states": k.value
|
|
1947
|
+
}, null, 8, [
|
|
1948
|
+
"config",
|
|
1949
|
+
"object",
|
|
1950
|
+
"property-states"
|
|
1951
|
+
])], 64));
|
|
1952
|
+
}
|
|
1953
|
+
}), install = (e) => {
|
|
1954
|
+
e.component("XPropTree", propTree_default);
|
|
1955
|
+
}, __rolldown_dynamic_import_helper_default = (e, m, g) => {
|
|
1956
|
+
let _ = m.lastIndexOf("?"), v = e[_ === -1 || _ < m.lastIndexOf("/") ? m : m.slice(0, _)];
|
|
1957
|
+
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((e, _) => {
|
|
1958
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(_.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + m + (m.split("/").length === g ? "" : ". Note that variables only represent file names one level deep."))));
|
|
1959
|
+
});
|
|
2384
1960
|
};
|
|
2385
|
-
async function
|
|
2386
|
-
|
|
1961
|
+
async function loadLocaleMessagePropTree(e) {
|
|
1962
|
+
return (await __rolldown_dynamic_import_helper_default({
|
|
1963
|
+
"./locales/en/index.ts": () => import("./en.ce88mjes.js"),
|
|
1964
|
+
"./locales/zhHans/index.ts": () => import("./zhHans.dfzi966a.js")
|
|
1965
|
+
}, `./locales/${e}/index.ts`, 4)).default;
|
|
2387
1966
|
}
|
|
2388
|
-
|
|
2389
|
-
export {
|
|
2390
|
-
hl as default,
|
|
2391
|
-
yl as loadLocaleMessagePropTree
|
|
2392
|
-
};
|
|
1967
|
+
var src_default = { install };
|
|
1968
|
+
export { src_default as default, loadLocaleMessagePropTree };
|