@rocketui/vue 0.2.44-alpha → 0.2.44-alpha2

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as J, reactive as u1, Fragment as t1, renderList as r1, normalizeClass as p, renderSlot as f, toDisplayString as v, createVNode as q, computed as g, createCommentVNode as O, mergeProps as H2, createBlock as E, watch as G, getCurrentScope as c2, onScopeDispose as p2, ref as N, watchEffect as O2, onMounted as V2, onUnmounted as L2, Teleport as f2, withCtx as k1, withDirectives as M2, withModifiers as A1, withKeys as U1, vModelText as h2, createTextVNode as S1, normalizeStyle as N1, vShow as g2, resolveComponent as k2, provide as O1, resolveDynamicComponent as B2, inject as f1 } from "vue";
1
+ import { defineComponent as x, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as J, reactive as u1, Fragment as t1, renderList as r1, normalizeClass as p, renderSlot as f, toDisplayString as v, createVNode as q, computed as k, createCommentVNode as O, mergeProps as H2, createBlock as E, watch as G, getCurrentScope as c2, onScopeDispose as p2, ref as N, watchEffect as O2, onMounted as V2, onUnmounted as L2, Teleport as f2, withCtx as k1, withDirectives as M2, withModifiers as A1, withKeys as U1, vModelText as h2, createTextVNode as S1, normalizeStyle as N1, vShow as g2, resolveComponent as k2, provide as O1, resolveDynamicComponent as B2, inject as f1 } from "vue";
2
2
  const b2 = {
3
3
  mdiAbTesting: "M4 2A2 2 0 0 0 2 4V12H4V8H6V12H8V4A2 2 0 0 0 6 2H4M4 4H6V6H4M22 15.5V14A2 2 0 0 0 20 12H16V22H20A2 2 0 0 0 22 20V18.5A1.54 1.54 0 0 0 20.5 17A1.54 1.54 0 0 0 22 15.5M20 20H18V18H20V20M20 16H18V14H20M5.79 21.61L4.21 20.39L18.21 2.39L19.79 3.61Z",
4
4
  mdiAbacus: "M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",
@@ -7382,12 +7382,12 @@ const b2 = {
7382
7382
  },
7383
7383
  emits: ["close"],
7384
7384
  setup(H, { emit: V }) {
7385
- const C = H, M = V, i = g(() => ({
7385
+ const C = H, M = V, i = k(() => ({
7386
7386
  " r-alert": !0,
7387
7387
  [`r-alert--${C.variant}`]: !0,
7388
7388
  "r-alert--block": C.block,
7389
7389
  [`r-alert--${C.variant}--${C.type}`]: !0
7390
- })), L = g(() => ({
7390
+ })), L = k(() => ({
7391
7391
  success: "mdiCheckCircle",
7392
7392
  error: "mdiAlertCircle",
7393
7393
  warning: "mdiAlert",
@@ -7439,10 +7439,10 @@ const b2 = {
7439
7439
  text: { default: "" }
7440
7440
  },
7441
7441
  setup(H) {
7442
- const V = H, C = g(() => ({
7442
+ const V = H, C = k(() => ({
7443
7443
  "r-avatar": !0,
7444
7444
  [`r-avatar--${V.size}`]: !0
7445
- })), M = g(() => V.type === "image" && !V.src), i = g(() => M.value ? z1 : V.src);
7445
+ })), M = k(() => V.type === "image" && !V.src), i = k(() => M.value ? z1 : V.src);
7446
7446
  function L(A) {
7447
7447
  const e = A.split(" ");
7448
7448
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
@@ -7488,7 +7488,7 @@ const b2 = {
7488
7488
  },
7489
7489
  emits: ["click"],
7490
7490
  setup(H) {
7491
- const V = H, C = g(() => ({
7491
+ const V = H, C = k(() => ({
7492
7492
  "r-badge": !0,
7493
7493
  [`r-badge--content ${V.contentClass}`]: V.content,
7494
7494
  [`r-badge--overlap-${V.placement}`]: V.overlap,
@@ -7527,7 +7527,7 @@ const b2 = {
7527
7527
  },
7528
7528
  emits: ["click"],
7529
7529
  setup(H) {
7530
- const V = H, C = g(() => ({
7530
+ const V = H, C = k(() => ({
7531
7531
  "r-button": !0,
7532
7532
  [`r-button__${V.variant}`]: !0,
7533
7533
  [`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
@@ -7535,11 +7535,11 @@ const b2 = {
7535
7535
  [`r-button--${V.size || "medium"}`]: !0,
7536
7536
  "r-button--only-icon": V.icon,
7537
7537
  "r-button--block": V.block
7538
- })), M = g(() => ({
7538
+ })), M = k(() => ({
7539
7539
  small: 16,
7540
7540
  medium: 16,
7541
7541
  large: 20
7542
- })[V.size || "medium"]), i = g(() => ({
7542
+ })[V.size || "medium"]), i = k(() => ({
7543
7543
  height: V.height ? `${V.height}px` : ""
7544
7544
  }));
7545
7545
  return (L, A) => (m(), Z("button", H2(L.$attrs, {
@@ -7603,7 +7603,7 @@ const b2 = {
7603
7603
  checked: "mdiCheck",
7604
7604
  unchecked: "",
7605
7605
  indeterminate: "mdiMinus"
7606
- }, A = g(() => i.indeterminate ? L.indeterminate : i.checked ? L.checked : L.unchecked), e = g(() => ({
7606
+ }, A = k(() => i.indeterminate ? L.indeterminate : i.checked ? L.checked : L.unchecked), e = k(() => ({
7607
7607
  "r-checkbox": !0,
7608
7608
  "r-checkbox--checked": i.checked,
7609
7609
  "r-checkbox--disabled": C.disabled,
@@ -7680,7 +7680,7 @@ const b2 = {
7680
7680
  },
7681
7681
  emits: ["click:chip", "click:close"],
7682
7682
  setup(H, { emit: V }) {
7683
- const C = H, M = V, i = g(() => ({
7683
+ const C = H, M = V, i = k(() => ({
7684
7684
  "r-chip": !0,
7685
7685
  "r-chip--disabled": C.disabled,
7686
7686
  [`r-chip__${C.variant}`]: C.variant,
@@ -7693,7 +7693,7 @@ const b2 = {
7693
7693
  function A(d) {
7694
7694
  C.disabled || !C.clearable || (d.stopPropagation(), M("click:close", d));
7695
7695
  }
7696
- const e = g(() => C.clearable ? "mdiClose" : C.appendIcon);
7696
+ const e = k(() => C.clearable ? "mdiClose" : C.appendIcon);
7697
7697
  return (d, t) => (m(), Z("div", {
7698
7698
  class: p(i.value)
7699
7699
  }, [
@@ -7978,16 +7978,16 @@ const Z5 = async (H, V, C) => {
7978
7978
  x: n,
7979
7979
  y: r
7980
7980
  } = q1(t, M, d), o = M, l = {}, u = 0;
7981
- for (let k = 0; k < e.length; k++) {
7981
+ for (let B = 0; B < e.length; B++) {
7982
7982
  const {
7983
7983
  name: w,
7984
- fn: B
7985
- } = e[k], {
7984
+ fn: h
7985
+ } = e[B], {
7986
7986
  x: b,
7987
7987
  y: F,
7988
7988
  data: R,
7989
7989
  reset: y
7990
- } = await B({
7990
+ } = await h({
7991
7991
  x: n,
7992
7992
  y: r,
7993
7993
  initialPlacement: M,
@@ -8015,7 +8015,7 @@ const Z5 = async (H, V, C) => {
8015
8015
  }) : y.rects), {
8016
8016
  x: n,
8017
8017
  y: r
8018
- } = q1(t, o, d)), k = -1;
8018
+ } = q1(t, o, d)), B = -1;
8019
8019
  continue;
8020
8020
  }
8021
8021
  }
@@ -8043,7 +8043,7 @@ async function v1(H, V) {
8043
8043
  elementContext: r = "floating",
8044
8044
  altBoundary: o = !1,
8045
8045
  padding: l = 0
8046
- } = l1(V, H), u = t2(l), w = e[o ? r === "floating" ? "reference" : "floating" : r], B = w1(await L.getClippingRect({
8046
+ } = l1(V, H), u = t2(l), w = e[o ? r === "floating" ? "reference" : "floating" : r], h = w1(await L.getClippingRect({
8047
8047
  element: (C = await (L.isElement == null ? void 0 : L.isElement(w))) == null || C ? w : w.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8048
8048
  boundary: t,
8049
8049
  rootBoundary: n,
@@ -8064,10 +8064,10 @@ async function v1(H, V) {
8064
8064
  strategy: d
8065
8065
  }) : b);
8066
8066
  return {
8067
- top: (B.top - y.top + u.top) / R.y,
8068
- bottom: (y.bottom - B.bottom + u.bottom) / R.y,
8069
- left: (B.left - y.left + u.left) / R.x,
8070
- right: (y.right - B.right + u.right) / R.x
8067
+ top: (h.top - y.top + u.top) / R.y,
8068
+ bottom: (y.bottom - h.bottom + u.bottom) / R.y,
8069
+ left: (h.left - y.left + u.left) / R.x,
8070
+ right: (y.right - h.right + u.right) / R.x
8071
8071
  };
8072
8072
  }
8073
8073
  const u5 = (H) => ({
@@ -8091,10 +8091,10 @@ const u5 = (H) => ({
8091
8091
  const r = t2(n), o = {
8092
8092
  x: C,
8093
8093
  y: M
8094
- }, l = Q1(i), u = I1(l), k = await A.getDimensions(t), w = l === "y", B = w ? "top" : "left", b = w ? "bottom" : "right", F = w ? "clientHeight" : "clientWidth", R = L.reference[u] + L.reference[l] - o[l] - L.floating[u], y = o[l] - L.reference[l], U = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(t));
8094
+ }, l = Q1(i), u = I1(l), B = await A.getDimensions(t), w = l === "y", h = w ? "top" : "left", b = w ? "bottom" : "right", F = w ? "clientHeight" : "clientWidth", R = L.reference[u] + L.reference[l] - o[l] - L.floating[u], y = o[l] - L.reference[l], U = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(t));
8095
8095
  let W = U ? U[F] : 0;
8096
8096
  (!W || !await (A.isElement == null ? void 0 : A.isElement(U))) && (W = e.floating[F] || L.floating[u]);
8097
- const h = R / 2 - y / 2, I = W / 2 - k[u] / 2 - 1, M1 = a1(r[B], I), a = a1(r[b], I), s = M1, P = W - k[u] - a, T = W / 2 - k[u] / 2 + h, c = D1(s, T, P), _ = !d.arrow && s1(i) != null && T != c && L.reference[u] / 2 - (T < s ? M1 : a) - k[u] / 2 < 0, $ = _ ? T < s ? T - s : T - P : 0;
8097
+ const g = R / 2 - y / 2, I = W / 2 - B[u] / 2 - 1, M1 = a1(r[h], I), a = a1(r[b], I), s = M1, P = W - B[u] - a, T = W / 2 - B[u] / 2 + g, c = D1(s, T, P), _ = !d.arrow && s1(i) != null && T != c && L.reference[u] / 2 - (T < s ? M1 : a) - B[u] / 2 < 0, $ = _ ? T < s ? T - s : T - P : 0;
8098
8098
  return {
8099
8099
  [l]: o[l] + $,
8100
8100
  data: {
@@ -8126,20 +8126,20 @@ const u5 = (H) => ({
8126
8126
  fallbackPlacements: o,
8127
8127
  fallbackStrategy: l = "bestFit",
8128
8128
  fallbackAxisSideDirection: u = "none",
8129
- flipAlignment: k = !0,
8129
+ flipAlignment: B = !0,
8130
8130
  ...w
8131
8131
  } = l1(H, V);
8132
8132
  if ((C = L.arrow) != null && C.alignmentOffset)
8133
8133
  return {};
8134
- const B = i1(i), b = i1(e) === e, F = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), R = o || (b || !k ? [b1(e)] : o5(e));
8135
- !o && u !== "none" && R.push(...r5(e, k, u, F));
8134
+ const h = i1(i), b = i1(e) === e, F = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), R = o || (b || !B ? [b1(e)] : o5(e));
8135
+ !o && u !== "none" && R.push(...r5(e, B, u, F));
8136
8136
  const y = [e, ...R], U = await v1(V, w), W = [];
8137
- let h = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8138
- if (n && W.push(U[B]), r) {
8137
+ let g = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8138
+ if (n && W.push(U[h]), r) {
8139
8139
  const s = l5(i, A, F);
8140
8140
  W.push(U[s[0]], U[s[1]]);
8141
8141
  }
8142
- if (h = [...h, {
8142
+ if (g = [...g, {
8143
8143
  placement: i,
8144
8144
  overflows: W
8145
8145
  }], !W.every((s) => s <= 0)) {
@@ -8149,18 +8149,18 @@ const u5 = (H) => ({
8149
8149
  return {
8150
8150
  data: {
8151
8151
  index: s,
8152
- overflows: h
8152
+ overflows: g
8153
8153
  },
8154
8154
  reset: {
8155
8155
  placement: P
8156
8156
  }
8157
8157
  };
8158
- let T = (M1 = h.filter((c) => c.overflows[0] <= 0).sort((c, _) => c.overflows[1] - _.overflows[1])[0]) == null ? void 0 : M1.placement;
8158
+ let T = (M1 = g.filter((c) => c.overflows[0] <= 0).sort((c, _) => c.overflows[1] - _.overflows[1])[0]) == null ? void 0 : M1.placement;
8159
8159
  if (!T)
8160
8160
  switch (l) {
8161
8161
  case "bestFit": {
8162
8162
  var a;
8163
- const c = (a = h.map((_) => [_.placement, _.overflows.filter(($) => $ > 0).reduce(($, Q) => $ + Q, 0)]).sort((_, $) => _[1] - $[1])[0]) == null ? void 0 : a[0];
8163
+ const c = (a = g.map((_) => [_.placement, _.overflows.filter(($) => $ > 0).reduce(($, Q) => $ + Q, 0)]).sort((_, $) => _[1] - $[1])[0]) == null ? void 0 : a[0];
8164
8164
  c && (T = c);
8165
8165
  break;
8166
8166
  }
@@ -8291,11 +8291,11 @@ const p5 = function(H) {
8291
8291
  limiter: e = {
8292
8292
  fn: (w) => {
8293
8293
  let {
8294
- x: B,
8294
+ x: h,
8295
8295
  y: b
8296
8296
  } = w;
8297
8297
  return {
8298
- x: B,
8298
+ x: h,
8299
8299
  y: b
8300
8300
  };
8301
8301
  }
@@ -8307,23 +8307,23 @@ const p5 = function(H) {
8307
8307
  }, n = await v1(V, d), r = y1(i1(i)), o = d2(r);
8308
8308
  let l = t[o], u = t[r];
8309
8309
  if (L) {
8310
- const w = o === "y" ? "top" : "left", B = o === "y" ? "bottom" : "right", b = l + n[w], F = l - n[B];
8310
+ const w = o === "y" ? "top" : "left", h = o === "y" ? "bottom" : "right", b = l + n[w], F = l - n[h];
8311
8311
  l = D1(b, l, F);
8312
8312
  }
8313
8313
  if (A) {
8314
- const w = r === "y" ? "top" : "left", B = r === "y" ? "bottom" : "right", b = u + n[w], F = u - n[B];
8314
+ const w = r === "y" ? "top" : "left", h = r === "y" ? "bottom" : "right", b = u + n[w], F = u - n[h];
8315
8315
  u = D1(b, u, F);
8316
8316
  }
8317
- const k = e.fn({
8317
+ const B = e.fn({
8318
8318
  ...V,
8319
8319
  [o]: l,
8320
8320
  [r]: u
8321
8321
  });
8322
8322
  return {
8323
- ...k,
8323
+ ...B,
8324
8324
  data: {
8325
- x: k.x - C,
8326
- y: k.y - M
8325
+ x: B.x - C,
8326
+ y: B.y - M
8327
8327
  }
8328
8328
  };
8329
8329
  }
@@ -8467,8 +8467,8 @@ function Z1(H, V, C, M) {
8467
8467
  const o = z(L), l = M && C1(M) ? z(M) : M;
8468
8468
  let u = o.frameElement;
8469
8469
  for (; u && M && l !== o; ) {
8470
- const k = d1(u), w = u.getBoundingClientRect(), B = K(u), b = w.left + (u.clientLeft + parseFloat(B.paddingLeft)) * k.x, F = w.top + (u.clientTop + parseFloat(B.paddingTop)) * k.y;
8471
- d *= k.x, t *= k.y, n *= k.x, r *= k.y, d += b, t += F, u = z(u).frameElement;
8470
+ const B = d1(u), w = u.getBoundingClientRect(), h = K(u), b = w.left + (u.clientLeft + parseFloat(h.paddingLeft)) * B.x, F = w.top + (u.clientTop + parseFloat(h.paddingTop)) * B.y;
8471
+ d *= B.x, t *= B.y, n *= B.x, r *= B.y, d += b, t += F, u = z(u).frameElement;
8472
8472
  }
8473
8473
  }
8474
8474
  return w1({
@@ -8687,11 +8687,11 @@ async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e)
8687
8687
  s5()
8688
8688
  ]
8689
8689
  }).then(({ x: d, y: t, placement: n, middlewareData: r }) => {
8690
- var u, k;
8690
+ var u, B;
8691
8691
  if (!V)
8692
8692
  return;
8693
8693
  r.flip && V.setAttribute("data-placement", n);
8694
- const o = (u = H.offsetParent) == null ? void 0 : u.getBoundingClientRect().left, l = (k = H.offsetParent) == null ? void 0 : k.getBoundingClientRect().width;
8694
+ const o = (u = H.offsetParent) == null ? void 0 : u.getBoundingClientRect().left, l = (B = H.offsetParent) == null ? void 0 : B.getBoundingClientRect().width;
8695
8695
  if (Object.assign(V.style, {
8696
8696
  maxWidth: e === "dropdown" ? `${l}px` : "auto",
8697
8697
  left: e === "dropdown" ? `${o}px` : `${d}px`,
@@ -8699,7 +8699,7 @@ async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e)
8699
8699
  animation: `r-tooltip-show ${A}ms ease-in-out forwards`,
8700
8700
  transformOrigin: "start"
8701
8701
  }), C && r.arrow) {
8702
- const { x: w, y: B } = r.arrow, b = {
8702
+ const { x: w, y: h } = r.arrow, b = {
8703
8703
  top: "bottom",
8704
8704
  right: "left",
8705
8705
  bottom: "top",
@@ -8708,7 +8708,7 @@ async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e)
8708
8708
  }[n.split("-")[0]];
8709
8709
  Object.assign(C.style, {
8710
8710
  left: d != null ? `${w}px` : "",
8711
- top: t != null ? `${B}px` : "",
8711
+ top: t != null ? `${h}px` : "",
8712
8712
  right: "",
8713
8713
  bottom: "",
8714
8714
  [`${b}`]: "-4px"
@@ -8744,12 +8744,12 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8744
8744
  async function d() {
8745
8745
  if (C.disabled || !L.value)
8746
8746
  return;
8747
- const B = document.querySelectorAll(".r-tooltip--active");
8748
- B.length > 0 && B.forEach((b) => {
8747
+ const h = document.querySelectorAll(".r-tooltip--active");
8748
+ h.length > 0 && h.forEach((b) => {
8749
8749
  b.style.display = "", b.classList.remove("r-tooltip--active"), b.dataset.show = "false", M("hide", b.id);
8750
- }), L.value.classList.contains("r-tooltip--active") ? t() : (k(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", M("show", L.value.id), n());
8750
+ }), L.value.classList.contains("r-tooltip--active") ? t() : (B(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", M("show", L.value.id), n());
8751
8751
  }
8752
- function t(B = null) {
8752
+ function t(h = null) {
8753
8753
  C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", M("hide", L.value.id));
8754
8754
  }
8755
8755
  function n() {
@@ -8757,7 +8757,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8757
8757
  t();
8758
8758
  }, C.hideDelay);
8759
8759
  }
8760
- function r(B) {
8760
+ function r(h) {
8761
8761
  C.disabled || C.triggers.includes(Y.Click) && (L.value.style.display === "block" ? t() : d());
8762
8762
  }
8763
8763
  function o() {
@@ -8767,19 +8767,19 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8767
8767
  C.disabled || (L.value.style.display === "" && C.triggers.includes(Y.Hover) ? d() : L.value.style.display !== "" && C.triggers.includes(Y.Hover) && t());
8768
8768
  }
8769
8769
  function u() {
8770
- C.triggers.includes(Y.Hover) && k();
8770
+ C.triggers.includes(Y.Hover) && B();
8771
8771
  }
8772
- function k(B) {
8772
+ function B(h) {
8773
8773
  const { placement: b, offset: F, padding: R, disabled: y, showDelay: U, type: W } = C;
8774
8774
  y || W5(i, L, A, b, F, R, U, W);
8775
8775
  }
8776
- const w = g(() => ({
8776
+ const w = k(() => ({
8777
8777
  "r-tooltip": !0,
8778
8778
  "r-tooltip--dark": C.dark && !C.light,
8779
8779
  "r-tooltip--light": C.light
8780
8780
  }));
8781
8781
  return window.onresize = () => {
8782
- C.resizable && k();
8782
+ C.resizable && B();
8783
8783
  }, O2(
8784
8784
  () => {
8785
8785
  C.disabled || (C.shown && C.triggers.includes(Y.Manual) ? d() : !C.shown && C.triggers.includes(Y.Manual) && t());
@@ -8787,25 +8787,27 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8787
8787
  { flush: "post" }
8788
8788
  // this is important to avoid infinite loop & for fire on mounted
8789
8789
  ), V2(() => {
8790
- C.resizable && i.value.parentElement.parentElement.addEventListener("scroll", k()), A5(i, (B) => {
8791
- L.value.classList.contains("r-tooltip--active") && t(B);
8790
+ var h, b;
8791
+ C.resizable && ((b = (h = i.value) == null ? void 0 : h.parentElement) == null || b.parentElement.addEventListener("scroll", B())), A5(i, (F) => {
8792
+ L.value.classList.contains("r-tooltip--active") && t(F);
8792
8793
  }, { ignore: [L] }), C.type === W1.Dropdown && document.addEventListener("scroll", () => {
8793
- k();
8794
+ B();
8794
8795
  });
8795
8796
  }), L2(() => {
8796
- C.resizable && i.value.parentElement.parentElement.removeEventListener("scroll", k()), document.body.removeChild(L.value);
8797
- }), (B, b) => (m(), Z(t1, null, [
8797
+ var h, b;
8798
+ C.resizable && ((b = (h = i.value) == null ? void 0 : h.parentElement) == null || b.parentElement.removeEventListener("scroll", B())), L.value && document.body.removeChild(L.value);
8799
+ }), (h, b) => (m(), Z(t1, null, [
8798
8800
  S("div", {
8799
8801
  ref_key: "trigger",
8800
8802
  ref: i,
8801
8803
  "aria-disabled": C.disabled,
8802
- class: p(["r-tooltip-trigger", B.triggerClass]),
8804
+ class: p(["r-tooltip-trigger", h.triggerClass]),
8803
8805
  onClick: r,
8804
8806
  onMouseenter: o,
8805
8807
  onMouseleave: l,
8806
8808
  onMousemove: u
8807
8809
  }, [
8808
- f(B.$slots, "default", {
8810
+ f(h.$slots, "default", {
8809
8811
  activators: {
8810
8812
  click: r,
8811
8813
  mouseenter: o,
@@ -8813,7 +8815,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8813
8815
  mousemove: u
8814
8816
  },
8815
8817
  tooltipId: J(e),
8816
- updatePosition: k
8818
+ updatePosition: B
8817
8819
  }, () => [
8818
8820
  S("div", {
8819
8821
  innerHTML: C.triggerContent
@@ -8825,13 +8827,13 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8825
8827
  id: J(e),
8826
8828
  ref_key: "tooltip",
8827
8829
  ref: L,
8828
- class: p([w.value, B.tooltipClass]),
8830
+ class: p([w.value, h.tooltipClass]),
8829
8831
  "data-show": "false",
8830
8832
  role: "tooltip"
8831
8833
  }, [
8832
- f(B.$slots, "content", {
8834
+ f(h.$slots, "content", {
8833
8835
  hide: t,
8834
- updatePosition: k
8836
+ updatePosition: B
8835
8837
  }, () => [
8836
8838
  C.text ? (m(), Z("div", {
8837
8839
  key: 0,
@@ -8908,13 +8910,13 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8908
8910
  const [s] = Object == null ? void 0 : Object.keys(a);
8909
8911
  return ["label", "value"].includes(s);
8910
8912
  }
8911
- const t = g(() => {
8913
+ const t = k(() => {
8912
8914
  const a = C.options;
8913
8915
  return d(a[0]) ? a : a.map((s) => ({
8914
8916
  value: s,
8915
8917
  label: String(s)
8916
8918
  }));
8917
- }), n = g(() => {
8919
+ }), n = k(() => {
8918
8920
  const a = C.modelValue;
8919
8921
  return d(a) ? a : {
8920
8922
  value: a,
@@ -8939,7 +8941,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8939
8941
  }));
8940
8942
  }));
8941
8943
  }
8942
- function k(a) {
8944
+ function B(a) {
8943
8945
  const s = document.getElementById(a);
8944
8946
  s == null || s.classList.remove("r-dropdown--active"), A.value = !1;
8945
8947
  }
@@ -8954,10 +8956,10 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8954
8956
  L.value.find((_) => _.value === s.value) ? L.value.splice(L.value.indexOf(s), 1) : L.value.push(s), e.value = "", C.searchable && ((c = o.value) == null || c.focus());
8955
8957
  return;
8956
8958
  }
8957
- B(a, s), C.closeOnSelect && P();
8959
+ h(a, s), C.closeOnSelect && P();
8958
8960
  }
8959
8961
  }
8960
- function B(a, s) {
8962
+ function h(a, s) {
8961
8963
  if (i.value.value === s.value) {
8962
8964
  i.value = {}, e.value = "", M("update:modelValue", "");
8963
8965
  return;
@@ -8985,11 +8987,11 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8985
8987
  var s;
8986
8988
  return !a || (a == null ? void 0 : a.value) === void 0 || (a == null ? void 0 : a.value) === null ? !1 : C.multiple ? L.value.find((P) => (P == null ? void 0 : P.value) === (a == null ? void 0 : a.value)) : ((s = i.value) == null ? void 0 : s.value) === (a == null ? void 0 : a.value);
8987
8989
  }
8988
- const y = g(() => !C.searchable || i.value.label === e.value ? t.value : t.value.filter((s) => s.label.toLowerCase().includes(e.value.toLowerCase()))), U = g(() => !C.searchable);
8990
+ const y = k(() => !C.searchable || i.value.label === e.value ? t.value : t.value.filter((s) => s.label.toLowerCase().includes(e.value.toLowerCase()))), U = k(() => !C.searchable);
8989
8991
  function W() {
8990
8992
  n.value ? C.multiple ? L.value = n.value : (i.value = n.value, e.value = n.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
8991
8993
  }
8992
- function h(a) {
8994
+ function g(a) {
8993
8995
  C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
8994
8996
  }
8995
8997
  function I(a, s) {
@@ -9033,7 +9035,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
9033
9035
  triggers: ["click"],
9034
9036
  type: "dropdown",
9035
9037
  onHide: s[1] || (s[1] = (P) => {
9036
- k(P);
9038
+ B(P);
9037
9039
  })
9038
9040
  }, {
9039
9041
  default: k1(({ updatePosition: P, tooltipId: T }) => [
@@ -9101,7 +9103,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
9101
9103
  readonly: U.value,
9102
9104
  role: "presentation",
9103
9105
  type: "text",
9104
- onInput: A1((c) => h(P), ["prevent"]),
9106
+ onInput: A1((c) => g(P), ["prevent"]),
9105
9107
  onKeydown: [
9106
9108
  U1((c) => b(c, L.value[L.value.length - 1], P), ["backspace"]),
9107
9109
  U1((c) => F(c, P), ["enter"])
@@ -9278,11 +9280,11 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
9278
9280
  },
9279
9281
  emits: ["update:modelValue"],
9280
9282
  setup(H, { emit: V }) {
9281
- const C = H, M = V, i = g(() => ({
9283
+ const C = H, M = V, i = k(() => ({
9282
9284
  "r-dialog": !0,
9283
9285
  "r-dialog--block": C.block,
9284
9286
  [`${C.class}`]: !0
9285
- })), L = g(() => ({
9287
+ })), L = k(() => ({
9286
9288
  width: C.width,
9287
9289
  height: C.height
9288
9290
  }));
@@ -9388,14 +9390,14 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
9388
9390
  immediate: !0
9389
9391
  }
9390
9392
  );
9391
- const i = g(() => ({
9393
+ const i = k(() => ({
9392
9394
  "r-snackbar": !0,
9393
9395
  [`r-snackbar--${C.variant}`]: !0,
9394
9396
  [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
9395
9397
  [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
9396
9398
  [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0,
9397
9399
  "r-snackbar--closable": C.closable
9398
- })), L = g(() => ({
9400
+ })), L = k(() => ({
9399
9401
  success: "mdiCheckCircle",
9400
9402
  error: "mdiAlertCircle",
9401
9403
  warning: "mdiAlert",
@@ -9456,7 +9458,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
9456
9458
  setup(H, { emit: V }) {
9457
9459
  const C = H, M = V, i = u1({
9458
9460
  checked: !1
9459
- }), L = g(() => ({
9461
+ }), L = k(() => ({
9460
9462
  "r-switch": !0,
9461
9463
  "r-switch--disabled": C.disabled,
9462
9464
  [`r-switch--${C.size}`]: C.size,
@@ -9528,14 +9530,14 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9528
9530
  },
9529
9531
  emits: ["update:modelValue"],
9530
9532
  setup(H, { emit: V }) {
9531
- const C = H, M = V, i = g(() => ({
9533
+ const C = H, M = V, i = k(() => ({
9532
9534
  "r-tab-item": !0,
9533
9535
  [`r-tab-item--${C.variant}`]: !0,
9534
9536
  "r-tab-item--tile": C.tile,
9535
9537
  "r-tab-item--block": C.block
9536
- })), L = g(() => ({
9538
+ })), L = k(() => ({
9537
9539
  color: C.color
9538
- })), A = g(() => C.modelValue === C.id);
9540
+ })), A = k(() => C.modelValue === C.id);
9539
9541
  function e(d) {
9540
9542
  M("update:modelValue", d);
9541
9543
  }
@@ -9589,7 +9591,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9589
9591
  },
9590
9592
  emits: ["update:modelValue"],
9591
9593
  setup(H, { emit: V }) {
9592
- const C = H, M = V, i = N(C.modelValue || C.tabs[0].id), L = g(() => ({
9594
+ const C = H, M = V, i = N(C.modelValue || C.tabs[0].id), L = k(() => ({
9593
9595
  "r-tabs": !0,
9594
9596
  "r-tabs--tile": C.tile
9595
9597
  }));
@@ -9744,48 +9746,48 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9744
9746
  url: "mdiLink",
9745
9747
  number: "mdiNumeric",
9746
9748
  text: ""
9747
- }, d = N(!1), t = g(() => !!L.value), n = g(() => L.value.length > 0), r = g(() => {
9748
- var h;
9749
- return (h = C.errorMsg) == null ? void 0 : h.length;
9750
- }), o = g(() => C.clearable && n.value), l = g(() => {
9751
- const { disabled: h, loading: I } = C;
9749
+ }, d = N(!1), t = k(() => !!L.value), n = k(() => L.value.length > 0), r = k(() => {
9750
+ var g;
9751
+ return (g = C.errorMsg) == null ? void 0 : g.length;
9752
+ }), o = k(() => C.clearable && n.value), l = k(() => {
9753
+ const { disabled: g, loading: I } = C;
9752
9754
  return {
9753
9755
  "r-textfield": !0,
9754
9756
  "r-textfield--error": r.value,
9755
9757
  "r-textfield--loading": I,
9756
- "r-textfield--disabled": h,
9758
+ "r-textfield--disabled": g,
9757
9759
  "r-textfield--clearable": o.value,
9758
9760
  "r-textfield--focus": d.value,
9759
9761
  "r-textfield--filled": t.value
9760
9762
  };
9761
- }), u = g(() => ({
9763
+ }), u = k(() => ({
9762
9764
  "r-textfield__prepend-icon": !0,
9763
9765
  "r-textfield__prepend-icon--loading": C.loading,
9764
9766
  "r-textfield__prepend-icon--error": r.value && t.value
9765
- })), k = g(() => ({
9767
+ })), B = k(() => ({
9766
9768
  "r-textfield__append-icon": !0,
9767
9769
  "r-textfield__append-icon--clear": o.value,
9768
9770
  "r-textfield__append-icon--error": r.value
9769
- })), w = g(() => {
9770
- const { prependIcon: h, type: I } = C;
9771
- return h === "none" ? "" : h || e[I];
9772
- }), B = g(() => {
9773
- const { appendIcon: h, type: I } = C;
9774
- return h === "none" ? "" : r.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(I) ? "mdiClose" : I === "password" && A.value === "password" ? "mdiEyeOutline" : I === "password" && A.value === "text" ? "mdiEyeOffOutline" : h;
9771
+ })), w = k(() => {
9772
+ const { prependIcon: g, type: I } = C;
9773
+ return g === "none" ? "" : g || e[I];
9774
+ }), h = k(() => {
9775
+ const { appendIcon: g, type: I } = C;
9776
+ return g === "none" ? "" : r.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(I) ? "mdiClose" : I === "password" && A.value === "password" ? "mdiEyeOutline" : I === "password" && A.value === "text" ? "mdiEyeOffOutline" : g;
9775
9777
  });
9776
- function b(h) {
9777
- d.value = !0, M("focus", h);
9778
+ function b(g) {
9779
+ d.value = !0, M("focus", g);
9778
9780
  }
9779
- function F(h) {
9780
- d.value = !1, M("blur", h);
9781
+ function F(g) {
9782
+ d.value = !1, M("blur", g);
9781
9783
  }
9782
- function R(h) {
9783
- L.value = h.target.value, M("input", h);
9784
+ function R(g) {
9785
+ L.value = g.target.value, M("input", g);
9784
9786
  }
9785
9787
  function y() {
9786
- var h;
9788
+ var g;
9787
9789
  if (o.value) {
9788
- L.value = "", (h = i.value) == null || h.focus(), M("click:clear", {
9790
+ L.value = "", (g = i.value) == null || g.focus(), M("click:clear", {
9789
9791
  value: A.value === "number" ? +L.value : L.value
9790
9792
  });
9791
9793
  return;
@@ -9798,26 +9800,26 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9798
9800
  A.value = A.value === "password" ? "text" : "password";
9799
9801
  }
9800
9802
  function W() {
9801
- var h;
9802
- (h = i.value) == null || h.focus();
9803
+ var g;
9804
+ (g = i.value) == null || g.focus();
9803
9805
  }
9804
9806
  return G(
9805
9807
  () => C.modelValue,
9806
- (h) => {
9807
- L.value = h;
9808
+ (g) => {
9809
+ L.value = g;
9808
9810
  },
9809
9811
  {
9810
9812
  immediate: !0
9811
9813
  }
9812
9814
  ), G(
9813
9815
  () => L.value,
9814
- (h) => {
9816
+ (g) => {
9815
9817
  M(
9816
9818
  "update:modelValue",
9817
- A.value === "number" ? +h : h
9819
+ A.value === "number" ? +g : g
9818
9820
  );
9819
9821
  }
9820
- ), (h, I) => (m(), Z("div", F3, [
9822
+ ), (g, I) => (m(), Z("div", F3, [
9821
9823
  C.label ? (m(), E(s2, {
9822
9824
  key: 0,
9823
9825
  id: `${C.id}-label`,
@@ -9830,7 +9832,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9830
9832
  S("div", {
9831
9833
  class: p(l.value)
9832
9834
  }, [
9833
- f(h.$slots, "prepend", {
9835
+ f(g.$slots, "prepend", {
9834
9836
  disabled: C.disabled,
9835
9837
  error: r.value,
9836
9838
  loading: C.loading
@@ -9858,15 +9860,15 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9858
9860
  onFocus: b,
9859
9861
  onInput: R
9860
9862
  }, null, 40, x3),
9861
- f(h.$slots, "append", {
9863
+ f(g.$slots, "append", {
9862
9864
  disabled: C.disabled,
9863
9865
  error: r.value,
9864
9866
  loading: C.loading
9865
9867
  }, () => [
9866
- B.value && !h.$slots.append || r.value ? (m(), E(D, {
9868
+ h.value && !g.$slots.append || r.value ? (m(), E(D, {
9867
9869
  key: 0,
9868
- class: p(k.value),
9869
- name: `${B.value}`,
9870
+ class: p(B.value),
9871
+ name: `${h.value}`,
9870
9872
  size: 20,
9871
9873
  onClick: y
9872
9874
  }, null, 8, ["class", "name"])) : O("", !0)
@@ -9966,10 +9968,10 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
9966
9968
  },
9967
9969
  emits: ["update:page", "update:perPage", "update:info"],
9968
9970
  setup(H, { emit: V }) {
9969
- const C = H, M = V, i = N(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), A = g(() => ({
9971
+ const C = H, M = V, i = N(C.perPage || 10), L = k(() => Math.ceil(C.totalItems / C.perPage)), A = k(() => ({
9970
9972
  start: C.page * C.perPage - C.perPage,
9971
9973
  end: C.page * C.perPage
9972
- })), e = g(() => C.infoText || `${A.value.start + 1}-${A.value.end} of ${C.totalItems}`), d = g(() => +C.page == +L.value), t = g(() => +C.page == 1);
9974
+ })), e = k(() => C.infoText || `${A.value.start + 1}-${A.value.end} of ${C.totalItems}`), d = k(() => +C.page == +L.value), t = k(() => +C.page == 1);
9973
9975
  G(() => A.value, () => {
9974
9976
  M("update:info", A.value);
9975
9977
  }), G(() => C.perPage, () => {
@@ -10118,7 +10120,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
10118
10120
  },
10119
10121
  emits: ["update:modelValue"],
10120
10122
  setup(H, { emit: V }) {
10121
- const C = H, M = V, i = N(C.as ?? "div"), L = N(C.modelValue), A = g(() => C.selectedClass);
10123
+ const C = H, M = V, i = N(C.as ?? "div"), L = N(C.modelValue), A = k(() => C.selectedClass);
10122
10124
  O1(`${h1}:selectedClass`, A.value);
10123
10125
  function e(n) {
10124
10126
  return L.value.includes(n);
@@ -10151,7 +10153,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
10151
10153
  selectedClass: { default: "" }
10152
10154
  },
10153
10155
  setup(H) {
10154
- const V = H, C = f1(`${g1}:isSelected`), M = f1(`${g1}:selectedClass`, ""), i = f1(`${g1}:select`), L = f1(`${g1}:isDisabled`), A = g(() => C(V.value) && [M, V.selectedClass]);
10156
+ const V = H, C = f1(`${g1}:isSelected`), M = f1(`${g1}:selectedClass`, ""), i = f1(`${g1}:select`), L = f1(`${g1}:isDisabled`), A = k(() => C(V.value) && [M, V.selectedClass]);
10155
10157
  function e() {
10156
10158
  V.disabled || i(V.value, !C(V.value));
10157
10159
  }