ep-lib-ts 1.0.18 → 1.0.19
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-CKMrKvjv.js +4 -0
- package/dist/DisplayBox-DxJigy53.js +4 -0
- package/dist/EpAlert-BqvDmEep.js +4 -0
- package/dist/EpAudio-CyomqvYa.js +4 -0
- package/dist/EpBadge-DFfoeUqw.js +4 -0
- package/dist/EpBarChart-DwF29tfi.js +4 -0
- package/dist/EpBtn-D3fxE7wP.js +4 -0
- package/dist/EpCard-WNRIN2Qz.js +4 -0
- package/dist/EpChip-JJs-qijI.js +4 -0
- package/dist/EpContentSlider-BHpNCRHI.js +4 -0
- package/dist/{EpDarkmode-BFtEIM2f.js → EpDarkmode-WK7KrgeR.js} +1 -1
- package/dist/EpDivider-C9UXFEUT.js +4 -0
- package/dist/EpEdu-CmJKCO5B.js +4 -0
- package/dist/EpFlex-C5sEGTgz.js +4 -0
- package/dist/EpFunnelChart-DC8NdLUF.js +4 -0
- package/dist/EpHeader-DlyMgJtd.js +4 -0
- package/dist/{EpHover-CEKgKxEp.js → EpHover-D-ITIxyW.js} +1 -1
- package/dist/EpIcon-DirmF3Kh.js +4 -0
- package/dist/EpIframe-CLG5NpBc.js +4 -0
- package/dist/EpImg-BZq0Dn4b.js +4 -0
- package/dist/{EpInput-Bv2ajGF2.js → EpInput-JDpvLb5H.js} +1 -1
- package/dist/EpLineChart-Bzsb3FmU.js +4 -0
- package/dist/EpLink-BGF7Ys8v.js +4 -0
- package/dist/EpLinkVersion-B3qRqaiX.js +4 -0
- package/dist/{EpList-BcRsDnkP.js → EpList-Ct1dwrl5.js} +1 -1
- package/dist/EpModal-Dgvi2ISG.js +4 -0
- package/dist/{EpNothing-DyCuyPon.js → EpNothing-DZ-PV3zK.js} +1 -1
- package/dist/EpPieChart-BfPz0vGM.js +4 -0
- package/dist/EpQuestion-BJVvBYrn.js +4 -0
- package/dist/EpQuote-CooiRiOg.js +4 -0
- package/dist/EpRadio-G6mgbsaf.js +4 -0
- package/dist/EpRadioSummative-f4ZPkVII.js +4 -0
- package/dist/EpReading-BIJ0Jros.js +4 -0
- package/dist/EpResource-Bh9mwnrZ.js +4 -0
- package/dist/EpScope-BeNxldy9.js +4 -0
- package/dist/EpSection-JCuaXIP9.js +4 -0
- package/dist/{EpSelect-CHIE9dYe.js → EpSelect-CBSt3960.js} +1 -1
- package/dist/EpSkeleton-cozPnNT5.js +4 -0
- package/dist/EpSoftware-U-fWQb2t.js +4 -0
- package/dist/EpSpinner-CSVjuUKt.js +4 -0
- package/dist/EpSummativeTable-P8kxfW6Z.js +4 -0
- package/dist/EpSvg-D7G_PYk2.js +4 -0
- package/dist/EpTable-CYmMpwgD.js +4 -0
- package/dist/EpTerm-DZcuKSbT.js +4 -0
- package/dist/EpText-hf9dtHmn.js +4 -0
- package/dist/EpTimeLine-CPS2t21j.js +4 -0
- package/dist/EpVideo-DiTA6QBx.js +4 -0
- package/dist/EpVideoPanopto-Cd5hVKVN.js +4 -0
- package/dist/EpWordDef-C7swN5K4.js +4 -0
- package/dist/components/basics/EpBadge.vue.d.ts +0 -12
- package/dist/components/basics/EpText.vue.d.ts +20 -12
- package/dist/components/charts/EpBarChart.vue.d.ts +4 -13
- package/dist/components/charts/EpFunnelChart.vue.d.ts +0 -1
- package/dist/components/charts/EpLineChart.vue.d.ts +4 -13
- package/dist/components/charts/EpPieChart.vue.d.ts +4 -13
- package/dist/components/educationals/EpEdu.vue.d.ts +1 -1
- package/dist/components/educationals/EpReading.vue.d.ts +25 -45
- package/dist/components/educationals/EpResource.vue.d.ts +1 -1
- package/dist/components/educationals/EpScope.vue.d.ts +4 -12
- package/dist/components/forms/EpSelect.vue.d.ts +4 -4
- package/dist/components/forms/EpTextarea.vue.d.ts +3 -3
- package/dist/components/forms/EpToggle.vue.d.ts +3 -3
- package/dist/components/interactions/EpContentSlider.vue.d.ts +8 -16
- package/dist/components/interactions/EpQuestion.vue.d.ts +13 -21
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +8 -1
- package/dist/components/medias/EpAudio.vue.d.ts +9 -17
- package/dist/components/medias/EpCarousel.vue.d.ts +12 -4
- package/dist/components/medias/EpIframe.vue.d.ts +2 -1
- package/dist/components/medias/EpKatex.vue.d.ts +0 -1
- package/dist/components/medias/EpLink.vue.d.ts +1 -4
- package/dist/components/medias/EpSoftware.vue.d.ts +6 -15
- package/dist/components/medias/EpSvg.vue.d.ts +3 -1
- package/dist/components/medias/EpTerm.vue.d.ts +20 -28
- package/dist/components/medias/EpVideo.vue.d.ts +6 -13
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +1 -1
- package/dist/components/medias/EpWordDef.vue.d.ts +20 -28
- package/dist/components/signages/EpHeader.vue.d.ts +2 -2
- package/dist/ep-lib-ts.js +1 -1
- package/dist/ep-lib-ts.umd.cjs +53 -36
- package/dist/{index-ClOMmLUm.js → index-BWscolZE.js} +2876 -2910
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/basics/EpBadge.vue +1 -10
- package/src/components/basics/EpText.vue +28 -9
- package/src/components/charts/EpBarChart.vue +6 -12
- package/src/components/charts/EpFunnelChart.vue +1 -2
- package/src/components/charts/EpLineChart.vue +6 -12
- package/src/components/charts/EpPieChart.vue +7 -12
- package/src/components/educationals/EpEdu.vue +2 -9
- package/src/components/educationals/EpReading.vue +28 -37
- package/src/components/educationals/EpResource.vue +5 -2
- package/src/components/educationals/EpScope.vue +10 -18
- package/src/components/interactions/EpContentSlider.vue +8 -13
- package/src/components/interactions/EpQuestion.vue +12 -17
- package/src/components/interactions/EpSummativeTable.vue +5 -2
- package/src/components/medias/EpAudio.vue +7 -13
- package/src/components/medias/EpCarousel.vue +9 -32
- package/src/components/medias/EpIframe.vue +2 -1
- package/src/components/medias/EpKatex.vue +1 -2
- package/src/components/medias/EpLink.vue +4 -6
- package/src/components/medias/EpSoftware.vue +7 -12
- package/src/components/medias/EpSvg.vue +11 -2
- package/src/components/medias/EpTerm.vue +16 -23
- package/src/components/medias/EpVideo.vue +18 -13
- package/src/components/medias/EpVideoPanopto.vue +1 -1
- package/src/components/medias/EpWordDef.vue +15 -21
- package/dist/BgAudio-B4ZG8DU_.js +0 -4
- package/dist/DisplayBox-NnuAJFCp.js +0 -4
- package/dist/EpAlert-3wG87bqj.js +0 -4
- package/dist/EpAudio-DrZLWh49.js +0 -4
- package/dist/EpBadge-B0bGd4AE.js +0 -4
- package/dist/EpBarChart-CLEINSXT.js +0 -4
- package/dist/EpBtn-CgxjhKFR.js +0 -4
- package/dist/EpCard-Cin42ELy.js +0 -4
- package/dist/EpChip-BZtGNmZy.js +0 -4
- package/dist/EpContentSlider-BmCamlS6.js +0 -4
- package/dist/EpDivider-Dd6ni7BI.js +0 -4
- package/dist/EpEdu-LoNOrLjR.js +0 -4
- package/dist/EpFlex-S10gXDSD.js +0 -4
- package/dist/EpFunnelChart-ttkjaryC.js +0 -4
- package/dist/EpHeader-CuIRpGKZ.js +0 -4
- package/dist/EpIcon-CVTil-7a.js +0 -4
- package/dist/EpIframe-CHOCN7YY.js +0 -4
- package/dist/EpImg-Cvis2XoU.js +0 -4
- package/dist/EpLineChart-UE1X4YAb.js +0 -4
- package/dist/EpLink-JcgxaP92.js +0 -4
- package/dist/EpLinkVersion-C3yI0GaV.js +0 -4
- package/dist/EpModal-C-39yF0o.js +0 -4
- package/dist/EpPieChart-DANs5BTf.js +0 -4
- package/dist/EpQuestion-BjenPOWb.js +0 -4
- package/dist/EpQuote-5Y3RBP7v.js +0 -4
- package/dist/EpRadio-CvjvaDzf.js +0 -4
- package/dist/EpRadioSummative-BTGCrFdD.js +0 -4
- package/dist/EpReading-CMNjPHyJ.js +0 -4
- package/dist/EpResource-Wg6FLIS_.js +0 -4
- package/dist/EpScope-DyE5bFxA.js +0 -4
- package/dist/EpSection-Bs3Paa95.js +0 -4
- package/dist/EpSkeleton-Cj82fvVw.js +0 -4
- package/dist/EpSoftware-CcPBO_uQ.js +0 -4
- package/dist/EpSpinner-DFpt3e7D.js +0 -4
- package/dist/EpSummativeTable-CvfItlt5.js +0 -4
- package/dist/EpSvg-CH2qCKXL.js +0 -4
- package/dist/EpTable-joBdQdCD.js +0 -4
- package/dist/EpTerm-WWmfth0A.js +0 -4
- package/dist/EpText-Byspbv4R.js +0 -4
- package/dist/EpTimeLine-C7DnPTVv.js +0 -4
- package/dist/EpVideo-CMA5fOd8.js +0 -4
- package/dist/EpVideoPanopto-BWn7uCd2.js +0 -4
- package/dist/EpWordDef-D40lSagN.js +0 -4
|
@@ -17,20 +17,18 @@ import EpAlert from "../signages/EpAlert.vue";
|
|
|
17
17
|
interface Props {
|
|
18
18
|
title?: string;
|
|
19
19
|
intentions?: string;
|
|
20
|
+
labelIntentions?:string;
|
|
20
21
|
hideIcon?: boolean;
|
|
21
22
|
type?: MediaVariants;
|
|
22
|
-
mandateLevel?: string | null;
|
|
23
23
|
question: string;
|
|
24
24
|
answers: Answer[];
|
|
25
25
|
shuffle?: boolean;
|
|
26
26
|
before?: boolean;
|
|
27
27
|
numeration?: boolean;
|
|
28
28
|
src?: string | null;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
tryagain?:string;
|
|
33
|
-
}
|
|
29
|
+
labelNoAnswer?:string;
|
|
30
|
+
labelAnswerBtn?:string;
|
|
31
|
+
labelTryAgainBtn?:string;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -39,13 +37,10 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
39
37
|
shuffle: false,
|
|
40
38
|
before: false,
|
|
41
39
|
numeration: false,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
tryagain: "Réessayer"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
40
|
+
labelNoAnswer:"Veuillez choisir une réponse",
|
|
41
|
+
labelAnswerBtn : "Valider",
|
|
42
|
+
labelTryAgainBtn: "Réessayer"
|
|
43
|
+
|
|
49
44
|
});
|
|
50
45
|
|
|
51
46
|
const renderText = computed(() => {
|
|
@@ -127,7 +122,7 @@ const { title, intentions, hideIcon, question, src } = toRefs(props);
|
|
|
127
122
|
:type="type"
|
|
128
123
|
:hideIcon="hideIcon"
|
|
129
124
|
:icon="mdiHelpCircle"
|
|
130
|
-
:
|
|
125
|
+
:label-intentions="labelIntentions"
|
|
131
126
|
>
|
|
132
127
|
<template #intentions v-if="renderText">
|
|
133
128
|
<div v-html="renderText"></div>
|
|
@@ -161,7 +156,7 @@ const { title, intentions, hideIcon, question, src } = toRefs(props);
|
|
|
161
156
|
</li>
|
|
162
157
|
</ol>
|
|
163
158
|
<EpAlert type="error" outlined noIcon v-if="!valid">
|
|
164
|
-
{{
|
|
159
|
+
{{labelNoAnswer}}
|
|
165
160
|
</EpAlert>
|
|
166
161
|
</div>
|
|
167
162
|
|
|
@@ -181,9 +176,9 @@ const { title, intentions, hideIcon, question, src } = toRefs(props);
|
|
|
181
176
|
:disabled="answered"
|
|
182
177
|
outlined
|
|
183
178
|
extraClass="mr-2"
|
|
184
|
-
>{{
|
|
179
|
+
>{{labelAnswerBtn}}</EpBtn
|
|
185
180
|
>
|
|
186
|
-
<EpBtn type="primary" v-if="answered" @click="reset" outlined>{{
|
|
181
|
+
<EpBtn type="primary" v-if="answered" @click="reset" outlined>{{labelTryAgainBtn}}</EpBtn>
|
|
187
182
|
</div>
|
|
188
183
|
</template>
|
|
189
184
|
<!-- <template #actions>
|
|
@@ -8,9 +8,12 @@ const totalValue = ref<number[]>([])
|
|
|
8
8
|
interface Props {
|
|
9
9
|
title?:string;
|
|
10
10
|
questions:QuestionSummative[];
|
|
11
|
+
totalLabel?:string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
totalLabel:"Total :"
|
|
16
|
+
})
|
|
14
17
|
|
|
15
18
|
const {title, questions} = toRefs(props)
|
|
16
19
|
|
|
@@ -50,7 +53,7 @@ const transformNumber = (value:string|number) => {
|
|
|
50
53
|
<EpDivider />
|
|
51
54
|
</template>
|
|
52
55
|
<div class="text-right pr-16">
|
|
53
|
-
<span class="text-sm font-semibold uppercase">
|
|
56
|
+
<span class="text-sm font-semibold uppercase">{{ totalLabel }} {{ resultSummative }}</span>
|
|
54
57
|
</div>
|
|
55
58
|
</div>
|
|
56
59
|
</template>
|
|
@@ -21,22 +21,16 @@ interface Props {
|
|
|
21
21
|
bgImg?:string;
|
|
22
22
|
type?: MediaVariants;
|
|
23
23
|
hideIcon?: boolean;
|
|
24
|
-
mandateLevel?:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
messageError?:string;
|
|
28
|
-
}
|
|
24
|
+
mandateLevel?:MandateLevel | null;
|
|
25
|
+
labelIntentions?: string;
|
|
26
|
+
messageError?:string;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
const props = withDefaults(defineProps<Props>(), {
|
|
32
30
|
type: 'base',
|
|
33
31
|
hideIcon: false,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
intentions: "Intentions d'écoute",
|
|
37
|
-
messageError:"Mauvais url"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
32
|
+
labelIntentions: "Intentions d'écoute",
|
|
33
|
+
messageError:"Mauvais url"
|
|
40
34
|
})
|
|
41
35
|
|
|
42
36
|
//regex url panopto udem
|
|
@@ -82,7 +76,7 @@ const { src, title, hideIcon, mandateLevel, bgImg } = toRefs(props)
|
|
|
82
76
|
|
|
83
77
|
<template>
|
|
84
78
|
|
|
85
|
-
<EpEdu :title="title" :labelIntentions="
|
|
79
|
+
<EpEdu :title="title" :labelIntentions="labelIntentions" :type="type" :hideIcon="hideIcon" :icon="mdiHeadphones" :mandateLevel="mandateLevel">
|
|
86
80
|
<template #intentions v-if="renderText">
|
|
87
81
|
<div v-html="renderText"></div>
|
|
88
82
|
</template>
|
|
@@ -92,7 +86,7 @@ const { src, title, hideIcon, mandateLevel, bgImg } = toRefs(props)
|
|
|
92
86
|
<img v-else :src="bgImg">
|
|
93
87
|
<audio v-if="isAudioFormat" ref="video" controls :src="cleanSrc" controlsList="nodownload"></audio>
|
|
94
88
|
<EpAlert type="error" outlined v-else>
|
|
95
|
-
<p>{{
|
|
89
|
+
<p>{{ messageError }}</p>
|
|
96
90
|
</EpAlert>
|
|
97
91
|
</div>
|
|
98
92
|
</template>
|
|
@@ -13,43 +13,19 @@ interface Props {
|
|
|
13
13
|
carrouselImg: MediaCarousel[];
|
|
14
14
|
gallery?: boolean;
|
|
15
15
|
sizeThumbnail?: SizeThumbnail;
|
|
16
|
-
|
|
16
|
+
labelClose?:string;
|
|
17
|
+
labelRef?:string;
|
|
18
|
+
labelRefLib?:string;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
const props = withDefaults(defineProps<Props>(), {
|
|
20
22
|
gallery: false,
|
|
21
23
|
sizeThumbnail: "medium",
|
|
22
|
-
|
|
24
|
+
labelRef:"Référence",
|
|
25
|
+
labelClose:"Fermer",
|
|
26
|
+
labelRefLib:"Référence bibliographique",
|
|
23
27
|
});
|
|
24
28
|
|
|
25
|
-
let labelRef = "Référence";
|
|
26
|
-
let labelClose = "Fermer";
|
|
27
|
-
|
|
28
|
-
switch (props.locale) {
|
|
29
|
-
case "es":
|
|
30
|
-
labelRef = "Referencia";
|
|
31
|
-
break;
|
|
32
|
-
case "en":
|
|
33
|
-
labelRef = "Reference";
|
|
34
|
-
break;
|
|
35
|
-
case "fr":
|
|
36
|
-
default:
|
|
37
|
-
labelRef = "Référence";
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
switch (props.locale) {
|
|
42
|
-
case "es":
|
|
43
|
-
labelClose = "Cerrar";
|
|
44
|
-
break;
|
|
45
|
-
case "en":
|
|
46
|
-
labelClose = "Close";
|
|
47
|
-
break;
|
|
48
|
-
case "fr":
|
|
49
|
-
default:
|
|
50
|
-
labelClose = "Fermer";
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
29
|
|
|
54
30
|
const currentIndex = ref<number>(0);
|
|
55
31
|
const dialog = ref<boolean>(false);
|
|
@@ -108,7 +84,7 @@ const { carrouselImg, sizeThumbnail } = toRefs(props);
|
|
|
108
84
|
<EpBtn type="primary" @click="dialog = true" dark>{{ labelRef }}</EpBtn>
|
|
109
85
|
</div>
|
|
110
86
|
</div>
|
|
111
|
-
<EpModal v-model="dialog" title="
|
|
87
|
+
<EpModal v-model="dialog" :title="labelRefLib">
|
|
112
88
|
<div v-html="carrouselImg[currentIndex].bib"></div>
|
|
113
89
|
<div class="flex justify-end">
|
|
114
90
|
<EpBtn @click="dialog = false" type="primary" dark>{{
|
|
@@ -123,9 +99,10 @@ const { carrouselImg, sizeThumbnail } = toRefs(props);
|
|
|
123
99
|
:src="image.src"
|
|
124
100
|
:bib="image.bib"
|
|
125
101
|
:caption="image.caption"
|
|
102
|
+
:label-ref="labelRef"
|
|
103
|
+
:label-close="labelClose"
|
|
126
104
|
thumbnail
|
|
127
105
|
:size-thumbnail="sizeThumbnail"
|
|
128
|
-
:locale="locale"
|
|
129
106
|
></EpImg>
|
|
130
107
|
</template>
|
|
131
108
|
</div>
|
|
@@ -3,6 +3,7 @@ import { toRefs, computed } from "vue";
|
|
|
3
3
|
import EpEdu from "../educationals/EpEdu.vue";
|
|
4
4
|
//types with capital letter, object styles in lowercase
|
|
5
5
|
import { type MediaVariants } from "../../types/Medias";
|
|
6
|
+
import { type MandateLevel } from '../../types/MandateLevel';
|
|
6
7
|
import { isHtml } from '../../composables/isHtml';
|
|
7
8
|
import {useMarkdown} from '../../composables/useMarkdown'
|
|
8
9
|
import { mdiApplicationBrackets } from "@mdi/js";
|
|
@@ -13,7 +14,7 @@ interface Props {
|
|
|
13
14
|
intentions?: string;
|
|
14
15
|
hideIcon?:boolean;
|
|
15
16
|
type?:MediaVariants;
|
|
16
|
-
mandateLevel?:
|
|
17
|
+
mandateLevel?:MandateLevel|null;
|
|
17
18
|
customHeight?:number;
|
|
18
19
|
labelIntentions?:string;
|
|
19
20
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { onMounted, ref, computed, toRefs } from "vue";
|
|
3
3
|
import katex from "katex";
|
|
4
4
|
import EpEdu from "../educationals/EpEdu.vue";
|
|
5
|
+
|
|
5
6
|
import { mdiFunctionVariant } from "@mdi/js";
|
|
6
7
|
import { type MediaVariants } from "../../types/Medias";
|
|
7
8
|
import { isHtml } from "../../composables/isHtml";
|
|
@@ -14,7 +15,6 @@ interface Props {
|
|
|
14
15
|
intentions?: string;
|
|
15
16
|
hideIcon?: boolean;
|
|
16
17
|
type?: MediaVariants;
|
|
17
|
-
mandateLevel?: string | null;
|
|
18
18
|
labelIntentions?:string;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -53,7 +53,6 @@ const {center} = toRefs(props)
|
|
|
53
53
|
:type="type"
|
|
54
54
|
:hideIcon="hideIcon"
|
|
55
55
|
:icon="mdiFunctionVariant"
|
|
56
|
-
:mandateLevel="mandateLevel"
|
|
57
56
|
:labelIntentions="labelIntentions"
|
|
58
57
|
>
|
|
59
58
|
<template #intentions v-if="renderText">
|
|
@@ -13,7 +13,7 @@ interface Props {
|
|
|
13
13
|
url: string;
|
|
14
14
|
title?: string;
|
|
15
15
|
intentions?: string;
|
|
16
|
-
mandateLevel?:
|
|
16
|
+
mandateLevel?: MandateLevel | null;
|
|
17
17
|
labelIntentions?: string;
|
|
18
18
|
type?: MediaVariants;
|
|
19
19
|
hideIcon?: boolean;
|
|
@@ -22,9 +22,8 @@ interface Props {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
const props = withDefaults(defineProps<Props>(), {
|
|
25
|
-
type: "
|
|
25
|
+
type: "base",
|
|
26
26
|
hideIcon: false,
|
|
27
|
-
intentions: "",
|
|
28
27
|
});
|
|
29
28
|
|
|
30
29
|
const renderIcon = computed(() => {
|
|
@@ -37,7 +36,7 @@ const renderIcon = computed(() => {
|
|
|
37
36
|
const hoverColor = computed(() => {
|
|
38
37
|
return `absolute ${useColors(
|
|
39
38
|
"bg",
|
|
40
|
-
|
|
39
|
+
'primary' + "dark"
|
|
41
40
|
)} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`;
|
|
42
41
|
});
|
|
43
42
|
|
|
@@ -49,7 +48,6 @@ const { url, title, intentions, mandateLevel, hideIcon } = toRefs(props);
|
|
|
49
48
|
:title="labelCard"
|
|
50
49
|
:icon="renderIcon"
|
|
51
50
|
flat
|
|
52
|
-
:type="type"
|
|
53
51
|
:hideIcon="hideIcon"
|
|
54
52
|
:mandateLevel="mandateLevel"
|
|
55
53
|
:labelIntentions="labelIntentions"
|
|
@@ -63,7 +61,7 @@ const { url, title, intentions, mandateLevel, hideIcon } = toRefs(props);
|
|
|
63
61
|
<EpBtn
|
|
64
62
|
block
|
|
65
63
|
rounded
|
|
66
|
-
|
|
64
|
+
type="primary"
|
|
67
65
|
:prependIcon="renderIcon"
|
|
68
66
|
:href="url"
|
|
69
67
|
extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "
|
|
@@ -15,7 +15,7 @@ interface Props {
|
|
|
15
15
|
url?: string;
|
|
16
16
|
cover?: string;
|
|
17
17
|
title: string;
|
|
18
|
-
mandateLevel?:
|
|
18
|
+
mandateLevel?:MandateLevel | null;
|
|
19
19
|
intentions?: string;
|
|
20
20
|
version_link?: null;
|
|
21
21
|
hideCover?: boolean;
|
|
@@ -23,10 +23,8 @@ interface Props {
|
|
|
23
23
|
type?:MediaVariants;
|
|
24
24
|
hideIcon?:boolean;
|
|
25
25
|
labelCard?:string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
acceder?:string;
|
|
29
|
-
}
|
|
26
|
+
labelIntentions?:string;
|
|
27
|
+
labelAccess?:string;
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
// type, taxonomyLevel, courseCode, courseTitle, title, subtitle, height, src, color, synchrone
|
|
@@ -38,11 +36,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
38
36
|
cover:"",
|
|
39
37
|
type:"base",
|
|
40
38
|
hideIcon:false,
|
|
41
|
-
|
|
42
|
-
return {
|
|
43
|
-
acceder:"Accéder au logiciel"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
39
|
+
labelAccess:"Accéder au logiciel"
|
|
46
40
|
});
|
|
47
41
|
|
|
48
42
|
const old_image = "https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg";
|
|
@@ -59,11 +53,12 @@ const { title, intentions, cover, hideCover, version, labelCard, hideIcon, manda
|
|
|
59
53
|
</script>
|
|
60
54
|
|
|
61
55
|
<template>
|
|
62
|
-
<EpEdu :title="labelCard" :labelIntentions="
|
|
56
|
+
<EpEdu :title="labelCard" :labelIntentions="labelIntentions" :icon="mdiLaptop" flat :type="type" :hideIcon="hideIcon" :mandateLevel="mandateLevel">
|
|
63
57
|
<template #intentions v-if="intentions">
|
|
64
58
|
<div v-html="useRenderText(intentions)"></div>
|
|
65
59
|
</template>
|
|
66
60
|
<template #content>
|
|
61
|
+
|
|
67
62
|
<div
|
|
68
63
|
class="flex flex-col items-center border rounded-lg bg-base-light md:flex-row mt-2 dark:bg-dark"
|
|
69
64
|
>
|
|
@@ -86,7 +81,7 @@ const { title, intentions, cover, hideCover, version, labelCard, hideIcon, manda
|
|
|
86
81
|
<div class="flex justify-between items-center rounded-t-md p-2">
|
|
87
82
|
<h4>{{ title }} <EpChip size="small" type="primary" v-if="version">{{version}}</EpChip></h4>
|
|
88
83
|
<EpBtn v-if="url" rounded type="primary" :prependIcon="mdiOpenInNew" :href="url"
|
|
89
|
-
>{{
|
|
84
|
+
>{{labelAccess}}</EpBtn
|
|
90
85
|
>
|
|
91
86
|
</div>
|
|
92
87
|
</div>
|
|
@@ -12,9 +12,11 @@ interface Props {
|
|
|
12
12
|
desc?:string;
|
|
13
13
|
title?:string;
|
|
14
14
|
content?:string;
|
|
15
|
-
mandateLevel?:
|
|
15
|
+
mandateLevel?:MandateLevel | null;
|
|
16
16
|
type?:MediaVariants;
|
|
17
17
|
cols?:string | number;
|
|
18
|
+
labelIntentions?:string;
|
|
19
|
+
hideIcon?:boolean;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -57,7 +59,14 @@ const {title, content} = toRefs(props)
|
|
|
57
59
|
</script>
|
|
58
60
|
|
|
59
61
|
<template>
|
|
60
|
-
<EpEdu
|
|
62
|
+
<EpEdu
|
|
63
|
+
:title="title"
|
|
64
|
+
:hideIcon="hideIcon"
|
|
65
|
+
:icon="mdiImage"
|
|
66
|
+
:labelIntentions="labelIntentions"
|
|
67
|
+
flat
|
|
68
|
+
:type="type"
|
|
69
|
+
:mandateLevel="mandateLevel">
|
|
61
70
|
<template #intentions v-if="renderText">
|
|
62
71
|
<div v-html="renderText"></div>
|
|
63
72
|
</template>
|
|
@@ -17,15 +17,12 @@ interface Props {
|
|
|
17
17
|
domain?: string;
|
|
18
18
|
graminfo?: string;
|
|
19
19
|
relations?: string;
|
|
20
|
-
//idrelation?: string;
|
|
21
20
|
src?:string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
close?:string;
|
|
28
|
-
}
|
|
21
|
+
labelDefinition?: string;
|
|
22
|
+
labelDomain?:string;
|
|
23
|
+
labelVariations?: string;
|
|
24
|
+
labelRelations?: string;
|
|
25
|
+
labelClose?:string;
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -33,15 +30,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
33
30
|
variations: "",
|
|
34
31
|
relations: "",
|
|
35
32
|
idrelation: "",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
relations: "Relations",
|
|
42
|
-
close:"Fermer"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
33
|
+
labelDefinition: "Définition",
|
|
34
|
+
labelDomain:"Domaine",
|
|
35
|
+
labelVariations: "Variations",
|
|
36
|
+
labelRelations: "Relations",
|
|
37
|
+
labelClose:"Fermer"
|
|
45
38
|
});
|
|
46
39
|
|
|
47
40
|
const show = ref(false);
|
|
@@ -107,7 +100,7 @@ const el = (contentref:any) => {
|
|
|
107
100
|
contentref.innerHTML = renderHtml
|
|
108
101
|
}*/
|
|
109
102
|
|
|
110
|
-
const { term, graminfo,
|
|
103
|
+
const { term, graminfo,src } = toRefs(props);
|
|
111
104
|
</script>
|
|
112
105
|
|
|
113
106
|
<template>
|
|
@@ -141,9 +134,9 @@ const { term, graminfo,labels,src } = toRefs(props);
|
|
|
141
134
|
</div>
|
|
142
135
|
<EpDivider color="primary" margin="mb-2"></EpDivider>
|
|
143
136
|
<div class="mb-4 flex items-center justify-between">
|
|
144
|
-
<h3 class="text-primary font-bold">{{
|
|
137
|
+
<h3 class="text-primary font-bold">{{labelDefinition}}</h3>
|
|
145
138
|
<span class="text-xs" v-if="renderDomain"
|
|
146
|
-
>{{
|
|
139
|
+
>{{labelDomain}} : <span class="font-bold">{{ renderDomain }}</span></span
|
|
147
140
|
>
|
|
148
141
|
</div>
|
|
149
142
|
<!-- <div v-html="renderText"></div> -->
|
|
@@ -154,13 +147,13 @@ const { term, graminfo,labels,src } = toRefs(props);
|
|
|
154
147
|
|
|
155
148
|
<EpDivider v-if="renderVariations || renderRelations"></EpDivider>
|
|
156
149
|
<div class="text-sm mt-2" v-if="renderVariations">
|
|
157
|
-
<span class="mr-2 font-bold">{{
|
|
150
|
+
<span class="mr-2 font-bold">{{labelVariations}} :</span>
|
|
158
151
|
<span v-for="(variation, i) in renderVariations" :key="`variation-${i}`">
|
|
159
152
|
{{ variation }}{{ renderVariations.length > i + 1 ? ", " : "." }}
|
|
160
153
|
</span>
|
|
161
154
|
</div>
|
|
162
155
|
<div class="text-sm mt-2" v-if="renderRelations">
|
|
163
|
-
<span class="mr-2 font-bold">{{
|
|
156
|
+
<span class="mr-2 font-bold">{{labelRelations}} :</span>
|
|
164
157
|
<template v-for="(relation, i) in renderRelations"
|
|
165
158
|
:key="`relation-${i}`">
|
|
166
159
|
<EpBtn
|
|
@@ -174,7 +167,7 @@ const { term, graminfo,labels,src } = toRefs(props);
|
|
|
174
167
|
</div>
|
|
175
168
|
<div class="flex justify-end">
|
|
176
169
|
<EpBtn type="error" outlined @click="show = false" rounded>{{
|
|
177
|
-
|
|
170
|
+
labelClose
|
|
178
171
|
}}</EpBtn>
|
|
179
172
|
</div>
|
|
180
173
|
</EpModal>
|
|
@@ -15,22 +15,17 @@ interface Props {
|
|
|
15
15
|
title?: string;
|
|
16
16
|
intentions?: string;
|
|
17
17
|
credits?: string;
|
|
18
|
-
mandateLevel?:
|
|
18
|
+
mandateLevel?: MandateLevel | null;
|
|
19
19
|
type?: MediaVariants;
|
|
20
20
|
hideIcon?: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
21
|
+
labelIntentions?: string;
|
|
22
|
+
big?:boolean;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
const props = withDefaults(defineProps<Props>(), {
|
|
27
26
|
type: "base",
|
|
28
27
|
hideIcon: false,
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
intentions: "Intentions d'écoute",
|
|
32
|
-
};
|
|
33
|
-
},
|
|
28
|
+
labelIntentions: "Intentions d'écoute",
|
|
34
29
|
});
|
|
35
30
|
|
|
36
31
|
//only to make custum video player
|
|
@@ -83,9 +78,16 @@ const getIdYoutube = (url: string): string | null => {
|
|
|
83
78
|
return match ? match[1] : null;
|
|
84
79
|
};
|
|
85
80
|
|
|
81
|
+
const sizeVideo = computed(()=> {
|
|
82
|
+
if(props.big){
|
|
83
|
+
return "650"
|
|
84
|
+
}
|
|
85
|
+
return "360"
|
|
86
|
+
})
|
|
87
|
+
|
|
86
88
|
//controls
|
|
87
89
|
//const controls = useMediaControls(video, {src:props.src})
|
|
88
|
-
const { src, title, hideIcon, type } = toRefs(props);
|
|
90
|
+
const { src, title, hideIcon, type, labelIntentions } = toRefs(props);
|
|
89
91
|
</script>
|
|
90
92
|
|
|
91
93
|
<template>
|
|
@@ -95,25 +97,28 @@ const { src, title, hideIcon, type } = toRefs(props);
|
|
|
95
97
|
:hideIcon="hideIcon"
|
|
96
98
|
:icon="mdiVideo"
|
|
97
99
|
:mandateLevel="mandateLevel"
|
|
100
|
+
:labelIntentions="labelIntentions"
|
|
98
101
|
>
|
|
99
102
|
<template #intentions v-if="renderText && renderText.length > 0">
|
|
100
103
|
<div v-html="renderText"></div>
|
|
101
104
|
</template>
|
|
102
105
|
<template #content>
|
|
103
|
-
<div class="max-w-screen-sm mx-auto">
|
|
106
|
+
<div :class="!big?'max-w-screen-sm mx-auto':''">
|
|
107
|
+
{{ videoURL }}
|
|
104
108
|
<video
|
|
105
109
|
v-if="isVideoFormat"
|
|
106
110
|
ref="video"
|
|
107
111
|
controls
|
|
108
112
|
:src="src"
|
|
109
|
-
width="
|
|
113
|
+
width="100%"
|
|
110
114
|
controlsList="nodownload"
|
|
111
115
|
></video>
|
|
116
|
+
|
|
112
117
|
<iframe
|
|
113
118
|
v-else
|
|
114
119
|
:src="videoURL"
|
|
115
120
|
width="100%"
|
|
116
|
-
height="
|
|
121
|
+
:height="sizeVideo"
|
|
117
122
|
frameborder="0"
|
|
118
123
|
allowfullscreen
|
|
119
124
|
></iframe>
|
|
@@ -11,26 +11,20 @@ interface Term {
|
|
|
11
11
|
interface Props {
|
|
12
12
|
term: Term;
|
|
13
13
|
glossary: GlossaryEntry[];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
variations?:string;
|
|
20
|
-
}
|
|
14
|
+
labelInformation?: string;
|
|
15
|
+
labelDomain?:string;
|
|
16
|
+
labelVariations?: string;
|
|
17
|
+
labelRelations?: string;
|
|
18
|
+
labelNoDefinition?:string;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
|
|
24
22
|
const props = withDefaults(defineProps<Props>(), {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
definition:"La definition n'est pas disponible",
|
|
31
|
-
variations:"Variation(s)"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
23
|
+
labelInformation:"Information grammaticale",
|
|
24
|
+
labelDomain:"Domaine",
|
|
25
|
+
labelRelations:"Relations" ,
|
|
26
|
+
labelNoDefinition:"La definition n'est pas disponible",
|
|
27
|
+
labelVariations:"Variation(s)"
|
|
34
28
|
});
|
|
35
29
|
|
|
36
30
|
|
|
@@ -88,16 +82,16 @@ const goto = (term:string) =>{
|
|
|
88
82
|
<div class="flex justify-between">
|
|
89
83
|
<div :class="sizeGramIngo">
|
|
90
84
|
<p class="text-sm font-medium bg-base-light dark:text-dark p-2">
|
|
91
|
-
{{
|
|
85
|
+
{{labelInformation}}
|
|
92
86
|
</p>
|
|
93
87
|
<div class="px-2 py-1">{{ definition.graminfo }}</div>
|
|
94
88
|
</div>
|
|
95
89
|
<div :class="sizeDomain" v-if="definition.domain">
|
|
96
|
-
<p class="text-sm font-medium bg-base-light dark:text-dark p-2">{{
|
|
90
|
+
<p class="text-sm font-medium bg-base-light dark:text-dark p-2">{{labelDomain}}</p>
|
|
97
91
|
<div class="px-2 py-1">{{ definition.domain }}</div>
|
|
98
92
|
</div>
|
|
99
93
|
<div :class="sizeVariations" v-if="definition.variation.length > 0">
|
|
100
|
-
<p class="text-sm font-medium bg-base-light dark:text-dark p-2">{{
|
|
94
|
+
<p class="text-sm font-medium bg-base-light dark:text-dark p-2">{{labelVariations}}</p>
|
|
101
95
|
<div class="px-2 py-1">
|
|
102
96
|
<span v-for="(variation, i) in definition.variation" :key="`v-${i}`">{{ variation }}{{
|
|
103
97
|
definition.variation.length > i + 1 ? ", " :
|
|
@@ -117,7 +111,7 @@ const goto = (term:string) =>{
|
|
|
117
111
|
|
|
118
112
|
<div>
|
|
119
113
|
<div v-if="definition.relation.length > 0">
|
|
120
|
-
<p class="text-sm font-medium bg-base-light dark:text-dark p-2"> {{
|
|
114
|
+
<p class="text-sm font-medium bg-base-light dark:text-dark p-2"> {{labelRelations}}</p>
|
|
121
115
|
<div class="p-2">
|
|
122
116
|
<template v-for="(relation, i) in findRelations(definition.relation)" :key="`relation-${i}`">
|
|
123
117
|
<button class="p-1 border rounded mr-1" @click="goto(relation.term)">
|
|
@@ -129,6 +123,6 @@ const goto = (term:string) =>{
|
|
|
129
123
|
</div>
|
|
130
124
|
</div>
|
|
131
125
|
</div>
|
|
132
|
-
<div v-else> {{
|
|
126
|
+
<div v-else> {{labelNoDefinition}}</div>
|
|
133
127
|
</div>
|
|
134
128
|
</template>
|
package/dist/BgAudio-B4ZG8DU_.js
DELETED
package/dist/EpAlert-3wG87bqj.js
DELETED
package/dist/EpAudio-DrZLWh49.js
DELETED
package/dist/EpBadge-B0bGd4AE.js
DELETED