@rocketui/vue 0.2.13 → 0.2.15

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.
@@ -683,7 +683,34 @@ declare interface BadgeProps {
683
683
  * <Badge animation />
684
684
  */
685
685
  animation?: boolean;
686
+ /**
687
+ * Class of the Badge
688
+ * @type { string | string[] }
689
+ * @example
690
+ * <Badge class="text-red-500" />
691
+ */
686
692
  class?: string | string[];
693
+ /**
694
+ * Content of the Badge
695
+ * @type { string }
696
+ * @example
697
+ * <Badge content="99+" />
698
+ */
699
+ content?: string;
700
+ /**
701
+ * Class of the content of the Badge
702
+ * @type { string | string[] }
703
+ * @example
704
+ * <Badge contentClass="text-red-500" />
705
+ */
706
+ contentClass?: string | string[];
707
+ /**
708
+ * Wrapper class of the Badge
709
+ * @type { string | string[] }
710
+ * @example
711
+ * <Badge wrapperClass="text-red-500" />
712
+ */
713
+ wrapperClass?: string | string[];
687
714
  }
688
715
 
689
716
  declare interface BreadcrumbItem {
@@ -2009,6 +2036,8 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2009
2036
  outside: boolean;
2010
2037
  animation: boolean;
2011
2038
  class: string;
2039
+ contentClass: string;
2040
+ wrapperClass: string;
2012
2041
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2013
2042
  click: (...args: any[]) => void;
2014
2043
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_4<BadgeProps>, {
@@ -2020,6 +2049,8 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2020
2049
  outside: boolean;
2021
2050
  animation: boolean;
2022
2051
  class: string;
2052
+ contentClass: string;
2053
+ wrapperClass: string;
2023
2054
  }>>> & {
2024
2055
  onClick?: ((...args: any[]) => any) | undefined;
2025
2056
  }, {
@@ -2027,9 +2058,12 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2027
2058
  variant: "primary" | "success" | "warning" | "error" | "neutral";
2028
2059
  hover: boolean;
2029
2060
  placement: "bottom" | "left" | "right";
2061
+ content: string;
2030
2062
  overlap: boolean;
2031
2063
  outside: boolean;
2032
2064
  animation: boolean;
2065
+ contentClass: string | string[];
2066
+ wrapperClass: string | string[];
2033
2067
  }, {}>, {
2034
2068
  default?(_: {}): any;
2035
2069
  }>;
@@ -2318,10 +2352,10 @@ export declare const RItemGroup: __VLS_WithTemplateSlots_17<DefineComponent<__VL
2318
2352
  }, {
2319
2353
  disabled: boolean;
2320
2354
  modelValue: string[] | number[];
2355
+ as: string;
2321
2356
  selectedClass: string | string[];
2322
2357
  mandatory: boolean;
2323
2358
  max: number;
2324
- as: string;
2325
2359
  }, {}>, {
2326
2360
  default?(_: {
2327
2361
  isSelected: typeof isSelected;
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, openBlock as m, createElementBlock as r, createElementVNode as S, unref as V1, reactive as m1, Fragment as L1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as c, mergeProps as j1, createBlock as _, watch as G, getCurrentScope as Z2, onScopeDispose as u2, ref as N, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as r1, withDirectives as Y1, withModifiers as d1, withKeys as N1, vModelText as c2, createTextVNode as R1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, Transition as f2, resolveComponent as h2, provide as s1, resolveDynamicComponent as g2, inject as c1 } from "vue";
1
+ import { defineComponent as T, openBlock as m, createElementBlock as r, createElementVNode as S, unref as V1, reactive as Z1, Fragment as L1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as c, mergeProps as j1, createBlock as _, watch as G, getCurrentScope as Z2, onScopeDispose as u2, ref as W, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as n1, withDirectives as Y1, withModifiers as d1, withKeys as N1, vModelText as c2, createTextVNode as R1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, Transition as f2, resolveComponent as h2, provide as s1, resolveDynamicComponent as g2, inject as c1 } from "vue";
2
2
  const k2 = {
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",
@@ -7322,7 +7322,7 @@ const k2 = {
7322
7322
  accordions: {}
7323
7323
  },
7324
7324
  setup(H) {
7325
- const V = H, C = m1(
7325
+ const V = H, C = Z1(
7326
7326
  V.accordions.map(({ title: A, content: L }, i) => ({
7327
7327
  title: A,
7328
7328
  content: L,
@@ -7465,7 +7465,7 @@ const k2 = {
7465
7465
  }, null, 2)) : c("", !0)
7466
7466
  ]));
7467
7467
  }
7468
- }), N2 = { class: "r-badge-wrapper group" }, d0 = /* @__PURE__ */ T({
7468
+ }), N2 = ["innerHTML"], d0 = /* @__PURE__ */ T({
7469
7469
  __name: "RBadge",
7470
7470
  props: {
7471
7471
  variant: { default: "primary" },
@@ -7474,13 +7474,16 @@ const k2 = {
7474
7474
  hover: { type: Boolean, default: !1 },
7475
7475
  outside: { type: Boolean, default: !1 },
7476
7476
  animation: { type: Boolean, default: !1 },
7477
- class: { default: "" }
7477
+ class: { default: "" },
7478
+ content: { default: "" },
7479
+ contentClass: { default: "" },
7480
+ wrapperClass: { default: "" }
7478
7481
  },
7479
7482
  emits: ["click"],
7480
7483
  setup(H) {
7481
7484
  const V = H, C = g(() => ({
7482
7485
  "r-badge": !0,
7483
- "r-badge__content": V.content,
7486
+ [`r-badge--content ${V.contentClass}`]: V.content,
7484
7487
  [`r-badge--overlap-${V.placement}`]: V.overlap,
7485
7488
  [`r-badge--${V.placement}`]: V.placement,
7486
7489
  [`r-badge--outside-${V.placement}`]: V.outside,
@@ -7488,15 +7491,18 @@ const k2 = {
7488
7491
  [`r-badge--${V.variant}`]: V.variant,
7489
7492
  [V.class]: V.class
7490
7493
  }));
7491
- return (M, A) => (m(), r("div", N2, [
7494
+ return (M, A) => (m(), r("div", {
7495
+ class: p(["r-badge-wrapper group", [V.wrapperClass]])
7496
+ }, [
7492
7497
  S("span", {
7493
7498
  class: p([{ "animate-ping-2": V.animation }, C.value])
7494
7499
  }, null, 2),
7495
7500
  S("span", {
7496
- class: p(C.value)
7497
- }, null, 2),
7501
+ class: p(C.value),
7502
+ innerHTML: V.content
7503
+ }, null, 10, N2),
7498
7504
  f(M.$slots, "default")
7499
- ]));
7505
+ ], 2));
7500
7506
  }
7501
7507
  }), I2 = ["disabled"], t0 = /* @__PURE__ */ T({
7502
7508
  __name: "RButton",
@@ -7579,7 +7585,7 @@ const k2 = {
7579
7585
  },
7580
7586
  emits: ["update:modelValue"],
7581
7587
  setup(H, { emit: V }) {
7582
- const C = H, M = V, A = m1({
7588
+ const C = H, M = V, A = Z1({
7583
7589
  checked: !1,
7584
7590
  indeterminate: !1
7585
7591
  }), L = {
@@ -7720,7 +7726,7 @@ function M5() {
7720
7726
  var H;
7721
7727
  return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7722
7728
  }
7723
- function o1(H) {
7729
+ function l1(H) {
7724
7730
  var V;
7725
7731
  const C = J1(H);
7726
7732
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
@@ -7734,7 +7740,7 @@ function y1(...H) {
7734
7740
  const L = [], i = () => {
7735
7741
  L.forEach((l) => l()), L.length = 0;
7736
7742
  }, e = (l, o, n, a) => (l.addEventListener(o, n, a), () => l.removeEventListener(o, n, a)), t = G(
7737
- () => [o1(V), J1(A)],
7743
+ () => [l1(V), J1(A)],
7738
7744
  ([l, o]) => {
7739
7745
  if (i(), !l)
7740
7746
  return;
@@ -7760,12 +7766,12 @@ function A5(H, V, C = {}) {
7760
7766
  if (typeof a == "string")
7761
7767
  return Array.from(M.document.querySelectorAll(a)).some((Z) => Z === n.target || n.composedPath().includes(Z));
7762
7768
  {
7763
- const Z = o1(a);
7769
+ const Z = l1(a);
7764
7770
  return Z && (n.target === Z || n.composedPath().includes(Z));
7765
7771
  }
7766
7772
  }), l = [
7767
7773
  y1(M, "click", (n) => {
7768
- const a = o1(H);
7774
+ const a = l1(H);
7769
7775
  if (!(!a || a === n.target || n.composedPath().includes(a))) {
7770
7776
  if (n.detail === 0 && (e = !t(n)), !e) {
7771
7777
  e = !0;
@@ -7775,20 +7781,20 @@ function A5(H, V, C = {}) {
7775
7781
  }
7776
7782
  }, { passive: !0, capture: L }),
7777
7783
  y1(M, "pointerdown", (n) => {
7778
- const a = o1(H);
7784
+ const a = l1(H);
7779
7785
  e = !t(n) && !!(a && !n.composedPath().includes(a));
7780
7786
  }, { passive: !0 }),
7781
7787
  i && y1(M, "blur", (n) => {
7782
7788
  setTimeout(() => {
7783
7789
  var a;
7784
- const Z = o1(H);
7790
+ const Z = l1(H);
7785
7791
  ((a = M.document.activeElement) == null ? void 0 : a.tagName) === "IFRAME" && !(Z != null && Z.contains(M.document.activeElement)) && V(n);
7786
7792
  }, 0);
7787
7793
  })
7788
7794
  ].filter(Boolean);
7789
7795
  return () => l.forEach((n) => n());
7790
7796
  }
7791
- const i5 = ["top", "right", "bottom", "left"], a1 = Math.min, i1 = Math.max, f1 = Math.round, J = (H) => ({
7797
+ const i5 = ["top", "right", "bottom", "left"], r1 = Math.min, i1 = Math.max, f1 = Math.round, J = (H) => ({
7792
7798
  x: H,
7793
7799
  y: H
7794
7800
  }), e5 = {
@@ -7801,9 +7807,9 @@ const i5 = ["top", "right", "bottom", "left"], a1 = Math.min, i1 = Math.max, f1
7801
7807
  end: "start"
7802
7808
  };
7803
7809
  function v1(H, V, C) {
7804
- return i1(H, a1(V, C));
7810
+ return i1(H, r1(V, C));
7805
7811
  }
7806
- function l1(H, V) {
7812
+ function m1(H, V) {
7807
7813
  return typeof H == "function" ? H(V) : H;
7808
7814
  }
7809
7815
  function M1(H) {
@@ -8012,7 +8018,7 @@ async function k1(H, V) {
8012
8018
  elementContext: o = "floating",
8013
8019
  altBoundary: n = !1,
8014
8020
  padding: a = 0
8015
- } = l1(V, H), Z = L2(a), k = e[n ? o === "floating" ? "reference" : "floating" : o], y = g1(await L.getClippingRect({
8021
+ } = m1(V, H), Z = L2(a), k = e[n ? o === "floating" ? "reference" : "floating" : o], y = g1(await L.getClippingRect({
8016
8022
  element: (C = await (L.isElement == null ? void 0 : L.isElement(k))) == null || C ? k : k.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8017
8023
  boundary: d,
8018
8024
  rootBoundary: l,
@@ -8054,7 +8060,7 @@ const a5 = (H) => ({
8054
8060
  } = V, {
8055
8061
  element: d,
8056
8062
  padding: l = 0
8057
- } = l1(H, V) || {};
8063
+ } = m1(H, V) || {};
8058
8064
  if (d == null)
8059
8065
  return {};
8060
8066
  const o = L2(l), n = {
@@ -8063,7 +8069,7 @@ const a5 = (H) => ({
8063
8069
  }, a = _1(A), Z = D1(a), B = await i.getDimensions(d), k = a === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", R = L.reference[Z] + L.reference[a] - n[a] - L.floating[Z], F = n[a] - L.reference[a], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
8064
8070
  let I = z ? z[v] : 0;
8065
8071
  (!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[Z]);
8066
- const O = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, u = a1(o[y], W), h = a1(o[P], W), b = u, x = I - B[Z] - h, s = I / 2 - B[Z] / 2 + O, E = v1(b, s, x), $ = !t.arrow && u1(A) != null && s != E && L.reference[Z] / 2 - (s < b ? u : h) - B[Z] / 2 < 0, j = $ ? s < b ? s - b : s - x : 0;
8072
+ const O = R / 2 - F / 2, N = I / 2 - B[Z] / 2 - 1, u = r1(o[y], N), h = r1(o[P], N), b = u, x = I - B[Z] - h, s = I / 2 - B[Z] / 2 + O, E = v1(b, s, x), $ = !t.arrow && u1(A) != null && s != E && L.reference[Z] / 2 - (s < b ? u : h) - B[Z] / 2 < 0, j = $ ? s < b ? s - b : s - x : 0;
8067
8073
  return {
8068
8074
  [a]: n[a] + j,
8069
8075
  data: {
@@ -8097,7 +8103,7 @@ const a5 = (H) => ({
8097
8103
  fallbackAxisSideDirection: Z = "none",
8098
8104
  flipAlignment: B = !0,
8099
8105
  ...k
8100
- } = l1(H, V);
8106
+ } = m1(H, V);
8101
8107
  if ((C = L.arrow) != null && C.alignmentOffset)
8102
8108
  return {};
8103
8109
  const y = M1(A), P = M1(e) === e, v = await (t.isRTL == null ? void 0 : t.isRTL(d.floating)), R = n || (P || !B ? [h1(e)] : m5(e));
@@ -8112,8 +8118,8 @@ const a5 = (H) => ({
8112
8118
  placement: A,
8113
8119
  overflows: I
8114
8120
  }], !I.every((b) => b <= 0)) {
8115
- var W, u;
8116
- const b = (((W = L.flip) == null ? void 0 : W.index) || 0) + 1, x = F[b];
8121
+ var N, u;
8122
+ const b = (((N = L.flip) == null ? void 0 : N.index) || 0) + 1, x = F[b];
8117
8123
  if (x)
8118
8124
  return {
8119
8125
  data: {
@@ -8169,7 +8175,7 @@ const u5 = function(H) {
8169
8175
  } = V, {
8170
8176
  strategy: M = "referenceHidden",
8171
8177
  ...A
8172
- } = l1(H, V);
8178
+ } = m1(H, V);
8173
8179
  switch (M) {
8174
8180
  case "referenceHidden": {
8175
8181
  const L = await k1(V, {
@@ -8206,7 +8212,7 @@ async function S5(H, V) {
8206
8212
  placement: C,
8207
8213
  platform: M,
8208
8214
  elements: A
8209
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = M1(C), e = u1(C), t = B1(C) === "y", d = ["left", "top"].includes(i) ? -1 : 1, l = L && t ? -1 : 1, o = l1(V, H);
8215
+ } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = M1(C), e = u1(C), t = B1(C) === "y", d = ["left", "top"].includes(i) ? -1 : 1, l = L && t ? -1 : 1, o = m1(V, H);
8210
8216
  let {
8211
8217
  mainAxis: n,
8212
8218
  crossAxis: a,
@@ -8270,7 +8276,7 @@ const s5 = function(H) {
8270
8276
  }
8271
8277
  },
8272
8278
  ...t
8273
- } = l1(H, V), d = {
8279
+ } = m1(H, V), d = {
8274
8280
  x: C,
8275
8281
  y: M
8276
8282
  }, l = await k1(V, t), o = B1(M1(A)), n = V2(o);
@@ -8425,7 +8431,7 @@ function d2(H) {
8425
8431
  function h5(H, V, C) {
8426
8432
  return V === void 0 && (V = !1), !C || V && C !== Q(H) ? !1 : V;
8427
8433
  }
8428
- function Z1(H, V, C, M) {
8434
+ function a1(H, V, C, M) {
8429
8435
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8430
8436
  const A = H.getBoundingClientRect(), L = e2(H);
8431
8437
  let i = J(1);
@@ -8462,7 +8468,7 @@ function g5(H) {
8462
8468
  }, e = J(1);
8463
8469
  const t = J(0);
8464
8470
  if ((A || !A && M !== "fixed") && ((C1(C) !== "body" || S1(L)) && (i = w1(C)), q(C))) {
8465
- const d = Z1(C);
8471
+ const d = a1(C);
8466
8472
  e = e1(C), t.x = d.x + C.clientLeft, t.y = d.y + C.clientTop;
8467
8473
  }
8468
8474
  return {
@@ -8476,7 +8482,7 @@ function k5(H) {
8476
8482
  return Array.from(H.getClientRects());
8477
8483
  }
8478
8484
  function t2(H) {
8479
- return Z1(H1(H)).left + w1(H).scrollLeft;
8485
+ return a1(H1(H)).left + w1(H).scrollLeft;
8480
8486
  }
8481
8487
  function B5(H) {
8482
8488
  const V = H1(H), C = w1(H), M = H.ownerDocument.body, A = i1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = i1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
@@ -8505,7 +8511,7 @@ function b5(H, V) {
8505
8511
  };
8506
8512
  }
8507
8513
  function w5(H, V) {
8508
- const C = Z1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ? e1(H) : J(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, t = A * L.x, d = M * L.y;
8514
+ const C = a1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ? e1(H) : J(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, t = A * L.x, d = M * L.y;
8509
8515
  return {
8510
8516
  width: i,
8511
8517
  height: e,
@@ -8557,7 +8563,7 @@ function P5(H) {
8557
8563
  } = H;
8558
8564
  const i = [...C === "clippingAncestors" ? y5(V, this._c) : [].concat(C), M], e = i[0], t = i.reduce((d, l) => {
8559
8565
  const o = K1(V, l, A);
8560
- return d.top = i1(o.top, d.top), d.right = a1(o.right, d.right), d.bottom = a1(o.bottom, d.bottom), d.left = i1(o.left, d.left), d;
8566
+ return d.top = i1(o.top, d.top), d.right = r1(o.right, d.right), d.bottom = r1(o.bottom, d.bottom), d.left = i1(o.left, d.left), d;
8561
8567
  }, K1(V, e, A));
8562
8568
  return {
8563
8569
  width: t.right - t.left,
@@ -8570,7 +8576,7 @@ function v5(H) {
8570
8576
  return i2(H);
8571
8577
  }
8572
8578
  function T5(H, V, C) {
8573
- const M = q(V), A = H1(V), L = C === "fixed", i = Z1(H, !0, L, V);
8579
+ const M = q(V), A = H1(V), L = C === "fixed", i = a1(H, !0, L, V);
8574
8580
  let e = {
8575
8581
  scrollLeft: 0,
8576
8582
  scrollTop: 0
@@ -8578,7 +8584,7 @@ function T5(H, V, C) {
8578
8584
  const t = J(0);
8579
8585
  if (M || !M && !L)
8580
8586
  if ((C1(V) !== "body" || S1(A)) && (e = w1(V)), M) {
8581
- const d = Z1(V, !0, L, V);
8587
+ const d = a1(V, !0, L, V);
8582
8588
  t.x = d.x + V.clientLeft, t.y = d.y + V.clientTop;
8583
8589
  } else
8584
8590
  A && (t.x = t2(A));
@@ -8708,7 +8714,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8708
8714
  },
8709
8715
  emits: ["show", "hide"],
8710
8716
  setup(H, { emit: V }) {
8711
- const C = H, M = V, A = N(), L = N(), i = N();
8717
+ const C = H, M = V, A = W(), L = W(), i = W();
8712
8718
  async function e() {
8713
8719
  C.disabled || !L.value || (Z(), L.value.style.display = "block", M("show"), d());
8714
8720
  }
@@ -8865,7 +8871,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8865
8871
  },
8866
8872
  emits: ["update:modelValue"],
8867
8873
  setup(H, { emit: V }) {
8868
- const C = H, M = V, A = N({}), L = m1([]), i = N(!1), e = N("");
8874
+ const C = H, M = V, A = W({}), L = W([]), i = W(!1), e = W("");
8869
8875
  function t(u) {
8870
8876
  if (!u || typeof u == "object" || typeof u == "function" || typeof u == "symbol" || typeof u > "u" || Array.isArray(u))
8871
8877
  return !0;
@@ -8884,7 +8890,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8884
8890
  value: u,
8885
8891
  label: String(u)
8886
8892
  };
8887
- }), o = N(), n = N(), a = N();
8893
+ }), o = W(), n = W(), a = W();
8888
8894
  function Z(u, h) {
8889
8895
  var b, x, s;
8890
8896
  if (u.stopPropagation(), !C.disabled) {
@@ -8903,7 +8909,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8903
8909
  var s;
8904
8910
  if (u.stopPropagation(), x(), !h.disabled) {
8905
8911
  if (C.multiple || C.taggable) {
8906
- L.find((E) => E.value === h.value) ? L.splice(L.indexOf(h), 1) : L.push(h), e.value = "", C.searchable && ((s = n.value) == null || s.focus());
8912
+ L.value.find((E) => E.value === h.value) ? L.value.splice(L.value.indexOf(h), 1) : L.value.push(h), e.value = "", C.searchable && ((s = n.value) == null || s.focus());
8907
8913
  return;
8908
8914
  }
8909
8915
  y(u, h), C.closeOnSelect && (b(), B());
@@ -8920,8 +8926,8 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8920
8926
  if (u instanceof KeyboardEvent && u.key !== "Backspace" || e.value !== "")
8921
8927
  return;
8922
8928
  u.stopPropagation(), b();
8923
- const x = L.findIndex((s) => s.value === h.value);
8924
- L.splice(x, 1);
8929
+ const x = L.value.findIndex((s) => s.value === h.value);
8930
+ L.value.splice(x, 1);
8925
8931
  }
8926
8932
  function v(u, h) {
8927
8933
  var s;
@@ -8931,21 +8937,21 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8931
8937
  const b = e.value;
8932
8938
  if (b === "")
8933
8939
  return;
8934
- d.value.find((E) => E.label === b) || (L.push({ value: b, label: b }), e.value = "", (s = n.value) == null || s.focus());
8940
+ d.value.find((E) => E.label === b) || (L.value.push({ value: b, label: b }), e.value = "", (s = n.value) == null || s.focus());
8935
8941
  }
8936
8942
  function R(u) {
8937
- return C.multiple || C.taggable ? L.find((h) => h.value === u.value) : A.value.value === u.value;
8943
+ return C.multiple || C.taggable ? L.value.find((h) => h.value === u.value) : A.value.value === u.value;
8938
8944
  }
8939
8945
  const F = g(() => !C.searchable || A.value.label === e.value ? d.value : d.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), z = g(() => !C.searchable);
8940
8946
  function I() {
8941
- l.value ? C.multiple ? L.push(l.value) : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.splice(0, L.length));
8947
+ l.value ? C.multiple || C.taggable ? L.value = l.value : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
8942
8948
  }
8943
8949
  function O(u) {
8944
8950
  C.searchable && u(), !(C.multiple || C.taggable) && e.value === "" && (A.value = {}, M("update:modelValue", ""));
8945
8951
  }
8946
- function W(u, h) {
8952
+ function N(u, h) {
8947
8953
  if (u.stopPropagation(), h(), C.multiple || C.taggable) {
8948
- L.splice(0, L.length);
8954
+ L.value.splice(0, L.value.length);
8949
8955
  return;
8950
8956
  }
8951
8957
  A.value = {}, e.value = "", M("update:modelValue", "");
@@ -8973,7 +8979,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8973
8979
  type: "dropdown",
8974
8980
  onHide: B
8975
8981
  }, {
8976
- default: r1(({ activators: b, updatePosition: x }) => [
8982
+ default: n1(({ activators: b, updatePosition: x }) => [
8977
8983
  S("div", {
8978
8984
  ref_key: "dropdown",
8979
8985
  ref: o,
@@ -9000,13 +9006,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9000
9006
  }, null, 8, ["name"])) : c("", !0)
9001
9007
  ])
9002
9008
  ], 2)) : c("", !0),
9003
- C.taggable && L.length ? (m(), r("div", Q5, [
9009
+ C.taggable && L.value.length ? (m(), r("div", Q5, [
9004
9010
  f(u.$slots, "tags", {
9005
- options: L,
9011
+ options: L.value,
9006
9012
  removeOption: P,
9007
9013
  updatePosition: x
9008
9014
  }, () => [
9009
- (m(!0), r(L1, null, A1(L, (s, E) => (m(), _(J2, {
9015
+ (m(!0), r(L1, null, A1(L.value, (s, E) => (m(), _(J2, {
9010
9016
  key: E,
9011
9017
  "append-icon": "mdiClose",
9012
9018
  class: "r-dropdown__tags__chip",
@@ -9017,8 +9023,8 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9017
9023
  }, null, 8, ["label", "onClick:close"]))), 128))
9018
9024
  ])
9019
9025
  ])) : c("", !0),
9020
- C.multiple && L.length ? (m(), r("div", G5, [
9021
- (m(!0), r(L1, null, A1(L, (s, E) => (m(), r("p", { key: E }, w(`${s.label},`), 1))), 128))
9026
+ C.multiple && L.value.length ? (m(), r("div", G5, [
9027
+ (m(!0), r(L1, null, A1(L.value, (s, E) => (m(), r("p", { key: E }, w(`${s.label},`), 1))), 128))
9022
9028
  ])) : c("", !0),
9023
9029
  Y1(S("input", {
9024
9030
  id: C.id,
@@ -9036,7 +9042,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9036
9042
  type: "text",
9037
9043
  onInput: d1((s) => O(x), ["prevent"]),
9038
9044
  onKeydown: [
9039
- N1((s) => P(s, L[L.length - 1], x), ["backspace"]),
9045
+ N1((s) => P(s, L.value[L.value.length - 1], x), ["backspace"]),
9040
9046
  N1((s) => v(s, x), ["enter"])
9041
9047
  ]
9042
9048
  }, null, 42, $5), [
@@ -9045,8 +9051,8 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9045
9051
  C.clearable ? (m(), r("div", {
9046
9052
  key: 3,
9047
9053
  class: "r-dropdown__clearable",
9048
- "data-has-value": (e.value !== "" || L.length) && i.value,
9049
- onClick: (s) => W(s, x)
9054
+ "data-has-value": (e.value !== "" || L.value.length) && i.value,
9055
+ onClick: (s) => N(s, x)
9050
9056
  }, [
9051
9057
  K(D, {
9052
9058
  name: "mdiCloseCircle",
@@ -9069,7 +9075,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9069
9075
  ], 2)) : c("", !0)
9070
9076
  ], 10, I5)
9071
9077
  ]),
9072
- content: r1(({ hide: b, updatePosition: x }) => [
9078
+ content: n1(({ hide: b, updatePosition: x }) => [
9073
9079
  S("ul", {
9074
9080
  class: p(["r-dropdown-options", {
9075
9081
  "r-dropdown-options--active": i.value,
@@ -9345,7 +9351,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9345
9351
  },
9346
9352
  emits: ["update:modelValue"],
9347
9353
  setup(H, { emit: V }) {
9348
- const C = H, M = V, A = m1({
9354
+ const C = H, M = V, A = Z1({
9349
9355
  checked: !1
9350
9356
  }), L = g(() => ({
9351
9357
  "r-switch": !0,
@@ -9402,7 +9408,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9402
9408
  ], 2));
9403
9409
  }
9404
9410
  });
9405
- var n1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(n1 || {});
9411
+ var o1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(o1 || {});
9406
9412
  const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9407
9413
  key: 0,
9408
9414
  class: "r-tab-item__label"
@@ -9410,7 +9416,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9410
9416
  __name: "RTabItem",
9411
9417
  props: {
9412
9418
  id: {},
9413
- variant: { default: n1.DEFAULT },
9419
+ variant: { default: o1.DEFAULT },
9414
9420
  label: { default: "" },
9415
9421
  prependIcon: { default: "" },
9416
9422
  appendIcon: { default: "" },
@@ -9445,7 +9451,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9445
9451
  onClick: d[0] || (d[0] = d1((l) => i(C.id), ["stop"]))
9446
9452
  }, [
9447
9453
  f(t.$slots, "prepend", {}, () => [
9448
- C.variant !== V1(n1).TEXT && C.prependIcon ? (m(), _(D, {
9454
+ C.variant !== V1(o1).TEXT && C.prependIcon ? (m(), _(D, {
9449
9455
  key: 0,
9450
9456
  class: "r-tab-item__prepend-icon",
9451
9457
  name: C.prependIcon,
@@ -9456,13 +9462,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9456
9462
  duration: 150,
9457
9463
  name: "fade"
9458
9464
  }, {
9459
- default: r1(() => [
9460
- C.variant !== V1(n1).ICON ? (m(), r("span", O3, w(C.label), 1)) : c("", !0)
9465
+ default: n1(() => [
9466
+ C.variant !== V1(o1).ICON ? (m(), r("span", O3, w(C.label), 1)) : c("", !0)
9461
9467
  ]),
9462
9468
  _: 1
9463
9469
  }),
9464
9470
  f(t.$slots, "append", {}, () => [
9465
- C.variant !== V1(n1).TEXT && C.appendIcon ? (m(), _(D, {
9471
+ C.variant !== V1(o1).TEXT && C.appendIcon ? (m(), _(D, {
9466
9472
  key: 0,
9467
9473
  class: "r-tab-item__append-icon",
9468
9474
  name: C.appendIcon,
@@ -9483,7 +9489,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9483
9489
  },
9484
9490
  emits: ["update:modelValue", "click:icon"],
9485
9491
  setup(H, { emit: V }) {
9486
- const C = H, M = V, A = N(C.modelValue || C.tabs[0].id), L = g(() => ({
9492
+ const C = H, M = V, A = W(C.modelValue || C.tabs[0].id), L = g(() => ({
9487
9493
  "r-tabs": !0,
9488
9494
  "r-tabs--block": C.block,
9489
9495
  "r-tabs--tile": C.tile,
@@ -9543,7 +9549,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9543
9549
  },
9544
9550
  emits: ["update:modelValue"],
9545
9551
  setup(H, { emit: V }) {
9546
- const C = H, M = V, A = m1({
9552
+ const C = H, M = V, A = Z1({
9547
9553
  value: ""
9548
9554
  });
9549
9555
  function L(i) {
@@ -9620,24 +9626,24 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9620
9626
  "click:clear"
9621
9627
  ],
9622
9628
  setup(H, { emit: V }) {
9623
- const C = H, M = V, A = N(), L = m1({
9629
+ const C = H, M = V, A = W(), L = Z1({
9624
9630
  value: ""
9625
- }), i = N(C.type), e = {
9631
+ }), i = W(C.type), e = {
9626
9632
  password: "mdiLock",
9627
9633
  email: "mdiEmailOutline",
9628
9634
  tel: "mdiPhone",
9629
9635
  url: "mdiLink",
9630
9636
  number: "mdiNumeric",
9631
9637
  text: ""
9632
- }, t = N(!1), d = g(() => !!L.value), l = g(() => L.value.length > 0), o = g(() => {
9638
+ }, t = W(!1), d = g(() => !!L.value), l = g(() => L.value.length > 0), o = g(() => {
9633
9639
  var O;
9634
9640
  return (O = C.errorMsg) == null ? void 0 : O.length;
9635
9641
  }), n = g(() => C.clearable && l.value), a = g(() => {
9636
- const { disabled: O, loading: W } = C;
9642
+ const { disabled: O, loading: N } = C;
9637
9643
  return {
9638
9644
  "r-textfield": !0,
9639
9645
  "r-textfield--error": o.value,
9640
- "r-textfield--loading": W,
9646
+ "r-textfield--loading": N,
9641
9647
  "r-textfield--disabled": O,
9642
9648
  "r-textfield--clearable": n.value,
9643
9649
  "r-textfield--focus": t.value,
@@ -9652,11 +9658,11 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9652
9658
  "r-textfield__append-icon--clear": n.value,
9653
9659
  "r-textfield__append-icon--error": o.value
9654
9660
  })), k = g(() => {
9655
- const { prependIcon: O, type: W } = C;
9656
- return O === "none" ? "" : O || e[W];
9661
+ const { prependIcon: O, type: N } = C;
9662
+ return O === "none" ? "" : O || e[N];
9657
9663
  }), y = g(() => {
9658
- const { appendIcon: O, type: W } = C;
9659
- return O === "none" ? "" : o.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(W) ? "mdiClose" : W === "password" && i.value === "password" ? "mdiEyeOutline" : W === "password" && i.value === "text" ? "mdiEyeOffOutline" : O;
9664
+ const { appendIcon: O, type: N } = C;
9665
+ return O === "none" ? "" : o.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(N) ? "mdiClose" : N === "password" && i.value === "password" ? "mdiEyeOutline" : N === "password" && i.value === "text" ? "mdiEyeOffOutline" : O;
9660
9666
  });
9661
9667
  function P(O) {
9662
9668
  t.value = !0, M("focus", O);
@@ -9702,7 +9708,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9702
9708
  i.value === "number" ? +O : O
9703
9709
  );
9704
9710
  }
9705
- ), (O, W) => (m(), r("div", b3, [
9711
+ ), (O, N) => (m(), r("div", b3, [
9706
9712
  C.label ? (m(), _(r2, {
9707
9713
  key: 0,
9708
9714
  id: `${C.id}-label`,
@@ -9776,7 +9782,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9776
9782
  class: "r-breadcrumb__link",
9777
9783
  to: L.to
9778
9784
  }, {
9779
- default: r1(() => [
9785
+ default: n1(() => [
9780
9786
  f(C.$slots, "item-icon", {}, () => [
9781
9787
  L.icon ? (m(), _(D, {
9782
9788
  key: 0,
@@ -9841,7 +9847,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9841
9847
  },
9842
9848
  emits: ["update:page", "update:perPage", "update:info"],
9843
9849
  setup(H, { emit: V }) {
9844
- const C = H, M = V, A = N(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), i = g(() => ({
9850
+ const C = H, M = V, A = W(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), i = g(() => ({
9845
9851
  start: C.page * C.perPage - C.perPage,
9846
9852
  end: C.page * C.perPage
9847
9853
  }));
@@ -9986,7 +9992,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9986
9992
  },
9987
9993
  emits: ["update:modelValue"],
9988
9994
  setup(H, { emit: V }) {
9989
- const C = H, M = V, A = N(C.as ?? "div"), L = N(C.modelValue), i = g(() => C.selectedClass);
9995
+ const C = H, M = V, A = W(C.as ?? "div"), L = W(C.modelValue), i = g(() => C.selectedClass);
9990
9996
  s1(`${O1}:selectedClass`, i.value);
9991
9997
  function e(l) {
9992
9998
  return L.value.includes(l);
@@ -10002,7 +10008,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
10002
10008
  return s1(`${O1}:isDisabled`, d), G(() => C.modelValue, () => {
10003
10009
  L.value = C.modelValue;
10004
10010
  }), (l, o) => (m(), _(g2(A.value), null, {
10005
- default: r1(() => [
10011
+ default: n1(() => [
10006
10012
  f(l.$slots, "default", {
10007
10013
  isSelected: e,
10008
10014
  select: t,