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