@rocketui/vue 0.2.9 → 0.2.10
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 +5 -2
- package/dist/rocket-ui-vue.js +193 -193
- 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
|
|
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 f, renderSlot as h, toDisplayString as w, createVNode as K, computed as g, createCommentVNode as O, 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",
|
|
@@ -7337,7 +7337,7 @@ const k2 = {
|
|
|
7337
7337
|
}
|
|
7338
7338
|
return (A, L) => (m(!0), n(V1, null, A1(C, (i, e) => (m(), n("div", {
|
|
7339
7339
|
key: e,
|
|
7340
|
-
class:
|
|
7340
|
+
class: f(["r-accordion", {
|
|
7341
7341
|
"r-accordion--disabled": i.disabled
|
|
7342
7342
|
}]),
|
|
7343
7343
|
"data-state": i.open ? "opened" : "closed"
|
|
@@ -7346,7 +7346,7 @@ const k2 = {
|
|
|
7346
7346
|
class: "r-accordion__header",
|
|
7347
7347
|
onClick: (t) => M(e)
|
|
7348
7348
|
}, [
|
|
7349
|
-
|
|
7349
|
+
h(A.$slots, "title", {}, () => [
|
|
7350
7350
|
u("div", P2, w(i.title), 1)
|
|
7351
7351
|
]),
|
|
7352
7352
|
u("div", v2, [
|
|
@@ -7354,7 +7354,7 @@ const k2 = {
|
|
|
7354
7354
|
])
|
|
7355
7355
|
], 8, y2),
|
|
7356
7356
|
u("div", T2, [
|
|
7357
|
-
|
|
7357
|
+
h(A.$slots, "content", {}, () => [
|
|
7358
7358
|
u("span", null, w(i.content), 1)
|
|
7359
7359
|
])
|
|
7360
7360
|
])
|
|
@@ -7393,10 +7393,10 @@ const k2 = {
|
|
|
7393
7393
|
M("close");
|
|
7394
7394
|
}
|
|
7395
7395
|
return (e, t) => (m(), n("div", {
|
|
7396
|
-
class:
|
|
7396
|
+
class: f(A.value)
|
|
7397
7397
|
}, [
|
|
7398
7398
|
u("div", F2, [
|
|
7399
|
-
|
|
7399
|
+
h(e.$slots, "alert-icon", {}, () => [
|
|
7400
7400
|
K(D, {
|
|
7401
7401
|
name: L.value,
|
|
7402
7402
|
size: 24
|
|
@@ -7404,13 +7404,13 @@ const k2 = {
|
|
|
7404
7404
|
])
|
|
7405
7405
|
]),
|
|
7406
7406
|
u("div", R2, [
|
|
7407
|
-
|
|
7407
|
+
h(e.$slots, "content", {}, () => [
|
|
7408
7408
|
u("p", x2, w(C.title), 1),
|
|
7409
|
-
C.description ? (m(), n("p", D2, w(C.description), 1)) :
|
|
7409
|
+
C.description ? (m(), n("p", D2, w(C.description), 1)) : O("", !0)
|
|
7410
7410
|
])
|
|
7411
7411
|
]),
|
|
7412
7412
|
C.closable ? (m(), n("div", _2, [
|
|
7413
|
-
|
|
7413
|
+
h(e.$slots, "custom-close", {}, () => [
|
|
7414
7414
|
K(D, {
|
|
7415
7415
|
class: "r-alert__close__button",
|
|
7416
7416
|
name: "mdiClose",
|
|
@@ -7418,7 +7418,7 @@ const k2 = {
|
|
|
7418
7418
|
onClick: i
|
|
7419
7419
|
})
|
|
7420
7420
|
])
|
|
7421
|
-
])) :
|
|
7421
|
+
])) : O("", !0)
|
|
7422
7422
|
], 2));
|
|
7423
7423
|
}
|
|
7424
7424
|
}), I1 = "data:image/svg+xml,%3csvg%20width='27'%20height='28'%20viewBox='0%200%2027%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4993%2014C17.1827%2014%2020.166%2011.0167%2020.166%207.33334C20.166%203.65%2017.1827%200.666672%2013.4993%200.666672C9.81602%200.666672%206.83268%203.65%206.83268%207.33334C6.83268%2011.0167%209.81602%2014%2013.4993%2014ZM13.4993%2017.3333C9.04935%2017.3333%200.166016%2019.5667%200.166016%2024V25.6667C0.166016%2026.5833%200.916016%2027.3333%201.83268%2027.3333H25.166C26.0827%2027.3333%2026.8327%2026.5833%2026.8327%2025.6667V24C26.8327%2019.5667%2017.9493%2017.3333%2013.4993%2017.3333Z'%20fill='%234C5BE1'/%3e%3c/svg%3e", E2 = { class: "r-avatar__wrapper" }, W2 = ["alt", "src"], e0 = /* @__PURE__ */ T({
|
|
@@ -7442,15 +7442,15 @@ const k2 = {
|
|
|
7442
7442
|
}
|
|
7443
7443
|
return (i, e) => (m(), n("div", E2, [
|
|
7444
7444
|
u("div", {
|
|
7445
|
-
class:
|
|
7445
|
+
class: f(C.value)
|
|
7446
7446
|
}, [
|
|
7447
7447
|
V.type === "text" ? (m(), n("p", {
|
|
7448
7448
|
key: 0,
|
|
7449
|
-
class:
|
|
7449
|
+
class: f(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
|
|
7450
7450
|
}, w(L(V.text)), 3)) : (m(), n("img", {
|
|
7451
7451
|
key: 1,
|
|
7452
7452
|
alt: V.alt,
|
|
7453
|
-
class:
|
|
7453
|
+
class: f(["r-avatar__image", {
|
|
7454
7454
|
[`r-avatar__image--${V.size}`]: !0,
|
|
7455
7455
|
"r-avatar__image--anonymous": M.value
|
|
7456
7456
|
}]),
|
|
@@ -7459,10 +7459,10 @@ const k2 = {
|
|
|
7459
7459
|
], 2),
|
|
7460
7460
|
V.online ? (m(), n("span", {
|
|
7461
7461
|
key: 0,
|
|
7462
|
-
class:
|
|
7462
|
+
class: f(["r-avatar__online", {
|
|
7463
7463
|
[`r-avatar__online--${V.size}`]: !0
|
|
7464
7464
|
}])
|
|
7465
|
-
}, null, 2)) :
|
|
7465
|
+
}, null, 2)) : O("", !0)
|
|
7466
7466
|
]));
|
|
7467
7467
|
}
|
|
7468
7468
|
}), N2 = { class: "r-badge-wrapper group" }, d0 = /* @__PURE__ */ T({
|
|
@@ -7490,12 +7490,12 @@ const k2 = {
|
|
|
7490
7490
|
}));
|
|
7491
7491
|
return (M, A) => (m(), n("div", N2, [
|
|
7492
7492
|
u("span", {
|
|
7493
|
-
class:
|
|
7493
|
+
class: f([{ "animate-ping-2": V.animation }, C.value])
|
|
7494
7494
|
}, null, 2),
|
|
7495
7495
|
u("span", {
|
|
7496
|
-
class:
|
|
7496
|
+
class: f(C.value)
|
|
7497
7497
|
}, null, 2),
|
|
7498
|
-
|
|
7498
|
+
h(M.$slots, "default")
|
|
7499
7499
|
]));
|
|
7500
7500
|
}
|
|
7501
7501
|
}), I2 = ["disabled"], t0 = /* @__PURE__ */ T({
|
|
@@ -7535,24 +7535,24 @@ const k2 = {
|
|
|
7535
7535
|
style: A.value,
|
|
7536
7536
|
onClick: i[0] || (i[0] = (e) => L.$emit("click"))
|
|
7537
7537
|
}), [
|
|
7538
|
-
|
|
7538
|
+
h(L.$slots, "prepend", {}, () => [
|
|
7539
7539
|
V.prependIcon ? (m(), _(D, {
|
|
7540
7540
|
key: 0,
|
|
7541
|
-
class:
|
|
7541
|
+
class: f(["r-button__prepend-icon", {
|
|
7542
7542
|
"r-button__prepend-icon--only": V.icon
|
|
7543
7543
|
}]),
|
|
7544
7544
|
name: V.prependIcon,
|
|
7545
7545
|
size: M.value
|
|
7546
|
-
}, null, 8, ["class", "name", "size"])) :
|
|
7546
|
+
}, null, 8, ["class", "name", "size"])) : O("", !0)
|
|
7547
7547
|
]),
|
|
7548
|
-
|
|
7549
|
-
|
|
7548
|
+
h(L.$slots, "default"),
|
|
7549
|
+
h(L.$slots, "append", {}, () => [
|
|
7550
7550
|
!V.icon && V.appendIcon ? (m(), _(D, {
|
|
7551
7551
|
key: 0,
|
|
7552
7552
|
class: "r-button__append-icon",
|
|
7553
7553
|
name: V.appendIcon,
|
|
7554
7554
|
size: M.value
|
|
7555
|
-
}, null, 8, ["name", "size"])) :
|
|
7555
|
+
}, null, 8, ["name", "size"])) : O("", !0)
|
|
7556
7556
|
])
|
|
7557
7557
|
], 16, I2));
|
|
7558
7558
|
}
|
|
@@ -7628,7 +7628,7 @@ const k2 = {
|
|
|
7628
7628
|
onChange: t
|
|
7629
7629
|
}, null, 40, $2),
|
|
7630
7630
|
u("div", {
|
|
7631
|
-
class:
|
|
7631
|
+
class: f(e.value),
|
|
7632
7632
|
"data-disabled": C.disabled
|
|
7633
7633
|
}, [
|
|
7634
7634
|
K(D, {
|
|
@@ -7643,7 +7643,7 @@ const k2 = {
|
|
|
7643
7643
|
"data-disabled": C.disabled,
|
|
7644
7644
|
for: C.id
|
|
7645
7645
|
}, w(C.label), 9, K2),
|
|
7646
|
-
C.hideDetails ?
|
|
7646
|
+
C.hideDetails ? O("", !0) : (m(), n("div", q2, [
|
|
7647
7647
|
C.errorMsg ? (m(), n("p", j2, w(C.errorMsg), 1)) : (m(), n("p", X2, w(C.hint), 1))
|
|
7648
7648
|
]))
|
|
7649
7649
|
])
|
|
@@ -7676,24 +7676,24 @@ const k2 = {
|
|
|
7676
7676
|
C.disabled || !C.closable || (e.stopPropagation(), M("click:close", e));
|
|
7677
7677
|
}
|
|
7678
7678
|
return (e, t) => (m(), n("div", {
|
|
7679
|
-
class:
|
|
7679
|
+
class: f(A.value)
|
|
7680
7680
|
}, [
|
|
7681
7681
|
u("div", {
|
|
7682
7682
|
class: "r-chip__content",
|
|
7683
7683
|
onClick: t[0] || (t[0] = (d) => L(d))
|
|
7684
7684
|
}, [
|
|
7685
|
-
|
|
7685
|
+
h(e.$slots, "prepend", {}, () => [
|
|
7686
7686
|
C.prependIcon ? (m(), _(D, {
|
|
7687
7687
|
key: 0,
|
|
7688
7688
|
"aria-disabled": C.disabled,
|
|
7689
7689
|
class: "r-chip__content__prepend-icon",
|
|
7690
7690
|
name: C.prependIcon,
|
|
7691
7691
|
size: 12
|
|
7692
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7692
|
+
}, null, 8, ["aria-disabled", "name"])) : O("", !0)
|
|
7693
7693
|
]),
|
|
7694
7694
|
u("span", Y2, w(C.label), 1)
|
|
7695
7695
|
]),
|
|
7696
|
-
|
|
7696
|
+
h(e.$slots, "append", {}, () => [
|
|
7697
7697
|
C.appendIcon ? (m(), _(D, {
|
|
7698
7698
|
key: 0,
|
|
7699
7699
|
"aria-disabled": C.disabled,
|
|
@@ -7701,7 +7701,7 @@ const k2 = {
|
|
|
7701
7701
|
name: C.appendIcon,
|
|
7702
7702
|
size: 12,
|
|
7703
7703
|
onClick: t[1] || (t[1] = (d) => i(d))
|
|
7704
|
-
}, null, 8, ["aria-disabled", "name"])) :
|
|
7704
|
+
}, null, 8, ["aria-disabled", "name"])) : O("", !0)
|
|
7705
7705
|
])
|
|
7706
7706
|
], 2));
|
|
7707
7707
|
}
|
|
@@ -8063,7 +8063,7 @@ const a5 = (H) => ({
|
|
|
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
|
|
8066
|
+
const p = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, S = a1(o[y], W), c = a1(o[P], W), b = S, x = I - B[Z] - c, s = I / 2 - B[Z] / 2 + p, E = v1(b, s, x), G = !t.arrow && u1(A) != null && s != E && L.reference[Z] / 2 - (s < b ? S : c) - 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: {
|
|
@@ -8103,12 +8103,12 @@ const a5 = (H) => ({
|
|
|
8103
8103
|
const y = L1(A), P = L1(e) === e, v = await (t.isRTL == null ? void 0 : t.isRTL(d.floating)), R = a || (P || !B ? [c1(e)] : m5(e));
|
|
8104
8104
|
!a && Z !== "none" && R.push(...o5(e, B, Z, v));
|
|
8105
8105
|
const F = [e, ...R], z = await p1(V, k), I = [];
|
|
8106
|
-
let
|
|
8106
|
+
let p = ((M = L.flip) == null ? void 0 : M.overflows) || [];
|
|
8107
8107
|
if (l && I.push(z[y]), o) {
|
|
8108
8108
|
const b = t5(A, i, v);
|
|
8109
8109
|
I.push(z[b[0]], z[b[1]]);
|
|
8110
8110
|
}
|
|
8111
|
-
if (
|
|
8111
|
+
if (p = [...p, {
|
|
8112
8112
|
placement: A,
|
|
8113
8113
|
overflows: I
|
|
8114
8114
|
}], !I.every((b) => b <= 0)) {
|
|
@@ -8118,18 +8118,18 @@ const a5 = (H) => ({
|
|
|
8118
8118
|
return {
|
|
8119
8119
|
data: {
|
|
8120
8120
|
index: b,
|
|
8121
|
-
overflows:
|
|
8121
|
+
overflows: p
|
|
8122
8122
|
},
|
|
8123
8123
|
reset: {
|
|
8124
8124
|
placement: x
|
|
8125
8125
|
}
|
|
8126
8126
|
};
|
|
8127
|
-
let s = (S =
|
|
8127
|
+
let s = (S = p.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
|
-
var
|
|
8132
|
-
const E = (
|
|
8131
|
+
var c;
|
|
8132
|
+
const E = (c = p.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 : c[0];
|
|
8133
8133
|
E && (s = E);
|
|
8134
8134
|
break;
|
|
8135
8135
|
}
|
|
@@ -8766,13 +8766,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8766
8766
|
ref_key: "trigger",
|
|
8767
8767
|
ref: A,
|
|
8768
8768
|
"aria-disabled": C.disabled,
|
|
8769
|
-
class:
|
|
8769
|
+
class: f(["r-tooltip-trigger", k.triggerClass]),
|
|
8770
8770
|
onClick: l,
|
|
8771
8771
|
onMouseenter: o,
|
|
8772
8772
|
onMouseleave: a,
|
|
8773
8773
|
onMousemove: r
|
|
8774
8774
|
}, [
|
|
8775
|
-
|
|
8775
|
+
h(k.$slots, "default", {
|
|
8776
8776
|
activators: {
|
|
8777
8777
|
click: l,
|
|
8778
8778
|
mouseenter: o,
|
|
@@ -8791,30 +8791,30 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8791
8791
|
id: "tooltip",
|
|
8792
8792
|
ref_key: "tooltip",
|
|
8793
8793
|
ref: L,
|
|
8794
|
-
class:
|
|
8794
|
+
class: f([B.value, k.tooltipClass]),
|
|
8795
8795
|
role: "tooltip"
|
|
8796
8796
|
}, [
|
|
8797
|
-
|
|
8797
|
+
h(k.$slots, "content", {
|
|
8798
8798
|
hide: t,
|
|
8799
8799
|
updatePosition: Z
|
|
8800
8800
|
}, () => [
|
|
8801
8801
|
C.text ? (m(), n("div", {
|
|
8802
8802
|
key: 0,
|
|
8803
|
-
class:
|
|
8803
|
+
class: f(["r-tooltip__content", {
|
|
8804
8804
|
"r-tooltip__content--dark": C.dark,
|
|
8805
8805
|
"r-tooltip__content--light": C.light
|
|
8806
8806
|
}])
|
|
8807
|
-
}, w(C.text), 3)) :
|
|
8807
|
+
}, w(C.text), 3)) : O("", !0),
|
|
8808
8808
|
C.text ? (m(), n("div", {
|
|
8809
8809
|
key: 1,
|
|
8810
8810
|
id: "arrow",
|
|
8811
8811
|
ref_key: "arrowElement",
|
|
8812
8812
|
ref: i,
|
|
8813
|
-
class:
|
|
8813
|
+
class: f(["r-tooltip__arrow", {
|
|
8814
8814
|
"r-tooltip__arrow--dark": C.dark,
|
|
8815
8815
|
"r-tooltip__arrow--light": C.light
|
|
8816
8816
|
}])
|
|
8817
|
-
}, null, 2)) :
|
|
8817
|
+
}, null, 2)) : O("", !0)
|
|
8818
8818
|
])
|
|
8819
8819
|
], 2)
|
|
8820
8820
|
]))
|
|
@@ -8842,7 +8842,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8842
8842
|
__name: "RDropdown",
|
|
8843
8843
|
props: {
|
|
8844
8844
|
options: { default: () => [] },
|
|
8845
|
-
modelValue: { default:
|
|
8845
|
+
modelValue: { default: {} },
|
|
8846
8846
|
placeholder: { default: "" },
|
|
8847
8847
|
taggable: { type: Boolean, default: !1 },
|
|
8848
8848
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -8867,26 +8867,26 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8867
8867
|
setup(H, { emit: V }) {
|
|
8868
8868
|
const C = H, M = V, A = N({}), L = m1([]), i = N(!1), e = N("");
|
|
8869
8869
|
function t(S) {
|
|
8870
|
-
const [
|
|
8871
|
-
return ["label", "value"].includes(
|
|
8870
|
+
const [c] = Object == null ? void 0 : Object.keys(S);
|
|
8871
|
+
return !c || typeof S[c] == "object" || typeof S[c] == "function" || typeof S[c] == "symbol" || typeof S[c] > "u" || !Array.isArray(S[c]) ? !0 : ["label", "value"].includes(c);
|
|
8872
8872
|
}
|
|
8873
8873
|
const d = g(() => {
|
|
8874
8874
|
const S = C.options;
|
|
8875
|
-
return t(S[0]) ? S : S.map((
|
|
8876
|
-
value:
|
|
8877
|
-
label: String(
|
|
8875
|
+
return t(S[0]) ? S : S.map((c) => ({
|
|
8876
|
+
value: c,
|
|
8877
|
+
label: String(c)
|
|
8878
8878
|
}));
|
|
8879
8879
|
}), l = g(() => {
|
|
8880
8880
|
const S = C.modelValue;
|
|
8881
|
-
return
|
|
8881
|
+
return t(S) ? S : {
|
|
8882
8882
|
value: S,
|
|
8883
8883
|
label: String(S)
|
|
8884
|
-
}
|
|
8884
|
+
};
|
|
8885
8885
|
}), o = N(), a = N(), r = N();
|
|
8886
|
-
function Z(S,
|
|
8886
|
+
function Z(S, c) {
|
|
8887
8887
|
var b, x, s;
|
|
8888
8888
|
if (S.stopPropagation(), !C.disabled) {
|
|
8889
|
-
if (i.value = !0,
|
|
8889
|
+
if (i.value = !0, c && c(), i.value) {
|
|
8890
8890
|
(b = o.value) == null || b.classList.add("r-dropdown--active"), (x = o.value) == null || x.focus(), C.searchable && ((s = a.value) == null || s.focus());
|
|
8891
8891
|
return;
|
|
8892
8892
|
}
|
|
@@ -8894,55 +8894,55 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8894
8894
|
}
|
|
8895
8895
|
}
|
|
8896
8896
|
function B() {
|
|
8897
|
-
var S,
|
|
8898
|
-
i.value = !1, (S = o.value) == null || S.classList.remove("r-dropdown--active"), (
|
|
8897
|
+
var S, c, b;
|
|
8898
|
+
i.value = !1, (S = o.value) == null || S.classList.remove("r-dropdown--active"), (c = o.value) == null || c.blur(), (b = a.value) == null || b.blur();
|
|
8899
8899
|
}
|
|
8900
|
-
function k(S,
|
|
8900
|
+
function k(S, c, b, x) {
|
|
8901
8901
|
var s;
|
|
8902
|
-
if (S.stopPropagation(), x(), !
|
|
8902
|
+
if (S.stopPropagation(), x(), !c.disabled) {
|
|
8903
8903
|
if (C.multiple || C.taggable) {
|
|
8904
|
-
L.find((E) => E.value ===
|
|
8904
|
+
L.find((E) => E.value === c.value) ? L.splice(L.indexOf(c), 1) : L.push(c), e.value = "", C.searchable && ((s = a.value) == null || s.focus());
|
|
8905
8905
|
return;
|
|
8906
8906
|
}
|
|
8907
|
-
y(S,
|
|
8907
|
+
y(S, c), C.closeOnSelect && (b(), B());
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
|
-
function y(S,
|
|
8911
|
-
if (A.value.value ===
|
|
8910
|
+
function y(S, c) {
|
|
8911
|
+
if (A.value.value === c.value) {
|
|
8912
8912
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8913
8913
|
return;
|
|
8914
8914
|
}
|
|
8915
|
-
e.value =
|
|
8915
|
+
e.value = c.label, A.value = c, Z(S), M("update:modelValue", c);
|
|
8916
8916
|
}
|
|
8917
|
-
function P(S,
|
|
8917
|
+
function P(S, c, b) {
|
|
8918
8918
|
if (S instanceof KeyboardEvent && S.key !== "Backspace" || e.value !== "")
|
|
8919
8919
|
return;
|
|
8920
8920
|
S.stopPropagation(), b();
|
|
8921
|
-
const x = L.findIndex((s) => s.value ===
|
|
8921
|
+
const x = L.findIndex((s) => s.value === c.value);
|
|
8922
8922
|
L.splice(x, 1);
|
|
8923
8923
|
}
|
|
8924
|
-
function v(S,
|
|
8924
|
+
function v(S, c) {
|
|
8925
8925
|
var s;
|
|
8926
8926
|
if (!C.taggable)
|
|
8927
8927
|
return;
|
|
8928
|
-
S.stopPropagation(),
|
|
8928
|
+
S.stopPropagation(), c();
|
|
8929
8929
|
const b = e.value;
|
|
8930
8930
|
if (b === "")
|
|
8931
8931
|
return;
|
|
8932
8932
|
d.value.find((E) => E.label === b) || (L.push({ value: b, label: b }), e.value = "", (s = a.value) == null || s.focus());
|
|
8933
8933
|
}
|
|
8934
8934
|
function R(S) {
|
|
8935
|
-
return C.multiple || C.taggable ? L.find((
|
|
8935
|
+
return C.multiple || C.taggable ? L.find((c) => c.value === S.value) : A.value.value === S.value;
|
|
8936
8936
|
}
|
|
8937
|
-
const F = g(() => !C.searchable || A.value.label === e.value ? d.value : d.value.filter((
|
|
8937
|
+
const F = g(() => !C.searchable || A.value.label === e.value ? d.value : d.value.filter((c) => c.label.toLowerCase().includes(e.value.toLowerCase()))), z = g(() => !C.searchable);
|
|
8938
8938
|
function I() {
|
|
8939
8939
|
l.value ? C.multiple ? L.push(l.value) : (A.value = l.value, e.value = l.value.label) : (A.value = {}, L.splice(0, L.length));
|
|
8940
8940
|
}
|
|
8941
|
-
function
|
|
8941
|
+
function p(S) {
|
|
8942
8942
|
C.searchable && S(), !(C.multiple || C.taggable) && e.value === "" && (A.value = {}, M("update:modelValue", ""));
|
|
8943
8943
|
}
|
|
8944
|
-
function W(S,
|
|
8945
|
-
if (S.stopPropagation(),
|
|
8944
|
+
function W(S, c) {
|
|
8945
|
+
if (S.stopPropagation(), c(), C.multiple || C.taggable) {
|
|
8946
8946
|
L.splice(0, L.length);
|
|
8947
8947
|
return;
|
|
8948
8948
|
}
|
|
@@ -8954,7 +8954,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8954
8954
|
M("update:modelValue", S);
|
|
8955
8955
|
}), $(() => l.value, (S) => {
|
|
8956
8956
|
I();
|
|
8957
|
-
}), (S,
|
|
8957
|
+
}), (S, c) => (m(), n("div", {
|
|
8958
8958
|
ref_key: "wrapper",
|
|
8959
8959
|
ref: r,
|
|
8960
8960
|
class: "r-dropdown-wrapper"
|
|
@@ -8975,7 +8975,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8975
8975
|
u("div", {
|
|
8976
8976
|
ref_key: "dropdown",
|
|
8977
8977
|
ref: o,
|
|
8978
|
-
class:
|
|
8978
|
+
class: f(["r-dropdown", {
|
|
8979
8979
|
"r-dropdown--disabled": C.disabled,
|
|
8980
8980
|
"r-dropdown--loading": C.loading,
|
|
8981
8981
|
[C.dropdownClass]: C.dropdownClass,
|
|
@@ -8986,20 +8986,20 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8986
8986
|
}, [
|
|
8987
8987
|
C.prependIcon || S.$slots.prepend ? (m(), n("div", {
|
|
8988
8988
|
key: 0,
|
|
8989
|
-
class:
|
|
8989
|
+
class: f(["r-dropdown__prepend-icon", {
|
|
8990
8990
|
"r-dropdown__prepend-icon--active": i.value,
|
|
8991
8991
|
"r-dropdown__prepend-icon--error": C.errorMsg
|
|
8992
8992
|
}])
|
|
8993
8993
|
}, [
|
|
8994
|
-
|
|
8994
|
+
h(S.$slots, "prepend", {}, () => [
|
|
8995
8995
|
C.prependIcon ? (m(), _(D, {
|
|
8996
8996
|
key: 0,
|
|
8997
8997
|
name: C.prependIcon
|
|
8998
|
-
}, null, 8, ["name"])) :
|
|
8998
|
+
}, null, 8, ["name"])) : O("", !0)
|
|
8999
8999
|
])
|
|
9000
|
-
], 2)) :
|
|
9000
|
+
], 2)) : O("", !0),
|
|
9001
9001
|
C.taggable && L.length ? (m(), n("div", Q5, [
|
|
9002
|
-
|
|
9002
|
+
h(S.$slots, "tags", {
|
|
9003
9003
|
options: L,
|
|
9004
9004
|
removeOption: P,
|
|
9005
9005
|
updatePosition: x
|
|
@@ -9014,17 +9014,17 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9014
9014
|
"onClick:close": (G) => P(G, s, x)
|
|
9015
9015
|
}, null, 8, ["label", "onClick:close"]))), 128))
|
|
9016
9016
|
])
|
|
9017
|
-
])) :
|
|
9017
|
+
])) : O("", !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
|
+
])) : O("", !0),
|
|
9021
9021
|
Y1(u("input", {
|
|
9022
9022
|
id: C.id,
|
|
9023
9023
|
ref_key: "input",
|
|
9024
9024
|
ref: a,
|
|
9025
|
-
"onUpdate:modelValue":
|
|
9025
|
+
"onUpdate:modelValue": c[0] || (c[0] = (s) => e.value = s),
|
|
9026
9026
|
autocomplete: C.autocomplete,
|
|
9027
|
-
class:
|
|
9027
|
+
class: f(["r-dropdown__input", {
|
|
9028
9028
|
"r-dropdown__input--loading": C.loading
|
|
9029
9029
|
}]),
|
|
9030
9030
|
disabled: C.disabled,
|
|
@@ -9032,7 +9032,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9032
9032
|
readonly: z.value,
|
|
9033
9033
|
role: "presentation",
|
|
9034
9034
|
type: "text",
|
|
9035
|
-
onInput: d1((s) =>
|
|
9035
|
+
onInput: d1((s) => p(x), ["prevent"]),
|
|
9036
9036
|
onKeydown: [
|
|
9037
9037
|
N1((s) => P(s, L[L.length - 1], x), ["backspace"]),
|
|
9038
9038
|
N1((s) => v(s, x), ["enter"])
|
|
@@ -9050,26 +9050,26 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9050
9050
|
name: "mdiCloseCircle",
|
|
9051
9051
|
size: "18"
|
|
9052
9052
|
})
|
|
9053
|
-
], 8, U5)) :
|
|
9053
|
+
], 8, U5)) : O("", !0),
|
|
9054
9054
|
C.appendIcon || S.$slots.append ? (m(), n("div", {
|
|
9055
9055
|
key: 4,
|
|
9056
|
-
class:
|
|
9056
|
+
class: f(["r-dropdown__append-icon", {
|
|
9057
9057
|
"r-dropdown__append-icon--active": i.value,
|
|
9058
9058
|
"r-dropdown__append-icon--error": C.errorMsg
|
|
9059
9059
|
}])
|
|
9060
9060
|
}, [
|
|
9061
|
-
|
|
9061
|
+
h(S.$slots, "append", {}, () => [
|
|
9062
9062
|
C.appendIcon ? (m(), _(D, {
|
|
9063
9063
|
key: 0,
|
|
9064
9064
|
name: C.appendIcon
|
|
9065
|
-
}, null, 8, ["name"])) :
|
|
9065
|
+
}, null, 8, ["name"])) : O("", !0)
|
|
9066
9066
|
])
|
|
9067
|
-
], 2)) :
|
|
9067
|
+
], 2)) : O("", !0)
|
|
9068
9068
|
], 10, I5)
|
|
9069
9069
|
]),
|
|
9070
9070
|
content: r1(({ hide: b, updatePosition: x }) => [
|
|
9071
9071
|
u("ul", {
|
|
9072
|
-
class:
|
|
9072
|
+
class: f(["r-dropdown-options", {
|
|
9073
9073
|
"r-dropdown-options--active": i.value,
|
|
9074
9074
|
[C.optionsClass]: C.optionsClass
|
|
9075
9075
|
}])
|
|
@@ -9077,54 +9077,54 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9077
9077
|
(m(!0), n(V1, null, A1(F.value, (s) => (m(), n("li", {
|
|
9078
9078
|
key: s.value,
|
|
9079
9079
|
"aria-disabled": s.disabled,
|
|
9080
|
-
class:
|
|
9080
|
+
class: f(["r-dropdown-options__option", {
|
|
9081
9081
|
"r-dropdown-options__option--active": R(s),
|
|
9082
9082
|
"r-dropdown-options__option--disabled": s.disabled
|
|
9083
9083
|
}]),
|
|
9084
9084
|
onClick: d1((E) => k(E, s, b, x), ["prevent"])
|
|
9085
9085
|
}, [
|
|
9086
|
-
|
|
9086
|
+
h(S.$slots, "option", {
|
|
9087
9087
|
isSelected: R(s)
|
|
9088
9088
|
}, () => [
|
|
9089
9089
|
u("div", K5, [
|
|
9090
|
-
|
|
9090
|
+
h(S.$slots, "option-prepend", {}, () => [
|
|
9091
9091
|
s.prependIcon ? (m(), _(D, {
|
|
9092
9092
|
key: 0,
|
|
9093
|
-
class:
|
|
9093
|
+
class: f(["r-dropdown-options__option__prepend-icon", {
|
|
9094
9094
|
"r-dropdown-options__option__prepend-icon--active": R(s)
|
|
9095
9095
|
}]),
|
|
9096
9096
|
name: s.prependIcon
|
|
9097
|
-
}, null, 8, ["class", "name"])) :
|
|
9097
|
+
}, null, 8, ["class", "name"])) : O("", !0)
|
|
9098
9098
|
]),
|
|
9099
9099
|
u("p", {
|
|
9100
|
-
class:
|
|
9100
|
+
class: f(["r-dropdown-options__option__label", {
|
|
9101
9101
|
"r-dropdown-options__option__label--active": R(s)
|
|
9102
9102
|
}])
|
|
9103
9103
|
}, w(s.label), 3)
|
|
9104
9104
|
]),
|
|
9105
|
-
|
|
9105
|
+
h(S.$slots, "option-append", {}, () => [
|
|
9106
9106
|
R(s) && !C.hideOptionCheckIcon ? (m(), _(D, {
|
|
9107
9107
|
key: 0,
|
|
9108
|
-
class:
|
|
9108
|
+
class: f(["r-dropdown-options__option__append-icon", {
|
|
9109
9109
|
"r-dropdown-options__option__append-icon--active": R(s)
|
|
9110
9110
|
}]),
|
|
9111
9111
|
name: "mdiCheck"
|
|
9112
|
-
}, null, 8, ["class"])) :
|
|
9112
|
+
}, null, 8, ["class"])) : O("", !0)
|
|
9113
9113
|
])
|
|
9114
9114
|
])
|
|
9115
9115
|
], 10, z5))), 128)),
|
|
9116
9116
|
F.value.length === 0 ? (m(), n("li", q5, [
|
|
9117
|
-
|
|
9117
|
+
h(S.$slots, "not-options", {}, () => [
|
|
9118
9118
|
R1(w(C.noOptionsText || "No options"), 1)
|
|
9119
9119
|
])
|
|
9120
|
-
])) :
|
|
9120
|
+
])) : O("", !0)
|
|
9121
9121
|
], 2)
|
|
9122
9122
|
]),
|
|
9123
9123
|
_: 3
|
|
9124
9124
|
}),
|
|
9125
|
-
S.$props.hideDetails ?
|
|
9126
|
-
C.errorMsg ? (m(), n("div", X5, w(C.errorMsg), 1)) :
|
|
9127
|
-
C.hint ? (m(), n("div", Y5, w(C.hint), 1)) :
|
|
9125
|
+
S.$props.hideDetails ? O("", !0) : (m(), n("div", j5, [
|
|
9126
|
+
C.errorMsg ? (m(), n("div", X5, w(C.errorMsg), 1)) : O("", !0),
|
|
9127
|
+
C.hint ? (m(), n("div", Y5, w(C.hint), 1)) : O("", !0)
|
|
9128
9128
|
]))
|
|
9129
9129
|
], 512));
|
|
9130
9130
|
}
|
|
@@ -9142,7 +9142,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9142
9142
|
class: "r-label",
|
|
9143
9143
|
for: V.for
|
|
9144
9144
|
}, [
|
|
9145
|
-
|
|
9145
|
+
h(C.$slots, "default", {}, () => [
|
|
9146
9146
|
R1(w(V.text), 1)
|
|
9147
9147
|
])
|
|
9148
9148
|
], 8, C3));
|
|
@@ -9190,31 +9190,31 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9190
9190
|
}), window.addEventListener("keydown", (e) => {
|
|
9191
9191
|
e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
|
|
9192
9192
|
}), (e, t) => Y1((m(), n("div", {
|
|
9193
|
-
class:
|
|
9193
|
+
class: f(["r-modal-overlay", e.overlayClass]),
|
|
9194
9194
|
onClick: d1(i, ["stop"])
|
|
9195
9195
|
}, [
|
|
9196
9196
|
u("div", {
|
|
9197
9197
|
"aria-modal": "true",
|
|
9198
|
-
class:
|
|
9198
|
+
class: f(A.value),
|
|
9199
9199
|
open: C.modelValue,
|
|
9200
9200
|
role: "dialog",
|
|
9201
9201
|
style: x1(L.value)
|
|
9202
9202
|
}, [
|
|
9203
9203
|
u("div", L3, [
|
|
9204
|
-
|
|
9204
|
+
h(e.$slots, "header"),
|
|
9205
9205
|
C.icon ? (m(), n("div", M3, [
|
|
9206
9206
|
K(D, {
|
|
9207
9207
|
name: C.icon
|
|
9208
9208
|
}, null, 8, ["name"])
|
|
9209
|
-
])) :
|
|
9210
|
-
C.title ? (m(), n("div", A3, w(C.title), 1)) :
|
|
9211
|
-
C.description ? (m(), n("div", i3, w(C.description), 1)) :
|
|
9209
|
+
])) : O("", !0),
|
|
9210
|
+
C.title ? (m(), n("div", A3, w(C.title), 1)) : O("", !0),
|
|
9211
|
+
C.description ? (m(), n("div", i3, w(C.description), 1)) : O("", !0)
|
|
9212
9212
|
]),
|
|
9213
9213
|
u("div", e3, [
|
|
9214
|
-
|
|
9214
|
+
h(e.$slots, "default")
|
|
9215
9215
|
]),
|
|
9216
9216
|
u("div", d3, [
|
|
9217
|
-
|
|
9217
|
+
h(e.$slots, "actions")
|
|
9218
9218
|
])
|
|
9219
9219
|
], 14, V3)
|
|
9220
9220
|
], 10, H3)), [
|
|
@@ -9234,25 +9234,25 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9234
9234
|
setup(H, { emit: V }) {
|
|
9235
9235
|
const C = H, M = V;
|
|
9236
9236
|
return (A, L) => (m(), n("div", {
|
|
9237
|
-
class:
|
|
9237
|
+
class: f(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
|
|
9238
9238
|
"data-open": C.modelValue
|
|
9239
9239
|
}, [
|
|
9240
9240
|
u("aside", {
|
|
9241
|
-
class:
|
|
9241
|
+
class: f(["r-sidebar", [C.class]]),
|
|
9242
9242
|
"data-open": C.modelValue
|
|
9243
9243
|
}, [
|
|
9244
|
-
|
|
9244
|
+
h(A.$slots, "default")
|
|
9245
9245
|
], 10, m3),
|
|
9246
9246
|
C.showTrigger ? (m(), n("div", {
|
|
9247
9247
|
key: 0,
|
|
9248
|
-
class:
|
|
9248
|
+
class: f(["r-sidebar__trigger", [C.triggerClass]]),
|
|
9249
9249
|
"data-open": C.modelValue,
|
|
9250
9250
|
onClick: L[0] || (L[0] = (i) => M("update:modelValue", !C.modelValue))
|
|
9251
9251
|
}, [
|
|
9252
|
-
|
|
9252
|
+
h(A.$slots, "trigger", {}, () => [
|
|
9253
9253
|
R1(" > ")
|
|
9254
9254
|
])
|
|
9255
|
-
], 10, l3)) :
|
|
9255
|
+
], 10, l3)) : O("", !0)
|
|
9256
9256
|
], 10, t3));
|
|
9257
9257
|
}
|
|
9258
9258
|
}), o3 = { class: "r-snackbar__text" }, n3 = {
|
|
@@ -9297,26 +9297,26 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9297
9297
|
info: "mdiInformation"
|
|
9298
9298
|
})[C.variant || "info"]);
|
|
9299
9299
|
return (i, e) => (m(), n("div", {
|
|
9300
|
-
class:
|
|
9300
|
+
class: f(A.value)
|
|
9301
9301
|
}, [
|
|
9302
|
-
|
|
9302
|
+
h(i.$slots, "default", {}, () => [
|
|
9303
9303
|
C.variant ? (m(), _(D, {
|
|
9304
9304
|
key: 0,
|
|
9305
9305
|
class: "r-snackbar__icon",
|
|
9306
9306
|
name: L.value
|
|
9307
|
-
}, null, 8, ["name"])) :
|
|
9307
|
+
}, null, 8, ["name"])) : O("", !0)
|
|
9308
9308
|
]),
|
|
9309
9309
|
u("div", o3, w(C.text), 1),
|
|
9310
|
-
|
|
9310
|
+
h(i.$slots, "action"),
|
|
9311
9311
|
C.closable ? (m(), n("div", n3, [
|
|
9312
|
-
|
|
9312
|
+
h(i.$slots, "close", {}, () => [
|
|
9313
9313
|
K(D, {
|
|
9314
9314
|
name: "mdiClose",
|
|
9315
9315
|
size: 16,
|
|
9316
9316
|
onClick: e[0] || (e[0] = d1((t) => i.$emit("update:modelValue", !1), ["stop"]))
|
|
9317
9317
|
})
|
|
9318
9318
|
])
|
|
9319
|
-
])) :
|
|
9319
|
+
])) : O("", !0)
|
|
9320
9320
|
], 2));
|
|
9321
9321
|
}
|
|
9322
9322
|
}), r3 = ["id", "checked", "disabled"], a3 = /* @__PURE__ */ u("span", { class: "slider round" }, null, -1), Z3 = ["id", "for"], u3 = {
|
|
@@ -9365,13 +9365,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9365
9365
|
immediate: !0
|
|
9366
9366
|
}
|
|
9367
9367
|
), (e, t) => (m(), n("div", {
|
|
9368
|
-
class:
|
|
9368
|
+
class: f(["r-switch-container", {
|
|
9369
9369
|
"r-switch-container--reverse": C.reverse,
|
|
9370
9370
|
"r-switch-container--hide-details": C.hideDetails
|
|
9371
9371
|
}])
|
|
9372
9372
|
}, [
|
|
9373
9373
|
u("div", {
|
|
9374
|
-
class:
|
|
9374
|
+
class: f(L.value)
|
|
9375
9375
|
}, [
|
|
9376
9376
|
u("input", {
|
|
9377
9377
|
id: C.id,
|
|
@@ -9384,7 +9384,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9384
9384
|
a3
|
|
9385
9385
|
], 2),
|
|
9386
9386
|
u("div", {
|
|
9387
|
-
class:
|
|
9387
|
+
class: f(["r-switch-texts", {
|
|
9388
9388
|
[`r-switch-texts--${C.size}`]: !0
|
|
9389
9389
|
}])
|
|
9390
9390
|
}, [
|
|
@@ -9393,7 +9393,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9393
9393
|
class: "r-switch-texts__label",
|
|
9394
9394
|
for: C.id
|
|
9395
9395
|
}, w(C.label), 9, Z3),
|
|
9396
|
-
C.hideDetails ?
|
|
9396
|
+
C.hideDetails ? O("", !0) : (m(), n("div", u3, [
|
|
9397
9397
|
C.errorMsg ? (m(), n("p", S3, w(C.errorMsg), 1)) : (m(), n("p", s3, w(C.hint), 1))
|
|
9398
9398
|
]))
|
|
9399
9399
|
], 2)
|
|
@@ -9437,36 +9437,36 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9437
9437
|
return (t, d) => (m(), n("button", {
|
|
9438
9438
|
"aria-disabled": C.disabled,
|
|
9439
9439
|
"aria-selected": C.modelValue === C.id,
|
|
9440
|
-
class:
|
|
9440
|
+
class: f(A.value),
|
|
9441
9441
|
disabled: C.disabled,
|
|
9442
9442
|
style: x1(L.value),
|
|
9443
9443
|
onClick: d[0] || (d[0] = d1((l) => i(C.id), ["stop"]))
|
|
9444
9444
|
}, [
|
|
9445
|
-
|
|
9445
|
+
h(t.$slots, "prepend", {}, () => [
|
|
9446
9446
|
C.variant !== M1(n1).TEXT && C.prependIcon ? (m(), _(D, {
|
|
9447
9447
|
key: 0,
|
|
9448
9448
|
class: "r-tab-item__prepend-icon",
|
|
9449
9449
|
name: C.prependIcon,
|
|
9450
9450
|
size: 16
|
|
9451
|
-
}, null, 8, ["name"])) :
|
|
9451
|
+
}, null, 8, ["name"])) : O("", !0)
|
|
9452
9452
|
]),
|
|
9453
9453
|
K(f2, {
|
|
9454
9454
|
duration: 150,
|
|
9455
9455
|
name: "fade"
|
|
9456
9456
|
}, {
|
|
9457
9457
|
default: r1(() => [
|
|
9458
|
-
C.variant !== M1(n1).ICON ? (m(), n("span", O3, w(C.label), 1)) :
|
|
9458
|
+
C.variant !== M1(n1).ICON ? (m(), n("span", O3, w(C.label), 1)) : O("", !0)
|
|
9459
9459
|
]),
|
|
9460
9460
|
_: 1
|
|
9461
9461
|
}),
|
|
9462
|
-
|
|
9462
|
+
h(t.$slots, "append", {}, () => [
|
|
9463
9463
|
C.variant !== M1(n1).TEXT && C.appendIcon ? (m(), _(D, {
|
|
9464
9464
|
key: 0,
|
|
9465
9465
|
class: "r-tab-item__append-icon",
|
|
9466
9466
|
name: C.appendIcon,
|
|
9467
9467
|
size: 16,
|
|
9468
9468
|
onClick: d1(e, ["stop"])
|
|
9469
|
-
}, null, 8, ["name", "onClick"])) :
|
|
9469
|
+
}, null, 8, ["name", "onClick"])) : O("", !0)
|
|
9470
9470
|
])
|
|
9471
9471
|
], 14, c3));
|
|
9472
9472
|
}
|
|
@@ -9497,9 +9497,9 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9497
9497
|
M("click:icon");
|
|
9498
9498
|
}
|
|
9499
9499
|
return (e, t) => (m(), n("div", {
|
|
9500
|
-
class:
|
|
9500
|
+
class: f(L.value)
|
|
9501
9501
|
}, [
|
|
9502
|
-
|
|
9502
|
+
h(e.$slots, "default", {}, () => [
|
|
9503
9503
|
(m(!0), n(V1, null, A1(C.tabs, (d, l) => (m(), _(p3, {
|
|
9504
9504
|
id: d.id,
|
|
9505
9505
|
key: l,
|
|
@@ -9562,7 +9562,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9562
9562
|
class: "r-textarea__label",
|
|
9563
9563
|
for: "textarea",
|
|
9564
9564
|
text: C.label
|
|
9565
|
-
}, null, 8, ["id", "text"])) :
|
|
9565
|
+
}, null, 8, ["id", "text"])) : O("", !0),
|
|
9566
9566
|
u("textarea", j1(i.$attrs, {
|
|
9567
9567
|
id: C.id,
|
|
9568
9568
|
class: ["r-textarea", {
|
|
@@ -9574,7 +9574,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9574
9574
|
value: A.value,
|
|
9575
9575
|
onInput: L
|
|
9576
9576
|
}), null, 16, h3),
|
|
9577
|
-
C.hideDetails ?
|
|
9577
|
+
C.hideDetails ? O("", !0) : (m(), n("div", g3, [
|
|
9578
9578
|
C.errorMsg ? (m(), n("p", k3, w(C.errorMsg), 1)) : (m(), n("p", B3, w(C.hint), 1))
|
|
9579
9579
|
]))
|
|
9580
9580
|
]));
|
|
@@ -9628,15 +9628,15 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9628
9628
|
number: "mdiNumeric",
|
|
9629
9629
|
text: ""
|
|
9630
9630
|
}, t = N(!1), d = g(() => !!L.value), l = g(() => L.value.length > 0), o = g(() => {
|
|
9631
|
-
var
|
|
9632
|
-
return (
|
|
9631
|
+
var p;
|
|
9632
|
+
return (p = C.errorMsg) == null ? void 0 : p.length;
|
|
9633
9633
|
}), a = g(() => C.clearable && l.value), r = g(() => {
|
|
9634
|
-
const { disabled:
|
|
9634
|
+
const { disabled: p, loading: W } = C;
|
|
9635
9635
|
return {
|
|
9636
9636
|
"r-textfield": !0,
|
|
9637
9637
|
"r-textfield--error": o.value,
|
|
9638
9638
|
"r-textfield--loading": W,
|
|
9639
|
-
"r-textfield--disabled":
|
|
9639
|
+
"r-textfield--disabled": p,
|
|
9640
9640
|
"r-textfield--clearable": a.value,
|
|
9641
9641
|
"r-textfield--focus": t.value,
|
|
9642
9642
|
"r-textfield--filled": d.value
|
|
@@ -9650,25 +9650,25 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9650
9650
|
"r-textfield__append-icon--clear": a.value,
|
|
9651
9651
|
"r-textfield__append-icon--error": o.value
|
|
9652
9652
|
})), k = g(() => {
|
|
9653
|
-
const { prependIcon:
|
|
9654
|
-
return
|
|
9653
|
+
const { prependIcon: p, type: W } = C;
|
|
9654
|
+
return p === "none" ? "" : p || e[W];
|
|
9655
9655
|
}), y = g(() => {
|
|
9656
|
-
const { appendIcon:
|
|
9657
|
-
return
|
|
9656
|
+
const { appendIcon: p, type: W } = C;
|
|
9657
|
+
return p === "none" ? "" : o.value ? "mdiAlertCircleOutline" : a.value && ["text", "email"].includes(W) ? "mdiClose" : W === "password" && i.value === "password" ? "mdiEyeOutline" : W === "password" && i.value === "text" ? "mdiEyeOffOutline" : p;
|
|
9658
9658
|
});
|
|
9659
|
-
function P(
|
|
9660
|
-
t.value = !0, M("focus",
|
|
9659
|
+
function P(p) {
|
|
9660
|
+
t.value = !0, M("focus", p);
|
|
9661
9661
|
}
|
|
9662
|
-
function v(
|
|
9663
|
-
t.value = !1, M("blur",
|
|
9662
|
+
function v(p) {
|
|
9663
|
+
t.value = !1, M("blur", p);
|
|
9664
9664
|
}
|
|
9665
|
-
function R(
|
|
9666
|
-
L.value =
|
|
9665
|
+
function R(p) {
|
|
9666
|
+
L.value = p.target.value, M("input", p);
|
|
9667
9667
|
}
|
|
9668
9668
|
function F() {
|
|
9669
|
-
var
|
|
9669
|
+
var p;
|
|
9670
9670
|
if (a.value) {
|
|
9671
|
-
L.value = "", (
|
|
9671
|
+
L.value = "", (p = A.value) == null || p.focus(), M("click:clear", {
|
|
9672
9672
|
value: i.value === "number" ? +L.value : L.value
|
|
9673
9673
|
});
|
|
9674
9674
|
return;
|
|
@@ -9681,26 +9681,26 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9681
9681
|
i.value = i.value === "password" ? "text" : "password";
|
|
9682
9682
|
}
|
|
9683
9683
|
function I() {
|
|
9684
|
-
var
|
|
9685
|
-
(
|
|
9684
|
+
var p;
|
|
9685
|
+
(p = A.value) == null || p.focus();
|
|
9686
9686
|
}
|
|
9687
9687
|
return $(
|
|
9688
9688
|
() => C.modelValue,
|
|
9689
|
-
(
|
|
9690
|
-
L.value =
|
|
9689
|
+
(p) => {
|
|
9690
|
+
L.value = p;
|
|
9691
9691
|
},
|
|
9692
9692
|
{
|
|
9693
9693
|
immediate: !0
|
|
9694
9694
|
}
|
|
9695
9695
|
), $(
|
|
9696
9696
|
() => L.value,
|
|
9697
|
-
(
|
|
9697
|
+
(p) => {
|
|
9698
9698
|
M(
|
|
9699
9699
|
"update:modelValue",
|
|
9700
|
-
i.value === "number" ? +
|
|
9700
|
+
i.value === "number" ? +p : p
|
|
9701
9701
|
);
|
|
9702
9702
|
}
|
|
9703
|
-
), (
|
|
9703
|
+
), (p, W) => (m(), n("div", b3, [
|
|
9704
9704
|
C.label ? (m(), _(r2, {
|
|
9705
9705
|
key: 0,
|
|
9706
9706
|
id: `${C.id}-label`,
|
|
@@ -9708,18 +9708,18 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9708
9708
|
for: C.id,
|
|
9709
9709
|
text: C.label,
|
|
9710
9710
|
onClick: I
|
|
9711
|
-
}, null, 8, ["id", "for", "text"])) :
|
|
9711
|
+
}, null, 8, ["id", "for", "text"])) : O("", !0),
|
|
9712
9712
|
u("div", w3, [
|
|
9713
9713
|
u("div", {
|
|
9714
|
-
class:
|
|
9714
|
+
class: f(r.value)
|
|
9715
9715
|
}, [
|
|
9716
|
-
|
|
9717
|
-
k.value && !
|
|
9716
|
+
h(p.$slots, "prepend"),
|
|
9717
|
+
k.value && !p.$slots.prepend ? (m(), _(D, {
|
|
9718
9718
|
key: 0,
|
|
9719
|
-
class:
|
|
9719
|
+
class: f(Z.value),
|
|
9720
9720
|
name: k.value,
|
|
9721
9721
|
size: 20
|
|
9722
|
-
}, null, 8, ["class", "name"])) :
|
|
9722
|
+
}, null, 8, ["class", "name"])) : O("", !0),
|
|
9723
9723
|
u("input", {
|
|
9724
9724
|
id: C.id,
|
|
9725
9725
|
ref_key: "inputRef",
|
|
@@ -9736,18 +9736,18 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9736
9736
|
onFocus: P,
|
|
9737
9737
|
onInput: R
|
|
9738
9738
|
}, null, 40, y3),
|
|
9739
|
-
o.value ?
|
|
9740
|
-
y.value && !
|
|
9739
|
+
o.value ? O("", !0) : h(p.$slots, "append", { key: 1 }),
|
|
9740
|
+
y.value && !p.$slots.append || o.value ? (m(), _(D, {
|
|
9741
9741
|
key: 2,
|
|
9742
|
-
class:
|
|
9742
|
+
class: f(B.value),
|
|
9743
9743
|
name: `${y.value}`,
|
|
9744
9744
|
size: 20,
|
|
9745
9745
|
onClick: F
|
|
9746
|
-
}, null, 8, ["class", "name"])) :
|
|
9746
|
+
}, null, 8, ["class", "name"])) : O("", !0)
|
|
9747
9747
|
], 2),
|
|
9748
|
-
C.hideDetails ?
|
|
9749
|
-
C.errorMsg ? (m(), n("p", v3, w(C.errorMsg), 1)) :
|
|
9750
|
-
!C.errorMsg && C.hint ? (m(), n("p", T3, w(C.hint), 1)) :
|
|
9748
|
+
C.hideDetails ? O("", !0) : (m(), n("div", P3, [
|
|
9749
|
+
C.errorMsg ? (m(), n("p", v3, w(C.errorMsg), 1)) : O("", !0),
|
|
9750
|
+
!C.errorMsg && C.hint ? (m(), n("p", T3, w(C.hint), 1)) : O("", !0)
|
|
9751
9751
|
]))
|
|
9752
9752
|
])
|
|
9753
9753
|
]));
|
|
@@ -9775,22 +9775,22 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9775
9775
|
to: L.to
|
|
9776
9776
|
}, {
|
|
9777
9777
|
default: r1(() => [
|
|
9778
|
-
|
|
9778
|
+
h(C.$slots, "item-icon", {}, () => [
|
|
9779
9779
|
L.icon ? (m(), _(D, {
|
|
9780
9780
|
key: 0,
|
|
9781
9781
|
name: L.icon
|
|
9782
|
-
}, null, 8, ["name"])) :
|
|
9782
|
+
}, null, 8, ["name"])) : O("", !0)
|
|
9783
9783
|
]),
|
|
9784
|
-
L.onlyIcon ?
|
|
9784
|
+
L.onlyIcon ? O("", !0) : (m(), n("span", R3, w(L.title), 1))
|
|
9785
9785
|
]),
|
|
9786
9786
|
_: 2
|
|
9787
9787
|
}, 1032, ["to"]),
|
|
9788
|
-
|
|
9788
|
+
h(C.$slots, "custom-seperator", {}, () => [
|
|
9789
9789
|
i !== C.items.length - 1 && V.seperator ? (m(), _(D, {
|
|
9790
9790
|
key: 0,
|
|
9791
9791
|
class: "r-breadcrumb__separator",
|
|
9792
9792
|
name: V.seperator
|
|
9793
|
-
}, null, 8, ["name"])) :
|
|
9793
|
+
}, null, 8, ["name"])) : O("", !0)
|
|
9794
9794
|
])
|
|
9795
9795
|
]))), 128))
|
|
9796
9796
|
]);
|
|
@@ -9853,7 +9853,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9853
9853
|
M("update:perPage", d);
|
|
9854
9854
|
}
|
|
9855
9855
|
return (d, l) => (m(), n("div", {
|
|
9856
|
-
class:
|
|
9856
|
+
class: f(["r-pagination", [`r-pagination--${C.position}`]])
|
|
9857
9857
|
}, [
|
|
9858
9858
|
u("div", x3, [
|
|
9859
9859
|
u("div", D3, [
|
|
@@ -9876,9 +9876,9 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9876
9876
|
disabled: C.page === 1,
|
|
9877
9877
|
onClick: l[1] || (l[1] = (o) => e(1))
|
|
9878
9878
|
}, [
|
|
9879
|
-
|
|
9879
|
+
h(d.$slots, "first", {}, () => [
|
|
9880
9880
|
(m(), n("svg", {
|
|
9881
|
-
class:
|
|
9881
|
+
class: f(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": C.page === 1 }]),
|
|
9882
9882
|
fill: "none",
|
|
9883
9883
|
height: "20",
|
|
9884
9884
|
stroke: "#000000",
|
|
@@ -9896,9 +9896,9 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9896
9896
|
disabled: C.page === 1,
|
|
9897
9897
|
onClick: l[2] || (l[2] = (o) => e(+C.page - 1))
|
|
9898
9898
|
}, [
|
|
9899
|
-
|
|
9899
|
+
h(d.$slots, "prev", {}, () => [
|
|
9900
9900
|
(m(), n("svg", {
|
|
9901
|
-
class:
|
|
9901
|
+
class: f(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": C.page === 1 }]),
|
|
9902
9902
|
fill: "none",
|
|
9903
9903
|
height: "20",
|
|
9904
9904
|
stroke: "#000000",
|
|
@@ -9916,9 +9916,9 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9916
9916
|
disabled: C.page === L.value,
|
|
9917
9917
|
onClick: l[3] || (l[3] = (o) => e(+C.page + 1))
|
|
9918
9918
|
}, [
|
|
9919
|
-
|
|
9919
|
+
h(d.$slots, "next", {}, () => [
|
|
9920
9920
|
(m(), n("svg", {
|
|
9921
|
-
class:
|
|
9921
|
+
class: f(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": C.page === L.value }]),
|
|
9922
9922
|
fill: "none",
|
|
9923
9923
|
height: "20",
|
|
9924
9924
|
stroke: "#000000",
|
|
@@ -9936,9 +9936,9 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9936
9936
|
disabled: C.page === L.value,
|
|
9937
9937
|
onClick: l[4] || (l[4] = (o) => e(C.totalItems / C.perPage))
|
|
9938
9938
|
}, [
|
|
9939
|
-
|
|
9939
|
+
h(d.$slots, "last", {}, () => [
|
|
9940
9940
|
(m(), n("svg", {
|
|
9941
|
-
class:
|
|
9941
|
+
class: f(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": C.page === L.value }]),
|
|
9942
9942
|
fill: "none",
|
|
9943
9943
|
height: "20",
|
|
9944
9944
|
stroke: "#000000",
|
|
@@ -9995,7 +9995,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9995
9995
|
}
|
|
9996
9996
|
return k1(`${w1}:select`, t), (d, l) => (m(), _(g2(A.value), null, {
|
|
9997
9997
|
default: r1(() => [
|
|
9998
|
-
|
|
9998
|
+
h(d.$slots, "default", {
|
|
9999
9999
|
isSelected: e,
|
|
10000
10000
|
select: t,
|
|
10001
10001
|
selected: L.value
|
|
@@ -10019,7 +10019,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
10019
10019
|
function e() {
|
|
10020
10020
|
V.disabled || L(V.value, !0);
|
|
10021
10021
|
}
|
|
10022
|
-
return (t, d) =>
|
|
10022
|
+
return (t, d) => h(t.$slots, "default", {
|
|
10023
10023
|
disabled: V.disabled,
|
|
10024
10024
|
isSelected: M1(C)(V.value),
|
|
10025
10025
|
select: e,
|