ep-lib-ts 1.0.55 → 1.0.57
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/{types/Answer.d.ts → Answer.d.ts} +0 -1
- package/dist/{types/Hierarchy.d.ts → Hierarchy.d.ts} +1 -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-Kj9ZCege.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} +1 -1
- 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 +59 -0
- package/dist/components/tools/BgAudio.vue2.js +4 -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/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/package.json +82 -60
- package/.vscode/extensions.json +0 -3
- package/dist/BgAudio-CjD8rE6L.js +0 -4
- package/dist/Details-DodNJLmk.js +0 -4
- package/dist/DisplayBox-a9QABBg0.js +0 -4
- package/dist/EpAlert-DL2pQmkm.js +0 -4
- package/dist/EpAudio-B1eoAvQp.js +0 -4
- package/dist/EpAvatar-DUWW5trW.js +0 -4
- package/dist/EpBadge-BZZQvAVs.js +0 -4
- package/dist/EpBarChart-Bv4LoxxX.js +0 -4
- package/dist/EpBtn-BfLGlVXl.js +0 -4
- package/dist/EpCard-Crpcs4JY.js +0 -4
- package/dist/EpCardLink-MoItEiyt.js +0 -4
- package/dist/EpChip-BceMyKjr.js +0 -4
- package/dist/EpCodeblock-D87dvIve.js +0 -4
- package/dist/EpConclusion-CqJsk0kW.js +0 -4
- package/dist/EpContentSlider-W35bm8vM.js +0 -4
- package/dist/EpDescription-CkrMusXA.js +0 -4
- package/dist/EpDivider-PDLfxtHT.js +0 -4
- package/dist/EpDocument-BDU1ahk8.js +0 -4
- package/dist/EpDraggable-Co8uBigH.js +0 -1676
- package/dist/EpEdu-CHRkMMgm.js +0 -4
- package/dist/EpFlex-DARmMuRJ.js +0 -4
- package/dist/EpFunnelChart-z5FrSEHw.js +0 -4
- package/dist/EpHeader-DVN3apTI.js +0 -4
- package/dist/EpHover-heeBGubv.js +0 -4
- package/dist/EpHoverCard-2rYupP8M.js +0 -4
- package/dist/EpIcon-D1hHhkw2.js +0 -4
- package/dist/EpIframe-BebJ46m_.js +0 -4
- package/dist/EpImg-DLtDRMKo.js +0 -4
- package/dist/EpImgCarousel-Sdulf0vy.js +0 -4
- package/dist/EpInput-BAl9kb_b.js +0 -1095
- package/dist/EpInstructions-C4jVOwjT.js +0 -4
- package/dist/EpIntroduction-DlDvwvqJ.js +0 -4
- package/dist/EpLineChart-CtzLjbJ7.js +0 -4
- package/dist/EpLink-42Jwja2Y.js +0 -4
- package/dist/EpLinkVersion-DIvWaYUN.js +0 -4
- package/dist/EpList-B9M5lt1v.js +0 -12
- package/dist/EpListitem-DXh4Kniu.js +0 -37
- package/dist/EpLottieSvg-NNSQLDpl.js +0 -1971
- package/dist/EpModal-BsON1lr3.js +0 -4
- package/dist/EpNothing-YipAP3oo.js +0 -10
- package/dist/EpObjective-BbUe8GFm.js +0 -4
- package/dist/EpPieChart-MLoj6BR_.js +0 -4
- package/dist/EpQuestion-BtF1Qgmj.js +0 -4
- package/dist/EpQuote-Cibs-LKa.js +0 -4
- package/dist/EpRadio-BWLLcGbB.js +0 -4
- package/dist/EpRadioSummative-DxivBGqM.js +0 -4
- package/dist/EpReading-D_Hpr3ao.js +0 -4
- package/dist/EpResource-BE_aXHAi.js +0 -4
- package/dist/EpScope-DiXtqmae.js +0 -4
- package/dist/EpSection-B3W0ffnN.js +0 -4
- package/dist/EpSectionCols-DbM-vHrS.js +0 -4
- package/dist/EpSkeleton-CFNm58SZ.js +0 -4
- package/dist/EpSoftware-Bob71yqB.js +0 -4
- package/dist/EpSpecificObjective-C7tWNHHd.js +0 -4
- package/dist/EpSpinner-Do8Jowd9.js +0 -4
- package/dist/EpStackedList-sgilE4yA.js +0 -4
- package/dist/EpSummativeTable-BJi8VUtB.js +0 -4
- package/dist/EpSvg-DqQt1rvC.js +0 -4
- package/dist/EpSvgShow-DtDVgeJl.js +0 -4
- package/dist/EpSwitch-DtQon_hm.js +0 -64
- package/dist/EpTable-DXuHhHqq.js +0 -4
- package/dist/EpTerm-jaZtSD0w.js +0 -4
- package/dist/EpText-CwvgGSLh.js +0 -4
- package/dist/EpTimeLine-CCCyOGBT.js +0 -4
- package/dist/EpVideo-EeWrLoqr.js +0 -4
- package/dist/EpVideoPanopto-2xqsTrPY.js +0 -4
- package/dist/EpWordDef-bqKugyLs.js +0 -4
- package/dist/TextMedia-BCE1F2fb.js +0 -4
- 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/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-Bhy3n4DI.js +0 -49358
- package/dist/index-CO05CQPt.js +0 -3430
- package/dist/index-Cllz2Ia3.js +0 -24640
- package/dist/index.d.ts +0 -60
- package/dist/main.d.ts +0 -1
- package/dist/prism-CFRbvIsk.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 -98
- 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/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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as I, computed as i, toRefs as k, createBlock as s, openBlock as r, unref as n, createSlots as b, withCtx as l, createElementVNode as a, createElementBlock as u, toDisplayString as L } from "vue";
|
|
2
|
+
import { isHtml as w } from "../../composables/isHtml.js";
|
|
3
|
+
import { useMarkdown as C } from "../../composables/useMarkdown.js";
|
|
4
|
+
import { mdiHeadphones as E } from "@mdi/js";
|
|
5
|
+
import B from "../../composables/useColors.js";
|
|
6
|
+
import H from "../tools/BgAudio.vue.js";
|
|
7
|
+
import M from "../signages/EpAlert.vue.js";
|
|
8
|
+
import S from "../educationals/EpEdu.vue.js";
|
|
9
|
+
const W = ["innerHTML"], x = { class: "max-w-screen-sm mx-auto" }, T = ["src"], $ = ["src"], z = /* @__PURE__ */ I({
|
|
10
|
+
__name: "EpAudio",
|
|
11
|
+
props: {
|
|
12
|
+
src: {},
|
|
13
|
+
title: {},
|
|
14
|
+
intentions: {},
|
|
15
|
+
bgImg: {},
|
|
16
|
+
type: { default: "neutral" },
|
|
17
|
+
hideIcon: { type: Boolean, default: !1 },
|
|
18
|
+
mandateLevel: {},
|
|
19
|
+
labelIntentions: { default: "Intentions d'écoute" },
|
|
20
|
+
messageError: { default: "Mauvais url" }
|
|
21
|
+
},
|
|
22
|
+
setup(d) {
|
|
23
|
+
const e = d, p = /\.mp4\?/, o = i(() => {
|
|
24
|
+
let t = e.src;
|
|
25
|
+
return p.test(e.src) && (t = t.replace(/\.mp4.*$/, ".mp4")), t;
|
|
26
|
+
}), f = i(() => !!(o.value.endsWith(".mp3") || o.value.endsWith(".mp4") || o.value.endsWith(".ogg") || o.value.endsWith(".wav"))), v = i(() => B("fill", e.type)), c = i(() => e.intentions ? w(e.intentions) ? e.intentions : C(e.intentions) : null), { src: A, title: _, hideIcon: h, mandateLevel: y, bgImg: m } = k(e);
|
|
27
|
+
return (t, g) => (r(), s(S, {
|
|
28
|
+
title: n(_),
|
|
29
|
+
labelIntentions: t.labelIntentions,
|
|
30
|
+
type: t.type,
|
|
31
|
+
hideIcon: n(h),
|
|
32
|
+
icon: n(E),
|
|
33
|
+
mandateLevel: n(y)
|
|
34
|
+
}, b({
|
|
35
|
+
content: l(() => [
|
|
36
|
+
a("div", x, [
|
|
37
|
+
n(m) ? (r(), u("img", {
|
|
38
|
+
key: 1,
|
|
39
|
+
src: n(m)
|
|
40
|
+
}, null, 8, T)) : (r(), s(H, {
|
|
41
|
+
key: 0,
|
|
42
|
+
fill: v.value
|
|
43
|
+
}, null, 8, ["fill"])),
|
|
44
|
+
f.value ? (r(), u("audio", {
|
|
45
|
+
key: 2,
|
|
46
|
+
ref: "video",
|
|
47
|
+
controls: "",
|
|
48
|
+
src: o.value,
|
|
49
|
+
controlsList: "nodownload"
|
|
50
|
+
}, null, 8, $)) : (r(), s(M, {
|
|
51
|
+
key: 3,
|
|
52
|
+
type: "error",
|
|
53
|
+
outlined: ""
|
|
54
|
+
}, {
|
|
55
|
+
default: l(() => [
|
|
56
|
+
a("p", null, L(t.messageError), 1)
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}))
|
|
60
|
+
])
|
|
61
|
+
]),
|
|
62
|
+
_: 2
|
|
63
|
+
}, [
|
|
64
|
+
c.value ? {
|
|
65
|
+
name: "intentions",
|
|
66
|
+
fn: l(() => [
|
|
67
|
+
a("div", { innerHTML: c.value }, null, 8, W)
|
|
68
|
+
]),
|
|
69
|
+
key: "0"
|
|
70
|
+
} : void 0
|
|
71
|
+
]), 1032, ["title", "labelIntentions", "type", "hideIcon", "icon", "mandateLevel"]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
z as default
|
|
76
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as C, computed as m, createElementBlock as i, openBlock as o, normalizeClass as f, createVNode as n } from "vue";
|
|
2
|
+
import { useRouter as p } from "vue-router";
|
|
3
|
+
import s from "../basics/EpCard.vue.js";
|
|
4
|
+
import { mdiChevronRight as c } from "@mdi/js";
|
|
5
|
+
const v = ["href"], y = /* @__PURE__ */ C({
|
|
6
|
+
__name: "EpCardLink",
|
|
7
|
+
props: {
|
|
8
|
+
title: {},
|
|
9
|
+
subtitle: {},
|
|
10
|
+
outlined: { type: Boolean },
|
|
11
|
+
flat: { type: Boolean },
|
|
12
|
+
color: {},
|
|
13
|
+
src: {},
|
|
14
|
+
svg: { default: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>dog</title><path d="M18,4C16.29,4 15.25,4.33 14.65,4.61C13.88,4.23 13,4 12,4C11,4 10.12,4.23 9.35,4.61C8.75,4.33 7.71,4 6,4C3,4 1,12 1,14C1,14.83 2.32,15.59 4.14,15.9C4.78,18.14 7.8,19.85 11.5,20V15.72C10.91,15.35 10,14.68 10,14C10,13 12,13 12,13C12,13 14,13 14,14C14,14.68 13.09,15.35 12.5,15.72V20C16.2,19.85 19.22,18.14 19.86,15.9C21.68,15.59 23,14.83 23,14C23,12 21,4 18,4M4.15,13.87C3.65,13.75 3.26,13.61 3,13.5C3.25,10.73 5.2,6.4 6.05,6C6.59,6 7,6.06 7.37,6.11C5.27,8.42 4.44,12.04 4.15,13.87M9,12A1,1 0 0,1 8,11C8,10.46 8.45,10 9,10A1,1 0 0,1 10,11C10,11.56 9.55,12 9,12M15,12A1,1 0 0,1 14,11C14,10.46 14.45,10 15,10A1,1 0 0,1 16,11C16,11.56 15.55,12 15,12M19.85,13.87C19.56,12.04 18.73,8.42 16.63,6.11C17,6.06 17.41,6 17.95,6C18.8,6.4 20.75,10.73 21,13.5C20.75,13.61 20.36,13.75 19.85,13.87Z" /></svg>' },
|
|
15
|
+
maxWidth: { default: "max-w-md" },
|
|
16
|
+
center: { type: Boolean, default: !1 },
|
|
17
|
+
content: {},
|
|
18
|
+
iconlink: { default: c },
|
|
19
|
+
to: { default: "/" },
|
|
20
|
+
nuxtLink: { type: Boolean, default: !1 },
|
|
21
|
+
isExternal: { type: Boolean, default: !1 },
|
|
22
|
+
disabled: { type: Boolean, default: !1 }
|
|
23
|
+
},
|
|
24
|
+
setup(a) {
|
|
25
|
+
const t = a, r = m(() => t.center ? "mx-auto" : ""), d = p(), u = (e) => {
|
|
26
|
+
!t.isExternal && !t.disabled && d.push(e);
|
|
27
|
+
};
|
|
28
|
+
return (e, l) => (o(), i("div", {
|
|
29
|
+
class: f(`${r.value} ${e.maxWidth}`)
|
|
30
|
+
}, [
|
|
31
|
+
e.isExternal ? (o(), i("a", {
|
|
32
|
+
key: 0,
|
|
33
|
+
href: e.to,
|
|
34
|
+
target: "_blank",
|
|
35
|
+
rel: "noopener noreferrer"
|
|
36
|
+
}, [
|
|
37
|
+
n(s, {
|
|
38
|
+
title: e.title,
|
|
39
|
+
subtitle: e.subtitle,
|
|
40
|
+
src: e.src,
|
|
41
|
+
svg: e.svg,
|
|
42
|
+
maxWidth: e.maxWidth,
|
|
43
|
+
icon: e.iconlink,
|
|
44
|
+
isLink: ""
|
|
45
|
+
}, null, 8, ["title", "subtitle", "src", "svg", "maxWidth", "icon"])
|
|
46
|
+
], 8, v)) : (o(), i("div", {
|
|
47
|
+
key: 1,
|
|
48
|
+
onClick: l[0] || (l[0] = (g) => u(e.to))
|
|
49
|
+
}, [
|
|
50
|
+
n(s, {
|
|
51
|
+
title: e.title,
|
|
52
|
+
subtitle: e.subtitle,
|
|
53
|
+
src: e.src,
|
|
54
|
+
svg: e.svg,
|
|
55
|
+
maxWidth: e.maxWidth,
|
|
56
|
+
icon: e.iconlink,
|
|
57
|
+
isLink: ""
|
|
58
|
+
}, null, 8, ["title", "subtitle", "src", "svg", "maxWidth", "icon"])
|
|
59
|
+
]))
|
|
60
|
+
], 2));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
y as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { defineComponent as j, ref as p, computed as E, toRefs as M, createElementBlock as i, openBlock as s, Fragment as h, createCommentVNode as v, toDisplayString as d, createElementVNode as c, createVNode as b, createTextVNode as y, unref as n, withCtx as I, normalizeClass as N, renderList as x, createBlock as S } from "vue";
|
|
2
|
+
import { mdiChevronLeftCircleOutline as P, mdiChevronRightCircleOutline as H } from "@mdi/js";
|
|
3
|
+
import w from "../basics/EpIcon.vue.js";
|
|
4
|
+
import z from "../basics/EpBtn.vue.js";
|
|
5
|
+
import O from "../interactions/EpModal.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import F from "../basics/EpImgCarousel.vue.js";
|
|
8
|
+
const q = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "text-xl font-semibold mt-10 mb-4 text-center"
|
|
11
|
+
}, D = { key: 1 }, U = { class: "flex items-center justify-center mb-2" }, A = { class: "bg-white dark:bg-dark shadow-xl p-4 lg:max-w-[800px] mx-auto border-solid border" }, G = ["src"], J = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "mt-2 text-sm text-center text-base-dark dark:text-white"
|
|
14
|
+
}, K = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "flex justify-end mt-2"
|
|
17
|
+
}, Q = ["innerHTML"], W = { class: "flex justify-end" }, X = {
|
|
18
|
+
key: 3,
|
|
19
|
+
class: /* @__PURE__ */ N("columns-3xs mx-5 gap-2")
|
|
20
|
+
}, se = /* @__PURE__ */ j({
|
|
21
|
+
__name: "EpCarousel",
|
|
22
|
+
props: {
|
|
23
|
+
carrouselImg: {},
|
|
24
|
+
title: {},
|
|
25
|
+
gallery: { type: Boolean, default: !1 },
|
|
26
|
+
puzzle: { type: Boolean, default: !1 },
|
|
27
|
+
sizeThumbnail: { default: "medium" },
|
|
28
|
+
isCenter: { type: Boolean, default: !1 },
|
|
29
|
+
labelClose: { default: "Fermer" },
|
|
30
|
+
labelRef: { default: "Référence" },
|
|
31
|
+
labelRefLib: { default: "Référence bibliographique" }
|
|
32
|
+
},
|
|
33
|
+
setup($) {
|
|
34
|
+
const t = $, o = p(0), f = p(!1), L = () => {
|
|
35
|
+
const e = o.value === 0 ? t.carrouselImg.length - 1 : o.value - 1;
|
|
36
|
+
o.value = e;
|
|
37
|
+
}, R = () => {
|
|
38
|
+
const e = o.value === t.carrouselImg.length - 1 ? 0 : o.value + 1;
|
|
39
|
+
o.value = e;
|
|
40
|
+
}, T = E(() => t.isCenter ? "justify-center" : ""), u = p(0), m = p({ src: "", caption: "", bib: "" }), k = (l) => {
|
|
41
|
+
u.value = l, m.value = {
|
|
42
|
+
src: t.carrouselImg[l].src,
|
|
43
|
+
caption: t.carrouselImg[l].caption,
|
|
44
|
+
bib: t.carrouselImg[l].bib
|
|
45
|
+
};
|
|
46
|
+
}, _ = () => {
|
|
47
|
+
const e = u.value === 0 ? t.carrouselImg.length - 1 : u.value - 1;
|
|
48
|
+
u.value = e, m.value = {
|
|
49
|
+
src: t.carrouselImg[e].src,
|
|
50
|
+
caption: t.carrouselImg[e].caption,
|
|
51
|
+
bib: t.carrouselImg[e].bib
|
|
52
|
+
};
|
|
53
|
+
}, C = () => {
|
|
54
|
+
const e = u.value === t.carrouselImg.length - 1 ? 0 : u.value + 1;
|
|
55
|
+
u.value = e, m.value = {
|
|
56
|
+
src: t.carrouselImg[e].src,
|
|
57
|
+
caption: t.carrouselImg[e].caption,
|
|
58
|
+
bib: t.carrouselImg[e].bib
|
|
59
|
+
};
|
|
60
|
+
}, { carrouselImg: r, sizeThumbnail: V } = M(t);
|
|
61
|
+
return (l, e) => (s(), i(h, null, [
|
|
62
|
+
t.title ? (s(), i("h2", q, d(t.title), 1)) : v("", !0),
|
|
63
|
+
l.gallery ? l.puzzle ? l.puzzle ? (s(), i("div", X, [
|
|
64
|
+
(s(!0), i(h, null, x(n(r), (a, g) => (s(), S(F, {
|
|
65
|
+
key: `image-${a?.uid}`,
|
|
66
|
+
src: a.src,
|
|
67
|
+
bib: a.bib,
|
|
68
|
+
caption: a.caption,
|
|
69
|
+
"label-ref": l.labelRef,
|
|
70
|
+
"label-close": l.labelClose,
|
|
71
|
+
puzzle: "",
|
|
72
|
+
"managed-modal": "",
|
|
73
|
+
onNewFocus: (B) => k(g),
|
|
74
|
+
"info-modal": m.value,
|
|
75
|
+
onPrevSlide: _,
|
|
76
|
+
onNextSlide: C
|
|
77
|
+
}, null, 8, ["src", "bib", "caption", "label-ref", "label-close", "onNewFocus", "info-modal"]))), 128))
|
|
78
|
+
])) : v("", !0) : (s(), i("div", {
|
|
79
|
+
key: 2,
|
|
80
|
+
class: N(`flex flex-wrap ${T.value}`)
|
|
81
|
+
}, [
|
|
82
|
+
(s(!0), i(h, null, x(n(r), (a, g) => (s(), S(F, {
|
|
83
|
+
key: `image-${a?.uid}`,
|
|
84
|
+
src: a.src,
|
|
85
|
+
bib: a.bib,
|
|
86
|
+
caption: a.caption,
|
|
87
|
+
"label-ref": l.labelRef,
|
|
88
|
+
"label-close": l.labelClose,
|
|
89
|
+
"size-thumbnail": n(V),
|
|
90
|
+
"managed-modal": "",
|
|
91
|
+
onNewFocus: (B) => k(g),
|
|
92
|
+
"info-modal": m.value,
|
|
93
|
+
onPrevSlide: _,
|
|
94
|
+
onNextSlide: C
|
|
95
|
+
}, null, 8, ["src", "bib", "caption", "label-ref", "label-close", "size-thumbnail", "onNewFocus", "info-modal"]))), 128))
|
|
96
|
+
], 2)) : (s(), i("div", D, [
|
|
97
|
+
c("div", U, [
|
|
98
|
+
c("button", {
|
|
99
|
+
class: "p-2",
|
|
100
|
+
onClick: L
|
|
101
|
+
}, [
|
|
102
|
+
b(w, { "icon-path": n(P) }, null, 8, ["icon-path"])
|
|
103
|
+
]),
|
|
104
|
+
y(" " + d(o.value + 1) + "/" + d(n(r).length) + " ", 1),
|
|
105
|
+
c("button", {
|
|
106
|
+
class: "p-2",
|
|
107
|
+
onClick: R
|
|
108
|
+
}, [
|
|
109
|
+
b(w, { "icon-path": n(H) }, null, 8, ["icon-path"])
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
c("div", A, [
|
|
113
|
+
c("img", {
|
|
114
|
+
src: n(r)[o.value].src,
|
|
115
|
+
alt: "image",
|
|
116
|
+
class: "rounded-sm m-auto"
|
|
117
|
+
}, null, 8, G),
|
|
118
|
+
n(r)[o.value]?.caption ? (s(), i("div", J, d(n(r)[o.value].caption), 1)) : v("", !0),
|
|
119
|
+
n(r)[o.value]?.bib ? (s(), i("div", K, [
|
|
120
|
+
b(z, {
|
|
121
|
+
type: "primary",
|
|
122
|
+
onClick: e[0] || (e[0] = (a) => f.value = !0),
|
|
123
|
+
dark: ""
|
|
124
|
+
}, {
|
|
125
|
+
default: I(() => [
|
|
126
|
+
y(d(l.labelRef), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
])) : v("", !0)
|
|
131
|
+
]),
|
|
132
|
+
b(O, {
|
|
133
|
+
modelValue: f.value,
|
|
134
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => f.value = a),
|
|
135
|
+
title: l.labelRefLib
|
|
136
|
+
}, {
|
|
137
|
+
default: I(() => [
|
|
138
|
+
c("div", {
|
|
139
|
+
innerHTML: n(r)[o.value].bib
|
|
140
|
+
}, null, 8, Q),
|
|
141
|
+
c("div", W, [
|
|
142
|
+
b(z, {
|
|
143
|
+
onClick: e[1] || (e[1] = (a) => f.value = !1),
|
|
144
|
+
type: "primary",
|
|
145
|
+
dark: ""
|
|
146
|
+
}, {
|
|
147
|
+
default: I(() => [
|
|
148
|
+
y(d(l.labelClose), 1)
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
])
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["modelValue", "title"])
|
|
156
|
+
]))
|
|
157
|
+
], 64));
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
export {
|
|
161
|
+
se as default
|
|
162
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { defineComponent as O, ref as k, computed as L, defineAsyncComponent as Q, onMounted as U, createElementBlock as W, openBlock as y, createElementVNode as z, createBlock as P, createCommentVNode as H, normalizeStyle as Z, withCtx as A, unref as q, resolveDynamicComponent as G, normalizeProps as J, mergeProps as tt, createVNode as et, createTextVNode as ot, toDisplayString as at } from "vue";
|
|
2
|
+
import { hierarchy as I, tree as rt, cluster as nt } from "d3-hierarchy";
|
|
3
|
+
import * as m from "d3-selection";
|
|
4
|
+
import { linkVertical as st, linkHorizontal as it } from "d3-shape";
|
|
5
|
+
import * as E from "d3-zoom";
|
|
6
|
+
import { useComponent as lt } from "../../composables/useComponent.js";
|
|
7
|
+
import ct from "../interactions/EpModal.vue.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import pt from "../basics/EpBtn.vue.js";
|
|
10
|
+
import { useRenderText as mt } from "../../composables/useRenderText.js";
|
|
11
|
+
const dt = ["innerHTML"], ut = { class: "flex justify-end" }, bt = /* @__PURE__ */ O({
|
|
12
|
+
__name: "EpHierarchy",
|
|
13
|
+
props: {
|
|
14
|
+
nodes: {},
|
|
15
|
+
maxWidth: { default: 800 },
|
|
16
|
+
maxHeight: { default: 600 },
|
|
17
|
+
labelClose: { default: "fermer" },
|
|
18
|
+
isCluster: { type: Boolean, default: !1 },
|
|
19
|
+
colorPath: { default: "stroke-yellow-400" },
|
|
20
|
+
colorRect: { default: "fill-main-color-400" }
|
|
21
|
+
},
|
|
22
|
+
setup(T) {
|
|
23
|
+
const o = T, x = k(null), M = k(null), a = k(null), g = k(!1), V = (e) => {
|
|
24
|
+
a.value = {
|
|
25
|
+
title: e.name,
|
|
26
|
+
text: e.text,
|
|
27
|
+
component: e.component
|
|
28
|
+
}, g.value = !0;
|
|
29
|
+
}, N = () => {
|
|
30
|
+
g.value = !1, a.value = null;
|
|
31
|
+
}, D = /* @__PURE__ */ Object.assign({
|
|
32
|
+
"../basics/EpAvatar.vue": () => import("../basics/EpAvatar.vue2.js"),
|
|
33
|
+
"../basics/EpBadge.vue": () => import("../basics/EpBadge.vue2.js"),
|
|
34
|
+
"../basics/EpBtn.vue": () => import("../basics/EpBtn.vue2.js"),
|
|
35
|
+
"../basics/EpCard.vue": () => import("../basics/EpCard.vue2.js"),
|
|
36
|
+
"../basics/EpChip.vue": () => import("../basics/EpChip.vue2.js"),
|
|
37
|
+
"../basics/EpDivider.vue": () => import("../basics/EpDivider.vue2.js"),
|
|
38
|
+
"../basics/EpFlex.vue": () => import("../basics/EpFlex.vue2.js"),
|
|
39
|
+
"../basics/EpHover.vue": () => import("../basics/EpHover.vue2.js"),
|
|
40
|
+
"../basics/EpHoverCard.vue": () => import("../basics/EpHoverCard.vue2.js"),
|
|
41
|
+
"../basics/EpIcon.vue": () => import("../basics/EpIcon.vue2.js"),
|
|
42
|
+
"../basics/EpImg.vue": () => import("../basics/EpImg.vue2.js"),
|
|
43
|
+
"../basics/EpImgCarousel.vue": () => import("../basics/EpImgCarousel.vue2.js"),
|
|
44
|
+
"../basics/EpList.vue": () => import("../basics/EpList.vue.js"),
|
|
45
|
+
"../basics/EpListItem.vue": () => import("../basics/EpListItem.vue2.js"),
|
|
46
|
+
"../basics/EpSection.vue": () => import("../basics/EpSection.vue2.js"),
|
|
47
|
+
"../basics/EpSectionCols.vue": () => import("../basics/EpSectionCols.vue2.js"),
|
|
48
|
+
"../basics/EpSpinner.vue": () => import("../basics/EpSpinner.vue2.js"),
|
|
49
|
+
"../basics/EpStackedList.vue": () => import("../basics/EpStackedList.vue2.js"),
|
|
50
|
+
"../basics/EpTable.vue": () => import("../basics/EpTable.vue2.js"),
|
|
51
|
+
"../basics/EpText.vue": () => import("../basics/EpText.vue2.js"),
|
|
52
|
+
"./EpAudio.vue": () => import("./EpAudio.vue2.js"),
|
|
53
|
+
"./EpCardLink.vue": () => import("./EpCardLink.vue2.js"),
|
|
54
|
+
"./EpCarousel.vue": () => import("./EpCarousel.vue.js"),
|
|
55
|
+
"./EpHierarchy.vue": () => import("./EpHierarchy.vue.js"),
|
|
56
|
+
"./EpIframe.vue": () => import("./EpIframe.vue2.js"),
|
|
57
|
+
"./EpKatex.vue": () => import("./EpKatex.vue.js"),
|
|
58
|
+
"./EpLink.vue": () => import("./EpLink.vue2.js"),
|
|
59
|
+
"./EpLinkVersion.vue": () => import("./EpLinkVersion.vue2.js"),
|
|
60
|
+
"./EpLottieSvg.vue": () => import("./EpLottieSvg.vue2.js"),
|
|
61
|
+
"./EpSensibleImage.vue": () => import("./EpSensibleImage.vue.js"),
|
|
62
|
+
"./EpSoftware.vue": () => import("./EpSoftware.vue2.js"),
|
|
63
|
+
"./EpSvg.vue": () => import("./EpSvg.vue2.js"),
|
|
64
|
+
"./EpTerm.vue": () => import("./EpTerm.vue2.js"),
|
|
65
|
+
"./EpTimeLine.vue": () => import("./EpTimeLine.vue3.js"),
|
|
66
|
+
"./EpVideo.vue": () => import("./EpVideo.vue2.js"),
|
|
67
|
+
"./EpVideoPanopto.vue": () => import("./EpVideoPanopto.vue2.js"),
|
|
68
|
+
"./EpWordDef.vue": () => import("./EpWordDef.vue2.js"),
|
|
69
|
+
"../signages/EpAlert.vue": () => import("../signages/EpAlert.vue.js"),
|
|
70
|
+
"../signages/EpBadge.vue": () => import("../signages/EpBadge.vue2.js"),
|
|
71
|
+
"../signages/EpHeader.vue": () => import("../signages/EpHeader.vue2.js"),
|
|
72
|
+
"../signages/EpNothing.vue": () => import("../signages/EpNothing.vue.js"),
|
|
73
|
+
"../signages/EpQuote.vue": () => import("../signages/EpQuote.vue2.js"),
|
|
74
|
+
"../signages/EpSkeleton.vue": () => import("../signages/EpSkeleton.vue3.js")
|
|
75
|
+
}), B = L(() => {
|
|
76
|
+
if (!a.value || !a.value.component)
|
|
77
|
+
return null;
|
|
78
|
+
const { path: e, name: n } = lt(a.value.component.type);
|
|
79
|
+
let r = "";
|
|
80
|
+
e === "medias" ? r = `./${n}.vue` : r = `../${e}/${n}.vue`;
|
|
81
|
+
const i = D[r];
|
|
82
|
+
return i ? Q(i) : (console.warn(`Component not found: ${r}`), null);
|
|
83
|
+
});
|
|
84
|
+
U(() => {
|
|
85
|
+
x.value && (o.isCluster ? X() : R());
|
|
86
|
+
});
|
|
87
|
+
const R = () => {
|
|
88
|
+
const e = { top: 40, left: 40 }, n = I(o.nodes), r = Math.max(o.maxWidth), i = o.maxHeight, l = rt().nodeSize([170, 100])(n), c = m.select(x.value).append("svg").attr("width", r).attr("height", i), p = c.append("g").attr("transform", `translate(${e.left}, ${e.top})`), d = E.zoom().scaleExtent([0.5, 2]).on("zoom", (t) => {
|
|
89
|
+
p.attr("transform", t.transform);
|
|
90
|
+
});
|
|
91
|
+
c.call(d);
|
|
92
|
+
const b = r / 2 - l.x, w = 30, C = E.zoomIdentity;
|
|
93
|
+
c.call(d.transform, C.translate(b, w));
|
|
94
|
+
const $ = st().x((t) => t.x).y((t) => t.y);
|
|
95
|
+
p.selectAll("path.link").data(l.links()).enter().append("path").attr("d", (t) => $(t)).attr("class", (t) => `${t.target.data.active ? `${o.colorPath} stroke-2` : "stroke-black dark:stroke-white"} link fill-none`);
|
|
96
|
+
const u = p.selectAll("g.node").data(l.descendants()).enter().append("g").attr("class", "node").attr("transform", (t) => `translate(${t.x}, ${t.y})`).style(
|
|
97
|
+
"cursor",
|
|
98
|
+
(t) => t.data.component || t.data.text ? "pointer" : "default"
|
|
99
|
+
).each(function(t) {
|
|
100
|
+
(t.data.component || t.data.text) && m.select(this).on("click", (s) => V(t.data));
|
|
101
|
+
});
|
|
102
|
+
u.each(function(t) {
|
|
103
|
+
const s = m.select(this), v = s.append("text").attr("class", "text-sm font-semibold fill-black dark:fill-white").attr("text-anchor", "middle").attr("x", 0).attr("y", 0).attr("dy", ".35em").text(t.data.name).node().getBBox(), _ = 10, S = 10, f = v.width + _ * 2, h = v.height + S * 2;
|
|
104
|
+
s.insert("rect", "text").attr("class", o.colorRect).attr("x", -f / 2).attr("y", -h / 2).attr("width", f).attr("height", h).attr("rx", 4).attr("ry", 4);
|
|
105
|
+
}), u.append("text").attr("x", 0).attr("y", 0).attr("dy", ".35em").attr("class", "text-sm font-semibold fill-white dark:fill-black").attr("text-anchor", "middle").text((t) => t.data.name).style("pointer-events", "none");
|
|
106
|
+
}, X = () => {
|
|
107
|
+
const e = { top: 40, left: 40 }, n = I(o.nodes), r = Math.max(o.maxWidth), i = o.maxHeight, l = nt().nodeSize([130, 130])(n), c = m.select(x.value).append("svg").attr("width", r).attr("height", i), p = c.append("g").attr("transform", `translate(${e.left}, ${e.top})`), d = E.zoom().scaleExtent([0.1, 4]).on("zoom", (t) => {
|
|
108
|
+
p.attr("transform", t.transform);
|
|
109
|
+
});
|
|
110
|
+
c.call(d);
|
|
111
|
+
const b = 30, w = i / 2 - l.x, C = E.zoomIdentity;
|
|
112
|
+
c.call(d.transform, C.translate(b, w));
|
|
113
|
+
const $ = it().x((t) => t.y).y((t) => t.x);
|
|
114
|
+
p.selectAll("path.link").data(l.links()).enter().append("path").attr("d", (t) => $(t)).attr("class", (t) => `${t.target.data.active ? `${o.colorPath} stroke-2` : "stroke-black dark:stroke-white"} link fill-none`);
|
|
115
|
+
const u = p.selectAll("g.node").data(l.descendants()).enter().append("g").attr("class", "node").attr("transform", (t) => `translate(${t.y}, ${t.x})`).style(
|
|
116
|
+
"cursor",
|
|
117
|
+
(t) => t.data.component || t.data.text ? "pointer" : "default"
|
|
118
|
+
).each(function(t) {
|
|
119
|
+
(t.data.component || t.data.text) && m.select(this).on("click", (s) => V(t.data));
|
|
120
|
+
});
|
|
121
|
+
u.each(function(t) {
|
|
122
|
+
const s = m.select(this), v = s.append("text").attr("class", "text-sm font-semibold fill-black dark:fill-white").attr("text-anchor", "middle").attr("x", 0).attr("y", 0).attr("dy", ".35em").text(t.data.name).node().getBBox(), _ = 10, S = 10, f = v.width + _ * 2, h = v.height + S * 2;
|
|
123
|
+
s.insert("rect", "text").attr("class", o.colorRect).attr("x", -f / 2).attr("y", -h / 2).attr("width", f).attr("height", h).attr("rx", 4).attr("ry", 4);
|
|
124
|
+
}), u.append("text").attr("x", 0).attr("y", 0).attr("dy", ".35em").attr("class", "text-sm font-semibold fill-white dark:fill-black").attr("text-anchor", "middle").text((t) => t.data.name).style("pointer-events", "none");
|
|
125
|
+
}, Y = L(() => `${o.maxWidth.toString()}px`), j = L(() => `${o.maxWidth.toString()}px`);
|
|
126
|
+
return (e, n) => (y(), W("div", null, [
|
|
127
|
+
z("div", {
|
|
128
|
+
ref_key: "treeWrapper",
|
|
129
|
+
ref: M,
|
|
130
|
+
class: "tree-wrapper mx-auto",
|
|
131
|
+
style: Z({ maxHeight: j.value, maxWidth: Y.value })
|
|
132
|
+
}, [
|
|
133
|
+
z("div", {
|
|
134
|
+
ref_key: "treeContainer",
|
|
135
|
+
ref: x,
|
|
136
|
+
class: "tree-container"
|
|
137
|
+
}, null, 512)
|
|
138
|
+
], 4),
|
|
139
|
+
a.value ? (y(), P(ct, {
|
|
140
|
+
key: 0,
|
|
141
|
+
modelValue: g.value,
|
|
142
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => g.value = r),
|
|
143
|
+
title: a.value.title
|
|
144
|
+
}, {
|
|
145
|
+
default: A(() => [
|
|
146
|
+
a.value.text ? (y(), W("div", {
|
|
147
|
+
key: 0,
|
|
148
|
+
innerHTML: q(mt)(a.value.text)
|
|
149
|
+
}, null, 8, dt)) : H("", !0),
|
|
150
|
+
B.value && a.value.component ? (y(), P(G(B.value), J(tt({ key: 1 }, { ...a.value.component.data })), null, 16)) : H("", !0),
|
|
151
|
+
z("div", ut, [
|
|
152
|
+
et(pt, {
|
|
153
|
+
onClick: N,
|
|
154
|
+
type: "error",
|
|
155
|
+
outlined: "",
|
|
156
|
+
rounded: ""
|
|
157
|
+
}, {
|
|
158
|
+
default: A(() => [
|
|
159
|
+
ot(at(e.labelClose), 1)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})
|
|
163
|
+
])
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["modelValue", "title"])) : H("", !0)
|
|
167
|
+
]));
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
bt as default
|
|
172
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as p, computed as n, toRefs as h, createBlock as _, openBlock as v, unref as i, createSlots as g, withCtx as s, createElementVNode as l } from "vue";
|
|
2
|
+
import I from "../educationals/EpEdu.vue.js";
|
|
3
|
+
import { isHtml as b } from "../../composables/isHtml.js";
|
|
4
|
+
import { useMarkdown as y } from "../../composables/useMarkdown.js";
|
|
5
|
+
import { mdiApplicationBrackets as L } from "@mdi/js";
|
|
6
|
+
const H = ["innerHTML"], k = ["src", "height"], E = /* @__PURE__ */ p({
|
|
7
|
+
__name: "EpIframe",
|
|
8
|
+
props: {
|
|
9
|
+
src: {},
|
|
10
|
+
big: { type: Boolean, default: !1 },
|
|
11
|
+
title: {},
|
|
12
|
+
intentions: {},
|
|
13
|
+
hideIcon: { type: Boolean, default: !1 },
|
|
14
|
+
type: { default: "neutral" },
|
|
15
|
+
mandateLevel: {},
|
|
16
|
+
customHeight: {},
|
|
17
|
+
labelIntentions: {}
|
|
18
|
+
},
|
|
19
|
+
setup(a) {
|
|
20
|
+
const e = a, o = n(() => e.intentions ? b(e.intentions) ? e.intentions : y(e.intentions) : null), c = n(() => e.customHeight ? e.customHeight : e.big ? "1000" : "520"), u = n(() => {
|
|
21
|
+
let t = e.src[e.src.length - 1], r = /^\d+$/.test(t), f = e.src.includes("https://studium.umontreal.ca");
|
|
22
|
+
return r && f ? e.src + "&embed=1" : e.src;
|
|
23
|
+
}), { title: m, hideIcon: d } = h(e);
|
|
24
|
+
return (t, r) => (v(), _(I, {
|
|
25
|
+
title: i(m),
|
|
26
|
+
labelIntentions: t.labelIntentions,
|
|
27
|
+
type: t.type,
|
|
28
|
+
hideIcon: i(d),
|
|
29
|
+
icon: i(L),
|
|
30
|
+
mandateLevel: t.mandateLevel
|
|
31
|
+
}, g({
|
|
32
|
+
content: s(() => [
|
|
33
|
+
l("iframe", {
|
|
34
|
+
src: u.value,
|
|
35
|
+
class: "w-full",
|
|
36
|
+
height: c.value
|
|
37
|
+
}, null, 8, k)
|
|
38
|
+
]),
|
|
39
|
+
_: 2
|
|
40
|
+
}, [
|
|
41
|
+
o.value ? {
|
|
42
|
+
name: "intentions",
|
|
43
|
+
fn: s(() => [
|
|
44
|
+
l("div", { innerHTML: o.value }, null, 8, H)
|
|
45
|
+
]),
|
|
46
|
+
key: "0"
|
|
47
|
+
} : void 0
|
|
48
|
+
]), 1032, ["title", "labelIntentions", "type", "hideIcon", "icon", "mandateLevel"]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
E as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as c, ref as f, onMounted as p, computed as m, toRefs as u, createBlock as d, openBlock as h, unref as i, createSlots as y, withCtx as l, createElementVNode as o, normalizeClass as v } from "vue";
|
|
2
|
+
import I from "katex";
|
|
3
|
+
import _ from "../educationals/EpEdu.vue.js";
|
|
4
|
+
import { mdiFunctionVariant as k } from "@mdi/js";
|
|
5
|
+
import { isHtml as x } from "../../composables/isHtml.js";
|
|
6
|
+
import { useMarkdown as b } from "../../composables/useMarkdown.js";
|
|
7
|
+
const w = ["innerHTML"], $ = /* @__PURE__ */ c({
|
|
8
|
+
__name: "EpKatex",
|
|
9
|
+
props: {
|
|
10
|
+
content: {},
|
|
11
|
+
center: { type: Boolean, default: !1 },
|
|
12
|
+
title: {},
|
|
13
|
+
intentions: {},
|
|
14
|
+
hideIcon: { type: Boolean },
|
|
15
|
+
type: {},
|
|
16
|
+
labelIntentions: {}
|
|
17
|
+
},
|
|
18
|
+
setup(a) {
|
|
19
|
+
const e = a, t = f();
|
|
20
|
+
p(() => {
|
|
21
|
+
t.value && I.render(String.raw`${e.content}`, t.value, {
|
|
22
|
+
throwOnError: !1,
|
|
23
|
+
output: "html"
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const r = m(() => e.intentions ? x(e.intentions) ? e.intentions : b(e.intentions) : null), { center: s } = u(e);
|
|
27
|
+
return (n, B) => (h(), d(_, {
|
|
28
|
+
title: n.title,
|
|
29
|
+
type: n.type,
|
|
30
|
+
hideIcon: n.hideIcon,
|
|
31
|
+
icon: i(k),
|
|
32
|
+
labelIntentions: n.labelIntentions
|
|
33
|
+
}, y({
|
|
34
|
+
content: l(() => [
|
|
35
|
+
o("div", {
|
|
36
|
+
class: v(`p-4 ${i(s) ? "flex justify-center" : ""}`)
|
|
37
|
+
}, [
|
|
38
|
+
o("div", {
|
|
39
|
+
ref_key: "renderKatex",
|
|
40
|
+
ref: t
|
|
41
|
+
}, null, 512)
|
|
42
|
+
], 2)
|
|
43
|
+
]),
|
|
44
|
+
_: 2
|
|
45
|
+
}, [
|
|
46
|
+
r.value ? {
|
|
47
|
+
name: "intentions",
|
|
48
|
+
fn: l(() => [
|
|
49
|
+
o("div", { innerHTML: r.value }, null, 8, w)
|
|
50
|
+
]),
|
|
51
|
+
key: "0"
|
|
52
|
+
} : void 0
|
|
53
|
+
]), 1032, ["title", "type", "hideIcon", "icon", "labelIntentions"]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
$ as default
|
|
58
|
+
};
|