x-prop-tree 0.8.18 → 0.8.19
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
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./vendor.cs922lli.js";
|
|
2
|
-
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as
|
|
3
|
-
import { eventBus as
|
|
4
|
-
import { getElement as
|
|
5
|
-
import { useI18n as
|
|
2
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as R, withModifiers as z } from "vue";
|
|
3
|
+
import { eventBus as B, globalObjects as ne, injectDark as re, injectLocale as ie, openNumberDlg as ae, openPromptDlg as oe, useColor as V, useSystem as H, useViewStack as U } from "x-essential-lib";
|
|
4
|
+
import { getElement as se, getItems as ce, getPropertyDefault as W, getPropertyDefaultArray as G, getTag as le, getTypes as ue, isHexColor as de, isThemeColor as fe, makeSlotId as pe, parseNumberUnit as me, pkgs as he, rules as ge, themeColors as _e, unwrapSlotId as ve } from "x-runtime-lib";
|
|
5
|
+
import { useI18n as K } from "vue-i18n";
|
|
6
6
|
import { globalState as ye } from "x-state-lib";
|
|
7
7
|
import { useDisplay as be } from "vuetify";
|
|
8
8
|
import { XBlockly as xe } from "x-block-lib";
|
|
9
9
|
//#region src/utils/common.ts
|
|
10
|
-
function
|
|
10
|
+
function q(e, t) {
|
|
11
11
|
let n = {
|
|
12
12
|
key: "",
|
|
13
13
|
name: "",
|
|
@@ -20,7 +20,7 @@ function Se(e, t) {
|
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function J(e, t) {
|
|
24
24
|
let n = e;
|
|
25
25
|
for (let e of t) {
|
|
26
26
|
if (!n) throw Error("target must be valid");
|
|
@@ -28,42 +28,42 @@ function K(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
return n;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Se(t, n, r, i, a, o) {
|
|
32
32
|
if (i !== void 0 && !a) {
|
|
33
33
|
if (!(r[i] instanceof Array)) {
|
|
34
|
-
let a =
|
|
34
|
+
let a = G(n);
|
|
35
35
|
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
36
36
|
}
|
|
37
37
|
return r[i];
|
|
38
38
|
} else {
|
|
39
39
|
if (!(r[n.key] instanceof Array)) {
|
|
40
|
-
let i =
|
|
40
|
+
let i = G(n);
|
|
41
41
|
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
42
42
|
}
|
|
43
43
|
return r[n.key];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Y(t, n, r, i, a, o) {
|
|
47
47
|
if (i !== void 0 && !a) {
|
|
48
48
|
if (r[i] === void 0) {
|
|
49
|
-
let a =
|
|
49
|
+
let a = W(n);
|
|
50
50
|
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
51
51
|
}
|
|
52
52
|
return r[i];
|
|
53
53
|
} else {
|
|
54
54
|
if (r[n.key] === void 0) {
|
|
55
|
-
let i =
|
|
55
|
+
let i = W(n);
|
|
56
56
|
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
57
57
|
}
|
|
58
58
|
return r[n.key];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function X(t, n, i, a, o, s, c) {
|
|
62
62
|
o !== void 0 && !s ? e(a, i[o]) || (i[o] = r(a), c(t, i[o])) : e(a, i[n.key]) || (i[n.key] = r(a), c(t, i[n.key]));
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/utils/collapseState.ts
|
|
66
|
-
function
|
|
66
|
+
function Z(e, t) {
|
|
67
67
|
let n = e.value;
|
|
68
68
|
for (let e of t) {
|
|
69
69
|
if (!n.children[e]) return !0;
|
|
@@ -71,7 +71,7 @@ function Y(e, t) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.collapse;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ce(e, t, n) {
|
|
75
75
|
let r = e.value;
|
|
76
76
|
for (let e of t) r.children[e] || (r.children[e] = {
|
|
77
77
|
collapse: !0,
|
|
@@ -81,16 +81,16 @@ function we(e, t, n) {
|
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
84
|
+
var we = [
|
|
85
85
|
"key",
|
|
86
86
|
"name",
|
|
87
87
|
"children",
|
|
88
88
|
"default",
|
|
89
89
|
"arrayDefault"
|
|
90
90
|
];
|
|
91
|
-
function
|
|
91
|
+
function Te(n, r) {
|
|
92
92
|
function i(n, r) {
|
|
93
|
-
if (!e(t(n,
|
|
93
|
+
if (!e(t(n, we), t(r, we))) return !1;
|
|
94
94
|
if (n.ui || r.ui) return !0;
|
|
95
95
|
if (n.children.length !== r.children.length) return !1;
|
|
96
96
|
for (let e = 0; e < n.children.length; e++) if (!i(n.children[e], r.children[e])) return !1;
|
|
@@ -98,27 +98,27 @@ function Ee(n, r) {
|
|
|
98
98
|
}
|
|
99
99
|
return i(n, r);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Ee(e, t, n, r, i, a) {
|
|
102
102
|
function o(e, t, n, r, i) {
|
|
103
103
|
if (t.ui) {
|
|
104
104
|
if (t.readonly || t.static) return;
|
|
105
|
-
|
|
106
|
-
} else if (t.array)
|
|
105
|
+
X(e, t, n, r, i, !1, a);
|
|
106
|
+
} else if (t.array) X(e, t, n, r, i, !1, a);
|
|
107
107
|
else for (let i of t.children) typeof n == "object" && typeof r == "object" && o([...e, i.key], i, n[t.key], r[i.key], void 0);
|
|
108
108
|
}
|
|
109
109
|
o(e, t, n, r, i);
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/utils/propertyState.ts
|
|
113
|
-
var
|
|
114
|
-
function
|
|
115
|
-
return
|
|
113
|
+
var De = [["basic", "id"], ["basic", "name"]];
|
|
114
|
+
function Oe(t) {
|
|
115
|
+
return De.find((n) => e(t, n));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ke(e, t, n, i, a, o, s) {
|
|
118
118
|
return e = r(e), a === void 0 ? e.push(t.key) : (e.push(a), o && e.push(t.key)), e?.[0] === "runtime" ? {
|
|
119
119
|
change: !1,
|
|
120
120
|
warning: !1
|
|
121
|
-
} :
|
|
121
|
+
} : Oe(e) ? (i.change = !1, i.warning = !1, {
|
|
122
122
|
change: i.change,
|
|
123
123
|
warning: i.warning
|
|
124
124
|
}) : t.ui ? t.array && !s ? Me(e, t, n, i, a, o) : Ne(t, n, i, a, o) : t.array ? Ae(e, t, n, i, a, o) : je(e, t, n, i, a, o);
|
|
@@ -144,11 +144,11 @@ function Ae(t, n, r, i, a, o) {
|
|
|
144
144
|
warning: !1,
|
|
145
145
|
children: {}
|
|
146
146
|
};
|
|
147
|
-
let { change: n, warning: o } =
|
|
147
|
+
let { change: n, warning: o } = ke(t, a, s[e], r.children[a.key], e, !0);
|
|
148
148
|
!r.change && n && (r.change = n), !r.change && o && (r.warning = o), !i.change && r.change && (i.change = r.change), !i.warning && r.warning && (i.warning = r.warning);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
return i.change ||= !e(s,
|
|
151
|
+
return i.change ||= !e(s, G(n)), {
|
|
152
152
|
change: i.change,
|
|
153
153
|
warning: i.warning
|
|
154
154
|
};
|
|
@@ -168,7 +168,7 @@ function je(e, t, n, r, i, a) {
|
|
|
168
168
|
warning: !1,
|
|
169
169
|
children: {}
|
|
170
170
|
};
|
|
171
|
-
let { change: a, warning: s } =
|
|
171
|
+
let { change: a, warning: s } = ke(e, i, o, r.children[i.key], void 0, !1);
|
|
172
172
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
173
173
|
}
|
|
174
174
|
return {
|
|
@@ -190,10 +190,10 @@ function Me(t, n, r, i, a, o) {
|
|
|
190
190
|
warning: !1,
|
|
191
191
|
children: {}
|
|
192
192
|
};
|
|
193
|
-
let { change: r, warning: a } =
|
|
193
|
+
let { change: r, warning: a } = ke(t, n, s, i.children[e], e, !1, !0);
|
|
194
194
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
195
195
|
}
|
|
196
|
-
return i.change ||= !e(s,
|
|
196
|
+
return i.change ||= !e(s, G(n)), {
|
|
197
197
|
change: i.change,
|
|
198
198
|
warning: i.warning
|
|
199
199
|
};
|
|
@@ -201,7 +201,7 @@ function Me(t, n, r, i, a, o) {
|
|
|
201
201
|
function Ne(t, n, r, i, a) {
|
|
202
202
|
if (!t.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
203
203
|
let o;
|
|
204
|
-
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o,
|
|
204
|
+
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o, W(t)), {
|
|
205
205
|
change: r.change,
|
|
206
206
|
warning: r.warning
|
|
207
207
|
};
|
|
@@ -226,11 +226,11 @@ function Pe(e, t, n) {
|
|
|
226
226
|
warning: !1,
|
|
227
227
|
children: {}
|
|
228
228
|
};
|
|
229
|
-
r.children[e.key] = t,
|
|
229
|
+
r.children[e.key] = t, ke([], e, n, t, void 0, !1);
|
|
230
230
|
}
|
|
231
231
|
e.value = r;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Q(e, t) {
|
|
234
234
|
let n = e;
|
|
235
235
|
for (let e of t) {
|
|
236
236
|
if (!n.children[e]) return !1;
|
|
@@ -286,7 +286,7 @@ function at() {
|
|
|
286
286
|
function ot(e) {
|
|
287
287
|
T(He, e);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function $() {
|
|
290
290
|
return g(He);
|
|
291
291
|
}
|
|
292
292
|
function st(e) {
|
|
@@ -313,52 +313,52 @@ function pt(t, n, r, i) {
|
|
|
313
313
|
if (n.ui) {
|
|
314
314
|
if (n.readonly || n.static) return;
|
|
315
315
|
if (n.array) {
|
|
316
|
-
let a = t[n.key], o =
|
|
316
|
+
let a = t[n.key], o = G(n);
|
|
317
317
|
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
318
318
|
} else {
|
|
319
|
-
let a = t[n.key], o =
|
|
319
|
+
let a = t[n.key], o = W(n);
|
|
320
320
|
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
321
321
|
}
|
|
322
322
|
} else if (n.array) {
|
|
323
|
-
let a = t[n.key], o =
|
|
323
|
+
let a = t[n.key], o = G(n);
|
|
324
324
|
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
325
325
|
} else for (let e of n.children) pt(t[n.key], e, [...r, n.key], i);
|
|
326
326
|
}
|
|
327
327
|
function mt(t, n, r, i) {
|
|
328
328
|
let a = r.at(-1);
|
|
329
329
|
if (a === void 0) return;
|
|
330
|
-
let o =
|
|
330
|
+
let o = q(n, r);
|
|
331
331
|
if (o) if (o.ui) {
|
|
332
332
|
if (o.readonly || o.static) return;
|
|
333
333
|
if (o.array) if (typeof a == "string") {
|
|
334
|
-
let n =
|
|
334
|
+
let n = J(t, r.slice(0, -1));
|
|
335
335
|
if (!n) return;
|
|
336
|
-
let s = n[a], c =
|
|
336
|
+
let s = n[a], c = G(o);
|
|
337
337
|
e(c, s) || (n[a] = c, i(r, c));
|
|
338
338
|
} else {
|
|
339
|
-
let n =
|
|
339
|
+
let n = J(t, r.slice(0, -1));
|
|
340
340
|
if (!n) return;
|
|
341
|
-
let s = n[a], c =
|
|
341
|
+
let s = n[a], c = W(o);
|
|
342
342
|
e(c, s) || (n[a] = c, i(r, c));
|
|
343
343
|
}
|
|
344
344
|
else {
|
|
345
|
-
let n =
|
|
345
|
+
let n = J(t, r.slice(0, -1));
|
|
346
346
|
if (!n) return;
|
|
347
|
-
let s = n[a], c =
|
|
347
|
+
let s = n[a], c = W(o);
|
|
348
348
|
e(c, s) || (n[a] = c, i(r, c));
|
|
349
349
|
}
|
|
350
350
|
} else if (o.array) if (typeof a == "string") {
|
|
351
|
-
let n =
|
|
351
|
+
let n = J(t, r.slice(0, -1));
|
|
352
352
|
if (!n) return;
|
|
353
|
-
let s = n[a], c =
|
|
353
|
+
let s = n[a], c = G(o);
|
|
354
354
|
e(c, s) || (n[a] = c, i(r, c));
|
|
355
355
|
} else {
|
|
356
|
-
let e =
|
|
356
|
+
let e = J(t, r);
|
|
357
357
|
if (!e) return;
|
|
358
358
|
for (let t of o.children) pt(e, t, r, i);
|
|
359
359
|
}
|
|
360
360
|
else {
|
|
361
|
-
let e =
|
|
361
|
+
let e = J(t, r);
|
|
362
362
|
if (!e) return;
|
|
363
363
|
for (let t of o.children) pt(e, t, r, i);
|
|
364
364
|
}
|
|
@@ -366,16 +366,16 @@ function mt(t, n, r, i) {
|
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region src/components/menu/func/copy.ts
|
|
368
368
|
function ht(e) {
|
|
369
|
-
let { t } =
|
|
369
|
+
let { t } = K(), n = $e(), r = tt();
|
|
370
370
|
function i() {
|
|
371
371
|
return !0;
|
|
372
372
|
}
|
|
373
373
|
function a() {
|
|
374
|
-
let t =
|
|
374
|
+
let t = q(n.value, e.value);
|
|
375
375
|
if (!t) return;
|
|
376
376
|
let i = {
|
|
377
377
|
property: t,
|
|
378
|
-
object:
|
|
378
|
+
object: J(r.value, e.value)
|
|
379
379
|
};
|
|
380
380
|
localStorage.setItem("propTreeCopy", JSON.stringify(i));
|
|
381
381
|
}
|
|
@@ -390,10 +390,10 @@ function ht(e) {
|
|
|
390
390
|
//#endregion
|
|
391
391
|
//#region src/components/menu/func/paste.ts
|
|
392
392
|
function gt(e) {
|
|
393
|
-
let { t } =
|
|
393
|
+
let { t } = K(), n = $e(), r = tt(), i = $();
|
|
394
394
|
function a() {
|
|
395
395
|
if (e.value.length <= 0) return !1;
|
|
396
|
-
let t =
|
|
396
|
+
let t = q(n.value, e.value);
|
|
397
397
|
if (!t) return !1;
|
|
398
398
|
let r = localStorage.getItem("propTreeCopy");
|
|
399
399
|
if (!r) return !1;
|
|
@@ -403,11 +403,11 @@ function gt(e) {
|
|
|
403
403
|
} catch (e) {
|
|
404
404
|
return console.error("parse propTreeCopy failed", e), !1;
|
|
405
405
|
}
|
|
406
|
-
return !!
|
|
406
|
+
return !!Te(t, i.property);
|
|
407
407
|
}
|
|
408
408
|
function o() {
|
|
409
409
|
if (e.value.length <= 0) return;
|
|
410
|
-
let t =
|
|
410
|
+
let t = q(n.value, e.value);
|
|
411
411
|
if (!t) return;
|
|
412
412
|
let a = localStorage.getItem("propTreeCopy");
|
|
413
413
|
if (!a) return;
|
|
@@ -418,11 +418,11 @@ function gt(e) {
|
|
|
418
418
|
console.error("parse propTreeCopy failed", e);
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
if (!
|
|
422
|
-
let s =
|
|
421
|
+
if (!Te(t, o.property)) return;
|
|
422
|
+
let s = J(r.value, e.value.slice(0, -1));
|
|
423
423
|
if (!s) return;
|
|
424
424
|
let c = e.value.at(-1);
|
|
425
|
-
|
|
425
|
+
Ee(e.value, t, s, o.object, typeof c == "number" ? c : void 0, i);
|
|
426
426
|
}
|
|
427
427
|
function s(e) {
|
|
428
428
|
a() && e.push({
|
|
@@ -435,9 +435,9 @@ function gt(e) {
|
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/components/menu/func/reset.ts
|
|
437
437
|
function _t(e) {
|
|
438
|
-
let { t } =
|
|
438
|
+
let { t } = K(), n = $e(), r = tt(), i = at(), a = $();
|
|
439
439
|
function o() {
|
|
440
|
-
return !(e.value.length <= 0 || !
|
|
440
|
+
return !(e.value.length <= 0 || !Q(i.value, e.value));
|
|
441
441
|
}
|
|
442
442
|
function s() {
|
|
443
443
|
mt(r.value, n.value, e.value, a);
|
|
@@ -458,7 +458,7 @@ var vt = /* @__PURE__ */ m({
|
|
|
458
458
|
let t = E(0), n = E(0), r = E([]), i = s(() => [t.value, n.value]), { tryPushCopy: a } = ht(r), { tryPushPaste: l } = gt(r), { tryPushReset: d } = _t(r), m = s(() => {
|
|
459
459
|
let e = [];
|
|
460
460
|
return a(e), l(e), d(e), e;
|
|
461
|
-
}), { open: h } =
|
|
461
|
+
}), { open: h } = U("propTreeMenu", (e) => {
|
|
462
462
|
t.value = e.x, n.value = e.y, r.value = e.keys;
|
|
463
463
|
});
|
|
464
464
|
return (e, t) => {
|
|
@@ -510,7 +510,7 @@ var vt = /* @__PURE__ */ m({
|
|
|
510
510
|
"delete"
|
|
511
511
|
],
|
|
512
512
|
setup(e, { emit: t }) {
|
|
513
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
513
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
514
514
|
background: a.value ? r.value : n.value,
|
|
515
515
|
height: "36px",
|
|
516
516
|
marginBottom: "1px",
|
|
@@ -526,7 +526,7 @@ var vt = /* @__PURE__ */ m({
|
|
|
526
526
|
class: "d-flex align-center cursor-pointer",
|
|
527
527
|
style: b(o.value),
|
|
528
528
|
onClick: f,
|
|
529
|
-
onContextmenu:
|
|
529
|
+
onContextmenu: z(m, ["self", "prevent"]),
|
|
530
530
|
onMouseout: n[2] ||= (e) => a.value = !1,
|
|
531
531
|
onMouseover: n[3] ||= (e) => a.value = !0
|
|
532
532
|
}, [
|
|
@@ -542,7 +542,7 @@ var vt = /* @__PURE__ */ m({
|
|
|
542
542
|
density: "compact",
|
|
543
543
|
icon: "mdi-plus",
|
|
544
544
|
variant: "text",
|
|
545
|
-
onClick: n[0] ||=
|
|
545
|
+
onClick: n[0] ||= z((e) => i("create"), ["stop"])
|
|
546
546
|
})) : l("", !0),
|
|
547
547
|
e.hasDelete ? (w(), c(h, {
|
|
548
548
|
key: 1,
|
|
@@ -550,7 +550,7 @@ var vt = /* @__PURE__ */ m({
|
|
|
550
550
|
density: "compact",
|
|
551
551
|
icon: "mdi-minus",
|
|
552
552
|
variant: "text",
|
|
553
|
-
onClick: n[1] ||=
|
|
553
|
+
onClick: n[1] ||= z((t) => i("delete", e.index), ["stop"])
|
|
554
554
|
})) : l("", !0)
|
|
555
555
|
], 36)), [[g]]);
|
|
556
556
|
};
|
|
@@ -559,13 +559,13 @@ var vt = /* @__PURE__ */ m({
|
|
|
559
559
|
//#endregion
|
|
560
560
|
//#region src/composables/adaptSlotList/index.ts
|
|
561
561
|
function xt() {
|
|
562
|
-
let e = qe(), t = Ye(), n = Ze(), { i18n: r } =
|
|
562
|
+
let e = qe(), t = Ye(), n = Ze(), { i18n: r } = ne, o = E([]);
|
|
563
563
|
dt(o);
|
|
564
564
|
let s = () => {
|
|
565
565
|
if (!e.value || !t.value || !n.value) return [];
|
|
566
|
-
let s =
|
|
566
|
+
let s = he[e.value];
|
|
567
567
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
568
|
-
let c =
|
|
568
|
+
let c = le(t.value, n.value), l = [];
|
|
569
569
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
570
570
|
let t = s.groups[c][e], n = i(o, t.key);
|
|
571
571
|
l.push({
|
|
@@ -578,15 +578,16 @@ function xt() {
|
|
|
578
578
|
});
|
|
579
579
|
let a = 0;
|
|
580
580
|
for (let e of t.items) {
|
|
581
|
-
let n =
|
|
581
|
+
let n = se(e);
|
|
582
582
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
583
|
-
let i =
|
|
583
|
+
let i = pe("elementSlot", n.key, e.key), o = `${r.global.t(n.name)} / ${r.global.t(e.name)}`;
|
|
584
584
|
l.push({
|
|
585
585
|
id: i,
|
|
586
586
|
type: 1,
|
|
587
587
|
name: o,
|
|
588
588
|
position: a++,
|
|
589
|
-
group: t.key
|
|
589
|
+
group: t.key,
|
|
590
|
+
names: [n.name, e.name]
|
|
590
591
|
});
|
|
591
592
|
}
|
|
592
593
|
}
|
|
@@ -606,13 +607,14 @@ function xt() {
|
|
|
606
607
|
for (let e of u.comps) {
|
|
607
608
|
let t = d[e.id];
|
|
608
609
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
609
|
-
let t =
|
|
610
|
+
let t = pe("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
610
611
|
l.push({
|
|
611
612
|
id: t,
|
|
612
613
|
type: 1,
|
|
613
614
|
name: r,
|
|
614
615
|
position: f++,
|
|
615
|
-
group: e.groupId
|
|
616
|
+
group: e.groupId,
|
|
617
|
+
names: [e.name, n.name]
|
|
616
618
|
});
|
|
617
619
|
}
|
|
618
620
|
}
|
|
@@ -717,28 +719,28 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
717
719
|
},
|
|
718
720
|
emits: ["x-click"],
|
|
719
721
|
setup(e, { emit: t }) {
|
|
720
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
721
|
-
background:
|
|
722
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
723
|
+
background: a.value ? r.value : n.value,
|
|
722
724
|
height: "30px",
|
|
723
725
|
marginTop: "1px",
|
|
724
726
|
userSelect: "none"
|
|
725
727
|
}));
|
|
726
|
-
return (
|
|
727
|
-
let
|
|
728
|
+
return (t, n) => {
|
|
729
|
+
let r = O("v-icon"), s = k("ripple");
|
|
728
730
|
return L((w(), u("div", {
|
|
729
731
|
class: "d-flex align-center cursor-pointer",
|
|
730
|
-
style: b(
|
|
731
|
-
onClick:
|
|
732
|
-
onMouseout:
|
|
733
|
-
onMouseover:
|
|
732
|
+
style: b(o.value),
|
|
733
|
+
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
734
|
+
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
735
|
+
onMouseover: n[2] ||= (e) => a.value = !0
|
|
734
736
|
}, [
|
|
735
|
-
p(
|
|
736
|
-
icon:
|
|
737
|
+
p(r, {
|
|
738
|
+
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
737
739
|
size: "small"
|
|
738
740
|
}, null, 8, ["icon"]),
|
|
739
|
-
d("span", wt, A(
|
|
740
|
-
d("span", Tt, A(
|
|
741
|
-
], 36)), [[
|
|
741
|
+
d("span", wt, A(e.title), 1),
|
|
742
|
+
d("span", Tt, A(e.count), 1)
|
|
743
|
+
], 36)), [[s]]);
|
|
742
744
|
};
|
|
743
745
|
}
|
|
744
746
|
}), Dt = { class: "text-body-large ml-6" }, Ot = /* @__PURE__ */ m({
|
|
@@ -749,7 +751,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
749
751
|
},
|
|
750
752
|
emits: ["x-click"],
|
|
751
753
|
setup(e, { emit: t }) {
|
|
752
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
754
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
753
755
|
background: a.value ? r.value : n.value,
|
|
754
756
|
height: "48px",
|
|
755
757
|
marginTop: "1px",
|
|
@@ -772,29 +774,27 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
772
774
|
}, jt = /* @__PURE__ */ m({
|
|
773
775
|
__name: "index",
|
|
774
776
|
props: {
|
|
775
|
-
modelValue: {},
|
|
776
|
-
modelModifiers: {},
|
|
777
777
|
open: {
|
|
778
778
|
type: Boolean,
|
|
779
779
|
required: !0
|
|
780
780
|
},
|
|
781
781
|
openModifiers: {}
|
|
782
782
|
},
|
|
783
|
-
emits: ["
|
|
784
|
-
setup(e) {
|
|
785
|
-
let { t } =
|
|
786
|
-
let t = i(
|
|
787
|
-
t && n(
|
|
788
|
-
},
|
|
789
|
-
|
|
783
|
+
emits: /* @__PURE__ */ v(["x-select"], ["update:open"]),
|
|
784
|
+
setup(e, { emit: t }) {
|
|
785
|
+
let { t: r } = K(), a = N(e, "open"), s = t, d = ft(), f = (e) => {
|
|
786
|
+
let t = i(d, e);
|
|
787
|
+
t && n(d, e, !t.collapse);
|
|
788
|
+
}, p = (e) => {
|
|
789
|
+
a.value = !1, s("x-select", e);
|
|
790
790
|
};
|
|
791
|
-
return (e,
|
|
791
|
+
return (e, t) => j(d).length > 0 ? (w(), u("div", kt, [(w(!0), u(o, null, D(j(d), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(Et, {
|
|
792
792
|
key: 0,
|
|
793
793
|
id: e.id,
|
|
794
794
|
collapse: e.collapse,
|
|
795
795
|
count: e.count ?? 0,
|
|
796
796
|
title: e.name,
|
|
797
|
-
onXClick:
|
|
797
|
+
onXClick: f
|
|
798
798
|
}, null, 8, [
|
|
799
799
|
"id",
|
|
800
800
|
"collapse",
|
|
@@ -804,8 +804,8 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
804
804
|
key: 1,
|
|
805
805
|
id: e.id,
|
|
806
806
|
title: e.name,
|
|
807
|
-
onXClick:
|
|
808
|
-
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(
|
|
807
|
+
onXClick: p
|
|
808
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(r)("x-prop-tree.noAdaptSlot")), 1));
|
|
809
809
|
}
|
|
810
810
|
}), Mt = { class: "text-body-large" }, Nt = /* @__PURE__ */ m({
|
|
811
811
|
__name: "index",
|
|
@@ -819,12 +819,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
819
819
|
default: !1
|
|
820
820
|
}
|
|
821
821
|
}, {
|
|
822
|
-
modelValue: {},
|
|
822
|
+
modelValue: { default: null },
|
|
823
823
|
modelModifiers: {}
|
|
824
824
|
}),
|
|
825
825
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
826
826
|
setup(e, { emit: t }) {
|
|
827
|
-
let { t: n } =
|
|
827
|
+
let { t: n } = K(), r = be(), { sysBarAvail: a } = H(), { backgroundColor1: o } = V(), u = N(e, "modelValue"), m = t, h = ft(), g = s(() => {
|
|
828
828
|
let e = "100%";
|
|
829
829
|
return r.mdAndUp.value && (e = "400px"), {
|
|
830
830
|
background: o.value,
|
|
@@ -838,22 +838,39 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
838
838
|
height: `calc(100% - ${e}px)`
|
|
839
839
|
};
|
|
840
840
|
}), x = s(() => ({ height: "60px" })), S = s(() => {
|
|
841
|
-
if (
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
841
|
+
if (u.value) {
|
|
842
|
+
let { kind: e } = ve(u.value.id);
|
|
843
|
+
return e === "elementSlot" || e === "multipleElementSlot" ? u.value.names.map((e) => n(e)).join(" / ") : u.value.names.join(" / ");
|
|
844
|
+
} else return n("x-runtime-lib.notSet");
|
|
845
|
+
}), { open: T } = U(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
846
|
+
C(() => {
|
|
846
847
|
T.value = !1;
|
|
847
|
-
})
|
|
848
|
+
});
|
|
849
|
+
function E(e) {
|
|
850
|
+
if (!e) {
|
|
851
|
+
u.value = null;
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
let t = i(h, e);
|
|
855
|
+
if (!t) {
|
|
856
|
+
u.value = null;
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
u.value = {
|
|
860
|
+
id: t.id,
|
|
861
|
+
names: t.names
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
return (t, r) => {
|
|
848
865
|
let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
849
866
|
return w(), c(s, {
|
|
850
867
|
modelValue: j(T),
|
|
851
|
-
"onUpdate:modelValue": r[
|
|
868
|
+
"onUpdate:modelValue": r[5] ||= (e) => _(T) ? T.value = e : null,
|
|
852
869
|
fullscreen: "",
|
|
853
870
|
"no-click-animation": "",
|
|
854
871
|
persistent: "",
|
|
855
872
|
transition: "scroll-x-reverse-transition",
|
|
856
|
-
onKeydown: r[
|
|
873
|
+
onKeydown: r[6] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
857
874
|
}, {
|
|
858
875
|
activator: I(({ props: t }) => [p(i, y(t, {
|
|
859
876
|
block: "",
|
|
@@ -868,12 +885,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
868
885
|
density: "compact",
|
|
869
886
|
icon: "mdi-minus",
|
|
870
887
|
variant: "text",
|
|
871
|
-
onClick: r[0] ||=
|
|
888
|
+
onClick: r[0] ||= z((e) => m("delete"), ["stop"])
|
|
872
889
|
})) : l("", !0)]),
|
|
873
890
|
default: I(() => [d("div", {
|
|
874
891
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
875
|
-
onClick: r[
|
|
876
|
-
onContextmenu: r[
|
|
892
|
+
onClick: r[3] ||= z((e) => T.value = !1, ["self"]),
|
|
893
|
+
onContextmenu: r[4] ||= z((e) => T.value = !1, ["self", "prevent"])
|
|
877
894
|
}, [d("div", {
|
|
878
895
|
class: "elevation-2",
|
|
879
896
|
style: b(g.value)
|
|
@@ -900,11 +917,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
900
917
|
class: "overflow-y-auto",
|
|
901
918
|
style: b(v.value)
|
|
902
919
|
}, [p(jt, {
|
|
903
|
-
modelValue: u.value,
|
|
904
|
-
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
905
920
|
open: j(T),
|
|
906
|
-
"onUpdate:open": r[
|
|
907
|
-
|
|
921
|
+
"onUpdate:open": r[2] ||= (e) => _(T) ? T.value = e : null,
|
|
922
|
+
onXSelect: E
|
|
923
|
+
}, null, 8, ["open"]), d("div", { style: b(x.value) }, null, 4)], 4)
|
|
908
924
|
], 4)], 32)]),
|
|
909
925
|
_: 1
|
|
910
926
|
}, 8, ["modelValue"]);
|
|
@@ -920,28 +936,28 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
920
936
|
},
|
|
921
937
|
emits: ["x-click"],
|
|
922
938
|
setup(e, { emit: t }) {
|
|
923
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
924
|
-
background:
|
|
939
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
940
|
+
background: a.value ? r.value : n.value,
|
|
925
941
|
height: "30px",
|
|
926
942
|
marginTop: "1px",
|
|
927
943
|
userSelect: "none"
|
|
928
944
|
}));
|
|
929
|
-
return (
|
|
930
|
-
let
|
|
945
|
+
return (t, n) => {
|
|
946
|
+
let r = O("v-icon"), s = k("ripple");
|
|
931
947
|
return L((w(), u("div", {
|
|
932
948
|
class: "d-flex align-center cursor-pointer",
|
|
933
|
-
style: b(
|
|
934
|
-
onClick:
|
|
935
|
-
onMouseout:
|
|
936
|
-
onMouseover:
|
|
949
|
+
style: b(o.value),
|
|
950
|
+
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
951
|
+
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
952
|
+
onMouseover: n[2] ||= (e) => a.value = !0
|
|
937
953
|
}, [
|
|
938
|
-
p(
|
|
939
|
-
icon:
|
|
954
|
+
p(r, {
|
|
955
|
+
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
940
956
|
size: "small"
|
|
941
957
|
}, null, 8, ["icon"]),
|
|
942
|
-
d("span", Pt, A(
|
|
943
|
-
d("span", Ft, A(
|
|
944
|
-
], 36)), [[
|
|
958
|
+
d("span", Pt, A(e.title), 1),
|
|
959
|
+
d("span", Ft, A(e.count), 1)
|
|
960
|
+
], 36)), [[s]]);
|
|
945
961
|
};
|
|
946
962
|
}
|
|
947
963
|
}), Lt = { class: "text-body-large ml-6" }, Rt = /* @__PURE__ */ m({
|
|
@@ -952,21 +968,21 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
952
968
|
},
|
|
953
969
|
emits: ["x-click"],
|
|
954
970
|
setup(e, { emit: t }) {
|
|
955
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
956
|
-
background:
|
|
971
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
972
|
+
background: a.value ? r.value : n.value,
|
|
957
973
|
height: "48px",
|
|
958
974
|
marginTop: "1px",
|
|
959
975
|
userSelect: "none"
|
|
960
976
|
}));
|
|
961
|
-
return (
|
|
962
|
-
let
|
|
977
|
+
return (t, n) => {
|
|
978
|
+
let r = k("ripple");
|
|
963
979
|
return L((w(), u("div", {
|
|
964
980
|
class: "d-flex align-center cursor-pointer",
|
|
965
|
-
style: b(
|
|
966
|
-
onClick:
|
|
967
|
-
onMouseout:
|
|
968
|
-
onMouseover:
|
|
969
|
-
}, [d("span", Lt, A(
|
|
981
|
+
style: b(o.value),
|
|
982
|
+
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
983
|
+
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
984
|
+
onMouseover: n[2] ||= (e) => a.value = !0
|
|
985
|
+
}, [d("span", Lt, A(e.title), 1)], 36)), [[r]]);
|
|
970
986
|
};
|
|
971
987
|
}
|
|
972
988
|
}), zt = { key: 0 }, Bt = {
|
|
@@ -975,29 +991,29 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
975
991
|
}, Vt = /* @__PURE__ */ m({
|
|
976
992
|
__name: "index",
|
|
977
993
|
props: {
|
|
978
|
-
modelValue: {},
|
|
979
|
-
modelModifiers: {},
|
|
980
994
|
open: {
|
|
981
995
|
type: Boolean,
|
|
982
996
|
required: !0
|
|
983
997
|
},
|
|
984
998
|
openModifiers: {}
|
|
985
999
|
},
|
|
986
|
-
emits: ["
|
|
987
|
-
setup(e) {
|
|
988
|
-
let { t } =
|
|
989
|
-
|
|
990
|
-
t
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1000
|
+
emits: /* @__PURE__ */ v(["x-select"], ["update:open"]),
|
|
1001
|
+
setup(e, { emit: t }) {
|
|
1002
|
+
let { t: r } = K(), a = N(e, "open"), s = t, d = ct();
|
|
1003
|
+
function f(e) {
|
|
1004
|
+
let t = i(d, e);
|
|
1005
|
+
t && n(d, e, !t.collapse);
|
|
1006
|
+
}
|
|
1007
|
+
function p(e) {
|
|
1008
|
+
a.value = !1, s("x-select", e), B.emit("refreshDepends");
|
|
1009
|
+
}
|
|
1010
|
+
return (e, t) => j(d).length > 0 ? (w(), u("div", zt, [(w(!0), u(o, null, D(j(d), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(It, {
|
|
995
1011
|
key: 0,
|
|
996
1012
|
id: e.id,
|
|
997
1013
|
collapse: e.collapse,
|
|
998
1014
|
count: e.count ?? 0,
|
|
999
1015
|
title: e.name,
|
|
1000
|
-
onXClick:
|
|
1016
|
+
onXClick: f
|
|
1001
1017
|
}, null, 8, [
|
|
1002
1018
|
"id",
|
|
1003
1019
|
"collapse",
|
|
@@ -1007,8 +1023,8 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1007
1023
|
key: 1,
|
|
1008
1024
|
id: e.id,
|
|
1009
1025
|
title: e.name,
|
|
1010
|
-
onXClick:
|
|
1011
|
-
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(
|
|
1026
|
+
onXClick: p
|
|
1027
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(r)("x-prop-tree.noComp")), 1));
|
|
1012
1028
|
}
|
|
1013
1029
|
}), Ht = { class: "text-body-large" }, Ut = /* @__PURE__ */ m({
|
|
1014
1030
|
__name: "index",
|
|
@@ -1022,12 +1038,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1022
1038
|
default: !1
|
|
1023
1039
|
}
|
|
1024
1040
|
}, {
|
|
1025
|
-
modelValue: {},
|
|
1041
|
+
modelValue: { default: null },
|
|
1026
1042
|
modelModifiers: {}
|
|
1027
1043
|
}),
|
|
1028
1044
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1029
1045
|
setup(e, { emit: t }) {
|
|
1030
|
-
let { t: n } =
|
|
1046
|
+
let { t: n } = K(), r = be(), { sysBarAvail: a } = H(), { backgroundColor1: o } = V(), u = N(e, "modelValue"), m = t, h = ct(), g = s(() => {
|
|
1031
1047
|
let e = "100%";
|
|
1032
1048
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1033
1049
|
background: o.value,
|
|
@@ -1040,23 +1056,35 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1040
1056
|
position: "relative",
|
|
1041
1057
|
height: `calc(100% - ${e}px)`
|
|
1042
1058
|
};
|
|
1043
|
-
}), x = s(() => ({ height: "60px" })), S = s(() => {
|
|
1044
|
-
|
|
1045
|
-
let e = i(h, u.value);
|
|
1046
|
-
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1047
|
-
}), { open: T } = H(`propTreeCompSelectDlg${M()}`);
|
|
1048
|
-
return C(() => {
|
|
1059
|
+
}), x = s(() => ({ height: "60px" })), S = s(() => u.value ? u.value.name : n("x-runtime-lib.notSet")), { open: T } = U(`propTreeCompSelectDlg${M()}`);
|
|
1060
|
+
C(() => {
|
|
1049
1061
|
T.value = !1;
|
|
1050
|
-
})
|
|
1062
|
+
});
|
|
1063
|
+
function E(e) {
|
|
1064
|
+
if (!e) {
|
|
1065
|
+
u.value = null;
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1068
|
+
let t = i(h, e);
|
|
1069
|
+
if (!t) {
|
|
1070
|
+
u.value = null;
|
|
1071
|
+
return;
|
|
1072
|
+
}
|
|
1073
|
+
u.value = {
|
|
1074
|
+
id: t.id,
|
|
1075
|
+
name: t.name
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
return (t, r) => {
|
|
1051
1079
|
let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
1052
1080
|
return w(), c(s, {
|
|
1053
1081
|
modelValue: j(T),
|
|
1054
|
-
"onUpdate:modelValue": r[
|
|
1082
|
+
"onUpdate:modelValue": r[5] ||= (e) => _(T) ? T.value = e : null,
|
|
1055
1083
|
fullscreen: "",
|
|
1056
1084
|
"no-click-animation": "",
|
|
1057
1085
|
persistent: "",
|
|
1058
1086
|
transition: "scroll-x-reverse-transition",
|
|
1059
|
-
onKeydown: r[
|
|
1087
|
+
onKeydown: r[6] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1060
1088
|
}, {
|
|
1061
1089
|
activator: I(({ props: t }) => [p(i, y(t, {
|
|
1062
1090
|
block: "",
|
|
@@ -1071,12 +1099,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1071
1099
|
density: "compact",
|
|
1072
1100
|
icon: "mdi-minus",
|
|
1073
1101
|
variant: "text",
|
|
1074
|
-
onClick: r[0] ||=
|
|
1102
|
+
onClick: r[0] ||= z((e) => m("delete"), ["stop"])
|
|
1075
1103
|
})) : l("", !0)]),
|
|
1076
1104
|
default: I(() => [d("div", {
|
|
1077
1105
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1078
|
-
onClick: r[
|
|
1079
|
-
onContextmenu: r[
|
|
1106
|
+
onClick: r[3] ||= z((e) => T.value = !1, ["self"]),
|
|
1107
|
+
onContextmenu: r[4] ||= z((e) => T.value = !1, ["self", "prevent"])
|
|
1080
1108
|
}, [d("div", {
|
|
1081
1109
|
class: "elevation-2",
|
|
1082
1110
|
style: b(g.value)
|
|
@@ -1103,11 +1131,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1103
1131
|
class: "overflow-y-auto",
|
|
1104
1132
|
style: b(v.value)
|
|
1105
1133
|
}, [p(Vt, {
|
|
1106
|
-
modelValue: u.value,
|
|
1107
|
-
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
1108
1134
|
open: j(T),
|
|
1109
|
-
"onUpdate:open": r[
|
|
1110
|
-
|
|
1135
|
+
"onUpdate:open": r[2] ||= (e) => _(T) ? T.value = e : null,
|
|
1136
|
+
onXSelect: E
|
|
1137
|
+
}, null, 8, ["open"]), d("div", { style: b(x.value) }, null, 4)], 4)
|
|
1111
1138
|
], 4)], 32)]),
|
|
1112
1139
|
_: 1
|
|
1113
1140
|
}, 8, ["modelValue"]);
|
|
@@ -1130,9 +1157,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1130
1157
|
}),
|
|
1131
1158
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1132
1159
|
setup(e, { emit: t }) {
|
|
1133
|
-
let { isMobile: n } =
|
|
1160
|
+
let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1134
1161
|
if (!t || e.readonly || !n()) return;
|
|
1135
|
-
let i = await
|
|
1162
|
+
let i = await oe({
|
|
1136
1163
|
title: "",
|
|
1137
1164
|
value: r.value
|
|
1138
1165
|
});
|
|
@@ -1159,7 +1186,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1159
1186
|
density: "compact",
|
|
1160
1187
|
icon: "mdi-minus",
|
|
1161
1188
|
variant: "text",
|
|
1162
|
-
onClick: n[1] ||=
|
|
1189
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1163
1190
|
})) : l("", !0)]);
|
|
1164
1191
|
};
|
|
1165
1192
|
}
|
|
@@ -1182,7 +1209,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1182
1209
|
"update:scale"
|
|
1183
1210
|
],
|
|
1184
1211
|
setup(e, { expose: t }) {
|
|
1185
|
-
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a =
|
|
1212
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = re(), o = ie(), s = qe(), l = te("target"), u = () => {
|
|
1186
1213
|
let e = JSON.parse(n.value);
|
|
1187
1214
|
l.value?.load(e);
|
|
1188
1215
|
};
|
|
@@ -1226,14 +1253,14 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1226
1253
|
}),
|
|
1227
1254
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1228
1255
|
setup(e, { emit: t }) {
|
|
1229
|
-
let { t: n } =
|
|
1256
|
+
let { t: n } = K(), { sysBarAvail: r } = H(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: o } = V(), u = N(e, "modelValue"), m = t, h = E(!1), g = E(1), v = s(() => {
|
|
1230
1257
|
let e = 48;
|
|
1231
1258
|
return r.value && (e += 24), {
|
|
1232
1259
|
position: "relative",
|
|
1233
1260
|
background: a.value,
|
|
1234
1261
|
height: `calc(100% - ${e}px)`
|
|
1235
1262
|
};
|
|
1236
|
-
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } =
|
|
1263
|
+
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = U(`propTreejsonEditorDlg${M()}`);
|
|
1237
1264
|
C(() => {
|
|
1238
1265
|
S.value = !1;
|
|
1239
1266
|
});
|
|
@@ -1250,7 +1277,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1250
1277
|
"no-click-animation": "",
|
|
1251
1278
|
persistent: "",
|
|
1252
1279
|
transition: "dialog-bottom-transition",
|
|
1253
|
-
onKeydown: n[6] ||=
|
|
1280
|
+
onKeydown: n[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1254
1281
|
}, {
|
|
1255
1282
|
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1256
1283
|
block: "",
|
|
@@ -1265,7 +1292,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1265
1292
|
density: "compact",
|
|
1266
1293
|
icon: "mdi-minus",
|
|
1267
1294
|
variant: "text",
|
|
1268
|
-
onClick: n[0] ||=
|
|
1295
|
+
onClick: n[0] ||= z((e) => m("delete"), ["stop"])
|
|
1269
1296
|
})) : l("", !0)]),
|
|
1270
1297
|
default: I(() => [p(s, {
|
|
1271
1298
|
color: j(i),
|
|
@@ -1333,10 +1360,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1333
1360
|
}),
|
|
1334
1361
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1335
1362
|
setup(e, { emit: t }) {
|
|
1336
|
-
let { t: n } =
|
|
1363
|
+
let { t: n } = K(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1337
1364
|
let t = "100%";
|
|
1338
1365
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1339
|
-
}), o = s(() => e.readonly), { open: u } =
|
|
1366
|
+
}), o = s(() => e.readonly), { open: u } = U(`propTreeColorPickerMenu${M()}`);
|
|
1340
1367
|
return C(() => {
|
|
1341
1368
|
u.value = !1;
|
|
1342
1369
|
}), (t, s) => {
|
|
@@ -1364,7 +1391,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1364
1391
|
density: "compact",
|
|
1365
1392
|
icon: "mdi-minus",
|
|
1366
1393
|
variant: "text",
|
|
1367
|
-
onClick: s[0] ||=
|
|
1394
|
+
onClick: s[0] ||= z((e) => i("delete"), ["stop"])
|
|
1368
1395
|
})) : l("", !0)])]),
|
|
1369
1396
|
default: I(() => [p(h, {
|
|
1370
1397
|
modelValue: r.value,
|
|
@@ -1395,7 +1422,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1395
1422
|
}),
|
|
1396
1423
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1397
1424
|
setup(e, { emit: t }) {
|
|
1398
|
-
let { t: n } =
|
|
1425
|
+
let { t: n } = K(), { isMobile: r } = H(), i = N(e, "modelValue"), a = t, o = s(() => ue(e.types)), f = E(""), m = s(() => {
|
|
1399
1426
|
let e = [];
|
|
1400
1427
|
for (let { value: t, title: r } of o.value) e.push({
|
|
1401
1428
|
value: t,
|
|
@@ -1419,7 +1446,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1419
1446
|
}
|
|
1420
1447
|
let v = E(0), y = async (e) => {
|
|
1421
1448
|
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1422
|
-
let t = await
|
|
1449
|
+
let t = await ae({
|
|
1423
1450
|
title: "",
|
|
1424
1451
|
value: v.value,
|
|
1425
1452
|
precision: h.value.precision,
|
|
@@ -1430,26 +1457,26 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1430
1457
|
t !== void 0 && (v.value = t);
|
|
1431
1458
|
};
|
|
1432
1459
|
F(() => {
|
|
1433
|
-
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value =
|
|
1460
|
+
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = me(i.value, h.value.unit));
|
|
1434
1461
|
}), P(v, (e) => {
|
|
1435
1462
|
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1436
1463
|
});
|
|
1437
1464
|
let b = E("#ff00ff");
|
|
1438
1465
|
F(() => {
|
|
1439
|
-
h.value?.trait === "hexColor" &&
|
|
1466
|
+
h.value?.trait === "hexColor" && de(i.value) && (b.value = i.value);
|
|
1440
1467
|
}), P(b, (e) => {
|
|
1441
1468
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1442
1469
|
});
|
|
1443
1470
|
let x = E("primary"), S = s(() => {
|
|
1444
1471
|
let e = [];
|
|
1445
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1472
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of _e) e.push({
|
|
1446
1473
|
value: t,
|
|
1447
1474
|
title: n(r)
|
|
1448
1475
|
});
|
|
1449
1476
|
return e;
|
|
1450
1477
|
});
|
|
1451
1478
|
return F(() => {
|
|
1452
|
-
h.value?.trait === "themeColor" &&
|
|
1479
|
+
h.value?.trait === "themeColor" && fe(i.value) && (x.value = i.value);
|
|
1453
1480
|
}), P(x, (e) => {
|
|
1454
1481
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1455
1482
|
}), (t, n) => {
|
|
@@ -1525,7 +1552,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1525
1552
|
density: "compact",
|
|
1526
1553
|
icon: "mdi-minus",
|
|
1527
1554
|
variant: "text",
|
|
1528
|
-
onClick: n[4] ||=
|
|
1555
|
+
onClick: n[4] ||= z((e) => a("delete"), ["stop"])
|
|
1529
1556
|
})) : l("", !0)]);
|
|
1530
1557
|
};
|
|
1531
1558
|
}
|
|
@@ -1550,9 +1577,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1550
1577
|
}),
|
|
1551
1578
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1552
1579
|
setup(e, { emit: t }) {
|
|
1553
|
-
let { isMobile: n } =
|
|
1580
|
+
let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1554
1581
|
if (!t || e.readonly || !n()) return;
|
|
1555
|
-
let i = await
|
|
1582
|
+
let i = await ae({
|
|
1556
1583
|
title: "",
|
|
1557
1584
|
value: r.value,
|
|
1558
1585
|
precision: e.precision,
|
|
@@ -1595,7 +1622,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1595
1622
|
density: "compact",
|
|
1596
1623
|
icon: "mdi-minus",
|
|
1597
1624
|
variant: "text",
|
|
1598
|
-
onClick: n[1] ||=
|
|
1625
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1599
1626
|
})) : l("", !0)]);
|
|
1600
1627
|
};
|
|
1601
1628
|
}
|
|
@@ -1616,7 +1643,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1616
1643
|
}),
|
|
1617
1644
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1618
1645
|
setup(e, { emit: t }) {
|
|
1619
|
-
let { t: n } =
|
|
1646
|
+
let { t: n } = K(), { isMobile: r } = H(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
|
|
1620
1647
|
F(() => {
|
|
1621
1648
|
let e = i.value.split(",");
|
|
1622
1649
|
e.length < 1 || (o.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? f.value = parseInt(e[1]) : f.value = 0));
|
|
@@ -1629,7 +1656,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1629
1656
|
value: "",
|
|
1630
1657
|
title: n("x-runtime-lib.notSet")
|
|
1631
1658
|
}];
|
|
1632
|
-
for (let t of
|
|
1659
|
+
for (let t of ge) e.push({
|
|
1633
1660
|
value: t,
|
|
1634
1661
|
title: n(`x-runtime-lib.${t}`)
|
|
1635
1662
|
});
|
|
@@ -1644,7 +1671,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1644
1671
|
});
|
|
1645
1672
|
async function _(e) {
|
|
1646
1673
|
if (!e || !r()) return;
|
|
1647
|
-
let t = await
|
|
1674
|
+
let t = await ae({
|
|
1648
1675
|
title: "",
|
|
1649
1676
|
value: f.value,
|
|
1650
1677
|
precision: 0,
|
|
@@ -1701,7 +1728,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1701
1728
|
density: "compact",
|
|
1702
1729
|
icon: "mdi-minus",
|
|
1703
1730
|
variant: "text",
|
|
1704
|
-
onClick: n[2] ||=
|
|
1731
|
+
onClick: n[2] ||= z((e) => a("delete"), ["stop"])
|
|
1705
1732
|
})) : l("", !0)]);
|
|
1706
1733
|
};
|
|
1707
1734
|
}
|
|
@@ -1723,9 +1750,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1723
1750
|
}),
|
|
1724
1751
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1725
1752
|
setup(e, { emit: t }) {
|
|
1726
|
-
let { t: n } =
|
|
1753
|
+
let { t: n } = K(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1727
1754
|
let t = [];
|
|
1728
|
-
return
|
|
1755
|
+
return ce(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1729
1756
|
let i = e;
|
|
1730
1757
|
r && (i = n(r)), t.push({
|
|
1731
1758
|
value: e,
|
|
@@ -1758,7 +1785,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1758
1785
|
density: "compact",
|
|
1759
1786
|
icon: "mdi-minus",
|
|
1760
1787
|
variant: "text",
|
|
1761
|
-
onClick: n[1] ||=
|
|
1788
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1762
1789
|
})) : l("", !0)]);
|
|
1763
1790
|
};
|
|
1764
1791
|
}
|
|
@@ -1770,7 +1797,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1770
1797
|
},
|
|
1771
1798
|
emits: ["x-click"],
|
|
1772
1799
|
setup(e, { emit: t }) {
|
|
1773
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1800
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
1774
1801
|
background: a.value ? r.value : n.value,
|
|
1775
1802
|
height: "48px",
|
|
1776
1803
|
marginTop: "1px",
|
|
@@ -1793,25 +1820,23 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1793
1820
|
}, fn = /* @__PURE__ */ m({
|
|
1794
1821
|
__name: "index",
|
|
1795
1822
|
props: {
|
|
1796
|
-
modelValue: {},
|
|
1797
|
-
modelModifiers: {},
|
|
1798
1823
|
open: {
|
|
1799
1824
|
type: Boolean,
|
|
1800
1825
|
required: !0
|
|
1801
1826
|
},
|
|
1802
1827
|
openModifiers: {}
|
|
1803
1828
|
},
|
|
1804
|
-
emits: ["
|
|
1805
|
-
setup(e) {
|
|
1806
|
-
let { t } =
|
|
1807
|
-
|
|
1829
|
+
emits: /* @__PURE__ */ v(["x-select"], ["update:open"]),
|
|
1830
|
+
setup(e, { emit: t }) {
|
|
1831
|
+
let { t: n } = K(), r = N(e, "open"), i = t, a = ut(), s = (e) => {
|
|
1832
|
+
r.value = !1, i("x-select", e);
|
|
1808
1833
|
};
|
|
1809
|
-
return (e,
|
|
1834
|
+
return (e, t) => j(a).length > 0 ? (w(), u("div", un, [(w(!0), u(o, null, D(j(a), (e) => (w(), c(ln, {
|
|
1810
1835
|
key: e.id,
|
|
1811
1836
|
id: e.id,
|
|
1812
1837
|
title: e.name,
|
|
1813
|
-
onXClick:
|
|
1814
|
-
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(
|
|
1838
|
+
onXClick: s
|
|
1839
|
+
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(n)("x-prop-tree.noSlot")), 1));
|
|
1815
1840
|
}
|
|
1816
1841
|
}), pn = { class: "text-body-large" }, mn = /* @__PURE__ */ m({
|
|
1817
1842
|
__name: "index",
|
|
@@ -1825,12 +1850,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1825
1850
|
default: !1
|
|
1826
1851
|
}
|
|
1827
1852
|
}, {
|
|
1828
|
-
modelValue: {},
|
|
1853
|
+
modelValue: { default: null },
|
|
1829
1854
|
modelModifiers: {}
|
|
1830
1855
|
}),
|
|
1831
1856
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1832
1857
|
setup(e, { emit: t }) {
|
|
1833
|
-
let { t: n } =
|
|
1858
|
+
let { t: n } = K(), r = be(), { sysBarAvail: i } = H(), { backgroundColor1: a } = V(), o = N(e, "modelValue"), u = t, m = ut(), h = s(() => {
|
|
1834
1859
|
let e = "100%";
|
|
1835
1860
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1836
1861
|
background: a.value,
|
|
@@ -1843,23 +1868,35 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1843
1868
|
position: "relative",
|
|
1844
1869
|
height: `calc(100% - ${e}px)`
|
|
1845
1870
|
};
|
|
1846
|
-
}), v = s(() => ({ height: "60px" })), x = s(() => {
|
|
1847
|
-
|
|
1848
|
-
let e = m.value.find((e) => e.id === o.value);
|
|
1849
|
-
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1850
|
-
}), { open: S } = H(`propTreeSlotSelectDlg${M()}`);
|
|
1851
|
-
return C(() => {
|
|
1871
|
+
}), v = s(() => ({ height: "60px" })), x = s(() => o.value ? o.value.name : n("x-runtime-lib.notSet")), { open: S } = U(`propTreeSlotSelectDlg${M()}`);
|
|
1872
|
+
C(() => {
|
|
1852
1873
|
S.value = !1;
|
|
1853
|
-
})
|
|
1854
|
-
|
|
1855
|
-
|
|
1874
|
+
});
|
|
1875
|
+
function T(e) {
|
|
1876
|
+
if (!e) {
|
|
1877
|
+
o.value = null;
|
|
1878
|
+
return;
|
|
1879
|
+
}
|
|
1880
|
+
let t = m.value.find((t) => t.id === e);
|
|
1881
|
+
if (!t) {
|
|
1882
|
+
o.value = null;
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
o.value = {
|
|
1886
|
+
id: t.id,
|
|
1887
|
+
name: t.name
|
|
1888
|
+
};
|
|
1889
|
+
}
|
|
1890
|
+
return (t, r) => {
|
|
1891
|
+
let a = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
1892
|
+
return w(), c(s, {
|
|
1856
1893
|
modelValue: j(S),
|
|
1857
|
-
"onUpdate:modelValue": r[
|
|
1894
|
+
"onUpdate:modelValue": r[5] ||= (e) => _(S) ? S.value = e : null,
|
|
1858
1895
|
fullscreen: "",
|
|
1859
1896
|
"no-click-animation": "",
|
|
1860
1897
|
persistent: "",
|
|
1861
1898
|
transition: "scroll-x-reverse-transition",
|
|
1862
|
-
onKeydown: r[
|
|
1899
|
+
onKeydown: r[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1863
1900
|
}, {
|
|
1864
1901
|
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1865
1902
|
block: "",
|
|
@@ -1874,22 +1911,22 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1874
1911
|
density: "compact",
|
|
1875
1912
|
icon: "mdi-minus",
|
|
1876
1913
|
variant: "text",
|
|
1877
|
-
onClick: r[0] ||=
|
|
1914
|
+
onClick: r[0] ||= z((e) => u("delete"), ["stop"])
|
|
1878
1915
|
})) : l("", !0)]),
|
|
1879
1916
|
default: I(() => [d("div", {
|
|
1880
1917
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1881
|
-
onClick: r[
|
|
1882
|
-
onContextmenu: r[
|
|
1918
|
+
onClick: r[3] ||= z((e) => S.value = !1, ["self"]),
|
|
1919
|
+
onContextmenu: r[4] ||= z((e) => S.value = !1, ["self", "prevent"])
|
|
1883
1920
|
}, [d("div", {
|
|
1884
1921
|
class: "elevation-2",
|
|
1885
1922
|
style: b(h.value)
|
|
1886
1923
|
}, [
|
|
1887
|
-
j(i) ? (w(), c(
|
|
1924
|
+
j(i) ? (w(), c(o, {
|
|
1888
1925
|
key: 0,
|
|
1889
1926
|
color: "transparent",
|
|
1890
1927
|
height: 24
|
|
1891
1928
|
})) : l("", !0),
|
|
1892
|
-
p(
|
|
1929
|
+
p(o, {
|
|
1893
1930
|
class: "d-flex align-center px-3",
|
|
1894
1931
|
color: "transparent",
|
|
1895
1932
|
height: 48
|
|
@@ -1906,11 +1943,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1906
1943
|
class: "overflow-y-auto",
|
|
1907
1944
|
style: b(g.value)
|
|
1908
1945
|
}, [p(fn, {
|
|
1909
|
-
modelValue: o.value,
|
|
1910
|
-
"onUpdate:modelValue": r[2] ||= (e) => o.value = e,
|
|
1911
1946
|
open: j(S),
|
|
1912
|
-
"onUpdate:open": r[
|
|
1913
|
-
|
|
1947
|
+
"onUpdate:open": r[2] ||= (e) => _(S) ? S.value = e : null,
|
|
1948
|
+
onXSelect: T
|
|
1949
|
+
}, null, 8, ["open"]), d("div", { style: b(v.value) }, null, 4)], 4)
|
|
1914
1950
|
], 4)], 32)]),
|
|
1915
1951
|
_: 1
|
|
1916
1952
|
}, 8, ["modelValue"]);
|
|
@@ -1950,7 +1986,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1950
1986
|
density: "compact",
|
|
1951
1987
|
icon: "mdi-minus",
|
|
1952
1988
|
variant: "text",
|
|
1953
|
-
onClick: i[1] ||=
|
|
1989
|
+
onClick: i[1] ||= z((e) => r("delete"), ["stop"])
|
|
1954
1990
|
})) : l("", !0)]);
|
|
1955
1991
|
};
|
|
1956
1992
|
}
|
|
@@ -1971,9 +2007,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1971
2007
|
}),
|
|
1972
2008
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1973
2009
|
setup(e, { emit: t }) {
|
|
1974
|
-
let { isMobile: n } =
|
|
2010
|
+
let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1975
2011
|
if (!t || e.readonly || !n()) return;
|
|
1976
|
-
let i = await
|
|
2012
|
+
let i = await oe({
|
|
1977
2013
|
title: "",
|
|
1978
2014
|
value: r.value
|
|
1979
2015
|
});
|
|
@@ -2000,7 +2036,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
2000
2036
|
density: "compact",
|
|
2001
2037
|
icon: "mdi-minus",
|
|
2002
2038
|
variant: "text",
|
|
2003
|
-
onClick: n[1] ||=
|
|
2039
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
2004
2040
|
})) : l("", !0)]);
|
|
2005
2041
|
};
|
|
2006
2042
|
}
|
|
@@ -2008,13 +2044,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
2008
2044
|
//#endregion
|
|
2009
2045
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
2010
2046
|
function yn() {
|
|
2011
|
-
let e =
|
|
2047
|
+
let e = $();
|
|
2012
2048
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
2013
2049
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
2014
2050
|
return h(Nt, {
|
|
2015
|
-
modelValue:
|
|
2051
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2016
2052
|
"onUpdate:modelValue": (o) => {
|
|
2017
|
-
|
|
2053
|
+
X(t, n, r, o, i, a, e);
|
|
2018
2054
|
},
|
|
2019
2055
|
hasDelete: i !== void 0 && !a,
|
|
2020
2056
|
onDelete: () => {
|
|
@@ -2027,13 +2063,13 @@ function yn() {
|
|
|
2027
2063
|
//#endregion
|
|
2028
2064
|
//#region src/composables/uis/uiComp.ts
|
|
2029
2065
|
function bn() {
|
|
2030
|
-
let e =
|
|
2066
|
+
let e = $();
|
|
2031
2067
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
2032
2068
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
2033
2069
|
return h(Ut, {
|
|
2034
|
-
modelValue:
|
|
2070
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2035
2071
|
"onUpdate:modelValue": (o) => {
|
|
2036
|
-
|
|
2072
|
+
X(t, n, r, o, i, a, e);
|
|
2037
2073
|
},
|
|
2038
2074
|
hasDelete: i !== void 0 && !a,
|
|
2039
2075
|
onDelete: () => {
|
|
@@ -2046,22 +2082,22 @@ function bn() {
|
|
|
2046
2082
|
//#endregion
|
|
2047
2083
|
//#region src/composables/uis/uiDummy.ts
|
|
2048
2084
|
function xn() {
|
|
2049
|
-
let e =
|
|
2085
|
+
let e = $();
|
|
2050
2086
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
2051
2087
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
2052
|
-
|
|
2088
|
+
Y(t, n, r, i, a, e);
|
|
2053
2089
|
} };
|
|
2054
2090
|
}
|
|
2055
2091
|
//#endregion
|
|
2056
2092
|
//#region src/composables/uis/uiIcon.ts
|
|
2057
2093
|
function Sn() {
|
|
2058
|
-
let e =
|
|
2094
|
+
let e = $();
|
|
2059
2095
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
2060
2096
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
2061
2097
|
return h(Gt, {
|
|
2062
|
-
modelValue: n.static ? n.value :
|
|
2098
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2063
2099
|
"onUpdate:modelValue": (o) => {
|
|
2064
|
-
n.static ||
|
|
2100
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
2065
2101
|
},
|
|
2066
2102
|
hasDelete: i !== void 0 && !a,
|
|
2067
2103
|
onDelete: () => {
|
|
@@ -2074,13 +2110,13 @@ function Sn() {
|
|
|
2074
2110
|
//#endregion
|
|
2075
2111
|
//#region src/composables/uis/uiJson.ts
|
|
2076
2112
|
function Cn() {
|
|
2077
|
-
let e =
|
|
2113
|
+
let e = $();
|
|
2078
2114
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
2079
2115
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
2080
2116
|
return h(Jt, {
|
|
2081
|
-
modelValue:
|
|
2117
|
+
modelValue: Y(t, n, r, i, a, e) ?? "{}",
|
|
2082
2118
|
"onUpdate:modelValue": (o) => {
|
|
2083
|
-
|
|
2119
|
+
X(t, n, r, o, i, a, e);
|
|
2084
2120
|
},
|
|
2085
2121
|
hasDelete: i !== void 0 && !a,
|
|
2086
2122
|
onDelete: () => {
|
|
@@ -2093,13 +2129,13 @@ function Cn() {
|
|
|
2093
2129
|
//#endregion
|
|
2094
2130
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2095
2131
|
function wn() {
|
|
2096
|
-
let e =
|
|
2132
|
+
let e = $();
|
|
2097
2133
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2098
2134
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2099
2135
|
return h($t, {
|
|
2100
|
-
modelValue:
|
|
2136
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2101
2137
|
"onUpdate:modelValue": (o) => {
|
|
2102
|
-
|
|
2138
|
+
X(t, n, r, o, i, a, e);
|
|
2103
2139
|
},
|
|
2104
2140
|
hasDelete: i !== void 0 && !a,
|
|
2105
2141
|
onDelete: () => {
|
|
@@ -2112,13 +2148,13 @@ function wn() {
|
|
|
2112
2148
|
//#endregion
|
|
2113
2149
|
//#region src/composables/uis/uiNumber.ts
|
|
2114
2150
|
function Tn() {
|
|
2115
|
-
let e =
|
|
2151
|
+
let e = $();
|
|
2116
2152
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2117
2153
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2118
2154
|
return h(tn, {
|
|
2119
|
-
modelValue:
|
|
2155
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2120
2156
|
"onUpdate:modelValue": (o) => {
|
|
2121
|
-
|
|
2157
|
+
X(t, n, r, o, i, a, e);
|
|
2122
2158
|
},
|
|
2123
2159
|
hasDelete: i !== void 0 && !a,
|
|
2124
2160
|
onDelete: () => {
|
|
@@ -2139,7 +2175,7 @@ var En = /* @__PURE__ */ m({
|
|
|
2139
2175
|
props: { minHeight: {} },
|
|
2140
2176
|
emits: ["menu"],
|
|
2141
2177
|
setup(e, { emit: t }) {
|
|
2142
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
2178
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
2143
2179
|
background: a.value ? r.value : n.value,
|
|
2144
2180
|
minHeight: e.minHeight,
|
|
2145
2181
|
paddingRight: "4px",
|
|
@@ -2153,7 +2189,7 @@ var En = /* @__PURE__ */ m({
|
|
|
2153
2189
|
return L((w(), u("div", {
|
|
2154
2190
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
2155
2191
|
style: b(o.value),
|
|
2156
|
-
onContextmenu:
|
|
2192
|
+
onContextmenu: z(c, ["self", "prevent"]),
|
|
2157
2193
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
2158
2194
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
2159
2195
|
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
@@ -2163,13 +2199,13 @@ var En = /* @__PURE__ */ m({
|
|
|
2163
2199
|
//#endregion
|
|
2164
2200
|
//#region src/composables/uis/uiProperty.ts
|
|
2165
2201
|
function Dn() {
|
|
2166
|
-
let { t: e } =
|
|
2202
|
+
let { t: e } = K(), t = at();
|
|
2167
2203
|
return { renderProperty: (n, r, i) => {
|
|
2168
2204
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2169
|
-
return
|
|
2205
|
+
return Q(t.value, n) && (o += " *"), h(En, {
|
|
2170
2206
|
minHeight: "56px",
|
|
2171
2207
|
onMenu: (e, t) => {
|
|
2172
|
-
|
|
2208
|
+
B.emit("propTreeMenu", {
|
|
2173
2209
|
x: e,
|
|
2174
2210
|
y: t,
|
|
2175
2211
|
keys: n
|
|
@@ -2187,13 +2223,13 @@ function Dn() {
|
|
|
2187
2223
|
//#endregion
|
|
2188
2224
|
//#region src/composables/uis/uiRule.ts
|
|
2189
2225
|
function On() {
|
|
2190
|
-
let e =
|
|
2226
|
+
let e = $();
|
|
2191
2227
|
function t(t, n, r, i, a) {
|
|
2192
2228
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2193
2229
|
return h(an, {
|
|
2194
|
-
modelValue:
|
|
2230
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2195
2231
|
"onUpdate:modelValue": (o) => {
|
|
2196
|
-
|
|
2232
|
+
X(t, n, r, o, i, a, e);
|
|
2197
2233
|
},
|
|
2198
2234
|
hasDelete: i !== void 0 && !a,
|
|
2199
2235
|
onDelete: () => {
|
|
@@ -2206,13 +2242,13 @@ function On() {
|
|
|
2206
2242
|
//#endregion
|
|
2207
2243
|
//#region src/composables/uis/uiSelect.ts
|
|
2208
2244
|
function kn() {
|
|
2209
|
-
let e =
|
|
2245
|
+
let e = $();
|
|
2210
2246
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2211
2247
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2212
2248
|
return h(sn, {
|
|
2213
|
-
modelValue:
|
|
2249
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2214
2250
|
"onUpdate:modelValue": (o) => {
|
|
2215
|
-
|
|
2251
|
+
X(t, n, r, o, i, a, e);
|
|
2216
2252
|
},
|
|
2217
2253
|
hasDelete: i !== void 0 && !a,
|
|
2218
2254
|
onDelete: () => {
|
|
@@ -2226,13 +2262,13 @@ function kn() {
|
|
|
2226
2262
|
//#endregion
|
|
2227
2263
|
//#region src/composables/uis/uiSlot.ts
|
|
2228
2264
|
function An() {
|
|
2229
|
-
let e =
|
|
2265
|
+
let e = $();
|
|
2230
2266
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2231
2267
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2232
2268
|
return h(mn, {
|
|
2233
|
-
modelValue:
|
|
2269
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2234
2270
|
"onUpdate:modelValue": (o) => {
|
|
2235
|
-
|
|
2271
|
+
X(t, n, r, o, i, a, e);
|
|
2236
2272
|
},
|
|
2237
2273
|
hasDelete: i !== void 0 && !a,
|
|
2238
2274
|
onDelete: () => {
|
|
@@ -2245,13 +2281,13 @@ function An() {
|
|
|
2245
2281
|
//#endregion
|
|
2246
2282
|
//#region src/composables/uis/uiSwitch.ts
|
|
2247
2283
|
function jn() {
|
|
2248
|
-
let e =
|
|
2284
|
+
let e = $();
|
|
2249
2285
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2250
2286
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2251
2287
|
return h(gn, {
|
|
2252
|
-
modelValue:
|
|
2288
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2253
2289
|
"onUpdate:modelValue": (o) => {
|
|
2254
|
-
|
|
2290
|
+
X(t, n, r, o, i, a, e);
|
|
2255
2291
|
},
|
|
2256
2292
|
hasDelete: i !== void 0 && !a,
|
|
2257
2293
|
onDelete: () => {
|
|
@@ -2264,13 +2300,13 @@ function jn() {
|
|
|
2264
2300
|
//#endregion
|
|
2265
2301
|
//#region src/composables/uis/uiText.ts
|
|
2266
2302
|
function Mn() {
|
|
2267
|
-
let e =
|
|
2303
|
+
let e = $();
|
|
2268
2304
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2269
2305
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2270
2306
|
return h(vn, {
|
|
2271
|
-
modelValue: n.static ? n.value :
|
|
2307
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2272
2308
|
"onUpdate:modelValue": (o) => {
|
|
2273
|
-
n.static ||
|
|
2309
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
2274
2310
|
},
|
|
2275
2311
|
hasDelete: i !== void 0 && !a,
|
|
2276
2312
|
onDelete: () => {
|
|
@@ -2282,27 +2318,27 @@ function Mn() {
|
|
|
2282
2318
|
}
|
|
2283
2319
|
//#endregion
|
|
2284
2320
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2285
|
-
var
|
|
2321
|
+
var Nn = "20px", Pn = /* @__PURE__ */ m({
|
|
2286
2322
|
__name: "main",
|
|
2287
2323
|
setup(e) {
|
|
2288
|
-
let { t } =
|
|
2324
|
+
let { t } = K(), { backgroundColor1: n } = V(), i = $e(), a = tt(), s = rt(), c = at(), l = $();
|
|
2289
2325
|
St(), Ct(), xt();
|
|
2290
2326
|
let { renderProperty: d } = Dn(), { renderUiDummy: f } = xn(), { renderUiText: m } = Mn(), { renderUiNumber: g } = Tn(), { renderUiSwitch: _ } = jn(), { renderUiSelect: v } = kn(), { renderUiJson: y } = Cn(), { renderUiIcon: b } = Sn(), { renderUiComp: x } = bn(), { renderUiSlot: S } = An(), { renderUiAdaptSlot: C } = yn(), { renderUiRule: T } = On(), { renderUiMultiTypes: E } = wn(), D = (e, t, n, i, a, o) => {
|
|
2291
2327
|
if (e = r(e), i === void 0 ? e.push(t.key) : (e.push(i), a && e.push(t.key)), e?.[0] !== "runtime") return t.ui ? t.array && !o ? k(e, t, n, i, a) : A(e, t, n, i, a) : t.array ? ee(e, t, n, i, a) : O(e, t, n, i, a);
|
|
2292
2328
|
}, ee = (e, n, r, i, a) => {
|
|
2293
2329
|
if (n.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2294
2330
|
if (!n.array) throw Error("renderBranchArray property array must be valid");
|
|
2295
|
-
let o =
|
|
2296
|
-
|
|
2331
|
+
let o = Se(e, n, r, i, a, l), u = t(n.name);
|
|
2332
|
+
Z(s, e) && Q(c.value, e) && (u += " *");
|
|
2297
2333
|
let d = h(bt, {
|
|
2298
2334
|
title: u,
|
|
2299
|
-
collapse:
|
|
2335
|
+
collapse: Z(s, e),
|
|
2300
2336
|
hasCreate: !0,
|
|
2301
2337
|
onCollapse: (t) => {
|
|
2302
|
-
|
|
2338
|
+
Ce(s, e, t);
|
|
2303
2339
|
},
|
|
2304
2340
|
onMenu: (t, n) => {
|
|
2305
|
-
|
|
2341
|
+
B.emit("propTreeMenu", {
|
|
2306
2342
|
x: t,
|
|
2307
2343
|
y: n,
|
|
2308
2344
|
keys: e
|
|
@@ -2311,21 +2347,21 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2311
2347
|
onCreate: () => {
|
|
2312
2348
|
o.push({}), l(e, o);
|
|
2313
2349
|
}
|
|
2314
|
-
}), f = h("div", { style: { paddingLeft:
|
|
2350
|
+
}), f = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2315
2351
|
let t = [];
|
|
2316
2352
|
for (let r = 0; r < o.length; r++) {
|
|
2317
2353
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2318
|
-
|
|
2354
|
+
Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2319
2355
|
let u = h(bt, {
|
|
2320
2356
|
title: a,
|
|
2321
|
-
collapse:
|
|
2357
|
+
collapse: Z(s, [...e, r]),
|
|
2322
2358
|
hasDelete: !0,
|
|
2323
2359
|
index: r,
|
|
2324
2360
|
onCollapse: (t) => {
|
|
2325
|
-
|
|
2361
|
+
Ce(s, [...e, r], t);
|
|
2326
2362
|
},
|
|
2327
2363
|
onMenu: (e, t) => {
|
|
2328
|
-
|
|
2364
|
+
B.emit("propTreeMenu", {
|
|
2329
2365
|
x: e,
|
|
2330
2366
|
y: t,
|
|
2331
2367
|
keys: i
|
|
@@ -2336,33 +2372,33 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2336
2372
|
}
|
|
2337
2373
|
});
|
|
2338
2374
|
t.push(u);
|
|
2339
|
-
let d = h("div", { style: { paddingLeft:
|
|
2375
|
+
let d = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2340
2376
|
let t = [];
|
|
2341
2377
|
for (let i of n.children) t.push(D(e, i, o[r], r, !0));
|
|
2342
2378
|
return t;
|
|
2343
2379
|
})());
|
|
2344
|
-
|
|
2380
|
+
Z(s, [...e, r]) || t.push(d);
|
|
2345
2381
|
}
|
|
2346
2382
|
return t;
|
|
2347
2383
|
})());
|
|
2348
2384
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2349
2385
|
let t = [];
|
|
2350
|
-
return t.push(d),
|
|
2386
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2351
2387
|
})());
|
|
2352
2388
|
}, O = (e, n, r, i, a) => {
|
|
2353
2389
|
if (n.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2354
2390
|
if (n.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2355
2391
|
let o = t(n.name);
|
|
2356
|
-
|
|
2392
|
+
Z(s, e) && Q(c.value, e) && (o += " *");
|
|
2357
2393
|
let u = h(bt, {
|
|
2358
2394
|
title: o,
|
|
2359
|
-
collapse:
|
|
2395
|
+
collapse: Z(s, e),
|
|
2360
2396
|
hasDelete: i !== void 0 && !a,
|
|
2361
2397
|
onCollapse: (t) => {
|
|
2362
|
-
|
|
2398
|
+
Ce(s, e, t);
|
|
2363
2399
|
},
|
|
2364
2400
|
onMenu: (t, n) => {
|
|
2365
|
-
|
|
2401
|
+
B.emit("propTreeMenu", {
|
|
2366
2402
|
x: t,
|
|
2367
2403
|
y: n,
|
|
2368
2404
|
keys: e
|
|
@@ -2371,45 +2407,45 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2371
2407
|
onDelete: () => {
|
|
2372
2408
|
i === void 0 || a || (r.splice(i, 1), l(e.slice(0, -1), r));
|
|
2373
2409
|
}
|
|
2374
|
-
}), d = h("div", { style: { paddingLeft:
|
|
2410
|
+
}), d = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2375
2411
|
let t = [];
|
|
2376
2412
|
for (let i of n.children) t.push(D(e, i, (typeof r[n.key] != "object" && (r[n.key] = {}, l(e, r[n.key])), r[n.key]), void 0, !1));
|
|
2377
2413
|
return t;
|
|
2378
2414
|
})());
|
|
2379
2415
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2380
2416
|
let t = [];
|
|
2381
|
-
return t.push(u),
|
|
2417
|
+
return t.push(u), Z(s, e) || t.push(d), t;
|
|
2382
2418
|
})());
|
|
2383
2419
|
}, k = (e, n, r, i, a) => {
|
|
2384
2420
|
if (!n.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2385
2421
|
if (!n.array) throw Error("renderLeafArray property array must be valid");
|
|
2386
|
-
let o =
|
|
2387
|
-
|
|
2422
|
+
let o = Se(e, n, r, i, a, l), u = t(n.name);
|
|
2423
|
+
Z(s, e) && Q(c.value, e) && (u += " *");
|
|
2388
2424
|
let d = h(bt, {
|
|
2389
2425
|
title: u,
|
|
2390
|
-
collapse:
|
|
2426
|
+
collapse: Z(s, e),
|
|
2391
2427
|
hasCreate: !0,
|
|
2392
2428
|
onCollapse: (t) => {
|
|
2393
|
-
|
|
2429
|
+
Ce(s, e, t);
|
|
2394
2430
|
},
|
|
2395
2431
|
onMenu: (t, n) => {
|
|
2396
|
-
|
|
2432
|
+
B.emit("propTreeMenu", {
|
|
2397
2433
|
x: t,
|
|
2398
2434
|
y: n,
|
|
2399
2435
|
keys: e
|
|
2400
2436
|
});
|
|
2401
2437
|
},
|
|
2402
2438
|
onCreate: () => {
|
|
2403
|
-
o.push(
|
|
2439
|
+
o.push(W(n)), l(e, o);
|
|
2404
2440
|
}
|
|
2405
|
-
}), f = h("div", { style: { paddingLeft:
|
|
2441
|
+
}), f = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2406
2442
|
let t = [];
|
|
2407
2443
|
for (let r = 0; r < o.length; r++) t.push(D(e, n, o, r, !1, !0));
|
|
2408
2444
|
return t;
|
|
2409
2445
|
})());
|
|
2410
2446
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2411
2447
|
let t = [];
|
|
2412
|
-
return t.push(d),
|
|
2448
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2413
2449
|
})());
|
|
2414
2450
|
}, A = (e, t, n, r, i) => {
|
|
2415
2451
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
@@ -2425,7 +2461,7 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2425
2461
|
})());
|
|
2426
2462
|
return (e, t) => (w(), u(o, null, [p(j), p(vt)], 64));
|
|
2427
2463
|
}
|
|
2428
|
-
}),
|
|
2464
|
+
}), Fn = /* @__PURE__ */ m({
|
|
2429
2465
|
__name: "index",
|
|
2430
2466
|
props: {
|
|
2431
2467
|
config: {},
|
|
@@ -2473,16 +2509,16 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2473
2509
|
Pe(l, e.config, e.object);
|
|
2474
2510
|
}
|
|
2475
2511
|
return S(() => {
|
|
2476
|
-
|
|
2512
|
+
B.on("refreshPropertyState", d);
|
|
2477
2513
|
}), x(() => {
|
|
2478
|
-
|
|
2514
|
+
B.off("refreshPropertyState", d);
|
|
2479
2515
|
}), P([() => e.config, () => e.object], () => {
|
|
2480
2516
|
Pe(l, e.config, e.object);
|
|
2481
|
-
}, { immediate: !0 }), (e, t) => (w(), c(
|
|
2517
|
+
}, { immediate: !0 }), (e, t) => (w(), c(Pn));
|
|
2482
2518
|
}
|
|
2483
|
-
}),
|
|
2484
|
-
e.component("XPropTree",
|
|
2485
|
-
},
|
|
2519
|
+
}), In = (e) => {
|
|
2520
|
+
e.component("XPropTree", Fn);
|
|
2521
|
+
}, Ln = (e, t, n) => {
|
|
2486
2522
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2487
2523
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2488
2524
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
@@ -2490,14 +2526,14 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2490
2526
|
};
|
|
2491
2527
|
//#endregion
|
|
2492
2528
|
//#region src/i18n/index.ts
|
|
2493
|
-
async function
|
|
2494
|
-
return (await
|
|
2529
|
+
async function Rn(e) {
|
|
2530
|
+
return (await Ln(/* @__PURE__ */ Object.assign({
|
|
2495
2531
|
"./locales/en/index.ts": () => import("./i18n-en.h32u3o3z.js").then((e) => e.t),
|
|
2496
|
-
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.
|
|
2532
|
+
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.byb869oq.js").then((e) => e.t)
|
|
2497
2533
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2498
2534
|
}
|
|
2499
2535
|
//#endregion
|
|
2500
2536
|
//#region src/index.ts
|
|
2501
|
-
var
|
|
2537
|
+
var zn = { install: In };
|
|
2502
2538
|
//#endregion
|
|
2503
|
-
export {
|
|
2539
|
+
export { zn as default, Rn as loadLocaleMessagePropTree };
|