ep-lib-ts 1.0.18 → 1.0.20

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.
Files changed (149) hide show
  1. package/dist/BgAudio-D8TZpRh8.js +4 -0
  2. package/dist/DisplayBox-3F6nqwNN.js +4 -0
  3. package/dist/EpAlert-BjOR-WYp.js +4 -0
  4. package/dist/EpAudio-BQ0LZmny.js +4 -0
  5. package/dist/EpBadge-AynlePoL.js +4 -0
  6. package/dist/EpBarChart-BYvvcyGM.js +4 -0
  7. package/dist/EpBtn-CEF35fJT.js +4 -0
  8. package/dist/EpCard-DyabtzFw.js +4 -0
  9. package/dist/EpChip-Doxc_A2v.js +4 -0
  10. package/dist/EpContentSlider-BSpg4qD6.js +4 -0
  11. package/dist/{EpDarkmode-BFtEIM2f.js → EpDarkmode-E7Txyt2Z.js} +1 -1
  12. package/dist/EpDivider-al4hF4NR.js +4 -0
  13. package/dist/EpEdu-BRGV7ery.js +4 -0
  14. package/dist/EpFlex-Dd3rSd_C.js +4 -0
  15. package/dist/EpFunnelChart-Cxt8tNXc.js +4 -0
  16. package/dist/EpHeader-BTlGpNmu.js +4 -0
  17. package/dist/{EpHover-CEKgKxEp.js → EpHover-DkQGtJdt.js} +1 -1
  18. package/dist/EpIcon-iJCwnBpE.js +4 -0
  19. package/dist/EpIframe-f0gBsKr0.js +4 -0
  20. package/dist/EpImg-mfEWGRXD.js +4 -0
  21. package/dist/{EpInput-Bv2ajGF2.js → EpInput-ZfI0AzCM.js} +1 -1
  22. package/dist/EpLineChart-CfJ8SqIE.js +4 -0
  23. package/dist/EpLink-C6J8OHOQ.js +4 -0
  24. package/dist/EpLinkVersion-V3KXqa8C.js +4 -0
  25. package/dist/{EpList-BcRsDnkP.js → EpList-9iXzs5ut.js} +1 -1
  26. package/dist/EpModal-Dx2GoSPb.js +4 -0
  27. package/dist/{EpNothing-DyCuyPon.js → EpNothing-Bw9MjukW.js} +1 -1
  28. package/dist/EpPieChart-B3OyveJn.js +4 -0
  29. package/dist/EpQuestion-CDCKVvf0.js +4 -0
  30. package/dist/EpQuote-CerXY463.js +4 -0
  31. package/dist/EpRadio-DyUiWO6L.js +4 -0
  32. package/dist/EpRadioSummative-DRwtSoOl.js +4 -0
  33. package/dist/EpReading-BK0t7hQ9.js +4 -0
  34. package/dist/EpResource-X4olZG7S.js +4 -0
  35. package/dist/EpScope-C08ic1uY.js +4 -0
  36. package/dist/EpSection-Du-NMYAW.js +4 -0
  37. package/dist/{EpSelect-CHIE9dYe.js → EpSelect-CkhzX08c.js} +1 -1
  38. package/dist/EpSkeleton-DeSkHV8U.js +4 -0
  39. package/dist/EpSoftware-DoQa2QXy.js +4 -0
  40. package/dist/EpSpinner-CjWR-GVf.js +4 -0
  41. package/dist/EpSummativeTable-DRhIHZj_.js +4 -0
  42. package/dist/EpSvg-CltG5988.js +4 -0
  43. package/dist/EpTable-w6IWsiTa.js +4 -0
  44. package/dist/EpTerm-BUcWyyeb.js +4 -0
  45. package/dist/EpText-CrTeR75s.js +4 -0
  46. package/dist/EpTimeLine-De80uuaV.js +4 -0
  47. package/dist/EpVideo-g5M3tqwZ.js +4 -0
  48. package/dist/EpVideoPanopto-VCb9ZIl0.js +4 -0
  49. package/dist/EpWordDef-BSF3BfpU.js +4 -0
  50. package/dist/components/basics/EpBadge.vue.d.ts +0 -12
  51. package/dist/components/basics/EpText.vue.d.ts +20 -12
  52. package/dist/components/charts/EpBarChart.vue.d.ts +4 -13
  53. package/dist/components/charts/EpFunnelChart.vue.d.ts +0 -1
  54. package/dist/components/charts/EpLineChart.vue.d.ts +4 -13
  55. package/dist/components/charts/EpPieChart.vue.d.ts +4 -13
  56. package/dist/components/educationals/EpEdu.vue.d.ts +1 -1
  57. package/dist/components/educationals/EpReading.vue.d.ts +25 -45
  58. package/dist/components/educationals/EpResource.vue.d.ts +1 -1
  59. package/dist/components/educationals/EpScope.vue.d.ts +4 -12
  60. package/dist/components/forms/EpSelect.vue.d.ts +4 -4
  61. package/dist/components/forms/EpTextarea.vue.d.ts +3 -3
  62. package/dist/components/forms/EpToggle.vue.d.ts +3 -3
  63. package/dist/components/interactions/EpContentSlider.vue.d.ts +8 -16
  64. package/dist/components/interactions/EpQuestion.vue.d.ts +13 -21
  65. package/dist/components/interactions/EpSummativeTable.vue.d.ts +8 -1
  66. package/dist/components/medias/EpAudio.vue.d.ts +9 -17
  67. package/dist/components/medias/EpCarousel.vue.d.ts +12 -4
  68. package/dist/components/medias/EpIframe.vue.d.ts +2 -1
  69. package/dist/components/medias/EpKatex.vue.d.ts +0 -1
  70. package/dist/components/medias/EpLink.vue.d.ts +1 -4
  71. package/dist/components/medias/EpSoftware.vue.d.ts +6 -15
  72. package/dist/components/medias/EpSvg.vue.d.ts +3 -1
  73. package/dist/components/medias/EpTerm.vue.d.ts +20 -28
  74. package/dist/components/medias/EpVideo.vue.d.ts +6 -13
  75. package/dist/components/medias/EpVideoPanopto.vue.d.ts +1 -1
  76. package/dist/components/medias/EpWordDef.vue.d.ts +20 -28
  77. package/dist/components/signages/EpHeader.vue.d.ts +2 -2
  78. package/dist/ep-lib-ts.js +1 -1
  79. package/dist/ep-lib-ts.umd.cjs +53 -36
  80. package/dist/{index-ClOMmLUm.js → index-D3xTKejX.js} +2866 -2901
  81. package/dist/style.css +1 -1
  82. package/package.json +1 -1
  83. package/src/components/basics/EpBadge.vue +1 -10
  84. package/src/components/basics/EpText.vue +28 -9
  85. package/src/components/charts/EpBarChart.vue +6 -12
  86. package/src/components/charts/EpFunnelChart.vue +1 -2
  87. package/src/components/charts/EpLineChart.vue +6 -12
  88. package/src/components/charts/EpPieChart.vue +7 -12
  89. package/src/components/educationals/EpEdu.vue +2 -9
  90. package/src/components/educationals/EpReading.vue +28 -37
  91. package/src/components/educationals/EpResource.vue +5 -2
  92. package/src/components/educationals/EpScope.vue +10 -18
  93. package/src/components/interactions/EpContentSlider.vue +8 -13
  94. package/src/components/interactions/EpQuestion.vue +12 -17
  95. package/src/components/interactions/EpSummativeTable.vue +5 -2
  96. package/src/components/medias/EpAudio.vue +7 -13
  97. package/src/components/medias/EpCarousel.vue +9 -32
  98. package/src/components/medias/EpIframe.vue +2 -1
  99. package/src/components/medias/EpKatex.vue +1 -2
  100. package/src/components/medias/EpLink.vue +4 -6
  101. package/src/components/medias/EpSoftware.vue +7 -12
  102. package/src/components/medias/EpSvg.vue +11 -2
  103. package/src/components/medias/EpTerm.vue +16 -23
  104. package/src/components/medias/EpVideo.vue +17 -13
  105. package/src/components/medias/EpVideoPanopto.vue +1 -1
  106. package/src/components/medias/EpWordDef.vue +15 -21
  107. package/dist/BgAudio-B4ZG8DU_.js +0 -4
  108. package/dist/DisplayBox-NnuAJFCp.js +0 -4
  109. package/dist/EpAlert-3wG87bqj.js +0 -4
  110. package/dist/EpAudio-DrZLWh49.js +0 -4
  111. package/dist/EpBadge-B0bGd4AE.js +0 -4
  112. package/dist/EpBarChart-CLEINSXT.js +0 -4
  113. package/dist/EpBtn-CgxjhKFR.js +0 -4
  114. package/dist/EpCard-Cin42ELy.js +0 -4
  115. package/dist/EpChip-BZtGNmZy.js +0 -4
  116. package/dist/EpContentSlider-BmCamlS6.js +0 -4
  117. package/dist/EpDivider-Dd6ni7BI.js +0 -4
  118. package/dist/EpEdu-LoNOrLjR.js +0 -4
  119. package/dist/EpFlex-S10gXDSD.js +0 -4
  120. package/dist/EpFunnelChart-ttkjaryC.js +0 -4
  121. package/dist/EpHeader-CuIRpGKZ.js +0 -4
  122. package/dist/EpIcon-CVTil-7a.js +0 -4
  123. package/dist/EpIframe-CHOCN7YY.js +0 -4
  124. package/dist/EpImg-Cvis2XoU.js +0 -4
  125. package/dist/EpLineChart-UE1X4YAb.js +0 -4
  126. package/dist/EpLink-JcgxaP92.js +0 -4
  127. package/dist/EpLinkVersion-C3yI0GaV.js +0 -4
  128. package/dist/EpModal-C-39yF0o.js +0 -4
  129. package/dist/EpPieChart-DANs5BTf.js +0 -4
  130. package/dist/EpQuestion-BjenPOWb.js +0 -4
  131. package/dist/EpQuote-5Y3RBP7v.js +0 -4
  132. package/dist/EpRadio-CvjvaDzf.js +0 -4
  133. package/dist/EpRadioSummative-BTGCrFdD.js +0 -4
  134. package/dist/EpReading-CMNjPHyJ.js +0 -4
  135. package/dist/EpResource-Wg6FLIS_.js +0 -4
  136. package/dist/EpScope-DyE5bFxA.js +0 -4
  137. package/dist/EpSection-Bs3Paa95.js +0 -4
  138. package/dist/EpSkeleton-Cj82fvVw.js +0 -4
  139. package/dist/EpSoftware-CcPBO_uQ.js +0 -4
  140. package/dist/EpSpinner-DFpt3e7D.js +0 -4
  141. package/dist/EpSummativeTable-CvfItlt5.js +0 -4
  142. package/dist/EpSvg-CH2qCKXL.js +0 -4
  143. package/dist/EpTable-joBdQdCD.js +0 -4
  144. package/dist/EpTerm-WWmfth0A.js +0 -4
  145. package/dist/EpText-Byspbv4R.js +0 -4
  146. package/dist/EpTimeLine-C7DnPTVv.js +0 -4
  147. package/dist/EpVideo-CMA5fOd8.js +0 -4
  148. package/dist/EpVideoPanopto-BWn7uCd2.js +0 -4
  149. 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
- labels?:{
30
- answer?:string;
31
- validate?:string;
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
- labels:()=>{
43
- return {
44
- answer:"Veuillez choisir une réponse",
45
- validate : "Valider",
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
- :mandateLevel="mandateLevel"
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
- {{labels.answer}}
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
- >{{labels.validate}}</EpBtn
179
+ >{{labelAnswerBtn}}</EpBtn
185
180
  >
186
- <EpBtn type="primary" v-if="answered" @click="reset" outlined>{{labels.tryagain}}</EpBtn>
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">Total : {{ resultSummative }}</span>
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?:string | MandateLevel | null;
25
- labels?:{
26
- intentions?: string;
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
- labels:()=>{
35
- return {
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="labels.intentions" :type="type" :hideIcon="hideIcon" :icon="mdiHeadphones" :mandateLevel="mandateLevel">
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>{{ labels.messageError }}</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
- locale?: "en" | "fr" | "es";
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
- locale: "fr",
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="Référence">
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?:string|null;
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?: string | MandateLevel | null;
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: "primary",
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
- props.type + "dark"
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
- :type="type"
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?:string | MandateLevel | null;
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
- labels?:{
27
- labelIntentions?:string;
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
- labels:()=>{
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="labels.labelIntentions" :icon="mdiLaptop" flat :type="type" :hideIcon="hideIcon" :mandateLevel="mandateLevel">
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
- >{{labels.acceder}}</EpBtn
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?: string | MandateLevel | null;
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 :title="title" :icon="mdiImage" flat :type="type" :mandateLevel="mandateLevel">
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
- labels?:{
23
- definition?: string;
24
- domaine?:string;
25
- variations?: string;
26
- relations?: string;
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
- labels:()=>{
37
- return {
38
- definition: "Définition",
39
- domaine:"Domaine",
40
- variations: "Variations",
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,labels,src } = toRefs(props);
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">{{labels.definition}}</h3>
137
+ <h3 class="text-primary font-bold">{{labelDefinition}}</h3>
145
138
  <span class="text-xs" v-if="renderDomain"
146
- >{{labels.domaine}} : <span class="font-bold">{{ renderDomain }}</span></span
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">{{labels.variations}} :</span>
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">{{labels.relations}} :</span>
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
- labels.close
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?: string | MandateLevel | null;
18
+ mandateLevel?: MandateLevel | null;
19
19
  type?: MediaVariants;
20
20
  hideIcon?: boolean;
21
- labels?: {
22
- intentions?: string;
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
- labels: () => {
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,27 @@ 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':''">
104
107
  <video
105
108
  v-if="isVideoFormat"
106
109
  ref="video"
107
110
  controls
108
111
  :src="src"
109
- width="640"
112
+ width="100%"
110
113
  controlsList="nodownload"
111
114
  ></video>
115
+
112
116
  <iframe
113
117
  v-else
114
118
  :src="videoURL"
115
119
  width="100%"
116
- height="360"
120
+ :height="sizeVideo"
117
121
  frameborder="0"
118
122
  allowfullscreen
119
123
  ></iframe>
@@ -14,7 +14,7 @@ interface Props{
14
14
  title?:string;
15
15
  intentions?:string;
16
16
  credits?:string;
17
- mandateLevel?:string | MandateLevel | null;
17
+ mandateLevel?:MandateLevel | null;
18
18
  labelIntentions?:string;
19
19
  type?:MediaVariants;
20
20
  hideIcon?:boolean;
@@ -11,26 +11,20 @@ interface Term {
11
11
  interface Props {
12
12
  term: Term;
13
13
  glossary: GlossaryEntry[];
14
- labels?:{
15
- information?:string;
16
- domain?:string;
17
- relations?: string;
18
- definition?:string;
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
- labels:()=>{
26
- return {
27
- information:"Information grammaticale",
28
- domain:"Domaine",
29
- relations:"Relations" ,
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
- {{labels.information}}
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">{{labels.domain}}</p>
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">{{labels.variations}}</p>
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"> {{labels.relations}}</p>
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> {{labels.definition}}</div>
126
+ <div v-else> {{labelNoDefinition}}</div>
133
127
  </div>
134
128
  </template>
@@ -1,4 +0,0 @@
1
- import { S as f } from "./index-ClOMmLUm.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { T as f } from "./index-ClOMmLUm.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { O as f } from "./index-ClOMmLUm.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { E as f } from "./index-ClOMmLUm.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./index-ClOMmLUm.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { o } from "./index-ClOMmLUm.js";
2
- export {
3
- o as default
4
- };