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