@rocketui/vue 0.0.54 → 0.0.56
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 +612 -601
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/src/components/Avatar/RAvatar.d.ts.map +1 -1
- package/dist/src/components/Dropdown/RDropdown.d.ts +7 -7
- package/dist/src/components/Dropdown/RDropdown.d.ts.map +1 -1
- package/dist/src/components/Label/RLabel.d.ts +8 -1
- package/dist/src/components/Label/RLabel.d.ts.map +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
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as F, openBlock as t, createElementBlock as a, createElementVNode as Z, unref as p, reactive as J, Fragment as K, renderList as Y, normalizeClass as f, renderSlot as B, toDisplayString as y, createVNode as q, computed as g, createCommentVNode as k, mergeProps as C2, withModifiers as N, createBlock as x, watch as W, getCurrentScope as H2, onScopeDispose as V2, ref as D, onMounted as L2, withDirectives as E1, withKeys as k1, vModelText as M2, createTextVNode as A2, normalizeStyle as p1, vShow as i2, useCssVars as e2, watchEffect as d2, resolveComponent as t2, withCtx as _1, provide as a1, resolveDynamicComponent as m2, inject as Z1 } from "vue";
|
|
2
|
+
const l2 = {
|
|
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 m2 = {
|
|
|
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
|
+
}, o2 = ["height", "viewBox", "width"], r2 = ["d"], R = /* @__PURE__ */ F({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
@@ -7311,13 +7311,13 @@ const m2 = {
|
|
|
7311
7311
|
viewBox: V.viewBox,
|
|
7312
7312
|
width: V.size
|
|
7313
7313
|
}, [
|
|
7314
|
-
|
|
7315
|
-
d: p(
|
|
7316
|
-
}, null, 8,
|
|
7317
|
-
], 8,
|
|
7314
|
+
Z("path", {
|
|
7315
|
+
d: p(l2)[V.name]
|
|
7316
|
+
}, null, 8, r2)
|
|
7317
|
+
], 8, o2));
|
|
7318
7318
|
}
|
|
7319
7319
|
});
|
|
7320
|
-
const n2 = ["data-state"],
|
|
7320
|
+
const n2 = ["data-state"], a2 = ["onClick"], Z2 = { class: "r-accordion__title" }, u2 = { class: "r-accordion__icon" }, S2 = { class: "r-accordion__content" }, o3 = /* @__PURE__ */ F({
|
|
7321
7321
|
__name: "RAccordion",
|
|
7322
7322
|
props: {
|
|
7323
7323
|
accordions: null
|
|
@@ -7344,31 +7344,31 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7344
7344
|
}),
|
|
7345
7345
|
"data-state": i.open ? "opened" : "closed"
|
|
7346
7346
|
}, [
|
|
7347
|
-
|
|
7347
|
+
Z("div", {
|
|
7348
7348
|
class: "r-accordion__header",
|
|
7349
7349
|
onClick: (d) => L(e)
|
|
7350
7350
|
}, [
|
|
7351
|
-
|
|
7352
|
-
|
|
7351
|
+
B(A.$slots, "title", {}, () => [
|
|
7352
|
+
Z("div", Z2, y(i.title), 1)
|
|
7353
7353
|
]),
|
|
7354
|
-
|
|
7355
|
-
q(
|
|
7354
|
+
Z("div", u2, [
|
|
7355
|
+
q(R, { name: "mdiChevronUp" })
|
|
7356
7356
|
])
|
|
7357
|
-
], 8,
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7357
|
+
], 8, a2),
|
|
7358
|
+
Z("div", S2, [
|
|
7359
|
+
B(A.$slots, "content", {}, () => [
|
|
7360
|
+
Z("span", null, y(i.content), 1)
|
|
7361
7361
|
])
|
|
7362
7362
|
])
|
|
7363
7363
|
], 10, n2))), 128));
|
|
7364
7364
|
}
|
|
7365
|
-
}),
|
|
7365
|
+
}), c2 = { class: "r-alert__icon" }, s2 = { class: "r-alert__content" }, O2 = { class: "r-alert__content__title" }, p2 = {
|
|
7366
7366
|
key: 0,
|
|
7367
7367
|
class: "r-alert__content__description"
|
|
7368
|
-
},
|
|
7368
|
+
}, h2 = {
|
|
7369
7369
|
key: 0,
|
|
7370
7370
|
class: "r-alert__close"
|
|
7371
|
-
},
|
|
7371
|
+
}, r3 = /* @__PURE__ */ F({
|
|
7372
7372
|
__name: "RAlert",
|
|
7373
7373
|
props: {
|
|
7374
7374
|
type: { default: "info" },
|
|
@@ -7380,12 +7380,12 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7380
7380
|
},
|
|
7381
7381
|
emits: ["close"],
|
|
7382
7382
|
setup(H, { emit: V }) {
|
|
7383
|
-
const C = H, L =
|
|
7383
|
+
const C = H, L = g(() => ({
|
|
7384
7384
|
" r-alert": !0,
|
|
7385
7385
|
[`r-alert--${C.variant}`]: !0,
|
|
7386
7386
|
"r-alert--block": C.block,
|
|
7387
7387
|
[`r-alert--${C.variant}--${C.type}`]: !0
|
|
7388
|
-
})), A =
|
|
7388
|
+
})), A = g(() => ({
|
|
7389
7389
|
success: "mdiCheckCircle",
|
|
7390
7390
|
error: "mdiAlertCircle",
|
|
7391
7391
|
warning: "mdiAlert",
|
|
@@ -7396,33 +7396,33 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7396
7396
|
return (i, e) => (t(), a("div", {
|
|
7397
7397
|
class: f(p(L))
|
|
7398
7398
|
}, [
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
q(
|
|
7399
|
+
Z("div", c2, [
|
|
7400
|
+
B(i.$slots, "alert-icon", {}, () => [
|
|
7401
|
+
q(R, {
|
|
7402
7402
|
name: p(A),
|
|
7403
7403
|
size: 24
|
|
7404
7404
|
}, null, 8, ["name"])
|
|
7405
7405
|
])
|
|
7406
7406
|
]),
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
C.description ? (t(), a("p",
|
|
7407
|
+
Z("div", s2, [
|
|
7408
|
+
B(i.$slots, "content", {}, () => [
|
|
7409
|
+
Z("p", O2, y(C.title), 1),
|
|
7410
|
+
C.description ? (t(), a("p", p2, y(C.description), 1)) : k("", !0)
|
|
7411
7411
|
])
|
|
7412
7412
|
]),
|
|
7413
|
-
C.closable ? (t(), a("div",
|
|
7414
|
-
|
|
7415
|
-
q(
|
|
7413
|
+
C.closable ? (t(), a("div", h2, [
|
|
7414
|
+
B(i.$slots, "custom-close", {}, () => [
|
|
7415
|
+
q(R, {
|
|
7416
7416
|
class: "r-alert__close__button",
|
|
7417
7417
|
name: "mdiClose",
|
|
7418
7418
|
size: 16,
|
|
7419
7419
|
onClick: M
|
|
7420
7420
|
})
|
|
7421
7421
|
])
|
|
7422
|
-
])) :
|
|
7422
|
+
])) : k("", !0)
|
|
7423
7423
|
], 2));
|
|
7424
7424
|
}
|
|
7425
|
-
}), B1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K",
|
|
7425
|
+
}), B1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", f2 = { class: "r-avatar__wrapper" }, g2 = ["alt", "src"], n3 = /* @__PURE__ */ F({
|
|
7426
7426
|
__name: "RAvatar",
|
|
7427
7427
|
props: {
|
|
7428
7428
|
type: { default: "image" },
|
|
@@ -7433,38 +7433,41 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7433
7433
|
text: { default: "" }
|
|
7434
7434
|
},
|
|
7435
7435
|
setup(H) {
|
|
7436
|
-
const V = H, C =
|
|
7437
|
-
avatar: !0,
|
|
7438
|
-
[`avatar--${V.size}`]: !0
|
|
7439
|
-
})), L =
|
|
7436
|
+
const V = H, C = g(() => ({
|
|
7437
|
+
"r-avatar": !0,
|
|
7438
|
+
[`r-avatar--${V.size}`]: !0
|
|
7439
|
+
})), L = g(() => V.type === "image" && !V.src), A = g(() => L.value ? B1 : V.src), M = (i) => {
|
|
7440
7440
|
const e = i.split(" ");
|
|
7441
7441
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7442
7442
|
};
|
|
7443
|
-
return (i, e) => (t(), a("div",
|
|
7444
|
-
|
|
7443
|
+
return (i, e) => (t(), a("div", f2, [
|
|
7444
|
+
Z("div", {
|
|
7445
7445
|
class: f(p(C))
|
|
7446
7446
|
}, [
|
|
7447
7447
|
V.type === "text" ? (t(), a("p", {
|
|
7448
7448
|
key: 0,
|
|
7449
|
-
class: f({ avatar__text: !0, [`avatar__text--${V.size}`]: !0 })
|
|
7449
|
+
class: f({ "r-avatar__text": !0, [`r-avatar__text--${V.size}`]: !0 })
|
|
7450
7450
|
}, y(M(V.text)), 3)) : (t(), a("img", {
|
|
7451
7451
|
key: 1,
|
|
7452
7452
|
alt: V.alt,
|
|
7453
7453
|
class: f({
|
|
7454
|
-
avatar__image: !0,
|
|
7455
|
-
[`avatar__image--${V.size}`]: !0,
|
|
7456
|
-
"avatar__image--anonymous": p(L)
|
|
7454
|
+
"r-avatar__image": !0,
|
|
7455
|
+
[`r-avatar__image--${V.size}`]: !0,
|
|
7456
|
+
"r-avatar__image--anonymous": p(L)
|
|
7457
7457
|
}),
|
|
7458
7458
|
src: p(A)
|
|
7459
|
-
}, null, 10,
|
|
7459
|
+
}, null, 10, g2))
|
|
7460
7460
|
], 2),
|
|
7461
7461
|
V.online ? (t(), a("span", {
|
|
7462
7462
|
key: 0,
|
|
7463
|
-
class: f({
|
|
7464
|
-
|
|
7463
|
+
class: f({
|
|
7464
|
+
"r-avatar__online": !0,
|
|
7465
|
+
[`r-avatar__online--${V.size}`]: !0
|
|
7466
|
+
})
|
|
7467
|
+
}, null, 2)) : k("", !0)
|
|
7465
7468
|
]));
|
|
7466
7469
|
}
|
|
7467
|
-
}),
|
|
7470
|
+
}), k2 = { class: "r-badge-wrapper group" }, a3 = /* @__PURE__ */ F({
|
|
7468
7471
|
__name: "RBadge",
|
|
7469
7472
|
props: {
|
|
7470
7473
|
variant: { default: "primary" },
|
|
@@ -7476,25 +7479,25 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7476
7479
|
},
|
|
7477
7480
|
emits: ["click"],
|
|
7478
7481
|
setup(H) {
|
|
7479
|
-
const V = H, C =
|
|
7480
|
-
badge: !0,
|
|
7481
|
-
badge__content: V.content,
|
|
7482
|
-
[`badge--overlap-${V.placement}`]: V.overlap,
|
|
7483
|
-
[`badge--${V.placement}`]: V.placement,
|
|
7484
|
-
[`badge--outside-${V.placement}`]: V.outside,
|
|
7485
|
-
"badge--hover": V.hover,
|
|
7486
|
-
"badge--no-content": !V.content,
|
|
7487
|
-
[`badge--${V.variant}`]: V.variant
|
|
7482
|
+
const V = H, C = g(() => ({
|
|
7483
|
+
"r-badge": !0,
|
|
7484
|
+
"r-badge__content": V.content,
|
|
7485
|
+
[`r-badge--overlap-${V.placement}`]: V.overlap,
|
|
7486
|
+
[`r-badge--${V.placement}`]: V.placement,
|
|
7487
|
+
[`r-badge--outside-${V.placement}`]: V.outside,
|
|
7488
|
+
"r-badge--hover": V.hover,
|
|
7489
|
+
"r-badge--no-content": !V.content,
|
|
7490
|
+
[`r-badge--${V.variant}`]: V.variant
|
|
7488
7491
|
}));
|
|
7489
|
-
return (L, A) => (t(), a("div",
|
|
7490
|
-
|
|
7492
|
+
return (L, A) => (t(), a("div", k2, [
|
|
7493
|
+
Z("span", {
|
|
7491
7494
|
class: f(p(C)),
|
|
7492
7495
|
onClick: A[0] || (A[0] = (M) => L.$emit("click"))
|
|
7493
7496
|
}, y(V.content), 3),
|
|
7494
|
-
|
|
7497
|
+
B(L.$slots, "default")
|
|
7495
7498
|
]));
|
|
7496
7499
|
}
|
|
7497
|
-
}),
|
|
7500
|
+
}), B2 = ["disabled"], Z3 = /* @__PURE__ */ F({
|
|
7498
7501
|
__name: "RButton",
|
|
7499
7502
|
props: {
|
|
7500
7503
|
variant: { default: "primary" },
|
|
@@ -7511,18 +7514,18 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7511
7514
|
},
|
|
7512
7515
|
emits: ["click"],
|
|
7513
7516
|
setup(H) {
|
|
7514
|
-
const V = H, C =
|
|
7515
|
-
button: !0,
|
|
7516
|
-
[`button--${V.variant}`]: !0,
|
|
7517
|
-
"button--loading": V.loading,
|
|
7518
|
-
[`button--${V.size || "medium"}`]: !0,
|
|
7519
|
-
"button--only-icon": V.onlyIcon,
|
|
7520
|
-
"button--block": V.block
|
|
7521
|
-
})), L =
|
|
7517
|
+
const V = H, C = g(() => ({
|
|
7518
|
+
"r-button": !0,
|
|
7519
|
+
[`r-button--${V.variant}`]: !0,
|
|
7520
|
+
"r-button--loading": V.loading,
|
|
7521
|
+
[`r-button--${V.size || "medium"}`]: !0,
|
|
7522
|
+
"r-button--only-icon": V.onlyIcon,
|
|
7523
|
+
"r-button--block": V.block
|
|
7524
|
+
})), L = g(() => ({
|
|
7522
7525
|
small: 20,
|
|
7523
7526
|
medium: 24,
|
|
7524
7527
|
large: 32
|
|
7525
|
-
})[V.size || "medium"]), A =
|
|
7528
|
+
})[V.size || "medium"]), A = g(() => {
|
|
7526
7529
|
const { backgroundColor: M, height: i, color: e } = V;
|
|
7527
7530
|
return {
|
|
7528
7531
|
backgroundColor: M,
|
|
@@ -7536,32 +7539,32 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7536
7539
|
style: p(A),
|
|
7537
7540
|
onClick: i[0] || (i[0] = N((e) => M.$emit("click"), ["stop"]))
|
|
7538
7541
|
}), [
|
|
7539
|
-
|
|
7540
|
-
!M.$slots["custom-icon"] && V.prependIcon ? (t(), R
|
|
7542
|
+
B(M.$slots, "custom-icon"),
|
|
7543
|
+
!M.$slots["custom-icon"] && V.prependIcon ? (t(), x(R, {
|
|
7541
7544
|
key: 0,
|
|
7542
7545
|
class: f({
|
|
7543
|
-
"button__prepend-icon": !0,
|
|
7544
|
-
"button__prepend-icon--only": V.onlyIcon
|
|
7546
|
+
"r-button__prepend-icon": !0,
|
|
7547
|
+
"r-button__prepend-icon--only": V.onlyIcon
|
|
7545
7548
|
}),
|
|
7546
7549
|
name: V.prependIcon,
|
|
7547
7550
|
size: p(L)
|
|
7548
|
-
}, null, 8, ["class", "name", "size"])) :
|
|
7549
|
-
V.onlyIcon ?
|
|
7550
|
-
!M.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (t(), R
|
|
7551
|
+
}, null, 8, ["class", "name", "size"])) : k("", !0),
|
|
7552
|
+
V.onlyIcon ? k("", !0) : B(M.$slots, "default", { key: 1 }),
|
|
7553
|
+
!M.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (t(), x(R, {
|
|
7551
7554
|
key: 2,
|
|
7552
|
-
class: "button__append-icon",
|
|
7555
|
+
class: "r-button__append-icon",
|
|
7553
7556
|
name: V.appendIcon,
|
|
7554
7557
|
size: p(L)
|
|
7555
|
-
}, null, 8, ["name", "size"])) :
|
|
7556
|
-
], 16,
|
|
7558
|
+
}, null, 8, ["name", "size"])) : k("", !0)
|
|
7559
|
+
], 16, B2));
|
|
7557
7560
|
}
|
|
7558
|
-
}),
|
|
7561
|
+
}), b2 = { class: "r-checkbox-wrapper" }, y2 = { class: "r-checkbox-container" }, w2 = ["id", "checked", "disabled", "indeterminate"], P2 = ["data-disabled"], T2 = { class: "r-checkbox-texts" }, v2 = ["data-disabled", "for"], F2 = {
|
|
7559
7562
|
key: 0,
|
|
7560
|
-
class: "checkbox-texts__error"
|
|
7561
|
-
},
|
|
7563
|
+
class: "r-checkbox-texts__error"
|
|
7564
|
+
}, R2 = {
|
|
7562
7565
|
key: 1,
|
|
7563
|
-
class: "checkbox-texts__hint"
|
|
7564
|
-
},
|
|
7566
|
+
class: "r-checkbox-texts__hint"
|
|
7567
|
+
}, u3 = /* @__PURE__ */ F({
|
|
7565
7568
|
__name: "RCheckbox",
|
|
7566
7569
|
props: {
|
|
7567
7570
|
id: { default: "" },
|
|
@@ -7581,12 +7584,12 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7581
7584
|
checked: "mdiCheck",
|
|
7582
7585
|
unchecked: "",
|
|
7583
7586
|
indeterminate: "mdiMinus"
|
|
7584
|
-
}, M =
|
|
7585
|
-
checkbox: !0,
|
|
7586
|
-
"checkbox--checked": L.checked,
|
|
7587
|
-
"checkbox--disabled": C.disabled,
|
|
7588
|
-
"checkbox--indeterminate": L.indeterminate,
|
|
7589
|
-
"checkbox--error": !!C.errorMsg
|
|
7587
|
+
}, M = g(() => L.indeterminate ? A.indeterminate : L.checked ? A.checked : A.unchecked), i = g(() => ({
|
|
7588
|
+
"r-checkbox": !0,
|
|
7589
|
+
"r-checkbox--checked": L.checked,
|
|
7590
|
+
"r-checkbox--disabled": C.disabled,
|
|
7591
|
+
"r-checkbox--indeterminate": L.indeterminate,
|
|
7592
|
+
"r-checkbox--error": !!C.errorMsg
|
|
7590
7593
|
})), e = (d) => {
|
|
7591
7594
|
C.disabled || (L.checked = d.target.checked, L.indeterminate = !1, V("update:modelValue", L.checked));
|
|
7592
7595
|
};
|
|
@@ -7610,38 +7613,38 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7610
7613
|
// TODO: find a better way to do this
|
|
7611
7614
|
immediate: !0
|
|
7612
7615
|
}
|
|
7613
|
-
), (d, m) => (t(), a("div",
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
+
), (d, m) => (t(), a("div", b2, [
|
|
7617
|
+
Z("div", y2, [
|
|
7618
|
+
Z("input", {
|
|
7616
7619
|
id: C.id,
|
|
7617
7620
|
checked: L.checked,
|
|
7618
|
-
class: "checkbox-container__input",
|
|
7621
|
+
class: "r-checkbox-container__input",
|
|
7619
7622
|
disabled: C.disabled,
|
|
7620
7623
|
indeterminate: L.indeterminate,
|
|
7621
7624
|
type: "checkbox",
|
|
7622
7625
|
onChange: e
|
|
7623
|
-
}, null, 40,
|
|
7624
|
-
|
|
7626
|
+
}, null, 40, w2),
|
|
7627
|
+
Z("div", {
|
|
7625
7628
|
class: f(p(i)),
|
|
7626
7629
|
"data-disabled": C.disabled
|
|
7627
7630
|
}, [
|
|
7628
|
-
q(
|
|
7631
|
+
q(R, {
|
|
7629
7632
|
name: p(M),
|
|
7630
7633
|
size: 24
|
|
7631
7634
|
}, null, 8, ["name"])
|
|
7632
|
-
], 10,
|
|
7635
|
+
], 10, P2)
|
|
7633
7636
|
]),
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
class: "checkbox-texts__label",
|
|
7637
|
+
Z("div", T2, [
|
|
7638
|
+
Z("label", {
|
|
7639
|
+
class: "r-checkbox-texts__label",
|
|
7637
7640
|
"data-disabled": C.disabled,
|
|
7638
7641
|
for: C.id
|
|
7639
|
-
}, y(C.label), 9,
|
|
7640
|
-
C.errorMsg ? (t(), a("p",
|
|
7642
|
+
}, y(C.label), 9, v2),
|
|
7643
|
+
C.errorMsg ? (t(), a("p", F2, y(C.errorMsg), 1)) : (t(), a("p", R2, y(C.hint), 1))
|
|
7641
7644
|
])
|
|
7642
7645
|
]));
|
|
7643
7646
|
}
|
|
7644
|
-
}),
|
|
7647
|
+
}), x2 = { class: "r-chip__content__label" }, D2 = /* @__PURE__ */ F({
|
|
7645
7648
|
__name: "RChip",
|
|
7646
7649
|
props: {
|
|
7647
7650
|
variant: { default: "primary" },
|
|
@@ -7654,11 +7657,11 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7654
7657
|
},
|
|
7655
7658
|
emits: ["click:chip", "click:close"],
|
|
7656
7659
|
setup(H, { emit: V }) {
|
|
7657
|
-
const C = H, L =
|
|
7658
|
-
chip: !0,
|
|
7659
|
-
"chip--disabled": C.disabled,
|
|
7660
|
-
[`chip__${C.variant}`]: C.variant,
|
|
7661
|
-
[`chip__${C.variant}--ghost`]: C.ghost
|
|
7660
|
+
const C = H, L = g(() => ({
|
|
7661
|
+
"r-chip": !0,
|
|
7662
|
+
"r-chip--disabled": C.disabled,
|
|
7663
|
+
[`r-chip__${C.variant}`]: C.variant,
|
|
7664
|
+
[`r-chip__${C.variant}--ghost`]: C.ghost
|
|
7662
7665
|
})), A = (i) => {
|
|
7663
7666
|
C.closable && i.stopPropagation(), !C.disabled && V("click:chip", i);
|
|
7664
7667
|
}, M = (i) => {
|
|
@@ -7667,43 +7670,43 @@ const n2 = ["data-state"], r2 = ["onClick"], a2 = { class: "r-accordion__title"
|
|
|
7667
7670
|
return (i, e) => (t(), a("div", {
|
|
7668
7671
|
class: f(p(L))
|
|
7669
7672
|
}, [
|
|
7670
|
-
|
|
7671
|
-
class: "chip__content",
|
|
7673
|
+
Z("div", {
|
|
7674
|
+
class: "r-chip__content",
|
|
7672
7675
|
onClick: e[0] || (e[0] = (d) => A(d))
|
|
7673
7676
|
}, [
|
|
7674
|
-
|
|
7675
|
-
C.prependIcon ? (t(), R
|
|
7677
|
+
B(i.$slots, "prepend", {}, () => [
|
|
7678
|
+
C.prependIcon ? (t(), x(R, {
|
|
7676
7679
|
key: 0,
|
|
7677
7680
|
"aria-disabled": C.disabled,
|
|
7678
|
-
class: "chip__content__prepend-icon",
|
|
7681
|
+
class: "r-chip__content__prepend-icon",
|
|
7679
7682
|
name: C.prependIcon,
|
|
7680
7683
|
size: 12
|
|
7681
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7684
|
+
}, null, 8, ["aria-disabled", "name"])) : k("", !0)
|
|
7682
7685
|
]),
|
|
7683
|
-
|
|
7686
|
+
Z("span", x2, y(C.label), 1)
|
|
7684
7687
|
]),
|
|
7685
|
-
|
|
7686
|
-
C.appendIcon ? (t(), R
|
|
7688
|
+
B(i.$slots, "append", {}, () => [
|
|
7689
|
+
C.appendIcon ? (t(), x(R, {
|
|
7687
7690
|
key: 0,
|
|
7688
7691
|
"aria-disabled": C.disabled,
|
|
7689
|
-
class: "chip__content__append-icon",
|
|
7692
|
+
class: "r-chip__content__append-icon",
|
|
7690
7693
|
name: C.appendIcon,
|
|
7691
7694
|
size: 12,
|
|
7692
7695
|
onClick: e[1] || (e[1] = (d) => M(d))
|
|
7693
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7696
|
+
}, null, 8, ["aria-disabled", "name"])) : k("", !0)
|
|
7694
7697
|
])
|
|
7695
7698
|
], 2));
|
|
7696
7699
|
}
|
|
7697
7700
|
});
|
|
7698
|
-
function
|
|
7701
|
+
function E2(H) {
|
|
7699
7702
|
return H2() ? (V2(H), !0) : !1;
|
|
7700
7703
|
}
|
|
7701
7704
|
function W1(H) {
|
|
7702
7705
|
return typeof H == "function" ? H() : p(H);
|
|
7703
7706
|
}
|
|
7704
|
-
const N1 = typeof window < "u" && typeof document < "u",
|
|
7705
|
-
},
|
|
7706
|
-
function
|
|
7707
|
+
const N1 = typeof window < "u" && typeof document < "u", _2 = Object.prototype.toString, W2 = (H) => _2.call(H) === "[object Object]", c1 = () => {
|
|
7708
|
+
}, N2 = /* @__PURE__ */ I2();
|
|
7709
|
+
function I2() {
|
|
7707
7710
|
var H;
|
|
7708
7711
|
return N1 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7709
7712
|
}
|
|
@@ -7720,68 +7723,68 @@ function u1(...H) {
|
|
|
7720
7723
|
Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
|
|
7721
7724
|
const M = [], i = () => {
|
|
7722
7725
|
M.forEach((o) => o()), M.length = 0;
|
|
7723
|
-
}, e = (o, l,
|
|
7726
|
+
}, e = (o, l, n, r) => (o.addEventListener(l, n, r), () => o.removeEventListener(l, n, r)), d = W(
|
|
7724
7727
|
() => [H1(V), W1(A)],
|
|
7725
7728
|
([o, l]) => {
|
|
7726
7729
|
if (i(), !o)
|
|
7727
7730
|
return;
|
|
7728
|
-
const
|
|
7731
|
+
const n = W2(l) ? { ...l } : l;
|
|
7729
7732
|
M.push(
|
|
7730
|
-
...C.flatMap((
|
|
7733
|
+
...C.flatMap((r) => L.map((u) => e(o, r, u, n)))
|
|
7731
7734
|
);
|
|
7732
7735
|
},
|
|
7733
7736
|
{ immediate: !0, flush: "post" }
|
|
7734
7737
|
), m = () => {
|
|
7735
7738
|
d(), i();
|
|
7736
7739
|
};
|
|
7737
|
-
return
|
|
7740
|
+
return E2(m), m;
|
|
7738
7741
|
}
|
|
7739
7742
|
let b1 = !1;
|
|
7740
|
-
function
|
|
7743
|
+
function Q2(H, V, C = {}) {
|
|
7741
7744
|
const { window: L = I1, ignore: A = [], capture: M = !0, detectIframe: i = !1 } = C;
|
|
7742
7745
|
if (!L)
|
|
7743
7746
|
return;
|
|
7744
|
-
|
|
7747
|
+
N2 && !b1 && (b1 = !0, Array.from(L.document.body.children).forEach((n) => n.addEventListener("click", c1)), L.document.documentElement.addEventListener("click", c1));
|
|
7745
7748
|
let e = !0;
|
|
7746
|
-
const d = (
|
|
7747
|
-
if (typeof
|
|
7748
|
-
return Array.from(L.document.querySelectorAll(
|
|
7749
|
+
const d = (n) => A.some((r) => {
|
|
7750
|
+
if (typeof r == "string")
|
|
7751
|
+
return Array.from(L.document.querySelectorAll(r)).some((u) => u === n.target || n.composedPath().includes(u));
|
|
7749
7752
|
{
|
|
7750
|
-
const
|
|
7751
|
-
return
|
|
7753
|
+
const u = H1(r);
|
|
7754
|
+
return u && (n.target === u || n.composedPath().includes(u));
|
|
7752
7755
|
}
|
|
7753
7756
|
}), o = [
|
|
7754
|
-
u1(L, "click", (
|
|
7755
|
-
const
|
|
7756
|
-
if (!(!
|
|
7757
|
-
if (
|
|
7757
|
+
u1(L, "click", (n) => {
|
|
7758
|
+
const r = H1(H);
|
|
7759
|
+
if (!(!r || r === n.target || n.composedPath().includes(r))) {
|
|
7760
|
+
if (n.detail === 0 && (e = !d(n)), !e) {
|
|
7758
7761
|
e = !0;
|
|
7759
7762
|
return;
|
|
7760
7763
|
}
|
|
7761
|
-
V(
|
|
7764
|
+
V(n);
|
|
7762
7765
|
}
|
|
7763
7766
|
}, { passive: !0, capture: M }),
|
|
7764
|
-
u1(L, "pointerdown", (
|
|
7765
|
-
const
|
|
7766
|
-
|
|
7767
|
+
u1(L, "pointerdown", (n) => {
|
|
7768
|
+
const r = H1(H);
|
|
7769
|
+
r && (e = !n.composedPath().includes(r) && !d(n));
|
|
7767
7770
|
}, { passive: !0 }),
|
|
7768
|
-
i && u1(L, "blur", (
|
|
7771
|
+
i && u1(L, "blur", (n) => {
|
|
7769
7772
|
setTimeout(() => {
|
|
7770
|
-
var
|
|
7771
|
-
const
|
|
7772
|
-
((
|
|
7773
|
+
var r;
|
|
7774
|
+
const u = H1(H);
|
|
7775
|
+
((r = L.document.activeElement) == null ? void 0 : r.tagName) === "IFRAME" && !(u != null && u.contains(L.document.activeElement)) && V(n);
|
|
7773
7776
|
}, 0);
|
|
7774
7777
|
})
|
|
7775
7778
|
].filter(Boolean);
|
|
7776
|
-
return () => o.forEach((
|
|
7779
|
+
return () => o.forEach((n) => n());
|
|
7777
7780
|
}
|
|
7778
|
-
const
|
|
7781
|
+
const G2 = {
|
|
7779
7782
|
key: 1,
|
|
7780
|
-
class: "dropdown__tags"
|
|
7781
|
-
},
|
|
7783
|
+
class: "r-dropdown__tags"
|
|
7784
|
+
}, z2 = {
|
|
7782
7785
|
key: 2,
|
|
7783
|
-
class: "dropdown__multiple"
|
|
7784
|
-
},
|
|
7786
|
+
class: "r-dropdown__multiple"
|
|
7787
|
+
}, U2 = ["id", "disabled", "placeholder", "readonly"], $2 = ["aria-disabled", "onClick"], K2 = { style: { display: "flex", "align-items": "center" } }, S3 = /* @__PURE__ */ F({
|
|
7785
7788
|
__name: "RDropdown",
|
|
7786
7789
|
props: {
|
|
7787
7790
|
options: { default: () => [] },
|
|
@@ -7794,174 +7797,177 @@ const Q2 = {
|
|
|
7794
7797
|
prependIcon: { default: "" },
|
|
7795
7798
|
appendIcon: { default: "mdiChevronDown" },
|
|
7796
7799
|
searchable: { type: Boolean, default: !1 },
|
|
7797
|
-
parentElement: null,
|
|
7798
7800
|
id: { default: "test" }
|
|
7799
7801
|
},
|
|
7800
7802
|
emits: ["update:modelValue"],
|
|
7801
7803
|
setup(H, { emit: V }) {
|
|
7802
|
-
const C = H, L =
|
|
7803
|
-
var
|
|
7804
|
+
const C = H, L = D(""), A = J([]), M = D(!1), i = D(""), e = D(null), d = D(null), m = D(null), o = (S) => {
|
|
7805
|
+
var O, s, v;
|
|
7804
7806
|
if (!C.disabled) {
|
|
7805
|
-
if (
|
|
7806
|
-
(
|
|
7807
|
+
if (S.stopPropagation(), M.value = !M.value, M.value) {
|
|
7808
|
+
(O = e.value) == null || O.classList.add("r-dropdown--active"), (s = e.value) == null || s.focus(), C.searchable && ((v = d.value) == null || v.focus());
|
|
7807
7809
|
return;
|
|
7808
7810
|
}
|
|
7809
7811
|
l();
|
|
7810
7812
|
}
|
|
7811
7813
|
}, l = () => {
|
|
7812
|
-
var
|
|
7813
|
-
M.value = !1, (
|
|
7814
|
-
},
|
|
7815
|
-
var
|
|
7814
|
+
var S, O, s;
|
|
7815
|
+
M.value = !1, (S = e.value) == null || S.classList.remove("r-dropdown--active"), (O = e.value) == null || O.blur(), (s = d.value) == null || s.blur();
|
|
7816
|
+
}, n = (S, O) => {
|
|
7817
|
+
var s;
|
|
7816
7818
|
if (C.multiple || C.taggable) {
|
|
7817
|
-
|
|
7819
|
+
S.stopPropagation(), A.find((v) => v.value === O.value) ? A.splice(A.indexOf(O), 1) : A.push(O), i.value = "", C.searchable && ((s = d.value) == null || s.focus());
|
|
7818
7820
|
return;
|
|
7819
7821
|
}
|
|
7820
|
-
|
|
7821
|
-
},
|
|
7822
|
-
if (L.value ===
|
|
7822
|
+
r(S, O);
|
|
7823
|
+
}, r = (S, O) => {
|
|
7824
|
+
if (L.value === O.value) {
|
|
7823
7825
|
L.value = "", i.value = "";
|
|
7824
7826
|
return;
|
|
7825
7827
|
}
|
|
7826
|
-
i.value =
|
|
7827
|
-
},
|
|
7828
|
-
if (
|
|
7828
|
+
i.value = O.label, L.value = O.value, o(S), V("update:modelValue", O);
|
|
7829
|
+
}, u = (S, O) => {
|
|
7830
|
+
if (S instanceof KeyboardEvent && S.key !== "Backspace" || i.value !== "")
|
|
7829
7831
|
return;
|
|
7830
|
-
|
|
7831
|
-
const
|
|
7832
|
-
A.splice(
|
|
7833
|
-
},
|
|
7834
|
-
var
|
|
7832
|
+
S.stopPropagation();
|
|
7833
|
+
const s = A.findIndex((v) => v.value === O.value);
|
|
7834
|
+
A.splice(s, 1);
|
|
7835
|
+
}, b = (S) => {
|
|
7836
|
+
var v;
|
|
7835
7837
|
if (!C.taggable)
|
|
7836
7838
|
return;
|
|
7837
|
-
|
|
7838
|
-
const
|
|
7839
|
-
if (
|
|
7839
|
+
S.stopPropagation();
|
|
7840
|
+
const O = i.value;
|
|
7841
|
+
if (O === "")
|
|
7840
7842
|
return;
|
|
7841
|
-
C.options.find((
|
|
7842
|
-
},
|
|
7843
|
+
C.options.find((h) => h.label === O) || (A.push({ value: O, label: O }), i.value = "", (v = d.value) == null || v.focus());
|
|
7844
|
+
}, c = (S) => C.multiple ? A.find((O) => O.value === S.value) : L.value === S.value, w = g(() => C.searchable ? C.options.filter((O) => O.label.toLowerCase().includes(i.value.toLowerCase())) : C.options), T = g(() => C.multiple || C.taggable || !C.searchable);
|
|
7843
7845
|
return L2(() => {
|
|
7844
7846
|
C.modelValue && (C.multiple ? A.push(C.modelValue) : (L.value = C.modelValue.value, i.value = C.modelValue.label));
|
|
7845
|
-
}), W(A, (
|
|
7846
|
-
V("update:modelValue",
|
|
7847
|
-
}),
|
|
7847
|
+
}), W(A, (S) => {
|
|
7848
|
+
V("update:modelValue", S);
|
|
7849
|
+
}), Q2(m, l), (S, O) => (t(), a("div", {
|
|
7848
7850
|
ref_key: "wrapper",
|
|
7849
7851
|
ref: m,
|
|
7850
|
-
class: "dropdown-wrapper"
|
|
7852
|
+
class: "r-dropdown-wrapper"
|
|
7851
7853
|
}, [
|
|
7852
|
-
|
|
7854
|
+
Z("div", {
|
|
7853
7855
|
ref_key: "dropdown",
|
|
7854
7856
|
ref: e,
|
|
7855
7857
|
class: f({
|
|
7856
|
-
dropdown: !0,
|
|
7857
|
-
"dropdown--disabled": C.disabled,
|
|
7858
|
-
"dropdown--loading": C.loading
|
|
7858
|
+
"r-dropdown": !0,
|
|
7859
|
+
"r-dropdown--disabled": C.disabled,
|
|
7860
|
+
"r-dropdown--loading": C.loading
|
|
7859
7861
|
}),
|
|
7862
|
+
role: "select",
|
|
7860
7863
|
onClick: o
|
|
7861
7864
|
}, [
|
|
7862
|
-
C.prependIcon ||
|
|
7865
|
+
C.prependIcon || S.$slots.prepend ? (t(), a("div", {
|
|
7863
7866
|
key: 0,
|
|
7864
7867
|
class: f({
|
|
7865
|
-
"dropdown__prepend-icon": !0,
|
|
7866
|
-
"dropdown__prepend-icon--active": M.value
|
|
7868
|
+
"r-dropdown__prepend-icon": !0,
|
|
7869
|
+
"r-dropdown__prepend-icon--active": M.value
|
|
7867
7870
|
})
|
|
7868
7871
|
}, [
|
|
7869
|
-
|
|
7870
|
-
C.prependIcon ? (t(), R
|
|
7872
|
+
B(S.$slots, "prepend", {}, () => [
|
|
7873
|
+
C.prependIcon ? (t(), x(R, {
|
|
7871
7874
|
key: 0,
|
|
7872
7875
|
name: C.prependIcon
|
|
7873
|
-
}, null, 8, ["name"])) :
|
|
7876
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
7874
7877
|
])
|
|
7875
|
-
], 2)) :
|
|
7876
|
-
C.taggable ? (t(), a("div",
|
|
7877
|
-
(t(!0), a(K, null, Y(A, (
|
|
7878
|
-
key:
|
|
7878
|
+
], 2)) : k("", !0),
|
|
7879
|
+
C.taggable ? (t(), a("div", G2, [
|
|
7880
|
+
(t(!0), a(K, null, Y(A, (s, v) => (t(), x(D2, {
|
|
7881
|
+
key: v,
|
|
7879
7882
|
appendIcon: "close",
|
|
7880
|
-
class: "dropdown__tags__chip",
|
|
7881
|
-
label:
|
|
7883
|
+
class: "r-dropdown__tags__chip",
|
|
7884
|
+
label: s.label,
|
|
7882
7885
|
variant: "primary",
|
|
7883
|
-
"onClick:close": (
|
|
7886
|
+
"onClick:close": (h) => u(h, s)
|
|
7884
7887
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7885
|
-
])) :
|
|
7886
|
-
C.multiple ? (t(), a("div",
|
|
7887
|
-
(t(!0), a(K, null, Y(A, (
|
|
7888
|
-
])) :
|
|
7889
|
-
E1(
|
|
7888
|
+
])) : k("", !0),
|
|
7889
|
+
C.multiple ? (t(), a("div", z2, [
|
|
7890
|
+
(t(!0), a(K, null, Y(A, (s, v) => (t(), a("p", { key: v }, y(s.label + ","), 1))), 128))
|
|
7891
|
+
])) : k("", !0),
|
|
7892
|
+
E1(Z("input", {
|
|
7890
7893
|
id: C.id,
|
|
7891
7894
|
ref_key: "input",
|
|
7892
7895
|
ref: d,
|
|
7893
|
-
"onUpdate:modelValue":
|
|
7896
|
+
"onUpdate:modelValue": O[0] || (O[0] = (s) => i.value = s),
|
|
7894
7897
|
class: f({
|
|
7895
|
-
dropdown__input: !0,
|
|
7896
|
-
"dropdown__input--loading": C.loading
|
|
7898
|
+
"r-dropdown__input": !0,
|
|
7899
|
+
"r-dropdown__input--loading": C.loading
|
|
7897
7900
|
}),
|
|
7898
7901
|
disabled: C.disabled,
|
|
7899
7902
|
placeholder: C.placeholder,
|
|
7900
|
-
readonly:
|
|
7903
|
+
readonly: p(T),
|
|
7901
7904
|
type: "text",
|
|
7902
7905
|
onKeydown: [
|
|
7903
|
-
|
|
7904
|
-
|
|
7906
|
+
O[1] || (O[1] = k1((s) => u(s, A[A.length - 1]), ["backspace"])),
|
|
7907
|
+
O[2] || (O[2] = k1((s) => b(s), ["enter"]))
|
|
7905
7908
|
]
|
|
7906
|
-
}, null, 42,
|
|
7909
|
+
}, null, 42, U2), [
|
|
7907
7910
|
[M2, i.value]
|
|
7908
7911
|
]),
|
|
7909
|
-
C.appendIcon ||
|
|
7912
|
+
C.appendIcon || S.$slots.append ? (t(), a("div", {
|
|
7910
7913
|
key: 3,
|
|
7911
7914
|
class: f({
|
|
7912
|
-
"dropdown__append-icon": !0,
|
|
7913
|
-
"dropdown__append-icon--active": M.value
|
|
7915
|
+
"r-dropdown__append-icon": !0,
|
|
7916
|
+
"r-dropdown__append-icon--active": M.value
|
|
7914
7917
|
})
|
|
7915
7918
|
}, [
|
|
7916
|
-
|
|
7917
|
-
C.appendIcon ? (t(), R
|
|
7919
|
+
B(S.$slots, "append", {}, () => [
|
|
7920
|
+
C.appendIcon ? (t(), x(R, {
|
|
7918
7921
|
key: 0,
|
|
7919
7922
|
name: C.appendIcon
|
|
7920
|
-
}, null, 8, ["name"])) :
|
|
7923
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
7921
7924
|
])
|
|
7922
|
-
], 2)) :
|
|
7925
|
+
], 2)) : k("", !0)
|
|
7923
7926
|
], 2),
|
|
7924
|
-
|
|
7925
|
-
class: f({
|
|
7927
|
+
Z("ul", {
|
|
7928
|
+
class: f({
|
|
7929
|
+
"r-dropdown-options": !0,
|
|
7930
|
+
"r-dropdown-options--active": M.value
|
|
7931
|
+
})
|
|
7926
7932
|
}, [
|
|
7927
|
-
(t(!0), a(K, null, Y(p(
|
|
7928
|
-
key:
|
|
7929
|
-
"aria-disabled":
|
|
7933
|
+
(t(!0), a(K, null, Y(p(w), (s) => (t(), a("li", {
|
|
7934
|
+
key: s.value,
|
|
7935
|
+
"aria-disabled": s.disabled,
|
|
7930
7936
|
class: f({
|
|
7931
|
-
"dropdown-options__option": !0,
|
|
7932
|
-
"dropdown-options__option--active": s
|
|
7937
|
+
"r-dropdown-options__option": !0,
|
|
7938
|
+
"r-dropdown-options__option--active": c(s)
|
|
7933
7939
|
}),
|
|
7934
|
-
onClick: (
|
|
7940
|
+
onClick: (v) => n(v, s)
|
|
7935
7941
|
}, [
|
|
7936
|
-
|
|
7937
|
-
|
|
7942
|
+
Z("div", K2, [
|
|
7943
|
+
s.prependIcon ? (t(), x(R, {
|
|
7938
7944
|
key: 1,
|
|
7939
7945
|
class: f({
|
|
7940
|
-
"dropdown-options__option__prepend-icon": !0,
|
|
7941
|
-
"dropdown-options__option__prepend-icon--active": s
|
|
7946
|
+
"r-dropdown-options__option__prepend-icon": !0,
|
|
7947
|
+
"r-dropdown-options__option__prepend-icon--active": c(s)
|
|
7942
7948
|
}),
|
|
7943
|
-
name:
|
|
7944
|
-
}, null, 8, ["class", "name"])) :
|
|
7945
|
-
|
|
7949
|
+
name: s.prependIcon
|
|
7950
|
+
}, null, 8, ["class", "name"])) : B(S.$slots, "option-prepend", { key: 0 }),
|
|
7951
|
+
Z("p", {
|
|
7946
7952
|
class: f({
|
|
7947
|
-
"dropdown-options__option__label": !0,
|
|
7948
|
-
"dropdown-options__option__label--active": s
|
|
7953
|
+
"r-dropdown-options__option__label": !0,
|
|
7954
|
+
"r-dropdown-options__option__label--active": c(s)
|
|
7949
7955
|
})
|
|
7950
|
-
}, y(
|
|
7956
|
+
}, y(s.label), 3)
|
|
7951
7957
|
]),
|
|
7952
|
-
s
|
|
7958
|
+
c(s) ? (t(), x(R, {
|
|
7953
7959
|
key: 0,
|
|
7954
7960
|
class: f({
|
|
7955
|
-
"dropdown-options__option__append-icon": !0,
|
|
7956
|
-
"dropdown-options__option__append-icon--active": s
|
|
7961
|
+
"r-dropdown-options__option__append-icon": !0,
|
|
7962
|
+
"r-dropdown-options__option__append-icon--active": c(s)
|
|
7957
7963
|
}),
|
|
7958
7964
|
name: "mdiCheck"
|
|
7959
|
-
}, null, 8, ["class"])) :
|
|
7960
|
-
], 10,
|
|
7965
|
+
}, null, 8, ["class"])) : k("", !0)
|
|
7966
|
+
], 10, $2))), 128))
|
|
7961
7967
|
], 2)
|
|
7962
7968
|
], 512));
|
|
7963
7969
|
}
|
|
7964
|
-
}),
|
|
7970
|
+
}), j2 = ["id", "for"], Q1 = /* @__PURE__ */ F({
|
|
7965
7971
|
__name: "RLabel",
|
|
7966
7972
|
props: {
|
|
7967
7973
|
id: { default: "" },
|
|
@@ -7972,19 +7978,24 @@ const Q2 = {
|
|
|
7972
7978
|
const V = H;
|
|
7973
7979
|
return (C, L) => (t(), a("label", {
|
|
7974
7980
|
id: V.id,
|
|
7981
|
+
class: "r-label",
|
|
7975
7982
|
for: V.for
|
|
7976
|
-
},
|
|
7983
|
+
}, [
|
|
7984
|
+
B(C.$slots, "default", {}, () => [
|
|
7985
|
+
A2(y(V.text), 1)
|
|
7986
|
+
])
|
|
7987
|
+
], 8, j2));
|
|
7977
7988
|
}
|
|
7978
|
-
}),
|
|
7989
|
+
}), q2 = ["onClick"], Y2 = ["open"], X2 = { class: "r-dialog__header" }, J2 = {
|
|
7979
7990
|
key: 0,
|
|
7980
7991
|
class: "icon"
|
|
7981
|
-
},
|
|
7992
|
+
}, C5 = {
|
|
7982
7993
|
key: 1,
|
|
7983
7994
|
class: "title"
|
|
7984
|
-
},
|
|
7995
|
+
}, H5 = {
|
|
7985
7996
|
key: 2,
|
|
7986
7997
|
class: "description"
|
|
7987
|
-
},
|
|
7998
|
+
}, V5 = { class: "r-dialog__body" }, L5 = { class: "r-dialog__actions" }, c3 = /* @__PURE__ */ F({
|
|
7988
7999
|
__name: "RModal",
|
|
7989
8000
|
props: {
|
|
7990
8001
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7998,72 +8009,72 @@ const Q2 = {
|
|
|
7998
8009
|
},
|
|
7999
8010
|
emits: ["update:modelValue"],
|
|
8000
8011
|
setup(H, { emit: V }) {
|
|
8001
|
-
const C = H, L =
|
|
8002
|
-
dialog: !0,
|
|
8003
|
-
"dialog--block": C.block
|
|
8004
|
-
})), A =
|
|
8012
|
+
const C = H, L = g(() => ({
|
|
8013
|
+
"r-dialog": !0,
|
|
8014
|
+
"r-dialog--block": C.block
|
|
8015
|
+
})), A = g(() => ({
|
|
8005
8016
|
width: C.width,
|
|
8006
8017
|
height: C.height
|
|
8007
8018
|
})), M = (i) => {
|
|
8008
8019
|
C.outsideClick && i.target === i.currentTarget && V("update:modelValue", !1);
|
|
8009
8020
|
};
|
|
8010
8021
|
return (i, e) => E1((t(), a("div", {
|
|
8011
|
-
class: "modal",
|
|
8022
|
+
class: "r-modal-overlay",
|
|
8012
8023
|
onClick: N(M, ["stop"])
|
|
8013
8024
|
}, [
|
|
8014
|
-
|
|
8025
|
+
Z("div", {
|
|
8015
8026
|
"aria-modal": "true",
|
|
8016
8027
|
class: f(p(L)),
|
|
8017
8028
|
open: C.modelValue,
|
|
8018
8029
|
role: "dialog",
|
|
8019
8030
|
style: p1(p(A))
|
|
8020
8031
|
}, [
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
C.icon ? (t(), a("div",
|
|
8024
|
-
q(
|
|
8032
|
+
Z("div", X2, [
|
|
8033
|
+
B(i.$slots, "header"),
|
|
8034
|
+
C.icon ? (t(), a("div", J2, [
|
|
8035
|
+
q(R, {
|
|
8025
8036
|
name: C.icon
|
|
8026
8037
|
}, null, 8, ["name"])
|
|
8027
|
-
])) :
|
|
8028
|
-
C.title ? (t(), a("div",
|
|
8029
|
-
C.description ? (t(), a("div",
|
|
8038
|
+
])) : k("", !0),
|
|
8039
|
+
C.title ? (t(), a("div", C5, y(C.title), 1)) : k("", !0),
|
|
8040
|
+
C.description ? (t(), a("div", H5, y(C.description), 1)) : k("", !0)
|
|
8030
8041
|
]),
|
|
8031
|
-
|
|
8032
|
-
|
|
8042
|
+
Z("div", V5, [
|
|
8043
|
+
B(i.$slots, "default")
|
|
8033
8044
|
]),
|
|
8034
|
-
|
|
8035
|
-
|
|
8045
|
+
Z("div", L5, [
|
|
8046
|
+
B(i.$slots, "actions")
|
|
8036
8047
|
])
|
|
8037
|
-
], 14,
|
|
8038
|
-
], 8,
|
|
8039
|
-
[
|
|
8048
|
+
], 14, Y2)
|
|
8049
|
+
], 8, q2)), [
|
|
8050
|
+
[i2, H.modelValue]
|
|
8040
8051
|
]);
|
|
8041
8052
|
}
|
|
8042
|
-
}),
|
|
8053
|
+
}), M5 = { class: "r-sidebar__nav" }, A5 = { class: "r-sidebar__actions" }, s3 = /* @__PURE__ */ F({
|
|
8043
8054
|
__name: "RSidebar",
|
|
8044
8055
|
props: {
|
|
8045
8056
|
modelValue: { type: Boolean, default: !1 }
|
|
8046
8057
|
},
|
|
8047
8058
|
setup(H) {
|
|
8048
|
-
const V = H, C =
|
|
8049
|
-
sidebar: !0,
|
|
8050
|
-
"sidebar--open": V.modelValue
|
|
8059
|
+
const V = H, C = g(() => ({
|
|
8060
|
+
"r-sidebar": !0,
|
|
8061
|
+
"r-sidebar--open": V.modelValue
|
|
8051
8062
|
}));
|
|
8052
8063
|
return (L, A) => (t(), a("aside", {
|
|
8053
8064
|
class: f(p(C))
|
|
8054
8065
|
}, [
|
|
8055
|
-
|
|
8056
|
-
|
|
8066
|
+
Z("nav", M5, [
|
|
8067
|
+
B(L.$slots, "default")
|
|
8057
8068
|
]),
|
|
8058
|
-
|
|
8059
|
-
|
|
8069
|
+
Z("div", A5, [
|
|
8070
|
+
B(L.$slots, "actions")
|
|
8060
8071
|
])
|
|
8061
8072
|
], 2));
|
|
8062
8073
|
}
|
|
8063
|
-
}),
|
|
8074
|
+
}), i5 = { class: "r-snackbar__text" }, e5 = {
|
|
8064
8075
|
key: 0,
|
|
8065
8076
|
class: "r-snackbar__close"
|
|
8066
|
-
},
|
|
8077
|
+
}, O3 = /* @__PURE__ */ F({
|
|
8067
8078
|
__name: "RSnackbar",
|
|
8068
8079
|
props: {
|
|
8069
8080
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -8088,7 +8099,7 @@ const Q2 = {
|
|
|
8088
8099
|
immediate: !0
|
|
8089
8100
|
}
|
|
8090
8101
|
);
|
|
8091
|
-
const L =
|
|
8102
|
+
const L = g(() => ({
|
|
8092
8103
|
"r-snackbar": !0,
|
|
8093
8104
|
[`r-snackbar--${C.variant}`]: !0,
|
|
8094
8105
|
[C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
|
|
@@ -8103,33 +8114,33 @@ const Q2 = {
|
|
|
8103
8114
|
return (M, i) => (t(), a("div", {
|
|
8104
8115
|
class: f(p(L))
|
|
8105
8116
|
}, [
|
|
8106
|
-
|
|
8107
|
-
C.variant ? (t(), R
|
|
8117
|
+
B(M.$slots, "default", {}, () => [
|
|
8118
|
+
C.variant ? (t(), x(R, {
|
|
8108
8119
|
key: 0,
|
|
8109
8120
|
class: "r-snackbar__icon",
|
|
8110
8121
|
name: p(A)
|
|
8111
|
-
}, null, 8, ["name"])) :
|
|
8122
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
8112
8123
|
]),
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
C.closable ? (t(), a("div",
|
|
8116
|
-
|
|
8117
|
-
q(
|
|
8124
|
+
Z("div", i5, y(C.text), 1),
|
|
8125
|
+
B(M.$slots, "action"),
|
|
8126
|
+
C.closable ? (t(), a("div", e5, [
|
|
8127
|
+
B(M.$slots, "close", {}, () => [
|
|
8128
|
+
q(R, {
|
|
8118
8129
|
name: "mdiClose",
|
|
8119
8130
|
size: 16,
|
|
8120
8131
|
onClick: i[0] || (i[0] = N((e) => M.$emit("update:modelValue", !1), ["stop"]))
|
|
8121
8132
|
})
|
|
8122
8133
|
])
|
|
8123
|
-
])) :
|
|
8134
|
+
])) : k("", !0)
|
|
8124
8135
|
], 2));
|
|
8125
8136
|
}
|
|
8126
|
-
}),
|
|
8137
|
+
}), d5 = { class: "r-switch-container" }, t5 = ["id", "checked"], m5 = /* @__PURE__ */ Z("span", { class: "slider round" }, null, -1), l5 = ["id", "for"], o5 = {
|
|
8127
8138
|
key: 0,
|
|
8128
|
-
class: "switch-texts__error"
|
|
8129
|
-
},
|
|
8139
|
+
class: "r-switch-texts__error"
|
|
8140
|
+
}, r5 = {
|
|
8130
8141
|
key: 1,
|
|
8131
|
-
class: "switch-texts__hint"
|
|
8132
|
-
},
|
|
8142
|
+
class: "r-switch-texts__hint"
|
|
8143
|
+
}, p3 = /* @__PURE__ */ F({
|
|
8133
8144
|
__name: "RSwitch",
|
|
8134
8145
|
props: {
|
|
8135
8146
|
id: { default: "switch" },
|
|
@@ -8144,11 +8155,11 @@ const Q2 = {
|
|
|
8144
8155
|
setup(H, { emit: V }) {
|
|
8145
8156
|
const C = H, L = J({
|
|
8146
8157
|
checked: !1
|
|
8147
|
-
}), A =
|
|
8148
|
-
switch: !0,
|
|
8149
|
-
"switch--disabled": C.disabled,
|
|
8150
|
-
[`switch--${C.size}`]: C.size,
|
|
8151
|
-
"switch--error": C.errorMsg
|
|
8158
|
+
}), A = g(() => ({
|
|
8159
|
+
"r-switch": !0,
|
|
8160
|
+
"r-switch--disabled": C.disabled,
|
|
8161
|
+
[`r-switch--${C.size}`]: C.size,
|
|
8162
|
+
"r-switch--error": C.errorMsg
|
|
8152
8163
|
})), M = (i) => {
|
|
8153
8164
|
C.disabled || (L.checked = i.target.checked, V("update:modelValue", L.checked));
|
|
8154
8165
|
};
|
|
@@ -8162,40 +8173,40 @@ const Q2 = {
|
|
|
8162
8173
|
// TODO: find a better way to do this
|
|
8163
8174
|
immediate: !0
|
|
8164
8175
|
}
|
|
8165
|
-
), (i, e) => (t(), a("div",
|
|
8166
|
-
|
|
8176
|
+
), (i, e) => (t(), a("div", d5, [
|
|
8177
|
+
Z("div", {
|
|
8167
8178
|
class: f(p(A))
|
|
8168
8179
|
}, [
|
|
8169
|
-
|
|
8180
|
+
Z("input", {
|
|
8170
8181
|
id: C.id,
|
|
8171
8182
|
checked: L.checked,
|
|
8172
|
-
class: "switch__input",
|
|
8183
|
+
class: "r-switch__input",
|
|
8173
8184
|
type: "checkbox",
|
|
8174
8185
|
onChange: M
|
|
8175
|
-
}, null, 40,
|
|
8176
|
-
|
|
8186
|
+
}, null, 40, t5),
|
|
8187
|
+
m5
|
|
8177
8188
|
], 2),
|
|
8178
|
-
|
|
8189
|
+
Z("div", {
|
|
8179
8190
|
class: f({
|
|
8180
|
-
"switch-texts": !0,
|
|
8181
|
-
[`switch-texts--${C.size}`]: !0
|
|
8191
|
+
"r-switch-texts": !0,
|
|
8192
|
+
[`r-switch-texts--${C.size}`]: !0
|
|
8182
8193
|
})
|
|
8183
8194
|
}, [
|
|
8184
|
-
|
|
8195
|
+
Z("label", {
|
|
8185
8196
|
id: C.id,
|
|
8186
|
-
class: "switch-texts__label",
|
|
8197
|
+
class: "r-switch-texts__label",
|
|
8187
8198
|
for: C.id
|
|
8188
|
-
}, y(C.label), 9,
|
|
8189
|
-
C.errorMsg ? (t(), a("p",
|
|
8199
|
+
}, y(C.label), 9, l5),
|
|
8200
|
+
C.errorMsg ? (t(), a("p", o5, y(C.errorMsg), 1)) : (t(), a("p", r5, y(C.hint), 1))
|
|
8190
8201
|
], 2)
|
|
8191
8202
|
]));
|
|
8192
8203
|
}
|
|
8193
8204
|
});
|
|
8194
8205
|
var V1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(V1 || {});
|
|
8195
|
-
const n5 = ["aria-disabled", "aria-selected", "disabled"],
|
|
8206
|
+
const n5 = ["aria-disabled", "aria-selected", "disabled"], a5 = {
|
|
8196
8207
|
key: 0,
|
|
8197
|
-
class: "tab-item__label"
|
|
8198
|
-
},
|
|
8208
|
+
class: "r-tab-item__label"
|
|
8209
|
+
}, Z5 = /* @__PURE__ */ F({
|
|
8199
8210
|
__name: "RTabItem",
|
|
8200
8211
|
props: {
|
|
8201
8212
|
id: null,
|
|
@@ -8211,12 +8222,12 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8211
8222
|
},
|
|
8212
8223
|
emits: ["update:modelValue", "click:icon"],
|
|
8213
8224
|
setup(H, { emit: V }) {
|
|
8214
|
-
const C = H, L =
|
|
8215
|
-
"tab-item": !0,
|
|
8216
|
-
[`tab-item--${C.variant}`]: !0,
|
|
8217
|
-
"tab-item--tile": C.tile,
|
|
8218
|
-
"tab-item--block": C.block
|
|
8219
|
-
})), A =
|
|
8225
|
+
const C = H, L = g(() => ({
|
|
8226
|
+
"r-tab-item": !0,
|
|
8227
|
+
[`r-tab-item--${C.variant}`]: !0,
|
|
8228
|
+
"r-tab-item--tile": C.tile,
|
|
8229
|
+
"r-tab-item--block": C.block
|
|
8230
|
+
})), A = g(() => ({
|
|
8220
8231
|
color: C.color
|
|
8221
8232
|
}));
|
|
8222
8233
|
function M(e) {
|
|
@@ -8233,27 +8244,27 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8233
8244
|
style: p1(p(A)),
|
|
8234
8245
|
onClick: d[0] || (d[0] = N((m) => M(C.id), ["stop"]))
|
|
8235
8246
|
}, [
|
|
8236
|
-
|
|
8237
|
-
C.variant !== p(V1).TEXT && C.prependIcon ? (t(), R
|
|
8247
|
+
B(e.$slots, "prepend", {}, () => [
|
|
8248
|
+
C.variant !== p(V1).TEXT && C.prependIcon ? (t(), x(R, {
|
|
8238
8249
|
key: 0,
|
|
8239
|
-
class: "tab-item__prepend-icon",
|
|
8250
|
+
class: "r-tab-item__prepend-icon",
|
|
8240
8251
|
name: C.prependIcon,
|
|
8241
8252
|
size: 16
|
|
8242
|
-
}, null, 8, ["name"])) :
|
|
8253
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
8243
8254
|
]),
|
|
8244
|
-
C.variant !== p(V1).ICON ? (t(), a("span",
|
|
8245
|
-
|
|
8246
|
-
C.variant !== p(V1).TEXT && C.appendIcon ? (t(), R
|
|
8255
|
+
C.variant !== p(V1).ICON ? (t(), a("span", a5, y(C.label), 1)) : k("", !0),
|
|
8256
|
+
B(e.$slots, "append", {}, () => [
|
|
8257
|
+
C.variant !== p(V1).TEXT && C.appendIcon ? (t(), x(R, {
|
|
8247
8258
|
key: 0,
|
|
8248
|
-
class: "tab-item__append-icon",
|
|
8259
|
+
class: "r-tab-item__append-icon",
|
|
8249
8260
|
name: C.appendIcon,
|
|
8250
8261
|
size: 16,
|
|
8251
8262
|
onClick: N(i, ["stop"])
|
|
8252
|
-
}, null, 8, ["name", "onClick"])) :
|
|
8263
|
+
}, null, 8, ["name", "onClick"])) : k("", !0)
|
|
8253
8264
|
])
|
|
8254
8265
|
], 14, n5));
|
|
8255
8266
|
}
|
|
8256
|
-
}),
|
|
8267
|
+
}), h3 = /* @__PURE__ */ F({
|
|
8257
8268
|
__name: "RTabs",
|
|
8258
8269
|
props: {
|
|
8259
8270
|
tabs: { default: () => [] },
|
|
@@ -8263,10 +8274,10 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8263
8274
|
},
|
|
8264
8275
|
emits: ["update:modelValue", "click:icon"],
|
|
8265
8276
|
setup(H, { emit: V }) {
|
|
8266
|
-
const C = H, L =
|
|
8267
|
-
tabs: !0,
|
|
8268
|
-
"tabs--block": C.block,
|
|
8269
|
-
"tabs--tile": C.tile
|
|
8277
|
+
const C = H, L = D(C.modelValue || C.tabs[0].id), A = g(() => ({
|
|
8278
|
+
"r-tabs": !0,
|
|
8279
|
+
"r-tabs--block": C.block,
|
|
8280
|
+
"r-tabs--tile": C.tile
|
|
8270
8281
|
}));
|
|
8271
8282
|
W(
|
|
8272
8283
|
() => L.value,
|
|
@@ -8280,8 +8291,8 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8280
8291
|
return (i, e) => (t(), a("div", {
|
|
8281
8292
|
class: f(p(A))
|
|
8282
8293
|
}, [
|
|
8283
|
-
|
|
8284
|
-
(t(!0), a(K, null, Y(C.tabs, (d, m) => (t(),
|
|
8294
|
+
B(i.$slots, "default", {}, () => [
|
|
8295
|
+
(t(!0), a(K, null, Y(C.tabs, (d, m) => (t(), x(Z5, {
|
|
8285
8296
|
id: d.id,
|
|
8286
8297
|
key: m,
|
|
8287
8298
|
modelValue: L.value,
|
|
@@ -8299,13 +8310,13 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8299
8310
|
])
|
|
8300
8311
|
], 2));
|
|
8301
8312
|
}
|
|
8302
|
-
}),
|
|
8313
|
+
}), u5 = { class: "container" }, S5 = ["id", "disabled", "placeholder", "value"], c5 = {
|
|
8303
8314
|
key: 1,
|
|
8304
|
-
class: "textarea__error"
|
|
8305
|
-
},
|
|
8315
|
+
class: "r-textarea__error"
|
|
8316
|
+
}, s5 = {
|
|
8306
8317
|
key: 2,
|
|
8307
|
-
class: "textarea__hint"
|
|
8308
|
-
},
|
|
8318
|
+
class: "r-textarea__hint"
|
|
8319
|
+
}, f3 = /* @__PURE__ */ F({
|
|
8309
8320
|
__name: "RTextArea",
|
|
8310
8321
|
props: {
|
|
8311
8322
|
id: { default: "" },
|
|
@@ -8332,39 +8343,39 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8332
8343
|
{
|
|
8333
8344
|
immediate: !0
|
|
8334
8345
|
}
|
|
8335
|
-
), (M, i) => (t(), a("div",
|
|
8336
|
-
C.label ? (t(),
|
|
8346
|
+
), (M, i) => (t(), a("div", u5, [
|
|
8347
|
+
C.label ? (t(), x(Q1, {
|
|
8337
8348
|
key: 0,
|
|
8338
8349
|
id: "textarea",
|
|
8339
|
-
class: "textarea__label",
|
|
8350
|
+
class: "r-textarea__label",
|
|
8340
8351
|
for: "textarea",
|
|
8341
8352
|
text: C.label
|
|
8342
|
-
}, null, 8, ["text"])) :
|
|
8343
|
-
|
|
8353
|
+
}, null, 8, ["text"])) : k("", !0),
|
|
8354
|
+
Z("textarea", {
|
|
8344
8355
|
id: C.id,
|
|
8345
|
-
class: f(["textarea", {
|
|
8346
|
-
"textarea--error": C.errorMsg,
|
|
8347
|
-
"textarea--disabled": C.disabled
|
|
8356
|
+
class: f(["r-textarea", {
|
|
8357
|
+
"r-textarea--error": C.errorMsg,
|
|
8358
|
+
"r-textarea--disabled": C.disabled
|
|
8348
8359
|
}]),
|
|
8349
8360
|
disabled: C.disabled,
|
|
8350
8361
|
placeholder: C.placeholder,
|
|
8351
8362
|
value: L.value,
|
|
8352
8363
|
onInput: A
|
|
8353
|
-
}, null, 42,
|
|
8354
|
-
C.errorMsg ? (t(), a("p",
|
|
8364
|
+
}, null, 42, S5),
|
|
8365
|
+
C.errorMsg ? (t(), a("p", c5, y(C.errorMsg), 1)) : (t(), a("p", s5, y(C.hint), 1))
|
|
8355
8366
|
]));
|
|
8356
8367
|
}
|
|
8357
|
-
}),
|
|
8368
|
+
}), O5 = {
|
|
8358
8369
|
class: /* @__PURE__ */ f({
|
|
8359
|
-
textfield__wrapper: !0
|
|
8370
|
+
"r-textfield__wrapper": !0
|
|
8360
8371
|
})
|
|
8361
|
-
},
|
|
8372
|
+
}, p5 = { class: "input-wrapper" }, h5 = ["id", "disabled", "max", "min", "placeholder", "type", "value"], f5 = {
|
|
8362
8373
|
key: 0,
|
|
8363
|
-
class: "textfield__error"
|
|
8364
|
-
},
|
|
8374
|
+
class: "r-textfield__error"
|
|
8375
|
+
}, g5 = {
|
|
8365
8376
|
key: 1,
|
|
8366
|
-
class: "textfield__hint"
|
|
8367
|
-
},
|
|
8377
|
+
class: "r-textfield__hint"
|
|
8378
|
+
}, g3 = /* @__PURE__ */ F({
|
|
8368
8379
|
__name: "RTextfield",
|
|
8369
8380
|
props: {
|
|
8370
8381
|
id: { default: "" },
|
|
@@ -8391,52 +8402,52 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8391
8402
|
"click:clear"
|
|
8392
8403
|
],
|
|
8393
8404
|
setup(H, { emit: V }) {
|
|
8394
|
-
const C = H, L =
|
|
8405
|
+
const C = H, L = D(), A = J({
|
|
8395
8406
|
value: ""
|
|
8396
|
-
}), M =
|
|
8407
|
+
}), M = D(C.type), i = {
|
|
8397
8408
|
password: "mdiLock",
|
|
8398
8409
|
email: "mdiEmailOutline",
|
|
8399
8410
|
tel: "mdiPhone",
|
|
8400
8411
|
url: "mdiLink",
|
|
8401
8412
|
number: "mdiNumeric",
|
|
8402
8413
|
text: ""
|
|
8403
|
-
}, e =
|
|
8404
|
-
const { disabled: h, loading:
|
|
8414
|
+
}, e = D(!1), d = g(() => !!A.value), m = g(() => {
|
|
8415
|
+
const { disabled: h, loading: P, clearable: E, errorMsg: _ } = C;
|
|
8405
8416
|
return {
|
|
8406
|
-
textfield: !0,
|
|
8407
|
-
"textfield--error": _ == null ? void 0 : _.length,
|
|
8408
|
-
"textfield--loading":
|
|
8409
|
-
"textfield--disabled": h,
|
|
8410
|
-
"textfield--clearable":
|
|
8411
|
-
"textfield--focus": e.value,
|
|
8412
|
-
"textfield--filled": d.value
|
|
8417
|
+
"r-textfield": !0,
|
|
8418
|
+
"r-textfield--error": _ == null ? void 0 : _.length,
|
|
8419
|
+
"r-textfield--loading": P,
|
|
8420
|
+
"r-textfield--disabled": h,
|
|
8421
|
+
"r-textfield--clearable": E,
|
|
8422
|
+
"r-textfield--focus": e.value,
|
|
8423
|
+
"r-textfield--filled": d.value
|
|
8413
8424
|
};
|
|
8414
|
-
}), o =
|
|
8415
|
-
"textfield__prepend-icon": !0,
|
|
8416
|
-
"textfield__prepend-icon--loading": C.loading,
|
|
8417
|
-
"textfield__prepend-icon--error":
|
|
8418
|
-
})), l =
|
|
8419
|
-
"textfield__append-icon": !0,
|
|
8420
|
-
"textfield__append-icon--clear":
|
|
8421
|
-
"textfield__append-icon--error":
|
|
8422
|
-
})),
|
|
8425
|
+
}), o = g(() => ({
|
|
8426
|
+
"r-textfield__prepend-icon": !0,
|
|
8427
|
+
"r-textfield__prepend-icon--loading": C.loading,
|
|
8428
|
+
"r-textfield__prepend-icon--error": r.value && d.value
|
|
8429
|
+
})), l = g(() => ({
|
|
8430
|
+
"r-textfield__append-icon": !0,
|
|
8431
|
+
"r-textfield__append-icon--clear": u.value,
|
|
8432
|
+
"r-textfield__append-icon--error": r.value
|
|
8433
|
+
})), n = g(() => A.value.length > 0), r = g(() => {
|
|
8423
8434
|
var h;
|
|
8424
8435
|
return (h = C.errorMsg) == null ? void 0 : h.length;
|
|
8425
|
-
}),
|
|
8426
|
-
const { prependIcon: h, type:
|
|
8427
|
-
return h === "none" ? "" : h || i[
|
|
8428
|
-
}),
|
|
8429
|
-
const { appendIcon: h, type:
|
|
8430
|
-
return h === "none" ? "" :
|
|
8431
|
-
}),
|
|
8436
|
+
}), u = g(() => C.clearable && n.value), b = g(() => {
|
|
8437
|
+
const { prependIcon: h, type: P } = C;
|
|
8438
|
+
return h === "none" ? "" : h || i[P];
|
|
8439
|
+
}), c = g(() => {
|
|
8440
|
+
const { appendIcon: h, type: P } = C;
|
|
8441
|
+
return h === "none" ? "" : r.value ? "mdiAlertCircleOutline" : u.value && ["text", "email"].includes(P) ? "mdiClose" : P === "password" && M.value === "password" ? "mdiEyeOutline" : P === "password" && M.value === "text" ? "mdiEyeOffOutline" : h;
|
|
8442
|
+
}), w = (h) => {
|
|
8432
8443
|
e.value = !0, V("focus", h);
|
|
8433
|
-
},
|
|
8444
|
+
}, T = (h) => {
|
|
8434
8445
|
e.value = !1, V("blur", h);
|
|
8435
|
-
},
|
|
8446
|
+
}, S = (h) => {
|
|
8436
8447
|
A.value = h.target.value, V("input", h);
|
|
8437
8448
|
}, O = () => {
|
|
8438
8449
|
var h;
|
|
8439
|
-
if (
|
|
8450
|
+
if (u.value) {
|
|
8440
8451
|
A.value = "", (h = L.value) == null || h.focus(), V("click:clear", {
|
|
8441
8452
|
value: M.value === "number" ? +A.value : A.value
|
|
8442
8453
|
});
|
|
@@ -8444,10 +8455,10 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8444
8455
|
}
|
|
8445
8456
|
V("click:icon", {
|
|
8446
8457
|
value: M.value === "number" ? +A.value : A.value
|
|
8447
|
-
}), M.value === "password" &&
|
|
8448
|
-
},
|
|
8458
|
+
}), M.value === "password" && s();
|
|
8459
|
+
}, s = () => {
|
|
8449
8460
|
M.value = M.value === "password" ? "text" : "password";
|
|
8450
|
-
},
|
|
8461
|
+
}, v = () => {
|
|
8451
8462
|
var h;
|
|
8452
8463
|
(h = L.value) == null || h.focus();
|
|
8453
8464
|
};
|
|
@@ -8467,30 +8478,30 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8467
8478
|
M.value === "number" ? +h : h
|
|
8468
8479
|
);
|
|
8469
8480
|
}
|
|
8470
|
-
), (h,
|
|
8471
|
-
|
|
8472
|
-
C.label ? (t(),
|
|
8481
|
+
), (h, P) => (t(), a("fieldset", null, [
|
|
8482
|
+
Z("div", O5, [
|
|
8483
|
+
C.label ? (t(), x(Q1, {
|
|
8473
8484
|
key: 0,
|
|
8474
8485
|
id: C.id,
|
|
8475
8486
|
class: f({
|
|
8476
|
-
textfield__label: !0
|
|
8487
|
+
"r-textfield__label": !0
|
|
8477
8488
|
}),
|
|
8478
8489
|
for: C.id,
|
|
8479
8490
|
text: C.label,
|
|
8480
|
-
onClick:
|
|
8481
|
-
}, null, 8, ["id", "for", "text"])) :
|
|
8482
|
-
|
|
8483
|
-
|
|
8491
|
+
onClick: v
|
|
8492
|
+
}, null, 8, ["id", "for", "text"])) : k("", !0),
|
|
8493
|
+
Z("div", p5, [
|
|
8494
|
+
Z("div", {
|
|
8484
8495
|
class: f(p(m))
|
|
8485
8496
|
}, [
|
|
8486
|
-
|
|
8487
|
-
p(
|
|
8497
|
+
B(h.$slots, "prepend"),
|
|
8498
|
+
p(b) && !h.$slots.prepend ? (t(), x(R, {
|
|
8488
8499
|
key: 0,
|
|
8489
8500
|
class: f(p(o)),
|
|
8490
|
-
name: p(
|
|
8501
|
+
name: p(b),
|
|
8491
8502
|
size: 20
|
|
8492
|
-
}, null, 8, ["class", "name"])) :
|
|
8493
|
-
|
|
8503
|
+
}, null, 8, ["class", "name"])) : k("", !0),
|
|
8504
|
+
Z("input", {
|
|
8494
8505
|
id: C.id,
|
|
8495
8506
|
ref_key: "inputRef",
|
|
8496
8507
|
ref: L,
|
|
@@ -8500,21 +8511,21 @@ const n5 = ["aria-disabled", "aria-selected", "disabled"], r5 = {
|
|
|
8500
8511
|
placeholder: C.placeholder,
|
|
8501
8512
|
type: M.value,
|
|
8502
8513
|
value: A.value,
|
|
8503
|
-
onBlur:
|
|
8504
|
-
onFocus:
|
|
8505
|
-
onInput:
|
|
8506
|
-
}, null, 40,
|
|
8507
|
-
|
|
8508
|
-
p(
|
|
8514
|
+
onBlur: T,
|
|
8515
|
+
onFocus: w,
|
|
8516
|
+
onInput: S
|
|
8517
|
+
}, null, 40, h5),
|
|
8518
|
+
B(h.$slots, "append"),
|
|
8519
|
+
p(c) && !h.$slots.append ? (t(), x(R, {
|
|
8509
8520
|
key: 1,
|
|
8510
8521
|
class: f(p(l)),
|
|
8511
|
-
name: `${p(
|
|
8522
|
+
name: `${p(c)}`,
|
|
8512
8523
|
size: 20,
|
|
8513
8524
|
onClick: O
|
|
8514
|
-
}, null, 8, ["class", "name"])) :
|
|
8525
|
+
}, null, 8, ["class", "name"])) : k("", !0)
|
|
8515
8526
|
], 2),
|
|
8516
|
-
C.errorMsg ? (t(), a("div",
|
|
8517
|
-
!C.errorMsg && C.hint ? (t(), a("div",
|
|
8527
|
+
C.errorMsg ? (t(), a("div", f5, y(C.errorMsg), 1)) : k("", !0),
|
|
8528
|
+
!C.errorMsg && C.hint ? (t(), a("div", g5, y(C.hint), 1)) : k("", !0)
|
|
8518
8529
|
])
|
|
8519
8530
|
])
|
|
8520
8531
|
]));
|
|
@@ -8561,14 +8572,14 @@ function y1(H, V, C) {
|
|
|
8561
8572
|
}
|
|
8562
8573
|
return l;
|
|
8563
8574
|
}
|
|
8564
|
-
const
|
|
8575
|
+
const k5 = async (H, V, C) => {
|
|
8565
8576
|
const { placement: L = "bottom", strategy: A = "absolute", middleware: M = [], platform: i } = C, e = M.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
|
|
8566
|
-
let m = await i.getElementRects({ reference: H, floating: V, strategy: A }), { x: o, y: l } = y1(m, L, d),
|
|
8567
|
-
for (let
|
|
8568
|
-
const { name:
|
|
8569
|
-
o =
|
|
8577
|
+
let m = await i.getElementRects({ reference: H, floating: V, strategy: A }), { x: o, y: l } = y1(m, L, d), n = L, r = {}, u = 0;
|
|
8578
|
+
for (let b = 0; b < e.length; b++) {
|
|
8579
|
+
const { name: c, fn: w } = e[b], { x: T, y: S, data: O, reset: s } = await w({ x: o, y: l, initialPlacement: L, placement: n, strategy: A, middlewareData: r, rects: m, platform: i, elements: { reference: H, floating: V } });
|
|
8580
|
+
o = T ?? o, l = S ?? l, r = { ...r, [c]: { ...r[c], ...O } }, s && u <= 50 && (u++, typeof s == "object" && (s.placement && (n = s.placement), s.rects && (m = s.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: A }) : s.rects), { x: o, y: l } = y1(m, n, d)), b = -1);
|
|
8570
8581
|
}
|
|
8571
|
-
return { x: o, y: l, placement:
|
|
8582
|
+
return { x: o, y: l, placement: n, strategy: A, middlewareData: r };
|
|
8572
8583
|
};
|
|
8573
8584
|
function G1(H) {
|
|
8574
8585
|
return typeof H != "number" ? function(V) {
|
|
@@ -8581,57 +8592,57 @@ function d1(H) {
|
|
|
8581
8592
|
async function t1(H, V) {
|
|
8582
8593
|
var C;
|
|
8583
8594
|
V === void 0 && (V = {});
|
|
8584
|
-
const { x: L, y: A, platform: M, rects: i, elements: e, strategy: d } = H, { boundary: m = "clippingAncestors", rootBoundary: o = "viewport", elementContext: l = "floating", altBoundary:
|
|
8585
|
-
return { top:
|
|
8595
|
+
const { x: L, y: A, platform: M, rects: i, elements: e, strategy: d } = H, { boundary: m = "clippingAncestors", rootBoundary: o = "viewport", elementContext: l = "floating", altBoundary: n = !1, padding: r = 0 } = V, u = G1(r), b = e[n ? l === "floating" ? "reference" : "floating" : l], c = d1(await M.getClippingRect({ element: (C = await (M.isElement == null ? void 0 : M.isElement(b))) == null || C ? b : b.contextElement || await (M.getDocumentElement == null ? void 0 : M.getDocumentElement(e.floating)), boundary: m, rootBoundary: o, strategy: d })), w = d1(M.convertOffsetParentRelativeRectToViewportRelativeRect ? await M.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: l === "floating" ? { ...i.floating, x: L, y: A } : i.reference, offsetParent: await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(e.floating)), strategy: d }) : i[l]);
|
|
8596
|
+
return { top: c.top - w.top + u.top, bottom: w.bottom - c.bottom + u.bottom, left: c.left - w.left + u.left, right: w.right - c.right + u.right };
|
|
8586
8597
|
}
|
|
8587
|
-
const
|
|
8598
|
+
const B5 = Math.min, b5 = Math.max;
|
|
8588
8599
|
function s1(H, V, C) {
|
|
8589
|
-
return
|
|
8600
|
+
return b5(H, B5(V, C));
|
|
8590
8601
|
}
|
|
8591
|
-
const
|
|
8602
|
+
const y5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
8592
8603
|
const { element: C, padding: L = 0 } = H ?? {}, { x: A, y: M, placement: i, rects: e, platform: d } = V;
|
|
8593
8604
|
if (C == null)
|
|
8594
8605
|
return {};
|
|
8595
|
-
const m = G1(L), o = { x: A, y: M }, l = i1(i),
|
|
8596
|
-
let O =
|
|
8597
|
-
O === 0 && (O = e.floating[
|
|
8598
|
-
const
|
|
8599
|
-
return { [l]: o[l] - (_ ?
|
|
8600
|
-
} }),
|
|
8606
|
+
const m = G1(L), o = { x: A, y: M }, l = i1(i), n = o1(i), r = h1(l), u = await d.getDimensions(C), b = l === "y" ? "top" : "left", c = l === "y" ? "bottom" : "right", w = e.reference[r] + e.reference[l] - o[l] - e.floating[r], T = o[l] - e.reference[l], S = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8607
|
+
let O = S ? l === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0;
|
|
8608
|
+
O === 0 && (O = e.floating[r]);
|
|
8609
|
+
const s = w / 2 - T / 2, v = m[b], h = O - u[r] - m[c], P = O / 2 - u[r] / 2 + s, E = s1(v, P, h), _ = (n === "start" ? m[b] : m[c]) > 0 && P !== E && e.reference[r] <= e.floating[r];
|
|
8610
|
+
return { [l]: o[l] - (_ ? P < v ? v - P : h - P : 0), data: { [l]: E, centerOffset: P - E } };
|
|
8611
|
+
} }), w5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8601
8612
|
function m1(H) {
|
|
8602
|
-
return H.replace(/left|right|bottom|top/g, (V) =>
|
|
8613
|
+
return H.replace(/left|right|bottom|top/g, (V) => w5[V]);
|
|
8603
8614
|
}
|
|
8604
|
-
function
|
|
8615
|
+
function P5(H, V, C) {
|
|
8605
8616
|
C === void 0 && (C = !1);
|
|
8606
8617
|
const L = o1(H), A = i1(H), M = h1(A);
|
|
8607
8618
|
let i = A === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
|
|
8608
8619
|
return V.reference[M] > V.floating[M] && (i = m1(i)), { main: i, cross: m1(i) };
|
|
8609
8620
|
}
|
|
8610
|
-
const
|
|
8621
|
+
const T5 = { start: "end", end: "start" };
|
|
8611
8622
|
function w1(H) {
|
|
8612
|
-
return H.replace(/start|end/g, (V) =>
|
|
8623
|
+
return H.replace(/start|end/g, (V) => T5[V]);
|
|
8613
8624
|
}
|
|
8614
8625
|
const z1 = ["top", "right", "bottom", "left"];
|
|
8615
8626
|
z1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
|
|
8616
|
-
const
|
|
8627
|
+
const v5 = function(H) {
|
|
8617
8628
|
return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
|
|
8618
8629
|
var C;
|
|
8619
|
-
const { placement: L, middlewareData: A, rects: M, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: m = !0, crossAxis: o = !0, fallbackPlacements: l, fallbackStrategy:
|
|
8620
|
-
const
|
|
8621
|
-
return [w1(
|
|
8622
|
-
}(i)),
|
|
8630
|
+
const { placement: L, middlewareData: A, rects: M, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: m = !0, crossAxis: o = !0, fallbackPlacements: l, fallbackStrategy: n = "bestFit", flipAlignment: r = !0, ...u } = H, b = A1(L), c = l || (b === i || !r ? [m1(i)] : function(P) {
|
|
8631
|
+
const E = m1(P);
|
|
8632
|
+
return [w1(P), E, w1(E)];
|
|
8633
|
+
}(i)), w = [i, ...c], T = await t1(V, u), S = [];
|
|
8623
8634
|
let O = ((C = A.flip) == null ? void 0 : C.overflows) || [];
|
|
8624
|
-
if (m &&
|
|
8625
|
-
const { main:
|
|
8626
|
-
|
|
8635
|
+
if (m && S.push(T[b]), o) {
|
|
8636
|
+
const { main: P, cross: E } = P5(L, M, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8637
|
+
S.push(T[P], T[E]);
|
|
8627
8638
|
}
|
|
8628
|
-
if (O = [...O, { placement: L, overflows:
|
|
8629
|
-
var
|
|
8630
|
-
const
|
|
8631
|
-
if (
|
|
8632
|
-
return { data: { index:
|
|
8639
|
+
if (O = [...O, { placement: L, overflows: S }], !S.every((P) => P <= 0)) {
|
|
8640
|
+
var s, v;
|
|
8641
|
+
const P = ((s = (v = A.flip) == null ? void 0 : v.index) != null ? s : 0) + 1, E = w[P];
|
|
8642
|
+
if (E)
|
|
8643
|
+
return { data: { index: P, overflows: O }, reset: { placement: E } };
|
|
8633
8644
|
let _ = "bottom";
|
|
8634
|
-
switch (
|
|
8645
|
+
switch (n) {
|
|
8635
8646
|
case "bestFit": {
|
|
8636
8647
|
var h;
|
|
8637
8648
|
const g1 = (h = O.map((e1) => [e1, e1.overflows.filter((C1) => C1 > 0).reduce((C1, J1) => C1 + J1, 0)]).sort((e1, C1) => e1[1] - C1[1])[0]) == null ? void 0 : h[0].placement;
|
|
@@ -8653,7 +8664,7 @@ function P1(H, V) {
|
|
|
8653
8664
|
function T1(H) {
|
|
8654
8665
|
return z1.some((V) => H[V] >= 0);
|
|
8655
8666
|
}
|
|
8656
|
-
const
|
|
8667
|
+
const F5 = function(H) {
|
|
8657
8668
|
let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
|
|
8658
8669
|
return { name: "hide", async fn(L) {
|
|
8659
8670
|
const { rects: A } = L;
|
|
@@ -8670,36 +8681,36 @@ const v5 = function(H) {
|
|
|
8670
8681
|
return {};
|
|
8671
8682
|
}
|
|
8672
8683
|
} };
|
|
8673
|
-
},
|
|
8684
|
+
}, R5 = function(H) {
|
|
8674
8685
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8675
8686
|
const { x: C, y: L } = V, A = await async function(M, i) {
|
|
8676
|
-
const { placement: e, platform: d, elements: m } = M, o = await (d.isRTL == null ? void 0 : d.isRTL(m.floating)), l = A1(e),
|
|
8677
|
-
let { mainAxis:
|
|
8678
|
-
return
|
|
8687
|
+
const { placement: e, platform: d, elements: m } = M, o = await (d.isRTL == null ? void 0 : d.isRTL(m.floating)), l = A1(e), n = o1(e), r = i1(e) === "x", u = ["left", "top"].includes(l) ? -1 : 1, b = o && r ? -1 : 1, c = typeof i == "function" ? i(M) : i;
|
|
8688
|
+
let { mainAxis: w, crossAxis: T, alignmentAxis: S } = typeof c == "number" ? { mainAxis: c, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...c };
|
|
8689
|
+
return n && typeof S == "number" && (T = n === "end" ? -1 * S : S), r ? { x: T * b, y: w * u } : { x: w * u, y: T * b };
|
|
8679
8690
|
}(V, H);
|
|
8680
8691
|
return { x: C + A.x, y: L + A.y, data: A };
|
|
8681
8692
|
} };
|
|
8682
8693
|
};
|
|
8683
|
-
function
|
|
8694
|
+
function x5(H) {
|
|
8684
8695
|
return H === "x" ? "y" : "x";
|
|
8685
8696
|
}
|
|
8686
|
-
const
|
|
8697
|
+
const D5 = function(H) {
|
|
8687
8698
|
return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
|
|
8688
|
-
const { x: C, y: L, placement: A } = V, { mainAxis: M = !0, crossAxis: i = !1, limiter: e = { fn: (
|
|
8689
|
-
let { x:
|
|
8690
|
-
return { x:
|
|
8691
|
-
} }, ...d } = H, m = { x: C, y: L }, o = await t1(V, d), l = i1(A1(A)),
|
|
8692
|
-
let
|
|
8699
|
+
const { x: C, y: L, placement: A } = V, { mainAxis: M = !0, crossAxis: i = !1, limiter: e = { fn: (c) => {
|
|
8700
|
+
let { x: w, y: T } = c;
|
|
8701
|
+
return { x: w, y: T };
|
|
8702
|
+
} }, ...d } = H, m = { x: C, y: L }, o = await t1(V, d), l = i1(A1(A)), n = x5(l);
|
|
8703
|
+
let r = m[l], u = m[n];
|
|
8693
8704
|
if (M) {
|
|
8694
|
-
const
|
|
8695
|
-
|
|
8705
|
+
const c = l === "y" ? "bottom" : "right";
|
|
8706
|
+
r = s1(r + o[l === "y" ? "top" : "left"], r, r - o[c]);
|
|
8696
8707
|
}
|
|
8697
8708
|
if (i) {
|
|
8698
|
-
const
|
|
8699
|
-
|
|
8709
|
+
const c = n === "y" ? "bottom" : "right";
|
|
8710
|
+
u = s1(u + o[n === "y" ? "top" : "left"], u, u - o[c]);
|
|
8700
8711
|
}
|
|
8701
|
-
const
|
|
8702
|
-
return { ...
|
|
8712
|
+
const b = e.fn({ ...V, [l]: r, [n]: u });
|
|
8713
|
+
return { ...b, data: { x: b.x - C, y: b.y - L } };
|
|
8703
8714
|
} };
|
|
8704
8715
|
};
|
|
8705
8716
|
function U1(H) {
|
|
@@ -8733,11 +8744,11 @@ function X(H) {
|
|
|
8733
8744
|
function v1(H) {
|
|
8734
8745
|
return typeof ShadowRoot > "u" ? !1 : H instanceof G(H).ShadowRoot || H instanceof ShadowRoot;
|
|
8735
8746
|
}
|
|
8736
|
-
function
|
|
8747
|
+
function r1(H) {
|
|
8737
8748
|
const { overflow: V, overflowX: C, overflowY: L, display: A } = I(H);
|
|
8738
8749
|
return /auto|scroll|overlay|hidden/.test(V + L + C) && !["inline", "contents"].includes(A);
|
|
8739
8750
|
}
|
|
8740
|
-
function
|
|
8751
|
+
function E5(H) {
|
|
8741
8752
|
return ["table", "td", "th"].includes($(H));
|
|
8742
8753
|
}
|
|
8743
8754
|
function O1(H) {
|
|
@@ -8760,20 +8771,20 @@ function j(H, V, C) {
|
|
|
8760
8771
|
const e = H.getBoundingClientRect();
|
|
8761
8772
|
let d = 1, m = 1;
|
|
8762
8773
|
V && Q(H) && (d = H.offsetWidth > 0 && l1(e.width) / H.offsetWidth || 1, m = H.offsetHeight > 0 && l1(e.height) / H.offsetHeight || 1);
|
|
8763
|
-
const o = X(H) ? G(H) : window, l = !K1() && C,
|
|
8764
|
-
return { width:
|
|
8774
|
+
const o = X(H) ? G(H) : window, l = !K1() && C, n = (e.left + (l && (L = (A = o.visualViewport) == null ? void 0 : A.offsetLeft) != null ? L : 0)) / d, r = (e.top + (l && (M = (i = o.visualViewport) == null ? void 0 : i.offsetTop) != null ? M : 0)) / m, u = e.width / d, b = e.height / m;
|
|
8775
|
+
return { width: u, height: b, top: r, right: n + u, bottom: r + b, left: n, x: n, y: r };
|
|
8765
8776
|
}
|
|
8766
8777
|
function U(H) {
|
|
8767
8778
|
return (V = H, (V instanceof G(V).Node ? H.ownerDocument : H.document) || window.document).documentElement;
|
|
8768
8779
|
var V;
|
|
8769
8780
|
}
|
|
8770
|
-
function
|
|
8781
|
+
function n1(H) {
|
|
8771
8782
|
return X(H) ? { scrollLeft: H.scrollLeft, scrollTop: H.scrollTop } : { scrollLeft: H.pageXOffset, scrollTop: H.pageYOffset };
|
|
8772
8783
|
}
|
|
8773
8784
|
function j1(H) {
|
|
8774
|
-
return j(U(H)).left +
|
|
8785
|
+
return j(U(H)).left + n1(H).scrollLeft;
|
|
8775
8786
|
}
|
|
8776
|
-
function
|
|
8787
|
+
function _5(H, V, C) {
|
|
8777
8788
|
const L = Q(V), A = U(V), M = j(H, L && function(d) {
|
|
8778
8789
|
const m = j(d);
|
|
8779
8790
|
return l1(m.width) !== d.offsetWidth || l1(m.height) !== d.offsetHeight;
|
|
@@ -8781,7 +8792,7 @@ function E5(H, V, C) {
|
|
|
8781
8792
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
8782
8793
|
const e = { x: 0, y: 0 };
|
|
8783
8794
|
if (L || !L && C !== "fixed")
|
|
8784
|
-
if (($(V) !== "body" ||
|
|
8795
|
+
if (($(V) !== "body" || r1(A)) && (i = n1(V)), Q(V)) {
|
|
8785
8796
|
const d = j(V, !0);
|
|
8786
8797
|
e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
|
|
8787
8798
|
} else
|
|
@@ -8800,7 +8811,7 @@ function R1(H) {
|
|
|
8800
8811
|
function x1(H) {
|
|
8801
8812
|
const V = G(H);
|
|
8802
8813
|
let C = R1(H);
|
|
8803
|
-
for (; C &&
|
|
8814
|
+
for (; C && E5(C) && I(C).position === "static"; )
|
|
8804
8815
|
C = R1(C);
|
|
8805
8816
|
return C && ($(C) === "html" || $(C) === "body" && I(C).position === "static" && !O1(C)) ? V : C || function(L) {
|
|
8806
8817
|
let A = M1(L);
|
|
@@ -8814,12 +8825,12 @@ function x1(H) {
|
|
|
8814
8825
|
}
|
|
8815
8826
|
function q1(H) {
|
|
8816
8827
|
const V = M1(H);
|
|
8817
|
-
return f1(V) ? H.ownerDocument.body : Q(V) &&
|
|
8828
|
+
return f1(V) ? H.ownerDocument.body : Q(V) && r1(V) ? V : q1(V);
|
|
8818
8829
|
}
|
|
8819
8830
|
function Y1(H, V) {
|
|
8820
8831
|
var C;
|
|
8821
8832
|
V === void 0 && (V = []);
|
|
8822
|
-
const L = q1(H), A = L === ((C = H.ownerDocument) == null ? void 0 : C.body), M = G(L), i = A ? [M].concat(M.visualViewport || [],
|
|
8833
|
+
const L = q1(H), A = L === ((C = H.ownerDocument) == null ? void 0 : C.body), M = G(L), i = A ? [M].concat(M.visualViewport || [], r1(L) ? L : []) : L, e = V.concat(i);
|
|
8823
8834
|
return A ? e : e.concat(Y1(i));
|
|
8824
8835
|
}
|
|
8825
8836
|
function D1(H, V, C) {
|
|
@@ -8828,8 +8839,8 @@ function D1(H, V, C) {
|
|
|
8828
8839
|
let d = i.clientWidth, m = i.clientHeight, o = 0, l = 0;
|
|
8829
8840
|
if (e) {
|
|
8830
8841
|
d = e.width, m = e.height;
|
|
8831
|
-
const
|
|
8832
|
-
(
|
|
8842
|
+
const n = K1();
|
|
8843
|
+
(n || !n && A === "fixed") && (o = e.offsetLeft, l = e.offsetTop);
|
|
8833
8844
|
}
|
|
8834
8845
|
return { width: d, height: m, x: o, y: l };
|
|
8835
8846
|
}(H, C)) : X(V) ? function(L, A) {
|
|
@@ -8837,21 +8848,21 @@ function D1(H, V, C) {
|
|
|
8837
8848
|
return { top: i, left: e, x: e, y: i, right: e + L.clientWidth, bottom: i + L.clientHeight, width: L.clientWidth, height: L.clientHeight };
|
|
8838
8849
|
}(V, C) : d1(function(L) {
|
|
8839
8850
|
var A;
|
|
8840
|
-
const M = U(L), i =
|
|
8851
|
+
const M = U(L), i = n1(L), e = (A = L.ownerDocument) == null ? void 0 : A.body, d = L1(M.scrollWidth, M.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), m = L1(M.scrollHeight, M.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
|
|
8841
8852
|
let o = -i.scrollLeft + j1(L);
|
|
8842
8853
|
const l = -i.scrollTop;
|
|
8843
8854
|
return I(e || M).direction === "rtl" && (o += L1(M.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: m, x: o, y: l };
|
|
8844
8855
|
}(U(H)));
|
|
8845
8856
|
}
|
|
8846
|
-
const
|
|
8857
|
+
const W5 = { getClippingRect: function(H) {
|
|
8847
8858
|
let { element: V, boundary: C, rootBoundary: L, strategy: A } = H;
|
|
8848
8859
|
const M = C === "clippingAncestors" ? function(m) {
|
|
8849
|
-
let o = Y1(m).filter((
|
|
8850
|
-
const
|
|
8851
|
-
let
|
|
8852
|
-
for (; X(
|
|
8853
|
-
const
|
|
8854
|
-
(
|
|
8860
|
+
let o = Y1(m).filter((u) => X(u) && $(u) !== "body"), l = null;
|
|
8861
|
+
const n = I(m).position === "fixed";
|
|
8862
|
+
let r = n ? M1(m) : m;
|
|
8863
|
+
for (; X(r) && !f1(r); ) {
|
|
8864
|
+
const u = I(r), b = O1(r);
|
|
8865
|
+
(n ? b || l : b || u.position !== "static" || !l || !["absolute", "fixed"].includes(l.position)) ? l = u : o = o.filter((c) => c !== r), r = M1(r);
|
|
8855
8866
|
}
|
|
8856
8867
|
return o;
|
|
8857
8868
|
}(V) : [].concat(C), i = [...M, L], e = i[0], d = i.reduce((m, o) => {
|
|
@@ -8866,7 +8877,7 @@ const _5 = { getClippingRect: function(H) {
|
|
|
8866
8877
|
return V;
|
|
8867
8878
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
8868
8879
|
const e = { x: 0, y: 0 };
|
|
8869
|
-
if ((A || !A && L !== "fixed") && (($(C) !== "body" ||
|
|
8880
|
+
if ((A || !A && L !== "fixed") && (($(C) !== "body" || r1(M)) && (i = n1(C)), Q(C))) {
|
|
8870
8881
|
const d = j(C, !0);
|
|
8871
8882
|
e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
|
|
8872
8883
|
}
|
|
@@ -8879,24 +8890,24 @@ const _5 = { getClippingRect: function(H) {
|
|
|
8879
8890
|
}, getOffsetParent: x1, getDocumentElement: U, async getElementRects(H) {
|
|
8880
8891
|
let { reference: V, floating: C, strategy: L } = H;
|
|
8881
8892
|
const A = this.getOffsetParent || x1, M = this.getDimensions;
|
|
8882
|
-
return { reference:
|
|
8883
|
-
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" },
|
|
8893
|
+
return { reference: _5(V, await A(C), L), floating: { x: 0, y: 0, ...await M(C) } };
|
|
8894
|
+
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, N5 = (H, V, C) => k5(H, V, { platform: W5, ...C });
|
|
8884
8895
|
function S1({ value: H }, { value: V }, { value: C }, L, A, M) {
|
|
8885
|
-
!H || !V ||
|
|
8896
|
+
!H || !V || N5(H, V, {
|
|
8886
8897
|
placement: L,
|
|
8887
8898
|
middleware: [
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8899
|
+
R5(A),
|
|
8900
|
+
D5({ padding: M }),
|
|
8901
|
+
y5({ element: C }),
|
|
8902
|
+
v5(),
|
|
8903
|
+
F5()
|
|
8893
8904
|
]
|
|
8894
8905
|
}).then(({ x: i, y: e, placement: d, middlewareData: m }) => {
|
|
8895
8906
|
if (Object.assign(V.style, {
|
|
8896
8907
|
left: `${i}px`,
|
|
8897
8908
|
top: `${e}px`
|
|
8898
8909
|
}), C && m.arrow) {
|
|
8899
|
-
const { x: o, y: l } = m.arrow,
|
|
8910
|
+
const { x: o, y: l } = m.arrow, n = {
|
|
8900
8911
|
top: "bottom",
|
|
8901
8912
|
right: "left",
|
|
8902
8913
|
bottom: "top",
|
|
@@ -8908,13 +8919,13 @@ function S1({ value: H }, { value: V }, { value: C }, L, A, M) {
|
|
|
8908
8919
|
top: e != null ? `${l}px` : "",
|
|
8909
8920
|
right: "",
|
|
8910
8921
|
bottom: "",
|
|
8911
|
-
[`${
|
|
8922
|
+
[`${n}`]: "-4px"
|
|
8912
8923
|
});
|
|
8913
8924
|
}
|
|
8914
8925
|
});
|
|
8915
8926
|
}
|
|
8916
8927
|
var X1 = /* @__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))(X1 || {}), z = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(z || {});
|
|
8917
|
-
const
|
|
8928
|
+
const I5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], Q5 = ["innerHTML"], G5 = /* @__PURE__ */ F({
|
|
8918
8929
|
__name: "RTooltip",
|
|
8919
8930
|
props: {
|
|
8920
8931
|
placement: { default: X1.Top },
|
|
@@ -8936,13 +8947,13 @@ const N5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8936
8947
|
emits: ["show", "hide"],
|
|
8937
8948
|
setup(H, { emit: V }) {
|
|
8938
8949
|
const C = H;
|
|
8939
|
-
|
|
8940
|
-
"271323d4": p(
|
|
8950
|
+
e2((c) => ({
|
|
8951
|
+
"271323d4": p(b)
|
|
8941
8952
|
}));
|
|
8942
|
-
const L =
|
|
8953
|
+
const L = D(null), A = D(null), M = D(null);
|
|
8943
8954
|
function i() {
|
|
8944
|
-
const { placement:
|
|
8945
|
-
|
|
8955
|
+
const { placement: c, offset: w, padding: T, disabled: S } = C;
|
|
8956
|
+
S || (A.value.style.display = "block", V("show"), S1(L, A, M, c, w, T), d(), C.outsideClick && m("add"));
|
|
8946
8957
|
}
|
|
8947
8958
|
function e() {
|
|
8948
8959
|
A.value.style.display = "", V("hide"), C.outsideClick && m("remove");
|
|
@@ -8951,64 +8962,64 @@ const N5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8951
8962
|
C.autoHide && setTimeout(() => {
|
|
8952
8963
|
e();
|
|
8953
8964
|
}, C.hideDelay);
|
|
8954
|
-
}, m = (
|
|
8955
|
-
|
|
8965
|
+
}, m = (c) => {
|
|
8966
|
+
c === "add" && document.addEventListener("click", e), c === "remove" && document.removeEventListener("click", e);
|
|
8956
8967
|
}, o = () => {
|
|
8957
8968
|
C.disabled || C.triggers == z.Click && (A.value.style.display === "block" ? e() : i());
|
|
8958
8969
|
}, l = () => {
|
|
8959
8970
|
C.disabled || C.triggers === z.Hover && i();
|
|
8960
|
-
},
|
|
8971
|
+
}, n = () => {
|
|
8961
8972
|
if (!C.disabled)
|
|
8962
8973
|
if (A.value.style.display === "" && C.triggers === z.Hover) {
|
|
8963
8974
|
i();
|
|
8964
8975
|
return;
|
|
8965
8976
|
} else
|
|
8966
8977
|
A.value.style.display !== "" && C.triggers === z.Hover && e();
|
|
8967
|
-
},
|
|
8968
|
-
const { placement:
|
|
8969
|
-
|
|
8970
|
-
},
|
|
8978
|
+
}, r = () => {
|
|
8979
|
+
const { placement: c, offset: w, padding: T, disabled: S } = C;
|
|
8980
|
+
S || C.triggers === z.Hover && S1(L, A, M, c, w, T);
|
|
8981
|
+
}, u = g(() => ({
|
|
8971
8982
|
tooltip: !0,
|
|
8972
8983
|
"tooltip--dark": C.dark,
|
|
8973
8984
|
"tooltip--light": C.light
|
|
8974
8985
|
}));
|
|
8975
8986
|
window.onresize = () => {
|
|
8976
|
-
const { placement:
|
|
8977
|
-
|
|
8978
|
-
},
|
|
8987
|
+
const { placement: c, offset: w, padding: T, disabled: S } = C;
|
|
8988
|
+
S || C.resizable && S1(L, A, M, c, w, T);
|
|
8989
|
+
}, d2(
|
|
8979
8990
|
() => {
|
|
8980
8991
|
C.disabled || C.shown && C.triggers === z.Manual && i();
|
|
8981
8992
|
},
|
|
8982
8993
|
{ flush: "post" }
|
|
8983
8994
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8984
8995
|
);
|
|
8985
|
-
const
|
|
8986
|
-
return (
|
|
8987
|
-
|
|
8996
|
+
const b = g(() => `${C.showDelay}ms`);
|
|
8997
|
+
return (c, w) => (t(), a(K, null, [
|
|
8998
|
+
Z("div", {
|
|
8988
8999
|
ref_key: "trigger",
|
|
8989
9000
|
ref: L,
|
|
8990
9001
|
"aria-disabled": C.disabled,
|
|
8991
9002
|
class: "trigger",
|
|
8992
9003
|
onClick: N(o, ["stop"]),
|
|
8993
9004
|
onMouseenter: N(l, ["stop"]),
|
|
8994
|
-
onMouseleave: N(
|
|
8995
|
-
onMousemove: N(
|
|
9005
|
+
onMouseleave: N(n, ["stop"]),
|
|
9006
|
+
onMousemove: N(r, ["stop"])
|
|
8996
9007
|
}, [
|
|
8997
|
-
|
|
8998
|
-
|
|
9008
|
+
B(c.$slots, "trigger", {}, void 0, !0),
|
|
9009
|
+
c.$slots.trigger ? k("", !0) : (t(), a("div", {
|
|
8999
9010
|
key: 0,
|
|
9000
9011
|
innerHTML: C.triggerContent
|
|
9001
|
-
}, null, 8,
|
|
9002
|
-
], 40,
|
|
9003
|
-
|
|
9012
|
+
}, null, 8, Q5))
|
|
9013
|
+
], 40, I5),
|
|
9014
|
+
Z("div", {
|
|
9004
9015
|
id: "tooltip",
|
|
9005
9016
|
ref_key: "tooltip",
|
|
9006
9017
|
ref: A,
|
|
9007
|
-
class: f(p(
|
|
9018
|
+
class: f(p(u)),
|
|
9008
9019
|
role: "tooltip"
|
|
9009
9020
|
}, [
|
|
9010
|
-
|
|
9011
|
-
|
|
9021
|
+
B(c.$slots, "content", {}, void 0, !0),
|
|
9022
|
+
c.$slots.content ? k("", !0) : (t(), a("div", {
|
|
9012
9023
|
key: 0,
|
|
9013
9024
|
class: f({
|
|
9014
9025
|
tooltip__content: !0,
|
|
@@ -9016,7 +9027,7 @@ const N5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
9016
9027
|
"tooltip__content--light": C.light
|
|
9017
9028
|
})
|
|
9018
9029
|
}, y(C.text), 3)),
|
|
9019
|
-
|
|
9030
|
+
c.$slots.content ? k("", !0) : (t(), a("div", {
|
|
9020
9031
|
key: 1,
|
|
9021
9032
|
id: "arrow",
|
|
9022
9033
|
ref_key: "arrowElement",
|
|
@@ -9031,15 +9042,15 @@ const N5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
9031
9042
|
], 64));
|
|
9032
9043
|
}
|
|
9033
9044
|
});
|
|
9034
|
-
const
|
|
9045
|
+
const z5 = (H, V) => {
|
|
9035
9046
|
const C = H.__vccOpts || H;
|
|
9036
9047
|
for (const [L, A] of V)
|
|
9037
9048
|
C[L] = A;
|
|
9038
9049
|
return C;
|
|
9039
|
-
},
|
|
9050
|
+
}, k3 = /* @__PURE__ */ z5(G5, [["__scopeId", "data-v-ee5f5651"]]), U5 = { class: "r-breadcrumb" }, $5 = {
|
|
9040
9051
|
key: 0,
|
|
9041
9052
|
class: "r-breadcrumb__title"
|
|
9042
|
-
},
|
|
9053
|
+
}, B3 = /* @__PURE__ */ F({
|
|
9043
9054
|
__name: "RBreadcrumb",
|
|
9044
9055
|
props: {
|
|
9045
9056
|
items: { default: () => [] },
|
|
@@ -9048,8 +9059,8 @@ const G5 = (H, V) => {
|
|
|
9048
9059
|
setup(H) {
|
|
9049
9060
|
const V = H;
|
|
9050
9061
|
return (C, L) => {
|
|
9051
|
-
const A =
|
|
9052
|
-
return t(), a("div",
|
|
9062
|
+
const A = t2("router-link");
|
|
9063
|
+
return t(), a("div", U5, [
|
|
9053
9064
|
(t(!0), a(K, null, Y(V.items, (M, i) => (t(), a("div", {
|
|
9054
9065
|
key: i,
|
|
9055
9066
|
class: "r-breadcrumb__item"
|
|
@@ -9059,42 +9070,42 @@ const G5 = (H, V) => {
|
|
|
9059
9070
|
to: M.to
|
|
9060
9071
|
}, {
|
|
9061
9072
|
default: _1(() => [
|
|
9062
|
-
|
|
9063
|
-
M.icon ? (t(), R
|
|
9073
|
+
B(C.$slots, "item-icon", {}, () => [
|
|
9074
|
+
M.icon ? (t(), x(R, {
|
|
9064
9075
|
key: 0,
|
|
9065
9076
|
name: M.icon
|
|
9066
|
-
}, null, 8, ["name"])) :
|
|
9077
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
9067
9078
|
]),
|
|
9068
|
-
M.onlyIcon ?
|
|
9079
|
+
M.onlyIcon ? k("", !0) : (t(), a("span", $5, y(M.title), 1))
|
|
9069
9080
|
]),
|
|
9070
9081
|
_: 2
|
|
9071
9082
|
}, 1032, ["to"]),
|
|
9072
|
-
|
|
9073
|
-
i !== H.items.length - 1 && V.seperator ? (t(), R
|
|
9083
|
+
B(C.$slots, "custom-seperator", {}, () => [
|
|
9084
|
+
i !== H.items.length - 1 && V.seperator ? (t(), x(R, {
|
|
9074
9085
|
key: 0,
|
|
9075
9086
|
class: "r-breadcrumb__separator",
|
|
9076
9087
|
name: V.seperator
|
|
9077
|
-
}, null, 8, ["name"])) :
|
|
9088
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
9078
9089
|
])
|
|
9079
9090
|
]))), 128))
|
|
9080
9091
|
]);
|
|
9081
9092
|
};
|
|
9082
9093
|
}
|
|
9083
|
-
}),
|
|
9094
|
+
}), K5 = { class: "r-pagination" }, j5 = { class: "r-pagination__page-info" }, q5 = { key: 0 }, Y5 = { class: "r-pagination__page-info__current-page" }, X5 = { class: "r-pagination__page-info__total-pages" }, J5 = { class: "r-pagination__paginator" }, C3 = ["disabled"], H3 = /* @__PURE__ */ Z("path", {
|
|
9084
9095
|
d: "M0 0h24v24H0z",
|
|
9085
9096
|
fill: "none",
|
|
9086
9097
|
stroke: "none"
|
|
9087
|
-
}, null, -1),
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
],
|
|
9098
|
+
}, null, -1), V3 = /* @__PURE__ */ Z("path", { d: "M15 6l-6 6l6 6" }, null, -1), L3 = [
|
|
9099
|
+
H3,
|
|
9100
|
+
V3
|
|
9101
|
+
], M3 = ["max", "value"], A3 = ["disabled"], i3 = /* @__PURE__ */ Z("path", {
|
|
9091
9102
|
d: "M0 0h24v24H0z",
|
|
9092
9103
|
fill: "none",
|
|
9093
9104
|
stroke: "none"
|
|
9094
|
-
}, null, -1),
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
],
|
|
9105
|
+
}, null, -1), e3 = /* @__PURE__ */ Z("path", { d: "M9 6l6 6l-6 6" }, null, -1), d3 = [
|
|
9106
|
+
i3,
|
|
9107
|
+
e3
|
|
9108
|
+
], t3 = { class: "r-pagination__paginator__total" }, b3 = /* @__PURE__ */ F({
|
|
9098
9109
|
__name: "RPagination",
|
|
9099
9110
|
props: {
|
|
9100
9111
|
page: { default: 1 },
|
|
@@ -9106,23 +9117,23 @@ const G5 = (H, V) => {
|
|
|
9106
9117
|
},
|
|
9107
9118
|
emits: ["update:page"],
|
|
9108
9119
|
setup(H, { emit: V }) {
|
|
9109
|
-
const C = H, L =
|
|
9120
|
+
const C = H, L = g(() => Math.ceil(C.totalItems / C.perPage)), A = (M) => {
|
|
9110
9121
|
M < 1 || M > L.value || V("update:page", M);
|
|
9111
9122
|
};
|
|
9112
|
-
return (M, i) => (t(), a("div",
|
|
9113
|
-
|
|
9114
|
-
H.slash ?
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9123
|
+
return (M, i) => (t(), a("div", K5, [
|
|
9124
|
+
Z("div", j5, [
|
|
9125
|
+
H.slash ? k("", !0) : (t(), a("span", q5, y(C.pageText), 1)),
|
|
9126
|
+
Z("span", Y5, y(C.page), 1),
|
|
9127
|
+
Z("span", null, y(H.slash ? "/" : C.ofText), 1),
|
|
9128
|
+
Z("span", X5, y(p(L)), 1)
|
|
9118
9129
|
]),
|
|
9119
|
-
|
|
9120
|
-
|
|
9130
|
+
Z("div", J5, [
|
|
9131
|
+
Z("button", {
|
|
9121
9132
|
class: "r-pagination__paginator__prev",
|
|
9122
9133
|
disabled: C.page === 1,
|
|
9123
9134
|
onClick: i[0] || (i[0] = (e) => A(+C.page - 1))
|
|
9124
9135
|
}, [
|
|
9125
|
-
|
|
9136
|
+
B(M.$slots, "prev", {}, () => [
|
|
9126
9137
|
(t(), a("svg", {
|
|
9127
9138
|
class: f({ "stroke-gray-400": C.page === 1 }),
|
|
9128
9139
|
fill: "none",
|
|
@@ -9134,10 +9145,10 @@ const G5 = (H, V) => {
|
|
|
9134
9145
|
viewBox: "0 0 24 24",
|
|
9135
9146
|
width: "16",
|
|
9136
9147
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9137
|
-
},
|
|
9148
|
+
}, L3, 2))
|
|
9138
9149
|
])
|
|
9139
|
-
], 8,
|
|
9140
|
-
|
|
9150
|
+
], 8, C3),
|
|
9151
|
+
Z("input", {
|
|
9141
9152
|
class: "r-pagination__paginator__input",
|
|
9142
9153
|
max: p(L),
|
|
9143
9154
|
min: "1",
|
|
@@ -9147,13 +9158,13 @@ const G5 = (H, V) => {
|
|
|
9147
9158
|
var d;
|
|
9148
9159
|
return A(+((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
|
|
9149
9160
|
})
|
|
9150
|
-
}, null, 40,
|
|
9151
|
-
|
|
9161
|
+
}, null, 40, M3),
|
|
9162
|
+
Z("button", {
|
|
9152
9163
|
class: "r-pagination__paginator__next",
|
|
9153
9164
|
disabled: C.page === p(L),
|
|
9154
9165
|
onClick: i[2] || (i[2] = (e) => A(+C.page + 1))
|
|
9155
9166
|
}, [
|
|
9156
|
-
|
|
9167
|
+
B(M.$slots, "next", {}, () => [
|
|
9157
9168
|
(t(), a("svg", {
|
|
9158
9169
|
class: f({ "stroke-gray-400": C.page === p(L) }),
|
|
9159
9170
|
fill: "none",
|
|
@@ -9165,14 +9176,14 @@ const G5 = (H, V) => {
|
|
|
9165
9176
|
viewBox: "0 0 24 24",
|
|
9166
9177
|
width: "16",
|
|
9167
9178
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9168
|
-
},
|
|
9179
|
+
}, d3, 2))
|
|
9169
9180
|
])
|
|
9170
|
-
], 8,
|
|
9171
|
-
|
|
9181
|
+
], 8, A3),
|
|
9182
|
+
Z("div", t3, "/ " + y(p(L)), 1)
|
|
9172
9183
|
])
|
|
9173
9184
|
]));
|
|
9174
9185
|
}
|
|
9175
|
-
}),
|
|
9186
|
+
}), m3 = ["value"], y3 = /* @__PURE__ */ F({
|
|
9176
9187
|
__name: "RProgressbar",
|
|
9177
9188
|
props: {
|
|
9178
9189
|
value: { default: 0 },
|
|
@@ -9187,9 +9198,9 @@ const G5 = (H, V) => {
|
|
|
9187
9198
|
role: "progressbar",
|
|
9188
9199
|
style: p1({ height: V.height + "px" }),
|
|
9189
9200
|
value: V.value
|
|
9190
|
-
}, null, 12,
|
|
9201
|
+
}, null, 12, m3));
|
|
9191
9202
|
}
|
|
9192
|
-
}),
|
|
9203
|
+
}), w3 = /* @__PURE__ */ F({
|
|
9193
9204
|
__name: "RItemGroup",
|
|
9194
9205
|
props: {
|
|
9195
9206
|
modelValue: { default: () => [] },
|
|
@@ -9202,16 +9213,16 @@ const G5 = (H, V) => {
|
|
|
9202
9213
|
},
|
|
9203
9214
|
emits: ["update:modelValue"],
|
|
9204
9215
|
setup(H, { emit: V }) {
|
|
9205
|
-
const C = H, L = "rocket-ui:r-item-group", A =
|
|
9216
|
+
const C = H, L = "rocket-ui:r-item-group", A = D(C.as ?? "div"), M = D(C.modelValue ?? []), i = g(() => C.selectedClass);
|
|
9206
9217
|
a1(`${L}:selectedClass`, i.value);
|
|
9207
9218
|
const e = (m) => M.value.includes(m);
|
|
9208
9219
|
a1(`${L}:isSelected`, e);
|
|
9209
9220
|
const d = (m, o) => {
|
|
9210
9221
|
C.disabled || C.mandatory && M.value.length === 1 && o || C.max && M.value.length === C.max && o || (C.multiple ? o ? M.value.push(m) : M.value = M.value.filter((l) => l !== m) : M.value = o ? [m] : [], V("update:modelValue", M.value));
|
|
9211
9222
|
};
|
|
9212
|
-
return a1(`${L}:select`, d), (m, o) => (t(),
|
|
9223
|
+
return a1(`${L}:select`, d), (m, o) => (t(), x(m2(A.value), null, {
|
|
9213
9224
|
default: _1(() => [
|
|
9214
|
-
|
|
9225
|
+
B(m.$slots, "default", {
|
|
9215
9226
|
isSelected: e,
|
|
9216
9227
|
select: d,
|
|
9217
9228
|
selected: M.value
|
|
@@ -9220,7 +9231,7 @@ const G5 = (H, V) => {
|
|
|
9220
9231
|
_: 3
|
|
9221
9232
|
}));
|
|
9222
9233
|
}
|
|
9223
|
-
}),
|
|
9234
|
+
}), P3 = /* @__PURE__ */ F({
|
|
9224
9235
|
__name: "RItem",
|
|
9225
9236
|
props: {
|
|
9226
9237
|
value: { default: null },
|
|
@@ -9228,12 +9239,12 @@ const G5 = (H, V) => {
|
|
|
9228
9239
|
selectedClass: { default: "" }
|
|
9229
9240
|
},
|
|
9230
9241
|
setup(H) {
|
|
9231
|
-
const V = H, C = "rocket-ui:r-item-group", L = Z1(`${C}:isSelected`), A = Z1(`${C}:selectedClass`, ""), M =
|
|
9242
|
+
const V = H, C = "rocket-ui:r-item-group", L = Z1(`${C}:isSelected`), A = Z1(`${C}:selectedClass`, ""), M = g(() => L(V.value) && [A, V.selectedClass]), i = Z1(`${C}:select`), e = () => {
|
|
9232
9243
|
V.disabled || i(V.value, !L(V.value));
|
|
9233
9244
|
}, d = () => {
|
|
9234
9245
|
V.disabled || i(V.value, !0);
|
|
9235
9246
|
};
|
|
9236
|
-
return (m, o) =>
|
|
9247
|
+
return (m, o) => B(m.$slots, "default", {
|
|
9237
9248
|
disabled: V.disabled,
|
|
9238
9249
|
isSelected: p(L)(V.value),
|
|
9239
9250
|
select: d,
|
|
@@ -9244,28 +9255,28 @@ const G5 = (H, V) => {
|
|
|
9244
9255
|
}
|
|
9245
9256
|
});
|
|
9246
9257
|
export {
|
|
9247
|
-
|
|
9248
|
-
|
|
9258
|
+
o3 as RAccordion,
|
|
9259
|
+
r3 as RAlert,
|
|
9249
9260
|
n3 as RAvatar,
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9261
|
+
a3 as RBadge,
|
|
9262
|
+
B3 as RBreadcrumb,
|
|
9263
|
+
Z3 as RButton,
|
|
9264
|
+
u3 as RCheckbox,
|
|
9265
|
+
D2 as RChip,
|
|
9266
|
+
S3 as RDropdown,
|
|
9267
|
+
R as RIcon,
|
|
9268
|
+
P3 as RItem,
|
|
9269
|
+
w3 as RItemGroup,
|
|
9259
9270
|
Q1 as RLabel,
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
+
c3 as RModal,
|
|
9272
|
+
b3 as RPagination,
|
|
9273
|
+
y3 as RProgressbar,
|
|
9274
|
+
s3 as RSidebar,
|
|
9275
|
+
O3 as RSnackbar,
|
|
9276
|
+
p3 as RSwitch,
|
|
9277
|
+
Z5 as RTabItem,
|
|
9278
|
+
h3 as RTabs,
|
|
9279
|
+
f3 as RTextArea,
|
|
9280
|
+
g3 as RTextfield,
|
|
9281
|
+
k3 as RTooltip
|
|
9271
9282
|
};
|