x-prop-tree 0.8.4 → 0.8.5
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 +307 -302
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./vendor.kbufw3jy.js";
|
|
2
|
-
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as
|
|
3
|
-
import { getElement as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { eventBus as
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
2
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as ee, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as R, withModifiers as z } from "vue";
|
|
3
|
+
import { getElement as te, getItems as ne, getPropertyDefault as B, getPropertyDefaultArray as re, getTag as ie, getTypes as ae, isHexColor as oe, isThemeColor as se, makeSlotId as ce, parsePercent as le, parsePixel as ue, pkgs as de, themeColors as fe } from "x-runtime-lib";
|
|
4
|
+
import { useI18n as V } from "vue-i18n";
|
|
5
|
+
import { eventBus as H, globalObjects as pe, injectDark as me, injectLocale as he, openNumberDlg as ge, openPromptDlg as _e, useColor as U, useSystem as W, useViewStack as G } from "x-essential-lib";
|
|
6
|
+
import { globalState as ve } from "x-state-lib";
|
|
7
|
+
import { useDisplay as ye } from "vuetify";
|
|
8
|
+
import { XBlockly as be } from "x-block-lib";
|
|
9
9
|
//#region src/utils/collapseState.ts
|
|
10
|
-
function
|
|
10
|
+
function K(e, t) {
|
|
11
11
|
let n = e.value;
|
|
12
12
|
for (let e of t) {
|
|
13
13
|
if (!n.children[e]) return !0;
|
|
@@ -15,7 +15,7 @@ function G(e, t) {
|
|
|
15
15
|
}
|
|
16
16
|
return n.collapse;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function q(e, t, n) {
|
|
19
19
|
let r = e.value;
|
|
20
20
|
for (let e of t) r.children[e] || (r.children[e] = {
|
|
21
21
|
collapse: !0,
|
|
@@ -25,7 +25,7 @@ function K(e, t, n) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/utils/common.ts
|
|
28
|
-
function
|
|
28
|
+
function J(e, t) {
|
|
29
29
|
let n = {
|
|
30
30
|
key: "",
|
|
31
31
|
name: "",
|
|
@@ -38,7 +38,7 @@ function q(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Y(e, t) {
|
|
42
42
|
let n = e;
|
|
43
43
|
for (let e of t) {
|
|
44
44
|
if (!n) throw Error("target must be valid");
|
|
@@ -46,42 +46,42 @@ function J(e, t) {
|
|
|
46
46
|
}
|
|
47
47
|
return n;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function xe(e, n, r, i, a, o) {
|
|
50
50
|
if (i !== void 0 && !a) {
|
|
51
51
|
if (!(r[i] instanceof Array)) {
|
|
52
|
-
let a =
|
|
52
|
+
let a = re(n);
|
|
53
53
|
t(a, r[i]) || (r[i] = a, o(e, r[i]));
|
|
54
54
|
}
|
|
55
55
|
return r[i];
|
|
56
56
|
} else {
|
|
57
57
|
if (!(r[n.key] instanceof Array)) {
|
|
58
|
-
let i =
|
|
58
|
+
let i = re(n);
|
|
59
59
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
60
60
|
}
|
|
61
61
|
return r[n.key];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function X(e, n, r, i, a, o) {
|
|
65
65
|
if (i !== void 0 && !a) {
|
|
66
66
|
if (r[i] === void 0) {
|
|
67
|
-
let a =
|
|
67
|
+
let a = B(n);
|
|
68
68
|
t(a, r[i]) || (r[i] = a, o(e, r[i]));
|
|
69
69
|
}
|
|
70
70
|
return r[i];
|
|
71
71
|
} else {
|
|
72
72
|
if (r[n.key] === void 0) {
|
|
73
|
-
let i =
|
|
73
|
+
let i = B(n);
|
|
74
74
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
75
75
|
}
|
|
76
76
|
return r[n.key];
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Z(e, t, n, r, i, a, o) {
|
|
80
80
|
i !== void 0 && !a ? r !== n[i] && (n[i] = r, o(e, n[i])) : r !== n[t.key] && (n[t.key] = r, o(e, n[t.key]));
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
84
|
+
var Se = (e, t) => {
|
|
85
85
|
let n = (e, t) => {
|
|
86
86
|
if (e.ui !== t.ui || e.array !== t.array) return !1;
|
|
87
87
|
if (e.ui || t.ui) return !0;
|
|
@@ -90,15 +90,18 @@ var Ce = (e, t) => {
|
|
|
90
90
|
return !0;
|
|
91
91
|
};
|
|
92
92
|
return n(e, t);
|
|
93
|
-
},
|
|
94
|
-
function
|
|
95
|
-
return
|
|
93
|
+
}, Ce = [["basic", "id"], ["basic", "name"]];
|
|
94
|
+
function we(e) {
|
|
95
|
+
return Ce.find((n) => t(e, n));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return t
|
|
99
|
-
change:
|
|
100
|
-
warning:
|
|
101
|
-
}
|
|
97
|
+
function Te(n, r, i, a, o, s) {
|
|
98
|
+
return t(n, ["runtime"]) ? {
|
|
99
|
+
change: !1,
|
|
100
|
+
warning: !1
|
|
101
|
+
} : (n = e(n), o === void 0 ? n.push(r.key) : (n.push(o), s && n.push(r.key)), we(n) ? (a.change = !1, a.warning = !1, {
|
|
102
|
+
change: a.change,
|
|
103
|
+
warning: a.warning
|
|
104
|
+
}) : r.ui ? r.array && a.children ? Oe(n, r, i, a, o, s) : ke(r, i, a, o, s) : r.array ? Ee(n, r, i, a, o, s) : De(n, r, i, a, o, s));
|
|
102
105
|
}
|
|
103
106
|
function Ee(e, n, r, i, a, o) {
|
|
104
107
|
if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
|
|
@@ -121,11 +124,11 @@ function Ee(e, n, r, i, a, o) {
|
|
|
121
124
|
warning: !1,
|
|
122
125
|
children: {}
|
|
123
126
|
};
|
|
124
|
-
let { change: n, warning: o } =
|
|
127
|
+
let { change: n, warning: o } = Te(e, a, s[t], r.children[a.key], t, !0);
|
|
125
128
|
!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);
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
|
-
return i.change ||= !t(s,
|
|
131
|
+
return i.change ||= !t(s, re(n)), {
|
|
129
132
|
change: i.change,
|
|
130
133
|
warning: i.warning
|
|
131
134
|
};
|
|
@@ -145,7 +148,7 @@ function De(e, t, n, r, i, a) {
|
|
|
145
148
|
warning: !1,
|
|
146
149
|
children: {}
|
|
147
150
|
};
|
|
148
|
-
let { change: a, warning: s } =
|
|
151
|
+
let { change: a, warning: s } = Te(e, i, o, r.children[i.key], void 0, !1);
|
|
149
152
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
150
153
|
}
|
|
151
154
|
return {
|
|
@@ -167,10 +170,10 @@ function Oe(e, n, r, i, a, o) {
|
|
|
167
170
|
warning: !1,
|
|
168
171
|
children: {}
|
|
169
172
|
};
|
|
170
|
-
let { change: r, warning: a } =
|
|
173
|
+
let { change: r, warning: a } = Te(e, n, s, i.children[t], t, !1);
|
|
171
174
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
172
175
|
}
|
|
173
|
-
return i.change ||= !t(s,
|
|
176
|
+
return i.change ||= !t(s, re(n)), {
|
|
174
177
|
change: i.change,
|
|
175
178
|
warning: i.warning
|
|
176
179
|
};
|
|
@@ -178,7 +181,7 @@ function Oe(e, n, r, i, a, o) {
|
|
|
178
181
|
function ke(e, n, r, i, a) {
|
|
179
182
|
if (!e.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
180
183
|
let o;
|
|
181
|
-
return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o,
|
|
184
|
+
return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o, B(e)), {
|
|
182
185
|
change: r.change,
|
|
183
186
|
warning: r.warning
|
|
184
187
|
};
|
|
@@ -203,7 +206,7 @@ function Ae(e, t, n) {
|
|
|
203
206
|
warning: !1,
|
|
204
207
|
children: {}
|
|
205
208
|
};
|
|
206
|
-
r.children[e.key] = t,
|
|
209
|
+
r.children[e.key] = t, Te([], e, n, t, void 0, !1);
|
|
207
210
|
}
|
|
208
211
|
e.value = r;
|
|
209
212
|
}
|
|
@@ -289,15 +292,15 @@ function ct() {
|
|
|
289
292
|
var lt = /* @__PURE__ */ p({
|
|
290
293
|
__name: "index",
|
|
291
294
|
setup(e) {
|
|
292
|
-
let { t } =
|
|
295
|
+
let { t } = V(), n = Ye(), r = Ze(), i = tt(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
|
|
293
296
|
!(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
|
|
294
297
|
title: t("x-prop-tree.reset"),
|
|
295
298
|
func: () => {
|
|
296
|
-
let e =
|
|
299
|
+
let e = J(n.value, m.value);
|
|
297
300
|
if (e) if (e.ui) {
|
|
298
|
-
let t =
|
|
301
|
+
let t = Y(r.value, m.value.slice(0, -1));
|
|
299
302
|
if (!t) return;
|
|
300
|
-
t[m.value[m.value.length - 1]] =
|
|
303
|
+
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
301
304
|
} else if (e.array) {
|
|
302
305
|
let t = m.value[m.value.length - 1];
|
|
303
306
|
if (t === void 0) {
|
|
@@ -305,21 +308,21 @@ var lt = /* @__PURE__ */ p({
|
|
|
305
308
|
return;
|
|
306
309
|
}
|
|
307
310
|
if (typeof t == "string") {
|
|
308
|
-
let t =
|
|
311
|
+
let t = Y(r.value, m.value.slice(0, -1));
|
|
309
312
|
if (!t) return;
|
|
310
|
-
t[m.value[m.value.length - 1]] =
|
|
313
|
+
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
311
314
|
} else {
|
|
312
|
-
let t =
|
|
315
|
+
let t = Y(r.value, m.value);
|
|
313
316
|
if (!t) return;
|
|
314
317
|
e.children.forEach((n) => {
|
|
315
|
-
t[n.key] =
|
|
318
|
+
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
316
319
|
});
|
|
317
320
|
}
|
|
318
321
|
} else {
|
|
319
|
-
let t =
|
|
322
|
+
let t = Y(r.value, m.value);
|
|
320
323
|
if (!t) return;
|
|
321
324
|
e.children.forEach((n) => {
|
|
322
|
-
t[n.key] =
|
|
325
|
+
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
323
326
|
});
|
|
324
327
|
}
|
|
325
328
|
}
|
|
@@ -328,7 +331,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
328
331
|
e.push({
|
|
329
332
|
title: t("x-prop-tree.copy"),
|
|
330
333
|
func: () => {
|
|
331
|
-
let e =
|
|
334
|
+
let e = J(n.value, m.value), t = Y(r.value, m.value);
|
|
332
335
|
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
333
336
|
property: e,
|
|
334
337
|
object: t
|
|
@@ -342,8 +345,8 @@ var lt = /* @__PURE__ */ p({
|
|
|
342
345
|
try {
|
|
343
346
|
let { property: t } = JSON.parse(e);
|
|
344
347
|
if (!t) return !1;
|
|
345
|
-
let r =
|
|
346
|
-
return r ?
|
|
348
|
+
let r = J(n.value, m.value);
|
|
349
|
+
return r ? Se(t, r) : !1;
|
|
347
350
|
} catch (e) {
|
|
348
351
|
console.error(e);
|
|
349
352
|
}
|
|
@@ -355,7 +358,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
355
358
|
if (!r()) return;
|
|
356
359
|
let e = localStorage.getItem("propTreeCopy");
|
|
357
360
|
if (e) try {
|
|
358
|
-
let { object: t } = JSON.parse(e), r =
|
|
361
|
+
let { object: t } = JSON.parse(e), r = J(n.value, m.value);
|
|
359
362
|
console.log(t, r);
|
|
360
363
|
} catch (e) {
|
|
361
364
|
console.error(e);
|
|
@@ -365,26 +368,26 @@ var lt = /* @__PURE__ */ p({
|
|
|
365
368
|
}, b = o(() => {
|
|
366
369
|
let e = [];
|
|
367
370
|
return _(e), v(e), y(e), e;
|
|
368
|
-
}), { open: x } =
|
|
371
|
+
}), { open: x } = G("propTreeMenu", (e) => {
|
|
369
372
|
u.value = e.x, p.value = e.y, m.value = e.keys;
|
|
370
373
|
});
|
|
371
374
|
return (e, t) => {
|
|
372
|
-
let n =
|
|
375
|
+
let n = O("v-list-item-title"), r = O("v-list-item"), i = O("v-list"), o = O("v-menu");
|
|
373
376
|
return C(), s(o, {
|
|
374
|
-
modelValue:
|
|
377
|
+
modelValue: j(x),
|
|
375
378
|
"onUpdate:modelValue": t[0] ||= (e) => g(x) ? x.value = e : null,
|
|
376
379
|
"location-strategy": "connected",
|
|
377
380
|
scrim: "transparent",
|
|
378
381
|
target: h.value
|
|
379
382
|
}, {
|
|
380
|
-
default:
|
|
381
|
-
default:
|
|
383
|
+
default: I(() => [f(i, null, {
|
|
384
|
+
default: I(() => [(C(!0), l(a, null, E(b.value, (e, t) => (C(), s(r, {
|
|
382
385
|
key: t,
|
|
383
386
|
link: "",
|
|
384
387
|
onClick: e.func
|
|
385
388
|
}, {
|
|
386
|
-
default:
|
|
387
|
-
default:
|
|
389
|
+
default: I(() => [f(n, null, {
|
|
390
|
+
default: I(() => [d(A(e.title), 1)]),
|
|
388
391
|
_: 2
|
|
389
392
|
}, 1024)]),
|
|
390
393
|
_: 2
|
|
@@ -417,7 +420,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
417
420
|
"delete"
|
|
418
421
|
],
|
|
419
422
|
setup(e, { emit: t }) {
|
|
420
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
423
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), d = o(() => ({
|
|
421
424
|
background: a.value ? r.value : n.value,
|
|
422
425
|
height: "36px",
|
|
423
426
|
marginBottom: "1px",
|
|
@@ -428,12 +431,12 @@ var lt = /* @__PURE__ */ p({
|
|
|
428
431
|
i("menu", e.clientX, e.clientY);
|
|
429
432
|
};
|
|
430
433
|
return (t, n) => {
|
|
431
|
-
let r =
|
|
432
|
-
return
|
|
434
|
+
let r = O("v-icon"), o = O("v-spacer"), h = O("v-btn"), g = k("ripple");
|
|
435
|
+
return L((C(), l("div", {
|
|
433
436
|
class: "d-flex align-center cursor-pointer",
|
|
434
437
|
style: y(d.value),
|
|
435
438
|
onClick: p,
|
|
436
|
-
onContextmenu:
|
|
439
|
+
onContextmenu: z(m, ["self", "prevent"]),
|
|
437
440
|
onMouseout: n[2] ||= (e) => a.value = !1,
|
|
438
441
|
onMouseover: n[3] ||= (e) => a.value = !0
|
|
439
442
|
}, [
|
|
@@ -441,7 +444,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
441
444
|
class: "mr-1",
|
|
442
445
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
443
446
|
}, null, 8, ["icon"]),
|
|
444
|
-
u("span", ut,
|
|
447
|
+
u("span", ut, A(e.title), 1),
|
|
445
448
|
f(o),
|
|
446
449
|
e.hasCreate ? (C(), s(h, {
|
|
447
450
|
key: 0,
|
|
@@ -449,7 +452,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
449
452
|
density: "compact",
|
|
450
453
|
icon: "mdi-plus",
|
|
451
454
|
variant: "text",
|
|
452
|
-
onClick: n[0] ||=
|
|
455
|
+
onClick: n[0] ||= z((e) => i("create"), ["stop"])
|
|
453
456
|
})) : c("", !0),
|
|
454
457
|
e.hasDelete ? (C(), s(h, {
|
|
455
458
|
key: 1,
|
|
@@ -457,7 +460,7 @@ var lt = /* @__PURE__ */ p({
|
|
|
457
460
|
density: "compact",
|
|
458
461
|
icon: "mdi-minus",
|
|
459
462
|
variant: "text",
|
|
460
|
-
onClick: n[1] ||=
|
|
463
|
+
onClick: n[1] ||= z((t) => i("delete", e.index), ["stop"])
|
|
461
464
|
})) : c("", !0)
|
|
462
465
|
], 36)), [[g]]);
|
|
463
466
|
};
|
|
@@ -466,13 +469,13 @@ var lt = /* @__PURE__ */ p({
|
|
|
466
469
|
//#endregion
|
|
467
470
|
//#region src/composables/adaptSlotList/index.ts
|
|
468
471
|
function ft() {
|
|
469
|
-
let e = Ue(), t = Ge(), n = qe(), { i18n: a } =
|
|
472
|
+
let e = Ue(), t = Ge(), n = qe(), { i18n: a } = pe, o = T([]);
|
|
470
473
|
st(o);
|
|
471
474
|
let s = () => {
|
|
472
475
|
if (!e.value || !t.value || !n.value) return [];
|
|
473
|
-
let s =
|
|
476
|
+
let s = de[e.value];
|
|
474
477
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
475
|
-
let c =
|
|
478
|
+
let c = ie(t.value, n.value), l = [];
|
|
476
479
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
477
480
|
let t = s.groups[c][e], n = r(o, t.key);
|
|
478
481
|
l.push({
|
|
@@ -485,9 +488,9 @@ function ft() {
|
|
|
485
488
|
});
|
|
486
489
|
let i = 0;
|
|
487
490
|
for (let e of t.items) {
|
|
488
|
-
let n =
|
|
491
|
+
let n = te(e);
|
|
489
492
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
490
|
-
let r =
|
|
493
|
+
let r = ce("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
|
|
491
494
|
l.push({
|
|
492
495
|
id: r,
|
|
493
496
|
type: 1,
|
|
@@ -498,7 +501,7 @@ function ft() {
|
|
|
498
501
|
}
|
|
499
502
|
}
|
|
500
503
|
}
|
|
501
|
-
let { activeApp: u, depends: d } =
|
|
504
|
+
let { activeApp: u, depends: d } = ve.app;
|
|
502
505
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
503
506
|
let i = r(o, e);
|
|
504
507
|
l.push({
|
|
@@ -513,7 +516,7 @@ function ft() {
|
|
|
513
516
|
for (let e of u.comps) {
|
|
514
517
|
let t = d[e.id];
|
|
515
518
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
516
|
-
let t =
|
|
519
|
+
let t = ce("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
517
520
|
l.push({
|
|
518
521
|
id: t,
|
|
519
522
|
type: 1,
|
|
@@ -537,7 +540,7 @@ function ft() {
|
|
|
537
540
|
u();
|
|
538
541
|
}), b(() => {
|
|
539
542
|
d();
|
|
540
|
-
}),
|
|
543
|
+
}), P([
|
|
541
544
|
e,
|
|
542
545
|
t,
|
|
543
546
|
n
|
|
@@ -551,7 +554,7 @@ function pt() {
|
|
|
551
554
|
let e = T([]);
|
|
552
555
|
rt(e);
|
|
553
556
|
let t = () => {
|
|
554
|
-
let { activeApp: t, depends: n } =
|
|
557
|
+
let { activeApp: t, depends: n } = ve.app, r = [];
|
|
555
558
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
556
559
|
let t = e.value.find((e) => e.id === n);
|
|
557
560
|
r.push({
|
|
@@ -589,7 +592,7 @@ function mt() {
|
|
|
589
592
|
let e = T([]);
|
|
590
593
|
at(e);
|
|
591
594
|
let t = () => {
|
|
592
|
-
let { activeObject: e, activeComp: t } =
|
|
595
|
+
let { activeObject: e, activeComp: t } = ve.app;
|
|
593
596
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
594
597
|
let n = [];
|
|
595
598
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -624,15 +627,15 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
624
627
|
},
|
|
625
628
|
emits: ["x-click"],
|
|
626
629
|
setup(e, { emit: t }) {
|
|
627
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
630
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
628
631
|
background: s.value ? r.value : n.value,
|
|
629
632
|
height: "30px",
|
|
630
633
|
marginTop: "1px",
|
|
631
634
|
userSelect: "none"
|
|
632
635
|
}));
|
|
633
636
|
return (e, t) => {
|
|
634
|
-
let n =
|
|
635
|
-
return
|
|
637
|
+
let n = O("v-icon"), r = k("ripple");
|
|
638
|
+
return L((C(), l("div", {
|
|
636
639
|
class: "d-flex align-center cursor-pointer",
|
|
637
640
|
style: y(c.value),
|
|
638
641
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
@@ -643,8 +646,8 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
643
646
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
644
647
|
size: "small"
|
|
645
648
|
}, null, 8, ["icon"]),
|
|
646
|
-
u("span", ht,
|
|
647
|
-
u("span", gt,
|
|
649
|
+
u("span", ht, A(i.title), 1),
|
|
650
|
+
u("span", gt, A(i.count), 1)
|
|
648
651
|
], 36)), [[r]]);
|
|
649
652
|
};
|
|
650
653
|
}
|
|
@@ -656,21 +659,21 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
656
659
|
},
|
|
657
660
|
emits: ["x-click"],
|
|
658
661
|
setup(e, { emit: t }) {
|
|
659
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
662
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
660
663
|
background: a.value ? r.value : n.value,
|
|
661
664
|
height: "48px",
|
|
662
665
|
marginTop: "1px",
|
|
663
666
|
userSelect: "none"
|
|
664
667
|
}));
|
|
665
668
|
return (t, n) => {
|
|
666
|
-
let r =
|
|
667
|
-
return
|
|
669
|
+
let r = k("ripple");
|
|
670
|
+
return L((C(), l("div", {
|
|
668
671
|
class: "d-flex align-center cursor-pointer",
|
|
669
672
|
style: y(s.value),
|
|
670
673
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
671
674
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
672
675
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
673
|
-
}, [u("span", vt,
|
|
676
|
+
}, [u("span", vt, A(e.title), 1)], 36)), [[r]]);
|
|
674
677
|
};
|
|
675
678
|
}
|
|
676
679
|
}), bt = { key: 0 }, xt = {
|
|
@@ -689,13 +692,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
689
692
|
},
|
|
690
693
|
emits: ["update:modelValue", "update:open"],
|
|
691
694
|
setup(e) {
|
|
692
|
-
let { nameList: t } =
|
|
695
|
+
let { nameList: t } = W(), i = N(e, "modelValue"), o = N(e, "open"), u = ct(), d = (e) => {
|
|
693
696
|
let t = r(u, e);
|
|
694
697
|
t && n(u, e, !t.collapse);
|
|
695
698
|
}, f = (e) => {
|
|
696
699
|
i.value = e, o.value = !1;
|
|
697
700
|
};
|
|
698
|
-
return (e, n) =>
|
|
701
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", bt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(_t, {
|
|
699
702
|
key: 0,
|
|
700
703
|
id: e.id,
|
|
701
704
|
collapse: e.collapse,
|
|
@@ -712,7 +715,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
712
715
|
id: e.id,
|
|
713
716
|
title: e.name,
|
|
714
717
|
onXClick: f
|
|
715
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt,
|
|
718
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt, A(j(t)([
|
|
716
719
|
"x-prop-tree.no",
|
|
717
720
|
"x-prop-tree.adapt",
|
|
718
721
|
"x-prop-tree.slot"
|
|
@@ -735,7 +738,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
735
738
|
}),
|
|
736
739
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
737
740
|
setup(e, { emit: t }) {
|
|
738
|
-
let { t: n } =
|
|
741
|
+
let { t: n } = V(), i = ye(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = N(e, "modelValue"), h = t, _ = ct(), b = o(() => {
|
|
739
742
|
let e = "100%";
|
|
740
743
|
return i.mdAndUp.value && (e = "400px"), {
|
|
741
744
|
background: p.value,
|
|
@@ -752,26 +755,26 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
752
755
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
753
756
|
let e = r(_, m.value);
|
|
754
757
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
755
|
-
}), { open: E } =
|
|
758
|
+
}), { open: E } = G(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
756
759
|
return S(() => {
|
|
757
760
|
E.value = !1;
|
|
758
761
|
}), (t, n) => {
|
|
759
|
-
let r =
|
|
762
|
+
let r = O("v-btn"), i = O("v-sheet"), o = O("v-dialog");
|
|
760
763
|
return C(), s(o, {
|
|
761
|
-
modelValue:
|
|
764
|
+
modelValue: j(E),
|
|
762
765
|
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
763
766
|
fullscreen: "",
|
|
764
767
|
"no-click-animation": "",
|
|
765
768
|
persistent: "",
|
|
766
769
|
transition: "scroll-x-reverse-transition",
|
|
767
|
-
onKeydown: n[7] ||=
|
|
770
|
+
onKeydown: n[7] ||= R(z((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
768
771
|
}, {
|
|
769
|
-
activator:
|
|
772
|
+
activator: I(({ props: t }) => [f(r, v(t, {
|
|
770
773
|
block: "",
|
|
771
774
|
density: "comfortable",
|
|
772
775
|
readonly: e.readonly
|
|
773
776
|
}), {
|
|
774
|
-
default:
|
|
777
|
+
default: I(() => [d(A(T.value), 1)]),
|
|
775
778
|
_: 1
|
|
776
779
|
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
777
780
|
key: 0,
|
|
@@ -779,17 +782,17 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
779
782
|
density: "compact",
|
|
780
783
|
icon: "mdi-minus",
|
|
781
784
|
variant: "text",
|
|
782
|
-
onClick: n[0] ||=
|
|
785
|
+
onClick: n[0] ||= z((e) => h("delete"), ["stop"])
|
|
783
786
|
})) : c("", !0)]),
|
|
784
|
-
default:
|
|
787
|
+
default: I(() => [u("div", {
|
|
785
788
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
786
|
-
onClick: n[4] ||=
|
|
787
|
-
onContextmenu: n[5] ||=
|
|
789
|
+
onClick: n[4] ||= z((e) => E.value = !1, ["self"]),
|
|
790
|
+
onContextmenu: n[5] ||= z((e) => E.value = !1, ["self", "prevent"])
|
|
788
791
|
}, [u("div", {
|
|
789
792
|
class: "elevation-2",
|
|
790
793
|
style: y(b.value)
|
|
791
794
|
}, [
|
|
792
|
-
|
|
795
|
+
j(a) ? (C(), s(i, {
|
|
793
796
|
key: 0,
|
|
794
797
|
color: "transparent",
|
|
795
798
|
height: 24
|
|
@@ -799,12 +802,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
799
802
|
color: "transparent",
|
|
800
803
|
height: 48
|
|
801
804
|
}, {
|
|
802
|
-
default:
|
|
805
|
+
default: I(() => [f(r, {
|
|
803
806
|
density: "comfortable",
|
|
804
807
|
icon: "mdi-close",
|
|
805
808
|
variant: "text",
|
|
806
809
|
onClick: n[1] ||= (e) => E.value = !1
|
|
807
|
-
}), u("span", Ct,
|
|
810
|
+
}), u("span", Ct, A(j(l)([
|
|
808
811
|
"x-prop-tree.select",
|
|
809
812
|
"x-prop-tree.adapt",
|
|
810
813
|
"x-prop-tree.slot"
|
|
@@ -817,7 +820,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
817
820
|
}, [f(St, {
|
|
818
821
|
modelValue: m.value,
|
|
819
822
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
820
|
-
open:
|
|
823
|
+
open: j(E),
|
|
821
824
|
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
822
825
|
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
823
826
|
], 4)], 32)]),
|
|
@@ -842,21 +845,21 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
842
845
|
}),
|
|
843
846
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
844
847
|
setup(e, { emit: t }) {
|
|
845
|
-
let { t: n } =
|
|
848
|
+
let { t: n } = V(), r = N(e, "modelValue"), i = t, a = o(() => {
|
|
846
849
|
let t = "100%";
|
|
847
850
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
848
|
-
}), l = o(() => e.readonly), { open: p } =
|
|
851
|
+
}), l = o(() => e.readonly), { open: p } = G(`propTreeColorPickerMenu${M()}`);
|
|
849
852
|
return S(() => {
|
|
850
853
|
p.value = !1;
|
|
851
854
|
}), (t, o) => {
|
|
852
|
-
let m =
|
|
855
|
+
let m = O("v-btn"), h = O("v-color-picker"), _ = O("v-menu");
|
|
853
856
|
return C(), s(_, {
|
|
854
|
-
modelValue:
|
|
857
|
+
modelValue: j(p),
|
|
855
858
|
"onUpdate:modelValue": o[2] ||= (e) => g(p) ? p.value = e : null,
|
|
856
859
|
"close-on-content-click": !1,
|
|
857
860
|
scrim: "transparent"
|
|
858
861
|
}, {
|
|
859
|
-
activator:
|
|
862
|
+
activator: I(({ props: t }) => [u("div", Tt, [u("div", {
|
|
860
863
|
class: "flex-grow-1",
|
|
861
864
|
style: y(a.value)
|
|
862
865
|
}, [f(m, v(t, {
|
|
@@ -865,7 +868,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
865
868
|
density: "comfortable",
|
|
866
869
|
disabled: l.value
|
|
867
870
|
}), {
|
|
868
|
-
default:
|
|
871
|
+
default: I(() => [d(A(r.value ? r.value : j(n)("x-runtime-lib.notSet")), 1)]),
|
|
869
872
|
_: 1
|
|
870
873
|
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (C(), s(m, {
|
|
871
874
|
key: 0,
|
|
@@ -873,9 +876,9 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
873
876
|
density: "compact",
|
|
874
877
|
icon: "mdi-minus",
|
|
875
878
|
variant: "text",
|
|
876
|
-
onClick: o[0] ||=
|
|
879
|
+
onClick: o[0] ||= z((e) => i("delete"), ["stop"])
|
|
877
880
|
})) : c("", !0)])]),
|
|
878
|
-
default:
|
|
881
|
+
default: I(() => [f(h, {
|
|
879
882
|
modelValue: r.value,
|
|
880
883
|
"onUpdate:modelValue": o[1] ||= (e) => r.value = e,
|
|
881
884
|
mode: "hexa",
|
|
@@ -896,15 +899,15 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
896
899
|
},
|
|
897
900
|
emits: ["x-click"],
|
|
898
901
|
setup(e, { emit: t }) {
|
|
899
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
902
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
900
903
|
background: s.value ? r.value : n.value,
|
|
901
904
|
height: "30px",
|
|
902
905
|
marginTop: "1px",
|
|
903
906
|
userSelect: "none"
|
|
904
907
|
}));
|
|
905
908
|
return (e, t) => {
|
|
906
|
-
let n =
|
|
907
|
-
return
|
|
909
|
+
let n = O("v-icon"), r = k("ripple");
|
|
910
|
+
return L((C(), l("div", {
|
|
908
911
|
class: "d-flex align-center cursor-pointer",
|
|
909
912
|
style: y(c.value),
|
|
910
913
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
@@ -915,8 +918,8 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
915
918
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
916
919
|
size: "small"
|
|
917
920
|
}, null, 8, ["icon"]),
|
|
918
|
-
u("span", Dt,
|
|
919
|
-
u("span", Ot,
|
|
921
|
+
u("span", Dt, A(i.title), 1),
|
|
922
|
+
u("span", Ot, A(i.count), 1)
|
|
920
923
|
], 36)), [[r]]);
|
|
921
924
|
};
|
|
922
925
|
}
|
|
@@ -928,21 +931,21 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
928
931
|
},
|
|
929
932
|
emits: ["x-click"],
|
|
930
933
|
setup(e, { emit: t }) {
|
|
931
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
934
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
932
935
|
background: s.value ? r.value : n.value,
|
|
933
936
|
height: "48px",
|
|
934
937
|
marginTop: "1px",
|
|
935
938
|
userSelect: "none"
|
|
936
939
|
}));
|
|
937
940
|
return (e, t) => {
|
|
938
|
-
let n =
|
|
939
|
-
return
|
|
941
|
+
let n = k("ripple");
|
|
942
|
+
return L((C(), l("div", {
|
|
940
943
|
class: "d-flex align-center cursor-pointer",
|
|
941
944
|
style: y(c.value),
|
|
942
945
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
943
946
|
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
944
947
|
onMouseover: t[2] ||= (e) => s.value = !0
|
|
945
|
-
}, [u("span", At,
|
|
948
|
+
}, [u("span", At, A(i.title), 1)], 36)), [[n]]);
|
|
946
949
|
};
|
|
947
950
|
}
|
|
948
951
|
}), Mt = { key: 0 }, Nt = {
|
|
@@ -961,13 +964,13 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
961
964
|
},
|
|
962
965
|
emits: ["update:modelValue", "update:open"],
|
|
963
966
|
setup(e) {
|
|
964
|
-
let { nameList: t } =
|
|
967
|
+
let { nameList: t } = W(), i = N(e, "modelValue"), o = N(e, "open"), u = it(), d = (e) => {
|
|
965
968
|
let t = r(u, e);
|
|
966
969
|
t && n(u, e, !t.collapse);
|
|
967
970
|
}, f = (e) => {
|
|
968
|
-
i.value = e, o.value = !1,
|
|
971
|
+
i.value = e, o.value = !1, H.emit("refreshDepends");
|
|
969
972
|
};
|
|
970
|
-
return (e, n) =>
|
|
973
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", Mt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(kt, {
|
|
971
974
|
key: 0,
|
|
972
975
|
id: e.id,
|
|
973
976
|
collapse: e.collapse,
|
|
@@ -984,7 +987,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
984
987
|
id: e.id,
|
|
985
988
|
title: e.name,
|
|
986
989
|
onXClick: f
|
|
987
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt,
|
|
990
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
988
991
|
}
|
|
989
992
|
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
990
993
|
__name: "index",
|
|
@@ -1003,7 +1006,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1003
1006
|
}),
|
|
1004
1007
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1005
1008
|
setup(e, { emit: t }) {
|
|
1006
|
-
let { t: n } =
|
|
1009
|
+
let { t: n } = V(), i = ye(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = N(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
1007
1010
|
let e = "100%";
|
|
1008
1011
|
return i.mdAndUp.value && (e = "400px"), {
|
|
1009
1012
|
background: p.value,
|
|
@@ -1020,26 +1023,26 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1020
1023
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1021
1024
|
let e = r(_, m.value);
|
|
1022
1025
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1023
|
-
}), { open: E } =
|
|
1026
|
+
}), { open: E } = G(`propTreeCompSelectDlg${M()}`);
|
|
1024
1027
|
return S(() => {
|
|
1025
1028
|
E.value = !1;
|
|
1026
1029
|
}), (t, n) => {
|
|
1027
|
-
let r =
|
|
1030
|
+
let r = O("v-btn"), i = O("v-sheet"), o = O("v-dialog");
|
|
1028
1031
|
return C(), s(o, {
|
|
1029
|
-
modelValue:
|
|
1032
|
+
modelValue: j(E),
|
|
1030
1033
|
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
1031
1034
|
fullscreen: "",
|
|
1032
1035
|
"no-click-animation": "",
|
|
1033
1036
|
persistent: "",
|
|
1034
1037
|
transition: "scroll-x-reverse-transition",
|
|
1035
|
-
onKeydown: n[7] ||=
|
|
1038
|
+
onKeydown: n[7] ||= R(z((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1036
1039
|
}, {
|
|
1037
|
-
activator:
|
|
1040
|
+
activator: I(({ props: t }) => [f(r, v(t, {
|
|
1038
1041
|
block: "",
|
|
1039
1042
|
density: "comfortable",
|
|
1040
1043
|
readonly: e.readonly
|
|
1041
1044
|
}), {
|
|
1042
|
-
default:
|
|
1045
|
+
default: I(() => [d(A(T.value), 1)]),
|
|
1043
1046
|
_: 1
|
|
1044
1047
|
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1045
1048
|
key: 0,
|
|
@@ -1047,17 +1050,17 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1047
1050
|
density: "compact",
|
|
1048
1051
|
icon: "mdi-minus",
|
|
1049
1052
|
variant: "text",
|
|
1050
|
-
onClick: n[0] ||=
|
|
1053
|
+
onClick: n[0] ||= z((e) => h("delete"), ["stop"])
|
|
1051
1054
|
})) : c("", !0)]),
|
|
1052
|
-
default:
|
|
1055
|
+
default: I(() => [u("div", {
|
|
1053
1056
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1054
|
-
onClick: n[4] ||=
|
|
1055
|
-
onContextmenu: n[5] ||=
|
|
1057
|
+
onClick: n[4] ||= z((e) => E.value = !1, ["self"]),
|
|
1058
|
+
onContextmenu: n[5] ||= z((e) => E.value = !1, ["self", "prevent"])
|
|
1056
1059
|
}, [u("div", {
|
|
1057
1060
|
class: "elevation-2",
|
|
1058
1061
|
style: y(b.value)
|
|
1059
1062
|
}, [
|
|
1060
|
-
|
|
1063
|
+
j(a) ? (C(), s(i, {
|
|
1061
1064
|
key: 0,
|
|
1062
1065
|
color: "transparent",
|
|
1063
1066
|
height: 24
|
|
@@ -1067,12 +1070,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1067
1070
|
color: "transparent",
|
|
1068
1071
|
height: 48
|
|
1069
1072
|
}, {
|
|
1070
|
-
default:
|
|
1073
|
+
default: I(() => [f(r, {
|
|
1071
1074
|
density: "comfortable",
|
|
1072
1075
|
icon: "mdi-close",
|
|
1073
1076
|
variant: "text",
|
|
1074
1077
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1075
|
-
}), u("span", Ft,
|
|
1078
|
+
}), u("span", Ft, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1076
1079
|
_: 1
|
|
1077
1080
|
}),
|
|
1078
1081
|
u("div", {
|
|
@@ -1081,7 +1084,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1081
1084
|
}, [f(Pt, {
|
|
1082
1085
|
modelValue: m.value,
|
|
1083
1086
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1084
|
-
open:
|
|
1087
|
+
open: j(E),
|
|
1085
1088
|
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1086
1089
|
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1087
1090
|
], 4)], 32)]),
|
|
@@ -1108,24 +1111,24 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1108
1111
|
"update:scale"
|
|
1109
1112
|
],
|
|
1110
1113
|
setup(e, { expose: t }) {
|
|
1111
|
-
let n =
|
|
1114
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = me(), o = he(), c = Ue(), l = ee("target"), u = () => {
|
|
1112
1115
|
let e = JSON.parse(n.value);
|
|
1113
1116
|
l.value?.load(e);
|
|
1114
1117
|
};
|
|
1115
1118
|
return t({ save: () => {
|
|
1116
1119
|
let e = l.value.save();
|
|
1117
1120
|
n.value = JSON.stringify(e, null, 2);
|
|
1118
|
-
} }), (e, t) => (C(), s(
|
|
1121
|
+
} }), (e, t) => (C(), s(j(be), {
|
|
1119
1122
|
ref_key: "target",
|
|
1120
1123
|
ref: l,
|
|
1121
1124
|
lock: r.value,
|
|
1122
1125
|
"onUpdate:lock": t[0] ||= (e) => r.value = e,
|
|
1123
1126
|
scale: i.value,
|
|
1124
1127
|
"onUpdate:scale": t[1] ||= (e) => i.value = e,
|
|
1125
|
-
dark:
|
|
1126
|
-
locale:
|
|
1128
|
+
dark: j(a),
|
|
1129
|
+
locale: j(o),
|
|
1127
1130
|
type: "json",
|
|
1128
|
-
version:
|
|
1131
|
+
version: j(c),
|
|
1129
1132
|
onReady: u
|
|
1130
1133
|
}, null, 8, [
|
|
1131
1134
|
"lock",
|
|
@@ -1152,38 +1155,38 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1152
1155
|
}),
|
|
1153
1156
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1154
1157
|
setup(e, { emit: t }) {
|
|
1155
|
-
let { t: n } =
|
|
1158
|
+
let { t: n } = V(), { sysBarAvail: r } = W(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = U(), p = N(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
|
|
1156
1159
|
let e = 48;
|
|
1157
1160
|
return r.value && (e += 24), {
|
|
1158
1161
|
position: "relative",
|
|
1159
1162
|
background: a.value,
|
|
1160
1163
|
height: `calc(100% - ${e}px)`
|
|
1161
1164
|
};
|
|
1162
|
-
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } =
|
|
1165
|
+
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = G(`propTreejsonEditorDlg${M()}`);
|
|
1163
1166
|
S(() => {
|
|
1164
1167
|
w.value = !1;
|
|
1165
1168
|
});
|
|
1166
|
-
let E =
|
|
1167
|
-
return
|
|
1169
|
+
let E = ee("editor");
|
|
1170
|
+
return P(w, (e) => {
|
|
1168
1171
|
e || E.value?.save();
|
|
1169
1172
|
}), (t, n) => {
|
|
1170
|
-
let a =
|
|
1173
|
+
let a = O("v-btn"), o = O("v-sheet"), S = O("v-spacer"), T = O("v-dialog");
|
|
1171
1174
|
return C(), s(T, {
|
|
1172
|
-
modelValue:
|
|
1175
|
+
modelValue: j(w),
|
|
1173
1176
|
"onUpdate:modelValue": n[5] ||= (e) => g(w) ? w.value = e : null,
|
|
1174
1177
|
attach: "",
|
|
1175
1178
|
fullscreen: "",
|
|
1176
1179
|
"no-click-animation": "",
|
|
1177
1180
|
persistent: "",
|
|
1178
1181
|
transition: "dialog-bottom-transition",
|
|
1179
|
-
onKeydown: n[6] ||=
|
|
1182
|
+
onKeydown: n[6] ||= R(z((e) => w.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1180
1183
|
}, {
|
|
1181
|
-
activator:
|
|
1184
|
+
activator: I(({ props: t }) => [f(a, v(t, {
|
|
1182
1185
|
block: "",
|
|
1183
1186
|
density: "comfortable",
|
|
1184
1187
|
readonly: e.readonly
|
|
1185
1188
|
}), {
|
|
1186
|
-
default:
|
|
1189
|
+
default: I(() => [d(A(x.value), 1)]),
|
|
1187
1190
|
_: 1
|
|
1188
1191
|
}, 16, ["readonly"]), e.hasDelete ? (C(), s(a, {
|
|
1189
1192
|
key: 0,
|
|
@@ -1191,32 +1194,32 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1191
1194
|
density: "compact",
|
|
1192
1195
|
icon: "mdi-minus",
|
|
1193
1196
|
variant: "text",
|
|
1194
|
-
onClick: n[0] ||=
|
|
1197
|
+
onClick: n[0] ||= z((e) => m("delete"), ["stop"])
|
|
1195
1198
|
})) : c("", !0)]),
|
|
1196
|
-
default:
|
|
1197
|
-
color:
|
|
1199
|
+
default: I(() => [f(o, {
|
|
1200
|
+
color: j(i),
|
|
1198
1201
|
height: "100%",
|
|
1199
1202
|
width: "100%"
|
|
1200
1203
|
}, {
|
|
1201
|
-
default:
|
|
1202
|
-
|
|
1204
|
+
default: I(() => [
|
|
1205
|
+
j(r) ? (C(), s(o, {
|
|
1203
1206
|
key: 0,
|
|
1204
|
-
color:
|
|
1207
|
+
color: j(l),
|
|
1205
1208
|
height: 24
|
|
1206
1209
|
}, null, 8, ["color"])) : c("", !0),
|
|
1207
1210
|
f(o, {
|
|
1208
1211
|
class: "d-flex align-center px-2",
|
|
1209
|
-
color:
|
|
1212
|
+
color: j(l),
|
|
1210
1213
|
height: 48
|
|
1211
1214
|
}, {
|
|
1212
|
-
default:
|
|
1215
|
+
default: I(() => [
|
|
1213
1216
|
f(a, {
|
|
1214
1217
|
density: "comfortable",
|
|
1215
1218
|
icon: "mdi-close",
|
|
1216
1219
|
variant: "text",
|
|
1217
1220
|
onClick: n[1] ||= (e) => w.value = !1
|
|
1218
1221
|
}),
|
|
1219
|
-
u("span", Rt,
|
|
1222
|
+
u("span", Rt, A(x.value), 1),
|
|
1220
1223
|
f(S)
|
|
1221
1224
|
]),
|
|
1222
1225
|
_: 1
|
|
@@ -1260,7 +1263,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1260
1263
|
}),
|
|
1261
1264
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1262
1265
|
setup(e, { emit: t }) {
|
|
1263
|
-
let { t: n } =
|
|
1266
|
+
let { t: n } = V(), { isMobile: r } = W(), i = N(e, "modelValue"), a = t, d = o(() => ae(e.types)), p = T(""), m = o(() => {
|
|
1264
1267
|
let e = [];
|
|
1265
1268
|
for (let { value: t, title: r } of d.value) e.push({
|
|
1266
1269
|
value: t,
|
|
@@ -1268,7 +1271,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1268
1271
|
});
|
|
1269
1272
|
return e;
|
|
1270
1273
|
});
|
|
1271
|
-
|
|
1274
|
+
F(() => {
|
|
1272
1275
|
for (let { value: e, validator: t } of d.value) if (t(i.value)) {
|
|
1273
1276
|
p.value = e;
|
|
1274
1277
|
return;
|
|
@@ -1279,7 +1282,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1279
1282
|
i.value = h.value?.default;
|
|
1280
1283
|
}, _ = T(0), v = async (e) => {
|
|
1281
1284
|
if (!e || !r() || !h.value || h.value.trait !== "pixel" && h.value.trait !== "percent") return;
|
|
1282
|
-
let t = await
|
|
1285
|
+
let t = await ge({
|
|
1283
1286
|
title: "",
|
|
1284
1287
|
value: _.value,
|
|
1285
1288
|
precision: h.value.precision,
|
|
@@ -1289,33 +1292,33 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1289
1292
|
});
|
|
1290
1293
|
t !== void 0 && (_.value = t);
|
|
1291
1294
|
};
|
|
1292
|
-
|
|
1293
|
-
h.value?.trait === "pixel" ? _.value =
|
|
1294
|
-
}),
|
|
1295
|
+
F(() => {
|
|
1296
|
+
h.value?.trait === "pixel" ? _.value = ue(i.value) : h.value?.trait === "percent" && (_.value = le(i.value));
|
|
1297
|
+
}), P(_, (e) => {
|
|
1295
1298
|
h.value?.trait === "pixel" ? i.value = e + "px" : h.value?.trait === "percent" && (i.value = e + "%");
|
|
1296
1299
|
});
|
|
1297
1300
|
let y = T("#ff00ff");
|
|
1298
|
-
|
|
1299
|
-
h.value?.trait === "hexColor" &&
|
|
1300
|
-
}),
|
|
1301
|
+
F(() => {
|
|
1302
|
+
h.value?.trait === "hexColor" && oe(i.value) && (y.value = i.value);
|
|
1303
|
+
}), P(y, (e) => {
|
|
1301
1304
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1302
1305
|
});
|
|
1303
1306
|
let b = T("primary"), x = o(() => {
|
|
1304
1307
|
let e = [];
|
|
1305
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1308
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of fe) e.push({
|
|
1306
1309
|
value: t,
|
|
1307
1310
|
title: n(r)
|
|
1308
1311
|
});
|
|
1309
1312
|
return e;
|
|
1310
1313
|
});
|
|
1311
|
-
return
|
|
1312
|
-
h.value?.trait === "themeColor" &&
|
|
1313
|
-
}),
|
|
1314
|
+
return F(() => {
|
|
1315
|
+
h.value?.trait === "themeColor" && se(i.value) && (b.value = i.value);
|
|
1316
|
+
}), P(b, (e) => {
|
|
1314
1317
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1315
1318
|
}), (t, n) => {
|
|
1316
|
-
let r =
|
|
1319
|
+
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), d = k("ripple");
|
|
1317
1320
|
return C(), l("div", Bt, [u("div", Vt, [
|
|
1318
|
-
|
|
1321
|
+
L(f(r, {
|
|
1319
1322
|
modelValue: p.value,
|
|
1320
1323
|
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
1321
1324
|
density: "compact",
|
|
@@ -1333,7 +1336,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1333
1336
|
void 0,
|
|
1334
1337
|
{ stop: !0 }
|
|
1335
1338
|
]]),
|
|
1336
|
-
h.value?.trait === "pixel" || h.value?.trait === "percent" ?
|
|
1339
|
+
h.value?.trait === "pixel" || h.value?.trait === "percent" ? L((C(), s(i, {
|
|
1337
1340
|
key: 0,
|
|
1338
1341
|
modelValue: _.value,
|
|
1339
1342
|
"onUpdate:modelValue": n[1] ||= (e) => _.value = e,
|
|
@@ -1365,7 +1368,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1365
1368
|
modelValue: y.value,
|
|
1366
1369
|
"onUpdate:modelValue": n[2] ||= (e) => y.value = e
|
|
1367
1370
|
}, null, 8, ["modelValue"])) : c("", !0),
|
|
1368
|
-
h.value?.trait === "themeColor" ?
|
|
1371
|
+
h.value?.trait === "themeColor" ? L((C(), s(r, {
|
|
1369
1372
|
key: 2,
|
|
1370
1373
|
modelValue: b.value,
|
|
1371
1374
|
"onUpdate:modelValue": n[3] ||= (e) => b.value = e,
|
|
@@ -1385,7 +1388,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1385
1388
|
density: "compact",
|
|
1386
1389
|
icon: "mdi-minus",
|
|
1387
1390
|
variant: "text",
|
|
1388
|
-
onClick: n[4] ||=
|
|
1391
|
+
onClick: n[4] ||= z((e) => a("delete"), ["stop"])
|
|
1389
1392
|
})) : c("", !0)]);
|
|
1390
1393
|
};
|
|
1391
1394
|
}
|
|
@@ -1410,9 +1413,9 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1410
1413
|
}),
|
|
1411
1414
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1412
1415
|
setup(e, { emit: t }) {
|
|
1413
|
-
let { isMobile: n } =
|
|
1416
|
+
let { isMobile: n } = W(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1414
1417
|
if (!t || e.readonly || !n()) return;
|
|
1415
|
-
let i = await
|
|
1418
|
+
let i = await ge({
|
|
1416
1419
|
title: "",
|
|
1417
1420
|
value: r.value,
|
|
1418
1421
|
precision: e.precision,
|
|
@@ -1423,8 +1426,8 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1423
1426
|
i !== void 0 && (r.value = i);
|
|
1424
1427
|
};
|
|
1425
1428
|
return (t, n) => {
|
|
1426
|
-
let o =
|
|
1427
|
-
return C(), l("div", Ut, [
|
|
1429
|
+
let o = O("v-number-input"), u = O("v-btn"), d = k("ripple");
|
|
1430
|
+
return C(), l("div", Ut, [L(f(o, {
|
|
1428
1431
|
modelValue: r.value,
|
|
1429
1432
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1430
1433
|
"control-variant": "stacked",
|
|
@@ -1455,7 +1458,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1455
1458
|
density: "compact",
|
|
1456
1459
|
icon: "mdi-minus",
|
|
1457
1460
|
variant: "text",
|
|
1458
|
-
onClick: n[1] ||=
|
|
1461
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1459
1462
|
})) : c("", !0)]);
|
|
1460
1463
|
};
|
|
1461
1464
|
}
|
|
@@ -1477,9 +1480,9 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1477
1480
|
}),
|
|
1478
1481
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1479
1482
|
setup(e, { emit: t }) {
|
|
1480
|
-
let { t: n } =
|
|
1483
|
+
let { t: n } = V(), r = N(e, "modelValue"), i = t, a = o(() => {
|
|
1481
1484
|
let t = [];
|
|
1482
|
-
return
|
|
1485
|
+
return ne(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1483
1486
|
t.push({
|
|
1484
1487
|
value: e,
|
|
1485
1488
|
title: n(r)
|
|
@@ -1487,8 +1490,8 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1487
1490
|
}), t;
|
|
1488
1491
|
});
|
|
1489
1492
|
return (t, n) => {
|
|
1490
|
-
let o =
|
|
1491
|
-
return C(), l("div", Gt, [
|
|
1493
|
+
let o = O("v-select"), u = O("v-btn"), d = k("ripple");
|
|
1494
|
+
return C(), l("div", Gt, [L(f(o, {
|
|
1492
1495
|
modelValue: r.value,
|
|
1493
1496
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1494
1497
|
density: "compact",
|
|
@@ -1511,7 +1514,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1511
1514
|
density: "compact",
|
|
1512
1515
|
icon: "mdi-minus",
|
|
1513
1516
|
variant: "text",
|
|
1514
|
-
onClick: n[1] ||=
|
|
1517
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1515
1518
|
})) : c("", !0)]);
|
|
1516
1519
|
};
|
|
1517
1520
|
}
|
|
@@ -1523,21 +1526,21 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1523
1526
|
},
|
|
1524
1527
|
emits: ["x-click"],
|
|
1525
1528
|
setup(e, { emit: t }) {
|
|
1526
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1529
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
1527
1530
|
background: a.value ? r.value : n.value,
|
|
1528
1531
|
height: "48px",
|
|
1529
1532
|
marginTop: "1px",
|
|
1530
1533
|
userSelect: "none"
|
|
1531
1534
|
}));
|
|
1532
1535
|
return (t, n) => {
|
|
1533
|
-
let r =
|
|
1534
|
-
return
|
|
1536
|
+
let r = k("ripple");
|
|
1537
|
+
return L((C(), l("div", {
|
|
1535
1538
|
class: "d-flex align-center cursor-pointer",
|
|
1536
1539
|
style: y(s.value),
|
|
1537
1540
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1538
1541
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1539
1542
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1540
|
-
}, [u("span", qt,
|
|
1543
|
+
}, [u("span", qt, A(e.title), 1)], 36)), [[r]]);
|
|
1541
1544
|
};
|
|
1542
1545
|
}
|
|
1543
1546
|
}), Yt = { key: 0 }, Xt = {
|
|
@@ -1556,15 +1559,15 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1556
1559
|
},
|
|
1557
1560
|
emits: ["update:modelValue", "update:open"],
|
|
1558
1561
|
setup(e) {
|
|
1559
|
-
let { nameList: t } =
|
|
1562
|
+
let { nameList: t } = W(), n = N(e, "modelValue"), r = N(e, "open"), i = ot(), o = (e) => {
|
|
1560
1563
|
n.value = e, r.value = !1;
|
|
1561
1564
|
};
|
|
1562
|
-
return (e, n) =>
|
|
1565
|
+
return (e, n) => j(i).length > 0 ? (C(), l("div", Yt, [(C(!0), l(a, null, E(j(i), (e) => (C(), s(Jt, {
|
|
1563
1566
|
key: e.id,
|
|
1564
1567
|
id: e.id,
|
|
1565
1568
|
title: e.name,
|
|
1566
1569
|
onXClick: o
|
|
1567
|
-
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Xt,
|
|
1570
|
+
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Xt, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1568
1571
|
}
|
|
1569
1572
|
}), Qt = { class: "text-body-large" }, $t = /* @__PURE__ */ p({
|
|
1570
1573
|
__name: "index",
|
|
@@ -1583,7 +1586,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1583
1586
|
}),
|
|
1584
1587
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1585
1588
|
setup(e, { emit: t }) {
|
|
1586
|
-
let { t: n } =
|
|
1589
|
+
let { t: n } = V(), r = ye(), { sysBarAvail: i, nameList: a } = W(), { backgroundColor1: l } = U(), p = N(e, "modelValue"), m = t, h = ot(), _ = o(() => {
|
|
1587
1590
|
let e = "100%";
|
|
1588
1591
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1589
1592
|
background: l.value,
|
|
@@ -1600,26 +1603,26 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1600
1603
|
if (!p.value) return n("x-runtime-lib.notSet");
|
|
1601
1604
|
let e = h.value.find((e) => e.id === p.value);
|
|
1602
1605
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1603
|
-
}), { open: T } =
|
|
1606
|
+
}), { open: T } = G(`propTreeSlotSelectDlg${M()}`);
|
|
1604
1607
|
return S(() => {
|
|
1605
1608
|
T.value = !1;
|
|
1606
1609
|
}), (t, n) => {
|
|
1607
|
-
let r =
|
|
1610
|
+
let r = O("v-btn"), o = O("v-sheet"), l = O("v-dialog");
|
|
1608
1611
|
return C(), s(l, {
|
|
1609
|
-
modelValue:
|
|
1612
|
+
modelValue: j(T),
|
|
1610
1613
|
"onUpdate:modelValue": n[6] ||= (e) => g(T) ? T.value = e : null,
|
|
1611
1614
|
fullscreen: "",
|
|
1612
1615
|
"no-click-animation": "",
|
|
1613
1616
|
persistent: "",
|
|
1614
1617
|
transition: "scroll-x-reverse-transition",
|
|
1615
|
-
onKeydown: n[7] ||=
|
|
1618
|
+
onKeydown: n[7] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1616
1619
|
}, {
|
|
1617
|
-
activator:
|
|
1620
|
+
activator: I(({ props: t }) => [f(r, v(t, {
|
|
1618
1621
|
block: "",
|
|
1619
1622
|
density: "comfortable",
|
|
1620
1623
|
readonly: e.readonly
|
|
1621
1624
|
}), {
|
|
1622
|
-
default:
|
|
1625
|
+
default: I(() => [d(A(w.value), 1)]),
|
|
1623
1626
|
_: 1
|
|
1624
1627
|
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1625
1628
|
key: 0,
|
|
@@ -1627,17 +1630,17 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1627
1630
|
density: "compact",
|
|
1628
1631
|
icon: "mdi-minus",
|
|
1629
1632
|
variant: "text",
|
|
1630
|
-
onClick: n[0] ||=
|
|
1633
|
+
onClick: n[0] ||= z((e) => m("delete"), ["stop"])
|
|
1631
1634
|
})) : c("", !0)]),
|
|
1632
|
-
default:
|
|
1635
|
+
default: I(() => [u("div", {
|
|
1633
1636
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1634
|
-
onClick: n[4] ||=
|
|
1635
|
-
onContextmenu: n[5] ||=
|
|
1637
|
+
onClick: n[4] ||= z((e) => T.value = !1, ["self"]),
|
|
1638
|
+
onContextmenu: n[5] ||= z((e) => T.value = !1, ["self", "prevent"])
|
|
1636
1639
|
}, [u("div", {
|
|
1637
1640
|
class: "elevation-2",
|
|
1638
1641
|
style: y(_.value)
|
|
1639
1642
|
}, [
|
|
1640
|
-
|
|
1643
|
+
j(i) ? (C(), s(o, {
|
|
1641
1644
|
key: 0,
|
|
1642
1645
|
color: "transparent",
|
|
1643
1646
|
height: 24
|
|
@@ -1647,12 +1650,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1647
1650
|
color: "transparent",
|
|
1648
1651
|
height: 48
|
|
1649
1652
|
}, {
|
|
1650
|
-
default:
|
|
1653
|
+
default: I(() => [f(r, {
|
|
1651
1654
|
density: "comfortable",
|
|
1652
1655
|
icon: "mdi-close",
|
|
1653
1656
|
variant: "text",
|
|
1654
1657
|
onClick: n[1] ||= (e) => T.value = !1
|
|
1655
|
-
}), u("span", Qt,
|
|
1658
|
+
}), u("span", Qt, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1656
1659
|
_: 1
|
|
1657
1660
|
}),
|
|
1658
1661
|
u("div", {
|
|
@@ -1661,7 +1664,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1661
1664
|
}, [f(Zt, {
|
|
1662
1665
|
modelValue: p.value,
|
|
1663
1666
|
"onUpdate:modelValue": n[2] ||= (e) => p.value = e,
|
|
1664
|
-
open:
|
|
1667
|
+
open: j(T),
|
|
1665
1668
|
"onUpdate:open": n[3] ||= (e) => g(T) ? T.value = e : null
|
|
1666
1669
|
}, null, 8, ["modelValue", "open"]), u("div", { style: y(x.value) }, null, 4)], 4)
|
|
1667
1670
|
], 4)], 32)]),
|
|
@@ -1686,17 +1689,17 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1686
1689
|
}),
|
|
1687
1690
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1688
1691
|
setup(e, { emit: t }) {
|
|
1689
|
-
let { isMobile: n } =
|
|
1692
|
+
let { isMobile: n } = W(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1690
1693
|
if (!t || e.readonly || !n()) return;
|
|
1691
|
-
let i = await
|
|
1694
|
+
let i = await _e({
|
|
1692
1695
|
title: "",
|
|
1693
1696
|
value: r.value
|
|
1694
1697
|
});
|
|
1695
1698
|
i !== void 0 && (r.value = i);
|
|
1696
1699
|
};
|
|
1697
1700
|
return (t, n) => {
|
|
1698
|
-
let o =
|
|
1699
|
-
return C(), l("div", en, [
|
|
1701
|
+
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1702
|
+
return C(), l("div", en, [L(f(o, {
|
|
1700
1703
|
modelValue: r.value,
|
|
1701
1704
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1702
1705
|
density: "compact",
|
|
@@ -1715,7 +1718,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1715
1718
|
density: "compact",
|
|
1716
1719
|
icon: "mdi-minus",
|
|
1717
1720
|
variant: "text",
|
|
1718
|
-
onClick: n[1] ||=
|
|
1721
|
+
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1719
1722
|
})) : c("", !0)]);
|
|
1720
1723
|
};
|
|
1721
1724
|
}
|
|
@@ -1736,9 +1739,9 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1736
1739
|
}),
|
|
1737
1740
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1738
1741
|
setup(e, { emit: t }) {
|
|
1739
|
-
let n =
|
|
1742
|
+
let n = N(e, "modelValue"), r = t;
|
|
1740
1743
|
return (t, i) => {
|
|
1741
|
-
let a =
|
|
1744
|
+
let a = O("v-switch"), o = O("v-btn");
|
|
1742
1745
|
return C(), l("div", nn, [f(a, {
|
|
1743
1746
|
modelValue: n.value,
|
|
1744
1747
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
@@ -1753,7 +1756,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1753
1756
|
density: "compact",
|
|
1754
1757
|
icon: "mdi-minus",
|
|
1755
1758
|
variant: "text",
|
|
1756
|
-
onClick: i[1] ||=
|
|
1759
|
+
onClick: i[1] ||= z((e) => r("delete"), ["stop"])
|
|
1757
1760
|
})) : c("", !0)]);
|
|
1758
1761
|
};
|
|
1759
1762
|
}
|
|
@@ -1765,9 +1768,9 @@ function an() {
|
|
|
1765
1768
|
return { renderUiAdaptSlotSelect: (t, n, r, i, a) => {
|
|
1766
1769
|
if (n.ui !== "selectAdaptSlot") throw Error("renderUiSlotSelect property ui must be selectAdaptSlot");
|
|
1767
1770
|
return m(wt, {
|
|
1768
|
-
modelValue:
|
|
1771
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1769
1772
|
"onUpdate:modelValue": (o) => {
|
|
1770
|
-
|
|
1773
|
+
Z(t, n, r, o, i, a, e);
|
|
1771
1774
|
},
|
|
1772
1775
|
hasDelete: i !== void 0 && !a,
|
|
1773
1776
|
onDelete: () => {
|
|
@@ -1784,9 +1787,9 @@ function on() {
|
|
|
1784
1787
|
return { renderUiColorPicker: (t, n, r, i, a) => {
|
|
1785
1788
|
if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
|
|
1786
1789
|
return m(Et, {
|
|
1787
|
-
modelValue:
|
|
1790
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1788
1791
|
"onUpdate:modelValue": (o) => {
|
|
1789
|
-
|
|
1792
|
+
Z(t, n, r, o, i, a, e);
|
|
1790
1793
|
},
|
|
1791
1794
|
hasDelete: i !== void 0 && !a,
|
|
1792
1795
|
onDelete: () => {
|
|
@@ -1803,9 +1806,9 @@ function sn() {
|
|
|
1803
1806
|
return { renderUiCompSelect: (t, n, r, i, a) => {
|
|
1804
1807
|
if (n.ui !== "selectComp") throw Error("renderUiCompSelect property ui must be selectComp");
|
|
1805
1808
|
return m(It, {
|
|
1806
|
-
modelValue:
|
|
1809
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1807
1810
|
"onUpdate:modelValue": (o) => {
|
|
1808
|
-
|
|
1811
|
+
Z(t, n, r, o, i, a, e);
|
|
1809
1812
|
},
|
|
1810
1813
|
hasDelete: i !== void 0 && !a,
|
|
1811
1814
|
onDelete: () => {
|
|
@@ -1821,7 +1824,7 @@ function cn() {
|
|
|
1821
1824
|
let e = $();
|
|
1822
1825
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1823
1826
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1824
|
-
|
|
1827
|
+
X(t, n, r, i, a, e);
|
|
1825
1828
|
} };
|
|
1826
1829
|
}
|
|
1827
1830
|
//#endregion
|
|
@@ -1831,9 +1834,9 @@ function ln() {
|
|
|
1831
1834
|
return { renderUiJsonEditor: (t, n, r, i, a) => {
|
|
1832
1835
|
if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
|
|
1833
1836
|
return m(zt, {
|
|
1834
|
-
modelValue:
|
|
1837
|
+
modelValue: X(t, n, r, i, a, e) ?? "{}",
|
|
1835
1838
|
"onUpdate:modelValue": (o) => {
|
|
1836
|
-
|
|
1839
|
+
Z(t, n, r, o, i, a, e);
|
|
1837
1840
|
},
|
|
1838
1841
|
hasDelete: i !== void 0 && !a,
|
|
1839
1842
|
onDelete: () => {
|
|
@@ -1850,9 +1853,9 @@ function un() {
|
|
|
1850
1853
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
1851
1854
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
1852
1855
|
return m(Ht, {
|
|
1853
|
-
modelValue:
|
|
1856
|
+
modelValue: X(t, n, r, i, a, e) ?? "",
|
|
1854
1857
|
"onUpdate:modelValue": (o) => {
|
|
1855
|
-
|
|
1858
|
+
Z(t, n, r, o, i, a, e);
|
|
1856
1859
|
},
|
|
1857
1860
|
hasDelete: i !== void 0 && !a,
|
|
1858
1861
|
onDelete: () => {
|
|
@@ -1869,9 +1872,9 @@ function dn() {
|
|
|
1869
1872
|
return { renderUiNumInput: (t, n, r, i, a) => {
|
|
1870
1873
|
if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
|
|
1871
1874
|
return m(Wt, {
|
|
1872
|
-
modelValue:
|
|
1875
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1873
1876
|
"onUpdate:modelValue": (o) => {
|
|
1874
|
-
|
|
1877
|
+
Z(t, n, r, o, i, a, e);
|
|
1875
1878
|
},
|
|
1876
1879
|
hasDelete: i !== void 0 && !a,
|
|
1877
1880
|
onDelete: () => {
|
|
@@ -1892,7 +1895,7 @@ var fn = /* @__PURE__ */ p({
|
|
|
1892
1895
|
props: { minHeight: {} },
|
|
1893
1896
|
emits: ["menu"],
|
|
1894
1897
|
setup(e, { emit: t }) {
|
|
1895
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1898
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
1896
1899
|
background: a.value ? r.value : n.value,
|
|
1897
1900
|
minHeight: e.minHeight,
|
|
1898
1901
|
paddingRight: "4px",
|
|
@@ -1902,27 +1905,27 @@ var fn = /* @__PURE__ */ p({
|
|
|
1902
1905
|
i("menu", e.clientX, e.clientY);
|
|
1903
1906
|
};
|
|
1904
1907
|
return (e, t) => {
|
|
1905
|
-
let n =
|
|
1906
|
-
return
|
|
1908
|
+
let n = k("ripple");
|
|
1909
|
+
return L((C(), l("div", {
|
|
1907
1910
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1908
1911
|
style: y(s.value),
|
|
1909
|
-
onContextmenu:
|
|
1912
|
+
onContextmenu: z(c, ["self", "prevent"]),
|
|
1910
1913
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
1911
1914
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
1912
|
-
}, [
|
|
1915
|
+
}, [D(e.$slots, "default")], 36)), [[n]]);
|
|
1913
1916
|
};
|
|
1914
1917
|
}
|
|
1915
1918
|
});
|
|
1916
1919
|
//#endregion
|
|
1917
1920
|
//#region src/composables/uis/uiProperty.ts
|
|
1918
1921
|
function pn() {
|
|
1919
|
-
let { t: e } =
|
|
1922
|
+
let { t: e } = V(), t = tt();
|
|
1920
1923
|
return { renderProperty: (n, r, i) => {
|
|
1921
1924
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
1922
1925
|
return Q(t.value, n) && (o += " *"), m(fn, {
|
|
1923
1926
|
minHeight: "56px",
|
|
1924
1927
|
onMenu: (e, t) => {
|
|
1925
|
-
|
|
1928
|
+
H.emit("propTreeMenu", {
|
|
1926
1929
|
x: e,
|
|
1927
1930
|
y: t,
|
|
1928
1931
|
keys: n
|
|
@@ -1944,9 +1947,9 @@ function mn() {
|
|
|
1944
1947
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
1945
1948
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
1946
1949
|
return m(Kt, {
|
|
1947
|
-
modelValue:
|
|
1950
|
+
modelValue: X(t, n, r, i, a, e) ?? "",
|
|
1948
1951
|
"onUpdate:modelValue": (o) => {
|
|
1949
|
-
|
|
1952
|
+
Z(t, n, r, o, i, a, e);
|
|
1950
1953
|
},
|
|
1951
1954
|
hasDelete: i !== void 0 && !a,
|
|
1952
1955
|
onDelete: () => {
|
|
@@ -1964,9 +1967,9 @@ function hn() {
|
|
|
1964
1967
|
return { renderUiSlotSelect: (t, n, r, i, a) => {
|
|
1965
1968
|
if (n.ui !== "selectSlot") throw Error("renderUiSlotSelect property ui must be selectSlot");
|
|
1966
1969
|
return m($t, {
|
|
1967
|
-
modelValue:
|
|
1970
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1968
1971
|
"onUpdate:modelValue": (o) => {
|
|
1969
|
-
|
|
1972
|
+
Z(t, n, r, o, i, a, e);
|
|
1970
1973
|
},
|
|
1971
1974
|
hasDelete: i !== void 0 && !a,
|
|
1972
1975
|
onDelete: () => {
|
|
@@ -1983,9 +1986,9 @@ function gn() {
|
|
|
1983
1986
|
return { renderUiStrInput: (t, n, r, i, a) => {
|
|
1984
1987
|
if (n.ui !== "strInput") throw Error("renderUiStrInput property ui must be strInput");
|
|
1985
1988
|
return m(tn, {
|
|
1986
|
-
modelValue: n.static ? n.value :
|
|
1989
|
+
modelValue: n.static ? n.value : X(t, n, r, i, a, e),
|
|
1987
1990
|
"onUpdate:modelValue": (o) => {
|
|
1988
|
-
n.static ||
|
|
1991
|
+
n.static || Z(t, n, r, o, i, a, e);
|
|
1989
1992
|
},
|
|
1990
1993
|
hasDelete: i !== void 0 && !a,
|
|
1991
1994
|
onDelete: () => {
|
|
@@ -2002,9 +2005,9 @@ function _n() {
|
|
|
2002
2005
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2003
2006
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2004
2007
|
return m(rn, {
|
|
2005
|
-
modelValue:
|
|
2008
|
+
modelValue: X(t, n, r, i, a, e) ?? !1,
|
|
2006
2009
|
"onUpdate:modelValue": (o) => {
|
|
2007
|
-
|
|
2010
|
+
Z(t, n, r, o, i, a, e);
|
|
2008
2011
|
},
|
|
2009
2012
|
hasDelete: i !== void 0 && !a,
|
|
2010
2013
|
onDelete: () => {
|
|
@@ -2018,144 +2021,146 @@ function _n() {
|
|
|
2018
2021
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2019
2022
|
var vn = "20px", yn = /* @__PURE__ */ p({
|
|
2020
2023
|
__name: "main",
|
|
2021
|
-
setup(
|
|
2022
|
-
let { t:
|
|
2024
|
+
setup(n) {
|
|
2025
|
+
let { t: r } = V(), { backgroundColor1: i } = U(), o = Ye(), s = Ze(), c = $e(), u = tt(), d = $();
|
|
2023
2026
|
pt(), mt(), ft();
|
|
2024
|
-
let { renderProperty:
|
|
2027
|
+
let { renderProperty: p } = pn(), { renderUiDummy: h } = cn(), { renderUiStrInput: g } = gn(), { renderUiNumInput: _ } = dn(), { renderUiSwitch: v } = _n(), { renderUiSelect: y } = mn(), { renderUiColorPicker: b } = on(), { renderUiJsonEditor: x } = ln(), { renderUiMultiTypes: S } = un(), { renderUiCompSelect: w } = sn(), { renderUiSlotSelect: T } = hn(), { renderUiAdaptSlotSelect: E } = an(), D = (n, r, i, a, o, s) => {
|
|
2028
|
+
if (!t(n, ["runtime"])) return n = e(n), a === void 0 ? n.push(r.key) : (n.push(a), o && n.push(r.key)), r.ui ? r.array && !s ? A(n, r, i, a, o) : j(n, r, i, a, o) : r.array ? O(n, r, i, a, o) : k(n, r, i, a, o);
|
|
2029
|
+
}, O = (e, t, n, i, a) => {
|
|
2025
2030
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2026
2031
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2027
|
-
let o =
|
|
2028
|
-
|
|
2029
|
-
let
|
|
2030
|
-
title:
|
|
2031
|
-
collapse:
|
|
2032
|
+
let o = xe(e, t, n, i, a, d), s = r(t.name);
|
|
2033
|
+
K(c, e) && Q(u.value, e) && (s += " *");
|
|
2034
|
+
let l = m(dt, {
|
|
2035
|
+
title: s,
|
|
2036
|
+
collapse: K(c, e),
|
|
2032
2037
|
hasCreate: !0,
|
|
2033
2038
|
onCollapse: (t) => {
|
|
2034
|
-
|
|
2039
|
+
q(c, e, t);
|
|
2035
2040
|
},
|
|
2036
2041
|
onMenu: (t, n) => {
|
|
2037
|
-
|
|
2042
|
+
H.emit("propTreeMenu", {
|
|
2038
2043
|
x: t,
|
|
2039
2044
|
y: n,
|
|
2040
2045
|
keys: e
|
|
2041
2046
|
});
|
|
2042
2047
|
},
|
|
2043
2048
|
onCreate: () => {
|
|
2044
|
-
o.push({}),
|
|
2049
|
+
o.push({}), d(e, o);
|
|
2045
2050
|
}
|
|
2046
2051
|
}), f = m("div", { style: { paddingLeft: vn } }, (() => {
|
|
2047
2052
|
let n = [];
|
|
2048
2053
|
for (let r = 0; r < o.length; r++) {
|
|
2049
2054
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2050
|
-
|
|
2051
|
-
let
|
|
2055
|
+
K(c, [...e, r]) && Q(u.value, i) && (a += " *");
|
|
2056
|
+
let s = m(dt, {
|
|
2052
2057
|
title: a,
|
|
2053
|
-
collapse:
|
|
2058
|
+
collapse: K(c, [...e, r]),
|
|
2054
2059
|
hasDelete: !0,
|
|
2055
2060
|
index: r,
|
|
2056
2061
|
onCollapse: (t) => {
|
|
2057
|
-
|
|
2062
|
+
q(c, [...e, r], t);
|
|
2058
2063
|
},
|
|
2059
2064
|
onMenu: (e, t) => {
|
|
2060
|
-
|
|
2065
|
+
H.emit("propTreeMenu", {
|
|
2061
2066
|
x: e,
|
|
2062
2067
|
y: t,
|
|
2063
2068
|
keys: i
|
|
2064
2069
|
});
|
|
2065
2070
|
},
|
|
2066
2071
|
onDelete: (t) => {
|
|
2067
|
-
o.splice(t, 1),
|
|
2072
|
+
o.splice(t, 1), d(e, o);
|
|
2068
2073
|
}
|
|
2069
2074
|
});
|
|
2070
|
-
n.push(
|
|
2071
|
-
let
|
|
2075
|
+
n.push(s);
|
|
2076
|
+
let l = m("div", { style: { paddingLeft: vn } }, (() => {
|
|
2072
2077
|
let n = [];
|
|
2073
|
-
for (let i of t.children) n.push(
|
|
2078
|
+
for (let i of t.children) n.push(D(e, i, o[r], r, !0));
|
|
2074
2079
|
return n;
|
|
2075
2080
|
})());
|
|
2076
|
-
|
|
2081
|
+
K(c, [...e, r]) || n.push(l);
|
|
2077
2082
|
}
|
|
2078
2083
|
return n;
|
|
2079
2084
|
})());
|
|
2080
2085
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2081
2086
|
let t = [];
|
|
2082
|
-
return t.push(
|
|
2087
|
+
return t.push(l), K(c, e) || t.push(f), t;
|
|
2083
2088
|
})());
|
|
2084
|
-
},
|
|
2089
|
+
}, k = (e, t, n, i, a) => {
|
|
2085
2090
|
if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2086
2091
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2087
|
-
let o =
|
|
2088
|
-
|
|
2089
|
-
let
|
|
2092
|
+
let o = r(t.name);
|
|
2093
|
+
K(c, e) && Q(u.value, e) && (o += " *");
|
|
2094
|
+
let s = m(dt, {
|
|
2090
2095
|
title: o,
|
|
2091
|
-
collapse:
|
|
2096
|
+
collapse: K(c, e),
|
|
2092
2097
|
hasDelete: i !== void 0 && !a,
|
|
2093
2098
|
onCollapse: (t) => {
|
|
2094
|
-
|
|
2099
|
+
q(c, e, t);
|
|
2095
2100
|
},
|
|
2096
2101
|
onMenu: (t, n) => {
|
|
2097
|
-
|
|
2102
|
+
H.emit("propTreeMenu", {
|
|
2098
2103
|
x: t,
|
|
2099
2104
|
y: n,
|
|
2100
2105
|
keys: e
|
|
2101
2106
|
});
|
|
2102
2107
|
},
|
|
2103
2108
|
onDelete: () => {
|
|
2104
|
-
i === void 0 || a || (
|
|
2109
|
+
i === void 0 || a || (n.splice(i, 1), d(e.slice(0, -1), n));
|
|
2105
2110
|
}
|
|
2106
|
-
}),
|
|
2107
|
-
let
|
|
2108
|
-
for (let i of t.children)
|
|
2109
|
-
return
|
|
2111
|
+
}), l = m("div", { style: { paddingLeft: vn } }, (() => {
|
|
2112
|
+
let r = [];
|
|
2113
|
+
for (let i of t.children) r.push(D(e, i, (typeof n[t.key] != "object" && (n[t.key] = {}, d(e, n[t.key])), n[t.key]), void 0, !1));
|
|
2114
|
+
return r;
|
|
2110
2115
|
})());
|
|
2111
2116
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2112
2117
|
let t = [];
|
|
2113
|
-
return t.push(
|
|
2118
|
+
return t.push(s), K(c, e) || t.push(l), t;
|
|
2114
2119
|
})());
|
|
2115
|
-
},
|
|
2120
|
+
}, A = (e, t, n, i, a) => {
|
|
2116
2121
|
if (!t.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2117
2122
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2118
|
-
let o =
|
|
2119
|
-
|
|
2120
|
-
let
|
|
2121
|
-
title:
|
|
2122
|
-
collapse:
|
|
2123
|
+
let o = xe(e, t, n, i, a, d), s = r(t.name);
|
|
2124
|
+
K(c, e) && Q(u.value, e) && (s += " *");
|
|
2125
|
+
let l = m(dt, {
|
|
2126
|
+
title: s,
|
|
2127
|
+
collapse: K(c, e),
|
|
2123
2128
|
hasCreate: !0,
|
|
2124
2129
|
onCollapse: (t) => {
|
|
2125
|
-
|
|
2130
|
+
q(c, e, t);
|
|
2126
2131
|
},
|
|
2127
2132
|
onMenu: (t, n) => {
|
|
2128
|
-
|
|
2133
|
+
H.emit("propTreeMenu", {
|
|
2129
2134
|
x: t,
|
|
2130
2135
|
y: n,
|
|
2131
2136
|
keys: e
|
|
2132
2137
|
});
|
|
2133
2138
|
},
|
|
2134
2139
|
onCreate: () => {
|
|
2135
|
-
o.push(
|
|
2140
|
+
o.push(B(t)), d(e, o);
|
|
2136
2141
|
}
|
|
2137
2142
|
}), f = m("div", { style: { paddingLeft: vn } }, (() => {
|
|
2138
2143
|
let n = [];
|
|
2139
|
-
for (let r = 0; r < o.length; r++) n.push(
|
|
2144
|
+
for (let r = 0; r < o.length; r++) n.push(D(e, t, o, r, !1, !0));
|
|
2140
2145
|
return n;
|
|
2141
2146
|
})());
|
|
2142
2147
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2143
2148
|
let t = [];
|
|
2144
|
-
return t.push(
|
|
2149
|
+
return t.push(l), K(c, e) || t.push(f), t;
|
|
2145
2150
|
})());
|
|
2146
|
-
},
|
|
2151
|
+
}, j = (e, t, n, r, i) => {
|
|
2147
2152
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
2148
2153
|
let a;
|
|
2149
|
-
return t.ui === "dummy" ? a =
|
|
2150
|
-
},
|
|
2154
|
+
return t.ui === "dummy" ? a = h(e, t, n, r, i) : t.ui === "strInput" ? a = g(e, t, n, r, i) : t.ui === "numInput" ? a = _(e, t, n, r, i) : t.ui === "switch" ? a = v(e, t, n, r, i) : t.ui === "select" ? a = y(e, t, n, r, i) : t.ui === "colorPicker" ? a = b(e, t, n, r, i) : t.ui === "jsonEditor" ? a = x(e, t, n, r, i) : t.ui === "multiTypes" ? a = S(e, t, n, r, i) : t.ui === "selectComp" ? a = w(e, t, n, r, i) : t.ui === "selectSlot" ? a = T(e, t, n, r, i) : t.ui === "selectAdaptSlot" ? a = E(e, t, n, r, i) : console.assert(!1, "renderLeafScalar not implemented"), a ? p(e, t, a) : m("div");
|
|
2155
|
+
}, M = () => m("div", {
|
|
2151
2156
|
class: "text-body-medium",
|
|
2152
|
-
style: { background:
|
|
2157
|
+
style: { background: i.value }
|
|
2153
2158
|
}, (() => {
|
|
2154
2159
|
let e = [];
|
|
2155
|
-
if (
|
|
2160
|
+
if (o.value.length > 0 && s.value) for (let t of o.value) e.push(D([], t, s.value, void 0, !1));
|
|
2156
2161
|
return e;
|
|
2157
2162
|
})());
|
|
2158
|
-
return (e, t) => (C(), l(a, null, [f(
|
|
2163
|
+
return (e, t) => (C(), l(a, null, [f(M), f(lt)], 64));
|
|
2159
2164
|
}
|
|
2160
2165
|
}), bn = /* @__PURE__ */ p({
|
|
2161
2166
|
__name: "index",
|
|
@@ -2169,23 +2174,23 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2169
2174
|
emits: ["change"],
|
|
2170
2175
|
setup(e, { emit: t }) {
|
|
2171
2176
|
let n = t, r = T([]);
|
|
2172
|
-
Je(r),
|
|
2177
|
+
Je(r), F(() => {
|
|
2173
2178
|
r.value = e.config;
|
|
2174
2179
|
});
|
|
2175
2180
|
let i = T();
|
|
2176
|
-
Xe(i),
|
|
2181
|
+
Xe(i), F(() => {
|
|
2177
2182
|
i.value = e.object;
|
|
2178
2183
|
});
|
|
2179
2184
|
let a = T("");
|
|
2180
|
-
He(a),
|
|
2185
|
+
He(a), F(() => {
|
|
2181
2186
|
a.value = e.version;
|
|
2182
2187
|
});
|
|
2183
2188
|
let o = T(e.type);
|
|
2184
|
-
We(o),
|
|
2189
|
+
We(o), F(() => {
|
|
2185
2190
|
o.value = e.type;
|
|
2186
2191
|
});
|
|
2187
2192
|
let c = T("");
|
|
2188
|
-
Ke(c),
|
|
2193
|
+
Ke(c), F(() => {
|
|
2189
2194
|
c.value = e.subtype;
|
|
2190
2195
|
}), Qe(T({
|
|
2191
2196
|
collapse: !0,
|
|
@@ -2198,7 +2203,7 @@ var vn = "20px", yn = /* @__PURE__ */ p({
|
|
|
2198
2203
|
});
|
|
2199
2204
|
return et(l), nt((t, r) => {
|
|
2200
2205
|
Ae(l, e.config, e.object), n("change", t, r);
|
|
2201
|
-
}),
|
|
2206
|
+
}), P([() => e.config, () => e.object], () => {
|
|
2202
2207
|
Ae(l, e.config, e.object);
|
|
2203
2208
|
}, { immediate: !0 }), (e, t) => (C(), s(yn));
|
|
2204
2209
|
}
|