x-prop-tree 0.8.13 → 0.8.14
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 +289 -289
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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: "",
|
|
@@ -20,7 +20,7 @@ function K(e, t) {
|
|
|
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) {
|
|
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 && i.children ?
|
|
104
|
+
}) : n.ui ? n.array && i.children ? 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);
|
|
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,85 +220,85 @@ 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
|
-
function ct(e) {
|
|
285
|
-
w(He, e);
|
|
286
|
-
}
|
|
287
|
-
function lt() {
|
|
288
|
-
return h(He);
|
|
289
|
-
}
|
|
290
290
|
//#endregion
|
|
291
291
|
//#region src/components/menu/index.vue
|
|
292
|
-
var
|
|
292
|
+
var lt = /* @__PURE__ */ p({
|
|
293
293
|
__name: "index",
|
|
294
294
|
setup(e) {
|
|
295
|
-
let { t } =
|
|
295
|
+
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
296
|
!(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
|
|
297
297
|
title: t("x-prop-tree.reset"),
|
|
298
298
|
func: () => {
|
|
299
|
-
let e =
|
|
299
|
+
let e = q(n.value, m.value);
|
|
300
300
|
if (e) if (e.ui) {
|
|
301
|
-
let t =
|
|
301
|
+
let t = J(r.value, m.value.slice(0, -1));
|
|
302
302
|
if (!t) return;
|
|
303
303
|
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
304
304
|
} else if (e.array) {
|
|
@@ -308,18 +308,18 @@ var ut = /* @__PURE__ */ p({
|
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
if (typeof t == "string") {
|
|
311
|
-
let t =
|
|
311
|
+
let t = J(r.value, m.value.slice(0, -1));
|
|
312
312
|
if (!t) return;
|
|
313
313
|
t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
314
314
|
} else {
|
|
315
|
-
let t =
|
|
315
|
+
let t = J(r.value, m.value);
|
|
316
316
|
if (!t) return;
|
|
317
317
|
e.children.forEach((n) => {
|
|
318
318
|
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
} else {
|
|
322
|
-
let t =
|
|
322
|
+
let t = J(r.value, m.value);
|
|
323
323
|
if (!t) return;
|
|
324
324
|
e.children.forEach((n) => {
|
|
325
325
|
t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
|
|
@@ -331,7 +331,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
331
331
|
e.push({
|
|
332
332
|
title: t("x-prop-tree.copy"),
|
|
333
333
|
func: () => {
|
|
334
|
-
let e =
|
|
334
|
+
let e = q(n.value, m.value), t = J(r.value, m.value);
|
|
335
335
|
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
336
336
|
property: e,
|
|
337
337
|
object: t
|
|
@@ -345,8 +345,8 @@ var ut = /* @__PURE__ */ p({
|
|
|
345
345
|
try {
|
|
346
346
|
let { property: t } = JSON.parse(e);
|
|
347
347
|
if (!t) return !1;
|
|
348
|
-
let r =
|
|
349
|
-
return r ?
|
|
348
|
+
let r = q(n.value, m.value);
|
|
349
|
+
return r ? Se(t, r) : !1;
|
|
350
350
|
} catch (e) {
|
|
351
351
|
console.error(e);
|
|
352
352
|
}
|
|
@@ -358,7 +358,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
358
358
|
if (!r()) return;
|
|
359
359
|
let e = localStorage.getItem("propTreeCopy");
|
|
360
360
|
if (e) try {
|
|
361
|
-
let { object: t } = JSON.parse(e), r =
|
|
361
|
+
let { object: t } = JSON.parse(e), r = q(n.value, m.value);
|
|
362
362
|
console.log(t, r);
|
|
363
363
|
} catch (e) {
|
|
364
364
|
console.error(e);
|
|
@@ -368,7 +368,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
368
368
|
}, b = o(() => {
|
|
369
369
|
let e = [];
|
|
370
370
|
return _(e), v(e), y(e), e;
|
|
371
|
-
}), { open: x } =
|
|
371
|
+
}), { open: x } = K("propTreeMenu", (e) => {
|
|
372
372
|
u.value = e.x, p.value = e.y, m.value = e.keys;
|
|
373
373
|
});
|
|
374
374
|
return (e, t) => {
|
|
@@ -398,7 +398,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
398
398
|
}, 8, ["modelValue", "target"]);
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
}),
|
|
401
|
+
}), ut = { style: { pointerEvents: "none" } }, dt = /* @__PURE__ */ p({
|
|
402
402
|
__name: "index",
|
|
403
403
|
props: {
|
|
404
404
|
title: {},
|
|
@@ -420,7 +420,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
420
420
|
"delete"
|
|
421
421
|
],
|
|
422
422
|
setup(e, { emit: t }) {
|
|
423
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
423
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), d = o(() => ({
|
|
424
424
|
background: a.value ? r.value : n.value,
|
|
425
425
|
height: "36px",
|
|
426
426
|
marginBottom: "1px",
|
|
@@ -444,7 +444,7 @@ var ut = /* @__PURE__ */ p({
|
|
|
444
444
|
class: "mr-1",
|
|
445
445
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
446
446
|
}, null, 8, ["icon"]),
|
|
447
|
-
u("span",
|
|
447
|
+
u("span", ut, A(e.title), 1),
|
|
448
448
|
f(o),
|
|
449
449
|
e.hasCreate ? (C(), s(h, {
|
|
450
450
|
key: 0,
|
|
@@ -468,14 +468,14 @@ var ut = /* @__PURE__ */ p({
|
|
|
468
468
|
});
|
|
469
469
|
//#endregion
|
|
470
470
|
//#region src/composables/adaptSlotList/index.ts
|
|
471
|
-
function
|
|
472
|
-
let e =
|
|
473
|
-
|
|
471
|
+
function ft() {
|
|
472
|
+
let e = Ue(), t = Ge(), n = qe(), { i18n: a } = fe, o = T([]);
|
|
473
|
+
st(o);
|
|
474
474
|
let s = () => {
|
|
475
475
|
if (!e.value || !t.value || !n.value) return [];
|
|
476
|
-
let s =
|
|
476
|
+
let s = le[e.value];
|
|
477
477
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
478
|
-
let c =
|
|
478
|
+
let c = re(t.value, n.value), l = [];
|
|
479
479
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
480
480
|
let t = s.groups[c][e], n = r(o, t.key);
|
|
481
481
|
l.push({
|
|
@@ -490,7 +490,7 @@ function pt() {
|
|
|
490
490
|
for (let e of t.items) {
|
|
491
491
|
let n = te(e);
|
|
492
492
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
493
|
-
let r =
|
|
493
|
+
let r = se("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
|
|
494
494
|
l.push({
|
|
495
495
|
id: r,
|
|
496
496
|
type: 1,
|
|
@@ -501,7 +501,7 @@ function pt() {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
let { activeApp: u, depends: d } =
|
|
504
|
+
let { activeApp: u, depends: d } = _e.app;
|
|
505
505
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
506
506
|
let i = r(o, e);
|
|
507
507
|
l.push({
|
|
@@ -516,7 +516,7 @@ function pt() {
|
|
|
516
516
|
for (let e of u.comps) {
|
|
517
517
|
let t = d[e.id];
|
|
518
518
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
519
|
-
let t =
|
|
519
|
+
let t = se("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
520
520
|
l.push({
|
|
521
521
|
id: t,
|
|
522
522
|
type: 1,
|
|
@@ -550,11 +550,11 @@ function pt() {
|
|
|
550
550
|
}
|
|
551
551
|
//#endregion
|
|
552
552
|
//#region src/composables/compList/index.ts
|
|
553
|
-
function
|
|
553
|
+
function pt() {
|
|
554
554
|
let e = T([]);
|
|
555
|
-
|
|
555
|
+
rt(e);
|
|
556
556
|
let t = () => {
|
|
557
|
-
let { activeApp: t, depends: n } =
|
|
557
|
+
let { activeApp: t, depends: n } = _e.app, r = [];
|
|
558
558
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
559
559
|
let t = e.value.find((e) => e.id === n);
|
|
560
560
|
r.push({
|
|
@@ -588,11 +588,11 @@ function mt() {
|
|
|
588
588
|
}
|
|
589
589
|
//#endregion
|
|
590
590
|
//#region src/composables/slotList/index.ts
|
|
591
|
-
function
|
|
591
|
+
function mt() {
|
|
592
592
|
let e = T([]);
|
|
593
|
-
|
|
593
|
+
at(e);
|
|
594
594
|
let t = () => {
|
|
595
|
-
let { activeObject: e, activeComp: t } =
|
|
595
|
+
let { activeObject: e, activeComp: t } = _e.app;
|
|
596
596
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
597
597
|
let n = [];
|
|
598
598
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -617,7 +617,7 @@ function ht() {
|
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
619
|
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
620
|
-
var
|
|
620
|
+
var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text-grey ml-1" }, _t = /* @__PURE__ */ p({
|
|
621
621
|
__name: "group",
|
|
622
622
|
props: {
|
|
623
623
|
id: {},
|
|
@@ -627,7 +627,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
627
627
|
},
|
|
628
628
|
emits: ["x-click"],
|
|
629
629
|
setup(e, { emit: t }) {
|
|
630
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
630
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
631
631
|
background: s.value ? r.value : n.value,
|
|
632
632
|
height: "30px",
|
|
633
633
|
marginTop: "1px",
|
|
@@ -646,12 +646,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
646
646
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
647
647
|
size: "small"
|
|
648
648
|
}, null, 8, ["icon"]),
|
|
649
|
-
u("span",
|
|
650
|
-
u("span",
|
|
649
|
+
u("span", ht, A(i.title), 1),
|
|
650
|
+
u("span", gt, A(i.count), 1)
|
|
651
651
|
], 36)), [[r]]);
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
|
-
}),
|
|
654
|
+
}), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
|
|
655
655
|
__name: "item",
|
|
656
656
|
props: {
|
|
657
657
|
id: {},
|
|
@@ -659,7 +659,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
659
659
|
},
|
|
660
660
|
emits: ["x-click"],
|
|
661
661
|
setup(e, { emit: t }) {
|
|
662
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
662
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
|
|
663
663
|
background: a.value ? r.value : n.value,
|
|
664
664
|
height: "48px",
|
|
665
665
|
marginTop: "1px",
|
|
@@ -673,13 +673,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
673
673
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
674
674
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
675
675
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
676
|
-
}, [u("span",
|
|
676
|
+
}, [u("span", vt, A(e.title), 1)], 36)), [[r]]);
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
}),
|
|
679
|
+
}), bt = { key: 0 }, xt = {
|
|
680
680
|
key: 1,
|
|
681
681
|
class: "text-body-medium text-grey ml-3"
|
|
682
|
-
},
|
|
682
|
+
}, St = /* @__PURE__ */ p({
|
|
683
683
|
__name: "index",
|
|
684
684
|
props: {
|
|
685
685
|
modelValue: {},
|
|
@@ -692,13 +692,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
692
692
|
},
|
|
693
693
|
emits: ["update:modelValue", "update:open"],
|
|
694
694
|
setup(e) {
|
|
695
|
-
let { nameList: t } =
|
|
695
|
+
let { nameList: t } = G(), i = N(e, "modelValue"), o = N(e, "open"), u = ct(), d = (e) => {
|
|
696
696
|
let t = r(u, e);
|
|
697
697
|
t && n(u, e, !t.collapse);
|
|
698
698
|
}, f = (e) => {
|
|
699
699
|
i.value = e, o.value = !1;
|
|
700
700
|
};
|
|
701
|
-
return (e, n) => j(u).length > 0 ? (C(), l("div",
|
|
701
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", bt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(_t, {
|
|
702
702
|
key: 0,
|
|
703
703
|
id: e.id,
|
|
704
704
|
collapse: e.collapse,
|
|
@@ -710,18 +710,18 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
710
710
|
"collapse",
|
|
711
711
|
"count",
|
|
712
712
|
"title"
|
|
713
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
713
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(yt, {
|
|
714
714
|
key: 1,
|
|
715
715
|
id: e.id,
|
|
716
716
|
title: e.name,
|
|
717
717
|
onXClick: f
|
|
718
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
718
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt, A(j(t)([
|
|
719
719
|
"x-prop-tree.no",
|
|
720
720
|
"x-prop-tree.adapt",
|
|
721
721
|
"x-prop-tree.slot"
|
|
722
722
|
])), 1));
|
|
723
723
|
}
|
|
724
|
-
}),
|
|
724
|
+
}), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
|
|
725
725
|
__name: "index",
|
|
726
726
|
props: /* @__PURE__ */ _({
|
|
727
727
|
hasDelete: {
|
|
@@ -738,7 +738,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
738
738
|
}),
|
|
739
739
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
740
740
|
setup(e, { emit: t }) {
|
|
741
|
-
let { t: n } =
|
|
741
|
+
let { t: n } = H(), i = ve(), { sysBarAvail: a, nameList: l } = G(), { backgroundColor1: p } = W(), m = N(e, "modelValue"), h = t, _ = ct(), b = o(() => {
|
|
742
742
|
let e = "100%";
|
|
743
743
|
return i.mdAndUp.value && (e = "400px"), {
|
|
744
744
|
background: p.value,
|
|
@@ -755,7 +755,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
755
755
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
756
756
|
let e = r(_, m.value);
|
|
757
757
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
758
|
-
}), { open: E } =
|
|
758
|
+
}), { open: E } = K(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
759
759
|
return S(() => {
|
|
760
760
|
E.value = !1;
|
|
761
761
|
}), (t, n) => {
|
|
@@ -807,7 +807,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
807
807
|
icon: "mdi-close",
|
|
808
808
|
variant: "text",
|
|
809
809
|
onClick: n[1] ||= (e) => E.value = !1
|
|
810
|
-
}), u("span",
|
|
810
|
+
}), u("span", Ct, A(j(l)([
|
|
811
811
|
"x-prop-tree.select",
|
|
812
812
|
"x-prop-tree.adapt",
|
|
813
813
|
"x-prop-tree.slot"
|
|
@@ -817,7 +817,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
817
817
|
u("div", {
|
|
818
818
|
class: "overflow-y-auto",
|
|
819
819
|
style: y(x.value)
|
|
820
|
-
}, [f(
|
|
820
|
+
}, [f(St, {
|
|
821
821
|
modelValue: m.value,
|
|
822
822
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
823
823
|
open: j(E),
|
|
@@ -828,7 +828,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
828
828
|
}, 8, ["modelValue"]);
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
|
-
}),
|
|
831
|
+
}), Tt = { class: "text-label-large ml-1" }, Et = { class: "text-body-small text-grey ml-1" }, Dt = /* @__PURE__ */ p({
|
|
832
832
|
__name: "group",
|
|
833
833
|
props: {
|
|
834
834
|
id: {},
|
|
@@ -838,7 +838,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
838
838
|
},
|
|
839
839
|
emits: ["x-click"],
|
|
840
840
|
setup(e, { emit: t }) {
|
|
841
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
841
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
842
842
|
background: s.value ? r.value : n.value,
|
|
843
843
|
height: "30px",
|
|
844
844
|
marginTop: "1px",
|
|
@@ -857,12 +857,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
857
857
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
858
858
|
size: "small"
|
|
859
859
|
}, null, 8, ["icon"]),
|
|
860
|
-
u("span",
|
|
861
|
-
u("span",
|
|
860
|
+
u("span", Tt, A(i.title), 1),
|
|
861
|
+
u("span", Et, A(i.count), 1)
|
|
862
862
|
], 36)), [[r]]);
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
|
-
}),
|
|
865
|
+
}), Ot = { class: "text-body-large ml-6" }, kt = /* @__PURE__ */ p({
|
|
866
866
|
__name: "item",
|
|
867
867
|
props: {
|
|
868
868
|
id: {},
|
|
@@ -870,7 +870,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
870
870
|
},
|
|
871
871
|
emits: ["x-click"],
|
|
872
872
|
setup(e, { emit: t }) {
|
|
873
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
873
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
874
874
|
background: s.value ? r.value : n.value,
|
|
875
875
|
height: "48px",
|
|
876
876
|
marginTop: "1px",
|
|
@@ -884,13 +884,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
884
884
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
885
885
|
onMouseout: t[1] ||= (e) => s.value = !1,
|
|
886
886
|
onMouseover: t[2] ||= (e) => s.value = !0
|
|
887
|
-
}, [u("span",
|
|
887
|
+
}, [u("span", Ot, A(i.title), 1)], 36)), [[n]]);
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
}),
|
|
890
|
+
}), At = { key: 0 }, jt = {
|
|
891
891
|
key: 1,
|
|
892
892
|
class: "text-body-medium text-grey ml-3"
|
|
893
|
-
},
|
|
893
|
+
}, Mt = /* @__PURE__ */ p({
|
|
894
894
|
__name: "index",
|
|
895
895
|
props: {
|
|
896
896
|
modelValue: {},
|
|
@@ -903,13 +903,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
903
903
|
},
|
|
904
904
|
emits: ["update:modelValue", "update:open"],
|
|
905
905
|
setup(e) {
|
|
906
|
-
let { nameList: t } =
|
|
906
|
+
let { nameList: t } = G(), i = N(e, "modelValue"), o = N(e, "open"), u = it(), d = (e) => {
|
|
907
907
|
let t = r(u, e);
|
|
908
908
|
t && n(u, e, !t.collapse);
|
|
909
909
|
}, f = (e) => {
|
|
910
|
-
i.value = e, o.value = !1,
|
|
910
|
+
i.value = e, o.value = !1, U.emit("refreshDepends");
|
|
911
911
|
};
|
|
912
|
-
return (e, n) => j(u).length > 0 ? (C(), l("div",
|
|
912
|
+
return (e, n) => j(u).length > 0 ? (C(), l("div", At, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(Dt, {
|
|
913
913
|
key: 0,
|
|
914
914
|
id: e.id,
|
|
915
915
|
collapse: e.collapse,
|
|
@@ -921,14 +921,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
921
921
|
"collapse",
|
|
922
922
|
"count",
|
|
923
923
|
"title"
|
|
924
|
-
])) : c("", !0), e.type === 1 && e.show ? (C(), s(
|
|
924
|
+
])) : c("", !0), e.type === 1 && e.show ? (C(), s(kt, {
|
|
925
925
|
key: 1,
|
|
926
926
|
id: e.id,
|
|
927
927
|
title: e.name,
|
|
928
928
|
onXClick: f
|
|
929
|
-
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div",
|
|
929
|
+
}, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", jt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
930
930
|
}
|
|
931
|
-
}),
|
|
931
|
+
}), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
|
|
932
932
|
__name: "index",
|
|
933
933
|
props: /* @__PURE__ */ _({
|
|
934
934
|
hasDelete: {
|
|
@@ -945,7 +945,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
945
945
|
}),
|
|
946
946
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
947
947
|
setup(e, { emit: t }) {
|
|
948
|
-
let { t: n } =
|
|
948
|
+
let { t: n } = H(), i = ve(), { sysBarAvail: a, nameList: l } = G(), { backgroundColor1: p } = W(), m = N(e, "modelValue"), h = t, _ = it(), b = o(() => {
|
|
949
949
|
let e = "100%";
|
|
950
950
|
return i.mdAndUp.value && (e = "400px"), {
|
|
951
951
|
background: p.value,
|
|
@@ -962,7 +962,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
962
962
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
963
963
|
let e = r(_, m.value);
|
|
964
964
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
965
|
-
}), { open: E } =
|
|
965
|
+
}), { open: E } = K(`propTreeCompSelectDlg${M()}`);
|
|
966
966
|
return S(() => {
|
|
967
967
|
E.value = !1;
|
|
968
968
|
}), (t, n) => {
|
|
@@ -1014,13 +1014,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1014
1014
|
icon: "mdi-close",
|
|
1015
1015
|
variant: "text",
|
|
1016
1016
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1017
|
-
}), u("span",
|
|
1017
|
+
}), u("span", Nt, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1018
1018
|
_: 1
|
|
1019
1019
|
}),
|
|
1020
1020
|
u("div", {
|
|
1021
1021
|
class: "overflow-y-auto",
|
|
1022
1022
|
style: y(x.value)
|
|
1023
|
-
}, [f(
|
|
1023
|
+
}, [f(Mt, {
|
|
1024
1024
|
modelValue: m.value,
|
|
1025
1025
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1026
1026
|
open: j(E),
|
|
@@ -1031,7 +1031,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1031
1031
|
}, 8, ["modelValue"]);
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
}),
|
|
1034
|
+
}), Ft = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ p({
|
|
1035
1035
|
__name: "index",
|
|
1036
1036
|
props: /* @__PURE__ */ _({
|
|
1037
1037
|
hasDelete: {
|
|
@@ -1048,9 +1048,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1048
1048
|
}),
|
|
1049
1049
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1050
1050
|
setup(e, { emit: t }) {
|
|
1051
|
-
let { isMobile: n } =
|
|
1051
|
+
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1052
1052
|
if (!t || e.readonly || !n()) return;
|
|
1053
|
-
let i = await
|
|
1053
|
+
let i = await ge({
|
|
1054
1054
|
title: "",
|
|
1055
1055
|
value: r.value
|
|
1056
1056
|
});
|
|
@@ -1058,7 +1058,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1058
1058
|
};
|
|
1059
1059
|
return (t, n) => {
|
|
1060
1060
|
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1061
|
-
return C(), l("div",
|
|
1061
|
+
return C(), l("div", Ft, [L(f(o, {
|
|
1062
1062
|
modelValue: r.value,
|
|
1063
1063
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1064
1064
|
density: "compact",
|
|
@@ -1081,7 +1081,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1081
1081
|
})) : c("", !0)]);
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
}),
|
|
1084
|
+
}), Lt = /* @__PURE__ */ p({
|
|
1085
1085
|
__name: "editor",
|
|
1086
1086
|
props: {
|
|
1087
1087
|
modelValue: { required: !0 },
|
|
@@ -1100,14 +1100,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1100
1100
|
"update:scale"
|
|
1101
1101
|
],
|
|
1102
1102
|
setup(e, { expose: t }) {
|
|
1103
|
-
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a =
|
|
1103
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = pe(), o = me(), c = Ue(), l = ee("target"), u = () => {
|
|
1104
1104
|
let e = JSON.parse(n.value);
|
|
1105
1105
|
l.value?.load(e);
|
|
1106
1106
|
};
|
|
1107
1107
|
return t({ save: () => {
|
|
1108
1108
|
let e = l.value.save();
|
|
1109
1109
|
n.value = JSON.stringify(e, null, 2);
|
|
1110
|
-
} }), (e, t) => (C(), s(j(
|
|
1110
|
+
} }), (e, t) => (C(), s(j(ye), {
|
|
1111
1111
|
ref_key: "target",
|
|
1112
1112
|
ref: l,
|
|
1113
1113
|
lock: r.value,
|
|
@@ -1127,7 +1127,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1127
1127
|
"version"
|
|
1128
1128
|
]));
|
|
1129
1129
|
}
|
|
1130
|
-
}),
|
|
1130
|
+
}), Rt = { class: "text-body-large" }, zt = /* @__PURE__ */ p({
|
|
1131
1131
|
__name: "index",
|
|
1132
1132
|
props: /* @__PURE__ */ _({
|
|
1133
1133
|
hasDelete: {
|
|
@@ -1144,14 +1144,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1144
1144
|
}),
|
|
1145
1145
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1146
1146
|
setup(e, { emit: t }) {
|
|
1147
|
-
let { t: n } =
|
|
1147
|
+
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
1148
|
let e = 48;
|
|
1149
1149
|
return r.value && (e += 24), {
|
|
1150
1150
|
position: "relative",
|
|
1151
1151
|
background: a.value,
|
|
1152
1152
|
height: `calc(100% - ${e}px)`
|
|
1153
1153
|
};
|
|
1154
|
-
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } =
|
|
1154
|
+
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = K(`propTreejsonEditorDlg${M()}`);
|
|
1155
1155
|
S(() => {
|
|
1156
1156
|
w.value = !1;
|
|
1157
1157
|
});
|
|
@@ -1208,12 +1208,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1208
1208
|
variant: "text",
|
|
1209
1209
|
onClick: n[1] ||= (e) => w.value = !1
|
|
1210
1210
|
}),
|
|
1211
|
-
u("span",
|
|
1211
|
+
u("span", Rt, A(x.value), 1),
|
|
1212
1212
|
f(S)
|
|
1213
1213
|
]),
|
|
1214
1214
|
_: 1
|
|
1215
1215
|
}, 8, ["color"]),
|
|
1216
|
-
u("div", { style: y(b.value) }, [f(
|
|
1216
|
+
u("div", { style: y(b.value) }, [f(Lt, {
|
|
1217
1217
|
ref_key: "editor",
|
|
1218
1218
|
ref: E,
|
|
1219
1219
|
modelValue: p.value,
|
|
@@ -1234,7 +1234,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1234
1234
|
}, 8, ["modelValue"]);
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
|
-
}),
|
|
1237
|
+
}), Bt = { class: "d-flex justify-space-between align-center" }, Vt = /* @__PURE__ */ p({
|
|
1238
1238
|
__name: "color",
|
|
1239
1239
|
props: /* @__PURE__ */ _({
|
|
1240
1240
|
hasDelete: {
|
|
@@ -1251,10 +1251,10 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1251
1251
|
}),
|
|
1252
1252
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1253
1253
|
setup(e, { emit: t }) {
|
|
1254
|
-
let { t: n } =
|
|
1254
|
+
let { t: n } = H(), r = N(e, "modelValue"), i = t, a = o(() => {
|
|
1255
1255
|
let t = "100%";
|
|
1256
1256
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1257
|
-
}), l = o(() => e.readonly), { open: p } =
|
|
1257
|
+
}), l = o(() => e.readonly), { open: p } = K(`propTreeColorPickerMenu${M()}`);
|
|
1258
1258
|
return S(() => {
|
|
1259
1259
|
p.value = !1;
|
|
1260
1260
|
}), (t, o) => {
|
|
@@ -1265,7 +1265,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1265
1265
|
"close-on-content-click": !1,
|
|
1266
1266
|
scrim: "transparent"
|
|
1267
1267
|
}, {
|
|
1268
|
-
activator: I(({ props: t }) => [u("div",
|
|
1268
|
+
activator: I(({ props: t }) => [u("div", Bt, [u("div", {
|
|
1269
1269
|
class: "flex-grow-1",
|
|
1270
1270
|
style: y(a.value)
|
|
1271
1271
|
}, [f(m, v(t, {
|
|
@@ -1295,7 +1295,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1295
1295
|
}, 8, ["modelValue"]);
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
|
-
}),
|
|
1298
|
+
}), Ht = { class: "d-flex justify-space-between align-center my-2" }, Ut = { class: "flex-grow-1" }, Wt = /* @__PURE__ */ p({
|
|
1299
1299
|
__name: "index",
|
|
1300
1300
|
props: /* @__PURE__ */ _({
|
|
1301
1301
|
hasDelete: {
|
|
@@ -1313,7 +1313,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1313
1313
|
}),
|
|
1314
1314
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1315
1315
|
setup(e, { emit: t }) {
|
|
1316
|
-
let { t: n } =
|
|
1316
|
+
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, d = o(() => ie(e.types)), p = T(""), m = o(() => {
|
|
1317
1317
|
let e = [];
|
|
1318
1318
|
for (let { value: t, title: r } of d.value) e.push({
|
|
1319
1319
|
value: t,
|
|
@@ -1336,8 +1336,8 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1336
1336
|
p.value = d.value[0].value, g();
|
|
1337
1337
|
}
|
|
1338
1338
|
let v = T(0), y = async (e) => {
|
|
1339
|
-
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "
|
|
1340
|
-
let t = await
|
|
1339
|
+
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1340
|
+
let t = await he({
|
|
1341
1341
|
title: "",
|
|
1342
1342
|
value: v.value,
|
|
1343
1343
|
precision: h.value.precision,
|
|
@@ -1348,31 +1348,31 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1348
1348
|
t !== void 0 && (v.value = t);
|
|
1349
1349
|
};
|
|
1350
1350
|
F(() => {
|
|
1351
|
-
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "
|
|
1351
|
+
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = ce(i.value, h.value.unit));
|
|
1352
1352
|
}), P(v, (e) => {
|
|
1353
|
-
h.value?.trait === "number" ? i.value = e : h.value?.trait === "
|
|
1353
|
+
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1354
1354
|
});
|
|
1355
1355
|
let b = T("#ff00ff");
|
|
1356
1356
|
F(() => {
|
|
1357
|
-
h.value?.trait === "hexColor" &&
|
|
1357
|
+
h.value?.trait === "hexColor" && ae(i.value) && (b.value = i.value);
|
|
1358
1358
|
}), P(b, (e) => {
|
|
1359
1359
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1360
1360
|
});
|
|
1361
1361
|
let x = T("primary"), S = o(() => {
|
|
1362
1362
|
let e = [];
|
|
1363
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1363
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of de) e.push({
|
|
1364
1364
|
value: t,
|
|
1365
1365
|
title: n(r)
|
|
1366
1366
|
});
|
|
1367
1367
|
return e;
|
|
1368
1368
|
});
|
|
1369
1369
|
return F(() => {
|
|
1370
|
-
h.value?.trait === "themeColor" &&
|
|
1370
|
+
h.value?.trait === "themeColor" && oe(i.value) && (x.value = i.value);
|
|
1371
1371
|
}), P(x, (e) => {
|
|
1372
1372
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1373
1373
|
}), (t, n) => {
|
|
1374
1374
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), d = k("ripple");
|
|
1375
|
-
return C(), l("div",
|
|
1375
|
+
return C(), l("div", Ht, [u("div", Ut, [
|
|
1376
1376
|
L(f(r, {
|
|
1377
1377
|
modelValue: p.value,
|
|
1378
1378
|
"onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
|
|
@@ -1391,7 +1391,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1391
1391
|
void 0,
|
|
1392
1392
|
{ stop: !0 }
|
|
1393
1393
|
]]),
|
|
1394
|
-
h.value?.trait === "number" || h.value?.trait === "
|
|
1394
|
+
h.value?.trait === "number" || h.value?.trait === "numberUnit" ? L((C(), s(i, {
|
|
1395
1395
|
key: 0,
|
|
1396
1396
|
modelValue: v.value,
|
|
1397
1397
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
@@ -1418,7 +1418,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1418
1418
|
void 0,
|
|
1419
1419
|
{ stop: !0 }
|
|
1420
1420
|
]]) : c("", !0),
|
|
1421
|
-
h.value?.trait === "hexColor" ? (C(), s(
|
|
1421
|
+
h.value?.trait === "hexColor" ? (C(), s(Vt, {
|
|
1422
1422
|
key: 1,
|
|
1423
1423
|
modelValue: b.value,
|
|
1424
1424
|
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
@@ -1447,7 +1447,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1447
1447
|
})) : c("", !0)]);
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
|
-
}),
|
|
1450
|
+
}), Gt = { class: "d-flex justify-space-between align-center" }, Kt = /* @__PURE__ */ p({
|
|
1451
1451
|
__name: "index",
|
|
1452
1452
|
props: /* @__PURE__ */ _({
|
|
1453
1453
|
hasDelete: {
|
|
@@ -1468,9 +1468,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1468
1468
|
}),
|
|
1469
1469
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1470
1470
|
setup(e, { emit: t }) {
|
|
1471
|
-
let { isMobile: n } =
|
|
1471
|
+
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1472
1472
|
if (!t || e.readonly || !n()) return;
|
|
1473
|
-
let i = await
|
|
1473
|
+
let i = await he({
|
|
1474
1474
|
title: "",
|
|
1475
1475
|
value: r.value,
|
|
1476
1476
|
precision: e.precision,
|
|
@@ -1482,7 +1482,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1482
1482
|
};
|
|
1483
1483
|
return (t, n) => {
|
|
1484
1484
|
let o = O("v-number-input"), u = O("v-btn"), d = k("ripple");
|
|
1485
|
-
return C(), l("div",
|
|
1485
|
+
return C(), l("div", Gt, [L(f(o, {
|
|
1486
1486
|
modelValue: r.value,
|
|
1487
1487
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1488
1488
|
"control-variant": "stacked",
|
|
@@ -1517,7 +1517,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1517
1517
|
})) : c("", !0)]);
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
}),
|
|
1520
|
+
}), qt = { class: "d-flex justify-space-between align-center my-2" }, Jt = { class: "flex-grow-1" }, Yt = /* @__PURE__ */ p({
|
|
1521
1521
|
__name: "index",
|
|
1522
1522
|
props: /* @__PURE__ */ _({
|
|
1523
1523
|
hasDelete: {
|
|
@@ -1534,7 +1534,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1534
1534
|
}),
|
|
1535
1535
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1536
1536
|
setup(e, { emit: t }) {
|
|
1537
|
-
let { t: n } =
|
|
1537
|
+
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, d = T(""), p = T(0);
|
|
1538
1538
|
F(() => {
|
|
1539
1539
|
let e = i.value.split(",");
|
|
1540
1540
|
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 +1547,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1547
1547
|
value: "",
|
|
1548
1548
|
title: n("x-runtime-lib.notSet")
|
|
1549
1549
|
}];
|
|
1550
|
-
for (let t of
|
|
1550
|
+
for (let t of ue) e.push({
|
|
1551
1551
|
value: t,
|
|
1552
1552
|
title: n(`x-runtime-lib.${t}`)
|
|
1553
1553
|
});
|
|
@@ -1562,7 +1562,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1562
1562
|
});
|
|
1563
1563
|
async function _(e) {
|
|
1564
1564
|
if (!e || !r()) return;
|
|
1565
|
-
let t = await
|
|
1565
|
+
let t = await he({
|
|
1566
1566
|
title: "",
|
|
1567
1567
|
value: p.value,
|
|
1568
1568
|
precision: 0,
|
|
@@ -1577,7 +1577,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1577
1577
|
}
|
|
1578
1578
|
return (t, n) => {
|
|
1579
1579
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), m = k("ripple");
|
|
1580
|
-
return C(), l("div",
|
|
1580
|
+
return C(), l("div", qt, [u("div", Jt, [L(f(r, {
|
|
1581
1581
|
modelValue: d.value,
|
|
1582
1582
|
"onUpdate:modelValue": [n[0] ||= (e) => d.value = e, g],
|
|
1583
1583
|
density: "compact",
|
|
@@ -1623,7 +1623,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1623
1623
|
})) : c("", !0)]);
|
|
1624
1624
|
};
|
|
1625
1625
|
}
|
|
1626
|
-
}),
|
|
1626
|
+
}), Xt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PURE__ */ p({
|
|
1627
1627
|
__name: "index",
|
|
1628
1628
|
props: /* @__PURE__ */ _({
|
|
1629
1629
|
hasDelete: {
|
|
@@ -1641,7 +1641,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1641
1641
|
}),
|
|
1642
1642
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1643
1643
|
setup(e, { emit: t }) {
|
|
1644
|
-
let { t: n } =
|
|
1644
|
+
let { t: n } = H(), r = N(e, "modelValue"), i = t, a = o(() => {
|
|
1645
1645
|
let t = [];
|
|
1646
1646
|
return ne(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1647
1647
|
let i = e;
|
|
@@ -1653,7 +1653,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1653
1653
|
});
|
|
1654
1654
|
return (t, n) => {
|
|
1655
1655
|
let o = O("v-select"), u = O("v-btn"), d = k("ripple");
|
|
1656
|
-
return C(), l("div",
|
|
1656
|
+
return C(), l("div", Xt, [L(f(o, {
|
|
1657
1657
|
modelValue: r.value,
|
|
1658
1658
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1659
1659
|
density: "compact",
|
|
@@ -1680,7 +1680,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1680
1680
|
})) : c("", !0)]);
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
}),
|
|
1683
|
+
}), Qt = { class: "text-body-large ml-6" }, $t = /* @__PURE__ */ p({
|
|
1684
1684
|
__name: "item",
|
|
1685
1685
|
props: {
|
|
1686
1686
|
id: {},
|
|
@@ -1688,7 +1688,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1688
1688
|
},
|
|
1689
1689
|
emits: ["x-click"],
|
|
1690
1690
|
setup(e, { emit: t }) {
|
|
1691
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1691
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
|
|
1692
1692
|
background: a.value ? r.value : n.value,
|
|
1693
1693
|
height: "48px",
|
|
1694
1694
|
marginTop: "1px",
|
|
@@ -1702,13 +1702,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1702
1702
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1703
1703
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1704
1704
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1705
|
-
}, [u("span",
|
|
1705
|
+
}, [u("span", Qt, A(e.title), 1)], 36)), [[r]]);
|
|
1706
1706
|
};
|
|
1707
1707
|
}
|
|
1708
|
-
}),
|
|
1708
|
+
}), en = { key: 0 }, tn = {
|
|
1709
1709
|
key: 1,
|
|
1710
1710
|
class: "text-body-medium text-grey ml-3"
|
|
1711
|
-
},
|
|
1711
|
+
}, nn = /* @__PURE__ */ p({
|
|
1712
1712
|
__name: "index",
|
|
1713
1713
|
props: {
|
|
1714
1714
|
modelValue: {},
|
|
@@ -1721,17 +1721,17 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1721
1721
|
},
|
|
1722
1722
|
emits: ["update:modelValue", "update:open"],
|
|
1723
1723
|
setup(e) {
|
|
1724
|
-
let { nameList: t } =
|
|
1724
|
+
let { nameList: t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ot(), o = (e) => {
|
|
1725
1725
|
n.value = e, r.value = !1;
|
|
1726
1726
|
};
|
|
1727
|
-
return (e, n) => j(i).length > 0 ? (C(), l("div",
|
|
1727
|
+
return (e, n) => j(i).length > 0 ? (C(), l("div", en, [(C(!0), l(a, null, E(j(i), (e) => (C(), s($t, {
|
|
1728
1728
|
key: e.id,
|
|
1729
1729
|
id: e.id,
|
|
1730
1730
|
title: e.name,
|
|
1731
1731
|
onXClick: o
|
|
1732
|
-
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div",
|
|
1732
|
+
}, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", tn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1733
1733
|
}
|
|
1734
|
-
}),
|
|
1734
|
+
}), rn = { class: "text-body-large" }, an = /* @__PURE__ */ p({
|
|
1735
1735
|
__name: "index",
|
|
1736
1736
|
props: /* @__PURE__ */ _({
|
|
1737
1737
|
hasDelete: {
|
|
@@ -1748,7 +1748,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1748
1748
|
}),
|
|
1749
1749
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1750
1750
|
setup(e, { emit: t }) {
|
|
1751
|
-
let { t: n } =
|
|
1751
|
+
let { t: n } = H(), r = ve(), { sysBarAvail: i, nameList: a } = G(), { backgroundColor1: l } = W(), p = N(e, "modelValue"), m = t, h = ot(), _ = o(() => {
|
|
1752
1752
|
let e = "100%";
|
|
1753
1753
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1754
1754
|
background: l.value,
|
|
@@ -1765,7 +1765,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1765
1765
|
if (!p.value) return n("x-runtime-lib.notSet");
|
|
1766
1766
|
let e = h.value.find((e) => e.id === p.value);
|
|
1767
1767
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1768
|
-
}), { open: T } =
|
|
1768
|
+
}), { open: T } = K(`propTreeSlotSelectDlg${M()}`);
|
|
1769
1769
|
return S(() => {
|
|
1770
1770
|
T.value = !1;
|
|
1771
1771
|
}), (t, n) => {
|
|
@@ -1817,13 +1817,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1817
1817
|
icon: "mdi-close",
|
|
1818
1818
|
variant: "text",
|
|
1819
1819
|
onClick: n[1] ||= (e) => T.value = !1
|
|
1820
|
-
}), u("span",
|
|
1820
|
+
}), u("span", rn, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1821
1821
|
_: 1
|
|
1822
1822
|
}),
|
|
1823
1823
|
u("div", {
|
|
1824
1824
|
class: "overflow-y-auto",
|
|
1825
1825
|
style: y(b.value)
|
|
1826
|
-
}, [f(
|
|
1826
|
+
}, [f(nn, {
|
|
1827
1827
|
modelValue: p.value,
|
|
1828
1828
|
"onUpdate:modelValue": n[2] ||= (e) => p.value = e,
|
|
1829
1829
|
open: j(T),
|
|
@@ -1834,7 +1834,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1834
1834
|
}, 8, ["modelValue"]);
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
|
-
}),
|
|
1837
|
+
}), on = { class: "d-flex justify-space-between align-center" }, sn = /* @__PURE__ */ p({
|
|
1838
1838
|
__name: "index",
|
|
1839
1839
|
props: /* @__PURE__ */ _({
|
|
1840
1840
|
hasDelete: {
|
|
@@ -1854,7 +1854,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1854
1854
|
let n = N(e, "modelValue"), r = t;
|
|
1855
1855
|
return (t, i) => {
|
|
1856
1856
|
let a = O("v-switch"), o = O("v-btn");
|
|
1857
|
-
return C(), l("div",
|
|
1857
|
+
return C(), l("div", on, [f(a, {
|
|
1858
1858
|
modelValue: n.value,
|
|
1859
1859
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1860
1860
|
class: "ml-1",
|
|
@@ -1872,7 +1872,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1872
1872
|
})) : c("", !0)]);
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
|
-
}),
|
|
1875
|
+
}), cn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PURE__ */ p({
|
|
1876
1876
|
__name: "index",
|
|
1877
1877
|
props: /* @__PURE__ */ _({
|
|
1878
1878
|
hasDelete: {
|
|
@@ -1889,9 +1889,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1889
1889
|
}),
|
|
1890
1890
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1891
1891
|
setup(e, { emit: t }) {
|
|
1892
|
-
let { isMobile: n } =
|
|
1892
|
+
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1893
1893
|
if (!t || e.readonly || !n()) return;
|
|
1894
|
-
let i = await
|
|
1894
|
+
let i = await ge({
|
|
1895
1895
|
title: "",
|
|
1896
1896
|
value: r.value
|
|
1897
1897
|
});
|
|
@@ -1899,7 +1899,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1899
1899
|
};
|
|
1900
1900
|
return (t, n) => {
|
|
1901
1901
|
let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
|
|
1902
|
-
return C(), l("div",
|
|
1902
|
+
return C(), l("div", cn, [L(f(o, {
|
|
1903
1903
|
modelValue: r.value,
|
|
1904
1904
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1905
1905
|
density: "compact",
|
|
@@ -1925,14 +1925,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
|
|
|
1925
1925
|
});
|
|
1926
1926
|
//#endregion
|
|
1927
1927
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1928
|
-
function
|
|
1928
|
+
function un() {
|
|
1929
1929
|
let e = $();
|
|
1930
1930
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1931
1931
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1932
|
-
return m(
|
|
1933
|
-
modelValue:
|
|
1932
|
+
return m(wt, {
|
|
1933
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
1934
1934
|
"onUpdate:modelValue": (o) => {
|
|
1935
|
-
|
|
1935
|
+
X(t, n, r, o, i, a, e);
|
|
1936
1936
|
},
|
|
1937
1937
|
hasDelete: i !== void 0 && !a,
|
|
1938
1938
|
onDelete: () => {
|
|
@@ -1944,14 +1944,14 @@ function dn() {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
//#endregion
|
|
1946
1946
|
//#region src/composables/uis/uiComp.ts
|
|
1947
|
-
function
|
|
1947
|
+
function dn() {
|
|
1948
1948
|
let e = $();
|
|
1949
1949
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
1950
1950
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1951
|
-
return m(
|
|
1952
|
-
modelValue:
|
|
1951
|
+
return m(Pt, {
|
|
1952
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
1953
1953
|
"onUpdate:modelValue": (o) => {
|
|
1954
|
-
|
|
1954
|
+
X(t, n, r, o, i, a, e);
|
|
1955
1955
|
},
|
|
1956
1956
|
hasDelete: i !== void 0 && !a,
|
|
1957
1957
|
onDelete: () => {
|
|
@@ -1963,23 +1963,23 @@ function fn() {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
//#endregion
|
|
1965
1965
|
//#region src/composables/uis/uiDummy.ts
|
|
1966
|
-
function
|
|
1966
|
+
function fn() {
|
|
1967
1967
|
let e = $();
|
|
1968
1968
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1969
1969
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1970
|
-
|
|
1970
|
+
Y(t, n, r, i, a, e);
|
|
1971
1971
|
} };
|
|
1972
1972
|
}
|
|
1973
1973
|
//#endregion
|
|
1974
1974
|
//#region src/composables/uis/uiIcon.ts
|
|
1975
|
-
function
|
|
1975
|
+
function pn() {
|
|
1976
1976
|
let e = $();
|
|
1977
1977
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
1978
1978
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
1979
|
-
return m(
|
|
1980
|
-
modelValue: n.static ? n.value :
|
|
1979
|
+
return m(It, {
|
|
1980
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
1981
1981
|
"onUpdate:modelValue": (o) => {
|
|
1982
|
-
n.static ||
|
|
1982
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
1983
1983
|
},
|
|
1984
1984
|
hasDelete: i !== void 0 && !a,
|
|
1985
1985
|
onDelete: () => {
|
|
@@ -1991,14 +1991,14 @@ function mn() {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
//#endregion
|
|
1993
1993
|
//#region src/composables/uis/uiJson.ts
|
|
1994
|
-
function
|
|
1994
|
+
function mn() {
|
|
1995
1995
|
let e = $();
|
|
1996
1996
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
1997
1997
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
1998
|
-
return m(
|
|
1999
|
-
modelValue:
|
|
1998
|
+
return m(zt, {
|
|
1999
|
+
modelValue: Y(t, n, r, i, a, e) ?? "{}",
|
|
2000
2000
|
"onUpdate:modelValue": (o) => {
|
|
2001
|
-
|
|
2001
|
+
X(t, n, r, o, i, a, e);
|
|
2002
2002
|
},
|
|
2003
2003
|
hasDelete: i !== void 0 && !a,
|
|
2004
2004
|
onDelete: () => {
|
|
@@ -2010,14 +2010,14 @@ function hn() {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
//#endregion
|
|
2012
2012
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2013
|
-
function
|
|
2013
|
+
function hn() {
|
|
2014
2014
|
let e = $();
|
|
2015
2015
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2016
2016
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2017
|
-
return m(
|
|
2018
|
-
modelValue:
|
|
2017
|
+
return m(Wt, {
|
|
2018
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2019
2019
|
"onUpdate:modelValue": (o) => {
|
|
2020
|
-
|
|
2020
|
+
X(t, n, r, o, i, a, e);
|
|
2021
2021
|
},
|
|
2022
2022
|
hasDelete: i !== void 0 && !a,
|
|
2023
2023
|
onDelete: () => {
|
|
@@ -2029,14 +2029,14 @@ function gn() {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
//#endregion
|
|
2031
2031
|
//#region src/composables/uis/uiNumber.ts
|
|
2032
|
-
function
|
|
2032
|
+
function gn() {
|
|
2033
2033
|
let e = $();
|
|
2034
2034
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2035
2035
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2036
|
-
return m(
|
|
2037
|
-
modelValue:
|
|
2036
|
+
return m(Kt, {
|
|
2037
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2038
2038
|
"onUpdate:modelValue": (o) => {
|
|
2039
|
-
|
|
2039
|
+
X(t, n, r, o, i, a, e);
|
|
2040
2040
|
},
|
|
2041
2041
|
hasDelete: i !== void 0 && !a,
|
|
2042
2042
|
onDelete: () => {
|
|
@@ -2052,12 +2052,12 @@ function _n() {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
//#endregion
|
|
2054
2054
|
//#region src/components/entry/index.vue
|
|
2055
|
-
var
|
|
2055
|
+
var _n = /* @__PURE__ */ p({
|
|
2056
2056
|
__name: "index",
|
|
2057
2057
|
props: { minHeight: {} },
|
|
2058
2058
|
emits: ["menu"],
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
2060
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
|
|
2061
2061
|
background: a.value ? r.value : n.value,
|
|
2062
2062
|
minHeight: e.minHeight,
|
|
2063
2063
|
paddingRight: "4px",
|
|
@@ -2080,14 +2080,14 @@ var vn = /* @__PURE__ */ p({
|
|
|
2080
2080
|
});
|
|
2081
2081
|
//#endregion
|
|
2082
2082
|
//#region src/composables/uis/uiProperty.ts
|
|
2083
|
-
function
|
|
2084
|
-
let { t: e } =
|
|
2083
|
+
function vn() {
|
|
2084
|
+
let { t: e } = H(), t = tt();
|
|
2085
2085
|
return { renderProperty: (n, r, i) => {
|
|
2086
2086
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2087
|
-
return Q(t.value, n) && (o += " *"), m(
|
|
2087
|
+
return Q(t.value, n) && (o += " *"), m(_n, {
|
|
2088
2088
|
minHeight: "56px",
|
|
2089
2089
|
onMenu: (e, t) => {
|
|
2090
|
-
|
|
2090
|
+
U.emit("propTreeMenu", {
|
|
2091
2091
|
x: e,
|
|
2092
2092
|
y: t,
|
|
2093
2093
|
keys: n
|
|
@@ -2104,14 +2104,14 @@ function yn() {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
//#endregion
|
|
2106
2106
|
//#region src/composables/uis/uiRule.ts
|
|
2107
|
-
function
|
|
2107
|
+
function yn() {
|
|
2108
2108
|
let e = $();
|
|
2109
2109
|
function t(t, n, r, i, a) {
|
|
2110
2110
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2111
|
-
return m(
|
|
2112
|
-
modelValue:
|
|
2111
|
+
return m(Yt, {
|
|
2112
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2113
2113
|
"onUpdate:modelValue": (o) => {
|
|
2114
|
-
|
|
2114
|
+
X(t, n, r, o, i, a, e);
|
|
2115
2115
|
},
|
|
2116
2116
|
hasDelete: i !== void 0 && !a,
|
|
2117
2117
|
onDelete: () => {
|
|
@@ -2123,14 +2123,14 @@ function bn() {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
//#endregion
|
|
2125
2125
|
//#region src/composables/uis/uiSelect.ts
|
|
2126
|
-
function
|
|
2126
|
+
function bn() {
|
|
2127
2127
|
let e = $();
|
|
2128
2128
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2129
2129
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2130
|
-
return m(
|
|
2131
|
-
modelValue:
|
|
2130
|
+
return m(Zt, {
|
|
2131
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2132
2132
|
"onUpdate:modelValue": (o) => {
|
|
2133
|
-
|
|
2133
|
+
X(t, n, r, o, i, a, e);
|
|
2134
2134
|
},
|
|
2135
2135
|
hasDelete: i !== void 0 && !a,
|
|
2136
2136
|
onDelete: () => {
|
|
@@ -2143,14 +2143,14 @@ function xn() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
//#endregion
|
|
2145
2145
|
//#region src/composables/uis/uiSlot.ts
|
|
2146
|
-
function
|
|
2146
|
+
function xn() {
|
|
2147
2147
|
let e = $();
|
|
2148
2148
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2149
2149
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2150
|
-
return m(
|
|
2151
|
-
modelValue:
|
|
2150
|
+
return m(an, {
|
|
2151
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2152
2152
|
"onUpdate:modelValue": (o) => {
|
|
2153
|
-
|
|
2153
|
+
X(t, n, r, o, i, a, e);
|
|
2154
2154
|
},
|
|
2155
2155
|
hasDelete: i !== void 0 && !a,
|
|
2156
2156
|
onDelete: () => {
|
|
@@ -2162,14 +2162,14 @@ function Sn() {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
//#endregion
|
|
2164
2164
|
//#region src/composables/uis/uiSwitch.ts
|
|
2165
|
-
function
|
|
2165
|
+
function Sn() {
|
|
2166
2166
|
let e = $();
|
|
2167
2167
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2168
2168
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2169
|
-
return m(
|
|
2170
|
-
modelValue:
|
|
2169
|
+
return m(sn, {
|
|
2170
|
+
modelValue: Y(t, n, r, i, a, e),
|
|
2171
2171
|
"onUpdate:modelValue": (o) => {
|
|
2172
|
-
|
|
2172
|
+
X(t, n, r, o, i, a, e);
|
|
2173
2173
|
},
|
|
2174
2174
|
hasDelete: i !== void 0 && !a,
|
|
2175
2175
|
onDelete: () => {
|
|
@@ -2181,14 +2181,14 @@ function Cn() {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
//#endregion
|
|
2183
2183
|
//#region src/composables/uis/uiText.ts
|
|
2184
|
-
function
|
|
2184
|
+
function Cn() {
|
|
2185
2185
|
let e = $();
|
|
2186
2186
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2187
2187
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2188
|
-
return m(
|
|
2189
|
-
modelValue: n.static ? n.value :
|
|
2188
|
+
return m(ln, {
|
|
2189
|
+
modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
|
|
2190
2190
|
"onUpdate:modelValue": (o) => {
|
|
2191
|
-
n.static ||
|
|
2191
|
+
n.static || X(t, n, r, o, i, a, e);
|
|
2192
2192
|
},
|
|
2193
2193
|
hasDelete: i !== void 0 && !a,
|
|
2194
2194
|
onDelete: () => {
|
|
@@ -2200,27 +2200,27 @@ function wn() {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
//#endregion
|
|
2202
2202
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2203
|
-
var
|
|
2203
|
+
var wn = "20px", Tn = /* @__PURE__ */ p({
|
|
2204
2204
|
__name: "main",
|
|
2205
2205
|
setup(t) {
|
|
2206
|
-
let { t: n } =
|
|
2207
|
-
|
|
2208
|
-
let { renderProperty: d } =
|
|
2206
|
+
let { t: n } = H(), { backgroundColor1: r } = W(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
|
|
2207
|
+
pt(), mt(), ft();
|
|
2208
|
+
let { renderProperty: d } = vn(), { renderUiDummy: p } = fn(), { renderUiText: h } = Cn(), { renderUiNumber: g } = gn(), { renderUiSwitch: _ } = Sn(), { renderUiSelect: v } = bn(), { renderUiJson: y } = mn(), { renderUiIcon: b } = pn(), { renderUiComp: x } = dn(), { renderUiSlot: S } = xn(), { renderUiAdaptSlot: w } = un(), { renderUiRule: T } = yn(), { renderUiMultiTypes: E } = hn(), D = (t, n, r, i, a, o) => {
|
|
2209
2209
|
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
2210
|
}, O = (e, t, r, i, a) => {
|
|
2211
2211
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2212
2212
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2213
|
-
let o =
|
|
2214
|
-
|
|
2215
|
-
let d = m(
|
|
2213
|
+
let o = be(e, t, r, i, a, u), l = n(t.name);
|
|
2214
|
+
Z(s, e) && Q(c.value, e) && (l += " *");
|
|
2215
|
+
let d = m(dt, {
|
|
2216
2216
|
title: l,
|
|
2217
|
-
collapse:
|
|
2217
|
+
collapse: Z(s, e),
|
|
2218
2218
|
hasCreate: !0,
|
|
2219
2219
|
onCollapse: (t) => {
|
|
2220
|
-
|
|
2220
|
+
xe(s, e, t);
|
|
2221
2221
|
},
|
|
2222
2222
|
onMenu: (t, n) => {
|
|
2223
|
-
|
|
2223
|
+
U.emit("propTreeMenu", {
|
|
2224
2224
|
x: t,
|
|
2225
2225
|
y: n,
|
|
2226
2226
|
keys: e
|
|
@@ -2229,21 +2229,21 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2229
2229
|
onCreate: () => {
|
|
2230
2230
|
o.push({}), u(e, o);
|
|
2231
2231
|
}
|
|
2232
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2232
|
+
}), f = m("div", { style: { paddingLeft: wn } }, (() => {
|
|
2233
2233
|
let n = [];
|
|
2234
2234
|
for (let r = 0; r < o.length; r++) {
|
|
2235
2235
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2236
|
-
|
|
2237
|
-
let l = m(
|
|
2236
|
+
Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2237
|
+
let l = m(dt, {
|
|
2238
2238
|
title: a,
|
|
2239
|
-
collapse:
|
|
2239
|
+
collapse: Z(s, [...e, r]),
|
|
2240
2240
|
hasDelete: !0,
|
|
2241
2241
|
index: r,
|
|
2242
2242
|
onCollapse: (t) => {
|
|
2243
|
-
|
|
2243
|
+
xe(s, [...e, r], t);
|
|
2244
2244
|
},
|
|
2245
2245
|
onMenu: (e, t) => {
|
|
2246
|
-
|
|
2246
|
+
U.emit("propTreeMenu", {
|
|
2247
2247
|
x: e,
|
|
2248
2248
|
y: t,
|
|
2249
2249
|
keys: i
|
|
@@ -2254,33 +2254,33 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2254
2254
|
}
|
|
2255
2255
|
});
|
|
2256
2256
|
n.push(l);
|
|
2257
|
-
let d = m("div", { style: { paddingLeft:
|
|
2257
|
+
let d = m("div", { style: { paddingLeft: wn } }, (() => {
|
|
2258
2258
|
let n = [];
|
|
2259
2259
|
for (let i of t.children) n.push(D(e, i, o[r], r, !0));
|
|
2260
2260
|
return n;
|
|
2261
2261
|
})());
|
|
2262
|
-
|
|
2262
|
+
Z(s, [...e, r]) || n.push(d);
|
|
2263
2263
|
}
|
|
2264
2264
|
return n;
|
|
2265
2265
|
})());
|
|
2266
2266
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2267
2267
|
let t = [];
|
|
2268
|
-
return t.push(d),
|
|
2268
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2269
2269
|
})());
|
|
2270
2270
|
}, k = (e, t, r, i, a) => {
|
|
2271
2271
|
if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2272
2272
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2273
2273
|
let o = n(t.name);
|
|
2274
|
-
|
|
2275
|
-
let l = m(
|
|
2274
|
+
Z(s, e) && Q(c.value, e) && (o += " *");
|
|
2275
|
+
let l = m(dt, {
|
|
2276
2276
|
title: o,
|
|
2277
|
-
collapse:
|
|
2277
|
+
collapse: Z(s, e),
|
|
2278
2278
|
hasDelete: i !== void 0 && !a,
|
|
2279
2279
|
onCollapse: (t) => {
|
|
2280
|
-
|
|
2280
|
+
xe(s, e, t);
|
|
2281
2281
|
},
|
|
2282
2282
|
onMenu: (t, n) => {
|
|
2283
|
-
|
|
2283
|
+
U.emit("propTreeMenu", {
|
|
2284
2284
|
x: t,
|
|
2285
2285
|
y: n,
|
|
2286
2286
|
keys: e
|
|
@@ -2289,29 +2289,29 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2289
2289
|
onDelete: () => {
|
|
2290
2290
|
i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
|
|
2291
2291
|
}
|
|
2292
|
-
}), d = m("div", { style: { paddingLeft:
|
|
2292
|
+
}), d = m("div", { style: { paddingLeft: wn } }, (() => {
|
|
2293
2293
|
let n = [];
|
|
2294
2294
|
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
2295
|
return n;
|
|
2296
2296
|
})());
|
|
2297
2297
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2298
2298
|
let t = [];
|
|
2299
|
-
return t.push(l),
|
|
2299
|
+
return t.push(l), Z(s, e) || t.push(d), t;
|
|
2300
2300
|
})());
|
|
2301
2301
|
}, A = (e, t, r, i, a) => {
|
|
2302
2302
|
if (!t.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2303
2303
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2304
|
-
let o =
|
|
2305
|
-
|
|
2306
|
-
let d = m(
|
|
2304
|
+
let o = be(e, t, r, i, a, u), l = n(t.name);
|
|
2305
|
+
Z(s, e) && Q(c.value, e) && (l += " *");
|
|
2306
|
+
let d = m(dt, {
|
|
2307
2307
|
title: l,
|
|
2308
|
-
collapse:
|
|
2308
|
+
collapse: Z(s, e),
|
|
2309
2309
|
hasCreate: !0,
|
|
2310
2310
|
onCollapse: (t) => {
|
|
2311
|
-
|
|
2311
|
+
xe(s, e, t);
|
|
2312
2312
|
},
|
|
2313
2313
|
onMenu: (t, n) => {
|
|
2314
|
-
|
|
2314
|
+
U.emit("propTreeMenu", {
|
|
2315
2315
|
x: t,
|
|
2316
2316
|
y: n,
|
|
2317
2317
|
keys: e
|
|
@@ -2320,14 +2320,14 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2320
2320
|
onCreate: () => {
|
|
2321
2321
|
o.push(B(t)), u(e, o);
|
|
2322
2322
|
}
|
|
2323
|
-
}), f = m("div", { style: { paddingLeft:
|
|
2323
|
+
}), f = m("div", { style: { paddingLeft: wn } }, (() => {
|
|
2324
2324
|
let n = [];
|
|
2325
2325
|
for (let r = 0; r < o.length; r++) n.push(D(e, t, o, r, !1, !0));
|
|
2326
2326
|
return n;
|
|
2327
2327
|
})());
|
|
2328
2328
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2329
2329
|
let t = [];
|
|
2330
|
-
return t.push(d),
|
|
2330
|
+
return t.push(d), Z(s, e) || t.push(f), t;
|
|
2331
2331
|
})());
|
|
2332
2332
|
}, j = (e, t, n, r, i) => {
|
|
2333
2333
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
@@ -2341,9 +2341,9 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2341
2341
|
if (i.value.length > 0 && o.value) for (let t of i.value) e.push(D([], t, o.value, void 0, !1));
|
|
2342
2342
|
return e;
|
|
2343
2343
|
})());
|
|
2344
|
-
return (e, t) => (C(), l(a, null, [f(M), f(
|
|
2344
|
+
return (e, t) => (C(), l(a, null, [f(M), f(lt)], 64));
|
|
2345
2345
|
}
|
|
2346
|
-
}),
|
|
2346
|
+
}), En = /* @__PURE__ */ p({
|
|
2347
2347
|
__name: "index",
|
|
2348
2348
|
props: {
|
|
2349
2349
|
config: {},
|
|
@@ -2355,25 +2355,25 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2355
2355
|
emits: ["change"],
|
|
2356
2356
|
setup(e, { emit: t }) {
|
|
2357
2357
|
let n = t, r = T([]);
|
|
2358
|
-
|
|
2358
|
+
Je(r), F(() => {
|
|
2359
2359
|
r.value = e.config;
|
|
2360
2360
|
});
|
|
2361
2361
|
let i = T();
|
|
2362
|
-
|
|
2362
|
+
Xe(i), F(() => {
|
|
2363
2363
|
i.value = e.object;
|
|
2364
2364
|
});
|
|
2365
2365
|
let a = T("");
|
|
2366
|
-
|
|
2366
|
+
He(a), F(() => {
|
|
2367
2367
|
a.value = e.version;
|
|
2368
2368
|
});
|
|
2369
2369
|
let o = T(e.type);
|
|
2370
|
-
|
|
2370
|
+
We(o), F(() => {
|
|
2371
2371
|
o.value = e.type;
|
|
2372
2372
|
});
|
|
2373
2373
|
let c = T("");
|
|
2374
|
-
|
|
2374
|
+
Ke(c), F(() => {
|
|
2375
2375
|
c.value = e.subtype;
|
|
2376
|
-
}),
|
|
2376
|
+
}), Qe(T({
|
|
2377
2377
|
collapse: !0,
|
|
2378
2378
|
children: {}
|
|
2379
2379
|
}));
|
|
@@ -2382,15 +2382,15 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2382
2382
|
warning: !1,
|
|
2383
2383
|
children: {}
|
|
2384
2384
|
});
|
|
2385
|
-
return
|
|
2386
|
-
|
|
2385
|
+
return et(l), nt((t, r) => {
|
|
2386
|
+
Ae(l, e.config, e.object), n("change", t, r);
|
|
2387
2387
|
}), P([() => e.config, () => e.object], () => {
|
|
2388
|
-
|
|
2389
|
-
}, { immediate: !0 }), (e, t) => (C(), s(
|
|
2388
|
+
Ae(l, e.config, e.object);
|
|
2389
|
+
}, { immediate: !0 }), (e, t) => (C(), s(Tn));
|
|
2390
2390
|
}
|
|
2391
|
-
}),
|
|
2392
|
-
e.component("XPropTree",
|
|
2393
|
-
},
|
|
2391
|
+
}), Dn = (e) => {
|
|
2392
|
+
e.component("XPropTree", En);
|
|
2393
|
+
}, On = (e, t, n) => {
|
|
2394
2394
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2395
2395
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2396
2396
|
(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 +2398,14 @@ var Tn = "20px", En = /* @__PURE__ */ p({
|
|
|
2398
2398
|
};
|
|
2399
2399
|
//#endregion
|
|
2400
2400
|
//#region src/i18n/index.ts
|
|
2401
|
-
async function
|
|
2402
|
-
return (await
|
|
2401
|
+
async function kn(e) {
|
|
2402
|
+
return (await On(/* @__PURE__ */ Object.assign({
|
|
2403
2403
|
"./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
|
|
2404
2404
|
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
|
|
2405
2405
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2406
2406
|
}
|
|
2407
2407
|
//#endregion
|
|
2408
2408
|
//#region src/index.ts
|
|
2409
|
-
var
|
|
2409
|
+
var An = { install: Dn };
|
|
2410
2410
|
//#endregion
|
|
2411
|
-
export {
|
|
2411
|
+
export { An as default, kn as loadLocaleMessagePropTree };
|