ep-lib-ts 1.0.31 → 1.0.33

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 (117) hide show
  1. package/dist/BgAudio-DGPNa_j_.js +4 -0
  2. package/dist/DisplayBox-BIhTMf8B.js +4 -0
  3. package/dist/EpAlert-D2vnjKzL.js +4 -0
  4. package/dist/EpAudio-CfjiMefQ.js +4 -0
  5. package/dist/EpBadge-D-N17G3T.js +4 -0
  6. package/dist/EpBarChart-BjqACc21.js +4 -0
  7. package/dist/EpBtn-CKv4cU1L.js +4 -0
  8. package/dist/EpCard-BjNu3nNw.js +4 -0
  9. package/dist/EpChip-Zorzeauw.js +4 -0
  10. package/dist/EpCodeblock-DAthCRQ-.js +4 -0
  11. package/dist/EpConclusion-DJnAWOj3.js +4 -0
  12. package/dist/EpContentSlider-CoKzeU8h.js +4 -0
  13. package/dist/{EpDarkmode-BJMenrL4.js → EpDarkmode-SblMAXfi.js} +1 -1
  14. package/dist/EpDescription-CFMogaAm.js +4 -0
  15. package/dist/EpDivider-BWvdwcnD.js +4 -0
  16. package/dist/EpEdu-7_6SIV6C.js +4 -0
  17. package/dist/EpFlex-Cyx9Lvvq.js +4 -0
  18. package/dist/EpFunnelChart-CFPQVP_r.js +4 -0
  19. package/dist/EpHeader-UmDJoUPq.js +4 -0
  20. package/dist/{EpHover-C0wjWPm7.js → EpHover-C470QELo.js} +1 -1
  21. package/dist/EpIcon-DUoGCDkS.js +4 -0
  22. package/dist/EpIframe-BRsaVFPV.js +4 -0
  23. package/dist/EpImg-BNWbDoTP.js +4 -0
  24. package/dist/{EpInput-b5Y-jSMn.js → EpInput-CQqZvTs4.js} +1 -1
  25. package/dist/EpInstructions-BikqtxYX.js +4 -0
  26. package/dist/EpIntroduction-DcKaGLb5.js +4 -0
  27. package/dist/EpLineChart-BpijmAD_.js +4 -0
  28. package/dist/EpLink-DHQ9GrNX.js +4 -0
  29. package/dist/EpLinkVersion-1SiQ55fW.js +4 -0
  30. package/dist/{EpList-BviUInoF.js → EpList-DS0Wb7v6.js} +1 -1
  31. package/dist/EpModal-BOt3AlG-.js +4 -0
  32. package/dist/{EpNothing-CoXOUpGx.js → EpNothing-qdLqJw8R.js} +1 -1
  33. package/dist/EpObjective-98I8sbyM.js +4 -0
  34. package/dist/EpPieChart-CvFfoaW4.js +4 -0
  35. package/dist/EpQuestion-BTSYOOiS.js +4 -0
  36. package/dist/EpQuote-zWB8fMBy.js +4 -0
  37. package/dist/EpRadio-Cb8yJryQ.js +4 -0
  38. package/dist/EpRadioSummative-v9tJFFBi.js +4 -0
  39. package/dist/EpReading-BfTZzt48.js +4 -0
  40. package/dist/EpResource-D2teBsp8.js +4 -0
  41. package/dist/EpScope-CNA3sy1K.js +4 -0
  42. package/dist/EpSection-CoFqRHWJ.js +4 -0
  43. package/dist/EpSectionCols-CQKRchKm.js +4 -0
  44. package/dist/EpSkeleton-mPMQlrRO.js +4 -0
  45. package/dist/EpSoftware-DCVmfHFj.js +4 -0
  46. package/dist/EpSpecificObjective-8YFIbEP7.js +4 -0
  47. package/dist/EpSpinner-2tQ36BT6.js +4 -0
  48. package/dist/EpSummativeTable-npyyg8Yv.js +4 -0
  49. package/dist/EpSvg-AtTHbyjp.js +4 -0
  50. package/dist/EpTable-DLBpkmBt.js +4 -0
  51. package/dist/EpTerm-zOtcoJIN.js +4 -0
  52. package/dist/EpText-Bqxlmp-X.js +4 -0
  53. package/dist/EpTimeLine-CqXPCOIc.js +4 -0
  54. package/dist/EpVideo-ikjPVtTi.js +4 -0
  55. package/dist/EpVideoPanopto-CtBs1I5J.js +4 -0
  56. package/dist/EpWordDef-DvfEbuwY.js +4 -0
  57. package/dist/components/medias/EpWordDef.vue.d.ts +14 -6
  58. package/dist/ep-lib-ts.js +12 -11
  59. package/dist/ep-lib-ts.umd.cjs +43 -43
  60. package/dist/{index-BvE7762w.js → index-Cmq-vcrg.js} +3223 -3124
  61. package/dist/{index-CDBcj9DU.js → index-Dybmqr5o.js} +1 -1
  62. package/dist/index.d.ts +2 -1
  63. package/dist/{prism-_qpMs5k9.js → prism-MHiuZKqd.js} +1 -1
  64. package/dist/types/GlossaryEntry.d.ts +12 -5
  65. package/package.json +1 -1
  66. package/src/components/medias/EpWordDef.vue +46 -37
  67. package/dist/BgAudio-BSGmyNCB.js +0 -4
  68. package/dist/DisplayBox-DI-Qz5tz.js +0 -4
  69. package/dist/EpAlert-Bp5iAEc-.js +0 -4
  70. package/dist/EpAudio-BckU6j59.js +0 -4
  71. package/dist/EpBadge-BeOBQMvO.js +0 -4
  72. package/dist/EpBarChart-YrCykWAi.js +0 -4
  73. package/dist/EpBtn-BDUz3Bqr.js +0 -4
  74. package/dist/EpCard-D9kP8gnS.js +0 -4
  75. package/dist/EpChip-UdMP6D8a.js +0 -4
  76. package/dist/EpCodeblock-CYVfnmd4.js +0 -4
  77. package/dist/EpConclusion-DohPemmi.js +0 -4
  78. package/dist/EpContentSlider-Ob87TORl.js +0 -4
  79. package/dist/EpDescription-mVMSSmOs.js +0 -4
  80. package/dist/EpDivider-C6WzjjQt.js +0 -4
  81. package/dist/EpEdu-KWh8r4lw.js +0 -4
  82. package/dist/EpFlex-ClPbW3M9.js +0 -4
  83. package/dist/EpFunnelChart-Dqu9fNJt.js +0 -4
  84. package/dist/EpHeader-DArL_UFC.js +0 -4
  85. package/dist/EpIcon-BkXqE6JQ.js +0 -4
  86. package/dist/EpIframe-tbeX-0eG.js +0 -4
  87. package/dist/EpImg-BKQjzCz7.js +0 -4
  88. package/dist/EpInstructions-CWKvxuBW.js +0 -4
  89. package/dist/EpIntroduction-4QhdI4hm.js +0 -4
  90. package/dist/EpLineChart-IBoW-Jfx.js +0 -4
  91. package/dist/EpLink-BQVVFf2Q.js +0 -4
  92. package/dist/EpLinkVersion-DZmpMi2b.js +0 -4
  93. package/dist/EpModal-BJTFBAde.js +0 -4
  94. package/dist/EpObjective-viQQQFi6.js +0 -4
  95. package/dist/EpPieChart-CUP-uZVo.js +0 -4
  96. package/dist/EpQuestion-BZzHI7y3.js +0 -4
  97. package/dist/EpQuote-Auev7s6r.js +0 -4
  98. package/dist/EpRadio-DnZSlpaj.js +0 -4
  99. package/dist/EpRadioSummative-sCJDLrC3.js +0 -4
  100. package/dist/EpReading-D7u8uoS4.js +0 -4
  101. package/dist/EpResource-DIQaQ7RV.js +0 -4
  102. package/dist/EpScope-BK3f1r-a.js +0 -4
  103. package/dist/EpSection-BwgUDIfl.js +0 -4
  104. package/dist/EpSectionCols-CQurgeGM.js +0 -96
  105. package/dist/EpSkeleton-DzGATWJw.js +0 -4
  106. package/dist/EpSoftware-DF42VE0c.js +0 -4
  107. package/dist/EpSpecificObjective-DTY4gBXx.js +0 -4
  108. package/dist/EpSpinner-BH2M7Ygv.js +0 -4
  109. package/dist/EpSummativeTable-CTFUUefW.js +0 -4
  110. package/dist/EpSvg-BR35j3jl.js +0 -4
  111. package/dist/EpTable-BqlmCw9S.js +0 -4
  112. package/dist/EpTerm-waAVtc41.js +0 -4
  113. package/dist/EpText-Bg9HMZsG.js +0 -4
  114. package/dist/EpTimeLine-CDfah12U.js +0 -4
  115. package/dist/EpVideo-CWn8qb-W.js +0 -4
  116. package/dist/EpVideoPanopto-aj9Pu_ge.js +0 -4
  117. package/dist/EpWordDef-DZJVdDkN.js +0 -4
@@ -1,4 +1,4 @@
1
- import { a2 as Ml } from "./index-BvE7762w.js";
1
+ import { a1 as Ml } from "./index-Cmq-vcrg.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");
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import { default as EpBtn } from './components/basics/EpBtn.vue';
6
6
  import { default as EpChip } from './components/basics/EpChip.vue';
7
7
  import { default as EpDivider } from './components/basics/EpDivider.vue';
8
8
  import { default as EpSection } from './components/basics/EpSection.vue';
9
+ import { default as EpSectionCols } from './components/basics/EpSectionCols.vue';
9
10
  import { default as EpSpinner } from './components/basics/EpSpinner.vue';
10
11
  import { default as EpFlex } from './components/basics/EpFlex.vue';
11
12
  import { default as EpIcon } from './components/basics/EpIcon.vue';
@@ -49,4 +50,4 @@ import { default as EpHeader } from './components/signages/EpHeader.vue';
49
50
  import { default as EpQuote } from './components/signages/EpQuote.vue';
50
51
  import { default as EpSkeleton } from './components/signages/EpSkeleton.vue';
51
52
 
52
- export { EpBadge, EpBtn, EpCard, EpChip, EpDivider, EpFlex, EpIcon, EpImg, EpSection, EpSpinner, EpTable, EpBarChart, EpLineChart, EpPieChart, EpFunnelChart, EpText, EpEdu, EpReading, EpResource, EpScope, EpAccordeon, EpContentSlider, EpModal, EpQuestion, EpTabs, EpAudio, EpCarousel, EpIframe, EpKatex, EpLink, EpLinkVersion, EpSoftware, EpSvg, EpTerm, EpTimeLine, EpVideo, EpVideoPanopto, EpAlert, EpHeader, EpQuote, EpSkeleton, EpWordDef, EpSummativeTable, EpObjective, EpSpecificObjective, EpIntroduction, EpInstructions, EpDescription, EpConclusion, EpCodeblock };
53
+ export { EpBadge, EpBtn, EpCard, EpChip, EpDivider, EpFlex, EpIcon, EpImg, EpSection, EpSpinner, EpTable, EpBarChart, EpLineChart, EpPieChart, EpFunnelChart, EpText, EpEdu, EpReading, EpResource, EpScope, EpAccordeon, EpContentSlider, EpModal, EpQuestion, EpTabs, EpAudio, EpCarousel, EpIframe, EpKatex, EpLink, EpLinkVersion, EpSoftware, EpSvg, EpTerm, EpTimeLine, EpVideo, EpVideoPanopto, EpAlert, EpHeader, EpQuote, EpSkeleton, EpWordDef, EpSummativeTable, EpObjective, EpSpecificObjective, EpIntroduction, EpInstructions, EpDescription, EpConclusion, EpCodeblock, EpSectionCols };
@@ -1,4 +1,4 @@
1
- import { a2 as V, a3 as W } from "./index-BvE7762w.js";
1
+ import { a1 as V, a2 as W } from "./index-Cmq-vcrg.js";
2
2
  function ee(S, P) {
3
3
  for (var i = 0; i < P.length; i++) {
4
4
  const g = P[i];
@@ -1,10 +1,17 @@
1
1
  export interface GlossaryEntry {
2
- id: string;
2
+ uid: string;
3
3
  term: string;
4
- graminfo: string;
4
+ content: {
5
+ gramInfo: string | null;
6
+ domain: string | null;
7
+ definition?: string;
8
+ image?: string;
9
+ };
5
10
  relation: string[];
6
- domain: string | null;
7
- definition: string;
8
11
  variation: string[];
9
- img?: string;
12
+ labelInformation?: string;
13
+ labelDomain?: string;
14
+ labelVariations?: string;
15
+ labelRelations?: string;
16
+ labelNoDefinition?: string;
10
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "1.0.31",
4
+ "version": "1.0.33",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -1,16 +1,28 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue';
3
- import { type GlossaryEntry } from '../../types/GlossaryEntry';
2
+ import { computed, ref } from 'vue';
3
+ import { useCreateUid } from '../../composables/useCreateUid';
4
4
  import { useRenderText } from '../../composables/useRenderText';
5
5
  import { useRouter } from "vue-router";
6
6
 
7
- interface Term {
8
- id: string
7
+
8
+ interface Relation {
9
+ documentId: string;
10
+ term: string;
9
11
  }
10
12
 
13
+
11
14
  interface Props {
12
- term: Term;
13
- glossary: GlossaryEntry[];
15
+ uid?:string;
16
+ term:string;
17
+ description:string;
18
+ content:{
19
+ gramInfo?: string | null
20
+ domain?: string | null
21
+ definition?: string
22
+ image?: string
23
+ }
24
+ relation:Relation[];
25
+ variation:string[];
14
26
  labelInformation?: string;
15
27
  labelDomain?:string;
16
28
  labelVariations?: string;
@@ -27,33 +39,28 @@ const props = withDefaults(defineProps<Props>(), {
27
39
  labelVariations:"Variation(s)"
28
40
  });
29
41
 
30
-
31
-
32
- const definition = computed(() => {
33
- return props.glossary.find(item => item.id === props.term.id)
34
- })
35
-
36
42
  const sizeGramIngo = computed(() => {
37
- if (definition.value) {
38
- return definition.value.domain || definition.value.variation.length > 0 ? 'w-1/3' : 'w-full'
43
+ if (props.content) {
44
+ return props.content.domain || props.variation.length > 0 ? 'w-1/3' : 'w-full'
39
45
  }
40
46
  return ''
41
47
  })
42
48
 
43
49
  const sizeDomain = computed(() => {
44
- if (definition.value) {
45
- return definition.value.variation.length > 0 ? 'w-1/4' : 'w-3/4'
50
+ if (props.variation) {
51
+ return props.variation.length > 0 ? 'w-1/4' : 'w-3/4'
46
52
  }
47
53
  return ''
48
54
  })
49
55
 
50
56
  const sizeVariations = computed(() => {
51
- if (definition.value) {
52
- return definition.value.domain ? 'w-2/4' : 'w-3/4'
57
+ if (props.content) {
58
+ return props.content.domain ? 'w-2/4' : 'w-3/4'
53
59
  }
54
60
  return ''
55
61
  })
56
62
 
63
+ /*
57
64
  const findRelations = (relations: string[]): { id: number | string, term: string }[] => {
58
65
  let _relations = props.glossary.filter((term) => {
59
66
  return relations.some((x) => {
@@ -61,7 +68,7 @@ const findRelations = (relations: string[]): { id: number | string, term: string
61
68
  });
62
69
  });
63
70
  return _relations.map((x) => ({id:x.id, term:x.term}));
64
- };
71
+ };*/
65
72
 
66
73
  const router = useRouter()
67
74
  const goto = (term:string) =>{
@@ -72,52 +79,54 @@ const goto = (term:string) =>{
72
79
  //
73
80
  }
74
81
 
82
+ const id = ref(props.uid || useCreateUid());
83
+
75
84
  </script>
76
85
 
77
86
  <template>
78
- <div class="dark:bg-dark">
79
- <div v-if="definition">
87
+ <div class="dark:bg-dark" :id="id">
88
+ <div v-if="term && description">
80
89
  <div class="h-min border border-base rounded-lg divide-y">
81
- <h2 class="text-xl font-semibold p-2">{{ definition.term }}</h2>
90
+ <h2 class="text-xl font-semibold p-2">{{ term }}</h2>
82
91
  <div class="flex justify-between">
83
92
  <div :class="sizeGramIngo">
84
93
  <p class="text-sm font-medium bg-base-light dark:text-dark p-2">
85
94
  {{labelInformation}}
86
95
  </p>
87
- <div class="px-2 py-1">{{ definition.graminfo }}</div>
96
+ <div class="px-2 py-1" v-if="content.gramInfo">{{ content.gramInfo }}</div>
88
97
  </div>
89
- <div :class="sizeDomain" v-if="definition.domain">
98
+ <div :class="sizeDomain" v-if="content.domain">
90
99
  <p class="text-sm font-medium bg-base-light dark:text-dark p-2">{{labelDomain}}</p>
91
- <div class="px-2 py-1">{{ definition.domain }}</div>
100
+ <div class="px-2 py-1">{{ content.domain }}</div>
92
101
  </div>
93
- <div :class="sizeVariations" v-if="definition.variation.length > 0">
102
+ <div :class="sizeVariations" v-if="variation.length > 0">
94
103
  <p class="text-sm font-medium bg-base-light dark:text-dark p-2">{{labelVariations}}</p>
95
104
  <div class="px-2 py-1">
96
- <span v-for="(variation, i) in definition.variation" :key="`v-${i}`">{{ variation }}{{
97
- definition.variation.length > i + 1 ? ", " :
105
+ <span v-for="(_variation, i) in variation" :key="`v-${i}`">{{ _variation }}{{
106
+ variation.length > i + 1 ? ", " :
98
107
  "." }}</span>
99
108
  </div>
100
109
  </div>
101
110
  </div>
102
- <template v-if="!definition.img">
103
- <div class="px-2 py-6" v-html="useRenderText(definition.definition)"></div>
111
+ <template v-if="!content.image">
112
+ <div class="px-2 py-6" v-html="useRenderText(description)"></div>
104
113
  </template>
105
114
  <template v-else>
106
115
  <div class="flex">
107
- <div class="px-2 py-6" v-html="useRenderText(definition.definition)"></div>
108
- <img class="h-60" :src="definition.img" :alt="`Image du terme ${definition.term}`" />
116
+ <div class="px-2 py-6" v-html="useRenderText(description)"></div>
117
+ <img class="h-60" :src="content.image" :alt="`Image du terme ${term}`" />
109
118
  </div>
110
119
  </template>
111
120
 
112
121
  <div>
113
- <div v-if="definition.relation.length > 0">
122
+ <div v-if="relation.length > 0">
114
123
  <p class="text-sm font-medium bg-base-light dark:text-dark p-2"> {{labelRelations}}</p>
115
124
  <div class="p-2">
116
- <template v-for="(relation, i) in findRelations(definition.relation)" :key="`relation-${i}`">
117
- <button class="p-1 border rounded mr-1" @click="goto(relation.term)">
118
- {{ relation.term }}
125
+ <template v-for="(_relation, i) in relation" :key="`relation-${i}`">
126
+ <button class="p-1 border rounded mr-1" @click="goto(_relation.documentId)">
127
+ {{ _relation.term }}
119
128
  </button>
120
- </template>
129
+ </template>
121
130
  </div>
122
131
  </div>
123
132
  </div>
@@ -1,4 +0,0 @@
1
- import { a0 as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a1 as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { X as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { N as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { q as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { d as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { e } from "./index-BvE7762w.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { v as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { w as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { I as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { x as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { g as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { y as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { h as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { r } from "./index-BvE7762w.js";
2
- export {
3
- r as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Y as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { i as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { O as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { j as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { z as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { A as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { s } from "./index-BvE7762w.js";
2
- export {
3
- s as default
4
- };
@@ -1,4 +0,0 @@
1
- import { P as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Q as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { K as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { B as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { t } from "./index-BvE7762w.js";
2
- export {
3
- t as default
4
- };
@@ -1,4 +0,0 @@
1
- import { L as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Z as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { G as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { H as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { b as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { C as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { D as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { k as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,96 +0,0 @@
1
- import { defineComponent as k, ref as C, computed as n, openBlock as s, createElementBlock as o, createElementVNode as l, normalizeClass as i, createBlock as d, createCommentVNode as a, toDisplayString as f, renderSlot as m } from "vue";
2
- import { l as y, m as I, i as p, g as b } from "./index-BvE7762w.js";
3
- const r = [
4
- "w-1/5",
5
- "w-2/5",
6
- "w-3/5",
7
- "w-4/5",
8
- "w-full"
9
- ], z = ["id"], S = { class: "text-2xl font-semibold dark:text-white" }, B = { class: "dark:text-white" }, E = ["innerHTML"], M = {
10
- key: 1,
11
- class: "w-full"
12
- }, T = ["src", "alt"], H = /* @__PURE__ */ k({
13
- __name: "EpSectionCols",
14
- props: {
15
- uid: {},
16
- title: { default: null },
17
- subtitle: {},
18
- icon: { default: null },
19
- endIcon: { type: Boolean },
20
- media: {},
21
- colsMedia: { default: "6" },
22
- mediaAling: { default: "justify-center" },
23
- src: {},
24
- gap: { default: "gap-1" },
25
- leftCol: { default: "w-full" }
26
- },
27
- setup(h) {
28
- const t = h, w = C(t.uid || y()), c = n(() => t.title && t.subtitle ? 40 : 25), v = n(() => t.endIcon ? "justify-between" : ""), g = n(() => I[+t.colsMedia]), $ = n(() => {
29
- if (t.leftCol === "w-full") return "w-full";
30
- const e = r.indexOf(t.leftCol), u = r.length - e - 2;
31
- return r[u] || "w-full";
32
- });
33
- return (e, u) => (s(), o("section", {
34
- class: "EpSection",
35
- id: `section-${w.value}`
36
- }, [
37
- l("div", {
38
- class: i(`flex items-center ${v.value}`)
39
- }, [
40
- e.icon && !e.endIcon ? (s(), d(p, {
41
- key: 0,
42
- "icon-path": e.icon,
43
- size: c.value
44
- }, null, 8, ["icon-path", "size"])) : a("", !0),
45
- l("div", {
46
- class: i(`${e.endIcon ? "" : "ml-2"}`)
47
- }, [
48
- l("h2", S, f(e.title), 1),
49
- l("h3", B, f(e.subtitle), 1)
50
- ], 2),
51
- e.icon && e.endIcon ? (s(), d(p, {
52
- key: 1,
53
- "icon-path": e.icon,
54
- size: c.value
55
- }, null, 8, ["icon-path", "size"])) : a("", !0)
56
- ], 2),
57
- e.media || e.src ? (s(), o("div", {
58
- key: 0,
59
- class: i(`flex ${e.mediaAling}`)
60
- }, [
61
- l("div", {
62
- class: i(`dark:text-white ${g.value}`)
63
- }, [
64
- e.media ? (s(), o("div", {
65
- key: 0,
66
- innerHTML: e.media,
67
- class: "w-full"
68
- }, null, 8, E)) : (s(), o("div", M, [
69
- l("img", {
70
- src: e.src,
71
- alt: `image section ${e.title}`
72
- }, null, 8, T)
73
- ]))
74
- ], 2)
75
- ], 2)) : a("", !0),
76
- e.title || e.subtitle ? (s(), d(b, { key: 1 })) : a("", !0),
77
- l("div", {
78
- class: i(`flex ${e.gap}`)
79
- }, [
80
- l("div", {
81
- class: i(`${e.leftCol}`)
82
- }, [
83
- m(e.$slots, "left")
84
- ], 2),
85
- l("div", {
86
- class: i(`${$.value}`)
87
- }, [
88
- m(e.$slots, "right")
89
- ], 2)
90
- ], 2)
91
- ], 8, z));
92
- }
93
- });
94
- export {
95
- H as default
96
- };
@@ -1,4 +0,0 @@
1
- import { $ as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { R as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { E as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { n as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { M as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { S as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { o } from "./index-BvE7762w.js";
2
- export {
3
- o as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { p as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { T as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { U as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { V as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { W as f } from "./index-BvE7762w.js";
2
- export {
3
- f as default
4
- };