@1024pix/epreuves-components 0.8.1 → 0.9.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/{ImageQuiz.ce-gJc1nZ2d.js → ImageQuiz.ce-BCKCN6z2.js} +9 -9
- package/dist/{LLMMessage.ce-BN3kkTnG.js → LLMMessage.ce-Bwysr0wG.js} +1 -1
- package/dist/NavigationButton.ce-CG654eMo.js +1502 -0
- package/dist/_plugin-vue_export-helper-IFwZcQZF.js +4179 -0
- 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 +2 -2
- package/dist/components/llm-messages.ce.js.js +2 -2
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/message-conversation.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +140 -1624
- package/dist/components/pix-cursor.ce.js.js +131 -0
- package/dist/index.js +1 -0
- package/dist/metadata.js +18 -12
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-FiywpteF.js +0 -4125
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as B, r as N, k as I, c as d, o as m,
|
|
2
|
-
function
|
|
1
|
+
import { a as B, r as N, k as I, c as d, o as m, z as b, y as f, p as g, q as y, f as h, m as q, t as x, _ as P, l as p, A as L, B as F, F as k, b as O, e as A } from "./_plugin-vue_export-helper-IFwZcQZF.js";
|
|
2
|
+
function M(i, u = T) {
|
|
3
3
|
const a = [...i];
|
|
4
4
|
for (let n = a.length - 1; n > 0; n--) {
|
|
5
5
|
const l = u() % (n + 1);
|
|
@@ -7,7 +7,7 @@ function T(i, u = A) {
|
|
|
7
7
|
}
|
|
8
8
|
return a;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function T() {
|
|
11
11
|
return Math.floor(Math.random() * 2 ** 32);
|
|
12
12
|
}
|
|
13
13
|
const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R = ["id"], D = ["id"], E = /* @__PURE__ */ B({
|
|
@@ -72,7 +72,7 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
|
|
|
72
72
|
},
|
|
73
73
|
emits: ["answer"],
|
|
74
74
|
setup(i, { emit: u }) {
|
|
75
|
-
const a = u, n = p(() => i.hideChoicesName ? "sr-only" : ""), l = p(() => i.orderChoices ? i.choices :
|
|
75
|
+
const a = u, n = p(() => i.hideChoicesName ? "sr-only" : ""), l = p(() => i.orderChoices ? i.choices : M(i.choices)), s = N(new Array(i.choices.length).fill(!1)), o = p(() => l.value.filter((e, $) => s.value[$])), t = p(() => o.value.map((e) => e.response ?? e.name).sort().join(",")), r = I();
|
|
76
76
|
L(t, () => {
|
|
77
77
|
a("answer", t.value);
|
|
78
78
|
}, { immediate: !1 });
|
|
@@ -86,7 +86,7 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
|
|
|
86
86
|
function C(e) {
|
|
87
87
|
e = (e + i.choices.length) % i.choices.length, i.multiple || w(e), v.value[e].focus();
|
|
88
88
|
}
|
|
89
|
-
return (e, $) => (m(), d(
|
|
89
|
+
return (e, $) => (m(), d(k, null, [
|
|
90
90
|
h("label", {
|
|
91
91
|
id: g(r),
|
|
92
92
|
class: y(["image-quiz-label", { "sr-only": !e.showName }])
|
|
@@ -98,7 +98,7 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
|
|
|
98
98
|
"aria-labelledby": g(r),
|
|
99
99
|
"aria-orientation": "horizontal"
|
|
100
100
|
}, [
|
|
101
|
-
(m(!0), d(
|
|
101
|
+
(m(!0), d(k, null, O(l.value, (j, c) => (m(), A(G, {
|
|
102
102
|
ref_for: !0,
|
|
103
103
|
ref_key: "options",
|
|
104
104
|
ref: v,
|
|
@@ -109,9 +109,9 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
|
|
|
109
109
|
"image-class": i.imageChoicesSize,
|
|
110
110
|
selected: s.value[c],
|
|
111
111
|
"tab-focusable": c === S.value,
|
|
112
|
-
onToggle: (
|
|
113
|
-
onNext: (
|
|
114
|
-
onPrevious: (
|
|
112
|
+
onToggle: (z) => w(c),
|
|
113
|
+
onNext: (z) => C(c + 1),
|
|
114
|
+
onPrevious: (z) => C(c - 1)
|
|
115
115
|
}, null, 8, ["choice", "max-choices-per-line", "name-class", "image-class", "selected", "tab-focusable", "onToggle", "onNext", "onPrevious"]))), 128))
|
|
116
116
|
], 8, J)
|
|
117
117
|
], 64));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Pt,
|
|
1
|
+
import { a as Pt, l as L, A as m2, D as p2, E as h2, G as g2, H as b2, C as y2, c as me, o as pe, q as v2, f as he, x as Ke, g as x2, t as k2, p as qe, _ as w2 } from "./_plugin-vue_export-helper-IFwZcQZF.js";
|
|
2
2
|
/*!
|
|
3
3
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
4
4
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|