sprintify-ui 0.10.30 → 0.10.31

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.
@@ -2,7 +2,7 @@ var Ld = Object.defineProperty;
2
2
  var Fd = (t, n, e) => n in t ? Ld(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var cn = (t, n, e) => Fd(t, typeof n != "symbol" ? n + "" : n, e);
4
4
  import * as ji from "vue";
5
- import { defineComponent as Q, computed as w, inject as je, resolveComponent as kt, createBlock as te, createElementBlock as z, openBlock as b, withCtx as K, createElementVNode as E, withModifiers as an, normalizeClass as j, unref as c, renderSlot as ce, createCommentVNode as Z, toDisplayString as re, ref as N, nextTick as wt, watchEffect as Ht, onMounted as Ze, cloneVNode as Pd, h as st, Fragment as De, provide as We, onUnmounted as Ut, watch as Ye, shallowRef as Xl, getCurrentInstance as Qs, Teleport as _n, reactive as Zl, normalizeStyle as He, createVNode as X, getCurrentScope as Js, onScopeDispose as eu, shallowReadonly as Eo, Transition as sn, renderList as Ue, resolveDynamicComponent as tn, toRef as Nd, readonly as $o, customRef as Vd, createTextVNode as Ot, onBeforeUnmount as yn, withDirectives as Kt, mergeProps as Mt, Comment as jd, useSlots as tu, isRef as En, TransitionGroup as nu, createStaticVNode as ou, vModelCheckbox as Hd, normalizeProps as ft, guardReactiveProps as pt, vShow as Dn, withKeys as pa, vModelText as ma, createSlots as ru, vModelSelect as qd, defineAsyncComponent as Wd } from "vue";
5
+ import { defineComponent as Q, computed as w, inject as je, resolveComponent as kt, createBlock as te, createElementBlock as z, openBlock as b, withCtx as K, createElementVNode as E, withModifiers as an, normalizeClass as j, unref as c, renderSlot as ce, createCommentVNode as Z, toDisplayString as re, ref as N, nextTick as wt, watchEffect as Ht, onMounted as Qe, cloneVNode as Pd, h as st, Fragment as De, provide as We, onUnmounted as Ut, watch as Ye, shallowRef as Xl, getCurrentInstance as Qs, Teleport as _n, reactive as Zl, normalizeStyle as He, createVNode as X, getCurrentScope as Js, onScopeDispose as eu, shallowReadonly as Eo, Transition as sn, renderList as Ue, resolveDynamicComponent as tn, toRef as Nd, readonly as $o, customRef as Vd, createTextVNode as Ot, onBeforeUnmount as yn, withDirectives as Kt, mergeProps as Mt, Comment as jd, useSlots as tu, isRef as En, TransitionGroup as nu, createStaticVNode as ou, vModelCheckbox as Hd, normalizeProps as ft, guardReactiveProps as pt, vShow as Dn, withKeys as pa, vModelText as ma, createSlots as ru, vModelSelect as qd, defineAsyncComponent as Wd } from "vue";
6
6
  import Ud from "axios";
7
7
  import { padStart as Jr, cloneDeep as Bt, debounce as jt, uniqueId as wo, get as Vt, isArray as _t, isString as Lo, uniq as Yd, isObject as Nn, isFunction as Hi, throttle as Ql, truncate as Kd, trim as Gd, isNumber as to, merge as vr, range as Kn, sortBy as qi, set as Ja, isEqual as Xd, isPlainObject as Zd, reject as Qd, round as Wi, isBoolean as Jd, isNull as ef, capitalize as tf } from "lodash";
8
8
  import Ui from "qs";
@@ -2589,7 +2589,7 @@ function Zi(t, n) {
2589
2589
  }
2590
2590
  function ri(t, n) {
2591
2591
  let e = N(Zi(t.value.type, t.value.as));
2592
- return Ze(() => {
2592
+ return Qe(() => {
2593
2593
  e.value = Zi(t.value.type, t.value.as);
2594
2594
  }), Ht(() => {
2595
2595
  var o;
@@ -2793,7 +2793,7 @@ let Xo = Object.assign(Q({ name: "FocusTrap", props: { as: { type: [Object, Stri
2793
2793
  let r = N(null);
2794
2794
  o({ el: r, $el: r });
2795
2795
  let a = w(() => kn(r)), l = N(!1);
2796
- Ze(() => l.value = !0), Ut(() => l.value = !1), pp({ ownerDocument: a }, w(() => l.value && !!(t.features & 16)));
2796
+ Qe(() => l.value = !0), Ut(() => l.value = !1), pp({ ownerDocument: a }, w(() => l.value && !!(t.features & 16)));
2797
2797
  let s = mp({ ownerDocument: a, container: r, initialFocus: w(() => t.initialFocus) }, w(() => l.value && !!(t.features & 2)));
2798
2798
  hp({ ownerDocument: a, container: r, containers: t.containers, previousActiveElement: s }, w(() => l.value && !!(t.features & 8)));
2799
2799
  let u = si();
@@ -2838,7 +2838,7 @@ function fp(t) {
2838
2838
  }
2839
2839
  function pp({ ownerDocument: t }, n) {
2840
2840
  let e = fp(n);
2841
- Ze(() => {
2841
+ Qe(() => {
2842
2842
  Ht(() => {
2843
2843
  var o, r;
2844
2844
  n.value || ((o = t.value) == null ? void 0 : o.activeElement) === ((r = t.value) == null ? void 0 : r.body) && eo(e());
@@ -2849,7 +2849,7 @@ function pp({ ownerDocument: t }, n) {
2849
2849
  }
2850
2850
  function mp({ ownerDocument: t, container: n, initialFocus: e }, o) {
2851
2851
  let r = N(null), a = N(!1);
2852
- return Ze(() => a.value = !0), Ut(() => a.value = !1), Ze(() => {
2852
+ return Qe(() => a.value = !0), Ut(() => a.value = !1), Qe(() => {
2853
2853
  Ye([n, e, o], (l, s) => {
2854
2854
  if (l.every((d, p) => (s == null ? void 0 : s[p]) === d) || !o.value) return;
2855
2855
  let u = Ie(n);
@@ -3066,7 +3066,7 @@ function Bp({ type: t, enabled: n, element: e, onUpdate: o }) {
3066
3066
  function a(...l) {
3067
3067
  o == null || o(...l), r(...l);
3068
3068
  }
3069
- Ze(() => {
3069
+ Qe(() => {
3070
3070
  Ye(n, (l, s) => {
3071
3071
  l ? a(0, t, e) : s === !0 && a(1, t, e);
3072
3072
  }, { immediate: !0, flush: "sync" });
@@ -3093,7 +3093,7 @@ function Mu({ slot: t = N({}), name: n = "Description", props: e = {} } = {}) {
3093
3093
  Q({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(t, { attrs: n, slots: e }) {
3094
3094
  var o;
3095
3095
  let r = (o = t.id) != null ? o : `headlessui-description-${Wt()}`, a = Mp();
3096
- return Ze(() => Ut(a.register(r))), () => {
3096
+ return Qe(() => Ut(a.register(r))), () => {
3097
3097
  let { name: l = "Description", slot: s = N({}), props: u = {} } = a, { ...d } = t, p = { ...Object.entries(u).reduce((f, [m, g]) => Object.assign(f, { [m]: c(g) }), {}), id: r };
3098
3098
  return St({ ourProps: p, theirProps: d, slot: s.value, attrs: n, slots: e, name: l });
3099
3099
  };
@@ -3122,7 +3122,7 @@ let _u = Q({ name: "Portal", props: { as: { type: [Object, String], default: "di
3122
3122
  let o = N(null), r = w(() => kn(o)), a = Cp(), l = je($u, null), s = N(a === !0 || l == null ? _p(o.value) : l.resolveTarget());
3123
3123
  s.value && es(s.value, (m) => m + 1);
3124
3124
  let u = N(!1);
3125
- Ze(() => {
3125
+ Qe(() => {
3126
3126
  u.value = !0;
3127
3127
  }), Ht(() => {
3128
3128
  a || l != null && (s.value = l.resolveTarget());
@@ -3181,7 +3181,7 @@ function Ir(t) {
3181
3181
  let jr = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ap = Q({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: jr }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (t) => !0 }, setup(t, { emit: n, attrs: e, slots: o, expose: r }) {
3182
3182
  var a, l;
3183
3183
  let s = (a = t.id) != null ? a : `headlessui-dialog-${Wt()}`, u = N(!1);
3184
- Ze(() => {
3184
+ Qe(() => {
3185
3185
  u.value = !0;
3186
3186
  });
3187
3187
  let d = !1, p = w(() => t.role === "dialog" || t.role === "alertdialog" ? t.role : (d || (d = !0, console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), f = N(0), m = qo(), g = w(() => t.open === jr && m !== null ? (m.value & Dt.Open) === Dt.Open : t.open), v = N(null), h = w(() => kn(v));
@@ -3250,7 +3250,7 @@ Q({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
3250
3250
  Q({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(t, { attrs: n, slots: e, expose: o }) {
3251
3251
  var r;
3252
3252
  let a = (r = t.id) != null ? r : `headlessui-dialog-backdrop-${Wt()}`, l = Ir("DialogBackdrop"), s = N(null);
3253
- return o({ el: s, $el: s }), Ze(() => {
3253
+ return o({ el: s, $el: s }), Qe(() => {
3254
3254
  if (l.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
3255
3255
  }), () => {
3256
3256
  let { ...u } = t, d = { id: a, ref: s, "aria-hidden": !0 };
@@ -3272,7 +3272,7 @@ let Tp = Q({ name: "DialogPanel", props: { as: { type: [Object, String], default
3272
3272
  Q({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(t, { attrs: n, slots: e }) {
3273
3273
  var o;
3274
3274
  let r = (o = t.id) != null ? o : `headlessui-dialog-title-${Wt()}`, a = Ir("DialogTitle");
3275
- return Ze(() => {
3275
+ return Qe(() => {
3276
3276
  a.setTitleId(r), Ut(() => a.setTitleId(null));
3277
3277
  }), () => {
3278
3278
  let { ...l } = t;
@@ -3473,7 +3473,7 @@ let Pp = Q({ name: "Menu", props: { as: { type: [Object, String], default: "temp
3473
3473
  let u = w(() => l.activeItemIndex.value !== null ? l.items.value[l.activeItemIndex.value].id === a : !1), d = Op(s), p = w(() => ({ disabled: t.disabled, get textValue() {
3474
3474
  return d();
3475
3475
  }, domRef: s }));
3476
- Ze(() => l.registerItem(a, p)), Ut(() => l.unregisterItem(a)), Ht(() => {
3476
+ Qe(() => l.registerItem(a, p)), Ut(() => l.unregisterItem(a)), Ht(() => {
3477
3477
  l.menuState.value === 0 && u.value && l.activationTrigger.value !== 0 && wt(() => {
3478
3478
  var C, $;
3479
3479
  return ($ = (C = Ie(s)) == null ? void 0 : C.scrollIntoView) == null ? void 0 : $.call(C, { block: "nearest" });
@@ -3560,7 +3560,7 @@ let Ru = Q({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, St
3560
3560
  } }), qp = Q({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(t, { attrs: n, slots: e, expose: o }) {
3561
3561
  var r;
3562
3562
  let a = (r = t.id) != null ? r : `headlessui-popover-button-${Wt()}`, l = Ra("PopoverButton"), s = w(() => kn(l.button));
3563
- o({ el: l.button, $el: l.button }), Ze(() => {
3563
+ o({ el: l.button, $el: l.button }), Qe(() => {
3564
3564
  l.buttonId.value = a;
3565
3565
  }), Ut(() => {
3566
3566
  l.buttonId.value = null;
@@ -3629,7 +3629,7 @@ Q({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div
3629
3629
  let Wp = Q({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(t, { attrs: n, slots: e, expose: o }) {
3630
3630
  var r;
3631
3631
  let a = (r = t.id) != null ? r : `headlessui-popover-panel-${Wt()}`, { focus: l } = t, s = Ra("PopoverPanel"), u = w(() => kn(s.panel)), d = `headlessui-focus-sentinel-before-${Wt()}`, p = `headlessui-focus-sentinel-after-${Wt()}`;
3632
- o({ el: s.panel, $el: s.panel }), Ze(() => {
3632
+ o({ el: s.panel, $el: s.panel }), Qe(() => {
3633
3633
  s.panelId.value = a;
3634
3634
  }), Ut(() => {
3635
3635
  s.panelId.value = null;
@@ -3746,7 +3746,7 @@ function Up({ slot: t = {}, name: n = "Label", props: e = {} } = {}) {
3746
3746
  let Yp = Q({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(t, { slots: n, attrs: e }) {
3747
3747
  var o;
3748
3748
  let r = (o = t.id) != null ? o : `headlessui-label-${Wt()}`, a = Fu();
3749
- return Ze(() => Ut(a.register(r))), () => {
3749
+ return Qe(() => Ut(a.register(r))), () => {
3750
3750
  let { name: l = "Label", slot: s = {}, props: u = {} } = a, { passive: d, ...p } = t, f = { ...Object.entries(u).reduce((m, [g, v]) => Object.assign(m, { [g]: c(v) }), {}), id: r };
3751
3751
  return d && (delete f.onClick, delete f.htmlFor, delete p.onClick), St({ ourProps: f, theirProps: p, slot: s, attrs: e, slots: n, name: l });
3752
3752
  };
@@ -3779,7 +3779,7 @@ let Yp = Q({ name: "Label", props: { as: { type: [Object, String], default: "lab
3779
3779
  var $, i;
3780
3780
  return (i = ($ = Ie(m)) == null ? void 0 : $.closest) == null ? void 0 : i.call($, "form");
3781
3781
  });
3782
- return Ze(() => {
3782
+ return Qe(() => {
3783
3783
  Ye([C], () => {
3784
3784
  if (!C.value || t.defaultChecked === void 0) return;
3785
3785
  function $() {
@@ -3848,7 +3848,7 @@ function La(t) {
3848
3848
  }
3849
3849
  function Nu(t) {
3850
3850
  let n = N([]), e = N(!1);
3851
- Ze(() => e.value = !0), Ut(() => e.value = !1);
3851
+ Qe(() => e.value = !0), Ut(() => e.value = !1);
3852
3852
  function o(a, l = Zn.Hidden) {
3853
3853
  let s = n.value.findIndex(({ id: u }) => u === a);
3854
3854
  s !== -1 && (Gt(l, { [Zn.Unmount]() {
@@ -3883,7 +3883,7 @@ let Vu = zn.RenderStrategy, ea = Q({ props: { as: { type: [Object, String], defa
3883
3883
  let { show: m, appear: g } = tm(), { register: v, unregister: h } = nm(), y = N(m.value ? "visible" : "hidden"), C = { value: !0 }, $ = Wt(), i = { value: !1 }, S = Nu(() => {
3884
3884
  !i.value && y.value !== "hidden" && (y.value = "hidden", h($), d());
3885
3885
  });
3886
- Ze(() => {
3886
+ Qe(() => {
3887
3887
  let ee = v($);
3888
3888
  Ut(ee);
3889
3889
  }), Ht(() => {
@@ -3896,7 +3896,7 @@ let Vu = zn.RenderStrategy, ea = Q({ props: { as: { type: [Object, String], defa
3896
3896
  }
3897
3897
  });
3898
3898
  let R = ao(t.enter), M = ao(t.enterFrom), I = ao(t.enterTo), x = ao(t.entered), k = ao(t.leave), _ = ao(t.leaveFrom), A = ao(t.leaveTo);
3899
- Ze(() => {
3899
+ Qe(() => {
3900
3900
  Ht(() => {
3901
3901
  if (y.value === "visible") {
3902
3902
  let ee = Ie(p);
@@ -3912,7 +3912,7 @@ let Vu = zn.RenderStrategy, ea = Q({ props: { as: { type: [Object, String], defa
3912
3912
  i.value = !1, G === Tl.Finished && (La(S) || (y.value = "hidden", h($), d()));
3913
3913
  })));
3914
3914
  }
3915
- return Ze(() => {
3915
+ return Qe(() => {
3916
3916
  Ye([m], (ee, J, le) => {
3917
3917
  F(le), C.value = !1;
3918
3918
  }, { immediate: !0 });
@@ -3928,7 +3928,7 @@ let Vu = zn.RenderStrategy, ea = Q({ props: { as: { type: [Object, String], defa
3928
3928
  let l = N(a.value ? "visible" : "hidden"), s = Nu(() => {
3929
3929
  l.value = "hidden";
3930
3930
  }), u = N(!0), d = { show: a, appear: w(() => t.appear || !u.value) };
3931
- return Ze(() => {
3931
+ return Qe(() => {
3932
3932
  Ht(() => {
3933
3933
  u.value = !1, a.value ? l.value = "visible" : La(s) || (l.value = "hidden");
3934
3934
  });
@@ -8705,7 +8705,7 @@ const tv = ["value", "name", "disabled", "required"], nv = ["value"], ul = "", c
8705
8705
  }
8706
8706
  );
8707
8707
  let h = null;
8708
- Ze(() => {
8708
+ Qe(() => {
8709
8709
  window.google && v.value && (h = new window.google.maps.places.Autocomplete(
8710
8710
  v.value
8711
8711
  ), y(), h.addListener("place_changed", C));
@@ -9161,7 +9161,7 @@ const cv = {
9161
9161
  emits: ["cancel", "confirm"],
9162
9162
  setup(t, { emit: n }) {
9163
9163
  const e = t, o = n, r = N(null), a = N(null);
9164
- Ze(() => {
9164
+ Qe(() => {
9165
9165
  a.value ? a.value.focus() : r.value && r.value.focus();
9166
9166
  });
9167
9167
  const l = N(""), s = w(() => e.input === !1 ? null : typeof e.input == "object" ? e.input : {
@@ -10424,15 +10424,13 @@ const Dc = /* @__PURE__ */ Uo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10424
10424
  }
10425
10425
  }
10426
10426
  }
10427
- Ze(() => {
10428
- of(
10429
- a.value,
10430
- () => {
10431
- r("scrollBottom");
10432
- },
10433
- { distance: 100 }
10434
- );
10435
- });
10427
+ of(
10428
+ a,
10429
+ () => {
10430
+ r("scrollBottom");
10431
+ },
10432
+ { distance: 100 }
10433
+ );
10436
10434
  function v() {
10437
10435
  if (!a.value)
10438
10436
  return;
@@ -10686,7 +10684,7 @@ const Dc = /* @__PURE__ */ Uo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10686
10684
  w(() => !1)
10687
10685
  );
10688
10686
  let d = 0;
10689
- Ze(() => {
10687
+ Qe(() => {
10690
10688
  d = setTimeout(() => {
10691
10689
  o.focusOnMount && x();
10692
10690
  }, 10);
@@ -10711,7 +10709,7 @@ const Dc = /* @__PURE__ */ Uo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10711
10709
  { immediate: !0 }
10712
10710
  ), $c(h, () => {
10713
10711
  k();
10714
- }, { includes: () => [f] }), Ze(() => {
10712
+ }, { includes: () => [f] }), Qe(() => {
10715
10713
  window.addEventListener("keydown", I);
10716
10714
  }), yn(() => {
10717
10715
  window.removeEventListener("keydown", I);
@@ -11930,7 +11928,7 @@ const c0 = {
11930
11928
  },
11931
11929
  setup(t) {
11932
11930
  const n = N(1), e = N(0), o = N(null);
11933
- Ze(() => {
11931
+ Qe(() => {
11934
11932
  window.addEventListener("resize", r), a();
11935
11933
  }), yn(() => {
11936
11934
  window.removeEventListener("resize", r);
@@ -13233,7 +13231,7 @@ const Z0 = {
13233
13231
  () => {
13234
13232
  v();
13235
13233
  }
13236
- ), Ze(() => {
13234
+ ), Qe(() => {
13237
13235
  y();
13238
13236
  }), yn(() => {
13239
13237
  setTimeout(() => {
@@ -13444,7 +13442,7 @@ function Pc(t, n) {
13444
13442
  o();
13445
13443
  },
13446
13444
  { immediate: !0 }
13447
- ), Ze(() => {
13445
+ ), Qe(() => {
13448
13446
  e.value = !0, o();
13449
13447
  }), yn(() => {
13450
13448
  a();
@@ -13636,7 +13634,7 @@ const ry = {
13636
13634
  maxWidth: d.value
13637
13635
  }
13638
13636
  }));
13639
- Ze(() => {
13637
+ Qe(() => {
13640
13638
  f(), a.value = !0, window.addEventListener("resize", p);
13641
13639
  }), yn(() => {
13642
13640
  window.removeEventListener("resize", p);
@@ -15041,7 +15039,7 @@ const ka = /* @__PURE__ */ qa(cy), dy = { class: "flex grow items-center justify
15041
15039
  au(F, J, {
15042
15040
  attributes: !1,
15043
15041
  childList: !0
15044
- }), Ze(() => {
15042
+ }), Qe(() => {
15045
15043
  ee();
15046
15044
  }), Ye(
15047
15045
  () => k.value,
@@ -15205,7 +15203,7 @@ const ka = /* @__PURE__ */ qa(cy), dy = { class: "flex grow items-center justify
15205
15203
  ));
15206
15204
  let T = Bt(I.value);
15207
15205
  const W = ne();
15208
- T = vr(T, W), be(T), Ze(() => {
15206
+ T = vr(T, W), be(T), Qe(() => {
15209
15207
  q();
15210
15208
  });
15211
15209
  const oe = N(null), pe = w(() => ({
@@ -16816,7 +16814,7 @@ const Pr = /* @__PURE__ */ Q({
16816
16814
  return u[e.itemKey] ?? wo();
16817
16815
  }
16818
16816
  let l = null;
16819
- Ze(() => {
16817
+ Qe(() => {
16820
16818
  r.value && (l = Xe.create(r.value, {
16821
16819
  handle: e.handle,
16822
16820
  disabled: e.disabled,
@@ -17233,7 +17231,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
17233
17231
  const r = w(() => o !== void 0), a = N(null), l = N(!1), s = N(void 0), u = je("table:virtualScrollingDefaultRowHeight", void 0), d = je("table:setVirtualScrollingDefaultRowHeight", void 0), p = jt(f, 10);
17234
17232
  window.addEventListener("scroll", p), Ut(() => {
17235
17233
  window.removeEventListener("scroll", p);
17236
- }), Ze(() => {
17234
+ }), Qe(() => {
17237
17235
  f();
17238
17236
  });
17239
17237
  function f() {
@@ -17532,7 +17530,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
17532
17530
  () => {
17533
17531
  G();
17534
17532
  }
17535
- ), Ze(() => {
17533
+ ), Qe(() => {
17536
17534
  wt(() => {
17537
17535
  G();
17538
17536
  });
@@ -18182,7 +18180,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
18182
18180
  });
18183
18181
  });
18184
18182
  }, $ = mt.settingsStorage, i = N([]), S = js + s.storageKey + ".visible_columns";
18185
- Ze(async () => {
18183
+ Qe(async () => {
18186
18184
  const se = await $.get(S);
18187
18185
  let xe = [];
18188
18186
  if (typeof se == "string")
@@ -18200,7 +18198,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
18200
18198
  );
18201
18199
  }
18202
18200
  const M = N([]), I = js + s.storageKey + ".column_order";
18203
- Ze(async () => {
18201
+ Qe(async () => {
18204
18202
  var ne;
18205
18203
  const se = await $.get(I);
18206
18204
  let xe = [];
@@ -19025,8 +19023,8 @@ function l1(t, n) {
19025
19023
  L = Math.min(L, Fe.getHours()), L === Fe.getHours() && (P = Math.min(P, Fe.getMinutes())), P === Fe.getMinutes() && (Y = Math.min(Y, Fe.getSeconds()));
19026
19024
  }
19027
19025
  if (ie) {
19028
- var Qe = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
19029
- L = Math.max(L, Qe.getHours()), L === Qe.getHours() && P < Qe.getMinutes() && (P = Qe.getMinutes()), P === Qe.getMinutes() && (Y = Math.max(Y, Qe.getSeconds()));
19026
+ var Ze = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
19027
+ L = Math.max(L, Ze.getHours()), L === Ze.getHours() && P < Ze.getMinutes() && (P = Ze.getMinutes()), P === Ze.getMinutes() && (Y = Math.max(Y, Ze.getSeconds()));
19030
19028
  }
19031
19029
  }
19032
19030
  g(L, P, Y);
@@ -19137,9 +19135,9 @@ function l1(t, n) {
19137
19135
  function k(L, P) {
19138
19136
  for (var Y = L.className.indexOf("Month") === -1 ? L.dateObj.getMonth() : e.currentMonth, ie = P > 0 ? e.config.showMonths : -1, Se = P > 0 ? 1 : -1, Ae = Y - e.currentMonth; Ae != ie; Ae += Se)
19139
19137
  for (var et = e.daysContainer.children[Ae], Ve = Y - e.currentMonth === Ae ? L.$i + P : P < 0 ? et.children.length - 1 : 0, rt = et.children.length, Fe = Ve; Fe >= 0 && Fe < rt && Fe != (P > 0 ? rt : -1); Fe += Se) {
19140
- var Qe = et.children[Fe];
19141
- if (Qe.className.indexOf("hidden") === -1 && fe(Qe.dateObj) && Math.abs(L.$i - Fe) >= Math.abs(P))
19142
- return I(Qe);
19138
+ var Ze = et.children[Fe];
19139
+ if (Ze.className.indexOf("hidden") === -1 && fe(Ze.dateObj) && Math.abs(L.$i - Fe) >= Math.abs(P))
19140
+ return I(Ze);
19143
19141
  }
19144
19142
  e.changeMonth(Se), _(x(Se), 0);
19145
19143
  }
@@ -19148,12 +19146,12 @@ function l1(t, n) {
19148
19146
  Se === void 0 ? e._input.focus() : ie ? k(Se, P) : I(Se);
19149
19147
  }
19150
19148
  function A(L, P) {
19151
- for (var Y = (new Date(L, P, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, ie = e.utils.getDaysInMonth((P - 1 + 12) % 12, L), Se = e.utils.getDaysInMonth(P, L), Ae = window.document.createDocumentFragment(), et = e.config.showMonths > 1, Ve = et ? "prevMonthDay hidden" : "prevMonthDay", rt = et ? "nextMonthDay hidden" : "nextMonthDay", Fe = ie + 1 - Y, Qe = 0; Fe <= ie; Fe++, Qe++)
19152
- Ae.appendChild(M("flatpickr-day " + Ve, new Date(L, P - 1, Fe), Fe, Qe));
19153
- for (Fe = 1; Fe <= Se; Fe++, Qe++)
19154
- Ae.appendChild(M("flatpickr-day", new Date(L, P, Fe), Fe, Qe));
19155
- for (var vt = Se + 1; vt <= 42 - Y && (e.config.showMonths === 1 || Qe % 7 !== 0); vt++, Qe++)
19156
- Ae.appendChild(M("flatpickr-day " + rt, new Date(L, P + 1, vt % Se), vt, Qe));
19149
+ for (var Y = (new Date(L, P, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, ie = e.utils.getDaysInMonth((P - 1 + 12) % 12, L), Se = e.utils.getDaysInMonth(P, L), Ae = window.document.createDocumentFragment(), et = e.config.showMonths > 1, Ve = et ? "prevMonthDay hidden" : "prevMonthDay", rt = et ? "nextMonthDay hidden" : "nextMonthDay", Fe = ie + 1 - Y, Ze = 0; Fe <= ie; Fe++, Ze++)
19150
+ Ae.appendChild(M("flatpickr-day " + Ve, new Date(L, P - 1, Fe), Fe, Ze));
19151
+ for (Fe = 1; Fe <= Se; Fe++, Ze++)
19152
+ Ae.appendChild(M("flatpickr-day", new Date(L, P, Fe), Fe, Ze));
19153
+ for (var vt = Se + 1; vt <= 42 - Y && (e.config.showMonths === 1 || Ze % 7 !== 0); vt++, Ze++)
19154
+ Ae.appendChild(M("flatpickr-day " + rt, new Date(L, P + 1, vt % Se), vt, Ze));
19157
19155
  var In = dt("div", "dayContainer");
19158
19156
  return In.appendChild(Ae), In;
19159
19157
  }
@@ -19421,16 +19419,16 @@ function l1(t, n) {
19421
19419
  break;
19422
19420
  case 9:
19423
19421
  if (et) {
19424
- var Qe = [
19422
+ var Ze = [
19425
19423
  e.hourElement,
19426
19424
  e.minuteElement,
19427
19425
  e.secondElement,
19428
19426
  e.amPM
19429
19427
  ].concat(e.pluginElements).filter(function(un) {
19430
19428
  return un;
19431
- }), vt = Qe.indexOf(P);
19429
+ }), vt = Ze.indexOf(P);
19432
19430
  if (vt !== -1) {
19433
- var In = Qe[vt + (L.shiftKey ? -1 : 1)];
19431
+ var In = Ze[vt + (L.shiftKey ? -1 : 1)];
19434
19432
  L.preventDefault(), (In || e._input).focus();
19435
19433
  }
19436
19434
  } else !e.config.noCalendar && e.daysContainer && e.daysContainer.contains(P) && L.shiftKey && (L.preventDefault(), e._input.focus());
@@ -19454,8 +19452,8 @@ function l1(t, n) {
19454
19452
  if (P === void 0 && (P = "flatpickr-day"), !(e.selectedDates.length !== 1 || L && (!L.classList.contains(P) || L.classList.contains("flatpickr-disabled")))) {
19455
19453
  for (var Y = L ? L.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), ie = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), Se = Math.min(Y, e.selectedDates[0].getTime()), Ae = Math.max(Y, e.selectedDates[0].getTime()), et = !1, Ve = 0, rt = 0, Fe = Se; Fe < Ae; Fe += r1.DAY)
19456
19454
  fe(new Date(Fe), !0) || (et = et || Fe > Se && Fe < Ae, Fe < ie && (!Ve || Fe > Ve) ? Ve = Fe : Fe > ie && (!rt || Fe < rt) && (rt = Fe));
19457
- var Qe = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + P));
19458
- Qe.forEach(function(vt) {
19455
+ var Ze = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + P));
19456
+ Ze.forEach(function(vt) {
19459
19457
  var In = vt.dateObj, un = In.getTime(), Yo = Ve > 0 && un < Ve || rt > 0 && un > rt;
19460
19458
  if (Yo) {
19461
19459
  vt.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Co) {
@@ -19518,15 +19516,15 @@ function l1(t, n) {
19518
19516
  get: function() {
19519
19517
  return e.config._enable;
19520
19518
  },
19521
- set: function(Qe) {
19522
- e.config._enable = T(Qe);
19519
+ set: function(Ze) {
19520
+ e.config._enable = T(Ze);
19523
19521
  }
19524
19522
  }), Object.defineProperty(e.config, "disable", {
19525
19523
  get: function() {
19526
19524
  return e.config._disable;
19527
19525
  },
19528
- set: function(Qe) {
19529
- e.config._disable = T(Qe);
19526
+ set: function(Ze) {
19527
+ e.config._disable = T(Ze);
19530
19528
  }
19531
19529
  });
19532
19530
  var ie = P.mode === "time";
@@ -19549,9 +19547,9 @@ function l1(t, n) {
19549
19547
  },
19550
19548
  set: Te("max")
19551
19549
  });
19552
- var et = function(Qe) {
19550
+ var et = function(Ze) {
19553
19551
  return function(vt) {
19554
- e.config[Qe === "min" ? "_minTime" : "_maxTime"] = e.parseDate(vt, "H:i:S");
19552
+ e.config[Ze === "min" ? "_minTime" : "_maxTime"] = e.parseDate(vt, "H:i:S");
19555
19553
  };
19556
19554
  };
19557
19555
  Object.defineProperty(e.config, "minTime", {
@@ -19567,10 +19565,10 @@ function l1(t, n) {
19567
19565
  }), P.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, Y, P);
19568
19566
  for (var Ve = 0; Ve < L.length; Ve++)
19569
19567
  e.config[L[Ve]] = e.config[L[Ve]] === !0 || e.config[L[Ve]] === "true";
19570
- wl.filter(function(Qe) {
19571
- return e.config[Qe] !== void 0;
19572
- }).forEach(function(Qe) {
19573
- e.config[Qe] = xl(e.config[Qe] || []).map(l);
19568
+ wl.filter(function(Ze) {
19569
+ return e.config[Ze] !== void 0;
19570
+ }).forEach(function(Ze) {
19571
+ e.config[Ze] = xl(e.config[Ze] || []).map(l);
19574
19572
  }), e.isMobile = !e.config.disableMobile && !e.config.inline && e.config.mode === "single" && !e.config.disable.length && !e.config.enable && !e.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
19575
19573
  for (var Ve = 0; Ve < e.config.plugins.length; Ve++) {
19576
19574
  var rt = e.config.plugins[Ve](e) || {};
@@ -19594,13 +19592,13 @@ function l1(t, n) {
19594
19592
  _e("onPreCalendarPosition");
19595
19593
  var P = L || e._positionElement, Y = Array.prototype.reduce.call(e.calendarContainer.children, function(Od, Rd) {
19596
19594
  return Od + Rd.offsetHeight;
19597
- }, 0), ie = e.calendarContainer.offsetWidth, Se = e.config.position.split(" "), Ae = Se[0], et = Se.length > 1 ? Se[1] : null, Ve = P.getBoundingClientRect(), rt = window.innerHeight - Ve.bottom, Fe = Ae === "above" || Ae !== "below" && rt < Y && Ve.top > Y, Qe = window.pageYOffset + Ve.top + (Fe ? -Y - 2 : P.offsetHeight + 2);
19595
+ }, 0), ie = e.calendarContainer.offsetWidth, Se = e.config.position.split(" "), Ae = Se[0], et = Se.length > 1 ? Se[1] : null, Ve = P.getBoundingClientRect(), rt = window.innerHeight - Ve.bottom, Fe = Ae === "above" || Ae !== "below" && rt < Y && Ve.top > Y, Ze = window.pageYOffset + Ve.top + (Fe ? -Y - 2 : P.offsetHeight + 2);
19598
19596
  if (Jt(e.calendarContainer, "arrowTop", !Fe), Jt(e.calendarContainer, "arrowBottom", Fe), !e.config.inline) {
19599
19597
  var vt = window.pageXOffset + Ve.left, In = !1, un = !1;
19600
19598
  et === "center" ? (vt -= (ie - Ve.width) / 2, In = !0) : et === "right" && (vt -= ie - Ve.width, un = !0), Jt(e.calendarContainer, "arrowLeft", !In && !un), Jt(e.calendarContainer, "arrowCenter", In), Jt(e.calendarContainer, "arrowRight", un);
19601
19599
  var Yo = window.document.body.offsetWidth - (window.pageXOffset + Ve.right), Co = vt + ie > window.document.body.offsetWidth, _d = Yo + ie > window.document.body.offsetWidth;
19602
19600
  if (Jt(e.calendarContainer, "rightMost", Co), !e.config.static)
19603
- if (e.calendarContainer.style.top = Qe + "px", !Co)
19601
+ if (e.calendarContainer.style.top = Ze + "px", !Co)
19604
19602
  e.calendarContainer.style.left = vt + "px", e.calendarContainer.style.right = "auto";
19605
19603
  else if (!_d)
19606
19604
  e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Yo + "px";
@@ -19641,8 +19639,8 @@ function l1(t, n) {
19641
19639
  }
19642
19640
  function Nt(L) {
19643
19641
  L.preventDefault(), L.stopPropagation();
19644
- var P = function(Qe) {
19645
- return Qe.classList && Qe.classList.contains("flatpickr-day") && !Qe.classList.contains("flatpickr-disabled") && !Qe.classList.contains("notAllowed");
19642
+ var P = function(Ze) {
19643
+ return Ze.classList && Ze.classList.contains("flatpickr-day") && !Ze.classList.contains("flatpickr-disabled") && !Ze.classList.contains("notAllowed");
19646
19644
  }, Y = fd(dn(L), P);
19647
19645
  if (Y !== void 0) {
19648
19646
  var ie = Y, Se = e.latestSelectedDateObj = new Date(ie.dateObj.getTime()), Ae = (Se.getMonth() < e.currentMonth || Se.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
@@ -19651,8 +19649,8 @@ function l1(t, n) {
19651
19649
  else if (e.config.mode === "multiple") {
19652
19650
  var et = ue(Se);
19653
19651
  et ? e.selectedDates.splice(parseInt(et), 1) : e.selectedDates.push(Se);
19654
- } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = Se, e.selectedDates.push(Se), pn(Se, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(Qe, vt) {
19655
- return Qe.getTime() - vt.getTime();
19652
+ } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = Se, e.selectedDates.push(Se), pn(Se, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(Ze, vt) {
19653
+ return Ze.getTime() - vt.getTime();
19656
19654
  }));
19657
19655
  if (f(), Ae) {
19658
19656
  var Ve = e.currentYear !== Se.getFullYear();
@@ -19820,8 +19818,8 @@ function l1(t, n) {
19820
19818
  e.amPM !== void 0 && Y === e.amPM && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]);
19821
19819
  var Se = parseFloat(ie.getAttribute("min")), Ae = parseFloat(ie.getAttribute("max")), et = parseFloat(ie.getAttribute("step")), Ve = parseInt(ie.value, 10), rt = L.delta || (P ? L.which === 38 ? 1 : -1 : 0), Fe = Ve + et * rt;
19822
19820
  if (typeof ie.value < "u" && ie.value.length === 2) {
19823
- var Qe = ie === e.hourElement, vt = ie === e.minuteElement;
19824
- Fe < Se ? (Fe = Ae + Fe + bn(!Qe) + (bn(Qe) && bn(!e.amPM)), vt && S(void 0, -1, e.hourElement)) : Fe > Ae && (Fe = ie === e.hourElement ? Fe - Ae - bn(!e.amPM) : Se, vt && S(void 0, 1, e.hourElement)), e.amPM && Qe && (et === 1 ? Fe + Ve === 23 : Math.abs(Fe - Ve) > et) && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]), ie.value = on(Fe);
19821
+ var Ze = ie === e.hourElement, vt = ie === e.minuteElement;
19822
+ Fe < Se ? (Fe = Ae + Fe + bn(!Ze) + (bn(Ze) && bn(!e.amPM)), vt && S(void 0, -1, e.hourElement)) : Fe > Ae && (Fe = ie === e.hourElement ? Fe - Ae - bn(!e.amPM) : Se, vt && S(void 0, 1, e.hourElement)), e.amPM && Ze && (et === 1 ? Fe + Ve === 23 : Math.abs(Fe - Ve) > et) && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]), ie.value = on(Fe);
19825
19823
  }
19826
19824
  }
19827
19825
  return r(), e;
@@ -20085,7 +20083,7 @@ const u1 = ["disabled", "placeholder"], c1 = /* @__PURE__ */ Q({
20085
20083
  prevArrow: '<svg class="fill-current" width="7" height="11" viewBox="0 0 7 11"><path d="M5.4 10.8l1.4-1.4-4-4 4-4L5.4 0 0 5.4z" /></svg>',
20086
20084
  nextArrow: '<svg class="fill-current" width="7" height="11" viewBox="0 0 7 11"><path d="M1.4 10.8L0 9.4l4-4-4-4L1.4 0l5.4 5.4z" /></svg>'
20087
20085
  }));
20088
- Ze(() => {
20086
+ Qe(() => {
20089
20087
  Xd(e.modelValue, u.value) || l(u.value);
20090
20088
  }), Ye(
20091
20089
  () => u.value,
@@ -20110,7 +20108,7 @@ const u1 = ["disabled", "placeholder"], c1 = /* @__PURE__ */ Q({
20110
20108
  deep: !0,
20111
20109
  immediate: !0
20112
20110
  }
20113
- ), Ze(() => {
20111
+ ), Qe(() => {
20114
20112
  $();
20115
20113
  }), Ut(() => {
20116
20114
  setTimeout(() => {
@@ -20429,7 +20427,7 @@ const u1 = ["disabled", "placeholder"], c1 = /* @__PURE__ */ Q({
20429
20427
  var a;
20430
20428
  e.value = ((a = n.value) == null ? void 0 : a.clientWidth) ?? Ws;
20431
20429
  }
20432
- return Ze(() => {
20430
+ return Qe(() => {
20433
20431
  r();
20434
20432
  }), Er(n, jt(r, 50)), (a, l) => (b(), z("div", {
20435
20433
  ref_key: "item",
@@ -22091,7 +22089,7 @@ const k1 = /* @__PURE__ */ qa(x1), S1 = { class: "text-xs text-slate-600" }, hd
22091
22089
  w(() => r.valueKey),
22092
22090
  w(() => !0)
22093
22091
  );
22094
- Ze(() => {
22092
+ Qe(() => {
22095
22093
  window.addEventListener("keydown", p);
22096
22094
  }), yn(() => {
22097
22095
  window.removeEventListener("keydown", p);
@@ -22103,7 +22101,7 @@ const k1 = /* @__PURE__ */ qa(x1), S1 = { class: "text-xs text-slate-600" }, hd
22103
22101
  V === "Tab" && A(), V === "Escape" && A();
22104
22102
  }
22105
22103
  let f = 0;
22106
- Ze(() => {
22104
+ Qe(() => {
22107
22105
  f = setTimeout(() => {
22108
22106
  r.focusOnMount && _();
22109
22107
  }, 10);
@@ -23578,7 +23576,7 @@ const Z1 = ["onClick"], Q1 = { class: "px-2 flex items-center" }, J1 = { class:
23578
23576
  });
23579
23577
  }
23580
23578
  const g = jt(m, 200);
23581
- Ze(() => {
23579
+ Qe(() => {
23582
23580
  setTimeout(() => {
23583
23581
  m(), Ye(() => f.value, g, { deep: !0 });
23584
23582
  }, 1);
@@ -24213,7 +24211,7 @@ const Z1 = ["onClick"], Q1 = { class: "px-2 flex items-center" }, J1 = { class:
24213
24211
  S != "" && (S = "-" + S), o("update:modelValue", i + S);
24214
24212
  });
24215
24213
  }
24216
- return Ze(() => {
24214
+ return Qe(() => {
24217
24215
  h();
24218
24216
  }), (i, S) => (b(), z("div", {
24219
24217
  class: "w-full overflow-hidden rounded border bg-white",
@@ -24516,7 +24514,7 @@ const Z1 = ["onClick"], Q1 = { class: "px-2 flex items-center" }, J1 = { class:
24516
24514
  () => {
24517
24515
  l();
24518
24516
  }
24519
- )) : Ze(() => {
24517
+ )) : Qe(() => {
24520
24518
  l();
24521
24519
  }), Ut(() => {
24522
24520
  clearTimeout(a);
@@ -26045,7 +26043,7 @@ const ck = /* @__PURE__ */ Uo(rk, [["render", uk]]), dk = { class: "space-y-3" }
26045
26043
  "-webkit-line-clamp": e.maxLines,
26046
26044
  "-webkit-box-orient": "vertical"
26047
26045
  }));
26048
- Ze(() => {
26046
+ Qe(() => {
26049
26047
  l(), au(
26050
26048
  n.value,
26051
26049
  () => {
@@ -26812,7 +26810,7 @@ const Pk = /* @__PURE__ */ Uo(Dk, [["render", Fk]]), Nk = { class: "flex-shrink-
26812
26810
  });
26813
26811
  }
26814
26812
  const p = N(null);
26815
- Ze(() => {
26813
+ Qe(() => {
26816
26814
  wt(() => {
26817
26815
  f(!1);
26818
26816
  });
@@ -27590,7 +27588,7 @@ const Pk = /* @__PURE__ */ Uo(Dk, [["render", Fk]]), Nk = { class: "flex-shrink-
27590
27588
  s.value[v + S] = C[S], a.code += C[S];
27591
27589
  (i = l.value[v + C.length]) == null || i.focus(), h.preventDefault();
27592
27590
  };
27593
- return Ze(async () => {
27591
+ return Qe(async () => {
27594
27592
  await wt(), l.value = Array.from(
27595
27593
  { length: e.numberOfCharacters },
27596
27594
  (h, y) => l.value[y]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.10.30",
3
+ "version": "0.10.31",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -266,15 +266,13 @@ function onKeydown(event: KeyboardEvent) {
266
266
 
267
267
  // Infinite scroll
268
268
 
269
- onMounted(() => {
270
- useInfiniteScroll(
271
- drawerRef.value,
272
- () => {
273
- emit('scrollBottom');
274
- },
275
- { distance: 100 }
276
- );
277
- });
269
+ useInfiniteScroll(
270
+ drawerRef,
271
+ () => {
272
+ emit('scrollBottom');
273
+ },
274
+ { distance: 100 }
275
+ );
278
276
 
279
277
  function scrollToFocus() {
280
278
  if (!drawerRef.value) {