ep-lib-ts 1.0.1 → 1.0.3
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/BgAudio-frhyHkqr.js +4 -0
- package/dist/DisplayBox-CSCmHlo9.js +4 -0
- package/dist/EpAlert-Ccz2Wiz3.js +4 -0
- package/dist/EpAudio-DW24CuDl.js +4 -0
- package/dist/EpBadge-YYV6LeIH.js +4 -0
- package/dist/EpBarChart-CQpD2vBz.js +4 -0
- package/dist/EpBtn-BXFxStb5.js +4 -0
- package/dist/EpCard-dMLoFxCZ.js +4 -0
- package/dist/EpChip-D14YJQjn.js +4 -0
- package/dist/{EpCodeblock-DVX2XFFj.js → EpCodeblock-DX7H-PE3.js} +2 -2
- package/dist/EpContentSlider-B6sOe3Dp.js +4 -0
- package/dist/EpDarkmode-CVX7I7Oh.js +22 -0
- package/dist/EpDivider-BlzeUfhe.js +4 -0
- package/dist/EpEdu-OSZN0dVy.js +4 -0
- package/dist/EpFlex-CajOntOn.js +4 -0
- package/dist/EpFunnelChart-CAmKAY6K.js +4 -0
- package/dist/EpHeader-s6mu1YDy.js +4 -0
- package/dist/EpHotsPot-DFz_Du9o.js +59 -0
- package/dist/{EpHover-BL7JsbVZ.js → EpHover-DvBaw8H4.js} +1 -1
- package/dist/EpIcon-BKdKZ6VL.js +4 -0
- package/dist/EpIframe-Cw50hPQt.js +4 -0
- package/dist/EpImg-ltzMUbfa.js +4 -0
- package/dist/{EpInput-DMIxjwBM.js → EpInput-C3Db2Mgx.js} +429 -438
- package/dist/EpLineChart-C1Z5zC77.js +4 -0
- package/dist/EpLink-9J5EAO2L.js +4 -0
- package/dist/EpLinkVersion-DoA4Xrmj.js +4 -0
- package/dist/{EpList-BkH08ROd.js → EpList-u8yx-VQ3.js} +1 -1
- package/dist/EpModal-EPQLtKSs.js +4 -0
- package/dist/{EpNothing-IEAPsIPI.js → EpNothing-dQbMRW9h.js} +1 -1
- package/dist/EpPieChart-DALf9BAs.js +4 -0
- package/dist/EpQuestion-CrOo3ejB.js +4 -0
- package/dist/EpQuote-BDthjTq5.js +4 -0
- package/dist/EpRadio-B_MUtViE.js +4 -0
- package/dist/EpRadioSummative-DqXsCXq1.js +4 -0
- package/dist/EpReading-KUPnrrth.js +4 -0
- package/dist/EpResource-BMPKDLj8.js +4 -0
- package/dist/EpScope-C3jsb2no.js +4 -0
- package/dist/EpSection-CdA_6u_G.js +4 -0
- package/dist/EpSelect-DxDETrPv.js +43 -0
- package/dist/EpSkeleton-B7Vvky8C.js +4 -0
- package/dist/EpSoftware-CBGrw-TM.js +4 -0
- package/dist/EpSpinner-CPXurjKk.js +4 -0
- package/dist/EpSummativeTable-Cl4DD-eg.js +4 -0
- package/dist/EpSvg-D7ZjOSNK.js +4 -0
- package/dist/EpTable-BJg2IDFP.js +4 -0
- package/dist/EpTerm-BqEk32qp.js +4 -0
- package/dist/EpText-C0XpPsof.js +4 -0
- package/dist/EpTextarea-D8UCQuga.js +44 -0
- package/dist/EpTimeLine-D9aVz430.js +4 -0
- package/dist/{EpToggle-CfXYpI1b.js → EpToggle-BDp54LpY.js} +26 -23
- package/dist/EpVideo-B9Bqi_qW.js +4 -0
- package/dist/EpVideoPanopto-BibKcJ2y.js +4 -0
- package/dist/EpWordDef-O6xFtf2E.js +4 -0
- package/dist/components/basics/EpAvatar.vue.d.ts +4 -4
- package/dist/components/basics/EpBadge.vue.d.ts +16 -4
- package/dist/components/basics/EpBtn.vue.d.ts +4 -11
- package/dist/components/basics/EpCard.vue.d.ts +4 -4
- package/dist/components/basics/EpChip.vue.d.ts +4 -4
- package/dist/components/basics/EpDivider.vue.d.ts +4 -4
- package/dist/components/basics/EpFlex.vue.d.ts +1 -1
- package/dist/components/basics/EpHover.vue.d.ts +4 -4
- package/dist/components/basics/EpIcon.vue.d.ts +4 -4
- package/dist/components/basics/EpImg.vue.d.ts +24 -4
- package/dist/components/basics/EpList.vue.d.ts +1 -1
- package/dist/components/basics/EpListitem.vue.d.ts +4 -4
- package/dist/components/basics/EpSection.vue.d.ts +4 -4
- package/dist/components/basics/EpSpinner.vue.d.ts +4 -4
- package/dist/components/basics/EpTable.vue.d.ts +3 -3
- package/dist/components/basics/EpText.vue.d.ts +16 -4
- package/dist/components/charts/EpBarChart.vue.d.ts +16 -4
- package/dist/components/charts/EpFunnelChart.vue.d.ts +62 -0
- package/dist/components/charts/EpLineChart.vue.d.ts +16 -4
- package/dist/components/charts/EpPieChart.vue.d.ts +16 -4
- package/dist/components/educationals/EpCodeblock.vue.d.ts +5 -5
- package/dist/components/educationals/EpEdu.vue.d.ts +17 -5
- package/dist/components/educationals/EpReading.vue.d.ts +49 -17
- package/dist/components/educationals/EpResource.vue.d.ts +5 -5
- package/dist/components/educationals/EpScope.vue.d.ts +4 -4
- package/dist/components/forms/EpCheckbox.vue.d.ts +5 -5
- package/dist/components/forms/EpInput.vue.d.ts +5 -5
- package/dist/components/forms/EpRadio.vue.d.ts +5 -5
- package/dist/components/forms/EpRadioSummative.vue.d.ts +5 -5
- package/dist/components/forms/EpSelect.vue.d.ts +36 -4
- package/dist/components/forms/EpSwitch.vue.d.ts +5 -5
- package/dist/components/forms/EpTextarea.vue.d.ts +17 -5
- package/dist/components/forms/EpToggle.vue.d.ts +17 -5
- package/dist/components/interactions/EpAccordeon.vue.d.ts +16 -8
- package/dist/components/interactions/EpContentSlider.vue.d.ts +22 -3
- package/dist/components/interactions/EpDarkmode.vue.d.ts +6 -2
- package/dist/components/interactions/EpHotsPot.vue.d.ts +18 -3
- package/dist/components/interactions/EpModal.vue.d.ts +5 -5
- package/dist/components/interactions/EpQuestion.vue.d.ts +25 -5
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +3 -3
- package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
- package/dist/components/interactions/EpTooltip.vue.d.ts +4 -4
- package/dist/components/medias/EpAudio.vue.d.ts +21 -13
- package/dist/components/medias/EpCarousel.vue.d.ts +6 -6
- package/dist/components/medias/EpIframe.vue.d.ts +5 -4
- package/dist/components/medias/EpKatex.vue.d.ts +4 -4
- package/dist/components/medias/EpLink.vue.d.ts +5 -5
- package/dist/components/medias/EpLinkVersion.vue.d.ts +16 -4
- package/dist/components/medias/EpSoftware.vue.d.ts +17 -5
- package/dist/components/medias/EpSvg.vue.d.ts +5 -5
- package/dist/components/medias/EpTerm.vue.d.ts +32 -8
- package/dist/components/medias/EpTimeLine.vue.d.ts +3 -3
- package/dist/components/medias/EpVideo.vue.d.ts +17 -9
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +5 -5
- package/dist/components/medias/EpWordDef.vue.d.ts +38 -3
- package/dist/components/signages/EpAlert.vue.d.ts +4 -4
- package/dist/components/signages/EpBadge.vue.d.ts +5 -5
- package/dist/components/signages/EpHeader.vue.d.ts +21 -5
- package/dist/components/signages/EpNothing.vue.d.ts +1 -1
- package/dist/components/signages/EpQuote.vue.d.ts +4 -4
- package/dist/components/signages/EpSkeleton.vue.d.ts +4 -4
- package/dist/components/tools/BgAudio.vue.d.ts +4 -4
- package/dist/components/tools/DisplayBox.vue.d.ts +1 -1
- package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
- package/dist/components/tools/TimelineItem.vue.d.ts +4 -4
- package/dist/ep-lib-ts.js +18 -17
- package/dist/ep-lib-ts.umd.cjs +48 -41
- package/dist/{index-Dl6z_ITi.js → index-BgNRIUzY.js} +3967 -3771
- package/dist/{index-M54_P8uC.js → index-DNwUz3uD.js} +2 -2
- package/dist/index.d.ts +84 -42
- package/dist/{prism-B0q7vMaL.js → prism-DENTMpmV.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/Btn.d.ts +8 -0
- package/package.json +2 -2
- package/src/components/basics/EpAvatar.vue +1 -1
- package/src/components/basics/EpBadge.vue +11 -2
- package/src/components/basics/EpBtn.vue +3 -15
- package/src/components/basics/EpCard.vue +21 -11
- package/src/components/basics/EpChip.vue +1 -2
- package/src/components/basics/EpImg.vue +18 -6
- package/src/components/basics/EpSection.vue +1 -1
- package/src/components/basics/EpTable.vue +5 -5
- package/src/components/basics/EpText.vue +10 -2
- package/src/components/charts/EpBarChart.vue +11 -3
- package/src/components/charts/EpFunnelChart.vue +129 -0
- package/src/components/charts/EpLineChart.vue +11 -3
- package/src/components/charts/EpPieChart.vue +12 -4
- package/src/components/educationals/EpCodeblock.vue +1 -1
- package/src/components/educationals/EpEdu.vue +17 -10
- package/src/components/educationals/EpReading.vue +45 -27
- package/src/components/educationals/EpResource.vue +2 -2
- package/src/components/educationals/EpScope.vue +1 -1
- package/src/components/forms/EpRadio.vue +1 -1
- package/src/components/forms/EpRadioSummative.vue +1 -1
- package/src/components/forms/EpSelect.vue +24 -6
- package/src/components/forms/EpSwitch.vue +1 -1
- package/src/components/forms/EpTextarea.vue +9 -1
- package/src/components/forms/EpToggle.vue +9 -1
- package/src/components/interactions/EpAccordeon.vue +13 -7
- package/src/components/interactions/EpContentSlider.vue +17 -6
- package/src/components/interactions/EpDarkmode.vue +25 -14
- package/src/components/interactions/EpHotsPot.vue +11 -2
- package/src/components/interactions/EpQuestion.vue +17 -5
- package/src/components/interactions/EpSummativeTable.vue +1 -1
- package/src/components/interactions/EpTabs.vue +1 -1
- package/src/components/interactions/EpTooltip.vue +1 -1
- package/src/components/medias/EpAudio.vue +17 -11
- package/src/components/medias/EpCarousel.vue +2 -2
- package/src/components/medias/EpIframe.vue +6 -2
- package/src/components/medias/EpKatex.vue +1 -1
- package/src/components/medias/EpLink.vue +2 -2
- package/src/components/medias/EpLinkVersion.vue +11 -3
- package/src/components/medias/EpSoftware.vue +12 -4
- package/src/components/medias/EpSvg.vue +2 -2
- package/src/components/medias/EpTerm.vue +24 -11
- package/src/components/medias/EpTimeLine.vue +2 -2
- package/src/components/medias/EpVideo.vue +13 -7
- package/src/components/medias/EpVideoPanopto.vue +2 -3
- package/src/components/medias/EpWordDef.vue +33 -11
- package/src/components/signages/EpAlert.vue +1 -1
- package/src/components/signages/EpBadge.vue +1 -1
- package/src/components/signages/EpHeader.vue +13 -3
- package/src/components/signages/EpSkeleton.vue +2 -2
- package/src/components/tools/TimelineItem.vue +1 -1
- package/dist/BgAudio-C8bS54bl.js +0 -4
- package/dist/DisplayBox-BTPVW9_v.js +0 -4
- package/dist/EpAlert-Daji8LsR.js +0 -4
- package/dist/EpAudio-Dq7twl4x.js +0 -4
- package/dist/EpBadge-DBfMe1r_.js +0 -4
- package/dist/EpBarChart-cAlm0rKf.js +0 -4
- package/dist/EpBtn-S2VJnt--.js +0 -4
- package/dist/EpCard-SvaBmdDK.js +0 -4
- package/dist/EpChip-Chn_9bRP.js +0 -4
- package/dist/EpContentSlider-Ds2GlrkO.js +0 -4
- package/dist/EpDarkmode--_9Qi6HH.js +0 -19
- package/dist/EpDivider-Bj4Zya_F.js +0 -4
- package/dist/EpEdu-Y7Lkf3Ew.js +0 -4
- package/dist/EpFlex-5yWhvYX7.js +0 -4
- package/dist/EpHeader-CEQBk1ah.js +0 -4
- package/dist/EpHotsPot-NGjKJCc8.js +0 -56
- package/dist/EpIcon-CuhZ90Zx.js +0 -4
- package/dist/EpIframe-DbPnkezB.js +0 -4
- package/dist/EpImg-DJ9gNwhJ.js +0 -4
- package/dist/EpLineChart-ALvSFQ-w.js +0 -4
- package/dist/EpLink-CQSfQHRj.js +0 -4
- package/dist/EpLinkVersion-VIxCHjDt.js +0 -4
- package/dist/EpModal-CYy1Iu1T.js +0 -4
- package/dist/EpPieChart-Cpxylmzw.js +0 -4
- package/dist/EpQuestion-gFjB_YVU.js +0 -4
- package/dist/EpQuote-C2WMKC8z.js +0 -4
- package/dist/EpRadio-CZu2BYd-.js +0 -4
- package/dist/EpRadioSummative-POEEv1YI.js +0 -4
- package/dist/EpReading-6LKvPJl5.js +0 -4
- package/dist/EpResource-Bqu38I44.js +0 -4
- package/dist/EpScope-B04S9t4O.js +0 -4
- package/dist/EpSection-B9obOS7v.js +0 -4
- package/dist/EpSelect-DLGx5g-U.js +0 -31
- package/dist/EpSkeleton-rkvPpE2y.js +0 -4
- package/dist/EpSoftware-DmH-rUDN.js +0 -4
- package/dist/EpSpinner-7XiNy9LV.js +0 -4
- package/dist/EpSummativeTable-JWOA25gE.js +0 -4
- package/dist/EpSvg-Dfvodejy.js +0 -4
- package/dist/EpTable-C0lD6aED.js +0 -4
- package/dist/EpTerm-XGV0Zf2w.js +0 -4
- package/dist/EpText-DhHXfEHv.js +0 -4
- package/dist/EpTextarea-DyMM95ER.js +0 -41
- package/dist/EpTimeLine-CDL7liGh.js +0 -4
- package/dist/EpVideo-em0qb_rk.js +0 -4
- package/dist/EpVideoPanopto-DAMRV6HD.js +0 -4
- package/dist/EpWordDef-bLyQzqx8.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as hl } from "./EpCodeblock-
|
|
1
|
+
import { g as hl } from "./EpCodeblock-DX7H-PE3.js";
|
|
2
2
|
function cl(n) {
|
|
3
3
|
return n instanceof Map ? n.clear = n.delete = n.set = function() {
|
|
4
4
|
throw new Error("map is read-only");
|
|
@@ -13479,7 +13479,7 @@ function w_() {
|
|
|
13479
13479
|
excludeEnd: !0,
|
|
13480
13480
|
contains: [].concat(s)
|
|
13481
13481
|
},
|
|
13482
|
-
|
|
13482
|
+
{}
|
|
13483
13483
|
);
|
|
13484
13484
|
return g.contains.push(r), g.contains.push(e.C_NUMBER_MODE), g.contains.push(e.C_BLOCK_COMMENT_MODE), g.contains.push(a), g;
|
|
13485
13485
|
}, c = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,86 @@
|
|
|
1
|
-
import { default as EpSkeleton } from './components/signages/EpSkeleton.vue';
|
|
2
|
-
import { default as EpQuote } from './components/signages/EpQuote.vue';
|
|
3
|
-
import { default as EpHeader } from './components/signages/EpHeader.vue';
|
|
4
|
-
import { default as EpAlert } from './components/signages/EpAlert.vue';
|
|
5
|
-
import { default as EpWordDef } from './components/medias/EpWordDef.vue';
|
|
6
|
-
import { default as EpVideoPanopto } from './components/medias/EpVideoPanopto.vue';
|
|
7
|
-
import { default as EpVideo } from './components/medias/EpVideo.vue';
|
|
8
|
-
import { default as EpTimeLine } from './components/medias/EpTimeLine.vue';
|
|
9
|
-
import { default as EpTerm } from './components/medias/EpTerm.vue';
|
|
10
|
-
import { default as EpSvg } from './components/medias/EpSvg.vue';
|
|
11
|
-
import { default as EpSoftware } from './components/medias/EpSoftware.vue';
|
|
12
|
-
import { default as EpLinkVersion } from './components/medias/EpLinkVersion.vue';
|
|
13
|
-
import { default as EpLink } from './components/medias/EpLink.vue';
|
|
14
|
-
import { default as EpKatex } from './components/medias/EpKatex.vue';
|
|
15
|
-
import { default as EpIframe } from './components/medias/EpIframe.vue';
|
|
16
|
-
import { default as EpCarousel } from './components/medias/EpCarousel.vue';
|
|
17
|
-
import { default as EpAudio } from './components/medias/EpAudio.vue';
|
|
18
|
-
import { default as EpSummativeTable } from './components/interactions/EpSummativeTable.vue';
|
|
19
|
-
import { default as EpTabs } from './components/interactions/EpTabs.vue';
|
|
20
|
-
import { default as EpQuestion } from './components/interactions/EpQuestion.vue';
|
|
21
|
-
import { default as EpModal } from './components/interactions/EpModal.vue';
|
|
22
|
-
import { default as EpContentSlider } from './components/interactions/EpContentSlider.vue';
|
|
23
|
-
import { default as EpAccordeon } from './components/interactions/EpAccordeon.vue';
|
|
24
|
-
import { default as EpScope } from './components/educationals/EpScope.vue';
|
|
25
|
-
import { default as EpResource } from './components/educationals/EpResource.vue';
|
|
26
|
-
import { default as EpReading } from './components/educationals/EpReading.vue';
|
|
27
|
-
import { default as EpEdu } from './components/educationals/EpEdu.vue';
|
|
28
|
-
import { default as EpPieChart } from './components/charts/EpPieChart.vue';
|
|
29
|
-
import { default as EpLineChart } from './components/charts/EpLineChart.vue';
|
|
30
|
-
import { default as EpBarChart } from './components/charts/EpBarChart.vue';
|
|
31
|
-
import { default as EpTable } from './components/basics/EpTable.vue';
|
|
32
|
-
import { default as EpIcon } from './components/basics/EpIcon.vue';
|
|
33
|
-
import { default as EpFlex } from './components/basics/EpFlex.vue';
|
|
34
|
-
import { default as EpSpinner } from './components/basics/EpSpinner.vue';
|
|
35
|
-
import { default as EpSection } from './components/basics/EpSection.vue';
|
|
36
|
-
import { default as EpDivider } from './components/basics/EpDivider.vue';
|
|
37
|
-
import { default as EpChip } from './components/basics/EpChip.vue';
|
|
38
|
-
import { default as EpBtn } from './components/basics/EpBtn.vue';
|
|
39
|
-
import { default as EpBadge } from './components/basics/EpBadge.vue';
|
|
40
|
-
import { default as EpCard } from './components/basics/EpCard.vue';
|
|
41
|
-
import { default as EpImg } from './components/basics/EpImg.vue';
|
|
42
1
|
import { default as EpText } from './components/basics/EpText.vue';
|
|
2
|
+
import { default as EpImg } from './components/basics/EpImg.vue';
|
|
3
|
+
import { default as EpCard } from './components/basics/EpCard.vue';
|
|
4
|
+
import { default as EpBadge } from './components/basics/EpBadge.vue';
|
|
5
|
+
import { default as EpBtn } from './components/basics/EpBtn.vue';
|
|
6
|
+
import { default as EpChip } from './components/basics/EpChip.vue';
|
|
7
|
+
import { default as EpDivider } from './components/basics/EpDivider.vue';
|
|
8
|
+
import { default as EpSection } from './components/basics/EpSection.vue';
|
|
9
|
+
import { default as EpSpinner } from './components/basics/EpSpinner.vue';
|
|
10
|
+
import { default as EpFlex } from './components/basics/EpFlex.vue';
|
|
11
|
+
import { default as EpIcon } from './components/basics/EpIcon.vue';
|
|
12
|
+
import { default as EpTable } from './components/basics/EpTable.vue';
|
|
13
|
+
import { default as EpBarChart } from './components/charts/EpBarChart.vue';
|
|
14
|
+
import { default as EpLineChart } from './components/charts/EpLineChart.vue';
|
|
15
|
+
import { default as EpPieChart } from './components/charts/EpPieChart.vue';
|
|
16
|
+
import { default as EpFunnelChart } from './components/charts/EpFunnelChart.vue';
|
|
17
|
+
import { default as EpEdu } from './components/educationals/EpEdu.vue';
|
|
18
|
+
import { default as EpReading } from './components/educationals/EpReading.vue';
|
|
19
|
+
import { default as EpResource } from './components/educationals/EpResource.vue';
|
|
20
|
+
import { default as EpScope } from './components/educationals/EpScope.vue';
|
|
21
|
+
import { default as EpAccordeon } from './components/interactions/EpAccordeon.vue';
|
|
22
|
+
import { default as EpContentSlider } from './components/interactions/EpContentSlider.vue';
|
|
23
|
+
import { default as EpModal } from './components/interactions/EpModal.vue';
|
|
24
|
+
import { default as EpQuestion } from './components/interactions/EpQuestion.vue';
|
|
25
|
+
import { default as EpTabs } from './components/interactions/EpTabs.vue';
|
|
26
|
+
import { default as EpSummativeTable } from './components/interactions/EpSummativeTable.vue';
|
|
27
|
+
import { default as EpAudio } from './components/medias/EpAudio.vue';
|
|
28
|
+
import { default as EpCarousel } from './components/medias/EpCarousel.vue';
|
|
29
|
+
import { default as EpIframe } from './components/medias/EpIframe.vue';
|
|
30
|
+
import { default as EpKatex } from './components/medias/EpKatex.vue';
|
|
31
|
+
import { default as EpLink } from './components/medias/EpLink.vue';
|
|
32
|
+
import { default as EpLinkVersion } from './components/medias/EpLinkVersion.vue';
|
|
33
|
+
import { default as EpSoftware } from './components/medias/EpSoftware.vue';
|
|
34
|
+
import { default as EpSvg } from './components/medias/EpSvg.vue';
|
|
35
|
+
import { default as EpTerm } from './components/medias/EpTerm.vue';
|
|
36
|
+
import { default as EpTimeLine } from './components/medias/EpTimeLine.vue';
|
|
37
|
+
import { default as EpVideo } from './components/medias/EpVideo.vue';
|
|
38
|
+
import { default as EpVideoPanopto } from './components/medias/EpVideoPanopto.vue';
|
|
39
|
+
import { default as EpWordDef } from './components/medias/EpWordDef.vue';
|
|
40
|
+
import { default as EpAlert } from './components/signages/EpAlert.vue';
|
|
41
|
+
import { default as EpHeader } from './components/signages/EpHeader.vue';
|
|
42
|
+
import { default as EpQuote } from './components/signages/EpQuote.vue';
|
|
43
|
+
import { default as EpSkeleton } from './components/signages/EpSkeleton.vue';
|
|
43
44
|
|
|
44
|
-
export { EpBadge,
|
|
45
|
+
export { EpBadge, //done
|
|
46
|
+
EpBtn, //done
|
|
47
|
+
EpCard, //done
|
|
48
|
+
EpChip, //done
|
|
49
|
+
EpDivider, //-------don't need
|
|
50
|
+
EpFlex, //-------don't need
|
|
51
|
+
EpIcon, //-------don't need
|
|
52
|
+
EpImg, //-------don't need
|
|
53
|
+
EpSection, //-------don't need
|
|
54
|
+
EpSpinner, //-------don't need
|
|
55
|
+
EpTable, //done
|
|
56
|
+
EpBarChart, //done
|
|
57
|
+
EpLineChart, //done
|
|
58
|
+
EpPieChart, //done
|
|
59
|
+
EpFunnelChart, EpText, // done
|
|
60
|
+
EpEdu, // done
|
|
61
|
+
EpReading, // not finish
|
|
62
|
+
EpResource, //-------don't need?
|
|
63
|
+
EpScope, //done
|
|
64
|
+
EpAccordeon, //done
|
|
65
|
+
EpContentSlider, //done
|
|
66
|
+
EpModal, //done
|
|
67
|
+
EpQuestion, //done -- need to confirm
|
|
68
|
+
EpTabs, //done
|
|
69
|
+
EpAudio, //done
|
|
70
|
+
EpCarousel, //-------- don't need
|
|
71
|
+
EpIframe, // done
|
|
72
|
+
EpKatex, // done
|
|
73
|
+
EpLink, // ---------don't need
|
|
74
|
+
EpLinkVersion, // done
|
|
75
|
+
EpSoftware, // done
|
|
76
|
+
EpSvg, // done
|
|
77
|
+
EpTerm, // done
|
|
78
|
+
EpTimeLine, // done
|
|
79
|
+
EpVideo, // done
|
|
80
|
+
EpVideoPanopto, // done
|
|
81
|
+
EpAlert, // done
|
|
82
|
+
EpHeader, //-------- don't need
|
|
83
|
+
EpQuote, // done
|
|
84
|
+
EpSkeleton, // done
|
|
85
|
+
EpWordDef, // done
|
|
86
|
+
EpSummativeTable };
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.content[data-v-
|
|
1
|
+
.content[data-v-cbe63e9f]{max-height:0;overflow:hidden}.modal-mask{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;transition:opacity .3s ease}.modal-container{margin:auto;max-height:95%;transition:all .3s ease;z-index:9999}.modal-header h3{margin-top:0;color:#42b983}.modal-body{margin:20px 0}.modal-default-button{float:right}.modal-enter-from,.modal-leave-to{opacity:0}.modal-enter-from .modal-container,.modal-leave-to .modal-container{transform:scale(1.1)}.custom_index{z-index:9999;position:absolute;right:12rem}.h-custom{height:30rem}.p-custom p{margin-bottom:1em}.v-enter-active[data-v-f93a239b],.v-leave-active[data-v-f93a239b]{transition:opacity .5s ease}.v-enter-from[data-v-f93a239b],.v-leave-to[data-v-f93a239b]{opacity:0}.katex[data-v-f9e5d352]{font-size:1.6em}.content[data-v-fba69535]{max-height:0;overflow:hidden}.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.shape{height:var(--3e2ed539);width:var(--7e73c118)}.arrow-light-top:before{content:" ";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,.2) transparent transparent transparent}.arrow-dark-top:before{content:" ";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:black transparent transparent transparent}.arrow-light-bottom:before{content:"";position:absolute;display:inline-block;left:50%;bottom:100%;border-right:7px solid transparent;border-bottom:7px solid #eee;border-left:7px solid transparent;border-bottom-color:#0003}.arrow-dark-bottom:before{content:"";position:absolute;display:inline-block;left:50%;bottom:100%;border-right:7px solid transparent;border-bottom:7px solid black;border-left:7px solid transparent;border-bottom-color:black transparent transparent transparent}.arrow-light-left:before{position:absolute;display:inline-block;left:100%;top:50%;content:"";margin-right:0;border-top:5px solid transparent;border-left:5px solid #eee;border-bottom:5px solid transparent;border-left-color:#0003}.arrow-dark-left:before{position:absolute;display:inline-block;left:100%;top:50%;content:"";margin-right:0;border-top:5px solid transparent;border-left:5px solid black;border-bottom:5px solid transparent;border-left-color:black transparent transparent transparent}.arrow-light-right:before{position:absolute;display:inline-block;right:100%;top:50%;content:"";margin-right:0;border-top:5px solid transparent;border-right:5px solid #eee;border-bottom:5px solid transparent;border-right-color:#0003}.arrow-dark-right:before{position:absolute;display:inline-block;right:100%;top:50%;content:"";margin-right:0;border-top:5px solid transparent;border-right:5px solid black;border-bottom:5px solid transparent;border-right-color:black transparent transparent transparent}
|
package/dist/types/Btn.d.ts
CHANGED
|
@@ -2,34 +2,42 @@ export declare const bgVariants: {
|
|
|
2
2
|
base: {
|
|
3
3
|
default: string;
|
|
4
4
|
outlined: string;
|
|
5
|
+
text: string;
|
|
5
6
|
};
|
|
6
7
|
primary: {
|
|
7
8
|
default: string;
|
|
8
9
|
outlined: string;
|
|
10
|
+
text: string;
|
|
9
11
|
};
|
|
10
12
|
secondary: {
|
|
11
13
|
default: string;
|
|
12
14
|
outlined: string;
|
|
15
|
+
text: string;
|
|
13
16
|
};
|
|
14
17
|
accent: {
|
|
15
18
|
default: string;
|
|
16
19
|
outlined: string;
|
|
20
|
+
text: string;
|
|
17
21
|
};
|
|
18
22
|
info: {
|
|
19
23
|
default: string;
|
|
20
24
|
outlined: string;
|
|
25
|
+
text: string;
|
|
21
26
|
};
|
|
22
27
|
warning: {
|
|
23
28
|
default: string;
|
|
24
29
|
outlined: string;
|
|
30
|
+
text: string;
|
|
25
31
|
};
|
|
26
32
|
success: {
|
|
27
33
|
default: string;
|
|
28
34
|
outlined: string;
|
|
35
|
+
text: string;
|
|
29
36
|
};
|
|
30
37
|
error: {
|
|
31
38
|
default: string;
|
|
32
39
|
outlined: string;
|
|
40
|
+
text: string;
|
|
33
41
|
};
|
|
34
42
|
};
|
|
35
43
|
export declare const sizeVariants: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep-lib-ts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"src/components/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typescript": "^5.4.5",
|
|
52
52
|
"vite": "^5.2.10",
|
|
53
53
|
"vite-plugin-dts": "^3.9.0",
|
|
54
|
-
"vue-tsc": "^2.0.
|
|
54
|
+
"vue-tsc": "^2.0.17"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vue": "^3.2.45"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
|
|
4
4
|
import { toRefs, computed } from "vue";
|
|
5
|
-
import { TypeAvatar, typeAvatar } from "../../types/Avatar"; //"../../types/Avatar";
|
|
5
|
+
import { type TypeAvatar, typeAvatar } from "../../types/Avatar"; //"../../types/Avatar";
|
|
6
6
|
|
|
7
7
|
type Color = "primary"|"secondary"|"accent"|"error"|"warning"|"success"|"info"|"question"|"tip";
|
|
8
8
|
type Variant = "circle"|"square"|"rounded";
|
|
@@ -8,12 +8,21 @@ interface Props {
|
|
|
8
8
|
outlined?: boolean;
|
|
9
9
|
square?: boolean;
|
|
10
10
|
iconPath?: string | null;
|
|
11
|
+
labels?:{
|
|
12
|
+
inProgress?: string;
|
|
13
|
+
}
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
const props = withDefaults(defineProps<Props>(), {
|
|
14
17
|
color: "primary",
|
|
15
18
|
square: false,
|
|
16
19
|
iconPath: null,
|
|
20
|
+
labels:()=>{
|
|
21
|
+
return{
|
|
22
|
+
inProgress: "In Progress"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
});
|
|
18
27
|
|
|
19
28
|
const styleChip = computed(() => {
|
|
@@ -42,7 +51,7 @@ const { iconPath } = toRefs(props);
|
|
|
42
51
|
<EpIcon v-if="iconPath" :iconPath="iconPath" size="32" extra-class="p-1"></EpIcon>
|
|
43
52
|
</span>
|
|
44
53
|
</span>-->
|
|
45
|
-
<div class="p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning">
|
|
46
|
-
<p class="text-center text-error font-bold uppercase">
|
|
54
|
+
<div class="p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning dark:bg-warning-dark">
|
|
55
|
+
<p class="text-center text-error font-bold uppercase">{{labels.inProgress}}</p>
|
|
47
56
|
</div>
|
|
48
57
|
</template>
|
|
@@ -3,7 +3,7 @@ import { toRefs, computed } from "vue";
|
|
|
3
3
|
import EpIcon from './EpIcon.vue';
|
|
4
4
|
import useColors from "../../composables/useColors";
|
|
5
5
|
///types with Capital letters... object with styles same name in lowercase
|
|
6
|
-
import { ButtonBgVariant, ButtonSize, bgVariants, sizeVariants } from "../../types/Btn";
|
|
6
|
+
import { type ButtonBgVariant, type ButtonSize, bgVariants, sizeVariants } from "../../types/Btn";
|
|
7
7
|
|
|
8
8
|
//props of components
|
|
9
9
|
interface Props {
|
|
@@ -16,7 +16,6 @@ interface Props {
|
|
|
16
16
|
prependIcon?: string | null;
|
|
17
17
|
outlined?:boolean;
|
|
18
18
|
text?:boolean;
|
|
19
|
-
color?:string;
|
|
20
19
|
extraClass?: string | null;
|
|
21
20
|
href?:string;
|
|
22
21
|
}
|
|
@@ -27,20 +26,10 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
27
26
|
size:'medium',
|
|
28
27
|
appendIcon: null,
|
|
29
28
|
prependIcon: null,
|
|
30
|
-
text:false,
|
|
31
29
|
extraClass:null,
|
|
32
|
-
color:'text-black'
|
|
33
30
|
});
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
//get styles tailwind
|
|
37
|
-
const colorText = computed(()=>{
|
|
38
|
-
if(props.outlined){
|
|
39
|
-
return ''
|
|
40
|
-
}
|
|
41
|
-
return props.color
|
|
42
|
-
})
|
|
43
|
-
|
|
44
33
|
|
|
45
34
|
const isOutlined = computed(()=>{
|
|
46
35
|
if(props.outlined){
|
|
@@ -52,8 +41,7 @@ const isOutlined = computed(()=>{
|
|
|
52
41
|
///add bg or text
|
|
53
42
|
const styleBtn = computed(()=>{
|
|
54
43
|
if(props.text){
|
|
55
|
-
|
|
56
|
-
return `uppercase ${useColors('text', props.type)} hover:${useColors('bg', props.type + 'light')}`
|
|
44
|
+
return `${bgVariants[props.type].text}`
|
|
57
45
|
}
|
|
58
46
|
return `${bgVariants[props.type]?.[isOutlined.value]}`
|
|
59
47
|
})
|
|
@@ -61,9 +49,9 @@ const styleBtn = computed(()=>{
|
|
|
61
49
|
const styles = computed(() => {
|
|
62
50
|
return `
|
|
63
51
|
transition
|
|
52
|
+
font-medium
|
|
64
53
|
${styleBtn.value}
|
|
65
54
|
${sizeVariants[props.size]}
|
|
66
|
-
${colorText.value}
|
|
67
55
|
${props.disabled ? "opacity-50" : ""}
|
|
68
56
|
${props.block ? "w-full block" : ""}
|
|
69
57
|
${props.rounded ? "rounded-md":""}
|
|
@@ -3,7 +3,7 @@ import { toRefs, computed } from "vue";
|
|
|
3
3
|
import EpIcon from './EpIcon.vue';
|
|
4
4
|
import useColors from '../../composables/useColors'
|
|
5
5
|
//types with capital letter, object styles in lowercase
|
|
6
|
-
import { Density, density_style } from "../../types/Card";
|
|
6
|
+
import { type Density, density_style } from "../../types/Card";
|
|
7
7
|
|
|
8
8
|
interface Props {
|
|
9
9
|
title?: string | null;
|
|
@@ -41,9 +41,9 @@ const borderColor = computed(() => {
|
|
|
41
41
|
return `border solid ${useColors('border', props.color)}`
|
|
42
42
|
}
|
|
43
43
|
if (props.outlined) {
|
|
44
|
-
return 'border solid border-
|
|
44
|
+
return 'border solid border-primary dark:border-white'
|
|
45
45
|
}
|
|
46
|
-
return ''
|
|
46
|
+
return 'dark:border dark:solid dar:border-white'
|
|
47
47
|
})
|
|
48
48
|
|
|
49
49
|
const bgColor = computed(() => {
|
|
@@ -66,29 +66,39 @@ const density_class = computed(()=> {
|
|
|
66
66
|
})
|
|
67
67
|
|
|
68
68
|
const stylesCard = computed(()=> {
|
|
69
|
-
return
|
|
69
|
+
return `
|
|
70
|
+
${shadowCard.value}
|
|
71
|
+
${borderColor.value}
|
|
72
|
+
${bgColor.value}
|
|
73
|
+
${props.maxWidth}
|
|
74
|
+
rounded-md
|
|
75
|
+
dark:bg-base-dark
|
|
76
|
+
datk:text-white
|
|
77
|
+
my-4 `
|
|
70
78
|
})
|
|
71
79
|
|
|
72
80
|
|
|
73
|
-
const { title, subtitle, icon, src
|
|
81
|
+
const { title, subtitle, icon, src } = toRefs(props)
|
|
74
82
|
|
|
75
83
|
</script>
|
|
76
84
|
<template>
|
|
77
|
-
<div :class="`${stylesCard}
|
|
85
|
+
<div :class="`${stylesCard} `">
|
|
78
86
|
<img v-if="src" :src="src" class="w-full rounded-t-md" alt="header card">
|
|
79
87
|
<div :class="density_class">
|
|
80
|
-
<div v-if="title || subtitle" class="mb-2 flex items-center justify-between">
|
|
88
|
+
<div v-if="title || subtitle" class="mb-2 flex items-center justify-between dark:text-white">
|
|
81
89
|
<div>
|
|
82
|
-
<h3 class="text-2xl font-bold">{{ title }}</h3>
|
|
83
|
-
<h4 :class="`text-xs ${subTitleText}`">{{ subtitle }}</h4>
|
|
90
|
+
<h3 class="text-2xl dark:text-white font-bold">{{ title }}</h3>
|
|
91
|
+
<h4 :class="`text-xs dark:text-white ${subTitleText}`">{{ subtitle }}</h4>
|
|
84
92
|
</div>
|
|
85
93
|
<div v-if="icon">
|
|
86
94
|
<EpIcon :icon-path="icon"></EpIcon>
|
|
87
95
|
</div>
|
|
88
96
|
</div>
|
|
89
97
|
<slot name="card-header"></slot>
|
|
90
|
-
<
|
|
91
|
-
|
|
98
|
+
<div class="dark:text-white">
|
|
99
|
+
<slot></slot>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="dark:text-white"><slot name="card-actions"></slot></div>
|
|
92
102
|
</div>
|
|
93
103
|
</div>
|
|
94
104
|
</template>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { toRefs, computed } from 'vue';
|
|
3
3
|
import EpIcon from './EpIcon.vue';
|
|
4
4
|
//import useColors from '../../composables/useColors'
|
|
5
|
-
import { ChipBgVariant, ChipSize, chipVariants, sizeChipVariants } from '../../types/Chip';
|
|
5
|
+
import { type ChipBgVariant, type ChipSize, chipVariants, sizeChipVariants } from '../../types/Chip';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
type?:ChipBgVariant;
|
|
@@ -47,7 +47,6 @@ const colorText = computed(()=>{
|
|
|
47
47
|
|
|
48
48
|
const stylesChip = computed(()=>{
|
|
49
49
|
return `
|
|
50
|
-
${colorText.value}
|
|
51
50
|
${sizeChipVariants[props.size]}
|
|
52
51
|
${typeChip.value}
|
|
53
52
|
${chipVariants[props.type]?.[isOutlined.value]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { toRefs, ref, computed } from 'vue'
|
|
3
|
-
import { SizeThumbnail, sizeThumbnailStyle } from '../../types/Image'
|
|
3
|
+
import { type SizeThumbnail, sizeThumbnailStyle } from '../../types/Image'
|
|
4
4
|
import { useImage } from '@vueuse/core'
|
|
5
5
|
import EpModal from '../interactions/EpModal.vue'
|
|
6
6
|
import EpIcon from '../basics/EpIcon.vue'
|
|
@@ -21,7 +21,12 @@ interface Props {
|
|
|
21
21
|
bib?: string;
|
|
22
22
|
title?: string;
|
|
23
23
|
noModal?:boolean;
|
|
24
|
-
cols?: string | number //posible type à venir => basis-1/12... basis-11/12 to basis-full
|
|
24
|
+
cols?: string | number; //posible type à venir => basis-1/12... basis-11/12 to basis-full
|
|
25
|
+
labels?:{
|
|
26
|
+
reference?: string;
|
|
27
|
+
fermer?:string;
|
|
28
|
+
referenceLibrary?:string;
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -29,7 +34,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
29
34
|
cols: "6",
|
|
30
35
|
thumbnail: false,
|
|
31
36
|
noModal:false,
|
|
32
|
-
sizeThumbnail:"medium"
|
|
37
|
+
sizeThumbnail:"medium",
|
|
38
|
+
labels:()=>{
|
|
39
|
+
return {
|
|
40
|
+
reference: "Reference",
|
|
41
|
+
fermer:"Fermer",
|
|
42
|
+
referenceLibrary:"Reference Library"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
33
45
|
})
|
|
34
46
|
|
|
35
47
|
const Cols = [
|
|
@@ -99,7 +111,7 @@ const { src, alt, title, caption, thumbnail, bib, sizeThumbnail } = toRefs(props
|
|
|
99
111
|
<div class="px-4 py-2" v-if="title || caption || bib">
|
|
100
112
|
<h2 class="text-2xl font-bold">{{ title }}</h2>
|
|
101
113
|
<p class="text-gray-500 text-sm mt-4">{{ caption }}</p>
|
|
102
|
-
<div class="text-right"><EpBtn @click="toggleBib" size="small">
|
|
114
|
+
<div class="text-right"><EpBtn @click="toggleBib" size="small">{{labels.reference}}</EpBtn></div>
|
|
103
115
|
</div>
|
|
104
116
|
</div>
|
|
105
117
|
</div>
|
|
@@ -122,10 +134,10 @@ const { src, alt, title, caption, thumbnail, bib, sizeThumbnail } = toRefs(props
|
|
|
122
134
|
</div>
|
|
123
135
|
<!-- <div class="flex justify-end"><EpBtn @click="toggleModal" size="small" type="error" outlined>Fermer</EpBtn></div> -->
|
|
124
136
|
</EpModal>
|
|
125
|
-
<EpModal v-model="showBib" title="
|
|
137
|
+
<EpModal v-model="showBib" title="labels.referenceLibrary">
|
|
126
138
|
|
|
127
139
|
<div class="text-gray-700 mt-4" v-html="renderBib"></div>
|
|
128
|
-
<div class="flex justify-end"><EpBtn @click="toggleBib" size="small" type="error" outlined>
|
|
140
|
+
<div class="flex justify-end"><EpBtn @click="toggleBib" size="small" type="error" outlined>{{labels.fermer}}</EpBtn></div>
|
|
129
141
|
</EpModal>
|
|
130
142
|
</div>
|
|
131
143
|
</template>
|
|
@@ -13,18 +13,18 @@ const props = withDefaults(defineProps<Props>(),{
|
|
|
13
13
|
|
|
14
14
|
const {headers, arrayContent, title} = toRefs(props)
|
|
15
15
|
|
|
16
|
-
const styleTh ="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider";
|
|
16
|
+
const styleTh ="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-white";
|
|
17
17
|
</script>
|
|
18
18
|
<template>
|
|
19
19
|
<EpCard flat :title="title">
|
|
20
|
-
<table class="min-w-full divide-y
|
|
21
|
-
<thead class="bg-gray-50" v-if="headers">
|
|
20
|
+
<table class="min-w-full divide-y shadow dark:bg-base-dark">
|
|
21
|
+
<thead class="bg-gray-50 dark:bg-base-dark" v-if="headers">
|
|
22
22
|
<tr>
|
|
23
23
|
<th v-for="(title, i) in headers" :key="`th-${i}`" scope="col" :class="styleTh">{{title}}</th>
|
|
24
24
|
</tr>
|
|
25
25
|
</thead>
|
|
26
|
-
<tbody class="bg-white divide-y
|
|
27
|
-
<tr v-for="(tr, i) in arrayContent" :key="`tr-${i}`" class="hover:bg-gray-50">
|
|
26
|
+
<tbody class="bg-white divide-y dark:bg-base-dark">
|
|
27
|
+
<tr v-for="(tr, i) in arrayContent" :key="`tr-${i}`" class="hover:bg-gray-50 dark:hover:bg-black">
|
|
28
28
|
<td v-for="(value, j) in tr" :key="`td-${i}-${j}`" class="px-6 py-4">{{value}}</td>
|
|
29
29
|
</tr>
|
|
30
30
|
</tbody>
|
|
@@ -9,15 +9,23 @@ interface Props {
|
|
|
9
9
|
content: string;
|
|
10
10
|
title?: string | null;
|
|
11
11
|
compact?: boolean;
|
|
12
|
+
labels?:{
|
|
13
|
+
enSavoirPlus?:string;
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
const props = withDefaults(defineProps<Props>(), {
|
|
15
18
|
compact: false,
|
|
19
|
+
labels:()=>{
|
|
20
|
+
return {
|
|
21
|
+
enSavoirPlus:"En savoir plus"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
16
24
|
});
|
|
17
25
|
|
|
18
26
|
const renderTitle = computed(() => {
|
|
19
27
|
if (!props.title) {
|
|
20
|
-
return
|
|
28
|
+
return props.labels.enSavoirPlus;
|
|
21
29
|
}
|
|
22
30
|
return props.title;
|
|
23
31
|
});
|
|
@@ -108,7 +116,7 @@ const { compact } = toRefs(props);
|
|
|
108
116
|
</script>
|
|
109
117
|
|
|
110
118
|
<template>
|
|
111
|
-
<div class="px-2">
|
|
119
|
+
<div class="px-2 text-black dark:text-white ">
|
|
112
120
|
<myRenderComponent v-if="!compact"></myRenderComponent>
|
|
113
121
|
<EpAccordeon outlined :title="renderTitle" v-else>
|
|
114
122
|
<myRenderComponent></myRenderComponent>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { computed, toRefs } from "vue";
|
|
4
4
|
import EpEdu from "../educationals/EpEdu.vue";
|
|
5
5
|
import { mdiChartBar } from "@mdi/js";
|
|
6
|
-
import { MediaVariants } from "../../types/Medias";
|
|
6
|
+
import { type MediaVariants } from "../../types/Medias";
|
|
7
7
|
import { isHtml } from "../../composables/isHtml";
|
|
8
8
|
import { useMarkdown } from "../../composables/useMarkdown";
|
|
9
9
|
|
|
@@ -32,11 +32,19 @@ interface Props {
|
|
|
32
32
|
mandateLevel?: string | null;
|
|
33
33
|
source?:string;
|
|
34
34
|
width?:string;
|
|
35
|
+
labels?:{
|
|
36
|
+
dataNoDisponible?:string;
|
|
37
|
+
}
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
const props = withDefaults(defineProps<Props>(), {
|
|
38
41
|
center: true,
|
|
39
|
-
width:"500"
|
|
42
|
+
width:"500",
|
|
43
|
+
labels:()=>{
|
|
44
|
+
return {
|
|
45
|
+
dataNoDisponible:"Data no disponible"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
40
48
|
});
|
|
41
49
|
|
|
42
50
|
const renderText = computed(() => {
|
|
@@ -72,7 +80,7 @@ const { center, series, source, width } = toRefs(props)
|
|
|
72
80
|
<apexchart :width="width" type="bar" :options="globalOptions" :series="series"></apexchart>
|
|
73
81
|
</div>
|
|
74
82
|
<div v-else>
|
|
75
|
-
<p>
|
|
83
|
+
<p>{{labels.dataNoDisponible}}</p>
|
|
76
84
|
</div>
|
|
77
85
|
</template>
|
|
78
86
|
<template #actions v-if="source">
|