x-prop-tree 0.8.13 → 0.8.15
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 +337 -313
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./vendor.jothdq5o.js";
|
|
2
2
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as ee, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as R, withModifiers as z } from "vue";
|
|
3
|
-
import { getElement as te, getItems as ne, getPropertyDefault as B, getPropertyDefaultArray as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { eventBus as
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
3
|
+
import { getElement as te, getItems as ne, getPropertyDefault as B, getPropertyDefaultArray as V, getTag as re, getTypes as ie, isHexColor as ae, isThemeColor as oe, makeSlotId as se, parseNumberUnit as ce, pkgs as le, rules as ue, themeColors as de } from "x-runtime-lib";
|
|
4
|
+
import { useI18n as H } from "vue-i18n";
|
|
5
|
+
import { eventBus as U, globalObjects as fe, injectDark as pe, injectLocale as me, openNumberDlg as he, openPromptDlg as ge, useColor as W, useSystem as G, useViewStack as K } from "x-essential-lib";
|
|
6
|
+
import { globalState as _e } from "x-state-lib";
|
|
7
|
+
import { useDisplay as ve } from "vuetify";
|
|
8
|
+
import { XBlockly as ye } from "x-block-lib";
|
|
9
9
|
//#region src/utils/common.ts
|
|
10
|
-
function
|
|
10
|
+
function q(e, t) {
|
|
11
11
|
let n = {
|
|
12
12
|
key: "",
|
|
13
13
|
name: "",
|
|
14
14
|
children: e
|
|
15
15
|
};
|
|
16
|
-
for (let e of t) {
|
|
16
|
+
for (let e of t) if (typeof e != "number") {
|
|
17
17
|
if (!n) throw Error("target must be valid");
|
|
18
18
|
if (n.ui) throw Error("target ui must be invalid");
|
|
19
|
-
|
|
19
|
+
n = n.children.find((t) => t.key === e);
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function J(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,22 +28,22 @@ function q(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
return n;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function be(e, 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 = V(n);
|
|
35
35
|
t(a, r[i]) || (r[i] = a, o(e, 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 = V(n);
|
|
41
41
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
42
42
|
}
|
|
43
43
|
return r[n.key];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Y(e, n, r, i, a, o) {
|
|
47
47
|
if (i !== void 0 && !a) {
|
|
48
48
|
if (r[i] === void 0) {
|
|
49
49
|
let a = B(n);
|
|
@@ -58,12 +58,12 @@ function J(e, n, r, i, a, o) {
|
|
|
58
58
|
return r[n.key];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function X(e, t, n, r, i, a, o) {
|
|
62
62
|
i !== void 0 && !a ? r !== n[i] && (n[i] = r, o(e, n[i])) : r !== n[t.key] && (n[t.key] = r, o(e, n[t.key]));
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/utils/collapseState.ts
|
|
66
|
-
function
|
|
66
|
+
function Z(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 xe(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,7 +81,7 @@ function Z(e, t, n) {
|
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
84
|
+
var Se = (e, t) => {
|
|
85
85
|
let n = (e, t) => {
|
|
86
86
|
if (e.ui !== t.ui || e.array !== t.array) return !1;
|
|
87
87
|
if (e.ui || t.ui) return !0;
|
|
@@ -90,20 +90,20 @@ var Ce = (e, t) => {
|
|
|
90
90
|
return !0;
|
|
91
91
|
};
|
|
92
92
|
return n(e, t);
|
|
93
|
-
},
|
|
94
|
-
function
|
|
95
|
-
return
|
|
93
|
+
}, Ce = [["basic", "id"], ["basic", "name"]];
|
|
94
|
+
function we(e) {
|
|
95
|
+
return Ce.find((n) => t(e, n));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Te(t, n, r, i, a, o, s) {
|
|
98
98
|
return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)), t?.[0] === "runtime" ? {
|
|
99
99
|
change: !1,
|
|
100
100
|
warning: !1
|
|
101
|
-
} :
|
|
101
|
+
} : we(t) ? (i.change = !1, i.warning = !1, {
|
|
102
102
|
change: i.change,
|
|
103
103
|
warning: i.warning
|
|
104
|
-
}) : n.ui ? n.array &&
|
|
104
|
+
}) : n.ui ? n.array && !s ? Oe(t, n, r, i, a, o) : ke(n, r, i, a, o) : n.array ? Ee(t, n, r, i, a, o) : De(t, n, r, i, a, o);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ee(e, n, r, i, a, o) {
|
|
107
107
|
if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
|
|
108
108
|
if (!n.array) throw Error("execPropertyBranchArray property array must be valid");
|
|
109
109
|
let s;
|
|
@@ -124,16 +124,16 @@ function De(e, n, r, i, a, o) {
|
|
|
124
124
|
warning: !1,
|
|
125
125
|
children: {}
|
|
126
126
|
};
|
|
127
|
-
let { change: n, warning: o } =
|
|
127
|
+
let { change: n, warning: o } = Te(e, a, s[t], r.children[a.key], t, !0);
|
|
128
128
|
!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);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
return i.change ||= !t(s,
|
|
131
|
+
return i.change ||= !t(s, V(n)), {
|
|
132
132
|
change: i.change,
|
|
133
133
|
warning: i.warning
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function De(e, t, n, r, i, a) {
|
|
137
137
|
if (t.ui) throw Error("execPropertyBranchScalar property ui must be invalid");
|
|
138
138
|
if (t.array) throw Error("execPropertyBranchScalar property array must be invalid");
|
|
139
139
|
let o;
|
|
@@ -148,7 +148,7 @@ function Oe(e, t, n, r, i, a) {
|
|
|
148
148
|
warning: !1,
|
|
149
149
|
children: {}
|
|
150
150
|
};
|
|
151
|
-
let { change: a, warning: s } =
|
|
151
|
+
let { change: a, warning: s } = Te(e, i, o, r.children[i.key], void 0, !1);
|
|
152
152
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
153
153
|
}
|
|
154
154
|
return {
|
|
@@ -156,7 +156,7 @@ function Oe(e, t, n, r, i, a) {
|
|
|
156
156
|
warning: r.change
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Oe(e, n, r, i, a, o) {
|
|
160
160
|
if (!n.ui) throw Error("execPropertyLeafArray property ui must be valid");
|
|
161
161
|
if (!n.array) throw Error("execPropertyLeafArray property aray must be valid");
|
|
162
162
|
let s;
|
|
@@ -170,15 +170,15 @@ function ke(e, n, r, i, a, o) {
|
|
|
170
170
|
warning: !1,
|
|
171
171
|
children: {}
|
|
172
172
|
};
|
|
173
|
-
let { change: r, warning: a } =
|
|
173
|
+
let { change: r, warning: a } = Te(e, n, s, i.children[t], t, !1, !0);
|
|
174
174
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
175
175
|
}
|
|
176
|
-
return i.change ||= !t(s,
|
|
176
|
+
return i.change ||= !t(s, V(n)), {
|
|
177
177
|
change: i.change,
|
|
178
178
|
warning: i.warning
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function ke(e, n, r, i, a) {
|
|
182
182
|
if (!e.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
183
183
|
let o;
|
|
184
184
|
return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o, B(e)), {
|
|
@@ -186,7 +186,7 @@ function Ae(e, n, r, i, a) {
|
|
|
186
186
|
warning: r.warning
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ae(e, t, n) {
|
|
190
190
|
if (t.length <= 0 || !n) {
|
|
191
191
|
e.value = {
|
|
192
192
|
change: !1,
|
|
@@ -206,7 +206,7 @@ function je(e, t, n) {
|
|
|
206
206
|
warning: !1,
|
|
207
207
|
children: {}
|
|
208
208
|
};
|
|
209
|
-
r.children[e.key] = t,
|
|
209
|
+
r.children[e.key] = t, Te([], e, n, t, void 0, !1);
|
|
210
210
|
}
|
|
211
211
|
e.value = r;
|
|
212
212
|
}
|
|
@@ -220,118 +220,142 @@ function Q(e, t) {
|
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region src/utils/provideInject.ts
|
|
223
|
-
var Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol()
|
|
224
|
-
function
|
|
223
|
+
var je = Symbol(), Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol();
|
|
224
|
+
function He(e) {
|
|
225
|
+
w(je, e);
|
|
226
|
+
}
|
|
227
|
+
function Ue() {
|
|
228
|
+
return h(je);
|
|
229
|
+
}
|
|
230
|
+
function We(e) {
|
|
225
231
|
w(Me, e);
|
|
226
232
|
}
|
|
227
|
-
function
|
|
233
|
+
function Ge() {
|
|
228
234
|
return h(Me);
|
|
229
235
|
}
|
|
230
|
-
function
|
|
236
|
+
function Ke(e) {
|
|
231
237
|
w(Ne, e);
|
|
232
238
|
}
|
|
233
|
-
function
|
|
239
|
+
function qe() {
|
|
234
240
|
return h(Ne);
|
|
235
241
|
}
|
|
236
|
-
function
|
|
242
|
+
function Je(e) {
|
|
237
243
|
w(Pe, e);
|
|
238
244
|
}
|
|
239
|
-
function
|
|
245
|
+
function Ye() {
|
|
240
246
|
return h(Pe);
|
|
241
247
|
}
|
|
242
|
-
function
|
|
248
|
+
function Xe(e) {
|
|
243
249
|
w(Fe, e);
|
|
244
250
|
}
|
|
245
|
-
function
|
|
251
|
+
function Ze() {
|
|
246
252
|
return h(Fe);
|
|
247
253
|
}
|
|
248
|
-
function
|
|
254
|
+
function Qe(e) {
|
|
249
255
|
w(Ie, e);
|
|
250
256
|
}
|
|
251
|
-
function
|
|
257
|
+
function $e() {
|
|
252
258
|
return h(Ie);
|
|
253
259
|
}
|
|
254
|
-
function
|
|
260
|
+
function et(e) {
|
|
255
261
|
w(Le, e);
|
|
256
262
|
}
|
|
257
|
-
function
|
|
263
|
+
function tt() {
|
|
258
264
|
return h(Le);
|
|
259
265
|
}
|
|
260
|
-
function
|
|
266
|
+
function nt(e) {
|
|
261
267
|
w(Re, e);
|
|
262
268
|
}
|
|
263
|
-
function
|
|
269
|
+
function $() {
|
|
264
270
|
return h(Re);
|
|
265
271
|
}
|
|
266
272
|
function rt(e) {
|
|
267
273
|
w(ze, e);
|
|
268
274
|
}
|
|
269
|
-
function
|
|
275
|
+
function it() {
|
|
270
276
|
return h(ze);
|
|
271
277
|
}
|
|
272
|
-
function
|
|
278
|
+
function at(e) {
|
|
273
279
|
w(Be, e);
|
|
274
280
|
}
|
|
275
|
-
function
|
|
281
|
+
function ot() {
|
|
276
282
|
return h(Be);
|
|
277
283
|
}
|
|
278
|
-
function
|
|
284
|
+
function st(e) {
|
|
279
285
|
w(Ve, e);
|
|
280
286
|
}
|
|
281
|
-
function
|
|
287
|
+
function ct() {
|
|
282
288
|
return h(Ve);
|
|
283
289
|
}
|
|
284
|
-
|
|
285
|
-
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/utils/reset.ts
|
|
292
|
+
function lt(e, n, r, i) {
|
|
293
|
+
if (n.ui) if (n.array) {
|
|
294
|
+
let a = e[n.key], o = V(n);
|
|
295
|
+
t(o, a) || (e[n.key] = o, i([...r, n.key], o));
|
|
296
|
+
} else {
|
|
297
|
+
let a = e[n.key], o = B(n);
|
|
298
|
+
t(o, a) || (e[n.key] = o, i([...r, n.key], o));
|
|
299
|
+
}
|
|
300
|
+
else if (n.array) {
|
|
301
|
+
let a = e[n.key], o = V(n);
|
|
302
|
+
t(o, a) || (e[n.key] = o, i([...r, n.key], o));
|
|
303
|
+
} else for (let t of n.children) lt(e[n.key], t, [...r, n.key], i);
|
|
286
304
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
305
|
+
function ut(e, n, r, i) {
|
|
306
|
+
let a = r.at(-1);
|
|
307
|
+
if (a === void 0) return;
|
|
308
|
+
let o = q(n, r);
|
|
309
|
+
if (o) if (o.ui) if (o.array) if (typeof a == "string") {
|
|
310
|
+
let n = J(e, r.slice(0, -1));
|
|
311
|
+
if (!n) return;
|
|
312
|
+
let s = n[a], c = V(o);
|
|
313
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
314
|
+
} else {
|
|
315
|
+
let n = J(e, r.slice(0, -1));
|
|
316
|
+
if (!n) return;
|
|
317
|
+
let s = n[a], c = B(o);
|
|
318
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
let n = J(e, r.slice(0, -1));
|
|
322
|
+
if (!n) return;
|
|
323
|
+
let s = n[a], c = B(o);
|
|
324
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
325
|
+
}
|
|
326
|
+
else if (o.array) if (typeof a == "string") {
|
|
327
|
+
let n = J(e, r.slice(0, -1));
|
|
328
|
+
if (!n) return;
|
|
329
|
+
let s = n[a], c = V(o);
|
|
330
|
+
t(c, s) || (n[a] = c, i(r, c));
|
|
331
|
+
} else {
|
|
332
|
+
let t = J(e, r);
|
|
333
|
+
if (!t) return;
|
|
334
|
+
for (let e of o.children) lt(t, e, r, i);
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
let t = J(e, r);
|
|
338
|
+
if (!t) return;
|
|
339
|
+
for (let e of o.children) lt(t, e, r, i);
|
|
340
|
+
}
|
|
289
341
|
}
|
|
290
342
|
//#endregion
|
|
291
343
|
//#region src/components/menu/index.vue
|
|
292
|
-
var
|
|
344
|
+
var dt = /* @__PURE__ */ p({
|
|
293
345
|
__name: "index",
|
|
294
346
|
setup(e) {
|
|
295
|
-
let { t } =
|
|
347
|
+
let { t } = H(), n = Ye(), r = Ze(), i = tt(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
|
|
296
348
|
!(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
|
|
297
349
|
title: t("x-prop-tree.reset"),
|
|
298
350
|
func: () => {
|
|
299
|
-
|
|
300
|
-
if (e) if (e.ui) {
|
|
301
|
-
let t = q(r.value, m.value.slice(0, -1));
|
|
302
|
-
if (!t) return;
|
|
303
|
-
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
304
|
-
} else if (e.array) {
|
|
305
|
-
let t = m.value[m.value.length - 1];
|
|
306
|
-
if (t === void 0) {
|
|
307
|
-
console.assert(!1, "invalid last key");
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
if (typeof t == "string") {
|
|
311
|
-
let t = q(r.value, m.value.slice(0, -1));
|
|
312
|
-
if (!t) return;
|
|
313
|
-
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
314
|
-
} else {
|
|
315
|
-
let t = q(r.value, m.value);
|
|
316
|
-
if (!t) return;
|
|
317
|
-
e.children.forEach((n) => {
|
|
318
|
-
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
} else {
|
|
322
|
-
let t = q(r.value, m.value);
|
|
323
|
-
if (!t) return;
|
|
324
|
-
e.children.forEach((n) => {
|
|
325
|
-
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
351
|
+
ut(r.value, n.value, m.value, c);
|
|
328
352
|
}
|
|
329
353
|
});
|
|
330
354
|
}, v = (e) => {
|
|
331
355
|
e.push({
|
|
332
356
|
title: t("x-prop-tree.copy"),
|
|
333
357
|
func: () => {
|
|
334
|
-
let e =
|
|
358
|
+
let e = q(n.value, m.value), t = J(r.value, m.value);
|
|
335
359
|
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
336
360
|
property: e,
|
|
337
361
|
object: t
|
|
@@ -345,8 +369,8 @@ var ut = /* @__PURE__ */ p({
|
|
|
345
369
|
try {
|
|
346
370
|
let { property: t } = JSON.parse(e);
|
|
347
371
|
if (!t) return !1;
|
|
348
|
-
let r =
|
|
349
|
-
return r ?
|
|
372
|
+
let r = q(n.value, m.value);
|
|
373
|
+
return r ? Se(t, r) : !1;
|
|
350
374
|
} catch (e) {
|
|
351
375
|
console.error(e);
|
|
352
376
|
}
|
|
@@ -358,7 +382,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
358
382
|
if (!r()) return;
|
|
359
383
|
let e = localStorage.getItem("propTreeCopy");
|
|
360
384
|
if (e) try {
|
|
361
|
-
let { object: t } = JSON.parse(e), r =
|
|
385
|
+
let { object: t } = JSON.parse(e), r = q(n.value, m.value);
|
|
362
386
|
console.log(t, r);
|
|
363
387
|
} catch (e) {
|
|
364
388
|
console.error(e);
|
|
@@ -368,7 +392,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
368
392
|
}, b = o(() => {
|
|
369
393
|
let e = [];
|
|
370
394
|
return _(e), v(e), y(e), e;
|
|
371
|
-
}), { open: x } =
|
|
395
|
+
}), { open: x } = K("propTreeMenu", (e) => {
|
|
372
396
|
u.value = e.x, p.value = e.y, m.value = e.keys;
|
|
373
397
|
});
|
|
374
398
|
return (e, t) => {
|
|
@@ -398,7 +422,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
398
422
|
}, 8, ["modelValue", "target"]);
|
|
399
423
|
};
|
|
400
424
|
}
|
|
401
|
-
}),
|
|
425
|
+
}), ft = { style: { pointerEvents: "none" } }, pt = /* @__PURE__ */ p({
|
|
402
426
|
__name: "index",
|
|
403
427
|
props: {
|
|
404
428
|
title: {},
|
|
@@ -420,7 +444,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
420
444
|
"delete"
|
|
421
445
|
],
|
|
422
446
|
setup(e, { emit: t }) {
|
|
423
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
447
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), d = o(() => ({
|
|
424
448
|
background: a.value ? r.value : n.value,
|
|
425
449
|
height: "36px",
|
|
426
450
|
marginBottom: "1px",
|
|
@@ -444,7 +468,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
444
468
|
class: "mr-1",
|
|
445
469
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
446
470
|
}, null, 8, ["icon"]),
|
|
447
|
-
u("span",
|
|
471
|
+
u("span", ft, A(e.title), 1),
|
|
448
472
|
f(o),
|
|
449
473
|
e.hasCreate ? (C(), s(h, {
|
|
450
474
|
key: 0,
|
|
@@ -468,14 +492,14 @@ var ut = /* @__PURE__ */ p({
|
|
|
468
492
|
});
|
|
469
493
|
//#endregion
|
|
470
494
|
//#region src/composables/adaptSlotList/index.ts
|
|
471
|
-
function
|
|
472
|
-
let e =
|
|
473
|
-
|
|
495
|
+
function mt() {
|
|
496
|
+
let e = Ue(), t = Ge(), n = qe(), { i18n: a } = fe, o = T([]);
|
|
497
|
+
st(o);
|
|
474
498
|
let s = () => {
|
|
475
499
|
if (!e.value || !t.value || !n.value) return [];
|
|
476
|
-
let s =
|
|
500
|
+
let s = le[e.value];
|
|
477
501
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
478
|
-
let c =
|
|
502
|
+
let c = re(t.value, n.value), l = [];
|
|
479
503
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
480
504
|
let t = s.groups[c][e], n = r(o, t.key);
|
|
481
505
|
l.push({
|
|
@@ -490,7 +514,7 @@ function pt() {
|
|
|
490
514
|
for (let e of t.items) {
|
|
491
515
|
let n = te(e);
|
|
492
516
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
493
|
-
let r =
|
|
517
|
+
let r = se("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
|
|
494
518
|
l.push({
|
|
495
519
|
id: r,
|
|
496
520
|
type: 1,
|
|
@@ -501,7 +525,7 @@ function pt() {
|
|
|
501
525
|
}
|
|
502
526
|
}
|
|
503
527
|
}
|
|
504
|
-
let { activeApp: u, depends: d } =
|
|
528
|
+
let { activeApp: u, depends: d } = _e.app;
|
|
505
529
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
506
530
|
let i = r(o, e);
|
|
507
531
|
l.push({
|
|
@@ -516,7 +540,7 @@ function pt() {
|
|
|
516
540
|
for (let e of u.comps) {
|
|
517
541
|
let t = d[e.id];
|
|
518
542
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
519
|
-
let t =
|
|
543
|
+
let t = se("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
520
544
|
l.push({
|
|
521
545
|
id: t,
|
|
522
546
|
type: 1,
|
|
@@ -550,11 +574,11 @@ function pt() {
|
|
|
550
574
|
}
|
|
551
575
|
//#endregion
|
|
552
576
|
//#region src/composables/compList/index.ts
|
|
553
|
-
function
|
|
577
|
+
function ht() {
|
|
554
578
|
let e = T([]);
|
|
555
|
-
|
|
579
|
+
rt(e);
|
|
556
580
|
let t = () => {
|
|
557
|
-
let { activeApp: t, depends: n } =
|
|
581
|
+
let { activeApp: t, depends: n } = _e.app, r = [];
|
|
558
582
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
559
583
|
let t = e.value.find((e) => e.id === n);
|
|
560
584
|
r.push({
|
|
@@ -588,11 +612,11 @@ function mt() {
|
|
|
588
612
|
}
|
|
589
613
|
//#endregion
|
|
590
614
|
//#region src/composables/slotList/index.ts
|
|
591
|
-
function
|
|
615
|
+
function gt() {
|
|
592
616
|
let e = T([]);
|
|
593
|
-
|
|
617
|
+
at(e);
|
|
594
618
|
let t = () => {
|
|
595
|
-
let { activeObject: e, activeComp: t } =
|
|
619
|
+
let { activeObject: e, activeComp: t } = _e.app;
|
|
596
620
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
597
621
|
let n = [];
|
|
598
622
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -617,7 +641,7 @@ function ht() {
|
|
|
617
641
|
}
|
|
618
642
|
//#endregion
|
|
619
643
|
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
620
|
-
var
|
|
644
|
+
var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text-grey ml-1" }, yt = /* @__PURE__ */ p({
|
|
621
645
|
__name: "group",
|
|
622
646
|
props: {
|
|
623
647
|
id: {},
|
|
@@ -627,7 +651,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
627
651
|
},
|
|
628
652
|
emits: ["x-click"],
|
|
629
653
|
setup(e, { emit: t }) {
|
|
630
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
654
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
631
655
|
background: s.value ? r.value : n.value,
|
|
632
656
|
height: "30px",
|
|
633
657
|
marginTop: "1px",
|
|
@@ -646,12 +670,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
646
670
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
647
671
|
size: "small"
|
|
648
672
|
}, null, 8, ["icon"]),
|
|
649
|
-
u("span",
|
|
650
|
-
u("span",
|
|
673
|
+
u("span", _t, A(i.title), 1),
|
|
674
|
+
u("span", vt, A(i.count), 1)
|
|
651
675
|
], 36)), [[r]]);
|
|
652
676
|
};
|
|
653
677
|
}
|
|
654
|
-
}),
|
|
678
|
+
}), bt = { class: "text-body-large ml-6" }, xt = /* @__PURE__ */ p({
|
|
655
679
|
__name: "item",
|
|
656
680
|
props: {
|
|
657
681
|
id: {},
|
|
@@ -659,7 +683,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
659
683
|
},
|
|
660
684
|
emits: ["x-click"],
|
|
661
685
|
setup(e, { emit: t }) {
|
|
662
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
686
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
|
|
663
687
|
background: a.value ? r.value : n.value,
|
|
664
688
|
height: "48px",
|
|
665
689
|
marginTop: "1px",
|
|
@@ -673,13 +697,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
673
697
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
674
698
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
675
699
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
676
|
-
}, [u("span",
|
|
700
|
+
}, [u("span", bt, A(e.title), 1)], 36)), [[r]]);
|
|
677
701
|
};
|
|
678
702
|
}
|
|
679
|
-
}),
|
|
703
|
+
}), St = { key: 0 }, Ct = {
|
|
680
704
|
key: 1,
|
|
681
705
|
class: "text-body-medium text-grey ml-3"
|
|
682
|
-
},
|
|
706
|
+
}, wt = /* @__PURE__ */ p({
|
|
683
707
|
__name: "index",
|
|
684
708
|
props: {
|
|
685
709
|
modelValue: {},
|
|
@@ -692,13 +716,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
692
716
|
},
|
|
693
717
|
emits: ["update:modelValue", "update:open"],
|
|
694
718
|
setup(e) {
|
|
695
|
-
let { nameList: t } =
|
|
719
|
+
let { nameList: t } = G(), i = N(e, "modelValue"), o = N(e, "open"), u = ct(), d = (e) => {
|
|
696
720
|
let t = r(u, e);
|
|
697
721
|
t && n(u, e, !t.collapse);
|
|
698
722
|
}, f = (e) => {
|
|
699
723
|
i.value = e, o.value = !1;
|
|
700
724
|
};
|
|
701
|
-
return (e, n) => j(u).length > 0 ? (C(), l("div",
|
|
725
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", St, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(yt, {
|
|
702
726
|
key: 0,
|
|
703
727
|
id: e.id,
|
|
704
728
|
collapse: e.collapse,
|
|
@@ -710,18 +734,18 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
710
734
|
"collapse",
|
|
711
735
|
"count",
|
|
712
736
|
"title"
|
|
713
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
737
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(xt, {
|
|
714
738
|
key: 1,
|
|
715
739
|
id: e.id,
|
|
716
740
|
title: e.name,
|
|
717
741
|
onXClick: f
|
|
718
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
742
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Ct, A(j(t)([
|
|
719
743
|
"x-prop-tree.no",
|
|
720
744
|
"x-prop-tree.adapt",
|
|
721
745
|
"x-prop-tree.slot"
|
|
722
746
|
])), 1));
|
|
723
747
|
}
|
|
724
|
-
}),
|
|
748
|
+
}), Tt = { class: "text-body-large" }, Et = /* @__PURE__ */ p({
|
|
725
749
|
__name: "index",
|
|
726
750
|
props: /* @__PURE__ */ _({
|
|
727
751
|
hasDelete: {
|
|
@@ -738,7 +762,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
738
762
|
}),
|
|
739
763
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
740
764
|
setup(e, { emit: t }) {
|
|
741
|
-
let { t: n } =
|
|
765
|
+
let { t: n } = H(), i = ve(), { sysBarAvail: a, nameList: l } = G(), { backgroundColor1: p } = W(), m = N(e, "modelValue"), h = t, _ = ct(), b = o(() => {
|
|
742
766
|
let e = "100%";
|
|
743
767
|
return i.mdAndUp.value && (e = "400px"), {
|
|
744
768
|
background: p.value,
|
|
@@ -755,7 +779,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
755
779
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
756
780
|
let e = r(_, m.value);
|
|
757
781
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
758
|
-
}), { open: E } =
|
|
782
|
+
}), { open: E } = K(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
759
783
|
return S(() => {
|
|
760
784
|
E.value = !1;
|
|
761
785
|
}), (t, n) => {
|
|
@@ -807,7 +831,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
807
831
|
icon: "mdi-close",
|
|
808
832
|
variant: "text",
|
|
809
833
|
onClick: n[1] ||= (e) => E.value = !1
|
|
810
|
-
}), u("span",
|
|
834
|
+
}), u("span", Tt, A(j(l)([
|
|
811
835
|
"x-prop-tree.select",
|
|
812
836
|
"x-prop-tree.adapt",
|
|
813
837
|
"x-prop-tree.slot"
|
|
@@ -817,7 +841,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
817
841
|
u("div", {
|
|
818
842
|
class: "overflow-y-auto",
|
|
819
843
|
style: y(x.value)
|
|
820
|
-
}, [f(
|
|
844
|
+
}, [f(wt, {
|
|
821
845
|
modelValue: m.value,
|
|
822
846
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
823
847
|
open: j(E),
|
|
@@ -828,7 +852,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
828
852
|
}, 8, ["modelValue"]);
|
|
829
853
|
};
|
|
830
854
|
}
|
|
831
|
-
}),
|
|
855
|
+
}), Dt = { class: "text-label-large ml-1" }, Ot = { class: "text-body-small text-grey ml-1" }, kt = /* @__PURE__ */ p({
|
|
832
856
|
__name: "group",
|
|
833
857
|
props: {
|
|
834
858
|
id: {},
|
|
@@ -838,7 +862,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
838
862
|
},
|
|
839
863
|
emits: ["x-click"],
|
|
840
864
|
setup(e, { emit: t }) {
|
|
841
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
865
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
842
866
|
background: s.value ? r.value : n.value,
|
|
843
867
|
height: "30px",
|
|
844
868
|
marginTop: "1px",
|
|
@@ -857,12 +881,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
857
881
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
858
882
|
size: "small"
|
|
859
883
|
}, null, 8, ["icon"]),
|
|
860
|
-
u("span",
|
|
861
|
-
u("span",
|
|
884
|
+
u("span", Dt, A(i.title), 1),
|
|
885
|
+
u("span", Ot, A(i.count), 1)
|
|
862
886
|
], 36)), [[r]]);
|
|
863
887
|
};
|
|
864
888
|
}
|
|
865
|
-
}),
|
|
889
|
+
}), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
|
|
866
890
|
__name: "item",
|
|
867
891
|
props: {
|
|
868
892
|
id: {},
|
|
@@ -870,7 +894,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
870
894
|
},
|
|
871
895
|
emits: ["x-click"],
|
|
872
896
|
setup(e, { emit: t }) {
|
|
873
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
897
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
874
898
|
background: s.value ? r.value : n.value,
|
|
875
899
|
height: "48px",
|
|
876
900
|
marginTop: "1px",
|
|
@@ -884,13 +908,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
884
908
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
885
909
|
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
886
910
|
onMouseover: t[2] ||= (e) => s.value = !0
|
|
887
|
-
}, [u("span",
|
|
911
|
+
}, [u("span", At, A(i.title), 1)], 36)), [[n]]);
|
|
888
912
|
};
|
|
889
913
|
}
|
|
890
|
-
}),
|
|
914
|
+
}), Mt = { key: 0 }, Nt = {
|
|
891
915
|
key: 1,
|
|
892
916
|
class: "text-body-medium text-grey ml-3"
|
|
893
|
-
},
|
|
917
|
+
}, Pt = /* @__PURE__ */ p({
|
|
894
918
|
__name: "index",
|
|
895
919
|
props: {
|
|
896
920
|
modelValue: {},
|
|
@@ -903,13 +927,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
903
927
|
},
|
|
904
928
|
emits: ["update:modelValue", "update:open"],
|
|
905
929
|
setup(e) {
|
|
906
|
-
let { nameList: t } =
|
|
930
|
+
let { nameList: t } = G(), i = N(e, "modelValue"), o = N(e, "open"), u = it(), d = (e) => {
|
|
907
931
|
let t = r(u, e);
|
|
908
932
|
t && n(u, e, !t.collapse);
|
|
909
933
|
}, f = (e) => {
|
|
910
|
-
i.value = e, o.value = !1,
|
|
934
|
+
i.value = e, o.value = !1, U.emit("refreshDepends");
|
|
911
935
|
};
|
|
912
|
-
return (e, n) => j(u).length > 0 ? (C(), l("div",
|
|
936
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", Mt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(kt, {
|
|
913
937
|
key: 0,
|
|
914
938
|
id: e.id,
|
|
915
939
|
collapse: e.collapse,
|
|
@@ -921,14 +945,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
921
945
|
"collapse",
|
|
922
946
|
"count",
|
|
923
947
|
"title"
|
|
924
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
948
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
|
|
925
949
|
key: 1,
|
|
926
950
|
id: e.id,
|
|
927
951
|
title: e.name,
|
|
928
952
|
onXClick: f
|
|
929
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
953
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
930
954
|
}
|
|
931
|
-
}),
|
|
955
|
+
}), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
|
|
932
956
|
__name: "index",
|
|
933
957
|
props: /* @__PURE__ */ _({
|
|
934
958
|
hasDelete: {
|
|
@@ -945,7 +969,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
945
969
|
}),
|
|
946
970
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
947
971
|
setup(e, { emit: t }) {
|
|
948
|
-
let { t: n } =
|
|
972
|
+
let { t: n } = H(), i = ve(), { sysBarAvail: a, nameList: l } = G(), { backgroundColor1: p } = W(), m = N(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
949
973
|
let e = "100%";
|
|
950
974
|
return i.mdAndUp.value && (e = "400px"), {
|
|
951
975
|
background: p.value,
|
|
@@ -962,7 +986,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
962
986
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
963
987
|
let e = r(_, m.value);
|
|
964
988
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
965
|
-
}), { open: E } =
|
|
989
|
+
}), { open: E } = K(`propTreeCompSelectDlg${M()}`);
|
|
966
990
|
return S(() => {
|
|
967
991
|
E.value = !1;
|
|
968
992
|
}), (t, n) => {
|
|
@@ -1014,13 +1038,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1014
1038
|
icon: "mdi-close",
|
|
1015
1039
|
variant: "text",
|
|
1016
1040
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1017
|
-
}), u("span",
|
|
1041
|
+
}), u("span", Ft, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1018
1042
|
_: 1
|
|
1019
1043
|
}),
|
|
1020
1044
|
u("div", {
|
|
1021
1045
|
class: "overflow-y-auto",
|
|
1022
1046
|
style: y(x.value)
|
|
1023
|
-
}, [f(
|
|
1047
|
+
}, [f(Pt, {
|
|
1024
1048
|
modelValue: m.value,
|
|
1025
1049
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1026
1050
|
open: j(E),
|
|
@@ -1031,7 +1055,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1031
1055
|
}, 8, ["modelValue"]);
|
|
1032
1056
|
};
|
|
1033
1057
|
}
|
|
1034
|
-
}),
|
|
1058
|
+
}), Lt = { class: "d-flex justify-space-between align-center" }, Rt = /* @__PURE__ */ p({
|
|
1035
1059
|
__name: "index",
|
|
1036
1060
|
props: /* @__PURE__ */ _({
|
|
1037
1061
|
hasDelete: {
|
|
@@ -1048,9 +1072,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1048
1072
|
}),
|
|
1049
1073
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1050
1074
|
setup(e, { emit: t }) {
|
|
1051
|
-
let { isMobile: n } =
|
|
1075
|
+
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1052
1076
|
if (!t || e.readonly || !n()) return;
|
|
1053
|
-
let i = await
|
|
1077
|
+
let i = await ge({
|
|
1054
1078
|
title: "",
|
|
1055
1079
|
value: r.value
|
|
1056
1080
|
});
|
|
@@ -1058,7 +1082,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1058
1082
|
};
|
|
1059
1083
|
return (t, n) => {
|
|
1060
1084
|
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1061
|
-
return C(), l("div",
|
|
1085
|
+
return C(), l("div", Lt, [L(f(o, {
|
|
1062
1086
|
modelValue: r.value,
|
|
1063
1087
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1064
1088
|
density: "compact",
|
|
@@ -1081,7 +1105,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1081
1105
|
})) : c("", !0)]);
|
|
1082
1106
|
};
|
|
1083
1107
|
}
|
|
1084
|
-
}),
|
|
1108
|
+
}), zt = /* @__PURE__ */ p({
|
|
1085
1109
|
__name: "editor",
|
|
1086
1110
|
props: {
|
|
1087
1111
|
modelValue: { required: !0 },
|
|
@@ -1100,14 +1124,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1100
1124
|
"update:scale"
|
|
1101
1125
|
],
|
|
1102
1126
|
setup(e, { expose: t }) {
|
|
1103
|
-
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a =
|
|
1127
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = pe(), o = me(), c = Ue(), l = ee("target"), u = () => {
|
|
1104
1128
|
let e = JSON.parse(n.value);
|
|
1105
1129
|
l.value?.load(e);
|
|
1106
1130
|
};
|
|
1107
1131
|
return t({ save: () => {
|
|
1108
1132
|
let e = l.value.save();
|
|
1109
1133
|
n.value = JSON.stringify(e, null, 2);
|
|
1110
|
-
} }), (e, t) => (C(), s(j(
|
|
1134
|
+
} }), (e, t) => (C(), s(j(ye), {
|
|
1111
1135
|
ref_key: "target",
|
|
1112
1136
|
ref: l,
|
|
1113
1137
|
lock: r.value,
|
|
@@ -1127,7 +1151,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1127
1151
|
"version"
|
|
1128
1152
|
]));
|
|
1129
1153
|
}
|
|
1130
|
-
}),
|
|
1154
|
+
}), Bt = { class: "text-body-large" }, Vt = /* @__PURE__ */ p({
|
|
1131
1155
|
__name: "index",
|
|
1132
1156
|
props: /* @__PURE__ */ _({
|
|
1133
1157
|
hasDelete: {
|
|
@@ -1144,14 +1168,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1144
1168
|
}),
|
|
1145
1169
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1146
1170
|
setup(e, { emit: t }) {
|
|
1147
|
-
let { t: n } =
|
|
1171
|
+
let { t: n } = H(), { sysBarAvail: r } = G(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = W(), p = N(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
|
|
1148
1172
|
let e = 48;
|
|
1149
1173
|
return r.value && (e += 24), {
|
|
1150
1174
|
position: "relative",
|
|
1151
1175
|
background: a.value,
|
|
1152
1176
|
height: `calc(100% - ${e}px)`
|
|
1153
1177
|
};
|
|
1154
|
-
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } =
|
|
1178
|
+
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = K(`propTreejsonEditorDlg${M()}`);
|
|
1155
1179
|
S(() => {
|
|
1156
1180
|
w.value = !1;
|
|
1157
1181
|
});
|
|
@@ -1208,12 +1232,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1208
1232
|
variant: "text",
|
|
1209
1233
|
onClick: n[1] ||= (e) => w.value = !1
|
|
1210
1234
|
}),
|
|
1211
|
-
u("span",
|
|
1235
|
+
u("span", Bt, A(x.value), 1),
|
|
1212
1236
|
f(S)
|
|
1213
1237
|
]),
|
|
1214
1238
|
_: 1
|
|
1215
1239
|
}, 8, ["color"]),
|
|
1216
|
-
u("div", { style: y(b.value) }, [f(
|
|
1240
|
+
u("div", { style: y(b.value) }, [f(zt, {
|
|
1217
1241
|
ref_key: "editor",
|
|
1218
1242
|
ref: E,
|
|
1219
1243
|
modelValue: p.value,
|
|
@@ -1234,7 +1258,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1234
1258
|
}, 8, ["modelValue"]);
|
|
1235
1259
|
};
|
|
1236
1260
|
}
|
|
1237
|
-
}),
|
|
1261
|
+
}), Ht = { class: "d-flex justify-space-between align-center" }, Ut = /* @__PURE__ */ p({
|
|
1238
1262
|
__name: "color",
|
|
1239
1263
|
props: /* @__PURE__ */ _({
|
|
1240
1264
|
hasDelete: {
|
|
@@ -1251,10 +1275,10 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1251
1275
|
}),
|
|
1252
1276
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1253
1277
|
setup(e, { emit: t }) {
|
|
1254
|
-
let { t: n } =
|
|
1278
|
+
let { t: n } = H(), r = N(e, "modelValue"), i = t, a = o(() => {
|
|
1255
1279
|
let t = "100%";
|
|
1256
1280
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1257
|
-
}), l = o(() => e.readonly), { open: p } =
|
|
1281
|
+
}), l = o(() => e.readonly), { open: p } = K(`propTreeColorPickerMenu${M()}`);
|
|
1258
1282
|
return S(() => {
|
|
1259
1283
|
p.value = !1;
|
|
1260
1284
|
}), (t, o) => {
|
|
@@ -1265,7 +1289,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1265
1289
|
"close-on-content-click": !1,
|
|
1266
1290
|
scrim: "transparent"
|
|
1267
1291
|
}, {
|
|
1268
|
-
activator: I(({ props: t }) => [u("div",
|
|
1292
|
+
activator: I(({ props: t }) => [u("div", Ht, [u("div", {
|
|
1269
1293
|
class: "flex-grow-1",
|
|
1270
1294
|
style: y(a.value)
|
|
1271
1295
|
}, [f(m, v(t, {
|
|
@@ -1295,7 +1319,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1295
1319
|
}, 8, ["modelValue"]);
|
|
1296
1320
|
};
|
|
1297
1321
|
}
|
|
1298
|
-
}),
|
|
1322
|
+
}), Wt = { class: "d-flex justify-space-between align-center my-2" }, Gt = { class: "flex-grow-1" }, Kt = /* @__PURE__ */ p({
|
|
1299
1323
|
__name: "index",
|
|
1300
1324
|
props: /* @__PURE__ */ _({
|
|
1301
1325
|
hasDelete: {
|
|
@@ -1313,7 +1337,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1313
1337
|
}),
|
|
1314
1338
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1315
1339
|
setup(e, { emit: t }) {
|
|
1316
|
-
let { t: n } =
|
|
1340
|
+
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, d = o(() => ie(e.types)), p = T(""), m = o(() => {
|
|
1317
1341
|
let e = [];
|
|
1318
1342
|
for (let { value: t, title: r } of d.value) e.push({
|
|
1319
1343
|
value: t,
|
|
@@ -1336,8 +1360,8 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1336
1360
|
p.value = d.value[0].value, g();
|
|
1337
1361
|
}
|
|
1338
1362
|
let v = T(0), y = async (e) => {
|
|
1339
|
-
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "
|
|
1340
|
-
let t = await
|
|
1363
|
+
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1364
|
+
let t = await he({
|
|
1341
1365
|
title: "",
|
|
1342
1366
|
value: v.value,
|
|
1343
1367
|
precision: h.value.precision,
|
|
@@ -1348,31 +1372,31 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1348
1372
|
t !== void 0 && (v.value = t);
|
|
1349
1373
|
};
|
|
1350
1374
|
F(() => {
|
|
1351
|
-
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "
|
|
1375
|
+
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = ce(i.value, h.value.unit));
|
|
1352
1376
|
}), P(v, (e) => {
|
|
1353
|
-
h.value?.trait === "number" ? i.value = e : h.value?.trait === "
|
|
1377
|
+
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1354
1378
|
});
|
|
1355
1379
|
let b = T("#ff00ff");
|
|
1356
1380
|
F(() => {
|
|
1357
|
-
h.value?.trait === "hexColor" &&
|
|
1381
|
+
h.value?.trait === "hexColor" && ae(i.value) && (b.value = i.value);
|
|
1358
1382
|
}), P(b, (e) => {
|
|
1359
1383
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1360
1384
|
});
|
|
1361
1385
|
let x = T("primary"), S = o(() => {
|
|
1362
1386
|
let e = [];
|
|
1363
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1387
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of de) e.push({
|
|
1364
1388
|
value: t,
|
|
1365
1389
|
title: n(r)
|
|
1366
1390
|
});
|
|
1367
1391
|
return e;
|
|
1368
1392
|
});
|
|
1369
1393
|
return F(() => {
|
|
1370
|
-
h.value?.trait === "themeColor" &&
|
|
1394
|
+
h.value?.trait === "themeColor" && oe(i.value) && (x.value = i.value);
|
|
1371
1395
|
}), P(x, (e) => {
|
|
1372
1396
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1373
1397
|
}), (t, n) => {
|
|
1374
1398
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), d = k("ripple");
|
|
1375
|
-
return C(), l("div",
|
|
1399
|
+
return C(), l("div", Wt, [u("div", Gt, [
|
|
1376
1400
|
L(f(r, {
|
|
1377
1401
|
modelValue: p.value,
|
|
1378
1402
|
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
@@ -1391,7 +1415,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1391
1415
|
void 0,
|
|
1392
1416
|
{ stop: !0 }
|
|
1393
1417
|
]]),
|
|
1394
|
-
h.value?.trait === "number" || h.value?.trait === "
|
|
1418
|
+
h.value?.trait === "number" || h.value?.trait === "numberUnit" ? L((C(), s(i, {
|
|
1395
1419
|
key: 0,
|
|
1396
1420
|
modelValue: v.value,
|
|
1397
1421
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
@@ -1418,7 +1442,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1418
1442
|
void 0,
|
|
1419
1443
|
{ stop: !0 }
|
|
1420
1444
|
]]) : c("", !0),
|
|
1421
|
-
h.value?.trait === "hexColor" ? (C(), s(
|
|
1445
|
+
h.value?.trait === "hexColor" ? (C(), s(Ut, {
|
|
1422
1446
|
key: 1,
|
|
1423
1447
|
modelValue: b.value,
|
|
1424
1448
|
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
@@ -1447,7 +1471,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1447
1471
|
})) : c("", !0)]);
|
|
1448
1472
|
};
|
|
1449
1473
|
}
|
|
1450
|
-
}),
|
|
1474
|
+
}), qt = { class: "d-flex justify-space-between align-center" }, Jt = /* @__PURE__ */ p({
|
|
1451
1475
|
__name: "index",
|
|
1452
1476
|
props: /* @__PURE__ */ _({
|
|
1453
1477
|
hasDelete: {
|
|
@@ -1468,9 +1492,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1468
1492
|
}),
|
|
1469
1493
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1470
1494
|
setup(e, { emit: t }) {
|
|
1471
|
-
let { isMobile: n } =
|
|
1495
|
+
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1472
1496
|
if (!t || e.readonly || !n()) return;
|
|
1473
|
-
let i = await
|
|
1497
|
+
let i = await he({
|
|
1474
1498
|
title: "",
|
|
1475
1499
|
value: r.value,
|
|
1476
1500
|
precision: e.precision,
|
|
@@ -1482,7 +1506,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1482
1506
|
};
|
|
1483
1507
|
return (t, n) => {
|
|
1484
1508
|
let o = O("v-number-input"), u = O("v-btn"), d = k("ripple");
|
|
1485
|
-
return C(), l("div",
|
|
1509
|
+
return C(), l("div", qt, [L(f(o, {
|
|
1486
1510
|
modelValue: r.value,
|
|
1487
1511
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1488
1512
|
"control-variant": "stacked",
|
|
@@ -1517,7 +1541,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1517
1541
|
})) : c("", !0)]);
|
|
1518
1542
|
};
|
|
1519
1543
|
}
|
|
1520
|
-
}),
|
|
1544
|
+
}), Yt = { class: "d-flex justify-space-between align-center my-2" }, Xt = { class: "flex-grow-1" }, Zt = /* @__PURE__ */ p({
|
|
1521
1545
|
__name: "index",
|
|
1522
1546
|
props: /* @__PURE__ */ _({
|
|
1523
1547
|
hasDelete: {
|
|
@@ -1534,7 +1558,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1534
1558
|
}),
|
|
1535
1559
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1536
1560
|
setup(e, { emit: t }) {
|
|
1537
|
-
let { t: n } =
|
|
1561
|
+
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, d = T(""), p = T(0);
|
|
1538
1562
|
F(() => {
|
|
1539
1563
|
let e = i.value.split(",");
|
|
1540
1564
|
e.length < 1 || (d.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? p.value = parseInt(e[1]) : p.value = 0));
|
|
@@ -1547,7 +1571,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1547
1571
|
value: "",
|
|
1548
1572
|
title: n("x-runtime-lib.notSet")
|
|
1549
1573
|
}];
|
|
1550
|
-
for (let t of
|
|
1574
|
+
for (let t of ue) e.push({
|
|
1551
1575
|
value: t,
|
|
1552
1576
|
title: n(`x-runtime-lib.${t}`)
|
|
1553
1577
|
});
|
|
@@ -1562,7 +1586,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1562
1586
|
});
|
|
1563
1587
|
async function _(e) {
|
|
1564
1588
|
if (!e || !r()) return;
|
|
1565
|
-
let t = await
|
|
1589
|
+
let t = await he({
|
|
1566
1590
|
title: "",
|
|
1567
1591
|
value: p.value,
|
|
1568
1592
|
precision: 0,
|
|
@@ -1577,7 +1601,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1577
1601
|
}
|
|
1578
1602
|
return (t, n) => {
|
|
1579
1603
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), m = k("ripple");
|
|
1580
|
-
return C(), l("div",
|
|
1604
|
+
return C(), l("div", Yt, [u("div", Xt, [L(f(r, {
|
|
1581
1605
|
modelValue: d.value,
|
|
1582
1606
|
"onUpdate:modelValue": [n[0] ||= (e) => d.value = e, g],
|
|
1583
1607
|
density: "compact",
|
|
@@ -1623,7 +1647,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1623
1647
|
})) : c("", !0)]);
|
|
1624
1648
|
};
|
|
1625
1649
|
}
|
|
1626
|
-
}),
|
|
1650
|
+
}), Qt = { class: "d-flex justify-space-between align-center" }, $t = /* @__PURE__ */ p({
|
|
1627
1651
|
__name: "index",
|
|
1628
1652
|
props: /* @__PURE__ */ _({
|
|
1629
1653
|
hasDelete: {
|
|
@@ -1641,7 +1665,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1641
1665
|
}),
|
|
1642
1666
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1643
1667
|
setup(e, { emit: t }) {
|
|
1644
|
-
let { t: n } =
|
|
1668
|
+
let { t: n } = H(), r = N(e, "modelValue"), i = t, a = o(() => {
|
|
1645
1669
|
let t = [];
|
|
1646
1670
|
return ne(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1647
1671
|
let i = e;
|
|
@@ -1653,7 +1677,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1653
1677
|
});
|
|
1654
1678
|
return (t, n) => {
|
|
1655
1679
|
let o = O("v-select"), u = O("v-btn"), d = k("ripple");
|
|
1656
|
-
return C(), l("div",
|
|
1680
|
+
return C(), l("div", Qt, [L(f(o, {
|
|
1657
1681
|
modelValue: r.value,
|
|
1658
1682
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1659
1683
|
density: "compact",
|
|
@@ -1680,7 +1704,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1680
1704
|
})) : c("", !0)]);
|
|
1681
1705
|
};
|
|
1682
1706
|
}
|
|
1683
|
-
}),
|
|
1707
|
+
}), en = { class: "text-body-large ml-6" }, tn = /* @__PURE__ */ p({
|
|
1684
1708
|
__name: "item",
|
|
1685
1709
|
props: {
|
|
1686
1710
|
id: {},
|
|
@@ -1688,7 +1712,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1688
1712
|
},
|
|
1689
1713
|
emits: ["x-click"],
|
|
1690
1714
|
setup(e, { emit: t }) {
|
|
1691
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1715
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
|
|
1692
1716
|
background: a.value ? r.value : n.value,
|
|
1693
1717
|
height: "48px",
|
|
1694
1718
|
marginTop: "1px",
|
|
@@ -1702,13 +1726,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1702
1726
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1703
1727
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1704
1728
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1705
|
-
}, [u("span",
|
|
1729
|
+
}, [u("span", en, A(e.title), 1)], 36)), [[r]]);
|
|
1706
1730
|
};
|
|
1707
1731
|
}
|
|
1708
|
-
}),
|
|
1732
|
+
}), nn = { key: 0 }, rn = {
|
|
1709
1733
|
key: 1,
|
|
1710
1734
|
class: "text-body-medium text-grey ml-3"
|
|
1711
|
-
},
|
|
1735
|
+
}, an = /* @__PURE__ */ p({
|
|
1712
1736
|
__name: "index",
|
|
1713
1737
|
props: {
|
|
1714
1738
|
modelValue: {},
|
|
@@ -1721,17 +1745,17 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1721
1745
|
},
|
|
1722
1746
|
emits: ["update:modelValue", "update:open"],
|
|
1723
1747
|
setup(e) {
|
|
1724
|
-
let { nameList: t } =
|
|
1748
|
+
let { nameList: t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ot(), o = (e) => {
|
|
1725
1749
|
n.value = e, r.value = !1;
|
|
1726
1750
|
};
|
|
1727
|
-
return (e, n) => j(i).length > 0 ? (C(), l("div",
|
|
1751
|
+
return (e, n) => j(i).length > 0 ? (C(), l("div", nn, [(C(!0), l(a, null, E(j(i), (e) => (C(), s(tn, {
|
|
1728
1752
|
key: e.id,
|
|
1729
1753
|
id: e.id,
|
|
1730
1754
|
title: e.name,
|
|
1731
1755
|
onXClick: o
|
|
1732
|
-
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div",
|
|
1756
|
+
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", rn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1733
1757
|
}
|
|
1734
|
-
}),
|
|
1758
|
+
}), on = { class: "text-body-large" }, sn = /* @__PURE__ */ p({
|
|
1735
1759
|
__name: "index",
|
|
1736
1760
|
props: /* @__PURE__ */ _({
|
|
1737
1761
|
hasDelete: {
|
|
@@ -1748,7 +1772,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1748
1772
|
}),
|
|
1749
1773
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1750
1774
|
setup(e, { emit: t }) {
|
|
1751
|
-
let { t: n } =
|
|
1775
|
+
let { t: n } = H(), r = ve(), { sysBarAvail: i, nameList: a } = G(), { backgroundColor1: l } = W(), p = N(e, "modelValue"), m = t, h = ot(), _ = o(() => {
|
|
1752
1776
|
let e = "100%";
|
|
1753
1777
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1754
1778
|
background: l.value,
|
|
@@ -1765,7 +1789,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1765
1789
|
if (!p.value) return n("x-runtime-lib.notSet");
|
|
1766
1790
|
let e = h.value.find((e) => e.id === p.value);
|
|
1767
1791
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1768
|
-
}), { open: T } =
|
|
1792
|
+
}), { open: T } = K(`propTreeSlotSelectDlg${M()}`);
|
|
1769
1793
|
return S(() => {
|
|
1770
1794
|
T.value = !1;
|
|
1771
1795
|
}), (t, n) => {
|
|
@@ -1817,13 +1841,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1817
1841
|
icon: "mdi-close",
|
|
1818
1842
|
variant: "text",
|
|
1819
1843
|
onClick: n[1] ||= (e) => T.value = !1
|
|
1820
|
-
}), u("span",
|
|
1844
|
+
}), u("span", on, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1821
1845
|
_: 1
|
|
1822
1846
|
}),
|
|
1823
1847
|
u("div", {
|
|
1824
1848
|
class: "overflow-y-auto",
|
|
1825
1849
|
style: y(b.value)
|
|
1826
|
-
}, [f(
|
|
1850
|
+
}, [f(an, {
|
|
1827
1851
|
modelValue: p.value,
|
|
1828
1852
|
"onUpdate:modelValue": n[2] ||= (e) => p.value = e,
|
|
1829
1853
|
open: j(T),
|
|
@@ -1834,7 +1858,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1834
1858
|
}, 8, ["modelValue"]);
|
|
1835
1859
|
};
|
|
1836
1860
|
}
|
|
1837
|
-
}),
|
|
1861
|
+
}), cn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PURE__ */ p({
|
|
1838
1862
|
__name: "index",
|
|
1839
1863
|
props: /* @__PURE__ */ _({
|
|
1840
1864
|
hasDelete: {
|
|
@@ -1854,7 +1878,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1854
1878
|
let n = N(e, "modelValue"), r = t;
|
|
1855
1879
|
return (t, i) => {
|
|
1856
1880
|
let a = O("v-switch"), o = O("v-btn");
|
|
1857
|
-
return C(), l("div",
|
|
1881
|
+
return C(), l("div", cn, [f(a, {
|
|
1858
1882
|
modelValue: n.value,
|
|
1859
1883
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1860
1884
|
class: "ml-1",
|
|
@@ -1872,7 +1896,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1872
1896
|
})) : c("", !0)]);
|
|
1873
1897
|
};
|
|
1874
1898
|
}
|
|
1875
|
-
}),
|
|
1899
|
+
}), un = { class: "d-flex justify-space-between align-center" }, dn = /* @__PURE__ */ p({
|
|
1876
1900
|
__name: "index",
|
|
1877
1901
|
props: /* @__PURE__ */ _({
|
|
1878
1902
|
hasDelete: {
|
|
@@ -1889,9 +1913,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1889
1913
|
}),
|
|
1890
1914
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1891
1915
|
setup(e, { emit: t }) {
|
|
1892
|
-
let { isMobile: n } =
|
|
1916
|
+
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1893
1917
|
if (!t || e.readonly || !n()) return;
|
|
1894
|
-
let i = await
|
|
1918
|
+
let i = await ge({
|
|
1895
1919
|
title: "",
|
|
1896
1920
|
value: r.value
|
|
1897
1921
|
});
|
|
@@ -1899,7 +1923,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1899
1923
|
};
|
|
1900
1924
|
return (t, n) => {
|
|
1901
1925
|
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1902
|
-
return C(), l("div",
|
|
1926
|
+
return C(), l("div", un, [L(f(o, {
|
|
1903
1927
|
modelValue: r.value,
|
|
1904
1928
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1905
1929
|
density: "compact",
|
|
@@ -1925,14 +1949,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1925
1949
|
});
|
|
1926
1950
|
//#endregion
|
|
1927
1951
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1928
|
-
function
|
|
1952
|
+
function fn() {
|
|
1929
1953
|
let e = $();
|
|
1930
1954
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1931
1955
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1932
|
-
return m(
|
|
1933
|
-
modelValue:
|
|
1956
|
+
return m(Et, {
|
|
1957
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
1934
1958
|
"onUpdate:modelValue": (o) => {
|
|
1935
|
-
|
|
1959
|
+
X(t, n, r, o, i, a, e);
|
|
1936
1960
|
},
|
|
1937
1961
|
hasDelete: i !== void 0 && !a,
|
|
1938
1962
|
onDelete: () => {
|
|
@@ -1944,14 +1968,14 @@ function dn() {
|
|
|
1944
1968
|
}
|
|
1945
1969
|
//#endregion
|
|
1946
1970
|
//#region src/composables/uis/uiComp.ts
|
|
1947
|
-
function
|
|
1971
|
+
function pn() {
|
|
1948
1972
|
let e = $();
|
|
1949
1973
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
1950
1974
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1951
|
-
return m(
|
|
1952
|
-
modelValue:
|
|
1975
|
+
return m(It, {
|
|
1976
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
1953
1977
|
"onUpdate:modelValue": (o) => {
|
|
1954
|
-
|
|
1978
|
+
X(t, n, r, o, i, a, e);
|
|
1955
1979
|
},
|
|
1956
1980
|
hasDelete: i !== void 0 && !a,
|
|
1957
1981
|
onDelete: () => {
|
|
@@ -1963,23 +1987,23 @@ function fn() {
|
|
|
1963
1987
|
}
|
|
1964
1988
|
//#endregion
|
|
1965
1989
|
//#region src/composables/uis/uiDummy.ts
|
|
1966
|
-
function
|
|
1990
|
+
function mn() {
|
|
1967
1991
|
let e = $();
|
|
1968
1992
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1969
1993
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1970
|
-
|
|
1994
|
+
Y(t, n, r, i, a, e);
|
|
1971
1995
|
} };
|
|
1972
1996
|
}
|
|
1973
1997
|
//#endregion
|
|
1974
1998
|
//#region src/composables/uis/uiIcon.ts
|
|
1975
|
-
function
|
|
1999
|
+
function hn() {
|
|
1976
2000
|
let e = $();
|
|
1977
2001
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
1978
2002
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
1979
|
-
return m(
|
|
1980
|
-
modelValue: n.static ? n.value :
|
|
2003
|
+
return m(Rt, {
|
|
2004
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
1981
2005
|
"onUpdate:modelValue": (o) => {
|
|
1982
|
-
n.static ||
|
|
2006
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
1983
2007
|
},
|
|
1984
2008
|
hasDelete: i !== void 0 && !a,
|
|
1985
2009
|
onDelete: () => {
|
|
@@ -1991,14 +2015,14 @@ function mn() {
|
|
|
1991
2015
|
}
|
|
1992
2016
|
//#endregion
|
|
1993
2017
|
//#region src/composables/uis/uiJson.ts
|
|
1994
|
-
function
|
|
2018
|
+
function gn() {
|
|
1995
2019
|
let e = $();
|
|
1996
2020
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
1997
2021
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
1998
|
-
return m(
|
|
1999
|
-
modelValue:
|
|
2022
|
+
return m(Vt, {
|
|
2023
|
+
modelValue: Y(t, n, r, i, a, e) ?? "{}",
|
|
2000
2024
|
"onUpdate:modelValue": (o) => {
|
|
2001
|
-
|
|
2025
|
+
X(t, n, r, o, i, a, e);
|
|
2002
2026
|
},
|
|
2003
2027
|
hasDelete: i !== void 0 && !a,
|
|
2004
2028
|
onDelete: () => {
|
|
@@ -2010,14 +2034,14 @@ function hn() {
|
|
|
2010
2034
|
}
|
|
2011
2035
|
//#endregion
|
|
2012
2036
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2013
|
-
function
|
|
2037
|
+
function _n() {
|
|
2014
2038
|
let e = $();
|
|
2015
2039
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2016
2040
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2017
|
-
return m(
|
|
2018
|
-
modelValue:
|
|
2041
|
+
return m(Kt, {
|
|
2042
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2019
2043
|
"onUpdate:modelValue": (o) => {
|
|
2020
|
-
|
|
2044
|
+
X(t, n, r, o, i, a, e);
|
|
2021
2045
|
},
|
|
2022
2046
|
hasDelete: i !== void 0 && !a,
|
|
2023
2047
|
onDelete: () => {
|
|
@@ -2029,14 +2053,14 @@ function gn() {
|
|
|
2029
2053
|
}
|
|
2030
2054
|
//#endregion
|
|
2031
2055
|
//#region src/composables/uis/uiNumber.ts
|
|
2032
|
-
function
|
|
2056
|
+
function vn() {
|
|
2033
2057
|
let e = $();
|
|
2034
2058
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2035
2059
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2036
|
-
return m(
|
|
2037
|
-
modelValue:
|
|
2060
|
+
return m(Jt, {
|
|
2061
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2038
2062
|
"onUpdate:modelValue": (o) => {
|
|
2039
|
-
|
|
2063
|
+
X(t, n, r, o, i, a, e);
|
|
2040
2064
|
},
|
|
2041
2065
|
hasDelete: i !== void 0 && !a,
|
|
2042
2066
|
onDelete: () => {
|
|
@@ -2052,12 +2076,12 @@ function _n() {
|
|
|
2052
2076
|
}
|
|
2053
2077
|
//#endregion
|
|
2054
2078
|
//#region src/components/entry/index.vue
|
|
2055
|
-
var
|
|
2079
|
+
var yn = /* @__PURE__ */ p({
|
|
2056
2080
|
__name: "index",
|
|
2057
2081
|
props: { minHeight: {} },
|
|
2058
2082
|
emits: ["menu"],
|
|
2059
2083
|
setup(e, { emit: t }) {
|
|
2060
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
2084
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
|
|
2061
2085
|
background: a.value ? r.value : n.value,
|
|
2062
2086
|
minHeight: e.minHeight,
|
|
2063
2087
|
paddingRight: "4px",
|
|
@@ -2080,14 +2104,14 @@ var vn = /* @__PURE__ */ p({
|
|
|
2080
2104
|
});
|
|
2081
2105
|
//#endregion
|
|
2082
2106
|
//#region src/composables/uis/uiProperty.ts
|
|
2083
|
-
function
|
|
2084
|
-
let { t: e } =
|
|
2107
|
+
function bn() {
|
|
2108
|
+
let { t: e } = H(), t = tt();
|
|
2085
2109
|
return { renderProperty: (n, r, i) => {
|
|
2086
2110
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2087
|
-
return Q(t.value, n) && (o += " *"), m(
|
|
2111
|
+
return Q(t.value, n) && (o += " *"), m(yn, {
|
|
2088
2112
|
minHeight: "56px",
|
|
2089
2113
|
onMenu: (e, t) => {
|
|
2090
|
-
|
|
2114
|
+
U.emit("propTreeMenu", {
|
|
2091
2115
|
x: e,
|
|
2092
2116
|
y: t,
|
|
2093
2117
|
keys: n
|
|
@@ -2104,14 +2128,14 @@ function yn() {
|
|
|
2104
2128
|
}
|
|
2105
2129
|
//#endregion
|
|
2106
2130
|
//#region src/composables/uis/uiRule.ts
|
|
2107
|
-
function
|
|
2131
|
+
function xn() {
|
|
2108
2132
|
let e = $();
|
|
2109
2133
|
function t(t, n, r, i, a) {
|
|
2110
2134
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2111
|
-
return m(
|
|
2112
|
-
modelValue:
|
|
2135
|
+
return m(Zt, {
|
|
2136
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2113
2137
|
"onUpdate:modelValue": (o) => {
|
|
2114
|
-
|
|
2138
|
+
X(t, n, r, o, i, a, e);
|
|
2115
2139
|
},
|
|
2116
2140
|
hasDelete: i !== void 0 && !a,
|
|
2117
2141
|
onDelete: () => {
|
|
@@ -2123,14 +2147,14 @@ function bn() {
|
|
|
2123
2147
|
}
|
|
2124
2148
|
//#endregion
|
|
2125
2149
|
//#region src/composables/uis/uiSelect.ts
|
|
2126
|
-
function
|
|
2150
|
+
function Sn() {
|
|
2127
2151
|
let e = $();
|
|
2128
2152
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2129
2153
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2130
|
-
return m(
|
|
2131
|
-
modelValue:
|
|
2154
|
+
return m($t, {
|
|
2155
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2132
2156
|
"onUpdate:modelValue": (o) => {
|
|
2133
|
-
|
|
2157
|
+
X(t, n, r, o, i, a, e);
|
|
2134
2158
|
},
|
|
2135
2159
|
hasDelete: i !== void 0 && !a,
|
|
2136
2160
|
onDelete: () => {
|
|
@@ -2143,14 +2167,14 @@ function xn() {
|
|
|
2143
2167
|
}
|
|
2144
2168
|
//#endregion
|
|
2145
2169
|
//#region src/composables/uis/uiSlot.ts
|
|
2146
|
-
function
|
|
2170
|
+
function Cn() {
|
|
2147
2171
|
let e = $();
|
|
2148
2172
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2149
2173
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2150
|
-
return m(
|
|
2151
|
-
modelValue:
|
|
2174
|
+
return m(sn, {
|
|
2175
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2152
2176
|
"onUpdate:modelValue": (o) => {
|
|
2153
|
-
|
|
2177
|
+
X(t, n, r, o, i, a, e);
|
|
2154
2178
|
},
|
|
2155
2179
|
hasDelete: i !== void 0 && !a,
|
|
2156
2180
|
onDelete: () => {
|
|
@@ -2162,14 +2186,14 @@ function Sn() {
|
|
|
2162
2186
|
}
|
|
2163
2187
|
//#endregion
|
|
2164
2188
|
//#region src/composables/uis/uiSwitch.ts
|
|
2165
|
-
function
|
|
2189
|
+
function wn() {
|
|
2166
2190
|
let e = $();
|
|
2167
2191
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2168
2192
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2169
|
-
return m(
|
|
2170
|
-
modelValue:
|
|
2193
|
+
return m(ln, {
|
|
2194
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2171
2195
|
"onUpdate:modelValue": (o) => {
|
|
2172
|
-
|
|
2196
|
+
X(t, n, r, o, i, a, e);
|
|
2173
2197
|
},
|
|
2174
2198
|
hasDelete: i !== void 0 && !a,
|
|
2175
2199
|
onDelete: () => {
|
|
@@ -2181,14 +2205,14 @@ function Cn() {
|
|
|
2181
2205
|
}
|
|
2182
2206
|
//#endregion
|
|
2183
2207
|
//#region src/composables/uis/uiText.ts
|
|
2184
|
-
function
|
|
2208
|
+
function Tn() {
|
|
2185
2209
|
let e = $();
|
|
2186
2210
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2187
2211
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2188
|
-
return m(
|
|
2189
|
-
modelValue: n.static ? n.value :
|
|
2212
|
+
return m(dn, {
|
|
2213
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2190
2214
|
"onUpdate:modelValue": (o) => {
|
|
2191
|
-
n.static ||
|
|
2215
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
2192
2216
|
},
|
|
2193
2217
|
hasDelete: i !== void 0 && !a,
|
|
2194
2218
|
onDelete: () => {
|
|
@@ -2200,27 +2224,27 @@ function wn() {
|
|
|
2200
2224
|
}
|
|
2201
2225
|
//#endregion
|
|
2202
2226
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2203
|
-
var
|
|
2227
|
+
var En = "20px", Dn = /* @__PURE__ */ p({
|
|
2204
2228
|
__name: "main",
|
|
2205
2229
|
setup(t) {
|
|
2206
|
-
let { t: n } =
|
|
2207
|
-
|
|
2208
|
-
let { renderProperty: d } =
|
|
2230
|
+
let { t: n } = H(), { backgroundColor1: r } = W(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
|
|
2231
|
+
ht(), gt(), mt();
|
|
2232
|
+
let { renderProperty: d } = bn(), { renderUiDummy: p } = mn(), { renderUiText: h } = Tn(), { renderUiNumber: g } = vn(), { renderUiSwitch: _ } = wn(), { renderUiSelect: v } = Sn(), { renderUiJson: y } = gn(), { renderUiIcon: b } = hn(), { renderUiComp: x } = pn(), { renderUiSlot: S } = Cn(), { renderUiAdaptSlot: w } = fn(), { renderUiRule: T } = xn(), { renderUiMultiTypes: E } = _n(), D = (t, n, r, i, a, o) => {
|
|
2209
2233
|
if (t = e(t), i === void 0 ? t.push(n.key) : (t.push(i), a && t.push(n.key)), t?.[0] !== "runtime") return n.ui ? n.array && !o ? A(t, n, r, i, a) : j(t, n, r, i, a) : n.array ? O(t, n, r, i, a) : k(t, n, r, i, a);
|
|
2210
2234
|
}, O = (e, t, r, i, a) => {
|
|
2211
2235
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2212
2236
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2213
|
-
let o =
|
|
2214
|
-
|
|
2215
|
-
let d = m(
|
|
2237
|
+
let o = be(e, t, r, i, a, u), l = n(t.name);
|
|
2238
|
+
Z(s, e) && Q(c.value, e) && (l += " *");
|
|
2239
|
+
let d = m(pt, {
|
|
2216
2240
|
title: l,
|
|
2217
|
-
collapse:
|
|
2241
|
+
collapse: Z(s, e),
|
|
2218
2242
|
hasCreate: !0,
|
|
2219
2243
|
onCollapse: (t) => {
|
|
2220
|
-
|
|
2244
|
+
xe(s, e, t);
|
|
2221
2245
|
},
|
|
2222
2246
|
onMenu: (t, n) => {
|
|
2223
|
-
|
|
2247
|
+
U.emit("propTreeMenu", {
|
|
2224
2248
|
x: t,
|
|
2225
2249
|
y: n,
|
|
2226
2250
|
keys: e
|
|
@@ -2229,21 +2253,21 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2229
2253
|
onCreate: () => {
|
|
2230
2254
|
o.push({}), u(e, o);
|
|
2231
2255
|
}
|
|
2232
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2256
|
+
}), f = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2233
2257
|
let n = [];
|
|
2234
2258
|
for (let r = 0; r < o.length; r++) {
|
|
2235
2259
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2236
|
-
|
|
2237
|
-
let l = m(
|
|
2260
|
+
Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2261
|
+
let l = m(pt, {
|
|
2238
2262
|
title: a,
|
|
2239
|
-
collapse:
|
|
2263
|
+
collapse: Z(s, [...e, r]),
|
|
2240
2264
|
hasDelete: !0,
|
|
2241
2265
|
index: r,
|
|
2242
2266
|
onCollapse: (t) => {
|
|
2243
|
-
|
|
2267
|
+
xe(s, [...e, r], t);
|
|
2244
2268
|
},
|
|
2245
2269
|
onMenu: (e, t) => {
|
|
2246
|
-
|
|
2270
|
+
U.emit("propTreeMenu", {
|
|
2247
2271
|
x: e,
|
|
2248
2272
|
y: t,
|
|
2249
2273
|
keys: i
|
|
@@ -2254,33 +2278,33 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2254
2278
|
}
|
|
2255
2279
|
});
|
|
2256
2280
|
n.push(l);
|
|
2257
|
-
let d = m("div", { style: { paddingLeft:
|
|
2281
|
+
let d = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2258
2282
|
let n = [];
|
|
2259
2283
|
for (let i of t.children) n.push(D(e, i, o[r], r, !0));
|
|
2260
2284
|
return n;
|
|
2261
2285
|
})());
|
|
2262
|
-
|
|
2286
|
+
Z(s, [...e, r]) || n.push(d);
|
|
2263
2287
|
}
|
|
2264
2288
|
return n;
|
|
2265
2289
|
})());
|
|
2266
2290
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2267
2291
|
let t = [];
|
|
2268
|
-
return t.push(d),
|
|
2292
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2269
2293
|
})());
|
|
2270
2294
|
}, k = (e, t, r, i, a) => {
|
|
2271
2295
|
if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2272
2296
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2273
2297
|
let o = n(t.name);
|
|
2274
|
-
|
|
2275
|
-
let l = m(
|
|
2298
|
+
Z(s, e) && Q(c.value, e) && (o += " *");
|
|
2299
|
+
let l = m(pt, {
|
|
2276
2300
|
title: o,
|
|
2277
|
-
collapse:
|
|
2301
|
+
collapse: Z(s, e),
|
|
2278
2302
|
hasDelete: i !== void 0 && !a,
|
|
2279
2303
|
onCollapse: (t) => {
|
|
2280
|
-
|
|
2304
|
+
xe(s, e, t);
|
|
2281
2305
|
},
|
|
2282
2306
|
onMenu: (t, n) => {
|
|
2283
|
-
|
|
2307
|
+
U.emit("propTreeMenu", {
|
|
2284
2308
|
x: t,
|
|
2285
2309
|
y: n,
|
|
2286
2310
|
keys: e
|
|
@@ -2289,29 +2313,29 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2289
2313
|
onDelete: () => {
|
|
2290
2314
|
i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
|
|
2291
2315
|
}
|
|
2292
|
-
}), d = m("div", { style: { paddingLeft:
|
|
2316
|
+
}), d = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2293
2317
|
let n = [];
|
|
2294
2318
|
for (let i of t.children) n.push(D(e, i, (typeof r[t.key] != "object" && (r[t.key] = {}, u(e, r[t.key])), r[t.key]), void 0, !1));
|
|
2295
2319
|
return n;
|
|
2296
2320
|
})());
|
|
2297
2321
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2298
2322
|
let t = [];
|
|
2299
|
-
return t.push(l),
|
|
2323
|
+
return t.push(l), Z(s, e) || t.push(d), t;
|
|
2300
2324
|
})());
|
|
2301
2325
|
}, A = (e, t, r, i, a) => {
|
|
2302
2326
|
if (!t.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2303
2327
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2304
|
-
let o =
|
|
2305
|
-
|
|
2306
|
-
let d = m(
|
|
2328
|
+
let o = be(e, t, r, i, a, u), l = n(t.name);
|
|
2329
|
+
Z(s, e) && Q(c.value, e) && (l += " *");
|
|
2330
|
+
let d = m(pt, {
|
|
2307
2331
|
title: l,
|
|
2308
|
-
collapse:
|
|
2332
|
+
collapse: Z(s, e),
|
|
2309
2333
|
hasCreate: !0,
|
|
2310
2334
|
onCollapse: (t) => {
|
|
2311
|
-
|
|
2335
|
+
xe(s, e, t);
|
|
2312
2336
|
},
|
|
2313
2337
|
onMenu: (t, n) => {
|
|
2314
|
-
|
|
2338
|
+
U.emit("propTreeMenu", {
|
|
2315
2339
|
x: t,
|
|
2316
2340
|
y: n,
|
|
2317
2341
|
keys: e
|
|
@@ -2320,14 +2344,14 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2320
2344
|
onCreate: () => {
|
|
2321
2345
|
o.push(B(t)), u(e, o);
|
|
2322
2346
|
}
|
|
2323
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2347
|
+
}), f = m("div", { style: { paddingLeft: En } }, (() => {
|
|
2324
2348
|
let n = [];
|
|
2325
2349
|
for (let r = 0; r < o.length; r++) n.push(D(e, t, o, r, !1, !0));
|
|
2326
2350
|
return n;
|
|
2327
2351
|
})());
|
|
2328
2352
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2329
2353
|
let t = [];
|
|
2330
|
-
return t.push(d),
|
|
2354
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2331
2355
|
})());
|
|
2332
2356
|
}, j = (e, t, n, r, i) => {
|
|
2333
2357
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
@@ -2341,9 +2365,9 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2341
2365
|
if (i.value.length > 0 && o.value) for (let t of i.value) e.push(D([], t, o.value, void 0, !1));
|
|
2342
2366
|
return e;
|
|
2343
2367
|
})());
|
|
2344
|
-
return (e, t) => (C(), l(a, null, [f(M), f(
|
|
2368
|
+
return (e, t) => (C(), l(a, null, [f(M), f(dt)], 64));
|
|
2345
2369
|
}
|
|
2346
|
-
}),
|
|
2370
|
+
}), On = /* @__PURE__ */ p({
|
|
2347
2371
|
__name: "index",
|
|
2348
2372
|
props: {
|
|
2349
2373
|
config: {},
|
|
@@ -2355,25 +2379,25 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2355
2379
|
emits: ["change"],
|
|
2356
2380
|
setup(e, { emit: t }) {
|
|
2357
2381
|
let n = t, r = T([]);
|
|
2358
|
-
|
|
2382
|
+
Je(r), F(() => {
|
|
2359
2383
|
r.value = e.config;
|
|
2360
2384
|
});
|
|
2361
2385
|
let i = T();
|
|
2362
|
-
|
|
2386
|
+
Xe(i), F(() => {
|
|
2363
2387
|
i.value = e.object;
|
|
2364
2388
|
});
|
|
2365
2389
|
let a = T("");
|
|
2366
|
-
|
|
2390
|
+
He(a), F(() => {
|
|
2367
2391
|
a.value = e.version;
|
|
2368
2392
|
});
|
|
2369
2393
|
let o = T(e.type);
|
|
2370
|
-
|
|
2394
|
+
We(o), F(() => {
|
|
2371
2395
|
o.value = e.type;
|
|
2372
2396
|
});
|
|
2373
2397
|
let c = T("");
|
|
2374
|
-
|
|
2398
|
+
Ke(c), F(() => {
|
|
2375
2399
|
c.value = e.subtype;
|
|
2376
|
-
}),
|
|
2400
|
+
}), Qe(T({
|
|
2377
2401
|
collapse: !0,
|
|
2378
2402
|
children: {}
|
|
2379
2403
|
}));
|
|
@@ -2382,15 +2406,15 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2382
2406
|
warning: !1,
|
|
2383
2407
|
children: {}
|
|
2384
2408
|
});
|
|
2385
|
-
return
|
|
2386
|
-
|
|
2409
|
+
return et(l), nt((t, r) => {
|
|
2410
|
+
Ae(l, e.config, e.object), n("change", t, r);
|
|
2387
2411
|
}), P([() => e.config, () => e.object], () => {
|
|
2388
|
-
|
|
2389
|
-
}, { immediate: !0 }), (e, t) => (C(), s(
|
|
2412
|
+
Ae(l, e.config, e.object);
|
|
2413
|
+
}, { immediate: !0 }), (e, t) => (C(), s(Dn));
|
|
2390
2414
|
}
|
|
2391
|
-
}),
|
|
2392
|
-
e.component("XPropTree",
|
|
2393
|
-
},
|
|
2415
|
+
}), kn = (e) => {
|
|
2416
|
+
e.component("XPropTree", On);
|
|
2417
|
+
}, An = (e, t, n) => {
|
|
2394
2418
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2395
2419
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2396
2420
|
(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."))));
|
|
@@ -2398,14 +2422,14 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2398
2422
|
};
|
|
2399
2423
|
//#endregion
|
|
2400
2424
|
//#region src/i18n/index.ts
|
|
2401
|
-
async function
|
|
2402
|
-
return (await
|
|
2425
|
+
async function jn(e) {
|
|
2426
|
+
return (await An(/* @__PURE__ */ Object.assign({
|
|
2403
2427
|
"./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
|
|
2404
2428
|
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
|
|
2405
2429
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2406
2430
|
}
|
|
2407
2431
|
//#endregion
|
|
2408
2432
|
//#region src/index.ts
|
|
2409
|
-
var
|
|
2433
|
+
var Mn = { install: kn };
|
|
2410
2434
|
//#endregion
|
|
2411
|
-
export {
|
|
2435
|
+
export { Mn as default, jn as loadLocaleMessagePropTree };
|