@rocketui/vue 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rocket-ui-vue.js +260 -256
- 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,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as P, openBlock as t, createElementBlock as a, createElementVNode as Z, unref as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as P, openBlock as t, createElementBlock as a, createElementVNode as Z, unref as k, reactive as J, Fragment as K, renderList as Y, normalizeClass as h, toDisplayString as B, createVNode as _, computed as g, renderSlot as y, createBlock as T, createCommentVNode as f, mergeProps as U1, withModifiers as E, watch as I, ref as x, withDirectives as T1, withKeys as O1, vModelText as $1, vShow as K1, onMounted as j1, withCtx as v1, createTextVNode as F1, normalizeStyle as q1, useCssVars as Y1, watchEffect as X1, resolveComponent as J1 } from "vue";
|
|
2
|
+
const C2 = {
|
|
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",
|
|
5
5
|
mdiAbjadArabic: "M12 4C10.08 4 8.5 5.58 8.5 7.5C8.5 8.43 8.88 9.28 9.5 9.91C7.97 10.91 7 12.62 7 14.5C7 17.53 9.47 20 12.5 20C14.26 20 16 19.54 17.5 18.66L16.5 16.93C15.28 17.63 13.9 18 12.5 18C10.56 18 9 16.45 9 14.5C9 12.91 10.06 11.53 11.59 11.12L16.8 9.72L16.28 7.79L11.83 9C11.08 8.9 10.5 8.28 10.5 7.5C10.5 6.66 11.16 6 12 6C12.26 6 12.5 6.07 12.75 6.2L13.75 4.47C13.22 4.16 12.61 4 12 4Z",
|
|
@@ -7296,7 +7296,7 @@ const J1 = {
|
|
|
7296
7296
|
mdiZodiacScorpio: "M17.71,15.29L16.29,16.71L17.59,18H16A2,2 0 0,1 14,16V6A3,3 0 0,0 11,3C10.25,3 9.55,3.29 9,3.78C7.86,2.76 6.14,2.76 5,3.78C4.45,3.28 3.74,3 3,3V5A1,1 0 0,1 4,6V16H6V6A1,1 0 0,1 7,5A1,1 0 0,1 8,6V16H10V6A1,1 0 0,1 11,5A1,1 0 0,1 12,6V16A4,4 0 0,0 16,20H17.59L16.29,21.29L17.71,22.71L21.41,19L17.71,15.29Z",
|
|
7297
7297
|
mdiZodiacTaurus: "M15.59,9C17.7,7.74 19,5.46 19,3H17A5,5 0 0,1 12,8A5,5 0 0,1 7,3H5C5,5.46 6.3,7.74 8.41,9C5.09,11 4,15.28 6,18.6C7.97,21.92 12.27,23 15.59,21C18.91,19.04 20,14.74 18,11.42C17.42,10.43 16.58,9.59 15.59,9M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20Z",
|
|
7298
7298
|
mdiZodiacVirgo: "M18.5,19.13C20,17.77 20,15.18 20,14A4,4 0 0,0 16,10C15.3,10 14.6,10.2 14,10.56V6A3,3 0 0,0 11,3C10.25,3 9.55,3.29 9,3.78C7.86,2.76 6.14,2.76 5,3.78C4.45,3.28 3.74,3 3,3V5A1,1 0 0,1 4,6V16H6V6A1,1 0 0,1 7,5A1,1 0 0,1 8,6V16H10V6A1,1 0 0,1 11,5A1,1 0 0,1 12,6V14C12,15.18 12,17.77 13.5,19.13C12.72,19.54 11.88,19.84 11,20V22C12.29,22 14.84,20.74 16,20.13C17.16,20.74 19.71,22 21,22V20C20.12,19.84 19.28,19.54 18.5,19.13M16,12A2,2 0 0,1 18,14C18,16.92 17.46,18 16,18C14.54,18 14,16.92 14,14A2,2 0 0,1 16,12Z"
|
|
7299
|
-
},
|
|
7299
|
+
}, H2 = ["width", "height", "viewBox"], V2 = ["d"], v = /* @__PURE__ */ P({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
@@ -7312,12 +7312,12 @@ const J1 = {
|
|
|
7312
7312
|
viewBox: V.viewBox
|
|
7313
7313
|
}, [
|
|
7314
7314
|
Z("path", {
|
|
7315
|
-
d:
|
|
7316
|
-
}, null, 8,
|
|
7317
|
-
], 8,
|
|
7315
|
+
d: k(C2)[V.name]
|
|
7316
|
+
}, null, 8, V2)
|
|
7317
|
+
], 8, H2));
|
|
7318
7318
|
}
|
|
7319
7319
|
});
|
|
7320
|
-
const
|
|
7320
|
+
const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accordion__icon" }, i2 = { class: "accordion__content" }, W5 = /* @__PURE__ */ P({
|
|
7321
7321
|
__name: "RAccordion",
|
|
7322
7322
|
props: {
|
|
7323
7323
|
accordions: null
|
|
@@ -7348,22 +7348,22 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7348
7348
|
class: "accordion__header",
|
|
7349
7349
|
onClick: (d) => M(e)
|
|
7350
7350
|
}, [
|
|
7351
|
-
Z("div",
|
|
7352
|
-
Z("div",
|
|
7351
|
+
Z("div", M2, B(i.title), 1),
|
|
7352
|
+
Z("div", A2, [
|
|
7353
7353
|
_(v, {
|
|
7354
7354
|
name: i.open ? "mdiChevronDown" : "mdiChevronUp"
|
|
7355
7355
|
}, null, 8, ["name"])
|
|
7356
7356
|
])
|
|
7357
|
-
], 8,
|
|
7358
|
-
Z("div",
|
|
7359
|
-
Z("span", null,
|
|
7357
|
+
], 8, L2),
|
|
7358
|
+
Z("div", i2, [
|
|
7359
|
+
Z("span", null, B(i.content), 1)
|
|
7360
7360
|
])
|
|
7361
7361
|
], 2))), 128));
|
|
7362
7362
|
}
|
|
7363
|
-
}),
|
|
7363
|
+
}), e2 = { class: "icon" }, d2 = { class: "texts" }, t2 = { class: "texts__title" }, m2 = { class: "texts__description" }, l2 = {
|
|
7364
7364
|
key: 0,
|
|
7365
7365
|
class: "close"
|
|
7366
|
-
},
|
|
7366
|
+
}, N5 = /* @__PURE__ */ P({
|
|
7367
7367
|
__name: "RAlert",
|
|
7368
7368
|
props: {
|
|
7369
7369
|
type: { default: "info" },
|
|
@@ -7375,17 +7375,17 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7375
7375
|
},
|
|
7376
7376
|
emits: ["close"],
|
|
7377
7377
|
setup(H, { emit: V }) {
|
|
7378
|
-
const C = H, M =
|
|
7378
|
+
const C = H, M = g(() => ({
|
|
7379
7379
|
alert: !0,
|
|
7380
7380
|
[`alert--${C.type}`]: !0,
|
|
7381
7381
|
[`alert--${C.size}`]: !0,
|
|
7382
7382
|
"alert--block": C.block
|
|
7383
|
-
})), L =
|
|
7383
|
+
})), L = g(() => ({
|
|
7384
7384
|
success: "mdiCheckCircle",
|
|
7385
7385
|
error: "mdiAlertCircle",
|
|
7386
7386
|
warning: "mdiAlert",
|
|
7387
7387
|
info: "mdiInformation"
|
|
7388
|
-
})[C.type]), A =
|
|
7388
|
+
})[C.type]), A = g(() => ({
|
|
7389
7389
|
small: 20,
|
|
7390
7390
|
medium: 24,
|
|
7391
7391
|
large: 28
|
|
@@ -7393,19 +7393,19 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7393
7393
|
V("close");
|
|
7394
7394
|
};
|
|
7395
7395
|
return (e, d) => (t(), a("div", {
|
|
7396
|
-
class: h(
|
|
7396
|
+
class: h(k(M))
|
|
7397
7397
|
}, [
|
|
7398
|
-
Z("div",
|
|
7398
|
+
Z("div", e2, [
|
|
7399
7399
|
_(v, {
|
|
7400
|
-
name:
|
|
7401
|
-
size:
|
|
7400
|
+
name: k(L),
|
|
7401
|
+
size: k(A)
|
|
7402
7402
|
}, null, 8, ["name", "size"])
|
|
7403
7403
|
]),
|
|
7404
|
-
Z("div",
|
|
7405
|
-
Z("p",
|
|
7406
|
-
Z("p",
|
|
7404
|
+
Z("div", d2, [
|
|
7405
|
+
Z("p", t2, B(C.title), 1),
|
|
7406
|
+
Z("p", m2, B(C.description), 1)
|
|
7407
7407
|
]),
|
|
7408
|
-
C.closable ? (t(), a("div",
|
|
7408
|
+
C.closable ? (t(), a("div", l2, [
|
|
7409
7409
|
y(e.$slots, "custom-close"),
|
|
7410
7410
|
e.$slots.close ? f("", !0) : (t(), T(v, {
|
|
7411
7411
|
key: 0,
|
|
@@ -7417,7 +7417,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7417
7417
|
])) : f("", !0)
|
|
7418
7418
|
], 2));
|
|
7419
7419
|
}
|
|
7420
|
-
}), p1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K",
|
|
7420
|
+
}), p1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", o2 = { class: "avatar__wrapper" }, n2 = ["alt", "src"], I5 = /* @__PURE__ */ P({
|
|
7421
7421
|
__name: "RAvatar",
|
|
7422
7422
|
props: {
|
|
7423
7423
|
type: { default: "image" },
|
|
@@ -7428,30 +7428,30 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7428
7428
|
text: { default: "" }
|
|
7429
7429
|
},
|
|
7430
7430
|
setup(H) {
|
|
7431
|
-
const V = H, C =
|
|
7431
|
+
const V = H, C = g(() => ({
|
|
7432
7432
|
avatar: !0,
|
|
7433
7433
|
[`avatar--${V.size}`]: !0
|
|
7434
|
-
})), M =
|
|
7434
|
+
})), M = g(() => V.type === "image" && !V.src), L = g(() => M.value ? p1 : V.src), A = (i) => {
|
|
7435
7435
|
const e = i.split(" ");
|
|
7436
7436
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7437
7437
|
};
|
|
7438
|
-
return (i, e) => (t(), a("div",
|
|
7438
|
+
return (i, e) => (t(), a("div", o2, [
|
|
7439
7439
|
Z("div", {
|
|
7440
|
-
class: h(
|
|
7440
|
+
class: h(k(C))
|
|
7441
7441
|
}, [
|
|
7442
7442
|
V.type === "text" ? (t(), a("p", {
|
|
7443
7443
|
key: 0,
|
|
7444
7444
|
class: h({ avatar__text: !0, [`avatar__text--${V.size}`]: !0 })
|
|
7445
|
-
},
|
|
7445
|
+
}, B(A(V.text)), 3)) : (t(), a("img", {
|
|
7446
7446
|
key: 1,
|
|
7447
7447
|
alt: V.alt,
|
|
7448
7448
|
class: h({
|
|
7449
7449
|
avatar__image: !0,
|
|
7450
7450
|
[`avatar__image--${V.size}`]: !0,
|
|
7451
|
-
"avatar__image--anonymous":
|
|
7451
|
+
"avatar__image--anonymous": k(M)
|
|
7452
7452
|
}),
|
|
7453
|
-
src:
|
|
7454
|
-
}, null, 10,
|
|
7453
|
+
src: k(L)
|
|
7454
|
+
}, null, 10, n2))
|
|
7455
7455
|
], 2),
|
|
7456
7456
|
V.online ? (t(), a("span", {
|
|
7457
7457
|
key: 0,
|
|
@@ -7459,7 +7459,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7459
7459
|
}, null, 2)) : f("", !0)
|
|
7460
7460
|
]));
|
|
7461
7461
|
}
|
|
7462
|
-
}),
|
|
7462
|
+
}), a2 = { class: "badge-wrapper group" }, Q5 = /* @__PURE__ */ P({
|
|
7463
7463
|
__name: "RBadge",
|
|
7464
7464
|
props: {
|
|
7465
7465
|
variant: { default: "primary" },
|
|
@@ -7471,7 +7471,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7471
7471
|
},
|
|
7472
7472
|
emits: ["click"],
|
|
7473
7473
|
setup(H) {
|
|
7474
|
-
const V = H, C =
|
|
7474
|
+
const V = H, C = g(() => ({
|
|
7475
7475
|
badge: !0,
|
|
7476
7476
|
badge__content: V.content,
|
|
7477
7477
|
[`badge--overlap-${V.placement}`]: V.overlap,
|
|
@@ -7481,15 +7481,15 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7481
7481
|
"badge--no-content": !V.content,
|
|
7482
7482
|
[`badge--${V.variant}`]: V.variant
|
|
7483
7483
|
}));
|
|
7484
|
-
return (M, L) => (t(), a("div",
|
|
7484
|
+
return (M, L) => (t(), a("div", a2, [
|
|
7485
7485
|
Z("span", {
|
|
7486
|
-
class: h(
|
|
7486
|
+
class: h(k(C)),
|
|
7487
7487
|
onClick: L[0] || (L[0] = (A) => M.$emit("click"))
|
|
7488
|
-
},
|
|
7488
|
+
}, B(V.content), 3),
|
|
7489
7489
|
y(M.$slots, "default")
|
|
7490
7490
|
]));
|
|
7491
7491
|
}
|
|
7492
|
-
}),
|
|
7492
|
+
}), r2 = ["disabled"], r1 = /* @__PURE__ */ P({
|
|
7493
7493
|
__name: "RButton",
|
|
7494
7494
|
props: {
|
|
7495
7495
|
variant: { default: "primary" },
|
|
@@ -7505,18 +7505,18 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7505
7505
|
},
|
|
7506
7506
|
emits: ["click"],
|
|
7507
7507
|
setup(H) {
|
|
7508
|
-
const V = H, C =
|
|
7508
|
+
const V = H, C = g(() => ({
|
|
7509
7509
|
button: !0,
|
|
7510
7510
|
[`button--${V.variant}`]: !0,
|
|
7511
7511
|
"button--loading": V.loading,
|
|
7512
7512
|
[`button--${V.size || "medium"}`]: !0,
|
|
7513
7513
|
"button--only-icon": V.onlyIcon,
|
|
7514
7514
|
"button--block": V.block
|
|
7515
|
-
})), M =
|
|
7515
|
+
})), M = g(() => ({
|
|
7516
7516
|
small: 20,
|
|
7517
7517
|
medium: 24,
|
|
7518
7518
|
large: 32
|
|
7519
|
-
})[V.size || "medium"]), L =
|
|
7519
|
+
})[V.size || "medium"]), L = g(() => {
|
|
7520
7520
|
const { backgroundColor: A, height: i } = V;
|
|
7521
7521
|
return {
|
|
7522
7522
|
backgroundColor: A,
|
|
@@ -7524,9 +7524,9 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7524
7524
|
};
|
|
7525
7525
|
});
|
|
7526
7526
|
return (A, i) => (t(), a("button", U1(A.$attrs, {
|
|
7527
|
-
class:
|
|
7527
|
+
class: k(C),
|
|
7528
7528
|
disabled: H.disabled || H.loading,
|
|
7529
|
-
style:
|
|
7529
|
+
style: k(L),
|
|
7530
7530
|
onClick: i[0] || (i[0] = E((e) => A.$emit("click"), ["stop"]))
|
|
7531
7531
|
}), [
|
|
7532
7532
|
y(A.$slots, "custom-icon"),
|
|
@@ -7537,24 +7537,24 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7537
7537
|
"button__prepend-icon--only": V.onlyIcon
|
|
7538
7538
|
}),
|
|
7539
7539
|
name: V.prependIcon,
|
|
7540
|
-
size:
|
|
7540
|
+
size: k(M)
|
|
7541
7541
|
}, null, 8, ["class", "name", "size"])) : f("", !0),
|
|
7542
7542
|
V.onlyIcon ? f("", !0) : y(A.$slots, "default", { key: 1 }),
|
|
7543
7543
|
!A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (t(), T(v, {
|
|
7544
7544
|
key: 2,
|
|
7545
7545
|
class: "button__append-icon",
|
|
7546
7546
|
name: V.appendIcon,
|
|
7547
|
-
size:
|
|
7547
|
+
size: k(M)
|
|
7548
7548
|
}, null, 8, ["name", "size"])) : f("", !0)
|
|
7549
|
-
], 16,
|
|
7549
|
+
], 16, r2));
|
|
7550
7550
|
}
|
|
7551
|
-
}),
|
|
7551
|
+
}), Z2 = { class: "checkbox-wrapper" }, S2 = { class: "checkbox-container" }, u2 = ["id", "checked", "disabled", "indeterminate"], c2 = ["data-disabled"], s2 = { class: "checkbox-texts" }, O2 = ["data-disabled", "for"], p2 = {
|
|
7552
7552
|
key: 0,
|
|
7553
7553
|
class: "checkbox-texts__error"
|
|
7554
|
-
},
|
|
7554
|
+
}, h2 = {
|
|
7555
7555
|
key: 1,
|
|
7556
7556
|
class: "checkbox-texts__hint"
|
|
7557
|
-
},
|
|
7557
|
+
}, G5 = /* @__PURE__ */ P({
|
|
7558
7558
|
__name: "RCheckbox",
|
|
7559
7559
|
props: {
|
|
7560
7560
|
id: { default: "" },
|
|
@@ -7574,7 +7574,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7574
7574
|
checked: "mdiCheck",
|
|
7575
7575
|
unchecked: "",
|
|
7576
7576
|
indeterminate: "mdiMinus"
|
|
7577
|
-
}, A =
|
|
7577
|
+
}, A = g(() => M.indeterminate ? L.indeterminate : M.checked ? L.checked : L.unchecked), i = g(() => ({
|
|
7578
7578
|
checkbox: !0,
|
|
7579
7579
|
"checkbox--checked": M.checked,
|
|
7580
7580
|
"checkbox--disabled": C.disabled,
|
|
@@ -7603,8 +7603,8 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7603
7603
|
// TODO: find a better way to do this
|
|
7604
7604
|
immediate: !0
|
|
7605
7605
|
}
|
|
7606
|
-
), (d, o) => (t(), a("div",
|
|
7607
|
-
Z("div",
|
|
7606
|
+
), (d, o) => (t(), a("div", Z2, [
|
|
7607
|
+
Z("div", S2, [
|
|
7608
7608
|
Z("input", {
|
|
7609
7609
|
id: C.id,
|
|
7610
7610
|
checked: M.checked,
|
|
@@ -7613,28 +7613,28 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7613
7613
|
indeterminate: M.indeterminate,
|
|
7614
7614
|
type: "checkbox",
|
|
7615
7615
|
onChange: e
|
|
7616
|
-
}, null, 40,
|
|
7616
|
+
}, null, 40, u2),
|
|
7617
7617
|
Z("div", {
|
|
7618
|
-
class: h(
|
|
7618
|
+
class: h(k(i)),
|
|
7619
7619
|
"data-disabled": C.disabled
|
|
7620
7620
|
}, [
|
|
7621
7621
|
_(v, {
|
|
7622
|
-
name:
|
|
7622
|
+
name: k(A),
|
|
7623
7623
|
size: 24
|
|
7624
7624
|
}, null, 8, ["name"])
|
|
7625
|
-
], 10,
|
|
7625
|
+
], 10, c2)
|
|
7626
7626
|
]),
|
|
7627
|
-
Z("div",
|
|
7627
|
+
Z("div", s2, [
|
|
7628
7628
|
Z("label", {
|
|
7629
7629
|
class: "checkbox-texts__label",
|
|
7630
7630
|
"data-disabled": C.disabled,
|
|
7631
7631
|
for: C.id
|
|
7632
|
-
},
|
|
7633
|
-
C.errorMsg ? (t(), a("p",
|
|
7632
|
+
}, B(C.label), 9, O2),
|
|
7633
|
+
C.errorMsg ? (t(), a("p", p2, B(C.errorMsg), 1)) : (t(), a("p", h2, B(C.hint), 1))
|
|
7634
7634
|
])
|
|
7635
7635
|
]));
|
|
7636
7636
|
}
|
|
7637
|
-
}),
|
|
7637
|
+
}), f2 = { class: "chip__content__label" }, g2 = /* @__PURE__ */ P({
|
|
7638
7638
|
__name: "RChip",
|
|
7639
7639
|
props: {
|
|
7640
7640
|
variant: { default: "primary" },
|
|
@@ -7647,7 +7647,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7647
7647
|
},
|
|
7648
7648
|
emits: ["click:chip", "click:close"],
|
|
7649
7649
|
setup(H, { emit: V }) {
|
|
7650
|
-
const C = H, M =
|
|
7650
|
+
const C = H, M = g(() => ({
|
|
7651
7651
|
chip: !0,
|
|
7652
7652
|
"chip--disabled": C.disabled,
|
|
7653
7653
|
[`chip__${C.variant}`]: C.variant,
|
|
@@ -7658,7 +7658,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7658
7658
|
C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
|
|
7659
7659
|
};
|
|
7660
7660
|
return (i, e) => (t(), a("div", {
|
|
7661
|
-
class: h(
|
|
7661
|
+
class: h(k(M))
|
|
7662
7662
|
}, [
|
|
7663
7663
|
Z("div", {
|
|
7664
7664
|
class: "chip__content",
|
|
@@ -7673,7 +7673,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7673
7673
|
size: 12
|
|
7674
7674
|
}, null, 8, ["aria-disabled", "name"])) : f("", !0)
|
|
7675
7675
|
]),
|
|
7676
|
-
Z("span",
|
|
7676
|
+
Z("span", f2, B(C.label), 1)
|
|
7677
7677
|
]),
|
|
7678
7678
|
y(i.$slots, "append", {}, () => [
|
|
7679
7679
|
C.appendIcon ? (t(), T(v, {
|
|
@@ -7687,13 +7687,13 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7687
7687
|
])
|
|
7688
7688
|
], 2));
|
|
7689
7689
|
}
|
|
7690
|
-
}),
|
|
7690
|
+
}), k2 = { class: "dropdown-wrapper" }, B2 = {
|
|
7691
7691
|
key: 0,
|
|
7692
7692
|
class: "dropdown__tags"
|
|
7693
|
-
},
|
|
7693
|
+
}, b2 = {
|
|
7694
7694
|
key: 1,
|
|
7695
7695
|
class: "dropdown__multiple"
|
|
7696
|
-
},
|
|
7696
|
+
}, y2 = ["disabled", "placeholder", "readonly"], P2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } }, z5 = /* @__PURE__ */ P({
|
|
7697
7697
|
__name: "RDropdown",
|
|
7698
7698
|
props: {
|
|
7699
7699
|
placeholder: { default: "" },
|
|
@@ -7710,13 +7710,13 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7710
7710
|
emits: ["update:modelValue"],
|
|
7711
7711
|
setup(H, { emit: V }) {
|
|
7712
7712
|
const C = H, M = x(""), L = J([]), A = x(!1), i = x(""), e = x(null), d = x(null), o = (r) => {
|
|
7713
|
-
var m, n, p,
|
|
7713
|
+
var m, n, p, b, R, c;
|
|
7714
7714
|
if (!C.disabled) {
|
|
7715
7715
|
if (r.stopPropagation(), A.value = !A.value, A.value) {
|
|
7716
7716
|
(m = e.value) == null || m.classList.add("dropdown--active"), (n = e.value) == null || n.focus(), C.searchable && ((p = d.value) == null || p.focus()), document.addEventListener("click", o);
|
|
7717
7717
|
return;
|
|
7718
7718
|
}
|
|
7719
|
-
(
|
|
7719
|
+
(b = e.value) == null || b.classList.remove("dropdown--active"), (R = e.value) == null || R.blur(), (c = d.value) == null || c.blur(), document.removeEventListener("click", o);
|
|
7720
7720
|
}
|
|
7721
7721
|
}, S = (r, m) => {
|
|
7722
7722
|
var n;
|
|
@@ -7745,11 +7745,11 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7745
7745
|
const m = i.value;
|
|
7746
7746
|
if (m === "")
|
|
7747
7747
|
return;
|
|
7748
|
-
C.options.find((
|
|
7749
|
-
}, O =
|
|
7748
|
+
C.options.find((b) => b.label === m) || (L.push({ value: m, label: m }), i.value = "", (p = d.value) == null || p.focus());
|
|
7749
|
+
}, O = g(() => C.searchable ? C.options.filter((m) => m.label.toLowerCase().includes(i.value.toLowerCase())) : C.options);
|
|
7750
7750
|
return I(L, (r) => {
|
|
7751
7751
|
V("update:modelValue", r);
|
|
7752
|
-
}), (r, m) => (t(), a("div",
|
|
7752
|
+
}), (r, m) => (t(), a("div", k2, [
|
|
7753
7753
|
Z("div", {
|
|
7754
7754
|
ref_key: "dropdown",
|
|
7755
7755
|
ref: e,
|
|
@@ -7771,18 +7771,18 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7771
7771
|
name: C.prependIcon
|
|
7772
7772
|
}, null, 8, ["name"])) : y(r.$slots, "prepend-icon", { key: 0 })
|
|
7773
7773
|
], 2),
|
|
7774
|
-
C.taggable ? (t(), a("div",
|
|
7775
|
-
(t(!0), a(K, null, Y(L, (n, p) => (t(), T(
|
|
7774
|
+
C.taggable ? (t(), a("div", B2, [
|
|
7775
|
+
(t(!0), a(K, null, Y(L, (n, p) => (t(), T(g2, {
|
|
7776
7776
|
key: p,
|
|
7777
7777
|
label: n.label,
|
|
7778
7778
|
appendIcon: "close",
|
|
7779
7779
|
class: "dropdown__tags__chip",
|
|
7780
7780
|
variant: "primary",
|
|
7781
|
-
"onClick:close": (
|
|
7781
|
+
"onClick:close": (b) => s(b, n)
|
|
7782
7782
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7783
7783
|
])) : f("", !0),
|
|
7784
|
-
C.multiple ? (t(), a("div",
|
|
7785
|
-
(t(!0), a(K, null, Y(L, (n, p) => (t(), a("p", { key: p },
|
|
7784
|
+
C.multiple ? (t(), a("div", b2, [
|
|
7785
|
+
(t(!0), a(K, null, Y(L, (n, p) => (t(), a("p", { key: p }, B(n.label + ","), 1))), 128))
|
|
7786
7786
|
])) : f("", !0),
|
|
7787
7787
|
T1(Z("input", {
|
|
7788
7788
|
id: "select",
|
|
@@ -7801,7 +7801,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7801
7801
|
m[1] || (m[1] = O1((n) => s(n, L[L.length - 1]), ["backspace"])),
|
|
7802
7802
|
m[2] || (m[2] = O1((n) => u(n), ["enter"]))
|
|
7803
7803
|
]
|
|
7804
|
-
}, null, 42,
|
|
7804
|
+
}, null, 42, y2), [
|
|
7805
7805
|
[$1, i.value]
|
|
7806
7806
|
]),
|
|
7807
7807
|
Z("div", {
|
|
@@ -7819,7 +7819,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7819
7819
|
Z("ul", {
|
|
7820
7820
|
class: h({ "dropdown-options": !0, "dropdown-options--active": A.value })
|
|
7821
7821
|
}, [
|
|
7822
|
-
(t(!0), a(K, null, Y(
|
|
7822
|
+
(t(!0), a(K, null, Y(k(O), (n) => (t(), a("li", {
|
|
7823
7823
|
key: n.value,
|
|
7824
7824
|
class: h({
|
|
7825
7825
|
"dropdown-options__option": !0,
|
|
@@ -7828,7 +7828,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7828
7828
|
"aria-disabled": n.disabled,
|
|
7829
7829
|
onClick: (p) => S(p, n)
|
|
7830
7830
|
}, [
|
|
7831
|
-
Z("div",
|
|
7831
|
+
Z("div", w2, [
|
|
7832
7832
|
n.prependIcon ? (t(), T(v, {
|
|
7833
7833
|
key: 1,
|
|
7834
7834
|
class: h({
|
|
@@ -7842,7 +7842,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7842
7842
|
"dropdown-options__option__label": !0,
|
|
7843
7843
|
"dropdown-options__option__label--active": n.value === M.value || (L == null ? void 0 : L.includes(n))
|
|
7844
7844
|
})
|
|
7845
|
-
},
|
|
7845
|
+
}, B(n.label), 3)
|
|
7846
7846
|
]),
|
|
7847
7847
|
n.value === M.value || L != null && L.includes(n) ? (t(), T(v, {
|
|
7848
7848
|
key: 0,
|
|
@@ -7852,11 +7852,11 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7852
7852
|
}),
|
|
7853
7853
|
name: "mdiCheck"
|
|
7854
7854
|
}, null, 8, ["class"])) : f("", !0)
|
|
7855
|
-
], 10,
|
|
7855
|
+
], 10, P2))), 128))
|
|
7856
7856
|
], 2)
|
|
7857
7857
|
]));
|
|
7858
7858
|
}
|
|
7859
|
-
}),
|
|
7859
|
+
}), T2 = ["id", "for"], R1 = /* @__PURE__ */ P({
|
|
7860
7860
|
__name: "RLabel",
|
|
7861
7861
|
props: {
|
|
7862
7862
|
id: { default: "" },
|
|
@@ -7868,18 +7868,18 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7868
7868
|
return (C, M) => (t(), a("label", {
|
|
7869
7869
|
id: V.id,
|
|
7870
7870
|
for: V.for
|
|
7871
|
-
},
|
|
7871
|
+
}, B(V.text), 9, T2));
|
|
7872
7872
|
}
|
|
7873
|
-
}),
|
|
7873
|
+
}), v2 = ["onClick"], F2 = ["open"], R2 = { class: "dialog__header" }, x2 = {
|
|
7874
7874
|
key: 0,
|
|
7875
7875
|
class: "icon"
|
|
7876
|
-
},
|
|
7876
|
+
}, D2 = {
|
|
7877
7877
|
key: 1,
|
|
7878
7878
|
class: "title"
|
|
7879
|
-
},
|
|
7879
|
+
}, E2 = {
|
|
7880
7880
|
key: 2,
|
|
7881
7881
|
class: "description"
|
|
7882
|
-
},
|
|
7882
|
+
}, _2 = { class: "dialog__body" }, W2 = { class: "dialog__actions" }, U5 = /* @__PURE__ */ P({
|
|
7883
7883
|
__name: "RModal",
|
|
7884
7884
|
props: {
|
|
7885
7885
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7890,7 +7890,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7890
7890
|
},
|
|
7891
7891
|
emits: ["update:modelValue"],
|
|
7892
7892
|
setup(H, { emit: V }) {
|
|
7893
|
-
const C = H, M =
|
|
7893
|
+
const C = H, M = g(() => ({
|
|
7894
7894
|
dialog: !0,
|
|
7895
7895
|
"dialog--block": C.block
|
|
7896
7896
|
})), L = (A) => {
|
|
@@ -7903,58 +7903,58 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7903
7903
|
Z("div", {
|
|
7904
7904
|
role: "dialog",
|
|
7905
7905
|
"aria-modal": "true",
|
|
7906
|
-
class: h(
|
|
7906
|
+
class: h(k(M)),
|
|
7907
7907
|
open: C.modelValue
|
|
7908
7908
|
}, [
|
|
7909
|
-
Z("div",
|
|
7909
|
+
Z("div", R2, [
|
|
7910
7910
|
y(A.$slots, "header"),
|
|
7911
|
-
C.icon ? (t(), a("div",
|
|
7911
|
+
C.icon ? (t(), a("div", x2, [
|
|
7912
7912
|
_(v, {
|
|
7913
7913
|
name: C.icon
|
|
7914
7914
|
}, null, 8, ["name"])
|
|
7915
7915
|
])) : f("", !0),
|
|
7916
|
-
C.title ? (t(), a("div",
|
|
7917
|
-
C.description ? (t(), a("div",
|
|
7916
|
+
C.title ? (t(), a("div", D2, B(C.title), 1)) : f("", !0),
|
|
7917
|
+
C.description ? (t(), a("div", E2, B(C.description), 1)) : f("", !0)
|
|
7918
7918
|
]),
|
|
7919
|
-
Z("div",
|
|
7919
|
+
Z("div", _2, [
|
|
7920
7920
|
y(A.$slots, "default")
|
|
7921
7921
|
]),
|
|
7922
|
-
Z("div",
|
|
7922
|
+
Z("div", W2, [
|
|
7923
7923
|
y(A.$slots, "actions")
|
|
7924
7924
|
])
|
|
7925
|
-
], 10,
|
|
7926
|
-
], 8,
|
|
7925
|
+
], 10, F2)
|
|
7926
|
+
], 8, v2)), [
|
|
7927
7927
|
[K1, H.modelValue]
|
|
7928
7928
|
]);
|
|
7929
7929
|
}
|
|
7930
|
-
}),
|
|
7930
|
+
}), N2 = { class: "nav" }, I2 = { class: "actions" }, $5 = /* @__PURE__ */ P({
|
|
7931
7931
|
__name: "RSidebar",
|
|
7932
7932
|
props: {
|
|
7933
7933
|
modelValue: { type: Boolean, default: !1 }
|
|
7934
7934
|
},
|
|
7935
7935
|
setup(H) {
|
|
7936
|
-
const V = H, C =
|
|
7936
|
+
const V = H, C = g(() => ({
|
|
7937
7937
|
sidebar: !0,
|
|
7938
7938
|
"sidebar--open": V.modelValue
|
|
7939
7939
|
}));
|
|
7940
7940
|
return (M, L) => (t(), a("aside", {
|
|
7941
|
-
class: h(
|
|
7941
|
+
class: h(k(C))
|
|
7942
7942
|
}, [
|
|
7943
|
-
Z("nav",
|
|
7943
|
+
Z("nav", N2, [
|
|
7944
7944
|
y(M.$slots, "default")
|
|
7945
7945
|
]),
|
|
7946
|
-
Z("div",
|
|
7946
|
+
Z("div", I2, [
|
|
7947
7947
|
y(M.$slots, "actions")
|
|
7948
7948
|
])
|
|
7949
7949
|
], 2));
|
|
7950
7950
|
}
|
|
7951
|
-
}),
|
|
7951
|
+
}), Q2 = { class: "snackbar__text" }, G2 = {
|
|
7952
7952
|
key: 0,
|
|
7953
7953
|
class: "snackbar__action"
|
|
7954
|
-
},
|
|
7954
|
+
}, z2 = {
|
|
7955
7955
|
key: 1,
|
|
7956
7956
|
class: "snackbar__close"
|
|
7957
|
-
},
|
|
7957
|
+
}, K5 = /* @__PURE__ */ P({
|
|
7958
7958
|
__name: "RSnackbar",
|
|
7959
7959
|
props: {
|
|
7960
7960
|
text: { default: "" },
|
|
@@ -7989,8 +7989,8 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7989
7989
|
[C.left ? "snackbar--left" : "snackbar--right"]: !0
|
|
7990
7990
|
})
|
|
7991
7991
|
}, [
|
|
7992
|
-
Z("div",
|
|
7993
|
-
C.showAction ? (t(), a("div",
|
|
7992
|
+
Z("div", Q2, B(C.text), 1),
|
|
7993
|
+
C.showAction ? (t(), a("div", G2, [
|
|
7994
7994
|
y(i.$slots, "action"),
|
|
7995
7995
|
i.$slots.action ? f("", !0) : (t(), T(r1, {
|
|
7996
7996
|
key: 0,
|
|
@@ -7999,12 +7999,12 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7999
7999
|
onClick: L
|
|
8000
8000
|
}, {
|
|
8001
8001
|
default: v1(() => [
|
|
8002
|
-
F1(
|
|
8002
|
+
F1(B(C.actionText), 1)
|
|
8003
8003
|
]),
|
|
8004
8004
|
_: 1
|
|
8005
8005
|
}))
|
|
8006
8006
|
])) : f("", !0),
|
|
8007
|
-
C.showClose ? (t(), a("div",
|
|
8007
|
+
C.showClose ? (t(), a("div", z2, [
|
|
8008
8008
|
y(i.$slots, "close"),
|
|
8009
8009
|
i.$slots.close ? f("", !0) : (t(), T(v, {
|
|
8010
8010
|
key: 0,
|
|
@@ -8015,13 +8015,13 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8015
8015
|
])) : f("", !0)
|
|
8016
8016
|
], 2));
|
|
8017
8017
|
}
|
|
8018
|
-
}),
|
|
8018
|
+
}), U2 = { class: "switch-container" }, $2 = ["id", "checked"], K2 = /* @__PURE__ */ Z("span", { class: "slider round" }, null, -1), j2 = ["id", "for"], q2 = {
|
|
8019
8019
|
key: 0,
|
|
8020
8020
|
class: "switch-texts__error"
|
|
8021
|
-
},
|
|
8021
|
+
}, Y2 = {
|
|
8022
8022
|
key: 1,
|
|
8023
8023
|
class: "switch-texts__hint"
|
|
8024
|
-
},
|
|
8024
|
+
}, j5 = /* @__PURE__ */ P({
|
|
8025
8025
|
__name: "RSwitch",
|
|
8026
8026
|
props: {
|
|
8027
8027
|
id: { default: "switch" },
|
|
@@ -8036,7 +8036,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8036
8036
|
setup(H, { emit: V }) {
|
|
8037
8037
|
const C = H, M = J({
|
|
8038
8038
|
checked: !1
|
|
8039
|
-
}), L =
|
|
8039
|
+
}), L = g(() => ({
|
|
8040
8040
|
switch: !0,
|
|
8041
8041
|
"switch--disabled": C.disabled,
|
|
8042
8042
|
[`switch--${C.size}`]: C.size,
|
|
@@ -8054,9 +8054,9 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8054
8054
|
// TODO: find a better way to do this
|
|
8055
8055
|
immediate: !0
|
|
8056
8056
|
}
|
|
8057
|
-
), (i, e) => (t(), a("div",
|
|
8057
|
+
), (i, e) => (t(), a("div", U2, [
|
|
8058
8058
|
Z("div", {
|
|
8059
|
-
class: h(
|
|
8059
|
+
class: h(k(L))
|
|
8060
8060
|
}, [
|
|
8061
8061
|
Z("input", {
|
|
8062
8062
|
id: C.id,
|
|
@@ -8064,8 +8064,8 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8064
8064
|
class: "switch__input",
|
|
8065
8065
|
type: "checkbox",
|
|
8066
8066
|
onChange: A
|
|
8067
|
-
}, null, 40,
|
|
8068
|
-
|
|
8067
|
+
}, null, 40, $2),
|
|
8068
|
+
K2
|
|
8069
8069
|
], 2),
|
|
8070
8070
|
Z("div", {
|
|
8071
8071
|
class: h({
|
|
@@ -8077,17 +8077,17 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8077
8077
|
id: C.id,
|
|
8078
8078
|
class: "switch-texts__label",
|
|
8079
8079
|
for: C.id
|
|
8080
|
-
},
|
|
8081
|
-
C.errorMsg ? (t(), a("p",
|
|
8080
|
+
}, B(C.label), 9, j2),
|
|
8081
|
+
C.errorMsg ? (t(), a("p", q2, B(C.errorMsg), 1)) : (t(), a("p", Y2, B(C.hint), 1))
|
|
8082
8082
|
], 2)
|
|
8083
8083
|
]));
|
|
8084
8084
|
}
|
|
8085
8085
|
});
|
|
8086
8086
|
var H1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(H1 || {});
|
|
8087
|
-
const
|
|
8087
|
+
const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
8088
8088
|
key: 0,
|
|
8089
8089
|
class: "tab-item__label"
|
|
8090
|
-
},
|
|
8090
|
+
}, C5 = /* @__PURE__ */ P({
|
|
8091
8091
|
__name: "RTabItem",
|
|
8092
8092
|
props: {
|
|
8093
8093
|
id: null,
|
|
@@ -8098,50 +8098,54 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8098
8098
|
disabled: { type: Boolean, default: !1 },
|
|
8099
8099
|
modelValue: { default: "" },
|
|
8100
8100
|
tile: { type: Boolean, default: !1 },
|
|
8101
|
-
block: { type: Boolean, default: !1 }
|
|
8101
|
+
block: { type: Boolean, default: !1 },
|
|
8102
|
+
color: { default: "" }
|
|
8102
8103
|
},
|
|
8103
8104
|
emits: ["update:modelValue", "click:icon"],
|
|
8104
8105
|
setup(H, { emit: V }) {
|
|
8105
|
-
const C = H, M =
|
|
8106
|
+
const C = H, M = g(() => ({
|
|
8106
8107
|
"tab-item": !0,
|
|
8107
8108
|
[`tab-item--${C.variant}`]: !0,
|
|
8108
8109
|
"tab-item--tile": C.tile,
|
|
8109
8110
|
"tab-item--block": C.block
|
|
8111
|
+
})), L = g(() => ({
|
|
8112
|
+
color: C.color
|
|
8110
8113
|
}));
|
|
8111
|
-
function
|
|
8112
|
-
V("update:modelValue",
|
|
8114
|
+
function A(e) {
|
|
8115
|
+
V("update:modelValue", e);
|
|
8113
8116
|
}
|
|
8114
|
-
function
|
|
8117
|
+
function i() {
|
|
8115
8118
|
V("click:icon");
|
|
8116
8119
|
}
|
|
8117
|
-
return (
|
|
8120
|
+
return (e, d) => (t(), a("button", {
|
|
8118
8121
|
"aria-disabled": C.disabled,
|
|
8119
8122
|
"aria-selected": C.modelValue === C.id,
|
|
8120
|
-
class: h(
|
|
8123
|
+
class: h(k(M)),
|
|
8124
|
+
style: q1(k(L)),
|
|
8121
8125
|
disabled: C.disabled,
|
|
8122
|
-
onClick:
|
|
8126
|
+
onClick: d[0] || (d[0] = E((o) => A(C.id), ["stop"]))
|
|
8123
8127
|
}, [
|
|
8124
|
-
y(
|
|
8125
|
-
C.variant !==
|
|
8128
|
+
y(e.$slots, "prepend", {}, () => [
|
|
8129
|
+
C.variant !== k(H1).TEXT && C.prependIcon ? (t(), T(v, {
|
|
8126
8130
|
key: 0,
|
|
8127
8131
|
class: "tab-item__prepend-icon",
|
|
8128
8132
|
name: C.prependIcon,
|
|
8129
8133
|
size: 16
|
|
8130
8134
|
}, null, 8, ["name"])) : f("", !0)
|
|
8131
8135
|
]),
|
|
8132
|
-
C.variant !==
|
|
8133
|
-
y(
|
|
8134
|
-
C.variant !==
|
|
8136
|
+
C.variant !== k(H1).ICON ? (t(), a("span", J2, B(C.label), 1)) : f("", !0),
|
|
8137
|
+
y(e.$slots, "append", {}, () => [
|
|
8138
|
+
C.variant !== k(H1).TEXT && C.appendIcon ? (t(), T(v, {
|
|
8135
8139
|
key: 0,
|
|
8136
8140
|
class: "tab-item__append-icon",
|
|
8137
8141
|
name: C.appendIcon,
|
|
8138
8142
|
size: 16,
|
|
8139
|
-
onClick: E(
|
|
8143
|
+
onClick: E(i, ["stop"])
|
|
8140
8144
|
}, null, 8, ["name", "onClick"])) : f("", !0)
|
|
8141
8145
|
])
|
|
8142
|
-
],
|
|
8146
|
+
], 14, X2));
|
|
8143
8147
|
}
|
|
8144
|
-
}),
|
|
8148
|
+
}), q5 = /* @__PURE__ */ P({
|
|
8145
8149
|
__name: "RTabs",
|
|
8146
8150
|
props: {
|
|
8147
8151
|
tabs: { default: () => [] },
|
|
@@ -8151,7 +8155,7 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8151
8155
|
},
|
|
8152
8156
|
emits: ["update:modelValue"],
|
|
8153
8157
|
setup(H, { emit: V }) {
|
|
8154
|
-
const C = H, M = x(C.modelValue || C.tabs[0].id), L =
|
|
8158
|
+
const C = H, M = x(C.modelValue || C.tabs[0].id), L = g(() => ({
|
|
8155
8159
|
tabs: !0,
|
|
8156
8160
|
"tabs--block": C.block,
|
|
8157
8161
|
"tabs--tile": C.tile
|
|
@@ -8166,10 +8170,10 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8166
8170
|
alert("Icon clicked");
|
|
8167
8171
|
};
|
|
8168
8172
|
return (i, e) => (t(), a("div", {
|
|
8169
|
-
class: h(
|
|
8173
|
+
class: h(k(L))
|
|
8170
8174
|
}, [
|
|
8171
8175
|
y(i.$slots, "default", {}, () => [
|
|
8172
|
-
(t(!0), a(K, null, Y(C.tabs, (d, o) => (t(), T(
|
|
8176
|
+
(t(!0), a(K, null, Y(C.tabs, (d, o) => (t(), T(C5, {
|
|
8173
8177
|
id: d.id,
|
|
8174
8178
|
key: o,
|
|
8175
8179
|
modelValue: M.value,
|
|
@@ -8187,13 +8191,13 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8187
8191
|
])
|
|
8188
8192
|
], 2));
|
|
8189
8193
|
}
|
|
8190
|
-
}),
|
|
8194
|
+
}), H5 = { class: "container" }, V5 = ["id", "disabled", "placeholder", "value"], L5 = {
|
|
8191
8195
|
key: 1,
|
|
8192
8196
|
class: "textarea__error"
|
|
8193
|
-
},
|
|
8197
|
+
}, M5 = {
|
|
8194
8198
|
key: 2,
|
|
8195
8199
|
class: "textarea__hint"
|
|
8196
|
-
},
|
|
8200
|
+
}, Y5 = /* @__PURE__ */ P({
|
|
8197
8201
|
__name: "RTextArea",
|
|
8198
8202
|
props: {
|
|
8199
8203
|
id: { default: "" },
|
|
@@ -8220,7 +8224,7 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8220
8224
|
{
|
|
8221
8225
|
immediate: !0
|
|
8222
8226
|
}
|
|
8223
|
-
), (A, i) => (t(), a("div",
|
|
8227
|
+
), (A, i) => (t(), a("div", H5, [
|
|
8224
8228
|
C.label ? (t(), T(R1, {
|
|
8225
8229
|
key: 0,
|
|
8226
8230
|
id: "textarea",
|
|
@@ -8238,18 +8242,18 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8238
8242
|
placeholder: C.placeholder,
|
|
8239
8243
|
value: M.value,
|
|
8240
8244
|
onInput: L
|
|
8241
|
-
}, null, 42,
|
|
8242
|
-
C.errorMsg ? (t(), a("p",
|
|
8245
|
+
}, null, 42, V5),
|
|
8246
|
+
C.errorMsg ? (t(), a("p", L5, B(C.errorMsg), 1)) : (t(), a("p", M5, B(C.hint), 1))
|
|
8243
8247
|
]));
|
|
8244
8248
|
}
|
|
8245
|
-
}),
|
|
8249
|
+
}), A5 = {
|
|
8246
8250
|
class: /* @__PURE__ */ h({
|
|
8247
8251
|
textfield__wrapper: !0
|
|
8248
8252
|
})
|
|
8249
|
-
},
|
|
8253
|
+
}, i5 = { class: "input-wrapper" }, e5 = ["id", "disabled", "placeholder", "type", "value", "min", "max"], d5 = { class: "textfield__error" }, t5 = {
|
|
8250
8254
|
key: 0,
|
|
8251
8255
|
class: "textfield__hint"
|
|
8252
|
-
},
|
|
8256
|
+
}, m5 = /* @__PURE__ */ P({
|
|
8253
8257
|
__name: "RTextfield",
|
|
8254
8258
|
props: {
|
|
8255
8259
|
id: { default: "" },
|
|
@@ -8285,7 +8289,7 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8285
8289
|
url: "link",
|
|
8286
8290
|
number: "123",
|
|
8287
8291
|
text: ""
|
|
8288
|
-
}, e = x(!1), d =
|
|
8292
|
+
}, e = x(!1), d = g(() => !!L.value), o = g(() => {
|
|
8289
8293
|
const { disabled: c, loading: F, clearable: $, errorMsg: w } = C;
|
|
8290
8294
|
return {
|
|
8291
8295
|
textfield: !0,
|
|
@@ -8297,24 +8301,24 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8297
8301
|
"textfield--filled": d.value
|
|
8298
8302
|
};
|
|
8299
8303
|
});
|
|
8300
|
-
|
|
8304
|
+
g(() => ({
|
|
8301
8305
|
"textfield__prepend-icon": !0,
|
|
8302
8306
|
"textfield__prepend-icon--loading": C.loading,
|
|
8303
8307
|
"textfield__prepend-icon--error": s.value && d.value
|
|
8304
8308
|
}));
|
|
8305
|
-
const S =
|
|
8309
|
+
const S = g(() => ({
|
|
8306
8310
|
"textfield__append-icon": !0,
|
|
8307
8311
|
"textfield__append-icon--clear": u.value,
|
|
8308
8312
|
"textfield__append-icon--error": s.value
|
|
8309
|
-
})), l =
|
|
8313
|
+
})), l = g(() => L.value.length > 0), s = g(() => {
|
|
8310
8314
|
var c;
|
|
8311
8315
|
return (c = C.errorMsg) == null ? void 0 : c.length;
|
|
8312
|
-
}), u =
|
|
8313
|
-
|
|
8316
|
+
}), u = g(() => C.clearable && l.value);
|
|
8317
|
+
g(() => {
|
|
8314
8318
|
const { prependIcon: c, type: F } = C;
|
|
8315
8319
|
return c || i[F];
|
|
8316
8320
|
});
|
|
8317
|
-
const O =
|
|
8321
|
+
const O = g(() => {
|
|
8318
8322
|
const { appendIcon: c, type: F } = C;
|
|
8319
8323
|
return s.value ? "mdiAlertCircleOutline" : u.value && ["text", "email"].includes(F) ? "mdiClose" : F === "password" && A.value === "password" ? "mdiEyeOutline" : F === "password" && A.value === "text" ? "mdiEyeOffOutline" : c;
|
|
8320
8324
|
}), r = () => {
|
|
@@ -8338,7 +8342,7 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8338
8342
|
}), p();
|
|
8339
8343
|
}, p = () => {
|
|
8340
8344
|
A.value = A.value === "password" ? "text" : "password";
|
|
8341
|
-
},
|
|
8345
|
+
}, b = (c) => {
|
|
8342
8346
|
const F = c.target;
|
|
8343
8347
|
L.value = F.value, V("input", {
|
|
8344
8348
|
value: A.value === "number" ? +L.value : L.value
|
|
@@ -8364,7 +8368,7 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8364
8368
|
);
|
|
8365
8369
|
}
|
|
8366
8370
|
), (c, F) => (t(), a("fieldset", null, [
|
|
8367
|
-
Z("div",
|
|
8371
|
+
Z("div", A5, [
|
|
8368
8372
|
_(R1, {
|
|
8369
8373
|
id: C.id,
|
|
8370
8374
|
class: h({
|
|
@@ -8374,9 +8378,9 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8374
8378
|
text: C.label,
|
|
8375
8379
|
onClick: R
|
|
8376
8380
|
}, null, 8, ["id", "for", "text"]),
|
|
8377
|
-
Z("div",
|
|
8381
|
+
Z("div", i5, [
|
|
8378
8382
|
Z("div", {
|
|
8379
|
-
class: h(
|
|
8383
|
+
class: h(k(o))
|
|
8380
8384
|
}, [
|
|
8381
8385
|
y(c.$slots, "prepend"),
|
|
8382
8386
|
f("", !0),
|
|
@@ -8392,19 +8396,19 @@ const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
|
8392
8396
|
max: C.max,
|
|
8393
8397
|
onBlur: m,
|
|
8394
8398
|
onFocus: r,
|
|
8395
|
-
onInput:
|
|
8396
|
-
}, null, 40,
|
|
8399
|
+
onInput: b
|
|
8400
|
+
}, null, 40, e5),
|
|
8397
8401
|
y(c.$slots, "append"),
|
|
8398
|
-
|
|
8402
|
+
k(O) && !c.$slots.append ? (t(), T(v, {
|
|
8399
8403
|
key: 1,
|
|
8400
|
-
class: h(
|
|
8401
|
-
name: `${
|
|
8404
|
+
class: h(k(S)),
|
|
8405
|
+
name: `${k(O)}`,
|
|
8402
8406
|
size: 20,
|
|
8403
8407
|
onClick: n
|
|
8404
8408
|
}, null, 8, ["class", "name"])) : f("", !0)
|
|
8405
8409
|
], 2),
|
|
8406
|
-
Z("div",
|
|
8407
|
-
C.errorMsg ? f("", !0) : (t(), a("div",
|
|
8410
|
+
Z("div", d5, B(C.errorMsg), 1),
|
|
8411
|
+
C.errorMsg ? f("", !0) : (t(), a("div", t5, B(C.hint), 1))
|
|
8408
8412
|
])
|
|
8409
8413
|
])
|
|
8410
8414
|
]));
|
|
@@ -8451,12 +8455,12 @@ function h1(H, V, C) {
|
|
|
8451
8455
|
}
|
|
8452
8456
|
return l;
|
|
8453
8457
|
}
|
|
8454
|
-
const
|
|
8458
|
+
const l5 = async (H, V, C) => {
|
|
8455
8459
|
const { placement: M = "bottom", strategy: L = "absolute", middleware: A = [], platform: i } = C, e = A.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
|
|
8456
8460
|
let o = await i.getElementRects({ reference: H, floating: V, strategy: L }), { x: S, y: l } = h1(o, M, d), s = M, u = {}, O = 0;
|
|
8457
8461
|
for (let r = 0; r < e.length; r++) {
|
|
8458
|
-
const { name: m, fn: n } = e[r], { x: p, y:
|
|
8459
|
-
S = p ?? S, l =
|
|
8462
|
+
const { name: m, fn: n } = e[r], { x: p, y: b, data: R, reset: c } = await n({ x: S, y: l, initialPlacement: M, placement: s, strategy: L, middlewareData: u, rects: o, platform: i, elements: { reference: H, floating: V } });
|
|
8463
|
+
S = p ?? S, l = b ?? l, u = { ...u, [m]: { ...u[m], ...R } }, c && O <= 50 && (O++, typeof c == "object" && (c.placement && (s = c.placement), c.rects && (o = c.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: L }) : c.rects), { x: S, y: l } = h1(o, s, d)), r = -1);
|
|
8460
8464
|
}
|
|
8461
8465
|
return { x: S, y: l, placement: s, strategy: L, middlewareData: u };
|
|
8462
8466
|
};
|
|
@@ -8474,48 +8478,48 @@ async function d1(H, V) {
|
|
|
8474
8478
|
const { x: M, y: L, platform: A, rects: i, elements: e, strategy: d } = H, { boundary: o = "clippingAncestors", rootBoundary: S = "viewport", elementContext: l = "floating", altBoundary: s = !1, padding: u = 0 } = V, O = x1(u), r = e[s ? l === "floating" ? "reference" : "floating" : l], m = e1(await A.getClippingRect({ element: (C = await (A.isElement == null ? void 0 : A.isElement(r))) == null || C ? r : r.contextElement || await (A.getDocumentElement == null ? void 0 : A.getDocumentElement(e.floating)), boundary: o, rootBoundary: S, strategy: d })), n = e1(A.convertOffsetParentRelativeRectToViewportRelativeRect ? await A.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: l === "floating" ? { ...i.floating, x: M, y: L } : i.reference, offsetParent: await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(e.floating)), strategy: d }) : i[l]);
|
|
8475
8479
|
return { top: m.top - n.top + O.top, bottom: n.bottom - m.bottom + O.bottom, left: m.left - n.left + O.left, right: n.right - m.right + O.right };
|
|
8476
8480
|
}
|
|
8477
|
-
const
|
|
8481
|
+
const o5 = Math.min, n5 = Math.max;
|
|
8478
8482
|
function Z1(H, V, C) {
|
|
8479
|
-
return
|
|
8483
|
+
return n5(H, o5(V, C));
|
|
8480
8484
|
}
|
|
8481
|
-
const
|
|
8485
|
+
const a5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
8482
8486
|
const { element: C, padding: M = 0 } = H ?? {}, { x: L, y: A, placement: i, rects: e, platform: d } = V;
|
|
8483
8487
|
if (C == null)
|
|
8484
8488
|
return {};
|
|
8485
|
-
const o = x1(M), S = { x: L, y: A }, l = A1(i), s = l1(i), u = u1(l), O = await d.getDimensions(C), r = l === "y" ? "top" : "left", m = l === "y" ? "bottom" : "right", n = e.reference[u] + e.reference[l] - S[l] - e.floating[u], p = S[l] - e.reference[l],
|
|
8486
|
-
let R =
|
|
8489
|
+
const o = x1(M), S = { x: L, y: A }, l = A1(i), s = l1(i), u = u1(l), O = await d.getDimensions(C), r = l === "y" ? "top" : "left", m = l === "y" ? "bottom" : "right", n = e.reference[u] + e.reference[l] - S[l] - e.floating[u], p = S[l] - e.reference[l], b = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8490
|
+
let R = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0;
|
|
8487
8491
|
R === 0 && (R = e.floating[u]);
|
|
8488
8492
|
const c = n / 2 - p / 2, F = o[r], $ = R - O[u] - o[m], w = R / 2 - O[u] / 2 + c, D = Z1(F, w, $), q = (s === "start" ? o[r] : o[m]) > 0 && w !== D && e.reference[u] <= e.floating[u];
|
|
8489
8493
|
return { [l]: S[l] - (q ? w < F ? F - w : $ - w : 0), data: { [l]: D, centerOffset: w - D } };
|
|
8490
|
-
} }),
|
|
8494
|
+
} }), r5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8491
8495
|
function t1(H) {
|
|
8492
|
-
return H.replace(/left|right|bottom|top/g, (V) =>
|
|
8496
|
+
return H.replace(/left|right|bottom|top/g, (V) => r5[V]);
|
|
8493
8497
|
}
|
|
8494
|
-
function
|
|
8498
|
+
function Z5(H, V, C) {
|
|
8495
8499
|
C === void 0 && (C = !1);
|
|
8496
8500
|
const M = l1(H), L = A1(H), A = u1(L);
|
|
8497
8501
|
let i = L === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
|
|
8498
8502
|
return V.reference[A] > V.floating[A] && (i = t1(i)), { main: i, cross: t1(i) };
|
|
8499
8503
|
}
|
|
8500
|
-
const
|
|
8504
|
+
const S5 = { start: "end", end: "start" };
|
|
8501
8505
|
function f1(H) {
|
|
8502
|
-
return H.replace(/start|end/g, (V) =>
|
|
8506
|
+
return H.replace(/start|end/g, (V) => S5[V]);
|
|
8503
8507
|
}
|
|
8504
8508
|
const D1 = ["top", "right", "bottom", "left"];
|
|
8505
8509
|
D1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
|
|
8506
|
-
const
|
|
8510
|
+
const u5 = function(H) {
|
|
8507
8511
|
return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
|
|
8508
8512
|
var C;
|
|
8509
8513
|
const { placement: M, middlewareData: L, rects: A, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: o = !0, crossAxis: S = !0, fallbackPlacements: l, fallbackStrategy: s = "bestFit", flipAlignment: u = !0, ...O } = H, r = M1(M), m = l || (r === i || !u ? [t1(i)] : function(w) {
|
|
8510
8514
|
const D = t1(w);
|
|
8511
8515
|
return [f1(w), D, f1(D)];
|
|
8512
|
-
}(i)), n = [i, ...m], p = await d1(V, O),
|
|
8516
|
+
}(i)), n = [i, ...m], p = await d1(V, O), b = [];
|
|
8513
8517
|
let R = ((C = L.flip) == null ? void 0 : C.overflows) || [];
|
|
8514
|
-
if (o &&
|
|
8515
|
-
const { main: w, cross: D } =
|
|
8516
|
-
|
|
8518
|
+
if (o && b.push(p[r]), S) {
|
|
8519
|
+
const { main: w, cross: D } = Z5(M, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8520
|
+
b.push(p[w], p[D]);
|
|
8517
8521
|
}
|
|
8518
|
-
if (R = [...R, { placement: M, overflows:
|
|
8522
|
+
if (R = [...R, { placement: M, overflows: b }], !b.every((w) => w <= 0)) {
|
|
8519
8523
|
var c, F;
|
|
8520
8524
|
const w = ((c = (F = L.flip) == null ? void 0 : F.index) != null ? c : 0) + 1, D = n[w];
|
|
8521
8525
|
if (D)
|
|
@@ -8543,7 +8547,7 @@ function g1(H, V) {
|
|
|
8543
8547
|
function k1(H) {
|
|
8544
8548
|
return D1.some((V) => H[V] >= 0);
|
|
8545
8549
|
}
|
|
8546
|
-
const
|
|
8550
|
+
const c5 = function(H) {
|
|
8547
8551
|
let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
|
|
8548
8552
|
return { name: "hide", async fn(M) {
|
|
8549
8553
|
const { rects: L } = M;
|
|
@@ -8560,25 +8564,25 @@ const u5 = function(H) {
|
|
|
8560
8564
|
return {};
|
|
8561
8565
|
}
|
|
8562
8566
|
} };
|
|
8563
|
-
},
|
|
8567
|
+
}, s5 = function(H) {
|
|
8564
8568
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8565
8569
|
const { x: C, y: M } = V, L = await async function(A, i) {
|
|
8566
8570
|
const { placement: e, platform: d, elements: o } = A, S = await (d.isRTL == null ? void 0 : d.isRTL(o.floating)), l = M1(e), s = l1(e), u = A1(e) === "x", O = ["left", "top"].includes(l) ? -1 : 1, r = S && u ? -1 : 1, m = typeof i == "function" ? i(A) : i;
|
|
8567
|
-
let { mainAxis: n, crossAxis: p, alignmentAxis:
|
|
8568
|
-
return s && typeof
|
|
8571
|
+
let { mainAxis: n, crossAxis: p, alignmentAxis: b } = typeof m == "number" ? { mainAxis: m, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...m };
|
|
8572
|
+
return s && typeof b == "number" && (p = s === "end" ? -1 * b : b), u ? { x: p * r, y: n * O } : { x: n * O, y: p * r };
|
|
8569
8573
|
}(V, H);
|
|
8570
8574
|
return { x: C + L.x, y: M + L.y, data: L };
|
|
8571
8575
|
} };
|
|
8572
8576
|
};
|
|
8573
|
-
function
|
|
8577
|
+
function O5(H) {
|
|
8574
8578
|
return H === "x" ? "y" : "x";
|
|
8575
8579
|
}
|
|
8576
|
-
const
|
|
8580
|
+
const p5 = function(H) {
|
|
8577
8581
|
return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
|
|
8578
8582
|
const { x: C, y: M, placement: L } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (m) => {
|
|
8579
8583
|
let { x: n, y: p } = m;
|
|
8580
8584
|
return { x: n, y: p };
|
|
8581
|
-
} }, ...d } = H, o = { x: C, y: M }, S = await d1(V, d), l = A1(M1(L)), s =
|
|
8585
|
+
} }, ...d } = H, o = { x: C, y: M }, S = await d1(V, d), l = A1(M1(L)), s = O5(l);
|
|
8582
8586
|
let u = o[l], O = o[s];
|
|
8583
8587
|
if (A) {
|
|
8584
8588
|
const m = l === "y" ? "bottom" : "right";
|
|
@@ -8627,7 +8631,7 @@ function o1(H) {
|
|
|
8627
8631
|
const { overflow: V, overflowX: C, overflowY: M, display: L } = W(H);
|
|
8628
8632
|
return /auto|scroll|overlay|hidden/.test(V + M + C) && !["inline", "contents"].includes(L);
|
|
8629
8633
|
}
|
|
8630
|
-
function
|
|
8634
|
+
function h5(H) {
|
|
8631
8635
|
return ["table", "td", "th"].includes(U(H));
|
|
8632
8636
|
}
|
|
8633
8637
|
function S1(H) {
|
|
@@ -8663,7 +8667,7 @@ function n1(H) {
|
|
|
8663
8667
|
function N1(H) {
|
|
8664
8668
|
return j(z(H)).left + n1(H).scrollLeft;
|
|
8665
8669
|
}
|
|
8666
|
-
function
|
|
8670
|
+
function f5(H, V, C) {
|
|
8667
8671
|
const M = N(V), L = z(V), A = j(H, M && function(d) {
|
|
8668
8672
|
const o = j(d);
|
|
8669
8673
|
return m1(o.width) !== d.offsetWidth || m1(o.height) !== d.offsetHeight;
|
|
@@ -8690,7 +8694,7 @@ function y1(H) {
|
|
|
8690
8694
|
function P1(H) {
|
|
8691
8695
|
const V = Q(H);
|
|
8692
8696
|
let C = y1(H);
|
|
8693
|
-
for (; C &&
|
|
8697
|
+
for (; C && h5(C) && W(C).position === "static"; )
|
|
8694
8698
|
C = y1(C);
|
|
8695
8699
|
return C && (U(C) === "html" || U(C) === "body" && W(C).position === "static" && !S1(C)) ? V : C || function(M) {
|
|
8696
8700
|
let L = L1(M);
|
|
@@ -8733,7 +8737,7 @@ function w1(H, V, C) {
|
|
|
8733
8737
|
return W(e || A).direction === "rtl" && (S += V1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: o, x: S, y: l };
|
|
8734
8738
|
}(z(H)));
|
|
8735
8739
|
}
|
|
8736
|
-
const
|
|
8740
|
+
const g5 = { getClippingRect: function(H) {
|
|
8737
8741
|
let { element: V, boundary: C, rootBoundary: M, strategy: L } = H;
|
|
8738
8742
|
const A = C === "clippingAncestors" ? function(o) {
|
|
8739
8743
|
let S = Q1(o).filter((O) => X(O) && U(O) !== "body"), l = null;
|
|
@@ -8769,17 +8773,17 @@ const f5 = { getClippingRect: function(H) {
|
|
|
8769
8773
|
}, getOffsetParent: P1, getDocumentElement: z, async getElementRects(H) {
|
|
8770
8774
|
let { reference: V, floating: C, strategy: M } = H;
|
|
8771
8775
|
const L = this.getOffsetParent || P1, A = this.getDimensions;
|
|
8772
|
-
return { reference:
|
|
8773
|
-
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => W(H).direction === "rtl" },
|
|
8776
|
+
return { reference: f5(V, await L(C), M), floating: { x: 0, y: 0, ...await A(C) } };
|
|
8777
|
+
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => W(H).direction === "rtl" }, k5 = (H, V, C) => l5(H, V, { platform: g5, ...C });
|
|
8774
8778
|
function a1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
8775
|
-
!H || !V ||
|
|
8779
|
+
!H || !V || k5(H, V, {
|
|
8776
8780
|
placement: M,
|
|
8777
8781
|
middleware: [
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8782
|
+
s5(L),
|
|
8783
|
+
p5({ padding: A }),
|
|
8784
|
+
a5({ element: C }),
|
|
8785
|
+
u5(),
|
|
8786
|
+
c5()
|
|
8783
8787
|
]
|
|
8784
8788
|
}).then(({ x: i, y: e, placement: d, middlewareData: o }) => {
|
|
8785
8789
|
if (Object.assign(V.style, {
|
|
@@ -8804,7 +8808,7 @@ function a1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
|
8804
8808
|
});
|
|
8805
8809
|
}
|
|
8806
8810
|
var G1 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(G1 || {}), G = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(G || {});
|
|
8807
|
-
const
|
|
8811
|
+
const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], b5 = ["innerHTML"], y5 = /* @__PURE__ */ P({
|
|
8808
8812
|
__name: "RTooltip",
|
|
8809
8813
|
props: {
|
|
8810
8814
|
placement: { default: G1.Top },
|
|
@@ -8826,13 +8830,13 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8826
8830
|
emits: ["show", "hide"],
|
|
8827
8831
|
setup(H, { emit: V }) {
|
|
8828
8832
|
const C = H;
|
|
8829
|
-
|
|
8830
|
-
"271323d4":
|
|
8833
|
+
Y1((m) => ({
|
|
8834
|
+
"271323d4": k(r)
|
|
8831
8835
|
}));
|
|
8832
8836
|
const M = x(null), L = x(null), A = x(null);
|
|
8833
8837
|
function i() {
|
|
8834
|
-
const { placement: m, offset: n, padding: p, disabled:
|
|
8835
|
-
|
|
8838
|
+
const { placement: m, offset: n, padding: p, disabled: b } = C;
|
|
8839
|
+
b || (L.value.style.display = "block", V("show"), a1(M, L, A, m, n, p), d(), C.outsideClick && o("add"));
|
|
8836
8840
|
}
|
|
8837
8841
|
function e() {
|
|
8838
8842
|
L.value.style.display = "", V("hide"), C.outsideClick && o("remove");
|
|
@@ -8855,24 +8859,24 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8855
8859
|
} else
|
|
8856
8860
|
L.value.style.display !== "" && C.triggers === G.Hover && e();
|
|
8857
8861
|
}, u = () => {
|
|
8858
|
-
const { placement: m, offset: n, padding: p, disabled:
|
|
8859
|
-
|
|
8860
|
-
}, O =
|
|
8862
|
+
const { placement: m, offset: n, padding: p, disabled: b } = C;
|
|
8863
|
+
b || C.triggers === G.Hover && a1(M, L, A, m, n, p);
|
|
8864
|
+
}, O = g(() => ({
|
|
8861
8865
|
tooltip: !0,
|
|
8862
8866
|
"tooltip--dark": C.dark,
|
|
8863
8867
|
"tooltip--light": C.light
|
|
8864
8868
|
}));
|
|
8865
8869
|
window.onresize = () => {
|
|
8866
|
-
const { placement: m, offset: n, padding: p, disabled:
|
|
8867
|
-
|
|
8868
|
-
},
|
|
8870
|
+
const { placement: m, offset: n, padding: p, disabled: b } = C;
|
|
8871
|
+
b || C.resizable && a1(M, L, A, m, n, p);
|
|
8872
|
+
}, X1(
|
|
8869
8873
|
() => {
|
|
8870
8874
|
C.disabled || C.shown && C.triggers === G.Manual && i();
|
|
8871
8875
|
},
|
|
8872
8876
|
{ flush: "post" }
|
|
8873
8877
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8874
8878
|
);
|
|
8875
|
-
const r =
|
|
8879
|
+
const r = g(() => `${C.showDelay}ms`);
|
|
8876
8880
|
return (m, n) => (t(), a(K, null, [
|
|
8877
8881
|
Z("div", {
|
|
8878
8882
|
ref_key: "trigger",
|
|
@@ -8888,13 +8892,13 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8888
8892
|
m.$slots.trigger ? f("", !0) : (t(), a("div", {
|
|
8889
8893
|
key: 0,
|
|
8890
8894
|
innerHTML: C.triggerContent
|
|
8891
|
-
}, null, 8,
|
|
8892
|
-
], 40,
|
|
8895
|
+
}, null, 8, b5))
|
|
8896
|
+
], 40, B5),
|
|
8893
8897
|
Z("div", {
|
|
8894
8898
|
id: "tooltip",
|
|
8895
8899
|
ref_key: "tooltip",
|
|
8896
8900
|
ref: L,
|
|
8897
|
-
class: h(
|
|
8901
|
+
class: h(k(O)),
|
|
8898
8902
|
role: "tooltip"
|
|
8899
8903
|
}, [
|
|
8900
8904
|
y(m.$slots, "content", {}, void 0, !0),
|
|
@@ -8905,7 +8909,7 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8905
8909
|
"tooltip__content--dark": C.dark,
|
|
8906
8910
|
"tooltip__content--light": C.light
|
|
8907
8911
|
})
|
|
8908
|
-
},
|
|
8912
|
+
}, B(C.text), 3)),
|
|
8909
8913
|
m.$slots.content ? f("", !0) : (t(), a("div", {
|
|
8910
8914
|
key: 1,
|
|
8911
8915
|
id: "arrow",
|
|
@@ -8921,15 +8925,15 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8921
8925
|
], 64));
|
|
8922
8926
|
}
|
|
8923
8927
|
});
|
|
8924
|
-
const
|
|
8928
|
+
const P5 = (H, V) => {
|
|
8925
8929
|
const C = H.__vccOpts || H;
|
|
8926
8930
|
for (const [M, L] of V)
|
|
8927
8931
|
C[M] = L;
|
|
8928
8932
|
return C;
|
|
8929
|
-
},
|
|
8933
|
+
}, X5 = /* @__PURE__ */ P5(y5, [["__scopeId", "data-v-ee5f5651"]]), w5 = { class: "r-breadcrumb" }, T5 = {
|
|
8930
8934
|
key: 0,
|
|
8931
8935
|
class: "r-breadcrumb__title"
|
|
8932
|
-
},
|
|
8936
|
+
}, J5 = /* @__PURE__ */ P({
|
|
8933
8937
|
__name: "RBreadcrumb",
|
|
8934
8938
|
props: {
|
|
8935
8939
|
items: { default: () => [] },
|
|
@@ -8938,8 +8942,8 @@ const y5 = (H, V) => {
|
|
|
8938
8942
|
setup(H) {
|
|
8939
8943
|
const V = H;
|
|
8940
8944
|
return (C, M) => {
|
|
8941
|
-
const L =
|
|
8942
|
-
return t(), a("div",
|
|
8945
|
+
const L = J1("router-link");
|
|
8946
|
+
return t(), a("div", w5, [
|
|
8943
8947
|
(t(!0), a(K, null, Y(V.items, (A, i) => (t(), a("div", {
|
|
8944
8948
|
class: "r-breadcrumb__item",
|
|
8945
8949
|
key: i
|
|
@@ -8955,7 +8959,7 @@ const y5 = (H, V) => {
|
|
|
8955
8959
|
name: A.icon
|
|
8956
8960
|
}, null, 8, ["name"])) : f("", !0)
|
|
8957
8961
|
]),
|
|
8958
|
-
A.onlyIcon ? f("", !0) : (t(), a("span",
|
|
8962
|
+
A.onlyIcon ? f("", !0) : (t(), a("span", T5, B(A.title), 1))
|
|
8959
8963
|
]),
|
|
8960
8964
|
_: 2
|
|
8961
8965
|
}, 1032, ["to"]),
|
|
@@ -8970,7 +8974,7 @@ const y5 = (H, V) => {
|
|
|
8970
8974
|
]);
|
|
8971
8975
|
};
|
|
8972
8976
|
}
|
|
8973
|
-
}),
|
|
8977
|
+
}), v5 = { class: "r-pagination" }, F5 = { class: "r-pagination__page-info" }, R5 = { key: 0 }, x5 = { class: "r-pagination__page-info__current-page" }, D5 = { class: "r-pagination__page-info__total-pages" }, E5 = { class: "r-pagination__paginator" }, C3 = /* @__PURE__ */ P({
|
|
8974
8978
|
__name: "RPagination",
|
|
8975
8979
|
props: {
|
|
8976
8980
|
page: { default: 1 },
|
|
@@ -8986,14 +8990,14 @@ const y5 = (H, V) => {
|
|
|
8986
8990
|
const C = H, M = (L) => {
|
|
8987
8991
|
L < 1 || L > C.totalPages || V("update:page", L);
|
|
8988
8992
|
};
|
|
8989
|
-
return (L, A) => (t(), a("div",
|
|
8990
|
-
Z("div",
|
|
8991
|
-
H.slash ? f("", !0) : (t(), a("span",
|
|
8992
|
-
Z("span",
|
|
8993
|
-
F1(" " +
|
|
8994
|
-
Z("span",
|
|
8993
|
+
return (L, A) => (t(), a("div", v5, [
|
|
8994
|
+
Z("div", F5, [
|
|
8995
|
+
H.slash ? f("", !0) : (t(), a("span", R5, B(C.pageText), 1)),
|
|
8996
|
+
Z("span", x5, B(C.page), 1),
|
|
8997
|
+
F1(" " + B(H.slash ? "/" : C.ofText) + " ", 1),
|
|
8998
|
+
Z("span", D5, B(H.totalPages), 1)
|
|
8995
8999
|
]),
|
|
8996
|
-
Z("div",
|
|
9000
|
+
Z("div", E5, [
|
|
8997
9001
|
_(r1, {
|
|
8998
9002
|
class: "r-pagination__paginator__prev",
|
|
8999
9003
|
variant: "outline",
|
|
@@ -9002,7 +9006,7 @@ const y5 = (H, V) => {
|
|
|
9002
9006
|
disabled: C.page === 1,
|
|
9003
9007
|
onClick: A[0] || (A[0] = (i) => M(C.page - 1))
|
|
9004
9008
|
}, null, 8, ["prepend-icon", "disabled"]),
|
|
9005
|
-
_(
|
|
9009
|
+
_(m5, {
|
|
9006
9010
|
modelValue: C.page,
|
|
9007
9011
|
"onUpdate:modelValue": A[1] || (A[1] = (i) => C.page = i),
|
|
9008
9012
|
class: "r-pagination__paginator__input",
|
|
@@ -9024,25 +9028,25 @@ const y5 = (H, V) => {
|
|
|
9024
9028
|
}
|
|
9025
9029
|
});
|
|
9026
9030
|
export {
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9031
|
+
W5 as RAccordion,
|
|
9032
|
+
N5 as RAlert,
|
|
9033
|
+
I5 as RAvatar,
|
|
9034
|
+
Q5 as RBadge,
|
|
9035
|
+
J5 as RBreadcrumb,
|
|
9032
9036
|
r1 as RButton,
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9037
|
+
G5 as RCheckbox,
|
|
9038
|
+
g2 as RChip,
|
|
9039
|
+
z5 as RDropdown,
|
|
9036
9040
|
v as RIcon,
|
|
9037
9041
|
R1 as RLabel,
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9042
|
+
U5 as RModal,
|
|
9043
|
+
C3 as RPagination,
|
|
9044
|
+
$5 as RSidebar,
|
|
9045
|
+
K5 as RSnackbar,
|
|
9046
|
+
j5 as RSwitch,
|
|
9047
|
+
C5 as RTabItem,
|
|
9048
|
+
q5 as RTabs,
|
|
9049
|
+
Y5 as RTextArea,
|
|
9050
|
+
m5 as RTextfield,
|
|
9051
|
+
X5 as RTooltip
|
|
9048
9052
|
};
|