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