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