@rocketui/vue 0.2.39-alpha.1 → 0.2.39-alpha.3

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 u, createElementVNode as S, unref as V1, reactive as a1, Fragment as i1, renderList as l1, normalizeClass as c, renderSlot as O, toDisplayString as w, createVNode as K, computed as f, createCommentVNode as h, mergeProps as j1, createBlock as _, watch as Q, getCurrentScope as Z2, onScopeDispose as u2, ref as W, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as f1, withDirectives as Y1, withModifiers as o1, withKeys as N1, vModelText as c2, createTextVNode as Z1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, resolveComponent as f2, provide as s1, resolveDynamicComponent as h2, inject as c1 } from "vue";
1
+ import { defineComponent as F, openBlock as m, createElementBlock as u, createElementVNode as S, unref as V1, reactive as a1, Fragment as i1, renderList as o1, normalizeClass as c, renderSlot as O, toDisplayString as w, createVNode as K, computed as f, createCommentVNode as h, mergeProps as j1, createBlock as _, watch as Q, getCurrentScope as Z2, onScopeDispose as u2, ref as W, watchEffect as S2, onMounted as X1, withModifiers as e1, Teleport as s2, withCtx as f1, withDirectives as Y1, withKeys as N1, vModelText as c2, createTextVNode as Z1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, resolveComponent as f2, provide as s1, resolveDynamicComponent as h2, inject as c1 } from "vue";
2
2
  const g2 = {
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",
@@ -7335,7 +7335,7 @@ const g2 = {
7335
7335
  C[i].open = i === A ? !C[i].open : !1;
7336
7336
  });
7337
7337
  }
7338
- return (A, L) => (m(!0), u(i1, null, l1(C, (i, e) => (m(), u("div", {
7338
+ return (A, L) => (m(!0), u(i1, null, o1(C, (i, e) => (m(), u("div", {
7339
7339
  key: e,
7340
7340
  class: c(["r-accordion", {
7341
7341
  "r-accordion--disabled": i.disabled
@@ -7745,7 +7745,7 @@ function V5() {
7745
7745
  var H;
7746
7746
  return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7747
7747
  }
7748
- function t1(H) {
7748
+ function m1(H) {
7749
7749
  var V;
7750
7750
  const C = J1(H);
7751
7751
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
@@ -7759,7 +7759,7 @@ function P1(...H) {
7759
7759
  const L = [], i = () => {
7760
7760
  L.forEach((n) => n()), L.length = 0;
7761
7761
  }, e = (n, Z, o, l) => (n.addEventListener(Z, o, l), () => n.removeEventListener(Z, o, l)), d = Q(
7762
- () => [t1(V), J1(A)],
7762
+ () => [m1(V), J1(A)],
7763
7763
  ([n, Z]) => {
7764
7764
  if (i(), !n)
7765
7765
  return;
@@ -7785,12 +7785,12 @@ function L5(H, V, C = {}) {
7785
7785
  if (typeof l == "string")
7786
7786
  return Array.from(M.document.querySelectorAll(l)).some((r) => r === o.target || o.composedPath().includes(r));
7787
7787
  {
7788
- const r = t1(l);
7788
+ const r = m1(l);
7789
7789
  return r && (o.target === r || o.composedPath().includes(r));
7790
7790
  }
7791
7791
  }), n = [
7792
7792
  P1(M, "click", (o) => {
7793
- const l = t1(H);
7793
+ const l = m1(H);
7794
7794
  if (!(!l || l === o.target || o.composedPath().includes(l))) {
7795
7795
  if (o.detail === 0 && (e = !d(o)), !e) {
7796
7796
  e = !0;
@@ -7800,13 +7800,13 @@ function L5(H, V, C = {}) {
7800
7800
  }
7801
7801
  }, { passive: !0, capture: L }),
7802
7802
  P1(M, "pointerdown", (o) => {
7803
- const l = t1(H);
7803
+ const l = m1(H);
7804
7804
  e = !d(o) && !!(l && !o.composedPath().includes(l));
7805
7805
  }, { passive: !0 }),
7806
7806
  i && P1(M, "blur", (o) => {
7807
7807
  setTimeout(() => {
7808
7808
  var l;
7809
- const r = t1(H);
7809
+ const r = m1(H);
7810
7810
  ((l = M.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(r != null && r.contains(M.document.activeElement)) && V(o);
7811
7811
  }, 0);
7812
7812
  })
@@ -7828,7 +7828,7 @@ const M5 = ["top", "right", "bottom", "left"], n1 = Math.min, M1 = Math.max, h1
7828
7828
  function T1(H, V, C) {
7829
7829
  return M1(H, n1(V, C));
7830
7830
  }
7831
- function d1(H, V) {
7831
+ function t1(H, V) {
7832
7832
  return typeof H == "function" ? H(V) : H;
7833
7833
  }
7834
7834
  function L1(H) {
@@ -8037,7 +8037,7 @@ async function B1(H, V) {
8037
8037
  elementContext: Z = "floating",
8038
8038
  altBoundary: o = !1,
8039
8039
  padding: l = 0
8040
- } = d1(V, H), r = L2(l), B = e[o ? Z === "floating" ? "reference" : "floating" : Z], y = k1(await L.getClippingRect({
8040
+ } = t1(V, H), r = L2(l), B = e[o ? Z === "floating" ? "reference" : "floating" : Z], y = k1(await L.getClippingRect({
8041
8041
  element: (C = await (L.isElement == null ? void 0 : L.isElement(B))) == null || C ? B : B.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8042
8042
  boundary: t,
8043
8043
  rootBoundary: n,
@@ -8079,7 +8079,7 @@ const n5 = (H) => ({
8079
8079
  } = V, {
8080
8080
  element: t,
8081
8081
  padding: n = 0
8082
- } = d1(H, V) || {};
8082
+ } = t1(H, V) || {};
8083
8083
  if (t == null)
8084
8084
  return {};
8085
8085
  const Z = L2(n), o = {
@@ -8122,7 +8122,7 @@ const n5 = (H) => ({
8122
8122
  fallbackAxisSideDirection: r = "none",
8123
8123
  flipAlignment: k = !0,
8124
8124
  ...B
8125
- } = d1(H, V);
8125
+ } = t1(H, V);
8126
8126
  if ((C = L.arrow) != null && C.alignmentOffset)
8127
8127
  return {};
8128
8128
  const y = L1(A), P = L1(e) === e, v = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), T = o || (P || !k ? [g1(e)] : d5(e));
@@ -8194,7 +8194,7 @@ const a5 = function(H) {
8194
8194
  } = V, {
8195
8195
  strategy: M = "referenceHidden",
8196
8196
  ...A
8197
- } = d1(H, V);
8197
+ } = t1(H, V);
8198
8198
  switch (M) {
8199
8199
  case "referenceHidden": {
8200
8200
  const L = await B1(V, {
@@ -8231,7 +8231,7 @@ async function Z5(H, V) {
8231
8231
  placement: C,
8232
8232
  platform: M,
8233
8233
  elements: A
8234
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = b1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, n = L && d ? -1 : 1, Z = d1(V, H);
8234
+ } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = b1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, n = L && d ? -1 : 1, Z = t1(V, H);
8235
8235
  let {
8236
8236
  mainAxis: o,
8237
8237
  crossAxis: l,
@@ -8295,7 +8295,7 @@ const u5 = function(H) {
8295
8295
  }
8296
8296
  },
8297
8297
  ...d
8298
- } = d1(H, V), t = {
8298
+ } = t1(H, V), t = {
8299
8299
  x: C,
8300
8300
  y: M
8301
8301
  }, n = await B1(V, d), Z = b1(L1(A)), o = V2(Z);
@@ -8363,11 +8363,11 @@ function _1(H) {
8363
8363
  return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
8364
8364
  }
8365
8365
  function c5(H) {
8366
- let V = e1(H);
8366
+ let V = d1(H);
8367
8367
  for (; q(V) && !w1(V); ) {
8368
8368
  if (_1(V))
8369
8369
  return V;
8370
- V = e1(V);
8370
+ V = d1(V);
8371
8371
  }
8372
8372
  return null;
8373
8373
  }
@@ -8389,7 +8389,7 @@ function y1(H) {
8389
8389
  scrollTop: H.pageYOffset
8390
8390
  };
8391
8391
  }
8392
- function e1(H) {
8392
+ function d1(H) {
8393
8393
  if (C1(H) === "html")
8394
8394
  return H;
8395
8395
  const V = (
@@ -8402,7 +8402,7 @@ function e1(H) {
8402
8402
  return z1(V) ? V.host : V;
8403
8403
  }
8404
8404
  function A2(H) {
8405
- const V = e1(H);
8405
+ const V = d1(H);
8406
8406
  return w1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
8407
8407
  }
8408
8408
  function R1(H, V, C) {
@@ -8557,7 +8557,7 @@ function K1(H, V, C) {
8557
8557
  return k1(M);
8558
8558
  }
8559
8559
  function m2(H, V) {
8560
- const C = e1(H);
8560
+ const C = d1(H);
8561
8561
  return C === V || !Y(C) || w1(C) ? !1 : z(C).position === "fixed" || m2(C, V);
8562
8562
  }
8563
8563
  function b5(H, V) {
@@ -8566,10 +8566,10 @@ function b5(H, V) {
8566
8566
  return C;
8567
8567
  let M = R1(H, [], !1).filter((e) => Y(e) && C1(e) !== "body"), A = null;
8568
8568
  const L = z(H).position === "fixed";
8569
- let i = L ? e1(H) : H;
8569
+ let i = L ? d1(H) : H;
8570
8570
  for (; Y(i) && !w1(i); ) {
8571
8571
  const e = z(i), d = _1(i);
8572
- !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((n) => n !== i) : A = e, i = e1(i);
8572
+ !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((n) => n !== i) : A = e, i = d1(i);
8573
8573
  }
8574
8574
  return V.set(H, M), M;
8575
8575
  }
@@ -8710,7 +8710,7 @@ async function x5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
8710
8710
  }
8711
8711
  });
8712
8712
  }
8713
- const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
8713
+ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
8714
8714
  __name: "RTooltip",
8715
8715
  props: {
8716
8716
  placement: { default: o2.Top },
@@ -8793,7 +8793,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
8793
8793
  ref: A,
8794
8794
  "aria-disabled": C.disabled,
8795
8795
  class: c(["r-tooltip-trigger", B.triggerClass]),
8796
- onClick: n,
8796
+ onClick: e1(n, ["self"]),
8797
8797
  onMouseenter: Z,
8798
8798
  onMouseleave: o,
8799
8799
  onMousemove: l
@@ -8909,7 +8909,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
8909
8909
  }), Z = W(), o = W(), l = W();
8910
8910
  function r(a, g, b) {
8911
8911
  var x, s, D;
8912
- if (a.stopImmediatePropagation(), !C.disabled) {
8912
+ if (a.stopPropagation(), !C.disabled) {
8913
8913
  if (i.value = !0, b(), g && g(), i.value) {
8914
8914
  (x = Z.value) == null || x.classList.add("r-dropdown--active"), (s = Z.value) == null || s.focus(), (D = o.value) == null || D.focus();
8915
8915
  return;
@@ -9030,7 +9030,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
9030
9030
  ])
9031
9031
  ], 2)) : h("", !0),
9032
9032
  S("div", N5, [
9033
- (m(!0), u(i1, null, l1(L.value, (s, D) => O(a.$slots, "selection", {
9033
+ (m(!0), u(i1, null, o1(L.value, (s, D) => O(a.$slots, "selection", {
9034
9034
  key: D,
9035
9035
  index: D,
9036
9036
  option: s,
@@ -9060,7 +9060,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
9060
9060
  readonly: G.value,
9061
9061
  role: "presentation",
9062
9062
  type: "text",
9063
- onInput: o1((s) => p(x), ["prevent"]),
9063
+ onInput: e1((s) => p(x), ["prevent"]),
9064
9064
  onKeydown: [
9065
9065
  N1((s) => P(s, L.value[L.value.length - 1], x), ["backspace"]),
9066
9066
  N1((s) => v(s, x), ["enter"])
@@ -9110,14 +9110,14 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
9110
9110
  [C.optionsClass]: C.optionsClass
9111
9111
  }])
9112
9112
  }, [
9113
- (m(!0), u(i1, null, l1(R.value, (s) => (m(), u("li", {
9113
+ (m(!0), u(i1, null, o1(R.value, (s) => (m(), u("li", {
9114
9114
  key: s.value,
9115
9115
  "aria-disabled": s.disabled,
9116
9116
  class: c(["r-dropdown-options__option", {
9117
9117
  "r-dropdown-options__option--active": T(s),
9118
9118
  "r-dropdown-options__option--disabled": s.disabled
9119
9119
  }]),
9120
- onClick: o1((D) => B(D, s, b, x), ["prevent"])
9120
+ onClick: e1((D) => B(D, s, b, x), ["prevent"])
9121
9121
  }, [
9122
9122
  O(a.$slots, "option", {
9123
9123
  disabled: s.disabled,
@@ -9234,7 +9234,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
9234
9234
  e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9235
9235
  }), (e, d) => Y1((m(), u("div", {
9236
9236
  class: c(["r-modal-overlay", e.overlayClass]),
9237
- onClick: o1(i, ["stop"])
9237
+ onClick: e1(i, ["stop"])
9238
9238
  }, [
9239
9239
  S("div", {
9240
9240
  "aria-modal": "true",
@@ -9358,7 +9358,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
9358
9358
  C.closable ? (m(), u("div", {
9359
9359
  key: 0,
9360
9360
  class: "r-snackbar__close",
9361
- onClick: e[0] || (e[0] = o1((d) => i.$emit("update:modelValue", !1), ["stop"]))
9361
+ onClick: e[0] || (e[0] = e1((d) => i.$emit("update:modelValue", !1), ["stop"]))
9362
9362
  }, [
9363
9363
  O(i.$slots, "close", {}, () => [
9364
9364
  K(E, {
@@ -9450,12 +9450,12 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
9450
9450
  ], 2));
9451
9451
  }
9452
9452
  });
9453
- var m1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(m1 || {});
9453
+ var l1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(l1 || {});
9454
9454
  const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 = /* @__PURE__ */ F({
9455
9455
  __name: "RTabItem",
9456
9456
  props: {
9457
9457
  id: {},
9458
- variant: { default: m1.DEFAULT },
9458
+ variant: { default: l1.DEFAULT },
9459
9459
  label: { default: "" },
9460
9460
  prependIcon: { default: "" },
9461
9461
  appendIcon: { default: "" },
@@ -9484,20 +9484,20 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
9484
9484
  class: c(A.value),
9485
9485
  disabled: C.disabled,
9486
9486
  style: x1(L.value),
9487
- onClick: t[0] || (t[0] = o1((n) => e(C.id), ["stop"]))
9487
+ onClick: t[0] || (t[0] = e1((n) => e(C.id), ["stop"]))
9488
9488
  }, [
9489
9489
  O(d.$slots, "prepend", {
9490
9490
  active: i.value,
9491
9491
  disabled: C.disabled
9492
9492
  }, () => [
9493
- C.variant !== V1(m1).TEXT && C.prependIcon ? (m(), _(E, {
9493
+ C.variant !== V1(l1).TEXT && C.prependIcon ? (m(), _(E, {
9494
9494
  key: 0,
9495
9495
  class: "r-tab-item__prepend-icon",
9496
9496
  name: C.prependIcon,
9497
9497
  size: 16
9498
9498
  }, null, 8, ["name"])) : h("", !0)
9499
9499
  ]),
9500
- C.variant !== V1(m1).ICON ? (m(), u("span", S3, [
9500
+ C.variant !== V1(l1).ICON ? (m(), u("span", S3, [
9501
9501
  O(d.$slots, "default", {
9502
9502
  label: C.label
9503
9503
  }, () => [
@@ -9508,7 +9508,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
9508
9508
  active: i.value,
9509
9509
  disabled: C.disabled
9510
9510
  }, () => [
9511
- C.variant !== V1(m1).TEXT && C.appendIcon ? (m(), _(E, {
9511
+ C.variant !== V1(l1).TEXT && C.appendIcon ? (m(), _(E, {
9512
9512
  key: 0,
9513
9513
  class: "r-tab-item__append-icon",
9514
9514
  name: C.appendIcon,
@@ -9556,7 +9556,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
9556
9556
  }]])
9557
9557
  }, [
9558
9558
  O(i.$slots, "default", { activeTab: A.value }, () => [
9559
- (m(!0), u(i1, null, l1(C.tabs, (d, t) => (m(), _(s3, {
9559
+ (m(!0), u(i1, null, o1(C.tabs, (d, t) => (m(), _(s3, {
9560
9560
  id: d.id,
9561
9561
  key: t,
9562
9562
  modelValue: A.value,
@@ -9832,7 +9832,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
9832
9832
  return (C, M) => {
9833
9833
  const A = f2("router-link");
9834
9834
  return m(), u("div", P3, [
9835
- (m(!0), u(i1, null, l1(V.items, (L, i) => (m(), u("div", {
9835
+ (m(!0), u(i1, null, o1(V.items, (L, i) => (m(), u("div", {
9836
9836
  key: i,
9837
9837
  class: "r-breadcrumb__item"
9838
9838
  }, [