@rocketui/vue 0.2.31 → 0.2.33
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.d.ts +53 -11
- package/dist/rocket-ui-vue.js +136 -97
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +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 Z, createElementVNode as S, unref as V1, reactive as a1, Fragment as i1, renderList as l1, normalizeClass as c, renderSlot as O, toDisplayString as
|
|
1
|
+
import { defineComponent as F, openBlock as m, createElementBlock as Z, 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 g, createCommentVNode as f, mergeProps as j1, createBlock as _, watch as $, 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",
|
|
@@ -7316,7 +7316,7 @@ const g2 = {
|
|
|
7316
7316
|
}, null, 8, B2)
|
|
7317
7317
|
], 8, k2));
|
|
7318
7318
|
}
|
|
7319
|
-
}),
|
|
7319
|
+
}), b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title" }, P2 = { class: "r-accordion__icon" }, v2 = { class: "r-accordion__content" }, V0 = /* @__PURE__ */ F({
|
|
7320
7320
|
__name: "RAccordion",
|
|
7321
7321
|
props: {
|
|
7322
7322
|
accordions: {}
|
|
@@ -7346,8 +7346,8 @@ const g2 = {
|
|
|
7346
7346
|
class: "r-accordion__header",
|
|
7347
7347
|
onClick: (d) => M(e)
|
|
7348
7348
|
}, [
|
|
7349
|
-
O(A.$slots, "title", {}, () => [
|
|
7350
|
-
S("div", y2,
|
|
7349
|
+
O(A.$slots, "title", { accordion: i }, () => [
|
|
7350
|
+
S("div", y2, w(i.title), 1)
|
|
7351
7351
|
]),
|
|
7352
7352
|
S("div", P2, [
|
|
7353
7353
|
O(A.$slots, "icon", {
|
|
@@ -7356,13 +7356,13 @@ const g2 = {
|
|
|
7356
7356
|
K(D, { name: "mdiChevronUp" })
|
|
7357
7357
|
])
|
|
7358
7358
|
])
|
|
7359
|
-
], 8,
|
|
7359
|
+
], 8, w2),
|
|
7360
7360
|
S("div", v2, [
|
|
7361
7361
|
O(A.$slots, "content", {}, () => [
|
|
7362
|
-
S("span", null,
|
|
7362
|
+
S("span", null, w(i.content), 1)
|
|
7363
7363
|
])
|
|
7364
7364
|
])
|
|
7365
|
-
], 10,
|
|
7365
|
+
], 10, b2))), 128));
|
|
7366
7366
|
}
|
|
7367
7367
|
}), T2 = { class: "r-alert__icon" }, F2 = { class: "r-alert__content" }, R2 = { class: "r-alert__content__title" }, x2 = {
|
|
7368
7368
|
key: 0,
|
|
@@ -7409,8 +7409,8 @@ const g2 = {
|
|
|
7409
7409
|
]),
|
|
7410
7410
|
S("div", F2, [
|
|
7411
7411
|
O(e.$slots, "content", {}, () => [
|
|
7412
|
-
S("p", R2,
|
|
7413
|
-
C.description ? (m(), Z("p", x2,
|
|
7412
|
+
S("p", R2, w(C.title), 1),
|
|
7413
|
+
C.description ? (m(), Z("p", x2, w(C.description), 1)) : f("", !0)
|
|
7414
7414
|
])
|
|
7415
7415
|
]),
|
|
7416
7416
|
C.closable ? (m(), Z("div", D2, [
|
|
@@ -7454,7 +7454,7 @@ const g2 = {
|
|
|
7454
7454
|
V.type === "text" ? (m(), Z("p", {
|
|
7455
7455
|
key: 0,
|
|
7456
7456
|
class: c(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
|
|
7457
|
-
},
|
|
7457
|
+
}, w(L(V.text)), 3)) : (m(), Z("img", {
|
|
7458
7458
|
key: 1,
|
|
7459
7459
|
alt: V.alt,
|
|
7460
7460
|
class: c(["r-avatar__image", {
|
|
@@ -7548,7 +7548,9 @@ const g2 = {
|
|
|
7548
7548
|
style: A.value,
|
|
7549
7549
|
onClick: i[0] || (i[0] = (e) => L.$emit("click"))
|
|
7550
7550
|
}), [
|
|
7551
|
-
O(L.$slots, "prepend", {
|
|
7551
|
+
O(L.$slots, "prepend", {
|
|
7552
|
+
onlyIcon: V.icon
|
|
7553
|
+
}, () => [
|
|
7552
7554
|
V.prependIcon ? (m(), _(D, {
|
|
7553
7555
|
key: 0,
|
|
7554
7556
|
class: c(["r-button__prepend-icon", {
|
|
@@ -7558,8 +7560,10 @@ const g2 = {
|
|
|
7558
7560
|
size: M.value
|
|
7559
7561
|
}, null, 8, ["class", "name", "size"])) : f("", !0)
|
|
7560
7562
|
]),
|
|
7561
|
-
O(L.$slots, "default"),
|
|
7562
|
-
O(L.$slots, "append", {
|
|
7563
|
+
O(L.$slots, "default", { disabled: L.disabled }),
|
|
7564
|
+
O(L.$slots, "append", {
|
|
7565
|
+
onlyIcon: V.icon
|
|
7566
|
+
}, () => [
|
|
7563
7567
|
!V.icon && V.appendIcon ? (m(), _(D, {
|
|
7564
7568
|
key: 0,
|
|
7565
7569
|
class: "r-button__append-icon",
|
|
@@ -7655,9 +7659,9 @@ const g2 = {
|
|
|
7655
7659
|
class: "r-checkbox-texts__label",
|
|
7656
7660
|
"data-disabled": C.disabled,
|
|
7657
7661
|
for: C.id
|
|
7658
|
-
},
|
|
7662
|
+
}, w(C.label), 9, z2),
|
|
7659
7663
|
C.hideDetails ? f("", !0) : (m(), Z("div", K2, [
|
|
7660
|
-
C.errorMsg ? (m(), Z("p", q2,
|
|
7664
|
+
C.errorMsg ? (m(), Z("p", q2, w(C.errorMsg), 1)) : (m(), Z("p", j2, w(C.hint), 1))
|
|
7661
7665
|
]))
|
|
7662
7666
|
])
|
|
7663
7667
|
]));
|
|
@@ -7697,7 +7701,9 @@ const g2 = {
|
|
|
7697
7701
|
class: "r-chip__content",
|
|
7698
7702
|
onClick: t[0] || (t[0] = (l) => L(l))
|
|
7699
7703
|
}, [
|
|
7700
|
-
O(d.$slots, "prepend", {
|
|
7704
|
+
O(d.$slots, "prepend", {
|
|
7705
|
+
disabled: C.disabled
|
|
7706
|
+
}, () => [
|
|
7701
7707
|
C.prependIcon ? (m(), _(D, {
|
|
7702
7708
|
key: 0,
|
|
7703
7709
|
"aria-disabled": C.disabled,
|
|
@@ -7708,9 +7714,11 @@ const g2 = {
|
|
|
7708
7714
|
]),
|
|
7709
7715
|
S("span", {
|
|
7710
7716
|
class: c(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
|
|
7711
|
-
},
|
|
7717
|
+
}, w(C.label), 3)
|
|
7712
7718
|
]),
|
|
7713
|
-
O(d.$slots, "append", {
|
|
7719
|
+
O(d.$slots, "append", {
|
|
7720
|
+
disabled: C.disabled
|
|
7721
|
+
}, () => [
|
|
7714
7722
|
e.value ? (m(), _(D, {
|
|
7715
7723
|
key: 0,
|
|
7716
7724
|
"aria-disabled": C.disabled,
|
|
@@ -7835,11 +7843,11 @@ function V2(H) {
|
|
|
7835
7843
|
function D1(H) {
|
|
7836
7844
|
return H === "y" ? "height" : "width";
|
|
7837
7845
|
}
|
|
7838
|
-
function
|
|
7846
|
+
function b1(H) {
|
|
7839
7847
|
return ["top", "bottom"].includes(L1(H)) ? "y" : "x";
|
|
7840
7848
|
}
|
|
7841
7849
|
function E1(H) {
|
|
7842
|
-
return V2(
|
|
7850
|
+
return V2(b1(H));
|
|
7843
7851
|
}
|
|
7844
7852
|
function e5(H, V, C) {
|
|
7845
7853
|
C === void 0 && (C = !1);
|
|
@@ -7906,7 +7914,7 @@ function G1(H, V, C) {
|
|
|
7906
7914
|
reference: M,
|
|
7907
7915
|
floating: A
|
|
7908
7916
|
} = H;
|
|
7909
|
-
const L =
|
|
7917
|
+
const L = b1(V), i = E1(V), e = D1(i), d = L1(V), t = L === "y", l = M.x + M.width / 2 - A.width / 2, o = M.y + M.height / 2 - A.height / 2, r = M[e] / 2 - A[e] / 2;
|
|
7910
7918
|
let a;
|
|
7911
7919
|
switch (d) {
|
|
7912
7920
|
case "top":
|
|
@@ -8080,7 +8088,7 @@ const n5 = (H) => ({
|
|
|
8080
8088
|
}, a = E1(A), u = D1(a), k = await i.getDimensions(t), B = a === "y", y = B ? "top" : "left", P = B ? "bottom" : "right", v = B ? "clientHeight" : "clientWidth", T = L.reference[u] + L.reference[a] - r[a] - L.floating[u], R = r[a] - L.reference[a], Q = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
|
|
8081
8089
|
let I = Q ? Q[v] : 0;
|
|
8082
8090
|
(!I || !await (i.isElement == null ? void 0 : i.isElement(Q))) && (I = e.floating[v] || L.floating[u]);
|
|
8083
|
-
const p = T / 2 - R / 2, N = I / 2 - k[u] / 2 - 1, n = n1(o[y], N), h = n1(o[P], N),
|
|
8091
|
+
const p = T / 2 - R / 2, N = I / 2 - k[u] / 2 - 1, n = n1(o[y], N), h = n1(o[P], N), b = n, E = I - k[u] - h, s = I / 2 - k[u] / 2 + p, x = T1(b, s, E), U = !d.arrow && u1(A) != null && s != x && L.reference[u] / 2 - (s < b ? n : h) - k[u] / 2 < 0, j = U ? s < b ? s - b : s - E : 0;
|
|
8084
8092
|
return {
|
|
8085
8093
|
[a]: r[a] + j,
|
|
8086
8094
|
data: {
|
|
@@ -8122,19 +8130,19 @@ const n5 = (H) => ({
|
|
|
8122
8130
|
const R = [e, ...T], Q = await B1(V, B), I = [];
|
|
8123
8131
|
let p = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8124
8132
|
if (l && I.push(Q[y]), o) {
|
|
8125
|
-
const
|
|
8126
|
-
I.push(Q[
|
|
8133
|
+
const b = e5(A, i, v);
|
|
8134
|
+
I.push(Q[b[0]], Q[b[1]]);
|
|
8127
8135
|
}
|
|
8128
8136
|
if (p = [...p, {
|
|
8129
8137
|
placement: A,
|
|
8130
8138
|
overflows: I
|
|
8131
|
-
}], !I.every((
|
|
8139
|
+
}], !I.every((b) => b <= 0)) {
|
|
8132
8140
|
var N, n;
|
|
8133
|
-
const
|
|
8141
|
+
const b = (((N = L.flip) == null ? void 0 : N.index) || 0) + 1, E = R[b];
|
|
8134
8142
|
if (E)
|
|
8135
8143
|
return {
|
|
8136
8144
|
data: {
|
|
8137
|
-
index:
|
|
8145
|
+
index: b,
|
|
8138
8146
|
overflows: p
|
|
8139
8147
|
},
|
|
8140
8148
|
reset: {
|
|
@@ -8223,7 +8231,7 @@ async function Z5(H, V) {
|
|
|
8223
8231
|
placement: C,
|
|
8224
8232
|
platform: M,
|
|
8225
8233
|
elements: A
|
|
8226
|
-
} = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d =
|
|
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, l = L && d ? -1 : 1, o = d1(V, H);
|
|
8227
8235
|
let {
|
|
8228
8236
|
mainAxis: r,
|
|
8229
8237
|
crossAxis: a,
|
|
@@ -8290,7 +8298,7 @@ const u5 = function(H) {
|
|
|
8290
8298
|
} = d1(H, V), t = {
|
|
8291
8299
|
x: C,
|
|
8292
8300
|
y: M
|
|
8293
|
-
}, l = await B1(V, d), o =
|
|
8301
|
+
}, l = await B1(V, d), o = b1(L1(A)), r = V2(o);
|
|
8294
8302
|
let a = t[r], u = t[o];
|
|
8295
8303
|
if (L) {
|
|
8296
8304
|
const B = r === "y" ? "top" : "left", y = r === "y" ? "bottom" : "right", P = a + l[B], v = a - l[y];
|
|
@@ -8356,7 +8364,7 @@ function _1(H) {
|
|
|
8356
8364
|
}
|
|
8357
8365
|
function c5(H) {
|
|
8358
8366
|
let V = e1(H);
|
|
8359
|
-
for (; q(V) && !
|
|
8367
|
+
for (; q(V) && !w1(V); ) {
|
|
8360
8368
|
if (_1(V))
|
|
8361
8369
|
return V;
|
|
8362
8370
|
V = e1(V);
|
|
@@ -8366,7 +8374,7 @@ function c5(H) {
|
|
|
8366
8374
|
function W1() {
|
|
8367
8375
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
8368
8376
|
}
|
|
8369
|
-
function
|
|
8377
|
+
function w1(H) {
|
|
8370
8378
|
return ["html", "body", "#document"].includes(C1(H));
|
|
8371
8379
|
}
|
|
8372
8380
|
function z(H) {
|
|
@@ -8395,7 +8403,7 @@ function e1(H) {
|
|
|
8395
8403
|
}
|
|
8396
8404
|
function A2(H) {
|
|
8397
8405
|
const V = e1(H);
|
|
8398
|
-
return
|
|
8406
|
+
return w1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : q(V) && S1(V) ? V : A2(V);
|
|
8399
8407
|
}
|
|
8400
8408
|
function R1(H, V, C) {
|
|
8401
8409
|
var M;
|
|
@@ -8550,29 +8558,29 @@ function K1(H, V, C) {
|
|
|
8550
8558
|
}
|
|
8551
8559
|
function m2(H, V) {
|
|
8552
8560
|
const C = e1(H);
|
|
8553
|
-
return C === V || !Y(C) ||
|
|
8561
|
+
return C === V || !Y(C) || w1(C) ? !1 : z(C).position === "fixed" || m2(C, V);
|
|
8554
8562
|
}
|
|
8555
|
-
function
|
|
8563
|
+
function b5(H, V) {
|
|
8556
8564
|
const C = V.get(H);
|
|
8557
8565
|
if (C)
|
|
8558
8566
|
return C;
|
|
8559
8567
|
let M = R1(H, [], !1).filter((e) => Y(e) && C1(e) !== "body"), A = null;
|
|
8560
8568
|
const L = z(H).position === "fixed";
|
|
8561
8569
|
let i = L ? e1(H) : H;
|
|
8562
|
-
for (; Y(i) && !
|
|
8570
|
+
for (; Y(i) && !w1(i); ) {
|
|
8563
8571
|
const e = z(i), d = _1(i);
|
|
8564
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((l) => l !== i) : A = e, i = e1(i);
|
|
8565
8573
|
}
|
|
8566
8574
|
return V.set(H, M), M;
|
|
8567
8575
|
}
|
|
8568
|
-
function
|
|
8576
|
+
function w5(H) {
|
|
8569
8577
|
let {
|
|
8570
8578
|
element: V,
|
|
8571
8579
|
boundary: C,
|
|
8572
8580
|
rootBoundary: M,
|
|
8573
8581
|
strategy: A
|
|
8574
8582
|
} = H;
|
|
8575
|
-
const i = [...C === "clippingAncestors" ?
|
|
8583
|
+
const i = [...C === "clippingAncestors" ? b5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, l) => {
|
|
8576
8584
|
const o = K1(V, l, A);
|
|
8577
8585
|
return t.top = M1(o.top, t.top), t.right = n1(o.right, t.right), t.bottom = n1(o.bottom, t.bottom), t.left = M1(o.left, t.left), t;
|
|
8578
8586
|
}, K1(V, e, A));
|
|
@@ -8640,7 +8648,7 @@ function T5(H) {
|
|
|
8640
8648
|
const F5 = {
|
|
8641
8649
|
convertOffsetParentRelativeRectToViewportRelativeRect: f5,
|
|
8642
8650
|
getDocumentElement: H1,
|
|
8643
|
-
getClippingRect:
|
|
8651
|
+
getClippingRect: w5,
|
|
8644
8652
|
getOffsetParent: l2,
|
|
8645
8653
|
getElementRects: v5,
|
|
8646
8654
|
getClientRects: h5,
|
|
@@ -8822,7 +8830,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8822
8830
|
"r-tooltip__content--dark": C.dark,
|
|
8823
8831
|
"r-tooltip__content--light": C.light
|
|
8824
8832
|
}])
|
|
8825
|
-
},
|
|
8833
|
+
}, w(C.text), 3)) : f("", !0),
|
|
8826
8834
|
C.text ? (m(), Z("div", {
|
|
8827
8835
|
key: 1,
|
|
8828
8836
|
id: "arrow",
|
|
@@ -8899,7 +8907,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8899
8907
|
label: String(n)
|
|
8900
8908
|
};
|
|
8901
8909
|
}), o = W(), r = W(), a = W();
|
|
8902
|
-
function u(n, h,
|
|
8910
|
+
function u(n, h, b) {
|
|
8903
8911
|
var E, s, x;
|
|
8904
8912
|
if (n.stopPropagation(), !C.disabled) {
|
|
8905
8913
|
if (i.value = !0, h && h(), i.value) {
|
|
@@ -8910,17 +8918,17 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8910
8918
|
}
|
|
8911
8919
|
}
|
|
8912
8920
|
function k() {
|
|
8913
|
-
var n, h,
|
|
8914
|
-
i.value = !1, (n = o.value) == null || n.classList.remove("r-dropdown--active"), (h = o.value) == null || h.blur(), (
|
|
8921
|
+
var n, h, b;
|
|
8922
|
+
i.value = !1, (n = o.value) == null || n.classList.remove("r-dropdown--active"), (h = o.value) == null || h.blur(), (b = r.value) == null || b.blur();
|
|
8915
8923
|
}
|
|
8916
|
-
function B(n, h,
|
|
8924
|
+
function B(n, h, b, E) {
|
|
8917
8925
|
var s;
|
|
8918
8926
|
if (n.stopPropagation(), E(), !h.disabled) {
|
|
8919
8927
|
if (C.multiple) {
|
|
8920
8928
|
L.value.find((x) => x.value === h.value) ? L.value.splice(L.value.indexOf(h), 1) : L.value.push(h), e.value = "", C.searchable && ((s = r.value) == null || s.focus());
|
|
8921
8929
|
return;
|
|
8922
8930
|
}
|
|
8923
|
-
y(n, h), C.closeOnSelect && (
|
|
8931
|
+
y(n, h), C.closeOnSelect && (b(), k());
|
|
8924
8932
|
}
|
|
8925
8933
|
}
|
|
8926
8934
|
function y(n, h) {
|
|
@@ -8930,10 +8938,10 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8930
8938
|
}
|
|
8931
8939
|
e.value = h.label, A.value = h, u(n), M("update:modelValue", h);
|
|
8932
8940
|
}
|
|
8933
|
-
function P(n, h,
|
|
8941
|
+
function P(n, h, b) {
|
|
8934
8942
|
if (n instanceof KeyboardEvent && n.key !== "Backspace" || e.value !== "")
|
|
8935
8943
|
return;
|
|
8936
|
-
n.stopPropagation(),
|
|
8944
|
+
n.stopPropagation(), b();
|
|
8937
8945
|
const E = L.value.findIndex((s) => s.value === h.value);
|
|
8938
8946
|
L.value.splice(E, 1);
|
|
8939
8947
|
}
|
|
@@ -8942,14 +8950,14 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8942
8950
|
if (!C.multiple)
|
|
8943
8951
|
return;
|
|
8944
8952
|
n.stopPropagation(), h();
|
|
8945
|
-
const
|
|
8946
|
-
if (
|
|
8953
|
+
const b = e.value;
|
|
8954
|
+
if (b === "")
|
|
8947
8955
|
return;
|
|
8948
|
-
t.value.find((x) => x.label ===
|
|
8956
|
+
t.value.find((x) => x.label === b) || (L.value.push({ value: b, label: b }), e.value = "", (s = r.value) == null || s.focus());
|
|
8949
8957
|
}
|
|
8950
8958
|
function T(n) {
|
|
8951
8959
|
var h;
|
|
8952
|
-
return !n || (n == null ? void 0 : n.value) === void 0 || (n == null ? void 0 : n.value) === null ? !1 : C.multiple ? L.value.find((
|
|
8960
|
+
return !n || (n == null ? void 0 : n.value) === void 0 || (n == null ? void 0 : n.value) === null ? !1 : C.multiple ? L.value.find((b) => (b == null ? void 0 : b.value) === (n == null ? void 0 : n.value)) : ((h = A.value) == null ? void 0 : h.value) === (n == null ? void 0 : n.value);
|
|
8953
8961
|
}
|
|
8954
8962
|
const R = g(() => !C.searchable || A.value.label === e.value ? t.value : t.value.filter((h) => h.label.toLowerCase().includes(e.value.toLowerCase()))), Q = g(() => !C.searchable);
|
|
8955
8963
|
function I() {
|
|
@@ -8988,7 +8996,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
8988
8996
|
type: "dropdown",
|
|
8989
8997
|
onHide: k
|
|
8990
8998
|
}, {
|
|
8991
|
-
default: f1(({ activators:
|
|
8999
|
+
default: f1(({ activators: b, updatePosition: E }) => [
|
|
8992
9000
|
S("div", {
|
|
8993
9001
|
ref_key: "dropdown",
|
|
8994
9002
|
ref: o,
|
|
@@ -9000,7 +9008,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9000
9008
|
group: e.value !== "" || L.value.length
|
|
9001
9009
|
}]),
|
|
9002
9010
|
role: "select",
|
|
9003
|
-
onClick: (s) => u(s,
|
|
9011
|
+
onClick: (s) => u(s, b.click)
|
|
9004
9012
|
}, [
|
|
9005
9013
|
C.prependIcon || n.$slots.prepend ? (m(), Z("div", {
|
|
9006
9014
|
key: 0,
|
|
@@ -9009,7 +9017,12 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9009
9017
|
"r-dropdown__prepend-icon--error": C.errorMsg
|
|
9010
9018
|
}])
|
|
9011
9019
|
}, [
|
|
9012
|
-
O(n.$slots, "prepend", {
|
|
9020
|
+
O(n.$slots, "prepend", {
|
|
9021
|
+
active: i.value,
|
|
9022
|
+
disabled: C.disabled,
|
|
9023
|
+
error: C.errorMsg.length,
|
|
9024
|
+
loading: C.loading
|
|
9025
|
+
}, () => [
|
|
9013
9026
|
C.prependIcon ? (m(), _(D, {
|
|
9014
9027
|
key: 0,
|
|
9015
9028
|
name: C.prependIcon
|
|
@@ -9031,7 +9044,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9031
9044
|
"no-wrap": "",
|
|
9032
9045
|
variant: "primary",
|
|
9033
9046
|
"onClick:close": (U) => P(U, s, E)
|
|
9034
|
-
}, null, 8, ["clearable", "label", "onClick:close"])) : (m(), Z("p", I5,
|
|
9047
|
+
}, null, 8, ["clearable", "label", "onClick:close"])) : (m(), Z("p", I5, w(`${s.label}, `), 1))
|
|
9035
9048
|
])), 128)),
|
|
9036
9049
|
Y1(S("input", {
|
|
9037
9050
|
id: C.id,
|
|
@@ -9076,7 +9089,12 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9076
9089
|
"r-dropdown__append-icon--error": C.errorMsg
|
|
9077
9090
|
}])
|
|
9078
9091
|
}, [
|
|
9079
|
-
O(n.$slots, "append", {
|
|
9092
|
+
O(n.$slots, "append", {
|
|
9093
|
+
active: i.value,
|
|
9094
|
+
disabled: C.disabled,
|
|
9095
|
+
error: C.errorMsg.length,
|
|
9096
|
+
loading: C.loading
|
|
9097
|
+
}, () => [
|
|
9080
9098
|
C.appendIcon ? (m(), _(D, {
|
|
9081
9099
|
key: 0,
|
|
9082
9100
|
name: C.appendIcon
|
|
@@ -9085,7 +9103,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9085
9103
|
], 2)) : f("", !0)
|
|
9086
9104
|
], 10, W5)
|
|
9087
9105
|
]),
|
|
9088
|
-
content: f1(({ hide:
|
|
9106
|
+
content: f1(({ hide: b, updatePosition: E }) => [
|
|
9089
9107
|
S("ul", {
|
|
9090
9108
|
class: c(["r-dropdown-options", {
|
|
9091
9109
|
"r-dropdown-options--active": i.value,
|
|
@@ -9099,13 +9117,15 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9099
9117
|
"r-dropdown-options__option--active": T(s),
|
|
9100
9118
|
"r-dropdown-options__option--disabled": s.disabled
|
|
9101
9119
|
}]),
|
|
9102
|
-
onClick: o1((x) => B(x, s,
|
|
9120
|
+
onClick: o1((x) => B(x, s, b, E), ["prevent"])
|
|
9103
9121
|
}, [
|
|
9104
9122
|
O(n.$slots, "option", {
|
|
9123
|
+
disabled: s.disabled,
|
|
9105
9124
|
isSelected: T(s)
|
|
9106
9125
|
}, () => [
|
|
9107
9126
|
S("div", U5, [
|
|
9108
9127
|
O(n.$slots, "option-prepend", {
|
|
9128
|
+
disabled: s.disabled,
|
|
9109
9129
|
isSelected: T(s)
|
|
9110
9130
|
}, () => [
|
|
9111
9131
|
s.prependIcon ? (m(), _(D, {
|
|
@@ -9120,9 +9140,10 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9120
9140
|
class: c(["r-dropdown-options__option__label", {
|
|
9121
9141
|
"r-dropdown-options__option__label--active": T(s)
|
|
9122
9142
|
}])
|
|
9123
|
-
},
|
|
9143
|
+
}, w(s.label), 3)
|
|
9124
9144
|
]),
|
|
9125
9145
|
O(n.$slots, "option-append", {
|
|
9146
|
+
disabled: s.disabled,
|
|
9126
9147
|
isSelected: T(s)
|
|
9127
9148
|
}, () => [
|
|
9128
9149
|
T(s) && !C.hideOptionCheckIcon ? (m(), _(D, {
|
|
@@ -9137,7 +9158,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9137
9158
|
], 10, $5))), 128)),
|
|
9138
9159
|
R.value.length === 0 ? (m(), Z("li", z5, [
|
|
9139
9160
|
O(n.$slots, "not-options", {}, () => [
|
|
9140
|
-
Z1(
|
|
9161
|
+
Z1(w(C.multiple ? "No options hit to enter for create" : C.noOptionsText), 1)
|
|
9141
9162
|
])
|
|
9142
9163
|
])) : f("", !0)
|
|
9143
9164
|
], 2)
|
|
@@ -9145,8 +9166,8 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9145
9166
|
_: 3
|
|
9146
9167
|
}, 8, ["tooltip-class"]),
|
|
9147
9168
|
n.$props.hideDetails ? f("", !0) : (m(), Z("div", K5, [
|
|
9148
|
-
C.errorMsg ? (m(), Z("div", q5,
|
|
9149
|
-
C.hint ? (m(), Z("div", j5,
|
|
9169
|
+
C.errorMsg ? (m(), Z("div", q5, w(C.errorMsg), 1)) : f("", !0),
|
|
9170
|
+
C.hint ? (m(), Z("div", j5, w(C.hint), 1)) : f("", !0)
|
|
9150
9171
|
]))
|
|
9151
9172
|
], 512));
|
|
9152
9173
|
}
|
|
@@ -9165,7 +9186,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9165
9186
|
for: V.for
|
|
9166
9187
|
}, [
|
|
9167
9188
|
O(C.$slots, "default", {}, () => [
|
|
9168
|
-
Z1(
|
|
9189
|
+
Z1(w(V.text), 1)
|
|
9169
9190
|
])
|
|
9170
9191
|
], 8, Y5));
|
|
9171
9192
|
}
|
|
@@ -9229,8 +9250,8 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9229
9250
|
name: C.icon
|
|
9230
9251
|
}, null, 8, ["name"])
|
|
9231
9252
|
])) : f("", !0),
|
|
9232
|
-
C.title ? (m(), Z("div", L3,
|
|
9233
|
-
C.description ? (m(), Z("div", M3,
|
|
9253
|
+
C.title ? (m(), Z("div", L3, w(C.title), 1)) : f("", !0),
|
|
9254
|
+
C.description ? (m(), Z("div", M3, w(C.description), 1)) : f("", !0)
|
|
9234
9255
|
]),
|
|
9235
9256
|
S("div", A3, [
|
|
9236
9257
|
O(e.$slots, "default")
|
|
@@ -9263,7 +9284,9 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9263
9284
|
class: c(["r-sidebar", [C.class]]),
|
|
9264
9285
|
"data-open": C.modelValue
|
|
9265
9286
|
}, [
|
|
9266
|
-
O(A.$slots, "default"
|
|
9287
|
+
O(A.$slots, "default", {
|
|
9288
|
+
open: C.modelValue
|
|
9289
|
+
})
|
|
9267
9290
|
], 10, d3),
|
|
9268
9291
|
C.showTrigger ? (m(), Z("div", {
|
|
9269
9292
|
key: 0,
|
|
@@ -9271,7 +9294,9 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9271
9294
|
"data-open": C.modelValue,
|
|
9272
9295
|
onClick: L[0] || (L[0] = (i) => M("update:modelValue", !C.modelValue))
|
|
9273
9296
|
}, [
|
|
9274
|
-
O(A.$slots, "trigger", {
|
|
9297
|
+
O(A.$slots, "trigger", {
|
|
9298
|
+
open: C.modelValue
|
|
9299
|
+
}, () => [
|
|
9275
9300
|
Z1(" > ")
|
|
9276
9301
|
])
|
|
9277
9302
|
], 10, t3)) : f("", !0)
|
|
@@ -9327,7 +9352,7 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9327
9352
|
]),
|
|
9328
9353
|
S("div", m3, [
|
|
9329
9354
|
O(i.$slots, "default", {}, () => [
|
|
9330
|
-
Z1(
|
|
9355
|
+
Z1(w(C.text), 1)
|
|
9331
9356
|
])
|
|
9332
9357
|
]),
|
|
9333
9358
|
C.closable ? (m(), Z("div", {
|
|
@@ -9417,9 +9442,9 @@ const D5 = ["aria-disabled"], E5 = ["innerHTML"], _5 = /* @__PURE__ */ F({
|
|
|
9417
9442
|
id: `${C.id}-label`,
|
|
9418
9443
|
class: "r-switch-texts__label",
|
|
9419
9444
|
for: C.id
|
|
9420
|
-
},
|
|
9445
|
+
}, w(C.label), 9, n3),
|
|
9421
9446
|
C.hideDetails ? f("", !0) : (m(), Z("div", r3, [
|
|
9422
|
-
C.errorMsg ? (m(), Z("p", a3,
|
|
9447
|
+
C.errorMsg ? (m(), Z("p", a3, w(C.errorMsg), 1)) : (m(), Z("p", Z3, w(C.hint), 1))
|
|
9423
9448
|
]))
|
|
9424
9449
|
], 2)
|
|
9425
9450
|
], 2));
|
|
@@ -9462,7 +9487,8 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9462
9487
|
onClick: d[0] || (d[0] = o1((t) => i(C.id), ["stop"]))
|
|
9463
9488
|
}, [
|
|
9464
9489
|
O(e.$slots, "prepend", {
|
|
9465
|
-
active: C.modelValue === C.id
|
|
9490
|
+
active: C.modelValue === C.id,
|
|
9491
|
+
disabled: C.disabled
|
|
9466
9492
|
}, () => [
|
|
9467
9493
|
C.variant !== V1(m1).TEXT && C.prependIcon ? (m(), _(D, {
|
|
9468
9494
|
key: 0,
|
|
@@ -9472,12 +9498,15 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9472
9498
|
}, null, 8, ["name"])) : f("", !0)
|
|
9473
9499
|
]),
|
|
9474
9500
|
C.variant !== V1(m1).ICON ? (m(), Z("span", S3, [
|
|
9475
|
-
O(e.$slots, "default", {
|
|
9476
|
-
|
|
9501
|
+
O(e.$slots, "default", {
|
|
9502
|
+
label: C.label
|
|
9503
|
+
}, () => [
|
|
9504
|
+
Z1(w(C.label), 1)
|
|
9477
9505
|
])
|
|
9478
9506
|
])) : f("", !0),
|
|
9479
9507
|
O(e.$slots, "append", {
|
|
9480
|
-
active: C.modelValue === C.id
|
|
9508
|
+
active: C.modelValue === C.id,
|
|
9509
|
+
disabled: C.disabled
|
|
9481
9510
|
}, () => [
|
|
9482
9511
|
C.variant !== V1(m1).TEXT && C.appendIcon ? (m(), _(D, {
|
|
9483
9512
|
key: 0,
|
|
@@ -9594,14 +9623,14 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9594
9623
|
onInput: L
|
|
9595
9624
|
}), null, 16, O3),
|
|
9596
9625
|
C.hideDetails ? f("", !0) : (m(), Z("div", p3, [
|
|
9597
|
-
C.errorMsg ? (m(), Z("p", f3,
|
|
9626
|
+
C.errorMsg ? (m(), Z("p", f3, w(C.errorMsg), 1)) : (m(), Z("p", h3, w(C.hint), 1))
|
|
9598
9627
|
]))
|
|
9599
9628
|
]));
|
|
9600
9629
|
}
|
|
9601
|
-
}), g3 = { class: "r-textfield__wrapper" }, k3 = { class: "input-wrapper" }, B3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"],
|
|
9630
|
+
}), g3 = { class: "r-textfield__wrapper" }, k3 = { class: "input-wrapper" }, B3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], b3 = {
|
|
9602
9631
|
key: 0,
|
|
9603
9632
|
class: "r-textfield__details"
|
|
9604
|
-
},
|
|
9633
|
+
}, w3 = {
|
|
9605
9634
|
key: 0,
|
|
9606
9635
|
class: "r-textfield__error"
|
|
9607
9636
|
}, y3 = {
|
|
@@ -9732,13 +9761,18 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9732
9761
|
S("div", {
|
|
9733
9762
|
class: c(a.value)
|
|
9734
9763
|
}, [
|
|
9735
|
-
O(p.$slots, "prepend"
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9764
|
+
O(p.$slots, "prepend", {
|
|
9765
|
+
disabled: C.disabled,
|
|
9766
|
+
error: o.value,
|
|
9767
|
+
loading: C.loading
|
|
9768
|
+
}, () => [
|
|
9769
|
+
B.value ? (m(), _(D, {
|
|
9770
|
+
key: 0,
|
|
9771
|
+
class: c(u.value),
|
|
9772
|
+
name: B.value,
|
|
9773
|
+
size: 20
|
|
9774
|
+
}, null, 8, ["class", "name"])) : f("", !0)
|
|
9775
|
+
]),
|
|
9742
9776
|
S("input", {
|
|
9743
9777
|
id: C.id,
|
|
9744
9778
|
ref_key: "inputRef",
|
|
@@ -9755,18 +9789,23 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9755
9789
|
onFocus: P,
|
|
9756
9790
|
onInput: T
|
|
9757
9791
|
}, null, 40, B3),
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9792
|
+
O(p.$slots, "append", {
|
|
9793
|
+
disabled: C.disabled,
|
|
9794
|
+
error: o.value,
|
|
9795
|
+
loading: C.loading
|
|
9796
|
+
}, () => [
|
|
9797
|
+
y.value && !p.$slots.append || o.value ? (m(), _(D, {
|
|
9798
|
+
key: 0,
|
|
9799
|
+
class: c(k.value),
|
|
9800
|
+
name: `${y.value}`,
|
|
9801
|
+
size: 20,
|
|
9802
|
+
onClick: R
|
|
9803
|
+
}, null, 8, ["class", "name"])) : f("", !0)
|
|
9804
|
+
])
|
|
9766
9805
|
], 2),
|
|
9767
|
-
C.hideDetails ? f("", !0) : (m(), Z("div",
|
|
9768
|
-
C.errorMsg ? (m(), Z("p",
|
|
9769
|
-
!C.errorMsg && C.hint ? (m(), Z("p", y3,
|
|
9806
|
+
C.hideDetails ? f("", !0) : (m(), Z("div", b3, [
|
|
9807
|
+
C.errorMsg ? (m(), Z("p", w3, w(C.errorMsg), 1)) : f("", !0),
|
|
9808
|
+
!C.errorMsg && C.hint ? (m(), Z("p", y3, w(C.hint), 1)) : f("", !0)
|
|
9770
9809
|
]))
|
|
9771
9810
|
])
|
|
9772
9811
|
]));
|
|
@@ -9800,7 +9839,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9800
9839
|
name: L.icon
|
|
9801
9840
|
}, null, 8, ["name"])) : f("", !0)
|
|
9802
9841
|
]),
|
|
9803
|
-
L.onlyIcon ? f("", !0) : (m(), Z("span", v3,
|
|
9842
|
+
L.onlyIcon ? f("", !0) : (m(), Z("span", v3, w(L.title), 1))
|
|
9804
9843
|
]),
|
|
9805
9844
|
_: 2
|
|
9806
9845
|
}, 1032, ["to"]),
|
|
@@ -9876,7 +9915,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9876
9915
|
}, [
|
|
9877
9916
|
S("div", T3, [
|
|
9878
9917
|
S("div", F3, [
|
|
9879
|
-
S("span", null,
|
|
9918
|
+
S("span", null, w(C.itemsPerPageText), 1),
|
|
9880
9919
|
K(X5, {
|
|
9881
9920
|
modelValue: A.value,
|
|
9882
9921
|
"onUpdate:modelValue": [
|
|
@@ -9889,7 +9928,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = { key: 0 }, s3 =
|
|
|
9889
9928
|
options: C.perPageOptions
|
|
9890
9929
|
}, null, 8, ["modelValue", "options"])
|
|
9891
9930
|
]),
|
|
9892
|
-
S("span", R3,
|
|
9931
|
+
S("span", R3, w(C.infoText), 1),
|
|
9893
9932
|
S("button", {
|
|
9894
9933
|
class: "r-pagination__paginator__first",
|
|
9895
9934
|
disabled: C.page === 1,
|