@rocketui/vue 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rocket-ui-vue.js +402 -397
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, openBlock as t, createElementBlock as r, createElementVNode as S, unref as g, reactive as J, Fragment as j, renderList as Y, normalizeClass as f, toDisplayString as
|
|
1
|
+
import { defineComponent as P, openBlock as t, createElementBlock as r, createElementVNode as S, unref as g, reactive as J, Fragment as j, renderList as Y, normalizeClass as f, toDisplayString as b, createVNode as W, computed as B, renderSlot as w, createBlock as v, createCommentVNode as h, mergeProps as $1, withModifiers as N, watch as G, ref as D, withDirectives as T1, withKeys as O1, vModelText as K1, normalizeStyle as v1, vShow as j1, onMounted as q1, withCtx as F1, createTextVNode as R1, useCssVars as Y1, watchEffect as X1, resolveComponent as J1 } from "vue";
|
|
2
2
|
const C2 = {
|
|
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 C2 = {
|
|
|
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
|
-
}, H2 = ["width", "height", "viewBox"], V2 = ["d"],
|
|
7299
|
+
}, H2 = ["width", "height", "viewBox"], V2 = ["d"], F = /* @__PURE__ */ P({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
@@ -7317,7 +7317,7 @@ const C2 = {
|
|
|
7317
7317
|
], 8, H2));
|
|
7318
7318
|
}
|
|
7319
7319
|
});
|
|
7320
|
-
const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accordion__icon" }, i2 = { class: "accordion__content" },
|
|
7320
|
+
const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accordion__icon" }, i2 = { class: "accordion__content" }, _5 = /* @__PURE__ */ P({
|
|
7321
7321
|
__name: "RAccordion",
|
|
7322
7322
|
props: {
|
|
7323
7323
|
accordions: null
|
|
@@ -7348,22 +7348,22 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7348
7348
|
class: "accordion__header",
|
|
7349
7349
|
onClick: (d) => L(e)
|
|
7350
7350
|
}, [
|
|
7351
|
-
S("div", M2,
|
|
7351
|
+
S("div", M2, b(A.title), 1),
|
|
7352
7352
|
S("div", A2, [
|
|
7353
|
-
|
|
7353
|
+
W(F, {
|
|
7354
7354
|
name: A.open ? "mdiChevronDown" : "mdiChevronUp"
|
|
7355
7355
|
}, null, 8, ["name"])
|
|
7356
7356
|
])
|
|
7357
7357
|
], 8, L2),
|
|
7358
7358
|
S("div", i2, [
|
|
7359
|
-
S("span", null,
|
|
7359
|
+
S("span", null, b(A.content), 1)
|
|
7360
7360
|
])
|
|
7361
7361
|
], 2))), 128));
|
|
7362
7362
|
}
|
|
7363
7363
|
}), e2 = { class: "icon" }, d2 = { class: "texts" }, t2 = { class: "texts__title" }, m2 = { class: "texts__description" }, l2 = {
|
|
7364
7364
|
key: 0,
|
|
7365
7365
|
class: "close"
|
|
7366
|
-
},
|
|
7366
|
+
}, N5 = /* @__PURE__ */ P({
|
|
7367
7367
|
__name: "RAlert",
|
|
7368
7368
|
props: {
|
|
7369
7369
|
type: { default: "info" },
|
|
@@ -7375,17 +7375,17 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7375
7375
|
},
|
|
7376
7376
|
emits: ["close"],
|
|
7377
7377
|
setup(H, { emit: V }) {
|
|
7378
|
-
const C = H, L =
|
|
7378
|
+
const C = H, L = B(() => ({
|
|
7379
7379
|
alert: !0,
|
|
7380
7380
|
[`alert--${C.type}`]: !0,
|
|
7381
7381
|
[`alert--${C.size}`]: !0,
|
|
7382
7382
|
"alert--block": C.block
|
|
7383
|
-
})), M =
|
|
7383
|
+
})), M = B(() => ({
|
|
7384
7384
|
success: "mdiCheckCircle",
|
|
7385
7385
|
error: "mdiAlertCircle",
|
|
7386
7386
|
warning: "mdiAlert",
|
|
7387
7387
|
info: "mdiInformation"
|
|
7388
|
-
})[C.type]), i =
|
|
7388
|
+
})[C.type]), i = B(() => ({
|
|
7389
7389
|
small: 20,
|
|
7390
7390
|
medium: 24,
|
|
7391
7391
|
large: 28
|
|
@@ -7396,18 +7396,18 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7396
7396
|
class: f(g(L))
|
|
7397
7397
|
}, [
|
|
7398
7398
|
S("div", e2, [
|
|
7399
|
-
|
|
7399
|
+
W(F, {
|
|
7400
7400
|
name: g(M),
|
|
7401
7401
|
size: g(i)
|
|
7402
7402
|
}, null, 8, ["name", "size"])
|
|
7403
7403
|
]),
|
|
7404
7404
|
S("div", d2, [
|
|
7405
|
-
S("p", t2,
|
|
7406
|
-
S("p", m2,
|
|
7405
|
+
S("p", t2, b(C.title), 1),
|
|
7406
|
+
S("p", m2, b(C.description), 1)
|
|
7407
7407
|
]),
|
|
7408
7408
|
C.closable ? (t(), r("div", l2, [
|
|
7409
7409
|
w(e.$slots, "custom-close"),
|
|
7410
|
-
e.$slots.close ? h("", !0) : (t(),
|
|
7410
|
+
e.$slots.close ? h("", !0) : (t(), v(F, {
|
|
7411
7411
|
key: 0,
|
|
7412
7412
|
class: "close__button",
|
|
7413
7413
|
name: "close",
|
|
@@ -7417,7 +7417,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7417
7417
|
])) : h("", !0)
|
|
7418
7418
|
], 2));
|
|
7419
7419
|
}
|
|
7420
|
-
}), p1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", o2 = { class: "avatar__wrapper" }, n2 = ["alt", "src"],
|
|
7420
|
+
}), p1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", o2 = { class: "avatar__wrapper" }, n2 = ["alt", "src"], W5 = /* @__PURE__ */ P({
|
|
7421
7421
|
__name: "RAvatar",
|
|
7422
7422
|
props: {
|
|
7423
7423
|
type: { default: "image" },
|
|
@@ -7428,10 +7428,10 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7428
7428
|
text: { default: "" }
|
|
7429
7429
|
},
|
|
7430
7430
|
setup(H) {
|
|
7431
|
-
const V = H, C =
|
|
7431
|
+
const V = H, C = B(() => ({
|
|
7432
7432
|
avatar: !0,
|
|
7433
7433
|
[`avatar--${V.size}`]: !0
|
|
7434
|
-
})), L =
|
|
7434
|
+
})), L = B(() => V.type === "image" && !V.src), M = B(() => L.value ? p1 : V.src), i = (A) => {
|
|
7435
7435
|
const e = A.split(" ");
|
|
7436
7436
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7437
7437
|
};
|
|
@@ -7442,7 +7442,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7442
7442
|
V.type === "text" ? (t(), r("p", {
|
|
7443
7443
|
key: 0,
|
|
7444
7444
|
class: f({ avatar__text: !0, [`avatar__text--${V.size}`]: !0 })
|
|
7445
|
-
},
|
|
7445
|
+
}, b(i(V.text)), 3)) : (t(), r("img", {
|
|
7446
7446
|
key: 1,
|
|
7447
7447
|
alt: V.alt,
|
|
7448
7448
|
class: f({
|
|
@@ -7459,7 +7459,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7459
7459
|
}, null, 2)) : h("", !0)
|
|
7460
7460
|
]));
|
|
7461
7461
|
}
|
|
7462
|
-
}), r2 = { class: "badge-wrapper group" },
|
|
7462
|
+
}), r2 = { class: "badge-wrapper group" }, I5 = /* @__PURE__ */ P({
|
|
7463
7463
|
__name: "RBadge",
|
|
7464
7464
|
props: {
|
|
7465
7465
|
variant: { default: "primary" },
|
|
@@ -7471,7 +7471,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7471
7471
|
},
|
|
7472
7472
|
emits: ["click"],
|
|
7473
7473
|
setup(H) {
|
|
7474
|
-
const V = H, C =
|
|
7474
|
+
const V = H, C = B(() => ({
|
|
7475
7475
|
badge: !0,
|
|
7476
7476
|
badge__content: V.content,
|
|
7477
7477
|
[`badge--overlap-${V.placement}`]: V.overlap,
|
|
@@ -7485,7 +7485,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7485
7485
|
S("span", {
|
|
7486
7486
|
class: f(g(C)),
|
|
7487
7487
|
onClick: M[0] || (M[0] = (i) => L.$emit("click"))
|
|
7488
|
-
},
|
|
7488
|
+
}, b(V.content), 3),
|
|
7489
7489
|
w(L.$slots, "default")
|
|
7490
7490
|
]));
|
|
7491
7491
|
}
|
|
@@ -7506,18 +7506,18 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7506
7506
|
},
|
|
7507
7507
|
emits: ["click"],
|
|
7508
7508
|
setup(H) {
|
|
7509
|
-
const V = H, C =
|
|
7509
|
+
const V = H, C = B(() => ({
|
|
7510
7510
|
button: !0,
|
|
7511
7511
|
[`button--${V.variant}`]: !0,
|
|
7512
7512
|
"button--loading": V.loading,
|
|
7513
7513
|
[`button--${V.size || "medium"}`]: !0,
|
|
7514
7514
|
"button--only-icon": V.onlyIcon,
|
|
7515
7515
|
"button--block": V.block
|
|
7516
|
-
})), L =
|
|
7516
|
+
})), L = B(() => ({
|
|
7517
7517
|
small: 20,
|
|
7518
7518
|
medium: 24,
|
|
7519
7519
|
large: 32
|
|
7520
|
-
})[V.size || "medium"]), M =
|
|
7520
|
+
})[V.size || "medium"]), M = B(() => {
|
|
7521
7521
|
const { backgroundColor: i, height: A, color: e } = V;
|
|
7522
7522
|
return {
|
|
7523
7523
|
backgroundColor: i,
|
|
@@ -7529,10 +7529,10 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7529
7529
|
class: g(C),
|
|
7530
7530
|
disabled: H.disabled || H.loading,
|
|
7531
7531
|
style: g(M),
|
|
7532
|
-
onClick: A[0] || (A[0] =
|
|
7532
|
+
onClick: A[0] || (A[0] = N((e) => i.$emit("click"), ["stop"]))
|
|
7533
7533
|
}), [
|
|
7534
7534
|
w(i.$slots, "custom-icon"),
|
|
7535
|
-
!i.$slots["custom-icon"] && V.prependIcon ? (t(),
|
|
7535
|
+
!i.$slots["custom-icon"] && V.prependIcon ? (t(), v(F, {
|
|
7536
7536
|
key: 0,
|
|
7537
7537
|
class: f({
|
|
7538
7538
|
"button__prepend-icon": !0,
|
|
@@ -7542,7 +7542,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7542
7542
|
size: g(L)
|
|
7543
7543
|
}, null, 8, ["class", "name", "size"])) : h("", !0),
|
|
7544
7544
|
V.onlyIcon ? h("", !0) : w(i.$slots, "default", { key: 1 }),
|
|
7545
|
-
!i.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (t(),
|
|
7545
|
+
!i.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (t(), v(F, {
|
|
7546
7546
|
key: 2,
|
|
7547
7547
|
class: "button__append-icon",
|
|
7548
7548
|
name: V.appendIcon,
|
|
@@ -7556,7 +7556,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7556
7556
|
}, h2 = {
|
|
7557
7557
|
key: 1,
|
|
7558
7558
|
class: "checkbox-texts__hint"
|
|
7559
|
-
},
|
|
7559
|
+
}, Q5 = /* @__PURE__ */ P({
|
|
7560
7560
|
__name: "RCheckbox",
|
|
7561
7561
|
props: {
|
|
7562
7562
|
id: { default: "" },
|
|
@@ -7576,7 +7576,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7576
7576
|
checked: "mdiCheck",
|
|
7577
7577
|
unchecked: "",
|
|
7578
7578
|
indeterminate: "mdiMinus"
|
|
7579
|
-
}, i =
|
|
7579
|
+
}, i = B(() => L.indeterminate ? M.indeterminate : L.checked ? M.checked : M.unchecked), A = B(() => ({
|
|
7580
7580
|
checkbox: !0,
|
|
7581
7581
|
"checkbox--checked": L.checked,
|
|
7582
7582
|
"checkbox--disabled": C.disabled,
|
|
@@ -7585,7 +7585,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7585
7585
|
})), e = (d) => {
|
|
7586
7586
|
C.disabled || (L.checked = d.target.checked, L.indeterminate = !1, V("update:modelValue", L.checked));
|
|
7587
7587
|
};
|
|
7588
|
-
return
|
|
7588
|
+
return G(
|
|
7589
7589
|
() => C.indeterminate,
|
|
7590
7590
|
(d) => {
|
|
7591
7591
|
L.indeterminate = d, d === !0 && (L.checked = !1, V("update:modelValue", L.checked));
|
|
@@ -7595,7 +7595,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7595
7595
|
// TODO: find a better way to do this
|
|
7596
7596
|
immediate: !0
|
|
7597
7597
|
}
|
|
7598
|
-
),
|
|
7598
|
+
), G(
|
|
7599
7599
|
() => C.modelValue,
|
|
7600
7600
|
(d) => {
|
|
7601
7601
|
L.checked = d;
|
|
@@ -7605,7 +7605,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7605
7605
|
// TODO: find a better way to do this
|
|
7606
7606
|
immediate: !0
|
|
7607
7607
|
}
|
|
7608
|
-
), (d,
|
|
7608
|
+
), (d, l) => (t(), r("div", Z2, [
|
|
7609
7609
|
S("div", S2, [
|
|
7610
7610
|
S("input", {
|
|
7611
7611
|
id: C.id,
|
|
@@ -7620,7 +7620,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7620
7620
|
class: f(g(A)),
|
|
7621
7621
|
"data-disabled": C.disabled
|
|
7622
7622
|
}, [
|
|
7623
|
-
|
|
7623
|
+
W(F, {
|
|
7624
7624
|
name: g(i),
|
|
7625
7625
|
size: 24
|
|
7626
7626
|
}, null, 8, ["name"])
|
|
@@ -7631,8 +7631,8 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7631
7631
|
class: "checkbox-texts__label",
|
|
7632
7632
|
"data-disabled": C.disabled,
|
|
7633
7633
|
for: C.id
|
|
7634
|
-
},
|
|
7635
|
-
C.errorMsg ? (t(), r("p", p2,
|
|
7634
|
+
}, b(C.label), 9, O2),
|
|
7635
|
+
C.errorMsg ? (t(), r("p", p2, b(C.errorMsg), 1)) : (t(), r("p", h2, b(C.hint), 1))
|
|
7636
7636
|
])
|
|
7637
7637
|
]));
|
|
7638
7638
|
}
|
|
@@ -7649,7 +7649,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7649
7649
|
},
|
|
7650
7650
|
emits: ["click:chip", "click:close"],
|
|
7651
7651
|
setup(H, { emit: V }) {
|
|
7652
|
-
const C = H, L =
|
|
7652
|
+
const C = H, L = B(() => ({
|
|
7653
7653
|
chip: !0,
|
|
7654
7654
|
"chip--disabled": C.disabled,
|
|
7655
7655
|
[`chip__${C.variant}`]: C.variant,
|
|
@@ -7667,7 +7667,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7667
7667
|
onClick: e[0] || (e[0] = (d) => M(d))
|
|
7668
7668
|
}, [
|
|
7669
7669
|
w(A.$slots, "prepend", {}, () => [
|
|
7670
|
-
C.prependIcon ? (t(),
|
|
7670
|
+
C.prependIcon ? (t(), v(F, {
|
|
7671
7671
|
key: 0,
|
|
7672
7672
|
class: "chip__content__prepend-icon",
|
|
7673
7673
|
"aria-disabled": C.disabled,
|
|
@@ -7675,10 +7675,10 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7675
7675
|
size: 12
|
|
7676
7676
|
}, null, 8, ["aria-disabled", "name"])) : h("", !0)
|
|
7677
7677
|
]),
|
|
7678
|
-
S("span", f2,
|
|
7678
|
+
S("span", f2, b(C.label), 1)
|
|
7679
7679
|
]),
|
|
7680
7680
|
w(A.$slots, "append", {}, () => [
|
|
7681
|
-
C.appendIcon ? (t(),
|
|
7681
|
+
C.appendIcon ? (t(), v(F, {
|
|
7682
7682
|
key: 0,
|
|
7683
7683
|
class: "chip__content__append-icon",
|
|
7684
7684
|
"aria-disabled": C.disabled,
|
|
@@ -7689,13 +7689,13 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7689
7689
|
])
|
|
7690
7690
|
], 2));
|
|
7691
7691
|
}
|
|
7692
|
-
}), k2 = {
|
|
7692
|
+
}), k2 = {
|
|
7693
7693
|
key: 1,
|
|
7694
7694
|
class: "dropdown__tags"
|
|
7695
|
-
},
|
|
7695
|
+
}, B2 = {
|
|
7696
7696
|
key: 2,
|
|
7697
7697
|
class: "dropdown__multiple"
|
|
7698
|
-
},
|
|
7698
|
+
}, b2 = ["disabled", "placeholder", "readonly"], y2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } }, G5 = /* @__PURE__ */ P({
|
|
7699
7699
|
__name: "RDropdown",
|
|
7700
7700
|
props: {
|
|
7701
7701
|
placeholder: { default: "" },
|
|
@@ -7711,47 +7711,51 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7711
7711
|
},
|
|
7712
7712
|
emits: ["update:modelValue"],
|
|
7713
7713
|
setup(H, { emit: V }) {
|
|
7714
|
-
const C = H, L =
|
|
7715
|
-
var
|
|
7714
|
+
const C = H, L = D(""), M = J([]), i = D(!1), A = D(""), e = D(null), d = D(null), l = D(null), Z = (o) => {
|
|
7715
|
+
var a, n, O, T, R, _, c, y, x, E;
|
|
7716
7716
|
if (!C.disabled) {
|
|
7717
|
-
if (
|
|
7718
|
-
(
|
|
7717
|
+
if (o.stopPropagation(), i.value = !i.value, i.value) {
|
|
7718
|
+
(a = e.value) == null || a.classList.add("dropdown--active"), (O = (n = l.value) == null ? void 0 : n.parentElement) == null || O.addEventListener("click", Z), (T = e.value) == null || T.focus(), C.searchable && ((R = d.value) == null || R.focus());
|
|
7719
7719
|
return;
|
|
7720
7720
|
}
|
|
7721
|
-
(
|
|
7721
|
+
(_ = e.value) == null || _.classList.remove("dropdown--active"), (c = e.value) == null || c.blur(), (y = d.value) == null || y.blur(), (E = (x = l.value) == null ? void 0 : x.parentElement) == null || E.addEventListener("click", Z);
|
|
7722
7722
|
}
|
|
7723
|
-
},
|
|
7723
|
+
}, m = (o, a) => {
|
|
7724
7724
|
var n;
|
|
7725
7725
|
if (C.multiple || C.taggable) {
|
|
7726
|
-
|
|
7726
|
+
o.stopPropagation(), M.includes(a) ? M.splice(M.indexOf(a), 1) : M.push(a), A.value = "", C.searchable && ((n = d.value) == null || n.focus());
|
|
7727
7727
|
return;
|
|
7728
7728
|
}
|
|
7729
|
-
|
|
7730
|
-
},
|
|
7731
|
-
if (L.value ===
|
|
7729
|
+
p(o, a);
|
|
7730
|
+
}, p = (o, a) => {
|
|
7731
|
+
if (L.value === a.value) {
|
|
7732
7732
|
L.value = "", A.value = "";
|
|
7733
7733
|
return;
|
|
7734
7734
|
}
|
|
7735
|
-
A.value =
|
|
7736
|
-
},
|
|
7737
|
-
if (
|
|
7735
|
+
A.value = a.label, L.value = a.value, Z(o), V("update:modelValue", a);
|
|
7736
|
+
}, u = (o, a) => {
|
|
7737
|
+
if (o instanceof KeyboardEvent && o.key !== "Backspace" || A.value !== "")
|
|
7738
7738
|
return;
|
|
7739
|
-
|
|
7740
|
-
const n = M.findIndex((
|
|
7739
|
+
o.stopPropagation();
|
|
7740
|
+
const n = M.findIndex((O) => O.value === a.value);
|
|
7741
7741
|
M.splice(n, 1);
|
|
7742
|
-
},
|
|
7743
|
-
var
|
|
7742
|
+
}, s = (o) => {
|
|
7743
|
+
var O;
|
|
7744
7744
|
if (!C.taggable)
|
|
7745
7745
|
return;
|
|
7746
|
-
|
|
7747
|
-
const
|
|
7748
|
-
if (
|
|
7746
|
+
o.stopPropagation();
|
|
7747
|
+
const a = A.value;
|
|
7748
|
+
if (a === "")
|
|
7749
7749
|
return;
|
|
7750
|
-
C.options.find((
|
|
7751
|
-
},
|
|
7752
|
-
return
|
|
7753
|
-
V("update:modelValue",
|
|
7754
|
-
}), (
|
|
7750
|
+
C.options.find((T) => T.label === a) || (M.push({ value: a, label: a }), A.value = "", (O = d.value) == null || O.focus());
|
|
7751
|
+
}, k = B(() => C.searchable ? C.options.filter((a) => a.label.toLowerCase().includes(A.value.toLowerCase())) : C.options);
|
|
7752
|
+
return G(M, (o) => {
|
|
7753
|
+
V("update:modelValue", o);
|
|
7754
|
+
}), (o, a) => (t(), r("div", {
|
|
7755
|
+
class: "dropdown-wrapper",
|
|
7756
|
+
ref_key: "wrapper",
|
|
7757
|
+
ref: l
|
|
7758
|
+
}, [
|
|
7755
7759
|
S("div", {
|
|
7756
7760
|
ref_key: "dropdown",
|
|
7757
7761
|
ref: e,
|
|
@@ -7760,41 +7764,41 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7760
7764
|
"dropdown--disabled": C.disabled,
|
|
7761
7765
|
"dropdown--loading": C.loading
|
|
7762
7766
|
}),
|
|
7763
|
-
onClick:
|
|
7767
|
+
onClick: Z
|
|
7764
7768
|
}, [
|
|
7765
|
-
C.prependIcon ||
|
|
7769
|
+
C.prependIcon || o.$slots.prepend ? (t(), r("div", {
|
|
7766
7770
|
key: 0,
|
|
7767
7771
|
class: f({
|
|
7768
7772
|
"dropdown__prepend-icon": !0,
|
|
7769
7773
|
"dropdown__prepend-icon--active": i.value
|
|
7770
7774
|
})
|
|
7771
7775
|
}, [
|
|
7772
|
-
w(
|
|
7773
|
-
C.prependIcon ? (t(),
|
|
7776
|
+
w(o.$slots, "prepend", {}, () => [
|
|
7777
|
+
C.prependIcon ? (t(), v(F, {
|
|
7774
7778
|
key: 0,
|
|
7775
7779
|
name: C.prependIcon
|
|
7776
7780
|
}, null, 8, ["name"])) : h("", !0)
|
|
7777
7781
|
])
|
|
7778
7782
|
], 2)) : h("", !0),
|
|
7779
|
-
C.taggable ? (t(), r("div",
|
|
7780
|
-
(t(!0), r(j, null, Y(M, (n,
|
|
7781
|
-
key:
|
|
7783
|
+
C.taggable ? (t(), r("div", k2, [
|
|
7784
|
+
(t(!0), r(j, null, Y(M, (n, O) => (t(), v(g2, {
|
|
7785
|
+
key: O,
|
|
7782
7786
|
label: n.label,
|
|
7783
7787
|
appendIcon: "close",
|
|
7784
7788
|
class: "dropdown__tags__chip",
|
|
7785
7789
|
variant: "primary",
|
|
7786
|
-
"onClick:close": (
|
|
7790
|
+
"onClick:close": (T) => u(T, n)
|
|
7787
7791
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7788
7792
|
])) : h("", !0),
|
|
7789
|
-
C.multiple ? (t(), r("div",
|
|
7790
|
-
(t(!0), r(j, null, Y(M, (n,
|
|
7793
|
+
C.multiple ? (t(), r("div", B2, [
|
|
7794
|
+
(t(!0), r(j, null, Y(M, (n, O) => (t(), r("p", { key: O }, b(n.label + ","), 1))), 128))
|
|
7791
7795
|
])) : h("", !0),
|
|
7792
7796
|
T1(S("input", {
|
|
7793
7797
|
id: "select",
|
|
7794
7798
|
ref_key: "input",
|
|
7795
7799
|
ref: d,
|
|
7796
7800
|
type: "text",
|
|
7797
|
-
"onUpdate:modelValue":
|
|
7801
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => A.value = n),
|
|
7798
7802
|
class: f({
|
|
7799
7803
|
dropdown__input: !0,
|
|
7800
7804
|
"dropdown__input--loading": C.loading
|
|
@@ -7803,21 +7807,21 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7803
7807
|
placeholder: C.placeholder,
|
|
7804
7808
|
readonly: !C.searchable,
|
|
7805
7809
|
onKeydown: [
|
|
7806
|
-
|
|
7807
|
-
|
|
7810
|
+
a[1] || (a[1] = O1((n) => u(n, M[M.length - 1]), ["backspace"])),
|
|
7811
|
+
a[2] || (a[2] = O1((n) => s(n), ["enter"]))
|
|
7808
7812
|
]
|
|
7809
|
-
}, null, 42,
|
|
7813
|
+
}, null, 42, b2), [
|
|
7810
7814
|
[K1, A.value]
|
|
7811
7815
|
]),
|
|
7812
|
-
C.appendIcon ||
|
|
7816
|
+
C.appendIcon || o.$slots.append ? (t(), r("div", {
|
|
7813
7817
|
key: 3,
|
|
7814
7818
|
class: f({
|
|
7815
7819
|
"dropdown__append-icon": !0,
|
|
7816
7820
|
"dropdown__append-icon--active": i.value
|
|
7817
7821
|
})
|
|
7818
7822
|
}, [
|
|
7819
|
-
w(
|
|
7820
|
-
C.appendIcon ? (t(),
|
|
7823
|
+
w(o.$slots, "append", {}, () => [
|
|
7824
|
+
C.appendIcon ? (t(), v(F, {
|
|
7821
7825
|
key: 0,
|
|
7822
7826
|
name: C.appendIcon
|
|
7823
7827
|
}, null, 8, ["name"])) : h("", !0)
|
|
@@ -7827,32 +7831,32 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7827
7831
|
S("ul", {
|
|
7828
7832
|
class: f({ "dropdown-options": !0, "dropdown-options--active": i.value })
|
|
7829
7833
|
}, [
|
|
7830
|
-
(t(!0), r(j, null, Y(g(
|
|
7834
|
+
(t(!0), r(j, null, Y(g(k), (n) => (t(), r("li", {
|
|
7831
7835
|
key: n.value,
|
|
7832
7836
|
class: f({
|
|
7833
7837
|
"dropdown-options__option": !0,
|
|
7834
7838
|
"dropdown-options__option--active": n.value === L.value || (M == null ? void 0 : M.includes(n))
|
|
7835
7839
|
}),
|
|
7836
7840
|
"aria-disabled": n.disabled,
|
|
7837
|
-
onClick: (
|
|
7841
|
+
onClick: (O) => m(O, n)
|
|
7838
7842
|
}, [
|
|
7839
|
-
S("div",
|
|
7840
|
-
n.prependIcon ? (t(),
|
|
7843
|
+
S("div", w2, [
|
|
7844
|
+
n.prependIcon ? (t(), v(F, {
|
|
7841
7845
|
key: 1,
|
|
7842
7846
|
class: f({
|
|
7843
7847
|
"dropdown-options__option__prepend-icon": !0,
|
|
7844
7848
|
"dropdown-options__option__prepend-icon--active": n.value === L.value || (M == null ? void 0 : M.includes(n))
|
|
7845
7849
|
}),
|
|
7846
7850
|
name: n.prependIcon
|
|
7847
|
-
}, null, 8, ["class", "name"])) : w(
|
|
7851
|
+
}, null, 8, ["class", "name"])) : w(o.$slots, "option-prepend", { key: 0 }),
|
|
7848
7852
|
S("p", {
|
|
7849
7853
|
class: f({
|
|
7850
7854
|
"dropdown-options__option__label": !0,
|
|
7851
7855
|
"dropdown-options__option__label--active": n.value === L.value || (M == null ? void 0 : M.includes(n))
|
|
7852
7856
|
})
|
|
7853
|
-
},
|
|
7857
|
+
}, b(n.label), 3)
|
|
7854
7858
|
]),
|
|
7855
|
-
n.value === L.value || M != null && M.includes(n) ? (t(),
|
|
7859
|
+
n.value === L.value || M != null && M.includes(n) ? (t(), v(F, {
|
|
7856
7860
|
key: 0,
|
|
7857
7861
|
class: f({
|
|
7858
7862
|
"dropdown-options__option__append-icon": !0,
|
|
@@ -7860,11 +7864,11 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7860
7864
|
}),
|
|
7861
7865
|
name: "mdiCheck"
|
|
7862
7866
|
}, null, 8, ["class"])) : h("", !0)
|
|
7863
|
-
], 10,
|
|
7867
|
+
], 10, y2))), 128))
|
|
7864
7868
|
], 2)
|
|
7865
|
-
]));
|
|
7869
|
+
], 512));
|
|
7866
7870
|
}
|
|
7867
|
-
}),
|
|
7871
|
+
}), P2 = ["id", "for"], x1 = /* @__PURE__ */ P({
|
|
7868
7872
|
__name: "RLabel",
|
|
7869
7873
|
props: {
|
|
7870
7874
|
id: { default: "" },
|
|
@@ -7876,18 +7880,18 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7876
7880
|
return (C, L) => (t(), r("label", {
|
|
7877
7881
|
id: V.id,
|
|
7878
7882
|
for: V.for
|
|
7879
|
-
},
|
|
7883
|
+
}, b(V.text), 9, P2));
|
|
7880
7884
|
}
|
|
7881
|
-
}),
|
|
7885
|
+
}), T2 = ["onClick"], v2 = ["open"], F2 = { class: "dialog__header" }, R2 = {
|
|
7882
7886
|
key: 0,
|
|
7883
7887
|
class: "icon"
|
|
7884
|
-
},
|
|
7888
|
+
}, x2 = {
|
|
7885
7889
|
key: 1,
|
|
7886
7890
|
class: "title"
|
|
7887
|
-
},
|
|
7891
|
+
}, D2 = {
|
|
7888
7892
|
key: 2,
|
|
7889
7893
|
class: "description"
|
|
7890
|
-
},
|
|
7894
|
+
}, E2 = { class: "dialog__body" }, _2 = { class: "dialog__actions" }, z5 = /* @__PURE__ */ P({
|
|
7891
7895
|
__name: "RModal",
|
|
7892
7896
|
props: {
|
|
7893
7897
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7896,22 +7900,23 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7896
7900
|
description: { default: "" },
|
|
7897
7901
|
icon: null,
|
|
7898
7902
|
width: null,
|
|
7899
|
-
height: null
|
|
7903
|
+
height: null,
|
|
7904
|
+
outsideClick: { type: Boolean }
|
|
7900
7905
|
},
|
|
7901
7906
|
emits: ["update:modelValue"],
|
|
7902
7907
|
setup(H, { emit: V }) {
|
|
7903
|
-
const C = H, L =
|
|
7908
|
+
const C = H, L = B(() => ({
|
|
7904
7909
|
dialog: !0,
|
|
7905
7910
|
"dialog--block": C.block
|
|
7906
|
-
})), M =
|
|
7911
|
+
})), M = B(() => ({
|
|
7907
7912
|
width: C.width,
|
|
7908
7913
|
height: C.height
|
|
7909
7914
|
})), i = (A) => {
|
|
7910
|
-
A.target === A.currentTarget && V("update:modelValue", !1);
|
|
7915
|
+
C.outsideClick && A.target === A.currentTarget && V("update:modelValue", !1);
|
|
7911
7916
|
};
|
|
7912
7917
|
return (A, e) => T1((t(), r("div", {
|
|
7913
7918
|
class: "modal",
|
|
7914
|
-
onClick:
|
|
7919
|
+
onClick: N(i, ["stop"])
|
|
7915
7920
|
}, [
|
|
7916
7921
|
S("div", {
|
|
7917
7922
|
style: v1(g(M)),
|
|
@@ -7920,55 +7925,55 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7920
7925
|
class: f(g(L)),
|
|
7921
7926
|
open: C.modelValue
|
|
7922
7927
|
}, [
|
|
7923
|
-
S("div",
|
|
7928
|
+
S("div", F2, [
|
|
7924
7929
|
w(A.$slots, "header"),
|
|
7925
|
-
C.icon ? (t(), r("div",
|
|
7926
|
-
|
|
7930
|
+
C.icon ? (t(), r("div", R2, [
|
|
7931
|
+
W(F, {
|
|
7927
7932
|
name: C.icon
|
|
7928
7933
|
}, null, 8, ["name"])
|
|
7929
7934
|
])) : h("", !0),
|
|
7930
|
-
C.title ? (t(), r("div",
|
|
7931
|
-
C.description ? (t(), r("div",
|
|
7935
|
+
C.title ? (t(), r("div", x2, b(C.title), 1)) : h("", !0),
|
|
7936
|
+
C.description ? (t(), r("div", D2, b(C.description), 1)) : h("", !0)
|
|
7932
7937
|
]),
|
|
7933
|
-
S("div",
|
|
7938
|
+
S("div", E2, [
|
|
7934
7939
|
w(A.$slots, "default")
|
|
7935
7940
|
]),
|
|
7936
|
-
S("div",
|
|
7941
|
+
S("div", _2, [
|
|
7937
7942
|
w(A.$slots, "actions")
|
|
7938
7943
|
])
|
|
7939
|
-
], 14,
|
|
7940
|
-
], 8,
|
|
7944
|
+
], 14, v2)
|
|
7945
|
+
], 8, T2)), [
|
|
7941
7946
|
[j1, H.modelValue]
|
|
7942
7947
|
]);
|
|
7943
7948
|
}
|
|
7944
|
-
}),
|
|
7949
|
+
}), N2 = { class: "nav" }, W2 = { class: "actions" }, U5 = /* @__PURE__ */ P({
|
|
7945
7950
|
__name: "RSidebar",
|
|
7946
7951
|
props: {
|
|
7947
7952
|
modelValue: { type: Boolean, default: !1 }
|
|
7948
7953
|
},
|
|
7949
7954
|
setup(H) {
|
|
7950
|
-
const V = H, C =
|
|
7955
|
+
const V = H, C = B(() => ({
|
|
7951
7956
|
sidebar: !0,
|
|
7952
7957
|
"sidebar--open": V.modelValue
|
|
7953
7958
|
}));
|
|
7954
7959
|
return (L, M) => (t(), r("aside", {
|
|
7955
7960
|
class: f(g(C))
|
|
7956
7961
|
}, [
|
|
7957
|
-
S("nav",
|
|
7962
|
+
S("nav", N2, [
|
|
7958
7963
|
w(L.$slots, "default")
|
|
7959
7964
|
]),
|
|
7960
|
-
S("div",
|
|
7965
|
+
S("div", W2, [
|
|
7961
7966
|
w(L.$slots, "actions")
|
|
7962
7967
|
])
|
|
7963
7968
|
], 2));
|
|
7964
7969
|
}
|
|
7965
|
-
}),
|
|
7970
|
+
}), I2 = { class: "snackbar__text" }, Q2 = {
|
|
7966
7971
|
key: 0,
|
|
7967
7972
|
class: "snackbar__action"
|
|
7968
|
-
},
|
|
7973
|
+
}, G2 = {
|
|
7969
7974
|
key: 1,
|
|
7970
7975
|
class: "snackbar__close"
|
|
7971
|
-
},
|
|
7976
|
+
}, $5 = /* @__PURE__ */ P({
|
|
7972
7977
|
__name: "RSnackbar",
|
|
7973
7978
|
props: {
|
|
7974
7979
|
text: { default: "" },
|
|
@@ -7981,7 +7986,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7981
7986
|
},
|
|
7982
7987
|
emits: ["action", "close"],
|
|
7983
7988
|
setup(H, { emit: V }) {
|
|
7984
|
-
const C = H, L =
|
|
7989
|
+
const C = H, L = D(!1), M = () => {
|
|
7985
7990
|
V("action");
|
|
7986
7991
|
}, i = () => {
|
|
7987
7992
|
L.value = !1, V("close");
|
|
@@ -7990,7 +7995,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
7990
7995
|
C.timeout && setTimeout(() => {
|
|
7991
7996
|
L.value = !1, V("close");
|
|
7992
7997
|
}, C.timeout);
|
|
7993
|
-
}),
|
|
7998
|
+
}), G(
|
|
7994
7999
|
() => C.show,
|
|
7995
8000
|
(A) => {
|
|
7996
8001
|
L.value = A;
|
|
@@ -8003,39 +8008,39 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
8003
8008
|
[C.left ? "snackbar--left" : "snackbar--right"]: !0
|
|
8004
8009
|
})
|
|
8005
8010
|
}, [
|
|
8006
|
-
S("div",
|
|
8007
|
-
C.showAction ? (t(), r("div",
|
|
8011
|
+
S("div", I2, b(C.text), 1),
|
|
8012
|
+
C.showAction ? (t(), r("div", Q2, [
|
|
8008
8013
|
w(A.$slots, "action"),
|
|
8009
|
-
A.$slots.action ? h("", !0) : (t(),
|
|
8014
|
+
A.$slots.action ? h("", !0) : (t(), v(a1, {
|
|
8010
8015
|
key: 0,
|
|
8011
8016
|
size: "small",
|
|
8012
8017
|
variant: "ghost",
|
|
8013
8018
|
onClick: M
|
|
8014
8019
|
}, {
|
|
8015
8020
|
default: F1(() => [
|
|
8016
|
-
R1(
|
|
8021
|
+
R1(b(C.actionText), 1)
|
|
8017
8022
|
]),
|
|
8018
8023
|
_: 1
|
|
8019
8024
|
}))
|
|
8020
8025
|
])) : h("", !0),
|
|
8021
|
-
C.showClose ? (t(), r("div",
|
|
8026
|
+
C.showClose ? (t(), r("div", G2, [
|
|
8022
8027
|
w(A.$slots, "close"),
|
|
8023
|
-
A.$slots.close ? h("", !0) : (t(),
|
|
8028
|
+
A.$slots.close ? h("", !0) : (t(), v(F, {
|
|
8024
8029
|
key: 0,
|
|
8025
8030
|
name: "mdiClose",
|
|
8026
8031
|
size: 20,
|
|
8027
|
-
onClick:
|
|
8032
|
+
onClick: N(i, ["stop"])
|
|
8028
8033
|
}, null, 8, ["onClick"]))
|
|
8029
8034
|
])) : h("", !0)
|
|
8030
8035
|
], 2));
|
|
8031
8036
|
}
|
|
8032
|
-
}),
|
|
8037
|
+
}), z2 = { class: "switch-container" }, U2 = ["id", "checked"], $2 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), K2 = ["id", "for"], j2 = {
|
|
8033
8038
|
key: 0,
|
|
8034
8039
|
class: "switch-texts__error"
|
|
8035
|
-
},
|
|
8040
|
+
}, q2 = {
|
|
8036
8041
|
key: 1,
|
|
8037
8042
|
class: "switch-texts__hint"
|
|
8038
|
-
},
|
|
8043
|
+
}, K5 = /* @__PURE__ */ P({
|
|
8039
8044
|
__name: "RSwitch",
|
|
8040
8045
|
props: {
|
|
8041
8046
|
id: { default: "switch" },
|
|
@@ -8050,7 +8055,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
8050
8055
|
setup(H, { emit: V }) {
|
|
8051
8056
|
const C = H, L = J({
|
|
8052
8057
|
checked: !1
|
|
8053
|
-
}), M =
|
|
8058
|
+
}), M = B(() => ({
|
|
8054
8059
|
switch: !0,
|
|
8055
8060
|
"switch--disabled": C.disabled,
|
|
8056
8061
|
[`switch--${C.size}`]: C.size,
|
|
@@ -8058,7 +8063,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
8058
8063
|
})), i = (A) => {
|
|
8059
8064
|
C.disabled || (L.checked = A.target.checked, V("update:modelValue", L.checked));
|
|
8060
8065
|
};
|
|
8061
|
-
return
|
|
8066
|
+
return G(
|
|
8062
8067
|
() => C.modelValue,
|
|
8063
8068
|
(A) => {
|
|
8064
8069
|
L.checked = A;
|
|
@@ -8068,7 +8073,7 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
8068
8073
|
// TODO: find a better way to do this
|
|
8069
8074
|
immediate: !0
|
|
8070
8075
|
}
|
|
8071
|
-
), (A, e) => (t(), r("div",
|
|
8076
|
+
), (A, e) => (t(), r("div", z2, [
|
|
8072
8077
|
S("div", {
|
|
8073
8078
|
class: f(g(M))
|
|
8074
8079
|
}, [
|
|
@@ -8078,8 +8083,8 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
8078
8083
|
class: "switch__input",
|
|
8079
8084
|
type: "checkbox",
|
|
8080
8085
|
onChange: i
|
|
8081
|
-
}, null, 40,
|
|
8082
|
-
|
|
8086
|
+
}, null, 40, U2),
|
|
8087
|
+
$2
|
|
8083
8088
|
], 2),
|
|
8084
8089
|
S("div", {
|
|
8085
8090
|
class: f({
|
|
@@ -8091,17 +8096,17 @@ const L2 = ["onClick"], M2 = { class: "accordion__title" }, A2 = { class: "accor
|
|
|
8091
8096
|
id: C.id,
|
|
8092
8097
|
class: "switch-texts__label",
|
|
8093
8098
|
for: C.id
|
|
8094
|
-
},
|
|
8095
|
-
C.errorMsg ? (t(), r("p",
|
|
8099
|
+
}, b(C.label), 9, K2),
|
|
8100
|
+
C.errorMsg ? (t(), r("p", j2, b(C.errorMsg), 1)) : (t(), r("p", q2, b(C.hint), 1))
|
|
8096
8101
|
], 2)
|
|
8097
8102
|
]));
|
|
8098
8103
|
}
|
|
8099
8104
|
});
|
|
8100
8105
|
var H1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(H1 || {});
|
|
8101
|
-
const
|
|
8106
|
+
const Y2 = ["aria-disabled", "aria-selected", "disabled"], X2 = {
|
|
8102
8107
|
key: 0,
|
|
8103
8108
|
class: "tab-item__label"
|
|
8104
|
-
},
|
|
8109
|
+
}, J2 = /* @__PURE__ */ P({
|
|
8105
8110
|
__name: "RTabItem",
|
|
8106
8111
|
props: {
|
|
8107
8112
|
id: null,
|
|
@@ -8117,12 +8122,12 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8117
8122
|
},
|
|
8118
8123
|
emits: ["update:modelValue", "click:icon"],
|
|
8119
8124
|
setup(H, { emit: V }) {
|
|
8120
|
-
const C = H, L =
|
|
8125
|
+
const C = H, L = B(() => ({
|
|
8121
8126
|
"tab-item": !0,
|
|
8122
8127
|
[`tab-item--${C.variant}`]: !0,
|
|
8123
8128
|
"tab-item--tile": C.tile,
|
|
8124
8129
|
"tab-item--block": C.block
|
|
8125
|
-
})), M =
|
|
8130
|
+
})), M = B(() => ({
|
|
8126
8131
|
color: C.color
|
|
8127
8132
|
}));
|
|
8128
8133
|
function i(e) {
|
|
@@ -8137,29 +8142,29 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8137
8142
|
class: f(g(L)),
|
|
8138
8143
|
style: v1(g(M)),
|
|
8139
8144
|
disabled: C.disabled,
|
|
8140
|
-
onClick: d[0] || (d[0] =
|
|
8145
|
+
onClick: d[0] || (d[0] = N((l) => i(C.id), ["stop"]))
|
|
8141
8146
|
}, [
|
|
8142
8147
|
w(e.$slots, "prepend", {}, () => [
|
|
8143
|
-
C.variant !== g(H1).TEXT && C.prependIcon ? (t(),
|
|
8148
|
+
C.variant !== g(H1).TEXT && C.prependIcon ? (t(), v(F, {
|
|
8144
8149
|
key: 0,
|
|
8145
8150
|
class: "tab-item__prepend-icon",
|
|
8146
8151
|
name: C.prependIcon,
|
|
8147
8152
|
size: 16
|
|
8148
8153
|
}, null, 8, ["name"])) : h("", !0)
|
|
8149
8154
|
]),
|
|
8150
|
-
C.variant !== g(H1).ICON ? (t(), r("span",
|
|
8155
|
+
C.variant !== g(H1).ICON ? (t(), r("span", X2, b(C.label), 1)) : h("", !0),
|
|
8151
8156
|
w(e.$slots, "append", {}, () => [
|
|
8152
|
-
C.variant !== g(H1).TEXT && C.appendIcon ? (t(),
|
|
8157
|
+
C.variant !== g(H1).TEXT && C.appendIcon ? (t(), v(F, {
|
|
8153
8158
|
key: 0,
|
|
8154
8159
|
class: "tab-item__append-icon",
|
|
8155
8160
|
name: C.appendIcon,
|
|
8156
8161
|
size: 16,
|
|
8157
|
-
onClick:
|
|
8162
|
+
onClick: N(A, ["stop"])
|
|
8158
8163
|
}, null, 8, ["name", "onClick"])) : h("", !0)
|
|
8159
8164
|
])
|
|
8160
|
-
], 14,
|
|
8165
|
+
], 14, Y2));
|
|
8161
8166
|
}
|
|
8162
|
-
}),
|
|
8167
|
+
}), j5 = /* @__PURE__ */ P({
|
|
8163
8168
|
__name: "RTabs",
|
|
8164
8169
|
props: {
|
|
8165
8170
|
tabs: { default: () => [] },
|
|
@@ -8169,12 +8174,12 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8169
8174
|
},
|
|
8170
8175
|
emits: ["update:modelValue"],
|
|
8171
8176
|
setup(H, { emit: V }) {
|
|
8172
|
-
const C = H, L =
|
|
8177
|
+
const C = H, L = D(C.modelValue || C.tabs[0].id), M = B(() => ({
|
|
8173
8178
|
tabs: !0,
|
|
8174
8179
|
"tabs--block": C.block,
|
|
8175
8180
|
"tabs--tile": C.tile
|
|
8176
8181
|
}));
|
|
8177
|
-
|
|
8182
|
+
G(
|
|
8178
8183
|
() => L.value,
|
|
8179
8184
|
() => {
|
|
8180
8185
|
V("update:modelValue", L.value);
|
|
@@ -8187,12 +8192,12 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8187
8192
|
class: f(g(M))
|
|
8188
8193
|
}, [
|
|
8189
8194
|
w(A.$slots, "default", {}, () => [
|
|
8190
|
-
(t(!0), r(j, null, Y(C.tabs, (d,
|
|
8195
|
+
(t(!0), r(j, null, Y(C.tabs, (d, l) => (t(), v(J2, {
|
|
8191
8196
|
id: d.id,
|
|
8192
|
-
key:
|
|
8197
|
+
key: l,
|
|
8193
8198
|
modelValue: L.value,
|
|
8194
8199
|
"onUpdate:modelValue": e[0] || (e[0] = (Z) => L.value = Z),
|
|
8195
|
-
active:
|
|
8200
|
+
active: l === L.value,
|
|
8196
8201
|
disabled: d.disabled,
|
|
8197
8202
|
prependIcon: d.prependIcon,
|
|
8198
8203
|
appendIcon: d.appendIcon,
|
|
@@ -8205,13 +8210,13 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8205
8210
|
])
|
|
8206
8211
|
], 2));
|
|
8207
8212
|
}
|
|
8208
|
-
}),
|
|
8213
|
+
}), C5 = { class: "container" }, H5 = ["id", "disabled", "placeholder", "value"], V5 = {
|
|
8209
8214
|
key: 1,
|
|
8210
8215
|
class: "textarea__error"
|
|
8211
|
-
},
|
|
8216
|
+
}, L5 = {
|
|
8212
8217
|
key: 2,
|
|
8213
8218
|
class: "textarea__hint"
|
|
8214
|
-
},
|
|
8219
|
+
}, q5 = /* @__PURE__ */ P({
|
|
8215
8220
|
__name: "RTextArea",
|
|
8216
8221
|
props: {
|
|
8217
8222
|
id: { default: "" },
|
|
@@ -8230,7 +8235,7 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8230
8235
|
function M(i) {
|
|
8231
8236
|
V("update:modelValue", i.target.value);
|
|
8232
8237
|
}
|
|
8233
|
-
return
|
|
8238
|
+
return G(
|
|
8234
8239
|
() => C.modelValue,
|
|
8235
8240
|
(i) => {
|
|
8236
8241
|
L.value = i;
|
|
@@ -8238,8 +8243,8 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8238
8243
|
{
|
|
8239
8244
|
immediate: !0
|
|
8240
8245
|
}
|
|
8241
|
-
), (i, A) => (t(), r("div",
|
|
8242
|
-
C.label ? (t(),
|
|
8246
|
+
), (i, A) => (t(), r("div", C5, [
|
|
8247
|
+
C.label ? (t(), v(x1, {
|
|
8243
8248
|
key: 0,
|
|
8244
8249
|
id: "textarea",
|
|
8245
8250
|
class: "textarea__label",
|
|
@@ -8256,18 +8261,18 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8256
8261
|
placeholder: C.placeholder,
|
|
8257
8262
|
value: L.value,
|
|
8258
8263
|
onInput: M
|
|
8259
|
-
}, null, 42,
|
|
8260
|
-
C.errorMsg ? (t(), r("p",
|
|
8264
|
+
}, null, 42, H5),
|
|
8265
|
+
C.errorMsg ? (t(), r("p", V5, b(C.errorMsg), 1)) : (t(), r("p", L5, b(C.hint), 1))
|
|
8261
8266
|
]));
|
|
8262
8267
|
}
|
|
8263
|
-
}),
|
|
8268
|
+
}), M5 = {
|
|
8264
8269
|
class: /* @__PURE__ */ f({
|
|
8265
8270
|
textfield__wrapper: !0
|
|
8266
8271
|
})
|
|
8267
|
-
},
|
|
8272
|
+
}, A5 = { class: "input-wrapper" }, i5 = ["id", "disabled", "placeholder", "type", "value", "min", "max"], e5 = { class: "textfield__error" }, d5 = {
|
|
8268
8273
|
key: 0,
|
|
8269
8274
|
class: "textfield__hint"
|
|
8270
|
-
},
|
|
8275
|
+
}, t5 = /* @__PURE__ */ P({
|
|
8271
8276
|
__name: "RTextfield",
|
|
8272
8277
|
props: {
|
|
8273
8278
|
id: { default: "" },
|
|
@@ -8294,50 +8299,50 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8294
8299
|
"click:clear"
|
|
8295
8300
|
],
|
|
8296
8301
|
setup(H, { emit: V }) {
|
|
8297
|
-
const C = H, L =
|
|
8302
|
+
const C = H, L = D(), M = J({
|
|
8298
8303
|
value: ""
|
|
8299
|
-
}), i =
|
|
8304
|
+
}), i = D(C.type), A = {
|
|
8300
8305
|
password: "mdiLock",
|
|
8301
8306
|
email: "mdiEmailOutline",
|
|
8302
8307
|
tel: "mdiPhone",
|
|
8303
8308
|
url: "mdiLink",
|
|
8304
8309
|
number: "mdiNumeric",
|
|
8305
8310
|
text: ""
|
|
8306
|
-
}, e =
|
|
8307
|
-
const { disabled: c, loading: y, clearable:
|
|
8311
|
+
}, e = D(!1), d = B(() => !!M.value), l = B(() => {
|
|
8312
|
+
const { disabled: c, loading: y, clearable: x, errorMsg: E } = C;
|
|
8308
8313
|
return {
|
|
8309
8314
|
textfield: !0,
|
|
8310
8315
|
"textfield--error": E == null ? void 0 : E.length,
|
|
8311
8316
|
"textfield--loading": y,
|
|
8312
8317
|
"textfield--disabled": c,
|
|
8313
|
-
"textfield--clearable":
|
|
8318
|
+
"textfield--clearable": x,
|
|
8314
8319
|
"textfield--focus": e.value,
|
|
8315
8320
|
"textfield--filled": d.value
|
|
8316
8321
|
};
|
|
8317
|
-
}), Z =
|
|
8322
|
+
}), Z = B(() => ({
|
|
8318
8323
|
"textfield__prepend-icon": !0,
|
|
8319
8324
|
"textfield__prepend-icon--loading": C.loading,
|
|
8320
8325
|
"textfield__prepend-icon--error": u.value && d.value
|
|
8321
|
-
})),
|
|
8326
|
+
})), m = B(() => ({
|
|
8322
8327
|
"textfield__append-icon": !0,
|
|
8323
8328
|
"textfield__append-icon--clear": s.value,
|
|
8324
8329
|
"textfield__append-icon--error": u.value
|
|
8325
|
-
})),
|
|
8330
|
+
})), p = B(() => M.value.length > 0), u = B(() => {
|
|
8326
8331
|
var c;
|
|
8327
8332
|
return (c = C.errorMsg) == null ? void 0 : c.length;
|
|
8328
|
-
}), s =
|
|
8333
|
+
}), s = B(() => C.clearable && p.value), k = B(() => {
|
|
8329
8334
|
const { prependIcon: c, type: y } = C;
|
|
8330
8335
|
return c === "none" ? "" : c || A[y];
|
|
8331
|
-
}),
|
|
8336
|
+
}), o = B(() => {
|
|
8332
8337
|
const { appendIcon: c, type: y } = C;
|
|
8333
8338
|
return c === "none" ? "" : u.value ? "mdiAlertCircleOutline" : s.value && ["text", "email"].includes(y) ? "mdiClose" : y === "password" && i.value === "password" ? "mdiEyeOutline" : y === "password" && i.value === "text" ? "mdiEyeOffOutline" : c;
|
|
8334
|
-
}),
|
|
8339
|
+
}), a = (c) => {
|
|
8335
8340
|
e.value = !0, V("focus", c);
|
|
8336
|
-
},
|
|
8341
|
+
}, n = (c) => {
|
|
8337
8342
|
e.value = !1, V("blur", c);
|
|
8338
|
-
},
|
|
8343
|
+
}, O = (c) => {
|
|
8339
8344
|
M.value = c.target.value, V("input", c);
|
|
8340
|
-
},
|
|
8345
|
+
}, T = () => {
|
|
8341
8346
|
var c;
|
|
8342
8347
|
if (s.value) {
|
|
8343
8348
|
M.value = "", (c = L.value) == null || c.focus(), V("click:clear", {
|
|
@@ -8347,14 +8352,14 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8347
8352
|
}
|
|
8348
8353
|
V("click:icon", {
|
|
8349
8354
|
value: i.value === "number" ? +M.value : M.value
|
|
8350
|
-
}),
|
|
8351
|
-
},
|
|
8355
|
+
}), R();
|
|
8356
|
+
}, R = () => {
|
|
8352
8357
|
i.value = i.value === "password" ? "text" : "password";
|
|
8353
|
-
},
|
|
8358
|
+
}, _ = () => {
|
|
8354
8359
|
var c;
|
|
8355
8360
|
(c = L.value) == null || c.focus();
|
|
8356
8361
|
};
|
|
8357
|
-
return
|
|
8362
|
+
return G(
|
|
8358
8363
|
() => C.modelValue,
|
|
8359
8364
|
(c) => {
|
|
8360
8365
|
M.value = c;
|
|
@@ -8362,7 +8367,7 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8362
8367
|
{
|
|
8363
8368
|
immediate: !0
|
|
8364
8369
|
}
|
|
8365
|
-
),
|
|
8370
|
+
), G(
|
|
8366
8371
|
() => M.value,
|
|
8367
8372
|
(c) => {
|
|
8368
8373
|
V(
|
|
@@ -8371,25 +8376,25 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8371
8376
|
);
|
|
8372
8377
|
}
|
|
8373
8378
|
), (c, y) => (t(), r("fieldset", null, [
|
|
8374
|
-
S("div",
|
|
8375
|
-
|
|
8379
|
+
S("div", M5, [
|
|
8380
|
+
W(x1, {
|
|
8376
8381
|
id: C.id,
|
|
8377
8382
|
class: f({
|
|
8378
8383
|
textfield__label: !0
|
|
8379
8384
|
}),
|
|
8380
8385
|
for: C.id,
|
|
8381
8386
|
text: C.label,
|
|
8382
|
-
onClick:
|
|
8387
|
+
onClick: _
|
|
8383
8388
|
}, null, 8, ["id", "for", "text"]),
|
|
8384
|
-
S("div",
|
|
8389
|
+
S("div", A5, [
|
|
8385
8390
|
S("div", {
|
|
8386
|
-
class: f(g(
|
|
8391
|
+
class: f(g(l))
|
|
8387
8392
|
}, [
|
|
8388
8393
|
w(c.$slots, "prepend"),
|
|
8389
|
-
g(
|
|
8394
|
+
g(k) && !c.$slots.prepend ? (t(), v(F, {
|
|
8390
8395
|
key: 0,
|
|
8391
8396
|
class: f(g(Z)),
|
|
8392
|
-
name: g(
|
|
8397
|
+
name: g(k),
|
|
8393
8398
|
size: 20
|
|
8394
8399
|
}, null, 8, ["class", "name"])) : h("", !0),
|
|
8395
8400
|
S("input", {
|
|
@@ -8402,21 +8407,21 @@ const X2 = ["aria-disabled", "aria-selected", "disabled"], J2 = {
|
|
|
8402
8407
|
value: M.value,
|
|
8403
8408
|
min: C.min,
|
|
8404
8409
|
max: C.max,
|
|
8405
|
-
onBlur:
|
|
8406
|
-
onFocus:
|
|
8407
|
-
onInput:
|
|
8408
|
-
}, null, 40,
|
|
8410
|
+
onBlur: n,
|
|
8411
|
+
onFocus: a,
|
|
8412
|
+
onInput: O
|
|
8413
|
+
}, null, 40, i5),
|
|
8409
8414
|
w(c.$slots, "append"),
|
|
8410
|
-
g(
|
|
8415
|
+
g(o) && !c.$slots.append ? (t(), v(F, {
|
|
8411
8416
|
key: 1,
|
|
8412
|
-
class: f(g(
|
|
8413
|
-
name: `${g(
|
|
8417
|
+
class: f(g(m)),
|
|
8418
|
+
name: `${g(o)}`,
|
|
8414
8419
|
size: 20,
|
|
8415
|
-
onClick:
|
|
8420
|
+
onClick: T
|
|
8416
8421
|
}, null, 8, ["class", "name"])) : h("", !0)
|
|
8417
8422
|
], 2),
|
|
8418
|
-
S("div",
|
|
8419
|
-
C.errorMsg ? h("", !0) : (t(), r("div",
|
|
8423
|
+
S("div", e5, b(C.errorMsg), 1),
|
|
8424
|
+
C.errorMsg ? h("", !0) : (t(), r("div", d5, b(C.hint), 1))
|
|
8420
8425
|
])
|
|
8421
8426
|
])
|
|
8422
8427
|
]));
|
|
@@ -8436,41 +8441,41 @@ function u1(H) {
|
|
|
8436
8441
|
}
|
|
8437
8442
|
function h1(H, V, C) {
|
|
8438
8443
|
let { reference: L, floating: M } = H;
|
|
8439
|
-
const i = L.x + L.width / 2 - M.width / 2, A = L.y + L.height / 2 - M.height / 2, e = A1(V), d = u1(e),
|
|
8440
|
-
let
|
|
8444
|
+
const i = L.x + L.width / 2 - M.width / 2, A = L.y + L.height / 2 - M.height / 2, e = A1(V), d = u1(e), l = L[d] / 2 - M[d] / 2, Z = e === "x";
|
|
8445
|
+
let m;
|
|
8441
8446
|
switch (M1(V)) {
|
|
8442
8447
|
case "top":
|
|
8443
|
-
|
|
8448
|
+
m = { x: i, y: L.y - M.height };
|
|
8444
8449
|
break;
|
|
8445
8450
|
case "bottom":
|
|
8446
|
-
|
|
8451
|
+
m = { x: i, y: L.y + L.height };
|
|
8447
8452
|
break;
|
|
8448
8453
|
case "right":
|
|
8449
|
-
|
|
8454
|
+
m = { x: L.x + L.width, y: A };
|
|
8450
8455
|
break;
|
|
8451
8456
|
case "left":
|
|
8452
|
-
|
|
8457
|
+
m = { x: L.x - M.width, y: A };
|
|
8453
8458
|
break;
|
|
8454
8459
|
default:
|
|
8455
|
-
|
|
8460
|
+
m = { x: L.x, y: L.y };
|
|
8456
8461
|
}
|
|
8457
8462
|
switch (l1(V)) {
|
|
8458
8463
|
case "start":
|
|
8459
|
-
|
|
8464
|
+
m[e] -= l * (C && Z ? -1 : 1);
|
|
8460
8465
|
break;
|
|
8461
8466
|
case "end":
|
|
8462
|
-
|
|
8467
|
+
m[e] += l * (C && Z ? -1 : 1);
|
|
8463
8468
|
}
|
|
8464
|
-
return
|
|
8469
|
+
return m;
|
|
8465
8470
|
}
|
|
8466
|
-
const
|
|
8471
|
+
const m5 = async (H, V, C) => {
|
|
8467
8472
|
const { placement: L = "bottom", strategy: M = "absolute", middleware: i = [], platform: A } = C, e = i.filter(Boolean), d = await (A.isRTL == null ? void 0 : A.isRTL(V));
|
|
8468
|
-
let
|
|
8469
|
-
for (let
|
|
8470
|
-
const { name:
|
|
8471
|
-
Z =
|
|
8473
|
+
let l = await A.getElementRects({ reference: H, floating: V, strategy: M }), { x: Z, y: m } = h1(l, L, d), p = L, u = {}, s = 0;
|
|
8474
|
+
for (let k = 0; k < e.length; k++) {
|
|
8475
|
+
const { name: o, fn: a } = e[k], { x: n, y: O, data: T, reset: R } = await a({ x: Z, y: m, initialPlacement: L, placement: p, strategy: M, middlewareData: u, rects: l, platform: A, elements: { reference: H, floating: V } });
|
|
8476
|
+
Z = n ?? Z, m = O ?? m, u = { ...u, [o]: { ...u[o], ...T } }, R && s <= 50 && (s++, typeof R == "object" && (R.placement && (p = R.placement), R.rects && (l = R.rects === !0 ? await A.getElementRects({ reference: H, floating: V, strategy: M }) : R.rects), { x: Z, y: m } = h1(l, p, d)), k = -1);
|
|
8472
8477
|
}
|
|
8473
|
-
return { x: Z, y:
|
|
8478
|
+
return { x: Z, y: m, placement: p, strategy: M, middlewareData: u };
|
|
8474
8479
|
};
|
|
8475
8480
|
function D1(H) {
|
|
8476
8481
|
return typeof H != "number" ? function(V) {
|
|
@@ -8483,60 +8488,60 @@ function e1(H) {
|
|
|
8483
8488
|
async function d1(H, V) {
|
|
8484
8489
|
var C;
|
|
8485
8490
|
V === void 0 && (V = {});
|
|
8486
|
-
const { x: L, y: M, platform: i, rects: A, elements: e, strategy: d } = H, { boundary:
|
|
8487
|
-
return { top:
|
|
8491
|
+
const { x: L, y: M, platform: i, rects: A, elements: e, strategy: d } = H, { boundary: l = "clippingAncestors", rootBoundary: Z = "viewport", elementContext: m = "floating", altBoundary: p = !1, padding: u = 0 } = V, s = D1(u), k = e[p ? m === "floating" ? "reference" : "floating" : m], o = e1(await i.getClippingRect({ element: (C = await (i.isElement == null ? void 0 : i.isElement(k))) == null || C ? k : k.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(e.floating)), boundary: l, rootBoundary: Z, strategy: d })), a = e1(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: m === "floating" ? { ...A.floating, x: L, y: M } : A.reference, offsetParent: await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(e.floating)), strategy: d }) : A[m]);
|
|
8492
|
+
return { top: o.top - a.top + s.top, bottom: a.bottom - o.bottom + s.bottom, left: o.left - a.left + s.left, right: a.right - o.right + s.right };
|
|
8488
8493
|
}
|
|
8489
|
-
const
|
|
8494
|
+
const l5 = Math.min, o5 = Math.max;
|
|
8490
8495
|
function Z1(H, V, C) {
|
|
8491
|
-
return
|
|
8496
|
+
return o5(H, l5(V, C));
|
|
8492
8497
|
}
|
|
8493
|
-
const
|
|
8498
|
+
const n5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
8494
8499
|
const { element: C, padding: L = 0 } = H ?? {}, { x: M, y: i, placement: A, rects: e, platform: d } = V;
|
|
8495
8500
|
if (C == null)
|
|
8496
8501
|
return {};
|
|
8497
|
-
const
|
|
8498
|
-
let
|
|
8499
|
-
|
|
8500
|
-
const
|
|
8501
|
-
return { [
|
|
8502
|
-
} }),
|
|
8502
|
+
const l = D1(L), Z = { x: M, y: i }, m = A1(A), p = l1(A), u = u1(m), s = await d.getDimensions(C), k = m === "y" ? "top" : "left", o = m === "y" ? "bottom" : "right", a = e.reference[u] + e.reference[m] - Z[m] - e.floating[u], n = Z[m] - e.reference[m], O = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8503
|
+
let T = O ? m === "y" ? O.clientHeight || 0 : O.clientWidth || 0 : 0;
|
|
8504
|
+
T === 0 && (T = e.floating[u]);
|
|
8505
|
+
const R = a / 2 - n / 2, _ = l[k], c = T - s[u] - l[o], y = T / 2 - s[u] / 2 + R, x = Z1(_, y, c), E = (p === "start" ? l[k] : l[o]) > 0 && y !== x && e.reference[u] <= e.floating[u];
|
|
8506
|
+
return { [m]: Z[m] - (E ? y < _ ? _ - y : c - y : 0), data: { [m]: x, centerOffset: y - x } };
|
|
8507
|
+
} }), r5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8503
8508
|
function t1(H) {
|
|
8504
|
-
return H.replace(/left|right|bottom|top/g, (V) =>
|
|
8509
|
+
return H.replace(/left|right|bottom|top/g, (V) => r5[V]);
|
|
8505
8510
|
}
|
|
8506
|
-
function
|
|
8511
|
+
function a5(H, V, C) {
|
|
8507
8512
|
C === void 0 && (C = !1);
|
|
8508
8513
|
const L = l1(H), M = A1(H), i = u1(M);
|
|
8509
8514
|
let A = M === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
|
|
8510
8515
|
return V.reference[i] > V.floating[i] && (A = t1(A)), { main: A, cross: t1(A) };
|
|
8511
8516
|
}
|
|
8512
|
-
const
|
|
8517
|
+
const Z5 = { start: "end", end: "start" };
|
|
8513
8518
|
function f1(H) {
|
|
8514
|
-
return H.replace(/start|end/g, (V) =>
|
|
8519
|
+
return H.replace(/start|end/g, (V) => Z5[V]);
|
|
8515
8520
|
}
|
|
8516
8521
|
const E1 = ["top", "right", "bottom", "left"];
|
|
8517
8522
|
E1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
|
|
8518
|
-
const
|
|
8523
|
+
const S5 = function(H) {
|
|
8519
8524
|
return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
|
|
8520
8525
|
var C;
|
|
8521
|
-
const { placement: L, middlewareData: M, rects: i, initialPlacement: A, platform: e, elements: d } = V, { mainAxis:
|
|
8522
|
-
const
|
|
8523
|
-
return [f1(y),
|
|
8524
|
-
}(A)),
|
|
8525
|
-
let
|
|
8526
|
-
if (
|
|
8527
|
-
const { main: y, cross:
|
|
8528
|
-
|
|
8526
|
+
const { placement: L, middlewareData: M, rects: i, initialPlacement: A, platform: e, elements: d } = V, { mainAxis: l = !0, crossAxis: Z = !0, fallbackPlacements: m, fallbackStrategy: p = "bestFit", flipAlignment: u = !0, ...s } = H, k = M1(L), o = m || (k === A || !u ? [t1(A)] : function(y) {
|
|
8527
|
+
const x = t1(y);
|
|
8528
|
+
return [f1(y), x, f1(x)];
|
|
8529
|
+
}(A)), a = [A, ...o], n = await d1(V, s), O = [];
|
|
8530
|
+
let T = ((C = M.flip) == null ? void 0 : C.overflows) || [];
|
|
8531
|
+
if (l && O.push(n[k]), Z) {
|
|
8532
|
+
const { main: y, cross: x } = a5(L, i, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8533
|
+
O.push(n[y], n[x]);
|
|
8529
8534
|
}
|
|
8530
|
-
if (
|
|
8531
|
-
var
|
|
8532
|
-
const y = ((
|
|
8533
|
-
if (
|
|
8534
|
-
return { data: { index: y, overflows:
|
|
8535
|
+
if (T = [...T, { placement: L, overflows: O }], !O.every((y) => y <= 0)) {
|
|
8536
|
+
var R, _;
|
|
8537
|
+
const y = ((R = (_ = M.flip) == null ? void 0 : _.index) != null ? R : 0) + 1, x = a[y];
|
|
8538
|
+
if (x)
|
|
8539
|
+
return { data: { index: y, overflows: T }, reset: { placement: x } };
|
|
8535
8540
|
let E = "bottom";
|
|
8536
|
-
switch (
|
|
8541
|
+
switch (p) {
|
|
8537
8542
|
case "bestFit": {
|
|
8538
8543
|
var c;
|
|
8539
|
-
const s1 = (c =
|
|
8544
|
+
const s1 = (c = T.map((i1) => [i1, i1.overflows.filter((C1) => C1 > 0).reduce((C1, U1) => C1 + U1, 0)]).sort((i1, C1) => i1[1] - C1[1])[0]) == null ? void 0 : c[0].placement;
|
|
8540
8545
|
s1 && (E = s1);
|
|
8541
8546
|
break;
|
|
8542
8547
|
}
|
|
@@ -8555,7 +8560,7 @@ function g1(H, V) {
|
|
|
8555
8560
|
function k1(H) {
|
|
8556
8561
|
return E1.some((V) => H[V] >= 0);
|
|
8557
8562
|
}
|
|
8558
|
-
const
|
|
8563
|
+
const u5 = function(H) {
|
|
8559
8564
|
let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
|
|
8560
8565
|
return { name: "hide", async fn(L) {
|
|
8561
8566
|
const { rects: M } = L;
|
|
@@ -8572,42 +8577,42 @@ const c5 = function(H) {
|
|
|
8572
8577
|
return {};
|
|
8573
8578
|
}
|
|
8574
8579
|
} };
|
|
8575
|
-
},
|
|
8580
|
+
}, c5 = function(H) {
|
|
8576
8581
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8577
8582
|
const { x: C, y: L } = V, M = await async function(i, A) {
|
|
8578
|
-
const { placement: e, platform: d, elements:
|
|
8579
|
-
let { mainAxis:
|
|
8580
|
-
return
|
|
8583
|
+
const { placement: e, platform: d, elements: l } = i, Z = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), m = M1(e), p = l1(e), u = A1(e) === "x", s = ["left", "top"].includes(m) ? -1 : 1, k = Z && u ? -1 : 1, o = typeof A == "function" ? A(i) : A;
|
|
8584
|
+
let { mainAxis: a, crossAxis: n, alignmentAxis: O } = typeof o == "number" ? { mainAxis: o, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...o };
|
|
8585
|
+
return p && typeof O == "number" && (n = p === "end" ? -1 * O : O), u ? { x: n * k, y: a * s } : { x: a * s, y: n * k };
|
|
8581
8586
|
}(V, H);
|
|
8582
8587
|
return { x: C + M.x, y: L + M.y, data: M };
|
|
8583
8588
|
} };
|
|
8584
8589
|
};
|
|
8585
|
-
function
|
|
8590
|
+
function s5(H) {
|
|
8586
8591
|
return H === "x" ? "y" : "x";
|
|
8587
8592
|
}
|
|
8588
|
-
const
|
|
8593
|
+
const O5 = function(H) {
|
|
8589
8594
|
return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
|
|
8590
|
-
const { x: C, y: L, placement: M } = V, { mainAxis: i = !0, crossAxis: A = !1, limiter: e = { fn: (
|
|
8591
|
-
let { x:
|
|
8592
|
-
return { x:
|
|
8593
|
-
} }, ...d } = H,
|
|
8594
|
-
let u =
|
|
8595
|
+
const { x: C, y: L, placement: M } = V, { mainAxis: i = !0, crossAxis: A = !1, limiter: e = { fn: (o) => {
|
|
8596
|
+
let { x: a, y: n } = o;
|
|
8597
|
+
return { x: a, y: n };
|
|
8598
|
+
} }, ...d } = H, l = { x: C, y: L }, Z = await d1(V, d), m = A1(M1(M)), p = s5(m);
|
|
8599
|
+
let u = l[m], s = l[p];
|
|
8595
8600
|
if (i) {
|
|
8596
|
-
const
|
|
8597
|
-
u = Z1(u + Z[
|
|
8601
|
+
const o = m === "y" ? "bottom" : "right";
|
|
8602
|
+
u = Z1(u + Z[m === "y" ? "top" : "left"], u, u - Z[o]);
|
|
8598
8603
|
}
|
|
8599
8604
|
if (A) {
|
|
8600
|
-
const
|
|
8601
|
-
s = Z1(s + Z[
|
|
8605
|
+
const o = p === "y" ? "bottom" : "right";
|
|
8606
|
+
s = Z1(s + Z[p === "y" ? "top" : "left"], s, s - Z[o]);
|
|
8602
8607
|
}
|
|
8603
|
-
const
|
|
8604
|
-
return { ...
|
|
8608
|
+
const k = e.fn({ ...V, [m]: u, [p]: s });
|
|
8609
|
+
return { ...k, data: { x: k.x - C, y: k.y - L } };
|
|
8605
8610
|
} };
|
|
8606
8611
|
};
|
|
8607
8612
|
function _1(H) {
|
|
8608
8613
|
return H && H.document && H.location && H.alert && H.setInterval;
|
|
8609
8614
|
}
|
|
8610
|
-
function
|
|
8615
|
+
function z(H) {
|
|
8611
8616
|
if (H == null)
|
|
8612
8617
|
return window;
|
|
8613
8618
|
if (!_1(H)) {
|
|
@@ -8616,8 +8621,8 @@ function G(H) {
|
|
|
8616
8621
|
}
|
|
8617
8622
|
return H;
|
|
8618
8623
|
}
|
|
8619
|
-
function
|
|
8620
|
-
return
|
|
8624
|
+
function I(H) {
|
|
8625
|
+
return z(H).getComputedStyle(H);
|
|
8621
8626
|
}
|
|
8622
8627
|
function K(H) {
|
|
8623
8628
|
return _1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
|
|
@@ -8626,24 +8631,24 @@ function N1() {
|
|
|
8626
8631
|
const H = navigator.userAgentData;
|
|
8627
8632
|
return H && Array.isArray(H.brands) ? H.brands.map((V) => V.brand + "/" + V.version).join(" ") : navigator.userAgent;
|
|
8628
8633
|
}
|
|
8629
|
-
function
|
|
8630
|
-
return H instanceof
|
|
8634
|
+
function Q(H) {
|
|
8635
|
+
return H instanceof z(H).HTMLElement;
|
|
8631
8636
|
}
|
|
8632
8637
|
function X(H) {
|
|
8633
|
-
return H instanceof
|
|
8638
|
+
return H instanceof z(H).Element;
|
|
8634
8639
|
}
|
|
8635
8640
|
function B1(H) {
|
|
8636
|
-
return typeof ShadowRoot > "u" ? !1 : H instanceof
|
|
8641
|
+
return typeof ShadowRoot > "u" ? !1 : H instanceof z(H).ShadowRoot || H instanceof ShadowRoot;
|
|
8637
8642
|
}
|
|
8638
8643
|
function o1(H) {
|
|
8639
|
-
const { overflow: V, overflowX: C, overflowY: L, display: M } =
|
|
8644
|
+
const { overflow: V, overflowX: C, overflowY: L, display: M } = I(H);
|
|
8640
8645
|
return /auto|scroll|overlay|hidden/.test(V + L + C) && !["inline", "contents"].includes(M);
|
|
8641
8646
|
}
|
|
8642
|
-
function
|
|
8647
|
+
function p5(H) {
|
|
8643
8648
|
return ["table", "td", "th"].includes(K(H));
|
|
8644
8649
|
}
|
|
8645
8650
|
function S1(H) {
|
|
8646
|
-
const V = /firefox/i.test(N1()), C =
|
|
8651
|
+
const V = /firefox/i.test(N1()), C = I(H), L = C.backdropFilter || C.WebkitBackdropFilter;
|
|
8647
8652
|
return C.transform !== "none" || C.perspective !== "none" || !!L && L !== "none" || V && C.willChange === "filter" || V && !!C.filter && C.filter !== "none" || ["transform", "perspective"].some((M) => C.willChange.includes(M)) || ["paint", "layout", "strict", "content"].some((M) => {
|
|
8648
8653
|
const i = C.contain;
|
|
8649
8654
|
return i != null && i.includes(M);
|
|
@@ -8660,13 +8665,13 @@ function q(H, V, C) {
|
|
|
8660
8665
|
var L, M, i, A;
|
|
8661
8666
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8662
8667
|
const e = H.getBoundingClientRect();
|
|
8663
|
-
let d = 1,
|
|
8664
|
-
V &&
|
|
8665
|
-
const Z = X(H) ?
|
|
8666
|
-
return { width: s, height:
|
|
8668
|
+
let d = 1, l = 1;
|
|
8669
|
+
V && Q(H) && (d = H.offsetWidth > 0 && m1(e.width) / H.offsetWidth || 1, l = H.offsetHeight > 0 && m1(e.height) / H.offsetHeight || 1);
|
|
8670
|
+
const Z = X(H) ? z(H) : window, m = !W1() && C, p = (e.left + (m && (L = (M = Z.visualViewport) == null ? void 0 : M.offsetLeft) != null ? L : 0)) / d, u = (e.top + (m && (i = (A = Z.visualViewport) == null ? void 0 : A.offsetTop) != null ? i : 0)) / l, s = e.width / d, k = e.height / l;
|
|
8671
|
+
return { width: s, height: k, top: u, right: p + s, bottom: u + k, left: p, x: p, y: u };
|
|
8667
8672
|
}
|
|
8668
8673
|
function $(H) {
|
|
8669
|
-
return (V = H, (V instanceof
|
|
8674
|
+
return (V = H, (V instanceof z(V).Node ? H.ownerDocument : H.document) || window.document).documentElement;
|
|
8670
8675
|
var V;
|
|
8671
8676
|
}
|
|
8672
8677
|
function n1(H) {
|
|
@@ -8675,15 +8680,15 @@ function n1(H) {
|
|
|
8675
8680
|
function I1(H) {
|
|
8676
8681
|
return q($(H)).left + n1(H).scrollLeft;
|
|
8677
8682
|
}
|
|
8678
|
-
function
|
|
8679
|
-
const L =
|
|
8680
|
-
const
|
|
8681
|
-
return m1(
|
|
8683
|
+
function h5(H, V, C) {
|
|
8684
|
+
const L = Q(V), M = $(V), i = q(H, L && function(d) {
|
|
8685
|
+
const l = q(d);
|
|
8686
|
+
return m1(l.width) !== d.offsetWidth || m1(l.height) !== d.offsetHeight;
|
|
8682
8687
|
}(V), C === "fixed");
|
|
8683
8688
|
let A = { scrollLeft: 0, scrollTop: 0 };
|
|
8684
8689
|
const e = { x: 0, y: 0 };
|
|
8685
8690
|
if (L || !L && C !== "fixed")
|
|
8686
|
-
if ((K(V) !== "body" || o1(M)) && (A = n1(V)),
|
|
8691
|
+
if ((K(V) !== "body" || o1(M)) && (A = n1(V)), Q(V)) {
|
|
8687
8692
|
const d = q(V, !0);
|
|
8688
8693
|
e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
|
|
8689
8694
|
} else
|
|
@@ -8697,16 +8702,16 @@ function L1(H) {
|
|
|
8697
8702
|
return B1(V) ? V.host : V;
|
|
8698
8703
|
}
|
|
8699
8704
|
function y1(H) {
|
|
8700
|
-
return
|
|
8705
|
+
return Q(H) && I(H).position !== "fixed" ? H.offsetParent : null;
|
|
8701
8706
|
}
|
|
8702
8707
|
function w1(H) {
|
|
8703
|
-
const V =
|
|
8708
|
+
const V = z(H);
|
|
8704
8709
|
let C = y1(H);
|
|
8705
|
-
for (; C &&
|
|
8710
|
+
for (; C && p5(C) && I(C).position === "static"; )
|
|
8706
8711
|
C = y1(C);
|
|
8707
|
-
return C && (K(C) === "html" || K(C) === "body" &&
|
|
8712
|
+
return C && (K(C) === "html" || K(C) === "body" && I(C).position === "static" && !S1(C)) ? V : C || function(L) {
|
|
8708
8713
|
let M = L1(L);
|
|
8709
|
-
for (;
|
|
8714
|
+
for (; Q(M) && !c1(M); ) {
|
|
8710
8715
|
if (S1(M))
|
|
8711
8716
|
return M;
|
|
8712
8717
|
M = L1(M);
|
|
@@ -8716,89 +8721,89 @@ function w1(H) {
|
|
|
8716
8721
|
}
|
|
8717
8722
|
function Q1(H) {
|
|
8718
8723
|
const V = L1(H);
|
|
8719
|
-
return c1(V) ? H.ownerDocument.body :
|
|
8724
|
+
return c1(V) ? H.ownerDocument.body : Q(V) && o1(V) ? V : Q1(V);
|
|
8720
8725
|
}
|
|
8721
8726
|
function G1(H, V) {
|
|
8722
8727
|
var C;
|
|
8723
8728
|
V === void 0 && (V = []);
|
|
8724
|
-
const L = Q1(H), M = L === ((C = H.ownerDocument) == null ? void 0 : C.body), i =
|
|
8729
|
+
const L = Q1(H), M = L === ((C = H.ownerDocument) == null ? void 0 : C.body), i = z(L), A = M ? [i].concat(i.visualViewport || [], o1(L) ? L : []) : L, e = V.concat(A);
|
|
8725
8730
|
return M ? e : e.concat(G1(A));
|
|
8726
8731
|
}
|
|
8727
8732
|
function P1(H, V, C) {
|
|
8728
8733
|
return V === "viewport" ? e1(function(L, M) {
|
|
8729
|
-
const i =
|
|
8730
|
-
let d = A.clientWidth,
|
|
8734
|
+
const i = z(L), A = $(L), e = i.visualViewport;
|
|
8735
|
+
let d = A.clientWidth, l = A.clientHeight, Z = 0, m = 0;
|
|
8731
8736
|
if (e) {
|
|
8732
|
-
d = e.width,
|
|
8733
|
-
const
|
|
8734
|
-
(
|
|
8737
|
+
d = e.width, l = e.height;
|
|
8738
|
+
const p = W1();
|
|
8739
|
+
(p || !p && M === "fixed") && (Z = e.offsetLeft, m = e.offsetTop);
|
|
8735
8740
|
}
|
|
8736
|
-
return { width: d, height:
|
|
8741
|
+
return { width: d, height: l, x: Z, y: m };
|
|
8737
8742
|
}(H, C)) : X(V) ? function(L, M) {
|
|
8738
8743
|
const i = q(L, !1, M === "fixed"), A = i.top + L.clientTop, e = i.left + L.clientLeft;
|
|
8739
8744
|
return { top: A, left: e, x: e, y: A, right: e + L.clientWidth, bottom: A + L.clientHeight, width: L.clientWidth, height: L.clientHeight };
|
|
8740
8745
|
}(V, C) : e1(function(L) {
|
|
8741
8746
|
var M;
|
|
8742
|
-
const i = $(L), A = n1(L), e = (M = L.ownerDocument) == null ? void 0 : M.body, d = V1(i.scrollWidth, i.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0),
|
|
8747
|
+
const i = $(L), A = n1(L), e = (M = L.ownerDocument) == null ? void 0 : M.body, d = V1(i.scrollWidth, i.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = V1(i.scrollHeight, i.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
|
|
8743
8748
|
let Z = -A.scrollLeft + I1(L);
|
|
8744
|
-
const
|
|
8745
|
-
return
|
|
8749
|
+
const m = -A.scrollTop;
|
|
8750
|
+
return I(e || i).direction === "rtl" && (Z += V1(i.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: Z, y: m };
|
|
8746
8751
|
}($(H)));
|
|
8747
8752
|
}
|
|
8748
|
-
const
|
|
8753
|
+
const f5 = { getClippingRect: function(H) {
|
|
8749
8754
|
let { element: V, boundary: C, rootBoundary: L, strategy: M } = H;
|
|
8750
|
-
const i = C === "clippingAncestors" ? function(
|
|
8751
|
-
let Z = G1(
|
|
8752
|
-
const
|
|
8753
|
-
let u =
|
|
8755
|
+
const i = C === "clippingAncestors" ? function(l) {
|
|
8756
|
+
let Z = G1(l).filter((s) => X(s) && K(s) !== "body"), m = null;
|
|
8757
|
+
const p = I(l).position === "fixed";
|
|
8758
|
+
let u = p ? L1(l) : l;
|
|
8754
8759
|
for (; X(u) && !c1(u); ) {
|
|
8755
|
-
const s =
|
|
8756
|
-
(
|
|
8760
|
+
const s = I(u), k = S1(u);
|
|
8761
|
+
(p ? k || m : k || s.position !== "static" || !m || !["absolute", "fixed"].includes(m.position)) ? m = s : Z = Z.filter((o) => o !== u), u = L1(u);
|
|
8757
8762
|
}
|
|
8758
8763
|
return Z;
|
|
8759
|
-
}(V) : [].concat(C), A = [...i, L], e = A[0], d = A.reduce((
|
|
8760
|
-
const
|
|
8761
|
-
return
|
|
8764
|
+
}(V) : [].concat(C), A = [...i, L], e = A[0], d = A.reduce((l, Z) => {
|
|
8765
|
+
const m = P1(V, Z, M);
|
|
8766
|
+
return l.top = V1(m.top, l.top), l.right = b1(m.right, l.right), l.bottom = b1(m.bottom, l.bottom), l.left = V1(m.left, l.left), l;
|
|
8762
8767
|
}, P1(V, e, M));
|
|
8763
8768
|
return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
|
|
8764
8769
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
|
|
8765
8770
|
let { rect: V, offsetParent: C, strategy: L } = H;
|
|
8766
|
-
const M =
|
|
8771
|
+
const M = Q(C), i = $(C);
|
|
8767
8772
|
if (C === i)
|
|
8768
8773
|
return V;
|
|
8769
8774
|
let A = { scrollLeft: 0, scrollTop: 0 };
|
|
8770
8775
|
const e = { x: 0, y: 0 };
|
|
8771
|
-
if ((M || !M && L !== "fixed") && ((K(C) !== "body" || o1(i)) && (A = n1(C)),
|
|
8776
|
+
if ((M || !M && L !== "fixed") && ((K(C) !== "body" || o1(i)) && (A = n1(C)), Q(C))) {
|
|
8772
8777
|
const d = q(C, !0);
|
|
8773
8778
|
e.x = d.x + C.clientLeft, e.y = d.y + C.clientTop;
|
|
8774
8779
|
}
|
|
8775
8780
|
return { ...V, x: V.x - A.scrollLeft + e.x, y: V.y - A.scrollTop + e.y };
|
|
8776
8781
|
}, isElement: X, getDimensions: function(H) {
|
|
8777
|
-
if (
|
|
8782
|
+
if (Q(H))
|
|
8778
8783
|
return { width: H.offsetWidth, height: H.offsetHeight };
|
|
8779
8784
|
const V = q(H);
|
|
8780
8785
|
return { width: V.width, height: V.height };
|
|
8781
8786
|
}, getOffsetParent: w1, getDocumentElement: $, async getElementRects(H) {
|
|
8782
8787
|
let { reference: V, floating: C, strategy: L } = H;
|
|
8783
8788
|
const M = this.getOffsetParent || w1, i = this.getDimensions;
|
|
8784
|
-
return { reference:
|
|
8785
|
-
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) =>
|
|
8789
|
+
return { reference: h5(V, await M(C), L), floating: { x: 0, y: 0, ...await i(C) } };
|
|
8790
|
+
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, g5 = (H, V, C) => m5(H, V, { platform: f5, ...C });
|
|
8786
8791
|
function r1({ value: H }, { value: V }, { value: C }, L, M, i) {
|
|
8787
|
-
!H || !V ||
|
|
8792
|
+
!H || !V || g5(H, V, {
|
|
8788
8793
|
placement: L,
|
|
8789
8794
|
middleware: [
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
+
c5(M),
|
|
8796
|
+
O5({ padding: i }),
|
|
8797
|
+
n5({ element: C }),
|
|
8798
|
+
S5(),
|
|
8799
|
+
u5()
|
|
8795
8800
|
]
|
|
8796
|
-
}).then(({ x: A, y: e, placement: d, middlewareData:
|
|
8801
|
+
}).then(({ x: A, y: e, placement: d, middlewareData: l }) => {
|
|
8797
8802
|
if (Object.assign(V.style, {
|
|
8798
8803
|
left: `${A}px`,
|
|
8799
8804
|
top: `${e}px`
|
|
8800
|
-
}), C &&
|
|
8801
|
-
const { x: Z, y:
|
|
8805
|
+
}), C && l.arrow) {
|
|
8806
|
+
const { x: Z, y: m } = l.arrow, p = {
|
|
8802
8807
|
top: "bottom",
|
|
8803
8808
|
right: "left",
|
|
8804
8809
|
bottom: "top",
|
|
@@ -8807,16 +8812,16 @@ function r1({ value: H }, { value: V }, { value: C }, L, M, i) {
|
|
|
8807
8812
|
}[d.split("-")[0]];
|
|
8808
8813
|
Object.assign(C.style, {
|
|
8809
8814
|
left: A != null ? `${Z}px` : "",
|
|
8810
|
-
top: e != null ? `${
|
|
8815
|
+
top: e != null ? `${m}px` : "",
|
|
8811
8816
|
right: "",
|
|
8812
8817
|
bottom: "",
|
|
8813
|
-
[`${
|
|
8818
|
+
[`${p}`]: "-4px"
|
|
8814
8819
|
});
|
|
8815
8820
|
}
|
|
8816
8821
|
});
|
|
8817
8822
|
}
|
|
8818
8823
|
var z1 = /* @__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))(z1 || {}), U = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(U || {});
|
|
8819
|
-
const
|
|
8824
|
+
const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], B5 = ["innerHTML"], b5 = /* @__PURE__ */ P({
|
|
8820
8825
|
__name: "RTooltip",
|
|
8821
8826
|
props: {
|
|
8822
8827
|
placement: { default: z1.Top },
|
|
@@ -8838,28 +8843,28 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8838
8843
|
emits: ["show", "hide"],
|
|
8839
8844
|
setup(H, { emit: V }) {
|
|
8840
8845
|
const C = H;
|
|
8841
|
-
Y1((
|
|
8842
|
-
"271323d4": g(
|
|
8846
|
+
Y1((o) => ({
|
|
8847
|
+
"271323d4": g(k)
|
|
8843
8848
|
}));
|
|
8844
|
-
const L =
|
|
8849
|
+
const L = D(null), M = D(null), i = D(null);
|
|
8845
8850
|
function A() {
|
|
8846
|
-
const { placement:
|
|
8847
|
-
|
|
8851
|
+
const { placement: o, offset: a, padding: n, disabled: O } = C;
|
|
8852
|
+
O || (M.value.style.display = "block", V("show"), r1(L, M, i, o, a, n), d(), C.outsideClick && l("add"));
|
|
8848
8853
|
}
|
|
8849
8854
|
function e() {
|
|
8850
|
-
M.value.style.display = "", V("hide"), C.outsideClick &&
|
|
8855
|
+
M.value.style.display = "", V("hide"), C.outsideClick && l("remove");
|
|
8851
8856
|
}
|
|
8852
8857
|
const d = () => {
|
|
8853
8858
|
C.autoHide && setTimeout(() => {
|
|
8854
8859
|
e();
|
|
8855
8860
|
}, C.hideDelay);
|
|
8856
|
-
},
|
|
8857
|
-
|
|
8861
|
+
}, l = (o) => {
|
|
8862
|
+
o === "add" && document.addEventListener("click", e), o === "remove" && document.removeEventListener("click", e);
|
|
8858
8863
|
}, Z = () => {
|
|
8859
8864
|
C.disabled || C.triggers == U.Click && (M.value.style.display === "block" ? e() : A());
|
|
8860
|
-
},
|
|
8865
|
+
}, m = () => {
|
|
8861
8866
|
C.disabled || C.triggers === U.Hover && A();
|
|
8862
|
-
},
|
|
8867
|
+
}, p = () => {
|
|
8863
8868
|
if (!C.disabled)
|
|
8864
8869
|
if (M.value.style.display === "" && C.triggers === U.Hover) {
|
|
8865
8870
|
A();
|
|
@@ -8867,16 +8872,16 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8867
8872
|
} else
|
|
8868
8873
|
M.value.style.display !== "" && C.triggers === U.Hover && e();
|
|
8869
8874
|
}, u = () => {
|
|
8870
|
-
const { placement:
|
|
8871
|
-
|
|
8872
|
-
}, s =
|
|
8875
|
+
const { placement: o, offset: a, padding: n, disabled: O } = C;
|
|
8876
|
+
O || C.triggers === U.Hover && r1(L, M, i, o, a, n);
|
|
8877
|
+
}, s = B(() => ({
|
|
8873
8878
|
tooltip: !0,
|
|
8874
8879
|
"tooltip--dark": C.dark,
|
|
8875
8880
|
"tooltip--light": C.light
|
|
8876
8881
|
}));
|
|
8877
8882
|
window.onresize = () => {
|
|
8878
|
-
const { placement:
|
|
8879
|
-
|
|
8883
|
+
const { placement: o, offset: a, padding: n, disabled: O } = C;
|
|
8884
|
+
O || C.resizable && r1(L, M, i, o, a, n);
|
|
8880
8885
|
}, X1(
|
|
8881
8886
|
() => {
|
|
8882
8887
|
C.disabled || C.shown && C.triggers === U.Manual && A();
|
|
@@ -8884,24 +8889,24 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8884
8889
|
{ flush: "post" }
|
|
8885
8890
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8886
8891
|
);
|
|
8887
|
-
const
|
|
8888
|
-
return (
|
|
8892
|
+
const k = B(() => `${C.showDelay}ms`);
|
|
8893
|
+
return (o, a) => (t(), r(j, null, [
|
|
8889
8894
|
S("div", {
|
|
8890
8895
|
ref_key: "trigger",
|
|
8891
8896
|
ref: L,
|
|
8892
8897
|
"aria-disabled": C.disabled,
|
|
8893
8898
|
class: "trigger",
|
|
8894
|
-
onClick:
|
|
8895
|
-
onMouseenter:
|
|
8896
|
-
onMouseleave:
|
|
8897
|
-
onMousemove:
|
|
8899
|
+
onClick: N(Z, ["stop"]),
|
|
8900
|
+
onMouseenter: N(m, ["stop"]),
|
|
8901
|
+
onMouseleave: N(p, ["stop"]),
|
|
8902
|
+
onMousemove: N(u, ["stop"])
|
|
8898
8903
|
}, [
|
|
8899
|
-
w(
|
|
8900
|
-
|
|
8904
|
+
w(o.$slots, "trigger", {}, void 0, !0),
|
|
8905
|
+
o.$slots.trigger ? h("", !0) : (t(), r("div", {
|
|
8901
8906
|
key: 0,
|
|
8902
8907
|
innerHTML: C.triggerContent
|
|
8903
|
-
}, null, 8,
|
|
8904
|
-
], 40,
|
|
8908
|
+
}, null, 8, B5))
|
|
8909
|
+
], 40, k5),
|
|
8905
8910
|
S("div", {
|
|
8906
8911
|
id: "tooltip",
|
|
8907
8912
|
ref_key: "tooltip",
|
|
@@ -8909,16 +8914,16 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8909
8914
|
class: f(g(s)),
|
|
8910
8915
|
role: "tooltip"
|
|
8911
8916
|
}, [
|
|
8912
|
-
w(
|
|
8913
|
-
|
|
8917
|
+
w(o.$slots, "content", {}, void 0, !0),
|
|
8918
|
+
o.$slots.content ? h("", !0) : (t(), r("div", {
|
|
8914
8919
|
key: 0,
|
|
8915
8920
|
class: f({
|
|
8916
8921
|
tooltip__content: !0,
|
|
8917
8922
|
"tooltip__content--dark": C.dark,
|
|
8918
8923
|
"tooltip__content--light": C.light
|
|
8919
8924
|
})
|
|
8920
|
-
},
|
|
8921
|
-
|
|
8925
|
+
}, b(C.text), 3)),
|
|
8926
|
+
o.$slots.content ? h("", !0) : (t(), r("div", {
|
|
8922
8927
|
key: 1,
|
|
8923
8928
|
id: "arrow",
|
|
8924
8929
|
ref_key: "arrowElement",
|
|
@@ -8933,15 +8938,15 @@ const B5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8933
8938
|
], 64));
|
|
8934
8939
|
}
|
|
8935
8940
|
});
|
|
8936
|
-
const
|
|
8941
|
+
const y5 = (H, V) => {
|
|
8937
8942
|
const C = H.__vccOpts || H;
|
|
8938
8943
|
for (const [L, M] of V)
|
|
8939
8944
|
C[L] = M;
|
|
8940
8945
|
return C;
|
|
8941
|
-
},
|
|
8946
|
+
}, Y5 = /* @__PURE__ */ y5(b5, [["__scopeId", "data-v-ee5f5651"]]), w5 = { class: "r-breadcrumb" }, P5 = {
|
|
8942
8947
|
key: 0,
|
|
8943
8948
|
class: "r-breadcrumb__title"
|
|
8944
|
-
},
|
|
8949
|
+
}, X5 = /* @__PURE__ */ P({
|
|
8945
8950
|
__name: "RBreadcrumb",
|
|
8946
8951
|
props: {
|
|
8947
8952
|
items: { default: () => [] },
|
|
@@ -8951,28 +8956,28 @@ const w5 = (H, V) => {
|
|
|
8951
8956
|
const V = H;
|
|
8952
8957
|
return (C, L) => {
|
|
8953
8958
|
const M = J1("router-link");
|
|
8954
|
-
return t(), r("div",
|
|
8959
|
+
return t(), r("div", w5, [
|
|
8955
8960
|
(t(!0), r(j, null, Y(V.items, (i, A) => (t(), r("div", {
|
|
8956
8961
|
class: "r-breadcrumb__item",
|
|
8957
8962
|
key: A
|
|
8958
8963
|
}, [
|
|
8959
|
-
|
|
8964
|
+
W(M, {
|
|
8960
8965
|
to: i.to,
|
|
8961
8966
|
class: "r-breadcrumb__link"
|
|
8962
8967
|
}, {
|
|
8963
8968
|
default: F1(() => [
|
|
8964
8969
|
w(C.$slots, "item-icon", {}, () => [
|
|
8965
|
-
i.icon ? (t(),
|
|
8970
|
+
i.icon ? (t(), v(F, {
|
|
8966
8971
|
key: 0,
|
|
8967
8972
|
name: i.icon
|
|
8968
8973
|
}, null, 8, ["name"])) : h("", !0)
|
|
8969
8974
|
]),
|
|
8970
|
-
i.onlyIcon ? h("", !0) : (t(), r("span",
|
|
8975
|
+
i.onlyIcon ? h("", !0) : (t(), r("span", P5, b(i.title), 1))
|
|
8971
8976
|
]),
|
|
8972
8977
|
_: 2
|
|
8973
8978
|
}, 1032, ["to"]),
|
|
8974
8979
|
w(C.$slots, "custom-seperator", {}, () => [
|
|
8975
|
-
A !== H.items.length - 1 && V.seperator ? (t(),
|
|
8980
|
+
A !== H.items.length - 1 && V.seperator ? (t(), v(F, {
|
|
8976
8981
|
key: 0,
|
|
8977
8982
|
name: V.seperator,
|
|
8978
8983
|
class: "r-breadcrumb__separator"
|
|
@@ -8982,7 +8987,7 @@ const w5 = (H, V) => {
|
|
|
8982
8987
|
]);
|
|
8983
8988
|
};
|
|
8984
8989
|
}
|
|
8985
|
-
}),
|
|
8990
|
+
}), T5 = { class: "r-pagination" }, v5 = { class: "r-pagination__page-info" }, F5 = { key: 0 }, R5 = { class: "r-pagination__page-info__current-page" }, x5 = { class: "r-pagination__page-info__total-pages" }, D5 = { class: "r-pagination__paginator" }, J5 = /* @__PURE__ */ P({
|
|
8986
8991
|
__name: "RPagination",
|
|
8987
8992
|
props: {
|
|
8988
8993
|
page: { default: 1 },
|
|
@@ -8996,18 +9001,18 @@ const w5 = (H, V) => {
|
|
|
8996
9001
|
},
|
|
8997
9002
|
emits: ["update:page"],
|
|
8998
9003
|
setup(H, { emit: V }) {
|
|
8999
|
-
const C = H, L =
|
|
9004
|
+
const C = H, L = D(Math.ceil(C.totalItems / C.perPage)), M = (i) => {
|
|
9000
9005
|
i < 1 || i > L.value || V("update:page", i);
|
|
9001
9006
|
};
|
|
9002
|
-
return (i, A) => (t(), r("div",
|
|
9003
|
-
S("div",
|
|
9004
|
-
H.slash ? h("", !0) : (t(), r("span",
|
|
9005
|
-
S("span",
|
|
9006
|
-
R1(" " +
|
|
9007
|
-
S("span",
|
|
9007
|
+
return (i, A) => (t(), r("div", T5, [
|
|
9008
|
+
S("div", v5, [
|
|
9009
|
+
H.slash ? h("", !0) : (t(), r("span", F5, b(C.pageText), 1)),
|
|
9010
|
+
S("span", R5, b(C.page), 1),
|
|
9011
|
+
R1(" " + b(H.slash ? "/" : C.ofText) + " ", 1),
|
|
9012
|
+
S("span", x5, b(L.value), 1)
|
|
9008
9013
|
]),
|
|
9009
|
-
S("div",
|
|
9010
|
-
|
|
9014
|
+
S("div", D5, [
|
|
9015
|
+
W(a1, {
|
|
9011
9016
|
class: "r-pagination__paginator__prev",
|
|
9012
9017
|
variant: "outline",
|
|
9013
9018
|
"only-icon": "",
|
|
@@ -9015,7 +9020,7 @@ const w5 = (H, V) => {
|
|
|
9015
9020
|
disabled: C.page === 1,
|
|
9016
9021
|
onClick: A[0] || (A[0] = (e) => M(C.page - 1))
|
|
9017
9022
|
}, null, 8, ["prepend-icon", "disabled"]),
|
|
9018
|
-
|
|
9023
|
+
W(t5, {
|
|
9019
9024
|
modelValue: C.page,
|
|
9020
9025
|
"onUpdate:modelValue": A[1] || (A[1] = (e) => C.page = e),
|
|
9021
9026
|
class: "r-pagination__paginator__input",
|
|
@@ -9025,7 +9030,7 @@ const w5 = (H, V) => {
|
|
|
9025
9030
|
max: L.value,
|
|
9026
9031
|
onInput: A[2] || (A[2] = (e) => M(e == null ? void 0 : e.value))
|
|
9027
9032
|
}, null, 8, ["modelValue", "max"]),
|
|
9028
|
-
|
|
9033
|
+
W(a1, {
|
|
9029
9034
|
class: "r-pagination__paginator__next",
|
|
9030
9035
|
variant: "outline",
|
|
9031
9036
|
"only-icon": "",
|
|
@@ -9038,25 +9043,25 @@ const w5 = (H, V) => {
|
|
|
9038
9043
|
}
|
|
9039
9044
|
});
|
|
9040
9045
|
export {
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
+
_5 as RAccordion,
|
|
9047
|
+
N5 as RAlert,
|
|
9048
|
+
W5 as RAvatar,
|
|
9049
|
+
I5 as RBadge,
|
|
9050
|
+
X5 as RBreadcrumb,
|
|
9046
9051
|
a1 as RButton,
|
|
9047
|
-
|
|
9052
|
+
Q5 as RCheckbox,
|
|
9048
9053
|
g2 as RChip,
|
|
9049
|
-
|
|
9050
|
-
|
|
9054
|
+
G5 as RDropdown,
|
|
9055
|
+
F as RIcon,
|
|
9051
9056
|
x1 as RLabel,
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9057
|
+
z5 as RModal,
|
|
9058
|
+
J5 as RPagination,
|
|
9059
|
+
U5 as RSidebar,
|
|
9060
|
+
$5 as RSnackbar,
|
|
9061
|
+
K5 as RSwitch,
|
|
9062
|
+
J2 as RTabItem,
|
|
9063
|
+
j5 as RTabs,
|
|
9064
|
+
q5 as RTextArea,
|
|
9065
|
+
t5 as RTextfield,
|
|
9066
|
+
Y5 as RTooltip
|
|
9062
9067
|
};
|