@xy-planning-network/trees 0.6.6-rc-7 → 0.6.6-rc-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.
package/dist/trees.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Xo = Object.defineProperty;
2
2
  var Qo = (t, n, e) => n in t ? Xo(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var _n = (t, n, e) => (Qo(t, typeof n != "symbol" ? n + "" : n, e), e);
4
- import { ref as E, cloneVNode as Zo, h as rt, watchEffect as ce, provide as ge, inject as fe, defineComponent as L, onUnmounted as He, Teleport as ei, reactive as ti, onUpdated as xa, computed as F, unref as h, onMounted as De, nextTick as at, toRaw as gt, watch as bt, openBlock as y, createBlock as j, createVNode as k, toRef as ut, withCtx as P, Transition as jt, createElementVNode as m, createElementBlock as C, Fragment as z, renderList as ee, normalizeClass as V, resolveDynamicComponent as Be, createCommentVNode as U, createTextVNode as Ae, toDisplayString as Y, renderSlot as re, mergeProps as Ve, normalizeProps as Ca, useAttrs as ze, shallowRef as ni, withModifiers as yt, TransitionGroup as ri, withDirectives as Xn, vShow as Nr, normalizeStyle as Fr, isVNode as ai, vModelText as oi, resolveComponent as ii, Comment as si, Text as li, useSlots as Da } from "vue";
4
+ import { ref as E, cloneVNode as Zo, h as rt, watchEffect as ce, provide as ge, inject as fe, defineComponent as L, onUnmounted as He, Teleport as ei, reactive as ti, onUpdated as xa, computed as F, unref as h, onMounted as Ce, nextTick as at, toRaw as gt, watch as bt, openBlock as y, createBlock as j, createVNode as k, toRef as ut, withCtx as P, Transition as jt, createElementVNode as m, createElementBlock as C, Fragment as z, renderList as ee, normalizeClass as V, resolveDynamicComponent as Be, createCommentVNode as U, createTextVNode as Ae, toDisplayString as Y, renderSlot as re, mergeProps as Ve, normalizeProps as Ca, useAttrs as ze, shallowRef as ni, withModifiers as yt, TransitionGroup as ri, withDirectives as Xn, vShow as Nr, normalizeStyle as Fr, isVNode as ai, vModelText as oi, resolveComponent as ii, Comment as si, Text as li, useSlots as Da } from "vue";
5
5
  function ui(t) {
6
6
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7
7
  }
@@ -476,8 +476,8 @@ function Kr() {
476
476
  t.isFormData(S) && t.isStandardBrowserEnv() && delete _["Content-Type"];
477
477
  var O = new XMLHttpRequest();
478
478
  if (p.auth) {
479
- var ye = p.auth.username || "", oe = p.auth.password ? unescape(encodeURIComponent(p.auth.password)) : "";
480
- _.Authorization = "Basic " + btoa(ye + ":" + oe);
479
+ var De = p.auth.username || "", oe = p.auth.password ? unescape(encodeURIComponent(p.auth.password)) : "";
480
+ _.Authorization = "Basic " + btoa(De + ":" + oe);
481
481
  }
482
482
  var Je = r(p.baseURL, p.url);
483
483
  O.open(p.method.toUpperCase(), a(Je, p.params, p.paramsSerializer), !0), O.timeout = p.timeout;
@@ -521,9 +521,9 @@ function Kr() {
521
521
  }), t.isUndefined(p.withCredentials) || (O.withCredentials = !!p.withCredentials), N && N !== "json" && (O.responseType = p.responseType), typeof p.onDownloadProgress == "function" && O.addEventListener("progress", p.onDownloadProgress), typeof p.onUploadProgress == "function" && O.upload && O.upload.addEventListener("progress", p.onUploadProgress), (p.cancelToken || p.signal) && (I = function(ie) {
522
522
  O && ($(!ie || ie && ie.type ? new c() : ie), O.abort(), O = null);
523
523
  }, p.cancelToken && p.cancelToken.subscribe(I), p.signal && (p.signal.aborted ? I() : p.signal.addEventListener("abort", I))), S || (S = null);
524
- var we = d(Je);
525
- if (we && ["http", "https", "file"].indexOf(we) === -1) {
526
- $(new u("Unsupported protocol " + we + ":", u.ERR_BAD_REQUEST, p));
524
+ var ye = d(Je);
525
+ if (ye && ["http", "https", "file"].indexOf(ye) === -1) {
526
+ $(new u("Unsupported protocol " + ye + ":", u.ERR_BAD_REQUEST, p));
527
527
  return;
528
528
  }
529
529
  O.send(S);
@@ -1569,7 +1569,7 @@ var Is = /* @__PURE__ */ L({
1569
1569
  },
1570
1570
  setup: function() {
1571
1571
  var n = As(), e = "headlessui-description-" + be();
1572
- return De(function() {
1572
+ return Ce(function() {
1573
1573
  return He(n.register(e));
1574
1574
  }), {
1575
1575
  id: e,
@@ -1594,10 +1594,10 @@ function St() {
1594
1594
  function cn(t) {
1595
1595
  ge(Xa, t);
1596
1596
  }
1597
- var Ce;
1597
+ var xe;
1598
1598
  (function(t) {
1599
1599
  t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed";
1600
- })(Ce || (Ce = {}));
1600
+ })(xe || (xe = {}));
1601
1601
  var Qa = /* @__PURE__ */ Symbol("DialogContext");
1602
1602
  function Lt(t) {
1603
1603
  var n = fe(Qa, null);
@@ -1642,12 +1642,12 @@ var zt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fn = /* @__PURE__ */ L({
1642
1642
  ref: "el",
1643
1643
  id: this.id,
1644
1644
  role: "dialog",
1645
- "aria-modal": this.dialogState === Ce.Open ? !0 : void 0,
1645
+ "aria-modal": this.dialogState === xe.Open ? !0 : void 0,
1646
1646
  "aria-labelledby": this.titleId,
1647
1647
  "aria-describedby": this.describedby,
1648
1648
  onClick: this.handleClick
1649
1649
  }), a = this.$props, r = Ue(a, ["open", "initialFocus"]), o = {
1650
- open: this.dialogState === Ce.Open
1650
+ open: this.dialogState === xe.Open
1651
1651
  };
1652
1652
  return rt(da, {
1653
1653
  force: !0
@@ -1686,12 +1686,12 @@ var zt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fn = /* @__PURE__ */ L({
1686
1686
  if (typeof i.value != "boolean")
1687
1687
  throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: " + (i.value === zt ? void 0 : n.open));
1688
1688
  var u = F(function() {
1689
- return n.open ? Ce.Open : Ce.Closed;
1689
+ return n.open ? xe.Open : xe.Closed;
1690
1690
  }), c = F(function() {
1691
- return o !== null ? o.value === de.Open : u.value === Ce.Open;
1692
- }), d = E(null), g = E(u.value === Ce.Open);
1691
+ return o !== null ? o.value === de.Open : u.value === xe.Open;
1692
+ }), d = E(null), g = E(u.value === xe.Open);
1693
1693
  xa(function() {
1694
- g.value = u.value === Ce.Open;
1694
+ g.value = u.value === xe.Open;
1695
1695
  });
1696
1696
  var p = "headlessui-dialog-" + be(), b = F(function() {
1697
1697
  return {
@@ -1725,25 +1725,25 @@ var zt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fn = /* @__PURE__ */ L({
1725
1725
  };
1726
1726
  return ge(Qa, S), Ke("mousedown", function(_) {
1727
1727
  var N = _.target;
1728
- u.value === Ce.Open && r.value.size === 1 && (tr(r.value, N) || (S.close(), at(function() {
1728
+ u.value === xe.Open && r.value.size === 1 && (tr(r.value, N) || (S.close(), at(function() {
1729
1729
  return N == null ? void 0 : N.focus();
1730
1730
  })));
1731
1731
  }), Ke("keydown", function(_) {
1732
- _.key === B.Escape && u.value === Ce.Open && (r.value.size > 1 || (_.preventDefault(), _.stopPropagation(), S.close()));
1732
+ _.key === B.Escape && u.value === xe.Open && (r.value.size > 1 || (_.preventDefault(), _.stopPropagation(), S.close()));
1733
1733
  }), ce(function(_) {
1734
- if (u.value === Ce.Open) {
1734
+ if (u.value === xe.Open) {
1735
1735
  var N = document.documentElement.style.overflow, I = document.documentElement.style.paddingRight, q = window.innerWidth - document.documentElement.clientWidth;
1736
1736
  document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = q + "px", _(function() {
1737
1737
  document.documentElement.style.overflow = N, document.documentElement.style.paddingRight = I;
1738
1738
  });
1739
1739
  }
1740
1740
  }), ce(function(_) {
1741
- if (u.value === Ce.Open) {
1741
+ if (u.value === xe.Open) {
1742
1742
  var N = T(d);
1743
1743
  if (N) {
1744
1744
  var I = new IntersectionObserver(function(q) {
1745
- for (var O = qe(q), ye; !(ye = O()).done; ) {
1746
- var oe = ye.value;
1745
+ for (var O = qe(q), De; !(De = O()).done; ) {
1746
+ var oe = De.value;
1747
1747
  oe.boundingClientRect.x === 0 && oe.boundingClientRect.y === 0 && oe.boundingClientRect.width === 0 && oe.boundingClientRect.height === 0 && S.close();
1748
1748
  }
1749
1749
  });
@@ -1785,7 +1785,7 @@ var zt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fn = /* @__PURE__ */ L({
1785
1785
  return ae({
1786
1786
  props: X({}, a, e),
1787
1787
  slot: {
1788
- open: n.dialogState.value === Ce.Open
1788
+ open: n.dialogState.value === xe.Open
1789
1789
  },
1790
1790
  attrs: this.$attrs,
1791
1791
  slots: this.$slots,
@@ -1816,7 +1816,7 @@ var zt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fn = /* @__PURE__ */ L({
1816
1816
  return ae({
1817
1817
  props: X({}, a, e),
1818
1818
  slot: {
1819
- open: n.dialogState.value === Ce.Open
1819
+ open: n.dialogState.value === xe.Open
1820
1820
  },
1821
1821
  attrs: this.$attrs,
1822
1822
  slots: this.$slots,
@@ -1825,7 +1825,7 @@ var zt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fn = /* @__PURE__ */ L({
1825
1825
  },
1826
1826
  setup: function() {
1827
1827
  var n = Lt("DialogTitle"), e = "headlessui-dialog-title-" + be();
1828
- return De(function() {
1828
+ return Ce(function() {
1829
1829
  n.setTitleId(e), He(function() {
1830
1830
  return n.setTitleId(null);
1831
1831
  });
@@ -1843,7 +1843,7 @@ function ha(t, n) {
1843
1843
  }
1844
1844
  function mn(t, n) {
1845
1845
  var e = E(ha(t.value.type, t.value.as));
1846
- return De(function() {
1846
+ return Ce(function() {
1847
1847
  e.value = ha(t.value.type, t.value.as);
1848
1848
  }), ce(function() {
1849
1849
  var a;
@@ -2448,10 +2448,10 @@ var vr = /* @__PURE__ */ L({
2448
2448
  disabled: n.disabled,
2449
2449
  textValue: ""
2450
2450
  });
2451
- De(function() {
2451
+ Ce(function() {
2452
2452
  var b, w, $ = (b = document.getElementById(i)) == null || (w = b.textContent) == null ? void 0 : w.toLowerCase().trim();
2453
2453
  $ !== void 0 && (u.value.textValue = $);
2454
- }), De(function() {
2454
+ }), Ce(function() {
2455
2455
  return o.registerItem(i, u);
2456
2456
  }), He(function() {
2457
2457
  return o.unregisterItem(i);
@@ -2866,7 +2866,7 @@ var Ks = /* @__PURE__ */ L({
2866
2866
  },
2867
2867
  setup: function() {
2868
2868
  var n = lo(), e = "headlessui-label-" + be();
2869
- return De(function() {
2869
+ return Ce(function() {
2870
2870
  return He(n.register(e));
2871
2871
  }), {
2872
2872
  id: e,
@@ -3089,7 +3089,7 @@ var Gs = /* @__PURE__ */ L({
3089
3089
  disabled: n.disabled
3090
3090
  };
3091
3091
  }), u = E(lt.Empty);
3092
- De(function() {
3092
+ Ce(function() {
3093
3093
  return e.registerOption({
3094
3094
  id: a,
3095
3095
  element: i,
@@ -3334,7 +3334,7 @@ function hn(t) {
3334
3334
  }
3335
3335
  function mo(t) {
3336
3336
  var n = E([]), e = E(!1);
3337
- De(function() {
3337
+ Ce(function() {
3338
3338
  return e.value = !0;
3339
3339
  }), He(function() {
3340
3340
  return e.value = !1;
@@ -3476,7 +3476,7 @@ var ho = ke.RenderStrategy, Qe = /* @__PURE__ */ L({
3476
3476
  }, S = mo(function() {
3477
3477
  $.value || (o.value = te.Hidden, p(w), a("afterLeave"));
3478
3478
  });
3479
- De(function() {
3479
+ Ce(function() {
3480
3480
  var Q = g(w);
3481
3481
  He(Q);
3482
3482
  }), ce(function() {
@@ -3493,8 +3493,8 @@ var ho = ke.RenderStrategy, Qe = /* @__PURE__ */ L({
3493
3493
  }, Q));
3494
3494
  }
3495
3495
  });
3496
- var _ = st(n.enter), N = st(n.enterFrom), I = st(n.enterTo), q = st(n.entered), O = st(n.leave), ye = st(n.leaveFrom), oe = st(n.leaveTo);
3497
- De(function() {
3496
+ var _ = st(n.enter), N = st(n.enterFrom), I = st(n.enterTo), q = st(n.entered), O = st(n.leave), De = st(n.leaveFrom), oe = st(n.leaveTo);
3497
+ Ce(function() {
3498
3498
  ce(function() {
3499
3499
  if (o.value === te.Visible) {
3500
3500
  var Q = T(r), Xe = Q instanceof Comment && Q.data === "";
@@ -3504,16 +3504,16 @@ var ho = ke.RenderStrategy, Qe = /* @__PURE__ */ L({
3504
3504
  });
3505
3505
  });
3506
3506
  function Je(Q) {
3507
- var Xe = b.value && !c.value, we = T(r);
3508
- !we || !(we instanceof HTMLElement) || Xe || ($.value = !0, u.value && a("beforeEnter"), u.value || a("beforeLeave"), Q(u.value ? ga(we, _, N, I, q, function(ie) {
3507
+ var Xe = b.value && !c.value, ye = T(r);
3508
+ !ye || !(ye instanceof HTMLElement) || Xe || ($.value = !0, u.value && a("beforeEnter"), u.value || a("beforeLeave"), Q(u.value ? ga(ye, _, N, I, q, function(ie) {
3509
3509
  $.value = !1, ie === ot.Finished && a("afterEnter");
3510
- }) : ga(we, O, ye, oe, q, function(ie) {
3510
+ }) : ga(ye, O, De, oe, q, function(ie) {
3511
3511
  $.value = !1, ie === ot.Finished && (hn(S) || (o.value = te.Hidden, p(w), a("afterLeave")));
3512
3512
  })));
3513
3513
  }
3514
- return De(function() {
3515
- bt([u, c], function(Q, Xe, we) {
3516
- Je(we), b.value = !1;
3514
+ return Ce(function() {
3515
+ bt([u, c], function(Q, Xe, ye) {
3516
+ Je(ye), b.value = !1;
3517
3517
  }, {
3518
3518
  immediate: !0
3519
3519
  });
@@ -3643,7 +3643,7 @@ var ho = ke.RenderStrategy, Qe = /* @__PURE__ */ L({
3643
3643
  return n.appear || !i.value;
3644
3644
  })
3645
3645
  };
3646
- return De(function() {
3646
+ return Ce(function() {
3647
3647
  ce(function() {
3648
3648
  i.value = !1, a.value ? r.value = te.Visible : hn(o) || (r.value = te.Hidden);
3649
3649
  });
@@ -3763,7 +3763,7 @@ const vo = (t) => {
3763
3763
  u ? "bg-gray-100 text-gray-900" : "text-gray-700",
3764
3764
  "block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"
3765
3765
  ]),
3766
- onClick: i.event
3766
+ onClick: i.onClick
3767
3767
  }, [
3768
3768
  m("span", dl, [
3769
3769
  i.icon ? (y(), j(Be(i.icon), {
@@ -4059,7 +4059,7 @@ function ya(t, n) {
4059
4059
  };
4060
4060
  }
4061
4061
  const Kn = (t) => t instanceof Array ? t : [t];
4062
- function xe(t, n, e) {
4062
+ function we(t, n, e) {
4063
4063
  if (e === !0)
4064
4064
  return t.classList.add(n);
4065
4065
  t.classList.remove(n);
@@ -4418,9 +4418,9 @@ function _l(t, n) {
4418
4418
  const { weekWrapper: v, weekNumbers: x } = Eo();
4419
4419
  e.innerContainer.appendChild(v), e.weekNumbers = x, e.weekWrapper = v;
4420
4420
  }
4421
- e.rContainer = K("div", "flatpickr-rContainer"), e.rContainer.appendChild(_r()), e.daysContainer || (e.daysContainer = K("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), we(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), l.appendChild(e.innerContainer);
4421
+ e.rContainer = K("div", "flatpickr-rContainer"), e.rContainer.appendChild(_r()), e.daysContainer || (e.daysContainer = K("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), ye(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), l.appendChild(e.innerContainer);
4422
4422
  }
4423
- e.config.enableTime && l.appendChild(Mt()), xe(e.calendarContainer, "rangeMode", e.config.mode === "range"), xe(e.calendarContainer, "animate", e.config.animate === !0), xe(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(l);
4423
+ e.config.enableTime && l.appendChild(Mt()), we(e.calendarContainer, "rangeMode", e.config.mode === "range"), we(e.calendarContainer, "animate", e.config.animate === !0), we(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(l);
4424
4424
  const f = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
4425
4425
  if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!f && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
4426
4426
  const v = K("div", "flatpickr-wrapper");
@@ -4430,9 +4430,9 @@ function _l(t, n) {
4430
4430
  }
4431
4431
  function O(l, f, v, x) {
4432
4432
  const M = it(f, !0), D = K("span", "flatpickr-day " + l, f.getDate().toString());
4433
- return D.dateObj = f, D.$i = x, D.setAttribute("aria-label", e.formatDate(f, e.config.ariaDateFormat)), l.indexOf("hidden") === -1 && Oe(f, e.now) === 0 && (e.todayDateElem = D, D.classList.add("today"), D.setAttribute("aria-current", "date")), M ? (D.tabIndex = -1, kn(f) && (D.classList.add("selected"), e.selectedDateElem = D, e.config.mode === "range" && (xe(D, "startRange", e.selectedDates[0] && Oe(f, e.selectedDates[0], !0) === 0), xe(D, "endRange", e.selectedDates[1] && Oe(f, e.selectedDates[1], !0) === 0), l === "nextMonthDay" && D.classList.add("inRange")))) : D.classList.add("flatpickr-disabled"), e.config.mode === "range" && Uo(f) && !kn(f) && D.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && l !== "prevMonthDay" && v % 7 === 1 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(f) + "</span>"), ne("onDayCreate", D), D;
4433
+ return D.dateObj = f, D.$i = x, D.setAttribute("aria-label", e.formatDate(f, e.config.ariaDateFormat)), l.indexOf("hidden") === -1 && Oe(f, e.now) === 0 && (e.todayDateElem = D, D.classList.add("today"), D.setAttribute("aria-current", "date")), M ? (D.tabIndex = -1, kn(f) && (D.classList.add("selected"), e.selectedDateElem = D, e.config.mode === "range" && (we(D, "startRange", e.selectedDates[0] && Oe(f, e.selectedDates[0], !0) === 0), we(D, "endRange", e.selectedDates[1] && Oe(f, e.selectedDates[1], !0) === 0), l === "nextMonthDay" && D.classList.add("inRange")))) : D.classList.add("flatpickr-disabled"), e.config.mode === "range" && Uo(f) && !kn(f) && D.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && l !== "prevMonthDay" && v % 7 === 1 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(f) + "</span>"), ne("onDayCreate", D), D;
4434
4434
  }
4435
- function ye(l) {
4435
+ function De(l) {
4436
4436
  l.focus(), e.config.mode === "range" && Cn(l);
4437
4437
  }
4438
4438
  function oe(l) {
@@ -4453,14 +4453,14 @@ function _l(t, n) {
4453
4453
  for (let W = A; W >= 0 && W < H && W != (f > 0 ? H : -1); W += M) {
4454
4454
  const Z = R.children[W];
4455
4455
  if (Z.className.indexOf("hidden") === -1 && it(Z.dateObj) && Math.abs(l.$i - W) >= Math.abs(f))
4456
- return ye(Z);
4456
+ return De(Z);
4457
4457
  }
4458
4458
  }
4459
4459
  e.changeMonth(M), Q(oe(M), 0);
4460
4460
  }
4461
4461
  function Q(l, f) {
4462
4462
  const v = Ht(document.activeElement || document.body), x = l !== void 0 ? l : v ? document.activeElement : e.selectedDateElem !== void 0 && Ht(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && Ht(e.todayDateElem) ? e.todayDateElem : oe(f > 0 ? 1 : -1);
4463
- x === void 0 ? e._input.focus() : v ? Je(x, f) : ye(x);
4463
+ x === void 0 ? e._input.focus() : v ? Je(x, f) : De(x);
4464
4464
  }
4465
4465
  function Xe(l, f) {
4466
4466
  const v = (new Date(l, f, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, x = e.utils.getDaysInMonth((f - 1 + 12) % 12, l), M = e.utils.getDaysInMonth(f, l), D = window.document.createDocumentFragment(), R = e.config.showMonths > 1, A = R ? "prevMonthDay hidden" : "prevMonthDay", H = R ? "nextMonthDay hidden" : "nextMonthDay";
@@ -4474,7 +4474,7 @@ function _l(t, n) {
4474
4474
  const Ie = K("div", "dayContainer");
4475
4475
  return Ie.appendChild(D), Ie;
4476
4476
  }
4477
- function we() {
4477
+ function ye() {
4478
4478
  if (e.daysContainer === void 0)
4479
4479
  return;
4480
4480
  Jt(e.daysContainer), e.weekNumbers && Jt(e.weekNumbers);
@@ -4527,12 +4527,12 @@ function _l(t, n) {
4527
4527
  return e.monthNav = K("div", "flatpickr-months"), e.yearElements = [], e.monthElements = [], e.prevMonthNav = K("span", "flatpickr-prev-month"), e.prevMonthNav.innerHTML = e.config.prevArrow, e.nextMonthNav = K("span", "flatpickr-next-month"), e.nextMonthNav.innerHTML = e.config.nextArrow, Ye(), Object.defineProperty(e, "_hidePrevMonthArrow", {
4528
4528
  get: () => e.__hidePrevMonthArrow,
4529
4529
  set(l) {
4530
- e.__hidePrevMonthArrow !== l && (xe(e.prevMonthNav, "flatpickr-disabled", l), e.__hidePrevMonthArrow = l);
4530
+ e.__hidePrevMonthArrow !== l && (we(e.prevMonthNav, "flatpickr-disabled", l), e.__hidePrevMonthArrow = l);
4531
4531
  }
4532
4532
  }), Object.defineProperty(e, "_hideNextMonthArrow", {
4533
4533
  get: () => e.__hideNextMonthArrow,
4534
4534
  set(l) {
4535
- e.__hideNextMonthArrow !== l && (xe(e.nextMonthNav, "flatpickr-disabled", l), e.__hideNextMonthArrow = l);
4535
+ e.__hideNextMonthArrow !== l && (we(e.nextMonthNav, "flatpickr-disabled", l), e.__hideNextMonthArrow = l);
4536
4536
  }
4537
4537
  }), e.currentYearElement = e.yearElements[0], Wt(), e.monthNav;
4538
4538
  }
@@ -4590,7 +4590,7 @@ function _l(t, n) {
4590
4590
  }
4591
4591
  function wn(l, f = !0) {
4592
4592
  const v = f ? l : l - e.currentMonth;
4593
- v < 0 && e._hidePrevMonthArrow === !0 || v > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += v, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, ne("onYearChange"), ie()), we(), ne("onMonthChange"), Wt());
4593
+ v < 0 && e._hidePrevMonthArrow === !0 || v > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += v, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, ne("onYearChange"), ie()), ye(), ne("onMonthChange"), Wt());
4594
4594
  }
4595
4595
  function _o(l = !0, f = !0) {
4596
4596
  if (e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, f === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
@@ -4890,12 +4890,12 @@ function _l(t, n) {
4890
4890
  return;
4891
4891
  ne("onPreCalendarPosition");
4892
4892
  const f = l || e._positionElement, v = Array.prototype.reduce.call(e.calendarContainer.children, (Pt, En) => Pt + En.offsetHeight, 0), x = e.calendarContainer.offsetWidth, M = e.config.position.split(" "), D = M[0], R = M.length > 1 ? M[1] : null, A = f.getBoundingClientRect(), H = window.innerHeight - A.bottom, W = D === "above" || D !== "below" && H < v && A.top > v, Z = window.pageYOffset + A.top + (W ? -v - 2 : f.offsetHeight + 2);
4893
- if (xe(e.calendarContainer, "arrowTop", !W), xe(e.calendarContainer, "arrowBottom", W), e.config.inline)
4893
+ if (we(e.calendarContainer, "arrowTop", !W), we(e.calendarContainer, "arrowBottom", W), e.config.inline)
4894
4894
  return;
4895
4895
  let Ie = window.pageXOffset + A.left, he = !1, qt = !1;
4896
- R === "center" ? (Ie -= (x - A.width) / 2, he = !0) : R === "right" && (Ie -= x - A.width, qt = !0), xe(e.calendarContainer, "arrowLeft", !he && !qt), xe(e.calendarContainer, "arrowCenter", he), xe(e.calendarContainer, "arrowRight", qt);
4896
+ R === "center" ? (Ie -= (x - A.width) / 2, he = !0) : R === "right" && (Ie -= x - A.width, qt = !0), we(e.calendarContainer, "arrowLeft", !he && !qt), we(e.calendarContainer, "arrowCenter", he), we(e.calendarContainer, "arrowRight", qt);
4897
4897
  const We = window.document.body.offsetWidth - (window.pageXOffset + A.right), Ot = Ie + x > window.document.body.offsetWidth, Tt = We + x > window.document.body.offsetWidth;
4898
- if (xe(e.calendarContainer, "rightMost", Ot), !e.config.static)
4898
+ if (we(e.calendarContainer, "rightMost", Ot), !e.config.static)
4899
4899
  if (e.calendarContainer.style.top = `${Z}px`, !Ot)
4900
4900
  e.calendarContainer.style.left = `${Ie}px`, e.calendarContainer.style.right = "auto";
4901
4901
  else if (!Tt)
@@ -4905,7 +4905,7 @@ function _l(t, n) {
4905
4905
  if (Pt === void 0)
4906
4906
  return;
4907
4907
  const En = window.document.body.offsetWidth, qo = Math.max(0, En / 2 - x / 2), Ko = ".flatpickr-calendar.centerMost:before", zo = ".flatpickr-calendar.centerMost:after", Go = Pt.cssRules.length, Jo = `{left:${A.left}px;right:auto;}`;
4908
- xe(e.calendarContainer, "rightMost", !1), xe(e.calendarContainer, "centerMost", !0), Pt.insertRule(`${Ko},${zo}${Jo}`, Go), e.calendarContainer.style.left = `${qo}px`, e.calendarContainer.style.right = "auto";
4908
+ we(e.calendarContainer, "rightMost", !1), we(e.calendarContainer, "centerMost", !0), Pt.insertRule(`${Ko},${zo}${Jo}`, Go), e.calendarContainer.style.left = `${qo}px`, e.calendarContainer.style.right = "auto";
4909
4909
  }
4910
4910
  }
4911
4911
  function Lo() {
@@ -4927,7 +4927,7 @@ function _l(t, n) {
4927
4927
  return document.head.appendChild(l), l.sheet;
4928
4928
  }
4929
4929
  function Pr() {
4930
- e.config.noCalendar || e.isMobile || (ie(), Wt(), we());
4930
+ e.config.noCalendar || e.isMobile || (ie(), Wt(), ye());
4931
4931
  }
4932
4932
  function Dn() {
4933
4933
  e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
@@ -4949,7 +4949,7 @@ function _l(t, n) {
4949
4949
  const R = e.currentYear !== M.getFullYear();
4950
4950
  e.currentYear = M.getFullYear(), e.currentMonth = M.getMonth(), R && (ne("onYearChange"), ie()), ne("onMonthChange");
4951
4951
  }
4952
- if (Wt(), we(), et(), !D && e.config.mode !== "range" && e.config.showMonths === 1 ? ye(x) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
4952
+ if (Wt(), ye(), et(), !D && e.config.mode !== "range" && e.config.showMonths === 1 ? De(x) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
4953
4953
  const R = e.config.mode === "single" && !e.config.enableTime, A = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
4954
4954
  (R || A) && Dn();
4955
4955
  }
@@ -5242,7 +5242,7 @@ const je = /* @__PURE__ */ L({
5242
5242
  const e = t, r = ze().id || Ge.CreateIdAttribute(), o = (i) => {
5243
5243
  n("update:modelValue", i);
5244
5244
  };
5245
- return De(() => {
5245
+ return Ce(() => {
5246
5246
  se(`#${r}`, {
5247
5247
  dateFormat: "m-d-Y",
5248
5248
  mode: "range",
@@ -5698,7 +5698,7 @@ const Co = {
5698
5698
  return "border-green-500";
5699
5699
  }
5700
5700
  };
5701
- return De(() => {
5701
+ return Ce(() => {
5702
5702
  Nl(n);
5703
5703
  }), (r, o) => (y(), j(h(pr), null, {
5704
5704
  default: P(() => [
@@ -6409,7 +6409,7 @@ const or = /* @__PURE__ */ L({
6409
6409
  const c = dd(() => {
6410
6410
  o.value = e();
6411
6411
  });
6412
- De(() => {
6412
+ Ce(() => {
6413
6413
  window.addEventListener("resize", c), window.addEventListener("scroll", c);
6414
6414
  }), He(() => {
6415
6415
  window.removeEventListener("resize", c), window.removeEventListener("scroll", c);
@@ -6767,7 +6767,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
6767
6767
  );
6768
6768
  }
6769
6769
  }, $o = (t, n, e, a = oc) => {
6770
- const r = E(n), o = E(t), i = E(e), s = F(() => i.value.length > 0), u = F(() => r.value.map((d) => {
6770
+ const r = E(n), o = E(t), i = E(e), s = F(() => i.value.actions.length > 0), u = F(() => r.value.map((d) => {
6771
6771
  let g = "";
6772
6772
  switch ((d == null ? void 0 : d.alignment) || "left") {
6773
6773
  case "left":
@@ -6785,10 +6785,10 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
6785
6785
  alignment: g
6786
6786
  };
6787
6787
  })), c = F(() => o.value.map((d, g) => ({
6788
- actions: i.value.map((p) => ({
6788
+ actions: i.value.actions.map((p) => ({
6789
6789
  ...p,
6790
6790
  disabled: typeof p.disabled == "function" ? p.disabled.apply(void 0, [d, g]) : p.disabled,
6791
- event: () => p.event(d, g, a),
6791
+ onClick: () => p.onClick(d, g, a),
6792
6792
  show: typeof p.show == "function" ? p.show.apply(void 0, [d, g]) : p.show
6793
6793
  })),
6794
6794
  rowData: d,
@@ -6828,7 +6828,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
6828
6828
  "rounded-r-md": s === h(e).length - 1
6829
6829
  }]),
6830
6830
  disabled: i.disabled,
6831
- onClick: i.event
6831
+ onClick: yt(i.onClick, ["stop"])
6832
6832
  }, [
6833
6833
  m("span", uc, [
6834
6834
  i.icon ? (y(), j(Be(i.icon), {
@@ -6850,8 +6850,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
6850
6850
  class: "px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"
6851
6851
  }, bc = { key: 0 }, yc = ["colspan"], wc = /* @__PURE__ */ L({
6852
6852
  props: {
6853
- tableActions: { default: () => [] },
6854
- tableActionsType: { default: "dropdown" },
6853
+ tableActions: { default: () => ({ type: "dropdown", actions: [] }) },
6855
6854
  tableColumns: null,
6856
6855
  tableData: null
6857
6856
  },
@@ -6890,7 +6889,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
6890
6889
  _: 2
6891
6890
  }, 1032, ["class"]))), 128)),
6892
6891
  h(a) ? (y(), C("td", gc, [
6893
- t.tableActionsType === "dropdown" ? (y(), j(h(Cr), {
6892
+ t.tableActions.type === "dropdown" ? (y(), j(h(Cr), {
6894
6893
  key: 0,
6895
6894
  actions: u.actions
6896
6895
  }, null, 8, ["actions"])) : (y(), j(ko, {
@@ -7045,10 +7044,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
7045
7044
  class: "px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"
7046
7045
  }, of = { key: 0 }, sf = ["colspan"], lf = /* @__PURE__ */ L({
7047
7046
  props: {
7048
- clickable: { type: Boolean, default: !1 },
7049
- loader: { type: Boolean, default: !0 },
7050
- tableActions: { default: () => [] },
7051
- tableActionsType: { default: "dropdown" },
7047
+ tableActions: { default: () => ({ type: "dropdown", actions: [] }) },
7052
7048
  tableColumns: null,
7053
7049
  tableOptions: null
7054
7050
  },
@@ -7066,7 +7062,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
7066
7062
  };
7067
7063
  Ya.get(
7068
7064
  e.tableOptions.url,
7069
- { skipLoader: !e.loader },
7065
+ { skipLoader: !0 },
7070
7066
  I
7071
7067
  ).then(
7072
7068
  (q) => {
@@ -7154,8 +7150,8 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
7154
7150
  m("table", Uc, [
7155
7151
  m("thead", null, [
7156
7152
  m("tr", null, [
7157
- (y(!0), C(z, null, ee(h(s), (O, ye) => (y(), C("th", {
7158
- key: ye,
7153
+ (y(!0), C(z, null, ee(h(s), (O, De) => (y(), C("th", {
7154
+ key: De,
7159
7155
  class: V(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4", O.alignment])
7160
7156
  }, [
7161
7157
  O.title ? (y(), C("span", Yc, Y(O.title), 1)) : U("", !0),
@@ -7171,17 +7167,13 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
7171
7167
  ])
7172
7168
  ]),
7173
7169
  m("tbody", nf, [
7174
- (y(!0), C(z, null, ee(h(d), (O, ye) => (y(), C("tr", {
7175
- key: ye,
7176
- class: V(["group", { "cursor-pointer": t.clickable }]),
7177
- onClick: yt((oe) => I.$emit("click:row", O.rowData, ye, i), ["stop"])
7170
+ (y(!0), C(z, null, ee(h(d), (O, De) => (y(), C("tr", {
7171
+ key: De,
7172
+ onClick: (oe) => I.$emit("click:row", O.rowData)
7178
7173
  }, [
7179
7174
  (y(!0), C(z, null, ee(O.cells, (oe, Je) => (y(), j(Be("td"), {
7180
7175
  key: Je,
7181
- class: V(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5", {
7182
- [oe.alignment]: !0,
7183
- "group-hover:bg-gray-50": t.clickable
7184
- }])
7176
+ class: V(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5", oe.alignment])
7185
7177
  }, {
7186
7178
  default: P(() => [
7187
7179
  oe.isComponent ? (y(), j(Be(oe.val), { key: 0 })) : (y(), C("span", {
@@ -7192,7 +7184,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
7192
7184
  _: 2
7193
7185
  }, 1032, ["class"]))), 128)),
7194
7186
  h(u) ? (y(), C("td", af, [
7195
- t.tableActionsType === "dropdown" ? (y(), j(h(Cr), {
7187
+ t.tableActions.type === "dropdown" ? (y(), j(h(Cr), {
7196
7188
  key: 0,
7197
7189
  actions: O.actions
7198
7190
  }, null, 8, ["actions"])) : (y(), j(ko, {
@@ -7200,7 +7192,7 @@ const hd = /* @__PURE__ */ cd(fd, [["render", md]]), vd = { class: "absolute ins
7200
7192
  actions: O.actions
7201
7193
  }, null, 8, ["actions"]))
7202
7194
  ])) : U("", !0)
7203
- ], 10, rf))), 128)),
7195
+ ], 8, rf))), 128)),
7204
7196
  h(N) ? U("", !0) : (y(), C("tr", of, [
7205
7197
  m("td", {
7206
7198
  colspan: h(d).length,