@1024pix/epreuves-components 2.7.0 → 2.8.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.
Files changed (43) hide show
  1. package/dist/Button.ce-D1_fAhqr.js +18 -0
  2. package/dist/{ButtonTooltip.ce-DEM9f3-P.js → ButtonTooltip.ce-BjlMn9Ez.js} +15 -15
  3. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js +73 -0
  4. package/dist/{LLMMessage.ce-DwOPdJ8T.js → LLMMessage.ce-B4Tg1zsn.js} +2 -2
  5. package/dist/{Loading.ce-izx3gVg1.js → Loading.ce-S-dh_E78.js} +1 -1
  6. package/dist/{NavigationButton.ce-D6OhsRmN.js → NavigationButton.ce-DRBC3gta.js} +2 -2
  7. package/dist/{Retry-ByvFpG1J.js → Retry-CoaWKuPG.js} +1 -1
  8. package/dist/{_plugin-vue_export-helper-BcRm04ZH.js → _plugin-vue_export-helper-BPDEgOal.js} +1711 -1618
  9. package/dist/components/calcul-impact.ce.js.js +42 -42
  10. package/dist/components/capacity-calculation.ce.js.js +70 -70
  11. package/dist/components/clickable-image.ce.js.js +14 -14
  12. package/dist/components/complete-phrase.ce.js.js +34 -34
  13. package/dist/components/flip-cards.ce.js.js +1 -1
  14. package/dist/components/image-quiz.ce.js.js +4 -3
  15. package/dist/components/image-quizzes.ce.js.js +18 -17
  16. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  17. package/dist/components/llm-messages.ce.js.js +3 -3
  18. package/dist/components/llm-prompt-select.ce.js.js +1 -1
  19. package/dist/components/mdp-classement.ce.js.js +219 -0
  20. package/dist/components/message-conversation.ce.js.js +11 -11
  21. package/dist/components/mobile-shell.ce.js.js +1 -1
  22. package/dist/components/phishing-message.ce.js.js +61 -61
  23. package/dist/components/phishing-notification.ce.js.js +85 -85
  24. package/dist/components/pix-anonymisation.ce.js.js +85 -97
  25. package/dist/components/pix-article.ce.js.js +18 -18
  26. package/dist/components/pix-carousel.ce.js.js +86 -86
  27. package/dist/components/pix-cursor.ce.js.js +50 -50
  28. package/dist/components/qcm-deepfake.ce.js.js +55 -55
  29. package/dist/components/quiz-stepper.ce.js.js +105 -113
  30. package/dist/components/select-conversation.ce.js.js +41 -41
  31. package/dist/components/template-mail.ce.js.js +165 -0
  32. package/dist/components/test-top-mdp.ce.js.js +146 -0
  33. package/dist/components/trouver-mdp-rs.ce.js.js +758 -0
  34. package/dist/{i18n-DTnP_5xC.js → i18n-BuCPzaih.js} +9 -9
  35. package/dist/i18n-lite-DBVKHY8J.js +86 -0
  36. package/dist/image-quiz.ce-CXOFcx1H.js +182 -0
  37. package/dist/index.js +9 -5
  38. package/dist/metadata.js +38 -22
  39. package/dist/schema.js +86 -40
  40. package/dist/{shadow-dom-C8cgdiLH.js → shadow-dom-By5w43W7.js} +1 -1
  41. package/dist/shuffled-B8VGTceh.js +19 -0
  42. package/package.json +1 -1
  43. package/dist/image-quiz.ce-DWyp9j81.js +0 -242
@@ -0,0 +1,18 @@
1
+ import { d as e, c as s, o as t, n as d, g as n, _ as r } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
+ const i = ["aria-disabled"], l = /* @__PURE__ */ e({
3
+ __name: "Button.ce",
4
+ props: {
5
+ isDisabled: { type: Boolean }
6
+ },
7
+ setup(a) {
8
+ return (o, u) => (t(), s("button", {
9
+ "aria-disabled": a.isDisabled,
10
+ class: d({ "is-disabled": a.isDisabled })
11
+ }, [
12
+ n(o.$slots, "default", {}, void 0, !0)
13
+ ], 10, i));
14
+ }
15
+ }), c = "button[data-v-a5fa59a1]{padding:8px 24px;border-radius:8px;background:#253858;border:none;color:#fff}button[data-v-a5fa59a1]:hover{cursor:pointer;background:#334d77}button.is-disabled[data-v-a5fa59a1]{background:#25385880;cursor:not-allowed}", p = /* @__PURE__ */ r(l, [["styles", [c]], ["__scopeId", "data-v-a5fa59a1"]]);
16
+ export {
17
+ p as B
18
+ };
@@ -1,5 +1,5 @@
1
- import { d as h, r as b, g as f, c as v, o as u, a as n, n as w, h as s, t as g, m, i as x, j as y, _ as k } from "./_plugin-vue_export-helper-BcRm04ZH.js";
2
- const z = { class: "tooltip-container" }, B = ["id"], $ = ["aria-labelledby", "aria-disabled"], C = /* @__PURE__ */ h({
1
+ import { d as f, r as u, h as v, j as w, c as g, o as m, a as n, n as x, k as s, t as y, m as k, l as z, g as B, _ as $ } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
+ const C = { class: "tooltip-container" }, S = ["id"], T = ["aria-labelledby", "aria-disabled"], Y = /* @__PURE__ */ f({
3
3
  inheritAttrs: !1,
4
4
  __name: "ButtonTooltip.ce",
5
5
  props: {
@@ -8,37 +8,37 @@ const z = { class: "tooltip-container" }, B = ["id"], $ = ["aria-labelledby", "a
8
8
  tooltipPosition: { default: "top", type: String }
9
9
  },
10
10
  emits: ["click"],
11
- setup(o, { emit: p }) {
12
- const i = b(!0), l = f(), d = p;
11
+ setup(o, { expose: p, emit: d }) {
12
+ const i = u(!0), l = v(), c = w("button"), b = d;
13
13
  function r(a) {
14
14
  i.value = a;
15
15
  }
16
- function c() {
17
- o.disabled || d("click");
16
+ function h() {
17
+ o.disabled || b("click");
18
18
  }
19
- return (a, t) => (u(), v("div", z, [
19
+ return p({ button: c }), (a, t) => (m(), g("div", C, [
20
20
  n("p", {
21
21
  id: s(l),
22
- class: w(["tooltip", {
22
+ class: x(["tooltip", {
23
23
  "sr-only": i.value || o.disabled,
24
24
  [`${o.tooltipPosition}`]: !0
25
25
  }])
26
- }, g(o.label), 11, B),
27
- n("button", m(a.$attrs, {
26
+ }, y(o.label), 11, S),
27
+ n("button", k({ ref: "button" }, a.$attrs, {
28
28
  onMouseenter: t[0] || (t[0] = (e) => r(!1)),
29
29
  onMouseleave: t[1] || (t[1] = (e) => r(!0)),
30
30
  onFocusin: t[2] || (t[2] = (e) => r(!1)),
31
31
  onFocusout: t[3] || (t[3] = (e) => r(!0)),
32
- onClick: x(c, ["stop"]),
32
+ onClick: z(h, ["stop"]),
33
33
  "aria-labelledby": s(l),
34
34
  "aria-disabled": o.disabled,
35
35
  class: { disabled: o.disabled }
36
36
  }), [
37
- y(a.$slots, "default")
38
- ], 16, $)
37
+ B(a.$slots, "default")
38
+ ], 16, T)
39
39
  ]));
40
40
  }
41
- }), S = '*{--pix-neutral-800: #253858}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.tooltip-container{position:relative;display:grid}.tooltip-container .tooltip{position:absolute;padding:5px 7px;background:var(--pix-neutral-800);color:#fff;border-radius:4px;z-index:400;margin:0;--horizontal-shift: 12px;--tooltip-gap: 1px;--arrow-height: 6px;--arrow-width: 5px}.tooltip-container .tooltip:before{content:"";position:absolute}.tooltip-container .tooltip.top{bottom:calc(100% + var(--tooltip-gap) + var(--arrow-height));left:50%;transform:translate(calc(var(--horizontal-shift) * -1))}.tooltip-container .tooltip.top:before{top:100%;left:calc(var(--horizontal-shift) - var(--arrow-width));border-right:var(--arrow-width) solid transparent;border-left:var(--arrow-width) solid transparent;border-top:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.bottom{top:calc(100% + var(--tooltip-gap) + var(--arrow-height));left:50%;transform:translate(calc(var(--horizontal-shift) * -1))}.tooltip-container .tooltip.bottom:before{bottom:100%;left:calc(var(--horizontal-shift) - var(--arrow-width));border-right:var(--arrow-width) solid transparent;border-left:var(--arrow-width) solid transparent;border-bottom:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.left{right:calc(100% + var(--tooltip-gap) + var(--arrow-height));top:50%;transform:translateY(-50%)}.tooltip-container .tooltip.left:before{left:100%;top:50%;transform:translateY(-50%);border-top:var(--arrow-width) solid transparent;border-bottom:var(--arrow-width) solid transparent;border-left:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.right{left:calc(100% + var(--tooltip-gap) + var(--arrow-height));top:50%;transform:translateY(-50%)}.tooltip-container .tooltip.right:before{right:100%;top:50%;transform:translateY(-50%);border-top:var(--arrow-width) solid transparent;border-bottom:var(--arrow-width) solid transparent;border-right:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container button:hover{cursor:pointer}.tooltip-container button.disabled{color:#797e89;cursor:not-allowed;border-color:transparent;background:transparent}', M = /* @__PURE__ */ k(C, [["styles", [S]]]);
41
+ }), M = '*{--pix-neutral-800: #253858}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.tooltip-container{position:relative;display:grid}.tooltip-container .tooltip{position:absolute;padding:5px 7px;background:var(--pix-neutral-800);color:#fff;border-radius:4px;z-index:400;margin:0;--horizontal-shift: 12px;--tooltip-gap: 1px;--arrow-height: 6px;--arrow-width: 5px}.tooltip-container .tooltip:before{content:"";position:absolute}.tooltip-container .tooltip.top{bottom:calc(100% + var(--tooltip-gap) + var(--arrow-height));left:50%;transform:translate(calc(var(--horizontal-shift) * -1))}.tooltip-container .tooltip.top:before{top:100%;left:calc(var(--horizontal-shift) - var(--arrow-width));border-right:var(--arrow-width) solid transparent;border-left:var(--arrow-width) solid transparent;border-top:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.bottom{top:calc(100% + var(--tooltip-gap) + var(--arrow-height));left:50%;transform:translate(calc(var(--horizontal-shift) * -1))}.tooltip-container .tooltip.bottom:before{bottom:100%;left:calc(var(--horizontal-shift) - var(--arrow-width));border-right:var(--arrow-width) solid transparent;border-left:var(--arrow-width) solid transparent;border-bottom:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.left{right:calc(100% + var(--tooltip-gap) + var(--arrow-height));top:50%;transform:translateY(-50%)}.tooltip-container .tooltip.left:before{left:100%;top:50%;transform:translateY(-50%);border-top:var(--arrow-width) solid transparent;border-bottom:var(--arrow-width) solid transparent;border-left:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container .tooltip.right{left:calc(100% + var(--tooltip-gap) + var(--arrow-height));top:50%;transform:translateY(-50%)}.tooltip-container .tooltip.right:before{right:100%;top:50%;transform:translateY(-50%);border-top:var(--arrow-width) solid transparent;border-bottom:var(--arrow-width) solid transparent;border-right:var(--arrow-height) solid var(--pix-neutral-800)}.tooltip-container button:hover{cursor:pointer}.tooltip-container button.disabled{color:#797e89;cursor:not-allowed;border-color:transparent;background:transparent}', F = /* @__PURE__ */ $(Y, [["styles", [M]]]);
42
42
  export {
43
- M as B
43
+ F as B
44
44
  };
@@ -0,0 +1,73 @@
1
+ import { d as o, c as s, o as c, a as n, g as a, H as i, t as d, _ as l } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
+ const _ = {
3
+ class: "feedback-container",
4
+ "aria-live": "polite"
5
+ }, p = { class: "feedback-container__title" }, f = { class: "feedback-container__content" }, k = /* @__PURE__ */ o({
6
+ __name: "Feedback.ce",
7
+ props: {
8
+ title: { type: String }
9
+ },
10
+ setup(e) {
11
+ return (t, r) => (c(), s("div", _, [
12
+ n("p", p, [
13
+ a(t.$slots, "icon", { class: "icon" }),
14
+ i(" " + d(e.title), 1)
15
+ ]),
16
+ n("p", f, [
17
+ a(t.$slots, "content")
18
+ ])
19
+ ]));
20
+ }
21
+ }), h = ".feedback-container{font-size:.875em;width:100%}.feedback-container .icon{width:16px;height:16px}.feedback-container__title{display:flex;width:fit-content;padding:4px 8px;justify-content:center;align-items:center;gap:8px;border-radius:8px 8px 0 0;background:#1f53b5;color:#fff;margin:0;font-weight:700}.feedback-container__content{padding:8px;border-radius:0 8px 8px;background:#eaf1ff;margin:0}", w = /* @__PURE__ */ l(k, [["styles", [h]]]), u = {
22
+ viewBox: "0 0 16 16",
23
+ fill: "none"
24
+ }, g = ["stroke"], y = /* @__PURE__ */ o({
25
+ __name: "Check.ce",
26
+ props: {
27
+ color: { type: String }
28
+ },
29
+ setup(e) {
30
+ return (t, r) => (c(), s("svg", u, [
31
+ n("path", {
32
+ d: `
33
+ M 3, 8
34
+ L 7, 12
35
+ L 13, 4
36
+ `,
37
+ stroke: e.color ? e.color : "#fff",
38
+ "stroke-width": "1.5",
39
+ "stroke-linecap": "round",
40
+ "stroke-linejoin": "round"
41
+ }, null, 8, g)
42
+ ]));
43
+ }
44
+ }), x = {
45
+ viewBox: "0 0 16 16",
46
+ fill: "none"
47
+ }, b = ["stroke"], $ = /* @__PURE__ */ o({
48
+ __name: "Cross.ce",
49
+ props: {
50
+ color: { type: String }
51
+ },
52
+ setup(e) {
53
+ return (t, r) => (c(), s("svg", x, [
54
+ n("path", {
55
+ d: `
56
+ M 4, 4
57
+ L 12, 12
58
+ M 4, 12
59
+ L 12, 4
60
+ `,
61
+ stroke: e.color ? e.color : "#fff",
62
+ "stroke-width": "1.5",
63
+ "stroke-linecap": "round",
64
+ "stroke-linejoin": "round"
65
+ }, null, 8, b)
66
+ ]));
67
+ }
68
+ });
69
+ export {
70
+ w as F,
71
+ y as _,
72
+ $ as a
73
+ };
@@ -1,5 +1,5 @@
1
- import { _ as a, c as r, o as s, a as b, d as i, y as n, n as d, e as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-BcRm04ZH.js";
2
- import { L as p } from "./Loading.ce-izx3gVg1.js";
1
+ import { _ as a, c as r, o as s, a as b, d as i, y as n, n as d, e as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
+ import { L as p } from "./Loading.ce-S-dh_E78.js";
3
3
  const f = {}, C = {
4
4
  height: "1rem",
5
5
  width: "auto",
@@ -1,4 +1,4 @@
1
- import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-BcRm04ZH.js";
1
+ import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
2
  const n = ".loader{width:8px;aspect-ratio:1;border-radius:50%;animation:l5 1s infinite linear alternate;transform:translate(100%)}.sr-only{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes l5{0%{box-shadow:13px 0 #000,-13px 0 #0002;background:#000}33%{box-shadow:13px 0 #000,-13px 0 #0002;background:#0002}66%{box-shadow:13px 0 #0002,-13px 0 #000;background:#0002}to{box-shadow:13px 0 #0002,-13px 0 #000;background:#000}}@media(prefers-reduced-motion:reduce){.loader{display:none}}", t = {}, d = {
3
3
  class: "loader",
4
4
  role: "alert"
@@ -1,5 +1,5 @@
1
- import { B as a } from "./ButtonTooltip.ce-DEM9f3-P.js";
2
- import { _ as o, c as l, o as i, a as s, d as c, e as n, K as d } from "./_plugin-vue_export-helper-BcRm04ZH.js";
1
+ import { B as a } from "./ButtonTooltip.ce-BjlMn9Ez.js";
2
+ import { _ as o, c as l, o as i, a as s, d as c, e as n, K as d } from "./_plugin-vue_export-helper-BPDEgOal.js";
3
3
  const C = {}, p = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "16",
@@ -1,4 +1,4 @@
1
- import { _ as e, c as t, o as r, a as o } from "./_plugin-vue_export-helper-BcRm04ZH.js";
1
+ import { _ as e, c as t, o as r, a as o } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
2
  const s = {}, n = {
3
3
  width: "20",
4
4
  height: "20",