@rocketui/vue 0.2.3 → 0.2.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 +21 -19
- 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 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
|
|
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),
|
|
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
|
-
|
|
8072
|
+
...$ && {
|
|
8073
8073
|
alignmentOffset: j
|
|
8074
8074
|
}
|
|
8075
8075
|
},
|
|
8076
|
-
reset:
|
|
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,
|
|
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((
|
|
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
|
-
}),
|
|
8953
|
+
}), G(L, (S) => {
|
|
8954
8954
|
M("update:modelValue", S);
|
|
8955
|
-
}),
|
|
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": (
|
|
9014
|
+
"onClick:close": ($) => P($, s, x)
|
|
9015
9015
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
9016
9016
|
])
|
|
9017
9017
|
])) : c("", !0),
|
|
@@ -9194,6 +9194,8 @@ 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");
|
|
9197
9199
|
}), (e, t) => J1((m(), n("div", {
|
|
9198
9200
|
class: p(["r-modal-overlay", e.overlayClass]),
|
|
9199
9201
|
onClick: d1(i, ["stop"])
|
|
@@ -9277,7 +9279,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9277
9279
|
emits: ["action", "update:modelValue"],
|
|
9278
9280
|
setup(H, { emit: V }) {
|
|
9279
9281
|
const C = H, M = V;
|
|
9280
|
-
|
|
9282
|
+
G(
|
|
9281
9283
|
() => C.modelValue,
|
|
9282
9284
|
() => {
|
|
9283
9285
|
C.timeout > 0 && C.modelValue && setTimeout(() => {
|
|
@@ -9359,7 +9361,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9359
9361
|
function i(e) {
|
|
9360
9362
|
C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
|
|
9361
9363
|
}
|
|
9362
|
-
return
|
|
9364
|
+
return G(
|
|
9363
9365
|
() => C.modelValue,
|
|
9364
9366
|
(e) => {
|
|
9365
9367
|
A.checked = e;
|
|
@@ -9492,7 +9494,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9492
9494
|
"r-tabs--tile": C.tile,
|
|
9493
9495
|
"r-tabs--scrollable": C.scrollable
|
|
9494
9496
|
}));
|
|
9495
|
-
|
|
9497
|
+
G(
|
|
9496
9498
|
() => A.value,
|
|
9497
9499
|
() => {
|
|
9498
9500
|
M("update:modelValue", A.value);
|
|
@@ -9552,7 +9554,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9552
9554
|
function L(i) {
|
|
9553
9555
|
M("update:modelValue", i.target.value);
|
|
9554
9556
|
}
|
|
9555
|
-
return
|
|
9557
|
+
return G(
|
|
9556
9558
|
() => C.modelValue,
|
|
9557
9559
|
(i) => {
|
|
9558
9560
|
A.value = i;
|
|
@@ -9689,7 +9691,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9689
9691
|
var O;
|
|
9690
9692
|
(O = A.value) == null || O.focus();
|
|
9691
9693
|
}
|
|
9692
|
-
return
|
|
9694
|
+
return G(
|
|
9693
9695
|
() => C.modelValue,
|
|
9694
9696
|
(O) => {
|
|
9695
9697
|
L.value = O;
|
|
@@ -9697,7 +9699,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9697
9699
|
{
|
|
9698
9700
|
immediate: !0
|
|
9699
9701
|
}
|
|
9700
|
-
),
|
|
9702
|
+
), G(
|
|
9701
9703
|
() => L.value,
|
|
9702
9704
|
(O) => {
|
|
9703
9705
|
M(
|
|
@@ -9848,7 +9850,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9848
9850
|
start: C.page * C.perPage - C.perPage,
|
|
9849
9851
|
end: C.page * C.perPage
|
|
9850
9852
|
}));
|
|
9851
|
-
|
|
9853
|
+
G(() => i.value, () => {
|
|
9852
9854
|
M("update:info", i.value);
|
|
9853
9855
|
});
|
|
9854
9856
|
function e(d) {
|