x-prop-tree 0.8.16 → 0.8.17
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 +464 -404
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./vendor.cs922lli.js";
|
|
2
|
-
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
2
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as ne, withModifiers as R } from "vue";
|
|
3
|
+
import { eventBus as z, globalObjects as re, injectDark as ie, injectLocale as ae, openNumberDlg as oe, openPromptDlg as se, useColor as B, useSystem as V, useViewStack as H } from "x-essential-lib";
|
|
4
|
+
import { getElement as ce, getItems as le, getPropertyDefault as U, getPropertyDefaultArray as W, getTag as ue, getTypes as de, isHexColor as fe, isThemeColor as pe, makeSlotId as me, parseNumberUnit as he, pkgs as ge, rules as _e, themeColors as ve } from "x-runtime-lib";
|
|
5
|
+
import { useI18n as G } from "vue-i18n";
|
|
6
|
+
import { globalState as ye } from "x-state-lib";
|
|
7
|
+
import { useDisplay as be } from "vuetify";
|
|
8
|
+
import { XBlockly as xe } from "x-block-lib";
|
|
9
9
|
//#region src/utils/common.ts
|
|
10
|
-
function
|
|
10
|
+
function Se(e, t) {
|
|
11
11
|
let n = {
|
|
12
12
|
key: "",
|
|
13
13
|
name: "",
|
|
@@ -20,7 +20,7 @@ function xe(e, t) {
|
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function K(e, t) {
|
|
24
24
|
let n = e;
|
|
25
25
|
for (let e of t) {
|
|
26
26
|
if (!n) throw Error("target must be valid");
|
|
@@ -28,42 +28,42 @@ function q(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
return n;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Ce(t, n, r, i, a, o) {
|
|
32
32
|
if (i !== void 0 && !a) {
|
|
33
33
|
if (!(r[i] instanceof Array)) {
|
|
34
|
-
let a =
|
|
34
|
+
let a = W(n);
|
|
35
35
|
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
36
36
|
}
|
|
37
37
|
return r[i];
|
|
38
38
|
} else {
|
|
39
39
|
if (!(r[n.key] instanceof Array)) {
|
|
40
|
-
let i =
|
|
40
|
+
let i = W(n);
|
|
41
41
|
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
42
42
|
}
|
|
43
43
|
return r[n.key];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function q(t, n, r, i, a, o) {
|
|
47
47
|
if (i !== void 0 && !a) {
|
|
48
48
|
if (r[i] === void 0) {
|
|
49
|
-
let a =
|
|
49
|
+
let a = U(n);
|
|
50
50
|
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
51
51
|
}
|
|
52
52
|
return r[i];
|
|
53
53
|
} else {
|
|
54
54
|
if (r[n.key] === void 0) {
|
|
55
|
-
let i =
|
|
55
|
+
let i = U(n);
|
|
56
56
|
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
57
57
|
}
|
|
58
58
|
return r[n.key];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function J(t, n, i, a, o, s, c) {
|
|
62
|
+
o !== void 0 && !s ? e(a, i[o]) || (i[o] = r(a), c(t, i[o])) : e(a, i[n.key]) || (i[n.key] = r(a), c(t, i[n.key]));
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/utils/collapseState.ts
|
|
66
|
-
function
|
|
66
|
+
function Y(e, t) {
|
|
67
67
|
let n = e.value;
|
|
68
68
|
for (let e of t) {
|
|
69
69
|
if (!n.children[e]) return !0;
|
|
@@ -71,7 +71,7 @@ function X(e, t) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.collapse;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function we(e, t, n) {
|
|
75
75
|
let r = e.value;
|
|
76
76
|
for (let e of t) r.children[e] || (r.children[e] = {
|
|
77
77
|
collapse: !0,
|
|
@@ -81,35 +81,49 @@ function Ce(e, t, n) {
|
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
84
|
+
var Te = [
|
|
85
85
|
"key",
|
|
86
86
|
"name",
|
|
87
87
|
"children",
|
|
88
88
|
"default",
|
|
89
89
|
"arrayDefault"
|
|
90
|
-
]
|
|
90
|
+
];
|
|
91
|
+
function Ee(n, r) {
|
|
91
92
|
function i(n, r) {
|
|
92
|
-
if (!e(t(n,
|
|
93
|
+
if (!e(t(n, Te), t(r, Te))) return !1;
|
|
93
94
|
if (n.ui || r.ui) return !0;
|
|
94
95
|
if (n.children.length !== r.children.length) return !1;
|
|
95
96
|
for (let e = 0; e < n.children.length; e++) if (!i(n.children[e], r.children[e])) return !1;
|
|
96
97
|
return !0;
|
|
97
98
|
}
|
|
98
99
|
return i(n, r);
|
|
99
|
-
}, Ee = [["basic", "id"], ["basic", "name"]];
|
|
100
|
-
function De(t) {
|
|
101
|
-
return Ee.find((n) => e(t, n));
|
|
102
100
|
}
|
|
103
|
-
function
|
|
101
|
+
function De(e, t, n, r, i, a) {
|
|
102
|
+
function o(e, t, n, r, i) {
|
|
103
|
+
if (t.ui) {
|
|
104
|
+
if (t.readonly || t.static) return;
|
|
105
|
+
J(e, t, n, r, i, !1, a);
|
|
106
|
+
} else if (t.array) J(e, t, n, r, i, !1, a);
|
|
107
|
+
else for (let i of t.children) typeof n == "object" && typeof r == "object" && o([...e, i.key], i, n[t.key], r[i.key], void 0);
|
|
108
|
+
}
|
|
109
|
+
o(e, t, n, r, i);
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/utils/propertyState.ts
|
|
113
|
+
var Oe = [["basic", "id"], ["basic", "name"]];
|
|
114
|
+
function ke(t) {
|
|
115
|
+
return Oe.find((n) => e(t, n));
|
|
116
|
+
}
|
|
117
|
+
function X(e, t, n, i, a, o, s) {
|
|
104
118
|
return e = r(e), a === void 0 ? e.push(t.key) : (e.push(a), o && e.push(t.key)), e?.[0] === "runtime" ? {
|
|
105
119
|
change: !1,
|
|
106
120
|
warning: !1
|
|
107
|
-
} :
|
|
121
|
+
} : ke(e) ? (i.change = !1, i.warning = !1, {
|
|
108
122
|
change: i.change,
|
|
109
123
|
warning: i.warning
|
|
110
|
-
}) : t.ui ? t.array && !s ?
|
|
124
|
+
}) : t.ui ? t.array && !s ? Me(e, t, n, i, a, o) : Ne(t, n, i, a, o) : t.array ? Ae(e, t, n, i, a, o) : je(e, t, n, i, a, o);
|
|
111
125
|
}
|
|
112
|
-
function
|
|
126
|
+
function Ae(t, n, r, i, a, o) {
|
|
113
127
|
if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
|
|
114
128
|
if (!n.array) throw Error("execPropertyBranchArray property array must be valid");
|
|
115
129
|
let s;
|
|
@@ -130,16 +144,16 @@ function ke(t, n, r, i, a, o) {
|
|
|
130
144
|
warning: !1,
|
|
131
145
|
children: {}
|
|
132
146
|
};
|
|
133
|
-
let { change: n, warning: o } =
|
|
147
|
+
let { change: n, warning: o } = X(t, a, s[e], r.children[a.key], e, !0);
|
|
134
148
|
!r.change && n && (r.change = n), !r.change && o && (r.warning = o), !i.change && r.change && (i.change = r.change), !i.warning && r.warning && (i.warning = r.warning);
|
|
135
149
|
}
|
|
136
150
|
}
|
|
137
|
-
return i.change ||= !e(s,
|
|
151
|
+
return i.change ||= !e(s, W(n)), {
|
|
138
152
|
change: i.change,
|
|
139
153
|
warning: i.warning
|
|
140
154
|
};
|
|
141
155
|
}
|
|
142
|
-
function
|
|
156
|
+
function je(e, t, n, r, i, a) {
|
|
143
157
|
if (t.ui) throw Error("execPropertyBranchScalar property ui must be invalid");
|
|
144
158
|
if (t.array) throw Error("execPropertyBranchScalar property array must be invalid");
|
|
145
159
|
let o;
|
|
@@ -154,7 +168,7 @@ function Ae(e, t, n, r, i, a) {
|
|
|
154
168
|
warning: !1,
|
|
155
169
|
children: {}
|
|
156
170
|
};
|
|
157
|
-
let { change: a, warning: s } =
|
|
171
|
+
let { change: a, warning: s } = X(e, i, o, r.children[i.key], void 0, !1);
|
|
158
172
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
159
173
|
}
|
|
160
174
|
return {
|
|
@@ -162,7 +176,7 @@ function Ae(e, t, n, r, i, a) {
|
|
|
162
176
|
warning: r.change
|
|
163
177
|
};
|
|
164
178
|
}
|
|
165
|
-
function
|
|
179
|
+
function Me(t, n, r, i, a, o) {
|
|
166
180
|
if (!n.ui) throw Error("execPropertyLeafArray property ui must be valid");
|
|
167
181
|
if (!n.array) throw Error("execPropertyLeafArray property aray must be valid");
|
|
168
182
|
let s;
|
|
@@ -176,23 +190,23 @@ function je(t, n, r, i, a, o) {
|
|
|
176
190
|
warning: !1,
|
|
177
191
|
children: {}
|
|
178
192
|
};
|
|
179
|
-
let { change: r, warning: a } =
|
|
193
|
+
let { change: r, warning: a } = X(t, n, s, i.children[e], e, !1, !0);
|
|
180
194
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
181
195
|
}
|
|
182
|
-
return i.change ||= !e(s,
|
|
196
|
+
return i.change ||= !e(s, W(n)), {
|
|
183
197
|
change: i.change,
|
|
184
198
|
warning: i.warning
|
|
185
199
|
};
|
|
186
200
|
}
|
|
187
|
-
function
|
|
201
|
+
function Ne(t, n, r, i, a) {
|
|
188
202
|
if (!t.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
189
203
|
let o;
|
|
190
|
-
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o,
|
|
204
|
+
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o, U(t)), {
|
|
191
205
|
change: r.change,
|
|
192
206
|
warning: r.warning
|
|
193
207
|
};
|
|
194
208
|
}
|
|
195
|
-
function
|
|
209
|
+
function Pe(e, t, n) {
|
|
196
210
|
if (t.length <= 0 || !n) {
|
|
197
211
|
e.value = {
|
|
198
212
|
change: !1,
|
|
@@ -212,7 +226,7 @@ function Ne(e, t, n) {
|
|
|
212
226
|
warning: !1,
|
|
213
227
|
children: {}
|
|
214
228
|
};
|
|
215
|
-
r.children[e.key] = t,
|
|
229
|
+
r.children[e.key] = t, X([], e, n, t, void 0, !1);
|
|
216
230
|
}
|
|
217
231
|
e.value = r;
|
|
218
232
|
}
|
|
@@ -226,192 +240,238 @@ function Z(e, t) {
|
|
|
226
240
|
}
|
|
227
241
|
//#endregion
|
|
228
242
|
//#region src/utils/provideInject.ts
|
|
229
|
-
var
|
|
230
|
-
function
|
|
231
|
-
T(Pe, e);
|
|
232
|
-
}
|
|
233
|
-
function Ke() {
|
|
234
|
-
return g(Pe);
|
|
235
|
-
}
|
|
236
|
-
function qe(e) {
|
|
243
|
+
var Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol(), He = Symbol(), Ue = Symbol(), We = Symbol(), Ge = Symbol();
|
|
244
|
+
function Ke(e) {
|
|
237
245
|
T(Fe, e);
|
|
238
246
|
}
|
|
239
|
-
function
|
|
247
|
+
function qe() {
|
|
240
248
|
return g(Fe);
|
|
241
249
|
}
|
|
242
|
-
function
|
|
250
|
+
function Je(e) {
|
|
243
251
|
T(Ie, e);
|
|
244
252
|
}
|
|
245
|
-
function
|
|
253
|
+
function Ye() {
|
|
246
254
|
return g(Ie);
|
|
247
255
|
}
|
|
248
|
-
function
|
|
256
|
+
function Xe(e) {
|
|
249
257
|
T(Le, e);
|
|
250
258
|
}
|
|
251
|
-
function
|
|
259
|
+
function Ze() {
|
|
252
260
|
return g(Le);
|
|
253
261
|
}
|
|
254
|
-
function
|
|
262
|
+
function Qe(e) {
|
|
255
263
|
T(Re, e);
|
|
256
264
|
}
|
|
257
|
-
function
|
|
265
|
+
function $e() {
|
|
258
266
|
return g(Re);
|
|
259
267
|
}
|
|
260
|
-
function
|
|
268
|
+
function et(e) {
|
|
261
269
|
T(ze, e);
|
|
262
270
|
}
|
|
263
|
-
function
|
|
271
|
+
function tt() {
|
|
264
272
|
return g(ze);
|
|
265
273
|
}
|
|
266
|
-
function
|
|
274
|
+
function nt(e) {
|
|
267
275
|
T(Be, e);
|
|
268
276
|
}
|
|
269
|
-
function
|
|
277
|
+
function rt() {
|
|
270
278
|
return g(Be);
|
|
271
279
|
}
|
|
272
|
-
function
|
|
280
|
+
function it(e) {
|
|
273
281
|
T(Ve, e);
|
|
274
282
|
}
|
|
275
|
-
function
|
|
283
|
+
function at() {
|
|
276
284
|
return g(Ve);
|
|
277
285
|
}
|
|
278
286
|
function ot(e) {
|
|
279
287
|
T(He, e);
|
|
280
288
|
}
|
|
281
|
-
function
|
|
289
|
+
function Q() {
|
|
282
290
|
return g(He);
|
|
283
291
|
}
|
|
284
|
-
function
|
|
292
|
+
function st(e) {
|
|
285
293
|
T(Ue, e);
|
|
286
294
|
}
|
|
287
|
-
function
|
|
295
|
+
function ct() {
|
|
288
296
|
return g(Ue);
|
|
289
297
|
}
|
|
290
|
-
function
|
|
298
|
+
function lt(e) {
|
|
291
299
|
T(We, e);
|
|
292
300
|
}
|
|
293
|
-
function
|
|
301
|
+
function ut() {
|
|
294
302
|
return g(We);
|
|
295
303
|
}
|
|
304
|
+
function dt(e) {
|
|
305
|
+
T(Ge, e);
|
|
306
|
+
}
|
|
307
|
+
function ft() {
|
|
308
|
+
return g(Ge);
|
|
309
|
+
}
|
|
296
310
|
//#endregion
|
|
297
311
|
//#region src/utils/reset.ts
|
|
298
|
-
function
|
|
299
|
-
if (n.ui)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
312
|
+
function pt(t, n, r, i) {
|
|
313
|
+
if (n.ui) {
|
|
314
|
+
if (n.readonly || n.static) return;
|
|
315
|
+
if (n.array) {
|
|
316
|
+
let a = t[n.key], o = W(n);
|
|
317
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
318
|
+
} else {
|
|
319
|
+
let a = t[n.key], o = U(n);
|
|
320
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
321
|
+
}
|
|
322
|
+
} else if (n.array) {
|
|
323
|
+
let a = t[n.key], o = W(n);
|
|
308
324
|
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
309
|
-
} else for (let e of n.children)
|
|
325
|
+
} else for (let e of n.children) pt(t[n.key], e, [...r, n.key], i);
|
|
310
326
|
}
|
|
311
|
-
function
|
|
327
|
+
function mt(t, n, r, i) {
|
|
312
328
|
let a = r.at(-1);
|
|
313
329
|
if (a === void 0) return;
|
|
314
|
-
let o =
|
|
315
|
-
if (o) if (o.ui)
|
|
316
|
-
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
let o = Se(n, r);
|
|
331
|
+
if (o) if (o.ui) {
|
|
332
|
+
if (o.readonly || o.static) return;
|
|
333
|
+
if (o.array) if (typeof a == "string") {
|
|
334
|
+
let n = K(t, r.slice(0, -1));
|
|
335
|
+
if (!n) return;
|
|
336
|
+
let s = n[a], c = W(o);
|
|
337
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
338
|
+
} else {
|
|
339
|
+
let n = K(t, r.slice(0, -1));
|
|
340
|
+
if (!n) return;
|
|
341
|
+
let s = n[a], c = U(o);
|
|
342
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
let n = K(t, r.slice(0, -1));
|
|
346
|
+
if (!n) return;
|
|
347
|
+
let s = n[a], c = U(o);
|
|
348
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
349
|
+
}
|
|
350
|
+
} else if (o.array) if (typeof a == "string") {
|
|
351
|
+
let n = K(t, r.slice(0, -1));
|
|
334
352
|
if (!n) return;
|
|
335
|
-
let s = n[a], c =
|
|
353
|
+
let s = n[a], c = W(o);
|
|
336
354
|
e(c, s) || (n[a] = c, i(r, c));
|
|
337
355
|
} else {
|
|
338
|
-
let e =
|
|
356
|
+
let e = K(t, r);
|
|
339
357
|
if (!e) return;
|
|
340
|
-
for (let t of o.children)
|
|
358
|
+
for (let t of o.children) pt(e, t, r, i);
|
|
341
359
|
}
|
|
342
360
|
else {
|
|
343
|
-
let e =
|
|
361
|
+
let e = K(t, r);
|
|
344
362
|
if (!e) return;
|
|
345
|
-
for (let t of o.children)
|
|
363
|
+
for (let t of o.children) pt(e, t, r, i);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/components/menu/func/copy.ts
|
|
368
|
+
function ht(e) {
|
|
369
|
+
let { t } = G(), n = $e(), r = tt();
|
|
370
|
+
function i() {
|
|
371
|
+
return !0;
|
|
372
|
+
}
|
|
373
|
+
function a() {
|
|
374
|
+
let t = Se(n.value, e.value);
|
|
375
|
+
if (!t) return;
|
|
376
|
+
let i = {
|
|
377
|
+
property: t,
|
|
378
|
+
object: K(r.value, e.value)
|
|
379
|
+
};
|
|
380
|
+
localStorage.setItem("propTreeCopy", JSON.stringify(i));
|
|
381
|
+
}
|
|
382
|
+
function o(e) {
|
|
383
|
+
i() && e.push({
|
|
384
|
+
title: t("x-prop-tree.copy"),
|
|
385
|
+
func: a
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
return { tryPushCopy: o };
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/components/menu/func/paste.ts
|
|
392
|
+
function gt(e) {
|
|
393
|
+
let { t } = G(), n = $e(), r = tt(), i = Q();
|
|
394
|
+
function a() {
|
|
395
|
+
if (e.value.length <= 0) return !1;
|
|
396
|
+
let t = Se(n.value, e.value);
|
|
397
|
+
if (!t) return !1;
|
|
398
|
+
let r = localStorage.getItem("propTreeCopy");
|
|
399
|
+
if (!r) return !1;
|
|
400
|
+
let i;
|
|
401
|
+
try {
|
|
402
|
+
i = JSON.parse(r);
|
|
403
|
+
} catch (e) {
|
|
404
|
+
return console.error("parse propTreeCopy failed", e), !1;
|
|
405
|
+
}
|
|
406
|
+
return !!Ee(t, i.property);
|
|
407
|
+
}
|
|
408
|
+
function o() {
|
|
409
|
+
if (e.value.length <= 0) return;
|
|
410
|
+
let t = Se(n.value, e.value);
|
|
411
|
+
if (!t) return;
|
|
412
|
+
let a = localStorage.getItem("propTreeCopy");
|
|
413
|
+
if (!a) return;
|
|
414
|
+
let o;
|
|
415
|
+
try {
|
|
416
|
+
o = JSON.parse(a);
|
|
417
|
+
} catch (e) {
|
|
418
|
+
console.error("parse propTreeCopy failed", e);
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
if (!Ee(t, o.property)) return;
|
|
422
|
+
let s = K(r.value, e.value.slice(0, -1));
|
|
423
|
+
if (!s) return;
|
|
424
|
+
let c = e.value.at(-1);
|
|
425
|
+
De(e.value, t, s, o.object, typeof c == "number" ? c : void 0, i);
|
|
426
|
+
}
|
|
427
|
+
function s(e) {
|
|
428
|
+
a() && e.push({
|
|
429
|
+
title: t("x-prop-tree.paste"),
|
|
430
|
+
func: o
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
return { tryPushPaste: s };
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/components/menu/func/reset.ts
|
|
437
|
+
function _t(e) {
|
|
438
|
+
let { t } = G(), n = $e(), r = tt(), i = at(), a = Q();
|
|
439
|
+
function o() {
|
|
440
|
+
return !(e.value.length <= 0 || !Z(i.value, e.value));
|
|
441
|
+
}
|
|
442
|
+
function s() {
|
|
443
|
+
mt(r.value, n.value, e.value, a);
|
|
346
444
|
}
|
|
445
|
+
function c(e) {
|
|
446
|
+
o() && e.push({
|
|
447
|
+
title: t("x-prop-tree.reset"),
|
|
448
|
+
func: s
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
return { tryPushReset: c };
|
|
347
452
|
}
|
|
348
453
|
//#endregion
|
|
349
454
|
//#region src/components/menu/index.vue
|
|
350
|
-
var
|
|
455
|
+
var vt = /* @__PURE__ */ m({
|
|
351
456
|
__name: "index",
|
|
352
457
|
setup(e) {
|
|
353
|
-
let
|
|
354
|
-
!(m.value.length <= 0 || !Z(i.value, m.value)) && e.push({
|
|
355
|
-
title: t("x-prop-tree.reset"),
|
|
356
|
-
func: () => {
|
|
357
|
-
pt(r.value, n.value, m.value, a);
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
}, v = (e) => {
|
|
361
|
-
e.push({
|
|
362
|
-
title: t("x-prop-tree.copy"),
|
|
363
|
-
func: () => {
|
|
364
|
-
let e = xe(n.value, m.value), t = q(r.value, m.value);
|
|
365
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
366
|
-
property: e,
|
|
367
|
-
object: t
|
|
368
|
-
}));
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
}, y = (e) => {
|
|
372
|
-
let r = () => {
|
|
373
|
-
let e = localStorage.getItem("propTreeCopy");
|
|
374
|
-
if (!e) return !1;
|
|
375
|
-
try {
|
|
376
|
-
let { property: t } = JSON.parse(e);
|
|
377
|
-
if (!t) return !1;
|
|
378
|
-
let r = xe(n.value, m.value);
|
|
379
|
-
return r ? Te(t, r) : !1;
|
|
380
|
-
} catch (e) {
|
|
381
|
-
console.error(e);
|
|
382
|
-
}
|
|
383
|
-
return !1;
|
|
384
|
-
};
|
|
385
|
-
r() && e.push({
|
|
386
|
-
title: t("x-prop-tree.paste"),
|
|
387
|
-
func: () => {
|
|
388
|
-
if (!r()) return;
|
|
389
|
-
let e = localStorage.getItem("propTreeCopy");
|
|
390
|
-
if (e) try {
|
|
391
|
-
let { object: t } = JSON.parse(e), r = xe(n.value, m.value);
|
|
392
|
-
console.log(t, r);
|
|
393
|
-
} catch (e) {
|
|
394
|
-
console.error(e);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
}, b = s(() => {
|
|
458
|
+
let t = E(0), n = E(0), r = E([]), i = s(() => [t.value, n.value]), { tryPushCopy: a } = ht(r), { tryPushPaste: l } = gt(r), { tryPushReset: d } = _t(r), m = s(() => {
|
|
399
459
|
let e = [];
|
|
400
|
-
return
|
|
401
|
-
}), { open:
|
|
402
|
-
|
|
460
|
+
return a(e), l(e), d(e), e;
|
|
461
|
+
}), { open: h } = H("propTreeMenu", (e) => {
|
|
462
|
+
t.value = e.x, n.value = e.y, r.value = e.keys;
|
|
403
463
|
});
|
|
404
464
|
return (e, t) => {
|
|
405
|
-
let n = O("v-list-item-title"), r = O("v-list-item"),
|
|
406
|
-
return w(), c(
|
|
407
|
-
modelValue: j(
|
|
408
|
-
"onUpdate:modelValue": t[0] ||= (e) => _(
|
|
465
|
+
let n = O("v-list-item-title"), r = O("v-list-item"), a = O("v-list"), s = O("v-menu");
|
|
466
|
+
return w(), c(s, {
|
|
467
|
+
modelValue: j(h),
|
|
468
|
+
"onUpdate:modelValue": t[0] ||= (e) => _(h) ? h.value = e : null,
|
|
409
469
|
"location-strategy": "connected",
|
|
410
470
|
scrim: "transparent",
|
|
411
|
-
target:
|
|
471
|
+
target: i.value
|
|
412
472
|
}, {
|
|
413
|
-
default: I(() => [p(
|
|
414
|
-
default: I(() => [(w(!0), u(o, null, D(
|
|
473
|
+
default: I(() => [p(a, null, {
|
|
474
|
+
default: I(() => [(w(!0), u(o, null, D(m.value, (e, t) => (w(), c(r, {
|
|
415
475
|
key: t,
|
|
416
476
|
link: "",
|
|
417
477
|
onClick: e.func
|
|
@@ -428,7 +488,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
428
488
|
}, 8, ["modelValue", "target"]);
|
|
429
489
|
};
|
|
430
490
|
}
|
|
431
|
-
}),
|
|
491
|
+
}), yt = { style: { pointerEvents: "none" } }, bt = /* @__PURE__ */ m({
|
|
432
492
|
__name: "index",
|
|
433
493
|
props: {
|
|
434
494
|
title: {},
|
|
@@ -450,7 +510,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
450
510
|
"delete"
|
|
451
511
|
],
|
|
452
512
|
setup(e, { emit: t }) {
|
|
453
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
513
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
454
514
|
background: a.value ? r.value : n.value,
|
|
455
515
|
height: "36px",
|
|
456
516
|
marginBottom: "1px",
|
|
@@ -466,7 +526,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
466
526
|
class: "d-flex align-center cursor-pointer",
|
|
467
527
|
style: b(o.value),
|
|
468
528
|
onClick: f,
|
|
469
|
-
onContextmenu:
|
|
529
|
+
onContextmenu: R(m, ["self", "prevent"]),
|
|
470
530
|
onMouseout: n[2] ||= (e) => a.value = !1,
|
|
471
531
|
onMouseover: n[3] ||= (e) => a.value = !0
|
|
472
532
|
}, [
|
|
@@ -474,7 +534,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
474
534
|
class: "mr-1",
|
|
475
535
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
476
536
|
}, null, 8, ["icon"]),
|
|
477
|
-
d("span",
|
|
537
|
+
d("span", yt, A(e.title), 1),
|
|
478
538
|
p(s),
|
|
479
539
|
e.hasCreate ? (w(), c(h, {
|
|
480
540
|
key: 0,
|
|
@@ -482,7 +542,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
482
542
|
density: "compact",
|
|
483
543
|
icon: "mdi-plus",
|
|
484
544
|
variant: "text",
|
|
485
|
-
onClick: n[0] ||=
|
|
545
|
+
onClick: n[0] ||= R((e) => i("create"), ["stop"])
|
|
486
546
|
})) : l("", !0),
|
|
487
547
|
e.hasDelete ? (w(), c(h, {
|
|
488
548
|
key: 1,
|
|
@@ -490,7 +550,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
490
550
|
density: "compact",
|
|
491
551
|
icon: "mdi-minus",
|
|
492
552
|
variant: "text",
|
|
493
|
-
onClick: n[1] ||=
|
|
553
|
+
onClick: n[1] ||= R((t) => i("delete", e.index), ["stop"])
|
|
494
554
|
})) : l("", !0)
|
|
495
555
|
], 36)), [[g]]);
|
|
496
556
|
};
|
|
@@ -498,14 +558,14 @@ var mt = /* @__PURE__ */ m({
|
|
|
498
558
|
});
|
|
499
559
|
//#endregion
|
|
500
560
|
//#region src/composables/adaptSlotList/index.ts
|
|
501
|
-
function
|
|
502
|
-
let e =
|
|
503
|
-
|
|
561
|
+
function xt() {
|
|
562
|
+
let e = qe(), t = Ye(), n = Ze(), { i18n: r } = re, o = E([]);
|
|
563
|
+
dt(o);
|
|
504
564
|
let s = () => {
|
|
505
565
|
if (!e.value || !t.value || !n.value) return [];
|
|
506
|
-
let s =
|
|
566
|
+
let s = ge[e.value];
|
|
507
567
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
508
|
-
let c =
|
|
568
|
+
let c = ue(t.value, n.value), l = [];
|
|
509
569
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
510
570
|
let t = s.groups[c][e], n = i(o, t.key);
|
|
511
571
|
l.push({
|
|
@@ -518,9 +578,9 @@ function _t() {
|
|
|
518
578
|
});
|
|
519
579
|
let a = 0;
|
|
520
580
|
for (let e of t.items) {
|
|
521
|
-
let n =
|
|
581
|
+
let n = ce(e);
|
|
522
582
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
523
|
-
let i =
|
|
583
|
+
let i = me("elementSlot", n.key, e.key), o = `${r.global.t(n.name)} / ${r.global.t(e.name)}`;
|
|
524
584
|
l.push({
|
|
525
585
|
id: i,
|
|
526
586
|
type: 1,
|
|
@@ -531,7 +591,7 @@ function _t() {
|
|
|
531
591
|
}
|
|
532
592
|
}
|
|
533
593
|
}
|
|
534
|
-
let { activeApp: u, depends: d } =
|
|
594
|
+
let { activeApp: u, depends: d } = ye.app;
|
|
535
595
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
536
596
|
let r = i(o, e);
|
|
537
597
|
l.push({
|
|
@@ -546,7 +606,7 @@ function _t() {
|
|
|
546
606
|
for (let e of u.comps) {
|
|
547
607
|
let t = d[e.id];
|
|
548
608
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
549
|
-
let t =
|
|
609
|
+
let t = me("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
550
610
|
l.push({
|
|
551
611
|
id: t,
|
|
552
612
|
type: 1,
|
|
@@ -580,11 +640,11 @@ function _t() {
|
|
|
580
640
|
}
|
|
581
641
|
//#endregion
|
|
582
642
|
//#region src/composables/compList/index.ts
|
|
583
|
-
function
|
|
643
|
+
function St() {
|
|
584
644
|
let e = E([]);
|
|
585
|
-
|
|
645
|
+
st(e);
|
|
586
646
|
let t = () => {
|
|
587
|
-
let { activeApp: t, depends: n } =
|
|
647
|
+
let { activeApp: t, depends: n } = ye.app, r = [];
|
|
588
648
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
589
649
|
let t = e.value.find((e) => e.id === n);
|
|
590
650
|
r.push({
|
|
@@ -618,11 +678,11 @@ function vt() {
|
|
|
618
678
|
}
|
|
619
679
|
//#endregion
|
|
620
680
|
//#region src/composables/slotList/index.ts
|
|
621
|
-
function
|
|
681
|
+
function Ct() {
|
|
622
682
|
let e = E([]);
|
|
623
|
-
|
|
683
|
+
lt(e);
|
|
624
684
|
let t = () => {
|
|
625
|
-
let { activeObject: e, activeComp: t } =
|
|
685
|
+
let { activeObject: e, activeComp: t } = ye.app;
|
|
626
686
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
627
687
|
let n = [];
|
|
628
688
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -647,7 +707,7 @@ function yt() {
|
|
|
647
707
|
}
|
|
648
708
|
//#endregion
|
|
649
709
|
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
650
|
-
var
|
|
710
|
+
var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text-grey ml-1" }, Et = /* @__PURE__ */ m({
|
|
651
711
|
__name: "group",
|
|
652
712
|
props: {
|
|
653
713
|
id: {},
|
|
@@ -657,7 +717,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
657
717
|
},
|
|
658
718
|
emits: ["x-click"],
|
|
659
719
|
setup(e, { emit: t }) {
|
|
660
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
720
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
661
721
|
background: o.value ? r.value : n.value,
|
|
662
722
|
height: "30px",
|
|
663
723
|
marginTop: "1px",
|
|
@@ -676,12 +736,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
676
736
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
677
737
|
size: "small"
|
|
678
738
|
}, null, 8, ["icon"]),
|
|
679
|
-
d("span",
|
|
680
|
-
d("span",
|
|
739
|
+
d("span", wt, A(i.title), 1),
|
|
740
|
+
d("span", Tt, A(i.count), 1)
|
|
681
741
|
], 36)), [[r]]);
|
|
682
742
|
};
|
|
683
743
|
}
|
|
684
|
-
}),
|
|
744
|
+
}), Dt = { class: "text-body-large ml-6" }, Ot = /* @__PURE__ */ m({
|
|
685
745
|
__name: "item",
|
|
686
746
|
props: {
|
|
687
747
|
id: {},
|
|
@@ -689,7 +749,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
689
749
|
},
|
|
690
750
|
emits: ["x-click"],
|
|
691
751
|
setup(e, { emit: t }) {
|
|
692
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
752
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
693
753
|
background: a.value ? r.value : n.value,
|
|
694
754
|
height: "48px",
|
|
695
755
|
marginTop: "1px",
|
|
@@ -703,13 +763,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
703
763
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
704
764
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
705
765
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
706
|
-
}, [d("span",
|
|
766
|
+
}, [d("span", Dt, A(e.title), 1)], 36)), [[r]]);
|
|
707
767
|
};
|
|
708
768
|
}
|
|
709
|
-
}),
|
|
769
|
+
}), kt = { key: 0 }, At = {
|
|
710
770
|
key: 1,
|
|
711
771
|
class: "text-body-medium text-grey ml-3"
|
|
712
|
-
},
|
|
772
|
+
}, jt = /* @__PURE__ */ m({
|
|
713
773
|
__name: "index",
|
|
714
774
|
props: {
|
|
715
775
|
modelValue: {},
|
|
@@ -722,13 +782,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
722
782
|
},
|
|
723
783
|
emits: ["update:modelValue", "update:open"],
|
|
724
784
|
setup(e) {
|
|
725
|
-
let { nameList: t } =
|
|
785
|
+
let { nameList: t } = V(), r = N(e, "modelValue"), a = N(e, "open"), s = ft(), d = (e) => {
|
|
726
786
|
let t = i(s, e);
|
|
727
787
|
t && n(s, e, !t.collapse);
|
|
728
788
|
}, f = (e) => {
|
|
729
789
|
r.value = e, a.value = !1;
|
|
730
790
|
};
|
|
731
|
-
return (e, n) => j(s).length > 0 ? (w(), u("div",
|
|
791
|
+
return (e, n) => j(s).length > 0 ? (w(), u("div", kt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(Et, {
|
|
732
792
|
key: 0,
|
|
733
793
|
id: e.id,
|
|
734
794
|
collapse: e.collapse,
|
|
@@ -740,18 +800,18 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
740
800
|
"collapse",
|
|
741
801
|
"count",
|
|
742
802
|
"title"
|
|
743
|
-
])) : l("", !0), e.type === 1 && e.show ? (w(), c(
|
|
803
|
+
])) : l("", !0), e.type === 1 && e.show ? (w(), c(Ot, {
|
|
744
804
|
key: 1,
|
|
745
805
|
id: e.id,
|
|
746
806
|
title: e.name,
|
|
747
807
|
onXClick: f
|
|
748
|
-
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div",
|
|
808
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(t)([
|
|
749
809
|
"x-prop-tree.no",
|
|
750
810
|
"x-prop-tree.adapt",
|
|
751
811
|
"x-prop-tree.slot"
|
|
752
812
|
])), 1));
|
|
753
813
|
}
|
|
754
|
-
}),
|
|
814
|
+
}), Mt = { class: "text-body-large" }, Nt = /* @__PURE__ */ m({
|
|
755
815
|
__name: "index",
|
|
756
816
|
props: /* @__PURE__ */ v({
|
|
757
817
|
hasDelete: {
|
|
@@ -768,7 +828,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
768
828
|
}),
|
|
769
829
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
770
830
|
setup(e, { emit: t }) {
|
|
771
|
-
let { t: n } =
|
|
831
|
+
let { t: n } = G(), r = be(), { sysBarAvail: a, nameList: o } = V(), { backgroundColor1: u } = B(), m = N(e, "modelValue"), h = t, g = ft(), v = s(() => {
|
|
772
832
|
let e = "100%";
|
|
773
833
|
return r.mdAndUp.value && (e = "400px"), {
|
|
774
834
|
background: u.value,
|
|
@@ -785,7 +845,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
785
845
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
786
846
|
let e = i(g, m.value);
|
|
787
847
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
788
|
-
}), { open: E } =
|
|
848
|
+
}), { open: E } = H(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
789
849
|
return C(() => {
|
|
790
850
|
E.value = !1;
|
|
791
851
|
}), (t, n) => {
|
|
@@ -797,7 +857,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
797
857
|
"no-click-animation": "",
|
|
798
858
|
persistent: "",
|
|
799
859
|
transition: "scroll-x-reverse-transition",
|
|
800
|
-
onKeydown: n[7] ||= R(
|
|
860
|
+
onKeydown: n[7] ||= ne(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
801
861
|
}, {
|
|
802
862
|
activator: I(({ props: t }) => [p(r, y(t, {
|
|
803
863
|
block: "",
|
|
@@ -812,12 +872,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
812
872
|
density: "compact",
|
|
813
873
|
icon: "mdi-minus",
|
|
814
874
|
variant: "text",
|
|
815
|
-
onClick: n[0] ||=
|
|
875
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
816
876
|
})) : l("", !0)]),
|
|
817
877
|
default: I(() => [d("div", {
|
|
818
878
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
819
|
-
onClick: n[4] ||=
|
|
820
|
-
onContextmenu: n[5] ||=
|
|
879
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
880
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
821
881
|
}, [d("div", {
|
|
822
882
|
class: "elevation-2",
|
|
823
883
|
style: b(v.value)
|
|
@@ -837,7 +897,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
837
897
|
icon: "mdi-close",
|
|
838
898
|
variant: "text",
|
|
839
899
|
onClick: n[1] ||= (e) => E.value = !1
|
|
840
|
-
}), d("span",
|
|
900
|
+
}), d("span", Mt, A(j(o)([
|
|
841
901
|
"x-prop-tree.select",
|
|
842
902
|
"x-prop-tree.adapt",
|
|
843
903
|
"x-prop-tree.slot"
|
|
@@ -847,7 +907,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
847
907
|
d("div", {
|
|
848
908
|
class: "overflow-y-auto",
|
|
849
909
|
style: b(x.value)
|
|
850
|
-
}, [p(
|
|
910
|
+
}, [p(jt, {
|
|
851
911
|
modelValue: m.value,
|
|
852
912
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
853
913
|
open: j(E),
|
|
@@ -858,7 +918,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
858
918
|
}, 8, ["modelValue"]);
|
|
859
919
|
};
|
|
860
920
|
}
|
|
861
|
-
}),
|
|
921
|
+
}), Pt = { class: "text-label-large ml-1" }, Ft = { class: "text-body-small text-grey ml-1" }, It = /* @__PURE__ */ m({
|
|
862
922
|
__name: "group",
|
|
863
923
|
props: {
|
|
864
924
|
id: {},
|
|
@@ -868,7 +928,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
868
928
|
},
|
|
869
929
|
emits: ["x-click"],
|
|
870
930
|
setup(e, { emit: t }) {
|
|
871
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
931
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
872
932
|
background: o.value ? r.value : n.value,
|
|
873
933
|
height: "30px",
|
|
874
934
|
marginTop: "1px",
|
|
@@ -887,12 +947,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
887
947
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
888
948
|
size: "small"
|
|
889
949
|
}, null, 8, ["icon"]),
|
|
890
|
-
d("span",
|
|
891
|
-
d("span",
|
|
950
|
+
d("span", Pt, A(i.title), 1),
|
|
951
|
+
d("span", Ft, A(i.count), 1)
|
|
892
952
|
], 36)), [[r]]);
|
|
893
953
|
};
|
|
894
954
|
}
|
|
895
|
-
}),
|
|
955
|
+
}), Lt = { class: "text-body-large ml-6" }, Rt = /* @__PURE__ */ m({
|
|
896
956
|
__name: "item",
|
|
897
957
|
props: {
|
|
898
958
|
id: {},
|
|
@@ -900,7 +960,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
900
960
|
},
|
|
901
961
|
emits: ["x-click"],
|
|
902
962
|
setup(e, { emit: t }) {
|
|
903
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
963
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
904
964
|
background: o.value ? r.value : n.value,
|
|
905
965
|
height: "48px",
|
|
906
966
|
marginTop: "1px",
|
|
@@ -914,13 +974,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
914
974
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
915
975
|
onMouseout: t[1] ||= (e) => o.value = !1,
|
|
916
976
|
onMouseover: t[2] ||= (e) => o.value = !0
|
|
917
|
-
}, [d("span",
|
|
977
|
+
}, [d("span", Lt, A(i.title), 1)], 36)), [[n]]);
|
|
918
978
|
};
|
|
919
979
|
}
|
|
920
|
-
}),
|
|
980
|
+
}), zt = { key: 0 }, Bt = {
|
|
921
981
|
key: 1,
|
|
922
982
|
class: "text-body-medium text-grey ml-3"
|
|
923
|
-
},
|
|
983
|
+
}, Vt = /* @__PURE__ */ m({
|
|
924
984
|
__name: "index",
|
|
925
985
|
props: {
|
|
926
986
|
modelValue: {},
|
|
@@ -933,13 +993,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
933
993
|
},
|
|
934
994
|
emits: ["update:modelValue", "update:open"],
|
|
935
995
|
setup(e) {
|
|
936
|
-
let { nameList: t } =
|
|
996
|
+
let { nameList: t } = V(), r = N(e, "modelValue"), a = N(e, "open"), s = ct(), d = (e) => {
|
|
937
997
|
let t = i(s, e);
|
|
938
998
|
t && n(s, e, !t.collapse);
|
|
939
999
|
}, f = (e) => {
|
|
940
|
-
r.value = e, a.value = !1,
|
|
1000
|
+
r.value = e, a.value = !1, z.emit("refreshDepends");
|
|
941
1001
|
};
|
|
942
|
-
return (e, n) => j(s).length > 0 ? (w(), u("div",
|
|
1002
|
+
return (e, n) => j(s).length > 0 ? (w(), u("div", zt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(It, {
|
|
943
1003
|
key: 0,
|
|
944
1004
|
id: e.id,
|
|
945
1005
|
collapse: e.collapse,
|
|
@@ -951,14 +1011,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
951
1011
|
"collapse",
|
|
952
1012
|
"count",
|
|
953
1013
|
"title"
|
|
954
|
-
])) : l("", !0), e.type === 1 && e.show ? (w(), c(
|
|
1014
|
+
])) : l("", !0), e.type === 1 && e.show ? (w(), c(Rt, {
|
|
955
1015
|
key: 1,
|
|
956
1016
|
id: e.id,
|
|
957
1017
|
title: e.name,
|
|
958
1018
|
onXClick: f
|
|
959
|
-
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div",
|
|
1019
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
960
1020
|
}
|
|
961
|
-
}),
|
|
1021
|
+
}), Ht = { class: "text-body-large" }, Ut = /* @__PURE__ */ m({
|
|
962
1022
|
__name: "index",
|
|
963
1023
|
props: /* @__PURE__ */ v({
|
|
964
1024
|
hasDelete: {
|
|
@@ -975,7 +1035,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
975
1035
|
}),
|
|
976
1036
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
977
1037
|
setup(e, { emit: t }) {
|
|
978
|
-
let { t: n } =
|
|
1038
|
+
let { t: n } = G(), r = be(), { sysBarAvail: a, nameList: o } = V(), { backgroundColor1: u } = B(), m = N(e, "modelValue"), h = t, g = ct(), v = s(() => {
|
|
979
1039
|
let e = "100%";
|
|
980
1040
|
return r.mdAndUp.value && (e = "400px"), {
|
|
981
1041
|
background: u.value,
|
|
@@ -992,7 +1052,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
992
1052
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
993
1053
|
let e = i(g, m.value);
|
|
994
1054
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
995
|
-
}), { open: E } =
|
|
1055
|
+
}), { open: E } = H(`propTreeCompSelectDlg${M()}`);
|
|
996
1056
|
return C(() => {
|
|
997
1057
|
E.value = !1;
|
|
998
1058
|
}), (t, n) => {
|
|
@@ -1004,7 +1064,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1004
1064
|
"no-click-animation": "",
|
|
1005
1065
|
persistent: "",
|
|
1006
1066
|
transition: "scroll-x-reverse-transition",
|
|
1007
|
-
onKeydown: n[7] ||= R(
|
|
1067
|
+
onKeydown: n[7] ||= ne(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1008
1068
|
}, {
|
|
1009
1069
|
activator: I(({ props: t }) => [p(r, y(t, {
|
|
1010
1070
|
block: "",
|
|
@@ -1019,12 +1079,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1019
1079
|
density: "compact",
|
|
1020
1080
|
icon: "mdi-minus",
|
|
1021
1081
|
variant: "text",
|
|
1022
|
-
onClick: n[0] ||=
|
|
1082
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
1023
1083
|
})) : l("", !0)]),
|
|
1024
1084
|
default: I(() => [d("div", {
|
|
1025
1085
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1026
|
-
onClick: n[4] ||=
|
|
1027
|
-
onContextmenu: n[5] ||=
|
|
1086
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
1087
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
1028
1088
|
}, [d("div", {
|
|
1029
1089
|
class: "elevation-2",
|
|
1030
1090
|
style: b(v.value)
|
|
@@ -1044,13 +1104,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1044
1104
|
icon: "mdi-close",
|
|
1045
1105
|
variant: "text",
|
|
1046
1106
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1047
|
-
}), d("span",
|
|
1107
|
+
}), d("span", Ht, A(j(o)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1048
1108
|
_: 1
|
|
1049
1109
|
}),
|
|
1050
1110
|
d("div", {
|
|
1051
1111
|
class: "overflow-y-auto",
|
|
1052
1112
|
style: b(x.value)
|
|
1053
|
-
}, [p(
|
|
1113
|
+
}, [p(Vt, {
|
|
1054
1114
|
modelValue: m.value,
|
|
1055
1115
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1056
1116
|
open: j(E),
|
|
@@ -1061,7 +1121,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1061
1121
|
}, 8, ["modelValue"]);
|
|
1062
1122
|
};
|
|
1063
1123
|
}
|
|
1064
|
-
}),
|
|
1124
|
+
}), Wt = { class: "d-flex justify-space-between align-center" }, Gt = /* @__PURE__ */ m({
|
|
1065
1125
|
__name: "index",
|
|
1066
1126
|
props: /* @__PURE__ */ v({
|
|
1067
1127
|
hasDelete: {
|
|
@@ -1078,9 +1138,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1078
1138
|
}),
|
|
1079
1139
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1080
1140
|
setup(e, { emit: t }) {
|
|
1081
|
-
let { isMobile: n } =
|
|
1141
|
+
let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1082
1142
|
if (!t || e.readonly || !n()) return;
|
|
1083
|
-
let i = await
|
|
1143
|
+
let i = await se({
|
|
1084
1144
|
title: "",
|
|
1085
1145
|
value: r.value
|
|
1086
1146
|
});
|
|
@@ -1088,7 +1148,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1088
1148
|
};
|
|
1089
1149
|
return (t, n) => {
|
|
1090
1150
|
let o = O("v-text-field"), s = O("v-btn"), d = k("ripple");
|
|
1091
|
-
return w(), u("div",
|
|
1151
|
+
return w(), u("div", Wt, [L(p(o, {
|
|
1092
1152
|
modelValue: r.value,
|
|
1093
1153
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1094
1154
|
density: "compact",
|
|
@@ -1107,11 +1167,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1107
1167
|
density: "compact",
|
|
1108
1168
|
icon: "mdi-minus",
|
|
1109
1169
|
variant: "text",
|
|
1110
|
-
onClick: n[1] ||=
|
|
1170
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1111
1171
|
})) : l("", !0)]);
|
|
1112
1172
|
};
|
|
1113
1173
|
}
|
|
1114
|
-
}),
|
|
1174
|
+
}), Kt = /* @__PURE__ */ m({
|
|
1115
1175
|
__name: "editor",
|
|
1116
1176
|
props: {
|
|
1117
1177
|
modelValue: { required: !0 },
|
|
@@ -1130,14 +1190,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1130
1190
|
"update:scale"
|
|
1131
1191
|
],
|
|
1132
1192
|
setup(e, { expose: t }) {
|
|
1133
|
-
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a =
|
|
1193
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = ie(), o = ae(), s = qe(), l = te("target"), u = () => {
|
|
1134
1194
|
let e = JSON.parse(n.value);
|
|
1135
1195
|
l.value?.load(e);
|
|
1136
1196
|
};
|
|
1137
1197
|
return t({ save: () => {
|
|
1138
1198
|
let e = l.value.save();
|
|
1139
1199
|
n.value = JSON.stringify(e, null, 2);
|
|
1140
|
-
} }), (e, t) => (w(), c(j(
|
|
1200
|
+
} }), (e, t) => (w(), c(j(xe), {
|
|
1141
1201
|
ref_key: "target",
|
|
1142
1202
|
ref: l,
|
|
1143
1203
|
lock: r.value,
|
|
@@ -1157,7 +1217,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1157
1217
|
"version"
|
|
1158
1218
|
]));
|
|
1159
1219
|
}
|
|
1160
|
-
}),
|
|
1220
|
+
}), qt = { class: "text-body-large" }, Jt = /* @__PURE__ */ m({
|
|
1161
1221
|
__name: "index",
|
|
1162
1222
|
props: /* @__PURE__ */ v({
|
|
1163
1223
|
hasDelete: {
|
|
@@ -1174,14 +1234,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1174
1234
|
}),
|
|
1175
1235
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1176
1236
|
setup(e, { emit: t }) {
|
|
1177
|
-
let { t: n } =
|
|
1237
|
+
let { t: n } = G(), { sysBarAvail: r } = V(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: o } = B(), u = N(e, "modelValue"), m = t, h = E(!1), g = E(1), v = s(() => {
|
|
1178
1238
|
let e = 48;
|
|
1179
1239
|
return r.value && (e += 24), {
|
|
1180
1240
|
position: "relative",
|
|
1181
1241
|
background: a.value,
|
|
1182
1242
|
height: `calc(100% - ${e}px)`
|
|
1183
1243
|
};
|
|
1184
|
-
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } =
|
|
1244
|
+
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = H(`propTreejsonEditorDlg${M()}`);
|
|
1185
1245
|
C(() => {
|
|
1186
1246
|
S.value = !1;
|
|
1187
1247
|
});
|
|
@@ -1198,7 +1258,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1198
1258
|
"no-click-animation": "",
|
|
1199
1259
|
persistent: "",
|
|
1200
1260
|
transition: "dialog-bottom-transition",
|
|
1201
|
-
onKeydown: n[6] ||= R(
|
|
1261
|
+
onKeydown: n[6] ||= ne(R((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1202
1262
|
}, {
|
|
1203
1263
|
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1204
1264
|
block: "",
|
|
@@ -1213,7 +1273,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1213
1273
|
density: "compact",
|
|
1214
1274
|
icon: "mdi-minus",
|
|
1215
1275
|
variant: "text",
|
|
1216
|
-
onClick: n[0] ||=
|
|
1276
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1217
1277
|
})) : l("", !0)]),
|
|
1218
1278
|
default: I(() => [p(s, {
|
|
1219
1279
|
color: j(i),
|
|
@@ -1238,12 +1298,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1238
1298
|
variant: "text",
|
|
1239
1299
|
onClick: n[1] ||= (e) => S.value = !1
|
|
1240
1300
|
}),
|
|
1241
|
-
d("span",
|
|
1301
|
+
d("span", qt, A(x.value), 1),
|
|
1242
1302
|
p(C)
|
|
1243
1303
|
]),
|
|
1244
1304
|
_: 1
|
|
1245
1305
|
}, 8, ["color"]),
|
|
1246
|
-
d("div", { style: b(v.value) }, [p(
|
|
1306
|
+
d("div", { style: b(v.value) }, [p(Kt, {
|
|
1247
1307
|
ref_key: "editor",
|
|
1248
1308
|
ref: T,
|
|
1249
1309
|
modelValue: u.value,
|
|
@@ -1264,7 +1324,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1264
1324
|
}, 8, ["modelValue"]);
|
|
1265
1325
|
};
|
|
1266
1326
|
}
|
|
1267
|
-
}),
|
|
1327
|
+
}), Yt = { class: "d-flex justify-space-between align-center" }, Xt = /* @__PURE__ */ m({
|
|
1268
1328
|
__name: "color",
|
|
1269
1329
|
props: /* @__PURE__ */ v({
|
|
1270
1330
|
hasDelete: {
|
|
@@ -1281,10 +1341,10 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1281
1341
|
}),
|
|
1282
1342
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1283
1343
|
setup(e, { emit: t }) {
|
|
1284
|
-
let { t: n } =
|
|
1344
|
+
let { t: n } = G(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1285
1345
|
let t = "100%";
|
|
1286
1346
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1287
|
-
}), o = s(() => e.readonly), { open: u } =
|
|
1347
|
+
}), o = s(() => e.readonly), { open: u } = H(`propTreeColorPickerMenu${M()}`);
|
|
1288
1348
|
return C(() => {
|
|
1289
1349
|
u.value = !1;
|
|
1290
1350
|
}), (t, s) => {
|
|
@@ -1295,7 +1355,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1295
1355
|
"close-on-content-click": !1,
|
|
1296
1356
|
scrim: "transparent"
|
|
1297
1357
|
}, {
|
|
1298
|
-
activator: I(({ props: t }) => [d("div",
|
|
1358
|
+
activator: I(({ props: t }) => [d("div", Yt, [d("div", {
|
|
1299
1359
|
class: "flex-grow-1",
|
|
1300
1360
|
style: b(a.value)
|
|
1301
1361
|
}, [p(m, y(t, {
|
|
@@ -1312,7 +1372,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1312
1372
|
density: "compact",
|
|
1313
1373
|
icon: "mdi-minus",
|
|
1314
1374
|
variant: "text",
|
|
1315
|
-
onClick: s[0] ||=
|
|
1375
|
+
onClick: s[0] ||= R((e) => i("delete"), ["stop"])
|
|
1316
1376
|
})) : l("", !0)])]),
|
|
1317
1377
|
default: I(() => [p(h, {
|
|
1318
1378
|
modelValue: r.value,
|
|
@@ -1325,7 +1385,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1325
1385
|
}, 8, ["modelValue"]);
|
|
1326
1386
|
};
|
|
1327
1387
|
}
|
|
1328
|
-
}),
|
|
1388
|
+
}), Zt = { class: "d-flex justify-space-between align-center my-2" }, Qt = { class: "flex-grow-1" }, $t = /* @__PURE__ */ m({
|
|
1329
1389
|
__name: "index",
|
|
1330
1390
|
props: /* @__PURE__ */ v({
|
|
1331
1391
|
hasDelete: {
|
|
@@ -1343,7 +1403,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1343
1403
|
}),
|
|
1344
1404
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1345
1405
|
setup(e, { emit: t }) {
|
|
1346
|
-
let { t: n } =
|
|
1406
|
+
let { t: n } = G(), { isMobile: r } = V(), i = N(e, "modelValue"), a = t, o = s(() => de(e.types)), f = E(""), m = s(() => {
|
|
1347
1407
|
let e = [];
|
|
1348
1408
|
for (let { value: t, title: r } of o.value) e.push({
|
|
1349
1409
|
value: t,
|
|
@@ -1367,7 +1427,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1367
1427
|
}
|
|
1368
1428
|
let v = E(0), y = async (e) => {
|
|
1369
1429
|
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1370
|
-
let t = await
|
|
1430
|
+
let t = await oe({
|
|
1371
1431
|
title: "",
|
|
1372
1432
|
value: v.value,
|
|
1373
1433
|
precision: h.value.precision,
|
|
@@ -1378,31 +1438,31 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1378
1438
|
t !== void 0 && (v.value = t);
|
|
1379
1439
|
};
|
|
1380
1440
|
F(() => {
|
|
1381
|
-
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value =
|
|
1441
|
+
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = he(i.value, h.value.unit));
|
|
1382
1442
|
}), P(v, (e) => {
|
|
1383
1443
|
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1384
1444
|
});
|
|
1385
1445
|
let b = E("#ff00ff");
|
|
1386
1446
|
F(() => {
|
|
1387
|
-
h.value?.trait === "hexColor" &&
|
|
1447
|
+
h.value?.trait === "hexColor" && fe(i.value) && (b.value = i.value);
|
|
1388
1448
|
}), P(b, (e) => {
|
|
1389
1449
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1390
1450
|
});
|
|
1391
1451
|
let x = E("primary"), S = s(() => {
|
|
1392
1452
|
let e = [];
|
|
1393
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1453
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of ve) e.push({
|
|
1394
1454
|
value: t,
|
|
1395
1455
|
title: n(r)
|
|
1396
1456
|
});
|
|
1397
1457
|
return e;
|
|
1398
1458
|
});
|
|
1399
1459
|
return F(() => {
|
|
1400
|
-
h.value?.trait === "themeColor" &&
|
|
1460
|
+
h.value?.trait === "themeColor" && pe(i.value) && (x.value = i.value);
|
|
1401
1461
|
}), P(x, (e) => {
|
|
1402
1462
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1403
1463
|
}), (t, n) => {
|
|
1404
1464
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), s = k("ripple");
|
|
1405
|
-
return w(), u("div",
|
|
1465
|
+
return w(), u("div", Zt, [d("div", Qt, [
|
|
1406
1466
|
L(p(r, {
|
|
1407
1467
|
modelValue: f.value,
|
|
1408
1468
|
"onUpdate:modelValue": [n[0] ||= (e) => f.value = e, g],
|
|
@@ -1448,7 +1508,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1448
1508
|
void 0,
|
|
1449
1509
|
{ stop: !0 }
|
|
1450
1510
|
]]) : l("", !0),
|
|
1451
|
-
h.value?.trait === "hexColor" ? (w(), c(
|
|
1511
|
+
h.value?.trait === "hexColor" ? (w(), c(Xt, {
|
|
1452
1512
|
key: 1,
|
|
1453
1513
|
modelValue: b.value,
|
|
1454
1514
|
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
@@ -1473,11 +1533,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1473
1533
|
density: "compact",
|
|
1474
1534
|
icon: "mdi-minus",
|
|
1475
1535
|
variant: "text",
|
|
1476
|
-
onClick: n[4] ||=
|
|
1536
|
+
onClick: n[4] ||= R((e) => a("delete"), ["stop"])
|
|
1477
1537
|
})) : l("", !0)]);
|
|
1478
1538
|
};
|
|
1479
1539
|
}
|
|
1480
|
-
}),
|
|
1540
|
+
}), en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ m({
|
|
1481
1541
|
__name: "index",
|
|
1482
1542
|
props: /* @__PURE__ */ v({
|
|
1483
1543
|
hasDelete: {
|
|
@@ -1498,9 +1558,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1498
1558
|
}),
|
|
1499
1559
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1500
1560
|
setup(e, { emit: t }) {
|
|
1501
|
-
let { isMobile: n } =
|
|
1561
|
+
let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1502
1562
|
if (!t || e.readonly || !n()) return;
|
|
1503
|
-
let i = await
|
|
1563
|
+
let i = await oe({
|
|
1504
1564
|
title: "",
|
|
1505
1565
|
value: r.value,
|
|
1506
1566
|
precision: e.precision,
|
|
@@ -1512,7 +1572,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1512
1572
|
};
|
|
1513
1573
|
return (t, n) => {
|
|
1514
1574
|
let o = O("v-number-input"), s = O("v-btn"), d = k("ripple");
|
|
1515
|
-
return w(), u("div",
|
|
1575
|
+
return w(), u("div", en, [L(p(o, {
|
|
1516
1576
|
modelValue: r.value,
|
|
1517
1577
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1518
1578
|
"control-variant": "stacked",
|
|
@@ -1543,11 +1603,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1543
1603
|
density: "compact",
|
|
1544
1604
|
icon: "mdi-minus",
|
|
1545
1605
|
variant: "text",
|
|
1546
|
-
onClick: n[1] ||=
|
|
1606
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1547
1607
|
})) : l("", !0)]);
|
|
1548
1608
|
};
|
|
1549
1609
|
}
|
|
1550
|
-
}),
|
|
1610
|
+
}), nn = { class: "d-flex justify-space-between align-center my-2" }, rn = { class: "flex-grow-1" }, an = /* @__PURE__ */ m({
|
|
1551
1611
|
__name: "index",
|
|
1552
1612
|
props: /* @__PURE__ */ v({
|
|
1553
1613
|
hasDelete: {
|
|
@@ -1564,7 +1624,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1564
1624
|
}),
|
|
1565
1625
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1566
1626
|
setup(e, { emit: t }) {
|
|
1567
|
-
let { t: n } =
|
|
1627
|
+
let { t: n } = G(), { isMobile: r } = V(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
|
|
1568
1628
|
F(() => {
|
|
1569
1629
|
let e = i.value.split(",");
|
|
1570
1630
|
e.length < 1 || (o.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? f.value = parseInt(e[1]) : f.value = 0));
|
|
@@ -1577,7 +1637,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1577
1637
|
value: "",
|
|
1578
1638
|
title: n("x-runtime-lib.notSet")
|
|
1579
1639
|
}];
|
|
1580
|
-
for (let t of
|
|
1640
|
+
for (let t of _e) e.push({
|
|
1581
1641
|
value: t,
|
|
1582
1642
|
title: n(`x-runtime-lib.${t}`)
|
|
1583
1643
|
});
|
|
@@ -1592,7 +1652,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1592
1652
|
});
|
|
1593
1653
|
async function _(e) {
|
|
1594
1654
|
if (!e || !r()) return;
|
|
1595
|
-
let t = await
|
|
1655
|
+
let t = await oe({
|
|
1596
1656
|
title: "",
|
|
1597
1657
|
value: f.value,
|
|
1598
1658
|
precision: 0,
|
|
@@ -1607,7 +1667,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1607
1667
|
}
|
|
1608
1668
|
return (t, n) => {
|
|
1609
1669
|
let r = O("v-select"), i = O("v-number-input"), s = O("v-btn"), m = k("ripple");
|
|
1610
|
-
return w(), u("div",
|
|
1670
|
+
return w(), u("div", nn, [d("div", rn, [L(p(r, {
|
|
1611
1671
|
modelValue: o.value,
|
|
1612
1672
|
"onUpdate:modelValue": [n[0] ||= (e) => o.value = e, g],
|
|
1613
1673
|
density: "compact",
|
|
@@ -1649,11 +1709,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1649
1709
|
density: "compact",
|
|
1650
1710
|
icon: "mdi-minus",
|
|
1651
1711
|
variant: "text",
|
|
1652
|
-
onClick: n[2] ||=
|
|
1712
|
+
onClick: n[2] ||= R((e) => a("delete"), ["stop"])
|
|
1653
1713
|
})) : l("", !0)]);
|
|
1654
1714
|
};
|
|
1655
1715
|
}
|
|
1656
|
-
}),
|
|
1716
|
+
}), on = { class: "d-flex justify-space-between align-center" }, sn = /* @__PURE__ */ m({
|
|
1657
1717
|
__name: "index",
|
|
1658
1718
|
props: /* @__PURE__ */ v({
|
|
1659
1719
|
hasDelete: {
|
|
@@ -1671,9 +1731,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1671
1731
|
}),
|
|
1672
1732
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1673
1733
|
setup(e, { emit: t }) {
|
|
1674
|
-
let { t: n } =
|
|
1734
|
+
let { t: n } = G(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1675
1735
|
let t = [];
|
|
1676
|
-
return
|
|
1736
|
+
return le(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1677
1737
|
let i = e;
|
|
1678
1738
|
r && (i = n(r)), t.push({
|
|
1679
1739
|
value: e,
|
|
@@ -1683,7 +1743,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1683
1743
|
});
|
|
1684
1744
|
return (t, n) => {
|
|
1685
1745
|
let o = O("v-select"), s = O("v-btn"), d = k("ripple");
|
|
1686
|
-
return w(), u("div",
|
|
1746
|
+
return w(), u("div", on, [L(p(o, {
|
|
1687
1747
|
modelValue: r.value,
|
|
1688
1748
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1689
1749
|
density: "compact",
|
|
@@ -1706,11 +1766,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1706
1766
|
density: "compact",
|
|
1707
1767
|
icon: "mdi-minus",
|
|
1708
1768
|
variant: "text",
|
|
1709
|
-
onClick: n[1] ||=
|
|
1769
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1710
1770
|
})) : l("", !0)]);
|
|
1711
1771
|
};
|
|
1712
1772
|
}
|
|
1713
|
-
}),
|
|
1773
|
+
}), cn = { class: "text-body-large ml-6" }, ln = /* @__PURE__ */ m({
|
|
1714
1774
|
__name: "item",
|
|
1715
1775
|
props: {
|
|
1716
1776
|
id: {},
|
|
@@ -1718,7 +1778,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1718
1778
|
},
|
|
1719
1779
|
emits: ["x-click"],
|
|
1720
1780
|
setup(e, { emit: t }) {
|
|
1721
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1781
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
1722
1782
|
background: a.value ? r.value : n.value,
|
|
1723
1783
|
height: "48px",
|
|
1724
1784
|
marginTop: "1px",
|
|
@@ -1732,13 +1792,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1732
1792
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1733
1793
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1734
1794
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1735
|
-
}, [d("span",
|
|
1795
|
+
}, [d("span", cn, A(e.title), 1)], 36)), [[r]]);
|
|
1736
1796
|
};
|
|
1737
1797
|
}
|
|
1738
|
-
}),
|
|
1798
|
+
}), un = { key: 0 }, dn = {
|
|
1739
1799
|
key: 1,
|
|
1740
1800
|
class: "text-body-medium text-grey ml-3"
|
|
1741
|
-
},
|
|
1801
|
+
}, fn = /* @__PURE__ */ m({
|
|
1742
1802
|
__name: "index",
|
|
1743
1803
|
props: {
|
|
1744
1804
|
modelValue: {},
|
|
@@ -1751,17 +1811,17 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1751
1811
|
},
|
|
1752
1812
|
emits: ["update:modelValue", "update:open"],
|
|
1753
1813
|
setup(e) {
|
|
1754
|
-
let { nameList: t } =
|
|
1814
|
+
let { nameList: t } = V(), n = N(e, "modelValue"), r = N(e, "open"), i = ut(), a = (e) => {
|
|
1755
1815
|
n.value = e, r.value = !1;
|
|
1756
1816
|
};
|
|
1757
|
-
return (e, n) => j(i).length > 0 ? (w(), u("div",
|
|
1817
|
+
return (e, n) => j(i).length > 0 ? (w(), u("div", un, [(w(!0), u(o, null, D(j(i), (e) => (w(), c(ln, {
|
|
1758
1818
|
key: e.id,
|
|
1759
1819
|
id: e.id,
|
|
1760
1820
|
title: e.name,
|
|
1761
1821
|
onXClick: a
|
|
1762
|
-
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div",
|
|
1822
|
+
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1763
1823
|
}
|
|
1764
|
-
}),
|
|
1824
|
+
}), pn = { class: "text-body-large" }, mn = /* @__PURE__ */ m({
|
|
1765
1825
|
__name: "index",
|
|
1766
1826
|
props: /* @__PURE__ */ v({
|
|
1767
1827
|
hasDelete: {
|
|
@@ -1778,7 +1838,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1778
1838
|
}),
|
|
1779
1839
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1780
1840
|
setup(e, { emit: t }) {
|
|
1781
|
-
let { t: n } =
|
|
1841
|
+
let { t: n } = G(), r = be(), { sysBarAvail: i, nameList: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ut(), g = s(() => {
|
|
1782
1842
|
let e = "100%";
|
|
1783
1843
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1784
1844
|
background: o.value,
|
|
@@ -1795,7 +1855,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1795
1855
|
if (!u.value) return n("x-runtime-lib.notSet");
|
|
1796
1856
|
let e = h.value.find((e) => e.id === u.value);
|
|
1797
1857
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1798
|
-
}), { open: T } =
|
|
1858
|
+
}), { open: T } = H(`propTreeSlotSelectDlg${M()}`);
|
|
1799
1859
|
return C(() => {
|
|
1800
1860
|
T.value = !1;
|
|
1801
1861
|
}), (t, n) => {
|
|
@@ -1807,7 +1867,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1807
1867
|
"no-click-animation": "",
|
|
1808
1868
|
persistent: "",
|
|
1809
1869
|
transition: "scroll-x-reverse-transition",
|
|
1810
|
-
onKeydown: n[7] ||= R(
|
|
1870
|
+
onKeydown: n[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1811
1871
|
}, {
|
|
1812
1872
|
activator: I(({ props: t }) => [p(r, y(t, {
|
|
1813
1873
|
block: "",
|
|
@@ -1822,12 +1882,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1822
1882
|
density: "compact",
|
|
1823
1883
|
icon: "mdi-minus",
|
|
1824
1884
|
variant: "text",
|
|
1825
|
-
onClick: n[0] ||=
|
|
1885
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1826
1886
|
})) : l("", !0)]),
|
|
1827
1887
|
default: I(() => [d("div", {
|
|
1828
1888
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1829
|
-
onClick: n[4] ||=
|
|
1830
|
-
onContextmenu: n[5] ||=
|
|
1889
|
+
onClick: n[4] ||= R((e) => T.value = !1, ["self"]),
|
|
1890
|
+
onContextmenu: n[5] ||= R((e) => T.value = !1, ["self", "prevent"])
|
|
1831
1891
|
}, [d("div", {
|
|
1832
1892
|
class: "elevation-2",
|
|
1833
1893
|
style: b(g.value)
|
|
@@ -1847,13 +1907,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1847
1907
|
icon: "mdi-close",
|
|
1848
1908
|
variant: "text",
|
|
1849
1909
|
onClick: n[1] ||= (e) => T.value = !1
|
|
1850
|
-
}), d("span",
|
|
1910
|
+
}), d("span", pn, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1851
1911
|
_: 1
|
|
1852
1912
|
}),
|
|
1853
1913
|
d("div", {
|
|
1854
1914
|
class: "overflow-y-auto",
|
|
1855
1915
|
style: b(v.value)
|
|
1856
|
-
}, [p(
|
|
1916
|
+
}, [p(fn, {
|
|
1857
1917
|
modelValue: u.value,
|
|
1858
1918
|
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
1859
1919
|
open: j(T),
|
|
@@ -1864,7 +1924,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1864
1924
|
}, 8, ["modelValue"]);
|
|
1865
1925
|
};
|
|
1866
1926
|
}
|
|
1867
|
-
}),
|
|
1927
|
+
}), hn = { class: "d-flex justify-space-between align-center" }, gn = /* @__PURE__ */ m({
|
|
1868
1928
|
__name: "index",
|
|
1869
1929
|
props: /* @__PURE__ */ v({
|
|
1870
1930
|
hasDelete: {
|
|
@@ -1884,7 +1944,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1884
1944
|
let n = N(e, "modelValue"), r = t;
|
|
1885
1945
|
return (t, i) => {
|
|
1886
1946
|
let a = O("v-switch"), o = O("v-btn");
|
|
1887
|
-
return w(), u("div",
|
|
1947
|
+
return w(), u("div", hn, [p(a, {
|
|
1888
1948
|
modelValue: n.value,
|
|
1889
1949
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1890
1950
|
class: "ml-1",
|
|
@@ -1898,11 +1958,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1898
1958
|
density: "compact",
|
|
1899
1959
|
icon: "mdi-minus",
|
|
1900
1960
|
variant: "text",
|
|
1901
|
-
onClick: i[1] ||=
|
|
1961
|
+
onClick: i[1] ||= R((e) => r("delete"), ["stop"])
|
|
1902
1962
|
})) : l("", !0)]);
|
|
1903
1963
|
};
|
|
1904
1964
|
}
|
|
1905
|
-
}),
|
|
1965
|
+
}), _n = { class: "d-flex justify-space-between align-center" }, vn = /* @__PURE__ */ m({
|
|
1906
1966
|
__name: "index",
|
|
1907
1967
|
props: /* @__PURE__ */ v({
|
|
1908
1968
|
hasDelete: {
|
|
@@ -1919,9 +1979,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1919
1979
|
}),
|
|
1920
1980
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1921
1981
|
setup(e, { emit: t }) {
|
|
1922
|
-
let { isMobile: n } =
|
|
1982
|
+
let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1923
1983
|
if (!t || e.readonly || !n()) return;
|
|
1924
|
-
let i = await
|
|
1984
|
+
let i = await se({
|
|
1925
1985
|
title: "",
|
|
1926
1986
|
value: r.value
|
|
1927
1987
|
});
|
|
@@ -1929,7 +1989,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1929
1989
|
};
|
|
1930
1990
|
return (t, n) => {
|
|
1931
1991
|
let o = O("v-text-field"), s = O("v-btn"), d = k("ripple");
|
|
1932
|
-
return w(), u("div",
|
|
1992
|
+
return w(), u("div", _n, [L(p(o, {
|
|
1933
1993
|
modelValue: r.value,
|
|
1934
1994
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1935
1995
|
density: "compact",
|
|
@@ -1948,21 +2008,21 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1948
2008
|
density: "compact",
|
|
1949
2009
|
icon: "mdi-minus",
|
|
1950
2010
|
variant: "text",
|
|
1951
|
-
onClick: n[1] ||=
|
|
2011
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1952
2012
|
})) : l("", !0)]);
|
|
1953
2013
|
};
|
|
1954
2014
|
}
|
|
1955
2015
|
});
|
|
1956
2016
|
//#endregion
|
|
1957
2017
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1958
|
-
function
|
|
2018
|
+
function yn() {
|
|
1959
2019
|
let e = Q();
|
|
1960
2020
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1961
2021
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1962
|
-
return h(
|
|
1963
|
-
modelValue:
|
|
2022
|
+
return h(Nt, {
|
|
2023
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1964
2024
|
"onUpdate:modelValue": (o) => {
|
|
1965
|
-
|
|
2025
|
+
J(t, n, r, o, i, a, e);
|
|
1966
2026
|
},
|
|
1967
2027
|
hasDelete: i !== void 0 && !a,
|
|
1968
2028
|
onDelete: () => {
|
|
@@ -1974,14 +2034,14 @@ function hn() {
|
|
|
1974
2034
|
}
|
|
1975
2035
|
//#endregion
|
|
1976
2036
|
//#region src/composables/uis/uiComp.ts
|
|
1977
|
-
function
|
|
2037
|
+
function bn() {
|
|
1978
2038
|
let e = Q();
|
|
1979
2039
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
1980
2040
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1981
|
-
return h(
|
|
1982
|
-
modelValue:
|
|
2041
|
+
return h(Ut, {
|
|
2042
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1983
2043
|
"onUpdate:modelValue": (o) => {
|
|
1984
|
-
|
|
2044
|
+
J(t, n, r, o, i, a, e);
|
|
1985
2045
|
},
|
|
1986
2046
|
hasDelete: i !== void 0 && !a,
|
|
1987
2047
|
onDelete: () => {
|
|
@@ -1993,23 +2053,23 @@ function gn() {
|
|
|
1993
2053
|
}
|
|
1994
2054
|
//#endregion
|
|
1995
2055
|
//#region src/composables/uis/uiDummy.ts
|
|
1996
|
-
function
|
|
2056
|
+
function xn() {
|
|
1997
2057
|
let e = Q();
|
|
1998
2058
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1999
2059
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
2000
|
-
|
|
2060
|
+
q(t, n, r, i, a, e);
|
|
2001
2061
|
} };
|
|
2002
2062
|
}
|
|
2003
2063
|
//#endregion
|
|
2004
2064
|
//#region src/composables/uis/uiIcon.ts
|
|
2005
|
-
function
|
|
2065
|
+
function Sn() {
|
|
2006
2066
|
let e = Q();
|
|
2007
2067
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
2008
2068
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
2009
|
-
return h(
|
|
2010
|
-
modelValue: n.static ? n.value :
|
|
2069
|
+
return h(Gt, {
|
|
2070
|
+
modelValue: n.static ? n.value : q(t, n, r, i, a, e),
|
|
2011
2071
|
"onUpdate:modelValue": (o) => {
|
|
2012
|
-
n.static ||
|
|
2072
|
+
n.static || J(t, n, r, o, i, a, e);
|
|
2013
2073
|
},
|
|
2014
2074
|
hasDelete: i !== void 0 && !a,
|
|
2015
2075
|
onDelete: () => {
|
|
@@ -2021,14 +2081,14 @@ function vn() {
|
|
|
2021
2081
|
}
|
|
2022
2082
|
//#endregion
|
|
2023
2083
|
//#region src/composables/uis/uiJson.ts
|
|
2024
|
-
function
|
|
2084
|
+
function Cn() {
|
|
2025
2085
|
let e = Q();
|
|
2026
2086
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
2027
2087
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
2028
|
-
return h(
|
|
2029
|
-
modelValue:
|
|
2088
|
+
return h(Jt, {
|
|
2089
|
+
modelValue: q(t, n, r, i, a, e) ?? "{}",
|
|
2030
2090
|
"onUpdate:modelValue": (o) => {
|
|
2031
|
-
|
|
2091
|
+
J(t, n, r, o, i, a, e);
|
|
2032
2092
|
},
|
|
2033
2093
|
hasDelete: i !== void 0 && !a,
|
|
2034
2094
|
onDelete: () => {
|
|
@@ -2040,14 +2100,14 @@ function yn() {
|
|
|
2040
2100
|
}
|
|
2041
2101
|
//#endregion
|
|
2042
2102
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2043
|
-
function
|
|
2103
|
+
function wn() {
|
|
2044
2104
|
let e = Q();
|
|
2045
2105
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2046
2106
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2047
|
-
return h(
|
|
2048
|
-
modelValue:
|
|
2107
|
+
return h($t, {
|
|
2108
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2049
2109
|
"onUpdate:modelValue": (o) => {
|
|
2050
|
-
|
|
2110
|
+
J(t, n, r, o, i, a, e);
|
|
2051
2111
|
},
|
|
2052
2112
|
hasDelete: i !== void 0 && !a,
|
|
2053
2113
|
onDelete: () => {
|
|
@@ -2059,14 +2119,14 @@ function bn() {
|
|
|
2059
2119
|
}
|
|
2060
2120
|
//#endregion
|
|
2061
2121
|
//#region src/composables/uis/uiNumber.ts
|
|
2062
|
-
function
|
|
2122
|
+
function Tn() {
|
|
2063
2123
|
let e = Q();
|
|
2064
2124
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2065
2125
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2066
|
-
return h(
|
|
2067
|
-
modelValue:
|
|
2126
|
+
return h(tn, {
|
|
2127
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2068
2128
|
"onUpdate:modelValue": (o) => {
|
|
2069
|
-
|
|
2129
|
+
J(t, n, r, o, i, a, e);
|
|
2070
2130
|
},
|
|
2071
2131
|
hasDelete: i !== void 0 && !a,
|
|
2072
2132
|
onDelete: () => {
|
|
@@ -2082,12 +2142,12 @@ function xn() {
|
|
|
2082
2142
|
}
|
|
2083
2143
|
//#endregion
|
|
2084
2144
|
//#region src/components/entry/index.vue
|
|
2085
|
-
var
|
|
2145
|
+
var En = /* @__PURE__ */ m({
|
|
2086
2146
|
__name: "index",
|
|
2087
2147
|
props: { minHeight: {} },
|
|
2088
2148
|
emits: ["menu"],
|
|
2089
2149
|
setup(e, { emit: t }) {
|
|
2090
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
2150
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
2091
2151
|
background: a.value ? r.value : n.value,
|
|
2092
2152
|
minHeight: e.minHeight,
|
|
2093
2153
|
paddingRight: "4px",
|
|
@@ -2101,7 +2161,7 @@ var Sn = /* @__PURE__ */ m({
|
|
|
2101
2161
|
return L((w(), u("div", {
|
|
2102
2162
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
2103
2163
|
style: b(o.value),
|
|
2104
|
-
onContextmenu:
|
|
2164
|
+
onContextmenu: R(c, ["self", "prevent"]),
|
|
2105
2165
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
2106
2166
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
2107
2167
|
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
@@ -2110,14 +2170,14 @@ var Sn = /* @__PURE__ */ m({
|
|
|
2110
2170
|
});
|
|
2111
2171
|
//#endregion
|
|
2112
2172
|
//#region src/composables/uis/uiProperty.ts
|
|
2113
|
-
function
|
|
2114
|
-
let { t: e } =
|
|
2173
|
+
function Dn() {
|
|
2174
|
+
let { t: e } = G(), t = at();
|
|
2115
2175
|
return { renderProperty: (n, r, i) => {
|
|
2116
2176
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2117
|
-
return Z(t.value, n) && (o += " *"), h(
|
|
2177
|
+
return Z(t.value, n) && (o += " *"), h(En, {
|
|
2118
2178
|
minHeight: "56px",
|
|
2119
2179
|
onMenu: (e, t) => {
|
|
2120
|
-
|
|
2180
|
+
z.emit("propTreeMenu", {
|
|
2121
2181
|
x: e,
|
|
2122
2182
|
y: t,
|
|
2123
2183
|
keys: n
|
|
@@ -2134,14 +2194,14 @@ function Cn() {
|
|
|
2134
2194
|
}
|
|
2135
2195
|
//#endregion
|
|
2136
2196
|
//#region src/composables/uis/uiRule.ts
|
|
2137
|
-
function
|
|
2197
|
+
function On() {
|
|
2138
2198
|
let e = Q();
|
|
2139
2199
|
function t(t, n, r, i, a) {
|
|
2140
2200
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2141
|
-
return h(
|
|
2142
|
-
modelValue:
|
|
2201
|
+
return h(an, {
|
|
2202
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2143
2203
|
"onUpdate:modelValue": (o) => {
|
|
2144
|
-
|
|
2204
|
+
J(t, n, r, o, i, a, e);
|
|
2145
2205
|
},
|
|
2146
2206
|
hasDelete: i !== void 0 && !a,
|
|
2147
2207
|
onDelete: () => {
|
|
@@ -2153,14 +2213,14 @@ function wn() {
|
|
|
2153
2213
|
}
|
|
2154
2214
|
//#endregion
|
|
2155
2215
|
//#region src/composables/uis/uiSelect.ts
|
|
2156
|
-
function
|
|
2216
|
+
function kn() {
|
|
2157
2217
|
let e = Q();
|
|
2158
2218
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2159
2219
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2160
|
-
return h(
|
|
2161
|
-
modelValue:
|
|
2220
|
+
return h(sn, {
|
|
2221
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2162
2222
|
"onUpdate:modelValue": (o) => {
|
|
2163
|
-
|
|
2223
|
+
J(t, n, r, o, i, a, e);
|
|
2164
2224
|
},
|
|
2165
2225
|
hasDelete: i !== void 0 && !a,
|
|
2166
2226
|
onDelete: () => {
|
|
@@ -2173,14 +2233,14 @@ function Tn() {
|
|
|
2173
2233
|
}
|
|
2174
2234
|
//#endregion
|
|
2175
2235
|
//#region src/composables/uis/uiSlot.ts
|
|
2176
|
-
function
|
|
2236
|
+
function An() {
|
|
2177
2237
|
let e = Q();
|
|
2178
2238
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2179
2239
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2180
|
-
return h(
|
|
2181
|
-
modelValue:
|
|
2240
|
+
return h(mn, {
|
|
2241
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2182
2242
|
"onUpdate:modelValue": (o) => {
|
|
2183
|
-
|
|
2243
|
+
J(t, n, r, o, i, a, e);
|
|
2184
2244
|
},
|
|
2185
2245
|
hasDelete: i !== void 0 && !a,
|
|
2186
2246
|
onDelete: () => {
|
|
@@ -2192,14 +2252,14 @@ function En() {
|
|
|
2192
2252
|
}
|
|
2193
2253
|
//#endregion
|
|
2194
2254
|
//#region src/composables/uis/uiSwitch.ts
|
|
2195
|
-
function
|
|
2255
|
+
function jn() {
|
|
2196
2256
|
let e = Q();
|
|
2197
2257
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2198
2258
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2199
|
-
return h(
|
|
2200
|
-
modelValue:
|
|
2259
|
+
return h(gn, {
|
|
2260
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2201
2261
|
"onUpdate:modelValue": (o) => {
|
|
2202
|
-
|
|
2262
|
+
J(t, n, r, o, i, a, e);
|
|
2203
2263
|
},
|
|
2204
2264
|
hasDelete: i !== void 0 && !a,
|
|
2205
2265
|
onDelete: () => {
|
|
@@ -2211,14 +2271,14 @@ function Dn() {
|
|
|
2211
2271
|
}
|
|
2212
2272
|
//#endregion
|
|
2213
2273
|
//#region src/composables/uis/uiText.ts
|
|
2214
|
-
function
|
|
2274
|
+
function Mn() {
|
|
2215
2275
|
let e = Q();
|
|
2216
2276
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2217
2277
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2218
|
-
return h(
|
|
2219
|
-
modelValue: n.static ? n.value :
|
|
2278
|
+
return h(vn, {
|
|
2279
|
+
modelValue: n.static ? n.value : q(t, n, r, i, a, e),
|
|
2220
2280
|
"onUpdate:modelValue": (o) => {
|
|
2221
|
-
n.static ||
|
|
2281
|
+
n.static || J(t, n, r, o, i, a, e);
|
|
2222
2282
|
},
|
|
2223
2283
|
hasDelete: i !== void 0 && !a,
|
|
2224
2284
|
onDelete: () => {
|
|
@@ -2230,27 +2290,27 @@ function On() {
|
|
|
2230
2290
|
}
|
|
2231
2291
|
//#endregion
|
|
2232
2292
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2233
|
-
var $ = "20px",
|
|
2293
|
+
var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
2234
2294
|
__name: "main",
|
|
2235
2295
|
setup(e) {
|
|
2236
|
-
let { t } =
|
|
2237
|
-
|
|
2238
|
-
let { renderProperty: d } =
|
|
2296
|
+
let { t } = G(), { backgroundColor1: n } = B(), i = $e(), a = tt(), s = rt(), c = at(), l = Q();
|
|
2297
|
+
St(), Ct(), xt();
|
|
2298
|
+
let { renderProperty: d } = Dn(), { renderUiDummy: f } = xn(), { renderUiText: m } = Mn(), { renderUiNumber: g } = Tn(), { renderUiSwitch: _ } = jn(), { renderUiSelect: v } = kn(), { renderUiJson: y } = Cn(), { renderUiIcon: b } = Sn(), { renderUiComp: x } = bn(), { renderUiSlot: S } = An(), { renderUiAdaptSlot: C } = yn(), { renderUiRule: T } = On(), { renderUiMultiTypes: E } = wn(), D = (e, t, n, i, a, o) => {
|
|
2239
2299
|
if (e = r(e), i === void 0 ? e.push(t.key) : (e.push(i), a && e.push(t.key)), e?.[0] !== "runtime") return t.ui ? t.array && !o ? k(e, t, n, i, a) : A(e, t, n, i, a) : t.array ? ee(e, t, n, i, a) : O(e, t, n, i, a);
|
|
2240
2300
|
}, ee = (e, n, r, i, a) => {
|
|
2241
2301
|
if (n.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2242
2302
|
if (!n.array) throw Error("renderBranchArray property array must be valid");
|
|
2243
|
-
let o =
|
|
2244
|
-
|
|
2245
|
-
let d = h(
|
|
2303
|
+
let o = Ce(e, n, r, i, a, l), u = t(n.name);
|
|
2304
|
+
Y(s, e) && Z(c.value, e) && (u += " *");
|
|
2305
|
+
let d = h(bt, {
|
|
2246
2306
|
title: u,
|
|
2247
|
-
collapse:
|
|
2307
|
+
collapse: Y(s, e),
|
|
2248
2308
|
hasCreate: !0,
|
|
2249
2309
|
onCollapse: (t) => {
|
|
2250
|
-
|
|
2310
|
+
we(s, e, t);
|
|
2251
2311
|
},
|
|
2252
2312
|
onMenu: (t, n) => {
|
|
2253
|
-
|
|
2313
|
+
z.emit("propTreeMenu", {
|
|
2254
2314
|
x: t,
|
|
2255
2315
|
y: n,
|
|
2256
2316
|
keys: e
|
|
@@ -2263,17 +2323,17 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2263
2323
|
let t = [];
|
|
2264
2324
|
for (let r = 0; r < o.length; r++) {
|
|
2265
2325
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2266
|
-
|
|
2267
|
-
let u = h(
|
|
2326
|
+
Y(s, [...e, r]) && Z(c.value, i) && (a += " *");
|
|
2327
|
+
let u = h(bt, {
|
|
2268
2328
|
title: a,
|
|
2269
|
-
collapse:
|
|
2329
|
+
collapse: Y(s, [...e, r]),
|
|
2270
2330
|
hasDelete: !0,
|
|
2271
2331
|
index: r,
|
|
2272
2332
|
onCollapse: (t) => {
|
|
2273
|
-
|
|
2333
|
+
we(s, [...e, r], t);
|
|
2274
2334
|
},
|
|
2275
2335
|
onMenu: (e, t) => {
|
|
2276
|
-
|
|
2336
|
+
z.emit("propTreeMenu", {
|
|
2277
2337
|
x: e,
|
|
2278
2338
|
y: t,
|
|
2279
2339
|
keys: i
|
|
@@ -2289,28 +2349,28 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2289
2349
|
for (let i of n.children) t.push(D(e, i, o[r], r, !0));
|
|
2290
2350
|
return t;
|
|
2291
2351
|
})());
|
|
2292
|
-
|
|
2352
|
+
Y(s, [...e, r]) || t.push(d);
|
|
2293
2353
|
}
|
|
2294
2354
|
return t;
|
|
2295
2355
|
})());
|
|
2296
2356
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2297
2357
|
let t = [];
|
|
2298
|
-
return t.push(d),
|
|
2358
|
+
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2299
2359
|
})());
|
|
2300
2360
|
}, O = (e, n, r, i, a) => {
|
|
2301
2361
|
if (n.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2302
2362
|
if (n.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2303
2363
|
let o = t(n.name);
|
|
2304
|
-
|
|
2305
|
-
let u = h(
|
|
2364
|
+
Y(s, e) && Z(c.value, e) && (o += " *");
|
|
2365
|
+
let u = h(bt, {
|
|
2306
2366
|
title: o,
|
|
2307
|
-
collapse:
|
|
2367
|
+
collapse: Y(s, e),
|
|
2308
2368
|
hasDelete: i !== void 0 && !a,
|
|
2309
2369
|
onCollapse: (t) => {
|
|
2310
|
-
|
|
2370
|
+
we(s, e, t);
|
|
2311
2371
|
},
|
|
2312
2372
|
onMenu: (t, n) => {
|
|
2313
|
-
|
|
2373
|
+
z.emit("propTreeMenu", {
|
|
2314
2374
|
x: t,
|
|
2315
2375
|
y: n,
|
|
2316
2376
|
keys: e
|
|
@@ -2326,29 +2386,29 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2326
2386
|
})());
|
|
2327
2387
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2328
2388
|
let t = [];
|
|
2329
|
-
return t.push(u),
|
|
2389
|
+
return t.push(u), Y(s, e) || t.push(d), t;
|
|
2330
2390
|
})());
|
|
2331
2391
|
}, k = (e, n, r, i, a) => {
|
|
2332
2392
|
if (!n.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2333
2393
|
if (!n.array) throw Error("renderLeafArray property array must be valid");
|
|
2334
|
-
let o =
|
|
2335
|
-
|
|
2336
|
-
let d = h(
|
|
2394
|
+
let o = Ce(e, n, r, i, a, l), u = t(n.name);
|
|
2395
|
+
Y(s, e) && Z(c.value, e) && (u += " *");
|
|
2396
|
+
let d = h(bt, {
|
|
2337
2397
|
title: u,
|
|
2338
|
-
collapse:
|
|
2398
|
+
collapse: Y(s, e),
|
|
2339
2399
|
hasCreate: !0,
|
|
2340
2400
|
onCollapse: (t) => {
|
|
2341
|
-
|
|
2401
|
+
we(s, e, t);
|
|
2342
2402
|
},
|
|
2343
2403
|
onMenu: (t, n) => {
|
|
2344
|
-
|
|
2404
|
+
z.emit("propTreeMenu", {
|
|
2345
2405
|
x: t,
|
|
2346
2406
|
y: n,
|
|
2347
2407
|
keys: e
|
|
2348
2408
|
});
|
|
2349
2409
|
},
|
|
2350
2410
|
onCreate: () => {
|
|
2351
|
-
o.push(
|
|
2411
|
+
o.push(U(n)), l(e, o);
|
|
2352
2412
|
}
|
|
2353
2413
|
}), f = h("div", { style: { paddingLeft: $ } }, (() => {
|
|
2354
2414
|
let t = [];
|
|
@@ -2357,7 +2417,7 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2357
2417
|
})());
|
|
2358
2418
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2359
2419
|
let t = [];
|
|
2360
|
-
return t.push(d),
|
|
2420
|
+
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2361
2421
|
})());
|
|
2362
2422
|
}, A = (e, t, n, r, i) => {
|
|
2363
2423
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
@@ -2371,9 +2431,9 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2371
2431
|
if (i.value.length > 0 && a.value) for (let t of i.value) e.push(D([], t, a.value, void 0, !1));
|
|
2372
2432
|
return e;
|
|
2373
2433
|
})());
|
|
2374
|
-
return (e, t) => (w(), u(o, null, [p(j), p(
|
|
2434
|
+
return (e, t) => (w(), u(o, null, [p(j), p(vt)], 64));
|
|
2375
2435
|
}
|
|
2376
|
-
}),
|
|
2436
|
+
}), Pn = /* @__PURE__ */ m({
|
|
2377
2437
|
__name: "index",
|
|
2378
2438
|
props: {
|
|
2379
2439
|
config: {},
|
|
@@ -2385,25 +2445,25 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2385
2445
|
emits: ["change"],
|
|
2386
2446
|
setup(e, { emit: t }) {
|
|
2387
2447
|
let n = t, r = E([]);
|
|
2388
|
-
|
|
2448
|
+
Qe(r), F(() => {
|
|
2389
2449
|
r.value = e.config;
|
|
2390
2450
|
});
|
|
2391
2451
|
let i = E();
|
|
2392
|
-
|
|
2452
|
+
et(i), F(() => {
|
|
2393
2453
|
i.value = e.object;
|
|
2394
2454
|
});
|
|
2395
2455
|
let a = E("");
|
|
2396
|
-
|
|
2456
|
+
Ke(a), F(() => {
|
|
2397
2457
|
a.value = e.version;
|
|
2398
2458
|
});
|
|
2399
2459
|
let o = E(e.type);
|
|
2400
|
-
|
|
2460
|
+
Je(o), F(() => {
|
|
2401
2461
|
o.value = e.type;
|
|
2402
2462
|
});
|
|
2403
2463
|
let s = E("");
|
|
2404
|
-
|
|
2464
|
+
Xe(s), F(() => {
|
|
2405
2465
|
s.value = e.subtype;
|
|
2406
|
-
}),
|
|
2466
|
+
}), nt(E({
|
|
2407
2467
|
collapse: !0,
|
|
2408
2468
|
children: {}
|
|
2409
2469
|
}));
|
|
@@ -2412,25 +2472,25 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2412
2472
|
warning: !1,
|
|
2413
2473
|
children: {}
|
|
2414
2474
|
});
|
|
2415
|
-
|
|
2475
|
+
it(l);
|
|
2416
2476
|
function u(t, r) {
|
|
2417
|
-
|
|
2477
|
+
Pe(l, e.config, e.object), n("change", t, r);
|
|
2418
2478
|
}
|
|
2419
|
-
|
|
2479
|
+
ot(u);
|
|
2420
2480
|
function d() {
|
|
2421
|
-
|
|
2481
|
+
Pe(l, e.config, e.object);
|
|
2422
2482
|
}
|
|
2423
2483
|
return S(() => {
|
|
2424
|
-
|
|
2484
|
+
z.on("refreshPropertyState", d);
|
|
2425
2485
|
}), x(() => {
|
|
2426
|
-
|
|
2486
|
+
z.off("refreshPropertyState", d);
|
|
2427
2487
|
}), P([() => e.config, () => e.object], () => {
|
|
2428
|
-
|
|
2429
|
-
}, { immediate: !0 }), (e, t) => (w(), c(
|
|
2488
|
+
Pe(l, e.config, e.object);
|
|
2489
|
+
}, { immediate: !0 }), (e, t) => (w(), c(Nn));
|
|
2430
2490
|
}
|
|
2431
|
-
}),
|
|
2432
|
-
e.component("XPropTree",
|
|
2433
|
-
},
|
|
2491
|
+
}), Fn = (e) => {
|
|
2492
|
+
e.component("XPropTree", Pn);
|
|
2493
|
+
}, In = (e, t, n) => {
|
|
2434
2494
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2435
2495
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2436
2496
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
@@ -2438,14 +2498,14 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2438
2498
|
};
|
|
2439
2499
|
//#endregion
|
|
2440
2500
|
//#region src/i18n/index.ts
|
|
2441
|
-
async function
|
|
2442
|
-
return (await
|
|
2501
|
+
async function Ln(e) {
|
|
2502
|
+
return (await In(/* @__PURE__ */ Object.assign({
|
|
2443
2503
|
"./locales/en/index.ts": () => import("./i18n-en.ckhf41nr.js").then((e) => e.t),
|
|
2444
2504
|
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.lj81m5nl.js").then((e) => e.t)
|
|
2445
2505
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2446
2506
|
}
|
|
2447
2507
|
//#endregion
|
|
2448
2508
|
//#region src/index.ts
|
|
2449
|
-
var
|
|
2509
|
+
var Rn = { install: Fn };
|
|
2450
2510
|
//#endregion
|
|
2451
|
-
export {
|
|
2511
|
+
export { Rn as default, Ln as loadLocaleMessagePropTree };
|