@1024pix/epreuves-components 2.2.2 → 2.2.5
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/{LLMMessage.ce-DSYjzT9g.js → LLMMessage.ce-qbRxqNxR.js} +4 -4
- package/dist/{Loading.ce-DmUVuFq5.js → Loading.ce-CiVWBT3g.js} +1 -1
- package/dist/{NavigationButton.ce-COLdN-XJ.js → NavigationButton.ce-DF5ScHc4.js} +8 -8
- package/dist/{Retry-Df6WpF65.js → Retry-CuUMOAZi.js} +1 -1
- package/dist/{_plugin-vue_export-helper-b0PKqEbd.js → _plugin-vue_export-helper-D7ghZaw4.js} +374 -369
- package/dist/components/calcul-impact.ce.js.js +4 -4
- package/dist/components/capacity-calculation.ce.js.js +25 -25
- package/dist/components/clickable-image.ce.js.js +1 -1
- package/dist/components/complete-phrase.ce.js.js +10 -10
- package/dist/components/flip-cards.ce.js.js +7 -7
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +2 -2
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +6 -6
- package/dist/components/message-conversation.ce.js.js +13 -13
- package/dist/components/mobile-shell.ce.js.js +27 -0
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-cursor.ce.js.js +19 -19
- package/dist/components/qcm-deepfake.ce.js.js +25 -25
- package/dist/{i18n-DwNjk2PP.js → i18n-DX3ApBSH.js} +53 -53
- package/dist/{image-quiz.ce-DbLH3Dkt.js → image-quiz.ce-3HDl6Z67.js} +10 -10
- package/dist/index.js +1 -1
- package/dist/schema.js +1 -1
- package/dist/{shadow-dom-CG-UQz_W.js → shadow-dom-CFAQERh6.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as B, r as I,
|
|
1
|
+
import { d as B, r as I, L, c as g, o as u, J as x, q as p, x as f, y as b, a as h, m as T, A as $, _ as N, k as d, M as E, g as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
2
|
import { u as K, a as R } from "./normalize-props-AlmAfi_u.js";
|
|
3
3
|
function D(e, s = J) {
|
|
4
4
|
const a = [...e];
|
|
@@ -28,7 +28,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
|
|
|
28
28
|
o.value.focus();
|
|
29
29
|
}
|
|
30
30
|
s({ focus: l });
|
|
31
|
-
const n =
|
|
31
|
+
const n = L();
|
|
32
32
|
return (c, t) => (u(), g("div", {
|
|
33
33
|
ref_key: "el",
|
|
34
34
|
ref: o,
|
|
@@ -59,7 +59,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
|
|
|
59
59
|
}, $(e.choice.name), 9, W))
|
|
60
60
|
], 42, V));
|
|
61
61
|
}
|
|
62
|
-
}), Y = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', Z = /* @__PURE__ */
|
|
62
|
+
}), Y = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ B({
|
|
63
63
|
__name: "ImageQuiz.ce",
|
|
64
64
|
props: {
|
|
65
65
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -73,7 +73,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["answer"],
|
|
75
75
|
setup(e, { emit: s }) {
|
|
76
|
-
const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r =
|
|
76
|
+
const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = L();
|
|
77
77
|
E(t, () => {
|
|
78
78
|
a("answer", t.value);
|
|
79
79
|
}, { immediate: !1 });
|
|
@@ -118,7 +118,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
|
|
|
118
118
|
], 8, ee)
|
|
119
119
|
], 64));
|
|
120
120
|
}
|
|
121
|
-
}), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", j = /* @__PURE__ */
|
|
121
|
+
}), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", j = /* @__PURE__ */ N(ie, [["styles", [te]]]);
|
|
122
122
|
function S(e) {
|
|
123
123
|
return {
|
|
124
124
|
...e,
|
|
@@ -129,12 +129,12 @@ function S(e) {
|
|
|
129
129
|
}))
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
q.prototype.normalizeProps = S;
|
|
134
|
-
window.customElements.define("image-quiz", q);
|
|
135
|
-
const M = L(j);
|
|
132
|
+
const M = P(j);
|
|
136
133
|
M.prototype.normalizeProps = S;
|
|
137
|
-
window.customElements.define("
|
|
134
|
+
window.customElements.define("image-quiz", M);
|
|
135
|
+
const q = P(j);
|
|
136
|
+
q.prototype.normalizeProps = S;
|
|
137
|
+
window.customElements.define("qcu-image", q);
|
|
138
138
|
export {
|
|
139
139
|
j as I,
|
|
140
140
|
S as n
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./components/capacity-calculation.ce.js.js";
|
|
|
3
3
|
import "./components/clickable-image.ce.js.js";
|
|
4
4
|
import "./components/complete-phrase.ce.js.js";
|
|
5
5
|
import "./components/flip-cards.ce.js.js";
|
|
6
|
-
import "./image-quiz.ce-
|
|
6
|
+
import "./image-quiz.ce-3HDl6Z67.js";
|
|
7
7
|
import "./components/image-quizzes.ce.js.js";
|
|
8
8
|
import "./components/message-conversation.ce.js.js";
|
|
9
9
|
import "./components/pix-article.ce.js.js";
|
package/dist/schema.js
CHANGED
|
@@ -125,7 +125,7 @@ const n = e.object({
|
|
|
125
125
|
randomSlides: e.boolean().required(),
|
|
126
126
|
titleLevel: e.number().integer().optional(),
|
|
127
127
|
disableAnimation: e.boolean().required(),
|
|
128
|
-
|
|
128
|
+
enableLoop: e.boolean().optional(),
|
|
129
129
|
imageTextDisplay: e.string().optional()
|
|
130
130
|
}).meta({ title: "pix-carousel" }).required(), h = e.object({
|
|
131
131
|
options: e.array().items(e.object({
|