ep-lib-ts 1.0.43 → 1.0.45
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-Dju9jJiu.js +4 -0
- package/dist/DisplayBox-HvviLWyp.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-8x1egKQ1.js +4 -0
- package/dist/EpAudio-DLQ0xWz1.js +4 -0
- package/dist/EpAvatar-DlaagQT-.js +4 -0
- package/dist/EpBadge-hENKUkCt.js +4 -0
- package/dist/EpBarChart-Bw8qKwqp.js +4 -0
- package/dist/EpBranchingScenario-CtCO_8zu.js +160 -0
- package/dist/EpBtn-BH1hWlHT.js +4 -0
- package/dist/EpCard-CqhPrVAv.js +4 -0
- package/dist/EpCardLink-DlP0NsFx.js +4 -0
- package/dist/EpChip-Bi3nop6O.js +4 -0
- package/dist/EpCodeblock-DhkGfhDz.js +4 -0
- package/dist/EpConclusion-DYGJFM9I.js +4 -0
- package/dist/EpContentSlider-BxHaDAWo.js +4 -0
- package/dist/{EpDarkmode-Bechg1uo.js → EpDarkmode-ChgCnqlF.js} +1 -1
- package/dist/EpDescription-CHv8jeTs.js +4 -0
- package/dist/EpDivider-dB-VxNYj.js +4 -0
- package/dist/EpDraggable-hJJjJ6hz.js +1676 -0
- package/dist/EpEdu-CcePBFeF.js +4 -0
- package/dist/EpFlex-BOIofhJe.js +4 -0
- package/dist/EpFunnelChart-B0cp8JDh.js +4 -0
- package/dist/EpHeader-4TIVPsGN.js +4 -0
- package/dist/EpHover-B6dcDLJH.js +4 -0
- package/dist/EpHoverCard-BYLDcALZ.js +4 -0
- package/dist/EpIcon-eQLd8Bef.js +4 -0
- package/dist/EpIframe-DmNysxf-.js +4 -0
- package/dist/EpImg-oLjhJdIS.js +4 -0
- package/dist/EpImgCarousel-DXPylqN5.js +4 -0
- package/dist/{EpInput-CoSeoa1t.js → EpInput-B-bfsw5E.js} +29 -29
- package/dist/EpInstructions-DIAYW894.js +4 -0
- package/dist/EpIntroduction-DNNy0dG3.js +4 -0
- package/dist/EpLineChart-0D56Uh_r.js +4 -0
- package/dist/EpLink-DSTdUEpY.js +4 -0
- package/dist/EpLinkVersion-gKk7KyA_.js +4 -0
- package/dist/{EpList-DTN7D9wV.js → EpList-DeapPqmX.js} +1 -1
- package/dist/EpModal-D16kxfDo.js +4 -0
- package/dist/{EpNothing-ChLi44xn.js → EpNothing-BglmKV-f.js} +1 -1
- package/dist/EpObjective-HxaZ9wp9.js +4 -0
- package/dist/EpPieChart-DgshvJsj.js +4 -0
- package/dist/EpQuestion-Dukzq4EH.js +4 -0
- package/dist/EpQuote-CzHty5N8.js +4 -0
- package/dist/EpRadio-b-7_ookc.js +4 -0
- package/dist/EpRadioSummative-B2rKvUDx.js +4 -0
- package/dist/EpReading-B4cnESfa.js +4 -0
- package/dist/EpResource-Cm_WCcOE.js +4 -0
- package/dist/EpScope-D7uqngTc.js +4 -0
- package/dist/EpSection-D5dy1gIO.js +4 -0
- package/dist/EpSectionCols-Td__J3LQ.js +4 -0
- package/dist/EpSkeleton-Dt9pU2x3.js +4 -0
- package/dist/EpSoftware-ZrDbL3q8.js +4 -0
- package/dist/EpSpecificObjective-BLP9pKHT.js +4 -0
- package/dist/EpSpinner-Bz6bpXEH.js +4 -0
- package/dist/EpStackedList-C-qDZcDO.js +4 -0
- package/dist/EpSummativeTable-D0IxH0wd.js +4 -0
- package/dist/EpSvg-CFAjqJWI.js +4 -0
- package/dist/EpSvgShow-BMQFmzKO.js +54 -0
- package/dist/EpTable-CFfBZzZJ.js +4 -0
- package/dist/EpTerm-C81Atlu_.js +4 -0
- package/dist/EpText-DPADYfER.js +4 -0
- package/dist/EpTimeLine-BaJ78dV9.js +4 -0
- package/dist/EpVideo-m4Cga9WS.js +4 -0
- package/dist/EpVideoPanopto-DrHaE_yl.js +4 -0
- package/dist/EpWordDef-CZw-9z0W.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/educationals/EpInstructions.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 +33 -1
- 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-BFsz449L.js → index-CwfMdRn8.js} +3755 -3591
- package/dist/{index-D-GKNNDO.js → index-DTH65_9T.js} +1 -1
- package/dist/{prism-iP2cUnBs.js → prism-D45WTYqI.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/EpImg.vue +1 -1
- package/src/components/basics/EpImgCarousel.vue +145 -0
- package/src/components/basics/EpText.vue +22 -18
- package/src/components/educationals/EpBranchingScenario.vue +15 -6
- package/src/components/educationals/EpConclusion.vue +1 -1
- package/src/components/educationals/EpDescription.vue +1 -1
- package/src/components/educationals/EpInstructions.vue +3 -2
- package/src/components/educationals/EpIntroduction.vue +1 -1
- 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 +91 -38
- package/src/components/medias/EpCarousel.vue +74 -11
- package/src/components/tools/TimelineItem.vue +1 -1
- package/dist/BgAudio-BxmV-0cC.js +0 -4
- package/dist/DisplayBox-CUpEsLPU.js +0 -4
- package/dist/Ep360Image-Dmwx7NrY.js +0 -228
- package/dist/EpAlert-DZRwC-hR.js +0 -4
- package/dist/EpAudio-DWUaCLxZ.js +0 -4
- package/dist/EpAvatar-CB_8dpH1.js +0 -4
- package/dist/EpBadge-D2rYlVX2.js +0 -4
- package/dist/EpBarChart-20DIx08w.js +0 -4
- package/dist/EpBranchingScenario-CMBEwqVe.js +0 -151
- package/dist/EpBtn-D4Sib9BE.js +0 -4
- package/dist/EpCard-DJQezxQs.js +0 -4
- package/dist/EpCardLink-CZ10BP3M.js +0 -4
- package/dist/EpChip-BrlNEof-.js +0 -4
- package/dist/EpCodeblock-C-DQR2do.js +0 -4
- package/dist/EpConclusion-Cd2gP1Wh.js +0 -4
- package/dist/EpContentSlider-zQ7TcQlI.js +0 -4
- package/dist/EpDescription-Tbo3BFV2.js +0 -4
- package/dist/EpDivider-DVkzWELv.js +0 -4
- package/dist/EpEdu-B7If0gdy.js +0 -4
- package/dist/EpFlex-e5sNF2bY.js +0 -4
- package/dist/EpFunnelChart-DVJ_6KdY.js +0 -4
- package/dist/EpHeader-DNGWRkmf.js +0 -4
- package/dist/EpHover-_jWsMPY8.js +0 -4
- package/dist/EpHoverCard-C-BojFhi.js +0 -4
- package/dist/EpIcon-8MS-eLaB.js +0 -4
- package/dist/EpIframe-ClKZ7eIe.js +0 -4
- package/dist/EpImg-ZxP-DCOC.js +0 -4
- package/dist/EpInstructions-0UvWFAAP.js +0 -4
- package/dist/EpIntroduction-kwTAl-2S.js +0 -4
- package/dist/EpLineChart-DrqtLuL_.js +0 -4
- package/dist/EpLink-Be86I9U6.js +0 -4
- package/dist/EpLinkVersion-B4pxWTOZ.js +0 -4
- package/dist/EpModal-rL51M47q.js +0 -4
- package/dist/EpObjective-CDmtLCil.js +0 -4
- package/dist/EpPieChart--F20jSnB.js +0 -4
- package/dist/EpQuestion-B3bl3ED0.js +0 -4
- package/dist/EpQuote-WsTNUXP3.js +0 -4
- package/dist/EpRadio-5wRevOhg.js +0 -4
- package/dist/EpRadioSummative-Bhuk0G-D.js +0 -4
- package/dist/EpReading-DqNY4agb.js +0 -4
- package/dist/EpResource-CKx-Sm7H.js +0 -4
- package/dist/EpScope-CAGu6ain.js +0 -4
- package/dist/EpSection-Cs8w0x7y.js +0 -4
- package/dist/EpSectionCols-nBUK8VK3.js +0 -4
- package/dist/EpSkeleton-DBJIz_Yb.js +0 -4
- package/dist/EpSoftware-l7_8diQ_.js +0 -4
- package/dist/EpSpecificObjective-D2Sz35-I.js +0 -4
- package/dist/EpSpinner-BnfTBKN1.js +0 -4
- package/dist/EpStackedList-CtkpLHrV.js +0 -4
- package/dist/EpSummativeTable-CgQiZKos.js +0 -4
- package/dist/EpSvg-DDlhssE7.js +0 -4
- package/dist/EpSvgShow-DNKVoqjv.js +0 -84
- package/dist/EpTable-DriGGo4l.js +0 -4
- package/dist/EpTerm-DNfBy49u.js +0 -4
- package/dist/EpText-CrfoaXl_.js +0 -4
- package/dist/EpTimeLine-CRwBWqNV.js +0 -4
- package/dist/EpVideo-DV8hETkp.js +0 -4
- package/dist/EpVideoPanopto-588sRcMP.js +0 -4
- package/dist/EpWordDef-BuZFiK1M.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-CwfMdRn8.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-CwfMdRn8.js";
|
|
3
3
|
const k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
title: "Switch to light mode"
|