@rocketui/vue 0.2.1 → 0.2.2-2.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rocket-ui-vue.d.ts +80 -30
- package/dist/rocket-ui-vue.js +857 -851
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as F, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as V1, reactive as Z1, Fragment as i1, renderList as o1, normalizeClass as c, renderSlot as f, toDisplayString as y, createVNode as K, computed as g, createCommentVNode as p, mergeProps as j1, createBlock as _, watch as G, getCurrentScope as Z2, onScopeDispose as u2, ref as W, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as n1, withDirectives as Y1, withModifiers as e1, withKeys as N1, vModelText as c2, createTextVNode as R1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, Transition as f2, resolveComponent as h2, provide as s1, resolveDynamicComponent as g2, inject as c1 } from "vue";
|
|
2
2
|
const k2 = {
|
|
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",
|
|
@@ -7296,7 +7296,7 @@ const k2 = {
|
|
|
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
|
-
}, B2 = ["height", "viewBox", "width"], b2 = ["d"],
|
|
7299
|
+
}, B2 = ["height", "viewBox", "width"], b2 = ["d"], x = /* @__PURE__ */ F({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
@@ -7305,24 +7305,24 @@ const k2 = {
|
|
|
7305
7305
|
},
|
|
7306
7306
|
setup(H) {
|
|
7307
7307
|
const V = H;
|
|
7308
|
-
return (C, M) => (m(),
|
|
7308
|
+
return (C, M) => (m(), Z("svg", {
|
|
7309
7309
|
class: "r-icon",
|
|
7310
7310
|
height: V.size,
|
|
7311
7311
|
viewBox: V.viewBox,
|
|
7312
7312
|
width: V.size
|
|
7313
7313
|
}, [
|
|
7314
|
-
|
|
7315
|
-
d:
|
|
7314
|
+
S("path", {
|
|
7315
|
+
d: V1(k2)[V.name]
|
|
7316
7316
|
}, null, 8, b2)
|
|
7317
7317
|
], 8, B2));
|
|
7318
7318
|
}
|
|
7319
|
-
}), w2 = ["data-state"], y2 = ["onClick"], P2 = { class: "r-accordion__title" }, v2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" },
|
|
7319
|
+
}), w2 = ["data-state"], y2 = ["onClick"], P2 = { class: "r-accordion__title" }, v2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, M0 = /* @__PURE__ */ F({
|
|
7320
7320
|
__name: "RAccordion",
|
|
7321
7321
|
props: {
|
|
7322
7322
|
accordions: {}
|
|
7323
7323
|
},
|
|
7324
7324
|
setup(H) {
|
|
7325
|
-
const V = H, C =
|
|
7325
|
+
const V = H, C = Z1(
|
|
7326
7326
|
V.accordions.map(({ title: A, content: L }, i) => ({
|
|
7327
7327
|
title: A,
|
|
7328
7328
|
content: L,
|
|
@@ -7335,27 +7335,27 @@ const k2 = {
|
|
|
7335
7335
|
C[i].open = i === A ? !C[i].open : !1;
|
|
7336
7336
|
});
|
|
7337
7337
|
}
|
|
7338
|
-
return (A, L) => (m(!0),
|
|
7338
|
+
return (A, L) => (m(!0), Z(i1, null, o1(C, (i, e) => (m(), Z("div", {
|
|
7339
7339
|
key: e,
|
|
7340
|
-
class:
|
|
7340
|
+
class: c(["r-accordion", {
|
|
7341
7341
|
"r-accordion--disabled": i.disabled
|
|
7342
7342
|
}]),
|
|
7343
7343
|
"data-state": i.open ? "opened" : "closed"
|
|
7344
7344
|
}, [
|
|
7345
|
-
|
|
7345
|
+
S("div", {
|
|
7346
7346
|
class: "r-accordion__header",
|
|
7347
|
-
onClick: (
|
|
7347
|
+
onClick: (d) => M(e)
|
|
7348
7348
|
}, [
|
|
7349
7349
|
f(A.$slots, "title", {}, () => [
|
|
7350
|
-
|
|
7350
|
+
S("div", P2, y(i.title), 1)
|
|
7351
7351
|
]),
|
|
7352
|
-
|
|
7353
|
-
K(
|
|
7352
|
+
S("div", v2, [
|
|
7353
|
+
K(x, { name: "mdiChevronUp" })
|
|
7354
7354
|
])
|
|
7355
7355
|
], 8, y2),
|
|
7356
|
-
|
|
7356
|
+
S("div", T2, [
|
|
7357
7357
|
f(A.$slots, "content", {}, () => [
|
|
7358
|
-
|
|
7358
|
+
S("span", null, y(i.content), 1)
|
|
7359
7359
|
])
|
|
7360
7360
|
])
|
|
7361
7361
|
], 10, w2))), 128));
|
|
@@ -7366,7 +7366,7 @@ const k2 = {
|
|
|
7366
7366
|
}, _2 = {
|
|
7367
7367
|
key: 0,
|
|
7368
7368
|
class: "r-alert__close"
|
|
7369
|
-
},
|
|
7369
|
+
}, A0 = /* @__PURE__ */ F({
|
|
7370
7370
|
__name: "RAlert",
|
|
7371
7371
|
props: {
|
|
7372
7372
|
type: { default: "info" },
|
|
@@ -7392,36 +7392,36 @@ const k2 = {
|
|
|
7392
7392
|
function i() {
|
|
7393
7393
|
M("close");
|
|
7394
7394
|
}
|
|
7395
|
-
return (e,
|
|
7396
|
-
class:
|
|
7395
|
+
return (e, d) => (m(), Z("div", {
|
|
7396
|
+
class: c(A.value)
|
|
7397
7397
|
}, [
|
|
7398
|
-
|
|
7398
|
+
S("div", F2, [
|
|
7399
7399
|
f(e.$slots, "alert-icon", {}, () => [
|
|
7400
|
-
K(
|
|
7400
|
+
K(x, {
|
|
7401
7401
|
name: L.value,
|
|
7402
7402
|
size: 24
|
|
7403
7403
|
}, null, 8, ["name"])
|
|
7404
7404
|
])
|
|
7405
7405
|
]),
|
|
7406
|
-
|
|
7406
|
+
S("div", R2, [
|
|
7407
7407
|
f(e.$slots, "content", {}, () => [
|
|
7408
|
-
|
|
7409
|
-
C.description ? (m(),
|
|
7408
|
+
S("p", x2, y(C.title), 1),
|
|
7409
|
+
C.description ? (m(), Z("p", D2, y(C.description), 1)) : p("", !0)
|
|
7410
7410
|
])
|
|
7411
7411
|
]),
|
|
7412
|
-
C.closable ? (m(),
|
|
7412
|
+
C.closable ? (m(), Z("div", _2, [
|
|
7413
7413
|
f(e.$slots, "custom-close", {}, () => [
|
|
7414
|
-
K(
|
|
7414
|
+
K(x, {
|
|
7415
7415
|
class: "r-alert__close__button",
|
|
7416
7416
|
name: "mdiClose",
|
|
7417
7417
|
size: 16,
|
|
7418
7418
|
onClick: i
|
|
7419
7419
|
})
|
|
7420
7420
|
])
|
|
7421
|
-
])) :
|
|
7421
|
+
])) : p("", !0)
|
|
7422
7422
|
], 2));
|
|
7423
7423
|
}
|
|
7424
|
-
}), I1 = "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", E2 = { class: "r-avatar__wrapper" }, W2 = ["alt", "src"],
|
|
7424
|
+
}), I1 = "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", E2 = { class: "r-avatar__wrapper" }, W2 = ["alt", "src"], i0 = /* @__PURE__ */ F({
|
|
7425
7425
|
__name: "RAvatar",
|
|
7426
7426
|
props: {
|
|
7427
7427
|
type: { default: "image" },
|
|
@@ -7440,32 +7440,32 @@ const k2 = {
|
|
|
7440
7440
|
const e = i.split(" ");
|
|
7441
7441
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7442
7442
|
}
|
|
7443
|
-
return (i, e) => (m(),
|
|
7444
|
-
|
|
7445
|
-
class:
|
|
7443
|
+
return (i, e) => (m(), Z("div", E2, [
|
|
7444
|
+
S("div", {
|
|
7445
|
+
class: c(C.value)
|
|
7446
7446
|
}, [
|
|
7447
|
-
V.type === "text" ? (m(),
|
|
7447
|
+
V.type === "text" ? (m(), Z("p", {
|
|
7448
7448
|
key: 0,
|
|
7449
|
-
class:
|
|
7450
|
-
},
|
|
7449
|
+
class: c(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
|
|
7450
|
+
}, y(L(V.text)), 3)) : (m(), Z("img", {
|
|
7451
7451
|
key: 1,
|
|
7452
7452
|
alt: V.alt,
|
|
7453
|
-
class:
|
|
7453
|
+
class: c(["r-avatar__image", {
|
|
7454
7454
|
[`r-avatar__image--${V.size}`]: !0,
|
|
7455
7455
|
"r-avatar__image--anonymous": M.value
|
|
7456
7456
|
}]),
|
|
7457
7457
|
src: A.value
|
|
7458
7458
|
}, null, 10, W2))
|
|
7459
7459
|
], 2),
|
|
7460
|
-
V.online ? (m(),
|
|
7460
|
+
V.online ? (m(), Z("span", {
|
|
7461
7461
|
key: 0,
|
|
7462
|
-
class:
|
|
7462
|
+
class: c(["r-avatar__online", {
|
|
7463
7463
|
[`r-avatar__online--${V.size}`]: !0
|
|
7464
7464
|
}])
|
|
7465
|
-
}, null, 2)) :
|
|
7465
|
+
}, null, 2)) : p("", !0)
|
|
7466
7466
|
]));
|
|
7467
7467
|
}
|
|
7468
|
-
}), N2 =
|
|
7468
|
+
}), N2 = ["innerHTML"], e0 = /* @__PURE__ */ F({
|
|
7469
7469
|
__name: "RBadge",
|
|
7470
7470
|
props: {
|
|
7471
7471
|
variant: { default: "primary" },
|
|
@@ -7474,13 +7474,16 @@ const k2 = {
|
|
|
7474
7474
|
hover: { type: Boolean, default: !1 },
|
|
7475
7475
|
outside: { type: Boolean, default: !1 },
|
|
7476
7476
|
animation: { type: Boolean, default: !1 },
|
|
7477
|
-
class: { default: "" }
|
|
7477
|
+
class: { default: "" },
|
|
7478
|
+
content: { default: "" },
|
|
7479
|
+
contentClass: { default: "" },
|
|
7480
|
+
wrapperClass: { default: "" }
|
|
7478
7481
|
},
|
|
7479
7482
|
emits: ["click"],
|
|
7480
7483
|
setup(H) {
|
|
7481
7484
|
const V = H, C = g(() => ({
|
|
7482
7485
|
"r-badge": !0,
|
|
7483
|
-
|
|
7486
|
+
[`r-badge--content ${V.contentClass}`]: V.content,
|
|
7484
7487
|
[`r-badge--overlap-${V.placement}`]: V.overlap,
|
|
7485
7488
|
[`r-badge--${V.placement}`]: V.placement,
|
|
7486
7489
|
[`r-badge--outside-${V.placement}`]: V.outside,
|
|
@@ -7488,17 +7491,20 @@ const k2 = {
|
|
|
7488
7491
|
[`r-badge--${V.variant}`]: V.variant,
|
|
7489
7492
|
[V.class]: V.class
|
|
7490
7493
|
}));
|
|
7491
|
-
return (M, A) => (m(),
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
class: p(C.value)
|
|
7494
|
+
return (M, A) => (m(), Z("div", {
|
|
7495
|
+
class: c(["r-badge-wrapper group", [V.wrapperClass]])
|
|
7496
|
+
}, [
|
|
7497
|
+
S("span", {
|
|
7498
|
+
class: c([{ "animate-ping-2": V.animation }, C.value])
|
|
7497
7499
|
}, null, 2),
|
|
7500
|
+
S("span", {
|
|
7501
|
+
class: c(C.value),
|
|
7502
|
+
innerHTML: V.content
|
|
7503
|
+
}, null, 10, N2),
|
|
7498
7504
|
f(M.$slots, "default")
|
|
7499
|
-
]));
|
|
7505
|
+
], 2));
|
|
7500
7506
|
}
|
|
7501
|
-
}), I2 = ["disabled"],
|
|
7507
|
+
}), I2 = ["disabled"], d0 = /* @__PURE__ */ F({
|
|
7502
7508
|
__name: "RButton",
|
|
7503
7509
|
props: {
|
|
7504
7510
|
variant: { default: "default" },
|
|
@@ -7529,30 +7535,30 @@ const k2 = {
|
|
|
7529
7535
|
})[V.size || "medium"]), A = g(() => ({
|
|
7530
7536
|
height: V.height ? `${V.height}px` : ""
|
|
7531
7537
|
}));
|
|
7532
|
-
return (L, i) => (m(),
|
|
7538
|
+
return (L, i) => (m(), Z("button", j1(L.$attrs, {
|
|
7533
7539
|
class: C.value,
|
|
7534
7540
|
disabled: L.disabled,
|
|
7535
7541
|
style: A.value,
|
|
7536
7542
|
onClick: i[0] || (i[0] = (e) => L.$emit("click"))
|
|
7537
7543
|
}), [
|
|
7538
7544
|
f(L.$slots, "prepend", {}, () => [
|
|
7539
|
-
V.prependIcon ? (m(), _(
|
|
7545
|
+
V.prependIcon ? (m(), _(x, {
|
|
7540
7546
|
key: 0,
|
|
7541
|
-
class:
|
|
7547
|
+
class: c(["r-button__prepend-icon", {
|
|
7542
7548
|
"r-button__prepend-icon--only": V.icon
|
|
7543
7549
|
}]),
|
|
7544
7550
|
name: V.prependIcon,
|
|
7545
7551
|
size: M.value
|
|
7546
|
-
}, null, 8, ["class", "name", "size"])) :
|
|
7552
|
+
}, null, 8, ["class", "name", "size"])) : p("", !0)
|
|
7547
7553
|
]),
|
|
7548
7554
|
f(L.$slots, "default"),
|
|
7549
7555
|
f(L.$slots, "append", {}, () => [
|
|
7550
|
-
!V.icon && V.appendIcon ? (m(), _(
|
|
7556
|
+
!V.icon && V.appendIcon ? (m(), _(x, {
|
|
7551
7557
|
key: 0,
|
|
7552
7558
|
class: "r-button__append-icon",
|
|
7553
7559
|
name: V.appendIcon,
|
|
7554
7560
|
size: M.value
|
|
7555
|
-
}, null, 8, ["name", "size"])) :
|
|
7561
|
+
}, null, 8, ["name", "size"])) : p("", !0)
|
|
7556
7562
|
])
|
|
7557
7563
|
], 16, I2));
|
|
7558
7564
|
}
|
|
@@ -7565,7 +7571,7 @@ const k2 = {
|
|
|
7565
7571
|
}, X2 = {
|
|
7566
7572
|
key: 1,
|
|
7567
7573
|
class: "r-checkbox-texts__hint"
|
|
7568
|
-
},
|
|
7574
|
+
}, t0 = /* @__PURE__ */ F({
|
|
7569
7575
|
__name: "RCheckbox",
|
|
7570
7576
|
props: {
|
|
7571
7577
|
id: { default: "" },
|
|
@@ -7579,7 +7585,7 @@ const k2 = {
|
|
|
7579
7585
|
},
|
|
7580
7586
|
emits: ["update:modelValue"],
|
|
7581
7587
|
setup(H, { emit: V }) {
|
|
7582
|
-
const C = H, M = V, A =
|
|
7588
|
+
const C = H, M = V, A = Z1({
|
|
7583
7589
|
checked: !1,
|
|
7584
7590
|
indeterminate: !1
|
|
7585
7591
|
}), L = {
|
|
@@ -7593,63 +7599,63 @@ const k2 = {
|
|
|
7593
7599
|
"r-checkbox--indeterminate": A.indeterminate,
|
|
7594
7600
|
"r-checkbox--error": !!C.errorMsg
|
|
7595
7601
|
}));
|
|
7596
|
-
function t
|
|
7597
|
-
C.disabled || (A.checked =
|
|
7602
|
+
function d(t) {
|
|
7603
|
+
C.disabled || (A.checked = t.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
|
|
7598
7604
|
}
|
|
7599
|
-
return
|
|
7605
|
+
return G(
|
|
7600
7606
|
() => C.indeterminate,
|
|
7601
|
-
(
|
|
7602
|
-
A.indeterminate =
|
|
7607
|
+
(t) => {
|
|
7608
|
+
A.indeterminate = t, t === !0 && (A.checked = !1, M("update:modelValue", A.checked));
|
|
7603
7609
|
},
|
|
7604
7610
|
{
|
|
7605
7611
|
// need immediate to set the state on first render for storybook
|
|
7606
7612
|
// TODO: find a better way to do this
|
|
7607
7613
|
immediate: !0
|
|
7608
7614
|
}
|
|
7609
|
-
),
|
|
7615
|
+
), G(
|
|
7610
7616
|
() => C.modelValue,
|
|
7611
|
-
(
|
|
7612
|
-
A.checked =
|
|
7617
|
+
(t) => {
|
|
7618
|
+
A.checked = t;
|
|
7613
7619
|
},
|
|
7614
7620
|
{
|
|
7615
7621
|
// need immediate to set the state on first render for storybook
|
|
7616
7622
|
// TODO: find a better way to do this
|
|
7617
7623
|
immediate: !0
|
|
7618
7624
|
}
|
|
7619
|
-
), (
|
|
7620
|
-
|
|
7621
|
-
|
|
7625
|
+
), (t, l) => (m(), Z("div", Q2, [
|
|
7626
|
+
S("div", G2, [
|
|
7627
|
+
S("input", {
|
|
7622
7628
|
id: C.id,
|
|
7623
7629
|
checked: A.checked,
|
|
7624
7630
|
class: "r-checkbox-container__input",
|
|
7625
7631
|
disabled: C.disabled,
|
|
7626
7632
|
indeterminate: A.indeterminate,
|
|
7627
7633
|
type: "checkbox",
|
|
7628
|
-
onChange:
|
|
7634
|
+
onChange: d
|
|
7629
7635
|
}, null, 40, $2),
|
|
7630
|
-
|
|
7631
|
-
class:
|
|
7636
|
+
S("div", {
|
|
7637
|
+
class: c(e.value),
|
|
7632
7638
|
"data-disabled": C.disabled
|
|
7633
7639
|
}, [
|
|
7634
|
-
K(
|
|
7640
|
+
K(x, {
|
|
7635
7641
|
name: i.value,
|
|
7636
7642
|
size: 24
|
|
7637
7643
|
}, null, 8, ["name"])
|
|
7638
7644
|
], 10, U2)
|
|
7639
7645
|
]),
|
|
7640
|
-
|
|
7641
|
-
|
|
7646
|
+
S("div", z2, [
|
|
7647
|
+
S("label", {
|
|
7642
7648
|
class: "r-checkbox-texts__label",
|
|
7643
7649
|
"data-disabled": C.disabled,
|
|
7644
7650
|
for: C.id
|
|
7645
|
-
},
|
|
7646
|
-
C.hideDetails ?
|
|
7647
|
-
C.errorMsg ? (m(),
|
|
7651
|
+
}, y(C.label), 9, K2),
|
|
7652
|
+
C.hideDetails ? p("", !0) : (m(), Z("div", q2, [
|
|
7653
|
+
C.errorMsg ? (m(), Z("p", j2, y(C.errorMsg), 1)) : (m(), Z("p", X2, y(C.hint), 1))
|
|
7648
7654
|
]))
|
|
7649
7655
|
])
|
|
7650
7656
|
]));
|
|
7651
7657
|
}
|
|
7652
|
-
}), Y2 =
|
|
7658
|
+
}), Y2 = /* @__PURE__ */ F({
|
|
7653
7659
|
__name: "RChip",
|
|
7654
7660
|
props: {
|
|
7655
7661
|
variant: { default: "primary" },
|
|
@@ -7658,7 +7664,8 @@ const k2 = {
|
|
|
7658
7664
|
prependIcon: { default: "" },
|
|
7659
7665
|
appendIcon: { default: "" },
|
|
7660
7666
|
ghost: { type: Boolean, default: !1 },
|
|
7661
|
-
|
|
7667
|
+
clearable: { type: Boolean, default: !1 },
|
|
7668
|
+
noWrap: { type: Boolean, default: !1 }
|
|
7662
7669
|
},
|
|
7663
7670
|
emits: ["click:chip", "click:close"],
|
|
7664
7671
|
setup(H, { emit: V }) {
|
|
@@ -7667,143 +7674,146 @@ const k2 = {
|
|
|
7667
7674
|
"r-chip--disabled": C.disabled,
|
|
7668
7675
|
[`r-chip__${C.variant}`]: C.variant,
|
|
7669
7676
|
[`r-chip__${C.variant}--ghost`]: C.ghost,
|
|
7670
|
-
"r-chip--
|
|
7677
|
+
"r-chip--clearable": C.clearable
|
|
7671
7678
|
}));
|
|
7672
|
-
function L(
|
|
7673
|
-
C.
|
|
7679
|
+
function L(d) {
|
|
7680
|
+
C.clearable && d.stopPropagation(), !C.disabled && M("click:chip", d);
|
|
7674
7681
|
}
|
|
7675
|
-
function i(
|
|
7676
|
-
C.disabled || !C.
|
|
7682
|
+
function i(d) {
|
|
7683
|
+
C.disabled || !C.clearable || (d.stopPropagation(), M("click:close", d));
|
|
7677
7684
|
}
|
|
7678
|
-
|
|
7679
|
-
|
|
7685
|
+
const e = g(() => C.clearable ? "mdiClose" : C.appendIcon);
|
|
7686
|
+
return (d, t) => (m(), Z("div", {
|
|
7687
|
+
class: c(A.value)
|
|
7680
7688
|
}, [
|
|
7681
|
-
|
|
7689
|
+
S("div", {
|
|
7682
7690
|
class: "r-chip__content",
|
|
7683
|
-
onClick: t[0] || (t[0] = (
|
|
7691
|
+
onClick: t[0] || (t[0] = (l) => L(l))
|
|
7684
7692
|
}, [
|
|
7685
|
-
f(
|
|
7686
|
-
C.prependIcon ? (m(), _(
|
|
7693
|
+
f(d.$slots, "prepend", {}, () => [
|
|
7694
|
+
C.prependIcon ? (m(), _(x, {
|
|
7687
7695
|
key: 0,
|
|
7688
7696
|
"aria-disabled": C.disabled,
|
|
7689
7697
|
class: "r-chip__content__prepend-icon",
|
|
7690
7698
|
name: C.prependIcon,
|
|
7691
7699
|
size: 12
|
|
7692
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7700
|
+
}, null, 8, ["aria-disabled", "name"])) : p("", !0)
|
|
7693
7701
|
]),
|
|
7694
|
-
|
|
7702
|
+
S("span", {
|
|
7703
|
+
class: c(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
|
|
7704
|
+
}, y(C.label), 3)
|
|
7695
7705
|
]),
|
|
7696
|
-
f(
|
|
7697
|
-
|
|
7706
|
+
f(d.$slots, "append", {}, () => [
|
|
7707
|
+
e.value ? (m(), _(x, {
|
|
7698
7708
|
key: 0,
|
|
7699
7709
|
"aria-disabled": C.disabled,
|
|
7700
7710
|
class: "r-chip__content__append-icon",
|
|
7701
|
-
name:
|
|
7711
|
+
name: e.value,
|
|
7702
7712
|
size: 12,
|
|
7703
|
-
onClick: t[1] || (t[1] = (
|
|
7704
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7713
|
+
onClick: t[1] || (t[1] = (l) => i(l))
|
|
7714
|
+
}, null, 8, ["aria-disabled", "name"])) : p("", !0)
|
|
7705
7715
|
])
|
|
7706
7716
|
], 2));
|
|
7707
7717
|
}
|
|
7708
7718
|
});
|
|
7709
|
-
function
|
|
7710
|
-
return
|
|
7719
|
+
function J2(H) {
|
|
7720
|
+
return Z2() ? (u2(H), !0) : !1;
|
|
7711
7721
|
}
|
|
7712
7722
|
function J1(H) {
|
|
7713
|
-
return typeof H == "function" ? H() :
|
|
7723
|
+
return typeof H == "function" ? H() : V1(H);
|
|
7714
7724
|
}
|
|
7715
7725
|
const C2 = typeof window < "u" && typeof document < "u";
|
|
7716
7726
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7717
|
-
const
|
|
7718
|
-
},
|
|
7719
|
-
function
|
|
7727
|
+
const C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", P1 = () => {
|
|
7728
|
+
}, V5 = /* @__PURE__ */ L5();
|
|
7729
|
+
function L5() {
|
|
7720
7730
|
var H;
|
|
7721
7731
|
return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7722
7732
|
}
|
|
7723
|
-
function
|
|
7733
|
+
function m1(H) {
|
|
7724
7734
|
var V;
|
|
7725
7735
|
const C = J1(H);
|
|
7726
7736
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
7727
7737
|
}
|
|
7728
7738
|
const H2 = C2 ? window : void 0;
|
|
7729
|
-
function
|
|
7739
|
+
function y1(...H) {
|
|
7730
7740
|
let V, C, M, A;
|
|
7731
7741
|
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, A] = H, V = H2) : [V, C, M, A] = H, !V)
|
|
7732
7742
|
return P1;
|
|
7733
7743
|
Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
|
|
7734
7744
|
const L = [], i = () => {
|
|
7735
7745
|
L.forEach((l) => l()), L.length = 0;
|
|
7736
|
-
}, e = (l, o,
|
|
7737
|
-
() => [
|
|
7746
|
+
}, e = (l, o, r, a) => (l.addEventListener(o, r, a), () => l.removeEventListener(o, r, a)), d = G(
|
|
7747
|
+
() => [m1(V), J1(A)],
|
|
7738
7748
|
([l, o]) => {
|
|
7739
7749
|
if (i(), !l)
|
|
7740
7750
|
return;
|
|
7741
|
-
const
|
|
7751
|
+
const r = H5(o) ? { ...o } : o;
|
|
7742
7752
|
L.push(
|
|
7743
|
-
...C.flatMap((
|
|
7753
|
+
...C.flatMap((a) => M.map((u) => e(l, a, u, r)))
|
|
7744
7754
|
);
|
|
7745
7755
|
},
|
|
7746
7756
|
{ immediate: !0, flush: "post" }
|
|
7747
|
-
),
|
|
7748
|
-
|
|
7757
|
+
), t = () => {
|
|
7758
|
+
d(), i();
|
|
7749
7759
|
};
|
|
7750
|
-
return
|
|
7760
|
+
return J2(t), t;
|
|
7751
7761
|
}
|
|
7752
7762
|
let Q1 = !1;
|
|
7753
|
-
function
|
|
7763
|
+
function M5(H, V, C = {}) {
|
|
7754
7764
|
const { window: M = H2, ignore: A = [], capture: L = !0, detectIframe: i = !1 } = C;
|
|
7755
7765
|
if (!M)
|
|
7756
7766
|
return;
|
|
7757
|
-
|
|
7767
|
+
V5 && !Q1 && (Q1 = !0, Array.from(M.document.body.children).forEach((r) => r.addEventListener("click", P1)), M.document.documentElement.addEventListener("click", P1));
|
|
7758
7768
|
let e = !0;
|
|
7759
|
-
const
|
|
7760
|
-
if (typeof
|
|
7761
|
-
return Array.from(M.document.querySelectorAll(
|
|
7769
|
+
const d = (r) => A.some((a) => {
|
|
7770
|
+
if (typeof a == "string")
|
|
7771
|
+
return Array.from(M.document.querySelectorAll(a)).some((u) => u === r.target || r.composedPath().includes(u));
|
|
7762
7772
|
{
|
|
7763
|
-
const
|
|
7764
|
-
return
|
|
7773
|
+
const u = m1(a);
|
|
7774
|
+
return u && (r.target === u || r.composedPath().includes(u));
|
|
7765
7775
|
}
|
|
7766
7776
|
}), l = [
|
|
7767
|
-
|
|
7768
|
-
const
|
|
7769
|
-
if (!(!
|
|
7770
|
-
if (
|
|
7777
|
+
y1(M, "click", (r) => {
|
|
7778
|
+
const a = m1(H);
|
|
7779
|
+
if (!(!a || a === r.target || r.composedPath().includes(a))) {
|
|
7780
|
+
if (r.detail === 0 && (e = !d(r)), !e) {
|
|
7771
7781
|
e = !0;
|
|
7772
7782
|
return;
|
|
7773
7783
|
}
|
|
7774
|
-
V(
|
|
7784
|
+
V(r);
|
|
7775
7785
|
}
|
|
7776
7786
|
}, { passive: !0, capture: L }),
|
|
7777
|
-
|
|
7778
|
-
const
|
|
7779
|
-
e = !
|
|
7787
|
+
y1(M, "pointerdown", (r) => {
|
|
7788
|
+
const a = m1(H);
|
|
7789
|
+
e = !d(r) && !!(a && !r.composedPath().includes(a));
|
|
7780
7790
|
}, { passive: !0 }),
|
|
7781
|
-
i &&
|
|
7791
|
+
i && y1(M, "blur", (r) => {
|
|
7782
7792
|
setTimeout(() => {
|
|
7783
|
-
var
|
|
7784
|
-
const
|
|
7785
|
-
((
|
|
7793
|
+
var a;
|
|
7794
|
+
const u = m1(H);
|
|
7795
|
+
((a = M.document.activeElement) == null ? void 0 : a.tagName) === "IFRAME" && !(u != null && u.contains(M.document.activeElement)) && V(r);
|
|
7786
7796
|
}, 0);
|
|
7787
7797
|
})
|
|
7788
7798
|
].filter(Boolean);
|
|
7789
|
-
return () => l.forEach((
|
|
7799
|
+
return () => l.forEach((r) => r());
|
|
7790
7800
|
}
|
|
7791
|
-
const
|
|
7801
|
+
const A5 = ["top", "right", "bottom", "left"], r1 = Math.min, M1 = Math.max, f1 = Math.round, J = (H) => ({
|
|
7792
7802
|
x: H,
|
|
7793
7803
|
y: H
|
|
7794
|
-
}),
|
|
7804
|
+
}), i5 = {
|
|
7795
7805
|
left: "right",
|
|
7796
7806
|
right: "left",
|
|
7797
7807
|
bottom: "top",
|
|
7798
7808
|
top: "bottom"
|
|
7799
|
-
},
|
|
7809
|
+
}, e5 = {
|
|
7800
7810
|
start: "end",
|
|
7801
7811
|
end: "start"
|
|
7802
7812
|
};
|
|
7803
7813
|
function v1(H, V, C) {
|
|
7804
|
-
return
|
|
7814
|
+
return M1(H, r1(V, C));
|
|
7805
7815
|
}
|
|
7806
|
-
function
|
|
7816
|
+
function t1(H, V) {
|
|
7807
7817
|
return typeof H == "function" ? H(V) : H;
|
|
7808
7818
|
}
|
|
7809
7819
|
function L1(H) {
|
|
@@ -7818,26 +7828,26 @@ function V2(H) {
|
|
|
7818
7828
|
function D1(H) {
|
|
7819
7829
|
return H === "y" ? "height" : "width";
|
|
7820
7830
|
}
|
|
7821
|
-
function
|
|
7831
|
+
function B1(H) {
|
|
7822
7832
|
return ["top", "bottom"].includes(L1(H)) ? "y" : "x";
|
|
7823
7833
|
}
|
|
7824
7834
|
function _1(H) {
|
|
7825
|
-
return V2(
|
|
7835
|
+
return V2(B1(H));
|
|
7826
7836
|
}
|
|
7827
|
-
function
|
|
7837
|
+
function d5(H, V, C) {
|
|
7828
7838
|
C === void 0 && (C = !1);
|
|
7829
7839
|
const M = u1(H), A = _1(H), L = D1(A);
|
|
7830
7840
|
let i = A === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
|
|
7831
|
-
return V.reference[L] > V.floating[L] && (i =
|
|
7841
|
+
return V.reference[L] > V.floating[L] && (i = h1(i)), [i, h1(i)];
|
|
7832
7842
|
}
|
|
7833
|
-
function
|
|
7834
|
-
const V =
|
|
7843
|
+
function t5(H) {
|
|
7844
|
+
const V = h1(H);
|
|
7835
7845
|
return [T1(H), V, T1(V)];
|
|
7836
7846
|
}
|
|
7837
7847
|
function T1(H) {
|
|
7838
|
-
return H.replace(/start|end/g, (V) =>
|
|
7848
|
+
return H.replace(/start|end/g, (V) => e5[V]);
|
|
7839
7849
|
}
|
|
7840
|
-
function
|
|
7850
|
+
function m5(H, V, C) {
|
|
7841
7851
|
const M = ["left", "right"], A = ["right", "left"], L = ["top", "bottom"], i = ["bottom", "top"];
|
|
7842
7852
|
switch (H) {
|
|
7843
7853
|
case "top":
|
|
@@ -7850,15 +7860,15 @@ function l5(H, V, C) {
|
|
|
7850
7860
|
return [];
|
|
7851
7861
|
}
|
|
7852
7862
|
}
|
|
7853
|
-
function
|
|
7863
|
+
function l5(H, V, C, M) {
|
|
7854
7864
|
const A = u1(H);
|
|
7855
|
-
let L =
|
|
7865
|
+
let L = m5(L1(H), C === "start", M);
|
|
7856
7866
|
return A && (L = L.map((i) => i + "-" + A), V && (L = L.concat(L.map(T1)))), L;
|
|
7857
7867
|
}
|
|
7858
|
-
function
|
|
7859
|
-
return H.replace(/left|right|bottom|top/g, (V) =>
|
|
7868
|
+
function h1(H) {
|
|
7869
|
+
return H.replace(/left|right|bottom|top/g, (V) => i5[V]);
|
|
7860
7870
|
}
|
|
7861
|
-
function
|
|
7871
|
+
function o5(H) {
|
|
7862
7872
|
return {
|
|
7863
7873
|
top: 0,
|
|
7864
7874
|
right: 0,
|
|
@@ -7868,14 +7878,14 @@ function n5(H) {
|
|
|
7868
7878
|
};
|
|
7869
7879
|
}
|
|
7870
7880
|
function L2(H) {
|
|
7871
|
-
return typeof H != "number" ?
|
|
7881
|
+
return typeof H != "number" ? o5(H) : {
|
|
7872
7882
|
top: H,
|
|
7873
7883
|
right: H,
|
|
7874
7884
|
bottom: H,
|
|
7875
7885
|
left: H
|
|
7876
7886
|
};
|
|
7877
7887
|
}
|
|
7878
|
-
function
|
|
7888
|
+
function g1(H) {
|
|
7879
7889
|
return {
|
|
7880
7890
|
...H,
|
|
7881
7891
|
top: H.y,
|
|
@@ -7889,114 +7899,114 @@ function G1(H, V, C) {
|
|
|
7889
7899
|
reference: M,
|
|
7890
7900
|
floating: A
|
|
7891
7901
|
} = H;
|
|
7892
|
-
const L =
|
|
7893
|
-
let
|
|
7894
|
-
switch (
|
|
7902
|
+
const L = B1(V), i = _1(V), e = D1(i), d = L1(V), t = L === "y", l = M.x + M.width / 2 - A.width / 2, o = M.y + M.height / 2 - A.height / 2, r = M[e] / 2 - A[e] / 2;
|
|
7903
|
+
let a;
|
|
7904
|
+
switch (d) {
|
|
7895
7905
|
case "top":
|
|
7896
|
-
|
|
7906
|
+
a = {
|
|
7897
7907
|
x: l,
|
|
7898
7908
|
y: M.y - A.height
|
|
7899
7909
|
};
|
|
7900
7910
|
break;
|
|
7901
7911
|
case "bottom":
|
|
7902
|
-
|
|
7912
|
+
a = {
|
|
7903
7913
|
x: l,
|
|
7904
7914
|
y: M.y + M.height
|
|
7905
7915
|
};
|
|
7906
7916
|
break;
|
|
7907
7917
|
case "right":
|
|
7908
|
-
|
|
7918
|
+
a = {
|
|
7909
7919
|
x: M.x + M.width,
|
|
7910
7920
|
y: o
|
|
7911
7921
|
};
|
|
7912
7922
|
break;
|
|
7913
7923
|
case "left":
|
|
7914
|
-
|
|
7924
|
+
a = {
|
|
7915
7925
|
x: M.x - A.width,
|
|
7916
7926
|
y: o
|
|
7917
7927
|
};
|
|
7918
7928
|
break;
|
|
7919
7929
|
default:
|
|
7920
|
-
|
|
7930
|
+
a = {
|
|
7921
7931
|
x: M.x,
|
|
7922
7932
|
y: M.y
|
|
7923
7933
|
};
|
|
7924
7934
|
}
|
|
7925
7935
|
switch (u1(V)) {
|
|
7926
7936
|
case "start":
|
|
7927
|
-
|
|
7937
|
+
a[i] -= r * (C && t ? -1 : 1);
|
|
7928
7938
|
break;
|
|
7929
7939
|
case "end":
|
|
7930
|
-
|
|
7940
|
+
a[i] += r * (C && t ? -1 : 1);
|
|
7931
7941
|
break;
|
|
7932
7942
|
}
|
|
7933
|
-
return
|
|
7943
|
+
return a;
|
|
7934
7944
|
}
|
|
7935
|
-
const
|
|
7945
|
+
const n5 = async (H, V, C) => {
|
|
7936
7946
|
const {
|
|
7937
7947
|
placement: M = "bottom",
|
|
7938
7948
|
strategy: A = "absolute",
|
|
7939
7949
|
middleware: L = [],
|
|
7940
7950
|
platform: i
|
|
7941
|
-
} = C, e = L.filter(Boolean),
|
|
7942
|
-
let
|
|
7951
|
+
} = C, e = L.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
|
|
7952
|
+
let t = await i.getElementRects({
|
|
7943
7953
|
reference: H,
|
|
7944
7954
|
floating: V,
|
|
7945
7955
|
strategy: A
|
|
7946
7956
|
}), {
|
|
7947
7957
|
x: l,
|
|
7948
7958
|
y: o
|
|
7949
|
-
} = G1(
|
|
7959
|
+
} = G1(t, M, d), r = M, a = {}, u = 0;
|
|
7950
7960
|
for (let B = 0; B < e.length; B++) {
|
|
7951
7961
|
const {
|
|
7952
7962
|
name: k,
|
|
7953
|
-
fn:
|
|
7963
|
+
fn: w
|
|
7954
7964
|
} = e[B], {
|
|
7955
7965
|
x: P,
|
|
7956
7966
|
y: v,
|
|
7957
|
-
data:
|
|
7958
|
-
reset:
|
|
7959
|
-
} = await
|
|
7967
|
+
data: T,
|
|
7968
|
+
reset: R
|
|
7969
|
+
} = await w({
|
|
7960
7970
|
x: l,
|
|
7961
7971
|
y: o,
|
|
7962
7972
|
initialPlacement: M,
|
|
7963
|
-
placement:
|
|
7973
|
+
placement: r,
|
|
7964
7974
|
strategy: A,
|
|
7965
|
-
middlewareData:
|
|
7966
|
-
rects:
|
|
7975
|
+
middlewareData: a,
|
|
7976
|
+
rects: t,
|
|
7967
7977
|
platform: i,
|
|
7968
7978
|
elements: {
|
|
7969
7979
|
reference: H,
|
|
7970
7980
|
floating: V
|
|
7971
7981
|
}
|
|
7972
7982
|
});
|
|
7973
|
-
if (l = P ?? l, o = v ?? o,
|
|
7974
|
-
...
|
|
7983
|
+
if (l = P ?? l, o = v ?? o, a = {
|
|
7984
|
+
...a,
|
|
7975
7985
|
[k]: {
|
|
7976
|
-
...
|
|
7977
|
-
...
|
|
7986
|
+
...a[k],
|
|
7987
|
+
...T
|
|
7978
7988
|
}
|
|
7979
|
-
},
|
|
7980
|
-
|
|
7989
|
+
}, R && u <= 50) {
|
|
7990
|
+
u++, typeof R == "object" && (R.placement && (r = R.placement), R.rects && (t = R.rects === !0 ? await i.getElementRects({
|
|
7981
7991
|
reference: H,
|
|
7982
7992
|
floating: V,
|
|
7983
7993
|
strategy: A
|
|
7984
|
-
}) :
|
|
7994
|
+
}) : R.rects), {
|
|
7985
7995
|
x: l,
|
|
7986
7996
|
y: o
|
|
7987
|
-
} = G1(
|
|
7997
|
+
} = G1(t, r, d)), B = -1;
|
|
7988
7998
|
continue;
|
|
7989
7999
|
}
|
|
7990
8000
|
}
|
|
7991
8001
|
return {
|
|
7992
8002
|
x: l,
|
|
7993
8003
|
y: o,
|
|
7994
|
-
placement:
|
|
8004
|
+
placement: r,
|
|
7995
8005
|
strategy: A,
|
|
7996
|
-
middlewareData:
|
|
8006
|
+
middlewareData: a
|
|
7997
8007
|
};
|
|
7998
8008
|
};
|
|
7999
|
-
async function
|
|
8009
|
+
async function k1(H, V) {
|
|
8000
8010
|
var C;
|
|
8001
8011
|
V === void 0 && (V = {});
|
|
8002
8012
|
const {
|
|
@@ -8005,41 +8015,41 @@ async function p1(H, V) {
|
|
|
8005
8015
|
platform: L,
|
|
8006
8016
|
rects: i,
|
|
8007
8017
|
elements: e,
|
|
8008
|
-
strategy:
|
|
8018
|
+
strategy: d
|
|
8009
8019
|
} = H, {
|
|
8010
|
-
boundary:
|
|
8020
|
+
boundary: t = "clippingAncestors",
|
|
8011
8021
|
rootBoundary: l = "viewport",
|
|
8012
8022
|
elementContext: o = "floating",
|
|
8013
|
-
altBoundary:
|
|
8014
|
-
padding:
|
|
8015
|
-
} =
|
|
8023
|
+
altBoundary: r = !1,
|
|
8024
|
+
padding: a = 0
|
|
8025
|
+
} = t1(V, H), u = L2(a), k = e[r ? o === "floating" ? "reference" : "floating" : o], w = g1(await L.getClippingRect({
|
|
8016
8026
|
element: (C = await (L.isElement == null ? void 0 : L.isElement(k))) == null || C ? k : k.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
|
|
8017
|
-
boundary:
|
|
8027
|
+
boundary: t,
|
|
8018
8028
|
rootBoundary: l,
|
|
8019
|
-
strategy:
|
|
8029
|
+
strategy: d
|
|
8020
8030
|
})), P = o === "floating" ? {
|
|
8021
8031
|
...i.floating,
|
|
8022
8032
|
x: M,
|
|
8023
8033
|
y: A
|
|
8024
|
-
} : i.reference, v = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)),
|
|
8034
|
+
} : i.reference, v = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), T = await (L.isElement == null ? void 0 : L.isElement(v)) ? await (L.getScale == null ? void 0 : L.getScale(v)) || {
|
|
8025
8035
|
x: 1,
|
|
8026
8036
|
y: 1
|
|
8027
8037
|
} : {
|
|
8028
8038
|
x: 1,
|
|
8029
8039
|
y: 1
|
|
8030
|
-
},
|
|
8040
|
+
}, R = g1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
8031
8041
|
rect: P,
|
|
8032
8042
|
offsetParent: v,
|
|
8033
|
-
strategy:
|
|
8043
|
+
strategy: d
|
|
8034
8044
|
}) : P);
|
|
8035
8045
|
return {
|
|
8036
|
-
top: (
|
|
8037
|
-
bottom: (
|
|
8038
|
-
left: (
|
|
8039
|
-
right: (
|
|
8046
|
+
top: (w.top - R.top + u.top) / T.y,
|
|
8047
|
+
bottom: (R.bottom - w.bottom + u.bottom) / T.y,
|
|
8048
|
+
left: (w.left - R.left + u.left) / T.x,
|
|
8049
|
+
right: (R.right - w.right + u.right) / T.x
|
|
8040
8050
|
};
|
|
8041
8051
|
}
|
|
8042
|
-
const
|
|
8052
|
+
const r5 = (H) => ({
|
|
8043
8053
|
name: "arrow",
|
|
8044
8054
|
options: H,
|
|
8045
8055
|
async fn(V) {
|
|
@@ -8050,33 +8060,33 @@ const a5 = (H) => ({
|
|
|
8050
8060
|
rects: L,
|
|
8051
8061
|
platform: i,
|
|
8052
8062
|
elements: e,
|
|
8053
|
-
middlewareData:
|
|
8063
|
+
middlewareData: d
|
|
8054
8064
|
} = V, {
|
|
8055
|
-
element:
|
|
8065
|
+
element: t,
|
|
8056
8066
|
padding: l = 0
|
|
8057
|
-
} =
|
|
8058
|
-
if (
|
|
8067
|
+
} = t1(H, V) || {};
|
|
8068
|
+
if (t == null)
|
|
8059
8069
|
return {};
|
|
8060
|
-
const o = L2(l),
|
|
8070
|
+
const o = L2(l), r = {
|
|
8061
8071
|
x: C,
|
|
8062
8072
|
y: M
|
|
8063
|
-
},
|
|
8073
|
+
}, a = _1(A), u = D1(a), B = await i.getDimensions(t), k = a === "y", w = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", T = L.reference[u] + L.reference[a] - r[a] - L.floating[u], R = r[a] - L.reference[a], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
|
|
8064
8074
|
let I = z ? z[v] : 0;
|
|
8065
|
-
(!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[
|
|
8066
|
-
const O =
|
|
8075
|
+
(!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[u]);
|
|
8076
|
+
const O = T / 2 - R / 2, N = I / 2 - B[u] / 2 - 1, n = r1(o[w], N), h = r1(o[P], N), b = n, D = I - B[u] - h, s = I / 2 - B[u] / 2 + O, E = v1(b, s, D), $ = !d.arrow && u1(A) != null && s != E && L.reference[u] / 2 - (s < b ? n : h) - B[u] / 2 < 0, j = $ ? s < b ? s - b : s - D : 0;
|
|
8067
8077
|
return {
|
|
8068
|
-
[
|
|
8078
|
+
[a]: r[a] + j,
|
|
8069
8079
|
data: {
|
|
8070
|
-
[
|
|
8080
|
+
[a]: E,
|
|
8071
8081
|
centerOffset: s - E - j,
|
|
8072
|
-
|
|
8082
|
+
...$ && {
|
|
8073
8083
|
alignmentOffset: j
|
|
8074
8084
|
}
|
|
8075
8085
|
},
|
|
8076
|
-
reset:
|
|
8086
|
+
reset: $
|
|
8077
8087
|
};
|
|
8078
8088
|
}
|
|
8079
|
-
}),
|
|
8089
|
+
}), a5 = function(H) {
|
|
8080
8090
|
return H === void 0 && (H = {}), {
|
|
8081
8091
|
name: "flip",
|
|
8082
8092
|
options: H,
|
|
@@ -8087,49 +8097,49 @@ const a5 = (H) => ({
|
|
|
8087
8097
|
middlewareData: L,
|
|
8088
8098
|
rects: i,
|
|
8089
8099
|
initialPlacement: e,
|
|
8090
|
-
platform:
|
|
8091
|
-
elements:
|
|
8100
|
+
platform: d,
|
|
8101
|
+
elements: t
|
|
8092
8102
|
} = V, {
|
|
8093
8103
|
mainAxis: l = !0,
|
|
8094
8104
|
crossAxis: o = !0,
|
|
8095
|
-
fallbackPlacements:
|
|
8096
|
-
fallbackStrategy:
|
|
8097
|
-
fallbackAxisSideDirection:
|
|
8105
|
+
fallbackPlacements: r,
|
|
8106
|
+
fallbackStrategy: a = "bestFit",
|
|
8107
|
+
fallbackAxisSideDirection: u = "none",
|
|
8098
8108
|
flipAlignment: B = !0,
|
|
8099
8109
|
...k
|
|
8100
|
-
} =
|
|
8110
|
+
} = t1(H, V);
|
|
8101
8111
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8102
8112
|
return {};
|
|
8103
|
-
const
|
|
8104
|
-
!
|
|
8105
|
-
const
|
|
8113
|
+
const w = L1(A), P = L1(e) === e, v = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), T = r || (P || !B ? [h1(e)] : t5(e));
|
|
8114
|
+
!r && u !== "none" && T.push(...l5(e, B, u, v));
|
|
8115
|
+
const R = [e, ...T], z = await k1(V, k), I = [];
|
|
8106
8116
|
let O = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8107
|
-
if (l && I.push(z[
|
|
8108
|
-
const b =
|
|
8117
|
+
if (l && I.push(z[w]), o) {
|
|
8118
|
+
const b = d5(A, i, v);
|
|
8109
8119
|
I.push(z[b[0]], z[b[1]]);
|
|
8110
8120
|
}
|
|
8111
8121
|
if (O = [...O, {
|
|
8112
8122
|
placement: A,
|
|
8113
8123
|
overflows: I
|
|
8114
8124
|
}], !I.every((b) => b <= 0)) {
|
|
8115
|
-
var
|
|
8116
|
-
const b = (((
|
|
8117
|
-
if (
|
|
8125
|
+
var N, n;
|
|
8126
|
+
const b = (((N = L.flip) == null ? void 0 : N.index) || 0) + 1, D = R[b];
|
|
8127
|
+
if (D)
|
|
8118
8128
|
return {
|
|
8119
8129
|
data: {
|
|
8120
8130
|
index: b,
|
|
8121
8131
|
overflows: O
|
|
8122
8132
|
},
|
|
8123
8133
|
reset: {
|
|
8124
|
-
placement:
|
|
8134
|
+
placement: D
|
|
8125
8135
|
}
|
|
8126
8136
|
};
|
|
8127
|
-
let s = (
|
|
8137
|
+
let s = (n = O.filter((E) => E.overflows[0] <= 0).sort((E, $) => E.overflows[1] - $.overflows[1])[0]) == null ? void 0 : n.placement;
|
|
8128
8138
|
if (!s)
|
|
8129
|
-
switch (
|
|
8139
|
+
switch (a) {
|
|
8130
8140
|
case "bestFit": {
|
|
8131
8141
|
var h;
|
|
8132
|
-
const E = (h = O.map((
|
|
8142
|
+
const E = (h = O.map(($) => [$.placement, $.overflows.filter((j) => j > 0).reduce((j, a2) => j + a2, 0)]).sort(($, j) => $[1] - j[1])[0]) == null ? void 0 : h[0];
|
|
8133
8143
|
E && (s = E);
|
|
8134
8144
|
break;
|
|
8135
8145
|
}
|
|
@@ -8157,9 +8167,9 @@ function $1(H, V) {
|
|
|
8157
8167
|
};
|
|
8158
8168
|
}
|
|
8159
8169
|
function U1(H) {
|
|
8160
|
-
return
|
|
8170
|
+
return A5.some((V) => H[V] >= 0);
|
|
8161
8171
|
}
|
|
8162
|
-
const
|
|
8172
|
+
const Z5 = function(H) {
|
|
8163
8173
|
return H === void 0 && (H = {}), {
|
|
8164
8174
|
name: "hide",
|
|
8165
8175
|
options: H,
|
|
@@ -8169,10 +8179,10 @@ const u5 = function(H) {
|
|
|
8169
8179
|
} = V, {
|
|
8170
8180
|
strategy: M = "referenceHidden",
|
|
8171
8181
|
...A
|
|
8172
|
-
} =
|
|
8182
|
+
} = t1(H, V);
|
|
8173
8183
|
switch (M) {
|
|
8174
8184
|
case "referenceHidden": {
|
|
8175
|
-
const L = await
|
|
8185
|
+
const L = await k1(V, {
|
|
8176
8186
|
...A,
|
|
8177
8187
|
elementContext: "reference"
|
|
8178
8188
|
}), i = $1(L, C.reference);
|
|
@@ -8184,7 +8194,7 @@ const u5 = function(H) {
|
|
|
8184
8194
|
};
|
|
8185
8195
|
}
|
|
8186
8196
|
case "escaped": {
|
|
8187
|
-
const L = await
|
|
8197
|
+
const L = await k1(V, {
|
|
8188
8198
|
...A,
|
|
8189
8199
|
altBoundary: !0
|
|
8190
8200
|
}), i = $1(L, C.floating);
|
|
@@ -8201,16 +8211,16 @@ const u5 = function(H) {
|
|
|
8201
8211
|
}
|
|
8202
8212
|
};
|
|
8203
8213
|
};
|
|
8204
|
-
async function
|
|
8214
|
+
async function u5(H, V) {
|
|
8205
8215
|
const {
|
|
8206
8216
|
placement: C,
|
|
8207
8217
|
platform: M,
|
|
8208
8218
|
elements: A
|
|
8209
|
-
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C),
|
|
8219
|
+
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = B1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, l = L && d ? -1 : 1, o = t1(V, H);
|
|
8210
8220
|
let {
|
|
8211
|
-
mainAxis:
|
|
8212
|
-
crossAxis:
|
|
8213
|
-
alignmentAxis:
|
|
8221
|
+
mainAxis: r,
|
|
8222
|
+
crossAxis: a,
|
|
8223
|
+
alignmentAxis: u
|
|
8214
8224
|
} = typeof o == "number" ? {
|
|
8215
8225
|
mainAxis: o,
|
|
8216
8226
|
crossAxis: 0,
|
|
@@ -8221,15 +8231,15 @@ async function S5(H, V) {
|
|
|
8221
8231
|
alignmentAxis: null,
|
|
8222
8232
|
...o
|
|
8223
8233
|
};
|
|
8224
|
-
return e && typeof
|
|
8225
|
-
x:
|
|
8226
|
-
y:
|
|
8234
|
+
return e && typeof u == "number" && (a = e === "end" ? u * -1 : u), d ? {
|
|
8235
|
+
x: a * l,
|
|
8236
|
+
y: r * t
|
|
8227
8237
|
} : {
|
|
8228
|
-
x:
|
|
8229
|
-
y:
|
|
8238
|
+
x: r * t,
|
|
8239
|
+
y: a * l
|
|
8230
8240
|
};
|
|
8231
8241
|
}
|
|
8232
|
-
const
|
|
8242
|
+
const S5 = function(H) {
|
|
8233
8243
|
return H === void 0 && (H = 0), {
|
|
8234
8244
|
name: "offset",
|
|
8235
8245
|
options: H,
|
|
@@ -8237,7 +8247,7 @@ const s5 = function(H) {
|
|
|
8237
8247
|
const {
|
|
8238
8248
|
x: C,
|
|
8239
8249
|
y: M
|
|
8240
|
-
} = V, A = await
|
|
8250
|
+
} = V, A = await u5(V, H);
|
|
8241
8251
|
return {
|
|
8242
8252
|
x: C + A.x,
|
|
8243
8253
|
y: M + A.y,
|
|
@@ -8245,7 +8255,7 @@ const s5 = function(H) {
|
|
|
8245
8255
|
};
|
|
8246
8256
|
}
|
|
8247
8257
|
};
|
|
8248
|
-
},
|
|
8258
|
+
}, s5 = function(H) {
|
|
8249
8259
|
return H === void 0 && (H = {}), {
|
|
8250
8260
|
name: "shift",
|
|
8251
8261
|
options: H,
|
|
@@ -8260,33 +8270,33 @@ const s5 = function(H) {
|
|
|
8260
8270
|
limiter: e = {
|
|
8261
8271
|
fn: (k) => {
|
|
8262
8272
|
let {
|
|
8263
|
-
x:
|
|
8273
|
+
x: w,
|
|
8264
8274
|
y: P
|
|
8265
8275
|
} = k;
|
|
8266
8276
|
return {
|
|
8267
|
-
x:
|
|
8277
|
+
x: w,
|
|
8268
8278
|
y: P
|
|
8269
8279
|
};
|
|
8270
8280
|
}
|
|
8271
8281
|
},
|
|
8272
|
-
...
|
|
8273
|
-
} =
|
|
8282
|
+
...d
|
|
8283
|
+
} = t1(H, V), t = {
|
|
8274
8284
|
x: C,
|
|
8275
8285
|
y: M
|
|
8276
|
-
}, l = await
|
|
8277
|
-
let
|
|
8286
|
+
}, l = await k1(V, d), o = B1(L1(A)), r = V2(o);
|
|
8287
|
+
let a = t[r], u = t[o];
|
|
8278
8288
|
if (L) {
|
|
8279
|
-
const k =
|
|
8280
|
-
|
|
8289
|
+
const k = r === "y" ? "top" : "left", w = r === "y" ? "bottom" : "right", P = a + l[k], v = a - l[w];
|
|
8290
|
+
a = v1(P, a, v);
|
|
8281
8291
|
}
|
|
8282
8292
|
if (i) {
|
|
8283
|
-
const k = o === "y" ? "top" : "left",
|
|
8284
|
-
|
|
8293
|
+
const k = o === "y" ? "top" : "left", w = o === "y" ? "bottom" : "right", P = u + l[k], v = u - l[w];
|
|
8294
|
+
u = v1(P, u, v);
|
|
8285
8295
|
}
|
|
8286
8296
|
const B = e.fn({
|
|
8287
8297
|
...V,
|
|
8288
|
-
[
|
|
8289
|
-
[o]:
|
|
8298
|
+
[r]: a,
|
|
8299
|
+
[o]: u
|
|
8290
8300
|
});
|
|
8291
8301
|
return {
|
|
8292
8302
|
...B,
|
|
@@ -8330,32 +8340,32 @@ function S1(H) {
|
|
|
8330
8340
|
} = U(H);
|
|
8331
8341
|
return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(A);
|
|
8332
8342
|
}
|
|
8333
|
-
function
|
|
8343
|
+
function c5(H) {
|
|
8334
8344
|
return ["table", "td", "th"].includes(C1(H));
|
|
8335
8345
|
}
|
|
8336
8346
|
function E1(H) {
|
|
8337
8347
|
const V = W1(), C = U(H);
|
|
8338
8348
|
return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
|
|
8339
8349
|
}
|
|
8340
|
-
function
|
|
8341
|
-
let V =
|
|
8342
|
-
for (; q(V) && !
|
|
8350
|
+
function O5(H) {
|
|
8351
|
+
let V = d1(H);
|
|
8352
|
+
for (; q(V) && !b1(V); ) {
|
|
8343
8353
|
if (E1(V))
|
|
8344
8354
|
return V;
|
|
8345
|
-
V =
|
|
8355
|
+
V = d1(V);
|
|
8346
8356
|
}
|
|
8347
8357
|
return null;
|
|
8348
8358
|
}
|
|
8349
8359
|
function W1() {
|
|
8350
8360
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
8351
8361
|
}
|
|
8352
|
-
function
|
|
8362
|
+
function b1(H) {
|
|
8353
8363
|
return ["html", "body", "#document"].includes(C1(H));
|
|
8354
8364
|
}
|
|
8355
8365
|
function U(H) {
|
|
8356
8366
|
return Q(H).getComputedStyle(H);
|
|
8357
8367
|
}
|
|
8358
|
-
function
|
|
8368
|
+
function w1(H) {
|
|
8359
8369
|
return Y(H) ? {
|
|
8360
8370
|
scrollLeft: H.scrollLeft,
|
|
8361
8371
|
scrollTop: H.scrollTop
|
|
@@ -8364,7 +8374,7 @@ function g1(H) {
|
|
|
8364
8374
|
scrollTop: H.pageYOffset
|
|
8365
8375
|
};
|
|
8366
8376
|
}
|
|
8367
|
-
function
|
|
8377
|
+
function d1(H) {
|
|
8368
8378
|
if (C1(H) === "html")
|
|
8369
8379
|
return H;
|
|
8370
8380
|
const V = (
|
|
@@ -8377,8 +8387,8 @@ function t1(H) {
|
|
|
8377
8387
|
return z1(V) ? V.host : V;
|
|
8378
8388
|
}
|
|
8379
8389
|
function A2(H) {
|
|
8380
|
-
const V =
|
|
8381
|
-
return
|
|
8390
|
+
const V = d1(H);
|
|
8391
|
+
return b1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
|
|
8382
8392
|
}
|
|
8383
8393
|
function F1(H, V, C) {
|
|
8384
8394
|
var M;
|
|
@@ -8389,7 +8399,7 @@ function F1(H, V, C) {
|
|
|
8389
8399
|
function i2(H) {
|
|
8390
8400
|
const V = U(H);
|
|
8391
8401
|
let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
|
|
8392
|
-
const A = q(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e =
|
|
8402
|
+
const A = q(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = f1(C) !== L || f1(M) !== i;
|
|
8393
8403
|
return e && (C = L, M = i), {
|
|
8394
8404
|
width: C,
|
|
8395
8405
|
height: M,
|
|
@@ -8399,7 +8409,7 @@ function i2(H) {
|
|
|
8399
8409
|
function e2(H) {
|
|
8400
8410
|
return Y(H) ? H : H.contextElement;
|
|
8401
8411
|
}
|
|
8402
|
-
function
|
|
8412
|
+
function A1(H) {
|
|
8403
8413
|
const V = e2(H);
|
|
8404
8414
|
if (!q(V))
|
|
8405
8415
|
return J(1);
|
|
@@ -8408,46 +8418,46 @@ function e1(H) {
|
|
|
8408
8418
|
height: A,
|
|
8409
8419
|
$: L
|
|
8410
8420
|
} = i2(V);
|
|
8411
|
-
let i = (L ?
|
|
8421
|
+
let i = (L ? f1(C.width) : C.width) / M, e = (L ? f1(C.height) : C.height) / A;
|
|
8412
8422
|
return (!i || !Number.isFinite(i)) && (i = 1), (!e || !Number.isFinite(e)) && (e = 1), {
|
|
8413
8423
|
x: i,
|
|
8414
8424
|
y: e
|
|
8415
8425
|
};
|
|
8416
8426
|
}
|
|
8417
|
-
const
|
|
8427
|
+
const p5 = /* @__PURE__ */ J(0);
|
|
8418
8428
|
function d2(H) {
|
|
8419
8429
|
const V = Q(H);
|
|
8420
|
-
return !W1() || !V.visualViewport ?
|
|
8430
|
+
return !W1() || !V.visualViewport ? p5 : {
|
|
8421
8431
|
x: V.visualViewport.offsetLeft,
|
|
8422
8432
|
y: V.visualViewport.offsetTop
|
|
8423
8433
|
};
|
|
8424
8434
|
}
|
|
8425
|
-
function
|
|
8435
|
+
function f5(H, V, C) {
|
|
8426
8436
|
return V === void 0 && (V = !1), !C || V && C !== Q(H) ? !1 : V;
|
|
8427
8437
|
}
|
|
8428
|
-
function
|
|
8438
|
+
function a1(H, V, C, M) {
|
|
8429
8439
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8430
8440
|
const A = H.getBoundingClientRect(), L = e2(H);
|
|
8431
8441
|
let i = J(1);
|
|
8432
|
-
V && (M ? Y(M) && (i =
|
|
8433
|
-
const e =
|
|
8434
|
-
let
|
|
8442
|
+
V && (M ? Y(M) && (i = A1(M)) : i = A1(H));
|
|
8443
|
+
const e = f5(L, C, M) ? d2(L) : J(0);
|
|
8444
|
+
let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, l = A.width / i.x, o = A.height / i.y;
|
|
8435
8445
|
if (L) {
|
|
8436
|
-
const
|
|
8437
|
-
let
|
|
8438
|
-
for (;
|
|
8439
|
-
const B =
|
|
8440
|
-
|
|
8446
|
+
const r = Q(L), a = M && Y(M) ? Q(M) : M;
|
|
8447
|
+
let u = r.frameElement;
|
|
8448
|
+
for (; u && M && a !== r; ) {
|
|
8449
|
+
const B = A1(u), k = u.getBoundingClientRect(), w = U(u), P = k.left + (u.clientLeft + parseFloat(w.paddingLeft)) * B.x, v = k.top + (u.clientTop + parseFloat(w.paddingTop)) * B.y;
|
|
8450
|
+
d *= B.x, t *= B.y, l *= B.x, o *= B.y, d += P, t += v, u = Q(u).frameElement;
|
|
8441
8451
|
}
|
|
8442
8452
|
}
|
|
8443
|
-
return
|
|
8453
|
+
return g1({
|
|
8444
8454
|
width: l,
|
|
8445
8455
|
height: o,
|
|
8446
|
-
x:
|
|
8447
|
-
y:
|
|
8456
|
+
x: d,
|
|
8457
|
+
y: t
|
|
8448
8458
|
});
|
|
8449
8459
|
}
|
|
8450
|
-
function
|
|
8460
|
+
function h5(H) {
|
|
8451
8461
|
let {
|
|
8452
8462
|
rect: V,
|
|
8453
8463
|
offsetParent: C,
|
|
@@ -8460,67 +8470,67 @@ function g5(H) {
|
|
|
8460
8470
|
scrollLeft: 0,
|
|
8461
8471
|
scrollTop: 0
|
|
8462
8472
|
}, e = J(1);
|
|
8463
|
-
const
|
|
8464
|
-
if ((A || !A && M !== "fixed") && ((C1(C) !== "body" || S1(L)) && (i =
|
|
8465
|
-
const
|
|
8466
|
-
e =
|
|
8473
|
+
const d = J(0);
|
|
8474
|
+
if ((A || !A && M !== "fixed") && ((C1(C) !== "body" || S1(L)) && (i = w1(C)), q(C))) {
|
|
8475
|
+
const t = a1(C);
|
|
8476
|
+
e = A1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
|
|
8467
8477
|
}
|
|
8468
8478
|
return {
|
|
8469
8479
|
width: V.width * e.x,
|
|
8470
8480
|
height: V.height * e.y,
|
|
8471
|
-
x: V.x * e.x - i.scrollLeft * e.x +
|
|
8472
|
-
y: V.y * e.y - i.scrollTop * e.y +
|
|
8481
|
+
x: V.x * e.x - i.scrollLeft * e.x + d.x,
|
|
8482
|
+
y: V.y * e.y - i.scrollTop * e.y + d.y
|
|
8473
8483
|
};
|
|
8474
8484
|
}
|
|
8475
|
-
function
|
|
8485
|
+
function g5(H) {
|
|
8476
8486
|
return Array.from(H.getClientRects());
|
|
8477
8487
|
}
|
|
8478
8488
|
function t2(H) {
|
|
8479
|
-
return
|
|
8489
|
+
return a1(H1(H)).left + w1(H).scrollLeft;
|
|
8480
8490
|
}
|
|
8481
|
-
function
|
|
8482
|
-
const V = H1(H), C =
|
|
8491
|
+
function k5(H) {
|
|
8492
|
+
const V = H1(H), C = w1(H), M = H.ownerDocument.body, A = M1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = M1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
|
|
8483
8493
|
let i = -C.scrollLeft + t2(H);
|
|
8484
8494
|
const e = -C.scrollTop;
|
|
8485
|
-
return U(M).direction === "rtl" && (i +=
|
|
8495
|
+
return U(M).direction === "rtl" && (i += M1(V.clientWidth, M.clientWidth) - A), {
|
|
8486
8496
|
width: A,
|
|
8487
8497
|
height: L,
|
|
8488
8498
|
x: i,
|
|
8489
8499
|
y: e
|
|
8490
8500
|
};
|
|
8491
8501
|
}
|
|
8492
|
-
function
|
|
8502
|
+
function B5(H, V) {
|
|
8493
8503
|
const C = Q(H), M = H1(H), A = C.visualViewport;
|
|
8494
|
-
let L = M.clientWidth, i = M.clientHeight, e = 0,
|
|
8504
|
+
let L = M.clientWidth, i = M.clientHeight, e = 0, d = 0;
|
|
8495
8505
|
if (A) {
|
|
8496
8506
|
L = A.width, i = A.height;
|
|
8497
|
-
const
|
|
8498
|
-
(!
|
|
8507
|
+
const t = W1();
|
|
8508
|
+
(!t || t && V === "fixed") && (e = A.offsetLeft, d = A.offsetTop);
|
|
8499
8509
|
}
|
|
8500
8510
|
return {
|
|
8501
8511
|
width: L,
|
|
8502
8512
|
height: i,
|
|
8503
8513
|
x: e,
|
|
8504
|
-
y:
|
|
8514
|
+
y: d
|
|
8505
8515
|
};
|
|
8506
8516
|
}
|
|
8507
|
-
function
|
|
8508
|
-
const C =
|
|
8517
|
+
function b5(H, V) {
|
|
8518
|
+
const C = a1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = q(H) ? A1(H) : J(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, t = M * L.y;
|
|
8509
8519
|
return {
|
|
8510
8520
|
width: i,
|
|
8511
8521
|
height: e,
|
|
8512
|
-
x:
|
|
8513
|
-
y:
|
|
8522
|
+
x: d,
|
|
8523
|
+
y: t
|
|
8514
8524
|
};
|
|
8515
8525
|
}
|
|
8516
8526
|
function K1(H, V, C) {
|
|
8517
8527
|
let M;
|
|
8518
8528
|
if (V === "viewport")
|
|
8519
|
-
M =
|
|
8529
|
+
M = B5(H, C);
|
|
8520
8530
|
else if (V === "document")
|
|
8521
|
-
M =
|
|
8531
|
+
M = k5(H1(H));
|
|
8522
8532
|
else if (Y(V))
|
|
8523
|
-
M =
|
|
8533
|
+
M = b5(V, C);
|
|
8524
8534
|
else {
|
|
8525
8535
|
const A = d2(H);
|
|
8526
8536
|
M = {
|
|
@@ -8529,62 +8539,62 @@ function K1(H, V, C) {
|
|
|
8529
8539
|
y: V.y - A.y
|
|
8530
8540
|
};
|
|
8531
8541
|
}
|
|
8532
|
-
return
|
|
8542
|
+
return g1(M);
|
|
8533
8543
|
}
|
|
8534
8544
|
function m2(H, V) {
|
|
8535
|
-
const C =
|
|
8536
|
-
return C === V || !Y(C) ||
|
|
8545
|
+
const C = d1(H);
|
|
8546
|
+
return C === V || !Y(C) || b1(C) ? !1 : U(C).position === "fixed" || m2(C, V);
|
|
8537
8547
|
}
|
|
8538
|
-
function
|
|
8548
|
+
function w5(H, V) {
|
|
8539
8549
|
const C = V.get(H);
|
|
8540
8550
|
if (C)
|
|
8541
8551
|
return C;
|
|
8542
8552
|
let M = F1(H, [], !1).filter((e) => Y(e) && C1(e) !== "body"), A = null;
|
|
8543
8553
|
const L = U(H).position === "fixed";
|
|
8544
|
-
let i = L ?
|
|
8545
|
-
for (; Y(i) && !
|
|
8546
|
-
const e = U(i),
|
|
8547
|
-
!
|
|
8554
|
+
let i = L ? d1(H) : H;
|
|
8555
|
+
for (; Y(i) && !b1(i); ) {
|
|
8556
|
+
const e = U(i), d = E1(i);
|
|
8557
|
+
!d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((l) => l !== i) : A = e, i = d1(i);
|
|
8548
8558
|
}
|
|
8549
8559
|
return V.set(H, M), M;
|
|
8550
8560
|
}
|
|
8551
|
-
function
|
|
8561
|
+
function y5(H) {
|
|
8552
8562
|
let {
|
|
8553
8563
|
element: V,
|
|
8554
8564
|
boundary: C,
|
|
8555
8565
|
rootBoundary: M,
|
|
8556
8566
|
strategy: A
|
|
8557
8567
|
} = H;
|
|
8558
|
-
const i = [...C === "clippingAncestors" ?
|
|
8568
|
+
const i = [...C === "clippingAncestors" ? w5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, l) => {
|
|
8559
8569
|
const o = K1(V, l, A);
|
|
8560
|
-
return
|
|
8570
|
+
return t.top = M1(o.top, t.top), t.right = r1(o.right, t.right), t.bottom = r1(o.bottom, t.bottom), t.left = M1(o.left, t.left), t;
|
|
8561
8571
|
}, K1(V, e, A));
|
|
8562
8572
|
return {
|
|
8563
|
-
width:
|
|
8564
|
-
height:
|
|
8565
|
-
x:
|
|
8566
|
-
y:
|
|
8573
|
+
width: d.right - d.left,
|
|
8574
|
+
height: d.bottom - d.top,
|
|
8575
|
+
x: d.left,
|
|
8576
|
+
y: d.top
|
|
8567
8577
|
};
|
|
8568
8578
|
}
|
|
8569
|
-
function
|
|
8579
|
+
function P5(H) {
|
|
8570
8580
|
return i2(H);
|
|
8571
8581
|
}
|
|
8572
|
-
function
|
|
8573
|
-
const M = q(V), A = H1(V), L = C === "fixed", i =
|
|
8582
|
+
function v5(H, V, C) {
|
|
8583
|
+
const M = q(V), A = H1(V), L = C === "fixed", i = a1(H, !0, L, V);
|
|
8574
8584
|
let e = {
|
|
8575
8585
|
scrollLeft: 0,
|
|
8576
8586
|
scrollTop: 0
|
|
8577
8587
|
};
|
|
8578
|
-
const
|
|
8588
|
+
const d = J(0);
|
|
8579
8589
|
if (M || !M && !L)
|
|
8580
|
-
if ((C1(V) !== "body" || S1(A)) && (e =
|
|
8581
|
-
const
|
|
8582
|
-
|
|
8590
|
+
if ((C1(V) !== "body" || S1(A)) && (e = w1(V)), M) {
|
|
8591
|
+
const t = a1(V, !0, L, V);
|
|
8592
|
+
d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
|
|
8583
8593
|
} else
|
|
8584
|
-
A && (
|
|
8594
|
+
A && (d.x = t2(A));
|
|
8585
8595
|
return {
|
|
8586
|
-
x: i.left + e.scrollLeft -
|
|
8587
|
-
y: i.top + e.scrollTop -
|
|
8596
|
+
x: i.left + e.scrollLeft - d.x,
|
|
8597
|
+
y: i.top + e.scrollTop - d.y,
|
|
8588
8598
|
width: i.width,
|
|
8589
8599
|
height: i.height
|
|
8590
8600
|
};
|
|
@@ -8597,11 +8607,11 @@ function l2(H, V) {
|
|
|
8597
8607
|
if (!q(H))
|
|
8598
8608
|
return C;
|
|
8599
8609
|
let M = q1(H, V);
|
|
8600
|
-
for (; M &&
|
|
8610
|
+
for (; M && c5(M) && U(M).position === "static"; )
|
|
8601
8611
|
M = q1(M, V);
|
|
8602
|
-
return M && (C1(M) === "html" || C1(M) === "body" && U(M).position === "static" && !E1(M)) ? C : M ||
|
|
8612
|
+
return M && (C1(M) === "html" || C1(M) === "body" && U(M).position === "static" && !E1(M)) ? C : M || O5(H) || C;
|
|
8603
8613
|
}
|
|
8604
|
-
const
|
|
8614
|
+
const T5 = async function(H) {
|
|
8605
8615
|
let {
|
|
8606
8616
|
reference: V,
|
|
8607
8617
|
floating: C,
|
|
@@ -8609,7 +8619,7 @@ const F5 = async function(H) {
|
|
|
8609
8619
|
} = H;
|
|
8610
8620
|
const A = this.getOffsetParent || l2, L = this.getDimensions;
|
|
8611
8621
|
return {
|
|
8612
|
-
reference:
|
|
8622
|
+
reference: v5(V, await A(C), M),
|
|
8613
8623
|
floating: {
|
|
8614
8624
|
x: 0,
|
|
8615
8625
|
y: 0,
|
|
@@ -8617,57 +8627,58 @@ const F5 = async function(H) {
|
|
|
8617
8627
|
}
|
|
8618
8628
|
};
|
|
8619
8629
|
};
|
|
8620
|
-
function
|
|
8630
|
+
function F5(H) {
|
|
8621
8631
|
return U(H).direction === "rtl";
|
|
8622
8632
|
}
|
|
8623
|
-
const
|
|
8624
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
8633
|
+
const R5 = {
|
|
8634
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: h5,
|
|
8625
8635
|
getDocumentElement: H1,
|
|
8626
|
-
getClippingRect:
|
|
8636
|
+
getClippingRect: y5,
|
|
8627
8637
|
getOffsetParent: l2,
|
|
8628
|
-
getElementRects:
|
|
8629
|
-
getClientRects:
|
|
8630
|
-
getDimensions:
|
|
8631
|
-
getScale:
|
|
8638
|
+
getElementRects: T5,
|
|
8639
|
+
getClientRects: g5,
|
|
8640
|
+
getDimensions: P5,
|
|
8641
|
+
getScale: A1,
|
|
8632
8642
|
isElement: Y,
|
|
8633
|
-
isRTL:
|
|
8634
|
-
},
|
|
8643
|
+
isRTL: F5
|
|
8644
|
+
}, x5 = (H, V, C) => {
|
|
8635
8645
|
const M = /* @__PURE__ */ new Map(), A = {
|
|
8636
|
-
platform:
|
|
8646
|
+
platform: R5,
|
|
8637
8647
|
...C
|
|
8638
8648
|
}, L = {
|
|
8639
8649
|
...A.platform,
|
|
8640
8650
|
_c: M
|
|
8641
8651
|
};
|
|
8642
|
-
return
|
|
8652
|
+
return n5(H, V, {
|
|
8643
8653
|
...A,
|
|
8644
8654
|
platform: L
|
|
8645
8655
|
});
|
|
8646
8656
|
};
|
|
8647
8657
|
var o2 = /* @__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))(o2 || {}), X = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(X || {}), n2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(n2 || {});
|
|
8648
|
-
async function
|
|
8649
|
-
!H || !V ||
|
|
8658
|
+
async function D5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e) {
|
|
8659
|
+
!H || !V || x5(H, V, {
|
|
8650
8660
|
placement: M,
|
|
8651
8661
|
middleware: [
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8662
|
+
S5(A),
|
|
8663
|
+
s5({ padding: L }),
|
|
8664
|
+
r5({ element: C }),
|
|
8665
|
+
a5(),
|
|
8666
|
+
Z5()
|
|
8657
8667
|
]
|
|
8658
|
-
}).then(({ x:
|
|
8659
|
-
var
|
|
8668
|
+
}).then(({ x: d, y: t, placement: l, middlewareData: o }) => {
|
|
8669
|
+
var B, k, w;
|
|
8660
8670
|
if (!V)
|
|
8661
8671
|
return;
|
|
8662
|
-
|
|
8672
|
+
o.flip && V.setAttribute("data-placement", l);
|
|
8673
|
+
const r = (B = H.offsetParent) == null ? void 0 : B.getBoundingClientRect().left, a = (k = H.offsetParent) == null ? void 0 : k.getBoundingClientRect().bottom, u = (w = H.offsetParent) == null ? void 0 : w.getBoundingClientRect().width;
|
|
8663
8674
|
if (Object.assign(V.style, {
|
|
8664
|
-
maxWidth: e === "dropdown" ? `${
|
|
8665
|
-
left: e === "dropdown" ? `${
|
|
8666
|
-
top: `${
|
|
8675
|
+
maxWidth: e === "dropdown" ? `${u}px` : "auto",
|
|
8676
|
+
left: e === "dropdown" ? `${r}px` : `${d}px`,
|
|
8677
|
+
top: e === "dropdown" ? `${a}px` : `${t}px`,
|
|
8667
8678
|
animation: `r-tooltip-show ${i}ms ease-in-out forwards`,
|
|
8668
8679
|
transformOrigin: "start"
|
|
8669
8680
|
}), C && o.arrow) {
|
|
8670
|
-
const { x:
|
|
8681
|
+
const { x: P, y: v } = o.arrow, T = {
|
|
8671
8682
|
top: "bottom",
|
|
8672
8683
|
right: "left",
|
|
8673
8684
|
bottom: "top",
|
|
@@ -8675,16 +8686,16 @@ async function _5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
|
|
|
8675
8686
|
/* Right */
|
|
8676
8687
|
}[l.split("-")[0]];
|
|
8677
8688
|
Object.assign(C.style, {
|
|
8678
|
-
left:
|
|
8679
|
-
top:
|
|
8689
|
+
left: d != null ? `${P}px` : "",
|
|
8690
|
+
top: t != null ? `${v}px` : "",
|
|
8680
8691
|
right: "",
|
|
8681
8692
|
bottom: "",
|
|
8682
|
-
[`${
|
|
8693
|
+
[`${T}`]: "-4px"
|
|
8683
8694
|
});
|
|
8684
8695
|
}
|
|
8685
8696
|
});
|
|
8686
8697
|
}
|
|
8687
|
-
const
|
|
8698
|
+
const _5 = ["aria-disabled"], E5 = ["innerHTML"], W5 = /* @__PURE__ */ F({
|
|
8688
8699
|
__name: "RTooltip",
|
|
8689
8700
|
props: {
|
|
8690
8701
|
placement: { default: o2.Top },
|
|
@@ -8708,33 +8719,33 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8708
8719
|
},
|
|
8709
8720
|
emits: ["show", "hide"],
|
|
8710
8721
|
setup(H, { emit: V }) {
|
|
8711
|
-
const C = H, M = V, A =
|
|
8722
|
+
const C = H, M = V, A = W(), L = W(), i = W();
|
|
8712
8723
|
async function e() {
|
|
8713
|
-
C.disabled || !L.value || (
|
|
8724
|
+
C.disabled || !L.value || (u(), L.value.style.display = "block", M("show"), t());
|
|
8714
8725
|
}
|
|
8715
|
-
function
|
|
8726
|
+
function d() {
|
|
8716
8727
|
C.disabled || !L.value || (L.value.style.display = "", M("hide"));
|
|
8717
8728
|
}
|
|
8718
|
-
function
|
|
8729
|
+
function t() {
|
|
8719
8730
|
C.autoHide && setTimeout(() => {
|
|
8720
|
-
|
|
8731
|
+
d();
|
|
8721
8732
|
}, C.hideDelay);
|
|
8722
8733
|
}
|
|
8723
8734
|
function l() {
|
|
8724
|
-
C.disabled || C.triggers.includes(X.Click) && (L.value.style.display === "block" ?
|
|
8735
|
+
C.disabled || C.triggers.includes(X.Click) && (L.value.style.display === "block" ? d() : e());
|
|
8725
8736
|
}
|
|
8726
8737
|
function o() {
|
|
8727
8738
|
C.disabled || C.triggers.includes(X.Hover) && e();
|
|
8728
8739
|
}
|
|
8729
|
-
function a() {
|
|
8730
|
-
C.disabled || (L.value.style.display === "" && C.triggers.includes(X.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(X.Hover) && t());
|
|
8731
|
-
}
|
|
8732
8740
|
function r() {
|
|
8733
|
-
C.triggers.includes(X.Hover) &&
|
|
8741
|
+
C.disabled || (L.value.style.display === "" && C.triggers.includes(X.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(X.Hover) && d());
|
|
8742
|
+
}
|
|
8743
|
+
function a() {
|
|
8744
|
+
C.triggers.includes(X.Hover) && u();
|
|
8734
8745
|
}
|
|
8735
|
-
function
|
|
8736
|
-
const { placement: k, offset:
|
|
8737
|
-
v ||
|
|
8746
|
+
function u() {
|
|
8747
|
+
const { placement: k, offset: w, padding: P, disabled: v, showDelay: T, type: R } = C;
|
|
8748
|
+
v || D5(A, L, i, k, w, P, T, R);
|
|
8738
8749
|
}
|
|
8739
8750
|
const B = g(() => ({
|
|
8740
8751
|
"r-tooltip": !0,
|
|
@@ -8742,109 +8753,103 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8742
8753
|
"r-tooltip--light": C.light
|
|
8743
8754
|
}));
|
|
8744
8755
|
return window.onresize = () => {
|
|
8745
|
-
C.resizable &&
|
|
8756
|
+
C.resizable && u();
|
|
8746
8757
|
}, document.addEventListener("scroll", () => {
|
|
8747
|
-
|
|
8748
|
-
}),
|
|
8758
|
+
u();
|
|
8759
|
+
}), S2(
|
|
8749
8760
|
() => {
|
|
8750
|
-
C.disabled || (C.shown && C.triggers.includes(X.Manual) ? e() : !C.shown && C.triggers.includes(X.Manual) &&
|
|
8761
|
+
C.disabled || (C.shown && C.triggers.includes(X.Manual) ? e() : !C.shown && C.triggers.includes(X.Manual) && d());
|
|
8751
8762
|
},
|
|
8752
8763
|
{ flush: "post" }
|
|
8753
8764
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8754
8765
|
), X1(() => {
|
|
8755
|
-
C.resizable && A.value.parentElement.parentElement.addEventListener("scroll",
|
|
8766
|
+
C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", u()), M5(
|
|
8756
8767
|
A,
|
|
8757
8768
|
() => {
|
|
8758
|
-
C.outsideClick &&
|
|
8769
|
+
C.outsideClick && d();
|
|
8759
8770
|
},
|
|
8760
8771
|
{
|
|
8761
8772
|
ignore: [L.value]
|
|
8762
8773
|
}
|
|
8763
8774
|
);
|
|
8764
|
-
}), (k,
|
|
8765
|
-
|
|
8775
|
+
}), (k, w) => (m(), Z(i1, null, [
|
|
8776
|
+
S("div", {
|
|
8766
8777
|
ref_key: "trigger",
|
|
8767
8778
|
ref: A,
|
|
8768
8779
|
"aria-disabled": C.disabled,
|
|
8769
|
-
class:
|
|
8780
|
+
class: c(["r-tooltip-trigger", k.triggerClass]),
|
|
8770
8781
|
onClick: l,
|
|
8771
8782
|
onMouseenter: o,
|
|
8772
|
-
onMouseleave:
|
|
8773
|
-
onMousemove:
|
|
8783
|
+
onMouseleave: r,
|
|
8784
|
+
onMousemove: a
|
|
8774
8785
|
}, [
|
|
8775
8786
|
f(k.$slots, "default", {
|
|
8776
8787
|
activators: {
|
|
8777
8788
|
click: l,
|
|
8778
8789
|
mouseenter: o,
|
|
8779
|
-
mouseleave:
|
|
8780
|
-
mousemove:
|
|
8790
|
+
mouseleave: r,
|
|
8791
|
+
mousemove: a
|
|
8781
8792
|
},
|
|
8782
|
-
updatePosition:
|
|
8793
|
+
updatePosition: u
|
|
8783
8794
|
}, () => [
|
|
8784
|
-
|
|
8795
|
+
S("div", {
|
|
8785
8796
|
innerHTML: C.triggerContent
|
|
8786
|
-
}, null, 8,
|
|
8797
|
+
}, null, 8, E5)
|
|
8787
8798
|
])
|
|
8788
|
-
], 42,
|
|
8799
|
+
], 42, _5),
|
|
8789
8800
|
(m(), _(s2, { to: "body" }, [
|
|
8790
|
-
|
|
8801
|
+
S("div", {
|
|
8791
8802
|
id: "tooltip",
|
|
8792
8803
|
ref_key: "tooltip",
|
|
8793
8804
|
ref: L,
|
|
8794
|
-
class:
|
|
8805
|
+
class: c([B.value, k.tooltipClass]),
|
|
8795
8806
|
role: "tooltip"
|
|
8796
8807
|
}, [
|
|
8797
8808
|
f(k.$slots, "content", {
|
|
8798
|
-
hide:
|
|
8799
|
-
updatePosition:
|
|
8809
|
+
hide: d,
|
|
8810
|
+
updatePosition: u
|
|
8800
8811
|
}, () => [
|
|
8801
|
-
C.text ? (m(),
|
|
8812
|
+
C.text ? (m(), Z("div", {
|
|
8802
8813
|
key: 0,
|
|
8803
|
-
class:
|
|
8814
|
+
class: c(["r-tooltip__content", {
|
|
8804
8815
|
"r-tooltip__content--dark": C.dark,
|
|
8805
8816
|
"r-tooltip__content--light": C.light
|
|
8806
8817
|
}])
|
|
8807
|
-
},
|
|
8808
|
-
C.text ? (m(),
|
|
8818
|
+
}, y(C.text), 3)) : p("", !0),
|
|
8819
|
+
C.text ? (m(), Z("div", {
|
|
8809
8820
|
key: 1,
|
|
8810
8821
|
id: "arrow",
|
|
8811
8822
|
ref_key: "arrowElement",
|
|
8812
8823
|
ref: i,
|
|
8813
|
-
class:
|
|
8824
|
+
class: c(["r-tooltip__arrow", {
|
|
8814
8825
|
"r-tooltip__arrow--dark": C.dark,
|
|
8815
8826
|
"r-tooltip__arrow--light": C.light
|
|
8816
8827
|
}])
|
|
8817
|
-
}, null, 2)) :
|
|
8828
|
+
}, null, 2)) : p("", !0)
|
|
8818
8829
|
])
|
|
8819
8830
|
], 2)
|
|
8820
8831
|
]))
|
|
8821
8832
|
], 64));
|
|
8822
8833
|
}
|
|
8823
|
-
}),
|
|
8824
|
-
key: 1,
|
|
8825
|
-
class: "r-dropdown__tags"
|
|
8826
|
-
}, G5 = {
|
|
8827
|
-
key: 2,
|
|
8828
|
-
class: "r-dropdown__multiple"
|
|
8829
|
-
}, $5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], U5 = ["data-has-value", "onClick"], z5 = ["aria-disabled", "onClick"], K5 = { class: "flex items-center" }, q5 = {
|
|
8834
|
+
}), N5 = ["onClick"], I5 = { class: "r-dropdown__selections" }, Q5 = { key: 0 }, G5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], $5 = ["data-has-value", "onClick"], U5 = ["aria-disabled", "onClick"], z5 = { class: "flex items-center" }, K5 = {
|
|
8830
8835
|
key: 0,
|
|
8831
8836
|
class: "r-dropdown-options__no-option"
|
|
8832
|
-
},
|
|
8837
|
+
}, q5 = {
|
|
8833
8838
|
key: 0,
|
|
8834
8839
|
class: "r-dropdown-details"
|
|
8835
|
-
},
|
|
8840
|
+
}, j5 = {
|
|
8836
8841
|
key: 0,
|
|
8837
8842
|
class: "r-dropdown-error"
|
|
8838
|
-
},
|
|
8843
|
+
}, X5 = {
|
|
8839
8844
|
key: 1,
|
|
8840
8845
|
class: "r-dropdown-hint"
|
|
8841
|
-
},
|
|
8846
|
+
}, Y5 = /* @__PURE__ */ F({
|
|
8842
8847
|
__name: "RDropdown",
|
|
8843
8848
|
props: {
|
|
8844
8849
|
options: { default: () => [] },
|
|
8845
|
-
modelValue: { default:
|
|
8850
|
+
modelValue: { default: {} },
|
|
8846
8851
|
placeholder: { default: "" },
|
|
8847
|
-
|
|
8852
|
+
chips: { type: Boolean, default: !1 },
|
|
8848
8853
|
multiple: { type: Boolean, default: !1 },
|
|
8849
8854
|
disabled: { type: Boolean, default: !1 },
|
|
8850
8855
|
loading: { type: Boolean, default: !1 },
|
|
@@ -8852,7 +8857,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8852
8857
|
appendIcon: { default: "mdiChevronDown" },
|
|
8853
8858
|
searchable: { type: Boolean, default: !1 },
|
|
8854
8859
|
clearable: { type: Boolean, default: !1 },
|
|
8855
|
-
id: { default: "
|
|
8860
|
+
id: { default: "r-dropdown" },
|
|
8856
8861
|
closeOnSelect: { type: Boolean, default: !0 },
|
|
8857
8862
|
dropdownClass: { default: "" },
|
|
8858
8863
|
optionsClass: { default: "" },
|
|
@@ -8861,105 +8866,109 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8861
8866
|
hideDetails: { type: Boolean, default: !1 },
|
|
8862
8867
|
autocomplete: { default: "off" },
|
|
8863
8868
|
noOptionsText: { default: "No options" },
|
|
8864
|
-
hideOptionCheckIcon: { type: Boolean, default: !1 }
|
|
8869
|
+
hideOptionCheckIcon: { type: Boolean, default: !1 },
|
|
8870
|
+
hideChipClear: { type: Boolean, default: !1 }
|
|
8865
8871
|
},
|
|
8866
8872
|
emits: ["update:modelValue"],
|
|
8867
8873
|
setup(H, { emit: V }) {
|
|
8868
|
-
const C = H, M = V, A =
|
|
8869
|
-
function
|
|
8870
|
-
|
|
8874
|
+
const C = H, M = V, A = W({}), L = W([]), i = W(!1), e = W("");
|
|
8875
|
+
function d(n) {
|
|
8876
|
+
if (!n || typeof n == "object" || typeof n == "function" || typeof n == "symbol" || typeof n > "u" || Array.isArray(n))
|
|
8877
|
+
return !0;
|
|
8878
|
+
const [h] = Object == null ? void 0 : Object.keys(n);
|
|
8871
8879
|
return ["label", "value"].includes(h);
|
|
8872
8880
|
}
|
|
8873
|
-
const
|
|
8874
|
-
const
|
|
8875
|
-
return
|
|
8881
|
+
const t = g(() => {
|
|
8882
|
+
const n = C.options;
|
|
8883
|
+
return d(n[0]) ? n : n.map((h) => ({
|
|
8876
8884
|
value: h,
|
|
8877
8885
|
label: String(h)
|
|
8878
8886
|
}));
|
|
8879
8887
|
}), l = g(() => {
|
|
8880
|
-
const
|
|
8881
|
-
return
|
|
8882
|
-
value:
|
|
8883
|
-
label: String(
|
|
8888
|
+
const n = C.modelValue;
|
|
8889
|
+
return d(n) ? n : {
|
|
8890
|
+
value: n,
|
|
8891
|
+
label: String(n)
|
|
8884
8892
|
};
|
|
8885
|
-
}), o =
|
|
8886
|
-
function
|
|
8887
|
-
var b,
|
|
8888
|
-
if (
|
|
8893
|
+
}), o = W(), r = W(), a = W();
|
|
8894
|
+
function u(n, h) {
|
|
8895
|
+
var b, D, s;
|
|
8896
|
+
if (n.stopPropagation(), !C.disabled) {
|
|
8889
8897
|
if (i.value = !0, h && h(), i.value) {
|
|
8890
|
-
(b = o.value) == null || b.classList.add("r-dropdown--active"), (
|
|
8898
|
+
(b = o.value) == null || b.classList.add("r-dropdown--active"), (D = o.value) == null || D.focus(), (s = r.value) == null || s.focus();
|
|
8891
8899
|
return;
|
|
8892
8900
|
}
|
|
8893
8901
|
B();
|
|
8894
8902
|
}
|
|
8895
8903
|
}
|
|
8896
8904
|
function B() {
|
|
8897
|
-
var
|
|
8898
|
-
i.value = !1, (
|
|
8905
|
+
var n, h, b;
|
|
8906
|
+
i.value = !1, (n = o.value) == null || n.classList.remove("r-dropdown--active"), (h = o.value) == null || h.blur(), (b = r.value) == null || b.blur();
|
|
8899
8907
|
}
|
|
8900
|
-
function k(
|
|
8908
|
+
function k(n, h, b, D) {
|
|
8901
8909
|
var s;
|
|
8902
|
-
if (
|
|
8903
|
-
if (C.multiple
|
|
8904
|
-
L.find((E) => E.value === h.value) ? L.splice(L.indexOf(h), 1) : L.push(h), e.value = "", C.searchable && ((s =
|
|
8910
|
+
if (n.stopPropagation(), D(), !h.disabled) {
|
|
8911
|
+
if (C.multiple) {
|
|
8912
|
+
L.value.find((E) => E.value === h.value) ? L.value.splice(L.value.indexOf(h), 1) : L.value.push(h), e.value = "", C.searchable && ((s = r.value) == null || s.focus());
|
|
8905
8913
|
return;
|
|
8906
8914
|
}
|
|
8907
|
-
|
|
8915
|
+
w(n, h), C.closeOnSelect && (b(), B());
|
|
8908
8916
|
}
|
|
8909
8917
|
}
|
|
8910
|
-
function
|
|
8918
|
+
function w(n, h) {
|
|
8911
8919
|
if (A.value.value === h.value) {
|
|
8912
8920
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8913
8921
|
return;
|
|
8914
8922
|
}
|
|
8915
|
-
e.value = h.label, A.value = h,
|
|
8923
|
+
e.value = h.label, A.value = h, u(n), M("update:modelValue", h);
|
|
8916
8924
|
}
|
|
8917
|
-
function P(
|
|
8918
|
-
if (
|
|
8925
|
+
function P(n, h, b) {
|
|
8926
|
+
if (n instanceof KeyboardEvent && n.key !== "Backspace" || e.value !== "")
|
|
8919
8927
|
return;
|
|
8920
|
-
|
|
8921
|
-
const
|
|
8922
|
-
L.splice(
|
|
8928
|
+
n.stopPropagation(), b();
|
|
8929
|
+
const D = L.value.findIndex((s) => s.value === h.value);
|
|
8930
|
+
L.value.splice(D, 1);
|
|
8923
8931
|
}
|
|
8924
|
-
function v(
|
|
8932
|
+
function v(n, h) {
|
|
8925
8933
|
var s;
|
|
8926
|
-
if (!C.
|
|
8934
|
+
if (!C.multiple)
|
|
8927
8935
|
return;
|
|
8928
|
-
|
|
8936
|
+
n.stopPropagation(), h();
|
|
8929
8937
|
const b = e.value;
|
|
8930
8938
|
if (b === "")
|
|
8931
8939
|
return;
|
|
8932
|
-
|
|
8940
|
+
t.value.find((E) => E.label === b) || (L.value.push({ value: b, label: b }), e.value = "", (s = r.value) == null || s.focus());
|
|
8933
8941
|
}
|
|
8934
|
-
function
|
|
8935
|
-
|
|
8942
|
+
function T(n) {
|
|
8943
|
+
var h;
|
|
8944
|
+
return !n || (n == null ? void 0 : n.value) === void 0 || (n == null ? void 0 : n.value) === null ? !1 : C.multiple ? L.value.find((b) => (b == null ? void 0 : b.value) === (n == null ? void 0 : n.value)) : ((h = A.value) == null ? void 0 : h.value) === (n == null ? void 0 : n.value);
|
|
8936
8945
|
}
|
|
8937
|
-
const
|
|
8946
|
+
const R = g(() => !C.searchable || A.value.label === e.value ? t.value : t.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), z = g(() => !C.searchable);
|
|
8938
8947
|
function I() {
|
|
8939
|
-
l.value ? C.multiple ? L.
|
|
8948
|
+
l.value ? C.multiple ? L.value = l.value : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
|
|
8940
8949
|
}
|
|
8941
|
-
function O(
|
|
8942
|
-
C.searchable &&
|
|
8950
|
+
function O(n) {
|
|
8951
|
+
C.searchable && n(), !C.multiple && e.value === "" && (A.value = {}, M("update:modelValue", ""));
|
|
8943
8952
|
}
|
|
8944
|
-
function
|
|
8945
|
-
if (
|
|
8946
|
-
L.splice(0, L.length);
|
|
8953
|
+
function N(n, h) {
|
|
8954
|
+
if (n.stopPropagation(), h(), C.multiple) {
|
|
8955
|
+
L.value.splice(0, L.value.length);
|
|
8947
8956
|
return;
|
|
8948
8957
|
}
|
|
8949
8958
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8950
8959
|
}
|
|
8951
8960
|
return X1(() => {
|
|
8952
8961
|
I();
|
|
8953
|
-
}),
|
|
8954
|
-
M("update:modelValue",
|
|
8955
|
-
}),
|
|
8962
|
+
}), G(L, (n) => {
|
|
8963
|
+
M("update:modelValue", n);
|
|
8964
|
+
}), G(() => l.value, (n) => {
|
|
8956
8965
|
I();
|
|
8957
|
-
}), (
|
|
8966
|
+
}), (n, h) => (m(), Z("div", {
|
|
8958
8967
|
ref_key: "wrapper",
|
|
8959
|
-
ref:
|
|
8968
|
+
ref: a,
|
|
8960
8969
|
class: "r-dropdown-wrapper"
|
|
8961
8970
|
}, [
|
|
8962
|
-
K(
|
|
8971
|
+
K(W5, {
|
|
8963
8972
|
"auto-hide": !1,
|
|
8964
8973
|
offset: 0,
|
|
8965
8974
|
"outside-click": "",
|
|
@@ -8971,164 +8980,162 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8971
8980
|
type: "dropdown",
|
|
8972
8981
|
onHide: B
|
|
8973
8982
|
}, {
|
|
8974
|
-
default:
|
|
8975
|
-
|
|
8983
|
+
default: n1(({ activators: b, updatePosition: D }) => [
|
|
8984
|
+
S("div", {
|
|
8976
8985
|
ref_key: "dropdown",
|
|
8977
8986
|
ref: o,
|
|
8978
|
-
class:
|
|
8987
|
+
class: c(["r-dropdown", {
|
|
8979
8988
|
"r-dropdown--disabled": C.disabled,
|
|
8980
8989
|
"r-dropdown--loading": C.loading,
|
|
8981
8990
|
[C.dropdownClass]: C.dropdownClass,
|
|
8982
|
-
"r-dropdown--error": C.errorMsg
|
|
8991
|
+
"r-dropdown--error": C.errorMsg,
|
|
8992
|
+
group: e.value !== "" || L.value.length
|
|
8983
8993
|
}]),
|
|
8984
8994
|
role: "select",
|
|
8985
|
-
onClick: (s) =>
|
|
8995
|
+
onClick: (s) => u(s, b.click)
|
|
8986
8996
|
}, [
|
|
8987
|
-
C.prependIcon ||
|
|
8997
|
+
C.prependIcon || n.$slots.prepend ? (m(), Z("div", {
|
|
8988
8998
|
key: 0,
|
|
8989
|
-
class:
|
|
8999
|
+
class: c(["r-dropdown__prepend-icon", {
|
|
8990
9000
|
"r-dropdown__prepend-icon--active": i.value,
|
|
8991
9001
|
"r-dropdown__prepend-icon--error": C.errorMsg
|
|
8992
9002
|
}])
|
|
8993
9003
|
}, [
|
|
8994
|
-
f(
|
|
8995
|
-
C.prependIcon ? (m(), _(
|
|
9004
|
+
f(n.$slots, "prepend", {}, () => [
|
|
9005
|
+
C.prependIcon ? (m(), _(x, {
|
|
8996
9006
|
key: 0,
|
|
8997
9007
|
name: C.prependIcon
|
|
8998
|
-
}, null, 8, ["name"])) :
|
|
9008
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
8999
9009
|
])
|
|
9000
|
-
], 2)) :
|
|
9001
|
-
|
|
9002
|
-
f(
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9010
|
+
], 2)) : p("", !0),
|
|
9011
|
+
S("div", I5, [
|
|
9012
|
+
(m(!0), Z(i1, null, o1(L.value, (s, E) => f(n.$slots, "selection", {
|
|
9013
|
+
key: E,
|
|
9014
|
+
index: E,
|
|
9015
|
+
option: s,
|
|
9016
|
+
removeOption: P
|
|
9006
9017
|
}, () => [
|
|
9007
|
-
|
|
9008
|
-
key:
|
|
9009
|
-
|
|
9010
|
-
class: "r-dropdown__tags__chip",
|
|
9011
|
-
closable: "",
|
|
9018
|
+
C.chips ? (m(), _(Y2, {
|
|
9019
|
+
key: 1,
|
|
9020
|
+
clearable: !C.hideChipClear,
|
|
9012
9021
|
label: s.label,
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9022
|
+
"no-wrap": "",
|
|
9023
|
+
variant: "info",
|
|
9024
|
+
"onClick:close": ($) => P($, s, D)
|
|
9025
|
+
}, null, 8, ["clearable", "label", "onClick:close"])) : (m(), Z("p", Q5, y(`${s.label}, `), 1))
|
|
9026
|
+
])), 128)),
|
|
9027
|
+
Y1(S("input", {
|
|
9028
|
+
id: C.id,
|
|
9029
|
+
ref_key: "input",
|
|
9030
|
+
ref: r,
|
|
9031
|
+
"onUpdate:modelValue": h[0] || (h[0] = (s) => e.value = s),
|
|
9032
|
+
autocomplete: C.autocomplete,
|
|
9033
|
+
class: c(["r-dropdown__input", {
|
|
9034
|
+
"r-dropdown__input--loading": C.loading
|
|
9035
|
+
}]),
|
|
9036
|
+
disabled: C.disabled,
|
|
9037
|
+
placeholder: C.placeholder,
|
|
9038
|
+
readonly: z.value,
|
|
9039
|
+
role: "presentation",
|
|
9040
|
+
type: "text",
|
|
9041
|
+
onInput: e1((s) => O(D), ["prevent"]),
|
|
9042
|
+
onKeydown: [
|
|
9043
|
+
N1((s) => P(s, L.value[L.value.length - 1], D), ["backspace"]),
|
|
9044
|
+
N1((s) => v(s, D), ["enter"])
|
|
9045
|
+
]
|
|
9046
|
+
}, null, 42, G5), [
|
|
9047
|
+
[c2, e.value]
|
|
9016
9048
|
])
|
|
9017
|
-
])) : c("", !0),
|
|
9018
|
-
C.multiple && L.length ? (m(), n("div", G5, [
|
|
9019
|
-
(m(!0), n(V1, null, A1(L, (s, E) => (m(), n("p", { key: E }, w(`${s.label},`), 1))), 128))
|
|
9020
|
-
])) : c("", !0),
|
|
9021
|
-
Y1(u("input", {
|
|
9022
|
-
id: C.id,
|
|
9023
|
-
ref_key: "input",
|
|
9024
|
-
ref: a,
|
|
9025
|
-
"onUpdate:modelValue": h[0] || (h[0] = (s) => e.value = s),
|
|
9026
|
-
autocomplete: C.autocomplete,
|
|
9027
|
-
class: p(["r-dropdown__input", {
|
|
9028
|
-
"r-dropdown__input--loading": C.loading
|
|
9029
|
-
}]),
|
|
9030
|
-
disabled: C.disabled,
|
|
9031
|
-
placeholder: C.placeholder,
|
|
9032
|
-
readonly: z.value,
|
|
9033
|
-
role: "presentation",
|
|
9034
|
-
type: "text",
|
|
9035
|
-
onInput: d1((s) => O(x), ["prevent"]),
|
|
9036
|
-
onKeydown: [
|
|
9037
|
-
N1((s) => P(s, L[L.length - 1], x), ["backspace"]),
|
|
9038
|
-
N1((s) => v(s, x), ["enter"])
|
|
9039
|
-
]
|
|
9040
|
-
}, null, 42, $5), [
|
|
9041
|
-
[c2, e.value]
|
|
9042
9049
|
]),
|
|
9043
|
-
C.clearable ? (m(),
|
|
9044
|
-
key:
|
|
9050
|
+
C.clearable ? (m(), Z("div", {
|
|
9051
|
+
key: 1,
|
|
9045
9052
|
class: "r-dropdown__clearable",
|
|
9046
|
-
"data-has-value": (e.value !== "" || L.length) && i.value,
|
|
9047
|
-
onClick: (s) =>
|
|
9053
|
+
"data-has-value": (e.value !== "" || L.value.length) && i.value,
|
|
9054
|
+
onClick: (s) => N(s, D)
|
|
9048
9055
|
}, [
|
|
9049
|
-
K(
|
|
9056
|
+
K(x, {
|
|
9050
9057
|
name: "mdiCloseCircle",
|
|
9051
9058
|
size: "18"
|
|
9052
9059
|
})
|
|
9053
|
-
], 8,
|
|
9054
|
-
C.appendIcon ||
|
|
9055
|
-
key:
|
|
9056
|
-
class:
|
|
9060
|
+
], 8, $5)) : p("", !0),
|
|
9061
|
+
C.appendIcon || n.$slots.append ? (m(), Z("div", {
|
|
9062
|
+
key: 2,
|
|
9063
|
+
class: c(["r-dropdown__append-icon", {
|
|
9057
9064
|
"r-dropdown__append-icon--active": i.value,
|
|
9058
9065
|
"r-dropdown__append-icon--error": C.errorMsg
|
|
9059
9066
|
}])
|
|
9060
9067
|
}, [
|
|
9061
|
-
f(
|
|
9062
|
-
C.appendIcon ? (m(), _(
|
|
9068
|
+
f(n.$slots, "append", {}, () => [
|
|
9069
|
+
C.appendIcon ? (m(), _(x, {
|
|
9063
9070
|
key: 0,
|
|
9064
9071
|
name: C.appendIcon
|
|
9065
|
-
}, null, 8, ["name"])) :
|
|
9072
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9066
9073
|
])
|
|
9067
|
-
], 2)) :
|
|
9068
|
-
], 10,
|
|
9074
|
+
], 2)) : p("", !0)
|
|
9075
|
+
], 10, N5)
|
|
9069
9076
|
]),
|
|
9070
|
-
content:
|
|
9071
|
-
|
|
9072
|
-
class:
|
|
9077
|
+
content: n1(({ hide: b, updatePosition: D }) => [
|
|
9078
|
+
S("ul", {
|
|
9079
|
+
class: c(["r-dropdown-options", {
|
|
9073
9080
|
"r-dropdown-options--active": i.value,
|
|
9074
9081
|
[C.optionsClass]: C.optionsClass
|
|
9075
9082
|
}])
|
|
9076
9083
|
}, [
|
|
9077
|
-
(m(!0),
|
|
9084
|
+
(m(!0), Z(i1, null, o1(R.value, (s) => (m(), Z("li", {
|
|
9078
9085
|
key: s.value,
|
|
9079
9086
|
"aria-disabled": s.disabled,
|
|
9080
|
-
class:
|
|
9081
|
-
"r-dropdown-options__option--active":
|
|
9087
|
+
class: c(["r-dropdown-options__option", {
|
|
9088
|
+
"r-dropdown-options__option--active": T(s),
|
|
9082
9089
|
"r-dropdown-options__option--disabled": s.disabled
|
|
9083
9090
|
}]),
|
|
9084
|
-
onClick:
|
|
9091
|
+
onClick: e1((E) => k(E, s, b, D), ["prevent"])
|
|
9085
9092
|
}, [
|
|
9086
|
-
f(
|
|
9087
|
-
isSelected:
|
|
9093
|
+
f(n.$slots, "option", {
|
|
9094
|
+
isSelected: T(s)
|
|
9088
9095
|
}, () => [
|
|
9089
|
-
|
|
9090
|
-
f(
|
|
9091
|
-
s.prependIcon ? (m(), _(
|
|
9096
|
+
S("div", z5, [
|
|
9097
|
+
f(n.$slots, "option-prepend", {}, () => [
|
|
9098
|
+
s.prependIcon ? (m(), _(x, {
|
|
9092
9099
|
key: 0,
|
|
9093
|
-
class:
|
|
9094
|
-
"r-dropdown-options__option__prepend-icon--active":
|
|
9100
|
+
class: c(["r-dropdown-options__option__prepend-icon", {
|
|
9101
|
+
"r-dropdown-options__option__prepend-icon--active": T(s)
|
|
9095
9102
|
}]),
|
|
9096
9103
|
name: s.prependIcon
|
|
9097
|
-
}, null, 8, ["class", "name"])) :
|
|
9104
|
+
}, null, 8, ["class", "name"])) : p("", !0)
|
|
9098
9105
|
]),
|
|
9099
|
-
|
|
9100
|
-
class:
|
|
9101
|
-
"r-dropdown-options__option__label--active":
|
|
9106
|
+
S("p", {
|
|
9107
|
+
class: c(["r-dropdown-options__option__label", {
|
|
9108
|
+
"r-dropdown-options__option__label--active": T(s)
|
|
9102
9109
|
}])
|
|
9103
|
-
},
|
|
9110
|
+
}, y(s.label), 3)
|
|
9104
9111
|
]),
|
|
9105
|
-
f(
|
|
9106
|
-
|
|
9112
|
+
f(n.$slots, "option-append", {}, () => [
|
|
9113
|
+
T(s) && !C.hideOptionCheckIcon ? (m(), _(x, {
|
|
9107
9114
|
key: 0,
|
|
9108
|
-
class:
|
|
9109
|
-
"r-dropdown-options__option__append-icon--active":
|
|
9115
|
+
class: c(["r-dropdown-options__option__append-icon", {
|
|
9116
|
+
"r-dropdown-options__option__append-icon--active": T(s)
|
|
9110
9117
|
}]),
|
|
9111
9118
|
name: "mdiCheck"
|
|
9112
|
-
}, null, 8, ["class"])) :
|
|
9119
|
+
}, null, 8, ["class"])) : p("", !0)
|
|
9113
9120
|
])
|
|
9114
9121
|
])
|
|
9115
|
-
], 10,
|
|
9116
|
-
|
|
9117
|
-
f(
|
|
9118
|
-
R1(
|
|
9122
|
+
], 10, U5))), 128)),
|
|
9123
|
+
R.value.length === 0 ? (m(), Z("li", K5, [
|
|
9124
|
+
f(n.$slots, "not-options", {}, () => [
|
|
9125
|
+
R1(y(C.multiple ? "No options hit to enter for create" : C.noOptionsText), 1)
|
|
9119
9126
|
])
|
|
9120
|
-
])) :
|
|
9127
|
+
])) : p("", !0)
|
|
9121
9128
|
], 2)
|
|
9122
9129
|
]),
|
|
9123
9130
|
_: 3
|
|
9124
9131
|
}),
|
|
9125
|
-
|
|
9126
|
-
C.errorMsg ? (m(),
|
|
9127
|
-
C.hint ? (m(),
|
|
9132
|
+
n.$props.hideDetails ? p("", !0) : (m(), Z("div", q5, [
|
|
9133
|
+
C.errorMsg ? (m(), Z("div", j5, y(C.errorMsg), 1)) : p("", !0),
|
|
9134
|
+
C.hint ? (m(), Z("div", X5, y(C.hint), 1)) : p("", !0)
|
|
9128
9135
|
]))
|
|
9129
9136
|
], 512));
|
|
9130
9137
|
}
|
|
9131
|
-
}),
|
|
9138
|
+
}), J5 = ["id", "for"], r2 = /* @__PURE__ */ F({
|
|
9132
9139
|
__name: "RLabel",
|
|
9133
9140
|
props: {
|
|
9134
9141
|
id: { default: "" },
|
|
@@ -9137,26 +9144,26 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9137
9144
|
},
|
|
9138
9145
|
setup(H) {
|
|
9139
9146
|
const V = H;
|
|
9140
|
-
return (C, M) => (m(),
|
|
9147
|
+
return (C, M) => (m(), Z("label", {
|
|
9141
9148
|
id: V.id,
|
|
9142
9149
|
class: "r-label",
|
|
9143
9150
|
for: V.for
|
|
9144
9151
|
}, [
|
|
9145
9152
|
f(C.$slots, "default", {}, () => [
|
|
9146
|
-
R1(
|
|
9153
|
+
R1(y(V.text), 1)
|
|
9147
9154
|
])
|
|
9148
|
-
], 8,
|
|
9155
|
+
], 8, J5));
|
|
9149
9156
|
}
|
|
9150
|
-
}),
|
|
9157
|
+
}), C3 = ["onClick"], H3 = ["open"], V3 = { class: "r-dialog__header" }, L3 = {
|
|
9151
9158
|
key: 0,
|
|
9152
9159
|
class: "icon"
|
|
9153
|
-
},
|
|
9160
|
+
}, M3 = {
|
|
9154
9161
|
key: 1,
|
|
9155
9162
|
class: "title"
|
|
9156
|
-
},
|
|
9163
|
+
}, A3 = {
|
|
9157
9164
|
key: 2,
|
|
9158
9165
|
class: "description"
|
|
9159
|
-
},
|
|
9166
|
+
}, i3 = { class: "r-dialog__body" }, e3 = { class: "r-dialog__actions" }, m0 = /* @__PURE__ */ F({
|
|
9160
9167
|
__name: "RModal",
|
|
9161
9168
|
props: {
|
|
9162
9169
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9185,48 +9192,43 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9185
9192
|
function i(e) {
|
|
9186
9193
|
C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
|
|
9187
9194
|
}
|
|
9188
|
-
return
|
|
9189
|
-
() => {
|
|
9190
|
-
C.modelValue && !C.allowBodyScroll ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
|
|
9191
|
-
},
|
|
9192
|
-
{ flush: "post" }
|
|
9193
|
-
), O2(() => {
|
|
9195
|
+
return O2(() => {
|
|
9194
9196
|
!C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
|
|
9195
9197
|
}), window.addEventListener("keydown", (e) => {
|
|
9196
9198
|
e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
|
|
9197
|
-
}), (e,
|
|
9198
|
-
class:
|
|
9199
|
-
onClick:
|
|
9199
|
+
}), (e, d) => Y1((m(), Z("div", {
|
|
9200
|
+
class: c(["r-modal-overlay", e.overlayClass]),
|
|
9201
|
+
onClick: e1(i, ["stop"])
|
|
9200
9202
|
}, [
|
|
9201
|
-
|
|
9203
|
+
S("div", {
|
|
9202
9204
|
"aria-modal": "true",
|
|
9203
|
-
class:
|
|
9205
|
+
class: c(A.value),
|
|
9204
9206
|
open: C.modelValue,
|
|
9205
9207
|
role: "dialog",
|
|
9206
9208
|
style: x1(L.value)
|
|
9207
9209
|
}, [
|
|
9208
|
-
|
|
9210
|
+
S("div", V3, [
|
|
9209
9211
|
f(e.$slots, "header"),
|
|
9210
|
-
C.icon ? (m(),
|
|
9211
|
-
K(
|
|
9212
|
+
C.icon ? (m(), Z("div", L3, [
|
|
9213
|
+
K(x, {
|
|
9212
9214
|
name: C.icon
|
|
9213
9215
|
}, null, 8, ["name"])
|
|
9214
|
-
])) :
|
|
9215
|
-
C.title ? (m(),
|
|
9216
|
-
C.description ? (m(),
|
|
9216
|
+
])) : p("", !0),
|
|
9217
|
+
C.title ? (m(), Z("div", M3, y(C.title), 1)) : p("", !0),
|
|
9218
|
+
C.description ? (m(), Z("div", A3, y(C.description), 1)) : p("", !0)
|
|
9217
9219
|
]),
|
|
9218
|
-
|
|
9220
|
+
S("div", i3, [
|
|
9219
9221
|
f(e.$slots, "default")
|
|
9220
9222
|
]),
|
|
9221
|
-
|
|
9223
|
+
S("div", e3, [
|
|
9222
9224
|
f(e.$slots, "actions")
|
|
9223
9225
|
])
|
|
9224
|
-
], 14,
|
|
9225
|
-
], 10,
|
|
9226
|
+
], 14, H3)
|
|
9227
|
+
], 10, C3)), [
|
|
9226
9228
|
[p2, e.modelValue]
|
|
9227
9229
|
]);
|
|
9228
9230
|
}
|
|
9229
|
-
}),
|
|
9231
|
+
}), d3 = ["data-open"], t3 = ["data-open"], m3 = ["data-open"], l0 = /* @__PURE__ */ F({
|
|
9230
9232
|
__name: "RSidebar",
|
|
9231
9233
|
props: {
|
|
9232
9234
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9238,32 +9240,32 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9238
9240
|
emits: ["update:modelValue"],
|
|
9239
9241
|
setup(H, { emit: V }) {
|
|
9240
9242
|
const C = H, M = V;
|
|
9241
|
-
return (A, L) => (m(),
|
|
9242
|
-
class:
|
|
9243
|
+
return (A, L) => (m(), Z("div", {
|
|
9244
|
+
class: c(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
|
|
9243
9245
|
"data-open": C.modelValue
|
|
9244
9246
|
}, [
|
|
9245
|
-
|
|
9246
|
-
class:
|
|
9247
|
+
S("aside", {
|
|
9248
|
+
class: c(["r-sidebar", [C.class]]),
|
|
9247
9249
|
"data-open": C.modelValue
|
|
9248
9250
|
}, [
|
|
9249
9251
|
f(A.$slots, "default")
|
|
9250
|
-
], 10,
|
|
9251
|
-
C.showTrigger ? (m(),
|
|
9252
|
+
], 10, t3),
|
|
9253
|
+
C.showTrigger ? (m(), Z("div", {
|
|
9252
9254
|
key: 0,
|
|
9253
|
-
class:
|
|
9255
|
+
class: c(["r-sidebar__trigger", [C.triggerClass]]),
|
|
9254
9256
|
"data-open": C.modelValue,
|
|
9255
9257
|
onClick: L[0] || (L[0] = (i) => M("update:modelValue", !C.modelValue))
|
|
9256
9258
|
}, [
|
|
9257
9259
|
f(A.$slots, "trigger", {}, () => [
|
|
9258
9260
|
R1(" > ")
|
|
9259
9261
|
])
|
|
9260
|
-
], 10,
|
|
9261
|
-
], 10,
|
|
9262
|
+
], 10, m3)) : p("", !0)
|
|
9263
|
+
], 10, d3));
|
|
9262
9264
|
}
|
|
9263
|
-
}),
|
|
9265
|
+
}), l3 = { class: "r-snackbar__text" }, o3 = {
|
|
9264
9266
|
key: 0,
|
|
9265
9267
|
class: "r-snackbar__close"
|
|
9266
|
-
},
|
|
9268
|
+
}, o0 = /* @__PURE__ */ F({
|
|
9267
9269
|
__name: "RSnackbar",
|
|
9268
9270
|
props: {
|
|
9269
9271
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9277,7 +9279,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9277
9279
|
emits: ["action", "update:modelValue"],
|
|
9278
9280
|
setup(H, { emit: V }) {
|
|
9279
9281
|
const C = H, M = V;
|
|
9280
|
-
|
|
9282
|
+
G(
|
|
9281
9283
|
() => C.modelValue,
|
|
9282
9284
|
() => {
|
|
9283
9285
|
C.timeout > 0 && C.modelValue && setTimeout(() => {
|
|
@@ -9301,39 +9303,39 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9301
9303
|
warning: "mdiAlert",
|
|
9302
9304
|
info: "mdiInformation"
|
|
9303
9305
|
})[C.variant || "info"]);
|
|
9304
|
-
return (i, e) => (m(),
|
|
9305
|
-
class:
|
|
9306
|
+
return (i, e) => (m(), Z("div", {
|
|
9307
|
+
class: c(A.value)
|
|
9306
9308
|
}, [
|
|
9307
9309
|
f(i.$slots, "default", {}, () => [
|
|
9308
|
-
C.variant ? (m(), _(
|
|
9310
|
+
C.variant ? (m(), _(x, {
|
|
9309
9311
|
key: 0,
|
|
9310
9312
|
class: "r-snackbar__icon",
|
|
9311
9313
|
name: L.value
|
|
9312
|
-
}, null, 8, ["name"])) :
|
|
9314
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9313
9315
|
]),
|
|
9314
|
-
|
|
9316
|
+
S("div", l3, y(C.text), 1),
|
|
9315
9317
|
f(i.$slots, "action"),
|
|
9316
|
-
C.closable ? (m(),
|
|
9318
|
+
C.closable ? (m(), Z("div", o3, [
|
|
9317
9319
|
f(i.$slots, "close", {}, () => [
|
|
9318
|
-
K(
|
|
9320
|
+
K(x, {
|
|
9319
9321
|
name: "mdiClose",
|
|
9320
9322
|
size: 16,
|
|
9321
|
-
onClick: e[0] || (e[0] =
|
|
9323
|
+
onClick: e[0] || (e[0] = e1((d) => i.$emit("update:modelValue", !1), ["stop"]))
|
|
9322
9324
|
})
|
|
9323
9325
|
])
|
|
9324
|
-
])) :
|
|
9326
|
+
])) : p("", !0)
|
|
9325
9327
|
], 2));
|
|
9326
9328
|
}
|
|
9327
|
-
}),
|
|
9329
|
+
}), n3 = ["id", "checked", "disabled"], r3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), a3 = ["id", "for"], Z3 = {
|
|
9328
9330
|
key: 0,
|
|
9329
9331
|
class: "r-switch-texts__details"
|
|
9330
|
-
},
|
|
9332
|
+
}, u3 = {
|
|
9331
9333
|
key: 0,
|
|
9332
9334
|
class: "r-switch-texts__error"
|
|
9333
|
-
},
|
|
9335
|
+
}, S3 = {
|
|
9334
9336
|
key: 1,
|
|
9335
9337
|
class: "r-switch-texts__hint"
|
|
9336
|
-
},
|
|
9338
|
+
}, n0 = /* @__PURE__ */ F({
|
|
9337
9339
|
__name: "RSwitch",
|
|
9338
9340
|
props: {
|
|
9339
9341
|
id: { default: "switch" },
|
|
@@ -9348,7 +9350,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9348
9350
|
},
|
|
9349
9351
|
emits: ["update:modelValue"],
|
|
9350
9352
|
setup(H, { emit: V }) {
|
|
9351
|
-
const C = H, M = V, A =
|
|
9353
|
+
const C = H, M = V, A = Z1({
|
|
9352
9354
|
checked: !1
|
|
9353
9355
|
}), L = g(() => ({
|
|
9354
9356
|
"r-switch": !0,
|
|
@@ -9359,7 +9361,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9359
9361
|
function i(e) {
|
|
9360
9362
|
C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
|
|
9361
9363
|
}
|
|
9362
|
-
return
|
|
9364
|
+
return G(
|
|
9363
9365
|
() => C.modelValue,
|
|
9364
9366
|
(e) => {
|
|
9365
9367
|
A.checked = e;
|
|
@@ -9369,51 +9371,51 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9369
9371
|
// TODO: find a better way to do this
|
|
9370
9372
|
immediate: !0
|
|
9371
9373
|
}
|
|
9372
|
-
), (e,
|
|
9373
|
-
class:
|
|
9374
|
+
), (e, d) => (m(), Z("div", {
|
|
9375
|
+
class: c(["r-switch-container", {
|
|
9374
9376
|
"r-switch-container--reverse": C.reverse,
|
|
9375
9377
|
"r-switch-container--hide-details": C.hideDetails
|
|
9376
9378
|
}])
|
|
9377
9379
|
}, [
|
|
9378
|
-
|
|
9379
|
-
class:
|
|
9380
|
+
S("div", {
|
|
9381
|
+
class: c(L.value)
|
|
9380
9382
|
}, [
|
|
9381
|
-
|
|
9383
|
+
S("input", {
|
|
9382
9384
|
id: C.id,
|
|
9383
9385
|
checked: A.checked,
|
|
9384
9386
|
class: "r-switch__input",
|
|
9385
9387
|
disabled: C.disabled,
|
|
9386
9388
|
type: "checkbox",
|
|
9387
9389
|
onChange: i
|
|
9388
|
-
}, null, 40,
|
|
9389
|
-
|
|
9390
|
+
}, null, 40, n3),
|
|
9391
|
+
r3
|
|
9390
9392
|
], 2),
|
|
9391
|
-
|
|
9392
|
-
class:
|
|
9393
|
+
S("div", {
|
|
9394
|
+
class: c(["r-switch-texts", {
|
|
9393
9395
|
[`r-switch-texts--${C.size}`]: !0
|
|
9394
9396
|
}])
|
|
9395
9397
|
}, [
|
|
9396
|
-
|
|
9398
|
+
S("label", {
|
|
9397
9399
|
id: `${C.id}-label`,
|
|
9398
9400
|
class: "r-switch-texts__label",
|
|
9399
9401
|
for: C.id
|
|
9400
|
-
},
|
|
9401
|
-
C.hideDetails ?
|
|
9402
|
-
C.errorMsg ? (m(),
|
|
9402
|
+
}, y(C.label), 9, a3),
|
|
9403
|
+
C.hideDetails ? p("", !0) : (m(), Z("div", Z3, [
|
|
9404
|
+
C.errorMsg ? (m(), Z("p", u3, y(C.errorMsg), 1)) : (m(), Z("p", S3, y(C.hint), 1))
|
|
9403
9405
|
]))
|
|
9404
9406
|
], 2)
|
|
9405
9407
|
], 2));
|
|
9406
9408
|
}
|
|
9407
9409
|
});
|
|
9408
|
-
var
|
|
9409
|
-
const
|
|
9410
|
+
var l1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(l1 || {});
|
|
9411
|
+
const s3 = ["aria-disabled", "aria-selected", "disabled"], c3 = {
|
|
9410
9412
|
key: 0,
|
|
9411
9413
|
class: "r-tab-item__label"
|
|
9412
|
-
},
|
|
9414
|
+
}, O3 = /* @__PURE__ */ F({
|
|
9413
9415
|
__name: "RTabItem",
|
|
9414
9416
|
props: {
|
|
9415
9417
|
id: {},
|
|
9416
|
-
variant: { default:
|
|
9418
|
+
variant: { default: l1.DEFAULT },
|
|
9417
9419
|
label: { default: "" },
|
|
9418
9420
|
prependIcon: { default: "" },
|
|
9419
9421
|
appendIcon: { default: "" },
|
|
@@ -9433,49 +9435,49 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9433
9435
|
})), L = g(() => ({
|
|
9434
9436
|
color: C.color
|
|
9435
9437
|
}));
|
|
9436
|
-
function i(
|
|
9437
|
-
M("update:modelValue",
|
|
9438
|
+
function i(d) {
|
|
9439
|
+
M("update:modelValue", d);
|
|
9438
9440
|
}
|
|
9439
9441
|
function e() {
|
|
9440
9442
|
M("click:icon");
|
|
9441
9443
|
}
|
|
9442
|
-
return (
|
|
9444
|
+
return (d, t) => (m(), Z("button", {
|
|
9443
9445
|
"aria-disabled": C.disabled,
|
|
9444
9446
|
"aria-selected": C.modelValue === C.id,
|
|
9445
|
-
class:
|
|
9447
|
+
class: c(A.value),
|
|
9446
9448
|
disabled: C.disabled,
|
|
9447
9449
|
style: x1(L.value),
|
|
9448
|
-
onClick:
|
|
9450
|
+
onClick: t[0] || (t[0] = e1((l) => i(C.id), ["stop"]))
|
|
9449
9451
|
}, [
|
|
9450
|
-
f(
|
|
9451
|
-
C.variant !==
|
|
9452
|
+
f(d.$slots, "prepend", {}, () => [
|
|
9453
|
+
C.variant !== V1(l1).TEXT && C.prependIcon ? (m(), _(x, {
|
|
9452
9454
|
key: 0,
|
|
9453
9455
|
class: "r-tab-item__prepend-icon",
|
|
9454
9456
|
name: C.prependIcon,
|
|
9455
9457
|
size: 16
|
|
9456
|
-
}, null, 8, ["name"])) :
|
|
9458
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9457
9459
|
]),
|
|
9458
9460
|
K(f2, {
|
|
9459
9461
|
duration: 150,
|
|
9460
9462
|
name: "fade"
|
|
9461
9463
|
}, {
|
|
9462
|
-
default:
|
|
9463
|
-
C.variant !==
|
|
9464
|
+
default: n1(() => [
|
|
9465
|
+
C.variant !== V1(l1).ICON ? (m(), Z("span", c3, y(C.label), 1)) : p("", !0)
|
|
9464
9466
|
]),
|
|
9465
9467
|
_: 1
|
|
9466
9468
|
}),
|
|
9467
|
-
f(
|
|
9468
|
-
C.variant !==
|
|
9469
|
+
f(d.$slots, "append", {}, () => [
|
|
9470
|
+
C.variant !== V1(l1).TEXT && C.appendIcon ? (m(), _(x, {
|
|
9469
9471
|
key: 0,
|
|
9470
9472
|
class: "r-tab-item__append-icon",
|
|
9471
9473
|
name: C.appendIcon,
|
|
9472
9474
|
size: 16,
|
|
9473
|
-
onClick:
|
|
9474
|
-
}, null, 8, ["name", "onClick"])) :
|
|
9475
|
+
onClick: e1(e, ["stop"])
|
|
9476
|
+
}, null, 8, ["name", "onClick"])) : p("", !0)
|
|
9475
9477
|
])
|
|
9476
|
-
], 14,
|
|
9478
|
+
], 14, s3));
|
|
9477
9479
|
}
|
|
9478
|
-
}),
|
|
9480
|
+
}), r0 = /* @__PURE__ */ F({
|
|
9479
9481
|
__name: "RTabs",
|
|
9480
9482
|
props: {
|
|
9481
9483
|
tabs: { default: () => [] },
|
|
@@ -9486,13 +9488,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9486
9488
|
},
|
|
9487
9489
|
emits: ["update:modelValue", "click:icon"],
|
|
9488
9490
|
setup(H, { emit: V }) {
|
|
9489
|
-
const C = H, M = V, A =
|
|
9491
|
+
const C = H, M = V, A = W(C.modelValue || C.tabs[0].id), L = g(() => ({
|
|
9490
9492
|
"r-tabs": !0,
|
|
9491
9493
|
"r-tabs--block": C.block,
|
|
9492
9494
|
"r-tabs--tile": C.tile,
|
|
9493
9495
|
"r-tabs--scrollable": C.scrollable
|
|
9494
9496
|
}));
|
|
9495
|
-
|
|
9497
|
+
G(
|
|
9496
9498
|
() => A.value,
|
|
9497
9499
|
() => {
|
|
9498
9500
|
M("update:modelValue", A.value);
|
|
@@ -9501,38 +9503,38 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9501
9503
|
function i() {
|
|
9502
9504
|
M("click:icon");
|
|
9503
9505
|
}
|
|
9504
|
-
return (e,
|
|
9505
|
-
class:
|
|
9506
|
+
return (e, d) => (m(), Z("div", {
|
|
9507
|
+
class: c(L.value)
|
|
9506
9508
|
}, [
|
|
9507
9509
|
f(e.$slots, "default", {}, () => [
|
|
9508
|
-
(m(!0),
|
|
9509
|
-
id:
|
|
9510
|
+
(m(!0), Z(i1, null, o1(C.tabs, (t, l) => (m(), _(O3, {
|
|
9511
|
+
id: t.id,
|
|
9510
9512
|
key: l,
|
|
9511
9513
|
modelValue: A.value,
|
|
9512
|
-
"onUpdate:modelValue":
|
|
9514
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => A.value = o),
|
|
9513
9515
|
active: l === A.value,
|
|
9514
|
-
"append-icon":
|
|
9516
|
+
"append-icon": t.appendIcon,
|
|
9515
9517
|
block: e.block,
|
|
9516
|
-
disabled:
|
|
9517
|
-
label:
|
|
9518
|
-
"prepend-icon":
|
|
9518
|
+
disabled: t.disabled,
|
|
9519
|
+
label: t.label,
|
|
9520
|
+
"prepend-icon": t.prependIcon,
|
|
9519
9521
|
tile: e.tile,
|
|
9520
|
-
variant:
|
|
9522
|
+
variant: t.variant,
|
|
9521
9523
|
"onClick:icon": i
|
|
9522
9524
|
}, null, 8, ["id", "modelValue", "active", "append-icon", "block", "disabled", "label", "prepend-icon", "tile", "variant"]))), 128))
|
|
9523
9525
|
])
|
|
9524
9526
|
], 2));
|
|
9525
9527
|
}
|
|
9526
|
-
}),
|
|
9528
|
+
}), p3 = { class: "r-textarea-wrapper" }, f3 = ["id", "disabled", "placeholder", "value"], h3 = {
|
|
9527
9529
|
key: 1,
|
|
9528
9530
|
class: "r-textarea__details"
|
|
9529
|
-
},
|
|
9531
|
+
}, g3 = {
|
|
9530
9532
|
key: 0,
|
|
9531
9533
|
class: "r-textarea__error"
|
|
9532
|
-
},
|
|
9534
|
+
}, k3 = {
|
|
9533
9535
|
key: 1,
|
|
9534
9536
|
class: "r-textarea__hint"
|
|
9535
|
-
},
|
|
9537
|
+
}, a0 = /* @__PURE__ */ F({
|
|
9536
9538
|
__name: "RTextArea",
|
|
9537
9539
|
props: {
|
|
9538
9540
|
id: { default: "" },
|
|
@@ -9546,13 +9548,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9546
9548
|
},
|
|
9547
9549
|
emits: ["update:modelValue"],
|
|
9548
9550
|
setup(H, { emit: V }) {
|
|
9549
|
-
const C = H, M = V, A =
|
|
9551
|
+
const C = H, M = V, A = Z1({
|
|
9550
9552
|
value: ""
|
|
9551
9553
|
});
|
|
9552
9554
|
function L(i) {
|
|
9553
9555
|
M("update:modelValue", i.target.value);
|
|
9554
9556
|
}
|
|
9555
|
-
return
|
|
9557
|
+
return G(
|
|
9556
9558
|
() => C.modelValue,
|
|
9557
9559
|
(i) => {
|
|
9558
9560
|
A.value = i;
|
|
@@ -9560,40 +9562,40 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9560
9562
|
{
|
|
9561
9563
|
immediate: !0
|
|
9562
9564
|
}
|
|
9563
|
-
), (i, e) => (m(),
|
|
9565
|
+
), (i, e) => (m(), Z("div", p3, [
|
|
9564
9566
|
C.label ? (m(), _(r2, {
|
|
9565
9567
|
key: 0,
|
|
9566
9568
|
id: `${C.id}-label`,
|
|
9567
9569
|
class: "r-textarea__label",
|
|
9568
9570
|
for: "textarea",
|
|
9569
9571
|
text: C.label
|
|
9570
|
-
}, null, 8, ["id", "text"])) :
|
|
9571
|
-
|
|
9572
|
+
}, null, 8, ["id", "text"])) : p("", !0),
|
|
9573
|
+
S("textarea", j1(i.$attrs, {
|
|
9572
9574
|
id: C.id,
|
|
9573
|
-
class:
|
|
9575
|
+
class: ["r-textarea", {
|
|
9574
9576
|
"r-textarea--error": C.errorMsg,
|
|
9575
9577
|
"r-textarea--disabled": C.disabled
|
|
9576
|
-
}]
|
|
9578
|
+
}],
|
|
9577
9579
|
disabled: C.disabled,
|
|
9578
9580
|
placeholder: C.placeholder,
|
|
9579
9581
|
value: A.value,
|
|
9580
9582
|
onInput: L
|
|
9581
|
-
}, null,
|
|
9582
|
-
C.hideDetails ?
|
|
9583
|
-
C.errorMsg ? (m(),
|
|
9583
|
+
}), null, 16, f3),
|
|
9584
|
+
C.hideDetails ? p("", !0) : (m(), Z("div", h3, [
|
|
9585
|
+
C.errorMsg ? (m(), Z("p", g3, y(C.errorMsg), 1)) : (m(), Z("p", k3, y(C.hint), 1))
|
|
9584
9586
|
]))
|
|
9585
9587
|
]));
|
|
9586
9588
|
}
|
|
9587
|
-
}),
|
|
9589
|
+
}), B3 = { class: "r-textfield__wrapper" }, b3 = { class: "input-wrapper" }, w3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], y3 = {
|
|
9588
9590
|
key: 0,
|
|
9589
9591
|
class: "r-textfield__details"
|
|
9590
|
-
},
|
|
9592
|
+
}, P3 = {
|
|
9591
9593
|
key: 0,
|
|
9592
9594
|
class: "r-textfield__error"
|
|
9593
|
-
},
|
|
9595
|
+
}, v3 = {
|
|
9594
9596
|
key: 1,
|
|
9595
9597
|
class: "r-textfield__hint"
|
|
9596
|
-
},
|
|
9598
|
+
}, Z0 = /* @__PURE__ */ F({
|
|
9597
9599
|
__name: "RTextfield",
|
|
9598
9600
|
props: {
|
|
9599
9601
|
id: { default: "" },
|
|
@@ -9623,56 +9625,56 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9623
9625
|
"click:clear"
|
|
9624
9626
|
],
|
|
9625
9627
|
setup(H, { emit: V }) {
|
|
9626
|
-
const C = H, M = V, A =
|
|
9628
|
+
const C = H, M = V, A = W(), L = Z1({
|
|
9627
9629
|
value: ""
|
|
9628
|
-
}), i =
|
|
9630
|
+
}), i = W(C.type), e = {
|
|
9629
9631
|
password: "mdiLock",
|
|
9630
9632
|
email: "mdiEmailOutline",
|
|
9631
9633
|
tel: "mdiPhone",
|
|
9632
9634
|
url: "mdiLink",
|
|
9633
9635
|
number: "mdiNumeric",
|
|
9634
9636
|
text: ""
|
|
9635
|
-
},
|
|
9637
|
+
}, d = W(!1), t = g(() => !!L.value), l = g(() => L.value.length > 0), o = g(() => {
|
|
9636
9638
|
var O;
|
|
9637
9639
|
return (O = C.errorMsg) == null ? void 0 : O.length;
|
|
9638
|
-
}),
|
|
9639
|
-
const { disabled: O, loading:
|
|
9640
|
+
}), r = g(() => C.clearable && l.value), a = g(() => {
|
|
9641
|
+
const { disabled: O, loading: N } = C;
|
|
9640
9642
|
return {
|
|
9641
9643
|
"r-textfield": !0,
|
|
9642
9644
|
"r-textfield--error": o.value,
|
|
9643
|
-
"r-textfield--loading":
|
|
9645
|
+
"r-textfield--loading": N,
|
|
9644
9646
|
"r-textfield--disabled": O,
|
|
9645
|
-
"r-textfield--clearable":
|
|
9646
|
-
"r-textfield--focus":
|
|
9647
|
-
"r-textfield--filled":
|
|
9647
|
+
"r-textfield--clearable": r.value,
|
|
9648
|
+
"r-textfield--focus": d.value,
|
|
9649
|
+
"r-textfield--filled": t.value
|
|
9648
9650
|
};
|
|
9649
|
-
}),
|
|
9651
|
+
}), u = g(() => ({
|
|
9650
9652
|
"r-textfield__prepend-icon": !0,
|
|
9651
9653
|
"r-textfield__prepend-icon--loading": C.loading,
|
|
9652
|
-
"r-textfield__prepend-icon--error": o.value &&
|
|
9654
|
+
"r-textfield__prepend-icon--error": o.value && t.value
|
|
9653
9655
|
})), B = g(() => ({
|
|
9654
9656
|
"r-textfield__append-icon": !0,
|
|
9655
|
-
"r-textfield__append-icon--clear":
|
|
9657
|
+
"r-textfield__append-icon--clear": r.value,
|
|
9656
9658
|
"r-textfield__append-icon--error": o.value
|
|
9657
9659
|
})), k = g(() => {
|
|
9658
|
-
const { prependIcon: O, type:
|
|
9659
|
-
return O === "none" ? "" : O || e[
|
|
9660
|
-
}),
|
|
9661
|
-
const { appendIcon: O, type:
|
|
9662
|
-
return O === "none" ? "" : o.value ? "mdiAlertCircleOutline" :
|
|
9660
|
+
const { prependIcon: O, type: N } = C;
|
|
9661
|
+
return O === "none" ? "" : O || e[N];
|
|
9662
|
+
}), w = g(() => {
|
|
9663
|
+
const { appendIcon: O, type: N } = C;
|
|
9664
|
+
return O === "none" ? "" : o.value ? "mdiAlertCircleOutline" : r.value && ["text", "email"].includes(N) ? "mdiClose" : N === "password" && i.value === "password" ? "mdiEyeOutline" : N === "password" && i.value === "text" ? "mdiEyeOffOutline" : O;
|
|
9663
9665
|
});
|
|
9664
9666
|
function P(O) {
|
|
9665
|
-
|
|
9667
|
+
d.value = !0, M("focus", O);
|
|
9666
9668
|
}
|
|
9667
9669
|
function v(O) {
|
|
9668
|
-
|
|
9670
|
+
d.value = !1, M("blur", O);
|
|
9669
9671
|
}
|
|
9670
|
-
function
|
|
9672
|
+
function T(O) {
|
|
9671
9673
|
L.value = O.target.value, M("input", O);
|
|
9672
9674
|
}
|
|
9673
|
-
function
|
|
9675
|
+
function R() {
|
|
9674
9676
|
var O;
|
|
9675
|
-
if (
|
|
9677
|
+
if (r.value) {
|
|
9676
9678
|
L.value = "", (O = A.value) == null || O.focus(), M("click:clear", {
|
|
9677
9679
|
value: i.value === "number" ? +L.value : L.value
|
|
9678
9680
|
});
|
|
@@ -9689,7 +9691,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9689
9691
|
var O;
|
|
9690
9692
|
(O = A.value) == null || O.focus();
|
|
9691
9693
|
}
|
|
9692
|
-
return
|
|
9694
|
+
return G(
|
|
9693
9695
|
() => C.modelValue,
|
|
9694
9696
|
(O) => {
|
|
9695
9697
|
L.value = O;
|
|
@@ -9697,7 +9699,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9697
9699
|
{
|
|
9698
9700
|
immediate: !0
|
|
9699
9701
|
}
|
|
9700
|
-
),
|
|
9702
|
+
), G(
|
|
9701
9703
|
() => L.value,
|
|
9702
9704
|
(O) => {
|
|
9703
9705
|
M(
|
|
@@ -9705,7 +9707,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9705
9707
|
i.value === "number" ? +O : O
|
|
9706
9708
|
);
|
|
9707
9709
|
}
|
|
9708
|
-
), (O,
|
|
9710
|
+
), (O, N) => (m(), Z("div", B3, [
|
|
9709
9711
|
C.label ? (m(), _(r2, {
|
|
9710
9712
|
key: 0,
|
|
9711
9713
|
id: `${C.id}-label`,
|
|
@@ -9713,19 +9715,19 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9713
9715
|
for: C.id,
|
|
9714
9716
|
text: C.label,
|
|
9715
9717
|
onClick: I
|
|
9716
|
-
}, null, 8, ["id", "for", "text"])) :
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
class:
|
|
9718
|
+
}, null, 8, ["id", "for", "text"])) : p("", !0),
|
|
9719
|
+
S("div", b3, [
|
|
9720
|
+
S("div", {
|
|
9721
|
+
class: c(a.value)
|
|
9720
9722
|
}, [
|
|
9721
9723
|
f(O.$slots, "prepend"),
|
|
9722
|
-
k.value && !O.$slots.prepend ? (m(), _(
|
|
9724
|
+
k.value && !O.$slots.prepend ? (m(), _(x, {
|
|
9723
9725
|
key: 0,
|
|
9724
|
-
class:
|
|
9726
|
+
class: c(u.value),
|
|
9725
9727
|
name: k.value,
|
|
9726
9728
|
size: 20
|
|
9727
|
-
}, null, 8, ["class", "name"])) :
|
|
9728
|
-
|
|
9729
|
+
}, null, 8, ["class", "name"])) : p("", !0),
|
|
9730
|
+
S("input", {
|
|
9729
9731
|
id: C.id,
|
|
9730
9732
|
ref_key: "inputRef",
|
|
9731
9733
|
ref: A,
|
|
@@ -9739,28 +9741,28 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9739
9741
|
value: L.value,
|
|
9740
9742
|
onBlur: v,
|
|
9741
9743
|
onFocus: P,
|
|
9742
|
-
onInput:
|
|
9743
|
-
}, null, 40,
|
|
9744
|
-
o.value ?
|
|
9745
|
-
|
|
9744
|
+
onInput: T
|
|
9745
|
+
}, null, 40, w3),
|
|
9746
|
+
o.value ? p("", !0) : f(O.$slots, "append", { key: 1 }),
|
|
9747
|
+
w.value && !O.$slots.append || o.value ? (m(), _(x, {
|
|
9746
9748
|
key: 2,
|
|
9747
|
-
class:
|
|
9748
|
-
name: `${
|
|
9749
|
+
class: c(B.value),
|
|
9750
|
+
name: `${w.value}`,
|
|
9749
9751
|
size: 20,
|
|
9750
|
-
onClick:
|
|
9751
|
-
}, null, 8, ["class", "name"])) :
|
|
9752
|
+
onClick: R
|
|
9753
|
+
}, null, 8, ["class", "name"])) : p("", !0)
|
|
9752
9754
|
], 2),
|
|
9753
|
-
C.hideDetails ?
|
|
9754
|
-
C.errorMsg ? (m(),
|
|
9755
|
-
!C.errorMsg && C.hint ? (m(),
|
|
9755
|
+
C.hideDetails ? p("", !0) : (m(), Z("div", y3, [
|
|
9756
|
+
C.errorMsg ? (m(), Z("p", P3, y(C.errorMsg), 1)) : p("", !0),
|
|
9757
|
+
!C.errorMsg && C.hint ? (m(), Z("p", v3, y(C.hint), 1)) : p("", !0)
|
|
9756
9758
|
]))
|
|
9757
9759
|
])
|
|
9758
9760
|
]));
|
|
9759
9761
|
}
|
|
9760
|
-
}),
|
|
9762
|
+
}), T3 = { class: "r-breadcrumb" }, F3 = {
|
|
9761
9763
|
key: 0,
|
|
9762
9764
|
class: "r-breadcrumb__title"
|
|
9763
|
-
},
|
|
9765
|
+
}, u0 = /* @__PURE__ */ F({
|
|
9764
9766
|
__name: "RBreadcrumb",
|
|
9765
9767
|
props: {
|
|
9766
9768
|
items: { default: () => [] },
|
|
@@ -9770,8 +9772,8 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9770
9772
|
const V = H;
|
|
9771
9773
|
return (C, M) => {
|
|
9772
9774
|
const A = h2("router-link");
|
|
9773
|
-
return m(),
|
|
9774
|
-
(m(!0),
|
|
9775
|
+
return m(), Z("div", T3, [
|
|
9776
|
+
(m(!0), Z(i1, null, o1(V.items, (L, i) => (m(), Z("div", {
|
|
9775
9777
|
key: i,
|
|
9776
9778
|
class: "r-breadcrumb__item"
|
|
9777
9779
|
}, [
|
|
@@ -9779,59 +9781,59 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9779
9781
|
class: "r-breadcrumb__link",
|
|
9780
9782
|
to: L.to
|
|
9781
9783
|
}, {
|
|
9782
|
-
default:
|
|
9784
|
+
default: n1(() => [
|
|
9783
9785
|
f(C.$slots, "item-icon", {}, () => [
|
|
9784
|
-
L.icon ? (m(), _(
|
|
9786
|
+
L.icon ? (m(), _(x, {
|
|
9785
9787
|
key: 0,
|
|
9786
9788
|
name: L.icon
|
|
9787
|
-
}, null, 8, ["name"])) :
|
|
9789
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9788
9790
|
]),
|
|
9789
|
-
L.onlyIcon ?
|
|
9791
|
+
L.onlyIcon ? p("", !0) : (m(), Z("span", F3, y(L.title), 1))
|
|
9790
9792
|
]),
|
|
9791
9793
|
_: 2
|
|
9792
9794
|
}, 1032, ["to"]),
|
|
9793
9795
|
f(C.$slots, "custom-seperator", {}, () => [
|
|
9794
|
-
i !== C.items.length - 1 && V.seperator ? (m(), _(
|
|
9796
|
+
i !== C.items.length - 1 && V.seperator ? (m(), _(x, {
|
|
9795
9797
|
key: 0,
|
|
9796
9798
|
class: "r-breadcrumb__separator",
|
|
9797
9799
|
name: V.seperator
|
|
9798
|
-
}, null, 8, ["name"])) :
|
|
9800
|
+
}, null, 8, ["name"])) : p("", !0)
|
|
9799
9801
|
])
|
|
9800
9802
|
]))), 128))
|
|
9801
9803
|
]);
|
|
9802
9804
|
};
|
|
9803
9805
|
}
|
|
9804
|
-
}),
|
|
9806
|
+
}), R3 = { class: "r-pagination__paginator" }, x3 = { class: "r-pagination__paginator__per-page" }, D3 = { class: "r-pagination__paginator__info" }, _3 = ["disabled"], E3 = /* @__PURE__ */ S("path", {
|
|
9805
9807
|
d: "M0 0h24v24H0z",
|
|
9806
9808
|
fill: "none",
|
|
9807
9809
|
stroke: "none"
|
|
9808
|
-
}, null, -1),
|
|
9810
|
+
}, null, -1), W3 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), N3 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), I3 = [
|
|
9811
|
+
E3,
|
|
9809
9812
|
W3,
|
|
9810
|
-
N3
|
|
9811
|
-
|
|
9812
|
-
], G3 = ["disabled"], $3 = /* @__PURE__ */ u("path", {
|
|
9813
|
+
N3
|
|
9814
|
+
], Q3 = ["disabled"], G3 = /* @__PURE__ */ S("path", {
|
|
9813
9815
|
d: "M0 0h24v24H0z",
|
|
9814
9816
|
fill: "none",
|
|
9815
9817
|
stroke: "none"
|
|
9816
|
-
}, null, -1),
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
],
|
|
9818
|
+
}, null, -1), $3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), U3 = [
|
|
9819
|
+
G3,
|
|
9820
|
+
$3
|
|
9821
|
+
], z3 = ["disabled"], K3 = /* @__PURE__ */ S("path", {
|
|
9820
9822
|
d: "M0 0h24v24H0z",
|
|
9821
9823
|
fill: "none",
|
|
9822
9824
|
stroke: "none"
|
|
9823
|
-
}, null, -1),
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
],
|
|
9825
|
+
}, null, -1), q3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), j3 = [
|
|
9826
|
+
K3,
|
|
9827
|
+
q3
|
|
9828
|
+
], X3 = ["disabled"], Y3 = /* @__PURE__ */ S("path", {
|
|
9827
9829
|
d: "M0 0h24v24H0z",
|
|
9828
9830
|
fill: "none",
|
|
9829
9831
|
stroke: "none"
|
|
9830
|
-
}, null, -1),
|
|
9832
|
+
}, null, -1), J3 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), C0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), H0 = [
|
|
9833
|
+
Y3,
|
|
9831
9834
|
J3,
|
|
9832
|
-
C0
|
|
9833
|
-
|
|
9834
|
-
], s0 = /* @__PURE__ */ T({
|
|
9835
|
+
C0
|
|
9836
|
+
], S0 = /* @__PURE__ */ F({
|
|
9835
9837
|
__name: "RPagination",
|
|
9836
9838
|
props: {
|
|
9837
9839
|
page: { default: 1 },
|
|
@@ -9844,30 +9846,30 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9844
9846
|
},
|
|
9845
9847
|
emits: ["update:page", "update:perPage", "update:info"],
|
|
9846
9848
|
setup(H, { emit: V }) {
|
|
9847
|
-
const C = H, M = V, A =
|
|
9849
|
+
const C = H, M = V, A = W(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), i = g(() => ({
|
|
9848
9850
|
start: C.page * C.perPage - C.perPage,
|
|
9849
9851
|
end: C.page * C.perPage
|
|
9850
9852
|
}));
|
|
9851
|
-
|
|
9853
|
+
G(() => i.value, () => {
|
|
9852
9854
|
M("update:info", i.value);
|
|
9853
9855
|
});
|
|
9854
|
-
function e(
|
|
9855
|
-
|
|
9856
|
+
function e(t) {
|
|
9857
|
+
t < 1 || t > L.value || M("update:page", t);
|
|
9856
9858
|
}
|
|
9857
|
-
function
|
|
9858
|
-
M("update:perPage",
|
|
9859
|
+
function d({ value: t }) {
|
|
9860
|
+
M("update:perPage", t);
|
|
9859
9861
|
}
|
|
9860
|
-
return (
|
|
9861
|
-
class:
|
|
9862
|
+
return (t, l) => (m(), Z("div", {
|
|
9863
|
+
class: c(["r-pagination", [`r-pagination--${C.position}`]])
|
|
9862
9864
|
}, [
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
K(
|
|
9865
|
+
S("div", R3, [
|
|
9866
|
+
S("div", x3, [
|
|
9867
|
+
S("span", null, y(C.itemsPerPageText), 1),
|
|
9868
|
+
K(Y5, {
|
|
9867
9869
|
modelValue: A.value,
|
|
9868
9870
|
"onUpdate:modelValue": [
|
|
9869
9871
|
l[0] || (l[0] = (o) => A.value = o),
|
|
9870
|
-
|
|
9872
|
+
d
|
|
9871
9873
|
],
|
|
9872
9874
|
class: "w-24",
|
|
9873
9875
|
"hide-details": "",
|
|
@@ -9875,15 +9877,15 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9875
9877
|
options: C.perPageOptions
|
|
9876
9878
|
}, null, 8, ["modelValue", "options"])
|
|
9877
9879
|
]),
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
+
S("span", D3, y(C.infoText), 1),
|
|
9881
|
+
S("button", {
|
|
9880
9882
|
class: "r-pagination__paginator__first",
|
|
9881
9883
|
disabled: C.page === 1,
|
|
9882
9884
|
onClick: l[1] || (l[1] = (o) => e(1))
|
|
9883
9885
|
}, [
|
|
9884
|
-
f(
|
|
9885
|
-
(m(),
|
|
9886
|
-
class:
|
|
9886
|
+
f(t.$slots, "first", {}, () => [
|
|
9887
|
+
(m(), Z("svg", {
|
|
9888
|
+
class: c(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": C.page === 1 }]),
|
|
9887
9889
|
fill: "none",
|
|
9888
9890
|
height: "20",
|
|
9889
9891
|
stroke: "#000000",
|
|
@@ -9893,17 +9895,17 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9893
9895
|
viewBox: "0 0 24 24",
|
|
9894
9896
|
width: "20",
|
|
9895
9897
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9896
|
-
},
|
|
9898
|
+
}, I3, 2))
|
|
9897
9899
|
])
|
|
9898
|
-
], 8,
|
|
9899
|
-
|
|
9900
|
+
], 8, _3),
|
|
9901
|
+
S("button", {
|
|
9900
9902
|
class: "r-pagination__paginator__prev",
|
|
9901
9903
|
disabled: C.page === 1,
|
|
9902
9904
|
onClick: l[2] || (l[2] = (o) => e(+C.page - 1))
|
|
9903
9905
|
}, [
|
|
9904
|
-
f(
|
|
9905
|
-
(m(),
|
|
9906
|
-
class:
|
|
9906
|
+
f(t.$slots, "prev", {}, () => [
|
|
9907
|
+
(m(), Z("svg", {
|
|
9908
|
+
class: c(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": C.page === 1 }]),
|
|
9907
9909
|
fill: "none",
|
|
9908
9910
|
height: "20",
|
|
9909
9911
|
stroke: "#000000",
|
|
@@ -9913,17 +9915,17 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9913
9915
|
viewBox: "0 0 24 24",
|
|
9914
9916
|
width: "20",
|
|
9915
9917
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9916
|
-
},
|
|
9918
|
+
}, U3, 2))
|
|
9917
9919
|
])
|
|
9918
|
-
], 8,
|
|
9919
|
-
|
|
9920
|
+
], 8, Q3),
|
|
9921
|
+
S("button", {
|
|
9920
9922
|
class: "r-pagination__paginator__next",
|
|
9921
9923
|
disabled: C.page === L.value,
|
|
9922
9924
|
onClick: l[3] || (l[3] = (o) => e(+C.page + 1))
|
|
9923
9925
|
}, [
|
|
9924
|
-
f(
|
|
9925
|
-
(m(),
|
|
9926
|
-
class:
|
|
9926
|
+
f(t.$slots, "next", {}, () => [
|
|
9927
|
+
(m(), Z("svg", {
|
|
9928
|
+
class: c(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": C.page === L.value }]),
|
|
9927
9929
|
fill: "none",
|
|
9928
9930
|
height: "20",
|
|
9929
9931
|
stroke: "#000000",
|
|
@@ -9933,17 +9935,17 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9933
9935
|
viewBox: "0 0 24 24",
|
|
9934
9936
|
width: "20",
|
|
9935
9937
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9936
|
-
},
|
|
9938
|
+
}, j3, 2))
|
|
9937
9939
|
])
|
|
9938
|
-
], 8,
|
|
9939
|
-
|
|
9940
|
+
], 8, z3),
|
|
9941
|
+
S("button", {
|
|
9940
9942
|
class: "r-pagination__paginator__last",
|
|
9941
9943
|
disabled: C.page === L.value,
|
|
9942
9944
|
onClick: l[4] || (l[4] = (o) => e(C.totalItems / C.perPage))
|
|
9943
9945
|
}, [
|
|
9944
|
-
f(
|
|
9945
|
-
(m(),
|
|
9946
|
-
class:
|
|
9946
|
+
f(t.$slots, "last", {}, () => [
|
|
9947
|
+
(m(), Z("svg", {
|
|
9948
|
+
class: c(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": C.page === L.value }]),
|
|
9947
9949
|
fill: "none",
|
|
9948
9950
|
height: "20",
|
|
9949
9951
|
stroke: "#000000",
|
|
@@ -9953,13 +9955,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9953
9955
|
viewBox: "0 0 24 24",
|
|
9954
9956
|
width: "20",
|
|
9955
9957
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9956
|
-
},
|
|
9958
|
+
}, H0, 2))
|
|
9957
9959
|
])
|
|
9958
|
-
], 8,
|
|
9960
|
+
], 8, X3)
|
|
9959
9961
|
])
|
|
9960
9962
|
], 2));
|
|
9961
9963
|
}
|
|
9962
|
-
}),
|
|
9964
|
+
}), V0 = ["value"], s0 = /* @__PURE__ */ F({
|
|
9963
9965
|
__name: "RProgressbar",
|
|
9964
9966
|
props: {
|
|
9965
9967
|
value: { default: 0 },
|
|
@@ -9967,16 +9969,16 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9967
9969
|
},
|
|
9968
9970
|
setup(H) {
|
|
9969
9971
|
const V = H;
|
|
9970
|
-
return (C, M) => (m(),
|
|
9972
|
+
return (C, M) => (m(), Z("progress", {
|
|
9971
9973
|
"aria-valuemax": 100,
|
|
9972
9974
|
class: "r-progressbar",
|
|
9973
9975
|
max: 100,
|
|
9974
9976
|
role: "progressbar",
|
|
9975
9977
|
style: x1({ height: `${V.height}px` }),
|
|
9976
9978
|
value: V.value
|
|
9977
|
-
}, null, 12,
|
|
9979
|
+
}, null, 12, V0));
|
|
9978
9980
|
}
|
|
9979
|
-
}),
|
|
9981
|
+
}), O1 = "rocket-ui:r-item-group", c0 = /* @__PURE__ */ F({
|
|
9980
9982
|
__name: "RItemGroup",
|
|
9981
9983
|
props: {
|
|
9982
9984
|
modelValue: { default: () => [] },
|
|
@@ -9989,74 +9991,78 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9989
9991
|
},
|
|
9990
9992
|
emits: ["update:modelValue"],
|
|
9991
9993
|
setup(H, { emit: V }) {
|
|
9992
|
-
const C = H, M = V, A =
|
|
9993
|
-
|
|
9994
|
-
function e(
|
|
9995
|
-
return L.value.includes(
|
|
9994
|
+
const C = H, M = V, A = W(C.as ?? "div"), L = W(C.modelValue), i = g(() => C.selectedClass);
|
|
9995
|
+
s1(`${O1}:selectedClass`, i.value);
|
|
9996
|
+
function e(l) {
|
|
9997
|
+
return L.value.includes(l);
|
|
9996
9998
|
}
|
|
9997
|
-
|
|
9998
|
-
function
|
|
9999
|
-
C.disabled || C.mandatory && L.value.length === 1 &&
|
|
9999
|
+
s1(`${O1}:isSelected`, e);
|
|
10000
|
+
function d(l, o) {
|
|
10001
|
+
C.disabled || C.mandatory && L.value.length === 1 && !o || C.max && L.value.length === C.max && o || (C.multiple ? o ? L.value.push(l) : L.value = L.value.filter((r) => r !== l) : L.value = l ? [l] : [], M("update:modelValue", L.value));
|
|
10000
10002
|
}
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10003
|
+
s1(`${O1}:select`, d);
|
|
10004
|
+
function t() {
|
|
10005
|
+
return C.disabled;
|
|
10006
|
+
}
|
|
10007
|
+
return s1(`${O1}:isDisabled`, t), G(() => C.modelValue, () => {
|
|
10008
|
+
L.value = C.modelValue;
|
|
10009
|
+
}), (l, o) => (m(), _(g2(A.value), null, {
|
|
10010
|
+
default: n1(() => [
|
|
10011
|
+
f(l.$slots, "default", {
|
|
10004
10012
|
isSelected: e,
|
|
10005
|
-
select:
|
|
10013
|
+
select: d,
|
|
10006
10014
|
selected: L.value
|
|
10007
10015
|
})
|
|
10008
10016
|
]),
|
|
10009
10017
|
_: 3
|
|
10010
10018
|
}));
|
|
10011
10019
|
}
|
|
10012
|
-
}),
|
|
10020
|
+
}), p1 = "rocket-ui:r-item-group", O0 = /* @__PURE__ */ F({
|
|
10013
10021
|
__name: "RItem",
|
|
10014
10022
|
props: {
|
|
10015
10023
|
value: { default: null },
|
|
10016
|
-
disabled: { type: Boolean, default: !1 },
|
|
10017
10024
|
selectedClass: { default: "" }
|
|
10018
10025
|
},
|
|
10019
10026
|
setup(H) {
|
|
10020
|
-
const V = H, C =
|
|
10021
|
-
function i() {
|
|
10022
|
-
V.disabled || L(V.value, !C(V.value));
|
|
10023
|
-
}
|
|
10027
|
+
const V = H, C = c1(`${p1}:isSelected`), M = c1(`${p1}:selectedClass`, ""), A = c1(`${p1}:select`), L = c1(`${p1}:isDisabled`), i = g(() => C(V.value) && [M, V.selectedClass]);
|
|
10024
10028
|
function e() {
|
|
10025
|
-
V.disabled ||
|
|
10029
|
+
V.disabled || A(V.value, !C(V.value));
|
|
10026
10030
|
}
|
|
10027
|
-
|
|
10028
|
-
disabled
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10031
|
+
function d() {
|
|
10032
|
+
V.disabled || A(V.value, !0);
|
|
10033
|
+
}
|
|
10034
|
+
return (t, l) => f(t.$slots, "default", {
|
|
10035
|
+
disabled: V1(L)(V.value),
|
|
10036
|
+
isSelected: V1(C)(V.value),
|
|
10037
|
+
select: d,
|
|
10038
|
+
selectedClass: i.value,
|
|
10039
|
+
toggle: e
|
|
10034
10040
|
});
|
|
10035
10041
|
}
|
|
10036
10042
|
});
|
|
10037
10043
|
export {
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10044
|
+
M0 as RAccordion,
|
|
10045
|
+
A0 as RAlert,
|
|
10046
|
+
i0 as RAvatar,
|
|
10047
|
+
e0 as RBadge,
|
|
10048
|
+
u0 as RBreadcrumb,
|
|
10049
|
+
d0 as RButton,
|
|
10050
|
+
t0 as RCheckbox,
|
|
10051
|
+
Y2 as RChip,
|
|
10052
|
+
Y5 as RDropdown,
|
|
10053
|
+
x as RIcon,
|
|
10054
|
+
O0 as RItem,
|
|
10055
|
+
c0 as RItemGroup,
|
|
10050
10056
|
r2 as RLabel,
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10057
|
+
m0 as RModal,
|
|
10058
|
+
S0 as RPagination,
|
|
10059
|
+
s0 as RProgressbar,
|
|
10060
|
+
l0 as RSidebar,
|
|
10061
|
+
o0 as RSnackbar,
|
|
10062
|
+
n0 as RSwitch,
|
|
10063
|
+
O3 as RTabItem,
|
|
10064
|
+
r0 as RTabs,
|
|
10065
|
+
a0 as RTextArea,
|
|
10066
|
+
Z0 as RTextfield,
|
|
10067
|
+
W5 as RTooltip
|
|
10062
10068
|
};
|