@rocketui/vue 0.2.1 → 0.2.3
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 +58 -58
- 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
|
|
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 u2, onScopeDispose as S2, ref as N, watchEffect as X1, onMounted as Y1, Teleport as s2, withCtx as r1, withDirectives as J1, 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",
|
|
@@ -7529,7 +7529,7 @@ const k2 = {
|
|
|
7529
7529
|
})[V.size || "medium"]), A = g(() => ({
|
|
7530
7530
|
height: V.height ? `${V.height}px` : ""
|
|
7531
7531
|
}));
|
|
7532
|
-
return (L, i) => (m(), n("button",
|
|
7532
|
+
return (L, i) => (m(), n("button", j1(L.$attrs, {
|
|
7533
7533
|
class: C.value,
|
|
7534
7534
|
disabled: L.disabled,
|
|
7535
7535
|
style: A.value,
|
|
@@ -7709,32 +7709,32 @@ const k2 = {
|
|
|
7709
7709
|
function C5(H) {
|
|
7710
7710
|
return u2() ? (S2(H), !0) : !1;
|
|
7711
7711
|
}
|
|
7712
|
-
function
|
|
7712
|
+
function C2(H) {
|
|
7713
7713
|
return typeof H == "function" ? H() : M1(H);
|
|
7714
7714
|
}
|
|
7715
|
-
const
|
|
7715
|
+
const H2 = 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 H2 && ((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 = C2(H);
|
|
7726
7726
|
return (V = C == null ? void 0 : C.$el) != null ? V : C;
|
|
7727
7727
|
}
|
|
7728
|
-
const
|
|
7728
|
+
const V2 = H2 ? 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 = V2) : [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
7736
|
}, e = (l, o, a, r) => (l.addEventListener(o, a, r), () => l.removeEventListener(o, a, r)), t = $(
|
|
7737
|
-
() => [o1(V),
|
|
7737
|
+
() => [o1(V), C2(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 = V2, 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 L2(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 L2(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 M2(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 = M2(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,7 +8057,7 @@ const a5 = (H) => ({
|
|
|
8057
8057
|
} = l1(H, V) || {};
|
|
8058
8058
|
if (d == null)
|
|
8059
8059
|
return {};
|
|
8060
|
-
const o =
|
|
8060
|
+
const o = M2(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));
|
|
@@ -8129,7 +8129,7 @@ const a5 = (H) => ({
|
|
|
8129
8129
|
switch (r) {
|
|
8130
8130
|
case "bestFit": {
|
|
8131
8131
|
var h;
|
|
8132
|
-
const E = (h = O.map((G) => [G.placement, G.overflows.filter((j) => j > 0).reduce((j,
|
|
8132
|
+
const E = (h = O.map((G) => [G.placement, G.overflows.filter((j) => j > 0).reduce((j, Z2) => j + Z2, 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 = L2(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 A2(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 = (A2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
|
|
8311
8311
|
}
|
|
8312
|
-
function
|
|
8312
|
+
function A2(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 i2(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 : i2(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 = i2(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 e2(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 i2(H) {
|
|
|
8396
8396
|
$: e
|
|
8397
8397
|
};
|
|
8398
8398
|
}
|
|
8399
|
-
function
|
|
8399
|
+
function d2(H) {
|
|
8400
8400
|
return Y(H) ? H : H.contextElement;
|
|
8401
8401
|
}
|
|
8402
8402
|
function e1(H) {
|
|
8403
|
-
const V =
|
|
8403
|
+
const V = d2(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
|
+
} = e2(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 t2(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 = d2(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) ? t2(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 m2(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 + m2(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 = t2(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 l2(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" || l2(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 && l2(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 e2(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 = m2(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 o2(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 || o2, 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: o2,
|
|
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 n2 = /* @__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))(n2 || {}), X = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(X || {}), r2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(r2 || {});
|
|
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: n2.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: r2.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
|
+
}), X1(
|
|
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
|
+
), Y1(() => {
|
|
8755
8755
|
C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", Z()), A5(
|
|
8756
8756
|
A,
|
|
8757
8757
|
() => {
|
|
@@ -8948,7 +8948,7 @@ 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 Y1(() => {
|
|
8952
8952
|
I();
|
|
8953
8953
|
}), $(L, (S) => {
|
|
8954
8954
|
M("update:modelValue", S);
|
|
@@ -9018,7 +9018,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
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
|
+
J1(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"], a2 = /* @__PURE__ */ T({
|
|
9132
9132
|
__name: "RLabel",
|
|
9133
9133
|
props: {
|
|
9134
9134
|
id: { default: "" },
|
|
@@ -9185,7 +9185,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9185
9185
|
function i(e) {
|
|
9186
9186
|
C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
|
|
9187
9187
|
}
|
|
9188
|
-
return
|
|
9188
|
+
return X1(
|
|
9189
9189
|
() => {
|
|
9190
9190
|
C.modelValue && !C.allowBodyScroll ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
|
|
9191
9191
|
},
|
|
@@ -9194,7 +9194,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9194
9194
|
!C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
|
|
9195
9195
|
}), window.addEventListener("keydown", (e) => {
|
|
9196
9196
|
e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
|
|
9197
|
-
}), (e, t) =>
|
|
9197
|
+
}), (e, t) => J1((m(), n("div", {
|
|
9198
9198
|
class: p(["r-modal-overlay", e.overlayClass]),
|
|
9199
9199
|
onClick: d1(i, ["stop"])
|
|
9200
9200
|
}, [
|
|
@@ -9561,24 +9561,24 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9561
9561
|
immediate: !0
|
|
9562
9562
|
}
|
|
9563
9563
|
), (i, e) => (m(), n("div", f3, [
|
|
9564
|
-
C.label ? (m(), _(
|
|
9564
|
+
C.label ? (m(), _(a2, {
|
|
9565
9565
|
key: 0,
|
|
9566
9566
|
id: `${C.id}-label`,
|
|
9567
9567
|
class: "r-textarea__label",
|
|
9568
9568
|
for: "textarea",
|
|
9569
9569
|
text: C.label
|
|
9570
9570
|
}, null, 8, ["id", "text"])) : c("", !0),
|
|
9571
|
-
u("textarea", {
|
|
9571
|
+
u("textarea", j1(i.$attrs, {
|
|
9572
9572
|
id: C.id,
|
|
9573
|
-
class:
|
|
9573
|
+
class: ["r-textarea", {
|
|
9574
9574
|
"r-textarea--error": C.errorMsg,
|
|
9575
9575
|
"r-textarea--disabled": C.disabled
|
|
9576
|
-
}]
|
|
9576
|
+
}],
|
|
9577
9577
|
disabled: C.disabled,
|
|
9578
9578
|
placeholder: C.placeholder,
|
|
9579
9579
|
value: A.value,
|
|
9580
9580
|
onInput: L
|
|
9581
|
-
}, null,
|
|
9581
|
+
}), null, 16, h3),
|
|
9582
9582
|
C.hideDetails ? c("", !0) : (m(), n("div", g3, [
|
|
9583
9583
|
C.errorMsg ? (m(), n("p", k3, w(C.errorMsg), 1)) : (m(), n("p", B3, w(C.hint), 1))
|
|
9584
9584
|
]))
|
|
@@ -9706,7 +9706,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9706
9706
|
);
|
|
9707
9707
|
}
|
|
9708
9708
|
), (O, W) => (m(), n("div", b3, [
|
|
9709
|
-
C.label ? (m(), _(
|
|
9709
|
+
C.label ? (m(), _(a2, {
|
|
9710
9710
|
key: 0,
|
|
9711
9711
|
id: `${C.id}-label`,
|
|
9712
9712
|
class: "r-textfield__label",
|
|
@@ -10047,7 +10047,7 @@ export {
|
|
|
10047
10047
|
D as RIcon,
|
|
10048
10048
|
p0 as RItem,
|
|
10049
10049
|
O0 as RItemGroup,
|
|
10050
|
-
|
|
10050
|
+
a2 as RLabel,
|
|
10051
10051
|
l0 as RModal,
|
|
10052
10052
|
s0 as RPagination,
|
|
10053
10053
|
c0 as RProgressbar,
|