@choosemycompany/ui 0.15.1 → 0.15.3
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 +2 -0
- package/dist/index.js +288 -281
- package/dist/index.umd.js +6 -6
- package/package.json +21 -20
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as I, mergeModels as K, useModel as ne, computed as S, useSlots as Xt, createElementBlock as h, openBlock as L, normalizeClass as b, createCommentVNode as z, createElementVNode as F, toDisplayString as k, renderSlot as G, withDirectives as xe, unref as O, vModelDynamic as Qt, ref as W, shallowRef as yt, onMounted as vt, watch as wt, onUnmounted as xt, h as Q, nextTick as Wt, createBlock as J, Fragment as Z, renderList as U, useId as _e, createVNode as D, withCtx as Xe, vModelCheckbox as _t, createStaticVNode as Se, withModifiers as Oe, resolveDynamicComponent as Yt, vModelSelect as Jt, isRef as e0, watchEffect as t0, createTextVNode as n0, withKeys as ge } from "vue";
|
|
2
2
|
import './assets/index.css';const St = {
|
|
3
3
|
small: "small",
|
|
4
4
|
medium: "medium"
|
|
@@ -7,7 +7,7 @@ import './assets/index.css';const St = {
|
|
|
7
7
|
number: "number",
|
|
8
8
|
date: "date",
|
|
9
9
|
search: "search"
|
|
10
|
-
},
|
|
10
|
+
}, de = {
|
|
11
11
|
outlined: "outlined",
|
|
12
12
|
filled: "filled",
|
|
13
13
|
underline: "underline"
|
|
@@ -17,7 +17,7 @@ import './assets/index.css';const St = {
|
|
|
17
17
|
}, l0 = { class: "input__wrapper" }, i0 = ["id", "type", "placeholder", "required", "disabled", "aria-invalid", "min", "max"], s0 = {
|
|
18
18
|
key: 2,
|
|
19
19
|
class: "input__error-message"
|
|
20
|
-
}, a0 = /* @__PURE__ */
|
|
20
|
+
}, a0 = /* @__PURE__ */ I({
|
|
21
21
|
name: "CmcInput",
|
|
22
22
|
__name: "CmcInput",
|
|
23
23
|
props: /* @__PURE__ */ K({
|
|
@@ -28,7 +28,7 @@ import './assets/index.css';const St = {
|
|
|
28
28
|
disabled: { type: Boolean, default: !1 },
|
|
29
29
|
errorMessage: {},
|
|
30
30
|
type: { default: be.text },
|
|
31
|
-
variant: { default:
|
|
31
|
+
variant: { default: de.underline },
|
|
32
32
|
size: { default: St.medium },
|
|
33
33
|
description: {},
|
|
34
34
|
min: {},
|
|
@@ -45,14 +45,14 @@ import './assets/index.css';const St = {
|
|
|
45
45
|
"input--required": t.required,
|
|
46
46
|
"input--disabled": t.disabled,
|
|
47
47
|
"input--error": l.value,
|
|
48
|
-
"input--outlined": t.variant ===
|
|
49
|
-
"input--underline": t.variant ===
|
|
50
|
-
"input--filled": t.variant ===
|
|
48
|
+
"input--outlined": t.variant === de.outlined,
|
|
49
|
+
"input--underline": t.variant === de.underline,
|
|
50
|
+
"input--filled": t.variant === de.filled,
|
|
51
51
|
"input--with-right-slot": a.value,
|
|
52
52
|
"input--with-left-slot": u.value
|
|
53
53
|
}));
|
|
54
54
|
return (f, d) => (L(), h("div", {
|
|
55
|
-
class:
|
|
55
|
+
class: b(g.value)
|
|
56
56
|
}, [
|
|
57
57
|
t.label ? (L(), h("label", {
|
|
58
58
|
key: 0,
|
|
@@ -60,9 +60,9 @@ import './assets/index.css';const St = {
|
|
|
60
60
|
class: "input__label"
|
|
61
61
|
}, k(t.label), 9, o0)) : z("", !0),
|
|
62
62
|
t.description ? (L(), h("div", r0, k(t.description), 1)) : z("", !0),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
xe(
|
|
63
|
+
F("div", l0, [
|
|
64
|
+
G(f.$slots, "left", {}, void 0, !0),
|
|
65
|
+
xe(F("input", {
|
|
66
66
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => r.value = c),
|
|
67
67
|
id: t.id,
|
|
68
68
|
type: t.type,
|
|
@@ -70,13 +70,13 @@ import './assets/index.css';const St = {
|
|
|
70
70
|
required: t.required,
|
|
71
71
|
disabled: t.disabled,
|
|
72
72
|
"aria-invalid": i.value,
|
|
73
|
-
min: t.type ===
|
|
74
|
-
max: t.type ===
|
|
73
|
+
min: t.type === O(be).number ? t.min : void 0,
|
|
74
|
+
max: t.type === O(be).number ? t.max : void 0,
|
|
75
75
|
onBlur: d[1] || (d[1] = (c) => o("update:modelValue", r.value))
|
|
76
76
|
}, null, 40, i0), [
|
|
77
77
|
[Qt, r.value]
|
|
78
78
|
]),
|
|
79
|
-
|
|
79
|
+
G(f.$slots, "right", {}, void 0, !0)
|
|
80
80
|
]),
|
|
81
81
|
l.value ? (L(), h("div", s0, k(t.errorMessage), 1)) : z("", !0)
|
|
82
82
|
], 2));
|
|
@@ -102,7 +102,7 @@ import './assets/index.css';const St = {
|
|
|
102
102
|
prefix: a,
|
|
103
103
|
name: s
|
|
104
104
|
};
|
|
105
|
-
return n && !
|
|
105
|
+
return n && !he(u) ? null : u;
|
|
106
106
|
}
|
|
107
107
|
const l = r[0], i = l.split("-");
|
|
108
108
|
if (i.length > 1) {
|
|
@@ -111,7 +111,7 @@ import './assets/index.css';const St = {
|
|
|
111
111
|
prefix: i.shift(),
|
|
112
112
|
name: i.join("-")
|
|
113
113
|
};
|
|
114
|
-
return n && !
|
|
114
|
+
return n && !he(s) ? null : s;
|
|
115
115
|
}
|
|
116
116
|
if (t && o === "") {
|
|
117
117
|
const s = {
|
|
@@ -119,10 +119,10 @@ import './assets/index.css';const St = {
|
|
|
119
119
|
prefix: "",
|
|
120
120
|
name: l
|
|
121
121
|
};
|
|
122
|
-
return n && !
|
|
122
|
+
return n && !he(s, t) ? null : s;
|
|
123
123
|
}
|
|
124
124
|
return null;
|
|
125
|
-
},
|
|
125
|
+
}, he = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
126
126
|
// Check name: cannot be empty
|
|
127
127
|
((n && e.prefix === "" || e.prefix) && e.name) : !1, $t = Object.freeze(
|
|
128
128
|
{
|
|
@@ -200,17 +200,17 @@ const d0 = {
|
|
|
200
200
|
not_found: {},
|
|
201
201
|
...$t
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function Ie(e, n) {
|
|
204
204
|
for (const t in n)
|
|
205
205
|
if (t in e && typeof e[t] != typeof n[t])
|
|
206
206
|
return !1;
|
|
207
207
|
return !0;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function It(e) {
|
|
210
210
|
if (typeof e != "object" || e === null)
|
|
211
211
|
return null;
|
|
212
212
|
const n = e;
|
|
213
|
-
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
213
|
+
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !Ie(e, d0))
|
|
214
214
|
return null;
|
|
215
215
|
const t = n.icons;
|
|
216
216
|
for (const r in t) {
|
|
@@ -219,7 +219,7 @@ function Ft(e) {
|
|
|
219
219
|
// Name cannot be empty
|
|
220
220
|
!r || // Must have body
|
|
221
221
|
typeof l.body != "string" || // Check other props
|
|
222
|
-
!
|
|
222
|
+
!Ie(
|
|
223
223
|
l,
|
|
224
224
|
Te
|
|
225
225
|
)
|
|
@@ -233,7 +233,7 @@ function Ft(e) {
|
|
|
233
233
|
// Name cannot be empty
|
|
234
234
|
!r || // Parent must be set and point to existing icon
|
|
235
235
|
typeof i != "string" || !t[i] && !o[i] || // Check other props
|
|
236
|
-
!
|
|
236
|
+
!Ie(
|
|
237
237
|
l,
|
|
238
238
|
Te
|
|
239
239
|
)
|
|
@@ -255,8 +255,8 @@ function te(e, n) {
|
|
|
255
255
|
const t = rt[e] || (rt[e] = /* @__PURE__ */ Object.create(null));
|
|
256
256
|
return t[n] || (t[n] = f0(e, n));
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
return
|
|
258
|
+
function Ft(e, n) {
|
|
259
|
+
return It(n) ? bt(n, (t, o) => {
|
|
260
260
|
o ? e.icons[t] = o : e.missing.add(t);
|
|
261
261
|
}) : [];
|
|
262
262
|
}
|
|
@@ -268,19 +268,19 @@ function p0(e, n, t) {
|
|
|
268
268
|
}
|
|
269
269
|
return !1;
|
|
270
270
|
}
|
|
271
|
-
let
|
|
271
|
+
let ce = !1;
|
|
272
272
|
function Pt(e) {
|
|
273
|
-
return typeof e == "boolean" && (
|
|
273
|
+
return typeof e == "boolean" && (ce = e), ce;
|
|
274
274
|
}
|
|
275
275
|
function C0(e) {
|
|
276
|
-
const n = typeof e == "string" ? Me(e, !0,
|
|
276
|
+
const n = typeof e == "string" ? Me(e, !0, ce) : e;
|
|
277
277
|
if (n) {
|
|
278
278
|
const t = te(n.provider, n.prefix), o = n.name;
|
|
279
279
|
return t.icons[o] || (t.missing.has(o) ? null : void 0);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
function m0(e, n) {
|
|
283
|
-
const t = Me(e, !0,
|
|
283
|
+
const t = Me(e, !0, ce);
|
|
284
284
|
if (!t)
|
|
285
285
|
return !1;
|
|
286
286
|
const o = te(t.provider, t.prefix);
|
|
@@ -289,20 +289,20 @@ function m0(e, n) {
|
|
|
289
289
|
function L0(e, n) {
|
|
290
290
|
if (typeof e != "object")
|
|
291
291
|
return !1;
|
|
292
|
-
if (typeof n != "string" && (n = e.provider || ""),
|
|
292
|
+
if (typeof n != "string" && (n = e.provider || ""), ce && !n && !e.prefix) {
|
|
293
293
|
let r = !1;
|
|
294
|
-
return
|
|
294
|
+
return It(e) && (e.prefix = "", bt(e, (l, i) => {
|
|
295
295
|
m0(l, i) && (r = !0);
|
|
296
296
|
})), r;
|
|
297
297
|
}
|
|
298
298
|
const t = e.prefix;
|
|
299
|
-
if (!
|
|
299
|
+
if (!he({
|
|
300
300
|
prefix: t,
|
|
301
301
|
name: "a"
|
|
302
302
|
}))
|
|
303
303
|
return !1;
|
|
304
304
|
const o = te(n, t);
|
|
305
|
-
return !!
|
|
305
|
+
return !!Ft(o, e);
|
|
306
306
|
}
|
|
307
307
|
const zt = Object.freeze({
|
|
308
308
|
width: null,
|
|
@@ -442,7 +442,7 @@ function b0(e, n = R0) {
|
|
|
442
442
|
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
443
443
|
}
|
|
444
444
|
const Ge = /* @__PURE__ */ Object.create(null);
|
|
445
|
-
function
|
|
445
|
+
function I0(e, n) {
|
|
446
446
|
Ge[e] = n;
|
|
447
447
|
}
|
|
448
448
|
function He(e) {
|
|
@@ -476,13 +476,13 @@ function Qe(e) {
|
|
|
476
476
|
const We = /* @__PURE__ */ Object.create(null), oe = [
|
|
477
477
|
"https://api.simplesvg.com",
|
|
478
478
|
"https://api.unisvg.com"
|
|
479
|
-
],
|
|
479
|
+
], ye = [];
|
|
480
480
|
for (; oe.length > 0; )
|
|
481
|
-
oe.length === 1 || Math.random() > 0.5 ?
|
|
481
|
+
oe.length === 1 || Math.random() > 0.5 ? ye.push(oe.shift()) : ye.push(oe.pop());
|
|
482
482
|
We[""] = Qe({
|
|
483
|
-
resources: ["https://api.iconify.design"].concat(
|
|
483
|
+
resources: ["https://api.iconify.design"].concat(ye)
|
|
484
484
|
});
|
|
485
|
-
function
|
|
485
|
+
function F0(e, n) {
|
|
486
486
|
const t = Qe(n);
|
|
487
487
|
return t === null ? !1 : (We[e] = t, !0);
|
|
488
488
|
}
|
|
@@ -589,11 +589,11 @@ const Z0 = (e, n, t) => {
|
|
|
589
589
|
}).catch(() => {
|
|
590
590
|
t("next", r);
|
|
591
591
|
});
|
|
592
|
-
},
|
|
592
|
+
}, A0 = {
|
|
593
593
|
prepare: k0,
|
|
594
594
|
send: Z0
|
|
595
595
|
};
|
|
596
|
-
function
|
|
596
|
+
function D0(e) {
|
|
597
597
|
const n = {
|
|
598
598
|
loaded: [],
|
|
599
599
|
missing: [],
|
|
@@ -626,7 +626,7 @@ function kt(e, n) {
|
|
|
626
626
|
o && (t.loaderCallbacks = o.filter((r) => r.id !== n));
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function O0(e) {
|
|
630
630
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
631
631
|
e.pendingCallbacksFlag = !1;
|
|
632
632
|
const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
@@ -686,7 +686,7 @@ function H0(e, n = !0, t = !1) {
|
|
|
686
686
|
l && o.push(l);
|
|
687
687
|
}), o;
|
|
688
688
|
}
|
|
689
|
-
var
|
|
689
|
+
var N0 = {
|
|
690
690
|
resources: [],
|
|
691
691
|
index: 0,
|
|
692
692
|
timeout: 2e3,
|
|
@@ -694,7 +694,7 @@ var B0 = {
|
|
|
694
694
|
random: !1,
|
|
695
695
|
dataAfterTimeout: !1
|
|
696
696
|
};
|
|
697
|
-
function
|
|
697
|
+
function B0(e, n, t, o) {
|
|
698
698
|
const r = e.resources.length, l = e.random ? Math.floor(Math.random() * r) : e.index;
|
|
699
699
|
let i;
|
|
700
700
|
if (e.random) {
|
|
@@ -743,7 +743,7 @@ function N0(e, n, t, o) {
|
|
|
743
743
|
}
|
|
744
744
|
function R(M, E, q) {
|
|
745
745
|
const ee = E !== "success";
|
|
746
|
-
switch (d = d.filter((
|
|
746
|
+
switch (d = d.filter((H) => H !== M), a) {
|
|
747
747
|
case "pending":
|
|
748
748
|
break;
|
|
749
749
|
case "failed":
|
|
@@ -762,11 +762,11 @@ function N0(e, n, t, o) {
|
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
764
|
if (p(), _(), !e.random) {
|
|
765
|
-
const
|
|
766
|
-
|
|
765
|
+
const H = e.resources.indexOf(M.resource);
|
|
766
|
+
H !== -1 && H !== e.index && (e.index = H);
|
|
767
767
|
}
|
|
768
|
-
a = "completed", c.forEach((
|
|
769
|
-
|
|
768
|
+
a = "completed", c.forEach((H) => {
|
|
769
|
+
H(q);
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
function P() {
|
|
@@ -797,7 +797,7 @@ function N0(e, n, t, o) {
|
|
|
797
797
|
}
|
|
798
798
|
function Et(e) {
|
|
799
799
|
const n = {
|
|
800
|
-
...
|
|
800
|
+
...N0,
|
|
801
801
|
...e
|
|
802
802
|
};
|
|
803
803
|
let t = [];
|
|
@@ -805,7 +805,7 @@ function Et(e) {
|
|
|
805
805
|
t = t.filter((s) => s().status === "pending");
|
|
806
806
|
}
|
|
807
807
|
function r(s, a, u) {
|
|
808
|
-
const g =
|
|
808
|
+
const g = B0(
|
|
809
809
|
n,
|
|
810
810
|
s,
|
|
811
811
|
a,
|
|
@@ -830,9 +830,9 @@ function Et(e) {
|
|
|
830
830
|
}
|
|
831
831
|
function st() {
|
|
832
832
|
}
|
|
833
|
-
const
|
|
833
|
+
const Fe = /* @__PURE__ */ Object.create(null);
|
|
834
834
|
function U0(e) {
|
|
835
|
-
if (!
|
|
835
|
+
if (!Fe[e]) {
|
|
836
836
|
const n = Ye(e);
|
|
837
837
|
if (!n)
|
|
838
838
|
return;
|
|
@@ -840,9 +840,9 @@ function U0(e) {
|
|
|
840
840
|
config: n,
|
|
841
841
|
redundancy: t
|
|
842
842
|
};
|
|
843
|
-
|
|
843
|
+
Fe[e] = o;
|
|
844
844
|
}
|
|
845
|
-
return
|
|
845
|
+
return Fe[e];
|
|
846
846
|
}
|
|
847
847
|
function q0(e, n, t) {
|
|
848
848
|
let o, r;
|
|
@@ -867,7 +867,7 @@ function at() {
|
|
|
867
867
|
}
|
|
868
868
|
function j0(e) {
|
|
869
869
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
870
|
-
e.iconsLoaderFlag = !1,
|
|
870
|
+
e.iconsLoaderFlag = !1, O0(e);
|
|
871
871
|
}));
|
|
872
872
|
}
|
|
873
873
|
function K0(e) {
|
|
@@ -888,7 +888,7 @@ function re(e, n, t) {
|
|
|
888
888
|
}
|
|
889
889
|
if (t && typeof t == "object")
|
|
890
890
|
try {
|
|
891
|
-
if (!
|
|
891
|
+
if (!Ft(e, t).length) {
|
|
892
892
|
o();
|
|
893
893
|
return;
|
|
894
894
|
}
|
|
@@ -951,7 +951,7 @@ function X0(e, n) {
|
|
|
951
951
|
}));
|
|
952
952
|
}
|
|
953
953
|
const Q0 = (e, n) => {
|
|
954
|
-
const t = H0(e, !0, Pt()), o =
|
|
954
|
+
const t = H0(e, !0, Pt()), o = D0(t);
|
|
955
955
|
if (!o.pending.length) {
|
|
956
956
|
let a = !0;
|
|
957
957
|
return n && setTimeout(() => {
|
|
@@ -1056,7 +1056,7 @@ const ct = {
|
|
|
1056
1056
|
role: "img"
|
|
1057
1057
|
}, sn = {
|
|
1058
1058
|
display: "inline-block"
|
|
1059
|
-
},
|
|
1059
|
+
}, Ne = {
|
|
1060
1060
|
backgroundColor: "currentColor"
|
|
1061
1061
|
}, Zt = {
|
|
1062
1062
|
backgroundColor: "transparent"
|
|
@@ -1065,8 +1065,8 @@ const ct = {
|
|
|
1065
1065
|
Repeat: "no-repeat",
|
|
1066
1066
|
Size: "100% 100%"
|
|
1067
1067
|
}, dt = {
|
|
1068
|
-
webkitMask:
|
|
1069
|
-
mask:
|
|
1068
|
+
webkitMask: Ne,
|
|
1069
|
+
mask: Ne,
|
|
1070
1070
|
background: Zt
|
|
1071
1071
|
};
|
|
1072
1072
|
for (const e in dt) {
|
|
@@ -1074,10 +1074,10 @@ for (const e in dt) {
|
|
|
1074
1074
|
for (const t in gt)
|
|
1075
1075
|
n[e + t] = gt[t];
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1077
|
+
const ve = {};
|
|
1078
1078
|
["horizontal", "vertical"].forEach((e) => {
|
|
1079
1079
|
const n = e.slice(0, 1) + "Flip";
|
|
1080
|
-
|
|
1080
|
+
ve[e + "-flip"] = n, ve[e.slice(0, 1) + "-flip"] = n, ve[e + "Flip"] = n;
|
|
1081
1081
|
});
|
|
1082
1082
|
function ft(e) {
|
|
1083
1083
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
@@ -1119,7 +1119,7 @@ const pt = (e, n) => {
|
|
|
1119
1119
|
m !== !0 && m !== "true" && delete o["aria-hidden"];
|
|
1120
1120
|
break;
|
|
1121
1121
|
default: {
|
|
1122
|
-
const y =
|
|
1122
|
+
const y = ve[C];
|
|
1123
1123
|
y ? (m === !0 || m === "true" || m === 1) && (t[y] = !0) : ct[C] === void 0 && (o[C] = m);
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
@@ -1144,12 +1144,12 @@ const pt = (e, n) => {
|
|
|
1144
1144
|
width: ft(u.width),
|
|
1145
1145
|
height: ft(u.height),
|
|
1146
1146
|
...sn,
|
|
1147
|
-
...c ?
|
|
1147
|
+
...c ? Ne : Zt,
|
|
1148
1148
|
...s
|
|
1149
1149
|
}, Q("span", o);
|
|
1150
1150
|
};
|
|
1151
1151
|
Pt(!0);
|
|
1152
|
-
|
|
1152
|
+
I0("", A0);
|
|
1153
1153
|
if (typeof document < "u" && typeof window < "u") {
|
|
1154
1154
|
const e = window;
|
|
1155
1155
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1174,7 +1174,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1174
1174
|
const r = n[t];
|
|
1175
1175
|
if (typeof r != "object" || !r || r.resources === void 0)
|
|
1176
1176
|
continue;
|
|
1177
|
-
|
|
1177
|
+
F0(t, r) || console.error(o);
|
|
1178
1178
|
} catch {
|
|
1179
1179
|
console.error(o);
|
|
1180
1180
|
}
|
|
@@ -1184,7 +1184,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1184
1184
|
const an = {
|
|
1185
1185
|
...Re,
|
|
1186
1186
|
body: ""
|
|
1187
|
-
}, un =
|
|
1187
|
+
}, un = I((e, { emit: n }) => {
|
|
1188
1188
|
const t = W(null);
|
|
1189
1189
|
function o() {
|
|
1190
1190
|
t.value && (t.value.abort?.(), t.value = null);
|
|
@@ -1266,13 +1266,13 @@ const an = {
|
|
|
1266
1266
|
"title"
|
|
1267
1267
|
],
|
|
1268
1268
|
emits: ["load"]
|
|
1269
|
-
}),
|
|
1269
|
+
}), At = "loading", Ct = {
|
|
1270
1270
|
chevronDown: "mi:chevron-down",
|
|
1271
1271
|
delete: "qlementine-icons:trash-16",
|
|
1272
1272
|
check: "ic:baseline-check",
|
|
1273
1273
|
edit: "iconamoon:edit-light",
|
|
1274
1274
|
filter: "mdi:filter-outline",
|
|
1275
|
-
[
|
|
1275
|
+
[At]: "eos-icons:loading",
|
|
1276
1276
|
mail: "ci:mail-open",
|
|
1277
1277
|
people: "ic:outline-people",
|
|
1278
1278
|
plus: "ic:baseline-plus",
|
|
@@ -1291,7 +1291,7 @@ const an = {
|
|
|
1291
1291
|
primary: "primary",
|
|
1292
1292
|
secondary: "secondary",
|
|
1293
1293
|
light: "light"
|
|
1294
|
-
}, cn = /* @__PURE__ */
|
|
1294
|
+
}, cn = /* @__PURE__ */ I({
|
|
1295
1295
|
name: "CmcIcon",
|
|
1296
1296
|
__name: "CmcIcon",
|
|
1297
1297
|
props: {
|
|
@@ -1303,12 +1303,12 @@ const an = {
|
|
|
1303
1303
|
"cmc-icon": !0,
|
|
1304
1304
|
[`cmc-icon--${n.color}`]: n.color
|
|
1305
1305
|
})), o = S(() => Ct[n.name]);
|
|
1306
|
-
return (r, l) => (L(), J(
|
|
1307
|
-
class:
|
|
1306
|
+
return (r, l) => (L(), J(O(un), {
|
|
1307
|
+
class: b(t.value),
|
|
1308
1308
|
icon: o.value
|
|
1309
1309
|
}, null, 8, ["class", "icon"]));
|
|
1310
1310
|
}
|
|
1311
|
-
}), Y = /* @__PURE__ */ $(cn, [["__scopeId", "data-v-3d2e1b1f"]]), gn = { key: 1 }, dn = /* @__PURE__ */
|
|
1311
|
+
}), Y = /* @__PURE__ */ $(cn, [["__scopeId", "data-v-3d2e1b1f"]]), gn = { key: 1 }, dn = /* @__PURE__ */ I({
|
|
1312
1312
|
__name: "HighlightText",
|
|
1313
1313
|
props: {
|
|
1314
1314
|
text: {},
|
|
@@ -1341,7 +1341,7 @@ const an = {
|
|
|
1341
1341
|
return (o, r) => (L(!0), h(Z, null, U(t(n.text, n.searchTerm), (l, i) => (L(), h(Z, { key: i }, [
|
|
1342
1342
|
l.isHighlighted ? (L(), h("span", {
|
|
1343
1343
|
key: 0,
|
|
1344
|
-
class:
|
|
1344
|
+
class: b(["highlight__match", e.highlightClass])
|
|
1345
1345
|
}, k(l.text), 3)) : (L(), h("span", gn, k(l.text), 1))
|
|
1346
1346
|
], 64))), 128));
|
|
1347
1347
|
}
|
|
@@ -1352,7 +1352,7 @@ const an = {
|
|
|
1352
1352
|
}, Cn = { key: 1 }, mn = ["onClick"], Ln = {
|
|
1353
1353
|
key: 2,
|
|
1354
1354
|
class: "autocomplete__list--no-results"
|
|
1355
|
-
}, hn = /* @__PURE__ */
|
|
1355
|
+
}, hn = /* @__PURE__ */ I({
|
|
1356
1356
|
name: "CmcAutocomplete",
|
|
1357
1357
|
__name: "CmcAutocomplete",
|
|
1358
1358
|
props: /* @__PURE__ */ K({
|
|
@@ -1401,10 +1401,10 @@ const an = {
|
|
|
1401
1401
|
return (y, x) => (L(), h("div", {
|
|
1402
1402
|
ref_key: "autocompleteRef",
|
|
1403
1403
|
ref: s,
|
|
1404
|
-
class:
|
|
1404
|
+
class: b(C.value),
|
|
1405
1405
|
onKeydown: d
|
|
1406
1406
|
}, [
|
|
1407
|
-
|
|
1407
|
+
D(Mt, {
|
|
1408
1408
|
id: a.value,
|
|
1409
1409
|
modelValue: r.value,
|
|
1410
1410
|
"onUpdate:modelValue": [
|
|
@@ -1418,8 +1418,8 @@ const an = {
|
|
|
1418
1418
|
variant: "outlined"
|
|
1419
1419
|
}, {
|
|
1420
1420
|
right: Xe(() => [
|
|
1421
|
-
|
|
1422
|
-
class:
|
|
1421
|
+
D(Y, {
|
|
1422
|
+
class: b(m.value),
|
|
1423
1423
|
"aria-hidden": "true",
|
|
1424
1424
|
color: "light",
|
|
1425
1425
|
name: "chevronDown",
|
|
@@ -1441,7 +1441,7 @@ const an = {
|
|
|
1441
1441
|
key: R,
|
|
1442
1442
|
onClick: (P) => g(_)
|
|
1443
1443
|
}, [
|
|
1444
|
-
|
|
1444
|
+
D(fn, {
|
|
1445
1445
|
"search-term": r.value,
|
|
1446
1446
|
text: _
|
|
1447
1447
|
}, null, 8, ["search-term", "text"])
|
|
@@ -1459,7 +1459,7 @@ const an = {
|
|
|
1459
1459
|
}, wn = {
|
|
1460
1460
|
small: "small",
|
|
1461
1461
|
medium: "medium"
|
|
1462
|
-
}, xn = ["disabled"], _n = { class: "button__icon" }, Sn = /* @__PURE__ */
|
|
1462
|
+
}, xn = ["disabled"], _n = { class: "button__icon" }, Sn = /* @__PURE__ */ I({
|
|
1463
1463
|
name: "CmcButton",
|
|
1464
1464
|
__name: "CmcButton",
|
|
1465
1465
|
props: {
|
|
@@ -1478,31 +1478,31 @@ const an = {
|
|
|
1478
1478
|
[`button--${t.kind}`]: !0,
|
|
1479
1479
|
[`button--${t.size}`]: !0,
|
|
1480
1480
|
"button--disabled": t.disabled
|
|
1481
|
-
})), l = () => t.loading ?
|
|
1481
|
+
})), l = () => t.loading ? At : t.icon || "", i = () => {
|
|
1482
1482
|
t.disabled || o("click");
|
|
1483
1483
|
};
|
|
1484
1484
|
return (s, a) => (L(), h("button", {
|
|
1485
1485
|
type: "button",
|
|
1486
|
-
class:
|
|
1486
|
+
class: b(r.value),
|
|
1487
1487
|
onClick: i,
|
|
1488
1488
|
disabled: t.disabled
|
|
1489
1489
|
}, [
|
|
1490
|
-
|
|
1490
|
+
F("span", _n, [
|
|
1491
1491
|
t.icon || t.loading ? (L(), J(Y, {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
name: l()
|
|
1494
1494
|
}, null, 8, ["name"])) : z("", !0)
|
|
1495
1495
|
]),
|
|
1496
|
-
|
|
1496
|
+
G(s.$slots, "default", {}, void 0, !0)
|
|
1497
1497
|
], 10, xn));
|
|
1498
1498
|
}
|
|
1499
|
-
}), Jo = /* @__PURE__ */ $(Sn, [["__scopeId", "data-v-d1e66acd"]]),
|
|
1499
|
+
}), Jo = /* @__PURE__ */ $(Sn, [["__scopeId", "data-v-d1e66acd"]]), Dt = {
|
|
1500
1500
|
medium: "medium"
|
|
1501
|
-
}, Mn = /* @__PURE__ */
|
|
1501
|
+
}, Mn = /* @__PURE__ */ I({
|
|
1502
1502
|
name: "CmcButtonGroup",
|
|
1503
1503
|
__name: "CmcButtonGroup",
|
|
1504
1504
|
props: {
|
|
1505
|
-
gap: { default:
|
|
1505
|
+
gap: { default: Dt.medium }
|
|
1506
1506
|
},
|
|
1507
1507
|
setup(e) {
|
|
1508
1508
|
const n = e, t = S(() => ({
|
|
@@ -1510,9 +1510,9 @@ const an = {
|
|
|
1510
1510
|
[`button-group-gap--${n.gap}`]: !0
|
|
1511
1511
|
}));
|
|
1512
1512
|
return (o, r) => (L(), h("div", {
|
|
1513
|
-
class:
|
|
1513
|
+
class: b(t.value)
|
|
1514
1514
|
}, [
|
|
1515
|
-
|
|
1515
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
1516
1516
|
], 2));
|
|
1517
1517
|
}
|
|
1518
1518
|
}), Rn = /* @__PURE__ */ $(Mn, [["__scopeId", "data-v-e9a8f405"]]), $n = ` <svg
|
|
@@ -1797,7 +1797,7 @@ const an = {
|
|
|
1797
1797
|
</g>
|
|
1798
1798
|
</g>
|
|
1799
1799
|
</svg>
|
|
1800
|
-
`,
|
|
1800
|
+
`, N = {
|
|
1801
1801
|
employees: "employees",
|
|
1802
1802
|
trainees: "trainees",
|
|
1803
1803
|
candidates: "candidates",
|
|
@@ -1810,11 +1810,11 @@ const an = {
|
|
|
1810
1810
|
silver: "silver",
|
|
1811
1811
|
gold: "gold",
|
|
1812
1812
|
platinum: "platinum"
|
|
1813
|
-
}, bn = "#0302F5",
|
|
1813
|
+
}, bn = "#0302F5", In = "#E6007E", Fn = "#FC435C", Pn = "#19BAA3", zn = "#009FE3", Vn = "#739099", kn = "#82368C", En = ["innerHTML"], er = /* @__PURE__ */ I({
|
|
1814
1814
|
name: "CmcCertificate",
|
|
1815
1815
|
__name: "CmcCertificate",
|
|
1816
1816
|
props: {
|
|
1817
|
-
primaryType: { default:
|
|
1817
|
+
primaryType: { default: N.employees },
|
|
1818
1818
|
rank: { default: le.bronze },
|
|
1819
1819
|
period: { default: 2026 },
|
|
1820
1820
|
country: { default: "France" },
|
|
@@ -1844,16 +1844,16 @@ const an = {
|
|
|
1844
1844
|
className: "rank-platinum"
|
|
1845
1845
|
}
|
|
1846
1846
|
}, o = {
|
|
1847
|
-
[
|
|
1848
|
-
[
|
|
1849
|
-
[
|
|
1850
|
-
[
|
|
1851
|
-
[
|
|
1852
|
-
[
|
|
1853
|
-
[
|
|
1847
|
+
[N.employees]: bn,
|
|
1848
|
+
[N.candidates]: Pn,
|
|
1849
|
+
[N.trainees]: Fn,
|
|
1850
|
+
[N.clients]: Vn,
|
|
1851
|
+
[N.shareholders]: kn,
|
|
1852
|
+
[N.students]: In,
|
|
1853
|
+
[N.suppliers]: zn
|
|
1854
1854
|
}, r = S(() => o[n.primaryType]), l = S(() => {
|
|
1855
1855
|
let i = $n;
|
|
1856
|
-
if (n.primaryType ===
|
|
1856
|
+
if (n.primaryType === N.employees) {
|
|
1857
1857
|
i = i.replace(/separator-2"/g, 'separator-2" style="opacity:0"').replace(
|
|
1858
1858
|
/class="background-circle-rank" opacity="0"/g,
|
|
1859
1859
|
'class="background-circle-rank"'
|
|
@@ -1877,21 +1877,21 @@ const an = {
|
|
|
1877
1877
|
});
|
|
1878
1878
|
return (i, s) => (L(), h("div", { innerHTML: l.value }, null, 8, En));
|
|
1879
1879
|
}
|
|
1880
|
-
}), Zn = {},
|
|
1880
|
+
}), Zn = {}, An = {
|
|
1881
1881
|
width: "12",
|
|
1882
1882
|
height: "12",
|
|
1883
1883
|
viewBox: "0 0 12 10",
|
|
1884
1884
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1885
1885
|
};
|
|
1886
|
-
function
|
|
1887
|
-
return L(), h("svg",
|
|
1888
|
-
|
|
1886
|
+
function Dn(e, n) {
|
|
1887
|
+
return L(), h("svg", An, [...n[0] || (n[0] = [
|
|
1888
|
+
F("path", {
|
|
1889
1889
|
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",
|
|
1890
1890
|
fill: "var(--cmc-color-brand-blue-600)"
|
|
1891
1891
|
}, null, -1)
|
|
1892
1892
|
])]);
|
|
1893
1893
|
}
|
|
1894
|
-
const
|
|
1894
|
+
const On = /* @__PURE__ */ $(Zn, [["render", Dn]]), Tn = ["id", "disabled", "required"], Gn = /* @__PURE__ */ I({
|
|
1895
1895
|
name: "CmcCheckbox",
|
|
1896
1896
|
__name: "CmcCheckbox",
|
|
1897
1897
|
props: /* @__PURE__ */ K({
|
|
@@ -1910,9 +1910,9 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1910
1910
|
"checkbox--required": n.required
|
|
1911
1911
|
}));
|
|
1912
1912
|
return (l, i) => (L(), h("div", {
|
|
1913
|
-
class:
|
|
1913
|
+
class: b(r.value)
|
|
1914
1914
|
}, [
|
|
1915
|
-
xe(
|
|
1915
|
+
xe(F("input", {
|
|
1916
1916
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
1917
1917
|
id: o.value,
|
|
1918
1918
|
type: "checkbox",
|
|
@@ -1922,17 +1922,18 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1922
1922
|
}, null, 8, Tn), [
|
|
1923
1923
|
[_t, t.value]
|
|
1924
1924
|
]),
|
|
1925
|
-
t.value ? (L(), J(
|
|
1925
|
+
t.value ? (L(), J(On, {
|
|
1926
1926
|
key: 0,
|
|
1927
1927
|
class: "checkbox__icon"
|
|
1928
1928
|
})) : z("", !0)
|
|
1929
1929
|
], 2));
|
|
1930
1930
|
}
|
|
1931
|
-
}), tr = /* @__PURE__ */ $(Gn, [["__scopeId", "data-v-b4e66a74"]]),
|
|
1931
|
+
}), tr = /* @__PURE__ */ $(Gn, [["__scopeId", "data-v-b4e66a74"]]), se = {
|
|
1932
1932
|
h1: "h1",
|
|
1933
1933
|
h2: "h2",
|
|
1934
|
-
h3: "h3"
|
|
1935
|
-
|
|
1934
|
+
h3: "h3",
|
|
1935
|
+
h4: "h4"
|
|
1936
|
+
}, Hn = /* @__PURE__ */ I({
|
|
1936
1937
|
name: "CmcHeading",
|
|
1937
1938
|
__name: "CmcHeading",
|
|
1938
1939
|
props: {
|
|
@@ -1944,35 +1945,41 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1944
1945
|
[`heading-${n.level}`]: !0
|
|
1945
1946
|
}));
|
|
1946
1947
|
return (o, r) => (L(), h(Z, null, [
|
|
1947
|
-
|
|
1948
|
+
O(se).h1 === n.level ? (L(), h("h1", {
|
|
1948
1949
|
key: 0,
|
|
1949
|
-
class:
|
|
1950
|
+
class: b(t.value)
|
|
1950
1951
|
}, [
|
|
1951
|
-
|
|
1952
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
1952
1953
|
], 2)) : z("", !0),
|
|
1953
|
-
|
|
1954
|
+
O(se).h2 === n.level ? (L(), h("h2", {
|
|
1954
1955
|
key: 1,
|
|
1955
|
-
class:
|
|
1956
|
+
class: b(t.value)
|
|
1956
1957
|
}, [
|
|
1957
|
-
|
|
1958
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
1958
1959
|
], 2)) : z("", !0),
|
|
1959
|
-
|
|
1960
|
+
O(se).h3 === n.level ? (L(), h("h3", {
|
|
1960
1961
|
key: 2,
|
|
1961
|
-
class:
|
|
1962
|
+
class: b(t.value)
|
|
1963
|
+
}, [
|
|
1964
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
1965
|
+
], 2)) : z("", !0),
|
|
1966
|
+
O(se).h4 === n.level ? (L(), h("h4", {
|
|
1967
|
+
key: 3,
|
|
1968
|
+
class: b(t.value)
|
|
1962
1969
|
}, [
|
|
1963
|
-
|
|
1970
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
1964
1971
|
], 2)) : z("", !0)
|
|
1965
1972
|
], 64));
|
|
1966
1973
|
}
|
|
1967
|
-
}),
|
|
1974
|
+
}), Nn = /* @__PURE__ */ $(Hn, [["__scopeId", "data-v-13ea1463"]]), Bn = "https://cmc-ui-assets.s3.fr-par.scw.cloud/", Un = ["src"], qn = /* @__PURE__ */ I({
|
|
1968
1975
|
name: "CmcLoading",
|
|
1969
1976
|
__name: "CmcLoading",
|
|
1970
1977
|
setup(e) {
|
|
1971
|
-
const n = S(() =>
|
|
1978
|
+
const n = S(() => Bn + "img/loader-cmc.gif"), t = S(() => ({
|
|
1972
1979
|
loading: !0
|
|
1973
1980
|
}));
|
|
1974
1981
|
return (o, r) => (L(), h("img", {
|
|
1975
|
-
class:
|
|
1982
|
+
class: b(t.value),
|
|
1976
1983
|
alt: "CMC Logo Loader",
|
|
1977
1984
|
src: n.value
|
|
1978
1985
|
}, null, 10, Un));
|
|
@@ -2025,7 +2032,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2025
2032
|
fr_FR_white: e1,
|
|
2026
2033
|
en_US_color: r1,
|
|
2027
2034
|
en_US_white: a1
|
|
2028
|
-
}, f1 = ["href"], p1 = /* @__PURE__ */
|
|
2035
|
+
}, f1 = ["href"], p1 = /* @__PURE__ */ I({
|
|
2029
2036
|
name: "CmcLogo",
|
|
2030
2037
|
__name: "CmcLogo",
|
|
2031
2038
|
props: {
|
|
@@ -2044,8 +2051,8 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2044
2051
|
};
|
|
2045
2052
|
return (a, u) => (L(), h("a", {
|
|
2046
2053
|
href: t.href,
|
|
2047
|
-
class:
|
|
2048
|
-
onClick:
|
|
2054
|
+
class: b(r.value),
|
|
2055
|
+
onClick: Oe(s, ["prevent"])
|
|
2049
2056
|
}, [
|
|
2050
2057
|
(L(), J(Yt(i.value)))
|
|
2051
2058
|
], 10, f1));
|
|
@@ -2053,7 +2060,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2053
2060
|
}), or = /* @__PURE__ */ $(p1, [["__scopeId", "data-v-cc384ddd"]]), C1 = { class: "pagination" }, m1 = ["disabled"], L1 = ["onClick"], h1 = {
|
|
2054
2061
|
key: 1,
|
|
2055
2062
|
class: "pagination__ellipsis"
|
|
2056
|
-
}, y1 = ["disabled"], v1 = 2, w1 = /* @__PURE__ */
|
|
2063
|
+
}, y1 = ["disabled"], v1 = 2, w1 = /* @__PURE__ */ I({
|
|
2057
2064
|
name: "CmcPagination",
|
|
2058
2065
|
__name: "CmcPagination",
|
|
2059
2066
|
props: {
|
|
@@ -2090,8 +2097,8 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2090
2097
|
u.value && o("update:currentPage", t.currentPage + 1);
|
|
2091
2098
|
};
|
|
2092
2099
|
return (d, c) => (L(), h("nav", C1, [
|
|
2093
|
-
|
|
2094
|
-
class:
|
|
2100
|
+
F("button", {
|
|
2101
|
+
class: b(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
2095
2102
|
disabled: !a.value,
|
|
2096
2103
|
"aria-label": "Page précédente",
|
|
2097
2104
|
onClick: g
|
|
@@ -2099,19 +2106,19 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2099
2106
|
(L(!0), h(Z, null, U(s.value, (p, C) => (L(), h(Z, { key: C }, [
|
|
2100
2107
|
typeof p == "number" ? (L(), h("button", {
|
|
2101
2108
|
key: 0,
|
|
2102
|
-
class:
|
|
2109
|
+
class: b(["pagination__page-button", { "is-active": p === l() }]),
|
|
2103
2110
|
onClick: () => o("update:currentPage", p)
|
|
2104
2111
|
}, k(p), 11, L1)) : (L(), h("span", h1, "…"))
|
|
2105
2112
|
], 64))), 128)),
|
|
2106
|
-
|
|
2107
|
-
class:
|
|
2113
|
+
F("button", {
|
|
2114
|
+
class: b(["pagination__page-button", { "is-invisible": !u.value }]),
|
|
2108
2115
|
disabled: !u.value,
|
|
2109
2116
|
"aria-label": "Page suivante",
|
|
2110
2117
|
onClick: f
|
|
2111
2118
|
}, " › ", 10, y1)
|
|
2112
2119
|
]));
|
|
2113
2120
|
}
|
|
2114
|
-
}), x1 = /* @__PURE__ */ $(w1, [["__scopeId", "data-v-8be37a19"]]), _1 = /* @__PURE__ */
|
|
2121
|
+
}), x1 = /* @__PURE__ */ $(w1, [["__scopeId", "data-v-8be37a19"]]), _1 = /* @__PURE__ */ I({
|
|
2115
2122
|
name: "CmcSearch",
|
|
2116
2123
|
__name: "CmcSearch",
|
|
2117
2124
|
props: /* @__PURE__ */ K({
|
|
@@ -2130,10 +2137,10 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2130
2137
|
n.variant ? `search-bar--${n.variant}` : null
|
|
2131
2138
|
]), r = _e(), l = S(() => `cmc-search-${r}`);
|
|
2132
2139
|
return (i, s) => (L(), h("div", {
|
|
2133
|
-
class:
|
|
2140
|
+
class: b(o.value),
|
|
2134
2141
|
role: "search"
|
|
2135
2142
|
}, [
|
|
2136
|
-
|
|
2143
|
+
D(Mt, {
|
|
2137
2144
|
id: l.value,
|
|
2138
2145
|
modelValue: t.value,
|
|
2139
2146
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
|
|
@@ -2144,7 +2151,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2144
2151
|
type: "search"
|
|
2145
2152
|
}, {
|
|
2146
2153
|
left: Xe(() => [
|
|
2147
|
-
|
|
2154
|
+
D(Y, {
|
|
2148
2155
|
color: "light",
|
|
2149
2156
|
"aria-hidden": "true",
|
|
2150
2157
|
class: "search-bar__icon",
|
|
@@ -2155,7 +2162,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2155
2162
|
}, 8, ["id", "modelValue", "placeholder", "size", "variant"])
|
|
2156
2163
|
], 2));
|
|
2157
2164
|
}
|
|
2158
|
-
}), rr = /* @__PURE__ */ $(_1, [["__scopeId", "data-v-e1ba89eb"]]),
|
|
2165
|
+
}), rr = /* @__PURE__ */ $(_1, [["__scopeId", "data-v-e1ba89eb"]]), fe = {
|
|
2159
2166
|
outlined: "outlined",
|
|
2160
2167
|
filled: "filled",
|
|
2161
2168
|
underline: "underline"
|
|
@@ -2166,10 +2173,10 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2166
2173
|
key: 0,
|
|
2167
2174
|
value: "",
|
|
2168
2175
|
disabled: ""
|
|
2169
|
-
},
|
|
2176
|
+
}, I1 = ["value", "disabled"], F1 = {
|
|
2170
2177
|
key: 2,
|
|
2171
2178
|
class: "select__error-wrapper"
|
|
2172
|
-
}, P1 = /* @__PURE__ */
|
|
2179
|
+
}, P1 = /* @__PURE__ */ I({
|
|
2173
2180
|
name: "CmcSelect",
|
|
2174
2181
|
__name: "CmcSelect",
|
|
2175
2182
|
props: /* @__PURE__ */ K({
|
|
@@ -2180,7 +2187,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2180
2187
|
required: { type: Boolean, default: !1 },
|
|
2181
2188
|
disabled: { type: Boolean, default: !1 },
|
|
2182
2189
|
errorMessage: {},
|
|
2183
|
-
variant: { default:
|
|
2190
|
+
variant: { default: fe.outlined },
|
|
2184
2191
|
description: {}
|
|
2185
2192
|
}, {
|
|
2186
2193
|
modelValue: { default: "" },
|
|
@@ -2192,12 +2199,12 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2192
2199
|
select: !0,
|
|
2193
2200
|
"select--disabled": n.disabled,
|
|
2194
2201
|
"select--error": o.value,
|
|
2195
|
-
"select--outlined": n.variant ===
|
|
2196
|
-
"select--underline": n.variant ===
|
|
2197
|
-
"select--filled": n.variant ===
|
|
2202
|
+
"select--outlined": n.variant === fe.outlined,
|
|
2203
|
+
"select--underline": n.variant === fe.underline,
|
|
2204
|
+
"select--filled": n.variant === fe.filled
|
|
2198
2205
|
}));
|
|
2199
2206
|
return (l, i) => (L(), h("div", {
|
|
2200
|
-
class:
|
|
2207
|
+
class: b(r.value)
|
|
2201
2208
|
}, [
|
|
2202
2209
|
e.label ? (L(), h("label", {
|
|
2203
2210
|
key: 0,
|
|
@@ -2205,8 +2212,8 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2205
2212
|
class: "select__label"
|
|
2206
2213
|
}, k(e.label), 9, S1)) : z("", !0),
|
|
2207
2214
|
n.description ? (L(), h("div", M1, k(n.description), 1)) : z("", !0),
|
|
2208
|
-
|
|
2209
|
-
xe(
|
|
2215
|
+
F("div", R1, [
|
|
2216
|
+
xe(F("select", {
|
|
2210
2217
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2211
2218
|
id: e.id,
|
|
2212
2219
|
required: e.required,
|
|
@@ -2218,25 +2225,25 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2218
2225
|
key: s.value,
|
|
2219
2226
|
value: s.value,
|
|
2220
2227
|
disabled: s.disabled
|
|
2221
|
-
}, k(s.label), 9,
|
|
2228
|
+
}, k(s.label), 9, I1))), 128))
|
|
2222
2229
|
], 8, $1), [
|
|
2223
2230
|
[Jt, t.value]
|
|
2224
2231
|
]),
|
|
2225
|
-
|
|
2232
|
+
D(Y, {
|
|
2226
2233
|
"aria-hidden": "true",
|
|
2227
2234
|
class: "select__icon_chevron",
|
|
2228
2235
|
color: "light",
|
|
2229
2236
|
name: "chevronDown"
|
|
2230
2237
|
})
|
|
2231
2238
|
]),
|
|
2232
|
-
o.value ? (L(), h("div",
|
|
2239
|
+
o.value ? (L(), h("div", F1, k(e.errorMessage), 1)) : z("", !0)
|
|
2233
2240
|
], 2));
|
|
2234
2241
|
}
|
|
2235
2242
|
}), lr = /* @__PURE__ */ $(P1, [["__scopeId", "data-v-c434b244"]]), z1 = {
|
|
2236
2243
|
success: "success",
|
|
2237
2244
|
danger: "danger",
|
|
2238
2245
|
warning: "warning"
|
|
2239
|
-
}, V1 = { class: "status__label" }, k1 = /* @__PURE__ */
|
|
2246
|
+
}, V1 = { class: "status__label" }, k1 = /* @__PURE__ */ I({
|
|
2240
2247
|
name: "CmcStatus",
|
|
2241
2248
|
__name: "CmcStatus",
|
|
2242
2249
|
props: {
|
|
@@ -2249,10 +2256,10 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2249
2256
|
[`status--${n.status}`]: !0
|
|
2250
2257
|
}));
|
|
2251
2258
|
return (o, r) => (L(), h("div", {
|
|
2252
|
-
class:
|
|
2259
|
+
class: b(t.value)
|
|
2253
2260
|
}, [
|
|
2254
|
-
r[0] || (r[0] =
|
|
2255
|
-
|
|
2261
|
+
r[0] || (r[0] = F("span", { class: "status__dot" }, null, -1)),
|
|
2262
|
+
F("span", V1, k(n.text), 1)
|
|
2256
2263
|
], 2));
|
|
2257
2264
|
}
|
|
2258
2265
|
}), ir = /* @__PURE__ */ $(k1, [["__scopeId", "data-v-9ebfdda4"]]);
|
|
@@ -2269,7 +2276,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2269
2276
|
function j(e, n) {
|
|
2270
2277
|
return typeof e == "function" ? e(n) : e;
|
|
2271
2278
|
}
|
|
2272
|
-
function
|
|
2279
|
+
function A(e, n) {
|
|
2273
2280
|
return (t) => {
|
|
2274
2281
|
n.setState((o) => ({
|
|
2275
2282
|
...o,
|
|
@@ -2327,7 +2334,7 @@ function w(e, n, t, o) {
|
|
|
2327
2334
|
onChange: o
|
|
2328
2335
|
};
|
|
2329
2336
|
}
|
|
2330
|
-
function
|
|
2337
|
+
function A1(e, n, t, o) {
|
|
2331
2338
|
const r = () => {
|
|
2332
2339
|
var i;
|
|
2333
2340
|
return (i = l.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -2350,7 +2357,7 @@ function D1(e, n, t, o) {
|
|
|
2350
2357
|
i.createCell == null || i.createCell(l, t, n, e);
|
|
2351
2358
|
}, {}), l;
|
|
2352
2359
|
}
|
|
2353
|
-
function
|
|
2360
|
+
function D1(e, n, t, o) {
|
|
2354
2361
|
var r, l;
|
|
2355
2362
|
const s = {
|
|
2356
2363
|
...e._getDefaultColumnDef(),
|
|
@@ -2420,20 +2427,20 @@ function mt(e, n, t) {
|
|
|
2420
2427
|
i.createHeader == null || i.createHeader(l, e);
|
|
2421
2428
|
}), l;
|
|
2422
2429
|
}
|
|
2423
|
-
const
|
|
2430
|
+
const O1 = {
|
|
2424
2431
|
createTable: (e) => {
|
|
2425
2432
|
e.getHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
|
|
2426
2433
|
var l, i;
|
|
2427
2434
|
const s = (l = o?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? l : [], a = (i = r?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? i : [], u = t.filter((f) => !(o != null && o.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
2428
|
-
return
|
|
2429
|
-
}, w(e.options, V, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [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))),
|
|
2435
|
+
return pe(n, [...s, ...u, ...a], e);
|
|
2436
|
+
}, w(e.options, V, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [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))), pe(n, t, e, "center")), w(e.options, V, "getCenterHeaderGroups")), e.getLeftHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
2430
2437
|
var r;
|
|
2431
2438
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2432
|
-
return
|
|
2439
|
+
return pe(n, l, e, "left");
|
|
2433
2440
|
}, w(e.options, V, "getLeftHeaderGroups")), e.getRightHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
2434
2441
|
var r;
|
|
2435
2442
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2436
|
-
return
|
|
2443
|
+
return pe(n, l, e, "right");
|
|
2437
2444
|
}, w(e.options, V, "getRightHeaderGroups")), e.getFooterGroups = v(() => [e.getHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getFooterGroups")), e.getLeftFooterGroups = v(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getLeftFooterGroups")), e.getCenterFooterGroups = v(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getCenterFooterGroups")), e.getRightFooterGroups = v(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getRightFooterGroups")), e.getFlatHeaders = v(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getFlatHeaders")), e.getLeftFlatHeaders = v(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getLeftFlatHeaders")), e.getCenterFlatHeaders = v(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getCenterFlatHeaders")), e.getRightFlatHeaders = v(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getRightFlatHeaders")), e.getCenterLeafHeaders = v(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
2438
2445
|
var o;
|
|
2439
2446
|
return !((o = t.subHeaders) != null && o.length);
|
|
@@ -2449,7 +2456,7 @@ const A1 = {
|
|
|
2449
2456
|
}, w(e.options, V, "getLeafHeaders"));
|
|
2450
2457
|
}
|
|
2451
2458
|
};
|
|
2452
|
-
function
|
|
2459
|
+
function pe(e, n, t, o) {
|
|
2453
2460
|
var r, l;
|
|
2454
2461
|
let i = 0;
|
|
2455
2462
|
const s = function(d, c) {
|
|
@@ -2544,7 +2551,7 @@ const T1 = (e, n, t, o, r, l, i) => {
|
|
|
2544
2551
|
}
|
|
2545
2552
|
return a.reverse();
|
|
2546
2553
|
},
|
|
2547
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) =>
|
|
2554
|
+
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) => A1(e, s, u, u.id)), w(e.options, "debugRows", "getAllCells")),
|
|
2548
2555
|
_getAllCellsByColumnId: v(() => [s.getAllCells()], (a) => a.reduce((u, g) => (u[g.column.id] = g, u), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
2549
2556
|
};
|
|
2550
2557
|
for (let a = 0; a < e._features.length; a++) {
|
|
@@ -2559,41 +2566,41 @@ const T1 = (e, n, t, o, r, l, i) => {
|
|
|
2559
2566
|
return e._getFacetedMinMaxValues();
|
|
2560
2567
|
};
|
|
2561
2568
|
}
|
|
2562
|
-
},
|
|
2569
|
+
}, Ot = (e, n, t) => {
|
|
2563
2570
|
var o, r;
|
|
2564
2571
|
const l = t == null || (o = t.toString()) == null ? void 0 : o.toLowerCase();
|
|
2565
2572
|
return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(l));
|
|
2566
2573
|
};
|
|
2567
|
-
|
|
2574
|
+
Ot.autoRemove = (e) => T(e);
|
|
2568
2575
|
const Tt = (e, n, t) => {
|
|
2569
2576
|
var o;
|
|
2570
2577
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
|
|
2571
2578
|
};
|
|
2572
|
-
Tt.autoRemove = (e) =>
|
|
2579
|
+
Tt.autoRemove = (e) => T(e);
|
|
2573
2580
|
const Gt = (e, n, t) => {
|
|
2574
2581
|
var o;
|
|
2575
2582
|
return ((o = e.getValue(n)) == null || (o = o.toString()) == null ? void 0 : o.toLowerCase()) === t?.toLowerCase();
|
|
2576
2583
|
};
|
|
2577
|
-
Gt.autoRemove = (e) =>
|
|
2584
|
+
Gt.autoRemove = (e) => T(e);
|
|
2578
2585
|
const Ht = (e, n, t) => {
|
|
2579
2586
|
var o;
|
|
2580
2587
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
|
|
2581
2588
|
};
|
|
2582
|
-
Ht.autoRemove = (e) =>
|
|
2583
|
-
const
|
|
2589
|
+
Ht.autoRemove = (e) => T(e);
|
|
2590
|
+
const Nt = (e, n, t) => !t.some((o) => {
|
|
2584
2591
|
var r;
|
|
2585
2592
|
return !((r = e.getValue(n)) != null && r.includes(o));
|
|
2586
2593
|
});
|
|
2587
|
-
|
|
2588
|
-
const
|
|
2594
|
+
Nt.autoRemove = (e) => T(e) || !(e != null && e.length);
|
|
2595
|
+
const Bt = (e, n, t) => t.some((o) => {
|
|
2589
2596
|
var r;
|
|
2590
2597
|
return (r = e.getValue(n)) == null ? void 0 : r.includes(o);
|
|
2591
2598
|
});
|
|
2592
|
-
|
|
2599
|
+
Bt.autoRemove = (e) => T(e) || !(e != null && e.length);
|
|
2593
2600
|
const Ut = (e, n, t) => e.getValue(n) === t;
|
|
2594
|
-
Ut.autoRemove = (e) =>
|
|
2601
|
+
Ut.autoRemove = (e) => T(e);
|
|
2595
2602
|
const qt = (e, n, t) => e.getValue(n) == t;
|
|
2596
|
-
qt.autoRemove = (e) =>
|
|
2603
|
+
qt.autoRemove = (e) => T(e);
|
|
2597
2604
|
const Je = (e, n, t) => {
|
|
2598
2605
|
let [o, r] = t;
|
|
2599
2606
|
const l = e.getValue(n);
|
|
@@ -2607,19 +2614,19 @@ Je.resolveFilterValue = (e) => {
|
|
|
2607
2614
|
}
|
|
2608
2615
|
return [l, i];
|
|
2609
2616
|
};
|
|
2610
|
-
Je.autoRemove = (e) =>
|
|
2617
|
+
Je.autoRemove = (e) => T(e) || T(e[0]) && T(e[1]);
|
|
2611
2618
|
const B = {
|
|
2612
|
-
includesString:
|
|
2619
|
+
includesString: Ot,
|
|
2613
2620
|
includesStringSensitive: Tt,
|
|
2614
2621
|
equalsString: Gt,
|
|
2615
2622
|
arrIncludes: Ht,
|
|
2616
|
-
arrIncludesAll:
|
|
2617
|
-
arrIncludesSome:
|
|
2623
|
+
arrIncludesAll: Nt,
|
|
2624
|
+
arrIncludesSome: Bt,
|
|
2618
2625
|
equals: Ut,
|
|
2619
2626
|
weakEquals: qt,
|
|
2620
2627
|
inNumberRange: Je
|
|
2621
2628
|
};
|
|
2622
|
-
function
|
|
2629
|
+
function T(e) {
|
|
2623
2630
|
return e == null || e === "";
|
|
2624
2631
|
}
|
|
2625
2632
|
const H1 = {
|
|
@@ -2631,7 +2638,7 @@ const H1 = {
|
|
|
2631
2638
|
...e
|
|
2632
2639
|
}),
|
|
2633
2640
|
getDefaultOptions: (e) => ({
|
|
2634
|
-
onColumnFiltersChange:
|
|
2641
|
+
onColumnFiltersChange: A("columnFilters", e),
|
|
2635
2642
|
filterFromLeafRows: !1,
|
|
2636
2643
|
maxLeafRowFilterDepth: 100
|
|
2637
2644
|
}),
|
|
@@ -2700,10 +2707,10 @@ const H1 = {
|
|
|
2700
2707
|
function Lt(e, n, t) {
|
|
2701
2708
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
2702
2709
|
}
|
|
2703
|
-
const
|
|
2710
|
+
const N1 = (e, n, t) => t.reduce((o, r) => {
|
|
2704
2711
|
const l = r.getValue(e);
|
|
2705
2712
|
return o + (typeof l == "number" ? l : 0);
|
|
2706
|
-
}, 0),
|
|
2713
|
+
}, 0), B1 = (e, n, t) => {
|
|
2707
2714
|
let o;
|
|
2708
2715
|
return t.forEach((r) => {
|
|
2709
2716
|
const l = r.getValue(e);
|
|
@@ -2738,8 +2745,8 @@ const B1 = (e, n, t) => t.reduce((o, r) => {
|
|
|
2738
2745
|
const o = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
2739
2746
|
return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
2740
2747
|
}, X1 = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), Q1 = (e, n) => new Set(n.map((t) => t.getValue(e))).size, W1 = (e, n) => n.length, Pe = {
|
|
2741
|
-
sum:
|
|
2742
|
-
min:
|
|
2748
|
+
sum: N1,
|
|
2749
|
+
min: B1,
|
|
2743
2750
|
max: U1,
|
|
2744
2751
|
extent: q1,
|
|
2745
2752
|
mean: j1,
|
|
@@ -2760,7 +2767,7 @@ const B1 = (e, n, t) => t.reduce((o, r) => {
|
|
|
2760
2767
|
...e
|
|
2761
2768
|
}),
|
|
2762
2769
|
getDefaultOptions: (e) => ({
|
|
2763
|
-
onGroupingChange:
|
|
2770
|
+
onGroupingChange: A("grouping", e),
|
|
2764
2771
|
groupedColumnMode: "reorder"
|
|
2765
2772
|
}),
|
|
2766
2773
|
createColumn: (e, n) => {
|
|
@@ -2826,15 +2833,15 @@ const eo = {
|
|
|
2826
2833
|
...e
|
|
2827
2834
|
}),
|
|
2828
2835
|
getDefaultOptions: (e) => ({
|
|
2829
|
-
onColumnOrderChange:
|
|
2836
|
+
onColumnOrderChange: A("columnOrder", e)
|
|
2830
2837
|
}),
|
|
2831
2838
|
createColumn: (e, n) => {
|
|
2832
|
-
e.getIndex = v((t) => [
|
|
2839
|
+
e.getIndex = v((t) => [ue(n, t)], (t) => t.findIndex((o) => o.id === e.id), w(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
2833
2840
|
var o;
|
|
2834
|
-
return ((o =
|
|
2841
|
+
return ((o = ue(n, t)[0]) == null ? void 0 : o.id) === e.id;
|
|
2835
2842
|
}, e.getIsLastColumn = (t) => {
|
|
2836
2843
|
var o;
|
|
2837
|
-
const r =
|
|
2844
|
+
const r = ue(n, t);
|
|
2838
2845
|
return ((o = r[r.length - 1]) == null ? void 0 : o.id) === e.id;
|
|
2839
2846
|
};
|
|
2840
2847
|
},
|
|
@@ -2866,7 +2873,7 @@ const eo = {
|
|
|
2866
2873
|
...e
|
|
2867
2874
|
}),
|
|
2868
2875
|
getDefaultOptions: (e) => ({
|
|
2869
|
-
onColumnPinningChange:
|
|
2876
|
+
onColumnPinningChange: A("columnPinning", e)
|
|
2870
2877
|
}),
|
|
2871
2878
|
createColumn: (e, n) => {
|
|
2872
2879
|
e.pin = (t) => {
|
|
@@ -2940,7 +2947,7 @@ const eo = {
|
|
|
2940
2947
|
function no(e) {
|
|
2941
2948
|
return e || (typeof document < "u" ? document : null);
|
|
2942
2949
|
}
|
|
2943
|
-
const
|
|
2950
|
+
const Ce = {
|
|
2944
2951
|
size: 150,
|
|
2945
2952
|
minSize: 20,
|
|
2946
2953
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
@@ -2952,7 +2959,7 @@ const pe = {
|
|
|
2952
2959
|
isResizingColumn: !1,
|
|
2953
2960
|
columnSizingStart: []
|
|
2954
2961
|
}), oo = {
|
|
2955
|
-
getDefaultColumnDef: () =>
|
|
2962
|
+
getDefaultColumnDef: () => Ce,
|
|
2956
2963
|
getInitialState: (e) => ({
|
|
2957
2964
|
columnSizing: {},
|
|
2958
2965
|
columnSizingInfo: Ve(),
|
|
@@ -2961,15 +2968,15 @@ const pe = {
|
|
|
2961
2968
|
getDefaultOptions: (e) => ({
|
|
2962
2969
|
columnResizeMode: "onEnd",
|
|
2963
2970
|
columnResizeDirection: "ltr",
|
|
2964
|
-
onColumnSizingChange:
|
|
2965
|
-
onColumnSizingInfoChange:
|
|
2971
|
+
onColumnSizingChange: A("columnSizing", e),
|
|
2972
|
+
onColumnSizingInfoChange: A("columnSizingInfo", e)
|
|
2966
2973
|
}),
|
|
2967
2974
|
createColumn: (e, n) => {
|
|
2968
2975
|
e.getSize = () => {
|
|
2969
2976
|
var t, o, r;
|
|
2970
2977
|
const l = n.getState().columnSizing[e.id];
|
|
2971
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
2972
|
-
}, e.getStart = v((t) => [t,
|
|
2978
|
+
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);
|
|
2979
|
+
}, e.getStart = v((t) => [t, ue(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 = v((t) => [t, ue(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 = () => {
|
|
2973
2980
|
n.setColumnSizing((t) => {
|
|
2974
2981
|
let {
|
|
2975
2982
|
[e.id]: o,
|
|
@@ -3010,8 +3017,8 @@ const pe = {
|
|
|
3010
3017
|
var R, P;
|
|
3011
3018
|
const M = n.options.columnResizeDirection === "rtl" ? -1 : 1, E = (x - ((R = _?.startOffset) != null ? R : 0)) * M, q = Math.max(E / ((P = _?.startSize) != null ? P : 0), -0.999999);
|
|
3012
3019
|
return _.columnSizingStart.forEach((ee) => {
|
|
3013
|
-
let [
|
|
3014
|
-
u[
|
|
3020
|
+
let [H, nt] = ee;
|
|
3021
|
+
u[H] = Math.round(Math.max(nt + nt * q, 0) * 100) / 100;
|
|
3015
3022
|
}), {
|
|
3016
3023
|
..._,
|
|
3017
3024
|
deltaOffset: E,
|
|
@@ -3079,9 +3086,9 @@ const pe = {
|
|
|
3079
3086
|
};
|
|
3080
3087
|
}
|
|
3081
3088
|
};
|
|
3082
|
-
let
|
|
3089
|
+
let me = null;
|
|
3083
3090
|
function ro() {
|
|
3084
|
-
if (typeof
|
|
3091
|
+
if (typeof me == "boolean") return me;
|
|
3085
3092
|
let e = !1;
|
|
3086
3093
|
try {
|
|
3087
3094
|
const n = {
|
|
@@ -3094,7 +3101,7 @@ function ro() {
|
|
|
3094
3101
|
} catch {
|
|
3095
3102
|
e = !1;
|
|
3096
3103
|
}
|
|
3097
|
-
return
|
|
3104
|
+
return me = e, me;
|
|
3098
3105
|
}
|
|
3099
3106
|
function ke(e) {
|
|
3100
3107
|
return e.type === "touchstart";
|
|
@@ -3105,7 +3112,7 @@ const lo = {
|
|
|
3105
3112
|
...e
|
|
3106
3113
|
}),
|
|
3107
3114
|
getDefaultOptions: (e) => ({
|
|
3108
|
-
onColumnVisibilityChange:
|
|
3115
|
+
onColumnVisibilityChange: A("columnVisibility", e)
|
|
3109
3116
|
}),
|
|
3110
3117
|
createColumn: (e, n) => {
|
|
3111
3118
|
e.toggleVisibility = (t) => {
|
|
@@ -3144,7 +3151,7 @@ const lo = {
|
|
|
3144
3151
|
};
|
|
3145
3152
|
}
|
|
3146
3153
|
};
|
|
3147
|
-
function
|
|
3154
|
+
function ue(e, n) {
|
|
3148
3155
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
3149
3156
|
}
|
|
3150
3157
|
const io = {
|
|
@@ -3160,7 +3167,7 @@ const io = {
|
|
|
3160
3167
|
...e
|
|
3161
3168
|
}),
|
|
3162
3169
|
getDefaultOptions: (e) => ({
|
|
3163
|
-
onGlobalFilterChange:
|
|
3170
|
+
onGlobalFilterChange: A("globalFilter", e),
|
|
3164
3171
|
globalFilterFn: "auto",
|
|
3165
3172
|
getColumnCanGlobalFilter: (n) => {
|
|
3166
3173
|
var t;
|
|
@@ -3193,7 +3200,7 @@ const io = {
|
|
|
3193
3200
|
...e
|
|
3194
3201
|
}),
|
|
3195
3202
|
getDefaultOptions: (e) => ({
|
|
3196
|
-
onExpandedChange:
|
|
3203
|
+
onExpandedChange: A("expanded", e),
|
|
3197
3204
|
paginateExpandedRows: !0
|
|
3198
3205
|
}),
|
|
3199
3206
|
createTable: (e) => {
|
|
@@ -3274,8 +3281,8 @@ const io = {
|
|
|
3274
3281
|
};
|
|
3275
3282
|
};
|
|
3276
3283
|
}
|
|
3277
|
-
},
|
|
3278
|
-
pageIndex:
|
|
3284
|
+
}, Be = 0, Ue = 10, Ee = () => ({
|
|
3285
|
+
pageIndex: Be,
|
|
3279
3286
|
pageSize: Ue
|
|
3280
3287
|
}), uo = {
|
|
3281
3288
|
getInitialState: (e) => ({
|
|
@@ -3286,7 +3293,7 @@ const io = {
|
|
|
3286
3293
|
}
|
|
3287
3294
|
}),
|
|
3288
3295
|
getDefaultOptions: (e) => ({
|
|
3289
|
-
onPaginationChange:
|
|
3296
|
+
onPaginationChange: A("pagination", e)
|
|
3290
3297
|
}),
|
|
3291
3298
|
createTable: (e) => {
|
|
3292
3299
|
let n = !1, t = !1;
|
|
@@ -3321,7 +3328,7 @@ const io = {
|
|
|
3321
3328
|
});
|
|
3322
3329
|
}, e.resetPageIndex = (o) => {
|
|
3323
3330
|
var r, l;
|
|
3324
|
-
e.setPageIndex(o ?
|
|
3331
|
+
e.setPageIndex(o ? Be : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageIndex) != null ? r : Be);
|
|
3325
3332
|
}, e.resetPageSize = (o) => {
|
|
3326
3333
|
var r, l;
|
|
3327
3334
|
e.setPageSize(o ? Ue : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageSize) != null ? r : Ue);
|
|
@@ -3366,7 +3373,7 @@ const io = {
|
|
|
3366
3373
|
...e
|
|
3367
3374
|
}),
|
|
3368
3375
|
getDefaultOptions: (e) => ({
|
|
3369
|
-
onRowPinningChange:
|
|
3376
|
+
onRowPinningChange: A("rowPinning", e)
|
|
3370
3377
|
}),
|
|
3371
3378
|
createRow: (e, n) => {
|
|
3372
3379
|
e.pin = (t, o, r) => {
|
|
@@ -3467,7 +3474,7 @@ const io = {
|
|
|
3467
3474
|
...e
|
|
3468
3475
|
}),
|
|
3469
3476
|
getDefaultOptions: (e) => ({
|
|
3470
|
-
onRowSelectionChange:
|
|
3477
|
+
onRowSelectionChange: A("rowSelection", e),
|
|
3471
3478
|
enableRowSelection: !0,
|
|
3472
3479
|
enableMultiRowSelection: !0,
|
|
3473
3480
|
enableSubRowSelection: !0
|
|
@@ -3498,15 +3505,15 @@ const io = {
|
|
|
3498
3505
|
return e.getRowModel().rows.forEach((l) => {
|
|
3499
3506
|
qe(r, l.id, o, !0, e);
|
|
3500
3507
|
}), r;
|
|
3501
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ?
|
|
3508
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Ae(e, t) : {
|
|
3502
3509
|
rows: [],
|
|
3503
3510
|
flatRows: [],
|
|
3504
3511
|
rowsById: {}
|
|
3505
|
-
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ?
|
|
3512
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Ae(e, t) : {
|
|
3506
3513
|
rows: [],
|
|
3507
3514
|
flatRows: [],
|
|
3508
3515
|
rowsById: {}
|
|
3509
|
-
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ?
|
|
3516
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Ae(e, t) : {
|
|
3510
3517
|
rows: [],
|
|
3511
3518
|
flatRows: [],
|
|
3512
3519
|
rowsById: {}
|
|
@@ -3584,7 +3591,7 @@ const io = {
|
|
|
3584
3591
|
const i = r.getRow(n, !0);
|
|
3585
3592
|
t ? (i.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), i.getCanSelect() && (e[n] = !0)) : delete e[n], o && (l = i.subRows) != null && l.length && i.getCanSelectSubRows() && i.subRows.forEach((s) => qe(e, s.id, t, o, r));
|
|
3586
3593
|
};
|
|
3587
|
-
function
|
|
3594
|
+
function Ae(e, n) {
|
|
3588
3595
|
const t = e.getState().rowSelection, o = [], r = {}, l = function(i, s) {
|
|
3589
3596
|
return i.map((a) => {
|
|
3590
3597
|
var u;
|
|
@@ -3664,7 +3671,7 @@ const ie = {
|
|
|
3664
3671
|
sortUndefined: 1
|
|
3665
3672
|
}),
|
|
3666
3673
|
getDefaultOptions: (e) => ({
|
|
3667
|
-
onSortingChange:
|
|
3674
|
+
onSortingChange: A("sorting", e),
|
|
3668
3675
|
isMultiSortEvent: (n) => n.shiftKey
|
|
3669
3676
|
}),
|
|
3670
3677
|
createColumn: (e, n) => {
|
|
@@ -3744,7 +3751,7 @@ const ie = {
|
|
|
3744
3751
|
}, 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());
|
|
3745
3752
|
}
|
|
3746
3753
|
}, vo = [
|
|
3747
|
-
|
|
3754
|
+
O1,
|
|
3748
3755
|
lo,
|
|
3749
3756
|
eo,
|
|
3750
3757
|
to,
|
|
@@ -3846,7 +3853,7 @@ function wo(e) {
|
|
|
3846
3853
|
getAllColumns: v(() => [r._getColumnDefs()], (d) => {
|
|
3847
3854
|
const c = function(p, C, m) {
|
|
3848
3855
|
return m === void 0 && (m = 0), p.map((y) => {
|
|
3849
|
-
const x =
|
|
3856
|
+
const x = D1(r, y, m, C), _ = y;
|
|
3850
3857
|
return x.columns = _.columns ? c(_.columns, x, m + 1) : [], x;
|
|
3851
3858
|
});
|
|
3852
3859
|
};
|
|
@@ -3950,7 +3957,7 @@ function _o() {
|
|
|
3950
3957
|
*
|
|
3951
3958
|
* @license MIT
|
|
3952
3959
|
*/
|
|
3953
|
-
function
|
|
3960
|
+
function Le() {
|
|
3954
3961
|
return !0;
|
|
3955
3962
|
}
|
|
3956
3963
|
const So = Symbol("merge-proxy"), Mo = {
|
|
@@ -3960,8 +3967,8 @@ const So = Symbol("merge-proxy"), Mo = {
|
|
|
3960
3967
|
has(e, n) {
|
|
3961
3968
|
return e.has(n);
|
|
3962
3969
|
},
|
|
3963
|
-
set:
|
|
3964
|
-
deleteProperty:
|
|
3970
|
+
set: Le,
|
|
3971
|
+
deleteProperty: Le,
|
|
3965
3972
|
getOwnPropertyDescriptor(e, n) {
|
|
3966
3973
|
return {
|
|
3967
3974
|
configurable: !0,
|
|
@@ -3969,50 +3976,50 @@ const So = Symbol("merge-proxy"), Mo = {
|
|
|
3969
3976
|
get() {
|
|
3970
3977
|
return e.get(n);
|
|
3971
3978
|
},
|
|
3972
|
-
set:
|
|
3973
|
-
deleteProperty:
|
|
3979
|
+
set: Le,
|
|
3980
|
+
deleteProperty: Le
|
|
3974
3981
|
};
|
|
3975
3982
|
},
|
|
3976
3983
|
ownKeys(e) {
|
|
3977
3984
|
return e.keys();
|
|
3978
3985
|
}
|
|
3979
3986
|
};
|
|
3980
|
-
function
|
|
3987
|
+
function De(e) {
|
|
3981
3988
|
return "value" in e ? e.value : e;
|
|
3982
3989
|
}
|
|
3983
|
-
function
|
|
3990
|
+
function ae() {
|
|
3984
3991
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
3985
3992
|
n[t] = arguments[t];
|
|
3986
3993
|
return new Proxy({
|
|
3987
3994
|
get(o) {
|
|
3988
3995
|
for (let r = n.length - 1; r >= 0; r--) {
|
|
3989
|
-
const l =
|
|
3996
|
+
const l = De(n[r])[o];
|
|
3990
3997
|
if (l !== void 0) return l;
|
|
3991
3998
|
}
|
|
3992
3999
|
},
|
|
3993
4000
|
has(o) {
|
|
3994
4001
|
for (let r = n.length - 1; r >= 0; r--)
|
|
3995
|
-
if (o in
|
|
4002
|
+
if (o in De(n[r])) return !0;
|
|
3996
4003
|
return !1;
|
|
3997
4004
|
},
|
|
3998
4005
|
keys() {
|
|
3999
4006
|
const o = [];
|
|
4000
|
-
for (let r = 0; r < n.length; r++) o.push(...Object.keys(
|
|
4007
|
+
for (let r = 0; r < n.length; r++) o.push(...Object.keys(De(n[r])));
|
|
4001
4008
|
return [...Array.from(new Set(o))];
|
|
4002
4009
|
}
|
|
4003
4010
|
}, Mo);
|
|
4004
4011
|
}
|
|
4005
|
-
const Kt =
|
|
4012
|
+
const Kt = I({
|
|
4006
4013
|
props: ["render", "props"],
|
|
4007
4014
|
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? Q(e.render, e.props) : e.render
|
|
4008
4015
|
});
|
|
4009
4016
|
function ht(e) {
|
|
4010
|
-
return
|
|
4011
|
-
data:
|
|
4017
|
+
return ae(e, {
|
|
4018
|
+
data: O(e.data)
|
|
4012
4019
|
});
|
|
4013
4020
|
}
|
|
4014
4021
|
function Ro(e) {
|
|
4015
|
-
const n = e0(e.data), t =
|
|
4022
|
+
const n = e0(e.data), t = ae({
|
|
4016
4023
|
state: {},
|
|
4017
4024
|
// Dummy state
|
|
4018
4025
|
onStateChange: () => {
|
|
@@ -4023,7 +4030,7 @@ function Ro(e) {
|
|
|
4023
4030
|
return n ? {
|
|
4024
4031
|
...l,
|
|
4025
4032
|
...i
|
|
4026
|
-
} :
|
|
4033
|
+
} : ae(l, i);
|
|
4027
4034
|
}
|
|
4028
4035
|
}, n ? ht(e) : e), o = wo(t);
|
|
4029
4036
|
if (n) {
|
|
@@ -4044,11 +4051,11 @@ function Ro(e) {
|
|
|
4044
4051
|
const s = new Proxy({}, {
|
|
4045
4052
|
get: (a, u) => r.value[u]
|
|
4046
4053
|
});
|
|
4047
|
-
return
|
|
4054
|
+
return ae(l, n ? ht(e) : e, {
|
|
4048
4055
|
// merge the initialState and `options.state`
|
|
4049
4056
|
// create a new proxy on each `setOptions` call
|
|
4050
4057
|
// and get the value from state on each property access
|
|
4051
|
-
state:
|
|
4058
|
+
state: ae(s, (i = e.state) != null ? i : {}),
|
|
4052
4059
|
// Similarly, we'll maintain both our internal state and any user-provided
|
|
4053
4060
|
// state.
|
|
4054
4061
|
onStateChange: (a) => {
|
|
@@ -4058,7 +4065,7 @@ function Ro(e) {
|
|
|
4058
4065
|
});
|
|
4059
4066
|
}), o;
|
|
4060
4067
|
}
|
|
4061
|
-
const $o = ["aria-sort"], bo = /* @__PURE__ */
|
|
4068
|
+
const $o = ["aria-sort"], bo = /* @__PURE__ */ I({
|
|
4062
4069
|
__name: "CmcTableHeader",
|
|
4063
4070
|
props: {
|
|
4064
4071
|
headerGroups: {}
|
|
@@ -4077,7 +4084,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4077
4084
|
"aria-sort": n(l),
|
|
4078
4085
|
scope: "col"
|
|
4079
4086
|
}, [
|
|
4080
|
-
l.isPlaceholder ? z("", !0) : (L(), J(
|
|
4087
|
+
l.isPlaceholder ? z("", !0) : (L(), J(O(Kt), {
|
|
4081
4088
|
key: 0,
|
|
4082
4089
|
props: l.getContext(),
|
|
4083
4090
|
render: l.column.columnDef.header
|
|
@@ -4086,7 +4093,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4086
4093
|
]))), 128))
|
|
4087
4094
|
]));
|
|
4088
4095
|
}
|
|
4089
|
-
}),
|
|
4096
|
+
}), Io = /* @__PURE__ */ $(bo, [["__scopeId", "data-v-9eba66c8"]]), Fo = { key: 0 }, Po = { key: 1 }, zo = ["colspan"], Vo = /* @__PURE__ */ I({
|
|
4090
4097
|
__name: "CmcTableBody",
|
|
4091
4098
|
props: {
|
|
4092
4099
|
rows: {},
|
|
@@ -4094,33 +4101,33 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4094
4101
|
leafColCount: {}
|
|
4095
4102
|
},
|
|
4096
4103
|
setup(e) {
|
|
4097
|
-
return (n, t) => e.rows.length ? (L(), h("tbody",
|
|
4104
|
+
return (n, t) => e.rows.length ? (L(), h("tbody", Fo, [
|
|
4098
4105
|
(L(!0), h(Z, null, U(e.rows, (o) => (L(), h("tr", {
|
|
4099
4106
|
key: o.id
|
|
4100
4107
|
}, [
|
|
4101
4108
|
(L(!0), h(Z, null, U(o.getVisibleCells(), (r) => (L(), h("td", {
|
|
4102
4109
|
key: r.id
|
|
4103
4110
|
}, [
|
|
4104
|
-
O(
|
|
4111
|
+
D(O(Kt), {
|
|
4105
4112
|
props: r.getContext(),
|
|
4106
4113
|
render: r.column.columnDef.cell
|
|
4107
4114
|
}, null, 8, ["props", "render"])
|
|
4108
4115
|
]))), 128))
|
|
4109
4116
|
]))), 128))
|
|
4110
4117
|
])) : (L(), h("tbody", Po, [
|
|
4111
|
-
|
|
4112
|
-
|
|
4118
|
+
F("tr", null, [
|
|
4119
|
+
F("td", {
|
|
4113
4120
|
colspan: e.leafColCount,
|
|
4114
4121
|
class: "td__empty"
|
|
4115
4122
|
}, [
|
|
4116
|
-
|
|
4123
|
+
G(n.$slots, "empty", {}, () => [
|
|
4117
4124
|
n0(k(e.emptyText), 1)
|
|
4118
4125
|
], !0)
|
|
4119
4126
|
], 8, zo)
|
|
4120
4127
|
])
|
|
4121
4128
|
]));
|
|
4122
4129
|
}
|
|
4123
|
-
}), ko = /* @__PURE__ */ $(Vo, [["__scopeId", "data-v-f962b8ac"]]), Eo = /* @__PURE__ */
|
|
4130
|
+
}), ko = /* @__PURE__ */ $(Vo, [["__scopeId", "data-v-f962b8ac"]]), Eo = /* @__PURE__ */ I({
|
|
4124
4131
|
__name: "CmcTable",
|
|
4125
4132
|
props: {
|
|
4126
4133
|
rows: { default: () => [] },
|
|
@@ -4147,7 +4154,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4147
4154
|
const m = p().map((y) => o(y));
|
|
4148
4155
|
return Q(
|
|
4149
4156
|
Rn,
|
|
4150
|
-
{ gap:
|
|
4157
|
+
{ gap: Dt.medium },
|
|
4151
4158
|
() => m
|
|
4152
4159
|
);
|
|
4153
4160
|
}), {
|
|
@@ -4166,18 +4173,18 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4166
4173
|
getSortedRowModel: _o()
|
|
4167
4174
|
}), u = S(() => a.getHeaderGroups()), g = S(() => a.getRowModel().rows), f = S(() => a.getAllLeafColumns().length);
|
|
4168
4175
|
return (d, c) => (L(), h("table", null, [
|
|
4169
|
-
|
|
4170
|
-
|
|
4176
|
+
D(Io, { headerGroups: u.value }, null, 8, ["headerGroups"]),
|
|
4177
|
+
D(ko, {
|
|
4171
4178
|
rows: g.value,
|
|
4172
4179
|
emptyText: e.emptyText,
|
|
4173
4180
|
leafColCount: f.value
|
|
4174
4181
|
}, null, 8, ["rows", "emptyText", "leafColCount"])
|
|
4175
4182
|
]));
|
|
4176
4183
|
}
|
|
4177
|
-
}), Zo = /* @__PURE__ */ $(Eo, [["__scopeId", "data-v-b5d0ccaf"]]),
|
|
4184
|
+
}), Zo = /* @__PURE__ */ $(Eo, [["__scopeId", "data-v-b5d0ccaf"]]), Ao = { class: "table__pagination" }, Do = 10, Oo = /* @__PURE__ */ I({
|
|
4178
4185
|
__name: "CmcTablePagination",
|
|
4179
4186
|
props: {
|
|
4180
|
-
itemsPerPage: { default:
|
|
4187
|
+
itemsPerPage: { default: Do },
|
|
4181
4188
|
currentPage: { default: 1 },
|
|
4182
4189
|
rows: { default: () => [] },
|
|
4183
4190
|
columns: { default: () => [] },
|
|
@@ -4192,14 +4199,14 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4192
4199
|
const i = (t.currentPage - 1) * t.itemsPerPage;
|
|
4193
4200
|
return t.rows.slice(i, i + t.itemsPerPage);
|
|
4194
4201
|
});
|
|
4195
|
-
return (i, s) => (L(), h("div",
|
|
4196
|
-
|
|
4202
|
+
return (i, s) => (L(), h("div", Ao, [
|
|
4203
|
+
D(Zo, {
|
|
4197
4204
|
columns: e.columns,
|
|
4198
4205
|
"empty-text": e.emptyText,
|
|
4199
4206
|
rows: l.value,
|
|
4200
4207
|
class: "table__pagination--table"
|
|
4201
4208
|
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
4202
|
-
|
|
4209
|
+
D(x1, {
|
|
4203
4210
|
currentPage: e.currentPage,
|
|
4204
4211
|
itemsPerPage: e.itemsPerPage,
|
|
4205
4212
|
totalItems: e.totalItems ?? e.rows.length,
|
|
@@ -4207,25 +4214,25 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4207
4214
|
}, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
|
|
4208
4215
|
]));
|
|
4209
4216
|
}
|
|
4210
|
-
}), sr = /* @__PURE__ */ $(
|
|
4217
|
+
}), sr = /* @__PURE__ */ $(Oo, [["__scopeId", "data-v-a2a0b05e"]]), ar = /* @__PURE__ */ I({
|
|
4211
4218
|
name: "CmcTitle",
|
|
4212
4219
|
__name: "CmcTitle",
|
|
4213
4220
|
setup(e) {
|
|
4214
4221
|
return (n, t) => (L(), h(Z, null, [
|
|
4215
|
-
|
|
4216
|
-
level:
|
|
4222
|
+
D(Nn, {
|
|
4223
|
+
level: O(se).h1
|
|
4217
4224
|
}, {
|
|
4218
4225
|
default: Xe(() => [
|
|
4219
|
-
|
|
4226
|
+
G(n.$slots, "default")
|
|
4220
4227
|
]),
|
|
4221
4228
|
_: 3
|
|
4222
4229
|
}, 8, ["level"]),
|
|
4223
|
-
t[0] || (t[0] =
|
|
4230
|
+
t[0] || (t[0] = F("hr", { class: "title__separator" }, null, -1))
|
|
4224
4231
|
], 64));
|
|
4225
4232
|
}
|
|
4226
4233
|
}), To = {
|
|
4227
4234
|
medium: "medium"
|
|
4228
|
-
}, Go = ["id", "disabled", "required"], Ho = ["for"],
|
|
4235
|
+
}, Go = ["id", "disabled", "required"], Ho = ["for"], No = /* @__PURE__ */ I({
|
|
4229
4236
|
name: "CmcToggle",
|
|
4230
4237
|
__name: "CmcToggle",
|
|
4231
4238
|
props: /* @__PURE__ */ K({
|
|
@@ -4247,9 +4254,9 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4247
4254
|
"toggle--checked": t.value
|
|
4248
4255
|
}));
|
|
4249
4256
|
return (l, i) => (L(), h("div", {
|
|
4250
|
-
class:
|
|
4257
|
+
class: b(r.value)
|
|
4251
4258
|
}, [
|
|
4252
|
-
xe(
|
|
4259
|
+
xe(F("input", {
|
|
4253
4260
|
id: o.value,
|
|
4254
4261
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
4255
4262
|
disabled: n.disabled,
|
|
@@ -4259,21 +4266,21 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4259
4266
|
}, null, 8, Go), [
|
|
4260
4267
|
[_t, t.value]
|
|
4261
4268
|
]),
|
|
4262
|
-
|
|
4269
|
+
F("label", {
|
|
4263
4270
|
for: o.value,
|
|
4264
4271
|
class: "toggle__switch"
|
|
4265
4272
|
}, [...i[1] || (i[1] = [
|
|
4266
|
-
|
|
4273
|
+
F("span", { class: "toggle__slider" }, null, -1)
|
|
4267
4274
|
])], 8, Ho)
|
|
4268
4275
|
], 2));
|
|
4269
4276
|
}
|
|
4270
|
-
}), ur = /* @__PURE__ */ $(
|
|
4277
|
+
}), ur = /* @__PURE__ */ $(No, [["__scopeId", "data-v-37a7880f"]]), Bo = ["aria-current", "aria-label", "onClick", "onKeydown"], Uo = {
|
|
4271
4278
|
key: 1,
|
|
4272
4279
|
class: "wizard__number"
|
|
4273
4280
|
}, qo = { class: "wizard__label" }, jo = ["tabindex", "onClick", "onKeydown"], Ko = {
|
|
4274
4281
|
key: 0,
|
|
4275
4282
|
class: "wizard__separator"
|
|
4276
|
-
}, Xo = /* @__PURE__ */
|
|
4283
|
+
}, Xo = /* @__PURE__ */ I({
|
|
4277
4284
|
name: "CmcWizard",
|
|
4278
4285
|
__name: "CmcWizard",
|
|
4279
4286
|
props: {
|
|
@@ -4297,18 +4304,18 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4297
4304
|
"wizard__label-text--upcoming": g(f)
|
|
4298
4305
|
}), a = (f) => f < t.current, u = (f) => f === t.current, g = (f) => !a(f) && !u(f);
|
|
4299
4306
|
return (f, d) => (L(), h("div", {
|
|
4300
|
-
class:
|
|
4307
|
+
class: b(["wizard", { "wizard--clickable": e.clickable }]),
|
|
4301
4308
|
role: "list"
|
|
4302
4309
|
}, [
|
|
4303
4310
|
(L(!0), h(Z, null, U(e.steps, (c, p) => (L(), h(Z, { key: p }, [
|
|
4304
|
-
|
|
4305
|
-
class:
|
|
4311
|
+
F("div", {
|
|
4312
|
+
class: b(["wizard__step", i(p)]),
|
|
4306
4313
|
"aria-current": u(p) ? "step" : void 0,
|
|
4307
4314
|
"aria-label": `step-${p + 1} : ${c.label}`,
|
|
4308
4315
|
onClick: (C) => l(p),
|
|
4309
4316
|
onKeydown: [
|
|
4310
|
-
|
|
4311
|
-
|
|
4317
|
+
ge((C) => l(p), ["enter"]),
|
|
4318
|
+
ge(Oe((C) => l(p), ["prevent"]), ["space"])
|
|
4312
4319
|
]
|
|
4313
4320
|
}, [
|
|
4314
4321
|
a(p) ? (L(), J(Y, {
|
|
@@ -4316,15 +4323,15 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4316
4323
|
color: "secondary",
|
|
4317
4324
|
name: "check"
|
|
4318
4325
|
})) : (L(), h("span", Uo, k(p + 1), 1))
|
|
4319
|
-
], 42,
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
class:
|
|
4326
|
+
], 42, Bo),
|
|
4327
|
+
F("div", qo, [
|
|
4328
|
+
F("span", {
|
|
4329
|
+
class: b(["wizard__label-text", s(p)]),
|
|
4323
4330
|
tabindex: e.clickable ? 0 : -1,
|
|
4324
4331
|
onClick: (C) => l(p),
|
|
4325
4332
|
onKeydown: [
|
|
4326
|
-
|
|
4327
|
-
|
|
4333
|
+
ge((C) => l(p), ["enter"]),
|
|
4334
|
+
ge(Oe((C) => l(p), ["prevent"]), ["space"])
|
|
4328
4335
|
]
|
|
4329
4336
|
}, k(c.label), 43, jo)
|
|
4330
4337
|
]),
|
|
@@ -4339,7 +4346,7 @@ export {
|
|
|
4339
4346
|
Rn as CmcButtonGroup,
|
|
4340
4347
|
er as CmcCertificate,
|
|
4341
4348
|
tr as CmcCheckbox,
|
|
4342
|
-
|
|
4349
|
+
Nn as CmcHeading,
|
|
4343
4350
|
Y as CmcIcon,
|
|
4344
4351
|
Mt as CmcInput,
|
|
4345
4352
|
nr as CmcLoading,
|
|
@@ -4356,14 +4363,14 @@ export {
|
|
|
4356
4363
|
yn as buttonKindOptions,
|
|
4357
4364
|
wn as buttonSizeOptions,
|
|
4358
4365
|
vn as buttonVariantOptions,
|
|
4359
|
-
|
|
4366
|
+
se as headingLevelOptions,
|
|
4360
4367
|
Wo as iconColorOptions,
|
|
4361
4368
|
Ct as iconNameOptions,
|
|
4362
4369
|
St as inputSizeOptions,
|
|
4363
4370
|
be as inputTypeOptions,
|
|
4364
|
-
|
|
4365
|
-
|
|
4371
|
+
de as inputVariantOptions,
|
|
4372
|
+
N as primaryTypeOptions,
|
|
4366
4373
|
le as rankOptions,
|
|
4367
|
-
|
|
4374
|
+
fe as selectVariantOptions,
|
|
4368
4375
|
z1 as statusOptions
|
|
4369
4376
|
};
|