ep-lib-ts 1.0.35 → 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 (120) 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-BHYy2H_7.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-yDkRFQtx.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-CWrpD1mL.js → EpList-B6Q3fXGj.js} +1 -1
  32. package/dist/EpModal-DuIZeI6V.js +4 -0
  33. package/dist/{EpNothing-DoWzP81f.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/ep-lib-ts.js +1 -1
  60. package/dist/ep-lib-ts.umd.cjs +32 -32
  61. package/dist/{index-CAb7BIas.js → index-7_RFK7FL.js} +2917 -2899
  62. package/dist/{index-BGsaIGs9.js → index-D4ekzRdY.js} +1 -1
  63. package/dist/{prism-DcL1Q084.js → prism-CZvJL8HS.js} +1 -1
  64. package/dist/style.css +1 -1
  65. package/package.json +2 -2
  66. package/src/components/educationals/EpCodeblock.vue +26 -0
  67. package/src/components/forms/EpSelect.vue +0 -2
  68. package/src/components/signages/EpHeader.vue +3 -3
  69. package/dist/BgAudio-DVtBy2Yu.js +0 -4
  70. package/dist/DisplayBox-Bqpv2Yax.js +0 -4
  71. package/dist/EpAlert-DIz92PWl.js +0 -4
  72. package/dist/EpAudio-BYAKVi4t.js +0 -4
  73. package/dist/EpBadge-BQPHoP0c.js +0 -4
  74. package/dist/EpBarChart-DPMjCUAi.js +0 -4
  75. package/dist/EpBtn-BsTDJzZl.js +0 -4
  76. package/dist/EpCard-BV7JGDmN.js +0 -4
  77. package/dist/EpChip-Bc5_CRfT.js +0 -4
  78. package/dist/EpCodeblock-Cgpe89w6.js +0 -4
  79. package/dist/EpConclusion--tFRXdSL.js +0 -4
  80. package/dist/EpContentSlider-zrdFRG7P.js +0 -4
  81. package/dist/EpDescription-BDF2F3QV.js +0 -4
  82. package/dist/EpDivider-CJi6nCyw.js +0 -4
  83. package/dist/EpEdu--ba22VQy.js +0 -4
  84. package/dist/EpFlex-CHPbSith.js +0 -4
  85. package/dist/EpFunnelChart-D0e_q2MH.js +0 -4
  86. package/dist/EpHeader-BxdfY-8D.js +0 -4
  87. package/dist/EpIcon-CjqNxCUN.js +0 -4
  88. package/dist/EpIframe-DErlt49p.js +0 -4
  89. package/dist/EpImg-CXoXMzh1.js +0 -4
  90. package/dist/EpInput-SPJ_6aAL.js +0 -1168
  91. package/dist/EpInstructions-swRu_knl.js +0 -4
  92. package/dist/EpIntroduction-BpdeCXud.js +0 -4
  93. package/dist/EpLineChart-ClCluBEa.js +0 -4
  94. package/dist/EpLink-BH8JnesP.js +0 -4
  95. package/dist/EpLinkVersion-Ti3w_eOz.js +0 -4
  96. package/dist/EpModal-bOiLnl7i.js +0 -4
  97. package/dist/EpObjective-ADofPvvb.js +0 -4
  98. package/dist/EpPieChart-Q9m_DFgU.js +0 -4
  99. package/dist/EpQuestion-CcpZ58fx.js +0 -4
  100. package/dist/EpQuote-2fZoyMCN.js +0 -4
  101. package/dist/EpRadio-DDVA6v0A.js +0 -4
  102. package/dist/EpRadioSummative-4JojYeC8.js +0 -4
  103. package/dist/EpReading-CXeFpu9Q.js +0 -4
  104. package/dist/EpResource-BWdIzn90.js +0 -4
  105. package/dist/EpScope-Cc_-80ir.js +0 -4
  106. package/dist/EpSection-BLO-FKWj.js +0 -4
  107. package/dist/EpSectionCols-2PD4vn2f.js +0 -4
  108. package/dist/EpSkeleton-DZVfIXYn.js +0 -4
  109. package/dist/EpSoftware-DssmIKzt.js +0 -4
  110. package/dist/EpSpecificObjective-DZVGLGX3.js +0 -4
  111. package/dist/EpSpinner-Bq6iLU0e.js +0 -4
  112. package/dist/EpSummativeTable-LbWYDdm0.js +0 -4
  113. package/dist/EpSvg-CArfUn2s.js +0 -4
  114. package/dist/EpTable-CgEzj10i.js +0 -4
  115. package/dist/EpTerm-CpUmtYPe.js +0 -4
  116. package/dist/EpText-CCnR2Vyt.js +0 -4
  117. package/dist/EpTimeLine-CJ5GCxvC.js +0 -4
  118. package/dist/EpVideo-BBmT0bWr.js +0 -4
  119. package/dist/EpVideoPanopto-CF_RKq9a.js +0 -4
  120. package/dist/EpWordDef-jdGql2Aw.js +0 -4
@@ -1,4 +1,4 @@
1
- import { a1 as Ml } from "./index-CAb7BIas.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-CAb7BIas.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.35",
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<{
@@ -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-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a0 as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { W as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { M as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { p as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { d as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { e } from "./index-CAb7BIas.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { t } from "./index-CAb7BIas.js";
2
- export {
3
- t as default
4
- };
@@ -1,4 +0,0 @@
1
- import { v as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { H as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { w as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { g as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { x as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { h as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { q as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { X as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { i as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { N as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { j as f } from "./index-CAb7BIas.js";
2
- export {
3
- f as default
4
- };