x-prop-tree 0.8.17 → 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 {
|
|
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,12 +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(
|
|
809
|
-
"x-prop-tree.no",
|
|
810
|
-
"x-prop-tree.adapt",
|
|
811
|
-
"x-prop-tree.slot"
|
|
812
|
-
])), 1));
|
|
807
|
+
onXClick: p
|
|
808
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(r)("x-prop-tree.noAdaptSlot")), 1));
|
|
813
809
|
}
|
|
814
810
|
}), Mt = { class: "text-body-large" }, Nt = /* @__PURE__ */ m({
|
|
815
811
|
__name: "index",
|
|
@@ -823,96 +819,108 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
823
819
|
default: !1
|
|
824
820
|
}
|
|
825
821
|
}, {
|
|
826
|
-
modelValue: {},
|
|
822
|
+
modelValue: { default: null },
|
|
827
823
|
modelModifiers: {}
|
|
828
824
|
}),
|
|
829
825
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
830
826
|
setup(e, { emit: t }) {
|
|
831
|
-
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(() => {
|
|
832
828
|
let e = "100%";
|
|
833
829
|
return r.mdAndUp.value && (e = "400px"), {
|
|
834
|
-
background:
|
|
830
|
+
background: o.value,
|
|
835
831
|
width: e,
|
|
836
832
|
height: "100%"
|
|
837
833
|
};
|
|
838
|
-
}),
|
|
834
|
+
}), v = s(() => {
|
|
839
835
|
let e = 48;
|
|
840
836
|
return a.value && (e += 24), {
|
|
841
837
|
position: "relative",
|
|
842
838
|
height: `calc(100% - ${e}px)`
|
|
843
839
|
};
|
|
844
|
-
}),
|
|
845
|
-
if (
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
840
|
+
}), x = s(() => ({ height: "60px" })), S = s(() => {
|
|
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(() => {
|
|
847
|
+
T.value = !1;
|
|
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) => {
|
|
865
|
+
let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
853
866
|
return w(), c(s, {
|
|
854
|
-
modelValue: j(
|
|
855
|
-
"onUpdate:modelValue":
|
|
867
|
+
modelValue: j(T),
|
|
868
|
+
"onUpdate:modelValue": r[5] ||= (e) => _(T) ? T.value = e : null,
|
|
856
869
|
fullscreen: "",
|
|
857
870
|
"no-click-animation": "",
|
|
858
871
|
persistent: "",
|
|
859
872
|
transition: "scroll-x-reverse-transition",
|
|
860
|
-
onKeydown:
|
|
873
|
+
onKeydown: r[6] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
861
874
|
}, {
|
|
862
|
-
activator: I(({ props: t }) => [p(
|
|
875
|
+
activator: I(({ props: t }) => [p(i, y(t, {
|
|
863
876
|
block: "",
|
|
864
877
|
density: "comfortable",
|
|
865
878
|
readonly: e.readonly
|
|
866
879
|
}), {
|
|
867
|
-
default: I(() => [f(A(
|
|
880
|
+
default: I(() => [f(A(S.value), 1)]),
|
|
868
881
|
_: 1
|
|
869
|
-
}, 16, ["readonly"]), e.hasDelete ? (w(), c(
|
|
882
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
|
|
870
883
|
key: 0,
|
|
871
884
|
class: "mx-2",
|
|
872
885
|
density: "compact",
|
|
873
886
|
icon: "mdi-minus",
|
|
874
887
|
variant: "text",
|
|
875
|
-
onClick:
|
|
888
|
+
onClick: r[0] ||= z((e) => m("delete"), ["stop"])
|
|
876
889
|
})) : l("", !0)]),
|
|
877
890
|
default: I(() => [d("div", {
|
|
878
891
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
879
|
-
onClick:
|
|
880
|
-
onContextmenu:
|
|
892
|
+
onClick: r[3] ||= z((e) => T.value = !1, ["self"]),
|
|
893
|
+
onContextmenu: r[4] ||= z((e) => T.value = !1, ["self", "prevent"])
|
|
881
894
|
}, [d("div", {
|
|
882
895
|
class: "elevation-2",
|
|
883
|
-
style: b(
|
|
896
|
+
style: b(g.value)
|
|
884
897
|
}, [
|
|
885
|
-
j(a) ? (w(), c(
|
|
898
|
+
j(a) ? (w(), c(o, {
|
|
886
899
|
key: 0,
|
|
887
900
|
color: "transparent",
|
|
888
901
|
height: 24
|
|
889
902
|
})) : l("", !0),
|
|
890
|
-
p(
|
|
903
|
+
p(o, {
|
|
891
904
|
class: "d-flex align-center px-3",
|
|
892
905
|
color: "transparent",
|
|
893
906
|
height: 48
|
|
894
907
|
}, {
|
|
895
|
-
default: I(() => [p(
|
|
908
|
+
default: I(() => [p(i, {
|
|
896
909
|
density: "comfortable",
|
|
897
910
|
icon: "mdi-close",
|
|
898
911
|
variant: "text",
|
|
899
|
-
onClick:
|
|
900
|
-
}), d("span", Mt, A(j(
|
|
901
|
-
"x-prop-tree.select",
|
|
902
|
-
"x-prop-tree.adapt",
|
|
903
|
-
"x-prop-tree.slot"
|
|
904
|
-
])), 1)]),
|
|
912
|
+
onClick: r[1] ||= (e) => T.value = !1
|
|
913
|
+
}), d("span", Mt, A(j(n)("x-prop-tree.selectAdaptSlot")), 1)]),
|
|
905
914
|
_: 1
|
|
906
915
|
}),
|
|
907
916
|
d("div", {
|
|
908
917
|
class: "overflow-y-auto",
|
|
909
|
-
style: b(
|
|
918
|
+
style: b(v.value)
|
|
910
919
|
}, [p(jt, {
|
|
911
|
-
|
|
912
|
-
"onUpdate:
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
}, null, 8, ["modelValue", "open"]), d("div", { style: b(S.value) }, null, 4)], 4)
|
|
920
|
+
open: j(T),
|
|
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)
|
|
916
924
|
], 4)], 32)]),
|
|
917
925
|
_: 1
|
|
918
926
|
}, 8, ["modelValue"]);
|
|
@@ -928,28 +936,28 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
928
936
|
},
|
|
929
937
|
emits: ["x-click"],
|
|
930
938
|
setup(e, { emit: t }) {
|
|
931
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
932
|
-
background:
|
|
939
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
940
|
+
background: a.value ? r.value : n.value,
|
|
933
941
|
height: "30px",
|
|
934
942
|
marginTop: "1px",
|
|
935
943
|
userSelect: "none"
|
|
936
944
|
}));
|
|
937
|
-
return (
|
|
938
|
-
let
|
|
945
|
+
return (t, n) => {
|
|
946
|
+
let r = O("v-icon"), s = k("ripple");
|
|
939
947
|
return L((w(), u("div", {
|
|
940
948
|
class: "d-flex align-center cursor-pointer",
|
|
941
|
-
style: b(
|
|
942
|
-
onClick:
|
|
943
|
-
onMouseout:
|
|
944
|
-
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
|
|
945
953
|
}, [
|
|
946
|
-
p(
|
|
947
|
-
icon:
|
|
954
|
+
p(r, {
|
|
955
|
+
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
948
956
|
size: "small"
|
|
949
957
|
}, null, 8, ["icon"]),
|
|
950
|
-
d("span", Pt, A(
|
|
951
|
-
d("span", Ft, A(
|
|
952
|
-
], 36)), [[
|
|
958
|
+
d("span", Pt, A(e.title), 1),
|
|
959
|
+
d("span", Ft, A(e.count), 1)
|
|
960
|
+
], 36)), [[s]]);
|
|
953
961
|
};
|
|
954
962
|
}
|
|
955
963
|
}), Lt = { class: "text-body-large ml-6" }, Rt = /* @__PURE__ */ m({
|
|
@@ -960,21 +968,21 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
960
968
|
},
|
|
961
969
|
emits: ["x-click"],
|
|
962
970
|
setup(e, { emit: t }) {
|
|
963
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
964
|
-
background:
|
|
971
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
972
|
+
background: a.value ? r.value : n.value,
|
|
965
973
|
height: "48px",
|
|
966
974
|
marginTop: "1px",
|
|
967
975
|
userSelect: "none"
|
|
968
976
|
}));
|
|
969
|
-
return (
|
|
970
|
-
let
|
|
977
|
+
return (t, n) => {
|
|
978
|
+
let r = k("ripple");
|
|
971
979
|
return L((w(), u("div", {
|
|
972
980
|
class: "d-flex align-center cursor-pointer",
|
|
973
|
-
style: b(
|
|
974
|
-
onClick:
|
|
975
|
-
onMouseout:
|
|
976
|
-
onMouseover:
|
|
977
|
-
}, [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]]);
|
|
978
986
|
};
|
|
979
987
|
}
|
|
980
988
|
}), zt = { key: 0 }, Bt = {
|
|
@@ -983,29 +991,29 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
983
991
|
}, Vt = /* @__PURE__ */ m({
|
|
984
992
|
__name: "index",
|
|
985
993
|
props: {
|
|
986
|
-
modelValue: {},
|
|
987
|
-
modelModifiers: {},
|
|
988
994
|
open: {
|
|
989
995
|
type: Boolean,
|
|
990
996
|
required: !0
|
|
991
997
|
},
|
|
992
998
|
openModifiers: {}
|
|
993
999
|
},
|
|
994
|
-
emits: ["
|
|
995
|
-
setup(e) {
|
|
996
|
-
let {
|
|
997
|
-
|
|
998
|
-
t
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
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, {
|
|
1003
1011
|
key: 0,
|
|
1004
1012
|
id: e.id,
|
|
1005
1013
|
collapse: e.collapse,
|
|
1006
1014
|
count: e.count ?? 0,
|
|
1007
1015
|
title: e.name,
|
|
1008
|
-
onXClick:
|
|
1016
|
+
onXClick: f
|
|
1009
1017
|
}, null, 8, [
|
|
1010
1018
|
"id",
|
|
1011
1019
|
"collapse",
|
|
@@ -1015,8 +1023,8 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1015
1023
|
key: 1,
|
|
1016
1024
|
id: e.id,
|
|
1017
1025
|
title: e.name,
|
|
1018
|
-
onXClick:
|
|
1019
|
-
}, 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));
|
|
1020
1028
|
}
|
|
1021
1029
|
}), Ht = { class: "text-body-large" }, Ut = /* @__PURE__ */ m({
|
|
1022
1030
|
__name: "index",
|
|
@@ -1030,92 +1038,103 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1030
1038
|
default: !1
|
|
1031
1039
|
}
|
|
1032
1040
|
}, {
|
|
1033
|
-
modelValue: {},
|
|
1041
|
+
modelValue: { default: null },
|
|
1034
1042
|
modelModifiers: {}
|
|
1035
1043
|
}),
|
|
1036
1044
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1037
1045
|
setup(e, { emit: t }) {
|
|
1038
|
-
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(() => {
|
|
1039
1047
|
let e = "100%";
|
|
1040
1048
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1041
|
-
background:
|
|
1049
|
+
background: o.value,
|
|
1042
1050
|
width: e,
|
|
1043
1051
|
height: "100%"
|
|
1044
1052
|
};
|
|
1045
|
-
}),
|
|
1053
|
+
}), v = s(() => {
|
|
1046
1054
|
let e = 48;
|
|
1047
1055
|
return a.value && (e += 24), {
|
|
1048
1056
|
position: "relative",
|
|
1049
1057
|
height: `calc(100% - ${e}px)`
|
|
1050
1058
|
};
|
|
1051
|
-
}),
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1059
|
+
}), x = s(() => ({ height: "60px" })), S = s(() => u.value ? u.value.name : n("x-runtime-lib.notSet")), { open: T } = U(`propTreeCompSelectDlg${M()}`);
|
|
1060
|
+
C(() => {
|
|
1061
|
+
T.value = !1;
|
|
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) => {
|
|
1079
|
+
let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
1060
1080
|
return w(), c(s, {
|
|
1061
|
-
modelValue: j(
|
|
1062
|
-
"onUpdate:modelValue":
|
|
1081
|
+
modelValue: j(T),
|
|
1082
|
+
"onUpdate:modelValue": r[5] ||= (e) => _(T) ? T.value = e : null,
|
|
1063
1083
|
fullscreen: "",
|
|
1064
1084
|
"no-click-animation": "",
|
|
1065
1085
|
persistent: "",
|
|
1066
1086
|
transition: "scroll-x-reverse-transition",
|
|
1067
|
-
onKeydown:
|
|
1087
|
+
onKeydown: r[6] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1068
1088
|
}, {
|
|
1069
|
-
activator: I(({ props: t }) => [p(
|
|
1089
|
+
activator: I(({ props: t }) => [p(i, y(t, {
|
|
1070
1090
|
block: "",
|
|
1071
1091
|
density: "comfortable",
|
|
1072
1092
|
readonly: e.readonly
|
|
1073
1093
|
}), {
|
|
1074
|
-
default: I(() => [f(A(
|
|
1094
|
+
default: I(() => [f(A(S.value), 1)]),
|
|
1075
1095
|
_: 1
|
|
1076
|
-
}, 16, ["readonly"]), e.hasDelete ? (w(), c(
|
|
1096
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
|
|
1077
1097
|
key: 0,
|
|
1078
1098
|
class: "mx-2",
|
|
1079
1099
|
density: "compact",
|
|
1080
1100
|
icon: "mdi-minus",
|
|
1081
1101
|
variant: "text",
|
|
1082
|
-
onClick:
|
|
1102
|
+
onClick: r[0] ||= z((e) => m("delete"), ["stop"])
|
|
1083
1103
|
})) : l("", !0)]),
|
|
1084
1104
|
default: I(() => [d("div", {
|
|
1085
1105
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1086
|
-
onClick:
|
|
1087
|
-
onContextmenu:
|
|
1106
|
+
onClick: r[3] ||= z((e) => T.value = !1, ["self"]),
|
|
1107
|
+
onContextmenu: r[4] ||= z((e) => T.value = !1, ["self", "prevent"])
|
|
1088
1108
|
}, [d("div", {
|
|
1089
1109
|
class: "elevation-2",
|
|
1090
|
-
style: b(
|
|
1110
|
+
style: b(g.value)
|
|
1091
1111
|
}, [
|
|
1092
|
-
j(a) ? (w(), c(
|
|
1112
|
+
j(a) ? (w(), c(o, {
|
|
1093
1113
|
key: 0,
|
|
1094
1114
|
color: "transparent",
|
|
1095
1115
|
height: 24
|
|
1096
1116
|
})) : l("", !0),
|
|
1097
|
-
p(
|
|
1117
|
+
p(o, {
|
|
1098
1118
|
class: "d-flex align-center px-3",
|
|
1099
1119
|
color: "transparent",
|
|
1100
1120
|
height: 48
|
|
1101
1121
|
}, {
|
|
1102
|
-
default: I(() => [p(
|
|
1122
|
+
default: I(() => [p(i, {
|
|
1103
1123
|
density: "comfortable",
|
|
1104
1124
|
icon: "mdi-close",
|
|
1105
1125
|
variant: "text",
|
|
1106
|
-
onClick:
|
|
1107
|
-
}), d("span", Ht, A(j(
|
|
1126
|
+
onClick: r[1] ||= (e) => T.value = !1
|
|
1127
|
+
}), d("span", Ht, A(j(n)("x-prop-tree.selectComp")), 1)]),
|
|
1108
1128
|
_: 1
|
|
1109
1129
|
}),
|
|
1110
1130
|
d("div", {
|
|
1111
1131
|
class: "overflow-y-auto",
|
|
1112
|
-
style: b(
|
|
1132
|
+
style: b(v.value)
|
|
1113
1133
|
}, [p(Vt, {
|
|
1114
|
-
|
|
1115
|
-
"onUpdate:
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
}, null, 8, ["modelValue", "open"]), d("div", { style: b(S.value) }, null, 4)], 4)
|
|
1134
|
+
open: j(T),
|
|
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)
|
|
1119
1138
|
], 4)], 32)]),
|
|
1120
1139
|
_: 1
|
|
1121
1140
|
}, 8, ["modelValue"]);
|
|
@@ -1138,9 +1157,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1138
1157
|
}),
|
|
1139
1158
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1140
1159
|
setup(e, { emit: t }) {
|
|
1141
|
-
let { isMobile: n } =
|
|
1160
|
+
let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1142
1161
|
if (!t || e.readonly || !n()) return;
|
|
1143
|
-
let i = await
|
|
1162
|
+
let i = await oe({
|
|
1144
1163
|
title: "",
|
|
1145
1164
|
value: r.value
|
|
1146
1165
|
});
|
|
@@ -1167,7 +1186,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1167
1186
|
density: "compact",
|
|
1168
1187
|
icon: "mdi-minus",
|
|
1169
1188
|
variant: "text",
|
|
1170
|
-
onClick: n[1] ||=
|
|
1189
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1171
1190
|
})) : l("", !0)]);
|
|
1172
1191
|
};
|
|
1173
1192
|
}
|
|
@@ -1190,7 +1209,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1190
1209
|
"update:scale"
|
|
1191
1210
|
],
|
|
1192
1211
|
setup(e, { expose: t }) {
|
|
1193
|
-
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 = () => {
|
|
1194
1213
|
let e = JSON.parse(n.value);
|
|
1195
1214
|
l.value?.load(e);
|
|
1196
1215
|
};
|
|
@@ -1234,14 +1253,14 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1234
1253
|
}),
|
|
1235
1254
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1236
1255
|
setup(e, { emit: t }) {
|
|
1237
|
-
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(() => {
|
|
1238
1257
|
let e = 48;
|
|
1239
1258
|
return r.value && (e += 24), {
|
|
1240
1259
|
position: "relative",
|
|
1241
1260
|
background: a.value,
|
|
1242
1261
|
height: `calc(100% - ${e}px)`
|
|
1243
1262
|
};
|
|
1244
|
-
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } =
|
|
1263
|
+
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = U(`propTreejsonEditorDlg${M()}`);
|
|
1245
1264
|
C(() => {
|
|
1246
1265
|
S.value = !1;
|
|
1247
1266
|
});
|
|
@@ -1258,7 +1277,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1258
1277
|
"no-click-animation": "",
|
|
1259
1278
|
persistent: "",
|
|
1260
1279
|
transition: "dialog-bottom-transition",
|
|
1261
|
-
onKeydown: n[6] ||=
|
|
1280
|
+
onKeydown: n[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1262
1281
|
}, {
|
|
1263
1282
|
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1264
1283
|
block: "",
|
|
@@ -1273,7 +1292,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1273
1292
|
density: "compact",
|
|
1274
1293
|
icon: "mdi-minus",
|
|
1275
1294
|
variant: "text",
|
|
1276
|
-
onClick: n[0] ||=
|
|
1295
|
+
onClick: n[0] ||= z((e) => m("delete"), ["stop"])
|
|
1277
1296
|
})) : l("", !0)]),
|
|
1278
1297
|
default: I(() => [p(s, {
|
|
1279
1298
|
color: j(i),
|
|
@@ -1341,10 +1360,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1341
1360
|
}),
|
|
1342
1361
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1343
1362
|
setup(e, { emit: t }) {
|
|
1344
|
-
let { t: n } =
|
|
1363
|
+
let { t: n } = K(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1345
1364
|
let t = "100%";
|
|
1346
1365
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1347
|
-
}), o = s(() => e.readonly), { open: u } =
|
|
1366
|
+
}), o = s(() => e.readonly), { open: u } = U(`propTreeColorPickerMenu${M()}`);
|
|
1348
1367
|
return C(() => {
|
|
1349
1368
|
u.value = !1;
|
|
1350
1369
|
}), (t, s) => {
|
|
@@ -1372,7 +1391,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1372
1391
|
density: "compact",
|
|
1373
1392
|
icon: "mdi-minus",
|
|
1374
1393
|
variant: "text",
|
|
1375
|
-
onClick: s[0] ||=
|
|
1394
|
+
onClick: s[0] ||= z((e) => i("delete"), ["stop"])
|
|
1376
1395
|
})) : l("", !0)])]),
|
|
1377
1396
|
default: I(() => [p(h, {
|
|
1378
1397
|
modelValue: r.value,
|
|
@@ -1403,7 +1422,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1403
1422
|
}),
|
|
1404
1423
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1405
1424
|
setup(e, { emit: t }) {
|
|
1406
|
-
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(() => {
|
|
1407
1426
|
let e = [];
|
|
1408
1427
|
for (let { value: t, title: r } of o.value) e.push({
|
|
1409
1428
|
value: t,
|
|
@@ -1427,7 +1446,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1427
1446
|
}
|
|
1428
1447
|
let v = E(0), y = async (e) => {
|
|
1429
1448
|
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1430
|
-
let t = await
|
|
1449
|
+
let t = await ae({
|
|
1431
1450
|
title: "",
|
|
1432
1451
|
value: v.value,
|
|
1433
1452
|
precision: h.value.precision,
|
|
@@ -1438,26 +1457,26 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1438
1457
|
t !== void 0 && (v.value = t);
|
|
1439
1458
|
};
|
|
1440
1459
|
F(() => {
|
|
1441
|
-
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));
|
|
1442
1461
|
}), P(v, (e) => {
|
|
1443
1462
|
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1444
1463
|
});
|
|
1445
1464
|
let b = E("#ff00ff");
|
|
1446
1465
|
F(() => {
|
|
1447
|
-
h.value?.trait === "hexColor" &&
|
|
1466
|
+
h.value?.trait === "hexColor" && de(i.value) && (b.value = i.value);
|
|
1448
1467
|
}), P(b, (e) => {
|
|
1449
1468
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1450
1469
|
});
|
|
1451
1470
|
let x = E("primary"), S = s(() => {
|
|
1452
1471
|
let e = [];
|
|
1453
|
-
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({
|
|
1454
1473
|
value: t,
|
|
1455
1474
|
title: n(r)
|
|
1456
1475
|
});
|
|
1457
1476
|
return e;
|
|
1458
1477
|
});
|
|
1459
1478
|
return F(() => {
|
|
1460
|
-
h.value?.trait === "themeColor" &&
|
|
1479
|
+
h.value?.trait === "themeColor" && fe(i.value) && (x.value = i.value);
|
|
1461
1480
|
}), P(x, (e) => {
|
|
1462
1481
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1463
1482
|
}), (t, n) => {
|
|
@@ -1533,7 +1552,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1533
1552
|
density: "compact",
|
|
1534
1553
|
icon: "mdi-minus",
|
|
1535
1554
|
variant: "text",
|
|
1536
|
-
onClick: n[4] ||=
|
|
1555
|
+
onClick: n[4] ||= z((e) => a("delete"), ["stop"])
|
|
1537
1556
|
})) : l("", !0)]);
|
|
1538
1557
|
};
|
|
1539
1558
|
}
|
|
@@ -1558,9 +1577,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1558
1577
|
}),
|
|
1559
1578
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1560
1579
|
setup(e, { emit: t }) {
|
|
1561
|
-
let { isMobile: n } =
|
|
1580
|
+
let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1562
1581
|
if (!t || e.readonly || !n()) return;
|
|
1563
|
-
let i = await
|
|
1582
|
+
let i = await ae({
|
|
1564
1583
|
title: "",
|
|
1565
1584
|
value: r.value,
|
|
1566
1585
|
precision: e.precision,
|
|
@@ -1603,7 +1622,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1603
1622
|
density: "compact",
|
|
1604
1623
|
icon: "mdi-minus",
|
|
1605
1624
|
variant: "text",
|
|
1606
|
-
onClick: n[1] ||=
|
|
1625
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1607
1626
|
})) : l("", !0)]);
|
|
1608
1627
|
};
|
|
1609
1628
|
}
|
|
@@ -1624,7 +1643,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1624
1643
|
}),
|
|
1625
1644
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1626
1645
|
setup(e, { emit: t }) {
|
|
1627
|
-
let { t: n } =
|
|
1646
|
+
let { t: n } = K(), { isMobile: r } = H(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
|
|
1628
1647
|
F(() => {
|
|
1629
1648
|
let e = i.value.split(",");
|
|
1630
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));
|
|
@@ -1637,7 +1656,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1637
1656
|
value: "",
|
|
1638
1657
|
title: n("x-runtime-lib.notSet")
|
|
1639
1658
|
}];
|
|
1640
|
-
for (let t of
|
|
1659
|
+
for (let t of ge) e.push({
|
|
1641
1660
|
value: t,
|
|
1642
1661
|
title: n(`x-runtime-lib.${t}`)
|
|
1643
1662
|
});
|
|
@@ -1652,7 +1671,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1652
1671
|
});
|
|
1653
1672
|
async function _(e) {
|
|
1654
1673
|
if (!e || !r()) return;
|
|
1655
|
-
let t = await
|
|
1674
|
+
let t = await ae({
|
|
1656
1675
|
title: "",
|
|
1657
1676
|
value: f.value,
|
|
1658
1677
|
precision: 0,
|
|
@@ -1709,7 +1728,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1709
1728
|
density: "compact",
|
|
1710
1729
|
icon: "mdi-minus",
|
|
1711
1730
|
variant: "text",
|
|
1712
|
-
onClick: n[2] ||=
|
|
1731
|
+
onClick: n[2] ||= z((e) => a("delete"), ["stop"])
|
|
1713
1732
|
})) : l("", !0)]);
|
|
1714
1733
|
};
|
|
1715
1734
|
}
|
|
@@ -1731,9 +1750,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1731
1750
|
}),
|
|
1732
1751
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1733
1752
|
setup(e, { emit: t }) {
|
|
1734
|
-
let { t: n } =
|
|
1753
|
+
let { t: n } = K(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1735
1754
|
let t = [];
|
|
1736
|
-
return
|
|
1755
|
+
return ce(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1737
1756
|
let i = e;
|
|
1738
1757
|
r && (i = n(r)), t.push({
|
|
1739
1758
|
value: e,
|
|
@@ -1766,7 +1785,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1766
1785
|
density: "compact",
|
|
1767
1786
|
icon: "mdi-minus",
|
|
1768
1787
|
variant: "text",
|
|
1769
|
-
onClick: n[1] ||=
|
|
1788
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1770
1789
|
})) : l("", !0)]);
|
|
1771
1790
|
};
|
|
1772
1791
|
}
|
|
@@ -1778,7 +1797,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1778
1797
|
},
|
|
1779
1798
|
emits: ["x-click"],
|
|
1780
1799
|
setup(e, { emit: t }) {
|
|
1781
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1800
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
1782
1801
|
background: a.value ? r.value : n.value,
|
|
1783
1802
|
height: "48px",
|
|
1784
1803
|
marginTop: "1px",
|
|
@@ -1801,25 +1820,23 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1801
1820
|
}, fn = /* @__PURE__ */ m({
|
|
1802
1821
|
__name: "index",
|
|
1803
1822
|
props: {
|
|
1804
|
-
modelValue: {},
|
|
1805
|
-
modelModifiers: {},
|
|
1806
1823
|
open: {
|
|
1807
1824
|
type: Boolean,
|
|
1808
1825
|
required: !0
|
|
1809
1826
|
},
|
|
1810
1827
|
openModifiers: {}
|
|
1811
1828
|
},
|
|
1812
|
-
emits: ["
|
|
1813
|
-
setup(e) {
|
|
1814
|
-
let {
|
|
1815
|
-
|
|
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);
|
|
1816
1833
|
};
|
|
1817
|
-
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, {
|
|
1818
1835
|
key: e.id,
|
|
1819
1836
|
id: e.id,
|
|
1820
1837
|
title: e.name,
|
|
1821
|
-
onXClick:
|
|
1822
|
-
}, 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));
|
|
1823
1840
|
}
|
|
1824
1841
|
}), pn = { class: "text-body-large" }, mn = /* @__PURE__ */ m({
|
|
1825
1842
|
__name: "index",
|
|
@@ -1833,64 +1850,76 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1833
1850
|
default: !1
|
|
1834
1851
|
}
|
|
1835
1852
|
}, {
|
|
1836
|
-
modelValue: {},
|
|
1853
|
+
modelValue: { default: null },
|
|
1837
1854
|
modelModifiers: {}
|
|
1838
1855
|
}),
|
|
1839
1856
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1840
1857
|
setup(e, { emit: t }) {
|
|
1841
|
-
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(() => {
|
|
1842
1859
|
let e = "100%";
|
|
1843
1860
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1844
|
-
background:
|
|
1861
|
+
background: a.value,
|
|
1845
1862
|
width: e,
|
|
1846
1863
|
height: "100%"
|
|
1847
1864
|
};
|
|
1848
|
-
}),
|
|
1865
|
+
}), g = s(() => {
|
|
1849
1866
|
let e = 48;
|
|
1850
1867
|
return i.value && (e += 24), {
|
|
1851
1868
|
position: "relative",
|
|
1852
1869
|
height: `calc(100% - ${e}px)`
|
|
1853
1870
|
};
|
|
1854
|
-
}),
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1871
|
+
}), v = s(() => ({ height: "60px" })), x = s(() => o.value ? o.value.name : n("x-runtime-lib.notSet")), { open: S } = U(`propTreeSlotSelectDlg${M()}`);
|
|
1872
|
+
C(() => {
|
|
1873
|
+
S.value = !1;
|
|
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");
|
|
1863
1892
|
return w(), c(s, {
|
|
1864
|
-
modelValue: j(
|
|
1865
|
-
"onUpdate:modelValue":
|
|
1893
|
+
modelValue: j(S),
|
|
1894
|
+
"onUpdate:modelValue": r[5] ||= (e) => _(S) ? S.value = e : null,
|
|
1866
1895
|
fullscreen: "",
|
|
1867
1896
|
"no-click-animation": "",
|
|
1868
1897
|
persistent: "",
|
|
1869
1898
|
transition: "scroll-x-reverse-transition",
|
|
1870
|
-
onKeydown:
|
|
1899
|
+
onKeydown: r[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1871
1900
|
}, {
|
|
1872
|
-
activator: I(({ props: t }) => [p(
|
|
1901
|
+
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1873
1902
|
block: "",
|
|
1874
1903
|
density: "comfortable",
|
|
1875
1904
|
readonly: e.readonly
|
|
1876
1905
|
}), {
|
|
1877
|
-
default: I(() => [f(A(
|
|
1906
|
+
default: I(() => [f(A(x.value), 1)]),
|
|
1878
1907
|
_: 1
|
|
1879
|
-
}, 16, ["readonly"]), e.hasDelete ? (w(), c(
|
|
1908
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(a, {
|
|
1880
1909
|
key: 0,
|
|
1881
1910
|
class: "mx-2",
|
|
1882
1911
|
density: "compact",
|
|
1883
1912
|
icon: "mdi-minus",
|
|
1884
1913
|
variant: "text",
|
|
1885
|
-
onClick:
|
|
1914
|
+
onClick: r[0] ||= z((e) => u("delete"), ["stop"])
|
|
1886
1915
|
})) : l("", !0)]),
|
|
1887
1916
|
default: I(() => [d("div", {
|
|
1888
1917
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1889
|
-
onClick:
|
|
1890
|
-
onContextmenu:
|
|
1918
|
+
onClick: r[3] ||= z((e) => S.value = !1, ["self"]),
|
|
1919
|
+
onContextmenu: r[4] ||= z((e) => S.value = !1, ["self", "prevent"])
|
|
1891
1920
|
}, [d("div", {
|
|
1892
1921
|
class: "elevation-2",
|
|
1893
|
-
style: b(
|
|
1922
|
+
style: b(h.value)
|
|
1894
1923
|
}, [
|
|
1895
1924
|
j(i) ? (w(), c(o, {
|
|
1896
1925
|
key: 0,
|
|
@@ -1902,23 +1931,22 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1902
1931
|
color: "transparent",
|
|
1903
1932
|
height: 48
|
|
1904
1933
|
}, {
|
|
1905
|
-
default: I(() => [p(
|
|
1934
|
+
default: I(() => [p(a, {
|
|
1906
1935
|
density: "comfortable",
|
|
1907
1936
|
icon: "mdi-close",
|
|
1908
1937
|
variant: "text",
|
|
1909
|
-
onClick:
|
|
1910
|
-
}), d("span", pn, A(j(
|
|
1938
|
+
onClick: r[1] ||= (e) => S.value = !1
|
|
1939
|
+
}), d("span", pn, A(j(n)("x-prop-tree.selectSlot")), 1)]),
|
|
1911
1940
|
_: 1
|
|
1912
1941
|
}),
|
|
1913
1942
|
d("div", {
|
|
1914
1943
|
class: "overflow-y-auto",
|
|
1915
|
-
style: b(
|
|
1944
|
+
style: b(g.value)
|
|
1916
1945
|
}, [p(fn, {
|
|
1917
|
-
|
|
1918
|
-
"onUpdate:
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
|
|
1946
|
+
open: j(S),
|
|
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)
|
|
1922
1950
|
], 4)], 32)]),
|
|
1923
1951
|
_: 1
|
|
1924
1952
|
}, 8, ["modelValue"]);
|
|
@@ -1958,7 +1986,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1958
1986
|
density: "compact",
|
|
1959
1987
|
icon: "mdi-minus",
|
|
1960
1988
|
variant: "text",
|
|
1961
|
-
onClick: i[1] ||=
|
|
1989
|
+
onClick: i[1] ||= z((e) => r("delete"), ["stop"])
|
|
1962
1990
|
})) : l("", !0)]);
|
|
1963
1991
|
};
|
|
1964
1992
|
}
|
|
@@ -1979,9 +2007,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
1979
2007
|
}),
|
|
1980
2008
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1981
2009
|
setup(e, { emit: t }) {
|
|
1982
|
-
let { isMobile: n } =
|
|
2010
|
+
let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1983
2011
|
if (!t || e.readonly || !n()) return;
|
|
1984
|
-
let i = await
|
|
2012
|
+
let i = await oe({
|
|
1985
2013
|
title: "",
|
|
1986
2014
|
value: r.value
|
|
1987
2015
|
});
|
|
@@ -2008,7 +2036,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
2008
2036
|
density: "compact",
|
|
2009
2037
|
icon: "mdi-minus",
|
|
2010
2038
|
variant: "text",
|
|
2011
|
-
onClick: n[1] ||=
|
|
2039
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
2012
2040
|
})) : l("", !0)]);
|
|
2013
2041
|
};
|
|
2014
2042
|
}
|
|
@@ -2016,13 +2044,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
|
|
|
2016
2044
|
//#endregion
|
|
2017
2045
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
2018
2046
|
function yn() {
|
|
2019
|
-
let e =
|
|
2047
|
+
let e = $();
|
|
2020
2048
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
2021
2049
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
2022
2050
|
return h(Nt, {
|
|
2023
|
-
modelValue:
|
|
2051
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2024
2052
|
"onUpdate:modelValue": (o) => {
|
|
2025
|
-
|
|
2053
|
+
X(t, n, r, o, i, a, e);
|
|
2026
2054
|
},
|
|
2027
2055
|
hasDelete: i !== void 0 && !a,
|
|
2028
2056
|
onDelete: () => {
|
|
@@ -2035,13 +2063,13 @@ function yn() {
|
|
|
2035
2063
|
//#endregion
|
|
2036
2064
|
//#region src/composables/uis/uiComp.ts
|
|
2037
2065
|
function bn() {
|
|
2038
|
-
let e =
|
|
2066
|
+
let e = $();
|
|
2039
2067
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
2040
2068
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
2041
2069
|
return h(Ut, {
|
|
2042
|
-
modelValue:
|
|
2070
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2043
2071
|
"onUpdate:modelValue": (o) => {
|
|
2044
|
-
|
|
2072
|
+
X(t, n, r, o, i, a, e);
|
|
2045
2073
|
},
|
|
2046
2074
|
hasDelete: i !== void 0 && !a,
|
|
2047
2075
|
onDelete: () => {
|
|
@@ -2054,22 +2082,22 @@ function bn() {
|
|
|
2054
2082
|
//#endregion
|
|
2055
2083
|
//#region src/composables/uis/uiDummy.ts
|
|
2056
2084
|
function xn() {
|
|
2057
|
-
let e =
|
|
2085
|
+
let e = $();
|
|
2058
2086
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
2059
2087
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
2060
|
-
|
|
2088
|
+
Y(t, n, r, i, a, e);
|
|
2061
2089
|
} };
|
|
2062
2090
|
}
|
|
2063
2091
|
//#endregion
|
|
2064
2092
|
//#region src/composables/uis/uiIcon.ts
|
|
2065
2093
|
function Sn() {
|
|
2066
|
-
let e =
|
|
2094
|
+
let e = $();
|
|
2067
2095
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
2068
2096
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
2069
2097
|
return h(Gt, {
|
|
2070
|
-
modelValue: n.static ? n.value :
|
|
2098
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2071
2099
|
"onUpdate:modelValue": (o) => {
|
|
2072
|
-
n.static ||
|
|
2100
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
2073
2101
|
},
|
|
2074
2102
|
hasDelete: i !== void 0 && !a,
|
|
2075
2103
|
onDelete: () => {
|
|
@@ -2082,13 +2110,13 @@ function Sn() {
|
|
|
2082
2110
|
//#endregion
|
|
2083
2111
|
//#region src/composables/uis/uiJson.ts
|
|
2084
2112
|
function Cn() {
|
|
2085
|
-
let e =
|
|
2113
|
+
let e = $();
|
|
2086
2114
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
2087
2115
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
2088
2116
|
return h(Jt, {
|
|
2089
|
-
modelValue:
|
|
2117
|
+
modelValue: Y(t, n, r, i, a, e) ?? "{}",
|
|
2090
2118
|
"onUpdate:modelValue": (o) => {
|
|
2091
|
-
|
|
2119
|
+
X(t, n, r, o, i, a, e);
|
|
2092
2120
|
},
|
|
2093
2121
|
hasDelete: i !== void 0 && !a,
|
|
2094
2122
|
onDelete: () => {
|
|
@@ -2101,13 +2129,13 @@ function Cn() {
|
|
|
2101
2129
|
//#endregion
|
|
2102
2130
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2103
2131
|
function wn() {
|
|
2104
|
-
let e =
|
|
2132
|
+
let e = $();
|
|
2105
2133
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2106
2134
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2107
2135
|
return h($t, {
|
|
2108
|
-
modelValue:
|
|
2136
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2109
2137
|
"onUpdate:modelValue": (o) => {
|
|
2110
|
-
|
|
2138
|
+
X(t, n, r, o, i, a, e);
|
|
2111
2139
|
},
|
|
2112
2140
|
hasDelete: i !== void 0 && !a,
|
|
2113
2141
|
onDelete: () => {
|
|
@@ -2120,13 +2148,13 @@ function wn() {
|
|
|
2120
2148
|
//#endregion
|
|
2121
2149
|
//#region src/composables/uis/uiNumber.ts
|
|
2122
2150
|
function Tn() {
|
|
2123
|
-
let e =
|
|
2151
|
+
let e = $();
|
|
2124
2152
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2125
2153
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2126
2154
|
return h(tn, {
|
|
2127
|
-
modelValue:
|
|
2155
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2128
2156
|
"onUpdate:modelValue": (o) => {
|
|
2129
|
-
|
|
2157
|
+
X(t, n, r, o, i, a, e);
|
|
2130
2158
|
},
|
|
2131
2159
|
hasDelete: i !== void 0 && !a,
|
|
2132
2160
|
onDelete: () => {
|
|
@@ -2147,7 +2175,7 @@ var En = /* @__PURE__ */ m({
|
|
|
2147
2175
|
props: { minHeight: {} },
|
|
2148
2176
|
emits: ["menu"],
|
|
2149
2177
|
setup(e, { emit: t }) {
|
|
2150
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
2178
|
+
let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
|
|
2151
2179
|
background: a.value ? r.value : n.value,
|
|
2152
2180
|
minHeight: e.minHeight,
|
|
2153
2181
|
paddingRight: "4px",
|
|
@@ -2161,7 +2189,7 @@ var En = /* @__PURE__ */ m({
|
|
|
2161
2189
|
return L((w(), u("div", {
|
|
2162
2190
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
2163
2191
|
style: b(o.value),
|
|
2164
|
-
onContextmenu:
|
|
2192
|
+
onContextmenu: z(c, ["self", "prevent"]),
|
|
2165
2193
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
2166
2194
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
2167
2195
|
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
@@ -2171,13 +2199,13 @@ var En = /* @__PURE__ */ m({
|
|
|
2171
2199
|
//#endregion
|
|
2172
2200
|
//#region src/composables/uis/uiProperty.ts
|
|
2173
2201
|
function Dn() {
|
|
2174
|
-
let { t: e } =
|
|
2202
|
+
let { t: e } = K(), t = at();
|
|
2175
2203
|
return { renderProperty: (n, r, i) => {
|
|
2176
2204
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2177
|
-
return
|
|
2205
|
+
return Q(t.value, n) && (o += " *"), h(En, {
|
|
2178
2206
|
minHeight: "56px",
|
|
2179
2207
|
onMenu: (e, t) => {
|
|
2180
|
-
|
|
2208
|
+
B.emit("propTreeMenu", {
|
|
2181
2209
|
x: e,
|
|
2182
2210
|
y: t,
|
|
2183
2211
|
keys: n
|
|
@@ -2195,13 +2223,13 @@ function Dn() {
|
|
|
2195
2223
|
//#endregion
|
|
2196
2224
|
//#region src/composables/uis/uiRule.ts
|
|
2197
2225
|
function On() {
|
|
2198
|
-
let e =
|
|
2226
|
+
let e = $();
|
|
2199
2227
|
function t(t, n, r, i, a) {
|
|
2200
2228
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2201
2229
|
return h(an, {
|
|
2202
|
-
modelValue:
|
|
2230
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2203
2231
|
"onUpdate:modelValue": (o) => {
|
|
2204
|
-
|
|
2232
|
+
X(t, n, r, o, i, a, e);
|
|
2205
2233
|
},
|
|
2206
2234
|
hasDelete: i !== void 0 && !a,
|
|
2207
2235
|
onDelete: () => {
|
|
@@ -2214,13 +2242,13 @@ function On() {
|
|
|
2214
2242
|
//#endregion
|
|
2215
2243
|
//#region src/composables/uis/uiSelect.ts
|
|
2216
2244
|
function kn() {
|
|
2217
|
-
let e =
|
|
2245
|
+
let e = $();
|
|
2218
2246
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2219
2247
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2220
2248
|
return h(sn, {
|
|
2221
|
-
modelValue:
|
|
2249
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2222
2250
|
"onUpdate:modelValue": (o) => {
|
|
2223
|
-
|
|
2251
|
+
X(t, n, r, o, i, a, e);
|
|
2224
2252
|
},
|
|
2225
2253
|
hasDelete: i !== void 0 && !a,
|
|
2226
2254
|
onDelete: () => {
|
|
@@ -2234,13 +2262,13 @@ function kn() {
|
|
|
2234
2262
|
//#endregion
|
|
2235
2263
|
//#region src/composables/uis/uiSlot.ts
|
|
2236
2264
|
function An() {
|
|
2237
|
-
let e =
|
|
2265
|
+
let e = $();
|
|
2238
2266
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2239
2267
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2240
2268
|
return h(mn, {
|
|
2241
|
-
modelValue:
|
|
2269
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2242
2270
|
"onUpdate:modelValue": (o) => {
|
|
2243
|
-
|
|
2271
|
+
X(t, n, r, o, i, a, e);
|
|
2244
2272
|
},
|
|
2245
2273
|
hasDelete: i !== void 0 && !a,
|
|
2246
2274
|
onDelete: () => {
|
|
@@ -2253,13 +2281,13 @@ function An() {
|
|
|
2253
2281
|
//#endregion
|
|
2254
2282
|
//#region src/composables/uis/uiSwitch.ts
|
|
2255
2283
|
function jn() {
|
|
2256
|
-
let e =
|
|
2284
|
+
let e = $();
|
|
2257
2285
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2258
2286
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2259
2287
|
return h(gn, {
|
|
2260
|
-
modelValue:
|
|
2288
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2261
2289
|
"onUpdate:modelValue": (o) => {
|
|
2262
|
-
|
|
2290
|
+
X(t, n, r, o, i, a, e);
|
|
2263
2291
|
},
|
|
2264
2292
|
hasDelete: i !== void 0 && !a,
|
|
2265
2293
|
onDelete: () => {
|
|
@@ -2272,13 +2300,13 @@ function jn() {
|
|
|
2272
2300
|
//#endregion
|
|
2273
2301
|
//#region src/composables/uis/uiText.ts
|
|
2274
2302
|
function Mn() {
|
|
2275
|
-
let e =
|
|
2303
|
+
let e = $();
|
|
2276
2304
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2277
2305
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2278
2306
|
return h(vn, {
|
|
2279
|
-
modelValue: n.static ? n.value :
|
|
2307
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2280
2308
|
"onUpdate:modelValue": (o) => {
|
|
2281
|
-
n.static ||
|
|
2309
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
2282
2310
|
},
|
|
2283
2311
|
hasDelete: i !== void 0 && !a,
|
|
2284
2312
|
onDelete: () => {
|
|
@@ -2290,27 +2318,27 @@ function Mn() {
|
|
|
2290
2318
|
}
|
|
2291
2319
|
//#endregion
|
|
2292
2320
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2293
|
-
var
|
|
2321
|
+
var Nn = "20px", Pn = /* @__PURE__ */ m({
|
|
2294
2322
|
__name: "main",
|
|
2295
2323
|
setup(e) {
|
|
2296
|
-
let { t } =
|
|
2324
|
+
let { t } = K(), { backgroundColor1: n } = V(), i = $e(), a = tt(), s = rt(), c = at(), l = $();
|
|
2297
2325
|
St(), Ct(), xt();
|
|
2298
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) => {
|
|
2299
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);
|
|
2300
2328
|
}, ee = (e, n, r, i, a) => {
|
|
2301
2329
|
if (n.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2302
2330
|
if (!n.array) throw Error("renderBranchArray property array must be valid");
|
|
2303
|
-
let o =
|
|
2304
|
-
|
|
2331
|
+
let o = Se(e, n, r, i, a, l), u = t(n.name);
|
|
2332
|
+
Z(s, e) && Q(c.value, e) && (u += " *");
|
|
2305
2333
|
let d = h(bt, {
|
|
2306
2334
|
title: u,
|
|
2307
|
-
collapse:
|
|
2335
|
+
collapse: Z(s, e),
|
|
2308
2336
|
hasCreate: !0,
|
|
2309
2337
|
onCollapse: (t) => {
|
|
2310
|
-
|
|
2338
|
+
Ce(s, e, t);
|
|
2311
2339
|
},
|
|
2312
2340
|
onMenu: (t, n) => {
|
|
2313
|
-
|
|
2341
|
+
B.emit("propTreeMenu", {
|
|
2314
2342
|
x: t,
|
|
2315
2343
|
y: n,
|
|
2316
2344
|
keys: e
|
|
@@ -2319,21 +2347,21 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2319
2347
|
onCreate: () => {
|
|
2320
2348
|
o.push({}), l(e, o);
|
|
2321
2349
|
}
|
|
2322
|
-
}), f = h("div", { style: { paddingLeft:
|
|
2350
|
+
}), f = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2323
2351
|
let t = [];
|
|
2324
2352
|
for (let r = 0; r < o.length; r++) {
|
|
2325
2353
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2326
|
-
|
|
2354
|
+
Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2327
2355
|
let u = h(bt, {
|
|
2328
2356
|
title: a,
|
|
2329
|
-
collapse:
|
|
2357
|
+
collapse: Z(s, [...e, r]),
|
|
2330
2358
|
hasDelete: !0,
|
|
2331
2359
|
index: r,
|
|
2332
2360
|
onCollapse: (t) => {
|
|
2333
|
-
|
|
2361
|
+
Ce(s, [...e, r], t);
|
|
2334
2362
|
},
|
|
2335
2363
|
onMenu: (e, t) => {
|
|
2336
|
-
|
|
2364
|
+
B.emit("propTreeMenu", {
|
|
2337
2365
|
x: e,
|
|
2338
2366
|
y: t,
|
|
2339
2367
|
keys: i
|
|
@@ -2344,33 +2372,33 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2344
2372
|
}
|
|
2345
2373
|
});
|
|
2346
2374
|
t.push(u);
|
|
2347
|
-
let d = h("div", { style: { paddingLeft:
|
|
2375
|
+
let d = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2348
2376
|
let t = [];
|
|
2349
2377
|
for (let i of n.children) t.push(D(e, i, o[r], r, !0));
|
|
2350
2378
|
return t;
|
|
2351
2379
|
})());
|
|
2352
|
-
|
|
2380
|
+
Z(s, [...e, r]) || t.push(d);
|
|
2353
2381
|
}
|
|
2354
2382
|
return t;
|
|
2355
2383
|
})());
|
|
2356
2384
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2357
2385
|
let t = [];
|
|
2358
|
-
return t.push(d),
|
|
2386
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2359
2387
|
})());
|
|
2360
2388
|
}, O = (e, n, r, i, a) => {
|
|
2361
2389
|
if (n.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2362
2390
|
if (n.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2363
2391
|
let o = t(n.name);
|
|
2364
|
-
|
|
2392
|
+
Z(s, e) && Q(c.value, e) && (o += " *");
|
|
2365
2393
|
let u = h(bt, {
|
|
2366
2394
|
title: o,
|
|
2367
|
-
collapse:
|
|
2395
|
+
collapse: Z(s, e),
|
|
2368
2396
|
hasDelete: i !== void 0 && !a,
|
|
2369
2397
|
onCollapse: (t) => {
|
|
2370
|
-
|
|
2398
|
+
Ce(s, e, t);
|
|
2371
2399
|
},
|
|
2372
2400
|
onMenu: (t, n) => {
|
|
2373
|
-
|
|
2401
|
+
B.emit("propTreeMenu", {
|
|
2374
2402
|
x: t,
|
|
2375
2403
|
y: n,
|
|
2376
2404
|
keys: e
|
|
@@ -2379,45 +2407,45 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2379
2407
|
onDelete: () => {
|
|
2380
2408
|
i === void 0 || a || (r.splice(i, 1), l(e.slice(0, -1), r));
|
|
2381
2409
|
}
|
|
2382
|
-
}), d = h("div", { style: { paddingLeft:
|
|
2410
|
+
}), d = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2383
2411
|
let t = [];
|
|
2384
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));
|
|
2385
2413
|
return t;
|
|
2386
2414
|
})());
|
|
2387
2415
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2388
2416
|
let t = [];
|
|
2389
|
-
return t.push(u),
|
|
2417
|
+
return t.push(u), Z(s, e) || t.push(d), t;
|
|
2390
2418
|
})());
|
|
2391
2419
|
}, k = (e, n, r, i, a) => {
|
|
2392
2420
|
if (!n.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2393
2421
|
if (!n.array) throw Error("renderLeafArray property array must be valid");
|
|
2394
|
-
let o =
|
|
2395
|
-
|
|
2422
|
+
let o = Se(e, n, r, i, a, l), u = t(n.name);
|
|
2423
|
+
Z(s, e) && Q(c.value, e) && (u += " *");
|
|
2396
2424
|
let d = h(bt, {
|
|
2397
2425
|
title: u,
|
|
2398
|
-
collapse:
|
|
2426
|
+
collapse: Z(s, e),
|
|
2399
2427
|
hasCreate: !0,
|
|
2400
2428
|
onCollapse: (t) => {
|
|
2401
|
-
|
|
2429
|
+
Ce(s, e, t);
|
|
2402
2430
|
},
|
|
2403
2431
|
onMenu: (t, n) => {
|
|
2404
|
-
|
|
2432
|
+
B.emit("propTreeMenu", {
|
|
2405
2433
|
x: t,
|
|
2406
2434
|
y: n,
|
|
2407
2435
|
keys: e
|
|
2408
2436
|
});
|
|
2409
2437
|
},
|
|
2410
2438
|
onCreate: () => {
|
|
2411
|
-
o.push(
|
|
2439
|
+
o.push(W(n)), l(e, o);
|
|
2412
2440
|
}
|
|
2413
|
-
}), f = h("div", { style: { paddingLeft:
|
|
2441
|
+
}), f = h("div", { style: { paddingLeft: Nn } }, (() => {
|
|
2414
2442
|
let t = [];
|
|
2415
2443
|
for (let r = 0; r < o.length; r++) t.push(D(e, n, o, r, !1, !0));
|
|
2416
2444
|
return t;
|
|
2417
2445
|
})());
|
|
2418
2446
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2419
2447
|
let t = [];
|
|
2420
|
-
return t.push(d),
|
|
2448
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2421
2449
|
})());
|
|
2422
2450
|
}, A = (e, t, n, r, i) => {
|
|
2423
2451
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
@@ -2433,7 +2461,7 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2433
2461
|
})());
|
|
2434
2462
|
return (e, t) => (w(), u(o, null, [p(j), p(vt)], 64));
|
|
2435
2463
|
}
|
|
2436
|
-
}),
|
|
2464
|
+
}), Fn = /* @__PURE__ */ m({
|
|
2437
2465
|
__name: "index",
|
|
2438
2466
|
props: {
|
|
2439
2467
|
config: {},
|
|
@@ -2481,16 +2509,16 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2481
2509
|
Pe(l, e.config, e.object);
|
|
2482
2510
|
}
|
|
2483
2511
|
return S(() => {
|
|
2484
|
-
|
|
2512
|
+
B.on("refreshPropertyState", d);
|
|
2485
2513
|
}), x(() => {
|
|
2486
|
-
|
|
2514
|
+
B.off("refreshPropertyState", d);
|
|
2487
2515
|
}), P([() => e.config, () => e.object], () => {
|
|
2488
2516
|
Pe(l, e.config, e.object);
|
|
2489
|
-
}, { immediate: !0 }), (e, t) => (w(), c(
|
|
2517
|
+
}, { immediate: !0 }), (e, t) => (w(), c(Pn));
|
|
2490
2518
|
}
|
|
2491
|
-
}),
|
|
2492
|
-
e.component("XPropTree",
|
|
2493
|
-
},
|
|
2519
|
+
}), In = (e) => {
|
|
2520
|
+
e.component("XPropTree", Fn);
|
|
2521
|
+
}, Ln = (e, t, n) => {
|
|
2494
2522
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2495
2523
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2496
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."))));
|
|
@@ -2498,14 +2526,14 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
|
2498
2526
|
};
|
|
2499
2527
|
//#endregion
|
|
2500
2528
|
//#region src/i18n/index.ts
|
|
2501
|
-
async function
|
|
2502
|
-
return (await
|
|
2503
|
-
"./locales/en/index.ts": () => import("./i18n-en.
|
|
2504
|
-
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.
|
|
2529
|
+
async function Rn(e) {
|
|
2530
|
+
return (await Ln(/* @__PURE__ */ Object.assign({
|
|
2531
|
+
"./locales/en/index.ts": () => import("./i18n-en.h32u3o3z.js").then((e) => e.t),
|
|
2532
|
+
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.byb869oq.js").then((e) => e.t)
|
|
2505
2533
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2506
2534
|
}
|
|
2507
2535
|
//#endregion
|
|
2508
2536
|
//#region src/index.ts
|
|
2509
|
-
var
|
|
2537
|
+
var zn = { install: In };
|
|
2510
2538
|
//#endregion
|
|
2511
|
-
export {
|
|
2539
|
+
export { zn as default, Rn as loadLocaleMessagePropTree };
|