x-prop-tree 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +311 -311
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { provide as de, inject as fe, defineComponent as J, ref as O, computed as K, resolveComponent as $, createBlock as B, openBlock as S, unref as C, isRef as pe, withCtx as R, createVNode as
|
|
1
|
+
import { provide as de, inject as fe, defineComponent as J, ref as O, computed as K, resolveComponent as $, createBlock as B, openBlock as S, unref as C, isRef as pe, withCtx as R, createVNode as b, createElementBlock as H, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as Q, resolveDirective as le, withDirectives as ee, withModifiers as z, normalizeStyle as I, createElementVNode as F, createCommentVNode as Y, renderSlot as pt, h, mergeModels as W, useModel as G, useId as we, onUnmounted as De, withKeys as Ke, mergeProps as be, watchEffect as Ne, watch as ue, useTemplateRef as Re, reactive as yt, onMounted as gt, onBeforeUnmount as ht } from "vue";
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
3
|
import { useViewStack as Se, useColor as ie, eventBus as ae, useSystem as Je, injectDark as _t, injectLocale as kt } from "x-essential-lib";
|
|
4
4
|
import { c as He, i as Ue, m as Xe, a as Fe, b as Vt, d as re, r as ze, v as Ct, e as Ge, f as St } from "./vendor.h3srogcv.js";
|
|
@@ -18,7 +18,7 @@ const _e = (o, s) => {
|
|
|
18
18
|
console.assert(!1, `unpkgProp prop ui must be invalid keys=${s}`);
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
t = t.children.find((
|
|
21
|
+
t = t.children.find((n) => n.key === e);
|
|
22
22
|
}
|
|
23
23
|
}), t;
|
|
24
24
|
}, ve = (o, s) => {
|
|
@@ -31,47 +31,47 @@ const _e = (o, s) => {
|
|
|
31
31
|
t = t[e];
|
|
32
32
|
}), t;
|
|
33
33
|
}, Oe = (o) => !(o instanceof Array), Me = (o) => o instanceof Array, wt = (o, s) => {
|
|
34
|
-
const t = (e,
|
|
35
|
-
if (e.ui !==
|
|
34
|
+
const t = (e, n) => {
|
|
35
|
+
if (e.ui !== n.ui || e.array !== n.array)
|
|
36
36
|
return !1;
|
|
37
|
-
if (e.ui ||
|
|
37
|
+
if (e.ui || n.ui)
|
|
38
38
|
return !0;
|
|
39
|
-
if (e.children.length !==
|
|
39
|
+
if (e.children.length !== n.children.length)
|
|
40
40
|
return !1;
|
|
41
|
-
for (let
|
|
42
|
-
if (!t(e.children[
|
|
41
|
+
for (let l = 0; l < e.children.length; l++)
|
|
42
|
+
if (!t(e.children[l], n.children[l]))
|
|
43
43
|
return !1;
|
|
44
44
|
return !0;
|
|
45
45
|
};
|
|
46
46
|
return t(o, s);
|
|
47
|
-
},
|
|
47
|
+
}, Ae = (o) => !(o instanceof Array), $e = (o) => o instanceof Array, Dt = [
|
|
48
48
|
["basic", "id"],
|
|
49
49
|
["basic", "name"]
|
|
50
|
-
],
|
|
50
|
+
], bt = (o) => Dt.find((s) => Ue(o, s)), xe = (o, s, t, e, n, l, i) => (o = He(o), l !== void 0 ? (o.push(l), i && o.push(s.key)) : o.push(s.key), bt(o) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && $e(e.children) ? Lt(
|
|
51
51
|
o,
|
|
52
52
|
s,
|
|
53
53
|
t,
|
|
54
54
|
e,
|
|
55
|
-
l,
|
|
56
55
|
n,
|
|
56
|
+
l,
|
|
57
57
|
i
|
|
58
|
-
) : Nt(s, t, e,
|
|
58
|
+
) : Nt(s, t, e, l, i) : s.array ? At(
|
|
59
59
|
o,
|
|
60
60
|
s,
|
|
61
61
|
t,
|
|
62
62
|
e,
|
|
63
|
-
l,
|
|
64
63
|
n,
|
|
64
|
+
l,
|
|
65
65
|
i
|
|
66
66
|
) : Tt(
|
|
67
67
|
o,
|
|
68
68
|
s,
|
|
69
69
|
t,
|
|
70
70
|
e,
|
|
71
|
-
l,
|
|
72
71
|
n,
|
|
72
|
+
l,
|
|
73
73
|
i
|
|
74
|
-
)),
|
|
74
|
+
)), At = (o, s, t, e, n, l, i) => {
|
|
75
75
|
if (s.ui)
|
|
76
76
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
77
77
|
if (!s.array)
|
|
@@ -79,7 +79,7 @@ const _e = (o, s) => {
|
|
|
79
79
|
if (!e.children || !$e(e.children))
|
|
80
80
|
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
81
81
|
let a;
|
|
82
|
-
|
|
82
|
+
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n == null || n(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n == null || n(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
83
83
|
for (let r = 0; r < a.length; r++) {
|
|
84
84
|
e.children.push({
|
|
85
85
|
change: !1,
|
|
@@ -87,7 +87,7 @@ const _e = (o, s) => {
|
|
|
87
87
|
});
|
|
88
88
|
const u = e.children[r];
|
|
89
89
|
s.children.forEach((g) => {
|
|
90
|
-
if (!u.children || !
|
|
90
|
+
if (!u.children || !Ae(u.children)) {
|
|
91
91
|
console.assert(!1);
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
@@ -99,31 +99,31 @@ const _e = (o, s) => {
|
|
|
99
99
|
g,
|
|
100
100
|
a[r],
|
|
101
101
|
u.children[g.key],
|
|
102
|
-
|
|
102
|
+
n,
|
|
103
103
|
r,
|
|
104
104
|
!0
|
|
105
105
|
) && (u.change = !0), u.change && (e.change = !0);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
return e.change || (e.change = !Ue(a, q(s))), e.change;
|
|
109
|
-
}, Tt = (o, s, t, e,
|
|
109
|
+
}, Tt = (o, s, t, e, n, l, i) => {
|
|
110
110
|
if (s.ui)
|
|
111
111
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
112
112
|
if (s.array)
|
|
113
113
|
return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
|
|
114
|
-
if (!e.children || !
|
|
114
|
+
if (!e.children || !Ae(e.children))
|
|
115
115
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
116
116
|
let a;
|
|
117
|
-
|
|
117
|
+
l !== void 0 && !i ? (t[l] || (t[l] = {}), a = t[l]) : (t[s.key] || (t[s.key] = {}), a = t[s.key]), e.change = !1;
|
|
118
118
|
for (let r = 0; r < s.children.length; r++) {
|
|
119
119
|
const u = s.children[r];
|
|
120
120
|
e.children[u.key] = {
|
|
121
121
|
change: !1,
|
|
122
122
|
children: u.array ? [] : {}
|
|
123
|
-
}, xe(o, u, a, e.children[u.key],
|
|
123
|
+
}, xe(o, u, a, e.children[u.key], n) && (e.change = !0);
|
|
124
124
|
}
|
|
125
125
|
return e.change;
|
|
126
|
-
}, Lt = (o, s, t, e,
|
|
126
|
+
}, Lt = (o, s, t, e, n, l, i) => {
|
|
127
127
|
if (!s.ui)
|
|
128
128
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
129
129
|
if (!s.array)
|
|
@@ -131,30 +131,30 @@ const _e = (o, s) => {
|
|
|
131
131
|
if (!e.children || !$e(e.children))
|
|
132
132
|
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
133
133
|
let a;
|
|
134
|
-
|
|
134
|
+
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n == null || n(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n == null || n(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
135
135
|
for (let r = 0; r < a.length; r++)
|
|
136
136
|
e.children[r] = {
|
|
137
137
|
change: !1,
|
|
138
138
|
children: {}
|
|
139
|
-
}, xe(o, s, a, e.children[r],
|
|
139
|
+
}, xe(o, s, a, e.children[r], n, r, !1) && (e.change = !0);
|
|
140
140
|
return e.change || (e.change = !Ue(a, q(s))), e.change;
|
|
141
|
-
}, Nt = (o, s, t, e,
|
|
141
|
+
}, Nt = (o, s, t, e, n) => {
|
|
142
142
|
if (!o.ui)
|
|
143
143
|
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
144
|
-
let
|
|
145
|
-
return e !== void 0 && !
|
|
144
|
+
let l;
|
|
145
|
+
return e !== void 0 && !n ? l = s[e] : l = s[o.key], t.change = !Ue(l, q(o, !0)), t.change;
|
|
146
146
|
}, qe = (o, s, t, e) => {
|
|
147
147
|
if (s.length <= 0 || !t) {
|
|
148
148
|
o.value = {};
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
s.forEach((
|
|
153
|
-
l
|
|
151
|
+
const n = {};
|
|
152
|
+
s.forEach((l) => {
|
|
153
|
+
n[l.key] = {
|
|
154
154
|
change: !1,
|
|
155
|
-
children:
|
|
156
|
-
}, xe([],
|
|
157
|
-
}), o.value =
|
|
155
|
+
children: l.array ? [] : {}
|
|
156
|
+
}, xe([], l, t, n[l.key], e);
|
|
157
|
+
}), o.value = n;
|
|
158
158
|
}, ce = (o, s) => {
|
|
159
159
|
let t = { change: !1, children: o };
|
|
160
160
|
return s.forEach((e) => {
|
|
@@ -162,7 +162,7 @@ const _e = (o, s) => {
|
|
|
162
162
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
163
163
|
if (!t.children)
|
|
164
164
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
165
|
-
typeof e == "string" ?
|
|
165
|
+
typeof e == "string" ? Ae(t.children) && (t = t.children[e]) : $e(t.children) && (t = t.children[e]);
|
|
166
166
|
}), (t == null ? void 0 : t.change) ?? !1;
|
|
167
167
|
}, We = Symbol(), Qe = Symbol(), Ze = Symbol(), Ee = Symbol(), je = Symbol(), Ie = Symbol();
|
|
168
168
|
function Ot(o) {
|
|
@@ -204,15 +204,15 @@ function et() {
|
|
|
204
204
|
const Gt = /* @__PURE__ */ J({
|
|
205
205
|
__name: "menu",
|
|
206
206
|
setup(o) {
|
|
207
|
-
const { t: s } = te(), t = Bt(), e = Rt(),
|
|
208
|
-
const T = () => !(r.value.length <= 0 || !ce(
|
|
207
|
+
const { t: s } = te(), t = Bt(), e = Rt(), n = Ht(), l = Ft(), i = O(0), a = O(0), r = O([]), u = K(() => [i.value, a.value]), g = (w) => {
|
|
208
|
+
const T = () => !(r.value.length <= 0 || !ce(n.value, r.value)), P = () => {
|
|
209
209
|
const _ = _e(t.value, r.value);
|
|
210
210
|
if (_)
|
|
211
211
|
if (_.ui) {
|
|
212
212
|
const M = ve(e.value, r.value.slice(0, -1));
|
|
213
213
|
if (!M)
|
|
214
214
|
return;
|
|
215
|
-
M[r.value[r.value.length - 1]] = q(_),
|
|
215
|
+
M[r.value[r.value.length - 1]] = q(_), l(r.value, M[r.value[r.value.length - 1]]);
|
|
216
216
|
} else if (_.array) {
|
|
217
217
|
const M = r.value[r.value.length - 1];
|
|
218
218
|
if (M === void 0) {
|
|
@@ -223,13 +223,13 @@ const Gt = /* @__PURE__ */ J({
|
|
|
223
223
|
const N = ve(e.value, r.value.slice(0, -1));
|
|
224
224
|
if (!N)
|
|
225
225
|
return;
|
|
226
|
-
N[r.value[r.value.length - 1]] = q(_),
|
|
226
|
+
N[r.value[r.value.length - 1]] = q(_), l(r.value, N[r.value[r.value.length - 1]]);
|
|
227
227
|
} else {
|
|
228
228
|
const N = ve(e.value, r.value);
|
|
229
229
|
if (!N)
|
|
230
230
|
return;
|
|
231
231
|
_.children.forEach((Z) => {
|
|
232
|
-
N[Z.key] = q(_),
|
|
232
|
+
N[Z.key] = q(_), l([...r.value, Z.key], N[Z.key]);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
} else {
|
|
@@ -237,7 +237,7 @@ const Gt = /* @__PURE__ */ J({
|
|
|
237
237
|
if (!M)
|
|
238
238
|
return;
|
|
239
239
|
_.children.forEach((N) => {
|
|
240
|
-
M[N.key] = q(_),
|
|
240
|
+
M[N.key] = q(_), l([...r.value, N.key], M[N.key]);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
};
|
|
@@ -298,7 +298,7 @@ const Gt = /* @__PURE__ */ J({
|
|
|
298
298
|
scrim: "transparent"
|
|
299
299
|
}, {
|
|
300
300
|
default: R(() => [
|
|
301
|
-
|
|
301
|
+
b(M, null, {
|
|
302
302
|
default: R(() => [
|
|
303
303
|
(S(!0), H(Ve, null, Be(m.value, (Z, Pe) => (S(), B(_, {
|
|
304
304
|
key: Pe,
|
|
@@ -306,7 +306,7 @@ const Gt = /* @__PURE__ */ J({
|
|
|
306
306
|
onClick: Z.func
|
|
307
307
|
}, {
|
|
308
308
|
default: R(() => [
|
|
309
|
-
|
|
309
|
+
b(P, null, {
|
|
310
310
|
default: R(() => [
|
|
311
311
|
Ce(Q(Z.title), 1)
|
|
312
312
|
]),
|
|
@@ -323,7 +323,7 @@ const Gt = /* @__PURE__ */ J({
|
|
|
323
323
|
}, 8, ["modelValue", "target"]);
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
}), ke = /* @__PURE__ */ J({
|
|
326
|
+
}), Yt = { style: { pointerEvents: "none" } }, ke = /* @__PURE__ */ J({
|
|
327
327
|
__name: "title",
|
|
328
328
|
props: {
|
|
329
329
|
title: {},
|
|
@@ -334,39 +334,39 @@ const Gt = /* @__PURE__ */ J({
|
|
|
334
334
|
},
|
|
335
335
|
emits: ["collapse", "menu", "create", "delete"],
|
|
336
336
|
setup(o, { emit: s }) {
|
|
337
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
338
|
-
background:
|
|
337
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = s, l = O(!1), i = K(() => ({
|
|
338
|
+
background: l.value ? e.value : t.value,
|
|
339
339
|
height: "36px",
|
|
340
340
|
marginBottom: "1px",
|
|
341
341
|
userSelect: "none"
|
|
342
342
|
})), a = () => {
|
|
343
|
-
|
|
343
|
+
n("collapse", !o.collapse);
|
|
344
344
|
}, r = (u) => {
|
|
345
|
-
|
|
345
|
+
n("menu", u.clientX, u.clientY);
|
|
346
346
|
};
|
|
347
347
|
return (u, g) => {
|
|
348
|
-
const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k =
|
|
348
|
+
const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k = le("ripple");
|
|
349
349
|
return ee((S(), H("div", {
|
|
350
350
|
class: "d-flex align-center cursor-pointer",
|
|
351
351
|
style: I(i.value),
|
|
352
352
|
onClick: a,
|
|
353
353
|
onContextmenu: z(r, ["self", "prevent"]),
|
|
354
|
-
onMouseover: g[2] || (g[2] = (L) =>
|
|
355
|
-
onMouseout: g[3] || (g[3] = (L) =>
|
|
354
|
+
onMouseover: g[2] || (g[2] = (L) => l.value = !0),
|
|
355
|
+
onMouseout: g[3] || (g[3] = (L) => l.value = !1)
|
|
356
356
|
}, [
|
|
357
|
-
|
|
357
|
+
b(d, {
|
|
358
358
|
class: "mr-1",
|
|
359
359
|
icon: u.collapse ? C(Xe) : C(Fe)
|
|
360
360
|
}, null, 8, ["icon"]),
|
|
361
|
-
F("span",
|
|
362
|
-
|
|
361
|
+
F("span", Yt, Q(u.title), 1),
|
|
362
|
+
b(f),
|
|
363
363
|
u.hasCreate ? (S(), B(m, {
|
|
364
364
|
key: 0,
|
|
365
365
|
class: "mx-3",
|
|
366
366
|
variant: "text",
|
|
367
367
|
density: "compact",
|
|
368
368
|
icon: C(Vt),
|
|
369
|
-
onClick: g[0] || (g[0] = z((L) =>
|
|
369
|
+
onClick: g[0] || (g[0] = z((L) => n("create"), ["stop"]))
|
|
370
370
|
}, null, 8, ["icon"])) : Y("", !0),
|
|
371
371
|
u.hasDelete ? (S(), B(m, {
|
|
372
372
|
key: 1,
|
|
@@ -374,37 +374,37 @@ const Gt = /* @__PURE__ */ J({
|
|
|
374
374
|
variant: "text",
|
|
375
375
|
density: "compact",
|
|
376
376
|
icon: C(re),
|
|
377
|
-
onClick: g[1] || (g[1] = z((L) =>
|
|
377
|
+
onClick: g[1] || (g[1] = z((L) => n("delete", u.index), ["stop"]))
|
|
378
378
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
379
379
|
], 36)), [
|
|
380
380
|
[k]
|
|
381
381
|
]);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
}),
|
|
384
|
+
}), Wt = /* @__PURE__ */ J({
|
|
385
385
|
__name: "entry",
|
|
386
386
|
props: {
|
|
387
387
|
minHeight: {}
|
|
388
388
|
},
|
|
389
389
|
emits: ["menu"],
|
|
390
390
|
setup(o, { emit: s }) {
|
|
391
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
392
|
-
background:
|
|
391
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = s, l = O(!1), i = K(() => ({
|
|
392
|
+
background: l.value ? e.value : t.value,
|
|
393
393
|
minHeight: o.minHeight,
|
|
394
394
|
paddingRight: "4px",
|
|
395
395
|
marginBottom: "1px",
|
|
396
396
|
userSelect: "none"
|
|
397
397
|
})), a = (r) => {
|
|
398
|
-
|
|
398
|
+
n("menu", r.clientX, r.clientY);
|
|
399
399
|
};
|
|
400
400
|
return (r, u) => {
|
|
401
|
-
const g =
|
|
401
|
+
const g = le("ripple");
|
|
402
402
|
return ee((S(), H("div", {
|
|
403
403
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
404
404
|
style: I(i.value),
|
|
405
405
|
onContextmenu: z(a, ["self", "prevent"]),
|
|
406
|
-
onMouseover: u[0] || (u[0] = (d) =>
|
|
407
|
-
onMouseout: u[1] || (u[1] = (d) =>
|
|
406
|
+
onMouseover: u[0] || (u[0] = (d) => l.value = !0),
|
|
407
|
+
onMouseout: u[1] || (u[1] = (d) => l.value = !1)
|
|
408
408
|
}, [
|
|
409
409
|
pt(r.$slots, "default")
|
|
410
410
|
], 36)), [
|
|
@@ -413,40 +413,40 @@ const Gt = /* @__PURE__ */ J({
|
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
function
|
|
416
|
+
function Qt(o, s, t) {
|
|
417
417
|
const { t: e } = te();
|
|
418
|
-
return { renderProp: (
|
|
419
|
-
const r =
|
|
418
|
+
return { renderProp: (l, i, a) => {
|
|
419
|
+
const r = l[l.length - 1];
|
|
420
420
|
let g = typeof r == "number" ? `[${r + 1}]` : e(i.name);
|
|
421
|
-
return ce(o.value,
|
|
422
|
-
|
|
421
|
+
return ce(o.value, l) && (g += " *"), h(
|
|
422
|
+
Wt,
|
|
423
423
|
{
|
|
424
424
|
minHeight: s.value,
|
|
425
425
|
onMenu: (d, f) => {
|
|
426
|
-
ae.emit("propTreeMenu", { x: d, y: f, keys:
|
|
426
|
+
ae.emit("propTreeMenu", { x: d, y: f, keys: l });
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
() => [
|
|
430
|
-
h("span", {
|
|
430
|
+
h("span", { style: { marginLeft: "4px", pointerEvents: "none" }, innerHTML: g }),
|
|
431
431
|
h("div", { style: { width: t.value } }, a)
|
|
432
432
|
]
|
|
433
433
|
);
|
|
434
434
|
} };
|
|
435
435
|
}
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
438
|
-
if (
|
|
436
|
+
const ne = (o, s, t, e, n, l) => {
|
|
437
|
+
if (n !== void 0)
|
|
438
|
+
if (l) {
|
|
439
439
|
if (t[s.key] === void 0) {
|
|
440
440
|
const i = q(s);
|
|
441
441
|
i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
|
|
442
442
|
}
|
|
443
443
|
return t[s.key];
|
|
444
444
|
} else {
|
|
445
|
-
if (t[
|
|
445
|
+
if (t[n] === void 0) {
|
|
446
446
|
const i = q(s, !0);
|
|
447
|
-
i !== void 0 && (t[
|
|
447
|
+
i !== void 0 && (t[n] = i, e(o, t[n]));
|
|
448
448
|
}
|
|
449
|
-
return t[
|
|
449
|
+
return t[n];
|
|
450
450
|
}
|
|
451
451
|
else {
|
|
452
452
|
if (t[s.key] === void 0) {
|
|
@@ -455,24 +455,24 @@ const le = (o, s, t, e, l, n) => {
|
|
|
455
455
|
}
|
|
456
456
|
return t[s.key];
|
|
457
457
|
}
|
|
458
|
-
}, oe = (o, s, t, e,
|
|
459
|
-
if (
|
|
460
|
-
i ? e !== t[s.key] && (t[s.key] = e,
|
|
458
|
+
}, oe = (o, s, t, e, n, l, i) => {
|
|
459
|
+
if (l !== void 0)
|
|
460
|
+
i ? e !== t[s.key] && (t[s.key] = e, n(o, t[s.key])) : e !== t[l] && (t[l] = e, n(o, t[l]));
|
|
461
461
|
else {
|
|
462
462
|
let a = e;
|
|
463
|
-
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (a = void 0)), a !== t[s.key] && (t[s.key] = a,
|
|
463
|
+
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (a = void 0)), a !== t[s.key] && (t[s.key] = a, n(o, t[s.key]));
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
|
-
function
|
|
467
|
-
return { renderUiDummy: (t, e,
|
|
466
|
+
function Zt(o) {
|
|
467
|
+
return { renderUiDummy: (t, e, n, l, i) => {
|
|
468
468
|
if (e.ui !== "dummy") {
|
|
469
469
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
ne(t, e, n, o, l, i);
|
|
473
473
|
} };
|
|
474
474
|
}
|
|
475
|
-
const
|
|
475
|
+
const Et = { class: "d-flex justify-space-between align-center" }, jt = /* @__PURE__ */ J({
|
|
476
476
|
__name: "strInput",
|
|
477
477
|
props: /* @__PURE__ */ W({
|
|
478
478
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -484,16 +484,16 @@ const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PU
|
|
|
484
484
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
485
485
|
setup(o, { emit: s }) {
|
|
486
486
|
const t = G(o, "modelValue"), e = s;
|
|
487
|
-
return (
|
|
488
|
-
const i = $("v-text-field"), a = $("v-btn"), r =
|
|
489
|
-
return S(), H("div",
|
|
490
|
-
ee(
|
|
487
|
+
return (n, l) => {
|
|
488
|
+
const i = $("v-text-field"), a = $("v-btn"), r = le("ripple");
|
|
489
|
+
return S(), H("div", Et, [
|
|
490
|
+
ee(b(i, {
|
|
491
491
|
modelValue: t.value,
|
|
492
|
-
"onUpdate:modelValue":
|
|
492
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
|
|
493
493
|
density: "compact",
|
|
494
494
|
"hide-details": "",
|
|
495
495
|
"single-line": "",
|
|
496
|
-
readonly:
|
|
496
|
+
readonly: n.readonly
|
|
497
497
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
498
498
|
[
|
|
499
499
|
r,
|
|
@@ -502,47 +502,47 @@ const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PU
|
|
|
502
502
|
{ stop: !0 }
|
|
503
503
|
]
|
|
504
504
|
]),
|
|
505
|
-
|
|
505
|
+
n.hasDelete ? (S(), B(a, {
|
|
506
506
|
key: 0,
|
|
507
507
|
class: "mx-2",
|
|
508
508
|
variant: "text",
|
|
509
509
|
density: "compact",
|
|
510
510
|
icon: C(re),
|
|
511
|
-
onClick:
|
|
511
|
+
onClick: l[1] || (l[1] = z((u) => e("delete"), ["stop"]))
|
|
512
512
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
513
513
|
]);
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
|
-
function
|
|
518
|
-
return { renderUiStrInput: (t, e,
|
|
519
|
-
modelValue: e.static ? e.value :
|
|
517
|
+
function It(o) {
|
|
518
|
+
return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(jt, {
|
|
519
|
+
modelValue: e.static ? e.value : ne(
|
|
520
520
|
t,
|
|
521
521
|
e,
|
|
522
|
-
l,
|
|
523
|
-
o,
|
|
524
522
|
n,
|
|
523
|
+
o,
|
|
524
|
+
l,
|
|
525
525
|
i
|
|
526
526
|
),
|
|
527
527
|
"onUpdate:modelValue": (a) => {
|
|
528
528
|
e.static || oe(
|
|
529
529
|
t,
|
|
530
530
|
e,
|
|
531
|
-
|
|
531
|
+
n,
|
|
532
532
|
a,
|
|
533
533
|
o,
|
|
534
|
-
|
|
534
|
+
l,
|
|
535
535
|
i
|
|
536
536
|
);
|
|
537
537
|
},
|
|
538
|
-
hasDelete:
|
|
538
|
+
hasDelete: l !== void 0 && !i,
|
|
539
539
|
onDelete: () => {
|
|
540
|
-
|
|
540
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
541
541
|
},
|
|
542
542
|
readonly: e.static || e.readonly
|
|
543
543
|
}) };
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ J({
|
|
546
546
|
__name: "numInput",
|
|
547
547
|
props: /* @__PURE__ */ W({
|
|
548
548
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -559,21 +559,21 @@ const It = { class: "d-flex justify-space-between align-center" }, el = /* @__PU
|
|
|
559
559
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
560
560
|
setup(o, { emit: s }) {
|
|
561
561
|
const t = G(o, "modelValue"), e = s;
|
|
562
|
-
return (
|
|
563
|
-
const i = $("v-number-input"), a = $("v-btn"), r =
|
|
564
|
-
return S(), H("div",
|
|
565
|
-
ee(
|
|
562
|
+
return (n, l) => {
|
|
563
|
+
const i = $("v-number-input"), a = $("v-btn"), r = le("ripple");
|
|
564
|
+
return S(), H("div", en, [
|
|
565
|
+
ee(b(i, {
|
|
566
566
|
modelValue: t.value,
|
|
567
|
-
"onUpdate:modelValue":
|
|
567
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
|
|
568
568
|
density: "compact",
|
|
569
569
|
"control-variant": "stacked",
|
|
570
|
-
precision:
|
|
571
|
-
min:
|
|
572
|
-
max:
|
|
573
|
-
step:
|
|
570
|
+
precision: n.precision,
|
|
571
|
+
min: n.min,
|
|
572
|
+
max: n.max,
|
|
573
|
+
step: n.step,
|
|
574
574
|
"hide-details": "",
|
|
575
575
|
"single-line": "",
|
|
576
|
-
readonly:
|
|
576
|
+
readonly: n.readonly
|
|
577
577
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
578
578
|
[
|
|
579
579
|
r,
|
|
@@ -582,42 +582,42 @@ const It = { class: "d-flex justify-space-between align-center" }, el = /* @__PU
|
|
|
582
582
|
{ stop: !0 }
|
|
583
583
|
]
|
|
584
584
|
]),
|
|
585
|
-
|
|
585
|
+
n.hasDelete ? (S(), B(a, {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "mx-2",
|
|
588
588
|
variant: "text",
|
|
589
589
|
density: "compact",
|
|
590
590
|
icon: C(re),
|
|
591
|
-
onClick:
|
|
591
|
+
onClick: l[1] || (l[1] = z((u) => e("delete"), ["stop"]))
|
|
592
592
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
593
593
|
]);
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
function
|
|
598
|
-
return { renderUiNumInput: (t, e,
|
|
599
|
-
modelValue:
|
|
597
|
+
function nn(o) {
|
|
598
|
+
return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(tn, {
|
|
599
|
+
modelValue: ne(
|
|
600
600
|
t,
|
|
601
601
|
e,
|
|
602
|
-
l,
|
|
603
|
-
o,
|
|
604
602
|
n,
|
|
603
|
+
o,
|
|
604
|
+
l,
|
|
605
605
|
i
|
|
606
606
|
),
|
|
607
607
|
"onUpdate:modelValue": (a) => {
|
|
608
608
|
oe(
|
|
609
609
|
t,
|
|
610
610
|
e,
|
|
611
|
-
|
|
611
|
+
n,
|
|
612
612
|
a,
|
|
613
613
|
o,
|
|
614
|
-
|
|
614
|
+
l,
|
|
615
615
|
i
|
|
616
616
|
);
|
|
617
617
|
},
|
|
618
|
-
hasDelete:
|
|
618
|
+
hasDelete: l !== void 0 && !i,
|
|
619
619
|
onDelete: () => {
|
|
620
|
-
|
|
620
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
621
621
|
},
|
|
622
622
|
precision: e.precision,
|
|
623
623
|
min: e.min,
|
|
@@ -626,7 +626,7 @@ function tl(o) {
|
|
|
626
626
|
readonly: e.readonly
|
|
627
627
|
}) };
|
|
628
628
|
}
|
|
629
|
-
const
|
|
629
|
+
const ln = { class: "d-flex justify-space-between align-center" }, on = /* @__PURE__ */ J({
|
|
630
630
|
__name: "switch",
|
|
631
631
|
props: /* @__PURE__ */ W({
|
|
632
632
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -638,59 +638,59 @@ const ll = { class: "d-flex justify-space-between align-center" }, nl = /* @__PU
|
|
|
638
638
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
639
639
|
setup(o, { emit: s }) {
|
|
640
640
|
const t = G(o, "modelValue"), e = s;
|
|
641
|
-
return (
|
|
641
|
+
return (n, l) => {
|
|
642
642
|
const i = $("v-switch"), a = $("v-btn");
|
|
643
|
-
return S(), H("div",
|
|
644
|
-
|
|
643
|
+
return S(), H("div", ln, [
|
|
644
|
+
b(i, {
|
|
645
645
|
modelValue: t.value,
|
|
646
|
-
"onUpdate:modelValue":
|
|
646
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
647
647
|
class: "ml-1",
|
|
648
648
|
density: "compact",
|
|
649
649
|
color: "primary",
|
|
650
650
|
"hide-details": "",
|
|
651
|
-
readonly:
|
|
651
|
+
readonly: n.readonly
|
|
652
652
|
}, null, 8, ["modelValue", "readonly"]),
|
|
653
|
-
|
|
653
|
+
n.hasDelete ? (S(), B(a, {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: "mx-2",
|
|
656
656
|
variant: "text",
|
|
657
657
|
density: "compact",
|
|
658
658
|
icon: C(re),
|
|
659
|
-
onClick:
|
|
659
|
+
onClick: l[1] || (l[1] = z((r) => e("delete"), ["stop"]))
|
|
660
660
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
661
661
|
]);
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
|
-
function
|
|
666
|
-
return { renderUiSwitch: (t, e,
|
|
667
|
-
modelValue:
|
|
665
|
+
function sn(o) {
|
|
666
|
+
return { renderUiSwitch: (t, e, n, l, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(on, {
|
|
667
|
+
modelValue: ne(
|
|
668
668
|
t,
|
|
669
669
|
e,
|
|
670
|
-
l,
|
|
671
|
-
o,
|
|
672
670
|
n,
|
|
671
|
+
o,
|
|
672
|
+
l,
|
|
673
673
|
i
|
|
674
674
|
) ?? !1,
|
|
675
675
|
"onUpdate:modelValue": (a) => {
|
|
676
676
|
oe(
|
|
677
677
|
t,
|
|
678
678
|
e,
|
|
679
|
-
|
|
679
|
+
n,
|
|
680
680
|
a,
|
|
681
681
|
o,
|
|
682
|
-
|
|
682
|
+
l,
|
|
683
683
|
i
|
|
684
684
|
);
|
|
685
685
|
},
|
|
686
|
-
hasDelete:
|
|
686
|
+
hasDelete: l !== void 0 && !i,
|
|
687
687
|
onDelete: () => {
|
|
688
|
-
|
|
688
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, 1), n));
|
|
689
689
|
},
|
|
690
690
|
readonly: e.readonly
|
|
691
691
|
}) };
|
|
692
692
|
}
|
|
693
|
-
const
|
|
693
|
+
const rn = { class: "d-flex justify-space-between align-center" }, un = /* @__PURE__ */ J({
|
|
694
694
|
__name: "select",
|
|
695
695
|
props: /* @__PURE__ */ W({
|
|
696
696
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -702,17 +702,17 @@ const sl = { class: "d-flex justify-space-between align-center" }, il = /* @__PU
|
|
|
702
702
|
}),
|
|
703
703
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
704
704
|
setup(o, { emit: s }) {
|
|
705
|
-
const { t } = te(), e = G(o, "modelValue"),
|
|
705
|
+
const { t } = te(), e = G(o, "modelValue"), n = s, l = Te(), i = K(() => {
|
|
706
706
|
var r;
|
|
707
707
|
const a = [];
|
|
708
|
-
return (r = Ye[
|
|
708
|
+
return (r = Ye[l.value]) == null || r.items[o.items].forEach(({ title: u, value: g }) => {
|
|
709
709
|
a.push({ title: t(u), value: g });
|
|
710
710
|
}), a;
|
|
711
711
|
});
|
|
712
712
|
return (a, r) => {
|
|
713
|
-
const u = $("v-select"), g = $("v-btn"), d =
|
|
714
|
-
return S(), H("div",
|
|
715
|
-
ee(
|
|
713
|
+
const u = $("v-select"), g = $("v-btn"), d = le("ripple");
|
|
714
|
+
return S(), H("div", rn, [
|
|
715
|
+
ee(b(u, {
|
|
716
716
|
modelValue: e.value,
|
|
717
717
|
"onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
|
|
718
718
|
density: "compact",
|
|
@@ -734,42 +734,42 @@ const sl = { class: "d-flex justify-space-between align-center" }, il = /* @__PU
|
|
|
734
734
|
variant: "text",
|
|
735
735
|
density: "compact",
|
|
736
736
|
icon: C(re),
|
|
737
|
-
onClick: r[1] || (r[1] = z((f) =>
|
|
737
|
+
onClick: r[1] || (r[1] = z((f) => n("delete"), ["stop"]))
|
|
738
738
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
739
739
|
]);
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
|
-
function
|
|
744
|
-
return { renderUiSelect: (t, e,
|
|
745
|
-
modelValue:
|
|
743
|
+
function an(o) {
|
|
744
|
+
return { renderUiSelect: (t, e, n, l, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(un, {
|
|
745
|
+
modelValue: ne(
|
|
746
746
|
t,
|
|
747
747
|
e,
|
|
748
|
-
l,
|
|
749
|
-
o,
|
|
750
748
|
n,
|
|
749
|
+
o,
|
|
750
|
+
l,
|
|
751
751
|
i
|
|
752
752
|
) ?? "",
|
|
753
753
|
"onUpdate:modelValue": (a) => {
|
|
754
754
|
oe(
|
|
755
755
|
t,
|
|
756
756
|
e,
|
|
757
|
-
|
|
757
|
+
n,
|
|
758
758
|
a,
|
|
759
759
|
o,
|
|
760
|
-
|
|
760
|
+
l,
|
|
761
761
|
i
|
|
762
762
|
);
|
|
763
763
|
},
|
|
764
|
-
hasDelete:
|
|
764
|
+
hasDelete: l !== void 0 && !i,
|
|
765
765
|
onDelete: () => {
|
|
766
|
-
|
|
766
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
767
767
|
},
|
|
768
768
|
items: e.items,
|
|
769
769
|
readonly: e.readonly
|
|
770
770
|
}) };
|
|
771
771
|
}
|
|
772
|
-
const
|
|
772
|
+
const cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-grey ml-1" }, fn = /* @__PURE__ */ J({
|
|
773
773
|
__name: "group",
|
|
774
774
|
props: {
|
|
775
775
|
id: {},
|
|
@@ -779,33 +779,33 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
779
779
|
},
|
|
780
780
|
emits: ["x-click"],
|
|
781
781
|
setup(o, { emit: s }) {
|
|
782
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
782
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = o, l = s, i = O(!1), a = K(() => ({
|
|
783
783
|
background: i.value ? e.value : t.value,
|
|
784
784
|
height: "30px",
|
|
785
785
|
marginBottom: "1px",
|
|
786
786
|
userSelect: "none"
|
|
787
787
|
}));
|
|
788
788
|
return (r, u) => {
|
|
789
|
-
const g = $("v-icon"), d =
|
|
789
|
+
const g = $("v-icon"), d = le("ripple");
|
|
790
790
|
return ee((S(), H("div", {
|
|
791
791
|
class: "d-flex align-center cursor-pointer",
|
|
792
792
|
style: I(a.value),
|
|
793
|
-
onClick: u[0] || (u[0] = (f) =>
|
|
793
|
+
onClick: u[0] || (u[0] = (f) => l("x-click", n.id)),
|
|
794
794
|
onMouseover: u[1] || (u[1] = (f) => i.value = !0),
|
|
795
795
|
onMouseout: u[2] || (u[2] = (f) => i.value = !1)
|
|
796
796
|
}, [
|
|
797
|
-
|
|
798
|
-
icon:
|
|
797
|
+
b(g, {
|
|
798
|
+
icon: n.collapse ? C(Xe) : C(Fe),
|
|
799
799
|
size: "small"
|
|
800
800
|
}, null, 8, ["icon"]),
|
|
801
|
-
F("span",
|
|
802
|
-
F("span",
|
|
801
|
+
F("span", cn, Q(n.title), 1),
|
|
802
|
+
F("span", dn, Q(n.count), 1)
|
|
803
803
|
], 36)), [
|
|
804
804
|
[d]
|
|
805
805
|
]);
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
}),
|
|
808
|
+
}), mn = { class: "text-subtitle-1 ml-6" }, vn = /* @__PURE__ */ J({
|
|
809
809
|
__name: "item",
|
|
810
810
|
props: {
|
|
811
811
|
id: {},
|
|
@@ -813,31 +813,31 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
813
813
|
},
|
|
814
814
|
emits: ["x-click"],
|
|
815
815
|
setup(o, { emit: s }) {
|
|
816
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
816
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = o, l = s, i = O(!1), a = K(() => ({
|
|
817
817
|
background: i.value ? e.value : t.value,
|
|
818
818
|
height: "48px",
|
|
819
819
|
marginBottom: "1px",
|
|
820
820
|
userSelect: "none"
|
|
821
821
|
}));
|
|
822
822
|
return (r, u) => {
|
|
823
|
-
const g =
|
|
823
|
+
const g = le("ripple");
|
|
824
824
|
return ee((S(), H("div", {
|
|
825
825
|
class: "d-flex align-center cursor-pointer",
|
|
826
826
|
style: I(a.value),
|
|
827
|
-
onClick: u[0] || (u[0] = (d) =>
|
|
827
|
+
onClick: u[0] || (u[0] = (d) => l("x-click", n.id)),
|
|
828
828
|
onMouseover: u[1] || (u[1] = (d) => i.value = !0),
|
|
829
829
|
onMouseout: u[2] || (u[2] = (d) => i.value = !1)
|
|
830
830
|
}, [
|
|
831
|
-
F("span",
|
|
831
|
+
F("span", mn, Q(n.title), 1)
|
|
832
832
|
], 36)), [
|
|
833
833
|
[g]
|
|
834
834
|
]);
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
}),
|
|
837
|
+
}), pn = { key: 0 }, yn = {
|
|
838
838
|
key: 1,
|
|
839
839
|
class: "text-body-2 text-grey ml-3"
|
|
840
|
-
},
|
|
840
|
+
}, gn = /* @__PURE__ */ J({
|
|
841
841
|
__name: "index",
|
|
842
842
|
props: {
|
|
843
843
|
modelValue: {},
|
|
@@ -847,34 +847,34 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
847
847
|
},
|
|
848
848
|
emits: ["update:modelValue", "update:open"],
|
|
849
849
|
setup(o) {
|
|
850
|
-
const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"),
|
|
851
|
-
const r = ze(
|
|
852
|
-
r && Ct(
|
|
850
|
+
const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"), n = et(), l = (a) => {
|
|
851
|
+
const r = ze(n, a);
|
|
852
|
+
r && Ct(n, a, !r.collapse);
|
|
853
853
|
}, i = (a) => {
|
|
854
854
|
t.value = a, e.value = !1, ae.emit("refreshDepends");
|
|
855
855
|
};
|
|
856
|
-
return (a, r) => C(
|
|
857
|
-
(S(!0), H(Ve, null, Be(C(
|
|
856
|
+
return (a, r) => C(n).length > 0 ? (S(), H("div", pn, [
|
|
857
|
+
(S(!0), H(Ve, null, Be(C(n), (u) => (S(), H(Ve, {
|
|
858
858
|
key: u.id
|
|
859
859
|
}, [
|
|
860
|
-
u.type === 0 ? (S(), B(
|
|
860
|
+
u.type === 0 ? (S(), B(fn, {
|
|
861
861
|
key: 0,
|
|
862
862
|
id: u.id,
|
|
863
863
|
title: u.name,
|
|
864
864
|
collapse: u.collapse,
|
|
865
865
|
count: u.count ?? 0,
|
|
866
|
-
onXClick:
|
|
866
|
+
onXClick: l
|
|
867
867
|
}, null, 8, ["id", "title", "collapse", "count"])) : Y("", !0),
|
|
868
|
-
u.type === 1 && u.show ? (S(), B(
|
|
868
|
+
u.type === 1 && u.show ? (S(), B(vn, {
|
|
869
869
|
key: 1,
|
|
870
870
|
id: u.id,
|
|
871
871
|
title: u.name,
|
|
872
872
|
onXClick: i
|
|
873
873
|
}, null, 8, ["id", "title"])) : Y("", !0)
|
|
874
874
|
], 64))), 128))
|
|
875
|
-
])) : (S(), H("div",
|
|
875
|
+
])) : (S(), H("div", yn, Q(C(s)("x-prop-tree.noComp")), 1));
|
|
876
876
|
}
|
|
877
|
-
}),
|
|
877
|
+
}), hn = { class: "text-subtitle-1 ml-3" }, _n = /* @__PURE__ */ J({
|
|
878
878
|
__name: "index",
|
|
879
879
|
props: {
|
|
880
880
|
modelValue: {},
|
|
@@ -882,10 +882,10 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
882
882
|
},
|
|
883
883
|
emits: ["update:modelValue"],
|
|
884
884
|
setup(o) {
|
|
885
|
-
const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1:
|
|
885
|
+
const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1: n } = ie(), l = G(o, "modelValue"), i = et(), a = K(() => {
|
|
886
886
|
let f = "100%";
|
|
887
887
|
return t.mdAndUp.value && (f = "400px"), {
|
|
888
|
-
background:
|
|
888
|
+
background: n.value,
|
|
889
889
|
width: f,
|
|
890
890
|
height: "100%"
|
|
891
891
|
};
|
|
@@ -898,9 +898,9 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
898
898
|
}), u = K(() => ({
|
|
899
899
|
height: "60px"
|
|
900
900
|
})), g = K(() => {
|
|
901
|
-
if (!
|
|
901
|
+
if (!l.value)
|
|
902
902
|
return s("x-runtime-lib.notSet");
|
|
903
|
-
const f = ze(i,
|
|
903
|
+
const f = ze(i, l.value);
|
|
904
904
|
return f ? f.name : s("x-runtime-lib.compNotAvail");
|
|
905
905
|
}), { open: d } = Se(`propTreeCompSelectDlg${we()}`);
|
|
906
906
|
return De(() => {
|
|
@@ -917,7 +917,7 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
917
917
|
onKeydown: m[6] || (m[6] = Ke(z((P) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
918
918
|
}, {
|
|
919
919
|
activator: R(({ props: P }) => [
|
|
920
|
-
|
|
920
|
+
b(k, be(P, {
|
|
921
921
|
density: "comfortable",
|
|
922
922
|
block: ""
|
|
923
923
|
}), {
|
|
@@ -942,17 +942,17 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
942
942
|
color: "transparent",
|
|
943
943
|
height: 24
|
|
944
944
|
})) : Y("", !0),
|
|
945
|
-
|
|
945
|
+
b(L, {
|
|
946
946
|
class: "d-flex align-center px-3",
|
|
947
947
|
color: "transparent",
|
|
948
948
|
height: 48
|
|
949
949
|
}, {
|
|
950
950
|
default: R(() => [
|
|
951
|
-
|
|
951
|
+
b(w, {
|
|
952
952
|
icon: C(Ge),
|
|
953
953
|
onClick: m[0] || (m[0] = (P) => d.value = !1)
|
|
954
954
|
}, null, 8, ["icon"]),
|
|
955
|
-
F("span",
|
|
955
|
+
F("span", hn, Q(C(s)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
956
956
|
]),
|
|
957
957
|
_: 1
|
|
958
958
|
}),
|
|
@@ -960,9 +960,9 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
960
960
|
class: "overflow-y-auto",
|
|
961
961
|
style: I(r.value)
|
|
962
962
|
}, [
|
|
963
|
-
|
|
964
|
-
modelValue:
|
|
965
|
-
"onUpdate:modelValue": m[1] || (m[1] = (P) =>
|
|
963
|
+
b(gn, {
|
|
964
|
+
modelValue: l.value,
|
|
965
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => l.value = P),
|
|
966
966
|
open: C(d),
|
|
967
967
|
"onUpdate:open": m[2] || (m[2] = (P) => pe(d) ? d.value = P : null)
|
|
968
968
|
}, null, 8, ["modelValue", "open"]),
|
|
@@ -978,30 +978,30 @@ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-g
|
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
});
|
|
981
|
-
function
|
|
982
|
-
return { renderUiCompSelect: (t, e,
|
|
983
|
-
modelValue:
|
|
981
|
+
function kn(o) {
|
|
982
|
+
return { renderUiCompSelect: (t, e, n, l, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(_n, {
|
|
983
|
+
modelValue: ne(
|
|
984
984
|
t,
|
|
985
985
|
e,
|
|
986
|
-
l,
|
|
987
|
-
o,
|
|
988
986
|
n,
|
|
987
|
+
o,
|
|
988
|
+
l,
|
|
989
989
|
i
|
|
990
990
|
),
|
|
991
991
|
"onUpdate:modelValue": (a) => {
|
|
992
992
|
oe(
|
|
993
993
|
t,
|
|
994
994
|
e,
|
|
995
|
-
|
|
995
|
+
n,
|
|
996
996
|
a,
|
|
997
997
|
o,
|
|
998
|
-
|
|
998
|
+
l,
|
|
999
999
|
i
|
|
1000
1000
|
);
|
|
1001
1001
|
}
|
|
1002
1002
|
}) };
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1004
|
+
const Vn = { class: "d-flex justify-space-between align-center" }, Cn = /* @__PURE__ */ J({
|
|
1005
1005
|
__name: "colorPicker",
|
|
1006
1006
|
props: /* @__PURE__ */ W({
|
|
1007
1007
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1012,7 +1012,7 @@ const _l = { class: "d-flex justify-space-between align-center" }, kl = /* @__PU
|
|
|
1012
1012
|
}),
|
|
1013
1013
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
1014
1014
|
setup(o, { emit: s }) {
|
|
1015
|
-
const { t } = te(), e = G(o, "modelValue"),
|
|
1015
|
+
const { t } = te(), e = G(o, "modelValue"), n = s, l = K(() => {
|
|
1016
1016
|
let r = "100%";
|
|
1017
1017
|
return o.hasDelete && (r = "calc(100% - 37px)"), {
|
|
1018
1018
|
width: r
|
|
@@ -1029,12 +1029,12 @@ const _l = { class: "d-flex justify-space-between align-center" }, kl = /* @__PU
|
|
|
1029
1029
|
scrim: "transparent"
|
|
1030
1030
|
}, {
|
|
1031
1031
|
activator: R(({ props: m }) => [
|
|
1032
|
-
F("div",
|
|
1032
|
+
F("div", Vn, [
|
|
1033
1033
|
F("div", {
|
|
1034
1034
|
class: "flex-grow-1",
|
|
1035
|
-
style: I(
|
|
1035
|
+
style: I(l.value)
|
|
1036
1036
|
}, [
|
|
1037
|
-
|
|
1037
|
+
b(g, be(m, {
|
|
1038
1038
|
density: "comfortable",
|
|
1039
1039
|
color: e.value,
|
|
1040
1040
|
block: "",
|
|
@@ -1052,12 +1052,12 @@ const _l = { class: "d-flex justify-space-between align-center" }, kl = /* @__PU
|
|
|
1052
1052
|
variant: "text",
|
|
1053
1053
|
density: "compact",
|
|
1054
1054
|
icon: C(re),
|
|
1055
|
-
onClick: u[0] || (u[0] = z((k) =>
|
|
1055
|
+
onClick: u[0] || (u[0] = z((k) => n("delete"), ["stop"]))
|
|
1056
1056
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
1057
1057
|
])
|
|
1058
1058
|
]),
|
|
1059
1059
|
default: R(() => [
|
|
1060
|
-
|
|
1060
|
+
b(d, {
|
|
1061
1061
|
modelValue: e.value,
|
|
1062
1062
|
"onUpdate:modelValue": u[1] || (u[1] = (m) => e.value = m),
|
|
1063
1063
|
mode: "hexa",
|
|
@@ -1070,35 +1070,35 @@ const _l = { class: "d-flex justify-space-between align-center" }, kl = /* @__PU
|
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
1072
|
});
|
|
1073
|
-
function
|
|
1074
|
-
return { renderUiColorPicker: (t, e,
|
|
1075
|
-
modelValue:
|
|
1073
|
+
function Sn(o) {
|
|
1074
|
+
return { renderUiColorPicker: (t, e, n, l, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(Cn, {
|
|
1075
|
+
modelValue: ne(
|
|
1076
1076
|
t,
|
|
1077
1077
|
e,
|
|
1078
|
-
l,
|
|
1079
|
-
o,
|
|
1080
1078
|
n,
|
|
1079
|
+
o,
|
|
1080
|
+
l,
|
|
1081
1081
|
i
|
|
1082
1082
|
),
|
|
1083
1083
|
"onUpdate:modelValue": (a) => {
|
|
1084
1084
|
oe(
|
|
1085
1085
|
t,
|
|
1086
1086
|
e,
|
|
1087
|
-
|
|
1087
|
+
n,
|
|
1088
1088
|
a,
|
|
1089
1089
|
o,
|
|
1090
|
-
|
|
1090
|
+
l,
|
|
1091
1091
|
i
|
|
1092
1092
|
);
|
|
1093
1093
|
},
|
|
1094
|
-
hasDelete:
|
|
1094
|
+
hasDelete: l !== void 0 && !i,
|
|
1095
1095
|
onDelete: () => {
|
|
1096
|
-
|
|
1096
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1097
1097
|
},
|
|
1098
1098
|
readonly: e.readonly
|
|
1099
1099
|
}) };
|
|
1100
1100
|
}
|
|
1101
|
-
const
|
|
1101
|
+
const Un = { class: "d-flex justify-space-between align-center my-2" }, $n = { class: "flex-grow-1" }, xn = /* @__PURE__ */ J({
|
|
1102
1102
|
__name: "multiTypes",
|
|
1103
1103
|
props: /* @__PURE__ */ W({
|
|
1104
1104
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1109,9 +1109,9 @@ const Cl = { class: "d-flex justify-space-between align-center my-2" }, Sl = { c
|
|
|
1109
1109
|
}),
|
|
1110
1110
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
1111
1111
|
setup(o, { emit: s }) {
|
|
1112
|
-
const { t } = te(), e = G(o, "modelValue"),
|
|
1112
|
+
const { t } = te(), e = G(o, "modelValue"), n = s, l = Te(), i = K(() => {
|
|
1113
1113
|
var f;
|
|
1114
|
-
return (f = Ye[
|
|
1114
|
+
return (f = Ye[l.value]) == null ? void 0 : f.types[o.types];
|
|
1115
1115
|
}), a = O(0), r = K(() => {
|
|
1116
1116
|
var m;
|
|
1117
1117
|
const f = [];
|
|
@@ -1141,10 +1141,10 @@ const Cl = { class: "d-flex justify-space-between align-center my-2" }, Sl = { c
|
|
|
1141
1141
|
((m = u.value) == null ? void 0 : m.ui) === "pixelInput" ? e.value = f + "px" : ((k = u.value) == null ? void 0 : k.ui) === "percentInput" && (e.value = f + "%");
|
|
1142
1142
|
}), (f, m) => {
|
|
1143
1143
|
var P, _;
|
|
1144
|
-
const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"), T =
|
|
1145
|
-
return S(), H("div",
|
|
1146
|
-
F("div",
|
|
1147
|
-
ee(
|
|
1144
|
+
const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"), T = le("ripple");
|
|
1145
|
+
return S(), H("div", Un, [
|
|
1146
|
+
F("div", $n, [
|
|
1147
|
+
ee(b(k, {
|
|
1148
1148
|
modelValue: a.value,
|
|
1149
1149
|
"onUpdate:modelValue": [
|
|
1150
1150
|
m[0] || (m[0] = (M) => a.value = M),
|
|
@@ -1189,41 +1189,41 @@ const Cl = { class: "d-flex justify-space-between align-center my-2" }, Sl = { c
|
|
|
1189
1189
|
variant: "text",
|
|
1190
1190
|
density: "compact",
|
|
1191
1191
|
icon: C(re),
|
|
1192
|
-
onClick: m[2] || (m[2] = z((M) =>
|
|
1192
|
+
onClick: m[2] || (m[2] = z((M) => n("delete"), ["stop"]))
|
|
1193
1193
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
1194
1194
|
]);
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
1197
|
});
|
|
1198
|
-
function
|
|
1199
|
-
return { renderUiMultiTypes: (t, e,
|
|
1200
|
-
modelValue:
|
|
1198
|
+
function Pn(o) {
|
|
1199
|
+
return { renderUiMultiTypes: (t, e, n, l, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(xn, {
|
|
1200
|
+
modelValue: ne(
|
|
1201
1201
|
t,
|
|
1202
1202
|
e,
|
|
1203
|
-
l,
|
|
1204
|
-
o,
|
|
1205
1203
|
n,
|
|
1204
|
+
o,
|
|
1205
|
+
l,
|
|
1206
1206
|
i
|
|
1207
1207
|
) ?? "",
|
|
1208
1208
|
"onUpdate:modelValue": (a) => {
|
|
1209
1209
|
oe(
|
|
1210
1210
|
t,
|
|
1211
1211
|
e,
|
|
1212
|
-
|
|
1212
|
+
n,
|
|
1213
1213
|
a,
|
|
1214
1214
|
o,
|
|
1215
|
-
|
|
1215
|
+
l,
|
|
1216
1216
|
i
|
|
1217
1217
|
);
|
|
1218
1218
|
},
|
|
1219
|
-
hasDelete:
|
|
1219
|
+
hasDelete: l !== void 0 && !i,
|
|
1220
1220
|
onDelete: () => {
|
|
1221
|
-
|
|
1221
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1222
1222
|
},
|
|
1223
1223
|
types: e.types
|
|
1224
1224
|
}) };
|
|
1225
1225
|
}
|
|
1226
|
-
const
|
|
1226
|
+
const Mn = /* @__PURE__ */ J({
|
|
1227
1227
|
__name: "editor",
|
|
1228
1228
|
props: {
|
|
1229
1229
|
modelValue: { required: !0 },
|
|
@@ -1235,7 +1235,7 @@ const xl = /* @__PURE__ */ J({
|
|
|
1235
1235
|
},
|
|
1236
1236
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
1237
1237
|
setup(o, { expose: s }) {
|
|
1238
|
-
const t = G(o, "modelValue"), e = G(o, "lock"),
|
|
1238
|
+
const t = G(o, "modelValue"), e = G(o, "lock"), n = G(o, "scale"), l = _t(), i = kt(), a = Te(), r = Re("target"), u = () => {
|
|
1239
1239
|
var f;
|
|
1240
1240
|
const d = JSON.parse(t.value);
|
|
1241
1241
|
(f = r.value) == null || f.load(d);
|
|
@@ -1248,16 +1248,16 @@ const xl = /* @__PURE__ */ J({
|
|
|
1248
1248
|
ref: r,
|
|
1249
1249
|
lock: e.value,
|
|
1250
1250
|
"onUpdate:lock": f[0] || (f[0] = (m) => e.value = m),
|
|
1251
|
-
scale:
|
|
1252
|
-
"onUpdate:scale": f[1] || (f[1] = (m) =>
|
|
1251
|
+
scale: n.value,
|
|
1252
|
+
"onUpdate:scale": f[1] || (f[1] = (m) => n.value = m),
|
|
1253
1253
|
type: "json",
|
|
1254
1254
|
version: C(a),
|
|
1255
1255
|
locale: C(i),
|
|
1256
|
-
dark: C(
|
|
1256
|
+
dark: C(l),
|
|
1257
1257
|
onReady: u
|
|
1258
1258
|
}, null, 8, ["lock", "scale", "version", "locale", "dark"]));
|
|
1259
1259
|
}
|
|
1260
|
-
}),
|
|
1260
|
+
}), wn = { class: "text-subtitle-1" }, Dn = /* @__PURE__ */ J({
|
|
1261
1261
|
__name: "index",
|
|
1262
1262
|
props: {
|
|
1263
1263
|
modelValue: { required: !0 },
|
|
@@ -1265,11 +1265,11 @@ const xl = /* @__PURE__ */ J({
|
|
|
1265
1265
|
},
|
|
1266
1266
|
emits: ["update:modelValue"],
|
|
1267
1267
|
setup(o) {
|
|
1268
|
-
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1:
|
|
1268
|
+
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i = G(o, "modelValue"), a = O(!1), r = O(1), u = K(() => {
|
|
1269
1269
|
let m = 48;
|
|
1270
1270
|
return t.value && (m += 24), {
|
|
1271
1271
|
position: "relative",
|
|
1272
|
-
background:
|
|
1272
|
+
background: n.value,
|
|
1273
1273
|
height: `calc(100% - ${m}px)`
|
|
1274
1274
|
};
|
|
1275
1275
|
}), g = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Se(`propTreeJsonObjectDlg${we()}`);
|
|
@@ -1293,7 +1293,7 @@ const xl = /* @__PURE__ */ J({
|
|
|
1293
1293
|
onKeydown: k[5] || (k[5] = Ke(z((_) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1294
1294
|
}, {
|
|
1295
1295
|
activator: R(({ props: _ }) => [
|
|
1296
|
-
|
|
1296
|
+
b(L, be(_, {
|
|
1297
1297
|
density: "comfortable",
|
|
1298
1298
|
block: ""
|
|
1299
1299
|
}), {
|
|
@@ -1304,7 +1304,7 @@ const xl = /* @__PURE__ */ J({
|
|
|
1304
1304
|
}, 1040)
|
|
1305
1305
|
]),
|
|
1306
1306
|
default: R(() => [
|
|
1307
|
-
|
|
1307
|
+
b(w, {
|
|
1308
1308
|
color: C(e),
|
|
1309
1309
|
width: "100%",
|
|
1310
1310
|
height: "100%"
|
|
@@ -1312,30 +1312,30 @@ const xl = /* @__PURE__ */ J({
|
|
|
1312
1312
|
default: R(() => [
|
|
1313
1313
|
C(t) ? (S(), B(w, {
|
|
1314
1314
|
key: 0,
|
|
1315
|
-
color: C(
|
|
1315
|
+
color: C(l),
|
|
1316
1316
|
height: 24
|
|
1317
1317
|
}, null, 8, ["color"])) : Y("", !0),
|
|
1318
|
-
|
|
1318
|
+
b(w, {
|
|
1319
1319
|
class: "d-flex align-center px-2",
|
|
1320
|
-
color: C(
|
|
1320
|
+
color: C(l),
|
|
1321
1321
|
height: 48
|
|
1322
1322
|
}, {
|
|
1323
1323
|
default: R(() => [
|
|
1324
|
-
|
|
1324
|
+
b(L, {
|
|
1325
1325
|
variant: "text",
|
|
1326
1326
|
density: "comfortable",
|
|
1327
1327
|
icon: C(Ge),
|
|
1328
1328
|
onClick: k[0] || (k[0] = (_) => d.value = !1)
|
|
1329
1329
|
}, null, 8, ["icon"]),
|
|
1330
|
-
F("span",
|
|
1331
|
-
|
|
1330
|
+
F("span", wn, Q(C(s)("x-prop-tree.dlg.jsonObject.title")), 1),
|
|
1331
|
+
b(T)
|
|
1332
1332
|
]),
|
|
1333
1333
|
_: 1
|
|
1334
1334
|
}, 8, ["color"]),
|
|
1335
1335
|
F("div", {
|
|
1336
1336
|
style: I(u.value)
|
|
1337
1337
|
}, [
|
|
1338
|
-
|
|
1338
|
+
b(Mn, {
|
|
1339
1339
|
ref_key: "editor",
|
|
1340
1340
|
ref: f,
|
|
1341
1341
|
modelValue: i.value,
|
|
@@ -1355,30 +1355,30 @@ const xl = /* @__PURE__ */ J({
|
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
});
|
|
1358
|
-
function
|
|
1359
|
-
return { renderUiJsonEditor: (t, e,
|
|
1360
|
-
modelValue:
|
|
1358
|
+
function bn(o) {
|
|
1359
|
+
return { renderUiJsonEditor: (t, e, n, l, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h(Dn, {
|
|
1360
|
+
modelValue: ne(
|
|
1361
1361
|
t,
|
|
1362
1362
|
e,
|
|
1363
|
-
l,
|
|
1364
|
-
o,
|
|
1365
1363
|
n,
|
|
1364
|
+
o,
|
|
1365
|
+
l,
|
|
1366
1366
|
i
|
|
1367
1367
|
) ?? "{}",
|
|
1368
1368
|
"onUpdate:modelValue": (a) => {
|
|
1369
1369
|
oe(
|
|
1370
1370
|
t,
|
|
1371
1371
|
e,
|
|
1372
|
-
|
|
1372
|
+
n,
|
|
1373
1373
|
a,
|
|
1374
1374
|
o,
|
|
1375
|
-
|
|
1375
|
+
l,
|
|
1376
1376
|
i
|
|
1377
1377
|
);
|
|
1378
1378
|
}
|
|
1379
1379
|
}) };
|
|
1380
1380
|
}
|
|
1381
|
-
const
|
|
1381
|
+
const An = /* @__PURE__ */ J({
|
|
1382
1382
|
__name: "index",
|
|
1383
1383
|
props: {
|
|
1384
1384
|
unique: {},
|
|
@@ -1388,37 +1388,37 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1388
1388
|
},
|
|
1389
1389
|
emits: ["change"],
|
|
1390
1390
|
setup(o, { emit: s }) {
|
|
1391
|
-
const { t } = te(), { backgroundColor1: e } = ie(),
|
|
1392
|
-
qe(g,
|
|
1391
|
+
const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"), r = O("200px"), u = yt({}), g = O({}), d = (p, c) => {
|
|
1392
|
+
qe(g, n.config, n.object), l("change", p, c);
|
|
1393
1393
|
};
|
|
1394
1394
|
ue(
|
|
1395
|
-
[() =>
|
|
1395
|
+
[() => n.config, () => n.object],
|
|
1396
1396
|
() => {
|
|
1397
|
-
qe(g,
|
|
1398
|
-
|
|
1397
|
+
qe(g, n.config, n.object, (p, c) => {
|
|
1398
|
+
l("change", p, c);
|
|
1399
1399
|
});
|
|
1400
1400
|
},
|
|
1401
1401
|
{ immediate: !0 }
|
|
1402
1402
|
);
|
|
1403
|
-
const f = O(
|
|
1403
|
+
const f = O(n.version);
|
|
1404
1404
|
Ot(f), ue(
|
|
1405
|
-
() =>
|
|
1405
|
+
() => n.version,
|
|
1406
1406
|
() => {
|
|
1407
|
-
f.value =
|
|
1407
|
+
f.value = n.version;
|
|
1408
1408
|
}
|
|
1409
1409
|
);
|
|
1410
|
-
const m = O(
|
|
1410
|
+
const m = O(n.config);
|
|
1411
1411
|
qt(m), ue(
|
|
1412
|
-
() =>
|
|
1412
|
+
() => n.config,
|
|
1413
1413
|
() => {
|
|
1414
|
-
m.value =
|
|
1414
|
+
m.value = n.config;
|
|
1415
1415
|
}
|
|
1416
1416
|
);
|
|
1417
|
-
const k = O(
|
|
1417
|
+
const k = O(n.object);
|
|
1418
1418
|
Kt(k), ue(
|
|
1419
|
-
() =>
|
|
1419
|
+
() => n.object,
|
|
1420
1420
|
() => {
|
|
1421
|
-
k.value =
|
|
1421
|
+
k.value = n.object;
|
|
1422
1422
|
}
|
|
1423
1423
|
), Jt(g), Xt(d);
|
|
1424
1424
|
const L = O([]);
|
|
@@ -1451,7 +1451,7 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1451
1451
|
}), ht(() => {
|
|
1452
1452
|
_();
|
|
1453
1453
|
});
|
|
1454
|
-
const { renderProp: M } =
|
|
1454
|
+
const { renderProp: M } = Qt(g, a, r), { renderUiDummy: N } = Zt(d), { renderUiStrInput: Z } = It(d), { renderUiNumInput: Pe } = nn(d), { renderUiSwitch: tt } = sn(d), { renderUiSelect: nt } = an(d), { renderUiColorPicker: lt } = Sn(d), { renderUiJsonEditor: ot } = bn(d), { renderUiMultiTypes: st } = Pn(d), { renderUiCompSelect: it } = kn(d), ye = (p, c, y, v, V, x) => (p = He(p), V !== void 0 ? (p.push(V), x && p.push(c.key)) : p.push(c.key), c.ui ? c.array && v ? at(p, c, y, v, V, x) : ct(p, c, y, V, x) : c.array ? rt(p, c, y, v, V, x) : ut(
|
|
1455
1455
|
p,
|
|
1456
1456
|
c,
|
|
1457
1457
|
y,
|
|
@@ -1476,8 +1476,8 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1476
1476
|
onCollapse: (U) => {
|
|
1477
1477
|
v.collapse = U;
|
|
1478
1478
|
},
|
|
1479
|
-
onMenu: (U,
|
|
1480
|
-
ae.emit("propTreeMenu", { x: U, y:
|
|
1479
|
+
onMenu: (U, A) => {
|
|
1480
|
+
ae.emit("propTreeMenu", { x: U, y: A, keys: p });
|
|
1481
1481
|
},
|
|
1482
1482
|
onCreate: () => {
|
|
1483
1483
|
D.push({}), d(p, D);
|
|
@@ -1491,29 +1491,29 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1491
1491
|
},
|
|
1492
1492
|
(() => {
|
|
1493
1493
|
const U = [];
|
|
1494
|
-
for (let
|
|
1494
|
+
for (let A = 0; A < D.length; A++) {
|
|
1495
1495
|
if (!Me(v.children)) {
|
|
1496
1496
|
console.assert(!1);
|
|
1497
1497
|
break;
|
|
1498
1498
|
}
|
|
1499
|
-
v.children[
|
|
1499
|
+
v.children[A] || v.children.push({
|
|
1500
1500
|
collapse: !0,
|
|
1501
1501
|
children: {}
|
|
1502
1502
|
});
|
|
1503
|
-
const ge = [...p,
|
|
1504
|
-
let Le = `[${
|
|
1505
|
-
v.children[
|
|
1503
|
+
const ge = [...p, A], he = v.children[A];
|
|
1504
|
+
let Le = `[${A + 1}]`;
|
|
1505
|
+
v.children[A].collapse && ce(g.value, ge) && (Le += " *");
|
|
1506
1506
|
const ft = h(ke, {
|
|
1507
1507
|
title: Le,
|
|
1508
|
-
collapse: v.children[
|
|
1508
|
+
collapse: v.children[A].collapse,
|
|
1509
1509
|
hasDelete: !0,
|
|
1510
|
-
index:
|
|
1510
|
+
index: A,
|
|
1511
1511
|
onCollapse: (j) => {
|
|
1512
1512
|
if (!Me(v.children)) {
|
|
1513
1513
|
console.assert(!1);
|
|
1514
1514
|
return;
|
|
1515
1515
|
}
|
|
1516
|
-
v.children[
|
|
1516
|
+
v.children[A].collapse = j;
|
|
1517
1517
|
},
|
|
1518
1518
|
onMenu: (j, se) => {
|
|
1519
1519
|
ae.emit("propTreeMenu", { x: j, y: se, keys: ge });
|
|
@@ -1548,16 +1548,16 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1548
1548
|
const vt = ye(
|
|
1549
1549
|
p,
|
|
1550
1550
|
se,
|
|
1551
|
-
D[
|
|
1551
|
+
D[A],
|
|
1552
1552
|
he.children[se.key],
|
|
1553
|
-
|
|
1553
|
+
A,
|
|
1554
1554
|
!0
|
|
1555
1555
|
);
|
|
1556
1556
|
j.push(vt);
|
|
1557
1557
|
}), j;
|
|
1558
1558
|
})()
|
|
1559
1559
|
);
|
|
1560
|
-
v.children[
|
|
1560
|
+
v.children[A].collapse || U.push(mt);
|
|
1561
1561
|
}
|
|
1562
1562
|
return U;
|
|
1563
1563
|
})()
|
|
@@ -1614,13 +1614,13 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1614
1614
|
collapse: !0,
|
|
1615
1615
|
children: !U.ui && U.array ? [] : {}
|
|
1616
1616
|
});
|
|
1617
|
-
const
|
|
1617
|
+
const A = ye(
|
|
1618
1618
|
p,
|
|
1619
1619
|
U,
|
|
1620
1620
|
(typeof y[c.key] != "object" && (y[c.key] = {}, d(p, y[c.key])), y[c.key]),
|
|
1621
1621
|
v.children[U.key]
|
|
1622
1622
|
);
|
|
1623
|
-
X.push(
|
|
1623
|
+
X.push(A);
|
|
1624
1624
|
}), X;
|
|
1625
1625
|
})()
|
|
1626
1626
|
);
|
|
@@ -1654,8 +1654,8 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1654
1654
|
onCollapse: (U) => {
|
|
1655
1655
|
v.collapse = U;
|
|
1656
1656
|
},
|
|
1657
|
-
onMenu: (U,
|
|
1658
|
-
ae.emit("propTreeMenu", { x: U, y:
|
|
1657
|
+
onMenu: (U, A) => {
|
|
1658
|
+
ae.emit("propTreeMenu", { x: U, y: A, keys: p });
|
|
1659
1659
|
},
|
|
1660
1660
|
onCreate: () => {
|
|
1661
1661
|
D.push(q(c, !0)), d(p, D);
|
|
@@ -1669,8 +1669,8 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1669
1669
|
},
|
|
1670
1670
|
(() => {
|
|
1671
1671
|
const U = [];
|
|
1672
|
-
for (let
|
|
1673
|
-
const ge = ye(p, c, D, void 0,
|
|
1672
|
+
for (let A = 0; A < D.length; A++) {
|
|
1673
|
+
const ge = ye(p, c, D, void 0, A, !1);
|
|
1674
1674
|
U.push(ge);
|
|
1675
1675
|
}
|
|
1676
1676
|
return U;
|
|
@@ -1692,7 +1692,7 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1692
1692
|
if (!c.ui)
|
|
1693
1693
|
return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
|
|
1694
1694
|
let x;
|
|
1695
|
-
return c.ui === "dummy" ? x = N(p, c, y, v, V) : c.ui === "strInput" ? x = Z(p, c, y, v, V) : c.ui === "numInput" ? x = Pe(p, c, y, v, V) : c.ui === "switch" ? x = tt(p, c, y, v, V) : c.ui === "select" ? x =
|
|
1695
|
+
return c.ui === "dummy" ? x = N(p, c, y, v, V) : c.ui === "strInput" ? x = Z(p, c, y, v, V) : c.ui === "numInput" ? x = Pe(p, c, y, v, V) : c.ui === "switch" ? x = tt(p, c, y, v, V) : c.ui === "select" ? x = nt(p, c, y, v, V) : c.ui === "colorPicker" ? x = lt(p, c, y, v, V) : c.ui === "jsonEditor" ? x = ot(p, c, y, v, V) : c.ui === "multiTypes" ? x = st(p, c, y, v, V) : c.ui === "compSelect" ? x = it(p, c, y, v, V) : console.assert(!1, "renderLeafScalar not implemented"), x ? M(p, c, x) : h("div");
|
|
1696
1696
|
}, dt = () => h(
|
|
1697
1697
|
"div",
|
|
1698
1698
|
{
|
|
@@ -1703,15 +1703,15 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1703
1703
|
},
|
|
1704
1704
|
(() => {
|
|
1705
1705
|
const p = [];
|
|
1706
|
-
if (
|
|
1707
|
-
u[
|
|
1708
|
-
const c = u[
|
|
1709
|
-
|
|
1706
|
+
if (n.unique && n.config.length > 0 && n.object) {
|
|
1707
|
+
u[n.unique] || (u[n.unique] = {});
|
|
1708
|
+
const c = u[n.unique];
|
|
1709
|
+
n.config.forEach((y) => {
|
|
1710
1710
|
c[y.key] || (c[y.key] = {
|
|
1711
1711
|
collapse: !0,
|
|
1712
1712
|
children: !y.ui && y.array ? [] : {}
|
|
1713
1713
|
});
|
|
1714
|
-
const v = ye([], y,
|
|
1714
|
+
const v = ye([], y, n.object, c[y.key]);
|
|
1715
1715
|
p.push(v);
|
|
1716
1716
|
});
|
|
1717
1717
|
}
|
|
@@ -1719,21 +1719,21 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1719
1719
|
})()
|
|
1720
1720
|
);
|
|
1721
1721
|
return (p, c) => (S(), H(Ve, null, [
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
config:
|
|
1725
|
-
object:
|
|
1722
|
+
b(dt),
|
|
1723
|
+
b(Gt, {
|
|
1724
|
+
config: n.config,
|
|
1725
|
+
object: n.object,
|
|
1726
1726
|
"prop-states": g.value
|
|
1727
1727
|
}, null, 8, ["config", "object", "prop-states"])
|
|
1728
1728
|
], 64));
|
|
1729
1729
|
}
|
|
1730
|
-
}),
|
|
1731
|
-
o.component("XPropTree",
|
|
1732
|
-
},
|
|
1730
|
+
}), Tn = (o) => {
|
|
1731
|
+
o.component("XPropTree", An);
|
|
1732
|
+
}, Ln = (o, s, t) => {
|
|
1733
1733
|
const e = o[s];
|
|
1734
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((
|
|
1734
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, l) => {
|
|
1735
1735
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1736
|
-
|
|
1736
|
+
l.bind(
|
|
1737
1737
|
null,
|
|
1738
1738
|
new Error(
|
|
1739
1739
|
"Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -1742,11 +1742,11 @@ const Dl = /* @__PURE__ */ J({
|
|
|
1742
1742
|
);
|
|
1743
1743
|
});
|
|
1744
1744
|
};
|
|
1745
|
-
async function
|
|
1746
|
-
return (await
|
|
1745
|
+
async function Xn(o) {
|
|
1746
|
+
return (await Ln(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${o}/index.ts`, 4)).default;
|
|
1747
1747
|
}
|
|
1748
|
-
const
|
|
1748
|
+
const Fn = { install: Tn };
|
|
1749
1749
|
export {
|
|
1750
|
-
|
|
1751
|
-
|
|
1750
|
+
Fn as default,
|
|
1751
|
+
Xn as loadLocaleMessagePropTree
|
|
1752
1752
|
};
|