x-prop-tree 0.7.27 → 0.7.28

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.
Files changed (2) hide show
  1. package/dist/index.js +77 -77
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { provide as re, inject as ae, defineComponent as E, ref as O, computed as A, 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 Pe, mergeProps as Ve, mergeModels as j, useTemplateRef as Ye, watchEffect as He, h as S, renderSlot as St, reactive as Vt } from "vue";
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 Pe, 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, getPropertyTag as wt, elements as Mt, makeSlotId as Fe, parsePixelStr as Pt, parsePercentStr as Lt } from "x-runtime-lib";
5
- import { c as Qe, i as Le, r as pe, d as Ze, v as je } from "./vendor.f0ug048x.js";
4
+ import { getPropertyDefault as H, pkgs as qe, getPropertyTag as wt, elements as Mt, makeSlotId as Fe, parsePixelStr as Pt, parsePercentStr as At } from "x-runtime-lib";
5
+ import { c as Qe, i as Ae, 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
- import { XBlockly as At } from "x-block-lib";
8
+ import { XBlockly as Lt } from "x-block-lib";
9
9
  const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t, s) => {
10
10
  const l = (e, n) => {
11
11
  if (e.ui !== n.ui || e.array !== n.array)
@@ -78,12 +78,12 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
78
78
  i ? e !== l[s.key] && (l[s.key] = e, n(t, l[s.key])) : e !== l[o] && (l[o] = e, n(t, l[o]));
79
79
  else {
80
80
  let r = e;
81
- (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (r = void 0)), r !== l[s.key] && (l[s.key] = r, n(t, l[s.key]));
81
+ (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "selectComp" || s.ui === "selectSlot" || s.ui === "selectAdaptSlot") && (e || (r = void 0)), r !== l[s.key] && (l[s.key] = r, n(t, l[s.key]));
82
82
  }
83
- }, Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Tt = [
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) => Le(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 && Ae(e.children) ? qt(
86
+ ], Nt = (t) => Tt.find((s) => Ae(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,
@@ -121,7 +121,7 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
121
121
  !1,
122
122
  "execPropertyBranchArray property array must be valid"
123
123
  ), !1;
124
- if (!e.children || !Ae(e.children))
124
+ if (!e.children || !Le(e.children))
125
125
  return console.assert(
126
126
  !1,
127
127
  "execPropertyBranchArray state children must be array"
@@ -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 = !Le(r, H(s))), e.change;
156
+ return e.change || (e.change = !Ae(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(
@@ -182,7 +182,7 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
182
182
  return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
183
183
  if (!s.array)
184
184
  return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
185
- if (!e.children || !Ae(e.children))
185
+ if (!e.children || !Le(e.children))
186
186
  return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
187
187
  let r;
188
188
  o !== void 0 && !i ? (l[o] instanceof Array || (l[o] = H(s), n?.(t, l[o])), r = l[o]) : (l[s.key] instanceof Array || (l[s.key] = H(s), n?.(t, l[s.key])), r = l[s.key]), e.change = !1;
@@ -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 = !Le(r, H(s))), e.change;
202
+ return e.change || (e.change = !Ae(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 = !Le(o, H(t, !0)), l.change;
207
+ return e !== void 0 && !n ? o = s[e] : o = s[t.key], l.change = !Ae(o, H(t, !0)), l.change;
208
208
  }, Ge = (t, s, l, e) => {
209
209
  if (s.length <= 0 || !l) {
210
210
  t.value = {};
@@ -227,7 +227,7 @@ const ze = (t) => !(t instanceof Array), Ne = (t) => t instanceof Array, Dt = (t
227
227
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
228
228
  if (!l.children)
229
229
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
230
- typeof e == "string" ? Ee(l.children) && (l = l.children[e]) : Ae(l.children) && (l = l.children[e]);
230
+ typeof e == "string" ? Ee(l.children) && (l = l.children[e]) : Le(l.children) && (l = l.children[e]);
231
231
  }), l?.change ?? !1;
232
232
  }, Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol(), ot = Symbol(), st = Symbol(), it = Symbol();
233
233
  function Rt(t) {
@@ -281,7 +281,7 @@ function at() {
281
281
  const jt = /* @__PURE__ */ E({
282
282
  __name: "index",
283
283
  setup(t) {
284
- const { t: s } = ne(), l = Jt(), e = Ht(), n = zt(), o = Yt(), i = O(0), r = O(0), u = O([]), a = A(() => [i.value, r.value]), c = (x) => {
284
+ const { t: s } = ne(), l = Jt(), e = Ht(), n = zt(), o = Yt(), i = O(0), r = O(0), u = O([]), a = L(() => [i.value, r.value]), c = (x) => {
285
285
  const U = () => !(u.value.length <= 0 || !ve(n.value, u.value)), g = () => {
286
286
  const V = be(l.value, u.value);
287
287
  if (V)
@@ -362,7 +362,7 @@ const jt = /* @__PURE__ */ E({
362
362
  title: s("x-prop-tree.paste"),
363
363
  func: g
364
364
  });
365
- }, p = A(() => {
365
+ }, p = L(() => {
366
366
  const x = [];
367
367
  return c(x), v(x), m(x), x;
368
368
  }), d = (x) => {
@@ -414,7 +414,7 @@ const jt = /* @__PURE__ */ E({
414
414
  },
415
415
  emits: ["collapse", "menu", "create", "delete"],
416
416
  setup(t, { emit: s }) {
417
- const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = A(() => ({
417
+ const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = L(() => ({
418
418
  background: o.value ? e.value : l.value,
419
419
  height: "36px",
420
420
  marginBottom: "1px",
@@ -617,7 +617,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
617
617
  },
618
618
  emits: ["x-click"],
619
619
  setup(t, { emit: s }) {
620
- const { backgroundColor2: l, highlightColor: e } = I(), n = t, o = s, i = O(!1), r = A(() => ({
620
+ const { backgroundColor2: l, highlightColor: e } = I(), n = t, o = s, i = O(!1), r = L(() => ({
621
621
  background: i.value ? e.value : l.value,
622
622
  height: "30px",
623
623
  marginBottom: "1px",
@@ -651,7 +651,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
651
651
  },
652
652
  emits: ["x-click"],
653
653
  setup(t, { emit: s }) {
654
- const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = A(() => ({
654
+ const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = L(() => ({
655
655
  background: o.value ? e.value : l.value,
656
656
  height: "48px",
657
657
  marginBottom: "1px",
@@ -720,22 +720,22 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
720
720
  },
721
721
  emits: ["update:modelValue"],
722
722
  setup(t) {
723
- const { t: s } = ne(), l = Re(), { sysBarAvail: e, nameList: n } = le(), { backgroundColor1: o } = I(), i = F(t, "modelValue"), r = at(), u = A(() => {
723
+ const { t: s } = ne(), l = Re(), { sysBarAvail: e, nameList: n } = le(), { backgroundColor1: o } = I(), i = F(t, "modelValue"), r = at(), u = L(() => {
724
724
  let p = "100%";
725
725
  return l.mdAndUp.value && (p = "400px"), {
726
726
  background: o.value,
727
727
  width: p,
728
728
  height: "100%"
729
729
  };
730
- }), a = A(() => {
730
+ }), a = L(() => {
731
731
  let p = 48;
732
732
  return e.value && (p += 24), {
733
733
  position: "relative",
734
734
  height: `calc(100% - ${p}px)`
735
735
  };
736
- }), c = A(() => ({
736
+ }), c = L(() => ({
737
737
  height: "60px"
738
- })), v = A(() => {
738
+ })), v = L(() => {
739
739
  if (!i.value)
740
740
  return s("x-runtime-lib.notSet");
741
741
  const p = pe(r, i.value);
@@ -832,12 +832,12 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
832
832
  }),
833
833
  emits: /* @__PURE__ */ j(["delete"], ["update:modelValue"]),
834
834
  setup(t, { emit: s }) {
835
- const { t: l } = ne(), e = F(t, "modelValue"), n = s, o = A(() => {
835
+ const { t: l } = ne(), e = F(t, "modelValue"), n = s, o = L(() => {
836
836
  let u = "100%";
837
837
  return t.hasDelete && (u = "calc(100% - 37px)"), {
838
838
  width: u
839
839
  };
840
- }), i = A(() => t.readonly), { open: r } = ye(`propTreeColorPickerMenu${_e()}`);
840
+ }), i = L(() => t.readonly), { open: r } = ye(`propTreeColorPickerMenu${_e()}`);
841
841
  return Se(() => {
842
842
  r.value = !1;
843
843
  }), (u, a) => {
@@ -899,7 +899,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
899
899
  },
900
900
  emits: ["x-click"],
901
901
  setup(t, { emit: s }) {
902
- const { backgroundColor2: l, highlightColor: e } = I(), n = t, o = s, i = O(!1), r = A(() => ({
902
+ const { backgroundColor2: l, highlightColor: e } = I(), n = t, o = s, i = O(!1), r = L(() => ({
903
903
  background: i.value ? e.value : l.value,
904
904
  height: "30px",
905
905
  marginBottom: "1px",
@@ -933,7 +933,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
933
933
  },
934
934
  emits: ["x-click"],
935
935
  setup(t, { emit: s }) {
936
- const { backgroundColor2: l, highlightColor: e } = I(), n = t, o = s, i = O(!1), r = A(() => ({
936
+ const { backgroundColor2: l, highlightColor: e } = I(), n = t, o = s, i = O(!1), r = L(() => ({
937
937
  background: i.value ? e.value : l.value,
938
938
  height: "48px",
939
939
  marginBottom: "1px",
@@ -1002,22 +1002,22 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1002
1002
  },
1003
1003
  emits: ["update:modelValue"],
1004
1004
  setup(t) {
1005
- const { t: s } = ne(), l = Re(), { sysBarAvail: e, nameList: n } = le(), { backgroundColor1: o } = I(), i = F(t, "modelValue"), r = ut(), u = A(() => {
1005
+ const { t: s } = ne(), l = Re(), { sysBarAvail: e, nameList: n } = le(), { backgroundColor1: o } = I(), i = F(t, "modelValue"), r = ut(), u = L(() => {
1006
1006
  let p = "100%";
1007
1007
  return l.mdAndUp.value && (p = "400px"), {
1008
1008
  background: o.value,
1009
1009
  width: p,
1010
1010
  height: "100%"
1011
1011
  };
1012
- }), a = A(() => {
1012
+ }), a = L(() => {
1013
1013
  let p = 48;
1014
1014
  return e.value && (p += 24), {
1015
1015
  position: "relative",
1016
1016
  height: `calc(100% - ${p}px)`
1017
1017
  };
1018
- }), c = A(() => ({
1018
+ }), c = L(() => ({
1019
1019
  height: "60px"
1020
- })), v = A(() => {
1020
+ })), v = L(() => {
1021
1021
  if (!i.value)
1022
1022
  return s("x-runtime-lib.notSet");
1023
1023
  const p = pe(r, i.value);
@@ -1118,7 +1118,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1118
1118
  return s({ save: () => {
1119
1119
  const v = u.value.save();
1120
1120
  l.value = JSON.stringify(v, null, 2);
1121
- } }), (v, m) => (k(), B(M(At), {
1121
+ } }), (v, m) => (k(), B(M(Lt), {
1122
1122
  ref_key: "target",
1123
1123
  ref: u,
1124
1124
  lock: e.value,
@@ -1140,14 +1140,14 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1140
1140
  },
1141
1141
  emits: ["update:modelValue"],
1142
1142
  setup(t) {
1143
- const { t: s } = ne(), { sysBarAvail: l } = le(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: o } = I(), i = F(t, "modelValue"), r = O(!1), u = O(1), a = A(() => {
1143
+ const { t: s } = ne(), { sysBarAvail: l } = le(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: o } = I(), i = F(t, "modelValue"), r = O(!1), u = O(1), a = L(() => {
1144
1144
  let p = 48;
1145
1145
  return l.value && (p += 24), {
1146
1146
  position: "relative",
1147
1147
  background: n.value,
1148
1148
  height: `calc(100% - ${p}px)`
1149
1149
  };
1150
- }), c = A(() => s("x-prop-tree.jsonEditor")), { open: v } = ye(`propTreejsonEditorDlg${_e()}`);
1150
+ }), c = L(() => s("x-prop-tree.jsonEditor")), { open: v } = ye(`propTreejsonEditorDlg${_e()}`);
1151
1151
  Se(() => {
1152
1152
  v.value = !1;
1153
1153
  });
@@ -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" }, Pn = { class: "flex-grow-1" }, Ln = /* @__PURE__ */ E({
1231
+ }), Mn = { class: "d-flex justify-space-between align-center my-2" }, Pn = { class: "flex-grow-1" }, An = /* @__PURE__ */ E({
1232
1232
  __name: "index",
1233
1233
  props: /* @__PURE__ */ j({
1234
1234
  hasDelete: { type: Boolean, default: !1 },
@@ -1239,7 +1239,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1239
1239
  }),
1240
1240
  emits: /* @__PURE__ */ j(["delete"], ["update:modelValue"]),
1241
1241
  setup(t, { emit: s }) {
1242
- const { t: l } = ne(), { isMobile: e } = le(), n = F(t, "modelValue"), o = s, i = Je(), r = A(() => qe[i.value].types[t.types]), u = O(0), a = A(() => {
1242
+ const { t: l } = ne(), { isMobile: e } = le(), n = F(t, "modelValue"), o = s, i = Je(), r = L(() => qe[i.value].types[t.types]), u = O(0), a = L(() => {
1243
1243
  const d = [];
1244
1244
  return r.value?.forEach(({ title: C }, x) => {
1245
1245
  d.push({
@@ -1251,7 +1251,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1251
1251
  He(() => {
1252
1252
  r.value?.some((d, C) => d.validator(n.value) ? (u.value = C, !0) : !1);
1253
1253
  });
1254
- const c = A(() => r.value?.[u.value]), v = () => {
1254
+ const c = L(() => r.value?.[u.value]), v = () => {
1255
1255
  n.value = c.value?.default;
1256
1256
  }, m = O(0), p = async (d) => {
1257
1257
  if (!d || !e() || c.value.ui !== "pixelInput" && c.value.ui !== "percentInput")
@@ -1267,7 +1267,7 @@ 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 = Pt(n.value) : c.value?.ui === "percentInput" && (m.value = Lt(n.value));
1270
+ c.value?.ui === "pixelInput" ? m.value = Pt(n.value) : c.value?.ui === "percentInput" && (m.value = At(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) => {
@@ -1325,7 +1325,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1325
1325
  ]);
1326
1326
  };
1327
1327
  }
1328
- }), An = { class: "d-flex justify-space-between align-center" }, Dn = /* @__PURE__ */ E({
1328
+ }), Ln = { class: "d-flex justify-space-between align-center" }, Dn = /* @__PURE__ */ E({
1329
1329
  __name: "index",
1330
1330
  props: /* @__PURE__ */ j({
1331
1331
  hasDelete: { type: Boolean, default: !1 },
@@ -1356,7 +1356,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1356
1356
  };
1357
1357
  return (i, r) => {
1358
1358
  const u = $("v-number-input"), a = $("v-btn"), c = ee("ripple");
1359
- return k(), q("div", An, [
1359
+ return k(), q("div", Ln, [
1360
1360
  Z(w(u, {
1361
1361
  modelValue: e.value,
1362
1362
  "onUpdate:modelValue": r[0] || (r[0] = (v) => e.value = v),
@@ -1401,7 +1401,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1401
1401
  }),
1402
1402
  emits: /* @__PURE__ */ j(["delete"], ["update:modelValue"]),
1403
1403
  setup(t, { emit: s }) {
1404
- const { t: l } = ne(), e = F(t, "modelValue"), n = s, o = Je(), i = A(() => {
1404
+ const { t: l } = ne(), e = F(t, "modelValue"), n = s, o = Je(), i = L(() => {
1405
1405
  const r = [];
1406
1406
  return qe[o.value].items[t.items].forEach(({ title: a, value: c }) => {
1407
1407
  r.push({ title: l(a), value: c });
@@ -1445,7 +1445,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1445
1445
  },
1446
1446
  emits: ["x-click"],
1447
1447
  setup(t, { emit: s }) {
1448
- const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = A(() => ({
1448
+ const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = L(() => ({
1449
1449
  background: o.value ? e.value : l.value,
1450
1450
  height: "48px",
1451
1451
  marginBottom: "1px",
@@ -1499,22 +1499,22 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1499
1499
  },
1500
1500
  emits: ["update:modelValue"],
1501
1501
  setup(t) {
1502
- const { t: s } = ne(), l = Re(), { sysBarAvail: e, nameList: n } = le(), { backgroundColor1: o } = I(), i = F(t, "modelValue"), r = rt(), u = A(() => {
1502
+ const { t: s } = ne(), l = Re(), { sysBarAvail: e, nameList: n } = le(), { backgroundColor1: o } = I(), i = F(t, "modelValue"), r = rt(), u = L(() => {
1503
1503
  let p = "100%";
1504
1504
  return l.mdAndUp.value && (p = "400px"), {
1505
1505
  background: o.value,
1506
1506
  width: p,
1507
1507
  height: "100%"
1508
1508
  };
1509
- }), a = A(() => {
1509
+ }), a = L(() => {
1510
1510
  let p = 48;
1511
1511
  return e.value && (p += 24), {
1512
1512
  position: "relative",
1513
1513
  height: `calc(100% - ${p}px)`
1514
1514
  };
1515
- }), c = A(() => ({
1515
+ }), c = L(() => ({
1516
1516
  height: "60px"
1517
- })), v = A(() => {
1517
+ })), v = L(() => {
1518
1518
  if (!i.value)
1519
1519
  return s("x-runtime-lib.notSet");
1520
1520
  const p = r.value.find((d) => d.id === i.value);
@@ -1683,7 +1683,7 @@ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-g
1683
1683
  }
1684
1684
  });
1685
1685
  function Gn(t) {
1686
- return { renderUiAdaptSlotSelect: (l, e, n, o, i) => e.ui !== "adaptSlotSelect" ? (console.assert(!1), S("div", "renderUiSlotSelect property ui must be adaptSlotSelect")) : S(fn, {
1686
+ return { renderUiAdaptSlotSelect: (l, e, n, o, i) => e.ui !== "selectAdaptSlot" ? (console.assert(!1), S("div", "renderUiSlotSelect property ui must be selectAdaptSlot")) : S(fn, {
1687
1687
  modelValue: te(
1688
1688
  l,
1689
1689
  e,
@@ -1734,7 +1734,7 @@ function Yn(t) {
1734
1734
  }) };
1735
1735
  }
1736
1736
  function Wn(t) {
1737
- return { renderUiCompSelect: (l, e, n, o, i) => e.ui !== "compSelect" ? (console.assert(!1), S("div", "renderUiCompSelect property ui must be compSelect")) : S($n, {
1737
+ return { renderUiCompSelect: (l, e, n, o, i) => e.ui !== "selectComp" ? (console.assert(!1), S("div", "renderUiCompSelect property ui must be selectComp")) : S($n, {
1738
1738
  modelValue: te(
1739
1739
  l,
1740
1740
  e,
@@ -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(Ln, {
1792
+ return { renderUiMultiTypes: (l, e, n, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), S("div", "renderUiMultiTypes property ui must be multiTypes")) : S(An, {
1793
1793
  modelValue: te(
1794
1794
  l,
1795
1795
  e,
@@ -1855,7 +1855,7 @@ const el = /* @__PURE__ */ E({
1855
1855
  },
1856
1856
  emits: ["menu"],
1857
1857
  setup(t, { emit: s }) {
1858
- const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = A(() => ({
1858
+ const { backgroundColor2: l, highlightColor: e } = I(), n = s, o = O(!1), i = L(() => ({
1859
1859
  background: o.value ? e.value : l.value,
1860
1860
  minHeight: t.minHeight,
1861
1861
  paddingRight: "4px",
@@ -1933,7 +1933,7 @@ function nl(t) {
1933
1933
  }) };
1934
1934
  }
1935
1935
  function ll(t) {
1936
- return { renderUiSlotSelect: (l, e, n, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), S("div", "renderUiSlotSelect property ui must be slotSelect")) : S(Jn, {
1936
+ return { renderUiSlotSelect: (l, e, n, o, i) => e.ui !== "selectSlot" ? (console.assert(!1), S("div", "renderUiSlotSelect property ui must be selectSlot")) : S(Jn, {
1937
1937
  modelValue: te(
1938
1938
  l,
1939
1939
  e,
@@ -2115,11 +2115,11 @@ const il = /* @__PURE__ */ E({
2115
2115
  title: ce,
2116
2116
  collapse: h.collapse,
2117
2117
  hasCreate: !0,
2118
- onCollapse: (L) => {
2119
- h.collapse = L;
2118
+ onCollapse: (A) => {
2119
+ h.collapse = A;
2120
2120
  },
2121
- onMenu: (L, R) => {
2122
- fe.emit("propTreeMenu", { x: L, y: R, keys: y });
2121
+ onMenu: (A, R) => {
2122
+ fe.emit("propTreeMenu", { x: A, 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 L = [];
2135
+ const A = [];
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
- L.push(kt);
2171
+ A.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 || L.push(xt);
2202
+ h.children[R].collapse || A.push(xt);
2203
2203
  }
2204
- return L;
2204
+ return A;
2205
2205
  })()
2206
2206
  );
2207
2207
  return S(
@@ -2212,8 +2212,8 @@ const il = /* @__PURE__ */ E({
2212
2212
  }
2213
2213
  },
2214
2214
  (() => {
2215
- const L = [];
2216
- return L.push(ke), h.collapse || L.push(W), L;
2215
+ const A = [];
2216
+ return A.push(ke), h.collapse || A.push(W), A;
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, L) => {
2236
- fe.emit("propTreeMenu", { x: W, y: L, keys: y });
2235
+ onMenu: (W, A) => {
2236
+ fe.emit("propTreeMenu", { x: W, y: A, 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((L) => {
2250
+ return f.children.forEach((A) => {
2251
2251
  if (!ze(h.children)) {
2252
2252
  console.assert(!1);
2253
2253
  return;
2254
2254
  }
2255
- h.children[L.key] || (h.children[L.key] = {
2255
+ h.children[A.key] || (h.children[A.key] = {
2256
2256
  collapse: !0,
2257
- children: !L.ui && L.array ? [] : {}
2257
+ children: !A.ui && A.array ? [] : {}
2258
2258
  });
2259
2259
  const R = Ce(
2260
2260
  y,
2261
- L,
2261
+ A,
2262
2262
  (typeof _[f.key] != "object" && (_[f.key] = {}, v(y, _[f.key])), _[f.key]),
2263
- h.children[L.key]
2263
+ h.children[A.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: (L) => {
2297
- h.collapse = L;
2296
+ onCollapse: (A) => {
2297
+ h.collapse = A;
2298
2298
  },
2299
- onMenu: (L, R) => {
2300
- fe.emit("propTreeMenu", { x: L, y: R, keys: y });
2299
+ onMenu: (A, R) => {
2300
+ fe.emit("propTreeMenu", { x: A, 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 L = [];
2313
+ const A = [];
2314
2314
  for (let R = 0; R < z.length; R++) {
2315
2315
  const $e = Ce(y, f, z, void 0, R, !1);
2316
- L.push($e);
2316
+ A.push($e);
2317
2317
  }
2318
- return L;
2318
+ return A;
2319
2319
  })()
2320
2320
  );
2321
2321
  return S(
@@ -2326,15 +2326,15 @@ const il = /* @__PURE__ */ E({
2326
2326
  }
2327
2327
  },
2328
2328
  (() => {
2329
- const L = [];
2330
- return L.push(ke), h.collapse || L.push(W), L;
2329
+ const A = [];
2330
+ return A.push(ke), h.collapse || A.push(W), A;
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 = P(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 === "compSelect" ? N = dt(y, f, _, h, b) : f.ui === "slotSelect" ? N = mt(y, f, _, h, b) : f.ui === "adaptSlotSelect" ? N = ft(y, f, _, h, b) : console.assert(!1, "renderLeafScalar not implemented"), N ? U(y, f, N) : S("div");
2337
+ return f.ui === "dummy" ? N = g(y, f, _, h, b) : f.ui === "strInput" ? N = V(y, f, _, h, b) : f.ui === "numInput" ? N = P(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.27",
4
+ "version": "0.7.28",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,17 +25,17 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "vue": "^3.5.25",
27
27
  "vue-i18n": "^11.2.2",
28
- "vuetify": "^3.11.2",
29
- "x-block-lib": "^0.8.59",
28
+ "vuetify": "^3.11.3",
29
+ "x-block-lib": "^0.8.60",
30
30
  "x-essential-lib": "^0.9.19",
31
31
  "x-group-list": "^0.4.7",
32
- "x-runtime-lib": "^0.8.117",
32
+ "x-runtime-lib": "^0.8.118",
33
33
  "x-state-lib": "^0.3.31"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@eslint/js": "^9.39.1",
37
37
  "@types/lodash-es": "^4.17.12",
38
- "@types/node": "^24.10.1",
38
+ "@types/node": "^25.0.0",
39
39
  "@vitejs/plugin-vue": "^6.0.2",
40
40
  "eslint": "^9.39.1",
41
41
  "eslint-config-prettier": "^10.1.8",
@@ -45,14 +45,14 @@
45
45
  "husky": "^9.1.7",
46
46
  "lint-staged": "^16.2.7",
47
47
  "prettier": "3.7.4",
48
- "sass": "^1.94.2",
48
+ "sass": "^1.96.0",
49
49
  "typescript": "^5.9.3",
50
- "typescript-eslint": "^8.48.1",
51
- "vite": "^7.2.6",
50
+ "typescript-eslint": "^8.49.0",
51
+ "vite": "^7.2.7",
52
52
  "vite-plugin-css-injected-by-js": "^3.5.2",
53
53
  "vite-plugin-vuetify": "^2.1.2",
54
54
  "vue-eslint-parser": "^10.2.0",
55
55
  "vue-router": "^4.6.3",
56
- "vue-tsc": "^3.1.5"
56
+ "vue-tsc": "^3.1.8"
57
57
  }
58
58
  }