@rocketui/vue 0.2.39-alpha.2 → 0.2.39-alpha.4
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.
- package/dist/rocket-ui-vue.js +26 -26
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -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
|
|
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(
|
|
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
|
|
@@ -7813,7 +7813,7 @@ function L5(H, V, C = {}) {
|
|
|
7813
7813
|
].filter(Boolean);
|
|
7814
7814
|
return () => n.forEach((o) => o());
|
|
7815
7815
|
}
|
|
7816
|
-
const M5 = ["top", "right", "bottom", "left"], n1 = Math.min,
|
|
7816
|
+
const M5 = ["top", "right", "bottom", "left"], n1 = Math.min, M1 = Math.max, h1 = Math.round, J = (H) => ({
|
|
7817
7817
|
x: H,
|
|
7818
7818
|
y: H
|
|
7819
7819
|
}), A5 = {
|
|
@@ -7826,7 +7826,7 @@ const M5 = ["top", "right", "bottom", "left"], n1 = Math.min, A1 = Math.max, h1
|
|
|
7826
7826
|
end: "start"
|
|
7827
7827
|
};
|
|
7828
7828
|
function T1(H, V, C) {
|
|
7829
|
-
return
|
|
7829
|
+
return M1(H, n1(V, C));
|
|
7830
7830
|
}
|
|
7831
7831
|
function t1(H, V) {
|
|
7832
7832
|
return typeof H == "function" ? H(V) : H;
|
|
@@ -8424,7 +8424,7 @@ function i2(H) {
|
|
|
8424
8424
|
function e2(H) {
|
|
8425
8425
|
return Y(H) ? H : H.contextElement;
|
|
8426
8426
|
}
|
|
8427
|
-
function
|
|
8427
|
+
function A1(H) {
|
|
8428
8428
|
const V = e2(H);
|
|
8429
8429
|
if (!q(V))
|
|
8430
8430
|
return J(1);
|
|
@@ -8454,14 +8454,14 @@ function r1(H, V, C, M) {
|
|
|
8454
8454
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8455
8455
|
const A = H.getBoundingClientRect(), L = e2(H);
|
|
8456
8456
|
let i = J(1);
|
|
8457
|
-
V && (M ? Y(M) && (i =
|
|
8457
|
+
V && (M ? Y(M) && (i = A1(M)) : i = A1(H));
|
|
8458
8458
|
const e = p5(L, C, M) ? d2(L) : J(0);
|
|
8459
8459
|
let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, n = A.width / i.x, Z = A.height / i.y;
|
|
8460
8460
|
if (L) {
|
|
8461
8461
|
const o = $(L), l = M && Y(M) ? $(M) : M;
|
|
8462
8462
|
let r = o.frameElement;
|
|
8463
8463
|
for (; r && M && l !== o; ) {
|
|
8464
|
-
const k =
|
|
8464
|
+
const k = A1(r), B = r.getBoundingClientRect(), y = z(r), P = B.left + (r.clientLeft + parseFloat(y.paddingLeft)) * k.x, v = B.top + (r.clientTop + parseFloat(y.paddingTop)) * k.y;
|
|
8465
8465
|
d *= k.x, t *= k.y, n *= k.x, Z *= k.y, d += P, t += v, r = $(r).frameElement;
|
|
8466
8466
|
}
|
|
8467
8467
|
}
|
|
@@ -8488,7 +8488,7 @@ function f5(H) {
|
|
|
8488
8488
|
const d = J(0);
|
|
8489
8489
|
if ((A || !A && M !== "fixed") && ((C1(C) !== "body" || S1(L)) && (i = y1(C)), q(C))) {
|
|
8490
8490
|
const t = r1(C);
|
|
8491
|
-
e =
|
|
8491
|
+
e = A1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
|
|
8492
8492
|
}
|
|
8493
8493
|
return {
|
|
8494
8494
|
width: V.width * e.x,
|
|
@@ -8504,10 +8504,10 @@ function t2(H) {
|
|
|
8504
8504
|
return r1(H1(H)).left + y1(H).scrollLeft;
|
|
8505
8505
|
}
|
|
8506
8506
|
function g5(H) {
|
|
8507
|
-
const V = H1(H), C = y1(H), M = H.ownerDocument.body, A =
|
|
8507
|
+
const V = H1(H), C = y1(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);
|
|
8508
8508
|
let i = -C.scrollLeft + t2(H);
|
|
8509
8509
|
const e = -C.scrollTop;
|
|
8510
|
-
return z(M).direction === "rtl" && (i +=
|
|
8510
|
+
return z(M).direction === "rtl" && (i += M1(V.clientWidth, M.clientWidth) - A), {
|
|
8511
8511
|
width: A,
|
|
8512
8512
|
height: L,
|
|
8513
8513
|
x: i,
|
|
@@ -8530,7 +8530,7 @@ function k5(H, V) {
|
|
|
8530
8530
|
};
|
|
8531
8531
|
}
|
|
8532
8532
|
function B5(H, V) {
|
|
8533
|
-
const C = r1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ?
|
|
8533
|
+
const C = r1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ? A1(H) : J(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, t = M * L.y;
|
|
8534
8534
|
return {
|
|
8535
8535
|
width: i,
|
|
8536
8536
|
height: e,
|
|
@@ -8582,7 +8582,7 @@ function w5(H) {
|
|
|
8582
8582
|
} = H;
|
|
8583
8583
|
const i = [...C === "clippingAncestors" ? b5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, n) => {
|
|
8584
8584
|
const Z = K1(V, n, A);
|
|
8585
|
-
return t.top =
|
|
8585
|
+
return t.top = M1(Z.top, t.top), t.right = n1(Z.right, t.right), t.bottom = n1(Z.bottom, t.bottom), t.left = M1(Z.left, t.left), t;
|
|
8586
8586
|
}, K1(V, e, A));
|
|
8587
8587
|
return {
|
|
8588
8588
|
width: d.right - d.left,
|
|
@@ -8653,7 +8653,7 @@ const F5 = {
|
|
|
8653
8653
|
getElementRects: v5,
|
|
8654
8654
|
getClientRects: h5,
|
|
8655
8655
|
getDimensions: y5,
|
|
8656
|
-
getScale:
|
|
8656
|
+
getScale: A1,
|
|
8657
8657
|
isElement: Y,
|
|
8658
8658
|
isRTL: T5
|
|
8659
8659
|
}, R5 = (H, V, C) => {
|
|
@@ -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 },
|
|
@@ -8787,13 +8787,13 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8787
8787
|
ignore: [L.value]
|
|
8788
8788
|
}
|
|
8789
8789
|
);
|
|
8790
|
-
}), (B, y) => (m(), u(
|
|
8790
|
+
}), (B, y) => (m(), u(i1, null, [
|
|
8791
8791
|
S("div", {
|
|
8792
8792
|
ref_key: "trigger",
|
|
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
|
|
@@ -9008,7 +9008,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9008
9008
|
group: e.value !== "" || L.value.length
|
|
9009
9009
|
}]),
|
|
9010
9010
|
role: "select",
|
|
9011
|
-
onClick:
|
|
9011
|
+
onClick: (s) => r(s, b.click, x)
|
|
9012
9012
|
}, [
|
|
9013
9013
|
C.prependIcon || a.$slots.prepend ? (m(), u("div", {
|
|
9014
9014
|
key: 0,
|
|
@@ -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(
|
|
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:
|
|
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(
|
|
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:
|
|
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:
|
|
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] =
|
|
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, {
|
|
@@ -9484,7 +9484,7 @@ 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] =
|
|
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,
|
|
@@ -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(
|
|
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(
|
|
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
|
}, [
|