sprintify-ui 0.10.30 → 0.10.32

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;
@@ -10481,7 +10479,10 @@ const Dc = /* @__PURE__ */ Uo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10481
10479
  ref_key: "drawerRef",
10482
10480
  ref: a,
10483
10481
  "data-scroll-lock-scrollable": "",
10484
- class: "max-h-[214px] w-full overflow-y-auto"
10482
+ style: {
10483
+ height: "214px"
10484
+ },
10485
+ class: "w-full overflow-y-auto"
10485
10486
  }, [
10486
10487
  t.options.length == 0 ? ce(S.$slots, "empty", { key: 0 }, () => [
10487
10488
  E("div", Jv, re(c(ye)("sui.nothing_found")), 1)
@@ -10686,7 +10687,7 @@ const Dc = /* @__PURE__ */ Uo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10686
10687
  w(() => !1)
10687
10688
  );
10688
10689
  let d = 0;
10689
- Ze(() => {
10690
+ Qe(() => {
10690
10691
  d = setTimeout(() => {
10691
10692
  o.focusOnMount && x();
10692
10693
  }, 10);
@@ -10711,7 +10712,7 @@ const Dc = /* @__PURE__ */ Uo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10711
10712
  { immediate: !0 }
10712
10713
  ), $c(h, () => {
10713
10714
  k();
10714
- }, { includes: () => [f] }), Ze(() => {
10715
+ }, { includes: () => [f] }), Qe(() => {
10715
10716
  window.addEventListener("keydown", I);
10716
10717
  }), yn(() => {
10717
10718
  window.removeEventListener("keydown", I);
@@ -11930,7 +11931,7 @@ const c0 = {
11930
11931
  },
11931
11932
  setup(t) {
11932
11933
  const n = N(1), e = N(0), o = N(null);
11933
- Ze(() => {
11934
+ Qe(() => {
11934
11935
  window.addEventListener("resize", r), a();
11935
11936
  }), yn(() => {
11936
11937
  window.removeEventListener("resize", r);
@@ -13233,7 +13234,7 @@ const Z0 = {
13233
13234
  () => {
13234
13235
  v();
13235
13236
  }
13236
- ), Ze(() => {
13237
+ ), Qe(() => {
13237
13238
  y();
13238
13239
  }), yn(() => {
13239
13240
  setTimeout(() => {
@@ -13444,7 +13445,7 @@ function Pc(t, n) {
13444
13445
  o();
13445
13446
  },
13446
13447
  { immediate: !0 }
13447
- ), Ze(() => {
13448
+ ), Qe(() => {
13448
13449
  e.value = !0, o();
13449
13450
  }), yn(() => {
13450
13451
  a();
@@ -13636,7 +13637,7 @@ const ry = {
13636
13637
  maxWidth: d.value
13637
13638
  }
13638
13639
  }));
13639
- Ze(() => {
13640
+ Qe(() => {
13640
13641
  f(), a.value = !0, window.addEventListener("resize", p);
13641
13642
  }), yn(() => {
13642
13643
  window.removeEventListener("resize", p);
@@ -15041,7 +15042,7 @@ const ka = /* @__PURE__ */ qa(cy), dy = { class: "flex grow items-center justify
15041
15042
  au(F, J, {
15042
15043
  attributes: !1,
15043
15044
  childList: !0
15044
- }), Ze(() => {
15045
+ }), Qe(() => {
15045
15046
  ee();
15046
15047
  }), Ye(
15047
15048
  () => k.value,
@@ -15205,7 +15206,7 @@ const ka = /* @__PURE__ */ qa(cy), dy = { class: "flex grow items-center justify
15205
15206
  ));
15206
15207
  let T = Bt(I.value);
15207
15208
  const W = ne();
15208
- T = vr(T, W), be(T), Ze(() => {
15209
+ T = vr(T, W), be(T), Qe(() => {
15209
15210
  q();
15210
15211
  });
15211
15212
  const oe = N(null), pe = w(() => ({
@@ -16816,7 +16817,7 @@ const Pr = /* @__PURE__ */ Q({
16816
16817
  return u[e.itemKey] ?? wo();
16817
16818
  }
16818
16819
  let l = null;
16819
- Ze(() => {
16820
+ Qe(() => {
16820
16821
  r.value && (l = Xe.create(r.value, {
16821
16822
  handle: e.handle,
16822
16823
  disabled: e.disabled,
@@ -17233,7 +17234,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
17233
17234
  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
17235
  window.addEventListener("scroll", p), Ut(() => {
17235
17236
  window.removeEventListener("scroll", p);
17236
- }), Ze(() => {
17237
+ }), Qe(() => {
17237
17238
  f();
17238
17239
  });
17239
17240
  function f() {
@@ -17532,7 +17533,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
17532
17533
  () => {
17533
17534
  G();
17534
17535
  }
17535
- ), Ze(() => {
17536
+ ), Qe(() => {
17536
17537
  wt(() => {
17537
17538
  G();
17538
17539
  });
@@ -18182,7 +18183,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
18182
18183
  });
18183
18184
  });
18184
18185
  }, $ = mt.settingsStorage, i = N([]), S = js + s.storageKey + ".visible_columns";
18185
- Ze(async () => {
18186
+ Qe(async () => {
18186
18187
  const se = await $.get(S);
18187
18188
  let xe = [];
18188
18189
  if (typeof se == "string")
@@ -18200,7 +18201,7 @@ const _b = ["align", "colspan"], cd = /* @__PURE__ */ Q({
18200
18201
  );
18201
18202
  }
18202
18203
  const M = N([]), I = js + s.storageKey + ".column_order";
18203
- Ze(async () => {
18204
+ Qe(async () => {
18204
18205
  var ne;
18205
18206
  const se = await $.get(I);
18206
18207
  let xe = [];
@@ -19025,8 +19026,8 @@ function l1(t, n) {
19025
19026
  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
19027
  }
19027
19028
  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()));
19029
+ var Ze = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
19030
+ 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
19031
  }
19031
19032
  }
19032
19033
  g(L, P, Y);
@@ -19137,9 +19138,9 @@ function l1(t, n) {
19137
19138
  function k(L, P) {
19138
19139
  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
19140
  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);
19141
+ var Ze = et.children[Fe];
19142
+ if (Ze.className.indexOf("hidden") === -1 && fe(Ze.dateObj) && Math.abs(L.$i - Fe) >= Math.abs(P))
19143
+ return I(Ze);
19143
19144
  }
19144
19145
  e.changeMonth(Se), _(x(Se), 0);
19145
19146
  }
@@ -19148,12 +19149,12 @@ function l1(t, n) {
19148
19149
  Se === void 0 ? e._input.focus() : ie ? k(Se, P) : I(Se);
19149
19150
  }
19150
19151
  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));
19152
+ 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++)
19153
+ Ae.appendChild(M("flatpickr-day " + Ve, new Date(L, P - 1, Fe), Fe, Ze));
19154
+ for (Fe = 1; Fe <= Se; Fe++, Ze++)
19155
+ Ae.appendChild(M("flatpickr-day", new Date(L, P, Fe), Fe, Ze));
19156
+ for (var vt = Se + 1; vt <= 42 - Y && (e.config.showMonths === 1 || Ze % 7 !== 0); vt++, Ze++)
19157
+ Ae.appendChild(M("flatpickr-day " + rt, new Date(L, P + 1, vt % Se), vt, Ze));
19157
19158
  var In = dt("div", "dayContainer");
19158
19159
  return In.appendChild(Ae), In;
19159
19160
  }
@@ -19421,16 +19422,16 @@ function l1(t, n) {
19421
19422
  break;
19422
19423
  case 9:
19423
19424
  if (et) {
19424
- var Qe = [
19425
+ var Ze = [
19425
19426
  e.hourElement,
19426
19427
  e.minuteElement,
19427
19428
  e.secondElement,
19428
19429
  e.amPM
19429
19430
  ].concat(e.pluginElements).filter(function(un) {
19430
19431
  return un;
19431
- }), vt = Qe.indexOf(P);
19432
+ }), vt = Ze.indexOf(P);
19432
19433
  if (vt !== -1) {
19433
- var In = Qe[vt + (L.shiftKey ? -1 : 1)];
19434
+ var In = Ze[vt + (L.shiftKey ? -1 : 1)];
19434
19435
  L.preventDefault(), (In || e._input).focus();
19435
19436
  }
19436
19437
  } else !e.config.noCalendar && e.daysContainer && e.daysContainer.contains(P) && L.shiftKey && (L.preventDefault(), e._input.focus());
@@ -19454,8 +19455,8 @@ function l1(t, n) {
19454
19455
  if (P === void 0 && (P = "flatpickr-day"), !(e.selectedDates.length !== 1 || L && (!L.classList.contains(P) || L.classList.contains("flatpickr-disabled")))) {
19455
19456
  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
19457
  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) {
19458
+ var Ze = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + P));
19459
+ Ze.forEach(function(vt) {
19459
19460
  var In = vt.dateObj, un = In.getTime(), Yo = Ve > 0 && un < Ve || rt > 0 && un > rt;
19460
19461
  if (Yo) {
19461
19462
  vt.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Co) {
@@ -19518,15 +19519,15 @@ function l1(t, n) {
19518
19519
  get: function() {
19519
19520
  return e.config._enable;
19520
19521
  },
19521
- set: function(Qe) {
19522
- e.config._enable = T(Qe);
19522
+ set: function(Ze) {
19523
+ e.config._enable = T(Ze);
19523
19524
  }
19524
19525
  }), Object.defineProperty(e.config, "disable", {
19525
19526
  get: function() {
19526
19527
  return e.config._disable;
19527
19528
  },
19528
- set: function(Qe) {
19529
- e.config._disable = T(Qe);
19529
+ set: function(Ze) {
19530
+ e.config._disable = T(Ze);
19530
19531
  }
19531
19532
  });
19532
19533
  var ie = P.mode === "time";
@@ -19549,9 +19550,9 @@ function l1(t, n) {
19549
19550
  },
19550
19551
  set: Te("max")
19551
19552
  });
19552
- var et = function(Qe) {
19553
+ var et = function(Ze) {
19553
19554
  return function(vt) {
19554
- e.config[Qe === "min" ? "_minTime" : "_maxTime"] = e.parseDate(vt, "H:i:S");
19555
+ e.config[Ze === "min" ? "_minTime" : "_maxTime"] = e.parseDate(vt, "H:i:S");
19555
19556
  };
19556
19557
  };
19557
19558
  Object.defineProperty(e.config, "minTime", {
@@ -19567,10 +19568,10 @@ function l1(t, n) {
19567
19568
  }), P.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, Y, P);
19568
19569
  for (var Ve = 0; Ve < L.length; Ve++)
19569
19570
  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);
19571
+ wl.filter(function(Ze) {
19572
+ return e.config[Ze] !== void 0;
19573
+ }).forEach(function(Ze) {
19574
+ e.config[Ze] = xl(e.config[Ze] || []).map(l);
19574
19575
  }), 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
19576
  for (var Ve = 0; Ve < e.config.plugins.length; Ve++) {
19576
19577
  var rt = e.config.plugins[Ve](e) || {};
@@ -19594,13 +19595,13 @@ function l1(t, n) {
19594
19595
  _e("onPreCalendarPosition");
19595
19596
  var P = L || e._positionElement, Y = Array.prototype.reduce.call(e.calendarContainer.children, function(Od, Rd) {
19596
19597
  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);
19598
+ }, 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
19599
  if (Jt(e.calendarContainer, "arrowTop", !Fe), Jt(e.calendarContainer, "arrowBottom", Fe), !e.config.inline) {
19599
19600
  var vt = window.pageXOffset + Ve.left, In = !1, un = !1;
19600
19601
  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
19602
  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
19603
  if (Jt(e.calendarContainer, "rightMost", Co), !e.config.static)
19603
- if (e.calendarContainer.style.top = Qe + "px", !Co)
19604
+ if (e.calendarContainer.style.top = Ze + "px", !Co)
19604
19605
  e.calendarContainer.style.left = vt + "px", e.calendarContainer.style.right = "auto";
19605
19606
  else if (!_d)
19606
19607
  e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Yo + "px";
@@ -19641,8 +19642,8 @@ function l1(t, n) {
19641
19642
  }
19642
19643
  function Nt(L) {
19643
19644
  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");
19645
+ var P = function(Ze) {
19646
+ return Ze.classList && Ze.classList.contains("flatpickr-day") && !Ze.classList.contains("flatpickr-disabled") && !Ze.classList.contains("notAllowed");
19646
19647
  }, Y = fd(dn(L), P);
19647
19648
  if (Y !== void 0) {
19648
19649
  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 +19652,8 @@ function l1(t, n) {
19651
19652
  else if (e.config.mode === "multiple") {
19652
19653
  var et = ue(Se);
19653
19654
  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();
19655
+ } 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) {
19656
+ return Ze.getTime() - vt.getTime();
19656
19657
  }));
19657
19658
  if (f(), Ae) {
19658
19659
  var Ve = e.currentYear !== Se.getFullYear();
@@ -19820,8 +19821,8 @@ function l1(t, n) {
19820
19821
  e.amPM !== void 0 && Y === e.amPM && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]);
19821
19822
  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
19823
  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);
19824
+ var Ze = ie === e.hourElement, vt = ie === e.minuteElement;
19825
+ 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
19826
  }
19826
19827
  }
19827
19828
  return r(), e;
@@ -20085,7 +20086,7 @@ const u1 = ["disabled", "placeholder"], c1 = /* @__PURE__ */ Q({
20085
20086
  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
20087
  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
20088
  }));
20088
- Ze(() => {
20089
+ Qe(() => {
20089
20090
  Xd(e.modelValue, u.value) || l(u.value);
20090
20091
  }), Ye(
20091
20092
  () => u.value,
@@ -20110,7 +20111,7 @@ const u1 = ["disabled", "placeholder"], c1 = /* @__PURE__ */ Q({
20110
20111
  deep: !0,
20111
20112
  immediate: !0
20112
20113
  }
20113
- ), Ze(() => {
20114
+ ), Qe(() => {
20114
20115
  $();
20115
20116
  }), Ut(() => {
20116
20117
  setTimeout(() => {
@@ -20429,7 +20430,7 @@ const u1 = ["disabled", "placeholder"], c1 = /* @__PURE__ */ Q({
20429
20430
  var a;
20430
20431
  e.value = ((a = n.value) == null ? void 0 : a.clientWidth) ?? Ws;
20431
20432
  }
20432
- return Ze(() => {
20433
+ return Qe(() => {
20433
20434
  r();
20434
20435
  }), Er(n, jt(r, 50)), (a, l) => (b(), z("div", {
20435
20436
  ref_key: "item",
@@ -22091,7 +22092,7 @@ const k1 = /* @__PURE__ */ qa(x1), S1 = { class: "text-xs text-slate-600" }, hd
22091
22092
  w(() => r.valueKey),
22092
22093
  w(() => !0)
22093
22094
  );
22094
- Ze(() => {
22095
+ Qe(() => {
22095
22096
  window.addEventListener("keydown", p);
22096
22097
  }), yn(() => {
22097
22098
  window.removeEventListener("keydown", p);
@@ -22103,7 +22104,7 @@ const k1 = /* @__PURE__ */ qa(x1), S1 = { class: "text-xs text-slate-600" }, hd
22103
22104
  V === "Tab" && A(), V === "Escape" && A();
22104
22105
  }
22105
22106
  let f = 0;
22106
- Ze(() => {
22107
+ Qe(() => {
22107
22108
  f = setTimeout(() => {
22108
22109
  r.focusOnMount && _();
22109
22110
  }, 10);
@@ -23578,7 +23579,7 @@ const Z1 = ["onClick"], Q1 = { class: "px-2 flex items-center" }, J1 = { class:
23578
23579
  });
23579
23580
  }
23580
23581
  const g = jt(m, 200);
23581
- Ze(() => {
23582
+ Qe(() => {
23582
23583
  setTimeout(() => {
23583
23584
  m(), Ye(() => f.value, g, { deep: !0 });
23584
23585
  }, 1);
@@ -24213,7 +24214,7 @@ const Z1 = ["onClick"], Q1 = { class: "px-2 flex items-center" }, J1 = { class:
24213
24214
  S != "" && (S = "-" + S), o("update:modelValue", i + S);
24214
24215
  });
24215
24216
  }
24216
- return Ze(() => {
24217
+ return Qe(() => {
24217
24218
  h();
24218
24219
  }), (i, S) => (b(), z("div", {
24219
24220
  class: "w-full overflow-hidden rounded border bg-white",
@@ -24516,7 +24517,7 @@ const Z1 = ["onClick"], Q1 = { class: "px-2 flex items-center" }, J1 = { class:
24516
24517
  () => {
24517
24518
  l();
24518
24519
  }
24519
- )) : Ze(() => {
24520
+ )) : Qe(() => {
24520
24521
  l();
24521
24522
  }), Ut(() => {
24522
24523
  clearTimeout(a);
@@ -26045,7 +26046,7 @@ const ck = /* @__PURE__ */ Uo(rk, [["render", uk]]), dk = { class: "space-y-3" }
26045
26046
  "-webkit-line-clamp": e.maxLines,
26046
26047
  "-webkit-box-orient": "vertical"
26047
26048
  }));
26048
- Ze(() => {
26049
+ Qe(() => {
26049
26050
  l(), au(
26050
26051
  n.value,
26051
26052
  () => {
@@ -26812,7 +26813,7 @@ const Pk = /* @__PURE__ */ Uo(Dk, [["render", Fk]]), Nk = { class: "flex-shrink-
26812
26813
  });
26813
26814
  }
26814
26815
  const p = N(null);
26815
- Ze(() => {
26816
+ Qe(() => {
26816
26817
  wt(() => {
26817
26818
  f(!1);
26818
26819
  });
@@ -27590,7 +27591,7 @@ const Pk = /* @__PURE__ */ Uo(Dk, [["render", Fk]]), Nk = { class: "flex-shrink-
27590
27591
  s.value[v + S] = C[S], a.code += C[S];
27591
27592
  (i = l.value[v + C.length]) == null || i.focus(), h.preventDefault();
27592
27593
  };
27593
- return Ze(async () => {
27594
+ return Qe(async () => {
27594
27595
  await wt(), l.value = Array.from(
27595
27596
  { length: e.numberOfCharacters },
27596
27597
  (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.32",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -3,7 +3,10 @@
3
3
  <div
4
4
  ref="drawerRef"
5
5
  data-scroll-lock-scrollable
6
- class="max-h-[214px] w-full overflow-y-auto"
6
+ :style="{
7
+ height: '214px',
8
+ }"
9
+ class="w-full overflow-y-auto"
7
10
  >
8
11
  <!-- Slot empty -->
9
12
  <slot
@@ -266,15 +269,13 @@ function onKeydown(event: KeyboardEvent) {
266
269
 
267
270
  // Infinite scroll
268
271
 
269
- onMounted(() => {
270
- useInfiniteScroll(
271
- drawerRef.value,
272
- () => {
273
- emit('scrollBottom');
274
- },
275
- { distance: 100 }
276
- );
277
- });
272
+ useInfiniteScroll(
273
+ drawerRef,
274
+ () => {
275
+ emit('scrollBottom');
276
+ },
277
+ { distance: 100 }
278
+ );
278
279
 
279
280
  function scrollToFocus() {
280
281
  if (!drawerRef.value) {