ep-lib-ts 0.1.43 → 1.0.0

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 (166) hide show
  1. package/package.json +25 -29
  2. package/src/components/charts/EpBarChart.vue +3 -3
  3. package/src/components/charts/EpLineChart.vue +3 -3
  4. package/src/components/charts/EpPieChart.vue +1 -0
  5. package/src/components/interactions/EpDarkmode.vue +48 -0
  6. package/src/components/interactions/EpSummativeTable.vue +1 -1
  7. package/src/components/medias/EpLink.vue +30 -13
  8. package/src/components/medias/EpVideoPanopto.vue +10 -1
  9. package/.vscode/extensions.json +0 -3
  10. package/dist/BgAudio-9074bf47.js +0 -6
  11. package/dist/DisplayBox-e2f9c14b.js +0 -6
  12. package/dist/EpAlert-98a8913b.js +0 -6
  13. package/dist/EpAudio-8bca3f8b.js +0 -6
  14. package/dist/EpAvatar-1e55fdc7.js +0 -50
  15. package/dist/EpBadge-aa69b61f.js +0 -6
  16. package/dist/EpBadge-f5faab43.js +0 -55
  17. package/dist/EpBarChart-89719705.js +0 -6
  18. package/dist/EpBtn-94de00aa.js +0 -6
  19. package/dist/EpCard-d31b9544.js +0 -6
  20. package/dist/EpCheckbox-b4696548.js +0 -41
  21. package/dist/EpChip-b1c3761b.js +0 -6
  22. package/dist/EpCodeblock-f5d4bbd7.js +0 -1467
  23. package/dist/EpContentSlider-8b95883d.js +0 -6
  24. package/dist/EpDivider-717cb204.js +0 -6
  25. package/dist/EpEdu-1d62ac0f.js +0 -6
  26. package/dist/EpFlex-4931d64b.js +0 -6
  27. package/dist/EpHeader-bf8e2580.js +0 -6
  28. package/dist/EpHotsPot-f4deb558.js +0 -56
  29. package/dist/EpHover-073dc31c.js +0 -32
  30. package/dist/EpIcon-e311fbad.js +0 -6
  31. package/dist/EpIframe-d9f071a1.js +0 -6
  32. package/dist/EpImg-69c0feaf.js +0 -6
  33. package/dist/EpInput-867e4d4d.js +0 -1172
  34. package/dist/EpLineChart-0954dd9c.js +0 -6
  35. package/dist/EpLink-d3b39f02.js +0 -6
  36. package/dist/EpLinkVersion-b760bbd8.js +0 -6
  37. package/dist/EpList-8a3621c1.js +0 -13
  38. package/dist/EpListitem-aa4a0f95.js +0 -37
  39. package/dist/EpModal-5f7b55e3.js +0 -6
  40. package/dist/EpNothing-ad160acf.js +0 -11
  41. package/dist/EpPieChart-b4ace5f7.js +0 -6
  42. package/dist/EpQuestion-15d6c264.js +0 -6
  43. package/dist/EpQuote-2f8b0fd5.js +0 -6
  44. package/dist/EpRadio-53ea7ddf.js +0 -6
  45. package/dist/EpRadioSummative-e834a5da.js +0 -6
  46. package/dist/EpReading-6d3adc21.js +0 -6
  47. package/dist/EpResource-730effb3.js +0 -6
  48. package/dist/EpScope-9fa20a62.js +0 -6
  49. package/dist/EpSection-7a940784.js +0 -6
  50. package/dist/EpSelect-2b3b90bf.js +0 -32
  51. package/dist/EpSkeleton-579dd745.js +0 -6
  52. package/dist/EpSoftware-705be204.js +0 -6
  53. package/dist/EpSpinner-34dd8e0e.js +0 -6
  54. package/dist/EpSummativeTable-4765167a.js +0 -6
  55. package/dist/EpSvg-c3fcd0c2.js +0 -6
  56. package/dist/EpSwitch-778610f4.js +0 -64
  57. package/dist/EpTable-5c9216b8.js +0 -6
  58. package/dist/EpTerm-507bdfb9.js +0 -6
  59. package/dist/EpText-1915cfeb.js +0 -6
  60. package/dist/EpTextarea-67f751e9.js +0 -41
  61. package/dist/EpTimeLine-73c0ce36.js +0 -6
  62. package/dist/EpToggle-79231e19.js +0 -44
  63. package/dist/EpTooltip-05e1d8fe.js +0 -99
  64. package/dist/EpVideo-1d6e8d50.js +0 -6
  65. package/dist/EpVideoPanopto-4cb0d51e.js +0 -6
  66. package/dist/EpWordDef-6bc37d76.js +0 -6
  67. package/dist/components/basics/EpAvatar.vue.d.ts +0 -51
  68. package/dist/components/basics/EpBadge.vue.d.ts +0 -37
  69. package/dist/components/basics/EpBtn.vue.d.ts +0 -68
  70. package/dist/components/basics/EpCard.vue.d.ts +0 -70
  71. package/dist/components/basics/EpChip.vue.d.ts +0 -57
  72. package/dist/components/basics/EpDivider.vue.d.ts +0 -45
  73. package/dist/components/basics/EpFlex.vue.d.ts +0 -9
  74. package/dist/components/basics/EpHover.vue.d.ts +0 -49
  75. package/dist/components/basics/EpIcon.vue.d.ts +0 -34
  76. package/dist/components/basics/EpImg.vue.d.ts +0 -51
  77. package/dist/components/basics/EpList.vue.d.ts +0 -9
  78. package/dist/components/basics/EpListitem.vue.d.ts +0 -43
  79. package/dist/components/basics/EpSection.vue.d.ts +0 -50
  80. package/dist/components/basics/EpSpinner.vue.d.ts +0 -40
  81. package/dist/components/basics/EpTable.vue.d.ts +0 -24
  82. package/dist/components/basics/EpText.vue.d.ts +0 -31
  83. package/dist/components/charts/EpBarChart.vue.d.ts +0 -52
  84. package/dist/components/charts/EpLineChart.vue.d.ts +0 -52
  85. package/dist/components/charts/EpPieChart.vue.d.ts +0 -56
  86. package/dist/components/educationals/EpCodeblock.vue.d.ts +0 -42
  87. package/dist/components/educationals/EpEdu.vue.d.ts +0 -56
  88. package/dist/components/educationals/EpReading.vue.d.ts +0 -77
  89. package/dist/components/educationals/EpResource.vue.d.ts +0 -33
  90. package/dist/components/educationals/EpScope.vue.d.ts +0 -32
  91. package/dist/components/forms/EpCheckbox.vue.d.ts +0 -52
  92. package/dist/components/forms/EpInput.vue.d.ts +0 -65
  93. package/dist/components/forms/EpRadio.vue.d.ts +0 -56
  94. package/dist/components/forms/EpRadioSummative.vue.d.ts +0 -56
  95. package/dist/components/forms/EpSelect.vue.d.ts +0 -57
  96. package/dist/components/forms/EpSwitch.vue.d.ts +0 -57
  97. package/dist/components/forms/EpTextarea.vue.d.ts +0 -64
  98. package/dist/components/forms/EpToggle.vue.d.ts +0 -60
  99. package/dist/components/interactions/EpAccordeon.vue.d.ts +0 -49
  100. package/dist/components/interactions/EpContentSlider.vue.d.ts +0 -23
  101. package/dist/components/interactions/EpHotsPot.vue.d.ts +0 -32
  102. package/dist/components/interactions/EpModal.vue.d.ts +0 -65
  103. package/dist/components/interactions/EpQuestion.vue.d.ts +0 -52
  104. package/dist/components/interactions/EpSummativeTable.vue.d.ts +0 -24
  105. package/dist/components/interactions/EpTabs.vue.d.ts +0 -2
  106. package/dist/components/interactions/EpTooltip.vue.d.ts +0 -48
  107. package/dist/components/medias/EpAudio.vue.d.ts +0 -47
  108. package/dist/components/medias/EpCarousel.vue.d.ts +0 -43
  109. package/dist/components/medias/EpIframe.vue.d.ts +0 -41
  110. package/dist/components/medias/EpKatex.vue.d.ts +0 -35
  111. package/dist/components/medias/EpLink.vue.d.ts +0 -47
  112. package/dist/components/medias/EpLinkVersion.vue.d.ts +0 -37
  113. package/dist/components/medias/EpSoftware.vue.d.ts +0 -54
  114. package/dist/components/medias/EpSvg.vue.d.ts +0 -35
  115. package/dist/components/medias/EpTerm.vue.d.ts +0 -54
  116. package/dist/components/medias/EpTimeLine.vue.d.ts +0 -31
  117. package/dist/components/medias/EpVideo.vue.d.ts +0 -43
  118. package/dist/components/medias/EpVideoPanopto.vue.d.ts +0 -43
  119. package/dist/components/medias/EpWordDef.vue.d.ts +0 -27
  120. package/dist/components/signages/EpAlert.vue.d.ts +0 -55
  121. package/dist/components/signages/EpBadge.vue.d.ts +0 -56
  122. package/dist/components/signages/EpHeader.vue.d.ts +0 -64
  123. package/dist/components/signages/EpNothing.vue.d.ts +0 -2
  124. package/dist/components/signages/EpQuote.vue.d.ts +0 -47
  125. package/dist/components/signages/EpSkeleton.vue.d.ts +0 -41
  126. package/dist/components/tools/BgAudio.vue.d.ts +0 -29
  127. package/dist/components/tools/DisplayBox.vue.d.ts +0 -17
  128. package/dist/components/tools/SvgFilter.vue.d.ts +0 -2
  129. package/dist/components/tools/TimelineItem.vue.d.ts +0 -37
  130. package/dist/composables/isHtml.d.ts +0 -1
  131. package/dist/composables/useColors.d.ts +0 -1
  132. package/dist/composables/useComponent.d.ts +0 -6
  133. package/dist/composables/useIcons.d.ts +0 -26
  134. package/dist/composables/useMarkdown.d.ts +0 -1
  135. package/dist/composables/useRenderText.d.ts +0 -1
  136. package/dist/ep-lib-ts.js +0 -47
  137. package/dist/ep-lib-ts.umd.cjs +0 -407
  138. package/dist/index-96f36524.js +0 -47690
  139. package/dist/index-a3ad71e0.js +0 -19711
  140. package/dist/index.d.ts +0 -43
  141. package/dist/main.d.ts +0 -0
  142. package/dist/prism-04608307.js +0 -1182
  143. package/dist/router.d.ts +0 -2
  144. package/dist/style.css +0 -1
  145. package/dist/types/Accordeon.d.ts +0 -47
  146. package/dist/types/Alert.d.ts +0 -35
  147. package/dist/types/Answer.d.ts +0 -15
  148. package/dist/types/Avatar.d.ts +0 -18
  149. package/dist/types/Badge.d.ts +0 -23
  150. package/dist/types/Border.d.ts +0 -2
  151. package/dist/types/Btn.d.ts +0 -41
  152. package/dist/types/Card.d.ts +0 -6
  153. package/dist/types/Chip.d.ts +0 -41
  154. package/dist/types/Codeblock.d.ts +0 -223
  155. package/dist/types/GlossaryEntry.d.ts +0 -10
  156. package/dist/types/Image.d.ts +0 -6
  157. package/dist/types/MandateLevel.d.ts +0 -5
  158. package/dist/types/MediaCarousel.d.ts +0 -7
  159. package/dist/types/Medias.d.ts +0 -11
  160. package/dist/types/Radio.d.ts +0 -11
  161. package/dist/types/Slides.d.ts +0 -15
  162. package/dist/types/SummativeTable.d.ts +0 -10
  163. package/dist/types/Switch.d.ts +0 -11
  164. package/dist/types/TimeLine.d.ts +0 -124
  165. package/dist/types/Tooltip.d.ts +0 -75
  166. package/dist/vite.svg +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.43",
4
+ "version": "1.0.0",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -26,41 +26,37 @@
26
26
  "preview": "vite preview"
27
27
  },
28
28
  "dependencies": {
29
- "@highlightjs/vue-plugin": "^2.1.0",
30
- "@mdi/js": "^7.1.96",
31
- "@vueuse/core": "^10.1.2",
32
- "@wdns/vue-code-block": "^2.3.1",
33
- "apexcharts": "^3.41.1",
34
- "highlight.js": "^11.9.0",
35
- "katex": "^0.16.8",
36
- "markdown-it": "^13.0.1",
37
- "postcss-cli": "^10.1.0",
38
- "vee-validate": "^4.8.6",
39
- "vue": "^3.2.45",
40
- "vue-router": "^4.1.6",
41
- "vue3-apexcharts": "^1.4.4",
42
- "vue3-highlightjs": "^1.0.5"
29
+ "@mdi/js": "^7.4.47",
30
+ "@vueuse/core": "^10.9.0",
31
+ "@wdns/vue-code-block": "^2.3.2",
32
+ "apexcharts": "^3.49.0",
33
+ "katex": "^0.16.10",
34
+ "markdown-it": "^14.1.0",
35
+ "postcss-cli": "^11.0.0",
36
+ "vee-validate": "^4.12.6",
37
+ "vue": "^3.4.25",
38
+ "vue-router": "^4.3.2",
39
+ "vue3-apexcharts": "^1.5.2"
43
40
  },
44
41
  "devDependencies": {
45
- "@tailwindcss/forms": "^0.5.3",
46
- "@types/katex": "^0.16.2",
47
- "@types/markdown-it": "^12.2.3",
48
- "@types/node": "^20.4.9",
49
- "@vitejs/plugin-vue": "^4.0.0",
50
- "autoprefixer": "^10.4.14",
42
+ "@tailwindcss/forms": "^0.5.7",
43
+ "@types/katex": "^0.16.7",
44
+ "@types/markdown-it": "^14.0.1",
45
+ "@types/node": "^20.12.7",
46
+ "@vitejs/plugin-vue": "^5.0.4",
47
+ "autoprefixer": "^10.4.19",
51
48
  "path": "^0.12.7",
52
- "postcss": "^8.4.27",
53
- "shikiji": "^0.9.11",
54
- "tailwindcss": "^3.3.3",
55
- "typescript": "^5.2.0-dev.20230801",
56
- "vite": "^4.1.0",
57
- "vite-plugin-dts": "^3.5.2",
58
- "vue-tsc": "^1.8.27"
49
+ "postcss": "^8.4.38",
50
+ "tailwindcss": "^3.4.3",
51
+ "typescript": "^5.4.5",
52
+ "vite": "^5.2.10",
53
+ "vite-plugin-dts": "^3.9.0",
54
+ "vue-tsc": "^2.0.14"
59
55
  },
60
56
  "peerDependencies": {
61
57
  "vue": "^3.2.45"
62
58
  },
63
59
  "engines": {
64
- "node": "18.x.x"
60
+ "node": "20.x.x"
65
61
  }
66
62
  }
@@ -16,8 +16,8 @@ interface Options {
16
16
  xaxis: {
17
17
  categories: (number | string)[];
18
18
  convertedCatToNumeric?: boolean;
19
- }
20
-
19
+ }
20
+ colors?:string[];
21
21
  }
22
22
 
23
23
  interface Props {
@@ -31,7 +31,7 @@ interface Props {
31
31
  type?: MediaVariants;
32
32
  mandateLevel?: string | null;
33
33
  source?:string;
34
- width?:string
34
+ width?:string;
35
35
  }
36
36
 
37
37
  const props = withDefaults(defineProps<Props>(), {
@@ -15,8 +15,8 @@ interface Options {
15
15
  xaxis: {
16
16
  categories: (number | string)[];
17
17
  convertedCatToNumeric?: boolean;
18
- }
19
-
18
+ },
19
+ colors?:string[]
20
20
  }
21
21
 
22
22
  interface Props {
@@ -30,7 +30,7 @@ interface Props {
30
30
  type?: MediaVariants;
31
31
  mandateLevel?: string | null;
32
32
  source?: string;
33
- width?:string
33
+ width?:string;
34
34
  }
35
35
 
36
36
  const props = withDefaults(defineProps<Props>(), {
@@ -18,6 +18,7 @@ interface OptionsPieChart {
18
18
  }
19
19
  title:TitlePie;
20
20
  labels:string[];
21
+ colors?:string[];
21
22
  }
22
23
 
23
24
 
@@ -0,0 +1,48 @@
1
+ <template>
2
+ <button @click="toggleTheme">
3
+ <span v-if="userTheme === 'dark'">
4
+ ☀️
5
+ </span>
6
+ <span v-if="userTheme === 'light'">
7
+ 🌙
8
+ </span>
9
+ </button>
10
+ </template>
11
+
12
+ <script setup lang="ts">
13
+ import { ref, onMounted } from 'vue';
14
+
15
+ export type UserTheme = 'light' | 'dark';
16
+
17
+ const setTheme = (theme: UserTheme) => {
18
+ localStorage.setItem('user-theme', theme);
19
+ userTheme.value = theme;
20
+ document.documentElement.className = theme;
21
+ };
22
+
23
+ const getTheme = (): UserTheme => {
24
+ return localStorage.getItem('user-theme') as UserTheme;
25
+ };
26
+
27
+ const toggleTheme = (): void => {
28
+ const activeTheme = localStorage.getItem('user-theme');
29
+ if (activeTheme === 'light') {
30
+ setTheme('dark');
31
+ } else {
32
+ setTheme('light');
33
+ }
34
+ };
35
+
36
+ const getMediaPreference = (): UserTheme => {
37
+ const hasDarkPreference = window.matchMedia('(prefers-color-scheme: dark)').matches;
38
+ if (hasDarkPreference) {
39
+ return 'dark';
40
+ } else {
41
+ return 'light';
42
+ }
43
+ };
44
+
45
+ const userTheme = ref<UserTheme>(getTheme() || getMediaPreference());
46
+
47
+ onMounted(() => setTheme(userTheme.value));
48
+ </script>
@@ -35,7 +35,7 @@ const transformNumber = (value:string|number) => {
35
35
  <div class="mt-4 bg-gray-50 p-4">
36
36
  <h4 v-if="title" class="text-xl font-semibold mb-6">{{ title }}</h4>
37
37
  <template v-for="(question,i) in questions" :key="`item-question-${i}`">
38
- <p class=" text-gray-600 py-2 rounded">{{question.question}}</p>
38
+ <p class=" text-gray-600 py-2 rounded">{{question.label}}</p>
39
39
  <div class="flex flex-row flex-wrap gap-y-2 sm:gap-x-4">
40
40
  <template v-for="(_option, j) in question.options" :key="`option-question-${j}`">
41
41
  <EpRadioSummative
@@ -2,14 +2,13 @@
2
2
  import { computed, toRefs } from "vue";
3
3
  //types with capital letter, object styles in lowercase
4
4
  import { MediaVariants } from "../../types/Medias";
5
- import { MandateLevel } from '../../types/MandateLevel';
5
+ import { MandateLevel } from "../../types/MandateLevel";
6
6
  import EpBtn from "../basics/EpBtn.vue";
7
7
  import { mdiLinkVariant } from "@mdi/js";
8
8
  import EpEdu from "../educationals/EpEdu.vue";
9
9
  import useColors from "../../composables/useColors";
10
10
  import { useRenderText } from "../../composables/useRenderText";
11
11
 
12
-
13
12
  interface Props {
14
13
  url: string;
15
14
  title?: string;
@@ -26,36 +25,54 @@ const props = withDefaults(defineProps<Props>(), {
26
25
  labelIntentions: "Intentions d'écoute",
27
26
  type: "primary",
28
27
  hideIcon: false,
29
- intentions: ""
28
+ intentions: "",
30
29
  });
31
30
 
32
31
  const renderIcon = computed(() => {
33
32
  if (props.icon) {
34
- return props.icon
33
+ return props.icon;
35
34
  }
36
- return mdiLinkVariant
37
- })
35
+ return mdiLinkVariant;
36
+ });
38
37
 
39
38
  const hoverColor = computed(() => {
40
- return `absolute ${useColors('bg', props.type + 'light')} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`
41
- })
39
+ return `absolute ${useColors(
40
+ "bg",
41
+ props.type + "light"
42
+ )} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`;
43
+ });
42
44
 
43
45
  const { url, title, intentions, mandateLevel, hideIcon } = toRefs(props);
44
46
  </script>
45
47
 
46
48
  <template>
47
- <EpEdu :title="labelCard" :icon="renderIcon" flat :type="type" :hideIcon="hideIcon" :mandateLevel="mandateLevel">
49
+ <EpEdu
50
+ :title="labelCard"
51
+ :icon="renderIcon"
52
+ flat
53
+ :type="type"
54
+ :hideIcon="hideIcon"
55
+ :mandateLevel="mandateLevel"
56
+ >
48
57
  <template #intentions v-if="useRenderText(intentions)">
49
58
  <div v-html="useRenderText(intentions)"></div>
50
59
  </template>
51
60
  <template #content>
52
61
  <div class="flex justify-center">
53
62
  <div class="w-4/5">
54
- <EpBtn block :color="type === 'base' ? 'text-black' : 'text-white'" rounded :type="type" :prependIcon="renderIcon"
63
+ <EpBtn
64
+ block
65
+ :color="type === 'base' ? 'text-black' : 'text-white'"
66
+ rounded
67
+ :type="type"
68
+ :prependIcon="renderIcon"
55
69
  :href="url"
56
- extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out ">
57
- <span class="font-medium tracking-wider ">{{ title }}</span>
58
- <span :class='hoverColor'></span>
70
+ extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "
71
+ >
72
+ <div>
73
+ <span class="font-medium tracking-wider">{{ title }}</span>
74
+ <span :class="hoverColor"></span>
75
+ </div>
59
76
  </EpBtn>
60
77
  </div>
61
78
  </div>
@@ -18,6 +18,7 @@ interface Props{
18
18
  labelIntentions?:string;
19
19
  type?:MediaVariants;
20
20
  hideIcon?:boolean;
21
+ big?:boolean;
21
22
  }
22
23
 
23
24
  const props = withDefaults(defineProps<Props>(),{
@@ -41,6 +42,13 @@ const renderText = computed(()=>{
41
42
  //controls
42
43
  //const controls = useMediaControls(video, {src:props.src})
43
44
 
45
+ const sizeVideo = computed(()=> {
46
+ if(props.big){
47
+ return "700"
48
+ }
49
+ return "360"
50
+ })
51
+
44
52
  const {src, title, hideIcon, type} = toRefs(props)
45
53
 
46
54
  </script>
@@ -53,7 +61,8 @@ const {src, title, hideIcon, type} = toRefs(props)
53
61
  </template>
54
62
  <template #content>
55
63
  <div class="max-w-screen-sm mx-auto">
56
- <iframe :src="src" width="100%" height="360" frameborder="0" allowfullscreen></iframe>
64
+ <iframe :src="src" width="100%" :height="sizeVideo" frameborder="0" allowfullscreen></iframe>
65
+
57
66
  </div>
58
67
  </template>
59
68
  <!-- <template #actions>
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3
- }
@@ -1,6 +0,0 @@
1
- import { S as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { T as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { O as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { E as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,50 +0,0 @@
1
- import { defineComponent as x, computed as t, openBlock as r, createElementBlock as n, createElementVNode as s, normalizeClass as o, toDisplayString as f, createCommentVNode as h } from "vue";
2
- const p = {
3
- circle: {
4
- small: " rounded-full w-12 h-12 text-5xl ",
5
- middle: "rounded-full w-14 h-14 text-6xl",
6
- big: "rounded-full w-16 h-16 text-7xl"
7
- },
8
- square: {
9
- small: "w-12 h-12 text-5xl",
10
- middle: "w-14 h-14 text-6xl",
11
- big: "w-16 h-16 text-7xl"
12
- },
13
- rounded: {
14
- small: "rounded w-12 h-12 text-5xl",
15
- middle: "rounded w-14 h-14 text-6xl",
16
- big: "rounded w-16 h-16 text-7xl"
17
- }
18
- }, v = { key: 0 }, _ = ["src", "alt"], w = { key: 1 }, b = /* @__PURE__ */ x({
19
- __name: "EpAvatar",
20
- props: {
21
- src: { default: "" },
22
- alt: { default: "" },
23
- color: { default: "primary" },
24
- size: { default: "small" },
25
- variant: { default: "circle" },
26
- name: { default: "" }
27
- },
28
- setup(c) {
29
- const e = c, d = t(() => e.variant), u = t(() => e.size), a = t(() => {
30
- var l;
31
- return `${(l = p[d.value]) == null ? void 0 : l[u.value]}`;
32
- }), i = t(() => " bg-" + e.color), m = t(() => e.name.length > 2 ? e.name.slice(0, 2) : e.name);
33
- return (l, g) => (r(), n("div", null, [
34
- e.src != "" ? (r(), n("div", v, [
35
- s("img", {
36
- src: e.src,
37
- alt: e.alt,
38
- class: o(`${a.value} `)
39
- }, null, 10, _)
40
- ])) : e.src == "" ? (r(), n("div", w, [
41
- s("div", {
42
- class: o(`${a.value} ${i.value} justify-center font-bold text-white flex items-center`)
43
- }, f(m.value), 3)
44
- ])) : h("", !0)
45
- ]));
46
- }
47
- });
48
- export {
49
- b as default
50
- };
@@ -1,6 +0,0 @@
1
- import { c as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as u, computed as t, openBlock as f, createElementBlock as s, renderSlot as b, createElementVNode as c, normalizeClass as h, toDisplayString as m } from "vue";
2
- const x = {
3
- top_left: {
4
- default: "-top-2 -left-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
5
- dot: "-top-2 -left-2 absolute inline-flex items-center justify-center w-4 h-4 border-2 border-white rounded-full dark:border-gray-900",
6
- hide: ""
7
- },
8
- top_right: {
9
- default: "-top-2 -right-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
10
- dot: "-top-2 -right-2 absolute inline-flex items-center justify-center w-4 h-4 font-bold font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
11
- hide: ""
12
- },
13
- bottom_left: {
14
- default: "-bottom-2 -left-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
15
- dot: "-bottom-2 -left-2 absolute inline-flex items-center justify-center w-4 h-4 font-bold border-2 border-white rounded-full dark:border-gray-900",
16
- hide: ""
17
- },
18
- bottom_right: {
19
- default: "-bottom-2 -right-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
20
- dot: "-bottom-2 -right-2 absolute inline-flex items-center justify-center w-4 h-4 font-bold border-2 border-white rounded-full dark:border-gray-900",
21
- hide: ""
22
- }
23
- }, p = { class: "group relative w-max" }, w = /* @__PURE__ */ u({
24
- __name: "EpBadge",
25
- props: {
26
- content: {},
27
- mode: { default: "default" },
28
- placement: { default: "top_right" },
29
- visibility: { default: "true" },
30
- color: { default: "primary" },
31
- maxValue: { default: 0 }
32
- },
33
- setup(o) {
34
- const e = o, l = t(() => e.placement), n = t(() => {
35
- if (e.mode == "dot")
36
- return "";
37
- if (e.visibility == "false")
38
- return "";
39
- if (e.content != 0)
40
- return e.content > e.maxValue && e.maxValue != 0 ? e.maxValue + "+" : e.content;
41
- }), d = t(() => e.visibility == "true" ? e.mode : "hide"), i = t(() => "bg-" + e.color), a = t(() => {
42
- var r;
43
- return `${(r = x[l.value]) == null ? void 0 : r[d.value]}`;
44
- });
45
- return (r, y) => (f(), s("div", p, [
46
- b(r.$slots, "default"),
47
- c("div", {
48
- class: h(`${a.value} ${i.value}`)
49
- }, m(n.value), 3)
50
- ]));
51
- }
52
- });
53
- export {
54
- w as default
55
- };
@@ -1,6 +0,0 @@
1
- import { o as m } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- m as default
6
- };
@@ -1,6 +0,0 @@
1
- import { d as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { e as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as y, computed as b, toRefs as g, openBlock as x, createElementBlock as v, withDirectives as _, createElementVNode as d, unref as e, vModelCheckbox as h, toDisplayString as k } from "vue";
2
- const V = { class: "cursor-pointer flex items-center rounded-md py-3 px-3 text-xs font-semibold uppercase sm:flex-1 hover:bg-gray-200" }, B = ["id", "value", "disabled", "readonly"], C = { class: "ml-2" }, D = /* @__PURE__ */ y({
3
- __name: "EpCheckbox",
4
- props: {
5
- id: { default: "0" },
6
- label: { default: "check" },
7
- modelValue: { type: [String, Array, Boolean], default: "" },
8
- disabled: { type: Boolean, default: !1 },
9
- readonly: { type: Boolean, default: !1 },
10
- value: { default: void 0 }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(r, { emit: s }) {
14
- const o = r, n = s, t = b({
15
- get() {
16
- return o.modelValue;
17
- },
18
- set(a) {
19
- n("update:modelValue", a);
20
- }
21
- }), { id: u, label: i, disabled: c, readonly: p, value: m } = g(o);
22
- return (a, l) => (x(), v("label", V, [
23
- _(d("input", {
24
- type: "checkbox",
25
- id: e(u),
26
- "onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
27
- value: e(m),
28
- disabled: e(c),
29
- readonly: e(p),
30
- name: "notification-method",
31
- class: "rounded bg-gray-200 border-gray-300 focus:border-transparent focus:bg-gray-200 text-primary focus:ring-1 focus:ring-offset-2 focus:ring-primary"
32
- }, null, 8, B), [
33
- [h, t.value]
34
- ]),
35
- d("span", C, k(e(i)), 1)
36
- ]));
37
- }
38
- });
39
- export {
40
- D as default
41
- };
@@ -1,6 +0,0 @@
1
- import { f as o } from "./index-a3ad71e0.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };