@rocketui/vue 0.2.66 → 0.2.68
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.d.ts +8 -0
- package/dist/rocket-ui-vue.js +62 -60
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.d.ts
CHANGED
|
@@ -1894,6 +1894,14 @@ declare interface Props_5 {
|
|
|
1894
1894
|
* <Checkbox reverse />
|
|
1895
1895
|
*/
|
|
1896
1896
|
reverse?: boolean;
|
|
1897
|
+
/**
|
|
1898
|
+
* Name of the checkbox
|
|
1899
|
+
* @type {string}
|
|
1900
|
+
* @default ''
|
|
1901
|
+
* @example
|
|
1902
|
+
* <Checkbox name="checkbox" />
|
|
1903
|
+
*/
|
|
1904
|
+
name?: string;
|
|
1897
1905
|
}
|
|
1898
1906
|
|
|
1899
1907
|
declare interface Props_6 {
|
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as m, createElementBlock as r, createElementVNode as u, unref as J, reactive as
|
|
1
|
+
import { defineComponent as x, openBlock as m, createElementBlock as r, createElementVNode as u, unref as J, reactive as v1, Fragment as t1, renderList as r1, normalizeClass as p, renderSlot as f, toDisplayString as w, createVNode as q, computed as g, createCommentVNode as O, mergeProps as N1, createBlock as _, watch as G, getCurrentScope as s2, onScopeDispose as c2, ref as W, watchEffect as p2, onMounted as V2, Teleport as O2, withCtx as g1, withDirectives as L2, withModifiers as A1, withKeys as z1, vModelText as f2, createTextVNode as u1, onUnmounted as h2, normalizeStyle as I1, vShow as g2, resolveComponent as k2, provide as p1, resolveDynamicComponent as B2, inject as O1 } from "vue";
|
|
2
2
|
const b2 = {
|
|
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",
|
|
@@ -7322,7 +7322,7 @@ const b2 = {
|
|
|
7322
7322
|
accordions: {}
|
|
7323
7323
|
},
|
|
7324
7324
|
setup(H) {
|
|
7325
|
-
const V = H, C =
|
|
7325
|
+
const V = H, C = v1(
|
|
7326
7326
|
V.accordions.map(({ title: i, content: L }, A) => ({
|
|
7327
7327
|
title: i,
|
|
7328
7328
|
content: L,
|
|
@@ -7596,7 +7596,7 @@ const b2 = {
|
|
|
7596
7596
|
},
|
|
7597
7597
|
emits: ["update:modelValue"],
|
|
7598
7598
|
setup(H, { emit: V }) {
|
|
7599
|
-
const C = H, M = V, i =
|
|
7599
|
+
const C = H, M = V, i = v1({
|
|
7600
7600
|
checked: !1,
|
|
7601
7601
|
indeterminate: !1
|
|
7602
7602
|
}), L = {
|
|
@@ -7819,7 +7819,7 @@ function e5() {
|
|
|
7819
7819
|
}
|
|
7820
7820
|
return `${H() + H()}-${H()}-${H()}-${H()}-${H()}${H()}${H()}`;
|
|
7821
7821
|
}
|
|
7822
|
-
const d5 = ["top", "right", "bottom", "left"], a1 = Math.min, e1 = Math.max,
|
|
7822
|
+
const d5 = ["top", "right", "bottom", "left"], a1 = Math.min, e1 = Math.max, k1 = Math.round, H1 = (H) => ({
|
|
7823
7823
|
x: H,
|
|
7824
7824
|
y: H
|
|
7825
7825
|
}), t5 = {
|
|
@@ -7840,7 +7840,7 @@ function l1(H, V) {
|
|
|
7840
7840
|
function i1(H) {
|
|
7841
7841
|
return H.split("-")[0];
|
|
7842
7842
|
}
|
|
7843
|
-
function
|
|
7843
|
+
function S1(H) {
|
|
7844
7844
|
return H.split("-")[1];
|
|
7845
7845
|
}
|
|
7846
7846
|
function e2(H) {
|
|
@@ -7857,12 +7857,12 @@ function G1(H) {
|
|
|
7857
7857
|
}
|
|
7858
7858
|
function l5(H, V, C) {
|
|
7859
7859
|
C === void 0 && (C = !1);
|
|
7860
|
-
const M =
|
|
7860
|
+
const M = S1(H), i = G1(H), L = Q1(i);
|
|
7861
7861
|
let A = i === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
|
|
7862
|
-
return V.reference[L] > V.floating[L] && (A =
|
|
7862
|
+
return V.reference[L] > V.floating[L] && (A = B1(A)), [A, B1(A)];
|
|
7863
7863
|
}
|
|
7864
7864
|
function o5(H) {
|
|
7865
|
-
const V =
|
|
7865
|
+
const V = B1(H);
|
|
7866
7866
|
return [_1(H), V, _1(V)];
|
|
7867
7867
|
}
|
|
7868
7868
|
function _1(H) {
|
|
@@ -7882,11 +7882,11 @@ function n5(H, V, C) {
|
|
|
7882
7882
|
}
|
|
7883
7883
|
}
|
|
7884
7884
|
function r5(H, V, C, M) {
|
|
7885
|
-
const i =
|
|
7885
|
+
const i = S1(H);
|
|
7886
7886
|
let L = n5(i1(H), C === "start", M);
|
|
7887
7887
|
return i && (L = L.map((A) => A + "-" + i), V && (L = L.concat(L.map(_1)))), L;
|
|
7888
7888
|
}
|
|
7889
|
-
function
|
|
7889
|
+
function B1(H) {
|
|
7890
7890
|
return H.replace(/left|right|bottom|top/g, (V) => t5[V]);
|
|
7891
7891
|
}
|
|
7892
7892
|
function a5(H) {
|
|
@@ -7906,7 +7906,7 @@ function d2(H) {
|
|
|
7906
7906
|
left: H
|
|
7907
7907
|
};
|
|
7908
7908
|
}
|
|
7909
|
-
function
|
|
7909
|
+
function b1(H) {
|
|
7910
7910
|
return {
|
|
7911
7911
|
...H,
|
|
7912
7912
|
top: H.y,
|
|
@@ -7953,7 +7953,7 @@ function j1(H, V, C) {
|
|
|
7953
7953
|
y: M.y
|
|
7954
7954
|
};
|
|
7955
7955
|
}
|
|
7956
|
-
switch (
|
|
7956
|
+
switch (S1(V)) {
|
|
7957
7957
|
case "start":
|
|
7958
7958
|
l[A] -= o * (C && t ? -1 : 1);
|
|
7959
7959
|
break;
|
|
@@ -8027,7 +8027,7 @@ const Z5 = async (H, V, C) => {
|
|
|
8027
8027
|
middlewareData: l
|
|
8028
8028
|
};
|
|
8029
8029
|
};
|
|
8030
|
-
async function
|
|
8030
|
+
async function w1(H, V) {
|
|
8031
8031
|
var C;
|
|
8032
8032
|
V === void 0 && (V = {});
|
|
8033
8033
|
const {
|
|
@@ -8043,7 +8043,7 @@ async function v1(H, V) {
|
|
|
8043
8043
|
elementContext: a = "floating",
|
|
8044
8044
|
altBoundary: o = !1,
|
|
8045
8045
|
padding: l = 0
|
|
8046
|
-
} = l1(V, H), S = d2(l), v = e[o ? a === "floating" ? "reference" : "floating" : a], k =
|
|
8046
|
+
} = l1(V, H), S = d2(l), v = e[o ? a === "floating" ? "reference" : "floating" : a], k = b1(await L.getClippingRect({
|
|
8047
8047
|
element: (C = await (L.isElement == null ? void 0 : L.isElement(v))) == null || C ? v : v.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
|
|
8048
8048
|
boundary: t,
|
|
8049
8049
|
rootBoundary: n,
|
|
@@ -8058,7 +8058,7 @@ async function v1(H, V) {
|
|
|
8058
8058
|
} : {
|
|
8059
8059
|
x: 1,
|
|
8060
8060
|
y: 1
|
|
8061
|
-
}, y =
|
|
8061
|
+
}, y = b1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
8062
8062
|
rect: b,
|
|
8063
8063
|
offsetParent: F,
|
|
8064
8064
|
strategy: d
|
|
@@ -8094,7 +8094,7 @@ const u5 = (H) => ({
|
|
|
8094
8094
|
}, l = G1(i), S = Q1(l), B = await A.getDimensions(t), v = l === "y", k = v ? "top" : "left", b = v ? "bottom" : "right", F = v ? "clientHeight" : "clientWidth", R = L.reference[S] + L.reference[l] - o[l] - L.floating[S], y = o[l] - L.reference[l], U = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(t));
|
|
8095
8095
|
let N = U ? U[F] : 0;
|
|
8096
8096
|
(!N || !await (A.isElement == null ? void 0 : A.isElement(U))) && (N = e.floating[F] || L.floating[S]);
|
|
8097
|
-
const h = R / 2 - y / 2, I = N / 2 - B[S] / 2 - 1, M1 = a1(a[k], I), Z = a1(a[b], I), s = M1, P = N - B[S] - Z, T = N / 2 - B[S] / 2 + h, c = D1(s, T, P), E = !d.arrow &&
|
|
8097
|
+
const h = R / 2 - y / 2, I = N / 2 - B[S] / 2 - 1, M1 = a1(a[k], I), Z = a1(a[b], I), s = M1, P = N - B[S] - Z, T = N / 2 - B[S] / 2 + h, c = D1(s, T, P), E = !d.arrow && S1(i) != null && T != c && L.reference[S] / 2 - (T < s ? M1 : Z) - B[S] / 2 < 0, $ = E ? T < s ? T - s : T - P : 0;
|
|
8098
8098
|
return {
|
|
8099
8099
|
[l]: o[l] + $,
|
|
8100
8100
|
data: {
|
|
@@ -8131,9 +8131,9 @@ const u5 = (H) => ({
|
|
|
8131
8131
|
} = l1(H, V);
|
|
8132
8132
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8133
8133
|
return {};
|
|
8134
|
-
const k = i1(i), b = i1(e) === e, F = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), R = o || (b || !B ? [
|
|
8134
|
+
const k = i1(i), b = i1(e) === e, F = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), R = o || (b || !B ? [B1(e)] : o5(e));
|
|
8135
8135
|
!o && S !== "none" && R.push(...r5(e, B, S, F));
|
|
8136
|
-
const y = [e, ...R], U = await
|
|
8136
|
+
const y = [e, ...R], U = await w1(V, v), N = [];
|
|
8137
8137
|
let h = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8138
8138
|
if (n && N.push(U[k]), a) {
|
|
8139
8139
|
const s = l5(i, A, F);
|
|
@@ -8203,7 +8203,7 @@ const s5 = function(H) {
|
|
|
8203
8203
|
} = l1(H, V);
|
|
8204
8204
|
switch (M) {
|
|
8205
8205
|
case "referenceHidden": {
|
|
8206
|
-
const L = await
|
|
8206
|
+
const L = await w1(V, {
|
|
8207
8207
|
...i,
|
|
8208
8208
|
elementContext: "reference"
|
|
8209
8209
|
}), A = X1(L, C.reference);
|
|
@@ -8215,7 +8215,7 @@ const s5 = function(H) {
|
|
|
8215
8215
|
};
|
|
8216
8216
|
}
|
|
8217
8217
|
case "escaped": {
|
|
8218
|
-
const L = await
|
|
8218
|
+
const L = await w1(V, {
|
|
8219
8219
|
...i,
|
|
8220
8220
|
altBoundary: !0
|
|
8221
8221
|
}), A = X1(L, C.floating);
|
|
@@ -8237,7 +8237,7 @@ async function c5(H, V) {
|
|
|
8237
8237
|
placement: C,
|
|
8238
8238
|
platform: M,
|
|
8239
8239
|
elements: i
|
|
8240
|
-
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A = i1(C), e =
|
|
8240
|
+
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A = i1(C), e = S1(C), d = y1(C) === "y", t = ["left", "top"].includes(A) ? -1 : 1, n = L && d ? -1 : 1, a = l1(V, H);
|
|
8241
8241
|
let {
|
|
8242
8242
|
mainAxis: o,
|
|
8243
8243
|
crossAxis: l,
|
|
@@ -8304,7 +8304,7 @@ const p5 = function(H) {
|
|
|
8304
8304
|
} = l1(H, V), t = {
|
|
8305
8305
|
x: C,
|
|
8306
8306
|
y: M
|
|
8307
|
-
}, n = await
|
|
8307
|
+
}, n = await w1(V, d), a = y1(i1(i)), o = e2(a);
|
|
8308
8308
|
let l = t[o], S = t[a];
|
|
8309
8309
|
if (L) {
|
|
8310
8310
|
const v = o === "y" ? "top" : "left", k = o === "y" ? "bottom" : "right", b = l + n[v], F = l - n[k];
|
|
@@ -8352,7 +8352,7 @@ function j(H) {
|
|
|
8352
8352
|
function J1(H) {
|
|
8353
8353
|
return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof z(H).ShadowRoot;
|
|
8354
8354
|
}
|
|
8355
|
-
function
|
|
8355
|
+
function s1(H) {
|
|
8356
8356
|
const {
|
|
8357
8357
|
overflow: V,
|
|
8358
8358
|
overflowX: C,
|
|
@@ -8409,18 +8409,18 @@ function m1(H) {
|
|
|
8409
8409
|
}
|
|
8410
8410
|
function m2(H) {
|
|
8411
8411
|
const V = m1(H);
|
|
8412
|
-
return P1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : j(V) &&
|
|
8412
|
+
return P1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : j(V) && s1(V) ? V : m2(V);
|
|
8413
8413
|
}
|
|
8414
8414
|
function E1(H, V, C) {
|
|
8415
8415
|
var M;
|
|
8416
8416
|
V === void 0 && (V = []), C === void 0 && (C = !0);
|
|
8417
8417
|
const i = m2(H), L = i === ((M = H.ownerDocument) == null ? void 0 : M.body), A = z(i);
|
|
8418
|
-
return L ? V.concat(A, A.visualViewport || [],
|
|
8418
|
+
return L ? V.concat(A, A.visualViewport || [], s1(i) ? i : [], A.frameElement && C ? E1(A.frameElement) : []) : V.concat(i, E1(i, [], C));
|
|
8419
8419
|
}
|
|
8420
8420
|
function l2(H) {
|
|
8421
8421
|
const V = K(H);
|
|
8422
8422
|
let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
|
|
8423
|
-
const i = j(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, e =
|
|
8423
|
+
const i = j(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, e = k1(C) !== L || k1(M) !== A;
|
|
8424
8424
|
return e && (C = L, M = A), {
|
|
8425
8425
|
width: C,
|
|
8426
8426
|
height: M,
|
|
@@ -8439,7 +8439,7 @@ function d1(H) {
|
|
|
8439
8439
|
height: i,
|
|
8440
8440
|
$: L
|
|
8441
8441
|
} = l2(V);
|
|
8442
|
-
let A = (L ?
|
|
8442
|
+
let A = (L ? k1(C.width) : C.width) / M, e = (L ? k1(C.height) : C.height) / i;
|
|
8443
8443
|
return (!A || !Number.isFinite(A)) && (A = 1), (!e || !Number.isFinite(e)) && (e = 1), {
|
|
8444
8444
|
x: A,
|
|
8445
8445
|
y: e
|
|
@@ -8471,7 +8471,7 @@ function Z1(H, V, C, M) {
|
|
|
8471
8471
|
d *= B.x, t *= B.y, n *= B.x, a *= B.y, d += b, t += F, S = z(S).frameElement;
|
|
8472
8472
|
}
|
|
8473
8473
|
}
|
|
8474
|
-
return
|
|
8474
|
+
return b1({
|
|
8475
8475
|
width: n,
|
|
8476
8476
|
height: a,
|
|
8477
8477
|
x: d,
|
|
@@ -8492,7 +8492,7 @@ function B5(H) {
|
|
|
8492
8492
|
scrollTop: 0
|
|
8493
8493
|
}, e = H1(1);
|
|
8494
8494
|
const d = H1(0);
|
|
8495
|
-
if ((i || !i && M !== "fixed") && ((V1(C) !== "body" ||
|
|
8495
|
+
if ((i || !i && M !== "fixed") && ((V1(C) !== "body" || s1(L)) && (A = T1(C)), j(C))) {
|
|
8496
8496
|
const t = Z1(C);
|
|
8497
8497
|
e = d1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
|
|
8498
8498
|
}
|
|
@@ -8560,7 +8560,7 @@ function C2(H, V, C) {
|
|
|
8560
8560
|
y: V.y - i.y
|
|
8561
8561
|
};
|
|
8562
8562
|
}
|
|
8563
|
-
return
|
|
8563
|
+
return b1(M);
|
|
8564
8564
|
}
|
|
8565
8565
|
function a2(H, V) {
|
|
8566
8566
|
const C = m1(H);
|
|
@@ -8575,7 +8575,7 @@ function P5(H, V) {
|
|
|
8575
8575
|
let A = L ? m1(H) : H;
|
|
8576
8576
|
for (; C1(A) && !P1(A); ) {
|
|
8577
8577
|
const e = K(A), d = $1(A);
|
|
8578
|
-
!d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) ||
|
|
8578
|
+
!d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || s1(A) && !d && a2(H, A)) ? M = M.filter((n) => n !== A) : i = e, A = m1(A);
|
|
8579
8579
|
}
|
|
8580
8580
|
return V.set(H, M), M;
|
|
8581
8581
|
}
|
|
@@ -8608,7 +8608,7 @@ function R5(H, V, C) {
|
|
|
8608
8608
|
};
|
|
8609
8609
|
const d = H1(0);
|
|
8610
8610
|
if (M || !M && !L)
|
|
8611
|
-
if ((V1(V) !== "body" ||
|
|
8611
|
+
if ((V1(V) !== "body" || s1(i)) && (e = T1(V)), M) {
|
|
8612
8612
|
const t = Z1(V, !0, L, V);
|
|
8613
8613
|
d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
|
|
8614
8614
|
} else
|
|
@@ -8927,15 +8927,15 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8927
8927
|
return;
|
|
8928
8928
|
const s = document.getElementById(Z);
|
|
8929
8929
|
document.querySelectorAll(".r-dropdown--active").forEach((Q) => {
|
|
8930
|
-
var
|
|
8931
|
-
Q.id !== ((
|
|
8930
|
+
var c1;
|
|
8931
|
+
Q.id !== ((c1 = a.value) == null ? void 0 : c1.id) && Q.classList.contains("r-dropdown--active") && (Q.childNodes.forEach((X) => {
|
|
8932
8932
|
X != null && X.classList && (Object == null || Object.values(X == null ? void 0 : X.classList).filter((F1) => F1.includes("--active")).forEach((F1) => {
|
|
8933
8933
|
X == null || X.classList.remove(F1);
|
|
8934
8934
|
}));
|
|
8935
8935
|
}), Q.classList.remove("r-dropdown--active"));
|
|
8936
8936
|
}), s != null && s.classList.contains("r-dropdown--active") ? (s.classList.remove("r-dropdown--active"), A.value = !1, (T = a.value) == null || T.blur(), (c = o.value) == null || c.blur()) : (s == null || s.classList.add("r-dropdown--active"), A.value = !0, (E = a.value) == null || E.focus(), ($ = o.value) == null || $.focus(), s == null || s.childNodes.forEach((Q) => {
|
|
8937
|
-
Q != null && Q.classList && (Object == null || Object.values(Q == null ? void 0 : Q.classList).forEach((
|
|
8938
|
-
Q == null || Q.classList.add(`${
|
|
8937
|
+
Q != null && Q.classList && (Object == null || Object.values(Q == null ? void 0 : Q.classList).forEach((c1) => {
|
|
8938
|
+
Q == null || Q.classList.add(`${c1}--active`);
|
|
8939
8939
|
}));
|
|
8940
8940
|
}));
|
|
8941
8941
|
}
|
|
@@ -9036,7 +9036,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9036
9036
|
B(P);
|
|
9037
9037
|
})
|
|
9038
9038
|
}, {
|
|
9039
|
-
default:
|
|
9039
|
+
default: g1(({ updatePosition: P, tooltipId: T }) => [
|
|
9040
9040
|
u("div", {
|
|
9041
9041
|
id: T,
|
|
9042
9042
|
ref_key: "dropdown",
|
|
@@ -9144,7 +9144,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9144
9144
|
], 2)) : O("", !0)
|
|
9145
9145
|
], 10, $5)
|
|
9146
9146
|
]),
|
|
9147
|
-
content:
|
|
9147
|
+
content: g1(({ hide: P, updatePosition: T }) => [
|
|
9148
9148
|
u("ul", {
|
|
9149
9149
|
class: p(["r-dropdown-options", {
|
|
9150
9150
|
"r-dropdown-options--active": A.value,
|
|
@@ -9221,7 +9221,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9221
9221
|
], 10, C3))), 128)),
|
|
9222
9222
|
y.value.length === 0 ? (m(), r("li", V3, [
|
|
9223
9223
|
f(Z.$slots, "not-options", {}, () => [
|
|
9224
|
-
|
|
9224
|
+
u1(w(C.noOptionsText), 1)
|
|
9225
9225
|
])
|
|
9226
9226
|
])) : O("", !0)
|
|
9227
9227
|
], 2)
|
|
@@ -9249,7 +9249,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9249
9249
|
for: V.for
|
|
9250
9250
|
}, [
|
|
9251
9251
|
f(C.$slots, "default", {}, () => [
|
|
9252
|
-
|
|
9252
|
+
u1(w(V.text), 1)
|
|
9253
9253
|
])
|
|
9254
9254
|
], 8, e3));
|
|
9255
9255
|
}
|
|
@@ -9364,7 +9364,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9364
9364
|
f(i.$slots, "trigger", {
|
|
9365
9365
|
open: C.modelValue
|
|
9366
9366
|
}, () => [
|
|
9367
|
-
|
|
9367
|
+
u1(" > ")
|
|
9368
9368
|
])
|
|
9369
9369
|
], 10, S3)) : O("", !0)
|
|
9370
9370
|
], 10, Z3));
|
|
@@ -9419,7 +9419,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9419
9419
|
]),
|
|
9420
9420
|
u("div", s3, [
|
|
9421
9421
|
f(A.$slots, "default", {}, () => [
|
|
9422
|
-
|
|
9422
|
+
u1(w(C.text), 1)
|
|
9423
9423
|
])
|
|
9424
9424
|
]),
|
|
9425
9425
|
C.closable ? (m(), r("div", {
|
|
@@ -9436,7 +9436,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9436
9436
|
])) : O("", !0)
|
|
9437
9437
|
], 2));
|
|
9438
9438
|
}
|
|
9439
|
-
}), c3 = ["id", "checked", "disabled"], p3 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), O3 = ["id", "for"], f3 = {
|
|
9439
|
+
}), c3 = ["id", "checked", "disabled", "name"], p3 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), O3 = ["id", "for"], f3 = {
|
|
9440
9440
|
key: 0,
|
|
9441
9441
|
class: "r-switch-texts__details"
|
|
9442
9442
|
}, h3 = {
|
|
@@ -9456,11 +9456,12 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9456
9456
|
errorMsg: { default: "" },
|
|
9457
9457
|
size: { default: "medium" },
|
|
9458
9458
|
hideDetails: { type: Boolean },
|
|
9459
|
-
reverse: { type: Boolean }
|
|
9459
|
+
reverse: { type: Boolean },
|
|
9460
|
+
name: {}
|
|
9460
9461
|
},
|
|
9461
9462
|
emits: ["update:modelValue"],
|
|
9462
9463
|
setup(H, { emit: V }) {
|
|
9463
|
-
const C = H, M = V, i =
|
|
9464
|
+
const C = H, M = V, i = W({
|
|
9464
9465
|
checked: !1
|
|
9465
9466
|
}), L = g(() => ({
|
|
9466
9467
|
"r-switch": !0,
|
|
@@ -9469,12 +9470,12 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9469
9470
|
"r-switch--error": C.errorMsg
|
|
9470
9471
|
}));
|
|
9471
9472
|
function A(e) {
|
|
9472
|
-
C.disabled || (i.checked = e.target.checked, M("update:modelValue", i.checked));
|
|
9473
|
+
C.disabled || (i.value.checked = e.target.checked, M("update:modelValue", i.value.checked));
|
|
9473
9474
|
}
|
|
9474
9475
|
return G(
|
|
9475
9476
|
() => C.modelValue,
|
|
9476
9477
|
(e) => {
|
|
9477
|
-
i.checked = e;
|
|
9478
|
+
i.value.checked = e;
|
|
9478
9479
|
},
|
|
9479
9480
|
{
|
|
9480
9481
|
// need immediate to set the state on first render for storybook
|
|
@@ -9492,9 +9493,10 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9492
9493
|
}, [
|
|
9493
9494
|
u("input", {
|
|
9494
9495
|
id: C.id,
|
|
9495
|
-
checked: i.checked,
|
|
9496
|
+
checked: i.value.checked,
|
|
9496
9497
|
class: "r-switch__input",
|
|
9497
9498
|
disabled: C.disabled,
|
|
9499
|
+
name: C.name,
|
|
9498
9500
|
type: "checkbox",
|
|
9499
9501
|
onChange: A
|
|
9500
9502
|
}, null, 40, c3),
|
|
@@ -9568,7 +9570,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9568
9570
|
f(d.$slots, "default", {
|
|
9569
9571
|
label: C.label
|
|
9570
9572
|
}, () => [
|
|
9571
|
-
|
|
9573
|
+
u1(w(C.label), 1)
|
|
9572
9574
|
])
|
|
9573
9575
|
])) : O("", !0),
|
|
9574
9576
|
f(d.$slots, "append", {
|
|
@@ -9664,7 +9666,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9664
9666
|
},
|
|
9665
9667
|
emits: ["update:modelValue"],
|
|
9666
9668
|
setup(H, { emit: V }) {
|
|
9667
|
-
const C = H, M = V, i =
|
|
9669
|
+
const C = H, M = V, i = v1({
|
|
9668
9670
|
value: ""
|
|
9669
9671
|
});
|
|
9670
9672
|
function L(A) {
|
|
@@ -9741,7 +9743,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9741
9743
|
"click:clear"
|
|
9742
9744
|
],
|
|
9743
9745
|
setup(H, { emit: V }) {
|
|
9744
|
-
const C = H, M = V, i = W(), L =
|
|
9746
|
+
const C = H, M = V, i = W(), L = v1({
|
|
9745
9747
|
value: ""
|
|
9746
9748
|
}), A = W(C.type), e = {
|
|
9747
9749
|
password: "mdiLock",
|
|
@@ -9913,7 +9915,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9913
9915
|
class: "r-breadcrumb__link",
|
|
9914
9916
|
to: L.to
|
|
9915
9917
|
}, {
|
|
9916
|
-
default:
|
|
9918
|
+
default: g1(() => [
|
|
9917
9919
|
f(C.$slots, "item-icon", {}, () => [
|
|
9918
9920
|
L.icon ? (m(), _(D, {
|
|
9919
9921
|
key: 0,
|
|
@@ -10117,7 +10119,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10117
10119
|
value: V.value
|
|
10118
10120
|
}, null, 12, t0));
|
|
10119
10121
|
}
|
|
10120
|
-
}),
|
|
10122
|
+
}), f1 = "rocket-ui:r-item-group", v0 = /* @__PURE__ */ x({
|
|
10121
10123
|
__name: "RItemGroup",
|
|
10122
10124
|
props: {
|
|
10123
10125
|
modelValue: { default: () => [] },
|
|
@@ -10131,22 +10133,22 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10131
10133
|
emits: ["update:modelValue"],
|
|
10132
10134
|
setup(H, { emit: V }) {
|
|
10133
10135
|
const C = H, M = V, i = W(C.as ?? "div"), L = W(C.modelValue), A = g(() => C.selectedClass);
|
|
10134
|
-
|
|
10136
|
+
p1(`${f1}:selectedClass`, A.value);
|
|
10135
10137
|
function e(n) {
|
|
10136
10138
|
return L.value.includes(n);
|
|
10137
10139
|
}
|
|
10138
|
-
|
|
10140
|
+
p1(`${f1}:isSelected`, e);
|
|
10139
10141
|
function d(n, a) {
|
|
10140
10142
|
C.disabled || C.mandatory && L.value.length === 1 && !a || C.max && L.value.length === C.max && a || (C.multiple ? a ? L.value.push(n) : L.value = L.value.filter((o) => o !== n) : L.value = n ? [n] : [], M("update:modelValue", L.value));
|
|
10141
10143
|
}
|
|
10142
|
-
|
|
10144
|
+
p1(`${f1}:select`, d);
|
|
10143
10145
|
function t() {
|
|
10144
10146
|
return C.disabled;
|
|
10145
10147
|
}
|
|
10146
|
-
return
|
|
10148
|
+
return p1(`${f1}:isDisabled`, t), G(() => C.modelValue, () => {
|
|
10147
10149
|
L.value = C.modelValue;
|
|
10148
10150
|
}), (n, a) => (m(), _(B2(i.value), null, {
|
|
10149
|
-
default:
|
|
10151
|
+
default: g1(() => [
|
|
10150
10152
|
f(n.$slots, "default", {
|
|
10151
10153
|
isSelected: e,
|
|
10152
10154
|
select: d,
|
|
@@ -10156,14 +10158,14 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10156
10158
|
_: 3
|
|
10157
10159
|
}));
|
|
10158
10160
|
}
|
|
10159
|
-
}),
|
|
10161
|
+
}), h1 = "rocket-ui:r-item-group", y0 = /* @__PURE__ */ x({
|
|
10160
10162
|
__name: "RItem",
|
|
10161
10163
|
props: {
|
|
10162
10164
|
value: { default: null },
|
|
10163
10165
|
selectedClass: { default: "" }
|
|
10164
10166
|
},
|
|
10165
10167
|
setup(H) {
|
|
10166
|
-
const V = H, C =
|
|
10168
|
+
const V = H, C = O1(`${h1}:isSelected`), M = O1(`${h1}:selectedClass`, ""), i = O1(`${h1}:select`), L = O1(`${h1}:isDisabled`), A = g(() => C(V.value) && [M, V.selectedClass]);
|
|
10167
10169
|
function e() {
|
|
10168
10170
|
V.disabled || i(V.value, !C(V.value));
|
|
10169
10171
|
}
|