ep-lib-ts 0.1.36 → 0.1.37

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 (81) hide show
  1. package/dist/{BgAudio-34390318.js → BgAudio-ee6be0f3.js} +1 -1
  2. package/dist/{DisplayBox-b9d4f538.js → DisplayBox-867d56fb.js} +1 -1
  3. package/dist/{EpAlert-8b872ee0.js → EpAlert-e0ad680d.js} +1 -1
  4. package/dist/{EpAudio-b55c5503.js → EpAudio-f9836de7.js} +1 -1
  5. package/dist/EpBadge-4e59ef7c.js +6 -0
  6. package/dist/{EpBarChart-c838e663.js → EpBarChart-84b69362.js} +1 -1
  7. package/dist/EpBtn-5e8f86bf.js +6 -0
  8. package/dist/EpCard-7e3ed4a4.js +6 -0
  9. package/dist/EpChip-dc954589.js +6 -0
  10. package/dist/EpContentSlider-cb03f3e9.js +6 -0
  11. package/dist/EpDivider-7678be0c.js +6 -0
  12. package/dist/{EpEdu-ffa5ecd5.js → EpEdu-582f809e.js} +1 -1
  13. package/dist/EpFlex-f1971347.js +6 -0
  14. package/dist/EpHeader-78726a42.js +6 -0
  15. package/dist/{EpIcon-1971a787.js → EpIcon-d4dc0ecb.js} +1 -1
  16. package/dist/EpIframe-c1e28504.js +6 -0
  17. package/dist/EpImg-c1483410.js +6 -0
  18. package/dist/{EpInput-37eecd07.js → EpInput-afe43604.js} +1 -1
  19. package/dist/EpLineChart-9fc01457.js +6 -0
  20. package/dist/EpLink-4a639047.js +6 -0
  21. package/dist/EpLinkVersion-8200767b.js +6 -0
  22. package/dist/{EpList-ebc2c8e7.js → EpList-2efcfcfb.js} +1 -1
  23. package/dist/EpModal-30b4a013.js +6 -0
  24. package/dist/{EpNothing-4a7ee1ea.js → EpNothing-33d89c4c.js} +1 -1
  25. package/dist/EpPieChart-0059d199.js +6 -0
  26. package/dist/EpQuestion-37e61b97.js +6 -0
  27. package/dist/EpQuote-4d749894.js +6 -0
  28. package/dist/EpRadio-2a23d115.js +6 -0
  29. package/dist/EpReading-3ebe66a8.js +6 -0
  30. package/dist/EpResource-c6ccc660.js +6 -0
  31. package/dist/{EpScope-2753e66a.js → EpScope-44628aad.js} +1 -1
  32. package/dist/EpSection-840524bf.js +6 -0
  33. package/dist/{EpSelect-7b63361a.js → EpSelect-46fcb799.js} +1 -1
  34. package/dist/EpSkeleton-1067e7d2.js +6 -0
  35. package/dist/EpSoftware-7b6c561f.js +6 -0
  36. package/dist/EpSpinner-0e8ac388.js +6 -0
  37. package/dist/EpSvg-cf5106d4.js +6 -0
  38. package/dist/EpTable-639de0ff.js +6 -0
  39. package/dist/EpTerm-28f932c3.js +6 -0
  40. package/dist/EpText-ee0d1c44.js +6 -0
  41. package/dist/EpTimeLine-7b1db15d.js +6 -0
  42. package/dist/EpVideo-36737f59.js +6 -0
  43. package/dist/EpVideoPanopto-c23c232f.js +6 -0
  44. package/dist/components/medias/EpTimeLine.vue.d.ts +4 -3
  45. package/dist/ep-lib-ts.js +1 -1
  46. package/dist/ep-lib-ts.umd.cjs +27 -27
  47. package/dist/{index-89855806.js → index-cdaa9a08.js} +799 -796
  48. package/package.json +1 -1
  49. package/src/components/medias/EpAudio.vue +15 -2
  50. package/src/components/medias/EpTimeLine.vue +5 -4
  51. package/dist/EpBadge-da5ad879.js +0 -6
  52. package/dist/EpBtn-03107df4.js +0 -6
  53. package/dist/EpCard-49eab0aa.js +0 -6
  54. package/dist/EpChip-76ec9a27.js +0 -6
  55. package/dist/EpContentSlider-34a27582.js +0 -6
  56. package/dist/EpDivider-cd17adbe.js +0 -6
  57. package/dist/EpFlex-08861623.js +0 -6
  58. package/dist/EpHeader-da47c69f.js +0 -6
  59. package/dist/EpIframe-21adace5.js +0 -6
  60. package/dist/EpImg-395cd91b.js +0 -6
  61. package/dist/EpLineChart-5667c90a.js +0 -6
  62. package/dist/EpLink-f9080e40.js +0 -6
  63. package/dist/EpLinkVersion-315c54e5.js +0 -6
  64. package/dist/EpModal-0e0acdee.js +0 -6
  65. package/dist/EpPieChart-decc1f6b.js +0 -6
  66. package/dist/EpQuestion-e5d1e392.js +0 -6
  67. package/dist/EpQuote-786c0ac9.js +0 -6
  68. package/dist/EpRadio-2e750e76.js +0 -6
  69. package/dist/EpReading-bd21cf2a.js +0 -6
  70. package/dist/EpResource-fe801ebb.js +0 -6
  71. package/dist/EpSection-40b5e9d2.js +0 -6
  72. package/dist/EpSkeleton-f4663d18.js +0 -6
  73. package/dist/EpSoftware-42aa398d.js +0 -6
  74. package/dist/EpSpinner-dce028db.js +0 -6
  75. package/dist/EpSvg-4b6f8600.js +0 -6
  76. package/dist/EpTable-830782da.js +0 -6
  77. package/dist/EpTerm-b0593ff9.js +0 -6
  78. package/dist/EpText-0f5f67b5.js +0 -6
  79. package/dist/EpTimeLine-e062ea33.js +0 -6
  80. package/dist/EpVideo-99f3eeb8.js +0 -6
  81. package/dist/EpVideoPanopto-fadeff65.js +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.36",
4
+ "version": "0.1.37",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -32,8 +32,21 @@ const props = withDefaults(defineProps<Props>(), {
32
32
  hideIcon: false
33
33
  })
34
34
 
35
+ //regex url panopto udem
36
+ const hasmp4 = /\.mp4\?/
37
+
38
+ const cleanSrc = computed(() => {
39
+ let srcString = props.src
40
+ const isPanopto = hasmp4.test(props.src)
41
+ if(isPanopto){
42
+ srcString = srcString.replace(/\.mp4.*$/, '.mp4')
43
+ }
44
+ return srcString
45
+ })
46
+
47
+
35
48
  const isAudioFormat = computed(() => {
36
- if (props.src.endsWith('.mp3') || props.src.endsWith('.ogg') || props.src.endsWith('.wav')) {
49
+ if (cleanSrc.value.endsWith('.mp3') || cleanSrc.value.endsWith('.mp4') || cleanSrc.value.endsWith('.ogg') || cleanSrc.value.endsWith('.wav')) {
37
50
  return true
38
51
  }
39
52
  return false
@@ -69,7 +82,7 @@ const { src, title, hideIcon, mandateLevel } = toRefs(props)
69
82
  <template #content>
70
83
  <div class="max-w-screen-sm mx-auto">
71
84
  <BgAudio :fill="bgColor"></BgAudio>
72
- <audio v-if="isAudioFormat" ref="video" controls :src="src" controlsList="nodownload"></audio>
85
+ <audio v-if="isAudioFormat" ref="video" controls :src="cleanSrc" controlsList="nodownload"></audio>
73
86
  <EpAlert type="error" outlined v-else>
74
87
  <p>{{ messageError }}</p>
75
88
  </EpAlert>
@@ -8,8 +8,9 @@ import { mdiCheckboxBlankCircleOutline } from '@mdi/js';
8
8
  import { mdiCheckboxMarkedCircle } from '@mdi/js';
9
9
 
10
10
  interface TimelineHeading {
11
- title?: {
12
- text?: HeadTimeLine
11
+ text:{
12
+ text: string
13
+ headline: string
13
14
  }
14
15
  }
15
16
 
@@ -72,8 +73,8 @@ const { title } = toRefs(props)
72
73
  <!-- component -->
73
74
  <div>
74
75
  <div class="w-10/12 mx-auto relative">
75
- <h3 class="text-2xl mb-2">{{ title?.title?.text?.headline }}</h3>
76
- <p>{{ title?.title?.text?.text }}</p>
76
+ <h3 class="text-2xl mb-2">{{ title?.text.headline }}</h3>
77
+ <p>{{ title?.text.text}}</p>
77
78
  <div class="my-4 px-2">
78
79
  <template v-for="tag in timeLineTags" :key="tag.id">
79
80
  <span @click="toggleActive(tag)"
@@ -1,6 +0,0 @@
1
- import { c as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { d as o } from "./index-89855806.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-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { f as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { w as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { g as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { h as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { J as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { A as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { j as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { p as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { B as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { C as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { x as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { q as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { y as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { K as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { v as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { b as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { s as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { k as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { L as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { D as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { l as o } from "./index-89855806.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-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { m as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { _ as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { n as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { F as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { G as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };
@@ -1,6 +0,0 @@
1
- import { H as o } from "./index-89855806.js";
2
- import "vue";
3
- import "vue-router";
4
- export {
5
- o as default
6
- };