ep-lib-ts 0.1.9 → 0.1.10

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 (76) hide show
  1. package/dist/BgAudio-7556351b.js +5 -0
  2. package/dist/DisplayBox-15403c71.js +5 -0
  3. package/dist/EpAlert-2abc116f.js +5 -0
  4. package/dist/EpAudio-5c9dfb92.js +5 -0
  5. package/dist/EpBadge-234518b2.js +5 -0
  6. package/dist/EpBarChart-ce79ce3d.js +5 -0
  7. package/dist/EpBtn-3512ca60.js +5 -0
  8. package/dist/EpCard-84819b25.js +5 -0
  9. package/dist/EpChip-f91aa662.js +5 -0
  10. package/dist/{EpDivider-88c6be66.js → EpDivider-13d648fa.js} +1 -1
  11. package/dist/EpEdu-fe8bc9f2.js +5 -0
  12. package/dist/EpFlex-c87197a7.js +5 -0
  13. package/dist/EpHeader-61c8da9f.js +5 -0
  14. package/dist/EpIcon-c85eaee3.js +5 -0
  15. package/dist/EpIframe-06bf6ef4.js +5 -0
  16. package/dist/{EpImg-99724654.js → EpImg-dc60d288.js} +1 -1
  17. package/dist/{EpInput-f7992e3f.js → EpInput-e2cd96a6.js} +1 -1
  18. package/dist/EpLineChart-76eb8203.js +5 -0
  19. package/dist/EpLink-ae95b58b.js +5 -0
  20. package/dist/EpModal-9acbf67e.js +5 -0
  21. package/dist/{EpNothing-08f5601f.js → EpNothing-9a8a563a.js} +1 -1
  22. package/dist/EpQuestion-e24fa1e7.js +5 -0
  23. package/dist/EpQuote-82683817.js +5 -0
  24. package/dist/EpRadio-6bb393b5.js +5 -0
  25. package/dist/EpReading-725ce633.js +5 -0
  26. package/dist/EpResource-3487f005.js +5 -0
  27. package/dist/EpScope-87682f54.js +5 -0
  28. package/dist/EpSection-826799f7.js +5 -0
  29. package/dist/{EpSelect-ed79294a.js → EpSelect-39d82b2a.js} +1 -1
  30. package/dist/EpSoftware-b616d8f4.js +5 -0
  31. package/dist/EpSpinner-b1c988e5.js +5 -0
  32. package/dist/EpTable-fd10d6c4.js +5 -0
  33. package/dist/EpTerm-6a339de4.js +5 -0
  34. package/dist/EpText-75b4c821.js +5 -0
  35. package/dist/EpVideo-981c8f8d.js +5 -0
  36. package/dist/EpVideoPanopto-928e60df.js +5 -0
  37. package/dist/components/basics/EpSpinner.vue.d.ts +9 -0
  38. package/dist/components/medias/EpCarousel.vue.d.ts +2 -2
  39. package/dist/ep-lib-ts.js +1 -1
  40. package/dist/ep-lib-ts.umd.cjs +2 -2
  41. package/dist/{index-41c8e591.js → index-761c8157.js} +188 -183
  42. package/dist/style.css +1 -1
  43. package/package.json +1 -1
  44. package/src/components/basics/EpSpinner.vue +35 -25
  45. package/src/components/medias/EpCarousel.vue +10 -10
  46. package/dist/BgAudio-ca141b0f.js +0 -5
  47. package/dist/DisplayBox-38b3a1bd.js +0 -5
  48. package/dist/EpAlert-d5dcf3f1.js +0 -5
  49. package/dist/EpAudio-09920ab1.js +0 -5
  50. package/dist/EpBadge-d7da4b82.js +0 -5
  51. package/dist/EpBarChart-aa2d3bd3.js +0 -5
  52. package/dist/EpBtn-584a5fcb.js +0 -5
  53. package/dist/EpCard-522528d2.js +0 -5
  54. package/dist/EpChip-524340fe.js +0 -5
  55. package/dist/EpEdu-bfd8a980.js +0 -5
  56. package/dist/EpFlex-560567d3.js +0 -5
  57. package/dist/EpHeader-48f9a232.js +0 -5
  58. package/dist/EpIcon-2ba52cd4.js +0 -5
  59. package/dist/EpIframe-6c4453bb.js +0 -5
  60. package/dist/EpLineChart-655565a3.js +0 -5
  61. package/dist/EpLink-ab36acb1.js +0 -5
  62. package/dist/EpModal-d2df0421.js +0 -5
  63. package/dist/EpQuestion-f9baa3e7.js +0 -5
  64. package/dist/EpQuote-8be6e8eb.js +0 -5
  65. package/dist/EpRadio-4f83a512.js +0 -5
  66. package/dist/EpReading-4b8eb5bf.js +0 -5
  67. package/dist/EpResource-42e0f1e3.js +0 -5
  68. package/dist/EpScope-609f5fbe.js +0 -5
  69. package/dist/EpSection-eaf62d9e.js +0 -5
  70. package/dist/EpSoftware-0ca2b2d9.js +0 -5
  71. package/dist/EpSpinner-b50b86fd.js +0 -5
  72. package/dist/EpTable-4eaf84c7.js +0 -5
  73. package/dist/EpTerm-dfd79f23.js +0 -5
  74. package/dist/EpText-deac2bec.js +0 -5
  75. package/dist/EpVideo-1d585085.js +0 -5
  76. package/dist/EpVideoPanopto-cb5441d9.js +0 -5
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-ecd9b088],.v-leave-active[data-v-ecd9b088]{transition:opacity .5s ease}.v-enter-from[data-v-ecd9b088],.v-leave-to[data-v-ecd9b088]{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-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}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -4,44 +4,54 @@ import useColors from '../../composables/useColors';
4
4
  interface Props {
5
5
  color?: string;
6
6
  dots?: boolean;
7
- size?:number
7
+ size?: number
8
+ inline?: boolean
8
9
  }
9
10
 
10
11
  const props = withDefaults(defineProps<Props>(), {
11
12
  color: 'primary',
12
13
  dots: false,
13
- size:46
14
+ size: 46,
15
+ inline:false
14
16
  })
15
17
 
16
18
  const currentColor = computed(() => {
17
19
  return useColors('fill', props.color)
18
20
  })
19
21
 
22
+ const styles = computed(()=>{
23
+ return props.inline?'':'flex flex-row w-full h-screen items-center justify-center'
24
+ })
25
+
20
26
  </script>
21
27
 
22
28
  <template>
23
- <svg v-if="!dots" xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" class="inline" viewBox="0 0 32 32" >
24
- <path :class="currentColor" fill="currentColor"
25
- d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" opacity=".25"></path>
26
- <path :class="currentColor" fill="currentColor"
27
- d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z">
28
- <animateTransform attributeName="transform" dur="0.75s" repeatCount="indefinite" type="rotate"
29
- values="0 12 12;360 12 12">
30
- </animateTransform>
31
- </path>
32
- </svg>
33
- <svg v-else xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" class="inline" viewBox="0 0 32 32" >
34
- <g>
35
- <circle cx="12" cy="2.5" r="1.5" :class="currentColor" fill="currentColor" opacity=".14" />
36
- <circle cx="16.75" cy="3.77" r="1.5" :class="currentColor" fill="currentColor" opacity=".29" />
37
- <circle cx="20.23" cy="7.25" r="1.5" :class="currentColor" fill="currentColor" opacity=".43" />
38
- <circle cx="21.5" cy="12" r="1.5" :class="currentColor" fill="currentColor" opacity=".57" />
39
- <circle cx="20.23" cy="16.75" r="1.5" :class="currentColor" fill="currentColor" opacity=".71" />
40
- <circle cx="16.75" cy="20.23" r="1.5" :class="currentColor" fill="currentColor" opacity=".86" />
41
- <circle cx="12" cy="21.5" r="1.5" :class="currentColor" fill="currentColor" />
42
- <animateTransform attributeName="transform" calcMode="discrete" dur="0.75s" repeatCount="indefinite" type="rotate"
43
- values="0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12" />
44
- </g>
45
- </svg></template>
29
+ <div :class="styles">
30
+ <svg v-if="!dots" xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" class="inline" viewBox="0 0 32 32">
31
+ <path :class="currentColor" fill="currentColor"
32
+ d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" opacity=".25"></path>
33
+ <path :class="currentColor" fill="currentColor"
34
+ d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z">
35
+ <animateTransform attributeName="transform" dur="0.75s" repeatCount="indefinite" type="rotate"
36
+ values="0 12 12;360 12 12">
37
+ </animateTransform>
38
+ </path>
39
+ </svg>
40
+ <svg v-else xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" class="inline" viewBox="0 0 32 32">
41
+ <g>
42
+ <circle cx="12" cy="2.5" r="1.5" :class="currentColor" fill="currentColor" opacity=".14" />
43
+ <circle cx="16.75" cy="3.77" r="1.5" :class="currentColor" fill="currentColor" opacity=".29" />
44
+ <circle cx="20.23" cy="7.25" r="1.5" :class="currentColor" fill="currentColor" opacity=".43" />
45
+ <circle cx="21.5" cy="12" r="1.5" :class="currentColor" fill="currentColor" opacity=".57" />
46
+ <circle cx="20.23" cy="16.75" r="1.5" :class="currentColor" fill="currentColor" opacity=".71" />
47
+ <circle cx="16.75" cy="20.23" r="1.5" :class="currentColor" fill="currentColor" opacity=".86" />
48
+ <circle cx="12" cy="21.5" r="1.5" :class="currentColor" fill="currentColor" />
49
+ <animateTransform attributeName="transform" calcMode="discrete" dur="0.75s" repeatCount="indefinite"
50
+ type="rotate"
51
+ values="0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12" />
52
+ </g>
53
+ </svg>
54
+ </div>
55
+ </template>
46
56
 
47
57
 
@@ -9,7 +9,7 @@ import { MediaCarousel } from "../../types/MediaCarousel";
9
9
 
10
10
 
11
11
  interface Props {
12
- images: MediaCarousel[];
12
+ carrouselImg: MediaCarousel[];
13
13
  labelRef?:string|null;
14
14
  labelClose?:string|null
15
15
  }
@@ -24,17 +24,17 @@ const dialog = ref<boolean>(false);
24
24
 
25
25
  const prevSlide = () => {
26
26
  const isFirstSlide = currentIndex.value === 0;
27
- const newIndex = isFirstSlide ? props.images.length - 1 : currentIndex.value - 1;
27
+ const newIndex = isFirstSlide ? props.carrouselImg.length - 1 : currentIndex.value - 1;
28
28
  currentIndex.value = newIndex;
29
29
  };
30
30
 
31
31
  const nextSlide = () => {
32
- const isTheLastSlide = currentIndex.value === props.images.length - 1;
32
+ const isTheLastSlide = currentIndex.value === props.carrouselImg.length - 1;
33
33
  const newIndex = isTheLastSlide ? 0 : currentIndex.value + 1;
34
34
  currentIndex.value = newIndex;
35
35
  };
36
36
 
37
- const { images, labelClose, labelRef } = toRefs(props);
37
+ const { carrouselImg, labelClose, labelRef } = toRefs(props);
38
38
  </script>
39
39
 
40
40
  <template>
@@ -42,7 +42,7 @@ const { images, labelClose, labelRef } = toRefs(props);
42
42
  <button @click="prevSlide">
43
43
  <EpIcon :icon-path="mdiChevronLeftCircleOutline"></EpIcon>
44
44
  </button>
45
- {{ currentIndex + 1 }}/{{ images.length }}
45
+ {{ currentIndex + 1 }}/{{ carrouselImg.length }}
46
46
  <button @click="nextSlide">
47
47
  <EpIcon :icon-path="mdiChevronRightCircleOutline"></EpIcon>
48
48
  </button>
@@ -51,18 +51,18 @@ const { images, labelClose, labelRef } = toRefs(props);
51
51
  <div class="max-w-[800px] h-[550px] m-auto relative">
52
52
  <div
53
53
  class="w-full h-full bg-center bg-cover duration-500"
54
- :style="`background-image:url('${images[currentIndex].src}')`"
54
+ :style="`background-image:url('${carrouselImg[currentIndex].src}')`"
55
55
  ></div>
56
56
  </div>
57
- <div v-if="images[currentIndex]?.caption" class="mt-2 text-sm text-gray-800">
58
- {{ images[currentIndex].caption }}
57
+ <div v-if="carrouselImg[currentIndex]?.caption" class="mt-2 text-sm text-gray-800">
58
+ {{ carrouselImg[currentIndex].caption }}
59
59
  </div>
60
- <div v-if="images[currentIndex]?.bib" class="flex justify-end">
60
+ <div v-if="carrouselImg[currentIndex]?.bib" class="flex justify-end">
61
61
  <EpBtn type="primary" @click="dialog = true" dark>{{ labelRef }}</EpBtn>
62
62
  </div>
63
63
  </div>
64
64
  <EpModal v-model="dialog" title="Référence">
65
- <div v-html="images[currentIndex].bib"></div>
65
+ <div v-html="carrouselImg[currentIndex].bib"></div>
66
66
  <div class="flex justify-end">
67
67
  <EpBtn @click="dialog = false" type="primary" dark>{{ labelClose }}</EpBtn>
68
68
  </div>
@@ -1,5 +0,0 @@
1
- import { G as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { H as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { D as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { w as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { b as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { n as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { c as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { d as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { e as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { p as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { g as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { E as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { h as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { x as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { o as a } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { y as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { u as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { v as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { F as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { t as a } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { a as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { q as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { r as a } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { j as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { z as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { k as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { l as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { A as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { m as a } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { B as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { C as m } from "./index-41c8e591.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };