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