@rocketui/vue 0.1.0 → 0.1.1
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 +10 -2
- package/dist/rocket-ui-vue.js +182 -177
- 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 v, openBlock as m, createElementBlock as o, createElementVNode as S, unref as L1, reactive as d1, Fragment as H1, renderList as M1, normalizeClass as p, renderSlot as f, toDisplayString as
|
|
1
|
+
import { defineComponent as v, openBlock as m, createElementBlock as o, createElementVNode as S, unref as L1, reactive as d1, Fragment as H1, renderList as M1, normalizeClass as p, renderSlot as f, toDisplayString as b, createVNode as j, computed as k, createCommentVNode as O, mergeProps as a2, createBlock as F, watch as Q, getCurrentScope as Z2, onScopeDispose as u2, ref as _, watchEffect as S2, onMounted as q1, Teleport as s2, withCtx as n1, withDirectives as Y1, withKeys as W1, vModelText as c2, withModifiers as r1, 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" }, Y3 = /* @__PURE__ */ v({
|
|
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, b(i.title), 1)
|
|
7352
7352
|
]),
|
|
7353
7353
|
S("div", P2, [
|
|
7354
7354
|
j(R, { 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, b(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
|
+
}, X3 = /* @__PURE__ */ v({
|
|
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(), o("p", x2,
|
|
7409
|
+
S("p", R2, b(C.title), 1),
|
|
7410
|
+
C.description ? (m(), o("p", x2, b(C.description), 1)) : O("", !0)
|
|
7411
7411
|
])
|
|
7412
7412
|
]),
|
|
7413
7413
|
C.closable ? (m(), o("div", D2, [
|
|
@@ -7422,7 +7422,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7422
7422
|
])) : O("", !0)
|
|
7423
7423
|
], 2));
|
|
7424
7424
|
}
|
|
7425
|
-
}), I1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", _2 = { class: "r-avatar__wrapper" }, E2 = ["alt", "src"],
|
|
7425
|
+
}), I1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", _2 = { class: "r-avatar__wrapper" }, E2 = ["alt", "src"], J3 = /* @__PURE__ */ v({
|
|
7426
7426
|
__name: "RAvatar",
|
|
7427
7427
|
props: {
|
|
7428
7428
|
type: { default: "image" },
|
|
@@ -7448,7 +7448,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7448
7448
|
V.type === "text" ? (m(), o("p", {
|
|
7449
7449
|
key: 0,
|
|
7450
7450
|
class: p(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
|
|
7451
|
-
},
|
|
7451
|
+
}, b(L(V.text)), 3)) : (m(), o("img", {
|
|
7452
7452
|
key: 1,
|
|
7453
7453
|
alt: V.alt,
|
|
7454
7454
|
class: p(["r-avatar__image", {
|
|
@@ -7466,7 +7466,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
|
|
|
7466
7466
|
}, null, 2)) : O("", !0)
|
|
7467
7467
|
]));
|
|
7468
7468
|
}
|
|
7469
|
-
}), N2 = { class: "r-badge-wrapper group" },
|
|
7469
|
+
}), N2 = { class: "r-badge-wrapper group" }, C0 = /* @__PURE__ */ v({
|
|
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"], H0 = /* @__PURE__ */ v({
|
|
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
|
+
}, V0 = /* @__PURE__ */ v({
|
|
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
|
+
}, b(C.label), 9, $2),
|
|
7647
7647
|
C.hideDetails ? O("", !0) : (m(), o("div", K2, [
|
|
7648
|
-
C.errorMsg ? (m(), o("p", j2,
|
|
7648
|
+
C.errorMsg ? (m(), o("p", j2, b(C.errorMsg), 1)) : (m(), o("p", q2, b(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"])) : O("", !0)
|
|
7694
7694
|
]),
|
|
7695
|
-
S("span", Y2,
|
|
7695
|
+
S("span", Y2, b(C.label), 1)
|
|
7696
7696
|
]),
|
|
7697
7697
|
f(e.$slots, "append", {}, () => [
|
|
7698
7698
|
C.appendIcon ? (m(), F(R, {
|
|
@@ -7949,13 +7949,13 @@ const n5 = async (H, V, C) => {
|
|
|
7949
7949
|
for (let B = 0; B < e.length; B++) {
|
|
7950
7950
|
const {
|
|
7951
7951
|
name: g,
|
|
7952
|
-
fn:
|
|
7952
|
+
fn: w
|
|
7953
7953
|
} = e[B], {
|
|
7954
7954
|
x: P,
|
|
7955
7955
|
y: T,
|
|
7956
7956
|
data: x,
|
|
7957
7957
|
reset: s
|
|
7958
|
-
} = await
|
|
7958
|
+
} = await w({
|
|
7959
7959
|
x: Z,
|
|
7960
7960
|
y: r,
|
|
7961
7961
|
initialPlacement: M,
|
|
@@ -8011,7 +8011,7 @@ async function p1(H, V) {
|
|
|
8011
8011
|
elementContext: r = "floating",
|
|
8012
8012
|
altBoundary: n = !1,
|
|
8013
8013
|
padding: l = 0
|
|
8014
|
-
} = t1(V, H), a = V2(l), g = e[n ? r === "floating" ? "reference" : "floating" : r],
|
|
8014
|
+
} = t1(V, H), a = V2(l), g = e[n ? r === "floating" ? "reference" : "floating" : r], w = O1(await L.getClippingRect({
|
|
8015
8015
|
element: (C = await (L.isElement == null ? void 0 : L.isElement(g))) == null || C ? g : g.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
|
|
8016
8016
|
boundary: t,
|
|
8017
8017
|
rootBoundary: Z,
|
|
@@ -8032,10 +8032,10 @@ async function p1(H, V) {
|
|
|
8032
8032
|
strategy: d
|
|
8033
8033
|
}) : P);
|
|
8034
8034
|
return {
|
|
8035
|
-
top: (
|
|
8036
|
-
bottom: (s.bottom -
|
|
8037
|
-
left: (
|
|
8038
|
-
right: (s.right -
|
|
8035
|
+
top: (w.top - s.top + a.top) / x.y,
|
|
8036
|
+
bottom: (s.bottom - w.bottom + a.bottom) / x.y,
|
|
8037
|
+
left: (w.left - s.left + a.left) / x.x,
|
|
8038
|
+
right: (s.right - w.right + a.right) / x.x
|
|
8039
8039
|
};
|
|
8040
8040
|
}
|
|
8041
8041
|
const r5 = (H) => ({
|
|
@@ -8059,10 +8059,10 @@ const r5 = (H) => ({
|
|
|
8059
8059
|
const r = V2(Z), n = {
|
|
8060
8060
|
x: C,
|
|
8061
8061
|
y: M
|
|
8062
|
-
}, l = _1(A), a = D1(l), B = await i.getDimensions(t), g = l === "y",
|
|
8063
|
-
let
|
|
8064
|
-
(!
|
|
8065
|
-
const u = x / 2 - s / 2, c =
|
|
8062
|
+
}, l = _1(A), a = D1(l), B = await i.getDimensions(t), g = l === "y", w = g ? "top" : "left", P = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", x = L.reference[a] + L.reference[l] - n[l] - L.floating[a], s = n[l] - L.reference[l], h = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
|
|
8063
|
+
let y = h ? h[T] : 0;
|
|
8064
|
+
(!y || !await (i.isElement == null ? void 0 : i.isElement(h))) && (y = e.floating[T] || L.floating[a]);
|
|
8065
|
+
const u = x / 2 - s / 2, c = y / 2 - B[a] / 2 - 1, D = a1(r[w], c), C1 = a1(r[P], c), W = D, m1 = y - B[a] - C1, E = y / 2 - B[a] / 2 + u, G = T1(W, E, m1), z = !d.arrow && u1(A) != null && E != G && L.reference[a] / 2 - (E < W ? D : C1) - B[a] / 2 < 0, $ = z ? E < W ? E - W : E - m1 : 0;
|
|
8066
8066
|
return {
|
|
8067
8067
|
[l]: n[l] + $,
|
|
8068
8068
|
data: {
|
|
@@ -8099,18 +8099,18 @@ const r5 = (H) => ({
|
|
|
8099
8099
|
} = t1(H, V);
|
|
8100
8100
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8101
8101
|
return {};
|
|
8102
|
-
const
|
|
8102
|
+
const w = V1(A), P = V1(e) === e, T = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), x = n || (P || !B ? [c1(e)] : t5(e));
|
|
8103
8103
|
!n && a !== "none" && x.push(...l5(e, B, a, T));
|
|
8104
|
-
const s = [e, ...x], h = await p1(V, g),
|
|
8104
|
+
const s = [e, ...x], h = await p1(V, g), y = [];
|
|
8105
8105
|
let u = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8106
|
-
if (Z &&
|
|
8106
|
+
if (Z && y.push(h[w]), r) {
|
|
8107
8107
|
const W = d5(A, i, T);
|
|
8108
|
-
|
|
8108
|
+
y.push(h[W[0]], h[W[1]]);
|
|
8109
8109
|
}
|
|
8110
8110
|
if (u = [...u, {
|
|
8111
8111
|
placement: A,
|
|
8112
|
-
overflows:
|
|
8113
|
-
}], !
|
|
8112
|
+
overflows: y
|
|
8113
|
+
}], !y.every((W) => W <= 0)) {
|
|
8114
8114
|
var c, D;
|
|
8115
8115
|
const W = (((c = L.flip) == null ? void 0 : c.index) || 0) + 1, m1 = s[W];
|
|
8116
8116
|
if (m1)
|
|
@@ -8259,11 +8259,11 @@ const S5 = function(H) {
|
|
|
8259
8259
|
limiter: e = {
|
|
8260
8260
|
fn: (g) => {
|
|
8261
8261
|
let {
|
|
8262
|
-
x:
|
|
8262
|
+
x: w,
|
|
8263
8263
|
y: P
|
|
8264
8264
|
} = g;
|
|
8265
8265
|
return {
|
|
8266
|
-
x:
|
|
8266
|
+
x: w,
|
|
8267
8267
|
y: P
|
|
8268
8268
|
};
|
|
8269
8269
|
}
|
|
@@ -8275,11 +8275,11 @@ const S5 = function(H) {
|
|
|
8275
8275
|
}, Z = await p1(V, d), r = f1(V1(A)), n = H2(r);
|
|
8276
8276
|
let l = t[n], a = t[r];
|
|
8277
8277
|
if (L) {
|
|
8278
|
-
const g = n === "y" ? "top" : "left",
|
|
8278
|
+
const g = n === "y" ? "top" : "left", w = n === "y" ? "bottom" : "right", P = l + Z[g], T = l - Z[w];
|
|
8279
8279
|
l = T1(P, l, T);
|
|
8280
8280
|
}
|
|
8281
8281
|
if (i) {
|
|
8282
|
-
const g = r === "y" ? "top" : "left",
|
|
8282
|
+
const g = r === "y" ? "top" : "left", w = r === "y" ? "bottom" : "right", P = a + Z[g], T = a - Z[w];
|
|
8283
8283
|
a = T1(P, a, T);
|
|
8284
8284
|
}
|
|
8285
8285
|
const B = e.fn({
|
|
@@ -8435,7 +8435,7 @@ function Z1(H, V, C, M) {
|
|
|
8435
8435
|
const n = N(L), l = M && q(M) ? N(M) : M;
|
|
8436
8436
|
let a = n.frameElement;
|
|
8437
8437
|
for (; a && M && l !== n; ) {
|
|
8438
|
-
const B = i1(a), g = a.getBoundingClientRect(),
|
|
8438
|
+
const B = i1(a), g = a.getBoundingClientRect(), w = I(a), P = g.left + (a.clientLeft + parseFloat(w.paddingLeft)) * B.x, T = g.top + (a.clientTop + parseFloat(w.paddingTop)) * B.y;
|
|
8439
8439
|
d *= B.x, t *= B.y, Z *= B.x, r *= B.y, d += P, t += T, a = N(a).frameElement;
|
|
8440
8440
|
}
|
|
8441
8441
|
}
|
|
@@ -8732,8 +8732,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8732
8732
|
C.triggers.includes(K.Hover) && a();
|
|
8733
8733
|
}
|
|
8734
8734
|
function a() {
|
|
8735
|
-
const { placement: g, offset:
|
|
8736
|
-
T || D5(A, L, i, g,
|
|
8735
|
+
const { placement: g, offset: w, padding: P, disabled: T, showDelay: x, type: s } = C;
|
|
8736
|
+
T || D5(A, L, i, g, w, P, x, s);
|
|
8737
8737
|
}
|
|
8738
8738
|
const B = k(() => ({
|
|
8739
8739
|
tooltip: !0,
|
|
@@ -8758,7 +8758,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8758
8758
|
ignore: [L.value]
|
|
8759
8759
|
}
|
|
8760
8760
|
);
|
|
8761
|
-
}), (g,
|
|
8761
|
+
}), (g, w) => (m(), o(H1, null, [
|
|
8762
8762
|
S("div", {
|
|
8763
8763
|
ref_key: "trigger",
|
|
8764
8764
|
ref: A,
|
|
@@ -8801,7 +8801,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8801
8801
|
"tooltip__content--dark": C.dark,
|
|
8802
8802
|
"tooltip__content--light": C.light
|
|
8803
8803
|
}])
|
|
8804
|
-
},
|
|
8804
|
+
}, b(C.text), 3)) : O("", !0),
|
|
8805
8805
|
C.text ? (m(), o("div", {
|
|
8806
8806
|
key: 1,
|
|
8807
8807
|
id: "arrow",
|
|
@@ -8832,7 +8832,10 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8832
8832
|
}, j5 = {
|
|
8833
8833
|
key: 0,
|
|
8834
8834
|
class: "r-dropdown-error"
|
|
8835
|
-
},
|
|
8835
|
+
}, q5 = {
|
|
8836
|
+
key: 1,
|
|
8837
|
+
class: "r-dropdown-hint"
|
|
8838
|
+
}, L0 = /* @__PURE__ */ v({
|
|
8836
8839
|
__name: "RDropdown",
|
|
8837
8840
|
props: {
|
|
8838
8841
|
options: { default: () => [] },
|
|
@@ -8850,6 +8853,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8850
8853
|
dropdownClass: { default: "" },
|
|
8851
8854
|
optionsClass: { default: "" },
|
|
8852
8855
|
errorMsg: { default: "" },
|
|
8856
|
+
hint: {},
|
|
8853
8857
|
hideDetails: { type: Boolean, default: !1 },
|
|
8854
8858
|
autocomplete: { default: "off" }
|
|
8855
8859
|
},
|
|
@@ -8857,27 +8861,27 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8857
8861
|
setup(H, { emit: V }) {
|
|
8858
8862
|
const C = H, M = V, A = _({ value: "", label: "" }), L = d1([]), i = _(!1), e = _(""), d = _(), t = _(), Z = _();
|
|
8859
8863
|
function r(s, h) {
|
|
8860
|
-
var
|
|
8864
|
+
var y, u, c;
|
|
8861
8865
|
if (s.stopPropagation(), !C.disabled) {
|
|
8862
8866
|
if (i.value = !i.value, h && h(), i.value) {
|
|
8863
|
-
(
|
|
8867
|
+
(y = d.value) == null || y.classList.add("r-dropdown--active"), (u = d.value) == null || u.focus(), C.searchable && ((c = t.value) == null || c.focus());
|
|
8864
8868
|
return;
|
|
8865
8869
|
}
|
|
8866
8870
|
n();
|
|
8867
8871
|
}
|
|
8868
8872
|
}
|
|
8869
8873
|
function n() {
|
|
8870
|
-
var s, h,
|
|
8871
|
-
i.value = !1, (s = d.value) == null || s.classList.remove("r-dropdown--active"), (h = d.value) == null || h.blur(), (
|
|
8874
|
+
var s, h, y;
|
|
8875
|
+
i.value = !1, (s = d.value) == null || s.classList.remove("r-dropdown--active"), (h = d.value) == null || h.blur(), (y = t.value) == null || y.blur();
|
|
8872
8876
|
}
|
|
8873
|
-
function l(s, h,
|
|
8877
|
+
function l(s, h, y, u) {
|
|
8874
8878
|
var c;
|
|
8875
8879
|
if (s.stopPropagation(), u(), !h.disabled) {
|
|
8876
8880
|
if (C.multiple || C.taggable) {
|
|
8877
8881
|
L.find((D) => D.value === h.value) ? L.splice(L.indexOf(h), 1) : L.push(h), e.value = "", C.searchable && ((c = t.value) == null || c.focus());
|
|
8878
8882
|
return;
|
|
8879
8883
|
}
|
|
8880
|
-
a(s, h), C.closeOnSelect && (
|
|
8884
|
+
a(s, h), C.closeOnSelect && (y(), n());
|
|
8881
8885
|
}
|
|
8882
8886
|
}
|
|
8883
8887
|
function a(s, h) {
|
|
@@ -8887,10 +8891,10 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8887
8891
|
}
|
|
8888
8892
|
e.value = h.label, A.value = h, r(s), M("update:modelValue", h);
|
|
8889
8893
|
}
|
|
8890
|
-
function B(s, h,
|
|
8894
|
+
function B(s, h, y) {
|
|
8891
8895
|
if (s instanceof KeyboardEvent && s.key !== "Backspace" || e.value !== "")
|
|
8892
8896
|
return;
|
|
8893
|
-
s.stopPropagation(),
|
|
8897
|
+
s.stopPropagation(), y();
|
|
8894
8898
|
const u = L.findIndex((c) => c.value === h.value);
|
|
8895
8899
|
L.splice(u, 1);
|
|
8896
8900
|
}
|
|
@@ -8899,12 +8903,12 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8899
8903
|
if (!C.taggable)
|
|
8900
8904
|
return;
|
|
8901
8905
|
s.stopPropagation(), h();
|
|
8902
|
-
const
|
|
8903
|
-
if (
|
|
8906
|
+
const y = e.value;
|
|
8907
|
+
if (y === "")
|
|
8904
8908
|
return;
|
|
8905
|
-
C.options.find((D) => D.label ===
|
|
8909
|
+
C.options.find((D) => D.label === y) || (L.push({ value: y, label: y }), e.value = "", (c = t.value) == null || c.focus());
|
|
8906
8910
|
}
|
|
8907
|
-
function
|
|
8911
|
+
function w(s) {
|
|
8908
8912
|
return C.multiple || C.taggable ? L.find((h) => h.value === s.value) : A.value.value === s.value;
|
|
8909
8913
|
}
|
|
8910
8914
|
const P = k(() => !C.searchable || A.value.label === e.value ? C.options : C.options.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), T = k(() => !C.searchable);
|
|
@@ -8934,7 +8938,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8934
8938
|
type: "dropdown",
|
|
8935
8939
|
onHide: n
|
|
8936
8940
|
}, {
|
|
8937
|
-
default: n1(({ activators:
|
|
8941
|
+
default: n1(({ activators: y, updatePosition: u }) => [
|
|
8938
8942
|
S("div", {
|
|
8939
8943
|
ref_key: "dropdown",
|
|
8940
8944
|
ref: d,
|
|
@@ -8945,7 +8949,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8945
8949
|
"r-dropdown--error": C.errorMsg
|
|
8946
8950
|
}]),
|
|
8947
8951
|
role: "select",
|
|
8948
|
-
onClick: (c) => r(c,
|
|
8952
|
+
onClick: (c) => r(c, y.click)
|
|
8949
8953
|
}, [
|
|
8950
8954
|
C.prependIcon || s.$slots.prepend ? (m(), o("div", {
|
|
8951
8955
|
key: 0,
|
|
@@ -8979,7 +8983,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
8979
8983
|
])
|
|
8980
8984
|
])) : O("", !0),
|
|
8981
8985
|
C.multiple ? (m(), o("div", Q5, [
|
|
8982
|
-
(m(!0), o(H1, null, M1(L, (c, D) => (m(), o("p", { key: D },
|
|
8986
|
+
(m(!0), o(H1, null, M1(L, (c, D) => (m(), o("p", { key: D }, b(`${c.label},`), 1))), 128))
|
|
8983
8987
|
])) : O("", !0),
|
|
8984
8988
|
Y1(S("input", {
|
|
8985
8989
|
id: C.id,
|
|
@@ -9017,7 +9021,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9017
9021
|
], 2)) : O("", !0)
|
|
9018
9022
|
], 10, W5)
|
|
9019
9023
|
]),
|
|
9020
|
-
content: n1(({ hide:
|
|
9024
|
+
content: n1(({ hide: y, updatePosition: u }) => [
|
|
9021
9025
|
S("ul", {
|
|
9022
9026
|
class: p(["r-dropdown-options", {
|
|
9023
9027
|
"r-dropdown-options--active": i.value,
|
|
@@ -9028,31 +9032,31 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9028
9032
|
key: c.value,
|
|
9029
9033
|
"aria-disabled": c.disabled,
|
|
9030
9034
|
class: p(["r-dropdown-options__option", {
|
|
9031
|
-
"r-dropdown-options__option--active":
|
|
9035
|
+
"r-dropdown-options__option--active": w(c),
|
|
9032
9036
|
"r-dropdown-options__option--disabled": c.disabled
|
|
9033
9037
|
}]),
|
|
9034
|
-
onClick: r1((D) => l(D, c,
|
|
9038
|
+
onClick: r1((D) => l(D, c, y, u), ["prevent"])
|
|
9035
9039
|
}, [
|
|
9036
9040
|
S("div", U5, [
|
|
9037
9041
|
f(s.$slots, "option-prepend", {}, () => [
|
|
9038
9042
|
c.prependIcon ? (m(), F(R, {
|
|
9039
9043
|
key: 0,
|
|
9040
9044
|
class: p(["r-dropdown-options__option__prepend-icon", {
|
|
9041
|
-
"r-dropdown-options__option__prepend-icon--active":
|
|
9045
|
+
"r-dropdown-options__option__prepend-icon--active": w(c)
|
|
9042
9046
|
}]),
|
|
9043
9047
|
name: c.prependIcon
|
|
9044
9048
|
}, null, 8, ["class", "name"])) : O("", !0)
|
|
9045
9049
|
]),
|
|
9046
9050
|
S("p", {
|
|
9047
9051
|
class: p(["r-dropdown-options__option__label", {
|
|
9048
|
-
"r-dropdown-options__option__label--active":
|
|
9052
|
+
"r-dropdown-options__option__label--active": w(c)
|
|
9049
9053
|
}])
|
|
9050
|
-
},
|
|
9054
|
+
}, b(c.label), 3)
|
|
9051
9055
|
]),
|
|
9052
|
-
|
|
9056
|
+
w(c) ? (m(), F(R, {
|
|
9053
9057
|
key: 0,
|
|
9054
9058
|
class: p(["r-dropdown-options__option__append-icon", {
|
|
9055
|
-
"r-dropdown-options__option__append-icon--active":
|
|
9059
|
+
"r-dropdown-options__option__append-icon--active": w(c)
|
|
9056
9060
|
}]),
|
|
9057
9061
|
name: "mdiCheck"
|
|
9058
9062
|
}, null, 8, ["class"])) : O("", !0)
|
|
@@ -9067,11 +9071,12 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9067
9071
|
_: 3
|
|
9068
9072
|
}),
|
|
9069
9073
|
s.$props.hideDetails ? O("", !0) : (m(), o("div", K5, [
|
|
9070
|
-
C.errorMsg ? (m(), o("div", j5,
|
|
9074
|
+
C.errorMsg ? (m(), o("div", j5, b(C.errorMsg), 1)) : O("", !0),
|
|
9075
|
+
C.hint ? (m(), o("div", q5, b(C.hint), 1)) : O("", !0)
|
|
9071
9076
|
]))
|
|
9072
9077
|
], 512));
|
|
9073
9078
|
}
|
|
9074
|
-
}),
|
|
9079
|
+
}), Y5 = ["id", "for"], n2 = /* @__PURE__ */ v({
|
|
9075
9080
|
__name: "RLabel",
|
|
9076
9081
|
props: {
|
|
9077
9082
|
id: { default: "" },
|
|
@@ -9086,20 +9091,20 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9086
9091
|
for: V.for
|
|
9087
9092
|
}, [
|
|
9088
9093
|
f(C.$slots, "default", {}, () => [
|
|
9089
|
-
R1(
|
|
9094
|
+
R1(b(V.text), 1)
|
|
9090
9095
|
])
|
|
9091
|
-
], 8,
|
|
9096
|
+
], 8, Y5));
|
|
9092
9097
|
}
|
|
9093
|
-
}),
|
|
9098
|
+
}), X5 = ["onClick"], J5 = ["open"], C3 = { class: "r-dialog__header" }, H3 = {
|
|
9094
9099
|
key: 0,
|
|
9095
9100
|
class: "icon"
|
|
9096
|
-
},
|
|
9101
|
+
}, V3 = {
|
|
9097
9102
|
key: 1,
|
|
9098
9103
|
class: "title"
|
|
9099
|
-
},
|
|
9104
|
+
}, L3 = {
|
|
9100
9105
|
key: 2,
|
|
9101
9106
|
class: "description"
|
|
9102
|
-
},
|
|
9107
|
+
}, M3 = { class: "r-dialog__body" }, A3 = { class: "r-dialog__actions" }, M0 = /* @__PURE__ */ v({
|
|
9103
9108
|
__name: "RModal",
|
|
9104
9109
|
props: {
|
|
9105
9110
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9138,28 +9143,28 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9138
9143
|
role: "dialog",
|
|
9139
9144
|
style: x1(L.value)
|
|
9140
9145
|
}, [
|
|
9141
|
-
S("div",
|
|
9146
|
+
S("div", C3, [
|
|
9142
9147
|
f(e.$slots, "header"),
|
|
9143
|
-
C.icon ? (m(), o("div",
|
|
9148
|
+
C.icon ? (m(), o("div", H3, [
|
|
9144
9149
|
j(R, {
|
|
9145
9150
|
name: C.icon
|
|
9146
9151
|
}, null, 8, ["name"])
|
|
9147
9152
|
])) : O("", !0),
|
|
9148
|
-
C.title ? (m(), o("div",
|
|
9149
|
-
C.description ? (m(), o("div",
|
|
9153
|
+
C.title ? (m(), o("div", V3, b(C.title), 1)) : O("", !0),
|
|
9154
|
+
C.description ? (m(), o("div", L3, b(C.description), 1)) : O("", !0)
|
|
9150
9155
|
]),
|
|
9151
|
-
S("div",
|
|
9156
|
+
S("div", M3, [
|
|
9152
9157
|
f(e.$slots, "default")
|
|
9153
9158
|
]),
|
|
9154
|
-
S("div",
|
|
9159
|
+
S("div", A3, [
|
|
9155
9160
|
f(e.$slots, "actions")
|
|
9156
9161
|
])
|
|
9157
|
-
], 14,
|
|
9158
|
-
], 10,
|
|
9162
|
+
], 14, J5)
|
|
9163
|
+
], 10, X5)), [
|
|
9159
9164
|
[O2, e.modelValue]
|
|
9160
9165
|
]);
|
|
9161
9166
|
}
|
|
9162
|
-
}),
|
|
9167
|
+
}), i3 = ["data-open"], e3 = ["data-open"], d3 = ["data-open"], A0 = /* @__PURE__ */ v({
|
|
9163
9168
|
__name: "RSidebar",
|
|
9164
9169
|
props: {
|
|
9165
9170
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9180,7 +9185,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9180
9185
|
"data-open": C.modelValue
|
|
9181
9186
|
}, [
|
|
9182
9187
|
f(A.$slots, "default")
|
|
9183
|
-
], 10,
|
|
9188
|
+
], 10, e3),
|
|
9184
9189
|
C.showTrigger ? (m(), o("div", {
|
|
9185
9190
|
key: 0,
|
|
9186
9191
|
class: p(["r-sidebar__trigger", [C.triggerClass]]),
|
|
@@ -9190,13 +9195,13 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9190
9195
|
f(A.$slots, "trigger", {}, () => [
|
|
9191
9196
|
R1(" > ")
|
|
9192
9197
|
])
|
|
9193
|
-
], 10,
|
|
9194
|
-
], 10,
|
|
9198
|
+
], 10, d3)) : O("", !0)
|
|
9199
|
+
], 10, i3));
|
|
9195
9200
|
}
|
|
9196
|
-
}),
|
|
9201
|
+
}), t3 = { class: "r-snackbar__text" }, m3 = {
|
|
9197
9202
|
key: 0,
|
|
9198
9203
|
class: "r-snackbar__close"
|
|
9199
|
-
},
|
|
9204
|
+
}, i0 = /* @__PURE__ */ v({
|
|
9200
9205
|
__name: "RSnackbar",
|
|
9201
9206
|
props: {
|
|
9202
9207
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9243,9 +9248,9 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9243
9248
|
name: L.value
|
|
9244
9249
|
}, null, 8, ["name"])) : O("", !0)
|
|
9245
9250
|
]),
|
|
9246
|
-
S("div",
|
|
9251
|
+
S("div", t3, b(C.text), 1),
|
|
9247
9252
|
f(i.$slots, "action"),
|
|
9248
|
-
C.closable ? (m(), o("div",
|
|
9253
|
+
C.closable ? (m(), o("div", m3, [
|
|
9249
9254
|
f(i.$slots, "close", {}, () => [
|
|
9250
9255
|
j(R, {
|
|
9251
9256
|
name: "mdiClose",
|
|
@@ -9256,16 +9261,16 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9256
9261
|
])) : O("", !0)
|
|
9257
9262
|
], 2));
|
|
9258
9263
|
}
|
|
9259
|
-
}),
|
|
9264
|
+
}), l3 = ["id", "checked", "disabled"], o3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), n3 = ["id", "for"], r3 = {
|
|
9260
9265
|
key: 0,
|
|
9261
9266
|
class: "r-switch-texts__details"
|
|
9262
|
-
},
|
|
9267
|
+
}, a3 = {
|
|
9263
9268
|
key: 0,
|
|
9264
9269
|
class: "r-switch-texts__error"
|
|
9265
|
-
},
|
|
9270
|
+
}, Z3 = {
|
|
9266
9271
|
key: 1,
|
|
9267
9272
|
class: "r-switch-texts__hint"
|
|
9268
|
-
},
|
|
9273
|
+
}, e0 = /* @__PURE__ */ v({
|
|
9269
9274
|
__name: "RSwitch",
|
|
9270
9275
|
props: {
|
|
9271
9276
|
id: { default: "switch" },
|
|
@@ -9317,8 +9322,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9317
9322
|
disabled: C.disabled,
|
|
9318
9323
|
type: "checkbox",
|
|
9319
9324
|
onChange: i
|
|
9320
|
-
}, null, 40,
|
|
9321
|
-
|
|
9325
|
+
}, null, 40, l3),
|
|
9326
|
+
o3
|
|
9322
9327
|
], 2),
|
|
9323
9328
|
S("div", {
|
|
9324
9329
|
class: p(["r-switch-texts", {
|
|
@@ -9329,19 +9334,19 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
|
|
|
9329
9334
|
id: C.id,
|
|
9330
9335
|
class: "r-switch-texts__label",
|
|
9331
9336
|
for: C.id
|
|
9332
|
-
},
|
|
9333
|
-
C.hideDetails ? O("", !0) : (m(), o("div",
|
|
9334
|
-
C.errorMsg ? (m(), o("p",
|
|
9337
|
+
}, b(C.label), 9, n3),
|
|
9338
|
+
C.hideDetails ? O("", !0) : (m(), o("div", r3, [
|
|
9339
|
+
C.errorMsg ? (m(), o("p", a3, b(C.errorMsg), 1)) : (m(), o("p", Z3, b(C.hint), 1))
|
|
9335
9340
|
]))
|
|
9336
9341
|
], 2)
|
|
9337
9342
|
], 2));
|
|
9338
9343
|
}
|
|
9339
9344
|
});
|
|
9340
9345
|
var o1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(o1 || {});
|
|
9341
|
-
const
|
|
9346
|
+
const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
|
|
9342
9347
|
key: 0,
|
|
9343
9348
|
class: "r-tab-item__label"
|
|
9344
|
-
},
|
|
9349
|
+
}, s3 = /* @__PURE__ */ v({
|
|
9345
9350
|
__name: "RTabItem",
|
|
9346
9351
|
props: {
|
|
9347
9352
|
id: {},
|
|
@@ -9392,7 +9397,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9392
9397
|
name: "fade"
|
|
9393
9398
|
}, {
|
|
9394
9399
|
default: n1(() => [
|
|
9395
|
-
C.variant !== L1(o1).ICON ? (m(), o("span",
|
|
9400
|
+
C.variant !== L1(o1).ICON ? (m(), o("span", S3, b(C.label), 1)) : O("", !0)
|
|
9396
9401
|
]),
|
|
9397
9402
|
_: 1
|
|
9398
9403
|
}),
|
|
@@ -9405,9 +9410,9 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9405
9410
|
onClick: r1(e, ["stop"])
|
|
9406
9411
|
}, null, 8, ["name", "onClick"])) : O("", !0)
|
|
9407
9412
|
])
|
|
9408
|
-
], 14,
|
|
9413
|
+
], 14, u3));
|
|
9409
9414
|
}
|
|
9410
|
-
}),
|
|
9415
|
+
}), d0 = /* @__PURE__ */ v({
|
|
9411
9416
|
__name: "RTabs",
|
|
9412
9417
|
props: {
|
|
9413
9418
|
tabs: { default: () => [] },
|
|
@@ -9437,7 +9442,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9437
9442
|
class: p(L.value)
|
|
9438
9443
|
}, [
|
|
9439
9444
|
f(e.$slots, "default", {}, () => [
|
|
9440
|
-
(m(!0), o(H1, null, M1(C.tabs, (t, Z) => (m(), F(
|
|
9445
|
+
(m(!0), o(H1, null, M1(C.tabs, (t, Z) => (m(), F(s3, {
|
|
9441
9446
|
id: t.id,
|
|
9442
9447
|
key: Z,
|
|
9443
9448
|
modelValue: A.value,
|
|
@@ -9455,16 +9460,16 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9455
9460
|
])
|
|
9456
9461
|
], 2));
|
|
9457
9462
|
}
|
|
9458
|
-
}),
|
|
9463
|
+
}), c3 = { class: "r-textarea-wrapper" }, O3 = ["id", "disabled", "placeholder", "value"], p3 = {
|
|
9459
9464
|
key: 1,
|
|
9460
9465
|
class: "r-textarea__details"
|
|
9461
|
-
},
|
|
9466
|
+
}, f3 = {
|
|
9462
9467
|
key: 0,
|
|
9463
9468
|
class: "r-textarea__error"
|
|
9464
|
-
},
|
|
9469
|
+
}, h3 = {
|
|
9465
9470
|
key: 1,
|
|
9466
9471
|
class: "r-textarea__hint"
|
|
9467
|
-
},
|
|
9472
|
+
}, t0 = /* @__PURE__ */ v({
|
|
9468
9473
|
__name: "RTextArea",
|
|
9469
9474
|
props: {
|
|
9470
9475
|
id: { default: "" },
|
|
@@ -9492,7 +9497,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9492
9497
|
{
|
|
9493
9498
|
immediate: !0
|
|
9494
9499
|
}
|
|
9495
|
-
), (i, e) => (m(), o("div",
|
|
9500
|
+
), (i, e) => (m(), o("div", c3, [
|
|
9496
9501
|
C.label ? (m(), F(n2, {
|
|
9497
9502
|
key: 0,
|
|
9498
9503
|
id: "textarea",
|
|
@@ -9510,22 +9515,22 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9510
9515
|
placeholder: C.placeholder,
|
|
9511
9516
|
value: A.value,
|
|
9512
9517
|
onInput: L
|
|
9513
|
-
}, null, 42,
|
|
9514
|
-
C.hideDetails ? O("", !0) : (m(), o("div",
|
|
9515
|
-
C.errorMsg ? (m(), o("p",
|
|
9518
|
+
}, null, 42, O3),
|
|
9519
|
+
C.hideDetails ? O("", !0) : (m(), o("div", p3, [
|
|
9520
|
+
C.errorMsg ? (m(), o("p", f3, b(C.errorMsg), 1)) : (m(), o("p", h3, b(C.hint), 1))
|
|
9516
9521
|
]))
|
|
9517
9522
|
]));
|
|
9518
9523
|
}
|
|
9519
|
-
}),
|
|
9524
|
+
}), g3 = { class: "r-textfield__wrapper" }, k3 = { class: "input-wrapper" }, B3 = ["id", "disabled", "max", "min", "placeholder", "role", "type", "value"], b3 = {
|
|
9520
9525
|
key: 0,
|
|
9521
9526
|
class: "r-textfield__details"
|
|
9522
|
-
},
|
|
9527
|
+
}, w3 = {
|
|
9523
9528
|
key: 0,
|
|
9524
9529
|
class: "r-textfield__error"
|
|
9525
|
-
},
|
|
9530
|
+
}, y3 = {
|
|
9526
9531
|
key: 1,
|
|
9527
9532
|
class: "r-textfield__hint"
|
|
9528
|
-
},
|
|
9533
|
+
}, m0 = /* @__PURE__ */ v({
|
|
9529
9534
|
__name: "RTextfield",
|
|
9530
9535
|
props: {
|
|
9531
9536
|
id: { default: "" },
|
|
@@ -9588,7 +9593,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9588
9593
|
})), g = k(() => {
|
|
9589
9594
|
const { prependIcon: u, type: c } = C;
|
|
9590
9595
|
return u === "none" ? "" : u || e[c];
|
|
9591
|
-
}),
|
|
9596
|
+
}), w = k(() => {
|
|
9592
9597
|
const { appendIcon: u, type: c } = C;
|
|
9593
9598
|
return u === "none" ? "" : r.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(c) ? "mdiClose" : c === "password" && i.value === "password" ? "mdiEyeOutline" : c === "password" && i.value === "text" ? "mdiEyeOffOutline" : u;
|
|
9594
9599
|
});
|
|
@@ -9616,7 +9621,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9616
9621
|
function h() {
|
|
9617
9622
|
i.value = i.value === "password" ? "text" : "password";
|
|
9618
9623
|
}
|
|
9619
|
-
function
|
|
9624
|
+
function y() {
|
|
9620
9625
|
var u;
|
|
9621
9626
|
(u = A.value) == null || u.focus();
|
|
9622
9627
|
}
|
|
@@ -9636,16 +9641,16 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9636
9641
|
i.value === "number" ? +u : u
|
|
9637
9642
|
);
|
|
9638
9643
|
}
|
|
9639
|
-
), (u, c) => (m(), o("div",
|
|
9644
|
+
), (u, c) => (m(), o("div", g3, [
|
|
9640
9645
|
C.label ? (m(), F(n2, {
|
|
9641
9646
|
key: 0,
|
|
9642
9647
|
id: C.id,
|
|
9643
9648
|
class: "r-textfield__label",
|
|
9644
9649
|
for: C.id,
|
|
9645
9650
|
text: C.label,
|
|
9646
|
-
onClick:
|
|
9651
|
+
onClick: y
|
|
9647
9652
|
}, null, 8, ["id", "for", "text"])) : O("", !0),
|
|
9648
|
-
S("div",
|
|
9653
|
+
S("div", k3, [
|
|
9649
9654
|
S("div", {
|
|
9650
9655
|
class: p(l.value)
|
|
9651
9656
|
}, [
|
|
@@ -9670,27 +9675,27 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9670
9675
|
onBlur: T,
|
|
9671
9676
|
onFocus: P,
|
|
9672
9677
|
onInput: x
|
|
9673
|
-
}, null, 40,
|
|
9678
|
+
}, null, 40, B3),
|
|
9674
9679
|
r.value ? O("", !0) : f(u.$slots, "append", { key: 1 }),
|
|
9675
|
-
|
|
9680
|
+
w.value && !u.$slots.append || r.value ? (m(), F(R, {
|
|
9676
9681
|
key: 2,
|
|
9677
9682
|
class: p(B.value),
|
|
9678
|
-
name: `${
|
|
9683
|
+
name: `${w.value}`,
|
|
9679
9684
|
size: 20,
|
|
9680
9685
|
onClick: s
|
|
9681
9686
|
}, null, 8, ["class", "name"])) : O("", !0)
|
|
9682
9687
|
], 2),
|
|
9683
|
-
C.hideDetails ? O("", !0) : (m(), o("div",
|
|
9684
|
-
C.errorMsg ? (m(), o("p",
|
|
9685
|
-
!C.errorMsg && C.hint ? (m(), o("p",
|
|
9688
|
+
C.hideDetails ? O("", !0) : (m(), o("div", b3, [
|
|
9689
|
+
C.errorMsg ? (m(), o("p", w3, b(C.errorMsg), 1)) : O("", !0),
|
|
9690
|
+
!C.errorMsg && C.hint ? (m(), o("p", y3, b(C.hint), 1)) : O("", !0)
|
|
9686
9691
|
]))
|
|
9687
9692
|
])
|
|
9688
9693
|
]));
|
|
9689
9694
|
}
|
|
9690
|
-
}),
|
|
9695
|
+
}), P3 = { class: "r-breadcrumb" }, T3 = {
|
|
9691
9696
|
key: 0,
|
|
9692
9697
|
class: "r-breadcrumb__title"
|
|
9693
|
-
},
|
|
9698
|
+
}, l0 = /* @__PURE__ */ v({
|
|
9694
9699
|
__name: "RBreadcrumb",
|
|
9695
9700
|
props: {
|
|
9696
9701
|
items: { default: () => [] },
|
|
@@ -9700,7 +9705,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9700
9705
|
const V = H;
|
|
9701
9706
|
return (C, M) => {
|
|
9702
9707
|
const A = f2("router-link");
|
|
9703
|
-
return m(), o("div",
|
|
9708
|
+
return m(), o("div", P3, [
|
|
9704
9709
|
(m(!0), o(H1, null, M1(V.items, (L, i) => (m(), o("div", {
|
|
9705
9710
|
key: i,
|
|
9706
9711
|
class: "r-breadcrumb__item"
|
|
@@ -9716,7 +9721,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9716
9721
|
name: L.icon
|
|
9717
9722
|
}, null, 8, ["name"])) : O("", !0)
|
|
9718
9723
|
]),
|
|
9719
|
-
L.onlyIcon ? O("", !0) : (m(), o("span",
|
|
9724
|
+
L.onlyIcon ? O("", !0) : (m(), o("span", T3, b(L.title), 1))
|
|
9720
9725
|
]),
|
|
9721
9726
|
_: 2
|
|
9722
9727
|
}, 1032, ["to"]),
|
|
@@ -9731,21 +9736,21 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9731
9736
|
]);
|
|
9732
9737
|
};
|
|
9733
9738
|
}
|
|
9734
|
-
}),
|
|
9739
|
+
}), v3 = { class: "r-pagination" }, F3 = { class: "r-pagination__page-info" }, R3 = { key: 0 }, x3 = { class: "r-pagination__page-info__current-page" }, D3 = { class: "r-pagination__page-info__total-pages" }, _3 = { class: "r-pagination__paginator" }, E3 = ["disabled"], N3 = /* @__PURE__ */ S("path", {
|
|
9735
9740
|
d: "M0 0h24v24H0z",
|
|
9736
9741
|
fill: "none",
|
|
9737
9742
|
stroke: "none"
|
|
9738
|
-
}, null, -1),
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
],
|
|
9743
|
+
}, null, -1), W3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), I3 = [
|
|
9744
|
+
N3,
|
|
9745
|
+
W3
|
|
9746
|
+
], Q3 = ["max", "value"], G3 = ["disabled"], z3 = /* @__PURE__ */ S("path", {
|
|
9742
9747
|
d: "M0 0h24v24H0z",
|
|
9743
9748
|
fill: "none",
|
|
9744
9749
|
stroke: "none"
|
|
9745
|
-
}, null, -1),
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
],
|
|
9750
|
+
}, null, -1), U3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), $3 = [
|
|
9751
|
+
z3,
|
|
9752
|
+
U3
|
|
9753
|
+
], K3 = { class: "r-pagination__paginator__total" }, o0 = /* @__PURE__ */ v({
|
|
9749
9754
|
__name: "RPagination",
|
|
9750
9755
|
props: {
|
|
9751
9756
|
page: { default: 1 },
|
|
@@ -9761,14 +9766,14 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9761
9766
|
function L(i) {
|
|
9762
9767
|
i < 1 || i > A.value || M("update:page", i);
|
|
9763
9768
|
}
|
|
9764
|
-
return (i, e) => (m(), o("div",
|
|
9765
|
-
S("div",
|
|
9766
|
-
i.slash ? O("", !0) : (m(), o("span",
|
|
9767
|
-
S("span",
|
|
9768
|
-
S("span", null,
|
|
9769
|
-
S("span",
|
|
9769
|
+
return (i, e) => (m(), o("div", v3, [
|
|
9770
|
+
S("div", F3, [
|
|
9771
|
+
i.slash ? O("", !0) : (m(), o("span", R3, b(C.pageText), 1)),
|
|
9772
|
+
S("span", x3, b(C.page), 1),
|
|
9773
|
+
S("span", null, b(i.slash ? "/" : C.ofText), 1),
|
|
9774
|
+
S("span", D3, b(A.value), 1)
|
|
9770
9775
|
]),
|
|
9771
|
-
S("div",
|
|
9776
|
+
S("div", _3, [
|
|
9772
9777
|
S("button", {
|
|
9773
9778
|
class: "r-pagination__paginator__prev",
|
|
9774
9779
|
disabled: C.page === 1,
|
|
@@ -9786,9 +9791,9 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9786
9791
|
viewBox: "0 0 24 24",
|
|
9787
9792
|
width: "16",
|
|
9788
9793
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9789
|
-
},
|
|
9794
|
+
}, I3, 2))
|
|
9790
9795
|
])
|
|
9791
|
-
], 8,
|
|
9796
|
+
], 8, E3),
|
|
9792
9797
|
S("input", {
|
|
9793
9798
|
class: "r-pagination__paginator__input",
|
|
9794
9799
|
max: A.value,
|
|
@@ -9799,7 +9804,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9799
9804
|
var t;
|
|
9800
9805
|
return L(+((t = d == null ? void 0 : d.target) == null ? void 0 : t.value));
|
|
9801
9806
|
})
|
|
9802
|
-
}, null, 40,
|
|
9807
|
+
}, null, 40, Q3),
|
|
9803
9808
|
S("button", {
|
|
9804
9809
|
class: "r-pagination__paginator__next",
|
|
9805
9810
|
disabled: C.page === A.value,
|
|
@@ -9817,14 +9822,14 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9817
9822
|
viewBox: "0 0 24 24",
|
|
9818
9823
|
width: "16",
|
|
9819
9824
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9820
|
-
},
|
|
9825
|
+
}, $3, 2))
|
|
9821
9826
|
])
|
|
9822
|
-
], 8,
|
|
9823
|
-
S("div",
|
|
9827
|
+
], 8, G3),
|
|
9828
|
+
S("div", K3, " / " + b(A.value), 1)
|
|
9824
9829
|
])
|
|
9825
9830
|
]));
|
|
9826
9831
|
}
|
|
9827
|
-
}),
|
|
9832
|
+
}), j3 = ["value"], n0 = /* @__PURE__ */ v({
|
|
9828
9833
|
__name: "RProgressbar",
|
|
9829
9834
|
props: {
|
|
9830
9835
|
value: { default: 0 },
|
|
@@ -9839,9 +9844,9 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9839
9844
|
role: "progressbar",
|
|
9840
9845
|
style: x1({ height: `${V.height}px` }),
|
|
9841
9846
|
value: V.value
|
|
9842
|
-
}, null, 12,
|
|
9847
|
+
}, null, 12, j3));
|
|
9843
9848
|
}
|
|
9844
|
-
}), w1 = "rocket-ui:r-item-group",
|
|
9849
|
+
}), w1 = "rocket-ui:r-item-group", r0 = /* @__PURE__ */ v({
|
|
9845
9850
|
__name: "RItemGroup",
|
|
9846
9851
|
props: {
|
|
9847
9852
|
modelValue: { default: () => [] },
|
|
@@ -9874,7 +9879,7 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9874
9879
|
_: 3
|
|
9875
9880
|
}));
|
|
9876
9881
|
}
|
|
9877
|
-
}), y1 = "rocket-ui:r-item-group",
|
|
9882
|
+
}), y1 = "rocket-ui:r-item-group", a0 = /* @__PURE__ */ v({
|
|
9878
9883
|
__name: "RItem",
|
|
9879
9884
|
props: {
|
|
9880
9885
|
value: { default: null },
|
|
@@ -9900,28 +9905,28 @@ const Z3 = ["aria-disabled", "aria-selected", "disabled"], u3 = {
|
|
|
9900
9905
|
}
|
|
9901
9906
|
});
|
|
9902
9907
|
export {
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9908
|
+
Y3 as RAccordion,
|
|
9909
|
+
X3 as RAlert,
|
|
9910
|
+
J3 as RAvatar,
|
|
9911
|
+
C0 as RBadge,
|
|
9912
|
+
l0 as RBreadcrumb,
|
|
9913
|
+
H0 as RButton,
|
|
9914
|
+
V0 as RCheckbox,
|
|
9910
9915
|
X2 as RChip,
|
|
9911
|
-
|
|
9916
|
+
L0 as RDropdown,
|
|
9912
9917
|
R as RIcon,
|
|
9913
|
-
|
|
9914
|
-
|
|
9918
|
+
a0 as RItem,
|
|
9919
|
+
r0 as RItemGroup,
|
|
9915
9920
|
n2 as RLabel,
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9921
|
+
M0 as RModal,
|
|
9922
|
+
o0 as RPagination,
|
|
9923
|
+
n0 as RProgressbar,
|
|
9924
|
+
A0 as RSidebar,
|
|
9925
|
+
i0 as RSnackbar,
|
|
9926
|
+
e0 as RSwitch,
|
|
9927
|
+
s3 as RTabItem,
|
|
9928
|
+
d0 as RTabs,
|
|
9929
|
+
t0 as RTextArea,
|
|
9930
|
+
m0 as RTextfield,
|
|
9926
9931
|
N5 as RTooltip
|
|
9927
9932
|
};
|