x-prop-tree 0.3.6 → 0.3.8

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 +85 -85
  2. package/package.json +5 -6
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-prop-tree",e.appendChild(document.createTextNode('.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { Fragment as Ae, reactive as ve, computed as k, watchEffect as Ce, toRefs as De, warn as Le, getCurrentInstance as Me, inject as Q, shallowRef as Te, provide as ke, defineComponent as M, isRef as ze, createVNode as C, mergeProps as Re, unref as W, ref as I, toRef as Pe, Text as He, mergeModels as K, useModel as xe, resolveComponent as G, openBlock as p, createElementBlock as be, normalizeStyle as Ve, createBlock as U, resolveDirective as Ne, withDirectives as Oe, createElementVNode as Ee, toDisplayString as We, withModifiers as j, createCommentVNode as ee, h as y } from "vue";
2
+ import { Fragment as Ae, reactive as ve, computed as k, watchEffect as Ce, toRefs as De, warn as Le, getCurrentInstance as Me, inject as Q, shallowRef as Te, provide as ke, defineComponent as M, isRef as ze, createVNode as C, mergeProps as Re, unref as W, ref as I, toRef as Pe, Text as He, mergeModels as Y, useModel as xe, resolveComponent as G, openBlock as p, createElementBlock as be, normalizeStyle as Ve, createBlock as U, resolveDirective as Ne, withDirectives as Oe, createElementVNode as Ee, toDisplayString as We, withModifiers as j, createCommentVNode as ee, h as y } from "vue";
3
3
  import { useI18n as Ge } from "vue-i18n";
4
4
  import { useColor as Ue } from "x-essential-lib";
5
5
  import { getPropDefault as N } from "x-runtime-lib";
6
- var qe = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ze = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Ye = "M19,13H5V11H19V13Z", Ke = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
6
+ var qe = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ze = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Xe = "M19,13H5V11H19V13Z", Ye = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
7
7
  function w(e, t) {
8
8
  return (n) => Object.keys(e).reduce((s, a) => {
9
9
  const u = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
@@ -15,7 +15,7 @@ function w(e, t) {
15
15
  } : s[a] = u, t && !s[a].source && (s[a].source = t), s;
16
16
  }, {});
17
17
  }
18
- const Xe = w({
18
+ const Ke = w({
19
19
  class: [String, Array, Object],
20
20
  style: {
21
21
  type: [String, Array, Object],
@@ -30,7 +30,7 @@ function A(e) {
30
30
  function te(e) {
31
31
  return e !== null && typeof e == "object" && !Array.isArray(e);
32
32
  }
33
- function Y(e, t) {
33
+ function X(e, t) {
34
34
  return t.every((n) => e.hasOwnProperty(n));
35
35
  }
36
36
  function Je(e, t) {
@@ -95,14 +95,14 @@ function je(e, t) {
95
95
  const _ = 2.4, se = 0.2126729, ae = 0.7151522, le = 0.072175, et = 0.55, tt = 0.58, nt = 0.57, st = 0.62, O = 0.03, re = 1.45, at = 5e-4, lt = 1.25, rt = 1.25, ie = 0.078, ue = 12.82051282051282, E = 0.06, oe = 1e-3;
96
96
  function ce(e, t) {
97
97
  const n = (e.r / 255) ** _, s = (e.g / 255) ** _, a = (e.b / 255) ** _, r = (t.r / 255) ** _, u = (t.g / 255) ** _, m = (t.b / 255) ** _;
98
- let o = n * se + s * ae + a * le, f = r * se + u * ae + m * le;
99
- if (o <= O && (o += (O - o) ** re), f <= O && (f += (O - f) ** re), Math.abs(f - o) < at) return 0;
98
+ let o = n * se + s * ae + a * le, d = r * se + u * ae + m * le;
99
+ if (o <= O && (o += (O - o) ** re), d <= O && (d += (O - d) ** re), Math.abs(d - o) < at) return 0;
100
100
  let h;
101
- if (f > o) {
102
- const g = (f ** et - o ** tt) * lt;
101
+ if (d > o) {
102
+ const g = (d ** et - o ** tt) * lt;
103
103
  h = g < oe ? 0 : g < ie ? g - g * ue * E : g - E;
104
104
  } else {
105
- const g = (f ** st - o ** nt) * rt;
105
+ const g = (d ** st - o ** nt) * rt;
106
106
  h = g > -oe ? 0 : g > -ie ? g - g * ue * E : g + E;
107
107
  }
108
108
  return h * 100;
@@ -110,11 +110,11 @@ function ce(e, t) {
110
110
  function D(e) {
111
111
  Le(`Vuetify: ${e}`);
112
112
  }
113
- function X(e) {
113
+ function K(e) {
114
114
  return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
115
115
  }
116
116
  function it(e) {
117
- return X(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
117
+ return K(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
118
118
  }
119
119
  const fe = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, ut = {
120
120
  rgb: (e, t, n, s) => ({
@@ -175,11 +175,11 @@ function $(e) {
175
175
  const n = parseInt(t, 16);
176
176
  return (isNaN(n) || n < 0 || n > 4294967295) && D(`'${e}' is not a valid hex(a) color`), ot(t);
177
177
  } else if (typeof e == "object") {
178
- if (Y(e, ["r", "g", "b"]))
178
+ if (X(e, ["r", "g", "b"]))
179
179
  return e;
180
- if (Y(e, ["h", "s", "l"]))
180
+ if (X(e, ["h", "s", "l"]))
181
181
  return L(pe(e));
182
- if (Y(e, ["h", "s", "v"]))
182
+ if (X(e, ["h", "s", "v"]))
183
183
  return L(e);
184
184
  }
185
185
  throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
@@ -274,16 +274,16 @@ function yt() {
274
274
  var o;
275
275
  return (o = n.value) == null ? void 0 : o[e._as ?? t];
276
276
  }), r = new Proxy(e, {
277
- get(o, f) {
278
- var g, V, S, b, z, R, d;
279
- const h = Reflect.get(o, f);
280
- return f === "class" || f === "style" ? [(g = a.value) == null ? void 0 : g[f], h].filter((l) => l != null) : typeof f == "string" && !gt(s.vnode, f) ? ((V = a.value) == null ? void 0 : V[f]) !== void 0 ? (S = a.value) == null ? void 0 : S[f] : ((z = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : z[f]) !== void 0 ? (d = (R = n.value) == null ? void 0 : R.global) == null ? void 0 : d[f] : h : h;
277
+ get(o, d) {
278
+ var g, V, S, b, z, R, c;
279
+ const h = Reflect.get(o, d);
280
+ return d === "class" || d === "style" ? [(g = a.value) == null ? void 0 : g[d], h].filter((l) => l != null) : typeof d == "string" && !gt(s.vnode, d) ? ((V = a.value) == null ? void 0 : V[d]) !== void 0 ? (S = a.value) == null ? void 0 : S[d] : ((z = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : z[d]) !== void 0 ? (c = (R = n.value) == null ? void 0 : R.global) == null ? void 0 : c[d] : h : h;
281
281
  }
282
282
  }), u = Te();
283
283
  Ce(() => {
284
284
  if (a.value) {
285
- const o = Object.entries(a.value).filter((f) => {
286
- let [h] = f;
285
+ const o = Object.entries(a.value).filter((d) => {
286
+ let [h] = d;
287
287
  return h.startsWith(h[0].toUpperCase());
288
288
  });
289
289
  u.value = o.length ? Object.fromEntries(o) : void 0;
@@ -352,7 +352,7 @@ function xt(e) {
352
352
  return _e(() => {
353
353
  const t = [], n = {};
354
354
  if (e.value.background)
355
- if (X(e.value.background)) {
355
+ if (K(e.value.background)) {
356
356
  if (n.backgroundColor = e.value.background, !e.value.text && it(e.value.background)) {
357
357
  const s = $(e.value.background);
358
358
  if (s.a == null || s.a === 1) {
@@ -362,7 +362,7 @@ function xt(e) {
362
362
  }
363
363
  } else
364
364
  t.push(`bg-${e.value.background}`);
365
- return e.value.text && (X(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
365
+ return e.value.text && (K(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
366
366
  colorClasses: t,
367
367
  colorStyles: n
368
368
  };
@@ -473,7 +473,7 @@ const wt = (e) => {
473
473
  component: ge,
474
474
  icon: a
475
475
  };
476
- const r = Object.keys(t.sets).find((f) => typeof a == "string" && a.startsWith(`${f}:`)), u = r ? a.slice(r.length + 1) : a;
476
+ const r = Object.keys(t.sets).find((d) => typeof a == "string" && a.startsWith(`${d}:`)), u = r ? a.slice(r.length + 1) : a;
477
477
  return {
478
478
  component: t.sets[r ?? t.defaultSet].component,
479
479
  icon: u
@@ -505,7 +505,7 @@ const Bt = w({
505
505
  start: Boolean,
506
506
  end: Boolean,
507
507
  icon: Ie,
508
- ...Xe(),
508
+ ...Ke(),
509
509
  ...pt(),
510
510
  ...kt({
511
511
  tag: "i"
@@ -527,7 +527,7 @@ const Bt = w({
527
527
  sizeClasses: m
528
528
  } = Ft(e), {
529
529
  textColorClasses: o,
530
- textColorStyles: f
530
+ textColorStyles: d
531
531
  } = bt(Pe(e, "color"));
532
532
  return ht(() => {
533
533
  var V, S;
@@ -547,7 +547,7 @@ const Bt = w({
547
547
  fontSize: A(e.size),
548
548
  height: A(e.size),
549
549
  width: A(e.size)
550
- }, f.value, e.style],
550
+ }, d.value, e.style],
551
551
  role: g ? "button" : void 0,
552
552
  "aria-hidden": !g,
553
553
  tabindex: g ? e.disabled ? -1 : 0 : void 0
@@ -558,7 +558,7 @@ const Bt = w({
558
558
  }
559
559
  }), $t = /* @__PURE__ */ M({
560
560
  __name: "index",
561
- props: /* @__PURE__ */ K({
561
+ props: /* @__PURE__ */ Y({
562
562
  min: { default: -1 / 0 },
563
563
  max: { default: 1 / 0 },
564
564
  precision: { default: 4 },
@@ -591,14 +591,14 @@ const Bt = w({
591
591
  }
592
592
  }), ye = /* @__PURE__ */ M({
593
593
  __name: "index",
594
- props: /* @__PURE__ */ K({
594
+ props: /* @__PURE__ */ Y({
595
595
  readonly: { type: Boolean, default: !1 },
596
596
  hasDelete: { type: Boolean, default: !1 }
597
597
  }, {
598
598
  modelValue: {},
599
599
  modelModifiers: {}
600
600
  }),
601
- emits: /* @__PURE__ */ K(["delete"], ["update:modelValue"]),
601
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
602
602
  setup(e, { emit: t }) {
603
603
  const n = xe(e, "modelValue"), s = e, a = t;
604
604
  return (r, u) => {
@@ -606,13 +606,13 @@ const Bt = w({
606
606
  return p(), U(m, {
607
607
  modelValue: n.value,
608
608
  "onUpdate:modelValue": u[0] || (u[0] = (o) => n.value = o),
609
- "onClick:appendInner": u[1] || (u[1] = (o) => a("delete")),
610
609
  variant: "outlined",
611
610
  density: "compact",
612
- "append-inner-icon": s.hasDelete ? W(Ye) : "",
611
+ "append-inner-icon": s.hasDelete ? W(Xe) : "",
613
612
  readonly: s.readonly,
614
613
  "hide-details": "",
615
- "single-line": ""
614
+ "single-line": "",
615
+ "onClick:appendInner": u[1] || (u[1] = (o) => a("delete"))
616
616
  }, null, 8, ["modelValue", "append-inner-icon", "readonly"]);
617
617
  };
618
618
  }
@@ -631,11 +631,11 @@ const Bt = w({
631
631
  height: "36px"
632
632
  }));
633
633
  return (r, u) => {
634
- const m = G("v-icon"), o = G("v-spacer"), f = Ne("ripple");
634
+ const m = G("v-icon"), o = G("v-spacer"), d = Ne("ripple");
635
635
  return Oe((p(), be("div", {
636
- onClick: u[2] || (u[2] = (h) => s("collapse", !n.collapse)),
637
636
  class: "d-flex align-center",
638
- style: Ve(a.value)
637
+ style: Ve(a.value),
638
+ onClick: u[2] || (u[2] = (h) => s("collapse", !n.collapse))
639
639
  }, [
640
640
  C(m, {
641
641
  class: "mr-1",
@@ -645,18 +645,18 @@ const Bt = w({
645
645
  C(o),
646
646
  n.hasCreate ? (p(), U(m, {
647
647
  key: 0,
648
- onClick: u[0] || (u[0] = j((h) => s("create"), ["stop"])),
649
648
  class: "ml-3",
650
- icon: "$plus"
649
+ icon: "$plus",
650
+ onClick: u[0] || (u[0] = j((h) => s("create"), ["stop"]))
651
651
  })) : ee("", !0),
652
652
  n.hasDelete ? (p(), U(m, {
653
653
  key: 1,
654
- onClick: u[1] || (u[1] = j((h) => s("delete", n.index), ["stop"])),
655
654
  class: "ml-3",
656
- icon: "$sub"
655
+ icon: "$sub",
656
+ onClick: u[1] || (u[1] = j((h) => s("delete", n.index), ["stop"]))
657
657
  })) : ee("", !0)
658
658
  ], 4)), [
659
- [f]
659
+ [d]
660
660
  ]);
661
661
  };
662
662
  }
@@ -669,20 +669,20 @@ const Bt = w({
669
669
  },
670
670
  emits: ["change"],
671
671
  setup(e, { emit: t }) {
672
- const { t: n } = Ge(), { backgroundColor2: s } = Ue(), a = e, r = t, u = I("20px"), m = I("56px"), o = I("10px"), f = I("250px"), h = ve({});
673
- function g(d, l, i, c) {
674
- return l.keyFlag || (d += l.key), l.children ? l.array ? V(d, l, i, c) : S(d, l, i, c) : l.array ? b(d, l, i) : z(d, l, i);
672
+ const { t: n } = Ge(), { backgroundColor2: s } = Ue(), a = e, r = t, u = I("20px"), m = I("56px"), o = I("10px"), d = I("250px"), h = ve({});
673
+ function g(c, l, i, f) {
674
+ return l.keyFlag || (c !== "" && (c += "."), c += l.key), l.children ? l.array ? V(c, l, i, f) : S(c, l, i, f) : l.array ? b(c, l, i) : z(c, l, i);
675
675
  }
676
- function V(d, l, i, c) {
677
- i[l.key] instanceof Array || (i[l.key] = [], r("change", d, i[l.key]));
676
+ function V(c, l, i, f) {
677
+ i[l.key] instanceof Array || (i[l.key] = [], r("change", c, i[l.key]));
678
678
  const B = y(he, {
679
679
  title: n(l.name),
680
- collapse: !!c.collapse,
680
+ collapse: !!f.collapse,
681
681
  onCollapse: (v) => {
682
- c.collapse = v;
682
+ f.collapse = v;
683
683
  },
684
684
  onCreate: () => {
685
- i[l.key].push({}), r("change", d, i[l.key]);
685
+ i[l.key].push({}), r("change", c, i[l.key]);
686
686
  }
687
687
  }), x = y(
688
688
  "div",
@@ -692,9 +692,9 @@ const Bt = w({
692
692
  }
693
693
  },
694
694
  (() => {
695
- c[l.key] instanceof Array || (c[l.key] = []);
695
+ f[l.key] instanceof Array || (f[l.key] = []);
696
696
  for (let v = 0; v < i[l.key].length; v++)
697
- typeof c[l.key][v] != "object" && (c[l.key][v] = {
697
+ typeof f[l.key][v] != "object" && (f[l.key][v] = {
698
698
  collapse: !0
699
699
  });
700
700
  return [];
@@ -710,16 +710,16 @@ const Bt = w({
710
710
  },
711
711
  (() => {
712
712
  const v = [];
713
- return v.push(B), c.collapse || v.push(x), v;
713
+ return v.push(B), f.collapse || v.push(x), v;
714
714
  })()
715
715
  );
716
716
  }
717
- function S(d, l, i, c) {
717
+ function S(c, l, i, f) {
718
718
  const B = y(he, {
719
719
  title: n(l.name),
720
- collapse: !!c.collapse,
720
+ collapse: !!f.collapse,
721
721
  onCollapse: (v) => {
722
- c.collapse = v;
722
+ f.collapse = v;
723
723
  }
724
724
  }), x = y(
725
725
  "div",
@@ -732,14 +732,14 @@ const Bt = w({
732
732
  var P;
733
733
  const v = [];
734
734
  return (P = l.children) == null || P.forEach((H) => {
735
- typeof c[H.key] != "object" && (c[H.key] = {
735
+ typeof f[H.key] != "object" && (f[H.key] = {
736
736
  collapse: !0
737
737
  });
738
738
  const $e = g(
739
- d,
739
+ c,
740
740
  H,
741
- l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {}, r("change", d, i[l.key])), i[l.key]),
742
- c[H.key]
741
+ l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {}, r("change", c, i[l.key])), i[l.key]),
742
+ f[H.key]
743
743
  );
744
744
  v.push($e);
745
745
  }), v;
@@ -755,12 +755,12 @@ const Bt = w({
755
755
  },
756
756
  (() => {
757
757
  const v = [];
758
- return v.push(B), c.collapse || v.push(x), v;
758
+ return v.push(B), f.collapse || v.push(x), v;
759
759
  })()
760
760
  );
761
761
  }
762
- function b(d, l, i) {
763
- if (i[l.key] instanceof Array || (i[l.key] = N(l), r("change", d, i[l.key])), l.ui === "strInput")
762
+ function b(c, l, i) {
763
+ if (i[l.key] instanceof Array || (i[l.key] = N(l), r("change", c, i[l.key])), l.ui === "strInput")
764
764
  return y(
765
765
  "div",
766
766
  {
@@ -784,11 +784,11 @@ const Bt = w({
784
784
  "div",
785
785
  {
786
786
  style: {
787
- width: f.value
787
+ width: d.value
788
788
  }
789
789
  },
790
790
  (() => {
791
- const c = [];
791
+ const f = [];
792
792
  for (let x = 0; x < i[l.key].length; x++) {
793
793
  const v = y(
794
794
  "div",
@@ -806,16 +806,16 @@ const Bt = w({
806
806
  y(ye, {
807
807
  modelValue: i[l.key][x],
808
808
  "onUpdate:modelValue": (P) => {
809
- i[l.key][x] = P, r("change", d, i[l.key]);
809
+ i[l.key][x] = P, r("change", c, i[l.key]);
810
810
  },
811
811
  hasDelete: !0,
812
812
  onDelete: () => {
813
- i[l.key].splice(x, 1), r("change", d, i[l.key]);
813
+ i[l.key].splice(x, 1), r("change", c, i[l.key]);
814
814
  }
815
815
  })
816
816
  ]
817
817
  );
818
- c.push(v);
818
+ f.push(v);
819
819
  }
820
820
  const B = y(
821
821
  "div",
@@ -835,21 +835,21 @@ const Bt = w({
835
835
  border: "thin dashed #bdbdbd"
836
836
  },
837
837
  onClick: () => {
838
- i[l.key].push(""), r("change", d, i[l.key]);
838
+ i[l.key].push(""), r("change", c, i[l.key]);
839
839
  }
840
840
  },
841
- [y(It, { icon: Ke })]
841
+ [y(It, { icon: Ye })]
842
842
  );
843
- return c.push(B), c;
843
+ return f.push(B), f;
844
844
  })()
845
845
  )
846
846
  ]
847
847
  );
848
848
  console.assert(!1);
849
849
  }
850
- function z(d, l, i) {
850
+ function z(c, l, i) {
851
851
  if (l.ui === "void")
852
- i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = N(l), r("change", d, i[l.key]));
852
+ i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = N(l), r("change", c, i[l.key]));
853
853
  else {
854
854
  if (l.ui === "strInput")
855
855
  return y(
@@ -876,14 +876,14 @@ const Bt = w({
876
876
  "div",
877
877
  {
878
878
  style: {
879
- width: f.value
879
+ width: d.value
880
880
  }
881
881
  },
882
882
  [
883
883
  y(ye, {
884
- modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = N(l), r("change", d, i[l.key])), i[l.key]),
885
- "onUpdate:modelValue": (c) => {
886
- l.static || c !== i[l.key] && (i[l.key] = c, r("change", d, c));
884
+ modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = N(l), r("change", c, i[l.key])), i[l.key]),
885
+ "onUpdate:modelValue": (f) => {
886
+ l.static || f !== i[l.key] && (i[l.key] = f, r("change", c, f));
887
887
  },
888
888
  readonly: l.static || l.readonly
889
889
  })
@@ -916,14 +916,14 @@ const Bt = w({
916
916
  "div",
917
917
  {
918
918
  style: {
919
- width: f.value
919
+ width: d.value
920
920
  }
921
921
  },
922
922
  [
923
923
  y($t, {
924
- modelValue: (typeof i[l.key] != "number" && (i[l.key] = N(l), r("change", d, i[l.key])), i[l.key]),
925
- "onUpdate:modelValue": (c) => {
926
- c !== i[l.key] && (i[l.key] = c, r("change", d, c));
924
+ modelValue: (typeof i[l.key] != "number" && (i[l.key] = N(l), r("change", c, i[l.key])), i[l.key]),
925
+ "onUpdate:modelValue": (f) => {
926
+ f !== i[l.key] && (i[l.key] = f, r("change", c, f));
927
927
  },
928
928
  readonly: l.readonly
929
929
  })
@@ -941,22 +941,22 @@ const Bt = w({
941
941
  }
942
942
  },
943
943
  (() => {
944
- const d = [];
944
+ const c = [];
945
945
  if (a.unique && a.config && a.object) {
946
946
  h[a.unique] || (h[a.unique] = {});
947
947
  const l = h[a.unique];
948
948
  a.config.forEach((i) => {
949
- const c = g("", i, a.object, l);
950
- d.push(c);
949
+ const f = g("", i, a.object, l);
950
+ c.push(f);
951
951
  });
952
952
  }
953
- return d;
953
+ return c;
954
954
  })()
955
955
  );
956
- return (d, l) => (p(), U(R));
956
+ return (c, l) => (p(), U(R));
957
957
  }
958
958
  }), Dt = (e) => {
959
- e.component("x-prop-tree", At);
959
+ e.component("XPropTree", At);
960
960
  }, Rt = { install: Dt };
961
961
  export {
962
962
  Rt as default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.3.6",
4
+ "version": "0.3.8",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -22,11 +22,10 @@
22
22
  "*": "prettier --write ."
23
23
  },
24
24
  "peerDependencies": {
25
- "axios": "^1.7.2",
26
- "vue": "^3.4.31",
25
+ "vue": "^3.4.32",
27
26
  "vue-i18n": "^9.13.1",
28
- "vuetify": "^3.6.12",
29
- "x-essential-lib": "^0.6.1",
27
+ "vuetify": "^3.6.13",
28
+ "x-essential-lib": "^0.6.3",
30
29
  "x-runtime-lib": "^0.3.8"
31
30
  },
32
31
  "devDependencies": {
@@ -40,7 +39,7 @@
40
39
  "eslint-plugin-vue": "^9.27.0",
41
40
  "husky": "^9.0.11",
42
41
  "lint-staged": "^15.2.7",
43
- "prettier": "3.3.2",
42
+ "prettier": "3.3.3",
44
43
  "sass": "^1.77.7",
45
44
  "typescript": "^5.5.3",
46
45
  "vite": "^5.3.3",