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