@xy-planning-network/trees 0.11.9 → 0.12.1

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/trees.es.js CHANGED
@@ -1675,22 +1675,22 @@ me.getAdapter = ls.getAdapter;
1675
1675
  me.HttpStatusCode = Xr;
1676
1676
  me.default = me;
1677
1677
  const {
1678
- Axios: s0,
1679
- AxiosError: i0,
1680
- CanceledError: l0,
1681
- isCancel: u0,
1682
- CancelToken: c0,
1683
- VERSION: d0,
1684
- all: f0,
1685
- Cancel: p0,
1686
- isAxiosError: m0,
1687
- spread: h0,
1688
- toFormData: g0,
1689
- AxiosHeaders: v0,
1690
- HttpStatusCode: b0,
1691
- formToJSON: y0,
1692
- getAdapter: w0,
1693
- mergeConfig: x0
1678
+ Axios: i0,
1679
+ AxiosError: l0,
1680
+ CanceledError: u0,
1681
+ isCancel: c0,
1682
+ CancelToken: d0,
1683
+ VERSION: f0,
1684
+ all: p0,
1685
+ Cancel: m0,
1686
+ isAxiosError: h0,
1687
+ spread: g0,
1688
+ toFormData: v0,
1689
+ AxiosHeaders: b0,
1690
+ HttpStatusCode: y0,
1691
+ formToJSON: w0,
1692
+ getAdapter: x0,
1693
+ mergeConfig: C0
1694
1694
  } = me, fs = "HttpError", ps = "HttpErrorCanceled";
1695
1695
  class zn extends Error {
1696
1696
  constructor(e, r, o, a) {
@@ -1788,7 +1788,7 @@ const Ht = (t, n) => {
1788
1788
  e || {}
1789
1789
  );
1790
1790
  }
1791
- }, C0 = (t) => {
1791
+ }, D0 = (t) => {
1792
1792
  Xn.defaults = { ...Xn.defaults, ...t };
1793
1793
  }, Au = (t) => t instanceof zn, Ou = (t) => Au(t) && t.name === ps;
1794
1794
  function Kn(t, n = 500) {
@@ -1799,7 +1799,7 @@ function Kn(t, n = 500) {
1799
1799
  }, n);
1800
1800
  };
1801
1801
  }
1802
- function D0(t, n = 500) {
1802
+ function E0(t, n = 500) {
1803
1803
  let e = null;
1804
1804
  return (...r) => {
1805
1805
  e ? clearTimeout(e) : t.apply(r), e = setTimeout(() => {
@@ -1815,7 +1815,7 @@ const dt = {
1815
1815
  }, de = {
1816
1816
  default: void 0,
1817
1817
  required: !1
1818
- }, E0 = [
1818
+ }, _0 = [
1819
1819
  "date",
1820
1820
  "email",
1821
1821
  "month",
@@ -1828,7 +1828,7 @@ const dt = {
1828
1828
  "time",
1829
1829
  "url",
1830
1830
  "week"
1831
- ], _0 = ["money", "number", "raw-number"], ft = (t) => {
1831
+ ], k0 = ["money", "number", "raw-number"], ft = (t) => {
1832
1832
  const n = ir(), e = A(""), r = Ui(), o = P(() => n.id || r), a = P(() => Zr(n, "disabled")), s = P(() => Zr(n, "required")), i = P(() => typeof n.name == "string" && n.name !== "" ? n.name : o.value), l = P(() => ({
1833
1833
  labelledby: t.label ? `${o.value}-label` : void 0,
1834
1834
  describedby: t.help ? `${o.value}-help` : void 0,
@@ -1862,7 +1862,7 @@ const dt = {
1862
1862
  const n = new Date(t);
1863
1863
  return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n.toISOString().slice(0, 16);
1864
1864
  };
1865
- function k0(t, n = 100) {
1865
+ function S0(t, n = 100) {
1866
1866
  let e;
1867
1867
  return (...r) => {
1868
1868
  e || (t.apply(r), e = !0, setTimeout(() => e = !1, n));
@@ -5271,7 +5271,7 @@ const Vc = { class: "py-1" }, Hc = ["disabled", "onClick"], Uc = { class: "relat
5271
5271
  class: "block text-sm leading-snug font-medium text-gray-800"
5272
5272
  }, r.$attrs), {
5273
5273
  default: N(() => [
5274
- ce(U(e.value) + " ", 1),
5274
+ ce(U(e.value), 1),
5275
5275
  n.required ? (x(), _("span", ed, "*")) : B("", !0)
5276
5276
  ]),
5277
5277
  _: 1
@@ -6768,19 +6768,19 @@ function kn(t, n = "GET", e = {}) {
6768
6768
  execute: f
6769
6769
  };
6770
6770
  }
6771
- function S0(t, n = {}) {
6771
+ function $0(t, n = {}) {
6772
6772
  return kn(t, "GET", n);
6773
6773
  }
6774
- function $0(t, n = {}) {
6774
+ function T0(t, n = {}) {
6775
6775
  return kn(t, "DELETE", n);
6776
6776
  }
6777
- function T0(t, n = {}) {
6777
+ function M0(t, n = {}) {
6778
6778
  return kn(t, "PATCH", n);
6779
6779
  }
6780
- function M0(t, n = {}) {
6780
+ function P0(t, n = {}) {
6781
6781
  return kn(t, "POST", n);
6782
6782
  }
6783
- function P0(t, n = {}) {
6783
+ function A0(t, n = {}) {
6784
6784
  return kn(t, "PUT", n);
6785
6785
  }
6786
6786
  const Sa = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", dd = (t = 8) => {
@@ -6875,7 +6875,7 @@ const ii = {
6875
6875
  genericError(t, n) {
6876
6876
  Ut().flasher.genericError(t, n);
6877
6877
  }
6878
- }, A0 = (t, n) => {
6878
+ }, O0 = (t, n) => {
6879
6879
  var u;
6880
6880
  const e = A(t), r = {
6881
6881
  initial: ((u = e == null ? void 0 : e.value[0]) == null ? void 0 : u.value) || "",
@@ -6895,7 +6895,7 @@ const ii = {
6895
6895
  isActiveTab: s,
6896
6896
  tabs: e
6897
6897
  };
6898
- }, O0 = (t) => {
6898
+ }, R0 = (t) => {
6899
6899
  const n = A(t);
6900
6900
  return tt(
6901
6901
  n,
@@ -9430,7 +9430,7 @@ const Wf = /* @__PURE__ */ Vf(Hf, [["render", qf]]), Yf = { class: "absolute ins
9430
9430
  class: "block text-sm leading-6 font-semibold text-gray-800"
9431
9431
  }, r.$attrs), {
9432
9432
  default: N(() => [
9433
- ce(U(e.value) + " ", 1),
9433
+ ce(U(e.value), 1),
9434
9434
  n.required ? (x(), _("span", Ph, "*")) : B("", !0)
9435
9435
  ]),
9436
9436
  _: 1
@@ -10749,10 +10749,10 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10749
10749
  ])
10750
10750
  ], 8, Rg));
10751
10751
  }
10752
- }), Vg = { class: "flex-1 flex pr-1" }, Hg = { class: "flex flex-col" }, Ug = {
10752
+ }), Vg = { key: 0 }, Hg = { class: "flex-1 flex pr-1" }, Ug = { class: "flex flex-col" }, qg = {
10753
10753
  key: 1,
10754
10754
  class: "mt-auto mb-0"
10755
- }, qg = ["checked", "name", "required", "value"], Wg = /* @__PURE__ */ R({
10755
+ }, Wg = ["checked", "name", "required", "value"], Yg = /* @__PURE__ */ R({
10756
10756
  inheritAttrs: !1,
10757
10757
  __name: "RadioCards",
10758
10758
  props: /* @__PURE__ */ ve(/* @__PURE__ */ ut({
@@ -10777,40 +10777,43 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10777
10777
  d[1] || (d[1] = (f) => e.value = f),
10778
10778
  u
10779
10779
  ],
10780
+ class: "space-y-6",
10780
10781
  disabled: m(o),
10781
10782
  "aria-invalid": m(i) ? "true" : null,
10782
10783
  "aria-errormessage": m(r).errormessage
10783
10784
  }, {
10784
10785
  default: N(() => [
10785
- c.label ? (x(), V(m(fa), {
10786
- key: 0,
10787
- class: "block"
10788
- }, {
10789
- default: N(() => [
10790
- k($n, {
10791
- tag: "div",
10792
- label: c.label,
10793
- required: m(a)
10794
- }, null, 8, ["label", "required"])
10795
- ]),
10796
- _: 1
10797
- })) : B("", !0),
10798
- c.help ? (x(), V(m(Fr), {
10799
- key: 1,
10800
- class: "mt-1"
10801
- }, {
10802
- default: N(() => [
10803
- k(Re, { text: c.help }, null, 8, ["text"])
10804
- ]),
10805
- _: 1
10806
- })) : B("", !0),
10807
- k(ot, {
10808
- id: m(r).errormessage,
10809
- class: "mt-1",
10810
- text: m(i)
10811
- }, null, 8, ["id", "text"]),
10786
+ c.label || c.help || m(i) ? (x(), _("div", Vg, [
10787
+ c.label ? (x(), V(m(fa), {
10788
+ key: 0,
10789
+ class: "block"
10790
+ }, {
10791
+ default: N(() => [
10792
+ k($n, {
10793
+ tag: "div",
10794
+ label: c.label,
10795
+ required: m(a)
10796
+ }, null, 8, ["label", "required"])
10797
+ ]),
10798
+ _: 1
10799
+ })) : B("", !0),
10800
+ c.help ? (x(), V(m(Fr), {
10801
+ key: 1,
10802
+ class: "mt-1"
10803
+ }, {
10804
+ default: N(() => [
10805
+ k(Re, { text: c.help }, null, 8, ["text"])
10806
+ ]),
10807
+ _: 1
10808
+ })) : B("", !0),
10809
+ k(ot, {
10810
+ id: m(r).errormessage,
10811
+ class: "mt-1",
10812
+ text: m(i)
10813
+ }, null, 8, ["id", "text"])
10814
+ ])) : B("", !0),
10812
10815
  v("div", {
10813
- class: L(["mt-6 grid grid-cols-1 gap-y-5 gap-x-4 relative", {
10816
+ class: L(["grid grid-cols-1 gap-y-5 gap-x-4 relative", {
10814
10817
  "sm:grid-cols-2": c.columns === 2,
10815
10818
  "sm:grid-cols-3": c.columns === 3
10816
10819
  }])
@@ -10834,8 +10837,8 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10834
10837
  g ? "border-xy-blue ring-2 ring-xy-blue-500" : ""
10835
10838
  ]])
10836
10839
  }, [
10837
- v("div", Vg, [
10838
- v("div", Hg, [
10840
+ v("div", Hg, [
10841
+ v("div", Ug, [
10839
10842
  k(m(fa), { as: "div" }, {
10840
10843
  default: N(() => [
10841
10844
  k(qe, {
@@ -10859,7 +10862,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10859
10862
  ]),
10860
10863
  _: 2
10861
10864
  }, 1024)) : B("", !0),
10862
- f.sublabel || c.$slots.sublabel ? (x(), _("div", Ug, [
10865
+ f.sublabel || c.$slots.sublabel ? (x(), _("div", qg, [
10863
10866
  k(m(Fr), {
10864
10867
  as: "div",
10865
10868
  class: "text-sm/5 font-medium mt-4 text-gray-800"
@@ -10902,7 +10905,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10902
10905
  value: f.value,
10903
10906
  onInvalid: d[0] || (d[0] = //@ts-ignore
10904
10907
  (...w) => m(l) && m(l)(...w))
10905
- }, null, 40, qg)
10908
+ }, null, 40, Wg)
10906
10909
  ], 2)
10907
10910
  ]),
10908
10911
  _: 2
@@ -10912,7 +10915,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10912
10915
  _: 3
10913
10916
  }, 8, ["modelValue", "disabled", "aria-invalid", "aria-errormessage"]));
10914
10917
  }
10915
- }), Yg = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "placeholder"], zg = /* @__PURE__ */ R({
10918
+ }), zg = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "placeholder"], Kg = /* @__PURE__ */ R({
10916
10919
  inheritAttrs: !1,
10917
10920
  __name: "TextArea",
10918
10921
  props: /* @__PURE__ */ ve(/* @__PURE__ */ ut({
@@ -10952,8 +10955,13 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10952
10955
  (...d) => m(l) && m(l)(...d)),
10953
10956
  onInvalid: c[2] || (c[2] = //@ts-ignore
10954
10957
  (...d) => m(i) && m(i)(...d))
10955
- }), null, 16, Yg), [
10956
- [co, e.value]
10958
+ }), null, 16, zg), [
10959
+ [
10960
+ co,
10961
+ e.value,
10962
+ void 0,
10963
+ { trim: !0 }
10964
+ ]
10957
10965
  ]),
10958
10966
  k(Re, {
10959
10967
  id: m(r).describedby,
@@ -10967,7 +10975,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10967
10975
  }, null, 8, ["id", "text"])
10968
10976
  ]));
10969
10977
  }
10970
- }), Kg = ["aria-labelledby", "aria-describedby", "aria-errormessage"], Gg = { key: 0 }, Jg = ["for"], Xg = ["id", "name"], Zg = ["for"], Qg = ["id", "name"], e0 = /* @__PURE__ */ R({
10978
+ }), Gg = ["aria-labelledby", "aria-describedby", "aria-errormessage"], Jg = { key: 0 }, Xg = ["for"], Zg = ["id", "name"], Qg = ["for"], e0 = ["id", "name"], t0 = /* @__PURE__ */ R({
10971
10979
  inheritAttrs: !1,
10972
10980
  __name: "YesOrNoRadio",
10973
10981
  props: /* @__PURE__ */ ve(/* @__PURE__ */ ut({
@@ -10996,7 +11004,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10996
11004
  "aria-describedby": m(r).describedby,
10997
11005
  "aria-errormessage": m(r).errormessage
10998
11006
  }, [
10999
- c.label ? (x(), _("div", Gg, [
11007
+ c.label ? (x(), _("div", Jg, [
11000
11008
  k($n, {
11001
11009
  id: m(r).labelledby,
11002
11010
  class: "block my-auto",
@@ -11039,7 +11047,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11039
11047
  (...f) => m(u) && m(u)(...f)),
11040
11048
  onInvalid: d[2] || (d[2] = //@ts-ignore
11041
11049
  (...f) => m(l) && m(l)(...f))
11042
- }), null, 16, Xg), [
11050
+ }), null, 16, Zg), [
11043
11051
  [Wr, e.value]
11044
11052
  ]),
11045
11053
  k(qe, {
@@ -11047,7 +11055,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11047
11055
  label: "Yes",
11048
11056
  tag: "span"
11049
11057
  })
11050
- ], 10, Jg),
11058
+ ], 10, Xg),
11051
11059
  v("label", {
11052
11060
  class: L(["inline-flex items-center ml-6", m(o) ? "cursor-not-allowed" : "cursor-pointer"]),
11053
11061
  for: `${m(s)}-false`
@@ -11069,7 +11077,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11069
11077
  (...f) => m(u) && m(u)(...f)),
11070
11078
  onInvalid: d[5] || (d[5] = //@ts-ignore
11071
11079
  (...f) => m(l) && m(l)(...f))
11072
- }), null, 16, Qg), [
11080
+ }), null, 16, e0), [
11073
11081
  [Wr, e.value]
11074
11082
  ]),
11075
11083
  k(qe, {
@@ -11077,11 +11085,11 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11077
11085
  label: "No",
11078
11086
  tag: "span"
11079
11087
  })
11080
- ], 10, Zg)
11088
+ ], 10, Qg)
11081
11089
  ])
11082
- ], 8, Kg));
11090
+ ], 8, Gg));
11083
11091
  }
11084
- }), t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11092
+ }), n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11085
11093
  __proto__: null,
11086
11094
  ActionsDropdown: _o,
11087
11095
  BaseInput: Dh,
@@ -11111,7 +11119,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11111
11119
  ProgressCircles: ph,
11112
11120
  ProgressCirclesLabeled: xh,
11113
11121
  Radio: jg,
11114
- RadioCards: Wg,
11122
+ RadioCards: Yg,
11115
11123
  Select: So,
11116
11124
  SidebarLayout: jf,
11117
11125
  Slideover: np,
@@ -11120,13 +11128,13 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11120
11128
  Steps: sm,
11121
11129
  TablePaginator: di,
11122
11130
  Tabs: nh,
11123
- TextArea: zg,
11131
+ TextArea: Kg,
11124
11132
  Toggle: ah,
11125
11133
  Tooltip: sp,
11126
11134
  XYSpinner: ui,
11127
- YesOrNoRadio: e0
11128
- }, Symbol.toStringTag, { value: "Module" })), R0 = function(n) {
11129
- Object.entries(t0).forEach(([e, r]) => {
11135
+ YesOrNoRadio: t0
11136
+ }, Symbol.toStringTag, { value: "Module" })), I0 = function(n) {
11137
+ Object.entries(n0).forEach(([e, r]) => {
11130
11138
  n.component(e, r);
11131
11139
  });
11132
11140
  };
@@ -11160,7 +11168,7 @@ export {
11160
11168
  ph as ProgressCircles,
11161
11169
  xh as ProgressCirclesLabeled,
11162
11170
  jg as Radio,
11163
- Wg as RadioCards,
11171
+ Yg as RadioCards,
11164
11172
  So as Select,
11165
11173
  jf as SidebarLayout,
11166
11174
  np as Slideover,
@@ -11169,36 +11177,36 @@ export {
11169
11177
  sm as Steps,
11170
11178
  di as TablePaginator,
11171
11179
  nh as Tabs,
11172
- zg as TextArea,
11180
+ Kg as TextArea,
11173
11181
  ah as Toggle,
11174
11182
  sp as Tooltip,
11175
11183
  ui as XYSpinner,
11176
- e0 as YesOrNoRadio,
11184
+ t0 as YesOrNoRadio,
11177
11185
  Kn as debounceFn,
11178
- D0 as debounceLeading,
11179
- R0 as default,
11186
+ E0 as debounceLeading,
11187
+ I0 as default,
11180
11188
  Ru as emailPattern,
11181
11189
  Ou as isHttpCancel,
11182
11190
  Au as isHttpError,
11183
11191
  ra as looseToNumber,
11184
- _0 as numericInputTypes,
11192
+ k0 as numericInputTypes,
11185
11193
  Iu as phonePattern,
11186
- C0 as setBaseAPIDefaults,
11187
- E0 as textInputTypes,
11188
- k0 as throttleFn,
11194
+ D0 as setBaseAPIDefaults,
11195
+ _0 as textInputTypes,
11196
+ S0 as throttleFn,
11189
11197
  Lu as urlPattern,
11190
11198
  ii as useAppFlasher,
11191
11199
  Ut as useAppFlashes,
11192
11200
  na as useAppSpinner,
11193
11201
  kn as useBaseAPI,
11194
- $0 as useBaseAPIDelete,
11195
- S0 as useBaseAPIGet,
11196
- T0 as useBaseAPIPatch,
11197
- M0 as useBaseAPIPost,
11198
- P0 as useBaseAPIPut,
11202
+ T0 as useBaseAPIDelete,
11203
+ $0 as useBaseAPIGet,
11204
+ M0 as useBaseAPIPatch,
11205
+ P0 as useBaseAPIPost,
11206
+ A0 as useBaseAPIPut,
11199
11207
  pd as useFlashes,
11200
11208
  ft as useInputField,
11201
11209
  Mu as useSpinnerDisplay,
11202
- A0 as useTabHistory,
11203
- O0 as useUrlSearchParams
11210
+ O0 as useTabHistory,
11211
+ R0 as useUrlSearchParams
11204
11212
  };