@rocketui/vue 0.0.28 → 0.0.30
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 +348 -349
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -10
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, openBlock as t, createElementBlock as r, createElementVNode as a, unref as
|
|
1
|
+
import { defineComponent as w, openBlock as t, createElementBlock as r, createElementVNode as a, unref as b, reactive as J, Fragment as Q, renderList as Y, normalizeClass as h, toDisplayString as f, createVNode as E, computed as k, renderSlot as y, createBlock as T, createCommentVNode as B, mergeProps as U1, withModifiers as K, watch as z, ref as x, withDirectives as T1, withKeys as O1, vModelText as $1, vShow as K1, onMounted as j1, withCtx as v1, createTextVNode as F1, useCssVars as q1, watchEffect as Y1, resolveComponent as X1 } from "vue";
|
|
2
2
|
const J1 = {
|
|
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",
|
|
@@ -7312,12 +7312,12 @@ const J1 = {
|
|
|
7312
7312
|
viewBox: V.viewBox
|
|
7313
7313
|
}, [
|
|
7314
7314
|
a("path", {
|
|
7315
|
-
d:
|
|
7315
|
+
d: b(J1)[V.name]
|
|
7316
7316
|
}, null, 8, H2)
|
|
7317
7317
|
], 8, C2));
|
|
7318
7318
|
}
|
|
7319
7319
|
});
|
|
7320
|
-
const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accordion__icon" }, A2 = { class: "accordion__content" },
|
|
7320
|
+
const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accordion__icon" }, A2 = { class: "accordion__content" }, W5 = /* @__PURE__ */ w({
|
|
7321
7321
|
__name: "RAccordion",
|
|
7322
7322
|
props: {
|
|
7323
7323
|
accordions: null
|
|
@@ -7336,7 +7336,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7336
7336
|
C[i].open = i === L ? !C[i].open : !1;
|
|
7337
7337
|
});
|
|
7338
7338
|
}
|
|
7339
|
-
return (L, A) => (t(!0), r(
|
|
7339
|
+
return (L, A) => (t(!0), r(Q, null, Y(C, (i, e) => (t(), r("div", {
|
|
7340
7340
|
key: e,
|
|
7341
7341
|
class: h({
|
|
7342
7342
|
accordion: !0,
|
|
@@ -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
|
-
a("div", L2,
|
|
7351
|
+
a("div", L2, f(i.title), 1),
|
|
7352
7352
|
a("div", M2, [
|
|
7353
|
-
|
|
7353
|
+
E(v, {
|
|
7354
7354
|
name: i.open ? "mdiChevronDown" : "mdiChevronUp"
|
|
7355
7355
|
}, null, 8, ["name"])
|
|
7356
7356
|
])
|
|
7357
7357
|
], 8, V2),
|
|
7358
7358
|
a("div", A2, [
|
|
7359
|
-
a("span", null,
|
|
7359
|
+
a("span", null, f(i.content), 1)
|
|
7360
7360
|
])
|
|
7361
7361
|
], 2))), 128));
|
|
7362
7362
|
}
|
|
7363
7363
|
}), i2 = { class: "icon" }, e2 = { class: "texts" }, d2 = { class: "texts__title" }, t2 = { class: "texts__description" }, m2 = {
|
|
7364
7364
|
key: 0,
|
|
7365
7365
|
class: "close"
|
|
7366
|
-
},
|
|
7366
|
+
}, I5 = /* @__PURE__ */ w({
|
|
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 = k(() => ({
|
|
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 = k(() => ({
|
|
7384
7384
|
success: "mdiCheckCircle",
|
|
7385
7385
|
error: "mdiAlertCircle",
|
|
7386
7386
|
warning: "mdiAlert",
|
|
7387
7387
|
info: "mdiInformation"
|
|
7388
|
-
})[C.type]), A =
|
|
7388
|
+
})[C.type]), A = k(() => ({
|
|
7389
7389
|
small: 20,
|
|
7390
7390
|
medium: 24,
|
|
7391
7391
|
large: 28
|
|
@@ -7393,31 +7393,31 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7393
7393
|
V("close");
|
|
7394
7394
|
};
|
|
7395
7395
|
return (e, d) => (t(), r("div", {
|
|
7396
|
-
class: h(
|
|
7396
|
+
class: h(b(M))
|
|
7397
7397
|
}, [
|
|
7398
7398
|
a("div", i2, [
|
|
7399
|
-
|
|
7400
|
-
name:
|
|
7401
|
-
size:
|
|
7399
|
+
E(v, {
|
|
7400
|
+
name: b(L),
|
|
7401
|
+
size: b(A)
|
|
7402
7402
|
}, null, 8, ["name", "size"])
|
|
7403
7403
|
]),
|
|
7404
7404
|
a("div", e2, [
|
|
7405
|
-
a("p", d2,
|
|
7406
|
-
a("p", t2,
|
|
7405
|
+
a("p", d2, f(C.title), 1),
|
|
7406
|
+
a("p", t2, f(C.description), 1)
|
|
7407
7407
|
]),
|
|
7408
7408
|
C.closable ? (t(), r("div", m2, [
|
|
7409
7409
|
y(e.$slots, "custom-close"),
|
|
7410
|
-
e.$slots.close ?
|
|
7410
|
+
e.$slots.close ? B("", !0) : (t(), T(v, {
|
|
7411
7411
|
key: 0,
|
|
7412
7412
|
class: "close__button",
|
|
7413
7413
|
name: "close",
|
|
7414
7414
|
size: "16",
|
|
7415
7415
|
onClick: i
|
|
7416
7416
|
}))
|
|
7417
|
-
])) :
|
|
7417
|
+
])) : B("", !0)
|
|
7418
7418
|
], 2));
|
|
7419
7419
|
}
|
|
7420
|
-
}), p1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", l2 = { class: "avatar__wrapper" }, o2 = ["alt", "src"],
|
|
7420
|
+
}), p1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", l2 = { class: "avatar__wrapper" }, o2 = ["alt", "src"], Q5 = /* @__PURE__ */ w({
|
|
7421
7421
|
__name: "RAvatar",
|
|
7422
7422
|
props: {
|
|
7423
7423
|
type: { default: "image" },
|
|
@@ -7428,38 +7428,38 @@ 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 = k(() => ({
|
|
7432
7432
|
avatar: !0,
|
|
7433
7433
|
[`avatar--${V.size}`]: !0
|
|
7434
|
-
})), M =
|
|
7434
|
+
})), M = k(() => V.type === "image" && !V.src), L = k(() => 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
7438
|
return (i, e) => (t(), r("div", l2, [
|
|
7439
7439
|
a("div", {
|
|
7440
|
-
class: h(
|
|
7440
|
+
class: h(b(C))
|
|
7441
7441
|
}, [
|
|
7442
7442
|
V.type === "text" ? (t(), r("p", {
|
|
7443
7443
|
key: 0,
|
|
7444
7444
|
class: h({ avatar__text: !0, [`avatar__text--${V.size}`]: !0 })
|
|
7445
|
-
},
|
|
7445
|
+
}, f(A(V.text)), 3)) : (t(), r("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": b(M)
|
|
7452
7452
|
}),
|
|
7453
|
-
src:
|
|
7453
|
+
src: b(L)
|
|
7454
7454
|
}, null, 10, o2))
|
|
7455
7455
|
], 2),
|
|
7456
7456
|
V.online ? (t(), r("span", {
|
|
7457
7457
|
key: 0,
|
|
7458
7458
|
class: h({ avatar__online: !0, [`avatar__online--${V.size}`]: !0 })
|
|
7459
|
-
}, null, 2)) :
|
|
7459
|
+
}, null, 2)) : B("", !0)
|
|
7460
7460
|
]));
|
|
7461
7461
|
}
|
|
7462
|
-
}), n2 = { class: "badge-wrapper group" },
|
|
7462
|
+
}), n2 = { class: "badge-wrapper group" }, G5 = /* @__PURE__ */ w({
|
|
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 = k(() => ({
|
|
7475
7475
|
badge: !0,
|
|
7476
7476
|
badge__content: V.content,
|
|
7477
7477
|
[`badge--overlap-${V.placement}`]: V.overlap,
|
|
@@ -7483,9 +7483,9 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7483
7483
|
}));
|
|
7484
7484
|
return (M, L) => (t(), r("div", n2, [
|
|
7485
7485
|
a("span", {
|
|
7486
|
-
class: h(
|
|
7486
|
+
class: h(b(C)),
|
|
7487
7487
|
onClick: L[0] || (L[0] = (A) => M.$emit("click"))
|
|
7488
|
-
},
|
|
7488
|
+
}, f(V.content), 3),
|
|
7489
7489
|
y(M.$slots, "default")
|
|
7490
7490
|
]));
|
|
7491
7491
|
}
|
|
@@ -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 = k(() => ({
|
|
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 = k(() => ({
|
|
7516
7516
|
small: 20,
|
|
7517
7517
|
medium: 24,
|
|
7518
7518
|
large: 32
|
|
7519
|
-
})[V.size || "medium"]), L =
|
|
7519
|
+
})[V.size || "medium"]), L = k(() => {
|
|
7520
7520
|
const { backgroundColor: A, height: i } = V;
|
|
7521
7521
|
return {
|
|
7522
7522
|
backgroundColor: A,
|
|
@@ -7524,10 +7524,10 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7524
7524
|
};
|
|
7525
7525
|
});
|
|
7526
7526
|
return (A, i) => (t(), r("button", U1(A.$attrs, {
|
|
7527
|
-
class:
|
|
7527
|
+
class: b(C),
|
|
7528
7528
|
disabled: H.disabled || H.loading,
|
|
7529
|
-
style:
|
|
7530
|
-
onClick: i[0] || (i[0] =
|
|
7529
|
+
style: b(L),
|
|
7530
|
+
onClick: i[0] || (i[0] = K((e) => A.$emit("click"), ["stop"]))
|
|
7531
7531
|
}), [
|
|
7532
7532
|
y(A.$slots, "custom-icon"),
|
|
7533
7533
|
!A.$slots["custom-icon"] && V.prependIcon ? (t(), T(v, {
|
|
@@ -7537,15 +7537,15 @@ 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:
|
|
7541
|
-
}, null, 8, ["class", "name", "size"])) :
|
|
7542
|
-
V.onlyIcon ?
|
|
7540
|
+
size: b(M)
|
|
7541
|
+
}, null, 8, ["class", "name", "size"])) : B("", !0),
|
|
7542
|
+
V.onlyIcon ? B("", !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:
|
|
7548
|
-
}, null, 8, ["name", "size"])) :
|
|
7547
|
+
size: b(M)
|
|
7548
|
+
}, null, 8, ["name", "size"])) : B("", !0)
|
|
7549
7549
|
], 16, r2));
|
|
7550
7550
|
}
|
|
7551
7551
|
}), a2 = { class: "checkbox-wrapper" }, Z2 = { class: "checkbox-container" }, S2 = ["id", "checked", "disabled", "indeterminate"], u2 = ["data-disabled"], c2 = { class: "checkbox-texts" }, s2 = ["data-disabled", "for"], O2 = {
|
|
@@ -7554,7 +7554,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7554
7554
|
}, p2 = {
|
|
7555
7555
|
key: 1,
|
|
7556
7556
|
class: "checkbox-texts__hint"
|
|
7557
|
-
},
|
|
7557
|
+
}, z5 = /* @__PURE__ */ w({
|
|
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 = k(() => M.indeterminate ? L.indeterminate : M.checked ? L.checked : L.unchecked), i = k(() => ({
|
|
7578
7578
|
checkbox: !0,
|
|
7579
7579
|
"checkbox--checked": M.checked,
|
|
7580
7580
|
"checkbox--disabled": C.disabled,
|
|
@@ -7583,7 +7583,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7583
7583
|
})), e = (d) => {
|
|
7584
7584
|
C.disabled || (M.checked = d.target.checked, M.indeterminate = !1, V("update:modelValue", M.checked));
|
|
7585
7585
|
};
|
|
7586
|
-
return
|
|
7586
|
+
return z(
|
|
7587
7587
|
() => C.indeterminate,
|
|
7588
7588
|
(d) => {
|
|
7589
7589
|
M.indeterminate = d, d === !0 && (M.checked = !1, V("update:modelValue", M.checked));
|
|
@@ -7593,7 +7593,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7593
7593
|
// TODO: find a better way to do this
|
|
7594
7594
|
immediate: !0
|
|
7595
7595
|
}
|
|
7596
|
-
),
|
|
7596
|
+
), z(
|
|
7597
7597
|
() => C.modelValue,
|
|
7598
7598
|
(d) => {
|
|
7599
7599
|
M.checked = d;
|
|
@@ -7615,11 +7615,11 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7615
7615
|
onChange: e
|
|
7616
7616
|
}, null, 40, S2),
|
|
7617
7617
|
a("div", {
|
|
7618
|
-
class: h(
|
|
7618
|
+
class: h(b(i)),
|
|
7619
7619
|
"data-disabled": C.disabled
|
|
7620
7620
|
}, [
|
|
7621
|
-
|
|
7622
|
-
name:
|
|
7621
|
+
E(v, {
|
|
7622
|
+
name: b(A),
|
|
7623
7623
|
size: 24
|
|
7624
7624
|
}, null, 8, ["name"])
|
|
7625
7625
|
], 10, u2)
|
|
@@ -7629,72 +7629,71 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7629
7629
|
class: "checkbox-texts__label",
|
|
7630
7630
|
"data-disabled": C.disabled,
|
|
7631
7631
|
for: C.id
|
|
7632
|
-
},
|
|
7633
|
-
C.errorMsg ? (t(), r("p", O2,
|
|
7632
|
+
}, f(C.label), 9, s2),
|
|
7633
|
+
C.errorMsg ? (t(), r("p", O2, f(C.errorMsg), 1)) : (t(), r("p", p2, f(C.hint), 1))
|
|
7634
7634
|
])
|
|
7635
7635
|
]));
|
|
7636
7636
|
}
|
|
7637
|
-
}), h2 = /* @__PURE__ */ w({
|
|
7637
|
+
}), h2 = { class: "chip__content__label" }, f2 = /* @__PURE__ */ w({
|
|
7638
7638
|
__name: "RChip",
|
|
7639
7639
|
props: {
|
|
7640
7640
|
variant: { default: "primary" },
|
|
7641
|
-
size: { default: "medium" },
|
|
7642
7641
|
label: { default: "label" },
|
|
7643
7642
|
disabled: { type: Boolean, default: !1 },
|
|
7644
7643
|
prependIcon: { default: "" },
|
|
7645
7644
|
appendIcon: { default: "" },
|
|
7646
|
-
ghost: { type: Boolean, default: !1 }
|
|
7645
|
+
ghost: { type: Boolean, default: !1 },
|
|
7646
|
+
closable: { type: Boolean, default: !1 }
|
|
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 = k(() => ({
|
|
7651
7651
|
chip: !0,
|
|
7652
7652
|
"chip--disabled": C.disabled,
|
|
7653
7653
|
[`chip__${C.variant}`]: C.variant,
|
|
7654
|
-
[`chip--${C.size}`]: C.size,
|
|
7655
7654
|
[`chip__${C.variant}--ghost`]: C.ghost
|
|
7656
|
-
})), L =
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
})[C.size || "medium"]), A = (e) => {
|
|
7661
|
-
C.disabled || V("click:chip", e);
|
|
7662
|
-
}, i = (e) => {
|
|
7663
|
-
C.disabled || V("click:close", e);
|
|
7655
|
+
})), L = (i) => {
|
|
7656
|
+
C.closable && i.stopPropagation(), !C.disabled && V("click:chip", i);
|
|
7657
|
+
}, A = (i) => {
|
|
7658
|
+
C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
|
|
7664
7659
|
};
|
|
7665
|
-
return (
|
|
7666
|
-
class: h(
|
|
7660
|
+
return (i, e) => (t(), r("div", {
|
|
7661
|
+
class: h(b(M))
|
|
7667
7662
|
}, [
|
|
7668
7663
|
a("div", {
|
|
7669
7664
|
class: "chip__content",
|
|
7670
|
-
onClick:
|
|
7665
|
+
onClick: e[0] || (e[0] = (d) => L(d))
|
|
7671
7666
|
}, [
|
|
7672
|
-
|
|
7667
|
+
y(i.$slots, "prepend", {}, () => [
|
|
7668
|
+
C.prependIcon ? (t(), T(v, {
|
|
7669
|
+
key: 0,
|
|
7670
|
+
class: "chip__content__prepend-icon",
|
|
7671
|
+
"aria-disabled": C.disabled,
|
|
7672
|
+
name: C.prependIcon,
|
|
7673
|
+
size: 12
|
|
7674
|
+
}, null, 8, ["aria-disabled", "name"])) : B("", !0)
|
|
7675
|
+
]),
|
|
7676
|
+
a("span", h2, f(C.label), 1)
|
|
7677
|
+
]),
|
|
7678
|
+
y(i.$slots, "append", {}, () => [
|
|
7679
|
+
C.appendIcon ? (t(), T(v, {
|
|
7673
7680
|
key: 0,
|
|
7681
|
+
class: "chip__content__append-icon",
|
|
7674
7682
|
"aria-disabled": C.disabled,
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
}, null, 8, ["aria-disabled", "name"
|
|
7679
|
-
|
|
7680
|
-
]),
|
|
7681
|
-
C.appendIcon ? (t(), T(v, {
|
|
7682
|
-
key: 0,
|
|
7683
|
-
"aria-disabled": C.disabled,
|
|
7684
|
-
class: "chip__append-icon",
|
|
7685
|
-
name: C.appendIcon,
|
|
7686
|
-
size: g(L),
|
|
7687
|
-
onClick: d[1] || (d[1] = E((o) => i(o), ["stop"]))
|
|
7688
|
-
}, null, 8, ["aria-disabled", "name", "size"])) : b("", !0)
|
|
7683
|
+
name: C.appendIcon,
|
|
7684
|
+
size: 12,
|
|
7685
|
+
onClick: e[1] || (e[1] = (d) => A(d))
|
|
7686
|
+
}, null, 8, ["aria-disabled", "name"])) : B("", !0)
|
|
7687
|
+
])
|
|
7689
7688
|
], 2));
|
|
7690
7689
|
}
|
|
7691
|
-
}),
|
|
7690
|
+
}), g2 = { class: "dropdown-wrapper" }, k2 = {
|
|
7692
7691
|
key: 0,
|
|
7693
7692
|
class: "dropdown__tags"
|
|
7694
|
-
},
|
|
7693
|
+
}, B2 = {
|
|
7695
7694
|
key: 1,
|
|
7696
7695
|
class: "dropdown__multiple"
|
|
7697
|
-
},
|
|
7696
|
+
}, b2 = ["disabled", "placeholder", "readonly"], y2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } }, U5 = /* @__PURE__ */ w({
|
|
7698
7697
|
__name: "RDropdown",
|
|
7699
7698
|
props: {
|
|
7700
7699
|
placeholder: { default: "" },
|
|
@@ -7711,13 +7710,13 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7711
7710
|
emits: ["update:modelValue"],
|
|
7712
7711
|
setup(H, { emit: V }) {
|
|
7713
7712
|
const C = H, M = x(""), L = J([]), A = x(!1), i = x(""), e = x(null), d = x(null), o = (Z) => {
|
|
7714
|
-
var m, n, p,
|
|
7713
|
+
var m, n, p, g, R, c;
|
|
7715
7714
|
if (!C.disabled) {
|
|
7716
7715
|
if (Z.stopPropagation(), A.value = !A.value, A.value) {
|
|
7717
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);
|
|
7718
7717
|
return;
|
|
7719
7718
|
}
|
|
7720
|
-
(
|
|
7719
|
+
(g = e.value) == null || g.classList.remove("dropdown--active"), (R = e.value) == null || R.blur(), (c = d.value) == null || c.blur(), document.removeEventListener("click", o);
|
|
7721
7720
|
}
|
|
7722
7721
|
}, S = (Z, m) => {
|
|
7723
7722
|
var n;
|
|
@@ -7746,11 +7745,11 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7746
7745
|
const m = i.value;
|
|
7747
7746
|
if (m === "")
|
|
7748
7747
|
return;
|
|
7749
|
-
C.options.find((
|
|
7750
|
-
}, O =
|
|
7751
|
-
return
|
|
7748
|
+
C.options.find((g) => g.label === m) || (L.push({ value: m, label: m }), i.value = "", (p = d.value) == null || p.focus());
|
|
7749
|
+
}, O = k(() => C.searchable ? C.options.filter((m) => m.label.toLowerCase().includes(i.value.toLowerCase())) : C.options);
|
|
7750
|
+
return z(L, (Z) => {
|
|
7752
7751
|
V("update:modelValue", Z);
|
|
7753
|
-
}), (Z, m) => (t(), r("div",
|
|
7752
|
+
}), (Z, m) => (t(), r("div", g2, [
|
|
7754
7753
|
a("div", {
|
|
7755
7754
|
ref_key: "dropdown",
|
|
7756
7755
|
ref: e,
|
|
@@ -7772,19 +7771,19 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7772
7771
|
name: C.prependIcon
|
|
7773
7772
|
}, null, 8, ["name"])) : y(Z.$slots, "prepend-icon", { key: 0 })
|
|
7774
7773
|
], 2),
|
|
7775
|
-
C.taggable ? (t(), r("div",
|
|
7776
|
-
(t(!0), r(
|
|
7774
|
+
C.taggable ? (t(), r("div", k2, [
|
|
7775
|
+
(t(!0), r(Q, null, Y(L, (n, p) => (t(), T(f2, {
|
|
7777
7776
|
key: p,
|
|
7778
7777
|
label: n.label,
|
|
7779
7778
|
appendIcon: "close",
|
|
7780
7779
|
class: "dropdown__tags__chip",
|
|
7781
7780
|
variant: "primary",
|
|
7782
|
-
"onClick:close": (
|
|
7781
|
+
"onClick:close": (g) => s(g, n)
|
|
7783
7782
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7784
|
-
])) :
|
|
7785
|
-
C.multiple ? (t(), r("div",
|
|
7786
|
-
(t(!0), r(
|
|
7787
|
-
])) :
|
|
7783
|
+
])) : B("", !0),
|
|
7784
|
+
C.multiple ? (t(), r("div", B2, [
|
|
7785
|
+
(t(!0), r(Q, null, Y(L, (n, p) => (t(), r("p", { key: p }, f(n.label + ","), 1))), 128))
|
|
7786
|
+
])) : B("", !0),
|
|
7788
7787
|
T1(a("input", {
|
|
7789
7788
|
id: "select",
|
|
7790
7789
|
ref_key: "input",
|
|
@@ -7802,7 +7801,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7802
7801
|
m[1] || (m[1] = O1((n) => s(n, L[L.length - 1]), ["backspace"])),
|
|
7803
7802
|
m[2] || (m[2] = O1((n) => u(n), ["enter"]))
|
|
7804
7803
|
]
|
|
7805
|
-
}, null, 42,
|
|
7804
|
+
}, null, 42, b2), [
|
|
7806
7805
|
[$1, i.value]
|
|
7807
7806
|
]),
|
|
7808
7807
|
a("div", {
|
|
@@ -7820,7 +7819,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7820
7819
|
a("ul", {
|
|
7821
7820
|
class: h({ "dropdown-options": !0, "dropdown-options--active": A.value })
|
|
7822
7821
|
}, [
|
|
7823
|
-
(t(!0), r(
|
|
7822
|
+
(t(!0), r(Q, null, Y(b(O), (n) => (t(), r("li", {
|
|
7824
7823
|
key: n.value,
|
|
7825
7824
|
class: h({
|
|
7826
7825
|
"dropdown-options__option": !0,
|
|
@@ -7829,7 +7828,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7829
7828
|
"aria-disabled": n.disabled,
|
|
7830
7829
|
onClick: (p) => S(p, n)
|
|
7831
7830
|
}, [
|
|
7832
|
-
a("div",
|
|
7831
|
+
a("div", w2, [
|
|
7833
7832
|
n.prependIcon ? (t(), T(v, {
|
|
7834
7833
|
key: 1,
|
|
7835
7834
|
class: h({
|
|
@@ -7843,7 +7842,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7843
7842
|
"dropdown-options__option__label": !0,
|
|
7844
7843
|
"dropdown-options__option__label--active": n.value === M.value || (L == null ? void 0 : L.includes(n))
|
|
7845
7844
|
})
|
|
7846
|
-
},
|
|
7845
|
+
}, f(n.label), 3)
|
|
7847
7846
|
]),
|
|
7848
7847
|
n.value === M.value || L != null && L.includes(n) ? (t(), T(v, {
|
|
7849
7848
|
key: 0,
|
|
@@ -7852,12 +7851,12 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7852
7851
|
"dropdown-options__option__append-icon--active": n.value === M.value || (L == null ? void 0 : L.includes(n))
|
|
7853
7852
|
}),
|
|
7854
7853
|
name: "mdiCheck"
|
|
7855
|
-
}, null, 8, ["class"])) :
|
|
7856
|
-
], 10,
|
|
7854
|
+
}, null, 8, ["class"])) : B("", !0)
|
|
7855
|
+
], 10, y2))), 128))
|
|
7857
7856
|
], 2)
|
|
7858
7857
|
]));
|
|
7859
7858
|
}
|
|
7860
|
-
}),
|
|
7859
|
+
}), P2 = ["id", "for"], R1 = /* @__PURE__ */ w({
|
|
7861
7860
|
__name: "RLabel",
|
|
7862
7861
|
props: {
|
|
7863
7862
|
id: { default: "" },
|
|
@@ -7869,18 +7868,18 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7869
7868
|
return (C, M) => (t(), r("label", {
|
|
7870
7869
|
id: V.id,
|
|
7871
7870
|
for: V.for
|
|
7872
|
-
},
|
|
7871
|
+
}, f(V.text), 9, P2));
|
|
7873
7872
|
}
|
|
7874
|
-
}),
|
|
7873
|
+
}), T2 = ["onClick"], v2 = ["open"], F2 = { class: "dialog__header" }, R2 = {
|
|
7875
7874
|
key: 0,
|
|
7876
7875
|
class: "icon"
|
|
7877
|
-
},
|
|
7876
|
+
}, x2 = {
|
|
7878
7877
|
key: 1,
|
|
7879
7878
|
class: "title"
|
|
7880
|
-
},
|
|
7879
|
+
}, D2 = {
|
|
7881
7880
|
key: 2,
|
|
7882
7881
|
class: "description"
|
|
7883
|
-
},
|
|
7882
|
+
}, E2 = { class: "dialog__body" }, _2 = { class: "dialog__actions" }, $5 = /* @__PURE__ */ w({
|
|
7884
7883
|
__name: "RModal",
|
|
7885
7884
|
props: {
|
|
7886
7885
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7891,7 +7890,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7891
7890
|
},
|
|
7892
7891
|
emits: ["update:modelValue"],
|
|
7893
7892
|
setup(H, { emit: V }) {
|
|
7894
|
-
const C = H, M =
|
|
7893
|
+
const C = H, M = k(() => ({
|
|
7895
7894
|
dialog: !0,
|
|
7896
7895
|
"dialog--block": C.block
|
|
7897
7896
|
})), L = (A) => {
|
|
@@ -7899,63 +7898,63 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7899
7898
|
};
|
|
7900
7899
|
return (A, i) => T1((t(), r("div", {
|
|
7901
7900
|
class: "modal",
|
|
7902
|
-
onClick:
|
|
7901
|
+
onClick: K(L, ["stop"])
|
|
7903
7902
|
}, [
|
|
7904
7903
|
a("div", {
|
|
7905
7904
|
role: "dialog",
|
|
7906
7905
|
"aria-modal": "true",
|
|
7907
|
-
class: h(
|
|
7906
|
+
class: h(b(M)),
|
|
7908
7907
|
open: C.modelValue
|
|
7909
7908
|
}, [
|
|
7910
|
-
a("div",
|
|
7909
|
+
a("div", F2, [
|
|
7911
7910
|
y(A.$slots, "header"),
|
|
7912
|
-
C.icon ? (t(), r("div",
|
|
7913
|
-
|
|
7911
|
+
C.icon ? (t(), r("div", R2, [
|
|
7912
|
+
E(v, {
|
|
7914
7913
|
name: C.icon
|
|
7915
7914
|
}, null, 8, ["name"])
|
|
7916
|
-
])) :
|
|
7917
|
-
C.title ? (t(), r("div",
|
|
7918
|
-
C.description ? (t(), r("div",
|
|
7915
|
+
])) : B("", !0),
|
|
7916
|
+
C.title ? (t(), r("div", x2, f(C.title), 1)) : B("", !0),
|
|
7917
|
+
C.description ? (t(), r("div", D2, f(C.description), 1)) : B("", !0)
|
|
7919
7918
|
]),
|
|
7920
|
-
a("div",
|
|
7919
|
+
a("div", E2, [
|
|
7921
7920
|
y(A.$slots, "default")
|
|
7922
7921
|
]),
|
|
7923
|
-
a("div",
|
|
7922
|
+
a("div", _2, [
|
|
7924
7923
|
y(A.$slots, "actions")
|
|
7925
7924
|
])
|
|
7926
|
-
], 10,
|
|
7927
|
-
], 8,
|
|
7925
|
+
], 10, v2)
|
|
7926
|
+
], 8, T2)), [
|
|
7928
7927
|
[K1, H.modelValue]
|
|
7929
7928
|
]);
|
|
7930
7929
|
}
|
|
7931
|
-
}),
|
|
7930
|
+
}), N2 = { class: "nav" }, W2 = { class: "actions" }, K5 = /* @__PURE__ */ w({
|
|
7932
7931
|
__name: "RSidebar",
|
|
7933
7932
|
props: {
|
|
7934
7933
|
modelValue: { type: Boolean, default: !1 }
|
|
7935
7934
|
},
|
|
7936
7935
|
setup(H) {
|
|
7937
|
-
const V = H, C =
|
|
7936
|
+
const V = H, C = k(() => ({
|
|
7938
7937
|
sidebar: !0,
|
|
7939
7938
|
"sidebar--open": V.modelValue
|
|
7940
7939
|
}));
|
|
7941
7940
|
return (M, L) => (t(), r("aside", {
|
|
7942
|
-
class: h(
|
|
7941
|
+
class: h(b(C))
|
|
7943
7942
|
}, [
|
|
7944
|
-
a("nav",
|
|
7943
|
+
a("nav", N2, [
|
|
7945
7944
|
y(M.$slots, "default")
|
|
7946
7945
|
]),
|
|
7947
|
-
a("div",
|
|
7946
|
+
a("div", W2, [
|
|
7948
7947
|
y(M.$slots, "actions")
|
|
7949
7948
|
])
|
|
7950
7949
|
], 2));
|
|
7951
7950
|
}
|
|
7952
|
-
}),
|
|
7951
|
+
}), I2 = { class: "snackbar__text" }, Q2 = {
|
|
7953
7952
|
key: 0,
|
|
7954
7953
|
class: "snackbar__action"
|
|
7955
|
-
},
|
|
7954
|
+
}, G2 = {
|
|
7956
7955
|
key: 1,
|
|
7957
7956
|
class: "snackbar__close"
|
|
7958
|
-
},
|
|
7957
|
+
}, j5 = /* @__PURE__ */ w({
|
|
7959
7958
|
__name: "RSnackbar",
|
|
7960
7959
|
props: {
|
|
7961
7960
|
text: { default: "" },
|
|
@@ -7977,7 +7976,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7977
7976
|
C.timeout && setTimeout(() => {
|
|
7978
7977
|
M.value = !1, V("close");
|
|
7979
7978
|
}, C.timeout);
|
|
7980
|
-
}),
|
|
7979
|
+
}), z(
|
|
7981
7980
|
() => C.show,
|
|
7982
7981
|
(i) => {
|
|
7983
7982
|
M.value = i;
|
|
@@ -7990,39 +7989,39 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
7990
7989
|
[C.left ? "snackbar--left" : "snackbar--right"]: !0
|
|
7991
7990
|
})
|
|
7992
7991
|
}, [
|
|
7993
|
-
a("div",
|
|
7994
|
-
C.showAction ? (t(), r("div",
|
|
7992
|
+
a("div", I2, f(C.text), 1),
|
|
7993
|
+
C.showAction ? (t(), r("div", Q2, [
|
|
7995
7994
|
y(i.$slots, "action"),
|
|
7996
|
-
i.$slots.action ?
|
|
7995
|
+
i.$slots.action ? B("", !0) : (t(), T(a1, {
|
|
7997
7996
|
key: 0,
|
|
7998
7997
|
size: "small",
|
|
7999
7998
|
variant: "ghost",
|
|
8000
7999
|
onClick: L
|
|
8001
8000
|
}, {
|
|
8002
8001
|
default: v1(() => [
|
|
8003
|
-
F1(
|
|
8002
|
+
F1(f(C.actionText), 1)
|
|
8004
8003
|
]),
|
|
8005
8004
|
_: 1
|
|
8006
8005
|
}))
|
|
8007
|
-
])) :
|
|
8008
|
-
C.showClose ? (t(), r("div",
|
|
8006
|
+
])) : B("", !0),
|
|
8007
|
+
C.showClose ? (t(), r("div", G2, [
|
|
8009
8008
|
y(i.$slots, "close"),
|
|
8010
|
-
i.$slots.close ?
|
|
8009
|
+
i.$slots.close ? B("", !0) : (t(), T(v, {
|
|
8011
8010
|
key: 0,
|
|
8012
8011
|
name: "mdiClose",
|
|
8013
8012
|
size: 20,
|
|
8014
|
-
onClick:
|
|
8013
|
+
onClick: K(A, ["stop"])
|
|
8015
8014
|
}, null, 8, ["onClick"]))
|
|
8016
|
-
])) :
|
|
8015
|
+
])) : B("", !0)
|
|
8017
8016
|
], 2));
|
|
8018
8017
|
}
|
|
8019
|
-
}),
|
|
8018
|
+
}), z2 = { class: "switch-container" }, U2 = ["id", "checked"], $2 = /* @__PURE__ */ a("span", { class: "slider round" }, null, -1), K2 = ["id", "for"], j2 = {
|
|
8020
8019
|
key: 0,
|
|
8021
8020
|
class: "switch-texts__error"
|
|
8022
|
-
},
|
|
8021
|
+
}, q2 = {
|
|
8023
8022
|
key: 1,
|
|
8024
8023
|
class: "switch-texts__hint"
|
|
8025
|
-
},
|
|
8024
|
+
}, q5 = /* @__PURE__ */ w({
|
|
8026
8025
|
__name: "RSwitch",
|
|
8027
8026
|
props: {
|
|
8028
8027
|
id: { default: "switch" },
|
|
@@ -8037,7 +8036,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8037
8036
|
setup(H, { emit: V }) {
|
|
8038
8037
|
const C = H, M = J({
|
|
8039
8038
|
checked: !1
|
|
8040
|
-
}), L =
|
|
8039
|
+
}), L = k(() => ({
|
|
8041
8040
|
switch: !0,
|
|
8042
8041
|
"switch--disabled": C.disabled,
|
|
8043
8042
|
[`switch--${C.size}`]: C.size,
|
|
@@ -8045,7 +8044,7 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8045
8044
|
})), A = (i) => {
|
|
8046
8045
|
C.disabled || (M.checked = i.target.checked, V("update:modelValue", M.checked));
|
|
8047
8046
|
};
|
|
8048
|
-
return
|
|
8047
|
+
return z(
|
|
8049
8048
|
() => C.modelValue,
|
|
8050
8049
|
(i) => {
|
|
8051
8050
|
M.checked = i;
|
|
@@ -8055,9 +8054,9 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8055
8054
|
// TODO: find a better way to do this
|
|
8056
8055
|
immediate: !0
|
|
8057
8056
|
}
|
|
8058
|
-
), (i, e) => (t(), r("div",
|
|
8057
|
+
), (i, e) => (t(), r("div", z2, [
|
|
8059
8058
|
a("div", {
|
|
8060
|
-
class: h(
|
|
8059
|
+
class: h(b(L))
|
|
8061
8060
|
}, [
|
|
8062
8061
|
a("input", {
|
|
8063
8062
|
id: C.id,
|
|
@@ -8065,8 +8064,8 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8065
8064
|
class: "switch__input",
|
|
8066
8065
|
type: "checkbox",
|
|
8067
8066
|
onChange: A
|
|
8068
|
-
}, null, 40,
|
|
8069
|
-
|
|
8067
|
+
}, null, 40, U2),
|
|
8068
|
+
$2
|
|
8070
8069
|
], 2),
|
|
8071
8070
|
a("div", {
|
|
8072
8071
|
class: h({
|
|
@@ -8078,17 +8077,17 @@ const V2 = ["onClick"], L2 = { class: "accordion__title" }, M2 = { class: "accor
|
|
|
8078
8077
|
id: C.id,
|
|
8079
8078
|
class: "switch-texts__label",
|
|
8080
8079
|
for: C.id
|
|
8081
|
-
},
|
|
8082
|
-
C.errorMsg ? (t(), r("p",
|
|
8080
|
+
}, f(C.label), 9, K2),
|
|
8081
|
+
C.errorMsg ? (t(), r("p", j2, f(C.errorMsg), 1)) : (t(), r("p", q2, f(C.hint), 1))
|
|
8083
8082
|
], 2)
|
|
8084
8083
|
]));
|
|
8085
8084
|
}
|
|
8086
8085
|
});
|
|
8087
8086
|
var i1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT_ONLY = "text-only", H.ICON_ONLY = "icon-only", H))(i1 || {});
|
|
8088
|
-
const
|
|
8087
|
+
const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
8089
8088
|
key: 2,
|
|
8090
8089
|
class: "tab-item__label"
|
|
8091
|
-
},
|
|
8090
|
+
}, J2 = /* @__PURE__ */ w({
|
|
8092
8091
|
__name: "RTabItem",
|
|
8093
8092
|
props: {
|
|
8094
8093
|
id: null,
|
|
@@ -8101,7 +8100,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8101
8100
|
},
|
|
8102
8101
|
emits: ["update:modelValue"],
|
|
8103
8102
|
setup(H, { emit: V }) {
|
|
8104
|
-
const C = H, M =
|
|
8103
|
+
const C = H, M = k(() => ({
|
|
8105
8104
|
"tab-item": !0,
|
|
8106
8105
|
[`tab-item--${C.variant}`]: !0
|
|
8107
8106
|
}));
|
|
@@ -8111,35 +8110,35 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8111
8110
|
return (A, i) => (t(), r("button", {
|
|
8112
8111
|
"aria-disabled": C.disabled,
|
|
8113
8112
|
"aria-selected": C.active,
|
|
8114
|
-
class: h(
|
|
8113
|
+
class: h(b(M)),
|
|
8115
8114
|
disabled: C.disabled,
|
|
8116
8115
|
onClick: i[0] || (i[0] = (e) => L(C.id))
|
|
8117
8116
|
}, [
|
|
8118
|
-
!A.$slots.icon && H.variant !==
|
|
8117
|
+
!A.$slots.icon && H.variant !== b(i1).TEXT_ONLY ? (t(), T(v, {
|
|
8119
8118
|
key: 0,
|
|
8120
8119
|
class: "tab-item__icon",
|
|
8121
8120
|
name: C.icon
|
|
8122
8121
|
}, null, 8, ["name"])) : y(A.$slots, "custom-icon", { key: 1 }),
|
|
8123
|
-
H.variant !==
|
|
8124
|
-
], 10,
|
|
8122
|
+
H.variant !== b(i1).ICON_ONLY ? (t(), r("span", X2, f(C.label), 1)) : B("", !0)
|
|
8123
|
+
], 10, Y2));
|
|
8125
8124
|
}
|
|
8126
|
-
}),
|
|
8125
|
+
}), C5 = { class: "tabs-wrapper" }, H5 = { class: "tab-content" }, Y5 = /* @__PURE__ */ w({
|
|
8127
8126
|
__name: "RTabs",
|
|
8128
8127
|
props: {
|
|
8129
8128
|
tabs: { default: () => [] },
|
|
8130
8129
|
scrollable: { type: Boolean, default: !1 }
|
|
8131
8130
|
},
|
|
8132
8131
|
setup(H) {
|
|
8133
|
-
const V = H, C = x(0), M =
|
|
8132
|
+
const V = H, C = x(0), M = k(() => ({
|
|
8134
8133
|
tabs: !0,
|
|
8135
8134
|
"tabs--scrollable": V.scrollable
|
|
8136
8135
|
}));
|
|
8137
|
-
return (L, A) => (t(), r(
|
|
8138
|
-
a("div",
|
|
8136
|
+
return (L, A) => (t(), r(Q, null, [
|
|
8137
|
+
a("div", C5, [
|
|
8139
8138
|
a("div", {
|
|
8140
|
-
class: h(
|
|
8139
|
+
class: h(b(M))
|
|
8141
8140
|
}, [
|
|
8142
|
-
(t(!0), r(
|
|
8141
|
+
(t(!0), r(Q, null, Y(V.tabs, (i, e) => (t(), T(J2, {
|
|
8143
8142
|
id: i.id,
|
|
8144
8143
|
key: e,
|
|
8145
8144
|
modelValue: C.value,
|
|
@@ -8151,18 +8150,18 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8151
8150
|
}, null, 8, ["id", "modelValue", "active", "disabled", "icon", "label"]))), 128))
|
|
8152
8151
|
], 2)
|
|
8153
8152
|
]),
|
|
8154
|
-
a("div",
|
|
8153
|
+
a("div", H5, [
|
|
8155
8154
|
y(L.$slots, "tab", { activeTab: C.value })
|
|
8156
8155
|
])
|
|
8157
8156
|
], 64));
|
|
8158
8157
|
}
|
|
8159
|
-
}),
|
|
8158
|
+
}), V5 = { class: "container" }, L5 = ["id", "disabled", "placeholder", "value"], M5 = {
|
|
8160
8159
|
key: 1,
|
|
8161
8160
|
class: "textarea__error"
|
|
8162
|
-
},
|
|
8161
|
+
}, A5 = {
|
|
8163
8162
|
key: 2,
|
|
8164
8163
|
class: "textarea__hint"
|
|
8165
|
-
},
|
|
8164
|
+
}, X5 = /* @__PURE__ */ w({
|
|
8166
8165
|
__name: "RTextArea",
|
|
8167
8166
|
props: {
|
|
8168
8167
|
id: { default: "" },
|
|
@@ -8181,7 +8180,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8181
8180
|
function L(A) {
|
|
8182
8181
|
V("update:modelValue", A.target.value);
|
|
8183
8182
|
}
|
|
8184
|
-
return
|
|
8183
|
+
return z(
|
|
8185
8184
|
() => C.modelValue,
|
|
8186
8185
|
(A) => {
|
|
8187
8186
|
M.value = A;
|
|
@@ -8189,14 +8188,14 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8189
8188
|
{
|
|
8190
8189
|
immediate: !0
|
|
8191
8190
|
}
|
|
8192
|
-
), (A, i) => (t(), r("div",
|
|
8191
|
+
), (A, i) => (t(), r("div", V5, [
|
|
8193
8192
|
C.label ? (t(), T(R1, {
|
|
8194
8193
|
key: 0,
|
|
8195
8194
|
id: "textarea",
|
|
8196
8195
|
class: "textarea__label",
|
|
8197
8196
|
for: "textarea",
|
|
8198
8197
|
text: C.label
|
|
8199
|
-
}, null, 8, ["text"])) :
|
|
8198
|
+
}, null, 8, ["text"])) : B("", !0),
|
|
8200
8199
|
a("textarea", {
|
|
8201
8200
|
id: C.id,
|
|
8202
8201
|
class: h(["textarea", {
|
|
@@ -8207,18 +8206,18 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8207
8206
|
placeholder: C.placeholder,
|
|
8208
8207
|
value: M.value,
|
|
8209
8208
|
onInput: L
|
|
8210
|
-
}, null, 42,
|
|
8211
|
-
C.errorMsg ? (t(), r("p",
|
|
8209
|
+
}, null, 42, L5),
|
|
8210
|
+
C.errorMsg ? (t(), r("p", M5, f(C.errorMsg), 1)) : (t(), r("p", A5, f(C.hint), 1))
|
|
8212
8211
|
]));
|
|
8213
8212
|
}
|
|
8214
|
-
}),
|
|
8213
|
+
}), i5 = {
|
|
8215
8214
|
class: /* @__PURE__ */ h({
|
|
8216
8215
|
textfield__wrapper: !0
|
|
8217
8216
|
})
|
|
8218
|
-
},
|
|
8217
|
+
}, e5 = { class: "input-wrapper" }, d5 = ["id", "disabled", "placeholder", "type", "value", "min", "max"], t5 = { class: "textfield__error" }, m5 = {
|
|
8219
8218
|
key: 0,
|
|
8220
8219
|
class: "textfield__hint"
|
|
8221
|
-
},
|
|
8220
|
+
}, l5 = /* @__PURE__ */ w({
|
|
8222
8221
|
__name: "RTextfield",
|
|
8223
8222
|
props: {
|
|
8224
8223
|
id: { default: "" },
|
|
@@ -8254,36 +8253,36 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8254
8253
|
url: "link",
|
|
8255
8254
|
number: "123",
|
|
8256
8255
|
text: ""
|
|
8257
|
-
}, e = x(!1), d =
|
|
8258
|
-
const { disabled: c, loading: F, clearable:
|
|
8256
|
+
}, e = x(!1), d = k(() => !!L.value), o = k(() => {
|
|
8257
|
+
const { disabled: c, loading: F, clearable: $, errorMsg: P } = C;
|
|
8259
8258
|
return {
|
|
8260
8259
|
textfield: !0,
|
|
8261
8260
|
"textfield--error": P == null ? void 0 : P.length,
|
|
8262
8261
|
"textfield--loading": F,
|
|
8263
8262
|
"textfield--disabled": c,
|
|
8264
|
-
"textfield--clearable":
|
|
8263
|
+
"textfield--clearable": $,
|
|
8265
8264
|
"textfield--focus": e.value,
|
|
8266
8265
|
"textfield--filled": d.value
|
|
8267
8266
|
};
|
|
8268
8267
|
});
|
|
8269
|
-
|
|
8268
|
+
k(() => ({
|
|
8270
8269
|
"textfield__prepend-icon": !0,
|
|
8271
8270
|
"textfield__prepend-icon--loading": C.loading,
|
|
8272
8271
|
"textfield__prepend-icon--error": s.value && d.value
|
|
8273
8272
|
}));
|
|
8274
|
-
const S =
|
|
8273
|
+
const S = k(() => ({
|
|
8275
8274
|
"textfield__append-icon": !0,
|
|
8276
8275
|
"textfield__append-icon--clear": u.value,
|
|
8277
8276
|
"textfield__append-icon--error": s.value
|
|
8278
|
-
})), l =
|
|
8277
|
+
})), l = k(() => L.value.length > 0), s = k(() => {
|
|
8279
8278
|
var c;
|
|
8280
8279
|
return (c = C.errorMsg) == null ? void 0 : c.length;
|
|
8281
|
-
}), u =
|
|
8282
|
-
|
|
8280
|
+
}), u = k(() => C.clearable && l.value);
|
|
8281
|
+
k(() => {
|
|
8283
8282
|
const { prependIcon: c, type: F } = C;
|
|
8284
8283
|
return c || i[F];
|
|
8285
8284
|
});
|
|
8286
|
-
const O =
|
|
8285
|
+
const O = k(() => {
|
|
8287
8286
|
const { appendIcon: c, type: F } = C;
|
|
8288
8287
|
return s.value ? "mdiAlertCircleOutline" : u.value && ["text", "email"].includes(F) ? "mdiClose" : F === "password" && A.value === "password" ? "mdiEyeOutline" : F === "password" && A.value === "text" ? "mdiEyeOffOutline" : c;
|
|
8289
8288
|
}), Z = () => {
|
|
@@ -8307,7 +8306,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8307
8306
|
}), p();
|
|
8308
8307
|
}, p = () => {
|
|
8309
8308
|
A.value = A.value === "password" ? "text" : "password";
|
|
8310
|
-
},
|
|
8309
|
+
}, g = (c) => {
|
|
8311
8310
|
const F = c.target;
|
|
8312
8311
|
L.value = F.value, V("input", {
|
|
8313
8312
|
value: A.value === "number" ? +L.value : L.value
|
|
@@ -8316,7 +8315,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8316
8315
|
var c;
|
|
8317
8316
|
(c = M.value) == null || c.focus();
|
|
8318
8317
|
};
|
|
8319
|
-
return
|
|
8318
|
+
return z(
|
|
8320
8319
|
() => C.modelValue,
|
|
8321
8320
|
(c) => {
|
|
8322
8321
|
L.value = c;
|
|
@@ -8324,7 +8323,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8324
8323
|
{
|
|
8325
8324
|
immediate: !0
|
|
8326
8325
|
}
|
|
8327
|
-
),
|
|
8326
|
+
), z(
|
|
8328
8327
|
() => L.value,
|
|
8329
8328
|
(c) => {
|
|
8330
8329
|
V(
|
|
@@ -8333,8 +8332,8 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8333
8332
|
);
|
|
8334
8333
|
}
|
|
8335
8334
|
), (c, F) => (t(), r("fieldset", null, [
|
|
8336
|
-
a("div",
|
|
8337
|
-
|
|
8335
|
+
a("div", i5, [
|
|
8336
|
+
E(R1, {
|
|
8338
8337
|
id: C.id,
|
|
8339
8338
|
class: h({
|
|
8340
8339
|
textfield__label: !0
|
|
@@ -8343,12 +8342,12 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8343
8342
|
text: C.label,
|
|
8344
8343
|
onClick: R
|
|
8345
8344
|
}, null, 8, ["id", "for", "text"]),
|
|
8346
|
-
a("div",
|
|
8345
|
+
a("div", e5, [
|
|
8347
8346
|
a("div", {
|
|
8348
|
-
class: h(
|
|
8347
|
+
class: h(b(o))
|
|
8349
8348
|
}, [
|
|
8350
8349
|
y(c.$slots, "prepend"),
|
|
8351
|
-
|
|
8350
|
+
B("", !0),
|
|
8352
8351
|
a("input", {
|
|
8353
8352
|
ref_key: "inputRef",
|
|
8354
8353
|
ref: M,
|
|
@@ -8361,19 +8360,19 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8361
8360
|
max: C.max,
|
|
8362
8361
|
onBlur: m,
|
|
8363
8362
|
onFocus: Z,
|
|
8364
|
-
onInput:
|
|
8365
|
-
}, null, 40,
|
|
8363
|
+
onInput: g
|
|
8364
|
+
}, null, 40, d5),
|
|
8366
8365
|
y(c.$slots, "append"),
|
|
8367
|
-
|
|
8366
|
+
b(O) && !c.$slots.append ? (t(), T(v, {
|
|
8368
8367
|
key: 1,
|
|
8369
|
-
class: h(
|
|
8370
|
-
name: `${
|
|
8368
|
+
class: h(b(S)),
|
|
8369
|
+
name: `${b(O)}`,
|
|
8371
8370
|
size: 20,
|
|
8372
8371
|
onClick: n
|
|
8373
|
-
}, null, 8, ["class", "name"])) :
|
|
8372
|
+
}, null, 8, ["class", "name"])) : B("", !0)
|
|
8374
8373
|
], 2),
|
|
8375
|
-
a("div",
|
|
8376
|
-
C.errorMsg ?
|
|
8374
|
+
a("div", t5, f(C.errorMsg), 1),
|
|
8375
|
+
C.errorMsg ? B("", !0) : (t(), r("div", m5, f(C.hint), 1))
|
|
8377
8376
|
])
|
|
8378
8377
|
])
|
|
8379
8378
|
]));
|
|
@@ -8420,12 +8419,12 @@ function h1(H, V, C) {
|
|
|
8420
8419
|
}
|
|
8421
8420
|
return l;
|
|
8422
8421
|
}
|
|
8423
|
-
const
|
|
8422
|
+
const o5 = async (H, V, C) => {
|
|
8424
8423
|
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));
|
|
8425
8424
|
let o = await i.getElementRects({ reference: H, floating: V, strategy: L }), { x: S, y: l } = h1(o, M, d), s = M, u = {}, O = 0;
|
|
8426
8425
|
for (let Z = 0; Z < e.length; Z++) {
|
|
8427
|
-
const { name: m, fn: n } = e[Z], { x: p, y:
|
|
8428
|
-
S = p ?? S, l =
|
|
8426
|
+
const { name: m, fn: n } = e[Z], { x: p, y: g, 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 } });
|
|
8427
|
+
S = p ?? S, l = g ?? 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)), Z = -1);
|
|
8429
8428
|
}
|
|
8430
8429
|
return { x: S, y: l, placement: s, strategy: L, middlewareData: u };
|
|
8431
8430
|
};
|
|
@@ -8443,48 +8442,48 @@ async function d1(H, V) {
|
|
|
8443
8442
|
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), Z = e[s ? l === "floating" ? "reference" : "floating" : l], m = e1(await A.getClippingRect({ element: (C = await (A.isElement == null ? void 0 : A.isElement(Z))) == null || C ? Z : Z.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]);
|
|
8444
8443
|
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 };
|
|
8445
8444
|
}
|
|
8446
|
-
const
|
|
8445
|
+
const n5 = Math.min, r5 = Math.max;
|
|
8447
8446
|
function Z1(H, V, C) {
|
|
8448
|
-
return
|
|
8447
|
+
return r5(H, n5(V, C));
|
|
8449
8448
|
}
|
|
8450
|
-
const
|
|
8449
|
+
const a5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
8451
8450
|
const { element: C, padding: M = 0 } = H ?? {}, { x: L, y: A, placement: i, rects: e, platform: d } = V;
|
|
8452
8451
|
if (C == null)
|
|
8453
8452
|
return {};
|
|
8454
|
-
const o = x1(M), S = { x: L, y: A }, l = M1(i), s = l1(i), u = u1(l), O = await d.getDimensions(C), Z = 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],
|
|
8455
|
-
let R =
|
|
8453
|
+
const o = x1(M), S = { x: L, y: A }, l = M1(i), s = l1(i), u = u1(l), O = await d.getDimensions(C), Z = 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], g = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8454
|
+
let R = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0;
|
|
8456
8455
|
R === 0 && (R = e.floating[u]);
|
|
8457
|
-
const c = n / 2 - p / 2, F = o[Z],
|
|
8458
|
-
return { [l]: S[l] - (q ? P < F ? F - P :
|
|
8459
|
-
} }),
|
|
8456
|
+
const c = n / 2 - p / 2, F = o[Z], $ = R - O[u] - o[m], P = R / 2 - O[u] / 2 + c, D = Z1(F, P, $), q = (s === "start" ? o[Z] : o[m]) > 0 && P !== D && e.reference[u] <= e.floating[u];
|
|
8457
|
+
return { [l]: S[l] - (q ? P < F ? F - P : $ - P : 0), data: { [l]: D, centerOffset: P - D } };
|
|
8458
|
+
} }), Z5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8460
8459
|
function t1(H) {
|
|
8461
|
-
return H.replace(/left|right|bottom|top/g, (V) =>
|
|
8460
|
+
return H.replace(/left|right|bottom|top/g, (V) => Z5[V]);
|
|
8462
8461
|
}
|
|
8463
|
-
function
|
|
8462
|
+
function S5(H, V, C) {
|
|
8464
8463
|
C === void 0 && (C = !1);
|
|
8465
8464
|
const M = l1(H), L = M1(H), A = u1(L);
|
|
8466
8465
|
let i = L === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
|
|
8467
8466
|
return V.reference[A] > V.floating[A] && (i = t1(i)), { main: i, cross: t1(i) };
|
|
8468
8467
|
}
|
|
8469
|
-
const
|
|
8468
|
+
const u5 = { start: "end", end: "start" };
|
|
8470
8469
|
function f1(H) {
|
|
8471
|
-
return H.replace(/start|end/g, (V) =>
|
|
8470
|
+
return H.replace(/start|end/g, (V) => u5[V]);
|
|
8472
8471
|
}
|
|
8473
8472
|
const D1 = ["top", "right", "bottom", "left"];
|
|
8474
8473
|
D1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
|
|
8475
|
-
const
|
|
8474
|
+
const c5 = function(H) {
|
|
8476
8475
|
return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
|
|
8477
8476
|
var C;
|
|
8478
8477
|
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, Z = L1(M), m = l || (Z === i || !u ? [t1(i)] : function(P) {
|
|
8479
8478
|
const D = t1(P);
|
|
8480
8479
|
return [f1(P), D, f1(D)];
|
|
8481
|
-
}(i)), n = [i, ...m], p = await d1(V, O),
|
|
8480
|
+
}(i)), n = [i, ...m], p = await d1(V, O), g = [];
|
|
8482
8481
|
let R = ((C = L.flip) == null ? void 0 : C.overflows) || [];
|
|
8483
|
-
if (o &&
|
|
8484
|
-
const { main: P, cross: D } =
|
|
8485
|
-
|
|
8482
|
+
if (o && g.push(p[Z]), S) {
|
|
8483
|
+
const { main: P, cross: D } = S5(M, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8484
|
+
g.push(p[P], p[D]);
|
|
8486
8485
|
}
|
|
8487
|
-
if (R = [...R, { placement: M, overflows:
|
|
8486
|
+
if (R = [...R, { placement: M, overflows: g }], !g.every((P) => P <= 0)) {
|
|
8488
8487
|
var c, F;
|
|
8489
8488
|
const P = ((c = (F = L.flip) == null ? void 0 : F.index) != null ? c : 0) + 1, D = n[P];
|
|
8490
8489
|
if (D)
|
|
@@ -8492,8 +8491,8 @@ const u5 = function(H) {
|
|
|
8492
8491
|
let q = "bottom";
|
|
8493
8492
|
switch (s) {
|
|
8494
8493
|
case "bestFit": {
|
|
8495
|
-
var
|
|
8496
|
-
const s1 = (
|
|
8494
|
+
var $;
|
|
8495
|
+
const s1 = ($ = R.map((A1) => [A1, A1.overflows.filter((C1) => C1 > 0).reduce((C1, z1) => C1 + z1, 0)]).sort((A1, C1) => A1[1] - C1[1])[0]) == null ? void 0 : $[0].placement;
|
|
8497
8496
|
s1 && (q = s1);
|
|
8498
8497
|
break;
|
|
8499
8498
|
}
|
|
@@ -8512,7 +8511,7 @@ function g1(H, V) {
|
|
|
8512
8511
|
function k1(H) {
|
|
8513
8512
|
return D1.some((V) => H[V] >= 0);
|
|
8514
8513
|
}
|
|
8515
|
-
const
|
|
8514
|
+
const s5 = function(H) {
|
|
8516
8515
|
let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
|
|
8517
8516
|
return { name: "hide", async fn(M) {
|
|
8518
8517
|
const { rects: L } = M;
|
|
@@ -8529,25 +8528,25 @@ const c5 = function(H) {
|
|
|
8529
8528
|
return {};
|
|
8530
8529
|
}
|
|
8531
8530
|
} };
|
|
8532
|
-
},
|
|
8531
|
+
}, O5 = function(H) {
|
|
8533
8532
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8534
8533
|
const { x: C, y: M } = V, L = await async function(A, i) {
|
|
8535
8534
|
const { placement: e, platform: d, elements: o } = A, S = await (d.isRTL == null ? void 0 : d.isRTL(o.floating)), l = L1(e), s = l1(e), u = M1(e) === "x", O = ["left", "top"].includes(l) ? -1 : 1, Z = S && u ? -1 : 1, m = typeof i == "function" ? i(A) : i;
|
|
8536
|
-
let { mainAxis: n, crossAxis: p, alignmentAxis:
|
|
8537
|
-
return s && typeof
|
|
8535
|
+
let { mainAxis: n, crossAxis: p, alignmentAxis: g } = typeof m == "number" ? { mainAxis: m, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...m };
|
|
8536
|
+
return s && typeof g == "number" && (p = s === "end" ? -1 * g : g), u ? { x: p * Z, y: n * O } : { x: n * O, y: p * Z };
|
|
8538
8537
|
}(V, H);
|
|
8539
8538
|
return { x: C + L.x, y: M + L.y, data: L };
|
|
8540
8539
|
} };
|
|
8541
8540
|
};
|
|
8542
|
-
function
|
|
8541
|
+
function p5(H) {
|
|
8543
8542
|
return H === "x" ? "y" : "x";
|
|
8544
8543
|
}
|
|
8545
|
-
const
|
|
8544
|
+
const h5 = function(H) {
|
|
8546
8545
|
return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
|
|
8547
8546
|
const { x: C, y: M, placement: L } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (m) => {
|
|
8548
8547
|
let { x: n, y: p } = m;
|
|
8549
8548
|
return { x: n, y: p };
|
|
8550
|
-
} }, ...d } = H, o = { x: C, y: M }, S = await d1(V, d), l = M1(L1(L)), s =
|
|
8549
|
+
} }, ...d } = H, o = { x: C, y: M }, S = await d1(V, d), l = M1(L1(L)), s = p5(l);
|
|
8551
8550
|
let u = o[l], O = o[s];
|
|
8552
8551
|
if (A) {
|
|
8553
8552
|
const m = l === "y" ? "bottom" : "right";
|
|
@@ -8564,7 +8563,7 @@ const p5 = function(H) {
|
|
|
8564
8563
|
function E1(H) {
|
|
8565
8564
|
return H && H.document && H.location && H.alert && H.setInterval;
|
|
8566
8565
|
}
|
|
8567
|
-
function
|
|
8566
|
+
function W(H) {
|
|
8568
8567
|
if (H == null)
|
|
8569
8568
|
return window;
|
|
8570
8569
|
if (!E1(H)) {
|
|
@@ -8573,34 +8572,34 @@ function I(H) {
|
|
|
8573
8572
|
}
|
|
8574
8573
|
return H;
|
|
8575
8574
|
}
|
|
8576
|
-
function
|
|
8577
|
-
return
|
|
8575
|
+
function _(H) {
|
|
8576
|
+
return W(H).getComputedStyle(H);
|
|
8578
8577
|
}
|
|
8579
|
-
function
|
|
8578
|
+
function U(H) {
|
|
8580
8579
|
return E1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
|
|
8581
8580
|
}
|
|
8582
8581
|
function _1() {
|
|
8583
8582
|
const H = navigator.userAgentData;
|
|
8584
8583
|
return H && Array.isArray(H.brands) ? H.brands.map((V) => V.brand + "/" + V.version).join(" ") : navigator.userAgent;
|
|
8585
8584
|
}
|
|
8586
|
-
function
|
|
8587
|
-
return H instanceof
|
|
8585
|
+
function N(H) {
|
|
8586
|
+
return H instanceof W(H).HTMLElement;
|
|
8588
8587
|
}
|
|
8589
8588
|
function X(H) {
|
|
8590
|
-
return H instanceof
|
|
8589
|
+
return H instanceof W(H).Element;
|
|
8591
8590
|
}
|
|
8592
8591
|
function B1(H) {
|
|
8593
|
-
return typeof ShadowRoot > "u" ? !1 : H instanceof
|
|
8592
|
+
return typeof ShadowRoot > "u" ? !1 : H instanceof W(H).ShadowRoot || H instanceof ShadowRoot;
|
|
8594
8593
|
}
|
|
8595
8594
|
function o1(H) {
|
|
8596
|
-
const { overflow: V, overflowX: C, overflowY: M, display: L } =
|
|
8595
|
+
const { overflow: V, overflowX: C, overflowY: M, display: L } = _(H);
|
|
8597
8596
|
return /auto|scroll|overlay|hidden/.test(V + M + C) && !["inline", "contents"].includes(L);
|
|
8598
8597
|
}
|
|
8599
|
-
function
|
|
8600
|
-
return ["table", "td", "th"].includes(
|
|
8598
|
+
function f5(H) {
|
|
8599
|
+
return ["table", "td", "th"].includes(U(H));
|
|
8601
8600
|
}
|
|
8602
8601
|
function S1(H) {
|
|
8603
|
-
const V = /firefox/i.test(_1()), C =
|
|
8602
|
+
const V = /firefox/i.test(_1()), C = _(H), M = C.backdropFilter || C.WebkitBackdropFilter;
|
|
8604
8603
|
return C.transform !== "none" || C.perspective !== "none" || !!M && M !== "none" || V && C.willChange === "filter" || V && !!C.filter && C.filter !== "none" || ["transform", "perspective"].some((L) => C.willChange.includes(L)) || ["paint", "layout", "strict", "content"].some((L) => {
|
|
8605
8604
|
const A = C.contain;
|
|
8606
8605
|
return A != null && A.includes(L);
|
|
@@ -8610,7 +8609,7 @@ function N1() {
|
|
|
8610
8609
|
return !/^((?!chrome|android).)*safari/i.test(_1());
|
|
8611
8610
|
}
|
|
8612
8611
|
function c1(H) {
|
|
8613
|
-
return ["html", "body", "#document"].includes(
|
|
8612
|
+
return ["html", "body", "#document"].includes(U(H));
|
|
8614
8613
|
}
|
|
8615
8614
|
const b1 = Math.min, H1 = Math.max, m1 = Math.round;
|
|
8616
8615
|
function j(H, V, C) {
|
|
@@ -8618,29 +8617,29 @@ function j(H, V, C) {
|
|
|
8618
8617
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8619
8618
|
const e = H.getBoundingClientRect();
|
|
8620
8619
|
let d = 1, o = 1;
|
|
8621
|
-
V &&
|
|
8622
|
-
const S = X(H) ?
|
|
8620
|
+
V && N(H) && (d = H.offsetWidth > 0 && m1(e.width) / H.offsetWidth || 1, o = H.offsetHeight > 0 && m1(e.height) / H.offsetHeight || 1);
|
|
8621
|
+
const S = X(H) ? W(H) : window, l = !N1() && C, s = (e.left + (l && (M = (L = S.visualViewport) == null ? void 0 : L.offsetLeft) != null ? M : 0)) / d, u = (e.top + (l && (A = (i = S.visualViewport) == null ? void 0 : i.offsetTop) != null ? A : 0)) / o, O = e.width / d, Z = e.height / o;
|
|
8623
8622
|
return { width: O, height: Z, top: u, right: s + O, bottom: u + Z, left: s, x: s, y: u };
|
|
8624
8623
|
}
|
|
8625
|
-
function
|
|
8626
|
-
return (V = H, (V instanceof
|
|
8624
|
+
function G(H) {
|
|
8625
|
+
return (V = H, (V instanceof W(V).Node ? H.ownerDocument : H.document) || window.document).documentElement;
|
|
8627
8626
|
var V;
|
|
8628
8627
|
}
|
|
8629
8628
|
function n1(H) {
|
|
8630
8629
|
return X(H) ? { scrollLeft: H.scrollLeft, scrollTop: H.scrollTop } : { scrollLeft: H.pageXOffset, scrollTop: H.pageYOffset };
|
|
8631
8630
|
}
|
|
8632
8631
|
function W1(H) {
|
|
8633
|
-
return j(
|
|
8632
|
+
return j(G(H)).left + n1(H).scrollLeft;
|
|
8634
8633
|
}
|
|
8635
|
-
function
|
|
8636
|
-
const M =
|
|
8634
|
+
function g5(H, V, C) {
|
|
8635
|
+
const M = N(V), L = G(V), A = j(H, M && function(d) {
|
|
8637
8636
|
const o = j(d);
|
|
8638
8637
|
return m1(o.width) !== d.offsetWidth || m1(o.height) !== d.offsetHeight;
|
|
8639
8638
|
}(V), C === "fixed");
|
|
8640
8639
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
8641
8640
|
const e = { x: 0, y: 0 };
|
|
8642
8641
|
if (M || !M && C !== "fixed")
|
|
8643
|
-
if ((
|
|
8642
|
+
if ((U(V) !== "body" || o1(L)) && (i = n1(V)), N(V)) {
|
|
8644
8643
|
const d = j(V, !0);
|
|
8645
8644
|
e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
|
|
8646
8645
|
} else
|
|
@@ -8648,22 +8647,22 @@ function f5(H, V, C) {
|
|
|
8648
8647
|
return { x: A.left + i.scrollLeft - e.x, y: A.top + i.scrollTop - e.y, width: A.width, height: A.height };
|
|
8649
8648
|
}
|
|
8650
8649
|
function V1(H) {
|
|
8651
|
-
if (
|
|
8650
|
+
if (U(H) === "html")
|
|
8652
8651
|
return H;
|
|
8653
|
-
const V = H.assignedSlot || H.parentNode || (B1(H) ? H.host : null) ||
|
|
8652
|
+
const V = H.assignedSlot || H.parentNode || (B1(H) ? H.host : null) || G(H);
|
|
8654
8653
|
return B1(V) ? V.host : V;
|
|
8655
8654
|
}
|
|
8656
8655
|
function y1(H) {
|
|
8657
|
-
return
|
|
8656
|
+
return N(H) && _(H).position !== "fixed" ? H.offsetParent : null;
|
|
8658
8657
|
}
|
|
8659
8658
|
function w1(H) {
|
|
8660
|
-
const V =
|
|
8659
|
+
const V = W(H);
|
|
8661
8660
|
let C = y1(H);
|
|
8662
|
-
for (; C &&
|
|
8661
|
+
for (; C && f5(C) && _(C).position === "static"; )
|
|
8663
8662
|
C = y1(C);
|
|
8664
|
-
return C && (
|
|
8663
|
+
return C && (U(C) === "html" || U(C) === "body" && _(C).position === "static" && !S1(C)) ? V : C || function(M) {
|
|
8665
8664
|
let L = V1(M);
|
|
8666
|
-
for (;
|
|
8665
|
+
for (; N(L) && !c1(L); ) {
|
|
8667
8666
|
if (S1(L))
|
|
8668
8667
|
return L;
|
|
8669
8668
|
L = V1(L);
|
|
@@ -8673,17 +8672,17 @@ function w1(H) {
|
|
|
8673
8672
|
}
|
|
8674
8673
|
function I1(H) {
|
|
8675
8674
|
const V = V1(H);
|
|
8676
|
-
return c1(V) ? H.ownerDocument.body :
|
|
8675
|
+
return c1(V) ? H.ownerDocument.body : N(V) && o1(V) ? V : I1(V);
|
|
8677
8676
|
}
|
|
8678
8677
|
function Q1(H, V) {
|
|
8679
8678
|
var C;
|
|
8680
8679
|
V === void 0 && (V = []);
|
|
8681
|
-
const M = I1(H), L = M === ((C = H.ownerDocument) == null ? void 0 : C.body), A =
|
|
8680
|
+
const M = I1(H), L = M === ((C = H.ownerDocument) == null ? void 0 : C.body), A = W(M), i = L ? [A].concat(A.visualViewport || [], o1(M) ? M : []) : M, e = V.concat(i);
|
|
8682
8681
|
return L ? e : e.concat(Q1(i));
|
|
8683
8682
|
}
|
|
8684
8683
|
function P1(H, V, C) {
|
|
8685
8684
|
return V === "viewport" ? e1(function(M, L) {
|
|
8686
|
-
const A =
|
|
8685
|
+
const A = W(M), i = G(M), e = A.visualViewport;
|
|
8687
8686
|
let d = i.clientWidth, o = i.clientHeight, S = 0, l = 0;
|
|
8688
8687
|
if (e) {
|
|
8689
8688
|
d = e.width, o = e.height;
|
|
@@ -8696,20 +8695,20 @@ function P1(H, V, C) {
|
|
|
8696
8695
|
return { top: i, left: e, x: e, y: i, right: e + M.clientWidth, bottom: i + M.clientHeight, width: M.clientWidth, height: M.clientHeight };
|
|
8697
8696
|
}(V, C) : e1(function(M) {
|
|
8698
8697
|
var L;
|
|
8699
|
-
const A =
|
|
8698
|
+
const A = G(M), i = n1(M), e = (L = M.ownerDocument) == null ? void 0 : L.body, d = H1(A.scrollWidth, A.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), o = H1(A.scrollHeight, A.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
|
|
8700
8699
|
let S = -i.scrollLeft + W1(M);
|
|
8701
8700
|
const l = -i.scrollTop;
|
|
8702
|
-
return
|
|
8703
|
-
}(
|
|
8701
|
+
return _(e || A).direction === "rtl" && (S += H1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: o, x: S, y: l };
|
|
8702
|
+
}(G(H)));
|
|
8704
8703
|
}
|
|
8705
|
-
const
|
|
8704
|
+
const k5 = { getClippingRect: function(H) {
|
|
8706
8705
|
let { element: V, boundary: C, rootBoundary: M, strategy: L } = H;
|
|
8707
8706
|
const A = C === "clippingAncestors" ? function(o) {
|
|
8708
|
-
let S = Q1(o).filter((O) => X(O) &&
|
|
8709
|
-
const s =
|
|
8707
|
+
let S = Q1(o).filter((O) => X(O) && U(O) !== "body"), l = null;
|
|
8708
|
+
const s = _(o).position === "fixed";
|
|
8710
8709
|
let u = s ? V1(o) : o;
|
|
8711
8710
|
for (; X(u) && !c1(u); ) {
|
|
8712
|
-
const O =
|
|
8711
|
+
const O = _(u), Z = S1(u);
|
|
8713
8712
|
(s ? Z || l : Z || O.position !== "static" || !l || !["absolute", "fixed"].includes(l.position)) ? l = O : S = S.filter((m) => m !== u), u = V1(u);
|
|
8714
8713
|
}
|
|
8715
8714
|
return S;
|
|
@@ -8720,35 +8719,35 @@ const g5 = { getClippingRect: function(H) {
|
|
|
8720
8719
|
return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
|
|
8721
8720
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
|
|
8722
8721
|
let { rect: V, offsetParent: C, strategy: M } = H;
|
|
8723
|
-
const L =
|
|
8722
|
+
const L = N(C), A = G(C);
|
|
8724
8723
|
if (C === A)
|
|
8725
8724
|
return V;
|
|
8726
8725
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
8727
8726
|
const e = { x: 0, y: 0 };
|
|
8728
|
-
if ((L || !L && M !== "fixed") && ((
|
|
8727
|
+
if ((L || !L && M !== "fixed") && ((U(C) !== "body" || o1(A)) && (i = n1(C)), N(C))) {
|
|
8729
8728
|
const d = j(C, !0);
|
|
8730
8729
|
e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
|
|
8731
8730
|
}
|
|
8732
8731
|
return { ...V, x: V.x - i.scrollLeft + e.x, y: V.y - i.scrollTop + e.y };
|
|
8733
8732
|
}, isElement: X, getDimensions: function(H) {
|
|
8734
|
-
if (
|
|
8733
|
+
if (N(H))
|
|
8735
8734
|
return { width: H.offsetWidth, height: H.offsetHeight };
|
|
8736
8735
|
const V = j(H);
|
|
8737
8736
|
return { width: V.width, height: V.height };
|
|
8738
|
-
}, getOffsetParent: w1, getDocumentElement:
|
|
8737
|
+
}, getOffsetParent: w1, getDocumentElement: G, async getElementRects(H) {
|
|
8739
8738
|
let { reference: V, floating: C, strategy: M } = H;
|
|
8740
8739
|
const L = this.getOffsetParent || w1, A = this.getDimensions;
|
|
8741
|
-
return { reference:
|
|
8742
|
-
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) =>
|
|
8740
|
+
return { reference: g5(V, await L(C), M), floating: { x: 0, y: 0, ...await A(C) } };
|
|
8741
|
+
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => _(H).direction === "rtl" }, B5 = (H, V, C) => o5(H, V, { platform: k5, ...C });
|
|
8743
8742
|
function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
8744
|
-
!H || !V ||
|
|
8743
|
+
!H || !V || B5(H, V, {
|
|
8745
8744
|
placement: M,
|
|
8746
8745
|
middleware: [
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8746
|
+
O5(L),
|
|
8747
|
+
h5({ padding: A }),
|
|
8748
|
+
a5({ element: C }),
|
|
8749
|
+
c5(),
|
|
8750
|
+
s5()
|
|
8752
8751
|
]
|
|
8753
8752
|
}).then(({ x: i, y: e, placement: d, middlewareData: o }) => {
|
|
8754
8753
|
if (Object.assign(V.style, {
|
|
@@ -8772,15 +8771,15 @@ function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
|
8772
8771
|
}
|
|
8773
8772
|
});
|
|
8774
8773
|
}
|
|
8775
|
-
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 || {}),
|
|
8776
|
-
const
|
|
8774
|
+
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 || {}), I = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(I || {});
|
|
8775
|
+
const b5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], y5 = ["innerHTML"], w5 = /* @__PURE__ */ w({
|
|
8777
8776
|
__name: "RTooltip",
|
|
8778
8777
|
props: {
|
|
8779
8778
|
placement: { default: G1.Top },
|
|
8780
8779
|
text: { default: "" },
|
|
8781
8780
|
dark: { type: Boolean, default: !0 },
|
|
8782
8781
|
light: { type: Boolean, default: !1 },
|
|
8783
|
-
triggers: { default:
|
|
8782
|
+
triggers: { default: I.Hover },
|
|
8784
8783
|
autoHide: { type: Boolean, default: !0 },
|
|
8785
8784
|
hideDelay: { default: 3e3 },
|
|
8786
8785
|
showDelay: { default: 0 },
|
|
@@ -8796,12 +8795,12 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8796
8795
|
setup(H, { emit: V }) {
|
|
8797
8796
|
const C = H;
|
|
8798
8797
|
q1((m) => ({
|
|
8799
|
-
"271323d4":
|
|
8798
|
+
"271323d4": b(Z)
|
|
8800
8799
|
}));
|
|
8801
8800
|
const M = x(null), L = x(null), A = x(null);
|
|
8802
8801
|
function i() {
|
|
8803
|
-
const { placement: m, offset: n, padding: p, disabled:
|
|
8804
|
-
|
|
8802
|
+
const { placement: m, offset: n, padding: p, disabled: g } = C;
|
|
8803
|
+
g || (L.value.style.display = "block", V("show"), r1(M, L, A, m, n, p), d(), C.outsideClick && o("add"));
|
|
8805
8804
|
}
|
|
8806
8805
|
function e() {
|
|
8807
8806
|
L.value.style.display = "", V("hide"), C.outsideClick && o("remove");
|
|
@@ -8813,69 +8812,69 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8813
8812
|
}, o = (m) => {
|
|
8814
8813
|
m === "add" && document.addEventListener("click", e), m === "remove" && document.removeEventListener("click", e);
|
|
8815
8814
|
}, S = () => {
|
|
8816
|
-
C.disabled || C.triggers ==
|
|
8815
|
+
C.disabled || C.triggers == I.Click && (L.value.style.display === "block" ? e() : i());
|
|
8817
8816
|
}, l = () => {
|
|
8818
|
-
C.disabled || C.triggers ===
|
|
8817
|
+
C.disabled || C.triggers === I.Hover && i();
|
|
8819
8818
|
}, s = () => {
|
|
8820
8819
|
if (!C.disabled)
|
|
8821
|
-
if (L.value.style.display === "" && C.triggers ===
|
|
8820
|
+
if (L.value.style.display === "" && C.triggers === I.Hover) {
|
|
8822
8821
|
i();
|
|
8823
8822
|
return;
|
|
8824
8823
|
} else
|
|
8825
|
-
L.value.style.display !== "" && C.triggers ===
|
|
8824
|
+
L.value.style.display !== "" && C.triggers === I.Hover && e();
|
|
8826
8825
|
}, u = () => {
|
|
8827
|
-
const { placement: m, offset: n, padding: p, disabled:
|
|
8828
|
-
|
|
8829
|
-
}, O =
|
|
8826
|
+
const { placement: m, offset: n, padding: p, disabled: g } = C;
|
|
8827
|
+
g || C.triggers === I.Hover && r1(M, L, A, m, n, p);
|
|
8828
|
+
}, O = k(() => ({
|
|
8830
8829
|
tooltip: !0,
|
|
8831
8830
|
"tooltip--dark": C.dark,
|
|
8832
8831
|
"tooltip--light": C.light
|
|
8833
8832
|
}));
|
|
8834
8833
|
window.onresize = () => {
|
|
8835
|
-
const { placement: m, offset: n, padding: p, disabled:
|
|
8836
|
-
|
|
8834
|
+
const { placement: m, offset: n, padding: p, disabled: g } = C;
|
|
8835
|
+
g || C.resizable && r1(M, L, A, m, n, p);
|
|
8837
8836
|
}, Y1(
|
|
8838
8837
|
() => {
|
|
8839
|
-
C.disabled || C.shown && C.triggers ===
|
|
8838
|
+
C.disabled || C.shown && C.triggers === I.Manual && i();
|
|
8840
8839
|
},
|
|
8841
8840
|
{ flush: "post" }
|
|
8842
8841
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8843
8842
|
);
|
|
8844
|
-
const Z =
|
|
8845
|
-
return (m, n) => (t(), r(
|
|
8843
|
+
const Z = k(() => `${C.showDelay}ms`);
|
|
8844
|
+
return (m, n) => (t(), r(Q, null, [
|
|
8846
8845
|
a("div", {
|
|
8847
8846
|
ref_key: "trigger",
|
|
8848
8847
|
ref: M,
|
|
8849
8848
|
"aria-disabled": C.disabled,
|
|
8850
8849
|
class: "trigger",
|
|
8851
|
-
onClick:
|
|
8852
|
-
onMouseenter:
|
|
8853
|
-
onMouseleave:
|
|
8854
|
-
onMousemove:
|
|
8850
|
+
onClick: K(S, ["stop"]),
|
|
8851
|
+
onMouseenter: K(l, ["stop"]),
|
|
8852
|
+
onMouseleave: K(s, ["stop"]),
|
|
8853
|
+
onMousemove: K(u, ["stop"])
|
|
8855
8854
|
}, [
|
|
8856
8855
|
y(m.$slots, "trigger", {}, void 0, !0),
|
|
8857
|
-
m.$slots.trigger ?
|
|
8856
|
+
m.$slots.trigger ? B("", !0) : (t(), r("div", {
|
|
8858
8857
|
key: 0,
|
|
8859
8858
|
innerHTML: C.triggerContent
|
|
8860
|
-
}, null, 8,
|
|
8861
|
-
], 40,
|
|
8859
|
+
}, null, 8, y5))
|
|
8860
|
+
], 40, b5),
|
|
8862
8861
|
a("div", {
|
|
8863
8862
|
id: "tooltip",
|
|
8864
8863
|
ref_key: "tooltip",
|
|
8865
8864
|
ref: L,
|
|
8866
|
-
class: h(
|
|
8865
|
+
class: h(b(O)),
|
|
8867
8866
|
role: "tooltip"
|
|
8868
8867
|
}, [
|
|
8869
8868
|
y(m.$slots, "content", {}, void 0, !0),
|
|
8870
|
-
m.$slots.content ?
|
|
8869
|
+
m.$slots.content ? B("", !0) : (t(), r("div", {
|
|
8871
8870
|
key: 0,
|
|
8872
8871
|
class: h({
|
|
8873
8872
|
tooltip__content: !0,
|
|
8874
8873
|
"tooltip__content--dark": C.dark,
|
|
8875
8874
|
"tooltip__content--light": C.light
|
|
8876
8875
|
})
|
|
8877
|
-
},
|
|
8878
|
-
m.$slots.content ?
|
|
8876
|
+
}, f(C.text), 3)),
|
|
8877
|
+
m.$slots.content ? B("", !0) : (t(), r("div", {
|
|
8879
8878
|
key: 1,
|
|
8880
8879
|
id: "arrow",
|
|
8881
8880
|
ref_key: "arrowElement",
|
|
@@ -8890,15 +8889,15 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8890
8889
|
], 64));
|
|
8891
8890
|
}
|
|
8892
8891
|
});
|
|
8893
|
-
const
|
|
8892
|
+
const P5 = (H, V) => {
|
|
8894
8893
|
const C = H.__vccOpts || H;
|
|
8895
8894
|
for (const [M, L] of V)
|
|
8896
8895
|
C[M] = L;
|
|
8897
8896
|
return C;
|
|
8898
|
-
},
|
|
8897
|
+
}, J5 = /* @__PURE__ */ P5(w5, [["__scopeId", "data-v-ee5f5651"]]), T5 = { class: "r-breadcrumb" }, v5 = {
|
|
8899
8898
|
key: 0,
|
|
8900
8899
|
class: "r-breadcrumb__title"
|
|
8901
|
-
},
|
|
8900
|
+
}, C3 = /* @__PURE__ */ w({
|
|
8902
8901
|
__name: "RBreadcrumb",
|
|
8903
8902
|
props: {
|
|
8904
8903
|
items: { default: () => [] },
|
|
@@ -8908,12 +8907,12 @@ const w5 = (H, V) => {
|
|
|
8908
8907
|
const V = H;
|
|
8909
8908
|
return (C, M) => {
|
|
8910
8909
|
const L = X1("router-link");
|
|
8911
|
-
return t(), r("div",
|
|
8912
|
-
(t(!0), r(
|
|
8910
|
+
return t(), r("div", T5, [
|
|
8911
|
+
(t(!0), r(Q, null, Y(V.items, (A, i) => (t(), r("div", {
|
|
8913
8912
|
class: "r-breadcrumb__item",
|
|
8914
8913
|
key: i
|
|
8915
8914
|
}, [
|
|
8916
|
-
|
|
8915
|
+
E(L, {
|
|
8917
8916
|
to: A.to,
|
|
8918
8917
|
class: "r-breadcrumb__link"
|
|
8919
8918
|
}, {
|
|
@@ -8922,9 +8921,9 @@ const w5 = (H, V) => {
|
|
|
8922
8921
|
A.icon ? (t(), T(v, {
|
|
8923
8922
|
key: 0,
|
|
8924
8923
|
name: A.icon
|
|
8925
|
-
}, null, 8, ["name"])) :
|
|
8924
|
+
}, null, 8, ["name"])) : B("", !0)
|
|
8926
8925
|
]),
|
|
8927
|
-
A.onlyIcon ?
|
|
8926
|
+
A.onlyIcon ? B("", !0) : (t(), r("span", v5, f(A.title), 1))
|
|
8928
8927
|
]),
|
|
8929
8928
|
_: 2
|
|
8930
8929
|
}, 1032, ["to"]),
|
|
@@ -8933,13 +8932,13 @@ const w5 = (H, V) => {
|
|
|
8933
8932
|
key: 0,
|
|
8934
8933
|
name: V.seperator,
|
|
8935
8934
|
class: "r-breadcrumb__separator"
|
|
8936
|
-
}, null, 8, ["name"])) :
|
|
8935
|
+
}, null, 8, ["name"])) : B("", !0)
|
|
8937
8936
|
])
|
|
8938
8937
|
]))), 128))
|
|
8939
8938
|
]);
|
|
8940
8939
|
};
|
|
8941
8940
|
}
|
|
8942
|
-
}),
|
|
8941
|
+
}), F5 = { class: "r-pagination" }, R5 = { class: "r-pagination__page-info" }, x5 = { key: 0 }, D5 = { class: "r-pagination__page-info__current-page" }, E5 = { class: "r-pagination__page-info__total-pages" }, _5 = { class: "r-pagination__paginator" }, H3 = /* @__PURE__ */ w({
|
|
8943
8942
|
__name: "RPagination",
|
|
8944
8943
|
props: {
|
|
8945
8944
|
page: { default: 1 },
|
|
@@ -8955,15 +8954,15 @@ const w5 = (H, V) => {
|
|
|
8955
8954
|
const C = H, M = (L) => {
|
|
8956
8955
|
L < 1 || L > C.totalPages || V("update:page", L);
|
|
8957
8956
|
};
|
|
8958
|
-
return (L, A) => (t(), r("div",
|
|
8959
|
-
a("div",
|
|
8960
|
-
H.slash ?
|
|
8961
|
-
a("span",
|
|
8962
|
-
F1(" " +
|
|
8963
|
-
a("span",
|
|
8957
|
+
return (L, A) => (t(), r("div", F5, [
|
|
8958
|
+
a("div", R5, [
|
|
8959
|
+
H.slash ? B("", !0) : (t(), r("span", x5, f(C.pageText), 1)),
|
|
8960
|
+
a("span", D5, f(C.page), 1),
|
|
8961
|
+
F1(" " + f(H.slash ? "/" : C.ofText) + " ", 1),
|
|
8962
|
+
a("span", E5, f(H.totalPages), 1)
|
|
8964
8963
|
]),
|
|
8965
|
-
a("div",
|
|
8966
|
-
|
|
8964
|
+
a("div", _5, [
|
|
8965
|
+
E(a1, {
|
|
8967
8966
|
class: "r-pagination__paginator__prev",
|
|
8968
8967
|
variant: "outline",
|
|
8969
8968
|
"only-icon": "",
|
|
@@ -8971,7 +8970,7 @@ const w5 = (H, V) => {
|
|
|
8971
8970
|
disabled: C.page === 1,
|
|
8972
8971
|
onClick: A[0] || (A[0] = (i) => M(C.page - 1))
|
|
8973
8972
|
}, null, 8, ["prepend-icon", "disabled"]),
|
|
8974
|
-
|
|
8973
|
+
E(l5, {
|
|
8975
8974
|
modelValue: C.page,
|
|
8976
8975
|
"onUpdate:modelValue": A[1] || (A[1] = (i) => C.page = i),
|
|
8977
8976
|
class: "r-pagination__paginator__input",
|
|
@@ -8980,7 +8979,7 @@ const w5 = (H, V) => {
|
|
|
8980
8979
|
max: H.totalPages,
|
|
8981
8980
|
onInput: A[2] || (A[2] = (i) => M(i == null ? void 0 : i.value))
|
|
8982
8981
|
}, null, 8, ["modelValue", "max"]),
|
|
8983
|
-
|
|
8982
|
+
E(a1, {
|
|
8984
8983
|
class: "r-pagination__paginator__next",
|
|
8985
8984
|
variant: "outline",
|
|
8986
8985
|
"only-icon": "",
|
|
@@ -8993,25 +8992,25 @@ const w5 = (H, V) => {
|
|
|
8993
8992
|
}
|
|
8994
8993
|
});
|
|
8995
8994
|
export {
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
8995
|
+
W5 as RAccordion,
|
|
8996
|
+
I5 as RAlert,
|
|
8997
|
+
Q5 as RAvatar,
|
|
8998
|
+
G5 as RBadge,
|
|
8999
|
+
C3 as RBreadcrumb,
|
|
9001
9000
|
a1 as RButton,
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9001
|
+
z5 as RCheckbox,
|
|
9002
|
+
f2 as RChip,
|
|
9003
|
+
U5 as RDropdown,
|
|
9005
9004
|
v as RIcon,
|
|
9006
9005
|
R1 as RLabel,
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9006
|
+
$5 as RModal,
|
|
9007
|
+
H3 as RPagination,
|
|
9008
|
+
K5 as RSidebar,
|
|
9009
|
+
j5 as RSnackbar,
|
|
9010
|
+
q5 as RSwitch,
|
|
9011
|
+
J2 as RTabItem,
|
|
9012
|
+
Y5 as RTabs,
|
|
9013
|
+
X5 as RTextArea,
|
|
9014
|
+
l5 as RTextfield,
|
|
9015
|
+
J5 as RTooltip
|
|
9017
9016
|
};
|