@assemblyvoting/ui-library 2.1.18-alpha.7 → 2.1.18-alpha.8
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/AVSteps/AVSteps.vue.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +37 -38
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as W, h as p1, getCurrentInstance as i3, effectScope as cI, inject as z0, onMounted as J2, onUnmounted as ai, shallowRef as aI, ref as J, computed as D, onBeforeMount as tI, watch as _2, Fragment as t2, isRef as nI, createVNode as w, Text as iI, unref as N1, getCurrentScope as sI, onScopeDispose as rI, Transition as y1, withDirectives as A1, vShow as s3, openBlock as p, createElementBlock as H, createBlock as Y, resolveDynamicComponent as b9, withCtx as a2, renderSlot as h2, resolveComponent as I, normalizeClass as q, createCommentVNode as E, createTextVNode as
|
1
|
+
import { defineComponent as W, h as p1, getCurrentInstance as i3, effectScope as cI, inject as z0, onMounted as J2, onUnmounted as ai, shallowRef as aI, ref as J, computed as D, onBeforeMount as tI, watch as _2, Fragment as t2, isRef as nI, createVNode as w, Text as iI, unref as N1, getCurrentScope as sI, onScopeDispose as rI, Transition as y1, withDirectives as A1, vShow as s3, openBlock as p, createElementBlock as H, createBlock as Y, resolveDynamicComponent as b9, withCtx as a2, renderSlot as h2, resolveComponent as I, normalizeClass as q, createCommentVNode as E, createTextVNode as b2, toDisplayString as y, createElementVNode as u, normalizeStyle as t1, reactive as H0, provide as ti, renderList as H2, pushScopeId as I1, popScopeId as E1, useCssVars as lI, mergeProps as oI, withModifiers as _1, withKeys as ni, createSlots as fI, nextTick as uI, vModelText as ii } from "vue";
|
2
2
|
/*!
|
3
3
|
* shared v9.7.0
|
4
4
|
* (c) 2023 kazuya kawaguchi
|
@@ -19,7 +19,7 @@ const mI = /\{([0-9a-zA-Z]+)\}/g;
|
|
19
19
|
function M0(e, ...c) {
|
20
20
|
return c.length === 1 && r2(c[0]) && (c = c[0]), (!c || !c.hasOwnProperty) && (c = {}), e.replace(mI, (a, t) => c.hasOwnProperty(t) ? c[t] : "");
|
21
21
|
}
|
22
|
-
const d1 = (e, c = !1) => c ? Symbol.for(e) : Symbol(e), dI = (e, c, a) => vI({ l: e, k: c, s: a }), vI = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"),
|
22
|
+
const d1 = (e, c = !1) => c ? Symbol.for(e) : Symbol(e), dI = (e, c, a) => vI({ l: e, k: c, s: a }), vI = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), L2 = (e) => typeof e == "number" && isFinite(e), pI = (e) => ri(e) === "[object Date]", x1 = (e) => ri(e) === "[object RegExp]", E4 = (e) => K(e) && Object.keys(e).length === 0, k2 = Object.assign;
|
23
23
|
let _9;
|
24
24
|
const h1 = () => _9 || (_9 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
25
25
|
function N9(e) {
|
@@ -1327,15 +1327,15 @@ function I9(e, c) {
|
|
1327
1327
|
return e = Math.abs(e), c === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
1328
1328
|
}
|
1329
1329
|
function mE(e) {
|
1330
|
-
const c =
|
1331
|
-
return e.named && (
|
1330
|
+
const c = L2(e.pluralIndex) ? e.pluralIndex : -1;
|
1331
|
+
return e.named && (L2(e.named.count) || L2(e.named.n)) ? L2(e.named.count) ? e.named.count : L2(e.named.n) ? e.named.n : c : c;
|
1332
1332
|
}
|
1333
1333
|
function dE(e, c) {
|
1334
1334
|
c.count || (c.count = e), c.n || (c.n = e);
|
1335
1335
|
}
|
1336
1336
|
function vE(e = {}) {
|
1337
1337
|
const c = e.locale, a = mE(e), t = r2(e.pluralRules) && F(c) && u2(e.pluralRules[c]) ? e.pluralRules[c] : I9, i = r2(e.pluralRules) && F(c) && u2(e.pluralRules[c]) ? I9 : void 0, n = (V) => V[t(a, V.length, i)], s = e.list || [], r = (V) => s[V], l = e.named || {};
|
1338
|
-
|
1338
|
+
L2(e.pluralIndex) && dE(a, l);
|
1339
1339
|
const f = (V) => l[V];
|
1340
1340
|
function o(V) {
|
1341
1341
|
const L = u2(e.messages) ? e.messages(V) : r2(e.messages) ? e.messages[V] : !1;
|
@@ -1783,10 +1783,10 @@ function PE(e, c, a) {
|
|
1783
1783
|
}
|
1784
1784
|
function Y6(...e) {
|
1785
1785
|
const [c, a, t] = e, i = {};
|
1786
|
-
if (!F(c) && !
|
1786
|
+
if (!F(c) && !L2(c) && !G2(c) && !S1(c))
|
1787
1787
|
throw R1(Y2.INVALID_ARGUMENT);
|
1788
|
-
const n =
|
1789
|
-
return
|
1788
|
+
const n = L2(c) ? String(c) : (G2(c), c);
|
1789
|
+
return L2(a) ? i.plural = a : F(a) ? i.default = a : K(a) && !E4(a) ? i.named = a : o2(a) && (i.list = a), L2(t) ? i.plural = t : F(t) ? i.default = t : K(t) && k2(i, t), [n, i];
|
1790
1790
|
}
|
1791
1791
|
function OE(e, c, a, t, i, n) {
|
1792
1792
|
return {
|
@@ -1837,7 +1837,7 @@ function FE(e, c, a, t) {
|
|
1837
1837
|
return G2(_) ? _ : $9;
|
1838
1838
|
}
|
1839
1839
|
};
|
1840
|
-
return e.processor && (m.processor = e.processor), t.list && (m.list = t.list), t.named && (m.named = t.named),
|
1840
|
+
return e.processor && (m.processor = e.processor), t.list && (m.list = t.list), t.named && (m.named = t.named), L2(t.plural) && (m.pluralIndex = t.plural), m;
|
1841
1841
|
}
|
1842
1842
|
const U9 = typeof Intl < "u", Li = {
|
1843
1843
|
dateTimeFormat: U9 && typeof Intl.DateTimeFormat < "u",
|
@@ -1922,7 +1922,7 @@ function Q6(...e) {
|
|
1922
1922
|
if (isNaN(c.getTime()))
|
1923
1923
|
throw R1(Y2.INVALID_DATE_ARGUMENT);
|
1924
1924
|
r = c;
|
1925
|
-
} else if (
|
1925
|
+
} else if (L2(c))
|
1926
1926
|
r = c;
|
1927
1927
|
else
|
1928
1928
|
throw R1(Y2.INVALID_ARGUMENT);
|
@@ -2001,7 +2001,7 @@ const _i = [
|
|
2001
2001
|
function X6(...e) {
|
2002
2002
|
const [c, a, t, i] = e, n = {};
|
2003
2003
|
let s = {};
|
2004
|
-
if (!
|
2004
|
+
if (!L2(c))
|
2005
2005
|
throw R1(Y2.INVALID_ARGUMENT);
|
2006
2006
|
const r = c;
|
2007
2007
|
return F(a) ? n.key = a : K(a) && Object.keys(a).forEach((l) => {
|
@@ -2347,7 +2347,7 @@ function N0(e = {}, c) {
|
|
2347
2347
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (g.fallbackContext = void 0);
|
2348
2348
|
}
|
2349
2349
|
if (n2 !== "translate exists" && // for not `te` (e.g `t`)
|
2350
|
-
|
2350
|
+
L2(J1) && J1 === D4 || n2 === "translate exists" && !J1) {
|
2351
2351
|
const [F1, eI] = O();
|
2352
2352
|
if (process.env.NODE_ENV !== "production" && a && F(F1) && z2(n2, eI) && (_ && (P4(h, F1) || hi(m, F1)) && x2($2(M2.FALLBACK_TO_ROOT, {
|
2353
2353
|
key: F1,
|
@@ -2384,7 +2384,7 @@ function N0(e = {}, c) {
|
|
2384
2384
|
return C2((O) => Reflect.apply(G9, null, [O, ...k]), () => X6(...k), "number format", (O) => Reflect.apply(O.n, O, [...k]), () => y4, (O) => F(O));
|
2385
2385
|
}
|
2386
2386
|
function D2(k) {
|
2387
|
-
return k.map((O) => F(O) ||
|
2387
|
+
return k.map((O) => F(O) || L2(O) || c2(O) ? Q9(String(O)) : O);
|
2388
2388
|
}
|
2389
2389
|
const s1 = {
|
2390
2390
|
normalize: D2,
|
@@ -2755,7 +2755,7 @@ function a0(e = {}, c) {
|
|
2755
2755
|
if (!F(s))
|
2756
2756
|
throw N2(i2.INVALID_ARGUMENT);
|
2757
2757
|
const m = s;
|
2758
|
-
return F(r) ? f.locale = r :
|
2758
|
+
return F(r) ? f.locale = r : L2(r) ? f.plural = r : o2(r) ? o = r : K(r) && (d = r), F(l) ? f.locale = l : o2(l) ? o = l : K(l) && (d = l), Reflect.apply(a.t, a, [
|
2759
2759
|
m,
|
2760
2760
|
o || d || {},
|
2761
2761
|
f
|
@@ -2870,7 +2870,7 @@ const tD = /* @__PURE__ */ W({
|
|
2870
2870
|
plural: {
|
2871
2871
|
type: [Number, String],
|
2872
2872
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2873
|
-
validator: (e) =>
|
2873
|
+
validator: (e) => L2(e) || !isNaN(e)
|
2874
2874
|
}
|
2875
2875
|
}, y0),
|
2876
2876
|
/* eslint-enable */
|
@@ -3014,7 +3014,7 @@ function an(e) {
|
|
3014
3014
|
}
|
3015
3015
|
function tn(e) {
|
3016
3016
|
const { path: c, locale: a, args: t, choice: i, plural: n } = e, s = {}, r = t || {};
|
3017
|
-
return F(a) && (s.locale = a),
|
3017
|
+
return F(a) && (s.locale = a), L2(i) && (s.plural = i), L2(n) && (s.plural = n), [c, r, s];
|
3018
3018
|
}
|
3019
3019
|
function oD(e, c, ...a) {
|
3020
3020
|
const t = K(a[0]) ? a[0] : {}, i = !!t.useI18nComponentName, n = c2(t.globalInstall) ? t.globalInstall : !0;
|
@@ -17338,7 +17338,7 @@ const RB = W({
|
|
17338
17338
|
"data-test": "btn-icon"
|
17339
17339
|
}, null, 8, ["icon"])) : E("", !0),
|
17340
17340
|
h2(t.$slots, "default", {}, () => [
|
17341
|
-
|
17341
|
+
b2(y(e.label), 1)
|
17342
17342
|
], !0),
|
17343
17343
|
e.iconRight ? (p(), Y(n, {
|
17344
17344
|
key: 1,
|
@@ -18521,15 +18521,15 @@ const rR = /* @__PURE__ */ G(sR, [["__scopeId", "data-v-0cc3f6d1"]]), lR = { cla
|
|
18521
18521
|
])) : (p(), H("div", pR, [
|
18522
18522
|
u("div", hR, y(s.value.primary), 1),
|
18523
18523
|
u("div", VR, [
|
18524
|
-
|
18524
|
+
b2(y(s.value.secondary.start) + " ", 1),
|
18525
18525
|
u("strong", null, y(s.value.secondary.strong), 1),
|
18526
|
-
|
18526
|
+
b2(" " + y(s.value.secondary.end), 1)
|
18527
18527
|
])
|
18528
18528
|
]))
|
18529
18529
|
], 8, mR)
|
18530
18530
|
], 34),
|
18531
18531
|
e.disableAcceptedFormats ? E("", !0) : (p(), H("p", zR, [
|
18532
|
-
|
18532
|
+
b2(y(s.value.acceptedFormats) + " ", 1),
|
18533
18533
|
u("em", HR, y(m.value), 1)
|
18534
18534
|
])),
|
18535
18535
|
n.value.length ? (p(), H("div", MR, [
|
@@ -18552,7 +18552,7 @@ const rR = /* @__PURE__ */ G(sR, [["__scopeId", "data-v-0cc3f6d1"]]), lR = { cla
|
|
18552
18552
|
}))
|
18553
18553
|
]),
|
18554
18554
|
u("p", _R, [
|
18555
|
-
|
18555
|
+
b2(y(g.name) + " ", 1),
|
18556
18556
|
u("em", null, y(Math.round(g.size / 1e3) + "kb"), 1)
|
18557
18557
|
])
|
18558
18558
|
]),
|
@@ -18660,7 +18660,7 @@ const PR = /* @__PURE__ */ G(DR, [["__scopeId", "data-v-3122c494"]]), OR = (e) =
|
|
18660
18660
|
disabled: e.disabled
|
18661
18661
|
}, null, 40, FR),
|
18662
18662
|
RR,
|
18663
|
-
|
18663
|
+
b2(" " + y(e.value), 1)
|
18664
18664
|
], 10, BR));
|
18665
18665
|
}
|
18666
18666
|
});
|
@@ -19097,7 +19097,7 @@ const h$ = /* @__PURE__ */ G(p$, [["__scopeId", "data-v-e8fb623b"]]), V$ = ["hre
|
|
19097
19097
|
icon: `fa-solid fa-${e.icon}`,
|
19098
19098
|
"data-test": "option-icon"
|
19099
19099
|
}, null, 8, ["icon"])) : E("", !0),
|
19100
|
-
|
19100
|
+
b2(" " + y(e.optionLabel), 1)
|
19101
19101
|
], 10, V$);
|
19102
19102
|
};
|
19103
19103
|
}
|
@@ -19186,7 +19186,7 @@ const H$ = /* @__PURE__ */ G(z$, [["__scopeId", "data-v-f770cea1"]]), M$ = ["dis
|
|
19186
19186
|
})
|
19187
19187
|
], !0),
|
19188
19188
|
h2(r.$slots, "waitingLabel", {}, () => [
|
19189
|
-
|
19189
|
+
b2("Working...")
|
19190
19190
|
], !0)
|
19191
19191
|
], 64)) : h2(r.$slots, "default", { key: 0 }, () => [
|
19192
19192
|
w(f, {
|
@@ -19382,7 +19382,7 @@ const k$ = /* @__PURE__ */ G(S$, [["__scopeId", "data-v-607d90fc"]]), w$ = {
|
|
19382
19382
|
class: q(`AVTimedCard--help-text ${e.timeout - t.value <= e.customWarningTime && "AVTimedCard--help-text-warning"}`),
|
19383
19383
|
"data-test": "help-text"
|
19384
19384
|
}, [
|
19385
|
-
|
19385
|
+
b2(y(e.expirationMessage), 1),
|
19386
19386
|
u("strong", null, y(f.value), 1)
|
19387
19387
|
], 2)
|
19388
19388
|
], 64));
|
@@ -19451,7 +19451,7 @@ const R$ = /* @__PURE__ */ G(F$, [["__scopeId", "data-v-9a6218e9"]]), $$ = { cla
|
|
19451
19451
|
setup(e) {
|
19452
19452
|
const c = e;
|
19453
19453
|
lI((f) => ({
|
19454
|
-
"
|
19454
|
+
"9a660bc2": l.value
|
19455
19455
|
}));
|
19456
19456
|
const a = J([]), t = i3().data.i18n, { t: i } = H0(t.global), n = D(() => t.global.locale), s = () => {
|
19457
19457
|
a.value = [], c.steps.map((f) => {
|
@@ -19479,7 +19479,6 @@ const R$ = /* @__PURE__ */ G(F$, [["__scopeId", "data-v-9a6218e9"]]), $$ = { cla
|
|
19479
19479
|
const d = I("AVIcon");
|
19480
19480
|
return p(), H("div", $$, [
|
19481
19481
|
u("div", j$, y(n.value), 1),
|
19482
|
-
L2(" @vue-skip "),
|
19483
19482
|
u("div", U$, y(N1(i)("actions.back")), 1),
|
19484
19483
|
u("div", q$, y(N1(i)("acceptedFormats")), 1),
|
19485
19484
|
(p(!0), H(t2, null, H2(a.value, (m, h) => (p(), H("div", {
|
@@ -19504,7 +19503,7 @@ const R$ = /* @__PURE__ */ G(F$, [["__scopeId", "data-v-9a6218e9"]]), $$ = { cla
|
|
19504
19503
|
};
|
19505
19504
|
}
|
19506
19505
|
});
|
19507
|
-
const Y$ = /* @__PURE__ */ G(G$, [["__scopeId", "data-v-
|
19506
|
+
const Y$ = /* @__PURE__ */ G(G$, [["__scopeId", "data-v-4e12fff2"]]), Q$ = {
|
19508
19507
|
ar: { aria_label: "مرتبة" },
|
19509
19508
|
da: { aria_label: "Rangeret" },
|
19510
19509
|
de: { aria_label: "Rang" },
|
@@ -20037,7 +20036,7 @@ const yj = /* @__PURE__ */ G(Nj, [["__scopeId", "data-v-71e09fe3"]]), Aj = ["hre
|
|
20037
20036
|
w(r, { icon: "fa-solid fa-location-pin" })
|
20038
20037
|
]),
|
20039
20038
|
u("span", Dj, [
|
20040
|
-
|
20039
|
+
b2(y(e.countyNameLabel), 1),
|
20041
20040
|
u("strong", null, y(e.countyName), 1)
|
20042
20041
|
])
|
20043
20042
|
]),
|
@@ -20046,7 +20045,7 @@ const yj = /* @__PURE__ */ G(Nj, [["__scopeId", "data-v-71e09fe3"]]), Aj = ["hre
|
|
20046
20045
|
w(r, { icon: "fa-solid fa-file-circle-plus" })
|
20047
20046
|
]),
|
20048
20047
|
u("span", Bj, [
|
20049
|
-
|
20048
|
+
b2(y(e.createdAtLabel), 1),
|
20050
20049
|
u("strong", null, y(e.createdAt), 1)
|
20051
20050
|
])
|
20052
20051
|
]),
|
@@ -20055,7 +20054,7 @@ const yj = /* @__PURE__ */ G(Nj, [["__scopeId", "data-v-71e09fe3"]]), Aj = ["hre
|
|
20055
20054
|
w(r, { icon: "fa-solid fa-pen-to-square" })
|
20056
20055
|
]),
|
20057
20056
|
u("span", $j, [
|
20058
|
-
|
20057
|
+
b2(y(e.lastUpdatedLabel), 1),
|
20059
20058
|
u("strong", null, y(e.lastUpdated), 1)
|
20060
20059
|
])
|
20061
20060
|
])
|
@@ -21406,7 +21405,7 @@ const rq = /* @__PURE__ */ G(sq, [["__scopeId", "data-v-59ca7d66"]]), lq = {
|
|
21406
21405
|
u("div", pq, [
|
21407
21406
|
e.minMarks === e.maxMarks ? (p(), H("div", hq, y(`${a.value.select_exactly.before} ${e.minMarks} ${a.value.select_exactly.after}`), 1)) : (p(), H("div", Vq, y(`${a.value.select_multiple.before} ${e.minMarks} ${a.value.select_multiple.mid} ${e.maxMarks} ${a.value.select_exactly.after}`), 1)),
|
21408
21407
|
e.chosenCount > 0 ? (p(), H("div", zq, [
|
21409
|
-
|
21408
|
+
b2(y(a.value.selected) + " ", 1),
|
21410
21409
|
u("b", null, y(e.chosenCount), 1)
|
21411
21410
|
])) : E("", !0)
|
21412
21411
|
])
|
@@ -21693,19 +21692,19 @@ const Eq = /* @__PURE__ */ G(Iq, [["__scopeId", "data-v-452a5a8e"]]), Dq = {
|
|
21693
21692
|
return (t, i) => (p(), H("div", Pq, [
|
21694
21693
|
u("div", Oq, [
|
21695
21694
|
u("span", null, [
|
21696
|
-
|
21695
|
+
b2(y(a.value.total) + " ", 1),
|
21697
21696
|
u("strong", null, y(e.assignedWeight + e.unusedWeight), 1)
|
21698
21697
|
])
|
21699
21698
|
]),
|
21700
21699
|
u("div", Bq, [
|
21701
21700
|
u("span", null, [
|
21702
|
-
|
21701
|
+
b2(y(a.value.assigned) + " ", 1),
|
21703
21702
|
u("strong", null, y(e.assignedWeight), 1)
|
21704
21703
|
])
|
21705
21704
|
]),
|
21706
21705
|
u("div", Fq, [
|
21707
21706
|
u("span", null, [
|
21708
|
-
|
21707
|
+
b2(y(a.value.unused) + " ", 1),
|
21709
21708
|
u("strong", null, y(e.unusedWeight), 1)
|
21710
21709
|
])
|
21711
21710
|
])
|
@@ -23212,11 +23211,11 @@ function MG(e, c, a, t, i, n) {
|
|
23212
23211
|
icon: "circle-check",
|
23213
23212
|
class: "AVSplitHelper--overview-success-icon"
|
23214
23213
|
}),
|
23215
|
-
|
23214
|
+
b2(" " + y(e.componentTranslations.overview.all_ballots_assigned), 1)
|
23216
23215
|
])) : (p(), H("div", hG, [
|
23217
23216
|
u("p", VG, [
|
23218
23217
|
u("strong", null, y(e.unusedWeight), 1),
|
23219
|
-
|
23218
|
+
b2(" " + y(e.componentTranslations.overview.ballots_left), 1)
|
23220
23219
|
]),
|
23221
23220
|
u("button", {
|
23222
23221
|
key: "newSelection",
|
@@ -23229,7 +23228,7 @@ function MG(e, c, a, t, i, n) {
|
|
23229
23228
|
})
|
23230
23229
|
}, [
|
23231
23230
|
w(d, { icon: "file-circle-plus" }),
|
23232
|
-
|
23231
|
+
b2(" " + y(e.componentTranslations.overview.new_ballot_selection), 1)
|
23233
23232
|
], 8, zG)
|
23234
23233
|
])),
|
23235
23234
|
(p(!0), H(t2, null, H2(e.selectionPiles, function(b, x) {
|