@rocketui/vue 0.1.22 → 0.1.23
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 +12 -12
- package/dist/rocket-ui-vue.js +141 -145
- 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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 w, 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 _, 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",
|
|
@@ -7317,7 +7317,7 @@ const g2 = {
|
|
|
7317
7317
|
], 8, k2));
|
|
7318
7318
|
}
|
|
7319
7319
|
});
|
|
7320
|
-
const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title" }, P2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" },
|
|
7320
|
+
const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title" }, P2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, q3 = /* @__PURE__ */ T({
|
|
7321
7321
|
__name: "RAccordion",
|
|
7322
7322
|
props: {
|
|
7323
7323
|
accordions: {}
|
|
@@ -7348,7 +7348,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7348
7348
|
onClick: (d) => M(e)
|
|
7349
7349
|
}, [
|
|
7350
7350
|
f(A.$slots, "title", {}, () => [
|
|
7351
|
-
S("div", y2,
|
|
7351
|
+
S("div", y2, w(i.title), 1)
|
|
7352
7352
|
]),
|
|
7353
7353
|
S("div", P2, [
|
|
7354
7354
|
$(x, { name: "mdiChevronUp" })
|
|
@@ -7356,7 +7356,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7356
7356
|
], 8, w2),
|
|
7357
7357
|
S("div", T2, [
|
|
7358
7358
|
f(A.$slots, "content", {}, () => [
|
|
7359
|
-
S("span", null,
|
|
7359
|
+
S("span", null, w(i.content), 1)
|
|
7360
7360
|
])
|
|
7361
7361
|
])
|
|
7362
7362
|
], 10, b2))), 128));
|
|
@@ -7367,7 +7367,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7367
7367
|
}, D2 = {
|
|
7368
7368
|
key: 0,
|
|
7369
7369
|
class: "r-alert__close"
|
|
7370
|
-
},
|
|
7370
|
+
}, Y3 = /* @__PURE__ */ T({
|
|
7371
7371
|
__name: "RAlert",
|
|
7372
7372
|
props: {
|
|
7373
7373
|
type: { default: "info" },
|
|
@@ -7406,8 +7406,8 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7406
7406
|
]),
|
|
7407
7407
|
S("div", F2, [
|
|
7408
7408
|
f(e.$slots, "content", {}, () => [
|
|
7409
|
-
S("p", R2,
|
|
7410
|
-
C.description ? (m(), n("p", x2,
|
|
7409
|
+
S("p", R2, w(C.title), 1),
|
|
7410
|
+
C.description ? (m(), n("p", x2, w(C.description), 1)) : c("", !0)
|
|
7411
7411
|
])
|
|
7412
7412
|
]),
|
|
7413
7413
|
C.closable ? (m(), n("div", D2, [
|
|
@@ -7422,7 +7422,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7422
7422
|
])) : c("", !0)
|
|
7423
7423
|
], 2));
|
|
7424
7424
|
}
|
|
7425
|
-
}), I1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K",
|
|
7425
|
+
}), I1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", E2 = { class: "r-avatar__wrapper" }, _2 = ["alt", "src"], X3 = /* @__PURE__ */ T({
|
|
7426
7426
|
__name: "RAvatar",
|
|
7427
7427
|
props: {
|
|
7428
7428
|
type: { default: "image" },
|
|
@@ -7441,14 +7441,14 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7441
7441
|
const e = i.split(" ");
|
|
7442
7442
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7443
7443
|
}
|
|
7444
|
-
return (i, e) => (m(), n("div",
|
|
7444
|
+
return (i, e) => (m(), n("div", E2, [
|
|
7445
7445
|
S("div", {
|
|
7446
7446
|
class: p(C.value)
|
|
7447
7447
|
}, [
|
|
7448
7448
|
V.type === "text" ? (m(), n("p", {
|
|
7449
7449
|
key: 0,
|
|
7450
7450
|
class: p(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
|
|
7451
|
-
},
|
|
7451
|
+
}, w(L(V.text)), 3)) : (m(), n("img", {
|
|
7452
7452
|
key: 1,
|
|
7453
7453
|
alt: V.alt,
|
|
7454
7454
|
class: p(["r-avatar__image", {
|
|
@@ -7456,7 +7456,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7456
7456
|
"r-avatar__image--anonymous": M.value
|
|
7457
7457
|
}]),
|
|
7458
7458
|
src: A.value
|
|
7459
|
-
}, null, 10,
|
|
7459
|
+
}, null, 10, _2))
|
|
7460
7460
|
], 2),
|
|
7461
7461
|
V.online ? (m(), n("span", {
|
|
7462
7462
|
key: 0,
|
|
@@ -7466,7 +7466,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7466
7466
|
}, null, 2)) : c("", !0)
|
|
7467
7467
|
]));
|
|
7468
7468
|
}
|
|
7469
|
-
}), N2 = { class: "r-badge-wrapper group" },
|
|
7469
|
+
}), N2 = { class: "r-badge-wrapper group" }, J3 = /* @__PURE__ */ T({
|
|
7470
7470
|
__name: "RBadge",
|
|
7471
7471
|
props: {
|
|
7472
7472
|
variant: { default: "primary" },
|
|
@@ -7499,7 +7499,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7499
7499
|
f(M.$slots, "default")
|
|
7500
7500
|
]));
|
|
7501
7501
|
}
|
|
7502
|
-
}), W2 = ["disabled"],
|
|
7502
|
+
}), W2 = ["disabled"], C0 = /* @__PURE__ */ T({
|
|
7503
7503
|
__name: "RButton",
|
|
7504
7504
|
props: {
|
|
7505
7505
|
variant: { default: "default" },
|
|
@@ -7566,7 +7566,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7566
7566
|
}, q2 = {
|
|
7567
7567
|
key: 1,
|
|
7568
7568
|
class: "r-checkbox-texts__hint"
|
|
7569
|
-
},
|
|
7569
|
+
}, H0 = /* @__PURE__ */ T({
|
|
7570
7570
|
__name: "RCheckbox",
|
|
7571
7571
|
props: {
|
|
7572
7572
|
id: { default: "" },
|
|
@@ -7643,9 +7643,9 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7643
7643
|
class: "r-checkbox-texts__label",
|
|
7644
7644
|
"data-disabled": C.disabled,
|
|
7645
7645
|
for: C.id
|
|
7646
|
-
},
|
|
7646
|
+
}, w(C.label), 9, $2),
|
|
7647
7647
|
C.hideDetails ? c("", !0) : (m(), n("div", K2, [
|
|
7648
|
-
C.errorMsg ? (m(), n("p", j2,
|
|
7648
|
+
C.errorMsg ? (m(), n("p", j2, w(C.errorMsg), 1)) : (m(), n("p", q2, w(C.hint), 1))
|
|
7649
7649
|
]))
|
|
7650
7650
|
])
|
|
7651
7651
|
]));
|
|
@@ -7692,7 +7692,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7692
7692
|
size: 12
|
|
7693
7693
|
}, null, 8, ["aria-disabled", "name"])) : c("", !0)
|
|
7694
7694
|
]),
|
|
7695
|
-
S("span", Y2,
|
|
7695
|
+
S("span", Y2, w(C.label), 1)
|
|
7696
7696
|
]),
|
|
7697
7697
|
f(e.$slots, "append", {}, () => [
|
|
7698
7698
|
C.appendIcon ? (m(), D(x, {
|
|
@@ -7822,12 +7822,12 @@ function D1(H) {
|
|
|
7822
7822
|
function f1(H) {
|
|
7823
7823
|
return ["top", "bottom"].includes(L1(H)) ? "y" : "x";
|
|
7824
7824
|
}
|
|
7825
|
-
function
|
|
7825
|
+
function E1(H) {
|
|
7826
7826
|
return V2(f1(H));
|
|
7827
7827
|
}
|
|
7828
7828
|
function d5(H, V, C) {
|
|
7829
7829
|
C === void 0 && (C = !1);
|
|
7830
|
-
const M = u1(H), A =
|
|
7830
|
+
const M = u1(H), A = E1(H), L = D1(A);
|
|
7831
7831
|
let i = A === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
|
|
7832
7832
|
return V.reference[L] > V.floating[L] && (i = c1(i)), [i, c1(i)];
|
|
7833
7833
|
}
|
|
@@ -7890,7 +7890,7 @@ function G1(H, V, C) {
|
|
|
7890
7890
|
reference: M,
|
|
7891
7891
|
floating: A
|
|
7892
7892
|
} = H;
|
|
7893
|
-
const L = f1(V), i =
|
|
7893
|
+
const L = f1(V), i = E1(V), e = D1(i), d = L1(V), t = L === "y", u = M.x + M.width / 2 - A.width / 2, Z = M.y + M.height / 2 - A.height / 2, r = M[e] / 2 - A[e] / 2;
|
|
7894
7894
|
let o;
|
|
7895
7895
|
switch (d) {
|
|
7896
7896
|
case "top":
|
|
@@ -7951,13 +7951,13 @@ const n5 = async (H, V, C) => {
|
|
|
7951
7951
|
for (let k = 0; k < e.length; k++) {
|
|
7952
7952
|
const {
|
|
7953
7953
|
name: h,
|
|
7954
|
-
fn:
|
|
7954
|
+
fn: b
|
|
7955
7955
|
} = e[k], {
|
|
7956
7956
|
x: y,
|
|
7957
7957
|
y: P,
|
|
7958
|
-
data:
|
|
7958
|
+
data: E,
|
|
7959
7959
|
reset: v
|
|
7960
|
-
} = await
|
|
7960
|
+
} = await b({
|
|
7961
7961
|
x: u,
|
|
7962
7962
|
y: Z,
|
|
7963
7963
|
initialPlacement: M,
|
|
@@ -7975,7 +7975,7 @@ const n5 = async (H, V, C) => {
|
|
|
7975
7975
|
...o,
|
|
7976
7976
|
[h]: {
|
|
7977
7977
|
...o[h],
|
|
7978
|
-
...
|
|
7978
|
+
...E
|
|
7979
7979
|
}
|
|
7980
7980
|
}, v && a <= 50) {
|
|
7981
7981
|
a++, typeof v == "object" && (v.placement && (r = v.placement), v.rects && (t = v.rects === !0 ? await i.getElementRects({
|
|
@@ -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
|
-
} = l1(V, H), a = L2(o), h = e[r ? Z === "floating" ? "reference" : "floating" : Z],
|
|
8016
|
+
} = l1(V, H), a = L2(o), h = e[r ? Z === "floating" ? "reference" : "floating" : Z], b = 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,
|
|
@@ -8022,7 +8022,7 @@ async function p1(H, V) {
|
|
|
8022
8022
|
...i.floating,
|
|
8023
8023
|
x: M,
|
|
8024
8024
|
y: A
|
|
8025
|
-
} : i.reference, P = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)),
|
|
8025
|
+
} : i.reference, P = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), E = await (L.isElement == null ? void 0 : L.isElement(P)) ? await (L.getScale == null ? void 0 : L.getScale(P)) || {
|
|
8026
8026
|
x: 1,
|
|
8027
8027
|
y: 1
|
|
8028
8028
|
} : {
|
|
@@ -8034,10 +8034,10 @@ async function p1(H, V) {
|
|
|
8034
8034
|
strategy: d
|
|
8035
8035
|
}) : y);
|
|
8036
8036
|
return {
|
|
8037
|
-
top: (
|
|
8038
|
-
bottom: (v.bottom -
|
|
8039
|
-
left: (
|
|
8040
|
-
right: (v.right -
|
|
8037
|
+
top: (b.top - v.top + a.top) / E.y,
|
|
8038
|
+
bottom: (v.bottom - b.bottom + a.bottom) / E.y,
|
|
8039
|
+
left: (b.left - v.left + a.left) / E.x,
|
|
8040
|
+
right: (v.right - b.right + a.right) / E.x
|
|
8041
8041
|
};
|
|
8042
8042
|
}
|
|
8043
8043
|
const r5 = (H) => ({
|
|
@@ -8061,10 +8061,10 @@ const r5 = (H) => ({
|
|
|
8061
8061
|
const Z = L2(u), r = {
|
|
8062
8062
|
x: C,
|
|
8063
8063
|
y: M
|
|
8064
|
-
}, o =
|
|
8064
|
+
}, o = E1(A), a = D1(o), k = await i.getDimensions(t), h = o === "y", b = h ? "top" : "left", y = h ? "bottom" : "right", P = h ? "clientHeight" : "clientWidth", E = L.reference[a] + L.reference[o] - r[o] - L.floating[a], v = r[o] - L.reference[o], Q = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
|
|
8065
8065
|
let s = Q ? Q[P] : 0;
|
|
8066
8066
|
(!s || !await (i.isElement == null ? void 0 : i.isElement(Q))) && (s = e.floating[P] || L.floating[a]);
|
|
8067
|
-
const l =
|
|
8067
|
+
const l = E / 2 - v / 2, B = s / 2 - k[a] / 2 - 1, F = a1(Z[b], B), O = a1(Z[y], B), R = F, H1 = s - k[a] - O, N = s / 2 - k[a] / 2 + l, z = T1(R, N, H1), U = !d.arrow && u1(A) != null && N != z && L.reference[a] / 2 - (N < R ? F : O) - k[a] / 2 < 0, j = U ? N < R ? N - R : N - H1 : 0;
|
|
8068
8068
|
return {
|
|
8069
8069
|
[o]: r[o] + j,
|
|
8070
8070
|
data: {
|
|
@@ -8101,11 +8101,11 @@ const r5 = (H) => ({
|
|
|
8101
8101
|
} = l1(H, V);
|
|
8102
8102
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8103
8103
|
return {};
|
|
8104
|
-
const
|
|
8105
|
-
!r && a !== "none" &&
|
|
8106
|
-
const v = [e, ...
|
|
8104
|
+
const b = L1(A), y = L1(e) === e, P = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), E = r || (y || !k ? [c1(e)] : t5(e));
|
|
8105
|
+
!r && a !== "none" && E.push(...l5(e, k, a, P));
|
|
8106
|
+
const v = [e, ...E], Q = await p1(V, h), s = [];
|
|
8107
8107
|
let l = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8108
|
-
if (u && s.push(Q[
|
|
8108
|
+
if (u && s.push(Q[b]), Z) {
|
|
8109
8109
|
const R = d5(A, i, P);
|
|
8110
8110
|
s.push(Q[R[0]], Q[R[1]]);
|
|
8111
8111
|
}
|
|
@@ -8261,11 +8261,11 @@ const S5 = function(H) {
|
|
|
8261
8261
|
limiter: e = {
|
|
8262
8262
|
fn: (h) => {
|
|
8263
8263
|
let {
|
|
8264
|
-
x:
|
|
8264
|
+
x: b,
|
|
8265
8265
|
y
|
|
8266
8266
|
} = h;
|
|
8267
8267
|
return {
|
|
8268
|
-
x:
|
|
8268
|
+
x: b,
|
|
8269
8269
|
y
|
|
8270
8270
|
};
|
|
8271
8271
|
}
|
|
@@ -8277,11 +8277,11 @@ const S5 = function(H) {
|
|
|
8277
8277
|
}, u = await p1(V, d), Z = f1(L1(A)), r = V2(Z);
|
|
8278
8278
|
let o = t[r], a = t[Z];
|
|
8279
8279
|
if (L) {
|
|
8280
|
-
const h = r === "y" ? "top" : "left",
|
|
8280
|
+
const h = r === "y" ? "top" : "left", b = r === "y" ? "bottom" : "right", y = o + u[h], P = o - u[b];
|
|
8281
8281
|
o = T1(y, o, P);
|
|
8282
8282
|
}
|
|
8283
8283
|
if (i) {
|
|
8284
|
-
const h = Z === "y" ? "top" : "left",
|
|
8284
|
+
const h = Z === "y" ? "top" : "left", b = Z === "y" ? "bottom" : "right", y = a + u[h], P = a - u[b];
|
|
8285
8285
|
a = T1(y, a, P);
|
|
8286
8286
|
}
|
|
8287
8287
|
const k = e.fn({
|
|
@@ -8334,14 +8334,14 @@ function S1(H) {
|
|
|
8334
8334
|
function c5(H) {
|
|
8335
8335
|
return ["table", "td", "th"].includes(J(H));
|
|
8336
8336
|
}
|
|
8337
|
-
function
|
|
8337
|
+
function _1(H) {
|
|
8338
8338
|
const V = N1(), C = I(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
8342
|
let V = t1(H);
|
|
8343
8343
|
for (; K(V) && !h1(V); ) {
|
|
8344
|
-
if (
|
|
8344
|
+
if (_1(V))
|
|
8345
8345
|
return V;
|
|
8346
8346
|
V = t1(V);
|
|
8347
8347
|
}
|
|
@@ -8437,7 +8437,7 @@ function Z1(H, V, C, M) {
|
|
|
8437
8437
|
const r = W(L), o = M && Y(M) ? W(M) : M;
|
|
8438
8438
|
let a = r.frameElement;
|
|
8439
8439
|
for (; a && M && o !== r; ) {
|
|
8440
|
-
const k = e1(a), h = a.getBoundingClientRect(),
|
|
8440
|
+
const k = e1(a), h = a.getBoundingClientRect(), b = I(a), y = h.left + (a.clientLeft + parseFloat(b.paddingLeft)) * k.x, P = h.top + (a.clientTop + parseFloat(b.paddingTop)) * k.y;
|
|
8441
8441
|
d *= k.x, t *= k.y, u *= k.x, Z *= k.y, d += y, t += P, a = W(a).frameElement;
|
|
8442
8442
|
}
|
|
8443
8443
|
}
|
|
@@ -8544,7 +8544,7 @@ function w5(H, V) {
|
|
|
8544
8544
|
const L = I(H).position === "fixed";
|
|
8545
8545
|
let i = L ? t1(H) : H;
|
|
8546
8546
|
for (; Y(i) && !h1(i); ) {
|
|
8547
|
-
const e = I(i), d =
|
|
8547
|
+
const e = I(i), d = _1(i);
|
|
8548
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;
|
|
@@ -8600,7 +8600,7 @@ function l2(H, V) {
|
|
|
8600
8600
|
let M = j1(H, V);
|
|
8601
8601
|
for (; M && c5(M) && I(M).position === "static"; )
|
|
8602
8602
|
M = j1(M, V);
|
|
8603
|
-
return M && (J(M) === "html" || J(M) === "body" && I(M).position === "static" && !
|
|
8603
|
+
return M && (J(M) === "html" || J(M) === "body" && I(M).position === "static" && !_1(M)) ? C : M || O5(H) || C;
|
|
8604
8604
|
}
|
|
8605
8605
|
const v5 = async function(H) {
|
|
8606
8606
|
let {
|
|
@@ -8685,7 +8685,7 @@ async function D5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
|
|
|
8685
8685
|
}
|
|
8686
8686
|
});
|
|
8687
8687
|
}
|
|
8688
|
-
const
|
|
8688
|
+
const E5 = ["aria-disabled"], _5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
8689
8689
|
__name: "RTooltip",
|
|
8690
8690
|
props: {
|
|
8691
8691
|
placement: { default: o2.Top },
|
|
@@ -8709,7 +8709,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8709
8709
|
},
|
|
8710
8710
|
emits: ["show", "hide"],
|
|
8711
8711
|
setup(H, { emit: V }) {
|
|
8712
|
-
const C = H, M = V, A =
|
|
8712
|
+
const C = H, M = V, A = _(), L = _(), i = _();
|
|
8713
8713
|
async function e() {
|
|
8714
8714
|
a(), L.value.style.display = "block", M("show"), t();
|
|
8715
8715
|
}
|
|
@@ -8734,8 +8734,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8734
8734
|
C.triggers.includes(q.Hover) && a();
|
|
8735
8735
|
}
|
|
8736
8736
|
function a() {
|
|
8737
|
-
const { placement: h, offset:
|
|
8738
|
-
P || D5(A, L, i, h,
|
|
8737
|
+
const { placement: h, offset: b, padding: y, disabled: P, showDelay: E, type: v } = C;
|
|
8738
|
+
P || D5(A, L, i, h, b, y, E, v);
|
|
8739
8739
|
}
|
|
8740
8740
|
const k = g(() => ({
|
|
8741
8741
|
"r-tooltip": !0,
|
|
@@ -8762,7 +8762,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8762
8762
|
ignore: [L.value]
|
|
8763
8763
|
}
|
|
8764
8764
|
);
|
|
8765
|
-
}), (h,
|
|
8765
|
+
}), (h, b) => (m(), n(V1, null, [
|
|
8766
8766
|
S("div", {
|
|
8767
8767
|
ref_key: "trigger",
|
|
8768
8768
|
ref: A,
|
|
@@ -8784,9 +8784,9 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8784
8784
|
}, () => [
|
|
8785
8785
|
S("div", {
|
|
8786
8786
|
innerHTML: C.triggerContent
|
|
8787
|
-
}, null, 8,
|
|
8787
|
+
}, null, 8, _5)
|
|
8788
8788
|
])
|
|
8789
|
-
], 42,
|
|
8789
|
+
], 42, E5),
|
|
8790
8790
|
(m(), D(s2, { to: "body" }, [
|
|
8791
8791
|
S("div", {
|
|
8792
8792
|
id: "tooltip",
|
|
@@ -8805,7 +8805,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8805
8805
|
"r-tooltip__content--dark": C.dark,
|
|
8806
8806
|
"r-tooltip__content--light": C.light
|
|
8807
8807
|
}])
|
|
8808
|
-
},
|
|
8808
|
+
}, w(C.text), 3)) : c("", !0),
|
|
8809
8809
|
C.text ? (m(), n("div", {
|
|
8810
8810
|
key: 1,
|
|
8811
8811
|
id: "arrow",
|
|
@@ -8839,7 +8839,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8839
8839
|
}, Y5 = {
|
|
8840
8840
|
key: 1,
|
|
8841
8841
|
class: "r-dropdown-hint"
|
|
8842
|
-
},
|
|
8842
|
+
}, V0 = /* @__PURE__ */ T({
|
|
8843
8843
|
__name: "RDropdown",
|
|
8844
8844
|
props: {
|
|
8845
8845
|
options: { default: () => [] },
|
|
@@ -8860,11 +8860,12 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8860
8860
|
errorMsg: { default: "" },
|
|
8861
8861
|
hint: {},
|
|
8862
8862
|
hideDetails: { type: Boolean, default: !1 },
|
|
8863
|
-
autocomplete: { default: "off" }
|
|
8863
|
+
autocomplete: { default: "off" },
|
|
8864
|
+
notOptionsText: {}
|
|
8864
8865
|
},
|
|
8865
8866
|
emits: ["update:modelValue"],
|
|
8866
8867
|
setup(H, { emit: V }) {
|
|
8867
|
-
const C = H, M = V, A =
|
|
8868
|
+
const C = H, M = V, A = _({ value: "", label: "" }), L = m1([]), i = _(!1), e = _(""), d = _(), t = _(), u = _();
|
|
8868
8869
|
function Z(s, l) {
|
|
8869
8870
|
var B, F, O;
|
|
8870
8871
|
if (s.stopPropagation(), !C.disabled) {
|
|
@@ -8913,11 +8914,11 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8913
8914
|
return;
|
|
8914
8915
|
C.options.find((R) => R.label === B) || (L.push({ value: B, label: B }), e.value = "", (O = t.value) == null || O.focus());
|
|
8915
8916
|
}
|
|
8916
|
-
function
|
|
8917
|
+
function b(s) {
|
|
8917
8918
|
return C.multiple || C.taggable ? L.find((l) => l.value === s.value) : A.value.value === s.value;
|
|
8918
8919
|
}
|
|
8919
8920
|
const y = g(() => !C.searchable || A.value.label === e.value ? C.options : C.options.filter((l) => l.label.toLowerCase().includes(e.value.toLowerCase()))), P = g(() => !C.searchable);
|
|
8920
|
-
function
|
|
8921
|
+
function E() {
|
|
8921
8922
|
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
8923
|
}
|
|
8923
8924
|
function v(s) {
|
|
@@ -8931,11 +8932,11 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8931
8932
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8932
8933
|
}
|
|
8933
8934
|
return Y1(() => {
|
|
8934
|
-
|
|
8935
|
+
E();
|
|
8935
8936
|
}), G(L, (s) => {
|
|
8936
8937
|
M("update:modelValue", s);
|
|
8937
8938
|
}), G(() => C.modelValue, (s) => {
|
|
8938
|
-
|
|
8939
|
+
E();
|
|
8939
8940
|
}), (s, l) => (m(), n("div", {
|
|
8940
8941
|
ref_key: "wrapper",
|
|
8941
8942
|
ref: u,
|
|
@@ -8998,7 +8999,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8998
8999
|
])
|
|
8999
9000
|
])) : c("", !0),
|
|
9000
9001
|
C.multiple && L.length ? (m(), n("div", Q5, [
|
|
9001
|
-
(m(!0), n(V1, null, A1(L, (O, R) => (m(), n("p", { key: R },
|
|
9002
|
+
(m(!0), n(V1, null, A1(L, (O, R) => (m(), n("p", { key: R }, w(`${O.label},`), 1))), 128))
|
|
9002
9003
|
])) : c("", !0),
|
|
9003
9004
|
X1(S("input", {
|
|
9004
9005
|
id: C.id,
|
|
@@ -9060,7 +9061,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9060
9061
|
key: O.value,
|
|
9061
9062
|
"aria-disabled": O.disabled,
|
|
9062
9063
|
class: p(["r-dropdown-options__option", {
|
|
9063
|
-
"r-dropdown-options__option--active":
|
|
9064
|
+
"r-dropdown-options__option--active": b(O),
|
|
9064
9065
|
"r-dropdown-options__option--disabled": O.disabled
|
|
9065
9066
|
}]),
|
|
9066
9067
|
onClick: d1((R) => o(R, O, B, F), ["prevent"])
|
|
@@ -9070,28 +9071,28 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9070
9071
|
O.prependIcon ? (m(), D(x, {
|
|
9071
9072
|
key: 0,
|
|
9072
9073
|
class: p(["r-dropdown-options__option__prepend-icon", {
|
|
9073
|
-
"r-dropdown-options__option__prepend-icon--active":
|
|
9074
|
+
"r-dropdown-options__option__prepend-icon--active": b(O)
|
|
9074
9075
|
}]),
|
|
9075
9076
|
name: O.prependIcon
|
|
9076
9077
|
}, null, 8, ["class", "name"])) : c("", !0)
|
|
9077
9078
|
]),
|
|
9078
9079
|
S("p", {
|
|
9079
9080
|
class: p(["r-dropdown-options__option__label", {
|
|
9080
|
-
"r-dropdown-options__option__label--active":
|
|
9081
|
+
"r-dropdown-options__option__label--active": b(O)
|
|
9081
9082
|
}])
|
|
9082
|
-
},
|
|
9083
|
+
}, w(O.label), 3)
|
|
9083
9084
|
]),
|
|
9084
|
-
|
|
9085
|
+
b(O) ? (m(), D(x, {
|
|
9085
9086
|
key: 0,
|
|
9086
9087
|
class: p(["r-dropdown-options__option__append-icon", {
|
|
9087
|
-
"r-dropdown-options__option__append-icon--active":
|
|
9088
|
+
"r-dropdown-options__option__append-icon--active": b(O)
|
|
9088
9089
|
}]),
|
|
9089
9090
|
name: "mdiCheck"
|
|
9090
9091
|
}, null, 8, ["class"])) : c("", !0)
|
|
9091
9092
|
], 10, U5))), 128)),
|
|
9092
9093
|
y.value.length === 0 ? (m(), n("li", K5, [
|
|
9093
9094
|
f(s.$slots, "not-options", {}, () => [
|
|
9094
|
-
R1("
|
|
9095
|
+
R1(w(C.notOptionsText || "No options"), 1)
|
|
9095
9096
|
])
|
|
9096
9097
|
])) : c("", !0)
|
|
9097
9098
|
], 2)
|
|
@@ -9099,8 +9100,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9099
9100
|
_: 3
|
|
9100
9101
|
}),
|
|
9101
9102
|
s.$props.hideDetails ? c("", !0) : (m(), n("div", j5, [
|
|
9102
|
-
C.errorMsg ? (m(), n("div", q5,
|
|
9103
|
-
C.hint ? (m(), n("div", Y5,
|
|
9103
|
+
C.errorMsg ? (m(), n("div", q5, w(C.errorMsg), 1)) : c("", !0),
|
|
9104
|
+
C.hint ? (m(), n("div", Y5, w(C.hint), 1)) : c("", !0)
|
|
9104
9105
|
]))
|
|
9105
9106
|
], 512));
|
|
9106
9107
|
}
|
|
@@ -9119,7 +9120,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9119
9120
|
for: V.for
|
|
9120
9121
|
}, [
|
|
9121
9122
|
f(C.$slots, "default", {}, () => [
|
|
9122
|
-
R1(
|
|
9123
|
+
R1(w(V.text), 1)
|
|
9123
9124
|
])
|
|
9124
9125
|
], 8, X5));
|
|
9125
9126
|
}
|
|
@@ -9132,7 +9133,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9132
9133
|
}, M3 = {
|
|
9133
9134
|
key: 2,
|
|
9134
9135
|
class: "description"
|
|
9135
|
-
}, A3 = { class: "r-dialog__body" }, i3 = { class: "r-dialog__actions" },
|
|
9136
|
+
}, A3 = { class: "r-dialog__body" }, i3 = { class: "r-dialog__actions" }, L0 = /* @__PURE__ */ T({
|
|
9136
9137
|
__name: "RModal",
|
|
9137
9138
|
props: {
|
|
9138
9139
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9182,8 +9183,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9182
9183
|
name: C.icon
|
|
9183
9184
|
}, null, 8, ["name"])
|
|
9184
9185
|
])) : c("", !0),
|
|
9185
|
-
C.title ? (m(), n("div", L3,
|
|
9186
|
-
C.description ? (m(), n("div", M3,
|
|
9186
|
+
C.title ? (m(), n("div", L3, w(C.title), 1)) : c("", !0),
|
|
9187
|
+
C.description ? (m(), n("div", M3, w(C.description), 1)) : c("", !0)
|
|
9187
9188
|
]),
|
|
9188
9189
|
S("div", A3, [
|
|
9189
9190
|
f(e.$slots, "default")
|
|
@@ -9196,7 +9197,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9196
9197
|
[O2, e.modelValue]
|
|
9197
9198
|
]);
|
|
9198
9199
|
}
|
|
9199
|
-
}), e3 = ["data-open"], d3 = ["data-open"], t3 = ["data-open"],
|
|
9200
|
+
}), e3 = ["data-open"], d3 = ["data-open"], t3 = ["data-open"], M0 = /* @__PURE__ */ T({
|
|
9200
9201
|
__name: "RSidebar",
|
|
9201
9202
|
props: {
|
|
9202
9203
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9233,7 +9234,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9233
9234
|
}), m3 = { class: "r-snackbar__text" }, l3 = {
|
|
9234
9235
|
key: 0,
|
|
9235
9236
|
class: "r-snackbar__close"
|
|
9236
|
-
},
|
|
9237
|
+
}, A0 = /* @__PURE__ */ T({
|
|
9237
9238
|
__name: "RSnackbar",
|
|
9238
9239
|
props: {
|
|
9239
9240
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9281,7 +9282,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9281
9282
|
name: L.value
|
|
9282
9283
|
}, null, 8, ["name"])) : c("", !0)
|
|
9283
9284
|
]),
|
|
9284
|
-
S("div", m3,
|
|
9285
|
+
S("div", m3, w(C.text), 1),
|
|
9285
9286
|
f(i.$slots, "action"),
|
|
9286
9287
|
C.closable ? (m(), n("div", l3, [
|
|
9287
9288
|
f(i.$slots, "close", {}, () => [
|
|
@@ -9303,7 +9304,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9303
9304
|
}, u3 = {
|
|
9304
9305
|
key: 1,
|
|
9305
9306
|
class: "r-switch-texts__hint"
|
|
9306
|
-
},
|
|
9307
|
+
}, i0 = /* @__PURE__ */ T({
|
|
9307
9308
|
__name: "RSwitch",
|
|
9308
9309
|
props: {
|
|
9309
9310
|
id: { default: "switch" },
|
|
@@ -9367,9 +9368,9 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9367
9368
|
id: C.id,
|
|
9368
9369
|
class: "r-switch-texts__label",
|
|
9369
9370
|
for: C.id
|
|
9370
|
-
},
|
|
9371
|
+
}, w(C.label), 9, r3),
|
|
9371
9372
|
C.hideDetails ? c("", !0) : (m(), n("div", a3, [
|
|
9372
|
-
C.errorMsg ? (m(), n("p", Z3,
|
|
9373
|
+
C.errorMsg ? (m(), n("p", Z3, w(C.errorMsg), 1)) : (m(), n("p", u3, w(C.hint), 1))
|
|
9373
9374
|
]))
|
|
9374
9375
|
], 2)
|
|
9375
9376
|
], 2));
|
|
@@ -9430,7 +9431,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9430
9431
|
name: "fade"
|
|
9431
9432
|
}, {
|
|
9432
9433
|
default: r1(() => [
|
|
9433
|
-
C.variant !== M1(n1).ICON ? (m(), n("span", s3,
|
|
9434
|
+
C.variant !== M1(n1).ICON ? (m(), n("span", s3, w(C.label), 1)) : c("", !0)
|
|
9434
9435
|
]),
|
|
9435
9436
|
_: 1
|
|
9436
9437
|
}),
|
|
@@ -9445,7 +9446,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9445
9446
|
])
|
|
9446
9447
|
], 14, S3));
|
|
9447
9448
|
}
|
|
9448
|
-
}),
|
|
9449
|
+
}), e0 = /* @__PURE__ */ T({
|
|
9449
9450
|
__name: "RTabs",
|
|
9450
9451
|
props: {
|
|
9451
9452
|
tabs: { default: () => [] },
|
|
@@ -9456,7 +9457,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9456
9457
|
},
|
|
9457
9458
|
emits: ["update:modelValue", "click:icon"],
|
|
9458
9459
|
setup(H, { emit: V }) {
|
|
9459
|
-
const C = H, M = V, A =
|
|
9460
|
+
const C = H, M = V, A = _(C.modelValue || C.tabs[0].id), L = g(() => ({
|
|
9460
9461
|
"r-tabs": !0,
|
|
9461
9462
|
"r-tabs--block": C.block,
|
|
9462
9463
|
"r-tabs--tile": C.tile,
|
|
@@ -9502,7 +9503,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9502
9503
|
}, g3 = {
|
|
9503
9504
|
key: 1,
|
|
9504
9505
|
class: "r-textarea__hint"
|
|
9505
|
-
},
|
|
9506
|
+
}, d0 = /* @__PURE__ */ T({
|
|
9506
9507
|
__name: "RTextArea",
|
|
9507
9508
|
props: {
|
|
9508
9509
|
id: { default: "" },
|
|
@@ -9550,7 +9551,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9550
9551
|
onInput: L
|
|
9551
9552
|
}, null, 42, p3),
|
|
9552
9553
|
C.hideDetails ? c("", !0) : (m(), n("div", f3, [
|
|
9553
|
-
C.errorMsg ? (m(), n("p", h3,
|
|
9554
|
+
C.errorMsg ? (m(), n("p", h3, w(C.errorMsg), 1)) : (m(), n("p", g3, w(C.hint), 1))
|
|
9554
9555
|
]))
|
|
9555
9556
|
]));
|
|
9556
9557
|
}
|
|
@@ -9563,7 +9564,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9563
9564
|
}, P3 = {
|
|
9564
9565
|
key: 1,
|
|
9565
9566
|
class: "r-textfield__hint"
|
|
9566
|
-
},
|
|
9567
|
+
}, t0 = /* @__PURE__ */ T({
|
|
9567
9568
|
__name: "RTextfield",
|
|
9568
9569
|
props: {
|
|
9569
9570
|
id: { default: "" },
|
|
@@ -9593,16 +9594,16 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9593
9594
|
"click:clear"
|
|
9594
9595
|
],
|
|
9595
9596
|
setup(H, { emit: V }) {
|
|
9596
|
-
const C = H, M = V, A =
|
|
9597
|
+
const C = H, M = V, A = _(), L = m1({
|
|
9597
9598
|
value: ""
|
|
9598
|
-
}), i =
|
|
9599
|
+
}), i = _(C.type), e = {
|
|
9599
9600
|
password: "mdiLock",
|
|
9600
9601
|
email: "mdiEmailOutline",
|
|
9601
9602
|
tel: "mdiPhone",
|
|
9602
9603
|
url: "mdiLink",
|
|
9603
9604
|
number: "mdiNumeric",
|
|
9604
9605
|
text: ""
|
|
9605
|
-
}, d =
|
|
9606
|
+
}, d = _(!1), t = g(() => !!L.value), u = g(() => L.value.length > 0), Z = g(() => {
|
|
9606
9607
|
var l;
|
|
9607
9608
|
return (l = C.errorMsg) == null ? void 0 : l.length;
|
|
9608
9609
|
}), r = g(() => C.clearable && u.value), o = g(() => {
|
|
@@ -9627,7 +9628,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9627
9628
|
})), h = g(() => {
|
|
9628
9629
|
const { prependIcon: l, type: B } = C;
|
|
9629
9630
|
return l === "none" ? "" : l || e[B];
|
|
9630
|
-
}),
|
|
9631
|
+
}), b = g(() => {
|
|
9631
9632
|
const { appendIcon: l, type: B } = C;
|
|
9632
9633
|
return l === "none" ? "" : Z.value ? "mdiAlertCircleOutline" : r.value && ["text", "email"].includes(B) ? "mdiClose" : B === "password" && i.value === "password" ? "mdiEyeOutline" : B === "password" && i.value === "text" ? "mdiEyeOffOutline" : l;
|
|
9633
9634
|
});
|
|
@@ -9637,7 +9638,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9637
9638
|
function P(l) {
|
|
9638
9639
|
d.value = !1, M("blur", l);
|
|
9639
9640
|
}
|
|
9640
|
-
function
|
|
9641
|
+
function E(l) {
|
|
9641
9642
|
L.value = l.target.value, M("input", l);
|
|
9642
9643
|
}
|
|
9643
9644
|
function v() {
|
|
@@ -9709,20 +9710,20 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9709
9710
|
value: L.value,
|
|
9710
9711
|
onBlur: P,
|
|
9711
9712
|
onFocus: y,
|
|
9712
|
-
onInput:
|
|
9713
|
+
onInput: E
|
|
9713
9714
|
}, null, 40, b3),
|
|
9714
9715
|
Z.value ? c("", !0) : f(l.$slots, "append", { key: 1 }),
|
|
9715
|
-
|
|
9716
|
+
b.value && !l.$slots.append || Z.value ? (m(), D(x, {
|
|
9716
9717
|
key: 2,
|
|
9717
9718
|
class: p(k.value),
|
|
9718
|
-
name: `${
|
|
9719
|
+
name: `${b.value}`,
|
|
9719
9720
|
size: 20,
|
|
9720
9721
|
onClick: v
|
|
9721
9722
|
}, null, 8, ["class", "name"])) : c("", !0)
|
|
9722
9723
|
], 2),
|
|
9723
9724
|
C.hideDetails ? c("", !0) : (m(), n("div", w3, [
|
|
9724
|
-
C.errorMsg ? (m(), n("p", y3,
|
|
9725
|
-
!C.errorMsg && C.hint ? (m(), n("p", P3,
|
|
9725
|
+
C.errorMsg ? (m(), n("p", y3, w(C.errorMsg), 1)) : c("", !0),
|
|
9726
|
+
!C.errorMsg && C.hint ? (m(), n("p", P3, w(C.hint), 1)) : c("", !0)
|
|
9726
9727
|
]))
|
|
9727
9728
|
])
|
|
9728
9729
|
]));
|
|
@@ -9730,7 +9731,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9730
9731
|
}), T3 = { class: "r-breadcrumb" }, v3 = {
|
|
9731
9732
|
key: 0,
|
|
9732
9733
|
class: "r-breadcrumb__title"
|
|
9733
|
-
},
|
|
9734
|
+
}, m0 = /* @__PURE__ */ T({
|
|
9734
9735
|
__name: "RBreadcrumb",
|
|
9735
9736
|
props: {
|
|
9736
9737
|
items: { default: () => [] },
|
|
@@ -9756,7 +9757,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9756
9757
|
name: L.icon
|
|
9757
9758
|
}, null, 8, ["name"])) : c("", !0)
|
|
9758
9759
|
]),
|
|
9759
|
-
L.onlyIcon ? c("", !0) : (m(), n("span", v3,
|
|
9760
|
+
L.onlyIcon ? c("", !0) : (m(), n("span", v3, w(L.title), 1))
|
|
9760
9761
|
]),
|
|
9761
9762
|
_: 2
|
|
9762
9763
|
}, 1032, ["to"]),
|
|
@@ -9771,29 +9772,27 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9771
9772
|
]);
|
|
9772
9773
|
};
|
|
9773
9774
|
}
|
|
9774
|
-
}), F3 = { class: "r-pagination" }, R3 = { class: "r-pagination__page-info" }, x3 = { key: 0 }, D3 = { class: "r-
|
|
9775
|
+
}), F3 = { class: "r-pagination" }, R3 = { class: "r-pagination__page-info" }, x3 = { key: 0 }, D3 = { class: "r-pagination__paginator" }, E3 = ["disabled"], _3 = /* @__PURE__ */ S("path", {
|
|
9775
9776
|
d: "M0 0h24v24H0z",
|
|
9776
9777
|
fill: "none",
|
|
9777
9778
|
stroke: "none"
|
|
9778
|
-
}, null, -1),
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
],
|
|
9779
|
+
}, null, -1), N3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), W3 = [
|
|
9780
|
+
_3,
|
|
9781
|
+
N3
|
|
9782
|
+
], I3 = ["max", "value"], Q3 = ["disabled"], G3 = /* @__PURE__ */ S("path", {
|
|
9782
9783
|
d: "M0 0h24v24H0z",
|
|
9783
9784
|
fill: "none",
|
|
9784
9785
|
stroke: "none"
|
|
9785
|
-
}, null, -1),
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
],
|
|
9786
|
+
}, null, -1), z3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), U3 = [
|
|
9787
|
+
G3,
|
|
9788
|
+
z3
|
|
9789
|
+
], $3 = { class: "r-pagination__paginator__total" }, l0 = /* @__PURE__ */ T({
|
|
9789
9790
|
__name: "RPagination",
|
|
9790
9791
|
props: {
|
|
9791
9792
|
page: { default: 1 },
|
|
9792
9793
|
perPage: { default: 10 },
|
|
9793
9794
|
totalItems: { default: 100 },
|
|
9794
|
-
|
|
9795
|
-
ofText: { default: "of" },
|
|
9796
|
-
slash: { type: Boolean, default: !1 }
|
|
9795
|
+
infoText: { default: "" }
|
|
9797
9796
|
},
|
|
9798
9797
|
emits: ["update:page"],
|
|
9799
9798
|
setup(H, { emit: V }) {
|
|
@@ -9803,12 +9802,9 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9803
9802
|
}
|
|
9804
9803
|
return (i, e) => (m(), n("div", F3, [
|
|
9805
9804
|
S("div", R3, [
|
|
9806
|
-
|
|
9807
|
-
S("span", D3, b(C.page), 1),
|
|
9808
|
-
S("span", null, b(i.slash ? "/" : C.ofText), 1),
|
|
9809
|
-
S("span", _3, b(A.value), 1)
|
|
9805
|
+
C.infoText ? (m(), n("span", x3, w(C.infoText), 1)) : c("", !0)
|
|
9810
9806
|
]),
|
|
9811
|
-
S("div",
|
|
9807
|
+
S("div", D3, [
|
|
9812
9808
|
S("button", {
|
|
9813
9809
|
class: "r-pagination__paginator__prev",
|
|
9814
9810
|
disabled: C.page === 1,
|
|
@@ -9826,9 +9822,9 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9826
9822
|
viewBox: "0 0 24 24",
|
|
9827
9823
|
width: "16",
|
|
9828
9824
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9829
|
-
},
|
|
9825
|
+
}, W3, 2))
|
|
9830
9826
|
])
|
|
9831
|
-
], 8,
|
|
9827
|
+
], 8, E3),
|
|
9832
9828
|
S("input", {
|
|
9833
9829
|
class: "r-pagination__paginator__input",
|
|
9834
9830
|
max: A.value,
|
|
@@ -9839,7 +9835,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9839
9835
|
var t;
|
|
9840
9836
|
return L(+((t = d == null ? void 0 : d.target) == null ? void 0 : t.value));
|
|
9841
9837
|
})
|
|
9842
|
-
}, null, 40,
|
|
9838
|
+
}, null, 40, I3),
|
|
9843
9839
|
S("button", {
|
|
9844
9840
|
class: "r-pagination__paginator__next",
|
|
9845
9841
|
disabled: C.page === A.value,
|
|
@@ -9857,14 +9853,14 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9857
9853
|
viewBox: "0 0 24 24",
|
|
9858
9854
|
width: "16",
|
|
9859
9855
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9860
|
-
},
|
|
9856
|
+
}, U3, 2))
|
|
9861
9857
|
])
|
|
9862
|
-
], 8,
|
|
9863
|
-
S("div",
|
|
9858
|
+
], 8, Q3),
|
|
9859
|
+
S("div", $3, " / " + w(A.value), 1)
|
|
9864
9860
|
])
|
|
9865
9861
|
]));
|
|
9866
9862
|
}
|
|
9867
|
-
}),
|
|
9863
|
+
}), K3 = ["value"], o0 = /* @__PURE__ */ T({
|
|
9868
9864
|
__name: "RProgressbar",
|
|
9869
9865
|
props: {
|
|
9870
9866
|
value: { default: 0 },
|
|
@@ -9879,9 +9875,9 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9879
9875
|
role: "progressbar",
|
|
9880
9876
|
style: x1({ height: `${V.height}px` }),
|
|
9881
9877
|
value: V.value
|
|
9882
|
-
}, null, 12,
|
|
9878
|
+
}, null, 12, K3));
|
|
9883
9879
|
}
|
|
9884
|
-
}), w1 = "rocket-ui:r-item-group",
|
|
9880
|
+
}), w1 = "rocket-ui:r-item-group", n0 = /* @__PURE__ */ T({
|
|
9885
9881
|
__name: "RItemGroup",
|
|
9886
9882
|
props: {
|
|
9887
9883
|
modelValue: { default: () => [] },
|
|
@@ -9894,7 +9890,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9894
9890
|
},
|
|
9895
9891
|
emits: ["update:modelValue"],
|
|
9896
9892
|
setup(H, { emit: V }) {
|
|
9897
|
-
const C = H, M = V, A =
|
|
9893
|
+
const C = H, M = V, A = _(C.as ?? "div"), L = _(C.modelValue ?? []), i = g(() => C.selectedClass);
|
|
9898
9894
|
k1(`${w1}:selectedClass`, i.value);
|
|
9899
9895
|
function e(t) {
|
|
9900
9896
|
return L.value.includes(t);
|
|
@@ -9914,7 +9910,7 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9914
9910
|
_: 3
|
|
9915
9911
|
}));
|
|
9916
9912
|
}
|
|
9917
|
-
}), y1 = "rocket-ui:r-item-group",
|
|
9913
|
+
}), y1 = "rocket-ui:r-item-group", r0 = /* @__PURE__ */ T({
|
|
9918
9914
|
__name: "RItem",
|
|
9919
9915
|
props: {
|
|
9920
9916
|
value: { default: null },
|
|
@@ -9940,28 +9936,28 @@ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
|
|
|
9940
9936
|
}
|
|
9941
9937
|
});
|
|
9942
9938
|
export {
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9939
|
+
q3 as RAccordion,
|
|
9940
|
+
Y3 as RAlert,
|
|
9941
|
+
X3 as RAvatar,
|
|
9942
|
+
J3 as RBadge,
|
|
9943
|
+
m0 as RBreadcrumb,
|
|
9944
|
+
C0 as RButton,
|
|
9945
|
+
H0 as RCheckbox,
|
|
9950
9946
|
X2 as RChip,
|
|
9951
|
-
|
|
9947
|
+
V0 as RDropdown,
|
|
9952
9948
|
x as RIcon,
|
|
9953
|
-
|
|
9954
|
-
|
|
9949
|
+
r0 as RItem,
|
|
9950
|
+
n0 as RItemGroup,
|
|
9955
9951
|
r2 as RLabel,
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9952
|
+
L0 as RModal,
|
|
9953
|
+
l0 as RPagination,
|
|
9954
|
+
o0 as RProgressbar,
|
|
9955
|
+
M0 as RSidebar,
|
|
9956
|
+
A0 as RSnackbar,
|
|
9957
|
+
i0 as RSwitch,
|
|
9962
9958
|
c3 as RTabItem,
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9959
|
+
e0 as RTabs,
|
|
9960
|
+
d0 as RTextArea,
|
|
9961
|
+
t0 as RTextfield,
|
|
9966
9962
|
N5 as RTooltip
|
|
9967
9963
|
};
|