@rocketui/vue 0.0.20 → 0.0.21
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 +149 -145
- 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 P, computed as g, openBlock as o, createElementBlock as Z, normalizeStyle as Q1, unref as h, createElementVNode as a, reactive as Y, Fragment as K, renderList as J, normalizeClass as p, toDisplayString as b, createVNode as V1, createBlock as F, renderSlot as y, createCommentVNode as w, mergeProps as G1, withModifiers as N, watch as U, ref as D, withDirectives as P1, withKeys as s1, vModelText as z1, vShow as U1, onMounted as $1, withCtx as K1, createTextVNode as j1, useCssVars as q1, watchEffect as Y1 } from "vue";
|
|
2
2
|
const X1 = {
|
|
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 X1 = {
|
|
|
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
|
-
}, J1 = ["width", "height", "viewBox"], C2 = ["d"], v = /* @__PURE__ */
|
|
7299
|
+
}, J1 = ["width", "height", "viewBox"], C2 = ["d"], v = /* @__PURE__ */ P({
|
|
7300
7300
|
__name: "RIcon",
|
|
7301
7301
|
props: {
|
|
7302
7302
|
name: { default: "" },
|
|
@@ -7306,7 +7306,7 @@ const X1 = {
|
|
|
7306
7306
|
rotate: { default: 0 }
|
|
7307
7307
|
},
|
|
7308
7308
|
setup(H) {
|
|
7309
|
-
const V = H, C =
|
|
7309
|
+
const V = H, C = g(() => ({
|
|
7310
7310
|
"--sx": ["both", "horizontal"].includes(V.flip) ? "-1" : "1",
|
|
7311
7311
|
"--sy": ["both", "vertical"].includes(V.flip) ? "-1" : "1",
|
|
7312
7312
|
"--r": V.rotate + "deg"
|
|
@@ -7323,7 +7323,7 @@ const X1 = {
|
|
|
7323
7323
|
], 12, J1));
|
|
7324
7324
|
}
|
|
7325
7325
|
});
|
|
7326
|
-
const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accordion__icon" }, M2 = { class: "accordion__content" }, P5 = /* @__PURE__ */
|
|
7326
|
+
const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accordion__icon" }, M2 = { class: "accordion__content" }, P5 = /* @__PURE__ */ P({
|
|
7327
7327
|
__name: "RAccordion",
|
|
7328
7328
|
props: {
|
|
7329
7329
|
accordions: null
|
|
@@ -7369,27 +7369,29 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7369
7369
|
}), A2 = { class: "icon" }, i2 = { class: "texts" }, e2 = { class: "texts__title" }, d2 = { class: "texts__description" }, t2 = {
|
|
7370
7370
|
key: 0,
|
|
7371
7371
|
class: "close"
|
|
7372
|
-
}, T5 = /* @__PURE__ */
|
|
7372
|
+
}, T5 = /* @__PURE__ */ P({
|
|
7373
7373
|
__name: "RAlert",
|
|
7374
7374
|
props: {
|
|
7375
7375
|
type: { default: "info" },
|
|
7376
7376
|
title: { default: "" },
|
|
7377
7377
|
description: { default: "" },
|
|
7378
7378
|
size: { default: "medium" },
|
|
7379
|
-
closable: { type: Boolean, default: !0 }
|
|
7379
|
+
closable: { type: Boolean, default: !0 },
|
|
7380
|
+
block: { type: Boolean, default: !1 }
|
|
7380
7381
|
},
|
|
7381
7382
|
emits: ["close"],
|
|
7382
7383
|
setup(H, { emit: V }) {
|
|
7383
|
-
const C = H, M =
|
|
7384
|
+
const C = H, M = g(() => ({
|
|
7384
7385
|
alert: !0,
|
|
7385
7386
|
[`alert--${C.type}`]: !0,
|
|
7386
|
-
[`alert--${C.size}`]: !0
|
|
7387
|
-
|
|
7387
|
+
[`alert--${C.size}`]: !0,
|
|
7388
|
+
"alert--block": C.block
|
|
7389
|
+
})), L = g(() => ({
|
|
7388
7390
|
success: "mdiCheckCircle",
|
|
7389
7391
|
error: "mdiAlertCircle",
|
|
7390
7392
|
warning: "mdiAlert",
|
|
7391
7393
|
info: "mdiInformation"
|
|
7392
|
-
})[C.type]), A =
|
|
7394
|
+
})[C.type]), A = g(() => ({
|
|
7393
7395
|
small: 20,
|
|
7394
7396
|
medium: 24,
|
|
7395
7397
|
large: 28
|
|
@@ -7410,7 +7412,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7410
7412
|
a("p", d2, b(C.description), 1)
|
|
7411
7413
|
]),
|
|
7412
7414
|
C.closable ? (o(), Z("div", t2, [
|
|
7413
|
-
e.$slots.close ?
|
|
7415
|
+
e.$slots.close ? y(e.$slots, "close", { key: 1 }) : (o(), F(v, {
|
|
7414
7416
|
key: 0,
|
|
7415
7417
|
class: "close__button",
|
|
7416
7418
|
name: "close",
|
|
@@ -7420,7 +7422,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7420
7422
|
])) : w("", !0)
|
|
7421
7423
|
], 2));
|
|
7422
7424
|
}
|
|
7423
|
-
}), O1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", m2 = { class: "avatar__wrapper" }, l2 = ["alt", "src"], F5 = /* @__PURE__ */
|
|
7425
|
+
}), O1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", m2 = { class: "avatar__wrapper" }, l2 = ["alt", "src"], F5 = /* @__PURE__ */ P({
|
|
7424
7426
|
__name: "RAvatar",
|
|
7425
7427
|
props: {
|
|
7426
7428
|
type: { default: "image" },
|
|
@@ -7431,10 +7433,10 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7431
7433
|
text: { default: "" }
|
|
7432
7434
|
},
|
|
7433
7435
|
setup(H) {
|
|
7434
|
-
const V = H, C =
|
|
7436
|
+
const V = H, C = g(() => ({
|
|
7435
7437
|
avatar: !0,
|
|
7436
7438
|
[`avatar--${V.size}`]: !0
|
|
7437
|
-
})), M =
|
|
7439
|
+
})), M = g(() => V.type === "image" && !V.src), L = g(() => M.value ? O1 : V.src), A = (i) => {
|
|
7438
7440
|
const e = i.split(" ");
|
|
7439
7441
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7440
7442
|
};
|
|
@@ -7462,7 +7464,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7462
7464
|
}, null, 2)) : w("", !0)
|
|
7463
7465
|
]));
|
|
7464
7466
|
}
|
|
7465
|
-
}), o2 = { class: "badge-wrapper group" }, v5 = /* @__PURE__ */
|
|
7467
|
+
}), o2 = { class: "badge-wrapper group" }, v5 = /* @__PURE__ */ P({
|
|
7466
7468
|
__name: "RBadge",
|
|
7467
7469
|
props: {
|
|
7468
7470
|
variant: { default: "primary" },
|
|
@@ -7474,7 +7476,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7474
7476
|
},
|
|
7475
7477
|
emits: ["click"],
|
|
7476
7478
|
setup(H) {
|
|
7477
|
-
const V = H, C =
|
|
7479
|
+
const V = H, C = g(() => ({
|
|
7478
7480
|
badge: !0,
|
|
7479
7481
|
badge__content: V.content,
|
|
7480
7482
|
[`badge--overlap-${V.placement}`]: V.overlap,
|
|
@@ -7489,10 +7491,10 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7489
7491
|
class: p(h(C)),
|
|
7490
7492
|
onClick: L[0] || (L[0] = (A) => M.$emit("click"))
|
|
7491
7493
|
}, b(V.content), 3),
|
|
7492
|
-
|
|
7494
|
+
y(M.$slots, "default")
|
|
7493
7495
|
]));
|
|
7494
7496
|
}
|
|
7495
|
-
}), n2 = ["disabled"], r2 = /* @__PURE__ */
|
|
7497
|
+
}), n2 = ["disabled"], r2 = /* @__PURE__ */ P({
|
|
7496
7498
|
__name: "RButton",
|
|
7497
7499
|
props: {
|
|
7498
7500
|
variant: { default: "primary" },
|
|
@@ -7508,18 +7510,18 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7508
7510
|
},
|
|
7509
7511
|
emits: ["click"],
|
|
7510
7512
|
setup(H) {
|
|
7511
|
-
const V = H, C =
|
|
7513
|
+
const V = H, C = g(() => ({
|
|
7512
7514
|
button: !0,
|
|
7513
7515
|
[`button--${V.variant}`]: !0,
|
|
7514
7516
|
"button--loading": V.loading,
|
|
7515
7517
|
[`button--${V.size || "medium"}`]: !0,
|
|
7516
7518
|
"button--only-icon": V.onlyIcon,
|
|
7517
7519
|
"button--block": V.block
|
|
7518
|
-
})), M =
|
|
7520
|
+
})), M = g(() => ({
|
|
7519
7521
|
small: 20,
|
|
7520
7522
|
medium: 24,
|
|
7521
7523
|
large: 32
|
|
7522
|
-
})[V.size || "medium"]), L =
|
|
7524
|
+
})[V.size || "medium"]), L = g(() => {
|
|
7523
7525
|
const { backgroundColor: A, height: i } = V;
|
|
7524
7526
|
return {
|
|
7525
7527
|
backgroundColor: A,
|
|
@@ -7530,9 +7532,9 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7530
7532
|
class: h(C),
|
|
7531
7533
|
disabled: H.disabled || H.loading,
|
|
7532
7534
|
style: h(L),
|
|
7533
|
-
onClick: i[0] || (i[0] =
|
|
7535
|
+
onClick: i[0] || (i[0] = N((e) => A.$emit("click"), ["stop"]))
|
|
7534
7536
|
}), [
|
|
7535
|
-
|
|
7537
|
+
y(A.$slots, "custom-icon"),
|
|
7536
7538
|
!A.$slots["custom-icon"] && V.prependIcon ? (o(), F(v, {
|
|
7537
7539
|
key: 0,
|
|
7538
7540
|
class: p({
|
|
@@ -7542,7 +7544,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7542
7544
|
name: V.prependIcon,
|
|
7543
7545
|
size: h(M)
|
|
7544
7546
|
}, null, 8, ["class", "name", "size"])) : w("", !0),
|
|
7545
|
-
V.onlyIcon ? w("", !0) :
|
|
7547
|
+
V.onlyIcon ? w("", !0) : y(A.$slots, "default", { key: 1 }),
|
|
7546
7548
|
!A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (o(), F(v, {
|
|
7547
7549
|
key: 2,
|
|
7548
7550
|
class: "button__append-icon",
|
|
@@ -7557,7 +7559,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7557
7559
|
}, p2 = {
|
|
7558
7560
|
key: 1,
|
|
7559
7561
|
class: "checkbox-texts__hint"
|
|
7560
|
-
}, R5 = /* @__PURE__ */
|
|
7562
|
+
}, R5 = /* @__PURE__ */ P({
|
|
7561
7563
|
__name: "RCheckbox",
|
|
7562
7564
|
props: {
|
|
7563
7565
|
id: { default: "" },
|
|
@@ -7577,7 +7579,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7577
7579
|
checked: "mdiCheck",
|
|
7578
7580
|
unchecked: "",
|
|
7579
7581
|
indeterminate: "mdiMinus"
|
|
7580
|
-
}, A =
|
|
7582
|
+
}, A = g(() => M.indeterminate ? L.indeterminate : M.checked ? L.checked : L.unchecked), i = g(() => ({
|
|
7581
7583
|
checkbox: !0,
|
|
7582
7584
|
"checkbox--checked": M.checked,
|
|
7583
7585
|
"checkbox--disabled": C.disabled,
|
|
@@ -7637,7 +7639,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7637
7639
|
])
|
|
7638
7640
|
]));
|
|
7639
7641
|
}
|
|
7640
|
-
}), h2 = /* @__PURE__ */
|
|
7642
|
+
}), h2 = /* @__PURE__ */ P({
|
|
7641
7643
|
__name: "RChip",
|
|
7642
7644
|
props: {
|
|
7643
7645
|
variant: { default: "primary" },
|
|
@@ -7650,13 +7652,13 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7650
7652
|
},
|
|
7651
7653
|
emits: ["click:chip", "click:close"],
|
|
7652
7654
|
setup(H, { emit: V }) {
|
|
7653
|
-
const C = H, M =
|
|
7655
|
+
const C = H, M = g(() => ({
|
|
7654
7656
|
chip: !0,
|
|
7655
7657
|
"chip--disabled": C.disabled,
|
|
7656
7658
|
[`chip__${C.variant}`]: C.variant,
|
|
7657
7659
|
[`chip--${C.size}`]: C.size,
|
|
7658
7660
|
[`chip__${C.variant}--ghost`]: C.ghost
|
|
7659
|
-
})), L =
|
|
7661
|
+
})), L = g(() => ({
|
|
7660
7662
|
small: 20,
|
|
7661
7663
|
medium: 24,
|
|
7662
7664
|
large: 32
|
|
@@ -7670,7 +7672,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7670
7672
|
}, [
|
|
7671
7673
|
a("div", {
|
|
7672
7674
|
class: "chip__content",
|
|
7673
|
-
onClick: d[0] || (d[0] =
|
|
7675
|
+
onClick: d[0] || (d[0] = N((l) => A(l), ["stop"]))
|
|
7674
7676
|
}, [
|
|
7675
7677
|
C.prependIcon ? (o(), F(v, {
|
|
7676
7678
|
key: 0,
|
|
@@ -7687,7 +7689,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7687
7689
|
class: "chip__append-icon",
|
|
7688
7690
|
name: C.appendIcon,
|
|
7689
7691
|
size: h(L),
|
|
7690
|
-
onClick: d[1] || (d[1] =
|
|
7692
|
+
onClick: d[1] || (d[1] = N((l) => i(l), ["stop"]))
|
|
7691
7693
|
}, null, 8, ["aria-disabled", "name", "size"])) : w("", !0)
|
|
7692
7694
|
], 2));
|
|
7693
7695
|
}
|
|
@@ -7697,7 +7699,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7697
7699
|
}, k2 = {
|
|
7698
7700
|
key: 1,
|
|
7699
7701
|
class: "dropdown__multiple"
|
|
7700
|
-
}, B2 = ["disabled", "placeholder", "readonly"], b2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } }, x5 = /* @__PURE__ */
|
|
7702
|
+
}, B2 = ["disabled", "placeholder", "readonly"], b2 = ["aria-disabled", "onClick"], w2 = { style: { display: "flex", "align-items": "center" } }, x5 = /* @__PURE__ */ P({
|
|
7701
7703
|
__name: "RDropdown",
|
|
7702
7704
|
props: {
|
|
7703
7705
|
placeholder: { default: "" },
|
|
@@ -7714,13 +7716,13 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7714
7716
|
emits: ["update:modelValue"],
|
|
7715
7717
|
setup(H, { emit: V }) {
|
|
7716
7718
|
const C = H, M = D(""), L = Y([]), A = D(!1), i = D(""), e = D(null), d = D(null), l = (r) => {
|
|
7717
|
-
var t, n, O,
|
|
7719
|
+
var t, n, O, k, R, T;
|
|
7718
7720
|
if (!C.disabled) {
|
|
7719
7721
|
if (r.stopPropagation(), A.value = !A.value, A.value) {
|
|
7720
7722
|
(t = e.value) == null || t.classList.add("dropdown--active"), (n = e.value) == null || n.focus(), C.searchable && ((O = d.value) == null || O.focus()), document.addEventListener("click", l);
|
|
7721
7723
|
return;
|
|
7722
7724
|
}
|
|
7723
|
-
(
|
|
7725
|
+
(k = e.value) == null || k.classList.remove("dropdown--active"), (R = e.value) == null || R.blur(), (T = d.value) == null || T.blur(), document.removeEventListener("click", l);
|
|
7724
7726
|
}
|
|
7725
7727
|
}, S = (r, t) => {
|
|
7726
7728
|
var n;
|
|
@@ -7749,8 +7751,8 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7749
7751
|
const t = i.value;
|
|
7750
7752
|
if (t === "")
|
|
7751
7753
|
return;
|
|
7752
|
-
C.options.find((
|
|
7753
|
-
}, c =
|
|
7754
|
+
C.options.find((k) => k.label === t) || (L.push({ value: t, label: t }), i.value = "", (O = d.value) == null || O.focus());
|
|
7755
|
+
}, c = g(() => C.searchable ? C.options.filter((t) => t.label.toLowerCase().includes(i.value.toLowerCase())) : C.options);
|
|
7754
7756
|
return U(L, (r) => {
|
|
7755
7757
|
V("update:modelValue", r);
|
|
7756
7758
|
}), (r, t) => (o(), Z("div", f2, [
|
|
@@ -7773,7 +7775,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7773
7775
|
C.prependIcon ? (o(), F(v, {
|
|
7774
7776
|
key: 1,
|
|
7775
7777
|
name: C.prependIcon
|
|
7776
|
-
}, null, 8, ["name"])) :
|
|
7778
|
+
}, null, 8, ["name"])) : y(r.$slots, "prepend-icon", { key: 0 })
|
|
7777
7779
|
], 2),
|
|
7778
7780
|
C.taggable ? (o(), Z("div", g2, [
|
|
7779
7781
|
(o(!0), Z(K, null, J(L, (n, O) => (o(), F(h2, {
|
|
@@ -7782,7 +7784,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7782
7784
|
appendIcon: "close",
|
|
7783
7785
|
class: "dropdown__tags__chip",
|
|
7784
7786
|
variant: "primary",
|
|
7785
|
-
"onClick:close": (
|
|
7787
|
+
"onClick:close": (k) => s(k, n)
|
|
7786
7788
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7787
7789
|
])) : w("", !0),
|
|
7788
7790
|
C.multiple ? (o(), Z("div", k2, [
|
|
@@ -7817,7 +7819,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7817
7819
|
C.appendIcon ? (o(), F(v, {
|
|
7818
7820
|
key: 1,
|
|
7819
7821
|
name: C.appendIcon
|
|
7820
|
-
}, null, 8, ["name"])) :
|
|
7822
|
+
}, null, 8, ["name"])) : y(r.$slots, "append-icon", { key: 0 })
|
|
7821
7823
|
], 2)
|
|
7822
7824
|
], 2),
|
|
7823
7825
|
a("ul", {
|
|
@@ -7840,7 +7842,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7840
7842
|
"dropdown-options__option__prepend-icon--active": n.value === M.value || (L == null ? void 0 : L.includes(n))
|
|
7841
7843
|
}),
|
|
7842
7844
|
name: n.prependIcon
|
|
7843
|
-
}, null, 8, ["class", "name"])) :
|
|
7845
|
+
}, null, 8, ["class", "name"])) : y(r.$slots, "option-prepend", { key: 0 }),
|
|
7844
7846
|
a("p", {
|
|
7845
7847
|
class: p({
|
|
7846
7848
|
"dropdown-options__option__label": !0,
|
|
@@ -7860,7 +7862,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7860
7862
|
], 2)
|
|
7861
7863
|
]));
|
|
7862
7864
|
}
|
|
7863
|
-
}), y2 = ["id", "for"], T1 = /* @__PURE__ */
|
|
7865
|
+
}), y2 = ["id", "for"], T1 = /* @__PURE__ */ P({
|
|
7864
7866
|
__name: "RLabel",
|
|
7865
7867
|
props: {
|
|
7866
7868
|
id: { default: "" },
|
|
@@ -7883,7 +7885,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7883
7885
|
}, x2 = {
|
|
7884
7886
|
key: 2,
|
|
7885
7887
|
class: "description"
|
|
7886
|
-
}, D2 = { class: "dialog__body" }, E2 = { class: "dialog__actions" }, D5 = /* @__PURE__ */
|
|
7888
|
+
}, D2 = { class: "dialog__body" }, E2 = { class: "dialog__actions" }, D5 = /* @__PURE__ */ P({
|
|
7887
7889
|
__name: "RModal",
|
|
7888
7890
|
props: {
|
|
7889
7891
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -7894,7 +7896,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7894
7896
|
},
|
|
7895
7897
|
emits: ["update:modelValue"],
|
|
7896
7898
|
setup(H, { emit: V }) {
|
|
7897
|
-
const C = H, M =
|
|
7899
|
+
const C = H, M = g(() => ({
|
|
7898
7900
|
dialog: !0,
|
|
7899
7901
|
"dialog--block": C.block
|
|
7900
7902
|
})), L = (A) => {
|
|
@@ -7902,7 +7904,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7902
7904
|
};
|
|
7903
7905
|
return (A, i) => P1((o(), Z("div", {
|
|
7904
7906
|
class: "modal",
|
|
7905
|
-
onClick:
|
|
7907
|
+
onClick: N(L, ["stop"])
|
|
7906
7908
|
}, [
|
|
7907
7909
|
a("div", {
|
|
7908
7910
|
role: "dialog",
|
|
@@ -7911,7 +7913,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7911
7913
|
open: C.modelValue
|
|
7912
7914
|
}, [
|
|
7913
7915
|
a("div", F2, [
|
|
7914
|
-
|
|
7916
|
+
y(A.$slots, "header"),
|
|
7915
7917
|
C.icon ? (o(), Z("div", v2, [
|
|
7916
7918
|
V1(v, {
|
|
7917
7919
|
name: C.icon
|
|
@@ -7921,34 +7923,34 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7921
7923
|
C.description ? (o(), Z("div", x2, b(C.description), 1)) : w("", !0)
|
|
7922
7924
|
]),
|
|
7923
7925
|
a("div", D2, [
|
|
7924
|
-
|
|
7926
|
+
y(A.$slots, "default")
|
|
7925
7927
|
]),
|
|
7926
7928
|
a("div", E2, [
|
|
7927
|
-
|
|
7929
|
+
y(A.$slots, "actions")
|
|
7928
7930
|
])
|
|
7929
7931
|
], 10, T2)
|
|
7930
7932
|
], 8, P2)), [
|
|
7931
7933
|
[U1, H.modelValue]
|
|
7932
7934
|
]);
|
|
7933
7935
|
}
|
|
7934
|
-
}),
|
|
7936
|
+
}), N2 = { class: "nav" }, _2 = { class: "actions" }, E5 = /* @__PURE__ */ P({
|
|
7935
7937
|
__name: "RSidebar",
|
|
7936
7938
|
props: {
|
|
7937
7939
|
modelValue: { type: Boolean, default: !1 }
|
|
7938
7940
|
},
|
|
7939
7941
|
setup(H) {
|
|
7940
|
-
const V = H, C =
|
|
7942
|
+
const V = H, C = g(() => ({
|
|
7941
7943
|
sidebar: !0,
|
|
7942
7944
|
"sidebar--open": V.modelValue
|
|
7943
7945
|
}));
|
|
7944
7946
|
return (M, L) => (o(), Z("aside", {
|
|
7945
7947
|
class: p(h(C))
|
|
7946
7948
|
}, [
|
|
7947
|
-
a("nav",
|
|
7948
|
-
|
|
7949
|
+
a("nav", N2, [
|
|
7950
|
+
y(M.$slots, "default")
|
|
7949
7951
|
]),
|
|
7950
|
-
a("div",
|
|
7951
|
-
|
|
7952
|
+
a("div", _2, [
|
|
7953
|
+
y(M.$slots, "actions")
|
|
7952
7954
|
])
|
|
7953
7955
|
], 2));
|
|
7954
7956
|
}
|
|
@@ -7958,7 +7960,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7958
7960
|
}, Q2 = {
|
|
7959
7961
|
key: 1,
|
|
7960
7962
|
class: "snackbar__close"
|
|
7961
|
-
},
|
|
7963
|
+
}, N5 = /* @__PURE__ */ P({
|
|
7962
7964
|
__name: "RSnackbar",
|
|
7963
7965
|
props: {
|
|
7964
7966
|
text: { default: "" },
|
|
@@ -7995,7 +7997,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
7995
7997
|
}, [
|
|
7996
7998
|
a("div", W2, b(C.text), 1),
|
|
7997
7999
|
C.showAction ? (o(), Z("div", I2, [
|
|
7998
|
-
|
|
8000
|
+
y(i.$slots, "action"),
|
|
7999
8001
|
i.$slots.action ? w("", !0) : (o(), F(r2, {
|
|
8000
8002
|
key: 0,
|
|
8001
8003
|
size: "small",
|
|
@@ -8009,12 +8011,12 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8009
8011
|
}))
|
|
8010
8012
|
])) : w("", !0),
|
|
8011
8013
|
C.showClose ? (o(), Z("div", Q2, [
|
|
8012
|
-
|
|
8014
|
+
y(i.$slots, "close"),
|
|
8013
8015
|
i.$slots.close ? w("", !0) : (o(), F(v, {
|
|
8014
8016
|
key: 0,
|
|
8015
8017
|
name: "mdiClose",
|
|
8016
8018
|
size: 20,
|
|
8017
|
-
onClick:
|
|
8019
|
+
onClick: N(A, ["stop"])
|
|
8018
8020
|
}, null, 8, ["onClick"]))
|
|
8019
8021
|
])) : w("", !0)
|
|
8020
8022
|
], 2));
|
|
@@ -8025,7 +8027,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8025
8027
|
}, j2 = {
|
|
8026
8028
|
key: 1,
|
|
8027
8029
|
class: "switch-texts__hint"
|
|
8028
|
-
},
|
|
8030
|
+
}, _5 = /* @__PURE__ */ P({
|
|
8029
8031
|
__name: "RSwitch",
|
|
8030
8032
|
props: {
|
|
8031
8033
|
id: { default: "switch" },
|
|
@@ -8040,7 +8042,7 @@ const H2 = ["onClick"], V2 = { class: "accordion__title" }, L2 = { class: "accor
|
|
|
8040
8042
|
setup(H, { emit: V }) {
|
|
8041
8043
|
const C = H, M = Y({
|
|
8042
8044
|
checked: !1
|
|
8043
|
-
}), L =
|
|
8045
|
+
}), L = g(() => ({
|
|
8044
8046
|
switch: !0,
|
|
8045
8047
|
"switch--disabled": C.disabled,
|
|
8046
8048
|
[`switch--${C.size}`]: C.size,
|
|
@@ -8091,7 +8093,7 @@ var i1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT_ONLY = "text-onl
|
|
|
8091
8093
|
const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
8092
8094
|
key: 2,
|
|
8093
8095
|
class: "tab-item__label"
|
|
8094
|
-
}, X2 = /* @__PURE__ */
|
|
8096
|
+
}, X2 = /* @__PURE__ */ P({
|
|
8095
8097
|
__name: "RTabItem",
|
|
8096
8098
|
props: {
|
|
8097
8099
|
id: null,
|
|
@@ -8104,7 +8106,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8104
8106
|
},
|
|
8105
8107
|
emits: ["update:modelValue"],
|
|
8106
8108
|
setup(H, { emit: V }) {
|
|
8107
|
-
const C = H, M =
|
|
8109
|
+
const C = H, M = g(() => ({
|
|
8108
8110
|
"tab-item": !0,
|
|
8109
8111
|
[`tab-item--${C.variant}`]: !0
|
|
8110
8112
|
}));
|
|
@@ -8122,18 +8124,18 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8122
8124
|
key: 0,
|
|
8123
8125
|
class: "tab-item__icon",
|
|
8124
8126
|
name: C.icon
|
|
8125
|
-
}, null, 8, ["name"])) :
|
|
8127
|
+
}, null, 8, ["name"])) : y(A.$slots, "custom-icon", { key: 1 }),
|
|
8126
8128
|
H.variant !== h(i1).ICON_ONLY ? (o(), Z("span", Y2, b(C.label), 1)) : w("", !0)
|
|
8127
8129
|
], 10, q2));
|
|
8128
8130
|
}
|
|
8129
|
-
}), J2 = { class: "tabs-wrapper" }, C5 = { class: "tab-content" }, W5 = /* @__PURE__ */
|
|
8131
|
+
}), J2 = { class: "tabs-wrapper" }, C5 = { class: "tab-content" }, W5 = /* @__PURE__ */ P({
|
|
8130
8132
|
__name: "RTabs",
|
|
8131
8133
|
props: {
|
|
8132
8134
|
tabs: { default: () => [] },
|
|
8133
8135
|
scrollable: { type: Boolean, default: !1 }
|
|
8134
8136
|
},
|
|
8135
8137
|
setup(H) {
|
|
8136
|
-
const V = H, C = D(0), M =
|
|
8138
|
+
const V = H, C = D(0), M = g(() => ({
|
|
8137
8139
|
tabs: !0,
|
|
8138
8140
|
"tabs--scrollable": V.scrollable
|
|
8139
8141
|
}));
|
|
@@ -8155,7 +8157,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8155
8157
|
], 2)
|
|
8156
8158
|
]),
|
|
8157
8159
|
a("div", C5, [
|
|
8158
|
-
|
|
8160
|
+
y(L.$slots, "tab", { activeTab: C.value })
|
|
8159
8161
|
])
|
|
8160
8162
|
], 64));
|
|
8161
8163
|
}
|
|
@@ -8165,7 +8167,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8165
8167
|
}, M5 = {
|
|
8166
8168
|
key: 2,
|
|
8167
8169
|
class: "textarea__hint"
|
|
8168
|
-
}, I5 = /* @__PURE__ */
|
|
8170
|
+
}, I5 = /* @__PURE__ */ P({
|
|
8169
8171
|
__name: "RTextArea",
|
|
8170
8172
|
props: {
|
|
8171
8173
|
id: { default: "" },
|
|
@@ -8221,7 +8223,7 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8221
8223
|
}, i5 = { class: "input-wrapper" }, e5 = ["id", "disabled", "placeholder", "type", "value"], d5 = { class: "textfield__error" }, t5 = {
|
|
8222
8224
|
key: 0,
|
|
8223
8225
|
class: "textfield__hint"
|
|
8224
|
-
}, Q5 = /* @__PURE__ */
|
|
8226
|
+
}, Q5 = /* @__PURE__ */ P({
|
|
8225
8227
|
__name: "RTextfield",
|
|
8226
8228
|
props: {
|
|
8227
8229
|
id: { default: "" },
|
|
@@ -8254,34 +8256,34 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8254
8256
|
url: "link",
|
|
8255
8257
|
number: "123",
|
|
8256
8258
|
text: ""
|
|
8257
|
-
}, e = D(!1), d =
|
|
8258
|
-
const { disabled:
|
|
8259
|
+
}, e = D(!1), d = g(() => !!L.value), l = g(() => {
|
|
8260
|
+
const { disabled: f, loading: B, clearable: x, errorMsg: E } = C;
|
|
8259
8261
|
return {
|
|
8260
8262
|
textfield: !0,
|
|
8261
8263
|
"textfield--error": E == null ? void 0 : E.length,
|
|
8262
8264
|
"textfield--loading": B,
|
|
8263
|
-
"textfield--disabled":
|
|
8265
|
+
"textfield--disabled": f,
|
|
8264
8266
|
"textfield--clearable": x,
|
|
8265
8267
|
"textfield--focus": e.value,
|
|
8266
8268
|
"textfield--filled": d.value
|
|
8267
8269
|
};
|
|
8268
|
-
}), S =
|
|
8270
|
+
}), S = g(() => ({
|
|
8269
8271
|
"textfield__prepend-icon": !0,
|
|
8270
8272
|
"textfield__prepend-icon--loading": C.loading,
|
|
8271
8273
|
"textfield__prepend-icon--error": u.value && d.value
|
|
8272
|
-
})), m =
|
|
8274
|
+
})), m = g(() => ({
|
|
8273
8275
|
"textfield__append-icon": !0,
|
|
8274
8276
|
"textfield__append-icon--clear": c.value,
|
|
8275
8277
|
"textfield__append-icon--error": u.value
|
|
8276
|
-
})), s =
|
|
8277
|
-
var
|
|
8278
|
-
return (
|
|
8279
|
-
}), c =
|
|
8280
|
-
const { prependIcon:
|
|
8281
|
-
return
|
|
8282
|
-
}), t =
|
|
8283
|
-
const { appendIcon:
|
|
8284
|
-
return u.value ? "mdiAlertCircleOutline" : c.value && ["text", "email"].includes(B) ? "mdiClose" : B === "password" && A.value === "password" ? "mdiEyeOutline" : B === "password" && A.value === "text" ? "mdiEyeOffOutline" :
|
|
8278
|
+
})), s = g(() => L.value.length > 0), u = g(() => {
|
|
8279
|
+
var f;
|
|
8280
|
+
return (f = C.errorMsg) == null ? void 0 : f.length;
|
|
8281
|
+
}), c = g(() => C.clearable && s.value), r = g(() => {
|
|
8282
|
+
const { prependIcon: f, type: B } = C;
|
|
8283
|
+
return f || i[B];
|
|
8284
|
+
}), t = g(() => {
|
|
8285
|
+
const { appendIcon: f, type: B } = C;
|
|
8286
|
+
return u.value ? "mdiAlertCircleOutline" : c.value && ["text", "email"].includes(B) ? "mdiClose" : B === "password" && A.value === "password" ? "mdiEyeOutline" : B === "password" && A.value === "text" ? "mdiEyeOffOutline" : f;
|
|
8285
8287
|
}), n = () => {
|
|
8286
8288
|
e.value = !0, V("focus", {
|
|
8287
8289
|
value: L.value
|
|
@@ -8290,10 +8292,10 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8290
8292
|
e.value = !1, V("blur", {
|
|
8291
8293
|
value: L.value
|
|
8292
8294
|
});
|
|
8293
|
-
},
|
|
8294
|
-
var
|
|
8295
|
+
}, k = () => {
|
|
8296
|
+
var f;
|
|
8295
8297
|
if (c.value) {
|
|
8296
|
-
L.value = "", (
|
|
8298
|
+
L.value = "", (f = M.value) == null || f.focus(), V("click:clear", {
|
|
8297
8299
|
value: L.value
|
|
8298
8300
|
});
|
|
8299
8301
|
return;
|
|
@@ -8303,27 +8305,27 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8303
8305
|
}), R();
|
|
8304
8306
|
}, R = () => {
|
|
8305
8307
|
A.value = A.value === "password" ? "text" : "password";
|
|
8306
|
-
}, T = (
|
|
8307
|
-
const B =
|
|
8308
|
+
}, T = (f) => {
|
|
8309
|
+
const B = f.target;
|
|
8308
8310
|
L.value = B.value;
|
|
8309
8311
|
}, Q = () => {
|
|
8310
|
-
var
|
|
8311
|
-
(
|
|
8312
|
+
var f;
|
|
8313
|
+
(f = M.value) == null || f.focus();
|
|
8312
8314
|
};
|
|
8313
8315
|
return U(
|
|
8314
8316
|
() => C.modelValue,
|
|
8315
|
-
(
|
|
8316
|
-
L.value =
|
|
8317
|
+
(f) => {
|
|
8318
|
+
L.value = f;
|
|
8317
8319
|
},
|
|
8318
8320
|
{
|
|
8319
8321
|
immediate: !0
|
|
8320
8322
|
}
|
|
8321
8323
|
), U(
|
|
8322
8324
|
() => L.value,
|
|
8323
|
-
(
|
|
8324
|
-
V("update:modelValue",
|
|
8325
|
+
(f) => {
|
|
8326
|
+
V("update:modelValue", f);
|
|
8325
8327
|
}
|
|
8326
|
-
), (
|
|
8328
|
+
), (f, B) => (o(), Z("fieldset", null, [
|
|
8327
8329
|
a("div", A5, [
|
|
8328
8330
|
V1(T1, {
|
|
8329
8331
|
id: C.id,
|
|
@@ -8338,11 +8340,12 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8338
8340
|
a("div", {
|
|
8339
8341
|
class: p(h(l))
|
|
8340
8342
|
}, [
|
|
8341
|
-
|
|
8343
|
+
y(f.$slots, "prepend"),
|
|
8344
|
+
h(r) && !f.$slots.prepend ? (o(), F(v, {
|
|
8342
8345
|
key: 0,
|
|
8343
8346
|
class: p(h(S)),
|
|
8344
8347
|
name: h(r),
|
|
8345
|
-
size:
|
|
8348
|
+
size: 20
|
|
8346
8349
|
}, null, 8, ["class", "name"])) : w("", !0),
|
|
8347
8350
|
a("input", {
|
|
8348
8351
|
ref_key: "inputRef",
|
|
@@ -8356,12 +8359,13 @@ const q2 = ["aria-disabled", "aria-selected", "disabled"], Y2 = {
|
|
|
8356
8359
|
onFocus: n,
|
|
8357
8360
|
onInput: T
|
|
8358
8361
|
}, null, 40, e5),
|
|
8359
|
-
|
|
8362
|
+
y(f.$slots, "append"),
|
|
8363
|
+
h(t) && !f.$slots.append ? (o(), F(v, {
|
|
8360
8364
|
key: 1,
|
|
8361
8365
|
class: p(h(m)),
|
|
8362
8366
|
name: `${h(t)}`,
|
|
8363
|
-
size:
|
|
8364
|
-
onClick:
|
|
8367
|
+
size: 20,
|
|
8368
|
+
onClick: k
|
|
8365
8369
|
}, null, 8, ["class", "name"])) : w("", !0)
|
|
8366
8370
|
], 2),
|
|
8367
8371
|
a("div", d5, b(C.errorMsg), 1),
|
|
@@ -8416,8 +8420,8 @@ const m5 = async (H, V, C) => {
|
|
|
8416
8420
|
const { placement: M = "bottom", strategy: L = "absolute", middleware: A = [], platform: i } = C, e = A.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
|
|
8417
8421
|
let l = await i.getElementRects({ reference: H, floating: V, strategy: L }), { x: S, y: m } = p1(l, M, d), s = M, u = {}, c = 0;
|
|
8418
8422
|
for (let r = 0; r < e.length; r++) {
|
|
8419
|
-
const { name: t, fn: n } = e[r], { x: O, y:
|
|
8420
|
-
S = O ?? S, m =
|
|
8423
|
+
const { name: t, fn: n } = e[r], { x: O, y: k, data: R, reset: T } = await n({ x: S, y: m, initialPlacement: M, placement: s, strategy: L, middlewareData: u, rects: l, platform: i, elements: { reference: H, floating: V } });
|
|
8424
|
+
S = O ?? S, m = k ?? m, u = { ...u, [t]: { ...u[t], ...R } }, T && c <= 50 && (c++, typeof T == "object" && (T.placement && (s = T.placement), T.rects && (l = T.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: L }) : T.rects), { x: S, y: m } = p1(l, s, d)), r = -1);
|
|
8421
8425
|
}
|
|
8422
8426
|
return { x: S, y: m, placement: s, strategy: L, middlewareData: u };
|
|
8423
8427
|
};
|
|
@@ -8443,11 +8447,11 @@ const n5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
|
8443
8447
|
const { element: C, padding: M = 0 } = H ?? {}, { x: L, y: A, placement: i, rects: e, platform: d } = V;
|
|
8444
8448
|
if (C == null)
|
|
8445
8449
|
return {};
|
|
8446
|
-
const l = F1(M), S = { x: L, y: A }, m = M1(i), s = l1(i), u = S1(m), c = await d.getDimensions(C), r = m === "y" ? "top" : "left", t = m === "y" ? "bottom" : "right", n = e.reference[u] + e.reference[m] - S[m] - e.floating[u], O = S[m] - e.reference[m],
|
|
8447
|
-
let R =
|
|
8450
|
+
const l = F1(M), S = { x: L, y: A }, m = M1(i), s = l1(i), u = S1(m), c = await d.getDimensions(C), r = m === "y" ? "top" : "left", t = m === "y" ? "bottom" : "right", n = e.reference[u] + e.reference[m] - S[m] - e.floating[u], O = S[m] - e.reference[m], k = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8451
|
+
let R = k ? m === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0;
|
|
8448
8452
|
R === 0 && (R = e.floating[u]);
|
|
8449
|
-
const T = n / 2 - O / 2, Q = l[r],
|
|
8450
|
-
return { [m]: S[m] - (E ? B < Q ? Q - B :
|
|
8453
|
+
const T = n / 2 - O / 2, Q = l[r], f = R - c[u] - l[t], B = R / 2 - c[u] / 2 + T, x = a1(Q, B, f), E = (s === "start" ? l[r] : l[t]) > 0 && B !== x && e.reference[u] <= e.floating[u];
|
|
8454
|
+
return { [m]: S[m] - (E ? B < Q ? Q - B : f - B : 0), data: { [m]: x, centerOffset: B - x } };
|
|
8451
8455
|
} }), r5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8452
8456
|
function t1(H) {
|
|
8453
8457
|
return H.replace(/left|right|bottom|top/g, (V) => r5[V]);
|
|
@@ -8470,13 +8474,13 @@ const S5 = function(H) {
|
|
|
8470
8474
|
const { placement: M, middlewareData: L, rects: A, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: l = !0, crossAxis: S = !0, fallbackPlacements: m, fallbackStrategy: s = "bestFit", flipAlignment: u = !0, ...c } = H, r = L1(M), t = m || (r === i || !u ? [t1(i)] : function(B) {
|
|
8471
8475
|
const x = t1(B);
|
|
8472
8476
|
return [h1(B), x, h1(x)];
|
|
8473
|
-
}(i)), n = [i, ...t], O = await d1(V, c),
|
|
8477
|
+
}(i)), n = [i, ...t], O = await d1(V, c), k = [];
|
|
8474
8478
|
let R = ((C = L.flip) == null ? void 0 : C.overflows) || [];
|
|
8475
|
-
if (l &&
|
|
8479
|
+
if (l && k.push(O[r]), S) {
|
|
8476
8480
|
const { main: B, cross: x } = a5(M, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8477
|
-
|
|
8481
|
+
k.push(O[B], O[x]);
|
|
8478
8482
|
}
|
|
8479
|
-
if (R = [...R, { placement: M, overflows:
|
|
8483
|
+
if (R = [...R, { placement: M, overflows: k }], !k.every((B) => B <= 0)) {
|
|
8480
8484
|
var T, Q;
|
|
8481
8485
|
const B = ((T = (Q = L.flip) == null ? void 0 : Q.index) != null ? T : 0) + 1, x = n[B];
|
|
8482
8486
|
if (x)
|
|
@@ -8484,8 +8488,8 @@ const S5 = function(H) {
|
|
|
8484
8488
|
let E = "bottom";
|
|
8485
8489
|
switch (s) {
|
|
8486
8490
|
case "bestFit": {
|
|
8487
|
-
var
|
|
8488
|
-
const c1 = (
|
|
8491
|
+
var f;
|
|
8492
|
+
const c1 = (f = R.map((A1) => [A1, A1.overflows.filter((X) => X > 0).reduce((X, I1) => X + I1, 0)]).sort((A1, X) => A1[1] - X[1])[0]) == null ? void 0 : f[0].placement;
|
|
8489
8493
|
c1 && (E = c1);
|
|
8490
8494
|
break;
|
|
8491
8495
|
}
|
|
@@ -8525,8 +8529,8 @@ const u5 = function(H) {
|
|
|
8525
8529
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8526
8530
|
const { x: C, y: M } = V, L = await async function(A, i) {
|
|
8527
8531
|
const { placement: e, platform: d, elements: l } = A, S = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), m = L1(e), s = l1(e), u = M1(e) === "x", c = ["left", "top"].includes(m) ? -1 : 1, r = S && u ? -1 : 1, t = typeof i == "function" ? i(A) : i;
|
|
8528
|
-
let { mainAxis: n, crossAxis: O, alignmentAxis:
|
|
8529
|
-
return s && typeof
|
|
8532
|
+
let { mainAxis: n, crossAxis: O, alignmentAxis: k } = typeof t == "number" ? { mainAxis: t, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...t };
|
|
8533
|
+
return s && typeof k == "number" && (O = s === "end" ? -1 * k : k), u ? { x: O * r, y: n * c } : { x: n * c, y: O * r };
|
|
8530
8534
|
}(V, H);
|
|
8531
8535
|
return { x: C + L.x, y: M + L.y, data: L };
|
|
8532
8536
|
} };
|
|
@@ -8565,7 +8569,7 @@ function I(H) {
|
|
|
8565
8569
|
}
|
|
8566
8570
|
return H;
|
|
8567
8571
|
}
|
|
8568
|
-
function
|
|
8572
|
+
function _(H) {
|
|
8569
8573
|
return I(H).getComputedStyle(H);
|
|
8570
8574
|
}
|
|
8571
8575
|
function $(H) {
|
|
@@ -8585,14 +8589,14 @@ function k1(H) {
|
|
|
8585
8589
|
return typeof ShadowRoot > "u" ? !1 : H instanceof I(H).ShadowRoot || H instanceof ShadowRoot;
|
|
8586
8590
|
}
|
|
8587
8591
|
function o1(H) {
|
|
8588
|
-
const { overflow: V, overflowX: C, overflowY: M, display: L } =
|
|
8592
|
+
const { overflow: V, overflowX: C, overflowY: M, display: L } = _(H);
|
|
8589
8593
|
return /auto|scroll|overlay|hidden/.test(V + M + C) && !["inline", "contents"].includes(L);
|
|
8590
8594
|
}
|
|
8591
8595
|
function p5(H) {
|
|
8592
8596
|
return ["table", "td", "th"].includes($(H));
|
|
8593
8597
|
}
|
|
8594
8598
|
function Z1(H) {
|
|
8595
|
-
const V = /firefox/i.test(x1()), C =
|
|
8599
|
+
const V = /firefox/i.test(x1()), C = _(H), M = C.backdropFilter || C.WebkitBackdropFilter;
|
|
8596
8600
|
return C.transform !== "none" || C.perspective !== "none" || !!M && M !== "none" || V && C.willChange === "filter" || V && !!C.filter && C.filter !== "none" || ["transform", "perspective"].some((L) => C.willChange.includes(L)) || ["paint", "layout", "strict", "content"].some((L) => {
|
|
8597
8601
|
const A = C.contain;
|
|
8598
8602
|
return A != null && A.includes(L);
|
|
@@ -8646,14 +8650,14 @@ function H1(H) {
|
|
|
8646
8650
|
return k1(V) ? V.host : V;
|
|
8647
8651
|
}
|
|
8648
8652
|
function b1(H) {
|
|
8649
|
-
return W(H) &&
|
|
8653
|
+
return W(H) && _(H).position !== "fixed" ? H.offsetParent : null;
|
|
8650
8654
|
}
|
|
8651
8655
|
function w1(H) {
|
|
8652
8656
|
const V = I(H);
|
|
8653
8657
|
let C = b1(H);
|
|
8654
|
-
for (; C && p5(C) &&
|
|
8658
|
+
for (; C && p5(C) && _(C).position === "static"; )
|
|
8655
8659
|
C = b1(C);
|
|
8656
|
-
return C && ($(C) === "html" || $(C) === "body" &&
|
|
8660
|
+
return C && ($(C) === "html" || $(C) === "body" && _(C).position === "static" && !Z1(C)) ? V : C || function(M) {
|
|
8657
8661
|
let L = H1(M);
|
|
8658
8662
|
for (; W(L) && !u1(L); ) {
|
|
8659
8663
|
if (Z1(L))
|
|
@@ -8663,15 +8667,15 @@ function w1(H) {
|
|
|
8663
8667
|
return null;
|
|
8664
8668
|
}(H) || V;
|
|
8665
8669
|
}
|
|
8666
|
-
function
|
|
8670
|
+
function N1(H) {
|
|
8667
8671
|
const V = H1(H);
|
|
8668
|
-
return u1(V) ? H.ownerDocument.body : W(V) && o1(V) ? V :
|
|
8672
|
+
return u1(V) ? H.ownerDocument.body : W(V) && o1(V) ? V : N1(V);
|
|
8669
8673
|
}
|
|
8670
|
-
function
|
|
8674
|
+
function _1(H, V) {
|
|
8671
8675
|
var C;
|
|
8672
8676
|
V === void 0 && (V = []);
|
|
8673
|
-
const M =
|
|
8674
|
-
return L ? e : e.concat(
|
|
8677
|
+
const M = N1(H), L = M === ((C = H.ownerDocument) == null ? void 0 : C.body), A = I(M), i = L ? [A].concat(A.visualViewport || [], o1(M) ? M : []) : M, e = V.concat(i);
|
|
8678
|
+
return L ? e : e.concat(_1(i));
|
|
8675
8679
|
}
|
|
8676
8680
|
function y1(H, V, C) {
|
|
8677
8681
|
return V === "viewport" ? e1(function(M, L) {
|
|
@@ -8691,17 +8695,17 @@ function y1(H, V, C) {
|
|
|
8691
8695
|
const A = z(M), i = n1(M), e = (L = M.ownerDocument) == null ? void 0 : L.body, d = C1(A.scrollWidth, A.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = C1(A.scrollHeight, A.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
|
|
8692
8696
|
let S = -i.scrollLeft + E1(M);
|
|
8693
8697
|
const m = -i.scrollTop;
|
|
8694
|
-
return
|
|
8698
|
+
return _(e || A).direction === "rtl" && (S += C1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: S, y: m };
|
|
8695
8699
|
}(z(H)));
|
|
8696
8700
|
}
|
|
8697
8701
|
const f5 = { getClippingRect: function(H) {
|
|
8698
8702
|
let { element: V, boundary: C, rootBoundary: M, strategy: L } = H;
|
|
8699
8703
|
const A = C === "clippingAncestors" ? function(l) {
|
|
8700
|
-
let S =
|
|
8701
|
-
const s =
|
|
8704
|
+
let S = _1(l).filter((c) => q(c) && $(c) !== "body"), m = null;
|
|
8705
|
+
const s = _(l).position === "fixed";
|
|
8702
8706
|
let u = s ? H1(l) : l;
|
|
8703
8707
|
for (; q(u) && !u1(u); ) {
|
|
8704
|
-
const c =
|
|
8708
|
+
const c = _(u), r = Z1(u);
|
|
8705
8709
|
(s ? r || m : r || c.position !== "static" || !m || !["absolute", "fixed"].includes(m.position)) ? m = c : S = S.filter((t) => t !== u), u = H1(u);
|
|
8706
8710
|
}
|
|
8707
8711
|
return S;
|
|
@@ -8731,7 +8735,7 @@ const f5 = { getClippingRect: function(H) {
|
|
|
8731
8735
|
let { reference: V, floating: C, strategy: M } = H;
|
|
8732
8736
|
const L = this.getOffsetParent || w1, A = this.getDimensions;
|
|
8733
8737
|
return { reference: h5(V, await L(C), M), floating: { x: 0, y: 0, ...await A(C) } };
|
|
8734
|
-
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) =>
|
|
8738
|
+
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => _(H).direction === "rtl" }, g5 = (H, V, C) => m5(H, V, { platform: f5, ...C });
|
|
8735
8739
|
function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
8736
8740
|
!H || !V || g5(H, V, {
|
|
8737
8741
|
placement: M,
|
|
@@ -8765,7 +8769,7 @@ function r1({ value: H }, { value: V }, { value: C }, M, L, A) {
|
|
|
8765
8769
|
});
|
|
8766
8770
|
}
|
|
8767
8771
|
var W1 = /* @__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))(W1 || {}), G = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(G || {});
|
|
8768
|
-
const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], B5 = ["innerHTML"], b5 = /* @__PURE__ */
|
|
8772
|
+
const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], B5 = ["innerHTML"], b5 = /* @__PURE__ */ P({
|
|
8769
8773
|
__name: "RTooltip",
|
|
8770
8774
|
props: {
|
|
8771
8775
|
placement: { default: W1.Top },
|
|
@@ -8792,8 +8796,8 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8792
8796
|
}));
|
|
8793
8797
|
const M = D(null), L = D(null), A = D(null);
|
|
8794
8798
|
function i() {
|
|
8795
|
-
const { placement: t, offset: n, padding: O, disabled:
|
|
8796
|
-
|
|
8799
|
+
const { placement: t, offset: n, padding: O, disabled: k } = C;
|
|
8800
|
+
k || (L.value.style.display = "block", V("show"), r1(M, L, A, t, n, O), d(), C.outsideClick && l("add"));
|
|
8797
8801
|
}
|
|
8798
8802
|
function e() {
|
|
8799
8803
|
L.value.style.display = "", V("hide"), C.outsideClick && l("remove");
|
|
@@ -8816,16 +8820,16 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8816
8820
|
} else
|
|
8817
8821
|
L.value.style.display !== "" && C.triggers === G.Hover && e();
|
|
8818
8822
|
}, u = () => {
|
|
8819
|
-
const { placement: t, offset: n, padding: O, disabled:
|
|
8820
|
-
|
|
8821
|
-
}, c =
|
|
8823
|
+
const { placement: t, offset: n, padding: O, disabled: k } = C;
|
|
8824
|
+
k || C.triggers === G.Hover && r1(M, L, A, t, n, O);
|
|
8825
|
+
}, c = g(() => ({
|
|
8822
8826
|
tooltip: !0,
|
|
8823
8827
|
"tooltip--dark": C.dark,
|
|
8824
8828
|
"tooltip--light": C.light
|
|
8825
8829
|
}));
|
|
8826
8830
|
window.onresize = () => {
|
|
8827
|
-
const { placement: t, offset: n, padding: O, disabled:
|
|
8828
|
-
|
|
8831
|
+
const { placement: t, offset: n, padding: O, disabled: k } = C;
|
|
8832
|
+
k || C.resizable && r1(M, L, A, t, n, O);
|
|
8829
8833
|
}, Y1(
|
|
8830
8834
|
() => {
|
|
8831
8835
|
C.disabled || C.shown && C.triggers === G.Manual && i();
|
|
@@ -8833,19 +8837,19 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8833
8837
|
{ flush: "post" }
|
|
8834
8838
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8835
8839
|
);
|
|
8836
|
-
const r =
|
|
8840
|
+
const r = g(() => `${C.showDelay}ms`);
|
|
8837
8841
|
return (t, n) => (o(), Z(K, null, [
|
|
8838
8842
|
a("div", {
|
|
8839
8843
|
ref_key: "trigger",
|
|
8840
8844
|
ref: M,
|
|
8841
8845
|
"aria-disabled": C.disabled,
|
|
8842
8846
|
class: "trigger",
|
|
8843
|
-
onClick:
|
|
8844
|
-
onMouseenter:
|
|
8845
|
-
onMouseleave:
|
|
8846
|
-
onMousemove:
|
|
8847
|
+
onClick: N(S, ["stop"]),
|
|
8848
|
+
onMouseenter: N(m, ["stop"]),
|
|
8849
|
+
onMouseleave: N(s, ["stop"]),
|
|
8850
|
+
onMousemove: N(u, ["stop"])
|
|
8847
8851
|
}, [
|
|
8848
|
-
|
|
8852
|
+
y(t.$slots, "trigger", {}, void 0, !0),
|
|
8849
8853
|
t.$slots.trigger ? w("", !0) : (o(), Z("div", {
|
|
8850
8854
|
key: 0,
|
|
8851
8855
|
innerHTML: C.triggerContent
|
|
@@ -8858,7 +8862,7 @@ const k5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8858
8862
|
class: p(h(c)),
|
|
8859
8863
|
role: "tooltip"
|
|
8860
8864
|
}, [
|
|
8861
|
-
|
|
8865
|
+
y(t.$slots, "content", {}, void 0, !0),
|
|
8862
8866
|
t.$slots.content ? w("", !0) : (o(), Z("div", {
|
|
8863
8867
|
key: 0,
|
|
8864
8868
|
class: p({
|
|
@@ -8901,8 +8905,8 @@ export {
|
|
|
8901
8905
|
T1 as RLabel,
|
|
8902
8906
|
D5 as RModal,
|
|
8903
8907
|
E5 as RSidebar,
|
|
8904
|
-
|
|
8905
|
-
|
|
8908
|
+
N5 as RSnackbar,
|
|
8909
|
+
_5 as RSwitch,
|
|
8906
8910
|
X2 as RTabItem,
|
|
8907
8911
|
W5 as RTabs,
|
|
8908
8912
|
I5 as RTextArea,
|