ep-lib-ts 1.0.56 → 1.0.58

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 (656) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/dist/{types/Answer.d.ts → Answer.d.ts} +0 -1
  4. package/dist/{types/Hierarchy.d.ts → Hierarchy.d.ts} +0 -1
  5. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  6. package/dist/_virtual/dynamic-import-helper.js +9 -0
  7. package/dist/basics/EpAvatar.d.ts +21 -0
  8. package/dist/basics/EpAvatar.js +4 -0
  9. package/dist/basics/EpBadge.d.ts +6 -0
  10. package/dist/basics/EpBadge.js +4 -0
  11. package/dist/basics/EpBtn.d.ts +14 -0
  12. package/dist/basics/EpBtn.js +4 -0
  13. package/dist/basics/EpCard.d.ts +14 -0
  14. package/dist/basics/EpCard.js +4 -0
  15. package/dist/basics/EpChip.d.ts +10 -0
  16. package/dist/basics/EpChip.js +4 -0
  17. package/dist/basics/EpDivider.d.ts +8 -0
  18. package/dist/basics/EpDivider.js +4 -0
  19. package/dist/basics/EpFlex.d.ts +7 -0
  20. package/dist/basics/EpFlex.js +4 -0
  21. package/dist/basics/EpHover.d.ts +9 -0
  22. package/dist/basics/EpHover.js +4 -0
  23. package/dist/basics/EpHoverCard.d.ts +19 -0
  24. package/dist/basics/EpHoverCard.js +4 -0
  25. package/dist/basics/EpIcon.d.ts +6 -0
  26. package/dist/basics/EpIcon.js +4 -0
  27. package/dist/basics/EpImg.d.ts +17 -0
  28. package/dist/basics/EpImg.js +4 -0
  29. package/dist/basics/EpImgCarousel.d.ts +20 -0
  30. package/dist/basics/EpImgCarousel.js +4 -0
  31. package/dist/basics/EpList.d.ts +3 -0
  32. package/dist/basics/EpList.js +4 -0
  33. package/dist/basics/EpListItem.d.ts +7 -0
  34. package/dist/basics/EpListItem.js +4 -0
  35. package/dist/basics/EpSection.d.ts +13 -0
  36. package/dist/basics/EpSection.js +4 -0
  37. package/dist/basics/EpSectionCols.d.ts +17 -0
  38. package/dist/basics/EpSectionCols.js +4 -0
  39. package/dist/basics/EpSpinner.d.ts +6 -0
  40. package/dist/basics/EpSpinner.js +4 -0
  41. package/dist/basics/EpStackedList.d.ts +10 -0
  42. package/dist/basics/EpStackedList.js +4 -0
  43. package/dist/basics/EpTable.d.ts +5 -0
  44. package/dist/basics/EpTable.js +4 -0
  45. package/dist/basics/EpText.d.ts +11 -0
  46. package/dist/basics/EpText.js +4 -0
  47. package/dist/charts/EpBarChart.d.ts +30 -0
  48. package/dist/charts/EpBarChart.js +4 -0
  49. package/dist/charts/EpFunnelChart.d.ts +31 -0
  50. package/dist/charts/EpFunnelChart.js +4 -0
  51. package/dist/charts/EpLineChart.d.ts +28 -0
  52. package/dist/charts/EpLineChart.js +4 -0
  53. package/dist/charts/EpPieChart.d.ts +32 -0
  54. package/dist/charts/EpPieChart.js +4 -0
  55. package/dist/components/basics/EpAvatar.vue.js +32 -0
  56. package/dist/components/basics/EpAvatar.vue2.js +4 -0
  57. package/dist/components/basics/EpBadge.vue.js +22 -0
  58. package/dist/components/basics/EpBadge.vue2.js +4 -0
  59. package/dist/components/basics/EpBtn.vue.js +79 -0
  60. package/dist/components/basics/EpBtn.vue2.js +4 -0
  61. package/dist/components/basics/EpCard.vue.js +80 -0
  62. package/dist/components/basics/EpCard.vue2.js +4 -0
  63. package/dist/components/basics/EpChip.vue.js +49 -0
  64. package/dist/components/basics/EpChip.vue2.js +4 -0
  65. package/dist/components/basics/EpDivider.vue.js +21 -0
  66. package/dist/components/basics/EpDivider.vue2.js +4 -0
  67. package/dist/components/basics/EpFlex.vue.js +12 -0
  68. package/dist/components/basics/EpFlex.vue2.js +4 -0
  69. package/dist/components/basics/EpHover.vue.js +36 -0
  70. package/dist/components/basics/EpHover.vue2.js +4 -0
  71. package/dist/components/basics/EpHoverCard.vue.js +86 -0
  72. package/dist/components/basics/EpHoverCard.vue2.js +4 -0
  73. package/dist/components/basics/EpIcon.vue.js +26 -0
  74. package/dist/components/basics/EpIcon.vue2.js +4 -0
  75. package/dist/components/basics/EpImg.vue.js +184 -0
  76. package/dist/components/basics/EpImg.vue2.js +4 -0
  77. package/dist/components/basics/EpImgCarousel.vue.js +124 -0
  78. package/dist/components/basics/EpImgCarousel.vue2.js +4 -0
  79. package/dist/components/basics/EpList.vue.js +12 -0
  80. package/dist/components/basics/EpListItem.vue.js +35 -0
  81. package/dist/components/basics/EpListItem.vue2.js +4 -0
  82. package/dist/components/basics/EpSection.vue.js +74 -0
  83. package/dist/components/basics/EpSection.vue2.js +4 -0
  84. package/dist/components/basics/EpSectionCols.vue.js +94 -0
  85. package/dist/components/basics/EpSectionCols.vue2.js +4 -0
  86. package/dist/components/basics/EpSpinner.vue.js +122 -0
  87. package/dist/components/basics/EpSpinner.vue2.js +4 -0
  88. package/dist/components/basics/EpStackedList.vue.js +70 -0
  89. package/dist/components/basics/EpStackedList.vue2.js +4 -0
  90. package/dist/components/basics/EpTable.vue.js +49 -0
  91. package/dist/components/basics/EpTable.vue2.js +4 -0
  92. package/dist/components/basics/EpText.vue.js +83 -0
  93. package/dist/components/basics/EpText.vue2.js +4 -0
  94. package/dist/components/charts/EpBarChart.vue.js +78 -0
  95. package/dist/components/charts/EpBarChart.vue2.js +4 -0
  96. package/dist/components/charts/EpFunnelChart.vue.js +112 -0
  97. package/dist/components/charts/EpFunnelChart.vue2.js +4 -0
  98. package/dist/components/charts/EpLineChart.vue.js +91 -0
  99. package/dist/components/charts/EpLineChart.vue2.js +4 -0
  100. package/dist/components/charts/EpPieChart.vue.js +75 -0
  101. package/dist/components/charts/EpPieChart.vue2.js +4 -0
  102. package/dist/components/educationals/EpBranchingScenario.vue.js +7 -0
  103. package/dist/components/educationals/EpBranchingScenario.vue2.js +236 -0
  104. package/dist/components/educationals/EpCodeblock.vue.js +44 -0
  105. package/dist/components/educationals/EpCodeblock.vue3.js +5 -0
  106. package/dist/components/educationals/EpConclusion.vue.js +40 -0
  107. package/dist/components/educationals/EpConclusion.vue2.js +4 -0
  108. package/dist/components/educationals/EpDescription.vue.js +40 -0
  109. package/dist/components/educationals/EpDescription.vue2.js +4 -0
  110. package/dist/components/educationals/EpDocument.vue.js +99 -0
  111. package/dist/components/educationals/EpDocument.vue2.js +4 -0
  112. package/dist/components/educationals/EpEdu.vue.js +81 -0
  113. package/dist/components/educationals/EpEdu.vue2.js +4 -0
  114. package/dist/components/educationals/EpInstructions.vue.js +49 -0
  115. package/dist/components/educationals/EpInstructions.vue2.js +4 -0
  116. package/dist/components/educationals/EpIntroduction.vue.js +39 -0
  117. package/dist/components/educationals/EpIntroduction.vue2.js +4 -0
  118. package/dist/components/educationals/EpObjective.vue.js +39 -0
  119. package/dist/components/educationals/EpObjective.vue2.js +4 -0
  120. package/dist/components/educationals/EpReading.vue.js +307 -0
  121. package/dist/components/educationals/EpReading.vue2.js +4 -0
  122. package/dist/components/educationals/EpResource.vue.js +33 -0
  123. package/dist/components/educationals/EpResource.vue2.js +4 -0
  124. package/dist/components/educationals/EpScope.vue.js +25 -0
  125. package/dist/components/educationals/EpScope.vue2.js +4 -0
  126. package/dist/components/educationals/EpSpecificObjective.vue.js +37 -0
  127. package/dist/components/educationals/EpSpecificObjective.vue2.js +4 -0
  128. package/dist/components/forms/EpCheckbox.vue2.js +4 -0
  129. package/dist/components/forms/EpInput.vue.js +62 -0
  130. package/dist/components/forms/EpInput.vue2.js +4 -0
  131. package/dist/components/forms/EpRadio.vue.js +41 -0
  132. package/dist/components/forms/EpRadio.vue2.js +4 -0
  133. package/dist/components/forms/EpRadioSummative.vue.js +37 -0
  134. package/dist/components/forms/EpRadioSummative.vue2.js +4 -0
  135. package/dist/components/forms/EpSelect.vue2.js +4 -0
  136. package/dist/components/forms/EpSwitch.vue.js +48 -0
  137. package/dist/components/forms/EpSwitch.vue2.js +4 -0
  138. package/dist/{EpTextarea-VJ4pdPV_.js → components/forms/EpTextarea.vue.js} +6 -15
  139. package/dist/components/forms/EpTextarea.vue2.js +4 -0
  140. package/dist/{EpToggle-BTkTNVEz.js → components/forms/EpToggle.vue.js} +7 -16
  141. package/dist/components/forms/EpToggle.vue2.js +4 -0
  142. package/dist/{Ep360Image-T9Z_eSbf.js → components/interactions/Ep360Image.vue.js} +1 -1
  143. package/dist/components/interactions/Ep360Image.vue2.js +4 -0
  144. package/dist/{Ep360Video-CkVrfj8k.js → components/interactions/Ep360Video.vue.js} +1 -1
  145. package/dist/components/interactions/Ep360Video.vue2.js +4 -0
  146. package/dist/components/interactions/EpAccordeon.vue.js +7 -0
  147. package/dist/components/interactions/EpAccordeon.vue2.js +75 -0
  148. package/dist/components/interactions/EpContentSlider.vue.js +184 -0
  149. package/dist/components/interactions/EpContentSlider.vue2.js +4 -0
  150. package/dist/{EpDarkmode-CW-dKJx2.js → components/interactions/EpDarkMode.vue.js} +5 -5
  151. package/dist/components/interactions/EpDarkMode.vue2.js +4 -0
  152. package/dist/components/interactions/EpDraggable.vue.js +144 -0
  153. package/dist/components/interactions/EpDraggable.vue2.js +4 -0
  154. package/dist/{EpHotsPot-nT87sUMT.js → components/interactions/EpHotSpot.vue.js} +8 -8
  155. package/dist/components/interactions/EpHotSpot.vue2.js +4 -0
  156. package/dist/components/interactions/EpModal.vue.js +55 -0
  157. package/dist/components/interactions/EpModal.vue3.js +5 -0
  158. package/dist/components/interactions/EpQuestion.vue.js +175 -0
  159. package/dist/components/interactions/EpQuestion.vue2.js +4 -0
  160. package/dist/components/interactions/EpSummativeTable.vue.js +49 -0
  161. package/dist/components/interactions/EpSummativeTable.vue2.js +4 -0
  162. package/dist/components/interactions/EpSvgShow.vue.js +69 -0
  163. package/dist/components/interactions/EpSvgShow.vue2.js +4 -0
  164. package/dist/components/interactions/EpTabs.vue.js +12 -0
  165. package/dist/components/interactions/EpTooltip.vue.js +24 -0
  166. package/dist/components/interactions/EpTooltip.vue3.js +5 -0
  167. package/dist/components/medias/EpAudio.vue.js +76 -0
  168. package/dist/components/medias/EpAudio.vue2.js +4 -0
  169. package/dist/components/medias/EpCardLink.vue.js +65 -0
  170. package/dist/components/medias/EpCardLink.vue2.js +4 -0
  171. package/dist/components/medias/EpCarousel.vue.js +7 -0
  172. package/dist/components/medias/EpCarousel.vue2.js +162 -0
  173. package/dist/components/medias/EpHierarchy.vue.js +7 -0
  174. package/dist/components/medias/EpHierarchy.vue2.js +172 -0
  175. package/dist/components/medias/EpIframe.vue.js +53 -0
  176. package/dist/components/medias/EpIframe.vue2.js +4 -0
  177. package/dist/components/medias/EpKatex.vue.js +7 -0
  178. package/dist/components/medias/EpKatex.vue2.js +58 -0
  179. package/dist/components/medias/EpLink.vue.js +73 -0
  180. package/dist/components/medias/EpLink.vue2.js +4 -0
  181. package/dist/components/medias/EpLinkVersion.vue.js +34 -0
  182. package/dist/components/medias/EpLinkVersion.vue2.js +4 -0
  183. package/dist/components/medias/EpLottieSvg.vue.js +47 -0
  184. package/dist/components/medias/EpLottieSvg.vue2.js +4 -0
  185. package/dist/components/medias/EpSensibleImage.vue.js +7 -0
  186. package/dist/components/medias/EpSensibleImage.vue2.js +71 -0
  187. package/dist/components/medias/EpSoftware.vue.js +113 -0
  188. package/dist/components/medias/EpSoftware.vue2.js +4 -0
  189. package/dist/components/medias/EpSvg.vue.js +56 -0
  190. package/dist/components/medias/EpSvg.vue2.js +4 -0
  191. package/dist/components/medias/EpTerm.vue.js +144 -0
  192. package/dist/components/medias/EpTerm.vue2.js +4 -0
  193. package/dist/components/medias/EpTimeLine.vue.js +64 -0
  194. package/dist/components/medias/EpTimeLine.vue3.js +5 -0
  195. package/dist/components/medias/EpVideo.vue.js +83 -0
  196. package/dist/components/medias/EpVideo.vue2.js +4 -0
  197. package/dist/components/medias/EpVideoPanopto.vue.js +56 -0
  198. package/dist/components/medias/EpVideoPanopto.vue2.js +4 -0
  199. package/dist/components/medias/EpWordDef.vue.js +100 -0
  200. package/dist/components/medias/EpWordDef.vue2.js +4 -0
  201. package/dist/components/signages/EpAlert.vue.js +7 -0
  202. package/dist/components/signages/EpAlert.vue2.js +68 -0
  203. package/dist/components/signages/EpBadge.vue.js +32 -0
  204. package/dist/components/signages/EpBadge.vue2.js +4 -0
  205. package/dist/components/signages/EpHeader.vue.js +205 -0
  206. package/dist/components/signages/EpHeader.vue2.js +4 -0
  207. package/dist/components/signages/EpNothing.vue.js +10 -0
  208. package/dist/components/signages/EpQuote.vue.js +76 -0
  209. package/dist/components/signages/EpQuote.vue2.js +4 -0
  210. package/dist/components/signages/EpSkeleton.vue.js +34 -0
  211. package/dist/components/signages/EpSkeleton.vue3.js +5 -0
  212. package/dist/components/tools/BgAudio.vue.js +4 -0
  213. package/dist/components/tools/BgAudio.vue2.js +59 -0
  214. package/dist/components/tools/Details.vue.js +4 -0
  215. package/dist/components/tools/Details.vue2.js +55 -0
  216. package/dist/components/tools/DisplayBox.vue.js +5 -0
  217. package/dist/components/tools/DisplayBox.vue2.js +36 -0
  218. package/dist/components/tools/SvgFilter.vue.js +54 -0
  219. package/dist/components/tools/TextMedia.vue.js +4 -0
  220. package/dist/components/tools/TextMedia.vue2.js +41 -0
  221. package/dist/components/tools/TimelineItem.vue.js +7 -0
  222. package/dist/components/tools/TimelineItem.vue2.js +112 -0
  223. package/dist/components/tools/TwoColsMedia.vue.js +4 -0
  224. package/dist/components/tools/TwoColsMedia.vue2.js +50 -0
  225. package/dist/composables/isHtml.js +6 -0
  226. package/dist/composables/useColors.js +133 -0
  227. package/dist/composables/useComponent.js +40 -0
  228. package/dist/composables/useCreateUid.js +7 -0
  229. package/dist/composables/useIcons.js +32 -0
  230. package/dist/composables/useMarkdown.js +12 -0
  231. package/dist/composables/useRenderText.js +8 -0
  232. package/dist/educationals/EpBranchingScenario.d.ts +21 -0
  233. package/dist/educationals/EpBranchingScenario.js +4 -0
  234. package/dist/educationals/EpCodeblock.d.ts +12 -0
  235. package/dist/educationals/EpCodeblock.js +5 -0
  236. package/dist/educationals/EpConclusion.d.ts +5 -0
  237. package/dist/educationals/EpConclusion.js +4 -0
  238. package/dist/educationals/EpDescription.d.ts +5 -0
  239. package/dist/educationals/EpDescription.js +4 -0
  240. package/dist/educationals/EpDocument.d.ts +10 -0
  241. package/dist/educationals/EpDocument.js +4 -0
  242. package/dist/educationals/EpEdu.d.ts +13 -0
  243. package/dist/educationals/EpEdu.js +4 -0
  244. package/dist/educationals/EpInstructions.d.ts +13 -0
  245. package/dist/educationals/EpInstructions.js +4 -0
  246. package/dist/educationals/EpIntroduction.d.ts +5 -0
  247. package/dist/educationals/EpIntroduction.js +4 -0
  248. package/dist/educationals/EpObjective.d.ts +5 -0
  249. package/dist/educationals/EpObjective.js +4 -0
  250. package/dist/educationals/EpReading.d.ts +26 -0
  251. package/dist/educationals/EpReading.js +4 -0
  252. package/dist/educationals/EpResource.d.ts +8 -0
  253. package/dist/educationals/EpResource.js +4 -0
  254. package/dist/educationals/EpScope.d.ts +4 -0
  255. package/dist/educationals/EpScope.js +4 -0
  256. package/dist/educationals/EpSpecificObjective.d.ts +7 -0
  257. package/dist/educationals/EpSpecificObjective.js +4 -0
  258. package/dist/ep-lib-ts.css +1 -0
  259. package/dist/forms/EpCheckbox.d.ts +8 -0
  260. package/dist/forms/EpCheckbox.js +4 -0
  261. package/dist/forms/EpInput.d.ts +21 -0
  262. package/dist/forms/EpInput.js +4 -0
  263. package/dist/forms/EpRadio.d.ts +10 -0
  264. package/dist/forms/EpRadio.js +4 -0
  265. package/dist/forms/EpRadioSummative.d.ts +10 -0
  266. package/dist/forms/EpRadioSummative.js +4 -0
  267. package/dist/forms/EpSelect.d.ts +7 -0
  268. package/dist/forms/EpSelect.js +4 -0
  269. package/dist/forms/EpSwitch.d.ts +10 -0
  270. package/dist/forms/EpSwitch.js +4 -0
  271. package/dist/forms/EpTextarea.d.ts +23 -0
  272. package/dist/forms/EpTextarea.js +4 -0
  273. package/dist/forms/EpToggle.d.ts +13 -0
  274. package/dist/forms/EpToggle.js +4 -0
  275. package/dist/interactions/Ep360Image.d.ts +4 -0
  276. package/dist/interactions/Ep360Image.js +4 -0
  277. package/dist/interactions/Ep360Video.d.ts +3 -0
  278. package/dist/interactions/Ep360Video.js +4 -0
  279. package/dist/interactions/EpAccordeon.d.ts +9 -0
  280. package/dist/interactions/EpAccordeon.js +4 -0
  281. package/dist/interactions/EpContentSlider.d.ts +7 -0
  282. package/dist/interactions/EpContentSlider.js +4 -0
  283. package/dist/interactions/EpDarkMode.d.ts +1 -0
  284. package/dist/interactions/EpDarkMode.js +4 -0
  285. package/dist/interactions/EpDraggable.d.ts +6 -0
  286. package/dist/interactions/EpDraggable.js +4 -0
  287. package/dist/interactions/EpHotSpot.d.ts +17 -0
  288. package/dist/interactions/EpHotSpot.js +4 -0
  289. package/dist/interactions/EpModal.d.ts +10 -0
  290. package/dist/interactions/EpModal.js +5 -0
  291. package/dist/interactions/EpQuestion.d.ts +19 -0
  292. package/dist/interactions/EpQuestion.js +4 -0
  293. package/dist/interactions/EpSummativeTable.d.ts +6 -0
  294. package/dist/interactions/EpSummativeTable.js +4 -0
  295. package/dist/interactions/EpSvgShow.d.ts +5 -0
  296. package/dist/interactions/EpSvgShow.js +4 -0
  297. package/dist/interactions/EpTabs.d.ts +1 -0
  298. package/dist/interactions/EpTabs.js +4 -0
  299. package/dist/interactions/EpTooltip.d.ts +24 -0
  300. package/dist/interactions/EpTooltip.js +5 -0
  301. package/dist/medias/EpAudio.d.ts +13 -0
  302. package/dist/medias/EpAudio.js +4 -0
  303. package/dist/medias/EpCardLink.d.ts +19 -0
  304. package/dist/medias/EpCardLink.js +4 -0
  305. package/dist/medias/EpCarousel.d.ts +13 -0
  306. package/dist/medias/EpCarousel.js +4 -0
  307. package/dist/medias/EpHierarchy.d.ts +10 -0
  308. package/dist/medias/EpHierarchy.js +4 -0
  309. package/dist/medias/EpIframe.d.ts +13 -0
  310. package/dist/medias/EpIframe.js +4 -0
  311. package/dist/medias/EpKatex.d.ts +10 -0
  312. package/dist/medias/EpKatex.js +4 -0
  313. package/dist/medias/EpLink.d.ts +13 -0
  314. package/dist/medias/EpLink.js +4 -0
  315. package/dist/medias/EpLinkVersion.d.ts +18 -0
  316. package/dist/medias/EpLinkVersion.js +4 -0
  317. package/dist/medias/EpLottieSvg.d.ts +12 -0
  318. package/dist/medias/EpLottieSvg.js +4 -0
  319. package/dist/medias/EpSensibleImage.d.ts +11 -0
  320. package/dist/medias/EpSoftware.d.ts +16 -0
  321. package/dist/medias/EpSoftware.js +4 -0
  322. package/dist/medias/EpSvg.d.ts +12 -0
  323. package/dist/medias/EpSvg.js +4 -0
  324. package/dist/medias/EpTerm.d.ts +15 -0
  325. package/dist/medias/EpTerm.js +4 -0
  326. package/dist/medias/EpTimeLine.d.ts +13 -0
  327. package/dist/medias/EpTimeLine.js +5 -0
  328. package/dist/medias/EpVideo.d.ts +13 -0
  329. package/dist/medias/EpVideo.js +4 -0
  330. package/dist/medias/EpVideoPanopto.d.ts +13 -0
  331. package/dist/medias/EpVideoPanopto.js +4 -0
  332. package/dist/medias/EpWordDef.d.ts +25 -0
  333. package/dist/medias/EpWordDef.js +4 -0
  334. package/dist/signages/EpAlert.d.ts +16 -0
  335. package/dist/signages/EpAlert.js +4 -0
  336. package/dist/signages/EpBadge.d.ts +22 -0
  337. package/dist/signages/EpBadge.js +4 -0
  338. package/dist/signages/EpHeader.d.ts +28 -0
  339. package/dist/signages/EpHeader.js +4 -0
  340. package/dist/signages/EpNothing.d.ts +1 -0
  341. package/dist/signages/EpNothing.js +4 -0
  342. package/dist/signages/EpQuote.d.ts +6 -0
  343. package/dist/signages/EpQuote.js +4 -0
  344. package/dist/signages/EpSkeleton.d.ts +9 -0
  345. package/dist/signages/EpSkeleton.js +5 -0
  346. package/dist/testImg.jpg +0 -0
  347. package/dist/testMaria.jpg +0 -0
  348. package/dist/types/Accordeon.js +51 -0
  349. package/dist/types/Alert.js +75 -0
  350. package/dist/types/Avatar.js +20 -0
  351. package/dist/{EpBadge-CWIq_C51.js → types/Badge.js} +3 -33
  352. package/dist/types/Btn.js +50 -0
  353. package/dist/types/Card.js +8 -0
  354. package/dist/types/Chip.js +42 -0
  355. package/dist/types/Codeblock.js +79 -0
  356. package/dist/types/Cols.js +10 -0
  357. package/dist/types/Image.js +23 -0
  358. package/dist/types/Medias.js +14 -0
  359. package/dist/types/Radio.js +13 -0
  360. package/dist/types/StackedList.js +9 -0
  361. package/dist/types/Switch.js +13 -0
  362. package/dist/types/TimeLine.js +22 -0
  363. package/dist/{EpTooltip-J6UMMP3d.js → types/Tooltip.js} +3 -25
  364. package/dist/vite.svg +0 -0
  365. package/package.json +84 -60
  366. package/.vscode/extensions.json +0 -3
  367. package/dist/BgAudio-i5PTLf0N.js +0 -4
  368. package/dist/Details-CS8Nyb_l.js +0 -4
  369. package/dist/DisplayBox-DirIshZw.js +0 -4
  370. package/dist/EpAudio-D2jZ4_2i.js +0 -4
  371. package/dist/EpAvatar-M02jfvFI.js +0 -4
  372. package/dist/EpBadge-BF-0h8Dh.js +0 -4
  373. package/dist/EpBarChart-BXNhTphT.js +0 -4
  374. package/dist/EpBtn-BoYPhKqX.js +0 -4
  375. package/dist/EpCard-CqnilIcE.js +0 -4
  376. package/dist/EpCardLink--_rDAa_E.js +0 -4
  377. package/dist/EpChip-C0cD6KFV.js +0 -4
  378. package/dist/EpCodeblock-GIrYPq6y.js +0 -4
  379. package/dist/EpConclusion-CUK9mpAC.js +0 -4
  380. package/dist/EpContentSlider-BlEFJulk.js +0 -4
  381. package/dist/EpDescription-BgtOpi53.js +0 -4
  382. package/dist/EpDivider-Op2QoptS.js +0 -4
  383. package/dist/EpDocument-MlNE59Qa.js +0 -4
  384. package/dist/EpDraggable-xB2wuyS9.js +0 -1676
  385. package/dist/EpEdu-DVW8x_BG.js +0 -4
  386. package/dist/EpFlex-B8IJkl_8.js +0 -4
  387. package/dist/EpFunnelChart-D1ptPhFl.js +0 -4
  388. package/dist/EpHeader-CMjLr9JM.js +0 -4
  389. package/dist/EpHover-Bblofuek.js +0 -4
  390. package/dist/EpHoverCard-bjn3lnwj.js +0 -4
  391. package/dist/EpIcon-DhwQi6Au.js +0 -4
  392. package/dist/EpIframe-B6SRnvUu.js +0 -4
  393. package/dist/EpImg-DzvIdzyz.js +0 -4
  394. package/dist/EpImgCarousel-DBf1h-5X.js +0 -4
  395. package/dist/EpInput-C0CMBUXe.js +0 -1095
  396. package/dist/EpInstructions-BrGtuXF0.js +0 -4
  397. package/dist/EpIntroduction-CqZ-4NpR.js +0 -4
  398. package/dist/EpLineChart-C4d_gdV7.js +0 -4
  399. package/dist/EpLink-oaKKn4qV.js +0 -4
  400. package/dist/EpLinkVersion-sfPy24Q2.js +0 -4
  401. package/dist/EpList-WwXeYUBm.js +0 -12
  402. package/dist/EpListitem-DXh4Kniu.js +0 -37
  403. package/dist/EpLottieSvg-NNSQLDpl.js +0 -1971
  404. package/dist/EpModal-BFqQKJTz.js +0 -4
  405. package/dist/EpNothing-C7vQO8hI.js +0 -10
  406. package/dist/EpObjective-C-c4gSvJ.js +0 -4
  407. package/dist/EpPieChart-B2mmQPO0.js +0 -4
  408. package/dist/EpQuestion-BMaqguZl.js +0 -4
  409. package/dist/EpQuote-CmpgynGk.js +0 -4
  410. package/dist/EpRadio-CUCgpUd_.js +0 -4
  411. package/dist/EpRadioSummative-DZNPH8SS.js +0 -4
  412. package/dist/EpReading-C_Puu9TF.js +0 -4
  413. package/dist/EpResource-YGl2YYa7.js +0 -4
  414. package/dist/EpScope-Bp8GVIxi.js +0 -4
  415. package/dist/EpSection-BCWwtKzA.js +0 -4
  416. package/dist/EpSectionCols-B1jykYrm.js +0 -4
  417. package/dist/EpSkeleton-VIzyuHgV.js +0 -4
  418. package/dist/EpSoftware-DR-Xei3P.js +0 -4
  419. package/dist/EpSpecificObjective-BzXora8y.js +0 -4
  420. package/dist/EpSpinner-BdhlSybk.js +0 -4
  421. package/dist/EpStackedList-hI9ca8KS.js +0 -4
  422. package/dist/EpSummativeTable-uPZf61d-.js +0 -4
  423. package/dist/EpSvg-TMco7bdD.js +0 -4
  424. package/dist/EpSvgShow-BcbojKsh.js +0 -4
  425. package/dist/EpSwitch-DtQon_hm.js +0 -64
  426. package/dist/EpTable-D8hV58AR.js +0 -4
  427. package/dist/EpTerm-BEi5nmEU.js +0 -4
  428. package/dist/EpText-D5p3vydP.js +0 -4
  429. package/dist/EpTimeLine-sgB1Bt70.js +0 -4
  430. package/dist/EpVideo-CLG17rgW.js +0 -4
  431. package/dist/EpVideoPanopto-CkY4bRjs.js +0 -4
  432. package/dist/EpWordDef-CrYgSmrV.js +0 -4
  433. package/dist/TextMedia-CtH3oJ5E.js +0 -4
  434. package/dist/TwoColsMedia-Di0IhDFz.js +0 -48
  435. package/dist/components/basics/EpAvatar.vue.d.ts +0 -51
  436. package/dist/components/basics/EpBadge.vue.d.ts +0 -37
  437. package/dist/components/basics/EpBtn.vue.d.ts +0 -64
  438. package/dist/components/basics/EpCard.vue.d.ts +0 -78
  439. package/dist/components/basics/EpChip.vue.d.ts +0 -60
  440. package/dist/components/basics/EpDivider.vue.d.ts +0 -46
  441. package/dist/components/basics/EpFlex.vue.d.ts +0 -11
  442. package/dist/components/basics/EpHover.vue.d.ts +0 -53
  443. package/dist/components/basics/EpHoverCard.vue.d.ts +0 -86
  444. package/dist/components/basics/EpIcon.vue.d.ts +0 -34
  445. package/dist/components/basics/EpImg.vue.d.ts +0 -64
  446. package/dist/components/basics/EpImgCarousel.vue.d.ts +0 -77
  447. package/dist/components/basics/EpList.vue.d.ts +0 -11
  448. package/dist/components/basics/EpListitem.vue.d.ts +0 -45
  449. package/dist/components/basics/EpSection.vue.d.ts +0 -55
  450. package/dist/components/basics/EpSectionCols.vue.d.ts +0 -69
  451. package/dist/components/basics/EpSpinner.vue.d.ts +0 -40
  452. package/dist/components/basics/EpStackedList.vue.d.ts +0 -58
  453. package/dist/components/basics/EpTable.vue.d.ts +0 -24
  454. package/dist/components/basics/EpText.vue.d.ts +0 -51
  455. package/dist/components/charts/EpBarChart.vue.d.ts +0 -57
  456. package/dist/components/charts/EpFunnelChart.vue.d.ts +0 -61
  457. package/dist/components/charts/EpLineChart.vue.d.ts +0 -57
  458. package/dist/components/charts/EpPieChart.vue.d.ts +0 -62
  459. package/dist/components/educationals/EpBranchingScenario.vue.d.ts +0 -74
  460. package/dist/components/educationals/EpCodeblock.vue.d.ts +0 -48
  461. package/dist/components/educationals/EpConclusion.vue.d.ts +0 -39
  462. package/dist/components/educationals/EpDescription.vue.d.ts +0 -39
  463. package/dist/components/educationals/EpDocument.vue.d.ts +0 -44
  464. package/dist/components/educationals/EpEdu.vue.d.ts +0 -62
  465. package/dist/components/educationals/EpInstructions.vue.d.ts +0 -37
  466. package/dist/components/educationals/EpIntroduction.vue.d.ts +0 -39
  467. package/dist/components/educationals/EpObjective.vue.d.ts +0 -39
  468. package/dist/components/educationals/EpReading.vue.d.ts +0 -87
  469. package/dist/components/educationals/EpResource.vue.d.ts +0 -34
  470. package/dist/components/educationals/EpScope.vue.d.ts +0 -24
  471. package/dist/components/educationals/EpSpecificObjective.vue.d.ts +0 -35
  472. package/dist/components/forms/EpCheckbox.vue.d.ts +0 -52
  473. package/dist/components/forms/EpInput.vue.d.ts +0 -65
  474. package/dist/components/forms/EpRadio.vue.d.ts +0 -57
  475. package/dist/components/forms/EpRadioSummative.vue.d.ts +0 -57
  476. package/dist/components/forms/EpSelect.vue.d.ts +0 -28
  477. package/dist/components/forms/EpSwitch.vue.d.ts +0 -58
  478. package/dist/components/forms/EpTextarea.vue.d.ts +0 -76
  479. package/dist/components/forms/EpToggle.vue.d.ts +0 -72
  480. package/dist/components/interactions/Ep360Image.vue.d.ts +0 -2
  481. package/dist/components/interactions/Ep360Video.vue.d.ts +0 -2
  482. package/dist/components/interactions/EpAccordeon.vue.d.ts +0 -53
  483. package/dist/components/interactions/EpContentSlider.vue.d.ts +0 -39
  484. package/dist/components/interactions/EpDarkmode.vue.d.ts +0 -7
  485. package/dist/components/interactions/EpDraggable.vue.d.ts +0 -26
  486. package/dist/components/interactions/EpHotsPot.vue.d.ts +0 -47
  487. package/dist/components/interactions/EpModal.vue.d.ts +0 -67
  488. package/dist/components/interactions/EpQuestion.vue.d.ts +0 -65
  489. package/dist/components/interactions/EpSummativeTable.vue.d.ts +0 -32
  490. package/dist/components/interactions/EpSvgShow.vue.d.ts +0 -33
  491. package/dist/components/interactions/EpTabs.vue.d.ts +0 -2
  492. package/dist/components/interactions/EpTooltip.vue.d.ts +0 -51
  493. package/dist/components/medias/EpAudio.vue.d.ts +0 -48
  494. package/dist/components/medias/EpCardLink.vue.d.ts +0 -65
  495. package/dist/components/medias/EpCarousel.vue.d.ts +0 -57
  496. package/dist/components/medias/EpHierarchy.vue.d.ts +0 -51
  497. package/dist/components/medias/EpIframe.vue.d.ts +0 -45
  498. package/dist/components/medias/EpKatex.vue.d.ts +0 -36
  499. package/dist/components/medias/EpLink.vue.d.ts +0 -42
  500. package/dist/components/medias/EpLinkVersion.vue.d.ts +0 -50
  501. package/dist/components/medias/EpLottieSvg.vue.d.ts +0 -58
  502. package/dist/components/medias/EpSoftware.vue.d.ts +0 -59
  503. package/dist/components/medias/EpSvg.vue.d.ts +0 -38
  504. package/dist/components/medias/EpTerm.vue.d.ts +0 -72
  505. package/dist/components/medias/EpTimeLine.vue.d.ts +0 -32
  506. package/dist/components/medias/EpVideo.vue.d.ts +0 -45
  507. package/dist/components/medias/EpVideoPanopto.vue.d.ts +0 -45
  508. package/dist/components/medias/EpWordDef.vue.d.ts +0 -63
  509. package/dist/components/signages/EpAlert.vue.d.ts +0 -55
  510. package/dist/components/signages/EpBadge.vue.d.ts +0 -59
  511. package/dist/components/signages/EpHeader.vue.d.ts +0 -112
  512. package/dist/components/signages/EpNothing.vue.d.ts +0 -2
  513. package/dist/components/signages/EpQuote.vue.d.ts +0 -49
  514. package/dist/components/signages/EpSkeleton.vue.d.ts +0 -45
  515. package/dist/components/tools/BgAudio.vue.d.ts +0 -29
  516. package/dist/components/tools/Details.vue.d.ts +0 -36
  517. package/dist/components/tools/DisplayBox.vue.d.ts +0 -19
  518. package/dist/components/tools/SvgFilter.vue.d.ts +0 -2
  519. package/dist/components/tools/TextMedia.vue.d.ts +0 -27
  520. package/dist/components/tools/TimelineItem.vue.d.ts +0 -38
  521. package/dist/components/tools/TwoColsMedia.vue.d.ts +0 -27
  522. package/dist/composables/isHtml.d.ts +0 -1
  523. package/dist/composables/useColors.d.ts +0 -1
  524. package/dist/composables/useComponent.d.ts +0 -6
  525. package/dist/composables/useCreateUid.d.ts +0 -2
  526. package/dist/composables/useIcons.d.ts +0 -26
  527. package/dist/composables/useMarkdown.d.ts +0 -1
  528. package/dist/composables/useRenderText.d.ts +0 -1
  529. package/dist/ep-lib-ts.js +0 -61
  530. package/dist/ep-lib-ts.umd.cjs +0 -465
  531. package/dist/index-4g-JMv7A.js +0 -24658
  532. package/dist/index-CLaGcnM3.js +0 -49358
  533. package/dist/index-CO05CQPt.js +0 -3430
  534. package/dist/index.d.ts +0 -60
  535. package/dist/main.d.ts +0 -1
  536. package/dist/prism-B3HCGkuN.js +0 -1182
  537. package/dist/router.d.ts +0 -2
  538. package/dist/style.css +0 -1
  539. package/src/components/basics/EpAvatar.vue +0 -72
  540. package/src/components/basics/EpBadge.vue +0 -78
  541. package/src/components/basics/EpBtn.vue +0 -88
  542. package/src/components/basics/EpCard.vue +0 -125
  543. package/src/components/basics/EpChip.vue +0 -80
  544. package/src/components/basics/EpDivider.vue +0 -40
  545. package/src/components/basics/EpFlex.vue +0 -43
  546. package/src/components/basics/EpHover.vue +0 -61
  547. package/src/components/basics/EpHoverCard.vue +0 -125
  548. package/src/components/basics/EpIcon.vue +0 -25
  549. package/src/components/basics/EpImg.vue +0 -162
  550. package/src/components/basics/EpImgCarousel.vue +0 -145
  551. package/src/components/basics/EpList.vue +0 -10
  552. package/src/components/basics/EpListitem.vue +0 -52
  553. package/src/components/basics/EpSection.vue +0 -74
  554. package/src/components/basics/EpSectionCols.vue +0 -100
  555. package/src/components/basics/EpSpinner.vue +0 -57
  556. package/src/components/basics/EpStackedList.vue +0 -79
  557. package/src/components/basics/EpTable.vue +0 -33
  558. package/src/components/basics/EpText.vue +0 -148
  559. package/src/components/charts/EpBarChart.vue +0 -94
  560. package/src/components/charts/EpFunnelChart.vue +0 -135
  561. package/src/components/charts/EpLineChart.vue +0 -106
  562. package/src/components/charts/EpPieChart.vue +0 -102
  563. package/src/components/educationals/EpBranchingScenario.vue +0 -307
  564. package/src/components/educationals/EpCodeblock.vue +0 -74
  565. package/src/components/educationals/EpConclusion.vue +0 -38
  566. package/src/components/educationals/EpDescription.vue +0 -38
  567. package/src/components/educationals/EpDocument.vue +0 -92
  568. package/src/components/educationals/EpEdu.vue +0 -126
  569. package/src/components/educationals/EpInstructions.vue +0 -49
  570. package/src/components/educationals/EpIntroduction.vue +0 -38
  571. package/src/components/educationals/EpObjective.vue +0 -41
  572. package/src/components/educationals/EpReading.vue +0 -255
  573. package/src/components/educationals/EpResource.vue +0 -85
  574. package/src/components/educationals/EpScope.vue +0 -29
  575. package/src/components/educationals/EpSpecificObjective.vue +0 -37
  576. package/src/components/forms/EpCheckbox.vue +0 -47
  577. package/src/components/forms/EpInput.vue +0 -178
  578. package/src/components/forms/EpRadio.vue +0 -72
  579. package/src/components/forms/EpRadioSummative.vue +0 -53
  580. package/src/components/forms/EpSelect.vue +0 -30
  581. package/src/components/forms/EpSwitch.vue +0 -73
  582. package/src/components/forms/EpTextarea.vue +0 -87
  583. package/src/components/forms/EpToggle.vue +0 -96
  584. package/src/components/interactions/Ep360Image.vue +0 -338
  585. package/src/components/interactions/Ep360Video.vue +0 -356
  586. package/src/components/interactions/EpAccordeon.vue +0 -91
  587. package/src/components/interactions/EpContentSlider.vue +0 -177
  588. package/src/components/interactions/EpDarkmode.vue +0 -44
  589. package/src/components/interactions/EpDraggable.vue +0 -192
  590. package/src/components/interactions/EpHotsPot.vue +0 -86
  591. package/src/components/interactions/EpModal.vue +0 -119
  592. package/src/components/interactions/EpQuestion.vue +0 -188
  593. package/src/components/interactions/EpSummativeTable.vue +0 -59
  594. package/src/components/interactions/EpSvgShow.vue +0 -108
  595. package/src/components/interactions/EpTabs.vue +0 -10
  596. package/src/components/interactions/EpTooltip.vue +0 -164
  597. package/src/components/medias/EpAudio.vue +0 -97
  598. package/src/components/medias/EpCardLink.vue +0 -82
  599. package/src/components/medias/EpCarousel.vue +0 -190
  600. package/src/components/medias/EpHierarchy.vue +0 -368
  601. package/src/components/medias/EpIframe.vue +0 -73
  602. package/src/components/medias/EpKatex.vue +0 -76
  603. package/src/components/medias/EpLink.vue +0 -78
  604. package/src/components/medias/EpLinkVersion.vue +0 -48
  605. package/src/components/medias/EpLottieSvg.vue +0 -79
  606. package/src/components/medias/EpSoftware.vue +0 -92
  607. package/src/components/medias/EpSvg.vue +0 -66
  608. package/src/components/medias/EpTerm.vue +0 -174
  609. package/src/components/medias/EpTimeLine.vue +0 -109
  610. package/src/components/medias/EpVideo.vue +0 -130
  611. package/src/components/medias/EpVideoPanopto.vue +0 -71
  612. package/src/components/medias/EpWordDef.vue +0 -142
  613. package/src/components/signages/EpAlert.vue +0 -109
  614. package/src/components/signages/EpBadge.vue +0 -82
  615. package/src/components/signages/EpHeader.vue +0 -215
  616. package/src/components/signages/EpNothing.vue +0 -5
  617. package/src/components/signages/EpQuote.vue +0 -72
  618. package/src/components/signages/EpSkeleton.vue +0 -48
  619. package/src/components/tools/BgAudio.vue +0 -51
  620. package/src/components/tools/Details.vue +0 -47
  621. package/src/components/tools/DisplayBox.vue +0 -44
  622. package/src/components/tools/SvgFilter.vue +0 -220
  623. package/src/components/tools/TextMedia.vue +0 -44
  624. package/src/components/tools/TimelineItem.vue +0 -141
  625. package/src/components/tools/TwoColsMedia.vue +0 -52
  626. /package/dist/{types/Accordeon.d.ts → Accordeon.d.ts} +0 -0
  627. /package/dist/{types/Aframe.d.ts → Aframe.d.ts} +0 -0
  628. /package/dist/{types/Alert.d.ts → Alert.d.ts} +0 -0
  629. /package/dist/{types/Avatar.d.ts → Avatar.d.ts} +0 -0
  630. /package/dist/{types/Badge.d.ts → Badge.d.ts} +0 -0
  631. /package/dist/{types/Border.d.ts → Border.d.ts} +0 -0
  632. /package/dist/{types/Btn.d.ts → Btn.d.ts} +0 -0
  633. /package/dist/{types/Card.d.ts → Card.d.ts} +0 -0
  634. /package/dist/{types/Chip.d.ts → Chip.d.ts} +0 -0
  635. /package/dist/{types/Codeblock.d.ts → Codeblock.d.ts} +0 -0
  636. /package/dist/{types/Cols.d.ts → Cols.d.ts} +0 -0
  637. /package/dist/{types/Component.d.ts → Component.d.ts} +0 -0
  638. /package/dist/{types/Draggable.d.ts → Draggable.d.ts} +0 -0
  639. /package/dist/{types/GlossaryEntry.d.ts → GlossaryEntry.d.ts} +0 -0
  640. /package/dist/{types/Hover.d.ts → Hover.d.ts} +0 -0
  641. /package/dist/{types/Image.d.ts → Image.d.ts} +0 -0
  642. /package/dist/{types/MandateLevel.d.ts → MandateLevel.d.ts} +0 -0
  643. /package/dist/{types/MediaCarousel.d.ts → MediaCarousel.d.ts} +0 -0
  644. /package/dist/{types/Medias.d.ts → Medias.d.ts} +0 -0
  645. /package/dist/{types/Radio.d.ts → Radio.d.ts} +0 -0
  646. /package/dist/{types/Slides.d.ts → Slides.d.ts} +0 -0
  647. /package/dist/{types/StackedList.d.ts → StackedList.d.ts} +0 -0
  648. /package/dist/{types/SummativeTable.d.ts → SummativeTable.d.ts} +0 -0
  649. /package/dist/{types/Switch.d.ts → Switch.d.ts} +0 -0
  650. /package/dist/{types/Three.d.ts → Three.d.ts} +0 -0
  651. /package/dist/{types/TimeLine.d.ts → TimeLine.d.ts} +0 -0
  652. /package/dist/{types/Tooltip.d.ts → Tooltip.d.ts} +0 -0
  653. /package/dist/{EpCheckbox-D-AiG1k1.js → components/forms/EpCheckbox.vue.js} +0 -0
  654. /package/dist/{EpSelect-C10jbOyP.js → components/forms/EpSelect.vue.js} +0 -0
  655. /package/dist/{types/image360.d.ts → image360.d.ts} +0 -0
  656. /package/dist/{types/video360.d.ts → video360.d.ts} +0 -0
@@ -0,0 +1,144 @@
1
+ import { defineComponent as D, ref as c, onMounted as S, onUnmounted as j, computed as y, createElementBlock as r, openBlock as l, createElementVNode as u, createVNode as f, unref as v, withCtx as k, Fragment as x, renderList as P, toDisplayString as V, createBlock as H, normalizeStyle as W, createCommentVNode as w } from "vue";
2
+ import { VueDraggableNext as C } from "vue-draggable-next";
3
+ import { mdiCloseThick as F, mdiCheckBold as M } from "@mdi/js";
4
+ import R from "../basics/EpIcon.vue.js";
5
+ const T = { class: "flex flex-col" }, $ = { class: "grid grid-cols-3 gap-3 w-full my-8" }, q = { class: "col-span-1 m-6" }, G = ["src"], J = {
6
+ key: 1,
7
+ class: "cursor-grab active:cursor-grabbing"
8
+ }, K = { class: "col-span-2 relative" }, O = ["src"], Q = ["src"], X = {
9
+ key: 1,
10
+ class: "cursor-grab active:cursor-grabbing"
11
+ }, Y = {
12
+ key: 2,
13
+ class: "absolute -top-5 -right-5 bg-red-500 text-white px-2 py-1 rounded-md"
14
+ }, Z = {
15
+ key: 3,
16
+ class: "absolute -top-5 -right-5 bg-green-500 text-white px-2 py-1 rounded-md"
17
+ }, le = /* @__PURE__ */ D({
18
+ __name: "EpDraggable",
19
+ props: {
20
+ answers: {},
21
+ src: {},
22
+ sockets: {}
23
+ },
24
+ setup(A) {
25
+ const d = A, b = c(0), _ = c(0), g = c({ width: 0, height: 0 }), h = c(null), p = () => {
26
+ if (!h.value) return;
27
+ const t = h.value.getBoundingClientRect();
28
+ g.value = { width: t.width, height: t.height };
29
+ };
30
+ S(() => {
31
+ window.addEventListener("resize", p);
32
+ }), j(() => {
33
+ window.removeEventListener("resize", p);
34
+ });
35
+ const E = (t) => {
36
+ b.value = t.target.naturalWidth, _.value = t.target.naturalHeight, p();
37
+ }, z = y(() => g.value.width == 0 ? 1 : g.value.width / b.value), B = y(() => g.value.height == 0 ? 1 : g.value.height / _.value), n = c([...d.answers]), e = c(
38
+ d.sockets.map((t) => ({
39
+ choice: [],
40
+ expected: t.correctAnswer,
41
+ allowPut: !0
42
+ }))
43
+ ), I = (t, s) => {
44
+ n.value = n.value.filter(
45
+ (o) => o.name !== t.clone.name
46
+ ), e.value[s].allowPut = !1;
47
+ }, L = (t, s) => {
48
+ e.value[s].choice = [], e.value[s].allowPut = !0;
49
+ }, i = c(!1), N = () => {
50
+ i.value = !0, e.value.forEach((t) => {
51
+ t.allowPut = !1;
52
+ });
53
+ }, U = () => {
54
+ i.value = !1, n.value = [...d.answers], e.value.forEach((t) => {
55
+ t.choice = [], t.allowPut = !0;
56
+ });
57
+ };
58
+ return (t, s) => (l(), r("div", T, [
59
+ u("div", $, [
60
+ u("div", q, [
61
+ f(v(C), {
62
+ class: "dragArea bg-gray-700 rounded-md p-4 min-h-5 list-group w-full",
63
+ modelValue: n.value,
64
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => n.value = o),
65
+ group: { name: "answers", pull: !i.value, put: !i.value }
66
+ }, {
67
+ default: k(() => [
68
+ (l(!0), r(x, null, P(n.value, (o) => (l(), r("div", {
69
+ class: "list-group-item bg-gray-300 dark:bg-gray-800 m-1 p-3 rounded-md text-center flex justify-center items-center",
70
+ key: o.name
71
+ }, [
72
+ o.isImg ? (l(), r("img", {
73
+ key: 0,
74
+ class: "cursor-grab active:cursor-grabbing max-w-32 rounded",
75
+ src: o.src,
76
+ alt: "img"
77
+ }, null, 8, G)) : (l(), r("p", J, V(o.name), 1))
78
+ ]))), 128))
79
+ ]),
80
+ _: 1
81
+ }, 8, ["modelValue", "group"])
82
+ ]),
83
+ u("div", K, [
84
+ u("img", {
85
+ onLoad: E,
86
+ ref_key: "myImage",
87
+ ref: h,
88
+ src: d.src,
89
+ alt: "img",
90
+ class: "w-full h-full select-none"
91
+ }, null, 40, O),
92
+ (l(!0), r(x, null, P(d.sockets, (o, a) => (l(), H(v(C), {
93
+ class: "dropArea absolute bg-gray-300 dark:bg-gray-800 p-4 rounded-md min-w-14 max-w-32",
94
+ key: a,
95
+ modelValue: e.value[a].choice,
96
+ "onUpdate:modelValue": (m) => e.value[a].choice = m,
97
+ group: { put: e.value[a].allowPut },
98
+ style: W({
99
+ left: o.xPos * z.value + "px",
100
+ top: o.yPos * B.value + "px"
101
+ }),
102
+ onAdd: (m) => I(m, a),
103
+ onRemove: (m) => L(m, a)
104
+ }, {
105
+ default: k(() => [
106
+ e.value[a].choice[0] && e.value[a].choice[0].isImg ? (l(), r("img", {
107
+ key: 0,
108
+ class: "cursor-grab active:cursor-grabbing rounded",
109
+ src: e.value[a].choice[0].src,
110
+ alt: "img"
111
+ }, null, 8, Q)) : e.value[a].choice[0] ? (l(), r("p", X, V(e.value[a].choice[0].name), 1)) : w("", !0),
112
+ i.value && e.value[a].choice[0]?.name !== e.value[a].expected ? (l(), r("span", Y, [
113
+ f(R, {
114
+ iconPath: v(F),
115
+ size: "18"
116
+ }, null, 8, ["iconPath"])
117
+ ])) : w("", !0),
118
+ i.value && e.value[a].choice[0]?.name === e.value[a].expected ? (l(), r("span", Z, [
119
+ f(R, {
120
+ iconPath: v(M),
121
+ size: "18"
122
+ }, null, 8, ["iconPath"])
123
+ ])) : w("", !0)
124
+ ]),
125
+ _: 2
126
+ }, 1032, ["modelValue", "onUpdate:modelValue", "group", "style", "onAdd", "onRemove"]))), 128))
127
+ ])
128
+ ]),
129
+ u("div", { class: "flex justify-center gap-4 mt-8" }, [
130
+ u("button", {
131
+ class: "bg-blue-500 text-white px-3 py-2 rounded-md text-center",
132
+ onClick: N
133
+ }, " Valider "),
134
+ u("button", {
135
+ class: "bg-blue-500 text-white px-3 py-2 rounded-md text-center",
136
+ onClick: U
137
+ }, " Recommencer ")
138
+ ])
139
+ ]));
140
+ }
141
+ });
142
+ export {
143
+ le as default
144
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpDraggable.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as x, toRefs as g, computed as b, ref as c, createElementBlock as n, openBlock as l, createElementVNode as o, toDisplayString as m, unref as u, createCommentVNode as k, Fragment as C, renderList as P, normalizeStyle as $, normalizeClass as w } from "vue";
1
+ import { defineComponent as x, toRefs as g, computed as b, ref as c, createElementBlock as n, openBlock as l, createElementVNode as o, toDisplayString as m, unref as u, createCommentVNode as k, Fragment as C, renderList as $, normalizeStyle as P, normalizeClass as w } from "vue";
2
2
  const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src", "alt"], M = ["onClick"], E = {
3
3
  key: 0,
4
4
  class: "absolute inset-0 flex items-center justify-center bg-black bg-opacity-5 px-2"
5
- }, H = { class: "mx-2 bg-white p-2 shadow-md" }, R = ["innerHTML"], N = /* @__PURE__ */ x({
6
- __name: "EpHotsPot",
5
+ }, H = { class: "mx-2 bg-white p-2 shadow-md" }, R = ["innerHTML"], F = /* @__PURE__ */ x({
6
+ __name: "EpHotSpot",
7
7
  props: {
8
8
  id: {},
9
9
  imageURL: {},
@@ -31,12 +31,12 @@ const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src",
31
31
  src: u(h),
32
32
  alt: `l'image de ${u(d)}`
33
33
  }, null, 8, L),
34
- (l(!0), n(C, null, P(_.value, (s) => (l(), n("button", {
34
+ (l(!0), n(C, null, $(_.value, (s) => (l(), n("button", {
35
35
  key: s.id,
36
- onClick: (D) => v(s.title, s.content),
36
+ onClick: (S) => v(s.title, s.content),
37
37
  class: w("absolute text-white px-4 py-2 shadow-md bg-primary"),
38
- style: $(`${s.position}`)
39
- }, "+", 12, M))), 128)),
38
+ style: P(`${s.position}`)
39
+ }, " + ", 12, M))), 128)),
40
40
  a.value ? (l(), n("div", E, [
41
41
  o("div", H, [
42
42
  o("h4", null, m(p.value), 1),
@@ -55,5 +55,5 @@ const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src",
55
55
  }
56
56
  });
57
57
  export {
58
- N as default
58
+ F as default
59
59
  };
@@ -0,0 +1,4 @@
1
+ import f from "./EpHotSpot.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as m, computed as f, createBlock as p, openBlock as l, Teleport as V, createVNode as o, Transition as _, withCtx as a, createElementBlock as b, createCommentVNode as k, withModifiers as w, createElementVNode as s, normalizeClass as h, renderSlot as v } from "vue";
2
+ import z from "../basics/EpCard.vue.js";
3
+ const B = { class: "mx-auto" }, E = /* @__PURE__ */ m({
4
+ __name: "EpModal",
5
+ props: {
6
+ modelValue: { type: Boolean, default: !1 },
7
+ title: { default: null },
8
+ subtitle: { default: null },
9
+ icon: { default: null },
10
+ persistent: { type: Boolean, default: !1 },
11
+ size: { default: "default" }
12
+ },
13
+ emits: ["update:modelValue"],
14
+ setup(i, { emit: n }) {
15
+ const t = i, d = {
16
+ compact: "w-[45%]",
17
+ default: "w-[75%]",
18
+ comfortable: "w-[85%]"
19
+ }, u = n, r = () => {
20
+ t.persistent || u("update:modelValue", !1);
21
+ }, c = f(() => d[t.size]);
22
+ return (e, C) => (l(), p(V, { to: "body" }, [
23
+ o(_, { name: "modal" }, {
24
+ default: a(() => [
25
+ e.modelValue ? (l(), b("div", {
26
+ key: 0,
27
+ class: "modal-mask",
28
+ onClick: w(r, ["self"])
29
+ }, [
30
+ s("div", {
31
+ class: h(`modal-container ${c.value} max-h-screen overflow-auto`)
32
+ }, [
33
+ s("div", B, [
34
+ o(z, {
35
+ title: e.title,
36
+ subtitle: e.subtitle,
37
+ icon: e.icon
38
+ }, {
39
+ default: a(() => [
40
+ v(e.$slots, "default")
41
+ ]),
42
+ _: 3
43
+ }, 8, ["title", "subtitle", "icon"])
44
+ ])
45
+ ], 2)
46
+ ])) : k("", !0)
47
+ ]),
48
+ _: 3
49
+ })
50
+ ]));
51
+ }
52
+ });
53
+ export {
54
+ E as default
55
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./EpModal.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,175 @@
1
+ import F from "../../_virtual/dynamic-import-helper.js";
2
+ import { defineComponent as j, computed as k, ref as d, watch as q, toRefs as P, createBlock as u, openBlock as o, unref as i, createSlots as O, withCtx as m, createElementVNode as l, createCommentVNode as v, createElementBlock as E, createVNode as g, Fragment as Q, renderList as z, createTextVNode as y, toDisplayString as h, resolveDynamicComponent as G, normalizeProps as J, guardReactiveProps as K, defineAsyncComponent as T } from "vue";
3
+ import U from "../educationals/EpEdu.vue.js";
4
+ import { useRenderText as C } from "../../composables/useRenderText.js";
5
+ import { useComponent as W } from "../../composables/useComponent.js";
6
+ import { mdiHelpCircle as X } from "@mdi/js";
7
+ import S from "../basics/EpImg.vue.js";
8
+ import Y from "../forms/EpRadio.vue.js";
9
+ import I from "../basics/EpBtn.vue.js";
10
+ import B from "../signages/EpAlert.vue.js";
11
+ const Z = ["innerHTML"], ee = { class: "mt-5" }, te = ["innerHTML"], oe = { class: "mb-6" }, ie = { class: "no-list" }, re = {
12
+ key: 2,
13
+ class: "mb-2"
14
+ }, ae = ["innerHTML"], se = {
15
+ key: 0,
16
+ class: "my-2"
17
+ }, ge = /* @__PURE__ */ j({
18
+ __name: "EpQuestion",
19
+ props: {
20
+ title: {},
21
+ intentions: {},
22
+ labelIntentions: {},
23
+ hideIcon: { type: Boolean, default: !1 },
24
+ type: { default: "neutral" },
25
+ question: {},
26
+ answers: {},
27
+ shuffle: { type: Boolean, default: !1 },
28
+ before: { type: Boolean, default: !1 },
29
+ numeration: { type: Boolean, default: !1 },
30
+ src: {},
31
+ labelNoAnswer: { default: "Veuillez choisir une réponse" },
32
+ labelAnswerBtn: { default: "Valider" },
33
+ labelTryAgainBtn: { default: "Réessayer" }
34
+ },
35
+ setup(L) {
36
+ const r = L, _ = k(() => r.intentions ? C(r.intentions) : null), w = k(() => {
37
+ const e = r.answers;
38
+ if (r.shuffle)
39
+ for (let t = e.length - 1; t > 0; t--) {
40
+ const p = Math.floor(Math.random() * (t + 1)), b = e[t];
41
+ e[t] = e[p], e[p] = b;
42
+ }
43
+ return e;
44
+ }), A = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"], H = (e) => r.numeration ? A[e] : e + 1, a = d(""), s = d(!1), f = d(!0), n = d({
45
+ type: "warning",
46
+ text: "no found",
47
+ component: null,
48
+ feedback: ""
49
+ }), V = () => {
50
+ if (a.value === "") {
51
+ f.value = !1;
52
+ return;
53
+ }
54
+ const e = r.answers.find((t) => t.uid === a.value);
55
+ e && (n.value = e, s.value = !0);
56
+ }, D = () => {
57
+ s.value = !1, a.value = "";
58
+ };
59
+ q(a, (e) => {
60
+ e !== "" && (f.value = !0);
61
+ });
62
+ const M = (e) => {
63
+ const t = W(e);
64
+ return t.name === "EpNothing" ? T(() => import("../signages/EpNothing.vue.js")) : T(
65
+ () => F(/* @__PURE__ */ Object.assign({ "../basics/EpAvatar.vue": () => import("../basics/EpAvatar.vue2.js"), "../basics/EpBadge.vue": () => import("../basics/EpBadge.vue2.js"), "../basics/EpBtn.vue": () => import("../basics/EpBtn.vue2.js"), "../basics/EpCard.vue": () => import("../basics/EpCard.vue2.js"), "../basics/EpChip.vue": () => import("../basics/EpChip.vue2.js"), "../basics/EpDivider.vue": () => import("../basics/EpDivider.vue2.js"), "../basics/EpFlex.vue": () => import("../basics/EpFlex.vue2.js"), "../basics/EpHover.vue": () => import("../basics/EpHover.vue2.js"), "../basics/EpHoverCard.vue": () => import("../basics/EpHoverCard.vue2.js"), "../basics/EpIcon.vue": () => import("../basics/EpIcon.vue2.js"), "../basics/EpImg.vue": () => import("../basics/EpImg.vue2.js"), "../basics/EpImgCarousel.vue": () => import("../basics/EpImgCarousel.vue2.js"), "../basics/EpList.vue": () => import("../basics/EpList.vue.js"), "../basics/EpListItem.vue": () => import("../basics/EpListItem.vue2.js"), "../basics/EpSection.vue": () => import("../basics/EpSection.vue2.js"), "../basics/EpSectionCols.vue": () => import("../basics/EpSectionCols.vue2.js"), "../basics/EpSpinner.vue": () => import("../basics/EpSpinner.vue2.js"), "../basics/EpStackedList.vue": () => import("../basics/EpStackedList.vue2.js"), "../basics/EpTable.vue": () => import("../basics/EpTable.vue2.js"), "../basics/EpText.vue": () => import("../basics/EpText.vue2.js"), "../charts/EpBarChart.vue": () => import("../charts/EpBarChart.vue2.js"), "../charts/EpFunnelChart.vue": () => import("../charts/EpFunnelChart.vue2.js"), "../charts/EpLineChart.vue": () => import("../charts/EpLineChart.vue2.js"), "../charts/EpPieChart.vue": () => import("../charts/EpPieChart.vue2.js"), "../educationals/EpBranchingScenario.vue": () => import("../educationals/EpBranchingScenario.vue.js"), "../educationals/EpCodeblock.vue": () => import("../educationals/EpCodeblock.vue3.js"), "../educationals/EpConclusion.vue": () => import("../educationals/EpConclusion.vue2.js"), "../educationals/EpDescription.vue": () => import("../educationals/EpDescription.vue2.js"), "../educationals/EpDocument.vue": () => import("../educationals/EpDocument.vue2.js"), "../educationals/EpEdu.vue": () => import("../educationals/EpEdu.vue2.js"), "../educationals/EpInstructions.vue": () => import("../educationals/EpInstructions.vue2.js"), "../educationals/EpIntroduction.vue": () => import("../educationals/EpIntroduction.vue2.js"), "../educationals/EpObjective.vue": () => import("../educationals/EpObjective.vue2.js"), "../educationals/EpReading.vue": () => import("../educationals/EpReading.vue2.js"), "../educationals/EpResource.vue": () => import("../educationals/EpResource.vue2.js"), "../educationals/EpScope.vue": () => import("../educationals/EpScope.vue2.js"), "../educationals/EpSpecificObjective.vue": () => import("../educationals/EpSpecificObjective.vue2.js"), "../forms/EpCheckbox.vue": () => import("../forms/EpCheckbox.vue2.js"), "../forms/EpInput.vue": () => import("../forms/EpInput.vue2.js"), "../forms/EpRadio.vue": () => import("../forms/EpRadio.vue2.js"), "../forms/EpRadioSummative.vue": () => import("../forms/EpRadioSummative.vue2.js"), "../forms/EpSelect.vue": () => import("../forms/EpSelect.vue2.js"), "../forms/EpSwitch.vue": () => import("../forms/EpSwitch.vue2.js"), "../forms/EpTextarea.vue": () => import("../forms/EpTextarea.vue2.js"), "../forms/EpToggle.vue": () => import("../forms/EpToggle.vue2.js"), "./Ep360Image.vue": () => import("./Ep360Image.vue2.js"), "./Ep360Video.vue": () => import("./Ep360Video.vue2.js"), "./EpAccordeon.vue": () => import("./EpAccordeon.vue.js"), "./EpContentSlider.vue": () => import("./EpContentSlider.vue2.js"), "./EpDarkMode.vue": () => import("./EpDarkMode.vue2.js"), "./EpDraggable.vue": () => import("./EpDraggable.vue2.js"), "./EpHotSpot.vue": () => import("./EpHotSpot.vue2.js"), "./EpModal.vue": () => import("./EpModal.vue3.js"), "./EpQuestion.vue": () => import("./EpQuestion.vue2.js"), "./EpSummativeTable.vue": () => import("./EpSummativeTable.vue2.js"), "./EpSvgShow.vue": () => import("./EpSvgShow.vue2.js"), "./EpTabs.vue": () => import("./EpTabs.vue.js"), "./EpTooltip.vue": () => import("./EpTooltip.vue3.js"), "../medias/EpAudio.vue": () => import("../medias/EpAudio.vue2.js"), "../medias/EpCardLink.vue": () => import("../medias/EpCardLink.vue2.js"), "../medias/EpCarousel.vue": () => import("../medias/EpCarousel.vue.js"), "../medias/EpHierarchy.vue": () => import("../medias/EpHierarchy.vue.js"), "../medias/EpIframe.vue": () => import("../medias/EpIframe.vue2.js"), "../medias/EpKatex.vue": () => import("../medias/EpKatex.vue.js"), "../medias/EpLink.vue": () => import("../medias/EpLink.vue2.js"), "../medias/EpLinkVersion.vue": () => import("../medias/EpLinkVersion.vue2.js"), "../medias/EpLottieSvg.vue": () => import("../medias/EpLottieSvg.vue2.js"), "../medias/EpSensibleImage.vue": () => import("../medias/EpSensibleImage.vue.js"), "../medias/EpSoftware.vue": () => import("../medias/EpSoftware.vue2.js"), "../medias/EpSvg.vue": () => import("../medias/EpSvg.vue2.js"), "../medias/EpTerm.vue": () => import("../medias/EpTerm.vue2.js"), "../medias/EpTimeLine.vue": () => import("../medias/EpTimeLine.vue3.js"), "../medias/EpVideo.vue": () => import("../medias/EpVideo.vue2.js"), "../medias/EpVideoPanopto.vue": () => import("../medias/EpVideoPanopto.vue2.js"), "../medias/EpWordDef.vue": () => import("../medias/EpWordDef.vue2.js"), "../signages/EpAlert.vue": () => import("../signages/EpAlert.vue.js"), "../signages/EpBadge.vue": () => import("../signages/EpBadge.vue2.js"), "../signages/EpHeader.vue": () => import("../signages/EpHeader.vue2.js"), "../signages/EpNothing.vue": () => import("../signages/EpNothing.vue.js"), "../signages/EpQuote.vue": () => import("../signages/EpQuote.vue2.js"), "../signages/EpSkeleton.vue": () => import("../signages/EpSkeleton.vue3.js"), "../tools/BgAudio.vue": () => import("../tools/BgAudio.vue.js"), "../tools/Details.vue": () => import("../tools/Details.vue.js"), "../tools/DisplayBox.vue": () => import("../tools/DisplayBox.vue.js"), "../tools/SvgFilter.vue": () => import("../tools/SvgFilter.vue.js"), "../tools/TextMedia.vue": () => import("../tools/TextMedia.vue.js"), "../tools/TimelineItem.vue": () => import("../tools/TimelineItem.vue.js"), "../tools/TwoColsMedia.vue": () => import("../tools/TwoColsMedia.vue.js") }), `../${t.path}/${t.name}.vue`, 3)
66
+ );
67
+ }, { title: R, intentions: ne, hideIcon: x, question: N, src: c } = P(r);
68
+ return (e, t) => (o(), u(U, {
69
+ title: i(R),
70
+ type: e.type,
71
+ hideIcon: i(x),
72
+ icon: i(X),
73
+ "label-intentions": e.labelIntentions
74
+ }, O({
75
+ content: m(() => [
76
+ l("div", ee, [
77
+ i(c) && e.before ? (o(), u(S, {
78
+ key: 0,
79
+ src: i(c),
80
+ alt: "Image soutien à la question",
81
+ cols: "5"
82
+ }, null, 8, ["src"])) : v("", !0),
83
+ l("div", {
84
+ innerHTML: i(C)(i(N)),
85
+ class: "my-6"
86
+ }, null, 8, te),
87
+ i(c) && !e.before ? (o(), u(S, {
88
+ key: 1,
89
+ src: i(c),
90
+ alt: "Image soutien à la question",
91
+ cols: "5"
92
+ }, null, 8, ["src"])) : v("", !0),
93
+ l("div", oe, [
94
+ l("ol", ie, [
95
+ (o(!0), E(Q, null, z(w.value, (p, b) => (o(), E("li", {
96
+ key: p.uid
97
+ }, [
98
+ g(Y, {
99
+ label: `${H(b)}. ${p.text}`,
100
+ modelValue: a.value,
101
+ "onUpdate:modelValue": t[0] || (t[0] = ($) => a.value = $),
102
+ value: p.uid,
103
+ disabled: s.value,
104
+ type: "primary"
105
+ }, null, 8, ["label", "modelValue", "value", "disabled"])
106
+ ]))), 128))
107
+ ]),
108
+ f.value ? v("", !0) : (o(), u(B, {
109
+ key: 0,
110
+ type: "error",
111
+ outlined: "",
112
+ noIcon: ""
113
+ }, {
114
+ default: m(() => [
115
+ y(h(e.labelNoAnswer), 1)
116
+ ]),
117
+ _: 1
118
+ }))
119
+ ]),
120
+ s.value ? (o(), E("div", re, [
121
+ g(B, {
122
+ type: n.value.type,
123
+ outlined: ""
124
+ }, {
125
+ default: m(() => [
126
+ l("div", {
127
+ innerHTML: i(C)(n.value.feedback)
128
+ }, null, 8, ae)
129
+ ]),
130
+ _: 1
131
+ }, 8, ["type"]),
132
+ n.value.component ? (o(), E("div", se, [
133
+ (o(), u(G(M(n.value.component.type)), J(K({ ...n.value.component.data })), null, 16))
134
+ ])) : v("", !0)
135
+ ])) : v("", !0),
136
+ g(I, {
137
+ type: "primary",
138
+ onClick: V,
139
+ disabled: s.value,
140
+ outlined: "",
141
+ extraClass: "mr-2"
142
+ }, {
143
+ default: m(() => [
144
+ y(h(e.labelAnswerBtn), 1)
145
+ ]),
146
+ _: 1
147
+ }, 8, ["disabled"]),
148
+ s.value ? (o(), u(I, {
149
+ key: 3,
150
+ type: "primary",
151
+ onClick: D,
152
+ outlined: ""
153
+ }, {
154
+ default: m(() => [
155
+ y(h(e.labelTryAgainBtn), 1)
156
+ ]),
157
+ _: 1
158
+ })) : v("", !0)
159
+ ])
160
+ ]),
161
+ _: 2
162
+ }, [
163
+ _.value ? {
164
+ name: "intentions",
165
+ fn: m(() => [
166
+ l("div", { innerHTML: _.value }, null, 8, Z)
167
+ ]),
168
+ key: "0"
169
+ } : void 0
170
+ ]), 1032, ["title", "type", "hideIcon", "icon", "label-intentions"]));
171
+ }
172
+ });
173
+ export {
174
+ ge as default
175
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpQuestion.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,49 @@
1
+ import { defineComponent as _, ref as v, computed as h, createElementBlock as o, openBlock as t, createCommentVNode as k, createElementVNode as r, toDisplayString as n, Fragment as d, renderList as c, createVNode as $, createBlock as g } from "vue";
2
+ import x from "../basics/EpDivider.vue.js";
3
+ import V from "../forms/EpRadioSummative.vue.js";
4
+ const y = { class: "mt-4 bg-base-light p-4 dark:bg-dark dark:border-y-2" }, N = {
5
+ key: 0,
6
+ class: "text-xl font-semibold mb-6"
7
+ }, q = { class: "text-black dark:text-base-light py-2 rounded" }, B = { class: "flex flex-row flex-wrap gap-y-2 sm:gap-x-4" }, E = { class: "text-right pr-16" }, L = { class: "text-sm font-semibold uppercase" }, U = /* @__PURE__ */ _({
8
+ __name: "EpSummativeTable",
9
+ props: {
10
+ title: {},
11
+ questions: {},
12
+ totalLabel: { default: "Total :" }
13
+ },
14
+ setup(S) {
15
+ const u = v([]), p = h(() => u.value.reduce(
16
+ (e, l) => e + l,
17
+ 0
18
+ )), b = (e) => {
19
+ const l = Number(e);
20
+ return isNaN(l) ? 0 : l;
21
+ };
22
+ return (e, l) => (t(), o("div", y, [
23
+ e.title ? (t(), o("h4", N, n(e.title), 1)) : k("", !0),
24
+ (t(!0), o(d, null, c(e.questions, (i, a) => (t(), o(d, {
25
+ key: `item-question-${a}`
26
+ }, [
27
+ r("p", q, n(i.label), 1),
28
+ r("div", B, [
29
+ (t(!0), o(d, null, c(i.options, (s, m) => (t(), g(V, {
30
+ key: `option-question-${m}`,
31
+ id: `option-${a}-${m}-${s.uid}`,
32
+ name: `option-${a}-${m}-${s.uid}`,
33
+ label: s.label,
34
+ value: b(s.value),
35
+ modelValue: u.value[a],
36
+ "onUpdate:modelValue": (f) => u.value[a] = f
37
+ }, null, 8, ["id", "name", "label", "value", "modelValue", "onUpdate:modelValue"]))), 128))
38
+ ]),
39
+ $(x)
40
+ ], 64))), 128)),
41
+ r("div", E, [
42
+ r("span", L, n(e.totalLabel) + " " + n(p.value), 1)
43
+ ])
44
+ ]));
45
+ }
46
+ });
47
+ export {
48
+ U as default
49
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpSummativeTable.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent as f, ref as d, computed as v, onMounted as h, nextTick as p, createElementBlock as L, openBlock as y } from "vue";
2
+ import { useRenderText as E } from "../../composables/useRenderText.js";
3
+ const g = ["innerHTML"], A = /* @__PURE__ */ f({
4
+ __name: "EpSvgShow",
5
+ props: {
6
+ svg: {},
7
+ animation: { default: "" },
8
+ multiple: { type: Boolean, default: !1 }
9
+ },
10
+ setup(u) {
11
+ const r = u, l = d(""), s = d(null), a = v(() => {
12
+ switch (r.animation) {
13
+ case "translateX":
14
+ return "animate-slide";
15
+ case "scale":
16
+ return "animate-zoom";
17
+ default:
18
+ return "animate-fade";
19
+ }
20
+ }), m = (t) => {
21
+ if (!s.value) return;
22
+ const e = s.value.querySelector(
23
+ `[data-scene="${t}"]`
24
+ );
25
+ if (!e) return;
26
+ if (!e.classList.contains("hidden")) {
27
+ e.classList.add("hidden"), e.classList.remove(a.value);
28
+ const i = s.value.getElementsByClassName(
29
+ `scene-${t}`
30
+ );
31
+ Array.from(i).forEach((n) => {
32
+ n.classList.add("hidden"), n.classList.remove(a.value);
33
+ });
34
+ } else {
35
+ r.multiple || c(), e.classList.remove("hidden"), e.classList.add(a.value);
36
+ const i = s.value.getElementsByClassName(
37
+ `scene-${t}`
38
+ );
39
+ Array.from(i).forEach((n) => {
40
+ n.classList.remove("hidden"), n.classList.add(a.value);
41
+ });
42
+ }
43
+ }, c = () => {
44
+ if (!s.value) return;
45
+ const t = s.value.querySelectorAll("[data-scene]");
46
+ Array.from(t).forEach((e) => {
47
+ e.classList.contains("hidden") || (e.classList.add("hidden"), e.classList.remove(a.value));
48
+ });
49
+ };
50
+ return h(async () => {
51
+ if (l.value = E(r.svg), await p(), !s.value) return;
52
+ c();
53
+ const t = s.value.querySelectorAll("[data-btn]");
54
+ Array.from(t).forEach((e) => {
55
+ e.classList.add("cursor-pointer"), e.addEventListener("click", () => {
56
+ const o = e.getAttribute("data-btn");
57
+ m(o ?? "");
58
+ });
59
+ });
60
+ }), (t, e) => (y(), L("div", {
61
+ ref_key: "svgContainer",
62
+ ref: s,
63
+ innerHTML: l.value
64
+ }, null, 8, g));
65
+ }
66
+ });
67
+ export {
68
+ A as default
69
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpSvgShow.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,12 @@
1
+ import { createElementBlock as e, openBlock as t, createElementVNode as o } from "vue";
2
+ import n from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const s = {}, c = { class: "p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning dark:bg-warning" };
4
+ function a(p, r) {
5
+ return t(), e("div", c, [...r[0] || (r[0] = [
6
+ o("p", { class: "text-center text-error font-bold uppercase" }, "In progress", -1)
7
+ ])]);
8
+ }
9
+ const l = /* @__PURE__ */ n(s, [["render", a]]);
10
+ export {
11
+ l as default
12
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent as s, computed as t, createElementBlock as p, openBlock as i, renderSlot as u, createElementVNode as c, normalizeClass as d, toDisplayString as m } from "vue";
2
+ import { typeTooltip as f } from "../../types/Tooltip.js";
3
+ const y = { class: "group relative w-max" }, x = /* @__PURE__ */ s({
4
+ __name: "EpTooltip",
5
+ props: {
6
+ text: {},
7
+ styles: { default: "light" },
8
+ placement: { default: "top" },
9
+ type: {},
10
+ arrow: { default: "none" }
11
+ },
12
+ setup(o) {
13
+ const e = o, a = t(() => e.placement), n = t(() => e.arrow == "arrow" ? e.styles == "dark" ? "arrowdark" : "arrow" : e.styles == "light" ? "default" : "dark"), l = t(() => `${f[a.value]?.[n.value]}`);
14
+ return (r, w) => (i(), p("div", y, [
15
+ u(r.$slots, "default"),
16
+ c("span", {
17
+ class: d(`pointer-events-none absolute w-max rounded px-2 py-1 text-sm font-medium opacity-0 shadow transition-opacity group-hover:opacity-100 ${l.value} `)
18
+ }, m(r.text), 3)
19
+ ]));
20
+ }
21
+ });
22
+ export {
23
+ x as default
24
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./EpTooltip.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };