@teammodlr/ui-kit 2.3.10 → 2.3.12

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/lib/index.es.js CHANGED
@@ -1951,7 +1951,7 @@ function yc(e) {
1951
1951
  allowedAutoPlacements: y
1952
1952
  }) : Me);
1953
1953
  }, []), k = t.rects.reference, P = t.rects.popper, B = /* @__PURE__ */ new Map(), L = !0, j = S[0], M = 0; M < S.length; M++) {
1954
- var $ = S[M], _ = Xe($), F = Ft($) === jt, V = [Ae, Fe].indexOf(_) >= 0, N = V ? "width" : "height", q = Jt(t, {
1954
+ var $ = S[M], _ = Xe($), F = Ft($) === jt, V = [Ae, Fe].indexOf(_) >= 0, N = V ? "width" : "height", U = Jt(t, {
1955
1955
  placement: $,
1956
1956
  boundary: d,
1957
1957
  rootBoundary: c,
@@ -1960,7 +1960,7 @@ function yc(e) {
1960
1960
  }), W = V ? F ? Ve : Re : F ? Fe : Ae;
1961
1961
  k[N] > P[N] && (W = An(W));
1962
1962
  var oe = An(W), Y = [];
1963
- if (a && Y.push(q[_] <= 0), l && Y.push(q[W] <= 0, q[oe] <= 0), Y.every(function(qe) {
1963
+ if (a && Y.push(U[_] <= 0), l && Y.push(U[W] <= 0, U[oe] <= 0), Y.every(function(qe) {
1964
1964
  return qe;
1965
1965
  })) {
1966
1966
  j = $, L = !1;
@@ -2099,10 +2099,10 @@ function Ec(e) {
2099
2099
  };
2100
2100
  if (P) {
2101
2101
  if (a) {
2102
- var F, V = S === "y" ? Ae : Re, N = S === "y" ? Fe : Ve, q = S === "y" ? "height" : "width", W = P[S], oe = W + h[V], Y = W - h[N], $e = p ? -L[q] / 2 : 0, ke = O === jt ? B[q] : L[q], pe = O === jt ? -L[q] : -B[q], Se = t.elements.arrow, qe = p && Se ? jo(Se) : {
2102
+ var F, V = S === "y" ? Ae : Re, N = S === "y" ? Fe : Ve, U = S === "y" ? "height" : "width", W = P[S], oe = W + h[V], Y = W - h[N], $e = p ? -L[U] / 2 : 0, ke = O === jt ? B[U] : L[U], pe = O === jt ? -L[U] : -B[U], Se = t.elements.arrow, qe = p && Se ? jo(Se) : {
2103
2103
  width: 0,
2104
2104
  height: 0
2105
- }, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Fa(), nt = Me[V], ut = Me[N], We = Gt(0, B[q], qe[q]), He = E ? B[q] / 2 - $e - We - nt - M.mainAxis : ke - We - nt - M.mainAxis, pn = E ? -B[q] / 2 + $e + We + ut + M.mainAxis : pe + We + ut + M.mainAxis, Z = t.elements.arrow && dn(t.elements.arrow), le = Z ? S === "y" ? Z.clientTop || 0 : Z.clientLeft || 0 : 0, ve = (F = $ == null ? void 0 : $[S]) != null ? F : 0, Oe = W + He - ve - le, U = W + pn - ve, re = Gt(p ? Pn(oe, Oe) : oe, W, p ? Ct(Y, U) : Y);
2105
+ }, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Fa(), nt = Me[V], ut = Me[N], We = Gt(0, B[U], qe[U]), He = E ? B[U] / 2 - $e - We - nt - M.mainAxis : ke - We - nt - M.mainAxis, pn = E ? -B[U] / 2 + $e + We + ut + M.mainAxis : pe + We + ut + M.mainAxis, Z = t.elements.arrow && dn(t.elements.arrow), le = Z ? S === "y" ? Z.clientTop || 0 : Z.clientLeft || 0 : 0, ve = (F = $ == null ? void 0 : $[S]) != null ? F : 0, Oe = W + He - ve - le, q = W + pn - ve, re = Gt(p ? Pn(oe, Oe) : oe, W, p ? Ct(Y, q) : Y);
2106
2106
  P[S] = re, _[S] = re - W;
2107
2107
  }
2108
2108
  if (l) {
@@ -2591,8 +2591,8 @@ const lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2591
2591
  formDisabled: v,
2592
2592
  formLoading: y
2593
2593
  } = he(e, { focus: a, emit: n }), h = w(!1), b = se(e, "name"), O = g(() => !!t["icon-left"]), E = g(() => !!t["icon-right"]), S = g(() => !!t.prefix), k = g(() => !!t.suffix), P = g(() => !!(t["help-message"] || t.help)), B = g(() => v || e.disabled), L = g(() => y || e.loading), j = g(() => {
2594
- const q = e.type;
2595
- return q === "password" ? h.value ? "text" : "password" : q;
2594
+ const U = e.type;
2595
+ return U === "password" ? h.value ? "text" : "password" : U;
2596
2596
  }), M = g(() => e.loading || e.readonly), $ = g(() => [
2597
2597
  {
2598
2598
  [Rn]: e.block
@@ -2760,7 +2760,7 @@ const ts = /* @__PURE__ */ K(uf, [["render", ff]]), pf = R({
2760
2760
  wrapper: y,
2761
2761
  isDrop: !1,
2762
2762
  offset: [-2, 2]
2763
- }), N = g(() => 1 - B.y), q = g(() => B.x), W = g(() => i.value === "inherit" ? { r: 0, g: 0, b: 0, a: 0 } : Id(S.value * 3.6, N.value, q.value, k.value / 100)), oe = g(() => _d(S.value * 3.6, k.value / 100)), Y = () => {
2763
+ }), N = g(() => 1 - B.y), U = g(() => B.x), W = g(() => i.value === "inherit" ? { r: 0, g: 0, b: 0, a: 0 } : Id(S.value * 3.6, N.value, U.value, k.value / 100)), oe = g(() => _d(S.value * 3.6, k.value / 100)), Y = () => {
2764
2764
  t("update:modelValue", i.value);
2765
2765
  }, $e = () => {
2766
2766
  i.value !== "inherit" && (i.value = mn(W.value.r, W.value.g, W.value.b, W.value.a)), d.value = W.value.r.toString(), c.value = W.value.g.toString(), f.value = W.value.b.toString(), p.value = W.value.a.toFixed(2).toString(), n.lazy || Y();
@@ -2811,8 +2811,8 @@ const ts = /* @__PURE__ */ K(uf, [["render", ff]]), pf = R({
2811
2811
  ye(() => {
2812
2812
  const Z = e.modelValue.match(/rgba?\s*\(\s*(\d{1,3})\s*[,\s]\s*(\d{1,3})\s*[,\s]\s*(\d{1,3})\s*(?:[,\s]\s*([\d.]+%?))?\s*\)/i);
2813
2813
  if (Z) {
2814
- const [le, ve, Oe, U, re] = Z, J = re !== void 0 ? re.endsWith("%") ? parseFloat(re) / 100 : parseFloat(re) : 1;
2815
- i.value = mn(parseInt(ve), parseInt(Oe), parseInt(U), J);
2814
+ const [le, ve, Oe, q, re] = Z, J = re !== void 0 ? re.endsWith("%") ? parseFloat(re) / 100 : parseFloat(re) : 1;
2815
+ i.value = mn(parseInt(ve), parseInt(Oe), parseInt(q), J);
2816
2816
  } else
2817
2817
  i.value = e.modelValue;
2818
2818
  pe();
@@ -3389,17 +3389,17 @@ const Lf = (e) => ({
3389
3389
  }, p = Ko(r), v = Ho(p), y = await s.getDimensions(i), h = p === "y", b = h ? "top" : "left", O = h ? "bottom" : "right", E = h ? "clientHeight" : "clientWidth", S = a.reference[v] + a.reference[p] - f[p] - a.floating[v], k = f[p] - a.reference[p], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i));
3390
3390
  let B = P ? P[E] : 0;
3391
3391
  (!B || !await (s.isElement == null ? void 0 : s.isElement(P))) && (B = l.floating[E] || a.floating[v]);
3392
- const L = S / 2 - k / 2, j = B / 2 - y[v] / 2 - 1, M = Ge(c[b], j), $ = Ge(c[O], j), _ = M, F = B - y[v] - $, V = B / 2 - y[v] / 2 + L, N = mo(_, V, F), q = !u.arrow && Ht(r) != null && V !== N && a.reference[v] / 2 - (V < _ ? M : $) - y[v] / 2 < 0, W = q ? V < _ ? V - _ : V - F : 0;
3392
+ const L = S / 2 - k / 2, j = B / 2 - y[v] / 2 - 1, M = Ge(c[b], j), $ = Ge(c[O], j), _ = M, F = B - y[v] - $, V = B / 2 - y[v] / 2 + L, N = mo(_, V, F), U = !u.arrow && Ht(r) != null && V !== N && a.reference[v] / 2 - (V < _ ? M : $) - y[v] / 2 < 0, W = U ? V < _ ? V - _ : V - F : 0;
3393
3393
  return {
3394
3394
  [p]: f[p] + W,
3395
3395
  data: {
3396
3396
  [p]: N,
3397
3397
  centerOffset: V - N - W,
3398
- ...q && {
3398
+ ...U && {
3399
3399
  alignmentOffset: W
3400
3400
  }
3401
3401
  },
3402
- reset: q
3402
+ reset: U
3403
3403
  };
3404
3404
  }
3405
3405
  }), Nf = function(e) {
@@ -3450,8 +3450,8 @@ const Lf = (e) => ({
3450
3450
  placement: N
3451
3451
  }
3452
3452
  };
3453
- let q = (_ = M.filter((W) => W.overflows[0] <= 0).sort((W, oe) => W.overflows[1] - oe.overflows[1])[0]) == null ? void 0 : _.placement;
3454
- if (!q)
3453
+ let U = (_ = M.filter((W) => W.overflows[0] <= 0).sort((W, oe) => W.overflows[1] - oe.overflows[1])[0]) == null ? void 0 : _.placement;
3454
+ if (!U)
3455
3455
  switch (p) {
3456
3456
  case "bestFit": {
3457
3457
  var F;
@@ -3464,17 +3464,17 @@ const Lf = (e) => ({
3464
3464
  }
3465
3465
  return !0;
3466
3466
  }).map((oe) => [oe.placement, oe.overflows.filter((Y) => Y > 0).reduce((Y, $e) => Y + $e, 0)]).sort((oe, Y) => oe[1] - Y[1])[0]) == null ? void 0 : F[0];
3467
- W && (q = W);
3467
+ W && (U = W);
3468
3468
  break;
3469
3469
  }
3470
3470
  case "initialPlacement":
3471
- q = l;
3471
+ U = l;
3472
3472
  break;
3473
3473
  }
3474
- if (r !== q)
3474
+ if (r !== U)
3475
3475
  return {
3476
3476
  reset: {
3477
- placement: q
3477
+ placement: U
3478
3478
  }
3479
3479
  };
3480
3480
  }
@@ -5474,17 +5474,17 @@ const $s = {
5474
5474
  pp({
5475
5475
  ...v.value,
5476
5476
  apply: ({ elements: M, rects: $, availableWidth: _, availableHeight: F }) => {
5477
- const { width: V, height: N } = $.reference, q = M.floating.style;
5478
- q.setProperty(
5477
+ const { width: V, height: N } = $.reference, U = M.floating.style;
5478
+ U.setProperty(
5479
5479
  "--radix-popper-available-width",
5480
5480
  `${_}px`
5481
- ), q.setProperty(
5481
+ ), U.setProperty(
5482
5482
  "--radix-popper-available-height",
5483
5483
  `${F}px`
5484
- ), q.setProperty(
5484
+ ), U.setProperty(
5485
5485
  "--radix-popper-anchor-width",
5486
5486
  `${V}px`
5487
- ), q.setProperty(
5487
+ ), U.setProperty(
5488
5488
  "--radix-popper-anchor-height",
5489
5489
  `${N}px`
5490
5490
  );
@@ -9395,12 +9395,12 @@ const Yy = R({
9395
9395
  },
9396
9396
  setup(e, { emit: t, expose: n }) {
9397
9397
  const o = w(null), r = w(), a = w(), s = w(), l = w(), u = w(0), i = w(!1), d = w(!1), c = w(""), f = w("bottom-start"), p = w(!1), v = w(0), y = w(!1), { nextZIndex: h } = ht();
9398
- function b(U, re) {
9398
+ function b(q, re) {
9399
9399
  const {
9400
9400
  "onUpdate:value": J,
9401
9401
  onUpdateValue: _e
9402
9402
  } = e;
9403
- _e && ko(_e, U, re), J && ko(J, U, re);
9403
+ _e && ko(_e, q, re), J && ko(J, q, re);
9404
9404
  }
9405
9405
  const O = w(e.zIndex ?? h()), { focus: E, blur: S } = xe(o), {
9406
9406
  id: k,
@@ -9419,13 +9419,13 @@ const Yy = R({
9419
9419
  get() {
9420
9420
  return e.multiple ? e.modelValue ? Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [] : e.modelValue || null;
9421
9421
  },
9422
- set(U) {
9423
- t("update:modelValue", U), b(U, null);
9422
+ set(q) {
9423
+ t("update:modelValue", q), b(q, null);
9424
9424
  }
9425
- }), q = g(() => e.max <= 0 ? N.value : e.multiple && Array.isArray(N.value) && N.value.length > e.max ? N.value.slice(0, e.max) : N.value), W = g(() => e.multiple && Array.isArray(N.value) && e.max > 0 ? N.value.length - e.max : 0), oe = g(() => {
9426
- let U = {};
9427
- return e.consistentWidth && (U.width = v.value + "px"), {
9428
- ...U,
9425
+ }), U = g(() => e.max <= 0 ? N.value : e.multiple && Array.isArray(N.value) && N.value.length > e.max ? N.value.slice(0, e.max) : N.value), W = g(() => e.multiple && Array.isArray(N.value) && e.max > 0 ? N.value.length - e.max : 0), oe = g(() => {
9426
+ let q = {};
9427
+ return e.consistentWidth && (q.width = v.value + "px"), {
9428
+ ...q,
9429
9429
  zIndex: O.value
9430
9430
  };
9431
9431
  }), Y = g(() => {
@@ -9452,7 +9452,7 @@ const Yy = R({
9452
9452
  onClick: () => Se("")
9453
9453
  }), re;
9454
9454
  }
9455
- let U = e.options.map((re) => {
9455
+ let q = e.options.map((re) => {
9456
9456
  if (re[e.optionValue] === void 0)
9457
9457
  throw new Error("Option value is undefined");
9458
9458
  if (re[e.optionLabel] === void 0)
@@ -9465,16 +9465,16 @@ const Yy = R({
9465
9465
  onClick: () => Se(J)
9466
9466
  };
9467
9467
  });
9468
- return e.allowBlank && U.unshift({
9468
+ return e.allowBlank && q.unshift({
9469
9469
  value: "",
9470
9470
  label: "",
9471
9471
  active: !1,
9472
9472
  onClick: () => Se("")
9473
- }), U;
9473
+ }), q;
9474
9474
  });
9475
9475
  function $e() {
9476
9476
  e.multiple && Y.value.length !== 0 && (Array.isArray(N.value) ? N.value.length === Y.value.length ? N.value = [] : N.value = Y.value.map(
9477
- (U) => U.value
9477
+ (q) => q.value
9478
9478
  ) : N.value = []);
9479
9479
  }
9480
9480
  function ke() {
@@ -9486,31 +9486,31 @@ const Yy = R({
9486
9486
  i.value = !0;
9487
9487
  }
9488
9488
  }
9489
- function pe(U, re = "down") {
9490
- if (typeof U > "u" && (U = re === "down" ? -1 : 1), re === "down") {
9491
- let J = U + 1;
9489
+ function pe(q, re = "down") {
9490
+ if (typeof q > "u" && (q = re === "down" ? -1 : 1), re === "down") {
9491
+ let J = q + 1;
9492
9492
  J > Y.value.length - 1 && (J = 0), u.value = J;
9493
9493
  } else {
9494
- let J = U - 1;
9494
+ let J = q - 1;
9495
9495
  J < 0 && (J = Y.value.length - 1), u.value = J;
9496
9496
  }
9497
9497
  }
9498
- function Se(U) {
9498
+ function Se(q) {
9499
9499
  if (Y.value.find(
9500
- (J) => J.value === U
9500
+ (J) => J.value === q
9501
9501
  ))
9502
9502
  if (e.multiple) {
9503
9503
  if (Array.isArray(N.value)) {
9504
- const J = N.value.indexOf(U);
9505
- J !== -1 ? N.value.splice(J, 1) : (N.value.push(U), t("update:modelValue", N.value));
9504
+ const J = N.value.indexOf(q);
9505
+ J !== -1 ? N.value.splice(J, 1) : (N.value.push(q), t("update:modelValue", N.value));
9506
9506
  } else
9507
- N.value = [U];
9507
+ N.value = [q];
9508
9508
  _();
9509
9509
  } else
9510
- N.value = U, i.value = !1;
9510
+ N.value = q, i.value = !1;
9511
9511
  }
9512
- function qe(U, re) {
9513
- if (U.preventDefault(), U.stopPropagation(), !!e.multiple && Array.isArray(N.value)) {
9512
+ function qe(q, re) {
9513
+ if (q.preventDefault(), q.stopPropagation(), !!e.multiple && Array.isArray(N.value)) {
9514
9514
  const J = N.value.indexOf(re);
9515
9515
  J !== -1 && N.value.splice(J, 1), _();
9516
9516
  }
@@ -9518,27 +9518,27 @@ const Yy = R({
9518
9518
  de("resize", () => {
9519
9519
  i.value = !1;
9520
9520
  });
9521
- function Me(U) {
9521
+ function Me(q) {
9522
9522
  if (Y.value.length === 0 || e.disabled)
9523
9523
  return;
9524
- switch (y.value = !0, U.code) {
9524
+ switch (y.value = !0, q.code) {
9525
9525
  case "Tab":
9526
9526
  i.value && (i.value = !1);
9527
9527
  break;
9528
9528
  case "ArrowDown":
9529
- if (U.preventDefault(), !i.value) {
9529
+ if (q.preventDefault(), !i.value) {
9530
9530
  i.value = !0;
9531
9531
  return;
9532
9532
  }
9533
9533
  pe(u.value, "down");
9534
9534
  break;
9535
9535
  case "ArrowUp":
9536
- if (U.preventDefault(), !i.value)
9536
+ if (q.preventDefault(), !i.value)
9537
9537
  return;
9538
9538
  pe(u.value, "up");
9539
9539
  break;
9540
9540
  case "Enter":
9541
- if (U.preventDefault(), U.stopPropagation(), !i.value) {
9541
+ if (q.preventDefault(), q.stopPropagation(), !i.value) {
9542
9542
  i.value = !0;
9543
9543
  return;
9544
9544
  }
@@ -9547,7 +9547,7 @@ const Yy = R({
9547
9547
  ), e.multiple || (i.value = !1));
9548
9548
  break;
9549
9549
  case "Escape":
9550
- if (U.preventDefault(), U.stopPropagation(), !i.value)
9550
+ if (q.preventDefault(), q.stopPropagation(), !i.value)
9551
9551
  return;
9552
9552
  i.value = !1;
9553
9553
  break;
@@ -9575,9 +9575,9 @@ const Yy = R({
9575
9575
  "m-select--error": L.value
9576
9576
  }
9577
9577
  ]);
9578
- function pn(U) {
9578
+ function pn(q) {
9579
9579
  const re = e.options.find(
9580
- (J) => J[e.optionValue] === U
9580
+ (J) => J[e.optionValue] === q
9581
9581
  );
9582
9582
  return re ? re[e.optionLabel] : null;
9583
9583
  }
@@ -9589,14 +9589,14 @@ const Yy = R({
9589
9589
  { ignore: [s, $] }
9590
9590
  ), we(() => {
9591
9591
  o.value && i.value && (v.value = o.value.offsetWidth);
9592
- }), G(u, (U) => {
9593
- y.value && typeof U < "u" && a.value && a.value[U].scrollIntoView({
9592
+ }), G(u, (q) => {
9593
+ y.value && typeof q < "u" && a.value && a.value[q].scrollIntoView({
9594
9594
  block: "nearest",
9595
9595
  inline: "nearest"
9596
9596
  });
9597
- }), G(i, (U) => {
9597
+ }), G(i, (q) => {
9598
9598
  ue(() => {
9599
- if (U || (c.value = ""), e.searchable && s.value && s.value.focus(), U && a.value) {
9599
+ if (q || (c.value = ""), q && (O.value = h()), e.searchable && s.value && s.value.focus(), q && a.value) {
9600
9600
  const re = Y.value.findIndex(
9601
9601
  (J) => J.value === N.value
9602
9602
  );
@@ -9607,12 +9607,12 @@ const Yy = R({
9607
9607
  y.value = !1;
9608
9608
  });
9609
9609
  });
9610
- const Z = g(() => L.value || e.error), le = g(() => e.multiple && Y.value.length == 0 && !c.value ? !1 : i.value), ve = (U) => {
9610
+ const Z = g(() => L.value || e.error), le = g(() => e.multiple && Y.value.length == 0 && !c.value ? !1 : i.value), ve = (q) => {
9611
9611
  setTimeout(() => {
9612
9612
  l.value && !i.value && ke();
9613
9613
  }, 10);
9614
- }, Oe = (U) => {
9615
- U.preventDefault(), U.stopPropagation(), ke();
9614
+ }, Oe = (q) => {
9615
+ q.preventDefault(), q.stopPropagation(), ke();
9616
9616
  };
9617
9617
  return n({
9618
9618
  focus: E,
@@ -9629,7 +9629,7 @@ const Yy = R({
9629
9629
  isOpen: le,
9630
9630
  open: i,
9631
9631
  selected: N,
9632
- selectedMax: q,
9632
+ selectedMax: U,
9633
9633
  selectedCountNotShown: W,
9634
9634
  computedOptions: Y,
9635
9635
  selectedIndex: u,
@@ -12291,9 +12291,9 @@ const vw = oo(".v-vl", {
12291
12291
  }), $;
12292
12292
  }), a = w(null), s = w(void 0), l = /* @__PURE__ */ new Map(), u = g(() => {
12293
12293
  const { items: $, itemSize: _, keyField: F } = e, V = new H1($.length, _);
12294
- return $.forEach((N, q) => {
12294
+ return $.forEach((N, U) => {
12295
12295
  const W = N[F], oe = l.get(W);
12296
- oe !== void 0 && V.add(q, oe);
12296
+ oe !== void 0 && V.add(U, oe);
12297
12297
  }), V;
12298
12298
  }), i = w(0);
12299
12299
  let d = 0;
@@ -12301,22 +12301,22 @@ const vw = oo(".v-vl", {
12301
12301
  const { value: $ } = s;
12302
12302
  if ($ === void 0)
12303
12303
  return [];
12304
- const { items: _, itemSize: F } = e, V = f.value, N = Math.min(V + Math.ceil($ / F + 1), _.length - 1), q = [];
12304
+ const { items: _, itemSize: F } = e, V = f.value, N = Math.min(V + Math.ceil($ / F + 1), _.length - 1), U = [];
12305
12305
  for (let W = V; W <= N; ++W)
12306
- q.push(_[W]);
12307
- return q;
12306
+ U.push(_[W]);
12307
+ return U;
12308
12308
  }), v = ($, _) => {
12309
12309
  if (typeof $ == "number") {
12310
12310
  O($, _, "auto");
12311
12311
  return;
12312
12312
  }
12313
- const { left: F, top: V, index: N, key: q, position: W, behavior: oe, debounce: Y = !0 } = $;
12313
+ const { left: F, top: V, index: N, key: U, position: W, behavior: oe, debounce: Y = !0 } = $;
12314
12314
  if (F !== void 0 || V !== void 0)
12315
12315
  O(F, V, oe);
12316
12316
  else if (N !== void 0)
12317
12317
  b(N, oe, Y);
12318
- else if (q !== void 0) {
12319
- const $e = r.value.get(q);
12318
+ else if (U !== void 0) {
12319
+ const $e = r.value.get(U);
12320
12320
  $e !== void 0 && b($e, oe, Y);
12321
12321
  } else W === "bottom" ? O(0, Number.MAX_SAFE_INTEGER, oe) : W === "top" && O(0, 0, oe);
12322
12322
  };
@@ -12333,10 +12333,10 @@ const vw = oo(".v-vl", {
12333
12333
  y = $, h !== null && window.clearTimeout(h), h = window.setTimeout(() => {
12334
12334
  y = void 0, h = null;
12335
12335
  }, 16);
12336
- const { scrollTop: q, offsetHeight: W } = a.value;
12337
- if (N > q) {
12336
+ const { scrollTop: U, offsetHeight: W } = a.value;
12337
+ if (N > U) {
12338
12338
  const oe = V.get($);
12339
- N + oe <= q + W || a.value.scrollTo({
12339
+ N + oe <= U + W || a.value.scrollTo({
12340
12340
  left: 0,
12341
12341
  top: N + oe - W,
12342
12342
  behavior: _
@@ -12360,23 +12360,23 @@ const vw = oo(".v-vl", {
12360
12360
  var F, V, N;
12361
12361
  if (n || e.ignoreItemResize || M(_.target))
12362
12362
  return;
12363
- const { value: q } = u, W = r.value.get($), oe = q.get(W), Y = (N = (V = (F = _.borderBoxSize) === null || F === void 0 ? void 0 : F[0]) === null || V === void 0 ? void 0 : V.blockSize) !== null && N !== void 0 ? N : _.contentRect.height;
12363
+ const { value: U } = u, W = r.value.get($), oe = U.get(W), Y = (N = (V = (F = _.borderBoxSize) === null || F === void 0 ? void 0 : F[0]) === null || V === void 0 ? void 0 : V.blockSize) !== null && N !== void 0 ? N : _.contentRect.height;
12364
12364
  if (Y === oe)
12365
12365
  return;
12366
12366
  Y - e.itemSize === 0 ? l.delete($) : l.set($, Y - e.itemSize);
12367
12367
  const ke = Y - oe;
12368
12368
  if (ke === 0)
12369
12369
  return;
12370
- q.add(W, ke);
12370
+ U.add(W, ke);
12371
12371
  const pe = a.value;
12372
12372
  if (pe != null) {
12373
12373
  if (y === void 0) {
12374
- const Se = q.sum(W);
12374
+ const Se = U.sum(W);
12375
12375
  pe.scrollTop > Se && pe.scrollBy(0, ke);
12376
12376
  } else if (W < y)
12377
12377
  pe.scrollBy(0, ke);
12378
12378
  else if (W === y) {
12379
- const Se = q.sum(W);
12379
+ const Se = U.sum(W);
12380
12380
  Y + Se > // Note, listEl shouldn't have border, nor offsetHeight won't be
12381
12381
  // correct
12382
12382
  pe.scrollTop + pe.offsetHeight && pe.scrollBy(0, ke);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teammodlr/ui-kit",
3
- "version": "2.3.10",
3
+ "version": "2.3.12",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.es.js",
@@ -671,6 +671,10 @@ export default defineComponent({
671
671
  search.value = '';
672
672
  }
673
673
 
674
+ if (value) {
675
+ zIndex.value = nextZIndex();
676
+ }
677
+
674
678
  if (props.searchable && searchRef.value) {
675
679
  searchRef.value.focus();
676
680
  }