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.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/{types/Answer.d.ts → Answer.d.ts} +0 -1
- package/dist/{types/Hierarchy.d.ts → Hierarchy.d.ts} +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/dynamic-import-helper.js +9 -0
- package/dist/basics/EpAvatar.d.ts +21 -0
- package/dist/basics/EpAvatar.js +4 -0
- package/dist/basics/EpBadge.d.ts +6 -0
- package/dist/basics/EpBadge.js +4 -0
- package/dist/basics/EpBtn.d.ts +14 -0
- package/dist/basics/EpBtn.js +4 -0
- package/dist/basics/EpCard.d.ts +14 -0
- package/dist/basics/EpCard.js +4 -0
- package/dist/basics/EpChip.d.ts +10 -0
- package/dist/basics/EpChip.js +4 -0
- package/dist/basics/EpDivider.d.ts +8 -0
- package/dist/basics/EpDivider.js +4 -0
- package/dist/basics/EpFlex.d.ts +7 -0
- package/dist/basics/EpFlex.js +4 -0
- package/dist/basics/EpHover.d.ts +9 -0
- package/dist/basics/EpHover.js +4 -0
- package/dist/basics/EpHoverCard.d.ts +19 -0
- package/dist/basics/EpHoverCard.js +4 -0
- package/dist/basics/EpIcon.d.ts +6 -0
- package/dist/basics/EpIcon.js +4 -0
- package/dist/basics/EpImg.d.ts +17 -0
- package/dist/basics/EpImg.js +4 -0
- package/dist/basics/EpImgCarousel.d.ts +20 -0
- package/dist/basics/EpImgCarousel.js +4 -0
- package/dist/basics/EpList.d.ts +3 -0
- package/dist/basics/EpList.js +4 -0
- package/dist/basics/EpListItem.d.ts +7 -0
- package/dist/basics/EpListItem.js +4 -0
- package/dist/basics/EpSection.d.ts +13 -0
- package/dist/basics/EpSection.js +4 -0
- package/dist/basics/EpSectionCols.d.ts +17 -0
- package/dist/basics/EpSectionCols.js +4 -0
- package/dist/basics/EpSpinner.d.ts +6 -0
- package/dist/basics/EpSpinner.js +4 -0
- package/dist/basics/EpStackedList.d.ts +10 -0
- package/dist/basics/EpStackedList.js +4 -0
- package/dist/basics/EpTable.d.ts +5 -0
- package/dist/basics/EpTable.js +4 -0
- package/dist/basics/EpText.d.ts +11 -0
- package/dist/basics/EpText.js +4 -0
- package/dist/charts/EpBarChart.d.ts +30 -0
- package/dist/charts/EpBarChart.js +4 -0
- package/dist/charts/EpFunnelChart.d.ts +31 -0
- package/dist/charts/EpFunnelChart.js +4 -0
- package/dist/charts/EpLineChart.d.ts +28 -0
- package/dist/charts/EpLineChart.js +4 -0
- package/dist/charts/EpPieChart.d.ts +32 -0
- package/dist/charts/EpPieChart.js +4 -0
- package/dist/components/basics/EpAvatar.vue.js +32 -0
- package/dist/components/basics/EpAvatar.vue2.js +4 -0
- package/dist/components/basics/EpBadge.vue.js +22 -0
- package/dist/components/basics/EpBadge.vue2.js +4 -0
- package/dist/components/basics/EpBtn.vue.js +79 -0
- package/dist/components/basics/EpBtn.vue2.js +4 -0
- package/dist/components/basics/EpCard.vue.js +80 -0
- package/dist/components/basics/EpCard.vue2.js +4 -0
- package/dist/components/basics/EpChip.vue.js +49 -0
- package/dist/components/basics/EpChip.vue2.js +4 -0
- package/dist/components/basics/EpDivider.vue.js +21 -0
- package/dist/components/basics/EpDivider.vue2.js +4 -0
- package/dist/components/basics/EpFlex.vue.js +12 -0
- package/dist/components/basics/EpFlex.vue2.js +4 -0
- package/dist/components/basics/EpHover.vue.js +36 -0
- package/dist/components/basics/EpHover.vue2.js +4 -0
- package/dist/components/basics/EpHoverCard.vue.js +86 -0
- package/dist/components/basics/EpHoverCard.vue2.js +4 -0
- package/dist/components/basics/EpIcon.vue.js +26 -0
- package/dist/components/basics/EpIcon.vue2.js +4 -0
- package/dist/components/basics/EpImg.vue.js +184 -0
- package/dist/components/basics/EpImg.vue2.js +4 -0
- package/dist/components/basics/EpImgCarousel.vue.js +124 -0
- package/dist/components/basics/EpImgCarousel.vue2.js +4 -0
- package/dist/components/basics/EpList.vue.js +12 -0
- package/dist/components/basics/EpListItem.vue.js +35 -0
- package/dist/components/basics/EpListItem.vue2.js +4 -0
- package/dist/components/basics/EpSection.vue.js +74 -0
- package/dist/components/basics/EpSection.vue2.js +4 -0
- package/dist/components/basics/EpSectionCols.vue.js +94 -0
- package/dist/components/basics/EpSectionCols.vue2.js +4 -0
- package/dist/components/basics/EpSpinner.vue.js +122 -0
- package/dist/components/basics/EpSpinner.vue2.js +4 -0
- package/dist/components/basics/EpStackedList.vue.js +70 -0
- package/dist/components/basics/EpStackedList.vue2.js +4 -0
- package/dist/components/basics/EpTable.vue.js +49 -0
- package/dist/components/basics/EpTable.vue2.js +4 -0
- package/dist/components/basics/EpText.vue.js +83 -0
- package/dist/components/basics/EpText.vue2.js +4 -0
- package/dist/components/charts/EpBarChart.vue.js +78 -0
- package/dist/components/charts/EpBarChart.vue2.js +4 -0
- package/dist/components/charts/EpFunnelChart.vue.js +112 -0
- package/dist/components/charts/EpFunnelChart.vue2.js +4 -0
- package/dist/components/charts/EpLineChart.vue.js +91 -0
- package/dist/components/charts/EpLineChart.vue2.js +4 -0
- package/dist/components/charts/EpPieChart.vue.js +75 -0
- package/dist/components/charts/EpPieChart.vue2.js +4 -0
- package/dist/components/educationals/EpBranchingScenario.vue.js +7 -0
- package/dist/components/educationals/EpBranchingScenario.vue2.js +236 -0
- package/dist/components/educationals/EpCodeblock.vue.js +44 -0
- package/dist/components/educationals/EpCodeblock.vue3.js +5 -0
- package/dist/components/educationals/EpConclusion.vue.js +40 -0
- package/dist/components/educationals/EpConclusion.vue2.js +4 -0
- package/dist/components/educationals/EpDescription.vue.js +40 -0
- package/dist/components/educationals/EpDescription.vue2.js +4 -0
- package/dist/components/educationals/EpDocument.vue.js +99 -0
- package/dist/components/educationals/EpDocument.vue2.js +4 -0
- package/dist/components/educationals/EpEdu.vue.js +81 -0
- package/dist/components/educationals/EpEdu.vue2.js +4 -0
- package/dist/components/educationals/EpInstructions.vue.js +49 -0
- package/dist/components/educationals/EpInstructions.vue2.js +4 -0
- package/dist/components/educationals/EpIntroduction.vue.js +39 -0
- package/dist/components/educationals/EpIntroduction.vue2.js +4 -0
- package/dist/components/educationals/EpObjective.vue.js +39 -0
- package/dist/components/educationals/EpObjective.vue2.js +4 -0
- package/dist/components/educationals/EpReading.vue.js +307 -0
- package/dist/components/educationals/EpReading.vue2.js +4 -0
- package/dist/components/educationals/EpResource.vue.js +33 -0
- package/dist/components/educationals/EpResource.vue2.js +4 -0
- package/dist/components/educationals/EpScope.vue.js +25 -0
- package/dist/components/educationals/EpScope.vue2.js +4 -0
- package/dist/components/educationals/EpSpecificObjective.vue.js +37 -0
- package/dist/components/educationals/EpSpecificObjective.vue2.js +4 -0
- package/dist/components/forms/EpCheckbox.vue2.js +4 -0
- package/dist/components/forms/EpInput.vue.js +62 -0
- package/dist/components/forms/EpInput.vue2.js +4 -0
- package/dist/components/forms/EpRadio.vue.js +41 -0
- package/dist/components/forms/EpRadio.vue2.js +4 -0
- package/dist/components/forms/EpRadioSummative.vue.js +37 -0
- package/dist/components/forms/EpRadioSummative.vue2.js +4 -0
- package/dist/components/forms/EpSelect.vue2.js +4 -0
- package/dist/components/forms/EpSwitch.vue.js +48 -0
- package/dist/components/forms/EpSwitch.vue2.js +4 -0
- package/dist/{EpTextarea-VJ4pdPV_.js → components/forms/EpTextarea.vue.js} +6 -15
- package/dist/components/forms/EpTextarea.vue2.js +4 -0
- package/dist/{EpToggle-BTkTNVEz.js → components/forms/EpToggle.vue.js} +7 -16
- package/dist/components/forms/EpToggle.vue2.js +4 -0
- package/dist/{Ep360Image-T9Z_eSbf.js → components/interactions/Ep360Image.vue.js} +1 -1
- package/dist/components/interactions/Ep360Image.vue2.js +4 -0
- package/dist/{Ep360Video-CkVrfj8k.js → components/interactions/Ep360Video.vue.js} +1 -1
- package/dist/components/interactions/Ep360Video.vue2.js +4 -0
- package/dist/components/interactions/EpAccordeon.vue.js +7 -0
- package/dist/components/interactions/EpAccordeon.vue2.js +75 -0
- package/dist/components/interactions/EpContentSlider.vue.js +184 -0
- package/dist/components/interactions/EpContentSlider.vue2.js +4 -0
- package/dist/{EpDarkmode-CW-dKJx2.js → components/interactions/EpDarkMode.vue.js} +5 -5
- package/dist/components/interactions/EpDarkMode.vue2.js +4 -0
- package/dist/components/interactions/EpDraggable.vue.js +144 -0
- package/dist/components/interactions/EpDraggable.vue2.js +4 -0
- package/dist/{EpHotsPot-nT87sUMT.js → components/interactions/EpHotSpot.vue.js} +8 -8
- package/dist/components/interactions/EpHotSpot.vue2.js +4 -0
- package/dist/components/interactions/EpModal.vue.js +55 -0
- package/dist/components/interactions/EpModal.vue3.js +5 -0
- package/dist/components/interactions/EpQuestion.vue.js +175 -0
- package/dist/components/interactions/EpQuestion.vue2.js +4 -0
- package/dist/components/interactions/EpSummativeTable.vue.js +49 -0
- package/dist/components/interactions/EpSummativeTable.vue2.js +4 -0
- package/dist/components/interactions/EpSvgShow.vue.js +69 -0
- package/dist/components/interactions/EpSvgShow.vue2.js +4 -0
- package/dist/components/interactions/EpTabs.vue.js +12 -0
- package/dist/components/interactions/EpTooltip.vue.js +24 -0
- package/dist/components/interactions/EpTooltip.vue3.js +5 -0
- package/dist/components/medias/EpAudio.vue.js +76 -0
- package/dist/components/medias/EpAudio.vue2.js +4 -0
- package/dist/components/medias/EpCardLink.vue.js +65 -0
- package/dist/components/medias/EpCardLink.vue2.js +4 -0
- package/dist/components/medias/EpCarousel.vue.js +7 -0
- package/dist/components/medias/EpCarousel.vue2.js +162 -0
- package/dist/components/medias/EpHierarchy.vue.js +7 -0
- package/dist/components/medias/EpHierarchy.vue2.js +172 -0
- package/dist/components/medias/EpIframe.vue.js +53 -0
- package/dist/components/medias/EpIframe.vue2.js +4 -0
- package/dist/components/medias/EpKatex.vue.js +7 -0
- package/dist/components/medias/EpKatex.vue2.js +58 -0
- package/dist/components/medias/EpLink.vue.js +73 -0
- package/dist/components/medias/EpLink.vue2.js +4 -0
- package/dist/components/medias/EpLinkVersion.vue.js +34 -0
- package/dist/components/medias/EpLinkVersion.vue2.js +4 -0
- package/dist/components/medias/EpLottieSvg.vue.js +47 -0
- package/dist/components/medias/EpLottieSvg.vue2.js +4 -0
- package/dist/components/medias/EpSensibleImage.vue.js +7 -0
- package/dist/components/medias/EpSensibleImage.vue2.js +71 -0
- package/dist/components/medias/EpSoftware.vue.js +113 -0
- package/dist/components/medias/EpSoftware.vue2.js +4 -0
- package/dist/components/medias/EpSvg.vue.js +56 -0
- package/dist/components/medias/EpSvg.vue2.js +4 -0
- package/dist/components/medias/EpTerm.vue.js +144 -0
- package/dist/components/medias/EpTerm.vue2.js +4 -0
- package/dist/components/medias/EpTimeLine.vue.js +64 -0
- package/dist/components/medias/EpTimeLine.vue3.js +5 -0
- package/dist/components/medias/EpVideo.vue.js +83 -0
- package/dist/components/medias/EpVideo.vue2.js +4 -0
- package/dist/components/medias/EpVideoPanopto.vue.js +56 -0
- package/dist/components/medias/EpVideoPanopto.vue2.js +4 -0
- package/dist/components/medias/EpWordDef.vue.js +100 -0
- package/dist/components/medias/EpWordDef.vue2.js +4 -0
- package/dist/components/signages/EpAlert.vue.js +7 -0
- package/dist/components/signages/EpAlert.vue2.js +68 -0
- package/dist/components/signages/EpBadge.vue.js +32 -0
- package/dist/components/signages/EpBadge.vue2.js +4 -0
- package/dist/components/signages/EpHeader.vue.js +205 -0
- package/dist/components/signages/EpHeader.vue2.js +4 -0
- package/dist/components/signages/EpNothing.vue.js +10 -0
- package/dist/components/signages/EpQuote.vue.js +76 -0
- package/dist/components/signages/EpQuote.vue2.js +4 -0
- package/dist/components/signages/EpSkeleton.vue.js +34 -0
- package/dist/components/signages/EpSkeleton.vue3.js +5 -0
- package/dist/components/tools/BgAudio.vue.js +4 -0
- package/dist/components/tools/BgAudio.vue2.js +59 -0
- package/dist/components/tools/Details.vue.js +4 -0
- package/dist/components/tools/Details.vue2.js +55 -0
- package/dist/components/tools/DisplayBox.vue.js +5 -0
- package/dist/components/tools/DisplayBox.vue2.js +36 -0
- package/dist/components/tools/SvgFilter.vue.js +54 -0
- package/dist/components/tools/TextMedia.vue.js +4 -0
- package/dist/components/tools/TextMedia.vue2.js +41 -0
- package/dist/components/tools/TimelineItem.vue.js +7 -0
- package/dist/components/tools/TimelineItem.vue2.js +112 -0
- package/dist/components/tools/TwoColsMedia.vue.js +4 -0
- package/dist/components/tools/TwoColsMedia.vue2.js +50 -0
- package/dist/composables/isHtml.js +6 -0
- package/dist/composables/useColors.js +133 -0
- package/dist/composables/useComponent.js +40 -0
- package/dist/composables/useCreateUid.js +7 -0
- package/dist/composables/useIcons.js +32 -0
- package/dist/composables/useMarkdown.js +12 -0
- package/dist/composables/useRenderText.js +8 -0
- package/dist/educationals/EpBranchingScenario.d.ts +21 -0
- package/dist/educationals/EpBranchingScenario.js +4 -0
- package/dist/educationals/EpCodeblock.d.ts +12 -0
- package/dist/educationals/EpCodeblock.js +5 -0
- package/dist/educationals/EpConclusion.d.ts +5 -0
- package/dist/educationals/EpConclusion.js +4 -0
- package/dist/educationals/EpDescription.d.ts +5 -0
- package/dist/educationals/EpDescription.js +4 -0
- package/dist/educationals/EpDocument.d.ts +10 -0
- package/dist/educationals/EpDocument.js +4 -0
- package/dist/educationals/EpEdu.d.ts +13 -0
- package/dist/educationals/EpEdu.js +4 -0
- package/dist/educationals/EpInstructions.d.ts +13 -0
- package/dist/educationals/EpInstructions.js +4 -0
- package/dist/educationals/EpIntroduction.d.ts +5 -0
- package/dist/educationals/EpIntroduction.js +4 -0
- package/dist/educationals/EpObjective.d.ts +5 -0
- package/dist/educationals/EpObjective.js +4 -0
- package/dist/educationals/EpReading.d.ts +26 -0
- package/dist/educationals/EpReading.js +4 -0
- package/dist/educationals/EpResource.d.ts +8 -0
- package/dist/educationals/EpResource.js +4 -0
- package/dist/educationals/EpScope.d.ts +4 -0
- package/dist/educationals/EpScope.js +4 -0
- package/dist/educationals/EpSpecificObjective.d.ts +7 -0
- package/dist/educationals/EpSpecificObjective.js +4 -0
- package/dist/ep-lib-ts.css +1 -0
- package/dist/forms/EpCheckbox.d.ts +8 -0
- package/dist/forms/EpCheckbox.js +4 -0
- package/dist/forms/EpInput.d.ts +21 -0
- package/dist/forms/EpInput.js +4 -0
- package/dist/forms/EpRadio.d.ts +10 -0
- package/dist/forms/EpRadio.js +4 -0
- package/dist/forms/EpRadioSummative.d.ts +10 -0
- package/dist/forms/EpRadioSummative.js +4 -0
- package/dist/forms/EpSelect.d.ts +7 -0
- package/dist/forms/EpSelect.js +4 -0
- package/dist/forms/EpSwitch.d.ts +10 -0
- package/dist/forms/EpSwitch.js +4 -0
- package/dist/forms/EpTextarea.d.ts +23 -0
- package/dist/forms/EpTextarea.js +4 -0
- package/dist/forms/EpToggle.d.ts +13 -0
- package/dist/forms/EpToggle.js +4 -0
- package/dist/interactions/Ep360Image.d.ts +4 -0
- package/dist/interactions/Ep360Image.js +4 -0
- package/dist/interactions/Ep360Video.d.ts +3 -0
- package/dist/interactions/Ep360Video.js +4 -0
- package/dist/interactions/EpAccordeon.d.ts +9 -0
- package/dist/interactions/EpAccordeon.js +4 -0
- package/dist/interactions/EpContentSlider.d.ts +7 -0
- package/dist/interactions/EpContentSlider.js +4 -0
- package/dist/interactions/EpDarkMode.d.ts +1 -0
- package/dist/interactions/EpDarkMode.js +4 -0
- package/dist/interactions/EpDraggable.d.ts +6 -0
- package/dist/interactions/EpDraggable.js +4 -0
- package/dist/interactions/EpHotSpot.d.ts +17 -0
- package/dist/interactions/EpHotSpot.js +4 -0
- package/dist/interactions/EpModal.d.ts +10 -0
- package/dist/interactions/EpModal.js +5 -0
- package/dist/interactions/EpQuestion.d.ts +19 -0
- package/dist/interactions/EpQuestion.js +4 -0
- package/dist/interactions/EpSummativeTable.d.ts +6 -0
- package/dist/interactions/EpSummativeTable.js +4 -0
- package/dist/interactions/EpSvgShow.d.ts +5 -0
- package/dist/interactions/EpSvgShow.js +4 -0
- package/dist/interactions/EpTabs.d.ts +1 -0
- package/dist/interactions/EpTabs.js +4 -0
- package/dist/interactions/EpTooltip.d.ts +24 -0
- package/dist/interactions/EpTooltip.js +5 -0
- package/dist/medias/EpAudio.d.ts +13 -0
- package/dist/medias/EpAudio.js +4 -0
- package/dist/medias/EpCardLink.d.ts +19 -0
- package/dist/medias/EpCardLink.js +4 -0
- package/dist/medias/EpCarousel.d.ts +13 -0
- package/dist/medias/EpCarousel.js +4 -0
- package/dist/medias/EpHierarchy.d.ts +10 -0
- package/dist/medias/EpHierarchy.js +4 -0
- package/dist/medias/EpIframe.d.ts +13 -0
- package/dist/medias/EpIframe.js +4 -0
- package/dist/medias/EpKatex.d.ts +10 -0
- package/dist/medias/EpKatex.js +4 -0
- package/dist/medias/EpLink.d.ts +13 -0
- package/dist/medias/EpLink.js +4 -0
- package/dist/medias/EpLinkVersion.d.ts +18 -0
- package/dist/medias/EpLinkVersion.js +4 -0
- package/dist/medias/EpLottieSvg.d.ts +12 -0
- package/dist/medias/EpLottieSvg.js +4 -0
- package/dist/medias/EpSensibleImage.d.ts +11 -0
- package/dist/medias/EpSoftware.d.ts +16 -0
- package/dist/medias/EpSoftware.js +4 -0
- package/dist/medias/EpSvg.d.ts +12 -0
- package/dist/medias/EpSvg.js +4 -0
- package/dist/medias/EpTerm.d.ts +15 -0
- package/dist/medias/EpTerm.js +4 -0
- package/dist/medias/EpTimeLine.d.ts +13 -0
- package/dist/medias/EpTimeLine.js +5 -0
- package/dist/medias/EpVideo.d.ts +13 -0
- package/dist/medias/EpVideo.js +4 -0
- package/dist/medias/EpVideoPanopto.d.ts +13 -0
- package/dist/medias/EpVideoPanopto.js +4 -0
- package/dist/medias/EpWordDef.d.ts +25 -0
- package/dist/medias/EpWordDef.js +4 -0
- package/dist/signages/EpAlert.d.ts +16 -0
- package/dist/signages/EpAlert.js +4 -0
- package/dist/signages/EpBadge.d.ts +22 -0
- package/dist/signages/EpBadge.js +4 -0
- package/dist/signages/EpHeader.d.ts +28 -0
- package/dist/signages/EpHeader.js +4 -0
- package/dist/signages/EpNothing.d.ts +1 -0
- package/dist/signages/EpNothing.js +4 -0
- package/dist/signages/EpQuote.d.ts +6 -0
- package/dist/signages/EpQuote.js +4 -0
- package/dist/signages/EpSkeleton.d.ts +9 -0
- package/dist/signages/EpSkeleton.js +5 -0
- package/dist/testImg.jpg +0 -0
- package/dist/testMaria.jpg +0 -0
- package/dist/types/Accordeon.js +51 -0
- package/dist/types/Alert.js +75 -0
- package/dist/types/Avatar.js +20 -0
- package/dist/{EpBadge-CWIq_C51.js → types/Badge.js} +3 -33
- package/dist/types/Btn.js +50 -0
- package/dist/types/Card.js +8 -0
- package/dist/types/Chip.js +42 -0
- package/dist/types/Codeblock.js +79 -0
- package/dist/types/Cols.js +10 -0
- package/dist/types/Image.js +23 -0
- package/dist/types/Medias.js +14 -0
- package/dist/types/Radio.js +13 -0
- package/dist/types/StackedList.js +9 -0
- package/dist/types/Switch.js +13 -0
- package/dist/types/TimeLine.js +22 -0
- package/dist/{EpTooltip-J6UMMP3d.js → types/Tooltip.js} +3 -25
- package/dist/vite.svg +0 -0
- package/package.json +84 -60
- package/.vscode/extensions.json +0 -3
- package/dist/BgAudio-i5PTLf0N.js +0 -4
- package/dist/Details-CS8Nyb_l.js +0 -4
- package/dist/DisplayBox-DirIshZw.js +0 -4
- package/dist/EpAudio-D2jZ4_2i.js +0 -4
- package/dist/EpAvatar-M02jfvFI.js +0 -4
- package/dist/EpBadge-BF-0h8Dh.js +0 -4
- package/dist/EpBarChart-BXNhTphT.js +0 -4
- package/dist/EpBtn-BoYPhKqX.js +0 -4
- package/dist/EpCard-CqnilIcE.js +0 -4
- package/dist/EpCardLink--_rDAa_E.js +0 -4
- package/dist/EpChip-C0cD6KFV.js +0 -4
- package/dist/EpCodeblock-GIrYPq6y.js +0 -4
- package/dist/EpConclusion-CUK9mpAC.js +0 -4
- package/dist/EpContentSlider-BlEFJulk.js +0 -4
- package/dist/EpDescription-BgtOpi53.js +0 -4
- package/dist/EpDivider-Op2QoptS.js +0 -4
- package/dist/EpDocument-MlNE59Qa.js +0 -4
- package/dist/EpDraggable-xB2wuyS9.js +0 -1676
- package/dist/EpEdu-DVW8x_BG.js +0 -4
- package/dist/EpFlex-B8IJkl_8.js +0 -4
- package/dist/EpFunnelChart-D1ptPhFl.js +0 -4
- package/dist/EpHeader-CMjLr9JM.js +0 -4
- package/dist/EpHover-Bblofuek.js +0 -4
- package/dist/EpHoverCard-bjn3lnwj.js +0 -4
- package/dist/EpIcon-DhwQi6Au.js +0 -4
- package/dist/EpIframe-B6SRnvUu.js +0 -4
- package/dist/EpImg-DzvIdzyz.js +0 -4
- package/dist/EpImgCarousel-DBf1h-5X.js +0 -4
- package/dist/EpInput-C0CMBUXe.js +0 -1095
- package/dist/EpInstructions-BrGtuXF0.js +0 -4
- package/dist/EpIntroduction-CqZ-4NpR.js +0 -4
- package/dist/EpLineChart-C4d_gdV7.js +0 -4
- package/dist/EpLink-oaKKn4qV.js +0 -4
- package/dist/EpLinkVersion-sfPy24Q2.js +0 -4
- package/dist/EpList-WwXeYUBm.js +0 -12
- package/dist/EpListitem-DXh4Kniu.js +0 -37
- package/dist/EpLottieSvg-NNSQLDpl.js +0 -1971
- package/dist/EpModal-BFqQKJTz.js +0 -4
- package/dist/EpNothing-C7vQO8hI.js +0 -10
- package/dist/EpObjective-C-c4gSvJ.js +0 -4
- package/dist/EpPieChart-B2mmQPO0.js +0 -4
- package/dist/EpQuestion-BMaqguZl.js +0 -4
- package/dist/EpQuote-CmpgynGk.js +0 -4
- package/dist/EpRadio-CUCgpUd_.js +0 -4
- package/dist/EpRadioSummative-DZNPH8SS.js +0 -4
- package/dist/EpReading-C_Puu9TF.js +0 -4
- package/dist/EpResource-YGl2YYa7.js +0 -4
- package/dist/EpScope-Bp8GVIxi.js +0 -4
- package/dist/EpSection-BCWwtKzA.js +0 -4
- package/dist/EpSectionCols-B1jykYrm.js +0 -4
- package/dist/EpSkeleton-VIzyuHgV.js +0 -4
- package/dist/EpSoftware-DR-Xei3P.js +0 -4
- package/dist/EpSpecificObjective-BzXora8y.js +0 -4
- package/dist/EpSpinner-BdhlSybk.js +0 -4
- package/dist/EpStackedList-hI9ca8KS.js +0 -4
- package/dist/EpSummativeTable-uPZf61d-.js +0 -4
- package/dist/EpSvg-TMco7bdD.js +0 -4
- package/dist/EpSvgShow-BcbojKsh.js +0 -4
- package/dist/EpSwitch-DtQon_hm.js +0 -64
- package/dist/EpTable-D8hV58AR.js +0 -4
- package/dist/EpTerm-BEi5nmEU.js +0 -4
- package/dist/EpText-D5p3vydP.js +0 -4
- package/dist/EpTimeLine-sgB1Bt70.js +0 -4
- package/dist/EpVideo-CLG17rgW.js +0 -4
- package/dist/EpVideoPanopto-CkY4bRjs.js +0 -4
- package/dist/EpWordDef-CrYgSmrV.js +0 -4
- package/dist/TextMedia-CtH3oJ5E.js +0 -4
- package/dist/TwoColsMedia-Di0IhDFz.js +0 -48
- package/dist/components/basics/EpAvatar.vue.d.ts +0 -51
- package/dist/components/basics/EpBadge.vue.d.ts +0 -37
- package/dist/components/basics/EpBtn.vue.d.ts +0 -64
- package/dist/components/basics/EpCard.vue.d.ts +0 -78
- package/dist/components/basics/EpChip.vue.d.ts +0 -60
- package/dist/components/basics/EpDivider.vue.d.ts +0 -46
- package/dist/components/basics/EpFlex.vue.d.ts +0 -11
- package/dist/components/basics/EpHover.vue.d.ts +0 -53
- package/dist/components/basics/EpHoverCard.vue.d.ts +0 -86
- package/dist/components/basics/EpIcon.vue.d.ts +0 -34
- package/dist/components/basics/EpImg.vue.d.ts +0 -64
- package/dist/components/basics/EpImgCarousel.vue.d.ts +0 -77
- package/dist/components/basics/EpList.vue.d.ts +0 -11
- package/dist/components/basics/EpListitem.vue.d.ts +0 -45
- package/dist/components/basics/EpSection.vue.d.ts +0 -55
- package/dist/components/basics/EpSectionCols.vue.d.ts +0 -69
- package/dist/components/basics/EpSpinner.vue.d.ts +0 -40
- package/dist/components/basics/EpStackedList.vue.d.ts +0 -58
- package/dist/components/basics/EpTable.vue.d.ts +0 -24
- package/dist/components/basics/EpText.vue.d.ts +0 -51
- package/dist/components/charts/EpBarChart.vue.d.ts +0 -57
- package/dist/components/charts/EpFunnelChart.vue.d.ts +0 -61
- package/dist/components/charts/EpLineChart.vue.d.ts +0 -57
- package/dist/components/charts/EpPieChart.vue.d.ts +0 -62
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +0 -74
- package/dist/components/educationals/EpCodeblock.vue.d.ts +0 -48
- package/dist/components/educationals/EpConclusion.vue.d.ts +0 -39
- package/dist/components/educationals/EpDescription.vue.d.ts +0 -39
- package/dist/components/educationals/EpDocument.vue.d.ts +0 -44
- package/dist/components/educationals/EpEdu.vue.d.ts +0 -62
- package/dist/components/educationals/EpInstructions.vue.d.ts +0 -37
- package/dist/components/educationals/EpIntroduction.vue.d.ts +0 -39
- package/dist/components/educationals/EpObjective.vue.d.ts +0 -39
- package/dist/components/educationals/EpReading.vue.d.ts +0 -87
- package/dist/components/educationals/EpResource.vue.d.ts +0 -34
- package/dist/components/educationals/EpScope.vue.d.ts +0 -24
- package/dist/components/educationals/EpSpecificObjective.vue.d.ts +0 -35
- package/dist/components/forms/EpCheckbox.vue.d.ts +0 -52
- package/dist/components/forms/EpInput.vue.d.ts +0 -65
- package/dist/components/forms/EpRadio.vue.d.ts +0 -57
- package/dist/components/forms/EpRadioSummative.vue.d.ts +0 -57
- package/dist/components/forms/EpSelect.vue.d.ts +0 -28
- package/dist/components/forms/EpSwitch.vue.d.ts +0 -58
- package/dist/components/forms/EpTextarea.vue.d.ts +0 -76
- package/dist/components/forms/EpToggle.vue.d.ts +0 -72
- package/dist/components/interactions/Ep360Image.vue.d.ts +0 -2
- package/dist/components/interactions/Ep360Video.vue.d.ts +0 -2
- package/dist/components/interactions/EpAccordeon.vue.d.ts +0 -53
- package/dist/components/interactions/EpContentSlider.vue.d.ts +0 -39
- package/dist/components/interactions/EpDarkmode.vue.d.ts +0 -7
- package/dist/components/interactions/EpDraggable.vue.d.ts +0 -26
- package/dist/components/interactions/EpHotsPot.vue.d.ts +0 -47
- package/dist/components/interactions/EpModal.vue.d.ts +0 -67
- package/dist/components/interactions/EpQuestion.vue.d.ts +0 -65
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +0 -32
- package/dist/components/interactions/EpSvgShow.vue.d.ts +0 -33
- package/dist/components/interactions/EpTabs.vue.d.ts +0 -2
- package/dist/components/interactions/EpTooltip.vue.d.ts +0 -51
- package/dist/components/medias/EpAudio.vue.d.ts +0 -48
- package/dist/components/medias/EpCardLink.vue.d.ts +0 -65
- package/dist/components/medias/EpCarousel.vue.d.ts +0 -57
- package/dist/components/medias/EpHierarchy.vue.d.ts +0 -51
- package/dist/components/medias/EpIframe.vue.d.ts +0 -45
- package/dist/components/medias/EpKatex.vue.d.ts +0 -36
- package/dist/components/medias/EpLink.vue.d.ts +0 -42
- package/dist/components/medias/EpLinkVersion.vue.d.ts +0 -50
- package/dist/components/medias/EpLottieSvg.vue.d.ts +0 -58
- package/dist/components/medias/EpSoftware.vue.d.ts +0 -59
- package/dist/components/medias/EpSvg.vue.d.ts +0 -38
- package/dist/components/medias/EpTerm.vue.d.ts +0 -72
- package/dist/components/medias/EpTimeLine.vue.d.ts +0 -32
- package/dist/components/medias/EpVideo.vue.d.ts +0 -45
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +0 -45
- package/dist/components/medias/EpWordDef.vue.d.ts +0 -63
- package/dist/components/signages/EpAlert.vue.d.ts +0 -55
- package/dist/components/signages/EpBadge.vue.d.ts +0 -59
- package/dist/components/signages/EpHeader.vue.d.ts +0 -112
- package/dist/components/signages/EpNothing.vue.d.ts +0 -2
- package/dist/components/signages/EpQuote.vue.d.ts +0 -49
- package/dist/components/signages/EpSkeleton.vue.d.ts +0 -45
- package/dist/components/tools/BgAudio.vue.d.ts +0 -29
- package/dist/components/tools/Details.vue.d.ts +0 -36
- package/dist/components/tools/DisplayBox.vue.d.ts +0 -19
- package/dist/components/tools/SvgFilter.vue.d.ts +0 -2
- package/dist/components/tools/TextMedia.vue.d.ts +0 -27
- package/dist/components/tools/TimelineItem.vue.d.ts +0 -38
- package/dist/components/tools/TwoColsMedia.vue.d.ts +0 -27
- package/dist/composables/isHtml.d.ts +0 -1
- package/dist/composables/useColors.d.ts +0 -1
- package/dist/composables/useComponent.d.ts +0 -6
- package/dist/composables/useCreateUid.d.ts +0 -2
- package/dist/composables/useIcons.d.ts +0 -26
- package/dist/composables/useMarkdown.d.ts +0 -1
- package/dist/composables/useRenderText.d.ts +0 -1
- package/dist/ep-lib-ts.js +0 -61
- package/dist/ep-lib-ts.umd.cjs +0 -465
- package/dist/index-4g-JMv7A.js +0 -24658
- package/dist/index-CLaGcnM3.js +0 -49358
- package/dist/index-CO05CQPt.js +0 -3430
- package/dist/index.d.ts +0 -60
- package/dist/main.d.ts +0 -1
- package/dist/prism-B3HCGkuN.js +0 -1182
- package/dist/router.d.ts +0 -2
- package/dist/style.css +0 -1
- package/src/components/basics/EpAvatar.vue +0 -72
- package/src/components/basics/EpBadge.vue +0 -78
- package/src/components/basics/EpBtn.vue +0 -88
- package/src/components/basics/EpCard.vue +0 -125
- package/src/components/basics/EpChip.vue +0 -80
- package/src/components/basics/EpDivider.vue +0 -40
- package/src/components/basics/EpFlex.vue +0 -43
- package/src/components/basics/EpHover.vue +0 -61
- package/src/components/basics/EpHoverCard.vue +0 -125
- package/src/components/basics/EpIcon.vue +0 -25
- package/src/components/basics/EpImg.vue +0 -162
- package/src/components/basics/EpImgCarousel.vue +0 -145
- package/src/components/basics/EpList.vue +0 -10
- package/src/components/basics/EpListitem.vue +0 -52
- package/src/components/basics/EpSection.vue +0 -74
- package/src/components/basics/EpSectionCols.vue +0 -100
- package/src/components/basics/EpSpinner.vue +0 -57
- package/src/components/basics/EpStackedList.vue +0 -79
- package/src/components/basics/EpTable.vue +0 -33
- package/src/components/basics/EpText.vue +0 -148
- package/src/components/charts/EpBarChart.vue +0 -94
- package/src/components/charts/EpFunnelChart.vue +0 -135
- package/src/components/charts/EpLineChart.vue +0 -106
- package/src/components/charts/EpPieChart.vue +0 -102
- package/src/components/educationals/EpBranchingScenario.vue +0 -307
- package/src/components/educationals/EpCodeblock.vue +0 -74
- package/src/components/educationals/EpConclusion.vue +0 -38
- package/src/components/educationals/EpDescription.vue +0 -38
- package/src/components/educationals/EpDocument.vue +0 -92
- package/src/components/educationals/EpEdu.vue +0 -126
- package/src/components/educationals/EpInstructions.vue +0 -49
- package/src/components/educationals/EpIntroduction.vue +0 -38
- package/src/components/educationals/EpObjective.vue +0 -41
- package/src/components/educationals/EpReading.vue +0 -255
- package/src/components/educationals/EpResource.vue +0 -85
- package/src/components/educationals/EpScope.vue +0 -29
- package/src/components/educationals/EpSpecificObjective.vue +0 -37
- package/src/components/forms/EpCheckbox.vue +0 -47
- package/src/components/forms/EpInput.vue +0 -178
- package/src/components/forms/EpRadio.vue +0 -72
- package/src/components/forms/EpRadioSummative.vue +0 -53
- package/src/components/forms/EpSelect.vue +0 -30
- package/src/components/forms/EpSwitch.vue +0 -73
- package/src/components/forms/EpTextarea.vue +0 -87
- package/src/components/forms/EpToggle.vue +0 -96
- package/src/components/interactions/Ep360Image.vue +0 -338
- package/src/components/interactions/Ep360Video.vue +0 -356
- package/src/components/interactions/EpAccordeon.vue +0 -91
- package/src/components/interactions/EpContentSlider.vue +0 -177
- package/src/components/interactions/EpDarkmode.vue +0 -44
- package/src/components/interactions/EpDraggable.vue +0 -192
- package/src/components/interactions/EpHotsPot.vue +0 -86
- package/src/components/interactions/EpModal.vue +0 -119
- package/src/components/interactions/EpQuestion.vue +0 -188
- package/src/components/interactions/EpSummativeTable.vue +0 -59
- package/src/components/interactions/EpSvgShow.vue +0 -108
- package/src/components/interactions/EpTabs.vue +0 -10
- package/src/components/interactions/EpTooltip.vue +0 -164
- package/src/components/medias/EpAudio.vue +0 -97
- package/src/components/medias/EpCardLink.vue +0 -82
- package/src/components/medias/EpCarousel.vue +0 -190
- package/src/components/medias/EpHierarchy.vue +0 -368
- package/src/components/medias/EpIframe.vue +0 -73
- package/src/components/medias/EpKatex.vue +0 -76
- package/src/components/medias/EpLink.vue +0 -78
- package/src/components/medias/EpLinkVersion.vue +0 -48
- package/src/components/medias/EpLottieSvg.vue +0 -79
- package/src/components/medias/EpSoftware.vue +0 -92
- package/src/components/medias/EpSvg.vue +0 -66
- package/src/components/medias/EpTerm.vue +0 -174
- package/src/components/medias/EpTimeLine.vue +0 -109
- package/src/components/medias/EpVideo.vue +0 -130
- package/src/components/medias/EpVideoPanopto.vue +0 -71
- package/src/components/medias/EpWordDef.vue +0 -142
- package/src/components/signages/EpAlert.vue +0 -109
- package/src/components/signages/EpBadge.vue +0 -82
- package/src/components/signages/EpHeader.vue +0 -215
- package/src/components/signages/EpNothing.vue +0 -5
- package/src/components/signages/EpQuote.vue +0 -72
- package/src/components/signages/EpSkeleton.vue +0 -48
- package/src/components/tools/BgAudio.vue +0 -51
- package/src/components/tools/Details.vue +0 -47
- package/src/components/tools/DisplayBox.vue +0 -44
- package/src/components/tools/SvgFilter.vue +0 -220
- package/src/components/tools/TextMedia.vue +0 -44
- package/src/components/tools/TimelineItem.vue +0 -141
- package/src/components/tools/TwoColsMedia.vue +0 -52
- /package/dist/{types/Accordeon.d.ts → Accordeon.d.ts} +0 -0
- /package/dist/{types/Aframe.d.ts → Aframe.d.ts} +0 -0
- /package/dist/{types/Alert.d.ts → Alert.d.ts} +0 -0
- /package/dist/{types/Avatar.d.ts → Avatar.d.ts} +0 -0
- /package/dist/{types/Badge.d.ts → Badge.d.ts} +0 -0
- /package/dist/{types/Border.d.ts → Border.d.ts} +0 -0
- /package/dist/{types/Btn.d.ts → Btn.d.ts} +0 -0
- /package/dist/{types/Card.d.ts → Card.d.ts} +0 -0
- /package/dist/{types/Chip.d.ts → Chip.d.ts} +0 -0
- /package/dist/{types/Codeblock.d.ts → Codeblock.d.ts} +0 -0
- /package/dist/{types/Cols.d.ts → Cols.d.ts} +0 -0
- /package/dist/{types/Component.d.ts → Component.d.ts} +0 -0
- /package/dist/{types/Draggable.d.ts → Draggable.d.ts} +0 -0
- /package/dist/{types/GlossaryEntry.d.ts → GlossaryEntry.d.ts} +0 -0
- /package/dist/{types/Hover.d.ts → Hover.d.ts} +0 -0
- /package/dist/{types/Image.d.ts → Image.d.ts} +0 -0
- /package/dist/{types/MandateLevel.d.ts → MandateLevel.d.ts} +0 -0
- /package/dist/{types/MediaCarousel.d.ts → MediaCarousel.d.ts} +0 -0
- /package/dist/{types/Medias.d.ts → Medias.d.ts} +0 -0
- /package/dist/{types/Radio.d.ts → Radio.d.ts} +0 -0
- /package/dist/{types/Slides.d.ts → Slides.d.ts} +0 -0
- /package/dist/{types/StackedList.d.ts → StackedList.d.ts} +0 -0
- /package/dist/{types/SummativeTable.d.ts → SummativeTable.d.ts} +0 -0
- /package/dist/{types/Switch.d.ts → Switch.d.ts} +0 -0
- /package/dist/{types/Three.d.ts → Three.d.ts} +0 -0
- /package/dist/{types/TimeLine.d.ts → TimeLine.d.ts} +0 -0
- /package/dist/{types/Tooltip.d.ts → Tooltip.d.ts} +0 -0
- /package/dist/{EpCheckbox-D-AiG1k1.js → components/forms/EpCheckbox.vue.js} +0 -0
- /package/dist/{EpSelect-C10jbOyP.js → components/forms/EpSelect.vue.js} +0 -0
- /package/dist/{types/image360.d.ts → image360.d.ts} +0 -0
- /package/dist/{types/video360.d.ts → video360.d.ts} +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { DotLottieVue } from '@lottiefiles/dotlottie-vue';
|
|
3
|
-
|
|
4
|
-
import { ref, watchEffect } from 'vue';
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
src: string;
|
|
8
|
-
autoPlay?: boolean;
|
|
9
|
-
loop?: boolean;
|
|
10
|
-
speed?: number | string;
|
|
11
|
-
width?: number | string;
|
|
12
|
-
height?: number | string;
|
|
13
|
-
pauseOnClick?: boolean;
|
|
14
|
-
pauseButton?: boolean;
|
|
15
|
-
playOnHover?: boolean;
|
|
16
|
-
onComplete?: () => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
21
|
-
autoPlay: false,
|
|
22
|
-
loop: false,
|
|
23
|
-
speed: 1,
|
|
24
|
-
width: 150,
|
|
25
|
-
height: 150,
|
|
26
|
-
pauseOnClick: false,
|
|
27
|
-
pauseButton: false,
|
|
28
|
-
playOnHover: false
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const buttonText = ref((props.autoPlay) ? "Arrêter" : "Jouer");
|
|
32
|
-
|
|
33
|
-
const playerRef = ref<any | null>(null);
|
|
34
|
-
|
|
35
|
-
const managePlayState = () => {
|
|
36
|
-
|
|
37
|
-
if(playerRef.value) {
|
|
38
|
-
if(playerRef.value.getDotLottieInstance().isPlaying) {
|
|
39
|
-
playerRef.value.getDotLottieInstance().pause();
|
|
40
|
-
buttonText.value = "Jouer";
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
playerRef.value.getDotLottieInstance().play();
|
|
44
|
-
buttonText.value = "Arrêter";
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
watchEffect(() => {
|
|
50
|
-
if(playerRef.value) {
|
|
51
|
-
playerRef.value.getDotLottieInstance().addEventListener('complete', () => {
|
|
52
|
-
if(props.onComplete) {
|
|
53
|
-
props.onComplete();
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</script>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<template>
|
|
64
|
-
<div class="flex flex-col items-center">
|
|
65
|
-
<DotLottieVue
|
|
66
|
-
:src="src"
|
|
67
|
-
:loop="loop"
|
|
68
|
-
:autoplay="autoPlay"
|
|
69
|
-
:style="`width: ${width}px; height: ${height}px;`"
|
|
70
|
-
:speed="Number(speed)"
|
|
71
|
-
:play-on-hover="playOnHover"
|
|
72
|
-
ref="playerRef"
|
|
73
|
-
@click="(pauseOnClick)? managePlayState() : ''"
|
|
74
|
-
/>
|
|
75
|
-
<button class="rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3" v-if="pauseButton" @click="managePlayState">{{ buttonText }}</button>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
|
-
</template>
|
|
79
|
-
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { toRefs, computed } from "vue";
|
|
3
|
-
import EpIcon from "../basics/EpIcon.vue";
|
|
4
|
-
import EpBtn from "../basics/EpBtn.vue";
|
|
5
|
-
import EpChip from "../basics/EpChip.vue";
|
|
6
|
-
import EpEdu from "../educationals/EpEdu.vue";
|
|
7
|
-
import { type MediaVariants } from "../../types/Medias";
|
|
8
|
-
import { type MandateLevel } from '../../types/MandateLevel';
|
|
9
|
-
import { useRenderText } from "../../composables/useRenderText";
|
|
10
|
-
|
|
11
|
-
import { mdiLaptop } from "@mdi/js";
|
|
12
|
-
import { mdiOpenInNew } from "@mdi/js";
|
|
13
|
-
|
|
14
|
-
interface Props {
|
|
15
|
-
url?: string;
|
|
16
|
-
cover?: string;
|
|
17
|
-
title: string;
|
|
18
|
-
mandateLevel?:MandateLevel | null;
|
|
19
|
-
intentions?: string;
|
|
20
|
-
hideCover?: boolean;
|
|
21
|
-
version?: string;
|
|
22
|
-
type?:MediaVariants;
|
|
23
|
-
hideIcon?:boolean;
|
|
24
|
-
labelCard?:string;
|
|
25
|
-
labelIntentions?:string;
|
|
26
|
-
labelAccess?:string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// type, taxonomyLevel, courseCode, courseTitle, title, subtitle, height, src, color, synchrone
|
|
30
|
-
|
|
31
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
32
|
-
icon: "mdiLaptop",
|
|
33
|
-
hideCover: false,
|
|
34
|
-
intentions: "",
|
|
35
|
-
cover:"",
|
|
36
|
-
type:"base",
|
|
37
|
-
hideIcon:false,
|
|
38
|
-
labelAccess:"Accéder au logiciel"
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const old_image = "https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg";
|
|
42
|
-
|
|
43
|
-
const hasCover = computed(() => {
|
|
44
|
-
if (props.cover === old_image || props.cover.trim().length === 0) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
return true;
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const { title, intentions, cover, hideCover, version, labelCard, hideIcon, mandateLevel, url } = toRefs(props);
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<template>
|
|
55
|
-
<EpEdu :title="labelCard" :labelIntentions="labelIntentions" :icon="mdiLaptop" flat :type="type" :hideIcon="hideIcon" :mandateLevel="mandateLevel">
|
|
56
|
-
<template #intentions v-if="intentions">
|
|
57
|
-
<div v-html="useRenderText(intentions)"></div>
|
|
58
|
-
</template>
|
|
59
|
-
<template #content>
|
|
60
|
-
|
|
61
|
-
<div
|
|
62
|
-
class="flex flex-col items-center border rounded-lg bg-base-light md:flex-row mt-2 dark:bg-dark"
|
|
63
|
-
>
|
|
64
|
-
<template v-if="!hideCover">
|
|
65
|
-
<img
|
|
66
|
-
v-if="hasCover"
|
|
67
|
-
class="h-24 w-full rounded-t-lg object-cover md:h-auto md:w-24 md:rounded-none md:rounded-l-lg"
|
|
68
|
-
:src="cover"
|
|
69
|
-
:alt="`image de la lecture ${title}`"
|
|
70
|
-
/>
|
|
71
|
-
<div
|
|
72
|
-
v-else
|
|
73
|
-
class="h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-base-dark dark:text-white"
|
|
74
|
-
>
|
|
75
|
-
<EpIcon :icon-path="mdiLaptop" size="95"></EpIcon>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
<div class="w-full">
|
|
79
|
-
<div class="w-full px-5">
|
|
80
|
-
<div class="flex justify-between items-center rounded-t-md p-2">
|
|
81
|
-
<h4>{{ title }} <EpChip size="small" type="primary" v-if="version">{{version}}</EpChip></h4>
|
|
82
|
-
<EpBtn v-if="url" rounded type="primary" :prependIcon="mdiOpenInNew" :href="url"
|
|
83
|
-
>{{labelAccess}}</EpBtn
|
|
84
|
-
>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</template>
|
|
90
|
-
<template #actions></template>
|
|
91
|
-
</EpEdu>
|
|
92
|
-
</template>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { toRefs, computed } from 'vue';
|
|
3
|
-
import { cols_img } from "../../types/Image";
|
|
4
|
-
import { type MediaVariants } from "../../types/Medias";
|
|
5
|
-
import { type MandateLevel } from '../../types/MandateLevel';
|
|
6
|
-
import { useRenderText } from "../../composables/useRenderText";
|
|
7
|
-
import { mdiImage } from '@mdi/js';
|
|
8
|
-
import EpEdu from '../educationals/EpEdu.vue';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
interface Props {
|
|
13
|
-
desc?:string;
|
|
14
|
-
title?:string;
|
|
15
|
-
content?:string;
|
|
16
|
-
mandateLevel?:MandateLevel | null;
|
|
17
|
-
type?:MediaVariants;
|
|
18
|
-
cols?:string | number;
|
|
19
|
-
labelIntentions?:string;
|
|
20
|
-
hideIcon?:boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
24
|
-
cols: "6",
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const renderCols = computed(() => {
|
|
28
|
-
// console.log(+props.cols)
|
|
29
|
-
// console.log(Cols[+props.cols])
|
|
30
|
-
return cols_img[+props.cols]
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
const renderText = computed(()=> {
|
|
34
|
-
if(props.desc){
|
|
35
|
-
return useRenderText(props.desc)
|
|
36
|
-
}
|
|
37
|
-
return null
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const {title, content} = toRefs(props)
|
|
43
|
-
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<template>
|
|
47
|
-
<EpEdu
|
|
48
|
-
:title="title"
|
|
49
|
-
:hideIcon="hideIcon"
|
|
50
|
-
:icon="mdiImage"
|
|
51
|
-
:labelIntentions="labelIntentions"
|
|
52
|
-
flat
|
|
53
|
-
:type="type"
|
|
54
|
-
:mandateLevel="mandateLevel">
|
|
55
|
-
<template #intentions v-if="renderText">
|
|
56
|
-
<div v-html="renderText"></div>
|
|
57
|
-
</template>
|
|
58
|
-
<template #content>
|
|
59
|
-
<div class="flex">
|
|
60
|
-
<div v-if="content" :class="`mx-auto ${renderCols}`">
|
|
61
|
-
<div v-html="content" class="w-full"></div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
</EpEdu>
|
|
66
|
-
</template>
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, toRefs, computed} from "vue";
|
|
3
|
-
import { useRouter } from "vue-router";
|
|
4
|
-
import { mdiBookmarkMultipleOutline } from "@mdi/js";
|
|
5
|
-
import EpImg from "../basics/EpImg.vue";
|
|
6
|
-
import EpIcon from "../basics/EpIcon.vue";
|
|
7
|
-
import EpModal from "../interactions/EpModal.vue";
|
|
8
|
-
import EpDivider from "../basics/EpDivider.vue";
|
|
9
|
-
import EpBtn from "../basics/EpBtn.vue";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
interface Props {
|
|
13
|
-
term: string;
|
|
14
|
-
word: string;
|
|
15
|
-
definition?: string;
|
|
16
|
-
variations?: string;
|
|
17
|
-
domain?: string;
|
|
18
|
-
graminfo?: string;
|
|
19
|
-
relations?: string;
|
|
20
|
-
src?:string;
|
|
21
|
-
labelDefinition?: string;
|
|
22
|
-
labelDomain?:string;
|
|
23
|
-
labelVariations?: string;
|
|
24
|
-
labelRelations?: string;
|
|
25
|
-
labelClose?:string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
29
|
-
term: "test",
|
|
30
|
-
variations: "",
|
|
31
|
-
relations: "",
|
|
32
|
-
idrelation: "",
|
|
33
|
-
labelDefinition: "Définition",
|
|
34
|
-
labelDomain:"Domaine",
|
|
35
|
-
labelVariations: "Variations",
|
|
36
|
-
labelRelations: "Relations",
|
|
37
|
-
labelClose:"Fermer"
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const show = ref(false);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const subtitle = computed(() => {
|
|
44
|
-
if (props.term !== props.word) {
|
|
45
|
-
return `(${props.word})`;
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
const renderVariations = computed(() => {
|
|
51
|
-
let renderVariations = null;
|
|
52
|
-
let valueprops = props.variations?.trim();
|
|
53
|
-
if (valueprops?.length > 0) {
|
|
54
|
-
renderVariations = valueprops.split(",");
|
|
55
|
-
}
|
|
56
|
-
return renderVariations;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
const renderRelations = computed(() => {
|
|
60
|
-
let renderRelations = null;
|
|
61
|
-
let valueprops = props.relations?.trim();
|
|
62
|
-
if (valueprops?.length > 0) {
|
|
63
|
-
renderRelations = valueprops.split(",");
|
|
64
|
-
}
|
|
65
|
-
return renderRelations;
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const router = useRouter()
|
|
70
|
-
const goto = (term:string) =>{
|
|
71
|
-
if(router.hasRoute('glossary')){
|
|
72
|
-
router.push({ path: "/glossary", query:{word:term} });
|
|
73
|
-
}
|
|
74
|
-
//console.log(router.hasRoute('signages'))
|
|
75
|
-
//
|
|
76
|
-
}
|
|
77
|
-
// const relationsID = computed(() => {
|
|
78
|
-
// let relationsID = null;
|
|
79
|
-
// let valueprops = props.idrelation?.trim();
|
|
80
|
-
// if (valueprops?.length > 0) {
|
|
81
|
-
// relationsID = valueprops.split(",");
|
|
82
|
-
// }
|
|
83
|
-
// return relationsID;
|
|
84
|
-
// });
|
|
85
|
-
|
|
86
|
-
const renderDomain = computed(() => {
|
|
87
|
-
if (props.domain === "null") {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
return props.domain;
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
const toggleModal = () => {
|
|
94
|
-
show.value = !show.value
|
|
95
|
-
}
|
|
96
|
-
/*
|
|
97
|
-
const el = (contentref:any) => {
|
|
98
|
-
const contentHtml = contentref.innerHTML
|
|
99
|
-
const renderHtml = useRenderText(contentHtml)
|
|
100
|
-
contentref.innerHTML = renderHtml
|
|
101
|
-
}*/
|
|
102
|
-
|
|
103
|
-
const { term, graminfo,src } = toRefs(props);
|
|
104
|
-
</script>
|
|
105
|
-
|
|
106
|
-
<template>
|
|
107
|
-
<span
|
|
108
|
-
@click="toggleModal"
|
|
109
|
-
class="cursor-pointer border-primary dark:border-main-color-500 border dark:text-main-color-500 text-primary px-2 py-1 rounded group overflow-hidden relative"
|
|
110
|
-
>
|
|
111
|
-
<span
|
|
112
|
-
class="absolute top-0 left-0 flex w-full h-0 mb-0 transition-all duration-300 ease-out transform translate-y-0 bg-primary dark:bg-main-color-500 group-hover:h-full opacity-90"
|
|
113
|
-
></span>
|
|
114
|
-
<span class="relative group-hover:text-white"
|
|
115
|
-
>{{ word }}
|
|
116
|
-
<EpIcon :icon-path="mdiBookmarkMultipleOutline" size="18"></EpIcon>
|
|
117
|
-
</span>
|
|
118
|
-
</span>
|
|
119
|
-
|
|
120
|
-
<EpModal v-model="show" size="compact">
|
|
121
|
-
<div class="mb-2 flex items-center justify-between">
|
|
122
|
-
<div>
|
|
123
|
-
<h3 class="font-bold text-2xl">
|
|
124
|
-
{{ term }}
|
|
125
|
-
<span class="text-sm font-light text-error italic">{{
|
|
126
|
-
graminfo
|
|
127
|
-
}}</span>
|
|
128
|
-
</h3>
|
|
129
|
-
<h4 class="text-xs" v-if="subtitle">{{ subtitle }}</h4>
|
|
130
|
-
</div>
|
|
131
|
-
<div>
|
|
132
|
-
<EpIcon :icon-path="mdiBookmarkMultipleOutline"></EpIcon>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
<EpDivider color="primary" margin="mb-2"></EpDivider>
|
|
136
|
-
<div class="mb-4 flex items-center justify-between">
|
|
137
|
-
<h3 class="text-primary font-bold">{{labelDefinition}}</h3>
|
|
138
|
-
<span class="text-xs" v-if="renderDomain"
|
|
139
|
-
>{{labelDomain}} : <span class="font-bold">{{ renderDomain }}</span></span
|
|
140
|
-
>
|
|
141
|
-
</div>
|
|
142
|
-
<!-- <div v-html="renderText"></div> -->
|
|
143
|
-
<div>
|
|
144
|
-
<slot></slot>
|
|
145
|
-
</div>
|
|
146
|
-
<EpImg v-if="src" :src="src"></EpImg>
|
|
147
|
-
|
|
148
|
-
<EpDivider v-if="renderVariations || renderRelations"></EpDivider>
|
|
149
|
-
<div class="text-sm mt-2" v-if="renderVariations">
|
|
150
|
-
<span class="mr-2 font-bold">{{labelVariations}} :</span>
|
|
151
|
-
<span v-for="(variation, i) in renderVariations" :key="`variation-${i}`">
|
|
152
|
-
{{ variation }}{{ renderVariations.length > i + 1 ? ", " : "." }}
|
|
153
|
-
</span>
|
|
154
|
-
</div>
|
|
155
|
-
<div class="text-sm mt-2" v-if="renderRelations">
|
|
156
|
-
<span class="mr-2 font-bold">{{labelRelations}} :</span>
|
|
157
|
-
<template v-for="(relation, i) in renderRelations"
|
|
158
|
-
:key="`relation-${i}`">
|
|
159
|
-
<EpBtn
|
|
160
|
-
size="small"
|
|
161
|
-
rounded
|
|
162
|
-
extra-class="mr-2"
|
|
163
|
-
@click="goto(relation)"
|
|
164
|
-
>{{ relation }}</EpBtn>
|
|
165
|
-
</template>
|
|
166
|
-
|
|
167
|
-
</div>
|
|
168
|
-
<div class="flex justify-end">
|
|
169
|
-
<EpBtn type="error" outlined @click="show = false" rounded>{{
|
|
170
|
-
labelClose
|
|
171
|
-
}}</EpBtn>
|
|
172
|
-
</div>
|
|
173
|
-
</EpModal>
|
|
174
|
-
</template>
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, toRefs, onMounted, computed } from 'vue';
|
|
3
|
-
//types in capital letter
|
|
4
|
-
import { type TagTimeLine, type HeadTimeLine, type EventTimeLine, type ColorsTags, colorsTimeLine } from '../../types/TimeLine'
|
|
5
|
-
import TimeLineItem from '../tools/TimelineItem.vue'
|
|
6
|
-
import EpIcon from '../basics/EpIcon.vue';
|
|
7
|
-
import { mdiCheckboxBlankCircleOutline } from '@mdi/js';
|
|
8
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js';
|
|
9
|
-
|
|
10
|
-
interface TimelineHeading {
|
|
11
|
-
text:{
|
|
12
|
-
text: string
|
|
13
|
-
headline: string
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface Props {
|
|
18
|
-
tags: TagTimeLine[];
|
|
19
|
-
events: EventTimeLine[];
|
|
20
|
-
title?: TimelineHeading;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
26
|
-
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const timeLineTags = ref<TagTimeLine[]>()
|
|
30
|
-
|
|
31
|
-
onMounted(() => {
|
|
32
|
-
if (props.tags) {
|
|
33
|
-
timeLineTags.value = props.tags.map(tag => ({ ...tag, active: false }))
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const styleTag = (color: ColorsTags) => {
|
|
38
|
-
const styles = colorsTimeLine[color]
|
|
39
|
-
if (!styles) {
|
|
40
|
-
return colorsTimeLine.noTag
|
|
41
|
-
}
|
|
42
|
-
return styles
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const activeTags = computed(() => {
|
|
46
|
-
return timeLineTags.value?.filter(tag => tag.active) || []
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
const filteredEvents = computed(() => {
|
|
50
|
-
if (activeTags.value.length === 0) {
|
|
51
|
-
return props.events
|
|
52
|
-
} else {
|
|
53
|
-
const filtered = props.events.filter(event => {
|
|
54
|
-
if (event.tag) {
|
|
55
|
-
///event.tag.id === this.activesTags.some(t => t.id)
|
|
56
|
-
return activeTags.value.some(t => t.id === event.tag?.id)
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
return filtered
|
|
60
|
-
}
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
const toggleActive = (tag: TagTimeLine) => {
|
|
64
|
-
tag.active = !tag.active
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const { title } = toRefs(props)
|
|
69
|
-
|
|
70
|
-
</script>
|
|
71
|
-
|
|
72
|
-
<template>
|
|
73
|
-
<!-- component -->
|
|
74
|
-
<div>
|
|
75
|
-
<div class="w-10/12 mx-auto relative">
|
|
76
|
-
<h3 class="text-2xl mb-2">{{ title?.text.headline }}</h3>
|
|
77
|
-
<p>{{ title?.text.text}}</p>
|
|
78
|
-
<div class="my-4 px-2">
|
|
79
|
-
<template v-for="tag in timeLineTags" :key="tag.id">
|
|
80
|
-
<span @click="toggleActive(tag)"
|
|
81
|
-
:class="`mr-2 mb-2 inline-block cursor-pointer text-sm px-2 py-1 rounded border ${styleTag(tag.color).border} ${tag.active ? 'text-white' : styleTag(tag.color).text} ${tag.active ? styleTag(tag.color).bg : ''}`">
|
|
82
|
-
{{ tag.title }} <EpIcon :icon-path="tag.active ? mdiCheckboxMarkedCircle : mdiCheckboxBlankCircleOutline"
|
|
83
|
-
size="14"></EpIcon>
|
|
84
|
-
</span>
|
|
85
|
-
</template>
|
|
86
|
-
</div>
|
|
87
|
-
<div class="border-l-4 pl-1 transition-all dark:border-l-gray-500">
|
|
88
|
-
<TransitionGroup name="list" tag="div">
|
|
89
|
-
<template v-for="(item, i) in filteredEvents" :key="`${i}-card-${item.id}`">
|
|
90
|
-
<TimeLineItem :event="item"></TimeLineItem>
|
|
91
|
-
</template>
|
|
92
|
-
</TransitionGroup>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
</template>
|
|
97
|
-
|
|
98
|
-
<style>
|
|
99
|
-
.list-enter-active,
|
|
100
|
-
.list-leave-active {
|
|
101
|
-
transition: all 0.5s ease;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.list-enter-from,
|
|
105
|
-
.list-leave-to {
|
|
106
|
-
opacity: 0;
|
|
107
|
-
transform: translateX(30px);
|
|
108
|
-
}
|
|
109
|
-
</style>
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, computed, toRefs } from "vue";
|
|
3
|
-
//types with capital letter, object styles in lowercase
|
|
4
|
-
import { MediaVariants } from "../../types/Medias";
|
|
5
|
-
import { MandateLevel } from "../../types/MandateLevel";
|
|
6
|
-
import { isHtml } from "../../composables/isHtml";
|
|
7
|
-
import { useMarkdown } from "../../composables/useMarkdown";
|
|
8
|
-
import { mdiVideo } from "@mdi/js";
|
|
9
|
-
|
|
10
|
-
//import { useMediaControls } from '@vueuse/core'
|
|
11
|
-
import EpEdu from "../educationals/EpEdu.vue";
|
|
12
|
-
|
|
13
|
-
interface Props {
|
|
14
|
-
src: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
intentions?: string;
|
|
17
|
-
credits?: string;
|
|
18
|
-
mandateLevel?: MandateLevel | null;
|
|
19
|
-
type?: MediaVariants;
|
|
20
|
-
hideIcon?: boolean;
|
|
21
|
-
labelIntentions?: string;
|
|
22
|
-
big?:boolean;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
26
|
-
type: "neutral",
|
|
27
|
-
hideIcon: false,
|
|
28
|
-
labelIntentions: "Intentions d'écoute",
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
//only to make custum video player
|
|
32
|
-
const video = ref<HTMLVideoElement>();
|
|
33
|
-
|
|
34
|
-
const isVideoFormat = computed(() => {
|
|
35
|
-
if (
|
|
36
|
-
props.src.endsWith(".mp4") ||
|
|
37
|
-
props.src.endsWith(".ogg") ||
|
|
38
|
-
props.src.endsWith(".webm")
|
|
39
|
-
) {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
return false;
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
const videoURL = computed(() => {
|
|
46
|
-
const url = props.src;
|
|
47
|
-
if (!isVideoFormat.value && url.includes("https://vimeo.com/")) {
|
|
48
|
-
return url.replace("https://vimeo.com/", "https://player.vimeo.com/video/");
|
|
49
|
-
}
|
|
50
|
-
if (!isVideoFormat.value && url.includes("https://www.youtube.com/watch?")) {
|
|
51
|
-
return url.replace(
|
|
52
|
-
"https://www.youtube.com/watch?v=",
|
|
53
|
-
"https://www.youtube.com/embed/"
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
//extra to short url youtube
|
|
57
|
-
if (!isVideoFormat.value && url.includes("https://youtu.be/")) {
|
|
58
|
-
const id = getIdYoutube(url);
|
|
59
|
-
if (id) {
|
|
60
|
-
return `https://www.youtube.com/embed/${id}`;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return url;
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
const renderText = computed(() => {
|
|
67
|
-
if (!props.intentions) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
if (!isHtml(props.intentions)) {
|
|
71
|
-
return useMarkdown(props.intentions);
|
|
72
|
-
}
|
|
73
|
-
return props.intentions;
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const getIdYoutube = (url: string): string | null => {
|
|
77
|
-
const match = url.match(/\/([^\/]+)$/);
|
|
78
|
-
return match ? match[1] : null;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const sizeVideo = computed(()=> {
|
|
82
|
-
if(props.big){
|
|
83
|
-
return "650"
|
|
84
|
-
}
|
|
85
|
-
return "360"
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
//controls
|
|
89
|
-
//const controls = useMediaControls(video, {src:props.src})
|
|
90
|
-
const { src, title, hideIcon, type, labelIntentions } = toRefs(props);
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<template>
|
|
94
|
-
<EpEdu
|
|
95
|
-
:title="title"
|
|
96
|
-
:type="type"
|
|
97
|
-
:hideIcon="hideIcon"
|
|
98
|
-
:icon="mdiVideo"
|
|
99
|
-
:mandateLevel="mandateLevel"
|
|
100
|
-
:labelIntentions="labelIntentions"
|
|
101
|
-
>
|
|
102
|
-
<template #intentions v-if="renderText && renderText.length > 0">
|
|
103
|
-
<div v-html="renderText"></div>
|
|
104
|
-
</template>
|
|
105
|
-
<template #content>
|
|
106
|
-
<div :class="!big?'max-w-screen-sm mx-auto':''">
|
|
107
|
-
<video
|
|
108
|
-
v-if="isVideoFormat"
|
|
109
|
-
ref="video"
|
|
110
|
-
controls
|
|
111
|
-
:src="src"
|
|
112
|
-
width="100%"
|
|
113
|
-
controlsList="nodownload"
|
|
114
|
-
></video>
|
|
115
|
-
|
|
116
|
-
<iframe
|
|
117
|
-
v-else
|
|
118
|
-
:src="videoURL"
|
|
119
|
-
width="100%"
|
|
120
|
-
:height="sizeVideo"
|
|
121
|
-
frameborder="0"
|
|
122
|
-
allowfullscreen
|
|
123
|
-
></iframe>
|
|
124
|
-
</div>
|
|
125
|
-
</template>
|
|
126
|
-
<!-- <template #actions>
|
|
127
|
-
<EpBtn :color="type=='base'?'text-gray-700':'text-white'" :type="type">[Repair btn style... to change]</EpBtn>
|
|
128
|
-
</template> -->
|
|
129
|
-
</EpEdu>
|
|
130
|
-
</template>
|