@rocketui/vue 0.2.39-alpha.3 → 0.2.39-alpha.5
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 +138 -138
- 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 F, openBlock as m, createElementBlock as u, createElementVNode as S, unref as V1, reactive as a1, Fragment as i1, renderList as
|
|
1
|
+
import { defineComponent as F, openBlock as m, createElementBlock as u, createElementVNode as S, unref as V1, reactive as a1, Fragment as i1, renderList as l1, normalizeClass as c, renderSlot as O, toDisplayString as w, createVNode as K, computed as f, createCommentVNode as h, mergeProps as j1, createBlock as _, watch as Q, getCurrentScope as Z2, onScopeDispose as u2, ref as W, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as f1, withDirectives as Y1, withModifiers as o1, withKeys as N1, vModelText as c2, createTextVNode as Z1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, resolveComponent as f2, provide as s1, resolveDynamicComponent as h2, inject as c1 } from "vue";
|
|
2
2
|
const g2 = {
|
|
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",
|
|
@@ -7335,7 +7335,7 @@ const g2 = {
|
|
|
7335
7335
|
C[i].open = i === A ? !C[i].open : !1;
|
|
7336
7336
|
});
|
|
7337
7337
|
}
|
|
7338
|
-
return (A, L) => (m(!0), u(i1, null,
|
|
7338
|
+
return (A, L) => (m(!0), u(i1, null, l1(C, (i, e) => (m(), u("div", {
|
|
7339
7339
|
key: e,
|
|
7340
7340
|
class: c(["r-accordion", {
|
|
7341
7341
|
"r-accordion--disabled": i.disabled
|
|
@@ -7745,7 +7745,7 @@ function V5() {
|
|
|
7745
7745
|
var H;
|
|
7746
7746
|
return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7747
7747
|
}
|
|
7748
|
-
function
|
|
7748
|
+
function t1(H) {
|
|
7749
7749
|
var V;
|
|
7750
7750
|
const C = J1(H);
|
|
7751
7751
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
@@ -7758,12 +7758,12 @@ function P1(...H) {
|
|
|
7758
7758
|
Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
|
|
7759
7759
|
const L = [], i = () => {
|
|
7760
7760
|
L.forEach((n) => n()), L.length = 0;
|
|
7761
|
-
}, e = (n,
|
|
7762
|
-
() => [
|
|
7763
|
-
([n,
|
|
7761
|
+
}, e = (n, a, o, l) => (n.addEventListener(a, o, l), () => n.removeEventListener(a, o, l)), d = Q(
|
|
7762
|
+
() => [t1(V), J1(A)],
|
|
7763
|
+
([n, a]) => {
|
|
7764
7764
|
if (i(), !n)
|
|
7765
7765
|
return;
|
|
7766
|
-
const o = C5(
|
|
7766
|
+
const o = C5(a) ? { ...a } : a;
|
|
7767
7767
|
L.push(
|
|
7768
7768
|
...C.flatMap((l) => M.map((r) => e(n, l, r, o)))
|
|
7769
7769
|
);
|
|
@@ -7785,12 +7785,12 @@ function L5(H, V, C = {}) {
|
|
|
7785
7785
|
if (typeof l == "string")
|
|
7786
7786
|
return Array.from(M.document.querySelectorAll(l)).some((r) => r === o.target || o.composedPath().includes(r));
|
|
7787
7787
|
{
|
|
7788
|
-
const r =
|
|
7788
|
+
const r = t1(l);
|
|
7789
7789
|
return r && (o.target === r || o.composedPath().includes(r));
|
|
7790
7790
|
}
|
|
7791
7791
|
}), n = [
|
|
7792
7792
|
P1(M, "click", (o) => {
|
|
7793
|
-
const l =
|
|
7793
|
+
const l = t1(H);
|
|
7794
7794
|
if (!(!l || l === o.target || o.composedPath().includes(l))) {
|
|
7795
7795
|
if (o.detail === 0 && (e = !d(o)), !e) {
|
|
7796
7796
|
e = !0;
|
|
@@ -7800,13 +7800,13 @@ function L5(H, V, C = {}) {
|
|
|
7800
7800
|
}
|
|
7801
7801
|
}, { passive: !0, capture: L }),
|
|
7802
7802
|
P1(M, "pointerdown", (o) => {
|
|
7803
|
-
const l =
|
|
7803
|
+
const l = t1(H);
|
|
7804
7804
|
e = !d(o) && !!(l && !o.composedPath().includes(l));
|
|
7805
7805
|
}, { passive: !0 }),
|
|
7806
7806
|
i && P1(M, "blur", (o) => {
|
|
7807
7807
|
setTimeout(() => {
|
|
7808
7808
|
var l;
|
|
7809
|
-
const r =
|
|
7809
|
+
const r = t1(H);
|
|
7810
7810
|
((l = M.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(r != null && r.contains(M.document.activeElement)) && V(o);
|
|
7811
7811
|
}, 0);
|
|
7812
7812
|
})
|
|
@@ -7828,7 +7828,7 @@ const M5 = ["top", "right", "bottom", "left"], n1 = Math.min, M1 = Math.max, h1
|
|
|
7828
7828
|
function T1(H, V, C) {
|
|
7829
7829
|
return M1(H, n1(V, C));
|
|
7830
7830
|
}
|
|
7831
|
-
function
|
|
7831
|
+
function d1(H, V) {
|
|
7832
7832
|
return typeof H == "function" ? H(V) : H;
|
|
7833
7833
|
}
|
|
7834
7834
|
function L1(H) {
|
|
@@ -7914,7 +7914,7 @@ function G1(H, V, C) {
|
|
|
7914
7914
|
reference: M,
|
|
7915
7915
|
floating: A
|
|
7916
7916
|
} = H;
|
|
7917
|
-
const L = b1(V), i = E1(V), e = D1(i), d = L1(V), t = L === "y", n = M.x + M.width / 2 - A.width / 2,
|
|
7917
|
+
const L = b1(V), i = E1(V), e = D1(i), d = L1(V), t = L === "y", n = M.x + M.width / 2 - A.width / 2, a = M.y + M.height / 2 - A.height / 2, o = M[e] / 2 - A[e] / 2;
|
|
7918
7918
|
let l;
|
|
7919
7919
|
switch (d) {
|
|
7920
7920
|
case "top":
|
|
@@ -7932,13 +7932,13 @@ function G1(H, V, C) {
|
|
|
7932
7932
|
case "right":
|
|
7933
7933
|
l = {
|
|
7934
7934
|
x: M.x + M.width,
|
|
7935
|
-
y:
|
|
7935
|
+
y: a
|
|
7936
7936
|
};
|
|
7937
7937
|
break;
|
|
7938
7938
|
case "left":
|
|
7939
7939
|
l = {
|
|
7940
7940
|
x: M.x - A.width,
|
|
7941
|
-
y:
|
|
7941
|
+
y: a
|
|
7942
7942
|
};
|
|
7943
7943
|
break;
|
|
7944
7944
|
default:
|
|
@@ -7970,7 +7970,7 @@ const o5 = async (H, V, C) => {
|
|
|
7970
7970
|
strategy: A
|
|
7971
7971
|
}), {
|
|
7972
7972
|
x: n,
|
|
7973
|
-
y:
|
|
7973
|
+
y: a
|
|
7974
7974
|
} = G1(t, M, d), o = M, l = {}, r = 0;
|
|
7975
7975
|
for (let k = 0; k < e.length; k++) {
|
|
7976
7976
|
const {
|
|
@@ -7983,7 +7983,7 @@ const o5 = async (H, V, C) => {
|
|
|
7983
7983
|
reset: R
|
|
7984
7984
|
} = await y({
|
|
7985
7985
|
x: n,
|
|
7986
|
-
y:
|
|
7986
|
+
y: a,
|
|
7987
7987
|
initialPlacement: M,
|
|
7988
7988
|
placement: o,
|
|
7989
7989
|
strategy: A,
|
|
@@ -7995,7 +7995,7 @@ const o5 = async (H, V, C) => {
|
|
|
7995
7995
|
floating: V
|
|
7996
7996
|
}
|
|
7997
7997
|
});
|
|
7998
|
-
if (n = P ?? n,
|
|
7998
|
+
if (n = P ?? n, a = v ?? a, l = {
|
|
7999
7999
|
...l,
|
|
8000
8000
|
[B]: {
|
|
8001
8001
|
...l[B],
|
|
@@ -8008,14 +8008,14 @@ const o5 = async (H, V, C) => {
|
|
|
8008
8008
|
strategy: A
|
|
8009
8009
|
}) : R.rects), {
|
|
8010
8010
|
x: n,
|
|
8011
|
-
y:
|
|
8011
|
+
y: a
|
|
8012
8012
|
} = G1(t, o, d)), k = -1;
|
|
8013
8013
|
continue;
|
|
8014
8014
|
}
|
|
8015
8015
|
}
|
|
8016
8016
|
return {
|
|
8017
8017
|
x: n,
|
|
8018
|
-
y:
|
|
8018
|
+
y: a,
|
|
8019
8019
|
placement: o,
|
|
8020
8020
|
strategy: A,
|
|
8021
8021
|
middlewareData: l
|
|
@@ -8034,15 +8034,15 @@ async function B1(H, V) {
|
|
|
8034
8034
|
} = H, {
|
|
8035
8035
|
boundary: t = "clippingAncestors",
|
|
8036
8036
|
rootBoundary: n = "viewport",
|
|
8037
|
-
elementContext:
|
|
8037
|
+
elementContext: a = "floating",
|
|
8038
8038
|
altBoundary: o = !1,
|
|
8039
8039
|
padding: l = 0
|
|
8040
|
-
} =
|
|
8040
|
+
} = d1(V, H), r = L2(l), B = e[o ? a === "floating" ? "reference" : "floating" : a], y = k1(await L.getClippingRect({
|
|
8041
8041
|
element: (C = await (L.isElement == null ? void 0 : L.isElement(B))) == null || C ? B : B.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
|
|
8042
8042
|
boundary: t,
|
|
8043
8043
|
rootBoundary: n,
|
|
8044
8044
|
strategy: d
|
|
8045
|
-
})), P =
|
|
8045
|
+
})), P = a === "floating" ? {
|
|
8046
8046
|
...i.floating,
|
|
8047
8047
|
x: M,
|
|
8048
8048
|
y: A
|
|
@@ -8079,16 +8079,16 @@ const n5 = (H) => ({
|
|
|
8079
8079
|
} = V, {
|
|
8080
8080
|
element: t,
|
|
8081
8081
|
padding: n = 0
|
|
8082
|
-
} =
|
|
8082
|
+
} = d1(H, V) || {};
|
|
8083
8083
|
if (t == null)
|
|
8084
8084
|
return {};
|
|
8085
|
-
const
|
|
8085
|
+
const a = L2(n), o = {
|
|
8086
8086
|
x: C,
|
|
8087
8087
|
y: M
|
|
8088
8088
|
}, l = E1(A), r = D1(l), k = await i.getDimensions(t), B = l === "y", y = B ? "top" : "left", P = B ? "bottom" : "right", v = B ? "clientHeight" : "clientWidth", T = L.reference[r] + L.reference[l] - o[l] - L.floating[r], R = o[l] - L.reference[l], G = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
|
|
8089
8089
|
let I = G ? G[v] : 0;
|
|
8090
8090
|
(!I || !await (i.isElement == null ? void 0 : i.isElement(G))) && (I = e.floating[v] || L.floating[r]);
|
|
8091
|
-
const p = T / 2 - R / 2, N = I / 2 - k[r] / 2 - 1,
|
|
8091
|
+
const p = T / 2 - R / 2, N = I / 2 - k[r] / 2 - 1, Z = n1(a[y], N), g = n1(a[P], N), b = Z, x = I - k[r] - g, s = I / 2 - k[r] / 2 + p, D = T1(b, s, x), U = !d.arrow && u1(A) != null && s != D && L.reference[r] / 2 - (s < b ? Z : g) - k[r] / 2 < 0, j = U ? s < b ? s - b : s - x : 0;
|
|
8092
8092
|
return {
|
|
8093
8093
|
[l]: o[l] + j,
|
|
8094
8094
|
data: {
|
|
@@ -8116,20 +8116,20 @@ const n5 = (H) => ({
|
|
|
8116
8116
|
elements: t
|
|
8117
8117
|
} = V, {
|
|
8118
8118
|
mainAxis: n = !0,
|
|
8119
|
-
crossAxis:
|
|
8119
|
+
crossAxis: a = !0,
|
|
8120
8120
|
fallbackPlacements: o,
|
|
8121
8121
|
fallbackStrategy: l = "bestFit",
|
|
8122
8122
|
fallbackAxisSideDirection: r = "none",
|
|
8123
8123
|
flipAlignment: k = !0,
|
|
8124
8124
|
...B
|
|
8125
|
-
} =
|
|
8125
|
+
} = d1(H, V);
|
|
8126
8126
|
if ((C = L.arrow) != null && C.alignmentOffset)
|
|
8127
8127
|
return {};
|
|
8128
8128
|
const y = L1(A), P = L1(e) === e, v = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), T = o || (P || !k ? [g1(e)] : d5(e));
|
|
8129
8129
|
!o && r !== "none" && T.push(...m5(e, k, r, v));
|
|
8130
8130
|
const R = [e, ...T], G = await B1(V, B), I = [];
|
|
8131
8131
|
let p = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8132
|
-
if (n && I.push(G[y]),
|
|
8132
|
+
if (n && I.push(G[y]), a) {
|
|
8133
8133
|
const b = e5(A, i, v);
|
|
8134
8134
|
I.push(G[b[0]], G[b[1]]);
|
|
8135
8135
|
}
|
|
@@ -8137,7 +8137,7 @@ const n5 = (H) => ({
|
|
|
8137
8137
|
placement: A,
|
|
8138
8138
|
overflows: I
|
|
8139
8139
|
}], !I.every((b) => b <= 0)) {
|
|
8140
|
-
var N,
|
|
8140
|
+
var N, Z;
|
|
8141
8141
|
const b = (((N = L.flip) == null ? void 0 : N.index) || 0) + 1, x = R[b];
|
|
8142
8142
|
if (x)
|
|
8143
8143
|
return {
|
|
@@ -8149,7 +8149,7 @@ const n5 = (H) => ({
|
|
|
8149
8149
|
placement: x
|
|
8150
8150
|
}
|
|
8151
8151
|
};
|
|
8152
|
-
let s = (
|
|
8152
|
+
let s = (Z = p.filter((D) => D.overflows[0] <= 0).sort((D, U) => D.overflows[1] - U.overflows[1])[0]) == null ? void 0 : Z.placement;
|
|
8153
8153
|
if (!s)
|
|
8154
8154
|
switch (l) {
|
|
8155
8155
|
case "bestFit": {
|
|
@@ -8194,7 +8194,7 @@ const a5 = function(H) {
|
|
|
8194
8194
|
} = V, {
|
|
8195
8195
|
strategy: M = "referenceHidden",
|
|
8196
8196
|
...A
|
|
8197
|
-
} =
|
|
8197
|
+
} = d1(H, V);
|
|
8198
8198
|
switch (M) {
|
|
8199
8199
|
case "referenceHidden": {
|
|
8200
8200
|
const L = await B1(V, {
|
|
@@ -8231,20 +8231,20 @@ async function Z5(H, V) {
|
|
|
8231
8231
|
placement: C,
|
|
8232
8232
|
platform: M,
|
|
8233
8233
|
elements: A
|
|
8234
|
-
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = b1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, n = L && d ? -1 : 1,
|
|
8234
|
+
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = b1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, n = L && d ? -1 : 1, a = d1(V, H);
|
|
8235
8235
|
let {
|
|
8236
8236
|
mainAxis: o,
|
|
8237
8237
|
crossAxis: l,
|
|
8238
8238
|
alignmentAxis: r
|
|
8239
|
-
} = typeof
|
|
8240
|
-
mainAxis:
|
|
8239
|
+
} = typeof a == "number" ? {
|
|
8240
|
+
mainAxis: a,
|
|
8241
8241
|
crossAxis: 0,
|
|
8242
8242
|
alignmentAxis: null
|
|
8243
8243
|
} : {
|
|
8244
8244
|
mainAxis: 0,
|
|
8245
8245
|
crossAxis: 0,
|
|
8246
8246
|
alignmentAxis: null,
|
|
8247
|
-
...
|
|
8247
|
+
...a
|
|
8248
8248
|
};
|
|
8249
8249
|
return e && typeof r == "number" && (l = e === "end" ? r * -1 : r), d ? {
|
|
8250
8250
|
x: l * n,
|
|
@@ -8295,23 +8295,23 @@ const u5 = function(H) {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
},
|
|
8297
8297
|
...d
|
|
8298
|
-
} =
|
|
8298
|
+
} = d1(H, V), t = {
|
|
8299
8299
|
x: C,
|
|
8300
8300
|
y: M
|
|
8301
|
-
}, n = await B1(V, d),
|
|
8302
|
-
let l = t[o], r = t[
|
|
8301
|
+
}, n = await B1(V, d), a = b1(L1(A)), o = V2(a);
|
|
8302
|
+
let l = t[o], r = t[a];
|
|
8303
8303
|
if (L) {
|
|
8304
8304
|
const B = o === "y" ? "top" : "left", y = o === "y" ? "bottom" : "right", P = l + n[B], v = l - n[y];
|
|
8305
8305
|
l = T1(P, l, v);
|
|
8306
8306
|
}
|
|
8307
8307
|
if (i) {
|
|
8308
|
-
const B =
|
|
8308
|
+
const B = a === "y" ? "top" : "left", y = a === "y" ? "bottom" : "right", P = r + n[B], v = r - n[y];
|
|
8309
8309
|
r = T1(P, r, v);
|
|
8310
8310
|
}
|
|
8311
8311
|
const k = e.fn({
|
|
8312
8312
|
...V,
|
|
8313
8313
|
[o]: l,
|
|
8314
|
-
[
|
|
8314
|
+
[a]: r
|
|
8315
8315
|
});
|
|
8316
8316
|
return {
|
|
8317
8317
|
...k,
|
|
@@ -8363,11 +8363,11 @@ function _1(H) {
|
|
|
8363
8363
|
return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
|
|
8364
8364
|
}
|
|
8365
8365
|
function c5(H) {
|
|
8366
|
-
let V =
|
|
8366
|
+
let V = e1(H);
|
|
8367
8367
|
for (; q(V) && !w1(V); ) {
|
|
8368
8368
|
if (_1(V))
|
|
8369
8369
|
return V;
|
|
8370
|
-
V =
|
|
8370
|
+
V = e1(V);
|
|
8371
8371
|
}
|
|
8372
8372
|
return null;
|
|
8373
8373
|
}
|
|
@@ -8389,7 +8389,7 @@ function y1(H) {
|
|
|
8389
8389
|
scrollTop: H.pageYOffset
|
|
8390
8390
|
};
|
|
8391
8391
|
}
|
|
8392
|
-
function
|
|
8392
|
+
function e1(H) {
|
|
8393
8393
|
if (C1(H) === "html")
|
|
8394
8394
|
return H;
|
|
8395
8395
|
const V = (
|
|
@@ -8402,7 +8402,7 @@ function d1(H) {
|
|
|
8402
8402
|
return z1(V) ? V.host : V;
|
|
8403
8403
|
}
|
|
8404
8404
|
function A2(H) {
|
|
8405
|
-
const V =
|
|
8405
|
+
const V = e1(H);
|
|
8406
8406
|
return w1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
|
|
8407
8407
|
}
|
|
8408
8408
|
function R1(H, V, C) {
|
|
@@ -8456,18 +8456,18 @@ function r1(H, V, C, M) {
|
|
|
8456
8456
|
let i = J(1);
|
|
8457
8457
|
V && (M ? Y(M) && (i = A1(M)) : i = A1(H));
|
|
8458
8458
|
const e = p5(L, C, M) ? d2(L) : J(0);
|
|
8459
|
-
let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, n = A.width / i.x,
|
|
8459
|
+
let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, n = A.width / i.x, a = A.height / i.y;
|
|
8460
8460
|
if (L) {
|
|
8461
8461
|
const o = $(L), l = M && Y(M) ? $(M) : M;
|
|
8462
8462
|
let r = o.frameElement;
|
|
8463
8463
|
for (; r && M && l !== o; ) {
|
|
8464
8464
|
const k = A1(r), B = r.getBoundingClientRect(), y = z(r), P = B.left + (r.clientLeft + parseFloat(y.paddingLeft)) * k.x, v = B.top + (r.clientTop + parseFloat(y.paddingTop)) * k.y;
|
|
8465
|
-
d *= k.x, t *= k.y, n *= k.x,
|
|
8465
|
+
d *= k.x, t *= k.y, n *= k.x, a *= k.y, d += P, t += v, r = $(r).frameElement;
|
|
8466
8466
|
}
|
|
8467
8467
|
}
|
|
8468
8468
|
return k1({
|
|
8469
8469
|
width: n,
|
|
8470
|
-
height:
|
|
8470
|
+
height: a,
|
|
8471
8471
|
x: d,
|
|
8472
8472
|
y: t
|
|
8473
8473
|
});
|
|
@@ -8557,7 +8557,7 @@ function K1(H, V, C) {
|
|
|
8557
8557
|
return k1(M);
|
|
8558
8558
|
}
|
|
8559
8559
|
function m2(H, V) {
|
|
8560
|
-
const C =
|
|
8560
|
+
const C = e1(H);
|
|
8561
8561
|
return C === V || !Y(C) || w1(C) ? !1 : z(C).position === "fixed" || m2(C, V);
|
|
8562
8562
|
}
|
|
8563
8563
|
function b5(H, V) {
|
|
@@ -8566,10 +8566,10 @@ function b5(H, V) {
|
|
|
8566
8566
|
return C;
|
|
8567
8567
|
let M = R1(H, [], !1).filter((e) => Y(e) && C1(e) !== "body"), A = null;
|
|
8568
8568
|
const L = z(H).position === "fixed";
|
|
8569
|
-
let i = L ?
|
|
8569
|
+
let i = L ? e1(H) : H;
|
|
8570
8570
|
for (; Y(i) && !w1(i); ) {
|
|
8571
8571
|
const e = z(i), d = _1(i);
|
|
8572
|
-
!d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((n) => n !== i) : A = e, i =
|
|
8572
|
+
!d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((n) => n !== i) : A = e, i = e1(i);
|
|
8573
8573
|
}
|
|
8574
8574
|
return V.set(H, M), M;
|
|
8575
8575
|
}
|
|
@@ -8581,8 +8581,8 @@ function w5(H) {
|
|
|
8581
8581
|
strategy: A
|
|
8582
8582
|
} = H;
|
|
8583
8583
|
const i = [...C === "clippingAncestors" ? b5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, n) => {
|
|
8584
|
-
const
|
|
8585
|
-
return t.top = M1(
|
|
8584
|
+
const a = K1(V, n, A);
|
|
8585
|
+
return t.top = M1(a.top, t.top), t.right = n1(a.right, t.right), t.bottom = n1(a.bottom, t.bottom), t.left = M1(a.left, t.left), t;
|
|
8586
8586
|
}, K1(V, e, A));
|
|
8587
8587
|
return {
|
|
8588
8588
|
width: d.right - d.left,
|
|
@@ -8680,11 +8680,11 @@ async function x5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
|
|
|
8680
8680
|
r5(),
|
|
8681
8681
|
a5()
|
|
8682
8682
|
]
|
|
8683
|
-
}).then(({ x: d, y: t, placement: n, middlewareData:
|
|
8683
|
+
}).then(({ x: d, y: t, placement: n, middlewareData: a }) => {
|
|
8684
8684
|
var r, k;
|
|
8685
8685
|
if (!V)
|
|
8686
8686
|
return;
|
|
8687
|
-
|
|
8687
|
+
a.flip && V.setAttribute("data-placement", n);
|
|
8688
8688
|
const o = (r = H.offsetParent) == null ? void 0 : r.getBoundingClientRect().left, l = (k = H.offsetParent) == null ? void 0 : k.getBoundingClientRect().width;
|
|
8689
8689
|
if (Object.assign(V.style, {
|
|
8690
8690
|
maxWidth: e === "dropdown" ? `${l}px` : "auto",
|
|
@@ -8692,8 +8692,8 @@ async function x5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
|
|
|
8692
8692
|
top: `${t}px`,
|
|
8693
8693
|
animation: `r-tooltip-show ${i}ms ease-in-out forwards`,
|
|
8694
8694
|
transformOrigin: "start"
|
|
8695
|
-
}), C &&
|
|
8696
|
-
const { x: B, y } =
|
|
8695
|
+
}), C && a.arrow) {
|
|
8696
|
+
const { x: B, y } = a.arrow, P = {
|
|
8697
8697
|
top: "bottom",
|
|
8698
8698
|
right: "left",
|
|
8699
8699
|
bottom: "top",
|
|
@@ -8710,7 +8710,7 @@ async function x5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
|
|
|
8710
8710
|
}
|
|
8711
8711
|
});
|
|
8712
8712
|
}
|
|
8713
|
-
const D5 = ["aria-disabled"
|
|
8713
|
+
const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
8714
8714
|
__name: "RTooltip",
|
|
8715
8715
|
props: {
|
|
8716
8716
|
placement: { default: o2.Top },
|
|
@@ -8749,7 +8749,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
8749
8749
|
function n() {
|
|
8750
8750
|
C.disabled || C.triggers.includes(X.Click) && (L.value.style.display === "block" ? d() : e());
|
|
8751
8751
|
}
|
|
8752
|
-
function
|
|
8752
|
+
function a() {
|
|
8753
8753
|
C.disabled || C.triggers.includes(X.Hover) && e();
|
|
8754
8754
|
}
|
|
8755
8755
|
function o() {
|
|
@@ -8793,15 +8793,15 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
8793
8793
|
ref: A,
|
|
8794
8794
|
"aria-disabled": C.disabled,
|
|
8795
8795
|
class: c(["r-tooltip-trigger", B.triggerClass]),
|
|
8796
|
-
onClick:
|
|
8797
|
-
onMouseenter:
|
|
8796
|
+
onClick: n,
|
|
8797
|
+
onMouseenter: a,
|
|
8798
8798
|
onMouseleave: o,
|
|
8799
8799
|
onMousemove: l
|
|
8800
8800
|
}, [
|
|
8801
8801
|
O(B.$slots, "default", {
|
|
8802
8802
|
activators: {
|
|
8803
8803
|
click: n,
|
|
8804
|
-
mouseenter:
|
|
8804
|
+
mouseenter: a,
|
|
8805
8805
|
mouseleave: o,
|
|
8806
8806
|
mousemove: l
|
|
8807
8807
|
},
|
|
@@ -8846,7 +8846,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
8846
8846
|
]))
|
|
8847
8847
|
], 64));
|
|
8848
8848
|
}
|
|
8849
|
-
}), W5 = ["
|
|
8849
|
+
}), W5 = ["onClickCapture"], N5 = { class: "r-dropdown__selections" }, I5 = { key: 0 }, Q5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], G5 = ["data-has-value", "onClick"], $5 = ["aria-disabled", "onClick"], U5 = { class: "flex items-center" }, z5 = {
|
|
8850
8850
|
key: 0,
|
|
8851
8851
|
class: "r-dropdown-options__no-option"
|
|
8852
8852
|
}, K5 = {
|
|
@@ -8888,86 +8888,86 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
8888
8888
|
emits: ["update:modelValue"],
|
|
8889
8889
|
setup(H, { emit: V }) {
|
|
8890
8890
|
const C = H, M = V, A = W({}), L = W([]), i = W(!1), e = W("");
|
|
8891
|
-
function d(
|
|
8892
|
-
if (!
|
|
8891
|
+
function d(Z) {
|
|
8892
|
+
if (!Z || typeof Z == "object" || typeof Z == "function" || typeof Z == "symbol" || typeof Z > "u" || Array.isArray(Z))
|
|
8893
8893
|
return !0;
|
|
8894
|
-
const [g] = Object == null ? void 0 : Object.keys(
|
|
8894
|
+
const [g] = Object == null ? void 0 : Object.keys(Z);
|
|
8895
8895
|
return ["label", "value"].includes(g);
|
|
8896
8896
|
}
|
|
8897
8897
|
const t = f(() => {
|
|
8898
|
-
const
|
|
8899
|
-
return d(
|
|
8898
|
+
const Z = C.options;
|
|
8899
|
+
return d(Z[0]) ? Z : Z.map((g) => ({
|
|
8900
8900
|
value: g,
|
|
8901
8901
|
label: String(g)
|
|
8902
8902
|
}));
|
|
8903
8903
|
}), n = f(() => {
|
|
8904
|
-
const
|
|
8905
|
-
return d(
|
|
8906
|
-
value:
|
|
8907
|
-
label: String(
|
|
8904
|
+
const Z = C.modelValue;
|
|
8905
|
+
return d(Z) ? Z : {
|
|
8906
|
+
value: Z,
|
|
8907
|
+
label: String(Z)
|
|
8908
8908
|
};
|
|
8909
|
-
}),
|
|
8910
|
-
function r(
|
|
8909
|
+
}), a = W(), o = W(), l = W();
|
|
8910
|
+
function r(Z, g, b) {
|
|
8911
8911
|
var x, s, D;
|
|
8912
|
-
if (
|
|
8912
|
+
if (!C.disabled) {
|
|
8913
8913
|
if (i.value = !0, b(), g && g(), i.value) {
|
|
8914
|
-
(x =
|
|
8914
|
+
(x = a.value) == null || x.classList.add("r-dropdown--active"), (s = a.value) == null || s.focus(), (D = o.value) == null || D.focus();
|
|
8915
8915
|
return;
|
|
8916
8916
|
}
|
|
8917
8917
|
k();
|
|
8918
8918
|
}
|
|
8919
8919
|
}
|
|
8920
8920
|
function k() {
|
|
8921
|
-
var
|
|
8922
|
-
i.value = !1, (
|
|
8921
|
+
var Z, g, b;
|
|
8922
|
+
i.value = !1, (Z = a.value) == null || Z.classList.remove("r-dropdown--active"), (g = a.value) == null || g.blur(), (b = o.value) == null || b.blur();
|
|
8923
8923
|
}
|
|
8924
|
-
function B(
|
|
8924
|
+
function B(Z, g, b, x) {
|
|
8925
8925
|
var s;
|
|
8926
|
-
if (
|
|
8926
|
+
if (Z.stopPropagation(), x(), !g.disabled) {
|
|
8927
8927
|
if (C.multiple) {
|
|
8928
8928
|
L.value.find((D) => D.value === g.value) ? L.value.splice(L.value.indexOf(g), 1) : L.value.push(g), e.value = "", C.searchable && ((s = o.value) == null || s.focus());
|
|
8929
8929
|
return;
|
|
8930
8930
|
}
|
|
8931
|
-
y(
|
|
8931
|
+
y(Z, g), C.closeOnSelect && (b(), k());
|
|
8932
8932
|
}
|
|
8933
8933
|
}
|
|
8934
|
-
function y(
|
|
8934
|
+
function y(Z, g) {
|
|
8935
8935
|
if (A.value.value === g.value) {
|
|
8936
8936
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8937
8937
|
return;
|
|
8938
8938
|
}
|
|
8939
|
-
e.value = g.label, A.value = g, r(
|
|
8939
|
+
e.value = g.label, A.value = g, r(), M("update:modelValue", g);
|
|
8940
8940
|
}
|
|
8941
|
-
function P(
|
|
8942
|
-
if (
|
|
8941
|
+
function P(Z, g, b) {
|
|
8942
|
+
if (Z instanceof KeyboardEvent && Z.key !== "Backspace" || e.value !== "")
|
|
8943
8943
|
return;
|
|
8944
|
-
|
|
8944
|
+
Z.stopPropagation(), b();
|
|
8945
8945
|
const x = L.value.findIndex((s) => s.value === g.value);
|
|
8946
8946
|
L.value.splice(x, 1);
|
|
8947
8947
|
}
|
|
8948
|
-
function v(
|
|
8948
|
+
function v(Z, g) {
|
|
8949
8949
|
var s;
|
|
8950
8950
|
if (!C.multiple)
|
|
8951
8951
|
return;
|
|
8952
|
-
|
|
8952
|
+
Z.stopPropagation(), g();
|
|
8953
8953
|
const b = e.value;
|
|
8954
8954
|
if (b === "")
|
|
8955
8955
|
return;
|
|
8956
8956
|
t.value.find((D) => D.label === b) || (L.value.push({ value: b, label: b }), e.value = "", (s = o.value) == null || s.focus());
|
|
8957
8957
|
}
|
|
8958
|
-
function T(
|
|
8958
|
+
function T(Z) {
|
|
8959
8959
|
var g;
|
|
8960
|
-
return !
|
|
8960
|
+
return !Z || (Z == null ? void 0 : Z.value) === void 0 || (Z == null ? void 0 : Z.value) === null ? !1 : C.multiple ? L.value.find((b) => (b == null ? void 0 : b.value) === (Z == null ? void 0 : Z.value)) : ((g = A.value) == null ? void 0 : g.value) === (Z == null ? void 0 : Z.value);
|
|
8961
8961
|
}
|
|
8962
8962
|
const R = f(() => !C.searchable || A.value.label === e.value ? t.value : t.value.filter((g) => g.label.toLowerCase().includes(e.value.toLowerCase()))), G = f(() => !C.searchable);
|
|
8963
8963
|
function I() {
|
|
8964
8964
|
n.value ? C.multiple ? L.value = n.value : (A.value = n.value, e.value = n.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
|
|
8965
8965
|
}
|
|
8966
|
-
function p(
|
|
8967
|
-
C.searchable &&
|
|
8966
|
+
function p(Z) {
|
|
8967
|
+
C.searchable && Z(), !C.multiple && e.value === "" && (A.value = {}, M("update:modelValue", ""));
|
|
8968
8968
|
}
|
|
8969
|
-
function N(
|
|
8970
|
-
if (
|
|
8969
|
+
function N(Z, g) {
|
|
8970
|
+
if (Z.stopPropagation(), g(), C.multiple) {
|
|
8971
8971
|
L.value.splice(0, L.value.length);
|
|
8972
8972
|
return;
|
|
8973
8973
|
}
|
|
@@ -8975,11 +8975,11 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
8975
8975
|
}
|
|
8976
8976
|
return X1(() => {
|
|
8977
8977
|
I(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
|
|
8978
|
-
}), Q(L, (
|
|
8979
|
-
M("update:modelValue",
|
|
8980
|
-
}), Q(() => n.value, (
|
|
8978
|
+
}), Q(L, (Z) => {
|
|
8979
|
+
M("update:modelValue", Z);
|
|
8980
|
+
}), Q(() => n.value, (Z) => {
|
|
8981
8981
|
I();
|
|
8982
|
-
}), (
|
|
8982
|
+
}), (Z, g) => (m(), u("div", {
|
|
8983
8983
|
ref_key: "wrapper",
|
|
8984
8984
|
ref: l,
|
|
8985
8985
|
class: "r-dropdown-wrapper"
|
|
@@ -8999,7 +8999,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
8999
8999
|
default: f1(({ activators: b, updatePosition: x }) => [
|
|
9000
9000
|
S("div", {
|
|
9001
9001
|
ref_key: "dropdown",
|
|
9002
|
-
ref:
|
|
9002
|
+
ref: a,
|
|
9003
9003
|
class: c(["r-dropdown", {
|
|
9004
9004
|
"r-dropdown--disabled": C.disabled,
|
|
9005
9005
|
"r-dropdown--loading": C.loading,
|
|
@@ -9008,16 +9008,16 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9008
9008
|
group: e.value !== "" || L.value.length
|
|
9009
9009
|
}]),
|
|
9010
9010
|
role: "select",
|
|
9011
|
-
|
|
9011
|
+
onClickCapture: (s) => r(s, b.click, x)
|
|
9012
9012
|
}, [
|
|
9013
|
-
C.prependIcon ||
|
|
9013
|
+
C.prependIcon || Z.$slots.prepend ? (m(), u("div", {
|
|
9014
9014
|
key: 0,
|
|
9015
9015
|
class: c(["r-dropdown__prepend-icon", {
|
|
9016
9016
|
"r-dropdown__prepend-icon--active": i.value,
|
|
9017
9017
|
"r-dropdown__prepend-icon--error": C.errorMsg
|
|
9018
9018
|
}])
|
|
9019
9019
|
}, [
|
|
9020
|
-
O(
|
|
9020
|
+
O(Z.$slots, "prepend", {
|
|
9021
9021
|
active: i.value,
|
|
9022
9022
|
disabled: C.disabled,
|
|
9023
9023
|
error: C.errorMsg.length,
|
|
@@ -9030,7 +9030,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9030
9030
|
])
|
|
9031
9031
|
], 2)) : h("", !0),
|
|
9032
9032
|
S("div", N5, [
|
|
9033
|
-
(m(!0), u(i1, null,
|
|
9033
|
+
(m(!0), u(i1, null, l1(L.value, (s, D) => O(Z.$slots, "selection", {
|
|
9034
9034
|
key: D,
|
|
9035
9035
|
index: D,
|
|
9036
9036
|
option: s,
|
|
@@ -9060,7 +9060,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9060
9060
|
readonly: G.value,
|
|
9061
9061
|
role: "presentation",
|
|
9062
9062
|
type: "text",
|
|
9063
|
-
onInput:
|
|
9063
|
+
onInput: o1((s) => p(x), ["prevent"]),
|
|
9064
9064
|
onKeydown: [
|
|
9065
9065
|
N1((s) => P(s, L.value[L.value.length - 1], x), ["backspace"]),
|
|
9066
9066
|
N1((s) => v(s, x), ["enter"])
|
|
@@ -9075,21 +9075,21 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9075
9075
|
"data-has-value": (e.value !== "" || L.value.length) && i.value,
|
|
9076
9076
|
onClick: (s) => N(s, x)
|
|
9077
9077
|
}, [
|
|
9078
|
-
O(
|
|
9078
|
+
O(Z.$slots, "clearable", {}, () => [
|
|
9079
9079
|
K(E, {
|
|
9080
9080
|
name: "mdiCloseCircle",
|
|
9081
9081
|
size: "18"
|
|
9082
9082
|
})
|
|
9083
9083
|
])
|
|
9084
9084
|
], 8, G5)) : h("", !0),
|
|
9085
|
-
C.appendIcon ||
|
|
9085
|
+
C.appendIcon || Z.$slots.append ? (m(), u("div", {
|
|
9086
9086
|
key: 2,
|
|
9087
9087
|
class: c(["r-dropdown__append-icon", {
|
|
9088
9088
|
"r-dropdown__append-icon--active": i.value,
|
|
9089
9089
|
"r-dropdown__append-icon--error": C.errorMsg
|
|
9090
9090
|
}])
|
|
9091
9091
|
}, [
|
|
9092
|
-
O(
|
|
9092
|
+
O(Z.$slots, "append", {
|
|
9093
9093
|
active: i.value,
|
|
9094
9094
|
disabled: C.disabled,
|
|
9095
9095
|
error: C.errorMsg.length,
|
|
@@ -9101,7 +9101,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9101
9101
|
}, null, 8, ["name"])) : h("", !0)
|
|
9102
9102
|
])
|
|
9103
9103
|
], 2)) : h("", !0)
|
|
9104
|
-
],
|
|
9104
|
+
], 42, W5)
|
|
9105
9105
|
]),
|
|
9106
9106
|
content: f1(({ hide: b, updatePosition: x }) => [
|
|
9107
9107
|
S("ul", {
|
|
@@ -9110,21 +9110,21 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9110
9110
|
[C.optionsClass]: C.optionsClass
|
|
9111
9111
|
}])
|
|
9112
9112
|
}, [
|
|
9113
|
-
(m(!0), u(i1, null,
|
|
9113
|
+
(m(!0), u(i1, null, l1(R.value, (s) => (m(), u("li", {
|
|
9114
9114
|
key: s.value,
|
|
9115
9115
|
"aria-disabled": s.disabled,
|
|
9116
9116
|
class: c(["r-dropdown-options__option", {
|
|
9117
9117
|
"r-dropdown-options__option--active": T(s),
|
|
9118
9118
|
"r-dropdown-options__option--disabled": s.disabled
|
|
9119
9119
|
}]),
|
|
9120
|
-
onClick:
|
|
9120
|
+
onClick: o1((D) => B(D, s, b, x), ["prevent"])
|
|
9121
9121
|
}, [
|
|
9122
|
-
O(
|
|
9122
|
+
O(Z.$slots, "option", {
|
|
9123
9123
|
disabled: s.disabled,
|
|
9124
9124
|
isSelected: T(s)
|
|
9125
9125
|
}, () => [
|
|
9126
9126
|
S("div", U5, [
|
|
9127
|
-
O(
|
|
9127
|
+
O(Z.$slots, "option-prepend", {
|
|
9128
9128
|
disabled: s.disabled,
|
|
9129
9129
|
isSelected: T(s)
|
|
9130
9130
|
}, () => [
|
|
@@ -9142,7 +9142,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9142
9142
|
}])
|
|
9143
9143
|
}, w(s.label), 3)
|
|
9144
9144
|
]),
|
|
9145
|
-
O(
|
|
9145
|
+
O(Z.$slots, "option-append", {
|
|
9146
9146
|
disabled: s.disabled,
|
|
9147
9147
|
isSelected: T(s)
|
|
9148
9148
|
}, () => [
|
|
@@ -9157,7 +9157,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9157
9157
|
])
|
|
9158
9158
|
], 10, $5))), 128)),
|
|
9159
9159
|
R.value.length === 0 ? (m(), u("li", z5, [
|
|
9160
|
-
O(
|
|
9160
|
+
O(Z.$slots, "not-options", {}, () => [
|
|
9161
9161
|
Z1(w(C.multiple ? "No options hit to enter for create" : C.noOptionsText), 1)
|
|
9162
9162
|
])
|
|
9163
9163
|
])) : h("", !0)
|
|
@@ -9165,7 +9165,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9165
9165
|
]),
|
|
9166
9166
|
_: 3
|
|
9167
9167
|
}, 8, ["tooltip-class"]),
|
|
9168
|
-
|
|
9168
|
+
Z.$props.hideDetails ? h("", !0) : (m(), u("div", K5, [
|
|
9169
9169
|
C.errorMsg ? (m(), u("div", q5, w(C.errorMsg), 1)) : h("", !0),
|
|
9170
9170
|
C.hint ? (m(), u("div", j5, w(C.hint), 1)) : h("", !0)
|
|
9171
9171
|
]))
|
|
@@ -9234,7 +9234,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9234
9234
|
e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
|
|
9235
9235
|
}), (e, d) => Y1((m(), u("div", {
|
|
9236
9236
|
class: c(["r-modal-overlay", e.overlayClass]),
|
|
9237
|
-
onClick:
|
|
9237
|
+
onClick: o1(i, ["stop"])
|
|
9238
9238
|
}, [
|
|
9239
9239
|
S("div", {
|
|
9240
9240
|
"aria-modal": "true",
|
|
@@ -9358,7 +9358,7 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9358
9358
|
C.closable ? (m(), u("div", {
|
|
9359
9359
|
key: 0,
|
|
9360
9360
|
class: "r-snackbar__close",
|
|
9361
|
-
onClick: e[0] || (e[0] =
|
|
9361
|
+
onClick: e[0] || (e[0] = o1((d) => i.$emit("update:modelValue", !1), ["stop"]))
|
|
9362
9362
|
}, [
|
|
9363
9363
|
O(i.$slots, "close", {}, () => [
|
|
9364
9364
|
K(E, {
|
|
@@ -9450,12 +9450,12 @@ const D5 = ["aria-disabled", "onClick"], E5 = ["innerHTML"], _5 = /* @__PURE__ *
|
|
|
9450
9450
|
], 2));
|
|
9451
9451
|
}
|
|
9452
9452
|
});
|
|
9453
|
-
var
|
|
9453
|
+
var m1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(m1 || {});
|
|
9454
9454
|
const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 = /* @__PURE__ */ F({
|
|
9455
9455
|
__name: "RTabItem",
|
|
9456
9456
|
props: {
|
|
9457
9457
|
id: {},
|
|
9458
|
-
variant: { default:
|
|
9458
|
+
variant: { default: m1.DEFAULT },
|
|
9459
9459
|
label: { default: "" },
|
|
9460
9460
|
prependIcon: { default: "" },
|
|
9461
9461
|
appendIcon: { default: "" },
|
|
@@ -9484,20 +9484,20 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9484
9484
|
class: c(A.value),
|
|
9485
9485
|
disabled: C.disabled,
|
|
9486
9486
|
style: x1(L.value),
|
|
9487
|
-
onClick: t[0] || (t[0] =
|
|
9487
|
+
onClick: t[0] || (t[0] = o1((n) => e(C.id), ["stop"]))
|
|
9488
9488
|
}, [
|
|
9489
9489
|
O(d.$slots, "prepend", {
|
|
9490
9490
|
active: i.value,
|
|
9491
9491
|
disabled: C.disabled
|
|
9492
9492
|
}, () => [
|
|
9493
|
-
C.variant !== V1(
|
|
9493
|
+
C.variant !== V1(m1).TEXT && C.prependIcon ? (m(), _(E, {
|
|
9494
9494
|
key: 0,
|
|
9495
9495
|
class: "r-tab-item__prepend-icon",
|
|
9496
9496
|
name: C.prependIcon,
|
|
9497
9497
|
size: 16
|
|
9498
9498
|
}, null, 8, ["name"])) : h("", !0)
|
|
9499
9499
|
]),
|
|
9500
|
-
C.variant !== V1(
|
|
9500
|
+
C.variant !== V1(m1).ICON ? (m(), u("span", S3, [
|
|
9501
9501
|
O(d.$slots, "default", {
|
|
9502
9502
|
label: C.label
|
|
9503
9503
|
}, () => [
|
|
@@ -9508,7 +9508,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9508
9508
|
active: i.value,
|
|
9509
9509
|
disabled: C.disabled
|
|
9510
9510
|
}, () => [
|
|
9511
|
-
C.variant !== V1(
|
|
9511
|
+
C.variant !== V1(m1).TEXT && C.appendIcon ? (m(), _(E, {
|
|
9512
9512
|
key: 0,
|
|
9513
9513
|
class: "r-tab-item__append-icon",
|
|
9514
9514
|
name: C.appendIcon,
|
|
@@ -9556,7 +9556,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9556
9556
|
}]])
|
|
9557
9557
|
}, [
|
|
9558
9558
|
O(i.$slots, "default", { activeTab: A.value }, () => [
|
|
9559
|
-
(m(!0), u(i1, null,
|
|
9559
|
+
(m(!0), u(i1, null, l1(C.tabs, (d, t) => (m(), _(s3, {
|
|
9560
9560
|
id: d.id,
|
|
9561
9561
|
key: t,
|
|
9562
9562
|
modelValue: A.value,
|
|
@@ -9683,14 +9683,14 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9683
9683
|
url: "mdiLink",
|
|
9684
9684
|
number: "mdiNumeric",
|
|
9685
9685
|
text: ""
|
|
9686
|
-
}, d = W(!1), t = f(() => !!L.value), n = f(() => L.value.length > 0),
|
|
9686
|
+
}, d = W(!1), t = f(() => !!L.value), n = f(() => L.value.length > 0), a = f(() => {
|
|
9687
9687
|
var p;
|
|
9688
9688
|
return (p = C.errorMsg) == null ? void 0 : p.length;
|
|
9689
9689
|
}), o = f(() => C.clearable && n.value), l = f(() => {
|
|
9690
9690
|
const { disabled: p, loading: N } = C;
|
|
9691
9691
|
return {
|
|
9692
9692
|
"r-textfield": !0,
|
|
9693
|
-
"r-textfield--error":
|
|
9693
|
+
"r-textfield--error": a.value,
|
|
9694
9694
|
"r-textfield--loading": N,
|
|
9695
9695
|
"r-textfield--disabled": p,
|
|
9696
9696
|
"r-textfield--clearable": o.value,
|
|
@@ -9700,17 +9700,17 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9700
9700
|
}), r = f(() => ({
|
|
9701
9701
|
"r-textfield__prepend-icon": !0,
|
|
9702
9702
|
"r-textfield__prepend-icon--loading": C.loading,
|
|
9703
|
-
"r-textfield__prepend-icon--error":
|
|
9703
|
+
"r-textfield__prepend-icon--error": a.value && t.value
|
|
9704
9704
|
})), k = f(() => ({
|
|
9705
9705
|
"r-textfield__append-icon": !0,
|
|
9706
9706
|
"r-textfield__append-icon--clear": o.value,
|
|
9707
|
-
"r-textfield__append-icon--error":
|
|
9707
|
+
"r-textfield__append-icon--error": a.value
|
|
9708
9708
|
})), B = f(() => {
|
|
9709
9709
|
const { prependIcon: p, type: N } = C;
|
|
9710
9710
|
return p === "none" ? "" : p || e[N];
|
|
9711
9711
|
}), y = f(() => {
|
|
9712
9712
|
const { appendIcon: p, type: N } = C;
|
|
9713
|
-
return p === "none" ? "" :
|
|
9713
|
+
return p === "none" ? "" : a.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(N) ? "mdiClose" : N === "password" && i.value === "password" ? "mdiEyeOutline" : N === "password" && i.value === "text" ? "mdiEyeOffOutline" : p;
|
|
9714
9714
|
});
|
|
9715
9715
|
function P(p) {
|
|
9716
9716
|
d.value = !0, M("focus", p);
|
|
@@ -9771,7 +9771,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9771
9771
|
}, [
|
|
9772
9772
|
O(p.$slots, "prepend", {
|
|
9773
9773
|
disabled: C.disabled,
|
|
9774
|
-
error:
|
|
9774
|
+
error: a.value,
|
|
9775
9775
|
loading: C.loading
|
|
9776
9776
|
}, () => [
|
|
9777
9777
|
B.value ? (m(), _(E, {
|
|
@@ -9799,10 +9799,10 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9799
9799
|
}, null, 40, B3),
|
|
9800
9800
|
O(p.$slots, "append", {
|
|
9801
9801
|
disabled: C.disabled,
|
|
9802
|
-
error:
|
|
9802
|
+
error: a.value,
|
|
9803
9803
|
loading: C.loading
|
|
9804
9804
|
}, () => [
|
|
9805
|
-
y.value && !p.$slots.append ||
|
|
9805
|
+
y.value && !p.$slots.append || a.value ? (m(), _(E, {
|
|
9806
9806
|
key: 0,
|
|
9807
9807
|
class: c(k.value),
|
|
9808
9808
|
name: `${y.value}`,
|
|
@@ -9832,7 +9832,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9832
9832
|
return (C, M) => {
|
|
9833
9833
|
const A = f2("router-link");
|
|
9834
9834
|
return m(), u("div", P3, [
|
|
9835
|
-
(m(!0), u(i1, null,
|
|
9835
|
+
(m(!0), u(i1, null, l1(V.items, (L, i) => (m(), u("div", {
|
|
9836
9836
|
key: i,
|
|
9837
9837
|
class: "r-breadcrumb__item"
|
|
9838
9838
|
}, [
|
|
@@ -9918,7 +9918,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9918
9918
|
const l = Math.ceil(o);
|
|
9919
9919
|
l < 1 || l > L.value || M("update:page", l);
|
|
9920
9920
|
}
|
|
9921
|
-
function
|
|
9921
|
+
function a({ value: o }) {
|
|
9922
9922
|
M("update:perPage", o);
|
|
9923
9923
|
}
|
|
9924
9924
|
return (o, l) => (m(), u("div", {
|
|
@@ -9931,7 +9931,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9931
9931
|
modelValue: A.value,
|
|
9932
9932
|
"onUpdate:modelValue": [
|
|
9933
9933
|
l[0] || (l[0] = (r) => A.value = r),
|
|
9934
|
-
|
|
9934
|
+
a
|
|
9935
9935
|
],
|
|
9936
9936
|
class: "w-24",
|
|
9937
9937
|
"hide-details": "",
|
|
@@ -10059,8 +10059,8 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
10059
10059
|
return L.value.includes(n);
|
|
10060
10060
|
}
|
|
10061
10061
|
s1(`${O1}:isSelected`, e);
|
|
10062
|
-
function d(n,
|
|
10063
|
-
C.disabled || C.mandatory && L.value.length === 1 && !
|
|
10062
|
+
function d(n, a) {
|
|
10063
|
+
C.disabled || C.mandatory && L.value.length === 1 && !a || C.max && L.value.length === C.max && a || (C.multiple ? a ? L.value.push(n) : L.value = L.value.filter((o) => o !== n) : L.value = n ? [n] : [], M("update:modelValue", L.value));
|
|
10064
10064
|
}
|
|
10065
10065
|
s1(`${O1}:select`, d);
|
|
10066
10066
|
function t() {
|
|
@@ -10068,7 +10068,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
10068
10068
|
}
|
|
10069
10069
|
return s1(`${O1}:isDisabled`, t), Q(() => C.modelValue, () => {
|
|
10070
10070
|
L.value = C.modelValue;
|
|
10071
|
-
}), (n,
|
|
10071
|
+
}), (n, a) => (m(), _(h2(A.value), null, {
|
|
10072
10072
|
default: f1(() => [
|
|
10073
10073
|
O(n.$slots, "default", {
|
|
10074
10074
|
isSelected: e,
|