@rocketui/vue 0.0.73 → 0.0.75

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 F, openBlock as m, createElementBlock as a, createElementVNode as u, unref as p, reactive as J, Fragment as z, renderList as q, normalizeClass as g, renderSlot as b, toDisplayString as y, createVNode as $, computed as k, createCommentVNode as B, mergeProps as L2, createBlock as R, watch as W, getCurrentScope as M2, onScopeDispose as A2, ref as D, watchEffect as i2, onMounted as _1, Teleport as e2, withCtx as d1, withModifiers as X, withDirectives as W1, withKeys as B1, vModelText as d2, createTextVNode as N1, normalizeStyle as h1, vShow as t2, resolveComponent as m2, provide as Z1, resolveDynamicComponent as l2, inject as u1 } from "vue";
1
+ import { defineComponent as F, openBlock as m, createElementBlock as a, createElementVNode as u, unref as p, reactive as X, Fragment as z, renderList as q, normalizeClass as g, renderSlot as b, toDisplayString as y, createVNode as $, computed as k, createCommentVNode as B, mergeProps as L2, createBlock as R, watch as W, getCurrentScope as M2, onScopeDispose as A2, ref as D, watchEffect as i2, onMounted as _1, Teleport as e2, withCtx as d1, withDirectives as W1, withKeys as B1, vModelText as d2, withModifiers as L1, createTextVNode as N1, normalizeStyle as h1, vShow as t2, resolveComponent as m2, provide as Z1, resolveDynamicComponent as l2, inject as u1 } from "vue";
2
2
  const o2 = {
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",
@@ -7323,7 +7323,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7323
7323
  accordions: null
7324
7324
  },
7325
7325
  setup(H) {
7326
- const V = H, C = J(
7326
+ const V = H, C = X(
7327
7327
  V.accordions.map(({ title: M, content: A }, i) => ({
7328
7328
  title: M,
7329
7329
  content: A,
@@ -7576,7 +7576,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
7576
7576
  },
7577
7577
  emits: ["update:modelValue"],
7578
7578
  setup(H, { emit: V }) {
7579
- const C = H, L = J({
7579
+ const C = H, L = X({
7580
7580
  checked: !1,
7581
7581
  indeterminate: !1
7582
7582
  }), M = {
@@ -7709,7 +7709,7 @@ function Q2() {
7709
7709
  var H;
7710
7710
  return Q1 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7711
7711
  }
7712
- function H1(H) {
7712
+ function C1(H) {
7713
7713
  var V;
7714
7714
  const C = I1(H);
7715
7715
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
@@ -7723,7 +7723,7 @@ function S1(...H) {
7723
7723
  const A = [], i = () => {
7724
7724
  A.forEach((o) => o()), A.length = 0;
7725
7725
  }, e = (o, t, r, n) => (o.addEventListener(t, r, n), () => o.removeEventListener(t, r, n)), d = W(
7726
- () => [H1(V), I1(M)],
7726
+ () => [C1(V), I1(M)],
7727
7727
  ([o, t]) => {
7728
7728
  if (i(), !o)
7729
7729
  return;
@@ -7749,12 +7749,12 @@ function G2(H, V, C = {}) {
7749
7749
  if (typeof n == "string")
7750
7750
  return Array.from(L.document.querySelectorAll(n)).some((Z) => Z === r.target || r.composedPath().includes(Z));
7751
7751
  {
7752
- const Z = H1(n);
7752
+ const Z = C1(n);
7753
7753
  return Z && (r.target === Z || r.composedPath().includes(Z));
7754
7754
  }
7755
7755
  }), o = [
7756
7756
  S1(L, "click", (r) => {
7757
- const n = H1(H);
7757
+ const n = C1(H);
7758
7758
  if (!(!n || n === r.target || r.composedPath().includes(n))) {
7759
7759
  if (r.detail === 0 && (e = !d(r)), !e) {
7760
7760
  e = !0;
@@ -7764,13 +7764,13 @@ function G2(H, V, C = {}) {
7764
7764
  }
7765
7765
  }, { passive: !0, capture: A }),
7766
7766
  S1(L, "pointerdown", (r) => {
7767
- const n = H1(H);
7767
+ const n = C1(H);
7768
7768
  n && (e = !r.composedPath().includes(n) && !d(r));
7769
7769
  }, { passive: !0 }),
7770
7770
  i && S1(L, "blur", (r) => {
7771
7771
  setTimeout(() => {
7772
7772
  var n;
7773
- const Z = H1(H);
7773
+ const Z = C1(H);
7774
7774
  ((n = L.document.activeElement) == null ? void 0 : n.tagName) === "IFRAME" && !(Z != null && Z.contains(L.document.activeElement)) && V(r);
7775
7775
  }, 0);
7776
7776
  })
@@ -7891,7 +7891,7 @@ const X2 = function(H) {
7891
7891
  switch (r) {
7892
7892
  case "bestFit": {
7893
7893
  var S;
7894
- const k1 = (S = s.map((e1) => [e1, e1.overflows.filter((C1) => C1 > 0).reduce((C1, V2) => C1 + V2, 0)]).sort((e1, C1) => e1[1] - C1[1])[0]) == null ? void 0 : S[0].placement;
7894
+ const k1 = (S = s.map((e1) => [e1, e1.overflows.filter((J) => J > 0).reduce((J, V2) => J + V2, 0)]).sort((e1, J) => e1[1] - J[1])[0]) == null ? void 0 : S[0].placement;
7895
7895
  k1 && (_ = k1);
7896
7896
  break;
7897
7897
  }
@@ -8010,7 +8010,7 @@ function j1() {
8010
8010
  function g1(H) {
8011
8011
  return ["html", "body", "#document"].includes(K(H));
8012
8012
  }
8013
- const R1 = Math.min, L1 = Math.max, o1 = Math.round;
8013
+ const R1 = Math.min, V1 = Math.max, o1 = Math.round;
8014
8014
  function j(H, V, C) {
8015
8015
  var L, M, A, i;
8016
8016
  V === void 0 && (V = !1), C === void 0 && (C = !1);
@@ -8094,10 +8094,10 @@ function E1(H, V, C) {
8094
8094
  return { top: i, left: e, x: e, y: i, right: e + L.clientWidth, bottom: i + L.clientHeight, width: L.clientWidth, height: L.clientHeight };
8095
8095
  }(V, C) : t1(function(L) {
8096
8096
  var M;
8097
- const A = U(L), i = a1(L), e = (M = L.ownerDocument) == null ? void 0 : M.body, d = L1(A.scrollWidth, A.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = L1(A.scrollHeight, A.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
8097
+ const A = U(L), i = a1(L), e = (M = L.ownerDocument) == null ? void 0 : M.body, d = V1(A.scrollWidth, A.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = V1(A.scrollHeight, A.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
8098
8098
  let o = -i.scrollLeft + q1(L);
8099
8099
  const t = -i.scrollTop;
8100
- return I(e || A).direction === "rtl" && (o += L1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y: t };
8100
+ return I(e || A).direction === "rtl" && (o += V1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y: t };
8101
8101
  }(U(H)));
8102
8102
  }
8103
8103
  const A5 = { getClippingRect: function(H) {
@@ -8113,7 +8113,7 @@ const A5 = { getClippingRect: function(H) {
8113
8113
  return o;
8114
8114
  }(V) : [].concat(C), i = [...A, L], e = i[0], d = i.reduce((l, o) => {
8115
8115
  const t = E1(V, o, M);
8116
- return l.top = L1(t.top, l.top), l.right = R1(t.right, l.right), l.bottom = R1(t.bottom, l.bottom), l.left = L1(t.left, l.left), l;
8116
+ return l.top = V1(t.top, l.top), l.right = R1(t.right, l.right), l.bottom = R1(t.bottom, l.bottom), l.left = V1(t.left, l.left), l;
8117
8117
  }, E1(V, e, M));
8118
8118
  return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
8119
8119
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
@@ -8331,11 +8331,11 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8331
8331
  },
8332
8332
  emits: ["update:modelValue"],
8333
8333
  setup(H, { emit: V }) {
8334
- const C = H, L = D({ value: "", label: "" }), M = J([]), A = D(!1), i = D(""), e = D(), d = D(), l = D();
8334
+ const C = H, L = D({ value: "", label: "" }), M = X([]), A = D(!1), i = D(""), e = D(), d = D(), l = D();
8335
8335
  function o(c, s) {
8336
8336
  var w, O, S;
8337
- if (!C.disabled) {
8338
- if (c.stopPropagation(), s && s(), A.value = !A.value, A.value) {
8337
+ if (c.stopPropagation(), !C.disabled) {
8338
+ if (A.value = !A.value, s && s(), A.value) {
8339
8339
  (w = e.value) == null || w.classList.add("r-dropdown--active"), (O = e.value) == null || O.focus(), C.searchable && ((S = d.value) == null || S.focus());
8340
8340
  return;
8341
8341
  }
@@ -8350,7 +8350,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8350
8350
  var O;
8351
8351
  if (c.stopPropagation(), !s.disabled) {
8352
8352
  if (C.multiple || C.taggable) {
8353
- c.stopPropagation(), M.find((S) => S.value === s.value) ? M.splice(M.indexOf(s), 1) : M.push(s), i.value = "", C.searchable && ((O = d.value) == null || O.focus());
8353
+ M.find((S) => S.value === s.value) ? M.splice(M.indexOf(s), 1) : M.push(s), i.value = "", C.searchable && ((O = d.value) == null || O.focus());
8354
8354
  return;
8355
8355
  }
8356
8356
  n(c, s), C.closeOnSelect && (w(), t());
@@ -8413,7 +8413,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8413
8413
  "r-dropdown--loading": C.loading
8414
8414
  }]),
8415
8415
  role: "select",
8416
- onClick: X((O) => o(O, w.click), ["stop"])
8416
+ onClick: (O) => o(O, w.click)
8417
8417
  }, [
8418
8418
  C.prependIcon || c.$slots.prepend ? (m(), a("div", {
8419
8419
  key: 0,
@@ -8488,7 +8488,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8488
8488
  "r-dropdown-options__option--active": f(O),
8489
8489
  "r-dropdown-options__option--disabled": O.disabled
8490
8490
  }]),
8491
- onClick: X((S) => r(S, O, w), ["prevent"])
8491
+ onClick: L1((S) => r(S, O, w), ["prevent"])
8492
8492
  }, [
8493
8493
  u("div", a5, [
8494
8494
  O.prependIcon ? (m(), R(x, {
@@ -8575,7 +8575,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8575
8575
  };
8576
8576
  return (i, e) => W1((m(), a("div", {
8577
8577
  class: g(["r-modal-overlay", H.overlayClass]),
8578
- onClick: X(A, ["stop"])
8578
+ onClick: L1(A, ["stop"])
8579
8579
  }, [
8580
8580
  u("div", {
8581
8581
  "aria-modal": "true",
@@ -8699,7 +8699,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8699
8699
  $(x, {
8700
8700
  name: "mdiClose",
8701
8701
  size: 16,
8702
- onClick: i[0] || (i[0] = X((e) => A.$emit("update:modelValue", !1), ["stop"]))
8702
+ onClick: i[0] || (i[0] = L1((e) => A.$emit("update:modelValue", !1), ["stop"]))
8703
8703
  })
8704
8704
  ])
8705
8705
  ])) : B("", !0)
@@ -8724,7 +8724,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8724
8724
  },
8725
8725
  emits: ["update:modelValue"],
8726
8726
  setup(H, { emit: V }) {
8727
- const C = H, L = J({
8727
+ const C = H, L = X({
8728
8728
  checked: !1
8729
8729
  }), M = k(() => ({
8730
8730
  "r-switch": !0,
@@ -8773,7 +8773,7 @@ const e5 = ["aria-disabled"], d5 = ["innerHTML"], t5 = /* @__PURE__ */ F({
8773
8773
  ]));
8774
8774
  }
8775
8775
  });
8776
- var V1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(V1 || {});
8776
+ var H1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(H1 || {});
8777
8777
  const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8778
8778
  key: 0,
8779
8779
  class: "r-tab-item__label"
@@ -8781,7 +8781,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8781
8781
  __name: "RTabItem",
8782
8782
  props: {
8783
8783
  id: null,
8784
- variant: { default: V1.DEFAULT },
8784
+ variant: { default: H1.DEFAULT },
8785
8785
  label: { default: "" },
8786
8786
  prependIcon: { default: "" },
8787
8787
  appendIcon: { default: "" },
@@ -8813,24 +8813,24 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8813
8813
  class: g(p(L)),
8814
8814
  disabled: C.disabled,
8815
8815
  style: h1(p(M)),
8816
- onClick: d[0] || (d[0] = X((l) => A(C.id), ["stop"]))
8816
+ onClick: d[0] || (d[0] = L1((l) => A(C.id), ["stop"]))
8817
8817
  }, [
8818
8818
  b(e.$slots, "prepend", {}, () => [
8819
- C.variant !== p(V1).TEXT && C.prependIcon ? (m(), R(x, {
8819
+ C.variant !== p(H1).TEXT && C.prependIcon ? (m(), R(x, {
8820
8820
  key: 0,
8821
8821
  class: "r-tab-item__prepend-icon",
8822
8822
  name: C.prependIcon,
8823
8823
  size: 16
8824
8824
  }, null, 8, ["name"])) : B("", !0)
8825
8825
  ]),
8826
- C.variant !== p(V1).ICON ? (m(), a("span", _5, y(C.label), 1)) : B("", !0),
8826
+ C.variant !== p(H1).ICON ? (m(), a("span", _5, y(C.label), 1)) : B("", !0),
8827
8827
  b(e.$slots, "append", {}, () => [
8828
- C.variant !== p(V1).TEXT && C.appendIcon ? (m(), R(x, {
8828
+ C.variant !== p(H1).TEXT && C.appendIcon ? (m(), R(x, {
8829
8829
  key: 0,
8830
8830
  class: "r-tab-item__append-icon",
8831
8831
  name: C.appendIcon,
8832
8832
  size: 16,
8833
- onClick: X(i, ["stop"])
8833
+ onClick: L1(i, ["stop"])
8834
8834
  }, null, 8, ["name", "onClick"])) : B("", !0)
8835
8835
  ])
8836
8836
  ], 14, E5));
@@ -8902,7 +8902,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8902
8902
  },
8903
8903
  emits: ["update:modelValue"],
8904
8904
  setup(H, { emit: V }) {
8905
- const C = H, L = J({
8905
+ const C = H, L = X({
8906
8906
  value: ""
8907
8907
  });
8908
8908
  function M(A) {
@@ -8971,7 +8971,7 @@ const E5 = ["aria-disabled", "aria-selected", "disabled"], _5 = {
8971
8971
  "click:clear"
8972
8972
  ],
8973
8973
  setup(H, { emit: V }) {
8974
- const C = H, L = D(), M = J({
8974
+ const C = H, L = D(), M = X({
8975
8975
  value: ""
8976
8976
  }), A = D(C.type), i = {
8977
8977
  password: "mdiLock",