ep-lib-ts 1.0.59 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -6
- package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/dist/_virtual/dynamic-import-helper.js +7 -5
- package/dist/_virtual/dynamic-import-helper.js.map +1 -0
- package/dist/assets/ep-lib-ts.css +235 -0
- package/dist/components/basics/EpAvatar.vue.js +45 -19
- package/dist/components/basics/EpAvatar.vue.js.map +1 -0
- package/dist/components/basics/EpAvatar.vue2.js +3 -2
- package/dist/components/basics/EpAvatar.vue2.js.map +1 -0
- package/dist/components/basics/EpBadge.vue.js +3 -2
- package/dist/components/basics/EpBadge.vue.js.map +1 -0
- package/dist/components/basics/EpBadge.vue2.js +21 -12
- package/dist/components/basics/EpBadge.vue2.js.map +1 -0
- package/dist/components/basics/EpBtn.vue.js +81 -55
- package/dist/components/basics/EpBtn.vue.js.map +1 -0
- package/dist/components/basics/EpBtn.vue2.js +3 -2
- package/dist/components/basics/EpBtn.vue2.js.map +1 -0
- package/dist/components/basics/EpCard.vue.js +107 -56
- package/dist/components/basics/EpCard.vue.js.map +1 -0
- package/dist/components/basics/EpCard.vue2.js +3 -2
- package/dist/components/basics/EpCard.vue2.js.map +1 -0
- package/dist/components/basics/EpChip.vue.js +55 -34
- package/dist/components/basics/EpChip.vue.js.map +1 -0
- package/dist/components/basics/EpChip.vue2.js +3 -2
- package/dist/components/basics/EpChip.vue2.js.map +1 -0
- package/dist/components/basics/EpDivider.vue.js +22 -10
- package/dist/components/basics/EpDivider.vue.js.map +1 -0
- package/dist/components/basics/EpDivider.vue2.js +3 -2
- package/dist/components/basics/EpDivider.vue2.js.map +1 -0
- package/dist/components/basics/EpFlex.vue.js +11 -7
- package/dist/components/basics/EpFlex.vue.js.map +1 -0
- package/dist/components/basics/EpFlex.vue2.js +3 -2
- package/dist/components/basics/EpFlex.vue2.js.map +1 -0
- package/dist/components/basics/EpHover.vue.js +38 -23
- package/dist/components/basics/EpHover.vue.js.map +1 -0
- package/dist/components/basics/EpHover.vue2.js +3 -2
- package/dist/components/basics/EpHover.vue2.js.map +1 -0
- package/dist/components/basics/EpHoverCard.vue.js +104 -60
- package/dist/components/basics/EpHoverCard.vue.js.map +1 -0
- package/dist/components/basics/EpHoverCard.vue2.js +3 -2
- package/dist/components/basics/EpHoverCard.vue2.js.map +1 -0
- package/dist/components/basics/EpIcon.vue.js +21 -15
- package/dist/components/basics/EpIcon.vue.js.map +1 -0
- package/dist/components/basics/EpIcon.vue2.js +3 -2
- package/dist/components/basics/EpIcon.vue2.js.map +1 -0
- package/dist/components/basics/EpImg.vue.js +184 -141
- package/dist/components/basics/EpImg.vue.js.map +1 -0
- package/dist/components/basics/EpImg.vue2.js +3 -2
- package/dist/components/basics/EpImg.vue2.js.map +1 -0
- package/dist/components/basics/EpImgCarousel.vue.js +135 -97
- package/dist/components/basics/EpImgCarousel.vue.js.map +1 -0
- package/dist/components/basics/EpImgCarousel.vue2.js +3 -2
- package/dist/components/basics/EpImgCarousel.vue2.js.map +1 -0
- package/dist/components/basics/EpList.vue.js +10 -8
- package/dist/components/basics/EpList.vue.js.map +1 -0
- package/dist/components/basics/EpListItem.vue.js +43 -22
- package/dist/components/basics/EpListItem.vue.js.map +1 -0
- package/dist/components/basics/EpListItem.vue2.js +3 -2
- package/dist/components/basics/EpListItem.vue2.js.map +1 -0
- package/dist/components/basics/EpSection.vue.js +75 -52
- package/dist/components/basics/EpSection.vue.js.map +1 -0
- package/dist/components/basics/EpSection.vue2.js +3 -2
- package/dist/components/basics/EpSection.vue2.js.map +1 -0
- package/dist/components/basics/EpSectionCols.vue.js +92 -67
- package/dist/components/basics/EpSectionCols.vue.js.map +1 -0
- package/dist/components/basics/EpSectionCols.vue2.js +3 -2
- package/dist/components/basics/EpSectionCols.vue2.js.map +1 -0
- package/dist/components/basics/EpSpinner.vue.js +120 -109
- package/dist/components/basics/EpSpinner.vue.js.map +1 -0
- package/dist/components/basics/EpSpinner.vue2.js +3 -2
- package/dist/components/basics/EpSpinner.vue2.js.map +1 -0
- package/dist/components/basics/EpStackedList.vue.js +71 -56
- package/dist/components/basics/EpStackedList.vue.js.map +1 -0
- package/dist/components/basics/EpStackedList.vue2.js +3 -2
- package/dist/components/basics/EpStackedList.vue2.js.map +1 -0
- package/dist/components/basics/EpTable.vue.js +49 -35
- package/dist/components/basics/EpTable.vue.js.map +1 -0
- package/dist/components/basics/EpTable.vue2.js +3 -2
- package/dist/components/basics/EpTable.vue2.js.map +1 -0
- package/dist/components/basics/EpText.vue.js +102 -76
- package/dist/components/basics/EpText.vue.js.map +1 -0
- package/dist/components/basics/EpText.vue2.js +3 -2
- package/dist/components/basics/EpText.vue2.js.map +1 -0
- package/dist/components/charts/EpBarChart.vue.js +78 -59
- package/dist/components/charts/EpBarChart.vue.js.map +1 -0
- package/dist/components/charts/EpBarChart.vue2.js +3 -2
- package/dist/components/charts/EpBarChart.vue2.js.map +1 -0
- package/dist/components/charts/EpFunnelChart.vue.js +103 -82
- package/dist/components/charts/EpFunnelChart.vue.js.map +1 -0
- package/dist/components/charts/EpFunnelChart.vue2.js +3 -2
- package/dist/components/charts/EpFunnelChart.vue2.js.map +1 -0
- package/dist/components/charts/EpLineChart.vue.js +91 -72
- package/dist/components/charts/EpLineChart.vue.js.map +1 -0
- package/dist/components/charts/EpLineChart.vue2.js +3 -2
- package/dist/components/charts/EpLineChart.vue2.js.map +1 -0
- package/dist/components/charts/EpPieChart.vue.js +75 -56
- package/dist/components/charts/EpPieChart.vue.js.map +1 -0
- package/dist/components/charts/EpPieChart.vue2.js +3 -2
- package/dist/components/charts/EpPieChart.vue2.js.map +1 -0
- package/dist/components/educationals/EpBranchingScenario.vue.js +5 -4
- package/dist/components/educationals/EpBranchingScenario.vue.js.map +1 -0
- package/dist/components/educationals/EpBranchingScenario.vue2.js +232 -178
- package/dist/components/educationals/EpBranchingScenario.vue2.js.map +1 -0
- package/dist/components/educationals/EpCodeblock.vue.js +54 -33
- package/dist/components/educationals/EpCodeblock.vue.js.map +1 -0
- package/dist/components/educationals/EpCodeblock.vue3.js +3 -2
- package/dist/components/educationals/EpCodeblock.vue3.js.map +1 -0
- package/dist/components/educationals/EpConclusion.vue.js +37 -26
- package/dist/components/educationals/EpConclusion.vue.js.map +1 -0
- package/dist/components/educationals/EpConclusion.vue2.js +3 -2
- package/dist/components/educationals/EpConclusion.vue2.js.map +1 -0
- package/dist/components/educationals/EpDescription.vue.js +37 -26
- package/dist/components/educationals/EpDescription.vue.js.map +1 -0
- package/dist/components/educationals/EpDescription.vue2.js +3 -2
- package/dist/components/educationals/EpDescription.vue2.js.map +1 -0
- package/dist/components/educationals/EpDocument.vue.js +94 -69
- package/dist/components/educationals/EpDocument.vue.js.map +1 -0
- package/dist/components/educationals/EpDocument.vue2.js +3 -2
- package/dist/components/educationals/EpDocument.vue2.js.map +1 -0
- package/dist/components/educationals/EpEdu.vue.js +100 -61
- package/dist/components/educationals/EpEdu.vue.js.map +1 -0
- package/dist/components/educationals/EpEdu.vue2.js +3 -2
- package/dist/components/educationals/EpEdu.vue2.js.map +1 -0
- package/dist/components/educationals/EpInstructions.vue.js +49 -37
- package/dist/components/educationals/EpInstructions.vue.js.map +1 -0
- package/dist/components/educationals/EpInstructions.vue2.js +3 -2
- package/dist/components/educationals/EpInstructions.vue2.js.map +1 -0
- package/dist/components/educationals/EpIntroduction.vue.js +35 -25
- package/dist/components/educationals/EpIntroduction.vue.js.map +1 -0
- package/dist/components/educationals/EpIntroduction.vue2.js +3 -2
- package/dist/components/educationals/EpIntroduction.vue2.js.map +1 -0
- package/dist/components/educationals/EpObjective.vue.js +22 -15
- package/dist/components/educationals/EpObjective.vue.js.map +1 -0
- package/dist/components/educationals/EpObjective.vue2.js +3 -2
- package/dist/components/educationals/EpObjective.vue2.js.map +1 -0
- package/dist/components/educationals/EpReading.vue.js +313 -248
- package/dist/components/educationals/EpReading.vue.js.map +1 -0
- package/dist/components/educationals/EpReading.vue2.js +3 -2
- package/dist/components/educationals/EpReading.vue2.js.map +1 -0
- package/dist/components/educationals/EpResource.vue.js +56 -20
- package/dist/components/educationals/EpResource.vue.js.map +1 -0
- package/dist/components/educationals/EpResource.vue2.js +3 -2
- package/dist/components/educationals/EpResource.vue2.js.map +1 -0
- package/dist/components/educationals/EpScope.vue.js +26 -17
- package/dist/components/educationals/EpScope.vue.js.map +1 -0
- package/dist/components/educationals/EpScope.vue2.js +3 -2
- package/dist/components/educationals/EpScope.vue2.js.map +1 -0
- package/dist/components/educationals/EpSpecificObjective.vue.js +30 -22
- package/dist/components/educationals/EpSpecificObjective.vue.js.map +1 -0
- package/dist/components/educationals/EpSpecificObjective.vue2.js +3 -2
- package/dist/components/educationals/EpSpecificObjective.vue2.js.map +1 -0
- package/dist/components/forms/EpCheckbox.vue.js +3 -2
- package/dist/components/forms/EpCheckbox.vue.js.map +1 -0
- package/dist/components/forms/EpCheckbox.vue2.js +35 -26
- package/dist/components/forms/EpCheckbox.vue2.js.map +1 -0
- package/dist/components/forms/EpInput.vue.js +3 -2
- package/dist/components/forms/EpInput.vue.js.map +1 -0
- package/dist/components/forms/EpInput.vue2.js +62 -44
- package/dist/components/forms/EpInput.vue2.js.map +1 -0
- package/dist/components/forms/EpRadio.vue.js +3 -2
- package/dist/components/forms/EpRadio.vue.js.map +1 -0
- package/dist/components/forms/EpRadio.vue2.js +48 -27
- package/dist/components/forms/EpRadio.vue2.js.map +1 -0
- package/dist/components/forms/EpRadioSummative.vue.js +3 -2
- package/dist/components/forms/EpRadioSummative.vue.js.map +1 -0
- package/dist/components/forms/EpRadioSummative.vue2.js +36 -23
- package/dist/components/forms/EpRadioSummative.vue2.js.map +1 -0
- package/dist/components/forms/EpSelect.vue.js +3 -2
- package/dist/components/forms/EpSelect.vue.js.map +1 -0
- package/dist/components/forms/EpSelect.vue2.js +30 -22
- package/dist/components/forms/EpSelect.vue2.js.map +1 -0
- package/dist/components/forms/EpSwitch.vue.js +3 -2
- package/dist/components/forms/EpSwitch.vue.js.map +1 -0
- package/dist/components/forms/EpSwitch.vue2.js +47 -35
- package/dist/components/forms/EpSwitch.vue2.js.map +1 -0
- package/dist/components/forms/EpTextarea.vue.js +3 -2
- package/dist/components/forms/EpTextarea.vue.js.map +1 -0
- package/dist/components/forms/EpTextarea.vue2.js +30 -20
- package/dist/components/forms/EpTextarea.vue2.js.map +1 -0
- package/dist/components/forms/EpToggle.vue.js +3 -2
- package/dist/components/forms/EpToggle.vue.js.map +1 -0
- package/dist/components/forms/EpToggle.vue2.js +33 -25
- package/dist/components/forms/EpToggle.vue2.js.map +1 -0
- package/dist/components/interactions/Ep360Image.vue.js +3 -2
- package/dist/components/interactions/Ep360Image.vue.js.map +1 -0
- package/dist/components/interactions/Ep360Image.vue2.js +8 -5
- package/dist/components/interactions/Ep360Image.vue2.js.map +1 -0
- package/dist/components/interactions/Ep360Video.vue.js +3 -2
- package/dist/components/interactions/Ep360Video.vue.js.map +1 -0
- package/dist/components/interactions/Ep360Video.vue2.js +8 -5
- package/dist/components/interactions/Ep360Video.vue2.js.map +1 -0
- package/dist/components/interactions/EpAccordeon.vue.js +5 -4
- package/dist/components/interactions/EpAccordeon.vue.js.map +1 -0
- package/dist/components/interactions/EpAccordeon.vue2.js +88 -60
- package/dist/components/interactions/EpAccordeon.vue2.js.map +1 -0
- package/dist/components/interactions/EpContentSlider.vue.js +208 -156
- package/dist/components/interactions/EpContentSlider.vue.js.map +1 -0
- package/dist/components/interactions/EpContentSlider.vue2.js +3 -2
- package/dist/components/interactions/EpContentSlider.vue2.js.map +1 -0
- package/dist/components/interactions/EpDarkMode.vue.js +54 -37
- package/dist/components/interactions/EpDarkMode.vue.js.map +1 -0
- package/dist/components/interactions/EpDarkMode.vue2.js +3 -2
- package/dist/components/interactions/EpDarkMode.vue2.js.map +1 -0
- package/dist/components/interactions/EpDraggable.vue.js +171 -119
- package/dist/components/interactions/EpDraggable.vue.js.map +1 -0
- package/dist/components/interactions/EpDraggable.vue2.js +3 -2
- package/dist/components/interactions/EpDraggable.vue2.js.map +1 -0
- package/dist/components/interactions/EpHotSpot.vue.js +78 -45
- package/dist/components/interactions/EpHotSpot.vue.js.map +1 -0
- package/dist/components/interactions/EpHotSpot.vue2.js +3 -2
- package/dist/components/interactions/EpHotSpot.vue2.js.map +1 -0
- package/dist/components/interactions/EpModal.vue.js +51 -39
- package/dist/components/interactions/EpModal.vue.js.map +1 -0
- package/dist/components/interactions/EpModal.vue3.js +3 -2
- package/dist/components/interactions/EpModal.vue3.js.map +1 -0
- package/dist/components/interactions/EpQuestion.vue.js +181 -134
- package/dist/components/interactions/EpQuestion.vue.js.map +1 -0
- package/dist/components/interactions/EpQuestion.vue2.js +3 -2
- package/dist/components/interactions/EpQuestion.vue2.js.map +1 -0
- package/dist/components/interactions/EpSummativeTable.vue.js +57 -36
- package/dist/components/interactions/EpSummativeTable.vue.js.map +1 -0
- package/dist/components/interactions/EpSummativeTable.vue2.js +3 -2
- package/dist/components/interactions/EpSummativeTable.vue2.js.map +1 -0
- package/dist/components/interactions/EpSvgShow.vue.js +64 -42
- package/dist/components/interactions/EpSvgShow.vue.js.map +1 -0
- package/dist/components/interactions/EpSvgShow.vue2.js +3 -2
- package/dist/components/interactions/EpSvgShow.vue2.js.map +1 -0
- package/dist/components/interactions/EpTabs.vue.js +10 -8
- package/dist/components/interactions/EpTabs.vue.js.map +1 -0
- package/dist/components/interactions/EpTooltip.vue.js +38 -12
- package/dist/components/interactions/EpTooltip.vue.js.map +1 -0
- package/dist/components/interactions/EpTooltip.vue3.js +3 -2
- package/dist/components/interactions/EpTooltip.vue3.js.map +1 -0
- package/dist/components/medias/EpAudio.vue.js +92 -60
- package/dist/components/medias/EpAudio.vue.js.map +1 -0
- package/dist/components/medias/EpAudio.vue2.js +3 -2
- package/dist/components/medias/EpAudio.vue2.js.map +1 -0
- package/dist/components/medias/EpCardLink.vue.js +60 -46
- package/dist/components/medias/EpCardLink.vue.js.map +1 -0
- package/dist/components/medias/EpCardLink.vue2.js +3 -2
- package/dist/components/medias/EpCardLink.vue2.js.map +1 -0
- package/dist/components/medias/EpCarousel.vue.js +5 -4
- package/dist/components/medias/EpCarousel.vue.js.map +1 -0
- package/dist/components/medias/EpCarousel.vue2.js +168 -130
- package/dist/components/medias/EpCarousel.vue2.js.map +1 -0
- package/dist/components/medias/EpHierarchy.vue.js +5 -4
- package/dist/components/medias/EpHierarchy.vue.js.map +1 -0
- package/dist/components/medias/EpHierarchy.vue2.js +186 -106
- package/dist/components/medias/EpHierarchy.vue2.js.map +1 -0
- package/dist/components/medias/EpIframe.vue.js +65 -38
- package/dist/components/medias/EpIframe.vue.js.map +1 -0
- package/dist/components/medias/EpIframe.vue2.js +3 -2
- package/dist/components/medias/EpIframe.vue2.js.map +1 -0
- package/dist/components/medias/EpKatex.vue.js +5 -4
- package/dist/components/medias/EpKatex.vue.js.map +1 -0
- package/dist/components/medias/EpKatex.vue2.js +59 -43
- package/dist/components/medias/EpKatex.vue2.js.map +1 -0
- package/dist/components/medias/EpLink.vue.js +73 -56
- package/dist/components/medias/EpLink.vue.js.map +1 -0
- package/dist/components/medias/EpLink.vue2.js +3 -2
- package/dist/components/medias/EpLink.vue2.js.map +1 -0
- package/dist/components/medias/EpLinkVersion.vue.js +33 -24
- package/dist/components/medias/EpLinkVersion.vue.js.map +1 -0
- package/dist/components/medias/EpLinkVersion.vue2.js +3 -2
- package/dist/components/medias/EpLinkVersion.vue2.js.map +1 -0
- package/dist/components/medias/EpLottieSvg.vue.js +54 -34
- package/dist/components/medias/EpLottieSvg.vue.js.map +1 -0
- package/dist/components/medias/EpLottieSvg.vue2.js +3 -2
- package/dist/components/medias/EpLottieSvg.vue2.js.map +1 -0
- package/dist/components/medias/EpSensibleImage.vue.js +5 -4
- package/dist/components/medias/EpSensibleImage.vue.js.map +1 -0
- package/dist/components/medias/EpSensibleImage.vue2.js +67 -50
- package/dist/components/medias/EpSensibleImage.vue2.js.map +1 -0
- package/dist/components/medias/EpSoftware.vue.js +104 -86
- package/dist/components/medias/EpSoftware.vue.js.map +1 -0
- package/dist/components/medias/EpSoftware.vue2.js +3 -2
- package/dist/components/medias/EpSoftware.vue2.js.map +1 -0
- package/dist/components/medias/EpSvg.vue.js +56 -40
- package/dist/components/medias/EpSvg.vue.js.map +1 -0
- package/dist/components/medias/EpSvg.vue2.js +3 -2
- package/dist/components/medias/EpSvg.vue2.js.map +1 -0
- package/dist/components/medias/EpTerm.vue.js +163 -111
- package/dist/components/medias/EpTerm.vue.js.map +1 -0
- package/dist/components/medias/EpTerm.vue2.js +3 -2
- package/dist/components/medias/EpTerm.vue2.js.map +1 -0
- package/dist/components/medias/EpTimeLine.vue.js +89 -52
- package/dist/components/medias/EpTimeLine.vue.js.map +1 -0
- package/dist/components/medias/EpTimeLine.vue3.js +3 -2
- package/dist/components/medias/EpTimeLine.vue3.js.map +1 -0
- package/dist/components/medias/EpVideo.vue.js +97 -63
- package/dist/components/medias/EpVideo.vue.js.map +1 -0
- package/dist/components/medias/EpVideo.vue2.js +3 -2
- package/dist/components/medias/EpVideo.vue2.js.map +1 -0
- package/dist/components/medias/EpVideoPanopto.vue.js +61 -40
- package/dist/components/medias/EpVideoPanopto.vue.js.map +1 -0
- package/dist/components/medias/EpVideoPanopto.vue2.js +3 -2
- package/dist/components/medias/EpVideoPanopto.vue2.js.map +1 -0
- package/dist/components/medias/EpWordDef.vue.js +123 -73
- package/dist/components/medias/EpWordDef.vue.js.map +1 -0
- package/dist/components/medias/EpWordDef.vue2.js +3 -2
- package/dist/components/medias/EpWordDef.vue2.js.map +1 -0
- package/dist/components/signages/EpAlert.vue.js +5 -4
- package/dist/components/signages/EpAlert.vue.js.map +1 -0
- package/dist/components/signages/EpAlert.vue2.js +87 -51
- package/dist/components/signages/EpAlert.vue2.js.map +1 -0
- package/dist/components/signages/EpBadge.vue.js +44 -17
- package/dist/components/signages/EpBadge.vue.js.map +1 -0
- package/dist/components/signages/EpBadge.vue2.js +3 -2
- package/dist/components/signages/EpBadge.vue2.js.map +1 -0
- package/dist/components/signages/EpHeader.vue.js +179 -143
- package/dist/components/signages/EpHeader.vue.js.map +1 -0
- package/dist/components/signages/EpHeader.vue2.js +3 -2
- package/dist/components/signages/EpHeader.vue2.js.map +1 -0
- package/dist/components/signages/EpNothing.vue.js +8 -7
- package/dist/components/signages/EpNothing.vue.js.map +1 -0
- package/dist/components/signages/EpQuote.vue.js +83 -61
- package/dist/components/signages/EpQuote.vue.js.map +1 -0
- package/dist/components/signages/EpQuote.vue2.js +3 -2
- package/dist/components/signages/EpQuote.vue2.js.map +1 -0
- package/dist/components/signages/EpSkeleton.vue.js +31 -22
- package/dist/components/signages/EpSkeleton.vue.js.map +1 -0
- package/dist/components/signages/EpSkeleton.vue3.js +3 -2
- package/dist/components/signages/EpSkeleton.vue3.js.map +1 -0
- package/dist/components/tools/BgAudio.vue.js +3 -2
- package/dist/components/tools/BgAudio.vue.js.map +1 -0
- package/dist/components/tools/BgAudio.vue2.js +39 -42
- package/dist/components/tools/BgAudio.vue2.js.map +1 -0
- package/dist/components/tools/Details.vue.js +3 -2
- package/dist/components/tools/Details.vue.js.map +1 -0
- package/dist/components/tools/Details.vue2.js +48 -43
- package/dist/components/tools/Details.vue2.js.map +1 -0
- package/dist/components/tools/DisplayBox.vue.js +41 -3
- package/dist/components/tools/DisplayBox.vue.js.map +1 -0
- package/dist/components/tools/DisplayBox.vue3.js +6 -0
- package/dist/components/tools/DisplayBox.vue3.js.map +1 -0
- package/dist/components/tools/SvgFilter.vue.js +10 -47
- package/dist/components/tools/SvgFilter.vue.js.map +1 -0
- package/dist/components/tools/TextMedia.vue.js +3 -2
- package/dist/components/tools/TextMedia.vue.js.map +1 -0
- package/dist/components/tools/TextMedia.vue2.js +37 -25
- package/dist/components/tools/TextMedia.vue2.js.map +1 -0
- package/dist/components/tools/TimelineItem.vue.js +5 -4
- package/dist/components/tools/TimelineItem.vue.js.map +1 -0
- package/dist/components/tools/TimelineItem.vue2.js +136 -84
- package/dist/components/tools/TimelineItem.vue2.js.map +1 -0
- package/dist/components/tools/TwoColsMedia.vue.js +3 -2
- package/dist/components/tools/TwoColsMedia.vue.js.map +1 -0
- package/dist/components/tools/TwoColsMedia.vue2.js +39 -29
- package/dist/components/tools/TwoColsMedia.vue2.js.map +1 -0
- package/dist/composables/isHtml.js +5 -3
- package/dist/composables/isHtml.js.map +1 -0
- package/dist/composables/useColors.js +131 -129
- package/dist/composables/useColors.js.map +1 -0
- package/dist/composables/useComponent.js +34 -7
- package/dist/composables/useComponent.js.map +1 -0
- package/dist/composables/useCreateUid.js +6 -4
- package/dist/composables/useCreateUid.js.map +1 -0
- package/dist/composables/useIcons.js +12 -11
- package/dist/composables/useIcons.js.map +1 -0
- package/dist/composables/useMarkdown.js +9 -8
- package/dist/composables/useMarkdown.js.map +1 -0
- package/dist/composables/useRenderText.js +9 -5
- package/dist/composables/useRenderText.js.map +1 -0
- package/dist/entry/basics/EpBtn.d.ts +5 -0
- package/dist/entry/basics/EpBtn.js +5 -0
- package/dist/entry/basics/EpBtn.js.map +1 -0
- package/dist/entry/basics/EpCard.d.ts +5 -0
- package/dist/entry/basics/EpCard.js +5 -0
- package/dist/entry/basics/EpCard.js.map +1 -0
- package/dist/entry/basics/EpChip.d.ts +5 -0
- package/dist/entry/basics/EpChip.js +5 -0
- package/dist/entry/basics/EpChip.js.map +1 -0
- package/dist/entry/basics/EpDivider.d.ts +5 -0
- package/dist/entry/basics/EpDivider.js +5 -0
- package/dist/entry/basics/EpDivider.js.map +1 -0
- package/dist/entry/basics/EpFlex.d.ts +5 -0
- package/dist/entry/basics/EpFlex.js +5 -0
- package/dist/entry/basics/EpFlex.js.map +1 -0
- package/dist/entry/basics/EpHover.d.ts +5 -0
- package/dist/entry/basics/EpHover.js +5 -0
- package/dist/entry/basics/EpHover.js.map +1 -0
- package/dist/entry/basics/EpHoverCard.d.ts +5 -0
- package/dist/entry/basics/EpHoverCard.js +5 -0
- package/dist/entry/basics/EpHoverCard.js.map +1 -0
- package/dist/entry/basics/EpIcon.d.ts +5 -0
- package/dist/entry/basics/EpIcon.js +5 -0
- package/dist/entry/basics/EpIcon.js.map +1 -0
- package/dist/entry/basics/EpImg.d.ts +5 -0
- package/dist/entry/basics/EpImg.js +5 -0
- package/dist/entry/basics/EpImg.js.map +1 -0
- package/dist/entry/basics/EpImgCarousel.d.ts +5 -0
- package/dist/entry/basics/EpImgCarousel.js +5 -0
- package/dist/entry/basics/EpImgCarousel.js.map +1 -0
- package/dist/entry/basics/EpList.d.ts +5 -0
- package/dist/entry/basics/EpList.js +5 -0
- package/dist/entry/basics/EpList.js.map +1 -0
- package/dist/entry/basics/EpListItem.d.ts +5 -0
- package/dist/entry/basics/EpListItem.js +5 -0
- package/dist/entry/basics/EpListItem.js.map +1 -0
- package/dist/entry/basics/EpSection.d.ts +5 -0
- package/dist/entry/basics/EpSection.js +5 -0
- package/dist/entry/basics/EpSection.js.map +1 -0
- package/dist/entry/basics/EpSectionCols.d.ts +5 -0
- package/dist/entry/basics/EpSectionCols.js +5 -0
- package/dist/entry/basics/EpSectionCols.js.map +1 -0
- package/dist/entry/basics/EpSpinner.d.ts +5 -0
- package/dist/entry/basics/EpSpinner.js +5 -0
- package/dist/entry/basics/EpSpinner.js.map +1 -0
- package/dist/entry/basics/EpStackedList.d.ts +5 -0
- package/dist/entry/basics/EpStackedList.js +5 -0
- package/dist/entry/basics/EpStackedList.js.map +1 -0
- package/dist/entry/basics/EpTable.d.ts +5 -0
- package/dist/entry/basics/EpTable.js +5 -0
- package/dist/entry/basics/EpTable.js.map +1 -0
- package/dist/entry/basics/EpText.d.ts +5 -0
- package/dist/entry/basics/EpText.js +5 -0
- package/dist/entry/basics/EpText.js.map +1 -0
- package/dist/entry/charts/EpBarChart.d.ts +5 -0
- package/dist/entry/charts/EpBarChart.js +5 -0
- package/dist/entry/charts/EpBarChart.js.map +1 -0
- package/dist/entry/charts/EpFunnelChart.d.ts +5 -0
- package/dist/entry/charts/EpFunnelChart.js +5 -0
- package/dist/entry/charts/EpFunnelChart.js.map +1 -0
- package/dist/entry/charts/EpLineChart.d.ts +5 -0
- package/dist/entry/charts/EpLineChart.js +5 -0
- package/dist/entry/charts/EpLineChart.js.map +1 -0
- package/dist/entry/charts/EpPieChart.d.ts +5 -0
- package/dist/entry/charts/EpPieChart.js +5 -0
- package/dist/entry/charts/EpPieChart.js.map +1 -0
- package/dist/entry/educationals/EpBranchingScenario.d.ts +5 -0
- package/dist/entry/educationals/EpBranchingScenario.js +5 -0
- package/dist/entry/educationals/EpBranchingScenario.js.map +1 -0
- package/dist/entry/educationals/EpCodeblock.d.ts +5 -0
- package/dist/entry/educationals/EpCodeblock.js +6 -0
- package/dist/entry/educationals/EpCodeblock.js.map +1 -0
- package/dist/entry/educationals/EpConclusion.d.ts +5 -0
- package/dist/entry/educationals/EpConclusion.js +5 -0
- package/dist/entry/educationals/EpConclusion.js.map +1 -0
- package/dist/entry/educationals/EpDescription.d.ts +5 -0
- package/dist/entry/educationals/EpDescription.js +5 -0
- package/dist/entry/educationals/EpDescription.js.map +1 -0
- package/dist/entry/educationals/EpDocument.d.ts +5 -0
- package/dist/entry/educationals/EpDocument.js +5 -0
- package/dist/entry/educationals/EpDocument.js.map +1 -0
- package/dist/entry/educationals/EpEdu.d.ts +5 -0
- package/dist/entry/educationals/EpEdu.js +5 -0
- package/dist/entry/educationals/EpEdu.js.map +1 -0
- package/dist/entry/educationals/EpInstructions.d.ts +5 -0
- package/dist/entry/educationals/EpInstructions.js +5 -0
- package/dist/entry/educationals/EpInstructions.js.map +1 -0
- package/dist/entry/educationals/EpIntroduction.d.ts +5 -0
- package/dist/entry/educationals/EpIntroduction.js +5 -0
- package/dist/entry/educationals/EpIntroduction.js.map +1 -0
- package/dist/entry/educationals/EpObjective.d.ts +5 -0
- package/dist/entry/educationals/EpObjective.js +5 -0
- package/dist/entry/educationals/EpObjective.js.map +1 -0
- package/dist/entry/educationals/EpReading.d.ts +5 -0
- package/dist/entry/educationals/EpReading.js +5 -0
- package/dist/entry/educationals/EpReading.js.map +1 -0
- package/dist/entry/educationals/EpResource.d.ts +5 -0
- package/dist/entry/educationals/EpResource.js +5 -0
- package/dist/entry/educationals/EpResource.js.map +1 -0
- package/dist/entry/educationals/EpScope.d.ts +5 -0
- package/dist/entry/educationals/EpScope.js +5 -0
- package/dist/entry/educationals/EpScope.js.map +1 -0
- package/dist/entry/educationals/EpSpecificObjective.d.ts +5 -0
- package/dist/entry/educationals/EpSpecificObjective.js +5 -0
- package/dist/entry/educationals/EpSpecificObjective.js.map +1 -0
- package/dist/entry/interactions/EpAccordeon.d.ts +5 -0
- package/dist/entry/interactions/EpAccordeon.js +5 -0
- package/dist/entry/interactions/EpAccordeon.js.map +1 -0
- package/dist/entry/interactions/EpContentSlider.d.ts +5 -0
- package/dist/entry/interactions/EpContentSlider.js +5 -0
- package/dist/entry/interactions/EpContentSlider.js.map +1 -0
- package/dist/entry/interactions/EpDarkMode.d.ts +5 -0
- package/dist/entry/interactions/EpDarkMode.js +5 -0
- package/dist/entry/interactions/EpDarkMode.js.map +1 -0
- package/dist/entry/interactions/EpDraggable.d.ts +5 -0
- package/dist/entry/interactions/EpDraggable.js +5 -0
- package/dist/entry/interactions/EpDraggable.js.map +1 -0
- package/dist/entry/interactions/EpHotSpot.d.ts +5 -0
- package/dist/entry/interactions/EpHotSpot.js +5 -0
- package/dist/entry/interactions/EpHotSpot.js.map +1 -0
- package/dist/entry/interactions/EpModal.d.ts +5 -0
- package/dist/entry/interactions/EpModal.js +6 -0
- package/dist/entry/interactions/EpModal.js.map +1 -0
- package/dist/entry/interactions/EpQuestion.d.ts +5 -0
- package/dist/entry/interactions/EpQuestion.js +5 -0
- package/dist/entry/interactions/EpQuestion.js.map +1 -0
- package/dist/entry/interactions/EpSummativeTable.d.ts +5 -0
- package/dist/entry/interactions/EpSummativeTable.js +5 -0
- package/dist/entry/interactions/EpSummativeTable.js.map +1 -0
- package/dist/entry/interactions/EpSvgShow.d.ts +5 -0
- package/dist/entry/interactions/EpSvgShow.js +5 -0
- package/dist/entry/interactions/EpSvgShow.js.map +1 -0
- package/dist/entry/interactions/EpTabs.d.ts +5 -0
- package/dist/entry/interactions/EpTabs.js +5 -0
- package/dist/entry/interactions/EpTabs.js.map +1 -0
- package/dist/entry/interactions/EpTooltip.d.ts +5 -0
- package/dist/entry/interactions/EpTooltip.js +6 -0
- package/dist/entry/interactions/EpTooltip.js.map +1 -0
- package/dist/entry/medias/EpAudio.d.ts +5 -0
- package/dist/entry/medias/EpAudio.js +5 -0
- package/dist/entry/medias/EpAudio.js.map +1 -0
- package/dist/entry/medias/EpCardLink.d.ts +5 -0
- package/dist/entry/medias/EpCardLink.js +5 -0
- package/dist/entry/medias/EpCardLink.js.map +1 -0
- package/dist/entry/medias/EpCarousel.d.ts +5 -0
- package/dist/entry/medias/EpCarousel.js +5 -0
- package/dist/entry/medias/EpCarousel.js.map +1 -0
- package/dist/entry/medias/EpHierarchy.d.ts +5 -0
- package/dist/entry/medias/EpHierarchy.js +5 -0
- package/dist/entry/medias/EpHierarchy.js.map +1 -0
- package/dist/entry/medias/EpIframe.d.ts +5 -0
- package/dist/entry/medias/EpIframe.js +5 -0
- package/dist/entry/medias/EpIframe.js.map +1 -0
- package/dist/entry/medias/EpKatex.d.ts +5 -0
- package/dist/entry/medias/EpKatex.js +5 -0
- package/dist/entry/medias/EpKatex.js.map +1 -0
- package/dist/entry/medias/EpLink.d.ts +5 -0
- package/dist/entry/medias/EpLink.js +5 -0
- package/dist/entry/medias/EpLink.js.map +1 -0
- package/dist/entry/medias/EpLinkVersion.d.ts +5 -0
- package/dist/entry/medias/EpLinkVersion.js +5 -0
- package/dist/entry/medias/EpLinkVersion.js.map +1 -0
- package/dist/entry/medias/EpLottieSvg.d.ts +5 -0
- package/dist/entry/medias/EpLottieSvg.js +5 -0
- package/dist/entry/medias/EpLottieSvg.js.map +1 -0
- package/dist/entry/medias/EpSoftware.d.ts +5 -0
- package/dist/entry/medias/EpSoftware.js +5 -0
- package/dist/entry/medias/EpSoftware.js.map +1 -0
- package/dist/entry/medias/EpSvg.d.ts +5 -0
- package/dist/entry/medias/EpSvg.js +5 -0
- package/dist/entry/medias/EpSvg.js.map +1 -0
- package/dist/entry/medias/EpTerm.d.ts +5 -0
- package/dist/entry/medias/EpTerm.js +5 -0
- package/dist/entry/medias/EpTerm.js.map +1 -0
- package/dist/entry/medias/EpTimeLine.d.ts +5 -0
- package/dist/entry/medias/EpTimeLine.js +6 -0
- package/dist/entry/medias/EpTimeLine.js.map +1 -0
- package/dist/entry/medias/EpVideo.d.ts +5 -0
- package/dist/entry/medias/EpVideo.js +5 -0
- package/dist/entry/medias/EpVideo.js.map +1 -0
- package/dist/entry/medias/EpVideoPanopto.d.ts +5 -0
- package/dist/entry/medias/EpVideoPanopto.js +5 -0
- package/dist/entry/medias/EpVideoPanopto.js.map +1 -0
- package/dist/entry/medias/EpWordDef.d.ts +5 -0
- package/dist/entry/medias/EpWordDef.js +5 -0
- package/dist/entry/medias/EpWordDef.js.map +1 -0
- package/dist/entry/signages/EpAlert.d.ts +5 -0
- package/dist/entry/signages/EpAlert.js +5 -0
- package/dist/entry/signages/EpAlert.js.map +1 -0
- package/dist/entry/signages/EpBadge.d.ts +5 -0
- package/dist/entry/signages/EpBadge.js +5 -0
- package/dist/entry/signages/EpBadge.js.map +1 -0
- package/dist/entry/signages/EpHeader.d.ts +5 -0
- package/dist/entry/signages/EpHeader.js +5 -0
- package/dist/entry/signages/EpHeader.js.map +1 -0
- package/dist/entry/signages/EpNothing.d.ts +5 -0
- package/dist/entry/signages/EpNothing.js +5 -0
- package/dist/entry/signages/EpNothing.js.map +1 -0
- package/dist/entry/signages/EpQuote.d.ts +5 -0
- package/dist/entry/signages/EpQuote.js +5 -0
- package/dist/entry/signages/EpQuote.js.map +1 -0
- package/dist/entry/signages/EpSkeleton.d.ts +5 -0
- package/dist/entry/signages/EpSkeleton.js +6 -0
- package/dist/entry/signages/EpSkeleton.js.map +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +188 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Accordeon.js +3 -2
- package/dist/types/Accordeon.js.map +1 -0
- package/dist/types/Alert.js +6 -4
- package/dist/types/Alert.js.map +1 -0
- package/dist/types/Avatar.js +3 -2
- package/dist/types/Avatar.js.map +1 -0
- package/dist/types/Badge.js +3 -2
- package/dist/types/Badge.js.map +1 -0
- package/dist/types/Btn.js +6 -4
- package/dist/types/Btn.js.map +1 -0
- package/dist/types/Card.js +3 -2
- package/dist/types/Card.js.map +1 -0
- package/dist/types/Chip.js +6 -4
- package/dist/types/Chip.js.map +1 -0
- package/dist/types/Codeblock.js +6 -4
- package/dist/types/Codeblock.js.map +1 -0
- package/dist/types/Cols.js +3 -2
- package/dist/types/Cols.js.map +1 -0
- package/dist/types/Image.js +6 -4
- package/dist/types/Image.js.map +1 -0
- package/dist/types/Medias.js +3 -2
- package/dist/types/Medias.js.map +1 -0
- package/dist/types/Radio.js +3 -2
- package/dist/types/Radio.js.map +1 -0
- package/dist/types/StackedList.js +3 -2
- package/dist/types/StackedList.js.map +1 -0
- package/dist/types/Switch.js +3 -2
- package/dist/types/Switch.js.map +1 -0
- package/dist/types/TimeLine.js +15 -14
- package/dist/types/TimeLine.js.map +1 -0
- package/dist/types/Tooltip.js +3 -2
- package/dist/types/Tooltip.js.map +1 -0
- package/package.json +1 -1
- package/dist/basics/EpBtn.js +0 -4
- package/dist/basics/EpCard.js +0 -4
- package/dist/basics/EpChip.js +0 -4
- package/dist/basics/EpDivider.js +0 -4
- package/dist/basics/EpFlex.js +0 -4
- package/dist/basics/EpHover.js +0 -4
- package/dist/basics/EpHoverCard.js +0 -4
- package/dist/basics/EpIcon.js +0 -4
- package/dist/basics/EpImg.js +0 -4
- package/dist/basics/EpImgCarousel.js +0 -4
- package/dist/basics/EpList.js +0 -4
- package/dist/basics/EpListItem.js +0 -4
- package/dist/basics/EpSection.js +0 -4
- package/dist/basics/EpSectionCols.js +0 -4
- package/dist/basics/EpSpinner.js +0 -4
- package/dist/basics/EpStackedList.js +0 -4
- package/dist/basics/EpTable.js +0 -4
- package/dist/basics/EpText.js +0 -4
- package/dist/charts/EpBarChart.js +0 -4
- package/dist/charts/EpFunnelChart.js +0 -4
- package/dist/charts/EpLineChart.js +0 -4
- package/dist/charts/EpPieChart.js +0 -4
- package/dist/components/tools/DisplayBox.vue2.js +0 -36
- package/dist/educationals/EpBranchingScenario.js +0 -4
- package/dist/educationals/EpCodeblock.js +0 -5
- package/dist/educationals/EpConclusion.js +0 -4
- package/dist/educationals/EpDescription.js +0 -4
- package/dist/educationals/EpDocument.js +0 -4
- package/dist/educationals/EpEdu.js +0 -4
- package/dist/educationals/EpInstructions.js +0 -4
- package/dist/educationals/EpIntroduction.js +0 -4
- package/dist/educationals/EpObjective.js +0 -4
- package/dist/educationals/EpReading.js +0 -4
- package/dist/educationals/EpResource.js +0 -4
- package/dist/educationals/EpScope.js +0 -4
- package/dist/educationals/EpSpecificObjective.js +0 -4
- package/dist/ep-lib-ts.css +0 -1
- package/dist/interactions/EpAccordeon.js +0 -4
- package/dist/interactions/EpContentSlider.js +0 -4
- package/dist/interactions/EpDarkMode.js +0 -4
- package/dist/interactions/EpDraggable.js +0 -4
- package/dist/interactions/EpHotSpot.js +0 -4
- package/dist/interactions/EpModal.js +0 -5
- package/dist/interactions/EpQuestion.js +0 -4
- package/dist/interactions/EpSummativeTable.js +0 -4
- package/dist/interactions/EpSvgShow.js +0 -4
- package/dist/interactions/EpTabs.js +0 -4
- package/dist/interactions/EpTooltip.js +0 -5
- package/dist/medias/EpAudio.js +0 -4
- package/dist/medias/EpCardLink.js +0 -4
- package/dist/medias/EpCarousel.js +0 -4
- package/dist/medias/EpHierarchy.js +0 -4
- package/dist/medias/EpIframe.js +0 -4
- package/dist/medias/EpKatex.js +0 -4
- package/dist/medias/EpLink.js +0 -4
- package/dist/medias/EpLinkVersion.js +0 -4
- package/dist/medias/EpLottieSvg.js +0 -4
- package/dist/medias/EpSoftware.js +0 -4
- package/dist/medias/EpSvg.js +0 -4
- package/dist/medias/EpTerm.js +0 -4
- package/dist/medias/EpTimeLine.js +0 -5
- package/dist/medias/EpVideo.js +0 -4
- package/dist/medias/EpVideoPanopto.js +0 -4
- package/dist/medias/EpWordDef.js +0 -4
- package/dist/signages/EpAlert.js +0 -4
- package/dist/signages/EpBadge.js +0 -4
- package/dist/signages/EpHeader.js +0 -4
- package/dist/signages/EpNothing.js +0 -4
- package/dist/signages/EpQuote.js +0 -4
- package/dist/signages/EpSkeleton.js +0 -5
- /package/dist/{Accordeon.d.ts → types/Accordeon.d.ts} +0 -0
- /package/dist/{Aframe.d.ts → types/Aframe.d.ts} +0 -0
- /package/dist/{Alert.d.ts → types/Alert.d.ts} +0 -0
- /package/dist/{Answer.d.ts → types/Answer.d.ts} +0 -0
- /package/dist/{Avatar.d.ts → types/Avatar.d.ts} +0 -0
- /package/dist/{Badge.d.ts → types/Badge.d.ts} +0 -0
- /package/dist/{Border.d.ts → types/Border.d.ts} +0 -0
- /package/dist/{Btn.d.ts → types/Btn.d.ts} +0 -0
- /package/dist/{Card.d.ts → types/Card.d.ts} +0 -0
- /package/dist/{Chip.d.ts → types/Chip.d.ts} +0 -0
- /package/dist/{Codeblock.d.ts → types/Codeblock.d.ts} +0 -0
- /package/dist/{Cols.d.ts → types/Cols.d.ts} +0 -0
- /package/dist/{Component.d.ts → types/Component.d.ts} +0 -0
- /package/dist/{Draggable.d.ts → types/Draggable.d.ts} +0 -0
- /package/dist/{Glossary.d.ts → types/Glossary.d.ts} +0 -0
- /package/dist/{GlossaryEntry.d.ts → types/GlossaryEntry.d.ts} +0 -0
- /package/dist/{Hierarchy.d.ts → types/Hierarchy.d.ts} +0 -0
- /package/dist/{Hover.d.ts → types/Hover.d.ts} +0 -0
- /package/dist/{Image.d.ts → types/Image.d.ts} +0 -0
- /package/dist/{MandateLevel.d.ts → types/MandateLevel.d.ts} +0 -0
- /package/dist/{MediaCarousel.d.ts → types/MediaCarousel.d.ts} +0 -0
- /package/dist/{Medias.d.ts → types/Medias.d.ts} +0 -0
- /package/dist/{Radio.d.ts → types/Radio.d.ts} +0 -0
- /package/dist/{Slides.d.ts → types/Slides.d.ts} +0 -0
- /package/dist/{StackedList.d.ts → types/StackedList.d.ts} +0 -0
- /package/dist/{SummativeTable.d.ts → types/SummativeTable.d.ts} +0 -0
- /package/dist/{Switch.d.ts → types/Switch.d.ts} +0 -0
- /package/dist/{Three.d.ts → types/Three.d.ts} +0 -0
- /package/dist/{TimeLine.d.ts → types/TimeLine.d.ts} +0 -0
- /package/dist/{Tooltip.d.ts → types/Tooltip.d.ts} +0 -0
- /package/dist/{basics → types/basics}/EpAvatar.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpBadge.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpBtn.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpCard.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpChip.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpDivider.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpFlex.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpHover.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpHoverCard.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpIcon.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpImg.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpImgCarousel.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpList.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpListItem.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpSection.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpSectionCols.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpSpinner.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpStackedList.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpTable.d.ts +0 -0
- /package/dist/{basics → types/basics}/EpText.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpBarChart.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpFunnelChart.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpLineChart.d.ts +0 -0
- /package/dist/{charts → types/charts}/EpPieChart.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpBranchingScenario.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpCodeblock.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpConclusion.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpDescription.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpDocument.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpEdu.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpInstructions.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpIntroduction.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpObjective.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpReading.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpResource.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpScope.d.ts +0 -0
- /package/dist/{educationals → types/educationals}/EpSpecificObjective.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpCheckbox.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpInput.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpRadio.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpRadioSummative.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpSelect.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpSwitch.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpTextarea.d.ts +0 -0
- /package/dist/{forms → types/forms}/EpToggle.d.ts +0 -0
- /package/dist/{image360.d.ts → types/image360.d.ts} +0 -0
- /package/dist/{interactions → types/interactions}/Ep360Image.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/Ep360Video.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpAccordeon.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpContentSlider.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpDarkMode.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpDraggable.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpHotSpot.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpModal.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpQuestion.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpSummativeTable.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpSvgShow.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpTabs.d.ts +0 -0
- /package/dist/{interactions → types/interactions}/EpTooltip.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpAudio.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpCardLink.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpCarousel.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpHierarchy.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpIframe.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpKatex.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpLink.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpLinkVersion.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpLottieSvg.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpSensibleImage.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpSoftware.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpSvg.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpTerm.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpTimeLine.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpVideo.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpVideoPanopto.d.ts +0 -0
- /package/dist/{medias → types/medias}/EpWordDef.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpAlert.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpBadge.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpHeader.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpNothing.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpQuote.d.ts +0 -0
- /package/dist/{signages → types/signages}/EpSkeleton.d.ts +0 -0
- /package/dist/{video360.d.ts → types/video360.d.ts} +0 -0
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { useField
|
|
3
|
-
import
|
|
4
|
-
import { mdiLockOutline
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent, toRefs, toRef, createElementBlock, openBlock, Fragment, createTextVNode, createElementVNode, toDisplayString, unref, createVNode, withDirectives, createCommentVNode, isRef, vModelText } from "vue";
|
|
2
|
+
import { useField } from "vee-validate";
|
|
3
|
+
import _sfc_main$1 from "../basics/EpBadge.vue2.js";
|
|
4
|
+
import { mdiLockOutline } from "@mdi/js";
|
|
5
|
+
const _hoisted_1 = { class: "w-72" };
|
|
6
|
+
const _hoisted_2 = { class: "relative h-10 w-full min-w-[200px]" };
|
|
7
|
+
const _hoisted_3 = ["id", "type", "disabled"];
|
|
8
|
+
const _hoisted_4 = ["for"];
|
|
9
|
+
const _hoisted_5 = { class: "my-3" };
|
|
10
|
+
const _hoisted_6 = ["name", "id"];
|
|
11
|
+
const _hoisted_7 = { key: 0 };
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
13
|
__name: "EpInput",
|
|
7
14
|
props: {
|
|
8
15
|
name: {},
|
|
@@ -13,50 +20,61 @@ const D = { class: "w-72" }, M = { class: "relative h-10 w-full min-w-[200px]" }
|
|
|
13
20
|
placeholder: { default: "" },
|
|
14
21
|
iconPath: { default: "" },
|
|
15
22
|
iconSize: { default: "32" },
|
|
16
|
-
disabled: { type: Boolean, default:
|
|
17
|
-
readonly: { type: Boolean, default:
|
|
23
|
+
disabled: { type: Boolean, default: false },
|
|
24
|
+
readonly: { type: Boolean, default: false }
|
|
18
25
|
},
|
|
19
26
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const { id, label, type, disabled } = toRefs(props);
|
|
30
|
+
const name = toRef(props, "name");
|
|
31
|
+
function validateField(value2) {
|
|
32
|
+
if (!value2) {
|
|
33
|
+
return "this field is required";
|
|
34
|
+
}
|
|
35
|
+
if (value2.length < 8) {
|
|
36
|
+
return "this field must contain at least 8 characters";
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
24
39
|
}
|
|
25
|
-
const { value
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
r("div", q, [
|
|
46
|
-
p(l(t.value) + " ", 1),
|
|
47
|
-
B(r("input", {
|
|
48
|
-
type: "text",
|
|
49
|
-
"onUpdate:modelValue": o[0] || (o[0] = (_) => E(a) ? a.value = _ : null),
|
|
50
|
-
name: t.value,
|
|
51
|
-
id: t.value
|
|
52
|
-
}, null, 8, z), [
|
|
53
|
-
[F, e(a)]
|
|
40
|
+
const { value, errorMessage, meta } = useField(name, validateField);
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
43
|
+
createTextVNode(toDisplayString(unref(meta)) + " ", 1),
|
|
44
|
+
createElementVNode("div", _hoisted_1, [
|
|
45
|
+
createElementVNode("div", _hoisted_2, [
|
|
46
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "absolute top-2/4 right-3 grid h-5 w-5 -translate-y-2/4 place-items-center text-neutral-400" }, null, -1)),
|
|
47
|
+
createElementVNode("input", {
|
|
48
|
+
id: unref(id),
|
|
49
|
+
type: unref(type),
|
|
50
|
+
class: "peer h-full w-full rounded-[7px] border border-blue-200 border-t-transparent bg-transparent px-3 py-2.5 !pr-9 font-sans text-sm font-normal text-neutral-700 outline outline-0 transition-all placeholder-shown:border placeholder-shown:border-neutral-200 placeholder-shown:border-t-neutral-200 focus:border-2 focus:border-blue-500 focus:border-t-transparent focus:outline-0 disabled:border-0 disabled:bg-neutral-100 disabled:cursor-not-allowed",
|
|
51
|
+
placeholder: " ",
|
|
52
|
+
disabled: unref(disabled)
|
|
53
|
+
}, null, 8, _hoisted_3),
|
|
54
|
+
createElementVNode("label", {
|
|
55
|
+
for: unref(id),
|
|
56
|
+
class: "before:content[' '] after:content[' '] pointer-events-none absolute left-0 -top-1.5 flex h-full w-full select-none text-[11px] font-normal leading-tight text-neutral-400 transition-all before:pointer-events-none before:mt-[6.5px] before:mr-1 before:box-border before:block before:h-1.5 before:w-2.5 before:rounded-tl-md before:border-t before:border-l before:border-blue-200 before:transition-all after:pointer-events-none after:mt-[6.5px] after:ml-1 after:box-border after:block after:h-1.5 after:w-2.5 after:flex-grow after:rounded-tr-md after:border-t after:border-r after:border-blue-200 after:transition-all peer-placeholder-shown:text-sm peer-placeholder-shown:leading-[3.75] peer-placeholder-shown:text-neutral-700 peer-placeholder-shown:before:border-transparent peer-placeholder-shown:after:border-transparent peer-focus:text-[11px] peer-focus:leading-tight peer-focus:text-blue-500 peer-focus:before:border-t-2 peer-focus:before:border-l-2 peer-focus:before:border-blue-500 peer-focus:after:border-t-2 peer-focus:after:border-r-2 peer-focus:after:border-blue-500 peer-disabled:text-transparent peer-disabled:before:border-transparent peer-disabled:after:border-transparent peer-disabled:peer-placeholder-shown:text-neutral-500"
|
|
57
|
+
}, toDisplayString(unref(label)), 9, _hoisted_4),
|
|
58
|
+
createVNode(_sfc_main$1, { iconPath: unref(mdiLockOutline) }, null, 8, ["iconPath"])
|
|
59
|
+
])
|
|
54
60
|
]),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
61
|
+
createElementVNode("div", _hoisted_5, [
|
|
62
|
+
createTextVNode(toDisplayString(name.value) + " ", 1),
|
|
63
|
+
withDirectives(createElementVNode("input", {
|
|
64
|
+
type: "text",
|
|
65
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
|
|
66
|
+
name: name.value,
|
|
67
|
+
id: name.value
|
|
68
|
+
}, null, 8, _hoisted_6), [
|
|
69
|
+
[vModelText, unref(value)]
|
|
70
|
+
]),
|
|
71
|
+
unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(unref(errorMessage)), 1)) : createCommentVNode("", true)
|
|
72
|
+
])
|
|
73
|
+
], 64);
|
|
74
|
+
};
|
|
58
75
|
}
|
|
59
76
|
});
|
|
60
77
|
export {
|
|
61
|
-
|
|
78
|
+
_sfc_main as default
|
|
62
79
|
};
|
|
80
|
+
//# sourceMappingURL=EpInput.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpInput.vue2.js","sources":["../../../src/components/forms/EpInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { toRefs, toRef } from \"vue\";\nimport { useField } from \"vee-validate\";\nimport EpBadge from \"~/components/basics/EpBadge.vue\";\nimport { mdiLockOutline } from \"@mdi/js\";\nimport { EpInputProps } from \"~/types/forms/EpInput\";\n\nconst props = withDefaults(defineProps<EpInputProps>(), {\n id: \"0\",\n label: \"label\",\n modelValue: \"\",\n type: \"text\",\n placeholder: \"\",\n iconPath: \"\",\n iconSize: \"32\",\n disabled: false,\n readonly: false,\n});\n\ndefineEmits<{\n (e: \"update:modelValue\", modelValue: string): void;\n}>();\n\nconst { id, label, type, disabled } = toRefs(props);\n\nconst name = toRef(props, \"name\");\n\nfunction validateField(value: string) {\n if (!value) {\n return \"this field is required\";\n }\n if (value.length < 8) {\n return \"this field must contain at least 8 characters\";\n }\n return true;\n}\n\nconst { value, errorMessage, meta } = useField(name, validateField);\n//($event.target as HTMLInputElement).value)\n</script>\n\n<template>\n {{ meta }}\n <!-- <div>\n <label :for=\"id\">{{ label }}</label>\n <input\n :id=\"id\"\n :type=\"type\"\n :placeholder=\"placeholder\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :value=\"modelValue\"\n @input=\"$emit('update:modelValue', $event.target.value)\"\n class=\"form-input p-2 border-solid border-gray-400 border-1 w-full rounded-md\"\n />\n </div> -->\n\n <!-- <EpIcon\n v-if=\"prependIcon\"\n :iconPath=\"prependIcon\"\n :size=\"iconSize\"\n extraClass=\"mr-2\"\n /> -->\n\n <!-- <label for=\"\" class=\"text-xs px-1\">\n <span>First name</span>\n <span class=\"text-xs font-semibold px-1\">* requis</span>\n <div class=\"flex\">\n <div\n class=\"w-10 z-10 pl-1 text-center pointer-events-none text-gray-500 flex items-center justify-center\"\n >\n <EpIcon\n v-if=\"iconPath\"\n :iconPath=\"iconPath\"\n :size=\"iconSize\"\n extraClass=\"mr-2\"\n />\n </div>\n <input\n type=\"text\"\n class=\"w-full -ml-10 pl-10 pr-3 py-2 rounded-lg border-2 border-gray-300 outline-none focus:border-blue-500\"\n placeholder=\"John\"\n />\n <input\n type=\"text\"\n class=\"mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black\"\n placeholder=\"\"\n />\n </div>\n </label> -->\n <div class=\"w-72\">\n <div class=\"relative h-10 w-full min-w-[200px]\">\n <div\n class=\"absolute top-2/4 right-3 grid h-5 w-5 -translate-y-2/4 place-items-center text-neutral-400\"\n >\n <!-- <EpIcon\n v-if=\"iconPath\"\n :iconPath=\"iconPath\"\n :size=\"iconSize\"\n extraClass=\"mr-2\"\n /> -->\n </div>\n <input\n :id=\"id\"\n :type=\"type\"\n class=\"peer h-full w-full rounded-[7px] border border-blue-200 border-t-transparent bg-transparent px-3 py-2.5 !pr-9 font-sans text-sm font-normal text-neutral-700 outline outline-0 transition-all placeholder-shown:border placeholder-shown:border-neutral-200 placeholder-shown:border-t-neutral-200 focus:border-2 focus:border-blue-500 focus:border-t-transparent focus:outline-0 disabled:border-0 disabled:bg-neutral-100 disabled:cursor-not-allowed\"\n placeholder=\" \"\n :disabled=\"disabled\"\n />\n <label\n :for=\"id\"\n class=\"before:content[' '] after:content[' '] pointer-events-none absolute left-0 -top-1.5 flex h-full w-full select-none text-[11px] font-normal leading-tight text-neutral-400 transition-all before:pointer-events-none before:mt-[6.5px] before:mr-1 before:box-border before:block before:h-1.5 before:w-2.5 before:rounded-tl-md before:border-t before:border-l before:border-blue-200 before:transition-all after:pointer-events-none after:mt-[6.5px] after:ml-1 after:box-border after:block after:h-1.5 after:w-2.5 after:flex-grow after:rounded-tr-md after:border-t after:border-r after:border-blue-200 after:transition-all peer-placeholder-shown:text-sm peer-placeholder-shown:leading-[3.75] peer-placeholder-shown:text-neutral-700 peer-placeholder-shown:before:border-transparent peer-placeholder-shown:after:border-transparent peer-focus:text-[11px] peer-focus:leading-tight peer-focus:text-blue-500 peer-focus:before:border-t-2 peer-focus:before:border-l-2 peer-focus:before:border-blue-500 peer-focus:after:border-t-2 peer-focus:after:border-r-2 peer-focus:after:border-blue-500 peer-disabled:text-transparent peer-disabled:before:border-transparent peer-disabled:after:border-transparent peer-disabled:peer-placeholder-shown:text-neutral-500\"\n >\n {{ label }}\n </label>\n <EpBadge :iconPath=\"mdiLockOutline\" />\n <!-- <span class=\"badge absolute -top-1 -right-1 flex h-3 w-3\">\n <span\n class=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75\"\n />\n <span\n class=\"relative inline-flex rounded-full h-3 w-3 bg-red-500\"\n />\n </span> -->\n </div>\n </div>\n <div class=\"my-3\">\n {{ name }}\n <input type=\"text\" v-model=\"value\" :name=\"name\" :id=\"name\" />\n <div v-if=\"errorMessage\">{{ errorMessage }}</div>\n </div>\n</template>\n"],"names":["value","_createTextVNode","_toDisplayString","_unref","_createElementVNode","_createVNode","EpBadge","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,UAAM,QAAQ;AAgBd,UAAM,EAAE,IAAI,OAAO,MAAM,SAAA,IAAa,OAAO,KAAK;AAElD,UAAM,OAAO,MAAM,OAAO,MAAM;AAEhC,aAAS,cAAcA,QAAe;AACpC,UAAI,CAACA,QAAO;AACV,eAAO;AAAA,MACT;AACA,UAAIA,OAAM,SAAS,GAAG;AACpB,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT;AAEA,UAAM,EAAE,OAAO,cAAc,SAAS,SAAS,MAAM,aAAa;;;QAK7DC,gBAAAC,gBAAAC,MAAA,IAAA,CAAI,IAAG,KAgDV,CAAA;AAAA,QAAAC,mBAmCM,OAnCN,YAmCM;AAAA,UAlCJA,mBAiCM,OAjCN,YAiCM;AAAA,sCAhCJA,mBASM,OAAA,EARJ,OAAM,6FAAA,GAA4F,MAAA,EAAA;AAAA,YASpGA,mBAME,SAAA;AAAA,cALC,IAAID,MAAA,EAAA;AAAA,cACJ,MAAMA,MAAA,IAAA;AAAA,cACP,OAAM;AAAA,cACN,aAAY;AAAA,cACX,UAAUA,MAAA,QAAA;AAAA,YAAA;YAEbC,mBAKQ,SAAA;AAAA,cAJL,KAAKD,MAAA,EAAA;AAAA,cACN,OAAM;AAAA,YAAA,mBAEHA,MAAA,KAAA,CAAK,GAAA,GAAA,UAAA;AAAA,YAEVE,YAAsCC,aAAA,EAA5B,UAAUH,MAAA,cAAA,EAAA,GAAc,MAAA,GAAA,CAAA,UAAA,CAAA;AAAA,UAAA;;QAWtCC,mBAIM,OAJN,YAIM;AAAA,UAHDH,gBAAAC,gBAAA,KAAA,KAAI,IAAG,KACV,CAAA;AAAA,yBAAAE,mBAA6D,SAAA;AAAA,YAAtD,MAAK;AAAA,wFAAgB,MAAK,QAAA,SAAA;AAAA,YAAG,MAAM,KAAA;AAAA,YAAO,IAAI,KAAA;AAAA,UAAA;yBAAzBD,MAAA,KAAA,CAAK;AAAA,UAAA;UACtBA,MAAA,YAAA,KAAXI,UAAA,GAAAC,mBAAiD,mCAArBL,MAAA,YAAA,CAAY,GAAA,CAAA;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpRadio.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,41 +1,62 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { radioVariants
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent, computed, toRefs, createElementBlock, openBlock, createElementVNode, unref, normalizeClass, toDisplayString } from "vue";
|
|
2
|
+
import { radioVariants } from "../../types/Radio.js";
|
|
3
|
+
const _hoisted_1 = { class: "flex items-center" };
|
|
4
|
+
const _hoisted_2 = ["id", "name", "disabled", "readonly", "value", "checked"];
|
|
5
|
+
const _hoisted_3 = ["for"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
7
|
__name: "EpRadio",
|
|
5
8
|
props: {
|
|
6
9
|
id: { default: "01" },
|
|
7
10
|
label: {},
|
|
8
|
-
disabled: { type: Boolean, default:
|
|
9
|
-
readonly: { type: Boolean, default:
|
|
11
|
+
disabled: { type: Boolean, default: false },
|
|
12
|
+
readonly: { type: Boolean, default: false },
|
|
10
13
|
type: { default: "base" },
|
|
11
14
|
value: { default: void 0 },
|
|
12
15
|
modelValue: { default: "" }
|
|
13
16
|
},
|
|
14
17
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const styleRadio = computed(() => {
|
|
21
|
+
return `${radioVariants[props.type]} mx-2 `;
|
|
22
|
+
});
|
|
23
|
+
const isChecked = computed(() => {
|
|
24
|
+
return props.modelValue === props.value;
|
|
25
|
+
});
|
|
26
|
+
const labelFor = computed(() => {
|
|
27
|
+
if (props.label) {
|
|
28
|
+
return props.label.trim().replace(/\s/g, "_");
|
|
29
|
+
}
|
|
30
|
+
return `label_${Math.round(Math.random() * 100)}`;
|
|
31
|
+
});
|
|
32
|
+
const { label, disabled, readonly, value } = toRefs(props);
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const onChange = (event) => {
|
|
35
|
+
const target = event.target;
|
|
36
|
+
emit("update:modelValue", target.value);
|
|
37
|
+
};
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
40
|
+
createElementVNode("input", {
|
|
41
|
+
class: normalizeClass(["cursor-pointer", styleRadio.value]),
|
|
42
|
+
type: "radio",
|
|
43
|
+
id: labelFor.value,
|
|
44
|
+
name: labelFor.value,
|
|
45
|
+
disabled: unref(disabled),
|
|
46
|
+
readonly: unref(readonly),
|
|
47
|
+
value: unref(value),
|
|
48
|
+
checked: isChecked.value,
|
|
49
|
+
onChange
|
|
50
|
+
}, null, 42, _hoisted_2),
|
|
51
|
+
createElementVNode("label", {
|
|
52
|
+
for: labelFor.value,
|
|
53
|
+
class: "disabled:opacity-40 cursor-pointer"
|
|
54
|
+
}, toDisplayString(unref(label)), 9, _hoisted_3)
|
|
55
|
+
]);
|
|
19
56
|
};
|
|
20
|
-
return (o, n) => (V(), h("span", B, [
|
|
21
|
-
r("input", {
|
|
22
|
-
class: g(["cursor-pointer", u.value]),
|
|
23
|
-
type: "radio",
|
|
24
|
-
id: l.value,
|
|
25
|
-
name: l.value,
|
|
26
|
-
disabled: a(p),
|
|
27
|
-
readonly: a(m),
|
|
28
|
-
value: a(f),
|
|
29
|
-
checked: i.value,
|
|
30
|
-
onChange: b
|
|
31
|
-
}, null, 42, C),
|
|
32
|
-
r("label", {
|
|
33
|
-
for: l.value,
|
|
34
|
-
class: "disabled:opacity-40 cursor-pointer"
|
|
35
|
-
}, k(a(c)), 9, E)
|
|
36
|
-
]));
|
|
37
57
|
}
|
|
38
58
|
});
|
|
39
59
|
export {
|
|
40
|
-
|
|
60
|
+
_sfc_main as default
|
|
41
61
|
};
|
|
62
|
+
//# sourceMappingURL=EpRadio.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpRadio.vue2.js","sources":["../../../src/components/forms/EpRadio.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { toRefs, computed } from \"vue\";\nimport { EpRadioProps } from \"~/types/forms/EpRadio\";\nimport { radioVariants } from \"~/types/Radio\";\n\nconst props = withDefaults(defineProps<EpRadioProps>(), {\n id: \"01\",\n disabled: false,\n readonly: false,\n checked: false,\n type: \"base\",\n value: undefined,\n modelValue: \"\",\n});\n\nconst styleRadio = computed(() => {\n return `${radioVariants[props.type]} mx-2 `;\n});\n\nconst isChecked = computed(() => {\n return props.modelValue === props.value;\n});\n\nconst labelFor = computed(() => {\n if (props.label) {\n return props.label.trim().replace(/\\s/g, \"_\");\n }\n return `label_${Math.round(Math.random() * 100)}`;\n});\n\nconst { label, disabled, readonly, value } = toRefs(props);\n\nconst emit = defineEmits<{\n (e: \"update:modelValue\", modelValue: string): void;\n}>();\n\nconst onChange = (event: Event) => {\n const target = event.target as HTMLInputElement;\n emit(\"update:modelValue\", target.value);\n};\n</script>\n\n<template>\n <span class=\"flex items-center\">\n <input\n class=\"cursor-pointer\"\n type=\"radio\"\n :id=\"labelFor\"\n :name=\"labelFor\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :class=\"styleRadio\"\n :value=\"value\"\n :checked=\"isChecked\"\n @change=\"onChange\"\n />\n <label :for=\"labelFor\" class=\"disabled:opacity-40 cursor-pointer\">{{\n label\n }}</label>\n </span>\n</template>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_unref"],"mappings":";;;;;;;;;;;;;;;;;;AAKA,UAAM,QAAQ;AAUd,UAAM,aAAa,SAAS,MAAM;AAChC,aAAO,GAAG,cAAc,MAAM,IAAI,CAAC;AAAA,IACrC,CAAC;AAED,UAAM,YAAY,SAAS,MAAM;AAC/B,aAAO,MAAM,eAAe,MAAM;AAAA,IACpC,CAAC;AAED,UAAM,WAAW,SAAS,MAAM;AAC9B,UAAI,MAAM,OAAO;AACf,eAAO,MAAM,MAAM,KAAA,EAAO,QAAQ,OAAO,GAAG;AAAA,MAC9C;AACA,aAAO,SAAS,KAAK,MAAM,KAAK,OAAA,IAAW,GAAG,CAAC;AAAA,IACjD,CAAC;AAED,UAAM,EAAE,OAAO,UAAU,UAAU,MAAA,IAAU,OAAO,KAAK;AAEzD,UAAM,OAAO;AAIb,UAAM,WAAW,CAAC,UAAiB;AACjC,YAAM,SAAS,MAAM;AACrB,WAAK,qBAAqB,OAAO,KAAK;AAAA,IACxC;;AAIE,aAAAA,UAAA,GAAAC,mBAgBO,QAhBP,YAgBO;AAAA,QAfLC,mBAWE,SAAA;AAAA,UAVA,OAAKC,eAAA,CAAC,kBAME,WAAA,KAAU,CAAA;AAAA,UALlB,MAAK;AAAA,UACJ,IAAI,SAAA;AAAA,UACJ,MAAM,SAAA;AAAA,UACN,UAAUC,MAAA,QAAA;AAAA,UACV,UAAUA,MAAA,QAAA;AAAA,UAEV,OAAOA,MAAA,KAAA;AAAA,UACP,SAAS,UAAA;AAAA,UACT;AAAA,QAAA;QAEHF,mBAEU,SAAA;AAAA,UAFF,KAAK,SAAA;AAAA,UAAU,OAAM;AAAA,QAAA,mBAC3BE,MAAA,KAAA,CAAK,GAAA,GAAA,UAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpRadioSummative.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,37 +1,50 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent, computed, toRefs, createElementBlock, openBlock, createElementVNode, unref, toDisplayString } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "cursor-pointer hover:text-white dark:hover:text-black flex items-center rounded-md py-3 px-3 text-xs font-semibold uppercase sm:flex-1 hover:bg-base" };
|
|
3
|
+
const _hoisted_2 = ["id", "name", "disabled", "readonly", "value", "checked"];
|
|
4
|
+
const _hoisted_3 = { class: "ml-2" };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
6
|
__name: "EpRadioSummative",
|
|
4
7
|
props: {
|
|
5
8
|
id: { default: "01" },
|
|
6
9
|
label: {},
|
|
7
|
-
disabled: { type: Boolean, default:
|
|
8
|
-
readonly: { type: Boolean, default:
|
|
10
|
+
disabled: { type: Boolean, default: false },
|
|
11
|
+
readonly: { type: Boolean, default: false },
|
|
9
12
|
type: { default: "base" },
|
|
10
13
|
value: { default: void 0 },
|
|
11
14
|
modelValue: { default: null }
|
|
12
15
|
},
|
|
13
16
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const isChecked = computed(() => {
|
|
20
|
+
return props.modelValue === props.value;
|
|
21
|
+
});
|
|
22
|
+
const { label, disabled, readonly, value, id } = toRefs(props);
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const onChange = (event) => {
|
|
25
|
+
const target = event.target;
|
|
26
|
+
const value2 = +target.value || 0;
|
|
27
|
+
emit("update:modelValue", value2);
|
|
28
|
+
};
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return openBlock(), createElementBlock("label", _hoisted_1, [
|
|
31
|
+
createElementVNode("input", {
|
|
32
|
+
type: "radio",
|
|
33
|
+
id: unref(id),
|
|
34
|
+
name: unref(id),
|
|
35
|
+
disabled: unref(disabled),
|
|
36
|
+
readonly: unref(readonly),
|
|
37
|
+
value: unref(value),
|
|
38
|
+
checked: isChecked.value,
|
|
39
|
+
onChange,
|
|
40
|
+
class: "rounded bg-base-dark border-gray-300 focus:border-transparent focus:bg-base text-primary focus:ring-1 focus:ring-offset-2 focus:ring-primary"
|
|
41
|
+
}, null, 40, _hoisted_2),
|
|
42
|
+
createElementVNode("span", _hoisted_3, toDisplayString(unref(label)), 1)
|
|
43
|
+
]);
|
|
18
44
|
};
|
|
19
|
-
return (o, f) => (_(), h("label", k, [
|
|
20
|
-
l("input", {
|
|
21
|
-
type: "radio",
|
|
22
|
-
id: e(a),
|
|
23
|
-
name: e(a),
|
|
24
|
-
disabled: e(u),
|
|
25
|
-
readonly: e(c),
|
|
26
|
-
value: e(i),
|
|
27
|
-
checked: r.value,
|
|
28
|
-
onChange: m,
|
|
29
|
-
class: "rounded bg-base-dark border-gray-300 focus:border-transparent focus:bg-base text-primary focus:ring-1 focus:ring-offset-2 focus:ring-primary"
|
|
30
|
-
}, null, 40, V),
|
|
31
|
-
l("span", B, x(e(n)), 1)
|
|
32
|
-
]));
|
|
33
45
|
}
|
|
34
46
|
});
|
|
35
47
|
export {
|
|
36
|
-
|
|
48
|
+
_sfc_main as default
|
|
37
49
|
};
|
|
50
|
+
//# sourceMappingURL=EpRadioSummative.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpRadioSummative.vue2.js","sources":["../../../src/components/forms/EpRadioSummative.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { toRefs, computed } from \"vue\";\nimport { EpRadioSummativeProps } from \"~/types/forms/EpRadioSummative\";\n\nconst props = withDefaults(defineProps<EpRadioSummativeProps>(), {\n id: \"01\",\n disabled: false,\n readonly: false,\n checked: false,\n type: \"base\",\n value: undefined,\n modelValue: null,\n});\n\nconst isChecked = computed(() => {\n return props.modelValue === props.value;\n});\n\nconst { label, disabled, readonly, value, id } = toRefs(props);\n\nconst emit = defineEmits<{\n (e: \"update:modelValue\", modelValue: number): void;\n}>();\n\nconst onChange = (event: Event) => {\n const target = event.target as HTMLInputElement;\n const value = +target.value || 0;\n emit(\"update:modelValue\", value);\n};\n</script>\n\n<template>\n <label\n class=\"cursor-pointer hover:text-white dark:hover:text-black flex items-center rounded-md py-3 px-3 text-xs font-semibold uppercase sm:flex-1 hover:bg-base\"\n >\n <input\n type=\"radio\"\n :id=\"id\"\n :name=\"id\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :value=\"value\"\n :checked=\"isChecked\"\n @change=\"onChange\"\n class=\"rounded bg-base-dark border-gray-300 focus:border-transparent focus:bg-base text-primary focus:ring-1 focus:ring-offset-2 focus:ring-primary\"\n />\n <span class=\"ml-2\">{{ label }}</span>\n </label>\n</template>\n"],"names":["value","_openBlock","_createElementBlock","_createElementVNode","_unref","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;AAIA,UAAM,QAAQ;AAUd,UAAM,YAAY,SAAS,MAAM;AAC/B,aAAO,MAAM,eAAe,MAAM;AAAA,IACpC,CAAC;AAED,UAAM,EAAE,OAAO,UAAU,UAAU,OAAO,GAAA,IAAO,OAAO,KAAK;AAE7D,UAAM,OAAO;AAIb,UAAM,WAAW,CAAC,UAAiB;AACjC,YAAM,SAAS,MAAM;AACrB,YAAMA,SAAQ,CAAC,OAAO,SAAS;AAC/B,WAAK,qBAAqBA,MAAK;AAAA,IACjC;;AAIE,aAAAC,UAAA,GAAAC,mBAeQ,SAfR,YAeQ;AAAA,QAZNC,mBAUE,SAAA;AAAA,UATA,MAAK;AAAA,UACJ,IAAIC,MAAA,EAAA;AAAA,UACJ,MAAMA,MAAA,EAAA;AAAA,UACN,UAAUA,MAAA,QAAA;AAAA,UACV,UAAUA,MAAA,QAAA;AAAA,UACV,OAAOA,MAAA,KAAA;AAAA,UACP,SAAS,UAAA;AAAA,UACT;AAAA,UACD,OAAM;AAAA,QAAA;QAERD,mBAAqC,QAArC,YAAqCE,gBAAfD,MAAA,KAAA,CAAK,GAAA,CAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpSelect.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,33 +1,41 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, Fragment, renderList, vModelSelect } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "w-full max-w-xs" };
|
|
3
|
+
const _hoisted_2 = { class: "block text-sm font-medium text-gray-700 mb-1" };
|
|
4
|
+
const _hoisted_3 = ["value"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
6
|
__name: "EpSelect",
|
|
4
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5
8
|
options: {},
|
|
6
9
|
modelValue: {},
|
|
7
10
|
label: { default: "Select Theme:" }
|
|
8
11
|
}, {
|
|
9
|
-
modelValue: {},
|
|
10
|
-
modelModifiers: {}
|
|
12
|
+
"modelValue": {},
|
|
13
|
+
"modelModifiers": {}
|
|
11
14
|
}),
|
|
12
15
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const model = useModel(__props, "modelValue");
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
20
|
+
createElementVNode("label", _hoisted_2, toDisplayString(_ctx.label), 1),
|
|
21
|
+
withDirectives(createElementVNode("select", {
|
|
22
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
23
|
+
class: "block w-full bg-white border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
24
|
+
}, [
|
|
25
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option) => {
|
|
26
|
+
return openBlock(), createElementBlock("option", {
|
|
27
|
+
key: option.value,
|
|
28
|
+
value: option.value
|
|
29
|
+
}, toDisplayString(option.text), 9, _hoisted_3);
|
|
30
|
+
}), 128))
|
|
31
|
+
], 512), [
|
|
32
|
+
[vModelSelect, model.value]
|
|
33
|
+
])
|
|
34
|
+
]);
|
|
35
|
+
};
|
|
29
36
|
}
|
|
30
37
|
});
|
|
31
38
|
export {
|
|
32
|
-
|
|
39
|
+
_sfc_main as default
|
|
33
40
|
};
|
|
41
|
+
//# sourceMappingURL=EpSelect.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpSelect.vue2.js","sources":["../../../src/components/forms/EpSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { EpSelectProps } from \"~/types/forms/EpSelect\";\n\nconst { label = \"Select Theme:\", options } = defineProps<EpSelectProps>();\n\nconst model = defineModel();\n</script>\n\n<template>\n <div class=\"w-full max-w-xs\">\n <label class=\"block text-sm font-medium text-gray-700 mb-1\">{{\n label\n }}</label>\n <select\n v-model=\"model\"\n class=\"block w-full bg-white border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm\"\n >\n <option\n v-for=\"option in options\"\n :key=\"option.value\"\n :value=\"option.value\"\n >\n {{ option.text }}\n </option>\n </select>\n </div>\n</template>\n"],"names":["_useModel","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","label","_Fragment","_renderList","options"],"mappings":";;;;;;;;;;;;;;;;AAKA,UAAM,QAAQA,8BAAY;;AAIxB,aAAAC,UAAA,GAAAC,mBAgBM,OAhBN,YAgBM;AAAA,QAfJC,mBAEU,SAFV,YAEUC,gBADRC,KAAAA,KAAK,GAAA,CAAA;AAAA,uBAEPF,mBAWS,UAAA;AAAA,uEAVE,MAAK,QAAA;AAAA,UACd,OAAM;AAAA,QAAA;4BAEND,mBAMSI,UAAA,MAAAC,WALUC,KAAAA,SAAO,CAAjB,WAAM;gCADfN,mBAMS,UAAA;AAAA,cAJN,KAAK,OAAO;AAAA,cACZ,OAAO,OAAO;AAAA,YAAA,GAEZE,gBAAA,OAAO,IAAI,GAAA,GAAA,UAAA;AAAA;;yBARP,MAAA,KAAK;AAAA,QAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpSwitch.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,48 +1,60 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { ColorVariants
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent, computed, toRefs, createElementBlock, openBlock, createElementVNode, unref, normalizeClass, toDisplayString } from "vue";
|
|
2
|
+
import { ColorVariants } from "../../types/Switch.js";
|
|
3
|
+
const _hoisted_1 = { class: "relative inline-flex items-center cursor-pointer" };
|
|
4
|
+
const _hoisted_2 = ["id", "checked", "value", "disabled"];
|
|
5
|
+
const _hoisted_3 = ["for"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
7
|
__name: "EpSwitch",
|
|
5
8
|
props: {
|
|
6
9
|
id: { default: "toggle" },
|
|
7
10
|
type: { default: "base" },
|
|
8
11
|
label: { default: "" },
|
|
9
|
-
modelValue: { type: Boolean, default:
|
|
10
|
-
disabled: { type: Boolean, default:
|
|
11
|
-
readonly: { type: Boolean, default:
|
|
12
|
-
checked: { type: Boolean, default:
|
|
12
|
+
modelValue: { type: Boolean, default: false },
|
|
13
|
+
disabled: { type: Boolean, default: false },
|
|
14
|
+
readonly: { type: Boolean, default: false },
|
|
15
|
+
checked: { type: Boolean, default: false }
|
|
13
16
|
},
|
|
14
17
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
21
|
+
const updateValue = (event) => {
|
|
22
|
+
emit("update:modelValue", event.target.checked);
|
|
23
|
+
};
|
|
24
|
+
const style = computed(() => {
|
|
25
|
+
return `${ColorVariants[props.type]}`;
|
|
26
|
+
});
|
|
27
|
+
const { id, label, modelValue, disabled } = toRefs(props);
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("div", null, [
|
|
30
|
+
createElementVNode("label", _hoisted_1, [
|
|
31
|
+
createElementVNode("input", {
|
|
32
|
+
id: unref(id),
|
|
33
|
+
type: "checkbox",
|
|
34
|
+
checked: unref(modelValue),
|
|
35
|
+
value: unref(modelValue),
|
|
36
|
+
onInput: updateValue,
|
|
37
|
+
class: "sr-only peer",
|
|
38
|
+
role: "switch",
|
|
39
|
+
disabled: unref(disabled),
|
|
40
|
+
onChange: updateValue
|
|
41
|
+
}, null, 40, _hoisted_2),
|
|
42
|
+
createElementVNode("div", {
|
|
43
|
+
class: normalizeClass(`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4
|
|
44
|
+
${style.value} dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full
|
|
35
45
|
peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px]
|
|
36
46
|
after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all `)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
}, null, 2)
|
|
48
|
+
]),
|
|
49
|
+
createElementVNode("label", {
|
|
50
|
+
class: "inline-block pl-[0.15rem] hover:cursor-pointer",
|
|
51
|
+
for: unref(id)
|
|
52
|
+
}, toDisplayString(unref(label)), 9, _hoisted_3)
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
44
55
|
}
|
|
45
56
|
});
|
|
46
57
|
export {
|
|
47
|
-
|
|
58
|
+
_sfc_main as default
|
|
48
59
|
};
|
|
60
|
+
//# sourceMappingURL=EpSwitch.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpSwitch.vue2.js","sources":["../../../src/components/forms/EpSwitch.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { toRefs, computed } from \"vue\";\nimport { ColorVariants } from \"~/types/Switch\";\nimport { EpSwitchProps } from \"~/types/forms/EpSwitch\";\n\nconst props = withDefaults(defineProps<EpSwitchProps>(), {\n id: \"toggle\",\n label: \"\",\n type: \"base\",\n modelValue: false,\n disabled: false,\n readonly: false,\n checked: false,\n});\n\nconst emit = defineEmits([\"update:modelValue\"]);\n\nconst updateValue = (event: Event) => {\n emit(\"update:modelValue\", (event.target as HTMLInputElement).checked);\n};\n\nconst style = computed(() => {\n return `${ColorVariants[props.type]}`;\n});\n\nconst { id, label, type, modelValue, disabled, readonly, checked } =\n toRefs(props);\n</script>\n\n<template>\n <div>\n <label class=\"relative inline-flex items-center cursor-pointer\">\n <input\n :id=\"id\"\n type=\"checkbox\"\n :checked=\"modelValue\"\n :value=\"modelValue\"\n @input=\"updateValue\"\n class=\"sr-only peer\"\n role=\"switch\"\n :disabled=\"disabled\"\n @change=\"updateValue\"\n />\n <div\n :class=\"`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 \n ${style} dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full \n peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] \n after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all `\"\n ></div>\n </label>\n\n <label class=\"inline-block pl-[0.15rem] hover:cursor-pointer\" :for=\"id\">{{\n label\n }}</label>\n </div>\n</template>\n"],"names":["_createElementBlock","_createElementVNode","_unref","_normalizeClass"],"mappings":";;;;;;;;;;;;;;;;;;AAKA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAEb,UAAM,cAAc,CAAC,UAAiB;AACpC,WAAK,qBAAsB,MAAM,OAA4B,OAAO;AAAA,IACtE;AAEA,UAAM,QAAQ,SAAS,MAAM;AAC3B,aAAO,GAAG,cAAc,MAAM,IAAI,CAAC;AAAA,IACrC,CAAC;AAED,UAAM,EAAE,IAAI,OAAa,YAAY,SAA4B,IAC/D,OAAO,KAAK;;0BAIZA,mBAwBM,OAAA,MAAA;AAAA,QAvBJC,mBAkBQ,SAlBR,YAkBQ;AAAA,UAjBNA,mBAUE,SAAA;AAAA,YATC,IAAIC,MAAA,EAAA;AAAA,YACL,MAAK;AAAA,YACJ,SAASA,MAAA,UAAA;AAAA,YACT,OAAOA,MAAA,UAAA;AAAA,YACP,SAAO;AAAA,YACR,OAAM;AAAA,YACN,MAAK;AAAA,YACJ,UAAUA,MAAA,QAAA;AAAA,YACV,UAAQ;AAAA,UAAA;UAEXD,mBAKO,OAAA;AAAA,YAJJ,OAAKE,eAAA;AAAA,YAAuF,MAAA,KAAK;AAAA;AAAA;;;QAOtGF,mBAEU,SAAA;AAAA,UAFH,OAAM;AAAA,UAAkD,KAAKC,MAAA,EAAA;AAAA,QAAA,mBAClEA,MAAA,KAAA,CAAK,GAAA,GAAA,UAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpTextarea.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|