@solfacil/girassol 0.10.0-beta-tabs-key.1 → 0.10.0
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/girassol.es.js +75 -73
- package/dist/girassol.umd.js +1 -1
- package/package.json +1 -1
package/dist/girassol.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, openBlock as g, createElementBlock as y, normalizeClass as B, createElementVNode as b, toDisplayString as O, useSlots as ht, computed as x, unref as u, renderSlot as C, createVNode as _, createCommentVNode as F, createBlock as ee, withCtx as q, ref as R, withDirectives as Ce, onMounted as
|
|
1
|
+
import { defineComponent as J, openBlock as g, createElementBlock as y, normalizeClass as B, createElementVNode as b, toDisplayString as O, useSlots as ht, computed as x, unref as u, renderSlot as C, createVNode as _, createCommentVNode as F, createBlock as ee, withCtx as q, ref as R, withDirectives as Ce, onMounted as Fe, provide as Pi, isRef as Ue, watch as me, getCurrentInstance as ke, onBeforeUnmount as ki, toRef as Le, resolveDynamicComponent as ni, h as gt, inject as Bi, reactive as ot, onUnmounted as li, nextTick as Ee, warn as Oi, watchEffect as Yi, markRaw as fn, mergeProps as Be, vShow as Pe, createTextVNode as re, vModelText as bn, Fragment as Ae, renderList as he, getCurrentScope as hn, onScopeDispose as Dn, withModifiers as Ne, normalizeStyle as Nt, withKeys as De, resolveComponent as Sn, Transition as ai, createSlots as An, Teleport as xn, render as Vi } from "vue";
|
|
2
2
|
const wn = /* @__PURE__ */ b("path", {
|
|
3
3
|
class: "path",
|
|
4
4
|
d: "M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"
|
|
@@ -434,7 +434,7 @@ function el(e, t) {
|
|
|
434
434
|
function He(e) {
|
|
435
435
|
return typeof e == "function";
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function et(e) {
|
|
438
438
|
return e == null;
|
|
439
439
|
}
|
|
440
440
|
const Ge = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
|
@@ -453,7 +453,7 @@ const ut = Symbol("vee-validate-form"), ll = Symbol("vee-validate-field-instance
|
|
|
453
453
|
function Et(e) {
|
|
454
454
|
return He(e) && !!e.__locatorRef;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function tt(e) {
|
|
457
457
|
return !!e && He(e.validate);
|
|
458
458
|
}
|
|
459
459
|
function $e(e) {
|
|
@@ -594,7 +594,7 @@ function Te(e, t, i) {
|
|
|
594
594
|
l[n[a]] = i;
|
|
595
595
|
return;
|
|
596
596
|
}
|
|
597
|
-
(!(n[a] in l) ||
|
|
597
|
+
(!(n[a] in l) || et(l[n[a]])) && (l[n[a]] = Fi(n[a + 1]) ? [] : {}), l = l[n[a]];
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function Zt(e, t) {
|
|
@@ -616,7 +616,7 @@ function Mt(e, t) {
|
|
|
616
616
|
Zt(n, i[a]);
|
|
617
617
|
break;
|
|
618
618
|
}
|
|
619
|
-
if (!(i[a] in n) ||
|
|
619
|
+
if (!(i[a] in n) || et(n[i[a]]))
|
|
620
620
|
break;
|
|
621
621
|
n = n[i[a]];
|
|
622
622
|
}
|
|
@@ -778,7 +778,7 @@ async function en(e, t, i = {}) {
|
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
780
|
async function fl(e, t) {
|
|
781
|
-
if (
|
|
781
|
+
if (tt(e.rules))
|
|
782
782
|
return bl(t, e.rules, { bails: e.bails });
|
|
783
783
|
if (He(e.rules) || Array.isArray(e.rules)) {
|
|
784
784
|
const s = {
|
|
@@ -990,7 +990,7 @@ function ln(e) {
|
|
|
990
990
|
logo: "https://vee-validate.logaretm.com/v4/logo.png"
|
|
991
991
|
}, Ll);
|
|
992
992
|
}
|
|
993
|
-
const
|
|
993
|
+
const it = {}, nt = {};
|
|
994
994
|
let ze;
|
|
995
995
|
const Qe = dl(() => {
|
|
996
996
|
setTimeout(async () => {
|
|
@@ -1005,8 +1005,8 @@ function Tl(e) {
|
|
|
1005
1005
|
return;
|
|
1006
1006
|
ln(i);
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1009
|
-
delete
|
|
1008
|
+
it[e.formId] = Object.assign({}, e), it[e.formId]._vm = t, li(() => {
|
|
1009
|
+
delete it[e.formId], Qe();
|
|
1010
1010
|
}), Qe();
|
|
1011
1011
|
}
|
|
1012
1012
|
function zl(e) {
|
|
@@ -1017,8 +1017,8 @@ function zl(e) {
|
|
|
1017
1017
|
return;
|
|
1018
1018
|
ln(i);
|
|
1019
1019
|
}
|
|
1020
|
-
|
|
1021
|
-
delete
|
|
1020
|
+
nt[e.id] = Object.assign({}, e), nt[e.id]._vm = t, li(() => {
|
|
1021
|
+
delete nt[e.id], Qe();
|
|
1022
1022
|
}), Qe();
|
|
1023
1023
|
}
|
|
1024
1024
|
const Ve = "vee-validate-inspector", be = {
|
|
@@ -1071,7 +1071,7 @@ function Ll(e) {
|
|
|
1071
1071
|
}), e.on.getInspectorTree((t) => {
|
|
1072
1072
|
if (t.inspectorId !== Ve)
|
|
1073
1073
|
return;
|
|
1074
|
-
const i = Object.values(
|
|
1074
|
+
const i = Object.values(it), n = Object.values(nt);
|
|
1075
1075
|
t.rootNodes = [
|
|
1076
1076
|
...i.map(Cl),
|
|
1077
1077
|
...n.map((l) => Ii(l))
|
|
@@ -1172,9 +1172,9 @@ function an(e, t, i = !0) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
function Gl(e) {
|
|
1174
1174
|
try {
|
|
1175
|
-
const t = JSON.parse(atob(e)), i =
|
|
1175
|
+
const t = JSON.parse(atob(e)), i = it[t.f];
|
|
1176
1176
|
if (!i && t.ff) {
|
|
1177
|
-
const l =
|
|
1177
|
+
const l = nt[t.ff];
|
|
1178
1178
|
return l ? {
|
|
1179
1179
|
type: t.type,
|
|
1180
1180
|
field: l
|
|
@@ -1286,7 +1286,7 @@ function un(e, t, i) {
|
|
|
1286
1286
|
}, le = x(() => {
|
|
1287
1287
|
let A = u(t);
|
|
1288
1288
|
const X = u(L == null ? void 0 : L.schema);
|
|
1289
|
-
return X && !
|
|
1289
|
+
return X && !tt(X) && (A = kl(X, u(e)) || A), tt(A) || He(A) || Array.isArray(A) ? A : Ki(A);
|
|
1290
1290
|
});
|
|
1291
1291
|
async function ue(A) {
|
|
1292
1292
|
var X, se;
|
|
@@ -1304,7 +1304,7 @@ function un(e, t, i) {
|
|
|
1304
1304
|
const se = ci(A);
|
|
1305
1305
|
D.value = se, !c && X && ce();
|
|
1306
1306
|
}
|
|
1307
|
-
|
|
1307
|
+
Fe(() => {
|
|
1308
1308
|
if (l)
|
|
1309
1309
|
return ce();
|
|
1310
1310
|
(!L || !L.validateSchema) && ge();
|
|
@@ -1378,10 +1378,10 @@ function un(e, t, i) {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
const ve = x(() => {
|
|
1380
1380
|
const A = le.value;
|
|
1381
|
-
return !A || He(A) ||
|
|
1382
|
-
const pe = jl(A[se]).map((xe) => xe.__locatorRef).reduce((xe,
|
|
1383
|
-
const dt = oe(L.values,
|
|
1384
|
-
return dt !== void 0 && (xe[
|
|
1381
|
+
return !A || He(A) || tt(A) || Array.isArray(A) ? {} : Object.keys(A).reduce((X, se) => {
|
|
1382
|
+
const pe = jl(A[se]).map((xe) => xe.__locatorRef).reduce((xe, Re) => {
|
|
1383
|
+
const dt = oe(L.values, Re) || L.values[Re];
|
|
1384
|
+
return dt !== void 0 && (xe[Re] = dt), xe;
|
|
1385
1385
|
}, {});
|
|
1386
1386
|
return Object.assign(X, pe), X;
|
|
1387
1387
|
}, {});
|
|
@@ -1638,10 +1638,10 @@ function Ul(e) {
|
|
|
1638
1638
|
};
|
|
1639
1639
|
if (ne.results[K] = Se, Se.valid || (ne.errors[K] = Se.errors[0]), !fe)
|
|
1640
1640
|
return S(K, we), ne;
|
|
1641
|
-
if (T(fe, (
|
|
1641
|
+
if (T(fe, (Je) => Je.meta.valid = Se.valid), j === "silent")
|
|
1642
1642
|
return ne;
|
|
1643
|
-
const vn = Array.isArray(fe) ? fe.some((
|
|
1644
|
-
return j === "validated-only" && !vn || T(fe, (
|
|
1643
|
+
const vn = Array.isArray(fe) ? fe.some((Je) => Je.meta.validated) : fe.meta.validated;
|
|
1644
|
+
return j === "validated-only" && !vn || T(fe, (Je) => Je.setState({ errors: Se.errors })), ne;
|
|
1645
1645
|
}, { valid: m.valid, results: {}, errors: {} });
|
|
1646
1646
|
});
|
|
1647
1647
|
function ce(m) {
|
|
@@ -1692,7 +1692,7 @@ function Ul(e) {
|
|
|
1692
1692
|
keepValuesOnUnmount: f,
|
|
1693
1693
|
validateSchema: u(te) ? ue : void 0,
|
|
1694
1694
|
validate: It,
|
|
1695
|
-
register:
|
|
1695
|
+
register: Re,
|
|
1696
1696
|
unregister: dt,
|
|
1697
1697
|
setFieldErrorBag: I,
|
|
1698
1698
|
validateField: xt,
|
|
@@ -1797,7 +1797,7 @@ function Ul(e) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function Re(m) {
|
|
1801
1801
|
const j = u(m.name);
|
|
1802
1802
|
pe(m, j), Ue(m.name) && me(m.name, async (Q, H) => {
|
|
1803
1803
|
await Ee(), xe(m, H), pe(m, Q), (d.value[H] || d.value[Q]) && (S(H, void 0), xt(Q)), await Ee(), Z(H) || Mt(c, H);
|
|
@@ -1863,7 +1863,7 @@ function Ul(e) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
async function ji() {
|
|
1865
1865
|
const m = u(te);
|
|
1866
|
-
return m ?
|
|
1866
|
+
return m ? tt(m) ? await Sl(m, c) : await Al(m, c, {
|
|
1867
1867
|
names: p.value,
|
|
1868
1868
|
bailsMap: L.value
|
|
1869
1869
|
}) : { valid: !0, results: {}, errors: {} };
|
|
@@ -1871,7 +1871,7 @@ function Ul(e) {
|
|
|
1871
1871
|
const yn = ye((m, { evt: j }) => {
|
|
1872
1872
|
qi(j) && j.target.submit();
|
|
1873
1873
|
});
|
|
1874
|
-
return
|
|
1874
|
+
return Fe(() => {
|
|
1875
1875
|
if (e != null && e.initialErrors && P(e.initialErrors), e != null && e.initialTouched && X(e.initialTouched), e != null && e.validateOnMount) {
|
|
1876
1876
|
It();
|
|
1877
1877
|
return;
|
|
@@ -2112,7 +2112,7 @@ function Xl(e) {
|
|
|
2112
2112
|
w.splice(f, 1), t == null || t.unsetInitialValue(D + `[${f}]`), t == null || t.setFieldValue(D, w), i.value.splice(f, 1), r();
|
|
2113
2113
|
}
|
|
2114
2114
|
function N(f) {
|
|
2115
|
-
const D = u(e), G = oe(t == null ? void 0 : t.values, D), w =
|
|
2115
|
+
const D = u(e), G = oe(t == null ? void 0 : t.values, D), w = et(G) ? [] : G;
|
|
2116
2116
|
if (!Array.isArray(w))
|
|
2117
2117
|
return;
|
|
2118
2118
|
const Y = [...w];
|
|
@@ -2143,14 +2143,14 @@ function Xl(e) {
|
|
|
2143
2143
|
!Array.isArray(w) || w.length - 1 < f || (t == null || t.setFieldValue(`${G}[${f}]`, D), t == null || t.validate({ mode: "validated-only" }));
|
|
2144
2144
|
}
|
|
2145
2145
|
function p(f) {
|
|
2146
|
-
const D = u(e), G = oe(t == null ? void 0 : t.values, D), w =
|
|
2146
|
+
const D = u(e), G = oe(t == null ? void 0 : t.values, D), w = et(G) ? [] : G;
|
|
2147
2147
|
if (!Array.isArray(w))
|
|
2148
2148
|
return;
|
|
2149
2149
|
const Y = [f, ...w];
|
|
2150
2150
|
t == null || t.stageInitialValue(D + `[${Y.length - 1}]`, f), t == null || t.setFieldValue(D, Y), i.value.unshift(c(f)), r();
|
|
2151
2151
|
}
|
|
2152
2152
|
function L(f, D) {
|
|
2153
|
-
const G = u(e), w = oe(t == null ? void 0 : t.values, G), Y =
|
|
2153
|
+
const G = u(e), w = oe(t == null ? void 0 : t.values, G), Y = et(w) ? [] : [...w];
|
|
2154
2154
|
if (!Array.isArray(w) || !(f in w) || !(D in w))
|
|
2155
2155
|
return;
|
|
2156
2156
|
const W = [...i.value], te = W[f];
|
|
@@ -2619,7 +2619,7 @@ Yt.install = (e) => {
|
|
|
2619
2619
|
};
|
|
2620
2620
|
const ba = ["id", "data-testid", "checked", "value", "name"], ha = ["for"], Da = {
|
|
2621
2621
|
inheritAttrs: !1
|
|
2622
|
-
},
|
|
2622
|
+
}, lt = /* @__PURE__ */ J({
|
|
2623
2623
|
...Da,
|
|
2624
2624
|
__name: "Radio",
|
|
2625
2625
|
props: {
|
|
@@ -2721,7 +2721,7 @@ const Sa = ["id", "data-testid", "aria-labelledby"], Aa = ["id", "data-testid"],
|
|
|
2721
2721
|
(g(!0), y(Ae, null, he(e.radios, (d, v) => {
|
|
2722
2722
|
var Z;
|
|
2723
2723
|
return g(), y("li", { key: v }, [
|
|
2724
|
-
_(
|
|
2724
|
+
_(lt, Be(N.$attrs, {
|
|
2725
2725
|
id: (Z = d == null ? void 0 : d.id) != null ? Z : `${d.value}`,
|
|
2726
2726
|
class: ["radio", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
|
|
2727
2727
|
name: d.name,
|
|
@@ -2746,8 +2746,8 @@ const Sa = ["id", "data-testid", "aria-labelledby"], Aa = ["id", "data-testid"],
|
|
|
2746
2746
|
], 8, Sa));
|
|
2747
2747
|
}
|
|
2748
2748
|
});
|
|
2749
|
-
|
|
2750
|
-
e.component("SolRadio",
|
|
2749
|
+
lt.install = (e) => {
|
|
2750
|
+
e.component("SolRadio", lt);
|
|
2751
2751
|
};
|
|
2752
2752
|
Vt.install = (e) => {
|
|
2753
2753
|
e.component("SolRadioGroup", Vt);
|
|
@@ -2911,9 +2911,9 @@ function cn(e) {
|
|
|
2911
2911
|
return typeof e == "function" ? x(e) : R(e);
|
|
2912
2912
|
}
|
|
2913
2913
|
function Ea(e, t = !0) {
|
|
2914
|
-
ke() ?
|
|
2914
|
+
ke() ? Fe(e) : t ? e() : Ee(e);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function _e(e) {
|
|
2917
2917
|
var t;
|
|
2918
2918
|
const i = Ut(e);
|
|
2919
2919
|
return (t = i == null ? void 0 : i.$el) != null ? t : i;
|
|
@@ -2922,12 +2922,12 @@ const mi = ct ? window : void 0;
|
|
|
2922
2922
|
ct && window.document;
|
|
2923
2923
|
ct && window.navigator;
|
|
2924
2924
|
ct && window.location;
|
|
2925
|
-
function
|
|
2925
|
+
function Ke(...e) {
|
|
2926
2926
|
let t, i, n, l;
|
|
2927
2927
|
if (Ga(e[0]) ? ([i, n, l] = e, t = mi) : [t, i, n, l] = e, !t)
|
|
2928
2928
|
return Lt;
|
|
2929
2929
|
let a = Lt;
|
|
2930
|
-
const s = me(() =>
|
|
2930
|
+
const s = me(() => _e(t), (r) => {
|
|
2931
2931
|
a(), r && (r.addEventListener(i, n, l), a = () => {
|
|
2932
2932
|
r.removeEventListener(i, n, l), a = Lt;
|
|
2933
2933
|
});
|
|
@@ -2944,26 +2944,26 @@ function dn(e, t, i = {}) {
|
|
|
2944
2944
|
let r;
|
|
2945
2945
|
const c = (d) => {
|
|
2946
2946
|
n.clearTimeout(r);
|
|
2947
|
-
const v =
|
|
2947
|
+
const v = _e(e);
|
|
2948
2948
|
!v || v === d.target || d.composedPath().includes(v) || !o.value || t(d);
|
|
2949
2949
|
}, M = (d) => l && l.some((v) => {
|
|
2950
|
-
const Z =
|
|
2950
|
+
const Z = _e(v);
|
|
2951
2951
|
return Z && (d.target === Z || d.composedPath().includes(Z));
|
|
2952
2952
|
}), N = [
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
const v =
|
|
2953
|
+
Ke(n, "click", c, { passive: !0, capture: a }),
|
|
2954
|
+
Ke(n, "pointerdown", (d) => {
|
|
2955
|
+
const v = _e(e);
|
|
2956
2956
|
o.value = !!v && !d.composedPath().includes(v) && !M(d);
|
|
2957
2957
|
}, { passive: !0 }),
|
|
2958
|
-
|
|
2958
|
+
Ke(n, "pointerup", (d) => {
|
|
2959
2959
|
if (d.button === 0) {
|
|
2960
2960
|
const v = d.composedPath();
|
|
2961
2961
|
d.composedPath = () => v, r = n.setTimeout(() => c(d), 50);
|
|
2962
2962
|
}
|
|
2963
2963
|
}, { passive: !0 }),
|
|
2964
|
-
s &&
|
|
2964
|
+
s && Ke(n, "blur", (d) => {
|
|
2965
2965
|
var v;
|
|
2966
|
-
const Z =
|
|
2966
|
+
const Z = _e(e);
|
|
2967
2967
|
((v = document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !(Z != null && Z.contains(document.activeElement)) && t(d);
|
|
2968
2968
|
})
|
|
2969
2969
|
].filter(Boolean);
|
|
@@ -3007,7 +3007,7 @@ function Oa(e, t = !1) {
|
|
|
3007
3007
|
});
|
|
3008
3008
|
const a = () => {
|
|
3009
3009
|
const o = Ut(e);
|
|
3010
|
-
!o || i.value || (zi && (n =
|
|
3010
|
+
!o || i.value || (zi && (n = Ke(o, "touchmove", Ba, { passive: !1 })), o.style.overflow = "hidden", i.value = !0);
|
|
3011
3011
|
}, s = () => {
|
|
3012
3012
|
const o = Ut(e);
|
|
3013
3013
|
!o || !i.value || (zi && (n == null || n()), o.style.overflow = l, i.value = !1);
|
|
@@ -3949,12 +3949,14 @@ const fo = ["id", "data-testid"], bo = ["data-testid"], Jt = /* @__PURE__ */ J({
|
|
|
3949
3949
|
t("update:tabList", d);
|
|
3950
3950
|
}
|
|
3951
3951
|
function M() {
|
|
3952
|
-
if (i.tabList.some(({ disabled:
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3952
|
+
if (!i.tabList.some(({ disabled: I, active: d }) => !I && d)) {
|
|
3953
|
+
const I = i.tabList.findIndex(({ disabled: v }) => !v), d = i.tabList.map((v, Z) => Z === I ? { ...v, active: !0 } : v);
|
|
3954
|
+
t("update:tabList", d);
|
|
3955
|
+
}
|
|
3956
3956
|
}
|
|
3957
|
-
return (
|
|
3957
|
+
return Fe(() => {
|
|
3958
|
+
M();
|
|
3959
|
+
}), (N, I) => (g(), y("div", {
|
|
3958
3960
|
id: `tabs-${e.id}`,
|
|
3959
3961
|
"data-testid": `tabs-${e.id}`,
|
|
3960
3962
|
class: "sol-tabs-core",
|
|
@@ -3967,7 +3969,7 @@ const fo = ["id", "data-testid"], bo = ["data-testid"], Jt = /* @__PURE__ */ J({
|
|
|
3967
3969
|
role: "tablist",
|
|
3968
3970
|
class: B(["tabs-header", { "-only-line": e.onlyLine }])
|
|
3969
3971
|
}, [
|
|
3970
|
-
(g(!0), y(Ae, null, he(
|
|
3972
|
+
(g(!0), y(Ae, null, he(e.tabList, ({ label: d, active: v, disabled: Z }, p) => (g(), ee(vo, {
|
|
3971
3973
|
id: `${e.id}-${p}`,
|
|
3972
3974
|
key: `tab-item-${p}`,
|
|
3973
3975
|
label: d,
|
|
@@ -4000,7 +4002,7 @@ const fo = ["id", "data-testid"], bo = ["data-testid"], Jt = /* @__PURE__ */ J({
|
|
|
4000
4002
|
Jt.install = (e) => {
|
|
4001
4003
|
e.component("SolTabs", Jt);
|
|
4002
4004
|
};
|
|
4003
|
-
const ho = ["id", "data-testid"], Do = ["id", "aria-expanded"], So = ["id", "data-testid", "aria-labelledby"],
|
|
4005
|
+
const ho = ["id", "data-testid"], Do = ["id", "aria-expanded"], So = ["id", "data-testid", "aria-labelledby"], at = /* @__PURE__ */ J({
|
|
4004
4006
|
__name: "Menu",
|
|
4005
4007
|
props: {
|
|
4006
4008
|
id: null,
|
|
@@ -4432,7 +4434,7 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4432
4434
|
name: (A = e.dataIdentifier.inputName) != null ? A : e.id,
|
|
4433
4435
|
onChange: (xe) => ce(U)
|
|
4434
4436
|
}, null, 8, ["id", "label", "checked", "value", "name", "onChange"])) : F("", !0),
|
|
4435
|
-
e.selectMode === "radio" ? (g(), ee(
|
|
4437
|
+
e.selectMode === "radio" ? (g(), ee(lt, {
|
|
4436
4438
|
key: 1,
|
|
4437
4439
|
id: `listitem-${U[(X = e.dataIdentifier) == null ? void 0 : X.key]}`,
|
|
4438
4440
|
"hide-label": !0,
|
|
@@ -4446,7 +4448,7 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4446
4448
|
}),
|
|
4447
4449
|
"action-button": q(({ arias: U, data: k }) => [
|
|
4448
4450
|
C(T.$slots, "action-button", { arias: U }, () => [
|
|
4449
|
-
_(
|
|
4451
|
+
_(at, {
|
|
4450
4452
|
id: `listitem-${e.id}-${P}`,
|
|
4451
4453
|
position: "left"
|
|
4452
4454
|
}, {
|
|
@@ -4529,8 +4531,8 @@ const ko = { name: "material-symbols-more-vert", render: Po }, Bo = ["id", "data
|
|
|
4529
4531
|
qt.install = (e) => {
|
|
4530
4532
|
e.component("SolList", qt);
|
|
4531
4533
|
};
|
|
4532
|
-
|
|
4533
|
-
e.component("SolMenu",
|
|
4534
|
+
at.install = (e) => {
|
|
4535
|
+
e.component("SolMenu", at);
|
|
4534
4536
|
};
|
|
4535
4537
|
const Oo = ["id"], _t = /* @__PURE__ */ J({
|
|
4536
4538
|
__name: "MenuItem",
|
|
@@ -4611,7 +4613,7 @@ const Wo = { class: "label-container" }, Uo = { class: "label" }, Kt = /* @__PUR
|
|
|
4611
4613
|
linkItems: null
|
|
4612
4614
|
},
|
|
4613
4615
|
setup(e) {
|
|
4614
|
-
return (t, i) => (g(), ee(
|
|
4616
|
+
return (t, i) => (g(), ee(at, {
|
|
4615
4617
|
id: `navigation-${e.id}`,
|
|
4616
4618
|
class: "sol-menu-navigation-links-core"
|
|
4617
4619
|
}, {
|
|
@@ -5092,7 +5094,7 @@ function Lu(e, t) {
|
|
|
5092
5094
|
function s() {
|
|
5093
5095
|
clearInterval(i.intervalId), clearTimeout(i.id), n.value = 100;
|
|
5094
5096
|
}
|
|
5095
|
-
return
|
|
5097
|
+
return Fe(() => {
|
|
5096
5098
|
if (t <= 0)
|
|
5097
5099
|
return !1;
|
|
5098
5100
|
}), li(() => {
|
|
@@ -5227,7 +5229,7 @@ const Xu = { name: "material-symbols-error-circle-rounded", render: Qu }, Fu = [
|
|
|
5227
5229
|
function r() {
|
|
5228
5230
|
i();
|
|
5229
5231
|
}
|
|
5230
|
-
|
|
5232
|
+
Fe(() => {
|
|
5231
5233
|
i();
|
|
5232
5234
|
});
|
|
5233
5235
|
function c() {
|
|
@@ -5314,7 +5316,7 @@ const Xu = { name: "material-symbols-error-circle-rounded", render: Qu }, Fu = [
|
|
|
5314
5316
|
}, 8, ["name"]));
|
|
5315
5317
|
}
|
|
5316
5318
|
});
|
|
5317
|
-
const
|
|
5319
|
+
const st = {
|
|
5318
5320
|
"top-left": [],
|
|
5319
5321
|
"top-right": [],
|
|
5320
5322
|
"top-center": [],
|
|
@@ -5326,7 +5328,7 @@ function er() {
|
|
|
5326
5328
|
gn(0);
|
|
5327
5329
|
}
|
|
5328
5330
|
function gn(e = 2) {
|
|
5329
|
-
Object.entries(
|
|
5331
|
+
Object.entries(st).forEach(([t, i]) => {
|
|
5330
5332
|
i.length > e && i.map((l) => {
|
|
5331
5333
|
var a;
|
|
5332
5334
|
return (a = l.toastVNode.props) == null ? void 0 : a.id;
|
|
@@ -5341,7 +5343,7 @@ function ir(e, t = We) {
|
|
|
5341
5343
|
return e ? nr({ ...e, position: i }) : t;
|
|
5342
5344
|
}
|
|
5343
5345
|
function cr() {
|
|
5344
|
-
const t =
|
|
5346
|
+
const t = qe(0), i = qe(0, "success"), n = qe(0, "error"), l = qe(0, "warning"), a = qe(0, "informative");
|
|
5345
5347
|
return {
|
|
5346
5348
|
createToast: t,
|
|
5347
5349
|
createErrorToast: n,
|
|
@@ -5351,7 +5353,7 @@ function cr() {
|
|
|
5351
5353
|
clearAllToasts: er
|
|
5352
5354
|
};
|
|
5353
5355
|
}
|
|
5354
|
-
function
|
|
5356
|
+
function qe(e, t) {
|
|
5355
5357
|
return function(i, n) {
|
|
5356
5358
|
const l = e++, a = ir({ ...n, type: t });
|
|
5357
5359
|
return gn(), lr(l, a, tr(i)), {
|
|
@@ -5369,13 +5371,13 @@ function nr(e) {
|
|
|
5369
5371
|
}
|
|
5370
5372
|
function lr(e, t, i) {
|
|
5371
5373
|
setTimeout(() => {
|
|
5372
|
-
const n = sr(t,
|
|
5374
|
+
const n = sr(t, st, Mn), l = document.createElement("div");
|
|
5373
5375
|
document.body.appendChild(l);
|
|
5374
5376
|
const a = _(
|
|
5375
5377
|
Ku,
|
|
5376
5378
|
ar(t, e, n, gi, i)
|
|
5377
5379
|
);
|
|
5378
|
-
Vi(a, l),
|
|
5380
|
+
Vi(a, l), st[t.position].push({ toastVNode: a, container: l }), a.component && (a.component.props.visible = !0);
|
|
5379
5381
|
}, 1);
|
|
5380
5382
|
}
|
|
5381
5383
|
function ar(e, t, i, n, l) {
|
|
@@ -5408,7 +5410,7 @@ function or(e, t, i, n) {
|
|
|
5408
5410
|
}
|
|
5409
5411
|
function gi(e, t) {
|
|
5410
5412
|
var r;
|
|
5411
|
-
const i =
|
|
5413
|
+
const i = st[t], n = i.findIndex(
|
|
5412
5414
|
({ toastVNode: c }) => {
|
|
5413
5415
|
var M;
|
|
5414
5416
|
return e === ((M = c == null ? void 0 : c.props) == null ? void 0 : M.id);
|
|
@@ -5417,7 +5419,7 @@ function gi(e, t) {
|
|
|
5417
5419
|
if (n === -1)
|
|
5418
5420
|
return;
|
|
5419
5421
|
const { container: l, toastVNode: a } = i[n], s = (r = a == null ? void 0 : a.el) == null ? void 0 : r.offsetHeight;
|
|
5420
|
-
if (
|
|
5422
|
+
if (st[t].splice(n, 1), or(n, i, t, s), !a.component)
|
|
5421
5423
|
return;
|
|
5422
5424
|
const o = a.component.props;
|
|
5423
5425
|
o.visible = !1, o.onClose && o.onClose(), setTimeout(() => {
|
|
@@ -5461,7 +5463,7 @@ const Ei = {
|
|
|
5461
5463
|
SolInputTextarea: Ot,
|
|
5462
5464
|
SolInputText: yt,
|
|
5463
5465
|
SolInputTextPassword: Bt,
|
|
5464
|
-
SolRadio:
|
|
5466
|
+
SolRadio: lt,
|
|
5465
5467
|
SolRadioGroup: Vt,
|
|
5466
5468
|
SolCheckbox: Xe,
|
|
5467
5469
|
SolCheckboxGroup: Wt,
|
|
@@ -5474,7 +5476,7 @@ const Ei = {
|
|
|
5474
5476
|
SolAccordion: Rt,
|
|
5475
5477
|
SolList: qt,
|
|
5476
5478
|
SolTabs: Jt,
|
|
5477
|
-
SolMenu:
|
|
5479
|
+
SolMenu: at,
|
|
5478
5480
|
SolMenuItem: _t,
|
|
5479
5481
|
SolMenuItemLink: bt,
|
|
5480
5482
|
SolMenuNavigationLinks: Kt,
|
|
@@ -5498,13 +5500,13 @@ export {
|
|
|
5498
5500
|
Bt as SolInputTextPassword,
|
|
5499
5501
|
Ot as SolInputTextarea,
|
|
5500
5502
|
qt as SolList,
|
|
5501
|
-
|
|
5503
|
+
at as SolMenu,
|
|
5502
5504
|
_t as SolMenuItem,
|
|
5503
5505
|
bt as SolMenuItemLink,
|
|
5504
5506
|
Kt as SolMenuNavigationLinks,
|
|
5505
5507
|
ei as SolModal,
|
|
5506
5508
|
ti as SolPagination,
|
|
5507
|
-
|
|
5509
|
+
lt as SolRadio,
|
|
5508
5510
|
Vt as SolRadioGroup,
|
|
5509
5511
|
vt as SolRemovableChip,
|
|
5510
5512
|
ft as SolSelect,
|