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