@xy-planning-network/trees 0.11.9 → 0.12.0

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,7 +10955,7 @@ 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), [
10958
+ }), null, 16, zg), [
10956
10959
  [co, e.value]
10957
10960
  ]),
10958
10961
  k(Re, {
@@ -10967,7 +10970,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10967
10970
  }, null, 8, ["id", "text"])
10968
10971
  ]));
10969
10972
  }
10970
- }), Kg = ["aria-labelledby", "aria-describedby", "aria-errormessage"], Gg = { key: 0 }, Jg = ["for"], Xg = ["id", "name"], Zg = ["for"], Qg = ["id", "name"], e0 = /* @__PURE__ */ R({
10973
+ }), Gg = ["aria-labelledby", "aria-describedby", "aria-errormessage"], Jg = { key: 0 }, Xg = ["for"], Zg = ["id", "name"], Qg = ["for"], e0 = ["id", "name"], t0 = /* @__PURE__ */ R({
10971
10974
  inheritAttrs: !1,
10972
10975
  __name: "YesOrNoRadio",
10973
10976
  props: /* @__PURE__ */ ve(/* @__PURE__ */ ut({
@@ -10996,7 +10999,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10996
10999
  "aria-describedby": m(r).describedby,
10997
11000
  "aria-errormessage": m(r).errormessage
10998
11001
  }, [
10999
- c.label ? (x(), _("div", Gg, [
11002
+ c.label ? (x(), _("div", Jg, [
11000
11003
  k($n, {
11001
11004
  id: m(r).labelledby,
11002
11005
  class: "block my-auto",
@@ -11039,7 +11042,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11039
11042
  (...f) => m(u) && m(u)(...f)),
11040
11043
  onInvalid: d[2] || (d[2] = //@ts-ignore
11041
11044
  (...f) => m(l) && m(l)(...f))
11042
- }), null, 16, Xg), [
11045
+ }), null, 16, Zg), [
11043
11046
  [Wr, e.value]
11044
11047
  ]),
11045
11048
  k(qe, {
@@ -11047,7 +11050,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11047
11050
  label: "Yes",
11048
11051
  tag: "span"
11049
11052
  })
11050
- ], 10, Jg),
11053
+ ], 10, Xg),
11051
11054
  v("label", {
11052
11055
  class: L(["inline-flex items-center ml-6", m(o) ? "cursor-not-allowed" : "cursor-pointer"]),
11053
11056
  for: `${m(s)}-false`
@@ -11069,7 +11072,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11069
11072
  (...f) => m(u) && m(u)(...f)),
11070
11073
  onInvalid: d[5] || (d[5] = //@ts-ignore
11071
11074
  (...f) => m(l) && m(l)(...f))
11072
- }), null, 16, Qg), [
11075
+ }), null, 16, e0), [
11073
11076
  [Wr, e.value]
11074
11077
  ]),
11075
11078
  k(qe, {
@@ -11077,11 +11080,11 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11077
11080
  label: "No",
11078
11081
  tag: "span"
11079
11082
  })
11080
- ], 10, Zg)
11083
+ ], 10, Qg)
11081
11084
  ])
11082
- ], 8, Kg));
11085
+ ], 8, Gg));
11083
11086
  }
11084
- }), t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11087
+ }), n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11085
11088
  __proto__: null,
11086
11089
  ActionsDropdown: _o,
11087
11090
  BaseInput: Dh,
@@ -11111,7 +11114,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11111
11114
  ProgressCircles: ph,
11112
11115
  ProgressCirclesLabeled: xh,
11113
11116
  Radio: jg,
11114
- RadioCards: Wg,
11117
+ RadioCards: Yg,
11115
11118
  Select: So,
11116
11119
  SidebarLayout: jf,
11117
11120
  Slideover: np,
@@ -11120,13 +11123,13 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
11120
11123
  Steps: sm,
11121
11124
  TablePaginator: di,
11122
11125
  Tabs: nh,
11123
- TextArea: zg,
11126
+ TextArea: Kg,
11124
11127
  Toggle: ah,
11125
11128
  Tooltip: sp,
11126
11129
  XYSpinner: ui,
11127
- YesOrNoRadio: e0
11128
- }, Symbol.toStringTag, { value: "Module" })), R0 = function(n) {
11129
- Object.entries(t0).forEach(([e, r]) => {
11130
+ YesOrNoRadio: t0
11131
+ }, Symbol.toStringTag, { value: "Module" })), I0 = function(n) {
11132
+ Object.entries(n0).forEach(([e, r]) => {
11130
11133
  n.component(e, r);
11131
11134
  });
11132
11135
  };
@@ -11160,7 +11163,7 @@ export {
11160
11163
  ph as ProgressCircles,
11161
11164
  xh as ProgressCirclesLabeled,
11162
11165
  jg as Radio,
11163
- Wg as RadioCards,
11166
+ Yg as RadioCards,
11164
11167
  So as Select,
11165
11168
  jf as SidebarLayout,
11166
11169
  np as Slideover,
@@ -11169,36 +11172,36 @@ export {
11169
11172
  sm as Steps,
11170
11173
  di as TablePaginator,
11171
11174
  nh as Tabs,
11172
- zg as TextArea,
11175
+ Kg as TextArea,
11173
11176
  ah as Toggle,
11174
11177
  sp as Tooltip,
11175
11178
  ui as XYSpinner,
11176
- e0 as YesOrNoRadio,
11179
+ t0 as YesOrNoRadio,
11177
11180
  Kn as debounceFn,
11178
- D0 as debounceLeading,
11179
- R0 as default,
11181
+ E0 as debounceLeading,
11182
+ I0 as default,
11180
11183
  Ru as emailPattern,
11181
11184
  Ou as isHttpCancel,
11182
11185
  Au as isHttpError,
11183
11186
  ra as looseToNumber,
11184
- _0 as numericInputTypes,
11187
+ k0 as numericInputTypes,
11185
11188
  Iu as phonePattern,
11186
- C0 as setBaseAPIDefaults,
11187
- E0 as textInputTypes,
11188
- k0 as throttleFn,
11189
+ D0 as setBaseAPIDefaults,
11190
+ _0 as textInputTypes,
11191
+ S0 as throttleFn,
11189
11192
  Lu as urlPattern,
11190
11193
  ii as useAppFlasher,
11191
11194
  Ut as useAppFlashes,
11192
11195
  na as useAppSpinner,
11193
11196
  kn as useBaseAPI,
11194
- $0 as useBaseAPIDelete,
11195
- S0 as useBaseAPIGet,
11196
- T0 as useBaseAPIPatch,
11197
- M0 as useBaseAPIPost,
11198
- P0 as useBaseAPIPut,
11197
+ T0 as useBaseAPIDelete,
11198
+ $0 as useBaseAPIGet,
11199
+ M0 as useBaseAPIPatch,
11200
+ P0 as useBaseAPIPost,
11201
+ A0 as useBaseAPIPut,
11199
11202
  pd as useFlashes,
11200
11203
  ft as useInputField,
11201
11204
  Mu as useSpinnerDisplay,
11202
- A0 as useTabHistory,
11203
- O0 as useUrlSearchParams
11205
+ O0 as useTabHistory,
11206
+ R0 as useUrlSearchParams
11204
11207
  };