x-prop-tree 0.6.30 → 0.6.32
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 +429 -431
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 A, createElementBlock as H, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as Q, resolveDirective 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 A, createElementBlock as H, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as Q, resolveDirective as ne, 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 Ae, 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
|
-
import { useViewStack as Se, useColor as ie, eventBus as ae, useSystem as Je, injectDark as
|
|
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";
|
|
5
5
|
import { getPropDefault as q, pkgs as Ye, parsePixelStr as Ut, parsePercentStr as $t } from "x-runtime-lib";
|
|
6
6
|
import { globalState as xt } from "x-state-lib";
|
|
7
7
|
import { useDisplay as Pt } from "vuetify";
|
|
8
8
|
import { XBlockly as Mt } from "x-block-lib";
|
|
9
|
-
const
|
|
9
|
+
const _e = (o, s) => {
|
|
10
10
|
let t = { key: "", name: "", children: o };
|
|
11
11
|
return s.forEach((e) => {
|
|
12
12
|
if (typeof e != "number") {
|
|
@@ -18,7 +18,7 @@ const he = (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((l) => l.key === e);
|
|
22
22
|
}
|
|
23
23
|
}), t;
|
|
24
24
|
}, ve = (o, s) => {
|
|
@@ -31,15 +31,15 @@ const he = (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, l) => {
|
|
35
|
+
if (e.ui !== l.ui || e.array !== l.array)
|
|
36
36
|
return !1;
|
|
37
|
-
if (e.ui ||
|
|
37
|
+
if (e.ui || l.ui)
|
|
38
38
|
return !0;
|
|
39
|
-
if (e.children.length !==
|
|
39
|
+
if (e.children.length !== l.children.length)
|
|
40
40
|
return !1;
|
|
41
|
-
for (let
|
|
42
|
-
if (!t(e.children[
|
|
41
|
+
for (let n = 0; n < e.children.length; n++)
|
|
42
|
+
if (!t(e.children[n], l.children[n]))
|
|
43
43
|
return !1;
|
|
44
44
|
return !0;
|
|
45
45
|
};
|
|
@@ -47,31 +47,31 @@ const he = (o, s) => {
|
|
|
47
47
|
}, be = (o) => !(o instanceof Array), $e = (o) => o instanceof Array, Dt = [
|
|
48
48
|
["basic", "id"],
|
|
49
49
|
["basic", "name"]
|
|
50
|
-
], At = (o) => Dt.find((s) => Ue(o, s)), xe = (o, s, t, e,
|
|
50
|
+
], At = (o) => Dt.find((s) => Ue(o, s)), xe = (o, s, t, e, l, n, i) => (o = He(o), n !== void 0 ? (o.push(n), i && o.push(s.key)) : o.push(s.key), At(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
|
-
n,
|
|
56
55
|
l,
|
|
56
|
+
n,
|
|
57
57
|
i
|
|
58
|
-
) : Nt(s, t, e,
|
|
58
|
+
) : Nt(s, t, e, n, i) : s.array ? bt(
|
|
59
59
|
o,
|
|
60
60
|
s,
|
|
61
61
|
t,
|
|
62
62
|
e,
|
|
63
|
-
n,
|
|
64
63
|
l,
|
|
64
|
+
n,
|
|
65
65
|
i
|
|
66
66
|
) : Tt(
|
|
67
67
|
o,
|
|
68
68
|
s,
|
|
69
69
|
t,
|
|
70
70
|
e,
|
|
71
|
-
n,
|
|
72
71
|
l,
|
|
72
|
+
n,
|
|
73
73
|
i
|
|
74
|
-
)), bt = (o, s, t, e,
|
|
74
|
+
)), bt = (o, s, t, e, l, n, 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,34 +79,34 @@ const he = (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
|
-
|
|
83
|
-
for (let
|
|
82
|
+
n !== void 0 && !i ? (t[n] instanceof Array || (t[n] = q(s), l == null || l(o, t[n])), a = t[n]) : (t[s.key] instanceof Array || (t[s.key] = q(s), l == null || l(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
83
|
+
for (let r = 0; r < a.length; r++) {
|
|
84
84
|
e.children.push({
|
|
85
85
|
change: !1,
|
|
86
86
|
children: {}
|
|
87
87
|
});
|
|
88
|
-
const
|
|
88
|
+
const u = e.children[r];
|
|
89
89
|
s.children.forEach((g) => {
|
|
90
|
-
if (!
|
|
90
|
+
if (!u.children || !be(u.children)) {
|
|
91
91
|
console.assert(!1);
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
u.children[g.key] = {
|
|
95
95
|
change: !1,
|
|
96
96
|
children: g.array ? [] : {}
|
|
97
97
|
}, xe(
|
|
98
98
|
o,
|
|
99
99
|
g,
|
|
100
|
-
a[
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
a[r],
|
|
101
|
+
u.children[g.key],
|
|
102
|
+
l,
|
|
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, l, n, i) => {
|
|
110
110
|
if (s.ui)
|
|
111
111
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
112
112
|
if (s.array)
|
|
@@ -114,16 +114,16 @@ const he = (o, s) => {
|
|
|
114
114
|
if (!e.children || !be(e.children))
|
|
115
115
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
116
116
|
let a;
|
|
117
|
-
|
|
118
|
-
for (let
|
|
119
|
-
const
|
|
120
|
-
e.children[
|
|
117
|
+
n !== void 0 && !i ? (t[n] || (t[n] = {}), a = t[n]) : (t[s.key] || (t[s.key] = {}), a = t[s.key]), e.change = !1;
|
|
118
|
+
for (let r = 0; r < s.children.length; r++) {
|
|
119
|
+
const u = s.children[r];
|
|
120
|
+
e.children[u.key] = {
|
|
121
121
|
change: !1,
|
|
122
|
-
children:
|
|
123
|
-
}, xe(o,
|
|
122
|
+
children: u.array ? [] : {}
|
|
123
|
+
}, xe(o, u, a, e.children[u.key], l) && (e.change = !0);
|
|
124
124
|
}
|
|
125
125
|
return e.change;
|
|
126
|
-
}, Lt = (o, s, t, e,
|
|
126
|
+
}, Lt = (o, s, t, e, l, n, 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 he = (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
|
-
|
|
135
|
-
for (let
|
|
136
|
-
e.children[
|
|
134
|
+
n !== void 0 && !i ? (t[n] instanceof Array || (t[n] = q(s), l == null || l(o, t[n])), a = t[n]) : (t[s.key] instanceof Array || (t[s.key] = q(s), l == null || l(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
135
|
+
for (let r = 0; r < a.length; r++)
|
|
136
|
+
e.children[r] = {
|
|
137
137
|
change: !1,
|
|
138
138
|
children: {}
|
|
139
|
-
}, xe(o, s, a, e.children[
|
|
139
|
+
}, xe(o, s, a, e.children[r], l, 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, l) => {
|
|
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 n;
|
|
145
|
+
return e !== void 0 && !l ? n = s[e] : n = s[o.key], t.change = !Ue(n, 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
|
-
n
|
|
151
|
+
const l = {};
|
|
152
|
+
s.forEach((n) => {
|
|
153
|
+
l[n.key] = {
|
|
154
154
|
change: !1,
|
|
155
|
-
children:
|
|
156
|
-
}, xe([],
|
|
157
|
-
}), o.value =
|
|
155
|
+
children: n.array ? [] : {}
|
|
156
|
+
}, xe([], n, t, l[n.key], e);
|
|
157
|
+
}), o.value = l;
|
|
158
158
|
}, ce = (o, s) => {
|
|
159
159
|
let t = { change: !1, children: o };
|
|
160
160
|
return s.forEach((e) => {
|
|
@@ -204,83 +204,81 @@ 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
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
if (h.ui) {
|
|
214
|
-
const M = ve(e.value, u.value.slice(0, -1));
|
|
207
|
+
const { t: s } = te(), t = Bt(), e = Rt(), l = Ht(), n = 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(l.value, r.value)), P = () => {
|
|
209
|
+
const _ = _e(t.value, r.value);
|
|
210
|
+
if (_)
|
|
211
|
+
if (_.ui) {
|
|
212
|
+
const M = ve(e.value, r.value.slice(0, -1));
|
|
215
213
|
if (!M)
|
|
216
214
|
return;
|
|
217
|
-
M[
|
|
218
|
-
} else if (
|
|
219
|
-
const M =
|
|
215
|
+
M[r.value[r.value.length - 1]] = q(_), n(r.value, M[r.value[r.value.length - 1]]);
|
|
216
|
+
} else if (_.array) {
|
|
217
|
+
const M = r.value[r.value.length - 1];
|
|
220
218
|
if (M === void 0) {
|
|
221
219
|
console.assert(!1, "invalid last key");
|
|
222
220
|
return;
|
|
223
221
|
}
|
|
224
222
|
if (typeof M == "string") {
|
|
225
|
-
const N = ve(e.value,
|
|
223
|
+
const N = ve(e.value, r.value.slice(0, -1));
|
|
226
224
|
if (!N)
|
|
227
225
|
return;
|
|
228
|
-
N[
|
|
226
|
+
N[r.value[r.value.length - 1]] = q(_), n(r.value, N[r.value[r.value.length - 1]]);
|
|
229
227
|
} else {
|
|
230
|
-
const N = ve(e.value,
|
|
228
|
+
const N = ve(e.value, r.value);
|
|
231
229
|
if (!N)
|
|
232
230
|
return;
|
|
233
|
-
|
|
234
|
-
N[Z.key] = q(
|
|
231
|
+
_.children.forEach((Z) => {
|
|
232
|
+
N[Z.key] = q(_), n([...r.value, Z.key], N[Z.key]);
|
|
235
233
|
});
|
|
236
234
|
}
|
|
237
235
|
} else {
|
|
238
|
-
const M = ve(e.value,
|
|
236
|
+
const M = ve(e.value, r.value);
|
|
239
237
|
if (!M)
|
|
240
238
|
return;
|
|
241
|
-
|
|
242
|
-
M[N.key] = q(
|
|
239
|
+
_.children.forEach((N) => {
|
|
240
|
+
M[N.key] = q(_), n([...r.value, N.key], M[N.key]);
|
|
243
241
|
});
|
|
244
242
|
}
|
|
245
243
|
};
|
|
246
|
-
|
|
244
|
+
T() && w.push({
|
|
247
245
|
title: s("x-prop-tree.reset"),
|
|
248
246
|
func: P
|
|
249
247
|
});
|
|
250
248
|
}, d = (w) => {
|
|
251
|
-
const
|
|
252
|
-
const P =
|
|
253
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: P, object:
|
|
249
|
+
const T = () => {
|
|
250
|
+
const P = _e(t.value, r.value), _ = ve(e.value, r.value);
|
|
251
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: P, object: _ }));
|
|
254
252
|
};
|
|
255
253
|
w.push({
|
|
256
254
|
title: s("x-prop-tree.copy"),
|
|
257
|
-
func:
|
|
255
|
+
func: T
|
|
258
256
|
});
|
|
259
257
|
}, f = (w) => {
|
|
260
|
-
const
|
|
261
|
-
const
|
|
262
|
-
if (!
|
|
258
|
+
const T = () => {
|
|
259
|
+
const _ = localStorage.getItem("propTreeCopy");
|
|
260
|
+
if (!_)
|
|
263
261
|
return !1;
|
|
264
262
|
try {
|
|
265
|
-
const { prop: M } = JSON.parse(
|
|
263
|
+
const { prop: M } = JSON.parse(_), N = _e(t.value, r.value);
|
|
266
264
|
return wt(M, N);
|
|
267
265
|
} catch (M) {
|
|
268
266
|
console.error(M);
|
|
269
267
|
}
|
|
270
268
|
return !1;
|
|
271
269
|
}, P = () => {
|
|
272
|
-
if (!
|
|
270
|
+
if (!T())
|
|
273
271
|
return;
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
272
|
+
const _ = localStorage.getItem("propTreeCopy");
|
|
273
|
+
if (_)
|
|
276
274
|
try {
|
|
277
|
-
const { object: M } = JSON.parse(
|
|
275
|
+
const { object: M } = JSON.parse(_), N = _e(t.value, r.value);
|
|
278
276
|
console.log(M, N);
|
|
279
277
|
} catch (M) {
|
|
280
278
|
console.error(M);
|
|
281
279
|
}
|
|
282
280
|
};
|
|
283
|
-
|
|
281
|
+
T() && w.push({
|
|
284
282
|
title: s("x-prop-tree.paste"),
|
|
285
283
|
func: P
|
|
286
284
|
});
|
|
@@ -288,21 +286,21 @@ const Gt = /* @__PURE__ */ J({
|
|
|
288
286
|
const w = [];
|
|
289
287
|
return g(w), d(w), f(w), w;
|
|
290
288
|
}), k = (w) => {
|
|
291
|
-
i.value = w.x, a.value = w.y,
|
|
289
|
+
i.value = w.x, a.value = w.y, r.value = w.keys;
|
|
292
290
|
}, { open: L } = Se("propTreeMenu", k);
|
|
293
|
-
return (w,
|
|
294
|
-
const P = $("v-list-item-title"),
|
|
291
|
+
return (w, T) => {
|
|
292
|
+
const P = $("v-list-item-title"), _ = $("v-list-item"), M = $("v-list"), N = $("v-menu");
|
|
295
293
|
return S(), B(N, {
|
|
296
294
|
modelValue: C(L),
|
|
297
|
-
"onUpdate:modelValue":
|
|
295
|
+
"onUpdate:modelValue": T[0] || (T[0] = (Z) => pe(L) ? L.value = Z : null),
|
|
298
296
|
"location-strategy": "connected",
|
|
299
|
-
target:
|
|
297
|
+
target: u.value,
|
|
300
298
|
scrim: "transparent"
|
|
301
299
|
}, {
|
|
302
300
|
default: R(() => [
|
|
303
301
|
A(M, null, {
|
|
304
302
|
default: R(() => [
|
|
305
|
-
(S(!0), H(Ve, null, Be(m.value, (Z, Pe) => (S(), B(
|
|
303
|
+
(S(!0), H(Ve, null, Be(m.value, (Z, Pe) => (S(), B(_, {
|
|
306
304
|
key: Pe,
|
|
307
305
|
link: "",
|
|
308
306
|
onClick: Z.func
|
|
@@ -336,47 +334,47 @@ const Gt = /* @__PURE__ */ J({
|
|
|
336
334
|
},
|
|
337
335
|
emits: ["collapse", "menu", "create", "delete"],
|
|
338
336
|
setup(o, { emit: s }) {
|
|
339
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
340
|
-
background:
|
|
337
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), l = s, n = O(!1), i = K(() => ({
|
|
338
|
+
background: n.value ? e.value : t.value,
|
|
341
339
|
height: "36px",
|
|
342
340
|
marginBottom: "1px",
|
|
343
341
|
userSelect: "none"
|
|
344
342
|
})), a = () => {
|
|
345
|
-
|
|
346
|
-
},
|
|
347
|
-
|
|
343
|
+
l("collapse", !o.collapse);
|
|
344
|
+
}, r = (u) => {
|
|
345
|
+
l("menu", u.clientX, u.clientY);
|
|
348
346
|
};
|
|
349
|
-
return (
|
|
350
|
-
const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k =
|
|
347
|
+
return (u, g) => {
|
|
348
|
+
const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k = ne("ripple");
|
|
351
349
|
return ee((S(), H("div", {
|
|
352
350
|
class: "d-flex align-center cursor-pointer",
|
|
353
351
|
style: I(i.value),
|
|
354
352
|
onClick: a,
|
|
355
|
-
onContextmenu: z(
|
|
356
|
-
onMouseover: g[2] || (g[2] = (L) =>
|
|
357
|
-
onMouseout: g[3] || (g[3] = (L) =>
|
|
353
|
+
onContextmenu: z(r, ["self", "prevent"]),
|
|
354
|
+
onMouseover: g[2] || (g[2] = (L) => n.value = !0),
|
|
355
|
+
onMouseout: g[3] || (g[3] = (L) => n.value = !1)
|
|
358
356
|
}, [
|
|
359
357
|
A(d, {
|
|
360
358
|
class: "mr-1",
|
|
361
|
-
icon:
|
|
359
|
+
icon: u.collapse ? C(Xe) : C(Fe)
|
|
362
360
|
}, null, 8, ["icon"]),
|
|
363
|
-
F("span", null, Q(
|
|
361
|
+
F("span", null, Q(u.title), 1),
|
|
364
362
|
A(f),
|
|
365
|
-
|
|
363
|
+
u.hasCreate ? (S(), B(m, {
|
|
366
364
|
key: 0,
|
|
367
365
|
class: "mx-3",
|
|
368
366
|
variant: "text",
|
|
369
367
|
density: "compact",
|
|
370
368
|
icon: C(Vt),
|
|
371
|
-
onClick: g[0] || (g[0] = z((L) =>
|
|
369
|
+
onClick: g[0] || (g[0] = z((L) => l("create"), ["stop"]))
|
|
372
370
|
}, null, 8, ["icon"])) : Y("", !0),
|
|
373
|
-
|
|
371
|
+
u.hasDelete ? (S(), B(m, {
|
|
374
372
|
key: 1,
|
|
375
373
|
class: "mx-3",
|
|
376
374
|
variant: "text",
|
|
377
375
|
density: "compact",
|
|
378
376
|
icon: C(re),
|
|
379
|
-
onClick: g[1] || (g[1] = z((L) =>
|
|
377
|
+
onClick: g[1] || (g[1] = z((L) => l("delete", u.index), ["stop"]))
|
|
380
378
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
381
379
|
], 36)), [
|
|
382
380
|
[k]
|
|
@@ -390,25 +388,25 @@ const Gt = /* @__PURE__ */ J({
|
|
|
390
388
|
},
|
|
391
389
|
emits: ["menu"],
|
|
392
390
|
setup(o, { emit: s }) {
|
|
393
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
394
|
-
background:
|
|
391
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), l = s, n = O(!1), i = K(() => ({
|
|
392
|
+
background: n.value ? e.value : t.value,
|
|
395
393
|
minHeight: o.minHeight,
|
|
396
394
|
paddingRight: "4px",
|
|
397
395
|
marginBottom: "1px",
|
|
398
396
|
userSelect: "none"
|
|
399
|
-
})), a = (
|
|
400
|
-
|
|
397
|
+
})), a = (r) => {
|
|
398
|
+
l("menu", r.clientX, r.clientY);
|
|
401
399
|
};
|
|
402
|
-
return (
|
|
403
|
-
const g =
|
|
400
|
+
return (r, u) => {
|
|
401
|
+
const g = ne("ripple");
|
|
404
402
|
return ee((S(), H("div", {
|
|
405
403
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
406
404
|
style: I(i.value),
|
|
407
405
|
onContextmenu: z(a, ["self", "prevent"]),
|
|
408
|
-
onMouseover:
|
|
409
|
-
onMouseout:
|
|
406
|
+
onMouseover: u[0] || (u[0] = (d) => n.value = !0),
|
|
407
|
+
onMouseout: u[1] || (u[1] = (d) => n.value = !1)
|
|
410
408
|
}, [
|
|
411
|
-
pt(
|
|
409
|
+
pt(r.$slots, "default")
|
|
412
410
|
], 36)), [
|
|
413
411
|
[g]
|
|
414
412
|
]);
|
|
@@ -417,38 +415,38 @@ const Gt = /* @__PURE__ */ J({
|
|
|
417
415
|
});
|
|
418
416
|
function Wt(o, s, t) {
|
|
419
417
|
const { t: e } = te();
|
|
420
|
-
return { renderProp: (
|
|
421
|
-
const
|
|
422
|
-
let g = typeof
|
|
423
|
-
return ce(o.value,
|
|
418
|
+
return { renderProp: (n, i, a) => {
|
|
419
|
+
const r = n[n.length - 1];
|
|
420
|
+
let g = typeof r == "number" ? `[${r + 1}]` : e(i.name);
|
|
421
|
+
return ce(o.value, n) && (g += " *"), h(
|
|
424
422
|
Yt,
|
|
425
423
|
{
|
|
426
424
|
minHeight: s.value,
|
|
427
425
|
onMenu: (d, f) => {
|
|
428
|
-
ae.emit("propTreeMenu", { x: d, y: f, keys:
|
|
426
|
+
ae.emit("propTreeMenu", { x: d, y: f, keys: n });
|
|
429
427
|
}
|
|
430
428
|
},
|
|
431
429
|
() => [
|
|
432
|
-
|
|
433
|
-
|
|
430
|
+
h("span", { class: "ml-1", innerHTML: g }),
|
|
431
|
+
h("div", { style: { width: t.value } }, a)
|
|
434
432
|
]
|
|
435
433
|
);
|
|
436
434
|
} };
|
|
437
435
|
}
|
|
438
|
-
const
|
|
439
|
-
if (
|
|
440
|
-
if (
|
|
436
|
+
const le = (o, s, t, e, l, n) => {
|
|
437
|
+
if (l !== void 0)
|
|
438
|
+
if (n) {
|
|
441
439
|
if (t[s.key] === void 0) {
|
|
442
440
|
const i = q(s);
|
|
443
441
|
i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
|
|
444
442
|
}
|
|
445
443
|
return t[s.key];
|
|
446
444
|
} else {
|
|
447
|
-
if (t[
|
|
445
|
+
if (t[l] === void 0) {
|
|
448
446
|
const i = q(s, !0);
|
|
449
|
-
i !== void 0 && (t[
|
|
447
|
+
i !== void 0 && (t[l] = i, e(o, t[l]));
|
|
450
448
|
}
|
|
451
|
-
return t[
|
|
449
|
+
return t[l];
|
|
452
450
|
}
|
|
453
451
|
else {
|
|
454
452
|
if (t[s.key] === void 0) {
|
|
@@ -457,21 +455,21 @@ const ne = (o, s, t, e, n, l) => {
|
|
|
457
455
|
}
|
|
458
456
|
return t[s.key];
|
|
459
457
|
}
|
|
460
|
-
}, oe = (o, s, t, e,
|
|
461
|
-
if (
|
|
462
|
-
i ? e !== t[s.key] && (t[s.key] = e,
|
|
458
|
+
}, oe = (o, s, t, e, l, n, i) => {
|
|
459
|
+
if (n !== void 0)
|
|
460
|
+
i ? e !== t[s.key] && (t[s.key] = e, l(o, t[s.key])) : e !== t[n] && (t[n] = e, l(o, t[n]));
|
|
463
461
|
else {
|
|
464
462
|
let a = e;
|
|
465
|
-
(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, l(o, t[s.key]));
|
|
466
464
|
}
|
|
467
465
|
};
|
|
468
466
|
function Qt(o) {
|
|
469
|
-
return { renderUiDummy: (t, e,
|
|
467
|
+
return { renderUiDummy: (t, e, l, n, i) => {
|
|
470
468
|
if (e.ui !== "dummy") {
|
|
471
469
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
472
470
|
return;
|
|
473
471
|
}
|
|
474
|
-
|
|
472
|
+
le(t, e, l, o, n, i);
|
|
475
473
|
} };
|
|
476
474
|
}
|
|
477
475
|
const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ J({
|
|
@@ -486,65 +484,65 @@ const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PU
|
|
|
486
484
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
487
485
|
setup(o, { emit: s }) {
|
|
488
486
|
const t = G(o, "modelValue"), e = s;
|
|
489
|
-
return (
|
|
490
|
-
const i = $("v-text-field"), a = $("v-btn"),
|
|
487
|
+
return (l, n) => {
|
|
488
|
+
const i = $("v-text-field"), a = $("v-btn"), r = ne("ripple");
|
|
491
489
|
return S(), H("div", Zt, [
|
|
492
490
|
ee(A(i, {
|
|
493
491
|
modelValue: t.value,
|
|
494
|
-
"onUpdate:modelValue":
|
|
492
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u),
|
|
495
493
|
density: "compact",
|
|
496
494
|
"hide-details": "",
|
|
497
495
|
"single-line": "",
|
|
498
|
-
readonly:
|
|
496
|
+
readonly: l.readonly
|
|
499
497
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
500
498
|
[
|
|
501
|
-
|
|
499
|
+
r,
|
|
502
500
|
void 0,
|
|
503
501
|
void 0,
|
|
504
502
|
{ stop: !0 }
|
|
505
503
|
]
|
|
506
504
|
]),
|
|
507
|
-
|
|
505
|
+
l.hasDelete ? (S(), B(a, {
|
|
508
506
|
key: 0,
|
|
509
507
|
class: "mx-2",
|
|
510
508
|
variant: "text",
|
|
511
509
|
density: "compact",
|
|
512
510
|
icon: C(re),
|
|
513
|
-
onClick:
|
|
511
|
+
onClick: n[1] || (n[1] = z((u) => e("delete"), ["stop"]))
|
|
514
512
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
515
513
|
]);
|
|
516
514
|
};
|
|
517
515
|
}
|
|
518
516
|
});
|
|
519
517
|
function jt(o) {
|
|
520
|
-
return { renderUiStrInput: (t, e,
|
|
521
|
-
modelValue: e.static ? e.value :
|
|
518
|
+
return { renderUiStrInput: (t, e, l, n, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Et, {
|
|
519
|
+
modelValue: e.static ? e.value : le(
|
|
522
520
|
t,
|
|
523
521
|
e,
|
|
524
|
-
n,
|
|
525
|
-
o,
|
|
526
522
|
l,
|
|
523
|
+
o,
|
|
524
|
+
n,
|
|
527
525
|
i
|
|
528
526
|
),
|
|
529
527
|
"onUpdate:modelValue": (a) => {
|
|
530
528
|
e.static || oe(
|
|
531
529
|
t,
|
|
532
530
|
e,
|
|
533
|
-
|
|
531
|
+
l,
|
|
534
532
|
a,
|
|
535
533
|
o,
|
|
536
|
-
|
|
534
|
+
n,
|
|
537
535
|
i
|
|
538
536
|
);
|
|
539
537
|
},
|
|
540
|
-
hasDelete:
|
|
538
|
+
hasDelete: n !== void 0 && !i,
|
|
541
539
|
onDelete: () => {
|
|
542
|
-
|
|
540
|
+
n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
|
|
543
541
|
},
|
|
544
542
|
readonly: e.static || e.readonly
|
|
545
543
|
}) };
|
|
546
544
|
}
|
|
547
|
-
const It = { class: "d-flex justify-space-between align-center" },
|
|
545
|
+
const It = { class: "d-flex justify-space-between align-center" }, el = /* @__PURE__ */ J({
|
|
548
546
|
__name: "numInput",
|
|
549
547
|
props: /* @__PURE__ */ W({
|
|
550
548
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -561,65 +559,65 @@ const It = { class: "d-flex justify-space-between align-center" }, en = /* @__PU
|
|
|
561
559
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
562
560
|
setup(o, { emit: s }) {
|
|
563
561
|
const t = G(o, "modelValue"), e = s;
|
|
564
|
-
return (
|
|
565
|
-
const i = $("v-number-input"), a = $("v-btn"),
|
|
562
|
+
return (l, n) => {
|
|
563
|
+
const i = $("v-number-input"), a = $("v-btn"), r = ne("ripple");
|
|
566
564
|
return S(), H("div", It, [
|
|
567
565
|
ee(A(i, {
|
|
568
566
|
modelValue: t.value,
|
|
569
|
-
"onUpdate:modelValue":
|
|
567
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u),
|
|
570
568
|
density: "compact",
|
|
571
569
|
"control-variant": "stacked",
|
|
572
|
-
precision:
|
|
573
|
-
min:
|
|
574
|
-
max:
|
|
575
|
-
step:
|
|
570
|
+
precision: l.precision,
|
|
571
|
+
min: l.min,
|
|
572
|
+
max: l.max,
|
|
573
|
+
step: l.step,
|
|
576
574
|
"hide-details": "",
|
|
577
575
|
"single-line": "",
|
|
578
|
-
readonly:
|
|
576
|
+
readonly: l.readonly
|
|
579
577
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
580
578
|
[
|
|
581
|
-
|
|
579
|
+
r,
|
|
582
580
|
void 0,
|
|
583
581
|
void 0,
|
|
584
582
|
{ stop: !0 }
|
|
585
583
|
]
|
|
586
584
|
]),
|
|
587
|
-
|
|
585
|
+
l.hasDelete ? (S(), B(a, {
|
|
588
586
|
key: 0,
|
|
589
587
|
class: "mx-2",
|
|
590
588
|
variant: "text",
|
|
591
589
|
density: "compact",
|
|
592
590
|
icon: C(re),
|
|
593
|
-
onClick:
|
|
591
|
+
onClick: n[1] || (n[1] = z((u) => e("delete"), ["stop"]))
|
|
594
592
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
595
593
|
]);
|
|
596
594
|
};
|
|
597
595
|
}
|
|
598
596
|
});
|
|
599
|
-
function
|
|
600
|
-
return { renderUiNumInput: (t, e,
|
|
601
|
-
modelValue:
|
|
597
|
+
function tl(o) {
|
|
598
|
+
return { renderUiNumInput: (t, e, l, n, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(el, {
|
|
599
|
+
modelValue: le(
|
|
602
600
|
t,
|
|
603
601
|
e,
|
|
604
|
-
n,
|
|
605
|
-
o,
|
|
606
602
|
l,
|
|
603
|
+
o,
|
|
604
|
+
n,
|
|
607
605
|
i
|
|
608
606
|
),
|
|
609
607
|
"onUpdate:modelValue": (a) => {
|
|
610
608
|
oe(
|
|
611
609
|
t,
|
|
612
610
|
e,
|
|
613
|
-
|
|
611
|
+
l,
|
|
614
612
|
a,
|
|
615
613
|
o,
|
|
616
|
-
|
|
614
|
+
n,
|
|
617
615
|
i
|
|
618
616
|
);
|
|
619
617
|
},
|
|
620
|
-
hasDelete:
|
|
618
|
+
hasDelete: n !== void 0 && !i,
|
|
621
619
|
onDelete: () => {
|
|
622
|
-
|
|
620
|
+
n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
|
|
623
621
|
},
|
|
624
622
|
precision: e.precision,
|
|
625
623
|
min: e.min,
|
|
@@ -628,7 +626,7 @@ function tn(o) {
|
|
|
628
626
|
readonly: e.readonly
|
|
629
627
|
}) };
|
|
630
628
|
}
|
|
631
|
-
const
|
|
629
|
+
const ll = { class: "d-flex justify-space-between align-center" }, nl = /* @__PURE__ */ J({
|
|
632
630
|
__name: "switch",
|
|
633
631
|
props: /* @__PURE__ */ W({
|
|
634
632
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -640,59 +638,59 @@ const nn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PU
|
|
|
640
638
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
641
639
|
setup(o, { emit: s }) {
|
|
642
640
|
const t = G(o, "modelValue"), e = s;
|
|
643
|
-
return (
|
|
641
|
+
return (l, n) => {
|
|
644
642
|
const i = $("v-switch"), a = $("v-btn");
|
|
645
|
-
return S(), H("div",
|
|
643
|
+
return S(), H("div", ll, [
|
|
646
644
|
A(i, {
|
|
647
645
|
modelValue: t.value,
|
|
648
|
-
"onUpdate:modelValue":
|
|
646
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
|
|
649
647
|
class: "ml-1",
|
|
650
648
|
density: "compact",
|
|
651
649
|
color: "primary",
|
|
652
650
|
"hide-details": "",
|
|
653
|
-
readonly:
|
|
651
|
+
readonly: l.readonly
|
|
654
652
|
}, null, 8, ["modelValue", "readonly"]),
|
|
655
|
-
|
|
653
|
+
l.hasDelete ? (S(), B(a, {
|
|
656
654
|
key: 0,
|
|
657
655
|
class: "mx-2",
|
|
658
656
|
variant: "text",
|
|
659
657
|
density: "compact",
|
|
660
658
|
icon: C(re),
|
|
661
|
-
onClick:
|
|
659
|
+
onClick: n[1] || (n[1] = z((r) => e("delete"), ["stop"]))
|
|
662
660
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
663
661
|
]);
|
|
664
662
|
};
|
|
665
663
|
}
|
|
666
664
|
});
|
|
667
|
-
function
|
|
668
|
-
return { renderUiSwitch: (t, e,
|
|
669
|
-
modelValue:
|
|
665
|
+
function ol(o) {
|
|
666
|
+
return { renderUiSwitch: (t, e, l, n, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(nl, {
|
|
667
|
+
modelValue: le(
|
|
670
668
|
t,
|
|
671
669
|
e,
|
|
672
|
-
n,
|
|
673
|
-
o,
|
|
674
670
|
l,
|
|
671
|
+
o,
|
|
672
|
+
n,
|
|
675
673
|
i
|
|
676
674
|
) ?? !1,
|
|
677
675
|
"onUpdate:modelValue": (a) => {
|
|
678
676
|
oe(
|
|
679
677
|
t,
|
|
680
678
|
e,
|
|
681
|
-
|
|
679
|
+
l,
|
|
682
680
|
a,
|
|
683
681
|
o,
|
|
684
|
-
|
|
682
|
+
n,
|
|
685
683
|
i
|
|
686
684
|
);
|
|
687
685
|
},
|
|
688
|
-
hasDelete:
|
|
686
|
+
hasDelete: n !== void 0 && !i,
|
|
689
687
|
onDelete: () => {
|
|
690
|
-
|
|
688
|
+
n === void 0 || i || (l.splice(n, 1), o(t.slice(0, 1), l));
|
|
691
689
|
},
|
|
692
690
|
readonly: e.readonly
|
|
693
691
|
}) };
|
|
694
692
|
}
|
|
695
|
-
const
|
|
693
|
+
const sl = { class: "d-flex justify-space-between align-center" }, il = /* @__PURE__ */ J({
|
|
696
694
|
__name: "select",
|
|
697
695
|
props: /* @__PURE__ */ W({
|
|
698
696
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -704,19 +702,19 @@ const sn = { class: "d-flex justify-space-between align-center" }, rn = /* @__PU
|
|
|
704
702
|
}),
|
|
705
703
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
706
704
|
setup(o, { emit: s }) {
|
|
707
|
-
const { t } = te(), e = G(o, "modelValue"),
|
|
708
|
-
var
|
|
705
|
+
const { t } = te(), e = G(o, "modelValue"), l = s, n = Te(), i = K(() => {
|
|
706
|
+
var r;
|
|
709
707
|
const a = [];
|
|
710
|
-
return (
|
|
711
|
-
a.push({ title: t(
|
|
708
|
+
return (r = Ye[n.value]) == null || r.items[o.items].forEach(({ title: u, value: g }) => {
|
|
709
|
+
a.push({ title: t(u), value: g });
|
|
712
710
|
}), a;
|
|
713
711
|
});
|
|
714
|
-
return (a,
|
|
715
|
-
const
|
|
716
|
-
return S(), H("div",
|
|
717
|
-
ee(A(
|
|
712
|
+
return (a, r) => {
|
|
713
|
+
const u = $("v-select"), g = $("v-btn"), d = ne("ripple");
|
|
714
|
+
return S(), H("div", sl, [
|
|
715
|
+
ee(A(u, {
|
|
718
716
|
modelValue: e.value,
|
|
719
|
-
"onUpdate:modelValue":
|
|
717
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
|
|
720
718
|
density: "compact",
|
|
721
719
|
items: i.value,
|
|
722
720
|
"hide-details": "",
|
|
@@ -736,42 +734,42 @@ const sn = { class: "d-flex justify-space-between align-center" }, rn = /* @__PU
|
|
|
736
734
|
variant: "text",
|
|
737
735
|
density: "compact",
|
|
738
736
|
icon: C(re),
|
|
739
|
-
onClick:
|
|
737
|
+
onClick: r[1] || (r[1] = z((f) => l("delete"), ["stop"]))
|
|
740
738
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
741
739
|
]);
|
|
742
740
|
};
|
|
743
741
|
}
|
|
744
742
|
});
|
|
745
|
-
function
|
|
746
|
-
return { renderUiSelect: (t, e,
|
|
747
|
-
modelValue:
|
|
743
|
+
function rl(o) {
|
|
744
|
+
return { renderUiSelect: (t, e, l, n, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(il, {
|
|
745
|
+
modelValue: le(
|
|
748
746
|
t,
|
|
749
747
|
e,
|
|
750
|
-
n,
|
|
751
|
-
o,
|
|
752
748
|
l,
|
|
749
|
+
o,
|
|
750
|
+
n,
|
|
753
751
|
i
|
|
754
752
|
) ?? "",
|
|
755
753
|
"onUpdate:modelValue": (a) => {
|
|
756
754
|
oe(
|
|
757
755
|
t,
|
|
758
756
|
e,
|
|
759
|
-
|
|
757
|
+
l,
|
|
760
758
|
a,
|
|
761
759
|
o,
|
|
762
|
-
|
|
760
|
+
n,
|
|
763
761
|
i
|
|
764
762
|
);
|
|
765
763
|
},
|
|
766
|
-
hasDelete:
|
|
764
|
+
hasDelete: n !== void 0 && !i,
|
|
767
765
|
onDelete: () => {
|
|
768
|
-
|
|
766
|
+
n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
|
|
769
767
|
},
|
|
770
768
|
items: e.items,
|
|
771
769
|
readonly: e.readonly
|
|
772
770
|
}) };
|
|
773
771
|
}
|
|
774
|
-
const
|
|
772
|
+
const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-grey ml-1" }, cl = /* @__PURE__ */ J({
|
|
775
773
|
__name: "group",
|
|
776
774
|
props: {
|
|
777
775
|
id: {},
|
|
@@ -781,33 +779,33 @@ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-g
|
|
|
781
779
|
},
|
|
782
780
|
emits: ["x-click"],
|
|
783
781
|
setup(o, { emit: s }) {
|
|
784
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
782
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), l = o, n = s, i = O(!1), a = K(() => ({
|
|
785
783
|
background: i.value ? e.value : t.value,
|
|
786
784
|
height: "30px",
|
|
787
785
|
marginBottom: "1px",
|
|
788
786
|
userSelect: "none"
|
|
789
787
|
}));
|
|
790
|
-
return (
|
|
791
|
-
const g = $("v-icon"), d =
|
|
788
|
+
return (r, u) => {
|
|
789
|
+
const g = $("v-icon"), d = ne("ripple");
|
|
792
790
|
return ee((S(), H("div", {
|
|
793
791
|
class: "d-flex align-center cursor-pointer",
|
|
794
792
|
style: I(a.value),
|
|
795
|
-
onClick:
|
|
796
|
-
onMouseover:
|
|
797
|
-
onMouseout:
|
|
793
|
+
onClick: u[0] || (u[0] = (f) => n("x-click", l.id)),
|
|
794
|
+
onMouseover: u[1] || (u[1] = (f) => i.value = !0),
|
|
795
|
+
onMouseout: u[2] || (u[2] = (f) => i.value = !1)
|
|
798
796
|
}, [
|
|
799
797
|
A(g, {
|
|
800
|
-
icon:
|
|
798
|
+
icon: l.collapse ? C(Xe) : C(Fe),
|
|
801
799
|
size: "small"
|
|
802
800
|
}, null, 8, ["icon"]),
|
|
803
|
-
F("span",
|
|
804
|
-
F("span",
|
|
801
|
+
F("span", ul, Q(l.title), 1),
|
|
802
|
+
F("span", al, Q(l.count), 1)
|
|
805
803
|
], 36)), [
|
|
806
804
|
[d]
|
|
807
805
|
]);
|
|
808
806
|
};
|
|
809
807
|
}
|
|
810
|
-
}),
|
|
808
|
+
}), dl = { class: "text-subtitle-1 ml-6" }, fl = /* @__PURE__ */ J({
|
|
811
809
|
__name: "item",
|
|
812
810
|
props: {
|
|
813
811
|
id: {},
|
|
@@ -815,31 +813,31 @@ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-g
|
|
|
815
813
|
},
|
|
816
814
|
emits: ["x-click"],
|
|
817
815
|
setup(o, { emit: s }) {
|
|
818
|
-
const { backgroundColor2: t, highlightColor: e } = ie(),
|
|
816
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), l = o, n = s, i = O(!1), a = K(() => ({
|
|
819
817
|
background: i.value ? e.value : t.value,
|
|
820
818
|
height: "48px",
|
|
821
819
|
marginBottom: "1px",
|
|
822
820
|
userSelect: "none"
|
|
823
821
|
}));
|
|
824
|
-
return (
|
|
825
|
-
const g =
|
|
822
|
+
return (r, u) => {
|
|
823
|
+
const g = ne("ripple");
|
|
826
824
|
return ee((S(), H("div", {
|
|
827
825
|
class: "d-flex align-center cursor-pointer",
|
|
828
826
|
style: I(a.value),
|
|
829
|
-
onClick:
|
|
830
|
-
onMouseover:
|
|
831
|
-
onMouseout:
|
|
827
|
+
onClick: u[0] || (u[0] = (d) => n("x-click", l.id)),
|
|
828
|
+
onMouseover: u[1] || (u[1] = (d) => i.value = !0),
|
|
829
|
+
onMouseout: u[2] || (u[2] = (d) => i.value = !1)
|
|
832
830
|
}, [
|
|
833
|
-
F("span",
|
|
831
|
+
F("span", dl, Q(l.title), 1)
|
|
834
832
|
], 36)), [
|
|
835
833
|
[g]
|
|
836
834
|
]);
|
|
837
835
|
};
|
|
838
836
|
}
|
|
839
|
-
}),
|
|
837
|
+
}), ml = { key: 0 }, vl = {
|
|
840
838
|
key: 1,
|
|
841
839
|
class: "text-body-2 text-grey ml-3"
|
|
842
|
-
},
|
|
840
|
+
}, pl = /* @__PURE__ */ J({
|
|
843
841
|
__name: "index",
|
|
844
842
|
props: {
|
|
845
843
|
modelValue: {},
|
|
@@ -849,34 +847,34 @@ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-g
|
|
|
849
847
|
},
|
|
850
848
|
emits: ["update:modelValue", "update:open"],
|
|
851
849
|
setup(o) {
|
|
852
|
-
const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"),
|
|
853
|
-
const
|
|
854
|
-
|
|
850
|
+
const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"), l = et(), n = (a) => {
|
|
851
|
+
const r = ze(l, a);
|
|
852
|
+
r && Ct(l, a, !r.collapse);
|
|
855
853
|
}, i = (a) => {
|
|
856
854
|
t.value = a, e.value = !1, ae.emit("refreshDepends");
|
|
857
855
|
};
|
|
858
|
-
return (a,
|
|
859
|
-
(S(!0), H(Ve, null, Be(C(
|
|
860
|
-
key:
|
|
856
|
+
return (a, r) => C(l).length > 0 ? (S(), H("div", ml, [
|
|
857
|
+
(S(!0), H(Ve, null, Be(C(l), (u) => (S(), H(Ve, {
|
|
858
|
+
key: u.id
|
|
861
859
|
}, [
|
|
862
|
-
|
|
860
|
+
u.type === 0 ? (S(), B(cl, {
|
|
863
861
|
key: 0,
|
|
864
|
-
id:
|
|
865
|
-
title:
|
|
866
|
-
collapse:
|
|
867
|
-
count:
|
|
868
|
-
onXClick:
|
|
862
|
+
id: u.id,
|
|
863
|
+
title: u.name,
|
|
864
|
+
collapse: u.collapse,
|
|
865
|
+
count: u.count ?? 0,
|
|
866
|
+
onXClick: n
|
|
869
867
|
}, null, 8, ["id", "title", "collapse", "count"])) : Y("", !0),
|
|
870
|
-
|
|
868
|
+
u.type === 1 && u.show ? (S(), B(fl, {
|
|
871
869
|
key: 1,
|
|
872
|
-
id:
|
|
873
|
-
title:
|
|
870
|
+
id: u.id,
|
|
871
|
+
title: u.name,
|
|
874
872
|
onXClick: i
|
|
875
873
|
}, null, 8, ["id", "title"])) : Y("", !0)
|
|
876
874
|
], 64))), 128))
|
|
877
|
-
])) : (S(), H("div",
|
|
875
|
+
])) : (S(), H("div", vl, Q(C(s)("x-prop-tree.noComp")), 1));
|
|
878
876
|
}
|
|
879
|
-
}),
|
|
877
|
+
}), yl = { class: "text-subtitle-1 ml-3" }, gl = /* @__PURE__ */ J({
|
|
880
878
|
__name: "index",
|
|
881
879
|
props: {
|
|
882
880
|
modelValue: {},
|
|
@@ -884,32 +882,32 @@ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-g
|
|
|
884
882
|
},
|
|
885
883
|
emits: ["update:modelValue"],
|
|
886
884
|
setup(o) {
|
|
887
|
-
const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1:
|
|
885
|
+
const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1: l } = ie(), n = G(o, "modelValue"), i = et(), a = K(() => {
|
|
888
886
|
let f = "100%";
|
|
889
887
|
return t.mdAndUp.value && (f = "400px"), {
|
|
890
|
-
background:
|
|
888
|
+
background: l.value,
|
|
891
889
|
width: f,
|
|
892
890
|
height: "100%"
|
|
893
891
|
};
|
|
894
|
-
}),
|
|
892
|
+
}), r = K(() => {
|
|
895
893
|
let f = 48;
|
|
896
894
|
return e.value && (f += 24), {
|
|
897
895
|
position: "relative",
|
|
898
896
|
height: `calc(100% - ${f}px)`
|
|
899
897
|
};
|
|
900
|
-
}),
|
|
898
|
+
}), u = K(() => ({
|
|
901
899
|
height: "60px"
|
|
902
900
|
})), g = K(() => {
|
|
903
|
-
if (!
|
|
901
|
+
if (!n.value)
|
|
904
902
|
return s("x-runtime-lib.notSet");
|
|
905
|
-
const f = ze(i,
|
|
903
|
+
const f = ze(i, n.value);
|
|
906
904
|
return f ? f.name : s("x-runtime-lib.compNotAvail");
|
|
907
905
|
}), { open: d } = Se(`propTreeCompSelectDlg${we()}`);
|
|
908
906
|
return De(() => {
|
|
909
907
|
d.value = !1;
|
|
910
908
|
}), (f, m) => {
|
|
911
|
-
const k = $("v-btn"), L = $("v-sheet"), w = $("v-icon"),
|
|
912
|
-
return S(), B(
|
|
909
|
+
const k = $("v-btn"), L = $("v-sheet"), w = $("v-icon"), T = $("v-dialog");
|
|
910
|
+
return S(), B(T, {
|
|
913
911
|
modelValue: C(d),
|
|
914
912
|
"onUpdate:modelValue": m[5] || (m[5] = (P) => pe(d) ? d.value = P : null),
|
|
915
913
|
transition: "scroll-x-reverse-transition",
|
|
@@ -954,22 +952,22 @@ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-g
|
|
|
954
952
|
icon: C(Ge),
|
|
955
953
|
onClick: m[0] || (m[0] = (P) => d.value = !1)
|
|
956
954
|
}, null, 8, ["icon"]),
|
|
957
|
-
F("span",
|
|
955
|
+
F("span", yl, Q(C(s)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
958
956
|
]),
|
|
959
957
|
_: 1
|
|
960
958
|
}),
|
|
961
959
|
F("div", {
|
|
962
960
|
class: "overflow-y-auto",
|
|
963
|
-
style: I(
|
|
961
|
+
style: I(r.value)
|
|
964
962
|
}, [
|
|
965
|
-
A(
|
|
966
|
-
modelValue:
|
|
967
|
-
"onUpdate:modelValue": m[1] || (m[1] = (P) =>
|
|
963
|
+
A(pl, {
|
|
964
|
+
modelValue: n.value,
|
|
965
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => n.value = P),
|
|
968
966
|
open: C(d),
|
|
969
967
|
"onUpdate:open": m[2] || (m[2] = (P) => pe(d) ? d.value = P : null)
|
|
970
968
|
}, null, 8, ["modelValue", "open"]),
|
|
971
969
|
F("div", {
|
|
972
|
-
style: I(
|
|
970
|
+
style: I(u.value)
|
|
973
971
|
}, null, 4)
|
|
974
972
|
], 4)
|
|
975
973
|
], 4)
|
|
@@ -980,30 +978,30 @@ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-g
|
|
|
980
978
|
};
|
|
981
979
|
}
|
|
982
980
|
});
|
|
983
|
-
function
|
|
984
|
-
return { renderUiCompSelect: (t, e,
|
|
985
|
-
modelValue:
|
|
981
|
+
function hl(o) {
|
|
982
|
+
return { renderUiCompSelect: (t, e, l, n, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(gl, {
|
|
983
|
+
modelValue: le(
|
|
986
984
|
t,
|
|
987
985
|
e,
|
|
988
|
-
n,
|
|
989
|
-
o,
|
|
990
986
|
l,
|
|
987
|
+
o,
|
|
988
|
+
n,
|
|
991
989
|
i
|
|
992
990
|
),
|
|
993
991
|
"onUpdate:modelValue": (a) => {
|
|
994
992
|
oe(
|
|
995
993
|
t,
|
|
996
994
|
e,
|
|
997
|
-
|
|
995
|
+
l,
|
|
998
996
|
a,
|
|
999
997
|
o,
|
|
1000
|
-
|
|
998
|
+
n,
|
|
1001
999
|
i
|
|
1002
1000
|
);
|
|
1003
1001
|
}
|
|
1004
1002
|
}) };
|
|
1005
1003
|
}
|
|
1006
|
-
const
|
|
1004
|
+
const _l = { class: "d-flex justify-space-between align-center" }, kl = /* @__PURE__ */ J({
|
|
1007
1005
|
__name: "colorPicker",
|
|
1008
1006
|
props: /* @__PURE__ */ W({
|
|
1009
1007
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1014,27 +1012,27 @@ const kn = { class: "d-flex justify-space-between align-center" }, Vn = /* @__PU
|
|
|
1014
1012
|
}),
|
|
1015
1013
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
1016
1014
|
setup(o, { emit: s }) {
|
|
1017
|
-
const { t } = te(), e = G(o, "modelValue"),
|
|
1018
|
-
let
|
|
1019
|
-
return o.hasDelete && (
|
|
1020
|
-
width:
|
|
1015
|
+
const { t } = te(), e = G(o, "modelValue"), l = s, n = K(() => {
|
|
1016
|
+
let r = "100%";
|
|
1017
|
+
return o.hasDelete && (r = "calc(100% - 37px)"), {
|
|
1018
|
+
width: r
|
|
1021
1019
|
};
|
|
1022
1020
|
}), i = K(() => o.readonly), { open: a } = Se(`propTreeColorPickerMenu${we()}`);
|
|
1023
1021
|
return De(() => {
|
|
1024
1022
|
a.value = !1;
|
|
1025
|
-
}), (
|
|
1023
|
+
}), (r, u) => {
|
|
1026
1024
|
const g = $("v-btn"), d = $("v-color-picker"), f = $("v-menu");
|
|
1027
1025
|
return S(), B(f, {
|
|
1028
1026
|
modelValue: C(a),
|
|
1029
|
-
"onUpdate:modelValue":
|
|
1027
|
+
"onUpdate:modelValue": u[2] || (u[2] = (m) => pe(a) ? a.value = m : null),
|
|
1030
1028
|
"close-on-content-click": !1,
|
|
1031
1029
|
scrim: "transparent"
|
|
1032
1030
|
}, {
|
|
1033
1031
|
activator: R(({ props: m }) => [
|
|
1034
|
-
F("div",
|
|
1032
|
+
F("div", _l, [
|
|
1035
1033
|
F("div", {
|
|
1036
1034
|
class: "flex-grow-1",
|
|
1037
|
-
style: I(
|
|
1035
|
+
style: I(n.value)
|
|
1038
1036
|
}, [
|
|
1039
1037
|
A(g, Ae(m, {
|
|
1040
1038
|
density: "comfortable",
|
|
@@ -1048,20 +1046,20 @@ const kn = { class: "d-flex justify-space-between align-center" }, Vn = /* @__PU
|
|
|
1048
1046
|
_: 2
|
|
1049
1047
|
}, 1040, ["color", "disabled"])
|
|
1050
1048
|
], 4),
|
|
1051
|
-
|
|
1049
|
+
r.hasDelete ? (S(), B(g, {
|
|
1052
1050
|
key: 0,
|
|
1053
1051
|
class: "mx-2",
|
|
1054
1052
|
variant: "text",
|
|
1055
1053
|
density: "compact",
|
|
1056
1054
|
icon: C(re),
|
|
1057
|
-
onClick:
|
|
1055
|
+
onClick: u[0] || (u[0] = z((k) => l("delete"), ["stop"]))
|
|
1058
1056
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
1059
1057
|
])
|
|
1060
1058
|
]),
|
|
1061
1059
|
default: R(() => [
|
|
1062
1060
|
A(d, {
|
|
1063
1061
|
modelValue: e.value,
|
|
1064
|
-
"onUpdate:modelValue":
|
|
1062
|
+
"onUpdate:modelValue": u[1] || (u[1] = (m) => e.value = m),
|
|
1065
1063
|
mode: "hexa",
|
|
1066
1064
|
"show-swatches": "",
|
|
1067
1065
|
"swatches-max-height": "150px"
|
|
@@ -1072,35 +1070,35 @@ const kn = { class: "d-flex justify-space-between align-center" }, Vn = /* @__PU
|
|
|
1072
1070
|
};
|
|
1073
1071
|
}
|
|
1074
1072
|
});
|
|
1075
|
-
function
|
|
1076
|
-
return { renderUiColorPicker: (t, e,
|
|
1077
|
-
modelValue:
|
|
1073
|
+
function Vl(o) {
|
|
1074
|
+
return { renderUiColorPicker: (t, e, l, n, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(kl, {
|
|
1075
|
+
modelValue: le(
|
|
1078
1076
|
t,
|
|
1079
1077
|
e,
|
|
1080
|
-
n,
|
|
1081
|
-
o,
|
|
1082
1078
|
l,
|
|
1079
|
+
o,
|
|
1080
|
+
n,
|
|
1083
1081
|
i
|
|
1084
1082
|
),
|
|
1085
1083
|
"onUpdate:modelValue": (a) => {
|
|
1086
1084
|
oe(
|
|
1087
1085
|
t,
|
|
1088
1086
|
e,
|
|
1089
|
-
|
|
1087
|
+
l,
|
|
1090
1088
|
a,
|
|
1091
1089
|
o,
|
|
1092
|
-
|
|
1090
|
+
n,
|
|
1093
1091
|
i
|
|
1094
1092
|
);
|
|
1095
1093
|
},
|
|
1096
|
-
hasDelete:
|
|
1094
|
+
hasDelete: n !== void 0 && !i,
|
|
1097
1095
|
onDelete: () => {
|
|
1098
|
-
|
|
1096
|
+
n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
|
|
1099
1097
|
},
|
|
1100
1098
|
readonly: e.readonly
|
|
1101
1099
|
}) };
|
|
1102
1100
|
}
|
|
1103
|
-
const
|
|
1101
|
+
const Cl = { class: "d-flex justify-space-between align-center my-2" }, Sl = { class: "flex-grow-1" }, Ul = /* @__PURE__ */ J({
|
|
1104
1102
|
__name: "multiTypes",
|
|
1105
1103
|
props: /* @__PURE__ */ W({
|
|
1106
1104
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1111,10 +1109,10 @@ const Sn = { class: "d-flex justify-space-between align-center my-2" }, Un = { c
|
|
|
1111
1109
|
}),
|
|
1112
1110
|
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
1113
1111
|
setup(o, { emit: s }) {
|
|
1114
|
-
const { t } = te(), e = G(o, "modelValue"),
|
|
1112
|
+
const { t } = te(), e = G(o, "modelValue"), l = s, n = Te(), i = K(() => {
|
|
1115
1113
|
var f;
|
|
1116
|
-
return (f = Ye[
|
|
1117
|
-
}), a = O(0),
|
|
1114
|
+
return (f = Ye[n.value]) == null ? void 0 : f.types[o.types];
|
|
1115
|
+
}), a = O(0), r = K(() => {
|
|
1118
1116
|
var m;
|
|
1119
1117
|
const f = [];
|
|
1120
1118
|
return (m = i.value) == null || m.forEach(({ title: k }, L) => {
|
|
@@ -1128,24 +1126,24 @@ const Sn = { class: "d-flex justify-space-between align-center my-2" }, Un = { c
|
|
|
1128
1126
|
var f;
|
|
1129
1127
|
(f = i.value) == null || f.some((m, k) => m.validator(e.value) ? (a.value = k, !0) : !1);
|
|
1130
1128
|
});
|
|
1131
|
-
const
|
|
1129
|
+
const u = K(() => {
|
|
1132
1130
|
var f;
|
|
1133
1131
|
return (f = i.value) == null ? void 0 : f[a.value];
|
|
1134
1132
|
}), g = () => {
|
|
1135
1133
|
var f;
|
|
1136
|
-
e.value = (f =
|
|
1134
|
+
e.value = (f = u.value) == null ? void 0 : f.default;
|
|
1137
1135
|
}, d = O(0);
|
|
1138
1136
|
return Ne(() => {
|
|
1139
1137
|
var f, m;
|
|
1140
|
-
((f =
|
|
1138
|
+
((f = u.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = Ut(e.value) : ((m = u.value) == null ? void 0 : m.ui) === "percentInput" && (d.value = $t(e.value));
|
|
1141
1139
|
}), ue(d, (f) => {
|
|
1142
1140
|
var m, k;
|
|
1143
|
-
((m =
|
|
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 + "%");
|
|
1144
1142
|
}), (f, m) => {
|
|
1145
|
-
var P,
|
|
1146
|
-
const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"),
|
|
1147
|
-
return S(), H("div",
|
|
1148
|
-
F("div",
|
|
1143
|
+
var P, _;
|
|
1144
|
+
const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"), T = ne("ripple");
|
|
1145
|
+
return S(), H("div", Cl, [
|
|
1146
|
+
F("div", Sl, [
|
|
1149
1147
|
ee(A(k, {
|
|
1150
1148
|
modelValue: a.value,
|
|
1151
1149
|
"onUpdate:modelValue": [
|
|
@@ -1153,32 +1151,32 @@ const Sn = { class: "d-flex justify-space-between align-center my-2" }, Un = { c
|
|
|
1153
1151
|
g
|
|
1154
1152
|
],
|
|
1155
1153
|
density: "compact",
|
|
1156
|
-
items:
|
|
1154
|
+
items: r.value,
|
|
1157
1155
|
"hide-details": "",
|
|
1158
1156
|
"single-line": ""
|
|
1159
1157
|
}, null, 8, ["modelValue", "items"]), [
|
|
1160
1158
|
[
|
|
1161
|
-
|
|
1159
|
+
T,
|
|
1162
1160
|
void 0,
|
|
1163
1161
|
void 0,
|
|
1164
1162
|
{ stop: !0 }
|
|
1165
1163
|
]
|
|
1166
1164
|
]),
|
|
1167
|
-
((P =
|
|
1165
|
+
((P = u.value) == null ? void 0 : P.ui) === "pixelInput" || ((_ = u.value) == null ? void 0 : _.ui) === "percentInput" ? ee((S(), B(L, {
|
|
1168
1166
|
key: 0,
|
|
1169
1167
|
modelValue: d.value,
|
|
1170
1168
|
"onUpdate:modelValue": m[1] || (m[1] = (M) => d.value = M),
|
|
1171
1169
|
density: "compact",
|
|
1172
1170
|
"control-variant": "stacked",
|
|
1173
|
-
precision:
|
|
1174
|
-
min:
|
|
1175
|
-
max:
|
|
1176
|
-
step:
|
|
1171
|
+
precision: u.value.precision,
|
|
1172
|
+
min: u.value.min,
|
|
1173
|
+
max: u.value.max,
|
|
1174
|
+
step: u.value.step,
|
|
1177
1175
|
"hide-details": "",
|
|
1178
1176
|
"single-line": ""
|
|
1179
1177
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1180
1178
|
[
|
|
1181
|
-
|
|
1179
|
+
T,
|
|
1182
1180
|
void 0,
|
|
1183
1181
|
void 0,
|
|
1184
1182
|
{ stop: !0 }
|
|
@@ -1191,41 +1189,41 @@ const Sn = { class: "d-flex justify-space-between align-center my-2" }, Un = { c
|
|
|
1191
1189
|
variant: "text",
|
|
1192
1190
|
density: "compact",
|
|
1193
1191
|
icon: C(re),
|
|
1194
|
-
onClick: m[2] || (m[2] = z((M) =>
|
|
1192
|
+
onClick: m[2] || (m[2] = z((M) => l("delete"), ["stop"]))
|
|
1195
1193
|
}, null, 8, ["icon"])) : Y("", !0)
|
|
1196
1194
|
]);
|
|
1197
1195
|
};
|
|
1198
1196
|
}
|
|
1199
1197
|
});
|
|
1200
|
-
function
|
|
1201
|
-
return { renderUiMultiTypes: (t, e,
|
|
1202
|
-
modelValue:
|
|
1198
|
+
function $l(o) {
|
|
1199
|
+
return { renderUiMultiTypes: (t, e, l, n, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(Ul, {
|
|
1200
|
+
modelValue: le(
|
|
1203
1201
|
t,
|
|
1204
1202
|
e,
|
|
1205
|
-
n,
|
|
1206
|
-
o,
|
|
1207
1203
|
l,
|
|
1204
|
+
o,
|
|
1205
|
+
n,
|
|
1208
1206
|
i
|
|
1209
1207
|
) ?? "",
|
|
1210
1208
|
"onUpdate:modelValue": (a) => {
|
|
1211
1209
|
oe(
|
|
1212
1210
|
t,
|
|
1213
1211
|
e,
|
|
1214
|
-
|
|
1212
|
+
l,
|
|
1215
1213
|
a,
|
|
1216
1214
|
o,
|
|
1217
|
-
|
|
1215
|
+
n,
|
|
1218
1216
|
i
|
|
1219
1217
|
);
|
|
1220
1218
|
},
|
|
1221
|
-
hasDelete:
|
|
1219
|
+
hasDelete: n !== void 0 && !i,
|
|
1222
1220
|
onDelete: () => {
|
|
1223
|
-
|
|
1221
|
+
n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
|
|
1224
1222
|
},
|
|
1225
1223
|
types: e.types
|
|
1226
1224
|
}) };
|
|
1227
1225
|
}
|
|
1228
|
-
const
|
|
1226
|
+
const xl = /* @__PURE__ */ J({
|
|
1229
1227
|
__name: "editor",
|
|
1230
1228
|
props: {
|
|
1231
1229
|
modelValue: { required: !0 },
|
|
@@ -1237,29 +1235,29 @@ const Pn = /* @__PURE__ */ J({
|
|
|
1237
1235
|
},
|
|
1238
1236
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
1239
1237
|
setup(o, { expose: s }) {
|
|
1240
|
-
const t = G(o, "modelValue"), e = G(o, "lock"),
|
|
1238
|
+
const t = G(o, "modelValue"), e = G(o, "lock"), l = G(o, "scale"), n = _t(), i = kt(), a = Te(), r = Re("target"), u = () => {
|
|
1241
1239
|
var f;
|
|
1242
1240
|
const d = JSON.parse(t.value);
|
|
1243
|
-
(f =
|
|
1241
|
+
(f = r.value) == null || f.load(d);
|
|
1244
1242
|
};
|
|
1245
1243
|
return s({ save: () => {
|
|
1246
|
-
const d =
|
|
1244
|
+
const d = r.value.save();
|
|
1247
1245
|
t.value = JSON.stringify(d, null, 2);
|
|
1248
1246
|
} }), (d, f) => (S(), B(C(Mt), {
|
|
1249
1247
|
ref_key: "target",
|
|
1250
|
-
ref:
|
|
1248
|
+
ref: r,
|
|
1251
1249
|
lock: e.value,
|
|
1252
1250
|
"onUpdate:lock": f[0] || (f[0] = (m) => e.value = m),
|
|
1253
|
-
scale:
|
|
1254
|
-
"onUpdate:scale": f[1] || (f[1] = (m) =>
|
|
1251
|
+
scale: l.value,
|
|
1252
|
+
"onUpdate:scale": f[1] || (f[1] = (m) => l.value = m),
|
|
1255
1253
|
type: "json",
|
|
1256
1254
|
version: C(a),
|
|
1257
1255
|
locale: C(i),
|
|
1258
|
-
dark: C(
|
|
1259
|
-
onReady:
|
|
1256
|
+
dark: C(n),
|
|
1257
|
+
onReady: u
|
|
1260
1258
|
}, null, 8, ["lock", "scale", "version", "locale", "dark"]));
|
|
1261
1259
|
}
|
|
1262
|
-
}),
|
|
1260
|
+
}), Pl = { class: "text-subtitle-1" }, Ml = /* @__PURE__ */ J({
|
|
1263
1261
|
__name: "index",
|
|
1264
1262
|
props: {
|
|
1265
1263
|
modelValue: { required: !0 },
|
|
@@ -1267,11 +1265,11 @@ const Pn = /* @__PURE__ */ J({
|
|
|
1267
1265
|
},
|
|
1268
1266
|
emits: ["update:modelValue"],
|
|
1269
1267
|
setup(o) {
|
|
1270
|
-
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1:
|
|
1268
|
+
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: n } = ie(), i = G(o, "modelValue"), a = O(!1), r = O(1), u = K(() => {
|
|
1271
1269
|
let m = 48;
|
|
1272
1270
|
return t.value && (m += 24), {
|
|
1273
1271
|
position: "relative",
|
|
1274
|
-
background:
|
|
1272
|
+
background: l.value,
|
|
1275
1273
|
height: `calc(100% - ${m}px)`
|
|
1276
1274
|
};
|
|
1277
1275
|
}), g = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Se(`propTreeJsonObjectDlg${we()}`);
|
|
@@ -1283,19 +1281,19 @@ const Pn = /* @__PURE__ */ J({
|
|
|
1283
1281
|
var k;
|
|
1284
1282
|
m || (k = f.value) == null || k.save();
|
|
1285
1283
|
}), (m, k) => {
|
|
1286
|
-
const L = $("v-btn"), w = $("v-sheet"),
|
|
1284
|
+
const L = $("v-btn"), w = $("v-sheet"), T = $("v-spacer"), P = $("v-dialog");
|
|
1287
1285
|
return S(), B(P, {
|
|
1288
1286
|
modelValue: C(d),
|
|
1289
|
-
"onUpdate:modelValue": k[4] || (k[4] = (
|
|
1287
|
+
"onUpdate:modelValue": k[4] || (k[4] = (_) => pe(d) ? d.value = _ : null),
|
|
1290
1288
|
transition: "dialog-bottom-transition",
|
|
1291
1289
|
persistent: "",
|
|
1292
1290
|
"no-click-animation": "",
|
|
1293
1291
|
fullscreen: "",
|
|
1294
1292
|
attach: "",
|
|
1295
|
-
onKeydown: k[5] || (k[5] = Ke(z((
|
|
1293
|
+
onKeydown: k[5] || (k[5] = Ke(z((_) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1296
1294
|
}, {
|
|
1297
|
-
activator: R(({ props:
|
|
1298
|
-
A(L, Ae(
|
|
1295
|
+
activator: R(({ props: _ }) => [
|
|
1296
|
+
A(L, Ae(_, {
|
|
1299
1297
|
density: "comfortable",
|
|
1300
1298
|
block: ""
|
|
1301
1299
|
}), {
|
|
@@ -1314,12 +1312,12 @@ const Pn = /* @__PURE__ */ J({
|
|
|
1314
1312
|
default: R(() => [
|
|
1315
1313
|
C(t) ? (S(), B(w, {
|
|
1316
1314
|
key: 0,
|
|
1317
|
-
color: C(
|
|
1315
|
+
color: C(n),
|
|
1318
1316
|
height: 24
|
|
1319
1317
|
}, null, 8, ["color"])) : Y("", !0),
|
|
1320
1318
|
A(w, {
|
|
1321
1319
|
class: "d-flex align-center px-2",
|
|
1322
|
-
color: C(
|
|
1320
|
+
color: C(n),
|
|
1323
1321
|
height: 48
|
|
1324
1322
|
}, {
|
|
1325
1323
|
default: R(() => [
|
|
@@ -1327,25 +1325,25 @@ const Pn = /* @__PURE__ */ J({
|
|
|
1327
1325
|
variant: "text",
|
|
1328
1326
|
density: "comfortable",
|
|
1329
1327
|
icon: C(Ge),
|
|
1330
|
-
onClick: k[0] || (k[0] = (
|
|
1328
|
+
onClick: k[0] || (k[0] = (_) => d.value = !1)
|
|
1331
1329
|
}, null, 8, ["icon"]),
|
|
1332
|
-
F("span",
|
|
1333
|
-
A(
|
|
1330
|
+
F("span", Pl, Q(C(s)("x-prop-tree.dlg.jsonObject.title")), 1),
|
|
1331
|
+
A(T)
|
|
1334
1332
|
]),
|
|
1335
1333
|
_: 1
|
|
1336
1334
|
}, 8, ["color"]),
|
|
1337
1335
|
F("div", {
|
|
1338
|
-
style: I(
|
|
1336
|
+
style: I(u.value)
|
|
1339
1337
|
}, [
|
|
1340
|
-
A(
|
|
1338
|
+
A(xl, {
|
|
1341
1339
|
ref_key: "editor",
|
|
1342
1340
|
ref: f,
|
|
1343
1341
|
modelValue: i.value,
|
|
1344
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
1342
|
+
"onUpdate:modelValue": k[1] || (k[1] = (_) => i.value = _),
|
|
1345
1343
|
lock: a.value,
|
|
1346
|
-
"onUpdate:lock": k[2] || (k[2] = (
|
|
1347
|
-
scale:
|
|
1348
|
-
"onUpdate:scale": k[3] || (k[3] = (
|
|
1344
|
+
"onUpdate:lock": k[2] || (k[2] = (_) => a.value = _),
|
|
1345
|
+
scale: r.value,
|
|
1346
|
+
"onUpdate:scale": k[3] || (k[3] = (_) => r.value = _)
|
|
1349
1347
|
}, null, 8, ["modelValue", "lock", "scale"])
|
|
1350
1348
|
], 4)
|
|
1351
1349
|
]),
|
|
@@ -1357,30 +1355,30 @@ const Pn = /* @__PURE__ */ J({
|
|
|
1357
1355
|
};
|
|
1358
1356
|
}
|
|
1359
1357
|
});
|
|
1360
|
-
function
|
|
1361
|
-
return { renderUiJsonEditor: (t, e,
|
|
1362
|
-
modelValue:
|
|
1358
|
+
function wl(o) {
|
|
1359
|
+
return { renderUiJsonEditor: (t, e, l, n, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h(Ml, {
|
|
1360
|
+
modelValue: le(
|
|
1363
1361
|
t,
|
|
1364
1362
|
e,
|
|
1365
|
-
n,
|
|
1366
|
-
o,
|
|
1367
1363
|
l,
|
|
1364
|
+
o,
|
|
1365
|
+
n,
|
|
1368
1366
|
i
|
|
1369
1367
|
) ?? "{}",
|
|
1370
1368
|
"onUpdate:modelValue": (a) => {
|
|
1371
1369
|
oe(
|
|
1372
1370
|
t,
|
|
1373
1371
|
e,
|
|
1374
|
-
|
|
1372
|
+
l,
|
|
1375
1373
|
a,
|
|
1376
1374
|
o,
|
|
1377
|
-
|
|
1375
|
+
n,
|
|
1378
1376
|
i
|
|
1379
1377
|
);
|
|
1380
1378
|
}
|
|
1381
1379
|
}) };
|
|
1382
1380
|
}
|
|
1383
|
-
const
|
|
1381
|
+
const Dl = /* @__PURE__ */ J({
|
|
1384
1382
|
__name: "index",
|
|
1385
1383
|
props: {
|
|
1386
1384
|
unique: {},
|
|
@@ -1390,37 +1388,37 @@ const An = /* @__PURE__ */ J({
|
|
|
1390
1388
|
},
|
|
1391
1389
|
emits: ["change"],
|
|
1392
1390
|
setup(o, { emit: s }) {
|
|
1393
|
-
const { t } = te(), { backgroundColor1: e } = ie(),
|
|
1394
|
-
qe(g,
|
|
1391
|
+
const { t } = te(), { backgroundColor1: e } = ie(), l = o, n = s, i = O("20px"), a = O("56px"), r = O("200px"), u = yt({}), g = O({}), d = (p, c) => {
|
|
1392
|
+
qe(g, l.config, l.object), n("change", p, c);
|
|
1395
1393
|
};
|
|
1396
1394
|
ue(
|
|
1397
|
-
[() =>
|
|
1395
|
+
[() => l.config, () => l.object],
|
|
1398
1396
|
() => {
|
|
1399
|
-
qe(g,
|
|
1400
|
-
|
|
1397
|
+
qe(g, l.config, l.object, (p, c) => {
|
|
1398
|
+
n("change", p, c);
|
|
1401
1399
|
});
|
|
1402
1400
|
},
|
|
1403
1401
|
{ immediate: !0 }
|
|
1404
1402
|
);
|
|
1405
|
-
const f = O(
|
|
1403
|
+
const f = O(l.version);
|
|
1406
1404
|
Ot(f), ue(
|
|
1407
|
-
() =>
|
|
1405
|
+
() => l.version,
|
|
1408
1406
|
() => {
|
|
1409
|
-
f.value =
|
|
1407
|
+
f.value = l.version;
|
|
1410
1408
|
}
|
|
1411
1409
|
);
|
|
1412
|
-
const m = O(
|
|
1410
|
+
const m = O(l.config);
|
|
1413
1411
|
qt(m), ue(
|
|
1414
|
-
() =>
|
|
1412
|
+
() => l.config,
|
|
1415
1413
|
() => {
|
|
1416
|
-
m.value =
|
|
1414
|
+
m.value = l.config;
|
|
1417
1415
|
}
|
|
1418
1416
|
);
|
|
1419
|
-
const k = O(
|
|
1417
|
+
const k = O(l.object);
|
|
1420
1418
|
Kt(k), ue(
|
|
1421
|
-
() =>
|
|
1419
|
+
() => l.object,
|
|
1422
1420
|
() => {
|
|
1423
|
-
k.value =
|
|
1421
|
+
k.value = l.object;
|
|
1424
1422
|
}
|
|
1425
1423
|
), Jt(g), Xt(d);
|
|
1426
1424
|
const L = O([]);
|
|
@@ -1440,20 +1438,20 @@ const An = /* @__PURE__ */ J({
|
|
|
1440
1438
|
y.push({ id: v, type: 1, name: x, position: D, group: V });
|
|
1441
1439
|
}), St(y, !0), L.value = y;
|
|
1442
1440
|
};
|
|
1443
|
-
let
|
|
1441
|
+
let T;
|
|
1444
1442
|
const P = () => {
|
|
1445
|
-
clearTimeout(
|
|
1446
|
-
w(),
|
|
1443
|
+
clearTimeout(T), T = window.setTimeout(() => {
|
|
1444
|
+
w(), T && P();
|
|
1447
1445
|
}, 1e3);
|
|
1448
|
-
},
|
|
1449
|
-
clearTimeout(
|
|
1446
|
+
}, _ = () => {
|
|
1447
|
+
clearTimeout(T), T = void 0;
|
|
1450
1448
|
};
|
|
1451
1449
|
gt(() => {
|
|
1452
1450
|
P();
|
|
1453
|
-
}),
|
|
1454
|
-
|
|
1451
|
+
}), ht(() => {
|
|
1452
|
+
_();
|
|
1455
1453
|
});
|
|
1456
|
-
const { renderProp: M } = Wt(g, a,
|
|
1454
|
+
const { renderProp: M } = Wt(g, a, r), { renderUiDummy: N } = Qt(d), { renderUiStrInput: Z } = jt(d), { renderUiNumInput: Pe } = tl(d), { renderUiSwitch: tt } = ol(d), { renderUiSelect: lt } = rl(d), { renderUiColorPicker: nt } = Vl(d), { renderUiJsonEditor: ot } = wl(d), { renderUiMultiTypes: st } = $l(d), { renderUiCompSelect: it } = hl(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(
|
|
1457
1455
|
p,
|
|
1458
1456
|
c,
|
|
1459
1457
|
y,
|
|
@@ -1462,29 +1460,29 @@ const An = /* @__PURE__ */ J({
|
|
|
1462
1460
|
x
|
|
1463
1461
|
)), rt = (p, c, y, v, V, x) => {
|
|
1464
1462
|
if (c.ui)
|
|
1465
|
-
return console.assert(!1),
|
|
1463
|
+
return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
|
|
1466
1464
|
if (!c.array)
|
|
1467
|
-
return console.assert(!1),
|
|
1465
|
+
return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
|
|
1468
1466
|
if (!v)
|
|
1469
|
-
return console.assert(!1),
|
|
1467
|
+
return console.assert(!1), h("div", "renderBranchArray branch must be valid");
|
|
1470
1468
|
let D;
|
|
1471
1469
|
V !== void 0 && !x ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[c.key])), D = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), D = y[c.key]);
|
|
1472
1470
|
let E = t(c.name);
|
|
1473
1471
|
v.collapse && ce(g.value, p) && (E += " *");
|
|
1474
|
-
const me =
|
|
1472
|
+
const me = h(ke, {
|
|
1475
1473
|
title: E,
|
|
1476
1474
|
collapse: v.collapse,
|
|
1477
1475
|
hasCreate: !0,
|
|
1478
1476
|
onCollapse: (U) => {
|
|
1479
1477
|
v.collapse = U;
|
|
1480
1478
|
},
|
|
1481
|
-
onMenu: (U,
|
|
1482
|
-
ae.emit("propTreeMenu", { x: U, y:
|
|
1479
|
+
onMenu: (U, b) => {
|
|
1480
|
+
ae.emit("propTreeMenu", { x: U, y: b, keys: p });
|
|
1483
1481
|
},
|
|
1484
1482
|
onCreate: () => {
|
|
1485
1483
|
D.push({}), d(p, D);
|
|
1486
1484
|
}
|
|
1487
|
-
}), X =
|
|
1485
|
+
}), X = h(
|
|
1488
1486
|
"div",
|
|
1489
1487
|
{
|
|
1490
1488
|
style: {
|
|
@@ -1493,29 +1491,29 @@ const An = /* @__PURE__ */ J({
|
|
|
1493
1491
|
},
|
|
1494
1492
|
(() => {
|
|
1495
1493
|
const U = [];
|
|
1496
|
-
for (let
|
|
1494
|
+
for (let b = 0; b < D.length; b++) {
|
|
1497
1495
|
if (!Me(v.children)) {
|
|
1498
1496
|
console.assert(!1);
|
|
1499
1497
|
break;
|
|
1500
1498
|
}
|
|
1501
|
-
v.children[
|
|
1499
|
+
v.children[b] || v.children.push({
|
|
1502
1500
|
collapse: !0,
|
|
1503
1501
|
children: {}
|
|
1504
1502
|
});
|
|
1505
|
-
const ge = [...p,
|
|
1506
|
-
let Le = `[${
|
|
1507
|
-
v.children[
|
|
1508
|
-
const ft =
|
|
1503
|
+
const ge = [...p, b], he = v.children[b];
|
|
1504
|
+
let Le = `[${b + 1}]`;
|
|
1505
|
+
v.children[b].collapse && ce(g.value, ge) && (Le += " *");
|
|
1506
|
+
const ft = h(ke, {
|
|
1509
1507
|
title: Le,
|
|
1510
|
-
collapse: v.children[
|
|
1508
|
+
collapse: v.children[b].collapse,
|
|
1511
1509
|
hasDelete: !0,
|
|
1512
|
-
index:
|
|
1510
|
+
index: b,
|
|
1513
1511
|
onCollapse: (j) => {
|
|
1514
1512
|
if (!Me(v.children)) {
|
|
1515
1513
|
console.assert(!1);
|
|
1516
1514
|
return;
|
|
1517
1515
|
}
|
|
1518
|
-
v.children[
|
|
1516
|
+
v.children[b].collapse = j;
|
|
1519
1517
|
},
|
|
1520
1518
|
onMenu: (j, se) => {
|
|
1521
1519
|
ae.emit("propTreeMenu", { x: j, y: se, keys: ge });
|
|
@@ -1529,7 +1527,7 @@ const An = /* @__PURE__ */ J({
|
|
|
1529
1527
|
}
|
|
1530
1528
|
});
|
|
1531
1529
|
U.push(ft);
|
|
1532
|
-
const mt =
|
|
1530
|
+
const mt = h(
|
|
1533
1531
|
"div",
|
|
1534
1532
|
{
|
|
1535
1533
|
style: {
|
|
@@ -1539,32 +1537,32 @@ const An = /* @__PURE__ */ J({
|
|
|
1539
1537
|
(() => {
|
|
1540
1538
|
const j = [];
|
|
1541
1539
|
return c.children.forEach((se) => {
|
|
1542
|
-
if (!Oe(
|
|
1540
|
+
if (!Oe(he.children)) {
|
|
1543
1541
|
console.assert(!1);
|
|
1544
1542
|
return;
|
|
1545
1543
|
}
|
|
1546
|
-
|
|
1544
|
+
he.children[se.key] || (he.children[se.key] = {
|
|
1547
1545
|
collapse: !0,
|
|
1548
1546
|
children: se.array ? [] : {}
|
|
1549
1547
|
});
|
|
1550
1548
|
const vt = ye(
|
|
1551
1549
|
p,
|
|
1552
1550
|
se,
|
|
1553
|
-
D[
|
|
1554
|
-
|
|
1555
|
-
|
|
1551
|
+
D[b],
|
|
1552
|
+
he.children[se.key],
|
|
1553
|
+
b,
|
|
1556
1554
|
!0
|
|
1557
1555
|
);
|
|
1558
1556
|
j.push(vt);
|
|
1559
1557
|
}), j;
|
|
1560
1558
|
})()
|
|
1561
1559
|
);
|
|
1562
|
-
v.children[
|
|
1560
|
+
v.children[b].collapse || U.push(mt);
|
|
1563
1561
|
}
|
|
1564
1562
|
return U;
|
|
1565
1563
|
})()
|
|
1566
1564
|
);
|
|
1567
|
-
return
|
|
1565
|
+
return h(
|
|
1568
1566
|
"div",
|
|
1569
1567
|
{
|
|
1570
1568
|
style: {
|
|
@@ -1578,14 +1576,14 @@ const An = /* @__PURE__ */ J({
|
|
|
1578
1576
|
);
|
|
1579
1577
|
}, ut = (p, c, y, v, V, x) => {
|
|
1580
1578
|
if (c.ui)
|
|
1581
|
-
return console.assert(!1),
|
|
1579
|
+
return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
|
|
1582
1580
|
if (c.array)
|
|
1583
|
-
return console.assert(!1),
|
|
1581
|
+
return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
|
|
1584
1582
|
if (!v)
|
|
1585
|
-
return console.assert(!1),
|
|
1583
|
+
return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
|
|
1586
1584
|
let D = t(c.name);
|
|
1587
1585
|
v.collapse && ce(g.value, p) && (D += " *");
|
|
1588
|
-
const E =
|
|
1586
|
+
const E = h(ke, {
|
|
1589
1587
|
title: D,
|
|
1590
1588
|
collapse: v.collapse,
|
|
1591
1589
|
hasDelete: V !== void 0 && !x,
|
|
@@ -1598,7 +1596,7 @@ const An = /* @__PURE__ */ J({
|
|
|
1598
1596
|
onDelete: () => {
|
|
1599
1597
|
V === void 0 || x || (y.splice(V, 1), d(p.slice(0, -1), y));
|
|
1600
1598
|
}
|
|
1601
|
-
}), me =
|
|
1599
|
+
}), me = h(
|
|
1602
1600
|
"div",
|
|
1603
1601
|
{
|
|
1604
1602
|
style: {
|
|
@@ -1616,17 +1614,17 @@ const An = /* @__PURE__ */ J({
|
|
|
1616
1614
|
collapse: !0,
|
|
1617
1615
|
children: !U.ui && U.array ? [] : {}
|
|
1618
1616
|
});
|
|
1619
|
-
const
|
|
1617
|
+
const b = ye(
|
|
1620
1618
|
p,
|
|
1621
1619
|
U,
|
|
1622
1620
|
(typeof y[c.key] != "object" && (y[c.key] = {}, d(p, y[c.key])), y[c.key]),
|
|
1623
1621
|
v.children[U.key]
|
|
1624
1622
|
);
|
|
1625
|
-
X.push(
|
|
1623
|
+
X.push(b);
|
|
1626
1624
|
}), X;
|
|
1627
1625
|
})()
|
|
1628
1626
|
);
|
|
1629
|
-
return
|
|
1627
|
+
return h(
|
|
1630
1628
|
"div",
|
|
1631
1629
|
{
|
|
1632
1630
|
style: {
|
|
@@ -1640,29 +1638,29 @@ const An = /* @__PURE__ */ J({
|
|
|
1640
1638
|
);
|
|
1641
1639
|
}, at = (p, c, y, v, V, x) => {
|
|
1642
1640
|
if (!c.ui)
|
|
1643
|
-
return console.assert(!1),
|
|
1641
|
+
return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
|
|
1644
1642
|
if (!c.array)
|
|
1645
|
-
return console.assert(!1),
|
|
1643
|
+
return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
|
|
1646
1644
|
if (!v)
|
|
1647
|
-
return console.assert(!1),
|
|
1645
|
+
return console.assert(!1), h("div", "renderLeafArray branch must be valid");
|
|
1648
1646
|
let D;
|
|
1649
1647
|
V !== void 0 && !x ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[V])), D = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), D = y[c.key]);
|
|
1650
1648
|
let E = t(c.name);
|
|
1651
1649
|
v.collapse && ce(g.value, p) && (E += " *");
|
|
1652
|
-
const me =
|
|
1650
|
+
const me = h(ke, {
|
|
1653
1651
|
title: E,
|
|
1654
1652
|
collapse: v.collapse,
|
|
1655
1653
|
hasCreate: !0,
|
|
1656
1654
|
onCollapse: (U) => {
|
|
1657
1655
|
v.collapse = U;
|
|
1658
1656
|
},
|
|
1659
|
-
onMenu: (U,
|
|
1660
|
-
ae.emit("propTreeMenu", { x: U, y:
|
|
1657
|
+
onMenu: (U, b) => {
|
|
1658
|
+
ae.emit("propTreeMenu", { x: U, y: b, keys: p });
|
|
1661
1659
|
},
|
|
1662
1660
|
onCreate: () => {
|
|
1663
1661
|
D.push(q(c, !0)), d(p, D);
|
|
1664
1662
|
}
|
|
1665
|
-
}), X =
|
|
1663
|
+
}), X = h(
|
|
1666
1664
|
"div",
|
|
1667
1665
|
{
|
|
1668
1666
|
style: {
|
|
@@ -1671,14 +1669,14 @@ const An = /* @__PURE__ */ J({
|
|
|
1671
1669
|
},
|
|
1672
1670
|
(() => {
|
|
1673
1671
|
const U = [];
|
|
1674
|
-
for (let
|
|
1675
|
-
const ge = ye(p, c, D, void 0,
|
|
1672
|
+
for (let b = 0; b < D.length; b++) {
|
|
1673
|
+
const ge = ye(p, c, D, void 0, b, !1);
|
|
1676
1674
|
U.push(ge);
|
|
1677
1675
|
}
|
|
1678
1676
|
return U;
|
|
1679
1677
|
})()
|
|
1680
1678
|
);
|
|
1681
|
-
return
|
|
1679
|
+
return h(
|
|
1682
1680
|
"div",
|
|
1683
1681
|
{
|
|
1684
1682
|
style: {
|
|
@@ -1692,10 +1690,10 @@ const An = /* @__PURE__ */ J({
|
|
|
1692
1690
|
);
|
|
1693
1691
|
}, ct = (p, c, y, v, V) => {
|
|
1694
1692
|
if (!c.ui)
|
|
1695
|
-
return console.assert(!1),
|
|
1693
|
+
return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
|
|
1696
1694
|
let x;
|
|
1697
|
-
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 =
|
|
1698
|
-
}, dt = () =>
|
|
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 = lt(p, c, y, v, V) : c.ui === "colorPicker" ? x = nt(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
|
+
}, dt = () => h(
|
|
1699
1697
|
"div",
|
|
1700
1698
|
{
|
|
1701
1699
|
class: "text-body-2",
|
|
@@ -1705,15 +1703,15 @@ const An = /* @__PURE__ */ J({
|
|
|
1705
1703
|
},
|
|
1706
1704
|
(() => {
|
|
1707
1705
|
const p = [];
|
|
1708
|
-
if (
|
|
1709
|
-
|
|
1710
|
-
const c =
|
|
1711
|
-
|
|
1706
|
+
if (l.unique && l.config.length > 0 && l.object) {
|
|
1707
|
+
u[l.unique] || (u[l.unique] = {});
|
|
1708
|
+
const c = u[l.unique];
|
|
1709
|
+
l.config.forEach((y) => {
|
|
1712
1710
|
c[y.key] || (c[y.key] = {
|
|
1713
1711
|
collapse: !0,
|
|
1714
1712
|
children: !y.ui && y.array ? [] : {}
|
|
1715
1713
|
});
|
|
1716
|
-
const v = ye([], y,
|
|
1714
|
+
const v = ye([], y, l.object, c[y.key]);
|
|
1717
1715
|
p.push(v);
|
|
1718
1716
|
});
|
|
1719
1717
|
}
|
|
@@ -1723,19 +1721,19 @@ const An = /* @__PURE__ */ J({
|
|
|
1723
1721
|
return (p, c) => (S(), H(Ve, null, [
|
|
1724
1722
|
A(dt),
|
|
1725
1723
|
A(Gt, {
|
|
1726
|
-
config:
|
|
1727
|
-
object:
|
|
1724
|
+
config: l.config,
|
|
1725
|
+
object: l.object,
|
|
1728
1726
|
"prop-states": g.value
|
|
1729
1727
|
}, null, 8, ["config", "object", "prop-states"])
|
|
1730
1728
|
], 64));
|
|
1731
1729
|
}
|
|
1732
|
-
}),
|
|
1733
|
-
o.component("XPropTree",
|
|
1734
|
-
},
|
|
1730
|
+
}), Al = (o) => {
|
|
1731
|
+
o.component("XPropTree", Dl);
|
|
1732
|
+
}, bl = (o, s, t) => {
|
|
1735
1733
|
const e = o[s];
|
|
1736
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((
|
|
1734
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, n) => {
|
|
1737
1735
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1738
|
-
|
|
1736
|
+
n.bind(
|
|
1739
1737
|
null,
|
|
1740
1738
|
new Error(
|
|
1741
1739
|
"Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -1744,11 +1742,11 @@ const An = /* @__PURE__ */ J({
|
|
|
1744
1742
|
);
|
|
1745
1743
|
});
|
|
1746
1744
|
};
|
|
1747
|
-
async function
|
|
1748
|
-
return (await
|
|
1745
|
+
async function Jl(o) {
|
|
1746
|
+
return (await bl(/* @__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;
|
|
1749
1747
|
}
|
|
1750
|
-
const
|
|
1748
|
+
const Hl = { install: Al };
|
|
1751
1749
|
export {
|
|
1752
|
-
|
|
1753
|
-
|
|
1750
|
+
Hl as default,
|
|
1751
|
+
Jl as loadLocaleMessagePropTree
|
|
1754
1752
|
};
|