ep-lib-ts 0.1.14 → 0.1.16

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 (138) hide show
  1. package/dist/BgAudio-fdecbff9.js +5 -0
  2. package/dist/DisplayBox-65e9eca6.js +5 -0
  3. package/dist/EpAlert-a0be5833.js +5 -0
  4. package/dist/EpAudio-8b3e9bc6.js +5 -0
  5. package/dist/EpBadge-7c355f64.js +5 -0
  6. package/dist/EpBarChart-4f9cf4a5.js +5 -0
  7. package/dist/EpBtn-e272db29.js +5 -0
  8. package/dist/EpCard-84ed498b.js +5 -0
  9. package/dist/EpCheckbox-fe632df9.js +36 -0
  10. package/dist/EpChip-41ef9cda.js +5 -0
  11. package/dist/EpContentSlider-fa83c239.js +5 -0
  12. package/dist/EpDivider-782f1320.js +5 -0
  13. package/dist/EpEdu-254592e7.js +5 -0
  14. package/dist/EpFlex-3fd43ac8.js +5 -0
  15. package/dist/EpHeader-36c94e1d.js +5 -0
  16. package/dist/EpIcon-b1dab9c7.js +5 -0
  17. package/dist/EpIframe-0ef6462c.js +5 -0
  18. package/dist/EpImg-a67494ab.js +5 -0
  19. package/dist/EpInput-7d0ace96.js +1171 -0
  20. package/dist/EpLineChart-0875318d.js +5 -0
  21. package/dist/EpLink-ae14268f.js +5 -0
  22. package/dist/EpLinkVersion-d2a66536.js +5 -0
  23. package/dist/EpModal-e7752c3a.js +5 -0
  24. package/dist/EpNothing-89192a65.js +10 -0
  25. package/dist/EpPieChart-a5c2b324.js +5 -0
  26. package/dist/EpQuestion-978df44b.js +5 -0
  27. package/dist/EpQuote-cf643027.js +5 -0
  28. package/dist/EpRadio-68bd99f6.js +5 -0
  29. package/dist/EpReading-8d0cd235.js +5 -0
  30. package/dist/EpResource-c2bda168.js +5 -0
  31. package/dist/EpScope-c32ba4f3.js +5 -0
  32. package/dist/EpSection-f86df6e5.js +5 -0
  33. package/dist/EpSelect-20303cb9.js +31 -0
  34. package/dist/EpSoftware-8d7db7e7.js +5 -0
  35. package/dist/EpSpinner-1f81811b.js +5 -0
  36. package/dist/EpSvg-a5f79222.js +5 -0
  37. package/dist/EpSwitch-1eaf9d3f.js +44 -0
  38. package/dist/EpTable-22a1b1a2.js +5 -0
  39. package/dist/EpTerm-37c870cd.js +5 -0
  40. package/dist/EpText-5337f1b1.js +5 -0
  41. package/dist/EpTextarea-67f751e9.js +41 -0
  42. package/dist/EpTimeLine-c4d0e6f5.js +5 -0
  43. package/dist/EpToggle-9755056a.js +44 -0
  44. package/dist/EpVideo-7fe796f2.js +5 -0
  45. package/dist/EpVideoPanopto-d5bfe806.js +5 -0
  46. package/dist/components/basics/EpBadge.vue.d.ts +38 -0
  47. package/dist/components/basics/EpBtn.vue.d.ts +108 -0
  48. package/dist/components/basics/EpCard.vue.d.ts +95 -0
  49. package/dist/components/basics/EpChip.vue.d.ts +72 -0
  50. package/dist/components/basics/EpDivider.vue.d.ts +51 -0
  51. package/dist/components/basics/EpFlex.vue.d.ts +9 -0
  52. package/dist/components/basics/EpIcon.vue.d.ts +37 -0
  53. package/dist/components/basics/EpImg.vue.d.ts +79 -0
  54. package/dist/components/basics/EpSection.vue.d.ts +84 -0
  55. package/dist/components/basics/EpSpinner.vue.d.ts +41 -0
  56. package/dist/components/basics/EpTable.vue.d.ts +24 -0
  57. package/dist/components/basics/EpText.vue.d.ts +34 -0
  58. package/dist/components/charts/EpBarChart.vue.d.ts +82 -0
  59. package/dist/components/charts/EpLineChart.vue.d.ts +82 -0
  60. package/dist/components/charts/EpPieChart.vue.d.ts +76 -0
  61. package/dist/components/educationals/EpEdu.vue.d.ts +81 -0
  62. package/dist/components/educationals/EpReading.vue.d.ts +152 -0
  63. package/dist/components/educationals/EpResource.vue.d.ts +35 -0
  64. package/dist/components/educationals/EpScope.vue.d.ts +23 -0
  65. package/dist/components/forms/EpCheckbox.vue.d.ts +72 -0
  66. package/dist/components/forms/EpInput.vue.d.ts +98 -0
  67. package/dist/components/forms/EpRadio.vue.d.ts +69 -0
  68. package/dist/components/forms/EpSelect.vue.d.ts +83 -0
  69. package/dist/components/forms/EpSwitch.vue.d.ts +81 -0
  70. package/dist/components/forms/EpTextarea.vue.d.ts +90 -0
  71. package/dist/components/forms/EpToggle.vue.d.ts +81 -0
  72. package/dist/components/interactions/EpAccordeon.vue.d.ts +54 -0
  73. package/dist/components/interactions/EpContentSlider.vue.d.ts +13 -0
  74. package/dist/components/interactions/EpModal.vue.d.ts +70 -0
  75. package/dist/components/interactions/EpQuestion.vue.d.ts +91 -0
  76. package/dist/components/interactions/EpTabs.vue.d.ts +2 -0
  77. package/dist/components/medias/EpAudio.vue.d.ts +74 -0
  78. package/dist/components/medias/EpCarousel.vue.d.ts +41 -0
  79. package/dist/components/medias/EpIframe.vue.d.ts +58 -0
  80. package/dist/components/medias/EpKatex.vue.d.ts +52 -0
  81. package/dist/components/medias/EpLink.vue.d.ts +74 -0
  82. package/dist/components/medias/EpLinkVersion.vue.d.ts +37 -0
  83. package/dist/components/medias/EpSoftware.vue.d.ts +89 -0
  84. package/dist/components/medias/EpSvg.vue.d.ts +35 -0
  85. package/dist/components/medias/EpTerm.vue.d.ts +91 -0
  86. package/dist/components/medias/EpTimeLine.vue.d.ts +32 -0
  87. package/dist/components/medias/EpVideo.vue.d.ts +65 -0
  88. package/dist/components/medias/EpVideoPanopto.vue.d.ts +65 -0
  89. package/dist/components/signages/EpAlert.vue.d.ts +61 -0
  90. package/dist/components/signages/EpHeader.vue.d.ts +105 -0
  91. package/dist/components/signages/EpNothing.vue.d.ts +2 -0
  92. package/dist/components/signages/EpQuote.vue.d.ts +39 -0
  93. package/dist/components/tools/BgAudio.vue.d.ts +14 -0
  94. package/dist/components/tools/DisplayBox.vue.d.ts +17 -0
  95. package/dist/components/tools/SvgFilter.vue.d.ts +2 -0
  96. package/dist/components/tools/TimelineItem.vue.d.ts +29 -0
  97. package/dist/composables/isHtml.d.ts +1 -0
  98. package/dist/composables/useColors.d.ts +1 -0
  99. package/dist/composables/useComponent.d.ts +6 -0
  100. package/dist/composables/useIcons.d.ts +23 -0
  101. package/dist/composables/useMarkdown.d.ts +1 -0
  102. package/dist/composables/useRenderText.d.ts +1 -0
  103. package/dist/ep-lib-ts.js +43 -0
  104. package/dist/ep-lib-ts.umd.cjs +348 -0
  105. package/dist/index-c413caa3.js +19381 -0
  106. package/dist/index.d.ts +40 -0
  107. package/dist/main.d.ts +0 -0
  108. package/dist/router.d.ts +2 -0
  109. package/dist/style.css +1 -0
  110. package/dist/types/Accordeon.d.ts +43 -0
  111. package/dist/types/Alert.d.ts +31 -0
  112. package/dist/types/Answer.d.ts +15 -0
  113. package/dist/types/Border.d.ts +2 -0
  114. package/dist/types/Btn.d.ts +41 -0
  115. package/dist/types/Card.d.ts +6 -0
  116. package/dist/types/Chip.d.ts +41 -0
  117. package/dist/types/MandateLevel.d.ts +5 -0
  118. package/dist/types/MediaCarousel.d.ts +7 -0
  119. package/dist/types/Medias.d.ts +11 -0
  120. package/dist/types/Radio.d.ts +11 -0
  121. package/dist/types/Slides.d.ts +15 -0
  122. package/dist/types/TimeLine.d.ts +124 -0
  123. package/dist/vite.svg +1 -0
  124. package/package.json +3 -3
  125. package/src/components/basics/EpCard.vue +0 -1
  126. package/src/components/basics/EpText.vue +7 -4
  127. package/src/components/charts/EpPieChart.vue +72 -4
  128. package/src/components/interactions/EpAccordeon.vue +14 -12
  129. package/src/components/interactions/EpContentSlider.vue +108 -5
  130. package/src/components/interactions/EpModal.vue +1 -1
  131. package/src/components/medias/EpCarousel.vue +1 -1
  132. package/src/components/medias/EpLink.vue +12 -11
  133. package/src/components/medias/EpSvg.vue +42 -3
  134. package/src/components/medias/EpTerm.vue +29 -14
  135. package/src/components/medias/EpTimeLine.vue +19 -17
  136. package/src/components/signages/EpHeader.vue +44 -93
  137. package/src/components/tools/DisplayBox.vue +2 -2
  138. package/src/components/tools/SvgFilter.vue +220 -0
@@ -0,0 +1,40 @@
1
+ import EpText from './components/basics/EpText.vue';
2
+ import EpImg from './components/basics/EpImg.vue';
3
+ import EpCard from './components/basics/EpCard.vue';
4
+ import EpBadge from './components/basics/EpBadge.vue';
5
+ import EpBtn from './components/basics/EpBtn.vue';
6
+ import EpChip from './components/basics/EpChip.vue';
7
+ import EpDivider from './components/basics/EpDivider.vue';
8
+ import EpSection from './components/basics/EpSection.vue';
9
+ import EpSpinner from './components/basics/EpSpinner.vue';
10
+ import EpFlex from './components/basics/EpFlex.vue';
11
+ import EpIcon from './components/basics/EpIcon.vue';
12
+ import EpTable from './components/basics/EpTable.vue';
13
+ import EpBarChart from './components/charts/EpBarChart.vue';
14
+ import EpLineChart from './components/charts/EpLineChart.vue';
15
+ import EpPieChart from './components/charts/EpPieChart.vue';
16
+ import EpEdu from './components/educationals/EpEdu.vue';
17
+ import EpReading from './components/educationals/EpReading.vue';
18
+ import EpResource from './components/educationals/EpResource.vue';
19
+ import EpScope from './components/educationals/EpScope.vue';
20
+ import EpAccordeon from './components/interactions/EpAccordeon.vue';
21
+ import EpContentSlider from './components/interactions/EpContentSlider.vue';
22
+ import EpModal from './components/interactions/EpModal.vue';
23
+ import EpQuestion from './components/interactions/EpQuestion.vue';
24
+ import EpTabs from './components/interactions/EpTabs.vue';
25
+ import EpAudio from './components/medias/EpAudio.vue';
26
+ import EpCarousel from './components/medias/EpCarousel.vue';
27
+ import EpIframe from './components/medias/EpIframe.vue';
28
+ import EpKatex from './components/medias/EpKatex.vue';
29
+ import EpLink from './components/medias/EpLink.vue';
30
+ import EpLinkVersion from './components/medias/EpLinkVersion.vue';
31
+ import EpSoftware from './components/medias/EpSoftware.vue';
32
+ import EpSvg from './components/medias/EpSvg.vue';
33
+ import EpTerm from './components/medias/EpTerm.vue';
34
+ import EpTimeLine from './components/medias/EpTimeLine.vue';
35
+ import EpVideo from './components/medias/EpVideo.vue';
36
+ import EpVideoPanopto from './components/medias/EpVideoPanopto.vue';
37
+ import EpAlert from './components/signages/EpAlert.vue';
38
+ import EpHeader from './components/signages/EpHeader.vue';
39
+ import EpQuote from './components/signages/EpQuote.vue';
40
+ export { EpBadge, EpBtn, EpCard, EpChip, EpDivider, EpFlex, EpIcon, EpImg, EpSection, EpSpinner, EpTable, EpBarChart, EpLineChart, EpPieChart, 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, };
package/dist/main.d.ts ADDED
File without changes
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue-router").Router;
2
+ export default _default;
package/dist/style.css ADDED
@@ -0,0 +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-ab122c9c]{max-height:0;overflow:hidden}.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)}
@@ -0,0 +1,43 @@
1
+ export declare const typeAccordeon: {
2
+ base: {
3
+ default: string;
4
+ outlined: string;
5
+ };
6
+ primary: {
7
+ default: string;
8
+ outlined: string;
9
+ };
10
+ secondary: {
11
+ default: string;
12
+ outlined: string;
13
+ };
14
+ accent: {
15
+ default: string;
16
+ outlined: string;
17
+ };
18
+ warning: {
19
+ default: string;
20
+ outlined: string;
21
+ };
22
+ success: {
23
+ default: string;
24
+ outlined: string;
25
+ };
26
+ error: {
27
+ default: string;
28
+ outlined: string;
29
+ };
30
+ info: {
31
+ default: string;
32
+ outlined: string;
33
+ };
34
+ question: {
35
+ default: string;
36
+ outlined: string;
37
+ };
38
+ tip: {
39
+ default: string;
40
+ outlined: string;
41
+ };
42
+ };
43
+ export type TypeAccordeon = keyof typeof typeAccordeon;
@@ -0,0 +1,31 @@
1
+ export declare const typeAlert: {
2
+ base: {
3
+ default: string;
4
+ outlined: string;
5
+ };
6
+ warning: {
7
+ default: string;
8
+ outlined: string;
9
+ };
10
+ success: {
11
+ default: string;
12
+ outlined: string;
13
+ };
14
+ error: {
15
+ default: string;
16
+ outlined: string;
17
+ };
18
+ info: {
19
+ default: string;
20
+ outlined: string;
21
+ };
22
+ question: {
23
+ default: string;
24
+ outlined: string;
25
+ };
26
+ tip: {
27
+ default: string;
28
+ outlined: string;
29
+ };
30
+ };
31
+ export type TypeAlert = keyof typeof typeAlert;
@@ -0,0 +1,15 @@
1
+ import { TypeAlert } from './Alert';
2
+ interface ContentComponent {
3
+ type?: string;
4
+ data: {
5
+ [key: string]: any;
6
+ };
7
+ }
8
+ export interface Answer {
9
+ text: string;
10
+ feedback: string;
11
+ type: TypeAlert;
12
+ uid?: string;
13
+ component?: ContentComponent | null;
14
+ }
15
+ export {};
@@ -0,0 +1,2 @@
1
+ type Border = "border" | "border-2" | "border-4" | "border-8";
2
+ export default Border;
@@ -0,0 +1,41 @@
1
+ export declare const bgVariants: {
2
+ base: {
3
+ default: string;
4
+ outlined: string;
5
+ };
6
+ primary: {
7
+ default: string;
8
+ outlined: string;
9
+ };
10
+ secondary: {
11
+ default: string;
12
+ outlined: string;
13
+ };
14
+ accent: {
15
+ default: string;
16
+ outlined: string;
17
+ };
18
+ info: {
19
+ default: string;
20
+ outlined: string;
21
+ };
22
+ warning: {
23
+ default: string;
24
+ outlined: string;
25
+ };
26
+ success: {
27
+ default: string;
28
+ outlined: string;
29
+ };
30
+ error: {
31
+ default: string;
32
+ outlined: string;
33
+ };
34
+ };
35
+ export declare const sizeVariants: {
36
+ small: string;
37
+ medium: string;
38
+ large: string;
39
+ };
40
+ export type ButtonBgVariant = keyof typeof bgVariants;
41
+ export type ButtonSize = keyof typeof sizeVariants;
@@ -0,0 +1,6 @@
1
+ export declare const density_style: {
2
+ compact: string;
3
+ default: string;
4
+ comfortable: string;
5
+ };
6
+ export type Density = keyof typeof density_style;
@@ -0,0 +1,41 @@
1
+ export declare const chipVariants: {
2
+ base: {
3
+ default: string;
4
+ outlined: string;
5
+ };
6
+ primary: {
7
+ default: string;
8
+ outlined: string;
9
+ };
10
+ secondary: {
11
+ default: string;
12
+ outlined: string;
13
+ };
14
+ accent: {
15
+ default: string;
16
+ outlined: string;
17
+ };
18
+ info: {
19
+ default: string;
20
+ outlined: string;
21
+ };
22
+ warning: {
23
+ default: string;
24
+ outlined: string;
25
+ };
26
+ success: {
27
+ default: string;
28
+ outlined: string;
29
+ };
30
+ error: {
31
+ default: string;
32
+ outlined: string;
33
+ };
34
+ };
35
+ export declare const sizeChipVariants: {
36
+ small: string;
37
+ medium: string;
38
+ large: string;
39
+ };
40
+ export type ChipBgVariant = keyof typeof chipVariants;
41
+ export type ChipSize = keyof typeof sizeChipVariants;
@@ -0,0 +1,5 @@
1
+ export interface MandateLevel {
2
+ color: string;
3
+ title: string;
4
+ value: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ export interface MediaCarousel {
2
+ src: string;
3
+ bib: string;
4
+ caption: string;
5
+ uid?: string;
6
+ privacy?: string;
7
+ }
@@ -0,0 +1,11 @@
1
+ export declare const mediaVariants: {
2
+ base: string;
3
+ primary: string;
4
+ secondary: string;
5
+ accent: string;
6
+ info: string;
7
+ warning: string;
8
+ success: string;
9
+ error: string;
10
+ };
11
+ export type MediaVariants = keyof typeof mediaVariants;
@@ -0,0 +1,11 @@
1
+ export declare const radioVariants: {
2
+ base: string;
3
+ primary: string;
4
+ secondary: string;
5
+ accent: string;
6
+ info: string;
7
+ warning: string;
8
+ success: string;
9
+ error: string;
10
+ };
11
+ export type RadioVariants = keyof typeof radioVariants;
@@ -0,0 +1,15 @@
1
+ interface ContentComponent {
2
+ type?: string;
3
+ size?: boolean;
4
+ data: {
5
+ [key: string]: any;
6
+ };
7
+ }
8
+ export interface SlidesType {
9
+ img: string | null;
10
+ uid: string | number;
11
+ title: string;
12
+ content: string;
13
+ component?: null | ContentComponent;
14
+ }
15
+ export {};
@@ -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;
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": "0.1.14",
4
+ "version": "0.1.16",
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.0.24"
53
+ "vue-tsc": "^1.8.8"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "vue": "^3.2.45"
@@ -58,4 +58,4 @@
58
58
  "engines": {
59
59
  "node": "18.x.x"
60
60
  }
61
- }
61
+ }
@@ -91,5 +91,4 @@ const { title, subtitle, icon, src, density } = toRefs(props)
91
91
  <slot name="card-actions"></slot>
92
92
  </div>
93
93
  </div>
94
-
95
94
  </template>
@@ -13,7 +13,7 @@ interface Props {
13
13
  }
14
14
 
15
15
  const props = withDefaults(defineProps<Props>(),{
16
- compact:false
16
+ compact:false,
17
17
  })
18
18
 
19
19
  const renderTitle = computed(()=>{
@@ -24,6 +24,9 @@ const renderTitle = computed(()=>{
24
24
  })
25
25
 
26
26
  const renderText = computed(()=>{
27
+ if(!props.content){
28
+ return `<div></div>`
29
+ }
27
30
  if(!isHtml(props.content)){
28
31
  return useMarkdown(props.content)
29
32
  }
@@ -36,7 +39,7 @@ const renderText = computed(()=>{
36
39
  let newStr = div.outerHTML
37
40
  //find all span.ep_glossary_item to know the glossary terms in the text
38
41
  const glossaryTerms = div.querySelectorAll('.ep_glossary_item')
39
- console.log(glossaryTerms)
42
+ // console.log(glossaryTerms)
40
43
  //if find glossary terms
41
44
  if(glossaryTerms.length > 0){
42
45
  ///check every term and replace it
@@ -65,9 +68,9 @@ const renderText = computed(()=>{
65
68
  const idsRelation = foundedRelations.map((x) => x.id);
66
69
  const termsRelation = foundedRelations.map((x) => x.term);
67
70
  const variation = term.variation
68
-
71
+ const hasImge = term.src ? term.src : ''
69
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>`
70
- const replaceWord = ` <EpTerm term="${term.term}" definition="${term.definition}" word="${render_word}" variations="${variation}" graminfo='${term.graminfo}' domain='${term.domain}' relations='${termsRelation}' idrelation="${idsRelation}"></EpTerm> `
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> `
71
74
  //replace output string
72
75
  newStr = newStr.replace(word, replaceWord)
73
76
  }
@@ -1,8 +1,76 @@
1
1
  <script setup lang="ts">
2
+ import { computed, toRefs } from "vue";
3
+ import EpEdu from "../educationals/EpEdu.vue";
4
+ import { mdiChartPie } from '@mdi/js';
5
+ import { MediaVariants } from "../../types/Medias";
6
+ import { isHtml } from "../../composables/isHtml";
7
+ import { useMarkdown } from "../../composables/useMarkdown";
8
+
9
+ interface TitlePie {
10
+ text:string;
11
+ align?:string;
12
+ }
13
+
14
+ interface Props {
15
+ series: number[];
16
+ labels:string[];
17
+ id?: string;
18
+ center?: boolean;
19
+ title?: TitlePie;
20
+ intentions?: string;
21
+ hideIcon?: boolean;
22
+ type?: MediaVariants;
23
+ mandateLevel?: string | null;
24
+ source?: string;
25
+ }
26
+
27
+ const props = withDefaults(defineProps<Props>(), {
28
+ center: false,
29
+ });
30
+
31
+ const options = computed(()=> {
32
+ return {
33
+ chart: {
34
+ width: 350,
35
+ type: "pie",
36
+ },
37
+ labels: props.labels || [],
38
+ }
39
+ })
40
+
41
+ const renderText = computed(() => {
42
+ if (!props.intentions) {
43
+ return null;
44
+ }
45
+ if (!isHtml(props.intentions)) {
46
+ return useMarkdown(props.intentions);
47
+ }
48
+ return props.intentions;
49
+ });
50
+
51
+
52
+
53
+ const { center, series, source, labels, title } = toRefs(props)
54
+
2
55
  </script>
3
56
 
4
57
  <template>
5
- <div class="p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning">
6
- <p class="text-center text-error font-bold uppercase">In progress</p>
7
- </div>
8
- </template>
58
+ <EpEdu :title="title?.text" :type="type" :hideIcon="hideIcon" :icon="mdiChartPie" :mandateLevel="mandateLevel">
59
+ <template #intentions v-if="renderText">
60
+ <div v-html="renderText"></div>
61
+ </template>
62
+ <template #content>
63
+ <div :class="`p-4 ${center ? 'flex justify-center' : ''}`" v-if="labels && series">
64
+ <apexchart width="350" type="pie" :options="options" :series="series"></apexchart>
65
+ </div>
66
+ <div v-else>
67
+ <p>Data no disponible</p>
68
+ </div>
69
+ </template>
70
+ <template #actions v-if="source">
71
+ <p>{{ source }}</p>
72
+ </template>
73
+ </EpEdu>
74
+ </template>
75
+
76
+
@@ -64,18 +64,20 @@ const { title, icon } = toRefs(props)
64
64
  </script>
65
65
 
66
66
  <template>
67
- <div :class="stylesHeader" @click="toggleDivVisibility">
68
- <h3 class="text-lg"><EpIcon v-if="icon" :icon-path="icon"></EpIcon> {{ title }}</h3>
69
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
70
- :class="`mx-4 my-3 h-6 w-6 transition-all duration-200 ${showDiv ? 'rotate-45' : ''}`">
71
- <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
72
- </svg>
73
- </div>
74
- <div ref="collapsible" :class="`${contentStyles} content`">
75
- <div class="py-4">
76
-
77
- <slot></slot>
78
-
67
+ <div>
68
+ <div :class="stylesHeader" @click="toggleDivVisibility">
69
+ <h3 class="text-lg"><EpIcon v-if="icon" :icon-path="icon"></EpIcon> {{ title }}</h3>
70
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
71
+ :class="`mx-4 my-3 h-6 w-6 transition-all duration-200 ${showDiv ? 'rotate-45' : ''}`">
72
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
73
+ </svg>
74
+ </div>
75
+ <div ref="collapsible" :class="`${contentStyles} content`">
76
+ <div class="py-4">
77
+
78
+ <slot></slot>
79
+
80
+ </div>
79
81
  </div>
80
82
  </div>
81
83
  </template>