@1024pix/epreuves-components 0.9.3 → 0.9.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/{ImageQuiz.ce-BCKCN6z2.js → ImageQuiz.ce-CyuIHq11.js} +9 -9
- package/dist/LLMMessage.ce-CrEM5b3d.js +3158 -0
- package/dist/{NavigationButton.ce-CG654eMo.js → NavigationButton.ce-qPk4D7sx.js} +2 -2
- package/dist/{_plugin-vue_export-helper-IFwZcQZF.js → _plugin-vue_export-helper-CGraGJnO.js} +707 -702
- 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 +24 -27
- package/dist/components/llm-messages.ce.js.js +10 -10
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/message-conversation.ce.js.js +72 -55
- package/dist/components/pix-carousel.ce.js.js +6 -6
- package/dist/components/pix-cursor.ce.js.js +71 -66
- package/package.json +1 -1
- package/dist/LLMMessage.ce-Bwysr0wG.js +0 -3120
|
@@ -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, l as b, n as f, p as g, q as y, f as h, m as q, t as x, _ as P, s as p, v as L, x as F, F as z, b as O, e as M } from "./_plugin-vue_export-helper-CGraGJnO.js";
|
|
2
|
+
function T(i, u = A) {
|
|
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 M(i, u = T) {
|
|
|
7
7
|
}
|
|
8
8
|
return a;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function A() {
|
|
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 : T(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(z, 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(z, null, O(l.value, (j, c) => (m(), M(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: (k) => w(c),
|
|
113
|
+
onNext: (k) => C(c + 1),
|
|
114
|
+
onPrevious: (k) => 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));
|