@rocketui/vue 0.2.6 → 0.2.8
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 +75 -85
- 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 T, openBlock as m, createElementBlock as n, createElementVNode as u, unref as M1, reactive as m1, Fragment as V1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as c, mergeProps as j1, createBlock as _, watch as
|
|
1
|
+
import { defineComponent as T, openBlock as m, createElementBlock as n, createElementVNode as u, unref as M1, reactive as m1, Fragment as V1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as c, mergeProps as j1, createBlock as _, watch as $, getCurrentScope as Z2, onScopeDispose as u2, ref as N, watchEffect as S2, onMounted as X1, Teleport as s2, withCtx as r1, withDirectives as Y1, withModifiers as d1, withKeys as N1, vModelText as c2, createTextVNode as R1, onUnmounted as O2, normalizeStyle as x1, vShow as p2, Transition as f2, resolveComponent as h2, provide as k1, resolveDynamicComponent as g2, inject as B1 } from "vue";
|
|
2
2
|
const k2 = {
|
|
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",
|
|
@@ -7596,7 +7596,7 @@ const k2 = {
|
|
|
7596
7596
|
function t(d) {
|
|
7597
7597
|
C.disabled || (A.checked = d.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
|
|
7598
7598
|
}
|
|
7599
|
-
return
|
|
7599
|
+
return $(
|
|
7600
7600
|
() => C.indeterminate,
|
|
7601
7601
|
(d) => {
|
|
7602
7602
|
A.indeterminate = d, d === !0 && (A.checked = !1, M("update:modelValue", A.checked));
|
|
@@ -7606,7 +7606,7 @@ const k2 = {
|
|
|
7606
7606
|
// TODO: find a better way to do this
|
|
7607
7607
|
immediate: !0
|
|
7608
7608
|
}
|
|
7609
|
-
),
|
|
7609
|
+
), $(
|
|
7610
7610
|
() => C.modelValue,
|
|
7611
7611
|
(d) => {
|
|
7612
7612
|
A.checked = d;
|
|
@@ -7707,34 +7707,34 @@ const k2 = {
|
|
|
7707
7707
|
}
|
|
7708
7708
|
});
|
|
7709
7709
|
function C5(H) {
|
|
7710
|
-
return
|
|
7710
|
+
return Z2() ? (u2(H), !0) : !1;
|
|
7711
7711
|
}
|
|
7712
|
-
function
|
|
7712
|
+
function J1(H) {
|
|
7713
7713
|
return typeof H == "function" ? H() : M1(H);
|
|
7714
7714
|
}
|
|
7715
|
-
const
|
|
7715
|
+
const C2 = typeof window < "u" && typeof document < "u";
|
|
7716
7716
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7717
7717
|
const H5 = Object.prototype.toString, V5 = (H) => H5.call(H) === "[object Object]", P1 = () => {
|
|
7718
7718
|
}, L5 = /* @__PURE__ */ M5();
|
|
7719
7719
|
function M5() {
|
|
7720
7720
|
var H;
|
|
7721
|
-
return
|
|
7721
|
+
return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7722
7722
|
}
|
|
7723
7723
|
function o1(H) {
|
|
7724
7724
|
var V;
|
|
7725
|
-
const C =
|
|
7725
|
+
const C = J1(H);
|
|
7726
7726
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
7727
7727
|
}
|
|
7728
|
-
const
|
|
7728
|
+
const H2 = C2 ? window : void 0;
|
|
7729
7729
|
function b1(...H) {
|
|
7730
7730
|
let V, C, M, A;
|
|
7731
|
-
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, A] = H, V =
|
|
7731
|
+
if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, A] = H, V = H2) : [V, C, M, A] = H, !V)
|
|
7732
7732
|
return P1;
|
|
7733
7733
|
Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
|
|
7734
7734
|
const L = [], i = () => {
|
|
7735
7735
|
L.forEach((l) => l()), L.length = 0;
|
|
7736
|
-
}, e = (l, o, a, r) => (l.addEventListener(o, a, r), () => l.removeEventListener(o, a, r)), t =
|
|
7737
|
-
() => [o1(V),
|
|
7736
|
+
}, e = (l, o, a, r) => (l.addEventListener(o, a, r), () => l.removeEventListener(o, a, r)), t = $(
|
|
7737
|
+
() => [o1(V), J1(A)],
|
|
7738
7738
|
([l, o]) => {
|
|
7739
7739
|
if (i(), !l)
|
|
7740
7740
|
return;
|
|
@@ -7751,7 +7751,7 @@ function b1(...H) {
|
|
|
7751
7751
|
}
|
|
7752
7752
|
let Q1 = !1;
|
|
7753
7753
|
function A5(H, V, C = {}) {
|
|
7754
|
-
const { window: M =
|
|
7754
|
+
const { window: M = H2, ignore: A = [], capture: L = !0, detectIframe: i = !1 } = C;
|
|
7755
7755
|
if (!M)
|
|
7756
7756
|
return;
|
|
7757
7757
|
L5 && !Q1 && (Q1 = !0, Array.from(M.document.body.children).forEach((a) => a.addEventListener("click", P1)), M.document.documentElement.addEventListener("click", P1));
|
|
@@ -7812,7 +7812,7 @@ function L1(H) {
|
|
|
7812
7812
|
function u1(H) {
|
|
7813
7813
|
return H.split("-")[1];
|
|
7814
7814
|
}
|
|
7815
|
-
function
|
|
7815
|
+
function V2(H) {
|
|
7816
7816
|
return H === "x" ? "y" : "x";
|
|
7817
7817
|
}
|
|
7818
7818
|
function D1(H) {
|
|
@@ -7822,7 +7822,7 @@ function f1(H) {
|
|
|
7822
7822
|
return ["top", "bottom"].includes(L1(H)) ? "y" : "x";
|
|
7823
7823
|
}
|
|
7824
7824
|
function _1(H) {
|
|
7825
|
-
return
|
|
7825
|
+
return V2(f1(H));
|
|
7826
7826
|
}
|
|
7827
7827
|
function t5(H, V, C) {
|
|
7828
7828
|
C === void 0 && (C = !1);
|
|
@@ -7867,7 +7867,7 @@ function n5(H) {
|
|
|
7867
7867
|
...H
|
|
7868
7868
|
};
|
|
7869
7869
|
}
|
|
7870
|
-
function
|
|
7870
|
+
function L2(H) {
|
|
7871
7871
|
return typeof H != "number" ? n5(H) : {
|
|
7872
7872
|
top: H,
|
|
7873
7873
|
right: H,
|
|
@@ -8012,7 +8012,7 @@ async function p1(H, V) {
|
|
|
8012
8012
|
elementContext: o = "floating",
|
|
8013
8013
|
altBoundary: a = !1,
|
|
8014
8014
|
padding: r = 0
|
|
8015
|
-
} = l1(V, H), Z =
|
|
8015
|
+
} = l1(V, H), Z = L2(r), k = e[a ? o === "floating" ? "reference" : "floating" : o], y = O1(await L.getClippingRect({
|
|
8016
8016
|
element: (C = await (L.isElement == null ? void 0 : L.isElement(k))) == null || C ? k : k.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
|
|
8017
8017
|
boundary: d,
|
|
8018
8018
|
rootBoundary: l,
|
|
@@ -8057,23 +8057,23 @@ const a5 = (H) => ({
|
|
|
8057
8057
|
} = l1(H, V) || {};
|
|
8058
8058
|
if (d == null)
|
|
8059
8059
|
return {};
|
|
8060
|
-
const o =
|
|
8060
|
+
const o = L2(l), a = {
|
|
8061
8061
|
x: C,
|
|
8062
8062
|
y: M
|
|
8063
8063
|
}, r = _1(A), Z = D1(r), B = await i.getDimensions(d), k = r === "y", y = k ? "top" : "left", P = k ? "bottom" : "right", v = k ? "clientHeight" : "clientWidth", R = L.reference[Z] + L.reference[r] - a[r] - L.floating[Z], F = a[r] - L.reference[r], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
8064
8064
|
let I = z ? z[v] : 0;
|
|
8065
8065
|
(!I || !await (i.isElement == null ? void 0 : i.isElement(z))) && (I = e.floating[v] || L.floating[Z]);
|
|
8066
|
-
const O = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, S = a1(o[y], W), h = a1(o[P], W), b = S, x = I - B[Z] - h, s = I / 2 - B[Z] / 2 + O, E = v1(b, s, x),
|
|
8066
|
+
const O = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, S = a1(o[y], W), h = a1(o[P], W), b = S, x = I - B[Z] - h, s = I / 2 - B[Z] / 2 + O, E = v1(b, s, x), G = !t.arrow && u1(A) != null && s != E && L.reference[Z] / 2 - (s < b ? S : h) - B[Z] / 2 < 0, j = G ? s < b ? s - b : s - x : 0;
|
|
8067
8067
|
return {
|
|
8068
8068
|
[r]: a[r] + j,
|
|
8069
8069
|
data: {
|
|
8070
8070
|
[r]: E,
|
|
8071
8071
|
centerOffset: s - E - j,
|
|
8072
|
-
|
|
8072
|
+
...G && {
|
|
8073
8073
|
alignmentOffset: j
|
|
8074
8074
|
}
|
|
8075
8075
|
},
|
|
8076
|
-
reset:
|
|
8076
|
+
reset: G
|
|
8077
8077
|
};
|
|
8078
8078
|
}
|
|
8079
8079
|
}), Z5 = function(H) {
|
|
@@ -8124,12 +8124,12 @@ const a5 = (H) => ({
|
|
|
8124
8124
|
placement: x
|
|
8125
8125
|
}
|
|
8126
8126
|
};
|
|
8127
|
-
let s = (S = O.filter((E) => E.overflows[0] <= 0).sort((E,
|
|
8127
|
+
let s = (S = O.filter((E) => E.overflows[0] <= 0).sort((E, G) => E.overflows[1] - G.overflows[1])[0]) == null ? void 0 : S.placement;
|
|
8128
8128
|
if (!s)
|
|
8129
8129
|
switch (r) {
|
|
8130
8130
|
case "bestFit": {
|
|
8131
8131
|
var h;
|
|
8132
|
-
const E = (h = O.map((
|
|
8132
|
+
const E = (h = O.map((G) => [G.placement, G.overflows.filter((j) => j > 0).reduce((j, a2) => j + a2, 0)]).sort((G, j) => G[1] - j[1])[0]) == null ? void 0 : h[0];
|
|
8133
8133
|
E && (s = E);
|
|
8134
8134
|
break;
|
|
8135
8135
|
}
|
|
@@ -8273,7 +8273,7 @@ const s5 = function(H) {
|
|
|
8273
8273
|
} = l1(H, V), d = {
|
|
8274
8274
|
x: C,
|
|
8275
8275
|
y: M
|
|
8276
|
-
}, l = await p1(V, t), o = f1(L1(A)), a =
|
|
8276
|
+
}, l = await p1(V, t), o = f1(L1(A)), a = V2(o);
|
|
8277
8277
|
let r = d[a], Z = d[o];
|
|
8278
8278
|
if (L) {
|
|
8279
8279
|
const k = a === "y" ? "top" : "left", y = a === "y" ? "bottom" : "right", P = r + l[k], v = r - l[y];
|
|
@@ -8299,7 +8299,7 @@ const s5 = function(H) {
|
|
|
8299
8299
|
};
|
|
8300
8300
|
};
|
|
8301
8301
|
function C1(H) {
|
|
8302
|
-
return
|
|
8302
|
+
return M2(H) ? (H.nodeName || "").toLowerCase() : "#document";
|
|
8303
8303
|
}
|
|
8304
8304
|
function Q(H) {
|
|
8305
8305
|
var V;
|
|
@@ -8307,9 +8307,9 @@ function Q(H) {
|
|
|
8307
8307
|
}
|
|
8308
8308
|
function H1(H) {
|
|
8309
8309
|
var V;
|
|
8310
|
-
return (V = (
|
|
8310
|
+
return (V = (M2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
|
|
8311
8311
|
}
|
|
8312
|
-
function
|
|
8312
|
+
function M2(H) {
|
|
8313
8313
|
return H instanceof Node || H instanceof Q(H).Node;
|
|
8314
8314
|
}
|
|
8315
8315
|
function Y(H) {
|
|
@@ -8376,17 +8376,17 @@ function t1(H) {
|
|
|
8376
8376
|
);
|
|
8377
8377
|
return z1(V) ? V.host : V;
|
|
8378
8378
|
}
|
|
8379
|
-
function
|
|
8379
|
+
function A2(H) {
|
|
8380
8380
|
const V = t1(H);
|
|
8381
|
-
return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V :
|
|
8381
|
+
return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
|
|
8382
8382
|
}
|
|
8383
8383
|
function F1(H, V, C) {
|
|
8384
8384
|
var M;
|
|
8385
8385
|
V === void 0 && (V = []), C === void 0 && (C = !0);
|
|
8386
|
-
const A =
|
|
8386
|
+
const A = A2(H), L = A === ((M = H.ownerDocument) == null ? void 0 : M.body), i = Q(A);
|
|
8387
8387
|
return L ? V.concat(i, i.visualViewport || [], S1(A) ? A : [], i.frameElement && C ? F1(i.frameElement) : []) : V.concat(A, F1(A, [], C));
|
|
8388
8388
|
}
|
|
8389
|
-
function
|
|
8389
|
+
function i2(H) {
|
|
8390
8390
|
const V = U(H);
|
|
8391
8391
|
let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
|
|
8392
8392
|
const A = q(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = s1(C) !== L || s1(M) !== i;
|
|
@@ -8396,18 +8396,18 @@ function e2(H) {
|
|
|
8396
8396
|
$: e
|
|
8397
8397
|
};
|
|
8398
8398
|
}
|
|
8399
|
-
function
|
|
8399
|
+
function e2(H) {
|
|
8400
8400
|
return Y(H) ? H : H.contextElement;
|
|
8401
8401
|
}
|
|
8402
8402
|
function e1(H) {
|
|
8403
|
-
const V =
|
|
8403
|
+
const V = e2(H);
|
|
8404
8404
|
if (!q(V))
|
|
8405
8405
|
return J(1);
|
|
8406
8406
|
const C = V.getBoundingClientRect(), {
|
|
8407
8407
|
width: M,
|
|
8408
8408
|
height: A,
|
|
8409
8409
|
$: L
|
|
8410
|
-
} =
|
|
8410
|
+
} = i2(V);
|
|
8411
8411
|
let i = (L ? s1(C.width) : C.width) / M, e = (L ? s1(C.height) : C.height) / A;
|
|
8412
8412
|
return (!i || !Number.isFinite(i)) && (i = 1), (!e || !Number.isFinite(e)) && (e = 1), {
|
|
8413
8413
|
x: i,
|
|
@@ -8415,7 +8415,7 @@ function e1(H) {
|
|
|
8415
8415
|
};
|
|
8416
8416
|
}
|
|
8417
8417
|
const f5 = /* @__PURE__ */ J(0);
|
|
8418
|
-
function
|
|
8418
|
+
function d2(H) {
|
|
8419
8419
|
const V = Q(H);
|
|
8420
8420
|
return !W1() || !V.visualViewport ? f5 : {
|
|
8421
8421
|
x: V.visualViewport.offsetLeft,
|
|
@@ -8427,10 +8427,10 @@ function h5(H, V, C) {
|
|
|
8427
8427
|
}
|
|
8428
8428
|
function Z1(H, V, C, M) {
|
|
8429
8429
|
V === void 0 && (V = !1), C === void 0 && (C = !1);
|
|
8430
|
-
const A = H.getBoundingClientRect(), L =
|
|
8430
|
+
const A = H.getBoundingClientRect(), L = e2(H);
|
|
8431
8431
|
let i = J(1);
|
|
8432
8432
|
V && (M ? Y(M) && (i = e1(M)) : i = e1(H));
|
|
8433
|
-
const e = h5(L, C, M) ?
|
|
8433
|
+
const e = h5(L, C, M) ? d2(L) : J(0);
|
|
8434
8434
|
let t = (A.left + e.x) / i.x, d = (A.top + e.y) / i.y, l = A.width / i.x, o = A.height / i.y;
|
|
8435
8435
|
if (L) {
|
|
8436
8436
|
const a = Q(L), r = M && Y(M) ? Q(M) : M;
|
|
@@ -8475,12 +8475,12 @@ function g5(H) {
|
|
|
8475
8475
|
function k5(H) {
|
|
8476
8476
|
return Array.from(H.getClientRects());
|
|
8477
8477
|
}
|
|
8478
|
-
function
|
|
8478
|
+
function t2(H) {
|
|
8479
8479
|
return Z1(H1(H)).left + g1(H).scrollLeft;
|
|
8480
8480
|
}
|
|
8481
8481
|
function B5(H) {
|
|
8482
8482
|
const V = H1(H), C = g1(H), M = H.ownerDocument.body, A = i1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = i1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
|
|
8483
|
-
let i = -C.scrollLeft +
|
|
8483
|
+
let i = -C.scrollLeft + t2(H);
|
|
8484
8484
|
const e = -C.scrollTop;
|
|
8485
8485
|
return U(M).direction === "rtl" && (i += i1(V.clientWidth, M.clientWidth) - A), {
|
|
8486
8486
|
width: A,
|
|
@@ -8522,7 +8522,7 @@ function K1(H, V, C) {
|
|
|
8522
8522
|
else if (Y(V))
|
|
8523
8523
|
M = w5(V, C);
|
|
8524
8524
|
else {
|
|
8525
|
-
const A =
|
|
8525
|
+
const A = d2(H);
|
|
8526
8526
|
M = {
|
|
8527
8527
|
...V,
|
|
8528
8528
|
x: V.x - A.x,
|
|
@@ -8531,9 +8531,9 @@ function K1(H, V, C) {
|
|
|
8531
8531
|
}
|
|
8532
8532
|
return O1(M);
|
|
8533
8533
|
}
|
|
8534
|
-
function
|
|
8534
|
+
function m2(H, V) {
|
|
8535
8535
|
const C = t1(H);
|
|
8536
|
-
return C === V || !Y(C) || h1(C) ? !1 : U(C).position === "fixed" ||
|
|
8536
|
+
return C === V || !Y(C) || h1(C) ? !1 : U(C).position === "fixed" || m2(C, V);
|
|
8537
8537
|
}
|
|
8538
8538
|
function y5(H, V) {
|
|
8539
8539
|
const C = V.get(H);
|
|
@@ -8544,7 +8544,7 @@ function y5(H, V) {
|
|
|
8544
8544
|
let i = L ? t1(H) : H;
|
|
8545
8545
|
for (; Y(i) && !h1(i); ) {
|
|
8546
8546
|
const e = U(i), t = E1(i);
|
|
8547
|
-
!t && e.position === "fixed" && (A = null), (L ? !t && !A : !t && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !t &&
|
|
8547
|
+
!t && e.position === "fixed" && (A = null), (L ? !t && !A : !t && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !t && m2(H, i)) ? M = M.filter((l) => l !== i) : A = e, i = t1(i);
|
|
8548
8548
|
}
|
|
8549
8549
|
return V.set(H, M), M;
|
|
8550
8550
|
}
|
|
@@ -8567,7 +8567,7 @@ function P5(H) {
|
|
|
8567
8567
|
};
|
|
8568
8568
|
}
|
|
8569
8569
|
function v5(H) {
|
|
8570
|
-
return
|
|
8570
|
+
return i2(H);
|
|
8571
8571
|
}
|
|
8572
8572
|
function T5(H, V, C) {
|
|
8573
8573
|
const M = q(V), A = H1(V), L = C === "fixed", i = Z1(H, !0, L, V);
|
|
@@ -8581,7 +8581,7 @@ function T5(H, V, C) {
|
|
|
8581
8581
|
const d = Z1(V, !0, L, V);
|
|
8582
8582
|
t.x = d.x + V.clientLeft, t.y = d.y + V.clientTop;
|
|
8583
8583
|
} else
|
|
8584
|
-
A && (t.x =
|
|
8584
|
+
A && (t.x = t2(A));
|
|
8585
8585
|
return {
|
|
8586
8586
|
x: i.left + e.scrollLeft - t.x,
|
|
8587
8587
|
y: i.top + e.scrollTop - t.y,
|
|
@@ -8592,7 +8592,7 @@ function T5(H, V, C) {
|
|
|
8592
8592
|
function q1(H, V) {
|
|
8593
8593
|
return !q(H) || U(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
|
|
8594
8594
|
}
|
|
8595
|
-
function
|
|
8595
|
+
function l2(H, V) {
|
|
8596
8596
|
const C = Q(H);
|
|
8597
8597
|
if (!q(H))
|
|
8598
8598
|
return C;
|
|
@@ -8607,7 +8607,7 @@ const F5 = async function(H) {
|
|
|
8607
8607
|
floating: C,
|
|
8608
8608
|
strategy: M
|
|
8609
8609
|
} = H;
|
|
8610
|
-
const A = this.getOffsetParent ||
|
|
8610
|
+
const A = this.getOffsetParent || l2, L = this.getDimensions;
|
|
8611
8611
|
return {
|
|
8612
8612
|
reference: T5(V, await A(C), M),
|
|
8613
8613
|
floating: {
|
|
@@ -8624,7 +8624,7 @@ const x5 = {
|
|
|
8624
8624
|
convertOffsetParentRelativeRectToViewportRelativeRect: g5,
|
|
8625
8625
|
getDocumentElement: H1,
|
|
8626
8626
|
getClippingRect: P5,
|
|
8627
|
-
getOffsetParent:
|
|
8627
|
+
getOffsetParent: l2,
|
|
8628
8628
|
getElementRects: F5,
|
|
8629
8629
|
getClientRects: k5,
|
|
8630
8630
|
getDimensions: v5,
|
|
@@ -8644,7 +8644,7 @@ const x5 = {
|
|
|
8644
8644
|
platform: L
|
|
8645
8645
|
});
|
|
8646
8646
|
};
|
|
8647
|
-
var
|
|
8647
|
+
var o2 = /* @__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))(o2 || {}), X = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(X || {}), n2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(n2 || {});
|
|
8648
8648
|
async function _5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e) {
|
|
8649
8649
|
!H || !V || D5(H, V, {
|
|
8650
8650
|
placement: M,
|
|
@@ -8687,7 +8687,7 @@ async function _5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
|
|
|
8687
8687
|
const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
8688
8688
|
__name: "RTooltip",
|
|
8689
8689
|
props: {
|
|
8690
|
-
placement: { default:
|
|
8690
|
+
placement: { default: o2.Top },
|
|
8691
8691
|
text: { default: "" },
|
|
8692
8692
|
dark: { type: Boolean, default: !0 },
|
|
8693
8693
|
light: { type: Boolean, default: !1 },
|
|
@@ -8704,7 +8704,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8704
8704
|
resizable: { type: Boolean, default: !0 },
|
|
8705
8705
|
triggerClass: { default: "" },
|
|
8706
8706
|
tooltipClass: { default: "" },
|
|
8707
|
-
type: { default:
|
|
8707
|
+
type: { default: n2.Tooltip }
|
|
8708
8708
|
},
|
|
8709
8709
|
emits: ["show", "hide"],
|
|
8710
8710
|
setup(H, { emit: V }) {
|
|
@@ -8745,13 +8745,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8745
8745
|
C.resizable && Z();
|
|
8746
8746
|
}, document.addEventListener("scroll", () => {
|
|
8747
8747
|
Z();
|
|
8748
|
-
}),
|
|
8748
|
+
}), S2(
|
|
8749
8749
|
() => {
|
|
8750
8750
|
C.disabled || (C.shown && C.triggers.includes(X.Manual) ? e() : !C.shown && C.triggers.includes(X.Manual) && t());
|
|
8751
8751
|
},
|
|
8752
8752
|
{ flush: "post" }
|
|
8753
8753
|
// this is important to avoid infinite loop & for fire on mounted
|
|
8754
|
-
),
|
|
8754
|
+
), X1(() => {
|
|
8755
8755
|
C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", Z()), A5(
|
|
8756
8756
|
A,
|
|
8757
8757
|
() => {
|
|
@@ -8878,10 +8878,10 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8878
8878
|
}));
|
|
8879
8879
|
}), l = g(() => {
|
|
8880
8880
|
const S = C.modelValue;
|
|
8881
|
-
return t(S)
|
|
8881
|
+
return !t(S) && !Array.isArray(S) && S.constructor !== Object ? {
|
|
8882
8882
|
value: S,
|
|
8883
8883
|
label: String(S)
|
|
8884
|
-
};
|
|
8884
|
+
} : S;
|
|
8885
8885
|
}), o = N(), a = N(), r = N();
|
|
8886
8886
|
function Z(S, h) {
|
|
8887
8887
|
var b, x, s;
|
|
@@ -8948,11 +8948,11 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8948
8948
|
}
|
|
8949
8949
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8950
8950
|
}
|
|
8951
|
-
return
|
|
8951
|
+
return X1(() => {
|
|
8952
8952
|
I();
|
|
8953
|
-
}),
|
|
8953
|
+
}), $(L, (S) => {
|
|
8954
8954
|
M("update:modelValue", S);
|
|
8955
|
-
}),
|
|
8955
|
+
}), $(() => l.value, (S) => {
|
|
8956
8956
|
I();
|
|
8957
8957
|
}), (S, h) => (m(), n("div", {
|
|
8958
8958
|
ref_key: "wrapper",
|
|
@@ -9011,14 +9011,14 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9011
9011
|
closable: "",
|
|
9012
9012
|
label: s.label,
|
|
9013
9013
|
variant: "primary",
|
|
9014
|
-
"onClick:close": (
|
|
9014
|
+
"onClick:close": (G) => P(G, s, x)
|
|
9015
9015
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
9016
9016
|
])
|
|
9017
9017
|
])) : c("", !0),
|
|
9018
9018
|
C.multiple && L.length ? (m(), n("div", G5, [
|
|
9019
9019
|
(m(!0), n(V1, null, A1(L, (s, E) => (m(), n("p", { key: E }, w(`${s.label},`), 1))), 128))
|
|
9020
9020
|
])) : c("", !0),
|
|
9021
|
-
|
|
9021
|
+
Y1(u("input", {
|
|
9022
9022
|
id: C.id,
|
|
9023
9023
|
ref_key: "input",
|
|
9024
9024
|
ref: a,
|
|
@@ -9128,7 +9128,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9128
9128
|
]))
|
|
9129
9129
|
], 512));
|
|
9130
9130
|
}
|
|
9131
|
-
}), C3 = ["id", "for"],
|
|
9131
|
+
}), C3 = ["id", "for"], r2 = /* @__PURE__ */ T({
|
|
9132
9132
|
__name: "RLabel",
|
|
9133
9133
|
props: {
|
|
9134
9134
|
id: { default: "" },
|
|
@@ -9183,23 +9183,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9183
9183
|
height: C.height
|
|
9184
9184
|
}));
|
|
9185
9185
|
function i(e) {
|
|
9186
|
-
C.outsideClick && e.target === e.currentTarget &&
|
|
9186
|
+
C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
|
|
9187
9187
|
}
|
|
9188
|
-
return
|
|
9189
|
-
() => {
|
|
9190
|
-
C.modelValue && !C.allowBodyScroll ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
|
|
9191
|
-
},
|
|
9192
|
-
{ flush: "post" }
|
|
9193
|
-
), O2(() => {
|
|
9188
|
+
return O2(() => {
|
|
9194
9189
|
!C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
|
|
9195
9190
|
}), window.addEventListener("keydown", (e) => {
|
|
9196
|
-
e.key === "Escape" && C.modelValue && C.outsideClick &&
|
|
9197
|
-
}),
|
|
9198
|
-
e || (document.body.style.overflow = "auto");
|
|
9199
|
-
}, {
|
|
9200
|
-
deep: !0,
|
|
9201
|
-
immediate: !0
|
|
9202
|
-
}), (e, t) => J1((m(), n("div", {
|
|
9191
|
+
e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
|
|
9192
|
+
}), (e, t) => Y1((m(), n("div", {
|
|
9203
9193
|
class: p(["r-modal-overlay", e.overlayClass]),
|
|
9204
9194
|
onClick: d1(i, ["stop"])
|
|
9205
9195
|
}, [
|
|
@@ -9282,7 +9272,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9282
9272
|
emits: ["action", "update:modelValue"],
|
|
9283
9273
|
setup(H, { emit: V }) {
|
|
9284
9274
|
const C = H, M = V;
|
|
9285
|
-
|
|
9275
|
+
$(
|
|
9286
9276
|
() => C.modelValue,
|
|
9287
9277
|
() => {
|
|
9288
9278
|
C.timeout > 0 && C.modelValue && setTimeout(() => {
|
|
@@ -9364,7 +9354,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9364
9354
|
function i(e) {
|
|
9365
9355
|
C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
|
|
9366
9356
|
}
|
|
9367
|
-
return
|
|
9357
|
+
return $(
|
|
9368
9358
|
() => C.modelValue,
|
|
9369
9359
|
(e) => {
|
|
9370
9360
|
A.checked = e;
|
|
@@ -9497,7 +9487,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9497
9487
|
"r-tabs--tile": C.tile,
|
|
9498
9488
|
"r-tabs--scrollable": C.scrollable
|
|
9499
9489
|
}));
|
|
9500
|
-
|
|
9490
|
+
$(
|
|
9501
9491
|
() => A.value,
|
|
9502
9492
|
() => {
|
|
9503
9493
|
M("update:modelValue", A.value);
|
|
@@ -9557,7 +9547,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9557
9547
|
function L(i) {
|
|
9558
9548
|
M("update:modelValue", i.target.value);
|
|
9559
9549
|
}
|
|
9560
|
-
return
|
|
9550
|
+
return $(
|
|
9561
9551
|
() => C.modelValue,
|
|
9562
9552
|
(i) => {
|
|
9563
9553
|
A.value = i;
|
|
@@ -9566,7 +9556,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9566
9556
|
immediate: !0
|
|
9567
9557
|
}
|
|
9568
9558
|
), (i, e) => (m(), n("div", f3, [
|
|
9569
|
-
C.label ? (m(), _(
|
|
9559
|
+
C.label ? (m(), _(r2, {
|
|
9570
9560
|
key: 0,
|
|
9571
9561
|
id: `${C.id}-label`,
|
|
9572
9562
|
class: "r-textarea__label",
|
|
@@ -9694,7 +9684,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9694
9684
|
var O;
|
|
9695
9685
|
(O = A.value) == null || O.focus();
|
|
9696
9686
|
}
|
|
9697
|
-
return
|
|
9687
|
+
return $(
|
|
9698
9688
|
() => C.modelValue,
|
|
9699
9689
|
(O) => {
|
|
9700
9690
|
L.value = O;
|
|
@@ -9702,7 +9692,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9702
9692
|
{
|
|
9703
9693
|
immediate: !0
|
|
9704
9694
|
}
|
|
9705
|
-
),
|
|
9695
|
+
), $(
|
|
9706
9696
|
() => L.value,
|
|
9707
9697
|
(O) => {
|
|
9708
9698
|
M(
|
|
@@ -9711,7 +9701,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9711
9701
|
);
|
|
9712
9702
|
}
|
|
9713
9703
|
), (O, W) => (m(), n("div", b3, [
|
|
9714
|
-
C.label ? (m(), _(
|
|
9704
|
+
C.label ? (m(), _(r2, {
|
|
9715
9705
|
key: 0,
|
|
9716
9706
|
id: `${C.id}-label`,
|
|
9717
9707
|
class: "r-textfield__label",
|
|
@@ -9853,7 +9843,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9853
9843
|
start: C.page * C.perPage - C.perPage,
|
|
9854
9844
|
end: C.page * C.perPage
|
|
9855
9845
|
}));
|
|
9856
|
-
|
|
9846
|
+
$(() => i.value, () => {
|
|
9857
9847
|
M("update:info", i.value);
|
|
9858
9848
|
});
|
|
9859
9849
|
function e(d) {
|
|
@@ -10052,7 +10042,7 @@ export {
|
|
|
10052
10042
|
D as RIcon,
|
|
10053
10043
|
p0 as RItem,
|
|
10054
10044
|
O0 as RItemGroup,
|
|
10055
|
-
|
|
10045
|
+
r2 as RLabel,
|
|
10056
10046
|
l0 as RModal,
|
|
10057
10047
|
s0 as RPagination,
|
|
10058
10048
|
c0 as RProgressbar,
|