ep-lib-ts 0.1.10 → 0.1.11

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 (79) hide show
  1. package/dist/BgAudio-b12a8d0d.js +5 -0
  2. package/dist/DisplayBox-7f75756f.js +5 -0
  3. package/dist/EpAlert-8bea1cc6.js +5 -0
  4. package/dist/EpAudio-15f6ad49.js +5 -0
  5. package/dist/EpBadge-3c86b448.js +5 -0
  6. package/dist/EpBarChart-8d6c96e7.js +5 -0
  7. package/dist/EpBtn-87f90799.js +5 -0
  8. package/dist/{EpDivider-13d648fa.js → EpDivider-407d1497.js} +1 -1
  9. package/dist/EpEdu-f9179a45.js +5 -0
  10. package/dist/EpHeader-1397bf98.js +5 -0
  11. package/dist/EpIcon-f4dc52bb.js +5 -0
  12. package/dist/EpIframe-2cbac751.js +5 -0
  13. package/dist/{EpImg-dc60d288.js → EpImg-b94ff028.js} +1 -1
  14. package/dist/{EpInput-e2cd96a6.js → EpInput-b270aaaa.js} +1 -1
  15. package/dist/EpLineChart-d9a0b34b.js +5 -0
  16. package/dist/EpLink-2eab8bbf.js +5 -0
  17. package/dist/EpLinkVersion-d4c4a373.js +5 -0
  18. package/dist/EpModal-fe287280.js +5 -0
  19. package/dist/{EpNothing-9a8a563a.js → EpNothing-75cd2a42.js} +1 -1
  20. package/dist/EpQuestion-56464bb7.js +5 -0
  21. package/dist/EpQuote-fd55d7eb.js +5 -0
  22. package/dist/EpRadio-05507d50.js +5 -0
  23. package/dist/EpReading-14b168eb.js +5 -0
  24. package/dist/EpResource-efee3fa3.js +5 -0
  25. package/dist/EpScope-ec8113aa.js +5 -0
  26. package/dist/EpSection-d5a8818f.js +5 -0
  27. package/dist/{EpSelect-39d82b2a.js → EpSelect-623f5cf1.js} +1 -1
  28. package/dist/EpSoftware-556eab4b.js +5 -0
  29. package/dist/EpSpinner-35e73665.js +5 -0
  30. package/dist/EpTable-af31a993.js +5 -0
  31. package/dist/EpTerm-9088ca28.js +5 -0
  32. package/dist/EpText-4cbda071.js +5 -0
  33. package/dist/EpVideo-08e65cdf.js +5 -0
  34. package/dist/EpVideoPanopto-84e6e091.js +5 -0
  35. package/dist/components/basics/EpImg.vue.d.ts +0 -6
  36. package/dist/components/medias/EpCarousel.vue.d.ts +9 -0
  37. package/dist/components/medias/EpLinkVersion.vue.d.ts +26 -1
  38. package/dist/ep-lib-ts.js +5 -5
  39. package/dist/ep-lib-ts.umd.cjs +26 -26
  40. package/dist/{index-761c8157.js → index-8c79cd61.js} +4080 -4061
  41. package/dist/style.css +1 -1
  42. package/package.json +1 -1
  43. package/src/components/basics/EpImg.vue +1 -2
  44. package/src/components/forms/EpRadio.vue +1 -2
  45. package/src/components/interactions/EpQuestion.vue +1 -1
  46. package/src/components/medias/EpCarousel.vue +40 -33
  47. package/src/components/medias/EpLink.vue +1 -1
  48. package/src/components/medias/EpLinkVersion.vue +30 -2
  49. package/dist/BgAudio-7556351b.js +0 -5
  50. package/dist/DisplayBox-15403c71.js +0 -5
  51. package/dist/EpAlert-2abc116f.js +0 -5
  52. package/dist/EpBadge-234518b2.js +0 -5
  53. package/dist/EpBarChart-ce79ce3d.js +0 -5
  54. package/dist/EpBtn-3512ca60.js +0 -5
  55. package/dist/EpCard-84819b25.js +0 -5
  56. package/dist/EpChip-f91aa662.js +0 -5
  57. package/dist/EpEdu-fe8bc9f2.js +0 -5
  58. package/dist/EpFlex-c87197a7.js +0 -5
  59. package/dist/EpHeader-61c8da9f.js +0 -5
  60. package/dist/EpIcon-c85eaee3.js +0 -5
  61. package/dist/EpIframe-06bf6ef4.js +0 -5
  62. package/dist/EpLineChart-76eb8203.js +0 -5
  63. package/dist/EpModal-9acbf67e.js +0 -5
  64. package/dist/EpQuote-82683817.js +0 -5
  65. package/dist/EpRadio-6bb393b5.js +0 -5
  66. package/dist/EpReading-725ce633.js +0 -5
  67. package/dist/EpResource-3487f005.js +0 -5
  68. package/dist/EpScope-87682f54.js +0 -5
  69. package/dist/EpSection-826799f7.js +0 -5
  70. package/dist/EpSoftware-b616d8f4.js +0 -5
  71. package/dist/EpSpinner-b1c988e5.js +0 -5
  72. package/dist/EpTable-fd10d6c4.js +0 -5
  73. package/dist/EpTerm-6a339de4.js +0 -5
  74. package/dist/EpText-75b4c821.js +0 -5
  75. package/dist/EpVideo-981c8f8d.js +0 -5
  76. package/dist/EpVideoPanopto-928e60df.js +0 -5
  77. package/dist/{EpQuestion-e24fa1e7.js → EpCard-61fc7afd.js} +1 -1
  78. package/dist/{EpAudio-5c9dfb92.js → EpChip-16e2c87e.js} +1 -1
  79. package/dist/{EpLink-ae95b58b.js → EpFlex-9e2d21f7.js} +1 -1
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .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;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)}.content[data-v-69793e45]{max-height:0;overflow:hidden}.v-enter-active[data-v-7d48941b],.v-leave-active[data-v-7d48941b]{transition:opacity .5s ease}.v-enter-from[data-v-7d48941b],.v-leave-to[data-v-7d48941b]{opacity:0}.katex[data-v-24ff8b28]{font-size:1.3em}
1
+ .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;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)}.content[data-v-69793e45]{max-height:0;overflow:hidden}.v-enter-active[data-v-05af9726],.v-leave-active[data-v-05af9726]{transition:opacity .5s ease}.v-enter-from[data-v-05af9726],.v-leave-to[data-v-05af9726]{opacity:0}.katex[data-v-24ff8b28]{font-size:1.3em}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.10",
4
+ "version": "0.1.11",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -29,7 +29,6 @@ interface Props {
29
29
  caption?: string;
30
30
  bib?: string;
31
31
  title?: string,
32
- gallery?: boolean
33
32
  cols?: string | number //posible type à venir => basis-1/12... basis-11/12 to basis-full
34
33
  }
35
34
 
@@ -78,7 +77,7 @@ const { src, alt, title, caption, thumbnail, bib } = toRefs(props)
78
77
  </div>
79
78
  </div>
80
79
  <EpModal v-model="showModal">
81
- <img class="object-cover object-center h-5/6 w-5/6 mx-auto" :src="src" :alt="alt">
80
+ <img class="object-cover object-center h-5/6 w-5/6 mx-auto" :src="src" :alt="alt" @click="showModal = false">
82
81
  <div class="px-4 py-2" v-if="thumbnail">
83
82
  <h2 class="text-2xl font-bold">{{ title }}</h2>
84
83
  <p class="text-gray-500 text-sm mt-4">{{ caption }}</p>
@@ -51,8 +51,7 @@ const onChange = (event:Event) => {
51
51
  </script>
52
52
 
53
53
  <template>
54
- <span>
55
-
54
+ <span class="flex items-center">
56
55
  <input
57
56
  class="cursor-pointer"
58
57
  type="radio"
@@ -138,7 +138,7 @@ const { title, intentions, hideIcon, question, src } = toRefs(props);
138
138
 
139
139
  <div class="mb-6">
140
140
  <ol>
141
- <li v-for="(answer, i) in answers" class="mb-2" :key="answer.uid">
141
+ <li v-for="(answer, i) in answers" :key="answer.uid">
142
142
  <EpRadio
143
143
  :label="`${typeList(i)}. ${answer.text}`"
144
144
  v-model="userAnswer"
@@ -1,22 +1,24 @@
1
1
  <script setup lang="ts">
2
2
  import { toRefs, ref } from "vue";
3
- import EpIcon from "../basics/EpIcon.vue";
4
- import EpBtn from "../basics/EpBtn.vue";
5
- import EpModal from "../interactions/EpModal.vue";
6
3
  import { mdiChevronLeftCircleOutline } from "@mdi/js";
7
4
  import { mdiChevronRightCircleOutline } from "@mdi/js";
8
5
  import { MediaCarousel } from "../../types/MediaCarousel";
9
-
6
+ import EpIcon from "../basics/EpIcon.vue";
7
+ import EpBtn from "../basics/EpBtn.vue";
8
+ import EpModal from "../interactions/EpModal.vue";
9
+ import EpImg from "../basics/EpImg.vue";
10
10
 
11
11
  interface Props {
12
12
  carrouselImg: MediaCarousel[];
13
+ gallery?:boolean;
13
14
  labelRef?:string|null;
14
15
  labelClose?:string|null
15
16
  }
16
17
 
17
18
  const props = withDefaults(defineProps<Props>(), {
18
19
  labelClose:"Fermer",
19
- labelRef:"Référence"
20
+ labelRef:"Référence",
21
+ gallery:false
20
22
  });
21
23
 
22
24
  const currentIndex = ref<number>(0);
@@ -38,40 +40,45 @@ const { carrouselImg, labelClose, labelRef } = toRefs(props);
38
40
  </script>
39
41
 
40
42
  <template>
41
- <div class="flex items-center justify-center mb-2">
42
- <button @click="prevSlide">
43
- <EpIcon :icon-path="mdiChevronLeftCircleOutline"></EpIcon>
44
- </button>
45
- {{ currentIndex + 1 }}/{{ carrouselImg.length }}
46
- <button @click="nextSlide">
47
- <EpIcon :icon-path="mdiChevronRightCircleOutline"></EpIcon>
48
- </button>
49
- </div>
50
- <div class="bg-white shadow-xl p-4 max-w-[800px] mx-auto border-solid">
51
- <div class="max-w-[800px] h-[550px] m-auto relative">
52
- <div
53
- class="w-full h-full bg-center bg-cover duration-500"
54
- :style="`background-image:url('${carrouselImg[currentIndex].src}')`"
55
- ></div>
43
+ <div v-if="!gallery">
44
+ <div class="flex items-center justify-center mb-2">
45
+ <button @click="prevSlide">
46
+ <EpIcon :icon-path="mdiChevronLeftCircleOutline"></EpIcon>
47
+ </button>
48
+ {{ currentIndex + 1 }}/{{ carrouselImg.length }}
49
+ <button @click="nextSlide">
50
+ <EpIcon :icon-path="mdiChevronRightCircleOutline"></EpIcon>
51
+ </button>
56
52
  </div>
57
- <div v-if="carrouselImg[currentIndex]?.caption" class="mt-2 text-sm text-gray-800">
58
- {{ carrouselImg[currentIndex].caption }}
59
- </div>
60
- <div v-if="carrouselImg[currentIndex]?.bib" class="flex justify-end">
61
- <EpBtn type="primary" @click="dialog = true" dark>{{ labelRef }}</EpBtn>
53
+ <div class="bg-white shadow-xl p-4 max-w-[800px] mx-auto border-solid">
54
+ <div class="max-w-[800px] h-[550px] m-auto relative">
55
+ <div
56
+ class="w-full h-full bg-center bg-cover duration-500"
57
+ :style="`background-image:url('${carrouselImg[currentIndex].src}')`"
58
+ ></div>
59
+ </div>
60
+ <div v-if="carrouselImg[currentIndex]?.caption" class="mt-2 text-sm text-gray-800">
61
+ {{ carrouselImg[currentIndex].caption }}
62
+ </div>
63
+ <div v-if="carrouselImg[currentIndex]?.bib" class="flex justify-end">
64
+ <EpBtn type="primary" @click="dialog = true" dark>{{ labelRef }}</EpBtn>
65
+ </div>
62
66
  </div>
67
+ <EpModal v-model="dialog" title="Référence">
68
+ <div v-html="carrouselImg[currentIndex].bib"></div>
69
+ <div class="flex justify-end">
70
+ <EpBtn @click="dialog = false" type="primary" dark>{{ labelClose }}</EpBtn>
71
+ </div>
72
+ </EpModal>
73
+ </div>
74
+ <div v-else>
75
+ <template v-for="image in carrouselImg" :key="`image-${image?.uid}`">
76
+ <EpImg :src="image.src" :bib="image.bib" :caption="image.caption" thumbnail></EpImg>
77
+ </template>
63
78
  </div>
64
- <EpModal v-model="dialog" title="Référence">
65
- <div v-html="carrouselImg[currentIndex].bib"></div>
66
- <div class="flex justify-end">
67
- <EpBtn @click="dialog = false" type="primary" dark>{{ labelClose }}</EpBtn>
68
- </div>
69
- </EpModal>
70
- <!--icons-->
71
79
  </template>
72
80
 
73
81
  <style scoped>
74
- /* we will explain what these classes do next! */
75
82
  .v-enter-active,
76
83
  .v-leave-active {
77
84
  transition: opacity 0.5s ease;
@@ -51,7 +51,7 @@ const { href, label, intentions, mandateLevel, hideIcon } = toRefs(props);
51
51
  <template #content>
52
52
  <div class="flex justify-center">
53
53
  <div class="w-4/5">
54
- <EpBtn block color="text-white" rounded :type="type" :prependIcon="renderIcon" :href="href"
54
+ <EpBtn block :color="type === 'base'?'text-black':'text-white'" rounded :type="type" :prependIcon="renderIcon" :href="href"
55
55
  extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out ">
56
56
  <span class="font-medium tracking-wider ">{{label}}</span>
57
57
  <span :class='hoverColor'></span>
@@ -1,8 +1,36 @@
1
1
  <script setup lang="ts">
2
+ import { toRefs } from 'vue';
3
+ import EpLink from './EpLink.vue';
4
+ import EpIframe from './EpIframe.vue';
5
+
6
+ type TypeLink = "iframe" | "button"
7
+
8
+ interface Link {
9
+ id:string;
10
+ url:string;
11
+ title:string;
12
+ disabled:boolean
13
+ }
14
+
15
+ interface Props{
16
+ type:TypeLink;
17
+ link:Link
18
+ }
19
+
20
+ const props = withDefaults(defineProps<Props>(),{})
21
+
22
+ const {type, link} = toRefs(props)
23
+
2
24
  </script>
3
25
 
4
26
  <template>
5
- <div class="p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning">
6
- <p class="text-center text-error font-bold uppercase">In progress</p>
27
+ <div v-if="type === 'button'">
28
+ <EpLink :label="link.title" :href="link.url"></EpLink>
29
+ </div>
30
+ <div v-else-if="type === 'iframe'">
31
+ <EpIframe :title="link.title" :src="link.url"></EpIframe>
32
+ </div>
33
+ <div v-else>
34
+ no data
7
35
  </div>
8
36
  </template>
@@ -1,5 +0,0 @@
1
- import { G as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { H as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { D as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { b as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { n as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { c as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { d as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { e as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { p as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { g as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { E as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { h as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { x as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { o as a } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { u as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { F as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { t as a } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { a as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { q as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { r as a } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { j as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { z as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { k as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { l as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { A as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { m as a } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { B as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { C as m } from "./index-761c8157.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,4 +1,4 @@
1
- import { v as m } from "./index-761c8157.js";
1
+ import { d as m } from "./index-8c79cd61.js";
2
2
  import "vue";
3
3
  export {
4
4
  m as default
@@ -1,4 +1,4 @@
1
- import { w as m } from "./index-761c8157.js";
1
+ import { e as m } from "./index-8c79cd61.js";
2
2
  import "vue";
3
3
  export {
4
4
  m as default
@@ -1,4 +1,4 @@
1
- import { y as m } from "./index-761c8157.js";
1
+ import { g as m } from "./index-8c79cd61.js";
2
2
  import "vue";
3
3
  export {
4
4
  m as default