ep-lib-ts 1.0.34 → 1.0.36

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 (122) hide show
  1. package/dist/BgAudio-BpeNw9L4.js +4 -0
  2. package/dist/DisplayBox-aSVYrDHI.js +4 -0
  3. package/dist/EpAlert-x0STjaqD.js +4 -0
  4. package/dist/EpAudio-D7LIG4mf.js +4 -0
  5. package/dist/EpBadge-Du6v1vQL.js +4 -0
  6. package/dist/EpBarChart-BoINXvhV.js +4 -0
  7. package/dist/EpBtn-DE6qTHlW.js +4 -0
  8. package/dist/EpCard-CNcn4RbZ.js +4 -0
  9. package/dist/{EpCheckbox-BtJRFbS_.js → EpCheckbox-_Nt9Bvq3.js} +10 -10
  10. package/dist/EpChip-DHgdqDEX.js +4 -0
  11. package/dist/EpCodeblock-CR2LGKR-.js +4 -0
  12. package/dist/EpConclusion-B9DhTuTc.js +4 -0
  13. package/dist/EpContentSlider-BdS_KctY.js +4 -0
  14. package/dist/{EpDarkmode-B2VNFRu8.js → EpDarkmode-fMMNJbJs.js} +1 -1
  15. package/dist/EpDescription-D1TbwNrX.js +4 -0
  16. package/dist/EpDivider-DjTTwzGb.js +4 -0
  17. package/dist/EpEdu-CuI1_N9M.js +4 -0
  18. package/dist/EpFlex-Dx5C4Gc8.js +4 -0
  19. package/dist/EpFunnelChart-C6_M1nag.js +4 -0
  20. package/dist/EpHeader-B5jyGMDA.js +4 -0
  21. package/dist/{EpHover-CEbHH1Ot.js → EpHover-3fnZrdD6.js} +1 -1
  22. package/dist/EpIcon-DDm9gGfm.js +4 -0
  23. package/dist/EpIframe-BNz3cawg.js +4 -0
  24. package/dist/EpImg-CxjLfziE.js +4 -0
  25. package/dist/EpInput-HmLHpLYh.js +1168 -0
  26. package/dist/EpInstructions-C0reDzIV.js +4 -0
  27. package/dist/EpIntroduction-C92mD-hu.js +4 -0
  28. package/dist/EpLineChart-Cm4W9z14.js +4 -0
  29. package/dist/EpLink-CGVS8yjO.js +4 -0
  30. package/dist/EpLinkVersion-CsGN9YS9.js +4 -0
  31. package/dist/{EpList-CA3qvQVS.js → EpList-B6Q3fXGj.js} +1 -1
  32. package/dist/EpModal-DuIZeI6V.js +4 -0
  33. package/dist/{EpNothing-DIGtPVpI.js → EpNothing-BDqIuSB9.js} +1 -1
  34. package/dist/EpObjective-R1tWBwTe.js +4 -0
  35. package/dist/EpPieChart-CoTBcaaf.js +4 -0
  36. package/dist/EpQuestion-DmEcATq1.js +4 -0
  37. package/dist/EpQuote-BPCJBVbM.js +4 -0
  38. package/dist/EpRadio-TsUBsVoj.js +4 -0
  39. package/dist/EpRadioSummative-Cl9dVMJD.js +4 -0
  40. package/dist/EpReading-vOjzuYW7.js +4 -0
  41. package/dist/EpResource-Dbq_41hb.js +4 -0
  42. package/dist/EpScope-DIc4HvYy.js +4 -0
  43. package/dist/EpSection-Cb18CHq0.js +4 -0
  44. package/dist/EpSectionCols-B1P8ujg-.js +4 -0
  45. package/dist/EpSkeleton-vw7gDYoi.js +4 -0
  46. package/dist/EpSoftware-BAKbJhZg.js +4 -0
  47. package/dist/EpSpecificObjective-B5L6-OCN.js +4 -0
  48. package/dist/EpSpinner-rQzI6_Pe.js +4 -0
  49. package/dist/EpSummativeTable-Djg4DVSn.js +4 -0
  50. package/dist/EpSvg-DggY9PtW.js +4 -0
  51. package/dist/EpTable-CvhrvBOq.js +4 -0
  52. package/dist/EpTerm-C6HSHM0J.js +4 -0
  53. package/dist/EpText-CftDXaM-.js +4 -0
  54. package/dist/EpTimeLine-D7ks1LH_.js +4 -0
  55. package/dist/EpVideo-3MO0ao4H.js +4 -0
  56. package/dist/EpVideoPanopto-C-hIsXtV.js +4 -0
  57. package/dist/EpWordDef-BkwqmvfJ.js +4 -0
  58. package/dist/components/educationals/EpCodeblock.vue.d.ts +5 -0
  59. package/dist/components/medias/EpWordDef.vue.d.ts +4 -0
  60. package/dist/ep-lib-ts.js +1 -1
  61. package/dist/ep-lib-ts.umd.cjs +32 -32
  62. package/dist/{index-DROZe3zf.js → index-7_RFK7FL.js} +2958 -2938
  63. package/dist/{index-CFCG0okj.js → index-D4ekzRdY.js} +1 -1
  64. package/dist/{prism-CGkVnT4Z.js → prism-CZvJL8HS.js} +1 -1
  65. package/dist/style.css +1 -1
  66. package/package.json +2 -2
  67. package/src/components/educationals/EpCodeblock.vue +26 -0
  68. package/src/components/forms/EpSelect.vue +0 -2
  69. package/src/components/medias/EpWordDef.vue +9 -4
  70. package/src/components/signages/EpHeader.vue +3 -3
  71. package/dist/BgAudio-CA8VSLsc.js +0 -4
  72. package/dist/DisplayBox-DcIbA6-c.js +0 -4
  73. package/dist/EpAlert-DmZqxnZD.js +0 -4
  74. package/dist/EpAudio-CNrSgOA8.js +0 -4
  75. package/dist/EpBadge-DDIAQCga.js +0 -4
  76. package/dist/EpBarChart-BD7tXt0V.js +0 -4
  77. package/dist/EpBtn-niZqYgkt.js +0 -4
  78. package/dist/EpCard-zoWBsu5Z.js +0 -4
  79. package/dist/EpChip-C_0AWO5o.js +0 -4
  80. package/dist/EpCodeblock-Dz861SlI.js +0 -4
  81. package/dist/EpConclusion-DwlOTrdr.js +0 -4
  82. package/dist/EpContentSlider-C9PBvtNH.js +0 -4
  83. package/dist/EpDescription-DnjXryDT.js +0 -4
  84. package/dist/EpDivider-C8T1peku.js +0 -4
  85. package/dist/EpEdu-Druc_eUR.js +0 -4
  86. package/dist/EpFlex-ZQz4gN2-.js +0 -4
  87. package/dist/EpFunnelChart-BKM1i_KX.js +0 -4
  88. package/dist/EpHeader-CY5QHbDo.js +0 -4
  89. package/dist/EpIcon-DhX4c8H4.js +0 -4
  90. package/dist/EpIframe-DrJZNpa1.js +0 -4
  91. package/dist/EpImg-CYwMBDRB.js +0 -4
  92. package/dist/EpInput-_g6MeJfa.js +0 -1168
  93. package/dist/EpInstructions-BRrl6k3h.js +0 -4
  94. package/dist/EpIntroduction-BBIaG25r.js +0 -4
  95. package/dist/EpLineChart-BpFQSKIs.js +0 -4
  96. package/dist/EpLink-C7szVwiy.js +0 -4
  97. package/dist/EpLinkVersion-DNUMPzLF.js +0 -4
  98. package/dist/EpModal-DgLvWs3s.js +0 -4
  99. package/dist/EpObjective-BIZ56elw.js +0 -4
  100. package/dist/EpPieChart-CxE3BN2b.js +0 -4
  101. package/dist/EpQuestion-EQ6_Neor.js +0 -4
  102. package/dist/EpQuote-DZrcIqYB.js +0 -4
  103. package/dist/EpRadio-D-hiQH6x.js +0 -4
  104. package/dist/EpRadioSummative-V31TwtDf.js +0 -4
  105. package/dist/EpReading-TZ_RGKDL.js +0 -4
  106. package/dist/EpResource-Bc8yZxE0.js +0 -4
  107. package/dist/EpScope-DqJ3TXMe.js +0 -4
  108. package/dist/EpSection-CkKKHjtA.js +0 -4
  109. package/dist/EpSectionCols-BRklp4aF.js +0 -4
  110. package/dist/EpSkeleton-B3j9ocu4.js +0 -4
  111. package/dist/EpSoftware-B3Zi6b3M.js +0 -4
  112. package/dist/EpSpecificObjective-D7FxkGtF.js +0 -4
  113. package/dist/EpSpinner-eEhJP_dg.js +0 -4
  114. package/dist/EpSummativeTable-EQb5YwNZ.js +0 -4
  115. package/dist/EpSvg-DuBkjS1J.js +0 -4
  116. package/dist/EpTable-6Wcd9Hvr.js +0 -4
  117. package/dist/EpTerm-CAo26_rp.js +0 -4
  118. package/dist/EpText-XAdtrujQ.js +0 -4
  119. package/dist/EpTimeLine-qGC6PET7.js +0 -4
  120. package/dist/EpVideo-CppqYkIh.js +0 -4
  121. package/dist/EpVideoPanopto-Dbrz8xBH.js +0 -4
  122. package/dist/EpWordDef-CcMynnw9.js +0 -4
@@ -1,4 +1,4 @@
1
- import { a1 as Ml } from "./index-DROZe3zf.js";
1
+ import { a1 as Ml } from "./index-7_RFK7FL.js";
2
2
  function _l(n) {
3
3
  return n instanceof Map ? n.clear = n.delete = n.set = function() {
4
4
  throw new Error("map is read-only");
@@ -1,4 +1,4 @@
1
- import { a1 as V, a2 as W } from "./index-DROZe3zf.js";
1
+ import { a1 as V, a2 as W } from "./index-7_RFK7FL.js";
2
2
  function ee(S, P) {
3
3
  for (var i = 0; i < P.length; i++) {
4
4
  const g = P[i];
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .content[data-v-3a321611]{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}.shape{height:var(--57a4c52c);width:var(--32b5e5ba)}.v-enter-active[data-v-a9b3f460],.v-leave-active[data-v-a9b3f460]{transition:opacity .5s ease}.v-enter-from[data-v-a9b3f460],.v-leave-to[data-v-a9b3f460]{opacity:0}.katex[data-v-a5d595cd]{font-size:1.6em}.content[data-v-713dbd30]{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)}.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}
1
+ .content[data-v-3a321611]{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}pre{white-space:break-spaces}.shape{height:var(--57a4c52c);width:var(--32b5e5ba)}.v-enter-active[data-v-a9b3f460],.v-leave-active[data-v-a9b3f460]{transition:opacity .5s ease}.v-enter-from[data-v-a9b3f460],.v-leave-to[data-v-a9b3f460]{opacity:0}.katex[data-v-a5d595cd]{font-size:1.6em}.content[data-v-713dbd30]{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)}.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "1.0.34",
4
+ "version": "1.0.36",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -51,7 +51,7 @@
51
51
  "typescript": "^5.6.2",
52
52
  "vite": "^5.4.5",
53
53
  "vite-plugin-dts": "^3.9.0",
54
- "vue-tsc": "^2.1.10"
54
+ "vue-tsc": "^2.2.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "vue": "^3.2.45"
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import VCodeBlock from '@wdns/vue-code-block';
3
3
  import {defaultOption} from "../../types/Codeblock";
4
+ import EpAccordeon from "../interactions/EpAccordeon.vue";
4
5
  import type Theme from "../../types/Codeblock";
5
6
  import { computed} from "vue";
6
7
  import { ref } from "vue";
@@ -12,14 +13,23 @@
12
13
  label?:string;
13
14
  lang?:Langue;
14
15
  theme?:Theme;
16
+ title?: string | null;
17
+ compact?: boolean;
15
18
  }
16
19
  const props = withDefaults(defineProps<Props>(), {
17
20
  code:"",
18
21
  label:"",
19
22
  lang:"javascript",
20
23
  theme: defaultOption,
24
+ compact: false,
21
25
  })
22
26
 
27
+ const renderTitle = computed(() => {
28
+ if (!props.title) {
29
+ return "En savoir plus"
30
+ }
31
+ return props.title;
32
+ });
23
33
 
24
34
  const code = computed(()=>{
25
35
  return ref(props.code);
@@ -43,6 +53,22 @@ const theme = computed(()=>{
43
53
  :label=label
44
54
  :lang=lang
45
55
  :theme=theme
56
+ v-if="!compact"
46
57
  />
58
+
59
+ <EpAccordeon outlined :title="renderTitle" v-else>
60
+ <VCodeBlock
61
+ :code=code
62
+ highlightjs
63
+ :label=label
64
+ :lang=lang
65
+ :theme=theme
66
+ />
67
+ </EpAccordeon>
47
68
 
48
69
  </template>
70
+ <style>
71
+ pre {
72
+ white-space: break-spaces;
73
+ }
74
+ </style>
@@ -1,6 +1,4 @@
1
1
  <script setup lang="ts">
2
- import { defineProps } from 'vue';
3
-
4
2
  type Option = { text: string; value: string };
5
3
 
6
4
  const props = defineProps<{
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, ref } from 'vue';
3
+ import EpImg from '../basics/EpImg.vue';
3
4
  import { useCreateUid } from '../../composables/useCreateUid';
4
5
  import { useRenderText } from '../../composables/useRenderText';
5
6
  import { useRouter } from "vue-router";
@@ -22,7 +23,8 @@ interface Props {
22
23
  image?: string
23
24
  }
24
25
  relation:Relation[];
25
- variation:string[];
26
+ variation:string[];
27
+ cols?:number|string;
26
28
  labelInformation?: string;
27
29
  labelDomain?:string;
28
30
  labelVariations?: string;
@@ -36,7 +38,8 @@ const props = withDefaults(defineProps<Props>(), {
36
38
  labelDomain:"Domaine",
37
39
  labelRelations:"Relations" ,
38
40
  labelNoDefinition:"La definition n'est pas disponible",
39
- labelVariations:"Variation(s)"
41
+ labelVariations:"Variation(s)",
42
+ cols:"10"
40
43
  });
41
44
 
42
45
  const sizeGramIngo = computed(() => {
@@ -112,9 +115,11 @@ const id = ref(props.uid || useCreateUid());
112
115
  <div class="px-2 py-6" v-html="useRenderText(description)"></div>
113
116
  </template>
114
117
  <template v-else>
115
- <div class="flex">
118
+ <div class="flex flex-row justify-between">
116
119
  <div class="px-2 py-6" v-html="useRenderText(description)"></div>
117
- <img class="h-60" :src="content.image" :alt="`Image du terme ${term}`" />
120
+ <div class="flex w-1/2 justify-center p-2">
121
+ <EpImg :src="content.image" :cols="cols"/>
122
+ </div>
118
123
  </div>
119
124
  </template>
120
125
 
@@ -125,15 +125,15 @@ const { title, headerImgColor, big } = toRefs(props);
125
125
  v-if="title || subtitle"
126
126
  :class="`${
127
127
  textBg
128
- ? 'backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded'
128
+ ? 'inline-block backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded'
129
129
  : ''
130
130
  } p-4 md:items-center`"
131
131
  >
132
132
  <div class="text-center md:text-left">
133
- <h1 v-if="title" class="text-xl font-medium text-white sm:text-3xl">
133
+ <h1 v-if="title" class="text-3xl font-medium text-white sm:text-3xl">
134
134
  {{ title }}
135
135
  </h1>
136
- <h2 v-if="subtitle" class="max-w-xl mt-4 text-xl text-white contrast-50">
136
+ <h2 v-if="subtitle" class="max-w-xl mt-4 text-2xl text-white contrast-50">
137
137
  {{ subtitle }}
138
138
  </h2>
139
139
  </div>
@@ -1,4 +0,0 @@
1
- import { $ as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a0 as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { W as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { M as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { p as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { d as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { e } from "./index-DROZe3zf.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { t } from "./index-DROZe3zf.js";
2
- export {
3
- t as default
4
- };
@@ -1,4 +0,0 @@
1
- import { v as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { H as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { w as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { g as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { x as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { h as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { q as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { X as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { i as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { N as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { j as f } from "./index-DROZe3zf.js";
2
- export {
3
- f as default
4
- };