@rocketui/vue 0.0.67 → 0.0.69
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/README.md +3 -0
- package/dist/rocket-ui-vue.d.ts +347 -332
- package/dist/rocket-ui-vue.js +273 -264
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, openBlock as
|
|
1
|
+
import { defineComponent as F, openBlock as m, createElementBlock as a, createElementVNode as Z, unref as p, reactive as J, Fragment as U, renderList as Y, normalizeClass as f, renderSlot as B, toDisplayString as y, createVNode as q, computed as g, createCommentVNode as k, mergeProps as V2, createBlock as R, watch as W, getCurrentScope as L2, onScopeDispose as M2, ref as D, onMounted as E1, withDirectives as _1, withKeys as k1, vModelText as A2, createTextVNode as W1, withModifiers as z, normalizeStyle as p1, vShow as i2, useCssVars as e2, watchEffect as d2, Teleport as t2, resolveComponent as m2, withCtx as N1, provide as a1, resolveDynamicComponent as l2, inject as Z1 } from "vue";
|
|
2
2
|
const o2 = {
|
|
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",
|
|
@@ -7305,7 +7305,7 @@ const o2 = {
|
|
|
7305
7305
|
},
|
|
7306
7306
|
setup(H) {
|
|
7307
7307
|
const V = H;
|
|
7308
|
-
return (C, L) => (
|
|
7308
|
+
return (C, L) => (m(), a("svg", {
|
|
7309
7309
|
class: "r-icon",
|
|
7310
7310
|
height: V.size,
|
|
7311
7311
|
viewBox: V.viewBox,
|
|
@@ -7336,7 +7336,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7336
7336
|
C[i].open = i === M ? !C[i].open : !1;
|
|
7337
7337
|
});
|
|
7338
7338
|
}
|
|
7339
|
-
return (M, A) => (
|
|
7339
|
+
return (M, A) => (m(!0), a(U, null, Y(C, (i, e) => (m(), a("div", {
|
|
7340
7340
|
key: e,
|
|
7341
7341
|
class: f({
|
|
7342
7342
|
"r-accordion": !0,
|
|
@@ -7393,7 +7393,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7393
7393
|
})[C.type]), A = () => {
|
|
7394
7394
|
V("close");
|
|
7395
7395
|
};
|
|
7396
|
-
return (i, e) => (
|
|
7396
|
+
return (i, e) => (m(), a("div", {
|
|
7397
7397
|
class: f(p(L))
|
|
7398
7398
|
}, [
|
|
7399
7399
|
Z("div", s2, [
|
|
@@ -7407,10 +7407,10 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7407
7407
|
Z("div", O2, [
|
|
7408
7408
|
B(i.$slots, "content", {}, () => [
|
|
7409
7409
|
Z("p", p2, y(C.title), 1),
|
|
7410
|
-
C.description ? (
|
|
7410
|
+
C.description ? (m(), a("p", h2, y(C.description), 1)) : k("", !0)
|
|
7411
7411
|
])
|
|
7412
7412
|
]),
|
|
7413
|
-
C.closable ? (
|
|
7413
|
+
C.closable ? (m(), a("div", f2, [
|
|
7414
7414
|
B(i.$slots, "custom-close", {}, () => [
|
|
7415
7415
|
q(x, {
|
|
7416
7416
|
class: "r-alert__close__button",
|
|
@@ -7440,14 +7440,14 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7440
7440
|
const e = i.split(" ");
|
|
7441
7441
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7442
7442
|
};
|
|
7443
|
-
return (i, e) => (
|
|
7443
|
+
return (i, e) => (m(), a("div", g2, [
|
|
7444
7444
|
Z("div", {
|
|
7445
7445
|
class: f(p(C))
|
|
7446
7446
|
}, [
|
|
7447
|
-
V.type === "text" ? (
|
|
7447
|
+
V.type === "text" ? (m(), a("p", {
|
|
7448
7448
|
key: 0,
|
|
7449
7449
|
class: f({ "r-avatar__text": !0, [`r-avatar__text--${V.size}`]: !0 })
|
|
7450
|
-
}, y(A(V.text)), 3)) : (
|
|
7450
|
+
}, y(A(V.text)), 3)) : (m(), a("img", {
|
|
7451
7451
|
key: 1,
|
|
7452
7452
|
alt: V.alt,
|
|
7453
7453
|
class: f({
|
|
@@ -7458,7 +7458,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7458
7458
|
src: p(M)
|
|
7459
7459
|
}, null, 10, k2))
|
|
7460
7460
|
], 2),
|
|
7461
|
-
V.online ? (
|
|
7461
|
+
V.online ? (m(), a("span", {
|
|
7462
7462
|
key: 0,
|
|
7463
7463
|
class: f({
|
|
7464
7464
|
"r-avatar__online": !0,
|
|
@@ -7489,7 +7489,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7489
7489
|
"r-badge--no-content": !V.content,
|
|
7490
7490
|
[`r-badge--${V.variant}`]: V.variant
|
|
7491
7491
|
}));
|
|
7492
|
-
return (L, M) => (
|
|
7492
|
+
return (L, M) => (m(), a("div", B2, [
|
|
7493
7493
|
Z("span", {
|
|
7494
7494
|
class: f(p(C)),
|
|
7495
7495
|
onClick: M[0] || (M[0] = (A) => L.$emit("click"))
|
|
@@ -7533,24 +7533,23 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7533
7533
|
color: e
|
|
7534
7534
|
};
|
|
7535
7535
|
});
|
|
7536
|
-
return (A, i) => (
|
|
7536
|
+
return (A, i) => (m(), a("button", V2(A.$attrs, {
|
|
7537
7537
|
class: p(C),
|
|
7538
7538
|
disabled: H.disabled || H.loading,
|
|
7539
7539
|
style: p(M),
|
|
7540
|
-
onClick: i[0] || (i[0] =
|
|
7540
|
+
onClick: i[0] || (i[0] = (e) => A.$emit("click"))
|
|
7541
7541
|
}), [
|
|
7542
7542
|
B(A.$slots, "custom-icon"),
|
|
7543
|
-
!A.$slots["custom-icon"] && V.prependIcon ? (
|
|
7543
|
+
!A.$slots["custom-icon"] && V.prependIcon ? (m(), R(x, {
|
|
7544
7544
|
key: 0,
|
|
7545
|
-
class: f({
|
|
7546
|
-
"r-button__prepend-icon": !0,
|
|
7545
|
+
class: f(["r-button__prepend-icon", {
|
|
7547
7546
|
"r-button__prepend-icon--only": V.onlyIcon
|
|
7548
|
-
}),
|
|
7547
|
+
}]),
|
|
7549
7548
|
name: V.prependIcon,
|
|
7550
7549
|
size: p(L)
|
|
7551
7550
|
}, null, 8, ["class", "name", "size"])) : k("", !0),
|
|
7552
7551
|
V.onlyIcon ? k("", !0) : B(A.$slots, "default", { key: 1 }),
|
|
7553
|
-
!A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (
|
|
7552
|
+
!A.$slots["custom-icon"] && !V.onlyIcon && V.appendIcon ? (m(), R(x, {
|
|
7554
7553
|
key: 2,
|
|
7555
7554
|
class: "r-button__append-icon",
|
|
7556
7555
|
name: V.appendIcon,
|
|
@@ -7613,7 +7612,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7613
7612
|
// TODO: find a better way to do this
|
|
7614
7613
|
immediate: !0
|
|
7615
7614
|
}
|
|
7616
|
-
), (d, l) => (
|
|
7615
|
+
), (d, l) => (m(), a("div", y2, [
|
|
7617
7616
|
Z("div", w2, [
|
|
7618
7617
|
Z("input", {
|
|
7619
7618
|
id: C.id,
|
|
@@ -7640,7 +7639,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7640
7639
|
"data-disabled": C.disabled,
|
|
7641
7640
|
for: C.id
|
|
7642
7641
|
}, y(C.label), 9, F2),
|
|
7643
|
-
C.errorMsg ? (
|
|
7642
|
+
C.errorMsg ? (m(), a("p", R2, y(C.errorMsg), 1)) : (m(), a("p", x2, y(C.hint), 1))
|
|
7644
7643
|
])
|
|
7645
7644
|
]));
|
|
7646
7645
|
}
|
|
@@ -7667,7 +7666,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7667
7666
|
}, A = (i) => {
|
|
7668
7667
|
C.disabled || !C.closable || (i.stopPropagation(), V("click:close", i));
|
|
7669
7668
|
};
|
|
7670
|
-
return (i, e) => (
|
|
7669
|
+
return (i, e) => (m(), a("div", {
|
|
7671
7670
|
class: f(p(L))
|
|
7672
7671
|
}, [
|
|
7673
7672
|
Z("div", {
|
|
@@ -7675,7 +7674,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7675
7674
|
onClick: e[0] || (e[0] = (d) => M(d))
|
|
7676
7675
|
}, [
|
|
7677
7676
|
B(i.$slots, "prepend", {}, () => [
|
|
7678
|
-
C.prependIcon ? (
|
|
7677
|
+
C.prependIcon ? (m(), R(x, {
|
|
7679
7678
|
key: 0,
|
|
7680
7679
|
"aria-disabled": C.disabled,
|
|
7681
7680
|
class: "r-chip__content__prepend-icon",
|
|
@@ -7686,7 +7685,7 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7686
7685
|
Z("span", D2, y(C.label), 1)
|
|
7687
7686
|
]),
|
|
7688
7687
|
B(i.$slots, "append", {}, () => [
|
|
7689
|
-
C.appendIcon ? (
|
|
7688
|
+
C.appendIcon ? (m(), R(x, {
|
|
7690
7689
|
key: 0,
|
|
7691
7690
|
"aria-disabled": C.disabled,
|
|
7692
7691
|
class: "r-chip__content__append-icon",
|
|
@@ -7699,36 +7698,36 @@ const a2 = ["data-state"], Z2 = ["onClick"], u2 = { class: "r-accordion__title"
|
|
|
7699
7698
|
}
|
|
7700
7699
|
});
|
|
7701
7700
|
function _2(H) {
|
|
7702
|
-
return
|
|
7701
|
+
return L2() ? (M2(H), !0) : !1;
|
|
7703
7702
|
}
|
|
7704
|
-
function
|
|
7703
|
+
function I1(H) {
|
|
7705
7704
|
return typeof H == "function" ? H() : p(H);
|
|
7706
7705
|
}
|
|
7707
|
-
const
|
|
7706
|
+
const Q1 = typeof window < "u" && typeof document < "u", W2 = Object.prototype.toString, N2 = (H) => W2.call(H) === "[object Object]", c1 = () => {
|
|
7708
7707
|
}, I2 = /* @__PURE__ */ Q2();
|
|
7709
7708
|
function Q2() {
|
|
7710
7709
|
var H;
|
|
7711
|
-
return
|
|
7710
|
+
return Q1 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7712
7711
|
}
|
|
7713
7712
|
function H1(H) {
|
|
7714
7713
|
var V;
|
|
7715
|
-
const C =
|
|
7714
|
+
const C = I1(H);
|
|
7716
7715
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
7717
7716
|
}
|
|
7718
|
-
const
|
|
7717
|
+
const G1 = Q1 ? window : void 0;
|
|
7719
7718
|
function u1(...H) {
|
|
7720
7719
|
let V, C, L, M;
|
|
7721
|
-
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, M] = H, V =
|
|
7720
|
+
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, M] = H, V = G1) : [V, C, L, M] = H, !V)
|
|
7722
7721
|
return c1;
|
|
7723
7722
|
Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
|
|
7724
7723
|
const A = [], i = () => {
|
|
7725
7724
|
A.forEach((o) => o()), A.length = 0;
|
|
7726
|
-
}, e = (o,
|
|
7727
|
-
() => [H1(V),
|
|
7728
|
-
([o,
|
|
7725
|
+
}, e = (o, t, r, n) => (o.addEventListener(t, r, n), () => o.removeEventListener(t, r, n)), d = W(
|
|
7726
|
+
() => [H1(V), I1(M)],
|
|
7727
|
+
([o, t]) => {
|
|
7729
7728
|
if (i(), !o)
|
|
7730
7729
|
return;
|
|
7731
|
-
const r = N2(
|
|
7730
|
+
const r = N2(t) ? { ...t } : t;
|
|
7732
7731
|
A.push(
|
|
7733
7732
|
...C.flatMap((n) => L.map((S) => e(o, n, S, r)))
|
|
7734
7733
|
);
|
|
@@ -7741,7 +7740,7 @@ function u1(...H) {
|
|
|
7741
7740
|
}
|
|
7742
7741
|
let b1 = !1;
|
|
7743
7742
|
function G2(H, V, C = {}) {
|
|
7744
|
-
const { window: L =
|
|
7743
|
+
const { window: L = G1, ignore: M = [], capture: A = !0, detectIframe: i = !1 } = C;
|
|
7745
7744
|
if (!L)
|
|
7746
7745
|
return;
|
|
7747
7746
|
I2 && !b1 && (b1 = !0, Array.from(L.document.body.children).forEach((r) => r.addEventListener("click", c1)), L.document.documentElement.addEventListener("click", c1));
|
|
@@ -7803,60 +7802,60 @@ const z2 = {
|
|
|
7803
7802
|
setup(H, { emit: V }) {
|
|
7804
7803
|
const C = H, L = D(""), M = J([]), A = D(!1), i = D(""), e = D(null), d = D(null), l = D(null);
|
|
7805
7804
|
function o(u) {
|
|
7806
|
-
var
|
|
7805
|
+
var s, c, v;
|
|
7807
7806
|
if (!C.disabled) {
|
|
7808
7807
|
if (u.stopPropagation(), A.value = !A.value, A.value) {
|
|
7809
|
-
(
|
|
7808
|
+
(s = e.value) == null || s.classList.add("r-dropdown--active"), (c = e.value) == null || c.focus(), C.searchable && ((v = d.value) == null || v.focus());
|
|
7810
7809
|
return;
|
|
7811
7810
|
}
|
|
7812
|
-
|
|
7811
|
+
t();
|
|
7813
7812
|
}
|
|
7814
7813
|
}
|
|
7815
|
-
function
|
|
7816
|
-
var u,
|
|
7817
|
-
A.value = !1, (u = e.value) == null || u.classList.remove("r-dropdown--active"), (
|
|
7814
|
+
function t() {
|
|
7815
|
+
var u, s, c;
|
|
7816
|
+
A.value = !1, (u = e.value) == null || u.classList.remove("r-dropdown--active"), (s = e.value) == null || s.blur(), (c = d.value) == null || c.blur();
|
|
7818
7817
|
}
|
|
7819
|
-
function r(u,
|
|
7820
|
-
var
|
|
7818
|
+
function r(u, s) {
|
|
7819
|
+
var c;
|
|
7821
7820
|
if (C.multiple || C.taggable) {
|
|
7822
|
-
u.stopPropagation(), M.find((v) => v.value ===
|
|
7821
|
+
u.stopPropagation(), M.find((v) => v.value === s.value) ? M.splice(M.indexOf(s), 1) : M.push(s), i.value = "", C.searchable && ((c = d.value) == null || c.focus());
|
|
7823
7822
|
return;
|
|
7824
7823
|
}
|
|
7825
|
-
n(u,
|
|
7824
|
+
n(u, s);
|
|
7826
7825
|
}
|
|
7827
|
-
function n(u,
|
|
7828
|
-
if (L.value ===
|
|
7826
|
+
function n(u, s) {
|
|
7827
|
+
if (L.value === s.value) {
|
|
7829
7828
|
L.value = "", i.value = "";
|
|
7830
7829
|
return;
|
|
7831
7830
|
}
|
|
7832
|
-
i.value =
|
|
7831
|
+
i.value = s.label, L.value = s.value, o(u), V("update:modelValue", s);
|
|
7833
7832
|
}
|
|
7834
|
-
function S(u,
|
|
7833
|
+
function S(u, s) {
|
|
7835
7834
|
if (u instanceof KeyboardEvent && u.key !== "Backspace" || i.value !== "")
|
|
7836
7835
|
return;
|
|
7837
7836
|
u.stopPropagation();
|
|
7838
|
-
const
|
|
7839
|
-
M.splice(
|
|
7837
|
+
const c = M.findIndex((v) => v.value === s.value);
|
|
7838
|
+
M.splice(c, 1);
|
|
7840
7839
|
}
|
|
7841
7840
|
function b(u) {
|
|
7842
7841
|
var v;
|
|
7843
7842
|
if (!C.taggable)
|
|
7844
7843
|
return;
|
|
7845
7844
|
u.stopPropagation();
|
|
7846
|
-
const
|
|
7847
|
-
if (
|
|
7845
|
+
const s = i.value;
|
|
7846
|
+
if (s === "")
|
|
7848
7847
|
return;
|
|
7849
|
-
C.options.find((h) => h.label ===
|
|
7848
|
+
C.options.find((h) => h.label === s) || (M.push({ value: s, label: s }), i.value = "", (v = d.value) == null || v.focus());
|
|
7850
7849
|
}
|
|
7851
|
-
function
|
|
7852
|
-
return C.multiple ? M.find((
|
|
7850
|
+
function O(u) {
|
|
7851
|
+
return C.multiple ? M.find((s) => s.value === u.value) : L.value === u.value;
|
|
7853
7852
|
}
|
|
7854
|
-
const w = g(() => C.searchable ? C.options.filter((
|
|
7855
|
-
return
|
|
7853
|
+
const w = g(() => C.searchable ? C.options.filter((s) => s.label.toLowerCase().includes(i.value.toLowerCase())) : C.options), T = g(() => C.multiple || C.taggable || !C.searchable);
|
|
7854
|
+
return E1(() => {
|
|
7856
7855
|
C.modelValue && (C.multiple ? M.push(C.modelValue) : (L.value = C.modelValue.value, i.value = C.modelValue.label));
|
|
7857
7856
|
}), W(M, (u) => {
|
|
7858
7857
|
V("update:modelValue", u);
|
|
7859
|
-
}), G2(l,
|
|
7858
|
+
}), G2(l, t), (u, s) => (m(), a("div", {
|
|
7860
7859
|
ref_key: "wrapper",
|
|
7861
7860
|
ref: l,
|
|
7862
7861
|
class: "r-dropdown-wrapper"
|
|
@@ -7871,37 +7870,37 @@ const z2 = {
|
|
|
7871
7870
|
role: "select",
|
|
7872
7871
|
onClick: o
|
|
7873
7872
|
}, [
|
|
7874
|
-
C.prependIcon || u.$slots.prepend ? (
|
|
7873
|
+
C.prependIcon || u.$slots.prepend ? (m(), a("div", {
|
|
7875
7874
|
key: 0,
|
|
7876
7875
|
class: f(["r-dropdown__prepend-icon", {
|
|
7877
7876
|
"r-dropdown__prepend-icon--active": A.value
|
|
7878
7877
|
}])
|
|
7879
7878
|
}, [
|
|
7880
7879
|
B(u.$slots, "prepend", {}, () => [
|
|
7881
|
-
C.prependIcon ? (
|
|
7880
|
+
C.prependIcon ? (m(), R(x, {
|
|
7882
7881
|
key: 0,
|
|
7883
7882
|
name: C.prependIcon
|
|
7884
7883
|
}, null, 8, ["name"])) : k("", !0)
|
|
7885
7884
|
])
|
|
7886
7885
|
], 2)) : k("", !0),
|
|
7887
|
-
C.taggable ? (
|
|
7888
|
-
(
|
|
7886
|
+
C.taggable ? (m(), a("div", z2, [
|
|
7887
|
+
(m(!0), a(U, null, Y(M, (c, v) => (m(), R(E2, {
|
|
7889
7888
|
key: v,
|
|
7890
7889
|
"append-icon": "close",
|
|
7891
7890
|
class: "r-dropdown__tags__chip",
|
|
7892
|
-
label:
|
|
7891
|
+
label: c.label,
|
|
7893
7892
|
variant: "primary",
|
|
7894
|
-
"onClick:close": (h) => S(h,
|
|
7893
|
+
"onClick:close": (h) => S(h, c)
|
|
7895
7894
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
7896
7895
|
])) : k("", !0),
|
|
7897
|
-
C.multiple ? (
|
|
7898
|
-
(
|
|
7896
|
+
C.multiple ? (m(), a("div", U2, [
|
|
7897
|
+
(m(!0), a(U, null, Y(M, (c, v) => (m(), a("p", { key: v }, y(`${c.label},`), 1))), 128))
|
|
7899
7898
|
])) : k("", !0),
|
|
7900
|
-
|
|
7899
|
+
_1(Z("input", {
|
|
7901
7900
|
id: C.id,
|
|
7902
7901
|
ref_key: "input",
|
|
7903
7902
|
ref: d,
|
|
7904
|
-
"onUpdate:modelValue":
|
|
7903
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => i.value = c),
|
|
7905
7904
|
class: f(["r-dropdown__input", {
|
|
7906
7905
|
"r-dropdown__input--loading": C.loading
|
|
7907
7906
|
}]),
|
|
@@ -7910,20 +7909,20 @@ const z2 = {
|
|
|
7910
7909
|
readonly: p(T),
|
|
7911
7910
|
type: "text",
|
|
7912
7911
|
onKeydown: [
|
|
7913
|
-
|
|
7914
|
-
|
|
7912
|
+
s[1] || (s[1] = k1((c) => S(c, M[M.length - 1]), ["backspace"])),
|
|
7913
|
+
s[2] || (s[2] = k1((c) => b(c), ["enter"]))
|
|
7915
7914
|
]
|
|
7916
7915
|
}, null, 42, $2), [
|
|
7917
7916
|
[A2, i.value]
|
|
7918
7917
|
]),
|
|
7919
|
-
C.appendIcon || u.$slots.append ? (
|
|
7918
|
+
C.appendIcon || u.$slots.append ? (m(), a("div", {
|
|
7920
7919
|
key: 3,
|
|
7921
7920
|
class: f(["r-dropdown__append-icon", {
|
|
7922
7921
|
"r-dropdown__append-icon--active": A.value
|
|
7923
7922
|
}])
|
|
7924
7923
|
}, [
|
|
7925
7924
|
B(u.$slots, "append", {}, () => [
|
|
7926
|
-
C.appendIcon ? (
|
|
7925
|
+
C.appendIcon ? (m(), R(x, {
|
|
7927
7926
|
key: 0,
|
|
7928
7927
|
name: C.appendIcon
|
|
7929
7928
|
}, null, 8, ["name"])) : k("", !0)
|
|
@@ -7935,32 +7934,32 @@ const z2 = {
|
|
|
7935
7934
|
"r-dropdown-options--active": A.value
|
|
7936
7935
|
}])
|
|
7937
7936
|
}, [
|
|
7938
|
-
(
|
|
7939
|
-
key:
|
|
7940
|
-
"aria-disabled":
|
|
7937
|
+
(m(!0), a(U, null, Y(p(w), (c) => (m(), a("li", {
|
|
7938
|
+
key: c.value,
|
|
7939
|
+
"aria-disabled": c.disabled,
|
|
7941
7940
|
class: f(["r-dropdown-options__option", {
|
|
7942
|
-
"r-dropdown-options__option--active": c
|
|
7941
|
+
"r-dropdown-options__option--active": O(c)
|
|
7943
7942
|
}]),
|
|
7944
|
-
onClick: (v) => r(v,
|
|
7943
|
+
onClick: (v) => r(v, c)
|
|
7945
7944
|
}, [
|
|
7946
7945
|
Z("div", j2, [
|
|
7947
|
-
|
|
7946
|
+
c.prependIcon ? (m(), R(x, {
|
|
7948
7947
|
key: 1,
|
|
7949
7948
|
class: f(["r-dropdown-options__option__prepend-icon", {
|
|
7950
|
-
"r-dropdown-options__option__prepend-icon--active": c
|
|
7949
|
+
"r-dropdown-options__option__prepend-icon--active": O(c)
|
|
7951
7950
|
}]),
|
|
7952
|
-
name:
|
|
7951
|
+
name: c.prependIcon
|
|
7953
7952
|
}, null, 8, ["class", "name"])) : B(u.$slots, "option-prepend", { key: 0 }),
|
|
7954
7953
|
Z("p", {
|
|
7955
7954
|
class: f(["r-dropdown-options__option__label", {
|
|
7956
|
-
"r-dropdown-options__option__label--active": c
|
|
7955
|
+
"r-dropdown-options__option__label--active": O(c)
|
|
7957
7956
|
}])
|
|
7958
|
-
}, y(
|
|
7957
|
+
}, y(c.label), 3)
|
|
7959
7958
|
]),
|
|
7960
|
-
c
|
|
7959
|
+
O(c) ? (m(), R(x, {
|
|
7961
7960
|
key: 0,
|
|
7962
7961
|
class: f(["r-dropdown-options__option__append-icon", {
|
|
7963
|
-
"r-dropdown-options__option__append-icon--active": c
|
|
7962
|
+
"r-dropdown-options__option__append-icon--active": O(c)
|
|
7964
7963
|
}]),
|
|
7965
7964
|
name: "mdiCheck"
|
|
7966
7965
|
}, null, 8, ["class"])) : k("", !0)
|
|
@@ -7968,7 +7967,7 @@ const z2 = {
|
|
|
7968
7967
|
], 2)
|
|
7969
7968
|
], 512));
|
|
7970
7969
|
}
|
|
7971
|
-
}), q2 = ["id", "for"],
|
|
7970
|
+
}), q2 = ["id", "for"], z1 = /* @__PURE__ */ F({
|
|
7972
7971
|
__name: "RLabel",
|
|
7973
7972
|
props: {
|
|
7974
7973
|
id: { default: "" },
|
|
@@ -7977,13 +7976,13 @@ const z2 = {
|
|
|
7977
7976
|
},
|
|
7978
7977
|
setup(H) {
|
|
7979
7978
|
const V = H;
|
|
7980
|
-
return (C, L) => (
|
|
7979
|
+
return (C, L) => (m(), a("label", {
|
|
7981
7980
|
id: V.id,
|
|
7982
7981
|
class: "r-label",
|
|
7983
7982
|
for: V.for
|
|
7984
7983
|
}, [
|
|
7985
7984
|
B(C.$slots, "default", {}, () => [
|
|
7986
|
-
|
|
7985
|
+
W1(y(V.text), 1)
|
|
7987
7986
|
])
|
|
7988
7987
|
], 8, q2));
|
|
7989
7988
|
}
|
|
@@ -8023,9 +8022,9 @@ const z2 = {
|
|
|
8023
8022
|
})), A = (i) => {
|
|
8024
8023
|
C.outsideClick && i.target === i.currentTarget && V("update:modelValue", !1);
|
|
8025
8024
|
};
|
|
8026
|
-
return (i, e) =>
|
|
8025
|
+
return (i, e) => _1((m(), a("div", {
|
|
8027
8026
|
class: f(["r-modal-overlay", H.overlayClass]),
|
|
8028
|
-
onClick:
|
|
8027
|
+
onClick: z(A, ["stop"])
|
|
8029
8028
|
}, [
|
|
8030
8029
|
Z("div", {
|
|
8031
8030
|
"aria-modal": "true",
|
|
@@ -8036,13 +8035,13 @@ const z2 = {
|
|
|
8036
8035
|
}, [
|
|
8037
8036
|
Z("div", J2, [
|
|
8038
8037
|
B(i.$slots, "header"),
|
|
8039
|
-
C.icon ? (
|
|
8038
|
+
C.icon ? (m(), a("div", C5, [
|
|
8040
8039
|
q(x, {
|
|
8041
8040
|
name: C.icon
|
|
8042
8041
|
}, null, 8, ["name"])
|
|
8043
8042
|
])) : k("", !0),
|
|
8044
|
-
C.title ? (
|
|
8045
|
-
C.description ? (
|
|
8043
|
+
C.title ? (m(), a("div", H5, y(C.title), 1)) : k("", !0),
|
|
8044
|
+
C.description ? (m(), a("div", V5, y(C.description), 1)) : k("", !0)
|
|
8046
8045
|
]),
|
|
8047
8046
|
Z("div", L5, [
|
|
8048
8047
|
B(i.$slots, "default")
|
|
@@ -8055,7 +8054,7 @@ const z2 = {
|
|
|
8055
8054
|
[i2, H.modelValue]
|
|
8056
8055
|
]);
|
|
8057
8056
|
}
|
|
8058
|
-
}), A5 = ["data-open"], i5 = { class: "r-sidebar__nav" }, e5 = { class: "r-sidebar__actions" }, d5 = ["data-open"], t5 = /* @__PURE__ */
|
|
8057
|
+
}), A5 = ["data-open"], i5 = { class: "r-sidebar__nav" }, e5 = { class: "r-sidebar__actions" }, d5 = ["data-open"], t5 = /* @__PURE__ */ W1(" > "), f3 = /* @__PURE__ */ F({
|
|
8059
8058
|
__name: "RSidebar",
|
|
8060
8059
|
props: {
|
|
8061
8060
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -8068,7 +8067,7 @@ const z2 = {
|
|
|
8068
8067
|
const V = H, C = g(() => ({
|
|
8069
8068
|
"r-sidebar": !0
|
|
8070
8069
|
}));
|
|
8071
|
-
return (L, M) => (
|
|
8070
|
+
return (L, M) => (m(), a(U, null, [
|
|
8072
8071
|
Z("aside", {
|
|
8073
8072
|
class: f([p(C), V.class]),
|
|
8074
8073
|
"data-open": V.modelValue
|
|
@@ -8080,7 +8079,7 @@ const z2 = {
|
|
|
8080
8079
|
B(L.$slots, "actions")
|
|
8081
8080
|
])
|
|
8082
8081
|
], 10, A5),
|
|
8083
|
-
V.showTrigger ? (
|
|
8082
|
+
V.showTrigger ? (m(), a("div", {
|
|
8084
8083
|
key: 0,
|
|
8085
8084
|
class: f(["r-sidebar__trigger", [V.triggerClass]]),
|
|
8086
8085
|
"data-open": V.modelValue,
|
|
@@ -8132,11 +8131,11 @@ const z2 = {
|
|
|
8132
8131
|
warning: "mdiAlert",
|
|
8133
8132
|
info: "mdiInformation"
|
|
8134
8133
|
})[C.variant || "info"]);
|
|
8135
|
-
return (A, i) => (
|
|
8134
|
+
return (A, i) => (m(), a("div", {
|
|
8136
8135
|
class: f(p(L))
|
|
8137
8136
|
}, [
|
|
8138
8137
|
B(A.$slots, "default", {}, () => [
|
|
8139
|
-
C.variant ? (
|
|
8138
|
+
C.variant ? (m(), R(x, {
|
|
8140
8139
|
key: 0,
|
|
8141
8140
|
class: "r-snackbar__icon",
|
|
8142
8141
|
name: p(M)
|
|
@@ -8144,12 +8143,12 @@ const z2 = {
|
|
|
8144
8143
|
]),
|
|
8145
8144
|
Z("div", m5, y(C.text), 1),
|
|
8146
8145
|
B(A.$slots, "action"),
|
|
8147
|
-
C.closable ? (
|
|
8146
|
+
C.closable ? (m(), a("div", l5, [
|
|
8148
8147
|
B(A.$slots, "close", {}, () => [
|
|
8149
8148
|
q(x, {
|
|
8150
8149
|
name: "mdiClose",
|
|
8151
8150
|
size: 16,
|
|
8152
|
-
onClick: i[0] || (i[0] =
|
|
8151
|
+
onClick: i[0] || (i[0] = z((e) => A.$emit("update:modelValue", !1), ["stop"]))
|
|
8153
8152
|
})
|
|
8154
8153
|
])
|
|
8155
8154
|
])) : k("", !0)
|
|
@@ -8194,7 +8193,7 @@ const z2 = {
|
|
|
8194
8193
|
// TODO: find a better way to do this
|
|
8195
8194
|
immediate: !0
|
|
8196
8195
|
}
|
|
8197
|
-
), (i, e) => (
|
|
8196
|
+
), (i, e) => (m(), a("div", o5, [
|
|
8198
8197
|
Z("div", {
|
|
8199
8198
|
class: f(p(M))
|
|
8200
8199
|
}, [
|
|
@@ -8218,7 +8217,7 @@ const z2 = {
|
|
|
8218
8217
|
class: "r-switch-texts__label",
|
|
8219
8218
|
for: C.id
|
|
8220
8219
|
}, y(C.label), 9, a5),
|
|
8221
|
-
C.errorMsg ? (
|
|
8220
|
+
C.errorMsg ? (m(), a("p", Z5, y(C.errorMsg), 1)) : (m(), a("p", u5, y(C.hint), 1))
|
|
8222
8221
|
], 2)
|
|
8223
8222
|
]));
|
|
8224
8223
|
}
|
|
@@ -8257,30 +8256,30 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8257
8256
|
function i() {
|
|
8258
8257
|
V("click:icon");
|
|
8259
8258
|
}
|
|
8260
|
-
return (e, d) => (
|
|
8259
|
+
return (e, d) => (m(), a("button", {
|
|
8261
8260
|
"aria-disabled": C.disabled,
|
|
8262
8261
|
"aria-selected": C.modelValue === C.id,
|
|
8263
8262
|
class: f(p(L)),
|
|
8264
8263
|
disabled: C.disabled,
|
|
8265
8264
|
style: p1(p(M)),
|
|
8266
|
-
onClick: d[0] || (d[0] =
|
|
8265
|
+
onClick: d[0] || (d[0] = z((l) => A(C.id), ["stop"]))
|
|
8267
8266
|
}, [
|
|
8268
8267
|
B(e.$slots, "prepend", {}, () => [
|
|
8269
|
-
C.variant !== p(V1).TEXT && C.prependIcon ? (
|
|
8268
|
+
C.variant !== p(V1).TEXT && C.prependIcon ? (m(), R(x, {
|
|
8270
8269
|
key: 0,
|
|
8271
8270
|
class: "r-tab-item__prepend-icon",
|
|
8272
8271
|
name: C.prependIcon,
|
|
8273
8272
|
size: 16
|
|
8274
8273
|
}, null, 8, ["name"])) : k("", !0)
|
|
8275
8274
|
]),
|
|
8276
|
-
C.variant !== p(V1).ICON ? (
|
|
8275
|
+
C.variant !== p(V1).ICON ? (m(), a("span", c5, y(C.label), 1)) : k("", !0),
|
|
8277
8276
|
B(e.$slots, "append", {}, () => [
|
|
8278
|
-
C.variant !== p(V1).TEXT && C.appendIcon ? (
|
|
8277
|
+
C.variant !== p(V1).TEXT && C.appendIcon ? (m(), R(x, {
|
|
8279
8278
|
key: 0,
|
|
8280
8279
|
class: "r-tab-item__append-icon",
|
|
8281
8280
|
name: C.appendIcon,
|
|
8282
8281
|
size: 16,
|
|
8283
|
-
onClick:
|
|
8282
|
+
onClick: z(i, ["stop"])
|
|
8284
8283
|
}, null, 8, ["name", "onClick"])) : k("", !0)
|
|
8285
8284
|
])
|
|
8286
8285
|
], 14, S5));
|
|
@@ -8309,11 +8308,11 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8309
8308
|
const A = () => {
|
|
8310
8309
|
V("click:icon");
|
|
8311
8310
|
};
|
|
8312
|
-
return (i, e) => (
|
|
8311
|
+
return (i, e) => (m(), a("div", {
|
|
8313
8312
|
class: f(p(M))
|
|
8314
8313
|
}, [
|
|
8315
8314
|
B(i.$slots, "default", {}, () => [
|
|
8316
|
-
(
|
|
8315
|
+
(m(!0), a(U, null, Y(C.tabs, (d, l) => (m(), R(s5, {
|
|
8317
8316
|
id: d.id,
|
|
8318
8317
|
key: l,
|
|
8319
8318
|
modelValue: L.value,
|
|
@@ -8364,8 +8363,8 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8364
8363
|
{
|
|
8365
8364
|
immediate: !0
|
|
8366
8365
|
}
|
|
8367
|
-
), (A, i) => (
|
|
8368
|
-
C.label ? (
|
|
8366
|
+
), (A, i) => (m(), a("div", O5, [
|
|
8367
|
+
C.label ? (m(), R(z1, {
|
|
8369
8368
|
key: 0,
|
|
8370
8369
|
id: "textarea",
|
|
8371
8370
|
class: "r-textarea__label",
|
|
@@ -8383,7 +8382,7 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8383
8382
|
value: L.value,
|
|
8384
8383
|
onInput: M
|
|
8385
8384
|
}, null, 42, p5),
|
|
8386
|
-
C.errorMsg ? (
|
|
8385
|
+
C.errorMsg ? (m(), a("p", h5, y(C.errorMsg), 1)) : (m(), a("p", f5, y(C.hint), 1))
|
|
8387
8386
|
]));
|
|
8388
8387
|
}
|
|
8389
8388
|
}), g5 = { class: "r-textfield__wrapper" }, k5 = { class: "input-wrapper" }, B5 = ["id", "disabled", "max", "min", "placeholder", "type", "value"], b5 = {
|
|
@@ -8431,7 +8430,7 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8431
8430
|
}, e = D(!1), d = g(() => !!M.value), l = g(() => M.value.length > 0), o = g(() => {
|
|
8432
8431
|
var h;
|
|
8433
8432
|
return (h = C.errorMsg) == null ? void 0 : h.length;
|
|
8434
|
-
}),
|
|
8433
|
+
}), t = g(() => C.clearable && l.value), r = g(() => {
|
|
8435
8434
|
const { disabled: h, loading: P, clearable: E, errorMsg: _ } = C;
|
|
8436
8435
|
return {
|
|
8437
8436
|
"r-textfield": !0,
|
|
@@ -8448,14 +8447,14 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8448
8447
|
"r-textfield__prepend-icon--error": o.value && d.value
|
|
8449
8448
|
})), S = g(() => ({
|
|
8450
8449
|
"r-textfield__append-icon": !0,
|
|
8451
|
-
"r-textfield__append-icon--clear":
|
|
8450
|
+
"r-textfield__append-icon--clear": t.value,
|
|
8452
8451
|
"r-textfield__append-icon--error": o.value
|
|
8453
8452
|
})), b = g(() => {
|
|
8454
8453
|
const { prependIcon: h, type: P } = C;
|
|
8455
8454
|
return h === "none" ? "" : h || i[P];
|
|
8456
|
-
}),
|
|
8455
|
+
}), O = g(() => {
|
|
8457
8456
|
const { appendIcon: h, type: P } = C;
|
|
8458
|
-
return h === "none" ? "" : o.value ? "mdiAlertCircleOutline" :
|
|
8457
|
+
return h === "none" ? "" : o.value ? "mdiAlertCircleOutline" : t.value && ["text", "email"].includes(P) ? "mdiClose" : P === "password" && A.value === "password" ? "mdiEyeOutline" : P === "password" && A.value === "text" ? "mdiEyeOffOutline" : h;
|
|
8459
8458
|
});
|
|
8460
8459
|
function w(h) {
|
|
8461
8460
|
e.value = !0, V("focus", h);
|
|
@@ -8466,9 +8465,9 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8466
8465
|
function u(h) {
|
|
8467
8466
|
M.value = h.target.value, V("input", h);
|
|
8468
8467
|
}
|
|
8469
|
-
function
|
|
8468
|
+
function s() {
|
|
8470
8469
|
var h;
|
|
8471
|
-
if (
|
|
8470
|
+
if (t.value) {
|
|
8472
8471
|
M.value = "", (h = L.value) == null || h.focus(), V("click:clear", {
|
|
8473
8472
|
value: A.value === "number" ? +M.value : M.value
|
|
8474
8473
|
});
|
|
@@ -8476,9 +8475,9 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8476
8475
|
}
|
|
8477
8476
|
V("click:icon", {
|
|
8478
8477
|
value: A.value === "number" ? +M.value : M.value
|
|
8479
|
-
}), A.value === "password" &&
|
|
8478
|
+
}), A.value === "password" && c();
|
|
8480
8479
|
}
|
|
8481
|
-
function
|
|
8480
|
+
function c() {
|
|
8482
8481
|
A.value = A.value === "password" ? "text" : "password";
|
|
8483
8482
|
}
|
|
8484
8483
|
function v() {
|
|
@@ -8501,9 +8500,9 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8501
8500
|
A.value === "number" ? +h : h
|
|
8502
8501
|
);
|
|
8503
8502
|
}
|
|
8504
|
-
), (h, P) => (
|
|
8503
|
+
), (h, P) => (m(), a("fieldset", null, [
|
|
8505
8504
|
Z("div", g5, [
|
|
8506
|
-
C.label ? (
|
|
8505
|
+
C.label ? (m(), R(z1, {
|
|
8507
8506
|
key: 0,
|
|
8508
8507
|
id: C.id,
|
|
8509
8508
|
class: "r-textfield__label",
|
|
@@ -8516,7 +8515,7 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8516
8515
|
class: f(p(r))
|
|
8517
8516
|
}, [
|
|
8518
8517
|
B(h.$slots, "prepend"),
|
|
8519
|
-
p(b) && !h.$slots.prepend ? (
|
|
8518
|
+
p(b) && !h.$slots.prepend ? (m(), R(x, {
|
|
8520
8519
|
key: 0,
|
|
8521
8520
|
class: f(p(n)),
|
|
8522
8521
|
name: p(b),
|
|
@@ -8537,16 +8536,16 @@ const S5 = ["aria-disabled", "aria-selected", "disabled"], c5 = {
|
|
|
8537
8536
|
onInput: u
|
|
8538
8537
|
}, null, 40, B5),
|
|
8539
8538
|
B(h.$slots, "append"),
|
|
8540
|
-
p(
|
|
8539
|
+
p(O) && !h.$slots.append ? (m(), R(x, {
|
|
8541
8540
|
key: 1,
|
|
8542
8541
|
class: f(p(S)),
|
|
8543
|
-
name: `${p(
|
|
8542
|
+
name: `${p(O)}`,
|
|
8544
8543
|
size: 20,
|
|
8545
|
-
onClick:
|
|
8544
|
+
onClick: s
|
|
8546
8545
|
}, null, 8, ["class", "name"])) : k("", !0)
|
|
8547
8546
|
], 2),
|
|
8548
|
-
C.errorMsg ? (
|
|
8549
|
-
!C.errorMsg && C.hint ? (
|
|
8547
|
+
C.errorMsg ? (m(), a("div", b5, y(C.errorMsg), 1)) : k("", !0),
|
|
8548
|
+
!C.errorMsg && C.hint ? (m(), a("div", y5, y(C.hint), 1)) : k("", !0)
|
|
8550
8549
|
])
|
|
8551
8550
|
])
|
|
8552
8551
|
]));
|
|
@@ -8567,42 +8566,42 @@ function h1(H) {
|
|
|
8567
8566
|
function y1(H, V, C) {
|
|
8568
8567
|
let { reference: L, floating: M } = H;
|
|
8569
8568
|
const A = L.x + L.width / 2 - M.width / 2, i = L.y + L.height / 2 - M.height / 2, e = i1(V), d = h1(e), l = L[d] / 2 - M[d] / 2, o = e === "x";
|
|
8570
|
-
let
|
|
8569
|
+
let t;
|
|
8571
8570
|
switch (A1(V)) {
|
|
8572
8571
|
case "top":
|
|
8573
|
-
|
|
8572
|
+
t = { x: A, y: L.y - M.height };
|
|
8574
8573
|
break;
|
|
8575
8574
|
case "bottom":
|
|
8576
|
-
|
|
8575
|
+
t = { x: A, y: L.y + L.height };
|
|
8577
8576
|
break;
|
|
8578
8577
|
case "right":
|
|
8579
|
-
|
|
8578
|
+
t = { x: L.x + L.width, y: i };
|
|
8580
8579
|
break;
|
|
8581
8580
|
case "left":
|
|
8582
|
-
|
|
8581
|
+
t = { x: L.x - M.width, y: i };
|
|
8583
8582
|
break;
|
|
8584
8583
|
default:
|
|
8585
|
-
|
|
8584
|
+
t = { x: L.x, y: L.y };
|
|
8586
8585
|
}
|
|
8587
8586
|
switch (o1(V)) {
|
|
8588
8587
|
case "start":
|
|
8589
|
-
|
|
8588
|
+
t[e] -= l * (C && o ? -1 : 1);
|
|
8590
8589
|
break;
|
|
8591
8590
|
case "end":
|
|
8592
|
-
|
|
8591
|
+
t[e] += l * (C && o ? -1 : 1);
|
|
8593
8592
|
}
|
|
8594
|
-
return
|
|
8593
|
+
return t;
|
|
8595
8594
|
}
|
|
8596
8595
|
const w5 = async (H, V, C) => {
|
|
8597
8596
|
const { placement: L = "bottom", strategy: M = "absolute", middleware: A = [], platform: i } = C, e = A.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
|
|
8598
|
-
let l = await i.getElementRects({ reference: H, floating: V, strategy: M }), { x: o, y:
|
|
8597
|
+
let l = await i.getElementRects({ reference: H, floating: V, strategy: M }), { x: o, y: t } = y1(l, L, d), r = L, n = {}, S = 0;
|
|
8599
8598
|
for (let b = 0; b < e.length; b++) {
|
|
8600
|
-
const { name:
|
|
8601
|
-
o = T ?? o,
|
|
8599
|
+
const { name: O, fn: w } = e[b], { x: T, y: u, data: s, reset: c } = await w({ x: o, y: t, initialPlacement: L, placement: r, strategy: M, middlewareData: n, rects: l, platform: i, elements: { reference: H, floating: V } });
|
|
8600
|
+
o = T ?? o, t = u ?? t, n = { ...n, [O]: { ...n[O], ...s } }, c && S <= 50 && (S++, typeof c == "object" && (c.placement && (r = c.placement), c.rects && (l = c.rects === !0 ? await i.getElementRects({ reference: H, floating: V, strategy: M }) : c.rects), { x: o, y: t } = y1(l, r, d)), b = -1);
|
|
8602
8601
|
}
|
|
8603
|
-
return { x: o, y:
|
|
8602
|
+
return { x: o, y: t, placement: r, strategy: M, middlewareData: n };
|
|
8604
8603
|
};
|
|
8605
|
-
function
|
|
8604
|
+
function U1(H) {
|
|
8606
8605
|
return typeof H != "number" ? function(V) {
|
|
8607
8606
|
return { top: 0, right: 0, bottom: 0, left: 0, ...V };
|
|
8608
8607
|
}(H) : { top: H, right: H, bottom: H, left: H };
|
|
@@ -8613,8 +8612,8 @@ function d1(H) {
|
|
|
8613
8612
|
async function t1(H, V) {
|
|
8614
8613
|
var C;
|
|
8615
8614
|
V === void 0 && (V = {});
|
|
8616
|
-
const { x: L, y: M, platform: A, rects: i, elements: e, strategy: d } = H, { boundary: l = "clippingAncestors", rootBoundary: o = "viewport", elementContext:
|
|
8617
|
-
return { top:
|
|
8615
|
+
const { x: L, y: M, platform: A, rects: i, elements: e, strategy: d } = H, { boundary: l = "clippingAncestors", rootBoundary: o = "viewport", elementContext: t = "floating", altBoundary: r = !1, padding: n = 0 } = V, S = U1(n), b = e[r ? t === "floating" ? "reference" : "floating" : t], O = d1(await A.getClippingRect({ element: (C = await (A.isElement == null ? void 0 : A.isElement(b))) == null || C ? b : b.contextElement || await (A.getDocumentElement == null ? void 0 : A.getDocumentElement(e.floating)), boundary: l, rootBoundary: o, strategy: d })), w = d1(A.convertOffsetParentRelativeRectToViewportRelativeRect ? await A.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: t === "floating" ? { ...i.floating, x: L, y: M } : i.reference, offsetParent: await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(e.floating)), strategy: d }) : i[t]);
|
|
8616
|
+
return { top: O.top - w.top + S.top, bottom: w.bottom - O.bottom + S.bottom, left: O.left - w.left + S.left, right: w.right - O.right + S.right };
|
|
8618
8617
|
}
|
|
8619
8618
|
const P5 = Math.min, T5 = Math.max;
|
|
8620
8619
|
function s1(H, V, C) {
|
|
@@ -8624,11 +8623,11 @@ const v5 = (H) => ({ name: "arrow", options: H, async fn(V) {
|
|
|
8624
8623
|
const { element: C, padding: L = 0 } = H ?? {}, { x: M, y: A, placement: i, rects: e, platform: d } = V;
|
|
8625
8624
|
if (C == null)
|
|
8626
8625
|
return {};
|
|
8627
|
-
const l =
|
|
8628
|
-
let
|
|
8629
|
-
|
|
8630
|
-
const
|
|
8631
|
-
return { [
|
|
8626
|
+
const l = U1(L), o = { x: M, y: A }, t = i1(i), r = o1(i), n = h1(t), S = await d.getDimensions(C), b = t === "y" ? "top" : "left", O = t === "y" ? "bottom" : "right", w = e.reference[n] + e.reference[t] - o[t] - e.floating[n], T = o[t] - e.reference[t], u = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(C));
|
|
8627
|
+
let s = u ? t === "y" ? u.clientHeight || 0 : u.clientWidth || 0 : 0;
|
|
8628
|
+
s === 0 && (s = e.floating[n]);
|
|
8629
|
+
const c = w / 2 - T / 2, v = l[b], h = s - S[n] - l[O], P = s / 2 - S[n] / 2 + c, E = s1(v, P, h), _ = (r === "start" ? l[b] : l[O]) > 0 && P !== E && e.reference[n] <= e.floating[n];
|
|
8630
|
+
return { [t]: o[t] - (_ ? P < v ? v - P : h - P : 0), data: { [t]: E, centerOffset: P - E } };
|
|
8632
8631
|
} }), F5 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
8633
8632
|
function m1(H) {
|
|
8634
8633
|
return H.replace(/left|right|bottom|top/g, (V) => F5[V]);
|
|
@@ -8643,30 +8642,30 @@ const x5 = { start: "end", end: "start" };
|
|
|
8643
8642
|
function w1(H) {
|
|
8644
8643
|
return H.replace(/start|end/g, (V) => x5[V]);
|
|
8645
8644
|
}
|
|
8646
|
-
const
|
|
8647
|
-
|
|
8645
|
+
const $1 = ["top", "right", "bottom", "left"];
|
|
8646
|
+
$1.reduce((H, V) => H.concat(V, V + "-start", V + "-end"), []);
|
|
8648
8647
|
const D5 = function(H) {
|
|
8649
8648
|
return H === void 0 && (H = {}), { name: "flip", options: H, async fn(V) {
|
|
8650
8649
|
var C;
|
|
8651
|
-
const { placement: L, middlewareData: M, rects: A, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: l = !0, crossAxis: o = !0, fallbackPlacements:
|
|
8650
|
+
const { placement: L, middlewareData: M, rects: A, initialPlacement: i, platform: e, elements: d } = V, { mainAxis: l = !0, crossAxis: o = !0, fallbackPlacements: t, fallbackStrategy: r = "bestFit", flipAlignment: n = !0, ...S } = H, b = A1(L), O = t || (b === i || !n ? [m1(i)] : function(P) {
|
|
8652
8651
|
const E = m1(P);
|
|
8653
8652
|
return [w1(P), E, w1(E)];
|
|
8654
|
-
}(i)), w = [i, ...
|
|
8655
|
-
let
|
|
8653
|
+
}(i)), w = [i, ...O], T = await t1(V, S), u = [];
|
|
8654
|
+
let s = ((C = M.flip) == null ? void 0 : C.overflows) || [];
|
|
8656
8655
|
if (l && u.push(T[b]), o) {
|
|
8657
8656
|
const { main: P, cross: E } = R5(L, A, await (e.isRTL == null ? void 0 : e.isRTL(d.floating)));
|
|
8658
8657
|
u.push(T[P], T[E]);
|
|
8659
8658
|
}
|
|
8660
|
-
if (
|
|
8661
|
-
var
|
|
8662
|
-
const P = ((
|
|
8659
|
+
if (s = [...s, { placement: L, overflows: u }], !u.every((P) => P <= 0)) {
|
|
8660
|
+
var c, v;
|
|
8661
|
+
const P = ((c = (v = M.flip) == null ? void 0 : v.index) != null ? c : 0) + 1, E = w[P];
|
|
8663
8662
|
if (E)
|
|
8664
|
-
return { data: { index: P, overflows:
|
|
8663
|
+
return { data: { index: P, overflows: s }, reset: { placement: E } };
|
|
8665
8664
|
let _ = "bottom";
|
|
8666
8665
|
switch (r) {
|
|
8667
8666
|
case "bestFit": {
|
|
8668
8667
|
var h;
|
|
8669
|
-
const g1 = (h =
|
|
8668
|
+
const g1 = (h = s.map((e1) => [e1, e1.overflows.filter((C1) => C1 > 0).reduce((C1, H2) => C1 + H2, 0)]).sort((e1, C1) => e1[1] - C1[1])[0]) == null ? void 0 : h[0].placement;
|
|
8670
8669
|
g1 && (_ = g1);
|
|
8671
8670
|
break;
|
|
8672
8671
|
}
|
|
@@ -8683,7 +8682,7 @@ function P1(H, V) {
|
|
|
8683
8682
|
return { top: H.top - V.height, right: H.right - V.width, bottom: H.bottom - V.height, left: H.left - V.width };
|
|
8684
8683
|
}
|
|
8685
8684
|
function T1(H) {
|
|
8686
|
-
return
|
|
8685
|
+
return $1.some((V) => H[V] >= 0);
|
|
8687
8686
|
}
|
|
8688
8687
|
const E5 = function(H) {
|
|
8689
8688
|
let { strategy: V = "referenceHidden", ...C } = H === void 0 ? {} : H;
|
|
@@ -8705,8 +8704,8 @@ const E5 = function(H) {
|
|
|
8705
8704
|
}, _5 = function(H) {
|
|
8706
8705
|
return H === void 0 && (H = 0), { name: "offset", options: H, async fn(V) {
|
|
8707
8706
|
const { x: C, y: L } = V, M = await async function(A, i) {
|
|
8708
|
-
const { placement: e, platform: d, elements: l } = A, o = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)),
|
|
8709
|
-
let { mainAxis: w, crossAxis: T, alignmentAxis: u } = typeof
|
|
8707
|
+
const { placement: e, platform: d, elements: l } = A, o = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), t = A1(e), r = o1(e), n = i1(e) === "x", S = ["left", "top"].includes(t) ? -1 : 1, b = o && n ? -1 : 1, O = typeof i == "function" ? i(A) : i;
|
|
8708
|
+
let { mainAxis: w, crossAxis: T, alignmentAxis: u } = typeof O == "number" ? { mainAxis: O, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...O };
|
|
8710
8709
|
return r && typeof u == "number" && (T = r === "end" ? -1 * u : u), n ? { x: T * b, y: w * S } : { x: w * S, y: T * b };
|
|
8711
8710
|
}(V, H);
|
|
8712
8711
|
return { x: C + M.x, y: L + M.y, data: M };
|
|
@@ -8717,30 +8716,30 @@ function W5(H) {
|
|
|
8717
8716
|
}
|
|
8718
8717
|
const N5 = function(H) {
|
|
8719
8718
|
return H === void 0 && (H = {}), { name: "shift", options: H, async fn(V) {
|
|
8720
|
-
const { x: C, y: L, placement: M } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (
|
|
8721
|
-
let { x: w, y: T } =
|
|
8719
|
+
const { x: C, y: L, placement: M } = V, { mainAxis: A = !0, crossAxis: i = !1, limiter: e = { fn: (O) => {
|
|
8720
|
+
let { x: w, y: T } = O;
|
|
8722
8721
|
return { x: w, y: T };
|
|
8723
|
-
} }, ...d } = H, l = { x: C, y: L }, o = await t1(V, d),
|
|
8724
|
-
let n = l[
|
|
8722
|
+
} }, ...d } = H, l = { x: C, y: L }, o = await t1(V, d), t = i1(A1(M)), r = W5(t);
|
|
8723
|
+
let n = l[t], S = l[r];
|
|
8725
8724
|
if (A) {
|
|
8726
|
-
const
|
|
8727
|
-
n = s1(n + o[
|
|
8725
|
+
const O = t === "y" ? "bottom" : "right";
|
|
8726
|
+
n = s1(n + o[t === "y" ? "top" : "left"], n, n - o[O]);
|
|
8728
8727
|
}
|
|
8729
8728
|
if (i) {
|
|
8730
|
-
const
|
|
8731
|
-
S = s1(S + o[r === "y" ? "top" : "left"], S, S - o[
|
|
8729
|
+
const O = r === "y" ? "bottom" : "right";
|
|
8730
|
+
S = s1(S + o[r === "y" ? "top" : "left"], S, S - o[O]);
|
|
8732
8731
|
}
|
|
8733
|
-
const b = e.fn({ ...V, [
|
|
8732
|
+
const b = e.fn({ ...V, [t]: n, [r]: S });
|
|
8734
8733
|
return { ...b, data: { x: b.x - C, y: b.y - L } };
|
|
8735
8734
|
} };
|
|
8736
8735
|
};
|
|
8737
|
-
function
|
|
8736
|
+
function K1(H) {
|
|
8738
8737
|
return H && H.document && H.location && H.alert && H.setInterval;
|
|
8739
8738
|
}
|
|
8740
8739
|
function G(H) {
|
|
8741
8740
|
if (H == null)
|
|
8742
8741
|
return window;
|
|
8743
|
-
if (
|
|
8742
|
+
if (!K1(H)) {
|
|
8744
8743
|
const V = H.ownerDocument;
|
|
8745
8744
|
return V && V.defaultView || window;
|
|
8746
8745
|
}
|
|
@@ -8750,9 +8749,9 @@ function I(H) {
|
|
|
8750
8749
|
return G(H).getComputedStyle(H);
|
|
8751
8750
|
}
|
|
8752
8751
|
function K(H) {
|
|
8753
|
-
return
|
|
8752
|
+
return K1(H) ? "" : H ? (H.nodeName || "").toLowerCase() : "";
|
|
8754
8753
|
}
|
|
8755
|
-
function
|
|
8754
|
+
function j1() {
|
|
8756
8755
|
const H = navigator.userAgentData;
|
|
8757
8756
|
return H && Array.isArray(H.brands) ? H.brands.map((V) => V.brand + "/" + V.version).join(" ") : navigator.userAgent;
|
|
8758
8757
|
}
|
|
@@ -8773,14 +8772,14 @@ function I5(H) {
|
|
|
8773
8772
|
return ["table", "td", "th"].includes(K(H));
|
|
8774
8773
|
}
|
|
8775
8774
|
function O1(H) {
|
|
8776
|
-
const V = /firefox/i.test(
|
|
8775
|
+
const V = /firefox/i.test(j1()), C = I(H), L = C.backdropFilter || C.WebkitBackdropFilter;
|
|
8777
8776
|
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) => {
|
|
8778
8777
|
const A = C.contain;
|
|
8779
8778
|
return A != null && A.includes(M);
|
|
8780
8779
|
});
|
|
8781
8780
|
}
|
|
8782
|
-
function
|
|
8783
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
8781
|
+
function q1() {
|
|
8782
|
+
return !/^((?!chrome|android).)*safari/i.test(j1());
|
|
8784
8783
|
}
|
|
8785
8784
|
function f1(H) {
|
|
8786
8785
|
return ["html", "body", "#document"].includes(K(H));
|
|
@@ -8792,7 +8791,7 @@ function j(H, V, C) {
|
|
|
8792
8791
|
const e = H.getBoundingClientRect();
|
|
8793
8792
|
let d = 1, l = 1;
|
|
8794
8793
|
V && Q(H) && (d = H.offsetWidth > 0 && l1(e.width) / H.offsetWidth || 1, l = H.offsetHeight > 0 && l1(e.height) / H.offsetHeight || 1);
|
|
8795
|
-
const o = X(H) ? G(H) : window,
|
|
8794
|
+
const o = X(H) ? G(H) : window, t = !q1() && C, r = (e.left + (t && (L = (M = o.visualViewport) == null ? void 0 : M.offsetLeft) != null ? L : 0)) / d, n = (e.top + (t && (A = (i = o.visualViewport) == null ? void 0 : i.offsetTop) != null ? A : 0)) / l, S = e.width / d, b = e.height / l;
|
|
8796
8795
|
return { width: S, height: b, top: n, right: r + S, bottom: n + b, left: r, x: r, y: n };
|
|
8797
8796
|
}
|
|
8798
8797
|
function $(H) {
|
|
@@ -8802,7 +8801,7 @@ function $(H) {
|
|
|
8802
8801
|
function r1(H) {
|
|
8803
8802
|
return X(H) ? { scrollLeft: H.scrollLeft, scrollTop: H.scrollTop } : { scrollLeft: H.pageXOffset, scrollTop: H.pageYOffset };
|
|
8804
8803
|
}
|
|
8805
|
-
function
|
|
8804
|
+
function Y1(H) {
|
|
8806
8805
|
return j($(H)).left + r1(H).scrollLeft;
|
|
8807
8806
|
}
|
|
8808
8807
|
function Q5(H, V, C) {
|
|
@@ -8817,7 +8816,7 @@ function Q5(H, V, C) {
|
|
|
8817
8816
|
const d = j(V, !0);
|
|
8818
8817
|
e.x = d.x + V.clientLeft, e.y = d.y + V.clientTop;
|
|
8819
8818
|
} else
|
|
8820
|
-
M && (e.x =
|
|
8819
|
+
M && (e.x = Y1(M));
|
|
8821
8820
|
return { x: A.left + i.scrollLeft - e.x, y: A.top + i.scrollTop - e.y, width: A.width, height: A.height };
|
|
8822
8821
|
}
|
|
8823
8822
|
function M1(H) {
|
|
@@ -8844,51 +8843,51 @@ function x1(H) {
|
|
|
8844
8843
|
return null;
|
|
8845
8844
|
}(H) || V;
|
|
8846
8845
|
}
|
|
8847
|
-
function
|
|
8846
|
+
function X1(H) {
|
|
8848
8847
|
const V = M1(H);
|
|
8849
|
-
return f1(V) ? H.ownerDocument.body : Q(V) && n1(V) ? V :
|
|
8848
|
+
return f1(V) ? H.ownerDocument.body : Q(V) && n1(V) ? V : X1(V);
|
|
8850
8849
|
}
|
|
8851
|
-
function
|
|
8850
|
+
function J1(H, V) {
|
|
8852
8851
|
var C;
|
|
8853
8852
|
V === void 0 && (V = []);
|
|
8854
|
-
const L =
|
|
8855
|
-
return M ? e : e.concat(
|
|
8853
|
+
const L = X1(H), M = L === ((C = H.ownerDocument) == null ? void 0 : C.body), A = G(L), i = M ? [A].concat(A.visualViewport || [], n1(L) ? L : []) : L, e = V.concat(i);
|
|
8854
|
+
return M ? e : e.concat(J1(i));
|
|
8856
8855
|
}
|
|
8857
8856
|
function D1(H, V, C) {
|
|
8858
8857
|
return V === "viewport" ? d1(function(L, M) {
|
|
8859
8858
|
const A = G(L), i = $(L), e = A.visualViewport;
|
|
8860
|
-
let d = i.clientWidth, l = i.clientHeight, o = 0,
|
|
8859
|
+
let d = i.clientWidth, l = i.clientHeight, o = 0, t = 0;
|
|
8861
8860
|
if (e) {
|
|
8862
8861
|
d = e.width, l = e.height;
|
|
8863
|
-
const r =
|
|
8864
|
-
(r || !r && M === "fixed") && (o = e.offsetLeft,
|
|
8862
|
+
const r = q1();
|
|
8863
|
+
(r || !r && M === "fixed") && (o = e.offsetLeft, t = e.offsetTop);
|
|
8865
8864
|
}
|
|
8866
|
-
return { width: d, height: l, x: o, y:
|
|
8865
|
+
return { width: d, height: l, x: o, y: t };
|
|
8867
8866
|
}(H, C)) : X(V) ? function(L, M) {
|
|
8868
8867
|
const A = j(L, !1, M === "fixed"), i = A.top + L.clientTop, e = A.left + L.clientLeft;
|
|
8869
8868
|
return { top: i, left: e, x: e, y: i, right: e + L.clientWidth, bottom: i + L.clientHeight, width: L.clientWidth, height: L.clientHeight };
|
|
8870
8869
|
}(V, C) : d1(function(L) {
|
|
8871
8870
|
var M;
|
|
8872
8871
|
const A = $(L), i = r1(L), e = (M = L.ownerDocument) == null ? void 0 : M.body, d = L1(A.scrollWidth, A.clientWidth, e ? e.scrollWidth : 0, e ? e.clientWidth : 0), l = L1(A.scrollHeight, A.clientHeight, e ? e.scrollHeight : 0, e ? e.clientHeight : 0);
|
|
8873
|
-
let o = -i.scrollLeft +
|
|
8874
|
-
const
|
|
8875
|
-
return I(e || A).direction === "rtl" && (o += L1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y:
|
|
8872
|
+
let o = -i.scrollLeft + Y1(L);
|
|
8873
|
+
const t = -i.scrollTop;
|
|
8874
|
+
return I(e || A).direction === "rtl" && (o += L1(A.clientWidth, e ? e.clientWidth : 0) - d), { width: d, height: l, x: o, y: t };
|
|
8876
8875
|
}($(H)));
|
|
8877
8876
|
}
|
|
8878
8877
|
const G5 = { getClippingRect: function(H) {
|
|
8879
8878
|
let { element: V, boundary: C, rootBoundary: L, strategy: M } = H;
|
|
8880
8879
|
const A = C === "clippingAncestors" ? function(l) {
|
|
8881
|
-
let o =
|
|
8880
|
+
let o = J1(l).filter((S) => X(S) && K(S) !== "body"), t = null;
|
|
8882
8881
|
const r = I(l).position === "fixed";
|
|
8883
8882
|
let n = r ? M1(l) : l;
|
|
8884
8883
|
for (; X(n) && !f1(n); ) {
|
|
8885
8884
|
const S = I(n), b = O1(n);
|
|
8886
|
-
(r ? b ||
|
|
8885
|
+
(r ? b || t : b || S.position !== "static" || !t || !["absolute", "fixed"].includes(t.position)) ? t = S : o = o.filter((O) => O !== n), n = M1(n);
|
|
8887
8886
|
}
|
|
8888
8887
|
return o;
|
|
8889
8888
|
}(V) : [].concat(C), i = [...A, L], e = i[0], d = i.reduce((l, o) => {
|
|
8890
|
-
const
|
|
8891
|
-
return l.top = L1(
|
|
8889
|
+
const t = D1(V, o, M);
|
|
8890
|
+
return l.top = L1(t.top, l.top), l.right = F1(t.right, l.right), l.bottom = F1(t.bottom, l.bottom), l.left = L1(t.left, l.left), l;
|
|
8892
8891
|
}, D1(V, e, M));
|
|
8893
8892
|
return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
|
|
8894
8893
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(H) {
|
|
@@ -8913,7 +8912,7 @@ const G5 = { getClippingRect: function(H) {
|
|
|
8913
8912
|
const M = this.getOffsetParent || x1, A = this.getDimensions;
|
|
8914
8913
|
return { reference: Q5(V, await M(C), L), floating: { x: 0, y: 0, ...await A(C) } };
|
|
8915
8914
|
}, getClientRects: (H) => Array.from(H.getClientRects()), isRTL: (H) => I(H).direction === "rtl" }, z5 = (H, V, C) => w5(H, V, { platform: G5, ...C });
|
|
8916
|
-
var
|
|
8915
|
+
var C2 = /* @__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))(C2 || {}), N = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(N || {});
|
|
8917
8916
|
function S1({ value: H }, { value: V }, { value: C }, L, M, A) {
|
|
8918
8917
|
!H || !V || z5(H, V, {
|
|
8919
8918
|
placement: L,
|
|
@@ -8929,7 +8928,7 @@ function S1({ value: H }, { value: V }, { value: C }, L, M, A) {
|
|
|
8929
8928
|
left: `${i}px`,
|
|
8930
8929
|
top: `${e}px`
|
|
8931
8930
|
}), C && l.arrow) {
|
|
8932
|
-
const { x: o, y:
|
|
8931
|
+
const { x: o, y: t } = l.arrow, r = {
|
|
8933
8932
|
top: "bottom",
|
|
8934
8933
|
right: "left",
|
|
8935
8934
|
bottom: "top",
|
|
@@ -8938,7 +8937,7 @@ function S1({ value: H }, { value: V }, { value: C }, L, M, A) {
|
|
|
8938
8937
|
}[d.split("-")[0]];
|
|
8939
8938
|
Object.assign(C.style, {
|
|
8940
8939
|
left: i != null ? `${o}px` : "",
|
|
8941
|
-
top: e != null ? `${
|
|
8940
|
+
top: e != null ? `${t}px` : "",
|
|
8942
8941
|
right: "",
|
|
8943
8942
|
bottom: "",
|
|
8944
8943
|
[`${r}`]: "-4px"
|
|
@@ -8949,11 +8948,11 @@ function S1({ value: H }, { value: V }, { value: C }, L, M, A) {
|
|
|
8949
8948
|
const U5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMousemove"], $5 = ["innerHTML"], K5 = /* @__PURE__ */ F({
|
|
8950
8949
|
__name: "RTooltip",
|
|
8951
8950
|
props: {
|
|
8952
|
-
placement: { default:
|
|
8951
|
+
placement: { default: C2.Top },
|
|
8953
8952
|
text: { default: "" },
|
|
8954
8953
|
dark: { type: Boolean, default: !0 },
|
|
8955
8954
|
light: { type: Boolean, default: !1 },
|
|
8956
|
-
triggers: { default:
|
|
8955
|
+
triggers: { default: () => [N.Hover] },
|
|
8957
8956
|
autoHide: { type: Boolean, default: !0 },
|
|
8958
8957
|
hideDelay: { default: 3e3 },
|
|
8959
8958
|
showDelay: { default: 0 },
|
|
@@ -8970,37 +8969,37 @@ const U5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
8970
8969
|
emits: ["show", "hide"],
|
|
8971
8970
|
setup(H, { emit: V }) {
|
|
8972
8971
|
const C = H;
|
|
8973
|
-
e2((
|
|
8974
|
-
"
|
|
8972
|
+
e2((O) => ({
|
|
8973
|
+
"7d5a504d": p(b)
|
|
8975
8974
|
}));
|
|
8976
8975
|
const L = D(null), M = D(null), A = D(null);
|
|
8977
8976
|
function i() {
|
|
8978
|
-
const { placement:
|
|
8979
|
-
u || (M.value.style.display = "block", V("show"), S1(L, M, A,
|
|
8977
|
+
const { placement: O, offset: w, padding: T, disabled: u } = C;
|
|
8978
|
+
u || (M.value.style.display = "block", document.body.appendChild(M.value), V("show"), S1(L, M, A, O, w, T), d(), C.outsideClick && l("add"));
|
|
8980
8979
|
}
|
|
8981
8980
|
function e() {
|
|
8982
|
-
M.value.style.display = "", V("hide"), C.outsideClick && l("remove");
|
|
8981
|
+
M.value.style.display = "", M.value.remove(), V("hide"), C.outsideClick && l("remove");
|
|
8983
8982
|
}
|
|
8984
8983
|
function d() {
|
|
8985
8984
|
C.autoHide && setTimeout(() => {
|
|
8986
8985
|
e();
|
|
8987
8986
|
}, C.hideDelay);
|
|
8988
8987
|
}
|
|
8989
|
-
function l(
|
|
8990
|
-
|
|
8988
|
+
function l(O) {
|
|
8989
|
+
O === "add" && document.addEventListener("click", e), O === "remove" && document.removeEventListener("click", e);
|
|
8991
8990
|
}
|
|
8992
8991
|
function o() {
|
|
8993
|
-
C.disabled || C.triggers
|
|
8992
|
+
C.disabled || C.triggers.includes(N.Click) && (M.value.style.display === "block" ? e() : i());
|
|
8994
8993
|
}
|
|
8995
|
-
function
|
|
8996
|
-
C.disabled || C.triggers
|
|
8994
|
+
function t() {
|
|
8995
|
+
C.disabled || C.triggers.includes(N.Hover) && i();
|
|
8997
8996
|
}
|
|
8998
8997
|
function r() {
|
|
8999
|
-
C.disabled || (M.value.style.display === "" && C.triggers
|
|
8998
|
+
C.disabled || (M.value.style.display === "" && C.triggers.includes(N.Hover) ? i() : M.value.style.display !== "" && C.triggers.includes(N.Hover) && e());
|
|
9000
8999
|
}
|
|
9001
9000
|
function n() {
|
|
9002
|
-
const { placement:
|
|
9003
|
-
u || C.triggers
|
|
9001
|
+
const { placement: O, offset: w, padding: T, disabled: u } = C;
|
|
9002
|
+
u || C.triggers.includes(N.Hover) && S1(L, M, A, O, w, T);
|
|
9004
9003
|
}
|
|
9005
9004
|
const S = g(() => ({
|
|
9006
9005
|
tooltip: !0,
|
|
@@ -9009,34 +9008,43 @@ const U5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
9009
9008
|
[`${C.tooltipClass}`]: !0
|
|
9010
9009
|
}));
|
|
9011
9010
|
window.onresize = () => {
|
|
9012
|
-
const { placement:
|
|
9013
|
-
u || C.resizable && S1(L, M, A,
|
|
9011
|
+
const { placement: O, offset: w, padding: T, disabled: u } = C;
|
|
9012
|
+
u || C.resizable && S1(L, M, A, O, w, T);
|
|
9014
9013
|
}, d2(
|
|
9015
9014
|
() => {
|
|
9016
|
-
C.disabled || C.shown && C.triggers
|
|
9015
|
+
C.disabled || (C.shown && C.triggers.includes(N.Manual) ? i() : !C.shown && C.triggers.includes(N.Manual) && e());
|
|
9017
9016
|
},
|
|
9018
9017
|
{ flush: "post" }
|
|
9019
9018
|
// this is important to avoid infinite loop & for fire on mounted
|
|
9020
9019
|
);
|
|
9021
9020
|
const b = g(() => `${C.showDelay}ms`);
|
|
9022
|
-
return (
|
|
9021
|
+
return E1(() => {
|
|
9022
|
+
e();
|
|
9023
|
+
}), (O, w) => (m(), a(U, null, [
|
|
9023
9024
|
Z("div", {
|
|
9024
9025
|
ref_key: "trigger",
|
|
9025
9026
|
ref: L,
|
|
9026
9027
|
"aria-disabled": C.disabled,
|
|
9027
9028
|
class: f(["trigger", [H.triggerClass]]),
|
|
9028
|
-
onClick:
|
|
9029
|
-
onMouseenter:
|
|
9030
|
-
onMouseleave:
|
|
9031
|
-
onMousemove:
|
|
9029
|
+
onClick: z(o, ["stop"]),
|
|
9030
|
+
onMouseenter: z(t, ["stop"]),
|
|
9031
|
+
onMouseleave: z(r, ["stop"]),
|
|
9032
|
+
onMousemove: z(n, ["stop"])
|
|
9032
9033
|
}, [
|
|
9033
|
-
B(
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9034
|
+
B(O.$slots, "default", {
|
|
9035
|
+
activators: {
|
|
9036
|
+
click: o,
|
|
9037
|
+
mouseenter: t,
|
|
9038
|
+
mouseleave: r,
|
|
9039
|
+
mousemove: n
|
|
9040
|
+
}
|
|
9041
|
+
}, () => [
|
|
9042
|
+
Z("div", {
|
|
9043
|
+
innerHTML: C.triggerContent
|
|
9044
|
+
}, null, 8, $5)
|
|
9045
|
+
], !0)
|
|
9038
9046
|
], 42, U5),
|
|
9039
|
-
(
|
|
9047
|
+
(m(), R(t2, { to: "body" }, [
|
|
9040
9048
|
Z("div", {
|
|
9041
9049
|
id: "tooltip",
|
|
9042
9050
|
ref_key: "tooltip",
|
|
@@ -9044,24 +9052,25 @@ const U5 = ["aria-disabled", "onClick", "onMouseenter", "onMouseleave", "onMouse
|
|
|
9044
9052
|
class: f(p(S)),
|
|
9045
9053
|
role: "tooltip"
|
|
9046
9054
|
}, [
|
|
9047
|
-
B(
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9055
|
+
B(O.$slots, "content", {}, () => [
|
|
9056
|
+
C.text ? (m(), a("div", {
|
|
9057
|
+
key: 0,
|
|
9058
|
+
class: f(["tooltip__content", {
|
|
9059
|
+
"tooltip__content--dark": C.dark,
|
|
9060
|
+
"tooltip__content--light": C.light
|
|
9061
|
+
}])
|
|
9062
|
+
}, y(C.text), 3)) : k("", !0),
|
|
9063
|
+
C.text ? (m(), a("div", {
|
|
9064
|
+
key: 1,
|
|
9065
|
+
id: "arrow",
|
|
9066
|
+
ref_key: "arrowElement",
|
|
9067
|
+
ref: A,
|
|
9068
|
+
class: f(["tooltip__arrow", {
|
|
9069
|
+
"tooltip__arrow--dark": C.dark,
|
|
9070
|
+
"tooltip__arrow--light": C.light
|
|
9071
|
+
}])
|
|
9072
|
+
}, null, 2)) : k("", !0)
|
|
9073
|
+
], !0)
|
|
9065
9074
|
], 2)
|
|
9066
9075
|
]))
|
|
9067
9076
|
], 64));
|
|
@@ -9072,7 +9081,7 @@ const j5 = (H, V) => {
|
|
|
9072
9081
|
for (const [L, M] of V)
|
|
9073
9082
|
C[L] = M;
|
|
9074
9083
|
return C;
|
|
9075
|
-
}, w3 = /* @__PURE__ */ j5(K5, [["__scopeId", "data-v-
|
|
9084
|
+
}, w3 = /* @__PURE__ */ j5(K5, [["__scopeId", "data-v-7caea22f"]]), q5 = { class: "r-breadcrumb" }, Y5 = {
|
|
9076
9085
|
key: 0,
|
|
9077
9086
|
class: "r-breadcrumb__title"
|
|
9078
9087
|
}, P3 = /* @__PURE__ */ F({
|
|
@@ -9085,8 +9094,8 @@ const j5 = (H, V) => {
|
|
|
9085
9094
|
const V = H;
|
|
9086
9095
|
return (C, L) => {
|
|
9087
9096
|
const M = m2("router-link");
|
|
9088
|
-
return
|
|
9089
|
-
(
|
|
9097
|
+
return m(), a("div", q5, [
|
|
9098
|
+
(m(!0), a(U, null, Y(V.items, (A, i) => (m(), a("div", {
|
|
9090
9099
|
key: i,
|
|
9091
9100
|
class: "r-breadcrumb__item"
|
|
9092
9101
|
}, [
|
|
@@ -9094,19 +9103,19 @@ const j5 = (H, V) => {
|
|
|
9094
9103
|
class: "r-breadcrumb__link",
|
|
9095
9104
|
to: A.to
|
|
9096
9105
|
}, {
|
|
9097
|
-
default:
|
|
9106
|
+
default: N1(() => [
|
|
9098
9107
|
B(C.$slots, "item-icon", {}, () => [
|
|
9099
|
-
A.icon ? (
|
|
9108
|
+
A.icon ? (m(), R(x, {
|
|
9100
9109
|
key: 0,
|
|
9101
9110
|
name: A.icon
|
|
9102
9111
|
}, null, 8, ["name"])) : k("", !0)
|
|
9103
9112
|
]),
|
|
9104
|
-
A.onlyIcon ? k("", !0) : (
|
|
9113
|
+
A.onlyIcon ? k("", !0) : (m(), a("span", Y5, y(A.title), 1))
|
|
9105
9114
|
]),
|
|
9106
9115
|
_: 2
|
|
9107
9116
|
}, 1032, ["to"]),
|
|
9108
9117
|
B(C.$slots, "custom-seperator", {}, () => [
|
|
9109
|
-
i !== H.items.length - 1 && V.seperator ? (
|
|
9118
|
+
i !== H.items.length - 1 && V.seperator ? (m(), R(x, {
|
|
9110
9119
|
key: 0,
|
|
9111
9120
|
class: "r-breadcrumb__separator",
|
|
9112
9121
|
name: V.seperator
|
|
@@ -9145,9 +9154,9 @@ const j5 = (H, V) => {
|
|
|
9145
9154
|
const C = H, L = g(() => Math.ceil(C.totalItems / C.perPage)), M = (A) => {
|
|
9146
9155
|
A < 1 || A > L.value || V("update:page", A);
|
|
9147
9156
|
};
|
|
9148
|
-
return (A, i) => (
|
|
9157
|
+
return (A, i) => (m(), a("div", X5, [
|
|
9149
9158
|
Z("div", J5, [
|
|
9150
|
-
H.slash ? k("", !0) : (
|
|
9159
|
+
H.slash ? k("", !0) : (m(), a("span", C3, y(C.pageText), 1)),
|
|
9151
9160
|
Z("span", H3, y(C.page), 1),
|
|
9152
9161
|
Z("span", null, y(H.slash ? "/" : C.ofText), 1),
|
|
9153
9162
|
Z("span", V3, y(p(L)), 1)
|
|
@@ -9159,7 +9168,7 @@ const j5 = (H, V) => {
|
|
|
9159
9168
|
onClick: i[0] || (i[0] = (e) => M(+C.page - 1))
|
|
9160
9169
|
}, [
|
|
9161
9170
|
B(A.$slots, "prev", {}, () => [
|
|
9162
|
-
(
|
|
9171
|
+
(m(), a("svg", {
|
|
9163
9172
|
class: f({ "stroke-gray-400": C.page === 1 }),
|
|
9164
9173
|
fill: "none",
|
|
9165
9174
|
height: "16",
|
|
@@ -9190,7 +9199,7 @@ const j5 = (H, V) => {
|
|
|
9190
9199
|
onClick: i[2] || (i[2] = (e) => M(+C.page + 1))
|
|
9191
9200
|
}, [
|
|
9192
9201
|
B(A.$slots, "next", {}, () => [
|
|
9193
|
-
(
|
|
9202
|
+
(m(), a("svg", {
|
|
9194
9203
|
class: f({ "stroke-gray-400": C.page === p(L) }),
|
|
9195
9204
|
fill: "none",
|
|
9196
9205
|
height: "16",
|
|
@@ -9216,7 +9225,7 @@ const j5 = (H, V) => {
|
|
|
9216
9225
|
},
|
|
9217
9226
|
setup(H) {
|
|
9218
9227
|
const V = H;
|
|
9219
|
-
return (C, L) => (
|
|
9228
|
+
return (C, L) => (m(), a("progress", {
|
|
9220
9229
|
"aria-valuemax": 100,
|
|
9221
9230
|
class: "r-progressbar",
|
|
9222
9231
|
max: 100,
|
|
@@ -9243,10 +9252,10 @@ const j5 = (H, V) => {
|
|
|
9243
9252
|
const e = (l) => A.value.includes(l);
|
|
9244
9253
|
a1(`${L}:isSelected`, e);
|
|
9245
9254
|
const d = (l, o) => {
|
|
9246
|
-
C.disabled || C.mandatory && A.value.length === 1 && o || C.max && A.value.length === C.max && o || (C.multiple ? o ? A.value.push(l) : A.value = A.value.filter((
|
|
9255
|
+
C.disabled || C.mandatory && A.value.length === 1 && o || C.max && A.value.length === C.max && o || (C.multiple ? o ? A.value.push(l) : A.value = A.value.filter((t) => t !== l) : A.value = o ? [l] : [], V("update:modelValue", A.value));
|
|
9247
9256
|
};
|
|
9248
|
-
return a1(`${L}:select`, d), (l, o) => (
|
|
9249
|
-
default:
|
|
9257
|
+
return a1(`${L}:select`, d), (l, o) => (m(), R(l2(M.value), null, {
|
|
9258
|
+
default: N1(() => [
|
|
9250
9259
|
B(l.$slots, "default", {
|
|
9251
9260
|
isSelected: e,
|
|
9252
9261
|
select: d,
|
|
@@ -9292,7 +9301,7 @@ export {
|
|
|
9292
9301
|
x as RIcon,
|
|
9293
9302
|
R3 as RItem,
|
|
9294
9303
|
F3 as RItemGroup,
|
|
9295
|
-
|
|
9304
|
+
z1 as RLabel,
|
|
9296
9305
|
h3 as RModal,
|
|
9297
9306
|
T3 as RPagination,
|
|
9298
9307
|
v3 as RProgressbar,
|