@namba_one/ui-kit-2 1.0.195 → 1.0.197

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/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Dv = Object.defineProperty;
2
2
  var Iv = (n, e, t) => e in n ? Dv(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var Te = (n, e, t) => Iv(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as ce, useCssModule as sn, computed as R, createBlock as ne, openBlock as v, resolveDynamicComponent as kr, mergeProps as tt, withCtx as O, renderSlot as ae, createElementBlock as M, normalizeClass as y, normalizeStyle as je, createElementVNode as U, createCommentVNode as z, createVNode as j, unref as p, useTemplateRef as ho, watch as Ze, ref as Y, withDirectives as cn, vShow as Lr, h as No, Transition as fn, useSlots as Yr, toHandlers as ji, onMounted as ft, useModel as at, mergeModels as lt, createTextVNode as we, toDisplayString as me, withModifiers as Nn, resolveComponent as gs, TransitionGroup as lu, Fragment as $e, renderList as Pe, provide as Jo, useId as uu, onBeforeUnmount as ia, Teleport as cu, inject as Vi, isRef as vr, onUnmounted as Ur, readonly as Pv, toRef as dr, nextTick as bt, getCurrentScope as Wh, onScopeDispose as qh, getCurrentInstance as Gh, vModelText as sa, reactive as Yi, createSlots as Yt, normalizeProps as Ht, guardReactiveProps as un, render as Dd, useAttrs as Lv, toValue as Rv, onBeforeUpdate as Fv, withKeys as Nv, resolveDirective as zv, vModelDynamic as Hv } from "vue";
4
+ import { defineComponent as ce, useCssModule as sn, computed as R, createBlock as ne, openBlock as v, resolveDynamicComponent as kr, mergeProps as tt, withCtx as O, renderSlot as ae, createElementBlock as M, normalizeClass as y, normalizeStyle as je, createElementVNode as U, createCommentVNode as z, createVNode as j, unref as p, useTemplateRef as ho, watch as Ze, ref as Y, withDirectives as cn, vShow as Lr, h as No, Transition as fn, useSlots as Yr, toHandlers as ji, onMounted as ft, useModel as at, mergeModels as lt, createTextVNode as we, toDisplayString as me, withModifiers as Nn, resolveComponent as gs, TransitionGroup as lu, Fragment as $e, renderList as Pe, provide as Jo, useId as uu, onBeforeUnmount as ia, Teleport as cu, inject as Vi, isRef as vr, onUnmounted as Ur, readonly as Pv, toRef as dr, nextTick as vt, getCurrentScope as Wh, onScopeDispose as qh, getCurrentInstance as Gh, vModelText as sa, reactive as Yi, createSlots as Yt, normalizeProps as Ht, guardReactiveProps as un, render as Dd, useAttrs as Lv, toValue as Rv, onBeforeUpdate as Fv, withKeys as Nv, resolveDirective as zv, vModelDynamic as Hv } from "vue";
5
5
  const jv = /* @__PURE__ */ ce({
6
6
  __name: "TheText",
7
7
  props: {
@@ -7320,7 +7320,7 @@ const Cw = {
7320
7320
  l.style.height = "0", l.style.opacity = "0", l.style.overflow = "hidden";
7321
7321
  }, o = async (a, l) => {
7322
7322
  const u = a;
7323
- await bt(), u.style.transition = "height 0.3s ease, opacity 0.3s ease", u.style.height = u.scrollHeight + "px", u.style.opacity = "1", t(u, () => {
7323
+ await vt(), u.style.transition = "height 0.3s ease, opacity 0.3s ease", u.style.height = u.scrollHeight + "px", u.style.opacity = "1", t(u, () => {
7324
7324
  u.style.transition = "", u.style.height = "auto", l();
7325
7325
  });
7326
7326
  }, i = (a) => {
@@ -8424,12 +8424,14 @@ const c_ = /* @__PURE__ */ ce({
8424
8424
  }
8425
8425
  const m = Y(null);
8426
8426
  ft(() => {
8427
- var T, $, A, G, N, L;
8428
- const E = ((T = t == null ? void 0 : t.parent) == null ? void 0 : T.refs.parentElementRef) instanceof HTMLElement ? ($ = t == null ? void 0 : t.parent) == null ? void 0 : $.refs.parentElementRef : (
8429
- //@ts-expect-error skip check types
8430
- (G = (A = t == null ? void 0 : t.parent) == null ? void 0 : A.refs.parentElementRef) == null ? void 0 : G.$el
8431
- );
8432
- console.log((N = t == null ? void 0 : t.parent) == null ? void 0 : N.refs), m.value = E ?? ((L = t == null ? void 0 : t.parent) == null ? void 0 : L.vnode.el);
8427
+ vt(() => {
8428
+ var T, $, A, G, N, L;
8429
+ const E = ((T = t == null ? void 0 : t.parent) == null ? void 0 : T.refs.parentElementRef) instanceof HTMLElement ? ($ = t == null ? void 0 : t.parent) == null ? void 0 : $.refs.parentElementRef : (
8430
+ //@ts-expect-error skip check types
8431
+ (G = (A = t == null ? void 0 : t.parent) == null ? void 0 : A.refs.parentElementRef) == null ? void 0 : G.$el
8432
+ );
8433
+ console.log(t, t == null ? void 0 : t.parent, (N = t == null ? void 0 : t.parent) == null ? void 0 : N.refs), m.value = E ?? ((L = t == null ? void 0 : t.parent) == null ? void 0 : L.vnode.el);
8434
+ });
8433
8435
  });
8434
8436
  const f = R(() => g(m.value));
8435
8437
  function g(E) {
@@ -8445,7 +8447,7 @@ const c_ = /* @__PURE__ */ ce({
8445
8447
  passive: !0
8446
8448
  })), window.addEventListener("scroll", d, {
8447
8449
  passive: !0
8448
- }), document.addEventListener("keydown", h, { passive: !0 }), window.addEventListener("resize", c), bt(c)) : (window.removeEventListener("scroll", d), window.removeEventListener("resize", c), document.removeEventListener("keydown", h), (A = f.value) == null || A.removeEventListener("scroll", d));
8450
+ }), document.addEventListener("keydown", h, { passive: !0 }), window.addEventListener("resize", c), vt(c)) : (window.removeEventListener("scroll", d), window.removeEventListener("resize", c), document.removeEventListener("keydown", h), (A = f.value) == null || A.removeEventListener("scroll", d));
8449
8451
  },
8450
8452
  { immediate: !0 }
8451
8453
  ), (E, T) => (v(), ne(cu, { to: "#teleports" }, [
@@ -8506,7 +8508,7 @@ const c_ = /* @__PURE__ */ ce({
8506
8508
  ), Ze(a, (d) => {
8507
8509
  t.value = d, d || r("close");
8508
8510
  }), Ze(t, (d) => {
8509
- d && bt(() => {
8511
+ d && vt(() => {
8510
8512
  const h = i.value, m = document.querySelectorAll(
8511
8513
  '[data-select-base-is-active-item = "true"]'
8512
8514
  )[0];
@@ -10466,7 +10468,7 @@ const rC = {
10466
10468
  }), r.value.style.height = `${I}px`, r.value.style.width = `${J}px`;
10467
10469
  }
10468
10470
  function $() {
10469
- bt(() => {
10471
+ vt(() => {
10470
10472
  const [w, I, J] = o.value.sort(W), ie = _("0");
10471
10473
  if (E(ie, "main"), I) {
10472
10474
  const C = P({
@@ -10484,7 +10486,7 @@ const rC = {
10484
10486
  translateY: "-30%",
10485
10487
  index: 2
10486
10488
  });
10487
- E(C, "third"), bt(() => {
10489
+ E(C, "third"), vt(() => {
10488
10490
  var x;
10489
10491
  const k = (x = r.value) == null ? void 0 : x.querySelector(
10490
10492
  ".toaster-leave-active"
@@ -13918,7 +13920,7 @@ const pn = (n, e) => e ? new Date(n.toLocaleString("en-US", { timeZone: e })) :
13918
13920
  };
13919
13921
  var In = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n))(In || {}), Pn = /* @__PURE__ */ ((n) => (n.top = "top", n.bottom = "bottom", n))(Pn || {}), io = /* @__PURE__ */ ((n) => (n.header = "header", n.calendar = "calendar", n.timePicker = "timePicker", n))(io || {}), Kt = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n.calendar = "calendar", n.time = "time", n.minutes = "minutes", n.hours = "hours", n.seconds = "seconds", n))(Kt || {});
13920
13922
  const LE = ["timestamp", "date", "iso"];
13921
- var tn = /* @__PURE__ */ ((n) => (n.up = "up", n.down = "down", n.left = "left", n.right = "right", n))(tn || {}), gt = /* @__PURE__ */ ((n) => (n.arrowUp = "ArrowUp", n.arrowDown = "ArrowDown", n.arrowLeft = "ArrowLeft", n.arrowRight = "ArrowRight", n.enter = "Enter", n.space = " ", n.esc = "Escape", n.tab = "Tab", n.home = "Home", n.end = "End", n.pageUp = "PageUp", n.pageDown = "PageDown", n))(gt || {}), Lo = /* @__PURE__ */ ((n) => (n.MONTH_AND_YEAR = "MM-yyyy", n.YEAR = "yyyy", n.DATE = "dd-MM-yyyy", n))(Lo || {});
13923
+ var tn = /* @__PURE__ */ ((n) => (n.up = "up", n.down = "down", n.left = "left", n.right = "right", n))(tn || {}), bt = /* @__PURE__ */ ((n) => (n.arrowUp = "ArrowUp", n.arrowDown = "ArrowDown", n.arrowLeft = "ArrowLeft", n.arrowRight = "ArrowRight", n.enter = "Enter", n.space = " ", n.esc = "Escape", n.tab = "Tab", n.home = "Home", n.end = "End", n.pageUp = "PageUp", n.pageDown = "PageDown", n))(bt || {}), Lo = /* @__PURE__ */ ((n) => (n.MONTH_AND_YEAR = "MM-yyyy", n.YEAR = "yyyy", n.DATE = "dd-MM-yyyy", n))(Lo || {});
13922
13924
  function fh(n) {
13923
13925
  return (e) => {
13924
13926
  const t = new Intl.DateTimeFormat(n, {
@@ -14031,7 +14033,7 @@ function VE(n, e) {
14031
14033
  return t[r + (e ? -1 : 1)];
14032
14034
  }
14033
14035
  const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), bf = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), zu = (n, e) => tr(n, e ?? Lo.DATE), ul = (n) => Array.isArray(n), Gs = (n, e, t) => e.get(zu(n, t)), YE = (n, e) => n ? e ? e instanceof Map ? !!Gs(n, e) : e(pe(n)) : !1 : !0, rn = (n, e, t = !1, r) => {
14034
- if (n.key === gt.enter || n.key === gt.space)
14036
+ if (n.key === bt.enter || n.key === bt.space)
14035
14037
  return t && n.preventDefault(), e();
14036
14038
  if (r) return r(n);
14037
14039
  }, UE = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, yf = (n, e) => n ? Lo.MONTH_AND_YEAR : e ? Lo.YEAR : Lo.DATE, wf = (n) => n < 10 ? `0${n}` : n, gh = (n, e, t, r, o, i) => {
@@ -14180,7 +14182,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14180
14182
  setMenuFocused: n,
14181
14183
  setShiftKey: e
14182
14184
  };
14183
- }, vt = Yi({
14185
+ }, gt = Yi({
14184
14186
  monthYear: [],
14185
14187
  calendar: [],
14186
14188
  time: [],
@@ -14192,12 +14194,12 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14192
14194
  },
14193
14195
  monthPicker: []
14194
14196
  }), fl = Y(null), hs = Y(!1), ml = Y(!1), vl = Y(!1), gl = Y(!1), Gt = Y(0), At = Y(0), Wr = () => {
14195
- const n = R(() => hs.value ? [...vt.selectionGrid, vt.actionRow].filter((d) => d.length) : ml.value ? [
14196
- ...vt.timePicker[0],
14197
- ...vt.timePicker[1],
14197
+ const n = R(() => hs.value ? [...gt.selectionGrid, gt.actionRow].filter((d) => d.length) : ml.value ? [
14198
+ ...gt.timePicker[0],
14199
+ ...gt.timePicker[1],
14198
14200
  gl.value ? [] : [fl.value],
14199
- vt.actionRow
14200
- ].filter((d) => d.length) : vl.value ? [...vt.monthPicker, vt.actionRow] : [vt.monthYear, ...vt.calendar, vt.time, vt.actionRow].filter((d) => d.length)), e = (d) => {
14201
+ gt.actionRow
14202
+ ].filter((d) => d.length) : vl.value ? [...gt.monthPicker, gt.actionRow] : [gt.monthYear, ...gt.calendar, gt.time, gt.actionRow].filter((d) => d.length)), e = (d) => {
14201
14203
  Gt.value = d ? Gt.value + 1 : Gt.value - 1;
14202
14204
  let h = null;
14203
14205
  n.value[At.value] && (h = n.value[At.value][Gt.value]), !h && n.value[At.value + (d ? 1 : -1)] ? (At.value = At.value + (d ? 1 : -1), Gt.value = d ? 0 : n.value[At.value].length - 1) : h || (Gt.value = d ? Gt.value - 1 : Gt.value + 1);
@@ -14215,9 +14217,9 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14215
14217
  }, a = () => {
14216
14218
  t(!0), r(!0);
14217
14219
  }, l = (d, h) => {
14218
- vt[h] = d;
14220
+ gt[h] = d;
14219
14221
  }, u = (d, h) => {
14220
- vt[h] = d;
14222
+ gt[h] = d;
14221
14223
  }, c = () => {
14222
14224
  Gt.value = 0, At.value = 0;
14223
14225
  };
@@ -14228,25 +14230,25 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14228
14230
  fl.value = d;
14229
14231
  },
14230
14232
  setSelectionGrid: (d) => {
14231
- hs.value = d, c(), d || (vt.selectionGrid = []);
14233
+ hs.value = d, c(), d || (gt.selectionGrid = []);
14232
14234
  },
14233
14235
  setTimePicker: (d, h = !1) => {
14234
- ml.value = d, gl.value = h, c(), d || (vt.timePicker[0] = [], vt.timePicker[1] = []);
14236
+ ml.value = d, gl.value = h, c(), d || (gt.timePicker[0] = [], gt.timePicker[1] = []);
14235
14237
  },
14236
14238
  setTimePickerElements: (d, h = 0) => {
14237
- vt.timePicker[h] = d;
14239
+ gt.timePicker[h] = d;
14238
14240
  },
14239
14241
  arrowRight: o,
14240
14242
  arrowLeft: i,
14241
14243
  arrowUp: s,
14242
14244
  arrowDown: a,
14243
14245
  clearArrowNav: () => {
14244
- vt.monthYear = [], vt.calendar = [], vt.time = [], vt.actionRow = [], vt.selectionGrid = [], vt.timePicker[0] = [], vt.timePicker[1] = [], hs.value = !1, ml.value = !1, gl.value = !1, vl.value = !1, c(), fl.value = null;
14246
+ gt.monthYear = [], gt.calendar = [], gt.time = [], gt.actionRow = [], gt.selectionGrid = [], gt.timePicker[0] = [], gt.timePicker[1] = [], hs.value = !1, ml.value = !1, gl.value = !1, vl.value = !1, c(), fl.value = null;
14245
14247
  },
14246
14248
  setMonthPicker: (d) => {
14247
14249
  vl.value = d, c();
14248
14250
  },
14249
- refSets: vt
14251
+ refSets: gt
14250
14252
  // exposed for testing
14251
14253
  };
14252
14254
  }, wh = (n) => ({
@@ -14880,7 +14882,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14880
14882
  Fv(() => {
14881
14883
  f.value = null;
14882
14884
  }), ft(() => {
14883
- bt().then(() => J()), a.noOverlayFocus || L(), N(!0);
14885
+ vt().then(() => J()), a.noOverlayFocus || L(), N(!0);
14884
14886
  }), Ur(() => N(!1));
14885
14887
  const N = (D) => {
14886
14888
  var K;
@@ -14921,7 +14923,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14921
14923
  { deep: !0 }
14922
14924
  );
14923
14925
  const J = (D = !0) => {
14924
- bt().then(() => {
14926
+ vt().then(() => {
14925
14927
  const K = Rt(f), te = Rt(g), ue = Rt($), b = Rt(G), Z = ue ? ue.getBoundingClientRect().height : 0;
14926
14928
  te && (te.getBoundingClientRect().height ? A.value = te.getBoundingClientRect().height - Z : A.value = c.value.modeHeight - Z), K && b && D && (b.scrollTop = K.offsetTop - b.offsetTop - (A.value / 2 - K.getBoundingClientRect().height) - Z);
14927
14929
  });
@@ -14951,22 +14953,22 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
14951
14953
  }
14952
14954
  }, q = (D) => {
14953
14955
  switch (D.key) {
14954
- case gt.esc:
14956
+ case bt.esc:
14955
14957
  return k(D);
14956
- case gt.arrowLeft:
14958
+ case bt.arrowLeft:
14957
14959
  return H(D);
14958
- case gt.arrowRight:
14960
+ case bt.arrowRight:
14959
14961
  return H(D);
14960
- case gt.arrowUp:
14962
+ case bt.arrowUp:
14961
14963
  return H(D);
14962
- case gt.arrowDown:
14964
+ case bt.arrowDown:
14963
14965
  return H(D);
14964
14966
  default:
14965
14967
  return;
14966
14968
  }
14967
14969
  }, fe = (D) => {
14968
- if (D.key === gt.enter) return C();
14969
- if (D.key === gt.tab) return re();
14970
+ if (D.key === bt.enter) return C();
14971
+ if (D.key === bt.tab) return re();
14970
14972
  };
14971
14973
  return e({ focusGrid: L }), (D, K) => {
14972
14974
  var te;
@@ -15395,7 +15397,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15395
15397
  m.value = pr(ue, K, f.value(te)), e("auto-apply"), e("update-flow-step");
15396
15398
  }, V = (K, te) => {
15397
15399
  const ue = F(K, te);
15398
- s.value.fixedEnd || s.value.fixedStart ? m.value = Af(ue, m, e, s) : m.value ? A(ue, m.value) && (m.value = Vu(m, F(K, te), e)) : m.value = [F(K, te)], bt().then(() => {
15400
+ s.value.fixedEnd || s.value.fixedStart ? m.value = Af(ue, m, e, s) : m.value ? A(ue, m.value) && (m.value = Vu(m, F(K, te), e)) : m.value = [F(K, te)], vt().then(() => {
15399
15401
  _a(m.value, e, n.autoApply, n.modelAuto);
15400
15402
  });
15401
15403
  }, re = (K, te) => {
@@ -15584,7 +15586,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
15584
15586
  var $;
15585
15587
  if (e("update-month-year", { instance: 0, year: T }), s.value.enabled)
15586
15588
  return r.value ? Array.isArray(r.value) && ((($ = r.value) == null ? void 0 : $.map((A) => Ve(A))).includes(T) ? r.value = r.value.filter((A) => Ve(A) !== T) : r.value.push(Qn(jt(pe()), T))) : r.value = [Qn(jt(Li(pe())), T)], e("auto-apply", !0);
15587
- l.value.enabled ? (r.value = Vu(r, E(T), e), bt().then(() => {
15589
+ l.value.enabled ? (r.value = Vu(r, E(T), e), vt().then(() => {
15588
15590
  _a(r.value, e, n.autoApply, n.modelAuto);
15589
15591
  })) : (r.value = E(T), e("auto-apply"));
15590
15592
  }
@@ -16000,7 +16002,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16000
16002
  V.push(W(0));
16001
16003
  return V;
16002
16004
  }), _ = (V, re = !1, q = "") => {
16003
- re || r("reset-flow"), L.value = V, r(V ? "overlay-opened" : "overlay-closed", Kt.time), o.arrowNavigation && s(V), bt(() => {
16005
+ re || r("reset-flow"), L.value = V, r(V ? "overlay-opened" : "overlay-closed", Kt.time), o.arrowNavigation && s(V), vt(() => {
16004
16006
  q !== "" && $.value[0] && $.value[0].openChildCmp(q);
16005
16007
  });
16006
16008
  }, w = R(() => ({
@@ -16640,7 +16642,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16640
16642
  const _ = (ee) => ee ? o.vertical ? "vNext" : "next" : o.vertical ? "vPrevious" : "previous", w = (ee, He) => {
16641
16643
  if (o.transitions) {
16642
16644
  const he = jt(pr(pe(), o.month, o.year));
16643
- $.value = Ot(jt(pr(pe(), ee, He)), he) ? s.value[_(!0)] : s.value[_(!1)], T.value = !1, bt(() => {
16645
+ $.value = Ot(jt(pr(pe(), ee, He)), he) ? s.value[_(!0)] : s.value[_(!1)], T.value = !1, vt(() => {
16644
16646
  T.value = !0;
16645
16647
  });
16646
16648
  }
@@ -16661,7 +16663,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
16661
16663
  const { width: he, height: ke } = ee.getBoundingClientRect();
16662
16664
  m.value = He.value;
16663
16665
  let S = { left: `${he / 2}px` }, ye = -50;
16664
- if (await bt(), G.value[0]) {
16666
+ if (await vt(), G.value[0]) {
16665
16667
  const { left: _e, width: Ce } = G.value[0].getBoundingClientRect();
16666
16668
  _e < 0 && (S = { left: "0" }, ye = 0, N.value.left = `${he / 2}px`), window.innerWidth < _e + Ce && (S = { right: "0" }, ye = 0, N.value.left = `${Ce - he / 2}px`);
16667
16669
  }
@@ -17001,7 +17003,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17001
17003
  return or(Oe), Ce(Ie, qe, le, Se);
17002
17004
  }, ot = (Q) => {
17003
17005
  const de = Nr(pe(Q.value), c.hours, c.minutes, oe());
17004
- e("date-update", de), $.value.enabled ? ju(de, l, $.value.limit) : l.value = de, r(), bt().then(() => {
17006
+ e("date-update", de), $.value.enabled ? ju(de, l, $.value.limit) : l.value = de, r(), vt().then(() => {
17005
17007
  re();
17006
17008
  });
17007
17009
  }, _t = (Q) => f.value.noDisabledRange ? Cf(o.value[0], Q).some((de) => G(de)) : !1, X = () => {
@@ -17056,7 +17058,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17056
17058
  modelValue: l,
17057
17059
  range: f.value.enabled,
17058
17060
  timezone: de ? void 0 : E.value.timezone
17059
- }), F(), n.multiCalendars && bt().then(() => q(!0));
17061
+ }), F(), n.multiCalendars && vt().then(() => q(!0));
17060
17062
  }, Tn = () => {
17061
17063
  const Q = Ru(pe(), E.value);
17062
17064
  !f.value.enabled && !$.value.enabled ? l.value = Q : l.value && Array.isArray(l.value) && l.value[0] ? $.value.enabled ? l.value = [...l.value, Q] : l.value = Mt(Q, l.value[0]) ? [Q, l.value[0]] : [l.value[0], Q] : l.value = [Q], F();
@@ -17631,7 +17633,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17631
17633
  if (X === tn.right) return _();
17632
17634
  } else X === tn.left || X === tn.up ? S("handleArrow", tn.left, 0, X === tn.up) : S("handleArrow", tn.right, 0, X === tn.down);
17633
17635
  }, ee = (X) => {
17634
- l(X.shiftKey), !o.disableMonthYearSelect && X.code === gt.tab && X.target.classList.contains("dp__menu") && u.value.shiftKeyInMenu && (X.preventDefault(), Fr(X, m.value, !0), r("close-picker"));
17636
+ l(X.shiftKey), !o.disableMonthYearSelect && X.code === bt.tab && X.target.classList.contains("dp__menu") && u.value.shiftKeyInMenu && (X.preventDefault(), Fr(X, m.value, !0), r("close-picker"));
17635
17637
  }, He = () => {
17636
17638
  re(), r("time-picker-close");
17637
17639
  }, he = (X) => {
@@ -17655,22 +17657,22 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
17655
17657
  X.preventDefault(), Re(xe);
17656
17658
  }, ot = (X) => {
17657
17659
  var xe, nt, Bt;
17658
- if (ee(X), X.key === gt.home || X.key === gt.end)
17660
+ if (ee(X), X.key === bt.home || X.key === bt.end)
17659
17661
  return S(
17660
17662
  "selectWeekDate",
17661
- X.key === gt.home,
17663
+ X.key === bt.home,
17662
17664
  X.target.getAttribute("id")
17663
17665
  );
17664
- switch ((X.key === gt.pageUp || X.key === gt.pageDown) && (X.shiftKey ? (S("changeYear", X.key === gt.pageUp), (xe = ql(i.value, "overlay-year")) == null || xe.focus()) : (S("changeMonth", X.key === gt.pageUp), (nt = ql(i.value, X.key === gt.pageUp ? "action-prev" : "action-next")) == null || nt.focus()), X.target.getAttribute("id") && ((Bt = i.value) == null || Bt.focus({ preventScroll: !0 }))), X.key) {
17665
- case gt.esc:
17666
+ switch ((X.key === bt.pageUp || X.key === bt.pageDown) && (X.shiftKey ? (S("changeYear", X.key === bt.pageUp), (xe = ql(i.value, "overlay-year")) == null || xe.focus()) : (S("changeMonth", X.key === bt.pageUp), (nt = ql(i.value, X.key === bt.pageUp ? "action-prev" : "action-next")) == null || nt.focus()), X.target.getAttribute("id") && ((Bt = i.value) == null || Bt.focus({ preventScroll: !0 }))), X.key) {
17667
+ case bt.esc:
17666
17668
  return be(X);
17667
- case gt.arrowLeft:
17669
+ case bt.arrowLeft:
17668
17670
  return Ge(X, tn.left);
17669
- case gt.arrowRight:
17671
+ case bt.arrowRight:
17670
17672
  return Ge(X, tn.right);
17671
- case gt.arrowUp:
17673
+ case bt.arrowUp:
17672
17674
  return Ge(X, tn.up);
17673
- case gt.arrowDown:
17675
+ case bt.arrowDown:
17674
17676
  return Ge(X, tn.down);
17675
17677
  default:
17676
17678
  return;
@@ -18312,7 +18314,7 @@ const _S = ({
18312
18314
  }
18313
18315
  }, a = () => {
18314
18316
  var d, h;
18315
- (d = n.flow) != null && d.length && r.value !== -1 && (r.value += 1, e("flow-step", r.value), c()), ((h = n.flow) == null ? void 0 : h.length) === r.value && bt().then(() => l());
18317
+ (d = n.flow) != null && d.length && r.value !== -1 && (r.value += 1, e("flow-step", r.value), c()), ((h = n.flow) == null ? void 0 : h.length) === r.value && vt().then(() => l());
18316
18318
  }, l = () => {
18317
18319
  r.value = -1;
18318
18320
  }, u = (d, h, ...m) => {
@@ -18418,7 +18420,7 @@ const _S = ({
18418
18420
  }, I = (q, fe) => {
18419
18421
  i.value.enabled && i.value.tabSubmit && !fe && P(q.target.value), i.value.tabSubmit && Gl(g.value) && o.inputValue !== "" ? (r("set-input-date", g.value, !0, !0), g.value = null) : i.value.tabSubmit && o.inputValue === "" && (g.value = null, r("clear", !0));
18420
18422
  }, J = () => {
18421
- T.value = !0, r("focus"), bt().then(() => {
18423
+ T.value = !0, r("focus"), vt().then(() => {
18422
18424
  var q;
18423
18425
  i.value.enabled && i.value.selectOnFocus && ((q = E.value) == null || q.select());
18424
18426
  });
@@ -18444,7 +18446,7 @@ const _S = ({
18444
18446
  }, V = (q) => {
18445
18447
  g.value = q;
18446
18448
  }, re = (q) => {
18447
- q.key === gt.tab && I(q, !0);
18449
+ q.key === bt.tab && I(q, !0);
18448
18450
  };
18449
18451
  return e({
18450
18452
  focusInput: H,
@@ -18599,7 +18601,7 @@ const _S = ({
18599
18601
  defaultedMultiDates: J
18600
18602
  } = kt(o), { menuTransition: ie, showTransition: C } = Xi(W), { isMobile: k } = Pf(w), x = Gh();
18601
18603
  ft(() => {
18602
- b(o.modelValue), bt().then(() => {
18604
+ b(o.modelValue), vt().then(() => {
18603
18605
  if (!_.value.enabled) {
18604
18606
  const le = D(m.value);
18605
18607
  le == null || le.addEventListener("scroll", _e), window == null || window.addEventListener("resize", Ce);
@@ -18689,7 +18691,7 @@ const _S = ({
18689
18691
  return;
18690
18692
  }
18691
18693
  const or = Array.isArray(le) ? !le.some((Kr) => !N(Kr)) : N(le), jn = L(le);
18692
- or && jn ? (T.value = !0, ue.value = le, Se ? (f.value = Oe, xe(), r("text-submit")) : o.autoApply && En(), bt().then(() => {
18694
+ or && jn ? (T.value = !0, ue.value = le, Se ? (f.value = Oe, xe(), r("text-submit")) : o.autoApply && En(), vt().then(() => {
18693
18695
  T.value = !1;
18694
18696
  })) : r("invalid-date", le);
18695
18697
  }, Me = () => {
@@ -20005,7 +20007,7 @@ const zf = Symbol("ToastService"), o6 = new KM(), XM = ["id"], QM = /* @__PURE__
20005
20007
  }), r.value.style.height = `${L}px`, r.value.style.width = `${W}px`;
20006
20008
  }
20007
20009
  function m() {
20008
- bt(() => {
20010
+ vt(() => {
20009
20011
  const [N, L, W] = o.value.sort($), P = G("0");
20010
20012
  if (d(P, "main"), L) {
20011
20013
  const _ = A({
@@ -20023,7 +20025,7 @@ const zf = Symbol("ToastService"), o6 = new KM(), XM = ["id"], QM = /* @__PURE__
20023
20025
  translateY: "-30%",
20024
20026
  index: 2
20025
20027
  });
20026
- d(_, "third"), bt(() => {
20028
+ d(_, "third"), vt(() => {
20027
20029
  var I;
20028
20030
  const w = (I = r.value) == null ? void 0 : I.querySelector(
20029
20031
  ".toaster-leave-active"
@@ -35370,7 +35372,7 @@ const v4 = ["id"], g4 = /* @__PURE__ */ ce({
35370
35372
  },
35371
35373
  placeholder: n.placeholder,
35372
35374
  onReady: async () => {
35373
- await bt(), m(), l.value = await rI({
35375
+ await vt(), m(), l.value = await rI({
35374
35376
  editor: s.value,
35375
35377
  limit: n.maxLength
35376
35378
  });
@@ -36083,7 +36085,7 @@ const v4 = ["id"], g4 = /* @__PURE__ */ ce({
36083
36085
  T === !1 && (e.value = !1);
36084
36086
  });
36085
36087
  function h(T) {
36086
- n.list.find(($) => $.id === $.id), i.value.includes(T.id) ? i.value = i.value.filter(($) => $ !== T.id) : i.value.push(T.id), bt(() => {
36088
+ n.list.find(($) => $.id === $.id), i.value.includes(T.id) ? i.value = i.value.filter(($) => $ !== T.id) : i.value.push(T.id), vt(() => {
36087
36089
  var $;
36088
36090
  ($ = s.value) == null || $.focus();
36089
36091
  });
@@ -36480,10 +36482,10 @@ const v4 = ["id"], g4 = /* @__PURE__ */ ce({
36480
36482
  }
36481
36483
  function c() {
36482
36484
  const g = l(e.value);
36483
- g !== -1 && bt(() => a(g));
36485
+ g !== -1 && vt(() => a(g));
36484
36486
  }
36485
36487
  ft(() => {
36486
- bt(() => {
36488
+ vt(() => {
36487
36489
  const g = l(e.value);
36488
36490
  g !== -1 && a(g), i.value = !0;
36489
36491
  }), window.addEventListener("resize", c, { passive: !0 });
@@ -36491,7 +36493,7 @@ const v4 = ["id"], g4 = /* @__PURE__ */ ce({
36491
36493
  window.removeEventListener("resize", c);
36492
36494
  }), Ze(e, (g) => {
36493
36495
  const E = l(g);
36494
- E !== -1 && bt(() => a(E));
36496
+ E !== -1 && vt(() => a(E));
36495
36497
  });
36496
36498
  const d = R(() => ({
36497
36499
  default: "text-common-base-primary-default",