x-prop-tree 0.8.5 → 0.8.7
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.d.ts +10 -5
- package/dist/index.js +815 -815
- package/package.json +10 -6
- package/dist/components/entry/index.vue.d.ts +0 -20
- package/dist/components/index.d.ts +0 -4
- package/dist/components/menu/index.vue.d.ts +0 -3
- package/dist/components/propTree/index.vue.d.ts +0 -15
- package/dist/components/propTree/main.vue.d.ts +0 -3
- package/dist/components/title/index.vue.d.ts +0 -20
- package/dist/components/values/adaptSlotSelect/adaptSlotList/group.vue.d.ts +0 -13
- package/dist/components/values/adaptSlotSelect/adaptSlotList/index.vue.d.ts +0 -13
- package/dist/components/values/adaptSlotSelect/adaptSlotList/item.vue.d.ts +0 -11
- package/dist/components/values/adaptSlotSelect/index.vue.d.ts +0 -17
- package/dist/components/values/colorPicker/index.vue.d.ts +0 -17
- package/dist/components/values/compSelect/compList/group.vue.d.ts +0 -13
- package/dist/components/values/compSelect/compList/index.vue.d.ts +0 -13
- package/dist/components/values/compSelect/compList/item.vue.d.ts +0 -11
- package/dist/components/values/compSelect/index.vue.d.ts +0 -17
- package/dist/components/values/iconSelect/index.vue.d.ts +0 -11
- package/dist/components/values/iconSelect/item.vue.d.ts +0 -3
- package/dist/components/values/iconSelect/materialDesignIcons.d.ts +0 -11
- package/dist/components/values/index.d.ts +0 -12
- package/dist/components/values/jsonEditor/editor.vue.d.ts +0 -18
- package/dist/components/values/jsonEditor/index.vue.d.ts +0 -17
- package/dist/components/values/multiTypes/index.vue.d.ts +0 -18
- package/dist/components/values/numInput/index.vue.d.ts +0 -21
- package/dist/components/values/select/index.vue.d.ts +0 -18
- package/dist/components/values/slotSelect/index.vue.d.ts +0 -17
- package/dist/components/values/slotSelect/slotList/index.vue.d.ts +0 -13
- package/dist/components/values/slotSelect/slotList/item.vue.d.ts +0 -11
- package/dist/components/values/strInput/index.vue.d.ts +0 -17
- package/dist/components/values/switch/index.vue.d.ts +0 -17
- package/dist/composables/adaptSlotList/index.d.ts +0 -1
- package/dist/composables/compList/index.d.ts +0 -1
- package/dist/composables/slotList/index.d.ts +0 -1
- package/dist/composables/uis/index.d.ts +0 -12
- package/dist/composables/uis/uiAdaptSlotSelect.d.ts +0 -7
- package/dist/composables/uis/uiColorPicker.d.ts +0 -7
- package/dist/composables/uis/uiCompSelect.d.ts +0 -7
- package/dist/composables/uis/uiDummy.d.ts +0 -5
- package/dist/composables/uis/uiJsonEditor.d.ts +0 -7
- package/dist/composables/uis/uiMultiTypes.d.ts +0 -7
- package/dist/composables/uis/uiNumInput.d.ts +0 -7
- package/dist/composables/uis/uiProperty.d.ts +0 -7
- package/dist/composables/uis/uiSelect.d.ts +0 -7
- package/dist/composables/uis/uiSlotSelect.d.ts +0 -7
- package/dist/composables/uis/uiStrInput.d.ts +0 -7
- package/dist/composables/uis/uiSwitch.d.ts +0 -7
- package/dist/i18n/index.d.ts +0 -1
- package/dist/utils/collapseState.d.ts +0 -10
- package/dist/utils/common.d.ts +0 -8
- package/dist/utils/copyPaste.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/propertyState.d.ts +0 -15
- package/dist/utils/provideInject.d.ts +0 -32
package/dist/index.js
CHANGED
|
@@ -1,31 +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 ye } from "vuetify";
|
|
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";
|
|
8
7
|
import { XBlockly as be } from "x-block-lib";
|
|
9
|
-
|
|
10
|
-
function K(e, t) {
|
|
11
|
-
let n = e.value;
|
|
12
|
-
for (let e of t) {
|
|
13
|
-
if (!n.children[e]) return !0;
|
|
14
|
-
n = n.children[e];
|
|
15
|
-
}
|
|
16
|
-
return n.collapse;
|
|
17
|
-
}
|
|
18
|
-
function q(e, t, n) {
|
|
19
|
-
let r = e.value;
|
|
20
|
-
for (let e of t) r.children[e] || (r.children[e] = {
|
|
21
|
-
collapse: !0,
|
|
22
|
-
children: {}
|
|
23
|
-
}), r = r.children[e];
|
|
24
|
-
r.collapse = n;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
8
|
+
import { useDisplay as xe } from "vuetify";
|
|
27
9
|
//#region src/utils/common.ts
|
|
28
|
-
function
|
|
10
|
+
function G(e, t) {
|
|
29
11
|
let n = {
|
|
30
12
|
key: "",
|
|
31
13
|
name: "",
|
|
@@ -38,7 +20,7 @@ function J(e, t) {
|
|
|
38
20
|
}
|
|
39
21
|
return n;
|
|
40
22
|
}
|
|
41
|
-
function
|
|
23
|
+
function K(e, t) {
|
|
42
24
|
let n = e;
|
|
43
25
|
for (let e of t) {
|
|
44
26
|
if (!n) throw Error("target must be valid");
|
|
@@ -46,42 +28,60 @@ function Y(e, t) {
|
|
|
46
28
|
}
|
|
47
29
|
return n;
|
|
48
30
|
}
|
|
49
|
-
function
|
|
31
|
+
function Se(e, n, r, i, a, o) {
|
|
50
32
|
if (i !== void 0 && !a) {
|
|
51
33
|
if (!(r[i] instanceof Array)) {
|
|
52
|
-
let a =
|
|
34
|
+
let a = ie(n);
|
|
53
35
|
t(a, r[i]) || (r[i] = a, o(e, r[i]));
|
|
54
36
|
}
|
|
55
37
|
return r[i];
|
|
56
38
|
} else {
|
|
57
39
|
if (!(r[n.key] instanceof Array)) {
|
|
58
|
-
let i =
|
|
40
|
+
let i = ie(n);
|
|
59
41
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
60
42
|
}
|
|
61
43
|
return r[n.key];
|
|
62
44
|
}
|
|
63
45
|
}
|
|
64
|
-
function
|
|
46
|
+
function q(e, n, r, i, a, o) {
|
|
65
47
|
if (i !== void 0 && !a) {
|
|
66
48
|
if (r[i] === void 0) {
|
|
67
|
-
let a =
|
|
49
|
+
let a = z(n);
|
|
68
50
|
t(a, r[i]) || (r[i] = a, o(e, r[i]));
|
|
69
51
|
}
|
|
70
52
|
return r[i];
|
|
71
53
|
} else {
|
|
72
54
|
if (r[n.key] === void 0) {
|
|
73
|
-
let i =
|
|
55
|
+
let i = z(n);
|
|
74
56
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
75
57
|
}
|
|
76
58
|
return r[n.key];
|
|
77
59
|
}
|
|
78
60
|
}
|
|
79
|
-
function
|
|
61
|
+
function J(e, t, n, r, i, a, o) {
|
|
80
62
|
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
63
|
}
|
|
82
64
|
//#endregion
|
|
65
|
+
//#region src/utils/collapseState.ts
|
|
66
|
+
function Y(e, t) {
|
|
67
|
+
let n = e.value;
|
|
68
|
+
for (let e of t) {
|
|
69
|
+
if (!n.children[e]) return !0;
|
|
70
|
+
n = n.children[e];
|
|
71
|
+
}
|
|
72
|
+
return n.collapse;
|
|
73
|
+
}
|
|
74
|
+
function X(e, t, n) {
|
|
75
|
+
let r = e.value;
|
|
76
|
+
for (let e of t) r.children[e] || (r.children[e] = {
|
|
77
|
+
collapse: !0,
|
|
78
|
+
children: {}
|
|
79
|
+
}), r = r.children[e];
|
|
80
|
+
r.collapse = n;
|
|
81
|
+
}
|
|
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 = G(n.value, m.value);
|
|
300
300
|
if (e) if (e.ui) {
|
|
301
|
-
let t =
|
|
301
|
+
let t = K(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 = K(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 = K(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 = K(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 = G(n.value, m.value), t = K(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 = G(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 = G(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({
|
|
@@ -616,219 +616,8 @@ function mt() {
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
|
-
//#region src/components/values/
|
|
620
|
-
var ht = { class: "
|
|
621
|
-
__name: "group",
|
|
622
|
-
props: {
|
|
623
|
-
id: {},
|
|
624
|
-
title: {},
|
|
625
|
-
collapse: { type: Boolean },
|
|
626
|
-
count: {}
|
|
627
|
-
},
|
|
628
|
-
emits: ["x-click"],
|
|
629
|
-
setup(e, { emit: t }) {
|
|
630
|
-
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
631
|
-
background: s.value ? r.value : n.value,
|
|
632
|
-
height: "30px",
|
|
633
|
-
marginTop: "1px",
|
|
634
|
-
userSelect: "none"
|
|
635
|
-
}));
|
|
636
|
-
return (e, t) => {
|
|
637
|
-
let n = O("v-icon"), r = k("ripple");
|
|
638
|
-
return L((C(), l("div", {
|
|
639
|
-
class: "d-flex align-center cursor-pointer",
|
|
640
|
-
style: y(c.value),
|
|
641
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
642
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
643
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
644
|
-
}, [
|
|
645
|
-
f(n, {
|
|
646
|
-
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
647
|
-
size: "small"
|
|
648
|
-
}, null, 8, ["icon"]),
|
|
649
|
-
u("span", ht, A(i.title), 1),
|
|
650
|
-
u("span", gt, A(i.count), 1)
|
|
651
|
-
], 36)), [[r]]);
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
}), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
|
|
655
|
-
__name: "item",
|
|
656
|
-
props: {
|
|
657
|
-
id: {},
|
|
658
|
-
title: {}
|
|
659
|
-
},
|
|
660
|
-
emits: ["x-click"],
|
|
661
|
-
setup(e, { emit: t }) {
|
|
662
|
-
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
663
|
-
background: a.value ? r.value : n.value,
|
|
664
|
-
height: "48px",
|
|
665
|
-
marginTop: "1px",
|
|
666
|
-
userSelect: "none"
|
|
667
|
-
}));
|
|
668
|
-
return (t, n) => {
|
|
669
|
-
let r = k("ripple");
|
|
670
|
-
return L((C(), l("div", {
|
|
671
|
-
class: "d-flex align-center cursor-pointer",
|
|
672
|
-
style: y(s.value),
|
|
673
|
-
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
674
|
-
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
675
|
-
onMouseover: n[2] ||= (e) => a.value = !0
|
|
676
|
-
}, [u("span", vt, A(e.title), 1)], 36)), [[r]]);
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
}), bt = { key: 0 }, xt = {
|
|
680
|
-
key: 1,
|
|
681
|
-
class: "text-body-medium text-grey ml-3"
|
|
682
|
-
}, St = /* @__PURE__ */ p({
|
|
683
|
-
__name: "index",
|
|
684
|
-
props: {
|
|
685
|
-
modelValue: {},
|
|
686
|
-
modelModifiers: {},
|
|
687
|
-
open: {
|
|
688
|
-
type: Boolean,
|
|
689
|
-
required: !0
|
|
690
|
-
},
|
|
691
|
-
openModifiers: {}
|
|
692
|
-
},
|
|
693
|
-
emits: ["update:modelValue", "update:open"],
|
|
694
|
-
setup(e) {
|
|
695
|
-
let { nameList: t } = W(), i = N(e, "modelValue"), o = N(e, "open"), u = ct(), d = (e) => {
|
|
696
|
-
let t = r(u, e);
|
|
697
|
-
t && n(u, e, !t.collapse);
|
|
698
|
-
}, f = (e) => {
|
|
699
|
-
i.value = e, o.value = !1;
|
|
700
|
-
};
|
|
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, {
|
|
702
|
-
key: 0,
|
|
703
|
-
id: e.id,
|
|
704
|
-
collapse: e.collapse,
|
|
705
|
-
count: e.count ?? 0,
|
|
706
|
-
title: e.name,
|
|
707
|
-
onXClick: d
|
|
708
|
-
}, null, 8, [
|
|
709
|
-
"id",
|
|
710
|
-
"collapse",
|
|
711
|
-
"count",
|
|
712
|
-
"title"
|
|
713
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(yt, {
|
|
714
|
-
key: 1,
|
|
715
|
-
id: e.id,
|
|
716
|
-
title: e.name,
|
|
717
|
-
onXClick: f
|
|
718
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt, A(j(t)([
|
|
719
|
-
"x-prop-tree.no",
|
|
720
|
-
"x-prop-tree.adapt",
|
|
721
|
-
"x-prop-tree.slot"
|
|
722
|
-
])), 1));
|
|
723
|
-
}
|
|
724
|
-
}), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
|
|
725
|
-
__name: "index",
|
|
726
|
-
props: /* @__PURE__ */ _({
|
|
727
|
-
hasDelete: {
|
|
728
|
-
type: Boolean,
|
|
729
|
-
default: !1
|
|
730
|
-
},
|
|
731
|
-
readonly: {
|
|
732
|
-
type: Boolean,
|
|
733
|
-
default: !1
|
|
734
|
-
}
|
|
735
|
-
}, {
|
|
736
|
-
modelValue: {},
|
|
737
|
-
modelModifiers: {}
|
|
738
|
-
}),
|
|
739
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
740
|
-
setup(e, { emit: t }) {
|
|
741
|
-
let { t: n } = V(), i = ye(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = N(e, "modelValue"), h = t, _ = ct(), b = o(() => {
|
|
742
|
-
let e = "100%";
|
|
743
|
-
return i.mdAndUp.value && (e = "400px"), {
|
|
744
|
-
background: p.value,
|
|
745
|
-
width: e,
|
|
746
|
-
height: "100%"
|
|
747
|
-
};
|
|
748
|
-
}), x = o(() => {
|
|
749
|
-
let e = 48;
|
|
750
|
-
return a.value && (e += 24), {
|
|
751
|
-
position: "relative",
|
|
752
|
-
height: `calc(100% - ${e}px)`
|
|
753
|
-
};
|
|
754
|
-
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
755
|
-
if (!m.value) return n("x-runtime-lib.notSet");
|
|
756
|
-
let e = r(_, m.value);
|
|
757
|
-
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
758
|
-
}), { open: E } = G(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
759
|
-
return S(() => {
|
|
760
|
-
E.value = !1;
|
|
761
|
-
}), (t, n) => {
|
|
762
|
-
let r = O("v-btn"), i = O("v-sheet"), o = O("v-dialog");
|
|
763
|
-
return C(), s(o, {
|
|
764
|
-
modelValue: j(E),
|
|
765
|
-
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
766
|
-
fullscreen: "",
|
|
767
|
-
"no-click-animation": "",
|
|
768
|
-
persistent: "",
|
|
769
|
-
transition: "scroll-x-reverse-transition",
|
|
770
|
-
onKeydown: n[7] ||= R(z((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
771
|
-
}, {
|
|
772
|
-
activator: I(({ props: t }) => [f(r, v(t, {
|
|
773
|
-
block: "",
|
|
774
|
-
density: "comfortable",
|
|
775
|
-
readonly: e.readonly
|
|
776
|
-
}), {
|
|
777
|
-
default: I(() => [d(A(T.value), 1)]),
|
|
778
|
-
_: 1
|
|
779
|
-
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
780
|
-
key: 0,
|
|
781
|
-
class: "mx-2",
|
|
782
|
-
density: "compact",
|
|
783
|
-
icon: "mdi-minus",
|
|
784
|
-
variant: "text",
|
|
785
|
-
onClick: n[0] ||= z((e) => h("delete"), ["stop"])
|
|
786
|
-
})) : c("", !0)]),
|
|
787
|
-
default: I(() => [u("div", {
|
|
788
|
-
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
789
|
-
onClick: n[4] ||= z((e) => E.value = !1, ["self"]),
|
|
790
|
-
onContextmenu: n[5] ||= z((e) => E.value = !1, ["self", "prevent"])
|
|
791
|
-
}, [u("div", {
|
|
792
|
-
class: "elevation-2",
|
|
793
|
-
style: y(b.value)
|
|
794
|
-
}, [
|
|
795
|
-
j(a) ? (C(), s(i, {
|
|
796
|
-
key: 0,
|
|
797
|
-
color: "transparent",
|
|
798
|
-
height: 24
|
|
799
|
-
})) : c("", !0),
|
|
800
|
-
f(i, {
|
|
801
|
-
class: "d-flex align-center px-3",
|
|
802
|
-
color: "transparent",
|
|
803
|
-
height: 48
|
|
804
|
-
}, {
|
|
805
|
-
default: I(() => [f(r, {
|
|
806
|
-
density: "comfortable",
|
|
807
|
-
icon: "mdi-close",
|
|
808
|
-
variant: "text",
|
|
809
|
-
onClick: n[1] ||= (e) => E.value = !1
|
|
810
|
-
}), u("span", Ct, A(j(l)([
|
|
811
|
-
"x-prop-tree.select",
|
|
812
|
-
"x-prop-tree.adapt",
|
|
813
|
-
"x-prop-tree.slot"
|
|
814
|
-
])), 1)]),
|
|
815
|
-
_: 1
|
|
816
|
-
}),
|
|
817
|
-
u("div", {
|
|
818
|
-
class: "overflow-y-auto",
|
|
819
|
-
style: y(x.value)
|
|
820
|
-
}, [f(St, {
|
|
821
|
-
modelValue: m.value,
|
|
822
|
-
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
823
|
-
open: j(E),
|
|
824
|
-
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
825
|
-
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
826
|
-
], 4)], 32)]),
|
|
827
|
-
_: 1
|
|
828
|
-
}, 8, ["modelValue"]);
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
}), Tt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ p({
|
|
619
|
+
//#region src/components/values/colorPicker/index.vue?vue&type=script&setup=true&lang.ts
|
|
620
|
+
var ht = { class: "d-flex justify-space-between align-center" }, gt = /* @__PURE__ */ p({
|
|
832
621
|
__name: "index",
|
|
833
622
|
props: /* @__PURE__ */ _({
|
|
834
623
|
hasDelete: {
|
|
@@ -845,21 +634,21 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
845
634
|
}),
|
|
846
635
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
847
636
|
setup(e, { emit: t }) {
|
|
848
|
-
let { t: n } =
|
|
637
|
+
let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
|
|
849
638
|
let t = "100%";
|
|
850
639
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
851
|
-
}), l = o(() => e.readonly), { open: p } =
|
|
640
|
+
}), l = o(() => e.readonly), { open: p } = W(`propTreeColorPickerMenu${j()}`);
|
|
852
641
|
return S(() => {
|
|
853
642
|
p.value = !1;
|
|
854
643
|
}), (t, o) => {
|
|
855
|
-
let m =
|
|
644
|
+
let m = D("v-btn"), h = D("v-color-picker"), _ = D("v-menu");
|
|
856
645
|
return C(), s(_, {
|
|
857
|
-
modelValue:
|
|
646
|
+
modelValue: A(p),
|
|
858
647
|
"onUpdate:modelValue": o[2] ||= (e) => g(p) ? p.value = e : null,
|
|
859
648
|
"close-on-content-click": !1,
|
|
860
649
|
scrim: "transparent"
|
|
861
650
|
}, {
|
|
862
|
-
activator:
|
|
651
|
+
activator: F(({ props: t }) => [u("div", ht, [u("div", {
|
|
863
652
|
class: "flex-grow-1",
|
|
864
653
|
style: y(a.value)
|
|
865
654
|
}, [f(m, v(t, {
|
|
@@ -868,7 +657,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
868
657
|
density: "comfortable",
|
|
869
658
|
disabled: l.value
|
|
870
659
|
}), {
|
|
871
|
-
default:
|
|
660
|
+
default: F(() => [d(k(r.value ? r.value : A(n)("x-runtime-lib.notSet")), 1)]),
|
|
872
661
|
_: 1
|
|
873
662
|
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (C(), s(m, {
|
|
874
663
|
key: 0,
|
|
@@ -876,9 +665,9 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
876
665
|
density: "compact",
|
|
877
666
|
icon: "mdi-minus",
|
|
878
667
|
variant: "text",
|
|
879
|
-
onClick: o[0] ||=
|
|
668
|
+
onClick: o[0] ||= R((e) => i("delete"), ["stop"])
|
|
880
669
|
})) : c("", !0)])]),
|
|
881
|
-
default:
|
|
670
|
+
default: F(() => [f(h, {
|
|
882
671
|
modelValue: r.value,
|
|
883
672
|
"onUpdate:modelValue": o[1] ||= (e) => r.value = e,
|
|
884
673
|
mode: "hexa",
|
|
@@ -889,221 +678,18 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
889
678
|
}, 8, ["modelValue"]);
|
|
890
679
|
};
|
|
891
680
|
}
|
|
892
|
-
}),
|
|
893
|
-
__name: "
|
|
681
|
+
}), _t = /* @__PURE__ */ p({
|
|
682
|
+
__name: "editor",
|
|
894
683
|
props: {
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
height: "30px",
|
|
905
|
-
marginTop: "1px",
|
|
906
|
-
userSelect: "none"
|
|
907
|
-
}));
|
|
908
|
-
return (e, t) => {
|
|
909
|
-
let n = O("v-icon"), r = k("ripple");
|
|
910
|
-
return L((C(), l("div", {
|
|
911
|
-
class: "d-flex align-center cursor-pointer",
|
|
912
|
-
style: y(c.value),
|
|
913
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
914
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
915
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
916
|
-
}, [
|
|
917
|
-
f(n, {
|
|
918
|
-
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
919
|
-
size: "small"
|
|
920
|
-
}, null, 8, ["icon"]),
|
|
921
|
-
u("span", Dt, A(i.title), 1),
|
|
922
|
-
u("span", Ot, A(i.count), 1)
|
|
923
|
-
], 36)), [[r]]);
|
|
924
|
-
};
|
|
925
|
-
}
|
|
926
|
-
}), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
|
|
927
|
-
__name: "item",
|
|
928
|
-
props: {
|
|
929
|
-
id: {},
|
|
930
|
-
title: {}
|
|
931
|
-
},
|
|
932
|
-
emits: ["x-click"],
|
|
933
|
-
setup(e, { emit: t }) {
|
|
934
|
-
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
935
|
-
background: s.value ? r.value : n.value,
|
|
936
|
-
height: "48px",
|
|
937
|
-
marginTop: "1px",
|
|
938
|
-
userSelect: "none"
|
|
939
|
-
}));
|
|
940
|
-
return (e, t) => {
|
|
941
|
-
let n = k("ripple");
|
|
942
|
-
return L((C(), l("div", {
|
|
943
|
-
class: "d-flex align-center cursor-pointer",
|
|
944
|
-
style: y(c.value),
|
|
945
|
-
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
946
|
-
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
947
|
-
onMouseover: t[2] ||= (e) => s.value = !0
|
|
948
|
-
}, [u("span", At, A(i.title), 1)], 36)), [[n]]);
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
}), Mt = { key: 0 }, Nt = {
|
|
952
|
-
key: 1,
|
|
953
|
-
class: "text-body-medium text-grey ml-3"
|
|
954
|
-
}, Pt = /* @__PURE__ */ p({
|
|
955
|
-
__name: "index",
|
|
956
|
-
props: {
|
|
957
|
-
modelValue: {},
|
|
958
|
-
modelModifiers: {},
|
|
959
|
-
open: {
|
|
960
|
-
type: Boolean,
|
|
961
|
-
required: !0
|
|
962
|
-
},
|
|
963
|
-
openModifiers: {}
|
|
964
|
-
},
|
|
965
|
-
emits: ["update:modelValue", "update:open"],
|
|
966
|
-
setup(e) {
|
|
967
|
-
let { nameList: t } = W(), i = N(e, "modelValue"), o = N(e, "open"), u = it(), d = (e) => {
|
|
968
|
-
let t = r(u, e);
|
|
969
|
-
t && n(u, e, !t.collapse);
|
|
970
|
-
}, f = (e) => {
|
|
971
|
-
i.value = e, o.value = !1, H.emit("refreshDepends");
|
|
972
|
-
};
|
|
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, {
|
|
974
|
-
key: 0,
|
|
975
|
-
id: e.id,
|
|
976
|
-
collapse: e.collapse,
|
|
977
|
-
count: e.count ?? 0,
|
|
978
|
-
title: e.name,
|
|
979
|
-
onXClick: d
|
|
980
|
-
}, null, 8, [
|
|
981
|
-
"id",
|
|
982
|
-
"collapse",
|
|
983
|
-
"count",
|
|
984
|
-
"title"
|
|
985
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
|
|
986
|
-
key: 1,
|
|
987
|
-
id: e.id,
|
|
988
|
-
title: e.name,
|
|
989
|
-
onXClick: f
|
|
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));
|
|
991
|
-
}
|
|
992
|
-
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
993
|
-
__name: "index",
|
|
994
|
-
props: /* @__PURE__ */ _({
|
|
995
|
-
hasDelete: {
|
|
996
|
-
type: Boolean,
|
|
997
|
-
default: !1
|
|
998
|
-
},
|
|
999
|
-
readonly: {
|
|
1000
|
-
type: Boolean,
|
|
1001
|
-
default: !1
|
|
1002
|
-
}
|
|
1003
|
-
}, {
|
|
1004
|
-
modelValue: {},
|
|
1005
|
-
modelModifiers: {}
|
|
1006
|
-
}),
|
|
1007
|
-
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1008
|
-
setup(e, { emit: t }) {
|
|
1009
|
-
let { t: n } = V(), i = ye(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = N(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
1010
|
-
let e = "100%";
|
|
1011
|
-
return i.mdAndUp.value && (e = "400px"), {
|
|
1012
|
-
background: p.value,
|
|
1013
|
-
width: e,
|
|
1014
|
-
height: "100%"
|
|
1015
|
-
};
|
|
1016
|
-
}), x = o(() => {
|
|
1017
|
-
let e = 48;
|
|
1018
|
-
return a.value && (e += 24), {
|
|
1019
|
-
position: "relative",
|
|
1020
|
-
height: `calc(100% - ${e}px)`
|
|
1021
|
-
};
|
|
1022
|
-
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1023
|
-
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1024
|
-
let e = r(_, m.value);
|
|
1025
|
-
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1026
|
-
}), { open: E } = G(`propTreeCompSelectDlg${M()}`);
|
|
1027
|
-
return S(() => {
|
|
1028
|
-
E.value = !1;
|
|
1029
|
-
}), (t, n) => {
|
|
1030
|
-
let r = O("v-btn"), i = O("v-sheet"), o = O("v-dialog");
|
|
1031
|
-
return C(), s(o, {
|
|
1032
|
-
modelValue: j(E),
|
|
1033
|
-
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
1034
|
-
fullscreen: "",
|
|
1035
|
-
"no-click-animation": "",
|
|
1036
|
-
persistent: "",
|
|
1037
|
-
transition: "scroll-x-reverse-transition",
|
|
1038
|
-
onKeydown: n[7] ||= R(z((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1039
|
-
}, {
|
|
1040
|
-
activator: I(({ props: t }) => [f(r, v(t, {
|
|
1041
|
-
block: "",
|
|
1042
|
-
density: "comfortable",
|
|
1043
|
-
readonly: e.readonly
|
|
1044
|
-
}), {
|
|
1045
|
-
default: I(() => [d(A(T.value), 1)]),
|
|
1046
|
-
_: 1
|
|
1047
|
-
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1048
|
-
key: 0,
|
|
1049
|
-
class: "mx-2",
|
|
1050
|
-
density: "compact",
|
|
1051
|
-
icon: "mdi-minus",
|
|
1052
|
-
variant: "text",
|
|
1053
|
-
onClick: n[0] ||= z((e) => h("delete"), ["stop"])
|
|
1054
|
-
})) : c("", !0)]),
|
|
1055
|
-
default: I(() => [u("div", {
|
|
1056
|
-
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1057
|
-
onClick: n[4] ||= z((e) => E.value = !1, ["self"]),
|
|
1058
|
-
onContextmenu: n[5] ||= z((e) => E.value = !1, ["self", "prevent"])
|
|
1059
|
-
}, [u("div", {
|
|
1060
|
-
class: "elevation-2",
|
|
1061
|
-
style: y(b.value)
|
|
1062
|
-
}, [
|
|
1063
|
-
j(a) ? (C(), s(i, {
|
|
1064
|
-
key: 0,
|
|
1065
|
-
color: "transparent",
|
|
1066
|
-
height: 24
|
|
1067
|
-
})) : c("", !0),
|
|
1068
|
-
f(i, {
|
|
1069
|
-
class: "d-flex align-center px-3",
|
|
1070
|
-
color: "transparent",
|
|
1071
|
-
height: 48
|
|
1072
|
-
}, {
|
|
1073
|
-
default: I(() => [f(r, {
|
|
1074
|
-
density: "comfortable",
|
|
1075
|
-
icon: "mdi-close",
|
|
1076
|
-
variant: "text",
|
|
1077
|
-
onClick: n[1] ||= (e) => E.value = !1
|
|
1078
|
-
}), u("span", Ft, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1079
|
-
_: 1
|
|
1080
|
-
}),
|
|
1081
|
-
u("div", {
|
|
1082
|
-
class: "overflow-y-auto",
|
|
1083
|
-
style: y(x.value)
|
|
1084
|
-
}, [f(Pt, {
|
|
1085
|
-
modelValue: m.value,
|
|
1086
|
-
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1087
|
-
open: j(E),
|
|
1088
|
-
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1089
|
-
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1090
|
-
], 4)], 32)]),
|
|
1091
|
-
_: 1
|
|
1092
|
-
}, 8, ["modelValue"]);
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
}), Lt = /* @__PURE__ */ p({
|
|
1096
|
-
__name: "editor",
|
|
1097
|
-
props: {
|
|
1098
|
-
modelValue: { required: !0 },
|
|
1099
|
-
modelModifiers: {},
|
|
1100
|
-
lock: {
|
|
1101
|
-
type: Boolean,
|
|
1102
|
-
required: !0
|
|
1103
|
-
},
|
|
1104
|
-
lockModifiers: {},
|
|
1105
|
-
scale: { required: !0 },
|
|
1106
|
-
scaleModifiers: {}
|
|
684
|
+
modelValue: { required: !0 },
|
|
685
|
+
modelModifiers: {},
|
|
686
|
+
lock: {
|
|
687
|
+
type: Boolean,
|
|
688
|
+
required: !0
|
|
689
|
+
},
|
|
690
|
+
lockModifiers: {},
|
|
691
|
+
scale: { required: !0 },
|
|
692
|
+
scaleModifiers: {}
|
|
1107
693
|
},
|
|
1108
694
|
emits: [
|
|
1109
695
|
"update:modelValue",
|
|
@@ -1111,24 +697,24 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1111
697
|
"update:scale"
|
|
1112
698
|
],
|
|
1113
699
|
setup(e, { expose: t }) {
|
|
1114
|
-
let n =
|
|
700
|
+
let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = he(), o = ge(), c = Ue(), l = te("target"), u = () => {
|
|
1115
701
|
let e = JSON.parse(n.value);
|
|
1116
702
|
l.value?.load(e);
|
|
1117
703
|
};
|
|
1118
704
|
return t({ save: () => {
|
|
1119
705
|
let e = l.value.save();
|
|
1120
706
|
n.value = JSON.stringify(e, null, 2);
|
|
1121
|
-
} }), (e, t) => (C(), s(
|
|
707
|
+
} }), (e, t) => (C(), s(A(be), {
|
|
1122
708
|
ref_key: "target",
|
|
1123
709
|
ref: l,
|
|
1124
710
|
lock: r.value,
|
|
1125
711
|
"onUpdate:lock": t[0] ||= (e) => r.value = e,
|
|
1126
712
|
scale: i.value,
|
|
1127
713
|
"onUpdate:scale": t[1] ||= (e) => i.value = e,
|
|
1128
|
-
dark:
|
|
1129
|
-
locale:
|
|
714
|
+
dark: A(a),
|
|
715
|
+
locale: A(o),
|
|
1130
716
|
type: "json",
|
|
1131
|
-
version:
|
|
717
|
+
version: A(c),
|
|
1132
718
|
onReady: u
|
|
1133
719
|
}, null, 8, [
|
|
1134
720
|
"lock",
|
|
@@ -1138,7 +724,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1138
724
|
"version"
|
|
1139
725
|
]));
|
|
1140
726
|
}
|
|
1141
|
-
}),
|
|
727
|
+
}), vt = { class: "text-body-large" }, yt = /* @__PURE__ */ p({
|
|
1142
728
|
__name: "index",
|
|
1143
729
|
props: /* @__PURE__ */ _({
|
|
1144
730
|
hasDelete: {
|
|
@@ -1155,38 +741,38 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1155
741
|
}),
|
|
1156
742
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1157
743
|
setup(e, { emit: t }) {
|
|
1158
|
-
let { t: n } =
|
|
744
|
+
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
745
|
let e = 48;
|
|
1160
746
|
return r.value && (e += 24), {
|
|
1161
747
|
position: "relative",
|
|
1162
748
|
background: a.value,
|
|
1163
749
|
height: `calc(100% - ${e}px)`
|
|
1164
750
|
};
|
|
1165
|
-
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } =
|
|
751
|
+
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = W(`propTreejsonEditorDlg${j()}`);
|
|
1166
752
|
S(() => {
|
|
1167
753
|
w.value = !1;
|
|
1168
754
|
});
|
|
1169
|
-
let E =
|
|
1170
|
-
return
|
|
755
|
+
let E = te("editor");
|
|
756
|
+
return N(w, (e) => {
|
|
1171
757
|
e || E.value?.save();
|
|
1172
758
|
}), (t, n) => {
|
|
1173
|
-
let a =
|
|
759
|
+
let a = D("v-btn"), o = D("v-sheet"), S = D("v-spacer"), T = D("v-dialog");
|
|
1174
760
|
return C(), s(T, {
|
|
1175
|
-
modelValue:
|
|
761
|
+
modelValue: A(w),
|
|
1176
762
|
"onUpdate:modelValue": n[5] ||= (e) => g(w) ? w.value = e : null,
|
|
1177
763
|
attach: "",
|
|
1178
764
|
fullscreen: "",
|
|
1179
765
|
"no-click-animation": "",
|
|
1180
766
|
persistent: "",
|
|
1181
767
|
transition: "dialog-bottom-transition",
|
|
1182
|
-
onKeydown: n[6] ||= R(
|
|
768
|
+
onKeydown: n[6] ||= L(R((e) => w.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1183
769
|
}, {
|
|
1184
|
-
activator:
|
|
770
|
+
activator: F(({ props: t }) => [f(a, v(t, {
|
|
1185
771
|
block: "",
|
|
1186
772
|
density: "comfortable",
|
|
1187
773
|
readonly: e.readonly
|
|
1188
774
|
}), {
|
|
1189
|
-
default:
|
|
775
|
+
default: F(() => [d(k(x.value), 1)]),
|
|
1190
776
|
_: 1
|
|
1191
777
|
}, 16, ["readonly"]), e.hasDelete ? (C(), s(a, {
|
|
1192
778
|
key: 0,
|
|
@@ -1194,37 +780,37 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1194
780
|
density: "compact",
|
|
1195
781
|
icon: "mdi-minus",
|
|
1196
782
|
variant: "text",
|
|
1197
|
-
onClick: n[0] ||=
|
|
783
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1198
784
|
})) : c("", !0)]),
|
|
1199
|
-
default:
|
|
1200
|
-
color:
|
|
785
|
+
default: F(() => [f(o, {
|
|
786
|
+
color: A(i),
|
|
1201
787
|
height: "100%",
|
|
1202
788
|
width: "100%"
|
|
1203
789
|
}, {
|
|
1204
|
-
default:
|
|
1205
|
-
|
|
790
|
+
default: F(() => [
|
|
791
|
+
A(r) ? (C(), s(o, {
|
|
1206
792
|
key: 0,
|
|
1207
|
-
color:
|
|
793
|
+
color: A(l),
|
|
1208
794
|
height: 24
|
|
1209
795
|
}, null, 8, ["color"])) : c("", !0),
|
|
1210
796
|
f(o, {
|
|
1211
797
|
class: "d-flex align-center px-2",
|
|
1212
|
-
color:
|
|
798
|
+
color: A(l),
|
|
1213
799
|
height: 48
|
|
1214
800
|
}, {
|
|
1215
|
-
default:
|
|
801
|
+
default: F(() => [
|
|
1216
802
|
f(a, {
|
|
1217
803
|
density: "comfortable",
|
|
1218
804
|
icon: "mdi-close",
|
|
1219
805
|
variant: "text",
|
|
1220
806
|
onClick: n[1] ||= (e) => w.value = !1
|
|
1221
807
|
}),
|
|
1222
|
-
u("span",
|
|
808
|
+
u("span", vt, k(x.value), 1),
|
|
1223
809
|
f(S)
|
|
1224
810
|
]),
|
|
1225
811
|
_: 1
|
|
1226
812
|
}, 8, ["color"]),
|
|
1227
|
-
u("div", { style: y(b.value) }, [f(
|
|
813
|
+
u("div", { style: y(b.value) }, [f(_t, {
|
|
1228
814
|
ref_key: "editor",
|
|
1229
815
|
ref: E,
|
|
1230
816
|
modelValue: p.value,
|
|
@@ -1245,7 +831,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1245
831
|
}, 8, ["modelValue"]);
|
|
1246
832
|
};
|
|
1247
833
|
}
|
|
1248
|
-
}),
|
|
834
|
+
}), bt = { class: "d-flex justify-space-between align-center my-2" }, xt = { class: "flex-grow-1" }, St = /* @__PURE__ */ p({
|
|
1249
835
|
__name: "index",
|
|
1250
836
|
props: /* @__PURE__ */ _({
|
|
1251
837
|
hasDelete: {
|
|
@@ -1263,7 +849,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1263
849
|
}),
|
|
1264
850
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1265
851
|
setup(e, { emit: t }) {
|
|
1266
|
-
let { t: n } =
|
|
852
|
+
let { t: n } = B(), { isMobile: r } = U(), i = M(e, "modelValue"), a = t, d = o(() => oe(e.types)), p = T(""), m = o(() => {
|
|
1267
853
|
let e = [];
|
|
1268
854
|
for (let { value: t, title: r } of d.value) e.push({
|
|
1269
855
|
value: t,
|
|
@@ -1271,7 +857,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1271
857
|
});
|
|
1272
858
|
return e;
|
|
1273
859
|
});
|
|
1274
|
-
|
|
860
|
+
P(() => {
|
|
1275
861
|
for (let { value: e, validator: t } of d.value) if (t(i.value)) {
|
|
1276
862
|
p.value = e;
|
|
1277
863
|
return;
|
|
@@ -1282,7 +868,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1282
868
|
i.value = h.value?.default;
|
|
1283
869
|
}, _ = T(0), v = async (e) => {
|
|
1284
870
|
if (!e || !r() || !h.value || h.value.trait !== "pixel" && h.value.trait !== "percent") return;
|
|
1285
|
-
let t = await
|
|
871
|
+
let t = await _e({
|
|
1286
872
|
title: "",
|
|
1287
873
|
value: _.value,
|
|
1288
874
|
precision: h.value.precision,
|
|
@@ -1292,33 +878,33 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1292
878
|
});
|
|
1293
879
|
t !== void 0 && (_.value = t);
|
|
1294
880
|
};
|
|
1295
|
-
|
|
1296
|
-
h.value?.trait === "pixel" ? _.value =
|
|
1297
|
-
}),
|
|
881
|
+
P(() => {
|
|
882
|
+
h.value?.trait === "pixel" ? _.value = de(i.value) : h.value?.trait === "percent" && (_.value = ue(i.value));
|
|
883
|
+
}), N(_, (e) => {
|
|
1298
884
|
h.value?.trait === "pixel" ? i.value = e + "px" : h.value?.trait === "percent" && (i.value = e + "%");
|
|
1299
885
|
});
|
|
1300
886
|
let y = T("#ff00ff");
|
|
1301
|
-
|
|
1302
|
-
h.value?.trait === "hexColor" &&
|
|
1303
|
-
}),
|
|
887
|
+
P(() => {
|
|
888
|
+
h.value?.trait === "hexColor" && se(i.value) && (y.value = i.value);
|
|
889
|
+
}), N(y, (e) => {
|
|
1304
890
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1305
891
|
});
|
|
1306
892
|
let b = T("primary"), x = o(() => {
|
|
1307
893
|
let e = [];
|
|
1308
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
894
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of pe) e.push({
|
|
1309
895
|
value: t,
|
|
1310
896
|
title: n(r)
|
|
1311
897
|
});
|
|
1312
898
|
return e;
|
|
1313
899
|
});
|
|
1314
|
-
return
|
|
1315
|
-
h.value?.trait === "themeColor" &&
|
|
1316
|
-
}),
|
|
900
|
+
return P(() => {
|
|
901
|
+
h.value?.trait === "themeColor" && ce(i.value) && (b.value = i.value);
|
|
902
|
+
}), N(b, (e) => {
|
|
1317
903
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1318
904
|
}), (t, n) => {
|
|
1319
|
-
let r =
|
|
1320
|
-
return C(), l("div",
|
|
1321
|
-
|
|
905
|
+
let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
|
|
906
|
+
return C(), l("div", bt, [u("div", xt, [
|
|
907
|
+
I(f(r, {
|
|
1322
908
|
modelValue: p.value,
|
|
1323
909
|
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
1324
910
|
density: "compact",
|
|
@@ -1336,7 +922,7 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1336
922
|
void 0,
|
|
1337
923
|
{ stop: !0 }
|
|
1338
924
|
]]),
|
|
1339
|
-
h.value?.trait === "pixel" || h.value?.trait === "percent" ?
|
|
925
|
+
h.value?.trait === "pixel" || h.value?.trait === "percent" ? I((C(), s(i, {
|
|
1340
926
|
key: 0,
|
|
1341
927
|
modelValue: _.value,
|
|
1342
928
|
"onUpdate:modelValue": n[1] ||= (e) => _.value = e,
|
|
@@ -1363,12 +949,12 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1363
949
|
void 0,
|
|
1364
950
|
{ stop: !0 }
|
|
1365
951
|
]]) : c("", !0),
|
|
1366
|
-
h.value?.trait === "hexColor" ? (C(), s(
|
|
952
|
+
h.value?.trait === "hexColor" ? (C(), s(gt, {
|
|
1367
953
|
key: 1,
|
|
1368
954
|
modelValue: y.value,
|
|
1369
955
|
"onUpdate:modelValue": n[2] ||= (e) => y.value = e
|
|
1370
956
|
}, null, 8, ["modelValue"])) : c("", !0),
|
|
1371
|
-
h.value?.trait === "themeColor" ?
|
|
957
|
+
h.value?.trait === "themeColor" ? I((C(), s(r, {
|
|
1372
958
|
key: 2,
|
|
1373
959
|
modelValue: b.value,
|
|
1374
960
|
"onUpdate:modelValue": n[3] ||= (e) => b.value = e,
|
|
@@ -1388,11 +974,11 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1388
974
|
density: "compact",
|
|
1389
975
|
icon: "mdi-minus",
|
|
1390
976
|
variant: "text",
|
|
1391
|
-
onClick: n[4] ||=
|
|
977
|
+
onClick: n[4] ||= R((e) => a("delete"), ["stop"])
|
|
1392
978
|
})) : c("", !0)]);
|
|
1393
979
|
};
|
|
1394
980
|
}
|
|
1395
|
-
}),
|
|
981
|
+
}), Ct = { class: "d-flex justify-space-between align-center" }, wt = /* @__PURE__ */ p({
|
|
1396
982
|
__name: "index",
|
|
1397
983
|
props: /* @__PURE__ */ _({
|
|
1398
984
|
hasDelete: {
|
|
@@ -1413,9 +999,9 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1413
999
|
}),
|
|
1414
1000
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1415
1001
|
setup(e, { emit: t }) {
|
|
1416
|
-
let { isMobile: n } =
|
|
1002
|
+
let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
|
|
1417
1003
|
if (!t || e.readonly || !n()) return;
|
|
1418
|
-
let i = await
|
|
1004
|
+
let i = await _e({
|
|
1419
1005
|
title: "",
|
|
1420
1006
|
value: r.value,
|
|
1421
1007
|
precision: e.precision,
|
|
@@ -1425,44 +1011,411 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1425
1011
|
});
|
|
1426
1012
|
i !== void 0 && (r.value = i);
|
|
1427
1013
|
};
|
|
1428
|
-
return (t, n) => {
|
|
1429
|
-
let o =
|
|
1430
|
-
return C(), l("div",
|
|
1431
|
-
modelValue: r.value,
|
|
1432
|
-
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1433
|
-
"control-variant": "stacked",
|
|
1434
|
-
density: "compact",
|
|
1435
|
-
"hide-details": "",
|
|
1436
|
-
max: e.max,
|
|
1437
|
-
min: e.min,
|
|
1438
|
-
precision: e.precision,
|
|
1439
|
-
readonly: e.readonly,
|
|
1440
|
-
"single-line": "",
|
|
1441
|
-
step: e.step,
|
|
1442
|
-
"onUpdate:focused": a
|
|
1443
|
-
}, null, 8, [
|
|
1444
|
-
"modelValue",
|
|
1445
|
-
"max",
|
|
1446
|
-
"min",
|
|
1447
|
-
"precision",
|
|
1448
|
-
"readonly",
|
|
1449
|
-
"step"
|
|
1450
|
-
]), [[
|
|
1451
|
-
d,
|
|
1452
|
-
void 0,
|
|
1453
|
-
void 0,
|
|
1454
|
-
{ stop: !0 }
|
|
1455
|
-
]]), e.hasDelete ? (C(), s(u, {
|
|
1456
|
-
key: 0,
|
|
1457
|
-
class: "mx-2",
|
|
1458
|
-
density: "compact",
|
|
1459
|
-
icon: "mdi-minus",
|
|
1460
|
-
variant: "text",
|
|
1461
|
-
onClick: n[1] ||=
|
|
1462
|
-
})) : c("", !0)]);
|
|
1014
|
+
return (t, n) => {
|
|
1015
|
+
let o = D("v-number-input"), u = D("v-btn"), d = O("ripple");
|
|
1016
|
+
return C(), l("div", Ct, [I(f(o, {
|
|
1017
|
+
modelValue: r.value,
|
|
1018
|
+
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1019
|
+
"control-variant": "stacked",
|
|
1020
|
+
density: "compact",
|
|
1021
|
+
"hide-details": "",
|
|
1022
|
+
max: e.max,
|
|
1023
|
+
min: e.min,
|
|
1024
|
+
precision: e.precision,
|
|
1025
|
+
readonly: e.readonly,
|
|
1026
|
+
"single-line": "",
|
|
1027
|
+
step: e.step,
|
|
1028
|
+
"onUpdate:focused": a
|
|
1029
|
+
}, null, 8, [
|
|
1030
|
+
"modelValue",
|
|
1031
|
+
"max",
|
|
1032
|
+
"min",
|
|
1033
|
+
"precision",
|
|
1034
|
+
"readonly",
|
|
1035
|
+
"step"
|
|
1036
|
+
]), [[
|
|
1037
|
+
d,
|
|
1038
|
+
void 0,
|
|
1039
|
+
void 0,
|
|
1040
|
+
{ stop: !0 }
|
|
1041
|
+
]]), e.hasDelete ? (C(), s(u, {
|
|
1042
|
+
key: 0,
|
|
1043
|
+
class: "mx-2",
|
|
1044
|
+
density: "compact",
|
|
1045
|
+
icon: "mdi-minus",
|
|
1046
|
+
variant: "text",
|
|
1047
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1048
|
+
})) : c("", !0)]);
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
}), Tt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ p({
|
|
1052
|
+
__name: "index",
|
|
1053
|
+
props: /* @__PURE__ */ _({
|
|
1054
|
+
hasDelete: {
|
|
1055
|
+
type: Boolean,
|
|
1056
|
+
default: !1
|
|
1057
|
+
},
|
|
1058
|
+
readonly: {
|
|
1059
|
+
type: Boolean,
|
|
1060
|
+
default: !1
|
|
1061
|
+
},
|
|
1062
|
+
items: {}
|
|
1063
|
+
}, {
|
|
1064
|
+
modelValue: {},
|
|
1065
|
+
modelModifiers: {}
|
|
1066
|
+
}),
|
|
1067
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1068
|
+
setup(e, { emit: t }) {
|
|
1069
|
+
let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
|
|
1070
|
+
let t = [];
|
|
1071
|
+
return re(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1072
|
+
t.push({
|
|
1073
|
+
value: e,
|
|
1074
|
+
title: n(r)
|
|
1075
|
+
});
|
|
1076
|
+
}), t;
|
|
1077
|
+
});
|
|
1078
|
+
return (t, n) => {
|
|
1079
|
+
let o = D("v-select"), u = D("v-btn"), d = O("ripple");
|
|
1080
|
+
return C(), l("div", Tt, [I(f(o, {
|
|
1081
|
+
modelValue: r.value,
|
|
1082
|
+
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1083
|
+
density: "compact",
|
|
1084
|
+
"hide-details": "",
|
|
1085
|
+
items: a.value,
|
|
1086
|
+
readonly: e.readonly,
|
|
1087
|
+
"single-line": ""
|
|
1088
|
+
}, null, 8, [
|
|
1089
|
+
"modelValue",
|
|
1090
|
+
"items",
|
|
1091
|
+
"readonly"
|
|
1092
|
+
]), [[
|
|
1093
|
+
d,
|
|
1094
|
+
void 0,
|
|
1095
|
+
void 0,
|
|
1096
|
+
{ stop: !0 }
|
|
1097
|
+
]]), e.hasDelete ? (C(), s(u, {
|
|
1098
|
+
key: 0,
|
|
1099
|
+
class: "mx-2",
|
|
1100
|
+
density: "compact",
|
|
1101
|
+
icon: "mdi-minus",
|
|
1102
|
+
variant: "text",
|
|
1103
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1104
|
+
})) : c("", !0)]);
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
}), Dt = { class: "text-label-large ml-1" }, Ot = { class: "text-body-small text-grey ml-1" }, kt = /* @__PURE__ */ p({
|
|
1108
|
+
__name: "group",
|
|
1109
|
+
props: {
|
|
1110
|
+
id: {},
|
|
1111
|
+
title: {},
|
|
1112
|
+
collapse: { type: Boolean },
|
|
1113
|
+
count: {}
|
|
1114
|
+
},
|
|
1115
|
+
emits: ["x-click"],
|
|
1116
|
+
setup(e, { emit: t }) {
|
|
1117
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
1118
|
+
background: s.value ? r.value : n.value,
|
|
1119
|
+
height: "30px",
|
|
1120
|
+
marginTop: "1px",
|
|
1121
|
+
userSelect: "none"
|
|
1122
|
+
}));
|
|
1123
|
+
return (e, t) => {
|
|
1124
|
+
let n = D("v-icon"), r = O("ripple");
|
|
1125
|
+
return I((C(), l("div", {
|
|
1126
|
+
class: "d-flex align-center cursor-pointer",
|
|
1127
|
+
style: y(c.value),
|
|
1128
|
+
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
1129
|
+
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
1130
|
+
onMouseover: t[2] ||= (e) => s.value = !0
|
|
1131
|
+
}, [
|
|
1132
|
+
f(n, {
|
|
1133
|
+
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1134
|
+
size: "small"
|
|
1135
|
+
}, null, 8, ["icon"]),
|
|
1136
|
+
u("span", Dt, k(i.title), 1),
|
|
1137
|
+
u("span", Ot, k(i.count), 1)
|
|
1138
|
+
], 36)), [[r]]);
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
}), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
|
|
1142
|
+
__name: "item",
|
|
1143
|
+
props: {
|
|
1144
|
+
id: {},
|
|
1145
|
+
title: {}
|
|
1146
|
+
},
|
|
1147
|
+
emits: ["x-click"],
|
|
1148
|
+
setup(e, { emit: t }) {
|
|
1149
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
|
|
1150
|
+
background: a.value ? r.value : n.value,
|
|
1151
|
+
height: "48px",
|
|
1152
|
+
marginTop: "1px",
|
|
1153
|
+
userSelect: "none"
|
|
1154
|
+
}));
|
|
1155
|
+
return (t, n) => {
|
|
1156
|
+
let r = O("ripple");
|
|
1157
|
+
return I((C(), l("div", {
|
|
1158
|
+
class: "d-flex align-center cursor-pointer",
|
|
1159
|
+
style: y(s.value),
|
|
1160
|
+
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1161
|
+
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1162
|
+
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1163
|
+
}, [u("span", At, k(e.title), 1)], 36)), [[r]]);
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
}), Mt = { key: 0 }, Nt = {
|
|
1167
|
+
key: 1,
|
|
1168
|
+
class: "text-body-medium text-grey ml-3"
|
|
1169
|
+
}, Pt = /* @__PURE__ */ p({
|
|
1170
|
+
__name: "index",
|
|
1171
|
+
props: {
|
|
1172
|
+
modelValue: {},
|
|
1173
|
+
modelModifiers: {},
|
|
1174
|
+
open: {
|
|
1175
|
+
type: Boolean,
|
|
1176
|
+
required: !0
|
|
1177
|
+
},
|
|
1178
|
+
openModifiers: {}
|
|
1179
|
+
},
|
|
1180
|
+
emits: ["update:modelValue", "update:open"],
|
|
1181
|
+
setup(e) {
|
|
1182
|
+
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = ct(), d = (e) => {
|
|
1183
|
+
let t = r(u, e);
|
|
1184
|
+
t && n(u, e, !t.collapse);
|
|
1185
|
+
}, f = (e) => {
|
|
1186
|
+
i.value = e, o.value = !1;
|
|
1187
|
+
};
|
|
1188
|
+
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, {
|
|
1189
|
+
key: 0,
|
|
1190
|
+
id: e.id,
|
|
1191
|
+
collapse: e.collapse,
|
|
1192
|
+
count: e.count ?? 0,
|
|
1193
|
+
title: e.name,
|
|
1194
|
+
onXClick: d
|
|
1195
|
+
}, null, 8, [
|
|
1196
|
+
"id",
|
|
1197
|
+
"collapse",
|
|
1198
|
+
"count",
|
|
1199
|
+
"title"
|
|
1200
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
|
|
1201
|
+
key: 1,
|
|
1202
|
+
id: e.id,
|
|
1203
|
+
title: e.name,
|
|
1204
|
+
onXClick: f
|
|
1205
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, k(A(t)([
|
|
1206
|
+
"x-prop-tree.no",
|
|
1207
|
+
"x-prop-tree.adapt",
|
|
1208
|
+
"x-prop-tree.slot"
|
|
1209
|
+
])), 1));
|
|
1210
|
+
}
|
|
1211
|
+
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
1212
|
+
__name: "index",
|
|
1213
|
+
props: /* @__PURE__ */ _({
|
|
1214
|
+
hasDelete: {
|
|
1215
|
+
type: Boolean,
|
|
1216
|
+
default: !1
|
|
1217
|
+
},
|
|
1218
|
+
readonly: {
|
|
1219
|
+
type: Boolean,
|
|
1220
|
+
default: !1
|
|
1221
|
+
}
|
|
1222
|
+
}, {
|
|
1223
|
+
modelValue: {},
|
|
1224
|
+
modelModifiers: {}
|
|
1225
|
+
}),
|
|
1226
|
+
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1227
|
+
setup(e, { emit: t }) {
|
|
1228
|
+
let { t: n } = B(), i = xe(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = ct(), b = o(() => {
|
|
1229
|
+
let e = "100%";
|
|
1230
|
+
return i.mdAndUp.value && (e = "400px"), {
|
|
1231
|
+
background: p.value,
|
|
1232
|
+
width: e,
|
|
1233
|
+
height: "100%"
|
|
1234
|
+
};
|
|
1235
|
+
}), x = o(() => {
|
|
1236
|
+
let e = 48;
|
|
1237
|
+
return a.value && (e += 24), {
|
|
1238
|
+
position: "relative",
|
|
1239
|
+
height: `calc(100% - ${e}px)`
|
|
1240
|
+
};
|
|
1241
|
+
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1242
|
+
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1243
|
+
let e = r(_, m.value);
|
|
1244
|
+
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1245
|
+
}), { open: E } = W(`propTreeAdaptSlotSelectDlg${j()}`);
|
|
1246
|
+
return S(() => {
|
|
1247
|
+
E.value = !1;
|
|
1248
|
+
}), (t, n) => {
|
|
1249
|
+
let r = D("v-btn"), i = D("v-sheet"), o = D("v-dialog");
|
|
1250
|
+
return C(), s(o, {
|
|
1251
|
+
modelValue: A(E),
|
|
1252
|
+
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
1253
|
+
fullscreen: "",
|
|
1254
|
+
"no-click-animation": "",
|
|
1255
|
+
persistent: "",
|
|
1256
|
+
transition: "scroll-x-reverse-transition",
|
|
1257
|
+
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1258
|
+
}, {
|
|
1259
|
+
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1260
|
+
block: "",
|
|
1261
|
+
density: "comfortable",
|
|
1262
|
+
readonly: e.readonly
|
|
1263
|
+
}), {
|
|
1264
|
+
default: F(() => [d(k(T.value), 1)]),
|
|
1265
|
+
_: 1
|
|
1266
|
+
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1267
|
+
key: 0,
|
|
1268
|
+
class: "mx-2",
|
|
1269
|
+
density: "compact",
|
|
1270
|
+
icon: "mdi-minus",
|
|
1271
|
+
variant: "text",
|
|
1272
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
1273
|
+
})) : c("", !0)]),
|
|
1274
|
+
default: F(() => [u("div", {
|
|
1275
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1276
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
1277
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
1278
|
+
}, [u("div", {
|
|
1279
|
+
class: "elevation-2",
|
|
1280
|
+
style: y(b.value)
|
|
1281
|
+
}, [
|
|
1282
|
+
A(a) ? (C(), s(i, {
|
|
1283
|
+
key: 0,
|
|
1284
|
+
color: "transparent",
|
|
1285
|
+
height: 24
|
|
1286
|
+
})) : c("", !0),
|
|
1287
|
+
f(i, {
|
|
1288
|
+
class: "d-flex align-center px-3",
|
|
1289
|
+
color: "transparent",
|
|
1290
|
+
height: 48
|
|
1291
|
+
}, {
|
|
1292
|
+
default: F(() => [f(r, {
|
|
1293
|
+
density: "comfortable",
|
|
1294
|
+
icon: "mdi-close",
|
|
1295
|
+
variant: "text",
|
|
1296
|
+
onClick: n[1] ||= (e) => E.value = !1
|
|
1297
|
+
}), u("span", Ft, k(A(l)([
|
|
1298
|
+
"x-prop-tree.select",
|
|
1299
|
+
"x-prop-tree.adapt",
|
|
1300
|
+
"x-prop-tree.slot"
|
|
1301
|
+
])), 1)]),
|
|
1302
|
+
_: 1
|
|
1303
|
+
}),
|
|
1304
|
+
u("div", {
|
|
1305
|
+
class: "overflow-y-auto",
|
|
1306
|
+
style: y(x.value)
|
|
1307
|
+
}, [f(Pt, {
|
|
1308
|
+
modelValue: m.value,
|
|
1309
|
+
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1310
|
+
open: A(E),
|
|
1311
|
+
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1312
|
+
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1313
|
+
], 4)], 32)]),
|
|
1314
|
+
_: 1
|
|
1315
|
+
}, 8, ["modelValue"]);
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1318
|
+
}), Lt = { class: "text-label-large ml-1" }, Rt = { class: "text-body-small text-grey ml-1" }, zt = /* @__PURE__ */ p({
|
|
1319
|
+
__name: "group",
|
|
1320
|
+
props: {
|
|
1321
|
+
id: {},
|
|
1322
|
+
title: {},
|
|
1323
|
+
collapse: { type: Boolean },
|
|
1324
|
+
count: {}
|
|
1325
|
+
},
|
|
1326
|
+
emits: ["x-click"],
|
|
1327
|
+
setup(e, { emit: t }) {
|
|
1328
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
1329
|
+
background: s.value ? r.value : n.value,
|
|
1330
|
+
height: "30px",
|
|
1331
|
+
marginTop: "1px",
|
|
1332
|
+
userSelect: "none"
|
|
1333
|
+
}));
|
|
1334
|
+
return (e, t) => {
|
|
1335
|
+
let n = D("v-icon"), r = O("ripple");
|
|
1336
|
+
return I((C(), l("div", {
|
|
1337
|
+
class: "d-flex align-center cursor-pointer",
|
|
1338
|
+
style: y(c.value),
|
|
1339
|
+
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
1340
|
+
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
1341
|
+
onMouseover: t[2] ||= (e) => s.value = !0
|
|
1342
|
+
}, [
|
|
1343
|
+
f(n, {
|
|
1344
|
+
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1345
|
+
size: "small"
|
|
1346
|
+
}, null, 8, ["icon"]),
|
|
1347
|
+
u("span", Lt, k(i.title), 1),
|
|
1348
|
+
u("span", Rt, k(i.count), 1)
|
|
1349
|
+
], 36)), [[r]]);
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
}), Bt = { class: "text-body-large ml-6" }, Vt = /* @__PURE__ */ p({
|
|
1353
|
+
__name: "item",
|
|
1354
|
+
props: {
|
|
1355
|
+
id: {},
|
|
1356
|
+
title: {}
|
|
1357
|
+
},
|
|
1358
|
+
emits: ["x-click"],
|
|
1359
|
+
setup(e, { emit: t }) {
|
|
1360
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
1361
|
+
background: s.value ? r.value : n.value,
|
|
1362
|
+
height: "48px",
|
|
1363
|
+
marginTop: "1px",
|
|
1364
|
+
userSelect: "none"
|
|
1365
|
+
}));
|
|
1366
|
+
return (e, t) => {
|
|
1367
|
+
let n = O("ripple");
|
|
1368
|
+
return I((C(), l("div", {
|
|
1369
|
+
class: "d-flex align-center cursor-pointer",
|
|
1370
|
+
style: y(c.value),
|
|
1371
|
+
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
1372
|
+
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
1373
|
+
onMouseover: t[2] ||= (e) => s.value = !0
|
|
1374
|
+
}, [u("span", Bt, k(i.title), 1)], 36)), [[n]]);
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
}), Ht = { key: 0 }, Ut = {
|
|
1378
|
+
key: 1,
|
|
1379
|
+
class: "text-body-medium text-grey ml-3"
|
|
1380
|
+
}, Wt = /* @__PURE__ */ p({
|
|
1381
|
+
__name: "index",
|
|
1382
|
+
props: {
|
|
1383
|
+
modelValue: {},
|
|
1384
|
+
modelModifiers: {},
|
|
1385
|
+
open: {
|
|
1386
|
+
type: Boolean,
|
|
1387
|
+
required: !0
|
|
1388
|
+
},
|
|
1389
|
+
openModifiers: {}
|
|
1390
|
+
},
|
|
1391
|
+
emits: ["update:modelValue", "update:open"],
|
|
1392
|
+
setup(e) {
|
|
1393
|
+
let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = it(), d = (e) => {
|
|
1394
|
+
let t = r(u, e);
|
|
1395
|
+
t && n(u, e, !t.collapse);
|
|
1396
|
+
}, f = (e) => {
|
|
1397
|
+
i.value = e, o.value = !1, V.emit("refreshDepends");
|
|
1463
1398
|
};
|
|
1399
|
+
return (e, n) => A(u).length > 0 ? (C(), l("div", Ht, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(zt, {
|
|
1400
|
+
key: 0,
|
|
1401
|
+
id: e.id,
|
|
1402
|
+
collapse: e.collapse,
|
|
1403
|
+
count: e.count ?? 0,
|
|
1404
|
+
title: e.name,
|
|
1405
|
+
onXClick: d
|
|
1406
|
+
}, null, 8, [
|
|
1407
|
+
"id",
|
|
1408
|
+
"collapse",
|
|
1409
|
+
"count",
|
|
1410
|
+
"title"
|
|
1411
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(Vt, {
|
|
1412
|
+
key: 1,
|
|
1413
|
+
id: e.id,
|
|
1414
|
+
title: e.name,
|
|
1415
|
+
onXClick: f
|
|
1416
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Ut, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
1464
1417
|
}
|
|
1465
|
-
}), Gt = { class: "
|
|
1418
|
+
}), Gt = { class: "text-body-large" }, Kt = /* @__PURE__ */ p({
|
|
1466
1419
|
__name: "index",
|
|
1467
1420
|
props: /* @__PURE__ */ _({
|
|
1468
1421
|
hasDelete: {
|
|
@@ -1472,50 +1425,97 @@ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text
|
|
|
1472
1425
|
readonly: {
|
|
1473
1426
|
type: Boolean,
|
|
1474
1427
|
default: !1
|
|
1475
|
-
}
|
|
1476
|
-
items: {}
|
|
1428
|
+
}
|
|
1477
1429
|
}, {
|
|
1478
1430
|
modelValue: {},
|
|
1479
1431
|
modelModifiers: {}
|
|
1480
1432
|
}),
|
|
1481
1433
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1482
1434
|
setup(e, { emit: t }) {
|
|
1483
|
-
let { t: n } =
|
|
1484
|
-
let
|
|
1485
|
-
return
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1435
|
+
let { t: n } = B(), i = xe(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
1436
|
+
let e = "100%";
|
|
1437
|
+
return i.mdAndUp.value && (e = "400px"), {
|
|
1438
|
+
background: p.value,
|
|
1439
|
+
width: e,
|
|
1440
|
+
height: "100%"
|
|
1441
|
+
};
|
|
1442
|
+
}), x = o(() => {
|
|
1443
|
+
let e = 48;
|
|
1444
|
+
return a.value && (e += 24), {
|
|
1445
|
+
position: "relative",
|
|
1446
|
+
height: `calc(100% - ${e}px)`
|
|
1447
|
+
};
|
|
1448
|
+
}), w = o(() => ({ height: "60px" })), T = o(() => {
|
|
1449
|
+
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1450
|
+
let e = r(_, m.value);
|
|
1451
|
+
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1452
|
+
}), { open: E } = W(`propTreeCompSelectDlg${j()}`);
|
|
1453
|
+
return S(() => {
|
|
1454
|
+
E.value = !1;
|
|
1455
|
+
}), (t, n) => {
|
|
1456
|
+
let r = D("v-btn"), i = D("v-sheet"), o = D("v-dialog");
|
|
1457
|
+
return C(), s(o, {
|
|
1458
|
+
modelValue: A(E),
|
|
1459
|
+
"onUpdate:modelValue": n[6] ||= (e) => g(E) ? E.value = e : null,
|
|
1460
|
+
fullscreen: "",
|
|
1461
|
+
"no-click-animation": "",
|
|
1462
|
+
persistent: "",
|
|
1463
|
+
transition: "scroll-x-reverse-transition",
|
|
1464
|
+
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1465
|
+
}, {
|
|
1466
|
+
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1467
|
+
block: "",
|
|
1468
|
+
density: "comfortable",
|
|
1469
|
+
readonly: e.readonly
|
|
1470
|
+
}), {
|
|
1471
|
+
default: F(() => [d(k(T.value), 1)]),
|
|
1472
|
+
_: 1
|
|
1473
|
+
}, 16, ["readonly"]), e.hasDelete ? (C(), s(r, {
|
|
1474
|
+
key: 0,
|
|
1475
|
+
class: "mx-2",
|
|
1476
|
+
density: "compact",
|
|
1477
|
+
icon: "mdi-minus",
|
|
1478
|
+
variant: "text",
|
|
1479
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
1480
|
+
})) : c("", !0)]),
|
|
1481
|
+
default: F(() => [u("div", {
|
|
1482
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1483
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
1484
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
1485
|
+
}, [u("div", {
|
|
1486
|
+
class: "elevation-2",
|
|
1487
|
+
style: y(b.value)
|
|
1488
|
+
}, [
|
|
1489
|
+
A(a) ? (C(), s(i, {
|
|
1490
|
+
key: 0,
|
|
1491
|
+
color: "transparent",
|
|
1492
|
+
height: 24
|
|
1493
|
+
})) : c("", !0),
|
|
1494
|
+
f(i, {
|
|
1495
|
+
class: "d-flex align-center px-3",
|
|
1496
|
+
color: "transparent",
|
|
1497
|
+
height: 48
|
|
1498
|
+
}, {
|
|
1499
|
+
default: F(() => [f(r, {
|
|
1500
|
+
density: "comfortable",
|
|
1501
|
+
icon: "mdi-close",
|
|
1502
|
+
variant: "text",
|
|
1503
|
+
onClick: n[1] ||= (e) => E.value = !1
|
|
1504
|
+
}), u("span", Gt, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1505
|
+
_: 1
|
|
1506
|
+
}),
|
|
1507
|
+
u("div", {
|
|
1508
|
+
class: "overflow-y-auto",
|
|
1509
|
+
style: y(x.value)
|
|
1510
|
+
}, [f(Wt, {
|
|
1511
|
+
modelValue: m.value,
|
|
1512
|
+
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1513
|
+
open: A(E),
|
|
1514
|
+
"onUpdate:open": n[3] ||= (e) => g(E) ? E.value = e : null
|
|
1515
|
+
}, null, 8, ["modelValue", "open"]), u("div", { style: y(w.value) }, null, 4)], 4)
|
|
1516
|
+
], 4)], 32)]),
|
|
1517
|
+
_: 1
|
|
1518
|
+
}, 8, ["modelValue"]);
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
1521
|
}), qt = { class: "text-body-large ml-6" }, Jt = /* @__PURE__ */ p({
|
|
@@ -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 = xe(), { 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,59 +1756,21 @@ 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
|
}
|
|
1763
1763
|
});
|
|
1764
1764
|
//#endregion
|
|
1765
|
-
//#region src/composables/uis/uiAdaptSlotSelect.ts
|
|
1766
|
-
function an() {
|
|
1767
|
-
let e = $();
|
|
1768
|
-
return { renderUiAdaptSlotSelect: (t, n, r, i, a) => {
|
|
1769
|
-
if (n.ui !== "selectAdaptSlot") throw Error("renderUiSlotSelect property ui must be selectAdaptSlot");
|
|
1770
|
-
return m(wt, {
|
|
1771
|
-
modelValue: X(t, n, r, i, a, e),
|
|
1772
|
-
"onUpdate:modelValue": (o) => {
|
|
1773
|
-
Z(t, n, r, o, i, a, e);
|
|
1774
|
-
},
|
|
1775
|
-
hasDelete: i !== void 0 && !a,
|
|
1776
|
-
onDelete: () => {
|
|
1777
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1778
|
-
},
|
|
1779
|
-
readonly: n.readonly
|
|
1780
|
-
});
|
|
1781
|
-
} };
|
|
1782
|
-
}
|
|
1783
|
-
//#endregion
|
|
1784
1765
|
//#region src/composables/uis/uiColorPicker.ts
|
|
1785
|
-
function
|
|
1766
|
+
function an() {
|
|
1786
1767
|
let e = $();
|
|
1787
1768
|
return { renderUiColorPicker: (t, n, r, i, a) => {
|
|
1788
1769
|
if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
|
|
1789
|
-
return m(
|
|
1790
|
-
modelValue:
|
|
1791
|
-
"onUpdate:modelValue": (o) => {
|
|
1792
|
-
Z(t, n, r, o, i, a, e);
|
|
1793
|
-
},
|
|
1794
|
-
hasDelete: i !== void 0 && !a,
|
|
1795
|
-
onDelete: () => {
|
|
1796
|
-
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1797
|
-
},
|
|
1798
|
-
readonly: n.readonly
|
|
1799
|
-
});
|
|
1800
|
-
} };
|
|
1801
|
-
}
|
|
1802
|
-
//#endregion
|
|
1803
|
-
//#region src/composables/uis/uiCompSelect.ts
|
|
1804
|
-
function sn() {
|
|
1805
|
-
let e = $();
|
|
1806
|
-
return { renderUiCompSelect: (t, n, r, i, a) => {
|
|
1807
|
-
if (n.ui !== "selectComp") throw Error("renderUiCompSelect property ui must be selectComp");
|
|
1808
|
-
return m(It, {
|
|
1809
|
-
modelValue: X(t, n, r, i, a, e),
|
|
1770
|
+
return m(gt, {
|
|
1771
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1810
1772
|
"onUpdate:modelValue": (o) => {
|
|
1811
|
-
|
|
1773
|
+
J(t, n, r, o, i, a, e);
|
|
1812
1774
|
},
|
|
1813
1775
|
hasDelete: i !== void 0 && !a,
|
|
1814
1776
|
onDelete: () => {
|
|
@@ -1820,23 +1782,23 @@ function sn() {
|
|
|
1820
1782
|
}
|
|
1821
1783
|
//#endregion
|
|
1822
1784
|
//#region src/composables/uis/uiDummy.ts
|
|
1823
|
-
function
|
|
1785
|
+
function on() {
|
|
1824
1786
|
let e = $();
|
|
1825
1787
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1826
1788
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1827
|
-
|
|
1789
|
+
q(t, n, r, i, a, e);
|
|
1828
1790
|
} };
|
|
1829
1791
|
}
|
|
1830
1792
|
//#endregion
|
|
1831
1793
|
//#region src/composables/uis/uiJsonEditor.ts
|
|
1832
|
-
function
|
|
1794
|
+
function sn() {
|
|
1833
1795
|
let e = $();
|
|
1834
1796
|
return { renderUiJsonEditor: (t, n, r, i, a) => {
|
|
1835
1797
|
if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
|
|
1836
|
-
return m(
|
|
1837
|
-
modelValue:
|
|
1798
|
+
return m(yt, {
|
|
1799
|
+
modelValue: q(t, n, r, i, a, e) ?? "{}",
|
|
1838
1800
|
"onUpdate:modelValue": (o) => {
|
|
1839
|
-
|
|
1801
|
+
J(t, n, r, o, i, a, e);
|
|
1840
1802
|
},
|
|
1841
1803
|
hasDelete: i !== void 0 && !a,
|
|
1842
1804
|
onDelete: () => {
|
|
@@ -1848,14 +1810,14 @@ function ln() {
|
|
|
1848
1810
|
}
|
|
1849
1811
|
//#endregion
|
|
1850
1812
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
1851
|
-
function
|
|
1813
|
+
function cn() {
|
|
1852
1814
|
let e = $();
|
|
1853
1815
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
1854
1816
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
1855
|
-
return m(
|
|
1856
|
-
modelValue:
|
|
1817
|
+
return m(St, {
|
|
1818
|
+
modelValue: q(t, n, r, i, a, e) ?? "",
|
|
1857
1819
|
"onUpdate:modelValue": (o) => {
|
|
1858
|
-
|
|
1820
|
+
J(t, n, r, o, i, a, e);
|
|
1859
1821
|
},
|
|
1860
1822
|
hasDelete: i !== void 0 && !a,
|
|
1861
1823
|
onDelete: () => {
|
|
@@ -1867,14 +1829,14 @@ function un() {
|
|
|
1867
1829
|
}
|
|
1868
1830
|
//#endregion
|
|
1869
1831
|
//#region src/composables/uis/uiNumInput.ts
|
|
1870
|
-
function
|
|
1832
|
+
function ln() {
|
|
1871
1833
|
let e = $();
|
|
1872
1834
|
return { renderUiNumInput: (t, n, r, i, a) => {
|
|
1873
1835
|
if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
|
|
1874
|
-
return m(
|
|
1875
|
-
modelValue:
|
|
1836
|
+
return m(wt, {
|
|
1837
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1876
1838
|
"onUpdate:modelValue": (o) => {
|
|
1877
|
-
|
|
1839
|
+
J(t, n, r, o, i, a, e);
|
|
1878
1840
|
},
|
|
1879
1841
|
hasDelete: i !== void 0 && !a,
|
|
1880
1842
|
onDelete: () => {
|
|
@@ -1890,12 +1852,12 @@ function dn() {
|
|
|
1890
1852
|
}
|
|
1891
1853
|
//#endregion
|
|
1892
1854
|
//#region src/components/entry/index.vue
|
|
1893
|
-
var
|
|
1855
|
+
var un = /* @__PURE__ */ p({
|
|
1894
1856
|
__name: "index",
|
|
1895
1857
|
props: { minHeight: {} },
|
|
1896
1858
|
emits: ["menu"],
|
|
1897
1859
|
setup(e, { emit: t }) {
|
|
1898
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1860
|
+
let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
|
|
1899
1861
|
background: a.value ? r.value : n.value,
|
|
1900
1862
|
minHeight: e.minHeight,
|
|
1901
1863
|
paddingRight: "4px",
|
|
@@ -1905,27 +1867,27 @@ var fn = /* @__PURE__ */ p({
|
|
|
1905
1867
|
i("menu", e.clientX, e.clientY);
|
|
1906
1868
|
};
|
|
1907
1869
|
return (e, t) => {
|
|
1908
|
-
let n =
|
|
1909
|
-
return
|
|
1870
|
+
let n = O("ripple");
|
|
1871
|
+
return I((C(), l("div", {
|
|
1910
1872
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1911
1873
|
style: y(s.value),
|
|
1912
|
-
onContextmenu:
|
|
1874
|
+
onContextmenu: R(c, ["self", "prevent"]),
|
|
1913
1875
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
1914
1876
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
1915
|
-
}, [
|
|
1877
|
+
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
1916
1878
|
};
|
|
1917
1879
|
}
|
|
1918
1880
|
});
|
|
1919
1881
|
//#endregion
|
|
1920
1882
|
//#region src/composables/uis/uiProperty.ts
|
|
1921
|
-
function
|
|
1922
|
-
let { t: e } =
|
|
1883
|
+
function dn() {
|
|
1884
|
+
let { t: e } = B(), t = tt();
|
|
1923
1885
|
return { renderProperty: (n, r, i) => {
|
|
1924
1886
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
1925
|
-
return Q(t.value, n) && (o += " *"), m(
|
|
1887
|
+
return Q(t.value, n) && (o += " *"), m(un, {
|
|
1926
1888
|
minHeight: "56px",
|
|
1927
1889
|
onMenu: (e, t) => {
|
|
1928
|
-
|
|
1890
|
+
V.emit("propTreeMenu", {
|
|
1929
1891
|
x: e,
|
|
1930
1892
|
y: t,
|
|
1931
1893
|
keys: n
|
|
@@ -1942,14 +1904,14 @@ function pn() {
|
|
|
1942
1904
|
}
|
|
1943
1905
|
//#endregion
|
|
1944
1906
|
//#region src/composables/uis/uiSelect.ts
|
|
1945
|
-
function
|
|
1907
|
+
function fn() {
|
|
1946
1908
|
let e = $();
|
|
1947
1909
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
1948
1910
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
1949
|
-
return m(
|
|
1950
|
-
modelValue:
|
|
1911
|
+
return m(Et, {
|
|
1912
|
+
modelValue: q(t, n, r, i, a, e) ?? "",
|
|
1951
1913
|
"onUpdate:modelValue": (o) => {
|
|
1952
|
-
|
|
1914
|
+
J(t, n, r, o, i, a, e);
|
|
1953
1915
|
},
|
|
1954
1916
|
hasDelete: i !== void 0 && !a,
|
|
1955
1917
|
onDelete: () => {
|
|
@@ -1961,15 +1923,53 @@ function mn() {
|
|
|
1961
1923
|
} };
|
|
1962
1924
|
}
|
|
1963
1925
|
//#endregion
|
|
1964
|
-
//#region src/composables/uis/
|
|
1926
|
+
//#region src/composables/uis/uiSelectAdaptSlot.ts
|
|
1927
|
+
function pn() {
|
|
1928
|
+
let e = $();
|
|
1929
|
+
return { renderUiSelectAdaptSlot: (t, n, r, i, a) => {
|
|
1930
|
+
if (n.ui !== "selectAdaptSlot") throw Error("useUiSelectAdaptSlot property ui must be selectAdaptSlot");
|
|
1931
|
+
return m(It, {
|
|
1932
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1933
|
+
"onUpdate:modelValue": (o) => {
|
|
1934
|
+
J(t, n, r, o, i, a, e);
|
|
1935
|
+
},
|
|
1936
|
+
hasDelete: i !== void 0 && !a,
|
|
1937
|
+
onDelete: () => {
|
|
1938
|
+
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1939
|
+
},
|
|
1940
|
+
readonly: n.readonly
|
|
1941
|
+
});
|
|
1942
|
+
} };
|
|
1943
|
+
}
|
|
1944
|
+
//#endregion
|
|
1945
|
+
//#region src/composables/uis/uiSelectComp.ts
|
|
1946
|
+
function mn() {
|
|
1947
|
+
let e = $();
|
|
1948
|
+
return { renderUiSelectComp: (t, n, r, i, a) => {
|
|
1949
|
+
if (n.ui !== "selectComp") throw Error("renderUiSelectComp property ui must be selectComp");
|
|
1950
|
+
return m(Kt, {
|
|
1951
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1952
|
+
"onUpdate:modelValue": (o) => {
|
|
1953
|
+
J(t, n, r, o, i, a, e);
|
|
1954
|
+
},
|
|
1955
|
+
hasDelete: i !== void 0 && !a,
|
|
1956
|
+
onDelete: () => {
|
|
1957
|
+
i === void 0 || a || (r.splice(i, 1), e(t.slice(0, -1), r));
|
|
1958
|
+
},
|
|
1959
|
+
readonly: n.readonly
|
|
1960
|
+
});
|
|
1961
|
+
} };
|
|
1962
|
+
}
|
|
1963
|
+
//#endregion
|
|
1964
|
+
//#region src/composables/uis/uiSelectSlot.ts
|
|
1965
1965
|
function hn() {
|
|
1966
1966
|
let e = $();
|
|
1967
|
-
return {
|
|
1968
|
-
if (n.ui !== "selectSlot") throw Error("
|
|
1967
|
+
return { renderUiSelectSlot: (t, n, r, i, a) => {
|
|
1968
|
+
if (n.ui !== "selectSlot") throw Error("renderUiSelectSlot property ui must be selectSlot");
|
|
1969
1969
|
return m($t, {
|
|
1970
|
-
modelValue:
|
|
1970
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1971
1971
|
"onUpdate:modelValue": (o) => {
|
|
1972
|
-
|
|
1972
|
+
J(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 : q(t, n, r, i, a, e),
|
|
1990
1990
|
"onUpdate:modelValue": (o) => {
|
|
1991
|
-
n.static ||
|
|
1991
|
+
n.static || J(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: q(t, n, r, i, a, e) ?? !1,
|
|
2009
2009
|
"onUpdate:modelValue": (o) => {
|
|
2010
|
-
|
|
2010
|
+
J(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 } = dn(), { renderUiDummy: p } = on(), { renderUiStrInput: h } = gn(), { renderUiNumInput: g } = ln(), { renderUiSwitch: _ } = _n(), { renderUiSelect: v } = fn(), { renderUiColorPicker: y } = an(), { renderUiJsonEditor: b } = sn(), { renderUiMultiTypes: x } = cn(), { renderUiSelectComp: S } = mn(), { renderUiSelectSlot: w } = hn(), { renderUiSelectAdaptSlot: T } = pn(), 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
|
+
Y(s, e) && Q(c.value, e) && (l += " *");
|
|
2034
|
+
let d = m(dt, {
|
|
2035
|
+
title: l,
|
|
2036
|
+
collapse: Y(s, e),
|
|
2037
2037
|
hasCreate: !0,
|
|
2038
2038
|
onCollapse: (t) => {
|
|
2039
|
-
|
|
2039
|
+
X(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
|
+
Y(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2056
|
+
let l = m(dt, {
|
|
2057
2057
|
title: a,
|
|
2058
|
-
collapse:
|
|
2058
|
+
collapse: Y(s, [...e, r]),
|
|
2059
2059
|
hasDelete: !0,
|
|
2060
2060
|
index: r,
|
|
2061
2061
|
onCollapse: (t) => {
|
|
2062
|
-
|
|
2062
|
+
X(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
|
+
Y(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), Y(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
|
+
Y(s, e) && Q(c.value, e) && (o += " *");
|
|
2094
|
+
let l = m(dt, {
|
|
2095
2095
|
title: o,
|
|
2096
|
-
collapse:
|
|
2096
|
+
collapse: Y(s, e),
|
|
2097
2097
|
hasDelete: i !== void 0 && !a,
|
|
2098
2098
|
onCollapse: (t) => {
|
|
2099
|
-
|
|
2099
|
+
X(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), Y(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
|
+
Y(s, e) && Q(c.value, e) && (l += " *");
|
|
2125
|
+
let d = m(dt, {
|
|
2126
|
+
title: l,
|
|
2127
|
+
collapse: Y(s, e),
|
|
2128
2128
|
hasCreate: !0,
|
|
2129
2129
|
onCollapse: (t) => {
|
|
2130
|
-
|
|
2130
|
+
X(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), Y(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
|
}
|