x-prop-tree 0.7.31 → 0.7.32
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 +70 -70
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { provide as re, inject as ae, defineComponent as E, ref as O, computed as L, resolveComponent as $, createBlock as B, openBlock as k, unref as M, isRef as ue, withCtx as K, createVNode as w, createElementBlock as q, Fragment as me, renderList as Me, createTextVNode as ge, toDisplayString as J, resolveDirective as ee, withDirectives as Z, withModifiers as X, normalizeStyle as G, createElementVNode as D, createCommentVNode as Y, onMounted as Oe, onBeforeUnmount as Be, watch as ie, useModel as F, useId as _e, onUnmounted as Se, withKeys as
|
|
1
|
+
import { provide as re, inject as ae, defineComponent as E, ref as O, computed as L, resolveComponent as $, createBlock as B, openBlock as k, unref as M, isRef as ue, withCtx as K, createVNode as w, createElementBlock as q, Fragment as me, renderList as Me, createTextVNode as ge, toDisplayString as J, resolveDirective as ee, withDirectives as Z, withModifiers as X, normalizeStyle as G, createElementVNode as D, createCommentVNode as Y, onMounted as Oe, onBeforeUnmount as Be, watch as ie, useModel as F, useId as _e, onUnmounted as Se, withKeys as Ae, mergeProps as Ve, mergeModels as j, useTemplateRef as Ye, watchEffect as He, h as S, renderSlot as St, reactive as Vt } from "vue";
|
|
2
2
|
import { useI18n as ne } from "vue-i18n";
|
|
3
3
|
import { useViewStack as ye, useColor as I, globalObjects as Ct, useSystem as le, eventBus as fe, injectDark as $t, injectLocale as Ut, openNumberDlg as We, openPromptDlg as bt } from "x-essential-lib";
|
|
4
|
-
import { getPropertyDefault as H, pkgs as qe,
|
|
5
|
-
import { c as Qe, i as
|
|
4
|
+
import { getPropertyDefault as H, pkgs as qe, getTag as wt, elements as Mt, makeSlotId as Fe, parsePixelStr as At, parsePercentStr as Pt } from "x-runtime-lib";
|
|
5
|
+
import { c as Qe, i as Pe, r as pe, d as Ze, v as je } from "./vendor.f0ug048x.js";
|
|
6
6
|
import { globalState as Ke } from "x-state-lib";
|
|
7
7
|
import { useDisplay as Re } from "vuetify";
|
|
8
8
|
import { XBlockly as Lt } from "x-block-lib";
|
|
@@ -83,7 +83,7 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
|
|
|
83
83
|
}, Ee = (t) => !(t instanceof Array), Le = (t) => t instanceof Array, Tt = [
|
|
84
84
|
["basic", "id"],
|
|
85
85
|
["basic", "name"]
|
|
86
|
-
], Nt = (t) => Tt.find((s) =>
|
|
86
|
+
], Nt = (t) => Tt.find((s) => Pe(t, s)), De = (t, s, l, e, n, o, i) => (t = Qe(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Nt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Le(e.children) ? qt(
|
|
87
87
|
t,
|
|
88
88
|
s,
|
|
89
89
|
l,
|
|
@@ -153,7 +153,7 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
|
|
|
153
153
|
) && (a.change = !0), a.change && (e.change = !0);
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
return e.change || (e.change = !
|
|
156
|
+
return e.change || (e.change = !Pe(r, H(s))), e.change;
|
|
157
157
|
}, Bt = (t, s, l, e, n, o, i) => {
|
|
158
158
|
if (s.ui)
|
|
159
159
|
return console.assert(
|
|
@@ -199,12 +199,12 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
|
|
|
199
199
|
u,
|
|
200
200
|
!1
|
|
201
201
|
) && (e.change = !0);
|
|
202
|
-
return e.change || (e.change = !
|
|
202
|
+
return e.change || (e.change = !Pe(r, H(s))), e.change;
|
|
203
203
|
}, Kt = (t, s, l, e, n) => {
|
|
204
204
|
if (!t.ui)
|
|
205
205
|
return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
|
|
206
206
|
let o;
|
|
207
|
-
return e !== void 0 && !n ? o = s[e] : o = s[t.key], l.change = !
|
|
207
|
+
return e !== void 0 && !n ? o = s[e] : o = s[t.key], l.change = !Pe(o, H(t, !0)), l.change;
|
|
208
208
|
}, Ge = (t, s, l, e) => {
|
|
209
209
|
if (s.length <= 0 || !l) {
|
|
210
210
|
t.value = {};
|
|
@@ -286,17 +286,17 @@ const jt = /* @__PURE__ */ E({
|
|
|
286
286
|
const V = be(l.value, u.value);
|
|
287
287
|
if (V)
|
|
288
288
|
if (V.ui) {
|
|
289
|
-
const
|
|
290
|
-
if (!
|
|
289
|
+
const A = xe(e.value, u.value.slice(0, -1));
|
|
290
|
+
if (!A)
|
|
291
291
|
return;
|
|
292
|
-
|
|
292
|
+
A[u.value[u.value.length - 1]] = H(V), o(u.value, A[u.value[u.value.length - 1]]);
|
|
293
293
|
} else if (V.array) {
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
294
|
+
const A = u.value[u.value.length - 1];
|
|
295
|
+
if (A === void 0) {
|
|
296
296
|
console.assert(!1, "invalid last key");
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
if (typeof
|
|
299
|
+
if (typeof A == "string") {
|
|
300
300
|
const T = xe(e.value, u.value.slice(0, -1));
|
|
301
301
|
if (!T)
|
|
302
302
|
return;
|
|
@@ -310,11 +310,11 @@ const jt = /* @__PURE__ */ E({
|
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
} else {
|
|
313
|
-
const
|
|
314
|
-
if (!
|
|
313
|
+
const A = xe(e.value, u.value);
|
|
314
|
+
if (!A)
|
|
315
315
|
return;
|
|
316
316
|
V.children.forEach((T) => {
|
|
317
|
-
|
|
317
|
+
A[T.key] = H(V), o([...u.value, T.key], A[T.key]);
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
};
|
|
@@ -337,13 +337,13 @@ const jt = /* @__PURE__ */ E({
|
|
|
337
337
|
if (!V)
|
|
338
338
|
return !1;
|
|
339
339
|
try {
|
|
340
|
-
const { property:
|
|
341
|
-
if (!
|
|
340
|
+
const { property: A } = JSON.parse(V);
|
|
341
|
+
if (!A)
|
|
342
342
|
return !1;
|
|
343
343
|
const T = be(l.value, u.value);
|
|
344
|
-
return Dt(
|
|
345
|
-
} catch (
|
|
346
|
-
console.error(
|
|
344
|
+
return Dt(A, T);
|
|
345
|
+
} catch (A) {
|
|
346
|
+
console.error(A);
|
|
347
347
|
}
|
|
348
348
|
return !1;
|
|
349
349
|
}, g = () => {
|
|
@@ -352,10 +352,10 @@ const jt = /* @__PURE__ */ E({
|
|
|
352
352
|
const V = localStorage.getItem("propTreeCopy");
|
|
353
353
|
if (V)
|
|
354
354
|
try {
|
|
355
|
-
const { object:
|
|
356
|
-
console.log(
|
|
357
|
-
} catch (
|
|
358
|
-
console.error(
|
|
355
|
+
const { object: A } = JSON.parse(V), T = be(l.value, u.value);
|
|
356
|
+
console.log(A, T);
|
|
357
|
+
} catch (A) {
|
|
358
|
+
console.error(A);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
U() && x.push({
|
|
@@ -369,7 +369,7 @@ const jt = /* @__PURE__ */ E({
|
|
|
369
369
|
i.value = x.x, r.value = x.y, u.value = x.keys;
|
|
370
370
|
}, { open: C } = ye("propTreeMenu", d);
|
|
371
371
|
return (x, U) => {
|
|
372
|
-
const g = $("v-list-item-title"), V = $("v-list-item"),
|
|
372
|
+
const g = $("v-list-item-title"), V = $("v-list-item"), A = $("v-list"), T = $("v-menu");
|
|
373
373
|
return k(), B(T, {
|
|
374
374
|
modelValue: M(C),
|
|
375
375
|
"onUpdate:modelValue": U[0] || (U[0] = (Q) => ue(C) ? C.value = Q : null),
|
|
@@ -378,7 +378,7 @@ const jt = /* @__PURE__ */ E({
|
|
|
378
378
|
target: a.value
|
|
379
379
|
}, {
|
|
380
380
|
default: K(() => [
|
|
381
|
-
w(
|
|
381
|
+
w(A, null, {
|
|
382
382
|
default: K(() => [
|
|
383
383
|
(k(!0), q(me, null, Me(p.value, (Q, he) => (k(), B(V, {
|
|
384
384
|
key: he,
|
|
@@ -483,8 +483,8 @@ function en(t, s, l) {
|
|
|
483
483
|
count: 0
|
|
484
484
|
});
|
|
485
485
|
let V = 0;
|
|
486
|
-
for (const
|
|
487
|
-
const T = Mt[
|
|
486
|
+
for (const A of U.items) {
|
|
487
|
+
const T = Mt[A];
|
|
488
488
|
if (T && !T.internal && T.slots)
|
|
489
489
|
for (const Q of T.slots) {
|
|
490
490
|
const he = Fe("elementSlot", T.key, Q.key), Te = `${e.global.t(T.name)} / ${e.global.t(Q.name)}`;
|
|
@@ -514,11 +514,11 @@ function en(t, s, l) {
|
|
|
514
514
|
const U = d[x.id];
|
|
515
515
|
if (U && U.meta.slots)
|
|
516
516
|
for (const g of U.meta.slots) {
|
|
517
|
-
const V = Fe("customSlot", x.id, g.id),
|
|
517
|
+
const V = Fe("customSlot", x.id, g.id), A = `${x.name} / ${g.name}`;
|
|
518
518
|
m.push({
|
|
519
519
|
id: V,
|
|
520
520
|
type: 1,
|
|
521
|
-
name:
|
|
521
|
+
name: A,
|
|
522
522
|
position: C++,
|
|
523
523
|
group: x.groupId
|
|
524
524
|
});
|
|
@@ -752,7 +752,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
752
752
|
"no-click-animation": "",
|
|
753
753
|
persistent: "",
|
|
754
754
|
transition: "scroll-x-reverse-transition",
|
|
755
|
-
onKeydown: d[6] || (d[6] =
|
|
755
|
+
onKeydown: d[6] || (d[6] = Ae(X((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
756
756
|
}, {
|
|
757
757
|
activator: K(({ props: g }) => [
|
|
758
758
|
w(C, Ve(g, {
|
|
@@ -1034,7 +1034,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1034
1034
|
"no-click-animation": "",
|
|
1035
1035
|
persistent: "",
|
|
1036
1036
|
transition: "scroll-x-reverse-transition",
|
|
1037
|
-
onKeydown: d[6] || (d[6] =
|
|
1037
|
+
onKeydown: d[6] || (d[6] = Ae(X((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1038
1038
|
}, {
|
|
1039
1039
|
activator: K(({ props: g }) => [
|
|
1040
1040
|
w(C, Ve(g, {
|
|
@@ -1164,7 +1164,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1164
1164
|
"no-click-animation": "",
|
|
1165
1165
|
persistent: "",
|
|
1166
1166
|
transition: "dialog-bottom-transition",
|
|
1167
|
-
onKeydown: d[5] || (d[5] =
|
|
1167
|
+
onKeydown: d[5] || (d[5] = Ae(X((V) => v.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1168
1168
|
}, {
|
|
1169
1169
|
activator: K(({ props: V }) => [
|
|
1170
1170
|
w(C, Ve(V, {
|
|
@@ -1228,7 +1228,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1228
1228
|
}, 8, ["modelValue"]);
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
}), Mn = { class: "d-flex justify-space-between align-center my-2" },
|
|
1231
|
+
}), Mn = { class: "d-flex justify-space-between align-center my-2" }, An = { class: "flex-grow-1" }, Pn = /* @__PURE__ */ E({
|
|
1232
1232
|
__name: "index",
|
|
1233
1233
|
props: /* @__PURE__ */ j({
|
|
1234
1234
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1267,17 +1267,17 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1267
1267
|
C !== void 0 && (m.value = C);
|
|
1268
1268
|
};
|
|
1269
1269
|
return He(() => {
|
|
1270
|
-
c.value?.ui === "pixelInput" ? m.value =
|
|
1270
|
+
c.value?.ui === "pixelInput" ? m.value = At(n.value) : c.value?.ui === "percentInput" && (m.value = Pt(n.value));
|
|
1271
1271
|
}), ie(m, (d) => {
|
|
1272
1272
|
c.value?.ui === "pixelInput" ? n.value = d + "px" : c.value?.ui === "percentInput" && (n.value = d + "%");
|
|
1273
1273
|
}), (d, C) => {
|
|
1274
1274
|
const x = $("v-select"), U = $("v-number-input"), g = $("v-btn"), V = ee("ripple");
|
|
1275
1275
|
return k(), q("div", Mn, [
|
|
1276
|
-
D("div",
|
|
1276
|
+
D("div", An, [
|
|
1277
1277
|
Z(w(x, {
|
|
1278
1278
|
modelValue: u.value,
|
|
1279
1279
|
"onUpdate:modelValue": [
|
|
1280
|
-
C[0] || (C[0] = (
|
|
1280
|
+
C[0] || (C[0] = (A) => u.value = A),
|
|
1281
1281
|
v
|
|
1282
1282
|
],
|
|
1283
1283
|
density: "compact",
|
|
@@ -1295,7 +1295,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1295
1295
|
c.value?.ui === "pixelInput" || c.value?.ui === "percentInput" ? Z((k(), B(U, {
|
|
1296
1296
|
key: 0,
|
|
1297
1297
|
modelValue: m.value,
|
|
1298
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
1298
|
+
"onUpdate:modelValue": C[1] || (C[1] = (A) => m.value = A),
|
|
1299
1299
|
"control-variant": "stacked",
|
|
1300
1300
|
density: "compact",
|
|
1301
1301
|
"hide-details": "",
|
|
@@ -1320,7 +1320,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1320
1320
|
density: "compact",
|
|
1321
1321
|
icon: "mdi-minus",
|
|
1322
1322
|
variant: "text",
|
|
1323
|
-
onClick: C[2] || (C[2] = X((
|
|
1323
|
+
onClick: C[2] || (C[2] = X((A) => o("delete"), ["stop"]))
|
|
1324
1324
|
})) : Y("", !0)
|
|
1325
1325
|
]);
|
|
1326
1326
|
};
|
|
@@ -1531,7 +1531,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
|
|
|
1531
1531
|
"no-click-animation": "",
|
|
1532
1532
|
persistent: "",
|
|
1533
1533
|
transition: "scroll-x-reverse-transition",
|
|
1534
|
-
onKeydown: d[6] || (d[6] =
|
|
1534
|
+
onKeydown: d[6] || (d[6] = Ae(X((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1535
1535
|
}, {
|
|
1536
1536
|
activator: K(({ props: g }) => [
|
|
1537
1537
|
w(C, Ve(g, {
|
|
@@ -1789,7 +1789,7 @@ function Zn(t) {
|
|
|
1789
1789
|
}) };
|
|
1790
1790
|
}
|
|
1791
1791
|
function jn(t) {
|
|
1792
|
-
return { renderUiMultiTypes: (l, e, n, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), S("div", "renderUiMultiTypes property ui must be multiTypes")) : S(
|
|
1792
|
+
return { renderUiMultiTypes: (l, e, n, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), S("div", "renderUiMultiTypes property ui must be multiTypes")) : S(Pn, {
|
|
1793
1793
|
modelValue: te(
|
|
1794
1794
|
l,
|
|
1795
1795
|
e,
|
|
@@ -2079,7 +2079,7 @@ const il = /* @__PURE__ */ E({
|
|
|
2079
2079
|
c,
|
|
2080
2080
|
r,
|
|
2081
2081
|
u
|
|
2082
|
-
), { renderUiDummy: g } = Qn(v), { renderUiStrInput: V } = ol(v), { renderUiNumInput:
|
|
2082
|
+
), { renderUiDummy: g } = Qn(v), { renderUiStrInput: V } = ol(v), { renderUiNumInput: A } = In(v), { renderUiSwitch: T } = sl(v), { renderUiSelect: Q } = nl(v), { renderUiColorPicker: he } = Yn(v), { renderUiJsonEditor: Te } = Zn(v), { renderUiMultiTypes: ct } = jn(v), { renderUiCompSelect: dt } = Wn(v), { renderUiSlotSelect: mt } = ll(v), { renderUiAdaptSlotSelect: ft } = Gn(v), Ce = (y, f, _, h, b, N) => (y = Qe(y), b !== void 0 ? (y.push(b), N && y.push(f.key)) : y.push(f.key), f.ui ? f.array && h ? gt(
|
|
2083
2083
|
y,
|
|
2084
2084
|
f,
|
|
2085
2085
|
_,
|
|
@@ -2115,11 +2115,11 @@ const il = /* @__PURE__ */ E({
|
|
|
2115
2115
|
title: ce,
|
|
2116
2116
|
collapse: h.collapse,
|
|
2117
2117
|
hasCreate: !0,
|
|
2118
|
-
onCollapse: (
|
|
2119
|
-
h.collapse =
|
|
2118
|
+
onCollapse: (P) => {
|
|
2119
|
+
h.collapse = P;
|
|
2120
2120
|
},
|
|
2121
|
-
onMenu: (
|
|
2122
|
-
fe.emit("propTreeMenu", { x:
|
|
2121
|
+
onMenu: (P, R) => {
|
|
2122
|
+
fe.emit("propTreeMenu", { x: P, y: R, keys: y });
|
|
2123
2123
|
},
|
|
2124
2124
|
onCreate: () => {
|
|
2125
2125
|
z.push({}), v(y, z);
|
|
@@ -2132,7 +2132,7 @@ const il = /* @__PURE__ */ E({
|
|
|
2132
2132
|
}
|
|
2133
2133
|
},
|
|
2134
2134
|
(() => {
|
|
2135
|
-
const
|
|
2135
|
+
const P = [];
|
|
2136
2136
|
for (let R = 0; R < z.length; R++) {
|
|
2137
2137
|
if (!Ne(h.children)) {
|
|
2138
2138
|
console.assert(!1);
|
|
@@ -2168,7 +2168,7 @@ const il = /* @__PURE__ */ E({
|
|
|
2168
2168
|
h.children.splice(se, 1), z.splice(se, 1), v(y, z);
|
|
2169
2169
|
}
|
|
2170
2170
|
});
|
|
2171
|
-
|
|
2171
|
+
P.push(kt);
|
|
2172
2172
|
const xt = S(
|
|
2173
2173
|
"div",
|
|
2174
2174
|
{
|
|
@@ -2199,9 +2199,9 @@ const il = /* @__PURE__ */ E({
|
|
|
2199
2199
|
}), se;
|
|
2200
2200
|
})()
|
|
2201
2201
|
);
|
|
2202
|
-
h.children[R].collapse ||
|
|
2202
|
+
h.children[R].collapse || P.push(xt);
|
|
2203
2203
|
}
|
|
2204
|
-
return
|
|
2204
|
+
return P;
|
|
2205
2205
|
})()
|
|
2206
2206
|
);
|
|
2207
2207
|
return S(
|
|
@@ -2212,8 +2212,8 @@ const il = /* @__PURE__ */ E({
|
|
|
2212
2212
|
}
|
|
2213
2213
|
},
|
|
2214
2214
|
(() => {
|
|
2215
|
-
const
|
|
2216
|
-
return
|
|
2215
|
+
const P = [];
|
|
2216
|
+
return P.push(ke), h.collapse || P.push(W), P;
|
|
2217
2217
|
})()
|
|
2218
2218
|
);
|
|
2219
2219
|
}, pt = (y, f, _, h, b, N) => {
|
|
@@ -2232,8 +2232,8 @@ const il = /* @__PURE__ */ E({
|
|
|
2232
2232
|
onCollapse: (W) => {
|
|
2233
2233
|
h.collapse = W;
|
|
2234
2234
|
},
|
|
2235
|
-
onMenu: (W,
|
|
2236
|
-
fe.emit("propTreeMenu", { x: W, y:
|
|
2235
|
+
onMenu: (W, P) => {
|
|
2236
|
+
fe.emit("propTreeMenu", { x: W, y: P, keys: y });
|
|
2237
2237
|
},
|
|
2238
2238
|
onDelete: () => {
|
|
2239
2239
|
b === void 0 || N || (_.splice(b, 1), v(y.slice(0, -1), _));
|
|
@@ -2247,20 +2247,20 @@ const il = /* @__PURE__ */ E({
|
|
|
2247
2247
|
},
|
|
2248
2248
|
(() => {
|
|
2249
2249
|
const W = [];
|
|
2250
|
-
return f.children.forEach((
|
|
2250
|
+
return f.children.forEach((P) => {
|
|
2251
2251
|
if (!ze(h.children)) {
|
|
2252
2252
|
console.assert(!1);
|
|
2253
2253
|
return;
|
|
2254
2254
|
}
|
|
2255
|
-
h.children[
|
|
2255
|
+
h.children[P.key] || (h.children[P.key] = {
|
|
2256
2256
|
collapse: !0,
|
|
2257
|
-
children: !
|
|
2257
|
+
children: !P.ui && P.array ? [] : {}
|
|
2258
2258
|
});
|
|
2259
2259
|
const R = Ce(
|
|
2260
2260
|
y,
|
|
2261
|
-
|
|
2261
|
+
P,
|
|
2262
2262
|
(typeof _[f.key] != "object" && (_[f.key] = {}, v(y, _[f.key])), _[f.key]),
|
|
2263
|
-
h.children[
|
|
2263
|
+
h.children[P.key]
|
|
2264
2264
|
);
|
|
2265
2265
|
W.push(R);
|
|
2266
2266
|
}), W;
|
|
@@ -2293,11 +2293,11 @@ const il = /* @__PURE__ */ E({
|
|
|
2293
2293
|
title: ce,
|
|
2294
2294
|
collapse: h.collapse,
|
|
2295
2295
|
hasCreate: !0,
|
|
2296
|
-
onCollapse: (
|
|
2297
|
-
h.collapse =
|
|
2296
|
+
onCollapse: (P) => {
|
|
2297
|
+
h.collapse = P;
|
|
2298
2298
|
},
|
|
2299
|
-
onMenu: (
|
|
2300
|
-
fe.emit("propTreeMenu", { x:
|
|
2299
|
+
onMenu: (P, R) => {
|
|
2300
|
+
fe.emit("propTreeMenu", { x: P, y: R, keys: y });
|
|
2301
2301
|
},
|
|
2302
2302
|
onCreate: () => {
|
|
2303
2303
|
z.push(H(f, !0)), v(y, z);
|
|
@@ -2310,12 +2310,12 @@ const il = /* @__PURE__ */ E({
|
|
|
2310
2310
|
}
|
|
2311
2311
|
},
|
|
2312
2312
|
(() => {
|
|
2313
|
-
const
|
|
2313
|
+
const P = [];
|
|
2314
2314
|
for (let R = 0; R < z.length; R++) {
|
|
2315
2315
|
const $e = Ce(y, f, z, void 0, R, !1);
|
|
2316
|
-
|
|
2316
|
+
P.push($e);
|
|
2317
2317
|
}
|
|
2318
|
-
return
|
|
2318
|
+
return P;
|
|
2319
2319
|
})()
|
|
2320
2320
|
);
|
|
2321
2321
|
return S(
|
|
@@ -2326,15 +2326,15 @@ const il = /* @__PURE__ */ E({
|
|
|
2326
2326
|
}
|
|
2327
2327
|
},
|
|
2328
2328
|
(() => {
|
|
2329
|
-
const
|
|
2330
|
-
return
|
|
2329
|
+
const P = [];
|
|
2330
|
+
return P.push(ke), h.collapse || P.push(W), P;
|
|
2331
2331
|
})()
|
|
2332
2332
|
);
|
|
2333
2333
|
}, yt = (y, f, _, h, b) => {
|
|
2334
2334
|
if (!f.ui)
|
|
2335
2335
|
return console.assert(!1), S("div", "renderLeafScalar property ui must be valid");
|
|
2336
2336
|
let N;
|
|
2337
|
-
return f.ui === "dummy" ? N = g(y, f, _, h, b) : f.ui === "strInput" ? N = V(y, f, _, h, b) : f.ui === "numInput" ? N =
|
|
2337
|
+
return f.ui === "dummy" ? N = g(y, f, _, h, b) : f.ui === "strInput" ? N = V(y, f, _, h, b) : f.ui === "numInput" ? N = A(y, f, _, h, b) : f.ui === "switch" ? N = T(y, f, _, h, b) : f.ui === "select" ? N = Q(y, f, _, h, b) : f.ui === "colorPicker" ? N = he(y, f, _, h, b) : f.ui === "jsonEditor" ? N = Te(y, f, _, h, b) : f.ui === "multiTypes" ? N = ct(y, f, _, h, b) : f.ui === "selectComp" ? N = dt(y, f, _, h, b) : f.ui === "selectSlot" ? N = mt(y, f, _, h, b) : f.ui === "selectAdaptSlot" ? N = ft(y, f, _, h, b) : console.assert(!1, "renderLeafScalar not implemented"), N ? U(y, f, N) : S("div");
|
|
2338
2338
|
}, ht = () => S(
|
|
2339
2339
|
"div",
|
|
2340
2340
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.32",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"vue": "^3.5.26",
|
|
27
27
|
"vue-i18n": "^11.2.2",
|
|
28
28
|
"vuetify": "^3.11.4",
|
|
29
|
-
"x-block-lib": "^0.8.
|
|
29
|
+
"x-block-lib": "^0.8.83",
|
|
30
30
|
"x-essential-lib": "^0.9.20",
|
|
31
31
|
"x-group-list": "^0.4.7",
|
|
32
|
-
"x-runtime-lib": "^0.8.
|
|
33
|
-
"x-state-lib": "^0.3.
|
|
32
|
+
"x-runtime-lib": "^0.8.158",
|
|
33
|
+
"x-state-lib": "^0.3.34"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "^9.39.2",
|