@rocketui/vue 0.2.45 → 0.2.47
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 +151 -154
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as J, reactive as u1, Fragment as t1, renderList as r1, normalizeClass as p, renderSlot as f, toDisplayString as v, createVNode as q, computed as
|
|
1
|
+
import { defineComponent as x, openBlock as m, createElementBlock as Z, createElementVNode as S, unref as J, reactive as u1, Fragment as t1, renderList as r1, normalizeClass as p, renderSlot as f, toDisplayString as v, createVNode as q, computed as g, createCommentVNode as O, mergeProps as H2, createBlock as E, watch as G, getCurrentScope as s2, onScopeDispose as c2, ref as N, watchEffect as p2, onMounted as V2, Teleport as O2, withCtx as k1, withDirectives as L2, withModifiers as A1, withKeys as U1, vModelText as f2, createTextVNode as S1, onUnmounted as h2, normalizeStyle as N1, vShow as g2, resolveComponent as k2, provide as O1, resolveDynamicComponent as B2, inject as f1 } from "vue";
|
|
2
2
|
const b2 = {
|
|
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",
|
|
@@ -7382,12 +7382,12 @@ const b2 = {
|
|
|
7382
7382
|
},
|
|
7383
7383
|
emits: ["close"],
|
|
7384
7384
|
setup(H, { emit: V }) {
|
|
7385
|
-
const C = H, M = V, i =
|
|
7385
|
+
const C = H, M = V, i = g(() => ({
|
|
7386
7386
|
" r-alert": !0,
|
|
7387
7387
|
[`r-alert--${C.variant}`]: !0,
|
|
7388
7388
|
"r-alert--block": C.block,
|
|
7389
7389
|
[`r-alert--${C.variant}--${C.type}`]: !0
|
|
7390
|
-
})), L =
|
|
7390
|
+
})), L = g(() => ({
|
|
7391
7391
|
success: "mdiCheckCircle",
|
|
7392
7392
|
error: "mdiAlertCircle",
|
|
7393
7393
|
warning: "mdiAlert",
|
|
@@ -7439,10 +7439,10 @@ const b2 = {
|
|
|
7439
7439
|
text: { default: "" }
|
|
7440
7440
|
},
|
|
7441
7441
|
setup(H) {
|
|
7442
|
-
const V = H, C =
|
|
7442
|
+
const V = H, C = g(() => ({
|
|
7443
7443
|
"r-avatar": !0,
|
|
7444
7444
|
[`r-avatar--${V.size}`]: !0
|
|
7445
|
-
})), M =
|
|
7445
|
+
})), M = g(() => V.type === "image" && !V.src), i = g(() => M.value ? z1 : V.src);
|
|
7446
7446
|
function L(A) {
|
|
7447
7447
|
const e = A.split(" ");
|
|
7448
7448
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
@@ -7488,7 +7488,7 @@ const b2 = {
|
|
|
7488
7488
|
},
|
|
7489
7489
|
emits: ["click"],
|
|
7490
7490
|
setup(H) {
|
|
7491
|
-
const V = H, C =
|
|
7491
|
+
const V = H, C = g(() => ({
|
|
7492
7492
|
"r-badge": !0,
|
|
7493
7493
|
[`r-badge--content ${V.contentClass}`]: V.content,
|
|
7494
7494
|
[`r-badge--overlap-${V.placement}`]: V.overlap,
|
|
@@ -7527,7 +7527,7 @@ const b2 = {
|
|
|
7527
7527
|
},
|
|
7528
7528
|
emits: ["click"],
|
|
7529
7529
|
setup(H) {
|
|
7530
|
-
const V = H, C =
|
|
7530
|
+
const V = H, C = g(() => ({
|
|
7531
7531
|
"r-button": !0,
|
|
7532
7532
|
[`r-button__${V.variant}`]: !0,
|
|
7533
7533
|
[`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
|
|
@@ -7535,11 +7535,11 @@ const b2 = {
|
|
|
7535
7535
|
[`r-button--${V.size || "medium"}`]: !0,
|
|
7536
7536
|
"r-button--only-icon": V.icon,
|
|
7537
7537
|
"r-button--block": V.block
|
|
7538
|
-
})), M =
|
|
7538
|
+
})), M = g(() => ({
|
|
7539
7539
|
small: 16,
|
|
7540
7540
|
medium: 16,
|
|
7541
7541
|
large: 20
|
|
7542
|
-
})[V.size || "medium"]), i =
|
|
7542
|
+
})[V.size || "medium"]), i = g(() => ({
|
|
7543
7543
|
height: V.height ? `${V.height}px` : ""
|
|
7544
7544
|
}));
|
|
7545
7545
|
return (L, A) => (m(), Z("button", H2(L.$attrs, {
|
|
@@ -7603,7 +7603,7 @@ const b2 = {
|
|
|
7603
7603
|
checked: "mdiCheck",
|
|
7604
7604
|
unchecked: "",
|
|
7605
7605
|
indeterminate: "mdiMinus"
|
|
7606
|
-
}, A =
|
|
7606
|
+
}, A = g(() => i.indeterminate ? L.indeterminate : i.checked ? L.checked : L.unchecked), e = g(() => ({
|
|
7607
7607
|
"r-checkbox": !0,
|
|
7608
7608
|
"r-checkbox--checked": i.checked,
|
|
7609
7609
|
"r-checkbox--disabled": C.disabled,
|
|
@@ -7680,7 +7680,7 @@ const b2 = {
|
|
|
7680
7680
|
},
|
|
7681
7681
|
emits: ["click:chip", "click:close"],
|
|
7682
7682
|
setup(H, { emit: V }) {
|
|
7683
|
-
const C = H, M = V, i =
|
|
7683
|
+
const C = H, M = V, i = g(() => ({
|
|
7684
7684
|
"r-chip": !0,
|
|
7685
7685
|
"r-chip--disabled": C.disabled,
|
|
7686
7686
|
[`r-chip__${C.variant}`]: C.variant,
|
|
@@ -7693,7 +7693,7 @@ const b2 = {
|
|
|
7693
7693
|
function A(d) {
|
|
7694
7694
|
C.disabled || !C.clearable || (d.stopPropagation(), M("click:close", d));
|
|
7695
7695
|
}
|
|
7696
|
-
const e =
|
|
7696
|
+
const e = g(() => C.clearable ? "mdiClose" : C.appendIcon);
|
|
7697
7697
|
return (d, t) => (m(), Z("div", {
|
|
7698
7698
|
class: p(i.value)
|
|
7699
7699
|
}, [
|
|
@@ -7732,34 +7732,34 @@ const b2 = {
|
|
|
7732
7732
|
}
|
|
7733
7733
|
});
|
|
7734
7734
|
function H5(H) {
|
|
7735
|
-
return
|
|
7735
|
+
return s2() ? (c2(H), !0) : !1;
|
|
7736
7736
|
}
|
|
7737
|
-
function
|
|
7737
|
+
function M2(H) {
|
|
7738
7738
|
return typeof H == "function" ? H() : J(H);
|
|
7739
7739
|
}
|
|
7740
|
-
const
|
|
7740
|
+
const i2 = typeof window < "u" && typeof document < "u";
|
|
7741
7741
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7742
7742
|
const V5 = Object.prototype.toString, L5 = (H) => V5.call(H) === "[object Object]", x1 = () => {
|
|
7743
7743
|
}, M5 = /* @__PURE__ */ i5();
|
|
7744
7744
|
function i5() {
|
|
7745
7745
|
var H;
|
|
7746
|
-
return
|
|
7746
|
+
return i2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7747
7747
|
}
|
|
7748
7748
|
function o1(H) {
|
|
7749
7749
|
var V;
|
|
7750
|
-
const C =
|
|
7750
|
+
const C = M2(H);
|
|
7751
7751
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
7752
7752
|
}
|
|
7753
|
-
const
|
|
7753
|
+
const A2 = i2 ? window : void 0;
|
|
7754
7754
|
function R1(...H) {
|
|
7755
7755
|
let V, C, M, i;
|
|
7756
|
-
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V =
|
|
7756
|
+
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V = A2) : [V, C, M, i] = H, !V)
|
|
7757
7757
|
return x1;
|
|
7758
7758
|
Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
|
|
7759
7759
|
const L = [], A = () => {
|
|
7760
7760
|
L.forEach((n) => n()), L.length = 0;
|
|
7761
7761
|
}, e = (n, r, o, l) => (n.addEventListener(r, o, l), () => n.removeEventListener(r, o, l)), d = G(
|
|
7762
|
-
() => [o1(V),
|
|
7762
|
+
() => [o1(V), M2(i)],
|
|
7763
7763
|
([n, r]) => {
|
|
7764
7764
|
if (A(), !n)
|
|
7765
7765
|
return;
|
|
@@ -7776,7 +7776,7 @@ function R1(...H) {
|
|
|
7776
7776
|
}
|
|
7777
7777
|
let K1 = !1;
|
|
7778
7778
|
function A5(H, V, C = {}) {
|
|
7779
|
-
const { window: M =
|
|
7779
|
+
const { window: M = A2, ignore: i = [], capture: L = !0, detectIframe: A = !1 } = C;
|
|
7780
7780
|
if (!M)
|
|
7781
7781
|
return;
|
|
7782
7782
|
M5 && !K1 && (K1 = !0, Array.from(M.document.body.children).forEach((o) => o.addEventListener("click", x1)), M.document.documentElement.addEventListener("click", x1));
|
|
@@ -7843,7 +7843,7 @@ function i1(H) {
|
|
|
7843
7843
|
function s1(H) {
|
|
7844
7844
|
return H.split("-")[1];
|
|
7845
7845
|
}
|
|
7846
|
-
function
|
|
7846
|
+
function e2(H) {
|
|
7847
7847
|
return H === "x" ? "y" : "x";
|
|
7848
7848
|
}
|
|
7849
7849
|
function I1(H) {
|
|
@@ -7853,7 +7853,7 @@ function y1(H) {
|
|
|
7853
7853
|
return ["top", "bottom"].includes(i1(H)) ? "y" : "x";
|
|
7854
7854
|
}
|
|
7855
7855
|
function Q1(H) {
|
|
7856
|
-
return
|
|
7856
|
+
return e2(y1(H));
|
|
7857
7857
|
}
|
|
7858
7858
|
function l5(H, V, C) {
|
|
7859
7859
|
C === void 0 && (C = !1);
|
|
@@ -7898,7 +7898,7 @@ function a5(H) {
|
|
|
7898
7898
|
...H
|
|
7899
7899
|
};
|
|
7900
7900
|
}
|
|
7901
|
-
function
|
|
7901
|
+
function d2(H) {
|
|
7902
7902
|
return typeof H != "number" ? a5(H) : {
|
|
7903
7903
|
top: H,
|
|
7904
7904
|
right: H,
|
|
@@ -7981,13 +7981,13 @@ const Z5 = async (H, V, C) => {
|
|
|
7981
7981
|
for (let B = 0; B < e.length; B++) {
|
|
7982
7982
|
const {
|
|
7983
7983
|
name: w,
|
|
7984
|
-
fn:
|
|
7984
|
+
fn: k
|
|
7985
7985
|
} = e[B], {
|
|
7986
7986
|
x: b,
|
|
7987
7987
|
y: F,
|
|
7988
7988
|
data: R,
|
|
7989
7989
|
reset: y
|
|
7990
|
-
} = await
|
|
7990
|
+
} = await k({
|
|
7991
7991
|
x: n,
|
|
7992
7992
|
y: r,
|
|
7993
7993
|
initialPlacement: M,
|
|
@@ -8043,7 +8043,7 @@ async function v1(H, V) {
|
|
|
8043
8043
|
elementContext: r = "floating",
|
|
8044
8044
|
altBoundary: o = !1,
|
|
8045
8045
|
padding: l = 0
|
|
8046
|
-
} = l1(V, H), u =
|
|
8046
|
+
} = l1(V, H), u = d2(l), w = e[o ? r === "floating" ? "reference" : "floating" : r], k = w1(await L.getClippingRect({
|
|
8047
8047
|
element: (C = await (L.isElement == null ? void 0 : L.isElement(w))) == null || C ? w : w.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
|
|
8048
8048
|
boundary: t,
|
|
8049
8049
|
rootBoundary: n,
|
|
@@ -8064,10 +8064,10 @@ async function v1(H, V) {
|
|
|
8064
8064
|
strategy: d
|
|
8065
8065
|
}) : b);
|
|
8066
8066
|
return {
|
|
8067
|
-
top: (
|
|
8068
|
-
bottom: (y.bottom -
|
|
8069
|
-
left: (
|
|
8070
|
-
right: (y.right -
|
|
8067
|
+
top: (k.top - y.top + u.top) / R.y,
|
|
8068
|
+
bottom: (y.bottom - k.bottom + u.bottom) / R.y,
|
|
8069
|
+
left: (k.left - y.left + u.left) / R.x,
|
|
8070
|
+
right: (y.right - k.right + u.right) / R.x
|
|
8071
8071
|
};
|
|
8072
8072
|
}
|
|
8073
8073
|
const u5 = (H) => ({
|
|
@@ -8088,13 +8088,13 @@ const u5 = (H) => ({
|
|
|
8088
8088
|
} = l1(H, V) || {};
|
|
8089
8089
|
if (t == null)
|
|
8090
8090
|
return {};
|
|
8091
|
-
const r =
|
|
8091
|
+
const r = d2(n), o = {
|
|
8092
8092
|
x: C,
|
|
8093
8093
|
y: M
|
|
8094
|
-
}, l = Q1(i), u = I1(l), B = await A.getDimensions(t), w = l === "y",
|
|
8094
|
+
}, l = Q1(i), u = I1(l), B = await A.getDimensions(t), w = l === "y", k = w ? "top" : "left", b = w ? "bottom" : "right", F = w ? "clientHeight" : "clientWidth", R = L.reference[u] + L.reference[l] - o[l] - L.floating[u], y = o[l] - L.reference[l], U = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(t));
|
|
8095
8095
|
let W = U ? U[F] : 0;
|
|
8096
8096
|
(!W || !await (A.isElement == null ? void 0 : A.isElement(U))) && (W = e.floating[F] || L.floating[u]);
|
|
8097
|
-
const
|
|
8097
|
+
const h = R / 2 - y / 2, I = W / 2 - B[u] / 2 - 1, M1 = a1(r[k], I), a = a1(r[b], I), s = M1, P = W - B[u] - a, T = W / 2 - B[u] / 2 + h, c = D1(s, T, P), _ = !d.arrow && s1(i) != null && T != c && L.reference[u] / 2 - (T < s ? M1 : a) - B[u] / 2 < 0, $ = _ ? T < s ? T - s : T - P : 0;
|
|
8098
8098
|
return {
|
|
8099
8099
|
[l]: o[l] + $,
|
|
8100
8100
|
data: {
|
|
@@ -8131,15 +8131,15 @@ const u5 = (H) => ({
|
|
|
8131
8131
|
} = l1(H, V);
|
|
8132
8132
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8133
8133
|
return {};
|
|
8134
|
-
const
|
|
8134
|
+
const k = i1(i), b = i1(e) === e, F = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), R = o || (b || !B ? [b1(e)] : o5(e));
|
|
8135
8135
|
!o && u !== "none" && R.push(...r5(e, B, u, F));
|
|
8136
8136
|
const y = [e, ...R], U = await v1(V, w), W = [];
|
|
8137
|
-
let
|
|
8138
|
-
if (n && W.push(U[
|
|
8137
|
+
let h = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8138
|
+
if (n && W.push(U[k]), r) {
|
|
8139
8139
|
const s = l5(i, A, F);
|
|
8140
8140
|
W.push(U[s[0]], U[s[1]]);
|
|
8141
8141
|
}
|
|
8142
|
-
if (
|
|
8142
|
+
if (h = [...h, {
|
|
8143
8143
|
placement: i,
|
|
8144
8144
|
overflows: W
|
|
8145
8145
|
}], !W.every((s) => s <= 0)) {
|
|
@@ -8149,18 +8149,18 @@ const u5 = (H) => ({
|
|
|
8149
8149
|
return {
|
|
8150
8150
|
data: {
|
|
8151
8151
|
index: s,
|
|
8152
|
-
overflows:
|
|
8152
|
+
overflows: h
|
|
8153
8153
|
},
|
|
8154
8154
|
reset: {
|
|
8155
8155
|
placement: P
|
|
8156
8156
|
}
|
|
8157
8157
|
};
|
|
8158
|
-
let T = (M1 =
|
|
8158
|
+
let T = (M1 = h.filter((c) => c.overflows[0] <= 0).sort((c, _) => c.overflows[1] - _.overflows[1])[0]) == null ? void 0 : M1.placement;
|
|
8159
8159
|
if (!T)
|
|
8160
8160
|
switch (l) {
|
|
8161
8161
|
case "bestFit": {
|
|
8162
8162
|
var a;
|
|
8163
|
-
const c = (a =
|
|
8163
|
+
const c = (a = h.map((_) => [_.placement, _.overflows.filter(($) => $ > 0).reduce(($, Q) => $ + Q, 0)]).sort((_, $) => _[1] - $[1])[0]) == null ? void 0 : a[0];
|
|
8164
8164
|
c && (T = c);
|
|
8165
8165
|
break;
|
|
8166
8166
|
}
|
|
@@ -8291,11 +8291,11 @@ const p5 = function(H) {
|
|
|
8291
8291
|
limiter: e = {
|
|
8292
8292
|
fn: (w) => {
|
|
8293
8293
|
let {
|
|
8294
|
-
x:
|
|
8294
|
+
x: k,
|
|
8295
8295
|
y: b
|
|
8296
8296
|
} = w;
|
|
8297
8297
|
return {
|
|
8298
|
-
x:
|
|
8298
|
+
x: k,
|
|
8299
8299
|
y: b
|
|
8300
8300
|
};
|
|
8301
8301
|
}
|
|
@@ -8304,14 +8304,14 @@ const p5 = function(H) {
|
|
|
8304
8304
|
} = l1(H, V), t = {
|
|
8305
8305
|
x: C,
|
|
8306
8306
|
y: M
|
|
8307
|
-
}, n = await v1(V, d), r = y1(i1(i)), o =
|
|
8307
|
+
}, n = await v1(V, d), r = y1(i1(i)), o = e2(r);
|
|
8308
8308
|
let l = t[o], u = t[r];
|
|
8309
8309
|
if (L) {
|
|
8310
|
-
const w = o === "y" ? "top" : "left",
|
|
8310
|
+
const w = o === "y" ? "top" : "left", k = o === "y" ? "bottom" : "right", b = l + n[w], F = l - n[k];
|
|
8311
8311
|
l = D1(b, l, F);
|
|
8312
8312
|
}
|
|
8313
8313
|
if (A) {
|
|
8314
|
-
const w = r === "y" ? "top" : "left",
|
|
8314
|
+
const w = r === "y" ? "top" : "left", k = r === "y" ? "bottom" : "right", b = u + n[w], F = u - n[k];
|
|
8315
8315
|
u = D1(b, u, F);
|
|
8316
8316
|
}
|
|
8317
8317
|
const B = e.fn({
|
|
@@ -8330,7 +8330,7 @@ const p5 = function(H) {
|
|
|
8330
8330
|
};
|
|
8331
8331
|
};
|
|
8332
8332
|
function V1(H) {
|
|
8333
|
-
return
|
|
8333
|
+
return t2(H) ? (H.nodeName || "").toLowerCase() : "#document";
|
|
8334
8334
|
}
|
|
8335
8335
|
function z(H) {
|
|
8336
8336
|
var V;
|
|
@@ -8338,9 +8338,9 @@ function z(H) {
|
|
|
8338
8338
|
}
|
|
8339
8339
|
function L1(H) {
|
|
8340
8340
|
var V;
|
|
8341
|
-
return (V = (
|
|
8341
|
+
return (V = (t2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
|
|
8342
8342
|
}
|
|
8343
|
-
function
|
|
8343
|
+
function t2(H) {
|
|
8344
8344
|
return H instanceof Node || H instanceof z(H).Node;
|
|
8345
8345
|
}
|
|
8346
8346
|
function C1(H) {
|
|
@@ -8407,17 +8407,17 @@ function m1(H) {
|
|
|
8407
8407
|
);
|
|
8408
8408
|
return Y1(V) ? V.host : V;
|
|
8409
8409
|
}
|
|
8410
|
-
function
|
|
8410
|
+
function m2(H) {
|
|
8411
8411
|
const V = m1(H);
|
|
8412
|
-
return P1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : j(V) && c1(V) ? V :
|
|
8412
|
+
return P1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : j(V) && c1(V) ? V : m2(V);
|
|
8413
8413
|
}
|
|
8414
8414
|
function E1(H, V, C) {
|
|
8415
8415
|
var M;
|
|
8416
8416
|
V === void 0 && (V = []), C === void 0 && (C = !0);
|
|
8417
|
-
const i =
|
|
8417
|
+
const i = m2(H), L = i === ((M = H.ownerDocument) == null ? void 0 : M.body), A = z(i);
|
|
8418
8418
|
return L ? V.concat(A, A.visualViewport || [], c1(i) ? i : [], A.frameElement && C ? E1(A.frameElement) : []) : V.concat(i, E1(i, [], C));
|
|
8419
8419
|
}
|
|
8420
|
-
function
|
|
8420
|
+
function l2(H) {
|
|
8421
8421
|
const V = K(H);
|
|
8422
8422
|
let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
|
|
8423
8423
|
const i = j(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, e = B1(C) !== L || B1(M) !== A;
|
|
@@ -8427,18 +8427,18 @@ function o2(H) {
|
|
|
8427
8427
|
$: e
|
|
8428
8428
|
};
|
|
8429
8429
|
}
|
|
8430
|
-
function
|
|
8430
|
+
function o2(H) {
|
|
8431
8431
|
return C1(H) ? H : H.contextElement;
|
|
8432
8432
|
}
|
|
8433
8433
|
function d1(H) {
|
|
8434
|
-
const V =
|
|
8434
|
+
const V = o2(H);
|
|
8435
8435
|
if (!j(V))
|
|
8436
8436
|
return H1(1);
|
|
8437
8437
|
const C = V.getBoundingClientRect(), {
|
|
8438
8438
|
width: M,
|
|
8439
8439
|
height: i,
|
|
8440
8440
|
$: L
|
|
8441
|
-
} =
|
|
8441
|
+
} = l2(V);
|
|
8442
8442
|
let A = (L ? B1(C.width) : C.width) / M, e = (L ? B1(C.height) : C.height) / i;
|
|
8443
8443
|
return (!A || !Number.isFinite(A)) && (A = 1), (!e || !Number.isFinite(e)) && (e = 1), {
|
|
8444
8444
|
x: A,
|
|
@@ -8446,7 +8446,7 @@ function d1(H) {
|
|
|
8446
8446
|
};
|
|
8447
8447
|
}
|
|
8448
8448
|
const g5 = /* @__PURE__ */ H1(0);
|
|
8449
|
-
function
|
|
8449
|
+
function n2(H) {
|
|
8450
8450
|
const V = z(H);
|
|
8451
8451
|
return !$1() || !V.visualViewport ? g5 : {
|
|
8452
8452
|
x: V.visualViewport.offsetLeft,
|
|
@@ -8458,16 +8458,16 @@ function k5(H, V, C) {
|
|
|
8458
8458
|
}
|
|
8459
8459
|
function Z1(H, V, C, M) {
|
|
8460
8460
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8461
|
-
const i = H.getBoundingClientRect(), L =
|
|
8461
|
+
const i = H.getBoundingClientRect(), L = o2(H);
|
|
8462
8462
|
let A = H1(1);
|
|
8463
8463
|
V && (M ? C1(M) && (A = d1(M)) : A = d1(H));
|
|
8464
|
-
const e = k5(L, C, M) ?
|
|
8464
|
+
const e = k5(L, C, M) ? n2(L) : H1(0);
|
|
8465
8465
|
let d = (i.left + e.x) / A.x, t = (i.top + e.y) / A.y, n = i.width / A.x, r = i.height / A.y;
|
|
8466
8466
|
if (L) {
|
|
8467
8467
|
const o = z(L), l = M && C1(M) ? z(M) : M;
|
|
8468
8468
|
let u = o.frameElement;
|
|
8469
8469
|
for (; u && M && l !== o; ) {
|
|
8470
|
-
const B = d1(u), w = u.getBoundingClientRect(),
|
|
8470
|
+
const B = d1(u), w = u.getBoundingClientRect(), k = K(u), b = w.left + (u.clientLeft + parseFloat(k.paddingLeft)) * B.x, F = w.top + (u.clientTop + parseFloat(k.paddingTop)) * B.y;
|
|
8471
8471
|
d *= B.x, t *= B.y, n *= B.x, r *= B.y, d += b, t += F, u = z(u).frameElement;
|
|
8472
8472
|
}
|
|
8473
8473
|
}
|
|
@@ -8506,12 +8506,12 @@ function B5(H) {
|
|
|
8506
8506
|
function b5(H) {
|
|
8507
8507
|
return Array.from(H.getClientRects());
|
|
8508
8508
|
}
|
|
8509
|
-
function
|
|
8509
|
+
function r2(H) {
|
|
8510
8510
|
return Z1(L1(H)).left + T1(H).scrollLeft;
|
|
8511
8511
|
}
|
|
8512
8512
|
function w5(H) {
|
|
8513
8513
|
const V = L1(H), C = T1(H), M = H.ownerDocument.body, i = e1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = e1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
|
|
8514
|
-
let A = -C.scrollLeft +
|
|
8514
|
+
let A = -C.scrollLeft + r2(H);
|
|
8515
8515
|
const e = -C.scrollTop;
|
|
8516
8516
|
return K(M).direction === "rtl" && (A += e1(V.clientWidth, M.clientWidth) - i), {
|
|
8517
8517
|
width: i,
|
|
@@ -8553,7 +8553,7 @@ function J1(H, V, C) {
|
|
|
8553
8553
|
else if (C1(V))
|
|
8554
8554
|
M = y5(V, C);
|
|
8555
8555
|
else {
|
|
8556
|
-
const i =
|
|
8556
|
+
const i = n2(H);
|
|
8557
8557
|
M = {
|
|
8558
8558
|
...V,
|
|
8559
8559
|
x: V.x - i.x,
|
|
@@ -8562,9 +8562,9 @@ function J1(H, V, C) {
|
|
|
8562
8562
|
}
|
|
8563
8563
|
return w1(M);
|
|
8564
8564
|
}
|
|
8565
|
-
function
|
|
8565
|
+
function a2(H, V) {
|
|
8566
8566
|
const C = m1(H);
|
|
8567
|
-
return C === V || !C1(C) || P1(C) ? !1 : K(C).position === "fixed" ||
|
|
8567
|
+
return C === V || !C1(C) || P1(C) ? !1 : K(C).position === "fixed" || a2(C, V);
|
|
8568
8568
|
}
|
|
8569
8569
|
function P5(H, V) {
|
|
8570
8570
|
const C = V.get(H);
|
|
@@ -8575,7 +8575,7 @@ function P5(H, V) {
|
|
|
8575
8575
|
let A = L ? m1(H) : H;
|
|
8576
8576
|
for (; C1(A) && !P1(A); ) {
|
|
8577
8577
|
const e = K(A), d = G1(A);
|
|
8578
|
-
!d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || c1(A) && !d &&
|
|
8578
|
+
!d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || c1(A) && !d && a2(H, A)) ? M = M.filter((n) => n !== A) : i = e, A = m1(A);
|
|
8579
8579
|
}
|
|
8580
8580
|
return V.set(H, M), M;
|
|
8581
8581
|
}
|
|
@@ -8598,7 +8598,7 @@ function T5(H) {
|
|
|
8598
8598
|
};
|
|
8599
8599
|
}
|
|
8600
8600
|
function F5(H) {
|
|
8601
|
-
return
|
|
8601
|
+
return l2(H);
|
|
8602
8602
|
}
|
|
8603
8603
|
function R5(H, V, C) {
|
|
8604
8604
|
const M = j(V), i = L1(V), L = C === "fixed", A = Z1(H, !0, L, V);
|
|
@@ -8612,7 +8612,7 @@ function R5(H, V, C) {
|
|
|
8612
8612
|
const t = Z1(V, !0, L, V);
|
|
8613
8613
|
d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
|
|
8614
8614
|
} else
|
|
8615
|
-
i && (d.x =
|
|
8615
|
+
i && (d.x = r2(i));
|
|
8616
8616
|
return {
|
|
8617
8617
|
x: A.left + e.scrollLeft - d.x,
|
|
8618
8618
|
y: A.top + e.scrollTop - d.y,
|
|
@@ -8623,7 +8623,7 @@ function R5(H, V, C) {
|
|
|
8623
8623
|
function C2(H, V) {
|
|
8624
8624
|
return !j(H) || K(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
|
|
8625
8625
|
}
|
|
8626
|
-
function
|
|
8626
|
+
function Z2(H, V) {
|
|
8627
8627
|
const C = z(H);
|
|
8628
8628
|
if (!j(H))
|
|
8629
8629
|
return C;
|
|
@@ -8638,7 +8638,7 @@ const x5 = async function(H) {
|
|
|
8638
8638
|
floating: C,
|
|
8639
8639
|
strategy: M
|
|
8640
8640
|
} = H;
|
|
8641
|
-
const i = this.getOffsetParent ||
|
|
8641
|
+
const i = this.getOffsetParent || Z2, L = this.getDimensions;
|
|
8642
8642
|
return {
|
|
8643
8643
|
reference: R5(V, await i(C), M),
|
|
8644
8644
|
floating: {
|
|
@@ -8655,7 +8655,7 @@ const _5 = {
|
|
|
8655
8655
|
convertOffsetParentRelativeRectToViewportRelativeRect: B5,
|
|
8656
8656
|
getDocumentElement: L1,
|
|
8657
8657
|
getClippingRect: T5,
|
|
8658
|
-
getOffsetParent:
|
|
8658
|
+
getOffsetParent: Z2,
|
|
8659
8659
|
getElementRects: x5,
|
|
8660
8660
|
getClientRects: b5,
|
|
8661
8661
|
getDimensions: F5,
|
|
@@ -8675,7 +8675,7 @@ const _5 = {
|
|
|
8675
8675
|
platform: L
|
|
8676
8676
|
});
|
|
8677
8677
|
};
|
|
8678
|
-
var
|
|
8678
|
+
var u2 = /* @__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))(u2 || {}), Y = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(Y || {}), W1 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(W1 || {});
|
|
8679
8679
|
async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e) {
|
|
8680
8680
|
!H || !V || E5(H, V, {
|
|
8681
8681
|
placement: M,
|
|
@@ -8699,7 +8699,7 @@ async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e)
|
|
|
8699
8699
|
animation: `r-tooltip-show ${A}ms ease-in-out forwards`,
|
|
8700
8700
|
transformOrigin: "start"
|
|
8701
8701
|
}), C && r.arrow) {
|
|
8702
|
-
const { x: w, y:
|
|
8702
|
+
const { x: w, y: k } = r.arrow, b = {
|
|
8703
8703
|
top: "bottom",
|
|
8704
8704
|
right: "left",
|
|
8705
8705
|
bottom: "top",
|
|
@@ -8708,7 +8708,7 @@ async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e)
|
|
|
8708
8708
|
}[n.split("-")[0]];
|
|
8709
8709
|
Object.assign(C.style, {
|
|
8710
8710
|
left: d != null ? `${w}px` : "",
|
|
8711
|
-
top: t != null ? `${
|
|
8711
|
+
top: t != null ? `${k}px` : "",
|
|
8712
8712
|
right: "",
|
|
8713
8713
|
bottom: "",
|
|
8714
8714
|
[`${b}`]: "-4px"
|
|
@@ -8719,7 +8719,7 @@ async function W5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e)
|
|
|
8719
8719
|
const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__ */ x({
|
|
8720
8720
|
__name: "RTooltip",
|
|
8721
8721
|
props: {
|
|
8722
|
-
placement: { default:
|
|
8722
|
+
placement: { default: u2.Top },
|
|
8723
8723
|
text: { default: "" },
|
|
8724
8724
|
dark: { type: Boolean, default: !0 },
|
|
8725
8725
|
light: { type: Boolean, default: !1 },
|
|
@@ -8744,12 +8744,12 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8744
8744
|
async function d() {
|
|
8745
8745
|
if (C.disabled || !L.value)
|
|
8746
8746
|
return;
|
|
8747
|
-
const
|
|
8748
|
-
|
|
8747
|
+
const k = document.querySelectorAll(".r-tooltip--active");
|
|
8748
|
+
k.length > 0 && k.forEach((b) => {
|
|
8749
8749
|
b.style.display = "", b.classList.remove("r-tooltip--active"), b.dataset.show = "false", M("hide", b.id);
|
|
8750
8750
|
}), L.value.classList.contains("r-tooltip--active") ? t() : (B(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", M("show", L.value.id), n());
|
|
8751
8751
|
}
|
|
8752
|
-
function t(
|
|
8752
|
+
function t(k = null) {
|
|
8753
8753
|
C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", M("hide", L.value.id));
|
|
8754
8754
|
}
|
|
8755
8755
|
function n() {
|
|
@@ -8757,7 +8757,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8757
8757
|
t();
|
|
8758
8758
|
}, C.hideDelay);
|
|
8759
8759
|
}
|
|
8760
|
-
function r(
|
|
8760
|
+
function r(k) {
|
|
8761
8761
|
C.disabled || C.triggers.includes(Y.Click) && (L.value.style.display === "block" ? t() : d());
|
|
8762
8762
|
}
|
|
8763
8763
|
function o() {
|
|
@@ -8769,45 +8769,42 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8769
8769
|
function u() {
|
|
8770
8770
|
C.triggers.includes(Y.Hover) && B();
|
|
8771
8771
|
}
|
|
8772
|
-
function B(
|
|
8772
|
+
function B(k) {
|
|
8773
8773
|
const { placement: b, offset: F, padding: R, disabled: y, showDelay: U, type: W } = C;
|
|
8774
8774
|
y || W5(i, L, A, b, F, R, U, W);
|
|
8775
8775
|
}
|
|
8776
|
-
const w =
|
|
8776
|
+
const w = g(() => ({
|
|
8777
8777
|
"r-tooltip": !0,
|
|
8778
8778
|
"r-tooltip--dark": C.dark && !C.light,
|
|
8779
8779
|
"r-tooltip--light": C.light
|
|
8780
8780
|
}));
|
|
8781
8781
|
return window.onresize = () => {
|
|
8782
8782
|
C.resizable && B();
|
|
8783
|
-
},
|
|
8783
|
+
}, p2(
|
|
8784
8784
|
() => {
|
|
8785
8785
|
C.disabled || (C.shown && C.triggers.includes(Y.Manual) ? d() : !C.shown && C.triggers.includes(Y.Manual) && t());
|
|
8786
8786
|
},
|
|
8787
8787
|
{ flush: "post" }
|
|
8788
8788
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8789
8789
|
), V2(() => {
|
|
8790
|
-
var
|
|
8791
|
-
C.resizable && ((b = (
|
|
8790
|
+
var k, b;
|
|
8791
|
+
C.resizable && ((b = (k = i.value) == null ? void 0 : k.parentElement) == null || b.parentElement.addEventListener("scroll", B())), A5(i, (F) => {
|
|
8792
8792
|
L.value.classList.contains("r-tooltip--active") && t(F);
|
|
8793
8793
|
}, { ignore: [L] }), C.type === W1.Dropdown && document.addEventListener("scroll", () => {
|
|
8794
8794
|
B();
|
|
8795
8795
|
});
|
|
8796
|
-
}),
|
|
8797
|
-
var h, b;
|
|
8798
|
-
C.resizable && ((b = (h = i.value) == null ? void 0 : h.parentElement) == null || b.parentElement.removeEventListener("scroll", B())), L.value && document.body.removeChild(L.value);
|
|
8799
|
-
}), (h, b) => (m(), Z(t1, null, [
|
|
8796
|
+
}), (k, b) => (m(), Z(t1, null, [
|
|
8800
8797
|
S("div", {
|
|
8801
8798
|
ref_key: "trigger",
|
|
8802
8799
|
ref: i,
|
|
8803
8800
|
"aria-disabled": C.disabled,
|
|
8804
|
-
class: p(["r-tooltip-trigger",
|
|
8801
|
+
class: p(["r-tooltip-trigger", k.triggerClass]),
|
|
8805
8802
|
onClick: r,
|
|
8806
8803
|
onMouseenter: o,
|
|
8807
8804
|
onMouseleave: l,
|
|
8808
8805
|
onMousemove: u
|
|
8809
8806
|
}, [
|
|
8810
|
-
f(
|
|
8807
|
+
f(k.$slots, "default", {
|
|
8811
8808
|
activators: {
|
|
8812
8809
|
click: r,
|
|
8813
8810
|
mouseenter: o,
|
|
@@ -8822,16 +8819,16 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8822
8819
|
}, null, 8, I5)
|
|
8823
8820
|
])
|
|
8824
8821
|
], 42, N5),
|
|
8825
|
-
(m(), E(
|
|
8822
|
+
(m(), E(O2, { to: "body" }, [
|
|
8826
8823
|
S("div", {
|
|
8827
8824
|
id: J(e),
|
|
8828
8825
|
ref_key: "tooltip",
|
|
8829
8826
|
ref: L,
|
|
8830
|
-
class: p([w.value,
|
|
8827
|
+
class: p([w.value, k.tooltipClass]),
|
|
8831
8828
|
"data-show": "false",
|
|
8832
8829
|
role: "tooltip"
|
|
8833
8830
|
}, [
|
|
8834
|
-
f(
|
|
8831
|
+
f(k.$slots, "content", {
|
|
8835
8832
|
hide: t,
|
|
8836
8833
|
updatePosition: B
|
|
8837
8834
|
}, () => [
|
|
@@ -8910,13 +8907,13 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8910
8907
|
const [s] = Object == null ? void 0 : Object.keys(a);
|
|
8911
8908
|
return ["label", "value"].includes(s);
|
|
8912
8909
|
}
|
|
8913
|
-
const t =
|
|
8910
|
+
const t = g(() => {
|
|
8914
8911
|
const a = C.options;
|
|
8915
8912
|
return d(a[0]) ? a : a.map((s) => ({
|
|
8916
8913
|
value: s,
|
|
8917
8914
|
label: String(s)
|
|
8918
8915
|
}));
|
|
8919
|
-
}), n =
|
|
8916
|
+
}), n = g(() => {
|
|
8920
8917
|
const a = C.modelValue;
|
|
8921
8918
|
return d(a) ? a : {
|
|
8922
8919
|
value: a,
|
|
@@ -8956,10 +8953,10 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8956
8953
|
L.value.find((_) => _.value === s.value) ? L.value.splice(L.value.indexOf(s), 1) : L.value.push(s), e.value = "", C.searchable && ((c = o.value) == null || c.focus());
|
|
8957
8954
|
return;
|
|
8958
8955
|
}
|
|
8959
|
-
|
|
8956
|
+
k(a, s), C.closeOnSelect && P();
|
|
8960
8957
|
}
|
|
8961
8958
|
}
|
|
8962
|
-
function
|
|
8959
|
+
function k(a, s) {
|
|
8963
8960
|
if (i.value.value === s.value) {
|
|
8964
8961
|
i.value = {}, e.value = "", M("update:modelValue", "");
|
|
8965
8962
|
return;
|
|
@@ -8987,11 +8984,11 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
8987
8984
|
var s;
|
|
8988
8985
|
return !a || (a == null ? void 0 : a.value) === void 0 || (a == null ? void 0 : a.value) === null ? !1 : C.multiple ? L.value.find((P) => (P == null ? void 0 : P.value) === (a == null ? void 0 : a.value)) : ((s = i.value) == null ? void 0 : s.value) === (a == null ? void 0 : a.value);
|
|
8989
8986
|
}
|
|
8990
|
-
const y =
|
|
8987
|
+
const y = g(() => !C.searchable || i.value.label === e.value ? t.value : t.value.filter((s) => s.label.toLowerCase().includes(e.value.toLowerCase()))), U = g(() => !C.searchable);
|
|
8991
8988
|
function W() {
|
|
8992
8989
|
n.value ? C.multiple ? L.value = n.value : (i.value = n.value, e.value = n.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
|
|
8993
8990
|
}
|
|
8994
|
-
function
|
|
8991
|
+
function h(a) {
|
|
8995
8992
|
C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
|
|
8996
8993
|
}
|
|
8997
8994
|
function I(a, s) {
|
|
@@ -9089,7 +9086,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9089
9086
|
"onClick:close": ($) => b($, c, P)
|
|
9090
9087
|
}, null, 8, ["clearable", "label", "onClick:close"])) : (m(), Z("p", z5, v(`${c.label}, `), 1))
|
|
9091
9088
|
])), 128)),
|
|
9092
|
-
|
|
9089
|
+
L2(S("input", {
|
|
9093
9090
|
id: C.id,
|
|
9094
9091
|
ref_key: "input",
|
|
9095
9092
|
ref: o,
|
|
@@ -9103,13 +9100,13 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9103
9100
|
readonly: U.value,
|
|
9104
9101
|
role: "presentation",
|
|
9105
9102
|
type: "text",
|
|
9106
|
-
onInput: A1((c) =>
|
|
9103
|
+
onInput: A1((c) => h(P), ["prevent"]),
|
|
9107
9104
|
onKeydown: [
|
|
9108
9105
|
U1((c) => b(c, L.value[L.value.length - 1], P), ["backspace"]),
|
|
9109
9106
|
U1((c) => F(c, P), ["enter"])
|
|
9110
9107
|
]
|
|
9111
9108
|
}, null, 42, K5), [
|
|
9112
|
-
[
|
|
9109
|
+
[f2, e.value]
|
|
9113
9110
|
])
|
|
9114
9111
|
]),
|
|
9115
9112
|
C.clearable ? (m(), Z("div", {
|
|
@@ -9234,7 +9231,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9234
9231
|
]))
|
|
9235
9232
|
], 512));
|
|
9236
9233
|
}
|
|
9237
|
-
}), e3 = ["id", "for"],
|
|
9234
|
+
}), e3 = ["id", "for"], S2 = /* @__PURE__ */ x({
|
|
9238
9235
|
__name: "RLabel",
|
|
9239
9236
|
props: {
|
|
9240
9237
|
id: { default: "" },
|
|
@@ -9280,22 +9277,22 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9280
9277
|
},
|
|
9281
9278
|
emits: ["update:modelValue"],
|
|
9282
9279
|
setup(H, { emit: V }) {
|
|
9283
|
-
const C = H, M = V, i =
|
|
9280
|
+
const C = H, M = V, i = g(() => ({
|
|
9284
9281
|
"r-dialog": !0,
|
|
9285
9282
|
"r-dialog--block": C.block,
|
|
9286
9283
|
[`${C.class}`]: !0
|
|
9287
|
-
})), L =
|
|
9284
|
+
})), L = g(() => ({
|
|
9288
9285
|
width: C.width,
|
|
9289
9286
|
height: C.height
|
|
9290
9287
|
}));
|
|
9291
9288
|
function A(e) {
|
|
9292
9289
|
C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
|
|
9293
9290
|
}
|
|
9294
|
-
return
|
|
9291
|
+
return h2(() => {
|
|
9295
9292
|
!C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
|
|
9296
9293
|
}), window.addEventListener("keydown", (e) => {
|
|
9297
9294
|
e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
|
|
9298
|
-
}), (e, d) =>
|
|
9295
|
+
}), (e, d) => L2((m(), Z("div", {
|
|
9299
9296
|
class: p(["r-modal-overlay", e.overlayClass]),
|
|
9300
9297
|
onClick: A1(A, ["stop"])
|
|
9301
9298
|
}, [
|
|
@@ -9390,14 +9387,14 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9390
9387
|
immediate: !0
|
|
9391
9388
|
}
|
|
9392
9389
|
);
|
|
9393
|
-
const i =
|
|
9390
|
+
const i = g(() => ({
|
|
9394
9391
|
"r-snackbar": !0,
|
|
9395
9392
|
[`r-snackbar--${C.variant}`]: !0,
|
|
9396
9393
|
[C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
|
|
9397
9394
|
[C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
|
|
9398
9395
|
[C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0,
|
|
9399
9396
|
"r-snackbar--closable": C.closable
|
|
9400
|
-
})), L =
|
|
9397
|
+
})), L = g(() => ({
|
|
9401
9398
|
success: "mdiCheckCircle",
|
|
9402
9399
|
error: "mdiAlertCircle",
|
|
9403
9400
|
warning: "mdiAlert",
|
|
@@ -9458,7 +9455,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
|
|
|
9458
9455
|
setup(H, { emit: V }) {
|
|
9459
9456
|
const C = H, M = V, i = u1({
|
|
9460
9457
|
checked: !1
|
|
9461
|
-
}), L =
|
|
9458
|
+
}), L = g(() => ({
|
|
9462
9459
|
"r-switch": !0,
|
|
9463
9460
|
"r-switch--disabled": C.disabled,
|
|
9464
9461
|
[`r-switch--${C.size}`]: C.size,
|
|
@@ -9530,14 +9527,14 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9530
9527
|
},
|
|
9531
9528
|
emits: ["update:modelValue"],
|
|
9532
9529
|
setup(H, { emit: V }) {
|
|
9533
|
-
const C = H, M = V, i =
|
|
9530
|
+
const C = H, M = V, i = g(() => ({
|
|
9534
9531
|
"r-tab-item": !0,
|
|
9535
9532
|
[`r-tab-item--${C.variant}`]: !0,
|
|
9536
9533
|
"r-tab-item--tile": C.tile,
|
|
9537
9534
|
"r-tab-item--block": C.block
|
|
9538
|
-
})), L =
|
|
9535
|
+
})), L = g(() => ({
|
|
9539
9536
|
color: C.color
|
|
9540
|
-
})), A =
|
|
9537
|
+
})), A = g(() => C.modelValue === C.id);
|
|
9541
9538
|
function e(d) {
|
|
9542
9539
|
M("update:modelValue", d);
|
|
9543
9540
|
}
|
|
@@ -9591,7 +9588,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9591
9588
|
},
|
|
9592
9589
|
emits: ["update:modelValue"],
|
|
9593
9590
|
setup(H, { emit: V }) {
|
|
9594
|
-
const C = H, M = V, i = N(C.modelValue || C.tabs[0].id), L =
|
|
9591
|
+
const C = H, M = V, i = N(C.modelValue || C.tabs[0].id), L = g(() => ({
|
|
9595
9592
|
"r-tabs": !0,
|
|
9596
9593
|
"r-tabs--tile": C.tile
|
|
9597
9594
|
}));
|
|
@@ -9675,7 +9672,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9675
9672
|
immediate: !0
|
|
9676
9673
|
}
|
|
9677
9674
|
), (A, e) => (m(), Z("div", w3, [
|
|
9678
|
-
C.label ? (m(), E(
|
|
9675
|
+
C.label ? (m(), E(S2, {
|
|
9679
9676
|
key: 0,
|
|
9680
9677
|
id: `${C.id}-label`,
|
|
9681
9678
|
class: "r-textarea__label",
|
|
@@ -9746,48 +9743,48 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9746
9743
|
url: "mdiLink",
|
|
9747
9744
|
number: "mdiNumeric",
|
|
9748
9745
|
text: ""
|
|
9749
|
-
}, d = N(!1), t =
|
|
9750
|
-
var
|
|
9751
|
-
return (
|
|
9752
|
-
}), o =
|
|
9753
|
-
const { disabled:
|
|
9746
|
+
}, d = N(!1), t = g(() => !!L.value), n = g(() => L.value.length > 0), r = g(() => {
|
|
9747
|
+
var h;
|
|
9748
|
+
return (h = C.errorMsg) == null ? void 0 : h.length;
|
|
9749
|
+
}), o = g(() => C.clearable && n.value), l = g(() => {
|
|
9750
|
+
const { disabled: h, loading: I } = C;
|
|
9754
9751
|
return {
|
|
9755
9752
|
"r-textfield": !0,
|
|
9756
9753
|
"r-textfield--error": r.value,
|
|
9757
9754
|
"r-textfield--loading": I,
|
|
9758
|
-
"r-textfield--disabled":
|
|
9755
|
+
"r-textfield--disabled": h,
|
|
9759
9756
|
"r-textfield--clearable": o.value,
|
|
9760
9757
|
"r-textfield--focus": d.value,
|
|
9761
9758
|
"r-textfield--filled": t.value
|
|
9762
9759
|
};
|
|
9763
|
-
}), u =
|
|
9760
|
+
}), u = g(() => ({
|
|
9764
9761
|
"r-textfield__prepend-icon": !0,
|
|
9765
9762
|
"r-textfield__prepend-icon--loading": C.loading,
|
|
9766
9763
|
"r-textfield__prepend-icon--error": r.value && t.value
|
|
9767
|
-
})), B =
|
|
9764
|
+
})), B = g(() => ({
|
|
9768
9765
|
"r-textfield__append-icon": !0,
|
|
9769
9766
|
"r-textfield__append-icon--clear": o.value,
|
|
9770
9767
|
"r-textfield__append-icon--error": r.value
|
|
9771
|
-
})), w =
|
|
9772
|
-
const { prependIcon:
|
|
9773
|
-
return
|
|
9774
|
-
}),
|
|
9775
|
-
const { appendIcon:
|
|
9776
|
-
return
|
|
9768
|
+
})), w = g(() => {
|
|
9769
|
+
const { prependIcon: h, type: I } = C;
|
|
9770
|
+
return h === "none" ? "" : h || e[I];
|
|
9771
|
+
}), k = g(() => {
|
|
9772
|
+
const { appendIcon: h, type: I } = C;
|
|
9773
|
+
return h === "none" ? "" : r.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(I) ? "mdiClose" : I === "password" && A.value === "password" ? "mdiEyeOutline" : I === "password" && A.value === "text" ? "mdiEyeOffOutline" : h;
|
|
9777
9774
|
});
|
|
9778
|
-
function b(
|
|
9779
|
-
d.value = !0, M("focus",
|
|
9775
|
+
function b(h) {
|
|
9776
|
+
d.value = !0, M("focus", h);
|
|
9780
9777
|
}
|
|
9781
|
-
function F(
|
|
9782
|
-
d.value = !1, M("blur",
|
|
9778
|
+
function F(h) {
|
|
9779
|
+
d.value = !1, M("blur", h);
|
|
9783
9780
|
}
|
|
9784
|
-
function R(
|
|
9785
|
-
L.value =
|
|
9781
|
+
function R(h) {
|
|
9782
|
+
L.value = h.target.value, M("input", h);
|
|
9786
9783
|
}
|
|
9787
9784
|
function y() {
|
|
9788
|
-
var
|
|
9785
|
+
var h;
|
|
9789
9786
|
if (o.value) {
|
|
9790
|
-
L.value = "", (
|
|
9787
|
+
L.value = "", (h = i.value) == null || h.focus(), M("click:clear", {
|
|
9791
9788
|
value: A.value === "number" ? +L.value : L.value
|
|
9792
9789
|
});
|
|
9793
9790
|
return;
|
|
@@ -9800,27 +9797,27 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9800
9797
|
A.value = A.value === "password" ? "text" : "password";
|
|
9801
9798
|
}
|
|
9802
9799
|
function W() {
|
|
9803
|
-
var
|
|
9804
|
-
(
|
|
9800
|
+
var h;
|
|
9801
|
+
(h = i.value) == null || h.focus();
|
|
9805
9802
|
}
|
|
9806
9803
|
return G(
|
|
9807
9804
|
() => C.modelValue,
|
|
9808
|
-
(
|
|
9809
|
-
L.value =
|
|
9805
|
+
(h) => {
|
|
9806
|
+
L.value = h;
|
|
9810
9807
|
},
|
|
9811
9808
|
{
|
|
9812
9809
|
immediate: !0
|
|
9813
9810
|
}
|
|
9814
9811
|
), G(
|
|
9815
9812
|
() => L.value,
|
|
9816
|
-
(
|
|
9813
|
+
(h) => {
|
|
9817
9814
|
M(
|
|
9818
9815
|
"update:modelValue",
|
|
9819
|
-
A.value === "number" ? +
|
|
9816
|
+
A.value === "number" ? +h : h
|
|
9820
9817
|
);
|
|
9821
9818
|
}
|
|
9822
|
-
), (
|
|
9823
|
-
C.label ? (m(), E(
|
|
9819
|
+
), (h, I) => (m(), Z("div", F3, [
|
|
9820
|
+
C.label ? (m(), E(S2, {
|
|
9824
9821
|
key: 0,
|
|
9825
9822
|
id: `${C.id}-label`,
|
|
9826
9823
|
class: "r-textfield__label",
|
|
@@ -9832,7 +9829,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9832
9829
|
S("div", {
|
|
9833
9830
|
class: p(l.value)
|
|
9834
9831
|
}, [
|
|
9835
|
-
f(
|
|
9832
|
+
f(h.$slots, "prepend", {
|
|
9836
9833
|
disabled: C.disabled,
|
|
9837
9834
|
error: r.value,
|
|
9838
9835
|
loading: C.loading
|
|
@@ -9860,15 +9857,15 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9860
9857
|
onFocus: b,
|
|
9861
9858
|
onInput: R
|
|
9862
9859
|
}, null, 40, x3),
|
|
9863
|
-
f(
|
|
9860
|
+
f(h.$slots, "append", {
|
|
9864
9861
|
disabled: C.disabled,
|
|
9865
9862
|
error: r.value,
|
|
9866
9863
|
loading: C.loading
|
|
9867
9864
|
}, () => [
|
|
9868
|
-
|
|
9865
|
+
k.value && !h.$slots.append || r.value ? (m(), E(D, {
|
|
9869
9866
|
key: 0,
|
|
9870
9867
|
class: p(B.value),
|
|
9871
|
-
name: `${
|
|
9868
|
+
name: `${k.value}`,
|
|
9872
9869
|
size: 20,
|
|
9873
9870
|
onClick: y
|
|
9874
9871
|
}, null, 8, ["class", "name"])) : O("", !0)
|
|
@@ -9968,10 +9965,10 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
9968
9965
|
},
|
|
9969
9966
|
emits: ["update:page", "update:perPage", "update:info"],
|
|
9970
9967
|
setup(H, { emit: V }) {
|
|
9971
|
-
const C = H, M = V, i = N(C.perPage || 10), L =
|
|
9968
|
+
const C = H, M = V, i = N(C.perPage || 10), L = g(() => Math.ceil(C.totalItems / C.perPage)), A = g(() => ({
|
|
9972
9969
|
start: C.page * C.perPage - C.perPage,
|
|
9973
9970
|
end: C.page * C.perPage
|
|
9974
|
-
})), e =
|
|
9971
|
+
})), e = g(() => C.infoText || `${A.value.start + 1}-${A.value.end} of ${C.totalItems}`), d = g(() => +C.page == +L.value), t = g(() => +C.page == 1);
|
|
9975
9972
|
G(() => A.value, () => {
|
|
9976
9973
|
M("update:info", A.value);
|
|
9977
9974
|
}), G(() => C.perPage, () => {
|
|
@@ -10120,7 +10117,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10120
10117
|
},
|
|
10121
10118
|
emits: ["update:modelValue"],
|
|
10122
10119
|
setup(H, { emit: V }) {
|
|
10123
|
-
const C = H, M = V, i = N(C.as ?? "div"), L = N(C.modelValue), A =
|
|
10120
|
+
const C = H, M = V, i = N(C.as ?? "div"), L = N(C.modelValue), A = g(() => C.selectedClass);
|
|
10124
10121
|
O1(`${h1}:selectedClass`, A.value);
|
|
10125
10122
|
function e(n) {
|
|
10126
10123
|
return L.value.includes(n);
|
|
@@ -10153,7 +10150,7 @@ const k3 = ["aria-disabled", "aria-selected", "disabled"], B3 = { key: 0 }, b3 =
|
|
|
10153
10150
|
selectedClass: { default: "" }
|
|
10154
10151
|
},
|
|
10155
10152
|
setup(H) {
|
|
10156
|
-
const V = H, C = f1(`${g1}:isSelected`), M = f1(`${g1}:selectedClass`, ""), i = f1(`${g1}:select`), L = f1(`${g1}:isDisabled`), A =
|
|
10153
|
+
const V = H, C = f1(`${g1}:isSelected`), M = f1(`${g1}:selectedClass`, ""), i = f1(`${g1}:select`), L = f1(`${g1}:isDisabled`), A = g(() => C(V.value) && [M, V.selectedClass]);
|
|
10157
10154
|
function e() {
|
|
10158
10155
|
V.disabled || i(V.value, !C(V.value));
|
|
10159
10156
|
}
|
|
@@ -10182,7 +10179,7 @@ export {
|
|
|
10182
10179
|
D as RIcon,
|
|
10183
10180
|
b0 as RItem,
|
|
10184
10181
|
B0 as RItemGroup,
|
|
10185
|
-
|
|
10182
|
+
S2 as RLabel,
|
|
10186
10183
|
u0 as RModal,
|
|
10187
10184
|
g0 as RPagination,
|
|
10188
10185
|
k0 as RProgressbar,
|