@choosemycompany/ui 0.15.3 → 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 +47 -45
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,10 @@ declare const __VLS_component_2: DefineComponent<__VLS_Props_3, {}, {}, {}, {},
|
|
|
24
24
|
gap: ButtonGroupGap;
|
|
25
25
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
26
|
|
|
27
|
-
declare const __VLS_component_3: DefineComponent<
|
|
27
|
+
declare const __VLS_component_3: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
28
|
+
margin: boolean;
|
|
29
|
+
level: HeadingLevels;
|
|
30
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
28
31
|
|
|
29
32
|
declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
30
33
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -49,12 +52,6 @@ declare type __VLS_Props = {
|
|
|
49
52
|
};
|
|
50
53
|
|
|
51
54
|
declare type __VLS_Props_10 = {
|
|
52
|
-
size?: inputSize;
|
|
53
|
-
variant?: inputVariant;
|
|
54
|
-
placeholder?: string;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
declare type __VLS_Props_11 = {
|
|
58
55
|
id: string;
|
|
59
56
|
options: SelectOption[];
|
|
60
57
|
label?: string;
|
|
@@ -66,14 +63,14 @@ declare type __VLS_Props_11 = {
|
|
|
66
63
|
description?: string;
|
|
67
64
|
};
|
|
68
65
|
|
|
69
|
-
declare type
|
|
66
|
+
declare type __VLS_Props_11 = {
|
|
70
67
|
text: string;
|
|
71
68
|
status?: Status;
|
|
72
69
|
};
|
|
73
70
|
|
|
74
|
-
declare type
|
|
71
|
+
declare type __VLS_Props_12 = Props_2;
|
|
75
72
|
|
|
76
|
-
declare type
|
|
73
|
+
declare type __VLS_Props_13 = {
|
|
77
74
|
itemsPerPage: number;
|
|
78
75
|
currentPage: number;
|
|
79
76
|
rows?: Row_2[];
|
|
@@ -82,14 +79,14 @@ declare type __VLS_Props_14 = {
|
|
|
82
79
|
emptyText?: string;
|
|
83
80
|
};
|
|
84
81
|
|
|
85
|
-
declare type
|
|
82
|
+
declare type __VLS_Props_14 = {
|
|
86
83
|
id?: string;
|
|
87
84
|
disabled?: boolean;
|
|
88
85
|
required?: boolean;
|
|
89
86
|
size?: ToggleSize;
|
|
90
87
|
};
|
|
91
88
|
|
|
92
|
-
declare type
|
|
89
|
+
declare type __VLS_Props_15 = {
|
|
93
90
|
steps: Step[];
|
|
94
91
|
current: number;
|
|
95
92
|
clickable?: boolean;
|
|
@@ -115,15 +112,11 @@ declare type __VLS_Props_4 = {
|
|
|
115
112
|
};
|
|
116
113
|
|
|
117
114
|
declare type __VLS_Props_5 = {
|
|
118
|
-
level: HeadingLevels;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
declare type __VLS_Props_6 = {
|
|
122
115
|
name: IconName;
|
|
123
116
|
color?: IconColor;
|
|
124
117
|
};
|
|
125
118
|
|
|
126
|
-
declare type
|
|
119
|
+
declare type __VLS_Props_6 = {
|
|
127
120
|
id: string;
|
|
128
121
|
label?: string;
|
|
129
122
|
placeholder?: string;
|
|
@@ -138,20 +131,26 @@ declare type __VLS_Props_7 = {
|
|
|
138
131
|
max?: number;
|
|
139
132
|
};
|
|
140
133
|
|
|
141
|
-
declare type
|
|
134
|
+
declare type __VLS_Props_7 = {
|
|
142
135
|
href?: string;
|
|
143
136
|
variant?: LogoVariant;
|
|
144
137
|
language?: LogoLanguage;
|
|
145
138
|
size?: LogoSize;
|
|
146
139
|
};
|
|
147
140
|
|
|
148
|
-
declare type
|
|
141
|
+
declare type __VLS_Props_8 = {
|
|
149
142
|
currentPage: number;
|
|
150
143
|
totalItems: number;
|
|
151
144
|
itemsPerPage: number;
|
|
152
145
|
visibleRange?: number;
|
|
153
146
|
};
|
|
154
147
|
|
|
148
|
+
declare type __VLS_Props_9 = {
|
|
149
|
+
size?: inputSize;
|
|
150
|
+
variant?: inputVariant;
|
|
151
|
+
placeholder?: string;
|
|
152
|
+
};
|
|
153
|
+
|
|
155
154
|
declare type __VLS_PublicProps = {
|
|
156
155
|
modelValue?: string;
|
|
157
156
|
} & __VLS_Props;
|
|
@@ -162,19 +161,19 @@ declare type __VLS_PublicProps_2 = {
|
|
|
162
161
|
|
|
163
162
|
declare type __VLS_PublicProps_3 = {
|
|
164
163
|
modelValue?: string | number;
|
|
165
|
-
} &
|
|
164
|
+
} & __VLS_Props_6;
|
|
166
165
|
|
|
167
166
|
declare type __VLS_PublicProps_4 = {
|
|
168
167
|
modelValue?: string;
|
|
169
|
-
} &
|
|
168
|
+
} & __VLS_Props_9;
|
|
170
169
|
|
|
171
170
|
declare type __VLS_PublicProps_5 = {
|
|
172
171
|
modelValue?: string | number;
|
|
173
|
-
} &
|
|
172
|
+
} & __VLS_Props_10;
|
|
174
173
|
|
|
175
174
|
declare type __VLS_PublicProps_6 = {
|
|
176
175
|
modelValue?: boolean;
|
|
177
|
-
} &
|
|
176
|
+
} & __VLS_Props_14;
|
|
178
177
|
|
|
179
178
|
declare function __VLS_template(): {
|
|
180
179
|
attrs: Partial<{}>;
|
|
@@ -338,7 +337,7 @@ export declare const CmcCheckbox: DefineComponent<__VLS_PublicProps_2, {}, {}, {
|
|
|
338
337
|
|
|
339
338
|
export declare const CmcHeading: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
340
339
|
|
|
341
|
-
export declare const CmcIcon: DefineComponent<
|
|
340
|
+
export declare const CmcIcon: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
342
341
|
name: IconName;
|
|
343
342
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
344
343
|
|
|
@@ -346,9 +345,9 @@ export declare const CmcInput: __VLS_WithTemplateSlots_4<typeof __VLS_component_
|
|
|
346
345
|
|
|
347
346
|
export declare const CmcLoading: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLImageElement>;
|
|
348
347
|
|
|
349
|
-
export declare const CmcLogo: DefineComponent<
|
|
348
|
+
export declare const CmcLogo: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
350
349
|
click: () => any;
|
|
351
|
-
}, string, PublicProps, Readonly<
|
|
350
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
352
351
|
onClick?: (() => any) | undefined;
|
|
353
352
|
}>, {
|
|
354
353
|
variant: LogoVariant;
|
|
@@ -356,9 +355,9 @@ export declare const CmcLogo: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, Com
|
|
|
356
355
|
language: LogoLanguage;
|
|
357
356
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLAnchorElement>;
|
|
358
357
|
|
|
359
|
-
export declare const CmcPagination: DefineComponent<
|
|
358
|
+
export declare const CmcPagination: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
360
359
|
"update:currentPage": (page: number) => any;
|
|
361
|
-
}, string, PublicProps, Readonly<
|
|
360
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
362
361
|
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
363
362
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
364
363
|
|
|
@@ -381,19 +380,19 @@ export declare const CmcSelect: DefineComponent<__VLS_PublicProps_5, {}, {}, {},
|
|
|
381
380
|
variant: SelectVariant;
|
|
382
381
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
383
382
|
|
|
384
|
-
export declare const CmcStatus: DefineComponent<
|
|
383
|
+
export declare const CmcStatus: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {
|
|
385
384
|
status: Status;
|
|
386
385
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
387
386
|
|
|
388
|
-
export declare const CmcTable: DefineComponent<
|
|
387
|
+
export declare const CmcTable: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {
|
|
389
388
|
rows: Row[];
|
|
390
389
|
emptyText: string;
|
|
391
390
|
columns: ColumnDefinition_2[];
|
|
392
391
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTableElement>;
|
|
393
392
|
|
|
394
|
-
export declare const CmcTablePagination: DefineComponent<
|
|
393
|
+
export declare const CmcTablePagination: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
395
394
|
"update:currentPage": (page: number) => any;
|
|
396
|
-
}, string, PublicProps, Readonly<
|
|
395
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
397
396
|
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
398
397
|
}>, {
|
|
399
398
|
currentPage: number;
|
|
@@ -414,9 +413,9 @@ export declare const CmcToggle: DefineComponent<__VLS_PublicProps_6, {}, {}, {},
|
|
|
414
413
|
size: ToggleSize;
|
|
415
414
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
416
415
|
|
|
417
|
-
export declare const CmcWizard: DefineComponent<
|
|
416
|
+
export declare const CmcWizard: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
418
417
|
"update:current": (value: number) => any;
|
|
419
|
-
}, string, PublicProps, Readonly<
|
|
418
|
+
}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{
|
|
420
419
|
"onUpdate:current"?: ((value: number) => any) | undefined;
|
|
421
420
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
422
421
|
|
|
@@ -496,7 +495,12 @@ export declare const primaryTypeOptions: {
|
|
|
496
495
|
readonly students: "students";
|
|
497
496
|
};
|
|
498
497
|
|
|
499
|
-
declare
|
|
498
|
+
declare interface Props {
|
|
499
|
+
margin?: boolean;
|
|
500
|
+
level: HeadingLevels;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare type Props_2<TRow extends Row = Row> = {
|
|
500
504
|
rows?: TRow[];
|
|
501
505
|
columns?: ColumnDefinition_2[];
|
|
502
506
|
emptyText?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, mergeModels as K, useModel 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"
|
|
@@ -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,
|
|
@@ -251,7 +251,7 @@ 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
|
}
|
|
@@ -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) {
|
|
@@ -301,7 +301,7 @@ function L0(e, n) {
|
|
|
301
301
|
name: "a"
|
|
302
302
|
}))
|
|
303
303
|
return !1;
|
|
304
|
-
const o =
|
|
304
|
+
const o = ne(n, t);
|
|
305
305
|
return !!Ft(o, e);
|
|
306
306
|
}
|
|
307
307
|
const zt = Object.freeze({
|
|
@@ -473,12 +473,12 @@ 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
|
});
|
|
@@ -609,7 +609,7 @@ function D0(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 = {
|
|
@@ -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) => {
|
|
@@ -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,22 +930,22 @@ 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
|
}));
|
|
@@ -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];
|
|
@@ -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) {
|
|
@@ -1805,7 +1805,7 @@ 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",
|
|
@@ -1815,7 +1815,7 @@ const an = {
|
|
|
1815
1815
|
__name: "CmcCertificate",
|
|
1816
1816
|
props: {
|
|
1817
1817
|
primaryType: { default: N.employees },
|
|
1818
|
-
rank: { default:
|
|
1818
|
+
rank: { default: ie.bronze },
|
|
1819
1819
|
period: { default: 2026 },
|
|
1820
1820
|
country: { default: "France" },
|
|
1821
1821
|
width: { default: 300 },
|
|
@@ -1823,22 +1823,22 @@ 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"
|
|
@@ -1904,7 +1904,7 @@ const On = /* @__PURE__ */ $(Zn, [["render", Dn]]), 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
|
|
@@ -1928,7 +1928,7 @@ const On = /* @__PURE__ */ $(Zn, [["render", Dn]]), Tn = ["id", "disabled", "req
|
|
|
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",
|
|
@@ -1937,33 +1937,35 @@ const On = /* @__PURE__ */ $(Zn, [["render", Dn]]), Tn = ["id", "disabled", "req
|
|
|
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
|
-
O(
|
|
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
|
-
O(
|
|
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
|
-
O(
|
|
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
|
-
O(
|
|
1968
|
+
O(te).h4 === n.level ? (L(), h("h4", {
|
|
1967
1969
|
key: 3,
|
|
1968
1970
|
class: b(t.value)
|
|
1969
1971
|
}, [
|
|
@@ -1971,7 +1973,7 @@ const On = /* @__PURE__ */ $(Zn, [["render", Dn]]), Tn = ["id", "disabled", "req
|
|
|
1971
1973
|
], 2)) : z("", !0)
|
|
1972
1974
|
], 64));
|
|
1973
1975
|
}
|
|
1974
|
-
}), Nn = /* @__PURE__ */ $(Hn, [["__scopeId", "data-v-
|
|
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) {
|
|
@@ -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
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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) => {
|
|
@@ -4220,7 +4222,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ I({
|
|
|
4220
4222
|
setup(e) {
|
|
4221
4223
|
return (n, t) => (L(), h(Z, null, [
|
|
4222
4224
|
D(Nn, {
|
|
4223
|
-
level: O(
|
|
4225
|
+
level: O(te).h1
|
|
4224
4226
|
}, {
|
|
4225
4227
|
default: Xe(() => [
|
|
4226
4228
|
G(n.$slots, "default")
|
|
@@ -4246,7 +4248,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ I({
|
|
|
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,
|
|
@@ -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
4374
|
N as primaryTypeOptions,
|
|
4373
|
-
|
|
4375
|
+
ie as rankOptions,
|
|
4374
4376
|
fe as selectVariantOptions,
|
|
4375
4377
|
z1 as statusOptions
|
|
4376
4378
|
};
|