x-prop-tree 0.7.21 → 0.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/entry/index.vue.d.ts +4 -4
- package/dist/components/propTree/index.vue.d.ts +4 -4
- package/dist/components/title/index.vue.d.ts +4 -4
- package/dist/components/values/colorPicker/index.vue.d.ts +2 -3
- package/dist/components/values/compSelect/compList/group.vue.d.ts +4 -4
- package/dist/components/values/compSelect/compList/item.vue.d.ts +4 -4
- package/dist/components/values/multiTypes/index.vue.d.ts +2 -3
- package/dist/components/values/numInput/index.vue.d.ts +2 -3
- package/dist/components/values/select/index.vue.d.ts +2 -3
- package/dist/components/values/slotSelect/slotList/group.vue.d.ts +4 -4
- package/dist/components/values/slotSelect/slotList/item.vue.d.ts +4 -4
- package/dist/components/values/strInput/index.vue.d.ts +2 -3
- package/dist/components/values/switch/index.vue.d.ts +2 -3
- package/dist/index.js +289 -289
- package/package.json +17 -17
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as
|
|
1
|
+
import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as ke, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, onMounted as He, onBeforeUnmount as Xe, watch as oe, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as Fe, watchEffect as Ke, h as k, renderSlot as kt, reactive as _t } from "vue";
|
|
2
2
|
import { useI18n as I } from "vue-i18n";
|
|
3
|
-
import { useViewStack as
|
|
4
|
-
import { getPropertyDefault as J, pkgs as Ne,
|
|
5
|
-
import { c as Ge, i as be,
|
|
6
|
-
import {
|
|
3
|
+
import { useViewStack as _e, useColor as te, globalObjects as xt, eventBus as de, useSystem as pe, injectDark as St, injectLocale as Vt, openNumberDlg as ze, openPromptDlg as Ct } from "x-essential-lib";
|
|
4
|
+
import { getPropertyDefault as J, pkgs as Ne, getPropertyTag as Ut, elements as $t, makeSlotId as Re, parsePixelStr as wt, parsePercentStr as Mt } from "x-runtime-lib";
|
|
5
|
+
import { c as Ge, i as be, d as Ye, r as ve, v as We } from "./vendor.f0ug048x.js";
|
|
6
|
+
import { globalState as Qe } from "x-state-lib";
|
|
7
|
+
import { useDisplay as Ze } from "vuetify";
|
|
7
8
|
import { XBlockly as bt } from "x-block-lib";
|
|
8
|
-
import { globalState as Ze } from "x-state-lib";
|
|
9
9
|
const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t, s) => {
|
|
10
10
|
const n = (e, l) => {
|
|
11
11
|
if (e.ui !== l.ui || e.array !== l.array)
|
|
@@ -42,7 +42,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
|
|
|
42
42
|
n = n.children.find((l) => l.key === e);
|
|
43
43
|
}
|
|
44
44
|
}), n;
|
|
45
|
-
},
|
|
45
|
+
}, he = (t, s) => {
|
|
46
46
|
let n = t;
|
|
47
47
|
return s.forEach((e) => {
|
|
48
48
|
if (!n) {
|
|
@@ -275,64 +275,63 @@ function it() {
|
|
|
275
275
|
const Yt = /* @__PURE__ */ E({
|
|
276
276
|
__name: "index",
|
|
277
277
|
setup(t) {
|
|
278
|
-
const { t: s } = I(), n = Kt(), e = Et(), l = Ht(), o = Ft(), i = T(0), u = T(0), r = T([]), a = L(() => [i.value, u.value]), d = (
|
|
278
|
+
const { t: s } = I(), n = Kt(), e = Et(), l = Ht(), o = Ft(), i = T(0), u = T(0), r = T([]), a = L(() => [i.value, u.value]), d = (S) => {
|
|
279
279
|
const D = () => !(r.value.length <= 0 || !me(l.value, r.value)), x = () => {
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
282
|
-
if (
|
|
283
|
-
const U =
|
|
280
|
+
const V = Ce(n.value, r.value);
|
|
281
|
+
if (V)
|
|
282
|
+
if (V.ui) {
|
|
283
|
+
const U = he(e.value, r.value.slice(0, -1));
|
|
284
284
|
if (!U)
|
|
285
285
|
return;
|
|
286
|
-
U[r.value[r.value.length - 1]] = J(
|
|
287
|
-
} else if (
|
|
286
|
+
U[r.value[r.value.length - 1]] = J(V), o(r.value, U[r.value[r.value.length - 1]]);
|
|
287
|
+
} else if (V.array) {
|
|
288
288
|
const U = r.value[r.value.length - 1];
|
|
289
289
|
if (U === void 0) {
|
|
290
290
|
console.assert(!1, "invalid last key");
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
if (typeof U == "string") {
|
|
294
|
-
const O =
|
|
294
|
+
const O = he(e.value, r.value.slice(0, -1));
|
|
295
295
|
if (!O)
|
|
296
296
|
return;
|
|
297
|
-
O[r.value[r.value.length - 1]] = J(
|
|
297
|
+
O[r.value[r.value.length - 1]] = J(V), o(r.value, O[r.value[r.value.length - 1]]);
|
|
298
298
|
} else {
|
|
299
|
-
const O =
|
|
299
|
+
const O = he(e.value, r.value);
|
|
300
300
|
if (!O)
|
|
301
301
|
return;
|
|
302
|
-
|
|
303
|
-
O[Q.key] = J(
|
|
302
|
+
V.children.forEach((Q) => {
|
|
303
|
+
O[Q.key] = J(V), o([...r.value, Q.key], O[Q.key]);
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
} else {
|
|
307
|
-
const U =
|
|
307
|
+
const U = he(e.value, r.value);
|
|
308
308
|
if (!U)
|
|
309
309
|
return;
|
|
310
|
-
|
|
311
|
-
U[O.key] = J(
|
|
310
|
+
V.children.forEach((O) => {
|
|
311
|
+
U[O.key] = J(V), o([...r.value, O.key], U[O.key]);
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
D() &&
|
|
315
|
+
D() && S.push({
|
|
316
316
|
title: s("x-prop-tree.reset"),
|
|
317
317
|
func: x
|
|
318
318
|
});
|
|
319
|
-
}, c = (
|
|
319
|
+
}, c = (S) => {
|
|
320
320
|
const D = () => {
|
|
321
|
-
const x = Ce(n.value, r.value),
|
|
322
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ property: x, object:
|
|
321
|
+
const x = Ce(n.value, r.value), V = he(e.value, r.value);
|
|
322
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ property: x, object: V }));
|
|
323
323
|
};
|
|
324
|
-
|
|
324
|
+
S.push({
|
|
325
325
|
title: s("x-prop-tree.copy"),
|
|
326
326
|
func: D
|
|
327
327
|
});
|
|
328
|
-
}, f = (
|
|
328
|
+
}, f = (S) => {
|
|
329
329
|
const D = () => {
|
|
330
|
-
const
|
|
331
|
-
if (!
|
|
330
|
+
const V = localStorage.getItem("propTreeCopy");
|
|
331
|
+
if (!V)
|
|
332
332
|
return !1;
|
|
333
|
-
console.log(S);
|
|
334
333
|
try {
|
|
335
|
-
const { property: U } = JSON.parse(
|
|
334
|
+
const { property: U } = JSON.parse(V);
|
|
336
335
|
if (!U)
|
|
337
336
|
return !1;
|
|
338
337
|
const O = Ce(n.value, r.value);
|
|
@@ -344,27 +343,27 @@ const Yt = /* @__PURE__ */ E({
|
|
|
344
343
|
}, x = () => {
|
|
345
344
|
if (!D())
|
|
346
345
|
return;
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
346
|
+
const V = localStorage.getItem("propTreeCopy");
|
|
347
|
+
if (V)
|
|
349
348
|
try {
|
|
350
|
-
const { object: U } = JSON.parse(
|
|
349
|
+
const { object: U } = JSON.parse(V), O = Ce(n.value, r.value);
|
|
351
350
|
console.log(U, O);
|
|
352
351
|
} catch (U) {
|
|
353
352
|
console.error(U);
|
|
354
353
|
}
|
|
355
354
|
};
|
|
356
|
-
D() &&
|
|
355
|
+
D() && S.push({
|
|
357
356
|
title: s("x-prop-tree.paste"),
|
|
358
357
|
func: x
|
|
359
358
|
});
|
|
360
359
|
}, v = L(() => {
|
|
361
|
-
const
|
|
362
|
-
return d(
|
|
363
|
-
}), C = (
|
|
364
|
-
i.value =
|
|
365
|
-
}, { open: h } =
|
|
366
|
-
return (
|
|
367
|
-
const x = $("v-list-item-title"),
|
|
360
|
+
const S = [];
|
|
361
|
+
return d(S), c(S), f(S), S;
|
|
362
|
+
}), C = (S) => {
|
|
363
|
+
i.value = S.x, u.value = S.y, r.value = S.keys;
|
|
364
|
+
}, { open: h } = _e("propTreeMenu", C);
|
|
365
|
+
return (S, D) => {
|
|
366
|
+
const x = $("v-list-item-title"), V = $("v-list-item"), U = $("v-list"), O = $("v-menu");
|
|
368
367
|
return _(), B(O, {
|
|
369
368
|
modelValue: P(h),
|
|
370
369
|
"onUpdate:modelValue": D[0] || (D[0] = (Q) => re(h) ? h.value = Q : null),
|
|
@@ -375,15 +374,15 @@ const Yt = /* @__PURE__ */ E({
|
|
|
375
374
|
default: R(() => [
|
|
376
375
|
b(U, null, {
|
|
377
376
|
default: R(() => [
|
|
378
|
-
(_(!0), K(fe, null, Te(v.value, (Q,
|
|
379
|
-
key:
|
|
377
|
+
(_(!0), K(fe, null, Te(v.value, (Q, ge) => (_(), B(V, {
|
|
378
|
+
key: ge,
|
|
380
379
|
link: "",
|
|
381
380
|
onClick: Q.func
|
|
382
381
|
}, {
|
|
383
382
|
default: R(() => [
|
|
384
383
|
b(x, null, {
|
|
385
384
|
default: R(() => [
|
|
386
|
-
|
|
385
|
+
ke(F(Q.title), 1)
|
|
387
386
|
]),
|
|
388
387
|
_: 2
|
|
389
388
|
}, 1024)
|
|
@@ -456,7 +455,123 @@ const Yt = /* @__PURE__ */ E({
|
|
|
456
455
|
]);
|
|
457
456
|
};
|
|
458
457
|
}
|
|
459
|
-
})
|
|
458
|
+
});
|
|
459
|
+
function Qt() {
|
|
460
|
+
const t = T([]);
|
|
461
|
+
zt(t);
|
|
462
|
+
const s = () => {
|
|
463
|
+
const { activeApp: o, depends: i } = Qe.app, u = [];
|
|
464
|
+
for (const { id: r, name: a, position: d } of o.compGroups) {
|
|
465
|
+
const c = t.value.find((f) => f.id === r);
|
|
466
|
+
u.push({
|
|
467
|
+
id: r,
|
|
468
|
+
type: 0,
|
|
469
|
+
name: a,
|
|
470
|
+
position: d,
|
|
471
|
+
collapse: c?.collapse ?? !0
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
for (const { id: r, groupId: a, name: d, position: c } of o.comps)
|
|
475
|
+
i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
|
|
476
|
+
Ye(u, !0), t.value = u;
|
|
477
|
+
};
|
|
478
|
+
let n;
|
|
479
|
+
const e = () => {
|
|
480
|
+
clearTimeout(n), n = window.setTimeout(() => {
|
|
481
|
+
s(), n && e();
|
|
482
|
+
}, 1e3);
|
|
483
|
+
}, l = () => {
|
|
484
|
+
clearTimeout(n), n = void 0;
|
|
485
|
+
};
|
|
486
|
+
He(() => {
|
|
487
|
+
e();
|
|
488
|
+
}), Xe(() => {
|
|
489
|
+
l();
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
function Zt(t, s, n) {
|
|
493
|
+
const { i18n: e } = xt, l = T([]);
|
|
494
|
+
Gt(l);
|
|
495
|
+
const o = () => {
|
|
496
|
+
if (!t.value || !s.value || !n.value)
|
|
497
|
+
return;
|
|
498
|
+
const a = Ne[t.value];
|
|
499
|
+
if (!a) {
|
|
500
|
+
console.assert(!1, `invalid version=${t.value}`);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
const d = Ut(s.value, n.value), c = [];
|
|
504
|
+
for (let h = 0; h < a.groups[d].length; h++) {
|
|
505
|
+
const S = a.groups[d][h], D = ve(l, S.key);
|
|
506
|
+
c.push({
|
|
507
|
+
id: S.key,
|
|
508
|
+
type: 0,
|
|
509
|
+
name: e.global.t(S.name),
|
|
510
|
+
position: h,
|
|
511
|
+
collapse: D?.collapse ?? !0,
|
|
512
|
+
count: 0
|
|
513
|
+
});
|
|
514
|
+
let x = 0;
|
|
515
|
+
for (const V of S.items) {
|
|
516
|
+
const U = $t[V];
|
|
517
|
+
if (U && !U.internal && U.slots)
|
|
518
|
+
for (const O of U.slots) {
|
|
519
|
+
const Q = Re("elementSlot", U.key, O.key), ge = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
|
|
520
|
+
c.push({
|
|
521
|
+
id: Q,
|
|
522
|
+
type: 1,
|
|
523
|
+
name: ge,
|
|
524
|
+
position: x++,
|
|
525
|
+
group: S.key
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
const { activeApp: f, depends: v } = Qe.app;
|
|
531
|
+
for (const { id: h, name: S, position: D } of f.compGroups) {
|
|
532
|
+
const x = ve(l, h);
|
|
533
|
+
c.push({
|
|
534
|
+
id: h,
|
|
535
|
+
type: 0,
|
|
536
|
+
name: S,
|
|
537
|
+
position: D,
|
|
538
|
+
collapse: x?.collapse ?? !0
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
let C = 0;
|
|
542
|
+
for (const h of f.comps) {
|
|
543
|
+
const S = v[h.id];
|
|
544
|
+
if (S && S.meta.slots)
|
|
545
|
+
for (const D of S.meta.slots) {
|
|
546
|
+
const x = Re("customSlot", h.id, D.id), V = `${h.name} / ${D.name}`;
|
|
547
|
+
c.push({
|
|
548
|
+
id: x,
|
|
549
|
+
type: 1,
|
|
550
|
+
name: V,
|
|
551
|
+
position: C++,
|
|
552
|
+
group: h.groupId
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
Ye(c, !0), l.value = c;
|
|
557
|
+
};
|
|
558
|
+
let i;
|
|
559
|
+
const u = () => {
|
|
560
|
+
clearTimeout(i), i = window.setTimeout(() => {
|
|
561
|
+
o(), i && u();
|
|
562
|
+
}, 1e3);
|
|
563
|
+
}, r = () => {
|
|
564
|
+
clearTimeout(i), i = void 0;
|
|
565
|
+
};
|
|
566
|
+
He(() => {
|
|
567
|
+
u();
|
|
568
|
+
}), Xe(() => {
|
|
569
|
+
r();
|
|
570
|
+
}), oe([t, s, n], () => {
|
|
571
|
+
o(), u();
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ E({
|
|
460
575
|
__name: "index",
|
|
461
576
|
props: /* @__PURE__ */ Z({
|
|
462
577
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -472,7 +587,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
472
587
|
return t.hasDelete && (r = "calc(100% - 37px)"), {
|
|
473
588
|
width: r
|
|
474
589
|
};
|
|
475
|
-
}), i = L(() => t.readonly), { open: u } =
|
|
590
|
+
}), i = L(() => t.readonly), { open: u } = _e(`propTreeColorPickerMenu${$e()}`);
|
|
476
591
|
return we(() => {
|
|
477
592
|
u.value = !1;
|
|
478
593
|
}), (r, a) => {
|
|
@@ -484,7 +599,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
484
599
|
scrim: "transparent"
|
|
485
600
|
}, {
|
|
486
601
|
activator: R(({ props: v }) => [
|
|
487
|
-
q("div",
|
|
602
|
+
q("div", jt, [
|
|
488
603
|
q("div", {
|
|
489
604
|
class: "flex-grow-1",
|
|
490
605
|
style: W(o.value)
|
|
@@ -496,7 +611,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
496
611
|
disabled: i.value
|
|
497
612
|
}), {
|
|
498
613
|
default: R(() => [
|
|
499
|
-
|
|
614
|
+
ke(F(e.value ? e.value : P(n)("x-runtime-lib.notSet")), 1)
|
|
500
615
|
]),
|
|
501
616
|
_: 1
|
|
502
617
|
}, 16, ["color", "disabled"])
|
|
@@ -524,7 +639,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
524
639
|
}, 8, ["modelValue"]);
|
|
525
640
|
};
|
|
526
641
|
}
|
|
527
|
-
}),
|
|
642
|
+
}), en = { class: "text-subtitle-2 ml-1" }, tn = { class: "text-caption text-grey ml-1" }, nn = /* @__PURE__ */ E({
|
|
528
643
|
__name: "group",
|
|
529
644
|
props: {
|
|
530
645
|
id: {},
|
|
@@ -553,14 +668,14 @@ const Yt = /* @__PURE__ */ E({
|
|
|
553
668
|
icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
554
669
|
size: "small"
|
|
555
670
|
}, null, 8, ["icon"]),
|
|
556
|
-
q("span",
|
|
557
|
-
q("span",
|
|
671
|
+
q("span", en, F(l.title), 1),
|
|
672
|
+
q("span", tn, F(l.count), 1)
|
|
558
673
|
], 36)), [
|
|
559
674
|
[c]
|
|
560
675
|
]);
|
|
561
676
|
};
|
|
562
677
|
}
|
|
563
|
-
}),
|
|
678
|
+
}), ln = { class: "text-subtitle-1 ml-6" }, on = /* @__PURE__ */ E({
|
|
564
679
|
__name: "item",
|
|
565
680
|
props: {
|
|
566
681
|
id: {},
|
|
@@ -583,16 +698,16 @@ const Yt = /* @__PURE__ */ E({
|
|
|
583
698
|
onMouseout: a[1] || (a[1] = (c) => i.value = !1),
|
|
584
699
|
onMouseover: a[2] || (a[2] = (c) => i.value = !0)
|
|
585
700
|
}, [
|
|
586
|
-
q("span",
|
|
701
|
+
q("span", ln, F(l.title), 1)
|
|
587
702
|
], 36)), [
|
|
588
703
|
[d]
|
|
589
704
|
]);
|
|
590
705
|
};
|
|
591
706
|
}
|
|
592
|
-
}),
|
|
707
|
+
}), sn = { key: 0 }, un = {
|
|
593
708
|
key: 1,
|
|
594
709
|
class: "text-body-2 text-grey ml-3"
|
|
595
|
-
},
|
|
710
|
+
}, rn = /* @__PURE__ */ E({
|
|
596
711
|
__name: "index",
|
|
597
712
|
props: {
|
|
598
713
|
modelValue: {},
|
|
@@ -603,16 +718,16 @@ const Yt = /* @__PURE__ */ E({
|
|
|
603
718
|
emits: ["update:modelValue", "update:open"],
|
|
604
719
|
setup(t) {
|
|
605
720
|
const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
|
|
606
|
-
const r =
|
|
607
|
-
r &&
|
|
721
|
+
const r = ve(l, u);
|
|
722
|
+
r && We(l, u, !r.collapse);
|
|
608
723
|
}, i = (u) => {
|
|
609
724
|
n.value = u, e.value = !1, de.emit("refreshDepends");
|
|
610
725
|
};
|
|
611
|
-
return (u, r) => P(l).length > 0 ? (_(), K("div",
|
|
726
|
+
return (u, r) => P(l).length > 0 ? (_(), K("div", sn, [
|
|
612
727
|
(_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
|
|
613
728
|
key: a.id
|
|
614
729
|
}, [
|
|
615
|
-
a.type === 0 ? (_(), B(
|
|
730
|
+
a.type === 0 ? (_(), B(nn, {
|
|
616
731
|
key: 0,
|
|
617
732
|
id: a.id,
|
|
618
733
|
collapse: a.collapse,
|
|
@@ -620,16 +735,16 @@ const Yt = /* @__PURE__ */ E({
|
|
|
620
735
|
title: a.name,
|
|
621
736
|
onXClick: o
|
|
622
737
|
}, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
|
|
623
|
-
a.type === 1 && a.show ? (_(), B(
|
|
738
|
+
a.type === 1 && a.show ? (_(), B(on, {
|
|
624
739
|
key: 1,
|
|
625
740
|
id: a.id,
|
|
626
741
|
title: a.name,
|
|
627
742
|
onXClick: i
|
|
628
743
|
}, null, 8, ["id", "title"])) : G("", !0)
|
|
629
744
|
], 64))), 128))
|
|
630
|
-
])) : (_(), K("div",
|
|
745
|
+
])) : (_(), K("div", un, F(P(s)("x-prop-tree.noComp")), 1));
|
|
631
746
|
}
|
|
632
|
-
}),
|
|
747
|
+
}), an = { class: "text-subtitle-1 ml-3" }, cn = /* @__PURE__ */ E({
|
|
633
748
|
__name: "index",
|
|
634
749
|
props: {
|
|
635
750
|
modelValue: {},
|
|
@@ -637,7 +752,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
637
752
|
},
|
|
638
753
|
emits: ["update:modelValue"],
|
|
639
754
|
setup(t) {
|
|
640
|
-
const { t: s } = I(), n =
|
|
755
|
+
const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
|
|
641
756
|
let f = "100%";
|
|
642
757
|
return n.mdAndUp.value && (f = "400px"), {
|
|
643
758
|
background: l.value,
|
|
@@ -655,13 +770,13 @@ const Yt = /* @__PURE__ */ E({
|
|
|
655
770
|
})), d = L(() => {
|
|
656
771
|
if (!o.value)
|
|
657
772
|
return s("x-runtime-lib.notSet");
|
|
658
|
-
const f =
|
|
773
|
+
const f = ve(i, o.value);
|
|
659
774
|
return f ? f.name : s("x-runtime-lib.compNotAvail");
|
|
660
|
-
}), { open: c } =
|
|
775
|
+
}), { open: c } = _e(`propTreeCompSelectDlg${$e()}`);
|
|
661
776
|
return we(() => {
|
|
662
777
|
c.value = !1;
|
|
663
778
|
}), (f, v) => {
|
|
664
|
-
const C = $("v-btn"), h = $("v-sheet"),
|
|
779
|
+
const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
|
|
665
780
|
return _(), B(D, {
|
|
666
781
|
modelValue: P(c),
|
|
667
782
|
"onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
|
|
@@ -677,7 +792,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
677
792
|
density: "comfortable"
|
|
678
793
|
}), {
|
|
679
794
|
default: R(() => [
|
|
680
|
-
|
|
795
|
+
ke(F(d.value), 1)
|
|
681
796
|
]),
|
|
682
797
|
_: 1
|
|
683
798
|
}, 16)
|
|
@@ -703,11 +818,11 @@ const Yt = /* @__PURE__ */ E({
|
|
|
703
818
|
height: 48
|
|
704
819
|
}, {
|
|
705
820
|
default: R(() => [
|
|
706
|
-
b(
|
|
821
|
+
b(S, {
|
|
707
822
|
icon: "mdi-close",
|
|
708
823
|
onClick: v[0] || (v[0] = (x) => c.value = !1)
|
|
709
824
|
}),
|
|
710
|
-
q("span",
|
|
825
|
+
q("span", an, F(P(s)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
711
826
|
]),
|
|
712
827
|
_: 1
|
|
713
828
|
}),
|
|
@@ -715,7 +830,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
715
830
|
class: "overflow-y-auto",
|
|
716
831
|
style: W(r.value)
|
|
717
832
|
}, [
|
|
718
|
-
b(
|
|
833
|
+
b(rn, {
|
|
719
834
|
modelValue: o.value,
|
|
720
835
|
"onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
|
|
721
836
|
open: P(c),
|
|
@@ -732,7 +847,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
732
847
|
}, 8, ["modelValue"]);
|
|
733
848
|
};
|
|
734
849
|
}
|
|
735
|
-
}),
|
|
850
|
+
}), dn = /* @__PURE__ */ E({
|
|
736
851
|
__name: "editor",
|
|
737
852
|
props: {
|
|
738
853
|
modelValue: { required: !0 },
|
|
@@ -744,7 +859,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
744
859
|
},
|
|
745
860
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
746
861
|
setup(t, { expose: s }) {
|
|
747
|
-
const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o =
|
|
862
|
+
const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = St(), i = Vt(), u = Oe(), r = Fe("target"), a = () => {
|
|
748
863
|
const c = JSON.parse(n.value);
|
|
749
864
|
r.value?.load(c);
|
|
750
865
|
};
|
|
@@ -765,7 +880,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
765
880
|
onReady: a
|
|
766
881
|
}, null, 8, ["lock", "scale", "dark", "locale", "version"]));
|
|
767
882
|
}
|
|
768
|
-
}),
|
|
883
|
+
}), mn = { class: "text-subtitle-1" }, fn = /* @__PURE__ */ E({
|
|
769
884
|
__name: "index",
|
|
770
885
|
props: {
|
|
771
886
|
modelValue: { required: !0 },
|
|
@@ -773,56 +888,56 @@ const Yt = /* @__PURE__ */ E({
|
|
|
773
888
|
},
|
|
774
889
|
emits: ["update:modelValue"],
|
|
775
890
|
setup(t) {
|
|
776
|
-
const { t: s } = I(), { sysBarAvail: n } =
|
|
891
|
+
const { t: s } = I(), { sysBarAvail: n } = pe(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = T(!1), r = T(1), a = L(() => {
|
|
777
892
|
let v = 48;
|
|
778
893
|
return n.value && (v += 24), {
|
|
779
894
|
position: "relative",
|
|
780
895
|
background: l.value,
|
|
781
896
|
height: `calc(100% - ${v}px)`
|
|
782
897
|
};
|
|
783
|
-
}), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } =
|
|
898
|
+
}), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = _e(`propTreejsonEditorDlg${$e()}`);
|
|
784
899
|
we(() => {
|
|
785
900
|
c.value = !1;
|
|
786
901
|
});
|
|
787
|
-
const f =
|
|
902
|
+
const f = Fe("editor");
|
|
788
903
|
return oe(c, (v) => {
|
|
789
904
|
v || f.value?.save();
|
|
790
905
|
}), (v, C) => {
|
|
791
|
-
const h = $("v-btn"),
|
|
906
|
+
const h = $("v-btn"), S = $("v-sheet"), D = $("v-spacer"), x = $("v-dialog");
|
|
792
907
|
return _(), B(x, {
|
|
793
908
|
modelValue: P(c),
|
|
794
|
-
"onUpdate:modelValue": C[4] || (C[4] = (
|
|
909
|
+
"onUpdate:modelValue": C[4] || (C[4] = (V) => re(c) ? c.value = V : null),
|
|
795
910
|
attach: "",
|
|
796
911
|
fullscreen: "",
|
|
797
912
|
"no-click-animation": "",
|
|
798
913
|
persistent: "",
|
|
799
914
|
transition: "dialog-bottom-transition",
|
|
800
|
-
onKeydown: C[5] || (C[5] = Le(X((
|
|
915
|
+
onKeydown: C[5] || (C[5] = Le(X((V) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
801
916
|
}, {
|
|
802
|
-
activator: R(({ props:
|
|
803
|
-
b(h, Me(
|
|
917
|
+
activator: R(({ props: V }) => [
|
|
918
|
+
b(h, Me(V, {
|
|
804
919
|
block: "",
|
|
805
920
|
density: "comfortable"
|
|
806
921
|
}), {
|
|
807
922
|
default: R(() => [
|
|
808
|
-
|
|
923
|
+
ke(F(d.value), 1)
|
|
809
924
|
]),
|
|
810
925
|
_: 1
|
|
811
926
|
}, 16)
|
|
812
927
|
]),
|
|
813
928
|
default: R(() => [
|
|
814
|
-
b(
|
|
929
|
+
b(S, {
|
|
815
930
|
color: P(e),
|
|
816
931
|
height: "100%",
|
|
817
932
|
width: "100%"
|
|
818
933
|
}, {
|
|
819
934
|
default: R(() => [
|
|
820
|
-
P(n) ? (_(), B(
|
|
935
|
+
P(n) ? (_(), B(S, {
|
|
821
936
|
key: 0,
|
|
822
937
|
color: P(o),
|
|
823
938
|
height: 24
|
|
824
939
|
}, null, 8, ["color"])) : G("", !0),
|
|
825
|
-
b(
|
|
940
|
+
b(S, {
|
|
826
941
|
class: "d-flex align-center px-2",
|
|
827
942
|
color: P(o),
|
|
828
943
|
height: 48
|
|
@@ -832,9 +947,9 @@ const Yt = /* @__PURE__ */ E({
|
|
|
832
947
|
density: "comfortable",
|
|
833
948
|
icon: "mdi-close",
|
|
834
949
|
variant: "text",
|
|
835
|
-
onClick: C[0] || (C[0] = (
|
|
950
|
+
onClick: C[0] || (C[0] = (V) => c.value = !1)
|
|
836
951
|
}),
|
|
837
|
-
q("span",
|
|
952
|
+
q("span", mn, F(P(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
|
|
838
953
|
b(D)
|
|
839
954
|
]),
|
|
840
955
|
_: 1
|
|
@@ -842,15 +957,15 @@ const Yt = /* @__PURE__ */ E({
|
|
|
842
957
|
q("div", {
|
|
843
958
|
style: W(a.value)
|
|
844
959
|
}, [
|
|
845
|
-
b(
|
|
960
|
+
b(dn, {
|
|
846
961
|
ref_key: "editor",
|
|
847
962
|
ref: f,
|
|
848
963
|
modelValue: i.value,
|
|
849
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
964
|
+
"onUpdate:modelValue": C[1] || (C[1] = (V) => i.value = V),
|
|
850
965
|
lock: u.value,
|
|
851
|
-
"onUpdate:lock": C[2] || (C[2] = (
|
|
966
|
+
"onUpdate:lock": C[2] || (C[2] = (V) => u.value = V),
|
|
852
967
|
scale: r.value,
|
|
853
|
-
"onUpdate:scale": C[3] || (C[3] = (
|
|
968
|
+
"onUpdate:scale": C[3] || (C[3] = (V) => r.value = V)
|
|
854
969
|
}, null, 8, ["modelValue", "lock", "scale"])
|
|
855
970
|
], 4)
|
|
856
971
|
]),
|
|
@@ -861,7 +976,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
861
976
|
}, 8, ["modelValue"]);
|
|
862
977
|
};
|
|
863
978
|
}
|
|
864
|
-
}),
|
|
979
|
+
}), vn = { class: "d-flex justify-space-between align-center my-2" }, pn = { class: "flex-grow-1" }, gn = /* @__PURE__ */ E({
|
|
865
980
|
__name: "index",
|
|
866
981
|
props: /* @__PURE__ */ Z({
|
|
867
982
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -872,12 +987,12 @@ const Yt = /* @__PURE__ */ E({
|
|
|
872
987
|
}),
|
|
873
988
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
874
989
|
setup(t, { emit: s }) {
|
|
875
|
-
const { t: n } = I(), { isMobile: e } =
|
|
990
|
+
const { t: n } = I(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value].types[t.types]), r = T(0), a = L(() => {
|
|
876
991
|
const C = [];
|
|
877
|
-
return u.value?.forEach(({ title: h },
|
|
992
|
+
return u.value?.forEach(({ title: h }, S) => {
|
|
878
993
|
C.push({
|
|
879
994
|
title: n(h),
|
|
880
|
-
value:
|
|
995
|
+
value: S
|
|
881
996
|
});
|
|
882
997
|
}), C;
|
|
883
998
|
});
|
|
@@ -900,14 +1015,14 @@ const Yt = /* @__PURE__ */ E({
|
|
|
900
1015
|
h !== void 0 && (f.value = h);
|
|
901
1016
|
};
|
|
902
1017
|
return Ke(() => {
|
|
903
|
-
d.value?.ui === "pixelInput" ? f.value =
|
|
1018
|
+
d.value?.ui === "pixelInput" ? f.value = wt(l.value) : d.value?.ui === "percentInput" && (f.value = Mt(l.value));
|
|
904
1019
|
}), oe(f, (C) => {
|
|
905
1020
|
d.value?.ui === "pixelInput" ? l.value = C + "px" : d.value?.ui === "percentInput" && (l.value = C + "%");
|
|
906
1021
|
}), (C, h) => {
|
|
907
|
-
const
|
|
908
|
-
return _(), K("div",
|
|
909
|
-
q("div",
|
|
910
|
-
j(b(
|
|
1022
|
+
const S = $("v-select"), D = $("v-number-input"), x = $("v-btn"), V = ee("ripple");
|
|
1023
|
+
return _(), K("div", vn, [
|
|
1024
|
+
q("div", pn, [
|
|
1025
|
+
j(b(S, {
|
|
911
1026
|
modelValue: r.value,
|
|
912
1027
|
"onUpdate:modelValue": [
|
|
913
1028
|
h[0] || (h[0] = (U) => r.value = U),
|
|
@@ -919,7 +1034,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
919
1034
|
"single-line": ""
|
|
920
1035
|
}, null, 8, ["modelValue", "items"]), [
|
|
921
1036
|
[
|
|
922
|
-
|
|
1037
|
+
V,
|
|
923
1038
|
void 0,
|
|
924
1039
|
void 0,
|
|
925
1040
|
{ stop: !0 }
|
|
@@ -940,7 +1055,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
940
1055
|
"onUpdate:focused": v
|
|
941
1056
|
}, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
|
|
942
1057
|
[
|
|
943
|
-
|
|
1058
|
+
V,
|
|
944
1059
|
void 0,
|
|
945
1060
|
void 0,
|
|
946
1061
|
{ stop: !0 }
|
|
@@ -958,7 +1073,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
958
1073
|
]);
|
|
959
1074
|
};
|
|
960
1075
|
}
|
|
961
|
-
}),
|
|
1076
|
+
}), yn = { class: "d-flex justify-space-between align-center" }, hn = /* @__PURE__ */ E({
|
|
962
1077
|
__name: "index",
|
|
963
1078
|
props: /* @__PURE__ */ Z({
|
|
964
1079
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -974,7 +1089,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
974
1089
|
}),
|
|
975
1090
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
976
1091
|
setup(t, { emit: s }) {
|
|
977
|
-
const { isMobile: n } =
|
|
1092
|
+
const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
|
|
978
1093
|
if (!i || t.readonly || !n())
|
|
979
1094
|
return;
|
|
980
1095
|
const u = await ze({
|
|
@@ -989,7 +1104,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
989
1104
|
};
|
|
990
1105
|
return (i, u) => {
|
|
991
1106
|
const r = $("v-number-input"), a = $("v-btn"), d = ee("ripple");
|
|
992
|
-
return _(), K("div",
|
|
1107
|
+
return _(), K("div", yn, [
|
|
993
1108
|
j(b(r, {
|
|
994
1109
|
modelValue: e.value,
|
|
995
1110
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
@@ -1022,7 +1137,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1022
1137
|
]);
|
|
1023
1138
|
};
|
|
1024
1139
|
}
|
|
1025
|
-
}),
|
|
1140
|
+
}), kn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PURE__ */ E({
|
|
1026
1141
|
__name: "index",
|
|
1027
1142
|
props: /* @__PURE__ */ Z({
|
|
1028
1143
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1036,13 +1151,13 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1036
1151
|
setup(t, { emit: s }) {
|
|
1037
1152
|
const { t: n } = I(), e = z(t, "modelValue"), l = s, o = Oe(), i = L(() => {
|
|
1038
1153
|
const u = [];
|
|
1039
|
-
return Ne[o.value]
|
|
1040
|
-
u.push({ title: n(
|
|
1154
|
+
return Ne[o.value].items[t.items].forEach(({ title: a, value: d }) => {
|
|
1155
|
+
u.push({ title: n(a), value: d });
|
|
1041
1156
|
}), u;
|
|
1042
1157
|
});
|
|
1043
1158
|
return (u, r) => {
|
|
1044
1159
|
const a = $("v-select"), d = $("v-btn"), c = ee("ripple");
|
|
1045
|
-
return _(), K("div",
|
|
1160
|
+
return _(), K("div", kn, [
|
|
1046
1161
|
j(b(a, {
|
|
1047
1162
|
modelValue: e.value,
|
|
1048
1163
|
"onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
|
|
@@ -1070,7 +1185,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1070
1185
|
]);
|
|
1071
1186
|
};
|
|
1072
1187
|
}
|
|
1073
|
-
}),
|
|
1188
|
+
}), xn = { class: "text-subtitle-2 ml-1" }, Sn = { class: "text-caption text-grey ml-1" }, Vn = /* @__PURE__ */ E({
|
|
1074
1189
|
__name: "group",
|
|
1075
1190
|
props: {
|
|
1076
1191
|
id: {},
|
|
@@ -1099,14 +1214,14 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1099
1214
|
icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
1100
1215
|
size: "small"
|
|
1101
1216
|
}, null, 8, ["icon"]),
|
|
1102
|
-
q("span",
|
|
1103
|
-
q("span",
|
|
1217
|
+
q("span", xn, F(l.title), 1),
|
|
1218
|
+
q("span", Sn, F(l.count), 1)
|
|
1104
1219
|
], 36)), [
|
|
1105
1220
|
[c]
|
|
1106
1221
|
]);
|
|
1107
1222
|
};
|
|
1108
1223
|
}
|
|
1109
|
-
}),
|
|
1224
|
+
}), Cn = { class: "text-subtitle-1 ml-6" }, Un = /* @__PURE__ */ E({
|
|
1110
1225
|
__name: "item",
|
|
1111
1226
|
props: {
|
|
1112
1227
|
id: {},
|
|
@@ -1129,16 +1244,16 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1129
1244
|
onMouseout: a[1] || (a[1] = (c) => i.value = !1),
|
|
1130
1245
|
onMouseover: a[2] || (a[2] = (c) => i.value = !0)
|
|
1131
1246
|
}, [
|
|
1132
|
-
q("span",
|
|
1247
|
+
q("span", Cn, F(l.title), 1)
|
|
1133
1248
|
], 36)), [
|
|
1134
1249
|
[d]
|
|
1135
1250
|
]);
|
|
1136
1251
|
};
|
|
1137
1252
|
}
|
|
1138
|
-
}),
|
|
1253
|
+
}), $n = { key: 0 }, wn = {
|
|
1139
1254
|
key: 1,
|
|
1140
1255
|
class: "text-body-2 text-grey ml-3"
|
|
1141
|
-
},
|
|
1256
|
+
}, Mn = /* @__PURE__ */ E({
|
|
1142
1257
|
__name: "index",
|
|
1143
1258
|
props: {
|
|
1144
1259
|
modelValue: {},
|
|
@@ -1149,16 +1264,16 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1149
1264
|
emits: ["update:modelValue", "update:open"],
|
|
1150
1265
|
setup(t) {
|
|
1151
1266
|
const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = it(), o = (u) => {
|
|
1152
|
-
const r =
|
|
1153
|
-
r &&
|
|
1267
|
+
const r = ve(l, u);
|
|
1268
|
+
r && We(l, u, !r.collapse);
|
|
1154
1269
|
}, i = (u) => {
|
|
1155
1270
|
n.value = u, e.value = !1;
|
|
1156
1271
|
};
|
|
1157
|
-
return (u, r) => P(l).length > 0 ? (_(), K("div",
|
|
1272
|
+
return (u, r) => P(l).length > 0 ? (_(), K("div", $n, [
|
|
1158
1273
|
(_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
|
|
1159
1274
|
key: a.id
|
|
1160
1275
|
}, [
|
|
1161
|
-
a.type === 0 ? (_(), B(
|
|
1276
|
+
a.type === 0 ? (_(), B(Vn, {
|
|
1162
1277
|
key: 0,
|
|
1163
1278
|
id: a.id,
|
|
1164
1279
|
collapse: a.collapse,
|
|
@@ -1166,16 +1281,16 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1166
1281
|
title: a.name,
|
|
1167
1282
|
onXClick: o
|
|
1168
1283
|
}, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
|
|
1169
|
-
a.type === 1 && a.show ? (_(), B(
|
|
1284
|
+
a.type === 1 && a.show ? (_(), B(Un, {
|
|
1170
1285
|
key: 1,
|
|
1171
1286
|
id: a.id,
|
|
1172
1287
|
title: a.name,
|
|
1173
1288
|
onXClick: i
|
|
1174
1289
|
}, null, 8, ["id", "title"])) : G("", !0)
|
|
1175
1290
|
], 64))), 128))
|
|
1176
|
-
])) : (_(), K("div",
|
|
1291
|
+
])) : (_(), K("div", wn, F(P(s)("x-prop-tree.noSlot")), 1));
|
|
1177
1292
|
}
|
|
1178
|
-
}),
|
|
1293
|
+
}), bn = { class: "text-subtitle-1 ml-3" }, Pn = /* @__PURE__ */ E({
|
|
1179
1294
|
__name: "index",
|
|
1180
1295
|
props: {
|
|
1181
1296
|
modelValue: {},
|
|
@@ -1183,7 +1298,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1183
1298
|
},
|
|
1184
1299
|
emits: ["update:modelValue"],
|
|
1185
1300
|
setup(t) {
|
|
1186
|
-
const { t: s } = I(), n =
|
|
1301
|
+
const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
|
|
1187
1302
|
let f = "100%";
|
|
1188
1303
|
return n.mdAndUp.value && (f = "400px"), {
|
|
1189
1304
|
background: l.value,
|
|
@@ -1201,13 +1316,13 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1201
1316
|
})), d = L(() => {
|
|
1202
1317
|
if (!o.value)
|
|
1203
1318
|
return s("x-runtime-lib.notSet");
|
|
1204
|
-
const f =
|
|
1319
|
+
const f = ve(i, o.value);
|
|
1205
1320
|
return f ? f.name : s("x-runtime-lib.slotNotAvail");
|
|
1206
|
-
}), { open: c } =
|
|
1321
|
+
}), { open: c } = _e(`propTreeSlotSelectDlg${$e()}`);
|
|
1207
1322
|
return we(() => {
|
|
1208
1323
|
c.value = !1;
|
|
1209
1324
|
}), (f, v) => {
|
|
1210
|
-
const C = $("v-btn"), h = $("v-sheet"),
|
|
1325
|
+
const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
|
|
1211
1326
|
return _(), B(D, {
|
|
1212
1327
|
modelValue: P(c),
|
|
1213
1328
|
"onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
|
|
@@ -1223,7 +1338,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1223
1338
|
density: "comfortable"
|
|
1224
1339
|
}), {
|
|
1225
1340
|
default: R(() => [
|
|
1226
|
-
|
|
1341
|
+
ke(F(d.value), 1)
|
|
1227
1342
|
]),
|
|
1228
1343
|
_: 1
|
|
1229
1344
|
}, 16)
|
|
@@ -1249,11 +1364,11 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1249
1364
|
height: 48
|
|
1250
1365
|
}, {
|
|
1251
1366
|
default: R(() => [
|
|
1252
|
-
b(
|
|
1367
|
+
b(S, {
|
|
1253
1368
|
icon: "mdi-close",
|
|
1254
1369
|
onClick: v[0] || (v[0] = (x) => c.value = !1)
|
|
1255
1370
|
}),
|
|
1256
|
-
q("span",
|
|
1371
|
+
q("span", bn, F(P(s)("x-prop-tree.dlg.slotSelect.title")), 1)
|
|
1257
1372
|
]),
|
|
1258
1373
|
_: 1
|
|
1259
1374
|
}),
|
|
@@ -1261,7 +1376,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1261
1376
|
class: "overflow-y-auto",
|
|
1262
1377
|
style: W(r.value)
|
|
1263
1378
|
}, [
|
|
1264
|
-
b(
|
|
1379
|
+
b(Mn, {
|
|
1265
1380
|
modelValue: o.value,
|
|
1266
1381
|
"onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
|
|
1267
1382
|
open: P(c),
|
|
@@ -1278,7 +1393,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1278
1393
|
}, 8, ["modelValue"]);
|
|
1279
1394
|
};
|
|
1280
1395
|
}
|
|
1281
|
-
}),
|
|
1396
|
+
}), Dn = { class: "d-flex justify-space-between align-center" }, An = /* @__PURE__ */ E({
|
|
1282
1397
|
__name: "index",
|
|
1283
1398
|
props: /* @__PURE__ */ Z({
|
|
1284
1399
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1289,10 +1404,10 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1289
1404
|
}),
|
|
1290
1405
|
emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
|
|
1291
1406
|
setup(t, { emit: s }) {
|
|
1292
|
-
const { isMobile: n } =
|
|
1407
|
+
const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
|
|
1293
1408
|
if (!i || t.readonly || !n())
|
|
1294
1409
|
return;
|
|
1295
|
-
const u = await
|
|
1410
|
+
const u = await Ct({
|
|
1296
1411
|
title: "",
|
|
1297
1412
|
value: e.value
|
|
1298
1413
|
});
|
|
@@ -1300,7 +1415,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1300
1415
|
};
|
|
1301
1416
|
return (i, u) => {
|
|
1302
1417
|
const r = $("v-text-field"), a = $("v-btn"), d = ee("ripple");
|
|
1303
|
-
return _(), K("div",
|
|
1418
|
+
return _(), K("div", Dn, [
|
|
1304
1419
|
j(b(r, {
|
|
1305
1420
|
modelValue: e.value,
|
|
1306
1421
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
@@ -1328,7 +1443,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1328
1443
|
]);
|
|
1329
1444
|
};
|
|
1330
1445
|
}
|
|
1331
|
-
}),
|
|
1446
|
+
}), Tn = { class: "d-flex justify-space-between align-center" }, Ln = /* @__PURE__ */ E({
|
|
1332
1447
|
__name: "index",
|
|
1333
1448
|
props: /* @__PURE__ */ Z({
|
|
1334
1449
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1342,7 +1457,7 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1342
1457
|
const n = z(t, "modelValue"), e = s;
|
|
1343
1458
|
return (l, o) => {
|
|
1344
1459
|
const i = $("v-switch"), u = $("v-btn");
|
|
1345
|
-
return _(), K("div",
|
|
1460
|
+
return _(), K("div", Tn, [
|
|
1346
1461
|
b(i, {
|
|
1347
1462
|
modelValue: n.value,
|
|
1348
1463
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
|
|
@@ -1364,8 +1479,8 @@ const Yt = /* @__PURE__ */ E({
|
|
|
1364
1479
|
};
|
|
1365
1480
|
}
|
|
1366
1481
|
});
|
|
1367
|
-
function
|
|
1368
|
-
return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), k("div", "renderUiColorPicker property ui must be colorPicker")) : k(
|
|
1482
|
+
function Nn(t) {
|
|
1483
|
+
return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), k("div", "renderUiColorPicker property ui must be colorPicker")) : k(It, {
|
|
1369
1484
|
modelValue: ne(
|
|
1370
1485
|
n,
|
|
1371
1486
|
e,
|
|
@@ -1392,8 +1507,8 @@ function Tn(t) {
|
|
|
1392
1507
|
readonly: e.readonly
|
|
1393
1508
|
}) };
|
|
1394
1509
|
}
|
|
1395
|
-
function
|
|
1396
|
-
return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), k("div", "renderUiCompSelect property ui must be compSelect")) : k(
|
|
1510
|
+
function Bn(t) {
|
|
1511
|
+
return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), k("div", "renderUiCompSelect property ui must be compSelect")) : k(cn, {
|
|
1397
1512
|
modelValue: ne(
|
|
1398
1513
|
n,
|
|
1399
1514
|
e,
|
|
@@ -1415,7 +1530,7 @@ function Ln(t) {
|
|
|
1415
1530
|
}
|
|
1416
1531
|
}) };
|
|
1417
1532
|
}
|
|
1418
|
-
function
|
|
1533
|
+
function On(t) {
|
|
1419
1534
|
return { renderUiDummy: (n, e, l, o, i) => {
|
|
1420
1535
|
if (e.ui !== "dummy") {
|
|
1421
1536
|
console.assert(!1, "renderUiDummy property ui must be dummy");
|
|
@@ -1424,8 +1539,8 @@ function Nn(t) {
|
|
|
1424
1539
|
ne(n, e, l, t, o, i);
|
|
1425
1540
|
} };
|
|
1426
1541
|
}
|
|
1427
|
-
function
|
|
1428
|
-
return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? k("div", "renderUijsonEditor property ui must be jsonEditor") : k(
|
|
1542
|
+
function qn(t) {
|
|
1543
|
+
return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? k("div", "renderUijsonEditor property ui must be jsonEditor") : k(fn, {
|
|
1429
1544
|
modelValue: ne(
|
|
1430
1545
|
n,
|
|
1431
1546
|
e,
|
|
@@ -1447,8 +1562,8 @@ function Bn(t) {
|
|
|
1447
1562
|
}
|
|
1448
1563
|
}) };
|
|
1449
1564
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), k("div", "renderUiMultiTypes property ui must be multiTypes")) : k(
|
|
1565
|
+
function Kn(t) {
|
|
1566
|
+
return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), k("div", "renderUiMultiTypes property ui must be multiTypes")) : k(gn, {
|
|
1452
1567
|
modelValue: ne(
|
|
1453
1568
|
n,
|
|
1454
1569
|
e,
|
|
@@ -1475,8 +1590,8 @@ function On(t) {
|
|
|
1475
1590
|
types: e.types
|
|
1476
1591
|
}) };
|
|
1477
1592
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), k("div", "renderUiNumInput property ui must be numInput")) : k(
|
|
1593
|
+
function Rn(t) {
|
|
1594
|
+
return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), k("div", "renderUiNumInput property ui must be numInput")) : k(hn, {
|
|
1480
1595
|
modelValue: ne(
|
|
1481
1596
|
n,
|
|
1482
1597
|
e,
|
|
@@ -1507,7 +1622,7 @@ function qn(t) {
|
|
|
1507
1622
|
readonly: e.readonly
|
|
1508
1623
|
}) };
|
|
1509
1624
|
}
|
|
1510
|
-
const
|
|
1625
|
+
const En = /* @__PURE__ */ E({
|
|
1511
1626
|
__name: "index",
|
|
1512
1627
|
props: {
|
|
1513
1628
|
minHeight: {}
|
|
@@ -1539,13 +1654,13 @@ const Kn = /* @__PURE__ */ E({
|
|
|
1539
1654
|
};
|
|
1540
1655
|
}
|
|
1541
1656
|
});
|
|
1542
|
-
function
|
|
1657
|
+
function Jn(t, s, n) {
|
|
1543
1658
|
const { t: e } = I();
|
|
1544
1659
|
return { renderProperty: (o, i, u) => {
|
|
1545
1660
|
const r = o[o.length - 1];
|
|
1546
1661
|
let d = typeof r == "number" ? `[${r + 1}]` : e(i.name);
|
|
1547
1662
|
return me(t.value, o) && (d += " *"), k(
|
|
1548
|
-
|
|
1663
|
+
En,
|
|
1549
1664
|
{
|
|
1550
1665
|
minHeight: s.value,
|
|
1551
1666
|
onMenu: (c, f) => {
|
|
@@ -1562,8 +1677,8 @@ function Rn(t, s, n) {
|
|
|
1562
1677
|
);
|
|
1563
1678
|
} };
|
|
1564
1679
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), k("div", "renderUiSelect property ui must be select")) : k(
|
|
1680
|
+
function Hn(t) {
|
|
1681
|
+
return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), k("div", "renderUiSelect property ui must be select")) : k(_n, {
|
|
1567
1682
|
modelValue: ne(
|
|
1568
1683
|
n,
|
|
1569
1684
|
e,
|
|
@@ -1591,8 +1706,8 @@ function En(t) {
|
|
|
1591
1706
|
readonly: e.readonly
|
|
1592
1707
|
}) };
|
|
1593
1708
|
}
|
|
1594
|
-
function
|
|
1595
|
-
return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), k("div", "renderUiSlotSelect property ui must be slotSelect")) : k(
|
|
1709
|
+
function Xn(t) {
|
|
1710
|
+
return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), k("div", "renderUiSlotSelect property ui must be slotSelect")) : k(Pn, {
|
|
1596
1711
|
modelValue: ne(
|
|
1597
1712
|
n,
|
|
1598
1713
|
e,
|
|
@@ -1614,8 +1729,8 @@ function Jn(t) {
|
|
|
1614
1729
|
}
|
|
1615
1730
|
}) };
|
|
1616
1731
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), k("div", "renderUiStrInput property ui must be strInput")) : k(
|
|
1732
|
+
function Fn(t) {
|
|
1733
|
+
return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), k("div", "renderUiStrInput property ui must be strInput")) : k(An, {
|
|
1619
1734
|
modelValue: e.static ? e.value : ne(
|
|
1620
1735
|
n,
|
|
1621
1736
|
e,
|
|
@@ -1642,8 +1757,8 @@ function Hn(t) {
|
|
|
1642
1757
|
readonly: e.static || e.readonly
|
|
1643
1758
|
}) };
|
|
1644
1759
|
}
|
|
1645
|
-
function
|
|
1646
|
-
return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), k("div", "renderUiSwitch property ui must be switch")) : k(
|
|
1760
|
+
function zn(t) {
|
|
1761
|
+
return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), k("div", "renderUiSwitch property ui must be switch")) : k(Ln, {
|
|
1647
1762
|
modelValue: ne(
|
|
1648
1763
|
n,
|
|
1649
1764
|
e,
|
|
@@ -1670,121 +1785,6 @@ function Xn(t) {
|
|
|
1670
1785
|
readonly: e.readonly
|
|
1671
1786
|
}) };
|
|
1672
1787
|
}
|
|
1673
|
-
function Fn() {
|
|
1674
|
-
const t = T([]);
|
|
1675
|
-
zt(t);
|
|
1676
|
-
const s = () => {
|
|
1677
|
-
const { activeApp: o, depends: i } = Ze.app, u = [];
|
|
1678
|
-
for (const { id: r, name: a, position: d } of o.compGroups) {
|
|
1679
|
-
const c = t.value.find((f) => f.id === r);
|
|
1680
|
-
u.push({
|
|
1681
|
-
id: r,
|
|
1682
|
-
type: 0,
|
|
1683
|
-
name: a,
|
|
1684
|
-
position: d,
|
|
1685
|
-
collapse: c?.collapse ?? !0
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
for (const { id: r, groupId: a, name: d, position: c } of o.comps)
|
|
1689
|
-
i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
|
|
1690
|
-
We(u, !0), t.value = u;
|
|
1691
|
-
};
|
|
1692
|
-
let n;
|
|
1693
|
-
const e = () => {
|
|
1694
|
-
clearTimeout(n), n = window.setTimeout(() => {
|
|
1695
|
-
s(), n && e();
|
|
1696
|
-
}, 1e3);
|
|
1697
|
-
}, l = () => {
|
|
1698
|
-
clearTimeout(n), n = void 0;
|
|
1699
|
-
};
|
|
1700
|
-
Xe(() => {
|
|
1701
|
-
e();
|
|
1702
|
-
}), Fe(() => {
|
|
1703
|
-
l();
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
function zn(t, s, n) {
|
|
1707
|
-
const { i18n: e } = Ct, l = T([]);
|
|
1708
|
-
Gt(l);
|
|
1709
|
-
const o = () => {
|
|
1710
|
-
if (!t.value || !s.value || !n.value)
|
|
1711
|
-
return;
|
|
1712
|
-
const a = Ne[t.value];
|
|
1713
|
-
if (!a) {
|
|
1714
|
-
console.assert(!1, `invalid version=${t.value}`);
|
|
1715
|
-
return;
|
|
1716
|
-
}
|
|
1717
|
-
const d = wt(s.value, n.value), c = [];
|
|
1718
|
-
for (let h = 0; h < a.groups[d].length; h++) {
|
|
1719
|
-
const V = a.groups[d][h], D = _e(l, V.key);
|
|
1720
|
-
c.push({
|
|
1721
|
-
id: V.key,
|
|
1722
|
-
type: 0,
|
|
1723
|
-
name: e.global.t(V.name),
|
|
1724
|
-
position: h,
|
|
1725
|
-
collapse: D?.collapse ?? !0,
|
|
1726
|
-
count: 0
|
|
1727
|
-
});
|
|
1728
|
-
let x = 0;
|
|
1729
|
-
for (const S of V.items) {
|
|
1730
|
-
const U = Mt[S];
|
|
1731
|
-
if (U && !U.internal && U.slots)
|
|
1732
|
-
for (const O of U.slots) {
|
|
1733
|
-
const Q = Re("elementSlot", U.key, O.key), pe = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
|
|
1734
|
-
c.push({
|
|
1735
|
-
id: Q,
|
|
1736
|
-
type: 1,
|
|
1737
|
-
name: pe,
|
|
1738
|
-
position: x++,
|
|
1739
|
-
group: V.key
|
|
1740
|
-
});
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
const { activeApp: f, depends: v } = Ze.app;
|
|
1745
|
-
for (const { id: h, name: V, position: D } of f.compGroups) {
|
|
1746
|
-
const x = l.value.find((S) => S.id);
|
|
1747
|
-
c.push({
|
|
1748
|
-
id: h,
|
|
1749
|
-
type: 0,
|
|
1750
|
-
name: V,
|
|
1751
|
-
position: D,
|
|
1752
|
-
collapse: x?.collapse ?? !0
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
let C = 0;
|
|
1756
|
-
for (const h of f.comps) {
|
|
1757
|
-
const V = v[h.id];
|
|
1758
|
-
if (V && V.meta.slots)
|
|
1759
|
-
for (const D of V.meta.slots) {
|
|
1760
|
-
const x = Re("customSlot", h.id, D.id), S = `${h.name} / ${D.name}`;
|
|
1761
|
-
c.push({
|
|
1762
|
-
id: x,
|
|
1763
|
-
type: 1,
|
|
1764
|
-
name: S,
|
|
1765
|
-
position: C++,
|
|
1766
|
-
group: h.groupId
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
We(c, !0), l.value = c;
|
|
1771
|
-
};
|
|
1772
|
-
let i;
|
|
1773
|
-
const u = () => {
|
|
1774
|
-
clearTimeout(i), i = window.setTimeout(() => {
|
|
1775
|
-
o(), i && u();
|
|
1776
|
-
}, 1e3);
|
|
1777
|
-
}, r = () => {
|
|
1778
|
-
clearTimeout(i), i = void 0;
|
|
1779
|
-
};
|
|
1780
|
-
Xe(() => {
|
|
1781
|
-
u();
|
|
1782
|
-
}), Fe(() => {
|
|
1783
|
-
r();
|
|
1784
|
-
}), oe([t, s, n], () => {
|
|
1785
|
-
o(), u();
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
1788
|
const Gn = /* @__PURE__ */ E({
|
|
1789
1789
|
__name: "index",
|
|
1790
1790
|
props: {
|
|
@@ -1842,18 +1842,18 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1842
1842
|
h.value = l.config;
|
|
1843
1843
|
}
|
|
1844
1844
|
);
|
|
1845
|
-
const
|
|
1846
|
-
Rt(
|
|
1845
|
+
const S = T(l.object);
|
|
1846
|
+
Rt(S), oe(
|
|
1847
1847
|
() => l.object,
|
|
1848
1848
|
() => {
|
|
1849
|
-
|
|
1849
|
+
S.value = l.object;
|
|
1850
1850
|
}
|
|
1851
|
-
), Jt(d), Xt(c),
|
|
1852
|
-
const { renderProperty: D } =
|
|
1851
|
+
), Jt(d), Xt(c), Qt(), Zt(f, v, C);
|
|
1852
|
+
const { renderProperty: D } = Jn(
|
|
1853
1853
|
d,
|
|
1854
1854
|
u,
|
|
1855
1855
|
r
|
|
1856
|
-
), { renderUiDummy: x } =
|
|
1856
|
+
), { renderUiDummy: x } = On(c), { renderUiStrInput: V } = Fn(c), { renderUiNumInput: U } = Rn(c), { renderUiSwitch: O } = zn(c), { renderUiSelect: Q } = Hn(c), { renderUiColorPicker: ge } = Nn(c), { renderUiJsonEditor: ut } = qn(c), { renderUiMultiTypes: rt } = Kn(c), { renderUiCompSelect: at } = Bn(c), { renderUiSlotSelect: ct } = Xn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
|
|
1857
1857
|
p,
|
|
1858
1858
|
m,
|
|
1859
1859
|
y,
|
|
@@ -1885,7 +1885,7 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1885
1885
|
w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[m.key])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
|
|
1886
1886
|
let ie = n(m.name);
|
|
1887
1887
|
g.collapse && me(d.value, p) && (ie += " *");
|
|
1888
|
-
const
|
|
1888
|
+
const ye = k(Ue, {
|
|
1889
1889
|
title: ie,
|
|
1890
1890
|
collapse: g.collapse,
|
|
1891
1891
|
hasCreate: !0,
|
|
@@ -1987,7 +1987,7 @@ const Gn = /* @__PURE__ */ E({
|
|
|
1987
1987
|
},
|
|
1988
1988
|
(() => {
|
|
1989
1989
|
const M = [];
|
|
1990
|
-
return M.push(
|
|
1990
|
+
return M.push(ye), g.collapse || M.push(Y), M;
|
|
1991
1991
|
})()
|
|
1992
1992
|
);
|
|
1993
1993
|
}, mt = (p, m, y, g, w, A) => {
|
|
@@ -2012,7 +2012,7 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2012
2012
|
onDelete: () => {
|
|
2013
2013
|
w === void 0 || A || (y.splice(w, 1), c(p.slice(0, -1), y));
|
|
2014
2014
|
}
|
|
2015
|
-
}),
|
|
2015
|
+
}), ye = k(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
2018
|
style: {
|
|
@@ -2049,7 +2049,7 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2049
2049
|
},
|
|
2050
2050
|
(() => {
|
|
2051
2051
|
const Y = [];
|
|
2052
|
-
return Y.push(ie), g.collapse || Y.push(
|
|
2052
|
+
return Y.push(ie), g.collapse || Y.push(ye), Y;
|
|
2053
2053
|
})()
|
|
2054
2054
|
);
|
|
2055
2055
|
}, ft = (p, m, y, g, w, A) => {
|
|
@@ -2063,7 +2063,7 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2063
2063
|
w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[w])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
|
|
2064
2064
|
let ie = n(m.name);
|
|
2065
2065
|
g.collapse && me(d.value, p) && (ie += " *");
|
|
2066
|
-
const
|
|
2066
|
+
const ye = k(Ue, {
|
|
2067
2067
|
title: ie,
|
|
2068
2068
|
collapse: g.collapse,
|
|
2069
2069
|
hasCreate: !0,
|
|
@@ -2101,14 +2101,14 @@ const Gn = /* @__PURE__ */ E({
|
|
|
2101
2101
|
},
|
|
2102
2102
|
(() => {
|
|
2103
2103
|
const M = [];
|
|
2104
|
-
return M.push(
|
|
2104
|
+
return M.push(ye), g.collapse || M.push(Y), M;
|
|
2105
2105
|
})()
|
|
2106
2106
|
);
|
|
2107
2107
|
}, vt = (p, m, y, g, w) => {
|
|
2108
2108
|
if (!m.ui)
|
|
2109
2109
|
return console.assert(!1), k("div", "renderLeafScalar property ui must be valid");
|
|
2110
2110
|
let A;
|
|
2111
|
-
return m.ui === "dummy" ? A = x(p, m, y, g, w) : m.ui === "strInput" ? A =
|
|
2111
|
+
return m.ui === "dummy" ? A = x(p, m, y, g, w) : m.ui === "strInput" ? A = V(p, m, y, g, w) : m.ui === "numInput" ? A = U(p, m, y, g, w) : m.ui === "switch" ? A = O(p, m, y, g, w) : m.ui === "select" ? A = Q(p, m, y, g, w) : m.ui === "colorPicker" ? A = ge(p, m, y, g, w) : m.ui === "jsonEditor" ? A = ut(p, m, y, g, w) : m.ui === "multiTypes" ? A = rt(p, m, y, g, w) : m.ui === "compSelect" ? A = at(p, m, y, g, w) : m.ui === "slotSelect" ? A = ct(p, m, y, g, w) : console.assert(!1, "renderLeafScalar not implemented"), A ? D(p, m, A) : k("div");
|
|
2112
2112
|
}, pt = () => k(
|
|
2113
2113
|
"div",
|
|
2114
2114
|
{
|