@choosemycompany/ui 0.15.2 → 0.15.4
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 +39 -35
- package/dist/index.js +221 -219
- 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 oe, 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"
|
|
@@ -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({
|
|
@@ -39,7 +39,7 @@ import './assets/index.css';const St = {
|
|
|
39
39
|
}),
|
|
40
40
|
emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
|
|
41
41
|
setup(e, { emit: n }) {
|
|
42
|
-
const t = e, o = n, r =
|
|
42
|
+
const t = e, o = n, r = oe(e, "modelValue"), l = S(() => !!t.errorMessage), i = S(() => l.value), s = Xt(), a = S(() => !!s.right), u = S(() => !!s.left), g = S(() => ({
|
|
43
43
|
input: !0,
|
|
44
44
|
[`input--${t.size}`]: !0,
|
|
45
45
|
"input--required": t.required,
|
|
@@ -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
|
-
|
|
63
|
+
F("div", l0, [
|
|
64
64
|
G(f.$slots, "left", {}, void 0, !0),
|
|
65
|
-
xe(
|
|
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,8 +70,8 @@ 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]
|
|
@@ -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
|
)
|
|
@@ -251,12 +251,12 @@ function f0(e, n) {
|
|
|
251
251
|
missing: /* @__PURE__ */ new Set()
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function ne(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
|
}
|
|
@@ -275,7 +275,7 @@ function Pt(e) {
|
|
|
275
275
|
function C0(e) {
|
|
276
276
|
const n = typeof e == "string" ? Me(e, !0, ce) : e;
|
|
277
277
|
if (n) {
|
|
278
|
-
const t =
|
|
278
|
+
const t = ne(n.provider, n.prefix), o = n.name;
|
|
279
279
|
return t.icons[o] || (t.missing.has(o) ? null : void 0);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
@@ -283,7 +283,7 @@ function m0(e, n) {
|
|
|
283
283
|
const t = Me(e, !0, ce);
|
|
284
284
|
if (!t)
|
|
285
285
|
return !1;
|
|
286
|
-
const o =
|
|
286
|
+
const o = ne(t.provider, t.prefix);
|
|
287
287
|
return n ? p0(o, t.name, n) : (o.missing.add(t.name), !0);
|
|
288
288
|
}
|
|
289
289
|
function L0(e, n) {
|
|
@@ -291,7 +291,7 @@ function L0(e, n) {
|
|
|
291
291
|
return !1;
|
|
292
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
|
}
|
|
@@ -301,8 +301,8 @@ function L0(e, n) {
|
|
|
301
301
|
name: "a"
|
|
302
302
|
}))
|
|
303
303
|
return !1;
|
|
304
|
-
const o =
|
|
305
|
-
return !!
|
|
304
|
+
const o = ne(n, t);
|
|
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) {
|
|
@@ -473,16 +473,16 @@ function Qe(e) {
|
|
|
473
473
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
const We = /* @__PURE__ */ Object.create(null),
|
|
476
|
+
const We = /* @__PURE__ */ Object.create(null), re = [
|
|
477
477
|
"https://api.simplesvg.com",
|
|
478
478
|
"https://api.unisvg.com"
|
|
479
479
|
], ye = [];
|
|
480
|
-
for (;
|
|
481
|
-
|
|
480
|
+
for (; re.length > 0; )
|
|
481
|
+
re.length === 1 || Math.random() > 0.5 ? ye.push(re.shift()) : ye.push(re.pop());
|
|
482
482
|
We[""] = Qe({
|
|
483
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: [],
|
|
@@ -609,7 +609,7 @@ function O0(e) {
|
|
|
609
609
|
if (o.name === r.name && o.prefix === r.prefix && o.provider === r.provider)
|
|
610
610
|
return;
|
|
611
611
|
o = r;
|
|
612
|
-
const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] =
|
|
612
|
+
const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] = ne(l, i));
|
|
613
613
|
let g;
|
|
614
614
|
s in u.icons ? g = n.loaded : i === "" || u.missing.has(s) ? g = n.missing : g = n.pending;
|
|
615
615
|
const f = {
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -879,7 +879,7 @@ function K0(e) {
|
|
|
879
879
|
invalid: t
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function le(e, n, t) {
|
|
883
883
|
function o() {
|
|
884
884
|
const r = e.pendingIcons;
|
|
885
885
|
n.forEach((l) => {
|
|
@@ -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
|
}
|
|
@@ -915,7 +915,7 @@ function X0(e, n) {
|
|
|
915
915
|
ut(
|
|
916
916
|
e.loadIcons(r, o, t),
|
|
917
917
|
(g) => {
|
|
918
|
-
|
|
918
|
+
le(e, r, g);
|
|
919
919
|
}
|
|
920
920
|
);
|
|
921
921
|
return;
|
|
@@ -930,28 +930,28 @@ function X0(e, n) {
|
|
|
930
930
|
[g]: d
|
|
931
931
|
}
|
|
932
932
|
} : null;
|
|
933
|
-
|
|
933
|
+
le(e, [g], c);
|
|
934
934
|
});
|
|
935
935
|
});
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
938
|
const { valid: i, invalid: s } = K0(r);
|
|
939
|
-
if (s.length &&
|
|
939
|
+
if (s.length && le(e, s, null), !i.length)
|
|
940
940
|
return;
|
|
941
941
|
const a = o.match(Rt) ? He(t) : null;
|
|
942
942
|
if (!a) {
|
|
943
|
-
|
|
943
|
+
le(e, i, null);
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
a.prepare(t, o, i).forEach((g) => {
|
|
947
947
|
q0(t, g, (f) => {
|
|
948
|
-
|
|
948
|
+
le(e, g.icons, f);
|
|
949
949
|
});
|
|
950
950
|
});
|
|
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(() => {
|
|
@@ -971,11 +971,11 @@ const Q0 = (e, n) => {
|
|
|
971
971
|
const { provider: u, prefix: g } = a;
|
|
972
972
|
if (g === s && u === i)
|
|
973
973
|
return;
|
|
974
|
-
i = u, s = g, l.push(
|
|
974
|
+
i = u, s = g, l.push(ne(u, g));
|
|
975
975
|
const f = r[u] || (r[u] = /* @__PURE__ */ Object.create(null));
|
|
976
976
|
f[g] || (f[g] = []);
|
|
977
977
|
}), o.pending.forEach((a) => {
|
|
978
|
-
const { provider: u, prefix: g, name: f } = a, d =
|
|
978
|
+
const { provider: u, prefix: g, name: f } = a, d = ne(u, g), c = d.pendingIcons || (d.pendingIcons = /* @__PURE__ */ new Set());
|
|
979
979
|
c.has(f) || (c.add(f), r[u][g].push(f));
|
|
980
980
|
}), l.forEach((a) => {
|
|
981
981
|
const u = r[a.provider][a.prefix];
|
|
@@ -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) {
|
|
@@ -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(
|
|
1306
|
+
return (r, l) => (L(), J(O(un), {
|
|
1307
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: {},
|
|
@@ -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({
|
|
@@ -1367,7 +1367,7 @@ const an = {
|
|
|
1367
1367
|
}),
|
|
1368
1368
|
emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
|
|
1369
1369
|
setup(e, { emit: n }) {
|
|
1370
|
-
const t = e, o = n, r =
|
|
1370
|
+
const t = e, o = n, r = oe(e, "modelValue"), l = W(t.label || ""), i = W(!1), s = W(null), a = S(() => `cmc-autocomplete-${_e()}`), u = S(() => r.value ? t.items.filter(
|
|
1371
1371
|
(y) => y.toLowerCase().includes(r.value.toLowerCase())
|
|
1372
1372
|
) : t.items);
|
|
1373
1373
|
function g(y) {
|
|
@@ -1404,7 +1404,7 @@ const an = {
|
|
|
1404
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,7 +1418,7 @@ const an = {
|
|
|
1418
1418
|
variant: "outlined"
|
|
1419
1419
|
}, {
|
|
1420
1420
|
right: Xe(() => [
|
|
1421
|
-
|
|
1421
|
+
D(Y, {
|
|
1422
1422
|
class: b(m.value),
|
|
1423
1423
|
"aria-hidden": "true",
|
|
1424
1424
|
color: "light",
|
|
@@ -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,7 +1478,7 @@ 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", {
|
|
@@ -1487,7 +1487,7 @@ const an = {
|
|
|
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()
|
|
@@ -1496,13 +1496,13 @@ const an = {
|
|
|
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(() => ({
|
|
@@ -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",
|
|
@@ -1805,17 +1805,17 @@ const an = {
|
|
|
1805
1805
|
shareholders: "shareholders",
|
|
1806
1806
|
suppliers: "suppliers",
|
|
1807
1807
|
students: "students"
|
|
1808
|
-
},
|
|
1808
|
+
}, ie = {
|
|
1809
1809
|
bronze: "bronze",
|
|
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:
|
|
1818
|
-
rank: { default:
|
|
1817
|
+
primaryType: { default: N.employees },
|
|
1818
|
+
rank: { default: ie.bronze },
|
|
1819
1819
|
period: { default: 2026 },
|
|
1820
1820
|
country: { default: "France" },
|
|
1821
1821
|
width: { default: 300 },
|
|
@@ -1823,37 +1823,37 @@ const an = {
|
|
|
1823
1823
|
},
|
|
1824
1824
|
setup(e) {
|
|
1825
1825
|
const n = e, t = {
|
|
1826
|
-
[
|
|
1826
|
+
[ie.bronze]: {
|
|
1827
1827
|
color: "#9F612D",
|
|
1828
1828
|
gradient: "gradient-bronze-text",
|
|
1829
1829
|
className: "rank-bronze"
|
|
1830
1830
|
},
|
|
1831
|
-
[
|
|
1831
|
+
[ie.silver]: {
|
|
1832
1832
|
color: "#868686",
|
|
1833
1833
|
gradient: "gradient-silver-text",
|
|
1834
1834
|
className: "rank-silver"
|
|
1835
1835
|
},
|
|
1836
|
-
[
|
|
1836
|
+
[ie.gold]: {
|
|
1837
1837
|
color: "#D39B0D",
|
|
1838
1838
|
gradient: "gradient-gold-text",
|
|
1839
1839
|
className: "rank-gold"
|
|
1840
1840
|
},
|
|
1841
|
-
[
|
|
1841
|
+
[ie.platinum]: {
|
|
1842
1842
|
color: "#ADAA97",
|
|
1843
1843
|
gradient: "gradient-platinum-text",
|
|
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({
|
|
@@ -1904,7 +1904,7 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1904
1904
|
}),
|
|
1905
1905
|
emits: ["update:modelValue"],
|
|
1906
1906
|
setup(e) {
|
|
1907
|
-
const n = e, t =
|
|
1907
|
+
const n = e, t = oe(e, "modelValue"), o = S(() => n.id || `cmc-checkbox-${_e()}`), r = S(() => ({
|
|
1908
1908
|
checkbox: !0,
|
|
1909
1909
|
"checkbox--disabled": n.disabled,
|
|
1910
1910
|
"checkbox--required": n.required
|
|
@@ -1912,7 +1912,7 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1912
1912
|
return (l, i) => (L(), h("div", {
|
|
1913
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,48 +1922,50 @@ 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"]]), te = {
|
|
1932
1932
|
h1: "h1",
|
|
1933
1933
|
h2: "h2",
|
|
1934
1934
|
h3: "h3",
|
|
1935
1935
|
h4: "h4"
|
|
1936
|
-
}, Hn = /* @__PURE__ */
|
|
1936
|
+
}, Hn = /* @__PURE__ */ I({
|
|
1937
1937
|
name: "CmcHeading",
|
|
1938
1938
|
__name: "CmcHeading",
|
|
1939
1939
|
props: {
|
|
1940
|
-
|
|
1940
|
+
margin: { type: Boolean, default: !0 },
|
|
1941
|
+
level: { default: te.h1 }
|
|
1941
1942
|
},
|
|
1942
1943
|
setup(e) {
|
|
1943
1944
|
const n = e, t = S(() => ({
|
|
1944
1945
|
heading: !0,
|
|
1945
|
-
[`heading-${n.level}`]: !0
|
|
1946
|
+
[`heading-${n.level}`]: !0,
|
|
1947
|
+
"heading--no-margin": !n.margin
|
|
1946
1948
|
}));
|
|
1947
1949
|
return (o, r) => (L(), h(Z, null, [
|
|
1948
|
-
|
|
1950
|
+
O(te).h1 === n.level ? (L(), h("h1", {
|
|
1949
1951
|
key: 0,
|
|
1950
1952
|
class: b(t.value)
|
|
1951
1953
|
}, [
|
|
1952
1954
|
G(o.$slots, "default", {}, void 0, !0)
|
|
1953
1955
|
], 2)) : z("", !0),
|
|
1954
|
-
|
|
1956
|
+
O(te).h2 === n.level ? (L(), h("h2", {
|
|
1955
1957
|
key: 1,
|
|
1956
1958
|
class: b(t.value)
|
|
1957
1959
|
}, [
|
|
1958
1960
|
G(o.$slots, "default", {}, void 0, !0)
|
|
1959
1961
|
], 2)) : z("", !0),
|
|
1960
|
-
|
|
1962
|
+
O(te).h3 === n.level ? (L(), h("h3", {
|
|
1961
1963
|
key: 2,
|
|
1962
1964
|
class: b(t.value)
|
|
1963
1965
|
}, [
|
|
1964
1966
|
G(o.$slots, "default", {}, void 0, !0)
|
|
1965
1967
|
], 2)) : z("", !0),
|
|
1966
|
-
|
|
1968
|
+
O(te).h4 === n.level ? (L(), h("h4", {
|
|
1967
1969
|
key: 3,
|
|
1968
1970
|
class: b(t.value)
|
|
1969
1971
|
}, [
|
|
@@ -1971,11 +1973,11 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1971
1973
|
], 2)) : z("", !0)
|
|
1972
1974
|
], 64));
|
|
1973
1975
|
}
|
|
1974
|
-
}),
|
|
1976
|
+
}), Nn = /* @__PURE__ */ $(Hn, [["__scopeId", "data-v-acbec184"]]), Bn = "https://cmc-ui-assets.s3.fr-par.scw.cloud/", Un = ["src"], qn = /* @__PURE__ */ I({
|
|
1975
1977
|
name: "CmcLoading",
|
|
1976
1978
|
__name: "CmcLoading",
|
|
1977
1979
|
setup(e) {
|
|
1978
|
-
const n = S(() =>
|
|
1980
|
+
const n = S(() => Bn + "img/loader-cmc.gif"), t = S(() => ({
|
|
1979
1981
|
loading: !0
|
|
1980
1982
|
}));
|
|
1981
1983
|
return (o, r) => (L(), h("img", {
|
|
@@ -2032,7 +2034,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2032
2034
|
fr_FR_white: e1,
|
|
2033
2035
|
en_US_color: r1,
|
|
2034
2036
|
en_US_white: a1
|
|
2035
|
-
}, f1 = ["href"], p1 = /* @__PURE__ */
|
|
2037
|
+
}, f1 = ["href"], p1 = /* @__PURE__ */ I({
|
|
2036
2038
|
name: "CmcLogo",
|
|
2037
2039
|
__name: "CmcLogo",
|
|
2038
2040
|
props: {
|
|
@@ -2052,7 +2054,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2052
2054
|
return (a, u) => (L(), h("a", {
|
|
2053
2055
|
href: t.href,
|
|
2054
2056
|
class: b(r.value),
|
|
2055
|
-
onClick:
|
|
2057
|
+
onClick: Oe(s, ["prevent"])
|
|
2056
2058
|
}, [
|
|
2057
2059
|
(L(), J(Yt(i.value)))
|
|
2058
2060
|
], 10, f1));
|
|
@@ -2060,7 +2062,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2060
2062
|
}), or = /* @__PURE__ */ $(p1, [["__scopeId", "data-v-cc384ddd"]]), C1 = { class: "pagination" }, m1 = ["disabled"], L1 = ["onClick"], h1 = {
|
|
2061
2063
|
key: 1,
|
|
2062
2064
|
class: "pagination__ellipsis"
|
|
2063
|
-
}, y1 = ["disabled"], v1 = 2, w1 = /* @__PURE__ */
|
|
2065
|
+
}, y1 = ["disabled"], v1 = 2, w1 = /* @__PURE__ */ I({
|
|
2064
2066
|
name: "CmcPagination",
|
|
2065
2067
|
__name: "CmcPagination",
|
|
2066
2068
|
props: {
|
|
@@ -2097,7 +2099,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2097
2099
|
u.value && o("update:currentPage", t.currentPage + 1);
|
|
2098
2100
|
};
|
|
2099
2101
|
return (d, c) => (L(), h("nav", C1, [
|
|
2100
|
-
|
|
2102
|
+
F("button", {
|
|
2101
2103
|
class: b(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
2102
2104
|
disabled: !a.value,
|
|
2103
2105
|
"aria-label": "Page précédente",
|
|
@@ -2110,7 +2112,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2110
2112
|
onClick: () => o("update:currentPage", p)
|
|
2111
2113
|
}, k(p), 11, L1)) : (L(), h("span", h1, "…"))
|
|
2112
2114
|
], 64))), 128)),
|
|
2113
|
-
|
|
2115
|
+
F("button", {
|
|
2114
2116
|
class: b(["pagination__page-button", { "is-invisible": !u.value }]),
|
|
2115
2117
|
disabled: !u.value,
|
|
2116
2118
|
"aria-label": "Page suivante",
|
|
@@ -2118,7 +2120,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2118
2120
|
}, " › ", 10, y1)
|
|
2119
2121
|
]));
|
|
2120
2122
|
}
|
|
2121
|
-
}), x1 = /* @__PURE__ */ $(w1, [["__scopeId", "data-v-8be37a19"]]), _1 = /* @__PURE__ */
|
|
2123
|
+
}), x1 = /* @__PURE__ */ $(w1, [["__scopeId", "data-v-8be37a19"]]), _1 = /* @__PURE__ */ I({
|
|
2122
2124
|
name: "CmcSearch",
|
|
2123
2125
|
__name: "CmcSearch",
|
|
2124
2126
|
props: /* @__PURE__ */ K({
|
|
@@ -2131,7 +2133,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2131
2133
|
}),
|
|
2132
2134
|
emits: ["update:modelValue"],
|
|
2133
2135
|
setup(e) {
|
|
2134
|
-
const n = e, t =
|
|
2136
|
+
const n = e, t = oe(e, "modelValue"), o = S(() => [
|
|
2135
2137
|
"search-bar",
|
|
2136
2138
|
`search-bar--${n.size}`,
|
|
2137
2139
|
n.variant ? `search-bar--${n.variant}` : null
|
|
@@ -2140,7 +2142,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2140
2142
|
class: b(o.value),
|
|
2141
2143
|
role: "search"
|
|
2142
2144
|
}, [
|
|
2143
|
-
|
|
2145
|
+
D(Mt, {
|
|
2144
2146
|
id: l.value,
|
|
2145
2147
|
modelValue: t.value,
|
|
2146
2148
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
|
|
@@ -2151,7 +2153,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2151
2153
|
type: "search"
|
|
2152
2154
|
}, {
|
|
2153
2155
|
left: Xe(() => [
|
|
2154
|
-
|
|
2156
|
+
D(Y, {
|
|
2155
2157
|
color: "light",
|
|
2156
2158
|
"aria-hidden": "true",
|
|
2157
2159
|
class: "search-bar__icon",
|
|
@@ -2173,10 +2175,10 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2173
2175
|
key: 0,
|
|
2174
2176
|
value: "",
|
|
2175
2177
|
disabled: ""
|
|
2176
|
-
},
|
|
2178
|
+
}, I1 = ["value", "disabled"], F1 = {
|
|
2177
2179
|
key: 2,
|
|
2178
2180
|
class: "select__error-wrapper"
|
|
2179
|
-
}, P1 = /* @__PURE__ */
|
|
2181
|
+
}, P1 = /* @__PURE__ */ I({
|
|
2180
2182
|
name: "CmcSelect",
|
|
2181
2183
|
__name: "CmcSelect",
|
|
2182
2184
|
props: /* @__PURE__ */ K({
|
|
@@ -2195,7 +2197,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2195
2197
|
}),
|
|
2196
2198
|
emits: ["update:modelValue"],
|
|
2197
2199
|
setup(e) {
|
|
2198
|
-
const n = e, t =
|
|
2200
|
+
const n = e, t = oe(e, "modelValue"), o = S(() => !!n.errorMessage), r = S(() => ({
|
|
2199
2201
|
select: !0,
|
|
2200
2202
|
"select--disabled": n.disabled,
|
|
2201
2203
|
"select--error": o.value,
|
|
@@ -2212,8 +2214,8 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2212
2214
|
class: "select__label"
|
|
2213
2215
|
}, k(e.label), 9, S1)) : z("", !0),
|
|
2214
2216
|
n.description ? (L(), h("div", M1, k(n.description), 1)) : z("", !0),
|
|
2215
|
-
|
|
2216
|
-
xe(
|
|
2217
|
+
F("div", R1, [
|
|
2218
|
+
xe(F("select", {
|
|
2217
2219
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2218
2220
|
id: e.id,
|
|
2219
2221
|
required: e.required,
|
|
@@ -2225,25 +2227,25 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2225
2227
|
key: s.value,
|
|
2226
2228
|
value: s.value,
|
|
2227
2229
|
disabled: s.disabled
|
|
2228
|
-
}, k(s.label), 9,
|
|
2230
|
+
}, k(s.label), 9, I1))), 128))
|
|
2229
2231
|
], 8, $1), [
|
|
2230
2232
|
[Jt, t.value]
|
|
2231
2233
|
]),
|
|
2232
|
-
|
|
2234
|
+
D(Y, {
|
|
2233
2235
|
"aria-hidden": "true",
|
|
2234
2236
|
class: "select__icon_chevron",
|
|
2235
2237
|
color: "light",
|
|
2236
2238
|
name: "chevronDown"
|
|
2237
2239
|
})
|
|
2238
2240
|
]),
|
|
2239
|
-
o.value ? (L(), h("div",
|
|
2241
|
+
o.value ? (L(), h("div", F1, k(e.errorMessage), 1)) : z("", !0)
|
|
2240
2242
|
], 2));
|
|
2241
2243
|
}
|
|
2242
2244
|
}), lr = /* @__PURE__ */ $(P1, [["__scopeId", "data-v-c434b244"]]), z1 = {
|
|
2243
2245
|
success: "success",
|
|
2244
2246
|
danger: "danger",
|
|
2245
2247
|
warning: "warning"
|
|
2246
|
-
}, V1 = { class: "status__label" }, k1 = /* @__PURE__ */
|
|
2248
|
+
}, V1 = { class: "status__label" }, k1 = /* @__PURE__ */ I({
|
|
2247
2249
|
name: "CmcStatus",
|
|
2248
2250
|
__name: "CmcStatus",
|
|
2249
2251
|
props: {
|
|
@@ -2258,8 +2260,8 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2258
2260
|
return (o, r) => (L(), h("div", {
|
|
2259
2261
|
class: b(t.value)
|
|
2260
2262
|
}, [
|
|
2261
|
-
r[0] || (r[0] =
|
|
2262
|
-
|
|
2263
|
+
r[0] || (r[0] = F("span", { class: "status__dot" }, null, -1)),
|
|
2264
|
+
F("span", V1, k(n.text), 1)
|
|
2263
2265
|
], 2));
|
|
2264
2266
|
}
|
|
2265
2267
|
}), ir = /* @__PURE__ */ $(k1, [["__scopeId", "data-v-9ebfdda4"]]);
|
|
@@ -2276,7 +2278,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2276
2278
|
function j(e, n) {
|
|
2277
2279
|
return typeof e == "function" ? e(n) : e;
|
|
2278
2280
|
}
|
|
2279
|
-
function
|
|
2281
|
+
function A(e, n) {
|
|
2280
2282
|
return (t) => {
|
|
2281
2283
|
n.setState((o) => ({
|
|
2282
2284
|
...o,
|
|
@@ -2334,7 +2336,7 @@ function w(e, n, t, o) {
|
|
|
2334
2336
|
onChange: o
|
|
2335
2337
|
};
|
|
2336
2338
|
}
|
|
2337
|
-
function
|
|
2339
|
+
function A1(e, n, t, o) {
|
|
2338
2340
|
const r = () => {
|
|
2339
2341
|
var i;
|
|
2340
2342
|
return (i = l.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -2357,7 +2359,7 @@ function D1(e, n, t, o) {
|
|
|
2357
2359
|
i.createCell == null || i.createCell(l, t, n, e);
|
|
2358
2360
|
}, {}), l;
|
|
2359
2361
|
}
|
|
2360
|
-
function
|
|
2362
|
+
function D1(e, n, t, o) {
|
|
2361
2363
|
var r, l;
|
|
2362
2364
|
const s = {
|
|
2363
2365
|
...e._getDefaultColumnDef(),
|
|
@@ -2427,7 +2429,7 @@ function mt(e, n, t) {
|
|
|
2427
2429
|
i.createHeader == null || i.createHeader(l, e);
|
|
2428
2430
|
}), l;
|
|
2429
2431
|
}
|
|
2430
|
-
const
|
|
2432
|
+
const O1 = {
|
|
2431
2433
|
createTable: (e) => {
|
|
2432
2434
|
e.getHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
|
|
2433
2435
|
var l, i;
|
|
@@ -2551,7 +2553,7 @@ const T1 = (e, n, t, o, r, l, i) => {
|
|
|
2551
2553
|
}
|
|
2552
2554
|
return a.reverse();
|
|
2553
2555
|
},
|
|
2554
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) =>
|
|
2556
|
+
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) => A1(e, s, u, u.id)), w(e.options, "debugRows", "getAllCells")),
|
|
2555
2557
|
_getAllCellsByColumnId: v(() => [s.getAllCells()], (a) => a.reduce((u, g) => (u[g.column.id] = g, u), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
2556
2558
|
};
|
|
2557
2559
|
for (let a = 0; a < e._features.length; a++) {
|
|
@@ -2566,12 +2568,12 @@ const T1 = (e, n, t, o, r, l, i) => {
|
|
|
2566
2568
|
return e._getFacetedMinMaxValues();
|
|
2567
2569
|
};
|
|
2568
2570
|
}
|
|
2569
|
-
},
|
|
2571
|
+
}, Ot = (e, n, t) => {
|
|
2570
2572
|
var o, r;
|
|
2571
2573
|
const l = t == null || (o = t.toString()) == null ? void 0 : o.toLowerCase();
|
|
2572
2574
|
return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(l));
|
|
2573
2575
|
};
|
|
2574
|
-
|
|
2576
|
+
Ot.autoRemove = (e) => T(e);
|
|
2575
2577
|
const Tt = (e, n, t) => {
|
|
2576
2578
|
var o;
|
|
2577
2579
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
|
|
@@ -2587,16 +2589,16 @@ const Ht = (e, n, t) => {
|
|
|
2587
2589
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
|
|
2588
2590
|
};
|
|
2589
2591
|
Ht.autoRemove = (e) => T(e);
|
|
2590
|
-
const
|
|
2592
|
+
const Nt = (e, n, t) => !t.some((o) => {
|
|
2591
2593
|
var r;
|
|
2592
2594
|
return !((r = e.getValue(n)) != null && r.includes(o));
|
|
2593
2595
|
});
|
|
2594
|
-
|
|
2595
|
-
const
|
|
2596
|
+
Nt.autoRemove = (e) => T(e) || !(e != null && e.length);
|
|
2597
|
+
const Bt = (e, n, t) => t.some((o) => {
|
|
2596
2598
|
var r;
|
|
2597
2599
|
return (r = e.getValue(n)) == null ? void 0 : r.includes(o);
|
|
2598
2600
|
});
|
|
2599
|
-
|
|
2601
|
+
Bt.autoRemove = (e) => T(e) || !(e != null && e.length);
|
|
2600
2602
|
const Ut = (e, n, t) => e.getValue(n) === t;
|
|
2601
2603
|
Ut.autoRemove = (e) => T(e);
|
|
2602
2604
|
const qt = (e, n, t) => e.getValue(n) == t;
|
|
@@ -2615,13 +2617,13 @@ Je.resolveFilterValue = (e) => {
|
|
|
2615
2617
|
return [l, i];
|
|
2616
2618
|
};
|
|
2617
2619
|
Je.autoRemove = (e) => T(e) || T(e[0]) && T(e[1]);
|
|
2618
|
-
const
|
|
2619
|
-
includesString:
|
|
2620
|
+
const B = {
|
|
2621
|
+
includesString: Ot,
|
|
2620
2622
|
includesStringSensitive: Tt,
|
|
2621
2623
|
equalsString: Gt,
|
|
2622
2624
|
arrIncludes: Ht,
|
|
2623
|
-
arrIncludesAll:
|
|
2624
|
-
arrIncludesSome:
|
|
2625
|
+
arrIncludesAll: Nt,
|
|
2626
|
+
arrIncludesSome: Bt,
|
|
2625
2627
|
equals: Ut,
|
|
2626
2628
|
weakEquals: qt,
|
|
2627
2629
|
inNumberRange: Je
|
|
@@ -2638,19 +2640,19 @@ const H1 = {
|
|
|
2638
2640
|
...e
|
|
2639
2641
|
}),
|
|
2640
2642
|
getDefaultOptions: (e) => ({
|
|
2641
|
-
onColumnFiltersChange:
|
|
2643
|
+
onColumnFiltersChange: A("columnFilters", e),
|
|
2642
2644
|
filterFromLeafRows: !1,
|
|
2643
2645
|
maxLeafRowFilterDepth: 100
|
|
2644
2646
|
}),
|
|
2645
2647
|
createColumn: (e, n) => {
|
|
2646
2648
|
e.getAutoFilterFn = () => {
|
|
2647
2649
|
const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
|
|
2648
|
-
return typeof o == "string" ?
|
|
2650
|
+
return typeof o == "string" ? B.includesString : typeof o == "number" ? B.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? B.equals : Array.isArray(o) ? B.arrIncludes : B.weakEquals;
|
|
2649
2651
|
}, e.getFilterFn = () => {
|
|
2650
2652
|
var t, o;
|
|
2651
2653
|
return $e(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
2652
2654
|
// @ts-ignore
|
|
2653
|
-
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t :
|
|
2655
|
+
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : B[e.columnDef.filterFn]
|
|
2654
2656
|
);
|
|
2655
2657
|
}, e.getCanFilter = () => {
|
|
2656
2658
|
var t, o, r;
|
|
@@ -2707,10 +2709,10 @@ const H1 = {
|
|
|
2707
2709
|
function Lt(e, n, t) {
|
|
2708
2710
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
2709
2711
|
}
|
|
2710
|
-
const
|
|
2712
|
+
const N1 = (e, n, t) => t.reduce((o, r) => {
|
|
2711
2713
|
const l = r.getValue(e);
|
|
2712
2714
|
return o + (typeof l == "number" ? l : 0);
|
|
2713
|
-
}, 0),
|
|
2715
|
+
}, 0), B1 = (e, n, t) => {
|
|
2714
2716
|
let o;
|
|
2715
2717
|
return t.forEach((r) => {
|
|
2716
2718
|
const l = r.getValue(e);
|
|
@@ -2745,8 +2747,8 @@ const B1 = (e, n, t) => t.reduce((o, r) => {
|
|
|
2745
2747
|
const o = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
2746
2748
|
return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
2747
2749
|
}, 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 = {
|
|
2748
|
-
sum:
|
|
2749
|
-
min:
|
|
2750
|
+
sum: N1,
|
|
2751
|
+
min: B1,
|
|
2750
2752
|
max: U1,
|
|
2751
2753
|
extent: q1,
|
|
2752
2754
|
mean: j1,
|
|
@@ -2767,7 +2769,7 @@ const B1 = (e, n, t) => t.reduce((o, r) => {
|
|
|
2767
2769
|
...e
|
|
2768
2770
|
}),
|
|
2769
2771
|
getDefaultOptions: (e) => ({
|
|
2770
|
-
onGroupingChange:
|
|
2772
|
+
onGroupingChange: A("grouping", e),
|
|
2771
2773
|
groupedColumnMode: "reorder"
|
|
2772
2774
|
}),
|
|
2773
2775
|
createColumn: (e, n) => {
|
|
@@ -2833,7 +2835,7 @@ const eo = {
|
|
|
2833
2835
|
...e
|
|
2834
2836
|
}),
|
|
2835
2837
|
getDefaultOptions: (e) => ({
|
|
2836
|
-
onColumnOrderChange:
|
|
2838
|
+
onColumnOrderChange: A("columnOrder", e)
|
|
2837
2839
|
}),
|
|
2838
2840
|
createColumn: (e, n) => {
|
|
2839
2841
|
e.getIndex = v((t) => [ue(n, t)], (t) => t.findIndex((o) => o.id === e.id), w(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
@@ -2873,7 +2875,7 @@ const eo = {
|
|
|
2873
2875
|
...e
|
|
2874
2876
|
}),
|
|
2875
2877
|
getDefaultOptions: (e) => ({
|
|
2876
|
-
onColumnPinningChange:
|
|
2878
|
+
onColumnPinningChange: A("columnPinning", e)
|
|
2877
2879
|
}),
|
|
2878
2880
|
createColumn: (e, n) => {
|
|
2879
2881
|
e.pin = (t) => {
|
|
@@ -2968,8 +2970,8 @@ const Ce = {
|
|
|
2968
2970
|
getDefaultOptions: (e) => ({
|
|
2969
2971
|
columnResizeMode: "onEnd",
|
|
2970
2972
|
columnResizeDirection: "ltr",
|
|
2971
|
-
onColumnSizingChange:
|
|
2972
|
-
onColumnSizingInfoChange:
|
|
2973
|
+
onColumnSizingChange: A("columnSizing", e),
|
|
2974
|
+
onColumnSizingInfoChange: A("columnSizingInfo", e)
|
|
2973
2975
|
}),
|
|
2974
2976
|
createColumn: (e, n) => {
|
|
2975
2977
|
e.getSize = () => {
|
|
@@ -3112,7 +3114,7 @@ const lo = {
|
|
|
3112
3114
|
...e
|
|
3113
3115
|
}),
|
|
3114
3116
|
getDefaultOptions: (e) => ({
|
|
3115
|
-
onColumnVisibilityChange:
|
|
3117
|
+
onColumnVisibilityChange: A("columnVisibility", e)
|
|
3116
3118
|
}),
|
|
3117
3119
|
createColumn: (e, n) => {
|
|
3118
3120
|
e.toggleVisibility = (t) => {
|
|
@@ -3167,7 +3169,7 @@ const io = {
|
|
|
3167
3169
|
...e
|
|
3168
3170
|
}),
|
|
3169
3171
|
getDefaultOptions: (e) => ({
|
|
3170
|
-
onGlobalFilterChange:
|
|
3172
|
+
onGlobalFilterChange: A("globalFilter", e),
|
|
3171
3173
|
globalFilterFn: "auto",
|
|
3172
3174
|
getColumnCanGlobalFilter: (n) => {
|
|
3173
3175
|
var t;
|
|
@@ -3182,12 +3184,12 @@ const io = {
|
|
|
3182
3184
|
};
|
|
3183
3185
|
},
|
|
3184
3186
|
createTable: (e) => {
|
|
3185
|
-
e.getGlobalAutoFilterFn = () =>
|
|
3187
|
+
e.getGlobalAutoFilterFn = () => B.includesString, e.getGlobalFilterFn = () => {
|
|
3186
3188
|
var n, t;
|
|
3187
3189
|
const {
|
|
3188
3190
|
globalFilterFn: o
|
|
3189
3191
|
} = e.options;
|
|
3190
|
-
return $e(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n :
|
|
3192
|
+
return $e(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : B[o];
|
|
3191
3193
|
}, e.setGlobalFilter = (n) => {
|
|
3192
3194
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
3193
3195
|
}, e.resetGlobalFilter = (n) => {
|
|
@@ -3200,7 +3202,7 @@ const io = {
|
|
|
3200
3202
|
...e
|
|
3201
3203
|
}),
|
|
3202
3204
|
getDefaultOptions: (e) => ({
|
|
3203
|
-
onExpandedChange:
|
|
3205
|
+
onExpandedChange: A("expanded", e),
|
|
3204
3206
|
paginateExpandedRows: !0
|
|
3205
3207
|
}),
|
|
3206
3208
|
createTable: (e) => {
|
|
@@ -3281,8 +3283,8 @@ const io = {
|
|
|
3281
3283
|
};
|
|
3282
3284
|
};
|
|
3283
3285
|
}
|
|
3284
|
-
},
|
|
3285
|
-
pageIndex:
|
|
3286
|
+
}, Be = 0, Ue = 10, Ee = () => ({
|
|
3287
|
+
pageIndex: Be,
|
|
3286
3288
|
pageSize: Ue
|
|
3287
3289
|
}), uo = {
|
|
3288
3290
|
getInitialState: (e) => ({
|
|
@@ -3293,7 +3295,7 @@ const io = {
|
|
|
3293
3295
|
}
|
|
3294
3296
|
}),
|
|
3295
3297
|
getDefaultOptions: (e) => ({
|
|
3296
|
-
onPaginationChange:
|
|
3298
|
+
onPaginationChange: A("pagination", e)
|
|
3297
3299
|
}),
|
|
3298
3300
|
createTable: (e) => {
|
|
3299
3301
|
let n = !1, t = !1;
|
|
@@ -3328,7 +3330,7 @@ const io = {
|
|
|
3328
3330
|
});
|
|
3329
3331
|
}, e.resetPageIndex = (o) => {
|
|
3330
3332
|
var r, l;
|
|
3331
|
-
e.setPageIndex(o ?
|
|
3333
|
+
e.setPageIndex(o ? Be : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageIndex) != null ? r : Be);
|
|
3332
3334
|
}, e.resetPageSize = (o) => {
|
|
3333
3335
|
var r, l;
|
|
3334
3336
|
e.setPageSize(o ? Ue : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageSize) != null ? r : Ue);
|
|
@@ -3373,7 +3375,7 @@ const io = {
|
|
|
3373
3375
|
...e
|
|
3374
3376
|
}),
|
|
3375
3377
|
getDefaultOptions: (e) => ({
|
|
3376
|
-
onRowPinningChange:
|
|
3378
|
+
onRowPinningChange: A("rowPinning", e)
|
|
3377
3379
|
}),
|
|
3378
3380
|
createRow: (e, n) => {
|
|
3379
3381
|
e.pin = (t, o, r) => {
|
|
@@ -3474,7 +3476,7 @@ const io = {
|
|
|
3474
3476
|
...e
|
|
3475
3477
|
}),
|
|
3476
3478
|
getDefaultOptions: (e) => ({
|
|
3477
|
-
onRowSelectionChange:
|
|
3479
|
+
onRowSelectionChange: A("rowSelection", e),
|
|
3478
3480
|
enableRowSelection: !0,
|
|
3479
3481
|
enableMultiRowSelection: !0,
|
|
3480
3482
|
enableSubRowSelection: !0
|
|
@@ -3505,15 +3507,15 @@ const io = {
|
|
|
3505
3507
|
return e.getRowModel().rows.forEach((l) => {
|
|
3506
3508
|
qe(r, l.id, o, !0, e);
|
|
3507
3509
|
}), r;
|
|
3508
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ?
|
|
3510
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Ae(e, t) : {
|
|
3509
3511
|
rows: [],
|
|
3510
3512
|
flatRows: [],
|
|
3511
3513
|
rowsById: {}
|
|
3512
|
-
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ?
|
|
3514
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Ae(e, t) : {
|
|
3513
3515
|
rows: [],
|
|
3514
3516
|
flatRows: [],
|
|
3515
3517
|
rowsById: {}
|
|
3516
|
-
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ?
|
|
3518
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Ae(e, t) : {
|
|
3517
3519
|
rows: [],
|
|
3518
3520
|
flatRows: [],
|
|
3519
3521
|
rowsById: {}
|
|
@@ -3591,7 +3593,7 @@ const io = {
|
|
|
3591
3593
|
const i = r.getRow(n, !0);
|
|
3592
3594
|
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));
|
|
3593
3595
|
};
|
|
3594
|
-
function
|
|
3596
|
+
function Ae(e, n) {
|
|
3595
3597
|
const t = e.getState().rowSelection, o = [], r = {}, l = function(i, s) {
|
|
3596
3598
|
return i.map((a) => {
|
|
3597
3599
|
var u;
|
|
@@ -3654,7 +3656,7 @@ function jt(e, n) {
|
|
|
3654
3656
|
}
|
|
3655
3657
|
return t.length - o.length;
|
|
3656
3658
|
}
|
|
3657
|
-
const
|
|
3659
|
+
const se = {
|
|
3658
3660
|
alphanumeric: fo,
|
|
3659
3661
|
alphanumericCaseSensitive: po,
|
|
3660
3662
|
text: Co,
|
|
@@ -3671,7 +3673,7 @@ const ie = {
|
|
|
3671
3673
|
sortUndefined: 1
|
|
3672
3674
|
}),
|
|
3673
3675
|
getDefaultOptions: (e) => ({
|
|
3674
|
-
onSortingChange:
|
|
3676
|
+
onSortingChange: A("sorting", e),
|
|
3675
3677
|
isMultiSortEvent: (n) => n.shiftKey
|
|
3676
3678
|
}),
|
|
3677
3679
|
createColumn: (e, n) => {
|
|
@@ -3681,11 +3683,11 @@ const ie = {
|
|
|
3681
3683
|
for (const r of t) {
|
|
3682
3684
|
const l = r?.getValue(e.id);
|
|
3683
3685
|
if (Object.prototype.toString.call(l) === "[object Date]")
|
|
3684
|
-
return
|
|
3686
|
+
return se.datetime;
|
|
3685
3687
|
if (typeof l == "string" && (o = !0, l.split(Ke).length > 1))
|
|
3686
|
-
return
|
|
3688
|
+
return se.alphanumeric;
|
|
3687
3689
|
}
|
|
3688
|
-
return o ?
|
|
3690
|
+
return o ? se.text : se.basic;
|
|
3689
3691
|
}, e.getAutoSortDir = () => {
|
|
3690
3692
|
const t = n.getFilteredRowModel().flatRows[0];
|
|
3691
3693
|
return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
|
|
@@ -3693,7 +3695,7 @@ const ie = {
|
|
|
3693
3695
|
var t, o;
|
|
3694
3696
|
if (!e)
|
|
3695
3697
|
throw new Error();
|
|
3696
|
-
return $e(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t :
|
|
3698
|
+
return $e(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : se[e.columnDef.sortingFn];
|
|
3697
3699
|
}, e.toggleSorting = (t, o) => {
|
|
3698
3700
|
const r = e.getNextSortingOrder(), l = typeof t < "u" && t !== null;
|
|
3699
3701
|
n.setSorting((i) => {
|
|
@@ -3751,7 +3753,7 @@ const ie = {
|
|
|
3751
3753
|
}, 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());
|
|
3752
3754
|
}
|
|
3753
3755
|
}, vo = [
|
|
3754
|
-
|
|
3756
|
+
O1,
|
|
3755
3757
|
lo,
|
|
3756
3758
|
eo,
|
|
3757
3759
|
to,
|
|
@@ -3853,7 +3855,7 @@ function wo(e) {
|
|
|
3853
3855
|
getAllColumns: v(() => [r._getColumnDefs()], (d) => {
|
|
3854
3856
|
const c = function(p, C, m) {
|
|
3855
3857
|
return m === void 0 && (m = 0), p.map((y) => {
|
|
3856
|
-
const x =
|
|
3858
|
+
const x = D1(r, y, m, C), _ = y;
|
|
3857
3859
|
return x.columns = _.columns ? c(_.columns, x, m + 1) : [], x;
|
|
3858
3860
|
});
|
|
3859
3861
|
};
|
|
@@ -3984,7 +3986,7 @@ const So = Symbol("merge-proxy"), Mo = {
|
|
|
3984
3986
|
return e.keys();
|
|
3985
3987
|
}
|
|
3986
3988
|
};
|
|
3987
|
-
function
|
|
3989
|
+
function De(e) {
|
|
3988
3990
|
return "value" in e ? e.value : e;
|
|
3989
3991
|
}
|
|
3990
3992
|
function ae() {
|
|
@@ -3993,29 +3995,29 @@ function ae() {
|
|
|
3993
3995
|
return new Proxy({
|
|
3994
3996
|
get(o) {
|
|
3995
3997
|
for (let r = n.length - 1; r >= 0; r--) {
|
|
3996
|
-
const l =
|
|
3998
|
+
const l = De(n[r])[o];
|
|
3997
3999
|
if (l !== void 0) return l;
|
|
3998
4000
|
}
|
|
3999
4001
|
},
|
|
4000
4002
|
has(o) {
|
|
4001
4003
|
for (let r = n.length - 1; r >= 0; r--)
|
|
4002
|
-
if (o in
|
|
4004
|
+
if (o in De(n[r])) return !0;
|
|
4003
4005
|
return !1;
|
|
4004
4006
|
},
|
|
4005
4007
|
keys() {
|
|
4006
4008
|
const o = [];
|
|
4007
|
-
for (let r = 0; r < n.length; r++) o.push(...Object.keys(
|
|
4009
|
+
for (let r = 0; r < n.length; r++) o.push(...Object.keys(De(n[r])));
|
|
4008
4010
|
return [...Array.from(new Set(o))];
|
|
4009
4011
|
}
|
|
4010
4012
|
}, Mo);
|
|
4011
4013
|
}
|
|
4012
|
-
const Kt =
|
|
4014
|
+
const Kt = I({
|
|
4013
4015
|
props: ["render", "props"],
|
|
4014
4016
|
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? Q(e.render, e.props) : e.render
|
|
4015
4017
|
});
|
|
4016
4018
|
function ht(e) {
|
|
4017
4019
|
return ae(e, {
|
|
4018
|
-
data:
|
|
4020
|
+
data: O(e.data)
|
|
4019
4021
|
});
|
|
4020
4022
|
}
|
|
4021
4023
|
function Ro(e) {
|
|
@@ -4065,7 +4067,7 @@ function Ro(e) {
|
|
|
4065
4067
|
});
|
|
4066
4068
|
}), o;
|
|
4067
4069
|
}
|
|
4068
|
-
const $o = ["aria-sort"], bo = /* @__PURE__ */
|
|
4070
|
+
const $o = ["aria-sort"], bo = /* @__PURE__ */ I({
|
|
4069
4071
|
__name: "CmcTableHeader",
|
|
4070
4072
|
props: {
|
|
4071
4073
|
headerGroups: {}
|
|
@@ -4084,7 +4086,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4084
4086
|
"aria-sort": n(l),
|
|
4085
4087
|
scope: "col"
|
|
4086
4088
|
}, [
|
|
4087
|
-
l.isPlaceholder ? z("", !0) : (L(), J(
|
|
4089
|
+
l.isPlaceholder ? z("", !0) : (L(), J(O(Kt), {
|
|
4088
4090
|
key: 0,
|
|
4089
4091
|
props: l.getContext(),
|
|
4090
4092
|
render: l.column.columnDef.header
|
|
@@ -4093,7 +4095,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4093
4095
|
]))), 128))
|
|
4094
4096
|
]));
|
|
4095
4097
|
}
|
|
4096
|
-
}),
|
|
4098
|
+
}), Io = /* @__PURE__ */ $(bo, [["__scopeId", "data-v-9eba66c8"]]), Fo = { key: 0 }, Po = { key: 1 }, zo = ["colspan"], Vo = /* @__PURE__ */ I({
|
|
4097
4099
|
__name: "CmcTableBody",
|
|
4098
4100
|
props: {
|
|
4099
4101
|
rows: {},
|
|
@@ -4101,22 +4103,22 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4101
4103
|
leafColCount: {}
|
|
4102
4104
|
},
|
|
4103
4105
|
setup(e) {
|
|
4104
|
-
return (n, t) => e.rows.length ? (L(), h("tbody",
|
|
4106
|
+
return (n, t) => e.rows.length ? (L(), h("tbody", Fo, [
|
|
4105
4107
|
(L(!0), h(Z, null, U(e.rows, (o) => (L(), h("tr", {
|
|
4106
4108
|
key: o.id
|
|
4107
4109
|
}, [
|
|
4108
4110
|
(L(!0), h(Z, null, U(o.getVisibleCells(), (r) => (L(), h("td", {
|
|
4109
4111
|
key: r.id
|
|
4110
4112
|
}, [
|
|
4111
|
-
O(
|
|
4113
|
+
D(O(Kt), {
|
|
4112
4114
|
props: r.getContext(),
|
|
4113
4115
|
render: r.column.columnDef.cell
|
|
4114
4116
|
}, null, 8, ["props", "render"])
|
|
4115
4117
|
]))), 128))
|
|
4116
4118
|
]))), 128))
|
|
4117
4119
|
])) : (L(), h("tbody", Po, [
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
+
F("tr", null, [
|
|
4121
|
+
F("td", {
|
|
4120
4122
|
colspan: e.leafColCount,
|
|
4121
4123
|
class: "td__empty"
|
|
4122
4124
|
}, [
|
|
@@ -4127,7 +4129,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4127
4129
|
])
|
|
4128
4130
|
]));
|
|
4129
4131
|
}
|
|
4130
|
-
}), ko = /* @__PURE__ */ $(Vo, [["__scopeId", "data-v-f962b8ac"]]), Eo = /* @__PURE__ */
|
|
4132
|
+
}), ko = /* @__PURE__ */ $(Vo, [["__scopeId", "data-v-f962b8ac"]]), Eo = /* @__PURE__ */ I({
|
|
4131
4133
|
__name: "CmcTable",
|
|
4132
4134
|
props: {
|
|
4133
4135
|
rows: { default: () => [] },
|
|
@@ -4154,7 +4156,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4154
4156
|
const m = p().map((y) => o(y));
|
|
4155
4157
|
return Q(
|
|
4156
4158
|
Rn,
|
|
4157
|
-
{ gap:
|
|
4159
|
+
{ gap: Dt.medium },
|
|
4158
4160
|
() => m
|
|
4159
4161
|
);
|
|
4160
4162
|
}), {
|
|
@@ -4173,18 +4175,18 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4173
4175
|
getSortedRowModel: _o()
|
|
4174
4176
|
}), u = S(() => a.getHeaderGroups()), g = S(() => a.getRowModel().rows), f = S(() => a.getAllLeafColumns().length);
|
|
4175
4177
|
return (d, c) => (L(), h("table", null, [
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
+
D(Io, { headerGroups: u.value }, null, 8, ["headerGroups"]),
|
|
4179
|
+
D(ko, {
|
|
4178
4180
|
rows: g.value,
|
|
4179
4181
|
emptyText: e.emptyText,
|
|
4180
4182
|
leafColCount: f.value
|
|
4181
4183
|
}, null, 8, ["rows", "emptyText", "leafColCount"])
|
|
4182
4184
|
]));
|
|
4183
4185
|
}
|
|
4184
|
-
}), Zo = /* @__PURE__ */ $(Eo, [["__scopeId", "data-v-b5d0ccaf"]]),
|
|
4186
|
+
}), Zo = /* @__PURE__ */ $(Eo, [["__scopeId", "data-v-b5d0ccaf"]]), Ao = { class: "table__pagination" }, Do = 10, Oo = /* @__PURE__ */ I({
|
|
4185
4187
|
__name: "CmcTablePagination",
|
|
4186
4188
|
props: {
|
|
4187
|
-
itemsPerPage: { default:
|
|
4189
|
+
itemsPerPage: { default: Do },
|
|
4188
4190
|
currentPage: { default: 1 },
|
|
4189
4191
|
rows: { default: () => [] },
|
|
4190
4192
|
columns: { default: () => [] },
|
|
@@ -4199,14 +4201,14 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4199
4201
|
const i = (t.currentPage - 1) * t.itemsPerPage;
|
|
4200
4202
|
return t.rows.slice(i, i + t.itemsPerPage);
|
|
4201
4203
|
});
|
|
4202
|
-
return (i, s) => (L(), h("div",
|
|
4203
|
-
|
|
4204
|
+
return (i, s) => (L(), h("div", Ao, [
|
|
4205
|
+
D(Zo, {
|
|
4204
4206
|
columns: e.columns,
|
|
4205
4207
|
"empty-text": e.emptyText,
|
|
4206
4208
|
rows: l.value,
|
|
4207
4209
|
class: "table__pagination--table"
|
|
4208
4210
|
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
4209
|
-
|
|
4211
|
+
D(x1, {
|
|
4210
4212
|
currentPage: e.currentPage,
|
|
4211
4213
|
itemsPerPage: e.itemsPerPage,
|
|
4212
4214
|
totalItems: e.totalItems ?? e.rows.length,
|
|
@@ -4214,25 +4216,25 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4214
4216
|
}, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
|
|
4215
4217
|
]));
|
|
4216
4218
|
}
|
|
4217
|
-
}), sr = /* @__PURE__ */ $(
|
|
4219
|
+
}), sr = /* @__PURE__ */ $(Oo, [["__scopeId", "data-v-a2a0b05e"]]), ar = /* @__PURE__ */ I({
|
|
4218
4220
|
name: "CmcTitle",
|
|
4219
4221
|
__name: "CmcTitle",
|
|
4220
4222
|
setup(e) {
|
|
4221
4223
|
return (n, t) => (L(), h(Z, null, [
|
|
4222
|
-
|
|
4223
|
-
level:
|
|
4224
|
+
D(Nn, {
|
|
4225
|
+
level: O(te).h1
|
|
4224
4226
|
}, {
|
|
4225
4227
|
default: Xe(() => [
|
|
4226
4228
|
G(n.$slots, "default")
|
|
4227
4229
|
]),
|
|
4228
4230
|
_: 3
|
|
4229
4231
|
}, 8, ["level"]),
|
|
4230
|
-
t[0] || (t[0] =
|
|
4232
|
+
t[0] || (t[0] = F("hr", { class: "title__separator" }, null, -1))
|
|
4231
4233
|
], 64));
|
|
4232
4234
|
}
|
|
4233
4235
|
}), To = {
|
|
4234
4236
|
medium: "medium"
|
|
4235
|
-
}, Go = ["id", "disabled", "required"], Ho = ["for"],
|
|
4237
|
+
}, Go = ["id", "disabled", "required"], Ho = ["for"], No = /* @__PURE__ */ I({
|
|
4236
4238
|
name: "CmcToggle",
|
|
4237
4239
|
__name: "CmcToggle",
|
|
4238
4240
|
props: /* @__PURE__ */ K({
|
|
@@ -4246,7 +4248,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4246
4248
|
}),
|
|
4247
4249
|
emits: ["update:modelValue"],
|
|
4248
4250
|
setup(e) {
|
|
4249
|
-
const n = e, t =
|
|
4251
|
+
const n = e, t = oe(e, "modelValue"), o = S(() => n.id || `cmc-toggle-${_e()}`), r = S(() => ({
|
|
4250
4252
|
toggle: !0,
|
|
4251
4253
|
[`toggle--${n.size}`]: !0,
|
|
4252
4254
|
"toggle--disabled": n.disabled,
|
|
@@ -4256,7 +4258,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4256
4258
|
return (l, i) => (L(), h("div", {
|
|
4257
4259
|
class: b(r.value)
|
|
4258
4260
|
}, [
|
|
4259
|
-
xe(
|
|
4261
|
+
xe(F("input", {
|
|
4260
4262
|
id: o.value,
|
|
4261
4263
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
4262
4264
|
disabled: n.disabled,
|
|
@@ -4266,21 +4268,21 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4266
4268
|
}, null, 8, Go), [
|
|
4267
4269
|
[_t, t.value]
|
|
4268
4270
|
]),
|
|
4269
|
-
|
|
4271
|
+
F("label", {
|
|
4270
4272
|
for: o.value,
|
|
4271
4273
|
class: "toggle__switch"
|
|
4272
4274
|
}, [...i[1] || (i[1] = [
|
|
4273
|
-
|
|
4275
|
+
F("span", { class: "toggle__slider" }, null, -1)
|
|
4274
4276
|
])], 8, Ho)
|
|
4275
4277
|
], 2));
|
|
4276
4278
|
}
|
|
4277
|
-
}), ur = /* @__PURE__ */ $(
|
|
4279
|
+
}), ur = /* @__PURE__ */ $(No, [["__scopeId", "data-v-37a7880f"]]), Bo = ["aria-current", "aria-label", "onClick", "onKeydown"], Uo = {
|
|
4278
4280
|
key: 1,
|
|
4279
4281
|
class: "wizard__number"
|
|
4280
4282
|
}, qo = { class: "wizard__label" }, jo = ["tabindex", "onClick", "onKeydown"], Ko = {
|
|
4281
4283
|
key: 0,
|
|
4282
4284
|
class: "wizard__separator"
|
|
4283
|
-
}, Xo = /* @__PURE__ */
|
|
4285
|
+
}, Xo = /* @__PURE__ */ I({
|
|
4284
4286
|
name: "CmcWizard",
|
|
4285
4287
|
__name: "CmcWizard",
|
|
4286
4288
|
props: {
|
|
@@ -4308,14 +4310,14 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4308
4310
|
role: "list"
|
|
4309
4311
|
}, [
|
|
4310
4312
|
(L(!0), h(Z, null, U(e.steps, (c, p) => (L(), h(Z, { key: p }, [
|
|
4311
|
-
|
|
4313
|
+
F("div", {
|
|
4312
4314
|
class: b(["wizard__step", i(p)]),
|
|
4313
4315
|
"aria-current": u(p) ? "step" : void 0,
|
|
4314
4316
|
"aria-label": `step-${p + 1} : ${c.label}`,
|
|
4315
4317
|
onClick: (C) => l(p),
|
|
4316
4318
|
onKeydown: [
|
|
4317
4319
|
ge((C) => l(p), ["enter"]),
|
|
4318
|
-
ge(
|
|
4320
|
+
ge(Oe((C) => l(p), ["prevent"]), ["space"])
|
|
4319
4321
|
]
|
|
4320
4322
|
}, [
|
|
4321
4323
|
a(p) ? (L(), J(Y, {
|
|
@@ -4323,15 +4325,15 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ F({
|
|
|
4323
4325
|
color: "secondary",
|
|
4324
4326
|
name: "check"
|
|
4325
4327
|
})) : (L(), h("span", Uo, k(p + 1), 1))
|
|
4326
|
-
], 42,
|
|
4327
|
-
|
|
4328
|
-
|
|
4328
|
+
], 42, Bo),
|
|
4329
|
+
F("div", qo, [
|
|
4330
|
+
F("span", {
|
|
4329
4331
|
class: b(["wizard__label-text", s(p)]),
|
|
4330
4332
|
tabindex: e.clickable ? 0 : -1,
|
|
4331
4333
|
onClick: (C) => l(p),
|
|
4332
4334
|
onKeydown: [
|
|
4333
4335
|
ge((C) => l(p), ["enter"]),
|
|
4334
|
-
ge(
|
|
4336
|
+
ge(Oe((C) => l(p), ["prevent"]), ["space"])
|
|
4335
4337
|
]
|
|
4336
4338
|
}, k(c.label), 43, jo)
|
|
4337
4339
|
]),
|
|
@@ -4346,7 +4348,7 @@ export {
|
|
|
4346
4348
|
Rn as CmcButtonGroup,
|
|
4347
4349
|
er as CmcCertificate,
|
|
4348
4350
|
tr as CmcCheckbox,
|
|
4349
|
-
|
|
4351
|
+
Nn as CmcHeading,
|
|
4350
4352
|
Y as CmcIcon,
|
|
4351
4353
|
Mt as CmcInput,
|
|
4352
4354
|
nr as CmcLoading,
|
|
@@ -4363,14 +4365,14 @@ export {
|
|
|
4363
4365
|
yn as buttonKindOptions,
|
|
4364
4366
|
wn as buttonSizeOptions,
|
|
4365
4367
|
vn as buttonVariantOptions,
|
|
4366
|
-
|
|
4368
|
+
te as headingLevelOptions,
|
|
4367
4369
|
Wo as iconColorOptions,
|
|
4368
4370
|
Ct as iconNameOptions,
|
|
4369
4371
|
St as inputSizeOptions,
|
|
4370
4372
|
be as inputTypeOptions,
|
|
4371
4373
|
de as inputVariantOptions,
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
+
N as primaryTypeOptions,
|
|
4375
|
+
ie as rankOptions,
|
|
4374
4376
|
fe as selectVariantOptions,
|
|
4375
4377
|
z1 as statusOptions
|
|
4376
4378
|
};
|