@rocketui/vue 0.1.20 → 0.1.22

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 S, unref as M1, reactive as t1, Fragment as V1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as b, createVNode as $, computed as g, createCommentVNode as c, mergeProps as Z2, createBlock as D, watch as G, getCurrentScope as u2, onScopeDispose as S2, ref as E, watchEffect as q1, onMounted as Y1, Teleport as s2, withCtx as n1, withDirectives as X1, withKeys as W1, vModelText as c2, withModifiers as r1, createTextVNode as R1, normalizeStyle as x1, vShow as O2, Transition as p2, resolveComponent as f2, provide as k1, resolveDynamicComponent as h2, inject as B1 } from "vue";
1
+ import { defineComponent as T, openBlock as m, createElementBlock as n, createElementVNode as S, unref as M1, reactive as m1, Fragment as V1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as b, createVNode as $, computed as g, createCommentVNode as c, mergeProps as Z2, createBlock as D, watch as G, getCurrentScope as u2, onScopeDispose as S2, ref as E, watchEffect as q1, onMounted as Y1, Teleport as s2, withCtx as r1, withDirectives as X1, withModifiers as d1, withKeys as W1, vModelText as c2, createTextVNode as R1, normalizeStyle as x1, vShow as O2, Transition as p2, resolveComponent as f2, provide as k1, resolveDynamicComponent as h2, inject as B1 } 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",
@@ -7323,7 +7323,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7323
7323
  accordions: {}
7324
7324
  },
7325
7325
  setup(H) {
7326
- const V = H, C = t1(
7326
+ const V = H, C = m1(
7327
7327
  V.accordions.map(({ title: A, content: L }, i) => ({
7328
7328
  title: A,
7329
7329
  content: L,
@@ -7580,7 +7580,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7580
7580
  },
7581
7581
  emits: ["update:modelValue"],
7582
7582
  setup(H, { emit: V }) {
7583
- const C = H, M = V, A = t1({
7583
+ const C = H, M = V, A = m1({
7584
7584
  checked: !1,
7585
7585
  indeterminate: !1
7586
7586
  }), L = {
@@ -7721,7 +7721,7 @@ function L5() {
7721
7721
  var H;
7722
7722
  return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7723
7723
  }
7724
- function l1(H) {
7724
+ function o1(H) {
7725
7725
  var V;
7726
7726
  const C = J1(H);
7727
7727
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
@@ -7735,7 +7735,7 @@ function b1(...H) {
7735
7735
  const L = [], i = () => {
7736
7736
  L.forEach((u) => u()), L.length = 0;
7737
7737
  }, e = (u, Z, r, o) => (u.addEventListener(Z, r, o), () => u.removeEventListener(Z, r, o)), d = G(
7738
- () => [l1(V), J1(A)],
7738
+ () => [o1(V), J1(A)],
7739
7739
  ([u, Z]) => {
7740
7740
  if (i(), !u)
7741
7741
  return;
@@ -7761,12 +7761,12 @@ function M5(H, V, C = {}) {
7761
7761
  if (typeof o == "string")
7762
7762
  return Array.from(M.document.querySelectorAll(o)).some((a) => a === r.target || r.composedPath().includes(a));
7763
7763
  {
7764
- const a = l1(o);
7764
+ const a = o1(o);
7765
7765
  return a && (r.target === a || r.composedPath().includes(a));
7766
7766
  }
7767
7767
  }), u = [
7768
7768
  b1(M, "click", (r) => {
7769
- const o = l1(H);
7769
+ const o = o1(H);
7770
7770
  if (!(!o || o === r.target || r.composedPath().includes(o))) {
7771
7771
  if (r.detail === 0 && (e = !d(r)), !e) {
7772
7772
  e = !0;
@@ -7776,13 +7776,13 @@ function M5(H, V, C = {}) {
7776
7776
  }
7777
7777
  }, { passive: !0, capture: L }),
7778
7778
  b1(M, "pointerdown", (r) => {
7779
- const o = l1(H);
7779
+ const o = o1(H);
7780
7780
  e = !d(r) && !!(o && !r.composedPath().includes(o));
7781
7781
  }, { passive: !0 }),
7782
7782
  i && b1(M, "blur", (r) => {
7783
7783
  setTimeout(() => {
7784
7784
  var o;
7785
- const a = l1(H);
7785
+ const a = o1(H);
7786
7786
  ((o = M.document.activeElement) == null ? void 0 : o.tagName) === "IFRAME" && !(a != null && a.contains(M.document.activeElement)) && V(r);
7787
7787
  }, 0);
7788
7788
  })
@@ -7804,7 +7804,7 @@ const A5 = ["top", "right", "bottom", "left"], a1 = Math.min, i1 = Math.max, s1
7804
7804
  function T1(H, V, C) {
7805
7805
  return i1(H, a1(V, C));
7806
7806
  }
7807
- function m1(H, V) {
7807
+ function l1(H, V) {
7808
7808
  return typeof H == "function" ? H(V) : H;
7809
7809
  }
7810
7810
  function L1(H) {
@@ -8013,7 +8013,7 @@ async function p1(H, V) {
8013
8013
  elementContext: Z = "floating",
8014
8014
  altBoundary: r = !1,
8015
8015
  padding: o = 0
8016
- } = m1(V, H), a = L2(o), h = e[r ? Z === "floating" ? "reference" : "floating" : Z], w = O1(await L.getClippingRect({
8016
+ } = l1(V, H), a = L2(o), h = e[r ? Z === "floating" ? "reference" : "floating" : Z], w = O1(await L.getClippingRect({
8017
8017
  element: (C = await (L.isElement == null ? void 0 : L.isElement(h))) == null || C ? h : h.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8018
8018
  boundary: t,
8019
8019
  rootBoundary: u,
@@ -8055,7 +8055,7 @@ const r5 = (H) => ({
8055
8055
  } = V, {
8056
8056
  element: t,
8057
8057
  padding: u = 0
8058
- } = m1(H, V) || {};
8058
+ } = l1(H, V) || {};
8059
8059
  if (t == null)
8060
8060
  return {};
8061
8061
  const Z = L2(u), r = {
@@ -8098,7 +8098,7 @@ const r5 = (H) => ({
8098
8098
  fallbackAxisSideDirection: a = "none",
8099
8099
  flipAlignment: k = !0,
8100
8100
  ...h
8101
- } = m1(H, V);
8101
+ } = l1(H, V);
8102
8102
  if ((C = L.arrow) != null && C.alignmentOffset)
8103
8103
  return {};
8104
8104
  const w = L1(A), y = L1(e) === e, P = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), _ = r || (y || !k ? [c1(e)] : t5(e));
@@ -8170,7 +8170,7 @@ const Z5 = function(H) {
8170
8170
  } = V, {
8171
8171
  strategy: M = "referenceHidden",
8172
8172
  ...A
8173
- } = m1(H, V);
8173
+ } = l1(H, V);
8174
8174
  switch (M) {
8175
8175
  case "referenceHidden": {
8176
8176
  const L = await p1(V, {
@@ -8207,7 +8207,7 @@ async function u5(H, V) {
8207
8207
  placement: C,
8208
8208
  platform: M,
8209
8209
  elements: A
8210
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = f1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, u = L && d ? -1 : 1, Z = m1(V, H);
8210
+ } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = f1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, u = L && d ? -1 : 1, Z = l1(V, H);
8211
8211
  let {
8212
8212
  mainAxis: r,
8213
8213
  crossAxis: o,
@@ -8271,7 +8271,7 @@ const S5 = function(H) {
8271
8271
  }
8272
8272
  },
8273
8273
  ...d
8274
- } = m1(H, V), t = {
8274
+ } = l1(H, V), t = {
8275
8275
  x: C,
8276
8276
  y: M
8277
8277
  }, u = await p1(V, d), Z = f1(L1(A)), r = V2(Z);
@@ -8339,11 +8339,11 @@ function E1(H) {
8339
8339
  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));
8340
8340
  }
8341
8341
  function O5(H) {
8342
- let V = d1(H);
8342
+ let V = t1(H);
8343
8343
  for (; K(V) && !h1(V); ) {
8344
8344
  if (E1(V))
8345
8345
  return V;
8346
- V = d1(V);
8346
+ V = t1(V);
8347
8347
  }
8348
8348
  return null;
8349
8349
  }
@@ -8365,7 +8365,7 @@ function g1(H) {
8365
8365
  scrollTop: H.pageYOffset
8366
8366
  };
8367
8367
  }
8368
- function d1(H) {
8368
+ function t1(H) {
8369
8369
  if (J(H) === "html")
8370
8370
  return H;
8371
8371
  const V = (
@@ -8378,7 +8378,7 @@ function d1(H) {
8378
8378
  return $1(V) ? V.host : V;
8379
8379
  }
8380
8380
  function A2(H) {
8381
- const V = d1(H);
8381
+ const V = t1(H);
8382
8382
  return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : K(V) && S1(V) ? V : A2(V);
8383
8383
  }
8384
8384
  function F1(H, V, C) {
@@ -8533,7 +8533,7 @@ function K1(H, V, C) {
8533
8533
  return O1(M);
8534
8534
  }
8535
8535
  function m2(H, V) {
8536
- const C = d1(H);
8536
+ const C = t1(H);
8537
8537
  return C === V || !Y(C) || h1(C) ? !1 : I(C).position === "fixed" || m2(C, V);
8538
8538
  }
8539
8539
  function w5(H, V) {
@@ -8542,10 +8542,10 @@ function w5(H, V) {
8542
8542
  return C;
8543
8543
  let M = F1(H, [], !1).filter((e) => Y(e) && J(e) !== "body"), A = null;
8544
8544
  const L = I(H).position === "fixed";
8545
- let i = L ? d1(H) : H;
8545
+ let i = L ? t1(H) : H;
8546
8546
  for (; Y(i) && !h1(i); ) {
8547
8547
  const e = I(i), d = E1(i);
8548
- !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((u) => u !== i) : A = e, i = d1(i);
8548
+ !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((u) => u !== i) : A = e, i = t1(i);
8549
8549
  }
8550
8550
  return V.set(H, M), M;
8551
8551
  }
@@ -8864,7 +8864,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8864
8864
  },
8865
8865
  emits: ["update:modelValue"],
8866
8866
  setup(H, { emit: V }) {
8867
- const C = H, M = V, A = E({ value: "", label: "" }), L = t1([]), i = E(!1), e = E(""), d = E(), t = E(), u = E();
8867
+ const C = H, M = V, A = E({ value: "", label: "" }), L = m1([]), i = E(!1), e = E(""), d = E(), t = E(), u = E();
8868
8868
  function Z(s, l) {
8869
8869
  var B, F, O;
8870
8870
  if (s.stopPropagation(), !C.disabled) {
@@ -8921,7 +8921,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8921
8921
  C.modelValue ? C.multiple ? L.push(C.modelValue) : (A.value = C.modelValue, e.value = C.modelValue.label) : (A.value = {}, L.splice(0, L.length));
8922
8922
  }
8923
8923
  function v(s) {
8924
- C.searchable && s(), !(C.multiple || C.taggable) && (e.value === "" && (A.value = {}), M("update:modelValue", ""));
8924
+ C.searchable && s(), !(C.multiple || C.taggable) && e.value === "" && (A.value = {}, M("update:modelValue", ""));
8925
8925
  }
8926
8926
  function Q(s, l) {
8927
8927
  if (s.stopPropagation(), l(), C.multiple || C.taggable) {
@@ -8953,7 +8953,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8953
8953
  type: "dropdown",
8954
8954
  onHide: r
8955
8955
  }, {
8956
- default: n1(({ activators: B, updatePosition: F }) => [
8956
+ default: r1(({ activators: B, updatePosition: F }) => [
8957
8957
  S("div", {
8958
8958
  ref_key: "dropdown",
8959
8959
  ref: d,
@@ -9014,7 +9014,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9014
9014
  readonly: P.value,
9015
9015
  role: "presentation",
9016
9016
  type: "text",
9017
- onInput: (O) => v(F),
9017
+ onInput: d1((O) => v(F), ["prevent"]),
9018
9018
  onKeydown: [
9019
9019
  W1((O) => k(O, L[L.length - 1], F), ["backspace"]),
9020
9020
  W1((O) => h(O, F), ["enter"])
@@ -9049,7 +9049,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9049
9049
  ], 2)) : c("", !0)
9050
9050
  ], 10, W5)
9051
9051
  ]),
9052
- content: n1(({ hide: B, updatePosition: F }) => [
9052
+ content: r1(({ hide: B, updatePosition: F }) => [
9053
9053
  S("ul", {
9054
9054
  class: p(["r-dropdown-options", {
9055
9055
  "r-dropdown-options--active": i.value,
@@ -9063,7 +9063,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9063
9063
  "r-dropdown-options__option--active": w(O),
9064
9064
  "r-dropdown-options__option--disabled": O.disabled
9065
9065
  }]),
9066
- onClick: r1((R) => o(R, O, B, F), ["prevent"])
9066
+ onClick: d1((R) => o(R, O, B, F), ["prevent"])
9067
9067
  }, [
9068
9068
  S("div", $5, [
9069
9069
  f(s.$slots, "option-prepend", {}, () => [
@@ -9166,7 +9166,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9166
9166
  e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9167
9167
  }), (e, d) => X1((m(), n("div", {
9168
9168
  class: p(["r-modal-overlay", e.overlayClass]),
9169
- onClick: r1(i, ["stop"])
9169
+ onClick: d1(i, ["stop"])
9170
9170
  }, [
9171
9171
  S("div", {
9172
9172
  "aria-modal": "true",
@@ -9288,7 +9288,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9288
9288
  $(x, {
9289
9289
  name: "mdiClose",
9290
9290
  size: 16,
9291
- onClick: e[0] || (e[0] = r1((d) => i.$emit("update:modelValue", !1), ["stop"]))
9291
+ onClick: e[0] || (e[0] = d1((d) => i.$emit("update:modelValue", !1), ["stop"]))
9292
9292
  })
9293
9293
  ])
9294
9294
  ])) : c("", !0)
@@ -9318,7 +9318,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9318
9318
  },
9319
9319
  emits: ["update:modelValue"],
9320
9320
  setup(H, { emit: V }) {
9321
- const C = H, M = V, A = t1({
9321
+ const C = H, M = V, A = m1({
9322
9322
  checked: !1
9323
9323
  }), L = g(() => ({
9324
9324
  "r-switch": !0,
@@ -9375,7 +9375,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
9375
9375
  ], 2));
9376
9376
  }
9377
9377
  });
9378
- var o1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(o1 || {});
9378
+ var n1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(n1 || {});
9379
9379
  const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9380
9380
  key: 0,
9381
9381
  class: "r-tab-item__label"
@@ -9383,7 +9383,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9383
9383
  __name: "RTabItem",
9384
9384
  props: {
9385
9385
  id: {},
9386
- variant: { default: o1.DEFAULT },
9386
+ variant: { default: n1.DEFAULT },
9387
9387
  label: { default: "" },
9388
9388
  prependIcon: { default: "" },
9389
9389
  appendIcon: { default: "" },
@@ -9415,10 +9415,10 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9415
9415
  class: p(A.value),
9416
9416
  disabled: C.disabled,
9417
9417
  style: x1(L.value),
9418
- onClick: t[0] || (t[0] = r1((u) => i(C.id), ["stop"]))
9418
+ onClick: t[0] || (t[0] = d1((u) => i(C.id), ["stop"]))
9419
9419
  }, [
9420
9420
  f(d.$slots, "prepend", {}, () => [
9421
- C.variant !== M1(o1).TEXT && C.prependIcon ? (m(), D(x, {
9421
+ C.variant !== M1(n1).TEXT && C.prependIcon ? (m(), D(x, {
9422
9422
  key: 0,
9423
9423
  class: "r-tab-item__prepend-icon",
9424
9424
  name: C.prependIcon,
@@ -9429,18 +9429,18 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9429
9429
  duration: 150,
9430
9430
  name: "fade"
9431
9431
  }, {
9432
- default: n1(() => [
9433
- C.variant !== M1(o1).ICON ? (m(), n("span", s3, b(C.label), 1)) : c("", !0)
9432
+ default: r1(() => [
9433
+ C.variant !== M1(n1).ICON ? (m(), n("span", s3, b(C.label), 1)) : c("", !0)
9434
9434
  ]),
9435
9435
  _: 1
9436
9436
  }),
9437
9437
  f(d.$slots, "append", {}, () => [
9438
- C.variant !== M1(o1).TEXT && C.appendIcon ? (m(), D(x, {
9438
+ C.variant !== M1(n1).TEXT && C.appendIcon ? (m(), D(x, {
9439
9439
  key: 0,
9440
9440
  class: "r-tab-item__append-icon",
9441
9441
  name: C.appendIcon,
9442
9442
  size: 16,
9443
- onClick: r1(e, ["stop"])
9443
+ onClick: d1(e, ["stop"])
9444
9444
  }, null, 8, ["name", "onClick"])) : c("", !0)
9445
9445
  ])
9446
9446
  ], 14, S3));
@@ -9516,7 +9516,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9516
9516
  },
9517
9517
  emits: ["update:modelValue"],
9518
9518
  setup(H, { emit: V }) {
9519
- const C = H, M = V, A = t1({
9519
+ const C = H, M = V, A = m1({
9520
9520
  value: ""
9521
9521
  });
9522
9522
  function L(i) {
@@ -9593,7 +9593,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9593
9593
  "click:clear"
9594
9594
  ],
9595
9595
  setup(H, { emit: V }) {
9596
- const C = H, M = V, A = E(), L = t1({
9596
+ const C = H, M = V, A = E(), L = m1({
9597
9597
  value: ""
9598
9598
  }), i = E(C.type), e = {
9599
9599
  password: "mdiLock",
@@ -9749,7 +9749,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9749
9749
  class: "r-breadcrumb__link",
9750
9750
  to: L.to
9751
9751
  }, {
9752
- default: n1(() => [
9752
+ default: r1(() => [
9753
9753
  f(C.$slots, "item-icon", {}, () => [
9754
9754
  L.icon ? (m(), D(x, {
9755
9755
  key: 0,
@@ -9904,7 +9904,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9904
9904
  C.disabled || C.mandatory && L.value.length === 1 && u || C.max && L.value.length === C.max && u || (C.multiple ? u ? L.value.push(t) : L.value = L.value.filter((Z) => Z !== t) : L.value = u ? [t] : [], M("update:modelValue", L.value));
9905
9905
  }
9906
9906
  return k1(`${w1}:select`, d), (t, u) => (m(), D(h2(A.value), null, {
9907
- default: n1(() => [
9907
+ default: r1(() => [
9908
9908
  f(t.$slots, "default", {
9909
9909
  isSelected: e,
9910
9910
  select: d,