@choosemycompany/ui 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +38 -37
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as Y, shallowRef as vt, onMounted as _t, watch as xt, onUnmounted as wt, h as W, nextTick as Wt, computed as w, createBlock as ee, openBlock as L, unref as D, normalizeClass as R, createElementBlock as h, createElementVNode as F, renderSlot as T, createCommentVNode as P, toDisplayString as z, createVNode as A, mergeProps as Yt, withCtx as we, createTextVNode as St, mergeModels as K, useModel as
|
|
1
|
+
import { defineComponent as b, ref as Y, shallowRef as vt, onMounted as _t, watch as xt, onUnmounted as wt, h as W, nextTick as Wt, computed as w, createBlock as ee, openBlock as L, unref as D, normalizeClass as R, createElementBlock as h, createElementVNode as F, renderSlot as T, createCommentVNode as P, toDisplayString as z, createVNode as A, mergeProps as Yt, withCtx as we, createTextVNode as St, mergeModels as K, useModel as re, useSlots as Jt, withDirectives as Se, vModelDynamic as e0, Fragment as Z, renderList as U, useId as Me, vModelCheckbox as Mt, normalizeStyle as le, createStaticVNode as Re, withModifiers as Ge, resolveDynamicComponent as t0, vModelSelect as n0, isRef as o0, watchEffect as r0, withKeys as de } from "vue";
|
|
2
2
|
import './assets/index.css';const l0 = {
|
|
3
3
|
primary: "primary",
|
|
4
4
|
secondary: "secondary"
|
|
@@ -202,7 +202,7 @@ function d0(e, n) {
|
|
|
202
202
|
missing: /* @__PURE__ */ new Set()
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function oe(e, n) {
|
|
206
206
|
const t = it[e] || (it[e] = /* @__PURE__ */ Object.create(null));
|
|
207
207
|
return t[n] || (t[n] = d0(e, n));
|
|
208
208
|
}
|
|
@@ -226,7 +226,7 @@ function zt(e) {
|
|
|
226
226
|
function p0(e) {
|
|
227
227
|
const n = typeof e == "string" ? $e(e, !0, ge) : e;
|
|
228
228
|
if (n) {
|
|
229
|
-
const t =
|
|
229
|
+
const t = oe(n.provider, n.prefix), o = n.name;
|
|
230
230
|
return t.icons[o] || (t.missing.has(o) ? null : void 0);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -234,7 +234,7 @@ function m0(e, n) {
|
|
|
234
234
|
const t = $e(e, !0, ge);
|
|
235
235
|
if (!t)
|
|
236
236
|
return !1;
|
|
237
|
-
const o =
|
|
237
|
+
const o = oe(t.provider, t.prefix);
|
|
238
238
|
return n ? f0(o, t.name, n) : (o.missing.add(t.name), !0);
|
|
239
239
|
}
|
|
240
240
|
function C0(e, n) {
|
|
@@ -252,7 +252,7 @@ function C0(e, n) {
|
|
|
252
252
|
name: "a"
|
|
253
253
|
}))
|
|
254
254
|
return !1;
|
|
255
|
-
const o =
|
|
255
|
+
const o = oe(n, t);
|
|
256
256
|
return !!Pt(o, e);
|
|
257
257
|
}
|
|
258
258
|
const Vt = Object.freeze({
|
|
@@ -424,12 +424,12 @@ function We(e) {
|
|
|
424
424
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
const Ye = /* @__PURE__ */ Object.create(null),
|
|
427
|
+
const Ye = /* @__PURE__ */ Object.create(null), ie = [
|
|
428
428
|
"https://api.simplesvg.com",
|
|
429
429
|
"https://api.unisvg.com"
|
|
430
430
|
], ve = [];
|
|
431
|
-
for (;
|
|
432
|
-
|
|
431
|
+
for (; ie.length > 0; )
|
|
432
|
+
ie.length === 1 || Math.random() > 0.5 ? ve.push(ie.shift()) : ve.push(ie.pop());
|
|
433
433
|
Ye[""] = We({
|
|
434
434
|
resources: ["https://api.iconify.design"].concat(ve)
|
|
435
435
|
});
|
|
@@ -560,7 +560,7 @@ function A0(e) {
|
|
|
560
560
|
if (o.name === r.name && o.prefix === r.prefix && o.provider === r.provider)
|
|
561
561
|
return;
|
|
562
562
|
o = r;
|
|
563
|
-
const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] =
|
|
563
|
+
const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] = oe(l, i));
|
|
564
564
|
let g;
|
|
565
565
|
s in u.icons ? g = n.loaded : i === "" || u.missing.has(s) ? g = n.missing : g = n.pending;
|
|
566
566
|
const f = {
|
|
@@ -830,7 +830,7 @@ function j0(e) {
|
|
|
830
830
|
invalid: t
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function se(e, n, t) {
|
|
834
834
|
function o() {
|
|
835
835
|
const r = e.pendingIcons;
|
|
836
836
|
n.forEach((l) => {
|
|
@@ -866,7 +866,7 @@ function K0(e, n) {
|
|
|
866
866
|
gt(
|
|
867
867
|
e.loadIcons(r, o, t),
|
|
868
868
|
(g) => {
|
|
869
|
-
|
|
869
|
+
se(e, r, g);
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
872
|
return;
|
|
@@ -881,22 +881,22 @@ function K0(e, n) {
|
|
|
881
881
|
[g]: d
|
|
882
882
|
}
|
|
883
883
|
} : null;
|
|
884
|
-
|
|
884
|
+
se(e, [g], c);
|
|
885
885
|
});
|
|
886
886
|
});
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
889
|
const { valid: i, invalid: s } = j0(r);
|
|
890
|
-
if (s.length &&
|
|
890
|
+
if (s.length && se(e, s, null), !i.length)
|
|
891
891
|
return;
|
|
892
892
|
const a = o.match($t) ? Ne(t) : null;
|
|
893
893
|
if (!a) {
|
|
894
|
-
|
|
894
|
+
se(e, i, null);
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
897
|
a.prepare(t, o, i).forEach((g) => {
|
|
898
898
|
U0(t, g, (f) => {
|
|
899
|
-
|
|
899
|
+
se(e, g.icons, f);
|
|
900
900
|
});
|
|
901
901
|
});
|
|
902
902
|
}));
|
|
@@ -922,11 +922,11 @@ const X0 = (e, n) => {
|
|
|
922
922
|
const { provider: u, prefix: g } = a;
|
|
923
923
|
if (g === s && u === i)
|
|
924
924
|
return;
|
|
925
|
-
i = u, s = g, l.push(
|
|
925
|
+
i = u, s = g, l.push(oe(u, g));
|
|
926
926
|
const f = r[u] || (r[u] = /* @__PURE__ */ Object.create(null));
|
|
927
927
|
f[g] || (f[g] = []);
|
|
928
928
|
}), o.pending.forEach((a) => {
|
|
929
|
-
const { provider: u, prefix: g, name: f } = a, d =
|
|
929
|
+
const { provider: u, prefix: g, name: f } = a, d = oe(u, g), c = d.pendingIcons || (d.pendingIcons = /* @__PURE__ */ new Set());
|
|
930
930
|
c.has(f) || (c.add(f), r[u][g].push(f));
|
|
931
931
|
}), l.forEach((a) => {
|
|
932
932
|
const u = r[a.provider][a.prefix];
|
|
@@ -1357,7 +1357,7 @@ const sn = {
|
|
|
1357
1357
|
}),
|
|
1358
1358
|
emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
|
|
1359
1359
|
setup(e, { emit: n }) {
|
|
1360
|
-
const t = e, o = n, r =
|
|
1360
|
+
const t = e, o = n, r = re(e, "modelValue"), l = w(() => !!t.errorMessage), i = w(() => l.value), s = Jt(), a = w(() => !!s.right), u = w(() => !!s.left), g = w(() => ({
|
|
1361
1361
|
input: !0,
|
|
1362
1362
|
[`input--${t.size}`]: !0,
|
|
1363
1363
|
"input--required": t.required,
|
|
@@ -1458,7 +1458,7 @@ const sn = {
|
|
|
1458
1458
|
}),
|
|
1459
1459
|
emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
|
|
1460
1460
|
setup(e, { emit: n }) {
|
|
1461
|
-
const t = e, o = n, r =
|
|
1461
|
+
const t = e, o = n, r = re(e, "modelValue"), l = Y(t.label || ""), i = Y(!1), s = Y(null), a = w(() => `cmc-autocomplete-${Me()}`), u = w(() => r.value ? t.items.filter(
|
|
1462
1462
|
(y) => y.toLowerCase().includes(r.value.toLowerCase())
|
|
1463
1463
|
) : t.items);
|
|
1464
1464
|
function g(y) {
|
|
@@ -1868,17 +1868,18 @@ const sn = {
|
|
|
1868
1868
|
shareholders: "shareholders",
|
|
1869
1869
|
suppliers: "suppliers",
|
|
1870
1870
|
students: "students"
|
|
1871
|
-
},
|
|
1871
|
+
}, ne = {
|
|
1872
1872
|
bronze: "bronze",
|
|
1873
1873
|
silver: "silver",
|
|
1874
1874
|
gold: "gold",
|
|
1875
|
-
platinum: "platinum"
|
|
1875
|
+
platinum: "platinum",
|
|
1876
|
+
unranked: "unranked"
|
|
1876
1877
|
}, Dn = "#111118", Tn = "#0302F5", Gn = "#E6007E", Hn = "#FC435C", Bn = "#19BAA3", Nn = "#009FE3", Un = "#739099", qn = "#82368C", jn = ["innerHTML"], fr = /* @__PURE__ */ b({
|
|
1877
1878
|
name: "CmcCertificate",
|
|
1878
1879
|
__name: "CmcCertificate",
|
|
1879
1880
|
props: {
|
|
1880
1881
|
primaryType: { default: B.employees },
|
|
1881
|
-
rank: { default:
|
|
1882
|
+
rank: { default: ne.bronze },
|
|
1882
1883
|
period: { default: 2026 },
|
|
1883
1884
|
country: { default: "France" },
|
|
1884
1885
|
width: { default: 300 },
|
|
@@ -1886,22 +1887,22 @@ const sn = {
|
|
|
1886
1887
|
},
|
|
1887
1888
|
setup(e) {
|
|
1888
1889
|
const n = e, t = {
|
|
1889
|
-
[
|
|
1890
|
+
[ne.bronze]: {
|
|
1890
1891
|
color: "#9F612D",
|
|
1891
1892
|
gradient: "gradient-bronze-text",
|
|
1892
1893
|
className: "rank-bronze"
|
|
1893
1894
|
},
|
|
1894
|
-
[
|
|
1895
|
+
[ne.silver]: {
|
|
1895
1896
|
color: "#868686",
|
|
1896
1897
|
gradient: "gradient-silver-text",
|
|
1897
1898
|
className: "rank-silver"
|
|
1898
1899
|
},
|
|
1899
|
-
[
|
|
1900
|
+
[ne.gold]: {
|
|
1900
1901
|
color: "#D39B0D",
|
|
1901
1902
|
gradient: "gradient-gold-text",
|
|
1902
1903
|
className: "rank-gold"
|
|
1903
1904
|
},
|
|
1904
|
-
[
|
|
1905
|
+
[ne.platinum]: {
|
|
1905
1906
|
color: "#ADAA97",
|
|
1906
1907
|
gradient: "gradient-platinum-text",
|
|
1907
1908
|
className: "rank-platinum"
|
|
@@ -1916,7 +1917,7 @@ const sn = {
|
|
|
1916
1917
|
[B.suppliers]: Nn
|
|
1917
1918
|
}, r = w(() => o[n.primaryType]), l = w(() => {
|
|
1918
1919
|
let i = On;
|
|
1919
|
-
if (n.primaryType === B.employees) {
|
|
1920
|
+
if (n.primaryType === B.employees && n.rank !== ne.unranked) {
|
|
1920
1921
|
i = i.replace(/separator-2"/g, 'separator-2" style="opacity:0"').replace(
|
|
1921
1922
|
/class="background-circle-rank" opacity="0"/g,
|
|
1922
1923
|
'class="background-circle-rank"'
|
|
@@ -1967,7 +1968,7 @@ const Wn = /* @__PURE__ */ $(Kn, [["render", Qn]]), Yn = ["id", "disabled", "req
|
|
|
1967
1968
|
}),
|
|
1968
1969
|
emits: ["update:modelValue"],
|
|
1969
1970
|
setup(e) {
|
|
1970
|
-
const n = e, t =
|
|
1971
|
+
const n = e, t = re(e, "modelValue"), o = w(() => n.id || `cmc-checkbox-${Me()}`), r = w(() => ({
|
|
1971
1972
|
checkbox: !0,
|
|
1972
1973
|
"checkbox--disabled": n.disabled,
|
|
1973
1974
|
"checkbox--required": n.required
|
|
@@ -2015,35 +2016,35 @@ const Wn = /* @__PURE__ */ $(Kn, [["render", Qn]]), Yn = ["id", "disabled", "req
|
|
|
2015
2016
|
D(Q).h1 === n.level ? (L(), h("h1", {
|
|
2016
2017
|
key: 0,
|
|
2017
2018
|
class: R(t.value),
|
|
2018
|
-
style:
|
|
2019
|
+
style: le({ color: n.color })
|
|
2019
2020
|
}, [
|
|
2020
2021
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2021
2022
|
], 6)) : P("", !0),
|
|
2022
2023
|
D(Q).h2 === n.level ? (L(), h("h2", {
|
|
2023
2024
|
key: 1,
|
|
2024
2025
|
class: R(t.value),
|
|
2025
|
-
style:
|
|
2026
|
+
style: le({ color: n.color })
|
|
2026
2027
|
}, [
|
|
2027
2028
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2028
2029
|
], 6)) : P("", !0),
|
|
2029
2030
|
D(Q).h3 === n.level ? (L(), h("h3", {
|
|
2030
2031
|
key: 2,
|
|
2031
2032
|
class: R(t.value),
|
|
2032
|
-
style:
|
|
2033
|
+
style: le({ color: n.color })
|
|
2033
2034
|
}, [
|
|
2034
2035
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2035
2036
|
], 6)) : P("", !0),
|
|
2036
2037
|
D(Q).h4 === n.level ? (L(), h("h4", {
|
|
2037
2038
|
key: 3,
|
|
2038
2039
|
class: R(t.value),
|
|
2039
|
-
style:
|
|
2040
|
+
style: le({ color: n.color })
|
|
2040
2041
|
}, [
|
|
2041
2042
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2042
2043
|
], 6)) : P("", !0),
|
|
2043
2044
|
D(Q).h5 === n.level ? (L(), h("h5", {
|
|
2044
2045
|
key: 4,
|
|
2045
2046
|
class: R(t.value),
|
|
2046
|
-
style:
|
|
2047
|
+
style: le({ color: n.color })
|
|
2047
2048
|
}, [
|
|
2048
2049
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2049
2050
|
], 6)) : P("", !0)
|
|
@@ -2209,7 +2210,7 @@ const v1 = /* @__PURE__ */ $(L1, [["render", y1]]), _1 = {
|
|
|
2209
2210
|
}),
|
|
2210
2211
|
emits: ["update:modelValue"],
|
|
2211
2212
|
setup(e) {
|
|
2212
|
-
const n = e, t =
|
|
2213
|
+
const n = e, t = re(e, "modelValue"), o = w(() => [
|
|
2213
2214
|
"search-bar",
|
|
2214
2215
|
`search-bar--${n.size}`,
|
|
2215
2216
|
n.variant ? `search-bar--${n.variant}` : null
|
|
@@ -2273,7 +2274,7 @@ const v1 = /* @__PURE__ */ $(L1, [["render", y1]]), _1 = {
|
|
|
2273
2274
|
}),
|
|
2274
2275
|
emits: ["update:modelValue"],
|
|
2275
2276
|
setup(e) {
|
|
2276
|
-
const n = e, t =
|
|
2277
|
+
const n = e, t = re(e, "modelValue"), o = w(() => !!n.errorMessage), r = w(() => ({
|
|
2277
2278
|
select: !0,
|
|
2278
2279
|
"select--disabled": n.disabled,
|
|
2279
2280
|
"select--error": o.value,
|
|
@@ -4324,7 +4325,7 @@ const Do = ["aria-sort"], To = /* @__PURE__ */ b({
|
|
|
4324
4325
|
}),
|
|
4325
4326
|
emits: ["update:modelValue"],
|
|
4326
4327
|
setup(e) {
|
|
4327
|
-
const n = e, t =
|
|
4328
|
+
const n = e, t = re(e, "modelValue"), o = w(() => n.id || `cmc-toggle-${Me()}`), r = w(() => ({
|
|
4328
4329
|
toggle: !0,
|
|
4329
4330
|
[`toggle--${n.size}`]: !0,
|
|
4330
4331
|
"toggle--disabled": n.disabled,
|
|
@@ -4450,7 +4451,7 @@ export {
|
|
|
4450
4451
|
ze as inputTypeOptions,
|
|
4451
4452
|
fe as inputVariantOptions,
|
|
4452
4453
|
B as primaryTypeOptions,
|
|
4453
|
-
|
|
4454
|
+
ne as rankOptions,
|
|
4454
4455
|
pe as selectVariantOptions,
|
|
4455
4456
|
N1 as statusOptions
|
|
4456
4457
|
};
|