x-prop-tree 0.8.1 → 0.8.3
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 +170 -181
- package/package.json +2 -2
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.kbufw3jy.js";
|
|
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 ee, resolveComponent as D, resolveDirective as O, toDisplayString as k, unref as A, useId as j, useModel as M, useTemplateRef as te, watch as N, watchEffect as P, withCtx as F, withDirectives as I, withKeys as
|
|
3
|
-
import { getElement as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { eventBus as
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
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 ee, resolveComponent as D, resolveDirective as O, toDisplayString as k, unref as A, useId as j, useModel as M, useTemplateRef as te, watch as N, watchEffect as P, withCtx as F, withDirectives as I, withKeys as L, withModifiers as R } from "vue";
|
|
3
|
+
import { getElement as ne, getPropertyDefault as z, getPropertyDefaultArray as B, getTag as re, isHexColor as ie, isThemeColor as ae, makeSlotId as oe, parsePercent as se, parsePixel as ce, pkgs as le, themeColors as ue } from "x-runtime-lib";
|
|
4
|
+
import { useI18n as V } from "vue-i18n";
|
|
5
|
+
import { eventBus as H, globalObjects as de, injectDark as fe, injectLocale as pe, openNumberDlg as me, openPromptDlg as he, useColor as U, useSystem as W, useViewStack as G } from "x-essential-lib";
|
|
6
|
+
import { globalState as ge } from "x-state-lib";
|
|
7
|
+
import { useDisplay as _e } from "vuetify";
|
|
8
|
+
import { XBlockly as ve } from "x-block-lib";
|
|
9
9
|
//#region src/utils/collapseState.ts
|
|
10
|
-
function
|
|
10
|
+
function K(e, t) {
|
|
11
11
|
let n = e.value;
|
|
12
12
|
for (let e of t) {
|
|
13
13
|
if (!n.children[e]) return !0;
|
|
@@ -15,7 +15,7 @@ function G(e, t) {
|
|
|
15
15
|
}
|
|
16
16
|
return n.collapse;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function q(e, t, n) {
|
|
19
19
|
let r = e.value;
|
|
20
20
|
for (let e of t) r.children[e] || (r.children[e] = {
|
|
21
21
|
collapse: !0,
|
|
@@ -25,7 +25,7 @@ function K(e, t, n) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/utils/common.ts
|
|
28
|
-
function
|
|
28
|
+
function J(e, t) {
|
|
29
29
|
let n = {
|
|
30
30
|
key: "",
|
|
31
31
|
name: "",
|
|
@@ -38,7 +38,7 @@ function q(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Y(e, t) {
|
|
42
42
|
let n = e;
|
|
43
43
|
for (let e of t) {
|
|
44
44
|
if (!n) throw Error("target must be valid");
|
|
@@ -46,42 +46,42 @@ function J(e, t) {
|
|
|
46
46
|
}
|
|
47
47
|
return n;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ye(e, n, r, i, a, o) {
|
|
50
50
|
if (i !== void 0 && !a) {
|
|
51
51
|
if (!(r[i] instanceof Array)) {
|
|
52
|
-
let a =
|
|
52
|
+
let a = B(n);
|
|
53
53
|
t(a, r[i]) || (r[i] = a, o(e, r[i]));
|
|
54
54
|
}
|
|
55
55
|
return r[i];
|
|
56
56
|
} else {
|
|
57
57
|
if (!(r[n.key] instanceof Array)) {
|
|
58
|
-
let i =
|
|
58
|
+
let i = B(n);
|
|
59
59
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
60
60
|
}
|
|
61
61
|
return r[n.key];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function X(e, n, r, i, a, o) {
|
|
65
65
|
if (i !== void 0 && !a) {
|
|
66
66
|
if (r[i] === void 0) {
|
|
67
|
-
let a =
|
|
67
|
+
let a = z(n);
|
|
68
68
|
t(a, r[i]) || (r[i] = a, o(e, r[i]));
|
|
69
69
|
}
|
|
70
70
|
return r[i];
|
|
71
71
|
} else {
|
|
72
72
|
if (r[n.key] === void 0) {
|
|
73
|
-
let i =
|
|
73
|
+
let i = z(n);
|
|
74
74
|
t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
|
|
75
75
|
}
|
|
76
76
|
return r[n.key];
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Z(e, t, n, r, i, a, o) {
|
|
80
80
|
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]));
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
84
|
+
var be = (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,12 +90,12 @@ var xe = (e, t) => {
|
|
|
90
90
|
return !0;
|
|
91
91
|
};
|
|
92
92
|
return n(e, t);
|
|
93
|
-
},
|
|
94
|
-
function
|
|
95
|
-
return
|
|
93
|
+
}, xe = [["basic", "id"], ["basic", "name"]];
|
|
94
|
+
function Se(e) {
|
|
95
|
+
return xe.find((n) => t(e, n));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)),
|
|
97
|
+
function Ce(t, n, r, i, a, o) {
|
|
98
|
+
return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)), Se(t) ? (i.change = !1, i.warning = !1, {
|
|
99
99
|
change: i.change,
|
|
100
100
|
warning: i.warning
|
|
101
101
|
}) : n.ui ? n.array && i.children ? Ee(t, n, r, i, a, o) : De(n, r, i, a, o) : n.array ? we(t, n, r, i, a, o) : Te(t, n, r, i, a, o);
|
|
@@ -121,11 +121,11 @@ function we(e, n, r, i, a, o) {
|
|
|
121
121
|
warning: !1,
|
|
122
122
|
children: {}
|
|
123
123
|
};
|
|
124
|
-
let { change: n, warning: o } =
|
|
124
|
+
let { change: n, warning: o } = Ce(e, a, s[t], r.children[a.key], t, !0);
|
|
125
125
|
!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);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
return i.change ||= !t(s,
|
|
128
|
+
return i.change ||= !t(s, B(n)), {
|
|
129
129
|
change: i.change,
|
|
130
130
|
warning: i.warning
|
|
131
131
|
};
|
|
@@ -145,7 +145,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
145
145
|
warning: !1,
|
|
146
146
|
children: {}
|
|
147
147
|
};
|
|
148
|
-
let { change: a, warning: s } =
|
|
148
|
+
let { change: a, warning: s } = Ce(e, i, o, r.children[i.key], void 0, !1);
|
|
149
149
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
150
150
|
}
|
|
151
151
|
return {
|
|
@@ -167,10 +167,10 @@ function Ee(e, n, r, i, a, o) {
|
|
|
167
167
|
warning: !1,
|
|
168
168
|
children: {}
|
|
169
169
|
};
|
|
170
|
-
let { change: r, warning: a } =
|
|
170
|
+
let { change: r, warning: a } = Ce(e, n, s, i.children[t], t, !1);
|
|
171
171
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
172
172
|
}
|
|
173
|
-
return i.change ||= !t(s,
|
|
173
|
+
return i.change ||= !t(s, B(n)), {
|
|
174
174
|
change: i.change,
|
|
175
175
|
warning: i.warning
|
|
176
176
|
};
|
|
@@ -178,7 +178,7 @@ function Ee(e, n, r, i, a, o) {
|
|
|
178
178
|
function De(e, n, r, i, a) {
|
|
179
179
|
if (!e.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
180
180
|
let o;
|
|
181
|
-
return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o,
|
|
181
|
+
return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o, z(e)), {
|
|
182
182
|
change: r.change,
|
|
183
183
|
warning: r.warning
|
|
184
184
|
};
|
|
@@ -203,7 +203,7 @@ function Oe(e, t, n) {
|
|
|
203
203
|
warning: !1,
|
|
204
204
|
children: {}
|
|
205
205
|
};
|
|
206
|
-
r.children[e.key] = t,
|
|
206
|
+
r.children[e.key] = t, Ce([], e, n, t, void 0, !1);
|
|
207
207
|
}
|
|
208
208
|
e.value = r;
|
|
209
209
|
}
|
|
@@ -289,15 +289,15 @@ function ot() {
|
|
|
289
289
|
var st = /* @__PURE__ */ p({
|
|
290
290
|
__name: "index",
|
|
291
291
|
setup(e) {
|
|
292
|
-
let { t } =
|
|
292
|
+
let { t } = V(), n = qe(), r = Ye(), i = $e(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
|
|
293
293
|
!(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
|
|
294
294
|
title: t("x-prop-tree.reset"),
|
|
295
295
|
func: () => {
|
|
296
|
-
let e =
|
|
296
|
+
let e = J(n.value, m.value);
|
|
297
297
|
if (e) if (e.ui) {
|
|
298
|
-
let t =
|
|
298
|
+
let t = Y(r.value, m.value.slice(0, -1));
|
|
299
299
|
if (!t) return;
|
|
300
|
-
t[m.value[m.value.length - 1]] =
|
|
300
|
+
t[m.value[m.value.length - 1]] = z(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
301
301
|
} else if (e.array) {
|
|
302
302
|
let t = m.value[m.value.length - 1];
|
|
303
303
|
if (t === void 0) {
|
|
@@ -305,21 +305,21 @@ var st = /* @__PURE__ */ p({
|
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
307
|
if (typeof t == "string") {
|
|
308
|
-
let t =
|
|
308
|
+
let t = Y(r.value, m.value.slice(0, -1));
|
|
309
309
|
if (!t) return;
|
|
310
|
-
t[m.value[m.value.length - 1]] =
|
|
310
|
+
t[m.value[m.value.length - 1]] = z(e), c(m.value, t[m.value[m.value.length - 1]]);
|
|
311
311
|
} else {
|
|
312
|
-
let t =
|
|
312
|
+
let t = Y(r.value, m.value);
|
|
313
313
|
if (!t) return;
|
|
314
314
|
e.children.forEach((n) => {
|
|
315
|
-
t[n.key] =
|
|
315
|
+
t[n.key] = z(e), c([...m.value, n.key], t[n.key]);
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
} else {
|
|
319
|
-
let t =
|
|
319
|
+
let t = Y(r.value, m.value);
|
|
320
320
|
if (!t) return;
|
|
321
321
|
e.children.forEach((n) => {
|
|
322
|
-
t[n.key] =
|
|
322
|
+
t[n.key] = z(e), c([...m.value, n.key], t[n.key]);
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -328,7 +328,7 @@ var st = /* @__PURE__ */ p({
|
|
|
328
328
|
e.push({
|
|
329
329
|
title: t("x-prop-tree.copy"),
|
|
330
330
|
func: () => {
|
|
331
|
-
let e =
|
|
331
|
+
let e = J(n.value, m.value), t = Y(r.value, m.value);
|
|
332
332
|
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
333
333
|
property: e,
|
|
334
334
|
object: t
|
|
@@ -342,8 +342,8 @@ var st = /* @__PURE__ */ p({
|
|
|
342
342
|
try {
|
|
343
343
|
let { property: t } = JSON.parse(e);
|
|
344
344
|
if (!t) return !1;
|
|
345
|
-
let r =
|
|
346
|
-
return r ?
|
|
345
|
+
let r = J(n.value, m.value);
|
|
346
|
+
return r ? be(t, r) : !1;
|
|
347
347
|
} catch (e) {
|
|
348
348
|
console.error(e);
|
|
349
349
|
}
|
|
@@ -355,7 +355,7 @@ var st = /* @__PURE__ */ p({
|
|
|
355
355
|
if (!r()) return;
|
|
356
356
|
let e = localStorage.getItem("propTreeCopy");
|
|
357
357
|
if (e) try {
|
|
358
|
-
let { object: t } = JSON.parse(e), r =
|
|
358
|
+
let { object: t } = JSON.parse(e), r = J(n.value, m.value);
|
|
359
359
|
console.log(t, r);
|
|
360
360
|
} catch (e) {
|
|
361
361
|
console.error(e);
|
|
@@ -365,7 +365,7 @@ var st = /* @__PURE__ */ p({
|
|
|
365
365
|
}, b = o(() => {
|
|
366
366
|
let e = [];
|
|
367
367
|
return _(e), v(e), y(e), e;
|
|
368
|
-
}), { open: x } =
|
|
368
|
+
}), { open: x } = G("propTreeMenu", (e) => {
|
|
369
369
|
u.value = e.x, p.value = e.y, m.value = e.keys;
|
|
370
370
|
});
|
|
371
371
|
return (e, t) => {
|
|
@@ -417,7 +417,7 @@ var st = /* @__PURE__ */ p({
|
|
|
417
417
|
"delete"
|
|
418
418
|
],
|
|
419
419
|
setup(e, { emit: t }) {
|
|
420
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
420
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), d = o(() => ({
|
|
421
421
|
background: a.value ? r.value : n.value,
|
|
422
422
|
height: "36px",
|
|
423
423
|
marginBottom: "1px",
|
|
@@ -433,7 +433,7 @@ var st = /* @__PURE__ */ p({
|
|
|
433
433
|
class: "d-flex align-center cursor-pointer",
|
|
434
434
|
style: y(d.value),
|
|
435
435
|
onClick: p,
|
|
436
|
-
onContextmenu:
|
|
436
|
+
onContextmenu: R(m, ["self", "prevent"]),
|
|
437
437
|
onMouseout: n[2] ||= (e) => a.value = !1,
|
|
438
438
|
onMouseover: n[3] ||= (e) => a.value = !0
|
|
439
439
|
}, [
|
|
@@ -449,7 +449,7 @@ var st = /* @__PURE__ */ p({
|
|
|
449
449
|
density: "compact",
|
|
450
450
|
icon: "mdi-plus",
|
|
451
451
|
variant: "text",
|
|
452
|
-
onClick: n[0] ||=
|
|
452
|
+
onClick: n[0] ||= R((e) => i("create"), ["stop"])
|
|
453
453
|
})) : c("", !0),
|
|
454
454
|
e.hasDelete ? (C(), s(h, {
|
|
455
455
|
key: 1,
|
|
@@ -457,7 +457,7 @@ var st = /* @__PURE__ */ p({
|
|
|
457
457
|
density: "compact",
|
|
458
458
|
icon: "mdi-minus",
|
|
459
459
|
variant: "text",
|
|
460
|
-
onClick: n[1] ||=
|
|
460
|
+
onClick: n[1] ||= R((t) => i("delete", e.index), ["stop"])
|
|
461
461
|
})) : c("", !0)
|
|
462
462
|
], 36)), [[g]]);
|
|
463
463
|
};
|
|
@@ -466,13 +466,13 @@ var st = /* @__PURE__ */ p({
|
|
|
466
466
|
//#endregion
|
|
467
467
|
//#region src/composables/adaptSlotList/index.ts
|
|
468
468
|
function ut() {
|
|
469
|
-
let e = Ve(), t = Ue(), n = Ge(), { i18n: a } =
|
|
469
|
+
let e = Ve(), t = Ue(), n = Ge(), { i18n: a } = de, o = T([]);
|
|
470
470
|
at(o);
|
|
471
471
|
let s = () => {
|
|
472
472
|
if (!e.value || !t.value || !n.value) return [];
|
|
473
|
-
let s =
|
|
473
|
+
let s = le[e.value];
|
|
474
474
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
475
|
-
let c =
|
|
475
|
+
let c = re(t.value, n.value), l = [];
|
|
476
476
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
477
477
|
let t = s.groups[c][e], n = r(o, t.key);
|
|
478
478
|
l.push({
|
|
@@ -485,9 +485,9 @@ function ut() {
|
|
|
485
485
|
});
|
|
486
486
|
let i = 0;
|
|
487
487
|
for (let e of t.items) {
|
|
488
|
-
let n =
|
|
488
|
+
let n = ne(e);
|
|
489
489
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
490
|
-
let r =
|
|
490
|
+
let r = oe("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
|
|
491
491
|
l.push({
|
|
492
492
|
id: r,
|
|
493
493
|
type: 1,
|
|
@@ -498,7 +498,7 @@ function ut() {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
let { activeApp: u, depends: d } =
|
|
501
|
+
let { activeApp: u, depends: d } = ge.app;
|
|
502
502
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
503
503
|
let i = r(o, e);
|
|
504
504
|
l.push({
|
|
@@ -513,7 +513,7 @@ function ut() {
|
|
|
513
513
|
for (let e of u.comps) {
|
|
514
514
|
let t = d[e.id];
|
|
515
515
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
516
|
-
let t =
|
|
516
|
+
let t = oe("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
517
517
|
l.push({
|
|
518
518
|
id: t,
|
|
519
519
|
type: 1,
|
|
@@ -551,7 +551,7 @@ function dt() {
|
|
|
551
551
|
let e = T([]);
|
|
552
552
|
tt(e);
|
|
553
553
|
let t = () => {
|
|
554
|
-
let { activeApp: t, depends: n } =
|
|
554
|
+
let { activeApp: t, depends: n } = ge.app, r = [];
|
|
555
555
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
556
556
|
let t = e.value.find((e) => e.id === n);
|
|
557
557
|
r.push({
|
|
@@ -589,7 +589,7 @@ function ft() {
|
|
|
589
589
|
let e = T([]);
|
|
590
590
|
rt(e);
|
|
591
591
|
let t = () => {
|
|
592
|
-
let { activeObject: e, activeComp: t } =
|
|
592
|
+
let { activeObject: e, activeComp: t } = ge.app;
|
|
593
593
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
594
594
|
let n = [];
|
|
595
595
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -624,7 +624,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
624
624
|
},
|
|
625
625
|
emits: ["x-click"],
|
|
626
626
|
setup(e, { emit: t }) {
|
|
627
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
627
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
628
628
|
background: s.value ? r.value : n.value,
|
|
629
629
|
height: "30px",
|
|
630
630
|
marginTop: "1px",
|
|
@@ -656,7 +656,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
656
656
|
},
|
|
657
657
|
emits: ["x-click"],
|
|
658
658
|
setup(e, { emit: t }) {
|
|
659
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
659
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
660
660
|
background: a.value ? r.value : n.value,
|
|
661
661
|
height: "48px",
|
|
662
662
|
marginTop: "1px",
|
|
@@ -689,7 +689,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
689
689
|
},
|
|
690
690
|
emits: ["update:modelValue", "update:open"],
|
|
691
691
|
setup(e) {
|
|
692
|
-
let { nameList: t } =
|
|
692
|
+
let { nameList: t } = W(), i = M(e, "modelValue"), o = M(e, "open"), u = ot(), d = (e) => {
|
|
693
693
|
let t = r(u, e);
|
|
694
694
|
t && n(u, e, !t.collapse);
|
|
695
695
|
}, f = (e) => {
|
|
@@ -735,7 +735,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
735
735
|
}),
|
|
736
736
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
737
737
|
setup(e, { emit: t }) {
|
|
738
|
-
let { t: n } =
|
|
738
|
+
let { t: n } = V(), i = _e(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = M(e, "modelValue"), h = t, _ = ot(), b = o(() => {
|
|
739
739
|
let e = "100%";
|
|
740
740
|
return i.mdAndUp.value && (e = "400px"), {
|
|
741
741
|
background: p.value,
|
|
@@ -752,7 +752,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
752
752
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
753
753
|
let e = r(_, m.value);
|
|
754
754
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
755
|
-
}), { open: E } =
|
|
755
|
+
}), { open: E } = G(`propTreeAdaptSlotSelectDlg${j()}`);
|
|
756
756
|
return S(() => {
|
|
757
757
|
E.value = !1;
|
|
758
758
|
}), (t, n) => {
|
|
@@ -764,7 +764,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
764
764
|
"no-click-animation": "",
|
|
765
765
|
persistent: "",
|
|
766
766
|
transition: "scroll-x-reverse-transition",
|
|
767
|
-
onKeydown: n[7] ||=
|
|
767
|
+
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
768
768
|
}, {
|
|
769
769
|
activator: F(({ props: t }) => [f(r, v(t, {
|
|
770
770
|
block: "",
|
|
@@ -779,12 +779,12 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
779
779
|
density: "compact",
|
|
780
780
|
icon: "mdi-minus",
|
|
781
781
|
variant: "text",
|
|
782
|
-
onClick: n[0] ||=
|
|
782
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
783
783
|
})) : c("", !0)]),
|
|
784
784
|
default: F(() => [u("div", {
|
|
785
785
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
786
|
-
onClick: n[4] ||=
|
|
787
|
-
onContextmenu: n[5] ||=
|
|
786
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
787
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
788
788
|
}, [u("div", {
|
|
789
789
|
class: "elevation-2",
|
|
790
790
|
style: y(b.value)
|
|
@@ -842,10 +842,10 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
842
842
|
}),
|
|
843
843
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
844
844
|
setup(e, { emit: t }) {
|
|
845
|
-
let { t: n } =
|
|
845
|
+
let { t: n } = V(), r = M(e, "modelValue"), i = t, a = o(() => {
|
|
846
846
|
let t = "100%";
|
|
847
847
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
848
|
-
}), l = o(() => e.readonly), { open: p } =
|
|
848
|
+
}), l = o(() => e.readonly), { open: p } = G(`propTreeColorPickerMenu${j()}`);
|
|
849
849
|
return S(() => {
|
|
850
850
|
p.value = !1;
|
|
851
851
|
}), (t, o) => {
|
|
@@ -873,7 +873,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
873
873
|
density: "compact",
|
|
874
874
|
icon: "mdi-minus",
|
|
875
875
|
variant: "text",
|
|
876
|
-
onClick: o[0] ||=
|
|
876
|
+
onClick: o[0] ||= R((e) => i("delete"), ["stop"])
|
|
877
877
|
})) : c("", !0)])]),
|
|
878
878
|
default: F(() => [f(h, {
|
|
879
879
|
modelValue: r.value,
|
|
@@ -896,7 +896,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
896
896
|
},
|
|
897
897
|
emits: ["x-click"],
|
|
898
898
|
setup(e, { emit: t }) {
|
|
899
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
899
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
900
900
|
background: s.value ? r.value : n.value,
|
|
901
901
|
height: "30px",
|
|
902
902
|
marginTop: "1px",
|
|
@@ -928,7 +928,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
928
928
|
},
|
|
929
929
|
emits: ["x-click"],
|
|
930
930
|
setup(e, { emit: t }) {
|
|
931
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
931
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
|
|
932
932
|
background: s.value ? r.value : n.value,
|
|
933
933
|
height: "48px",
|
|
934
934
|
marginTop: "1px",
|
|
@@ -961,11 +961,11 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
961
961
|
},
|
|
962
962
|
emits: ["update:modelValue", "update:open"],
|
|
963
963
|
setup(e) {
|
|
964
|
-
let { nameList: t } =
|
|
964
|
+
let { nameList: t } = W(), i = M(e, "modelValue"), o = M(e, "open"), u = nt(), d = (e) => {
|
|
965
965
|
let t = r(u, e);
|
|
966
966
|
t && n(u, e, !t.collapse);
|
|
967
967
|
}, f = (e) => {
|
|
968
|
-
i.value = e, o.value = !1,
|
|
968
|
+
i.value = e, o.value = !1, H.emit("refreshDepends");
|
|
969
969
|
};
|
|
970
970
|
return (e, n) => A(u).length > 0 ? (C(), l("div", At, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(Dt, {
|
|
971
971
|
key: 0,
|
|
@@ -1003,7 +1003,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1003
1003
|
}),
|
|
1004
1004
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1005
1005
|
setup(e, { emit: t }) {
|
|
1006
|
-
let { t: n } =
|
|
1006
|
+
let { t: n } = V(), i = _e(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = M(e, "modelValue"), h = t, _ = nt(), b = o(() => {
|
|
1007
1007
|
let e = "100%";
|
|
1008
1008
|
return i.mdAndUp.value && (e = "400px"), {
|
|
1009
1009
|
background: p.value,
|
|
@@ -1020,7 +1020,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1020
1020
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
1021
1021
|
let e = r(_, m.value);
|
|
1022
1022
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
1023
|
-
}), { open: E } =
|
|
1023
|
+
}), { open: E } = G(`propTreeCompSelectDlg${j()}`);
|
|
1024
1024
|
return S(() => {
|
|
1025
1025
|
E.value = !1;
|
|
1026
1026
|
}), (t, n) => {
|
|
@@ -1032,7 +1032,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1032
1032
|
"no-click-animation": "",
|
|
1033
1033
|
persistent: "",
|
|
1034
1034
|
transition: "scroll-x-reverse-transition",
|
|
1035
|
-
onKeydown: n[7] ||=
|
|
1035
|
+
onKeydown: n[7] ||= L(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1036
1036
|
}, {
|
|
1037
1037
|
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1038
1038
|
block: "",
|
|
@@ -1047,12 +1047,12 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1047
1047
|
density: "compact",
|
|
1048
1048
|
icon: "mdi-minus",
|
|
1049
1049
|
variant: "text",
|
|
1050
|
-
onClick: n[0] ||=
|
|
1050
|
+
onClick: n[0] ||= R((e) => h("delete"), ["stop"])
|
|
1051
1051
|
})) : c("", !0)]),
|
|
1052
1052
|
default: F(() => [u("div", {
|
|
1053
1053
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1054
|
-
onClick: n[4] ||=
|
|
1055
|
-
onContextmenu: n[5] ||=
|
|
1054
|
+
onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
|
|
1055
|
+
onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
|
|
1056
1056
|
}, [u("div", {
|
|
1057
1057
|
class: "elevation-2",
|
|
1058
1058
|
style: y(b.value)
|
|
@@ -1108,14 +1108,14 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1108
1108
|
"update:scale"
|
|
1109
1109
|
],
|
|
1110
1110
|
setup(e, { expose: t }) {
|
|
1111
|
-
let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a =
|
|
1111
|
+
let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = fe(), o = pe(), c = Ve(), l = te("target"), u = () => {
|
|
1112
1112
|
let e = JSON.parse(n.value);
|
|
1113
1113
|
l.value?.load(e);
|
|
1114
1114
|
};
|
|
1115
1115
|
return t({ save: () => {
|
|
1116
1116
|
let e = l.value.save();
|
|
1117
1117
|
n.value = JSON.stringify(e, null, 2);
|
|
1118
|
-
} }), (e, t) => (C(), s(A(
|
|
1118
|
+
} }), (e, t) => (C(), s(A(ve), {
|
|
1119
1119
|
ref_key: "target",
|
|
1120
1120
|
ref: l,
|
|
1121
1121
|
lock: r.value,
|
|
@@ -1152,14 +1152,14 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1152
1152
|
}),
|
|
1153
1153
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1154
1154
|
setup(e, { emit: t }) {
|
|
1155
|
-
let { t: n } =
|
|
1155
|
+
let { t: n } = V(), { sysBarAvail: r } = W(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = U(), p = M(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
|
|
1156
1156
|
let e = 48;
|
|
1157
1157
|
return r.value && (e += 24), {
|
|
1158
1158
|
position: "relative",
|
|
1159
1159
|
background: a.value,
|
|
1160
1160
|
height: `calc(100% - ${e}px)`
|
|
1161
1161
|
};
|
|
1162
|
-
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } =
|
|
1162
|
+
}), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = G(`propTreejsonEditorDlg${j()}`);
|
|
1163
1163
|
S(() => {
|
|
1164
1164
|
w.value = !1;
|
|
1165
1165
|
});
|
|
@@ -1176,7 +1176,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1176
1176
|
"no-click-animation": "",
|
|
1177
1177
|
persistent: "",
|
|
1178
1178
|
transition: "dialog-bottom-transition",
|
|
1179
|
-
onKeydown: n[6] ||=
|
|
1179
|
+
onKeydown: n[6] ||= L(R((e) => w.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1180
1180
|
}, {
|
|
1181
1181
|
activator: F(({ props: t }) => [f(a, v(t, {
|
|
1182
1182
|
block: "",
|
|
@@ -1191,7 +1191,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1191
1191
|
density: "compact",
|
|
1192
1192
|
icon: "mdi-minus",
|
|
1193
1193
|
variant: "text",
|
|
1194
|
-
onClick: n[0] ||=
|
|
1194
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1195
1195
|
})) : c("", !0)]),
|
|
1196
1196
|
default: F(() => [f(o, {
|
|
1197
1197
|
color: A(i),
|
|
@@ -1260,7 +1260,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1260
1260
|
}),
|
|
1261
1261
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1262
1262
|
setup(e, { emit: t }) {
|
|
1263
|
-
let { t: n } =
|
|
1263
|
+
let { t: n } = V(), { isMobile: r } = W(), i = M(e, "modelValue"), a = t, d = Ve(), p = o(() => le[d.value].types[e.types]), m = T(""), h = o(() => {
|
|
1264
1264
|
let e = [];
|
|
1265
1265
|
for (let { value: t, title: r } of p.value) e.push({
|
|
1266
1266
|
value: t,
|
|
@@ -1279,7 +1279,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1279
1279
|
i.value = g.value?.default;
|
|
1280
1280
|
}, v = T(0), y = async (e) => {
|
|
1281
1281
|
if (!e || !r() || !g.value || g.value.trait !== "pixel" && g.value.trait !== "percent") return;
|
|
1282
|
-
let t = await
|
|
1282
|
+
let t = await me({
|
|
1283
1283
|
title: "",
|
|
1284
1284
|
value: v.value,
|
|
1285
1285
|
precision: g.value.precision,
|
|
@@ -1290,30 +1290,30 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1290
1290
|
t !== void 0 && (v.value = t);
|
|
1291
1291
|
};
|
|
1292
1292
|
P(() => {
|
|
1293
|
-
g.value?.trait === "pixel" ? v.value =
|
|
1293
|
+
g.value?.trait === "pixel" ? v.value = ce(i.value) : g.value?.trait === "percent" && (v.value = se(i.value));
|
|
1294
1294
|
}), N(v, (e) => {
|
|
1295
1295
|
g.value?.trait === "pixel" ? i.value = e + "px" : g.value?.trait === "percent" && (i.value = e + "%");
|
|
1296
1296
|
});
|
|
1297
1297
|
let b = T("#ff00ff");
|
|
1298
1298
|
P(() => {
|
|
1299
|
-
g.value?.trait === "hexColor" &&
|
|
1299
|
+
g.value?.trait === "hexColor" && ie(i.value) && (b.value = i.value);
|
|
1300
1300
|
}), N(b, (e) => {
|
|
1301
1301
|
g.value?.trait === "hexColor" && (i.value = e);
|
|
1302
1302
|
});
|
|
1303
1303
|
let x = T("primary"), S = o(() => {
|
|
1304
1304
|
let e = [];
|
|
1305
|
-
if (g.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1305
|
+
if (g.value?.trait === "themeColor") for (let { value: t, title: r } of ue) e.push({
|
|
1306
1306
|
value: t,
|
|
1307
1307
|
title: n(r)
|
|
1308
1308
|
});
|
|
1309
1309
|
return e;
|
|
1310
1310
|
});
|
|
1311
1311
|
return P(() => {
|
|
1312
|
-
g.value?.trait === "themeColor" &&
|
|
1312
|
+
g.value?.trait === "themeColor" && ae(i.value) && (x.value = i.value);
|
|
1313
1313
|
}), N(x, (e) => {
|
|
1314
1314
|
g.value?.trait === "themeColor" && (i.value = e);
|
|
1315
1315
|
}), (t, n) => {
|
|
1316
|
-
let r = D("v-select"), i = D("v-number-input"), o = D("v-
|
|
1316
|
+
let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
|
|
1317
1317
|
return C(), l("div", Rt, [u("div", zt, [
|
|
1318
1318
|
I(f(r, {
|
|
1319
1319
|
modelValue: m.value,
|
|
@@ -1328,7 +1328,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1328
1328
|
"items",
|
|
1329
1329
|
"readonly"
|
|
1330
1330
|
]), [[
|
|
1331
|
-
|
|
1331
|
+
d,
|
|
1332
1332
|
void 0,
|
|
1333
1333
|
void 0,
|
|
1334
1334
|
{ stop: !0 }
|
|
@@ -1355,48 +1355,37 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1355
1355
|
"readonly",
|
|
1356
1356
|
"step"
|
|
1357
1357
|
])), [[
|
|
1358
|
-
|
|
1358
|
+
d,
|
|
1359
1359
|
void 0,
|
|
1360
1360
|
void 0,
|
|
1361
1361
|
{ stop: !0 }
|
|
1362
1362
|
]]) : c("", !0),
|
|
1363
|
-
g.value?.trait === "hexColor" ?
|
|
1363
|
+
g.value?.trait === "hexColor" ? (C(), s(wt, {
|
|
1364
1364
|
key: 1,
|
|
1365
1365
|
modelValue: b.value,
|
|
1366
|
-
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
1367
|
-
|
|
1368
|
-
"hide-details": "",
|
|
1369
|
-
"hide-pip": "",
|
|
1370
|
-
mode: "hexa",
|
|
1371
|
-
"show-swatches": "",
|
|
1372
|
-
"swatches-max-height": "150px"
|
|
1373
|
-
}, null, 8, ["modelValue"])), [[
|
|
1374
|
-
p,
|
|
1375
|
-
void 0,
|
|
1376
|
-
void 0,
|
|
1377
|
-
{ stop: !0 }
|
|
1378
|
-
]]) : c("", !0),
|
|
1366
|
+
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
1367
|
+
}, null, 8, ["modelValue"])) : c("", !0),
|
|
1379
1368
|
g.value?.trait === "themeColor" ? I((C(), s(r, {
|
|
1380
1369
|
key: 2,
|
|
1381
1370
|
modelValue: x.value,
|
|
1382
1371
|
"onUpdate:modelValue": n[3] ||= (e) => x.value = e,
|
|
1383
|
-
items: S.value,
|
|
1384
1372
|
density: "compact",
|
|
1385
1373
|
"hide-details": "",
|
|
1374
|
+
items: S.value,
|
|
1386
1375
|
"single-line": ""
|
|
1387
1376
|
}, null, 8, ["modelValue", "items"])), [[
|
|
1388
|
-
|
|
1377
|
+
d,
|
|
1389
1378
|
void 0,
|
|
1390
1379
|
void 0,
|
|
1391
1380
|
{ stop: !0 }
|
|
1392
1381
|
]]) : c("", !0)
|
|
1393
|
-
]), e.hasDelete ? (C(), s(
|
|
1382
|
+
]), e.hasDelete ? (C(), s(o, {
|
|
1394
1383
|
key: 0,
|
|
1395
1384
|
class: "mx-2",
|
|
1396
1385
|
density: "compact",
|
|
1397
1386
|
icon: "mdi-minus",
|
|
1398
1387
|
variant: "text",
|
|
1399
|
-
onClick: n[4] ||=
|
|
1388
|
+
onClick: n[4] ||= R((e) => a("delete"), ["stop"])
|
|
1400
1389
|
})) : c("", !0)]);
|
|
1401
1390
|
};
|
|
1402
1391
|
}
|
|
@@ -1421,9 +1410,9 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1421
1410
|
}),
|
|
1422
1411
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1423
1412
|
setup(e, { emit: t }) {
|
|
1424
|
-
let { isMobile: n } =
|
|
1413
|
+
let { isMobile: n } = W(), r = M(e, "modelValue"), i = t, a = async (t) => {
|
|
1425
1414
|
if (!t || e.readonly || !n()) return;
|
|
1426
|
-
let i = await
|
|
1415
|
+
let i = await me({
|
|
1427
1416
|
title: "",
|
|
1428
1417
|
value: r.value,
|
|
1429
1418
|
precision: e.precision,
|
|
@@ -1466,7 +1455,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1466
1455
|
density: "compact",
|
|
1467
1456
|
icon: "mdi-minus",
|
|
1468
1457
|
variant: "text",
|
|
1469
|
-
onClick: n[1] ||=
|
|
1458
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1470
1459
|
})) : c("", !0)]);
|
|
1471
1460
|
};
|
|
1472
1461
|
}
|
|
@@ -1488,9 +1477,9 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1488
1477
|
}),
|
|
1489
1478
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1490
1479
|
setup(e, { emit: t }) {
|
|
1491
|
-
let { t: n } =
|
|
1480
|
+
let { t: n } = V(), r = M(e, "modelValue"), i = t, a = Ve(), u = o(() => {
|
|
1492
1481
|
let t = [];
|
|
1493
|
-
return
|
|
1482
|
+
return le[a.value].items[e.items].forEach(({ title: e, value: r }) => {
|
|
1494
1483
|
t.push({
|
|
1495
1484
|
title: n(e),
|
|
1496
1485
|
value: r
|
|
@@ -1522,7 +1511,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1522
1511
|
density: "compact",
|
|
1523
1512
|
icon: "mdi-minus",
|
|
1524
1513
|
variant: "text",
|
|
1525
|
-
onClick: n[1] ||=
|
|
1514
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1526
1515
|
})) : c("", !0)]);
|
|
1527
1516
|
};
|
|
1528
1517
|
}
|
|
@@ -1534,7 +1523,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1534
1523
|
},
|
|
1535
1524
|
emits: ["x-click"],
|
|
1536
1525
|
setup(e, { emit: t }) {
|
|
1537
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1526
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
1538
1527
|
background: a.value ? r.value : n.value,
|
|
1539
1528
|
height: "48px",
|
|
1540
1529
|
marginTop: "1px",
|
|
@@ -1567,7 +1556,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1567
1556
|
},
|
|
1568
1557
|
emits: ["update:modelValue", "update:open"],
|
|
1569
1558
|
setup(e) {
|
|
1570
|
-
let { nameList: t } =
|
|
1559
|
+
let { nameList: t } = W(), n = M(e, "modelValue"), r = M(e, "open"), i = it(), o = (e) => {
|
|
1571
1560
|
n.value = e, r.value = !1;
|
|
1572
1561
|
};
|
|
1573
1562
|
return (e, n) => A(i).length > 0 ? (C(), l("div", qt, [(C(!0), l(a, null, E(A(i), (e) => (C(), s(Kt, {
|
|
@@ -1594,7 +1583,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1594
1583
|
}),
|
|
1595
1584
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1596
1585
|
setup(e, { emit: t }) {
|
|
1597
|
-
let { t: n } =
|
|
1586
|
+
let { t: n } = V(), r = _e(), { sysBarAvail: i, nameList: a } = W(), { backgroundColor1: l } = U(), p = M(e, "modelValue"), m = t, h = it(), _ = o(() => {
|
|
1598
1587
|
let e = "100%";
|
|
1599
1588
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1600
1589
|
background: l.value,
|
|
@@ -1611,7 +1600,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1611
1600
|
if (!p.value) return n("x-runtime-lib.notSet");
|
|
1612
1601
|
let e = h.value.find((e) => e.id === p.value);
|
|
1613
1602
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1614
|
-
}), { open: T } =
|
|
1603
|
+
}), { open: T } = G(`propTreeSlotSelectDlg${j()}`);
|
|
1615
1604
|
return S(() => {
|
|
1616
1605
|
T.value = !1;
|
|
1617
1606
|
}), (t, n) => {
|
|
@@ -1623,7 +1612,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1623
1612
|
"no-click-animation": "",
|
|
1624
1613
|
persistent: "",
|
|
1625
1614
|
transition: "scroll-x-reverse-transition",
|
|
1626
|
-
onKeydown: n[7] ||=
|
|
1615
|
+
onKeydown: n[7] ||= L(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1627
1616
|
}, {
|
|
1628
1617
|
activator: F(({ props: t }) => [f(r, v(t, {
|
|
1629
1618
|
block: "",
|
|
@@ -1638,12 +1627,12 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1638
1627
|
density: "compact",
|
|
1639
1628
|
icon: "mdi-minus",
|
|
1640
1629
|
variant: "text",
|
|
1641
|
-
onClick: n[0] ||=
|
|
1630
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1642
1631
|
})) : c("", !0)]),
|
|
1643
1632
|
default: F(() => [u("div", {
|
|
1644
1633
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1645
|
-
onClick: n[4] ||=
|
|
1646
|
-
onContextmenu: n[5] ||=
|
|
1634
|
+
onClick: n[4] ||= R((e) => T.value = !1, ["self"]),
|
|
1635
|
+
onContextmenu: n[5] ||= R((e) => T.value = !1, ["self", "prevent"])
|
|
1647
1636
|
}, [u("div", {
|
|
1648
1637
|
class: "elevation-2",
|
|
1649
1638
|
style: y(_.value)
|
|
@@ -1697,9 +1686,9 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1697
1686
|
}),
|
|
1698
1687
|
emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
|
|
1699
1688
|
setup(e, { emit: t }) {
|
|
1700
|
-
let { isMobile: n } =
|
|
1689
|
+
let { isMobile: n } = W(), r = M(e, "modelValue"), i = t, a = async (t) => {
|
|
1701
1690
|
if (!t || e.readonly || !n()) return;
|
|
1702
|
-
let i = await
|
|
1691
|
+
let i = await he({
|
|
1703
1692
|
title: "",
|
|
1704
1693
|
value: r.value
|
|
1705
1694
|
});
|
|
@@ -1726,7 +1715,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1726
1715
|
density: "compact",
|
|
1727
1716
|
icon: "mdi-minus",
|
|
1728
1717
|
variant: "text",
|
|
1729
|
-
onClick: n[1] ||=
|
|
1718
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1730
1719
|
})) : c("", !0)]);
|
|
1731
1720
|
};
|
|
1732
1721
|
}
|
|
@@ -1764,7 +1753,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
|
|
|
1764
1753
|
density: "compact",
|
|
1765
1754
|
icon: "mdi-minus",
|
|
1766
1755
|
variant: "text",
|
|
1767
|
-
onClick: i[1] ||=
|
|
1756
|
+
onClick: i[1] ||= R((e) => r("delete"), ["stop"])
|
|
1768
1757
|
})) : c("", !0)]);
|
|
1769
1758
|
};
|
|
1770
1759
|
}
|
|
@@ -1776,9 +1765,9 @@ function nn() {
|
|
|
1776
1765
|
return { renderUiAdaptSlotSelect: (t, n, r, i, a) => {
|
|
1777
1766
|
if (n.ui !== "selectAdaptSlot") throw Error("renderUiSlotSelect property ui must be selectAdaptSlot");
|
|
1778
1767
|
return m(St, {
|
|
1779
|
-
modelValue:
|
|
1768
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1780
1769
|
"onUpdate:modelValue": (o) => {
|
|
1781
|
-
|
|
1770
|
+
Z(t, n, r, o, i, a, e);
|
|
1782
1771
|
},
|
|
1783
1772
|
hasDelete: i !== void 0 && !a,
|
|
1784
1773
|
onDelete: () => {
|
|
@@ -1795,9 +1784,9 @@ function rn() {
|
|
|
1795
1784
|
return { renderUiColorPicker: (t, n, r, i, a) => {
|
|
1796
1785
|
if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
|
|
1797
1786
|
return m(wt, {
|
|
1798
|
-
modelValue:
|
|
1787
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1799
1788
|
"onUpdate:modelValue": (o) => {
|
|
1800
|
-
|
|
1789
|
+
Z(t, n, r, o, i, a, e);
|
|
1801
1790
|
},
|
|
1802
1791
|
hasDelete: i !== void 0 && !a,
|
|
1803
1792
|
onDelete: () => {
|
|
@@ -1814,9 +1803,9 @@ function an() {
|
|
|
1814
1803
|
return { renderUiCompSelect: (t, n, r, i, a) => {
|
|
1815
1804
|
if (n.ui !== "selectComp") throw Error("renderUiCompSelect property ui must be selectComp");
|
|
1816
1805
|
return m(Pt, {
|
|
1817
|
-
modelValue:
|
|
1806
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1818
1807
|
"onUpdate:modelValue": (o) => {
|
|
1819
|
-
|
|
1808
|
+
Z(t, n, r, o, i, a, e);
|
|
1820
1809
|
},
|
|
1821
1810
|
hasDelete: i !== void 0 && !a,
|
|
1822
1811
|
onDelete: () => {
|
|
@@ -1832,7 +1821,7 @@ function on() {
|
|
|
1832
1821
|
let e = $();
|
|
1833
1822
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1834
1823
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1835
|
-
|
|
1824
|
+
X(t, n, r, i, a, e);
|
|
1836
1825
|
} };
|
|
1837
1826
|
}
|
|
1838
1827
|
//#endregion
|
|
@@ -1842,9 +1831,9 @@ function sn() {
|
|
|
1842
1831
|
return { renderUiJsonEditor: (t, n, r, i, a) => {
|
|
1843
1832
|
if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
|
|
1844
1833
|
return m(Lt, {
|
|
1845
|
-
modelValue:
|
|
1834
|
+
modelValue: X(t, n, r, i, a, e) ?? "{}",
|
|
1846
1835
|
"onUpdate:modelValue": (o) => {
|
|
1847
|
-
|
|
1836
|
+
Z(t, n, r, o, i, a, e);
|
|
1848
1837
|
},
|
|
1849
1838
|
hasDelete: i !== void 0 && !a,
|
|
1850
1839
|
onDelete: () => {
|
|
@@ -1861,9 +1850,9 @@ function cn() {
|
|
|
1861
1850
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
1862
1851
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
1863
1852
|
return m(Bt, {
|
|
1864
|
-
modelValue:
|
|
1853
|
+
modelValue: X(t, n, r, i, a, e) ?? "",
|
|
1865
1854
|
"onUpdate:modelValue": (o) => {
|
|
1866
|
-
|
|
1855
|
+
Z(t, n, r, o, i, a, e);
|
|
1867
1856
|
},
|
|
1868
1857
|
hasDelete: i !== void 0 && !a,
|
|
1869
1858
|
onDelete: () => {
|
|
@@ -1880,9 +1869,9 @@ function ln() {
|
|
|
1880
1869
|
return { renderUiNumInput: (t, n, r, i, a) => {
|
|
1881
1870
|
if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
|
|
1882
1871
|
return m(Ht, {
|
|
1883
|
-
modelValue:
|
|
1872
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1884
1873
|
"onUpdate:modelValue": (o) => {
|
|
1885
|
-
|
|
1874
|
+
Z(t, n, r, o, i, a, e);
|
|
1886
1875
|
},
|
|
1887
1876
|
hasDelete: i !== void 0 && !a,
|
|
1888
1877
|
onDelete: () => {
|
|
@@ -1903,7 +1892,7 @@ var un = /* @__PURE__ */ p({
|
|
|
1903
1892
|
props: { minHeight: {} },
|
|
1904
1893
|
emits: ["menu"],
|
|
1905
1894
|
setup(e, { emit: t }) {
|
|
1906
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1895
|
+
let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
|
|
1907
1896
|
background: a.value ? r.value : n.value,
|
|
1908
1897
|
minHeight: e.minHeight,
|
|
1909
1898
|
paddingRight: "4px",
|
|
@@ -1917,7 +1906,7 @@ var un = /* @__PURE__ */ p({
|
|
|
1917
1906
|
return I((C(), l("div", {
|
|
1918
1907
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1919
1908
|
style: y(s.value),
|
|
1920
|
-
onContextmenu:
|
|
1909
|
+
onContextmenu: R(c, ["self", "prevent"]),
|
|
1921
1910
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
1922
1911
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
1923
1912
|
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
@@ -1927,13 +1916,13 @@ var un = /* @__PURE__ */ p({
|
|
|
1927
1916
|
//#endregion
|
|
1928
1917
|
//#region src/composables/uis/uiProperty.ts
|
|
1929
1918
|
function dn() {
|
|
1930
|
-
let { t: e } =
|
|
1919
|
+
let { t: e } = V(), t = $e();
|
|
1931
1920
|
return { renderProperty: (n, r, i) => {
|
|
1932
1921
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
1933
1922
|
return Q(t.value, n) && (o += " *"), m(un, {
|
|
1934
1923
|
minHeight: "56px",
|
|
1935
1924
|
onMenu: (e, t) => {
|
|
1936
|
-
|
|
1925
|
+
H.emit("propTreeMenu", {
|
|
1937
1926
|
x: e,
|
|
1938
1927
|
y: t,
|
|
1939
1928
|
keys: n
|
|
@@ -1955,9 +1944,9 @@ function fn() {
|
|
|
1955
1944
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
1956
1945
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
1957
1946
|
return m(Wt, {
|
|
1958
|
-
modelValue:
|
|
1947
|
+
modelValue: X(t, n, r, i, a, e) ?? "",
|
|
1959
1948
|
"onUpdate:modelValue": (o) => {
|
|
1960
|
-
|
|
1949
|
+
Z(t, n, r, o, i, a, e);
|
|
1961
1950
|
},
|
|
1962
1951
|
hasDelete: i !== void 0 && !a,
|
|
1963
1952
|
onDelete: () => {
|
|
@@ -1975,9 +1964,9 @@ function pn() {
|
|
|
1975
1964
|
return { renderUiSlotSelect: (t, n, r, i, a) => {
|
|
1976
1965
|
if (n.ui !== "selectSlot") throw Error("renderUiSlotSelect property ui must be selectSlot");
|
|
1977
1966
|
return m(Zt, {
|
|
1978
|
-
modelValue:
|
|
1967
|
+
modelValue: X(t, n, r, i, a, e),
|
|
1979
1968
|
"onUpdate:modelValue": (o) => {
|
|
1980
|
-
|
|
1969
|
+
Z(t, n, r, o, i, a, e);
|
|
1981
1970
|
},
|
|
1982
1971
|
hasDelete: i !== void 0 && !a,
|
|
1983
1972
|
onDelete: () => {
|
|
@@ -1994,9 +1983,9 @@ function mn() {
|
|
|
1994
1983
|
return { renderUiStrInput: (t, n, r, i, a) => {
|
|
1995
1984
|
if (n.ui !== "strInput") throw Error("renderUiStrInput property ui must be strInput");
|
|
1996
1985
|
return m($t, {
|
|
1997
|
-
modelValue: n.static ? n.value :
|
|
1986
|
+
modelValue: n.static ? n.value : X(t, n, r, i, a, e),
|
|
1998
1987
|
"onUpdate:modelValue": (o) => {
|
|
1999
|
-
n.static ||
|
|
1988
|
+
n.static || Z(t, n, r, o, i, a, e);
|
|
2000
1989
|
},
|
|
2001
1990
|
hasDelete: i !== void 0 && !a,
|
|
2002
1991
|
onDelete: () => {
|
|
@@ -2013,9 +2002,9 @@ function hn() {
|
|
|
2013
2002
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2014
2003
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2015
2004
|
return m(tn, {
|
|
2016
|
-
modelValue:
|
|
2005
|
+
modelValue: X(t, n, r, i, a, e) ?? !1,
|
|
2017
2006
|
"onUpdate:modelValue": (o) => {
|
|
2018
|
-
|
|
2007
|
+
Z(t, n, r, o, i, a, e);
|
|
2019
2008
|
},
|
|
2020
2009
|
hasDelete: i !== void 0 && !a,
|
|
2021
2010
|
onDelete: () => {
|
|
@@ -2030,22 +2019,22 @@ function hn() {
|
|
|
2030
2019
|
var gn = "20px", _n = /* @__PURE__ */ p({
|
|
2031
2020
|
__name: "main",
|
|
2032
2021
|
setup(t) {
|
|
2033
|
-
let { t: n } =
|
|
2022
|
+
let { t: n } = V(), { backgroundColor1: r } = U(), i = qe(), o = Ye(), s = Ze(), c = $e(), u = $();
|
|
2034
2023
|
dt(), ft(), ut();
|
|
2035
2024
|
let { renderProperty: d } = dn(), { renderUiDummy: p } = on(), { renderUiStrInput: h } = mn(), { renderUiNumInput: g } = ln(), { renderUiSwitch: _ } = hn(), { renderUiSelect: v } = fn(), { renderUiColorPicker: y } = rn(), { renderUiJsonEditor: b } = sn(), { renderUiMultiTypes: x } = cn(), { renderUiCompSelect: S } = an(), { renderUiSlotSelect: w } = pn(), { renderUiAdaptSlotSelect: T } = nn(), E = (t, n, r, i, a, o) => (t = e(t), i === void 0 ? t.push(n.key) : (t.push(i), a && t.push(n.key)), n.ui ? n.array && !o ? O(t, n, r, i, a) : k(t, n, r, i, a) : n.array ? ee(t, n, r, i, a) : D(t, n, r, i, a)), ee = (e, t, r, i, a) => {
|
|
2036
2025
|
if (t.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2037
2026
|
if (!t.array) throw Error("renderBranchArray property array must be valid");
|
|
2038
|
-
let o =
|
|
2039
|
-
|
|
2027
|
+
let o = ye(e, t, r, i, a, u), l = n(t.name);
|
|
2028
|
+
K(s, e) && Q(c.value, e) && (l += " *");
|
|
2040
2029
|
let d = m(lt, {
|
|
2041
2030
|
title: l,
|
|
2042
|
-
collapse:
|
|
2031
|
+
collapse: K(s, e),
|
|
2043
2032
|
hasCreate: !0,
|
|
2044
2033
|
onCollapse: (t) => {
|
|
2045
|
-
|
|
2034
|
+
q(s, e, t);
|
|
2046
2035
|
},
|
|
2047
2036
|
onMenu: (t, n) => {
|
|
2048
|
-
|
|
2037
|
+
H.emit("propTreeMenu", {
|
|
2049
2038
|
x: t,
|
|
2050
2039
|
y: n,
|
|
2051
2040
|
keys: e
|
|
@@ -2058,17 +2047,17 @@ var gn = "20px", _n = /* @__PURE__ */ p({
|
|
|
2058
2047
|
let n = [];
|
|
2059
2048
|
for (let r = 0; r < o.length; r++) {
|
|
2060
2049
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2061
|
-
|
|
2050
|
+
K(s, [...e, r]) && Q(c.value, i) && (a += " *");
|
|
2062
2051
|
let l = m(lt, {
|
|
2063
2052
|
title: a,
|
|
2064
|
-
collapse:
|
|
2053
|
+
collapse: K(s, [...e, r]),
|
|
2065
2054
|
hasDelete: !0,
|
|
2066
2055
|
index: r,
|
|
2067
2056
|
onCollapse: (t) => {
|
|
2068
|
-
|
|
2057
|
+
q(s, [...e, r], t);
|
|
2069
2058
|
},
|
|
2070
2059
|
onMenu: (e, t) => {
|
|
2071
|
-
|
|
2060
|
+
H.emit("propTreeMenu", {
|
|
2072
2061
|
x: e,
|
|
2073
2062
|
y: t,
|
|
2074
2063
|
keys: i
|
|
@@ -2084,28 +2073,28 @@ var gn = "20px", _n = /* @__PURE__ */ p({
|
|
|
2084
2073
|
for (let i of t.children) n.push(E(e, i, o[r], r, !0));
|
|
2085
2074
|
return n;
|
|
2086
2075
|
})());
|
|
2087
|
-
|
|
2076
|
+
K(s, [...e, r]) || n.push(d);
|
|
2088
2077
|
}
|
|
2089
2078
|
return n;
|
|
2090
2079
|
})());
|
|
2091
2080
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2092
2081
|
let t = [];
|
|
2093
|
-
return t.push(d),
|
|
2082
|
+
return t.push(d), K(s, e) || t.push(f), t;
|
|
2094
2083
|
})());
|
|
2095
2084
|
}, D = (e, t, r, i, a) => {
|
|
2096
2085
|
if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2097
2086
|
if (t.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2098
2087
|
let o = n(t.name);
|
|
2099
|
-
|
|
2088
|
+
K(s, e) && Q(c.value, e) && (o += " *");
|
|
2100
2089
|
let l = m(lt, {
|
|
2101
2090
|
title: o,
|
|
2102
|
-
collapse:
|
|
2091
|
+
collapse: K(s, e),
|
|
2103
2092
|
hasDelete: i !== void 0 && !a,
|
|
2104
2093
|
onCollapse: (t) => {
|
|
2105
|
-
|
|
2094
|
+
q(s, e, t);
|
|
2106
2095
|
},
|
|
2107
2096
|
onMenu: (t, n) => {
|
|
2108
|
-
|
|
2097
|
+
H.emit("propTreeMenu", {
|
|
2109
2098
|
x: t,
|
|
2110
2099
|
y: n,
|
|
2111
2100
|
keys: e
|
|
@@ -2121,29 +2110,29 @@ var gn = "20px", _n = /* @__PURE__ */ p({
|
|
|
2121
2110
|
})());
|
|
2122
2111
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2123
2112
|
let t = [];
|
|
2124
|
-
return t.push(l),
|
|
2113
|
+
return t.push(l), K(s, e) || t.push(d), t;
|
|
2125
2114
|
})());
|
|
2126
2115
|
}, O = (e, t, r, i, a) => {
|
|
2127
2116
|
if (!t.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2128
2117
|
if (!t.array) throw Error("renderLeafArray property array must be valid");
|
|
2129
|
-
let o =
|
|
2130
|
-
|
|
2118
|
+
let o = ye(e, t, r, i, a, u), l = n(t.name);
|
|
2119
|
+
K(s, e) && Q(c.value, e) && (l += " *");
|
|
2131
2120
|
let d = m(lt, {
|
|
2132
2121
|
title: l,
|
|
2133
|
-
collapse:
|
|
2122
|
+
collapse: K(s, e),
|
|
2134
2123
|
hasCreate: !0,
|
|
2135
2124
|
onCollapse: (t) => {
|
|
2136
|
-
|
|
2125
|
+
q(s, e, t);
|
|
2137
2126
|
},
|
|
2138
2127
|
onMenu: (t, n) => {
|
|
2139
|
-
|
|
2128
|
+
H.emit("propTreeMenu", {
|
|
2140
2129
|
x: t,
|
|
2141
2130
|
y: n,
|
|
2142
2131
|
keys: e
|
|
2143
2132
|
});
|
|
2144
2133
|
},
|
|
2145
2134
|
onCreate: () => {
|
|
2146
|
-
o.push(
|
|
2135
|
+
o.push(z(t)), u(e, o);
|
|
2147
2136
|
}
|
|
2148
2137
|
}), f = m("div", { style: { paddingLeft: gn } }, (() => {
|
|
2149
2138
|
let n = [];
|
|
@@ -2152,7 +2141,7 @@ var gn = "20px", _n = /* @__PURE__ */ p({
|
|
|
2152
2141
|
})());
|
|
2153
2142
|
return m("div", { style: { marginTop: "1px" } }, (() => {
|
|
2154
2143
|
let t = [];
|
|
2155
|
-
return t.push(d),
|
|
2144
|
+
return t.push(d), K(s, e) || t.push(f), t;
|
|
2156
2145
|
})());
|
|
2157
2146
|
}, k = (e, t, n, r, i) => {
|
|
2158
2147
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"x-error-lib": "^0.5.16",
|
|
33
33
|
"x-essential-lib": "^0.9.29",
|
|
34
34
|
"x-group-list": "^0.4.12",
|
|
35
|
-
"x-runtime-lib": "^0.9.
|
|
35
|
+
"x-runtime-lib": "^0.9.3",
|
|
36
36
|
"x-state-lib": "^0.3.42"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|