ep-lib-ts 0.1.26 → 0.1.27

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 (108) hide show
  1. package/dist/BgAudio-0d3e1906.js +5 -0
  2. package/dist/DisplayBox-e24b0716.js +5 -0
  3. package/dist/EpAlert-127a5ec0.js +5 -0
  4. package/dist/EpAudio-232093fb.js +5 -0
  5. package/dist/EpBadge-3b2b1b16.js +5 -0
  6. package/dist/EpBarChart-c85cf146.js +5 -0
  7. package/dist/EpBtn-6a6aa737.js +5 -0
  8. package/dist/EpCard-bc9eea67.js +5 -0
  9. package/dist/{EpChip-d95c000b.js → EpChip-2fc73c23.js} +1 -1
  10. package/dist/EpContentSlider-c3f223dc.js +5 -0
  11. package/dist/EpDivider-85308a54.js +5 -0
  12. package/dist/EpEdu-226108fc.js +5 -0
  13. package/dist/EpFlex-58da2ff0.js +5 -0
  14. package/dist/EpHeader-b3d00ddd.js +5 -0
  15. package/dist/{EpIcon-f4b4bc40.js → EpIcon-ff5233d3.js} +1 -1
  16. package/dist/EpIframe-e537d5fe.js +5 -0
  17. package/dist/EpImg-5da4a13a.js +5 -0
  18. package/dist/{EpInput-52bd7c29.js → EpInput-38a116e8.js} +1 -1
  19. package/dist/EpLineChart-e4b95ea0.js +5 -0
  20. package/dist/EpLink-1d0c4a58.js +5 -0
  21. package/dist/EpLinkVersion-4b7ceff9.js +5 -0
  22. package/dist/EpModal-25720774.js +5 -0
  23. package/dist/{EpNothing-ee1a3764.js → EpNothing-0c1161b5.js} +1 -1
  24. package/dist/EpPieChart-d411615d.js +5 -0
  25. package/dist/EpQuestion-e8b96e78.js +5 -0
  26. package/dist/EpQuote-a90ebf39.js +5 -0
  27. package/dist/EpRadio-5bb772a8.js +5 -0
  28. package/dist/EpReading-edf407a0.js +5 -0
  29. package/dist/EpResource-99b6e173.js +5 -0
  30. package/dist/EpScope-da257fa6.js +5 -0
  31. package/dist/EpSection-c4d0969f.js +5 -0
  32. package/dist/{EpSelect-3bb3ebfb.js → EpSelect-54dc2caf.js} +1 -1
  33. package/dist/EpSoftware-2c98a593.js +5 -0
  34. package/dist/EpSpinner-f183bf19.js +5 -0
  35. package/dist/EpSvg-44db647b.js +5 -0
  36. package/dist/EpTable-0cbaf4f8.js +5 -0
  37. package/dist/EpTerm-41a877f2.js +5 -0
  38. package/dist/EpText-c659f337.js +5 -0
  39. package/dist/EpTimeLine-587db16d.js +5 -0
  40. package/dist/EpVideo-77bcdc7a.js +5 -0
  41. package/dist/EpVideoPanopto-5cc9743f.js +5 -0
  42. package/dist/components/basics/EpBadge.vue.d.ts +9 -9
  43. package/dist/components/basics/EpBtn.vue.d.ts +11 -11
  44. package/dist/components/basics/EpDivider.vue.d.ts +9 -9
  45. package/dist/components/basics/EpImg.vue.d.ts +4 -4
  46. package/dist/components/basics/EpSection.vue.d.ts +6 -6
  47. package/dist/components/basics/EpSpinner.vue.d.ts +9 -9
  48. package/dist/components/charts/EpBarChart.vue.d.ts +6 -6
  49. package/dist/components/charts/EpLineChart.vue.d.ts +6 -6
  50. package/dist/components/charts/EpPieChart.vue.d.ts +6 -6
  51. package/dist/components/educationals/EpResource.vue.d.ts +5 -5
  52. package/dist/components/forms/EpCheckbox.vue.d.ts +9 -9
  53. package/dist/components/forms/EpInput.vue.d.ts +26 -26
  54. package/dist/components/forms/EpRadio.vue.d.ts +18 -18
  55. package/dist/components/forms/EpSelect.vue.d.ts +17 -17
  56. package/dist/components/forms/EpSwitch.vue.d.ts +18 -18
  57. package/dist/components/forms/EpTextarea.vue.d.ts +18 -18
  58. package/dist/components/forms/EpToggle.vue.d.ts +18 -18
  59. package/dist/components/medias/EpSoftware.vue.d.ts +6 -6
  60. package/dist/components/medias/EpSvg.vue.d.ts +11 -1
  61. package/dist/components/tools/TimelineItem.vue.d.ts +9 -0
  62. package/dist/ep-lib-ts.js +1 -1
  63. package/dist/ep-lib-ts.umd.cjs +12 -12
  64. package/dist/{index-58100a64.js → index-8ba6a808.js} +1460 -1445
  65. package/dist/style.css +1 -1
  66. package/package.json +2 -2
  67. package/src/components/basics/EpImg.vue +1 -1
  68. package/src/components/basics/EpText.vue +21 -10
  69. package/src/components/medias/EpSvg.vue +29 -6
  70. package/src/components/medias/EpTerm.vue +3 -3
  71. package/src/components/medias/EpTimeLine.vue +52 -45
  72. package/src/components/tools/TimelineItem.vue +3 -3
  73. package/dist/BgAudio-9c7c57a7.js +0 -5
  74. package/dist/DisplayBox-c282fff4.js +0 -5
  75. package/dist/EpAlert-a64aea08.js +0 -5
  76. package/dist/EpAudio-32aaf084.js +0 -5
  77. package/dist/EpBadge-8380fcc2.js +0 -5
  78. package/dist/EpBarChart-3f81608e.js +0 -5
  79. package/dist/EpBtn-0c842202.js +0 -5
  80. package/dist/EpCard-700fe5e3.js +0 -5
  81. package/dist/EpContentSlider-d8752e6e.js +0 -5
  82. package/dist/EpDivider-a32e0177.js +0 -5
  83. package/dist/EpEdu-9d26836d.js +0 -5
  84. package/dist/EpFlex-59716f0c.js +0 -5
  85. package/dist/EpHeader-f168320a.js +0 -5
  86. package/dist/EpIframe-27a236f3.js +0 -5
  87. package/dist/EpImg-00828689.js +0 -5
  88. package/dist/EpLineChart-67012b1e.js +0 -5
  89. package/dist/EpLink-fc45197a.js +0 -5
  90. package/dist/EpLinkVersion-13183ab8.js +0 -5
  91. package/dist/EpModal-5bff1fb8.js +0 -5
  92. package/dist/EpPieChart-5e1350b8.js +0 -5
  93. package/dist/EpQuestion-ca5ebab1.js +0 -5
  94. package/dist/EpQuote-51d82a92.js +0 -5
  95. package/dist/EpRadio-34d4b2f1.js +0 -5
  96. package/dist/EpReading-15024973.js +0 -5
  97. package/dist/EpResource-d4402841.js +0 -5
  98. package/dist/EpScope-e03422df.js +0 -5
  99. package/dist/EpSection-07e69719.js +0 -5
  100. package/dist/EpSoftware-bf127112.js +0 -5
  101. package/dist/EpSpinner-6675a594.js +0 -5
  102. package/dist/EpSvg-26494cb6.js +0 -5
  103. package/dist/EpTable-4a80c53e.js +0 -5
  104. package/dist/EpTerm-681f1cec.js +0 -5
  105. package/dist/EpText-7636f01e.js +0 -5
  106. package/dist/EpTimeLine-3c329159.js +0 -5
  107. package/dist/EpVideo-0f779d99.js +0 -5
  108. package/dist/EpVideoPanopto-ee435c19.js +0 -5
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .content[data-v-ab122c9c]{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}.h-custom{height:30rem}.p-custom p{margin-bottom:1em}.v-enter-active[data-v-049ea2df],.v-leave-active[data-v-049ea2df]{transition:opacity .5s ease}.v-enter-from[data-v-049ea2df],.v-leave-to[data-v-049ea2df]{opacity:0}.katex[data-v-24ff8b28]{font-size:1.3em}.content[data-v-523dedc7]{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)}
1
+ .content[data-v-ab122c9c]{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}.h-custom{height:30rem}.p-custom p{margin-bottom:1em}.v-enter-active[data-v-049ea2df],.v-leave-active[data-v-049ea2df]{transition:opacity .5s ease}.v-enter-from[data-v-049ea2df],.v-leave-to[data-v-049ea2df]{opacity:0}.katex[data-v-24ff8b28]{font-size:1.3em}.content[data-v-4cca257a]{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)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.26",
4
+ "version": "0.1.27",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -50,7 +50,7 @@
50
50
  "typescript": "^5.2.0-dev.20230801",
51
51
  "vite": "^4.1.0",
52
52
  "vite-plugin-dts": "^3.5.2",
53
- "vue-tsc": "^1.8.10"
53
+ "vue-tsc": "^1.8.19"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "vue": "^3.2.45"
@@ -38,7 +38,7 @@ interface Props {
38
38
 
39
39
  const props = withDefaults(defineProps<Props>(), {
40
40
  alt: "Image snfas",
41
- cols: "basis-6/12",
41
+ cols: "6",
42
42
  thumbnail: false,
43
43
  noModal:false
44
44
  })
@@ -4,7 +4,6 @@ import { isHtml } from "../../composables/isHtml";
4
4
  import { useMarkdown } from "../../composables/useMarkdown";
5
5
  import EpAccordeon from "../interactions/EpAccordeon.vue";
6
6
 
7
-
8
7
  interface Props {
9
8
  glossary?: any[];
10
9
  content: string;
@@ -30,13 +29,21 @@ const renderText = computed(() => {
30
29
  if (!isHtml(props.content)) {
31
30
  return useMarkdown(props.content);
32
31
  }
32
+ if(!props.glossary){
33
+ return props.content
34
+ }
33
35
  //return props.content
34
36
  //create a div
35
37
  const div = document.createElement("DIV");
38
+
39
+ //format string
40
+ const contentString = props.content.trim();
41
+ const newFormat = contentString.replace(/<p>/g, '<div style="margin-bottom: 1em;">').replace(/<\/p>/g, '</div>')
36
42
  ///add the html input to the div
37
- div.innerHTML = props.content.trim();
43
+ div.innerHTML = newFormat
38
44
  ///get strign of html
39
45
  let newStr = div.outerHTML;
46
+ //console.log(newStr)
40
47
  //find all span.ep_glossary_item to know the glossary terms in the text
41
48
  const glossaryTerms = div.querySelectorAll(".ep_glossary_item");
42
49
  // console.log(glossaryTerms)
@@ -45,6 +52,7 @@ const renderText = computed(() => {
45
52
  ///check every term and replace it
46
53
  glossaryTerms.forEach((item) => {
47
54
  //get id
55
+
48
56
  const id = item.getAttribute("data-id");
49
57
  //get content text
50
58
  const render_word = item.innerHTML;
@@ -57,7 +65,9 @@ const renderText = computed(() => {
57
65
  //if was found
58
66
  if (term) {
59
67
  ///add the new values to the array
68
+
60
69
  const word = item.outerHTML;
70
+ // console.log(word)
61
71
  //check if the term has relations
62
72
  const foundedRelations = _glossary.filter((x) =>
63
73
  x.relation.some((item: string) => {
@@ -69,36 +79,37 @@ const renderText = computed(() => {
69
79
  const termsRelation = foundedRelations.map((x) => x.term);
70
80
  const variation = term.variation;
71
81
  const hasImge = term.src ? term.src : "";
72
- //const replaceWord = `<EpBtn :pts-data="{term:'${term.term}', definition:'${term.definition}', renderword:'${render_word}', graminfo:'${term.graminfo}', domain:'${term.domain}',variation:'${variation}', relations_names:'${termsRelation}', relations_ids:'${idsRelation}'}"></EpBtn>`
73
- const replaceWord = ` <EpTerm term="${term.term}" word="${render_word}" variations="${variation}" graminfo="${term.graminfo}" src='${hasImge}' domain="${term.domain}" relations="${termsRelation}" idrelation="${idsRelation}"> ${term.definition} </EpTerm> `;
82
+ const replaceWord = `<div style="display:inline"><EpTerm term="${term.term}" word="${render_word}" variations="${variation}" graminfo="${term.graminfo}" src="${hasImge}" domain="${term.domain}" relations="${termsRelation}" idrelation="${idsRelation}" > ${term.definition}</EpTerm> </div>`;
74
83
  //replace output string
75
84
  newStr = newStr.replace(word, replaceWord);
85
+
76
86
  }
77
87
  });
78
88
  }
79
- div.innerHTML = newStr;
80
- // console.log(div.innerHTML)
81
- return div.innerHTML;
89
+ div.innerHTML = newStr
90
+ return div.innerHTML
82
91
  });
83
92
 
93
+ //console.log(renderText.value)
94
+
84
95
  const myRenderComponent = () => {
85
96
  const r = {
86
97
  components: {
87
- epterm: defineAsyncComponent(()=>import('../medias/EpTerm.vue')),
98
+ epterm: defineAsyncComponent(()=>import('../medias/EpTerm.vue')),
88
99
  },
89
- template: `<div>${renderText.value}</div>`,
100
+ template: `${renderText.value}`,
90
101
  };
91
102
 
92
103
  return h(r);
93
104
  };
94
105
 
95
106
 
96
-
97
107
  const { compact } = toRefs(props);
98
108
  </script>
99
109
 
100
110
  <template>
101
111
  <div>
112
+
102
113
  <myRenderComponent v-if="!compact"></myRenderComponent>
103
114
  <EpAccordeon outlined :title="renderTitle" v-else>
104
115
  <myRenderComponent></myRenderComponent>
@@ -6,16 +6,39 @@ import { useRenderText } from "../../composables/useRenderText";
6
6
  import { mdiImage } from '@mdi/js';
7
7
  import EpEdu from '../educationals/EpEdu.vue';
8
8
 
9
+
10
+
9
11
  interface Props {
10
12
  desc?:string;
11
13
  title?:string;
12
14
  content?:string;
13
15
  mandateLevel?: string | MandateLevel | null;
14
- type?:MediaVariants
16
+ type?:MediaVariants;
17
+ cols?:string | number;
15
18
  }
16
19
 
17
20
  const props = withDefaults(defineProps<Props>(), {
21
+ cols: "6",
22
+ })
23
+
24
+ const Cols = [
25
+ 'basis-6/12',
26
+ 'basis-1/12',
27
+ 'basis-2/12',
28
+ 'basis-3/12',
29
+ 'basis-4/12',
30
+ 'basis-5/12',
31
+ 'basis-6/12',
32
+ 'basis-7/12',
33
+ 'basis-8/12',
34
+ 'basis-9/12',
35
+ 'basis-10/12',
36
+ 'basis-11/12',
37
+ 'basis-12/12',
38
+ ]
18
39
 
40
+ const renderCols = computed(() => {
41
+ return Cols[+props.cols]
19
42
  })
20
43
 
21
44
  const renderText = computed(()=> {
@@ -27,7 +50,7 @@ const renderText = computed(()=> {
27
50
 
28
51
 
29
52
 
30
- const {title, content} = toRefs(props)
53
+ const {title, content, cols} = toRefs(props)
31
54
 
32
55
  </script>
33
56
 
@@ -37,11 +60,11 @@ const {title, content} = toRefs(props)
37
60
  <div v-html="renderText"></div>
38
61
  </template>
39
62
  <template #content>
40
- <div class="flex justify-center">
41
- <div class="w-4/5" v-if="content">
42
- <div v-html="content" class="md:w-96 w-56 mx-auto"></div>
63
+ <div class="flex">
64
+ <div v-if="content" :class="`mx-auto ${renderCols} bg-primary`">
65
+ <div v-html="content" class="w-full"></div>
66
+ </div>
43
67
  </div>
44
- </div>
45
68
  </template>
46
69
  </EpEdu>
47
70
  </template>
@@ -81,12 +81,12 @@ const renderDomain = computed(() => {
81
81
  const toggleModal = () => {
82
82
  show.value = !show.value
83
83
  }
84
-
84
+ /*
85
85
  const el = (contentref:any) => {
86
86
  const contentHtml = contentref.innerHTML
87
87
  const renderHtml = useRenderText(contentHtml)
88
88
  contentref.innerHTML = renderHtml
89
- }
89
+ }*/
90
90
 
91
91
  const { term, graminfo, labelClose, src } = toRefs(props);
92
92
  </script>
@@ -128,7 +128,7 @@ const { term, graminfo, labelClose, src } = toRefs(props);
128
128
  >
129
129
  </div>
130
130
  <!-- <div v-html="renderText"></div> -->
131
- <div :ref="el">
131
+ <div>
132
132
  <slot></slot>
133
133
  </div>
134
134
  <EpImg v-if="src" :src="src"></EpImg>
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { ref, toRefs, onMounted, computed } from 'vue';
3
3
  //types in capital letter
4
- import {TagTimeLine, HeadTimeLine, EventTimeLine, ColorsTags, colorsTimeLine} from '../../types/TimeLine'
4
+ import { TagTimeLine, HeadTimeLine, EventTimeLine, ColorsTags, colorsTimeLine } from '../../types/TimeLine'
5
5
  import TimeLineItem from '../tools/TimelineItem.vue'
6
6
  import EpIcon from '../basics/EpIcon.vue';
7
7
  import { mdiCheckboxBlankCircleOutline } from '@mdi/js';
@@ -9,83 +9,89 @@ import { mdiCheckboxMarkedCircle } from '@mdi/js';
9
9
 
10
10
  interface TimelineHeading {
11
11
  title?: {
12
- text?:HeadTimeLine
12
+ text?: HeadTimeLine
13
13
  }
14
14
  }
15
15
 
16
16
  interface Props {
17
- tags:TagTimeLine[];
18
- events:EventTimeLine[];
19
- title?:TimelineHeading;
17
+ tags: TagTimeLine[];
18
+ events: EventTimeLine[];
19
+ title?: TimelineHeading;
20
20
  }
21
21
 
22
- const props = withDefaults(defineProps<Props>(),{})
22
+
23
+
24
+ const props = withDefaults(defineProps<Props>(), {
25
+
26
+ })
23
27
 
24
28
  const timeLineTags = ref<TagTimeLine[]>()
25
29
 
26
- onMounted(()=> {
27
- if(props.tags){
28
- timeLineTags.value = props.tags.map(tag => ({...tag, active:false}))
30
+ onMounted(() => {
31
+ if (props.tags) {
32
+ timeLineTags.value = props.tags.map(tag => ({ ...tag, active: false }))
29
33
  }
30
34
  })
31
35
 
32
- const styleTag = (color:ColorsTags) => {
33
- const styles = colorsTimeLine[color]
34
- if(!styles){
35
- return colorsTimeLine.noTag
36
- }
37
- return styles
36
+ const styleTag = (color: ColorsTags) => {
37
+ const styles = colorsTimeLine[color]
38
+ if (!styles) {
39
+ return colorsTimeLine.noTag
40
+ }
41
+ return styles
38
42
  }
39
43
 
40
- const activeTags = computed(()=>{
41
- return timeLineTags.value?.filter(tag => tag.active) || []
44
+ const activeTags = computed(() => {
45
+ return timeLineTags.value?.filter(tag => tag.active) || []
42
46
  })
43
47
 
44
- const filteredEvents = computed(()=>{
45
- if(activeTags.value.length === 0){
46
- return props.events
47
- }else{
48
- const filtered = props.events.filter(event => {
49
- if(event.tag){
50
- ///event.tag.id === this.activesTags.some(t => t.id)
51
- return activeTags.value.some(t => t.id === event.tag?.id)
52
- }
53
- })
54
- return filtered
48
+ const filteredEvents = computed(() => {
49
+ if (activeTags.value.length === 0) {
50
+ return props.events
51
+ } else {
52
+ const filtered = props.events.filter(event => {
53
+ if (event.tag) {
54
+ ///event.tag.id === this.activesTags.some(t => t.id)
55
+ return activeTags.value.some(t => t.id === event.tag?.id)
55
56
  }
57
+ })
58
+ return filtered
59
+ }
56
60
  })
57
61
 
58
- const toggleActive = (tag:TagTimeLine) => {
59
- tag.active = !tag.active
62
+ const toggleActive = (tag: TagTimeLine) => {
63
+ tag.active = !tag.active
60
64
  }
61
65
 
62
- const {title} = toRefs(props)
66
+
67
+ const { title } = toRefs(props)
63
68
 
64
69
  </script>
65
70
 
66
71
  <template>
67
72
  <!-- component -->
68
- <div>
73
+ <div>
69
74
  <div class="w-10/12 md:w-7/12 lg:6/12 mx-auto relative">
70
75
  <h3 class="text-2xl mb-2">{{ title?.title?.text?.headline }}</h3>
71
76
  <p>{{ title?.title?.text?.text }}</p>
72
- <div class="my-4">
73
- <template v-for="tag in timeLineTags" :key="tag.id">
74
- <span @click="toggleActive(tag)" :class="`mr-2 cursor-pointer text-sm px-2 py-1 rounded border ${styleTag(tag.color).border} ${tag.active?'text-white':styleTag(tag.color).text} ${tag.active?styleTag(tag.color).bg:''}`">
75
- {{ tag.title }} <EpIcon :icon-path="tag.active?mdiCheckboxMarkedCircle:mdiCheckboxBlankCircleOutline" size="14"></EpIcon>
76
- </span>
77
- </template>
78
- </div>
77
+ <div class="my-4 px-2">
78
+ <template v-for="tag in timeLineTags" :key="tag.id">
79
+ <span @click="toggleActive(tag)"
80
+ :class="`mr-2 mb-2 inline-block cursor-pointer text-sm px-2 py-1 rounded border ${styleTag(tag.color).border} ${tag.active ? 'text-white' : styleTag(tag.color).text} ${tag.active ? styleTag(tag.color).bg : ''}`">
81
+ {{ tag.title }} <EpIcon :icon-path="tag.active ? mdiCheckboxMarkedCircle : mdiCheckboxBlankCircleOutline"
82
+ size="14"></EpIcon>
83
+ </span>
84
+ </template>
85
+ </div>
79
86
  <div class="border-l-4 pl-1 transition-all">
80
- <TransitionGroup name="list" tag="ul">
81
- <template v-for="(item, i) in filteredEvents" :key="`${i}-card-${item.id}`">
82
- <TimeLineItem :event="item"></TimeLineItem>
87
+ <TransitionGroup name="list" tag="div">
88
+ <template v-for="(item, i) in filteredEvents" :key="`${i}-card-${item.id}`">
89
+ <TimeLineItem :event="item"></TimeLineItem>
83
90
  </template>
84
- </TransitionGroup>
91
+ </TransitionGroup>
85
92
  </div>
86
93
  </div>
87
- </div>
88
-
94
+ </div>
89
95
  </template>
90
96
 
91
97
  <style>
@@ -93,6 +99,7 @@ const {title} = toRefs(props)
93
99
  .list-leave-active {
94
100
  transition: all 0.5s ease;
95
101
  }
102
+
96
103
  .list-enter-from,
97
104
  .list-leave-to {
98
105
  opacity: 0;
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { ref, toRefs, onMounted, computed } from "vue";
2
+ import { ref, toRefs, onMounted, computed, watch } from "vue";
3
3
  import { useImage } from '@vueuse/core'
4
4
  import { useRenderText } from "../../composables/useRenderText";
5
5
  ///types with Capital letters... object with styles same name in lowercase
@@ -10,18 +10,19 @@ interface Props {
10
10
  title?: string | null;
11
11
  date?: string;
12
12
  event: EventTimeLine;
13
+ collapse?:boolean
13
14
  }
14
15
 
15
16
  const props = withDefaults(defineProps<Props>(), {
16
17
  title: 'En savoir plus',
17
18
  type: 'base',
19
+ collapse:false
18
20
  });
19
21
 
20
22
 
21
23
  const showDiv = ref(true);
22
24
  const collapsible = ref();
23
25
 
24
-
25
26
  onMounted(() => {
26
27
  var content = collapsible.value
27
28
  if (showDiv.value) {
@@ -88,7 +89,6 @@ const { event } = toRefs(props)
88
89
 
89
90
  <template>
90
91
  <div
91
-
92
92
  :class="`cursor-pointer ml-10 relative flex items-center p-2 ${colorEvent.border} border border-2 rounded-r-lg mb-8 flex-col md:flex-row space-y-4 md:space-y-0`"
93
93
  @click="toggleDivVisibility">
94
94
  <!-- Dot -->
@@ -1,5 +0,0 @@
1
- import { L as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { M as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { I as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { z as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { c as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { o as a } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { d as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { e as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { w as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { g as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { r as a } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { h as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { J as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { A as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { j as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { p as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { B as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { C as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { x as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { q as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { y as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { K as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { v as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { b as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { s as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { t as a } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { k as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { D as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { l as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { E as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { m as a } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { _ as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { n as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { F as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { G as m } from "./index-58100a64.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };