@rocketui/vue 0.2.17 → 0.2.18

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.
@@ -2226,7 +2226,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2226
2226
  autocomplete: string;
2227
2227
  noOptionsText: string;
2228
2228
  hideOptionCheckIcon: boolean;
2229
- clearableChip: boolean;
2229
+ hideChipClear: boolean;
2230
2230
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2231
2231
  "update:modelValue": (...args: any[]) => void;
2232
2232
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_8<SelectProps>, {
@@ -2251,7 +2251,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2251
2251
  autocomplete: string;
2252
2252
  noOptionsText: string;
2253
2253
  hideOptionCheckIcon: boolean;
2254
- clearableChip: boolean;
2254
+ hideChipClear: boolean;
2255
2255
  }>>> & {
2256
2256
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2257
2257
  }, {
@@ -2275,10 +2275,11 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2275
2275
  autocomplete: "on" | "off";
2276
2276
  noOptionsText: string;
2277
2277
  hideOptionCheckIcon: boolean;
2278
- clearableChip: boolean;
2278
+ hideChipClear: boolean;
2279
2279
  }, {}>, {
2280
2280
  prepend?(_: {}): any;
2281
2281
  selection?(_: {
2282
+ key: number;
2282
2283
  index: number;
2283
2284
  option: {
2284
2285
  [x: string]: any;
@@ -2287,8 +2288,6 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2287
2288
  prependIcon?: string | undefined;
2288
2289
  disabled?: boolean | undefined;
2289
2290
  };
2290
- }): any;
2291
- chip?(_: {
2292
2291
  removeOption: typeof removeOption;
2293
2292
  }): any;
2294
2293
  append?(_: {}): any;
@@ -3016,9 +3015,9 @@ declare interface SelectProps {
3016
3015
  * @type {boolean}
3017
3016
  * @default false
3018
3017
  * @example
3019
- * <Dropdown clearableChip />
3018
+ * <Dropdown hideChipClear />
3020
3019
  */
3021
- clearableChip?: boolean;
3020
+ hideChipClear?: boolean;
3022
3021
  }
3023
3022
 
3024
3023
  declare interface Tab {
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as V1, reactive as Z1, Fragment as i1, renderList as o1, normalizeClass as c, renderSlot as f, toDisplayString as w, createVNode as U, computed as g, createCommentVNode as p, 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 e1, 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 Z, createElementVNode as S, unref as V1, reactive as Z1, Fragment as i1, renderList as o1, normalizeClass as c, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as p, 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 e1, 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",
@@ -7350,7 +7350,7 @@ const k2 = {
7350
7350
  S("div", P2, w(i.title), 1)
7351
7351
  ]),
7352
7352
  S("div", v2, [
7353
- U(x, { name: "mdiChevronUp" })
7353
+ K(x, { name: "mdiChevronUp" })
7354
7354
  ])
7355
7355
  ], 8, y2),
7356
7356
  S("div", T2, [
@@ -7397,7 +7397,7 @@ const k2 = {
7397
7397
  }, [
7398
7398
  S("div", F2, [
7399
7399
  f(e.$slots, "alert-icon", {}, () => [
7400
- U(x, {
7400
+ K(x, {
7401
7401
  name: L.value,
7402
7402
  size: 24
7403
7403
  }, null, 8, ["name"])
@@ -7411,7 +7411,7 @@ const k2 = {
7411
7411
  ]),
7412
7412
  C.closable ? (m(), Z("div", _2, [
7413
7413
  f(e.$slots, "custom-close", {}, () => [
7414
- U(x, {
7414
+ K(x, {
7415
7415
  class: "r-alert__close__button",
7416
7416
  name: "mdiClose",
7417
7417
  size: 16,
@@ -7637,7 +7637,7 @@ const k2 = {
7637
7637
  class: c(e.value),
7638
7638
  "data-disabled": C.disabled
7639
7639
  }, [
7640
- U(x, {
7640
+ K(x, {
7641
7641
  name: i.value,
7642
7642
  size: 24
7643
7643
  }, null, 8, ["name"])
@@ -8070,9 +8070,9 @@ const r5 = (H) => ({
8070
8070
  const o = L2(l), r = {
8071
8071
  x: C,
8072
8072
  y: M
8073
- }, a = _1(A), u = D1(a), b = await i.getDimensions(t), k = a === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", R = L.reference[u] + L.reference[a] - r[a] - L.floating[u], F = r[a] - L.reference[a], K = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8074
- let I = K ? K[v] : 0;
8075
- (!I || !await (i.isElement == null ? void 0 : i.isElement(K))) && (I = e.floating[v] || L.floating[u]);
8073
+ }, a = _1(A), u = D1(a), b = await i.getDimensions(t), k = a === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", R = L.reference[u] + L.reference[a] - r[a] - L.floating[u], F = r[a] - L.reference[a], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8074
+ let I = z ? z[v] : 0;
8075
+ (!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[u]);
8076
8076
  const O = R / 2 - F / 2, N = I / 2 - b[u] / 2 - 1, n = r1(o[y], N), h = r1(o[P], N), B = n, D = I - b[u] - h, s = I / 2 - b[u] / 2 + O, E = v1(B, s, D), $ = !d.arrow && u1(A) != null && s != E && L.reference[u] / 2 - (s < B ? n : h) - b[u] / 2 < 0, j = $ ? s < B ? s - B : s - D : 0;
8077
8077
  return {
8078
8078
  [a]: r[a] + j,
@@ -8112,11 +8112,11 @@ const r5 = (H) => ({
8112
8112
  return {};
8113
8113
  const y = L1(A), P = L1(e) === e, v = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), R = r || (P || !b ? [h1(e)] : t5(e));
8114
8114
  !r && u !== "none" && R.push(...l5(e, b, u, v));
8115
- const F = [e, ...R], K = await k1(V, k), I = [];
8115
+ const F = [e, ...R], z = await k1(V, k), I = [];
8116
8116
  let O = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8117
- if (l && I.push(K[y]), o) {
8117
+ if (l && I.push(z[y]), o) {
8118
8118
  const B = d5(A, i, v);
8119
- I.push(K[B[0]], K[B[1]]);
8119
+ I.push(z[B[0]], z[B[1]]);
8120
8120
  }
8121
8121
  if (O = [...O, {
8122
8122
  placement: A,
@@ -8337,14 +8337,14 @@ function S1(H) {
8337
8337
  overflowX: C,
8338
8338
  overflowY: M,
8339
8339
  display: A
8340
- } = z(H);
8340
+ } = U(H);
8341
8341
  return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(A);
8342
8342
  }
8343
8343
  function c5(H) {
8344
8344
  return ["table", "td", "th"].includes(C1(H));
8345
8345
  }
8346
8346
  function E1(H) {
8347
- const V = W1(), C = z(H);
8347
+ const V = W1(), C = U(H);
8348
8348
  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));
8349
8349
  }
8350
8350
  function O5(H) {
@@ -8362,7 +8362,7 @@ function W1() {
8362
8362
  function b1(H) {
8363
8363
  return ["html", "body", "#document"].includes(C1(H));
8364
8364
  }
8365
- function z(H) {
8365
+ function U(H) {
8366
8366
  return Q(H).getComputedStyle(H);
8367
8367
  }
8368
8368
  function w1(H) {
@@ -8397,7 +8397,7 @@ function F1(H, V, C) {
8397
8397
  return L ? V.concat(i, i.visualViewport || [], S1(A) ? A : [], i.frameElement && C ? F1(i.frameElement) : []) : V.concat(A, F1(A, [], C));
8398
8398
  }
8399
8399
  function i2(H) {
8400
- const V = z(H);
8400
+ const V = U(H);
8401
8401
  let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
8402
8402
  const A = q(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = f1(C) !== L || f1(M) !== i;
8403
8403
  return e && (C = L, M = i), {
@@ -8446,7 +8446,7 @@ function a1(H, V, C, M) {
8446
8446
  const r = Q(L), a = M && Y(M) ? Q(M) : M;
8447
8447
  let u = r.frameElement;
8448
8448
  for (; u && M && a !== r; ) {
8449
- const b = A1(u), k = u.getBoundingClientRect(), y = z(u), P = k.left + (u.clientLeft + parseFloat(y.paddingLeft)) * b.x, v = k.top + (u.clientTop + parseFloat(y.paddingTop)) * b.y;
8449
+ const b = A1(u), k = u.getBoundingClientRect(), y = U(u), P = k.left + (u.clientLeft + parseFloat(y.paddingLeft)) * b.x, v = k.top + (u.clientTop + parseFloat(y.paddingTop)) * b.y;
8450
8450
  d *= b.x, t *= b.y, l *= b.x, o *= b.y, d += P, t += v, u = Q(u).frameElement;
8451
8451
  }
8452
8452
  }
@@ -8492,7 +8492,7 @@ function k5(H) {
8492
8492
  const V = H1(H), C = w1(H), M = H.ownerDocument.body, A = M1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = M1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8493
8493
  let i = -C.scrollLeft + t2(H);
8494
8494
  const e = -C.scrollTop;
8495
- return z(M).direction === "rtl" && (i += M1(V.clientWidth, M.clientWidth) - A), {
8495
+ return U(M).direction === "rtl" && (i += M1(V.clientWidth, M.clientWidth) - A), {
8496
8496
  width: A,
8497
8497
  height: L,
8498
8498
  x: i,
@@ -8543,17 +8543,17 @@ function K1(H, V, C) {
8543
8543
  }
8544
8544
  function m2(H, V) {
8545
8545
  const C = d1(H);
8546
- return C === V || !Y(C) || b1(C) ? !1 : z(C).position === "fixed" || m2(C, V);
8546
+ return C === V || !Y(C) || b1(C) ? !1 : U(C).position === "fixed" || m2(C, V);
8547
8547
  }
8548
8548
  function w5(H, V) {
8549
8549
  const C = V.get(H);
8550
8550
  if (C)
8551
8551
  return C;
8552
8552
  let M = F1(H, [], !1).filter((e) => Y(e) && C1(e) !== "body"), A = null;
8553
- const L = z(H).position === "fixed";
8553
+ const L = U(H).position === "fixed";
8554
8554
  let i = L ? d1(H) : H;
8555
8555
  for (; Y(i) && !b1(i); ) {
8556
- const e = z(i), d = E1(i);
8556
+ const e = U(i), d = E1(i);
8557
8557
  !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((l) => l !== i) : A = e, i = d1(i);
8558
8558
  }
8559
8559
  return V.set(H, M), M;
@@ -8600,16 +8600,16 @@ function v5(H, V, C) {
8600
8600
  };
8601
8601
  }
8602
8602
  function q1(H, V) {
8603
- return !q(H) || z(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8603
+ return !q(H) || U(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8604
8604
  }
8605
8605
  function l2(H, V) {
8606
8606
  const C = Q(H);
8607
8607
  if (!q(H))
8608
8608
  return C;
8609
8609
  let M = q1(H, V);
8610
- for (; M && c5(M) && z(M).position === "static"; )
8610
+ for (; M && c5(M) && U(M).position === "static"; )
8611
8611
  M = q1(M, V);
8612
- return M && (C1(M) === "html" || C1(M) === "body" && z(M).position === "static" && !E1(M)) ? C : M || O5(H) || C;
8612
+ return M && (C1(M) === "html" || C1(M) === "body" && U(M).position === "static" && !E1(M)) ? C : M || O5(H) || C;
8613
8613
  }
8614
8614
  const T5 = async function(H) {
8615
8615
  let {
@@ -8628,7 +8628,7 @@ const T5 = async function(H) {
8628
8628
  };
8629
8629
  };
8630
8630
  function F5(H) {
8631
- return z(H).direction === "rtl";
8631
+ return U(H).direction === "rtl";
8632
8632
  }
8633
8633
  const R5 = {
8634
8634
  convertOffsetParentRelativeRectToViewportRelativeRect: h5,
@@ -8866,7 +8866,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
8866
8866
  autocomplete: { default: "off" },
8867
8867
  noOptionsText: { default: "No options" },
8868
8868
  hideOptionCheckIcon: { type: Boolean, default: !1 },
8869
- clearableChip: { type: Boolean, default: !0 }
8869
+ hideChipClear: { type: Boolean, default: !1 }
8870
8870
  },
8871
8871
  emits: ["update:modelValue"],
8872
8872
  setup(H, { emit: V }) {
@@ -8942,7 +8942,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
8942
8942
  var h;
8943
8943
  return !n || (n == null ? void 0 : n.value) === void 0 || (n == null ? void 0 : n.value) === null ? !1 : C.multiple ? L.value.find((B) => (B == null ? void 0 : B.value) === (n == null ? void 0 : n.value)) : ((h = A.value) == null ? void 0 : h.value) === (n == null ? void 0 : n.value);
8944
8944
  }
8945
- const F = g(() => !C.searchable || A.value.label === e.value ? t.value : t.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), K = g(() => !C.searchable);
8945
+ const F = g(() => !C.searchable || A.value.label === e.value ? t.value : t.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), z = g(() => !C.searchable);
8946
8946
  function I() {
8947
8947
  l.value ? C.multiple ? L.value = l.value : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
8948
8948
  }
@@ -8967,7 +8967,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
8967
8967
  ref: a,
8968
8968
  class: "r-dropdown-wrapper"
8969
8969
  }, [
8970
- U(W5, {
8970
+ K(W5, {
8971
8971
  "auto-hide": !1,
8972
8972
  offset: 0,
8973
8973
  "outside-click": "",
@@ -9008,25 +9008,21 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
9008
9008
  ])
9009
9009
  ], 2)) : p("", !0),
9010
9010
  S("div", I5, [
9011
- (m(!0), Z(i1, null, o1(L.value, (s, E) => (m(), Z("div", { key: E }, [
9012
- f(n.$slots, "selection", {
9013
- index: E,
9014
- option: s
9015
- }, () => [
9016
- C.chips ? f(n.$slots, "chip", {
9017
- key: 1,
9018
- removeOption: P
9019
- }, () => [
9020
- U(Y2, {
9021
- clearable: C.clearableChip,
9022
- label: s.label,
9023
- "no-wrap": "",
9024
- variant: "primary",
9025
- "onClick:close": ($) => P($, s, D)
9026
- }, null, 8, ["clearable", "label", "onClick:close"])
9027
- ]) : (m(), Z("p", Q5, w(`${s.label}, `), 1))
9028
- ])
9029
- ]))), 128)),
9011
+ (m(!0), Z(i1, null, o1(L.value, (s, E) => f(n.$slots, "selection", {
9012
+ key: E,
9013
+ index: E,
9014
+ option: s,
9015
+ removeOption: P
9016
+ }, () => [
9017
+ C.chips ? (m(), _(Y2, {
9018
+ key: 1,
9019
+ clearable: !C.hideChipClear,
9020
+ label: s.label,
9021
+ "no-wrap": "",
9022
+ variant: "primary",
9023
+ "onClick:close": ($) => P($, s, D)
9024
+ }, null, 8, ["clearable", "label", "onClick:close"])) : (m(), Z("p", Q5, w(`${s.label}, `), 1))
9025
+ ])), 128)),
9030
9026
  Y1(S("input", {
9031
9027
  id: C.id,
9032
9028
  ref_key: "input",
@@ -9038,7 +9034,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
9038
9034
  }]),
9039
9035
  disabled: C.disabled,
9040
9036
  placeholder: C.placeholder,
9041
- readonly: K.value,
9037
+ readonly: z.value,
9042
9038
  role: "presentation",
9043
9039
  type: "text",
9044
9040
  onInput: e1((s) => O(D), ["prevent"]),
@@ -9056,7 +9052,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
9056
9052
  "data-has-value": (e.value !== "" || L.value.length) && i.value,
9057
9053
  onClick: (s) => N(s, D)
9058
9054
  }, [
9059
- U(x, {
9055
+ K(x, {
9060
9056
  name: "mdiCloseCircle",
9061
9057
  size: "18"
9062
9058
  })
@@ -9213,7 +9209,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
9213
9209
  S("div", V3, [
9214
9210
  f(e.$slots, "header"),
9215
9211
  C.icon ? (m(), Z("div", L3, [
9216
- U(x, {
9212
+ K(x, {
9217
9213
  name: C.icon
9218
9214
  }, null, 8, ["name"])
9219
9215
  ])) : p("", !0),
@@ -9320,7 +9316,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ T({
9320
9316
  f(i.$slots, "action"),
9321
9317
  C.closable ? (m(), Z("div", o3, [
9322
9318
  f(i.$slots, "close", {}, () => [
9323
- U(x, {
9319
+ K(x, {
9324
9320
  name: "mdiClose",
9325
9321
  size: 16,
9326
9322
  onClick: e[0] || (e[0] = e1((d) => i.$emit("update:modelValue", !1), ["stop"]))
@@ -9460,7 +9456,7 @@ const s3 = ["aria-disabled", "aria-selected", "disabled"], c3 = {
9460
9456
  size: 16
9461
9457
  }, null, 8, ["name"])) : p("", !0)
9462
9458
  ]),
9463
- U(f2, {
9459
+ K(f2, {
9464
9460
  duration: 150,
9465
9461
  name: "fade"
9466
9462
  }, {
@@ -9685,9 +9681,9 @@ const s3 = ["aria-disabled", "aria-selected", "disabled"], c3 = {
9685
9681
  }
9686
9682
  M("click:icon", {
9687
9683
  value: i.value === "number" ? +L.value : L.value
9688
- }), C.type === "password" && K();
9684
+ }), C.type === "password" && z();
9689
9685
  }
9690
- function K() {
9686
+ function z() {
9691
9687
  i.value = i.value === "password" ? "text" : "password";
9692
9688
  }
9693
9689
  function I() {
@@ -9780,7 +9776,7 @@ const s3 = ["aria-disabled", "aria-selected", "disabled"], c3 = {
9780
9776
  key: i,
9781
9777
  class: "r-breadcrumb__item"
9782
9778
  }, [
9783
- U(A, {
9779
+ K(A, {
9784
9780
  class: "r-breadcrumb__link",
9785
9781
  to: L.to
9786
9782
  }, {
@@ -9868,7 +9864,7 @@ const s3 = ["aria-disabled", "aria-selected", "disabled"], c3 = {
9868
9864
  S("div", R3, [
9869
9865
  S("div", x3, [
9870
9866
  S("span", null, w(C.itemsPerPageText), 1),
9871
- U(Y5, {
9867
+ K(Y5, {
9872
9868
  modelValue: A.value,
9873
9869
  "onUpdate:modelValue": [
9874
9870
  l[0] || (l[0] = (o) => A.value = o),