ep-lib-ts 1.0.28 → 1.0.30

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 (116) hide show
  1. package/dist/BgAudio-C8683LM2.js +4 -0
  2. package/dist/DisplayBox-qEKoGtQL.js +4 -0
  3. package/dist/EpAlert-l4Q4S63D.js +4 -0
  4. package/dist/EpAudio-Bv7Cb_lE.js +4 -0
  5. package/dist/EpBadge-DUTYlSK6.js +4 -0
  6. package/dist/EpBarChart-D2WMoNS3.js +4 -0
  7. package/dist/EpBtn-CYMGJGv6.js +4 -0
  8. package/dist/EpCard-DMzOL69R.js +4 -0
  9. package/dist/EpChip-k0ewYmQv.js +4 -0
  10. package/dist/EpCodeblock-D_qlRkaA.js +4 -0
  11. package/dist/EpConclusion-98o31XcJ.js +4 -0
  12. package/dist/EpContentSlider-D0cLpcPI.js +4 -0
  13. package/dist/{EpDarkmode-bSa5olQN.js → EpDarkmode-B7nXz4Nn.js} +1 -1
  14. package/dist/EpDescription-BmkQWMd8.js +4 -0
  15. package/dist/EpDivider-DVqBtmqb.js +4 -0
  16. package/dist/EpEdu-u_tZI9Nr.js +4 -0
  17. package/dist/EpFlex-C0YVu0xx.js +4 -0
  18. package/dist/EpFunnelChart-CtqhL5Qy.js +4 -0
  19. package/dist/EpHeader-BpMwY9Un.js +4 -0
  20. package/dist/{EpHover-DSK1UvXY.js → EpHover-D9iE-KNv.js} +1 -1
  21. package/dist/EpIcon-CS-tNGJb.js +4 -0
  22. package/dist/EpIframe-BwxkxMc2.js +4 -0
  23. package/dist/EpImg-C659L706.js +4 -0
  24. package/dist/{EpInput-BGoL_vhI.js → EpInput-BxNPPX9A.js} +22 -22
  25. package/dist/EpInstructions-5kra-vlF.js +4 -0
  26. package/dist/EpIntroduction-ChXioejs.js +4 -0
  27. package/dist/EpLineChart-3uaDlofV.js +4 -0
  28. package/dist/EpLink-CWuo1UYv.js +4 -0
  29. package/dist/EpLinkVersion-dgN7hURw.js +4 -0
  30. package/dist/{EpList-CkFzRwQu.js → EpList-D7EiLwNH.js} +1 -1
  31. package/dist/EpModal-CWML9pUx.js +4 -0
  32. package/dist/{EpNothing-D60ZuoTO.js → EpNothing-CN5wC7-y.js} +1 -1
  33. package/dist/EpObjective-BogvA_WI.js +4 -0
  34. package/dist/EpPieChart-Dy3z2Wcs.js +4 -0
  35. package/dist/EpQuestion-qjn1G8ui.js +4 -0
  36. package/dist/EpQuote-DAjmGAse.js +4 -0
  37. package/dist/EpRadio-DzwEqjym.js +4 -0
  38. package/dist/EpRadioSummative-Cvr-1-_R.js +4 -0
  39. package/dist/EpReading-CsykTkxM.js +4 -0
  40. package/dist/EpResource-DkKV6gg8.js +4 -0
  41. package/dist/EpScope-B7dEbcT6.js +4 -0
  42. package/dist/EpSection-Iz0_OVgd.js +4 -0
  43. package/dist/EpSkeleton-qG1U0y_0.js +4 -0
  44. package/dist/EpSoftware-CXIZLT-v.js +4 -0
  45. package/dist/EpSpecificObjective-CsYJZwDh.js +4 -0
  46. package/dist/EpSpinner-CSR9s2Tz.js +4 -0
  47. package/dist/EpSummativeTable-DKhtT7lD.js +4 -0
  48. package/dist/EpSvg-BEmOYoKd.js +4 -0
  49. package/dist/EpTable-UeSP2yPs.js +4 -0
  50. package/dist/EpTerm-CwZo6uEk.js +4 -0
  51. package/dist/EpText-DUXBFv1T.js +4 -0
  52. package/dist/EpTimeLine-Dujz4MTA.js +4 -0
  53. package/dist/EpVideo-Cb076I_Z.js +4 -0
  54. package/dist/EpVideoPanopto-BChv0t4T.js +4 -0
  55. package/dist/EpWordDef-DYBezegI.js +4 -0
  56. package/dist/components/signages/EpHeader.vue.d.ts +34 -6
  57. package/dist/ep-lib-ts.js +36 -35
  58. package/dist/ep-lib-ts.umd.cjs +85 -85
  59. package/dist/{index-DJlSoYXr.js → index-Ch6ky3uk.js} +1 -1
  60. package/dist/index-CjFsNJuq.js +20904 -0
  61. package/dist/index.d.ts +2 -1
  62. package/dist/{prism-BBDN_oIY.js → prism-4vT4ciXB.js} +1 -1
  63. package/package.json +1 -1
  64. package/src/components/educationals/EpSpecificObjective.vue +1 -1
  65. package/src/components/signages/EpHeader.vue +91 -20
  66. package/dist/BgAudio-CSugbYTV.js +0 -4
  67. package/dist/DisplayBox-BWCkFddn.js +0 -4
  68. package/dist/EpAlert-RBXPL311.js +0 -4
  69. package/dist/EpAudio-DwWaLFmA.js +0 -4
  70. package/dist/EpBadge-NyPE2es-.js +0 -4
  71. package/dist/EpBarChart-DQ8VeUfV.js +0 -4
  72. package/dist/EpBtn-AnuZKT32.js +0 -4
  73. package/dist/EpCard-C1rB5n_A.js +0 -4
  74. package/dist/EpChip-CPQcyfRt.js +0 -4
  75. package/dist/EpCodeblock-CZ1tMDQY.js +0 -1481
  76. package/dist/EpConclusion-DcTWaTn5.js +0 -4
  77. package/dist/EpContentSlider-BPmHoe-j.js +0 -4
  78. package/dist/EpDescription-DTAZRKlm.js +0 -4
  79. package/dist/EpDivider-CucVHsch.js +0 -4
  80. package/dist/EpEdu-BzmS3cLb.js +0 -4
  81. package/dist/EpFlex-BrPmgiMZ.js +0 -4
  82. package/dist/EpFunnelChart-BNnmy_FE.js +0 -4
  83. package/dist/EpHeader-0FdCGAcL.js +0 -4
  84. package/dist/EpIcon-BKHUnYQO.js +0 -4
  85. package/dist/EpIframe-Cs7JHjmG.js +0 -4
  86. package/dist/EpImg-Dopy79X6.js +0 -4
  87. package/dist/EpInstructions-CNcqm2v_.js +0 -4
  88. package/dist/EpIntroduction-CDcz3rf1.js +0 -4
  89. package/dist/EpLineChart-B4C2tbs1.js +0 -4
  90. package/dist/EpLink-CCLCOmy4.js +0 -4
  91. package/dist/EpLinkVersion-I-eCOfp2.js +0 -4
  92. package/dist/EpModal-laG1RqnP.js +0 -4
  93. package/dist/EpObjective-BYL5lb5A.js +0 -4
  94. package/dist/EpPieChart-6YLF5-WW.js +0 -4
  95. package/dist/EpQuestion-BKt_QPcF.js +0 -4
  96. package/dist/EpQuote-1_MqOlik.js +0 -4
  97. package/dist/EpRadio-CEPpUgBB.js +0 -4
  98. package/dist/EpRadioSummative-D4v8RMfs.js +0 -4
  99. package/dist/EpReading-CyuCNbP4.js +0 -4
  100. package/dist/EpResource-DY2ysttq.js +0 -4
  101. package/dist/EpScope-IPS1j0GH.js +0 -4
  102. package/dist/EpSection-D5cOs3HA.js +0 -4
  103. package/dist/EpSkeleton-lVuPeb_H.js +0 -4
  104. package/dist/EpSoftware-DrXhtghB.js +0 -4
  105. package/dist/EpSpecificObjective-DkzVo-_m.js +0 -4
  106. package/dist/EpSpinner-BiVucM14.js +0 -4
  107. package/dist/EpSummativeTable-DVtLQjpf.js +0 -4
  108. package/dist/EpSvg-DVeyCNGV.js +0 -4
  109. package/dist/EpTable-DAP3U2IM.js +0 -4
  110. package/dist/EpTerm-CWmO1MSm.js +0 -4
  111. package/dist/EpText-Bae_WkCu.js +0 -4
  112. package/dist/EpTimeLine-DDqdXpu2.js +0 -4
  113. package/dist/EpVideo-BAnZwMS-.js +0 -4
  114. package/dist/EpVideoPanopto-DisxY5fd.js +0 -4
  115. package/dist/EpWordDef-B305lbW7.js +0 -4
  116. package/dist/index-DkIYoQK0.js +0 -19358
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ import { default as EpIntroduction } from './components/educationals/EpIntroduct
24
24
  import { default as EpInstructions } from './components/educationals/EpInstructions.vue';
25
25
  import { default as EpDescription } from './components/educationals/EpDescription.vue';
26
26
  import { default as EpConclusion } from './components/educationals/EpConclusion.vue';
27
+ import { default as EpCodeblock } from './components/educationals/EpCodeblock.vue';
27
28
  import { default as EpAccordeon } from './components/interactions/EpAccordeon.vue';
28
29
  import { default as EpContentSlider } from './components/interactions/EpContentSlider.vue';
29
30
  import { default as EpModal } from './components/interactions/EpModal.vue';
@@ -48,4 +49,4 @@ import { default as EpHeader } from './components/signages/EpHeader.vue';
48
49
  import { default as EpQuote } from './components/signages/EpQuote.vue';
49
50
  import { default as EpSkeleton } from './components/signages/EpSkeleton.vue';
50
51
 
51
- 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 };
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 };
@@ -1,4 +1,4 @@
1
- import { g as V, c as W } from "./EpCodeblock-CZ1tMDQY.js";
1
+ import { a0 as V, a1 as W } from "./index-CjFsNJuq.js";
2
2
  function ee(S, P) {
3
3
  for (var i = 0; i < P.length; i++) {
4
4
  const g = P[i];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "1.0.28",
4
+ "version": "1.0.30",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -20,7 +20,7 @@ const styles = computed(() => {
20
20
  });
21
21
  </script>
22
22
  <template>
23
- <div :class="`${styles} rounded-lg p-4 border border-t-gray-100 border-r-gray-100 border-b-gray-100`">
23
+ <div :class="`${styles} rounded-lg p-4 ml-10 border border-t-gray-100 border-r-gray-100 border-b-gray-100`">
24
24
  <div class="flex flex-nowrap gap-x-4">
25
25
  <div v-if="label" class="flex-none self-center">
26
26
  <div
@@ -9,11 +9,14 @@ import SvgFilter from "../tools/SvgFilter.vue";
9
9
  import EpIcon from "../basics/EpIcon.vue";
10
10
  import EpChip from "../basics/EpChip.vue";
11
11
 
12
+ type Arrangement = "imgBg" | "simple" | "sideBy";
13
+ type Valign = "items-center" | "items-start" | "items-end"
14
+ type Haling = "justify-end" | "justify-center" | "justify-start" | "justify-end"
15
+
12
16
  interface Props {
13
- title?: string | null;
17
+ title: string | null;
14
18
  subtitle?: string | null;
15
19
  icon?: string | null;
16
- color?: string | null;
17
20
  courseCode?: string | null;
18
21
  courseTitle?: string | null;
19
22
  big?: boolean | null;
@@ -27,6 +30,11 @@ interface Props {
27
30
  synchrone?: string;
28
31
  formatif?: string;
29
32
  };
33
+ textBg?: boolean;
34
+ type?: Arrangement;
35
+ titlePosition?: string;
36
+ vAlign?:Valign;
37
+ hAlign?:Haling
30
38
  }
31
39
 
32
40
  // type, taxonomyLevel, courseCode, courseTitle, title, subtitle, height, src, color, synchrone
@@ -34,7 +42,6 @@ interface Props {
34
42
  const props = withDefaults(defineProps<Props>(), {
35
43
  title: null,
36
44
  icon: null,
37
- color: null,
38
45
  src: null,
39
46
  big: false,
40
47
  synchrone: false,
@@ -47,19 +54,25 @@ const props = withDefaults(defineProps<Props>(), {
47
54
  formatif: "Formatif",
48
55
  };
49
56
  },
57
+ textBg: true,
58
+ type: "imgBg",
59
+ titlePosition: "center",
60
+ vAlign:"items-center",
61
+ hAlign:"justify-center"
50
62
  });
51
63
 
52
- const colorText = computed(() => {
53
- return props.color;
54
- });
64
+
65
+
66
+ const bgTextFit = "w-8/12"; // ''
67
+
55
68
 
56
69
  const styles = computed(() => {
57
70
  return `
58
- flex
59
- flex-col
71
+ flex
72
+ flex-col
60
73
  overflow-hidden
61
74
  w-full
62
- absolute
75
+ absolute
63
76
  ${props.big ? "min-h-screen" : "h-96"}
64
77
  bg-cover
65
78
  bg-center`;
@@ -85,8 +98,8 @@ const { title, headerImgColor, big } = toRefs(props);
85
98
 
86
99
  <template>
87
100
  <header
88
- v-if="!hideImg"
89
- :class="`${big ? 'h-screen ' : ''}items-center overflow-hidden relative `"
101
+ v-if="type === 'imgBg'"
102
+ :class="`${big ? 'h-screen ' : 'h-96'} items-center overflow-hidden relative `"
90
103
  ref="el"
91
104
  >
92
105
  <div
@@ -96,17 +109,25 @@ const { title, headerImgColor, big } = toRefs(props);
96
109
 
97
110
  <div :class="`relative ${big ? 'mb-36' : ''} h-full items-end`">
98
111
  <div class="flex md:justify-end justify-center pt-5">
99
- <EpChip v-if="synchrone" :prependIcon="mdiCast">{{ labels.synchrone }}</EpChip>
100
- <EpChip v-if="duration" :prependIcon="mdiTimerOutline"> {{ duration }}</EpChip>
101
- <EpChip v-if="assessment" :prependIcon="mdiChairSchool">{{
112
+ <EpChip v-if="synchrone" :prependIcon="mdiCast" size="small">{{
113
+ labels.synchrone
114
+ }}</EpChip>
115
+ <EpChip v-if="duration" :prependIcon="mdiTimerOutline" size="small">
116
+ {{ duration }}</EpChip
117
+ >
118
+ <EpChip v-if="assessment" :prependIcon="mdiChairSchool" size="small">{{
102
119
  labels.formatif
103
120
  }}</EpChip>
104
121
  </div>
105
- <div class="flex w-full py-24 grow flex h-full items-center">
106
- <div class="mx-auto w-8/12">
122
+ <div :class="`${vAlign} ${hAlign} flex w-full grow h-96 `">
123
+ <div :class="`${bgTextFit}`">
107
124
  <div
108
125
  v-if="title || subtitle"
109
- class="p-4 md:items-center backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded"
126
+ :class="`${
127
+ textBg
128
+ ? 'backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded'
129
+ : ''
130
+ } p-4 md:items-center`"
110
131
  >
111
132
  <div class="text-center md:text-left">
112
133
  <h1 v-if="title" class="text-xl font-medium text-white sm:text-3xl">
@@ -131,9 +152,15 @@ const { title, headerImgColor, big } = toRefs(props);
131
152
  </div>
132
153
  <SvgFilter></SvgFilter>
133
154
  </header>
134
- <header v-else>
135
- <div class="text-center md:text-left mt-16 mb-32">
136
- <h1 v-if="title" class="text-4xl font-bold tracking-tight text-gray-900 dark:text-gray-100">
155
+
156
+ <header v-else-if="type === 'simple'">
157
+ <div
158
+ class="text-center md:text-left mt-16 mb-32"
159
+ >
160
+ <h1
161
+ v-if="title"
162
+ class="text-4xl font-bold tracking-tight text-gray-900 dark:text-gray-100"
163
+ >
137
164
  {{ title }}
138
165
  </h1>
139
166
  <h2 v-if="subtitle" class="w-1/2 mt-4 text-gray-500 dark:text-gray-300">
@@ -141,4 +168,48 @@ const { title, headerImgColor, big } = toRefs(props);
141
168
  </h2>
142
169
  </div>
143
170
  </header>
171
+
172
+ <header v-else="type === 'sideBy'">
173
+ <div class="flex flex-col-reverse lg:flex-row items-stretch">
174
+ <div class="basis-1/2 bg-gray-100 dark:bg-base-dark lg:min-h-48 p-4">
175
+
176
+ <div class="flex justify-start pt-0 mb-4">
177
+ <EpChip v-if="synchrone" :prependIcon="mdiCast" size="small">{{
178
+ labels.synchrone
179
+ }}</EpChip>
180
+ <EpChip v-if="duration" :prependIcon="mdiTimerOutline" size="small">
181
+ {{ duration }}</EpChip
182
+ >
183
+ <EpChip v-if="assessment" :prependIcon="mdiChairSchool" size="small">{{
184
+ labels.formatif
185
+ }}</EpChip>
186
+ </div>
187
+ <div :class="`${vAlign} flex h-full pb-8 max-w-3xl`">
188
+ <div>
189
+ <h1
190
+ v-if="title"
191
+ class="text-4xl sm:text-5xl xl:text-6xl font-bold tracking-tight text-gray-900 dark:text-white"
192
+ >
193
+ {{ title }}
194
+ </h1>
195
+ <p v-if="subtitle" class="mt-4 text-xl text-gray-600 dark:text-white">
196
+ {{ subtitle }}
197
+ </p>
198
+ <div class="mt-4">
199
+ <slot></slot>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </div>
204
+
205
+ <div class="basis-1/2">
206
+ <img
207
+ :src="bgImg"
208
+ alt=""
209
+ class="h-32 lg:h-full size-full object-cover"
210
+ :style="`background-image:url('${bgImg}'); filter:url(#${headerImgColor});`"
211
+ />
212
+ </div>
213
+ </div>
214
+ </header>
144
215
  </template>
@@ -1,4 +0,0 @@
1
- import { Y as f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Z as f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { U as f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { K as f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { o } from "./index-DkIYoQK0.js";
2
- export {
3
- o as default
4
- };
@@ -1,4 +0,0 @@
1
- import { d as f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { e } from "./index-DkIYoQK0.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./index-DkIYoQK0.js";
2
- export {
3
- f as default
4
- };