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