@assemblyvoting/ui-library 1.2.0-beta.0 → 1.2.0-beta.2
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/components/atoms/AVAsyncButton/AVAsyncButton.vue.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +125 -112
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { unref as
|
1
|
+
import { unref as j, getCurrentScope as JS, onScopeDispose as KS, watch as c2, ref as G, computed as B, onMounted as d2, onUnmounted as ck, h as D2, Transition as U2, withDirectives as v1, vShow as d1, defineComponent as P, openBlock as m, createElementBlock as z, createBlock as E, resolveDynamicComponent as Pa, withCtx as O, renderSlot as X, resolveComponent as H, normalizeClass as k, createCommentVNode as y, createTextVNode as s2, toDisplayString as g, createElementVNode as o, createVNode as V, normalizeStyle as p2, reactive as Se, provide as ke, Fragment as a2, renderList as N2, inject as Te, pushScopeId as X2, popScopeId as Z2, useCssVars as ak, mergeProps as ek, withModifiers as Ba, withKeys as ik } from "vue";
|
2
2
|
var Z = "top", n2 = "bottom", t2 = "right", J = "left", I4 = "auto", L1 = [Z, n2, t2, J], $2 = "start", p1 = "end", sk = "clippingParents", De = "viewport", n1 = "popper", rk = "reference", Ea = /* @__PURE__ */ L1.reduce(function(c, a) {
|
3
3
|
return c.concat([a + "-" + $2, a + "-" + p1]);
|
4
4
|
}, []), Ie = /* @__PURE__ */ [].concat(L1, [I4]).reduce(function(c, a) {
|
@@ -269,7 +269,7 @@ function Fa(c) {
|
|
269
269
|
d -= R - i.width, d *= t ? 1 : -1;
|
270
270
|
}
|
271
271
|
}
|
272
|
-
var
|
272
|
+
var F = Object.assign({
|
273
273
|
position: l
|
274
274
|
}, u && Nk), l2 = f === !0 ? Ak({
|
275
275
|
x: d,
|
@@ -280,9 +280,9 @@ function Fa(c) {
|
|
280
280
|
};
|
281
281
|
if (d = l2.x, N = l2.y, t) {
|
282
282
|
var Q;
|
283
|
-
return Object.assign({},
|
283
|
+
return Object.assign({}, F, (Q = {}, Q[x] = T ? "0" : "", Q[w] = S ? "0" : "", Q.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + N + "px)" : "translate3d(" + d + "px, " + N + "px, 0)", Q));
|
284
284
|
}
|
285
|
-
return Object.assign({},
|
285
|
+
return Object.assign({}, F, (a = {}, a[x] = T ? N + "px" : "", a[w] = S ? d + "px" : "", a.transform = "", a));
|
286
286
|
}
|
287
287
|
function yk(c) {
|
288
288
|
var a = c.state, e = c.options, i = e.gpuAcceleration, s = i === void 0 ? !0 : i, r = e.adaptive, n = r === void 0 ? !0 : r, l = e.roundOffsets, t = l === void 0 ? !0 : l, u = {
|
@@ -492,9 +492,9 @@ function z1(c, a) {
|
|
492
492
|
bottom: A.bottom - D.bottom + S.bottom,
|
493
493
|
left: D.left - A.left + S.left,
|
494
494
|
right: A.right - D.right + S.right
|
495
|
-
},
|
496
|
-
if (p === n1 &&
|
497
|
-
var l2 =
|
495
|
+
}, F = c.modifiersData.offset;
|
496
|
+
if (p === n1 && F) {
|
497
|
+
var l2 = F[s];
|
498
498
|
Object.keys(R).forEach(function(Q) {
|
499
499
|
var y2 = [t2, n2].indexOf(Q) >= 0 ? 1 : -1, w2 = [Z, n2].indexOf(Q) >= 0 ? "y" : "x";
|
500
500
|
R[Q] += l2[w2] * y2;
|
@@ -541,8 +541,8 @@ function Ok(c) {
|
|
541
541
|
allowedAutoPlacements: N
|
542
542
|
}) : C2);
|
543
543
|
}, []), D = a.rects.reference, _ = a.rects.popper, q = /* @__PURE__ */ new Map(), C = !0, A = x[0], R = 0; R < x.length; R++) {
|
544
|
-
var
|
545
|
-
placement:
|
544
|
+
var F = x[R], l2 = m2(F), Q = Y2(F) === $2, y2 = [Z, n2].indexOf(l2) >= 0, w2 = y2 ? "width" : "height", K = z1(a, {
|
545
|
+
placement: F,
|
546
546
|
boundary: f,
|
547
547
|
rootBoundary: v,
|
548
548
|
altBoundary: p,
|
@@ -553,10 +553,10 @@ function Ok(c) {
|
|
553
553
|
if (r && S2.push(K[l2] <= 0), l && S2.push(K[o2] <= 0, K[R1] <= 0), S2.every(function(F2) {
|
554
554
|
return F2;
|
555
555
|
})) {
|
556
|
-
A =
|
556
|
+
A = F, C = !1;
|
557
557
|
break;
|
558
558
|
}
|
559
|
-
q.set(
|
559
|
+
q.set(F, S2);
|
560
560
|
}
|
561
561
|
if (C)
|
562
562
|
for (var U1 = h ? 3 : 1, u4 = function(C2) {
|
@@ -684,7 +684,7 @@ function Zk(c) {
|
|
684
684
|
} : Object.assign({
|
685
685
|
mainAxis: 0,
|
686
686
|
altAxis: 0
|
687
|
-
}, A),
|
687
|
+
}, A), F = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, l2 = {
|
688
688
|
x: 0,
|
689
689
|
y: 0
|
690
690
|
};
|
@@ -693,11 +693,11 @@ function Zk(c) {
|
|
693
693
|
var Q, y2 = x === "y" ? Z : J, w2 = x === "y" ? n2 : t2, K = x === "y" ? "height" : "width", o2 = _[x], R1 = o2 + L[y2], S2 = o2 - L[w2], U1 = d ? -C[K] / 2 : 0, u4 = T === $2 ? q[K] : C[K], s1 = T === $2 ? -C[K] : -q[K], $1 = a.elements.arrow, F2 = d && $1 ? P4($1) : {
|
694
694
|
width: 0,
|
695
695
|
height: 0
|
696
|
-
}, C2 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Be(), r1 = C2[y2], G1 = C2[w2], k2 = o1(0, q[K], F2[K]), m4 = w ? q[K] / 2 - U1 - k2 - r1 - R.mainAxis : u4 - k2 - r1 - R.mainAxis, GS = w ? -q[K] / 2 + U1 + k2 + G1 + R.mainAxis : s1 + k2 + G1 + R.mainAxis, v4 = a.elements.arrow && g1(a.elements.arrow), WS = v4 ? x === "y" ? v4.clientTop || 0 : v4.clientLeft || 0 : 0, Aa = (Q =
|
696
|
+
}, C2 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Be(), r1 = C2[y2], G1 = C2[w2], k2 = o1(0, q[K], F2[K]), m4 = w ? q[K] / 2 - U1 - k2 - r1 - R.mainAxis : u4 - k2 - r1 - R.mainAxis, GS = w ? -q[K] / 2 + U1 + k2 + G1 + R.mainAxis : s1 + k2 + G1 + R.mainAxis, v4 = a.elements.arrow && g1(a.elements.arrow), WS = v4 ? x === "y" ? v4.clientTop || 0 : v4.clientLeft || 0 : 0, Aa = (Q = F == null ? void 0 : F[x]) != null ? Q : 0, YS = o2 + m4 - Aa - WS, QS = o2 + GS - Aa, ya = o1(d ? t3(R1, YS) : R1, o2, d ? P2(S2, QS) : S2);
|
697
697
|
_[x] = ya, l2[x] = ya - o2;
|
698
698
|
}
|
699
699
|
if (l) {
|
700
|
-
var wa, XS = x === "x" ? Z : J, ZS = x === "x" ? n2 : t2, T2 = _[D], W1 = D === "y" ? "height" : "width", Sa = T2 + L[XS], ka = T2 - L[ZS], d4 = [Z, J].indexOf(S) !== -1, Ta = (wa =
|
700
|
+
var wa, XS = x === "x" ? Z : J, ZS = x === "x" ? n2 : t2, T2 = _[D], W1 = D === "y" ? "height" : "width", Sa = T2 + L[XS], ka = T2 - L[ZS], d4 = [Z, J].indexOf(S) !== -1, Ta = (wa = F == null ? void 0 : F[D]) != null ? wa : 0, Da = d4 ? Sa : T2 - q[W1] - C[W1] - Ta + R.altAxis, Ia = d4 ? T2 + q[W1] + C[W1] - Ta - R.altAxis : ka, _a = d && d4 ? Ck(Da, T2, Ia) : o1(d ? Da : Sa, T2, d ? Ia : ka);
|
701
701
|
_[D] = _a, l2[D] = _a - T2;
|
702
702
|
}
|
703
703
|
a.modifiersData[i] = l2;
|
@@ -906,7 +906,7 @@ var lT = [kk, Qk, wk, Hk, Wk, qk, Jk, xk, Uk], oT = /* @__PURE__ */ tT({
|
|
906
906
|
const qe = typeof window < "u", fT = (c) => typeof c == "string", l3 = () => {
|
907
907
|
}, uT = qe && ((Wa = window == null ? void 0 : window.navigator) == null ? void 0 : Wa.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
908
908
|
function o3(c) {
|
909
|
-
return typeof c == "function" ? c() :
|
909
|
+
return typeof c == "function" ? c() : j(c);
|
910
910
|
}
|
911
911
|
function mT(c, a) {
|
912
912
|
function e(...i) {
|
@@ -1101,7 +1101,7 @@ const ae = {
|
|
1101
1101
|
}
|
1102
1102
|
},
|
1103
1103
|
...c
|
1104
|
-
}, i =
|
1104
|
+
}, i = G(void 0), s = G(void 0), r = G(void 0), n = G(!1), l = G(!1), t = G(!1), u = G(e.placement || "top"), f = B(() => {
|
1105
1105
|
let { modifiers: C } = ae;
|
1106
1106
|
return e.modifiers && (C = [...C, ...e.modifiers]), {
|
1107
1107
|
...ae,
|
@@ -1161,10 +1161,10 @@ const ae = {
|
|
1161
1161
|
}), T = B(() => {
|
1162
1162
|
const { animationDuration: C } = e;
|
1163
1163
|
if (!Array.isArray(C)) {
|
1164
|
-
const
|
1164
|
+
const F = C || 300;
|
1165
1165
|
return {
|
1166
|
-
enter: `${
|
1167
|
-
leave: `${
|
1166
|
+
enter: `${F / 1e3}s`,
|
1167
|
+
leave: `${F / 1e3}s`
|
1168
1168
|
};
|
1169
1169
|
}
|
1170
1170
|
const [A, R] = C;
|
@@ -1217,23 +1217,23 @@ const ae = {
|
|
1217
1217
|
name: S.value.inner,
|
1218
1218
|
"data-placement": u.value,
|
1219
1219
|
"data-name": S.value.inner,
|
1220
|
-
onBeforeEnter(
|
1221
|
-
_("before-enter",
|
1220
|
+
onBeforeEnter(F) {
|
1221
|
+
_("before-enter", F);
|
1222
1222
|
},
|
1223
|
-
onEnter(
|
1224
|
-
S.value.inner === "shift-out" && (
|
1223
|
+
onEnter(F) {
|
1224
|
+
S.value.inner === "shift-out" && (F.style.animation = `shift-out ${T.value.enter}`), _("enter", F);
|
1225
1225
|
},
|
1226
|
-
onAfterEnter(
|
1227
|
-
S.value.inner === "shift-out" && (
|
1226
|
+
onAfterEnter(F) {
|
1227
|
+
S.value.inner === "shift-out" && (F.style.transform = w.value), _("after-enter", F);
|
1228
1228
|
},
|
1229
|
-
onBeforeLeave(
|
1230
|
-
S.value.inner === "shift-out" && (
|
1229
|
+
onBeforeLeave(F) {
|
1230
|
+
S.value.inner === "shift-out" && (F.style.transform = w.value, F.style.animation = ""), _("before-leave", F);
|
1231
1231
|
},
|
1232
|
-
onLeave(
|
1233
|
-
S.value.inner === "shift-out" && (
|
1232
|
+
onLeave(F) {
|
1233
|
+
S.value.inner === "shift-out" && (F.style.transform = "translate(0, 0)"), _("leave", F);
|
1234
1234
|
},
|
1235
|
-
onAfterLeave(
|
1236
|
-
S.value.inner === "shift-out" && (
|
1235
|
+
onAfterLeave(F) {
|
1236
|
+
S.value.inner === "shift-out" && (F.style.transform = "translate(0, 0)"), _("after-leave", F);
|
1237
1237
|
}
|
1238
1238
|
},
|
1239
1239
|
{
|
@@ -1417,13 +1417,13 @@ const ae = {
|
|
1417
1417
|
popper: s,
|
1418
1418
|
isOpened: B(() => l.value)
|
1419
1419
|
}), (t, u) => (m(), z("div", bT, [
|
1420
|
-
(m(), E(Pa(
|
1420
|
+
(m(), E(Pa(j(r)), null, {
|
1421
1421
|
default: O(() => [
|
1422
1422
|
X(t.$slots, "default")
|
1423
1423
|
]),
|
1424
1424
|
_: 3
|
1425
1425
|
})),
|
1426
|
-
(m(), E(Pa(
|
1426
|
+
(m(), E(Pa(j(n)), null, {
|
1427
1427
|
default: O(() => [
|
1428
1428
|
X(t.$slots, "content")
|
1429
1429
|
]),
|
@@ -11038,7 +11038,7 @@ var M2 = !!$.documentElement && !!$.head && typeof $.addEventListener == "functi
|
|
11038
11038
|
} catch {
|
11039
11039
|
return !1;
|
11040
11040
|
}
|
11041
|
-
}(), U = "classic",
|
11041
|
+
}(), U = "classic", W = "sharp", Va = [U, W];
|
11042
11042
|
function O1(c) {
|
11043
11043
|
return new Proxy(c, {
|
11044
11044
|
get: function(e, i) {
|
@@ -11062,7 +11062,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
|
|
11062
11062
|
"fa-brands": "brands",
|
11063
11063
|
fak: "kit",
|
11064
11064
|
"fa-kit": "kit"
|
11065
|
-
}), Y(X1,
|
11065
|
+
}), Y(X1, W, {
|
11066
11066
|
fa: "solid",
|
11067
11067
|
fass: "solid",
|
11068
11068
|
"fa-solid": "solid",
|
@@ -11078,7 +11078,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
|
|
11078
11078
|
duotone: "fad",
|
11079
11079
|
brands: "fab",
|
11080
11080
|
kit: "fak"
|
11081
|
-
}), Y(Z1,
|
11081
|
+
}), Y(Z1, W, {
|
11082
11082
|
solid: "fass",
|
11083
11083
|
regular: "fasr",
|
11084
11084
|
light: "fasl"
|
@@ -11090,7 +11090,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
|
|
11090
11090
|
far: "fa-regular",
|
11091
11091
|
fas: "fa-solid",
|
11092
11092
|
fat: "fa-thin"
|
11093
|
-
}), Y(J1,
|
11093
|
+
}), Y(J1, W, {
|
11094
11094
|
fass: "fa-solid",
|
11095
11095
|
fasr: "fa-regular",
|
11096
11096
|
fasl: "fa-light"
|
@@ -11102,7 +11102,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
|
|
11102
11102
|
"fa-regular": "far",
|
11103
11103
|
"fa-solid": "fas",
|
11104
11104
|
"fa-thin": "fat"
|
11105
|
-
}), Y(K1,
|
11105
|
+
}), Y(K1, W, {
|
11106
11106
|
"fa-solid": "fass",
|
11107
11107
|
"fa-regular": "fasr",
|
11108
11108
|
"fa-light": "fasl"
|
@@ -11112,7 +11112,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
|
|
11112
11112
|
normal: "far",
|
11113
11113
|
300: "fal",
|
11114
11114
|
100: "fat"
|
11115
|
-
}), Y(c3,
|
11115
|
+
}), Y(c3, W, {
|
11116
11116
|
900: "fass",
|
11117
11117
|
400: "fasr",
|
11118
11118
|
300: "fasl"
|
@@ -11123,7 +11123,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
|
|
11123
11123
|
SECONDARY: "secondary"
|
11124
11124
|
}, M1 = /* @__PURE__ */ new Set();
|
11125
11125
|
Object.keys(H1[U]).map(M1.add.bind(M1));
|
11126
|
-
Object.keys(H1[
|
11126
|
+
Object.keys(H1[W]).map(M1.add.bind(M1));
|
11127
11127
|
var WT = [].concat(Va, F1(M1), ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", I2.GROUP, I2.SWAP_OPACITY, I2.PRIMARY, I2.SECONDARY]).concat(AS.map(function(c) {
|
11128
11128
|
return "".concat(c, "x");
|
11129
11129
|
})).concat($T.map(function(c) {
|
@@ -12116,7 +12116,7 @@ function N4(c, a) {
|
|
12116
12116
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = e.skipHooks, s = i === void 0 ? !1 : i, r = ve(a);
|
12117
12117
|
typeof f2.hooks.addPack == "function" && !s ? f2.hooks.addPack(c, ve(a)) : f2.styles[c] = M(M({}, f2.styles[c] || {}), r), c === "fas" && N4("fa", a);
|
12118
12118
|
}
|
12119
|
-
var a3, e3, i3, O2 = f2.styles, fD = f2.shims, uD = (a3 = {}, Y(a3, U, Object.values(h1[U])), Y(a3,
|
12119
|
+
var a3, e3, i3, O2 = f2.styles, fD = f2.shims, uD = (a3 = {}, Y(a3, U, Object.values(h1[U])), Y(a3, W, Object.values(h1[W])), a3), Ma = null, TS = {}, DS = {}, IS = {}, _S = {}, PS = {}, mD = (e3 = {}, Y(e3, U, Object.keys(V1[U])), Y(e3, W, Object.keys(V1[W])), e3);
|
12120
12120
|
function vD(c) {
|
12121
12121
|
return ~WT.indexOf(c);
|
12122
12122
|
}
|
@@ -12218,25 +12218,25 @@ function t4(c) {
|
|
12218
12218
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = a.family, i = e === void 0 ? U : e, s = V1[i][c], r = H1[i][c] || H1[i][s], n = c in f2.styles ? c : null;
|
12219
12219
|
return r || n || null;
|
12220
12220
|
}
|
12221
|
-
var de = (i3 = {}, Y(i3, U, Object.keys(h1[U])), Y(i3,
|
12221
|
+
var de = (i3 = {}, Y(i3, U, Object.keys(h1[U])), Y(i3, W, Object.keys(h1[W])), i3);
|
12222
12222
|
function l4(c) {
|
12223
|
-
var a, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.skipLookups, s = i === void 0 ? !1 : i, r = (a = {}, Y(a, U, "".concat(b.cssPrefix, "-").concat(U)), Y(a,
|
12223
|
+
var a, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.skipLookups, s = i === void 0 ? !1 : i, r = (a = {}, Y(a, U, "".concat(b.cssPrefix, "-").concat(U)), Y(a, W, "".concat(b.cssPrefix, "-").concat(W)), a), n = null, l = U;
|
12224
12224
|
(c.includes(r[U]) || c.some(function(u) {
|
12225
12225
|
return de[U].includes(u);
|
12226
|
-
})) && (l = U), (c.includes(r[
|
12227
|
-
return de[
|
12228
|
-
})) && (l =
|
12226
|
+
})) && (l = U), (c.includes(r[W]) || c.some(function(u) {
|
12227
|
+
return de[W].includes(u);
|
12228
|
+
})) && (l = W);
|
12229
12229
|
var t = c.reduce(function(u, f) {
|
12230
12230
|
var v = dD(b.cssPrefix, f);
|
12231
12231
|
if (O2[f] ? (f = uD[l].includes(f) ? OT[l][f] : f, n = f, u.prefix = f) : mD[l].indexOf(f) > -1 ? (n = f, u.prefix = t4(f, {
|
12232
12232
|
family: l
|
12233
|
-
})) : v ? u.iconName = v : f !== b.replacementClass && f !== r[U] && f !== r[
|
12233
|
+
})) : v ? u.iconName = v : f !== b.replacementClass && f !== r[U] && f !== r[W] && u.rest.push(f), !s && u.prefix && u.iconName) {
|
12234
12234
|
var p = n === "fa" ? ES(u.iconName) : {}, d = _2(u.prefix, u.iconName);
|
12235
12235
|
p.prefix && (n = null), u.iconName = p.iconName || d || u.iconName, u.prefix = p.prefix || u.prefix, u.prefix === "far" && !O2.far && O2.fas && !b.autoFetchSvg && (u.prefix = "fas");
|
12236
12236
|
}
|
12237
12237
|
return u;
|
12238
12238
|
}, La());
|
12239
|
-
return (c.includes("fa-brands") || c.includes("fab")) && (t.prefix = "fab"), (c.includes("fa-duotone") || c.includes("fad")) && (t.prefix = "fad"), !t.prefix && l ===
|
12239
|
+
return (c.includes("fa-brands") || c.includes("fab")) && (t.prefix = "fab"), (c.includes("fa-duotone") || c.includes("fad")) && (t.prefix = "fad"), !t.prefix && l === W && (O2.fass || b.autoFetchSvg) && (t.prefix = "fass", t.iconName = _2(t.prefix, t.iconName) || t.iconName), (t.prefix === "fa" || n === "fa") && (t.prefix = b2() || "fas"), t;
|
12240
12240
|
}
|
12241
12241
|
var VD = /* @__PURE__ */ function() {
|
12242
12242
|
function c() {
|
@@ -12797,7 +12797,7 @@ Va.map(function(c) {
|
|
12797
12797
|
x2.add("fa-".concat(c));
|
12798
12798
|
});
|
12799
12799
|
Object.keys(V1[U]).map(x2.add.bind(x2));
|
12800
|
-
Object.keys(V1[
|
12800
|
+
Object.keys(V1[W]).map(x2.add.bind(x2));
|
12801
12801
|
x2 = F1(x2);
|
12802
12802
|
function Le(c) {
|
12803
12803
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
@@ -13069,7 +13069,7 @@ function be(c, a) {
|
|
13069
13069
|
if (n && !t)
|
13070
13070
|
return c.removeChild(n), i();
|
13071
13071
|
if (t && f !== "none" && f !== "") {
|
13072
|
-
var v = l.getPropertyValue("content"), p = ~["Sharp"].indexOf(t[2]) ?
|
13072
|
+
var v = l.getPropertyValue("content"), p = ~["Sharp"].indexOf(t[2]) ? W : U, d = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(t[2]) ? H1[p][t[2].toLowerCase()] : UT[p][u], h = XD(v), N = h.value, L = h.isSecondary, S = t[0].startsWith("FontAwesome"), T = Ca(d, N), w = T;
|
13073
13073
|
if (S) {
|
13074
13074
|
var x = zD(N);
|
13075
13075
|
x.iconName && x.prefix && (T = x.iconName, d = x.prefix);
|
@@ -13710,7 +13710,7 @@ const D4 = /* @__PURE__ */ I(dI, [["__scopeId", "data-v-83458350"]]), pI = { cla
|
|
13710
13710
|
id: c.id,
|
13711
13711
|
placeholder: c.placeholder,
|
13712
13712
|
type: "text",
|
13713
|
-
class: k(
|
13713
|
+
class: k(j(s)),
|
13714
13714
|
ref: "textInput",
|
13715
13715
|
value: c.modelValue,
|
13716
13716
|
onInput: i
|
@@ -13797,7 +13797,7 @@ const gI = /* @__PURE__ */ I(LI, [["__scopeId", "data-v-60c6019f"]]), bI = { cla
|
|
13797
13797
|
},
|
13798
13798
|
emits: ["update:modelValue"],
|
13799
13799
|
setup(c, { emit: a }) {
|
13800
|
-
const e = c, i =
|
13800
|
+
const e = c, i = G(null), s = (f) => {
|
13801
13801
|
a("update:modelValue", parseInt(f.target.value));
|
13802
13802
|
}, r = (f) => {
|
13803
13803
|
f.target.value === "" && a("update:modelValue", 0);
|
@@ -13947,7 +13947,7 @@ const kI = /* @__PURE__ */ I(SI, [["__scopeId", "data-v-d72e029e"]]), TI = { cla
|
|
13947
13947
|
},
|
13948
13948
|
emits: ["update:modelValue"],
|
13949
13949
|
setup(c, { emit: a }) {
|
13950
|
-
const e =
|
13950
|
+
const e = G(!1), i = () => {
|
13951
13951
|
e.value = !e.value;
|
13952
13952
|
}, s = (r) => {
|
13953
13953
|
a("update:modelValue", r.target.value);
|
@@ -14422,10 +14422,10 @@ const t_ = /* @__PURE__ */ I(n_, [["__scopeId", "data-v-ff11beb8"]]), l_ = { cla
|
|
14422
14422
|
"data-test": "input-icon"
|
14423
14423
|
}, null, 8, ["icon"])
|
14424
14424
|
])) : y("", !0),
|
14425
|
-
|
14425
|
+
j(r) === void 0 ? (m(), z("span", m_, g(c.placeholder), 1)) : (m(), z("span", {
|
14426
14426
|
key: 2,
|
14427
14427
|
class: "AVDropdown--selected-option",
|
14428
|
-
textContent: g(
|
14428
|
+
textContent: g(j(r).label)
|
14429
14429
|
}, null, 8, v_)),
|
14430
14430
|
o("span", d_, [
|
14431
14431
|
V(v, {
|
@@ -14437,7 +14437,7 @@ const t_ = /* @__PURE__ */ I(n_, [["__scopeId", "data-v-ff11beb8"]]), l_ = { cla
|
|
14437
14437
|
], 10, f_),
|
14438
14438
|
V(d, null, {
|
14439
14439
|
default: O(() => [
|
14440
|
-
(m(!0), z(a2, null, N2(
|
14440
|
+
(m(!0), z(a2, null, N2(j(s), (h) => (m(), E(p, {
|
14441
14441
|
key: h,
|
14442
14442
|
optionLabel: h.label,
|
14443
14443
|
onOnSelected: (N) => n(h.value),
|
@@ -14458,10 +14458,10 @@ const V_ = /* @__PURE__ */ I(z_, [["__scopeId", "data-v-c4ee7609"]]), H_ = ["ari
|
|
14458
14458
|
const a = Te("sharedState"), e = B(() => a.active), i = B(() => a.id);
|
14459
14459
|
return (s, r) => (m(), E(U2, { name: "dropdown-content" }, {
|
14460
14460
|
default: O(() => [
|
14461
|
-
|
14461
|
+
j(e) ? (m(), z("div", {
|
14462
14462
|
key: 0,
|
14463
14463
|
class: "AVDropdownContent",
|
14464
|
-
"aria-labelledby":
|
14464
|
+
"aria-labelledby": j(i)
|
14465
14465
|
}, [
|
14466
14466
|
X(s.$slots, "default", {}, void 0, !0)
|
14467
14467
|
], 8, H_)) : y("", !0)
|
@@ -14649,7 +14649,7 @@ const y_ = /* @__PURE__ */ I(A_, [["__scopeId", "data-v-0cc3f6d1"]]), Na = (c) =
|
|
14649
14649
|
},
|
14650
14650
|
emits: ["update", "fileFormatNotAccepted"],
|
14651
14651
|
setup(c, { emit: a }) {
|
14652
|
-
const e = c, i =
|
14652
|
+
const e = c, i = G(!1), s = G(null), r = G([]);
|
14653
14653
|
d2(() => {
|
14654
14654
|
e.value && (r.value = e.value);
|
14655
14655
|
});
|
@@ -14803,7 +14803,7 @@ const Q_ = /* @__PURE__ */ I(Y_, [["__scopeId", "data-v-4aae121d"]]), X_ = (c) =
|
|
14803
14803
|
},
|
14804
14804
|
emits: ["update"],
|
14805
14805
|
setup(c, { emit: a }) {
|
14806
|
-
const e = c, i =
|
14806
|
+
const e = c, i = G(!1);
|
14807
14807
|
d2(() => {
|
14808
14808
|
e.checked && (i.value = e.checked);
|
14809
14809
|
});
|
@@ -14960,9 +14960,9 @@ const sP = /* @__PURE__ */ I(iP, [["__scopeId", "data-v-999075bc"]]), rP = ["hre
|
|
14960
14960
|
};
|
14961
14961
|
return (n, l) => {
|
14962
14962
|
const t = H("AVIcon");
|
14963
|
-
return
|
14963
|
+
return j(i) === "link" ? (m(), z("a", {
|
14964
14964
|
key: 0,
|
14965
|
-
href:
|
14965
|
+
href: j(s),
|
14966
14966
|
class: k(`AVNavbarItem ${c.active ? "AVNavbarItem--active" : ""} ${c.disabled && "disabled"}`),
|
14967
14967
|
target: c.target,
|
14968
14968
|
style: p2(`width: ${c.customWidth}px`)
|
@@ -15041,16 +15041,16 @@ const fP = /* @__PURE__ */ I(oP, [["__scopeId", "data-v-d205c709"]]), uP = ["hre
|
|
15041
15041
|
},
|
15042
15042
|
emits: ["onClick"],
|
15043
15043
|
setup(c, { emit: a }) {
|
15044
|
-
const e = c, i =
|
15044
|
+
const e = c, i = G(!1), s = B(() => e.href ? "link" : "button"), r = B(() => e.disabled ? null : e.href), n = B(() => e.type === "step" ? "number" : "icon"), l = B(
|
15045
15045
|
() => e.type === "step" ? e.stepIndex : e.icon
|
15046
15046
|
), t = () => {
|
15047
15047
|
e.disabled || (i.value = !i.value);
|
15048
15048
|
}, u = () => {
|
15049
15049
|
a("onClick", e.reference);
|
15050
15050
|
};
|
15051
|
-
return (f, v) =>
|
15051
|
+
return (f, v) => j(s) === "link" ? (m(), z("a", {
|
15052
15052
|
key: 0,
|
15053
|
-
href:
|
15053
|
+
href: j(r),
|
15054
15054
|
class: k(`AVSidebarItem ${c.active ? "AVSidebarItem--active" : ""} ${c.disabled && "disabled"}`),
|
15055
15055
|
target: c.target,
|
15056
15056
|
onMouseenter: t,
|
@@ -15058,10 +15058,10 @@ const fP = /* @__PURE__ */ I(oP, [["__scopeId", "data-v-d205c709"]]), uP = ["hre
|
|
15058
15058
|
"aria-label": c.label,
|
15059
15059
|
role: "button"
|
15060
15060
|
}, [
|
15061
|
-
V(
|
15062
|
-
type:
|
15061
|
+
V(j(D4), {
|
15062
|
+
type: j(n),
|
15063
15063
|
active: c.active,
|
15064
|
-
value:
|
15064
|
+
value: j(l),
|
15065
15065
|
hover: i.value,
|
15066
15066
|
"aria-hidden": "true"
|
15067
15067
|
}, null, 8, ["type", "active", "value", "hover"]),
|
@@ -15075,10 +15075,10 @@ const fP = /* @__PURE__ */ I(oP, [["__scopeId", "data-v-d205c709"]]), uP = ["hre
|
|
15075
15075
|
onMouseleave: t,
|
15076
15076
|
"aria-label": c.label
|
15077
15077
|
}, [
|
15078
|
-
V(
|
15079
|
-
type:
|
15078
|
+
V(j(D4), {
|
15079
|
+
type: j(n),
|
15080
15080
|
active: c.active,
|
15081
|
-
value:
|
15081
|
+
value: j(l),
|
15082
15082
|
hover: i.value,
|
15083
15083
|
"aria-hidden": "true"
|
15084
15084
|
}, null, 8, ["type", "active", "value", "hover"]),
|
@@ -15218,10 +15218,10 @@ const bP = /* @__PURE__ */ I(gP, [["__scopeId", "data-v-9cd08151"]]), xP = ["ari
|
|
15218
15218
|
const a = Te("sharedState"), e = B(() => a.active), i = B(() => a.id);
|
15219
15219
|
return (s, r) => (m(), E(U2, { name: "dropdown-content" }, {
|
15220
15220
|
default: O(() => [
|
15221
|
-
|
15221
|
+
j(e) ? (m(), z("div", {
|
15222
15222
|
key: 0,
|
15223
15223
|
class: "AVMenuDropdownContent",
|
15224
|
-
"aria-labelledby":
|
15224
|
+
"aria-labelledby": j(i)
|
15225
15225
|
}, [
|
15226
15226
|
X(s.$slots, "default", {}, void 0, !0)
|
15227
15227
|
], 8, xP)) : y("", !0)
|
@@ -15271,10 +15271,26 @@ const AP = /* @__PURE__ */ I(NP, [["__scopeId", "data-v-e8fb623b"]]), yP = ["hre
|
|
15271
15271
|
const SP = /* @__PURE__ */ I(wP, [["__scopeId", "data-v-f770cea1"]]), kP = ["disabled"], TP = { class: "AVAsyncButton--label" }, DP = /* @__PURE__ */ P({
|
15272
15272
|
__name: "AVAsyncButton",
|
15273
15273
|
props: {
|
15274
|
-
|
15274
|
+
initialLabel: {
|
15275
15275
|
type: String,
|
15276
15276
|
default: ""
|
15277
15277
|
},
|
15278
|
+
waitingLabel: {
|
15279
|
+
type: String,
|
15280
|
+
default: "Saving..."
|
15281
|
+
},
|
15282
|
+
successLabel: {
|
15283
|
+
type: String,
|
15284
|
+
default: "Saved"
|
15285
|
+
},
|
15286
|
+
errorLabel: {
|
15287
|
+
type: String,
|
15288
|
+
default: "Error"
|
15289
|
+
},
|
15290
|
+
retryLabel: {
|
15291
|
+
type: String,
|
15292
|
+
default: null
|
15293
|
+
},
|
15278
15294
|
size: {
|
15279
15295
|
type: String,
|
15280
15296
|
validate: (c) => ["small", "regular", "large"].includes(c),
|
@@ -15319,49 +15335,46 @@ const SP = /* @__PURE__ */ I(wP, [["__scopeId", "data-v-f770cea1"]]), kP = ["dis
|
|
15319
15335
|
}
|
15320
15336
|
},
|
15321
15337
|
setup(c) {
|
15322
|
-
const a = c, e =
|
15323
|
-
e.value = "waiting", await new Promise((
|
15324
|
-
|
15325
|
-
await Promise.resolve(a.onClick(n));
|
15326
|
-
} catch (l) {
|
15327
|
-
e.value = "error", console.log(l), setTimeout(() => {
|
15328
|
-
e.value = "default";
|
15329
|
-
}, a.retryTimeout);
|
15330
|
-
} finally {
|
15331
|
-
e.value = "success", a.successTimeout && setTimeout(() => {
|
15338
|
+
const a = c, e = G("default"), i = G(!1), s = B(() => e.value === "success" ? a.successIcon : e.value === "error" ? a.errorIcon : a.initialIcon), r = B(() => e.value === "default" && i.value ? a.retryLabel : e.value === "waiting" ? a.waitingLabel : e.value === "success" ? a.successLabel : e.value === "error" ? a.errorLabel : a.initialLabel), n = B(() => !(e.value === "default" && !a.disabled)), l = async (t) => {
|
15339
|
+
e.value = "waiting", await new Promise((u) => setTimeout(u, a.waitTime)), await Promise.resolve(a.onClick(t)).then(() => e.value = "success").then(() => {
|
15340
|
+
a.successTimeout && setTimeout(() => {
|
15332
15341
|
e.value = "default";
|
15333
15342
|
}, a.successTimeout);
|
15334
|
-
}
|
15343
|
+
}).catch((u) => {
|
15344
|
+
e.value = "error", console.log(u), setTimeout(() => {
|
15345
|
+
i.value = !0, e.value = "default";
|
15346
|
+
}, a.retryTimeout);
|
15347
|
+
});
|
15335
15348
|
};
|
15336
|
-
return (
|
15337
|
-
const
|
15349
|
+
return (t, u) => {
|
15350
|
+
const f = H("AVSpinner"), v = H("AVIcon");
|
15338
15351
|
return m(), z("button", {
|
15339
15352
|
type: "button",
|
15340
15353
|
class: k(`AVAsyncButton AVAsyncButton--${c.size} AVAsyncButton--${e.value} ${c.disabled && "AVAsyncButton--disabled"}`),
|
15341
15354
|
style: p2(`width: ${c.customWidth}px;`),
|
15342
15355
|
"data-test": "btn",
|
15343
|
-
onClick:
|
15344
|
-
disabled:
|
15356
|
+
onClick: l,
|
15357
|
+
disabled: j(n)
|
15345
15358
|
}, [
|
15346
|
-
e.value === "waiting" ? (m(), E(
|
15359
|
+
e.value === "waiting" ? (m(), E(f, {
|
15347
15360
|
key: 0,
|
15348
15361
|
color: "light",
|
15349
15362
|
"data-test": "btn-spinner"
|
15350
|
-
})) : (m(), E(
|
15363
|
+
})) : (m(), E(v, {
|
15351
15364
|
key: 1,
|
15352
|
-
icon: `fa-solid fa-${
|
15365
|
+
icon: `fa-solid fa-${j(s)}`,
|
15353
15366
|
class: "AVAsyncButton--icon-left",
|
15354
15367
|
"data-test": "btn-icon"
|
15355
15368
|
}, null, 8, ["icon"])),
|
15356
15369
|
o("span", TP, [
|
15357
|
-
X(
|
15358
|
-
s2(g(
|
15370
|
+
X(t.$slots, "default", {}, void 0, !0),
|
15371
|
+
s2(g(j(r)), 1)
|
15359
15372
|
])
|
15360
15373
|
], 14, kP);
|
15361
15374
|
};
|
15362
15375
|
}
|
15363
15376
|
});
|
15364
|
-
const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-
|
15377
|
+
const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-b8175fba"]]), _P = { class: "AVTabSwitcher" }, PP = ["disabled", "onClick"], BP = /* @__PURE__ */ P({
|
15365
15378
|
__name: "AVTabSwitcher",
|
15366
15379
|
props: {
|
15367
15380
|
options: {
|
@@ -15381,7 +15394,7 @@ const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-83aeea15"]]), _P = { cla
|
|
15381
15394
|
},
|
15382
15395
|
emits: ["update"],
|
15383
15396
|
setup(c, { emit: a }) {
|
15384
|
-
const e = c, i =
|
15397
|
+
const e = c, i = G([]), s = G(""), r = B(() => e.options.length === 2 ? "AVTabSwitcher--double" : "AVTabSwitcher--triple");
|
15385
15398
|
d2(() => n());
|
15386
15399
|
const n = () => {
|
15387
15400
|
i.value = [], e.options.map(
|
@@ -15419,7 +15432,7 @@ const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-83aeea15"]]), _P = { cla
|
|
15419
15432
|
), (v, p) => (m(), z("div", _P, [
|
15420
15433
|
(m(!0), z(a2, null, N2(i.value, (d) => (m(), z("button", {
|
15421
15434
|
key: d.value,
|
15422
|
-
class: k(`AVTabSwitcher--button ${
|
15435
|
+
class: k(`AVTabSwitcher--button ${j(r)} ${d.selected && "AVTabSwitcher--button-active"} ${d.disabled && "disabled"}`),
|
15423
15436
|
disabled: d.disabled,
|
15424
15437
|
onClick: (h) => u(d.value)
|
15425
15438
|
}, g(d.value), 11, PP))), 128))
|
@@ -15457,16 +15470,16 @@ const EP = /* @__PURE__ */ I(BP, [["__scopeId", "data-v-413f60c7"]]), jP = { cla
|
|
15457
15470
|
return m(), z("div", jP, [
|
15458
15471
|
o("div", FP, [
|
15459
15472
|
V(n, {
|
15460
|
-
icon: `fa-solid fa-${
|
15461
|
-
class: k(`AVBallotSummary--icon ${
|
15473
|
+
icon: `fa-solid fa-${j(e) ? "file-circle-check" : "file-circle-minus"}`,
|
15474
|
+
class: k(`AVBallotSummary--icon ${j(e) && "AVBallotSummary--icon-ready"}`),
|
15462
15475
|
"data-test": "ballot-icon"
|
15463
15476
|
}, null, 8, ["icon", "class"]),
|
15464
15477
|
o("span", {
|
15465
|
-
class: k(`AVBallotSummary--ballot-name ${
|
15478
|
+
class: k(`AVBallotSummary--ballot-name ${j(e) && "AVBallotSummary--name-ready"}`)
|
15466
15479
|
}, g(c.ballotStyleName), 3)
|
15467
15480
|
]),
|
15468
15481
|
o("div", OP, [
|
15469
|
-
|
15482
|
+
j(e) ? (m(), E(n, {
|
15470
15483
|
key: 0,
|
15471
15484
|
icon: "fa-solid fa-circle-check",
|
15472
15485
|
class: "AVBallotSummary--icon AVBallotSummary--icon-ready",
|
@@ -15477,8 +15490,8 @@ const EP = /* @__PURE__ */ I(BP, [["__scopeId", "data-v-413f60c7"]]), jP = { cla
|
|
15477
15490
|
"data-test": "ballot-spinner"
|
15478
15491
|
})),
|
15479
15492
|
o("span", {
|
15480
|
-
class: k(`AVBallotSummary--ballot-status ${
|
15481
|
-
}, g(
|
15493
|
+
class: k(`AVBallotSummary--ballot-status ${j(e) && "AVBallotSummary--status-ready"}`)
|
15494
|
+
}, g(j(e) ? `${c.currentBallots} ${c.readyLabel}` : `${j(i)} ${c.waitingLabel}`), 3)
|
15482
15495
|
])
|
15483
15496
|
]);
|
15484
15497
|
};
|
@@ -15516,7 +15529,7 @@ const RP = /* @__PURE__ */ I(qP, [["__scopeId", "data-v-607d90fc"]]), UP = {
|
|
15516
15529
|
d2(() => {
|
15517
15530
|
s();
|
15518
15531
|
});
|
15519
|
-
const i =
|
15532
|
+
const i = G(0), s = () => {
|
15520
15533
|
const f = setInterval(() => {
|
15521
15534
|
i.value = i.value + 1, i.value >= e.timeout && (clearInterval(f), a("expired", !0, e.timeout));
|
15522
15535
|
}, 1e3);
|
@@ -15534,7 +15547,7 @@ const RP = /* @__PURE__ */ I(qP, [["__scopeId", "data-v-607d90fc"]]), UP = {
|
|
15534
15547
|
o("div", $P, [
|
15535
15548
|
o("div", {
|
15536
15549
|
class: k(`AVTimedCard--progress-bar ${c.timeout - i.value <= c.customWarningTime && "AVTimedCard--progress-bar-warning"}`),
|
15537
|
-
style: p2(`width: ${
|
15550
|
+
style: p2(`width: ${j(r)}%`),
|
15538
15551
|
"data-test": "progress-bar"
|
15539
15552
|
}, null, 6)
|
15540
15553
|
])
|
@@ -15544,7 +15557,7 @@ const RP = /* @__PURE__ */ I(qP, [["__scopeId", "data-v-607d90fc"]]), UP = {
|
|
15544
15557
|
"data-test": "help-text"
|
15545
15558
|
}, [
|
15546
15559
|
s2(g(c.expirationMessage), 1),
|
15547
|
-
o("strong", null, g(
|
15560
|
+
o("strong", null, g(j(u)), 1)
|
15548
15561
|
], 2)
|
15549
15562
|
], 64));
|
15550
15563
|
}
|
@@ -15612,9 +15625,9 @@ const KP = /* @__PURE__ */ I(JP, [["__scopeId", "data-v-9a6218e9"]]), cB = { cla
|
|
15612
15625
|
setup(c) {
|
15613
15626
|
const a = c;
|
15614
15627
|
ak((n) => ({
|
15615
|
-
"4d0e1dab":
|
15628
|
+
"4d0e1dab": j(r)
|
15616
15629
|
}));
|
15617
|
-
const e =
|
15630
|
+
const e = G([]), i = () => {
|
15618
15631
|
e.value = [], a.steps.map((n) => {
|
15619
15632
|
e.value.push({
|
15620
15633
|
value: n,
|
@@ -15737,7 +15750,7 @@ const iB = /* @__PURE__ */ I(eB, [["__scopeId", "data-v-563abd56"]]), $S = (c) =
|
|
15737
15750
|
tabindex: c.disabled ? null : 0,
|
15738
15751
|
"aria-disabled": c.disabled,
|
15739
15752
|
disabled: c.disabled
|
15740
|
-
},
|
15753
|
+
}, j(s), {
|
15741
15754
|
onClick: Ba(i, ["stop"]),
|
15742
15755
|
onKeydown: ik(Ba(i, ["prevent"]), ["space", "enter"])
|
15743
15756
|
}), [
|
@@ -15890,7 +15903,7 @@ const CB = /* @__PURE__ */ I(MB, [["__scopeId", "data-v-6a7337ae"]]), LB = { cla
|
|
15890
15903
|
},
|
15891
15904
|
emits: ["update"],
|
15892
15905
|
setup(c, { emit: a }) {
|
15893
|
-
const e = c, i =
|
15906
|
+
const e = c, i = G(""), s = G([]), r = (u) => {
|
15894
15907
|
s.value.map((f) => {
|
15895
15908
|
f.value === u ? (f.checked = !0, i.value = f.value) : f.checked = !1;
|
15896
15909
|
});
|
@@ -16097,7 +16110,7 @@ const DB = /* @__PURE__ */ I(TB, [["__scopeId", "data-v-71e09fe3"]]), IB = ["hre
|
|
16097
16110
|
o("div", BB, [
|
16098
16111
|
o("span", EB, g(c.name), 1),
|
16099
16112
|
V(n, {
|
16100
|
-
type:
|
16113
|
+
type: j(i),
|
16101
16114
|
value: c.status
|
16102
16115
|
}, null, 8, ["type", "value"])
|
16103
16116
|
]),
|
@@ -16250,7 +16263,7 @@ const nE = /* @__PURE__ */ I(rE, [["__scopeId", "data-v-c682a2cf"]]), tE = "data
|
|
16250
16263
|
}, [
|
16251
16264
|
oE,
|
16252
16265
|
o("img", {
|
16253
|
-
src:
|
16266
|
+
src: j(tE),
|
16254
16267
|
alt: "Assembly Voting",
|
16255
16268
|
class: "AVFooter--img"
|
16256
16269
|
}, null, 8, fE)
|