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