@rocketui/vue 0.2.3 → 0.2.5

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 T, openBlock as m, createElementBlock as n, createElementVNode as u, unref as M1, reactive as m1, Fragment as V1, 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 $, getCurrentScope as u2, onScopeDispose as S2, ref as N, watchEffect as X1, onMounted as Y1, Teleport as s2, withCtx as r1, withDirectives as J1, 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 k1, resolveDynamicComponent as g2, inject as B1 } from "vue";
1
+ import { defineComponent as T, openBlock as m, createElementBlock as n, createElementVNode as u, unref as M1, reactive as m1, Fragment as V1, 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 u2, onScopeDispose as S2, ref as N, watchEffect as X1, onMounted as Y1, Teleport as s2, withCtx as r1, withDirectives as J1, 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 k1, resolveDynamicComponent as g2, inject as B1 } 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",
@@ -7596,7 +7596,7 @@ const k2 = {
7596
7596
  function t(d) {
7597
7597
  C.disabled || (A.checked = d.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
7598
7598
  }
7599
- return $(
7599
+ return G(
7600
7600
  () => C.indeterminate,
7601
7601
  (d) => {
7602
7602
  A.indeterminate = d, d === !0 && (A.checked = !1, M("update:modelValue", A.checked));
@@ -7606,7 +7606,7 @@ const k2 = {
7606
7606
  // TODO: find a better way to do this
7607
7607
  immediate: !0
7608
7608
  }
7609
- ), $(
7609
+ ), G(
7610
7610
  () => C.modelValue,
7611
7611
  (d) => {
7612
7612
  A.checked = d;
@@ -7733,7 +7733,7 @@ function b1(...H) {
7733
7733
  Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
7734
7734
  const L = [], i = () => {
7735
7735
  L.forEach((l) => l()), L.length = 0;
7736
- }, e = (l, o, a, r) => (l.addEventListener(o, a, r), () => l.removeEventListener(o, a, r)), t = $(
7736
+ }, e = (l, o, a, r) => (l.addEventListener(o, a, r), () => l.removeEventListener(o, a, r)), t = G(
7737
7737
  () => [o1(V), C2(A)],
7738
7738
  ([l, o]) => {
7739
7739
  if (i(), !l)
@@ -8063,17 +8063,17 @@ const a5 = (H) => ({
8063
8063
  }, r = _1(A), Z = D1(r), B = await i.getDimensions(d), k = r === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", R = L.reference[Z] + L.reference[r] - a[r] - L.floating[Z], F = a[r] - L.reference[r], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
8064
8064
  let I = z ? z[v] : 0;
8065
8065
  (!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, S = a1(o[y], W), h = a1(o[P], W), b = S, x = I - B[Z] - h, s = I / 2 - B[Z] / 2 + O, E = v1(b, s, x), G = !t.arrow && u1(A) != null && s != E && L.reference[Z] / 2 - (s < b ? S : h) - B[Z] / 2 < 0, j = G ? s < b ? s - b : s - x : 0;
8066
+ const O = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, S = a1(o[y], W), h = a1(o[P], W), b = S, 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 ? S : h) - B[Z] / 2 < 0, j = $ ? s < b ? s - b : s - x : 0;
8067
8067
  return {
8068
8068
  [r]: a[r] + j,
8069
8069
  data: {
8070
8070
  [r]: E,
8071
8071
  centerOffset: s - E - j,
8072
- ...G && {
8072
+ ...$ && {
8073
8073
  alignmentOffset: j
8074
8074
  }
8075
8075
  },
8076
- reset: G
8076
+ reset: $
8077
8077
  };
8078
8078
  }
8079
8079
  }), Z5 = function(H) {
@@ -8124,12 +8124,12 @@ const a5 = (H) => ({
8124
8124
  placement: x
8125
8125
  }
8126
8126
  };
8127
- let s = (S = O.filter((E) => E.overflows[0] <= 0).sort((E, G) => E.overflows[1] - G.overflows[1])[0]) == null ? void 0 : S.placement;
8127
+ let s = (S = O.filter((E) => E.overflows[0] <= 0).sort((E, $) => E.overflows[1] - $.overflows[1])[0]) == null ? void 0 : S.placement;
8128
8128
  if (!s)
8129
8129
  switch (r) {
8130
8130
  case "bestFit": {
8131
8131
  var h;
8132
- const E = (h = O.map((G) => [G.placement, G.overflows.filter((j) => j > 0).reduce((j, Z2) => j + Z2, 0)]).sort((G, j) => G[1] - j[1])[0]) == null ? void 0 : h[0];
8132
+ const E = (h = O.map(($) => [$.placement, $.overflows.filter((j) => j > 0).reduce((j, Z2) => j + Z2, 0)]).sort(($, j) => $[1] - j[1])[0]) == null ? void 0 : h[0];
8133
8133
  E && (s = E);
8134
8134
  break;
8135
8135
  }
@@ -8950,9 +8950,9 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8950
8950
  }
8951
8951
  return Y1(() => {
8952
8952
  I();
8953
- }), $(L, (S) => {
8953
+ }), G(L, (S) => {
8954
8954
  M("update:modelValue", S);
8955
- }), $(() => l.value, (S) => {
8955
+ }), G(() => l.value, (S) => {
8956
8956
  I();
8957
8957
  }), (S, h) => (m(), n("div", {
8958
8958
  ref_key: "wrapper",
@@ -9011,7 +9011,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9011
9011
  closable: "",
9012
9012
  label: s.label,
9013
9013
  variant: "primary",
9014
- "onClick:close": (G) => P(G, s, x)
9014
+ "onClick:close": ($) => P($, s, x)
9015
9015
  }, null, 8, ["label", "onClick:close"]))), 128))
9016
9016
  ])
9017
9017
  ])) : c("", !0),
@@ -9194,6 +9194,11 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9194
9194
  !C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
9195
9195
  }), window.addEventListener("keydown", (e) => {
9196
9196
  e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9197
+ }), G(() => C.modelValue, (e) => {
9198
+ e || (document.body.style.overflow = "auto");
9199
+ }, {
9200
+ deep: !0,
9201
+ immediate: !0
9197
9202
  }), (e, t) => J1((m(), n("div", {
9198
9203
  class: p(["r-modal-overlay", e.overlayClass]),
9199
9204
  onClick: d1(i, ["stop"])
@@ -9277,7 +9282,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9277
9282
  emits: ["action", "update:modelValue"],
9278
9283
  setup(H, { emit: V }) {
9279
9284
  const C = H, M = V;
9280
- $(
9285
+ G(
9281
9286
  () => C.modelValue,
9282
9287
  () => {
9283
9288
  C.timeout > 0 && C.modelValue && setTimeout(() => {
@@ -9359,7 +9364,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9359
9364
  function i(e) {
9360
9365
  C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
9361
9366
  }
9362
- return $(
9367
+ return G(
9363
9368
  () => C.modelValue,
9364
9369
  (e) => {
9365
9370
  A.checked = e;
@@ -9492,7 +9497,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9492
9497
  "r-tabs--tile": C.tile,
9493
9498
  "r-tabs--scrollable": C.scrollable
9494
9499
  }));
9495
- $(
9500
+ G(
9496
9501
  () => A.value,
9497
9502
  () => {
9498
9503
  M("update:modelValue", A.value);
@@ -9552,7 +9557,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9552
9557
  function L(i) {
9553
9558
  M("update:modelValue", i.target.value);
9554
9559
  }
9555
- return $(
9560
+ return G(
9556
9561
  () => C.modelValue,
9557
9562
  (i) => {
9558
9563
  A.value = i;
@@ -9689,7 +9694,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9689
9694
  var O;
9690
9695
  (O = A.value) == null || O.focus();
9691
9696
  }
9692
- return $(
9697
+ return G(
9693
9698
  () => C.modelValue,
9694
9699
  (O) => {
9695
9700
  L.value = O;
@@ -9697,7 +9702,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9697
9702
  {
9698
9703
  immediate: !0
9699
9704
  }
9700
- ), $(
9705
+ ), G(
9701
9706
  () => L.value,
9702
9707
  (O) => {
9703
9708
  M(
@@ -9848,7 +9853,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
9848
9853
  start: C.page * C.perPage - C.perPage,
9849
9854
  end: C.page * C.perPage
9850
9855
  }));
9851
- $(() => i.value, () => {
9856
+ G(() => i.value, () => {
9852
9857
  M("update:info", i.value);
9853
9858
  });
9854
9859
  function e(d) {