@choosemycompany/ui 0.23.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.d.ts +30 -21
- package/dist/index.js +544 -483
- package/dist/index.umd.js +6 -6
- 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
|
|
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"
|
|
@@ -40,7 +40,7 @@ import './assets/index.css';const a0 = {
|
|
|
40
40
|
target: "qlementine-icons:target-16",
|
|
41
41
|
trophy: "material-symbols:trophy",
|
|
42
42
|
world: "mdi:earth"
|
|
43
|
-
},
|
|
43
|
+
}, zr = {
|
|
44
44
|
primary: "primary",
|
|
45
45
|
secondary: "secondary",
|
|
46
46
|
danger: "danger",
|
|
@@ -61,7 +61,7 @@ import './assets/index.css';const a0 = {
|
|
|
61
61
|
prefix: a,
|
|
62
62
|
name: s
|
|
63
63
|
};
|
|
64
|
-
return n && !
|
|
64
|
+
return n && !ve(u) ? null : u;
|
|
65
65
|
}
|
|
66
66
|
const l = r[0], i = l.split("-");
|
|
67
67
|
if (i.length > 1) {
|
|
@@ -70,7 +70,7 @@ import './assets/index.css';const a0 = {
|
|
|
70
70
|
prefix: i.shift(),
|
|
71
71
|
name: i.join("-")
|
|
72
72
|
};
|
|
73
|
-
return n && !
|
|
73
|
+
return n && !ve(s) ? null : s;
|
|
74
74
|
}
|
|
75
75
|
if (t && o === "") {
|
|
76
76
|
const s = {
|
|
@@ -78,10 +78,10 @@ import './assets/index.css';const a0 = {
|
|
|
78
78
|
prefix: "",
|
|
79
79
|
name: l
|
|
80
80
|
};
|
|
81
|
-
return n && !
|
|
81
|
+
return n && !ve(s, t) ? null : s;
|
|
82
82
|
}
|
|
83
83
|
return null;
|
|
84
|
-
},
|
|
84
|
+
}, ve = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
85
85
|
// Check name: cannot be empty
|
|
86
86
|
((n && e.prefix === "" || e.prefix) && e.name) : !1, $t = Object.freeze(
|
|
87
87
|
{
|
|
@@ -228,7 +228,7 @@ function L0(e, n, t) {
|
|
|
228
228
|
return !1;
|
|
229
229
|
}
|
|
230
230
|
let ge = !1;
|
|
231
|
-
function
|
|
231
|
+
function kt(e) {
|
|
232
232
|
return typeof e == "boolean" && (ge = e), ge;
|
|
233
233
|
}
|
|
234
234
|
function h0(e) {
|
|
@@ -238,24 +238,24 @@ function h0(e) {
|
|
|
238
238
|
return t.icons[o] || (t.missing.has(o) ? null : void 0);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function v0(e, n) {
|
|
242
242
|
const t = $e(e, !0, ge);
|
|
243
243
|
if (!t)
|
|
244
244
|
return !1;
|
|
245
245
|
const o = ie(t.provider, t.prefix);
|
|
246
246
|
return n ? L0(o, t.name, n) : (o.missing.add(t.name), !0);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function y0(e, n) {
|
|
249
249
|
if (typeof e != "object")
|
|
250
250
|
return !1;
|
|
251
251
|
if (typeof n != "string" && (n = e.provider || ""), ge && !n && !e.prefix) {
|
|
252
252
|
let r = !1;
|
|
253
253
|
return Ft(e) && (e.prefix = "", It(e, (l, i) => {
|
|
254
|
-
|
|
254
|
+
v0(l, i) && (r = !0);
|
|
255
255
|
})), r;
|
|
256
256
|
}
|
|
257
257
|
const t = e.prefix;
|
|
258
|
-
if (!
|
|
258
|
+
if (!ve({
|
|
259
259
|
prefix: t,
|
|
260
260
|
name: "a"
|
|
261
261
|
}))
|
|
@@ -263,12 +263,12 @@ function v0(e, n) {
|
|
|
263
263
|
const o = ie(n, t);
|
|
264
264
|
return !!Pt(o, e);
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const zt = Object.freeze({
|
|
267
267
|
width: null,
|
|
268
268
|
height: null
|
|
269
269
|
}), Vt = Object.freeze({
|
|
270
270
|
// Dimensions
|
|
271
|
-
...
|
|
271
|
+
...zt,
|
|
272
272
|
// Transformations
|
|
273
273
|
...xe
|
|
274
274
|
}), _0 = /(-?[0-9.]*[0-9]+[0-9.]*)/g, w0 = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
@@ -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>"
|
|
@@ -401,7 +401,7 @@ function P0(e, n = I0) {
|
|
|
401
401
|
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
402
402
|
}
|
|
403
403
|
const Be = /* @__PURE__ */ Object.create(null);
|
|
404
|
-
function
|
|
404
|
+
function k0(e, n) {
|
|
405
405
|
Be[e] = n;
|
|
406
406
|
}
|
|
407
407
|
function Ne(e) {
|
|
@@ -435,13 +435,13 @@ function Je(e) {
|
|
|
435
435
|
const et = /* @__PURE__ */ Object.create(null), se = [
|
|
436
436
|
"https://api.simplesvg.com",
|
|
437
437
|
"https://api.unisvg.com"
|
|
438
|
-
],
|
|
438
|
+
], ye = [];
|
|
439
439
|
for (; se.length > 0; )
|
|
440
|
-
se.length === 1 || Math.random() > 0.5 ?
|
|
440
|
+
se.length === 1 || Math.random() > 0.5 ? ye.push(se.shift()) : ye.push(se.pop());
|
|
441
441
|
et[""] = Je({
|
|
442
|
-
resources: ["https://api.iconify.design"].concat(
|
|
442
|
+
resources: ["https://api.iconify.design"].concat(ye)
|
|
443
443
|
});
|
|
444
|
-
function
|
|
444
|
+
function z0(e, n) {
|
|
445
445
|
const t = Je(n);
|
|
446
446
|
return t === null ? !1 : (et[e] = t, !0);
|
|
447
447
|
}
|
|
@@ -474,10 +474,10 @@ function E0(e, n) {
|
|
|
474
474
|
}
|
|
475
475
|
return o;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function A0(e) {
|
|
478
478
|
return e === 404;
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const O0 = (e, n, t) => {
|
|
481
481
|
const o = [], r = E0(e, n), l = "icons";
|
|
482
482
|
let i = {
|
|
483
483
|
type: l,
|
|
@@ -494,7 +494,7 @@ const A0 = (e, n, t) => {
|
|
|
494
494
|
}, s = a.length), i.icons.push(a);
|
|
495
495
|
}), o.push(i), o;
|
|
496
496
|
};
|
|
497
|
-
function
|
|
497
|
+
function Z0(e) {
|
|
498
498
|
if (typeof e == "string") {
|
|
499
499
|
const n = tt(e);
|
|
500
500
|
if (n)
|
|
@@ -507,7 +507,7 @@ const D0 = (e, n, t) => {
|
|
|
507
507
|
t("abort", 424);
|
|
508
508
|
return;
|
|
509
509
|
}
|
|
510
|
-
let o =
|
|
510
|
+
let o = Z0(n.provider);
|
|
511
511
|
switch (n.type) {
|
|
512
512
|
case "icons": {
|
|
513
513
|
const l = n.prefix, s = n.icons.join(","), a = new URLSearchParams({
|
|
@@ -530,7 +530,7 @@ const D0 = (e, n, t) => {
|
|
|
530
530
|
const i = l.status;
|
|
531
531
|
if (i !== 200) {
|
|
532
532
|
setTimeout(() => {
|
|
533
|
-
t(
|
|
533
|
+
t(A0(i) ? "abort" : "next", i);
|
|
534
534
|
});
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
@@ -549,7 +549,7 @@ const D0 = (e, n, t) => {
|
|
|
549
549
|
t("next", r);
|
|
550
550
|
});
|
|
551
551
|
}, T0 = {
|
|
552
|
-
prepare:
|
|
552
|
+
prepare: O0,
|
|
553
553
|
send: D0
|
|
554
554
|
};
|
|
555
555
|
function G0(e) {
|
|
@@ -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 = [];
|
|
@@ -717,10 +717,10 @@ function j0(e, n, t, o) {
|
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
719
|
if (oe) {
|
|
720
|
-
c = B, g.length || (i.length ?
|
|
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
|
}
|
|
@@ -728,7 +728,7 @@ function j0(e, n, t, o) {
|
|
|
728
728
|
N(B);
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function F() {
|
|
732
732
|
if (a !== "pending")
|
|
733
733
|
return;
|
|
734
734
|
p();
|
|
@@ -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
|
}
|
|
@@ -750,11 +750,11 @@ function j0(e, n, t, o) {
|
|
|
750
750
|
M(V, B, oe);
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
|
-
g.push(V), u++, f = setTimeout(
|
|
753
|
+
g.push(V), u++, f = setTimeout(F, e.rotate), t(S, n, V.callback);
|
|
754
754
|
}
|
|
755
|
-
return setTimeout(
|
|
755
|
+
return setTimeout(F), y;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function At(e) {
|
|
758
758
|
const n = {
|
|
759
759
|
...q0,
|
|
760
760
|
...e
|
|
@@ -789,19 +789,19 @@ function Zt(e) {
|
|
|
789
789
|
}
|
|
790
790
|
function dt() {
|
|
791
791
|
}
|
|
792
|
-
const
|
|
792
|
+
const ke = /* @__PURE__ */ Object.create(null);
|
|
793
793
|
function K0(e) {
|
|
794
|
-
if (!
|
|
794
|
+
if (!ke[e]) {
|
|
795
795
|
const n = tt(e);
|
|
796
796
|
if (!n)
|
|
797
797
|
return;
|
|
798
|
-
const t =
|
|
798
|
+
const t = At(n), o = {
|
|
799
799
|
config: n,
|
|
800
800
|
redundancy: t
|
|
801
801
|
};
|
|
802
|
-
|
|
802
|
+
ke[e] = o;
|
|
803
803
|
}
|
|
804
|
-
return
|
|
804
|
+
return ke[e];
|
|
805
805
|
}
|
|
806
806
|
function X0(e, n, t) {
|
|
807
807
|
let o, r;
|
|
@@ -815,7 +815,7 @@ function X0(e, n, t) {
|
|
|
815
815
|
} else {
|
|
816
816
|
const l = Je(e);
|
|
817
817
|
if (l) {
|
|
818
|
-
o =
|
|
818
|
+
o = At(l);
|
|
819
819
|
const i = e.resources ? e.resources[0] : "", s = Ne(i);
|
|
820
820
|
s && (r = s.send);
|
|
821
821
|
}
|
|
@@ -910,7 +910,7 @@ function Y0(e, n) {
|
|
|
910
910
|
}));
|
|
911
911
|
}
|
|
912
912
|
const J0 = (e, n) => {
|
|
913
|
-
const t = U0(e, !0,
|
|
913
|
+
const t = U0(e, !0, kt()), o = G0(t);
|
|
914
914
|
if (!o.pending.length) {
|
|
915
915
|
let a = !0;
|
|
916
916
|
return n && setTimeout(() => {
|
|
@@ -947,7 +947,7 @@ function en(e, n) {
|
|
|
947
947
|
};
|
|
948
948
|
for (const o in n) {
|
|
949
949
|
const r = n[o], l = typeof r;
|
|
950
|
-
o in
|
|
950
|
+
o in zt ? (r === null || r && (l === "string" || l === "number")) && (t[o] = r) : l === typeof t[o] && (t[o] = o === "rotate" ? r % 4 : r);
|
|
951
951
|
}
|
|
952
952
|
return t;
|
|
953
953
|
}
|
|
@@ -1017,7 +1017,7 @@ const pt = {
|
|
|
1017
1017
|
display: "inline-block"
|
|
1018
1018
|
}, Ue = {
|
|
1019
1019
|
backgroundColor: "currentColor"
|
|
1020
|
-
},
|
|
1020
|
+
}, Ot = {
|
|
1021
1021
|
backgroundColor: "transparent"
|
|
1022
1022
|
}, mt = {
|
|
1023
1023
|
Image: "var(--svg)",
|
|
@@ -1026,7 +1026,7 @@ const pt = {
|
|
|
1026
1026
|
}, Ct = {
|
|
1027
1027
|
webkitMask: Ue,
|
|
1028
1028
|
mask: Ue,
|
|
1029
|
-
background:
|
|
1029
|
+
background: Ot
|
|
1030
1030
|
};
|
|
1031
1031
|
for (const e in Ct) {
|
|
1032
1032
|
const n = Ct[e];
|
|
@@ -1103,12 +1103,12 @@ const ht = (e, n) => {
|
|
|
1103
1103
|
width: Lt(u.width),
|
|
1104
1104
|
height: Lt(u.height),
|
|
1105
1105
|
...cn,
|
|
1106
|
-
...d ? Ue :
|
|
1106
|
+
...d ? Ue : Ot,
|
|
1107
1107
|
...s
|
|
1108
1108
|
}, ee("span", o);
|
|
1109
1109
|
};
|
|
1110
|
-
|
|
1111
|
-
|
|
1110
|
+
kt(!0);
|
|
1111
|
+
k0("", T0);
|
|
1112
1112
|
if (typeof document < "u" && typeof window < "u") {
|
|
1113
1113
|
const e = window;
|
|
1114
1114
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1118,7 +1118,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1118
1118
|
// Check if item is an object and not null/array
|
|
1119
1119
|
(typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
|
|
1120
1120
|
typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
|
|
1121
|
-
!
|
|
1121
|
+
!y0(o)) && console.error(t);
|
|
1122
1122
|
} catch {
|
|
1123
1123
|
console.error(t);
|
|
1124
1124
|
}
|
|
@@ -1133,7 +1133,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1133
1133
|
const r = n[t];
|
|
1134
1134
|
if (typeof r != "object" || !r || r.resources === void 0)
|
|
1135
1135
|
continue;
|
|
1136
|
-
|
|
1136
|
+
z0(t, r) || console.error(o);
|
|
1137
1137
|
} catch {
|
|
1138
1138
|
console.error(o);
|
|
1139
1139
|
}
|
|
@@ -1233,14 +1233,14 @@ const dn = {
|
|
|
1233
1233
|
color: {}
|
|
1234
1234
|
},
|
|
1235
1235
|
setup(e) {
|
|
1236
|
-
const n = e, t =
|
|
1236
|
+
const n = e, t = v(() => ({
|
|
1237
1237
|
"cmc-icon": !0,
|
|
1238
1238
|
[`cmc-icon--${n.color}`]: n.color
|
|
1239
|
-
})), o =
|
|
1239
|
+
})), o = v(
|
|
1240
1240
|
() => it[n.name]
|
|
1241
1241
|
);
|
|
1242
1242
|
return (r, l) => (C(), K(T(gn), {
|
|
1243
|
-
class:
|
|
1243
|
+
class: $(t.value),
|
|
1244
1244
|
icon: o.value
|
|
1245
1245
|
}, null, 8, ["class", "icon"]));
|
|
1246
1246
|
}
|
|
@@ -1263,7 +1263,7 @@ const dn = {
|
|
|
1263
1263
|
},
|
|
1264
1264
|
emits: ["click"],
|
|
1265
1265
|
setup(e, { emit: n }) {
|
|
1266
|
-
const t = e, o = n, r =
|
|
1266
|
+
const t = e, o = n, r = v(() => ({
|
|
1267
1267
|
button: !0,
|
|
1268
1268
|
[`button--${t.variant}`]: !0,
|
|
1269
1269
|
[`button--${t.kind}`]: !0,
|
|
@@ -1274,20 +1274,20 @@ const dn = {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
return (s, a) => (C(), h("button", {
|
|
1276
1276
|
type: t.type,
|
|
1277
|
-
class:
|
|
1277
|
+
class: $(r.value),
|
|
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()
|
|
1285
|
-
}, null, 8, ["name"])) :
|
|
1285
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
1286
1286
|
]),
|
|
1287
|
-
|
|
1287
|
+
O(s.$slots, "default", {}, void 0, !0)
|
|
1288
1288
|
], 10, pn));
|
|
1289
1289
|
}
|
|
1290
|
-
}), Ln = /* @__PURE__ */ I(Cn, [["__scopeId", "data-v-7df43df9"]]), hn = { class: "alert-content" },
|
|
1290
|
+
}), Ln = /* @__PURE__ */ I(Cn, [["__scopeId", "data-v-7df43df9"]]), hn = { class: "alert-content" }, vn = { class: "alert-text" }, yn = { class: "title" }, _n = { class: "message" }, wn = {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
class: "alert-button"
|
|
1293
1293
|
}, xn = /* @__PURE__ */ P({
|
|
@@ -1301,28 +1301,28 @@ const dn = {
|
|
|
1301
1301
|
},
|
|
1302
1302
|
emits: ["click"],
|
|
1303
1303
|
setup(e, { emit: n }) {
|
|
1304
|
-
const t = e, o = n, r =
|
|
1304
|
+
const t = e, o = n, r = v(() => ({
|
|
1305
1305
|
"alert-box": !0,
|
|
1306
1306
|
[`alert-box--${t.status}`]: !0
|
|
1307
1307
|
}));
|
|
1308
1308
|
return (l, i) => (C(), h("div", {
|
|
1309
|
-
class:
|
|
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, {
|
|
1318
1318
|
onClick: i[0] || (i[0] = (s) => o("click"))
|
|
1319
1319
|
}), {
|
|
1320
1320
|
default: Se(() => [
|
|
1321
|
-
Ye(
|
|
1321
|
+
Ye(z(e.button.text), 1)
|
|
1322
1322
|
]),
|
|
1323
1323
|
_: 1
|
|
1324
1324
|
}, 16)
|
|
1325
|
-
])) :
|
|
1325
|
+
])) : k("", !0)
|
|
1326
1326
|
])
|
|
1327
1327
|
], 2));
|
|
1328
1328
|
}
|
|
@@ -1337,11 +1337,11 @@ 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
|
|
1344
|
-
},
|
|
1344
|
+
}, z(e.item.label), 1)
|
|
1345
1345
|
]));
|
|
1346
1346
|
}
|
|
1347
1347
|
}), bn = /* @__PURE__ */ I(Rn, [["__scopeId", "data-v-4496ccd5"]]), $n = {
|
|
@@ -1359,15 +1359,15 @@ const dn = {
|
|
|
1359
1359
|
r !== 0 ? (C(), K(j, {
|
|
1360
1360
|
key: 0,
|
|
1361
1361
|
name: "chevronRight"
|
|
1362
|
-
})) :
|
|
1363
|
-
|
|
1362
|
+
})) : k("", !0),
|
|
1363
|
+
Z(bn, { item: o }, null, 8, ["item"])
|
|
1364
1364
|
], 64))), 128))
|
|
1365
1365
|
]));
|
|
1366
1366
|
}
|
|
1367
|
-
}),
|
|
1367
|
+
}), Vr = /* @__PURE__ */ I(In, [["__scopeId", "data-v-ed9c938e"]]), Zt = {
|
|
1368
1368
|
small: "small",
|
|
1369
1369
|
medium: "medium"
|
|
1370
|
-
},
|
|
1370
|
+
}, ze = {
|
|
1371
1371
|
text: "text",
|
|
1372
1372
|
number: "number",
|
|
1373
1373
|
date: "date",
|
|
@@ -1379,7 +1379,7 @@ const dn = {
|
|
|
1379
1379
|
}, Fn = ["for"], Pn = {
|
|
1380
1380
|
key: 1,
|
|
1381
1381
|
class: "input__description"
|
|
1382
|
-
},
|
|
1382
|
+
}, kn = { class: "input__wrapper" }, zn = ["id", "type", "placeholder", "required", "disabled", "aria-invalid", "min", "max", "step"], Vn = /* @__PURE__ */ P({
|
|
1383
1383
|
name: "CmcInput",
|
|
1384
1384
|
__name: "CmcInput",
|
|
1385
1385
|
props: /* @__PURE__ */ Q({
|
|
@@ -1389,9 +1389,9 @@ const dn = {
|
|
|
1389
1389
|
required: { type: Boolean, default: !1 },
|
|
1390
1390
|
disabled: { type: Boolean, default: !1 },
|
|
1391
1391
|
invalid: { type: Boolean, default: !1 },
|
|
1392
|
-
type: { default:
|
|
1392
|
+
type: { default: ze.text },
|
|
1393
1393
|
variant: { default: le.outlined },
|
|
1394
|
-
size: { default:
|
|
1394
|
+
size: { default: Zt.medium },
|
|
1395
1395
|
description: {},
|
|
1396
1396
|
min: {},
|
|
1397
1397
|
max: {},
|
|
@@ -1402,7 +1402,7 @@ const dn = {
|
|
|
1402
1402
|
}),
|
|
1403
1403
|
emits: /* @__PURE__ */ Q(["update:modelValue"], ["update:modelValue"]),
|
|
1404
1404
|
setup(e, { emit: n }) {
|
|
1405
|
-
const t = e, o = n, r = ne(e, "modelValue"), l = Jt(), i =
|
|
1405
|
+
const t = e, o = n, r = ne(e, "modelValue"), l = Jt(), i = v(() => !!l.right), s = v(() => !!l.left), a = v(() => ({
|
|
1406
1406
|
input: !0,
|
|
1407
1407
|
[`input--${t.size}`]: !0,
|
|
1408
1408
|
"input--required": t.required,
|
|
@@ -1415,17 +1415,17 @@ const dn = {
|
|
|
1415
1415
|
"input--with-left-slot": s.value
|
|
1416
1416
|
}));
|
|
1417
1417
|
return (u, c) => (C(), h("div", {
|
|
1418
|
-
class:
|
|
1418
|
+
class: $(a.value)
|
|
1419
1419
|
}, [
|
|
1420
1420
|
t.label ? (C(), h("label", {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
for: t.id,
|
|
1423
1423
|
class: "input__label"
|
|
1424
|
-
},
|
|
1425
|
-
t.description ? (C(), h("div", Pn,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
Me(
|
|
1424
|
+
}, z(t.label), 9, Fn)) : k("", !0),
|
|
1425
|
+
t.description ? (C(), h("div", Pn, z(t.description), 1)) : k("", !0),
|
|
1426
|
+
R("div", kn, [
|
|
1427
|
+
O(u.$slots, "left", {}, void 0, !0),
|
|
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,
|
|
@@ -1433,18 +1433,18 @@ const dn = {
|
|
|
1433
1433
|
required: t.required,
|
|
1434
1434
|
disabled: t.disabled,
|
|
1435
1435
|
"aria-invalid": e.invalid,
|
|
1436
|
-
min: t.type === T(
|
|
1437
|
-
max: t.type === T(
|
|
1436
|
+
min: t.type === T(ze).number ? t.min : void 0,
|
|
1437
|
+
max: t.type === T(ze).number ? t.max : void 0,
|
|
1438
1438
|
step: t.step,
|
|
1439
1439
|
onBlur: c[1] || (c[1] = (f) => o("update:modelValue", r.value))
|
|
1440
|
-
}, null, 40,
|
|
1440
|
+
}, null, 40, zn), [
|
|
1441
1441
|
[e0, r.value]
|
|
1442
1442
|
]),
|
|
1443
|
-
|
|
1443
|
+
O(u.$slots, "right", {}, void 0, !0)
|
|
1444
1444
|
])
|
|
1445
1445
|
], 2));
|
|
1446
1446
|
}
|
|
1447
|
-
}), Dt = /* @__PURE__ */ I(Vn, [["__scopeId", "data-v-e6086c2f"]]), En = { key: 1 },
|
|
1447
|
+
}), Dt = /* @__PURE__ */ I(Vn, [["__scopeId", "data-v-e6086c2f"]]), En = { key: 1 }, An = /* @__PURE__ */ P({
|
|
1448
1448
|
__name: "HighlightText",
|
|
1449
1449
|
props: {
|
|
1450
1450
|
text: {},
|
|
@@ -1477,11 +1477,11 @@ const dn = {
|
|
|
1477
1477
|
return (o, r) => (C(!0), h(E, null, H(t(n.text, n.searchTerm), (l, i) => (C(), h(E, { key: i }, [
|
|
1478
1478
|
l.isHighlighted ? (C(), h("span", {
|
|
1479
1479
|
key: 0,
|
|
1480
|
-
class:
|
|
1481
|
-
},
|
|
1480
|
+
class: $(["highlight__match", e.highlightClass])
|
|
1481
|
+
}, z(l.text), 3)) : (C(), h("span", En, z(l.text), 1))
|
|
1482
1482
|
], 64))), 128));
|
|
1483
1483
|
}
|
|
1484
|
-
}),
|
|
1484
|
+
}), On = /* @__PURE__ */ I(An, [["__scopeId", "data-v-c78c4b91"]]), Zn = {
|
|
1485
1485
|
key: 0,
|
|
1486
1486
|
class: "autocomplete__list",
|
|
1487
1487
|
role: "listbox"
|
|
@@ -1508,10 +1508,10 @@ const dn = {
|
|
|
1508
1508
|
}),
|
|
1509
1509
|
emits: /* @__PURE__ */ Q(["update:modelValue", "update:search", "search"], ["update:modelValue", "update:search"]),
|
|
1510
1510
|
setup(e, { emit: n }) {
|
|
1511
|
-
const t = e, o = n, r = ne(e, "modelValue"), l = ne(e, "search"), i = te(t.label || ""), s = te(!1), a = te(null), u =
|
|
1511
|
+
const t = e, o = n, r = ne(e, "modelValue"), l = ne(e, "search"), i = te(t.label || ""), s = te(!1), a = te(null), u = v(() => `cmc-autocomplete-${Re()}`), c = v(() => {
|
|
1512
1512
|
if (!l.value) return t.items;
|
|
1513
1513
|
const M = l.value.toLowerCase();
|
|
1514
|
-
return t.items.filter((
|
|
1514
|
+
return t.items.filter((F) => F.label.toLowerCase().includes(M));
|
|
1515
1515
|
});
|
|
1516
1516
|
function f(M) {
|
|
1517
1517
|
l.value = M.label, r.value = M.value, s.value = !1;
|
|
@@ -1523,8 +1523,8 @@ const dn = {
|
|
|
1523
1523
|
M.key === "Escape" && (s.value = !1);
|
|
1524
1524
|
}
|
|
1525
1525
|
function p(M) {
|
|
1526
|
-
const
|
|
1527
|
-
a.value &&
|
|
1526
|
+
const F = M.target;
|
|
1527
|
+
a.value && F && !a.value.contains(F) && (s.value = !1);
|
|
1528
1528
|
}
|
|
1529
1529
|
let m = null;
|
|
1530
1530
|
function L() {
|
|
@@ -1532,20 +1532,20 @@ const dn = {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
function y(M) {
|
|
1534
1534
|
o("update:search", M);
|
|
1535
|
-
const
|
|
1536
|
-
if (!
|
|
1535
|
+
const F = M.trim();
|
|
1536
|
+
if (!F) {
|
|
1537
1537
|
L(), s.value = !1;
|
|
1538
1538
|
return;
|
|
1539
1539
|
}
|
|
1540
|
-
if (s.value = !0,
|
|
1540
|
+
if (s.value = !0, F.length < t.minChars) {
|
|
1541
1541
|
L();
|
|
1542
1542
|
return;
|
|
1543
1543
|
}
|
|
1544
1544
|
if (!t.debounce) {
|
|
1545
|
-
o("search",
|
|
1545
|
+
o("search", F);
|
|
1546
1546
|
return;
|
|
1547
1547
|
}
|
|
1548
|
-
L(), m = setTimeout(() => o("search",
|
|
1548
|
+
L(), m = setTimeout(() => o("search", F), t.debounce);
|
|
1549
1549
|
}
|
|
1550
1550
|
We(
|
|
1551
1551
|
() => l.value,
|
|
@@ -1555,34 +1555,34 @@ const dn = {
|
|
|
1555
1555
|
}), St(() => {
|
|
1556
1556
|
window.removeEventListener("click", p), L();
|
|
1557
1557
|
});
|
|
1558
|
-
const x =
|
|
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
|
}));
|
|
1565
|
-
return (M,
|
|
1565
|
+
return (M, F) => (C(), h("div", {
|
|
1566
1566
|
ref_key: "autocompleteRef",
|
|
1567
1567
|
ref: a,
|
|
1568
|
-
class:
|
|
1568
|
+
class: $(x.value),
|
|
1569
1569
|
onKeydown: d
|
|
1570
1570
|
}, [
|
|
1571
|
-
|
|
1571
|
+
Z(Dt, {
|
|
1572
1572
|
id: u.value,
|
|
1573
1573
|
modelValue: l.value,
|
|
1574
|
-
"onUpdate:modelValue":
|
|
1574
|
+
"onUpdate:modelValue": F[0] || (F[0] = (S) => l.value = S),
|
|
1575
1575
|
label: i.value,
|
|
1576
1576
|
placeholder: t.placeholder,
|
|
1577
1577
|
description: t.description,
|
|
1578
1578
|
class: "autocomplete__input",
|
|
1579
1579
|
type: "search",
|
|
1580
1580
|
variant: "outlined",
|
|
1581
|
-
onFocus:
|
|
1581
|
+
onFocus: F[1] || (F[1] = (S) => s.value = !0)
|
|
1582
1582
|
}, {
|
|
1583
1583
|
right: Se(() => [
|
|
1584
|
-
|
|
1585
|
-
class:
|
|
1584
|
+
Z(j, {
|
|
1585
|
+
class: $(b.value),
|
|
1586
1586
|
"aria-hidden": "true",
|
|
1587
1587
|
color: "light",
|
|
1588
1588
|
name: "chevronDown",
|
|
@@ -1591,29 +1591,29 @@ const dn = {
|
|
|
1591
1591
|
]),
|
|
1592
1592
|
_: 1
|
|
1593
1593
|
}, 8, ["id", "modelValue", "label", "placeholder", "description"]),
|
|
1594
|
-
s.value ? (C(), h("div",
|
|
1594
|
+
s.value ? (C(), h("div", Zn, [
|
|
1595
1595
|
t.loading ? (C(), K(j, {
|
|
1596
1596
|
key: 0,
|
|
1597
1597
|
"aria-hidden": "true",
|
|
1598
1598
|
class: "loading",
|
|
1599
1599
|
color: "light",
|
|
1600
1600
|
name: "loading"
|
|
1601
|
-
})) :
|
|
1601
|
+
})) : k("", !0),
|
|
1602
1602
|
c.value.length > 0 ? (C(), h("ul", Dn, [
|
|
1603
1603
|
(C(!0), h(E, null, H(c.value, (S, V) => (C(), h("li", {
|
|
1604
1604
|
key: S.value || V,
|
|
1605
1605
|
onClick: (B) => f(S)
|
|
1606
1606
|
}, [
|
|
1607
|
-
|
|
1607
|
+
Z(On, {
|
|
1608
1608
|
"search-term": l.value,
|
|
1609
1609
|
text: S.label
|
|
1610
1610
|
}, null, 8, ["search-term", "text"])
|
|
1611
1611
|
], 8, Tn))), 128))
|
|
1612
|
-
])) : s.value && !c.value.length && !t.loading && l.value.length >= t.minChars ? (C(), h("div", Gn,
|
|
1613
|
-
])) :
|
|
1612
|
+
])) : s.value && !c.value.length && !t.loading && l.value.length >= t.minChars ? (C(), h("div", Gn, z(t.emptyValue), 1)) : k("", !0)
|
|
1613
|
+
])) : k("", !0)
|
|
1614
1614
|
], 34));
|
|
1615
1615
|
}
|
|
1616
|
-
}),
|
|
1616
|
+
}), Er = /* @__PURE__ */ I(Hn, [["__scopeId", "data-v-89f397a9"]]), Bn = { class: "badge-text" }, Nn = /* @__PURE__ */ P({
|
|
1617
1617
|
name: "CmcBadgePill",
|
|
1618
1618
|
__name: "CmcBadgePill",
|
|
1619
1619
|
props: {
|
|
@@ -1622,18 +1622,18 @@ const dn = {
|
|
|
1622
1622
|
variant: { default: "default" }
|
|
1623
1623
|
},
|
|
1624
1624
|
setup(e) {
|
|
1625
|
-
const n = e, t =
|
|
1625
|
+
const n = e, t = v(() => ({
|
|
1626
1626
|
"badge-pill": !0,
|
|
1627
1627
|
[`badge-pill--${n.status}`]: !0,
|
|
1628
1628
|
[`badge-pill--${n.variant}`]: !0
|
|
1629
1629
|
}));
|
|
1630
1630
|
return (o, r) => (C(), h("div", {
|
|
1631
|
-
class:
|
|
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 = {
|
|
1637
1637
|
medium: "medium"
|
|
1638
1638
|
}, Un = /* @__PURE__ */ P({
|
|
1639
1639
|
name: "CmcButtonGroup",
|
|
@@ -1642,14 +1642,14 @@ const dn = {
|
|
|
1642
1642
|
gap: { default: Tt.medium }
|
|
1643
1643
|
},
|
|
1644
1644
|
setup(e) {
|
|
1645
|
-
const n = e, t =
|
|
1645
|
+
const n = e, t = v(() => ({
|
|
1646
1646
|
"button-group": !0,
|
|
1647
1647
|
[`button-group-gap--${n.gap}`]: !0
|
|
1648
1648
|
}));
|
|
1649
1649
|
return (o, r) => (C(), h("div", {
|
|
1650
|
-
class:
|
|
1650
|
+
class: $(t.value)
|
|
1651
1651
|
}, [
|
|
1652
|
-
|
|
1652
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
1653
1653
|
], 2));
|
|
1654
1654
|
}
|
|
1655
1655
|
}), qn = /* @__PURE__ */ I(Un, [["__scopeId", "data-v-e9a8f405"]]), jn = ` <svg
|
|
@@ -1948,7 +1948,7 @@ const dn = {
|
|
|
1948
1948
|
gold: "gold",
|
|
1949
1949
|
platinum: "platinum",
|
|
1950
1950
|
unranked: "unranked"
|
|
1951
|
-
}, Kn = "#111118", Xn = "#0302F5", Qn = "#E6007E", Wn = "#FC435C", Yn = "#19BAA3", Jn = "#009FE3", e1 = "#739099", t1 = "#82368C", n1 = ["innerHTML"],
|
|
1951
|
+
}, Kn = "#111118", Xn = "#0302F5", Qn = "#E6007E", Wn = "#FC435C", Yn = "#19BAA3", Jn = "#009FE3", e1 = "#739099", t1 = "#82368C", n1 = ["innerHTML"], Or = /* @__PURE__ */ P({
|
|
1952
1952
|
name: "CmcCertificate",
|
|
1953
1953
|
__name: "CmcCertificate",
|
|
1954
1954
|
props: {
|
|
@@ -1989,7 +1989,7 @@ const dn = {
|
|
|
1989
1989
|
[U.shareholders]: t1,
|
|
1990
1990
|
[U.students]: Qn,
|
|
1991
1991
|
[U.suppliers]: Jn
|
|
1992
|
-
}, r =
|
|
1992
|
+
}, r = v(() => o[n.primaryType]), l = v(() => {
|
|
1993
1993
|
let i = jn;
|
|
1994
1994
|
if (n.primaryType === U.employees && n.rank !== re.unranked) {
|
|
1995
1995
|
i = i.replace(/separator-2"/g, 'separator-2" style="opacity:0"').replace(
|
|
@@ -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)
|
|
@@ -2042,15 +2042,15 @@ const i1 = /* @__PURE__ */ I(o1, [["render", l1]]), s1 = ["id", "disabled", "req
|
|
|
2042
2042
|
}),
|
|
2043
2043
|
emits: ["update:modelValue"],
|
|
2044
2044
|
setup(e) {
|
|
2045
|
-
const n = e, t = ne(e, "modelValue"), o =
|
|
2045
|
+
const n = e, t = ne(e, "modelValue"), o = v(() => n.id || `cmc-checkbox-${Re()}`), r = v(() => ({
|
|
2046
2046
|
checkbox: !0,
|
|
2047
2047
|
"checkbox--disabled": n.disabled,
|
|
2048
2048
|
"checkbox--required": n.required
|
|
2049
2049
|
}));
|
|
2050
2050
|
return (l, i) => (C(), h("div", {
|
|
2051
|
-
class:
|
|
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",
|
|
@@ -2063,10 +2063,10 @@ const i1 = /* @__PURE__ */ I(o1, [["render", l1]]), s1 = ["id", "disabled", "req
|
|
|
2063
2063
|
t.value ? (C(), K(i1, {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
class: "checkbox__icon"
|
|
2066
|
-
})) :
|
|
2066
|
+
})) : k("", !0)
|
|
2067
2067
|
], 2));
|
|
2068
2068
|
}
|
|
2069
|
-
}),
|
|
2069
|
+
}), Zr = /* @__PURE__ */ I(a1, [["__scopeId", "data-v-b4e66a74"]]), Y = {
|
|
2070
2070
|
h1: "h1",
|
|
2071
2071
|
h2: "h2",
|
|
2072
2072
|
h3: "h3",
|
|
@@ -2081,7 +2081,7 @@ const i1 = /* @__PURE__ */ I(o1, [["render", l1]]), s1 = ["id", "disabled", "req
|
|
|
2081
2081
|
margin: { type: Boolean, default: !0 }
|
|
2082
2082
|
},
|
|
2083
2083
|
setup(e) {
|
|
2084
|
-
const n = e, t =
|
|
2084
|
+
const n = e, t = v(() => ({
|
|
2085
2085
|
heading: !0,
|
|
2086
2086
|
[`heading-${n.level}`]: !0,
|
|
2087
2087
|
"heading--no-margin": !n.margin
|
|
@@ -2089,55 +2089,55 @@ const i1 = /* @__PURE__ */ I(o1, [["render", l1]]), s1 = ["id", "disabled", "req
|
|
|
2089
2089
|
return (o, r) => (C(), h(E, null, [
|
|
2090
2090
|
T(Y).h1 === n.level ? (C(), h("h1", {
|
|
2091
2091
|
key: 0,
|
|
2092
|
-
class:
|
|
2092
|
+
class: $(t.value),
|
|
2093
2093
|
style: J({ color: n.color })
|
|
2094
2094
|
}, [
|
|
2095
|
-
|
|
2096
|
-
], 6)) :
|
|
2095
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
2096
|
+
], 6)) : k("", !0),
|
|
2097
2097
|
T(Y).h2 === n.level ? (C(), h("h2", {
|
|
2098
2098
|
key: 1,
|
|
2099
|
-
class:
|
|
2099
|
+
class: $(t.value),
|
|
2100
2100
|
style: J({ color: n.color })
|
|
2101
2101
|
}, [
|
|
2102
|
-
|
|
2103
|
-
], 6)) :
|
|
2102
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
2103
|
+
], 6)) : k("", !0),
|
|
2104
2104
|
T(Y).h3 === n.level ? (C(), h("h3", {
|
|
2105
2105
|
key: 2,
|
|
2106
|
-
class:
|
|
2106
|
+
class: $(t.value),
|
|
2107
2107
|
style: J({ color: n.color })
|
|
2108
2108
|
}, [
|
|
2109
|
-
|
|
2110
|
-
], 6)) :
|
|
2109
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
2110
|
+
], 6)) : k("", !0),
|
|
2111
2111
|
T(Y).h4 === n.level ? (C(), h("h4", {
|
|
2112
2112
|
key: 3,
|
|
2113
|
-
class:
|
|
2113
|
+
class: $(t.value),
|
|
2114
2114
|
style: J({ color: n.color })
|
|
2115
2115
|
}, [
|
|
2116
|
-
|
|
2117
|
-
], 6)) :
|
|
2116
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
2117
|
+
], 6)) : k("", !0),
|
|
2118
2118
|
T(Y).h5 === n.level ? (C(), h("h5", {
|
|
2119
2119
|
key: 4,
|
|
2120
|
-
class:
|
|
2120
|
+
class: $(t.value),
|
|
2121
2121
|
style: J({ color: n.color })
|
|
2122
2122
|
}, [
|
|
2123
|
-
|
|
2124
|
-
], 6)) :
|
|
2123
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
2124
|
+
], 6)) : k("", !0)
|
|
2125
2125
|
], 64));
|
|
2126
2126
|
}
|
|
2127
2127
|
}), c1 = /* @__PURE__ */ I(u1, [["__scopeId", "data-v-f0cf556a"]]), d1 = "https://cmc-ui-assets.s3.fr-par.scw.cloud/", g1 = ["src"], f1 = /* @__PURE__ */ P({
|
|
2128
2128
|
name: "CmcLoading",
|
|
2129
2129
|
__name: "CmcLoading",
|
|
2130
2130
|
setup(e) {
|
|
2131
|
-
const n =
|
|
2131
|
+
const n = v(() => d1 + "img/loader-cmc.gif"), t = v(() => ({
|
|
2132
2132
|
loading: !0
|
|
2133
2133
|
}));
|
|
2134
2134
|
return (o, r) => (C(), h("img", {
|
|
2135
|
-
class:
|
|
2135
|
+
class: $(t.value),
|
|
2136
2136
|
alt: "CMC Logo Loader",
|
|
2137
2137
|
src: n.value
|
|
2138
2138
|
}, null, 10, g1));
|
|
2139
2139
|
}
|
|
2140
|
-
}),
|
|
2140
|
+
}), Dr = /* @__PURE__ */ I(f1, [["__scopeId", "data-v-0c671cb3"]]), p1 = {}, m1 = {
|
|
2141
2141
|
viewBox: "0 0 4498 1782",
|
|
2142
2142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2143
2143
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -2147,16 +2147,16 @@ function C1(e, n) {
|
|
|
2147
2147
|
be('<g transform="matrix(4.16667,0,0,4.16667,0,0)"><g transform="matrix(1,0,0,1,379.39,362.303)"><path d="M0,-28.881L-7.753,-7.642L7.755,-7.642L0,-28.881ZM8.935,-4.383L-8.933,-4.383L-12.362,4.945L-16.519,4.945L-2.191,-33.826L2.249,-33.826L16.521,4.945L12.362,4.945L8.935,-4.383Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,429.18,367.249)"><path d="M0,-39.278L4.157,-39.278L-10.734,0L-15.228,0L-30.119,-39.278L-25.849,-39.278L-12.981,-4.27L0,-39.278Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="439.243" y="60.301" width="3.933" height="39.278" style="fill:rgb(3, 2, 245);"></rect></g><g transform="matrix(1,0,0,1,464.023,327.52)"><path d="M0,40.121C-7.866,40.121 -13.036,35.625 -13.261,29.613L-9.103,29.613C-8.766,32.872 -6.349,36.805 0,36.805C5.451,36.805 8.654,33.602 8.654,29.557C8.654,17.981 -12.923,25.287 -12.923,10.508C-12.923,4.44 -7.923,0 -0.337,0C7.136,0 11.632,4.159 12.305,9.554L8.035,9.554C7.586,6.8 4.945,3.429 -0.506,3.373C-5.113,3.316 -8.933,5.845 -8.933,10.396C-8.933,21.747 12.644,14.779 12.644,29.389C12.644,34.727 8.316,40.121 0,40.121" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,517.072,367.585)"><path d="M0,-40.064C8.766,-40.064 15.284,-35.681 18.094,-28.15L13.485,-28.15C11.295,-33.376 6.686,-36.636 0,-36.636C-8.598,-36.636 -15.171,-30.286 -15.171,-20.004C-15.171,-9.776 -8.598,-3.427 0,-3.427C6.686,-3.427 11.295,-6.686 13.485,-11.799L18.094,-11.799C15.284,-4.383 8.766,0 0,0C-10.901,0 -19.217,-8.203 -19.217,-20.004C-19.217,-31.803 -10.901,-40.064 0,-40.064" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,563.49,363.989)"><path d="M0,-32.816L-16.575,-32.816L-16.575,-18.149L-1.686,-18.149L-1.686,-14.891L-16.575,-14.891L-16.575,-0.001L0,-0.001L0,3.259L-20.508,3.259L-20.508,-36.075L0,-36.075L0,-32.816Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,583.048,363.932)"><path d="M0,-32.646L-7.866,-32.646L-7.866,-16.295L0.056,-16.295C6.462,-16.295 9.328,-19.778 9.328,-24.554C9.328,-29.5 6.631,-32.646 0,-32.646M0,-35.962C9.103,-35.962 13.374,-31.016 13.374,-24.554C13.374,-19.161 10.339,-14.609 3.709,-13.372L13.824,3.316L9.103,3.316L-0.617,-13.092L-7.866,-13.092L-7.866,3.316L-11.799,3.316L-11.799,-35.962L0,-35.962Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,601.426,367.249)"><path d="M0,-39.278L25.791,-39.278L25.791,-36.019L14.891,-36.019L14.891,0L10.956,0L10.956,-36.019L0,-36.019L0,-39.278Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="633.458" y="60.301" width="3.933" height="39.278" style="fill:rgb(3, 2, 245);"></rect></g><g transform="matrix(1,0,0,1,646.326,367.249)"><path d="M0,-39.278L21.24,-39.278L21.24,-36.019L3.933,-36.019L3.933,-21.353L18.542,-21.353L18.542,-18.094L3.933,-18.094L3.933,0L0,0L0,-39.278Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="674.032" y="60.301" width="3.933" height="39.278" style="fill:rgb(3, 2, 245);"></rect></g><g transform="matrix(1,0,0,1,701.565,367.248)"><path d="M0,-51.357L0,-47.817L-11.519,-41.131L-11.519,-44.165L0,-51.357ZM5.843,-36.074L-10.732,-36.074L-10.732,-21.408L4.159,-21.408L4.159,-18.15L-10.732,-18.15L-10.732,-3.259L5.843,-3.259L5.843,0L-14.665,0L-14.665,-39.334L5.843,-39.334L5.843,-36.074Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,727.078,327.52)"><path d="M0,40.121C-7.866,40.121 -13.036,35.625 -13.261,29.613L-9.102,29.613C-8.766,32.872 -6.349,36.805 0,36.805C5.45,36.805 8.653,33.602 8.653,29.557C8.653,17.981 -12.924,25.287 -12.924,10.508C-12.924,4.44 -7.923,0 -0.337,0C7.136,0 11.632,4.159 12.305,9.554L8.035,9.554C7.586,6.8 4.945,3.429 -0.506,3.373C-5.113,3.316 -8.935,5.845 -8.935,10.396C-8.935,21.747 12.642,14.779 12.642,29.389C12.642,34.727 8.316,40.121 0,40.121" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,216.883,115.634)"><path d="M0,-0.001C0,31.768 24.932,55.725 57.995,55.725C73.171,55.725 84.443,51.041 91.421,46.922L91.421,29.636C81.798,36.681 69.485,40.82 57.862,40.82C34.363,40.82 17.307,23.652 17.307,-0.001C17.307,-23.654 34.363,-40.821 57.862,-40.821C69.363,-40.821 81.928,-36.549 91.421,-29.53L91.421,-46.805C86.471,-49.812 74.631,-55.726 58.13,-55.726C25.534,-55.726 0,-31.248 0,-0.001" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,308.304,145.164)"><path d="M0,-59.06C-9.494,-66.079 -22.058,-70.351 -33.559,-70.351C-57.059,-70.351 -74.114,-53.183 -74.114,-29.531C-74.114,-5.877 -57.059,11.29 -33.559,11.29C-21.937,11.29 -9.624,7.152 0,0.106L0,17.392C-6.978,21.512 -18.25,26.195 -33.427,26.195C-66.489,26.195 -91.421,2.238 -91.421,-29.531C-91.421,-60.778 -65.888,-85.255 -33.292,-85.255C-16.79,-85.255 -4.951,-79.341 0,-76.334L0,-59.06Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,345.149,169.156)"><path d="M0,-106.911L-16.642,-106.911L-16.642,0L0,0L0,-26.409L52.796,-42.308L52.796,0L69.303,0L69.303,-106.911L52.796,-106.911L52.796,-56.93L0,-41.495L0,-106.911Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,397.946,119.175)"><path d="M0,-6.949L0,-56.93L16.507,-56.93L16.507,49.981L0,49.981L0,7.674L-52.796,23.572L-52.796,49.981L-69.438,49.981L-69.438,-56.93L-52.796,-56.93L-52.796,8.486L0,-6.949Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,728.634,123.899)"><path d="M0,-16.662C-13.136,-20.759 -22.446,-24.502 -22.446,-35.372C-22.446,-43.831 -15.656,-49.086 -4.726,-49.086C4.876,-49.086 15.658,-46.076 25.894,-40.57L25.894,-57.956C15.725,-62.015 5.698,-63.99 -4.726,-63.99C-28.739,-63.99 -39.488,-49.55 -39.488,-35.239C-39.488,-14.715 -24.246,-7.194 -9.336,-2.544C4.32,1.881 13.26,5.6 13.26,16.573C13.26,26.2 5.938,32.422 -5.394,32.422C-18.874,32.422 -30.578,26.616 -39.62,21.012L-39.62,38.202C-27.942,44.341 -16.693,47.328 -5.261,47.328C11.979,47.328 30.302,36.502 30.302,16.439C30.302,-5.041 14.661,-11.909 0,-16.662" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,723.374,59.9083)"><path d="M0,111.318C-11.433,111.318 -22.681,108.332 -34.36,102.192L-34.36,85.002C-25.317,90.607 -13.613,96.412 -0.133,96.412C11.199,96.412 18.521,90.191 18.521,80.563C18.521,69.59 9.58,65.872 -4.075,61.446C-18.985,56.796 -34.227,49.275 -34.227,28.751C-34.227,14.441 -23.478,0 0.535,0C10.959,0 20.986,1.975 31.155,6.034L31.155,23.42C20.919,17.915 10.137,14.905 0.535,14.905C-10.395,14.905 -17.185,20.16 -17.185,28.619C-17.185,39.488 -7.875,43.231 5.261,47.328C19.922,52.081 35.562,58.949 35.562,80.43C35.562,100.492 17.24,111.318 0,111.318" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,831.834,171.494)"><path d="M0,-111.585C-31.096,-111.585 -56.394,-86.586 -56.394,-55.859C-56.394,-25.059 -31.096,0 0,0C24.682,0 46.609,-16.122 53.874,-39.395L37.511,-43.796C32.796,-26.446 17.914,-14.905 0,-14.905C-22.282,-14.905 -39.085,-32.512 -39.085,-55.859C-39.085,-79.131 -22.282,-96.68 0,-96.68C11.119,-96.68 21.245,-92.305 28.513,-84.361L29.571,-83.205L0.886,-57.158L-12.148,-70.192L-22.082,-60.259L0.418,-37.755L48.731,-81.63C49.214,-82.067 49.333,-82.777 49.021,-83.355L48.894,-83.591C38.726,-100.912 20.048,-111.585 0,-111.585" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,489.715,74.8138)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,617.892,74.8138)"><path d="M0,81.774C-22.281,81.774 -39.082,64.167 -39.082,40.82C-39.082,17.548 -22.281,-0.001 0,-0.001C22.282,-0.001 39.085,17.548 39.085,40.82C39.085,64.167 22.282,81.774 0,81.774M0,-14.905C-31.094,-14.905 -56.392,10.093 -56.392,40.82C-56.392,71.62 -31.094,96.679 0,96.679C31.096,96.679 56.394,71.62 56.394,40.82C56.394,10.093 31.096,-14.905 0,-14.905" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,142.995,191.8)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,570.119,192.126)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,238.604,194.02)"><path d="M0,106.077L17.539,106.077L17.539,59.077L56.583,0L35.834,0L9.3,42.72L-17.897,0L-38.915,0L0,59.078L0,106.077Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,347.409,302.317)"><path d="M0,-110.517C-32.305,-110.517 -57.61,-86.245 -57.61,-55.259C-57.61,-23.756 -32.899,0 -0.131,0C15.155,0 26.443,-4.807 33.32,-8.938L33.32,-27.81C23.872,-20.456 11.442,-16.102 -0.262,-16.102C-22.799,-16.102 -39.156,-32.57 -39.156,-55.259C-39.156,-77.947 -22.799,-94.415 -0.262,-94.415C11.329,-94.415 24.04,-89.915 33.32,-82.594L33.32,-101.457C28.651,-104.355 16.747,-110.517 0,-110.517" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,664.209,248.494)"><path d="M0,-2.872L14.596,-2.872C28.699,-2.872 35.489,-10.969 35.489,-20.502C35.489,-30.165 28.829,-38.001 14.596,-38.001L0,-38.001L0,-2.872ZM-18.966,52.366L-18.966,-55.238L14.596,-55.238C40.19,-55.238 55.078,-39.698 55.078,-20.502C55.078,-1.305 39.929,14.365 14.596,14.365L0,14.365L0,52.366L-18.966,52.366Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,736.632,216.323)"><path d="M0,59.512L39.211,48.05L22.757,12.584L0,59.512ZM54.49,84.537L46.655,63.276L-7.109,79.045L-8.976,84.537L-30.392,84.537L21.191,-25.025L24.455,-25.025L76.038,84.537L54.49,84.537Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,821.145,193.648)"><path d="M0,107.212L0,-2.22L2.482,-2.22L72.998,68.297C72.868,58.503 72.738,49.623 72.738,39.045L72.738,-0.392L91.412,-0.392L91.412,109.432L88.8,109.432L18.544,38.915C18.674,48.84 18.936,58.373 18.936,68.297L18.936,107.212L0,107.212Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,960.6,193.452)"><path d="M0,107.604L0,60.071L-39.567,0L-16.715,0L10.055,42.049L36.172,0L58.765,0L19.066,60.071L19.066,107.604L0,107.604Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,449.772,205.927)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill-rule:nonzero;"></path></g></g>', 1)
|
|
2148
2148
|
])]);
|
|
2149
2149
|
}
|
|
2150
|
-
const L1 = /* @__PURE__ */ I(p1, [["render", C1]]), h1 = {},
|
|
2150
|
+
const L1 = /* @__PURE__ */ I(p1, [["render", C1]]), h1 = {}, v1 = {
|
|
2151
2151
|
viewBox: "0 0 4498 1782",
|
|
2152
2152
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2153
2153
|
};
|
|
2154
|
-
function
|
|
2155
|
-
return C(), h("svg",
|
|
2154
|
+
function y1(e, n) {
|
|
2155
|
+
return C(), h("svg", v1, [...n[0] || (n[0] = [
|
|
2156
2156
|
be('<g transform="matrix(1,0,0,1,-5059.64,0)"><g transform="matrix(4.16667,0,0,4.16667,5059.64,0)"><g transform="matrix(1,0,0,1,375.836,362.303)"><path d="M0,-28.881L-7.753,-7.642L7.755,-7.642L0,-28.881ZM8.935,-4.383L-8.933,-4.383L-12.362,4.945L-16.519,4.945L-2.191,-33.826L2.249,-33.826L16.52,4.945L12.362,4.945L8.935,-4.383Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,425.626,367.249)"><path d="M0,-39.278L4.157,-39.278L-10.734,0L-15.228,0L-30.119,-39.278L-25.849,-39.278L-12.981,-4.27L0,-39.278Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="435.689" y="60.301" width="3.933" height="39.278" style="fill:white;"></rect></g><g transform="matrix(1,0,0,1,460.469,327.52)"><path d="M0,40.121C-7.866,40.121 -13.036,35.625 -13.261,29.613L-9.102,29.613C-8.766,32.872 -6.349,36.805 0,36.805C5.451,36.805 8.654,33.602 8.654,29.557C8.654,17.981 -12.923,25.287 -12.923,10.508C-12.923,4.44 -7.923,0 -0.337,0C7.136,0 11.632,4.159 12.305,9.554L8.035,9.554C7.586,6.8 4.945,3.429 -0.506,3.373C-5.113,3.316 -8.933,5.845 -8.933,10.396C-8.933,21.747 12.644,14.779 12.644,29.389C12.644,34.727 8.316,40.121 0,40.121" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,513.519,367.585)"><path d="M0,-40.064C8.766,-40.064 15.284,-35.681 18.094,-28.15L13.485,-28.15C11.295,-33.376 6.686,-36.636 0,-36.636C-8.598,-36.636 -15.171,-30.286 -15.171,-20.004C-15.171,-9.776 -8.598,-3.427 0,-3.427C6.686,-3.427 11.295,-6.686 13.485,-11.799L18.094,-11.799C15.284,-4.383 8.766,0 0,0C-10.901,0 -19.217,-8.203 -19.217,-20.004C-19.217,-31.803 -10.901,-40.064 0,-40.064" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,559.937,363.989)"><path d="M0,-32.816L-16.575,-32.816L-16.575,-18.149L-1.686,-18.149L-1.686,-14.891L-16.575,-14.891L-16.575,-0.001L0,-0.001L0,3.259L-20.508,3.259L-20.508,-36.075L0,-36.075L0,-32.816Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,579.494,363.932)"><path d="M0,-32.646L-7.866,-32.646L-7.866,-16.295L0.056,-16.295C6.462,-16.295 9.328,-19.778 9.328,-24.554C9.328,-29.5 6.631,-32.646 0,-32.646M0,-35.962C9.103,-35.962 13.374,-31.016 13.374,-24.554C13.374,-19.161 10.339,-14.609 3.709,-13.372L13.824,3.316L9.103,3.316L-0.617,-13.092L-7.866,-13.092L-7.866,3.316L-11.799,3.316L-11.799,-35.962L0,-35.962Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,597.873,367.249)"><path d="M0,-39.278L25.791,-39.278L25.791,-36.019L14.891,-36.019L14.891,0L10.956,0L10.956,-36.019L0,-36.019L0,-39.278Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="629.904" y="60.301" width="3.933" height="39.278" style="fill:white;"></rect></g><g transform="matrix(1,0,0,1,642.772,367.249)"><path d="M0,-39.278L21.24,-39.278L21.24,-36.019L3.933,-36.019L3.933,-21.353L18.542,-21.353L18.542,-18.094L3.933,-18.094L3.933,0L0,0L0,-39.278Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="670.478" y="60.301" width="3.933" height="39.278" style="fill:white;"></rect></g><g transform="matrix(1,0,0,1,698.011,367.248)"><path d="M0,-51.357L0,-47.817L-11.519,-41.131L-11.519,-44.165L0,-51.357ZM5.843,-36.074L-10.732,-36.074L-10.732,-21.408L4.159,-21.408L4.159,-18.15L-10.732,-18.15L-10.732,-3.259L5.843,-3.259L5.843,0L-14.665,0L-14.665,-39.334L5.843,-39.334L5.843,-36.074Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,723.524,327.52)"><path d="M0,40.121C-7.866,40.121 -13.036,35.625 -13.261,29.613L-9.102,29.613C-8.766,32.872 -6.349,36.805 0,36.805C5.45,36.805 8.653,33.602 8.653,29.557C8.653,17.981 -12.924,25.287 -12.924,10.508C-12.924,4.44 -7.923,0 -0.337,0C7.136,0 11.632,4.159 12.305,9.554L8.035,9.554C7.586,6.8 4.945,3.429 -0.506,3.373C-5.113,3.316 -8.935,5.845 -8.935,10.396C-8.935,21.747 12.642,14.779 12.642,29.389C12.642,34.727 8.316,40.121 0,40.121" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,213.329,115.634)"><path d="M0,-0.001C0,31.768 24.932,55.725 57.995,55.725C73.171,55.725 84.443,51.041 91.421,46.922L91.421,29.636C81.798,36.681 69.485,40.82 57.862,40.82C34.363,40.82 17.307,23.652 17.307,-0.001C17.307,-23.654 34.363,-40.821 57.862,-40.821C69.363,-40.821 81.928,-36.549 91.421,-29.53L91.421,-46.805C86.471,-49.812 74.631,-55.726 58.13,-55.726C25.534,-55.726 0,-31.248 0,-0.001" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,304.75,145.164)"><path d="M0,-59.06C-9.494,-66.079 -22.058,-70.351 -33.559,-70.351C-57.059,-70.351 -74.114,-53.183 -74.114,-29.531C-74.114,-5.877 -57.059,11.29 -33.559,11.29C-21.937,11.29 -9.624,7.152 0,0.106L0,17.392C-6.978,21.512 -18.25,26.195 -33.427,26.195C-66.489,26.195 -91.421,2.238 -91.421,-29.531C-91.421,-60.778 -65.888,-85.255 -33.292,-85.255C-16.79,-85.255 -4.951,-79.341 0,-76.334L0,-59.06Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,341.595,169.156)"><path d="M0,-106.911L-16.642,-106.911L-16.642,0L0,0L0,-26.409L52.796,-42.308L52.796,0L69.303,0L69.303,-106.911L52.796,-106.911L52.796,-56.93L0,-41.495L0,-106.911Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,394.392,119.175)"><path d="M0,-6.949L0,-56.93L16.507,-56.93L16.507,49.981L0,49.981L0,7.674L-52.796,23.572L-52.796,49.981L-69.438,49.981L-69.438,-56.93L-52.796,-56.93L-52.796,8.486L0,-6.949Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,725.081,123.899)"><path d="M0,-16.662C-13.136,-20.759 -22.446,-24.502 -22.446,-35.372C-22.446,-43.831 -15.656,-49.086 -4.726,-49.086C4.876,-49.086 15.658,-46.076 25.894,-40.57L25.894,-57.956C15.726,-62.015 5.698,-63.99 -4.726,-63.99C-28.739,-63.99 -39.488,-49.55 -39.488,-35.239C-39.488,-14.715 -24.246,-7.194 -9.336,-2.544C4.32,1.881 13.26,5.6 13.26,16.573C13.26,26.2 5.938,32.422 -5.394,32.422C-18.874,32.422 -30.578,26.616 -39.62,21.012L-39.62,38.202C-27.942,44.341 -16.693,47.328 -5.261,47.328C11.979,47.328 30.302,36.502 30.302,16.439C30.302,-5.041 14.661,-11.909 0,-16.662" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,719.82,59.9083)"><path d="M0,111.318C-11.433,111.318 -22.681,108.332 -34.36,102.192L-34.36,85.002C-25.317,90.607 -13.613,96.412 -0.133,96.412C11.199,96.412 18.521,90.191 18.521,80.563C18.521,69.59 9.58,65.872 -4.075,61.446C-18.985,56.796 -34.227,49.275 -34.227,28.751C-34.227,14.441 -23.478,0 0.535,0C10.959,0 20.986,1.975 31.155,6.034L31.155,23.42C20.919,17.915 10.137,14.905 0.535,14.905C-10.395,14.905 -17.185,20.16 -17.185,28.619C-17.185,39.488 -7.875,43.231 5.261,47.328C19.922,52.081 35.562,58.949 35.562,80.43C35.562,100.492 17.24,111.318 0,111.318" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,828.281,171.494)"><path d="M0,-111.585C-31.096,-111.585 -56.394,-86.586 -56.394,-55.859C-56.394,-25.059 -31.096,0 0,0C24.682,0 46.609,-16.122 53.874,-39.395L37.511,-43.796C32.796,-26.446 17.914,-14.905 0,-14.905C-22.282,-14.905 -39.085,-32.512 -39.085,-55.859C-39.085,-79.131 -22.282,-96.68 0,-96.68C11.119,-96.68 21.245,-92.305 28.513,-84.361L29.571,-83.205L0.886,-57.158L-12.148,-70.192L-22.082,-60.259L0.418,-37.755L48.731,-81.63C49.214,-82.067 49.333,-82.777 49.021,-83.355L48.894,-83.591C38.726,-100.912 20.048,-111.585 0,-111.585" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,486.161,74.8138)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,614.338,74.8138)"><path d="M0,81.774C-22.281,81.774 -39.082,64.167 -39.082,40.82C-39.082,17.548 -22.281,-0.001 0,-0.001C22.282,-0.001 39.085,17.548 39.085,40.82C39.085,64.167 22.282,81.774 0,81.774M0,-14.905C-31.094,-14.905 -56.392,10.093 -56.392,40.82C-56.392,71.62 -31.094,96.679 0,96.679C31.096,96.679 56.394,71.62 56.394,40.82C56.394,10.093 31.096,-14.905 0,-14.905" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,139.441,191.8)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,566.565,192.126)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,235.05,194.02)"><path d="M0,106.077L17.539,106.077L17.539,59.077L56.583,0L35.834,0L9.3,42.72L-17.897,0L-38.915,0L0,59.078L0,106.077Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,343.855,302.317)"><path d="M0,-110.517C-32.305,-110.517 -57.61,-86.245 -57.61,-55.259C-57.61,-23.756 -32.899,0 -0.131,0C15.155,0 26.443,-4.807 33.32,-8.938L33.32,-27.81C23.872,-20.456 11.442,-16.102 -0.262,-16.102C-22.799,-16.102 -39.156,-32.57 -39.156,-55.259C-39.156,-77.947 -22.799,-94.415 -0.262,-94.415C11.329,-94.415 24.04,-89.915 33.32,-82.594L33.32,-101.457C28.651,-104.355 16.747,-110.517 0,-110.517" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,660.655,248.494)"><path d="M0,-2.872L14.596,-2.872C28.699,-2.872 35.489,-10.969 35.489,-20.502C35.489,-30.165 28.829,-38.001 14.596,-38.001L0,-38.001L0,-2.872ZM-18.966,52.366L-18.966,-55.238L14.596,-55.238C40.19,-55.238 55.078,-39.698 55.078,-20.502C55.078,-1.305 39.929,14.365 14.596,14.365L0,14.365L0,52.366L-18.966,52.366Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,733.078,216.323)"><path d="M0,59.512L39.211,48.05L22.757,12.584L0,59.512ZM54.49,84.537L46.655,63.276L-7.109,79.045L-8.976,84.537L-30.392,84.537L21.191,-25.025L24.455,-25.025L76.038,84.537L54.49,84.537Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,817.591,193.648)"><path d="M0,107.212L0,-2.22L2.482,-2.22L72.998,68.297C72.868,58.503 72.738,49.623 72.738,39.045L72.738,-0.392L91.412,-0.392L91.412,109.432L88.8,109.432L18.544,38.915C18.674,48.84 18.936,58.373 18.936,68.297L18.936,107.212L0,107.212Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,957.046,193.452)"><path d="M0,107.604L0,60.071L-39.567,0L-16.715,0L10.055,42.049L36.172,0L58.765,0L19.066,60.071L19.066,107.604L0,107.604Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,446.218,205.927)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill:white;fill-rule:nonzero;"></path></g></g></g>', 1)
|
|
2157
2157
|
])]);
|
|
2158
2158
|
}
|
|
2159
|
-
const _1 = /* @__PURE__ */ I(h1, [["render",
|
|
2159
|
+
const _1 = /* @__PURE__ */ I(h1, [["render", y1]]), w1 = {}, x1 = {
|
|
2160
2160
|
viewBox: "0 0 4498 1782",
|
|
2161
2161
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2162
2162
|
};
|
|
@@ -2178,9 +2178,9 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2178
2178
|
color: "color"
|
|
2179
2179
|
}, P1 = {
|
|
2180
2180
|
fr_FR: "fr_FR"
|
|
2181
|
-
}, z1 = {
|
|
2182
|
-
medium: "medium"
|
|
2183
2181
|
}, k1 = {
|
|
2182
|
+
medium: "medium"
|
|
2183
|
+
}, z1 = {
|
|
2184
2184
|
fr_FR_color: L1,
|
|
2185
2185
|
fr_FR_white: _1,
|
|
2186
2186
|
en_US_color: M1,
|
|
@@ -2192,25 +2192,25 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2192
2192
|
href: {},
|
|
2193
2193
|
variant: { default: F1.color },
|
|
2194
2194
|
language: { default: P1.fr_FR },
|
|
2195
|
-
size: { default:
|
|
2195
|
+
size: { default: k1.medium }
|
|
2196
2196
|
},
|
|
2197
2197
|
emits: ["click"],
|
|
2198
2198
|
setup(e, { emit: n }) {
|
|
2199
|
-
const t = e, o = n, r =
|
|
2199
|
+
const t = e, o = n, r = v(() => ({
|
|
2200
2200
|
"cmc-logo": !0,
|
|
2201
2201
|
[`cmc-logo--${t.size}`]: !0
|
|
2202
|
-
})), l =
|
|
2202
|
+
})), l = v(() => `${t.language}_${t.variant}`), i = v(() => z1[l.value]), s = () => {
|
|
2203
2203
|
o("click");
|
|
2204
2204
|
};
|
|
2205
2205
|
return (a, u) => (C(), h("a", {
|
|
2206
2206
|
href: t.href,
|
|
2207
|
-
class:
|
|
2207
|
+
class: $(r.value),
|
|
2208
2208
|
onClick: we(s, ["prevent"])
|
|
2209
2209
|
}, [
|
|
2210
2210
|
(C(), K(t0(i.value)))
|
|
2211
2211
|
], 10, V1));
|
|
2212
2212
|
}
|
|
2213
|
-
}),
|
|
2213
|
+
}), Tr = /* @__PURE__ */ I(E1, [["__scopeId", "data-v-cc384ddd"]]), A1 = { class: "pagination" }, O1 = ["disabled"], Z1 = ["onClick"], D1 = {
|
|
2214
2214
|
key: 1,
|
|
2215
2215
|
class: "pagination__ellipsis"
|
|
2216
2216
|
}, T1 = ["disabled"], G1 = 2, H1 = /* @__PURE__ */ P({
|
|
@@ -2234,7 +2234,7 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2234
2234
|
function i() {
|
|
2235
2235
|
return t.visibleRange ?? G1;
|
|
2236
2236
|
}
|
|
2237
|
-
const s =
|
|
2237
|
+
const s = v(() => {
|
|
2238
2238
|
const g = r(), d = l(), p = i();
|
|
2239
2239
|
if (g <= 1) return [1];
|
|
2240
2240
|
const m = [];
|
|
@@ -2244,34 +2244,94 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2244
2244
|
for (let x = L; x <= y; x++)
|
|
2245
2245
|
x !== 1 && x !== g && m.push(x);
|
|
2246
2246
|
return y < g - 1 && m.push("..."), g > 1 && m.push(g), m;
|
|
2247
|
-
}), a =
|
|
2247
|
+
}), a = v(() => t.currentPage > 1), u = v(() => t.currentPage < r()), c = () => {
|
|
2248
2248
|
a.value && o("update:currentPage", t.currentPage - 1);
|
|
2249
2249
|
}, f = () => {
|
|
2250
2250
|
u.value && o("update:currentPage", t.currentPage + 1);
|
|
2251
2251
|
};
|
|
2252
|
-
return (g, d) => (C(), h("nav",
|
|
2253
|
-
|
|
2254
|
-
class:
|
|
2252
|
+
return (g, d) => (C(), h("nav", A1, [
|
|
2253
|
+
R("button", {
|
|
2254
|
+
class: $(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
2255
2255
|
disabled: !a.value,
|
|
2256
2256
|
"aria-label": "Page précédente",
|
|
2257
2257
|
onClick: c
|
|
2258
|
-
}, " ‹ ", 10,
|
|
2258
|
+
}, " ‹ ", 10, O1),
|
|
2259
2259
|
(C(!0), h(E, null, H(s.value, (p, m) => (C(), h(E, { key: m }, [
|
|
2260
2260
|
typeof p == "number" ? (C(), h("button", {
|
|
2261
2261
|
key: 0,
|
|
2262
|
-
class:
|
|
2262
|
+
class: $(["pagination__page-button", { "is-active": p === l() }]),
|
|
2263
2263
|
onClick: () => o("update:currentPage", p)
|
|
2264
|
-
},
|
|
2264
|
+
}, z(p), 11, Z1)) : (C(), h("span", D1, "…"))
|
|
2265
2265
|
], 64))), 128)),
|
|
2266
|
-
|
|
2267
|
-
class:
|
|
2266
|
+
R("button", {
|
|
2267
|
+
class: $(["pagination__page-button", { "is-invisible": !u.value }]),
|
|
2268
2268
|
disabled: !u.value,
|
|
2269
2269
|
"aria-label": "Page suivante",
|
|
2270
2270
|
onClick: f
|
|
2271
2271
|
}, " › ", 10, T1)
|
|
2272
2272
|
]));
|
|
2273
2273
|
}
|
|
2274
|
-
}), B1 = /* @__PURE__ */ I(H1, [["__scopeId", "data-v-8be37a19"]]), N1 = ["aria-valuenow", "aria-label"], U1 =
|
|
2274
|
+
}), B1 = /* @__PURE__ */ I(H1, [["__scopeId", "data-v-8be37a19"]]), N1 = ["aria-valuenow", "aria-label"], U1 = { class: "cmc-gauge__visual" }, q1 = {
|
|
2275
|
+
class: "cmc-gauge__svg",
|
|
2276
|
+
viewBox: "0 0 200 100",
|
|
2277
|
+
"aria-hidden": "true"
|
|
2278
|
+
}, j1 = ["stroke-dashoffset"], K1 = { class: "cmc-gauge__overlay" }, X1 = /* @__PURE__ */ P({
|
|
2279
|
+
name: "CmcGauge",
|
|
2280
|
+
__name: "CmcGauge",
|
|
2281
|
+
props: {
|
|
2282
|
+
value: {},
|
|
2283
|
+
label: {},
|
|
2284
|
+
description: {},
|
|
2285
|
+
loading: { type: Boolean }
|
|
2286
|
+
},
|
|
2287
|
+
setup(e) {
|
|
2288
|
+
const n = e, t = v(
|
|
2289
|
+
() => Number.isFinite(n.value) ? Number(n.value) : 0
|
|
2290
|
+
), o = v(
|
|
2291
|
+
() => Math.min(100, Math.max(0, t.value))
|
|
2292
|
+
), r = v(() => n.loading ? 0 : o.value), l = v(
|
|
2293
|
+
() => n.loading ? "" : `${Math.round(r.value)}%`
|
|
2294
|
+
), i = v(() => 100 - r.value), s = v(() => n.loading ? n.label ? `${n.label} - Chargement en cours` : "Jauge - Chargement en cours" : n.label ? `${n.label} - ${l.value}` : `Jauge ${l.value}`), a = v(() => n.loading ? "" : n.label), u = v(
|
|
2295
|
+
() => n.loading ? "" : n.description
|
|
2296
|
+
);
|
|
2297
|
+
return (c, f) => (C(), h("div", {
|
|
2298
|
+
class: $(["cmc-gauge", { "cmc-gauge--loading": e.loading }]),
|
|
2299
|
+
role: "meter",
|
|
2300
|
+
"aria-valuenow": r.value,
|
|
2301
|
+
"aria-valuemin": "0",
|
|
2302
|
+
"aria-valuemax": "100",
|
|
2303
|
+
"aria-label": s.value
|
|
2304
|
+
}, [
|
|
2305
|
+
R("div", U1, [
|
|
2306
|
+
(C(), h("svg", q1, [
|
|
2307
|
+
f[0] || (f[0] = R("path", {
|
|
2308
|
+
class: "cmc-gauge__track",
|
|
2309
|
+
d: "M 16 100 A 84 84 0 0 1 184 100"
|
|
2310
|
+
}, null, -1)),
|
|
2311
|
+
R("path", {
|
|
2312
|
+
class: $(["cmc-gauge__progress", { "cmc-gauge__progress--hidden": i.value === 100 }]),
|
|
2313
|
+
d: "M 9 100 A 91 91 0 0 1 191 100",
|
|
2314
|
+
pathLength: "100",
|
|
2315
|
+
"stroke-dashoffset": i.value
|
|
2316
|
+
}, null, 10, j1)
|
|
2317
|
+
])),
|
|
2318
|
+
R("div", K1, [
|
|
2319
|
+
R("div", {
|
|
2320
|
+
class: $(["cmc-gauge__value", { "cmc-gauge__value--skeleton skeleton": e.loading }])
|
|
2321
|
+
}, z(l.value), 3),
|
|
2322
|
+
e.label ? (C(), h("div", {
|
|
2323
|
+
key: 0,
|
|
2324
|
+
class: $(["cmc-gauge__label", { "cmc-gauge__label--skeleton skeleton": e.loading }])
|
|
2325
|
+
}, z(a.value), 3)) : k("", !0)
|
|
2326
|
+
])
|
|
2327
|
+
]),
|
|
2328
|
+
e.description ? (C(), h("div", {
|
|
2329
|
+
key: 0,
|
|
2330
|
+
class: $(["cmc-gauge__description", { "cmc-gauge__description--skeleton skeleton": e.loading }])
|
|
2331
|
+
}, z(u.value), 3)) : k("", !0)
|
|
2332
|
+
], 10, N1));
|
|
2333
|
+
}
|
|
2334
|
+
}), Gr = /* @__PURE__ */ I(X1, [["__scopeId", "data-v-32fe18c0"]]), Q1 = ["aria-valuenow", "aria-label"], W1 = /* @__PURE__ */ P({
|
|
2275
2335
|
name: "CmcProgressBar",
|
|
2276
2336
|
__name: "CmcProgressBar",
|
|
2277
2337
|
props: {
|
|
@@ -2280,45 +2340,45 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2280
2340
|
loading: { type: Boolean }
|
|
2281
2341
|
},
|
|
2282
2342
|
setup(e) {
|
|
2283
|
-
const n = e, t =
|
|
2343
|
+
const n = e, t = v(
|
|
2284
2344
|
() => Number.isFinite(n.value) ? Number(n.value) : 0
|
|
2285
|
-
), o =
|
|
2345
|
+
), o = v(
|
|
2286
2346
|
() => Math.min(100, Math.max(0, t.value))
|
|
2287
|
-
), r =
|
|
2347
|
+
), r = v(() => n.loading ? 0 : o.value), l = v(
|
|
2288
2348
|
() => n.loading ? "" : `${Math.round(r.value)}%`
|
|
2289
|
-
), i =
|
|
2349
|
+
), i = v(() => ({
|
|
2290
2350
|
width: `${r.value}%`
|
|
2291
|
-
})), s =
|
|
2351
|
+
})), s = v(() => n.loading ? n.label ? `${n.label} - Chargement en cours` : "Progression - Chargement en cours" : n.label ? `${n.label} - ${l.value}` : `Progression ${l.value}`), a = v(() => n.loading ? "" : n.label);
|
|
2292
2352
|
return (u, c) => (C(), h("div", {
|
|
2293
|
-
class:
|
|
2353
|
+
class: $(["progress-bar", { "progress-bar--loading": e.loading }]),
|
|
2294
2354
|
role: "progressbar",
|
|
2295
2355
|
"aria-valuenow": r.value,
|
|
2296
2356
|
"aria-valuemin": "0",
|
|
2297
2357
|
"aria-valuemax": "100",
|
|
2298
2358
|
"aria-label": s.value
|
|
2299
2359
|
}, [
|
|
2300
|
-
|
|
2301
|
-
class:
|
|
2302
|
-
},
|
|
2303
|
-
|
|
2304
|
-
class:
|
|
2360
|
+
R("div", {
|
|
2361
|
+
class: $(["progress-bar__value", { "progress-bar__value--skeleton skeleton": e.loading }])
|
|
2362
|
+
}, z(l.value), 3),
|
|
2363
|
+
R("div", {
|
|
2364
|
+
class: $(["progress-bar__track", { skeleton: e.loading }])
|
|
2305
2365
|
}, [
|
|
2306
|
-
|
|
2366
|
+
R("div", {
|
|
2307
2367
|
class: "progress-bar__fill",
|
|
2308
2368
|
style: J(i.value)
|
|
2309
2369
|
}, null, 4)
|
|
2310
2370
|
], 2),
|
|
2311
2371
|
e.label ? (C(), h("div", {
|
|
2312
2372
|
key: 0,
|
|
2313
|
-
class:
|
|
2314
|
-
},
|
|
2315
|
-
], 10,
|
|
2373
|
+
class: $(["progress-bar__label", { "progress-bar__label--skeleton skeleton": e.loading }])
|
|
2374
|
+
}, z(a.value), 3)) : k("", !0)
|
|
2375
|
+
], 10, Q1));
|
|
2316
2376
|
}
|
|
2317
|
-
}),
|
|
2377
|
+
}), Hr = /* @__PURE__ */ I(W1, [["__scopeId", "data-v-64023b7f"]]), Y1 = /* @__PURE__ */ P({
|
|
2318
2378
|
name: "CmcSearch",
|
|
2319
2379
|
__name: "CmcSearch",
|
|
2320
2380
|
props: /* @__PURE__ */ Q({
|
|
2321
|
-
size: { default:
|
|
2381
|
+
size: { default: Zt.medium },
|
|
2322
2382
|
variant: { default: le.underline },
|
|
2323
2383
|
label: {},
|
|
2324
2384
|
placeholder: { default: "Rechercher..." }
|
|
@@ -2328,16 +2388,16 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2328
2388
|
}),
|
|
2329
2389
|
emits: ["update:modelValue"],
|
|
2330
2390
|
setup(e) {
|
|
2331
|
-
const n = e, t = ne(e, "modelValue"), o =
|
|
2391
|
+
const n = e, t = ne(e, "modelValue"), o = v(() => [
|
|
2332
2392
|
"search-bar",
|
|
2333
2393
|
`search-bar--${n.size}`,
|
|
2334
2394
|
n.variant ? `search-bar--${n.variant}` : null
|
|
2335
|
-
]), r = Re(), l =
|
|
2395
|
+
]), r = Re(), l = v(() => `cmc-search-${r}`);
|
|
2336
2396
|
return (i, s) => (C(), h("div", {
|
|
2337
|
-
class:
|
|
2397
|
+
class: $(o.value),
|
|
2338
2398
|
role: "search"
|
|
2339
2399
|
}, [
|
|
2340
|
-
|
|
2400
|
+
Z(Dt, {
|
|
2341
2401
|
class: "search-bar__input",
|
|
2342
2402
|
type: "search",
|
|
2343
2403
|
modelValue: t.value,
|
|
@@ -2349,7 +2409,7 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2349
2409
|
variant: e.variant
|
|
2350
2410
|
}, {
|
|
2351
2411
|
left: Se(() => [
|
|
2352
|
-
|
|
2412
|
+
Z(j, {
|
|
2353
2413
|
"aria-hidden": "true",
|
|
2354
2414
|
class: "search-bar__icon",
|
|
2355
2415
|
color: "light",
|
|
@@ -2360,14 +2420,14 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2360
2420
|
}, 8, ["modelValue", "id", "label", "placeholder", "size", "variant"])
|
|
2361
2421
|
], 2));
|
|
2362
2422
|
}
|
|
2363
|
-
}),
|
|
2423
|
+
}), Br = /* @__PURE__ */ I(Y1, [["__scopeId", "data-v-4db57e98"]]), pe = le, J1 = ["for"], eo = {
|
|
2364
2424
|
key: 1,
|
|
2365
2425
|
class: "select__description"
|
|
2366
|
-
},
|
|
2426
|
+
}, to = { class: "select__wrapper" }, no = ["id", "required", "disabled", "aria-invalid"], oo = {
|
|
2367
2427
|
key: 0,
|
|
2368
2428
|
value: "",
|
|
2369
2429
|
disabled: ""
|
|
2370
|
-
},
|
|
2430
|
+
}, ro = ["value", "disabled"], lo = /* @__PURE__ */ P({
|
|
2371
2431
|
name: "CmcSelect",
|
|
2372
2432
|
__name: "CmcSelect",
|
|
2373
2433
|
props: /* @__PURE__ */ Q({
|
|
@@ -2387,44 +2447,44 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2387
2447
|
}),
|
|
2388
2448
|
emits: ["update:modelValue"],
|
|
2389
2449
|
setup(e) {
|
|
2390
|
-
const n = e, t = ne(e, "modelValue"), o =
|
|
2450
|
+
const n = e, t = ne(e, "modelValue"), o = v(() => ({
|
|
2391
2451
|
select: !0,
|
|
2392
2452
|
"select--disabled": n.disabled,
|
|
2393
2453
|
"select--error": n.invalid,
|
|
2394
2454
|
"select--outlined": n.variant === pe.outlined,
|
|
2395
2455
|
"select--underline": n.variant === pe.underline,
|
|
2396
2456
|
"select--filled": n.variant === pe.filled
|
|
2397
|
-
})), r =
|
|
2457
|
+
})), r = v(() => ({
|
|
2398
2458
|
width: n.width ? `${n.width}px` : "100%"
|
|
2399
2459
|
}));
|
|
2400
2460
|
return (l, i) => (C(), h("div", {
|
|
2401
|
-
class:
|
|
2461
|
+
class: $(o.value),
|
|
2402
2462
|
style: J(r.value)
|
|
2403
2463
|
}, [
|
|
2404
2464
|
e.label ? (C(), h("label", {
|
|
2405
2465
|
key: 0,
|
|
2406
2466
|
for: e.id,
|
|
2407
2467
|
class: "select__label"
|
|
2408
|
-
},
|
|
2409
|
-
n.description ? (C(), h("div",
|
|
2410
|
-
|
|
2411
|
-
Me(
|
|
2468
|
+
}, z(e.label), 9, J1)) : k("", !0),
|
|
2469
|
+
n.description ? (C(), h("div", eo, z(n.description), 1)) : k("", !0),
|
|
2470
|
+
R("div", to, [
|
|
2471
|
+
Me(R("select", {
|
|
2412
2472
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2413
2473
|
id: e.id,
|
|
2414
2474
|
required: e.required,
|
|
2415
2475
|
disabled: e.disabled,
|
|
2416
2476
|
"aria-invalid": e.invalid
|
|
2417
2477
|
}, [
|
|
2418
|
-
e.placeholder ? (C(), h("option",
|
|
2478
|
+
e.placeholder ? (C(), h("option", oo, z(e.placeholder), 1)) : k("", !0),
|
|
2419
2479
|
(C(!0), h(E, null, H(e.options, (s) => (C(), h("option", {
|
|
2420
2480
|
key: s.value,
|
|
2421
2481
|
value: s.value,
|
|
2422
2482
|
disabled: s.disabled
|
|
2423
|
-
},
|
|
2424
|
-
], 8,
|
|
2483
|
+
}, z(s.label), 9, ro))), 128))
|
|
2484
|
+
], 8, no), [
|
|
2425
2485
|
[n0, t.value]
|
|
2426
2486
|
]),
|
|
2427
|
-
|
|
2487
|
+
Z(j, {
|
|
2428
2488
|
"aria-hidden": "true",
|
|
2429
2489
|
class: "select__icon_chevron",
|
|
2430
2490
|
color: "light",
|
|
@@ -2433,30 +2493,30 @@ const I1 = /* @__PURE__ */ I(R1, [["render", $1]]), F1 = {
|
|
|
2433
2493
|
])
|
|
2434
2494
|
], 6));
|
|
2435
2495
|
}
|
|
2436
|
-
}),
|
|
2496
|
+
}), Nr = /* @__PURE__ */ I(lo, [["__scopeId", "data-v-9ffe6aa3"]]), io = {
|
|
2437
2497
|
success: "success",
|
|
2438
2498
|
danger: "danger",
|
|
2439
2499
|
warning: "warning"
|
|
2440
|
-
},
|
|
2500
|
+
}, so = { class: "status__label" }, ao = /* @__PURE__ */ P({
|
|
2441
2501
|
name: "CmcStatus",
|
|
2442
2502
|
__name: "CmcStatus",
|
|
2443
2503
|
props: {
|
|
2444
2504
|
text: {},
|
|
2445
|
-
status: { default:
|
|
2505
|
+
status: { default: io.success }
|
|
2446
2506
|
},
|
|
2447
2507
|
setup(e) {
|
|
2448
|
-
const n = e, t =
|
|
2508
|
+
const n = e, t = v(() => ({
|
|
2449
2509
|
status: !0,
|
|
2450
2510
|
[`status--${n.status}`]: !0
|
|
2451
2511
|
}));
|
|
2452
2512
|
return (o, r) => (C(), h("div", {
|
|
2453
|
-
class:
|
|
2513
|
+
class: $(t.value)
|
|
2454
2514
|
}, [
|
|
2455
|
-
r[0] || (r[0] =
|
|
2456
|
-
|
|
2515
|
+
r[0] || (r[0] = R("span", { class: "status__dot" }, null, -1)),
|
|
2516
|
+
R("span", so, z(n.text), 1)
|
|
2457
2517
|
], 2));
|
|
2458
2518
|
}
|
|
2459
|
-
}),
|
|
2519
|
+
}), Ur = /* @__PURE__ */ I(ao, [["__scopeId", "data-v-9ebfdda4"]]);
|
|
2460
2520
|
/**
|
|
2461
2521
|
* table-core
|
|
2462
2522
|
*
|
|
@@ -2481,10 +2541,10 @@ function D(e, n) {
|
|
|
2481
2541
|
function Fe(e) {
|
|
2482
2542
|
return e instanceof Function;
|
|
2483
2543
|
}
|
|
2484
|
-
function
|
|
2544
|
+
function uo(e) {
|
|
2485
2545
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
2486
2546
|
}
|
|
2487
|
-
function
|
|
2547
|
+
function co(e, n) {
|
|
2488
2548
|
const t = [], o = (r) => {
|
|
2489
2549
|
r.forEach((l) => {
|
|
2490
2550
|
t.push(l);
|
|
@@ -2494,7 +2554,7 @@ function ro(e, n) {
|
|
|
2494
2554
|
};
|
|
2495
2555
|
return o(e), t;
|
|
2496
2556
|
}
|
|
2497
|
-
function
|
|
2557
|
+
function _(e, n, t) {
|
|
2498
2558
|
let o = [], r;
|
|
2499
2559
|
return (l) => {
|
|
2500
2560
|
let i;
|
|
@@ -2518,7 +2578,7 @@ function v(e, n, t) {
|
|
|
2518
2578
|
return r;
|
|
2519
2579
|
};
|
|
2520
2580
|
}
|
|
2521
|
-
function
|
|
2581
|
+
function w(e, n, t, o) {
|
|
2522
2582
|
return {
|
|
2523
2583
|
debug: () => {
|
|
2524
2584
|
var r;
|
|
@@ -2528,7 +2588,7 @@ function _(e, n, t, o) {
|
|
|
2528
2588
|
onChange: o
|
|
2529
2589
|
};
|
|
2530
2590
|
}
|
|
2531
|
-
function
|
|
2591
|
+
function go(e, n, t, o) {
|
|
2532
2592
|
const r = () => {
|
|
2533
2593
|
var i;
|
|
2534
2594
|
return (i = l.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -2538,20 +2598,20 @@ function lo(e, n, t, o) {
|
|
|
2538
2598
|
column: t,
|
|
2539
2599
|
getValue: () => n.getValue(o),
|
|
2540
2600
|
renderValue: r,
|
|
2541
|
-
getContext:
|
|
2601
|
+
getContext: _(() => [e, t, n, l], (i, s, a, u) => ({
|
|
2542
2602
|
table: i,
|
|
2543
2603
|
column: s,
|
|
2544
2604
|
row: a,
|
|
2545
2605
|
cell: u,
|
|
2546
2606
|
getValue: u.getValue,
|
|
2547
2607
|
renderValue: u.renderValue
|
|
2548
|
-
}),
|
|
2608
|
+
}), w(e.options, "debugCells", "cell.getContext"))
|
|
2549
2609
|
};
|
|
2550
2610
|
return e._features.forEach((i) => {
|
|
2551
2611
|
i.createCell == null || i.createCell(l, t, n, e);
|
|
2552
2612
|
}, {}), l;
|
|
2553
2613
|
}
|
|
2554
|
-
function
|
|
2614
|
+
function fo(e, n, t, o) {
|
|
2555
2615
|
var r, l;
|
|
2556
2616
|
const s = {
|
|
2557
2617
|
...e._getDefaultColumnDef(),
|
|
@@ -2574,25 +2634,25 @@ function io(e, n, t, o) {
|
|
|
2574
2634
|
depth: t,
|
|
2575
2635
|
columnDef: s,
|
|
2576
2636
|
columns: [],
|
|
2577
|
-
getFlatColumns:
|
|
2637
|
+
getFlatColumns: _(() => [!0], () => {
|
|
2578
2638
|
var g;
|
|
2579
2639
|
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((d) => d.getFlatColumns())];
|
|
2580
|
-
},
|
|
2581
|
-
getLeafColumns:
|
|
2640
|
+
}, w(e.options, "debugColumns", "column.getFlatColumns")),
|
|
2641
|
+
getLeafColumns: _(() => [e._getOrderColumnsFn()], (g) => {
|
|
2582
2642
|
var d;
|
|
2583
2643
|
if ((d = f.columns) != null && d.length) {
|
|
2584
2644
|
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
2585
2645
|
return g(p);
|
|
2586
2646
|
}
|
|
2587
2647
|
return [f];
|
|
2588
|
-
},
|
|
2648
|
+
}, w(e.options, "debugColumns", "column.getLeafColumns"))
|
|
2589
2649
|
};
|
|
2590
2650
|
for (const g of e._features)
|
|
2591
2651
|
g.createColumn == null || g.createColumn(f, e);
|
|
2592
2652
|
return f;
|
|
2593
2653
|
}
|
|
2594
|
-
const
|
|
2595
|
-
function
|
|
2654
|
+
const A = "debugHeaders";
|
|
2655
|
+
function vt(e, n, t) {
|
|
2596
2656
|
var o;
|
|
2597
2657
|
let l = {
|
|
2598
2658
|
id: (o = t.id) != null ? o : n.id,
|
|
@@ -2621,33 +2681,33 @@ function yt(e, n, t) {
|
|
|
2621
2681
|
i.createHeader == null || i.createHeader(l, e);
|
|
2622
2682
|
}), l;
|
|
2623
2683
|
}
|
|
2624
|
-
const
|
|
2684
|
+
const po = {
|
|
2625
2685
|
createTable: (e) => {
|
|
2626
|
-
e.getHeaderGroups =
|
|
2686
|
+
e.getHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
|
|
2627
2687
|
var l, i;
|
|
2628
2688
|
const s = (l = o?.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? l : [], a = (i = r?.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], u = t.filter((f) => !(o != null && o.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
2629
2689
|
return me(n, [...s, ...u, ...a], e);
|
|
2630
|
-
},
|
|
2690
|
+
}, w(e.options, A, "getHeaderGroups")), e.getCenterHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((l) => !(o != null && o.includes(l.id)) && !(r != null && r.includes(l.id))), me(n, t, e, "center")), w(e.options, A, "getCenterHeaderGroups")), e.getLeftHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
2631
2691
|
var r;
|
|
2632
2692
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2633
2693
|
return me(n, l, e, "left");
|
|
2634
|
-
},
|
|
2694
|
+
}, w(e.options, A, "getLeftHeaderGroups")), e.getRightHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
2635
2695
|
var r;
|
|
2636
2696
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2637
2697
|
return me(n, l, e, "right");
|
|
2638
|
-
},
|
|
2698
|
+
}, w(e.options, A, "getRightHeaderGroups")), e.getFooterGroups = _(() => [e.getHeaderGroups()], (n) => [...n].reverse(), w(e.options, A, "getFooterGroups")), e.getLeftFooterGroups = _(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), w(e.options, A, "getLeftFooterGroups")), e.getCenterFooterGroups = _(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), w(e.options, A, "getCenterFooterGroups")), e.getRightFooterGroups = _(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), w(e.options, A, "getRightFooterGroups")), e.getFlatHeaders = _(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, A, "getFlatHeaders")), e.getLeftFlatHeaders = _(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, A, "getLeftFlatHeaders")), e.getCenterFlatHeaders = _(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, A, "getCenterFlatHeaders")), e.getRightFlatHeaders = _(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, A, "getRightFlatHeaders")), e.getCenterLeafHeaders = _(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
2639
2699
|
var o;
|
|
2640
2700
|
return !((o = t.subHeaders) != null && o.length);
|
|
2641
|
-
}),
|
|
2701
|
+
}), w(e.options, A, "getCenterLeafHeaders")), e.getLeftLeafHeaders = _(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
2642
2702
|
var o;
|
|
2643
2703
|
return !((o = t.subHeaders) != null && o.length);
|
|
2644
|
-
}),
|
|
2704
|
+
}), w(e.options, A, "getLeftLeafHeaders")), e.getRightLeafHeaders = _(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
2645
2705
|
var o;
|
|
2646
2706
|
return !((o = t.subHeaders) != null && o.length);
|
|
2647
|
-
}),
|
|
2707
|
+
}), w(e.options, A, "getRightLeafHeaders")), e.getLeafHeaders = _(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
|
|
2648
2708
|
var r, l, i, s, a, u;
|
|
2649
2709
|
return [...(r = (l = n[0]) == null ? void 0 : l.headers) != null ? r : [], ...(i = (s = t[0]) == null ? void 0 : s.headers) != null ? i : [], ...(a = (u = o[0]) == null ? void 0 : u.headers) != null ? a : []].map((c) => c.getLeafHeaders()).flat();
|
|
2650
|
-
},
|
|
2710
|
+
}, w(e.options, A, "getLeafHeaders"));
|
|
2651
2711
|
}
|
|
2652
2712
|
};
|
|
2653
2713
|
function me(e, n, t, o) {
|
|
@@ -2669,34 +2729,34 @@ function me(e, n, t, o) {
|
|
|
2669
2729
|
}, m = [];
|
|
2670
2730
|
g.forEach((L) => {
|
|
2671
2731
|
const y = [...m].reverse()[0], x = L.column.depth === p.depth;
|
|
2672
|
-
let
|
|
2673
|
-
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)
|
|
2674
2734
|
y.subHeaders.push(L);
|
|
2675
2735
|
else {
|
|
2676
|
-
const
|
|
2677
|
-
id: [o, d,
|
|
2736
|
+
const F = vt(t, b, {
|
|
2737
|
+
id: [o, d, b.id, L?.id].filter(Boolean).join("_"),
|
|
2678
2738
|
isPlaceholder: M,
|
|
2679
|
-
placeholderId: M ? `${m.filter((S) => S.column ===
|
|
2739
|
+
placeholderId: M ? `${m.filter((S) => S.column === b).length}` : void 0,
|
|
2680
2740
|
depth: d,
|
|
2681
2741
|
index: m.length
|
|
2682
2742
|
});
|
|
2683
|
-
|
|
2743
|
+
F.subHeaders.push(L), m.push(F);
|
|
2684
2744
|
}
|
|
2685
2745
|
p.headers.push(L), L.headerGroup = p;
|
|
2686
2746
|
}), a.push(p), d > 0 && u(m, d - 1);
|
|
2687
|
-
}, c = n.map((g, d) =>
|
|
2747
|
+
}, c = n.map((g, d) => vt(t, g, {
|
|
2688
2748
|
depth: i,
|
|
2689
2749
|
index: d
|
|
2690
2750
|
}));
|
|
2691
2751
|
u(c, i - 1), a.reverse();
|
|
2692
2752
|
const f = (g) => g.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
2693
2753
|
let m = 0, L = 0, y = [0];
|
|
2694
|
-
p.subHeaders && p.subHeaders.length ? (y = [], f(p.subHeaders).forEach((
|
|
2754
|
+
p.subHeaders && p.subHeaders.length ? (y = [], f(p.subHeaders).forEach((b) => {
|
|
2695
2755
|
let {
|
|
2696
2756
|
colSpan: M,
|
|
2697
|
-
rowSpan:
|
|
2698
|
-
} =
|
|
2699
|
-
m += M, y.push(
|
|
2757
|
+
rowSpan: F
|
|
2758
|
+
} = b;
|
|
2759
|
+
m += M, y.push(F);
|
|
2700
2760
|
})) : m = 1;
|
|
2701
2761
|
const x = Math.min(...y);
|
|
2702
2762
|
return L = L + x, p.colSpan = m, p.rowSpan = L, {
|
|
@@ -2706,7 +2766,7 @@ function me(e, n, t, o) {
|
|
|
2706
2766
|
});
|
|
2707
2767
|
return f((r = (l = a[0]) == null ? void 0 : l.headers) != null ? r : []), a;
|
|
2708
2768
|
}
|
|
2709
|
-
const
|
|
2769
|
+
const mo = (e, n, t, o, r, l, i) => {
|
|
2710
2770
|
let s = {
|
|
2711
2771
|
id: n,
|
|
2712
2772
|
index: o,
|
|
@@ -2734,7 +2794,7 @@ const ao = (e, n, t, o, r, l, i) => {
|
|
|
2734
2794
|
return (u = s.getValue(a)) != null ? u : e.options.renderFallbackValue;
|
|
2735
2795
|
},
|
|
2736
2796
|
subRows: [],
|
|
2737
|
-
getLeafRows: () =>
|
|
2797
|
+
getLeafRows: () => co(s.subRows, (a) => a.subRows),
|
|
2738
2798
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
2739
2799
|
getParentRows: () => {
|
|
2740
2800
|
let a = [], u = s;
|
|
@@ -2745,15 +2805,15 @@ const ao = (e, n, t, o, r, l, i) => {
|
|
|
2745
2805
|
}
|
|
2746
2806
|
return a.reverse();
|
|
2747
2807
|
},
|
|
2748
|
-
getAllCells:
|
|
2749
|
-
_getAllCellsByColumnId:
|
|
2808
|
+
getAllCells: _(() => [e.getAllLeafColumns()], (a) => a.map((u) => go(e, s, u, u.id)), w(e.options, "debugRows", "getAllCells")),
|
|
2809
|
+
_getAllCellsByColumnId: _(() => [s.getAllCells()], (a) => a.reduce((u, c) => (u[c.column.id] = c, u), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
2750
2810
|
};
|
|
2751
2811
|
for (let a = 0; a < e._features.length; a++) {
|
|
2752
2812
|
const u = e._features[a];
|
|
2753
2813
|
u == null || u.createRow == null || u.createRow(s, e);
|
|
2754
2814
|
}
|
|
2755
2815
|
return s;
|
|
2756
|
-
},
|
|
2816
|
+
}, Co = {
|
|
2757
2817
|
createColumn: (e, n) => {
|
|
2758
2818
|
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
2759
2819
|
if (e._getFacetedMinMaxValues)
|
|
@@ -2823,7 +2883,7 @@ const q = {
|
|
|
2823
2883
|
function G(e) {
|
|
2824
2884
|
return e == null || e === "";
|
|
2825
2885
|
}
|
|
2826
|
-
const
|
|
2886
|
+
const Lo = {
|
|
2827
2887
|
getDefaultColumnDef: () => ({
|
|
2828
2888
|
filterFn: "auto"
|
|
2829
2889
|
}),
|
|
@@ -2858,7 +2918,7 @@ const co = {
|
|
|
2858
2918
|
}, e.setFilterValue = (t) => {
|
|
2859
2919
|
n.setColumnFilters((o) => {
|
|
2860
2920
|
const r = e.getFilterFn(), l = o?.find((c) => c.id === e.id), i = X(t, l ? l.value : void 0);
|
|
2861
|
-
if (
|
|
2921
|
+
if (yt(r, i, e)) {
|
|
2862
2922
|
var s;
|
|
2863
2923
|
return (s = o?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
2864
2924
|
}
|
|
@@ -2885,7 +2945,7 @@ const co = {
|
|
|
2885
2945
|
const s = t.find((a) => a.id === i.id);
|
|
2886
2946
|
if (s) {
|
|
2887
2947
|
const a = s.getFilterFn();
|
|
2888
|
-
if (
|
|
2948
|
+
if (yt(a, i.value, s))
|
|
2889
2949
|
return !1;
|
|
2890
2950
|
}
|
|
2891
2951
|
return !0;
|
|
@@ -2898,57 +2958,57 @@ const co = {
|
|
|
2898
2958
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
2899
2959
|
}
|
|
2900
2960
|
};
|
|
2901
|
-
function
|
|
2961
|
+
function yt(e, n, t) {
|
|
2902
2962
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
2903
2963
|
}
|
|
2904
|
-
const
|
|
2964
|
+
const ho = (e, n, t) => t.reduce((o, r) => {
|
|
2905
2965
|
const l = r.getValue(e);
|
|
2906
2966
|
return o + (typeof l == "number" ? l : 0);
|
|
2907
|
-
}, 0),
|
|
2967
|
+
}, 0), vo = (e, n, t) => {
|
|
2908
2968
|
let o;
|
|
2909
2969
|
return t.forEach((r) => {
|
|
2910
2970
|
const l = r.getValue(e);
|
|
2911
2971
|
l != null && (o > l || o === void 0 && l >= l) && (o = l);
|
|
2912
2972
|
}), o;
|
|
2913
|
-
},
|
|
2973
|
+
}, yo = (e, n, t) => {
|
|
2914
2974
|
let o;
|
|
2915
2975
|
return t.forEach((r) => {
|
|
2916
2976
|
const l = r.getValue(e);
|
|
2917
2977
|
l != null && (o < l || o === void 0 && l >= l) && (o = l);
|
|
2918
2978
|
}), o;
|
|
2919
|
-
},
|
|
2979
|
+
}, _o = (e, n, t) => {
|
|
2920
2980
|
let o, r;
|
|
2921
2981
|
return t.forEach((l) => {
|
|
2922
2982
|
const i = l.getValue(e);
|
|
2923
2983
|
i != null && (o === void 0 ? i >= i && (o = r = i) : (o > i && (o = i), r < i && (r = i)));
|
|
2924
2984
|
}), [o, r];
|
|
2925
|
-
},
|
|
2985
|
+
}, wo = (e, n) => {
|
|
2926
2986
|
let t = 0, o = 0;
|
|
2927
2987
|
if (n.forEach((r) => {
|
|
2928
2988
|
let l = r.getValue(e);
|
|
2929
2989
|
l != null && (l = +l) >= l && (++t, o += l);
|
|
2930
2990
|
}), t) return o / t;
|
|
2931
|
-
},
|
|
2991
|
+
}, xo = (e, n) => {
|
|
2932
2992
|
if (!n.length)
|
|
2933
2993
|
return;
|
|
2934
2994
|
const t = n.map((l) => l.getValue(e));
|
|
2935
|
-
if (!
|
|
2995
|
+
if (!uo(t))
|
|
2936
2996
|
return;
|
|
2937
2997
|
if (t.length === 1)
|
|
2938
2998
|
return t[0];
|
|
2939
2999
|
const o = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
2940
3000
|
return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
2941
|
-
},
|
|
2942
|
-
sum:
|
|
2943
|
-
min:
|
|
2944
|
-
max:
|
|
2945
|
-
extent:
|
|
2946
|
-
mean:
|
|
2947
|
-
median:
|
|
2948
|
-
unique:
|
|
2949
|
-
uniqueCount:
|
|
2950
|
-
count:
|
|
2951
|
-
},
|
|
3001
|
+
}, So = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), Mo = (e, n) => new Set(n.map((t) => t.getValue(e))).size, Ro = (e, n) => n.length, Ve = {
|
|
3002
|
+
sum: ho,
|
|
3003
|
+
min: vo,
|
|
3004
|
+
max: yo,
|
|
3005
|
+
extent: _o,
|
|
3006
|
+
mean: wo,
|
|
3007
|
+
median: xo,
|
|
3008
|
+
unique: So,
|
|
3009
|
+
uniqueCount: Mo,
|
|
3010
|
+
count: Ro
|
|
3011
|
+
}, bo = {
|
|
2952
3012
|
getDefaultColumnDef: () => ({
|
|
2953
3013
|
aggregatedCell: (e) => {
|
|
2954
3014
|
var n, t;
|
|
@@ -3015,13 +3075,13 @@ const go = (e, n, t) => t.reduce((o, r) => {
|
|
|
3015
3075
|
};
|
|
3016
3076
|
}
|
|
3017
3077
|
};
|
|
3018
|
-
function
|
|
3078
|
+
function $o(e, n, t) {
|
|
3019
3079
|
if (!(n != null && n.length) || !t)
|
|
3020
3080
|
return e;
|
|
3021
3081
|
const o = e.filter((l) => !n.includes(l.id));
|
|
3022
3082
|
return t === "remove" ? o : [...n.map((l) => e.find((i) => i.id === l)).filter(Boolean), ...o];
|
|
3023
3083
|
}
|
|
3024
|
-
const
|
|
3084
|
+
const Io = {
|
|
3025
3085
|
getInitialState: (e) => ({
|
|
3026
3086
|
columnOrder: [],
|
|
3027
3087
|
...e
|
|
@@ -3030,7 +3090,7 @@ const xo = {
|
|
|
3030
3090
|
onColumnOrderChange: D("columnOrder", e)
|
|
3031
3091
|
}),
|
|
3032
3092
|
createColumn: (e, n) => {
|
|
3033
|
-
e.getIndex =
|
|
3093
|
+
e.getIndex = _((t) => [de(n, t)], (t) => t.findIndex((o) => o.id === e.id), w(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
3034
3094
|
var o;
|
|
3035
3095
|
return ((o = de(n, t)[0]) == null ? void 0 : o.id) === e.id;
|
|
3036
3096
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -3043,7 +3103,7 @@ const xo = {
|
|
|
3043
3103
|
e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
|
|
3044
3104
|
var t;
|
|
3045
3105
|
e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
3046
|
-
}, e._getOrderColumnsFn =
|
|
3106
|
+
}, e._getOrderColumnsFn = _(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, o) => (r) => {
|
|
3047
3107
|
let l = [];
|
|
3048
3108
|
if (!(n != null && n.length))
|
|
3049
3109
|
l = r;
|
|
@@ -3055,13 +3115,13 @@ const xo = {
|
|
|
3055
3115
|
}
|
|
3056
3116
|
l = [...l, ...s];
|
|
3057
3117
|
}
|
|
3058
|
-
return
|
|
3059
|
-
},
|
|
3118
|
+
return $o(l, t, o);
|
|
3119
|
+
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
3060
3120
|
}
|
|
3061
3121
|
}, Ee = () => ({
|
|
3062
3122
|
left: [],
|
|
3063
3123
|
right: []
|
|
3064
|
-
}),
|
|
3124
|
+
}), Fo = {
|
|
3065
3125
|
getInitialState: (e) => ({
|
|
3066
3126
|
columnPinning: Ee(),
|
|
3067
3127
|
...e
|
|
@@ -3109,16 +3169,16 @@ const xo = {
|
|
|
3109
3169
|
};
|
|
3110
3170
|
},
|
|
3111
3171
|
createRow: (e, n) => {
|
|
3112
|
-
e.getCenterVisibleCells =
|
|
3172
|
+
e.getCenterVisibleCells = _(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
|
|
3113
3173
|
const l = [...o ?? [], ...r ?? []];
|
|
3114
3174
|
return t.filter((i) => !l.includes(i.column.id));
|
|
3115
|
-
},
|
|
3175
|
+
}, w(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = _(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((l) => t.find((i) => i.column.id === l)).filter(Boolean).map((l) => ({
|
|
3116
3176
|
...l,
|
|
3117
3177
|
position: "left"
|
|
3118
|
-
})),
|
|
3178
|
+
})), w(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = _(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((l) => t.find((i) => i.column.id === l)).filter(Boolean).map((l) => ({
|
|
3119
3179
|
...l,
|
|
3120
3180
|
position: "right"
|
|
3121
|
-
})),
|
|
3181
|
+
})), w(n.options, "debugRows", "getRightVisibleCells"));
|
|
3122
3182
|
},
|
|
3123
3183
|
createTable: (e) => {
|
|
3124
3184
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -3132,31 +3192,31 @@ const xo = {
|
|
|
3132
3192
|
return !!((r = o.left) != null && r.length || (l = o.right) != null && l.length);
|
|
3133
3193
|
}
|
|
3134
3194
|
return !!((t = o[n]) != null && t.length);
|
|
3135
|
-
}, e.getLeftLeafColumns =
|
|
3195
|
+
}, e.getLeftLeafColumns = _(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), w(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = _(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), w(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = _(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
|
|
3136
3196
|
const r = [...t ?? [], ...o ?? []];
|
|
3137
3197
|
return n.filter((l) => !r.includes(l.id));
|
|
3138
|
-
},
|
|
3198
|
+
}, w(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
3139
3199
|
}
|
|
3140
3200
|
};
|
|
3141
|
-
function
|
|
3201
|
+
function Po(e) {
|
|
3142
3202
|
return e || (typeof document < "u" ? document : null);
|
|
3143
3203
|
}
|
|
3144
3204
|
const Ce = {
|
|
3145
3205
|
size: 150,
|
|
3146
3206
|
minSize: 20,
|
|
3147
3207
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
3148
|
-
},
|
|
3208
|
+
}, Ae = () => ({
|
|
3149
3209
|
startOffset: null,
|
|
3150
3210
|
startSize: null,
|
|
3151
3211
|
deltaOffset: null,
|
|
3152
3212
|
deltaPercentage: null,
|
|
3153
3213
|
isResizingColumn: !1,
|
|
3154
3214
|
columnSizingStart: []
|
|
3155
|
-
}),
|
|
3215
|
+
}), ko = {
|
|
3156
3216
|
getDefaultColumnDef: () => Ce,
|
|
3157
3217
|
getInitialState: (e) => ({
|
|
3158
3218
|
columnSizing: {},
|
|
3159
|
-
columnSizingInfo:
|
|
3219
|
+
columnSizingInfo: Ae(),
|
|
3160
3220
|
...e
|
|
3161
3221
|
}),
|
|
3162
3222
|
getDefaultOptions: (e) => ({
|
|
@@ -3170,7 +3230,7 @@ const Ce = {
|
|
|
3170
3230
|
var t, o, r;
|
|
3171
3231
|
const l = n.getState().columnSizing[e.id];
|
|
3172
3232
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ce.minSize, (o = l ?? e.columnDef.size) != null ? o : Ce.size), (r = e.columnDef.maxSize) != null ? r : Ce.maxSize);
|
|
3173
|
-
}, e.getStart =
|
|
3233
|
+
}, e.getStart = _((t) => [t, de(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0), w(n.options, "debugColumns", "getStart")), e.getAfter = _((t) => [t, de(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, l) => r + l.getSize(), 0), w(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
3174
3234
|
n.setColumnSizing((t) => {
|
|
3175
3235
|
let {
|
|
3176
3236
|
[e.id]: o,
|
|
@@ -3204,22 +3264,22 @@ const Ce = {
|
|
|
3204
3264
|
}, e.getResizeHandler = (t) => {
|
|
3205
3265
|
const o = n.getColumn(e.column.id), r = o?.getCanResize();
|
|
3206
3266
|
return (l) => {
|
|
3207
|
-
if (!o || !r || (l.persist == null || l.persist(),
|
|
3267
|
+
if (!o || !r || (l.persist == null || l.persist(), Oe(l) && l.touches && l.touches.length > 1))
|
|
3208
3268
|
return;
|
|
3209
|
-
const i = e.getSize(), s = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[o.id, o.getSize()]], a =
|
|
3210
|
-
typeof x == "number" && (n.setColumnSizingInfo((
|
|
3211
|
-
var M,
|
|
3212
|
-
const S = n.options.columnResizeDirection === "rtl" ? -1 : 1, V = (x - ((M =
|
|
3213
|
-
return
|
|
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) => {
|
|
3270
|
+
typeof x == "number" && (n.setColumnSizingInfo((b) => {
|
|
3271
|
+
var M, F;
|
|
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) => {
|
|
3214
3274
|
let [N, lt] = oe;
|
|
3215
3275
|
u[N] = Math.round(Math.max(lt + lt * B, 0) * 100) / 100;
|
|
3216
3276
|
}), {
|
|
3217
|
-
...
|
|
3277
|
+
...b,
|
|
3218
3278
|
deltaOffset: V,
|
|
3219
3279
|
deltaPercentage: B
|
|
3220
3280
|
};
|
|
3221
|
-
}), (n.options.columnResizeMode === "onChange" || y === "end") && n.setColumnSizing((
|
|
3222
|
-
...
|
|
3281
|
+
}), (n.options.columnResizeMode === "onChange" || y === "end") && n.setColumnSizing((b) => ({
|
|
3282
|
+
...b,
|
|
3223
3283
|
...u
|
|
3224
3284
|
})));
|
|
3225
3285
|
}, f = (y) => c("move", y), g = (y) => {
|
|
@@ -3232,7 +3292,7 @@ const Ce = {
|
|
|
3232
3292
|
deltaPercentage: null,
|
|
3233
3293
|
columnSizingStart: []
|
|
3234
3294
|
}));
|
|
3235
|
-
}, d =
|
|
3295
|
+
}, d = Po(t), p = {
|
|
3236
3296
|
moveHandler: (y) => f(y.clientX),
|
|
3237
3297
|
upHandler: (y) => {
|
|
3238
3298
|
d?.removeEventListener("mousemove", p.moveHandler), d?.removeEventListener("mouseup", p.upHandler), g(y.clientX);
|
|
@@ -3243,10 +3303,10 @@ const Ce = {
|
|
|
3243
3303
|
var x;
|
|
3244
3304
|
d?.removeEventListener("touchmove", m.moveHandler), d?.removeEventListener("touchend", m.upHandler), y.cancelable && (y.preventDefault(), y.stopPropagation()), g((x = y.touches[0]) == null ? void 0 : x.clientX);
|
|
3245
3305
|
}
|
|
3246
|
-
}, L =
|
|
3306
|
+
}, L = zo() ? {
|
|
3247
3307
|
passive: !1
|
|
3248
3308
|
} : !1;
|
|
3249
|
-
|
|
3309
|
+
Oe(l) ? (d?.addEventListener("touchmove", m.moveHandler, L), d?.addEventListener("touchend", m.upHandler, L)) : (d?.addEventListener("mousemove", p.moveHandler, L), d?.addEventListener("mouseup", p.upHandler, L)), n.setColumnSizingInfo((y) => ({
|
|
3250
3310
|
...y,
|
|
3251
3311
|
startOffset: a,
|
|
3252
3312
|
startSize: i,
|
|
@@ -3264,7 +3324,7 @@ const Ce = {
|
|
|
3264
3324
|
e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
3265
3325
|
}, e.resetHeaderSizeInfo = (n) => {
|
|
3266
3326
|
var t;
|
|
3267
|
-
e.setColumnSizingInfo(n ?
|
|
3327
|
+
e.setColumnSizingInfo(n ? Ae() : (t = e.initialState.columnSizingInfo) != null ? t : Ae());
|
|
3268
3328
|
}, e.getTotalSize = () => {
|
|
3269
3329
|
var n, t;
|
|
3270
3330
|
return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
|
|
@@ -3281,7 +3341,7 @@ const Ce = {
|
|
|
3281
3341
|
}
|
|
3282
3342
|
};
|
|
3283
3343
|
let Le = null;
|
|
3284
|
-
function
|
|
3344
|
+
function zo() {
|
|
3285
3345
|
if (typeof Le == "boolean") return Le;
|
|
3286
3346
|
let e = !1;
|
|
3287
3347
|
try {
|
|
@@ -3297,10 +3357,10 @@ function bo() {
|
|
|
3297
3357
|
}
|
|
3298
3358
|
return Le = e, Le;
|
|
3299
3359
|
}
|
|
3300
|
-
function
|
|
3360
|
+
function Oe(e) {
|
|
3301
3361
|
return e.type === "touchstart";
|
|
3302
3362
|
}
|
|
3303
|
-
const
|
|
3363
|
+
const Vo = {
|
|
3304
3364
|
getInitialState: (e) => ({
|
|
3305
3365
|
columnVisibility: {},
|
|
3306
3366
|
...e
|
|
@@ -3326,10 +3386,10 @@ const $o = {
|
|
|
3326
3386
|
};
|
|
3327
3387
|
},
|
|
3328
3388
|
createRow: (e, n) => {
|
|
3329
|
-
e._getAllVisibleCells =
|
|
3389
|
+
e._getAllVisibleCells = _(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), w(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = _(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], w(n.options, "debugRows", "getVisibleCells"));
|
|
3330
3390
|
},
|
|
3331
3391
|
createTable: (e) => {
|
|
3332
|
-
const n = (t, o) =>
|
|
3392
|
+
const n = (t, o) => _(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((l) => l.getIsVisible == null ? void 0 : l.getIsVisible()), w(e.options, "debugColumns", t));
|
|
3333
3393
|
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
3334
3394
|
var o;
|
|
3335
3395
|
e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
|
|
@@ -3348,14 +3408,14 @@ const $o = {
|
|
|
3348
3408
|
function de(e, n) {
|
|
3349
3409
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
3350
3410
|
}
|
|
3351
|
-
const
|
|
3411
|
+
const Eo = {
|
|
3352
3412
|
createTable: (e) => {
|
|
3353
3413
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
3354
3414
|
if (e._getGlobalFacetedMinMaxValues)
|
|
3355
3415
|
return e._getGlobalFacetedMinMaxValues();
|
|
3356
3416
|
};
|
|
3357
3417
|
}
|
|
3358
|
-
},
|
|
3418
|
+
}, Ao = {
|
|
3359
3419
|
getInitialState: (e) => ({
|
|
3360
3420
|
globalFilter: void 0,
|
|
3361
3421
|
...e
|
|
@@ -3388,7 +3448,7 @@ const Io = {
|
|
|
3388
3448
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
3389
3449
|
};
|
|
3390
3450
|
}
|
|
3391
|
-
},
|
|
3451
|
+
}, Oo = {
|
|
3392
3452
|
getInitialState: (e) => ({
|
|
3393
3453
|
expanded: {},
|
|
3394
3454
|
...e
|
|
@@ -3475,14 +3535,14 @@ const Io = {
|
|
|
3475
3535
|
};
|
|
3476
3536
|
};
|
|
3477
3537
|
}
|
|
3478
|
-
}, qe = 0, je = 10,
|
|
3538
|
+
}, qe = 0, je = 10, Ze = () => ({
|
|
3479
3539
|
pageIndex: qe,
|
|
3480
3540
|
pageSize: je
|
|
3481
|
-
}),
|
|
3541
|
+
}), Zo = {
|
|
3482
3542
|
getInitialState: (e) => ({
|
|
3483
3543
|
...e,
|
|
3484
3544
|
pagination: {
|
|
3485
|
-
...
|
|
3545
|
+
...Ze(),
|
|
3486
3546
|
...e?.pagination
|
|
3487
3547
|
}
|
|
3488
3548
|
}),
|
|
@@ -3510,7 +3570,7 @@ const Io = {
|
|
|
3510
3570
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
3511
3571
|
}, e.resetPagination = (o) => {
|
|
3512
3572
|
var r;
|
|
3513
|
-
e.setPagination(o ?
|
|
3573
|
+
e.setPagination(o ? Ze() : (r = e.initialState.pagination) != null ? r : Ze());
|
|
3514
3574
|
}, e.setPageIndex = (o) => {
|
|
3515
3575
|
e.setPagination((r) => {
|
|
3516
3576
|
let l = X(o, r.pageIndex);
|
|
@@ -3542,10 +3602,10 @@ const Io = {
|
|
|
3542
3602
|
...r,
|
|
3543
3603
|
pageCount: i
|
|
3544
3604
|
};
|
|
3545
|
-
}), e.getPageOptions =
|
|
3605
|
+
}), e.getPageOptions = _(() => [e.getPageCount()], (o) => {
|
|
3546
3606
|
let r = [];
|
|
3547
3607
|
return o && o > 0 && (r = [...new Array(o)].fill(null).map((l, i) => i)), r;
|
|
3548
|
-
},
|
|
3608
|
+
}, w(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
3549
3609
|
const {
|
|
3550
3610
|
pageIndex: o
|
|
3551
3611
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -3561,7 +3621,7 @@ const Io = {
|
|
|
3561
3621
|
}, De = () => ({
|
|
3562
3622
|
top: [],
|
|
3563
3623
|
bottom: []
|
|
3564
|
-
}),
|
|
3624
|
+
}), Do = {
|
|
3565
3625
|
getInitialState: (e) => ({
|
|
3566
3626
|
rowPinning: De(),
|
|
3567
3627
|
...e
|
|
@@ -3657,12 +3717,12 @@ const Io = {
|
|
|
3657
3717
|
...i,
|
|
3658
3718
|
position: o
|
|
3659
3719
|
}));
|
|
3660
|
-
}, e.getTopRows =
|
|
3720
|
+
}, e.getTopRows = _(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), w(e.options, "debugRows", "getTopRows")), e.getBottomRows = _(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), w(e.options, "debugRows", "getBottomRows")), e.getCenterRows = _(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
|
|
3661
3721
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
|
|
3662
3722
|
return n.filter((l) => !r.has(l.id));
|
|
3663
|
-
},
|
|
3723
|
+
}, w(e.options, "debugRows", "getCenterRows"));
|
|
3664
3724
|
}
|
|
3665
|
-
},
|
|
3725
|
+
}, To = {
|
|
3666
3726
|
getInitialState: (e) => ({
|
|
3667
3727
|
rowSelection: {},
|
|
3668
3728
|
...e
|
|
@@ -3699,19 +3759,19 @@ const Io = {
|
|
|
3699
3759
|
return e.getRowModel().rows.forEach((l) => {
|
|
3700
3760
|
Ke(r, l.id, o, !0, e);
|
|
3701
3761
|
}), r;
|
|
3702
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
3762
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = _(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Te(e, t) : {
|
|
3703
3763
|
rows: [],
|
|
3704
3764
|
flatRows: [],
|
|
3705
3765
|
rowsById: {}
|
|
3706
|
-
},
|
|
3766
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = _(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Te(e, t) : {
|
|
3707
3767
|
rows: [],
|
|
3708
3768
|
flatRows: [],
|
|
3709
3769
|
rowsById: {}
|
|
3710
|
-
},
|
|
3770
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = _(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Te(e, t) : {
|
|
3711
3771
|
rows: [],
|
|
3712
3772
|
flatRows: [],
|
|
3713
3773
|
rowsById: {}
|
|
3714
|
-
},
|
|
3774
|
+
}, w(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
3715
3775
|
const n = e.getFilteredRowModel().flatRows, {
|
|
3716
3776
|
rowSelection: t
|
|
3717
3777
|
} = e.getState();
|
|
@@ -3818,10 +3878,10 @@ function Xe(e, n, t) {
|
|
|
3818
3878
|
}
|
|
3819
3879
|
}), r ? "all" : l ? "some" : !1;
|
|
3820
3880
|
}
|
|
3821
|
-
const Qe = /([0-9]+)/gm,
|
|
3881
|
+
const Qe = /([0-9]+)/gm, Go = (e, n, t) => Xt(W(e.getValue(t)).toLowerCase(), W(n.getValue(t)).toLowerCase()), Ho = (e, n, t) => Xt(W(e.getValue(t)), W(n.getValue(t))), Bo = (e, n, t) => rt(W(e.getValue(t)).toLowerCase(), W(n.getValue(t)).toLowerCase()), No = (e, n, t) => rt(W(e.getValue(t)), W(n.getValue(t))), Uo = (e, n, t) => {
|
|
3822
3882
|
const o = e.getValue(t), r = n.getValue(t);
|
|
3823
3883
|
return o > r ? 1 : o < r ? -1 : 0;
|
|
3824
|
-
},
|
|
3884
|
+
}, qo = (e, n, t) => rt(e.getValue(t), n.getValue(t));
|
|
3825
3885
|
function rt(e, n) {
|
|
3826
3886
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
3827
3887
|
}
|
|
@@ -3849,13 +3909,13 @@ function Xt(e, n) {
|
|
|
3849
3909
|
return t.length - o.length;
|
|
3850
3910
|
}
|
|
3851
3911
|
const ue = {
|
|
3852
|
-
alphanumeric:
|
|
3853
|
-
alphanumericCaseSensitive:
|
|
3854
|
-
text:
|
|
3855
|
-
textCaseSensitive:
|
|
3856
|
-
datetime:
|
|
3857
|
-
basic:
|
|
3858
|
-
},
|
|
3912
|
+
alphanumeric: Go,
|
|
3913
|
+
alphanumericCaseSensitive: Ho,
|
|
3914
|
+
text: Bo,
|
|
3915
|
+
textCaseSensitive: No,
|
|
3916
|
+
datetime: Uo,
|
|
3917
|
+
basic: qo
|
|
3918
|
+
}, jo = {
|
|
3859
3919
|
getInitialState: (e) => ({
|
|
3860
3920
|
sorting: [],
|
|
3861
3921
|
...e
|
|
@@ -3944,30 +4004,30 @@ const ue = {
|
|
|
3944
4004
|
e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
|
|
3945
4005
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
3946
4006
|
}
|
|
3947
|
-
},
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
xo,
|
|
3951
|
-
So,
|
|
3952
|
-
uo,
|
|
3953
|
-
co,
|
|
4007
|
+
}, Ko = [
|
|
4008
|
+
po,
|
|
4009
|
+
Vo,
|
|
3954
4010
|
Io,
|
|
3955
|
-
//depends on ColumnFaceting
|
|
3956
4011
|
Fo,
|
|
4012
|
+
Co,
|
|
4013
|
+
Lo,
|
|
4014
|
+
Eo,
|
|
4015
|
+
//depends on ColumnFaceting
|
|
4016
|
+
Ao,
|
|
3957
4017
|
//depends on ColumnFiltering
|
|
3958
|
-
|
|
3959
|
-
|
|
4018
|
+
jo,
|
|
4019
|
+
bo,
|
|
3960
4020
|
//depends on RowSorting
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
4021
|
+
Oo,
|
|
4022
|
+
Zo,
|
|
4023
|
+
Do,
|
|
4024
|
+
To,
|
|
4025
|
+
ko
|
|
3966
4026
|
];
|
|
3967
|
-
function
|
|
4027
|
+
function Xo(e) {
|
|
3968
4028
|
var n, t;
|
|
3969
4029
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
3970
|
-
const o = [...
|
|
4030
|
+
const o = [...Ko, ...(n = e._features) != null ? n : []];
|
|
3971
4031
|
let r = {
|
|
3972
4032
|
_features: o
|
|
3973
4033
|
};
|
|
@@ -4027,7 +4087,7 @@ function Bo(e) {
|
|
|
4027
4087
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
|
|
4028
4088
|
return p;
|
|
4029
4089
|
},
|
|
4030
|
-
_getDefaultColumnDef:
|
|
4090
|
+
_getDefaultColumnDef: _(() => [r.options.defaultColumn], (g) => {
|
|
4031
4091
|
var d;
|
|
4032
4092
|
return g = (d = g) != null ? d : {}, {
|
|
4033
4093
|
header: (p) => {
|
|
@@ -4042,23 +4102,23 @@ function Bo(e) {
|
|
|
4042
4102
|
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
4043
4103
|
...g
|
|
4044
4104
|
};
|
|
4045
|
-
},
|
|
4105
|
+
}, w(e, "debugColumns", "_getDefaultColumnDef")),
|
|
4046
4106
|
_getColumnDefs: () => r.options.columns,
|
|
4047
|
-
getAllColumns:
|
|
4107
|
+
getAllColumns: _(() => [r._getColumnDefs()], (g) => {
|
|
4048
4108
|
const d = function(p, m, L) {
|
|
4049
4109
|
return L === void 0 && (L = 0), p.map((y) => {
|
|
4050
|
-
const x =
|
|
4051
|
-
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;
|
|
4052
4112
|
});
|
|
4053
4113
|
};
|
|
4054
4114
|
return d(g);
|
|
4055
|
-
},
|
|
4056
|
-
getAllFlatColumns:
|
|
4057
|
-
_getAllFlatColumnsById:
|
|
4058
|
-
getAllLeafColumns:
|
|
4115
|
+
}, w(e, "debugColumns", "getAllColumns")),
|
|
4116
|
+
getAllFlatColumns: _(() => [r.getAllColumns()], (g) => g.flatMap((d) => d.getFlatColumns()), w(e, "debugColumns", "getAllFlatColumns")),
|
|
4117
|
+
_getAllFlatColumnsById: _(() => [r.getAllFlatColumns()], (g) => g.reduce((d, p) => (d[p.id] = p, d), {}), w(e, "debugColumns", "getAllFlatColumnsById")),
|
|
4118
|
+
getAllLeafColumns: _(() => [r.getAllColumns(), r._getOrderColumnsFn()], (g, d) => {
|
|
4059
4119
|
let p = g.flatMap((m) => m.getLeafColumns());
|
|
4060
4120
|
return d(p);
|
|
4061
|
-
},
|
|
4121
|
+
}, w(e, "debugColumns", "getAllLeafColumns")),
|
|
4062
4122
|
getColumn: (g) => {
|
|
4063
4123
|
const d = r._getAllFlatColumnsById()[g];
|
|
4064
4124
|
return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${g}' does not exist.`), d;
|
|
@@ -4071,8 +4131,8 @@ function Bo(e) {
|
|
|
4071
4131
|
}
|
|
4072
4132
|
return r;
|
|
4073
4133
|
}
|
|
4074
|
-
function
|
|
4075
|
-
return (e) =>
|
|
4134
|
+
function Qo() {
|
|
4135
|
+
return (e) => _(() => [e.options.data], (n) => {
|
|
4076
4136
|
const t = {
|
|
4077
4137
|
rows: [],
|
|
4078
4138
|
flatRows: [],
|
|
@@ -4081,7 +4141,7 @@ function No() {
|
|
|
4081
4141
|
l === void 0 && (l = 0);
|
|
4082
4142
|
const s = [];
|
|
4083
4143
|
for (let u = 0; u < r.length; u++) {
|
|
4084
|
-
const c =
|
|
4144
|
+
const c = mo(e, e._getRowId(r[u], u, i), r[u], u, l, void 0, i?.id);
|
|
4085
4145
|
if (t.flatRows.push(c), t.rowsById[c.id] = c, s.push(c), e.options.getSubRows) {
|
|
4086
4146
|
var a;
|
|
4087
4147
|
c.originalSubRows = e.options.getSubRows(r[u], u), (a = c.originalSubRows) != null && a.length && (c.subRows = o(c.originalSubRows, l + 1, c));
|
|
@@ -4090,10 +4150,10 @@ function No() {
|
|
|
4090
4150
|
return s;
|
|
4091
4151
|
};
|
|
4092
4152
|
return t.rows = o(n), t;
|
|
4093
|
-
},
|
|
4153
|
+
}, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
4094
4154
|
}
|
|
4095
|
-
function
|
|
4096
|
-
return (e) =>
|
|
4155
|
+
function Wo() {
|
|
4156
|
+
return (e) => _(() => [e.getState().sorting, e.getPreSortedRowModel()], (n, t) => {
|
|
4097
4157
|
if (!t.rows.length || !(n != null && n.length))
|
|
4098
4158
|
return t;
|
|
4099
4159
|
const o = e.getState().sorting, r = [], l = o.filter((a) => {
|
|
@@ -4118,11 +4178,11 @@ function Uo() {
|
|
|
4118
4178
|
const p = l[d], m = i[p.id], L = m.sortUndefined, y = (g = p?.desc) != null ? g : !1;
|
|
4119
4179
|
let x = 0;
|
|
4120
4180
|
if (L) {
|
|
4121
|
-
const
|
|
4122
|
-
if (
|
|
4123
|
-
if (L === "first") return
|
|
4124
|
-
if (L === "last") return
|
|
4125
|
-
x =
|
|
4181
|
+
const b = c.getValue(p.id), M = f.getValue(p.id), F = b === void 0, S = M === void 0;
|
|
4182
|
+
if (F || S) {
|
|
4183
|
+
if (L === "first") return F ? -1 : 1;
|
|
4184
|
+
if (L === "last") return F ? 1 : -1;
|
|
4185
|
+
x = F && S ? 0 : F ? L : -L;
|
|
4126
4186
|
}
|
|
4127
4187
|
}
|
|
4128
4188
|
if (x === 0 && (x = m.sortingFn(c, f, p.id)), x !== 0)
|
|
@@ -4139,7 +4199,7 @@ function Uo() {
|
|
|
4139
4199
|
flatRows: r,
|
|
4140
4200
|
rowsById: t.rowsById
|
|
4141
4201
|
};
|
|
4142
|
-
},
|
|
4202
|
+
}, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
4143
4203
|
}
|
|
4144
4204
|
/**
|
|
4145
4205
|
* vue-table
|
|
@@ -4154,9 +4214,9 @@ function Uo() {
|
|
|
4154
4214
|
function he() {
|
|
4155
4215
|
return !0;
|
|
4156
4216
|
}
|
|
4157
|
-
const
|
|
4217
|
+
const Yo = Symbol("merge-proxy"), Jo = {
|
|
4158
4218
|
get(e, n, t) {
|
|
4159
|
-
return n ===
|
|
4219
|
+
return n === Yo ? t : e.get(n);
|
|
4160
4220
|
},
|
|
4161
4221
|
has(e, n) {
|
|
4162
4222
|
return e.has(n);
|
|
@@ -4201,7 +4261,7 @@ function ce() {
|
|
|
4201
4261
|
for (let r = 0; r < n.length; r++) o.push(...Object.keys(Ge(n[r])));
|
|
4202
4262
|
return [...Array.from(new Set(o))];
|
|
4203
4263
|
}
|
|
4204
|
-
},
|
|
4264
|
+
}, Jo);
|
|
4205
4265
|
}
|
|
4206
4266
|
const Qt = P({
|
|
4207
4267
|
props: ["render", "props"],
|
|
@@ -4212,7 +4272,7 @@ function _t(e) {
|
|
|
4212
4272
|
data: T(e.data)
|
|
4213
4273
|
});
|
|
4214
4274
|
}
|
|
4215
|
-
function
|
|
4275
|
+
function er(e) {
|
|
4216
4276
|
const n = o0(e.data), t = ce({
|
|
4217
4277
|
state: {},
|
|
4218
4278
|
// Dummy state
|
|
@@ -4226,7 +4286,7 @@ function Ko(e) {
|
|
|
4226
4286
|
...i
|
|
4227
4287
|
} : ce(l, i);
|
|
4228
4288
|
}
|
|
4229
|
-
}, n ? _t(e) : e), o =
|
|
4289
|
+
}, n ? _t(e) : e), o = Xo(t);
|
|
4230
4290
|
if (n) {
|
|
4231
4291
|
const l = wt(e.data);
|
|
4232
4292
|
We(l, () => {
|
|
@@ -4259,7 +4319,7 @@ function Ko(e) {
|
|
|
4259
4319
|
});
|
|
4260
4320
|
}), o;
|
|
4261
4321
|
}
|
|
4262
|
-
const
|
|
4322
|
+
const tr = ["aria-sort"], nr = /* @__PURE__ */ P({
|
|
4263
4323
|
__name: "CmcTableHeader",
|
|
4264
4324
|
props: {
|
|
4265
4325
|
headerGroups: {}
|
|
@@ -4278,16 +4338,16 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4278
4338
|
"aria-sort": n(l),
|
|
4279
4339
|
scope: "col"
|
|
4280
4340
|
}, [
|
|
4281
|
-
l.isPlaceholder ?
|
|
4341
|
+
l.isPlaceholder ? k("", !0) : (C(), K(T(Qt), {
|
|
4282
4342
|
key: 0,
|
|
4283
4343
|
props: l.getContext(),
|
|
4284
4344
|
render: l.column.columnDef.header
|
|
4285
4345
|
}, null, 8, ["props", "render"]))
|
|
4286
|
-
], 8,
|
|
4346
|
+
], 8, tr))), 128))
|
|
4287
4347
|
]))), 128))
|
|
4288
4348
|
]));
|
|
4289
4349
|
}
|
|
4290
|
-
}),
|
|
4350
|
+
}), or = /* @__PURE__ */ I(nr, [["__scopeId", "data-v-9eba66c8"]]), rr = { key: 0 }, lr = { key: 1 }, ir = ["colspan"], sr = /* @__PURE__ */ P({
|
|
4291
4351
|
__name: "CmcTableBody",
|
|
4292
4352
|
props: {
|
|
4293
4353
|
rows: {},
|
|
@@ -4295,33 +4355,33 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4295
4355
|
leafColCount: {}
|
|
4296
4356
|
},
|
|
4297
4357
|
setup(e) {
|
|
4298
|
-
return (n, t) => e.rows.length ? (C(), h("tbody",
|
|
4358
|
+
return (n, t) => e.rows.length ? (C(), h("tbody", rr, [
|
|
4299
4359
|
(C(!0), h(E, null, H(e.rows, (o) => (C(), h("tr", {
|
|
4300
4360
|
key: o.id
|
|
4301
4361
|
}, [
|
|
4302
4362
|
(C(!0), h(E, null, H(o.getVisibleCells(), (r) => (C(), h("td", {
|
|
4303
4363
|
key: r.id
|
|
4304
4364
|
}, [
|
|
4305
|
-
|
|
4365
|
+
Z(T(Qt), {
|
|
4306
4366
|
props: r.getContext(),
|
|
4307
4367
|
render: r.column.columnDef.cell
|
|
4308
4368
|
}, null, 8, ["props", "render"])
|
|
4309
4369
|
]))), 128))
|
|
4310
4370
|
]))), 128))
|
|
4311
|
-
])) : (C(), h("tbody",
|
|
4312
|
-
|
|
4313
|
-
|
|
4371
|
+
])) : (C(), h("tbody", lr, [
|
|
4372
|
+
R("tr", null, [
|
|
4373
|
+
R("td", {
|
|
4314
4374
|
colspan: e.leafColCount,
|
|
4315
4375
|
class: "td__empty"
|
|
4316
4376
|
}, [
|
|
4317
|
-
|
|
4318
|
-
Ye(
|
|
4377
|
+
O(n.$slots, "empty", {}, () => [
|
|
4378
|
+
Ye(z(e.emptyText), 1)
|
|
4319
4379
|
], !0)
|
|
4320
|
-
], 8,
|
|
4380
|
+
], 8, ir)
|
|
4321
4381
|
])
|
|
4322
4382
|
]));
|
|
4323
4383
|
}
|
|
4324
|
-
}),
|
|
4384
|
+
}), ar = /* @__PURE__ */ I(sr, [["__scopeId", "data-v-f962b8ac"]]), ur = /* @__PURE__ */ P({
|
|
4325
4385
|
__name: "CmcTable",
|
|
4326
4386
|
props: {
|
|
4327
4387
|
rows: { default: () => [] },
|
|
@@ -4356,29 +4416,29 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4356
4416
|
header: d.sortable ? t(d.label) : d.label,
|
|
4357
4417
|
...d.cellRenderer ? { cell: d.cellRenderer } : {}
|
|
4358
4418
|
})
|
|
4359
|
-
), l = (g) => g.map((d) => ({ ...d })), i =
|
|
4419
|
+
), l = (g) => g.map((d) => ({ ...d })), i = v(() => l(n.rows)), s = v(
|
|
4360
4420
|
() => r(n.columns)
|
|
4361
|
-
), a =
|
|
4421
|
+
), a = er({
|
|
4362
4422
|
get data() {
|
|
4363
4423
|
return i.value;
|
|
4364
4424
|
},
|
|
4365
4425
|
columns: s.value,
|
|
4366
|
-
getCoreRowModel:
|
|
4367
|
-
getSortedRowModel:
|
|
4368
|
-
}), u =
|
|
4426
|
+
getCoreRowModel: Qo(),
|
|
4427
|
+
getSortedRowModel: Wo()
|
|
4428
|
+
}), u = v(() => a.getHeaderGroups()), c = v(() => a.getRowModel().rows), f = v(() => a.getAllLeafColumns().length);
|
|
4369
4429
|
return (g, d) => (C(), h("table", null, [
|
|
4370
|
-
|
|
4371
|
-
|
|
4430
|
+
Z(or, { headerGroups: u.value }, null, 8, ["headerGroups"]),
|
|
4431
|
+
Z(ar, {
|
|
4372
4432
|
rows: c.value,
|
|
4373
4433
|
emptyText: e.emptyText,
|
|
4374
4434
|
leafColCount: f.value
|
|
4375
4435
|
}, null, 8, ["rows", "emptyText", "leafColCount"])
|
|
4376
4436
|
]));
|
|
4377
4437
|
}
|
|
4378
|
-
}),
|
|
4438
|
+
}), cr = /* @__PURE__ */ I(ur, [["__scopeId", "data-v-0de0582e"]]), dr = { class: "table__pagination" }, gr = 10, fr = /* @__PURE__ */ P({
|
|
4379
4439
|
__name: "CmcTablePagination",
|
|
4380
4440
|
props: {
|
|
4381
|
-
itemsPerPage: { default:
|
|
4441
|
+
itemsPerPage: { default: gr },
|
|
4382
4442
|
currentPage: { default: 1 },
|
|
4383
4443
|
rows: { default: () => [] },
|
|
4384
4444
|
columns: { default: () => [] },
|
|
@@ -4389,18 +4449,18 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4389
4449
|
setup(e, { emit: n }) {
|
|
4390
4450
|
const t = e, o = n, r = (i) => {
|
|
4391
4451
|
o("update:currentPage", i);
|
|
4392
|
-
}, l =
|
|
4452
|
+
}, l = v(() => {
|
|
4393
4453
|
const i = (t.currentPage - 1) * t.itemsPerPage;
|
|
4394
4454
|
return t.rows.slice(i, i + t.itemsPerPage);
|
|
4395
4455
|
});
|
|
4396
|
-
return (i, s) => (C(), h("div",
|
|
4397
|
-
|
|
4456
|
+
return (i, s) => (C(), h("div", dr, [
|
|
4457
|
+
Z(cr, {
|
|
4398
4458
|
columns: e.columns,
|
|
4399
4459
|
"empty-text": e.emptyText,
|
|
4400
4460
|
rows: l.value,
|
|
4401
4461
|
class: "table__pagination--table"
|
|
4402
4462
|
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
4403
|
-
|
|
4463
|
+
Z(B1, {
|
|
4404
4464
|
currentPage: e.currentPage,
|
|
4405
4465
|
itemsPerPage: e.itemsPerPage,
|
|
4406
4466
|
totalItems: e.totalItems ?? e.rows.length,
|
|
@@ -4408,39 +4468,39 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4408
4468
|
}, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
|
|
4409
4469
|
]));
|
|
4410
4470
|
}
|
|
4411
|
-
}),
|
|
4471
|
+
}), qr = /* @__PURE__ */ I(fr, [["__scopeId", "data-v-a2a0b05e"]]), jr = /* @__PURE__ */ P({
|
|
4412
4472
|
name: "CmcTitle",
|
|
4413
4473
|
__name: "CmcTitle",
|
|
4414
4474
|
setup(e) {
|
|
4415
4475
|
return (n, t) => (C(), h(E, null, [
|
|
4416
|
-
|
|
4476
|
+
Z(c1, {
|
|
4417
4477
|
level: T(Y).h1
|
|
4418
4478
|
}, {
|
|
4419
4479
|
default: Se(() => [
|
|
4420
|
-
|
|
4480
|
+
O(n.$slots, "default")
|
|
4421
4481
|
]),
|
|
4422
4482
|
_: 3
|
|
4423
4483
|
}, 8, ["level"]),
|
|
4424
|
-
t[0] || (t[0] =
|
|
4484
|
+
t[0] || (t[0] = R("hr", { class: "title__separator" }, null, -1))
|
|
4425
4485
|
], 64));
|
|
4426
4486
|
}
|
|
4427
|
-
}),
|
|
4487
|
+
}), pr = {
|
|
4428
4488
|
medium: "medium"
|
|
4429
|
-
},
|
|
4489
|
+
}, mr = ["id", "disabled", "required"], Cr = ["for"], Lr = /* @__PURE__ */ P({
|
|
4430
4490
|
name: "CmcToggle",
|
|
4431
4491
|
__name: "CmcToggle",
|
|
4432
4492
|
props: /* @__PURE__ */ Q({
|
|
4433
4493
|
id: {},
|
|
4434
4494
|
disabled: { type: Boolean, default: !1 },
|
|
4435
4495
|
required: { type: Boolean, default: !1 },
|
|
4436
|
-
size: { default:
|
|
4496
|
+
size: { default: pr.medium }
|
|
4437
4497
|
}, {
|
|
4438
4498
|
modelValue: { type: Boolean, default: !1 },
|
|
4439
4499
|
modelModifiers: {}
|
|
4440
4500
|
}),
|
|
4441
4501
|
emits: ["update:modelValue"],
|
|
4442
4502
|
setup(e) {
|
|
4443
|
-
const n = e, t = ne(e, "modelValue"), o =
|
|
4503
|
+
const n = e, t = ne(e, "modelValue"), o = v(() => n.id || `cmc-toggle-${Re()}`), r = v(() => ({
|
|
4444
4504
|
toggle: !0,
|
|
4445
4505
|
[`toggle--${n.size}`]: !0,
|
|
4446
4506
|
"toggle--disabled": n.disabled,
|
|
@@ -4448,33 +4508,33 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4448
4508
|
"toggle--checked": t.value
|
|
4449
4509
|
}));
|
|
4450
4510
|
return (l, i) => (C(), h("div", {
|
|
4451
|
-
class:
|
|
4511
|
+
class: $(r.value)
|
|
4452
4512
|
}, [
|
|
4453
|
-
Me(
|
|
4513
|
+
Me(R("input", {
|
|
4454
4514
|
id: o.value,
|
|
4455
4515
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
4456
4516
|
disabled: n.disabled,
|
|
4457
4517
|
required: n.required,
|
|
4458
4518
|
class: "toggle__input",
|
|
4459
4519
|
type: "checkbox"
|
|
4460
|
-
}, null, 8,
|
|
4520
|
+
}, null, 8, mr), [
|
|
4461
4521
|
[Mt, t.value]
|
|
4462
4522
|
]),
|
|
4463
|
-
|
|
4523
|
+
R("label", {
|
|
4464
4524
|
for: o.value,
|
|
4465
4525
|
class: "toggle__switch"
|
|
4466
4526
|
}, [...i[1] || (i[1] = [
|
|
4467
|
-
|
|
4468
|
-
])], 8,
|
|
4527
|
+
R("span", { class: "toggle__slider" }, null, -1)
|
|
4528
|
+
])], 8, Cr)
|
|
4469
4529
|
], 2));
|
|
4470
4530
|
}
|
|
4471
|
-
}),
|
|
4531
|
+
}), Kr = /* @__PURE__ */ I(Lr, [["__scopeId", "data-v-37a7880f"]]), hr = ["aria-current", "aria-label", "onClick", "onKeydown"], vr = {
|
|
4472
4532
|
key: 1,
|
|
4473
4533
|
class: "wizard__number"
|
|
4474
|
-
},
|
|
4534
|
+
}, yr = { class: "wizard__label" }, _r = ["tabindex", "onClick", "onKeydown"], wr = {
|
|
4475
4535
|
key: 0,
|
|
4476
4536
|
class: "wizard__separator"
|
|
4477
|
-
},
|
|
4537
|
+
}, xr = /* @__PURE__ */ P({
|
|
4478
4538
|
name: "CmcWizard",
|
|
4479
4539
|
__name: "CmcWizard",
|
|
4480
4540
|
props: {
|
|
@@ -4484,7 +4544,7 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4484
4544
|
},
|
|
4485
4545
|
emits: ["update:current"],
|
|
4486
4546
|
setup(e, { emit: n }) {
|
|
4487
|
-
const t = e, o =
|
|
4547
|
+
const t = e, o = v(() => t.steps.length - 1), r = n;
|
|
4488
4548
|
function l(f) {
|
|
4489
4549
|
t.clickable && r("update:current", f);
|
|
4490
4550
|
}
|
|
@@ -4498,12 +4558,12 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4498
4558
|
"wizard__label-text--upcoming": c(f)
|
|
4499
4559
|
}), a = (f) => f < t.current, u = (f) => f === t.current, c = (f) => !a(f) && !u(f);
|
|
4500
4560
|
return (f, g) => (C(), h("div", {
|
|
4501
|
-
class:
|
|
4561
|
+
class: $(["wizard", { "wizard--clickable": e.clickable }]),
|
|
4502
4562
|
role: "list"
|
|
4503
4563
|
}, [
|
|
4504
4564
|
(C(!0), h(E, null, H(e.steps, (d, p) => (C(), h(E, { key: p }, [
|
|
4505
|
-
|
|
4506
|
-
class:
|
|
4565
|
+
R("div", {
|
|
4566
|
+
class: $(["wizard__step", i(p)]),
|
|
4507
4567
|
"aria-current": u(p) ? "step" : void 0,
|
|
4508
4568
|
"aria-label": `step-${p + 1} : ${d.label}`,
|
|
4509
4569
|
onClick: (m) => l(p),
|
|
@@ -4516,30 +4576,30 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4516
4576
|
key: 0,
|
|
4517
4577
|
color: "secondary",
|
|
4518
4578
|
name: "check"
|
|
4519
|
-
})) : (C(), h("span",
|
|
4520
|
-
], 42,
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
class:
|
|
4579
|
+
})) : (C(), h("span", vr, z(p + 1), 1))
|
|
4580
|
+
], 42, hr),
|
|
4581
|
+
R("div", yr, [
|
|
4582
|
+
R("span", {
|
|
4583
|
+
class: $(["wizard__label-text", s(p)]),
|
|
4524
4584
|
tabindex: e.clickable ? 0 : -1,
|
|
4525
4585
|
onClick: (m) => l(p),
|
|
4526
4586
|
onKeydown: [
|
|
4527
4587
|
fe((m) => l(p), ["enter"]),
|
|
4528
4588
|
fe(we((m) => l(p), ["prevent"]), ["space"])
|
|
4529
4589
|
]
|
|
4530
|
-
},
|
|
4590
|
+
}, z(d.label), 43, _r)
|
|
4531
4591
|
]),
|
|
4532
|
-
o.value !== p ? (C(), h("hr",
|
|
4592
|
+
o.value !== p ? (C(), h("hr", wr)) : k("", !0)
|
|
4533
4593
|
], 64))), 128))
|
|
4534
4594
|
], 2));
|
|
4535
4595
|
}
|
|
4536
|
-
}),
|
|
4596
|
+
}), Xr = /* @__PURE__ */ I(xr, [["__scopeId", "data-v-f6bee53d"]]), Sr = {
|
|
4537
4597
|
key: 0,
|
|
4538
4598
|
class: "cmc-form__header"
|
|
4539
|
-
},
|
|
4599
|
+
}, Mr = { class: "fields" }, Rr = {
|
|
4540
4600
|
key: 0,
|
|
4541
4601
|
class: "actions"
|
|
4542
|
-
},
|
|
4602
|
+
}, br = /* @__PURE__ */ P({
|
|
4543
4603
|
name: "CmcForm",
|
|
4544
4604
|
__name: "CmcForm",
|
|
4545
4605
|
props: {
|
|
@@ -4547,17 +4607,17 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4547
4607
|
},
|
|
4548
4608
|
emits: ["submit"],
|
|
4549
4609
|
setup(e, { emit: n }) {
|
|
4550
|
-
const t = n, o = l0(), r =
|
|
4610
|
+
const t = n, o = l0(), r = v(() => ({
|
|
4551
4611
|
...o,
|
|
4552
4612
|
class: ["cmc-form", o.class]
|
|
4553
4613
|
})), l = () => {
|
|
4554
4614
|
t("submit");
|
|
4555
4615
|
};
|
|
4556
4616
|
return (i, s) => (C(), h("div", i0(s0(r.value)), [
|
|
4557
|
-
i.$slots.header ? (C(), h("div",
|
|
4558
|
-
|
|
4559
|
-
])) :
|
|
4560
|
-
|
|
4617
|
+
i.$slots.header ? (C(), h("div", Sr, [
|
|
4618
|
+
O(i.$slots, "header", {}, void 0, !0)
|
|
4619
|
+
])) : k("", !0),
|
|
4620
|
+
R("form", {
|
|
4561
4621
|
class: "cmc-form__content",
|
|
4562
4622
|
onSubmit: we(l, ["prevent"])
|
|
4563
4623
|
}, [
|
|
@@ -4568,76 +4628,77 @@ const Xo = ["aria-sort"], Qo = /* @__PURE__ */ P({
|
|
|
4568
4628
|
status: "error",
|
|
4569
4629
|
class: "alert-box"
|
|
4570
4630
|
}, null, 8, ["title", "message"]))), 128)),
|
|
4571
|
-
|
|
4572
|
-
|
|
4631
|
+
R("div", Mr, [
|
|
4632
|
+
O(i.$slots, "fields", {}, void 0, !0)
|
|
4573
4633
|
]),
|
|
4574
|
-
i.$slots.actions ? (C(), h("div",
|
|
4575
|
-
|
|
4576
|
-
])) :
|
|
4634
|
+
i.$slots.actions ? (C(), h("div", Rr, [
|
|
4635
|
+
O(i.$slots, "actions", {}, void 0, !0)
|
|
4636
|
+
])) : k("", !0)
|
|
4577
4637
|
], 32)
|
|
4578
4638
|
], 16));
|
|
4579
4639
|
}
|
|
4580
|
-
}),
|
|
4640
|
+
}), Qr = /* @__PURE__ */ I(br, [["__scopeId", "data-v-e52df1d1"]]), $r = { class: "cmc-form-field" }, Ir = { class: "cmc-form-field__control" }, Fr = {
|
|
4581
4641
|
key: 0,
|
|
4582
4642
|
class: "cmc-form-field__error-message"
|
|
4583
|
-
},
|
|
4643
|
+
}, Pr = /* @__PURE__ */ P({
|
|
4584
4644
|
name: "CmcFormField",
|
|
4585
4645
|
__name: "CmcFormField",
|
|
4586
4646
|
props: {
|
|
4587
4647
|
errorMessage: {}
|
|
4588
4648
|
},
|
|
4589
4649
|
setup(e) {
|
|
4590
|
-
return (n, t) => (C(), h("div",
|
|
4591
|
-
|
|
4592
|
-
|
|
4650
|
+
return (n, t) => (C(), h("div", $r, [
|
|
4651
|
+
R("div", Ir, [
|
|
4652
|
+
O(n.$slots, "default", {}, void 0, !0)
|
|
4593
4653
|
]),
|
|
4594
|
-
e.errorMessage ? (C(), h("div",
|
|
4595
|
-
|
|
4654
|
+
e.errorMessage ? (C(), h("div", Fr, [
|
|
4655
|
+
Z(j, {
|
|
4596
4656
|
name: "crossOutline",
|
|
4597
4657
|
color: "danger"
|
|
4598
4658
|
}),
|
|
4599
|
-
Ye(" " +
|
|
4600
|
-
])) :
|
|
4659
|
+
Ye(" " + z(e.errorMessage), 1)
|
|
4660
|
+
])) : k("", !0)
|
|
4601
4661
|
]));
|
|
4602
4662
|
}
|
|
4603
|
-
}),
|
|
4663
|
+
}), Wr = /* @__PURE__ */ I(Pr, [["__scopeId", "data-v-56ad66fb"]]);
|
|
4604
4664
|
export {
|
|
4605
4665
|
Sn as CmcAlert,
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4666
|
+
Er as CmcAutocomplete,
|
|
4667
|
+
Ar as CmcBadgePill,
|
|
4668
|
+
Vr as CmcBreadcrumb,
|
|
4609
4669
|
Ln as CmcButton,
|
|
4610
4670
|
qn as CmcButtonGroup,
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4671
|
+
Or as CmcCertificate,
|
|
4672
|
+
Zr as CmcCheckbox,
|
|
4673
|
+
Qr as CmcForm,
|
|
4674
|
+
Wr as CmcFormField,
|
|
4675
|
+
Gr as CmcGauge,
|
|
4615
4676
|
c1 as CmcHeading,
|
|
4616
4677
|
j as CmcIcon,
|
|
4617
4678
|
Dt as CmcInput,
|
|
4618
|
-
|
|
4619
|
-
|
|
4679
|
+
Dr as CmcLoading,
|
|
4680
|
+
Tr as CmcLogo,
|
|
4620
4681
|
B1 as CmcPagination,
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4682
|
+
Hr as CmcProgressBar,
|
|
4683
|
+
Br as CmcSearch,
|
|
4684
|
+
Nr as CmcSelect,
|
|
4685
|
+
Ur as CmcStatus,
|
|
4686
|
+
cr as CmcTable,
|
|
4687
|
+
qr as CmcTablePagination,
|
|
4688
|
+
jr as CmcTitle,
|
|
4689
|
+
Kr as CmcToggle,
|
|
4690
|
+
Xr as CmcWizard,
|
|
4630
4691
|
a0 as buttonKindOptions,
|
|
4631
4692
|
c0 as buttonSizeOptions,
|
|
4632
4693
|
u0 as buttonVariantOptions,
|
|
4633
4694
|
Y as headingLevelOptions,
|
|
4634
|
-
|
|
4695
|
+
zr as iconColorOptions,
|
|
4635
4696
|
it as iconNameOptions,
|
|
4636
|
-
|
|
4637
|
-
|
|
4697
|
+
Zt as inputSizeOptions,
|
|
4698
|
+
ze as inputTypeOptions,
|
|
4638
4699
|
le as inputVariantOptions,
|
|
4639
4700
|
U as primaryTypeOptions,
|
|
4640
4701
|
re as rankOptions,
|
|
4641
4702
|
pe as selectVariantOptions,
|
|
4642
|
-
|
|
4703
|
+
io as statusOptions
|
|
4643
4704
|
};
|