@rocketui/vue 0.2.10 → 0.2.11
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 +105 -105
- 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
|
|
1
|
+
import { defineComponent as T, openBlock as m, createElementBlock as n, createElementVNode as S, 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",
|
|
@@ -7311,7 +7311,7 @@ const k2 = {
|
|
|
7311
7311
|
viewBox: V.viewBox,
|
|
7312
7312
|
width: V.size
|
|
7313
7313
|
}, [
|
|
7314
|
-
|
|
7314
|
+
S("path", {
|
|
7315
7315
|
d: M1(k2)[V.name]
|
|
7316
7316
|
}, null, 8, b2)
|
|
7317
7317
|
], 8, B2));
|
|
@@ -7342,20 +7342,20 @@ const k2 = {
|
|
|
7342
7342
|
}]),
|
|
7343
7343
|
"data-state": i.open ? "opened" : "closed"
|
|
7344
7344
|
}, [
|
|
7345
|
-
|
|
7345
|
+
S("div", {
|
|
7346
7346
|
class: "r-accordion__header",
|
|
7347
7347
|
onClick: (t) => M(e)
|
|
7348
7348
|
}, [
|
|
7349
7349
|
h(A.$slots, "title", {}, () => [
|
|
7350
|
-
|
|
7350
|
+
S("div", P2, w(i.title), 1)
|
|
7351
7351
|
]),
|
|
7352
|
-
|
|
7352
|
+
S("div", v2, [
|
|
7353
7353
|
K(D, { name: "mdiChevronUp" })
|
|
7354
7354
|
])
|
|
7355
7355
|
], 8, y2),
|
|
7356
|
-
|
|
7356
|
+
S("div", T2, [
|
|
7357
7357
|
h(A.$slots, "content", {}, () => [
|
|
7358
|
-
|
|
7358
|
+
S("span", null, w(i.content), 1)
|
|
7359
7359
|
])
|
|
7360
7360
|
])
|
|
7361
7361
|
], 10, w2))), 128));
|
|
@@ -7395,7 +7395,7 @@ const k2 = {
|
|
|
7395
7395
|
return (e, t) => (m(), n("div", {
|
|
7396
7396
|
class: f(A.value)
|
|
7397
7397
|
}, [
|
|
7398
|
-
|
|
7398
|
+
S("div", F2, [
|
|
7399
7399
|
h(e.$slots, "alert-icon", {}, () => [
|
|
7400
7400
|
K(D, {
|
|
7401
7401
|
name: L.value,
|
|
@@ -7403,9 +7403,9 @@ const k2 = {
|
|
|
7403
7403
|
}, null, 8, ["name"])
|
|
7404
7404
|
])
|
|
7405
7405
|
]),
|
|
7406
|
-
|
|
7406
|
+
S("div", R2, [
|
|
7407
7407
|
h(e.$slots, "content", {}, () => [
|
|
7408
|
-
|
|
7408
|
+
S("p", x2, w(C.title), 1),
|
|
7409
7409
|
C.description ? (m(), n("p", D2, w(C.description), 1)) : O("", !0)
|
|
7410
7410
|
])
|
|
7411
7411
|
]),
|
|
@@ -7441,7 +7441,7 @@ const k2 = {
|
|
|
7441
7441
|
return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
|
|
7442
7442
|
}
|
|
7443
7443
|
return (i, e) => (m(), n("div", E2, [
|
|
7444
|
-
|
|
7444
|
+
S("div", {
|
|
7445
7445
|
class: f(C.value)
|
|
7446
7446
|
}, [
|
|
7447
7447
|
V.type === "text" ? (m(), n("p", {
|
|
@@ -7489,10 +7489,10 @@ const k2 = {
|
|
|
7489
7489
|
[V.class]: V.class
|
|
7490
7490
|
}));
|
|
7491
7491
|
return (M, A) => (m(), n("div", N2, [
|
|
7492
|
-
|
|
7492
|
+
S("span", {
|
|
7493
7493
|
class: f([{ "animate-ping-2": V.animation }, C.value])
|
|
7494
7494
|
}, null, 2),
|
|
7495
|
-
|
|
7495
|
+
S("span", {
|
|
7496
7496
|
class: f(C.value)
|
|
7497
7497
|
}, null, 2),
|
|
7498
7498
|
h(M.$slots, "default")
|
|
@@ -7617,8 +7617,8 @@ const k2 = {
|
|
|
7617
7617
|
immediate: !0
|
|
7618
7618
|
}
|
|
7619
7619
|
), (d, l) => (m(), n("div", Q2, [
|
|
7620
|
-
|
|
7621
|
-
|
|
7620
|
+
S("div", G2, [
|
|
7621
|
+
S("input", {
|
|
7622
7622
|
id: C.id,
|
|
7623
7623
|
checked: A.checked,
|
|
7624
7624
|
class: "r-checkbox-container__input",
|
|
@@ -7627,7 +7627,7 @@ const k2 = {
|
|
|
7627
7627
|
type: "checkbox",
|
|
7628
7628
|
onChange: t
|
|
7629
7629
|
}, null, 40, $2),
|
|
7630
|
-
|
|
7630
|
+
S("div", {
|
|
7631
7631
|
class: f(e.value),
|
|
7632
7632
|
"data-disabled": C.disabled
|
|
7633
7633
|
}, [
|
|
@@ -7637,8 +7637,8 @@ const k2 = {
|
|
|
7637
7637
|
}, null, 8, ["name"])
|
|
7638
7638
|
], 10, U2)
|
|
7639
7639
|
]),
|
|
7640
|
-
|
|
7641
|
-
|
|
7640
|
+
S("div", z2, [
|
|
7641
|
+
S("label", {
|
|
7642
7642
|
class: "r-checkbox-texts__label",
|
|
7643
7643
|
"data-disabled": C.disabled,
|
|
7644
7644
|
for: C.id
|
|
@@ -7678,7 +7678,7 @@ const k2 = {
|
|
|
7678
7678
|
return (e, t) => (m(), n("div", {
|
|
7679
7679
|
class: f(A.value)
|
|
7680
7680
|
}, [
|
|
7681
|
-
|
|
7681
|
+
S("div", {
|
|
7682
7682
|
class: "r-chip__content",
|
|
7683
7683
|
onClick: t[0] || (t[0] = (d) => L(d))
|
|
7684
7684
|
}, [
|
|
@@ -7691,7 +7691,7 @@ const k2 = {
|
|
|
7691
7691
|
size: 12
|
|
7692
7692
|
}, null, 8, ["aria-disabled", "name"])) : O("", !0)
|
|
7693
7693
|
]),
|
|
7694
|
-
|
|
7694
|
+
S("span", Y2, w(C.label), 1)
|
|
7695
7695
|
]),
|
|
7696
7696
|
h(e.$slots, "append", {}, () => [
|
|
7697
7697
|
C.appendIcon ? (m(), _(D, {
|
|
@@ -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 p = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1,
|
|
8066
|
+
const p = R / 2 - F / 2, W = I / 2 - B[Z] / 2 - 1, u = a1(o[y], W), c = a1(o[P], W), b = u, 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 ? u : 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: {
|
|
@@ -8112,7 +8112,7 @@ const a5 = (H) => ({
|
|
|
8112
8112
|
placement: A,
|
|
8113
8113
|
overflows: I
|
|
8114
8114
|
}], !I.every((b) => b <= 0)) {
|
|
8115
|
-
var W,
|
|
8115
|
+
var W, u;
|
|
8116
8116
|
const b = (((W = L.flip) == null ? void 0 : W.index) || 0) + 1, x = F[b];
|
|
8117
8117
|
if (x)
|
|
8118
8118
|
return {
|
|
@@ -8124,7 +8124,7 @@ const a5 = (H) => ({
|
|
|
8124
8124
|
placement: x
|
|
8125
8125
|
}
|
|
8126
8126
|
};
|
|
8127
|
-
let s = (
|
|
8127
|
+
let s = (u = p.filter((E) => E.overflows[0] <= 0).sort((E, G) => E.overflows[1] - G.overflows[1])[0]) == null ? void 0 : u.placement;
|
|
8128
8128
|
if (!s)
|
|
8129
8129
|
switch (r) {
|
|
8130
8130
|
case "bestFit": {
|
|
@@ -8762,7 +8762,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8762
8762
|
}
|
|
8763
8763
|
);
|
|
8764
8764
|
}), (k, y) => (m(), n(V1, null, [
|
|
8765
|
-
|
|
8765
|
+
S("div", {
|
|
8766
8766
|
ref_key: "trigger",
|
|
8767
8767
|
ref: A,
|
|
8768
8768
|
"aria-disabled": C.disabled,
|
|
@@ -8781,13 +8781,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8781
8781
|
},
|
|
8782
8782
|
updatePosition: Z
|
|
8783
8783
|
}, () => [
|
|
8784
|
-
|
|
8784
|
+
S("div", {
|
|
8785
8785
|
innerHTML: C.triggerContent
|
|
8786
8786
|
}, null, 8, W5)
|
|
8787
8787
|
])
|
|
8788
8788
|
], 42, E5),
|
|
8789
8789
|
(m(), _(s2, { to: "body" }, [
|
|
8790
|
-
|
|
8790
|
+
S("div", {
|
|
8791
8791
|
id: "tooltip",
|
|
8792
8792
|
ref_key: "tooltip",
|
|
8793
8793
|
ref: L,
|
|
@@ -8866,26 +8866,26 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8866
8866
|
emits: ["update:modelValue"],
|
|
8867
8867
|
setup(H, { emit: V }) {
|
|
8868
8868
|
const C = H, M = V, A = N({}), L = m1([]), i = N(!1), e = N("");
|
|
8869
|
-
function t(
|
|
8870
|
-
const [c] = Object == null ? void 0 : Object.keys(
|
|
8871
|
-
return !c || typeof
|
|
8869
|
+
function t(u) {
|
|
8870
|
+
const [c] = Object == null ? void 0 : Object.keys(u);
|
|
8871
|
+
return !c || typeof u[c] == "object" || typeof u[c] == "function" || typeof u[c] == "symbol" || typeof u[c] > "u" || Array.isArray(u[c]) || Array.isArray(u) ? !0 : ["label", "value"].includes(c);
|
|
8872
8872
|
}
|
|
8873
8873
|
const d = g(() => {
|
|
8874
|
-
const
|
|
8875
|
-
return t(
|
|
8874
|
+
const u = C.options;
|
|
8875
|
+
return t(u[0]) ? u : u.map((c) => ({
|
|
8876
8876
|
value: c,
|
|
8877
8877
|
label: String(c)
|
|
8878
8878
|
}));
|
|
8879
8879
|
}), l = g(() => {
|
|
8880
|
-
const
|
|
8881
|
-
return t(
|
|
8882
|
-
value:
|
|
8883
|
-
label: String(
|
|
8880
|
+
const u = C.modelValue;
|
|
8881
|
+
return t(u) ? u : {
|
|
8882
|
+
value: u,
|
|
8883
|
+
label: String(u)
|
|
8884
8884
|
};
|
|
8885
8885
|
}), o = N(), a = N(), r = N();
|
|
8886
|
-
function Z(
|
|
8886
|
+
function Z(u, c) {
|
|
8887
8887
|
var b, x, s;
|
|
8888
|
-
if (
|
|
8888
|
+
if (u.stopPropagation(), !C.disabled) {
|
|
8889
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;
|
|
@@ -8894,55 +8894,55 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8894
8894
|
}
|
|
8895
8895
|
}
|
|
8896
8896
|
function B() {
|
|
8897
|
-
var
|
|
8898
|
-
i.value = !1, (
|
|
8897
|
+
var u, c, b;
|
|
8898
|
+
i.value = !1, (u = o.value) == null || u.classList.remove("r-dropdown--active"), (c = o.value) == null || c.blur(), (b = a.value) == null || b.blur();
|
|
8899
8899
|
}
|
|
8900
|
-
function k(
|
|
8900
|
+
function k(u, c, b, x) {
|
|
8901
8901
|
var s;
|
|
8902
|
-
if (
|
|
8902
|
+
if (u.stopPropagation(), x(), !c.disabled) {
|
|
8903
8903
|
if (C.multiple || C.taggable) {
|
|
8904
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(
|
|
8907
|
+
y(u, c), C.closeOnSelect && (b(), B());
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
|
-
function y(
|
|
8910
|
+
function y(u, c) {
|
|
8911
8911
|
if (A.value.value === c.value) {
|
|
8912
8912
|
A.value = {}, e.value = "", M("update:modelValue", "");
|
|
8913
8913
|
return;
|
|
8914
8914
|
}
|
|
8915
|
-
e.value = c.label, A.value = c, Z(
|
|
8915
|
+
e.value = c.label, A.value = c, Z(u), M("update:modelValue", c);
|
|
8916
8916
|
}
|
|
8917
|
-
function P(
|
|
8918
|
-
if (
|
|
8917
|
+
function P(u, c, b) {
|
|
8918
|
+
if (u instanceof KeyboardEvent && u.key !== "Backspace" || e.value !== "")
|
|
8919
8919
|
return;
|
|
8920
|
-
|
|
8920
|
+
u.stopPropagation(), b();
|
|
8921
8921
|
const x = L.findIndex((s) => s.value === c.value);
|
|
8922
8922
|
L.splice(x, 1);
|
|
8923
8923
|
}
|
|
8924
|
-
function v(
|
|
8924
|
+
function v(u, c) {
|
|
8925
8925
|
var s;
|
|
8926
8926
|
if (!C.taggable)
|
|
8927
8927
|
return;
|
|
8928
|
-
|
|
8928
|
+
u.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
|
-
function R(
|
|
8935
|
-
return C.multiple || C.taggable ? L.find((c) => c.value ===
|
|
8934
|
+
function R(u) {
|
|
8935
|
+
return C.multiple || C.taggable ? L.find((c) => c.value === u.value) : A.value.value === u.value;
|
|
8936
8936
|
}
|
|
8937
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 p(
|
|
8942
|
-
C.searchable &&
|
|
8941
|
+
function p(u) {
|
|
8942
|
+
C.searchable && u(), !(C.multiple || C.taggable) && e.value === "" && (A.value = {}, M("update:modelValue", ""));
|
|
8943
8943
|
}
|
|
8944
|
-
function W(
|
|
8945
|
-
if (
|
|
8944
|
+
function W(u, c) {
|
|
8945
|
+
if (u.stopPropagation(), c(), C.multiple || C.taggable) {
|
|
8946
8946
|
L.splice(0, L.length);
|
|
8947
8947
|
return;
|
|
8948
8948
|
}
|
|
@@ -8950,11 +8950,11 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8950
8950
|
}
|
|
8951
8951
|
return X1(() => {
|
|
8952
8952
|
I();
|
|
8953
|
-
}), $(L, (
|
|
8954
|
-
M("update:modelValue",
|
|
8955
|
-
}), $(() => l.value, (
|
|
8953
|
+
}), $(L, (u) => {
|
|
8954
|
+
M("update:modelValue", u);
|
|
8955
|
+
}), $(() => l.value, (u) => {
|
|
8956
8956
|
I();
|
|
8957
|
-
}), (
|
|
8957
|
+
}), (u, c) => (m(), n("div", {
|
|
8958
8958
|
ref_key: "wrapper",
|
|
8959
8959
|
ref: r,
|
|
8960
8960
|
class: "r-dropdown-wrapper"
|
|
@@ -8972,7 +8972,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8972
8972
|
onHide: B
|
|
8973
8973
|
}, {
|
|
8974
8974
|
default: r1(({ activators: b, updatePosition: x }) => [
|
|
8975
|
-
|
|
8975
|
+
S("div", {
|
|
8976
8976
|
ref_key: "dropdown",
|
|
8977
8977
|
ref: o,
|
|
8978
8978
|
class: f(["r-dropdown", {
|
|
@@ -8984,14 +8984,14 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8984
8984
|
role: "select",
|
|
8985
8985
|
onClick: (s) => Z(s, b.click)
|
|
8986
8986
|
}, [
|
|
8987
|
-
C.prependIcon ||
|
|
8987
|
+
C.prependIcon || u.$slots.prepend ? (m(), n("div", {
|
|
8988
8988
|
key: 0,
|
|
8989
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
|
-
h(
|
|
8994
|
+
h(u.$slots, "prepend", {}, () => [
|
|
8995
8995
|
C.prependIcon ? (m(), _(D, {
|
|
8996
8996
|
key: 0,
|
|
8997
8997
|
name: C.prependIcon
|
|
@@ -8999,7 +8999,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
8999
8999
|
])
|
|
9000
9000
|
], 2)) : O("", !0),
|
|
9001
9001
|
C.taggable && L.length ? (m(), n("div", Q5, [
|
|
9002
|
-
h(
|
|
9002
|
+
h(u.$slots, "tags", {
|
|
9003
9003
|
options: L,
|
|
9004
9004
|
removeOption: P,
|
|
9005
9005
|
updatePosition: x
|
|
@@ -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
|
])) : O("", !0),
|
|
9021
|
-
Y1(
|
|
9021
|
+
Y1(S("input", {
|
|
9022
9022
|
id: C.id,
|
|
9023
9023
|
ref_key: "input",
|
|
9024
9024
|
ref: a,
|
|
@@ -9051,14 +9051,14 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9051
9051
|
size: "18"
|
|
9052
9052
|
})
|
|
9053
9053
|
], 8, U5)) : O("", !0),
|
|
9054
|
-
C.appendIcon ||
|
|
9054
|
+
C.appendIcon || u.$slots.append ? (m(), n("div", {
|
|
9055
9055
|
key: 4,
|
|
9056
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
|
-
h(
|
|
9061
|
+
h(u.$slots, "append", {}, () => [
|
|
9062
9062
|
C.appendIcon ? (m(), _(D, {
|
|
9063
9063
|
key: 0,
|
|
9064
9064
|
name: C.appendIcon
|
|
@@ -9068,7 +9068,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9068
9068
|
], 10, I5)
|
|
9069
9069
|
]),
|
|
9070
9070
|
content: r1(({ hide: b, updatePosition: x }) => [
|
|
9071
|
-
|
|
9071
|
+
S("ul", {
|
|
9072
9072
|
class: f(["r-dropdown-options", {
|
|
9073
9073
|
"r-dropdown-options--active": i.value,
|
|
9074
9074
|
[C.optionsClass]: C.optionsClass
|
|
@@ -9083,11 +9083,11 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9083
9083
|
}]),
|
|
9084
9084
|
onClick: d1((E) => k(E, s, b, x), ["prevent"])
|
|
9085
9085
|
}, [
|
|
9086
|
-
h(
|
|
9086
|
+
h(u.$slots, "option", {
|
|
9087
9087
|
isSelected: R(s)
|
|
9088
9088
|
}, () => [
|
|
9089
|
-
|
|
9090
|
-
h(
|
|
9089
|
+
S("div", K5, [
|
|
9090
|
+
h(u.$slots, "option-prepend", {}, () => [
|
|
9091
9091
|
s.prependIcon ? (m(), _(D, {
|
|
9092
9092
|
key: 0,
|
|
9093
9093
|
class: f(["r-dropdown-options__option__prepend-icon", {
|
|
@@ -9096,13 +9096,13 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9096
9096
|
name: s.prependIcon
|
|
9097
9097
|
}, null, 8, ["class", "name"])) : O("", !0)
|
|
9098
9098
|
]),
|
|
9099
|
-
|
|
9099
|
+
S("p", {
|
|
9100
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
|
-
h(
|
|
9105
|
+
h(u.$slots, "option-append", {}, () => [
|
|
9106
9106
|
R(s) && !C.hideOptionCheckIcon ? (m(), _(D, {
|
|
9107
9107
|
key: 0,
|
|
9108
9108
|
class: f(["r-dropdown-options__option__append-icon", {
|
|
@@ -9114,7 +9114,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9114
9114
|
])
|
|
9115
9115
|
], 10, z5))), 128)),
|
|
9116
9116
|
F.value.length === 0 ? (m(), n("li", q5, [
|
|
9117
|
-
h(
|
|
9117
|
+
h(u.$slots, "not-options", {}, () => [
|
|
9118
9118
|
R1(w(C.noOptionsText || "No options"), 1)
|
|
9119
9119
|
])
|
|
9120
9120
|
])) : O("", !0)
|
|
@@ -9122,7 +9122,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9122
9122
|
]),
|
|
9123
9123
|
_: 3
|
|
9124
9124
|
}),
|
|
9125
|
-
|
|
9125
|
+
u.$props.hideDetails ? O("", !0) : (m(), n("div", j5, [
|
|
9126
9126
|
C.errorMsg ? (m(), n("div", X5, w(C.errorMsg), 1)) : O("", !0),
|
|
9127
9127
|
C.hint ? (m(), n("div", Y5, w(C.hint), 1)) : O("", !0)
|
|
9128
9128
|
]))
|
|
@@ -9193,14 +9193,14 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9193
9193
|
class: f(["r-modal-overlay", e.overlayClass]),
|
|
9194
9194
|
onClick: d1(i, ["stop"])
|
|
9195
9195
|
}, [
|
|
9196
|
-
|
|
9196
|
+
S("div", {
|
|
9197
9197
|
"aria-modal": "true",
|
|
9198
9198
|
class: f(A.value),
|
|
9199
9199
|
open: C.modelValue,
|
|
9200
9200
|
role: "dialog",
|
|
9201
9201
|
style: x1(L.value)
|
|
9202
9202
|
}, [
|
|
9203
|
-
|
|
9203
|
+
S("div", L3, [
|
|
9204
9204
|
h(e.$slots, "header"),
|
|
9205
9205
|
C.icon ? (m(), n("div", M3, [
|
|
9206
9206
|
K(D, {
|
|
@@ -9210,10 +9210,10 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9210
9210
|
C.title ? (m(), n("div", A3, w(C.title), 1)) : O("", !0),
|
|
9211
9211
|
C.description ? (m(), n("div", i3, w(C.description), 1)) : O("", !0)
|
|
9212
9212
|
]),
|
|
9213
|
-
|
|
9213
|
+
S("div", e3, [
|
|
9214
9214
|
h(e.$slots, "default")
|
|
9215
9215
|
]),
|
|
9216
|
-
|
|
9216
|
+
S("div", d3, [
|
|
9217
9217
|
h(e.$slots, "actions")
|
|
9218
9218
|
])
|
|
9219
9219
|
], 14, V3)
|
|
@@ -9237,7 +9237,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9237
9237
|
class: f(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
|
|
9238
9238
|
"data-open": C.modelValue
|
|
9239
9239
|
}, [
|
|
9240
|
-
|
|
9240
|
+
S("aside", {
|
|
9241
9241
|
class: f(["r-sidebar", [C.class]]),
|
|
9242
9242
|
"data-open": C.modelValue
|
|
9243
9243
|
}, [
|
|
@@ -9306,7 +9306,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9306
9306
|
name: L.value
|
|
9307
9307
|
}, null, 8, ["name"])) : O("", !0)
|
|
9308
9308
|
]),
|
|
9309
|
-
|
|
9309
|
+
S("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", {}, () => [
|
|
@@ -9319,7 +9319,7 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9319
9319
|
])) : O("", !0)
|
|
9320
9320
|
], 2));
|
|
9321
9321
|
}
|
|
9322
|
-
}), r3 = ["id", "checked", "disabled"], a3 = /* @__PURE__ */
|
|
9322
|
+
}), r3 = ["id", "checked", "disabled"], a3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), Z3 = ["id", "for"], u3 = {
|
|
9323
9323
|
key: 0,
|
|
9324
9324
|
class: "r-switch-texts__details"
|
|
9325
9325
|
}, S3 = {
|
|
@@ -9370,10 +9370,10 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9370
9370
|
"r-switch-container--hide-details": C.hideDetails
|
|
9371
9371
|
}])
|
|
9372
9372
|
}, [
|
|
9373
|
-
|
|
9373
|
+
S("div", {
|
|
9374
9374
|
class: f(L.value)
|
|
9375
9375
|
}, [
|
|
9376
|
-
|
|
9376
|
+
S("input", {
|
|
9377
9377
|
id: C.id,
|
|
9378
9378
|
checked: A.checked,
|
|
9379
9379
|
class: "r-switch__input",
|
|
@@ -9383,12 +9383,12 @@ const E5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
|
|
|
9383
9383
|
}, null, 40, r3),
|
|
9384
9384
|
a3
|
|
9385
9385
|
], 2),
|
|
9386
|
-
|
|
9386
|
+
S("div", {
|
|
9387
9387
|
class: f(["r-switch-texts", {
|
|
9388
9388
|
[`r-switch-texts--${C.size}`]: !0
|
|
9389
9389
|
}])
|
|
9390
9390
|
}, [
|
|
9391
|
-
|
|
9391
|
+
S("label", {
|
|
9392
9392
|
id: `${C.id}-label`,
|
|
9393
9393
|
class: "r-switch-texts__label",
|
|
9394
9394
|
for: C.id
|
|
@@ -9563,7 +9563,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9563
9563
|
for: "textarea",
|
|
9564
9564
|
text: C.label
|
|
9565
9565
|
}, null, 8, ["id", "text"])) : O("", !0),
|
|
9566
|
-
|
|
9566
|
+
S("textarea", j1(i.$attrs, {
|
|
9567
9567
|
id: C.id,
|
|
9568
9568
|
class: ["r-textarea", {
|
|
9569
9569
|
"r-textarea--error": C.errorMsg,
|
|
@@ -9709,8 +9709,8 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9709
9709
|
text: C.label,
|
|
9710
9710
|
onClick: I
|
|
9711
9711
|
}, null, 8, ["id", "for", "text"])) : O("", !0),
|
|
9712
|
-
|
|
9713
|
-
|
|
9712
|
+
S("div", w3, [
|
|
9713
|
+
S("div", {
|
|
9714
9714
|
class: f(r.value)
|
|
9715
9715
|
}, [
|
|
9716
9716
|
h(p.$slots, "prepend"),
|
|
@@ -9720,7 +9720,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9720
9720
|
name: k.value,
|
|
9721
9721
|
size: 20
|
|
9722
9722
|
}, null, 8, ["class", "name"])) : O("", !0),
|
|
9723
|
-
|
|
9723
|
+
S("input", {
|
|
9724
9724
|
id: C.id,
|
|
9725
9725
|
ref_key: "inputRef",
|
|
9726
9726
|
ref: A,
|
|
@@ -9796,33 +9796,33 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9796
9796
|
]);
|
|
9797
9797
|
};
|
|
9798
9798
|
}
|
|
9799
|
-
}), x3 = { class: "r-pagination__paginator" }, D3 = { class: "r-pagination__paginator__per-page" }, _3 = { class: "r-pagination__paginator__info" }, E3 = ["disabled"], W3 = /* @__PURE__ */
|
|
9799
|
+
}), x3 = { class: "r-pagination__paginator" }, D3 = { class: "r-pagination__paginator__per-page" }, _3 = { class: "r-pagination__paginator__info" }, E3 = ["disabled"], W3 = /* @__PURE__ */ S("path", {
|
|
9800
9800
|
d: "M0 0h24v24H0z",
|
|
9801
9801
|
fill: "none",
|
|
9802
9802
|
stroke: "none"
|
|
9803
|
-
}, null, -1), N3 = /* @__PURE__ */
|
|
9803
|
+
}, null, -1), N3 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), I3 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), Q3 = [
|
|
9804
9804
|
W3,
|
|
9805
9805
|
N3,
|
|
9806
9806
|
I3
|
|
9807
|
-
], G3 = ["disabled"], $3 = /* @__PURE__ */
|
|
9807
|
+
], G3 = ["disabled"], $3 = /* @__PURE__ */ S("path", {
|
|
9808
9808
|
d: "M0 0h24v24H0z",
|
|
9809
9809
|
fill: "none",
|
|
9810
9810
|
stroke: "none"
|
|
9811
|
-
}, null, -1), U3 = /* @__PURE__ */
|
|
9811
|
+
}, null, -1), U3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), z3 = [
|
|
9812
9812
|
$3,
|
|
9813
9813
|
U3
|
|
9814
|
-
], K3 = ["disabled"], q3 = /* @__PURE__ */
|
|
9814
|
+
], K3 = ["disabled"], q3 = /* @__PURE__ */ S("path", {
|
|
9815
9815
|
d: "M0 0h24v24H0z",
|
|
9816
9816
|
fill: "none",
|
|
9817
9817
|
stroke: "none"
|
|
9818
|
-
}, null, -1), j3 = /* @__PURE__ */
|
|
9818
|
+
}, null, -1), j3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), X3 = [
|
|
9819
9819
|
q3,
|
|
9820
9820
|
j3
|
|
9821
|
-
], Y3 = ["disabled"], J3 = /* @__PURE__ */
|
|
9821
|
+
], Y3 = ["disabled"], J3 = /* @__PURE__ */ S("path", {
|
|
9822
9822
|
d: "M0 0h24v24H0z",
|
|
9823
9823
|
fill: "none",
|
|
9824
9824
|
stroke: "none"
|
|
9825
|
-
}, null, -1), C0 = /* @__PURE__ */
|
|
9825
|
+
}, null, -1), C0 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), H0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), V0 = [
|
|
9826
9826
|
J3,
|
|
9827
9827
|
C0,
|
|
9828
9828
|
H0
|
|
@@ -9855,9 +9855,9 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9855
9855
|
return (d, l) => (m(), n("div", {
|
|
9856
9856
|
class: f(["r-pagination", [`r-pagination--${C.position}`]])
|
|
9857
9857
|
}, [
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9858
|
+
S("div", x3, [
|
|
9859
|
+
S("div", D3, [
|
|
9860
|
+
S("span", null, w(C.itemsPerPageText), 1),
|
|
9861
9861
|
K(J5, {
|
|
9862
9862
|
modelValue: A.value,
|
|
9863
9863
|
"onUpdate:modelValue": [
|
|
@@ -9870,8 +9870,8 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9870
9870
|
options: C.perPageOptions
|
|
9871
9871
|
}, null, 8, ["modelValue", "options"])
|
|
9872
9872
|
]),
|
|
9873
|
-
|
|
9874
|
-
|
|
9873
|
+
S("span", _3, w(C.infoText), 1),
|
|
9874
|
+
S("button", {
|
|
9875
9875
|
class: "r-pagination__paginator__first",
|
|
9876
9876
|
disabled: C.page === 1,
|
|
9877
9877
|
onClick: l[1] || (l[1] = (o) => e(1))
|
|
@@ -9891,7 +9891,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9891
9891
|
}, Q3, 2))
|
|
9892
9892
|
])
|
|
9893
9893
|
], 8, E3),
|
|
9894
|
-
|
|
9894
|
+
S("button", {
|
|
9895
9895
|
class: "r-pagination__paginator__prev",
|
|
9896
9896
|
disabled: C.page === 1,
|
|
9897
9897
|
onClick: l[2] || (l[2] = (o) => e(+C.page - 1))
|
|
@@ -9911,7 +9911,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9911
9911
|
}, z3, 2))
|
|
9912
9912
|
])
|
|
9913
9913
|
], 8, G3),
|
|
9914
|
-
|
|
9914
|
+
S("button", {
|
|
9915
9915
|
class: "r-pagination__paginator__next",
|
|
9916
9916
|
disabled: C.page === L.value,
|
|
9917
9917
|
onClick: l[3] || (l[3] = (o) => e(+C.page + 1))
|
|
@@ -9931,7 +9931,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = {
|
|
|
9931
9931
|
}, X3, 2))
|
|
9932
9932
|
])
|
|
9933
9933
|
], 8, K3),
|
|
9934
|
-
|
|
9934
|
+
S("button", {
|
|
9935
9935
|
class: "r-pagination__paginator__last",
|
|
9936
9936
|
disabled: C.page === L.value,
|
|
9937
9937
|
onClick: l[4] || (l[4] = (o) => e(C.totalItems / C.perPage))
|