ep-lib-ts 1.0.42 → 1.0.44
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/BgAudio-ByQMjvpb.js +4 -0
- package/dist/DisplayBox-5KOzK-T1.js +4 -0
- package/dist/Ep360Image-CQJBPImD.js +241 -0
- package/dist/{Ep360Video-b_stvC2Z.js → Ep360Video-CL_7mOiQ.js} +84 -77
- package/dist/EpAlert-9n3eGOzn.js +4 -0
- package/dist/EpAudio-DN-khrPL.js +4 -0
- package/dist/EpAvatar-CXQP2wql.js +4 -0
- package/dist/EpBadge-4MOToF_Q.js +4 -0
- package/dist/EpBarChart-D7YNa6L1.js +4 -0
- package/dist/EpBranchingScenario-vDe8SVyF.js +160 -0
- package/dist/EpBtn-CodZ5WkT.js +4 -0
- package/dist/EpCard-bxcDoveo.js +4 -0
- package/dist/EpCardLink-BpRg37fb.js +4 -0
- package/dist/EpChip-DyPsThQ7.js +4 -0
- package/dist/EpCodeblock-CTVen6ok.js +4 -0
- package/dist/EpConclusion-CZSpnFN3.js +4 -0
- package/dist/EpContentSlider-0KrwEp3v.js +4 -0
- package/dist/{EpDarkmode-DV9Z9xYJ.js → EpDarkmode-CM5E89Mq.js} +1 -1
- package/dist/EpDescription-BqAK-19p.js +4 -0
- package/dist/EpDivider-Cz2UczzO.js +4 -0
- package/dist/EpDraggable-DihYnwD-.js +1676 -0
- package/dist/EpEdu-Cb0syukg.js +4 -0
- package/dist/EpFlex-C9FQK2SA.js +4 -0
- package/dist/EpFunnelChart-DCiSFsse.js +4 -0
- package/dist/EpHeader-CzSF69pa.js +4 -0
- package/dist/EpHover-RZmDKnaw.js +4 -0
- package/dist/EpHoverCard-D6G0baOv.js +4 -0
- package/dist/EpIcon-Av0-zy17.js +4 -0
- package/dist/EpIframe-DW9zyLQo.js +4 -0
- package/dist/EpImg-CSHuR6qU.js +4 -0
- package/dist/EpImgCarousel-cIC103wg.js +4 -0
- package/dist/{EpInput-CZghcnDC.js → EpInput-DHrHSXzx.js} +29 -29
- package/dist/EpInstructions-K-kkygx5.js +4 -0
- package/dist/EpIntroduction-CQlFolxF.js +4 -0
- package/dist/EpLineChart-mWEJNhfP.js +4 -0
- package/dist/EpLink-ByArsF1O.js +4 -0
- package/dist/EpLinkVersion-D0l0gER1.js +4 -0
- package/dist/{EpList-ukdKbhdd.js → EpList-c0SMP53E.js} +1 -1
- package/dist/EpModal-CnTSNH-6.js +4 -0
- package/dist/{EpNothing-nZWACvB0.js → EpNothing-CT8_zyfI.js} +1 -1
- package/dist/EpObjective-CFUl1myw.js +4 -0
- package/dist/EpPieChart-D4gofeCO.js +4 -0
- package/dist/EpQuestion-DpEP1I3J.js +4 -0
- package/dist/EpQuote-D_a9FXrQ.js +4 -0
- package/dist/EpRadio-BPGeCsln.js +4 -0
- package/dist/EpRadioSummative-2GRkKBZC.js +4 -0
- package/dist/EpReading-b0gkhYIF.js +4 -0
- package/dist/EpResource-B1pFABU5.js +4 -0
- package/dist/EpScope-BQWyrqjD.js +4 -0
- package/dist/EpSection-CkXDsnuU.js +4 -0
- package/dist/EpSectionCols-BwC-XklV.js +4 -0
- package/dist/EpSkeleton-CfhwJtyP.js +4 -0
- package/dist/EpSoftware-c8ntWUO-.js +4 -0
- package/dist/EpSpecificObjective-D3mba6ZZ.js +4 -0
- package/dist/EpSpinner-G3e-rq8T.js +4 -0
- package/dist/EpStackedList-Bo0PTfJP.js +4 -0
- package/dist/EpSummativeTable-BumOFuw9.js +4 -0
- package/dist/EpSvg-D1zVHuRF.js +4 -0
- package/dist/EpSvgShow-CDYlL1_A.js +54 -0
- package/dist/EpTable-gr45PRwp.js +4 -0
- package/dist/EpTerm-CNfRoEdY.js +4 -0
- package/dist/EpText-DKuz6gcn.js +4 -0
- package/dist/EpTimeLine-O-XSTUsa.js +4 -0
- package/dist/EpVideo-DB3Kgada.js +4 -0
- package/dist/EpVideoPanopto-Vta3OP2y.js +4 -0
- package/dist/EpWordDef-CYOQAmor.js +4 -0
- package/dist/components/basics/EpImgCarousel.vue.d.ts +77 -0
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +1 -0
- package/dist/components/interactions/Ep360Image.vue.d.ts +1 -0
- package/dist/components/interactions/EpDraggable.vue.d.ts +26 -0
- package/dist/components/interactions/EpSvgShow.vue.d.ts +34 -0
- package/dist/components/medias/EpCardLink.vue.d.ts +4 -0
- package/dist/components/medias/EpCarousel.vue.d.ts +5 -0
- package/dist/ep-lib-ts.js +30 -30
- package/dist/ep-lib-ts.umd.cjs +4600 -4766
- package/dist/{index-BABRC_Ij.js → index-DtabYqi-.js} +1 -1
- package/dist/{index-DDAVtT-Z.js → index-hjRiaRG8.js} +3942 -3779
- package/dist/{prism-6uDYLnZo.js → prism-DpfMvZqf.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/three.module-CWLs6nMo.js +33752 -0
- package/dist/types/Draggable.d.ts +15 -0
- package/dist/types/Image.d.ts +5 -0
- package/package.json +4 -2
- package/src/components/basics/EpCard.vue +1 -1
- package/src/components/basics/EpImg.vue +1 -1
- package/src/components/basics/EpImgCarousel.vue +145 -0
- package/src/components/basics/EpText.vue +20 -18
- package/src/components/educationals/EpBranchingScenario.vue +15 -6
- package/src/components/educationals/EpReading.vue +3 -3
- package/src/components/interactions/Ep360Image.vue +32 -11
- package/src/components/interactions/Ep360Video.vue +15 -3
- package/src/components/interactions/EpDraggable.vue +192 -0
- package/src/components/interactions/EpSvgShow.vue +97 -0
- package/src/components/medias/EpCardLink.vue +51 -46
- package/src/components/medias/EpCarousel.vue +74 -11
- package/dist/BgAudio-B8TWhPS4.js +0 -4
- package/dist/DisplayBox-CVjM7CIK.js +0 -4
- package/dist/Ep360Image-Dmwx7NrY.js +0 -228
- package/dist/EpAlert-BL76x1nU.js +0 -4
- package/dist/EpAudio-C1oISf9P.js +0 -4
- package/dist/EpAvatar-BhbxoN3-.js +0 -4
- package/dist/EpBadge-CrFyRMYZ.js +0 -4
- package/dist/EpBarChart-BppGcLMQ.js +0 -4
- package/dist/EpBranchingScenario-B24j3QCB.js +0 -151
- package/dist/EpBtn-fVZ6TDv0.js +0 -4
- package/dist/EpCard-jyubSatC.js +0 -4
- package/dist/EpCardLink-DZSHjJtM.js +0 -4
- package/dist/EpChip-CnIScjK2.js +0 -4
- package/dist/EpCodeblock-C3sfk5vm.js +0 -4
- package/dist/EpConclusion-BMyRU6is.js +0 -4
- package/dist/EpContentSlider-DXuhYYCY.js +0 -4
- package/dist/EpDescription-DbyvVHqd.js +0 -4
- package/dist/EpDivider-DLNUbygt.js +0 -4
- package/dist/EpEdu-D8qKZwo4.js +0 -4
- package/dist/EpFlex-DERxMM1-.js +0 -4
- package/dist/EpFunnelChart-CaGjSoAy.js +0 -4
- package/dist/EpHeader-B0hVPn_n.js +0 -4
- package/dist/EpHover-XSJ4bqps.js +0 -4
- package/dist/EpHoverCard-EjNFyHQH.js +0 -4
- package/dist/EpIcon-D0W1dYE5.js +0 -4
- package/dist/EpIframe-BI4RWK0-.js +0 -4
- package/dist/EpImg-B4t8oZ4_.js +0 -4
- package/dist/EpInstructions-DWBai9-j.js +0 -4
- package/dist/EpIntroduction-C_zkEVjU.js +0 -4
- package/dist/EpLineChart-DHHtVVVK.js +0 -4
- package/dist/EpLink-CtdHaQpr.js +0 -4
- package/dist/EpLinkVersion-3WS3UgxY.js +0 -4
- package/dist/EpModal-DAzgqs2T.js +0 -4
- package/dist/EpObjective-Dwx6_PZV.js +0 -4
- package/dist/EpPieChart-B8Pr5W9-.js +0 -4
- package/dist/EpQuestion-B62CYUVA.js +0 -4
- package/dist/EpQuote-BihyGusM.js +0 -4
- package/dist/EpRadio-CpG6pS3s.js +0 -4
- package/dist/EpRadioSummative-DLXgKZAu.js +0 -4
- package/dist/EpReading-BlSjw_UD.js +0 -4
- package/dist/EpResource-ofzOBR4O.js +0 -4
- package/dist/EpScope-BIYN9eA2.js +0 -4
- package/dist/EpSection-33XioYMg.js +0 -4
- package/dist/EpSectionCols-A97bH9ae.js +0 -4
- package/dist/EpSkeleton-By3TPHqs.js +0 -4
- package/dist/EpSoftware-CUXfVeuT.js +0 -4
- package/dist/EpSpecificObjective-C2RasqCs.js +0 -4
- package/dist/EpSpinner-ZYvRrAHj.js +0 -4
- package/dist/EpStackedList-DHurElck.js +0 -4
- package/dist/EpSummativeTable-etwjX91_.js +0 -4
- package/dist/EpSvg-DmCV9jTP.js +0 -4
- package/dist/EpTable-Biz8ArYF.js +0 -4
- package/dist/EpTerm-Cisb50Au.js +0 -4
- package/dist/EpText-ibFC4JV7.js +0 -4
- package/dist/EpTimeLine-xAkA3Jb1.js +0 -4
- package/dist/EpVideo-CsieKBpx.js +0 -4
- package/dist/EpVideoPanopto-V584YRQc.js +0 -4
- package/dist/EpWordDef-VtpC2ck8.js +0 -4
- package/dist/three.module-laS36oD-.js +0 -48903
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { defineComponent as H, ref as f, computed as L, createElementBlock as n, openBlock as l, normalizeStyle as k, createElementVNode as t, createCommentVNode as g, toDisplayString as d, unref as v, normalizeClass as c, createVNode as j, Fragment as y, renderList as b } from "vue";
|
|
2
|
+
import { y as w, l as A, z as I, a as M } from "./index-hjRiaRG8.js";
|
|
3
|
+
const q = { class: "font-bold text-3xl" }, z = ["innerHTML"], E = ["innerHTML"], F = ["src"], V = ["onClick"], B = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "flex-grow flex"
|
|
6
|
+
}, N = ["innerHTML"], O = ["src"], P = ["onClick"], Q = { class: "flex-grow flex flex-col items-center" }, R = { class: "grid grid-cols-2 gap-2" }, D = { class: "col-span-1 flex flex-col items-center" }, G = {
|
|
7
|
+
class: "flex flex-col relative w-full gap-4 px-5 py-5 items-start overflow-auto border-l-4 border-gray-700",
|
|
8
|
+
style: { "max-width": "600px", height: "300px" }
|
|
9
|
+
}, J = { class: "flex flex-col col-span-1 justify-center items-center px-4 border-l-2 border-gray-700 overflow-auto" }, K = { class: "text-center" }, U = /* @__PURE__ */ H({
|
|
10
|
+
__name: "EpBranchingScenario",
|
|
11
|
+
props: {
|
|
12
|
+
scenarioTitle: {},
|
|
13
|
+
initialInstruction: { default: null },
|
|
14
|
+
generalFeedback: {},
|
|
15
|
+
bgColor: {},
|
|
16
|
+
decisionTree: {},
|
|
17
|
+
transitionAnimation: { default: "fade" }
|
|
18
|
+
},
|
|
19
|
+
setup(T) {
|
|
20
|
+
const m = T, a = f([]), u = f(0), r = f(null), p = f(!0), _ = (e) => {
|
|
21
|
+
let s = m.decisionTree;
|
|
22
|
+
if (e.length > 0)
|
|
23
|
+
for (let o = 0; o < e.length; o++)
|
|
24
|
+
s = s.options[e[o]];
|
|
25
|
+
return s !== m.decisionTree ? s : null;
|
|
26
|
+
}, C = () => {
|
|
27
|
+
h.value && (a.value.length === 0 && (p.value = !0), a.value.pop(), r.value = _(a.value), u.value = a.value.length);
|
|
28
|
+
}, h = L(() => u.value === 0 || r.value && r.value.options && r.value.options.length > 0), $ = () => {
|
|
29
|
+
u.value = 0, r.value = null, a.value = [], p.value = !0;
|
|
30
|
+
}, S = (e) => {
|
|
31
|
+
let s = [{ question: m.decisionTree.rootQuestion, choice: m.decisionTree.options[e[0]].name }], o = m.decisionTree.options[e[0]];
|
|
32
|
+
if (e.length > 1)
|
|
33
|
+
for (let i = 1; i < e.length; i++) {
|
|
34
|
+
let x = o.question;
|
|
35
|
+
o = o.options[e[i]], s.push({ question: x, choice: o.name });
|
|
36
|
+
}
|
|
37
|
+
return s;
|
|
38
|
+
};
|
|
39
|
+
return (e, s) => (l(), n("div", null, [
|
|
40
|
+
p.value ? (l(), n("div", {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "m-4 mx-auto w-2/3 bg-gray-200 dark:bg-slate-800 rounded-md flex flex-col items-center justify-around p-4 fade",
|
|
43
|
+
style: k({ minHeight: "500px", backgroundColor: e.bgColor })
|
|
44
|
+
}, [
|
|
45
|
+
t("h1", q, d(e.scenarioTitle), 1),
|
|
46
|
+
e.initialInstruction ? (l(), n("div", {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "text-center min-w-max m-3 flex flex-col items-center gap-3",
|
|
49
|
+
innerHTML: v(w)(e.initialInstruction)
|
|
50
|
+
}, null, 8, z)) : g("", !0),
|
|
51
|
+
t("button", {
|
|
52
|
+
class: "rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3",
|
|
53
|
+
onClick: s[0] || (s[0] = (o) => p.value = !1)
|
|
54
|
+
}, "Commencer")
|
|
55
|
+
], 4)) : (l(), n("div", {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "m-4 mx-auto w-2/3 rounded-md flex flex-col p-4 bg-gray-200 dark:bg-slate-800",
|
|
58
|
+
style: k({ minHeight: "500px", backgroundColor: e.bgColor })
|
|
59
|
+
}, [
|
|
60
|
+
t("div", null, [
|
|
61
|
+
h.value ? (l(), n("button", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: c(`rounded bg-blue-500 text-white py-2 px-4 m-2 ${e.transitionAnimation}`),
|
|
64
|
+
onClick: C
|
|
65
|
+
}, [
|
|
66
|
+
j(A, {
|
|
67
|
+
"icon-path": v(I),
|
|
68
|
+
size: "25"
|
|
69
|
+
}, null, 8, ["icon-path"])
|
|
70
|
+
], 2)) : g("", !0)
|
|
71
|
+
]),
|
|
72
|
+
u.value === 0 ? (l(), n("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: c(`flex-grow flex flex-col items-center justify-around ${e.transitionAnimation}`)
|
|
75
|
+
}, [
|
|
76
|
+
t("div", {
|
|
77
|
+
class: "text-center min-w-max m-3 flex flex-col items-center gap-3",
|
|
78
|
+
innerHTML: v(w)(e.decisionTree.rootQuestion)
|
|
79
|
+
}, null, 8, E),
|
|
80
|
+
e.decisionTree.imgSrc ? (l(), n("img", {
|
|
81
|
+
key: 0,
|
|
82
|
+
src: e.decisionTree.imgSrc,
|
|
83
|
+
class: "rounded",
|
|
84
|
+
width: "200"
|
|
85
|
+
}, null, 8, F)) : g("", !0),
|
|
86
|
+
t("div", {
|
|
87
|
+
class: c(`w-full justify-items-center mx-4 grid ${e.decisionTree.options.length <= 2 ? "grid-cols-2" : "grid-cols-3"}`)
|
|
88
|
+
}, [
|
|
89
|
+
(l(!0), n(y, null, b(e.decisionTree.options, (o, i) => (l(), n("button", {
|
|
90
|
+
class: c(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${i === e.decisionTree.options.length - 1 && i % 3 === 0 ? "col-span-3" : "col-span-1"}`),
|
|
91
|
+
key: i,
|
|
92
|
+
onClick: (x) => {
|
|
93
|
+
a.value.push(i), u.value++, r.value = o;
|
|
94
|
+
}
|
|
95
|
+
}, d(o.name), 11, V))), 128))
|
|
96
|
+
], 2)
|
|
97
|
+
], 2)) : (l(), n("div", B, [
|
|
98
|
+
h.value ? (l(), n("div", {
|
|
99
|
+
key: r.value.question,
|
|
100
|
+
class: c(`flex-grow flex flex-col items-center justify-around ${e.transitionAnimation}`)
|
|
101
|
+
}, [
|
|
102
|
+
t("div", {
|
|
103
|
+
class: "text-center min-w-max m-3 flex flex-col items-center gap-3",
|
|
104
|
+
innerHTML: v(w)(r.value.question)
|
|
105
|
+
}, null, 8, N),
|
|
106
|
+
r.value.imgSrc ? (l(), n("img", {
|
|
107
|
+
key: 0,
|
|
108
|
+
src: r.value.imgSrc,
|
|
109
|
+
class: "rounded",
|
|
110
|
+
width: "200"
|
|
111
|
+
}, null, 8, O)) : g("", !0),
|
|
112
|
+
t("div", {
|
|
113
|
+
class: c(`w-full justify-items-center mx-4 grid ${r.value.options.length <= 2 ? "grid-cols-2" : "grid-cols-3"}`)
|
|
114
|
+
}, [
|
|
115
|
+
(l(!0), n(y, null, b(r.value.options, (o, i) => (l(), n("button", {
|
|
116
|
+
class: c(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${i === r.value.options.length - 1 && i % 3 === 0 ? "col-span-3" : "col-span-1"}`),
|
|
117
|
+
key: i,
|
|
118
|
+
onClick: (x) => {
|
|
119
|
+
a.value.push(i), u.value++, r.value = o;
|
|
120
|
+
}
|
|
121
|
+
}, d(o.name), 11, P))), 128))
|
|
122
|
+
], 2)
|
|
123
|
+
], 2)) : (l(), n("div", {
|
|
124
|
+
key: 1,
|
|
125
|
+
class: c(`flex-grow flex flex-col items-center ${e.transitionAnimation}`)
|
|
126
|
+
}, [
|
|
127
|
+
t("div", Q, [
|
|
128
|
+
s[3] || (s[3] = t("h1", { class: "my-4 font-bold text-3xl" }, "Vous avez terminé le scénario!", -1)),
|
|
129
|
+
t("div", R, [
|
|
130
|
+
t("div", D, [
|
|
131
|
+
s[1] || (s[1] = t("h3", { class: "font-bold" }, "Voici votre parcours", -1)),
|
|
132
|
+
t("div", G, [
|
|
133
|
+
(l(!0), n(y, null, b(S(a.value), (o, i) => (l(), n("div", {
|
|
134
|
+
key: i,
|
|
135
|
+
class: "path-item rounded bg-blue-500 text-white py-2 px-4 flex flex-col items-center"
|
|
136
|
+
}, [
|
|
137
|
+
t("u", null, d(o.question), 1),
|
|
138
|
+
t("p", null, d(o.choice), 1)
|
|
139
|
+
]))), 128))
|
|
140
|
+
])
|
|
141
|
+
]),
|
|
142
|
+
t("div", J, [
|
|
143
|
+
s[2] || (s[2] = t("h3", { class: "font-bold" }, "Feedback général", -1)),
|
|
144
|
+
t("p", K, d(e.generalFeedback), 1)
|
|
145
|
+
])
|
|
146
|
+
])
|
|
147
|
+
]),
|
|
148
|
+
t("button", {
|
|
149
|
+
class: "rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3 col-span-1",
|
|
150
|
+
onClick: $
|
|
151
|
+
}, "Recommencer")
|
|
152
|
+
], 2))
|
|
153
|
+
]))
|
|
154
|
+
], 4))
|
|
155
|
+
]));
|
|
156
|
+
}
|
|
157
|
+
}), Y = /* @__PURE__ */ M(U, [["__scopeId", "data-v-22a86a44"]]);
|
|
158
|
+
export {
|
|
159
|
+
Y as default
|
|
160
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as u, onMounted as p, createElementBlock as r, openBlock as n, createStaticVNode as m, createElementVNode as a } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { O as g } from "./index-hjRiaRG8.js";
|
|
3
3
|
const k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
title: "Switch to light mode"
|