ep-lib-ts 1.0.59 → 1.0.60
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/_virtual/_plugin-vue_export-helper.js +8 -6
- package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/dist/_virtual/dynamic-import-helper.js +7 -5
- package/dist/_virtual/dynamic-import-helper.js.map +1 -0
- package/dist/assets/ep-lib-ts.css +235 -0
- package/dist/components/basics/EpAvatar.vue.js +45 -19
- package/dist/components/basics/EpAvatar.vue.js.map +1 -0
- package/dist/components/basics/EpAvatar.vue2.js +3 -2
- package/dist/components/basics/EpAvatar.vue2.js.map +1 -0
- package/dist/components/basics/EpBadge.vue.js +3 -2
- package/dist/components/basics/EpBadge.vue.js.map +1 -0
- package/dist/components/basics/EpBadge.vue2.js +21 -12
- package/dist/components/basics/EpBadge.vue2.js.map +1 -0
- package/dist/components/basics/EpBtn.vue.js +81 -55
- package/dist/components/basics/EpBtn.vue.js.map +1 -0
- package/dist/components/basics/EpBtn.vue2.js +3 -2
- package/dist/components/basics/EpBtn.vue2.js.map +1 -0
- package/dist/components/basics/EpCard.vue.js +107 -56
- package/dist/components/basics/EpCard.vue.js.map +1 -0
- package/dist/components/basics/EpCard.vue2.js +3 -2
- package/dist/components/basics/EpCard.vue2.js.map +1 -0
- package/dist/components/basics/EpChip.vue.js +55 -34
- package/dist/components/basics/EpChip.vue.js.map +1 -0
- package/dist/components/basics/EpChip.vue2.js +3 -2
- package/dist/components/basics/EpChip.vue2.js.map +1 -0
- package/dist/components/basics/EpDivider.vue.js +22 -10
- package/dist/components/basics/EpDivider.vue.js.map +1 -0
- package/dist/components/basics/EpDivider.vue2.js +3 -2
- package/dist/components/basics/EpDivider.vue2.js.map +1 -0
- package/dist/components/basics/EpFlex.vue.js +11 -7
- package/dist/components/basics/EpFlex.vue.js.map +1 -0
- package/dist/components/basics/EpFlex.vue2.js +3 -2
- package/dist/components/basics/EpFlex.vue2.js.map +1 -0
- package/dist/components/basics/EpHover.vue.js +38 -23
- package/dist/components/basics/EpHover.vue.js.map +1 -0
- package/dist/components/basics/EpHover.vue2.js +3 -2
- package/dist/components/basics/EpHover.vue2.js.map +1 -0
- package/dist/components/basics/EpHoverCard.vue.js +104 -60
- package/dist/components/basics/EpHoverCard.vue.js.map +1 -0
- package/dist/components/basics/EpHoverCard.vue2.js +3 -2
- package/dist/components/basics/EpHoverCard.vue2.js.map +1 -0
- package/dist/components/basics/EpIcon.vue.js +21 -15
- package/dist/components/basics/EpIcon.vue.js.map +1 -0
- package/dist/components/basics/EpIcon.vue2.js +3 -2
- package/dist/components/basics/EpIcon.vue2.js.map +1 -0
- package/dist/components/basics/EpImg.vue.js +184 -141
- package/dist/components/basics/EpImg.vue.js.map +1 -0
- package/dist/components/basics/EpImg.vue2.js +3 -2
- package/dist/components/basics/EpImg.vue2.js.map +1 -0
- package/dist/components/basics/EpImgCarousel.vue.js +135 -97
- package/dist/components/basics/EpImgCarousel.vue.js.map +1 -0
- package/dist/components/basics/EpImgCarousel.vue2.js +3 -2
- package/dist/components/basics/EpImgCarousel.vue2.js.map +1 -0
- package/dist/components/basics/EpList.vue.js +10 -8
- package/dist/components/basics/EpList.vue.js.map +1 -0
- package/dist/components/basics/EpListItem.vue.js +43 -22
- package/dist/components/basics/EpListItem.vue.js.map +1 -0
- package/dist/components/basics/EpListItem.vue2.js +3 -2
- package/dist/components/basics/EpListItem.vue2.js.map +1 -0
- package/dist/components/basics/EpSection.vue.js +75 -52
- package/dist/components/basics/EpSection.vue.js.map +1 -0
- package/dist/components/basics/EpSection.vue2.js +3 -2
- package/dist/components/basics/EpSection.vue2.js.map +1 -0
- package/dist/components/basics/EpSectionCols.vue.js +92 -67
- package/dist/components/basics/EpSectionCols.vue.js.map +1 -0
- package/dist/components/basics/EpSectionCols.vue2.js +3 -2
- package/dist/components/basics/EpSectionCols.vue2.js.map +1 -0
- package/dist/components/basics/EpSpinner.vue.js +120 -109
- package/dist/components/basics/EpSpinner.vue.js.map +1 -0
- package/dist/components/basics/EpSpinner.vue2.js +3 -2
- package/dist/components/basics/EpSpinner.vue2.js.map +1 -0
- package/dist/components/basics/EpStackedList.vue.js +71 -56
- package/dist/components/basics/EpStackedList.vue.js.map +1 -0
- package/dist/components/basics/EpStackedList.vue2.js +3 -2
- package/dist/components/basics/EpStackedList.vue2.js.map +1 -0
- package/dist/components/basics/EpTable.vue.js +49 -35
- package/dist/components/basics/EpTable.vue.js.map +1 -0
- package/dist/components/basics/EpTable.vue2.js +3 -2
- package/dist/components/basics/EpTable.vue2.js.map +1 -0
- package/dist/components/basics/EpText.vue.js +102 -76
- package/dist/components/basics/EpText.vue.js.map +1 -0
- package/dist/components/basics/EpText.vue2.js +3 -2
- package/dist/components/basics/EpText.vue2.js.map +1 -0
- package/dist/components/charts/EpBarChart.vue.js +78 -59
- package/dist/components/charts/EpBarChart.vue.js.map +1 -0
- package/dist/components/charts/EpBarChart.vue2.js +3 -2
- package/dist/components/charts/EpBarChart.vue2.js.map +1 -0
- package/dist/components/charts/EpFunnelChart.vue.js +103 -82
- package/dist/components/charts/EpFunnelChart.vue.js.map +1 -0
- package/dist/components/charts/EpFunnelChart.vue2.js +3 -2
- package/dist/components/charts/EpFunnelChart.vue2.js.map +1 -0
- package/dist/components/charts/EpLineChart.vue.js +91 -72
- package/dist/components/charts/EpLineChart.vue.js.map +1 -0
- package/dist/components/charts/EpLineChart.vue2.js +3 -2
- package/dist/components/charts/EpLineChart.vue2.js.map +1 -0
- package/dist/components/charts/EpPieChart.vue.js +75 -56
- package/dist/components/charts/EpPieChart.vue.js.map +1 -0
- package/dist/components/charts/EpPieChart.vue2.js +3 -2
- package/dist/components/charts/EpPieChart.vue2.js.map +1 -0
- package/dist/components/educationals/EpBranchingScenario.vue.js +5 -4
- package/dist/components/educationals/EpBranchingScenario.vue.js.map +1 -0
- package/dist/components/educationals/EpBranchingScenario.vue2.js +232 -178
- package/dist/components/educationals/EpBranchingScenario.vue2.js.map +1 -0
- package/dist/components/educationals/EpCodeblock.vue.js +54 -33
- package/dist/components/educationals/EpCodeblock.vue.js.map +1 -0
- package/dist/components/educationals/EpCodeblock.vue3.js +3 -2
- package/dist/components/educationals/EpCodeblock.vue3.js.map +1 -0
- package/dist/components/educationals/EpConclusion.vue.js +37 -26
- package/dist/components/educationals/EpConclusion.vue.js.map +1 -0
- package/dist/components/educationals/EpConclusion.vue2.js +3 -2
- package/dist/components/educationals/EpConclusion.vue2.js.map +1 -0
- package/dist/components/educationals/EpDescription.vue.js +37 -26
- package/dist/components/educationals/EpDescription.vue.js.map +1 -0
- package/dist/components/educationals/EpDescription.vue2.js +3 -2
- package/dist/components/educationals/EpDescription.vue2.js.map +1 -0
- package/dist/components/educationals/EpDocument.vue.js +94 -69
- package/dist/components/educationals/EpDocument.vue.js.map +1 -0
- package/dist/components/educationals/EpDocument.vue2.js +3 -2
- package/dist/components/educationals/EpDocument.vue2.js.map +1 -0
- package/dist/components/educationals/EpEdu.vue.js +100 -61
- package/dist/components/educationals/EpEdu.vue.js.map +1 -0
- package/dist/components/educationals/EpEdu.vue2.js +3 -2
- package/dist/components/educationals/EpEdu.vue2.js.map +1 -0
- package/dist/components/educationals/EpInstructions.vue.js +49 -37
- package/dist/components/educationals/EpInstructions.vue.js.map +1 -0
- package/dist/components/educationals/EpInstructions.vue2.js +3 -2
- package/dist/components/educationals/EpInstructions.vue2.js.map +1 -0
- package/dist/components/educationals/EpIntroduction.vue.js +35 -25
- package/dist/components/educationals/EpIntroduction.vue.js.map +1 -0
- package/dist/components/educationals/EpIntroduction.vue2.js +3 -2
- package/dist/components/educationals/EpIntroduction.vue2.js.map +1 -0
- package/dist/components/educationals/EpObjective.vue.js +22 -15
- package/dist/components/educationals/EpObjective.vue.js.map +1 -0
- package/dist/components/educationals/EpObjective.vue2.js +3 -2
- package/dist/components/educationals/EpObjective.vue2.js.map +1 -0
- package/dist/components/educationals/EpReading.vue.js +313 -248
- package/dist/components/educationals/EpReading.vue.js.map +1 -0
- package/dist/components/educationals/EpReading.vue2.js +3 -2
- package/dist/components/educationals/EpReading.vue2.js.map +1 -0
- package/dist/components/educationals/EpResource.vue.js +56 -20
- package/dist/components/educationals/EpResource.vue.js.map +1 -0
- package/dist/components/educationals/EpResource.vue2.js +3 -2
- package/dist/components/educationals/EpResource.vue2.js.map +1 -0
- package/dist/components/educationals/EpScope.vue.js +26 -17
- package/dist/components/educationals/EpScope.vue.js.map +1 -0
- package/dist/components/educationals/EpScope.vue2.js +3 -2
- package/dist/components/educationals/EpScope.vue2.js.map +1 -0
- package/dist/components/educationals/EpSpecificObjective.vue.js +30 -22
- package/dist/components/educationals/EpSpecificObjective.vue.js.map +1 -0
- package/dist/components/educationals/EpSpecificObjective.vue2.js +3 -2
- package/dist/components/educationals/EpSpecificObjective.vue2.js.map +1 -0
- package/dist/components/forms/EpCheckbox.vue.js +3 -2
- package/dist/components/forms/EpCheckbox.vue.js.map +1 -0
- package/dist/components/forms/EpCheckbox.vue2.js +35 -26
- package/dist/components/forms/EpCheckbox.vue2.js.map +1 -0
- package/dist/components/forms/EpInput.vue.js +3 -2
- package/dist/components/forms/EpInput.vue.js.map +1 -0
- package/dist/components/forms/EpInput.vue2.js +62 -44
- package/dist/components/forms/EpInput.vue2.js.map +1 -0
- package/dist/components/forms/EpRadio.vue.js +3 -2
- package/dist/components/forms/EpRadio.vue.js.map +1 -0
- package/dist/components/forms/EpRadio.vue2.js +48 -27
- package/dist/components/forms/EpRadio.vue2.js.map +1 -0
- package/dist/components/forms/EpRadioSummative.vue.js +3 -2
- package/dist/components/forms/EpRadioSummative.vue.js.map +1 -0
- package/dist/components/forms/EpRadioSummative.vue2.js +36 -23
- package/dist/components/forms/EpRadioSummative.vue2.js.map +1 -0
- package/dist/components/forms/EpSelect.vue.js +3 -2
- package/dist/components/forms/EpSelect.vue.js.map +1 -0
- package/dist/components/forms/EpSelect.vue2.js +30 -22
- package/dist/components/forms/EpSelect.vue2.js.map +1 -0
- package/dist/components/forms/EpSwitch.vue.js +3 -2
- package/dist/components/forms/EpSwitch.vue.js.map +1 -0
- package/dist/components/forms/EpSwitch.vue2.js +47 -35
- package/dist/components/forms/EpSwitch.vue2.js.map +1 -0
- package/dist/components/forms/EpTextarea.vue.js +3 -2
- package/dist/components/forms/EpTextarea.vue.js.map +1 -0
- package/dist/components/forms/EpTextarea.vue2.js +30 -20
- package/dist/components/forms/EpTextarea.vue2.js.map +1 -0
- package/dist/components/forms/EpToggle.vue.js +3 -2
- package/dist/components/forms/EpToggle.vue.js.map +1 -0
- package/dist/components/forms/EpToggle.vue2.js +33 -25
- package/dist/components/forms/EpToggle.vue2.js.map +1 -0
- package/dist/components/interactions/Ep360Image.vue.js +3 -2
- package/dist/components/interactions/Ep360Image.vue.js.map +1 -0
- package/dist/components/interactions/Ep360Image.vue2.js +8 -5
- package/dist/components/interactions/Ep360Image.vue2.js.map +1 -0
- package/dist/components/interactions/Ep360Video.vue.js +3 -2
- package/dist/components/interactions/Ep360Video.vue.js.map +1 -0
- package/dist/components/interactions/Ep360Video.vue2.js +8 -5
- package/dist/components/interactions/Ep360Video.vue2.js.map +1 -0
- package/dist/components/interactions/EpAccordeon.vue.js +5 -4
- package/dist/components/interactions/EpAccordeon.vue.js.map +1 -0
- package/dist/components/interactions/EpAccordeon.vue2.js +88 -60
- package/dist/components/interactions/EpAccordeon.vue2.js.map +1 -0
- package/dist/components/interactions/EpContentSlider.vue.js +208 -156
- package/dist/components/interactions/EpContentSlider.vue.js.map +1 -0
- package/dist/components/interactions/EpContentSlider.vue2.js +3 -2
- package/dist/components/interactions/EpContentSlider.vue2.js.map +1 -0
- package/dist/components/interactions/EpDarkMode.vue.js +54 -37
- package/dist/components/interactions/EpDarkMode.vue.js.map +1 -0
- package/dist/components/interactions/EpDarkMode.vue2.js +3 -2
- package/dist/components/interactions/EpDarkMode.vue2.js.map +1 -0
- package/dist/components/interactions/EpDraggable.vue.js +171 -119
- package/dist/components/interactions/EpDraggable.vue.js.map +1 -0
- package/dist/components/interactions/EpDraggable.vue2.js +3 -2
- package/dist/components/interactions/EpDraggable.vue2.js.map +1 -0
- package/dist/components/interactions/EpHotSpot.vue.js +78 -45
- package/dist/components/interactions/EpHotSpot.vue.js.map +1 -0
- package/dist/components/interactions/EpHotSpot.vue2.js +3 -2
- package/dist/components/interactions/EpHotSpot.vue2.js.map +1 -0
- package/dist/components/interactions/EpModal.vue.js +51 -39
- package/dist/components/interactions/EpModal.vue.js.map +1 -0
- package/dist/components/interactions/EpModal.vue3.js +3 -2
- package/dist/components/interactions/EpModal.vue3.js.map +1 -0
- package/dist/components/interactions/EpQuestion.vue.js +181 -134
- package/dist/components/interactions/EpQuestion.vue.js.map +1 -0
- package/dist/components/interactions/EpQuestion.vue2.js +3 -2
- package/dist/components/interactions/EpQuestion.vue2.js.map +1 -0
- package/dist/components/interactions/EpSummativeTable.vue.js +57 -36
- package/dist/components/interactions/EpSummativeTable.vue.js.map +1 -0
- package/dist/components/interactions/EpSummativeTable.vue2.js +3 -2
- package/dist/components/interactions/EpSummativeTable.vue2.js.map +1 -0
- package/dist/components/interactions/EpSvgShow.vue.js +64 -42
- package/dist/components/interactions/EpSvgShow.vue.js.map +1 -0
- package/dist/components/interactions/EpSvgShow.vue2.js +3 -2
- package/dist/components/interactions/EpSvgShow.vue2.js.map +1 -0
- package/dist/components/interactions/EpTabs.vue.js +10 -8
- package/dist/components/interactions/EpTabs.vue.js.map +1 -0
- package/dist/components/interactions/EpTooltip.vue.js +38 -12
- package/dist/components/interactions/EpTooltip.vue.js.map +1 -0
- package/dist/components/interactions/EpTooltip.vue3.js +3 -2
- package/dist/components/interactions/EpTooltip.vue3.js.map +1 -0
- package/dist/components/medias/EpAudio.vue.js +92 -60
- package/dist/components/medias/EpAudio.vue.js.map +1 -0
- package/dist/components/medias/EpAudio.vue2.js +3 -2
- package/dist/components/medias/EpAudio.vue2.js.map +1 -0
- package/dist/components/medias/EpCardLink.vue.js +60 -46
- package/dist/components/medias/EpCardLink.vue.js.map +1 -0
- package/dist/components/medias/EpCardLink.vue2.js +3 -2
- package/dist/components/medias/EpCardLink.vue2.js.map +1 -0
- package/dist/components/medias/EpCarousel.vue.js +5 -4
- package/dist/components/medias/EpCarousel.vue.js.map +1 -0
- package/dist/components/medias/EpCarousel.vue2.js +168 -130
- package/dist/components/medias/EpCarousel.vue2.js.map +1 -0
- package/dist/components/medias/EpHierarchy.vue.js +5 -4
- package/dist/components/medias/EpHierarchy.vue.js.map +1 -0
- package/dist/components/medias/EpHierarchy.vue2.js +186 -106
- package/dist/components/medias/EpHierarchy.vue2.js.map +1 -0
- package/dist/components/medias/EpIframe.vue.js +65 -38
- package/dist/components/medias/EpIframe.vue.js.map +1 -0
- package/dist/components/medias/EpIframe.vue2.js +3 -2
- package/dist/components/medias/EpIframe.vue2.js.map +1 -0
- package/dist/components/medias/EpKatex.vue.js +5 -4
- package/dist/components/medias/EpKatex.vue.js.map +1 -0
- package/dist/components/medias/EpKatex.vue2.js +59 -43
- package/dist/components/medias/EpKatex.vue2.js.map +1 -0
- package/dist/components/medias/EpLink.vue.js +73 -56
- package/dist/components/medias/EpLink.vue.js.map +1 -0
- package/dist/components/medias/EpLink.vue2.js +3 -2
- package/dist/components/medias/EpLink.vue2.js.map +1 -0
- package/dist/components/medias/EpLinkVersion.vue.js +33 -24
- package/dist/components/medias/EpLinkVersion.vue.js.map +1 -0
- package/dist/components/medias/EpLinkVersion.vue2.js +3 -2
- package/dist/components/medias/EpLinkVersion.vue2.js.map +1 -0
- package/dist/components/medias/EpLottieSvg.vue.js +54 -34
- package/dist/components/medias/EpLottieSvg.vue.js.map +1 -0
- package/dist/components/medias/EpLottieSvg.vue2.js +3 -2
- package/dist/components/medias/EpLottieSvg.vue2.js.map +1 -0
- package/dist/components/medias/EpSensibleImage.vue.js +5 -4
- package/dist/components/medias/EpSensibleImage.vue.js.map +1 -0
- package/dist/components/medias/EpSensibleImage.vue2.js +67 -50
- package/dist/components/medias/EpSensibleImage.vue2.js.map +1 -0
- package/dist/components/medias/EpSoftware.vue.js +104 -86
- package/dist/components/medias/EpSoftware.vue.js.map +1 -0
- package/dist/components/medias/EpSoftware.vue2.js +3 -2
- package/dist/components/medias/EpSoftware.vue2.js.map +1 -0
- package/dist/components/medias/EpSvg.vue.js +56 -40
- package/dist/components/medias/EpSvg.vue.js.map +1 -0
- package/dist/components/medias/EpSvg.vue2.js +3 -2
- package/dist/components/medias/EpSvg.vue2.js.map +1 -0
- package/dist/components/medias/EpTerm.vue.js +163 -111
- package/dist/components/medias/EpTerm.vue.js.map +1 -0
- package/dist/components/medias/EpTerm.vue2.js +3 -2
- package/dist/components/medias/EpTerm.vue2.js.map +1 -0
- package/dist/components/medias/EpTimeLine.vue.js +89 -52
- package/dist/components/medias/EpTimeLine.vue.js.map +1 -0
- package/dist/components/medias/EpTimeLine.vue3.js +3 -2
- package/dist/components/medias/EpTimeLine.vue3.js.map +1 -0
- package/dist/components/medias/EpVideo.vue.js +97 -63
- package/dist/components/medias/EpVideo.vue.js.map +1 -0
- package/dist/components/medias/EpVideo.vue2.js +3 -2
- package/dist/components/medias/EpVideo.vue2.js.map +1 -0
- package/dist/components/medias/EpVideoPanopto.vue.js +61 -40
- package/dist/components/medias/EpVideoPanopto.vue.js.map +1 -0
- package/dist/components/medias/EpVideoPanopto.vue2.js +3 -2
- package/dist/components/medias/EpVideoPanopto.vue2.js.map +1 -0
- package/dist/components/medias/EpWordDef.vue.js +123 -73
- package/dist/components/medias/EpWordDef.vue.js.map +1 -0
- package/dist/components/medias/EpWordDef.vue2.js +3 -2
- package/dist/components/medias/EpWordDef.vue2.js.map +1 -0
- package/dist/components/signages/EpAlert.vue.js +5 -4
- package/dist/components/signages/EpAlert.vue.js.map +1 -0
- package/dist/components/signages/EpAlert.vue2.js +87 -51
- package/dist/components/signages/EpAlert.vue2.js.map +1 -0
- package/dist/components/signages/EpBadge.vue.js +44 -17
- package/dist/components/signages/EpBadge.vue.js.map +1 -0
- package/dist/components/signages/EpBadge.vue2.js +3 -2
- package/dist/components/signages/EpBadge.vue2.js.map +1 -0
- package/dist/components/signages/EpHeader.vue.js +179 -143
- package/dist/components/signages/EpHeader.vue.js.map +1 -0
- package/dist/components/signages/EpHeader.vue2.js +3 -2
- package/dist/components/signages/EpHeader.vue2.js.map +1 -0
- package/dist/components/signages/EpNothing.vue.js +8 -7
- package/dist/components/signages/EpNothing.vue.js.map +1 -0
- package/dist/components/signages/EpQuote.vue.js +83 -61
- package/dist/components/signages/EpQuote.vue.js.map +1 -0
- package/dist/components/signages/EpQuote.vue2.js +3 -2
- package/dist/components/signages/EpQuote.vue2.js.map +1 -0
- package/dist/components/signages/EpSkeleton.vue.js +31 -22
- package/dist/components/signages/EpSkeleton.vue.js.map +1 -0
- package/dist/components/signages/EpSkeleton.vue3.js +3 -2
- package/dist/components/signages/EpSkeleton.vue3.js.map +1 -0
- package/dist/components/tools/BgAudio.vue.js +3 -2
- package/dist/components/tools/BgAudio.vue.js.map +1 -0
- package/dist/components/tools/BgAudio.vue2.js +39 -42
- package/dist/components/tools/BgAudio.vue2.js.map +1 -0
- package/dist/components/tools/Details.vue.js +3 -2
- package/dist/components/tools/Details.vue.js.map +1 -0
- package/dist/components/tools/Details.vue2.js +48 -43
- package/dist/components/tools/Details.vue2.js.map +1 -0
- package/dist/components/tools/DisplayBox.vue.js +41 -3
- package/dist/components/tools/DisplayBox.vue.js.map +1 -0
- package/dist/components/tools/DisplayBox.vue3.js +6 -0
- package/dist/components/tools/DisplayBox.vue3.js.map +1 -0
- package/dist/components/tools/SvgFilter.vue.js +10 -47
- package/dist/components/tools/SvgFilter.vue.js.map +1 -0
- package/dist/components/tools/TextMedia.vue.js +3 -2
- package/dist/components/tools/TextMedia.vue.js.map +1 -0
- package/dist/components/tools/TextMedia.vue2.js +37 -25
- package/dist/components/tools/TextMedia.vue2.js.map +1 -0
- package/dist/components/tools/TimelineItem.vue.js +5 -4
- package/dist/components/tools/TimelineItem.vue.js.map +1 -0
- package/dist/components/tools/TimelineItem.vue2.js +136 -84
- package/dist/components/tools/TimelineItem.vue2.js.map +1 -0
- package/dist/components/tools/TwoColsMedia.vue.js +3 -2
- package/dist/components/tools/TwoColsMedia.vue.js.map +1 -0
- package/dist/components/tools/TwoColsMedia.vue2.js +39 -29
- package/dist/components/tools/TwoColsMedia.vue2.js.map +1 -0
- package/dist/composables/isHtml.js +5 -3
- package/dist/composables/isHtml.js.map +1 -0
- package/dist/composables/useColors.js +131 -129
- package/dist/composables/useColors.js.map +1 -0
- package/dist/composables/useComponent.js +34 -7
- package/dist/composables/useComponent.js.map +1 -0
- package/dist/composables/useCreateUid.js +6 -4
- package/dist/composables/useCreateUid.js.map +1 -0
- package/dist/composables/useIcons.js +12 -11
- package/dist/composables/useIcons.js.map +1 -0
- package/dist/composables/useMarkdown.js +9 -8
- package/dist/composables/useMarkdown.js.map +1 -0
- package/dist/composables/useRenderText.js +9 -5
- package/dist/composables/useRenderText.js.map +1 -0
- package/dist/entry/basics/EpBtn.d.ts +5 -0
- package/dist/entry/basics/EpBtn.js +5 -0
- package/dist/entry/basics/EpBtn.js.map +1 -0
- package/dist/entry/basics/EpCard.d.ts +5 -0
- package/dist/entry/basics/EpCard.js +5 -0
- package/dist/entry/basics/EpCard.js.map +1 -0
- package/dist/entry/basics/EpChip.d.ts +5 -0
- package/dist/entry/basics/EpChip.js +5 -0
- package/dist/entry/basics/EpChip.js.map +1 -0
- package/dist/entry/basics/EpDivider.d.ts +5 -0
- package/dist/entry/basics/EpDivider.js +5 -0
- package/dist/entry/basics/EpDivider.js.map +1 -0
- package/dist/entry/basics/EpFlex.d.ts +5 -0
- package/dist/entry/basics/EpFlex.js +5 -0
- package/dist/entry/basics/EpFlex.js.map +1 -0
- package/dist/entry/basics/EpHover.d.ts +5 -0
- package/dist/entry/basics/EpHover.js +5 -0
- package/dist/entry/basics/EpHover.js.map +1 -0
- package/dist/entry/basics/EpHoverCard.d.ts +5 -0
- package/dist/entry/basics/EpHoverCard.js +5 -0
- package/dist/entry/basics/EpHoverCard.js.map +1 -0
- package/dist/entry/basics/EpIcon.d.ts +5 -0
- package/dist/entry/basics/EpIcon.js +5 -0
- package/dist/entry/basics/EpIcon.js.map +1 -0
- package/dist/entry/basics/EpImg.d.ts +5 -0
- package/dist/entry/basics/EpImg.js +5 -0
- package/dist/entry/basics/EpImg.js.map +1 -0
- package/dist/entry/basics/EpImgCarousel.d.ts +5 -0
- package/dist/entry/basics/EpImgCarousel.js +5 -0
- package/dist/entry/basics/EpImgCarousel.js.map +1 -0
- package/dist/entry/basics/EpList.d.ts +5 -0
- package/dist/entry/basics/EpList.js +5 -0
- package/dist/entry/basics/EpList.js.map +1 -0
- package/dist/entry/basics/EpListItem.d.ts +5 -0
- package/dist/entry/basics/EpListItem.js +5 -0
- package/dist/entry/basics/EpListItem.js.map +1 -0
- package/dist/entry/basics/EpSection.d.ts +5 -0
- package/dist/entry/basics/EpSection.js +5 -0
- package/dist/entry/basics/EpSection.js.map +1 -0
- package/dist/entry/basics/EpSectionCols.d.ts +5 -0
- package/dist/entry/basics/EpSectionCols.js +5 -0
- package/dist/entry/basics/EpSectionCols.js.map +1 -0
- package/dist/entry/basics/EpSpinner.d.ts +5 -0
- package/dist/entry/basics/EpSpinner.js +5 -0
- package/dist/entry/basics/EpSpinner.js.map +1 -0
- package/dist/entry/basics/EpStackedList.d.ts +5 -0
- package/dist/entry/basics/EpStackedList.js +5 -0
- package/dist/entry/basics/EpStackedList.js.map +1 -0
- package/dist/entry/basics/EpTable.d.ts +5 -0
- package/dist/entry/basics/EpTable.js +5 -0
- package/dist/entry/basics/EpTable.js.map +1 -0
- package/dist/entry/basics/EpText.d.ts +5 -0
- package/dist/entry/basics/EpText.js +5 -0
- package/dist/entry/basics/EpText.js.map +1 -0
- package/dist/entry/charts/EpBarChart.d.ts +5 -0
- package/dist/entry/charts/EpBarChart.js +5 -0
- package/dist/entry/charts/EpBarChart.js.map +1 -0
- package/dist/entry/charts/EpFunnelChart.d.ts +5 -0
- package/dist/entry/charts/EpFunnelChart.js +5 -0
- package/dist/entry/charts/EpFunnelChart.js.map +1 -0
- package/dist/entry/charts/EpLineChart.d.ts +5 -0
- package/dist/entry/charts/EpLineChart.js +5 -0
- package/dist/entry/charts/EpLineChart.js.map +1 -0
- package/dist/entry/charts/EpPieChart.d.ts +5 -0
- package/dist/entry/charts/EpPieChart.js +5 -0
- package/dist/entry/charts/EpPieChart.js.map +1 -0
- package/dist/entry/educationals/EpBranchingScenario.d.ts +5 -0
- package/dist/entry/educationals/EpBranchingScenario.js +5 -0
- package/dist/entry/educationals/EpBranchingScenario.js.map +1 -0
- package/dist/entry/educationals/EpCodeblock.d.ts +5 -0
- package/dist/entry/educationals/EpCodeblock.js +6 -0
- package/dist/entry/educationals/EpCodeblock.js.map +1 -0
- package/dist/entry/educationals/EpConclusion.d.ts +5 -0
- package/dist/entry/educationals/EpConclusion.js +5 -0
- package/dist/entry/educationals/EpConclusion.js.map +1 -0
- package/dist/entry/educationals/EpDescription.d.ts +5 -0
- package/dist/entry/educationals/EpDescription.js +5 -0
- package/dist/entry/educationals/EpDescription.js.map +1 -0
- package/dist/entry/educationals/EpDocument.d.ts +5 -0
- package/dist/entry/educationals/EpDocument.js +5 -0
- package/dist/entry/educationals/EpDocument.js.map +1 -0
- package/dist/entry/educationals/EpEdu.d.ts +5 -0
- package/dist/entry/educationals/EpEdu.js +5 -0
- package/dist/entry/educationals/EpEdu.js.map +1 -0
- package/dist/entry/educationals/EpInstructions.d.ts +5 -0
- package/dist/entry/educationals/EpInstructions.js +5 -0
- package/dist/entry/educationals/EpInstructions.js.map +1 -0
- package/dist/entry/educationals/EpIntroduction.d.ts +5 -0
- package/dist/entry/educationals/EpIntroduction.js +5 -0
- package/dist/entry/educationals/EpIntroduction.js.map +1 -0
- package/dist/entry/educationals/EpObjective.d.ts +5 -0
- package/dist/entry/educationals/EpObjective.js +5 -0
- package/dist/entry/educationals/EpObjective.js.map +1 -0
- package/dist/entry/educationals/EpReading.d.ts +5 -0
- package/dist/entry/educationals/EpReading.js +5 -0
- package/dist/entry/educationals/EpReading.js.map +1 -0
- package/dist/entry/educationals/EpResource.d.ts +5 -0
- package/dist/entry/educationals/EpResource.js +5 -0
- package/dist/entry/educationals/EpResource.js.map +1 -0
- package/dist/entry/educationals/EpScope.d.ts +5 -0
- package/dist/entry/educationals/EpScope.js +5 -0
- package/dist/entry/educationals/EpScope.js.map +1 -0
- package/dist/entry/educationals/EpSpecificObjective.d.ts +5 -0
- package/dist/entry/educationals/EpSpecificObjective.js +5 -0
- package/dist/entry/educationals/EpSpecificObjective.js.map +1 -0
- package/dist/entry/interactions/EpAccordeon.d.ts +5 -0
- package/dist/entry/interactions/EpAccordeon.js +5 -0
- package/dist/entry/interactions/EpAccordeon.js.map +1 -0
- package/dist/entry/interactions/EpContentSlider.d.ts +5 -0
- package/dist/entry/interactions/EpContentSlider.js +5 -0
- package/dist/entry/interactions/EpContentSlider.js.map +1 -0
- package/dist/entry/interactions/EpDarkMode.d.ts +5 -0
- package/dist/entry/interactions/EpDarkMode.js +5 -0
- package/dist/entry/interactions/EpDarkMode.js.map +1 -0
- package/dist/entry/interactions/EpDraggable.d.ts +5 -0
- package/dist/entry/interactions/EpDraggable.js +5 -0
- package/dist/entry/interactions/EpDraggable.js.map +1 -0
- package/dist/entry/interactions/EpHotSpot.d.ts +5 -0
- package/dist/entry/interactions/EpHotSpot.js +5 -0
- package/dist/entry/interactions/EpHotSpot.js.map +1 -0
- package/dist/entry/interactions/EpModal.d.ts +5 -0
- package/dist/entry/interactions/EpModal.js +6 -0
- package/dist/entry/interactions/EpModal.js.map +1 -0
- package/dist/entry/interactions/EpQuestion.d.ts +5 -0
- package/dist/entry/interactions/EpQuestion.js +5 -0
- package/dist/entry/interactions/EpQuestion.js.map +1 -0
- package/dist/entry/interactions/EpSummativeTable.d.ts +5 -0
- package/dist/entry/interactions/EpSummativeTable.js +5 -0
- package/dist/entry/interactions/EpSummativeTable.js.map +1 -0
- package/dist/entry/interactions/EpSvgShow.d.ts +5 -0
- package/dist/entry/interactions/EpSvgShow.js +5 -0
- package/dist/entry/interactions/EpSvgShow.js.map +1 -0
- package/dist/entry/interactions/EpTabs.d.ts +5 -0
- package/dist/entry/interactions/EpTabs.js +5 -0
- package/dist/entry/interactions/EpTabs.js.map +1 -0
- package/dist/entry/interactions/EpTooltip.d.ts +5 -0
- package/dist/entry/interactions/EpTooltip.js +6 -0
- package/dist/entry/interactions/EpTooltip.js.map +1 -0
- package/dist/entry/medias/EpAudio.d.ts +5 -0
- package/dist/entry/medias/EpAudio.js +5 -0
- package/dist/entry/medias/EpAudio.js.map +1 -0
- package/dist/entry/medias/EpCardLink.d.ts +5 -0
- package/dist/entry/medias/EpCardLink.js +5 -0
- package/dist/entry/medias/EpCardLink.js.map +1 -0
- package/dist/entry/medias/EpCarousel.d.ts +5 -0
- package/dist/entry/medias/EpCarousel.js +5 -0
- package/dist/entry/medias/EpCarousel.js.map +1 -0
- package/dist/entry/medias/EpHierarchy.d.ts +5 -0
- package/dist/entry/medias/EpHierarchy.js +5 -0
- package/dist/entry/medias/EpHierarchy.js.map +1 -0
- package/dist/entry/medias/EpIframe.d.ts +5 -0
- package/dist/entry/medias/EpIframe.js +5 -0
- package/dist/entry/medias/EpIframe.js.map +1 -0
- package/dist/entry/medias/EpKatex.d.ts +5 -0
- package/dist/entry/medias/EpKatex.js +5 -0
- package/dist/entry/medias/EpKatex.js.map +1 -0
- package/dist/entry/medias/EpLink.d.ts +5 -0
- package/dist/entry/medias/EpLink.js +5 -0
- package/dist/entry/medias/EpLink.js.map +1 -0
- package/dist/entry/medias/EpLinkVersion.d.ts +5 -0
- package/dist/entry/medias/EpLinkVersion.js +5 -0
- package/dist/entry/medias/EpLinkVersion.js.map +1 -0
- package/dist/entry/medias/EpLottieSvg.d.ts +5 -0
- package/dist/entry/medias/EpLottieSvg.js +5 -0
- package/dist/entry/medias/EpLottieSvg.js.map +1 -0
- package/dist/entry/medias/EpSoftware.d.ts +5 -0
- package/dist/entry/medias/EpSoftware.js +5 -0
- package/dist/entry/medias/EpSoftware.js.map +1 -0
- package/dist/entry/medias/EpSvg.d.ts +5 -0
- package/dist/entry/medias/EpSvg.js +5 -0
- package/dist/entry/medias/EpSvg.js.map +1 -0
- package/dist/entry/medias/EpTerm.d.ts +5 -0
- package/dist/entry/medias/EpTerm.js +5 -0
- package/dist/entry/medias/EpTerm.js.map +1 -0
- package/dist/entry/medias/EpTimeLine.d.ts +5 -0
- package/dist/entry/medias/EpTimeLine.js +6 -0
- package/dist/entry/medias/EpTimeLine.js.map +1 -0
- package/dist/entry/medias/EpVideo.d.ts +5 -0
- package/dist/entry/medias/EpVideo.js +5 -0
- package/dist/entry/medias/EpVideo.js.map +1 -0
- package/dist/entry/medias/EpVideoPanopto.d.ts +5 -0
- package/dist/entry/medias/EpVideoPanopto.js +5 -0
- package/dist/entry/medias/EpVideoPanopto.js.map +1 -0
- package/dist/entry/medias/EpWordDef.d.ts +5 -0
- package/dist/entry/medias/EpWordDef.js +5 -0
- package/dist/entry/medias/EpWordDef.js.map +1 -0
- package/dist/entry/signages/EpAlert.d.ts +5 -0
- package/dist/entry/signages/EpAlert.js +5 -0
- package/dist/entry/signages/EpAlert.js.map +1 -0
- package/dist/entry/signages/EpBadge.d.ts +5 -0
- package/dist/entry/signages/EpBadge.js +5 -0
- package/dist/entry/signages/EpBadge.js.map +1 -0
- package/dist/entry/signages/EpHeader.d.ts +5 -0
- package/dist/entry/signages/EpHeader.js +5 -0
- package/dist/entry/signages/EpHeader.js.map +1 -0
- package/dist/entry/signages/EpNothing.d.ts +5 -0
- package/dist/entry/signages/EpNothing.js +5 -0
- package/dist/entry/signages/EpNothing.js.map +1 -0
- package/dist/entry/signages/EpQuote.d.ts +5 -0
- package/dist/entry/signages/EpQuote.js +5 -0
- package/dist/entry/signages/EpQuote.js.map +1 -0
- package/dist/entry/signages/EpSkeleton.d.ts +5 -0
- package/dist/entry/signages/EpSkeleton.js +6 -0
- package/dist/entry/signages/EpSkeleton.js.map +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +188 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Accordeon.js +3 -2
- package/dist/types/Accordeon.js.map +1 -0
- package/dist/types/Alert.js +6 -4
- package/dist/types/Alert.js.map +1 -0
- package/dist/types/Avatar.js +3 -2
- package/dist/types/Avatar.js.map +1 -0
- package/dist/types/Badge.js +3 -2
- package/dist/types/Badge.js.map +1 -0
- package/dist/types/Btn.js +6 -4
- package/dist/types/Btn.js.map +1 -0
- package/dist/types/Card.js +3 -2
- package/dist/types/Card.js.map +1 -0
- package/dist/types/Chip.js +6 -4
- package/dist/types/Chip.js.map +1 -0
- package/dist/types/Codeblock.js +6 -4
- package/dist/types/Codeblock.js.map +1 -0
- package/dist/types/Cols.js +3 -2
- package/dist/types/Cols.js.map +1 -0
- package/dist/types/Image.js +6 -4
- package/dist/types/Image.js.map +1 -0
- package/dist/types/Medias.js +3 -2
- package/dist/types/Medias.js.map +1 -0
- package/dist/types/Radio.js +3 -2
- package/dist/types/Radio.js.map +1 -0
- package/dist/types/StackedList.js +3 -2
- package/dist/types/StackedList.js.map +1 -0
- package/dist/types/Switch.js +3 -2
- package/dist/types/Switch.js.map +1 -0
- package/dist/types/TimeLine.js +15 -14
- package/dist/types/TimeLine.js.map +1 -0
- package/dist/types/Tooltip.js +3 -2
- package/dist/types/Tooltip.js.map +1 -0
- package/package.json +1 -1
- package/dist/basics/EpBtn.js +0 -4
- package/dist/basics/EpCard.js +0 -4
- package/dist/basics/EpChip.js +0 -4
- package/dist/basics/EpDivider.js +0 -4
- package/dist/basics/EpFlex.js +0 -4
- package/dist/basics/EpHover.js +0 -4
- package/dist/basics/EpHoverCard.js +0 -4
- package/dist/basics/EpIcon.js +0 -4
- package/dist/basics/EpImg.js +0 -4
- package/dist/basics/EpImgCarousel.js +0 -4
- package/dist/basics/EpList.js +0 -4
- package/dist/basics/EpListItem.js +0 -4
- package/dist/basics/EpSection.js +0 -4
- package/dist/basics/EpSectionCols.js +0 -4
- package/dist/basics/EpSpinner.js +0 -4
- package/dist/basics/EpStackedList.js +0 -4
- package/dist/basics/EpTable.js +0 -4
- package/dist/basics/EpText.js +0 -4
- package/dist/charts/EpBarChart.js +0 -4
- package/dist/charts/EpFunnelChart.js +0 -4
- package/dist/charts/EpLineChart.js +0 -4
- package/dist/charts/EpPieChart.js +0 -4
- package/dist/components/tools/DisplayBox.vue2.js +0 -36
- package/dist/educationals/EpBranchingScenario.js +0 -4
- package/dist/educationals/EpCodeblock.js +0 -5
- package/dist/educationals/EpConclusion.js +0 -4
- package/dist/educationals/EpDescription.js +0 -4
- package/dist/educationals/EpDocument.js +0 -4
- package/dist/educationals/EpEdu.js +0 -4
- package/dist/educationals/EpInstructions.js +0 -4
- package/dist/educationals/EpIntroduction.js +0 -4
- package/dist/educationals/EpObjective.js +0 -4
- package/dist/educationals/EpReading.js +0 -4
- package/dist/educationals/EpResource.js +0 -4
- package/dist/educationals/EpScope.js +0 -4
- package/dist/educationals/EpSpecificObjective.js +0 -4
- package/dist/ep-lib-ts.css +0 -1
- package/dist/interactions/EpAccordeon.js +0 -4
- package/dist/interactions/EpContentSlider.js +0 -4
- package/dist/interactions/EpDarkMode.js +0 -4
- package/dist/interactions/EpDraggable.js +0 -4
- package/dist/interactions/EpHotSpot.js +0 -4
- package/dist/interactions/EpModal.js +0 -5
- package/dist/interactions/EpQuestion.js +0 -4
- package/dist/interactions/EpSummativeTable.js +0 -4
- package/dist/interactions/EpSvgShow.js +0 -4
- package/dist/interactions/EpTabs.js +0 -4
- package/dist/interactions/EpTooltip.js +0 -5
- package/dist/medias/EpAudio.js +0 -4
- package/dist/medias/EpCardLink.js +0 -4
- package/dist/medias/EpCarousel.js +0 -4
- package/dist/medias/EpHierarchy.js +0 -4
- package/dist/medias/EpIframe.js +0 -4
- package/dist/medias/EpKatex.js +0 -4
- package/dist/medias/EpLink.js +0 -4
- package/dist/medias/EpLinkVersion.js +0 -4
- package/dist/medias/EpLottieSvg.js +0 -4
- package/dist/medias/EpSoftware.js +0 -4
- package/dist/medias/EpSvg.js +0 -4
- package/dist/medias/EpTerm.js +0 -4
- package/dist/medias/EpTimeLine.js +0 -5
- package/dist/medias/EpVideo.js +0 -4
- package/dist/medias/EpVideoPanopto.js +0 -4
- package/dist/medias/EpWordDef.js +0 -4
- package/dist/signages/EpAlert.js +0 -4
- package/dist/signages/EpBadge.js +0 -4
- package/dist/signages/EpHeader.js +0 -4
- package/dist/signages/EpNothing.js +0 -4
- package/dist/signages/EpQuote.js +0 -4
- package/dist/signages/EpSkeleton.js +0 -5
- /package/dist/{Accordeon.d.ts → types/Accordeon.d.ts} +0 -0
- /package/dist/{Aframe.d.ts → types/Aframe.d.ts} +0 -0
- /package/dist/{Alert.d.ts → types/Alert.d.ts} +0 -0
- /package/dist/{Answer.d.ts → types/Answer.d.ts} +0 -0
- /package/dist/{Avatar.d.ts → types/Avatar.d.ts} +0 -0
- /package/dist/{Badge.d.ts → types/Badge.d.ts} +0 -0
- /package/dist/{Border.d.ts → types/Border.d.ts} +0 -0
- /package/dist/{Btn.d.ts → types/Btn.d.ts} +0 -0
- /package/dist/{Card.d.ts → types/Card.d.ts} +0 -0
- /package/dist/{Chip.d.ts → types/Chip.d.ts} +0 -0
- /package/dist/{Codeblock.d.ts → types/Codeblock.d.ts} +0 -0
- /package/dist/{Cols.d.ts → types/Cols.d.ts} +0 -0
- /package/dist/{Component.d.ts → types/Component.d.ts} +0 -0
- /package/dist/{Draggable.d.ts → types/Draggable.d.ts} +0 -0
- /package/dist/{Glossary.d.ts → types/Glossary.d.ts} +0 -0
- /package/dist/{GlossaryEntry.d.ts → types/GlossaryEntry.d.ts} +0 -0
- /package/dist/{Hierarchy.d.ts → types/Hierarchy.d.ts} +0 -0
- /package/dist/{Hover.d.ts → types/Hover.d.ts} +0 -0
- /package/dist/{Image.d.ts → types/Image.d.ts} +0 -0
- /package/dist/{MandateLevel.d.ts → types/MandateLevel.d.ts} +0 -0
- /package/dist/{MediaCarousel.d.ts → types/MediaCarousel.d.ts} +0 -0
- /package/dist/{Medias.d.ts → types/Medias.d.ts} +0 -0
- /package/dist/{Radio.d.ts → types/Radio.d.ts} +0 -0
- /package/dist/{Slides.d.ts → types/Slides.d.ts} +0 -0
- /package/dist/{StackedList.d.ts → types/StackedList.d.ts} +0 -0
- /package/dist/{SummativeTable.d.ts → types/SummativeTable.d.ts} +0 -0
- /package/dist/{Switch.d.ts → types/Switch.d.ts} +0 -0
- /package/dist/{Three.d.ts → types/Three.d.ts} +0 -0
- /package/dist/{TimeLine.d.ts → types/TimeLine.d.ts} +0 -0
- /package/dist/{Tooltip.d.ts → types/Tooltip.d.ts} +0 -0
- /package/dist/{basics → types/basics}/EpAvatar.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpBadge.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpBtn.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpCard.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpChip.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpDivider.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpFlex.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpHover.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpHoverCard.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpIcon.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpImg.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpImgCarousel.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpList.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpListItem.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpSection.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpSectionCols.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpSpinner.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpStackedList.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpTable.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpText.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpBarChart.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpFunnelChart.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpLineChart.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpPieChart.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpBranchingScenario.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpCodeblock.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpConclusion.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpDescription.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpDocument.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpEdu.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpInstructions.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpIntroduction.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpObjective.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpReading.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpResource.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpScope.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpSpecificObjective.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpCheckbox.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpInput.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpRadio.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpRadioSummative.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpSelect.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpSwitch.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpTextarea.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpToggle.d.ts +0 -0
- /package/dist/{image360.d.ts → types/image360.d.ts} +0 -0
- /package/dist/{interactions → types/interactions}/Ep360Image.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/Ep360Video.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpAccordeon.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpContentSlider.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpDarkMode.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpDraggable.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpHotSpot.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpModal.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpQuestion.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpSummativeTable.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpSvgShow.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpTabs.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpTooltip.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpAudio.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpCardLink.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpCarousel.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpHierarchy.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpIframe.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpKatex.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpLink.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpLinkVersion.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpLottieSvg.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpSensibleImage.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpSoftware.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpSvg.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpTerm.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpTimeLine.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpVideo.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpVideoPanopto.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpWordDef.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpAlert.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpBadge.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpHeader.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpNothing.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpQuote.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpSkeleton.d.ts +0 -0
- /package/dist/{video360.d.ts → types/video360.d.ts} +0 -0
|
@@ -1,31 +1,47 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { useRenderText
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, createElementVNode, normalizeStyle, createCommentVNode, toDisplayString, createVNode, withCtx, unref, normalizeClass, createTextVNode, Fragment, renderList, createBlock } from "vue";
|
|
2
|
+
import { useRenderText } from "../../composables/useRenderText.js";
|
|
3
|
+
import _sfc_main$2 from "../basics/EpIcon.vue.js";
|
|
4
|
+
import _sfc_main$4 from "../tools/Details.vue2.js";
|
|
5
|
+
import _sfc_main$5 from "../interactions/EpModal.vue.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { mdiArrowLeft
|
|
10
|
-
import
|
|
11
|
-
const
|
|
7
|
+
import Comp from "../medias/EpHierarchy.vue.js";
|
|
8
|
+
import _sfc_main$1 from "../basics/EpBtn.vue.js";
|
|
9
|
+
import { mdiArrowLeft } from "@mdi/js";
|
|
10
|
+
import _sfc_main$3 from "../tools/TextMedia.vue2.js";
|
|
11
|
+
const _hoisted_1 = { class: "mb-2" };
|
|
12
|
+
const _hoisted_2 = { class: "font-bold text-3xl text-center" };
|
|
13
|
+
const _hoisted_3 = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "mt-2"
|
|
14
|
-
}
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_4 = {
|
|
15
18
|
key: 0,
|
|
16
19
|
class: "w-full flex flex-col space-y-6"
|
|
17
|
-
}
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_5 = {
|
|
18
22
|
key: 1,
|
|
19
23
|
class: "w-full"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_6 = {
|
|
26
|
+
class: /* @__PURE__ */ normalizeClass(`w-full my-4 mx-4 flex flex-wrap gap-2 justify-center items-center`)
|
|
27
|
+
};
|
|
28
|
+
const _hoisted_7 = { key: 2 };
|
|
29
|
+
const _hoisted_8 = { class: "text-xl text-center font-semibold" };
|
|
30
|
+
const _hoisted_9 = { class: "w-full" };
|
|
31
|
+
const _hoisted_10 = { class: "font-semibold mb-3" };
|
|
32
|
+
const _hoisted_11 = {
|
|
23
33
|
class: "overflow-auto p-2",
|
|
24
34
|
style: { height: "200px" }
|
|
25
|
-
}
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_12 = { class: "flex justify-center mt-2" };
|
|
37
|
+
const _hoisted_13 = { class: "flex justify-end mt-4" };
|
|
38
|
+
const _hoisted_14 = {
|
|
26
39
|
key: 0,
|
|
27
40
|
class: "flex w-full flex-col col-span-1 items-center px-4 border-l-2 border-gray-700 overflow-auto"
|
|
28
|
-
}
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_15 = ["innerHTML"];
|
|
43
|
+
const _hoisted_16 = { class: "flex justify-center mt-2" };
|
|
44
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
45
|
__name: "EpBranchingScenario",
|
|
30
46
|
props: {
|
|
31
47
|
title: {},
|
|
@@ -46,191 +62,229 @@ const O = { class: "mb-2" }, Y = { class: "font-bold text-3xl text-center" }, D
|
|
|
46
62
|
colorRect: { default: "fill-main-color-400" },
|
|
47
63
|
isCluster: { type: Boolean }
|
|
48
64
|
},
|
|
49
|
-
setup(
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
65
|
+
setup(__props) {
|
|
66
|
+
const props = __props;
|
|
67
|
+
const showPath = ref(false);
|
|
68
|
+
const path = ref([]);
|
|
69
|
+
const userPath = ref(null);
|
|
70
|
+
const currentOption = ref(null);
|
|
71
|
+
const isIntroductoryPart = ref(true);
|
|
72
|
+
const start = () => {
|
|
73
|
+
isIntroductoryPart.value = false;
|
|
74
|
+
currentOption.value = props.decisionTree;
|
|
75
|
+
};
|
|
76
|
+
const styleIntro = computed(() => {
|
|
77
|
+
const noInstruction = !props.initialInstruction;
|
|
78
|
+
const noMedia = !props.media;
|
|
79
|
+
if (noInstruction && noMedia) {
|
|
80
|
+
return "pt-44";
|
|
81
|
+
}
|
|
82
|
+
return "";
|
|
83
|
+
});
|
|
84
|
+
const goToPrevious = () => {
|
|
85
|
+
if (path.value.length === 0) {
|
|
86
|
+
isIntroductoryPart.value = true;
|
|
87
|
+
currentOption.value = null;
|
|
58
88
|
return;
|
|
59
89
|
}
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
90
|
+
path.value.pop();
|
|
91
|
+
const lastOption = path.value[path.value.length - 1];
|
|
92
|
+
if (lastOption) {
|
|
93
|
+
currentOption.value = lastOption;
|
|
94
|
+
} else {
|
|
95
|
+
currentOption.value = props.decisionTree;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const restart = () => {
|
|
99
|
+
currentOption.value = null;
|
|
100
|
+
isIntroductoryPart.value = true;
|
|
101
|
+
path.value = [];
|
|
102
|
+
};
|
|
103
|
+
const nextSlide = (option) => {
|
|
104
|
+
path.value.push(option);
|
|
105
|
+
if (option.children && option.children.length > 0) {
|
|
106
|
+
currentOption.value = option;
|
|
107
|
+
} else {
|
|
108
|
+
currentOption.value = null;
|
|
109
|
+
userPath.value = convertOptionToTreeNode(props.decisionTree, path.value);
|
|
110
|
+
}
|
|
67
111
|
};
|
|
68
|
-
function
|
|
69
|
-
|
|
112
|
+
function convertOptionToTreeNode(option, path2) {
|
|
113
|
+
var _a;
|
|
114
|
+
const isActive = path2.includes(option);
|
|
70
115
|
return {
|
|
71
|
-
name:
|
|
72
|
-
text:
|
|
73
|
-
component:
|
|
74
|
-
active:
|
|
75
|
-
children:
|
|
76
|
-
(
|
|
116
|
+
name: option.name,
|
|
117
|
+
text: option.text,
|
|
118
|
+
component: option.component,
|
|
119
|
+
active: isActive,
|
|
120
|
+
children: (_a = option.children) == null ? void 0 : _a.map(
|
|
121
|
+
(child) => convertOptionToTreeNode(child, path2)
|
|
77
122
|
)
|
|
78
123
|
};
|
|
79
124
|
}
|
|
80
|
-
return (
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
size: "small",
|
|
92
|
-
"extra-class": `${e.transitionAnimation}`,
|
|
93
|
-
onClick: S
|
|
94
|
-
}, {
|
|
95
|
-
default: d(() => [
|
|
96
|
-
s(N, {
|
|
97
|
-
"icon-path": g(M),
|
|
98
|
-
size: "25"
|
|
99
|
-
}, null, 8, ["icon-path"])
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
}, 8, ["extra-class"])
|
|
103
|
-
])) : x("", !0)
|
|
104
|
-
]),
|
|
105
|
-
l("div", null, [
|
|
106
|
-
f.value ? (a(), r("div", U, [
|
|
107
|
-
s(T, {
|
|
108
|
-
text: e.initialInstruction ?? "",
|
|
109
|
-
media: e.media,
|
|
110
|
-
cols: e.initialTwoCols
|
|
111
|
-
}, null, 8, ["text", "media", "cols"]),
|
|
112
|
-
l("div", {
|
|
113
|
-
class: _(`justify-center flex ${V.value}`)
|
|
114
|
-
}, [
|
|
115
|
-
s(m, {
|
|
125
|
+
return (_ctx, _cache) => {
|
|
126
|
+
var _a, _b;
|
|
127
|
+
return openBlock(), createElementBlock("div", null, [
|
|
128
|
+
createElementVNode("div", {
|
|
129
|
+
class: "bg-gray-200 dark:bg-slate-800 rounded-md p-4 flex flex-col",
|
|
130
|
+
style: normalizeStyle({ minHeight: "500px", backgroundColor: _ctx.bgColor })
|
|
131
|
+
}, [
|
|
132
|
+
createElementVNode("div", _hoisted_1, [
|
|
133
|
+
createElementVNode("h1", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
134
|
+
currentOption.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
135
|
+
createVNode(_sfc_main$1, {
|
|
116
136
|
type: "primary",
|
|
117
137
|
rounded: "",
|
|
118
|
-
|
|
138
|
+
size: "small",
|
|
139
|
+
"extra-class": `${_ctx.transitionAnimation}`,
|
|
140
|
+
onClick: goToPrevious
|
|
119
141
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
|
|
142
|
+
default: withCtx(() => [
|
|
143
|
+
createVNode(_sfc_main$2, {
|
|
144
|
+
"icon-path": unref(mdiArrowLeft),
|
|
145
|
+
size: "25"
|
|
146
|
+
}, null, 8, ["icon-path"])
|
|
122
147
|
]),
|
|
123
148
|
_: 1
|
|
124
|
-
})
|
|
125
|
-
],
|
|
126
|
-
])
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
cols: t.value.cols
|
|
149
|
+
}, 8, ["extra-class"])
|
|
150
|
+
])) : createCommentVNode("", true)
|
|
151
|
+
]),
|
|
152
|
+
createElementVNode("div", null, [
|
|
153
|
+
isIntroductoryPart.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
154
|
+
createVNode(_sfc_main$3, {
|
|
155
|
+
text: (_a = _ctx.initialInstruction) != null ? _a : "",
|
|
156
|
+
media: _ctx.media,
|
|
157
|
+
cols: _ctx.initialTwoCols
|
|
134
158
|
}, null, 8, ["text", "media", "cols"]),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
159
|
+
createElementVNode("div", {
|
|
160
|
+
class: normalizeClass(`justify-center flex ${styleIntro.value}`)
|
|
161
|
+
}, [
|
|
162
|
+
createVNode(_sfc_main$1, {
|
|
139
163
|
type: "primary",
|
|
140
|
-
|
|
141
|
-
onClick:
|
|
164
|
+
rounded: "",
|
|
165
|
+
onClick: start
|
|
142
166
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
|
|
167
|
+
default: withCtx(() => [
|
|
168
|
+
createTextVNode(toDisplayString(_ctx.labelStart), 1)
|
|
145
169
|
]),
|
|
146
|
-
_:
|
|
147
|
-
}
|
|
148
|
-
])
|
|
149
|
-
],
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
_: 1
|
|
171
|
+
})
|
|
172
|
+
], 2)
|
|
173
|
+
])) : currentOption.value && !isIntroductoryPart.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
174
|
+
createElementVNode("div", {
|
|
175
|
+
class: normalizeClass(`${_ctx.transitionAnimation} my-12`)
|
|
176
|
+
}, [
|
|
177
|
+
createVNode(_sfc_main$3, {
|
|
178
|
+
text: (_b = currentOption.value.text) != null ? _b : "",
|
|
179
|
+
media: currentOption.value.component,
|
|
180
|
+
cols: currentOption.value.cols
|
|
181
|
+
}, null, 8, ["text", "media", "cols"]),
|
|
182
|
+
createElementVNode("div", _hoisted_6, [
|
|
183
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(currentOption.value.children, (option, index) => {
|
|
184
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
185
|
+
key: `option-${index}`,
|
|
186
|
+
rounded: "",
|
|
187
|
+
type: "primary",
|
|
188
|
+
class: "flex-1 min-w-[120px] sm:min-w-[160px] max-w-xs",
|
|
189
|
+
onClick: ($event) => nextSlide(option)
|
|
190
|
+
}, {
|
|
191
|
+
default: withCtx(() => [
|
|
192
|
+
createTextVNode(toDisplayString(option.name), 1)
|
|
193
|
+
]),
|
|
194
|
+
_: 2
|
|
195
|
+
}, 1032, ["onClick"]);
|
|
196
|
+
}), 128))
|
|
197
|
+
])
|
|
198
|
+
], 2)
|
|
199
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
200
|
+
createElementVNode("h3", _hoisted_8, toDisplayString(_ctx.labelFinish), 1),
|
|
201
|
+
createElementVNode("div", {
|
|
202
|
+
class: normalizeClass(`flex gap-6 mt-3 ${!_ctx.generalFeedback ? "w-3/6 mx-auto" : ""}`)
|
|
203
|
+
}, [
|
|
204
|
+
createElementVNode("div", _hoisted_9, [
|
|
205
|
+
createElementVNode("h3", _hoisted_10, toDisplayString(_ctx.labelYourPath), 1),
|
|
206
|
+
createElementVNode("div", _hoisted_11, [
|
|
207
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(path.value, (item, i) => {
|
|
208
|
+
var _a2;
|
|
209
|
+
return openBlock(), createElementBlock("div", {
|
|
210
|
+
key: `user-choice-${i}`,
|
|
211
|
+
class: "mb-2"
|
|
212
|
+
}, [
|
|
213
|
+
createVNode(_sfc_main$4, {
|
|
214
|
+
content: (_a2 = item.text) != null ? _a2 : "",
|
|
215
|
+
title: item.name,
|
|
216
|
+
media: item.component
|
|
217
|
+
}, null, 8, ["content", "title", "media"])
|
|
218
|
+
]);
|
|
219
|
+
}), 128))
|
|
220
|
+
]),
|
|
221
|
+
createElementVNode("div", _hoisted_12, [
|
|
222
|
+
createVNode(_sfc_main$1, {
|
|
223
|
+
type: "info",
|
|
224
|
+
rounded: "",
|
|
225
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showPath.value = true)
|
|
226
|
+
}, {
|
|
227
|
+
default: withCtx(() => [
|
|
228
|
+
createTextVNode(toDisplayString(_ctx.labelShowFullPath), 1)
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
})
|
|
232
|
+
]),
|
|
233
|
+
userPath.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
234
|
+
key: 0,
|
|
235
|
+
modelValue: showPath.value,
|
|
236
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => showPath.value = $event)
|
|
174
237
|
}, {
|
|
175
|
-
default:
|
|
176
|
-
|
|
238
|
+
default: withCtx(() => [
|
|
239
|
+
createVNode(Comp, {
|
|
240
|
+
nodes: userPath.value,
|
|
241
|
+
"is-cluster": props.isCluster,
|
|
242
|
+
"color-path": props.colorPath,
|
|
243
|
+
"color-rect": props.colorRect
|
|
244
|
+
}, null, 8, ["nodes", "is-cluster", "color-path", "color-rect"]),
|
|
245
|
+
createElementVNode("div", _hoisted_13, [
|
|
246
|
+
createVNode(_sfc_main$1, {
|
|
247
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showPath.value = false),
|
|
248
|
+
type: "error",
|
|
249
|
+
outlined: "",
|
|
250
|
+
rounded: ""
|
|
251
|
+
}, {
|
|
252
|
+
default: withCtx(() => [
|
|
253
|
+
createTextVNode(toDisplayString(_ctx.labelClose), 1)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
])
|
|
177
258
|
]),
|
|
178
259
|
_: 1
|
|
179
|
-
})
|
|
260
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
180
261
|
]),
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
262
|
+
_ctx.generalFeedback ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
263
|
+
createElementVNode("div", {
|
|
264
|
+
innerHTML: unref(useRenderText)(_ctx.generalFeedback)
|
|
265
|
+
}, null, 8, _hoisted_15)
|
|
266
|
+
])) : createCommentVNode("", true)
|
|
267
|
+
], 2),
|
|
268
|
+
createElementVNode("div", _hoisted_16, [
|
|
269
|
+
createVNode(_sfc_main$1, {
|
|
270
|
+
rounded: "",
|
|
271
|
+
type: "warning",
|
|
272
|
+
onClick: restart
|
|
185
273
|
}, {
|
|
186
|
-
default:
|
|
187
|
-
|
|
188
|
-
nodes: b.value,
|
|
189
|
-
"is-cluster": i.isCluster,
|
|
190
|
-
"color-path": i.colorPath,
|
|
191
|
-
"color-rect": i.colorRect
|
|
192
|
-
}, null, 8, ["nodes", "is-cluster", "color-path", "color-rect"]),
|
|
193
|
-
l("div", ee, [
|
|
194
|
-
s(m, {
|
|
195
|
-
onClick: n[1] || (n[1] = (o) => y.value = !1),
|
|
196
|
-
type: "error",
|
|
197
|
-
outlined: "",
|
|
198
|
-
rounded: ""
|
|
199
|
-
}, {
|
|
200
|
-
default: d(() => [
|
|
201
|
-
h(c(e.labelClose), 1)
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
})
|
|
205
|
-
])
|
|
274
|
+
default: withCtx(() => [
|
|
275
|
+
createTextVNode(toDisplayString(_ctx.labelRestart), 1)
|
|
206
276
|
]),
|
|
207
277
|
_: 1
|
|
208
|
-
}
|
|
209
|
-
])
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
], 2),
|
|
216
|
-
l("div", oe, [
|
|
217
|
-
s(m, {
|
|
218
|
-
rounded: "",
|
|
219
|
-
type: "warning",
|
|
220
|
-
onClick: B
|
|
221
|
-
}, {
|
|
222
|
-
default: d(() => [
|
|
223
|
-
h(c(e.labelRestart), 1)
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
})
|
|
227
|
-
])
|
|
228
|
-
]))
|
|
229
|
-
])
|
|
230
|
-
], 4)
|
|
231
|
-
]));
|
|
278
|
+
})
|
|
279
|
+
])
|
|
280
|
+
]))
|
|
281
|
+
])
|
|
282
|
+
], 4)
|
|
283
|
+
]);
|
|
284
|
+
};
|
|
232
285
|
}
|
|
233
286
|
});
|
|
234
287
|
export {
|
|
235
|
-
|
|
288
|
+
_sfc_main as default
|
|
236
289
|
};
|
|
290
|
+
//# sourceMappingURL=EpBranchingScenario.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpBranchingScenario.vue2.js","sources":["../../../src/components/educationals/EpBranchingScenario.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref, computed } from \"vue\";\nimport { useRenderText } from \"~/composables/useRenderText\";\nimport type { TreeNode } from \"~/types/Hierarchy\";\nimport EpIcon from \"~/components/basics/EpIcon.vue\";\nimport Details from \"~/components/tools/Details.vue\";\nimport EpModal from \"~/components/interactions/EpModal.vue\";\nimport EpHierarchy from \"~/components/medias/EpHierarchy.vue\";\nimport EpBtn from \"../basics/EpBtn.vue\";\nimport { mdiArrowLeft } from \"@mdi/js\";\nimport TextMedia from \"~/components/tools/TextMedia.vue\";\nimport { EpBranchingScenarioProps } from \"~/types/educationals/EpBranchingScenario\";\n\nconst props = withDefaults(defineProps<EpBranchingScenarioProps>(), {\n initialInstruction: null,\n transitionAnimation: \"fade\",\n labelFinish: \"Vous avez terminé le scénario!\",\n labelYourPath: \"Votre parcours\",\n labelShowFullPath: \"Voir le parcours au complet\",\n labelClose: \"Fermer\",\n labelRestart: \"Recommencer\",\n labelStart: \"Commencer\",\n colorRect: \"fill-main-color-400\",\n colorPath: \"stroke-yellow-400\",\n});\n\nconst showPath = ref(false);\nconst path = ref<TreeNode[]>([]);\nconst userPath = ref<TreeNode | null>(null);\nconst currentOption = ref<TreeNode | null>(null);\n\n// Manage the introductory part\nconst isIntroductoryPart = ref(true);\n\nconst start = () => {\n isIntroductoryPart.value = false;\n currentOption.value = props.decisionTree;\n};\n\nconst styleIntro = computed(() => {\n const noInstruction = !props.initialInstruction;\n const noMedia = !props.media;\n\n if (noInstruction && noMedia) {\n return \"pt-44\";\n }\n\n return \"\";\n});\n\n// Return function\nconst goToPrevious = () => {\n //if(notTheEnd.value){\n if (path.value.length === 0) {\n isIntroductoryPart.value = true;\n currentOption.value = null;\n return;\n }\n\n path.value.pop();\n // Get the previous option in the path\n const lastOption = path.value[path.value.length - 1];\n\n if (lastOption) {\n currentOption.value = lastOption;\n } else {\n currentOption.value = props.decisionTree;\n }\n};\n\n// Restart function\nconst restart = () => {\n //currentSlide.value = 0;\n currentOption.value = null;\n isIntroductoryPart.value = true;\n path.value = [];\n};\n\nconst nextSlide = (option: TreeNode) => {\n //currentSlide.value++\n path.value.push(option);\n if (option.children && option.children.length > 0) {\n currentOption.value = option; // drill into next level\n } else {\n currentOption.value = null; // reached the end (leaf node)\n userPath.value = convertOptionToTreeNode(props.decisionTree, path.value);\n }\n};\n\n//helper function\nfunction convertOptionToTreeNode(option: TreeNode, path: TreeNode[]): TreeNode {\n const isActive = path.includes(option);\n return {\n name: option.name,\n text: option.text,\n component: option.component,\n active: isActive,\n children: option.children?.map((child) =>\n convertOptionToTreeNode(child, path)\n ),\n };\n}\n</script>\n\n<template>\n <div>\n <div\n class=\"bg-gray-200 dark:bg-slate-800 rounded-md p-4 flex flex-col\"\n :style=\"{ minHeight: '500px', backgroundColor: bgColor }\"\n >\n <!-- <div v-for=\"item in path\" :key=\"item.name\">\n <span class=\"text-xs\">{{ item.name }}</span>\n </div> -->\n <!-- Header (fixed at top of card) -->\n <div class=\"mb-2\">\n <h1 class=\"font-bold text-3xl text-center\">{{ title }}</h1>\n <div v-if=\"currentOption\" class=\"mt-2\">\n <EpBtn\n type=\"primary\"\n rounded\n size=\"small\"\n :extra-class=\"`${transitionAnimation}`\"\n @click=\"goToPrevious\"\n >\n <EpIcon :icon-path=\"mdiArrowLeft\" size=\"25\" />\n </EpBtn>\n </div>\n </div>\n\n <!-- Content Area -->\n <div>\n <!-- Introductory Part -->\n <div v-if=\"isIntroductoryPart\" class=\"w-full flex flex-col space-y-6\">\n <TextMedia\n :text=\"initialInstruction ?? ''\"\n :media=\"media\"\n :cols=\"initialTwoCols\"\n />\n <div :class=\"`justify-center flex ${styleIntro}`\">\n <EpBtn type=\"primary\" rounded @click=\"start\">{{\n labelStart\n }}</EpBtn>\n </div>\n </div>\n\n <!-- Slides -->\n <template v-else-if=\"currentOption && !isIntroductoryPart\">\n <div class=\"w-full\">\n <div :class=\"`${transitionAnimation} my-12`\">\n <TextMedia\n :text=\"currentOption.text ?? ''\"\n :media=\"currentOption.component\"\n :cols=\"currentOption.cols\"\n />\n\n <div\n :class=\"`w-full my-4 mx-4 flex flex-wrap gap-2 justify-center items-center`\"\n >\n <template\n v-for=\"(option, index) in currentOption.children\"\n :key=\"`option-${index}`\"\n >\n <EpBtn\n rounded\n type=\"primary\"\n class=\"flex-1 min-w-[120px] sm:min-w-[160px] max-w-xs\"\n @click=\"nextSlide(option)\"\n >\n {{ option.name }}\n </EpBtn>\n </template>\n </div>\n </div>\n </div>\n </template>\n\n <!--show path-->\n <div v-else>\n <!-- <template v-if=\"userPath\">\n <EpHierarchy :nodes=\"userPath\"/>\n </template> -->\n <h3 class=\"text-xl text-center font-semibold\">{{ labelFinish }}</h3>\n <div\n :class=\"`flex gap-6 mt-3 ${\n !generalFeedback ? 'w-3/6 mx-auto' : ''\n }`\"\n >\n <div class=\"w-full\">\n <h3 class=\"font-semibold mb-3\">{{ labelYourPath }}</h3>\n <div class=\"overflow-auto p-2\" :style=\"{ height: '200px' }\">\n <template v-for=\"(item, i) in path\" :key=\"`user-choice-${i}`\">\n <div class=\"mb-2\">\n <Details\n :content=\"item.text ?? ''\"\n :title=\"item.name\"\n :media=\"item.component\"\n />\n </div>\n </template>\n </div>\n <div class=\"flex justify-center mt-2\">\n <EpBtn type=\"info\" rounded @click=\"showPath = true\">{{\n labelShowFullPath\n }}</EpBtn>\n </div>\n <EpModal v-if=\"userPath\" v-model=\"showPath\">\n <EpHierarchy\n :nodes=\"userPath\"\n :is-cluster=\"props.isCluster\"\n :color-path=\"props.colorPath\"\n :color-rect=\"props.colorRect\"\n />\n <div class=\"flex justify-end mt-4\">\n <EpBtn\n @click=\"showPath = false\"\n type=\"error\"\n outlined\n rounded\n >{{ labelClose }}</EpBtn\n >\n </div>\n </EpModal>\n </div>\n <div\n v-if=\"generalFeedback\"\n class=\"flex w-full flex-col col-span-1 items-center px-4 border-l-2 border-gray-700 overflow-auto\"\n >\n <div v-html=\"useRenderText(generalFeedback)\" />\n </div>\n </div>\n\n <div class=\"flex justify-center mt-2\">\n <EpBtn rounded type=\"warning\" @click=\"restart\">{{\n labelRestart\n }}</EpBtn>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<style scoped>\n@keyframes fade {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes scale {\n 0% {\n transform: scale(0.5);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n\n@keyframes slideY {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n/* Transition animation */\n.fade {\n animation: fade 1s;\n}\n\n.scale {\n animation: scale 1s;\n}\n\n.slideY {\n animation: slideY 1s;\n}\n</style>\n"],"names":["path","_createElementBlock","_createElementVNode","bgColor","_toDisplayString","title","_openBlock","_createVNode","EpBtn","transitionAnimation","EpIcon","_unref","TextMedia","initialInstruction","media","initialTwoCols","labelStart","_Fragment","_createBlock","_createTextVNode","labelFinish","_normalizeClass","generalFeedback","labelYourPath","_renderList","Details","_a","labelShowFullPath","EpModal","EpHierarchy","labelClose","labelRestart"],"mappings":"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"}
|
|
@@ -1,44 +1,65 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import { defaultOption
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent, computed, ref, createBlock, openBlock, unref, withCtx, createVNode } from "vue";
|
|
2
|
+
import VCodeBlock from "@wdns/vue-code-block";
|
|
3
|
+
import { defaultOption } from "../../types/Codeblock.js";
|
|
4
|
+
import Comp from "../interactions/EpAccordeon.vue.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "EpCodeblock",
|
|
7
7
|
props: {
|
|
8
8
|
code: { default: "" },
|
|
9
9
|
label: { default: "" },
|
|
10
10
|
lang: { default: "javascript" },
|
|
11
|
-
theme: { default:
|
|
11
|
+
theme: { default: defaultOption },
|
|
12
12
|
title: {},
|
|
13
|
-
compact: { type: Boolean, default:
|
|
13
|
+
compact: { type: Boolean, default: false }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const renderTitle = computed(() => {
|
|
18
|
+
if (!props.title) {
|
|
19
|
+
return "En savoir plus";
|
|
20
|
+
}
|
|
21
|
+
return props.title;
|
|
22
|
+
});
|
|
23
|
+
const code = computed(() => {
|
|
24
|
+
return ref(props.code);
|
|
25
|
+
});
|
|
26
|
+
const label = computed(() => {
|
|
27
|
+
return props.label;
|
|
28
|
+
});
|
|
29
|
+
const lang = computed(() => {
|
|
30
|
+
return props.lang;
|
|
31
|
+
});
|
|
32
|
+
const theme = computed(() => {
|
|
33
|
+
return props.theme;
|
|
34
|
+
});
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return !_ctx.compact ? (openBlock(), createBlock(unref(VCodeBlock), {
|
|
37
|
+
key: 0,
|
|
38
|
+
code: code.value,
|
|
39
|
+
highlightjs: "",
|
|
40
|
+
label: label.value,
|
|
41
|
+
lang: lang.value,
|
|
42
|
+
theme: theme.value
|
|
43
|
+
}, null, 8, ["code", "label", "lang", "theme"])) : (openBlock(), createBlock(Comp, {
|
|
44
|
+
key: 1,
|
|
45
|
+
outlined: "",
|
|
46
|
+
title: renderTitle.value
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [
|
|
49
|
+
createVNode(unref(VCodeBlock), {
|
|
50
|
+
code: code.value,
|
|
51
|
+
highlightjs: "",
|
|
52
|
+
label: label.value,
|
|
53
|
+
lang: lang.value,
|
|
54
|
+
theme: theme.value
|
|
55
|
+
}, null, 8, ["code", "label", "lang", "theme"])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["title"]));
|
|
59
|
+
};
|
|
40
60
|
}
|
|
41
61
|
});
|
|
42
62
|
export {
|
|
43
|
-
|
|
63
|
+
_sfc_main as default
|
|
44
64
|
};
|
|
65
|
+
//# sourceMappingURL=EpCodeblock.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpCodeblock.vue.js","sources":["../../../src/components/educationals/EpCodeblock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport VCodeBlock from \"@wdns/vue-code-block\";\nimport { defaultOption } from \"~/types/Codeblock\";\nimport EpAccordeon from \"~/components/interactions/EpAccordeon.vue\";\nimport { computed } from \"vue\";\nimport { ref } from \"vue\";\nimport { EpCodeblockProps } from \"~/types/educationals/EpCodeblock\";\n\nconst props = withDefaults(defineProps<EpCodeblockProps>(), {\n code: \"\",\n label: \"\",\n lang: \"javascript\",\n theme: defaultOption,\n compact: false,\n});\n\nconst renderTitle = computed(() => {\n if (!props.title) {\n return \"En savoir plus\";\n }\n return props.title;\n});\n\nconst code = computed(() => {\n return ref(props.code);\n});\nconst label = computed(() => {\n return props.label;\n});\nconst lang = computed(() => {\n return props.lang;\n});\nconst theme = computed(() => {\n return props.theme;\n});\n</script>\n\n<template>\n <VCodeBlock\n :code=\"code\"\n highlightjs\n :label=\"label\"\n :lang=\"lang\"\n :theme=\"theme\"\n v-if=\"!compact\"\n />\n\n <EpAccordeon outlined :title=\"renderTitle\" v-else>\n <VCodeBlock\n :code=\"code\"\n highlightjs\n :label=\"label\"\n :lang=\"lang\"\n :theme=\"theme\"\n />\n </EpAccordeon>\n</template>\n<style>\npre {\n white-space: break-spaces;\n}\n</style>\n"],"names":["compact","_createBlock","_unref","EpAccordeon","_createVNode"],"mappings":";;;;;;;;;;;;;;;AAQA,UAAM,QAAQ;AAQd,UAAM,cAAc,SAAS,MAAM;AACjC,UAAI,CAAC,MAAM,OAAO;AAChB,eAAO;AAAA,MACT;AACA,aAAO,MAAM;AAAA,IACf,CAAC;AAED,UAAM,OAAO,SAAS,MAAM;AAC1B,aAAO,IAAI,MAAM,IAAI;AAAA,IACvB,CAAC;AACD,UAAM,QAAQ,SAAS,MAAM;AAC3B,aAAO,MAAM;AAAA,IACf,CAAC;AACD,UAAM,OAAO,SAAS,MAAM;AAC1B,aAAO,MAAM;AAAA,IACf,CAAC;AACD,UAAM,QAAQ,SAAS,MAAM;AAC3B,aAAO,MAAM;AAAA,IACf,CAAC;;cAUUA,KAAAA,wBANTC,YAOEC,MAAA,UAAA,GAAA;AAAA;QANC,MAAM,KAAA;AAAA,QACP,aAAA;AAAA,QACC,OAAO,MAAA;AAAA,QACP,MAAM,KAAA;AAAA,QACN,OAAO,MAAA;AAAA,MAAA,iEAIVD,YAQcE,MAAA;AAAA;QARD,UAAA;AAAA,QAAU,OAAO,YAAA;AAAA,MAAA;yBAC5B,MAME;AAAA,UANFC,YAMEF,MAAA,UAAA,GAAA;AAAA,YALC,MAAM,KAAA;AAAA,YACP,aAAA;AAAA,YACC,OAAO,MAAA;AAAA,YACP,MAAM,KAAA;AAAA,YACN,OAAO,MAAA;AAAA,UAAA;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpCodeblock.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|