x-prop-tree 0.7.24 → 0.7.26
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/components/values/index.d.ts +3 -2
- package/dist/components/values/slotSelect/slotList/index.vue.d.ts +1 -11
- package/dist/composables/slotList/index.d.ts +1 -2
- package/dist/composables/uis/index.d.ts +1 -0
- package/dist/composables/uis/uiAdaptSlotSelect.d.ts +7 -0
- package/dist/i18n-en.gtpxr0k8.js +15 -0
- package/dist/i18n-zhHans.ev8iw0vp.js +15 -0
- package/dist/index.js +1013 -842
- package/dist/utils/provideInject.d.ts +7 -1
- package/package.json +2 -2
- package/dist/components/values/slotSelect/slotList/group.vue.d.ts +0 -13
- package/dist/components/values/slotSelect/slotList/item.vue.d.ts +0 -11
- package/dist/i18n-en.fwi8tazn.js +0 -23
- package/dist/i18n-zhHans.ju37v3iz.js +0 -23
- /package/dist/components/values/adaptSlotSelect/{slotList → adaptSlotList}/group.vue.d.ts +0 -0
- /package/dist/components/values/adaptSlotSelect/{slotList → adaptSlotList}/index.vue.d.ts +0 -0
- /package/dist/components/values/adaptSlotSelect/{slotList → adaptSlotList}/item.vue.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { provide as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useViewStack as
|
|
4
|
-
import { getPropertyDefault as
|
|
5
|
-
import { c as
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
9
|
-
const
|
|
1
|
+
import { provide as re, inject as ae, defineComponent as E, ref as O, computed as A, resolveComponent as V, createBlock as B, openBlock as S, unref as L, isRef as ie, withCtx as q, createVNode as w, createElementBlock as R, Fragment as ve, renderList as Ne, createTextVNode as ge, toDisplayString as H, resolveDirective as te, withDirectives as j, withModifiers as J, normalizeStyle as z, createElementVNode as D, createCommentVNode as Y, onMounted as Oe, onBeforeUnmount as Be, watch as se, useModel as G, useId as Se, onUnmounted as xe, withKeys as Me, mergeProps as Ve, mergeModels as Z, useTemplateRef as Ye, watchEffect as He, h as x, renderSlot as St, reactive as xt } from "vue";
|
|
2
|
+
import { useI18n as ne } from "vue-i18n";
|
|
3
|
+
import { useViewStack as ye, useColor as I, globalObjects as Vt, useSystem as ue, eventBus as me, injectDark as Ct, injectLocale as Ut, openNumberDlg as We, openPromptDlg as $t } from "x-essential-lib";
|
|
4
|
+
import { getPropertyDefault as X, pkgs as qe, getPropertyTag as bt, elements as wt, makeSlotId as Fe, parsePixelStr as Mt, parsePercentStr as Pt } from "x-runtime-lib";
|
|
5
|
+
import { c as Qe, i as Pe, r as pe, d as Ze, v as je } from "./vendor.f0ug048x.js";
|
|
6
|
+
import { globalState as Ke } from "x-state-lib";
|
|
7
|
+
import { useDisplay as Re } from "vuetify";
|
|
8
|
+
import { XBlockly as Lt } from "x-block-lib";
|
|
9
|
+
const ze = (t) => !(t instanceof Array), Te = (t) => t instanceof Array, At = (t, s) => {
|
|
10
10
|
const n = (e, l) => {
|
|
11
11
|
if (e.ui !== l.ui || e.array !== l.array)
|
|
12
12
|
return !1;
|
|
@@ -20,7 +20,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
20
20
|
return !0;
|
|
21
21
|
};
|
|
22
22
|
return n(t, s);
|
|
23
|
-
},
|
|
23
|
+
}, be = (t, s) => {
|
|
24
24
|
let n = {
|
|
25
25
|
key: "",
|
|
26
26
|
name: "",
|
|
@@ -42,7 +42,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
42
42
|
n = n.children.find((l) => l.key === e);
|
|
43
43
|
}
|
|
44
44
|
}), n;
|
|
45
|
-
},
|
|
45
|
+
}, ke = (t, s) => {
|
|
46
46
|
let n = t;
|
|
47
47
|
return s.forEach((e) => {
|
|
48
48
|
if (!n) {
|
|
@@ -51,39 +51,39 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
51
51
|
}
|
|
52
52
|
n = n[e];
|
|
53
53
|
}), n;
|
|
54
|
-
},
|
|
54
|
+
}, ee = (t, s, n, e, l, o) => {
|
|
55
55
|
if (l !== void 0)
|
|
56
56
|
if (o) {
|
|
57
57
|
if (n[s.key] === void 0) {
|
|
58
|
-
const i =
|
|
58
|
+
const i = X(s);
|
|
59
59
|
i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
|
|
60
60
|
}
|
|
61
61
|
return n[s.key];
|
|
62
62
|
} else {
|
|
63
63
|
if (n[l] === void 0) {
|
|
64
|
-
const i =
|
|
64
|
+
const i = X(s, !0);
|
|
65
65
|
i !== void 0 && (n[l] = i, e(t, n[l]));
|
|
66
66
|
}
|
|
67
67
|
return n[l];
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
if (n[s.key] === void 0) {
|
|
71
|
-
const i =
|
|
71
|
+
const i = X(s);
|
|
72
72
|
i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
|
|
73
73
|
}
|
|
74
74
|
return n[s.key];
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, le = (t, s, n, e, l, o, i) => {
|
|
77
77
|
if (o !== void 0)
|
|
78
78
|
i ? e !== n[s.key] && (n[s.key] = e, l(t, n[s.key])) : e !== n[o] && (n[o] = e, l(t, n[o]));
|
|
79
79
|
else {
|
|
80
80
|
let u = e;
|
|
81
81
|
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (u = void 0)), u !== n[s.key] && (n[s.key] = u, l(t, n[s.key]));
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, Ee = (t) => !(t instanceof Array), Le = (t) => t instanceof Array, Dt = [
|
|
84
84
|
["basic", "id"],
|
|
85
85
|
["basic", "name"]
|
|
86
|
-
],
|
|
86
|
+
], Tt = (t) => Dt.find((s) => Pe(t, s)), Ae = (t, s, n, e, l, o, i) => (t = Qe(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Tt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Le(e.children) ? Bt(
|
|
87
87
|
t,
|
|
88
88
|
s,
|
|
89
89
|
n,
|
|
@@ -91,13 +91,13 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
91
91
|
l,
|
|
92
92
|
o,
|
|
93
93
|
i
|
|
94
|
-
) :
|
|
94
|
+
) : qt(
|
|
95
95
|
s,
|
|
96
96
|
n,
|
|
97
97
|
e,
|
|
98
98
|
o,
|
|
99
99
|
i
|
|
100
|
-
) : s.array ?
|
|
100
|
+
) : s.array ? Nt(
|
|
101
101
|
t,
|
|
102
102
|
s,
|
|
103
103
|
n,
|
|
@@ -105,7 +105,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
105
105
|
l,
|
|
106
106
|
o,
|
|
107
107
|
i
|
|
108
|
-
) :
|
|
108
|
+
) : Ot(
|
|
109
109
|
t,
|
|
110
110
|
s,
|
|
111
111
|
n,
|
|
@@ -113,7 +113,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
113
113
|
l,
|
|
114
114
|
o,
|
|
115
115
|
i
|
|
116
|
-
)),
|
|
116
|
+
)), Nt = (t, s, n, e, l, o, i) => {
|
|
117
117
|
if (s.ui)
|
|
118
118
|
return console.assert(!1, "execPropertyBranchArray property ui must be invalid"), !1;
|
|
119
119
|
if (!s.array)
|
|
@@ -121,13 +121,13 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
121
121
|
!1,
|
|
122
122
|
"execPropertyBranchArray property array must be valid"
|
|
123
123
|
), !1;
|
|
124
|
-
if (!e.children || !
|
|
124
|
+
if (!e.children || !Le(e.children))
|
|
125
125
|
return console.assert(
|
|
126
126
|
!1,
|
|
127
127
|
"execPropertyBranchArray state children must be array"
|
|
128
128
|
), !1;
|
|
129
129
|
let u;
|
|
130
|
-
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] =
|
|
130
|
+
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = X(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = X(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
|
|
131
131
|
for (let r = 0; r < u.length; r++) {
|
|
132
132
|
e.children.push({
|
|
133
133
|
change: !1,
|
|
@@ -135,14 +135,14 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
135
135
|
});
|
|
136
136
|
const a = e.children[r];
|
|
137
137
|
s.children.forEach((d) => {
|
|
138
|
-
if (!a.children || !
|
|
138
|
+
if (!a.children || !Ee(a.children)) {
|
|
139
139
|
console.assert(!1);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
a.children[d.key] = {
|
|
143
143
|
change: !1,
|
|
144
144
|
children: d.array ? [] : {}
|
|
145
|
-
},
|
|
145
|
+
}, Ae(
|
|
146
146
|
t,
|
|
147
147
|
d,
|
|
148
148
|
u[r],
|
|
@@ -153,8 +153,8 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
153
153
|
) && (a.change = !0), a.change && (e.change = !0);
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
return e.change || (e.change = !
|
|
157
|
-
},
|
|
156
|
+
return e.change || (e.change = !Pe(u, X(s))), e.change;
|
|
157
|
+
}, Ot = (t, s, n, e, l, o, i) => {
|
|
158
158
|
if (s.ui)
|
|
159
159
|
return console.assert(
|
|
160
160
|
!1,
|
|
@@ -165,7 +165,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
165
165
|
!1,
|
|
166
166
|
"execPropertyBranchScalar property array must be invalid"
|
|
167
167
|
), !1;
|
|
168
|
-
if (!e.children || !
|
|
168
|
+
if (!e.children || !Ee(e.children))
|
|
169
169
|
return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
|
|
170
170
|
let u;
|
|
171
171
|
o !== void 0 && !i ? (n[o] || (n[o] = {}), u = n[o]) : (n[s.key] || (n[s.key] = {}), u = n[s.key]), e.change = !1;
|
|
@@ -174,23 +174,23 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
174
174
|
e.children[a.key] = {
|
|
175
175
|
change: !1,
|
|
176
176
|
children: a.array ? [] : {}
|
|
177
|
-
},
|
|
177
|
+
}, Ae(t, a, u, e.children[a.key], l) && (e.change = !0);
|
|
178
178
|
}
|
|
179
179
|
return e.change;
|
|
180
|
-
},
|
|
180
|
+
}, Bt = (t, s, n, e, l, o, i) => {
|
|
181
181
|
if (!s.ui)
|
|
182
182
|
return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
|
|
183
183
|
if (!s.array)
|
|
184
184
|
return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
|
|
185
|
-
if (!e.children || !
|
|
185
|
+
if (!e.children || !Le(e.children))
|
|
186
186
|
return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
|
|
187
187
|
let u;
|
|
188
|
-
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] =
|
|
188
|
+
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = X(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = X(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
|
|
189
189
|
for (let r = 0; r < u.length; r++)
|
|
190
190
|
e.children[r] = {
|
|
191
191
|
change: !1,
|
|
192
192
|
children: {}
|
|
193
|
-
},
|
|
193
|
+
}, Ae(
|
|
194
194
|
t,
|
|
195
195
|
s,
|
|
196
196
|
u,
|
|
@@ -199,13 +199,13 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
199
199
|
r,
|
|
200
200
|
!1
|
|
201
201
|
) && (e.change = !0);
|
|
202
|
-
return e.change || (e.change = !
|
|
203
|
-
},
|
|
202
|
+
return e.change || (e.change = !Pe(u, X(s))), e.change;
|
|
203
|
+
}, qt = (t, s, n, e, l) => {
|
|
204
204
|
if (!t.ui)
|
|
205
205
|
return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
|
|
206
206
|
let o;
|
|
207
|
-
return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !
|
|
208
|
-
},
|
|
207
|
+
return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !Pe(o, X(t, !0)), n.change;
|
|
208
|
+
}, Ge = (t, s, n, e) => {
|
|
209
209
|
if (s.length <= 0 || !n) {
|
|
210
210
|
t.value = {};
|
|
211
211
|
return;
|
|
@@ -215,9 +215,9 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
215
215
|
l[o.key] = {
|
|
216
216
|
change: !1,
|
|
217
217
|
children: o.array ? [] : {}
|
|
218
|
-
},
|
|
218
|
+
}, Ae([], o, n, l[o.key], e);
|
|
219
219
|
}), t.value = l;
|
|
220
|
-
},
|
|
220
|
+
}, fe = (t, s) => {
|
|
221
221
|
let n = {
|
|
222
222
|
change: !1,
|
|
223
223
|
children: t
|
|
@@ -227,162 +227,168 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
227
227
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
228
228
|
if (!n.children)
|
|
229
229
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
230
|
-
typeof e == "string" ?
|
|
230
|
+
typeof e == "string" ? Ee(n.children) && (n = n.children[e]) : Le(n.children) && (n = n.children[e]);
|
|
231
231
|
}), n?.change ?? !1;
|
|
232
|
-
},
|
|
233
|
-
function
|
|
234
|
-
|
|
232
|
+
}, Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol(), ot = Symbol(), st = Symbol(), it = Symbol();
|
|
233
|
+
function Kt(t) {
|
|
234
|
+
re(Ie, t);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
238
|
-
}
|
|
239
|
-
function qt(t) {
|
|
240
|
-
ae(Ie, t);
|
|
241
|
-
}
|
|
242
|
-
function Kt() {
|
|
243
|
-
return ce(Ie);
|
|
236
|
+
function Je() {
|
|
237
|
+
return ae(Ie);
|
|
244
238
|
}
|
|
245
239
|
function Rt(t) {
|
|
246
|
-
|
|
240
|
+
re(et, t);
|
|
247
241
|
}
|
|
248
242
|
function Et() {
|
|
249
|
-
return
|
|
243
|
+
return ae(et);
|
|
250
244
|
}
|
|
251
245
|
function Jt(t) {
|
|
252
|
-
|
|
246
|
+
re(tt, t);
|
|
253
247
|
}
|
|
254
|
-
function
|
|
255
|
-
return
|
|
248
|
+
function Xt() {
|
|
249
|
+
return ae(tt);
|
|
256
250
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
251
|
+
function Ht(t) {
|
|
252
|
+
re(nt, t);
|
|
259
253
|
}
|
|
260
254
|
function Ft() {
|
|
261
|
-
return
|
|
255
|
+
return ae(nt);
|
|
262
256
|
}
|
|
263
257
|
function zt(t) {
|
|
264
|
-
|
|
258
|
+
re(lt, t);
|
|
259
|
+
}
|
|
260
|
+
function Gt() {
|
|
261
|
+
return ae(lt);
|
|
262
|
+
}
|
|
263
|
+
function Yt(t) {
|
|
264
|
+
re(ot, t);
|
|
265
|
+
}
|
|
266
|
+
function ut() {
|
|
267
|
+
return ae(ot);
|
|
265
268
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
269
|
+
function Wt(t) {
|
|
270
|
+
re(st, t);
|
|
268
271
|
}
|
|
269
|
-
function
|
|
270
|
-
ae(
|
|
272
|
+
function Qt() {
|
|
273
|
+
return ae(st);
|
|
271
274
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
275
|
+
function Zt(t) {
|
|
276
|
+
re(it, t);
|
|
274
277
|
}
|
|
275
|
-
|
|
278
|
+
function rt() {
|
|
279
|
+
return ae(it);
|
|
280
|
+
}
|
|
281
|
+
const jt = /* @__PURE__ */ E({
|
|
276
282
|
__name: "index",
|
|
277
283
|
setup(t) {
|
|
278
|
-
const { t: s } =
|
|
279
|
-
const
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
282
|
-
if (
|
|
283
|
-
const
|
|
284
|
-
if (!
|
|
284
|
+
const { t: s } = ne(), n = Et(), e = Xt(), l = Ft(), o = Gt(), i = O(0), u = O(0), r = O([]), a = A(() => [i.value, u.value]), d = (k) => {
|
|
285
|
+
const $ = () => !(r.value.length <= 0 || !fe(l.value, r.value)), U = () => {
|
|
286
|
+
const g = be(n.value, r.value);
|
|
287
|
+
if (g)
|
|
288
|
+
if (g.ui) {
|
|
289
|
+
const M = ke(e.value, r.value.slice(0, -1));
|
|
290
|
+
if (!M)
|
|
285
291
|
return;
|
|
286
|
-
|
|
287
|
-
} else if (
|
|
288
|
-
const
|
|
289
|
-
if (
|
|
292
|
+
M[r.value[r.value.length - 1]] = X(g), o(r.value, M[r.value[r.value.length - 1]]);
|
|
293
|
+
} else if (g.array) {
|
|
294
|
+
const M = r.value[r.value.length - 1];
|
|
295
|
+
if (M === void 0) {
|
|
290
296
|
console.assert(!1, "invalid last key");
|
|
291
297
|
return;
|
|
292
298
|
}
|
|
293
|
-
if (typeof
|
|
294
|
-
const
|
|
295
|
-
if (!
|
|
299
|
+
if (typeof M == "string") {
|
|
300
|
+
const T = ke(e.value, r.value.slice(0, -1));
|
|
301
|
+
if (!T)
|
|
296
302
|
return;
|
|
297
|
-
|
|
303
|
+
T[r.value[r.value.length - 1]] = X(g), o(r.value, T[r.value[r.value.length - 1]]);
|
|
298
304
|
} else {
|
|
299
|
-
const
|
|
300
|
-
if (!
|
|
305
|
+
const T = ke(e.value, r.value);
|
|
306
|
+
if (!T)
|
|
301
307
|
return;
|
|
302
|
-
|
|
303
|
-
|
|
308
|
+
g.children.forEach((Q) => {
|
|
309
|
+
T[Q.key] = X(g), o([...r.value, Q.key], T[Q.key]);
|
|
304
310
|
});
|
|
305
311
|
}
|
|
306
312
|
} else {
|
|
307
|
-
const
|
|
308
|
-
if (!
|
|
313
|
+
const M = ke(e.value, r.value);
|
|
314
|
+
if (!M)
|
|
309
315
|
return;
|
|
310
|
-
|
|
311
|
-
|
|
316
|
+
g.children.forEach((T) => {
|
|
317
|
+
M[T.key] = X(g), o([...r.value, T.key], M[T.key]);
|
|
312
318
|
});
|
|
313
319
|
}
|
|
314
320
|
};
|
|
315
|
-
|
|
321
|
+
$() && k.push({
|
|
316
322
|
title: s("x-prop-tree.reset"),
|
|
317
|
-
func:
|
|
323
|
+
func: U
|
|
318
324
|
});
|
|
319
|
-
}, c = (
|
|
320
|
-
const
|
|
321
|
-
const
|
|
322
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ property:
|
|
325
|
+
}, c = (k) => {
|
|
326
|
+
const $ = () => {
|
|
327
|
+
const U = be(n.value, r.value), g = ke(e.value, r.value);
|
|
328
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ property: U, object: g }));
|
|
323
329
|
};
|
|
324
|
-
|
|
330
|
+
k.push({
|
|
325
331
|
title: s("x-prop-tree.copy"),
|
|
326
|
-
func:
|
|
332
|
+
func: $
|
|
327
333
|
});
|
|
328
|
-
},
|
|
329
|
-
const
|
|
330
|
-
const
|
|
331
|
-
if (!
|
|
334
|
+
}, m = (k) => {
|
|
335
|
+
const $ = () => {
|
|
336
|
+
const g = localStorage.getItem("propTreeCopy");
|
|
337
|
+
if (!g)
|
|
332
338
|
return !1;
|
|
333
339
|
try {
|
|
334
|
-
const { property:
|
|
335
|
-
if (!
|
|
340
|
+
const { property: M } = JSON.parse(g);
|
|
341
|
+
if (!M)
|
|
336
342
|
return !1;
|
|
337
|
-
const
|
|
338
|
-
return
|
|
339
|
-
} catch (
|
|
340
|
-
console.error(
|
|
343
|
+
const T = be(n.value, r.value);
|
|
344
|
+
return At(M, T);
|
|
345
|
+
} catch (M) {
|
|
346
|
+
console.error(M);
|
|
341
347
|
}
|
|
342
348
|
return !1;
|
|
343
|
-
},
|
|
344
|
-
if (
|
|
349
|
+
}, U = () => {
|
|
350
|
+
if (!$())
|
|
345
351
|
return;
|
|
346
|
-
const
|
|
347
|
-
if (
|
|
352
|
+
const g = localStorage.getItem("propTreeCopy");
|
|
353
|
+
if (g)
|
|
348
354
|
try {
|
|
349
|
-
const { object:
|
|
350
|
-
console.log(
|
|
351
|
-
} catch (
|
|
352
|
-
console.error(
|
|
355
|
+
const { object: M } = JSON.parse(g), T = be(n.value, r.value);
|
|
356
|
+
console.log(M, T);
|
|
357
|
+
} catch (M) {
|
|
358
|
+
console.error(M);
|
|
353
359
|
}
|
|
354
360
|
};
|
|
355
|
-
|
|
361
|
+
$() && k.push({
|
|
356
362
|
title: s("x-prop-tree.paste"),
|
|
357
|
-
func:
|
|
363
|
+
func: U
|
|
358
364
|
});
|
|
359
|
-
},
|
|
360
|
-
const
|
|
361
|
-
return d(
|
|
362
|
-
}),
|
|
363
|
-
i.value =
|
|
364
|
-
}, { open:
|
|
365
|
-
return (
|
|
366
|
-
const
|
|
367
|
-
return
|
|
368
|
-
modelValue:
|
|
369
|
-
"onUpdate:modelValue":
|
|
365
|
+
}, p = A(() => {
|
|
366
|
+
const k = [];
|
|
367
|
+
return d(k), c(k), m(k), k;
|
|
368
|
+
}), v = (k) => {
|
|
369
|
+
i.value = k.x, u.value = k.y, r.value = k.keys;
|
|
370
|
+
}, { open: C } = ye("propTreeMenu", v);
|
|
371
|
+
return (k, $) => {
|
|
372
|
+
const U = V("v-list-item-title"), g = V("v-list-item"), M = V("v-list"), T = V("v-menu");
|
|
373
|
+
return S(), B(T, {
|
|
374
|
+
modelValue: L(C),
|
|
375
|
+
"onUpdate:modelValue": $[0] || ($[0] = (Q) => ie(C) ? C.value = Q : null),
|
|
370
376
|
"location-strategy": "connected",
|
|
371
377
|
scrim: "transparent",
|
|
372
378
|
target: a.value
|
|
373
379
|
}, {
|
|
374
|
-
default:
|
|
375
|
-
|
|
376
|
-
default:
|
|
377
|
-
(
|
|
378
|
-
key:
|
|
380
|
+
default: q(() => [
|
|
381
|
+
w(M, null, {
|
|
382
|
+
default: q(() => [
|
|
383
|
+
(S(!0), R(ve, null, Ne(p.value, (Q, he) => (S(), B(g, {
|
|
384
|
+
key: he,
|
|
379
385
|
link: "",
|
|
380
386
|
onClick: Q.func
|
|
381
387
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
|
|
384
|
-
default:
|
|
385
|
-
|
|
388
|
+
default: q(() => [
|
|
389
|
+
w(U, null, {
|
|
390
|
+
default: q(() => [
|
|
391
|
+
ge(H(Q.title), 1)
|
|
386
392
|
]),
|
|
387
393
|
_: 2
|
|
388
394
|
}, 1024)
|
|
@@ -397,7 +403,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
397
403
|
}, 8, ["modelValue", "target"]);
|
|
398
404
|
};
|
|
399
405
|
}
|
|
400
|
-
}),
|
|
406
|
+
}), It = { style: { pointerEvents: "none" } }, we = /* @__PURE__ */ E({
|
|
401
407
|
__name: "index",
|
|
402
408
|
props: {
|
|
403
409
|
title: {},
|
|
@@ -408,7 +414,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
408
414
|
},
|
|
409
415
|
emits: ["collapse", "menu", "create", "delete"],
|
|
410
416
|
setup(t, { emit: s }) {
|
|
411
|
-
const { backgroundColor2: n, highlightColor: e } =
|
|
417
|
+
const { backgroundColor2: n, highlightColor: e } = I(), l = s, o = O(!1), i = A(() => ({
|
|
412
418
|
background: o.value ? e.value : n.value,
|
|
413
419
|
height: "36px",
|
|
414
420
|
marginBottom: "1px",
|
|
@@ -419,132 +425,132 @@ const Yt = /* @__PURE__ */ E({
|
|
|
419
425
|
l("menu", a.clientX, a.clientY);
|
|
420
426
|
};
|
|
421
427
|
return (a, d) => {
|
|
422
|
-
const c =
|
|
423
|
-
return j((
|
|
428
|
+
const c = V("v-icon"), m = V("v-spacer"), p = V("v-btn"), v = te("ripple");
|
|
429
|
+
return j((S(), R("div", {
|
|
424
430
|
class: "d-flex align-center cursor-pointer",
|
|
425
|
-
style:
|
|
431
|
+
style: z(i.value),
|
|
426
432
|
onClick: u,
|
|
427
|
-
onContextmenu:
|
|
428
|
-
onMouseout: d[2] || (d[2] = (
|
|
429
|
-
onMouseover: d[3] || (d[3] = (
|
|
433
|
+
onContextmenu: J(r, ["self", "prevent"]),
|
|
434
|
+
onMouseout: d[2] || (d[2] = (C) => o.value = !1),
|
|
435
|
+
onMouseover: d[3] || (d[3] = (C) => o.value = !0)
|
|
430
436
|
}, [
|
|
431
|
-
|
|
437
|
+
w(c, {
|
|
432
438
|
class: "mr-1",
|
|
433
439
|
icon: t.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
434
440
|
}, null, 8, ["icon"]),
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
t.hasCreate ? (
|
|
441
|
+
D("span", It, H(t.title), 1),
|
|
442
|
+
w(m),
|
|
443
|
+
t.hasCreate ? (S(), B(p, {
|
|
438
444
|
key: 0,
|
|
439
445
|
class: "mx-3",
|
|
440
446
|
density: "compact",
|
|
441
447
|
icon: "mdi-plus",
|
|
442
448
|
variant: "text",
|
|
443
|
-
onClick: d[0] || (d[0] =
|
|
444
|
-
})) :
|
|
445
|
-
t.hasDelete ? (
|
|
449
|
+
onClick: d[0] || (d[0] = J((C) => l("create"), ["stop"]))
|
|
450
|
+
})) : Y("", !0),
|
|
451
|
+
t.hasDelete ? (S(), B(p, {
|
|
446
452
|
key: 1,
|
|
447
453
|
class: "mx-3",
|
|
448
454
|
density: "compact",
|
|
449
455
|
icon: "mdi-minus",
|
|
450
456
|
variant: "text",
|
|
451
|
-
onClick: d[1] || (d[1] =
|
|
452
|
-
})) :
|
|
457
|
+
onClick: d[1] || (d[1] = J((C) => l("delete", t.index), ["stop"]))
|
|
458
|
+
})) : Y("", !0)
|
|
453
459
|
], 36)), [
|
|
454
|
-
[
|
|
460
|
+
[v]
|
|
455
461
|
]);
|
|
456
462
|
};
|
|
457
463
|
}
|
|
458
464
|
});
|
|
459
|
-
function
|
|
460
|
-
const { i18n: e } =
|
|
461
|
-
|
|
465
|
+
function en(t, s, n) {
|
|
466
|
+
const { i18n: e } = Vt, l = O([]);
|
|
467
|
+
Zt(l);
|
|
462
468
|
const o = () => {
|
|
463
469
|
if (!t.value || !s.value || !n.value)
|
|
464
|
-
return;
|
|
465
|
-
const
|
|
466
|
-
if (!
|
|
467
|
-
console.assert(!1, `invalid version=${t.value}`);
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
c.push({
|
|
474
|
-
id: S.key,
|
|
470
|
+
return [];
|
|
471
|
+
const d = qe[t.value];
|
|
472
|
+
if (!d)
|
|
473
|
+
return console.assert(!1, `invalid version=${t.value}`), [];
|
|
474
|
+
const c = bt(s.value, n.value), m = [];
|
|
475
|
+
for (let k = 0; k < d.groups[c].length; k++) {
|
|
476
|
+
const $ = d.groups[c][k], U = pe(l, $.key);
|
|
477
|
+
m.push({
|
|
478
|
+
id: $.key,
|
|
475
479
|
type: 0,
|
|
476
|
-
name: e.global.t(
|
|
477
|
-
position:
|
|
478
|
-
collapse:
|
|
480
|
+
name: e.global.t($.name),
|
|
481
|
+
position: k,
|
|
482
|
+
collapse: U?.collapse ?? !0,
|
|
479
483
|
count: 0
|
|
480
484
|
});
|
|
481
|
-
let
|
|
482
|
-
for (const
|
|
483
|
-
const
|
|
484
|
-
if (
|
|
485
|
-
for (const
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
id:
|
|
485
|
+
let g = 0;
|
|
486
|
+
for (const M of $.items) {
|
|
487
|
+
const T = wt[M];
|
|
488
|
+
if (T && !T.internal && T.slots)
|
|
489
|
+
for (const Q of T.slots) {
|
|
490
|
+
const he = Fe("elementSlot", T.key, Q.key), De = `${e.global.t(T.name)} / ${e.global.t(Q.name)}`;
|
|
491
|
+
m.push({
|
|
492
|
+
id: he,
|
|
489
493
|
type: 1,
|
|
490
|
-
name:
|
|
491
|
-
position:
|
|
492
|
-
group:
|
|
494
|
+
name: De,
|
|
495
|
+
position: g++,
|
|
496
|
+
group: $.key
|
|
493
497
|
});
|
|
494
498
|
}
|
|
495
499
|
}
|
|
496
500
|
}
|
|
497
|
-
const { activeApp:
|
|
498
|
-
for (const { id:
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
id:
|
|
501
|
+
const { activeApp: p, depends: v } = Ke.app;
|
|
502
|
+
for (const { id: k, name: $, position: U } of p.compGroups) {
|
|
503
|
+
const g = pe(l, k);
|
|
504
|
+
m.push({
|
|
505
|
+
id: k,
|
|
502
506
|
type: 0,
|
|
503
|
-
name:
|
|
504
|
-
position:
|
|
505
|
-
collapse:
|
|
507
|
+
name: $,
|
|
508
|
+
position: U,
|
|
509
|
+
collapse: g?.collapse ?? !0
|
|
506
510
|
});
|
|
507
511
|
}
|
|
508
512
|
let C = 0;
|
|
509
|
-
for (const
|
|
510
|
-
const
|
|
511
|
-
if (
|
|
512
|
-
for (const
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
id:
|
|
513
|
+
for (const k of p.comps) {
|
|
514
|
+
const $ = v[k.id];
|
|
515
|
+
if ($ && $.meta.slots)
|
|
516
|
+
for (const U of $.meta.slots) {
|
|
517
|
+
const g = Fe("customSlot", k.id, U.id), M = `${k.name} / ${U.name}`;
|
|
518
|
+
m.push({
|
|
519
|
+
id: g,
|
|
516
520
|
type: 1,
|
|
517
|
-
name:
|
|
521
|
+
name: M,
|
|
518
522
|
position: C++,
|
|
519
|
-
group:
|
|
523
|
+
group: k.groupId
|
|
520
524
|
});
|
|
521
525
|
}
|
|
522
526
|
}
|
|
523
|
-
|
|
527
|
+
return Ze(m, !0), m;
|
|
528
|
+
}, i = () => {
|
|
529
|
+
l.value = o();
|
|
524
530
|
};
|
|
525
|
-
let
|
|
526
|
-
const
|
|
527
|
-
clearTimeout(
|
|
528
|
-
|
|
531
|
+
let u;
|
|
532
|
+
const r = () => {
|
|
533
|
+
clearTimeout(u), u = window.setTimeout(() => {
|
|
534
|
+
i(), u && r();
|
|
529
535
|
}, 1e3);
|
|
530
|
-
},
|
|
531
|
-
clearTimeout(
|
|
536
|
+
}, a = () => {
|
|
537
|
+
clearTimeout(u), u = void 0;
|
|
532
538
|
};
|
|
533
|
-
|
|
534
|
-
u();
|
|
535
|
-
}), Xe(() => {
|
|
539
|
+
Oe(() => {
|
|
536
540
|
r();
|
|
537
|
-
}),
|
|
538
|
-
|
|
541
|
+
}), Be(() => {
|
|
542
|
+
a();
|
|
543
|
+
}), se([t, s, n], () => {
|
|
544
|
+
i(), r();
|
|
539
545
|
});
|
|
540
546
|
}
|
|
541
|
-
function
|
|
542
|
-
const t =
|
|
543
|
-
|
|
547
|
+
function tn() {
|
|
548
|
+
const t = O([]);
|
|
549
|
+
Yt(t);
|
|
544
550
|
const s = () => {
|
|
545
|
-
const { activeApp: o, depends: i } =
|
|
551
|
+
const { activeApp: o, depends: i } = Ke.app, u = [];
|
|
546
552
|
for (const { id: r, name: a, position: d } of o.compGroups) {
|
|
547
|
-
const c = t.value.find((
|
|
553
|
+
const c = t.value.find((m) => m.id === r);
|
|
548
554
|
u.push({
|
|
549
555
|
id: r,
|
|
550
556
|
type: 0,
|
|
@@ -555,7 +561,7 @@ function Zt() {
|
|
|
555
561
|
}
|
|
556
562
|
for (const { id: r, groupId: a, name: d, position: c } of o.comps)
|
|
557
563
|
i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
|
|
558
|
-
|
|
564
|
+
Ze(u, !0), t.value = u;
|
|
559
565
|
};
|
|
560
566
|
let n;
|
|
561
567
|
const e = () => {
|
|
@@ -565,13 +571,251 @@ function Zt() {
|
|
|
565
571
|
}, l = () => {
|
|
566
572
|
clearTimeout(n), n = void 0;
|
|
567
573
|
};
|
|
568
|
-
|
|
574
|
+
Oe(() => {
|
|
569
575
|
e();
|
|
570
|
-
}),
|
|
576
|
+
}), Be(() => {
|
|
577
|
+
l();
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
function nn() {
|
|
581
|
+
const t = O([]);
|
|
582
|
+
Wt(t);
|
|
583
|
+
const s = () => {
|
|
584
|
+
const { activeObject: i, activeComp: u } = Ke.app;
|
|
585
|
+
if (i.type !== "comp")
|
|
586
|
+
return [];
|
|
587
|
+
if (!u.meta.slots)
|
|
588
|
+
return [];
|
|
589
|
+
const r = [];
|
|
590
|
+
for (const { id: a, name: d } of u.meta.slots)
|
|
591
|
+
r.push({ id: a, name: d });
|
|
592
|
+
return r;
|
|
593
|
+
}, n = () => {
|
|
594
|
+
t.value = s();
|
|
595
|
+
};
|
|
596
|
+
let e;
|
|
597
|
+
const l = () => {
|
|
598
|
+
clearTimeout(e), e = window.setTimeout(() => {
|
|
599
|
+
n(), e && l();
|
|
600
|
+
}, 1e3);
|
|
601
|
+
}, o = () => {
|
|
602
|
+
clearTimeout(e), e = void 0;
|
|
603
|
+
};
|
|
604
|
+
Oe(() => {
|
|
571
605
|
l();
|
|
606
|
+
}), Be(() => {
|
|
607
|
+
o();
|
|
572
608
|
});
|
|
573
609
|
}
|
|
574
|
-
const
|
|
610
|
+
const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-grey ml-1" }, sn = /* @__PURE__ */ E({
|
|
611
|
+
__name: "group",
|
|
612
|
+
props: {
|
|
613
|
+
id: {},
|
|
614
|
+
title: {},
|
|
615
|
+
collapse: { type: Boolean },
|
|
616
|
+
count: {}
|
|
617
|
+
},
|
|
618
|
+
emits: ["x-click"],
|
|
619
|
+
setup(t, { emit: s }) {
|
|
620
|
+
const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
|
|
621
|
+
background: i.value ? e.value : n.value,
|
|
622
|
+
height: "30px",
|
|
623
|
+
marginBottom: "1px",
|
|
624
|
+
userSelect: "none"
|
|
625
|
+
}));
|
|
626
|
+
return (r, a) => {
|
|
627
|
+
const d = V("v-icon"), c = te("ripple");
|
|
628
|
+
return j((S(), R("div", {
|
|
629
|
+
class: "d-flex align-center cursor-pointer",
|
|
630
|
+
style: z(u.value),
|
|
631
|
+
onClick: a[0] || (a[0] = (m) => o("x-click", l.id)),
|
|
632
|
+
onMouseout: a[1] || (a[1] = (m) => i.value = !1),
|
|
633
|
+
onMouseover: a[2] || (a[2] = (m) => i.value = !0)
|
|
634
|
+
}, [
|
|
635
|
+
w(d, {
|
|
636
|
+
icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
637
|
+
size: "small"
|
|
638
|
+
}, null, 8, ["icon"]),
|
|
639
|
+
D("span", ln, H(l.title), 1),
|
|
640
|
+
D("span", on, H(l.count), 1)
|
|
641
|
+
], 36)), [
|
|
642
|
+
[c]
|
|
643
|
+
]);
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
}), un = { class: "text-subtitle-1 ml-6" }, rn = /* @__PURE__ */ E({
|
|
647
|
+
__name: "item",
|
|
648
|
+
props: {
|
|
649
|
+
id: {},
|
|
650
|
+
title: {}
|
|
651
|
+
},
|
|
652
|
+
emits: ["x-click"],
|
|
653
|
+
setup(t, { emit: s }) {
|
|
654
|
+
const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
|
|
655
|
+
background: i.value ? e.value : n.value,
|
|
656
|
+
height: "48px",
|
|
657
|
+
marginBottom: "1px",
|
|
658
|
+
userSelect: "none"
|
|
659
|
+
}));
|
|
660
|
+
return (r, a) => {
|
|
661
|
+
const d = te("ripple");
|
|
662
|
+
return j((S(), R("div", {
|
|
663
|
+
class: "d-flex align-center cursor-pointer",
|
|
664
|
+
style: z(u.value),
|
|
665
|
+
onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
|
|
666
|
+
onMouseout: a[1] || (a[1] = (c) => i.value = !1),
|
|
667
|
+
onMouseover: a[2] || (a[2] = (c) => i.value = !0)
|
|
668
|
+
}, [
|
|
669
|
+
D("span", un, H(l.title), 1)
|
|
670
|
+
], 36)), [
|
|
671
|
+
[d]
|
|
672
|
+
]);
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
}), an = { key: 0 }, cn = {
|
|
676
|
+
key: 1,
|
|
677
|
+
class: "text-body-2 text-grey ml-3"
|
|
678
|
+
}, dn = /* @__PURE__ */ E({
|
|
679
|
+
__name: "index",
|
|
680
|
+
props: {
|
|
681
|
+
modelValue: {},
|
|
682
|
+
modelModifiers: {},
|
|
683
|
+
open: { type: Boolean, required: !0 },
|
|
684
|
+
openModifiers: {}
|
|
685
|
+
},
|
|
686
|
+
emits: ["update:modelValue", "update:open"],
|
|
687
|
+
setup(t) {
|
|
688
|
+
const { nameList: s } = ue(), n = G(t, "modelValue"), e = G(t, "open"), l = rt(), o = (u) => {
|
|
689
|
+
const r = pe(l, u);
|
|
690
|
+
r && je(l, u, !r.collapse);
|
|
691
|
+
}, i = (u) => {
|
|
692
|
+
n.value = u, e.value = !1;
|
|
693
|
+
};
|
|
694
|
+
return (u, r) => L(l).length > 0 ? (S(), R("div", an, [
|
|
695
|
+
(S(!0), R(ve, null, Ne(L(l), (a) => (S(), R(ve, {
|
|
696
|
+
key: a.id
|
|
697
|
+
}, [
|
|
698
|
+
a.type === 0 ? (S(), B(sn, {
|
|
699
|
+
key: 0,
|
|
700
|
+
id: a.id,
|
|
701
|
+
collapse: a.collapse,
|
|
702
|
+
count: a.count ?? 0,
|
|
703
|
+
title: a.name,
|
|
704
|
+
onXClick: o
|
|
705
|
+
}, null, 8, ["id", "collapse", "count", "title"])) : Y("", !0),
|
|
706
|
+
a.type === 1 && a.show ? (S(), B(rn, {
|
|
707
|
+
key: 1,
|
|
708
|
+
id: a.id,
|
|
709
|
+
title: a.name,
|
|
710
|
+
onXClick: i
|
|
711
|
+
}, null, 8, ["id", "title"])) : Y("", !0)
|
|
712
|
+
], 64))), 128))
|
|
713
|
+
])) : (S(), R("div", cn, H(L(s)(["no", "slot"])), 1));
|
|
714
|
+
}
|
|
715
|
+
}), mn = { class: "text-subtitle-1 ml-3" }, fn = /* @__PURE__ */ E({
|
|
716
|
+
__name: "index",
|
|
717
|
+
props: {
|
|
718
|
+
modelValue: {},
|
|
719
|
+
modelModifiers: {}
|
|
720
|
+
},
|
|
721
|
+
emits: ["update:modelValue"],
|
|
722
|
+
setup(t) {
|
|
723
|
+
const { t: s } = ne(), n = Re(), { sysBarAvail: e } = ue(), { backgroundColor1: l } = I(), o = G(t, "modelValue"), i = rt(), u = A(() => {
|
|
724
|
+
let m = "100%";
|
|
725
|
+
return n.mdAndUp.value && (m = "400px"), {
|
|
726
|
+
background: l.value,
|
|
727
|
+
width: m,
|
|
728
|
+
height: "100%"
|
|
729
|
+
};
|
|
730
|
+
}), r = A(() => {
|
|
731
|
+
let m = 48;
|
|
732
|
+
return e.value && (m += 24), {
|
|
733
|
+
position: "relative",
|
|
734
|
+
height: `calc(100% - ${m}px)`
|
|
735
|
+
};
|
|
736
|
+
}), a = A(() => ({
|
|
737
|
+
height: "60px"
|
|
738
|
+
})), d = A(() => {
|
|
739
|
+
if (!o.value)
|
|
740
|
+
return s("x-runtime-lib.notSet");
|
|
741
|
+
const m = pe(i, o.value);
|
|
742
|
+
return m ? m.name : s("x-runtime-lib.slotNotAvail");
|
|
743
|
+
}), { open: c } = ye(`propTreeSlotSelectDlg${Se()}`);
|
|
744
|
+
return xe(() => {
|
|
745
|
+
c.value = !1;
|
|
746
|
+
}), (m, p) => {
|
|
747
|
+
const v = V("v-btn"), C = V("v-sheet"), k = V("v-icon"), $ = V("v-dialog");
|
|
748
|
+
return S(), B($, {
|
|
749
|
+
modelValue: L(c),
|
|
750
|
+
"onUpdate:modelValue": p[5] || (p[5] = (U) => ie(c) ? c.value = U : null),
|
|
751
|
+
fullscreen: "",
|
|
752
|
+
"no-click-animation": "",
|
|
753
|
+
persistent: "",
|
|
754
|
+
transition: "scroll-x-reverse-transition",
|
|
755
|
+
onKeydown: p[6] || (p[6] = Me(J((U) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
756
|
+
}, {
|
|
757
|
+
activator: q(({ props: U }) => [
|
|
758
|
+
w(v, Ve(U, {
|
|
759
|
+
block: "",
|
|
760
|
+
density: "comfortable"
|
|
761
|
+
}), {
|
|
762
|
+
default: q(() => [
|
|
763
|
+
ge(H(d.value), 1)
|
|
764
|
+
]),
|
|
765
|
+
_: 1
|
|
766
|
+
}, 16)
|
|
767
|
+
]),
|
|
768
|
+
default: q(() => [
|
|
769
|
+
D("div", {
|
|
770
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
771
|
+
onClick: p[3] || (p[3] = J((U) => c.value = !1, ["self"])),
|
|
772
|
+
onContextmenu: p[4] || (p[4] = J((U) => c.value = !1, ["self", "prevent"]))
|
|
773
|
+
}, [
|
|
774
|
+
D("div", {
|
|
775
|
+
class: "elevation-2",
|
|
776
|
+
style: z(u.value)
|
|
777
|
+
}, [
|
|
778
|
+
L(e) ? (S(), B(C, {
|
|
779
|
+
key: 0,
|
|
780
|
+
color: "transparent",
|
|
781
|
+
height: 24
|
|
782
|
+
})) : Y("", !0),
|
|
783
|
+
w(C, {
|
|
784
|
+
class: "d-flex align-center px-3",
|
|
785
|
+
color: "transparent",
|
|
786
|
+
height: 48
|
|
787
|
+
}, {
|
|
788
|
+
default: q(() => [
|
|
789
|
+
w(k, {
|
|
790
|
+
icon: "mdi-close",
|
|
791
|
+
onClick: p[0] || (p[0] = (U) => c.value = !1)
|
|
792
|
+
}),
|
|
793
|
+
D("span", mn, H(L(s)("x-prop-tree.dlg.adaptSlotSelect.title")), 1)
|
|
794
|
+
]),
|
|
795
|
+
_: 1
|
|
796
|
+
}),
|
|
797
|
+
D("div", {
|
|
798
|
+
class: "overflow-y-auto",
|
|
799
|
+
style: z(r.value)
|
|
800
|
+
}, [
|
|
801
|
+
w(dn, {
|
|
802
|
+
modelValue: o.value,
|
|
803
|
+
"onUpdate:modelValue": p[1] || (p[1] = (U) => o.value = U),
|
|
804
|
+
open: L(c),
|
|
805
|
+
"onUpdate:open": p[2] || (p[2] = (U) => ie(c) ? c.value = U : null)
|
|
806
|
+
}, null, 8, ["modelValue", "open"]),
|
|
807
|
+
D("div", {
|
|
808
|
+
style: z(a.value)
|
|
809
|
+
}, null, 4)
|
|
810
|
+
], 4)
|
|
811
|
+
], 4)
|
|
812
|
+
], 32)
|
|
813
|
+
]),
|
|
814
|
+
_: 1
|
|
815
|
+
}, 8, ["modelValue"]);
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
}), vn = { class: "d-flex justify-space-between align-center" }, pn = /* @__PURE__ */ E({
|
|
575
819
|
__name: "index",
|
|
576
820
|
props: /* @__PURE__ */ Z({
|
|
577
821
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -582,54 +826,54 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
582
826
|
}),
|
|
583
827
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
584
828
|
setup(t, { emit: s }) {
|
|
585
|
-
const { t: n } =
|
|
829
|
+
const { t: n } = ne(), e = G(t, "modelValue"), l = s, o = A(() => {
|
|
586
830
|
let r = "100%";
|
|
587
831
|
return t.hasDelete && (r = "calc(100% - 37px)"), {
|
|
588
832
|
width: r
|
|
589
833
|
};
|
|
590
|
-
}), i =
|
|
591
|
-
return
|
|
834
|
+
}), i = A(() => t.readonly), { open: u } = ye(`propTreeColorPickerMenu${Se()}`);
|
|
835
|
+
return xe(() => {
|
|
592
836
|
u.value = !1;
|
|
593
837
|
}), (r, a) => {
|
|
594
|
-
const d =
|
|
595
|
-
return
|
|
596
|
-
modelValue:
|
|
597
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
838
|
+
const d = V("v-btn"), c = V("v-color-picker"), m = V("v-menu");
|
|
839
|
+
return S(), B(m, {
|
|
840
|
+
modelValue: L(u),
|
|
841
|
+
"onUpdate:modelValue": a[2] || (a[2] = (p) => ie(u) ? u.value = p : null),
|
|
598
842
|
"close-on-content-click": !1,
|
|
599
843
|
scrim: "transparent"
|
|
600
844
|
}, {
|
|
601
|
-
activator:
|
|
602
|
-
|
|
603
|
-
|
|
845
|
+
activator: q(({ props: p }) => [
|
|
846
|
+
D("div", vn, [
|
|
847
|
+
D("div", {
|
|
604
848
|
class: "flex-grow-1",
|
|
605
|
-
style:
|
|
849
|
+
style: z(o.value)
|
|
606
850
|
}, [
|
|
607
|
-
|
|
851
|
+
w(d, Ve(p, {
|
|
608
852
|
block: "",
|
|
609
853
|
color: e.value,
|
|
610
854
|
density: "comfortable",
|
|
611
855
|
disabled: i.value
|
|
612
856
|
}), {
|
|
613
|
-
default:
|
|
614
|
-
|
|
857
|
+
default: q(() => [
|
|
858
|
+
ge(H(e.value ? e.value : L(n)("x-runtime-lib.notSet")), 1)
|
|
615
859
|
]),
|
|
616
860
|
_: 1
|
|
617
861
|
}, 16, ["color", "disabled"])
|
|
618
862
|
], 4),
|
|
619
|
-
t.hasDelete ? (
|
|
863
|
+
t.hasDelete ? (S(), B(d, {
|
|
620
864
|
key: 0,
|
|
621
865
|
class: "mx-2",
|
|
622
866
|
density: "compact",
|
|
623
867
|
icon: "mdi-minus",
|
|
624
868
|
variant: "text",
|
|
625
|
-
onClick: a[0] || (a[0] =
|
|
626
|
-
})) :
|
|
869
|
+
onClick: a[0] || (a[0] = J((v) => l("delete"), ["stop"]))
|
|
870
|
+
})) : Y("", !0)
|
|
627
871
|
])
|
|
628
872
|
]),
|
|
629
|
-
default:
|
|
630
|
-
|
|
873
|
+
default: q(() => [
|
|
874
|
+
w(c, {
|
|
631
875
|
modelValue: e.value,
|
|
632
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
876
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => e.value = p),
|
|
633
877
|
mode: "hexa",
|
|
634
878
|
"show-swatches": "",
|
|
635
879
|
"swatches-max-height": "150px"
|
|
@@ -639,7 +883,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
639
883
|
}, 8, ["modelValue"]);
|
|
640
884
|
};
|
|
641
885
|
}
|
|
642
|
-
}),
|
|
886
|
+
}), gn = { class: "text-subtitle-2 ml-1" }, yn = { class: "text-caption text-grey ml-1" }, hn = /* @__PURE__ */ E({
|
|
643
887
|
__name: "group",
|
|
644
888
|
props: {
|
|
645
889
|
id: {},
|
|
@@ -649,33 +893,33 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
649
893
|
},
|
|
650
894
|
emits: ["x-click"],
|
|
651
895
|
setup(t, { emit: s }) {
|
|
652
|
-
const { backgroundColor2: n, highlightColor: e } =
|
|
896
|
+
const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
|
|
653
897
|
background: i.value ? e.value : n.value,
|
|
654
898
|
height: "30px",
|
|
655
899
|
marginBottom: "1px",
|
|
656
900
|
userSelect: "none"
|
|
657
901
|
}));
|
|
658
902
|
return (r, a) => {
|
|
659
|
-
const d =
|
|
660
|
-
return j((
|
|
903
|
+
const d = V("v-icon"), c = te("ripple");
|
|
904
|
+
return j((S(), R("div", {
|
|
661
905
|
class: "d-flex align-center cursor-pointer",
|
|
662
|
-
style:
|
|
663
|
-
onClick: a[0] || (a[0] = (
|
|
664
|
-
onMouseout: a[1] || (a[1] = (
|
|
665
|
-
onMouseover: a[2] || (a[2] = (
|
|
906
|
+
style: z(u.value),
|
|
907
|
+
onClick: a[0] || (a[0] = (m) => o("x-click", l.id)),
|
|
908
|
+
onMouseout: a[1] || (a[1] = (m) => i.value = !1),
|
|
909
|
+
onMouseover: a[2] || (a[2] = (m) => i.value = !0)
|
|
666
910
|
}, [
|
|
667
|
-
|
|
911
|
+
w(d, {
|
|
668
912
|
icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
669
913
|
size: "small"
|
|
670
914
|
}, null, 8, ["icon"]),
|
|
671
|
-
|
|
672
|
-
|
|
915
|
+
D("span", gn, H(l.title), 1),
|
|
916
|
+
D("span", yn, H(l.count), 1)
|
|
673
917
|
], 36)), [
|
|
674
918
|
[c]
|
|
675
919
|
]);
|
|
676
920
|
};
|
|
677
921
|
}
|
|
678
|
-
}),
|
|
922
|
+
}), _n = { class: "text-subtitle-1 ml-6" }, kn = /* @__PURE__ */ E({
|
|
679
923
|
__name: "item",
|
|
680
924
|
props: {
|
|
681
925
|
id: {},
|
|
@@ -683,31 +927,31 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
683
927
|
},
|
|
684
928
|
emits: ["x-click"],
|
|
685
929
|
setup(t, { emit: s }) {
|
|
686
|
-
const { backgroundColor2: n, highlightColor: e } =
|
|
930
|
+
const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
|
|
687
931
|
background: i.value ? e.value : n.value,
|
|
688
932
|
height: "48px",
|
|
689
933
|
marginBottom: "1px",
|
|
690
934
|
userSelect: "none"
|
|
691
935
|
}));
|
|
692
936
|
return (r, a) => {
|
|
693
|
-
const d =
|
|
694
|
-
return j((
|
|
937
|
+
const d = te("ripple");
|
|
938
|
+
return j((S(), R("div", {
|
|
695
939
|
class: "d-flex align-center cursor-pointer",
|
|
696
|
-
style:
|
|
940
|
+
style: z(u.value),
|
|
697
941
|
onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
|
|
698
942
|
onMouseout: a[1] || (a[1] = (c) => i.value = !1),
|
|
699
943
|
onMouseover: a[2] || (a[2] = (c) => i.value = !0)
|
|
700
944
|
}, [
|
|
701
|
-
|
|
945
|
+
D("span", _n, H(l.title), 1)
|
|
702
946
|
], 36)), [
|
|
703
947
|
[d]
|
|
704
948
|
]);
|
|
705
949
|
};
|
|
706
950
|
}
|
|
707
|
-
}),
|
|
951
|
+
}), Sn = { key: 0 }, xn = {
|
|
708
952
|
key: 1,
|
|
709
953
|
class: "text-body-2 text-grey ml-3"
|
|
710
|
-
},
|
|
954
|
+
}, Vn = /* @__PURE__ */ E({
|
|
711
955
|
__name: "index",
|
|
712
956
|
props: {
|
|
713
957
|
modelValue: {},
|
|
@@ -717,34 +961,34 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
717
961
|
},
|
|
718
962
|
emits: ["update:modelValue", "update:open"],
|
|
719
963
|
setup(t) {
|
|
720
|
-
const {
|
|
721
|
-
const r =
|
|
722
|
-
r &&
|
|
964
|
+
const { nameList: s } = ue(), n = G(t, "modelValue"), e = G(t, "open"), l = ut(), o = (u) => {
|
|
965
|
+
const r = pe(l, u);
|
|
966
|
+
r && je(l, u, !r.collapse);
|
|
723
967
|
}, i = (u) => {
|
|
724
|
-
n.value = u, e.value = !1,
|
|
968
|
+
n.value = u, e.value = !1, me.emit("refreshDepends");
|
|
725
969
|
};
|
|
726
|
-
return (u, r) =>
|
|
727
|
-
(
|
|
970
|
+
return (u, r) => L(l).length > 0 ? (S(), R("div", Sn, [
|
|
971
|
+
(S(!0), R(ve, null, Ne(L(l), (a) => (S(), R(ve, {
|
|
728
972
|
key: a.id
|
|
729
973
|
}, [
|
|
730
|
-
a.type === 0 ? (
|
|
974
|
+
a.type === 0 ? (S(), B(hn, {
|
|
731
975
|
key: 0,
|
|
732
976
|
id: a.id,
|
|
733
977
|
collapse: a.collapse,
|
|
734
978
|
count: a.count ?? 0,
|
|
735
979
|
title: a.name,
|
|
736
980
|
onXClick: o
|
|
737
|
-
}, null, 8, ["id", "collapse", "count", "title"])) :
|
|
738
|
-
a.type === 1 && a.show ? (
|
|
981
|
+
}, null, 8, ["id", "collapse", "count", "title"])) : Y("", !0),
|
|
982
|
+
a.type === 1 && a.show ? (S(), B(kn, {
|
|
739
983
|
key: 1,
|
|
740
984
|
id: a.id,
|
|
741
985
|
title: a.name,
|
|
742
986
|
onXClick: i
|
|
743
|
-
}, null, 8, ["id", "title"])) :
|
|
987
|
+
}, null, 8, ["id", "title"])) : Y("", !0)
|
|
744
988
|
], 64))), 128))
|
|
745
|
-
])) : (
|
|
989
|
+
])) : (S(), R("div", xn, H(L(s)(["no", "comp"])), 1));
|
|
746
990
|
}
|
|
747
|
-
}),
|
|
991
|
+
}), Cn = { class: "text-subtitle-1 ml-3" }, Un = /* @__PURE__ */ E({
|
|
748
992
|
__name: "index",
|
|
749
993
|
props: {
|
|
750
994
|
modelValue: {},
|
|
@@ -752,92 +996,92 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
752
996
|
},
|
|
753
997
|
emits: ["update:modelValue"],
|
|
754
998
|
setup(t) {
|
|
755
|
-
const { t: s } =
|
|
756
|
-
let
|
|
757
|
-
return n.mdAndUp.value && (
|
|
758
|
-
background:
|
|
759
|
-
width:
|
|
999
|
+
const { t: s } = ne(), n = Re(), { sysBarAvail: e, nameList: l } = ue(), { backgroundColor1: o } = I(), i = G(t, "modelValue"), u = ut(), r = A(() => {
|
|
1000
|
+
let p = "100%";
|
|
1001
|
+
return n.mdAndUp.value && (p = "400px"), {
|
|
1002
|
+
background: o.value,
|
|
1003
|
+
width: p,
|
|
760
1004
|
height: "100%"
|
|
761
1005
|
};
|
|
762
|
-
}),
|
|
763
|
-
let
|
|
764
|
-
return e.value && (
|
|
1006
|
+
}), a = A(() => {
|
|
1007
|
+
let p = 48;
|
|
1008
|
+
return e.value && (p += 24), {
|
|
765
1009
|
position: "relative",
|
|
766
|
-
height: `calc(100% - ${
|
|
1010
|
+
height: `calc(100% - ${p}px)`
|
|
767
1011
|
};
|
|
768
|
-
}),
|
|
1012
|
+
}), d = A(() => ({
|
|
769
1013
|
height: "60px"
|
|
770
|
-
})),
|
|
771
|
-
if (!
|
|
1014
|
+
})), c = A(() => {
|
|
1015
|
+
if (!i.value)
|
|
772
1016
|
return s("x-runtime-lib.notSet");
|
|
773
|
-
const
|
|
774
|
-
return
|
|
775
|
-
}), { open:
|
|
776
|
-
return
|
|
777
|
-
|
|
778
|
-
}), (
|
|
779
|
-
const C =
|
|
780
|
-
return
|
|
781
|
-
modelValue:
|
|
782
|
-
"onUpdate:modelValue": v[5] || (v[5] = (
|
|
1017
|
+
const p = pe(u, i.value);
|
|
1018
|
+
return p ? p.name : s("x-runtime-lib.compNotAvail");
|
|
1019
|
+
}), { open: m } = ye(`propTreeCompSelectDlg${Se()}`);
|
|
1020
|
+
return xe(() => {
|
|
1021
|
+
m.value = !1;
|
|
1022
|
+
}), (p, v) => {
|
|
1023
|
+
const C = V("v-btn"), k = V("v-sheet"), $ = V("v-icon"), U = V("v-dialog");
|
|
1024
|
+
return S(), B(U, {
|
|
1025
|
+
modelValue: L(m),
|
|
1026
|
+
"onUpdate:modelValue": v[5] || (v[5] = (g) => ie(m) ? m.value = g : null),
|
|
783
1027
|
fullscreen: "",
|
|
784
1028
|
"no-click-animation": "",
|
|
785
1029
|
persistent: "",
|
|
786
1030
|
transition: "scroll-x-reverse-transition",
|
|
787
|
-
onKeydown: v[6] || (v[6] =
|
|
1031
|
+
onKeydown: v[6] || (v[6] = Me(J((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
788
1032
|
}, {
|
|
789
|
-
activator:
|
|
790
|
-
|
|
1033
|
+
activator: q(({ props: g }) => [
|
|
1034
|
+
w(C, Ve(g, {
|
|
791
1035
|
block: "",
|
|
792
1036
|
density: "comfortable"
|
|
793
1037
|
}), {
|
|
794
|
-
default:
|
|
795
|
-
|
|
1038
|
+
default: q(() => [
|
|
1039
|
+
ge(H(c.value), 1)
|
|
796
1040
|
]),
|
|
797
1041
|
_: 1
|
|
798
1042
|
}, 16)
|
|
799
1043
|
]),
|
|
800
|
-
default:
|
|
801
|
-
|
|
1044
|
+
default: q(() => [
|
|
1045
|
+
D("div", {
|
|
802
1046
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
803
|
-
onClick: v[3] || (v[3] =
|
|
804
|
-
onContextmenu: v[4] || (v[4] =
|
|
1047
|
+
onClick: v[3] || (v[3] = J((g) => m.value = !1, ["self"])),
|
|
1048
|
+
onContextmenu: v[4] || (v[4] = J((g) => m.value = !1, ["self", "prevent"]))
|
|
805
1049
|
}, [
|
|
806
|
-
|
|
1050
|
+
D("div", {
|
|
807
1051
|
class: "elevation-2",
|
|
808
|
-
style:
|
|
1052
|
+
style: z(r.value)
|
|
809
1053
|
}, [
|
|
810
|
-
|
|
1054
|
+
L(e) ? (S(), B(k, {
|
|
811
1055
|
key: 0,
|
|
812
1056
|
color: "transparent",
|
|
813
1057
|
height: 24
|
|
814
|
-
})) :
|
|
815
|
-
|
|
1058
|
+
})) : Y("", !0),
|
|
1059
|
+
w(k, {
|
|
816
1060
|
class: "d-flex align-center px-3",
|
|
817
1061
|
color: "transparent",
|
|
818
1062
|
height: 48
|
|
819
1063
|
}, {
|
|
820
|
-
default:
|
|
821
|
-
|
|
1064
|
+
default: q(() => [
|
|
1065
|
+
w($, {
|
|
822
1066
|
icon: "mdi-close",
|
|
823
|
-
onClick: v[0] || (v[0] = (
|
|
1067
|
+
onClick: v[0] || (v[0] = (g) => m.value = !1)
|
|
824
1068
|
}),
|
|
825
|
-
|
|
1069
|
+
D("span", Cn, H(L(l)(["select", "comp"])), 1)
|
|
826
1070
|
]),
|
|
827
1071
|
_: 1
|
|
828
1072
|
}),
|
|
829
|
-
|
|
1073
|
+
D("div", {
|
|
830
1074
|
class: "overflow-y-auto",
|
|
831
|
-
style:
|
|
1075
|
+
style: z(a.value)
|
|
832
1076
|
}, [
|
|
833
|
-
|
|
834
|
-
modelValue:
|
|
835
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
836
|
-
open:
|
|
837
|
-
"onUpdate:open": v[2] || (v[2] = (
|
|
1077
|
+
w(Vn, {
|
|
1078
|
+
modelValue: i.value,
|
|
1079
|
+
"onUpdate:modelValue": v[1] || (v[1] = (g) => i.value = g),
|
|
1080
|
+
open: L(m),
|
|
1081
|
+
"onUpdate:open": v[2] || (v[2] = (g) => ie(m) ? m.value = g : null)
|
|
838
1082
|
}, null, 8, ["modelValue", "open"]),
|
|
839
|
-
|
|
840
|
-
style:
|
|
1083
|
+
D("div", {
|
|
1084
|
+
style: z(d.value)
|
|
841
1085
|
}, null, 4)
|
|
842
1086
|
], 4)
|
|
843
1087
|
], 4)
|
|
@@ -847,7 +1091,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
847
1091
|
}, 8, ["modelValue"]);
|
|
848
1092
|
};
|
|
849
1093
|
}
|
|
850
|
-
}),
|
|
1094
|
+
}), $n = /* @__PURE__ */ E({
|
|
851
1095
|
__name: "editor",
|
|
852
1096
|
props: {
|
|
853
1097
|
modelValue: { required: !0 },
|
|
@@ -859,28 +1103,28 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
859
1103
|
},
|
|
860
1104
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
861
1105
|
setup(t, { expose: s }) {
|
|
862
|
-
const n =
|
|
1106
|
+
const n = G(t, "modelValue"), e = G(t, "lock"), l = G(t, "scale"), o = Ct(), i = Ut(), u = Je(), r = Ye("target"), a = () => {
|
|
863
1107
|
const c = JSON.parse(n.value);
|
|
864
1108
|
r.value?.load(c);
|
|
865
1109
|
};
|
|
866
1110
|
return s({ save: () => {
|
|
867
1111
|
const c = r.value.save();
|
|
868
1112
|
n.value = JSON.stringify(c, null, 2);
|
|
869
|
-
} }), (c,
|
|
1113
|
+
} }), (c, m) => (S(), B(L(Lt), {
|
|
870
1114
|
ref_key: "target",
|
|
871
1115
|
ref: r,
|
|
872
1116
|
lock: e.value,
|
|
873
|
-
"onUpdate:lock":
|
|
1117
|
+
"onUpdate:lock": m[0] || (m[0] = (p) => e.value = p),
|
|
874
1118
|
scale: l.value,
|
|
875
|
-
"onUpdate:scale":
|
|
876
|
-
dark:
|
|
877
|
-
locale:
|
|
1119
|
+
"onUpdate:scale": m[1] || (m[1] = (p) => l.value = p),
|
|
1120
|
+
dark: L(o),
|
|
1121
|
+
locale: L(i),
|
|
878
1122
|
type: "json",
|
|
879
|
-
version:
|
|
1123
|
+
version: L(u),
|
|
880
1124
|
onReady: a
|
|
881
1125
|
}, null, 8, ["lock", "scale", "dark", "locale", "version"]));
|
|
882
1126
|
}
|
|
883
|
-
}),
|
|
1127
|
+
}), bn = { class: "text-subtitle-1" }, wn = /* @__PURE__ */ E({
|
|
884
1128
|
__name: "index",
|
|
885
1129
|
props: {
|
|
886
1130
|
modelValue: { required: !0 },
|
|
@@ -888,84 +1132,84 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
888
1132
|
},
|
|
889
1133
|
emits: ["update:modelValue"],
|
|
890
1134
|
setup(t) {
|
|
891
|
-
const { t: s } =
|
|
892
|
-
let
|
|
893
|
-
return n.value && (
|
|
1135
|
+
const { t: s } = ne(), { sysBarAvail: n } = ue(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = I(), i = G(t, "modelValue"), u = O(!1), r = O(1), a = A(() => {
|
|
1136
|
+
let p = 48;
|
|
1137
|
+
return n.value && (p += 24), {
|
|
894
1138
|
position: "relative",
|
|
895
1139
|
background: l.value,
|
|
896
|
-
height: `calc(100% - ${
|
|
1140
|
+
height: `calc(100% - ${p}px)`
|
|
897
1141
|
};
|
|
898
|
-
}), d =
|
|
899
|
-
|
|
1142
|
+
}), d = A(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = ye(`propTreejsonEditorDlg${Se()}`);
|
|
1143
|
+
xe(() => {
|
|
900
1144
|
c.value = !1;
|
|
901
1145
|
});
|
|
902
|
-
const
|
|
903
|
-
return
|
|
904
|
-
|
|
905
|
-
}), (
|
|
906
|
-
const
|
|
907
|
-
return
|
|
908
|
-
modelValue:
|
|
909
|
-
"onUpdate:modelValue":
|
|
1146
|
+
const m = Ye("editor");
|
|
1147
|
+
return se(c, (p) => {
|
|
1148
|
+
p || m.value?.save();
|
|
1149
|
+
}), (p, v) => {
|
|
1150
|
+
const C = V("v-btn"), k = V("v-sheet"), $ = V("v-spacer"), U = V("v-dialog");
|
|
1151
|
+
return S(), B(U, {
|
|
1152
|
+
modelValue: L(c),
|
|
1153
|
+
"onUpdate:modelValue": v[4] || (v[4] = (g) => ie(c) ? c.value = g : null),
|
|
910
1154
|
attach: "",
|
|
911
1155
|
fullscreen: "",
|
|
912
1156
|
"no-click-animation": "",
|
|
913
1157
|
persistent: "",
|
|
914
1158
|
transition: "dialog-bottom-transition",
|
|
915
|
-
onKeydown:
|
|
1159
|
+
onKeydown: v[5] || (v[5] = Me(J((g) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
916
1160
|
}, {
|
|
917
|
-
activator:
|
|
918
|
-
|
|
1161
|
+
activator: q(({ props: g }) => [
|
|
1162
|
+
w(C, Ve(g, {
|
|
919
1163
|
block: "",
|
|
920
1164
|
density: "comfortable"
|
|
921
1165
|
}), {
|
|
922
|
-
default:
|
|
923
|
-
|
|
1166
|
+
default: q(() => [
|
|
1167
|
+
ge(H(d.value), 1)
|
|
924
1168
|
]),
|
|
925
1169
|
_: 1
|
|
926
1170
|
}, 16)
|
|
927
1171
|
]),
|
|
928
|
-
default:
|
|
929
|
-
|
|
930
|
-
color:
|
|
1172
|
+
default: q(() => [
|
|
1173
|
+
w(k, {
|
|
1174
|
+
color: L(e),
|
|
931
1175
|
height: "100%",
|
|
932
1176
|
width: "100%"
|
|
933
1177
|
}, {
|
|
934
|
-
default:
|
|
935
|
-
|
|
1178
|
+
default: q(() => [
|
|
1179
|
+
L(n) ? (S(), B(k, {
|
|
936
1180
|
key: 0,
|
|
937
|
-
color:
|
|
1181
|
+
color: L(o),
|
|
938
1182
|
height: 24
|
|
939
|
-
}, null, 8, ["color"])) :
|
|
940
|
-
|
|
1183
|
+
}, null, 8, ["color"])) : Y("", !0),
|
|
1184
|
+
w(k, {
|
|
941
1185
|
class: "d-flex align-center px-2",
|
|
942
|
-
color:
|
|
1186
|
+
color: L(o),
|
|
943
1187
|
height: 48
|
|
944
1188
|
}, {
|
|
945
|
-
default:
|
|
946
|
-
|
|
1189
|
+
default: q(() => [
|
|
1190
|
+
w(C, {
|
|
947
1191
|
density: "comfortable",
|
|
948
1192
|
icon: "mdi-close",
|
|
949
1193
|
variant: "text",
|
|
950
|
-
onClick:
|
|
1194
|
+
onClick: v[0] || (v[0] = (g) => c.value = !1)
|
|
951
1195
|
}),
|
|
952
|
-
|
|
953
|
-
|
|
1196
|
+
D("span", bn, H(L(s)("x-prop-tree.jsonEditor")), 1),
|
|
1197
|
+
w($)
|
|
954
1198
|
]),
|
|
955
1199
|
_: 1
|
|
956
1200
|
}, 8, ["color"]),
|
|
957
|
-
|
|
958
|
-
style:
|
|
1201
|
+
D("div", {
|
|
1202
|
+
style: z(a.value)
|
|
959
1203
|
}, [
|
|
960
|
-
|
|
1204
|
+
w($n, {
|
|
961
1205
|
ref_key: "editor",
|
|
962
|
-
ref:
|
|
1206
|
+
ref: m,
|
|
963
1207
|
modelValue: i.value,
|
|
964
|
-
"onUpdate:modelValue":
|
|
1208
|
+
"onUpdate:modelValue": v[1] || (v[1] = (g) => i.value = g),
|
|
965
1209
|
lock: u.value,
|
|
966
|
-
"onUpdate:lock":
|
|
1210
|
+
"onUpdate:lock": v[2] || (v[2] = (g) => u.value = g),
|
|
967
1211
|
scale: r.value,
|
|
968
|
-
"onUpdate:scale":
|
|
1212
|
+
"onUpdate:scale": v[3] || (v[3] = (g) => r.value = g)
|
|
969
1213
|
}, null, 8, ["modelValue", "lock", "scale"])
|
|
970
1214
|
], 4)
|
|
971
1215
|
]),
|
|
@@ -976,7 +1220,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
976
1220
|
}, 8, ["modelValue"]);
|
|
977
1221
|
};
|
|
978
1222
|
}
|
|
979
|
-
}),
|
|
1223
|
+
}), Mn = { class: "d-flex justify-space-between align-center my-2" }, Pn = { class: "flex-grow-1" }, Ln = /* @__PURE__ */ E({
|
|
980
1224
|
__name: "index",
|
|
981
1225
|
props: /* @__PURE__ */ Z({
|
|
982
1226
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -987,45 +1231,45 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
987
1231
|
}),
|
|
988
1232
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
989
1233
|
setup(t, { emit: s }) {
|
|
990
|
-
const { t: n } =
|
|
991
|
-
const
|
|
992
|
-
return u.value?.forEach(({ title:
|
|
993
|
-
|
|
994
|
-
title: n(
|
|
995
|
-
value:
|
|
1234
|
+
const { t: n } = ne(), { isMobile: e } = ue(), l = G(t, "modelValue"), o = s, i = Je(), u = A(() => qe[i.value].types[t.types]), r = O(0), a = A(() => {
|
|
1235
|
+
const v = [];
|
|
1236
|
+
return u.value?.forEach(({ title: C }, k) => {
|
|
1237
|
+
v.push({
|
|
1238
|
+
title: n(C),
|
|
1239
|
+
value: k
|
|
996
1240
|
});
|
|
997
|
-
}),
|
|
1241
|
+
}), v;
|
|
998
1242
|
});
|
|
999
|
-
|
|
1000
|
-
u.value?.some((
|
|
1243
|
+
He(() => {
|
|
1244
|
+
u.value?.some((v, C) => v.validator(l.value) ? (r.value = C, !0) : !1);
|
|
1001
1245
|
});
|
|
1002
|
-
const d =
|
|
1246
|
+
const d = A(() => u.value?.[r.value]), c = () => {
|
|
1003
1247
|
l.value = d.value?.default;
|
|
1004
|
-
},
|
|
1005
|
-
if (!
|
|
1248
|
+
}, m = O(0), p = async (v) => {
|
|
1249
|
+
if (!v || !e() || d.value.ui !== "pixelInput" && d.value.ui !== "percentInput")
|
|
1006
1250
|
return;
|
|
1007
|
-
const
|
|
1251
|
+
const C = await We({
|
|
1008
1252
|
title: "",
|
|
1009
|
-
value:
|
|
1253
|
+
value: m.value,
|
|
1010
1254
|
precision: d.value.precision,
|
|
1011
1255
|
min: d.value.min,
|
|
1012
1256
|
max: d.value.max,
|
|
1013
1257
|
step: d.value.step
|
|
1014
1258
|
});
|
|
1015
|
-
|
|
1259
|
+
C !== void 0 && (m.value = C);
|
|
1016
1260
|
};
|
|
1017
|
-
return
|
|
1018
|
-
d.value?.ui === "pixelInput" ?
|
|
1019
|
-
}),
|
|
1020
|
-
d.value?.ui === "pixelInput" ? l.value =
|
|
1021
|
-
}), (
|
|
1022
|
-
const
|
|
1023
|
-
return
|
|
1024
|
-
|
|
1025
|
-
j(
|
|
1261
|
+
return He(() => {
|
|
1262
|
+
d.value?.ui === "pixelInput" ? m.value = Mt(l.value) : d.value?.ui === "percentInput" && (m.value = Pt(l.value));
|
|
1263
|
+
}), se(m, (v) => {
|
|
1264
|
+
d.value?.ui === "pixelInput" ? l.value = v + "px" : d.value?.ui === "percentInput" && (l.value = v + "%");
|
|
1265
|
+
}), (v, C) => {
|
|
1266
|
+
const k = V("v-select"), $ = V("v-number-input"), U = V("v-btn"), g = te("ripple");
|
|
1267
|
+
return S(), R("div", Mn, [
|
|
1268
|
+
D("div", Pn, [
|
|
1269
|
+
j(w(k, {
|
|
1026
1270
|
modelValue: r.value,
|
|
1027
1271
|
"onUpdate:modelValue": [
|
|
1028
|
-
|
|
1272
|
+
C[0] || (C[0] = (M) => r.value = M),
|
|
1029
1273
|
c
|
|
1030
1274
|
],
|
|
1031
1275
|
density: "compact",
|
|
@@ -1034,16 +1278,16 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1034
1278
|
"single-line": ""
|
|
1035
1279
|
}, null, 8, ["modelValue", "items"]), [
|
|
1036
1280
|
[
|
|
1037
|
-
|
|
1281
|
+
g,
|
|
1038
1282
|
void 0,
|
|
1039
1283
|
void 0,
|
|
1040
1284
|
{ stop: !0 }
|
|
1041
1285
|
]
|
|
1042
1286
|
]),
|
|
1043
|
-
d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? j((
|
|
1287
|
+
d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? j((S(), B($, {
|
|
1044
1288
|
key: 0,
|
|
1045
|
-
modelValue:
|
|
1046
|
-
"onUpdate:modelValue":
|
|
1289
|
+
modelValue: m.value,
|
|
1290
|
+
"onUpdate:modelValue": C[1] || (C[1] = (M) => m.value = M),
|
|
1047
1291
|
"control-variant": "stacked",
|
|
1048
1292
|
density: "compact",
|
|
1049
1293
|
"hide-details": "",
|
|
@@ -1052,28 +1296,28 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1052
1296
|
precision: d.value.precision,
|
|
1053
1297
|
"single-line": "",
|
|
1054
1298
|
step: d.value.step,
|
|
1055
|
-
"onUpdate:focused":
|
|
1299
|
+
"onUpdate:focused": p
|
|
1056
1300
|
}, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
|
|
1057
1301
|
[
|
|
1058
|
-
|
|
1302
|
+
g,
|
|
1059
1303
|
void 0,
|
|
1060
1304
|
void 0,
|
|
1061
1305
|
{ stop: !0 }
|
|
1062
1306
|
]
|
|
1063
|
-
]) :
|
|
1307
|
+
]) : Y("", !0)
|
|
1064
1308
|
]),
|
|
1065
|
-
t.hasDelete ? (
|
|
1309
|
+
t.hasDelete ? (S(), B(U, {
|
|
1066
1310
|
key: 0,
|
|
1067
1311
|
class: "mx-2",
|
|
1068
1312
|
density: "compact",
|
|
1069
1313
|
icon: "mdi-minus",
|
|
1070
1314
|
variant: "text",
|
|
1071
|
-
onClick:
|
|
1072
|
-
})) :
|
|
1315
|
+
onClick: C[2] || (C[2] = J((M) => o("delete"), ["stop"]))
|
|
1316
|
+
})) : Y("", !0)
|
|
1073
1317
|
]);
|
|
1074
1318
|
};
|
|
1075
1319
|
}
|
|
1076
|
-
}),
|
|
1320
|
+
}), An = { class: "d-flex justify-space-between align-center" }, Dn = /* @__PURE__ */ E({
|
|
1077
1321
|
__name: "index",
|
|
1078
1322
|
props: /* @__PURE__ */ Z({
|
|
1079
1323
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1089,10 +1333,10 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1089
1333
|
}),
|
|
1090
1334
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
1091
1335
|
setup(t, { emit: s }) {
|
|
1092
|
-
const { isMobile: n } =
|
|
1336
|
+
const { isMobile: n } = ue(), e = G(t, "modelValue"), l = s, o = async (i) => {
|
|
1093
1337
|
if (!i || t.readonly || !n())
|
|
1094
1338
|
return;
|
|
1095
|
-
const u = await
|
|
1339
|
+
const u = await We({
|
|
1096
1340
|
title: "",
|
|
1097
1341
|
value: e.value,
|
|
1098
1342
|
precision: t.precision,
|
|
@@ -1103,9 +1347,9 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1103
1347
|
u !== void 0 && (e.value = u);
|
|
1104
1348
|
};
|
|
1105
1349
|
return (i, u) => {
|
|
1106
|
-
const r =
|
|
1107
|
-
return
|
|
1108
|
-
j(
|
|
1350
|
+
const r = V("v-number-input"), a = V("v-btn"), d = te("ripple");
|
|
1351
|
+
return S(), R("div", An, [
|
|
1352
|
+
j(w(r, {
|
|
1109
1353
|
modelValue: e.value,
|
|
1110
1354
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
1111
1355
|
"control-variant": "stacked",
|
|
@@ -1126,18 +1370,18 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1126
1370
|
{ stop: !0 }
|
|
1127
1371
|
]
|
|
1128
1372
|
]),
|
|
1129
|
-
t.hasDelete ? (
|
|
1373
|
+
t.hasDelete ? (S(), B(a, {
|
|
1130
1374
|
key: 0,
|
|
1131
1375
|
class: "mx-2",
|
|
1132
1376
|
density: "compact",
|
|
1133
1377
|
icon: "mdi-minus",
|
|
1134
1378
|
variant: "text",
|
|
1135
|
-
onClick: u[1] || (u[1] =
|
|
1136
|
-
})) :
|
|
1379
|
+
onClick: u[1] || (u[1] = J((c) => l("delete"), ["stop"]))
|
|
1380
|
+
})) : Y("", !0)
|
|
1137
1381
|
]);
|
|
1138
1382
|
};
|
|
1139
1383
|
}
|
|
1140
|
-
}),
|
|
1384
|
+
}), Tn = { class: "d-flex justify-space-between align-center" }, Nn = /* @__PURE__ */ E({
|
|
1141
1385
|
__name: "index",
|
|
1142
1386
|
props: /* @__PURE__ */ Z({
|
|
1143
1387
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1149,18 +1393,18 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1149
1393
|
}),
|
|
1150
1394
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
1151
1395
|
setup(t, { emit: s }) {
|
|
1152
|
-
const { t: n } =
|
|
1396
|
+
const { t: n } = ne(), e = G(t, "modelValue"), l = s, o = Je(), i = A(() => {
|
|
1153
1397
|
const u = [];
|
|
1154
|
-
return
|
|
1398
|
+
return qe[o.value].items[t.items].forEach(({ title: a, value: d }) => {
|
|
1155
1399
|
u.push({ title: n(a), value: d });
|
|
1156
1400
|
}), u;
|
|
1157
1401
|
});
|
|
1158
1402
|
return (u, r) => {
|
|
1159
|
-
const a =
|
|
1160
|
-
return
|
|
1161
|
-
j(
|
|
1403
|
+
const a = V("v-select"), d = V("v-btn"), c = te("ripple");
|
|
1404
|
+
return S(), R("div", Tn, [
|
|
1405
|
+
j(w(a, {
|
|
1162
1406
|
modelValue: e.value,
|
|
1163
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1407
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => e.value = m),
|
|
1164
1408
|
density: "compact",
|
|
1165
1409
|
"hide-details": "",
|
|
1166
1410
|
items: i.value,
|
|
@@ -1174,123 +1418,27 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1174
1418
|
{ stop: !0 }
|
|
1175
1419
|
]
|
|
1176
1420
|
]),
|
|
1177
|
-
t.hasDelete ? (
|
|
1421
|
+
t.hasDelete ? (S(), B(d, {
|
|
1178
1422
|
key: 0,
|
|
1179
1423
|
class: "mx-2",
|
|
1180
1424
|
density: "compact",
|
|
1181
1425
|
icon: "mdi-minus",
|
|
1182
1426
|
variant: "text",
|
|
1183
|
-
onClick: r[1] || (r[1] =
|
|
1184
|
-
})) :
|
|
1185
|
-
]);
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
}), xn = { class: "text-subtitle-2 ml-1" }, Sn = { class: "text-caption text-grey ml-1" }, Vn = /* @__PURE__ */ E({
|
|
1189
|
-
__name: "group",
|
|
1190
|
-
props: {
|
|
1191
|
-
id: {},
|
|
1192
|
-
title: {},
|
|
1193
|
-
collapse: { type: Boolean },
|
|
1194
|
-
count: {}
|
|
1195
|
-
},
|
|
1196
|
-
emits: ["x-click"],
|
|
1197
|
-
setup(t, { emit: s }) {
|
|
1198
|
-
const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
|
|
1199
|
-
background: i.value ? e.value : n.value,
|
|
1200
|
-
height: "30px",
|
|
1201
|
-
marginBottom: "1px",
|
|
1202
|
-
userSelect: "none"
|
|
1203
|
-
}));
|
|
1204
|
-
return (r, a) => {
|
|
1205
|
-
const d = $("v-icon"), c = ee("ripple");
|
|
1206
|
-
return j((_(), K("div", {
|
|
1207
|
-
class: "d-flex align-center cursor-pointer",
|
|
1208
|
-
style: W(u.value),
|
|
1209
|
-
onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
|
|
1210
|
-
onMouseout: a[1] || (a[1] = (f) => i.value = !1),
|
|
1211
|
-
onMouseover: a[2] || (a[2] = (f) => i.value = !0)
|
|
1212
|
-
}, [
|
|
1213
|
-
b(d, {
|
|
1214
|
-
icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1215
|
-
size: "small"
|
|
1216
|
-
}, null, 8, ["icon"]),
|
|
1217
|
-
q("span", xn, F(l.title), 1),
|
|
1218
|
-
q("span", Sn, F(l.count), 1)
|
|
1219
|
-
], 36)), [
|
|
1220
|
-
[c]
|
|
1427
|
+
onClick: r[1] || (r[1] = J((m) => l("delete"), ["stop"]))
|
|
1428
|
+
})) : Y("", !0)
|
|
1221
1429
|
]);
|
|
1222
1430
|
};
|
|
1223
1431
|
}
|
|
1224
|
-
}),
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
height: "48px",
|
|
1235
|
-
marginBottom: "1px",
|
|
1236
|
-
userSelect: "none"
|
|
1237
|
-
}));
|
|
1238
|
-
return (r, a) => {
|
|
1239
|
-
const d = ee("ripple");
|
|
1240
|
-
return j((_(), K("div", {
|
|
1241
|
-
class: "d-flex align-center cursor-pointer",
|
|
1242
|
-
style: W(u.value),
|
|
1243
|
-
onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
|
|
1244
|
-
onMouseout: a[1] || (a[1] = (c) => i.value = !1),
|
|
1245
|
-
onMouseover: a[2] || (a[2] = (c) => i.value = !0)
|
|
1246
|
-
}, [
|
|
1247
|
-
q("span", Cn, F(l.title), 1)
|
|
1248
|
-
], 36)), [
|
|
1249
|
-
[d]
|
|
1250
|
-
]);
|
|
1251
|
-
};
|
|
1252
|
-
}
|
|
1253
|
-
}), $n = { key: 0 }, wn = {
|
|
1254
|
-
key: 1,
|
|
1255
|
-
class: "text-body-2 text-grey ml-3"
|
|
1256
|
-
}, Mn = /* @__PURE__ */ E({
|
|
1257
|
-
__name: "index",
|
|
1258
|
-
props: {
|
|
1259
|
-
modelValue: {},
|
|
1260
|
-
modelModifiers: {},
|
|
1261
|
-
open: { type: Boolean, required: !0 },
|
|
1262
|
-
openModifiers: {}
|
|
1263
|
-
},
|
|
1264
|
-
emits: ["update:modelValue", "update:open"],
|
|
1265
|
-
setup(t) {
|
|
1266
|
-
const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = it(), o = (u) => {
|
|
1267
|
-
const r = ve(l, u);
|
|
1268
|
-
r && We(l, u, !r.collapse);
|
|
1269
|
-
}, i = (u) => {
|
|
1270
|
-
n.value = u, e.value = !1;
|
|
1271
|
-
};
|
|
1272
|
-
return (u, r) => P(l).length > 0 ? (_(), K("div", $n, [
|
|
1273
|
-
(_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
|
|
1274
|
-
key: a.id
|
|
1275
|
-
}, [
|
|
1276
|
-
a.type === 0 ? (_(), B(Vn, {
|
|
1277
|
-
key: 0,
|
|
1278
|
-
id: a.id,
|
|
1279
|
-
collapse: a.collapse,
|
|
1280
|
-
count: a.count ?? 0,
|
|
1281
|
-
title: a.name,
|
|
1282
|
-
onXClick: o
|
|
1283
|
-
}, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
|
|
1284
|
-
a.type === 1 && a.show ? (_(), B(Un, {
|
|
1285
|
-
key: 1,
|
|
1286
|
-
id: a.id,
|
|
1287
|
-
title: a.name,
|
|
1288
|
-
onXClick: i
|
|
1289
|
-
}, null, 8, ["id", "title"])) : G("", !0)
|
|
1290
|
-
], 64))), 128))
|
|
1291
|
-
])) : (_(), K("div", wn, F(P(s)("x-prop-tree.noSlot")), 1));
|
|
1292
|
-
}
|
|
1293
|
-
}), bn = { class: "text-subtitle-1 ml-3" }, Pn = /* @__PURE__ */ E({
|
|
1432
|
+
}), On = (t, s) => {
|
|
1433
|
+
const n = t.__vccOpts || t;
|
|
1434
|
+
for (const [e, l] of s)
|
|
1435
|
+
n[e] = l;
|
|
1436
|
+
return n;
|
|
1437
|
+
}, Bn = {};
|
|
1438
|
+
function qn(t, s) {
|
|
1439
|
+
return S(), R("div");
|
|
1440
|
+
}
|
|
1441
|
+
const Kn = /* @__PURE__ */ On(Bn, [["render", qn]]), Rn = { class: "text-subtitle-1 ml-3" }, En = /* @__PURE__ */ E({
|
|
1294
1442
|
__name: "index",
|
|
1295
1443
|
props: {
|
|
1296
1444
|
modelValue: {},
|
|
@@ -1298,92 +1446,92 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1298
1446
|
},
|
|
1299
1447
|
emits: ["update:modelValue"],
|
|
1300
1448
|
setup(t) {
|
|
1301
|
-
const { t: s } =
|
|
1302
|
-
let
|
|
1303
|
-
return n.mdAndUp.value && (
|
|
1304
|
-
background:
|
|
1305
|
-
width:
|
|
1449
|
+
const { t: s } = ne(), n = Re(), { sysBarAvail: e, nameList: l } = ue(), { backgroundColor1: o } = I(), i = G(t, "modelValue"), u = Qt(), r = A(() => {
|
|
1450
|
+
let p = "100%";
|
|
1451
|
+
return n.mdAndUp.value && (p = "400px"), {
|
|
1452
|
+
background: o.value,
|
|
1453
|
+
width: p,
|
|
1306
1454
|
height: "100%"
|
|
1307
1455
|
};
|
|
1308
|
-
}),
|
|
1309
|
-
let
|
|
1310
|
-
return e.value && (
|
|
1456
|
+
}), a = A(() => {
|
|
1457
|
+
let p = 48;
|
|
1458
|
+
return e.value && (p += 24), {
|
|
1311
1459
|
position: "relative",
|
|
1312
|
-
height: `calc(100% - ${
|
|
1460
|
+
height: `calc(100% - ${p}px)`
|
|
1313
1461
|
};
|
|
1314
|
-
}),
|
|
1462
|
+
}), d = A(() => ({
|
|
1315
1463
|
height: "60px"
|
|
1316
|
-
})),
|
|
1317
|
-
if (!
|
|
1464
|
+
})), c = A(() => {
|
|
1465
|
+
if (!i.value)
|
|
1318
1466
|
return s("x-runtime-lib.notSet");
|
|
1319
|
-
const
|
|
1320
|
-
return
|
|
1321
|
-
}), { open:
|
|
1322
|
-
return
|
|
1323
|
-
|
|
1324
|
-
}), (
|
|
1325
|
-
const C =
|
|
1326
|
-
return
|
|
1327
|
-
modelValue:
|
|
1328
|
-
"onUpdate:modelValue": v[5] || (v[5] = (
|
|
1467
|
+
const p = u.value.find((v) => v.id === i.value);
|
|
1468
|
+
return p ? p.name : s("x-runtime-lib.slotNotAvail");
|
|
1469
|
+
}), { open: m } = ye(`propTreeSlotSelectDlg${Se()}`);
|
|
1470
|
+
return xe(() => {
|
|
1471
|
+
m.value = !1;
|
|
1472
|
+
}), (p, v) => {
|
|
1473
|
+
const C = V("v-btn"), k = V("v-sheet"), $ = V("v-icon"), U = V("v-dialog");
|
|
1474
|
+
return S(), B(U, {
|
|
1475
|
+
modelValue: L(m),
|
|
1476
|
+
"onUpdate:modelValue": v[5] || (v[5] = (g) => ie(m) ? m.value = g : null),
|
|
1329
1477
|
fullscreen: "",
|
|
1330
1478
|
"no-click-animation": "",
|
|
1331
1479
|
persistent: "",
|
|
1332
1480
|
transition: "scroll-x-reverse-transition",
|
|
1333
|
-
onKeydown: v[6] || (v[6] =
|
|
1481
|
+
onKeydown: v[6] || (v[6] = Me(J((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1334
1482
|
}, {
|
|
1335
|
-
activator:
|
|
1336
|
-
|
|
1483
|
+
activator: q(({ props: g }) => [
|
|
1484
|
+
w(C, Ve(g, {
|
|
1337
1485
|
block: "",
|
|
1338
1486
|
density: "comfortable"
|
|
1339
1487
|
}), {
|
|
1340
|
-
default:
|
|
1341
|
-
|
|
1488
|
+
default: q(() => [
|
|
1489
|
+
ge(H(c.value), 1)
|
|
1342
1490
|
]),
|
|
1343
1491
|
_: 1
|
|
1344
1492
|
}, 16)
|
|
1345
1493
|
]),
|
|
1346
|
-
default:
|
|
1347
|
-
|
|
1494
|
+
default: q(() => [
|
|
1495
|
+
D("div", {
|
|
1348
1496
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1349
|
-
onClick: v[3] || (v[3] =
|
|
1350
|
-
onContextmenu: v[4] || (v[4] =
|
|
1497
|
+
onClick: v[3] || (v[3] = J((g) => m.value = !1, ["self"])),
|
|
1498
|
+
onContextmenu: v[4] || (v[4] = J((g) => m.value = !1, ["self", "prevent"]))
|
|
1351
1499
|
}, [
|
|
1352
|
-
|
|
1500
|
+
D("div", {
|
|
1353
1501
|
class: "elevation-2",
|
|
1354
|
-
style:
|
|
1502
|
+
style: z(r.value)
|
|
1355
1503
|
}, [
|
|
1356
|
-
|
|
1504
|
+
L(e) ? (S(), B(k, {
|
|
1357
1505
|
key: 0,
|
|
1358
1506
|
color: "transparent",
|
|
1359
1507
|
height: 24
|
|
1360
|
-
})) :
|
|
1361
|
-
|
|
1508
|
+
})) : Y("", !0),
|
|
1509
|
+
w(k, {
|
|
1362
1510
|
class: "d-flex align-center px-3",
|
|
1363
1511
|
color: "transparent",
|
|
1364
1512
|
height: 48
|
|
1365
1513
|
}, {
|
|
1366
|
-
default:
|
|
1367
|
-
|
|
1514
|
+
default: q(() => [
|
|
1515
|
+
w($, {
|
|
1368
1516
|
icon: "mdi-close",
|
|
1369
|
-
onClick: v[0] || (v[0] = (
|
|
1517
|
+
onClick: v[0] || (v[0] = (g) => m.value = !1)
|
|
1370
1518
|
}),
|
|
1371
|
-
|
|
1519
|
+
D("span", Rn, H(L(l)(["select", "slot"])), 1)
|
|
1372
1520
|
]),
|
|
1373
1521
|
_: 1
|
|
1374
1522
|
}),
|
|
1375
|
-
|
|
1523
|
+
D("div", {
|
|
1376
1524
|
class: "overflow-y-auto",
|
|
1377
|
-
style:
|
|
1525
|
+
style: z(a.value)
|
|
1378
1526
|
}, [
|
|
1379
|
-
|
|
1380
|
-
modelValue:
|
|
1381
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
1382
|
-
open:
|
|
1383
|
-
"onUpdate:open": v[2] || (v[2] = (
|
|
1527
|
+
w(Kn, {
|
|
1528
|
+
modelValue: i.value,
|
|
1529
|
+
"onUpdate:modelValue": v[1] || (v[1] = (g) => i.value = g),
|
|
1530
|
+
open: L(m),
|
|
1531
|
+
"onUpdate:open": v[2] || (v[2] = (g) => ie(m) ? m.value = g : null)
|
|
1384
1532
|
}, null, 8, ["modelValue", "open"]),
|
|
1385
|
-
|
|
1386
|
-
style:
|
|
1533
|
+
D("div", {
|
|
1534
|
+
style: z(d.value)
|
|
1387
1535
|
}, null, 4)
|
|
1388
1536
|
], 4)
|
|
1389
1537
|
], 4)
|
|
@@ -1393,7 +1541,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1393
1541
|
}, 8, ["modelValue"]);
|
|
1394
1542
|
};
|
|
1395
1543
|
}
|
|
1396
|
-
}),
|
|
1544
|
+
}), Jn = { class: "d-flex justify-space-between align-center" }, Xn = /* @__PURE__ */ E({
|
|
1397
1545
|
__name: "index",
|
|
1398
1546
|
props: /* @__PURE__ */ Z({
|
|
1399
1547
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1404,19 +1552,19 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1404
1552
|
}),
|
|
1405
1553
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
1406
1554
|
setup(t, { emit: s }) {
|
|
1407
|
-
const { isMobile: n } =
|
|
1555
|
+
const { isMobile: n } = ue(), e = G(t, "modelValue"), l = s, o = async (i) => {
|
|
1408
1556
|
if (!i || t.readonly || !n())
|
|
1409
1557
|
return;
|
|
1410
|
-
const u = await
|
|
1558
|
+
const u = await $t({
|
|
1411
1559
|
title: "",
|
|
1412
1560
|
value: e.value
|
|
1413
1561
|
});
|
|
1414
1562
|
u !== void 0 && (e.value = u);
|
|
1415
1563
|
};
|
|
1416
1564
|
return (i, u) => {
|
|
1417
|
-
const r =
|
|
1418
|
-
return
|
|
1419
|
-
j(
|
|
1565
|
+
const r = V("v-text-field"), a = V("v-btn"), d = te("ripple");
|
|
1566
|
+
return S(), R("div", Jn, [
|
|
1567
|
+
j(w(r, {
|
|
1420
1568
|
modelValue: e.value,
|
|
1421
1569
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
1422
1570
|
density: "compact",
|
|
@@ -1432,18 +1580,18 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1432
1580
|
{ stop: !0 }
|
|
1433
1581
|
]
|
|
1434
1582
|
]),
|
|
1435
|
-
t.hasDelete ? (
|
|
1583
|
+
t.hasDelete ? (S(), B(a, {
|
|
1436
1584
|
key: 0,
|
|
1437
1585
|
class: "mx-2",
|
|
1438
1586
|
density: "compact",
|
|
1439
1587
|
icon: "mdi-minus",
|
|
1440
1588
|
variant: "text",
|
|
1441
|
-
onClick: u[1] || (u[1] =
|
|
1442
|
-
})) :
|
|
1589
|
+
onClick: u[1] || (u[1] = J((c) => l("delete"), ["stop"]))
|
|
1590
|
+
})) : Y("", !0)
|
|
1443
1591
|
]);
|
|
1444
1592
|
};
|
|
1445
1593
|
}
|
|
1446
|
-
}),
|
|
1594
|
+
}), Hn = { class: "d-flex justify-space-between align-center" }, Fn = /* @__PURE__ */ E({
|
|
1447
1595
|
__name: "index",
|
|
1448
1596
|
props: /* @__PURE__ */ Z({
|
|
1449
1597
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1454,11 +1602,11 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1454
1602
|
}),
|
|
1455
1603
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
1456
1604
|
setup(t, { emit: s }) {
|
|
1457
|
-
const n =
|
|
1605
|
+
const n = G(t, "modelValue"), e = s;
|
|
1458
1606
|
return (l, o) => {
|
|
1459
|
-
const i =
|
|
1460
|
-
return
|
|
1461
|
-
|
|
1607
|
+
const i = V("v-switch"), u = V("v-btn");
|
|
1608
|
+
return S(), R("div", Hn, [
|
|
1609
|
+
w(i, {
|
|
1462
1610
|
modelValue: n.value,
|
|
1463
1611
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
|
|
1464
1612
|
class: "ml-1",
|
|
@@ -1467,21 +1615,44 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
|
|
|
1467
1615
|
"hide-details": "",
|
|
1468
1616
|
readonly: t.readonly
|
|
1469
1617
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1470
|
-
t.hasDelete ? (
|
|
1618
|
+
t.hasDelete ? (S(), B(u, {
|
|
1471
1619
|
key: 0,
|
|
1472
1620
|
class: "mx-2",
|
|
1473
1621
|
density: "compact",
|
|
1474
1622
|
icon: "mdi-minus",
|
|
1475
1623
|
variant: "text",
|
|
1476
|
-
onClick: o[1] || (o[1] =
|
|
1477
|
-
})) :
|
|
1624
|
+
onClick: o[1] || (o[1] = J((r) => e("delete"), ["stop"]))
|
|
1625
|
+
})) : Y("", !0)
|
|
1478
1626
|
]);
|
|
1479
1627
|
};
|
|
1480
1628
|
}
|
|
1481
1629
|
});
|
|
1482
|
-
function
|
|
1483
|
-
return {
|
|
1484
|
-
modelValue:
|
|
1630
|
+
function zn(t) {
|
|
1631
|
+
return { renderUiAdaptSlotSelect: (n, e, l, o, i) => e.ui !== "adaptSlotSelect" ? (console.assert(!1), x("div", "renderUiSlotSelect property ui must be adaptSlotSelect")) : x(fn, {
|
|
1632
|
+
modelValue: ee(
|
|
1633
|
+
n,
|
|
1634
|
+
e,
|
|
1635
|
+
l,
|
|
1636
|
+
t,
|
|
1637
|
+
o,
|
|
1638
|
+
i
|
|
1639
|
+
),
|
|
1640
|
+
"onUpdate:modelValue": (u) => {
|
|
1641
|
+
le(
|
|
1642
|
+
n,
|
|
1643
|
+
e,
|
|
1644
|
+
l,
|
|
1645
|
+
u,
|
|
1646
|
+
t,
|
|
1647
|
+
o,
|
|
1648
|
+
i
|
|
1649
|
+
);
|
|
1650
|
+
}
|
|
1651
|
+
}) };
|
|
1652
|
+
}
|
|
1653
|
+
function Gn(t) {
|
|
1654
|
+
return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), x("div", "renderUiColorPicker property ui must be colorPicker")) : x(pn, {
|
|
1655
|
+
modelValue: ee(
|
|
1485
1656
|
n,
|
|
1486
1657
|
e,
|
|
1487
1658
|
l,
|
|
@@ -1490,7 +1661,7 @@ function Nn(t) {
|
|
|
1490
1661
|
i
|
|
1491
1662
|
),
|
|
1492
1663
|
"onUpdate:modelValue": (u) => {
|
|
1493
|
-
|
|
1664
|
+
le(
|
|
1494
1665
|
n,
|
|
1495
1666
|
e,
|
|
1496
1667
|
l,
|
|
@@ -1507,9 +1678,9 @@ function Nn(t) {
|
|
|
1507
1678
|
readonly: e.readonly
|
|
1508
1679
|
}) };
|
|
1509
1680
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1),
|
|
1512
|
-
modelValue:
|
|
1681
|
+
function Yn(t) {
|
|
1682
|
+
return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), x("div", "renderUiCompSelect property ui must be compSelect")) : x(Un, {
|
|
1683
|
+
modelValue: ee(
|
|
1513
1684
|
n,
|
|
1514
1685
|
e,
|
|
1515
1686
|
l,
|
|
@@ -1518,7 +1689,7 @@ function Bn(t) {
|
|
|
1518
1689
|
i
|
|
1519
1690
|
),
|
|
1520
1691
|
"onUpdate:modelValue": (u) => {
|
|
1521
|
-
|
|
1692
|
+
le(
|
|
1522
1693
|
n,
|
|
1523
1694
|
e,
|
|
1524
1695
|
l,
|
|
@@ -1530,18 +1701,18 @@ function Bn(t) {
|
|
|
1530
1701
|
}
|
|
1531
1702
|
}) };
|
|
1532
1703
|
}
|
|
1533
|
-
function
|
|
1704
|
+
function Wn(t) {
|
|
1534
1705
|
return { renderUiDummy: (n, e, l, o, i) => {
|
|
1535
1706
|
if (e.ui !== "dummy") {
|
|
1536
1707
|
console.assert(!1, "renderUiDummy property ui must be dummy");
|
|
1537
1708
|
return;
|
|
1538
1709
|
}
|
|
1539
|
-
|
|
1710
|
+
ee(n, e, l, t, o, i);
|
|
1540
1711
|
} };
|
|
1541
1712
|
}
|
|
1542
|
-
function
|
|
1543
|
-
return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ?
|
|
1544
|
-
modelValue:
|
|
1713
|
+
function Qn(t) {
|
|
1714
|
+
return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? x("div", "renderUijsonEditor property ui must be jsonEditor") : x(wn, {
|
|
1715
|
+
modelValue: ee(
|
|
1545
1716
|
n,
|
|
1546
1717
|
e,
|
|
1547
1718
|
l,
|
|
@@ -1550,7 +1721,7 @@ function qn(t) {
|
|
|
1550
1721
|
i
|
|
1551
1722
|
) ?? "{}",
|
|
1552
1723
|
"onUpdate:modelValue": (u) => {
|
|
1553
|
-
|
|
1724
|
+
le(
|
|
1554
1725
|
n,
|
|
1555
1726
|
e,
|
|
1556
1727
|
l,
|
|
@@ -1562,9 +1733,9 @@ function qn(t) {
|
|
|
1562
1733
|
}
|
|
1563
1734
|
}) };
|
|
1564
1735
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1),
|
|
1567
|
-
modelValue:
|
|
1736
|
+
function Zn(t) {
|
|
1737
|
+
return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), x("div", "renderUiMultiTypes property ui must be multiTypes")) : x(Ln, {
|
|
1738
|
+
modelValue: ee(
|
|
1568
1739
|
n,
|
|
1569
1740
|
e,
|
|
1570
1741
|
l,
|
|
@@ -1573,7 +1744,7 @@ function Kn(t) {
|
|
|
1573
1744
|
i
|
|
1574
1745
|
) ?? "",
|
|
1575
1746
|
"onUpdate:modelValue": (u) => {
|
|
1576
|
-
|
|
1747
|
+
le(
|
|
1577
1748
|
n,
|
|
1578
1749
|
e,
|
|
1579
1750
|
l,
|
|
@@ -1590,9 +1761,9 @@ function Kn(t) {
|
|
|
1590
1761
|
types: e.types
|
|
1591
1762
|
}) };
|
|
1592
1763
|
}
|
|
1593
|
-
function
|
|
1594
|
-
return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1),
|
|
1595
|
-
modelValue:
|
|
1764
|
+
function jn(t) {
|
|
1765
|
+
return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), x("div", "renderUiNumInput property ui must be numInput")) : x(Dn, {
|
|
1766
|
+
modelValue: ee(
|
|
1596
1767
|
n,
|
|
1597
1768
|
e,
|
|
1598
1769
|
l,
|
|
@@ -1601,7 +1772,7 @@ function Rn(t) {
|
|
|
1601
1772
|
i
|
|
1602
1773
|
),
|
|
1603
1774
|
"onUpdate:modelValue": (u) => {
|
|
1604
|
-
|
|
1775
|
+
le(
|
|
1605
1776
|
n,
|
|
1606
1777
|
e,
|
|
1607
1778
|
l,
|
|
@@ -1622,14 +1793,14 @@ function Rn(t) {
|
|
|
1622
1793
|
readonly: e.readonly
|
|
1623
1794
|
}) };
|
|
1624
1795
|
}
|
|
1625
|
-
const
|
|
1796
|
+
const In = /* @__PURE__ */ E({
|
|
1626
1797
|
__name: "index",
|
|
1627
1798
|
props: {
|
|
1628
1799
|
minHeight: {}
|
|
1629
1800
|
},
|
|
1630
1801
|
emits: ["menu"],
|
|
1631
1802
|
setup(t, { emit: s }) {
|
|
1632
|
-
const { backgroundColor2: n, highlightColor: e } =
|
|
1803
|
+
const { backgroundColor2: n, highlightColor: e } = I(), l = s, o = O(!1), i = A(() => ({
|
|
1633
1804
|
background: o.value ? e.value : n.value,
|
|
1634
1805
|
minHeight: t.minHeight,
|
|
1635
1806
|
paddingRight: "4px",
|
|
@@ -1639,47 +1810,47 @@ const En = /* @__PURE__ */ E({
|
|
|
1639
1810
|
l("menu", r.clientX, r.clientY);
|
|
1640
1811
|
};
|
|
1641
1812
|
return (r, a) => {
|
|
1642
|
-
const d =
|
|
1643
|
-
return j((
|
|
1813
|
+
const d = te("ripple");
|
|
1814
|
+
return j((S(), R("div", {
|
|
1644
1815
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1645
|
-
style:
|
|
1646
|
-
onContextmenu:
|
|
1816
|
+
style: z(i.value),
|
|
1817
|
+
onContextmenu: J(u, ["self", "prevent"]),
|
|
1647
1818
|
onMouseout: a[0] || (a[0] = (c) => o.value = !1),
|
|
1648
1819
|
onMouseover: a[1] || (a[1] = (c) => o.value = !0)
|
|
1649
1820
|
}, [
|
|
1650
|
-
|
|
1821
|
+
St(r.$slots, "default")
|
|
1651
1822
|
], 36)), [
|
|
1652
1823
|
[d]
|
|
1653
1824
|
]);
|
|
1654
1825
|
};
|
|
1655
1826
|
}
|
|
1656
1827
|
});
|
|
1657
|
-
function
|
|
1658
|
-
const { t: e } =
|
|
1828
|
+
function el(t, s, n) {
|
|
1829
|
+
const { t: e } = ne();
|
|
1659
1830
|
return { renderProperty: (o, i, u) => {
|
|
1660
1831
|
const r = o[o.length - 1];
|
|
1661
1832
|
let d = typeof r == "number" ? `[${r + 1}]` : e(i.name);
|
|
1662
|
-
return
|
|
1663
|
-
|
|
1833
|
+
return fe(t.value, o) && (d += " *"), x(
|
|
1834
|
+
In,
|
|
1664
1835
|
{
|
|
1665
1836
|
minHeight: s.value,
|
|
1666
|
-
onMenu: (c,
|
|
1667
|
-
|
|
1837
|
+
onMenu: (c, m) => {
|
|
1838
|
+
me.emit("propTreeMenu", { x: c, y: m, keys: o });
|
|
1668
1839
|
}
|
|
1669
1840
|
},
|
|
1670
1841
|
() => [
|
|
1671
|
-
|
|
1842
|
+
x("span", {
|
|
1672
1843
|
style: { marginLeft: "4px", pointerEvents: "none" },
|
|
1673
1844
|
innerHTML: d
|
|
1674
1845
|
}),
|
|
1675
|
-
|
|
1846
|
+
x("div", { style: { width: n.value } }, u)
|
|
1676
1847
|
]
|
|
1677
1848
|
);
|
|
1678
1849
|
} };
|
|
1679
1850
|
}
|
|
1680
|
-
function
|
|
1681
|
-
return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1),
|
|
1682
|
-
modelValue:
|
|
1851
|
+
function tl(t) {
|
|
1852
|
+
return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), x("div", "renderUiSelect property ui must be select")) : x(Nn, {
|
|
1853
|
+
modelValue: ee(
|
|
1683
1854
|
n,
|
|
1684
1855
|
e,
|
|
1685
1856
|
l,
|
|
@@ -1688,7 +1859,7 @@ function Hn(t) {
|
|
|
1688
1859
|
i
|
|
1689
1860
|
) ?? "",
|
|
1690
1861
|
"onUpdate:modelValue": (u) => {
|
|
1691
|
-
|
|
1862
|
+
le(
|
|
1692
1863
|
n,
|
|
1693
1864
|
e,
|
|
1694
1865
|
l,
|
|
@@ -1706,9 +1877,9 @@ function Hn(t) {
|
|
|
1706
1877
|
readonly: e.readonly
|
|
1707
1878
|
}) };
|
|
1708
1879
|
}
|
|
1709
|
-
function
|
|
1710
|
-
return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1),
|
|
1711
|
-
modelValue:
|
|
1880
|
+
function nl(t) {
|
|
1881
|
+
return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), x("div", "renderUiSlotSelect property ui must be slotSelect")) : x(En, {
|
|
1882
|
+
modelValue: ee(
|
|
1712
1883
|
n,
|
|
1713
1884
|
e,
|
|
1714
1885
|
l,
|
|
@@ -1717,7 +1888,7 @@ function Xn(t) {
|
|
|
1717
1888
|
i
|
|
1718
1889
|
),
|
|
1719
1890
|
"onUpdate:modelValue": (u) => {
|
|
1720
|
-
|
|
1891
|
+
le(
|
|
1721
1892
|
n,
|
|
1722
1893
|
e,
|
|
1723
1894
|
l,
|
|
@@ -1729,9 +1900,9 @@ function Xn(t) {
|
|
|
1729
1900
|
}
|
|
1730
1901
|
}) };
|
|
1731
1902
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1),
|
|
1734
|
-
modelValue: e.static ? e.value :
|
|
1903
|
+
function ll(t) {
|
|
1904
|
+
return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), x("div", "renderUiStrInput property ui must be strInput")) : x(Xn, {
|
|
1905
|
+
modelValue: e.static ? e.value : ee(
|
|
1735
1906
|
n,
|
|
1736
1907
|
e,
|
|
1737
1908
|
l,
|
|
@@ -1740,7 +1911,7 @@ function Fn(t) {
|
|
|
1740
1911
|
i
|
|
1741
1912
|
),
|
|
1742
1913
|
"onUpdate:modelValue": (u) => {
|
|
1743
|
-
e.static ||
|
|
1914
|
+
e.static || le(
|
|
1744
1915
|
n,
|
|
1745
1916
|
e,
|
|
1746
1917
|
l,
|
|
@@ -1757,9 +1928,9 @@ function Fn(t) {
|
|
|
1757
1928
|
readonly: e.static || e.readonly
|
|
1758
1929
|
}) };
|
|
1759
1930
|
}
|
|
1760
|
-
function
|
|
1761
|
-
return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1),
|
|
1762
|
-
modelValue:
|
|
1931
|
+
function ol(t) {
|
|
1932
|
+
return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), x("div", "renderUiSwitch property ui must be switch")) : x(Fn, {
|
|
1933
|
+
modelValue: ee(
|
|
1763
1934
|
n,
|
|
1764
1935
|
e,
|
|
1765
1936
|
l,
|
|
@@ -1768,7 +1939,7 @@ function zn(t) {
|
|
|
1768
1939
|
i
|
|
1769
1940
|
) ?? !1,
|
|
1770
1941
|
"onUpdate:modelValue": (u) => {
|
|
1771
|
-
|
|
1942
|
+
le(
|
|
1772
1943
|
n,
|
|
1773
1944
|
e,
|
|
1774
1945
|
l,
|
|
@@ -1785,7 +1956,7 @@ function zn(t) {
|
|
|
1785
1956
|
readonly: e.readonly
|
|
1786
1957
|
}) };
|
|
1787
1958
|
}
|
|
1788
|
-
const
|
|
1959
|
+
const sl = /* @__PURE__ */ E({
|
|
1789
1960
|
__name: "index",
|
|
1790
1961
|
props: {
|
|
1791
1962
|
unique: {},
|
|
@@ -1797,108 +1968,108 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1797
1968
|
},
|
|
1798
1969
|
emits: ["change"],
|
|
1799
1970
|
setup(t, { emit: s }) {
|
|
1800
|
-
const { t: n } =
|
|
1801
|
-
|
|
1971
|
+
const { t: n } = ne(), { backgroundColor1: e } = I(), l = t, o = s, i = O("20px"), u = O("56px"), r = O("200px"), a = xt({}), d = O({}), c = (y, f) => {
|
|
1972
|
+
Ge(d, l.config, l.object), o("change", y, f);
|
|
1802
1973
|
};
|
|
1803
|
-
|
|
1974
|
+
se(
|
|
1804
1975
|
[() => l.config, () => l.object],
|
|
1805
1976
|
() => {
|
|
1806
|
-
|
|
1977
|
+
Ge(
|
|
1807
1978
|
d,
|
|
1808
1979
|
l.config,
|
|
1809
1980
|
l.object,
|
|
1810
|
-
(
|
|
1811
|
-
o("change",
|
|
1981
|
+
(y, f) => {
|
|
1982
|
+
o("change", y, f);
|
|
1812
1983
|
}
|
|
1813
1984
|
);
|
|
1814
1985
|
},
|
|
1815
1986
|
{ immediate: !0 }
|
|
1816
1987
|
);
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1988
|
+
const m = O(l.version);
|
|
1989
|
+
Kt(m), se(
|
|
1819
1990
|
() => l.version,
|
|
1820
1991
|
() => {
|
|
1821
|
-
|
|
1992
|
+
m.value = l.version;
|
|
1822
1993
|
}
|
|
1823
1994
|
);
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1995
|
+
const p = O(l.type);
|
|
1996
|
+
se(
|
|
1826
1997
|
() => l.type,
|
|
1827
1998
|
() => {
|
|
1828
|
-
|
|
1999
|
+
p.value = l.type;
|
|
1829
2000
|
}
|
|
1830
2001
|
);
|
|
1831
|
-
const
|
|
1832
|
-
|
|
2002
|
+
const v = O(l.subtype);
|
|
2003
|
+
se(
|
|
1833
2004
|
() => l.subtype,
|
|
1834
2005
|
() => {
|
|
1835
|
-
|
|
2006
|
+
v.value = l.subtype;
|
|
1836
2007
|
}
|
|
1837
2008
|
);
|
|
1838
|
-
const
|
|
1839
|
-
|
|
2009
|
+
const C = O(l.config);
|
|
2010
|
+
Rt(C), se(
|
|
1840
2011
|
() => l.config,
|
|
1841
2012
|
() => {
|
|
1842
|
-
|
|
2013
|
+
C.value = l.config;
|
|
1843
2014
|
}
|
|
1844
2015
|
);
|
|
1845
|
-
const
|
|
1846
|
-
|
|
2016
|
+
const k = O(l.object);
|
|
2017
|
+
Jt(k), se(
|
|
1847
2018
|
() => l.object,
|
|
1848
2019
|
() => {
|
|
1849
|
-
|
|
2020
|
+
k.value = l.object;
|
|
1850
2021
|
}
|
|
1851
|
-
),
|
|
1852
|
-
const { renderProperty:
|
|
2022
|
+
), Ht(d), zt(c), tn(), nn(), en(m, p, v);
|
|
2023
|
+
const { renderProperty: $ } = el(
|
|
1853
2024
|
d,
|
|
1854
2025
|
u,
|
|
1855
2026
|
r
|
|
1856
|
-
), { renderUiDummy:
|
|
1857
|
-
p,
|
|
1858
|
-
m,
|
|
2027
|
+
), { renderUiDummy: U } = Wn(c), { renderUiStrInput: g } = ll(c), { renderUiNumInput: M } = jn(c), { renderUiSwitch: T } = ol(c), { renderUiSelect: Q } = tl(c), { renderUiColorPicker: he } = Gn(c), { renderUiJsonEditor: De } = Qn(c), { renderUiMultiTypes: at } = Zn(c), { renderUiCompSelect: ct } = Yn(c), { renderUiSlotSelect: dt } = nl(c), { renderUiAdaptSlotSelect: mt } = zn(c), Ce = (y, f, _, h, b, N) => (y = Qe(y), b !== void 0 ? (y.push(b), N && y.push(f.key)) : y.push(f.key), f.ui ? f.array && h ? pt(
|
|
1859
2028
|
y,
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
2029
|
+
f,
|
|
2030
|
+
_,
|
|
2031
|
+
h,
|
|
2032
|
+
b,
|
|
2033
|
+
N
|
|
2034
|
+
) : gt(y, f, _, b, N) : f.array ? ft(
|
|
1866
2035
|
y,
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
2036
|
+
f,
|
|
2037
|
+
_,
|
|
2038
|
+
h,
|
|
2039
|
+
b,
|
|
2040
|
+
N
|
|
2041
|
+
) : vt(
|
|
1873
2042
|
y,
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
if (
|
|
1881
|
-
return console.assert(!1),
|
|
1882
|
-
if (!
|
|
1883
|
-
return console.assert(!1),
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
let
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
2043
|
+
f,
|
|
2044
|
+
_,
|
|
2045
|
+
h,
|
|
2046
|
+
b,
|
|
2047
|
+
N
|
|
2048
|
+
)), ft = (y, f, _, h, b, N) => {
|
|
2049
|
+
if (f.ui)
|
|
2050
|
+
return console.assert(!1), x("div", "renderBranchArray property ui must be invalid");
|
|
2051
|
+
if (!f.array)
|
|
2052
|
+
return console.assert(!1), x("div", "renderBranchArray property array must be valid");
|
|
2053
|
+
if (!h)
|
|
2054
|
+
return console.assert(!1), x("div", "renderBranchArray branch must be valid");
|
|
2055
|
+
let F;
|
|
2056
|
+
b !== void 0 && !N ? (_[b] instanceof Array || (_[b] = X(f), c(y, _[f.key])), F = _[b]) : (_[f.key] instanceof Array || (_[f.key] = X(f), c(y, _[f.key])), F = _[f.key]);
|
|
2057
|
+
let ce = n(f.name);
|
|
2058
|
+
h.collapse && fe(d.value, y) && (ce += " *");
|
|
2059
|
+
const _e = x(we, {
|
|
2060
|
+
title: ce,
|
|
2061
|
+
collapse: h.collapse,
|
|
1891
2062
|
hasCreate: !0,
|
|
1892
|
-
onCollapse: (
|
|
1893
|
-
|
|
2063
|
+
onCollapse: (P) => {
|
|
2064
|
+
h.collapse = P;
|
|
1894
2065
|
},
|
|
1895
|
-
onMenu: (
|
|
1896
|
-
|
|
2066
|
+
onMenu: (P, K) => {
|
|
2067
|
+
me.emit("propTreeMenu", { x: P, y: K, keys: y });
|
|
1897
2068
|
},
|
|
1898
2069
|
onCreate: () => {
|
|
1899
|
-
|
|
2070
|
+
F.push({}), c(y, F);
|
|
1900
2071
|
}
|
|
1901
|
-
}),
|
|
2072
|
+
}), W = x(
|
|
1902
2073
|
"div",
|
|
1903
2074
|
{
|
|
1904
2075
|
style: {
|
|
@@ -1906,44 +2077,44 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1906
2077
|
}
|
|
1907
2078
|
},
|
|
1908
2079
|
(() => {
|
|
1909
|
-
const
|
|
1910
|
-
for (let
|
|
1911
|
-
if (!
|
|
2080
|
+
const P = [];
|
|
2081
|
+
for (let K = 0; K < F.length; K++) {
|
|
2082
|
+
if (!Te(h.children)) {
|
|
1912
2083
|
console.assert(!1);
|
|
1913
2084
|
break;
|
|
1914
2085
|
}
|
|
1915
|
-
|
|
2086
|
+
h.children[K] || h.children.push({
|
|
1916
2087
|
collapse: !0,
|
|
1917
2088
|
children: {}
|
|
1918
2089
|
});
|
|
1919
|
-
const
|
|
1920
|
-
let
|
|
1921
|
-
|
|
1922
|
-
const
|
|
1923
|
-
title:
|
|
1924
|
-
collapse:
|
|
2090
|
+
const Ue = [...y, K], $e = h.children[K];
|
|
2091
|
+
let Xe = `[${K + 1}]`;
|
|
2092
|
+
h.children[K].collapse && fe(d.value, Ue) && (Xe += " *");
|
|
2093
|
+
const ht = x(we, {
|
|
2094
|
+
title: Xe,
|
|
2095
|
+
collapse: h.children[K].collapse,
|
|
1925
2096
|
hasDelete: !0,
|
|
1926
|
-
index:
|
|
1927
|
-
onCollapse: (
|
|
1928
|
-
if (!
|
|
2097
|
+
index: K,
|
|
2098
|
+
onCollapse: (oe) => {
|
|
2099
|
+
if (!Te(h.children)) {
|
|
1929
2100
|
console.assert(!1);
|
|
1930
2101
|
return;
|
|
1931
2102
|
}
|
|
1932
|
-
|
|
2103
|
+
h.children[K].collapse = oe;
|
|
1933
2104
|
},
|
|
1934
|
-
onMenu: (
|
|
1935
|
-
|
|
2105
|
+
onMenu: (oe, de) => {
|
|
2106
|
+
me.emit("propTreeMenu", { x: oe, y: de, keys: Ue });
|
|
1936
2107
|
},
|
|
1937
|
-
onDelete: (
|
|
1938
|
-
if (!
|
|
2108
|
+
onDelete: (oe) => {
|
|
2109
|
+
if (!Te(h.children)) {
|
|
1939
2110
|
console.assert(!1);
|
|
1940
2111
|
return;
|
|
1941
2112
|
}
|
|
1942
|
-
|
|
2113
|
+
h.children.splice(oe, 1), F.splice(oe, 1), c(y, F);
|
|
1943
2114
|
}
|
|
1944
2115
|
});
|
|
1945
|
-
|
|
1946
|
-
const
|
|
2116
|
+
P.push(ht);
|
|
2117
|
+
const _t = x(
|
|
1947
2118
|
"div",
|
|
1948
2119
|
{
|
|
1949
2120
|
style: {
|
|
@@ -1951,34 +2122,34 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1951
2122
|
}
|
|
1952
2123
|
},
|
|
1953
2124
|
(() => {
|
|
1954
|
-
const
|
|
1955
|
-
return
|
|
1956
|
-
if (!
|
|
2125
|
+
const oe = [];
|
|
2126
|
+
return f.children.forEach((de) => {
|
|
2127
|
+
if (!ze($e.children)) {
|
|
1957
2128
|
console.assert(!1);
|
|
1958
2129
|
return;
|
|
1959
2130
|
}
|
|
1960
|
-
|
|
2131
|
+
$e.children[de.key] || ($e.children[de.key] = {
|
|
1961
2132
|
collapse: !0,
|
|
1962
|
-
children:
|
|
2133
|
+
children: de.array ? [] : {}
|
|
1963
2134
|
});
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
2135
|
+
const kt = Ce(
|
|
2136
|
+
y,
|
|
2137
|
+
de,
|
|
2138
|
+
F[K],
|
|
2139
|
+
$e.children[de.key],
|
|
2140
|
+
K,
|
|
1970
2141
|
!0
|
|
1971
2142
|
);
|
|
1972
|
-
|
|
1973
|
-
}),
|
|
2143
|
+
oe.push(kt);
|
|
2144
|
+
}), oe;
|
|
1974
2145
|
})()
|
|
1975
2146
|
);
|
|
1976
|
-
|
|
2147
|
+
h.children[K].collapse || P.push(_t);
|
|
1977
2148
|
}
|
|
1978
|
-
return
|
|
2149
|
+
return P;
|
|
1979
2150
|
})()
|
|
1980
2151
|
);
|
|
1981
|
-
return
|
|
2152
|
+
return x(
|
|
1982
2153
|
"div",
|
|
1983
2154
|
{
|
|
1984
2155
|
style: {
|
|
@@ -1986,33 +2157,33 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1986
2157
|
}
|
|
1987
2158
|
},
|
|
1988
2159
|
(() => {
|
|
1989
|
-
const
|
|
1990
|
-
return
|
|
2160
|
+
const P = [];
|
|
2161
|
+
return P.push(_e), h.collapse || P.push(W), P;
|
|
1991
2162
|
})()
|
|
1992
2163
|
);
|
|
1993
|
-
},
|
|
1994
|
-
if (
|
|
1995
|
-
return console.assert(!1),
|
|
1996
|
-
if (
|
|
1997
|
-
return console.assert(!1),
|
|
1998
|
-
if (!
|
|
1999
|
-
return console.assert(!1),
|
|
2000
|
-
let
|
|
2001
|
-
|
|
2002
|
-
const
|
|
2003
|
-
title:
|
|
2004
|
-
collapse:
|
|
2005
|
-
hasDelete:
|
|
2006
|
-
onCollapse: (
|
|
2007
|
-
|
|
2164
|
+
}, vt = (y, f, _, h, b, N) => {
|
|
2165
|
+
if (f.ui)
|
|
2166
|
+
return console.assert(!1), x("div", "renderBranchScalar property ui must be invalid");
|
|
2167
|
+
if (f.array)
|
|
2168
|
+
return console.assert(!1), x("div", "renderBranchScalar property array must be invalid");
|
|
2169
|
+
if (!h)
|
|
2170
|
+
return console.assert(!1), x("div", "renderBranchScalar branch must be valid");
|
|
2171
|
+
let F = n(f.name);
|
|
2172
|
+
h.collapse && fe(d.value, y) && (F += " *");
|
|
2173
|
+
const ce = x(we, {
|
|
2174
|
+
title: F,
|
|
2175
|
+
collapse: h.collapse,
|
|
2176
|
+
hasDelete: b !== void 0 && !N,
|
|
2177
|
+
onCollapse: (W) => {
|
|
2178
|
+
h.collapse = W;
|
|
2008
2179
|
},
|
|
2009
|
-
onMenu: (
|
|
2010
|
-
|
|
2180
|
+
onMenu: (W, P) => {
|
|
2181
|
+
me.emit("propTreeMenu", { x: W, y: P, keys: y });
|
|
2011
2182
|
},
|
|
2012
2183
|
onDelete: () => {
|
|
2013
|
-
|
|
2184
|
+
b === void 0 || N || (_.splice(b, 1), c(y.slice(0, -1), _));
|
|
2014
2185
|
}
|
|
2015
|
-
}),
|
|
2186
|
+
}), _e = x(
|
|
2016
2187
|
"div",
|
|
2017
2188
|
{
|
|
2018
2189
|
style: {
|
|
@@ -2020,27 +2191,27 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2020
2191
|
}
|
|
2021
2192
|
},
|
|
2022
2193
|
(() => {
|
|
2023
|
-
const
|
|
2024
|
-
return
|
|
2025
|
-
if (!
|
|
2194
|
+
const W = [];
|
|
2195
|
+
return f.children.forEach((P) => {
|
|
2196
|
+
if (!ze(h.children)) {
|
|
2026
2197
|
console.assert(!1);
|
|
2027
2198
|
return;
|
|
2028
2199
|
}
|
|
2029
|
-
|
|
2200
|
+
h.children[P.key] || (h.children[P.key] = {
|
|
2030
2201
|
collapse: !0,
|
|
2031
|
-
children: !
|
|
2202
|
+
children: !P.ui && P.array ? [] : {}
|
|
2032
2203
|
});
|
|
2033
|
-
const
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
(typeof
|
|
2037
|
-
|
|
2204
|
+
const K = Ce(
|
|
2205
|
+
y,
|
|
2206
|
+
P,
|
|
2207
|
+
(typeof _[f.key] != "object" && (_[f.key] = {}, c(y, _[f.key])), _[f.key]),
|
|
2208
|
+
h.children[P.key]
|
|
2038
2209
|
);
|
|
2039
|
-
|
|
2040
|
-
}),
|
|
2210
|
+
W.push(K);
|
|
2211
|
+
}), W;
|
|
2041
2212
|
})()
|
|
2042
2213
|
);
|
|
2043
|
-
return
|
|
2214
|
+
return x(
|
|
2044
2215
|
"div",
|
|
2045
2216
|
{
|
|
2046
2217
|
style: {
|
|
@@ -2048,35 +2219,35 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2048
2219
|
}
|
|
2049
2220
|
},
|
|
2050
2221
|
(() => {
|
|
2051
|
-
const
|
|
2052
|
-
return
|
|
2222
|
+
const W = [];
|
|
2223
|
+
return W.push(ce), h.collapse || W.push(_e), W;
|
|
2053
2224
|
})()
|
|
2054
2225
|
);
|
|
2055
|
-
},
|
|
2056
|
-
if (!
|
|
2057
|
-
return console.assert(!1),
|
|
2058
|
-
if (!
|
|
2059
|
-
return console.assert(!1),
|
|
2060
|
-
if (!
|
|
2061
|
-
return console.assert(!1),
|
|
2062
|
-
let
|
|
2063
|
-
|
|
2064
|
-
let
|
|
2065
|
-
|
|
2066
|
-
const
|
|
2067
|
-
title:
|
|
2068
|
-
collapse:
|
|
2226
|
+
}, pt = (y, f, _, h, b, N) => {
|
|
2227
|
+
if (!f.ui)
|
|
2228
|
+
return console.assert(!1), x("div", "renderLeafArray property ui must be valid");
|
|
2229
|
+
if (!f.array)
|
|
2230
|
+
return console.assert(!1), x("div", "renderLeafArray property array must be valid");
|
|
2231
|
+
if (!h)
|
|
2232
|
+
return console.assert(!1), x("div", "renderLeafArray branch must be valid");
|
|
2233
|
+
let F;
|
|
2234
|
+
b !== void 0 && !N ? (_[b] instanceof Array || (_[b] = X(f), c(y, _[b])), F = _[b]) : (_[f.key] instanceof Array || (_[f.key] = X(f), c(y, _[f.key])), F = _[f.key]);
|
|
2235
|
+
let ce = n(f.name);
|
|
2236
|
+
h.collapse && fe(d.value, y) && (ce += " *");
|
|
2237
|
+
const _e = x(we, {
|
|
2238
|
+
title: ce,
|
|
2239
|
+
collapse: h.collapse,
|
|
2069
2240
|
hasCreate: !0,
|
|
2070
|
-
onCollapse: (
|
|
2071
|
-
|
|
2241
|
+
onCollapse: (P) => {
|
|
2242
|
+
h.collapse = P;
|
|
2072
2243
|
},
|
|
2073
|
-
onMenu: (
|
|
2074
|
-
|
|
2244
|
+
onMenu: (P, K) => {
|
|
2245
|
+
me.emit("propTreeMenu", { x: P, y: K, keys: y });
|
|
2075
2246
|
},
|
|
2076
2247
|
onCreate: () => {
|
|
2077
|
-
|
|
2248
|
+
F.push(X(f, !0)), c(y, F);
|
|
2078
2249
|
}
|
|
2079
|
-
}),
|
|
2250
|
+
}), W = x(
|
|
2080
2251
|
"div",
|
|
2081
2252
|
{
|
|
2082
2253
|
style: {
|
|
@@ -2084,15 +2255,15 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2084
2255
|
}
|
|
2085
2256
|
},
|
|
2086
2257
|
(() => {
|
|
2087
|
-
const
|
|
2088
|
-
for (let
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2258
|
+
const P = [];
|
|
2259
|
+
for (let K = 0; K < F.length; K++) {
|
|
2260
|
+
const Ue = Ce(y, f, F, void 0, K, !1);
|
|
2261
|
+
P.push(Ue);
|
|
2091
2262
|
}
|
|
2092
|
-
return
|
|
2263
|
+
return P;
|
|
2093
2264
|
})()
|
|
2094
2265
|
);
|
|
2095
|
-
return
|
|
2266
|
+
return x(
|
|
2096
2267
|
"div",
|
|
2097
2268
|
{
|
|
2098
2269
|
style: {
|
|
@@ -2100,16 +2271,16 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2100
2271
|
}
|
|
2101
2272
|
},
|
|
2102
2273
|
(() => {
|
|
2103
|
-
const
|
|
2104
|
-
return
|
|
2274
|
+
const P = [];
|
|
2275
|
+
return P.push(_e), h.collapse || P.push(W), P;
|
|
2105
2276
|
})()
|
|
2106
2277
|
);
|
|
2107
|
-
},
|
|
2108
|
-
if (!
|
|
2109
|
-
return console.assert(!1),
|
|
2110
|
-
let
|
|
2111
|
-
return
|
|
2112
|
-
},
|
|
2278
|
+
}, gt = (y, f, _, h, b) => {
|
|
2279
|
+
if (!f.ui)
|
|
2280
|
+
return console.assert(!1), x("div", "renderLeafScalar property ui must be valid");
|
|
2281
|
+
let N;
|
|
2282
|
+
return f.ui === "dummy" ? N = U(y, f, _, h, b) : f.ui === "strInput" ? N = g(y, f, _, h, b) : f.ui === "numInput" ? N = M(y, f, _, h, b) : f.ui === "switch" ? N = T(y, f, _, h, b) : f.ui === "select" ? N = Q(y, f, _, h, b) : f.ui === "colorPicker" ? N = he(y, f, _, h, b) : f.ui === "jsonEditor" ? N = De(y, f, _, h, b) : f.ui === "multiTypes" ? N = at(y, f, _, h, b) : f.ui === "compSelect" ? N = ct(y, f, _, h, b) : f.ui === "slotSelect" ? N = dt(y, f, _, h, b) : f.ui === "adaptSlotSelect" ? N = mt(y, f, _, h, b) : console.assert(!1, "renderLeafScalar not implemented"), N ? $(y, f, N) : x("div");
|
|
2283
|
+
}, yt = () => x(
|
|
2113
2284
|
"div",
|
|
2114
2285
|
{
|
|
2115
2286
|
class: "text-body-2",
|
|
@@ -2118,49 +2289,49 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2118
2289
|
}
|
|
2119
2290
|
},
|
|
2120
2291
|
(() => {
|
|
2121
|
-
const
|
|
2292
|
+
const y = [];
|
|
2122
2293
|
if (l.unique && l.config.length > 0 && l.object) {
|
|
2123
2294
|
a[l.unique] || (a[l.unique] = {});
|
|
2124
|
-
const
|
|
2125
|
-
l.config.forEach((
|
|
2126
|
-
|
|
2295
|
+
const f = a[l.unique];
|
|
2296
|
+
l.config.forEach((_) => {
|
|
2297
|
+
f[_.key] || (f[_.key] = {
|
|
2127
2298
|
collapse: !0,
|
|
2128
|
-
children: !
|
|
2299
|
+
children: !_.ui && _.array ? [] : {}
|
|
2129
2300
|
});
|
|
2130
|
-
const
|
|
2301
|
+
const h = Ce(
|
|
2131
2302
|
[],
|
|
2132
|
-
|
|
2303
|
+
_,
|
|
2133
2304
|
l.object,
|
|
2134
|
-
|
|
2305
|
+
f[_.key]
|
|
2135
2306
|
);
|
|
2136
|
-
|
|
2307
|
+
y.push(h);
|
|
2137
2308
|
});
|
|
2138
2309
|
}
|
|
2139
|
-
return
|
|
2310
|
+
return y;
|
|
2140
2311
|
})()
|
|
2141
2312
|
);
|
|
2142
|
-
return (
|
|
2143
|
-
|
|
2144
|
-
|
|
2313
|
+
return (y, f) => (S(), R(ve, null, [
|
|
2314
|
+
w(yt),
|
|
2315
|
+
w(jt, {
|
|
2145
2316
|
config: l.config,
|
|
2146
2317
|
object: l.object,
|
|
2147
2318
|
"property-states": d.value
|
|
2148
2319
|
}, null, 8, ["config", "object", "property-states"])
|
|
2149
2320
|
], 64));
|
|
2150
2321
|
}
|
|
2151
|
-
}),
|
|
2152
|
-
t.component("XPropTree",
|
|
2153
|
-
},
|
|
2322
|
+
}), il = (t) => {
|
|
2323
|
+
t.component("XPropTree", sl);
|
|
2324
|
+
}, ul = (t, s, n) => {
|
|
2154
2325
|
const e = t[s];
|
|
2155
2326
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
|
|
2156
2327
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
|
|
2157
2328
|
});
|
|
2158
2329
|
};
|
|
2159
|
-
async function
|
|
2160
|
-
return (await
|
|
2330
|
+
async function gl(t) {
|
|
2331
|
+
return (await ul(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gtpxr0k8.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ev8iw0vp.js") }), `./locales/${t}/index.ts`, 4)).default;
|
|
2161
2332
|
}
|
|
2162
|
-
const
|
|
2333
|
+
const yl = { install: il };
|
|
2163
2334
|
export {
|
|
2164
|
-
|
|
2165
|
-
|
|
2335
|
+
yl as default,
|
|
2336
|
+
gl as loadLocaleMessagePropTree
|
|
2166
2337
|
};
|