ep-lib-ts 1.0.0 → 1.0.3

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 (214) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/LICENSE +21 -0
  3. package/dist/BgAudio-frhyHkqr.js +4 -0
  4. package/dist/DisplayBox-CSCmHlo9.js +4 -0
  5. package/dist/EpAlert-Ccz2Wiz3.js +4 -0
  6. package/dist/EpAudio-DW24CuDl.js +4 -0
  7. package/dist/EpAvatar-Dmpg0PFj.js +50 -0
  8. package/dist/EpBadge-DqmSNdbi.js +55 -0
  9. package/dist/EpBadge-YYV6LeIH.js +4 -0
  10. package/dist/EpBarChart-CQpD2vBz.js +4 -0
  11. package/dist/EpBtn-BXFxStb5.js +4 -0
  12. package/dist/EpCard-dMLoFxCZ.js +4 -0
  13. package/dist/EpCheckbox-BtJRFbS_.js +41 -0
  14. package/dist/EpChip-D14YJQjn.js +4 -0
  15. package/dist/EpCodeblock-DX7H-PE3.js +1477 -0
  16. package/dist/EpContentSlider-B6sOe3Dp.js +4 -0
  17. package/dist/EpDarkmode-CVX7I7Oh.js +22 -0
  18. package/dist/EpDivider-BlzeUfhe.js +4 -0
  19. package/dist/EpEdu-OSZN0dVy.js +4 -0
  20. package/dist/EpFlex-CajOntOn.js +4 -0
  21. package/dist/EpFunnelChart-CAmKAY6K.js +4 -0
  22. package/dist/EpHeader-s6mu1YDy.js +4 -0
  23. package/dist/EpHotsPot-DFz_Du9o.js +59 -0
  24. package/dist/EpHover-DvBaw8H4.js +31 -0
  25. package/dist/EpIcon-BKdKZ6VL.js +4 -0
  26. package/dist/EpIframe-Cw50hPQt.js +4 -0
  27. package/dist/EpImg-ltzMUbfa.js +4 -0
  28. package/dist/EpInput-C3Db2Mgx.js +1168 -0
  29. package/dist/EpLineChart-C1Z5zC77.js +4 -0
  30. package/dist/EpLink-9J5EAO2L.js +4 -0
  31. package/dist/EpLinkVersion-DoA4Xrmj.js +4 -0
  32. package/dist/EpList-u8yx-VQ3.js +12 -0
  33. package/dist/EpListitem-DzQrc-k2.js +37 -0
  34. package/dist/EpModal-EPQLtKSs.js +4 -0
  35. package/dist/EpNothing-dQbMRW9h.js +10 -0
  36. package/dist/EpPieChart-DALf9BAs.js +4 -0
  37. package/dist/EpQuestion-CrOo3ejB.js +4 -0
  38. package/dist/EpQuote-BDthjTq5.js +4 -0
  39. package/dist/EpRadio-B_MUtViE.js +4 -0
  40. package/dist/EpRadioSummative-DqXsCXq1.js +4 -0
  41. package/dist/EpReading-KUPnrrth.js +4 -0
  42. package/dist/EpResource-BMPKDLj8.js +4 -0
  43. package/dist/EpScope-C3jsb2no.js +4 -0
  44. package/dist/EpSection-CdA_6u_G.js +4 -0
  45. package/dist/EpSelect-DxDETrPv.js +43 -0
  46. package/dist/EpSkeleton-B7Vvky8C.js +4 -0
  47. package/dist/EpSoftware-CBGrw-TM.js +4 -0
  48. package/dist/EpSpinner-CPXurjKk.js +4 -0
  49. package/dist/EpSummativeTable-Cl4DD-eg.js +4 -0
  50. package/dist/EpSvg-D7ZjOSNK.js +4 -0
  51. package/dist/EpSwitch-C7NMjBk9.js +64 -0
  52. package/dist/EpTable-BJg2IDFP.js +4 -0
  53. package/dist/EpTerm-BqEk32qp.js +4 -0
  54. package/dist/EpText-C0XpPsof.js +4 -0
  55. package/dist/EpTextarea-D8UCQuga.js +44 -0
  56. package/dist/EpTimeLine-D9aVz430.js +4 -0
  57. package/dist/EpToggle-BDp54LpY.js +47 -0
  58. package/dist/EpTooltip-B4s0_PvZ.js +99 -0
  59. package/dist/EpVideo-B9Bqi_qW.js +4 -0
  60. package/dist/EpVideoPanopto-BibKcJ2y.js +4 -0
  61. package/dist/EpWordDef-O6xFtf2E.js +4 -0
  62. package/dist/components/basics/EpAvatar.vue.d.ts +51 -0
  63. package/dist/components/basics/EpBadge.vue.d.ts +49 -0
  64. package/dist/components/basics/EpBtn.vue.d.ts +62 -0
  65. package/dist/components/basics/EpCard.vue.d.ts +71 -0
  66. package/dist/components/basics/EpChip.vue.d.ts +58 -0
  67. package/dist/components/basics/EpDivider.vue.d.ts +46 -0
  68. package/dist/components/basics/EpFlex.vue.d.ts +9 -0
  69. package/dist/components/basics/EpHover.vue.d.ts +49 -0
  70. package/dist/components/basics/EpIcon.vue.d.ts +34 -0
  71. package/dist/components/basics/EpImg.vue.d.ts +72 -0
  72. package/dist/components/basics/EpList.vue.d.ts +9 -0
  73. package/dist/components/basics/EpListitem.vue.d.ts +43 -0
  74. package/dist/components/basics/EpSection.vue.d.ts +50 -0
  75. package/dist/components/basics/EpSpinner.vue.d.ts +40 -0
  76. package/dist/components/basics/EpTable.vue.d.ts +24 -0
  77. package/dist/components/basics/EpText.vue.d.ts +43 -0
  78. package/dist/components/charts/EpBarChart.vue.d.ts +66 -0
  79. package/dist/components/charts/EpFunnelChart.vue.d.ts +62 -0
  80. package/dist/components/charts/EpLineChart.vue.d.ts +66 -0
  81. package/dist/components/charts/EpPieChart.vue.d.ts +70 -0
  82. package/dist/components/educationals/EpCodeblock.vue.d.ts +43 -0
  83. package/dist/components/educationals/EpEdu.vue.d.ts +69 -0
  84. package/dist/components/educationals/EpReading.vue.d.ts +110 -0
  85. package/dist/components/educationals/EpResource.vue.d.ts +34 -0
  86. package/dist/components/educationals/EpScope.vue.d.ts +32 -0
  87. package/dist/components/forms/EpCheckbox.vue.d.ts +52 -0
  88. package/dist/components/forms/EpInput.vue.d.ts +65 -0
  89. package/dist/components/forms/EpRadio.vue.d.ts +57 -0
  90. package/dist/components/forms/EpRadioSummative.vue.d.ts +57 -0
  91. package/dist/components/forms/EpSelect.vue.d.ts +89 -0
  92. package/dist/components/forms/EpSwitch.vue.d.ts +58 -0
  93. package/dist/components/forms/EpTextarea.vue.d.ts +76 -0
  94. package/dist/components/forms/EpToggle.vue.d.ts +72 -0
  95. package/dist/components/interactions/EpAccordeon.vue.d.ts +58 -0
  96. package/dist/components/interactions/EpContentSlider.vue.d.ts +43 -0
  97. package/dist/components/interactions/EpDarkmode.vue.d.ts +7 -0
  98. package/dist/components/interactions/EpHotsPot.vue.d.ts +47 -0
  99. package/dist/components/interactions/EpModal.vue.d.ts +65 -0
  100. package/dist/components/interactions/EpQuestion.vue.d.ts +73 -0
  101. package/dist/components/interactions/EpSummativeTable.vue.d.ts +25 -0
  102. package/dist/components/interactions/EpTabs.vue.d.ts +2 -0
  103. package/dist/components/interactions/EpTooltip.vue.d.ts +49 -0
  104. package/dist/components/medias/EpAudio.vue.d.ts +56 -0
  105. package/dist/components/medias/EpCarousel.vue.d.ts +44 -0
  106. package/dist/components/medias/EpIframe.vue.d.ts +43 -0
  107. package/dist/components/medias/EpKatex.vue.d.ts +36 -0
  108. package/dist/components/medias/EpLink.vue.d.ts +48 -0
  109. package/dist/components/medias/EpLinkVersion.vue.d.ts +49 -0
  110. package/dist/components/medias/EpSoftware.vue.d.ts +67 -0
  111. package/dist/components/medias/EpSvg.vue.d.ts +36 -0
  112. package/dist/components/medias/EpTerm.vue.d.ts +78 -0
  113. package/dist/components/medias/EpTimeLine.vue.d.ts +32 -0
  114. package/dist/components/medias/EpVideo.vue.d.ts +52 -0
  115. package/dist/components/medias/EpVideoPanopto.vue.d.ts +45 -0
  116. package/dist/components/medias/EpWordDef.vue.d.ts +63 -0
  117. package/dist/components/signages/EpAlert.vue.d.ts +56 -0
  118. package/dist/components/signages/EpBadge.vue.d.ts +57 -0
  119. package/dist/components/signages/EpHeader.vue.d.ts +80 -0
  120. package/dist/components/signages/EpNothing.vue.d.ts +2 -0
  121. package/dist/components/signages/EpQuote.vue.d.ts +47 -0
  122. package/dist/components/signages/EpSkeleton.vue.d.ts +41 -0
  123. package/dist/components/tools/BgAudio.vue.d.ts +29 -0
  124. package/dist/components/tools/DisplayBox.vue.d.ts +17 -0
  125. package/dist/components/tools/SvgFilter.vue.d.ts +2 -0
  126. package/dist/components/tools/TimelineItem.vue.d.ts +38 -0
  127. package/dist/composables/isHtml.d.ts +1 -0
  128. package/dist/composables/useColors.d.ts +1 -0
  129. package/dist/composables/useComponent.d.ts +6 -0
  130. package/dist/composables/useIcons.d.ts +26 -0
  131. package/dist/composables/useMarkdown.d.ts +1 -0
  132. package/dist/composables/useRenderText.d.ts +1 -0
  133. package/dist/ep-lib-ts.js +46 -0
  134. package/dist/ep-lib-ts.umd.cjs +413 -0
  135. package/dist/index-BgNRIUzY.js +18681 -0
  136. package/dist/index-DNwUz3uD.js +47687 -0
  137. package/dist/index.d.ts +86 -0
  138. package/dist/main.d.ts +1 -0
  139. package/dist/prism-DENTMpmV.js +1182 -0
  140. package/dist/router.d.ts +2 -0
  141. package/dist/style.css +1 -0
  142. package/dist/types/Accordeon.d.ts +47 -0
  143. package/dist/types/Alert.d.ts +35 -0
  144. package/dist/types/Answer.d.ts +16 -0
  145. package/dist/types/Avatar.d.ts +18 -0
  146. package/dist/types/Badge.d.ts +23 -0
  147. package/dist/types/Border.d.ts +2 -0
  148. package/dist/types/Btn.d.ts +49 -0
  149. package/dist/types/Card.d.ts +6 -0
  150. package/dist/types/Chip.d.ts +41 -0
  151. package/dist/types/Codeblock.d.ts +223 -0
  152. package/dist/types/GlossaryEntry.d.ts +10 -0
  153. package/dist/types/Image.d.ts +6 -0
  154. package/dist/types/MandateLevel.d.ts +5 -0
  155. package/dist/types/MediaCarousel.d.ts +7 -0
  156. package/dist/types/Medias.d.ts +11 -0
  157. package/dist/types/Radio.d.ts +11 -0
  158. package/dist/types/Slides.d.ts +15 -0
  159. package/dist/types/SummativeTable.d.ts +10 -0
  160. package/dist/types/Switch.d.ts +11 -0
  161. package/dist/types/TimeLine.d.ts +124 -0
  162. package/dist/types/Tooltip.d.ts +75 -0
  163. package/dist/vite.svg +1 -0
  164. package/package.json +5 -4
  165. package/src/components/basics/EpAvatar.vue +1 -1
  166. package/src/components/basics/EpBadge.vue +11 -2
  167. package/src/components/basics/EpBtn.vue +3 -15
  168. package/src/components/basics/EpCard.vue +21 -11
  169. package/src/components/basics/EpChip.vue +1 -2
  170. package/src/components/basics/EpImg.vue +18 -6
  171. package/src/components/basics/EpSection.vue +1 -1
  172. package/src/components/basics/EpTable.vue +5 -5
  173. package/src/components/basics/EpText.vue +10 -2
  174. package/src/components/charts/EpBarChart.vue +11 -3
  175. package/src/components/charts/EpFunnelChart.vue +129 -0
  176. package/src/components/charts/EpLineChart.vue +11 -3
  177. package/src/components/charts/EpPieChart.vue +12 -4
  178. package/src/components/educationals/EpCodeblock.vue +1 -1
  179. package/src/components/educationals/EpEdu.vue +17 -10
  180. package/src/components/educationals/EpReading.vue +45 -27
  181. package/src/components/educationals/EpResource.vue +2 -2
  182. package/src/components/educationals/EpScope.vue +1 -1
  183. package/src/components/forms/EpRadio.vue +1 -1
  184. package/src/components/forms/EpRadioSummative.vue +1 -1
  185. package/src/components/forms/EpSelect.vue +24 -6
  186. package/src/components/forms/EpSwitch.vue +1 -1
  187. package/src/components/forms/EpTextarea.vue +9 -1
  188. package/src/components/forms/EpToggle.vue +9 -1
  189. package/src/components/interactions/EpAccordeon.vue +13 -7
  190. package/src/components/interactions/EpContentSlider.vue +17 -6
  191. package/src/components/interactions/EpDarkmode.vue +25 -14
  192. package/src/components/interactions/EpHotsPot.vue +11 -2
  193. package/src/components/interactions/EpQuestion.vue +17 -5
  194. package/src/components/interactions/EpSummativeTable.vue +1 -1
  195. package/src/components/interactions/EpTabs.vue +1 -1
  196. package/src/components/interactions/EpTooltip.vue +1 -1
  197. package/src/components/medias/EpAudio.vue +17 -11
  198. package/src/components/medias/EpCarousel.vue +2 -2
  199. package/src/components/medias/EpIframe.vue +6 -2
  200. package/src/components/medias/EpKatex.vue +1 -1
  201. package/src/components/medias/EpLink.vue +2 -2
  202. package/src/components/medias/EpLinkVersion.vue +11 -3
  203. package/src/components/medias/EpSoftware.vue +12 -4
  204. package/src/components/medias/EpSvg.vue +2 -2
  205. package/src/components/medias/EpTerm.vue +24 -11
  206. package/src/components/medias/EpTimeLine.vue +2 -2
  207. package/src/components/medias/EpVideo.vue +13 -7
  208. package/src/components/medias/EpVideoPanopto.vue +2 -3
  209. package/src/components/medias/EpWordDef.vue +33 -11
  210. package/src/components/signages/EpAlert.vue +1 -1
  211. package/src/components/signages/EpBadge.vue +1 -1
  212. package/src/components/signages/EpHeader.vue +13 -3
  213. package/src/components/signages/EpSkeleton.vue +2 -2
  214. package/src/components/tools/TimelineItem.vue +1 -1
@@ -0,0 +1,124 @@
1
+ export declare const typeTimeLineTag: {
2
+ base: {
3
+ default: string;
4
+ outlined: string;
5
+ };
6
+ };
7
+ export interface HeadTimeLine {
8
+ text: string;
9
+ headline?: string;
10
+ }
11
+ export interface TagTimeLine {
12
+ id: number | string;
13
+ color: ColorsTags;
14
+ title: string;
15
+ active?: boolean;
16
+ }
17
+ export interface TimeLineDate {
18
+ day?: string | number;
19
+ hour?: string | number;
20
+ year?: string | number;
21
+ month?: string | number;
22
+ minute?: string | number;
23
+ }
24
+ export interface EventTimeLine {
25
+ id: string;
26
+ tag?: TagTimeLine | null;
27
+ text: HeadTimeLine;
28
+ end_date?: TimeLineDate;
29
+ start_date?: TimeLineDate;
30
+ media: {
31
+ url: string;
32
+ };
33
+ background?: {
34
+ color?: string;
35
+ };
36
+ }
37
+ export declare const colorsTimeLine: {
38
+ noTag: {
39
+ bg: string;
40
+ text: string;
41
+ border: string;
42
+ };
43
+ "blue-grey": {
44
+ bg: string;
45
+ text: string;
46
+ border: string;
47
+ };
48
+ red: {
49
+ bg: string;
50
+ text: string;
51
+ border: string;
52
+ };
53
+ pink: {
54
+ bg: string;
55
+ text: string;
56
+ border: string;
57
+ };
58
+ purple: {
59
+ bg: string;
60
+ text: string;
61
+ border: string;
62
+ };
63
+ "deep-purple": {
64
+ bg: string;
65
+ text: string;
66
+ border: string;
67
+ };
68
+ indigo: {
69
+ bg: string;
70
+ text: string;
71
+ border: string;
72
+ };
73
+ blue: {
74
+ bg: string;
75
+ text: string;
76
+ border: string;
77
+ };
78
+ cyan: {
79
+ bg: string;
80
+ text: string;
81
+ border: string;
82
+ };
83
+ teal: {
84
+ bg: string;
85
+ text: string;
86
+ border: string;
87
+ };
88
+ green: {
89
+ bg: string;
90
+ text: string;
91
+ border: string;
92
+ };
93
+ "light-green": {
94
+ bg: string;
95
+ text: string;
96
+ border: string;
97
+ };
98
+ lime: {
99
+ bg: string;
100
+ text: string;
101
+ border: string;
102
+ };
103
+ "light-blue": {
104
+ bg: string;
105
+ text: string;
106
+ border: string;
107
+ };
108
+ "deep-orange": {
109
+ bg: string;
110
+ text: string;
111
+ border: string;
112
+ };
113
+ orange: {
114
+ bg: string;
115
+ text: string;
116
+ border: string;
117
+ };
118
+ brown: {
119
+ bg: string;
120
+ text: string;
121
+ border: string;
122
+ };
123
+ };
124
+ export type ColorsTags = keyof typeof colorsTimeLine;
@@ -0,0 +1,75 @@
1
+ export declare const typeTooltip: {
2
+ top: {
3
+ default: string;
4
+ dark: string;
5
+ arrow: string;
6
+ arrowdark: string;
7
+ };
8
+ top_start: {
9
+ default: string;
10
+ dark: string;
11
+ arrow: string;
12
+ arrowdark: string;
13
+ };
14
+ top_end: {
15
+ default: string;
16
+ dark: string;
17
+ arrow: string;
18
+ arrowdark: string;
19
+ };
20
+ bottom: {
21
+ default: string;
22
+ dark: string;
23
+ arrow: string;
24
+ arrowdark: string;
25
+ };
26
+ bottom_start: {
27
+ default: string;
28
+ dark: string;
29
+ arrow: string;
30
+ arrowdark: string;
31
+ };
32
+ bottom_end: {
33
+ default: string;
34
+ dark: string;
35
+ arrow: string;
36
+ arrowdark: string;
37
+ };
38
+ left: {
39
+ default: string;
40
+ dark: string;
41
+ arrow: string;
42
+ arrowdark: string;
43
+ };
44
+ left_start: {
45
+ default: string;
46
+ dark: string;
47
+ arrow: string;
48
+ arrowdark: string;
49
+ };
50
+ left_end: {
51
+ default: string;
52
+ dark: string;
53
+ arrow: string;
54
+ arrowdark: string;
55
+ };
56
+ right: {
57
+ default: string;
58
+ dark: string;
59
+ arrow: string;
60
+ arrowdark: string;
61
+ };
62
+ right_start: {
63
+ default: string;
64
+ dark: string;
65
+ arrow: string;
66
+ arrowdark: string;
67
+ };
68
+ right_end: {
69
+ default: string;
70
+ dark: string;
71
+ arrow: string;
72
+ arrowdark: string;
73
+ };
74
+ };
75
+ export type TypeTooltip = keyof typeof typeTooltip;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.3",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -34,7 +34,7 @@
34
34
  "markdown-it": "^14.1.0",
35
35
  "postcss-cli": "^11.0.0",
36
36
  "vee-validate": "^4.12.6",
37
- "vue": "^3.4.25",
37
+ "vue": "^3.2.45",
38
38
  "vue-router": "^4.3.2",
39
39
  "vue3-apexcharts": "^1.5.2"
40
40
  },
@@ -51,12 +51,13 @@
51
51
  "typescript": "^5.4.5",
52
52
  "vite": "^5.2.10",
53
53
  "vite-plugin-dts": "^3.9.0",
54
- "vue-tsc": "^2.0.14"
54
+ "vue-tsc": "^2.0.17"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "vue": "^3.2.45"
58
58
  },
59
59
  "engines": {
60
60
  "node": "20.x.x"
61
- }
61
+ },
62
+ "license": "MIT"
62
63
  }
@@ -2,7 +2,7 @@
2
2
  <script setup lang="ts">
3
3
 
4
4
  import { toRefs, computed } from "vue";
5
- import { TypeAvatar, typeAvatar } from "../../types/Avatar"; //"../../types/Avatar";
5
+ import { type TypeAvatar, typeAvatar } from "../../types/Avatar"; //"../../types/Avatar";
6
6
 
7
7
  type Color = "primary"|"secondary"|"accent"|"error"|"warning"|"success"|"info"|"question"|"tip";
8
8
  type Variant = "circle"|"square"|"rounded";
@@ -8,12 +8,21 @@ interface Props {
8
8
  outlined?: boolean;
9
9
  square?: boolean;
10
10
  iconPath?: string | null;
11
+ labels?:{
12
+ inProgress?: string;
13
+ }
11
14
  }
12
15
 
13
16
  const props = withDefaults(defineProps<Props>(), {
14
17
  color: "primary",
15
18
  square: false,
16
19
  iconPath: null,
20
+ labels:()=>{
21
+ return{
22
+ inProgress: "In Progress"
23
+ }
24
+ }
25
+
17
26
  });
18
27
 
19
28
  const styleChip = computed(() => {
@@ -42,7 +51,7 @@ const { iconPath } = toRefs(props);
42
51
  <EpIcon v-if="iconPath" :iconPath="iconPath" size="32" extra-class="p-1"></EpIcon>
43
52
  </span>
44
53
  </span>-->
45
- <div class="p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning">
46
- <p class="text-center text-error font-bold uppercase">In progress</p>
54
+ <div class="p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning dark:bg-warning-dark">
55
+ <p class="text-center text-error font-bold uppercase">{{labels.inProgress}}</p>
47
56
  </div>
48
57
  </template>
@@ -3,7 +3,7 @@ import { toRefs, computed } from "vue";
3
3
  import EpIcon from './EpIcon.vue';
4
4
  import useColors from "../../composables/useColors";
5
5
  ///types with Capital letters... object with styles same name in lowercase
6
- import { ButtonBgVariant, ButtonSize, bgVariants, sizeVariants } from "../../types/Btn";
6
+ import { type ButtonBgVariant, type ButtonSize, bgVariants, sizeVariants } from "../../types/Btn";
7
7
 
8
8
  //props of components
9
9
  interface Props {
@@ -16,7 +16,6 @@ interface Props {
16
16
  prependIcon?: string | null;
17
17
  outlined?:boolean;
18
18
  text?:boolean;
19
- color?:string;
20
19
  extraClass?: string | null;
21
20
  href?:string;
22
21
  }
@@ -27,20 +26,10 @@ const props = withDefaults(defineProps<Props>(), {
27
26
  size:'medium',
28
27
  appendIcon: null,
29
28
  prependIcon: null,
30
- text:false,
31
29
  extraClass:null,
32
- color:'text-black'
33
30
  });
34
31
 
35
32
 
36
- //get styles tailwind
37
- const colorText = computed(()=>{
38
- if(props.outlined){
39
- return ''
40
- }
41
- return props.color
42
- })
43
-
44
33
 
45
34
  const isOutlined = computed(()=>{
46
35
  if(props.outlined){
@@ -52,8 +41,7 @@ const isOutlined = computed(()=>{
52
41
  ///add bg or text
53
42
  const styleBtn = computed(()=>{
54
43
  if(props.text){
55
-
56
- return `uppercase ${useColors('text', props.type)} hover:${useColors('bg', props.type + 'light')}`
44
+ return `${bgVariants[props.type].text}`
57
45
  }
58
46
  return `${bgVariants[props.type]?.[isOutlined.value]}`
59
47
  })
@@ -61,9 +49,9 @@ const styleBtn = computed(()=>{
61
49
  const styles = computed(() => {
62
50
  return `
63
51
  transition
52
+ font-medium
64
53
  ${styleBtn.value}
65
54
  ${sizeVariants[props.size]}
66
- ${colorText.value}
67
55
  ${props.disabled ? "opacity-50" : ""}
68
56
  ${props.block ? "w-full block" : ""}
69
57
  ${props.rounded ? "rounded-md":""}
@@ -3,7 +3,7 @@ import { toRefs, computed } from "vue";
3
3
  import EpIcon from './EpIcon.vue';
4
4
  import useColors from '../../composables/useColors'
5
5
  //types with capital letter, object styles in lowercase
6
- import { Density, density_style } from "../../types/Card";
6
+ import { type Density, density_style } from "../../types/Card";
7
7
 
8
8
  interface Props {
9
9
  title?: string | null;
@@ -41,9 +41,9 @@ const borderColor = computed(() => {
41
41
  return `border solid ${useColors('border', props.color)}`
42
42
  }
43
43
  if (props.outlined) {
44
- return 'border solid border-grey-700'
44
+ return 'border solid border-primary dark:border-white'
45
45
  }
46
- return ''
46
+ return 'dark:border dark:solid dar:border-white'
47
47
  })
48
48
 
49
49
  const bgColor = computed(() => {
@@ -66,29 +66,39 @@ const density_class = computed(()=> {
66
66
  })
67
67
 
68
68
  const stylesCard = computed(()=> {
69
- return `${shadowCard.value} ${borderColor.value} ${bgColor.value} ${props.maxWidth} my-4 `
69
+ return `
70
+ ${shadowCard.value}
71
+ ${borderColor.value}
72
+ ${bgColor.value}
73
+ ${props.maxWidth}
74
+ rounded-md
75
+ dark:bg-base-dark
76
+ datk:text-white
77
+ my-4 `
70
78
  })
71
79
 
72
80
 
73
- const { title, subtitle, icon, src, density } = toRefs(props)
81
+ const { title, subtitle, icon, src } = toRefs(props)
74
82
 
75
83
  </script>
76
84
  <template>
77
- <div :class="`${stylesCard} rounded-md`">
85
+ <div :class="`${stylesCard} `">
78
86
  <img v-if="src" :src="src" class="w-full rounded-t-md" alt="header card">
79
87
  <div :class="density_class">
80
- <div v-if="title || subtitle" class="mb-2 flex items-center justify-between">
88
+ <div v-if="title || subtitle" class="mb-2 flex items-center justify-between dark:text-white">
81
89
  <div>
82
- <h3 class="text-2xl font-bold">{{ title }}</h3>
83
- <h4 :class="`text-xs ${subTitleText}`">{{ subtitle }}</h4>
90
+ <h3 class="text-2xl dark:text-white font-bold">{{ title }}</h3>
91
+ <h4 :class="`text-xs dark:text-white ${subTitleText}`">{{ subtitle }}</h4>
84
92
  </div>
85
93
  <div v-if="icon">
86
94
  <EpIcon :icon-path="icon"></EpIcon>
87
95
  </div>
88
96
  </div>
89
97
  <slot name="card-header"></slot>
90
- <slot></slot>
91
- <slot name="card-actions"></slot>
98
+ <div class="dark:text-white">
99
+ <slot></slot>
100
+ </div>
101
+ <div class="dark:text-white"><slot name="card-actions"></slot></div>
92
102
  </div>
93
103
  </div>
94
104
  </template>
@@ -2,7 +2,7 @@
2
2
  import { toRefs, computed } from 'vue';
3
3
  import EpIcon from './EpIcon.vue';
4
4
  //import useColors from '../../composables/useColors'
5
- import { ChipBgVariant, ChipSize, chipVariants, sizeChipVariants } from '../../types/Chip';
5
+ import { type ChipBgVariant, type ChipSize, chipVariants, sizeChipVariants } from '../../types/Chip';
6
6
 
7
7
  interface Props {
8
8
  type?:ChipBgVariant;
@@ -47,7 +47,6 @@ const colorText = computed(()=>{
47
47
 
48
48
  const stylesChip = computed(()=>{
49
49
  return `
50
- ${colorText.value}
51
50
  ${sizeChipVariants[props.size]}
52
51
  ${typeChip.value}
53
52
  ${chipVariants[props.type]?.[isOutlined.value]}
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { toRefs, ref, computed } from 'vue'
3
- import { SizeThumbnail, sizeThumbnailStyle } from '../../types/Image'
3
+ import { type SizeThumbnail, sizeThumbnailStyle } from '../../types/Image'
4
4
  import { useImage } from '@vueuse/core'
5
5
  import EpModal from '../interactions/EpModal.vue'
6
6
  import EpIcon from '../basics/EpIcon.vue'
@@ -21,7 +21,12 @@ interface Props {
21
21
  bib?: string;
22
22
  title?: string;
23
23
  noModal?:boolean;
24
- cols?: string | number //posible type à venir => basis-1/12... basis-11/12 to basis-full
24
+ cols?: string | number; //posible type à venir => basis-1/12... basis-11/12 to basis-full
25
+ labels?:{
26
+ reference?: string;
27
+ fermer?:string;
28
+ referenceLibrary?:string;
29
+ }
25
30
  }
26
31
 
27
32
  const props = withDefaults(defineProps<Props>(), {
@@ -29,7 +34,14 @@ const props = withDefaults(defineProps<Props>(), {
29
34
  cols: "6",
30
35
  thumbnail: false,
31
36
  noModal:false,
32
- sizeThumbnail:"medium"
37
+ sizeThumbnail:"medium",
38
+ labels:()=>{
39
+ return {
40
+ reference: "Reference",
41
+ fermer:"Fermer",
42
+ referenceLibrary:"Reference Library"
43
+ }
44
+ }
33
45
  })
34
46
 
35
47
  const Cols = [
@@ -99,7 +111,7 @@ const { src, alt, title, caption, thumbnail, bib, sizeThumbnail } = toRefs(props
99
111
  <div class="px-4 py-2" v-if="title || caption || bib">
100
112
  <h2 class="text-2xl font-bold">{{ title }}</h2>
101
113
  <p class="text-gray-500 text-sm mt-4">{{ caption }}</p>
102
- <div class="text-right"><EpBtn @click="toggleBib" size="small">Référence</EpBtn></div>
114
+ <div class="text-right"><EpBtn @click="toggleBib" size="small">{{labels.reference}}</EpBtn></div>
103
115
  </div>
104
116
  </div>
105
117
  </div>
@@ -122,10 +134,10 @@ const { src, alt, title, caption, thumbnail, bib, sizeThumbnail } = toRefs(props
122
134
  </div>
123
135
  <!-- <div class="flex justify-end"><EpBtn @click="toggleModal" size="small" type="error" outlined>Fermer</EpBtn></div> -->
124
136
  </EpModal>
125
- <EpModal v-model="showBib" title="Référence bibliographique">
137
+ <EpModal v-model="showBib" title="labels.referenceLibrary">
126
138
 
127
139
  <div class="text-gray-700 mt-4" v-html="renderBib"></div>
128
- <div class="flex justify-end"><EpBtn @click="toggleBib" size="small" type="error" outlined>Fermer</EpBtn></div>
140
+ <div class="flex justify-end"><EpBtn @click="toggleBib" size="small" type="error" outlined>{{labels.fermer}}</EpBtn></div>
129
141
  </EpModal>
130
142
  </div>
131
143
  </template>
@@ -54,7 +54,7 @@ const { title, icon, color, src } = toRefs(props);
54
54
  <p class="text-2xl font-medium tracking-tight text-black sm:text-4xl">
55
55
  {{ title }}
56
56
  </p>
57
- <p class="">
57
+ <p>
58
58
  {{ subtitle }}
59
59
  </p>
60
60
  </div>
@@ -13,18 +13,18 @@ const props = withDefaults(defineProps<Props>(),{
13
13
 
14
14
  const {headers, arrayContent, title} = toRefs(props)
15
15
 
16
- const styleTh ="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider";
16
+ const styleTh ="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-white";
17
17
  </script>
18
18
  <template>
19
19
  <EpCard flat :title="title">
20
- <table class="min-w-full divide-y divide-gray-200 shadow">
21
- <thead class="bg-gray-50" v-if="headers">
20
+ <table class="min-w-full divide-y shadow dark:bg-base-dark">
21
+ <thead class="bg-gray-50 dark:bg-base-dark" v-if="headers">
22
22
  <tr>
23
23
  <th v-for="(title, i) in headers" :key="`th-${i}`" scope="col" :class="styleTh">{{title}}</th>
24
24
  </tr>
25
25
  </thead>
26
- <tbody class="bg-white divide-y divide-gray-200">
27
- <tr v-for="(tr, i) in arrayContent" :key="`tr-${i}`" class="hover:bg-gray-50">
26
+ <tbody class="bg-white divide-y dark:bg-base-dark">
27
+ <tr v-for="(tr, i) in arrayContent" :key="`tr-${i}`" class="hover:bg-gray-50 dark:hover:bg-black">
28
28
  <td v-for="(value, j) in tr" :key="`td-${i}-${j}`" class="px-6 py-4">{{value}}</td>
29
29
  </tr>
30
30
  </tbody>
@@ -9,15 +9,23 @@ interface Props {
9
9
  content: string;
10
10
  title?: string | null;
11
11
  compact?: boolean;
12
+ labels?:{
13
+ enSavoirPlus?:string;
14
+ }
12
15
  }
13
16
 
14
17
  const props = withDefaults(defineProps<Props>(), {
15
18
  compact: false,
19
+ labels:()=>{
20
+ return {
21
+ enSavoirPlus:"En savoir plus"
22
+ }
23
+ }
16
24
  });
17
25
 
18
26
  const renderTitle = computed(() => {
19
27
  if (!props.title) {
20
- return "En savoir plus";
28
+ return props.labels.enSavoirPlus;
21
29
  }
22
30
  return props.title;
23
31
  });
@@ -108,7 +116,7 @@ const { compact } = toRefs(props);
108
116
  </script>
109
117
 
110
118
  <template>
111
- <div class="px-2">
119
+ <div class="px-2 text-black dark:text-white ">
112
120
  <myRenderComponent v-if="!compact"></myRenderComponent>
113
121
  <EpAccordeon outlined :title="renderTitle" v-else>
114
122
  <myRenderComponent></myRenderComponent>
@@ -3,7 +3,7 @@
3
3
  import { computed, toRefs } from "vue";
4
4
  import EpEdu from "../educationals/EpEdu.vue";
5
5
  import { mdiChartBar } from "@mdi/js";
6
- import { MediaVariants } from "../../types/Medias";
6
+ import { type MediaVariants } from "../../types/Medias";
7
7
  import { isHtml } from "../../composables/isHtml";
8
8
  import { useMarkdown } from "../../composables/useMarkdown";
9
9
 
@@ -32,11 +32,19 @@ interface Props {
32
32
  mandateLevel?: string | null;
33
33
  source?:string;
34
34
  width?:string;
35
+ labels?:{
36
+ dataNoDisponible?:string;
37
+ }
35
38
  }
36
39
 
37
40
  const props = withDefaults(defineProps<Props>(), {
38
41
  center: true,
39
- width:"500"
42
+ width:"500",
43
+ labels:()=>{
44
+ return {
45
+ dataNoDisponible:"Data no disponible"
46
+ }
47
+ }
40
48
  });
41
49
 
42
50
  const renderText = computed(() => {
@@ -72,7 +80,7 @@ const { center, series, source, width } = toRefs(props)
72
80
  <apexchart :width="width" type="bar" :options="globalOptions" :series="series"></apexchart>
73
81
  </div>
74
82
  <div v-else>
75
- <p>Data no disponible</p>
83
+ <p>{{labels.dataNoDisponible}}</p>
76
84
  </div>
77
85
  </template>
78
86
  <template #actions v-if="source">