ep-lib-ts 1.0.43 → 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.
Files changed (152) hide show
  1. package/dist/BgAudio-ByQMjvpb.js +4 -0
  2. package/dist/DisplayBox-5KOzK-T1.js +4 -0
  3. package/dist/Ep360Image-CQJBPImD.js +241 -0
  4. package/dist/{Ep360Video-b_stvC2Z.js → Ep360Video-CL_7mOiQ.js} +84 -77
  5. package/dist/EpAlert-9n3eGOzn.js +4 -0
  6. package/dist/EpAudio-DN-khrPL.js +4 -0
  7. package/dist/EpAvatar-CXQP2wql.js +4 -0
  8. package/dist/EpBadge-4MOToF_Q.js +4 -0
  9. package/dist/EpBarChart-D7YNa6L1.js +4 -0
  10. package/dist/EpBranchingScenario-vDe8SVyF.js +160 -0
  11. package/dist/EpBtn-CodZ5WkT.js +4 -0
  12. package/dist/EpCard-bxcDoveo.js +4 -0
  13. package/dist/EpCardLink-BpRg37fb.js +4 -0
  14. package/dist/EpChip-DyPsThQ7.js +4 -0
  15. package/dist/EpCodeblock-CTVen6ok.js +4 -0
  16. package/dist/EpConclusion-CZSpnFN3.js +4 -0
  17. package/dist/EpContentSlider-0KrwEp3v.js +4 -0
  18. package/dist/{EpDarkmode-Bechg1uo.js → EpDarkmode-CM5E89Mq.js} +1 -1
  19. package/dist/EpDescription-BqAK-19p.js +4 -0
  20. package/dist/EpDivider-Cz2UczzO.js +4 -0
  21. package/dist/EpDraggable-DihYnwD-.js +1676 -0
  22. package/dist/EpEdu-Cb0syukg.js +4 -0
  23. package/dist/EpFlex-C9FQK2SA.js +4 -0
  24. package/dist/EpFunnelChart-DCiSFsse.js +4 -0
  25. package/dist/EpHeader-CzSF69pa.js +4 -0
  26. package/dist/EpHover-RZmDKnaw.js +4 -0
  27. package/dist/EpHoverCard-D6G0baOv.js +4 -0
  28. package/dist/EpIcon-Av0-zy17.js +4 -0
  29. package/dist/EpIframe-DW9zyLQo.js +4 -0
  30. package/dist/EpImg-CSHuR6qU.js +4 -0
  31. package/dist/EpImgCarousel-cIC103wg.js +4 -0
  32. package/dist/{EpInput-CoSeoa1t.js → EpInput-DHrHSXzx.js} +29 -29
  33. package/dist/EpInstructions-K-kkygx5.js +4 -0
  34. package/dist/EpIntroduction-CQlFolxF.js +4 -0
  35. package/dist/EpLineChart-mWEJNhfP.js +4 -0
  36. package/dist/EpLink-ByArsF1O.js +4 -0
  37. package/dist/EpLinkVersion-D0l0gER1.js +4 -0
  38. package/dist/{EpList-DTN7D9wV.js → EpList-c0SMP53E.js} +1 -1
  39. package/dist/EpModal-CnTSNH-6.js +4 -0
  40. package/dist/{EpNothing-ChLi44xn.js → EpNothing-CT8_zyfI.js} +1 -1
  41. package/dist/EpObjective-CFUl1myw.js +4 -0
  42. package/dist/EpPieChart-D4gofeCO.js +4 -0
  43. package/dist/EpQuestion-DpEP1I3J.js +4 -0
  44. package/dist/EpQuote-D_a9FXrQ.js +4 -0
  45. package/dist/EpRadio-BPGeCsln.js +4 -0
  46. package/dist/EpRadioSummative-2GRkKBZC.js +4 -0
  47. package/dist/EpReading-b0gkhYIF.js +4 -0
  48. package/dist/EpResource-B1pFABU5.js +4 -0
  49. package/dist/EpScope-BQWyrqjD.js +4 -0
  50. package/dist/EpSection-CkXDsnuU.js +4 -0
  51. package/dist/EpSectionCols-BwC-XklV.js +4 -0
  52. package/dist/EpSkeleton-CfhwJtyP.js +4 -0
  53. package/dist/EpSoftware-c8ntWUO-.js +4 -0
  54. package/dist/EpSpecificObjective-D3mba6ZZ.js +4 -0
  55. package/dist/EpSpinner-G3e-rq8T.js +4 -0
  56. package/dist/EpStackedList-Bo0PTfJP.js +4 -0
  57. package/dist/EpSummativeTable-BumOFuw9.js +4 -0
  58. package/dist/EpSvg-D1zVHuRF.js +4 -0
  59. package/dist/EpSvgShow-CDYlL1_A.js +54 -0
  60. package/dist/EpTable-gr45PRwp.js +4 -0
  61. package/dist/EpTerm-CNfRoEdY.js +4 -0
  62. package/dist/EpText-DKuz6gcn.js +4 -0
  63. package/dist/EpTimeLine-O-XSTUsa.js +4 -0
  64. package/dist/EpVideo-DB3Kgada.js +4 -0
  65. package/dist/EpVideoPanopto-Vta3OP2y.js +4 -0
  66. package/dist/EpWordDef-CYOQAmor.js +4 -0
  67. package/dist/components/basics/EpImgCarousel.vue.d.ts +77 -0
  68. package/dist/components/educationals/EpBranchingScenario.vue.d.ts +1 -0
  69. package/dist/components/interactions/Ep360Image.vue.d.ts +1 -0
  70. package/dist/components/interactions/EpDraggable.vue.d.ts +26 -0
  71. package/dist/components/interactions/EpSvgShow.vue.d.ts +33 -1
  72. package/dist/components/medias/EpCarousel.vue.d.ts +5 -0
  73. package/dist/ep-lib-ts.js +30 -30
  74. package/dist/ep-lib-ts.umd.cjs +4600 -4766
  75. package/dist/{index-D-GKNNDO.js → index-DtabYqi-.js} +1 -1
  76. package/dist/{index-BFsz449L.js → index-hjRiaRG8.js} +3752 -3589
  77. package/dist/{prism-iP2cUnBs.js → prism-DpfMvZqf.js} +1 -1
  78. package/dist/style.css +1 -1
  79. package/dist/three.module-CWLs6nMo.js +33752 -0
  80. package/dist/types/Draggable.d.ts +15 -0
  81. package/dist/types/Image.d.ts +5 -0
  82. package/package.json +4 -2
  83. package/src/components/basics/EpImg.vue +1 -1
  84. package/src/components/basics/EpImgCarousel.vue +145 -0
  85. package/src/components/basics/EpText.vue +20 -18
  86. package/src/components/educationals/EpBranchingScenario.vue +15 -6
  87. package/src/components/educationals/EpReading.vue +3 -3
  88. package/src/components/interactions/Ep360Image.vue +32 -11
  89. package/src/components/interactions/Ep360Video.vue +15 -3
  90. package/src/components/interactions/EpDraggable.vue +192 -0
  91. package/src/components/interactions/EpSvgShow.vue +91 -38
  92. package/src/components/medias/EpCarousel.vue +74 -11
  93. package/dist/BgAudio-BxmV-0cC.js +0 -4
  94. package/dist/DisplayBox-CUpEsLPU.js +0 -4
  95. package/dist/Ep360Image-Dmwx7NrY.js +0 -228
  96. package/dist/EpAlert-DZRwC-hR.js +0 -4
  97. package/dist/EpAudio-DWUaCLxZ.js +0 -4
  98. package/dist/EpAvatar-CB_8dpH1.js +0 -4
  99. package/dist/EpBadge-D2rYlVX2.js +0 -4
  100. package/dist/EpBarChart-20DIx08w.js +0 -4
  101. package/dist/EpBranchingScenario-CMBEwqVe.js +0 -151
  102. package/dist/EpBtn-D4Sib9BE.js +0 -4
  103. package/dist/EpCard-DJQezxQs.js +0 -4
  104. package/dist/EpCardLink-CZ10BP3M.js +0 -4
  105. package/dist/EpChip-BrlNEof-.js +0 -4
  106. package/dist/EpCodeblock-C-DQR2do.js +0 -4
  107. package/dist/EpConclusion-Cd2gP1Wh.js +0 -4
  108. package/dist/EpContentSlider-zQ7TcQlI.js +0 -4
  109. package/dist/EpDescription-Tbo3BFV2.js +0 -4
  110. package/dist/EpDivider-DVkzWELv.js +0 -4
  111. package/dist/EpEdu-B7If0gdy.js +0 -4
  112. package/dist/EpFlex-e5sNF2bY.js +0 -4
  113. package/dist/EpFunnelChart-DVJ_6KdY.js +0 -4
  114. package/dist/EpHeader-DNGWRkmf.js +0 -4
  115. package/dist/EpHover-_jWsMPY8.js +0 -4
  116. package/dist/EpHoverCard-C-BojFhi.js +0 -4
  117. package/dist/EpIcon-8MS-eLaB.js +0 -4
  118. package/dist/EpIframe-ClKZ7eIe.js +0 -4
  119. package/dist/EpImg-ZxP-DCOC.js +0 -4
  120. package/dist/EpInstructions-0UvWFAAP.js +0 -4
  121. package/dist/EpIntroduction-kwTAl-2S.js +0 -4
  122. package/dist/EpLineChart-DrqtLuL_.js +0 -4
  123. package/dist/EpLink-Be86I9U6.js +0 -4
  124. package/dist/EpLinkVersion-B4pxWTOZ.js +0 -4
  125. package/dist/EpModal-rL51M47q.js +0 -4
  126. package/dist/EpObjective-CDmtLCil.js +0 -4
  127. package/dist/EpPieChart--F20jSnB.js +0 -4
  128. package/dist/EpQuestion-B3bl3ED0.js +0 -4
  129. package/dist/EpQuote-WsTNUXP3.js +0 -4
  130. package/dist/EpRadio-5wRevOhg.js +0 -4
  131. package/dist/EpRadioSummative-Bhuk0G-D.js +0 -4
  132. package/dist/EpReading-DqNY4agb.js +0 -4
  133. package/dist/EpResource-CKx-Sm7H.js +0 -4
  134. package/dist/EpScope-CAGu6ain.js +0 -4
  135. package/dist/EpSection-Cs8w0x7y.js +0 -4
  136. package/dist/EpSectionCols-nBUK8VK3.js +0 -4
  137. package/dist/EpSkeleton-DBJIz_Yb.js +0 -4
  138. package/dist/EpSoftware-l7_8diQ_.js +0 -4
  139. package/dist/EpSpecificObjective-D2Sz35-I.js +0 -4
  140. package/dist/EpSpinner-BnfTBKN1.js +0 -4
  141. package/dist/EpStackedList-CtkpLHrV.js +0 -4
  142. package/dist/EpSummativeTable-CgQiZKos.js +0 -4
  143. package/dist/EpSvg-DDlhssE7.js +0 -4
  144. package/dist/EpSvgShow-DNKVoqjv.js +0 -84
  145. package/dist/EpTable-DriGGo4l.js +0 -4
  146. package/dist/EpTerm-DNfBy49u.js +0 -4
  147. package/dist/EpText-CrfoaXl_.js +0 -4
  148. package/dist/EpTimeLine-CRwBWqNV.js +0 -4
  149. package/dist/EpVideo-DV8hETkp.js +0 -4
  150. package/dist/EpVideoPanopto-588sRcMP.js +0 -4
  151. package/dist/EpWordDef-BuZFiK1M.js +0 -4
  152. 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
+ };
@@ -0,0 +1,4 @@
1
+ import { e } from "./index-hjRiaRG8.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { V as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { g as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { A as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { B as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { N as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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 { N as g } from "./index-BFsz449L.js";
2
+ import { O as g } from "./index-hjRiaRG8.js";
3
3
  const k = {
4
4
  key: 0,
5
5
  title: "Switch to light mode"
@@ -0,0 +1,4 @@
1
+ import { C as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { h as f } from "./index-hjRiaRG8.js";
2
+ export {
3
+ f as default
4
+ };