@rocketui/vue 0.0.24 → 0.0.26
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 +378 -339
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +2 -2
- package/dist/types/main.d.ts +2 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P,
|
|
1
|
+
import { defineComponent as P, openBlock as m, createElementBlock as a, createElementVNode as Z, unref as h, reactive as X, Fragment as z, renderList as q, normalizeClass as p, toDisplayString as w, createVNode as J, computed as g, renderSlot as y, createBlock as T, createCommentVNode as B, mergeProps as G1, withModifiers as _, watch as $, ref as D, withDirectives as P1, withKeys as s1, vModelText as z1, vShow as U1, onMounted as $1, withCtx as T1, createTextVNode as K1, useCssVars as j1, watchEffect as q1, resolveComponent as Y1 } from "vue";
|
|
2
2
|
const X1 = {
|
|
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",
|
|
@@ -7296,41 +7296,34 @@ const X1 = {
|
|
|
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
|
-
}, J1 = ["width", "height", "viewBox"], C2 = ["d"],
|
|
7299
|
+
}, J1 = ["width", "height", "viewBox"], C2 = ["d"], F = /* @__PURE__ */ P({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
7303
7303
|
size: { default: 24 },
|
|
7304
|
-
viewBox: { default: "0 0 24 24" }
|
|
7305
|
-
flip: { default: "none" },
|
|
7306
|
-
rotate: { default: 0 }
|
|
7304
|
+
viewBox: { default: "0 0 24 24" }
|
|
7307
7305
|
},
|
|
7308
7306
|
setup(H) {
|
|
7309
|
-
const V = H
|
|
7310
|
-
|
|
7311
|
-
"--sy": ["both", "vertical"].includes(V.flip) ? "-1" : "1",
|
|
7312
|
-
"--r": V.rotate + "deg"
|
|
7313
|
-
}));
|
|
7314
|
-
return (M, L) => (o(), Z("svg", {
|
|
7307
|
+
const V = H;
|
|
7308
|
+
return (C, M) => (m(), a("svg", {
|
|
7315
7309
|
class: "r-icon",
|
|
7316
7310
|
width: V.size,
|
|
7317
7311
|
height: V.size,
|
|
7318
|
-
viewBox: V.viewBox
|
|
7319
|
-
style: Q1(h(C))
|
|
7312
|
+
viewBox: V.viewBox
|
|
7320
7313
|
}, [
|
|
7321
|
-
|
|
7314
|
+
Z("path", {
|
|
7322
7315
|
d: h(X1)[V.name]
|
|
7323
7316
|
}, null, 8, C2)
|
|
7324
|
-
],
|
|
7317
|
+
], 8, J1));
|
|
7325
7318
|
}
|
|
7326
7319
|
});
|
|
7327
|
-
const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accordion__icon" }, M2 = { class: "accordion__content" },
|
|
7320
|
+
const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accordion__icon" }, M2 = { class: "accordion__content" }, F5 = /* @__PURE__ */ P({
|
|
7328
7321
|
__name: "RAccordion",
|
|
7329
7322
|
props: {
|
|
7330
7323
|
accordions: null
|
|
7331
7324
|
},
|
|
7332
7325
|
setup(H) {
|
|
7333
|
-
const V = H, C =
|
|
7326
|
+
const V = H, C = X(
|
|
7334
7327
|
V.accordions.map(({ title: L, content: A }, i) => ({
|
|
7335
7328
|
title: L,
|
|
7336
7329
|
content: A,
|
|
@@ -7343,7 +7336,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7343
7336
|
C[i].open = i === L ? !C[i].open : !1;
|
|
7344
7337
|
});
|
|
7345
7338
|
}
|
|
7346
|
-
return (L, A) => (
|
|
7339
|
+
return (L, A) => (m(!0), a(z, null, q(C, (i, e) => (m(), a("div", {
|
|
7347
7340
|
key: e,
|
|
7348
7341
|
class: p({
|
|
7349
7342
|
accordion: !0,
|
|
@@ -7351,26 +7344,26 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7351
7344
|
"accordion--disabled": i.disabled
|
|
7352
7345
|
})
|
|
7353
7346
|
}, [
|
|
7354
|
-
|
|
7347
|
+
Z("div", {
|
|
7355
7348
|
class: "accordion__header",
|
|
7356
7349
|
onClick: (d) => M(e)
|
|
7357
7350
|
}, [
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7351
|
+
Z("div", V2, w(i.title), 1),
|
|
7352
|
+
Z("div", L2, [
|
|
7353
|
+
J(F, {
|
|
7361
7354
|
name: i.open ? "mdiChevronDown" : "mdiChevronUp"
|
|
7362
7355
|
}, null, 8, ["name"])
|
|
7363
7356
|
])
|
|
7364
7357
|
], 8, H2),
|
|
7365
|
-
|
|
7366
|
-
|
|
7358
|
+
Z("div", M2, [
|
|
7359
|
+
Z("span", null, w(i.content), 1)
|
|
7367
7360
|
])
|
|
7368
7361
|
], 2))), 128));
|
|
7369
7362
|
}
|
|
7370
7363
|
}), A2 = { class: "icon" }, i2 = { class: "texts" }, e2 = { class: "texts__title" }, d2 = { class: "texts__description" }, t2 = {
|
|
7371
7364
|
key: 0,
|
|
7372
7365
|
class: "close"
|
|
7373
|
-
},
|
|
7366
|
+
}, v5 = /* @__PURE__ */ P({
|
|
7374
7367
|
__name: "RAlert",
|
|
7375
7368
|
props: {
|
|
7376
7369
|
type: { default: "info" },
|
|
@@ -7399,31 +7392,32 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7399
7392
|
})[C.size]), i = () => {
|
|
7400
7393
|
V("close");
|
|
7401
7394
|
};
|
|
7402
|
-
return (e, d) => (
|
|
7395
|
+
return (e, d) => (m(), a("div", {
|
|
7403
7396
|
class: p(h(M))
|
|
7404
7397
|
}, [
|
|
7405
|
-
|
|
7406
|
-
|
|
7398
|
+
Z("div", A2, [
|
|
7399
|
+
J(F, {
|
|
7407
7400
|
name: h(L),
|
|
7408
7401
|
size: h(A)
|
|
7409
7402
|
}, null, 8, ["name", "size"])
|
|
7410
7403
|
]),
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7404
|
+
Z("div", i2, [
|
|
7405
|
+
Z("p", e2, w(C.title), 1),
|
|
7406
|
+
Z("p", d2, w(C.description), 1)
|
|
7414
7407
|
]),
|
|
7415
|
-
C.closable ? (
|
|
7416
|
-
|
|
7408
|
+
C.closable ? (m(), a("div", t2, [
|
|
7409
|
+
y(e.$slots, "custom-close"),
|
|
7410
|
+
e.$slots.close ? B("", !0) : (m(), T(F, {
|
|
7417
7411
|
key: 0,
|
|
7418
7412
|
class: "close__button",
|
|
7419
7413
|
name: "close",
|
|
7420
7414
|
size: "16",
|
|
7421
7415
|
onClick: i
|
|
7422
7416
|
}))
|
|
7423
|
-
])) :
|
|
7417
|
+
])) : B("", !0)
|
|
7424
7418
|
], 2));
|
|
7425
7419
|
}
|
|
7426
|
-
}), O1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", m2 = { class: "avatar__wrapper" }, l2 = ["alt", "src"],
|
|
7420
|
+
}), O1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", m2 = { class: "avatar__wrapper" }, l2 = ["alt", "src"], R5 = /* @__PURE__ */ P({
|
|
7427
7421
|
__name: "RAvatar",
|
|
7428
7422
|
props: {
|
|
7429
7423
|
type: { default: "image" },
|
|
@@ -7441,14 +7435,14 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7441
7435
|
const e = i.split(" ");
|
|
7442
7436
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7443
7437
|
};
|
|
7444
|
-
return (i, e) => (
|
|
7445
|
-
|
|
7438
|
+
return (i, e) => (m(), a("div", m2, [
|
|
7439
|
+
Z("div", {
|
|
7446
7440
|
class: p(h(C))
|
|
7447
7441
|
}, [
|
|
7448
|
-
V.type === "text" ? (
|
|
7442
|
+
V.type === "text" ? (m(), a("p", {
|
|
7449
7443
|
key: 0,
|
|
7450
7444
|
class: p({ avatar__text: !0, [`avatar__text--${V.size}`]: !0 })
|
|
7451
|
-
},
|
|
7445
|
+
}, w(A(V.text)), 3)) : (m(), a("img", {
|
|
7452
7446
|
key: 1,
|
|
7453
7447
|
alt: V.alt,
|
|
7454
7448
|
class: p({
|
|
@@ -7459,13 +7453,13 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7459
7453
|
src: h(L)
|
|
7460
7454
|
}, null, 10, l2))
|
|
7461
7455
|
], 2),
|
|
7462
|
-
V.online ? (
|
|
7456
|
+
V.online ? (m(), a("span", {
|
|
7463
7457
|
key: 0,
|
|
7464
7458
|
class: p({ avatar__online: !0, [`avatar__online--${V.size}`]: !0 })
|
|
7465
|
-
}, null, 2)) :
|
|
7459
|
+
}, null, 2)) : B("", !0)
|
|
7466
7460
|
]));
|
|
7467
7461
|
}
|
|
7468
|
-
}), o2 = { class: "badge-wrapper group" },
|
|
7462
|
+
}), o2 = { class: "badge-wrapper group" }, x5 = /* @__PURE__ */ P({
|
|
7469
7463
|
__name: "RBadge",
|
|
7470
7464
|
props: {
|
|
7471
7465
|
variant: { default: "primary" },
|
|
@@ -7487,11 +7481,11 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7487
7481
|
"badge--no-content": !V.content,
|
|
7488
7482
|
[`badge--${V.variant}`]: V.variant
|
|
7489
7483
|
}));
|
|
7490
|
-
return (M, L) => (
|
|
7491
|
-
|
|
7484
|
+
return (M, L) => (m(), a("div", o2, [
|
|
7485
|
+
Z("span", {
|
|
7492
7486
|
class: p(h(C)),
|
|
7493
7487
|
onClick: L[0] || (L[0] = (A) => M.$emit("click"))
|
|
7494
|
-
},
|
|
7488
|
+
}, w(V.content), 3),
|
|
7495
7489
|
y(M.$slots, "default")
|
|
7496
7490
|
]));
|
|
7497
7491
|
}
|
|
@@ -7529,14 +7523,14 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7529
7523
|
height: i ? `${i}px` : ""
|
|
7530
7524
|
};
|
|
7531
7525
|
});
|
|
7532
|
-
return (A, i) => (
|
|
7526
|
+
return (A, i) => (m(), a("button", G1(A.$attrs, {
|
|
7533
7527
|
class: h(C),
|
|
7534
7528
|
disabled: H.disabled || H.loading,
|
|
7535
7529
|
style: h(L),
|
|
7536
|
-
onClick: i[0] || (i[0] =
|
|
7530
|
+
onClick: i[0] || (i[0] = _((e) => A.$emit("click"), ["stop"]))
|
|
7537
7531
|
}), [
|
|
7538
7532
|
y(A.$slots, "custom-icon"),
|
|
7539
|
-
!A.$slots["custom-icon"] && V.prependIcon ? (
|
|
7533
|
+
!A.$slots["custom-icon"] && V.prependIcon ? (m(), T(F, {
|
|
7540
7534
|
key: 0,
|
|
7541
7535
|
class: p({
|
|
7542
7536
|
"button__prepend-icon": !0,
|
|
@@ -7544,14 +7538,14 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7544
7538
|
}),
|
|
7545
7539
|
name: V.prependIcon,
|
|
7546
7540
|
size: h(M)
|
|
7547
|
-
}, null, 8, ["class", "name", "size"])) :
|
|
7548
|
-
V.onlyIcon ?
|
|
7549
|
-
!A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (
|
|
7541
|
+
}, null, 8, ["class", "name", "size"])) : B("", !0),
|
|
7542
|
+
V.onlyIcon ? B("", !0) : y(A.$slots, "default", { key: 1 }),
|
|
7543
|
+
!A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (m(), T(F, {
|
|
7550
7544
|
key: 2,
|
|
7551
7545
|
class: "button__append-icon",
|
|
7552
7546
|
name: V.appendIcon,
|
|
7553
7547
|
size: h(M)
|
|
7554
|
-
}, null, 8, ["name", "size"])) :
|
|
7548
|
+
}, null, 8, ["name", "size"])) : B("", !0)
|
|
7555
7549
|
], 16, n2));
|
|
7556
7550
|
}
|
|
7557
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 = {
|
|
@@ -7560,7 +7554,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7560
7554
|
}, p2 = {
|
|
7561
7555
|
key: 1,
|
|
7562
7556
|
class: "checkbox-texts__hint"
|
|
7563
|
-
},
|
|
7557
|
+
}, D5 = /* @__PURE__ */ P({
|
|
7564
7558
|
__name: "RCheckbox",
|
|
7565
7559
|
props: {
|
|
7566
7560
|
id: { default: "" },
|
|
@@ -7573,7 +7567,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7573
7567
|
},
|
|
7574
7568
|
emits: ["update:modelValue"],
|
|
7575
7569
|
setup(H, { emit: V }) {
|
|
7576
|
-
const C = H, M =
|
|
7570
|
+
const C = H, M = X({
|
|
7577
7571
|
checked: !1,
|
|
7578
7572
|
indeterminate: !1
|
|
7579
7573
|
}), L = {
|
|
@@ -7589,7 +7583,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7589
7583
|
})), e = (d) => {
|
|
7590
7584
|
C.disabled || (M.checked = d.target.checked, M.indeterminate = !1, V("update:modelValue", M.checked));
|
|
7591
7585
|
};
|
|
7592
|
-
return
|
|
7586
|
+
return $(
|
|
7593
7587
|
() => C.indeterminate,
|
|
7594
7588
|
(d) => {
|
|
7595
7589
|
M.indeterminate = d, d === !0 && (M.checked = !1, V("update:modelValue", M.checked));
|
|
@@ -7599,7 +7593,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7599
7593
|
// TODO: find a better way to do this
|
|
7600
7594
|
immediate: !0
|
|
7601
7595
|
}
|
|
7602
|
-
),
|
|
7596
|
+
), $(
|
|
7603
7597
|
() => C.modelValue,
|
|
7604
7598
|
(d) => {
|
|
7605
7599
|
M.checked = d;
|
|
@@ -7609,9 +7603,9 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7609
7603
|
// TODO: find a better way to do this
|
|
7610
7604
|
immediate: !0
|
|
7611
7605
|
}
|
|
7612
|
-
), (d,
|
|
7613
|
-
|
|
7614
|
-
|
|
7606
|
+
), (d, o) => (m(), a("div", a2, [
|
|
7607
|
+
Z("div", Z2, [
|
|
7608
|
+
Z("input", {
|
|
7615
7609
|
id: C.id,
|
|
7616
7610
|
checked: M.checked,
|
|
7617
7611
|
class: "checkbox-container__input",
|
|
@@ -7620,23 +7614,23 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7620
7614
|
type: "checkbox",
|
|
7621
7615
|
onChange: e
|
|
7622
7616
|
}, null, 40, S2),
|
|
7623
|
-
|
|
7617
|
+
Z("div", {
|
|
7624
7618
|
class: p(h(i)),
|
|
7625
7619
|
"data-disabled": C.disabled
|
|
7626
7620
|
}, [
|
|
7627
|
-
|
|
7621
|
+
J(F, {
|
|
7628
7622
|
name: h(A),
|
|
7629
7623
|
size: 24
|
|
7630
7624
|
}, null, 8, ["name"])
|
|
7631
7625
|
], 10, u2)
|
|
7632
7626
|
]),
|
|
7633
|
-
|
|
7634
|
-
|
|
7627
|
+
Z("div", c2, [
|
|
7628
|
+
Z("label", {
|
|
7635
7629
|
class: "checkbox-texts__label",
|
|
7636
7630
|
"data-disabled": C.disabled,
|
|
7637
7631
|
for: C.id
|
|
7638
|
-
},
|
|
7639
|
-
C.errorMsg ? (
|
|
7632
|
+
}, w(C.label), 9, s2),
|
|
7633
|
+
C.errorMsg ? (m(), a("p", O2, w(C.errorMsg), 1)) : (m(), a("p", p2, w(C.hint), 1))
|
|
7640
7634
|
])
|
|
7641
7635
|
]));
|
|
7642
7636
|
}
|
|
@@ -7668,30 +7662,30 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7668
7662
|
}, i = (e) => {
|
|
7669
7663
|
C.disabled || V("click:close", e);
|
|
7670
7664
|
};
|
|
7671
|
-
return (e, d) => (
|
|
7665
|
+
return (e, d) => (m(), a("div", {
|
|
7672
7666
|
class: p(h(M))
|
|
7673
7667
|
}, [
|
|
7674
|
-
|
|
7668
|
+
Z("div", {
|
|
7675
7669
|
class: "chip__content",
|
|
7676
|
-
onClick: d[0] || (d[0] =
|
|
7670
|
+
onClick: d[0] || (d[0] = _((o) => A(o), ["stop"]))
|
|
7677
7671
|
}, [
|
|
7678
|
-
C.prependIcon ? (
|
|
7672
|
+
C.prependIcon ? (m(), T(F, {
|
|
7679
7673
|
key: 0,
|
|
7680
7674
|
"aria-disabled": C.disabled,
|
|
7681
7675
|
class: "chip__prepend-icon",
|
|
7682
7676
|
name: C.prependIcon,
|
|
7683
7677
|
size: h(L)
|
|
7684
|
-
}, null, 8, ["aria-disabled", "name", "size"])) :
|
|
7685
|
-
|
|
7678
|
+
}, null, 8, ["aria-disabled", "name", "size"])) : B("", !0),
|
|
7679
|
+
Z("span", null, w(C.label), 1)
|
|
7686
7680
|
]),
|
|
7687
|
-
C.appendIcon ? (
|
|
7681
|
+
C.appendIcon ? (m(), T(F, {
|
|
7688
7682
|
key: 0,
|
|
7689
7683
|
"aria-disabled": C.disabled,
|
|
7690
7684
|
class: "chip__append-icon",
|
|
7691
7685
|
name: C.appendIcon,
|
|
7692
7686
|
size: h(L),
|
|
7693
|
-
onClick: d[1] || (d[1] =
|
|
7694
|
-
}, null, 8, ["aria-disabled", "name", "size"])) :
|
|
7687
|
+
onClick: d[1] || (d[1] = _((o) => i(o), ["stop"]))
|
|
7688
|
+
}, null, 8, ["aria-disabled", "name", "size"])) : B("", !0)
|
|
7695
7689
|
], 2));
|
|
7696
7690
|
}
|
|
7697
7691
|
}), f2 = { class: "dropdown-wrapper" }, g2 = {
|
|
@@ -7700,7 +7694,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7700
7694
|
}, k2 = {
|
|
7701
7695
|
key: 1,
|
|
7702
7696
|
class: "dropdown__multiple"
|
|
7703
|
-
}, B2 = ["disabled", "placeholder", "readonly"], b2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } },
|
|
7697
|
+
}, B2 = ["disabled", "placeholder", "readonly"], b2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } }, E5 = /* @__PURE__ */ P({
|
|
7704
7698
|
__name: "RDropdown",
|
|
7705
7699
|
props: {
|
|
7706
7700
|
placeholder: { default: "" },
|
|
@@ -7716,14 +7710,14 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7716
7710
|
},
|
|
7717
7711
|
emits: ["update:modelValue"],
|
|
7718
7712
|
setup(H, { emit: V }) {
|
|
7719
|
-
const C = H, M = D(""), L =
|
|
7720
|
-
var t, n, O, k, R,
|
|
7713
|
+
const C = H, M = D(""), L = X([]), A = D(!1), i = D(""), e = D(null), d = D(null), o = (r) => {
|
|
7714
|
+
var t, n, O, k, R, v;
|
|
7721
7715
|
if (!C.disabled) {
|
|
7722
7716
|
if (r.stopPropagation(), A.value = !A.value, A.value) {
|
|
7723
|
-
(t = e.value) == null || t.classList.add("dropdown--active"), (n = e.value) == null || n.focus(), C.searchable && ((O = d.value) == null || O.focus()), document.addEventListener("click",
|
|
7717
|
+
(t = e.value) == null || t.classList.add("dropdown--active"), (n = e.value) == null || n.focus(), C.searchable && ((O = d.value) == null || O.focus()), document.addEventListener("click", o);
|
|
7724
7718
|
return;
|
|
7725
7719
|
}
|
|
7726
|
-
(k = e.value) == null || k.classList.remove("dropdown--active"), (R = e.value) == null || R.blur(), (
|
|
7720
|
+
(k = e.value) == null || k.classList.remove("dropdown--active"), (R = e.value) == null || R.blur(), (v = d.value) == null || v.blur(), document.removeEventListener("click", o);
|
|
7727
7721
|
}
|
|
7728
7722
|
}, S = (r, t) => {
|
|
7729
7723
|
var n;
|
|
@@ -7731,13 +7725,13 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7731
7725
|
r.stopPropagation(), L.includes(t) ? L.splice(L.indexOf(t), 1) : L.push(t), i.value = "", C.searchable && ((n = d.value) == null || n.focus());
|
|
7732
7726
|
return;
|
|
7733
7727
|
}
|
|
7734
|
-
|
|
7735
|
-
},
|
|
7728
|
+
l(r, t);
|
|
7729
|
+
}, l = (r, t) => {
|
|
7736
7730
|
if (M.value === t.value) {
|
|
7737
7731
|
M.value = "", i.value = "";
|
|
7738
7732
|
return;
|
|
7739
7733
|
}
|
|
7740
|
-
i.value = t.label, M.value = t.value,
|
|
7734
|
+
i.value = t.label, M.value = t.value, o(r), V("update:modelValue", t);
|
|
7741
7735
|
}, s = (r, t) => {
|
|
7742
7736
|
if (r instanceof KeyboardEvent && r.key !== "Backspace" || i.value !== "")
|
|
7743
7737
|
return;
|
|
@@ -7754,10 +7748,10 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7754
7748
|
return;
|
|
7755
7749
|
C.options.find((k) => k.label === t) || (L.push({ value: t, label: t }), i.value = "", (O = d.value) == null || O.focus());
|
|
7756
7750
|
}, c = g(() => C.searchable ? C.options.filter((t) => t.label.toLowerCase().includes(i.value.toLowerCase())) : C.options);
|
|
7757
|
-
return
|
|
7751
|
+
return $(L, (r) => {
|
|
7758
7752
|
V("update:modelValue", r);
|
|
7759
|
-
}), (r, t) => (
|
|
7760
|
-
|
|
7753
|
+
}), (r, t) => (m(), a("div", f2, [
|
|
7754
|
+
Z("div", {
|
|
7761
7755
|
ref_key: "dropdown",
|
|
7762
7756
|
ref: e,
|
|
7763
7757
|
class: p({
|
|
@@ -7765,21 +7759,21 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7765
7759
|
"dropdown--disabled": C.disabled,
|
|
7766
7760
|
"dropdown--loading": C.loading
|
|
7767
7761
|
}),
|
|
7768
|
-
onClick:
|
|
7762
|
+
onClick: o
|
|
7769
7763
|
}, [
|
|
7770
|
-
|
|
7764
|
+
Z("div", {
|
|
7771
7765
|
class: p({
|
|
7772
7766
|
"dropdown__prepend-icon": !0,
|
|
7773
7767
|
"dropdown__prepend-icon--active": A.value
|
|
7774
7768
|
})
|
|
7775
7769
|
}, [
|
|
7776
|
-
C.prependIcon ? (
|
|
7770
|
+
C.prependIcon ? (m(), T(F, {
|
|
7777
7771
|
key: 1,
|
|
7778
7772
|
name: C.prependIcon
|
|
7779
7773
|
}, null, 8, ["name"])) : y(r.$slots, "prepend-icon", { key: 0 })
|
|
7780
7774
|
], 2),
|
|
7781
|
-
C.taggable ? (
|
|
7782
|
-
(
|
|
7775
|
+
C.taggable ? (m(), a("div", g2, [
|
|
7776
|
+
(m(!0), a(z, null, q(L, (n, O) => (m(), T(h2, {
|
|
7783
7777
|
key: O,
|
|
7784
7778
|
label: n.label,
|
|
7785
7779
|
appendIcon: "close",
|
|
@@ -7787,11 +7781,11 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7787
7781
|
variant: "primary",
|
|
7788
7782
|
"onClick:close": (k) => s(k, n)
|
|
7789
7783
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7790
|
-
])) :
|
|
7791
|
-
C.multiple ? (
|
|
7792
|
-
(
|
|
7793
|
-
])) :
|
|
7794
|
-
P1(
|
|
7784
|
+
])) : B("", !0),
|
|
7785
|
+
C.multiple ? (m(), a("div", k2, [
|
|
7786
|
+
(m(!0), a(z, null, q(L, (n, O) => (m(), a("p", { key: O }, w(n.label + ","), 1))), 128))
|
|
7787
|
+
])) : B("", !0),
|
|
7788
|
+
P1(Z("input", {
|
|
7795
7789
|
id: "select",
|
|
7796
7790
|
ref_key: "input",
|
|
7797
7791
|
ref: d,
|
|
@@ -7811,22 +7805,22 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7811
7805
|
}, null, 42, B2), [
|
|
7812
7806
|
[z1, i.value]
|
|
7813
7807
|
]),
|
|
7814
|
-
|
|
7808
|
+
Z("div", {
|
|
7815
7809
|
class: p({
|
|
7816
7810
|
"dropdown__append-icon": !0,
|
|
7817
7811
|
"dropdown__append-icon--active": A.value
|
|
7818
7812
|
})
|
|
7819
7813
|
}, [
|
|
7820
|
-
C.appendIcon ? (
|
|
7814
|
+
C.appendIcon ? (m(), T(F, {
|
|
7821
7815
|
key: 1,
|
|
7822
7816
|
name: C.appendIcon
|
|
7823
7817
|
}, null, 8, ["name"])) : y(r.$slots, "append-icon", { key: 0 })
|
|
7824
7818
|
], 2)
|
|
7825
7819
|
], 2),
|
|
7826
|
-
|
|
7820
|
+
Z("ul", {
|
|
7827
7821
|
class: p({ "dropdown-options": !0, "dropdown-options--active": A.value })
|
|
7828
7822
|
}, [
|
|
7829
|
-
(
|
|
7823
|
+
(m(!0), a(z, null, q(h(c), (n) => (m(), a("li", {
|
|
7830
7824
|
key: n.value,
|
|
7831
7825
|
class: p({
|
|
7832
7826
|
"dropdown-options__option": !0,
|
|
@@ -7835,8 +7829,8 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7835
7829
|
"aria-disabled": n.disabled,
|
|
7836
7830
|
onClick: (O) => S(O, n)
|
|
7837
7831
|
}, [
|
|
7838
|
-
|
|
7839
|
-
n.prependIcon ? (
|
|
7832
|
+
Z("div", w2, [
|
|
7833
|
+
n.prependIcon ? (m(), T(F, {
|
|
7840
7834
|
key: 1,
|
|
7841
7835
|
class: p({
|
|
7842
7836
|
"dropdown-options__option__prepend-icon": !0,
|
|
@@ -7844,26 +7838,26 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7844
7838
|
}),
|
|
7845
7839
|
name: n.prependIcon
|
|
7846
7840
|
}, null, 8, ["class", "name"])) : y(r.$slots, "option-prepend", { key: 0 }),
|
|
7847
|
-
|
|
7841
|
+
Z("p", {
|
|
7848
7842
|
class: p({
|
|
7849
7843
|
"dropdown-options__option__label": !0,
|
|
7850
7844
|
"dropdown-options__option__label--active": n.value === M.value || (L == null ? void 0 : L.includes(n))
|
|
7851
7845
|
})
|
|
7852
|
-
},
|
|
7846
|
+
}, w(n.label), 3)
|
|
7853
7847
|
]),
|
|
7854
|
-
n.value === M.value || L != null && L.includes(n) ? (
|
|
7848
|
+
n.value === M.value || L != null && L.includes(n) ? (m(), T(F, {
|
|
7855
7849
|
key: 0,
|
|
7856
7850
|
class: p({
|
|
7857
7851
|
"dropdown-options__option__append-icon": !0,
|
|
7858
7852
|
"dropdown-options__option__append-icon--active": n.value === M.value || (L == null ? void 0 : L.includes(n))
|
|
7859
7853
|
}),
|
|
7860
7854
|
name: "mdiCheck"
|
|
7861
|
-
}, null, 8, ["class"])) :
|
|
7855
|
+
}, null, 8, ["class"])) : B("", !0)
|
|
7862
7856
|
], 10, b2))), 128))
|
|
7863
7857
|
], 2)
|
|
7864
7858
|
]));
|
|
7865
7859
|
}
|
|
7866
|
-
}), y2 = ["id", "for"],
|
|
7860
|
+
}), y2 = ["id", "for"], F1 = /* @__PURE__ */ P({
|
|
7867
7861
|
__name: "RLabel",
|
|
7868
7862
|
props: {
|
|
7869
7863
|
id: { default: "" },
|
|
@@ -7872,10 +7866,10 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7872
7866
|
},
|
|
7873
7867
|
setup(H) {
|
|
7874
7868
|
const V = H;
|
|
7875
|
-
return (C, M) => (
|
|
7869
|
+
return (C, M) => (m(), a("label", {
|
|
7876
7870
|
id: V.id,
|
|
7877
7871
|
for: V.for
|
|
7878
|
-
},
|
|
7872
|
+
}, w(V.text), 9, y2));
|
|
7879
7873
|
}
|
|
7880
7874
|
}), P2 = ["onClick"], T2 = ["open"], F2 = { class: "dialog__header" }, v2 = {
|
|
7881
7875
|
key: 0,
|
|
@@ -7886,7 +7880,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7886
7880
|
}, x2 = {
|
|
7887
7881
|
key: 2,
|
|
7888
7882
|
class: "description"
|
|
7889
|
-
}, D2 = { class: "dialog__body" }, E2 = { class: "dialog__actions" },
|
|
7883
|
+
}, D2 = { class: "dialog__body" }, E2 = { class: "dialog__actions" }, _5 = /* @__PURE__ */ P({
|
|
7890
7884
|
__name: "RModal",
|
|
7891
7885
|
props: {
|
|
7892
7886
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7903,30 +7897,30 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7903
7897
|
})), L = (A) => {
|
|
7904
7898
|
A.target === A.currentTarget && V("update:modelValue", !1);
|
|
7905
7899
|
};
|
|
7906
|
-
return (A, i) => P1((
|
|
7900
|
+
return (A, i) => P1((m(), a("div", {
|
|
7907
7901
|
class: "modal",
|
|
7908
|
-
onClick:
|
|
7902
|
+
onClick: _(L, ["stop"])
|
|
7909
7903
|
}, [
|
|
7910
|
-
|
|
7904
|
+
Z("div", {
|
|
7911
7905
|
role: "dialog",
|
|
7912
7906
|
"aria-modal": "true",
|
|
7913
7907
|
class: p(h(M)),
|
|
7914
7908
|
open: C.modelValue
|
|
7915
7909
|
}, [
|
|
7916
|
-
|
|
7910
|
+
Z("div", F2, [
|
|
7917
7911
|
y(A.$slots, "header"),
|
|
7918
|
-
C.icon ? (
|
|
7919
|
-
|
|
7912
|
+
C.icon ? (m(), a("div", v2, [
|
|
7913
|
+
J(F, {
|
|
7920
7914
|
name: C.icon
|
|
7921
7915
|
}, null, 8, ["name"])
|
|
7922
|
-
])) :
|
|
7923
|
-
C.title ? (
|
|
7924
|
-
C.description ? (
|
|
7916
|
+
])) : B("", !0),
|
|
7917
|
+
C.title ? (m(), a("div", R2, w(C.title), 1)) : B("", !0),
|
|
7918
|
+
C.description ? (m(), a("div", x2, w(C.description), 1)) : B("", !0)
|
|
7925
7919
|
]),
|
|
7926
|
-
|
|
7920
|
+
Z("div", D2, [
|
|
7927
7921
|
y(A.$slots, "default")
|
|
7928
7922
|
]),
|
|
7929
|
-
|
|
7923
|
+
Z("div", E2, [
|
|
7930
7924
|
y(A.$slots, "actions")
|
|
7931
7925
|
])
|
|
7932
7926
|
], 10, T2)
|
|
@@ -7934,7 +7928,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7934
7928
|
[U1, H.modelValue]
|
|
7935
7929
|
]);
|
|
7936
7930
|
}
|
|
7937
|
-
}),
|
|
7931
|
+
}), _2 = { class: "nav" }, N2 = { class: "actions" }, N5 = /* @__PURE__ */ P({
|
|
7938
7932
|
__name: "RSidebar",
|
|
7939
7933
|
props: {
|
|
7940
7934
|
modelValue: { type: Boolean, default: !1 }
|
|
@@ -7944,13 +7938,13 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7944
7938
|
sidebar: !0,
|
|
7945
7939
|
"sidebar--open": V.modelValue
|
|
7946
7940
|
}));
|
|
7947
|
-
return (M, L) => (
|
|
7941
|
+
return (M, L) => (m(), a("aside", {
|
|
7948
7942
|
class: p(h(C))
|
|
7949
7943
|
}, [
|
|
7950
|
-
|
|
7944
|
+
Z("nav", _2, [
|
|
7951
7945
|
y(M.$slots, "default")
|
|
7952
7946
|
]),
|
|
7953
|
-
|
|
7947
|
+
Z("div", N2, [
|
|
7954
7948
|
y(M.$slots, "actions")
|
|
7955
7949
|
])
|
|
7956
7950
|
], 2));
|
|
@@ -7961,7 +7955,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7961
7955
|
}, Q2 = {
|
|
7962
7956
|
key: 1,
|
|
7963
7957
|
class: "snackbar__close"
|
|
7964
|
-
},
|
|
7958
|
+
}, W5 = /* @__PURE__ */ P({
|
|
7965
7959
|
__name: "RSnackbar",
|
|
7966
7960
|
props: {
|
|
7967
7961
|
text: { default: "" },
|
|
@@ -7983,52 +7977,52 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7983
7977
|
C.timeout && setTimeout(() => {
|
|
7984
7978
|
M.value = !1, V("close");
|
|
7985
7979
|
}, C.timeout);
|
|
7986
|
-
}),
|
|
7980
|
+
}), $(
|
|
7987
7981
|
() => C.show,
|
|
7988
7982
|
(i) => {
|
|
7989
7983
|
M.value = i;
|
|
7990
7984
|
},
|
|
7991
7985
|
{ immediate: !0 }
|
|
7992
|
-
), (i, e) => (
|
|
7986
|
+
), (i, e) => (m(), a("div", {
|
|
7993
7987
|
class: p({
|
|
7994
7988
|
snackbar: !0,
|
|
7995
7989
|
"snackbar--closed": !M.value,
|
|
7996
7990
|
[C.left ? "snackbar--left" : "snackbar--right"]: !0
|
|
7997
7991
|
})
|
|
7998
7992
|
}, [
|
|
7999
|
-
|
|
8000
|
-
C.showAction ? (
|
|
7993
|
+
Z("div", W2, w(C.text), 1),
|
|
7994
|
+
C.showAction ? (m(), a("div", I2, [
|
|
8001
7995
|
y(i.$slots, "action"),
|
|
8002
|
-
i.$slots.action ?
|
|
7996
|
+
i.$slots.action ? B("", !0) : (m(), T(r2, {
|
|
8003
7997
|
key: 0,
|
|
8004
7998
|
size: "small",
|
|
8005
7999
|
variant: "ghost",
|
|
8006
8000
|
onClick: L
|
|
8007
8001
|
}, {
|
|
8008
|
-
default:
|
|
8009
|
-
|
|
8002
|
+
default: T1(() => [
|
|
8003
|
+
K1(w(C.actionText), 1)
|
|
8010
8004
|
]),
|
|
8011
8005
|
_: 1
|
|
8012
8006
|
}))
|
|
8013
|
-
])) :
|
|
8014
|
-
C.showClose ? (
|
|
8007
|
+
])) : B("", !0),
|
|
8008
|
+
C.showClose ? (m(), a("div", Q2, [
|
|
8015
8009
|
y(i.$slots, "close"),
|
|
8016
|
-
i.$slots.close ?
|
|
8010
|
+
i.$slots.close ? B("", !0) : (m(), T(F, {
|
|
8017
8011
|
key: 0,
|
|
8018
8012
|
name: "mdiClose",
|
|
8019
8013
|
size: 20,
|
|
8020
|
-
onClick:
|
|
8014
|
+
onClick: _(A, ["stop"])
|
|
8021
8015
|
}, null, 8, ["onClick"]))
|
|
8022
|
-
])) :
|
|
8016
|
+
])) : B("", !0)
|
|
8023
8017
|
], 2));
|
|
8024
8018
|
}
|
|
8025
|
-
}), G2 = { class: "switch-container" }, z2 = ["id", "checked"], U2 = /* @__PURE__ */
|
|
8019
|
+
}), G2 = { class: "switch-container" }, z2 = ["id", "checked"], U2 = /* @__PURE__ */ Z("span", { class: "slider round" }, null, -1), $2 = ["id", "for"], K2 = {
|
|
8026
8020
|
key: 0,
|
|
8027
8021
|
class: "switch-texts__error"
|
|
8028
8022
|
}, j2 = {
|
|
8029
8023
|
key: 1,
|
|
8030
8024
|
class: "switch-texts__hint"
|
|
8031
|
-
},
|
|
8025
|
+
}, I5 = /* @__PURE__ */ P({
|
|
8032
8026
|
__name: "RSwitch",
|
|
8033
8027
|
props: {
|
|
8034
8028
|
id: { default: "switch" },
|
|
@@ -8041,7 +8035,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8041
8035
|
},
|
|
8042
8036
|
emits: ["update:modelValue"],
|
|
8043
8037
|
setup(H, { emit: V }) {
|
|
8044
|
-
const C = H, M =
|
|
8038
|
+
const C = H, M = X({
|
|
8045
8039
|
checked: !1
|
|
8046
8040
|
}), L = g(() => ({
|
|
8047
8041
|
switch: !0,
|
|
@@ -8051,7 +8045,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8051
8045
|
})), A = (i) => {
|
|
8052
8046
|
C.disabled || (M.checked = i.target.checked, V("update:modelValue", M.checked));
|
|
8053
8047
|
};
|
|
8054
|
-
return
|
|
8048
|
+
return $(
|
|
8055
8049
|
() => C.modelValue,
|
|
8056
8050
|
(i) => {
|
|
8057
8051
|
M.checked = i;
|
|
@@ -8061,11 +8055,11 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8061
8055
|
// TODO: find a better way to do this
|
|
8062
8056
|
immediate: !0
|
|
8063
8057
|
}
|
|
8064
|
-
), (i, e) => (
|
|
8065
|
-
|
|
8058
|
+
), (i, e) => (m(), a("div", G2, [
|
|
8059
|
+
Z("div", {
|
|
8066
8060
|
class: p(h(L))
|
|
8067
8061
|
}, [
|
|
8068
|
-
|
|
8062
|
+
Z("input", {
|
|
8069
8063
|
id: C.id,
|
|
8070
8064
|
checked: M.checked,
|
|
8071
8065
|
class: "switch__input",
|
|
@@ -8074,18 +8068,18 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8074
8068
|
}, null, 40, z2),
|
|
8075
8069
|
U2
|
|
8076
8070
|
], 2),
|
|
8077
|
-
|
|
8071
|
+
Z("div", {
|
|
8078
8072
|
class: p({
|
|
8079
8073
|
"switch-texts": !0,
|
|
8080
8074
|
[`switch-texts--${C.size}`]: !0
|
|
8081
8075
|
})
|
|
8082
8076
|
}, [
|
|
8083
|
-
|
|
8077
|
+
Z("label", {
|
|
8084
8078
|
id: C.id,
|
|
8085
8079
|
class: "switch-texts__label",
|
|
8086
8080
|
for: C.id
|
|
8087
|
-
},
|
|
8088
|
-
C.errorMsg ? (
|
|
8081
|
+
}, w(C.label), 9, $2),
|
|
8082
|
+
C.errorMsg ? (m(), a("p", K2, w(C.errorMsg), 1)) : (m(), a("p", j2, w(C.hint), 1))
|
|
8089
8083
|
], 2)
|
|
8090
8084
|
]));
|
|
8091
8085
|
}
|
|
@@ -8114,22 +8108,22 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8114
8108
|
function L(A) {
|
|
8115
8109
|
V("update:modelValue", A);
|
|
8116
8110
|
}
|
|
8117
|
-
return (A, i) => (
|
|
8111
|
+
return (A, i) => (m(), a("button", {
|
|
8118
8112
|
"aria-disabled": C.disabled,
|
|
8119
8113
|
"aria-selected": C.active,
|
|
8120
8114
|
class: p(h(M)),
|
|
8121
8115
|
disabled: C.disabled,
|
|
8122
8116
|
onClick: i[0] || (i[0] = (e) => L(C.id))
|
|
8123
8117
|
}, [
|
|
8124
|
-
!A.$slots.icon && H.variant !== h(i1).TEXT_ONLY ? (
|
|
8118
|
+
!A.$slots.icon && H.variant !== h(i1).TEXT_ONLY ? (m(), T(F, {
|
|
8125
8119
|
key: 0,
|
|
8126
8120
|
class: "tab-item__icon",
|
|
8127
8121
|
name: C.icon
|
|
8128
8122
|
}, null, 8, ["name"])) : y(A.$slots, "custom-icon", { key: 1 }),
|
|
8129
|
-
H.variant !== h(i1).ICON_ONLY ? (
|
|
8123
|
+
H.variant !== h(i1).ICON_ONLY ? (m(), a("span", Y2, w(C.label), 1)) : B("", !0)
|
|
8130
8124
|
], 10, q2));
|
|
8131
8125
|
}
|
|
8132
|
-
}), J2 = { class: "tabs-wrapper" }, C5 = { class: "tab-content" },
|
|
8126
|
+
}), J2 = { class: "tabs-wrapper" }, C5 = { class: "tab-content" }, Q5 = /* @__PURE__ */ P({
|
|
8133
8127
|
__name: "RTabs",
|
|
8134
8128
|
props: {
|
|
8135
8129
|
tabs: { default: () => [] },
|
|
@@ -8140,12 +8134,12 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8140
8134
|
tabs: !0,
|
|
8141
8135
|
"tabs--scrollable": V.scrollable
|
|
8142
8136
|
}));
|
|
8143
|
-
return (L, A) => (
|
|
8144
|
-
|
|
8145
|
-
|
|
8137
|
+
return (L, A) => (m(), a(z, null, [
|
|
8138
|
+
Z("div", J2, [
|
|
8139
|
+
Z("div", {
|
|
8146
8140
|
class: p(h(M))
|
|
8147
8141
|
}, [
|
|
8148
|
-
(
|
|
8142
|
+
(m(!0), a(z, null, q(V.tabs, (i, e) => (m(), T(X2, {
|
|
8149
8143
|
id: i.id,
|
|
8150
8144
|
key: e,
|
|
8151
8145
|
modelValue: C.value,
|
|
@@ -8157,7 +8151,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8157
8151
|
}, null, 8, ["id", "modelValue", "active", "disabled", "icon", "label"]))), 128))
|
|
8158
8152
|
], 2)
|
|
8159
8153
|
]),
|
|
8160
|
-
|
|
8154
|
+
Z("div", C5, [
|
|
8161
8155
|
y(L.$slots, "tab", { activeTab: C.value })
|
|
8162
8156
|
])
|
|
8163
8157
|
], 64));
|
|
@@ -8168,7 +8162,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8168
8162
|
}, M5 = {
|
|
8169
8163
|
key: 2,
|
|
8170
8164
|
class: "textarea__hint"
|
|
8171
|
-
},
|
|
8165
|
+
}, G5 = /* @__PURE__ */ P({
|
|
8172
8166
|
__name: "RTextArea",
|
|
8173
8167
|
props: {
|
|
8174
8168
|
id: { default: "" },
|
|
@@ -8181,13 +8175,13 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8181
8175
|
},
|
|
8182
8176
|
emits: ["update:modelValue"],
|
|
8183
8177
|
setup(H, { emit: V }) {
|
|
8184
|
-
const C = H, M =
|
|
8178
|
+
const C = H, M = X({
|
|
8185
8179
|
value: ""
|
|
8186
8180
|
});
|
|
8187
8181
|
function L(A) {
|
|
8188
8182
|
V("update:modelValue", A.target.value);
|
|
8189
8183
|
}
|
|
8190
|
-
return
|
|
8184
|
+
return $(
|
|
8191
8185
|
() => C.modelValue,
|
|
8192
8186
|
(A) => {
|
|
8193
8187
|
M.value = A;
|
|
@@ -8195,15 +8189,15 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8195
8189
|
{
|
|
8196
8190
|
immediate: !0
|
|
8197
8191
|
}
|
|
8198
|
-
), (A, i) => (
|
|
8199
|
-
C.label ? (
|
|
8192
|
+
), (A, i) => (m(), a("div", H5, [
|
|
8193
|
+
C.label ? (m(), T(F1, {
|
|
8200
8194
|
key: 0,
|
|
8201
8195
|
id: "textarea",
|
|
8202
8196
|
class: "textarea__label",
|
|
8203
8197
|
for: "textarea",
|
|
8204
8198
|
text: C.label
|
|
8205
|
-
}, null, 8, ["text"])) :
|
|
8206
|
-
|
|
8199
|
+
}, null, 8, ["text"])) : B("", !0),
|
|
8200
|
+
Z("textarea", {
|
|
8207
8201
|
id: C.id,
|
|
8208
8202
|
class: p(["textarea", {
|
|
8209
8203
|
"textarea--error": C.errorMsg,
|
|
@@ -8214,7 +8208,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8214
8208
|
value: M.value,
|
|
8215
8209
|
onInput: L
|
|
8216
8210
|
}, null, 42, V5),
|
|
8217
|
-
C.errorMsg ? (
|
|
8211
|
+
C.errorMsg ? (m(), a("p", L5, w(C.errorMsg), 1)) : (m(), a("p", M5, w(C.hint), 1))
|
|
8218
8212
|
]));
|
|
8219
8213
|
}
|
|
8220
8214
|
}), A5 = {
|
|
@@ -8224,7 +8218,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8224
8218
|
}, i5 = { class: "input-wrapper" }, e5 = ["id", "disabled", "placeholder", "type", "value"], d5 = { class: "textfield__error" }, t5 = {
|
|
8225
8219
|
key: 0,
|
|
8226
8220
|
class: "textfield__hint"
|
|
8227
|
-
},
|
|
8221
|
+
}, z5 = /* @__PURE__ */ P({
|
|
8228
8222
|
__name: "RTextfield",
|
|
8229
8223
|
props: {
|
|
8230
8224
|
id: { default: "" },
|
|
@@ -8248,7 +8242,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8248
8242
|
"click:clear"
|
|
8249
8243
|
],
|
|
8250
8244
|
setup(H, { emit: V }) {
|
|
8251
|
-
const C = H, M = D(), L =
|
|
8245
|
+
const C = H, M = D(), L = X({
|
|
8252
8246
|
value: ""
|
|
8253
8247
|
}), A = D(C.type), i = {
|
|
8254
8248
|
password: "lock_outline",
|
|
@@ -8257,12 +8251,12 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8257
8251
|
url: "link",
|
|
8258
8252
|
number: "123",
|
|
8259
8253
|
text: ""
|
|
8260
|
-
}, e = D(!1), d = g(() => !!L.value),
|
|
8261
|
-
const { disabled: f, loading:
|
|
8254
|
+
}, e = D(!1), d = g(() => !!L.value), o = g(() => {
|
|
8255
|
+
const { disabled: f, loading: b, clearable: x, errorMsg: E } = C;
|
|
8262
8256
|
return {
|
|
8263
8257
|
textfield: !0,
|
|
8264
8258
|
"textfield--error": E == null ? void 0 : E.length,
|
|
8265
|
-
"textfield--loading":
|
|
8259
|
+
"textfield--loading": b,
|
|
8266
8260
|
"textfield--disabled": f,
|
|
8267
8261
|
"textfield--clearable": x,
|
|
8268
8262
|
"textfield--focus": e.value,
|
|
@@ -8272,7 +8266,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8272
8266
|
"textfield__prepend-icon": !0,
|
|
8273
8267
|
"textfield__prepend-icon--loading": C.loading,
|
|
8274
8268
|
"textfield__prepend-icon--error": u.value && d.value
|
|
8275
|
-
})),
|
|
8269
|
+
})), l = g(() => ({
|
|
8276
8270
|
"textfield__append-icon": !0,
|
|
8277
8271
|
"textfield__append-icon--clear": c.value,
|
|
8278
8272
|
"textfield__append-icon--error": u.value
|
|
@@ -8280,11 +8274,11 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8280
8274
|
var f;
|
|
8281
8275
|
return (f = C.errorMsg) == null ? void 0 : f.length;
|
|
8282
8276
|
}), c = g(() => C.clearable && s.value), r = g(() => {
|
|
8283
|
-
const { prependIcon: f, type:
|
|
8284
|
-
return f || i[
|
|
8277
|
+
const { prependIcon: f, type: b } = C;
|
|
8278
|
+
return f || i[b];
|
|
8285
8279
|
}), t = g(() => {
|
|
8286
|
-
const { appendIcon: f, type:
|
|
8287
|
-
return u.value ? "mdiAlertCircleOutline" : c.value && ["text", "email"].includes(
|
|
8280
|
+
const { appendIcon: f, type: b } = C;
|
|
8281
|
+
return u.value ? "mdiAlertCircleOutline" : c.value && ["text", "email"].includes(b) ? "mdiClose" : b === "password" && A.value === "password" ? "mdiEyeOutline" : b === "password" && A.value === "text" ? "mdiEyeOffOutline" : f;
|
|
8288
8282
|
}), n = () => {
|
|
8289
8283
|
e.value = !0, V("focus", {
|
|
8290
8284
|
value: L.value
|
|
@@ -8306,14 +8300,14 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8306
8300
|
}), R();
|
|
8307
8301
|
}, R = () => {
|
|
8308
8302
|
A.value = A.value === "password" ? "text" : "password";
|
|
8309
|
-
},
|
|
8310
|
-
const
|
|
8311
|
-
L.value =
|
|
8303
|
+
}, v = (f) => {
|
|
8304
|
+
const b = f.target;
|
|
8305
|
+
L.value = b.value;
|
|
8312
8306
|
}, Q = () => {
|
|
8313
8307
|
var f;
|
|
8314
8308
|
(f = M.value) == null || f.focus();
|
|
8315
8309
|
};
|
|
8316
|
-
return
|
|
8310
|
+
return $(
|
|
8317
8311
|
() => C.modelValue,
|
|
8318
8312
|
(f) => {
|
|
8319
8313
|
L.value = f;
|
|
@@ -8321,14 +8315,14 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8321
8315
|
{
|
|
8322
8316
|
immediate: !0
|
|
8323
8317
|
}
|
|
8324
|
-
),
|
|
8318
|
+
), $(
|
|
8325
8319
|
() => L.value,
|
|
8326
8320
|
(f) => {
|
|
8327
8321
|
V("update:modelValue", f);
|
|
8328
8322
|
}
|
|
8329
|
-
), (f,
|
|
8330
|
-
|
|
8331
|
-
|
|
8323
|
+
), (f, b) => (m(), a("fieldset", null, [
|
|
8324
|
+
Z("div", A5, [
|
|
8325
|
+
J(F1, {
|
|
8332
8326
|
id: C.id,
|
|
8333
8327
|
class: p({
|
|
8334
8328
|
textfield__label: !0
|
|
@@ -8337,18 +8331,18 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8337
8331
|
text: C.label,
|
|
8338
8332
|
onClick: Q
|
|
8339
8333
|
}, null, 8, ["id", "for", "text"]),
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
class: p(h(
|
|
8334
|
+
Z("div", i5, [
|
|
8335
|
+
Z("div", {
|
|
8336
|
+
class: p(h(o))
|
|
8343
8337
|
}, [
|
|
8344
8338
|
y(f.$slots, "prepend"),
|
|
8345
|
-
h(r) && !f.$slots.prepend ? (
|
|
8339
|
+
h(r) && !f.$slots.prepend ? (m(), T(F, {
|
|
8346
8340
|
key: 0,
|
|
8347
8341
|
class: p(h(S)),
|
|
8348
8342
|
name: h(r),
|
|
8349
8343
|
size: 20
|
|
8350
|
-
}, null, 8, ["class", "name"])) :
|
|
8351
|
-
|
|
8344
|
+
}, null, 8, ["class", "name"])) : B("", !0),
|
|
8345
|
+
Z("input", {
|
|
8352
8346
|
ref_key: "inputRef",
|
|
8353
8347
|
ref: M,
|
|
8354
8348
|
id: C.id,
|
|
@@ -8358,19 +8352,19 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8358
8352
|
value: L.value,
|
|
8359
8353
|
onBlur: O,
|
|
8360
8354
|
onFocus: n,
|
|
8361
|
-
onInput:
|
|
8355
|
+
onInput: v
|
|
8362
8356
|
}, null, 40, e5),
|
|
8363
8357
|
y(f.$slots, "append"),
|
|
8364
|
-
h(t) && !f.$slots.append ? (
|
|
8358
|
+
h(t) && !f.$slots.append ? (m(), T(F, {
|
|
8365
8359
|
key: 1,
|
|
8366
|
-
class: p(h(
|
|
8360
|
+
class: p(h(l)),
|
|
8367
8361
|
name: `${h(t)}`,
|
|
8368
8362
|
size: 20,
|
|
8369
8363
|
onClick: k
|
|
8370
|
-
}, null, 8, ["class", "name"])) :
|
|
8364
|
+
}, null, 8, ["class", "name"])) : B("", !0)
|
|
8371
8365
|
], 2),
|
|
8372
|
-
|
|
8373
|
-
C.errorMsg ?
|
|
8366
|
+
Z("div", d5, w(C.errorMsg), 1),
|
|
8367
|
+
C.errorMsg ? B("", !0) : (m(), a("div", t5, w(C.hint), 1))
|
|
8374
8368
|
])
|
|
8375
8369
|
])
|
|
8376
8370
|
]));
|
|
@@ -8390,43 +8384,43 @@ function S1(H) {
|
|
|
8390
8384
|
}
|
|
8391
8385
|
function p1(H, V, C) {
|
|
8392
8386
|
let { reference: M, floating: L } = H;
|
|
8393
|
-
const A = M.x + M.width / 2 - L.width / 2, i = M.y + M.height / 2 - L.height / 2, e = M1(V), d = S1(e),
|
|
8394
|
-
let
|
|
8387
|
+
const A = M.x + M.width / 2 - L.width / 2, i = M.y + M.height / 2 - L.height / 2, e = M1(V), d = S1(e), o = M[d] / 2 - L[d] / 2, S = e === "x";
|
|
8388
|
+
let l;
|
|
8395
8389
|
switch (L1(V)) {
|
|
8396
8390
|
case "top":
|
|
8397
|
-
|
|
8391
|
+
l = { x: A, y: M.y - L.height };
|
|
8398
8392
|
break;
|
|
8399
8393
|
case "bottom":
|
|
8400
|
-
|
|
8394
|
+
l = { x: A, y: M.y + M.height };
|
|
8401
8395
|
break;
|
|
8402
8396
|
case "right":
|
|
8403
|
-
|
|
8397
|
+
l = { x: M.x + M.width, y: i };
|
|
8404
8398
|
break;
|
|
8405
8399
|
case "left":
|
|
8406
|
-
|
|
8400
|
+
l = { x: M.x - L.width, y: i };
|
|
8407
8401
|
break;
|
|
8408
8402
|
default:
|
|
8409
|
-
|
|
8403
|
+
l = { x: M.x, y: M.y };
|
|
8410
8404
|
}
|
|
8411
8405
|
switch (l1(V)) {
|
|
8412
8406
|
case "start":
|
|
8413
|
-
|
|
8407
|
+
l[e] -= o * (C && S ? -1 : 1);
|
|
8414
8408
|
break;
|
|
8415
8409
|
case "end":
|
|
8416
|
-
|
|
8410
|
+
l[e] += o * (C && S ? -1 : 1);
|
|
8417
8411
|
}
|
|
8418
|
-
return
|
|
8412
|
+
return l;
|
|
8419
8413
|
}
|
|
8420
8414
|
const m5 = async (H, V, C) => {
|
|
8421
8415
|
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));
|
|
8422
|
-
let
|
|
8416
|
+
let o = await i.getElementRects({ reference: H, floating: V, strategy: L }), { x: S, y: l } = p1(o, M, d), s = M, u = {}, c = 0;
|
|
8423
8417
|
for (let r = 0; r < e.length; r++) {
|
|
8424
|
-
const { name: t, fn: n } = e[r], { x: O, y: k, data: R, reset:
|
|
8425
|
-
S = O ?? S,
|
|
8418
|
+
const { name: t, fn: n } = e[r], { x: O, y: k, data: R, reset: v } = await n({ x: S, y: l, initialPlacement: M, placement: s, strategy: L, middlewareData: u, rects: o, platform: i, elements: { reference: H, floating: V } });
|
|
8419
|
+
S = O ?? S, l = k ?? l, u = { ...u, [t]: { ...u[t], ...R } }, v && c <= 50 && (c++, typeof v == "object" && (v.placement && (s = v.placement), v.rects && (o = v.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: L }) : v.rects), { x: S, y: l } = p1(o, s, d)), r = -1);
|
|
8426
8420
|
}
|
|
8427
|
-
return { x: S, y:
|
|
8421
|
+
return { x: S, y: l, placement: s, strategy: L, middlewareData: u };
|
|
8428
8422
|
};
|
|
8429
|
-
function
|
|
8423
|
+
function v1(H) {
|
|
8430
8424
|
return typeof H != "number" ? function(V) {
|
|
8431
8425
|
return { top: 0, right: 0, bottom: 0, left: 0, ...V };
|
|
8432
8426
|
}(H) : { top: H, right: H, bottom: H, left: H };
|
|
@@ -8437,7 +8431,7 @@ function e1(H) {
|
|
|
8437
8431
|
async function d1(H, V) {
|
|
8438
8432
|
var C;
|
|
8439
8433
|
V === void 0 && (V = {});
|
|
8440
|
-
const { x: M, y: L, platform: A, rects: i, elements: e, strategy: d } = H, { boundary:
|
|
8434
|
+
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, c = v1(u), r = e[s ? l === "floating" ? "reference" : "floating" : l], t = e1(await A.getClippingRect({ element: (C = await (A.isElement == null ? void 0 : A.isElement(r))) == null || C ? r : r.contextElement || await (A.getDocumentElement == null ? void 0 : A.getDocumentElement(e.floating)), boundary: o, rootBoundary: S, strategy: d })), n = e1(A.convertOffsetParentRelativeRectToViewportRelativeRect ? await A.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: l === "floating" ? { ...i.floating, x: M, y: L } : i.reference, offsetParent: await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(e.floating)), strategy: d }) : i[l]);
|
|
8441
8435
|
return { top: t.top - n.top + c.top, bottom: n.bottom - t.bottom + c.bottom, left: t.left - n.left + c.left, right: n.right - t.right + c.right };
|
|
8442
8436
|
}
|
|
8443
8437
|
const l5 = Math.min, o5 = Math.max;
|
|
@@ -8448,11 +8442,11 @@ const n5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
|
8448
8442
|
const { element: C, padding: M = 0 } = H ?? {}, { x: L, y: A, placement: i, rects: e, platform: d } = V;
|
|
8449
8443
|
if (C == null)
|
|
8450
8444
|
return {};
|
|
8451
|
-
const
|
|
8452
|
-
let R = k ?
|
|
8445
|
+
const o = v1(M), S = { x: L, y: A }, l = M1(i), s = l1(i), u = S1(l), c = await d.getDimensions(C), r = l === "y" ? "top" : "left", t = l === "y" ? "bottom" : "right", n = e.reference[u] + e.reference[l] - S[l] - e.floating[u], O = S[l] - e.reference[l], k = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8446
|
+
let R = k ? l === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0;
|
|
8453
8447
|
R === 0 && (R = e.floating[u]);
|
|
8454
|
-
const
|
|
8455
|
-
return { [
|
|
8448
|
+
const v = n / 2 - O / 2, Q = o[r], f = R - c[u] - o[t], b = R / 2 - c[u] / 2 + v, x = a1(Q, b, f), E = (s === "start" ? o[r] : o[t]) > 0 && b !== x && e.reference[u] <= e.floating[u];
|
|
8449
|
+
return { [l]: S[l] - (E ? b < Q ? Q - b : f - b : 0), data: { [l]: x, centerOffset: b - x } };
|
|
8456
8450
|
} }), r5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8457
8451
|
function t1(H) {
|
|
8458
8452
|
return H.replace(/left|right|bottom|top/g, (V) => r5[V]);
|
|
@@ -8467,30 +8461,30 @@ const Z5 = { start: "end", end: "start" };
|
|
|
8467
8461
|
function h1(H) {
|
|
8468
8462
|
return H.replace(/start|end/g, (V) => Z5[V]);
|
|
8469
8463
|
}
|
|
8470
|
-
const
|
|
8471
|
-
|
|
8464
|
+
const R1 = ["top", "right", "bottom", "left"];
|
|
8465
|
+
R1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
|
|
8472
8466
|
const S5 = function(H) {
|
|
8473
8467
|
return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
|
|
8474
8468
|
var C;
|
|
8475
|
-
const { placement: M, middlewareData: L, rects: A, initialPlacement: i, platform: e, elements: d } = V, { mainAxis:
|
|
8476
|
-
const x = t1(
|
|
8477
|
-
return [h1(
|
|
8469
|
+
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, ...c } = H, r = L1(M), t = l || (r === i || !u ? [t1(i)] : function(b) {
|
|
8470
|
+
const x = t1(b);
|
|
8471
|
+
return [h1(b), x, h1(x)];
|
|
8478
8472
|
}(i)), n = [i, ...t], O = await d1(V, c), k = [];
|
|
8479
8473
|
let R = ((C = L.flip) == null ? void 0 : C.overflows) || [];
|
|
8480
|
-
if (
|
|
8481
|
-
const { main:
|
|
8482
|
-
k.push(O[
|
|
8474
|
+
if (o && k.push(O[r]), S) {
|
|
8475
|
+
const { main: b, cross: x } = a5(M, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8476
|
+
k.push(O[b], O[x]);
|
|
8483
8477
|
}
|
|
8484
|
-
if (R = [...R, { placement: M, overflows: k }], !k.every((
|
|
8485
|
-
var
|
|
8486
|
-
const
|
|
8478
|
+
if (R = [...R, { placement: M, overflows: k }], !k.every((b) => b <= 0)) {
|
|
8479
|
+
var v, Q;
|
|
8480
|
+
const b = ((v = (Q = L.flip) == null ? void 0 : Q.index) != null ? v : 0) + 1, x = n[b];
|
|
8487
8481
|
if (x)
|
|
8488
|
-
return { data: { index:
|
|
8482
|
+
return { data: { index: b, overflows: R }, reset: { placement: x } };
|
|
8489
8483
|
let E = "bottom";
|
|
8490
8484
|
switch (s) {
|
|
8491
8485
|
case "bestFit": {
|
|
8492
8486
|
var f;
|
|
8493
|
-
const c1 = (f = R.map((A1) => [A1, A1.overflows.filter((
|
|
8487
|
+
const c1 = (f = R.map((A1) => [A1, A1.overflows.filter((C1) => C1 > 0).reduce((C1, Q1) => C1 + Q1, 0)]).sort((A1, C1) => A1[1] - C1[1])[0]) == null ? void 0 : f[0].placement;
|
|
8494
8488
|
c1 && (E = c1);
|
|
8495
8489
|
break;
|
|
8496
8490
|
}
|
|
@@ -8507,7 +8501,7 @@ function f1(H, V) {
|
|
|
8507
8501
|
return { top: H.top - V.height, right: H.right - V.width, bottom: H.bottom - V.height, left: H.left - V.width };
|
|
8508
8502
|
}
|
|
8509
8503
|
function g1(H) {
|
|
8510
|
-
return
|
|
8504
|
+
return R1.some((V) => H[V] >= 0);
|
|
8511
8505
|
}
|
|
8512
8506
|
const u5 = function(H) {
|
|
8513
8507
|
let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
|
|
@@ -8529,7 +8523,7 @@ const u5 = function(H) {
|
|
|
8529
8523
|
}, c5 = function(H) {
|
|
8530
8524
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8531
8525
|
const { x: C, y: M } = V, L = await async function(A, i) {
|
|
8532
|
-
const { placement: e, platform: d, elements:
|
|
8526
|
+
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", c = ["left", "top"].includes(l) ? -1 : 1, r = S && u ? -1 : 1, t = typeof i == "function" ? i(A) : i;
|
|
8533
8527
|
let { mainAxis: n, crossAxis: O, alignmentAxis: k } = typeof t == "number" ? { mainAxis: t, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...t };
|
|
8534
8528
|
return s && typeof k == "number" && (O = s === "end" ? -1 * k : k), u ? { x: O * r, y: n * c } : { x: n * c, y: O * r };
|
|
8535
8529
|
}(V, H);
|
|
@@ -8544,199 +8538,199 @@ const O5 = function(H) {
|
|
|
8544
8538
|
const { x: C, y: M, placement: L } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (t) => {
|
|
8545
8539
|
let { x: n, y: O } = t;
|
|
8546
8540
|
return { x: n, y: O };
|
|
8547
|
-
} }, ...d } = H,
|
|
8548
|
-
let u = l
|
|
8541
|
+
} }, ...d } = H, o = { x: C, y: M }, S = await d1(V, d), l = M1(L1(L)), s = s5(l);
|
|
8542
|
+
let u = o[l], c = o[s];
|
|
8549
8543
|
if (A) {
|
|
8550
|
-
const t =
|
|
8551
|
-
u = a1(u + S[
|
|
8544
|
+
const t = l === "y" ? "bottom" : "right";
|
|
8545
|
+
u = a1(u + S[l === "y" ? "top" : "left"], u, u - S[t]);
|
|
8552
8546
|
}
|
|
8553
8547
|
if (i) {
|
|
8554
8548
|
const t = s === "y" ? "bottom" : "right";
|
|
8555
8549
|
c = a1(c + S[s === "y" ? "top" : "left"], c, c - S[t]);
|
|
8556
8550
|
}
|
|
8557
|
-
const r = e.fn({ ...V, [
|
|
8551
|
+
const r = e.fn({ ...V, [l]: u, [s]: c });
|
|
8558
8552
|
return { ...r, data: { x: r.x - C, y: r.y - M } };
|
|
8559
8553
|
} };
|
|
8560
8554
|
};
|
|
8561
|
-
function
|
|
8555
|
+
function x1(H) {
|
|
8562
8556
|
return H && H.document && H.location && H.alert && H.setInterval;
|
|
8563
8557
|
}
|
|
8564
8558
|
function I(H) {
|
|
8565
8559
|
if (H == null)
|
|
8566
8560
|
return window;
|
|
8567
|
-
if (!
|
|
8561
|
+
if (!x1(H)) {
|
|
8568
8562
|
const V = H.ownerDocument;
|
|
8569
8563
|
return V && V.defaultView || window;
|
|
8570
8564
|
}
|
|
8571
8565
|
return H;
|
|
8572
8566
|
}
|
|
8573
|
-
function
|
|
8567
|
+
function N(H) {
|
|
8574
8568
|
return I(H).getComputedStyle(H);
|
|
8575
8569
|
}
|
|
8576
|
-
function
|
|
8577
|
-
return
|
|
8570
|
+
function K(H) {
|
|
8571
|
+
return x1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
|
|
8578
8572
|
}
|
|
8579
|
-
function
|
|
8573
|
+
function D1() {
|
|
8580
8574
|
const H = navigator.userAgentData;
|
|
8581
8575
|
return H && Array.isArray(H.brands) ? H.brands.map((V) => V.brand + "/" + V.version).join(" ") : navigator.userAgent;
|
|
8582
8576
|
}
|
|
8583
8577
|
function W(H) {
|
|
8584
8578
|
return H instanceof I(H).HTMLElement;
|
|
8585
8579
|
}
|
|
8586
|
-
function
|
|
8580
|
+
function Y(H) {
|
|
8587
8581
|
return H instanceof I(H).Element;
|
|
8588
8582
|
}
|
|
8589
8583
|
function k1(H) {
|
|
8590
8584
|
return typeof ShadowRoot > "u" ? !1 : H instanceof I(H).ShadowRoot || H instanceof ShadowRoot;
|
|
8591
8585
|
}
|
|
8592
8586
|
function o1(H) {
|
|
8593
|
-
const { overflow: V, overflowX: C, overflowY: M, display: L } =
|
|
8587
|
+
const { overflow: V, overflowX: C, overflowY: M, display: L } = N(H);
|
|
8594
8588
|
return /auto|scroll|overlay|hidden/.test(V + M + C) && !["inline", "contents"].includes(L);
|
|
8595
8589
|
}
|
|
8596
8590
|
function p5(H) {
|
|
8597
|
-
return ["table", "td", "th"].includes(
|
|
8591
|
+
return ["table", "td", "th"].includes(K(H));
|
|
8598
8592
|
}
|
|
8599
8593
|
function Z1(H) {
|
|
8600
|
-
const V = /firefox/i.test(
|
|
8594
|
+
const V = /firefox/i.test(D1()), C = N(H), M = C.backdropFilter || C.WebkitBackdropFilter;
|
|
8601
8595
|
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) => {
|
|
8602
8596
|
const A = C.contain;
|
|
8603
8597
|
return A != null && A.includes(L);
|
|
8604
8598
|
});
|
|
8605
8599
|
}
|
|
8606
|
-
function
|
|
8607
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
8600
|
+
function E1() {
|
|
8601
|
+
return !/^((?!chrome|android).)*safari/i.test(D1());
|
|
8608
8602
|
}
|
|
8609
8603
|
function u1(H) {
|
|
8610
|
-
return ["html", "body", "#document"].includes(
|
|
8604
|
+
return ["html", "body", "#document"].includes(K(H));
|
|
8611
8605
|
}
|
|
8612
|
-
const B1 = Math.min,
|
|
8606
|
+
const B1 = Math.min, H1 = Math.max, m1 = Math.round;
|
|
8613
8607
|
function j(H, V, C) {
|
|
8614
8608
|
var M, L, A, i;
|
|
8615
8609
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8616
8610
|
const e = H.getBoundingClientRect();
|
|
8617
|
-
let d = 1,
|
|
8618
|
-
V && W(H) && (d = H.offsetWidth > 0 && m1(e.width) / H.offsetWidth || 1,
|
|
8619
|
-
const S =
|
|
8611
|
+
let d = 1, o = 1;
|
|
8612
|
+
V && W(H) && (d = H.offsetWidth > 0 && m1(e.width) / H.offsetWidth || 1, o = H.offsetHeight > 0 && m1(e.height) / H.offsetHeight || 1);
|
|
8613
|
+
const S = Y(H) ? I(H) : window, l = !E1() && 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, c = e.width / d, r = e.height / o;
|
|
8620
8614
|
return { width: c, height: r, top: u, right: s + c, bottom: u + r, left: s, x: s, y: u };
|
|
8621
8615
|
}
|
|
8622
|
-
function
|
|
8616
|
+
function U(H) {
|
|
8623
8617
|
return (V = H, (V instanceof I(V).Node ? H.ownerDocument : H.document) || window.document).documentElement;
|
|
8624
8618
|
var V;
|
|
8625
8619
|
}
|
|
8626
8620
|
function n1(H) {
|
|
8627
|
-
return
|
|
8621
|
+
return Y(H) ? { scrollLeft: H.scrollLeft, scrollTop: H.scrollTop } : { scrollLeft: H.pageXOffset, scrollTop: H.pageYOffset };
|
|
8628
8622
|
}
|
|
8629
|
-
function
|
|
8630
|
-
return j(
|
|
8623
|
+
function _1(H) {
|
|
8624
|
+
return j(U(H)).left + n1(H).scrollLeft;
|
|
8631
8625
|
}
|
|
8632
8626
|
function h5(H, V, C) {
|
|
8633
|
-
const M = W(V), L =
|
|
8634
|
-
const
|
|
8635
|
-
return m1(
|
|
8627
|
+
const M = W(V), L = U(V), A = j(H, M && function(d) {
|
|
8628
|
+
const o = j(d);
|
|
8629
|
+
return m1(o.width) !== d.offsetWidth || m1(o.height) !== d.offsetHeight;
|
|
8636
8630
|
}(V), C === "fixed");
|
|
8637
8631
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
8638
8632
|
const e = { x: 0, y: 0 };
|
|
8639
8633
|
if (M || !M && C !== "fixed")
|
|
8640
|
-
if ((
|
|
8634
|
+
if ((K(V) !== "body" || o1(L)) && (i = n1(V)), W(V)) {
|
|
8641
8635
|
const d = j(V, !0);
|
|
8642
8636
|
e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
|
|
8643
8637
|
} else
|
|
8644
|
-
L && (e.x =
|
|
8638
|
+
L && (e.x = _1(L));
|
|
8645
8639
|
return { x: A.left + i.scrollLeft - e.x, y: A.top + i.scrollTop - e.y, width: A.width, height: A.height };
|
|
8646
8640
|
}
|
|
8647
|
-
function
|
|
8648
|
-
if (
|
|
8641
|
+
function V1(H) {
|
|
8642
|
+
if (K(H) === "html")
|
|
8649
8643
|
return H;
|
|
8650
|
-
const V = H.assignedSlot || H.parentNode || (k1(H) ? H.host : null) ||
|
|
8644
|
+
const V = H.assignedSlot || H.parentNode || (k1(H) ? H.host : null) || U(H);
|
|
8651
8645
|
return k1(V) ? V.host : V;
|
|
8652
8646
|
}
|
|
8653
8647
|
function b1(H) {
|
|
8654
|
-
return W(H) &&
|
|
8648
|
+
return W(H) && N(H).position !== "fixed" ? H.offsetParent : null;
|
|
8655
8649
|
}
|
|
8656
8650
|
function w1(H) {
|
|
8657
8651
|
const V = I(H);
|
|
8658
8652
|
let C = b1(H);
|
|
8659
|
-
for (; C && p5(C) &&
|
|
8653
|
+
for (; C && p5(C) && N(C).position === "static"; )
|
|
8660
8654
|
C = b1(C);
|
|
8661
|
-
return C && (
|
|
8662
|
-
let L =
|
|
8655
|
+
return C && (K(C) === "html" || K(C) === "body" && N(C).position === "static" && !Z1(C)) ? V : C || function(M) {
|
|
8656
|
+
let L = V1(M);
|
|
8663
8657
|
for (; W(L) && !u1(L); ) {
|
|
8664
8658
|
if (Z1(L))
|
|
8665
8659
|
return L;
|
|
8666
|
-
L =
|
|
8660
|
+
L = V1(L);
|
|
8667
8661
|
}
|
|
8668
8662
|
return null;
|
|
8669
8663
|
}(H) || V;
|
|
8670
8664
|
}
|
|
8671
8665
|
function N1(H) {
|
|
8672
|
-
const V =
|
|
8666
|
+
const V = V1(H);
|
|
8673
8667
|
return u1(V) ? H.ownerDocument.body : W(V) && o1(V) ? V : N1(V);
|
|
8674
8668
|
}
|
|
8675
|
-
function
|
|
8669
|
+
function W1(H, V) {
|
|
8676
8670
|
var C;
|
|
8677
8671
|
V === void 0 && (V = []);
|
|
8678
8672
|
const M = N1(H), L = M === ((C = H.ownerDocument) == null ? void 0 : C.body), A = I(M), i = L ? [A].concat(A.visualViewport || [], o1(M) ? M : []) : M, e = V.concat(i);
|
|
8679
|
-
return L ? e : e.concat(
|
|
8673
|
+
return L ? e : e.concat(W1(i));
|
|
8680
8674
|
}
|
|
8681
8675
|
function y1(H, V, C) {
|
|
8682
8676
|
return V === "viewport" ? e1(function(M, L) {
|
|
8683
|
-
const A = I(M), i =
|
|
8684
|
-
let d = i.clientWidth,
|
|
8677
|
+
const A = I(M), i = U(M), e = A.visualViewport;
|
|
8678
|
+
let d = i.clientWidth, o = i.clientHeight, S = 0, l = 0;
|
|
8685
8679
|
if (e) {
|
|
8686
|
-
d = e.width,
|
|
8687
|
-
const s =
|
|
8688
|
-
(s || !s && L === "fixed") && (S = e.offsetLeft,
|
|
8680
|
+
d = e.width, o = e.height;
|
|
8681
|
+
const s = E1();
|
|
8682
|
+
(s || !s && L === "fixed") && (S = e.offsetLeft, l = e.offsetTop);
|
|
8689
8683
|
}
|
|
8690
|
-
return { width: d, height:
|
|
8691
|
-
}(H, C)) :
|
|
8684
|
+
return { width: d, height: o, x: S, y: l };
|
|
8685
|
+
}(H, C)) : Y(V) ? function(M, L) {
|
|
8692
8686
|
const A = j(M, !1, L === "fixed"), i = A.top + M.clientTop, e = A.left + M.clientLeft;
|
|
8693
8687
|
return { top: i, left: e, x: e, y: i, right: e + M.clientWidth, bottom: i + M.clientHeight, width: M.clientWidth, height: M.clientHeight };
|
|
8694
8688
|
}(V, C) : e1(function(M) {
|
|
8695
8689
|
var L;
|
|
8696
|
-
const A =
|
|
8697
|
-
let S = -i.scrollLeft +
|
|
8698
|
-
const
|
|
8699
|
-
return
|
|
8700
|
-
}(
|
|
8690
|
+
const A = U(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);
|
|
8691
|
+
let S = -i.scrollLeft + _1(M);
|
|
8692
|
+
const l = -i.scrollTop;
|
|
8693
|
+
return N(e || A).direction === "rtl" && (S += H1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: o, x: S, y: l };
|
|
8694
|
+
}(U(H)));
|
|
8701
8695
|
}
|
|
8702
8696
|
const f5 = { getClippingRect: function(H) {
|
|
8703
8697
|
let { element: V, boundary: C, rootBoundary: M, strategy: L } = H;
|
|
8704
|
-
const A = C === "clippingAncestors" ? function(
|
|
8705
|
-
let S =
|
|
8706
|
-
const s =
|
|
8707
|
-
let u = s ?
|
|
8708
|
-
for (;
|
|
8709
|
-
const c =
|
|
8710
|
-
(s ? r ||
|
|
8698
|
+
const A = C === "clippingAncestors" ? function(o) {
|
|
8699
|
+
let S = W1(o).filter((c) => Y(c) && K(c) !== "body"), l = null;
|
|
8700
|
+
const s = N(o).position === "fixed";
|
|
8701
|
+
let u = s ? V1(o) : o;
|
|
8702
|
+
for (; Y(u) && !u1(u); ) {
|
|
8703
|
+
const c = N(u), r = Z1(u);
|
|
8704
|
+
(s ? r || l : r || c.position !== "static" || !l || !["absolute", "fixed"].includes(l.position)) ? l = c : S = S.filter((t) => t !== u), u = V1(u);
|
|
8711
8705
|
}
|
|
8712
8706
|
return S;
|
|
8713
|
-
}(V) : [].concat(C), i = [...A, M], e = i[0], d = i.reduce((
|
|
8714
|
-
const
|
|
8715
|
-
return
|
|
8707
|
+
}(V) : [].concat(C), i = [...A, M], e = i[0], d = i.reduce((o, S) => {
|
|
8708
|
+
const l = y1(V, S, L);
|
|
8709
|
+
return o.top = H1(l.top, o.top), o.right = B1(l.right, o.right), o.bottom = B1(l.bottom, o.bottom), o.left = H1(l.left, o.left), o;
|
|
8716
8710
|
}, y1(V, e, L));
|
|
8717
8711
|
return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
|
|
8718
8712
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
|
|
8719
8713
|
let { rect: V, offsetParent: C, strategy: M } = H;
|
|
8720
|
-
const L = W(C), A =
|
|
8714
|
+
const L = W(C), A = U(C);
|
|
8721
8715
|
if (C === A)
|
|
8722
8716
|
return V;
|
|
8723
8717
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
8724
8718
|
const e = { x: 0, y: 0 };
|
|
8725
|
-
if ((L || !L && M !== "fixed") && ((
|
|
8719
|
+
if ((L || !L && M !== "fixed") && ((K(C) !== "body" || o1(A)) && (i = n1(C)), W(C))) {
|
|
8726
8720
|
const d = j(C, !0);
|
|
8727
8721
|
e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
|
|
8728
8722
|
}
|
|
8729
8723
|
return { ...V, x: V.x - i.scrollLeft + e.x, y: V.y - i.scrollTop + e.y };
|
|
8730
|
-
}, isElement:
|
|
8724
|
+
}, isElement: Y, getDimensions: function(H) {
|
|
8731
8725
|
if (W(H))
|
|
8732
8726
|
return { width: H.offsetWidth, height: H.offsetHeight };
|
|
8733
8727
|
const V = j(H);
|
|
8734
8728
|
return { width: V.width, height: V.height };
|
|
8735
|
-
}, getOffsetParent: w1, getDocumentElement:
|
|
8729
|
+
}, getOffsetParent: w1, getDocumentElement: U, async getElementRects(H) {
|
|
8736
8730
|
let { reference: V, floating: C, strategy: M } = H;
|
|
8737
8731
|
const L = this.getOffsetParent || w1, A = this.getDimensions;
|
|
8738
8732
|
return { reference: h5(V, await L(C), M), floating: { x: 0, y: 0, ...await A(C) } };
|
|
8739
|
-
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) =>
|
|
8733
|
+
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => N(H).direction === "rtl" }, g5 = (H, V, C) => m5(H, V, { platform: f5, ...C });
|
|
8740
8734
|
function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
8741
8735
|
!H || !V || g5(H, V, {
|
|
8742
8736
|
placement: M,
|
|
@@ -8747,12 +8741,12 @@ function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
|
8747
8741
|
S5(),
|
|
8748
8742
|
u5()
|
|
8749
8743
|
]
|
|
8750
|
-
}).then(({ x: i, y: e, placement: d, middlewareData:
|
|
8744
|
+
}).then(({ x: i, y: e, placement: d, middlewareData: o }) => {
|
|
8751
8745
|
if (Object.assign(V.style, {
|
|
8752
8746
|
left: `${i}px`,
|
|
8753
8747
|
top: `${e}px`
|
|
8754
|
-
}), C &&
|
|
8755
|
-
const { x: S, y:
|
|
8748
|
+
}), C && o.arrow) {
|
|
8749
|
+
const { x: S, y: l } = o.arrow, s = {
|
|
8756
8750
|
top: "bottom",
|
|
8757
8751
|
right: "left",
|
|
8758
8752
|
bottom: "top",
|
|
@@ -8761,7 +8755,7 @@ function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
|
8761
8755
|
}[d.split("-")[0]];
|
|
8762
8756
|
Object.assign(C.style, {
|
|
8763
8757
|
left: i != null ? `${S}px` : "",
|
|
8764
|
-
top: e != null ? `${
|
|
8758
|
+
top: e != null ? `${l}px` : "",
|
|
8765
8759
|
right: "",
|
|
8766
8760
|
bottom: "",
|
|
8767
8761
|
[`${s}`]: "-4px"
|
|
@@ -8769,11 +8763,11 @@ function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
|
8769
8763
|
}
|
|
8770
8764
|
});
|
|
8771
8765
|
}
|
|
8772
|
-
var
|
|
8766
|
+
var I1 = /* @__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))(I1 || {}), G = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(G || {});
|
|
8773
8767
|
const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], B5 = ["innerHTML"], b5 = /* @__PURE__ */ P({
|
|
8774
8768
|
__name: "RTooltip",
|
|
8775
8769
|
props: {
|
|
8776
|
-
placement: { default:
|
|
8770
|
+
placement: { default: I1.Top },
|
|
8777
8771
|
text: { default: "" },
|
|
8778
8772
|
dark: { type: Boolean, default: !0 },
|
|
8779
8773
|
light: { type: Boolean, default: !1 },
|
|
@@ -8792,26 +8786,26 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8792
8786
|
emits: ["show", "hide"],
|
|
8793
8787
|
setup(H, { emit: V }) {
|
|
8794
8788
|
const C = H;
|
|
8795
|
-
|
|
8789
|
+
j1((t) => ({
|
|
8796
8790
|
"271323d4": h(r)
|
|
8797
8791
|
}));
|
|
8798
8792
|
const M = D(null), L = D(null), A = D(null);
|
|
8799
8793
|
function i() {
|
|
8800
8794
|
const { placement: t, offset: n, padding: O, disabled: k } = C;
|
|
8801
|
-
k || (L.value.style.display = "block", V("show"), r1(M, L, A, t, n, O), d(), C.outsideClick &&
|
|
8795
|
+
k || (L.value.style.display = "block", V("show"), r1(M, L, A, t, n, O), d(), C.outsideClick && o("add"));
|
|
8802
8796
|
}
|
|
8803
8797
|
function e() {
|
|
8804
|
-
L.value.style.display = "", V("hide"), C.outsideClick &&
|
|
8798
|
+
L.value.style.display = "", V("hide"), C.outsideClick && o("remove");
|
|
8805
8799
|
}
|
|
8806
8800
|
const d = () => {
|
|
8807
8801
|
C.autoHide && setTimeout(() => {
|
|
8808
8802
|
e();
|
|
8809
8803
|
}, C.hideDelay);
|
|
8810
|
-
},
|
|
8804
|
+
}, o = (t) => {
|
|
8811
8805
|
t === "add" && document.addEventListener("click", e), t === "remove" && document.removeEventListener("click", e);
|
|
8812
8806
|
}, S = () => {
|
|
8813
8807
|
C.disabled || C.triggers == G.Click && (L.value.style.display === "block" ? e() : i());
|
|
8814
|
-
},
|
|
8808
|
+
}, l = () => {
|
|
8815
8809
|
C.disabled || C.triggers === G.Hover && i();
|
|
8816
8810
|
}, s = () => {
|
|
8817
8811
|
if (!C.disabled)
|
|
@@ -8831,7 +8825,7 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8831
8825
|
window.onresize = () => {
|
|
8832
8826
|
const { placement: t, offset: n, padding: O, disabled: k } = C;
|
|
8833
8827
|
k || C.resizable && r1(M, L, A, t, n, O);
|
|
8834
|
-
},
|
|
8828
|
+
}, q1(
|
|
8835
8829
|
() => {
|
|
8836
8830
|
C.disabled || C.shown && C.triggers === G.Manual && i();
|
|
8837
8831
|
},
|
|
@@ -8839,24 +8833,24 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8839
8833
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8840
8834
|
);
|
|
8841
8835
|
const r = g(() => `${C.showDelay}ms`);
|
|
8842
|
-
return (t, n) => (
|
|
8843
|
-
|
|
8836
|
+
return (t, n) => (m(), a(z, null, [
|
|
8837
|
+
Z("div", {
|
|
8844
8838
|
ref_key: "trigger",
|
|
8845
8839
|
ref: M,
|
|
8846
8840
|
"aria-disabled": C.disabled,
|
|
8847
8841
|
class: "trigger",
|
|
8848
|
-
onClick:
|
|
8849
|
-
onMouseenter:
|
|
8850
|
-
onMouseleave:
|
|
8851
|
-
onMousemove:
|
|
8842
|
+
onClick: _(S, ["stop"]),
|
|
8843
|
+
onMouseenter: _(l, ["stop"]),
|
|
8844
|
+
onMouseleave: _(s, ["stop"]),
|
|
8845
|
+
onMousemove: _(u, ["stop"])
|
|
8852
8846
|
}, [
|
|
8853
8847
|
y(t.$slots, "trigger", {}, void 0, !0),
|
|
8854
|
-
t.$slots.trigger ?
|
|
8848
|
+
t.$slots.trigger ? B("", !0) : (m(), a("div", {
|
|
8855
8849
|
key: 0,
|
|
8856
8850
|
innerHTML: C.triggerContent
|
|
8857
8851
|
}, null, 8, B5))
|
|
8858
8852
|
], 40, k5),
|
|
8859
|
-
|
|
8853
|
+
Z("div", {
|
|
8860
8854
|
id: "tooltip",
|
|
8861
8855
|
ref_key: "tooltip",
|
|
8862
8856
|
ref: L,
|
|
@@ -8864,15 +8858,15 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8864
8858
|
role: "tooltip"
|
|
8865
8859
|
}, [
|
|
8866
8860
|
y(t.$slots, "content", {}, void 0, !0),
|
|
8867
|
-
t.$slots.content ?
|
|
8861
|
+
t.$slots.content ? B("", !0) : (m(), a("div", {
|
|
8868
8862
|
key: 0,
|
|
8869
8863
|
class: p({
|
|
8870
8864
|
tooltip__content: !0,
|
|
8871
8865
|
"tooltip__content--dark": C.dark,
|
|
8872
8866
|
"tooltip__content--light": C.light
|
|
8873
8867
|
})
|
|
8874
|
-
},
|
|
8875
|
-
t.$slots.content ?
|
|
8868
|
+
}, w(C.text), 3)),
|
|
8869
|
+
t.$slots.content ? B("", !0) : (m(), a("div", {
|
|
8876
8870
|
key: 1,
|
|
8877
8871
|
id: "arrow",
|
|
8878
8872
|
ref_key: "arrowElement",
|
|
@@ -8892,25 +8886,70 @@ const w5 = (H, V) => {
|
|
|
8892
8886
|
for (const [M, L] of V)
|
|
8893
8887
|
C[M] = L;
|
|
8894
8888
|
return C;
|
|
8895
|
-
},
|
|
8889
|
+
}, U5 = /* @__PURE__ */ w5(b5, [["__scopeId", "data-v-ee5f5651"]]), y5 = { class: "r-breadcrumb" }, P5 = {
|
|
8890
|
+
key: 0,
|
|
8891
|
+
class: "r-breadcrumb__title"
|
|
8892
|
+
}, $5 = /* @__PURE__ */ P({
|
|
8893
|
+
__name: "RBreadcrumb",
|
|
8894
|
+
props: {
|
|
8895
|
+
items: { default: () => [] },
|
|
8896
|
+
seperator: { default: "mdiChevronRight" }
|
|
8897
|
+
},
|
|
8898
|
+
setup(H) {
|
|
8899
|
+
const V = H;
|
|
8900
|
+
return (C, M) => {
|
|
8901
|
+
const L = Y1("router-link");
|
|
8902
|
+
return m(), a("div", y5, [
|
|
8903
|
+
(m(!0), a(z, null, q(V.items, (A, i) => (m(), a("div", {
|
|
8904
|
+
class: "r-breadcrumb__item",
|
|
8905
|
+
key: i
|
|
8906
|
+
}, [
|
|
8907
|
+
J(L, {
|
|
8908
|
+
to: A.to,
|
|
8909
|
+
class: "r-breadcrumb__link"
|
|
8910
|
+
}, {
|
|
8911
|
+
default: T1(() => [
|
|
8912
|
+
y(C.$slots, "item-icon", {}, () => [
|
|
8913
|
+
A.icon ? (m(), T(F, {
|
|
8914
|
+
key: 0,
|
|
8915
|
+
name: A.icon
|
|
8916
|
+
}, null, 8, ["name"])) : B("", !0)
|
|
8917
|
+
]),
|
|
8918
|
+
A.onlyIcon ? B("", !0) : (m(), a("span", P5, w(A.title), 1))
|
|
8919
|
+
]),
|
|
8920
|
+
_: 2
|
|
8921
|
+
}, 1032, ["to"]),
|
|
8922
|
+
y(C.$slots, "custom-seperator", {}, () => [
|
|
8923
|
+
i !== H.items.length - 1 && V.seperator ? (m(), T(F, {
|
|
8924
|
+
key: 0,
|
|
8925
|
+
name: V.seperator,
|
|
8926
|
+
class: "r-breadcrumb__separator"
|
|
8927
|
+
}, null, 8, ["name"])) : B("", !0)
|
|
8928
|
+
])
|
|
8929
|
+
]))), 128))
|
|
8930
|
+
]);
|
|
8931
|
+
};
|
|
8932
|
+
}
|
|
8933
|
+
});
|
|
8896
8934
|
export {
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8935
|
+
F5 as RAccordion,
|
|
8936
|
+
v5 as RAlert,
|
|
8937
|
+
R5 as RAvatar,
|
|
8938
|
+
x5 as RBadge,
|
|
8939
|
+
$5 as RBreadcrumb,
|
|
8901
8940
|
r2 as RButton,
|
|
8902
|
-
|
|
8941
|
+
D5 as RCheckbox,
|
|
8903
8942
|
h2 as RChip,
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8943
|
+
E5 as RDropdown,
|
|
8944
|
+
F as RIcon,
|
|
8945
|
+
F1 as RLabel,
|
|
8946
|
+
_5 as RModal,
|
|
8947
|
+
N5 as RSidebar,
|
|
8948
|
+
W5 as RSnackbar,
|
|
8949
|
+
I5 as RSwitch,
|
|
8911
8950
|
X2 as RTabItem,
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8951
|
+
Q5 as RTabs,
|
|
8952
|
+
G5 as RTextArea,
|
|
8953
|
+
z5 as RTextfield,
|
|
8954
|
+
U5 as RTooltip
|
|
8916
8955
|
};
|