@choosemycompany/ui 0.24.0 → 0.24.1
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/assets/index.css +1 -1
- package/dist/index.js +66 -67
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as te, shallowRef as wt, onMounted as xt, watch as We, onUnmounted as St, h as ee, nextTick as Wt, computed as v, createBlock as K, openBlock as C, unref as T, normalizeClass as $, createElementBlock as h, createElementVNode as
|
|
1
|
+
import { defineComponent as P, ref as te, shallowRef as wt, onMounted as xt, watch as We, onUnmounted as St, h as ee, nextTick as Wt, computed as v, createBlock as K, openBlock as C, unref as T, normalizeClass as $, createElementBlock as h, createElementVNode as R, renderSlot as O, createCommentVNode as k, toDisplayString as z, createVNode as Z, mergeProps as Yt, withCtx as Se, createTextVNode as Ye, Fragment as E, renderList as H, mergeModels as Q, useModel as ne, useSlots as Jt, withDirectives as Me, vModelDynamic as e0, useId as Re, vModelCheckbox as Mt, normalizeStyle as J, createStaticVNode as be, withModifiers as we, resolveDynamicComponent as t0, vModelSelect as n0, isRef as o0, watchEffect as r0, withKeys as fe, useAttrs as l0, normalizeProps as i0, guardReactiveProps as s0 } from "vue";
|
|
2
2
|
import './assets/index.css';const a0 = {
|
|
3
3
|
primary: "primary",
|
|
4
4
|
secondary: "secondary"
|
|
@@ -336,14 +336,14 @@ function b0(e, n) {
|
|
|
336
336
|
let l = t.body;
|
|
337
337
|
[t, o].forEach((m) => {
|
|
338
338
|
const L = [], y = m.hFlip, x = m.vFlip;
|
|
339
|
-
let
|
|
340
|
-
y ? x ?
|
|
339
|
+
let b = m.rotate;
|
|
340
|
+
y ? x ? b += 2 : (L.push(
|
|
341
341
|
"translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
|
|
342
342
|
), L.push("scale(-1 1)"), r.top = r.left = 0) : x && (L.push(
|
|
343
343
|
"translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
|
|
344
344
|
), L.push("scale(1 -1)"), r.top = r.left = 0);
|
|
345
345
|
let M;
|
|
346
|
-
switch (
|
|
346
|
+
switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
|
|
347
347
|
case 1:
|
|
348
348
|
M = r.height / 2 + r.top, L.unshift(
|
|
349
349
|
"rotate(90 " + M.toString() + " " + M.toString() + ")"
|
|
@@ -360,7 +360,7 @@ function b0(e, n) {
|
|
|
360
360
|
);
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
b % 2 === 1 && (r.left !== r.top && (M = r.left, r.left = r.top, r.top = M), r.width !== r.height && (M = r.width, r.width = r.height, r.height = M)), L.length && (l = M0(
|
|
364
364
|
l,
|
|
365
365
|
'<g transform="' + L.join(" ") + '">',
|
|
366
366
|
"</g>"
|
|
@@ -695,7 +695,7 @@ function j0(e, n, t, o) {
|
|
|
695
695
|
S(void 0, c);
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function b() {
|
|
699
699
|
g.forEach((S) => {
|
|
700
700
|
S.status === "pending" && (S.status = "aborted");
|
|
701
701
|
}), g = [];
|
|
@@ -720,7 +720,7 @@ function j0(e, n, t, o) {
|
|
|
720
720
|
c = B, g.length || (i.length ? F() : x());
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
if (p(),
|
|
723
|
+
if (p(), b(), !e.random) {
|
|
724
724
|
const N = e.resources.indexOf(S.resource);
|
|
725
725
|
N !== -1 && N !== e.index && (e.index = N);
|
|
726
726
|
}
|
|
@@ -736,7 +736,7 @@ function j0(e, n, t, o) {
|
|
|
736
736
|
if (S === void 0) {
|
|
737
737
|
if (g.length) {
|
|
738
738
|
f = setTimeout(() => {
|
|
739
|
-
p(), a === "pending" && (
|
|
739
|
+
p(), a === "pending" && (b(), x());
|
|
740
740
|
}, e.timeout);
|
|
741
741
|
return;
|
|
742
742
|
}
|
|
@@ -1278,7 +1278,7 @@ const dn = {
|
|
|
1278
1278
|
onClick: i,
|
|
1279
1279
|
disabled: t.disabled
|
|
1280
1280
|
}, [
|
|
1281
|
-
|
|
1281
|
+
R("span", mn, [
|
|
1282
1282
|
t.icon || t.loading ? (C(), K(j, {
|
|
1283
1283
|
key: 0,
|
|
1284
1284
|
name: l()
|
|
@@ -1308,10 +1308,10 @@ const dn = {
|
|
|
1308
1308
|
return (l, i) => (C(), h("div", {
|
|
1309
1309
|
class: $(r.value)
|
|
1310
1310
|
}, [
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1311
|
+
R("div", hn, [
|
|
1312
|
+
R("div", vn, [
|
|
1313
|
+
R("div", yn, z(e.title), 1),
|
|
1314
|
+
R("div", _n, z(e.message), 1)
|
|
1315
1315
|
]),
|
|
1316
1316
|
e.button ? (C(), h("div", wn, [
|
|
1317
1317
|
Z(Ln, Yt(e.button, {
|
|
@@ -1337,7 +1337,7 @@ const dn = {
|
|
|
1337
1337
|
o.preventDefault(), n.item.callback?.();
|
|
1338
1338
|
}
|
|
1339
1339
|
return (o, r) => (C(), h("div", Mn, [
|
|
1340
|
-
|
|
1340
|
+
R("a", {
|
|
1341
1341
|
href: "#",
|
|
1342
1342
|
class: "breadcrumb-item__link",
|
|
1343
1343
|
onClick: t
|
|
@@ -1423,9 +1423,9 @@ const dn = {
|
|
|
1423
1423
|
class: "input__label"
|
|
1424
1424
|
}, z(t.label), 9, Fn)) : k("", !0),
|
|
1425
1425
|
t.description ? (C(), h("div", Pn, z(t.description), 1)) : k("", !0),
|
|
1426
|
-
|
|
1426
|
+
R("div", kn, [
|
|
1427
1427
|
O(u.$slots, "left", {}, void 0, !0),
|
|
1428
|
-
Me(
|
|
1428
|
+
Me(R("input", {
|
|
1429
1429
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => r.value = f),
|
|
1430
1430
|
id: t.id,
|
|
1431
1431
|
type: t.type,
|
|
@@ -1558,7 +1558,7 @@ const dn = {
|
|
|
1558
1558
|
const x = v(() => ({
|
|
1559
1559
|
autocomplete: !0,
|
|
1560
1560
|
"autocomplete--open": s.value
|
|
1561
|
-
})),
|
|
1561
|
+
})), b = v(() => ({
|
|
1562
1562
|
autocomplete__icon_chevron: !0,
|
|
1563
1563
|
"autocomplete__icon_chevron--open": s.value
|
|
1564
1564
|
}));
|
|
@@ -1582,7 +1582,7 @@ const dn = {
|
|
|
1582
1582
|
}, {
|
|
1583
1583
|
right: Se(() => [
|
|
1584
1584
|
Z(j, {
|
|
1585
|
-
class: $(
|
|
1585
|
+
class: $(b.value),
|
|
1586
1586
|
"aria-hidden": "true",
|
|
1587
1587
|
color: "light",
|
|
1588
1588
|
name: "chevronDown",
|
|
@@ -1630,7 +1630,7 @@ const dn = {
|
|
|
1630
1630
|
return (o, r) => (C(), h("div", {
|
|
1631
1631
|
class: $(t.value)
|
|
1632
1632
|
}, [
|
|
1633
|
-
|
|
1633
|
+
R("span", Bn, z(e.label), 1)
|
|
1634
1634
|
], 2));
|
|
1635
1635
|
}
|
|
1636
1636
|
}), Ar = /* @__PURE__ */ I(Nn, [["__scopeId", "data-v-2eabf0ca"]]), Tt = {
|
|
@@ -2023,7 +2023,7 @@ const dn = {
|
|
|
2023
2023
|
};
|
|
2024
2024
|
function l1(e, n) {
|
|
2025
2025
|
return C(), h("svg", r1, [...n[0] || (n[0] = [
|
|
2026
|
-
|
|
2026
|
+
R("path", {
|
|
2027
2027
|
d: "M4.1625 7.3625L10.5187 1.00625C10.6687 0.85625 10.8437 0.78125 11.0437 0.78125C11.2437 0.78125 11.4187 0.85625 11.5687 1.00625C11.7187 1.15625 11.7937 1.3345 11.7937 1.541C11.7937 1.7475 11.7187 1.9255 11.5687 2.075L4.6875 8.975C4.5375 9.125 4.3625 9.2 4.1625 9.2C3.9625 9.2 3.7875 9.125 3.6375 8.975L0.412498 5.75C0.262498 5.6 0.190498 5.422 0.196498 5.216C0.202498 5.01 0.280748 4.83175 0.431248 4.68125C0.581748 4.53075 0.759998 4.45575 0.965998 4.45625C1.172 4.45675 1.35 4.53175 1.5 4.68125L4.1625 7.3625Z",
|
|
2028
2028
|
fill: "var(--cmc-color-brand-blue-600)"
|
|
2029
2029
|
}, null, -1)
|
|
@@ -2050,7 +2050,7 @@ const i1 = /* @__PURE__ */ I(o1, [["render", l1]]), s1 = ["id", "disabled", "req
|
|
|
2050
2050
|
return (l, i) => (C(), h("div", {
|
|
2051
2051
|
class: $(r.value)
|
|
2052
2052
|
}, [
|
|
2053
|
-
Me(
|
|
2053
|
+
Me(R("input", {
|
|
2054
2054
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2055
2055
|
id: o.value,
|
|
2056
2056
|
type: "checkbox",
|
|
@@ -2250,7 +2250,7 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2250
2250
|
u.value && o("update:currentPage", t.currentPage + 1);
|
|
2251
2251
|
};
|
|
2252
2252
|
return (g, d) => (C(), h("nav", A1, [
|
|
2253
|
-
|
|
2253
|
+
R("button", {
|
|
2254
2254
|
class: $(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
2255
2255
|
disabled: !a.value,
|
|
2256
2256
|
"aria-label": "Page précédente",
|
|
@@ -2263,7 +2263,7 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2263
2263
|
onClick: () => o("update:currentPage", p)
|
|
2264
2264
|
}, z(p), 11, Z1)) : (C(), h("span", D1, "…"))
|
|
2265
2265
|
], 64))), 128)),
|
|
2266
|
-
|
|
2266
|
+
R("button", {
|
|
2267
2267
|
class: $(["pagination__page-button", { "is-invisible": !u.value }]),
|
|
2268
2268
|
disabled: !u.value,
|
|
2269
2269
|
"aria-label": "Page suivante",
|
|
@@ -2302,22 +2302,21 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2302
2302
|
"aria-valuemax": "100",
|
|
2303
2303
|
"aria-label": s.value
|
|
2304
2304
|
}, [
|
|
2305
|
-
|
|
2305
|
+
R("div", U1, [
|
|
2306
2306
|
(C(), h("svg", q1, [
|
|
2307
|
-
f[0] || (f[0] =
|
|
2307
|
+
f[0] || (f[0] = R("path", {
|
|
2308
2308
|
class: "cmc-gauge__track",
|
|
2309
2309
|
d: "M 16 100 A 84 84 0 0 1 184 100"
|
|
2310
2310
|
}, null, -1)),
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
class: "cmc-gauge__progress",
|
|
2311
|
+
R("path", {
|
|
2312
|
+
class: $(["cmc-gauge__progress", { "cmc-gauge__progress--hidden": i.value === 100 }]),
|
|
2314
2313
|
d: "M 9 100 A 91 91 0 0 1 191 100",
|
|
2315
2314
|
pathLength: "100",
|
|
2316
2315
|
"stroke-dashoffset": i.value
|
|
2317
|
-
}, null,
|
|
2316
|
+
}, null, 10, j1)
|
|
2318
2317
|
])),
|
|
2319
|
-
|
|
2320
|
-
|
|
2318
|
+
R("div", K1, [
|
|
2319
|
+
R("div", {
|
|
2321
2320
|
class: $(["cmc-gauge__value", { "cmc-gauge__value--skeleton skeleton": e.loading }])
|
|
2322
2321
|
}, z(l.value), 3),
|
|
2323
2322
|
e.label ? (C(), h("div", {
|
|
@@ -2332,7 +2331,7 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2332
2331
|
}, z(u.value), 3)) : k("", !0)
|
|
2333
2332
|
], 10, N1));
|
|
2334
2333
|
}
|
|
2335
|
-
}), Gr = /* @__PURE__ */ I(X1, [["__scopeId", "data-v-
|
|
2334
|
+
}), Gr = /* @__PURE__ */ I(X1, [["__scopeId", "data-v-32fe18c0"]]), Q1 = ["aria-valuenow", "aria-label"], W1 = /* @__PURE__ */ P({
|
|
2336
2335
|
name: "CmcProgressBar",
|
|
2337
2336
|
__name: "CmcProgressBar",
|
|
2338
2337
|
props: {
|
|
@@ -2358,13 +2357,13 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2358
2357
|
"aria-valuemax": "100",
|
|
2359
2358
|
"aria-label": s.value
|
|
2360
2359
|
}, [
|
|
2361
|
-
|
|
2360
|
+
R("div", {
|
|
2362
2361
|
class: $(["progress-bar__value", { "progress-bar__value--skeleton skeleton": e.loading }])
|
|
2363
2362
|
}, z(l.value), 3),
|
|
2364
|
-
|
|
2363
|
+
R("div", {
|
|
2365
2364
|
class: $(["progress-bar__track", { skeleton: e.loading }])
|
|
2366
2365
|
}, [
|
|
2367
|
-
|
|
2366
|
+
R("div", {
|
|
2368
2367
|
class: "progress-bar__fill",
|
|
2369
2368
|
style: J(i.value)
|
|
2370
2369
|
}, null, 4)
|
|
@@ -2468,8 +2467,8 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2468
2467
|
class: "select__label"
|
|
2469
2468
|
}, z(e.label), 9, J1)) : k("", !0),
|
|
2470
2469
|
n.description ? (C(), h("div", eo, z(n.description), 1)) : k("", !0),
|
|
2471
|
-
|
|
2472
|
-
Me(
|
|
2470
|
+
R("div", to, [
|
|
2471
|
+
Me(R("select", {
|
|
2473
2472
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2474
2473
|
id: e.id,
|
|
2475
2474
|
required: e.required,
|
|
@@ -2513,8 +2512,8 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2513
2512
|
return (o, r) => (C(), h("div", {
|
|
2514
2513
|
class: $(t.value)
|
|
2515
2514
|
}, [
|
|
2516
|
-
r[0] || (r[0] =
|
|
2517
|
-
|
|
2515
|
+
r[0] || (r[0] = R("span", { class: "status__dot" }, null, -1)),
|
|
2516
|
+
R("span", so, z(n.text), 1)
|
|
2518
2517
|
], 2));
|
|
2519
2518
|
}
|
|
2520
2519
|
}), Ur = /* @__PURE__ */ I(ao, [["__scopeId", "data-v-9ebfdda4"]]);
|
|
@@ -2730,14 +2729,14 @@ function me(e, n, t, o) {
|
|
|
2730
2729
|
}, m = [];
|
|
2731
2730
|
g.forEach((L) => {
|
|
2732
2731
|
const y = [...m].reverse()[0], x = L.column.depth === p.depth;
|
|
2733
|
-
let
|
|
2734
|
-
if (x && L.column.parent ?
|
|
2732
|
+
let b, M = !1;
|
|
2733
|
+
if (x && L.column.parent ? b = L.column.parent : (b = L.column, M = !0), y && y?.column === b)
|
|
2735
2734
|
y.subHeaders.push(L);
|
|
2736
2735
|
else {
|
|
2737
|
-
const F = vt(t,
|
|
2738
|
-
id: [o, d,
|
|
2736
|
+
const F = vt(t, b, {
|
|
2737
|
+
id: [o, d, b.id, L?.id].filter(Boolean).join("_"),
|
|
2739
2738
|
isPlaceholder: M,
|
|
2740
|
-
placeholderId: M ? `${m.filter((S) => S.column ===
|
|
2739
|
+
placeholderId: M ? `${m.filter((S) => S.column === b).length}` : void 0,
|
|
2741
2740
|
depth: d,
|
|
2742
2741
|
index: m.length
|
|
2743
2742
|
});
|
|
@@ -2752,11 +2751,11 @@ function me(e, n, t, o) {
|
|
|
2752
2751
|
u(c, i - 1), a.reverse();
|
|
2753
2752
|
const f = (g) => g.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
2754
2753
|
let m = 0, L = 0, y = [0];
|
|
2755
|
-
p.subHeaders && p.subHeaders.length ? (y = [], f(p.subHeaders).forEach((
|
|
2754
|
+
p.subHeaders && p.subHeaders.length ? (y = [], f(p.subHeaders).forEach((b) => {
|
|
2756
2755
|
let {
|
|
2757
2756
|
colSpan: M,
|
|
2758
2757
|
rowSpan: F
|
|
2759
|
-
} =
|
|
2758
|
+
} = b;
|
|
2760
2759
|
m += M, y.push(F);
|
|
2761
2760
|
})) : m = 1;
|
|
2762
2761
|
const x = Math.min(...y);
|
|
@@ -3268,19 +3267,19 @@ const Ce = {
|
|
|
3268
3267
|
if (!o || !r || (l.persist == null || l.persist(), Oe(l) && l.touches && l.touches.length > 1))
|
|
3269
3268
|
return;
|
|
3270
3269
|
const i = e.getSize(), s = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[o.id, o.getSize()]], a = Oe(l) ? Math.round(l.touches[0].clientX) : l.clientX, u = {}, c = (y, x) => {
|
|
3271
|
-
typeof x == "number" && (n.setColumnSizingInfo((
|
|
3270
|
+
typeof x == "number" && (n.setColumnSizingInfo((b) => {
|
|
3272
3271
|
var M, F;
|
|
3273
|
-
const S = n.options.columnResizeDirection === "rtl" ? -1 : 1, V = (x - ((M =
|
|
3274
|
-
return
|
|
3272
|
+
const S = n.options.columnResizeDirection === "rtl" ? -1 : 1, V = (x - ((M = b?.startOffset) != null ? M : 0)) * S, B = Math.max(V / ((F = b?.startSize) != null ? F : 0), -0.999999);
|
|
3273
|
+
return b.columnSizingStart.forEach((oe) => {
|
|
3275
3274
|
let [N, lt] = oe;
|
|
3276
3275
|
u[N] = Math.round(Math.max(lt + lt * B, 0) * 100) / 100;
|
|
3277
3276
|
}), {
|
|
3278
|
-
...
|
|
3277
|
+
...b,
|
|
3279
3278
|
deltaOffset: V,
|
|
3280
3279
|
deltaPercentage: B
|
|
3281
3280
|
};
|
|
3282
|
-
}), (n.options.columnResizeMode === "onChange" || y === "end") && n.setColumnSizing((
|
|
3283
|
-
...
|
|
3281
|
+
}), (n.options.columnResizeMode === "onChange" || y === "end") && n.setColumnSizing((b) => ({
|
|
3282
|
+
...b,
|
|
3284
3283
|
...u
|
|
3285
3284
|
})));
|
|
3286
3285
|
}, f = (y) => c("move", y), g = (y) => {
|
|
@@ -4108,8 +4107,8 @@ function Xo(e) {
|
|
|
4108
4107
|
getAllColumns: _(() => [r._getColumnDefs()], (g) => {
|
|
4109
4108
|
const d = function(p, m, L) {
|
|
4110
4109
|
return L === void 0 && (L = 0), p.map((y) => {
|
|
4111
|
-
const x = fo(r, y, L, m),
|
|
4112
|
-
return x.columns =
|
|
4110
|
+
const x = fo(r, y, L, m), b = y;
|
|
4111
|
+
return x.columns = b.columns ? d(b.columns, x, L + 1) : [], x;
|
|
4113
4112
|
});
|
|
4114
4113
|
};
|
|
4115
4114
|
return d(g);
|
|
@@ -4179,7 +4178,7 @@ function Wo() {
|
|
|
4179
4178
|
const p = l[d], m = i[p.id], L = m.sortUndefined, y = (g = p?.desc) != null ? g : !1;
|
|
4180
4179
|
let x = 0;
|
|
4181
4180
|
if (L) {
|
|
4182
|
-
const
|
|
4181
|
+
const b = c.getValue(p.id), M = f.getValue(p.id), F = b === void 0, S = M === void 0;
|
|
4183
4182
|
if (F || S) {
|
|
4184
4183
|
if (L === "first") return F ? -1 : 1;
|
|
4185
4184
|
if (L === "last") return F ? 1 : -1;
|
|
@@ -4370,8 +4369,8 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4370
4369
|
]))), 128))
|
|
4371
4370
|
]))), 128))
|
|
4372
4371
|
])) : (C(), h("tbody", lr, [
|
|
4373
|
-
|
|
4374
|
-
|
|
4372
|
+
R("tr", null, [
|
|
4373
|
+
R("td", {
|
|
4375
4374
|
colspan: e.leafColCount,
|
|
4376
4375
|
class: "td__empty"
|
|
4377
4376
|
}, [
|
|
@@ -4482,7 +4481,7 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4482
4481
|
]),
|
|
4483
4482
|
_: 3
|
|
4484
4483
|
}, 8, ["level"]),
|
|
4485
|
-
t[0] || (t[0] =
|
|
4484
|
+
t[0] || (t[0] = R("hr", { class: "title__separator" }, null, -1))
|
|
4486
4485
|
], 64));
|
|
4487
4486
|
}
|
|
4488
4487
|
}), pr = {
|
|
@@ -4511,7 +4510,7 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4511
4510
|
return (l, i) => (C(), h("div", {
|
|
4512
4511
|
class: $(r.value)
|
|
4513
4512
|
}, [
|
|
4514
|
-
Me(
|
|
4513
|
+
Me(R("input", {
|
|
4515
4514
|
id: o.value,
|
|
4516
4515
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
4517
4516
|
disabled: n.disabled,
|
|
@@ -4521,11 +4520,11 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4521
4520
|
}, null, 8, mr), [
|
|
4522
4521
|
[Mt, t.value]
|
|
4523
4522
|
]),
|
|
4524
|
-
|
|
4523
|
+
R("label", {
|
|
4525
4524
|
for: o.value,
|
|
4526
4525
|
class: "toggle__switch"
|
|
4527
4526
|
}, [...i[1] || (i[1] = [
|
|
4528
|
-
|
|
4527
|
+
R("span", { class: "toggle__slider" }, null, -1)
|
|
4529
4528
|
])], 8, Cr)
|
|
4530
4529
|
], 2));
|
|
4531
4530
|
}
|
|
@@ -4563,7 +4562,7 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4563
4562
|
role: "list"
|
|
4564
4563
|
}, [
|
|
4565
4564
|
(C(!0), h(E, null, H(e.steps, (d, p) => (C(), h(E, { key: p }, [
|
|
4566
|
-
|
|
4565
|
+
R("div", {
|
|
4567
4566
|
class: $(["wizard__step", i(p)]),
|
|
4568
4567
|
"aria-current": u(p) ? "step" : void 0,
|
|
4569
4568
|
"aria-label": `step-${p + 1} : ${d.label}`,
|
|
@@ -4579,8 +4578,8 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4579
4578
|
name: "check"
|
|
4580
4579
|
})) : (C(), h("span", vr, z(p + 1), 1))
|
|
4581
4580
|
], 42, hr),
|
|
4582
|
-
|
|
4583
|
-
|
|
4581
|
+
R("div", yr, [
|
|
4582
|
+
R("span", {
|
|
4584
4583
|
class: $(["wizard__label-text", s(p)]),
|
|
4585
4584
|
tabindex: e.clickable ? 0 : -1,
|
|
4586
4585
|
onClick: (m) => l(p),
|
|
@@ -4618,7 +4617,7 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4618
4617
|
i.$slots.header ? (C(), h("div", Sr, [
|
|
4619
4618
|
O(i.$slots, "header", {}, void 0, !0)
|
|
4620
4619
|
])) : k("", !0),
|
|
4621
|
-
|
|
4620
|
+
R("form", {
|
|
4622
4621
|
class: "cmc-form__content",
|
|
4623
4622
|
onSubmit: we(l, ["prevent"])
|
|
4624
4623
|
}, [
|
|
@@ -4629,7 +4628,7 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4629
4628
|
status: "error",
|
|
4630
4629
|
class: "alert-box"
|
|
4631
4630
|
}, null, 8, ["title", "message"]))), 128)),
|
|
4632
|
-
|
|
4631
|
+
R("div", Mr, [
|
|
4633
4632
|
O(i.$slots, "fields", {}, void 0, !0)
|
|
4634
4633
|
]),
|
|
4635
4634
|
i.$slots.actions ? (C(), h("div", Rr, [
|
|
@@ -4649,7 +4648,7 @@ const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
|
4649
4648
|
},
|
|
4650
4649
|
setup(e) {
|
|
4651
4650
|
return (n, t) => (C(), h("div", $r, [
|
|
4652
|
-
|
|
4651
|
+
R("div", Ir, [
|
|
4653
4652
|
O(n.$slots, "default", {}, void 0, !0)
|
|
4654
4653
|
]),
|
|
4655
4654
|
e.errorMessage ? (C(), h("div", Fr, [
|