x-prop-tree 0.6.12 → 0.6.13

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 +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1390,9 +1390,10 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
1390
1390
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1391
1391
  setup(e, { emit: t }) {
1392
1392
  const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => {
1393
+ var a;
1393
1394
  const u = [];
1394
- return zt[o.value].items[e.items].forEach(({ title: a, value: s }) => {
1395
- u.push({ title: n(a), value: s });
1395
+ return (a = zt[o.value]) == null || a.items[e.items].forEach(({ title: s, value: p }) => {
1396
+ u.push({ title: n(s), value: p });
1396
1397
  }), u;
1397
1398
  });
1398
1399
  return (u, a) => {
@@ -1791,7 +1792,10 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
1791
1792
  }),
1792
1793
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1793
1794
  setup(e, { emit: t }) {
1794
- const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => zt[o.value].types[e.types]), u = R(0), a = k(() => {
1795
+ const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => {
1796
+ var d;
1797
+ return (d = zt[o.value]) == null ? void 0 : d.types[e.types];
1798
+ }), u = R(0), a = k(() => {
1795
1799
  const d = [];
1796
1800
  return l.value.forEach(({ title: v }, h) => {
1797
1801
  d.push({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.6.12",
4
+ "version": "0.6.13",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",