@rocketui/vue 0.2.69 → 0.2.71-beta
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 +1692 -1388
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/Accordion/RAccordion.vue.d.ts +70 -0
- package/dist/types/components/Accordion/RAccordion.vue.d.ts.map +1 -0
- package/dist/types/components/Alert/RAlert.vue.d.ts +109 -0
- package/dist/types/components/Alert/RAlert.vue.d.ts.map +1 -0
- package/dist/types/components/Avatar/RAvatar.vue.d.ts +92 -0
- package/dist/types/components/Avatar/RAvatar.vue.d.ts.map +1 -0
- package/dist/types/components/Badge/RBadge.vue.d.ts +143 -0
- package/dist/types/components/Badge/RBadge.vue.d.ts.map +1 -0
- package/dist/types/components/Breadcrumb/RBreadcrumb.vue.d.ts +50 -0
- package/dist/types/components/Breadcrumb/RBreadcrumb.vue.d.ts.map +1 -0
- package/dist/types/components/Button/RButton.vue.d.ts +193 -0
- package/dist/types/components/Button/RButton.vue.d.ts.map +1 -0
- package/dist/types/components/Checkbox/RCheckbox.vue.d.ts +164 -0
- package/dist/types/components/Checkbox/RCheckbox.vue.d.ts.map +1 -0
- package/dist/types/components/Chips/RChip.vue.d.ts +132 -0
- package/dist/types/components/Chips/RChip.vue.d.ts.map +1 -0
- package/dist/types/components/Dropdown/RDropdown.vue.d.ts +442 -0
- package/dist/types/components/Dropdown/RDropdown.vue.d.ts.map +1 -0
- package/dist/types/components/Icon/RIcon.vue.d.ts +59 -0
- package/dist/types/components/Icon/RIcon.vue.d.ts.map +1 -0
- package/dist/types/components/ItemGroup/RItem.vue.d.ts +65 -0
- package/dist/types/components/ItemGroup/RItem.vue.d.ts.map +1 -0
- package/dist/types/components/ItemGroup/RItemGroup.vue.d.ts +123 -0
- package/dist/types/components/ItemGroup/RItemGroup.vue.d.ts.map +1 -0
- package/dist/types/components/Label/RLabel.vue.d.ts +68 -0
- package/dist/types/components/Label/RLabel.vue.d.ts.map +1 -0
- package/dist/types/components/Modal/RModal.vue.d.ts +208 -0
- package/dist/types/components/Modal/RModal.vue.d.ts.map +1 -0
- package/dist/types/components/Pagination/RPagination.vue.d.ts +110 -0
- package/dist/types/components/Pagination/RPagination.vue.d.ts.map +1 -0
- package/dist/types/components/ProgressBar/RProgressbar.vue.d.ts +34 -0
- package/dist/types/components/ProgressBar/RProgressbar.vue.d.ts.map +1 -0
- package/dist/types/components/Radio/RRadio.vue.d.ts +125 -0
- package/dist/types/components/Radio/RRadio.vue.d.ts.map +1 -0
- package/dist/types/components/Sidebar/RSidebar.vue.d.ts +53 -0
- package/dist/types/components/Sidebar/RSidebar.vue.d.ts.map +1 -0
- package/dist/types/components/Snackbar/RSnackbar.vue.d.ts +113 -0
- package/dist/types/components/Snackbar/RSnackbar.vue.d.ts.map +1 -0
- package/dist/types/components/Switch/RSwitch.vue.d.ts +214 -0
- package/dist/types/components/Switch/RSwitch.vue.d.ts.map +1 -0
- package/dist/types/components/TabItem/RTabItem.vue.d.ts +155 -0
- package/dist/types/components/TabItem/RTabItem.vue.d.ts.map +1 -0
- package/dist/types/components/Tabs/RTabs.vue.d.ts +95 -0
- package/dist/types/components/Tabs/RTabs.vue.d.ts.map +1 -0
- package/dist/types/components/TextArea/RTextArea.vue.d.ts +171 -0
- package/dist/types/components/TextArea/RTextArea.vue.d.ts.map +1 -0
- package/dist/types/components/Textfield/RTextfield.vue.d.ts +293 -0
- package/dist/types/components/Textfield/RTextfield.vue.d.ts.map +1 -0
- package/dist/types/components/Tooltip/RTooltip.vue.d.ts +253 -0
- package/dist/types/components/Tooltip/RTooltip.vue.d.ts.map +1 -0
- package/dist/types/lib/main.d.ts +26 -0
- package/dist/types/lib/main.d.ts.map +1 -0
- package/package.json +3 -2
- package/dist/rocket-ui-vue.d.ts +0 -3325
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as E, openBlock as l, createElementBlock as n, createElementVNode as S, unref as L1, reactive as q1, Fragment as i1, renderList as r1, normalizeClass as g, renderSlot as b, toDisplayString as w, createVNode as J, computed as O, createCommentVNode as p, mergeProps as T1, withKeys as p1, withModifiers as o1, createBlock as x, watch as N, createTextVNode as d1, getCurrentScope as v2, onScopeDispose as B2, ref as R, watchEffect as y2, onMounted as j1, Teleport as m2, withCtx as O1, withDirectives as l2, vModelText as o2, nextTick as I1, onUnmounted as w2, Transition as P2, normalizeStyle as X1, resolveComponent as T2, provide as B1, resolveDynamicComponent as F2, inject as y1 } from "vue";
|
|
2
|
+
const R2 = {
|
|
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 b2 = {
|
|
|
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
|
+
}, x2 = ["height", "viewBox", "width"], D2 = ["d"], D = /* @__PURE__ */ E({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
@@ -7305,25 +7305,25 @@ const b2 = {
|
|
|
7305
7305
|
},
|
|
7306
7306
|
setup(H) {
|
|
7307
7307
|
const V = H;
|
|
7308
|
-
return (C, M) => (
|
|
7308
|
+
return (C, M) => (l(), n("svg", {
|
|
7309
7309
|
class: "r-icon",
|
|
7310
7310
|
height: V.size,
|
|
7311
7311
|
viewBox: V.viewBox,
|
|
7312
7312
|
width: V.size
|
|
7313
7313
|
}, [
|
|
7314
|
-
|
|
7315
|
-
d:
|
|
7316
|
-
}, null, 8,
|
|
7317
|
-
], 8,
|
|
7314
|
+
S("path", {
|
|
7315
|
+
d: L1(R2)[V.name]
|
|
7316
|
+
}, null, 8, D2)
|
|
7317
|
+
], 8, x2));
|
|
7318
7318
|
}
|
|
7319
|
-
}),
|
|
7319
|
+
}), E2 = ["data-state", "onClick"], _2 = { class: "r-accordion__header" }, W2 = { class: "r-accordion__title" }, N2 = { class: "r-accordion__icon" }, I2 = { class: "r-accordion__content" }, x0 = /* @__PURE__ */ E({
|
|
7320
7320
|
__name: "RAccordion",
|
|
7321
7321
|
props: {
|
|
7322
7322
|
accordions: {},
|
|
7323
7323
|
multiple: { type: Boolean }
|
|
7324
7324
|
},
|
|
7325
7325
|
setup(H) {
|
|
7326
|
-
const V = H, C =
|
|
7326
|
+
const V = H, C = q1(
|
|
7327
7327
|
V.accordions.map(({ title: i, content: L }, A) => ({
|
|
7328
7328
|
title: i,
|
|
7329
7329
|
content: L,
|
|
@@ -7342,42 +7342,42 @@ const b2 = {
|
|
|
7342
7342
|
});
|
|
7343
7343
|
}
|
|
7344
7344
|
}
|
|
7345
|
-
return (i, L) => (
|
|
7346
|
-
key:
|
|
7347
|
-
class:
|
|
7345
|
+
return (i, L) => (l(!0), n(i1, null, r1(C, (A, d) => (l(), n("div", {
|
|
7346
|
+
key: d,
|
|
7347
|
+
class: g(["r-accordion", {
|
|
7348
7348
|
"r-accordion--disabled": A.disabled,
|
|
7349
7349
|
"cursor-pointer": !A.open
|
|
7350
7350
|
}]),
|
|
7351
7351
|
"data-state": A.open ? "opened" : "closed",
|
|
7352
|
-
onClick: (
|
|
7352
|
+
onClick: (e) => M(d)
|
|
7353
7353
|
}, [
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7354
|
+
S("div", _2, [
|
|
7355
|
+
b(i.$slots, "title", { accordion: A }, () => [
|
|
7356
|
+
S("div", W2, w(A.title), 1)
|
|
7357
7357
|
]),
|
|
7358
|
-
|
|
7359
|
-
|
|
7358
|
+
S("div", N2, [
|
|
7359
|
+
b(i.$slots, "icon", {
|
|
7360
7360
|
item: A,
|
|
7361
7361
|
open: A.open
|
|
7362
7362
|
}, () => [
|
|
7363
|
-
|
|
7363
|
+
J(D, { name: "mdiChevronDown" })
|
|
7364
7364
|
])
|
|
7365
7365
|
])
|
|
7366
7366
|
]),
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7367
|
+
S("div", I2, [
|
|
7368
|
+
b(i.$slots, "content", { accordion: A }, () => [
|
|
7369
|
+
S("span", null, w(A.content), 1)
|
|
7370
7370
|
])
|
|
7371
7371
|
])
|
|
7372
|
-
], 10,
|
|
7372
|
+
], 10, E2))), 128));
|
|
7373
7373
|
}
|
|
7374
|
-
}),
|
|
7374
|
+
}), $2 = { class: "r-alert__icon" }, Q2 = { class: "r-alert__content" }, G2 = { class: "r-alert__content__title" }, U2 = {
|
|
7375
7375
|
key: 0,
|
|
7376
7376
|
class: "r-alert__content__description"
|
|
7377
|
-
},
|
|
7377
|
+
}, z2 = {
|
|
7378
7378
|
key: 0,
|
|
7379
7379
|
class: "r-alert__close"
|
|
7380
|
-
},
|
|
7380
|
+
}, D0 = /* @__PURE__ */ E({
|
|
7381
7381
|
__name: "RAlert",
|
|
7382
7382
|
props: {
|
|
7383
7383
|
type: { default: "info" },
|
|
@@ -7389,12 +7389,12 @@ const b2 = {
|
|
|
7389
7389
|
},
|
|
7390
7390
|
emits: ["close"],
|
|
7391
7391
|
setup(H, { emit: V }) {
|
|
7392
|
-
const C = H, M = V, i =
|
|
7392
|
+
const C = H, M = V, i = O(() => ({
|
|
7393
7393
|
" r-alert": !0,
|
|
7394
7394
|
[`r-alert--${C.variant}`]: !0,
|
|
7395
7395
|
"r-alert--block": C.block,
|
|
7396
7396
|
[`r-alert--${C.variant}--${C.type}`]: !0
|
|
7397
|
-
})), L =
|
|
7397
|
+
})), L = O(() => ({
|
|
7398
7398
|
success: "mdiCheckCircle",
|
|
7399
7399
|
error: "mdiAlertCircle",
|
|
7400
7400
|
warning: "mdiAlert",
|
|
@@ -7403,83 +7403,83 @@ const b2 = {
|
|
|
7403
7403
|
function A() {
|
|
7404
7404
|
M("close");
|
|
7405
7405
|
}
|
|
7406
|
-
return (
|
|
7407
|
-
class:
|
|
7406
|
+
return (d, e) => (l(), n("div", {
|
|
7407
|
+
class: g(i.value)
|
|
7408
7408
|
}, [
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7409
|
+
S("div", $2, [
|
|
7410
|
+
b(d.$slots, "alert-icon", {}, () => [
|
|
7411
|
+
J(D, {
|
|
7412
7412
|
name: L.value,
|
|
7413
7413
|
size: 24
|
|
7414
7414
|
}, null, 8, ["name"])
|
|
7415
7415
|
])
|
|
7416
7416
|
]),
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
C.description ? (
|
|
7417
|
+
S("div", Q2, [
|
|
7418
|
+
b(d.$slots, "content", {}, () => [
|
|
7419
|
+
S("p", G2, w(C.title), 1),
|
|
7420
|
+
C.description ? (l(), n("p", U2, w(C.description), 1)) : p("", !0)
|
|
7421
7421
|
])
|
|
7422
7422
|
]),
|
|
7423
|
-
C.closable ? (
|
|
7424
|
-
|
|
7423
|
+
C.closable ? (l(), n("div", z2, [
|
|
7424
|
+
b(d.$slots, "custom-close", {
|
|
7425
7425
|
close: A,
|
|
7426
7426
|
slotClass: "r-alert__close__button"
|
|
7427
7427
|
}, () => [
|
|
7428
|
-
|
|
7428
|
+
J(D, {
|
|
7429
7429
|
class: "r-alert__close__button",
|
|
7430
7430
|
name: "mdiClose",
|
|
7431
7431
|
size: 16,
|
|
7432
7432
|
onClick: A
|
|
7433
7433
|
})
|
|
7434
7434
|
])
|
|
7435
|
-
])) :
|
|
7435
|
+
])) : p("", !0)
|
|
7436
7436
|
], 2));
|
|
7437
7437
|
}
|
|
7438
|
-
}),
|
|
7438
|
+
}), V2 = "data:image/svg+xml,%3csvg%20width='27'%20height='28'%20viewBox='0%200%2027%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4993%2014C17.1827%2014%2020.166%2011.0167%2020.166%207.33334C20.166%203.65%2017.1827%200.666672%2013.4993%200.666672C9.81602%200.666672%206.83268%203.65%206.83268%207.33334C6.83268%2011.0167%209.81602%2014%2013.4993%2014ZM13.4993%2017.3333C9.04935%2017.3333%200.166016%2019.5667%200.166016%2024V25.6667C0.166016%2026.5833%200.916016%2027.3333%201.83268%2027.3333H25.166C26.0827%2027.3333%2026.8327%2026.5833%2026.8327%2025.6667V24C26.8327%2019.5667%2017.9493%2017.3333%2013.4993%2017.3333Z'%20fill='%234C5BE1'/%3e%3c/svg%3e", K2 = { class: "r-avatar__wrapper" }, q2 = ["alt", "src"], E0 = /* @__PURE__ */ E({
|
|
7439
7439
|
__name: "RAvatar",
|
|
7440
7440
|
props: {
|
|
7441
7441
|
type: { default: "image" },
|
|
7442
|
-
src: { default:
|
|
7442
|
+
src: { default: V2 },
|
|
7443
7443
|
alt: { default: "Avatar" },
|
|
7444
7444
|
size: { default: "2xl" },
|
|
7445
7445
|
online: { type: Boolean, default: !1 },
|
|
7446
7446
|
text: { default: "" }
|
|
7447
7447
|
},
|
|
7448
7448
|
setup(H) {
|
|
7449
|
-
const V = H, C =
|
|
7449
|
+
const V = H, C = O(() => ({
|
|
7450
7450
|
"r-avatar": !0,
|
|
7451
7451
|
[`r-avatar--${V.size}`]: !0
|
|
7452
|
-
})), M =
|
|
7452
|
+
})), M = O(() => V.type === "image" && !V.src), i = O(() => M.value ? V2 : V.src);
|
|
7453
7453
|
function L(A) {
|
|
7454
|
-
const
|
|
7455
|
-
return
|
|
7454
|
+
const d = A.split(" ");
|
|
7455
|
+
return d.length === 1 ? d[0].substring(0, 2) : `${d[0].charAt(0)}${d[1].charAt(0)}`;
|
|
7456
7456
|
}
|
|
7457
|
-
return (A,
|
|
7458
|
-
|
|
7459
|
-
class:
|
|
7457
|
+
return (A, d) => (l(), n("div", K2, [
|
|
7458
|
+
S("div", {
|
|
7459
|
+
class: g(C.value)
|
|
7460
7460
|
}, [
|
|
7461
|
-
V.type === "text" ? (
|
|
7461
|
+
V.type === "text" ? (l(), n("p", {
|
|
7462
7462
|
key: 0,
|
|
7463
|
-
class:
|
|
7464
|
-
}, w(L(V.text)), 3)) : (
|
|
7463
|
+
class: g(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
|
|
7464
|
+
}, w(L(V.text)), 3)) : (l(), n("img", {
|
|
7465
7465
|
key: 1,
|
|
7466
7466
|
alt: V.alt,
|
|
7467
|
-
class:
|
|
7467
|
+
class: g(["r-avatar__image", {
|
|
7468
7468
|
[`r-avatar__image--${V.size}`]: !0,
|
|
7469
7469
|
"r-avatar__image--anonymous": M.value
|
|
7470
7470
|
}]),
|
|
7471
7471
|
src: i.value
|
|
7472
|
-
}, null, 10,
|
|
7472
|
+
}, null, 10, q2))
|
|
7473
7473
|
], 2),
|
|
7474
|
-
V.online ? (
|
|
7474
|
+
V.online ? (l(), n("span", {
|
|
7475
7475
|
key: 0,
|
|
7476
|
-
class:
|
|
7476
|
+
class: g(["r-avatar__online", {
|
|
7477
7477
|
[`r-avatar__online--${V.size}`]: !0
|
|
7478
7478
|
}])
|
|
7479
|
-
}, null, 2)) :
|
|
7479
|
+
}, null, 2)) : p("", !0)
|
|
7480
7480
|
]));
|
|
7481
7481
|
}
|
|
7482
|
-
}),
|
|
7482
|
+
}), j2 = ["innerHTML"], _0 = /* @__PURE__ */ E({
|
|
7483
7483
|
__name: "RBadge",
|
|
7484
7484
|
props: {
|
|
7485
7485
|
variant: { default: "primary" },
|
|
@@ -7495,7 +7495,7 @@ const b2 = {
|
|
|
7495
7495
|
},
|
|
7496
7496
|
emits: ["click"],
|
|
7497
7497
|
setup(H) {
|
|
7498
|
-
const V = H, C =
|
|
7498
|
+
const V = H, C = O(() => ({
|
|
7499
7499
|
"r-badge": !0,
|
|
7500
7500
|
[`r-badge--content ${V.contentClass}`]: V.content,
|
|
7501
7501
|
[`r-badge--overlap-${V.placement}`]: V.overlap,
|
|
@@ -7505,20 +7505,23 @@ const b2 = {
|
|
|
7505
7505
|
[`r-badge--${V.variant}`]: V.variant,
|
|
7506
7506
|
[V.class]: V.class
|
|
7507
7507
|
}));
|
|
7508
|
-
return (M, i) => (
|
|
7509
|
-
class:
|
|
7508
|
+
return (M, i) => (l(), n("div", {
|
|
7509
|
+
class: g(["r-badge-wrapper group", [V.wrapperClass]])
|
|
7510
7510
|
}, [
|
|
7511
|
-
|
|
7512
|
-
class:
|
|
7511
|
+
S("span", {
|
|
7512
|
+
class: g([{ "animate-ping-2": V.animation }, C.value])
|
|
7513
7513
|
}, null, 2),
|
|
7514
|
-
|
|
7515
|
-
class:
|
|
7514
|
+
S("span", {
|
|
7515
|
+
class: g(C.value),
|
|
7516
7516
|
innerHTML: V.content
|
|
7517
|
-
}, null, 10,
|
|
7518
|
-
|
|
7517
|
+
}, null, 10, j2),
|
|
7518
|
+
b(M.$slots, "default")
|
|
7519
7519
|
], 2));
|
|
7520
7520
|
}
|
|
7521
|
-
}),
|
|
7521
|
+
}), X2 = ["disabled"], Y2 = {
|
|
7522
|
+
key: 0,
|
|
7523
|
+
class: "sr-only"
|
|
7524
|
+
}, W0 = /* @__PURE__ */ E({
|
|
7522
7525
|
__name: "RButton",
|
|
7523
7526
|
props: {
|
|
7524
7527
|
variant: { default: "default" },
|
|
@@ -7530,11 +7533,15 @@ const b2 = {
|
|
|
7530
7533
|
icon: { type: Boolean, default: !1 },
|
|
7531
7534
|
size: { default: "medium" },
|
|
7532
7535
|
height: { default: "" },
|
|
7533
|
-
block: { type: Boolean, default: !1 }
|
|
7536
|
+
block: { type: Boolean, default: !1 },
|
|
7537
|
+
ariaLabel: { default: "" },
|
|
7538
|
+
ariaPressed: { type: Boolean },
|
|
7539
|
+
ariaExpanded: { type: Boolean },
|
|
7540
|
+
ariaControls: { default: "" }
|
|
7534
7541
|
},
|
|
7535
7542
|
emits: ["click"],
|
|
7536
7543
|
setup(H) {
|
|
7537
|
-
const V = H, C =
|
|
7544
|
+
const V = H, C = O(() => ({
|
|
7538
7545
|
"r-button": !0,
|
|
7539
7546
|
[`r-button__${V.variant}`]: !0,
|
|
7540
7547
|
[`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
|
|
@@ -7542,54 +7549,66 @@ const b2 = {
|
|
|
7542
7549
|
[`r-button--${V.size || "medium"}`]: !0,
|
|
7543
7550
|
"r-button--only-icon": V.icon,
|
|
7544
7551
|
"r-button--block": V.block
|
|
7545
|
-
})), M =
|
|
7552
|
+
})), M = O(() => ({
|
|
7546
7553
|
small: 16,
|
|
7547
7554
|
medium: 16,
|
|
7548
7555
|
large: 20
|
|
7549
|
-
})[V.size || "medium"]), i =
|
|
7556
|
+
})[V.size || "medium"]), i = O(() => ({
|
|
7550
7557
|
height: V.height ? `${V.height}px` : ""
|
|
7558
|
+
})), L = O(() => ({
|
|
7559
|
+
"aria-label": V.ariaLabel || void 0,
|
|
7560
|
+
"aria-pressed": V.ariaPressed,
|
|
7561
|
+
"aria-expanded": V.ariaExpanded,
|
|
7562
|
+
"aria-controls": V.ariaControls || void 0,
|
|
7563
|
+
"aria-disabled": V.disabled,
|
|
7564
|
+
"aria-busy": V.loading,
|
|
7565
|
+
role: "button"
|
|
7551
7566
|
}));
|
|
7552
|
-
return (
|
|
7567
|
+
return (A, d) => (l(), n("button", T1({ ...A.$attrs, ...L.value }, {
|
|
7553
7568
|
class: C.value,
|
|
7554
|
-
disabled:
|
|
7569
|
+
disabled: A.disabled,
|
|
7555
7570
|
style: i.value,
|
|
7556
|
-
onClick:
|
|
7571
|
+
onClick: d[0] || (d[0] = (e) => A.$emit("click")),
|
|
7572
|
+
onKeydown: [
|
|
7573
|
+
d[1] || (d[1] = p1((e) => A.$emit("click"), ["enter"])),
|
|
7574
|
+
d[2] || (d[2] = p1(o1((e) => A.$emit("click"), ["prevent"]), ["space"]))
|
|
7575
|
+
]
|
|
7557
7576
|
}), [
|
|
7558
|
-
|
|
7577
|
+
A.loading ? (l(), n("span", Y2, "Loading")) : p("", !0),
|
|
7578
|
+
b(A.$slots, "prepend", {
|
|
7559
7579
|
onlyIcon: V.icon
|
|
7560
7580
|
}, () => [
|
|
7561
|
-
V.prependIcon ? (
|
|
7581
|
+
V.prependIcon ? (l(), x(D, {
|
|
7562
7582
|
key: 0,
|
|
7563
|
-
|
|
7583
|
+
"aria-hidden": "true",
|
|
7584
|
+
class: g(["r-button__prepend-icon", {
|
|
7564
7585
|
"r-button__prepend-icon--only": V.icon
|
|
7565
7586
|
}]),
|
|
7566
7587
|
name: V.prependIcon,
|
|
7567
7588
|
size: M.value
|
|
7568
|
-
}, null, 8, ["class", "name", "size"])) :
|
|
7589
|
+
}, null, 8, ["class", "name", "size"])) : p("", !0)
|
|
7569
7590
|
]),
|
|
7570
|
-
|
|
7571
|
-
|
|
7591
|
+
b(A.$slots, "default", { disabled: A.disabled }),
|
|
7592
|
+
b(A.$slots, "append", {
|
|
7572
7593
|
onlyIcon: V.icon
|
|
7573
7594
|
}, () => [
|
|
7574
|
-
!V.icon && V.appendIcon ? (
|
|
7595
|
+
!V.icon && V.appendIcon ? (l(), x(D, {
|
|
7575
7596
|
key: 0,
|
|
7597
|
+
"aria-hidden": "true",
|
|
7576
7598
|
class: "r-button__append-icon",
|
|
7577
7599
|
name: V.appendIcon,
|
|
7578
7600
|
size: M.value
|
|
7579
|
-
}, null, 8, ["name", "size"])) :
|
|
7601
|
+
}, null, 8, ["name", "size"])) : p("", !0)
|
|
7580
7602
|
])
|
|
7581
|
-
], 16,
|
|
7603
|
+
], 16, X2));
|
|
7582
7604
|
}
|
|
7583
|
-
}),
|
|
7605
|
+
}), J2 = { class: "r-checkbox-wrapper" }, C5 = { class: "r-checkbox-container" }, H5 = ["id", "aria-checked", "aria-describedby", "aria-disabled", "aria-invalid", "aria-label", "aria-required", "checked", "disabled", "indeterminate", "name", "required", "value", "onKeydown"], V5 = ["data-disabled"], L5 = { class: "r-checkbox-texts" }, M5 = ["data-disabled", "for"], i5 = {
|
|
7584
7606
|
key: 0,
|
|
7585
|
-
class: "
|
|
7586
|
-
},
|
|
7607
|
+
class: "sr-only"
|
|
7608
|
+
}, A5 = {
|
|
7587
7609
|
key: 0,
|
|
7588
|
-
class: "r-checkbox-
|
|
7589
|
-
},
|
|
7590
|
-
key: 1,
|
|
7591
|
-
class: "r-checkbox-texts__hint"
|
|
7592
|
-
}, s0 = /* @__PURE__ */ x({
|
|
7610
|
+
class: "r-checkbox-texts__details"
|
|
7611
|
+
}, e5 = ["id"], d5 = ["id"], N0 = /* @__PURE__ */ E({
|
|
7593
7612
|
__name: "RCheckbox",
|
|
7594
7613
|
props: {
|
|
7595
7614
|
id: { default: "" },
|
|
@@ -7599,81 +7618,110 @@ const b2 = {
|
|
|
7599
7618
|
disabled: { default: !1 },
|
|
7600
7619
|
hint: { default: "" },
|
|
7601
7620
|
errorMsg: { default: "" },
|
|
7602
|
-
hideDetails: { type: Boolean }
|
|
7621
|
+
hideDetails: { type: Boolean },
|
|
7622
|
+
required: { type: Boolean, default: !1 },
|
|
7623
|
+
ariaLabel: { default: "" },
|
|
7624
|
+
name: { default: "" },
|
|
7625
|
+
value: { type: [String, Number, Boolean], default: "" }
|
|
7603
7626
|
},
|
|
7604
7627
|
emits: ["update:modelValue"],
|
|
7605
7628
|
setup(H, { emit: V }) {
|
|
7606
|
-
const C = H, M = V, i =
|
|
7629
|
+
const C = H, M = V, i = q1({
|
|
7607
7630
|
checked: !1,
|
|
7608
7631
|
indeterminate: !1
|
|
7609
7632
|
}), L = {
|
|
7610
7633
|
checked: "mdiCheck",
|
|
7611
7634
|
unchecked: "",
|
|
7612
7635
|
indeterminate: "mdiMinus"
|
|
7613
|
-
}, A =
|
|
7636
|
+
}, A = O(() => i.indeterminate ? L.indeterminate : i.checked ? L.checked : L.unchecked), d = O(() => ({
|
|
7614
7637
|
"r-checkbox": !0,
|
|
7615
7638
|
"r-checkbox--checked": i.checked,
|
|
7616
7639
|
"r-checkbox--disabled": C.disabled,
|
|
7617
7640
|
"r-checkbox--indeterminate": i.indeterminate,
|
|
7618
7641
|
"r-checkbox--error": !!C.errorMsg
|
|
7619
7642
|
}));
|
|
7620
|
-
function
|
|
7621
|
-
C.disabled || (i.checked =
|
|
7643
|
+
function e(a) {
|
|
7644
|
+
C.disabled || (i.checked = a.target.checked, i.indeterminate = !1, M("update:modelValue", i.checked));
|
|
7622
7645
|
}
|
|
7623
|
-
|
|
7646
|
+
N(
|
|
7624
7647
|
() => C.indeterminate,
|
|
7625
|
-
(
|
|
7626
|
-
i.indeterminate =
|
|
7648
|
+
(a) => {
|
|
7649
|
+
i.indeterminate = a, a === !0 && (i.checked = !1, M("update:modelValue", i.checked));
|
|
7627
7650
|
},
|
|
7628
7651
|
{
|
|
7629
7652
|
// need immediate to set the state on first render for storybook
|
|
7630
7653
|
// TODO: find a better way to do this
|
|
7631
7654
|
immediate: !0
|
|
7632
7655
|
}
|
|
7633
|
-
),
|
|
7656
|
+
), N(
|
|
7634
7657
|
() => C.modelValue,
|
|
7635
|
-
(
|
|
7636
|
-
i.checked =
|
|
7658
|
+
(a) => {
|
|
7659
|
+
i.checked = a;
|
|
7637
7660
|
},
|
|
7638
7661
|
{
|
|
7639
7662
|
// need immediate to set the state on first render for storybook
|
|
7640
7663
|
// TODO: find a better way to do this
|
|
7641
7664
|
immediate: !0
|
|
7642
7665
|
}
|
|
7643
|
-
)
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7666
|
+
);
|
|
7667
|
+
const o = O(() => C.id || `checkbox-${Math.random().toString(36).substr(2, 9)}`);
|
|
7668
|
+
return (a, Z) => (l(), n("div", J2, [
|
|
7669
|
+
S("div", C5, [
|
|
7670
|
+
S("input", {
|
|
7671
|
+
id: o.value,
|
|
7672
|
+
"aria-checked": i.indeterminate ? "mixed" : void 0,
|
|
7673
|
+
"aria-describedby": C.errorMsg ? `${o.value}-error` : C.hint ? `${o.value}-hint` : void 0,
|
|
7674
|
+
"aria-disabled": C.disabled,
|
|
7675
|
+
"aria-invalid": !!C.errorMsg,
|
|
7676
|
+
"aria-label": C.ariaLabel || C.label,
|
|
7677
|
+
"aria-required": C.required,
|
|
7647
7678
|
checked: i.checked,
|
|
7648
7679
|
class: "r-checkbox-container__input",
|
|
7649
7680
|
disabled: C.disabled,
|
|
7650
7681
|
indeterminate: i.indeterminate,
|
|
7682
|
+
name: a.name,
|
|
7683
|
+
required: a.required,
|
|
7651
7684
|
type: "checkbox",
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7685
|
+
value: a.value,
|
|
7686
|
+
onChange: e,
|
|
7687
|
+
onKeydown: p1(o1(e, ["prevent"]), ["space"])
|
|
7688
|
+
}, null, 40, H5),
|
|
7689
|
+
S("div", {
|
|
7690
|
+
"aria-hidden": "true",
|
|
7691
|
+
class: g(d.value),
|
|
7656
7692
|
"data-disabled": C.disabled
|
|
7657
7693
|
}, [
|
|
7658
|
-
|
|
7694
|
+
J(D, {
|
|
7659
7695
|
name: A.value,
|
|
7660
7696
|
size: 24
|
|
7661
7697
|
}, null, 8, ["name"])
|
|
7662
|
-
], 10,
|
|
7698
|
+
], 10, V5)
|
|
7663
7699
|
]),
|
|
7664
|
-
|
|
7665
|
-
|
|
7700
|
+
S("div", L5, [
|
|
7701
|
+
S("label", {
|
|
7666
7702
|
class: "r-checkbox-texts__label",
|
|
7667
7703
|
"data-disabled": C.disabled,
|
|
7668
|
-
for:
|
|
7669
|
-
},
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
])
|
|
7704
|
+
for: o.value
|
|
7705
|
+
}, [
|
|
7706
|
+
a.required ? (l(), n("span", i5, "Required - ")) : p("", !0),
|
|
7707
|
+
d1(" " + w(a.label), 1)
|
|
7708
|
+
], 8, M5),
|
|
7709
|
+
!a.hideDetails && (a.errorMsg || a.hint) ? (l(), n("div", A5, [
|
|
7710
|
+
a.errorMsg ? (l(), n("p", {
|
|
7711
|
+
key: 0,
|
|
7712
|
+
id: `${o.value}-error`,
|
|
7713
|
+
class: "r-checkbox-texts__error",
|
|
7714
|
+
role: "alert"
|
|
7715
|
+
}, w(a.errorMsg), 9, e5)) : a.hint ? (l(), n("p", {
|
|
7716
|
+
key: 1,
|
|
7717
|
+
id: `${o.value}-hint`,
|
|
7718
|
+
class: "r-checkbox-texts__hint"
|
|
7719
|
+
}, w(a.hint), 9, d5)) : p("", !0)
|
|
7720
|
+
])) : p("", !0)
|
|
7673
7721
|
])
|
|
7674
7722
|
]));
|
|
7675
7723
|
}
|
|
7676
|
-
}),
|
|
7724
|
+
}), t5 = /* @__PURE__ */ E({
|
|
7677
7725
|
__name: "RChip",
|
|
7678
7726
|
props: {
|
|
7679
7727
|
variant: { default: "primary" },
|
|
@@ -7687,195 +7735,195 @@ const b2 = {
|
|
|
7687
7735
|
},
|
|
7688
7736
|
emits: ["click:chip", "click:close"],
|
|
7689
7737
|
setup(H, { emit: V }) {
|
|
7690
|
-
const C = H, M = V, i =
|
|
7738
|
+
const C = H, M = V, i = O(() => ({
|
|
7691
7739
|
"r-chip": !0,
|
|
7692
7740
|
"r-chip--disabled": C.disabled,
|
|
7693
7741
|
[`r-chip__${C.variant}`]: C.variant,
|
|
7694
7742
|
[`r-chip__${C.variant}--ghost`]: C.ghost,
|
|
7695
7743
|
"r-chip--clearable": C.clearable
|
|
7696
7744
|
}));
|
|
7697
|
-
function L(
|
|
7698
|
-
C.clearable &&
|
|
7745
|
+
function L(e) {
|
|
7746
|
+
C.clearable && e.stopPropagation(), !C.disabled && M("click:chip", e);
|
|
7699
7747
|
}
|
|
7700
|
-
function A(
|
|
7701
|
-
C.disabled || !C.clearable || (
|
|
7748
|
+
function A(e) {
|
|
7749
|
+
C.disabled || !C.clearable || (e.stopPropagation(), M("click:close", e));
|
|
7702
7750
|
}
|
|
7703
|
-
const
|
|
7704
|
-
return (
|
|
7705
|
-
class:
|
|
7751
|
+
const d = O(() => C.clearable ? "mdiClose" : C.appendIcon);
|
|
7752
|
+
return (e, o) => (l(), n("div", {
|
|
7753
|
+
class: g(i.value)
|
|
7706
7754
|
}, [
|
|
7707
|
-
|
|
7755
|
+
S("div", {
|
|
7708
7756
|
class: "r-chip__content",
|
|
7709
|
-
onClick:
|
|
7757
|
+
onClick: o[0] || (o[0] = (a) => L(a))
|
|
7710
7758
|
}, [
|
|
7711
|
-
|
|
7759
|
+
b(e.$slots, "prepend", {
|
|
7712
7760
|
disabled: C.disabled
|
|
7713
7761
|
}, () => [
|
|
7714
|
-
C.prependIcon ? (
|
|
7762
|
+
C.prependIcon ? (l(), x(D, {
|
|
7715
7763
|
key: 0,
|
|
7716
7764
|
"aria-disabled": C.disabled,
|
|
7717
7765
|
class: "r-chip__content__prepend-icon",
|
|
7718
7766
|
name: C.prependIcon,
|
|
7719
7767
|
size: 12
|
|
7720
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7768
|
+
}, null, 8, ["aria-disabled", "name"])) : p("", !0)
|
|
7721
7769
|
]),
|
|
7722
|
-
|
|
7723
|
-
class:
|
|
7770
|
+
S("span", {
|
|
7771
|
+
class: g(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
|
|
7724
7772
|
}, w(C.label), 3)
|
|
7725
7773
|
]),
|
|
7726
|
-
|
|
7774
|
+
b(e.$slots, "append", {
|
|
7727
7775
|
disabled: C.disabled
|
|
7728
7776
|
}, () => [
|
|
7729
|
-
|
|
7777
|
+
d.value ? (l(), x(D, {
|
|
7730
7778
|
key: 0,
|
|
7731
7779
|
"aria-disabled": C.disabled,
|
|
7732
7780
|
class: "r-chip__content__append-icon",
|
|
7733
|
-
name:
|
|
7781
|
+
name: d.value,
|
|
7734
7782
|
size: 12,
|
|
7735
|
-
onClick:
|
|
7736
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7783
|
+
onClick: o[1] || (o[1] = (a) => A(a))
|
|
7784
|
+
}, null, 8, ["aria-disabled", "name"])) : p("", !0)
|
|
7737
7785
|
])
|
|
7738
7786
|
], 2));
|
|
7739
7787
|
}
|
|
7740
7788
|
});
|
|
7741
|
-
function
|
|
7742
|
-
return
|
|
7789
|
+
function m5(H) {
|
|
7790
|
+
return v2() ? (B2(H), !0) : !1;
|
|
7743
7791
|
}
|
|
7744
|
-
function
|
|
7745
|
-
return typeof H == "function" ? H() :
|
|
7792
|
+
function a2(H) {
|
|
7793
|
+
return typeof H == "function" ? H() : L1(H);
|
|
7746
7794
|
}
|
|
7747
|
-
const
|
|
7795
|
+
const r2 = typeof window < "u" && typeof document < "u";
|
|
7748
7796
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7749
|
-
const
|
|
7750
|
-
},
|
|
7751
|
-
function
|
|
7797
|
+
const l5 = Object.prototype.toString, o5 = (H) => l5.call(H) === "[object Object]", Q1 = () => {
|
|
7798
|
+
}, a5 = /* @__PURE__ */ r5();
|
|
7799
|
+
function r5() {
|
|
7752
7800
|
var H;
|
|
7753
|
-
return
|
|
7801
|
+
return r2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7754
7802
|
}
|
|
7755
|
-
function
|
|
7803
|
+
function s1(H) {
|
|
7756
7804
|
var V;
|
|
7757
|
-
const C =
|
|
7805
|
+
const C = a2(H);
|
|
7758
7806
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
7759
7807
|
}
|
|
7760
|
-
const
|
|
7761
|
-
function
|
|
7808
|
+
const n2 = r2 ? window : void 0;
|
|
7809
|
+
function $1(...H) {
|
|
7762
7810
|
let V, C, M, i;
|
|
7763
|
-
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V =
|
|
7764
|
-
return
|
|
7811
|
+
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V = n2) : [V, C, M, i] = H, !V)
|
|
7812
|
+
return Q1;
|
|
7765
7813
|
Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
|
|
7766
7814
|
const L = [], A = () => {
|
|
7767
|
-
L.forEach((
|
|
7768
|
-
},
|
|
7769
|
-
() => [
|
|
7770
|
-
([
|
|
7771
|
-
if (A(), !
|
|
7815
|
+
L.forEach((a) => a()), L.length = 0;
|
|
7816
|
+
}, d = (a, Z, r, t) => (a.addEventListener(Z, r, t), () => a.removeEventListener(Z, r, t)), e = N(
|
|
7817
|
+
() => [s1(V), a2(i)],
|
|
7818
|
+
([a, Z]) => {
|
|
7819
|
+
if (A(), !a)
|
|
7772
7820
|
return;
|
|
7773
|
-
const
|
|
7821
|
+
const r = o5(Z) ? { ...Z } : Z;
|
|
7774
7822
|
L.push(
|
|
7775
|
-
...C.flatMap((
|
|
7823
|
+
...C.flatMap((t) => M.map((u) => d(a, t, u, r)))
|
|
7776
7824
|
);
|
|
7777
7825
|
},
|
|
7778
7826
|
{ immediate: !0, flush: "post" }
|
|
7779
|
-
),
|
|
7780
|
-
|
|
7827
|
+
), o = () => {
|
|
7828
|
+
e(), A();
|
|
7781
7829
|
};
|
|
7782
|
-
return
|
|
7830
|
+
return m5(o), o;
|
|
7783
7831
|
}
|
|
7784
|
-
let
|
|
7785
|
-
function
|
|
7786
|
-
const { window: M =
|
|
7832
|
+
let L2 = !1;
|
|
7833
|
+
function n5(H, V, C = {}) {
|
|
7834
|
+
const { window: M = n2, ignore: i = [], capture: L = !0, detectIframe: A = !1 } = C;
|
|
7787
7835
|
if (!M)
|
|
7788
7836
|
return;
|
|
7789
|
-
|
|
7790
|
-
let
|
|
7791
|
-
const
|
|
7792
|
-
if (typeof
|
|
7793
|
-
return Array.from(M.document.querySelectorAll(
|
|
7837
|
+
a5 && !L2 && (L2 = !0, Array.from(M.document.body.children).forEach((r) => r.addEventListener("click", Q1)), M.document.documentElement.addEventListener("click", Q1));
|
|
7838
|
+
let d = !0;
|
|
7839
|
+
const e = (r) => i.some((t) => {
|
|
7840
|
+
if (typeof t == "string")
|
|
7841
|
+
return Array.from(M.document.querySelectorAll(t)).some((u) => u === r.target || r.composedPath().includes(u));
|
|
7794
7842
|
{
|
|
7795
|
-
const
|
|
7796
|
-
return
|
|
7843
|
+
const u = s1(t);
|
|
7844
|
+
return u && (r.target === u || r.composedPath().includes(u));
|
|
7797
7845
|
}
|
|
7798
|
-
}),
|
|
7799
|
-
|
|
7800
|
-
const
|
|
7801
|
-
if (!(!
|
|
7802
|
-
if (
|
|
7803
|
-
|
|
7846
|
+
}), a = [
|
|
7847
|
+
$1(M, "click", (r) => {
|
|
7848
|
+
const t = s1(H);
|
|
7849
|
+
if (!(!t || t === r.target || r.composedPath().includes(t))) {
|
|
7850
|
+
if (r.detail === 0 && (d = !e(r)), !d) {
|
|
7851
|
+
d = !0;
|
|
7804
7852
|
return;
|
|
7805
7853
|
}
|
|
7806
|
-
V(
|
|
7854
|
+
V(r);
|
|
7807
7855
|
}
|
|
7808
7856
|
}, { passive: !0, capture: L }),
|
|
7809
|
-
|
|
7810
|
-
const
|
|
7811
|
-
|
|
7857
|
+
$1(M, "pointerdown", (r) => {
|
|
7858
|
+
const t = s1(H);
|
|
7859
|
+
d = !e(r) && !!(t && !r.composedPath().includes(t));
|
|
7812
7860
|
}, { passive: !0 }),
|
|
7813
|
-
A &&
|
|
7861
|
+
A && $1(M, "blur", (r) => {
|
|
7814
7862
|
setTimeout(() => {
|
|
7815
|
-
var
|
|
7816
|
-
const
|
|
7817
|
-
((
|
|
7863
|
+
var t;
|
|
7864
|
+
const u = s1(H);
|
|
7865
|
+
((t = M.document.activeElement) == null ? void 0 : t.tagName) === "IFRAME" && !(u != null && u.contains(M.document.activeElement)) && V(r);
|
|
7818
7866
|
}, 0);
|
|
7819
7867
|
})
|
|
7820
7868
|
].filter(Boolean);
|
|
7821
|
-
return () =>
|
|
7869
|
+
return () => a.forEach((r) => r());
|
|
7822
7870
|
}
|
|
7823
|
-
function
|
|
7871
|
+
function Z5() {
|
|
7824
7872
|
function H() {
|
|
7825
7873
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
7826
7874
|
}
|
|
7827
7875
|
return `${H() + H()}-${H()}-${H()}-${H()}-${H()}${H()}${H()}`;
|
|
7828
7876
|
}
|
|
7829
|
-
const
|
|
7877
|
+
const u5 = ["top", "right", "bottom", "left"], f1 = Math.min, n1 = Math.max, F1 = Math.round, A1 = (H) => ({
|
|
7830
7878
|
x: H,
|
|
7831
7879
|
y: H
|
|
7832
|
-
}),
|
|
7880
|
+
}), S5 = {
|
|
7833
7881
|
left: "right",
|
|
7834
7882
|
right: "left",
|
|
7835
7883
|
bottom: "top",
|
|
7836
7884
|
top: "bottom"
|
|
7837
|
-
},
|
|
7885
|
+
}, s5 = {
|
|
7838
7886
|
start: "end",
|
|
7839
7887
|
end: "start"
|
|
7840
7888
|
};
|
|
7841
|
-
function
|
|
7842
|
-
return
|
|
7889
|
+
function G1(H, V, C) {
|
|
7890
|
+
return n1(H, f1(V, C));
|
|
7843
7891
|
}
|
|
7844
|
-
function
|
|
7892
|
+
function S1(H, V) {
|
|
7845
7893
|
return typeof H == "function" ? H(V) : H;
|
|
7846
7894
|
}
|
|
7847
|
-
function
|
|
7895
|
+
function a1(H) {
|
|
7848
7896
|
return H.split("-")[0];
|
|
7849
7897
|
}
|
|
7850
|
-
function
|
|
7898
|
+
function g1(H) {
|
|
7851
7899
|
return H.split("-")[1];
|
|
7852
7900
|
}
|
|
7853
|
-
function
|
|
7901
|
+
function Z2(H) {
|
|
7854
7902
|
return H === "x" ? "y" : "x";
|
|
7855
7903
|
}
|
|
7856
|
-
function
|
|
7904
|
+
function Y1(H) {
|
|
7857
7905
|
return H === "y" ? "height" : "width";
|
|
7858
7906
|
}
|
|
7859
|
-
function
|
|
7860
|
-
return ["top", "bottom"].includes(
|
|
7907
|
+
function E1(H) {
|
|
7908
|
+
return ["top", "bottom"].includes(a1(H)) ? "y" : "x";
|
|
7861
7909
|
}
|
|
7862
|
-
function
|
|
7863
|
-
return
|
|
7910
|
+
function J1(H) {
|
|
7911
|
+
return Z2(E1(H));
|
|
7864
7912
|
}
|
|
7865
|
-
function
|
|
7913
|
+
function c5(H, V, C) {
|
|
7866
7914
|
C === void 0 && (C = !1);
|
|
7867
|
-
const M =
|
|
7915
|
+
const M = g1(H), i = J1(H), L = Y1(i);
|
|
7868
7916
|
let A = i === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
|
|
7869
|
-
return V.reference[L] > V.floating[L] && (A =
|
|
7917
|
+
return V.reference[L] > V.floating[L] && (A = R1(A)), [A, R1(A)];
|
|
7870
7918
|
}
|
|
7871
|
-
function
|
|
7872
|
-
const V =
|
|
7873
|
-
return [
|
|
7919
|
+
function p5(H) {
|
|
7920
|
+
const V = R1(H);
|
|
7921
|
+
return [U1(H), V, U1(V)];
|
|
7874
7922
|
}
|
|
7875
|
-
function
|
|
7876
|
-
return H.replace(/start|end/g, (V) =>
|
|
7923
|
+
function U1(H) {
|
|
7924
|
+
return H.replace(/start|end/g, (V) => s5[V]);
|
|
7877
7925
|
}
|
|
7878
|
-
function
|
|
7926
|
+
function O5(H, V, C) {
|
|
7879
7927
|
const M = ["left", "right"], i = ["right", "left"], L = ["top", "bottom"], A = ["bottom", "top"];
|
|
7880
7928
|
switch (H) {
|
|
7881
7929
|
case "top":
|
|
@@ -7888,15 +7936,15 @@ function n5(H, V, C) {
|
|
|
7888
7936
|
return [];
|
|
7889
7937
|
}
|
|
7890
7938
|
}
|
|
7891
|
-
function
|
|
7892
|
-
const i =
|
|
7893
|
-
let L =
|
|
7894
|
-
return i && (L = L.map((A) => A + "-" + i), V && (L = L.concat(L.map(
|
|
7939
|
+
function f5(H, V, C, M) {
|
|
7940
|
+
const i = g1(H);
|
|
7941
|
+
let L = O5(a1(H), C === "start", M);
|
|
7942
|
+
return i && (L = L.map((A) => A + "-" + i), V && (L = L.concat(L.map(U1)))), L;
|
|
7895
7943
|
}
|
|
7896
|
-
function
|
|
7897
|
-
return H.replace(/left|right|bottom|top/g, (V) =>
|
|
7944
|
+
function R1(H) {
|
|
7945
|
+
return H.replace(/left|right|bottom|top/g, (V) => S5[V]);
|
|
7898
7946
|
}
|
|
7899
|
-
function
|
|
7947
|
+
function h5(H) {
|
|
7900
7948
|
return {
|
|
7901
7949
|
top: 0,
|
|
7902
7950
|
right: 0,
|
|
@@ -7905,15 +7953,15 @@ function a5(H) {
|
|
|
7905
7953
|
...H
|
|
7906
7954
|
};
|
|
7907
7955
|
}
|
|
7908
|
-
function
|
|
7909
|
-
return typeof H != "number" ?
|
|
7956
|
+
function u2(H) {
|
|
7957
|
+
return typeof H != "number" ? h5(H) : {
|
|
7910
7958
|
top: H,
|
|
7911
7959
|
right: H,
|
|
7912
7960
|
bottom: H,
|
|
7913
7961
|
left: H
|
|
7914
7962
|
};
|
|
7915
7963
|
}
|
|
7916
|
-
function
|
|
7964
|
+
function x1(H) {
|
|
7917
7965
|
return {
|
|
7918
7966
|
...H,
|
|
7919
7967
|
top: H.y,
|
|
@@ -7922,119 +7970,119 @@ function b1(H) {
|
|
|
7922
7970
|
bottom: H.y + H.height
|
|
7923
7971
|
};
|
|
7924
7972
|
}
|
|
7925
|
-
function
|
|
7973
|
+
function M2(H, V, C) {
|
|
7926
7974
|
let {
|
|
7927
7975
|
reference: M,
|
|
7928
7976
|
floating: i
|
|
7929
7977
|
} = H;
|
|
7930
|
-
const L =
|
|
7931
|
-
let
|
|
7932
|
-
switch (
|
|
7978
|
+
const L = E1(V), A = J1(V), d = Y1(A), e = a1(V), o = L === "y", a = M.x + M.width / 2 - i.width / 2, Z = M.y + M.height / 2 - i.height / 2, r = M[d] / 2 - i[d] / 2;
|
|
7979
|
+
let t;
|
|
7980
|
+
switch (e) {
|
|
7933
7981
|
case "top":
|
|
7934
|
-
|
|
7935
|
-
x:
|
|
7982
|
+
t = {
|
|
7983
|
+
x: a,
|
|
7936
7984
|
y: M.y - i.height
|
|
7937
7985
|
};
|
|
7938
7986
|
break;
|
|
7939
7987
|
case "bottom":
|
|
7940
|
-
|
|
7941
|
-
x:
|
|
7988
|
+
t = {
|
|
7989
|
+
x: a,
|
|
7942
7990
|
y: M.y + M.height
|
|
7943
7991
|
};
|
|
7944
7992
|
break;
|
|
7945
7993
|
case "right":
|
|
7946
|
-
|
|
7994
|
+
t = {
|
|
7947
7995
|
x: M.x + M.width,
|
|
7948
|
-
y:
|
|
7996
|
+
y: Z
|
|
7949
7997
|
};
|
|
7950
7998
|
break;
|
|
7951
7999
|
case "left":
|
|
7952
|
-
|
|
8000
|
+
t = {
|
|
7953
8001
|
x: M.x - i.width,
|
|
7954
|
-
y:
|
|
8002
|
+
y: Z
|
|
7955
8003
|
};
|
|
7956
8004
|
break;
|
|
7957
8005
|
default:
|
|
7958
|
-
|
|
8006
|
+
t = {
|
|
7959
8007
|
x: M.x,
|
|
7960
8008
|
y: M.y
|
|
7961
8009
|
};
|
|
7962
8010
|
}
|
|
7963
|
-
switch (
|
|
8011
|
+
switch (g1(V)) {
|
|
7964
8012
|
case "start":
|
|
7965
|
-
|
|
8013
|
+
t[A] -= r * (C && o ? -1 : 1);
|
|
7966
8014
|
break;
|
|
7967
8015
|
case "end":
|
|
7968
|
-
|
|
8016
|
+
t[A] += r * (C && o ? -1 : 1);
|
|
7969
8017
|
break;
|
|
7970
8018
|
}
|
|
7971
|
-
return
|
|
8019
|
+
return t;
|
|
7972
8020
|
}
|
|
7973
|
-
const
|
|
8021
|
+
const g5 = async (H, V, C) => {
|
|
7974
8022
|
const {
|
|
7975
8023
|
placement: M = "bottom",
|
|
7976
8024
|
strategy: i = "absolute",
|
|
7977
8025
|
middleware: L = [],
|
|
7978
8026
|
platform: A
|
|
7979
|
-
} = C,
|
|
7980
|
-
let
|
|
8027
|
+
} = C, d = L.filter(Boolean), e = await (A.isRTL == null ? void 0 : A.isRTL(V));
|
|
8028
|
+
let o = await A.getElementRects({
|
|
7981
8029
|
reference: H,
|
|
7982
8030
|
floating: V,
|
|
7983
8031
|
strategy: i
|
|
7984
8032
|
}), {
|
|
7985
|
-
x:
|
|
7986
|
-
y:
|
|
7987
|
-
} =
|
|
7988
|
-
for (let
|
|
8033
|
+
x: a,
|
|
8034
|
+
y: Z
|
|
8035
|
+
} = M2(o, M, e), r = M, t = {}, u = 0;
|
|
8036
|
+
for (let k = 0; k < d.length; k++) {
|
|
7989
8037
|
const {
|
|
7990
|
-
name:
|
|
7991
|
-
fn:
|
|
7992
|
-
} =
|
|
7993
|
-
x:
|
|
7994
|
-
y:
|
|
7995
|
-
data:
|
|
7996
|
-
reset:
|
|
7997
|
-
} = await
|
|
7998
|
-
x:
|
|
7999
|
-
y:
|
|
8038
|
+
name: P,
|
|
8039
|
+
fn: v
|
|
8040
|
+
} = d[k], {
|
|
8041
|
+
x: y,
|
|
8042
|
+
y: T,
|
|
8043
|
+
data: s,
|
|
8044
|
+
reset: B
|
|
8045
|
+
} = await v({
|
|
8046
|
+
x: a,
|
|
8047
|
+
y: Z,
|
|
8000
8048
|
initialPlacement: M,
|
|
8001
|
-
placement:
|
|
8049
|
+
placement: r,
|
|
8002
8050
|
strategy: i,
|
|
8003
|
-
middlewareData:
|
|
8004
|
-
rects:
|
|
8051
|
+
middlewareData: t,
|
|
8052
|
+
rects: o,
|
|
8005
8053
|
platform: A,
|
|
8006
8054
|
elements: {
|
|
8007
8055
|
reference: H,
|
|
8008
8056
|
floating: V
|
|
8009
8057
|
}
|
|
8010
8058
|
});
|
|
8011
|
-
if (
|
|
8012
|
-
...
|
|
8013
|
-
[
|
|
8014
|
-
...
|
|
8015
|
-
...
|
|
8059
|
+
if (a = y ?? a, Z = T ?? Z, t = {
|
|
8060
|
+
...t,
|
|
8061
|
+
[P]: {
|
|
8062
|
+
...t[P],
|
|
8063
|
+
...s
|
|
8016
8064
|
}
|
|
8017
|
-
},
|
|
8018
|
-
|
|
8065
|
+
}, B && u <= 50) {
|
|
8066
|
+
u++, typeof B == "object" && (B.placement && (r = B.placement), B.rects && (o = B.rects === !0 ? await A.getElementRects({
|
|
8019
8067
|
reference: H,
|
|
8020
8068
|
floating: V,
|
|
8021
8069
|
strategy: i
|
|
8022
|
-
}) :
|
|
8023
|
-
x:
|
|
8024
|
-
y:
|
|
8025
|
-
} =
|
|
8070
|
+
}) : B.rects), {
|
|
8071
|
+
x: a,
|
|
8072
|
+
y: Z
|
|
8073
|
+
} = M2(o, r, e)), k = -1;
|
|
8026
8074
|
continue;
|
|
8027
8075
|
}
|
|
8028
8076
|
}
|
|
8029
8077
|
return {
|
|
8030
|
-
x:
|
|
8031
|
-
y:
|
|
8032
|
-
placement:
|
|
8078
|
+
x: a,
|
|
8079
|
+
y: Z,
|
|
8080
|
+
placement: r,
|
|
8033
8081
|
strategy: i,
|
|
8034
|
-
middlewareData:
|
|
8082
|
+
middlewareData: t
|
|
8035
8083
|
};
|
|
8036
8084
|
};
|
|
8037
|
-
async function
|
|
8085
|
+
async function D1(H, V) {
|
|
8038
8086
|
var C;
|
|
8039
8087
|
V === void 0 && (V = {});
|
|
8040
8088
|
const {
|
|
@@ -8042,42 +8090,42 @@ async function w1(H, V) {
|
|
|
8042
8090
|
y: i,
|
|
8043
8091
|
platform: L,
|
|
8044
8092
|
rects: A,
|
|
8045
|
-
elements:
|
|
8046
|
-
strategy:
|
|
8093
|
+
elements: d,
|
|
8094
|
+
strategy: e
|
|
8047
8095
|
} = H, {
|
|
8048
|
-
boundary:
|
|
8049
|
-
rootBoundary:
|
|
8050
|
-
elementContext:
|
|
8051
|
-
altBoundary:
|
|
8052
|
-
padding:
|
|
8053
|
-
} =
|
|
8054
|
-
element: (C = await (L.isElement == null ? void 0 : L.isElement(
|
|
8055
|
-
boundary:
|
|
8056
|
-
rootBoundary:
|
|
8057
|
-
strategy:
|
|
8058
|
-
})),
|
|
8096
|
+
boundary: o = "clippingAncestors",
|
|
8097
|
+
rootBoundary: a = "viewport",
|
|
8098
|
+
elementContext: Z = "floating",
|
|
8099
|
+
altBoundary: r = !1,
|
|
8100
|
+
padding: t = 0
|
|
8101
|
+
} = S1(V, H), u = u2(t), P = d[r ? Z === "floating" ? "reference" : "floating" : Z], v = x1(await L.getClippingRect({
|
|
8102
|
+
element: (C = await (L.isElement == null ? void 0 : L.isElement(P))) == null || C ? P : P.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(d.floating)),
|
|
8103
|
+
boundary: o,
|
|
8104
|
+
rootBoundary: a,
|
|
8105
|
+
strategy: e
|
|
8106
|
+
})), y = Z === "floating" ? {
|
|
8059
8107
|
...A.floating,
|
|
8060
8108
|
x: M,
|
|
8061
8109
|
y: i
|
|
8062
|
-
} : A.reference,
|
|
8110
|
+
} : A.reference, T = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(d.floating)), s = await (L.isElement == null ? void 0 : L.isElement(T)) ? await (L.getScale == null ? void 0 : L.getScale(T)) || {
|
|
8063
8111
|
x: 1,
|
|
8064
8112
|
y: 1
|
|
8065
8113
|
} : {
|
|
8066
8114
|
x: 1,
|
|
8067
8115
|
y: 1
|
|
8068
|
-
},
|
|
8069
|
-
rect:
|
|
8070
|
-
offsetParent:
|
|
8071
|
-
strategy:
|
|
8072
|
-
}) :
|
|
8116
|
+
}, B = x1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
8117
|
+
rect: y,
|
|
8118
|
+
offsetParent: T,
|
|
8119
|
+
strategy: e
|
|
8120
|
+
}) : y);
|
|
8073
8121
|
return {
|
|
8074
|
-
top: (
|
|
8075
|
-
bottom: (
|
|
8076
|
-
left: (
|
|
8077
|
-
right: (
|
|
8122
|
+
top: (v.top - B.top + u.top) / s.y,
|
|
8123
|
+
bottom: (B.bottom - v.bottom + u.bottom) / s.y,
|
|
8124
|
+
left: (v.left - B.left + u.left) / s.x,
|
|
8125
|
+
right: (B.right - v.right + u.right) / s.x
|
|
8078
8126
|
};
|
|
8079
8127
|
}
|
|
8080
|
-
const
|
|
8128
|
+
const k5 = (H) => ({
|
|
8081
8129
|
name: "arrow",
|
|
8082
8130
|
options: H,
|
|
8083
8131
|
async fn(V) {
|
|
@@ -8087,34 +8135,34 @@ const u5 = (H) => ({
|
|
|
8087
8135
|
placement: i,
|
|
8088
8136
|
rects: L,
|
|
8089
8137
|
platform: A,
|
|
8090
|
-
elements:
|
|
8091
|
-
middlewareData:
|
|
8138
|
+
elements: d,
|
|
8139
|
+
middlewareData: e
|
|
8092
8140
|
} = V, {
|
|
8093
|
-
element:
|
|
8094
|
-
padding:
|
|
8095
|
-
} =
|
|
8096
|
-
if (
|
|
8141
|
+
element: o,
|
|
8142
|
+
padding: a = 0
|
|
8143
|
+
} = S1(H, V) || {};
|
|
8144
|
+
if (o == null)
|
|
8097
8145
|
return {};
|
|
8098
|
-
const
|
|
8146
|
+
const Z = u2(a), r = {
|
|
8099
8147
|
x: C,
|
|
8100
8148
|
y: M
|
|
8101
|
-
},
|
|
8102
|
-
let
|
|
8103
|
-
(!
|
|
8104
|
-
const
|
|
8149
|
+
}, t = J1(i), u = Y1(t), k = await A.getDimensions(o), P = t === "y", v = P ? "top" : "left", y = P ? "bottom" : "right", T = P ? "clientHeight" : "clientWidth", s = L.reference[u] + L.reference[t] - r[t] - L.floating[u], B = r[t] - L.reference[t], I = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(o));
|
|
8150
|
+
let F = I ? I[T] : 0;
|
|
8151
|
+
(!F || !await (A.isElement == null ? void 0 : A.isElement(I))) && (F = d.floating[T] || L.floating[u]);
|
|
8152
|
+
const c = s / 2 - B / 2, $ = F / 2 - k[u] / 2 - 1, m1 = f1(Z[v], $), l1 = f1(Z[y], $), Q = m1, Y = F - k[u] - l1, _ = F / 2 - k[u] / 2 + c, K = G1(Q, _, Y), q = !e.arrow && g1(i) != null && _ != K && L.reference[u] / 2 - (_ < Q ? m1 : l1) - k[u] / 2 < 0, m = q ? _ < Q ? _ - Q : _ - Y : 0;
|
|
8105
8153
|
return {
|
|
8106
|
-
[
|
|
8154
|
+
[t]: r[t] + m,
|
|
8107
8155
|
data: {
|
|
8108
|
-
[
|
|
8109
|
-
centerOffset:
|
|
8110
|
-
...
|
|
8111
|
-
alignmentOffset:
|
|
8156
|
+
[t]: K,
|
|
8157
|
+
centerOffset: _ - K - m,
|
|
8158
|
+
...q && {
|
|
8159
|
+
alignmentOffset: m
|
|
8112
8160
|
}
|
|
8113
8161
|
},
|
|
8114
|
-
reset:
|
|
8162
|
+
reset: q
|
|
8115
8163
|
};
|
|
8116
8164
|
}
|
|
8117
|
-
}),
|
|
8165
|
+
}), b5 = function(H) {
|
|
8118
8166
|
return H === void 0 && (H = {}), {
|
|
8119
8167
|
name: "flip",
|
|
8120
8168
|
options: H,
|
|
@@ -8124,61 +8172,61 @@ const u5 = (H) => ({
|
|
|
8124
8172
|
placement: i,
|
|
8125
8173
|
middlewareData: L,
|
|
8126
8174
|
rects: A,
|
|
8127
|
-
initialPlacement:
|
|
8128
|
-
platform:
|
|
8129
|
-
elements:
|
|
8175
|
+
initialPlacement: d,
|
|
8176
|
+
platform: e,
|
|
8177
|
+
elements: o
|
|
8130
8178
|
} = V, {
|
|
8131
|
-
mainAxis:
|
|
8132
|
-
crossAxis:
|
|
8133
|
-
fallbackPlacements:
|
|
8134
|
-
fallbackStrategy:
|
|
8135
|
-
fallbackAxisSideDirection:
|
|
8136
|
-
flipAlignment:
|
|
8137
|
-
...
|
|
8138
|
-
} =
|
|
8179
|
+
mainAxis: a = !0,
|
|
8180
|
+
crossAxis: Z = !0,
|
|
8181
|
+
fallbackPlacements: r,
|
|
8182
|
+
fallbackStrategy: t = "bestFit",
|
|
8183
|
+
fallbackAxisSideDirection: u = "none",
|
|
8184
|
+
flipAlignment: k = !0,
|
|
8185
|
+
...P
|
|
8186
|
+
} = S1(H, V);
|
|
8139
8187
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8140
8188
|
return {};
|
|
8141
|
-
const
|
|
8142
|
-
!
|
|
8143
|
-
const
|
|
8144
|
-
let
|
|
8145
|
-
if (
|
|
8146
|
-
const
|
|
8147
|
-
|
|
8189
|
+
const v = a1(i), y = a1(d) === d, T = await (e.isRTL == null ? void 0 : e.isRTL(o.floating)), s = r || (y || !k ? [R1(d)] : p5(d));
|
|
8190
|
+
!r && u !== "none" && s.push(...f5(d, k, u, T));
|
|
8191
|
+
const B = [d, ...s], I = await D1(V, P), F = [];
|
|
8192
|
+
let c = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8193
|
+
if (a && F.push(I[v]), Z) {
|
|
8194
|
+
const Q = c5(i, A, T);
|
|
8195
|
+
F.push(I[Q[0]], I[Q[1]]);
|
|
8148
8196
|
}
|
|
8149
|
-
if (
|
|
8197
|
+
if (c = [...c, {
|
|
8150
8198
|
placement: i,
|
|
8151
|
-
overflows:
|
|
8152
|
-
}], !
|
|
8153
|
-
var
|
|
8154
|
-
const
|
|
8155
|
-
if (
|
|
8199
|
+
overflows: F
|
|
8200
|
+
}], !F.every((Q) => Q <= 0)) {
|
|
8201
|
+
var $, m1;
|
|
8202
|
+
const Q = ((($ = L.flip) == null ? void 0 : $.index) || 0) + 1, Y = B[Q];
|
|
8203
|
+
if (Y)
|
|
8156
8204
|
return {
|
|
8157
8205
|
data: {
|
|
8158
|
-
index:
|
|
8159
|
-
overflows:
|
|
8206
|
+
index: Q,
|
|
8207
|
+
overflows: c
|
|
8160
8208
|
},
|
|
8161
8209
|
reset: {
|
|
8162
|
-
placement:
|
|
8210
|
+
placement: Y
|
|
8163
8211
|
}
|
|
8164
8212
|
};
|
|
8165
|
-
let
|
|
8166
|
-
if (!
|
|
8167
|
-
switch (
|
|
8213
|
+
let _ = (m1 = c.filter((K) => K.overflows[0] <= 0).sort((K, q) => K.overflows[1] - q.overflows[1])[0]) == null ? void 0 : m1.placement;
|
|
8214
|
+
if (!_)
|
|
8215
|
+
switch (t) {
|
|
8168
8216
|
case "bestFit": {
|
|
8169
|
-
var
|
|
8170
|
-
const
|
|
8171
|
-
|
|
8217
|
+
var l1;
|
|
8218
|
+
const K = (l1 = c.map((q) => [q.placement, q.overflows.filter((m) => m > 0).reduce((m, f) => m + f, 0)]).sort((q, m) => q[1] - m[1])[0]) == null ? void 0 : l1[0];
|
|
8219
|
+
K && (_ = K);
|
|
8172
8220
|
break;
|
|
8173
8221
|
}
|
|
8174
8222
|
case "initialPlacement":
|
|
8175
|
-
|
|
8223
|
+
_ = d;
|
|
8176
8224
|
break;
|
|
8177
8225
|
}
|
|
8178
|
-
if (i !==
|
|
8226
|
+
if (i !== _)
|
|
8179
8227
|
return {
|
|
8180
8228
|
reset: {
|
|
8181
|
-
placement:
|
|
8229
|
+
placement: _
|
|
8182
8230
|
}
|
|
8183
8231
|
};
|
|
8184
8232
|
}
|
|
@@ -8186,7 +8234,7 @@ const u5 = (H) => ({
|
|
|
8186
8234
|
}
|
|
8187
8235
|
};
|
|
8188
8236
|
};
|
|
8189
|
-
function
|
|
8237
|
+
function i2(H, V) {
|
|
8190
8238
|
return {
|
|
8191
8239
|
top: H.top - V.height,
|
|
8192
8240
|
right: H.right - V.width,
|
|
@@ -8194,10 +8242,10 @@ function X1(H, V) {
|
|
|
8194
8242
|
left: H.left - V.width
|
|
8195
8243
|
};
|
|
8196
8244
|
}
|
|
8197
|
-
function
|
|
8198
|
-
return
|
|
8245
|
+
function A2(H) {
|
|
8246
|
+
return u5.some((V) => H[V] >= 0);
|
|
8199
8247
|
}
|
|
8200
|
-
const
|
|
8248
|
+
const v5 = function(H) {
|
|
8201
8249
|
return H === void 0 && (H = {}), {
|
|
8202
8250
|
name: "hide",
|
|
8203
8251
|
options: H,
|
|
@@ -8207,29 +8255,29 @@ const s5 = function(H) {
|
|
|
8207
8255
|
} = V, {
|
|
8208
8256
|
strategy: M = "referenceHidden",
|
|
8209
8257
|
...i
|
|
8210
|
-
} =
|
|
8258
|
+
} = S1(H, V);
|
|
8211
8259
|
switch (M) {
|
|
8212
8260
|
case "referenceHidden": {
|
|
8213
|
-
const L = await
|
|
8261
|
+
const L = await D1(V, {
|
|
8214
8262
|
...i,
|
|
8215
8263
|
elementContext: "reference"
|
|
8216
|
-
}), A =
|
|
8264
|
+
}), A = i2(L, C.reference);
|
|
8217
8265
|
return {
|
|
8218
8266
|
data: {
|
|
8219
8267
|
referenceHiddenOffsets: A,
|
|
8220
|
-
referenceHidden:
|
|
8268
|
+
referenceHidden: A2(A)
|
|
8221
8269
|
}
|
|
8222
8270
|
};
|
|
8223
8271
|
}
|
|
8224
8272
|
case "escaped": {
|
|
8225
|
-
const L = await
|
|
8273
|
+
const L = await D1(V, {
|
|
8226
8274
|
...i,
|
|
8227
8275
|
altBoundary: !0
|
|
8228
|
-
}), A =
|
|
8276
|
+
}), A = i2(L, C.floating);
|
|
8229
8277
|
return {
|
|
8230
8278
|
data: {
|
|
8231
8279
|
escapedOffsets: A,
|
|
8232
|
-
escaped:
|
|
8280
|
+
escaped: A2(A)
|
|
8233
8281
|
}
|
|
8234
8282
|
};
|
|
8235
8283
|
}
|
|
@@ -8239,35 +8287,35 @@ const s5 = function(H) {
|
|
|
8239
8287
|
}
|
|
8240
8288
|
};
|
|
8241
8289
|
};
|
|
8242
|
-
async function
|
|
8290
|
+
async function B5(H, V) {
|
|
8243
8291
|
const {
|
|
8244
8292
|
placement: C,
|
|
8245
8293
|
platform: M,
|
|
8246
8294
|
elements: i
|
|
8247
|
-
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A =
|
|
8295
|
+
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A = a1(C), d = g1(C), e = E1(C) === "y", o = ["left", "top"].includes(A) ? -1 : 1, a = L && e ? -1 : 1, Z = S1(V, H);
|
|
8248
8296
|
let {
|
|
8249
|
-
mainAxis:
|
|
8250
|
-
crossAxis:
|
|
8251
|
-
alignmentAxis:
|
|
8252
|
-
} = typeof
|
|
8253
|
-
mainAxis:
|
|
8297
|
+
mainAxis: r,
|
|
8298
|
+
crossAxis: t,
|
|
8299
|
+
alignmentAxis: u
|
|
8300
|
+
} = typeof Z == "number" ? {
|
|
8301
|
+
mainAxis: Z,
|
|
8254
8302
|
crossAxis: 0,
|
|
8255
8303
|
alignmentAxis: null
|
|
8256
8304
|
} : {
|
|
8257
8305
|
mainAxis: 0,
|
|
8258
8306
|
crossAxis: 0,
|
|
8259
8307
|
alignmentAxis: null,
|
|
8260
|
-
...
|
|
8308
|
+
...Z
|
|
8261
8309
|
};
|
|
8262
|
-
return
|
|
8263
|
-
x:
|
|
8264
|
-
y:
|
|
8310
|
+
return d && typeof u == "number" && (t = d === "end" ? u * -1 : u), e ? {
|
|
8311
|
+
x: t * a,
|
|
8312
|
+
y: r * o
|
|
8265
8313
|
} : {
|
|
8266
|
-
x:
|
|
8267
|
-
y:
|
|
8314
|
+
x: r * o,
|
|
8315
|
+
y: t * a
|
|
8268
8316
|
};
|
|
8269
8317
|
}
|
|
8270
|
-
const
|
|
8318
|
+
const y5 = function(H) {
|
|
8271
8319
|
return H === void 0 && (H = 0), {
|
|
8272
8320
|
name: "offset",
|
|
8273
8321
|
options: H,
|
|
@@ -8275,7 +8323,7 @@ const p5 = function(H) {
|
|
|
8275
8323
|
const {
|
|
8276
8324
|
x: C,
|
|
8277
8325
|
y: M
|
|
8278
|
-
} = V, i = await
|
|
8326
|
+
} = V, i = await B5(V, H);
|
|
8279
8327
|
return {
|
|
8280
8328
|
x: C + i.x,
|
|
8281
8329
|
y: M + i.y,
|
|
@@ -8283,7 +8331,7 @@ const p5 = function(H) {
|
|
|
8283
8331
|
};
|
|
8284
8332
|
}
|
|
8285
8333
|
};
|
|
8286
|
-
},
|
|
8334
|
+
}, w5 = function(H) {
|
|
8287
8335
|
return H === void 0 && (H = {}), {
|
|
8288
8336
|
name: "shift",
|
|
8289
8337
|
options: H,
|
|
@@ -8295,106 +8343,106 @@ const p5 = function(H) {
|
|
|
8295
8343
|
} = V, {
|
|
8296
8344
|
mainAxis: L = !0,
|
|
8297
8345
|
crossAxis: A = !1,
|
|
8298
|
-
limiter:
|
|
8299
|
-
fn: (
|
|
8346
|
+
limiter: d = {
|
|
8347
|
+
fn: (P) => {
|
|
8300
8348
|
let {
|
|
8301
|
-
x:
|
|
8302
|
-
y
|
|
8303
|
-
} =
|
|
8349
|
+
x: v,
|
|
8350
|
+
y
|
|
8351
|
+
} = P;
|
|
8304
8352
|
return {
|
|
8305
|
-
x:
|
|
8306
|
-
y
|
|
8353
|
+
x: v,
|
|
8354
|
+
y
|
|
8307
8355
|
};
|
|
8308
8356
|
}
|
|
8309
8357
|
},
|
|
8310
|
-
...
|
|
8311
|
-
} =
|
|
8358
|
+
...e
|
|
8359
|
+
} = S1(H, V), o = {
|
|
8312
8360
|
x: C,
|
|
8313
8361
|
y: M
|
|
8314
|
-
},
|
|
8315
|
-
let
|
|
8362
|
+
}, a = await D1(V, e), Z = E1(a1(i)), r = Z2(Z);
|
|
8363
|
+
let t = o[r], u = o[Z];
|
|
8316
8364
|
if (L) {
|
|
8317
|
-
const
|
|
8318
|
-
|
|
8365
|
+
const P = r === "y" ? "top" : "left", v = r === "y" ? "bottom" : "right", y = t + a[P], T = t - a[v];
|
|
8366
|
+
t = G1(y, t, T);
|
|
8319
8367
|
}
|
|
8320
8368
|
if (A) {
|
|
8321
|
-
const
|
|
8322
|
-
|
|
8369
|
+
const P = Z === "y" ? "top" : "left", v = Z === "y" ? "bottom" : "right", y = u + a[P], T = u - a[v];
|
|
8370
|
+
u = G1(y, u, T);
|
|
8323
8371
|
}
|
|
8324
|
-
const
|
|
8372
|
+
const k = d.fn({
|
|
8325
8373
|
...V,
|
|
8326
|
-
[
|
|
8327
|
-
[
|
|
8374
|
+
[r]: t,
|
|
8375
|
+
[Z]: u
|
|
8328
8376
|
});
|
|
8329
8377
|
return {
|
|
8330
|
-
...
|
|
8378
|
+
...k,
|
|
8331
8379
|
data: {
|
|
8332
|
-
x:
|
|
8333
|
-
y:
|
|
8380
|
+
x: k.x - C,
|
|
8381
|
+
y: k.y - M
|
|
8334
8382
|
}
|
|
8335
8383
|
};
|
|
8336
8384
|
}
|
|
8337
8385
|
};
|
|
8338
8386
|
};
|
|
8339
|
-
function
|
|
8340
|
-
return
|
|
8387
|
+
function e1(H) {
|
|
8388
|
+
return S2(H) ? (H.nodeName || "").toLowerCase() : "#document";
|
|
8341
8389
|
}
|
|
8342
8390
|
function z(H) {
|
|
8343
8391
|
var V;
|
|
8344
8392
|
return (H == null || (V = H.ownerDocument) == null ? void 0 : V.defaultView) || window;
|
|
8345
8393
|
}
|
|
8346
|
-
function
|
|
8394
|
+
function t1(H) {
|
|
8347
8395
|
var V;
|
|
8348
|
-
return (V = (
|
|
8396
|
+
return (V = (S2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
|
|
8349
8397
|
}
|
|
8350
|
-
function
|
|
8398
|
+
function S2(H) {
|
|
8351
8399
|
return H instanceof Node || H instanceof z(H).Node;
|
|
8352
8400
|
}
|
|
8353
|
-
function
|
|
8401
|
+
function M1(H) {
|
|
8354
8402
|
return H instanceof Element || H instanceof z(H).Element;
|
|
8355
8403
|
}
|
|
8356
|
-
function
|
|
8404
|
+
function C1(H) {
|
|
8357
8405
|
return H instanceof HTMLElement || H instanceof z(H).HTMLElement;
|
|
8358
8406
|
}
|
|
8359
|
-
function
|
|
8407
|
+
function e2(H) {
|
|
8360
8408
|
return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof z(H).ShadowRoot;
|
|
8361
8409
|
}
|
|
8362
|
-
function
|
|
8410
|
+
function k1(H) {
|
|
8363
8411
|
const {
|
|
8364
8412
|
overflow: V,
|
|
8365
8413
|
overflowX: C,
|
|
8366
8414
|
overflowY: M,
|
|
8367
8415
|
display: i
|
|
8368
|
-
} =
|
|
8416
|
+
} = X(H);
|
|
8369
8417
|
return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(i);
|
|
8370
8418
|
}
|
|
8371
|
-
function
|
|
8372
|
-
return ["table", "td", "th"].includes(
|
|
8419
|
+
function P5(H) {
|
|
8420
|
+
return ["table", "td", "th"].includes(e1(H));
|
|
8373
8421
|
}
|
|
8374
|
-
function
|
|
8375
|
-
const V =
|
|
8422
|
+
function C2(H) {
|
|
8423
|
+
const V = H2(), C = X(H);
|
|
8376
8424
|
return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
|
|
8377
8425
|
}
|
|
8378
|
-
function
|
|
8379
|
-
let V =
|
|
8380
|
-
for (;
|
|
8381
|
-
if (
|
|
8426
|
+
function T5(H) {
|
|
8427
|
+
let V = u1(H);
|
|
8428
|
+
for (; C1(V) && !_1(V); ) {
|
|
8429
|
+
if (C2(V))
|
|
8382
8430
|
return V;
|
|
8383
|
-
V =
|
|
8431
|
+
V = u1(V);
|
|
8384
8432
|
}
|
|
8385
8433
|
return null;
|
|
8386
8434
|
}
|
|
8387
|
-
function
|
|
8435
|
+
function H2() {
|
|
8388
8436
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
8389
8437
|
}
|
|
8390
|
-
function
|
|
8391
|
-
return ["html", "body", "#document"].includes(
|
|
8438
|
+
function _1(H) {
|
|
8439
|
+
return ["html", "body", "#document"].includes(e1(H));
|
|
8392
8440
|
}
|
|
8393
|
-
function
|
|
8441
|
+
function X(H) {
|
|
8394
8442
|
return z(H).getComputedStyle(H);
|
|
8395
8443
|
}
|
|
8396
|
-
function
|
|
8397
|
-
return
|
|
8444
|
+
function W1(H) {
|
|
8445
|
+
return M1(H) ? {
|
|
8398
8446
|
scrollLeft: H.scrollLeft,
|
|
8399
8447
|
scrollTop: H.scrollTop
|
|
8400
8448
|
} : {
|
|
@@ -8402,252 +8450,252 @@ function T1(H) {
|
|
|
8402
8450
|
scrollTop: H.pageYOffset
|
|
8403
8451
|
};
|
|
8404
8452
|
}
|
|
8405
|
-
function
|
|
8406
|
-
if (
|
|
8453
|
+
function u1(H) {
|
|
8454
|
+
if (e1(H) === "html")
|
|
8407
8455
|
return H;
|
|
8408
8456
|
const V = (
|
|
8409
8457
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
8410
8458
|
H.assignedSlot || // DOM Element detected.
|
|
8411
8459
|
H.parentNode || // ShadowRoot detected.
|
|
8412
|
-
|
|
8413
|
-
|
|
8460
|
+
e2(H) && H.host || // Fallback.
|
|
8461
|
+
t1(H)
|
|
8414
8462
|
);
|
|
8415
|
-
return
|
|
8463
|
+
return e2(V) ? V.host : V;
|
|
8416
8464
|
}
|
|
8417
|
-
function
|
|
8418
|
-
const V =
|
|
8419
|
-
return
|
|
8465
|
+
function s2(H) {
|
|
8466
|
+
const V = u1(H);
|
|
8467
|
+
return _1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : C1(V) && k1(V) ? V : s2(V);
|
|
8420
8468
|
}
|
|
8421
|
-
function
|
|
8469
|
+
function z1(H, V, C) {
|
|
8422
8470
|
var M;
|
|
8423
8471
|
V === void 0 && (V = []), C === void 0 && (C = !0);
|
|
8424
|
-
const i =
|
|
8425
|
-
return L ? V.concat(A, A.visualViewport || [],
|
|
8472
|
+
const i = s2(H), L = i === ((M = H.ownerDocument) == null ? void 0 : M.body), A = z(i);
|
|
8473
|
+
return L ? V.concat(A, A.visualViewport || [], k1(i) ? i : [], A.frameElement && C ? z1(A.frameElement) : []) : V.concat(i, z1(i, [], C));
|
|
8426
8474
|
}
|
|
8427
|
-
function
|
|
8428
|
-
const V =
|
|
8475
|
+
function c2(H) {
|
|
8476
|
+
const V = X(H);
|
|
8429
8477
|
let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
|
|
8430
|
-
const i =
|
|
8431
|
-
return
|
|
8478
|
+
const i = C1(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, d = F1(C) !== L || F1(M) !== A;
|
|
8479
|
+
return d && (C = L, M = A), {
|
|
8432
8480
|
width: C,
|
|
8433
8481
|
height: M,
|
|
8434
|
-
$:
|
|
8482
|
+
$: d
|
|
8435
8483
|
};
|
|
8436
8484
|
}
|
|
8437
|
-
function
|
|
8438
|
-
return
|
|
8485
|
+
function p2(H) {
|
|
8486
|
+
return M1(H) ? H : H.contextElement;
|
|
8439
8487
|
}
|
|
8440
|
-
function
|
|
8441
|
-
const V =
|
|
8442
|
-
if (!
|
|
8443
|
-
return
|
|
8488
|
+
function Z1(H) {
|
|
8489
|
+
const V = p2(H);
|
|
8490
|
+
if (!C1(V))
|
|
8491
|
+
return A1(1);
|
|
8444
8492
|
const C = V.getBoundingClientRect(), {
|
|
8445
8493
|
width: M,
|
|
8446
8494
|
height: i,
|
|
8447
8495
|
$: L
|
|
8448
|
-
} =
|
|
8449
|
-
let A = (L ?
|
|
8450
|
-
return (!A || !Number.isFinite(A)) && (A = 1), (!
|
|
8496
|
+
} = c2(V);
|
|
8497
|
+
let A = (L ? F1(C.width) : C.width) / M, d = (L ? F1(C.height) : C.height) / i;
|
|
8498
|
+
return (!A || !Number.isFinite(A)) && (A = 1), (!d || !Number.isFinite(d)) && (d = 1), {
|
|
8451
8499
|
x: A,
|
|
8452
|
-
y:
|
|
8500
|
+
y: d
|
|
8453
8501
|
};
|
|
8454
8502
|
}
|
|
8455
|
-
const
|
|
8456
|
-
function
|
|
8503
|
+
const F5 = /* @__PURE__ */ A1(0);
|
|
8504
|
+
function O2(H) {
|
|
8457
8505
|
const V = z(H);
|
|
8458
|
-
return !
|
|
8506
|
+
return !H2() || !V.visualViewport ? F5 : {
|
|
8459
8507
|
x: V.visualViewport.offsetLeft,
|
|
8460
8508
|
y: V.visualViewport.offsetTop
|
|
8461
8509
|
};
|
|
8462
8510
|
}
|
|
8463
|
-
function
|
|
8511
|
+
function R5(H, V, C) {
|
|
8464
8512
|
return V === void 0 && (V = !1), !C || V && C !== z(H) ? !1 : V;
|
|
8465
8513
|
}
|
|
8466
|
-
function
|
|
8514
|
+
function h1(H, V, C, M) {
|
|
8467
8515
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8468
|
-
const i = H.getBoundingClientRect(), L =
|
|
8469
|
-
let A =
|
|
8470
|
-
V && (M ?
|
|
8471
|
-
const
|
|
8472
|
-
let
|
|
8516
|
+
const i = H.getBoundingClientRect(), L = p2(H);
|
|
8517
|
+
let A = A1(1);
|
|
8518
|
+
V && (M ? M1(M) && (A = Z1(M)) : A = Z1(H));
|
|
8519
|
+
const d = R5(L, C, M) ? O2(L) : A1(0);
|
|
8520
|
+
let e = (i.left + d.x) / A.x, o = (i.top + d.y) / A.y, a = i.width / A.x, Z = i.height / A.y;
|
|
8473
8521
|
if (L) {
|
|
8474
|
-
const
|
|
8475
|
-
let
|
|
8476
|
-
for (;
|
|
8477
|
-
const
|
|
8478
|
-
|
|
8522
|
+
const r = z(L), t = M && M1(M) ? z(M) : M;
|
|
8523
|
+
let u = r.frameElement;
|
|
8524
|
+
for (; u && M && t !== r; ) {
|
|
8525
|
+
const k = Z1(u), P = u.getBoundingClientRect(), v = X(u), y = P.left + (u.clientLeft + parseFloat(v.paddingLeft)) * k.x, T = P.top + (u.clientTop + parseFloat(v.paddingTop)) * k.y;
|
|
8526
|
+
e *= k.x, o *= k.y, a *= k.x, Z *= k.y, e += y, o += T, u = z(u).frameElement;
|
|
8479
8527
|
}
|
|
8480
8528
|
}
|
|
8481
|
-
return
|
|
8482
|
-
width:
|
|
8483
|
-
height:
|
|
8484
|
-
x:
|
|
8485
|
-
y:
|
|
8529
|
+
return x1({
|
|
8530
|
+
width: a,
|
|
8531
|
+
height: Z,
|
|
8532
|
+
x: e,
|
|
8533
|
+
y: o
|
|
8486
8534
|
});
|
|
8487
8535
|
}
|
|
8488
|
-
function
|
|
8536
|
+
function x5(H) {
|
|
8489
8537
|
let {
|
|
8490
8538
|
rect: V,
|
|
8491
8539
|
offsetParent: C,
|
|
8492
8540
|
strategy: M
|
|
8493
8541
|
} = H;
|
|
8494
|
-
const i =
|
|
8542
|
+
const i = C1(C), L = t1(C);
|
|
8495
8543
|
if (C === L)
|
|
8496
8544
|
return V;
|
|
8497
8545
|
let A = {
|
|
8498
8546
|
scrollLeft: 0,
|
|
8499
8547
|
scrollTop: 0
|
|
8500
|
-
},
|
|
8501
|
-
const
|
|
8502
|
-
if ((i || !i && M !== "fixed") && ((
|
|
8503
|
-
const
|
|
8504
|
-
|
|
8548
|
+
}, d = A1(1);
|
|
8549
|
+
const e = A1(0);
|
|
8550
|
+
if ((i || !i && M !== "fixed") && ((e1(C) !== "body" || k1(L)) && (A = W1(C)), C1(C))) {
|
|
8551
|
+
const o = h1(C);
|
|
8552
|
+
d = Z1(C), e.x = o.x + C.clientLeft, e.y = o.y + C.clientTop;
|
|
8505
8553
|
}
|
|
8506
8554
|
return {
|
|
8507
|
-
width: V.width *
|
|
8508
|
-
height: V.height *
|
|
8509
|
-
x: V.x *
|
|
8510
|
-
y: V.y *
|
|
8555
|
+
width: V.width * d.x,
|
|
8556
|
+
height: V.height * d.y,
|
|
8557
|
+
x: V.x * d.x - A.scrollLeft * d.x + e.x,
|
|
8558
|
+
y: V.y * d.y - A.scrollTop * d.y + e.y
|
|
8511
8559
|
};
|
|
8512
8560
|
}
|
|
8513
|
-
function
|
|
8561
|
+
function D5(H) {
|
|
8514
8562
|
return Array.from(H.getClientRects());
|
|
8515
8563
|
}
|
|
8516
|
-
function
|
|
8517
|
-
return
|
|
8564
|
+
function f2(H) {
|
|
8565
|
+
return h1(t1(H)).left + W1(H).scrollLeft;
|
|
8518
8566
|
}
|
|
8519
|
-
function
|
|
8520
|
-
const V =
|
|
8521
|
-
let A = -C.scrollLeft +
|
|
8522
|
-
const
|
|
8523
|
-
return
|
|
8567
|
+
function E5(H) {
|
|
8568
|
+
const V = t1(H), C = W1(H), M = H.ownerDocument.body, i = n1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = n1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
|
|
8569
|
+
let A = -C.scrollLeft + f2(H);
|
|
8570
|
+
const d = -C.scrollTop;
|
|
8571
|
+
return X(M).direction === "rtl" && (A += n1(V.clientWidth, M.clientWidth) - i), {
|
|
8524
8572
|
width: i,
|
|
8525
8573
|
height: L,
|
|
8526
8574
|
x: A,
|
|
8527
|
-
y:
|
|
8575
|
+
y: d
|
|
8528
8576
|
};
|
|
8529
8577
|
}
|
|
8530
|
-
function
|
|
8531
|
-
const C = z(H), M =
|
|
8532
|
-
let L = M.clientWidth, A = M.clientHeight,
|
|
8578
|
+
function _5(H, V) {
|
|
8579
|
+
const C = z(H), M = t1(H), i = C.visualViewport;
|
|
8580
|
+
let L = M.clientWidth, A = M.clientHeight, d = 0, e = 0;
|
|
8533
8581
|
if (i) {
|
|
8534
8582
|
L = i.width, A = i.height;
|
|
8535
|
-
const
|
|
8536
|
-
(!
|
|
8583
|
+
const o = H2();
|
|
8584
|
+
(!o || o && V === "fixed") && (d = i.offsetLeft, e = i.offsetTop);
|
|
8537
8585
|
}
|
|
8538
8586
|
return {
|
|
8539
8587
|
width: L,
|
|
8540
8588
|
height: A,
|
|
8541
|
-
x:
|
|
8542
|
-
y:
|
|
8589
|
+
x: d,
|
|
8590
|
+
y: e
|
|
8543
8591
|
};
|
|
8544
8592
|
}
|
|
8545
|
-
function
|
|
8546
|
-
const C =
|
|
8593
|
+
function W5(H, V) {
|
|
8594
|
+
const C = h1(H, !0, V === "fixed"), M = C.top + H.clientTop, i = C.left + H.clientLeft, L = C1(H) ? Z1(H) : A1(1), A = H.clientWidth * L.x, d = H.clientHeight * L.y, e = i * L.x, o = M * L.y;
|
|
8547
8595
|
return {
|
|
8548
8596
|
width: A,
|
|
8549
|
-
height:
|
|
8550
|
-
x:
|
|
8551
|
-
y:
|
|
8597
|
+
height: d,
|
|
8598
|
+
x: e,
|
|
8599
|
+
y: o
|
|
8552
8600
|
};
|
|
8553
8601
|
}
|
|
8554
|
-
function
|
|
8602
|
+
function d2(H, V, C) {
|
|
8555
8603
|
let M;
|
|
8556
8604
|
if (V === "viewport")
|
|
8557
|
-
M =
|
|
8605
|
+
M = _5(H, C);
|
|
8558
8606
|
else if (V === "document")
|
|
8559
|
-
M =
|
|
8560
|
-
else if (
|
|
8561
|
-
M =
|
|
8607
|
+
M = E5(t1(H));
|
|
8608
|
+
else if (M1(V))
|
|
8609
|
+
M = W5(V, C);
|
|
8562
8610
|
else {
|
|
8563
|
-
const i =
|
|
8611
|
+
const i = O2(H);
|
|
8564
8612
|
M = {
|
|
8565
8613
|
...V,
|
|
8566
8614
|
x: V.x - i.x,
|
|
8567
8615
|
y: V.y - i.y
|
|
8568
8616
|
};
|
|
8569
8617
|
}
|
|
8570
|
-
return
|
|
8618
|
+
return x1(M);
|
|
8571
8619
|
}
|
|
8572
|
-
function
|
|
8573
|
-
const C =
|
|
8574
|
-
return C === V || !
|
|
8620
|
+
function h2(H, V) {
|
|
8621
|
+
const C = u1(H);
|
|
8622
|
+
return C === V || !M1(C) || _1(C) ? !1 : X(C).position === "fixed" || h2(C, V);
|
|
8575
8623
|
}
|
|
8576
|
-
function
|
|
8624
|
+
function N5(H, V) {
|
|
8577
8625
|
const C = V.get(H);
|
|
8578
8626
|
if (C)
|
|
8579
8627
|
return C;
|
|
8580
|
-
let M =
|
|
8581
|
-
const L =
|
|
8582
|
-
let A = L ?
|
|
8583
|
-
for (;
|
|
8584
|
-
const
|
|
8585
|
-
!
|
|
8628
|
+
let M = z1(H, [], !1).filter((d) => M1(d) && e1(d) !== "body"), i = null;
|
|
8629
|
+
const L = X(H).position === "fixed";
|
|
8630
|
+
let A = L ? u1(H) : H;
|
|
8631
|
+
for (; M1(A) && !_1(A); ) {
|
|
8632
|
+
const d = X(A), e = C2(A);
|
|
8633
|
+
!e && d.position === "fixed" && (i = null), (L ? !e && !i : !e && d.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || k1(A) && !e && h2(H, A)) ? M = M.filter((a) => a !== A) : i = d, A = u1(A);
|
|
8586
8634
|
}
|
|
8587
8635
|
return V.set(H, M), M;
|
|
8588
8636
|
}
|
|
8589
|
-
function
|
|
8637
|
+
function I5(H) {
|
|
8590
8638
|
let {
|
|
8591
8639
|
element: V,
|
|
8592
8640
|
boundary: C,
|
|
8593
8641
|
rootBoundary: M,
|
|
8594
8642
|
strategy: i
|
|
8595
8643
|
} = H;
|
|
8596
|
-
const A = [...C === "clippingAncestors" ?
|
|
8597
|
-
const
|
|
8598
|
-
return
|
|
8599
|
-
},
|
|
8644
|
+
const A = [...C === "clippingAncestors" ? N5(V, this._c) : [].concat(C), M], d = A[0], e = A.reduce((o, a) => {
|
|
8645
|
+
const Z = d2(V, a, i);
|
|
8646
|
+
return o.top = n1(Z.top, o.top), o.right = f1(Z.right, o.right), o.bottom = f1(Z.bottom, o.bottom), o.left = n1(Z.left, o.left), o;
|
|
8647
|
+
}, d2(V, d, i));
|
|
8600
8648
|
return {
|
|
8601
|
-
width:
|
|
8602
|
-
height:
|
|
8603
|
-
x:
|
|
8604
|
-
y:
|
|
8649
|
+
width: e.right - e.left,
|
|
8650
|
+
height: e.bottom - e.top,
|
|
8651
|
+
x: e.left,
|
|
8652
|
+
y: e.top
|
|
8605
8653
|
};
|
|
8606
8654
|
}
|
|
8607
|
-
function
|
|
8608
|
-
return
|
|
8655
|
+
function $5(H) {
|
|
8656
|
+
return c2(H);
|
|
8609
8657
|
}
|
|
8610
|
-
function
|
|
8611
|
-
const M =
|
|
8612
|
-
let
|
|
8658
|
+
function Q5(H, V, C) {
|
|
8659
|
+
const M = C1(V), i = t1(V), L = C === "fixed", A = h1(H, !0, L, V);
|
|
8660
|
+
let d = {
|
|
8613
8661
|
scrollLeft: 0,
|
|
8614
8662
|
scrollTop: 0
|
|
8615
8663
|
};
|
|
8616
|
-
const
|
|
8664
|
+
const e = A1(0);
|
|
8617
8665
|
if (M || !M && !L)
|
|
8618
|
-
if ((
|
|
8619
|
-
const
|
|
8620
|
-
|
|
8666
|
+
if ((e1(V) !== "body" || k1(i)) && (d = W1(V)), M) {
|
|
8667
|
+
const o = h1(V, !0, L, V);
|
|
8668
|
+
e.x = o.x + V.clientLeft, e.y = o.y + V.clientTop;
|
|
8621
8669
|
} else
|
|
8622
|
-
i && (
|
|
8670
|
+
i && (e.x = f2(i));
|
|
8623
8671
|
return {
|
|
8624
|
-
x: A.left +
|
|
8625
|
-
y: A.top +
|
|
8672
|
+
x: A.left + d.scrollLeft - e.x,
|
|
8673
|
+
y: A.top + d.scrollTop - e.y,
|
|
8626
8674
|
width: A.width,
|
|
8627
8675
|
height: A.height
|
|
8628
8676
|
};
|
|
8629
8677
|
}
|
|
8630
|
-
function
|
|
8631
|
-
return !
|
|
8678
|
+
function t2(H, V) {
|
|
8679
|
+
return !C1(H) || X(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
|
|
8632
8680
|
}
|
|
8633
|
-
function
|
|
8681
|
+
function g2(H, V) {
|
|
8634
8682
|
const C = z(H);
|
|
8635
|
-
if (!
|
|
8683
|
+
if (!C1(H))
|
|
8636
8684
|
return C;
|
|
8637
|
-
let M =
|
|
8638
|
-
for (; M &&
|
|
8639
|
-
M =
|
|
8640
|
-
return M && (
|
|
8685
|
+
let M = t2(H, V);
|
|
8686
|
+
for (; M && P5(M) && X(M).position === "static"; )
|
|
8687
|
+
M = t2(M, V);
|
|
8688
|
+
return M && (e1(M) === "html" || e1(M) === "body" && X(M).position === "static" && !C2(M)) ? C : M || T5(H) || C;
|
|
8641
8689
|
}
|
|
8642
|
-
const
|
|
8690
|
+
const G5 = async function(H) {
|
|
8643
8691
|
let {
|
|
8644
8692
|
reference: V,
|
|
8645
8693
|
floating: C,
|
|
8646
8694
|
strategy: M
|
|
8647
8695
|
} = H;
|
|
8648
|
-
const i = this.getOffsetParent ||
|
|
8696
|
+
const i = this.getOffsetParent || g2, L = this.getDimensions;
|
|
8649
8697
|
return {
|
|
8650
|
-
reference:
|
|
8698
|
+
reference: Q5(V, await i(C), M),
|
|
8651
8699
|
floating: {
|
|
8652
8700
|
x: 0,
|
|
8653
8701
|
y: 0,
|
|
@@ -8655,82 +8703,82 @@ const x5 = async function(H) {
|
|
|
8655
8703
|
}
|
|
8656
8704
|
};
|
|
8657
8705
|
};
|
|
8658
|
-
function
|
|
8659
|
-
return
|
|
8706
|
+
function U5(H) {
|
|
8707
|
+
return X(H).direction === "rtl";
|
|
8660
8708
|
}
|
|
8661
|
-
const
|
|
8662
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
8663
|
-
getDocumentElement:
|
|
8664
|
-
getClippingRect:
|
|
8665
|
-
getOffsetParent:
|
|
8666
|
-
getElementRects:
|
|
8667
|
-
getClientRects:
|
|
8668
|
-
getDimensions:
|
|
8669
|
-
getScale:
|
|
8670
|
-
isElement:
|
|
8671
|
-
isRTL:
|
|
8672
|
-
},
|
|
8709
|
+
const z5 = {
|
|
8710
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: x5,
|
|
8711
|
+
getDocumentElement: t1,
|
|
8712
|
+
getClippingRect: I5,
|
|
8713
|
+
getOffsetParent: g2,
|
|
8714
|
+
getElementRects: G5,
|
|
8715
|
+
getClientRects: D5,
|
|
8716
|
+
getDimensions: $5,
|
|
8717
|
+
getScale: Z1,
|
|
8718
|
+
isElement: M1,
|
|
8719
|
+
isRTL: U5
|
|
8720
|
+
}, K5 = (H, V, C) => {
|
|
8673
8721
|
const M = /* @__PURE__ */ new Map(), i = {
|
|
8674
|
-
platform:
|
|
8722
|
+
platform: z5,
|
|
8675
8723
|
...C
|
|
8676
8724
|
}, L = {
|
|
8677
8725
|
...i.platform,
|
|
8678
8726
|
_c: M
|
|
8679
8727
|
};
|
|
8680
|
-
return
|
|
8728
|
+
return g5(H, V, {
|
|
8681
8729
|
...i,
|
|
8682
8730
|
platform: L
|
|
8683
8731
|
});
|
|
8684
8732
|
};
|
|
8685
|
-
var
|
|
8686
|
-
async function
|
|
8687
|
-
!H || !V ||
|
|
8733
|
+
var k2 = /* @__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))(k2 || {}), V1 = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(V1 || {}), K1 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(K1 || {});
|
|
8734
|
+
async function q5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, d) {
|
|
8735
|
+
!H || !V || K5(H, V, {
|
|
8688
8736
|
placement: M,
|
|
8689
8737
|
middleware: [
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8738
|
+
y5(i),
|
|
8739
|
+
w5({ padding: L }),
|
|
8740
|
+
k5({ element: C }),
|
|
8741
|
+
b5(),
|
|
8742
|
+
v5()
|
|
8695
8743
|
]
|
|
8696
|
-
}).then(({ x:
|
|
8697
|
-
var
|
|
8744
|
+
}).then(({ x: e, y: o, placement: a, middlewareData: Z }) => {
|
|
8745
|
+
var u, k;
|
|
8698
8746
|
if (!V)
|
|
8699
8747
|
return;
|
|
8700
|
-
|
|
8701
|
-
const
|
|
8748
|
+
Z.flip && V.setAttribute("data-placement", a);
|
|
8749
|
+
const r = (u = H.offsetParent) == null ? void 0 : u.getBoundingClientRect().left, t = (k = H.offsetParent) == null ? void 0 : k.getBoundingClientRect().width;
|
|
8702
8750
|
if (Object.assign(V.style, {
|
|
8703
|
-
maxWidth:
|
|
8704
|
-
left:
|
|
8705
|
-
top: `${
|
|
8751
|
+
maxWidth: d === "dropdown" ? `${t}px` : "auto",
|
|
8752
|
+
left: d === "dropdown" ? `${r}px` : `${e}px`,
|
|
8753
|
+
top: `${o}px`,
|
|
8706
8754
|
animation: `r-tooltip-show ${A}ms ease-in-out forwards`,
|
|
8707
8755
|
transformOrigin: "start"
|
|
8708
|
-
}), C &&
|
|
8709
|
-
const { x:
|
|
8756
|
+
}), C && Z.arrow) {
|
|
8757
|
+
const { x: P, y: v } = Z.arrow, y = {
|
|
8710
8758
|
top: "bottom",
|
|
8711
8759
|
right: "left",
|
|
8712
8760
|
bottom: "top",
|
|
8713
8761
|
left: "right"
|
|
8714
8762
|
/* Right */
|
|
8715
|
-
}[
|
|
8763
|
+
}[a.split("-")[0]];
|
|
8716
8764
|
Object.assign(C.style, {
|
|
8717
|
-
left:
|
|
8718
|
-
top:
|
|
8765
|
+
left: e != null ? `${P}px` : "",
|
|
8766
|
+
top: o != null ? `${v}px` : "",
|
|
8719
8767
|
right: "",
|
|
8720
8768
|
bottom: "",
|
|
8721
|
-
[`${
|
|
8769
|
+
[`${y}`]: "-4px"
|
|
8722
8770
|
});
|
|
8723
8771
|
}
|
|
8724
8772
|
});
|
|
8725
8773
|
}
|
|
8726
|
-
const
|
|
8774
|
+
const j5 = ["aria-disabled"], X5 = ["innerHTML"], Y5 = ["id"], J5 = /* @__PURE__ */ E({
|
|
8727
8775
|
__name: "RTooltip",
|
|
8728
8776
|
props: {
|
|
8729
|
-
placement: { default:
|
|
8777
|
+
placement: { default: k2.Top },
|
|
8730
8778
|
text: { default: "" },
|
|
8731
8779
|
dark: { type: Boolean, default: !0 },
|
|
8732
8780
|
light: { type: Boolean, default: !1 },
|
|
8733
|
-
triggers: { default: () => [
|
|
8781
|
+
triggers: { default: () => [V1.Hover] },
|
|
8734
8782
|
autoHide: { type: Boolean, default: !0 },
|
|
8735
8783
|
hideDelay: { default: 3e3 },
|
|
8736
8784
|
showDelay: { default: 300 },
|
|
@@ -8743,140 +8791,143 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8743
8791
|
resizable: { type: Boolean, default: !0 },
|
|
8744
8792
|
triggerClass: { default: "" },
|
|
8745
8793
|
tooltipClass: { default: "" },
|
|
8746
|
-
type: { default:
|
|
8794
|
+
type: { default: K1.Tooltip }
|
|
8747
8795
|
},
|
|
8748
8796
|
emits: ["show", "hide"],
|
|
8749
8797
|
setup(H, { emit: V }) {
|
|
8750
|
-
const C = H, M = V, i =
|
|
8751
|
-
async function
|
|
8798
|
+
const C = H, M = V, i = R(), L = R(), A = R(), d = Z5();
|
|
8799
|
+
async function e() {
|
|
8752
8800
|
if (C.disabled || !L.value)
|
|
8753
8801
|
return;
|
|
8754
|
-
const
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
}), L.value.classList.contains("r-tooltip--active") ?
|
|
8802
|
+
const v = document.querySelectorAll(".r-tooltip--active");
|
|
8803
|
+
v.length > 0 && v.forEach((y) => {
|
|
8804
|
+
y.style.display = "", y.classList.remove("r-tooltip--active"), y.dataset.show = "false", M("hide", y.id);
|
|
8805
|
+
}), L.value.classList.contains("r-tooltip--active") ? o() : (k(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", M("show", L.value.id), a());
|
|
8758
8806
|
}
|
|
8759
|
-
function
|
|
8807
|
+
function o(v = null) {
|
|
8760
8808
|
C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", M("hide", L.value.id));
|
|
8761
8809
|
}
|
|
8762
|
-
function
|
|
8810
|
+
function a() {
|
|
8763
8811
|
C.autoHide && setTimeout(() => {
|
|
8764
|
-
|
|
8812
|
+
o();
|
|
8765
8813
|
}, C.hideDelay);
|
|
8766
8814
|
}
|
|
8767
|
-
function
|
|
8768
|
-
C.disabled || C.triggers.includes(
|
|
8815
|
+
function Z(v) {
|
|
8816
|
+
C.disabled || C.triggers.includes(V1.Click) && (L.value.style.display === "block" ? o() : e());
|
|
8769
8817
|
}
|
|
8770
|
-
function
|
|
8771
|
-
C.disabled || C.triggers.includes(
|
|
8818
|
+
function r() {
|
|
8819
|
+
C.disabled || C.triggers.includes(V1.Hover) && e();
|
|
8772
8820
|
}
|
|
8773
|
-
function
|
|
8774
|
-
C.disabled || (L.value.style.display === "" && C.triggers.includes(
|
|
8821
|
+
function t() {
|
|
8822
|
+
C.disabled || (L.value.style.display === "" && C.triggers.includes(V1.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(V1.Hover) && o());
|
|
8775
8823
|
}
|
|
8776
|
-
function
|
|
8777
|
-
C.triggers.includes(
|
|
8824
|
+
function u() {
|
|
8825
|
+
C.triggers.includes(V1.Hover) && k();
|
|
8778
8826
|
}
|
|
8779
|
-
function
|
|
8780
|
-
const { placement:
|
|
8781
|
-
|
|
8827
|
+
function k(v) {
|
|
8828
|
+
const { placement: y, offset: T, padding: s, disabled: B, showDelay: I, type: F } = C;
|
|
8829
|
+
B || q5(i, L, A, y, T, s, I, F);
|
|
8782
8830
|
}
|
|
8783
|
-
const
|
|
8831
|
+
const P = O(() => ({
|
|
8784
8832
|
"r-tooltip": !0,
|
|
8785
8833
|
"r-tooltip--dark": C.dark && !C.light,
|
|
8786
8834
|
"r-tooltip--light": C.light
|
|
8787
8835
|
}));
|
|
8788
8836
|
return window.onresize = () => {
|
|
8789
|
-
C.resizable &&
|
|
8790
|
-
},
|
|
8837
|
+
C.resizable && k();
|
|
8838
|
+
}, y2(
|
|
8791
8839
|
() => {
|
|
8792
|
-
C.disabled || (C.shown && C.triggers.includes(
|
|
8840
|
+
C.disabled || (C.shown && C.triggers.includes(V1.Manual) ? e() : !C.shown && C.triggers.includes(V1.Manual) && o());
|
|
8793
8841
|
},
|
|
8794
8842
|
{ flush: "post" }
|
|
8795
8843
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8796
|
-
),
|
|
8797
|
-
var
|
|
8798
|
-
C.resizable && ((
|
|
8799
|
-
L.value.classList.contains("r-tooltip--active") &&
|
|
8800
|
-
}, { ignore: [L] }), C.type ===
|
|
8801
|
-
|
|
8844
|
+
), j1(() => {
|
|
8845
|
+
var v, y;
|
|
8846
|
+
C.resizable && ((y = (v = i.value) == null ? void 0 : v.parentElement) == null || y.parentElement.addEventListener("scroll", k())), n5(i, (T) => {
|
|
8847
|
+
L.value.classList.contains("r-tooltip--active") && o(T);
|
|
8848
|
+
}, { ignore: [L] }), C.type === K1.Dropdown && document.addEventListener("scroll", () => {
|
|
8849
|
+
k();
|
|
8802
8850
|
});
|
|
8803
|
-
}), (
|
|
8804
|
-
|
|
8851
|
+
}), (v, y) => (l(), n(i1, null, [
|
|
8852
|
+
S("div", {
|
|
8805
8853
|
ref_key: "trigger",
|
|
8806
8854
|
ref: i,
|
|
8807
8855
|
"aria-disabled": C.disabled,
|
|
8808
|
-
class:
|
|
8809
|
-
onClick:
|
|
8810
|
-
onMouseenter:
|
|
8811
|
-
onMouseleave:
|
|
8812
|
-
onMousemove:
|
|
8856
|
+
class: g(["r-tooltip-trigger", v.triggerClass]),
|
|
8857
|
+
onClick: Z,
|
|
8858
|
+
onMouseenter: r,
|
|
8859
|
+
onMouseleave: t,
|
|
8860
|
+
onMousemove: u
|
|
8813
8861
|
}, [
|
|
8814
|
-
|
|
8862
|
+
b(v.$slots, "default", {
|
|
8815
8863
|
activators: {
|
|
8816
|
-
click:
|
|
8817
|
-
mouseenter:
|
|
8818
|
-
mouseleave:
|
|
8819
|
-
mousemove:
|
|
8864
|
+
click: Z,
|
|
8865
|
+
mouseenter: r,
|
|
8866
|
+
mouseleave: t,
|
|
8867
|
+
mousemove: u
|
|
8820
8868
|
},
|
|
8821
|
-
tooltipId:
|
|
8822
|
-
updatePosition:
|
|
8869
|
+
tooltipId: L1(d),
|
|
8870
|
+
updatePosition: k
|
|
8823
8871
|
}, () => [
|
|
8824
|
-
|
|
8872
|
+
S("div", {
|
|
8825
8873
|
innerHTML: C.triggerContent
|
|
8826
|
-
}, null, 8,
|
|
8874
|
+
}, null, 8, X5)
|
|
8827
8875
|
])
|
|
8828
|
-
], 42,
|
|
8829
|
-
(
|
|
8830
|
-
|
|
8831
|
-
id:
|
|
8876
|
+
], 42, j5),
|
|
8877
|
+
(l(), x(m2, { to: "body" }, [
|
|
8878
|
+
S("div", {
|
|
8879
|
+
id: L1(d),
|
|
8832
8880
|
ref_key: "tooltip",
|
|
8833
8881
|
ref: L,
|
|
8834
|
-
class:
|
|
8882
|
+
class: g([P.value, v.tooltipClass]),
|
|
8835
8883
|
"data-show": "false",
|
|
8836
8884
|
role: "tooltip"
|
|
8837
8885
|
}, [
|
|
8838
|
-
|
|
8839
|
-
hide:
|
|
8840
|
-
updatePosition:
|
|
8886
|
+
b(v.$slots, "content", {
|
|
8887
|
+
hide: o,
|
|
8888
|
+
updatePosition: k
|
|
8841
8889
|
}, () => [
|
|
8842
|
-
C.text ? (
|
|
8890
|
+
C.text ? (l(), n("div", {
|
|
8843
8891
|
key: 0,
|
|
8844
|
-
class:
|
|
8892
|
+
class: g(["r-tooltip__content", {
|
|
8845
8893
|
"r-tooltip__content--dark": C.dark,
|
|
8846
8894
|
"r-tooltip__content--light": C.light
|
|
8847
8895
|
}])
|
|
8848
|
-
}, w(C.text), 3)) :
|
|
8849
|
-
C.text ? (
|
|
8896
|
+
}, w(C.text), 3)) : p("", !0),
|
|
8897
|
+
C.text ? (l(), n("div", {
|
|
8850
8898
|
key: 1,
|
|
8851
8899
|
id: "arrow",
|
|
8852
8900
|
ref_key: "arrowElement",
|
|
8853
8901
|
ref: A,
|
|
8854
|
-
class:
|
|
8902
|
+
class: g(["r-tooltip__arrow", {
|
|
8855
8903
|
"r-tooltip__arrow--dark": C.dark,
|
|
8856
8904
|
"r-tooltip__arrow--light": C.light
|
|
8857
8905
|
}])
|
|
8858
|
-
}, null, 2)) :
|
|
8906
|
+
}, null, 2)) : p("", !0)
|
|
8859
8907
|
])
|
|
8860
|
-
], 10,
|
|
8908
|
+
], 10, Y5)
|
|
8861
8909
|
]))
|
|
8862
8910
|
], 64));
|
|
8863
8911
|
}
|
|
8864
|
-
}),
|
|
8912
|
+
}), C3 = ["id", "onClick"], H3 = { class: "r-dropdown__selections" }, V3 = { class: "flex flex-wrap items-center gap-2 text-sm" }, L3 = {
|
|
8913
|
+
key: 0,
|
|
8914
|
+
class: "r-dropdown__remaining-count-text"
|
|
8915
|
+
}, M3 = ["id", "aria-controls", "aria-describedby", "aria-disabled", "aria-expanded", "aria-invalid", "aria-label", "aria-required", "autocomplete", "disabled", "name", "placeholder", "readonly", "required", "onInput", "onKeydown"], i3 = ["data-has-value", "onClick"], A3 = ["id", "aria-multiselectable"], e3 = ["aria-selected", "onClick"], d3 = { class: "flex items-center" }, t3 = { class: "r-dropdown-options__option__label" }, m3 = {
|
|
8865
8916
|
key: 1,
|
|
8866
8917
|
class: "r-dropdown-options__divider"
|
|
8867
|
-
},
|
|
8918
|
+
}, l3 = ["onClick"], o3 = { class: "flex items-center" }, a3 = {
|
|
8868
8919
|
key: 2,
|
|
8869
8920
|
class: "r-dropdown-options__no-option"
|
|
8870
|
-
},
|
|
8921
|
+
}, r3 = {
|
|
8871
8922
|
key: 0,
|
|
8872
8923
|
class: "r-dropdown-details"
|
|
8873
|
-
},
|
|
8924
|
+
}, n3 = {
|
|
8874
8925
|
key: 0,
|
|
8875
8926
|
class: "r-dropdown-error"
|
|
8876
|
-
},
|
|
8927
|
+
}, Z3 = {
|
|
8877
8928
|
key: 1,
|
|
8878
8929
|
class: "r-dropdown-hint"
|
|
8879
|
-
},
|
|
8930
|
+
}, u3 = /* @__PURE__ */ E({
|
|
8880
8931
|
__name: "RDropdown",
|
|
8881
8932
|
props: {
|
|
8882
8933
|
options: { default: () => [] },
|
|
@@ -8904,344 +8955,391 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8904
8955
|
tooltipClass: { default: "" },
|
|
8905
8956
|
showSelectAll: { type: Boolean, default: !1 },
|
|
8906
8957
|
selectAllText: { default: "Select all" },
|
|
8907
|
-
disableDeselect: { type: Boolean, default: !1 }
|
|
8958
|
+
disableDeselect: { type: Boolean, default: !1 },
|
|
8959
|
+
maxVisibleChips: { default: 2 },
|
|
8960
|
+
label: { default: "" },
|
|
8961
|
+
required: { type: Boolean, default: !1 },
|
|
8962
|
+
ariaLabel: { default: "" },
|
|
8963
|
+
name: { default: "" }
|
|
8908
8964
|
},
|
|
8909
8965
|
emits: ["update:modelValue", "clear", "removeOption"],
|
|
8910
8966
|
setup(H, { emit: V }) {
|
|
8911
|
-
const C = H, M = V, i =
|
|
8912
|
-
function
|
|
8913
|
-
if (!
|
|
8967
|
+
const C = H, M = V, i = R({}), L = R([]), A = R(!1), d = R("");
|
|
8968
|
+
function e(m) {
|
|
8969
|
+
if (!m || typeof m == "object" || typeof m == "function" || typeof m == "symbol" || typeof m > "u" || Array.isArray(m))
|
|
8914
8970
|
return !0;
|
|
8915
|
-
const [
|
|
8916
|
-
return ["label", "value"].includes(
|
|
8971
|
+
const [f] = Object == null ? void 0 : Object.keys(m);
|
|
8972
|
+
return ["label", "value"].includes(f);
|
|
8917
8973
|
}
|
|
8918
|
-
const
|
|
8919
|
-
const
|
|
8920
|
-
return
|
|
8921
|
-
value:
|
|
8922
|
-
label: String(
|
|
8974
|
+
const o = O(() => {
|
|
8975
|
+
const m = C.options;
|
|
8976
|
+
return e(m[0]) ? m : m.map((f) => ({
|
|
8977
|
+
value: f,
|
|
8978
|
+
label: String(f)
|
|
8923
8979
|
}));
|
|
8924
|
-
}),
|
|
8925
|
-
const
|
|
8926
|
-
return
|
|
8927
|
-
value:
|
|
8928
|
-
label: String(
|
|
8980
|
+
}), a = O(() => {
|
|
8981
|
+
const m = C.modelValue;
|
|
8982
|
+
return e(m) ? m : {
|
|
8983
|
+
value: m,
|
|
8984
|
+
label: String(m)
|
|
8929
8985
|
};
|
|
8930
|
-
}),
|
|
8931
|
-
function
|
|
8932
|
-
var
|
|
8986
|
+
}), Z = R(), r = R(), t = R();
|
|
8987
|
+
function u(m) {
|
|
8988
|
+
var U, h, j, b1;
|
|
8933
8989
|
if (C.disabled)
|
|
8934
8990
|
return;
|
|
8935
|
-
const
|
|
8936
|
-
document.querySelectorAll(".r-dropdown--active").forEach((
|
|
8937
|
-
var
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8991
|
+
const f = document.getElementById(m);
|
|
8992
|
+
document.querySelectorAll(".r-dropdown--active").forEach((G) => {
|
|
8993
|
+
var v1;
|
|
8994
|
+
G.id !== ((v1 = Z.value) == null ? void 0 : v1.id) && G.classList.contains("r-dropdown--active") && (G.childNodes.forEach((H1) => {
|
|
8995
|
+
H1 != null && H1.classList && (Object == null || Object.values(H1 == null ? void 0 : H1.classList).filter((N1) => N1.includes("--active")).forEach((N1) => {
|
|
8996
|
+
H1 == null || H1.classList.remove(N1);
|
|
8941
8997
|
}));
|
|
8942
|
-
}),
|
|
8943
|
-
}),
|
|
8944
|
-
|
|
8945
|
-
|
|
8998
|
+
}), G.classList.remove("r-dropdown--active"));
|
|
8999
|
+
}), f != null && f.classList.contains("r-dropdown--active") ? (f.classList.remove("r-dropdown--active"), A.value = !1, (U = Z.value) == null || U.blur(), (h = r.value) == null || h.blur()) : (f == null || f.classList.add("r-dropdown--active"), A.value = !0, (j = Z.value) == null || j.focus(), (b1 = r.value) == null || b1.focus(), f == null || f.childNodes.forEach((G) => {
|
|
9000
|
+
G != null && G.classList && (Object == null || Object.values(G == null ? void 0 : G.classList).forEach((v1) => {
|
|
9001
|
+
G == null || G.classList.add(`${v1}--active`);
|
|
8946
9002
|
}));
|
|
8947
9003
|
}));
|
|
8948
9004
|
}
|
|
8949
|
-
function
|
|
8950
|
-
const
|
|
8951
|
-
|
|
9005
|
+
function k(m) {
|
|
9006
|
+
const f = document.getElementById(m);
|
|
9007
|
+
f == null || f.classList.remove("r-dropdown--active"), A.value = !1;
|
|
8952
9008
|
}
|
|
8953
|
-
function
|
|
8954
|
-
var
|
|
8955
|
-
if (
|
|
8956
|
-
if (
|
|
8957
|
-
|
|
9009
|
+
function P(m, f, W, U) {
|
|
9010
|
+
var h;
|
|
9011
|
+
if (U(), !f.disabled) {
|
|
9012
|
+
if (f.value === "select-all") {
|
|
9013
|
+
m1();
|
|
8958
9014
|
return;
|
|
8959
9015
|
}
|
|
8960
9016
|
if (C.multiple) {
|
|
8961
|
-
L.value.find((
|
|
9017
|
+
L.value.find((j) => j.value === f.value) ? (L.value.splice(L.value.indexOf(f), 1), M("removeOption", f)) : L.value.push(f), d.value = "", C.searchable && ((h = r.value) == null || h.focus());
|
|
8962
9018
|
return;
|
|
8963
9019
|
}
|
|
8964
|
-
|
|
9020
|
+
v(m, f), C.closeOnSelect && W();
|
|
8965
9021
|
}
|
|
8966
9022
|
}
|
|
8967
|
-
function
|
|
8968
|
-
if (i.value.value ===
|
|
8969
|
-
i.value = {},
|
|
9023
|
+
function v(m, f) {
|
|
9024
|
+
if (i.value.value === f.value && !C.disableDeselect) {
|
|
9025
|
+
i.value = {}, d.value = "", M("update:modelValue", ""), M("removeOption", f);
|
|
8970
9026
|
return;
|
|
8971
9027
|
}
|
|
8972
|
-
|
|
9028
|
+
d.value = f.label, i.value = f, M("update:modelValue", f);
|
|
8973
9029
|
}
|
|
8974
|
-
function
|
|
8975
|
-
if (
|
|
9030
|
+
function y(m, f, W) {
|
|
9031
|
+
if (m instanceof KeyboardEvent && m.key !== "Backspace" || d.value !== "")
|
|
8976
9032
|
return;
|
|
8977
|
-
|
|
8978
|
-
const
|
|
8979
|
-
L.value.splice(
|
|
9033
|
+
m.stopPropagation(), W();
|
|
9034
|
+
const U = L.value.findIndex((h) => h.value === f.value);
|
|
9035
|
+
L.value.splice(U, 1), M("removeOption", f), M("update:modelValue", L.value);
|
|
8980
9036
|
}
|
|
8981
|
-
function
|
|
8982
|
-
var
|
|
9037
|
+
function T(m, f) {
|
|
9038
|
+
var h;
|
|
8983
9039
|
if (!C.multiple)
|
|
8984
9040
|
return;
|
|
8985
|
-
|
|
8986
|
-
const
|
|
8987
|
-
if (
|
|
9041
|
+
m.stopPropagation(), f();
|
|
9042
|
+
const W = d.value;
|
|
9043
|
+
if (W === "")
|
|
8988
9044
|
return;
|
|
8989
|
-
|
|
9045
|
+
o.value.find((j) => j.label === W) || (L.value.push({ value: W, label: W }), d.value = "", (h = r.value) == null || h.focus());
|
|
8990
9046
|
}
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
return
|
|
9047
|
+
const s = O(() => !C.searchable || i.value.label === d.value ? o.value : o.value.filter((f) => f.label.toLowerCase().includes(d.value.toLowerCase())));
|
|
9048
|
+
function B(m) {
|
|
9049
|
+
return m.value === "select-all" ? L.value.length === s.value.length : C.multiple ? L.value.some((f) => f.value === m.value) : C.modelValue === m.value;
|
|
8994
9050
|
}
|
|
8995
|
-
const
|
|
8996
|
-
function
|
|
8997
|
-
|
|
9051
|
+
const I = O(() => !C.searchable);
|
|
9052
|
+
function F() {
|
|
9053
|
+
a.value ? C.multiple ? L.value = a.value : (i.value = a.value, d.value = a.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
|
|
8998
9054
|
}
|
|
8999
|
-
function
|
|
9000
|
-
C.searchable &&
|
|
9055
|
+
function c(m) {
|
|
9056
|
+
C.searchable && m(), !C.multiple && d.value === "" && (i.value = {}, M("update:modelValue", ""), M("removeOption", i.value));
|
|
9001
9057
|
}
|
|
9002
|
-
function
|
|
9003
|
-
if (
|
|
9058
|
+
function $(m, f) {
|
|
9059
|
+
if (m.stopPropagation(), f(), C.multiple) {
|
|
9004
9060
|
L.value.splice(0, L.value.length), M("clear", L.value);
|
|
9005
9061
|
return;
|
|
9006
9062
|
}
|
|
9007
|
-
i.value = {},
|
|
9063
|
+
i.value = {}, d.value = "", M("update:modelValue", ""), M("clear", i.value);
|
|
9008
9064
|
}
|
|
9009
|
-
function
|
|
9010
|
-
if (L.value.length ===
|
|
9065
|
+
function m1() {
|
|
9066
|
+
if (L.value.length === s.value.length) {
|
|
9011
9067
|
L.value.splice(0, L.value.length);
|
|
9012
9068
|
return;
|
|
9013
9069
|
}
|
|
9014
|
-
L.value =
|
|
9070
|
+
L.value = s.value;
|
|
9015
9071
|
}
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9072
|
+
const l1 = O(() => !C.multiple || !Array.isArray(C.modelValue) ? [] : C.modelValue.slice(0, C.maxVisibleChips)), Q = O(() => !C.multiple || !Array.isArray(C.modelValue) ? 0 : Math.max(0, C.modelValue.length - C.maxVisibleChips));
|
|
9073
|
+
j1(() => {
|
|
9074
|
+
F(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
|
|
9075
|
+
}), N(
|
|
9019
9076
|
L,
|
|
9020
|
-
(
|
|
9021
|
-
M("update:modelValue",
|
|
9077
|
+
(m) => {
|
|
9078
|
+
M("update:modelValue", m);
|
|
9022
9079
|
},
|
|
9023
9080
|
{
|
|
9024
9081
|
deep: !0
|
|
9025
9082
|
}
|
|
9026
|
-
),
|
|
9027
|
-
|
|
9028
|
-
})
|
|
9083
|
+
), N(() => a.value, (m) => {
|
|
9084
|
+
F();
|
|
9085
|
+
});
|
|
9086
|
+
const Y = O(() => C.id || `dropdown-${Math.random().toString(36).substr(2, 9)}`), _ = O(() => `${Y.value}-listbox`), K = O(() => ({
|
|
9087
|
+
"aria-label": C.ariaLabel || C.label,
|
|
9088
|
+
"aria-expanded": A.value,
|
|
9089
|
+
"aria-haspopup": "listbox",
|
|
9090
|
+
"aria-controls": _.value,
|
|
9091
|
+
"aria-required": C.required || void 0,
|
|
9092
|
+
"aria-disabled": C.disabled || void 0,
|
|
9093
|
+
"aria-invalid": !!C.errorMsg,
|
|
9094
|
+
"aria-describedby": C.errorMsg ? `${Y.value}-error` : C.hint ? `${Y.value}-hint` : void 0,
|
|
9095
|
+
role: "combobox"
|
|
9096
|
+
}));
|
|
9097
|
+
function q(m, f) {
|
|
9098
|
+
return {
|
|
9099
|
+
role: "option",
|
|
9100
|
+
id: `${_.value}-${f}`,
|
|
9101
|
+
"aria-selected": B(m),
|
|
9102
|
+
"aria-disabled": m.disabled
|
|
9103
|
+
};
|
|
9104
|
+
}
|
|
9105
|
+
return (m, f) => (l(), n("div", {
|
|
9029
9106
|
ref_key: "wrapper",
|
|
9030
|
-
ref:
|
|
9107
|
+
ref: t,
|
|
9031
9108
|
class: "r-dropdown-wrapper"
|
|
9032
9109
|
}, [
|
|
9033
|
-
|
|
9110
|
+
J(J5, {
|
|
9034
9111
|
"auto-hide": !1,
|
|
9035
9112
|
offset: 0,
|
|
9036
9113
|
placement: "bottom",
|
|
9037
9114
|
resizable: "",
|
|
9038
|
-
"tooltip-class": ["w-full",
|
|
9115
|
+
"tooltip-class": ["w-full", m.tooltipClass],
|
|
9039
9116
|
"trigger-class": "w-full",
|
|
9040
9117
|
triggers: ["click"],
|
|
9041
9118
|
type: "dropdown",
|
|
9042
|
-
onHide:
|
|
9043
|
-
B(P);
|
|
9044
|
-
})
|
|
9119
|
+
onHide: k
|
|
9045
9120
|
}, {
|
|
9046
|
-
default:
|
|
9047
|
-
|
|
9048
|
-
id:
|
|
9121
|
+
default: O1(({ updatePosition: W, tooltipId: U }) => [
|
|
9122
|
+
S("div", T1({
|
|
9123
|
+
id: U,
|
|
9049
9124
|
ref_key: "dropdown",
|
|
9050
|
-
ref:
|
|
9051
|
-
class:
|
|
9052
|
-
"r-dropdown--disabled":
|
|
9053
|
-
"r-dropdown--loading":
|
|
9054
|
-
[
|
|
9055
|
-
"r-dropdown--error":
|
|
9056
|
-
group:
|
|
9057
|
-
}]
|
|
9058
|
-
|
|
9059
|
-
onClick: (
|
|
9060
|
-
}, [
|
|
9061
|
-
|
|
9125
|
+
ref: Z,
|
|
9126
|
+
class: ["r-dropdown", {
|
|
9127
|
+
"r-dropdown--disabled": m.disabled,
|
|
9128
|
+
"r-dropdown--loading": m.loading,
|
|
9129
|
+
[m.dropdownClass]: m.dropdownClass,
|
|
9130
|
+
"r-dropdown--error": m.errorMsg,
|
|
9131
|
+
group: d.value !== "" || L.value.length
|
|
9132
|
+
}]
|
|
9133
|
+
}, K.value, {
|
|
9134
|
+
onClick: (h) => u(U)
|
|
9135
|
+
}), [
|
|
9136
|
+
m.prependIcon || m.$slots.prepend ? (l(), n("div", {
|
|
9062
9137
|
key: 0,
|
|
9063
|
-
class:
|
|
9138
|
+
class: g(["r-dropdown__prepend-icon", {
|
|
9064
9139
|
"r-dropdown__prepend-icon--active": A.value,
|
|
9065
|
-
"r-dropdown__prepend-icon--error":
|
|
9140
|
+
"r-dropdown__prepend-icon--error": m.errorMsg
|
|
9066
9141
|
}])
|
|
9067
9142
|
}, [
|
|
9068
|
-
|
|
9143
|
+
b(m.$slots, "prepend", {
|
|
9069
9144
|
active: A.value,
|
|
9070
|
-
disabled:
|
|
9071
|
-
error:
|
|
9072
|
-
loading:
|
|
9145
|
+
disabled: m.disabled,
|
|
9146
|
+
error: !!m.errorMsg,
|
|
9147
|
+
loading: m.loading
|
|
9073
9148
|
}, () => [
|
|
9074
|
-
|
|
9149
|
+
m.prependIcon ? (l(), x(D, {
|
|
9075
9150
|
key: 0,
|
|
9076
|
-
|
|
9077
|
-
|
|
9151
|
+
"aria-hidden": "true",
|
|
9152
|
+
name: m.prependIcon
|
|
9153
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9078
9154
|
])
|
|
9079
|
-
], 2)) :
|
|
9080
|
-
|
|
9081
|
-
(m
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
option: c,
|
|
9085
|
-
removeOption: b
|
|
9155
|
+
], 2)) : p("", !0),
|
|
9156
|
+
S("div", H3, [
|
|
9157
|
+
b(m.$slots, "selection", {
|
|
9158
|
+
removeOption: y,
|
|
9159
|
+
selected: L.value
|
|
9086
9160
|
}, () => [
|
|
9087
|
-
|
|
9088
|
-
key:
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9161
|
+
S("div", V3, [
|
|
9162
|
+
m.multiple && m.chips ? (l(), n(i1, { key: 0 }, [
|
|
9163
|
+
(l(!0), n(i1, null, r1(l1.value, (h) => (l(), x(t5, {
|
|
9164
|
+
key: h.value,
|
|
9165
|
+
clearable: !m.hideChipClear,
|
|
9166
|
+
ghost: "",
|
|
9167
|
+
label: h.label,
|
|
9168
|
+
variant: "primary",
|
|
9169
|
+
"onClick:close": (j) => y(j, h, W)
|
|
9170
|
+
}, null, 8, ["clearable", "label", "onClick:close"]))), 128)),
|
|
9171
|
+
b(m.$slots, "remaining-count", { count: Q.value }, () => [
|
|
9172
|
+
Q.value > 0 ? (l(), n("span", L3, " +" + w(Q.value), 1)) : p("", !0)
|
|
9173
|
+
])
|
|
9174
|
+
], 64)) : m.multiple ? (l(!0), n(i1, { key: 1 }, r1(L.value, (h, j) => (l(), n("span", {
|
|
9175
|
+
key: h.value
|
|
9176
|
+
}, w(h.label) + w(j < L.value.length - 1 ? ", " : ""), 1))), 128)) : p("", !0)
|
|
9177
|
+
])
|
|
9178
|
+
]),
|
|
9179
|
+
l2(S("input", {
|
|
9180
|
+
id: m.id,
|
|
9099
9181
|
ref_key: "input",
|
|
9100
|
-
ref:
|
|
9101
|
-
"onUpdate:modelValue":
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9182
|
+
ref: r,
|
|
9183
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => d.value = h),
|
|
9184
|
+
"aria-controls": _.value,
|
|
9185
|
+
"aria-describedby": m.errorMsg ? `${Y.value}-error` : m.hint ? `${Y.value}-hint` : void 0,
|
|
9186
|
+
"aria-disabled": m.disabled,
|
|
9187
|
+
"aria-expanded": A.value,
|
|
9188
|
+
"aria-invalid": !!m.errorMsg,
|
|
9189
|
+
"aria-label": m.ariaLabel || m.label,
|
|
9190
|
+
"aria-required": m.required,
|
|
9191
|
+
autocomplete: m.autocomplete,
|
|
9192
|
+
class: g(["r-dropdown__input", {
|
|
9193
|
+
"r-dropdown__input--loading": m.loading
|
|
9105
9194
|
}]),
|
|
9106
|
-
disabled:
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9195
|
+
disabled: m.disabled,
|
|
9196
|
+
name: m.name,
|
|
9197
|
+
placeholder: m.placeholder,
|
|
9198
|
+
readonly: I.value,
|
|
9199
|
+
required: m.required,
|
|
9200
|
+
role: "combobox",
|
|
9110
9201
|
type: "text",
|
|
9111
|
-
onInput:
|
|
9202
|
+
onInput: o1((h) => c(W), ["prevent"]),
|
|
9112
9203
|
onKeydown: [
|
|
9113
|
-
|
|
9114
|
-
|
|
9204
|
+
p1((h) => y(h, L.value[L.value.length - 1], W), ["backspace"]),
|
|
9205
|
+
p1((h) => T(h, W), ["enter"])
|
|
9115
9206
|
]
|
|
9116
|
-
}, null, 42,
|
|
9117
|
-
[
|
|
9207
|
+
}, null, 42, M3), [
|
|
9208
|
+
[o2, d.value]
|
|
9118
9209
|
])
|
|
9119
9210
|
]),
|
|
9120
|
-
|
|
9211
|
+
m.clearable ? (l(), n("div", {
|
|
9121
9212
|
key: 1,
|
|
9122
9213
|
class: "r-dropdown__clearable",
|
|
9123
|
-
"data-has-value": (
|
|
9124
|
-
onClick: (
|
|
9214
|
+
"data-has-value": (d.value !== "" || L.value.length) && A.value,
|
|
9215
|
+
onClick: (h) => $(h, W)
|
|
9125
9216
|
}, [
|
|
9126
|
-
|
|
9127
|
-
|
|
9217
|
+
b(m.$slots, "clearable", {}, () => [
|
|
9218
|
+
J(D, {
|
|
9219
|
+
"aria-hidden": "true",
|
|
9128
9220
|
name: "mdiCloseCircle",
|
|
9129
9221
|
size: "18"
|
|
9130
9222
|
})
|
|
9131
9223
|
])
|
|
9132
|
-
], 8,
|
|
9133
|
-
|
|
9224
|
+
], 8, i3)) : p("", !0),
|
|
9225
|
+
m.appendIcon || m.$slots.append ? (l(), n("div", {
|
|
9134
9226
|
key: 2,
|
|
9135
|
-
class:
|
|
9227
|
+
class: g(["r-dropdown__append-icon", {
|
|
9136
9228
|
"r-dropdown__append-icon--active": A.value,
|
|
9137
|
-
"r-dropdown__append-icon--error":
|
|
9229
|
+
"r-dropdown__append-icon--error": m.errorMsg
|
|
9138
9230
|
}])
|
|
9139
9231
|
}, [
|
|
9140
|
-
|
|
9232
|
+
b(m.$slots, "append", {
|
|
9141
9233
|
active: A.value,
|
|
9142
|
-
disabled:
|
|
9143
|
-
error:
|
|
9144
|
-
loading:
|
|
9234
|
+
disabled: m.disabled,
|
|
9235
|
+
error: !!m.errorMsg,
|
|
9236
|
+
loading: m.loading
|
|
9145
9237
|
}, () => [
|
|
9146
|
-
|
|
9238
|
+
m.appendIcon ? (l(), x(D, {
|
|
9147
9239
|
key: 0,
|
|
9148
|
-
|
|
9149
|
-
|
|
9240
|
+
"aria-hidden": "true",
|
|
9241
|
+
name: m.appendIcon
|
|
9242
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9150
9243
|
])
|
|
9151
|
-
], 2)) :
|
|
9152
|
-
],
|
|
9244
|
+
], 2)) : p("", !0)
|
|
9245
|
+
], 16, C3)
|
|
9153
9246
|
]),
|
|
9154
|
-
content:
|
|
9155
|
-
|
|
9156
|
-
|
|
9247
|
+
content: O1(({ hide: W, updatePosition: U }) => [
|
|
9248
|
+
S("ul", {
|
|
9249
|
+
id: _.value,
|
|
9250
|
+
"aria-multiselectable": m.multiple,
|
|
9251
|
+
class: g(["r-dropdown-options", {
|
|
9157
9252
|
"r-dropdown-options--active": A.value,
|
|
9158
|
-
[
|
|
9159
|
-
}])
|
|
9253
|
+
[m.optionsClass]: m.optionsClass
|
|
9254
|
+
}]),
|
|
9255
|
+
role: "listbox"
|
|
9160
9256
|
}, [
|
|
9161
|
-
|
|
9257
|
+
m.showSelectAll && m.multiple && s.value.length > 0 ? (l(), n("li", {
|
|
9162
9258
|
key: 0,
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
"r-dropdown-options__option--
|
|
9259
|
+
"aria-selected": L.value.length === s.value.length,
|
|
9260
|
+
class: g(["r-dropdown-options__option", {
|
|
9261
|
+
"r-dropdown-options__option--active": L.value.length === s.value.length
|
|
9166
9262
|
}]),
|
|
9167
|
-
|
|
9263
|
+
role: "option",
|
|
9264
|
+
onClick: o1((h) => P(h, { label: m.selectAllText, value: "select-all" }, W, U), ["prevent"])
|
|
9168
9265
|
}, [
|
|
9169
|
-
|
|
9170
|
-
|
|
9266
|
+
S("div", d3, [
|
|
9267
|
+
S("p", t3, w(m.selectAllText), 1)
|
|
9171
9268
|
]),
|
|
9172
|
-
L.value.length ===
|
|
9269
|
+
L.value.length === s.value.length && !m.hideOptionCheckIcon ? (l(), x(D, {
|
|
9173
9270
|
key: 0,
|
|
9174
|
-
|
|
9175
|
-
|
|
9271
|
+
"aria-hidden": "true",
|
|
9272
|
+
class: g(["r-dropdown-options__option__append-icon", {
|
|
9273
|
+
"r-dropdown-options__option__append-icon--active": L.value.length === s.value.length
|
|
9176
9274
|
}]),
|
|
9177
9275
|
name: "mdiCheck"
|
|
9178
|
-
}, null, 8, ["class"])) :
|
|
9179
|
-
], 10,
|
|
9180
|
-
|
|
9181
|
-
(
|
|
9182
|
-
key:
|
|
9183
|
-
|
|
9184
|
-
class:
|
|
9185
|
-
"r-dropdown-options__option--active":
|
|
9186
|
-
"r-dropdown-options__option--disabled":
|
|
9187
|
-
"r-dropdown-options__option--deselect":
|
|
9188
|
-
}]
|
|
9189
|
-
onClick:
|
|
9190
|
-
}, [
|
|
9191
|
-
|
|
9192
|
-
disabled:
|
|
9193
|
-
isSelected:
|
|
9194
|
-
item:
|
|
9276
|
+
}, null, 8, ["class"])) : p("", !0)
|
|
9277
|
+
], 10, e3)) : p("", !0),
|
|
9278
|
+
m.showSelectAll && s.value.length > 0 ? (l(), n("hr", m3)) : p("", !0),
|
|
9279
|
+
(l(!0), n(i1, null, r1(s.value, (h, j) => (l(), n("li", T1({
|
|
9280
|
+
key: h.value
|
|
9281
|
+
}, q(h, j), {
|
|
9282
|
+
class: ["r-dropdown-options__option", {
|
|
9283
|
+
"r-dropdown-options__option--active": B(h),
|
|
9284
|
+
"r-dropdown-options__option--disabled": h.disabled,
|
|
9285
|
+
"r-dropdown-options__option--deselect": B(h) && C.disableDeselect
|
|
9286
|
+
}],
|
|
9287
|
+
onClick: o1((b1) => P(b1, h, W, U), ["prevent"])
|
|
9288
|
+
}), [
|
|
9289
|
+
b(m.$slots, "option", {
|
|
9290
|
+
disabled: h.disabled,
|
|
9291
|
+
isSelected: B(h),
|
|
9292
|
+
item: h
|
|
9195
9293
|
}, () => [
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
disabled:
|
|
9199
|
-
isSelected:
|
|
9294
|
+
S("div", o3, [
|
|
9295
|
+
b(m.$slots, "option-prepend", {
|
|
9296
|
+
disabled: h.disabled,
|
|
9297
|
+
isSelected: B(h)
|
|
9200
9298
|
}, () => [
|
|
9201
|
-
|
|
9299
|
+
h.prependIcon ? (l(), x(D, {
|
|
9202
9300
|
key: 0,
|
|
9203
|
-
class:
|
|
9204
|
-
"r-dropdown-options__option__prepend-icon--active":
|
|
9301
|
+
class: g(["r-dropdown-options__option__prepend-icon", {
|
|
9302
|
+
"r-dropdown-options__option__prepend-icon--active": B(h)
|
|
9205
9303
|
}]),
|
|
9206
|
-
name:
|
|
9207
|
-
}, null, 8, ["class", "name"])) :
|
|
9304
|
+
name: h.prependIcon
|
|
9305
|
+
}, null, 8, ["class", "name"])) : p("", !0)
|
|
9208
9306
|
]),
|
|
9209
|
-
|
|
9210
|
-
class:
|
|
9211
|
-
"r-dropdown-options__option__label--active":
|
|
9307
|
+
S("p", {
|
|
9308
|
+
class: g(["r-dropdown-options__option__label", {
|
|
9309
|
+
"r-dropdown-options__option__label--active": B(h)
|
|
9212
9310
|
}])
|
|
9213
|
-
}, w(
|
|
9311
|
+
}, w(h.label), 3)
|
|
9214
9312
|
]),
|
|
9215
|
-
|
|
9216
|
-
disabled:
|
|
9217
|
-
isSelected:
|
|
9313
|
+
b(m.$slots, "option-append", {
|
|
9314
|
+
disabled: h.disabled,
|
|
9315
|
+
isSelected: B(h)
|
|
9218
9316
|
}, () => [
|
|
9219
|
-
|
|
9317
|
+
B(h) && !C.hideOptionCheckIcon ? (l(), x(D, {
|
|
9220
9318
|
key: 0,
|
|
9221
|
-
class:
|
|
9222
|
-
"r-dropdown-options__option__append-icon--active":
|
|
9319
|
+
class: g(["r-dropdown-options__option__append-icon", {
|
|
9320
|
+
"r-dropdown-options__option__append-icon--active": B(h)
|
|
9223
9321
|
}]),
|
|
9224
9322
|
name: "mdiCheck"
|
|
9225
|
-
}, null, 8, ["class"])) :
|
|
9323
|
+
}, null, 8, ["class"])) : p("", !0)
|
|
9226
9324
|
])
|
|
9227
9325
|
])
|
|
9228
|
-
],
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9326
|
+
], 16, l3))), 128)),
|
|
9327
|
+
s.value.length === 0 ? (l(), n("li", a3, [
|
|
9328
|
+
b(m.$slots, "not-options", {}, () => [
|
|
9329
|
+
d1(w(C.noOptionsText), 1)
|
|
9232
9330
|
])
|
|
9233
|
-
])) :
|
|
9234
|
-
],
|
|
9331
|
+
])) : p("", !0)
|
|
9332
|
+
], 10, A3)
|
|
9235
9333
|
]),
|
|
9236
9334
|
_: 3
|
|
9237
9335
|
}, 8, ["tooltip-class"]),
|
|
9238
|
-
|
|
9239
|
-
C.errorMsg ? (
|
|
9240
|
-
C.hint ? (
|
|
9241
|
-
]))
|
|
9336
|
+
!C.hideDetails && (C.errorMsg || C.hint) ? (l(), n("div", r3, [
|
|
9337
|
+
C.errorMsg ? (l(), n("div", n3, w(C.errorMsg), 1)) : p("", !0),
|
|
9338
|
+
C.hint ? (l(), n("div", Z3, w(C.hint), 1)) : p("", !0)
|
|
9339
|
+
])) : p("", !0)
|
|
9242
9340
|
], 512));
|
|
9243
9341
|
}
|
|
9244
|
-
}),
|
|
9342
|
+
}), S3 = ["id", "for"], b2 = /* @__PURE__ */ E({
|
|
9245
9343
|
__name: "RLabel",
|
|
9246
9344
|
props: {
|
|
9247
9345
|
id: { default: "" },
|
|
@@ -9250,26 +9348,23 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9250
9348
|
},
|
|
9251
9349
|
setup(H) {
|
|
9252
9350
|
const V = H;
|
|
9253
|
-
return (C, M) => (
|
|
9351
|
+
return (C, M) => (l(), n("label", {
|
|
9254
9352
|
id: V.id,
|
|
9255
9353
|
class: "r-label",
|
|
9256
9354
|
for: V.for
|
|
9257
9355
|
}, [
|
|
9258
|
-
|
|
9259
|
-
|
|
9356
|
+
b(C.$slots, "default", {}, () => [
|
|
9357
|
+
d1(w(V.text), 1)
|
|
9260
9358
|
])
|
|
9261
|
-
], 8,
|
|
9359
|
+
], 8, S3));
|
|
9262
9360
|
}
|
|
9263
|
-
}),
|
|
9361
|
+
}), s3 = ["id"], c3 = {
|
|
9264
9362
|
key: 0,
|
|
9265
|
-
class: "
|
|
9266
|
-
},
|
|
9363
|
+
class: "r-dialog__header"
|
|
9364
|
+
}, p3 = { class: "r-dialog__header-content" }, O3 = { class: "r-dialog__texts" }, f3 = ["id"], h3 = ["id"], g3 = {
|
|
9267
9365
|
key: 1,
|
|
9268
|
-
class: "
|
|
9269
|
-
},
|
|
9270
|
-
key: 2,
|
|
9271
|
-
class: "description"
|
|
9272
|
-
}, r3 = { class: "r-dialog__body" }, a3 = { class: "r-dialog__actions" }, c0 = /* @__PURE__ */ x({
|
|
9366
|
+
class: "r-dialog__actions"
|
|
9367
|
+
}, I0 = /* @__PURE__ */ E({
|
|
9273
9368
|
__name: "RModal",
|
|
9274
9369
|
props: {
|
|
9275
9370
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9284,61 +9379,146 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9284
9379
|
class: { default: "" },
|
|
9285
9380
|
overlayClass: { default: "" },
|
|
9286
9381
|
style: { default: "" },
|
|
9287
|
-
allowBodyScroll: { type: Boolean, default: !1 }
|
|
9382
|
+
allowBodyScroll: { type: Boolean, default: !1 },
|
|
9383
|
+
id: { default: void 0 },
|
|
9384
|
+
ariaLabel: { default: "" },
|
|
9385
|
+
ariaDescription: { default: "" }
|
|
9288
9386
|
},
|
|
9289
9387
|
emits: ["update:modelValue"],
|
|
9290
9388
|
setup(H, { emit: V }) {
|
|
9291
|
-
const C = H, M = V, i =
|
|
9389
|
+
const C = H, M = V, i = O(() => ({
|
|
9292
9390
|
"r-dialog": !0,
|
|
9293
9391
|
"r-dialog--block": C.block,
|
|
9294
9392
|
"p-0 gap-0": C.clearContent,
|
|
9295
9393
|
[`${C.class}`]: !0
|
|
9296
|
-
})), L =
|
|
9394
|
+
})), L = O(() => ({
|
|
9297
9395
|
width: C.width,
|
|
9298
9396
|
height: C.height
|
|
9299
9397
|
}));
|
|
9300
|
-
function A(
|
|
9301
|
-
C.outsideClick &&
|
|
9398
|
+
function A(s) {
|
|
9399
|
+
C.outsideClick && s.target === s.currentTarget && M("update:modelValue", !1);
|
|
9302
9400
|
}
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9401
|
+
const d = R(C.id || `modal-${Math.random().toString(36).substr(2, 9)}`), e = R(`${d.value}-title`), o = R(`${d.value}-description`), a = R(null), Z = R(null), r = R(null), t = R(null), u = O(() => ({
|
|
9402
|
+
role: "dialog",
|
|
9403
|
+
"aria-modal": "true",
|
|
9404
|
+
"aria-labelledby": C.title ? e.value : void 0,
|
|
9405
|
+
"aria-describedby": C.description ? o.value : void 0,
|
|
9406
|
+
"aria-label": C.title ? void 0 : C.ariaLabel
|
|
9407
|
+
}));
|
|
9408
|
+
function k() {
|
|
9409
|
+
if (!Z.value)
|
|
9410
|
+
return;
|
|
9411
|
+
const s = Z.value.querySelectorAll(
|
|
9412
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
9413
|
+
);
|
|
9414
|
+
r.value = s[0], t.value = s[s.length - 1];
|
|
9415
|
+
}
|
|
9416
|
+
function P(s) {
|
|
9417
|
+
!C.modelValue || !r.value || !t.value || !(s.key === "Tab") || (s.shiftKey ? document.activeElement === r.value && (s.preventDefault(), t.value.focus()) : document.activeElement === t.value && (s.preventDefault(), r.value.focus()));
|
|
9418
|
+
}
|
|
9419
|
+
function v(s) {
|
|
9420
|
+
s.key === "Escape" && C.modelValue && C.outsideClick && (s.preventDefault(), M("update:modelValue", !1));
|
|
9421
|
+
}
|
|
9422
|
+
function y(s) {
|
|
9423
|
+
P(s), v(s);
|
|
9424
|
+
}
|
|
9425
|
+
const T = R(null);
|
|
9426
|
+
return N(() => C.modelValue, async (s) => {
|
|
9427
|
+
var B, I;
|
|
9428
|
+
if (s) {
|
|
9429
|
+
a.value = document.activeElement, document.body.style.overflow = C.allowBodyScroll ? "auto" : "hidden", await I1(), k(), (B = r.value) == null || B.focus(), Z.value && !T.value && (T.value = new MutationObserver(() => {
|
|
9430
|
+
I1(() => {
|
|
9431
|
+
k();
|
|
9432
|
+
});
|
|
9433
|
+
}), T.value.observe(Z.value, {
|
|
9434
|
+
childList: !0,
|
|
9435
|
+
subtree: !0
|
|
9436
|
+
}));
|
|
9437
|
+
const F = document.createElement("div");
|
|
9438
|
+
F.setAttribute("role", "status"), F.setAttribute("aria-live", "polite"), F.textContent = `Dialog ${C.title || ""} opened`, document.body.appendChild(F), setTimeout(() => F.remove(), 1e3);
|
|
9439
|
+
} else {
|
|
9440
|
+
document.body.style.overflow = "auto", (I = a.value) == null || I.focus();
|
|
9441
|
+
const F = document.createElement("div");
|
|
9442
|
+
F.setAttribute("role", "status"), F.setAttribute("aria-live", "polite"), F.textContent = `Dialog ${C.title || ""} closed`, document.body.appendChild(F), setTimeout(() => F.remove(), 1e3);
|
|
9443
|
+
}
|
|
9444
|
+
}), j1(() => {
|
|
9445
|
+
C.modelValue && I1(() => {
|
|
9446
|
+
var s;
|
|
9447
|
+
k(), (s = r.value) == null || s.focus();
|
|
9448
|
+
});
|
|
9449
|
+
}), w2(() => {
|
|
9450
|
+
var s;
|
|
9451
|
+
document.body.style.overflow = "auto", (s = T.value) == null || s.disconnect();
|
|
9452
|
+
}), (s, B) => (l(), x(m2, { to: "body" }, [
|
|
9453
|
+
J(P2, { name: "modal" }, {
|
|
9454
|
+
default: O1(() => [
|
|
9455
|
+
s.modelValue ? (l(), n("div", T1({
|
|
9456
|
+
key: 0,
|
|
9457
|
+
id: d.value,
|
|
9458
|
+
ref_key: "modalRef",
|
|
9459
|
+
ref: Z,
|
|
9460
|
+
class: ["r-modal-overlay", [`${s.overlayClass}`]]
|
|
9461
|
+
}, u.value, {
|
|
9462
|
+
tabindex: "-1",
|
|
9463
|
+
onClick: A,
|
|
9464
|
+
onKeydown: y
|
|
9465
|
+
}), [
|
|
9466
|
+
S("div", {
|
|
9467
|
+
class: g(i.value),
|
|
9468
|
+
role: "document",
|
|
9469
|
+
style: X1(L.value)
|
|
9470
|
+
}, [
|
|
9471
|
+
s.clearContent ? p("", !0) : (l(), n("div", c3, [
|
|
9472
|
+
S("div", p3, [
|
|
9473
|
+
s.icon ? (l(), x(D, {
|
|
9474
|
+
key: 0,
|
|
9475
|
+
"aria-hidden": "true",
|
|
9476
|
+
class: "r-dialog__icon",
|
|
9477
|
+
name: s.icon
|
|
9478
|
+
}, null, 8, ["name"])) : p("", !0),
|
|
9479
|
+
S("div", O3, [
|
|
9480
|
+
s.title ? (l(), n("h2", {
|
|
9481
|
+
key: 0,
|
|
9482
|
+
id: e.value,
|
|
9483
|
+
class: "r-dialog__title"
|
|
9484
|
+
}, w(s.title), 9, f3)) : p("", !0),
|
|
9485
|
+
s.description ? (l(), n("p", {
|
|
9486
|
+
key: 1,
|
|
9487
|
+
id: o.value,
|
|
9488
|
+
class: "r-dialog__description"
|
|
9489
|
+
}, w(s.description), 9, h3)) : p("", !0)
|
|
9490
|
+
])
|
|
9491
|
+
]),
|
|
9492
|
+
s.outsideClick ? (l(), n("button", {
|
|
9493
|
+
key: 0,
|
|
9494
|
+
"aria-label": "Close dialog",
|
|
9495
|
+
class: "r-dialog__close",
|
|
9496
|
+
onClick: B[0] || (B[0] = (I) => s.$emit("update:modelValue", !1))
|
|
9497
|
+
}, [
|
|
9498
|
+
J(D, {
|
|
9499
|
+
"aria-hidden": "true",
|
|
9500
|
+
name: "mdiClose"
|
|
9501
|
+
})
|
|
9502
|
+
])) : p("", !0)
|
|
9503
|
+
])),
|
|
9504
|
+
S("div", {
|
|
9505
|
+
class: g(["r-dialog__body", {
|
|
9506
|
+
"r-dialog__body--clear": s.clearContent
|
|
9507
|
+
}])
|
|
9508
|
+
}, [
|
|
9509
|
+
b(s.$slots, "default")
|
|
9510
|
+
], 2),
|
|
9511
|
+
!s.clearContent && s.$slots.actions ? (l(), n("div", g3, [
|
|
9512
|
+
b(s.$slots, "actions")
|
|
9513
|
+
])) : p("", !0)
|
|
9514
|
+
], 6)
|
|
9515
|
+
], 16, s3)) : p("", !0)
|
|
9516
|
+
]),
|
|
9517
|
+
_: 3
|
|
9518
|
+
})
|
|
9519
|
+
]));
|
|
9340
9520
|
}
|
|
9341
|
-
}),
|
|
9521
|
+
}), k3 = ["data-open"], b3 = ["data-open"], v3 = ["data-open"], $0 = /* @__PURE__ */ E({
|
|
9342
9522
|
__name: "RSidebar",
|
|
9343
9523
|
props: {
|
|
9344
9524
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9350,33 +9530,33 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9350
9530
|
emits: ["update:modelValue"],
|
|
9351
9531
|
setup(H, { emit: V }) {
|
|
9352
9532
|
const C = H, M = V;
|
|
9353
|
-
return (i, L) => (
|
|
9354
|
-
class:
|
|
9533
|
+
return (i, L) => (l(), n("div", {
|
|
9534
|
+
class: g(["r-sidebar__wrapper", [i.$props.wrapperClass]]),
|
|
9355
9535
|
"data-open": C.modelValue
|
|
9356
9536
|
}, [
|
|
9357
|
-
|
|
9358
|
-
class:
|
|
9537
|
+
S("aside", {
|
|
9538
|
+
class: g(["r-sidebar", [C.class]]),
|
|
9359
9539
|
"data-open": C.modelValue
|
|
9360
9540
|
}, [
|
|
9361
|
-
|
|
9541
|
+
b(i.$slots, "default", {
|
|
9362
9542
|
open: C.modelValue
|
|
9363
9543
|
})
|
|
9364
|
-
], 10,
|
|
9365
|
-
C.showTrigger ? (
|
|
9544
|
+
], 10, b3),
|
|
9545
|
+
C.showTrigger ? (l(), n("div", {
|
|
9366
9546
|
key: 0,
|
|
9367
|
-
class:
|
|
9547
|
+
class: g(["r-sidebar__trigger", [C.triggerClass]]),
|
|
9368
9548
|
"data-open": C.modelValue,
|
|
9369
9549
|
onClick: L[0] || (L[0] = (A) => M("update:modelValue", !C.modelValue))
|
|
9370
9550
|
}, [
|
|
9371
|
-
|
|
9551
|
+
b(i.$slots, "trigger", {
|
|
9372
9552
|
open: C.modelValue
|
|
9373
9553
|
}, () => [
|
|
9374
|
-
|
|
9554
|
+
d1(" > ")
|
|
9375
9555
|
])
|
|
9376
|
-
], 10,
|
|
9377
|
-
], 10,
|
|
9556
|
+
], 10, v3)) : p("", !0)
|
|
9557
|
+
], 10, k3));
|
|
9378
9558
|
}
|
|
9379
|
-
}),
|
|
9559
|
+
}), B3 = { class: "r-snackbar__text" }, Q0 = /* @__PURE__ */ E({
|
|
9380
9560
|
__name: "RSnackbar",
|
|
9381
9561
|
props: {
|
|
9382
9562
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9390,7 +9570,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9390
9570
|
emits: ["action", "update:modelValue"],
|
|
9391
9571
|
setup(H, { emit: V }) {
|
|
9392
9572
|
const C = H, M = V;
|
|
9393
|
-
|
|
9573
|
+
N(
|
|
9394
9574
|
() => C.modelValue,
|
|
9395
9575
|
() => {
|
|
9396
9576
|
C.timeout > 0 && C.modelValue && setTimeout(() => {
|
|
@@ -9401,137 +9581,182 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9401
9581
|
immediate: !0
|
|
9402
9582
|
}
|
|
9403
9583
|
);
|
|
9404
|
-
const i =
|
|
9584
|
+
const i = O(() => ({
|
|
9405
9585
|
"r-snackbar": !0,
|
|
9406
9586
|
[`r-snackbar--${C.variant}`]: !0,
|
|
9407
9587
|
[C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
|
|
9408
9588
|
[C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
|
|
9409
9589
|
[C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0,
|
|
9410
9590
|
"r-snackbar--closable": C.closable
|
|
9411
|
-
})), L =
|
|
9591
|
+
})), L = O(() => ({
|
|
9412
9592
|
success: "mdiCheckCircle",
|
|
9413
9593
|
error: "mdiAlertCircle",
|
|
9414
9594
|
warning: "mdiAlert",
|
|
9415
9595
|
info: "mdiInformation"
|
|
9416
9596
|
})[C.variant || "info"]);
|
|
9417
|
-
return (A,
|
|
9418
|
-
class:
|
|
9597
|
+
return (A, d) => (l(), n("div", {
|
|
9598
|
+
class: g(i.value)
|
|
9419
9599
|
}, [
|
|
9420
|
-
|
|
9421
|
-
C.variant ? (
|
|
9600
|
+
b(A.$slots, "icon", {}, () => [
|
|
9601
|
+
C.variant ? (l(), x(D, {
|
|
9422
9602
|
key: 0,
|
|
9423
9603
|
class: "r-snackbar__icon",
|
|
9424
9604
|
name: L.value
|
|
9425
|
-
}, null, 8, ["name"])) :
|
|
9605
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9426
9606
|
]),
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9607
|
+
S("div", B3, [
|
|
9608
|
+
b(A.$slots, "default", {}, () => [
|
|
9609
|
+
d1(w(C.text), 1)
|
|
9430
9610
|
])
|
|
9431
9611
|
]),
|
|
9432
|
-
C.closable ? (
|
|
9612
|
+
C.closable ? (l(), n("div", {
|
|
9433
9613
|
key: 0,
|
|
9434
9614
|
class: "r-snackbar__close",
|
|
9435
|
-
onClick:
|
|
9615
|
+
onClick: d[0] || (d[0] = o1((e) => A.$emit("update:modelValue", !1), ["stop"]))
|
|
9436
9616
|
}, [
|
|
9437
|
-
|
|
9438
|
-
|
|
9617
|
+
b(A.$slots, "close", {}, () => [
|
|
9618
|
+
J(D, {
|
|
9439
9619
|
name: "mdiClose",
|
|
9440
9620
|
size: 16
|
|
9441
9621
|
})
|
|
9442
9622
|
])
|
|
9443
|
-
])) :
|
|
9623
|
+
])) : p("", !0)
|
|
9444
9624
|
], 2));
|
|
9445
9625
|
}
|
|
9446
|
-
}),
|
|
9626
|
+
}), y3 = ["id", "aria-checked", "aria-controls", "aria-describedby", "aria-disabled", "aria-expanded", "aria-invalid", "aria-label", "aria-pressed", "aria-required", "checked", "disabled", "name", "required"], w3 = {
|
|
9627
|
+
"aria-hidden": "true",
|
|
9628
|
+
class: "slider round"
|
|
9629
|
+
}, P3 = {
|
|
9447
9630
|
key: 0,
|
|
9448
|
-
class: "
|
|
9449
|
-
},
|
|
9631
|
+
class: "sr-only"
|
|
9632
|
+
}, T3 = ["id", "for"], F3 = {
|
|
9450
9633
|
key: 0,
|
|
9451
|
-
class: "
|
|
9452
|
-
},
|
|
9453
|
-
key:
|
|
9454
|
-
class: "r-switch-
|
|
9455
|
-
},
|
|
9634
|
+
class: "sr-only"
|
|
9635
|
+
}, R3 = {
|
|
9636
|
+
key: 0,
|
|
9637
|
+
class: "r-switch-texts__details"
|
|
9638
|
+
}, x3 = ["id"], D3 = ["id"], G0 = /* @__PURE__ */ E({
|
|
9456
9639
|
__name: "RSwitch",
|
|
9457
9640
|
props: {
|
|
9458
9641
|
id: { default: "switch" },
|
|
9459
|
-
modelValue: { default: !1 },
|
|
9642
|
+
modelValue: { type: Boolean, default: !1 },
|
|
9460
9643
|
disabled: { default: !1 },
|
|
9461
9644
|
label: { default: "" },
|
|
9462
9645
|
hint: { default: "" },
|
|
9463
9646
|
errorMsg: { default: "" },
|
|
9464
9647
|
size: { default: "medium" },
|
|
9465
|
-
hideDetails: { type: Boolean },
|
|
9648
|
+
hideDetails: { type: Boolean, default: !1 },
|
|
9466
9649
|
reverse: { type: Boolean },
|
|
9467
|
-
name: {}
|
|
9650
|
+
name: {},
|
|
9651
|
+
required: { type: Boolean, default: !1 },
|
|
9652
|
+
ariaLabel: { default: "" },
|
|
9653
|
+
onText: { default: "" },
|
|
9654
|
+
offText: { default: "" },
|
|
9655
|
+
ariaControls: { default: "" },
|
|
9656
|
+
ariaExpanded: { type: Boolean, default: void 0 },
|
|
9657
|
+
usePressedState: { type: Boolean, default: !1 }
|
|
9468
9658
|
},
|
|
9469
9659
|
emits: ["update:modelValue"],
|
|
9470
9660
|
setup(H, { emit: V }) {
|
|
9471
|
-
const C = H, M = V, i =
|
|
9472
|
-
checked: !1
|
|
9473
|
-
}), L = g(() => ({
|
|
9661
|
+
const C = H, M = V, i = R(!1), L = O(() => ({
|
|
9474
9662
|
"r-switch": !0,
|
|
9475
9663
|
"r-switch--disabled": C.disabled,
|
|
9476
9664
|
[`r-switch--${C.size}`]: C.size,
|
|
9477
9665
|
"r-switch--error": C.errorMsg
|
|
9478
9666
|
}));
|
|
9479
9667
|
function A(e) {
|
|
9480
|
-
C.disabled
|
|
9668
|
+
if (C.disabled)
|
|
9669
|
+
return;
|
|
9670
|
+
const o = e.target;
|
|
9671
|
+
i.value = o.checked, M("update:modelValue", o.checked);
|
|
9481
9672
|
}
|
|
9482
|
-
|
|
9673
|
+
function d(e) {
|
|
9674
|
+
if (!C.disabled) {
|
|
9675
|
+
if (e.key === " " || e.key === "Enter")
|
|
9676
|
+
e.preventDefault(), i.value = !i.value, M("update:modelValue", i.value);
|
|
9677
|
+
else if (e.key === "Tab")
|
|
9678
|
+
return !0;
|
|
9679
|
+
}
|
|
9680
|
+
}
|
|
9681
|
+
return N(
|
|
9483
9682
|
() => C.modelValue,
|
|
9484
9683
|
(e) => {
|
|
9485
|
-
i.value
|
|
9684
|
+
i.value = e ?? !1;
|
|
9486
9685
|
},
|
|
9487
9686
|
{
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
immediate
|
|
9687
|
+
immediate: !0,
|
|
9688
|
+
flush: "sync"
|
|
9689
|
+
// Ensure immediate updates for testing
|
|
9491
9690
|
}
|
|
9492
|
-
), (e,
|
|
9493
|
-
class:
|
|
9494
|
-
"r-switch-container--reverse":
|
|
9495
|
-
"r-switch-container--hide-details":
|
|
9691
|
+
), (e, o) => (l(), n("div", {
|
|
9692
|
+
class: g(["r-switch-container", {
|
|
9693
|
+
"r-switch-container--reverse": e.reverse,
|
|
9694
|
+
"r-switch-container--hide-details": e.hideDetails
|
|
9496
9695
|
}])
|
|
9497
9696
|
}, [
|
|
9498
|
-
|
|
9499
|
-
class:
|
|
9697
|
+
S("div", {
|
|
9698
|
+
class: g(L.value)
|
|
9500
9699
|
}, [
|
|
9501
|
-
|
|
9502
|
-
id:
|
|
9503
|
-
checked: i.value
|
|
9700
|
+
S("input", {
|
|
9701
|
+
id: e.id,
|
|
9702
|
+
"aria-checked": e.usePressedState ? void 0 : i.value ? "true" : "false",
|
|
9703
|
+
"aria-controls": e.ariaControls,
|
|
9704
|
+
"aria-describedby": e.errorMsg ? `${e.id}-error` : e.hint ? `${e.id}-hint` : void 0,
|
|
9705
|
+
"aria-disabled": e.disabled ? "true" : void 0,
|
|
9706
|
+
"aria-expanded": e.ariaExpanded,
|
|
9707
|
+
"aria-invalid": e.errorMsg ? "true" : void 0,
|
|
9708
|
+
"aria-label": e.ariaLabel || e.label,
|
|
9709
|
+
"aria-pressed": e.usePressedState ? i.value ? "true" : "false" : void 0,
|
|
9710
|
+
"aria-required": e.required ? "true" : void 0,
|
|
9711
|
+
checked: i.value,
|
|
9504
9712
|
class: "r-switch__input",
|
|
9505
|
-
disabled:
|
|
9506
|
-
name:
|
|
9713
|
+
disabled: e.disabled,
|
|
9714
|
+
name: e.name,
|
|
9715
|
+
required: e.required,
|
|
9716
|
+
role: "switch",
|
|
9507
9717
|
type: "checkbox",
|
|
9508
|
-
onChange: A
|
|
9509
|
-
|
|
9510
|
-
|
|
9718
|
+
onChange: A,
|
|
9719
|
+
onKeydown: d
|
|
9720
|
+
}, null, 40, y3),
|
|
9721
|
+
S("span", w3, [
|
|
9722
|
+
e.onText || e.offText ? (l(), n("span", P3, w(i.value ? e.onText : e.offText), 1)) : p("", !0)
|
|
9723
|
+
])
|
|
9511
9724
|
], 2),
|
|
9512
|
-
|
|
9513
|
-
class:
|
|
9514
|
-
[`r-switch-texts--${
|
|
9725
|
+
S("div", {
|
|
9726
|
+
class: g(["r-switch-texts", {
|
|
9727
|
+
[`r-switch-texts--${e.size}`]: !0
|
|
9515
9728
|
}])
|
|
9516
9729
|
}, [
|
|
9517
|
-
|
|
9518
|
-
id: `${
|
|
9730
|
+
S("label", {
|
|
9731
|
+
id: `${e.id}-label`,
|
|
9519
9732
|
class: "r-switch-texts__label",
|
|
9520
|
-
for:
|
|
9521
|
-
},
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
])
|
|
9733
|
+
for: e.id
|
|
9734
|
+
}, [
|
|
9735
|
+
e.required ? (l(), n("span", F3, "Required -")) : p("", !0),
|
|
9736
|
+
d1(" " + w(e.label), 1)
|
|
9737
|
+
], 8, T3),
|
|
9738
|
+
!e.hideDetails && (e.errorMsg || e.hint) ? (l(), n("div", R3, [
|
|
9739
|
+
e.errorMsg ? (l(), n("p", {
|
|
9740
|
+
key: 0,
|
|
9741
|
+
id: `${e.id}-error`,
|
|
9742
|
+
class: "r-switch-texts__error",
|
|
9743
|
+
role: "alert"
|
|
9744
|
+
}, w(e.errorMsg), 9, x3)) : e.hint ? (l(), n("p", {
|
|
9745
|
+
key: 1,
|
|
9746
|
+
id: `${e.id}-hint`,
|
|
9747
|
+
class: "r-switch-texts__hint"
|
|
9748
|
+
}, w(e.hint), 9, D3)) : p("", !0)
|
|
9749
|
+
])) : p("", !0)
|
|
9525
9750
|
], 2)
|
|
9526
9751
|
], 2));
|
|
9527
9752
|
}
|
|
9528
9753
|
});
|
|
9529
|
-
var
|
|
9530
|
-
const
|
|
9754
|
+
var c1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(c1 || {});
|
|
9755
|
+
const E3 = ["aria-disabled", "aria-selected", "disabled"], _3 = { key: 0 }, W3 = /* @__PURE__ */ E({
|
|
9531
9756
|
__name: "RTabItem",
|
|
9532
9757
|
props: {
|
|
9533
9758
|
id: {},
|
|
9534
|
-
variant: { default:
|
|
9759
|
+
variant: { default: c1.DEFAULT },
|
|
9535
9760
|
label: { default: "" },
|
|
9536
9761
|
prependIcon: { default: "" },
|
|
9537
9762
|
appendIcon: { default: "" },
|
|
@@ -9543,57 +9768,57 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9543
9768
|
},
|
|
9544
9769
|
emits: ["update:modelValue"],
|
|
9545
9770
|
setup(H, { emit: V }) {
|
|
9546
|
-
const C = H, M = V, i =
|
|
9771
|
+
const C = H, M = V, i = O(() => ({
|
|
9547
9772
|
"r-tab-item": !0,
|
|
9548
9773
|
[`r-tab-item--${C.variant}`]: !0,
|
|
9549
9774
|
"r-tab-item--tile": C.tile,
|
|
9550
9775
|
"r-tab-item--block": C.block
|
|
9551
|
-
})), L =
|
|
9776
|
+
})), L = O(() => ({
|
|
9552
9777
|
color: C.color
|
|
9553
|
-
})), A =
|
|
9554
|
-
function e
|
|
9555
|
-
M("update:modelValue",
|
|
9778
|
+
})), A = O(() => C.modelValue === C.id);
|
|
9779
|
+
function d(e) {
|
|
9780
|
+
M("update:modelValue", e);
|
|
9556
9781
|
}
|
|
9557
|
-
return (
|
|
9782
|
+
return (e, o) => (l(), n("button", {
|
|
9558
9783
|
"aria-disabled": C.disabled,
|
|
9559
9784
|
"aria-selected": A.value,
|
|
9560
|
-
class:
|
|
9785
|
+
class: g(i.value),
|
|
9561
9786
|
disabled: C.disabled,
|
|
9562
|
-
style:
|
|
9563
|
-
onClick:
|
|
9787
|
+
style: X1(L.value),
|
|
9788
|
+
onClick: o[0] || (o[0] = o1((a) => d(C.id), ["stop"]))
|
|
9564
9789
|
}, [
|
|
9565
|
-
|
|
9790
|
+
b(e.$slots, "prepend", {
|
|
9566
9791
|
active: A.value,
|
|
9567
9792
|
disabled: C.disabled
|
|
9568
9793
|
}, () => [
|
|
9569
|
-
C.variant !==
|
|
9794
|
+
C.variant !== L1(c1).TEXT && C.prependIcon ? (l(), x(D, {
|
|
9570
9795
|
key: 0,
|
|
9571
9796
|
class: "r-tab-item__prepend-icon",
|
|
9572
9797
|
name: C.prependIcon,
|
|
9573
9798
|
size: 16
|
|
9574
|
-
}, null, 8, ["name"])) :
|
|
9799
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9575
9800
|
]),
|
|
9576
|
-
C.variant !==
|
|
9577
|
-
|
|
9801
|
+
C.variant !== L1(c1).ICON ? (l(), n("span", _3, [
|
|
9802
|
+
b(e.$slots, "default", {
|
|
9578
9803
|
label: C.label
|
|
9579
9804
|
}, () => [
|
|
9580
|
-
|
|
9805
|
+
d1(w(C.label), 1)
|
|
9581
9806
|
])
|
|
9582
|
-
])) :
|
|
9583
|
-
|
|
9807
|
+
])) : p("", !0),
|
|
9808
|
+
b(e.$slots, "append", {
|
|
9584
9809
|
active: A.value,
|
|
9585
9810
|
disabled: C.disabled
|
|
9586
9811
|
}, () => [
|
|
9587
|
-
C.variant !==
|
|
9812
|
+
C.variant !== L1(c1).TEXT && C.appendIcon ? (l(), x(D, {
|
|
9588
9813
|
key: 0,
|
|
9589
9814
|
class: "r-tab-item__append-icon",
|
|
9590
9815
|
name: C.appendIcon,
|
|
9591
9816
|
size: 16
|
|
9592
|
-
}, null, 8, ["name"])) :
|
|
9817
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9593
9818
|
])
|
|
9594
|
-
], 14,
|
|
9819
|
+
], 14, E3));
|
|
9595
9820
|
}
|
|
9596
|
-
}),
|
|
9821
|
+
}), U0 = /* @__PURE__ */ E({
|
|
9597
9822
|
__name: "RTabs",
|
|
9598
9823
|
props: {
|
|
9599
9824
|
tabs: { default: () => [] },
|
|
@@ -9604,16 +9829,16 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9604
9829
|
},
|
|
9605
9830
|
emits: ["update:modelValue"],
|
|
9606
9831
|
setup(H, { emit: V }) {
|
|
9607
|
-
const C = H, M = V, i =
|
|
9832
|
+
const C = H, M = V, i = R(C.modelValue || C.tabs[0].id), L = O(() => ({
|
|
9608
9833
|
"r-tabs": !0,
|
|
9609
9834
|
"r-tabs--tile": C.tile
|
|
9610
9835
|
}));
|
|
9611
|
-
return
|
|
9836
|
+
return N(
|
|
9612
9837
|
() => i.value,
|
|
9613
9838
|
() => {
|
|
9614
9839
|
M("update:modelValue", i.value);
|
|
9615
9840
|
}
|
|
9616
|
-
),
|
|
9841
|
+
), N(
|
|
9617
9842
|
() => C.modelValue,
|
|
9618
9843
|
() => {
|
|
9619
9844
|
i.value = C.modelValue;
|
|
@@ -9621,106 +9846,139 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9621
9846
|
{
|
|
9622
9847
|
immediate: !0
|
|
9623
9848
|
}
|
|
9624
|
-
), (A,
|
|
9625
|
-
class:
|
|
9849
|
+
), (A, d) => (l(), n("div", {
|
|
9850
|
+
class: g(L.value)
|
|
9626
9851
|
}, [
|
|
9627
|
-
|
|
9628
|
-
class:
|
|
9852
|
+
S("div", {
|
|
9853
|
+
class: g(["flex", [{
|
|
9629
9854
|
"w-full": C.block,
|
|
9630
9855
|
"overflow-x-auto": C.scrollable,
|
|
9631
9856
|
"gap-0.5": C.tile
|
|
9632
9857
|
}]])
|
|
9633
9858
|
}, [
|
|
9634
|
-
|
|
9635
|
-
(
|
|
9636
|
-
id:
|
|
9637
|
-
key:
|
|
9859
|
+
b(A.$slots, "default", { activeTab: i.value }, () => [
|
|
9860
|
+
(l(!0), n(i1, null, r1(C.tabs, (e, o) => (l(), x(W3, {
|
|
9861
|
+
id: e.id,
|
|
9862
|
+
key: o,
|
|
9638
9863
|
modelValue: i.value,
|
|
9639
|
-
"onUpdate:modelValue":
|
|
9640
|
-
active:
|
|
9641
|
-
"append-icon":
|
|
9864
|
+
"onUpdate:modelValue": d[0] || (d[0] = (a) => i.value = a),
|
|
9865
|
+
active: o === i.value,
|
|
9866
|
+
"append-icon": e.appendIcon,
|
|
9642
9867
|
block: A.block,
|
|
9643
|
-
disabled:
|
|
9644
|
-
label:
|
|
9645
|
-
"prepend-icon":
|
|
9868
|
+
disabled: e.disabled,
|
|
9869
|
+
label: e.label,
|
|
9870
|
+
"prepend-icon": e.prependIcon,
|
|
9646
9871
|
tile: A.tile,
|
|
9647
|
-
variant:
|
|
9872
|
+
variant: e.variant
|
|
9648
9873
|
}, null, 8, ["id", "modelValue", "active", "append-icon", "block", "disabled", "label", "prepend-icon", "tile", "variant"]))), 128))
|
|
9649
9874
|
])
|
|
9650
9875
|
], 2)
|
|
9651
9876
|
], 2));
|
|
9652
9877
|
}
|
|
9653
|
-
}),
|
|
9878
|
+
}), N3 = { class: "r-textarea-wrapper" }, I3 = { class: "r-textarea-container" }, $3 = ["id", "aria-describedby", "aria-disabled", "aria-invalid", "aria-label", "aria-readonly", "aria-required", "disabled", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"], Q3 = {
|
|
9654
9879
|
key: 1,
|
|
9655
9880
|
class: "r-textarea__details"
|
|
9656
|
-
},
|
|
9657
|
-
key: 0,
|
|
9658
|
-
class: "r-textarea__error"
|
|
9659
|
-
}, T3 = {
|
|
9660
|
-
key: 1,
|
|
9661
|
-
class: "r-textarea__hint"
|
|
9662
|
-
}, g0 = /* @__PURE__ */ x({
|
|
9881
|
+
}, G3 = ["id"], U3 = ["id"], z0 = /* @__PURE__ */ E({
|
|
9663
9882
|
__name: "RTextArea",
|
|
9664
9883
|
props: {
|
|
9665
9884
|
id: { default: "" },
|
|
9666
9885
|
modelValue: { default: "" },
|
|
9667
9886
|
label: { default: "" },
|
|
9668
9887
|
placeholder: { default: "" },
|
|
9669
|
-
disabled: { default: !1 },
|
|
9670
|
-
hint: { default: "" },
|
|
9671
9888
|
errorMsg: { default: "" },
|
|
9672
|
-
|
|
9889
|
+
hint: { default: "" },
|
|
9890
|
+
disabled: { type: Boolean, default: !1 },
|
|
9891
|
+
readonly: { type: Boolean, default: !1 },
|
|
9892
|
+
required: { type: Boolean, default: !1 },
|
|
9893
|
+
name: { default: "" },
|
|
9894
|
+
maxLength: {},
|
|
9895
|
+
minLength: {},
|
|
9896
|
+
rows: { default: 3 },
|
|
9897
|
+
autoResize: { type: Boolean, default: !1 },
|
|
9898
|
+
hideDetails: { type: Boolean, default: !1 },
|
|
9899
|
+
ariaLabel: { default: "" }
|
|
9673
9900
|
},
|
|
9674
|
-
emits: ["update:modelValue"],
|
|
9901
|
+
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
9675
9902
|
setup(H, { emit: V }) {
|
|
9676
|
-
const C = H, M = V, i =
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9903
|
+
const C = H, M = V, i = R(), L = R(!1), A = R(C.modelValue), d = O(() => !!C.errorMsg), e = O(() => ({
|
|
9904
|
+
"r-textarea": !0,
|
|
9905
|
+
"r-textarea--focused": L.value,
|
|
9906
|
+
"r-textarea--disabled": C.disabled,
|
|
9907
|
+
"r-textarea--readonly": C.readonly,
|
|
9908
|
+
"r-textarea--error": d.value,
|
|
9909
|
+
"r-textarea--auto-resize": C.autoResize
|
|
9910
|
+
}));
|
|
9911
|
+
function o(t) {
|
|
9912
|
+
const u = t.target;
|
|
9913
|
+
A.value = u.value, M("input", t), C.autoResize && r();
|
|
9681
9914
|
}
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
}
|
|
9690
|
-
|
|
9691
|
-
|
|
9915
|
+
function a(t) {
|
|
9916
|
+
L.value = !0, M("focus", t);
|
|
9917
|
+
}
|
|
9918
|
+
function Z(t) {
|
|
9919
|
+
L.value = !1, M("blur", t);
|
|
9920
|
+
}
|
|
9921
|
+
function r() {
|
|
9922
|
+
i.value && (i.value.style.height = "auto", i.value.style.height = `${i.value.scrollHeight}px`);
|
|
9923
|
+
}
|
|
9924
|
+
return N(() => C.modelValue, (t) => {
|
|
9925
|
+
A.value = t, C.autoResize && r();
|
|
9926
|
+
}), N(() => A.value, (t) => {
|
|
9927
|
+
M("update:modelValue", t);
|
|
9928
|
+
}), (t, u) => (l(), n("div", N3, [
|
|
9929
|
+
t.label ? (l(), x(b2, {
|
|
9692
9930
|
key: 0,
|
|
9693
9931
|
id: `${C.id}-label`,
|
|
9694
9932
|
class: "r-textarea__label",
|
|
9695
|
-
for:
|
|
9696
|
-
text:
|
|
9697
|
-
}, null, 8, ["id", "text"])) :
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
"
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9933
|
+
for: C.id,
|
|
9934
|
+
text: t.label
|
|
9935
|
+
}, null, 8, ["id", "for", "text"])) : p("", !0),
|
|
9936
|
+
S("div", I3, [
|
|
9937
|
+
l2(S("textarea", {
|
|
9938
|
+
id: C.id,
|
|
9939
|
+
ref_key: "textareaRef",
|
|
9940
|
+
ref: i,
|
|
9941
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => A.value = k),
|
|
9942
|
+
"aria-describedby": d.value ? `${C.id}-error` : t.hint ? `${C.id}-hint` : void 0,
|
|
9943
|
+
"aria-disabled": t.disabled,
|
|
9944
|
+
"aria-invalid": d.value,
|
|
9945
|
+
"aria-label": t.ariaLabel || t.label,
|
|
9946
|
+
"aria-readonly": t.readonly,
|
|
9947
|
+
"aria-required": t.required,
|
|
9948
|
+
class: g(e.value),
|
|
9949
|
+
disabled: t.disabled,
|
|
9950
|
+
maxlength: t.maxLength,
|
|
9951
|
+
minlength: t.minLength,
|
|
9952
|
+
name: t.name,
|
|
9953
|
+
placeholder: t.placeholder,
|
|
9954
|
+
readonly: t.readonly,
|
|
9955
|
+
required: t.required,
|
|
9956
|
+
rows: t.rows,
|
|
9957
|
+
onBlur: Z,
|
|
9958
|
+
onFocus: a,
|
|
9959
|
+
onInput: o
|
|
9960
|
+
}, null, 42, $3), [
|
|
9961
|
+
[o2, A.value]
|
|
9962
|
+
])
|
|
9963
|
+
]),
|
|
9964
|
+
!t.hideDetails && (t.errorMsg || t.hint) ? (l(), n("div", Q3, [
|
|
9965
|
+
t.errorMsg ? (l(), n("p", {
|
|
9966
|
+
key: 0,
|
|
9967
|
+
id: `${C.id}-error`,
|
|
9968
|
+
class: "r-textarea__error",
|
|
9969
|
+
role: "alert"
|
|
9970
|
+
}, w(t.errorMsg), 9, G3)) : t.hint ? (l(), n("p", {
|
|
9971
|
+
key: 1,
|
|
9972
|
+
id: `${C.id}-hint`,
|
|
9973
|
+
class: "r-textarea__hint"
|
|
9974
|
+
}, w(t.hint), 9, U3)) : p("", !0)
|
|
9975
|
+
])) : p("", !0)
|
|
9712
9976
|
]));
|
|
9713
9977
|
}
|
|
9714
|
-
}),
|
|
9978
|
+
}), z3 = { class: "r-textfield__wrapper" }, K3 = { class: "input-wrapper" }, q3 = ["id", "aria-describedby", "aria-disabled", "aria-invalid", "aria-label", "aria-readonly", "aria-required", "disabled", "max", "min", "name", "placeholder", "readonly", "required", "type", "value"], j3 = {
|
|
9715
9979
|
key: 0,
|
|
9716
9980
|
class: "r-textfield__details"
|
|
9717
|
-
},
|
|
9718
|
-
key: 0,
|
|
9719
|
-
class: "r-textfield__error"
|
|
9720
|
-
}, E3 = {
|
|
9721
|
-
key: 1,
|
|
9722
|
-
class: "r-textfield__hint"
|
|
9723
|
-
}, k0 = /* @__PURE__ */ x({
|
|
9981
|
+
}, X3 = ["id"], Y3 = ["id"], K0 = /* @__PURE__ */ E({
|
|
9724
9982
|
__name: "RTextfield",
|
|
9725
9983
|
props: {
|
|
9726
9984
|
id: { default: "" },
|
|
@@ -9739,7 +9997,11 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9739
9997
|
max: {},
|
|
9740
9998
|
hideDetails: { type: Boolean, default: !1 },
|
|
9741
9999
|
role: { default: "" },
|
|
9742
|
-
readonly: { type: Boolean, default: !1 }
|
|
10000
|
+
readonly: { type: Boolean, default: !1 },
|
|
10001
|
+
ariaLabel: { default: "" },
|
|
10002
|
+
required: { type: Boolean, default: !1 },
|
|
10003
|
+
autocomplete: { default: "off" },
|
|
10004
|
+
name: { default: "" }
|
|
9743
10005
|
},
|
|
9744
10006
|
emits: [
|
|
9745
10007
|
"update:modelValue",
|
|
@@ -9750,160 +10012,182 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9750
10012
|
"click:clear"
|
|
9751
10013
|
],
|
|
9752
10014
|
setup(H, { emit: V }) {
|
|
9753
|
-
const C = H, M = V, i =
|
|
10015
|
+
const C = H, M = V, i = R(), L = q1({
|
|
9754
10016
|
value: ""
|
|
9755
|
-
}), A =
|
|
10017
|
+
}), A = R(C.type), d = {
|
|
9756
10018
|
password: "mdiLock",
|
|
9757
10019
|
email: "mdiEmailOutline",
|
|
9758
10020
|
tel: "mdiPhone",
|
|
9759
10021
|
url: "mdiLink",
|
|
9760
10022
|
number: "mdiNumeric",
|
|
9761
10023
|
text: ""
|
|
9762
|
-
},
|
|
9763
|
-
|
|
9764
|
-
return (h = C.errorMsg) == null ? void 0 : h.length;
|
|
9765
|
-
}), o = g(() => C.clearable && n.value), l = g(() => {
|
|
9766
|
-
const { disabled: h, loading: I } = C;
|
|
10024
|
+
}, e = R(!1), o = O(() => !!L.value), a = O(() => L.value.length > 0), Z = O(() => !!C.errorMsg), r = O(() => C.clearable && a.value), t = O(() => {
|
|
10025
|
+
const { disabled: c, loading: $ } = C;
|
|
9767
10026
|
return {
|
|
9768
10027
|
"r-textfield": !0,
|
|
9769
|
-
"r-textfield--error":
|
|
9770
|
-
"r-textfield--loading":
|
|
9771
|
-
"r-textfield--disabled":
|
|
9772
|
-
"r-textfield--clearable":
|
|
9773
|
-
"r-textfield--focus":
|
|
9774
|
-
"r-textfield--filled":
|
|
10028
|
+
"r-textfield--error": Z.value,
|
|
10029
|
+
"r-textfield--loading": $,
|
|
10030
|
+
"r-textfield--disabled": c,
|
|
10031
|
+
"r-textfield--clearable": r.value,
|
|
10032
|
+
"r-textfield--focus": e.value,
|
|
10033
|
+
"r-textfield--filled": o.value
|
|
9775
10034
|
};
|
|
9776
|
-
}),
|
|
10035
|
+
}), u = O(() => ({
|
|
9777
10036
|
"r-textfield__prepend-icon": !0,
|
|
9778
10037
|
"r-textfield__prepend-icon--loading": C.loading,
|
|
9779
|
-
"r-textfield__prepend-icon--error":
|
|
9780
|
-
})),
|
|
10038
|
+
"r-textfield__prepend-icon--error": Z.value && o.value
|
|
10039
|
+
})), k = O(() => ({
|
|
9781
10040
|
"r-textfield__append-icon": !0,
|
|
9782
|
-
"r-textfield__append-icon--clear":
|
|
9783
|
-
"r-textfield__append-icon--error":
|
|
9784
|
-
})),
|
|
9785
|
-
const { prependIcon:
|
|
9786
|
-
return
|
|
9787
|
-
}),
|
|
9788
|
-
const { appendIcon:
|
|
9789
|
-
return
|
|
10041
|
+
"r-textfield__append-icon--clear": r.value,
|
|
10042
|
+
"r-textfield__append-icon--error": Z.value
|
|
10043
|
+
})), P = O(() => {
|
|
10044
|
+
const { prependIcon: c, type: $ } = C;
|
|
10045
|
+
return c === "none" ? "" : c || d[$];
|
|
10046
|
+
}), v = O(() => {
|
|
10047
|
+
const { appendIcon: c, type: $ } = C;
|
|
10048
|
+
return c === "none" ? "" : Z.value ? "mdiAlertCircleOutline" : r.value && ["text", "email"].includes($) ? "mdiClose" : $ === "password" && A.value === "password" ? "mdiEyeOutline" : $ === "password" && A.value === "text" ? "mdiEyeOffOutline" : c;
|
|
9790
10049
|
});
|
|
9791
|
-
function
|
|
9792
|
-
|
|
10050
|
+
function y(c) {
|
|
10051
|
+
e.value = !0, M("focus", c);
|
|
9793
10052
|
}
|
|
9794
|
-
function
|
|
9795
|
-
|
|
10053
|
+
function T(c) {
|
|
10054
|
+
e.value = !1, M("blur", c);
|
|
9796
10055
|
}
|
|
9797
|
-
function
|
|
9798
|
-
L.value =
|
|
10056
|
+
function s(c) {
|
|
10057
|
+
L.value = c.target.value, M("input", c);
|
|
9799
10058
|
}
|
|
9800
|
-
function
|
|
9801
|
-
var
|
|
9802
|
-
if (
|
|
9803
|
-
L.value = "", (
|
|
10059
|
+
function B() {
|
|
10060
|
+
var c;
|
|
10061
|
+
if (r.value) {
|
|
10062
|
+
L.value = "", (c = i.value) == null || c.focus(), M("click:clear", {
|
|
9804
10063
|
value: A.value === "number" ? +L.value : L.value
|
|
9805
10064
|
});
|
|
9806
10065
|
return;
|
|
9807
10066
|
}
|
|
9808
10067
|
M("click:icon", {
|
|
9809
10068
|
value: A.value === "number" ? +L.value : L.value
|
|
9810
|
-
}), C.type === "password" &&
|
|
10069
|
+
}), C.type === "password" && I();
|
|
9811
10070
|
}
|
|
9812
|
-
function
|
|
10071
|
+
function I() {
|
|
9813
10072
|
A.value = A.value === "password" ? "text" : "password";
|
|
9814
10073
|
}
|
|
9815
|
-
function
|
|
9816
|
-
var
|
|
9817
|
-
(
|
|
10074
|
+
function F() {
|
|
10075
|
+
var c;
|
|
10076
|
+
(c = i.value) == null || c.focus();
|
|
9818
10077
|
}
|
|
9819
|
-
return
|
|
10078
|
+
return N(
|
|
10079
|
+
() => C.type,
|
|
10080
|
+
(c) => {
|
|
10081
|
+
A.value = c;
|
|
10082
|
+
},
|
|
10083
|
+
{
|
|
10084
|
+
immediate: !0
|
|
10085
|
+
}
|
|
10086
|
+
), N(
|
|
9820
10087
|
() => C.modelValue,
|
|
9821
|
-
(
|
|
9822
|
-
L.value =
|
|
10088
|
+
(c) => {
|
|
10089
|
+
L.value = c;
|
|
9823
10090
|
},
|
|
9824
10091
|
{
|
|
9825
10092
|
immediate: !0
|
|
9826
10093
|
}
|
|
9827
|
-
),
|
|
10094
|
+
), N(
|
|
9828
10095
|
() => L.value,
|
|
9829
|
-
(
|
|
10096
|
+
(c) => {
|
|
9830
10097
|
M(
|
|
9831
10098
|
"update:modelValue",
|
|
9832
|
-
A.value === "number" ? +
|
|
10099
|
+
A.value === "number" ? +c : c
|
|
9833
10100
|
);
|
|
9834
10101
|
}
|
|
9835
|
-
), (
|
|
9836
|
-
|
|
10102
|
+
), (c, $) => (l(), n("div", z3, [
|
|
10103
|
+
c.label ? (l(), x(b2, {
|
|
9837
10104
|
key: 0,
|
|
9838
10105
|
id: `${C.id}-label`,
|
|
9839
10106
|
class: "r-textfield__label",
|
|
9840
10107
|
for: C.id,
|
|
9841
|
-
text:
|
|
9842
|
-
onClick:
|
|
9843
|
-
}, null, 8, ["id", "for", "text"])) :
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
class:
|
|
10108
|
+
text: c.label,
|
|
10109
|
+
onClick: F
|
|
10110
|
+
}, null, 8, ["id", "for", "text"])) : p("", !0),
|
|
10111
|
+
S("div", K3, [
|
|
10112
|
+
S("div", {
|
|
10113
|
+
class: g(t.value)
|
|
9847
10114
|
}, [
|
|
9848
|
-
|
|
9849
|
-
disabled:
|
|
9850
|
-
error:
|
|
9851
|
-
loading:
|
|
10115
|
+
b(c.$slots, "prepend", {
|
|
10116
|
+
disabled: c.disabled,
|
|
10117
|
+
error: Z.value,
|
|
10118
|
+
loading: c.loading
|
|
9852
10119
|
}, () => [
|
|
9853
|
-
|
|
10120
|
+
P.value ? (l(), x(D, {
|
|
9854
10121
|
key: 0,
|
|
9855
|
-
|
|
9856
|
-
|
|
10122
|
+
"aria-hidden": "true",
|
|
10123
|
+
class: g(u.value),
|
|
10124
|
+
name: P.value,
|
|
9857
10125
|
size: 20
|
|
9858
|
-
}, null, 8, ["class", "name"])) :
|
|
10126
|
+
}, null, 8, ["class", "name"])) : p("", !0)
|
|
9859
10127
|
]),
|
|
9860
|
-
|
|
10128
|
+
S("input", {
|
|
9861
10129
|
id: C.id,
|
|
9862
10130
|
ref_key: "inputRef",
|
|
9863
10131
|
ref: i,
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
readonly:
|
|
9869
|
-
|
|
10132
|
+
"aria-describedby": Z.value ? `${C.id}-error` : c.hint ? `${C.id}-hint` : void 0,
|
|
10133
|
+
"aria-disabled": c.disabled,
|
|
10134
|
+
"aria-invalid": Z.value || void 0,
|
|
10135
|
+
"aria-label": c.ariaLabel || c.label,
|
|
10136
|
+
"aria-readonly": c.readonly,
|
|
10137
|
+
"aria-required": c.required,
|
|
10138
|
+
disabled: c.disabled,
|
|
10139
|
+
max: c.max,
|
|
10140
|
+
min: c.min,
|
|
10141
|
+
name: c.name,
|
|
10142
|
+
placeholder: c.placeholder,
|
|
10143
|
+
readonly: c.readonly,
|
|
10144
|
+
required: c.required,
|
|
9870
10145
|
type: A.value,
|
|
9871
10146
|
value: L.value,
|
|
9872
|
-
onBlur:
|
|
9873
|
-
onFocus:
|
|
9874
|
-
onInput:
|
|
9875
|
-
}, null, 40,
|
|
9876
|
-
|
|
9877
|
-
disabled:
|
|
9878
|
-
error:
|
|
9879
|
-
loading:
|
|
10147
|
+
onBlur: T,
|
|
10148
|
+
onFocus: y,
|
|
10149
|
+
onInput: s
|
|
10150
|
+
}, null, 40, q3),
|
|
10151
|
+
b(c.$slots, "append", {
|
|
10152
|
+
disabled: c.disabled,
|
|
10153
|
+
error: Z.value,
|
|
10154
|
+
loading: c.loading
|
|
9880
10155
|
}, () => [
|
|
9881
|
-
|
|
10156
|
+
c.type === "password" ? (l(), x(D, {
|
|
9882
10157
|
key: 0,
|
|
10158
|
+
"aria-hidden": "true",
|
|
9883
10159
|
name: A.value === "password" ? "mdiEyeOutline" : "mdiEyeOffOutline",
|
|
9884
10160
|
size: 20,
|
|
9885
|
-
onClick:
|
|
9886
|
-
}, null, 8, ["name"])) :
|
|
9887
|
-
k.value && !h.$slots.append || a.value ? (m(), _(D, {
|
|
10161
|
+
onClick: B
|
|
10162
|
+
}, null, 8, ["name"])) : v.value && !c.$slots.append || Z.value ? (l(), x(D, {
|
|
9888
10163
|
key: 1,
|
|
9889
|
-
|
|
9890
|
-
|
|
10164
|
+
"aria-hidden": "true",
|
|
10165
|
+
class: g(k.value),
|
|
10166
|
+
name: v.value,
|
|
9891
10167
|
size: 20,
|
|
9892
|
-
onClick:
|
|
9893
|
-
}, null, 8, ["class", "name"])) :
|
|
10168
|
+
onClick: B
|
|
10169
|
+
}, null, 8, ["class", "name"])) : p("", !0)
|
|
9894
10170
|
])
|
|
9895
10171
|
], 2),
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
10172
|
+
!c.hideDetails && (c.errorMsg || c.hint) ? (l(), n("div", j3, [
|
|
10173
|
+
c.errorMsg ? (l(), n("p", {
|
|
10174
|
+
key: 0,
|
|
10175
|
+
id: `${C.id}-error`,
|
|
10176
|
+
class: "r-textfield__error",
|
|
10177
|
+
role: "alert"
|
|
10178
|
+
}, w(c.errorMsg), 9, X3)) : c.hint ? (l(), n("p", {
|
|
10179
|
+
key: 1,
|
|
10180
|
+
id: `${C.id}-hint`,
|
|
10181
|
+
class: "r-textfield__hint"
|
|
10182
|
+
}, w(c.hint), 9, Y3)) : p("", !0)
|
|
10183
|
+
])) : p("", !0)
|
|
9900
10184
|
])
|
|
9901
10185
|
]));
|
|
9902
10186
|
}
|
|
9903
|
-
}),
|
|
10187
|
+
}), J3 = { class: "r-breadcrumb" }, C0 = {
|
|
9904
10188
|
key: 0,
|
|
9905
10189
|
class: "r-breadcrumb__title"
|
|
9906
|
-
},
|
|
10190
|
+
}, q0 = /* @__PURE__ */ E({
|
|
9907
10191
|
__name: "RBreadcrumb",
|
|
9908
10192
|
props: {
|
|
9909
10193
|
items: { default: () => [] },
|
|
@@ -9912,69 +10196,69 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9912
10196
|
setup(H) {
|
|
9913
10197
|
const V = H;
|
|
9914
10198
|
return (C, M) => {
|
|
9915
|
-
const i =
|
|
9916
|
-
return
|
|
9917
|
-
(
|
|
10199
|
+
const i = T2("router-link");
|
|
10200
|
+
return l(), n("div", J3, [
|
|
10201
|
+
(l(!0), n(i1, null, r1(V.items, (L, A) => (l(), n("div", {
|
|
9918
10202
|
key: A,
|
|
9919
10203
|
class: "r-breadcrumb__item"
|
|
9920
10204
|
}, [
|
|
9921
|
-
|
|
10205
|
+
J(i, {
|
|
9922
10206
|
class: "r-breadcrumb__link",
|
|
9923
10207
|
to: L.to
|
|
9924
10208
|
}, {
|
|
9925
|
-
default:
|
|
9926
|
-
|
|
9927
|
-
L.icon ? (
|
|
10209
|
+
default: O1(() => [
|
|
10210
|
+
b(C.$slots, "item-icon", {}, () => [
|
|
10211
|
+
L.icon ? (l(), x(D, {
|
|
9928
10212
|
key: 0,
|
|
9929
10213
|
name: L.icon
|
|
9930
|
-
}, null, 8, ["name"])) :
|
|
10214
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9931
10215
|
]),
|
|
9932
|
-
L.onlyIcon ?
|
|
10216
|
+
L.onlyIcon ? p("", !0) : (l(), n("span", C0, w(L.title), 1))
|
|
9933
10217
|
]),
|
|
9934
10218
|
_: 2
|
|
9935
10219
|
}, 1032, ["to"]),
|
|
9936
|
-
|
|
9937
|
-
A !== C.items.length - 1 && V.seperator ? (
|
|
10220
|
+
b(C.$slots, "custom-seperator", {}, () => [
|
|
10221
|
+
A !== C.items.length - 1 && V.seperator ? (l(), x(D, {
|
|
9938
10222
|
key: 0,
|
|
9939
10223
|
class: "r-breadcrumb__separator",
|
|
9940
10224
|
name: V.seperator
|
|
9941
|
-
}, null, 8, ["name"])) :
|
|
10225
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9942
10226
|
])
|
|
9943
10227
|
]))), 128))
|
|
9944
10228
|
]);
|
|
9945
10229
|
};
|
|
9946
10230
|
}
|
|
9947
|
-
}),
|
|
10231
|
+
}), H0 = { class: "r-pagination__paginator" }, V0 = { class: "r-pagination__paginator__per-page" }, L0 = { class: "r-pagination__paginator__info" }, M0 = ["disabled"], i0 = /* @__PURE__ */ S("path", {
|
|
9948
10232
|
d: "M0 0h24v24H0z",
|
|
9949
10233
|
fill: "none",
|
|
9950
10234
|
stroke: "none"
|
|
9951
|
-
}, null, -1),
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
],
|
|
10235
|
+
}, null, -1), A0 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), e0 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), d0 = [
|
|
10236
|
+
i0,
|
|
10237
|
+
A0,
|
|
10238
|
+
e0
|
|
10239
|
+
], t0 = ["disabled"], m0 = /* @__PURE__ */ S("path", {
|
|
9956
10240
|
d: "M0 0h24v24H0z",
|
|
9957
10241
|
fill: "none",
|
|
9958
10242
|
stroke: "none"
|
|
9959
|
-
}, null, -1),
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
],
|
|
10243
|
+
}, null, -1), l0 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), o0 = [
|
|
10244
|
+
m0,
|
|
10245
|
+
l0
|
|
10246
|
+
], a0 = ["disabled"], r0 = /* @__PURE__ */ S("path", {
|
|
9963
10247
|
d: "M0 0h24v24H0z",
|
|
9964
10248
|
fill: "none",
|
|
9965
10249
|
stroke: "none"
|
|
9966
|
-
}, null, -1),
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
],
|
|
10250
|
+
}, null, -1), n0 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), Z0 = [
|
|
10251
|
+
r0,
|
|
10252
|
+
n0
|
|
10253
|
+
], u0 = ["disabled"], S0 = /* @__PURE__ */ S("path", {
|
|
9970
10254
|
d: "M0 0h24v24H0z",
|
|
9971
10255
|
fill: "none",
|
|
9972
10256
|
stroke: "none"
|
|
9973
|
-
}, null, -1),
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
],
|
|
10257
|
+
}, null, -1), s0 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), c0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), p0 = [
|
|
10258
|
+
S0,
|
|
10259
|
+
s0,
|
|
10260
|
+
c0
|
|
10261
|
+
], j0 = /* @__PURE__ */ E({
|
|
9978
10262
|
__name: "RPagination",
|
|
9979
10263
|
props: {
|
|
9980
10264
|
page: { default: 1 },
|
|
@@ -9987,37 +10271,37 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9987
10271
|
},
|
|
9988
10272
|
emits: ["update:page", "update:perPage", "update:info"],
|
|
9989
10273
|
setup(H, { emit: V }) {
|
|
9990
|
-
const C = H, M = V, i =
|
|
10274
|
+
const C = H, M = V, i = R(C.perPage || 10), L = O(() => Math.ceil(C.totalItems / C.perPage)), A = O(() => ({
|
|
9991
10275
|
start: C.page * C.perPage - C.perPage,
|
|
9992
10276
|
end: C.page * C.perPage
|
|
9993
|
-
})),
|
|
9994
|
-
|
|
10277
|
+
})), d = O(() => C.infoText || `${A.value.start + 1}-${A.value.end} of ${C.totalItems}`), e = O(() => +C.page == +L.value), o = O(() => +C.page == 1);
|
|
10278
|
+
N(() => A.value, () => {
|
|
9995
10279
|
M("update:info", A.value);
|
|
9996
|
-
}),
|
|
9997
|
-
i.value = C.perPage,
|
|
10280
|
+
}), N(() => C.perPage, () => {
|
|
10281
|
+
i.value = C.perPage, a(1);
|
|
9998
10282
|
});
|
|
9999
|
-
function
|
|
10000
|
-
const
|
|
10001
|
-
|
|
10283
|
+
function a(r) {
|
|
10284
|
+
const t = Math.ceil(r);
|
|
10285
|
+
t < 1 || t > L.value || M("update:page", t);
|
|
10002
10286
|
}
|
|
10003
|
-
function
|
|
10004
|
-
if (
|
|
10005
|
-
M("update:perPage",
|
|
10287
|
+
function Z({ value: r }) {
|
|
10288
|
+
if (r) {
|
|
10289
|
+
M("update:perPage", r);
|
|
10006
10290
|
return;
|
|
10007
10291
|
}
|
|
10008
10292
|
M("update:perPage", 10);
|
|
10009
10293
|
}
|
|
10010
|
-
return (
|
|
10011
|
-
class:
|
|
10294
|
+
return (r, t) => (l(), n("div", {
|
|
10295
|
+
class: g(["r-pagination", [`r-pagination--${C.position}`]])
|
|
10012
10296
|
}, [
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10297
|
+
S("div", H0, [
|
|
10298
|
+
S("div", V0, [
|
|
10299
|
+
S("span", null, w(C.itemsPerPageText), 1),
|
|
10300
|
+
J(u3, {
|
|
10017
10301
|
modelValue: i.value,
|
|
10018
10302
|
"onUpdate:modelValue": [
|
|
10019
|
-
|
|
10020
|
-
|
|
10303
|
+
t[0] || (t[0] = (u) => i.value = u),
|
|
10304
|
+
Z
|
|
10021
10305
|
],
|
|
10022
10306
|
class: "w-24",
|
|
10023
10307
|
"hide-details": "",
|
|
@@ -10025,15 +10309,15 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10025
10309
|
options: C.perPageOptions
|
|
10026
10310
|
}, null, 8, ["modelValue", "options"])
|
|
10027
10311
|
]),
|
|
10028
|
-
|
|
10029
|
-
|
|
10312
|
+
S("span", L0, w(d.value), 1),
|
|
10313
|
+
S("button", {
|
|
10030
10314
|
class: "r-pagination__paginator__first",
|
|
10031
|
-
disabled:
|
|
10032
|
-
onClick:
|
|
10315
|
+
disabled: o.value,
|
|
10316
|
+
onClick: t[1] || (t[1] = (u) => a(1))
|
|
10033
10317
|
}, [
|
|
10034
|
-
|
|
10035
|
-
(
|
|
10036
|
-
class:
|
|
10318
|
+
b(r.$slots, "first", {}, () => [
|
|
10319
|
+
(l(), n("svg", {
|
|
10320
|
+
class: g(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": o.value }]),
|
|
10037
10321
|
fill: "none",
|
|
10038
10322
|
height: "20",
|
|
10039
10323
|
stroke: "#000000",
|
|
@@ -10043,17 +10327,17 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10043
10327
|
viewBox: "0 0 24 24",
|
|
10044
10328
|
width: "20",
|
|
10045
10329
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10046
|
-
},
|
|
10330
|
+
}, d0, 2))
|
|
10047
10331
|
])
|
|
10048
|
-
], 8,
|
|
10049
|
-
|
|
10332
|
+
], 8, M0),
|
|
10333
|
+
S("button", {
|
|
10050
10334
|
class: "r-pagination__paginator__prev",
|
|
10051
|
-
disabled:
|
|
10052
|
-
onClick:
|
|
10335
|
+
disabled: o.value,
|
|
10336
|
+
onClick: t[2] || (t[2] = (u) => a(+C.page - 1))
|
|
10053
10337
|
}, [
|
|
10054
|
-
|
|
10055
|
-
(
|
|
10056
|
-
class:
|
|
10338
|
+
b(r.$slots, "prev", {}, () => [
|
|
10339
|
+
(l(), n("svg", {
|
|
10340
|
+
class: g(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": o.value }]),
|
|
10057
10341
|
fill: "none",
|
|
10058
10342
|
height: "20",
|
|
10059
10343
|
stroke: "#000000",
|
|
@@ -10063,17 +10347,17 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10063
10347
|
viewBox: "0 0 24 24",
|
|
10064
10348
|
width: "20",
|
|
10065
10349
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10066
|
-
},
|
|
10350
|
+
}, o0, 2))
|
|
10067
10351
|
])
|
|
10068
|
-
], 8,
|
|
10069
|
-
|
|
10352
|
+
], 8, t0),
|
|
10353
|
+
S("button", {
|
|
10070
10354
|
class: "r-pagination__paginator__next",
|
|
10071
|
-
disabled:
|
|
10072
|
-
onClick:
|
|
10355
|
+
disabled: e.value,
|
|
10356
|
+
onClick: t[3] || (t[3] = (u) => a(+C.page + 1))
|
|
10073
10357
|
}, [
|
|
10074
|
-
|
|
10075
|
-
(
|
|
10076
|
-
class:
|
|
10358
|
+
b(r.$slots, "next", {}, () => [
|
|
10359
|
+
(l(), n("svg", {
|
|
10360
|
+
class: g(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": e.value }]),
|
|
10077
10361
|
fill: "none",
|
|
10078
10362
|
height: "20",
|
|
10079
10363
|
stroke: "#000000",
|
|
@@ -10083,17 +10367,17 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10083
10367
|
viewBox: "0 0 24 24",
|
|
10084
10368
|
width: "20",
|
|
10085
10369
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10086
|
-
},
|
|
10370
|
+
}, Z0, 2))
|
|
10087
10371
|
])
|
|
10088
|
-
], 8,
|
|
10089
|
-
|
|
10372
|
+
], 8, a0),
|
|
10373
|
+
S("button", {
|
|
10090
10374
|
class: "r-pagination__paginator__last",
|
|
10091
10375
|
disabled: C.page === L.value,
|
|
10092
|
-
onClick:
|
|
10376
|
+
onClick: t[4] || (t[4] = (u) => a(L.value))
|
|
10093
10377
|
}, [
|
|
10094
|
-
|
|
10095
|
-
(
|
|
10096
|
-
class:
|
|
10378
|
+
b(r.$slots, "last", {}, () => [
|
|
10379
|
+
(l(), n("svg", {
|
|
10380
|
+
class: g(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": e.value }]),
|
|
10097
10381
|
fill: "none",
|
|
10098
10382
|
height: "20",
|
|
10099
10383
|
stroke: "#000000",
|
|
@@ -10103,13 +10387,13 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10103
10387
|
viewBox: "0 0 24 24",
|
|
10104
10388
|
width: "20",
|
|
10105
10389
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10106
|
-
},
|
|
10390
|
+
}, p0, 2))
|
|
10107
10391
|
])
|
|
10108
|
-
], 8,
|
|
10392
|
+
], 8, u0)
|
|
10109
10393
|
])
|
|
10110
10394
|
], 2));
|
|
10111
10395
|
}
|
|
10112
|
-
}),
|
|
10396
|
+
}), O0 = ["value"], X0 = /* @__PURE__ */ E({
|
|
10113
10397
|
__name: "RProgressbar",
|
|
10114
10398
|
props: {
|
|
10115
10399
|
value: { default: 0 },
|
|
@@ -10117,16 +10401,16 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10117
10401
|
},
|
|
10118
10402
|
setup(H) {
|
|
10119
10403
|
const V = H;
|
|
10120
|
-
return (C, M) => (
|
|
10404
|
+
return (C, M) => (l(), n("progress", {
|
|
10121
10405
|
"aria-valuemax": 100,
|
|
10122
10406
|
class: "r-progressbar",
|
|
10123
10407
|
max: 100,
|
|
10124
10408
|
role: "progressbar",
|
|
10125
|
-
style:
|
|
10409
|
+
style: X1({ height: `${V.height}px` }),
|
|
10126
10410
|
value: V.value
|
|
10127
|
-
}, null, 12,
|
|
10411
|
+
}, null, 12, O0));
|
|
10128
10412
|
}
|
|
10129
|
-
}),
|
|
10413
|
+
}), w1 = "rocket-ui:r-item-group", Y0 = /* @__PURE__ */ E({
|
|
10130
10414
|
__name: "RItemGroup",
|
|
10131
10415
|
props: {
|
|
10132
10416
|
modelValue: { default: () => [] },
|
|
@@ -10139,141 +10423,161 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10139
10423
|
},
|
|
10140
10424
|
emits: ["update:modelValue"],
|
|
10141
10425
|
setup(H, { emit: V }) {
|
|
10142
|
-
const C = H, M = V, i =
|
|
10143
|
-
|
|
10144
|
-
function
|
|
10145
|
-
return L.value.includes(
|
|
10426
|
+
const C = H, M = V, i = R(C.as ?? "div"), L = R(C.modelValue), A = O(() => C.selectedClass);
|
|
10427
|
+
B1(`${w1}:selectedClass`, A.value);
|
|
10428
|
+
function d(a) {
|
|
10429
|
+
return L.value.includes(a);
|
|
10146
10430
|
}
|
|
10147
|
-
|
|
10148
|
-
function
|
|
10149
|
-
C.disabled || C.mandatory && L.value.length === 1 && !
|
|
10431
|
+
B1(`${w1}:isSelected`, d);
|
|
10432
|
+
function e(a, Z) {
|
|
10433
|
+
C.disabled || C.mandatory && L.value.length === 1 && !Z || C.max && L.value.length === C.max && Z || (C.multiple ? Z ? L.value.push(a) : L.value = L.value.filter((r) => r !== a) : L.value = a ? [a] : [], M("update:modelValue", L.value));
|
|
10150
10434
|
}
|
|
10151
|
-
|
|
10152
|
-
function
|
|
10435
|
+
B1(`${w1}:select`, e);
|
|
10436
|
+
function o() {
|
|
10153
10437
|
return C.disabled;
|
|
10154
10438
|
}
|
|
10155
|
-
return
|
|
10439
|
+
return B1(`${w1}:isDisabled`, o), N(() => C.modelValue, () => {
|
|
10156
10440
|
L.value = C.modelValue;
|
|
10157
|
-
}), (
|
|
10158
|
-
default:
|
|
10159
|
-
|
|
10160
|
-
isSelected:
|
|
10161
|
-
select:
|
|
10441
|
+
}), (a, Z) => (l(), x(F2(i.value), null, {
|
|
10442
|
+
default: O1(() => [
|
|
10443
|
+
b(a.$slots, "default", {
|
|
10444
|
+
isSelected: d,
|
|
10445
|
+
select: e,
|
|
10162
10446
|
selected: L.value
|
|
10163
10447
|
})
|
|
10164
10448
|
]),
|
|
10165
10449
|
_: 3
|
|
10166
10450
|
}));
|
|
10167
10451
|
}
|
|
10168
|
-
}),
|
|
10452
|
+
}), P1 = "rocket-ui:r-item-group", J0 = /* @__PURE__ */ E({
|
|
10169
10453
|
__name: "RItem",
|
|
10170
10454
|
props: {
|
|
10171
10455
|
value: { default: null },
|
|
10172
10456
|
selectedClass: { default: "" }
|
|
10173
10457
|
},
|
|
10174
10458
|
setup(H) {
|
|
10175
|
-
const V = H, C =
|
|
10176
|
-
function
|
|
10459
|
+
const V = H, C = y1(`${P1}:isSelected`), M = y1(`${P1}:selectedClass`, ""), i = y1(`${P1}:select`), L = y1(`${P1}:isDisabled`), A = O(() => C(V.value) && [M, V.selectedClass]);
|
|
10460
|
+
function d() {
|
|
10177
10461
|
V.disabled || i(V.value, !C(V.value));
|
|
10178
10462
|
}
|
|
10179
|
-
function
|
|
10463
|
+
function e() {
|
|
10180
10464
|
V.disabled || i(V.value, !0);
|
|
10181
10465
|
}
|
|
10182
|
-
return (
|
|
10183
|
-
disabled:
|
|
10184
|
-
isSelected:
|
|
10185
|
-
select:
|
|
10466
|
+
return (o, a) => b(o.$slots, "default", {
|
|
10467
|
+
disabled: L1(L)(V.value),
|
|
10468
|
+
isSelected: L1(C)(V.value),
|
|
10469
|
+
select: e,
|
|
10186
10470
|
selectedClass: A.value,
|
|
10187
|
-
toggle:
|
|
10471
|
+
toggle: d
|
|
10188
10472
|
});
|
|
10189
10473
|
}
|
|
10190
|
-
}),
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10474
|
+
}), f0 = { class: "r-radio-wrapper" }, h0 = { class: "r-radio-container" }, g0 = ["id", "aria-describedby", "aria-disabled", "aria-invalid", "aria-label", "aria-required", "checked", "disabled", "name", "required", "value"], k0 = ["data-disabled"], b0 = /* @__PURE__ */ S("div", { class: "r-radio__inner" }, null, -1), v0 = [
|
|
10475
|
+
b0
|
|
10476
|
+
], B0 = { class: "r-radio-texts" }, y0 = ["data-disabled", "for"], w0 = {
|
|
10477
|
+
key: 0,
|
|
10478
|
+
class: "sr-only"
|
|
10479
|
+
}, P0 = {
|
|
10480
|
+
key: 0,
|
|
10481
|
+
class: "r-radio-texts__details"
|
|
10482
|
+
}, T0 = ["id"], F0 = ["id"], C7 = /* @__PURE__ */ E({
|
|
10194
10483
|
__name: "RRadio",
|
|
10195
10484
|
props: {
|
|
10196
|
-
id: { default: "
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
disabled: { type: Boolean, default: !1 },
|
|
10485
|
+
id: { default: "" },
|
|
10486
|
+
value: {},
|
|
10487
|
+
modelValue: { default: void 0 },
|
|
10200
10488
|
label: { default: "" },
|
|
10201
|
-
|
|
10489
|
+
disabled: { type: Boolean, default: !1 },
|
|
10490
|
+
required: { type: Boolean, default: !1 },
|
|
10491
|
+
name: { default: "" },
|
|
10202
10492
|
errorMsg: { default: "" },
|
|
10203
|
-
|
|
10204
|
-
|
|
10493
|
+
hint: { default: "" },
|
|
10494
|
+
hideDetails: { type: Boolean, default: !1 },
|
|
10495
|
+
ariaLabel: { default: "" }
|
|
10205
10496
|
},
|
|
10206
10497
|
emits: ["update:modelValue"],
|
|
10207
|
-
setup(H) {
|
|
10208
|
-
const
|
|
10209
|
-
"r-radio
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10498
|
+
setup(H, { emit: V }) {
|
|
10499
|
+
const C = H, M = V, i = O(() => C.id || `radio-${Math.random().toString(36).substr(2, 9)}`), L = O(() => C.modelValue === C.value), A = O(() => ({
|
|
10500
|
+
"r-radio": !0,
|
|
10501
|
+
"r-radio--checked": L.value,
|
|
10502
|
+
"r-radio--disabled": C.disabled,
|
|
10503
|
+
"r-radio--error": !!C.errorMsg
|
|
10504
|
+
}));
|
|
10505
|
+
function d() {
|
|
10506
|
+
C.disabled || M("update:modelValue", C.value);
|
|
10507
|
+
}
|
|
10508
|
+
return (e, o) => (l(), n("div", f0, [
|
|
10509
|
+
S("div", h0, [
|
|
10510
|
+
S("input", {
|
|
10511
|
+
id: i.value,
|
|
10512
|
+
"aria-describedby": e.errorMsg ? `${i.value}-error` : e.hint ? `${i.value}-hint` : void 0,
|
|
10513
|
+
"aria-disabled": e.disabled,
|
|
10514
|
+
"aria-invalid": !!e.errorMsg,
|
|
10515
|
+
"aria-label": e.ariaLabel || e.label,
|
|
10516
|
+
"aria-required": e.required,
|
|
10517
|
+
checked: L.value,
|
|
10518
|
+
class: "r-radio-container__input",
|
|
10519
|
+
disabled: e.disabled,
|
|
10520
|
+
name: e.name,
|
|
10521
|
+
required: e.required,
|
|
10522
|
+
type: "radio",
|
|
10523
|
+
value: e.value,
|
|
10524
|
+
onChange: d
|
|
10525
|
+
}, null, 40, g0),
|
|
10526
|
+
S("div", {
|
|
10527
|
+
"aria-hidden": "true",
|
|
10528
|
+
class: g(A.value),
|
|
10529
|
+
"data-disabled": e.disabled
|
|
10530
|
+
}, v0, 10, k0)
|
|
10531
|
+
]),
|
|
10532
|
+
S("div", B0, [
|
|
10533
|
+
S("label", {
|
|
10534
|
+
class: "r-radio-texts__label",
|
|
10535
|
+
"data-disabled": e.disabled,
|
|
10536
|
+
for: i.value
|
|
10537
|
+
}, [
|
|
10538
|
+
e.required ? (l(), n("span", w0, "Required - ")) : p("", !0),
|
|
10539
|
+
d1(" " + w(e.label), 1)
|
|
10540
|
+
], 8, y0),
|
|
10541
|
+
!e.hideDetails && (e.errorMsg || e.hint) ? (l(), n("div", P0, [
|
|
10542
|
+
e.errorMsg ? (l(), n("p", {
|
|
10239
10543
|
key: 0,
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
]
|
|
10544
|
+
id: `${i.value}-error`,
|
|
10545
|
+
class: "r-radio-texts__error",
|
|
10546
|
+
role: "alert"
|
|
10547
|
+
}, w(e.errorMsg), 9, T0)) : e.hint ? (l(), n("p", {
|
|
10548
|
+
key: 1,
|
|
10549
|
+
id: `${i.value}-hint`,
|
|
10550
|
+
class: "r-radio-texts__hint"
|
|
10551
|
+
}, w(e.hint), 9, F0)) : p("", !0)
|
|
10552
|
+
])) : p("", !0)
|
|
10553
|
+
])
|
|
10554
|
+
]));
|
|
10251
10555
|
}
|
|
10252
10556
|
});
|
|
10253
10557
|
export {
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10558
|
+
x0 as RAccordion,
|
|
10559
|
+
D0 as RAlert,
|
|
10560
|
+
E0 as RAvatar,
|
|
10561
|
+
_0 as RBadge,
|
|
10562
|
+
q0 as RBreadcrumb,
|
|
10563
|
+
W0 as RButton,
|
|
10564
|
+
N0 as RCheckbox,
|
|
10565
|
+
t5 as RChip,
|
|
10566
|
+
u3 as RDropdown,
|
|
10263
10567
|
D as RIcon,
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10568
|
+
J0 as RItem,
|
|
10569
|
+
Y0 as RItemGroup,
|
|
10570
|
+
b2 as RLabel,
|
|
10571
|
+
I0 as RModal,
|
|
10572
|
+
j0 as RPagination,
|
|
10573
|
+
X0 as RProgressbar,
|
|
10574
|
+
C7 as RRadio,
|
|
10575
|
+
$0 as RSidebar,
|
|
10576
|
+
Q0 as RSnackbar,
|
|
10577
|
+
G0 as RSwitch,
|
|
10578
|
+
W3 as RTabItem,
|
|
10579
|
+
U0 as RTabs,
|
|
10580
|
+
z0 as RTextArea,
|
|
10581
|
+
K0 as RTextfield,
|
|
10582
|
+
J5 as RTooltip
|
|
10279
10583
|
};
|