ep-lib-ts 0.1.27 → 0.1.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 (95) hide show
  1. package/dist/BgAudio-820c0a39.js +5 -0
  2. package/dist/DisplayBox-05ba8755.js +5 -0
  3. package/dist/EpAlert-f32ad986.js +5 -0
  4. package/dist/EpAudio-80dbaf40.js +5 -0
  5. package/dist/EpBadge-cb67d4b1.js +5 -0
  6. package/dist/EpBarChart-710b4ff4.js +5 -0
  7. package/dist/EpBtn-5c939189.js +5 -0
  8. package/dist/EpCard-3c75fd57.js +5 -0
  9. package/dist/{EpChip-2fc73c23.js → EpChip-75b64fd5.js} +1 -1
  10. package/dist/EpContentSlider-5f4ed454.js +5 -0
  11. package/dist/EpDivider-05f71886.js +5 -0
  12. package/dist/EpEdu-b7e92524.js +5 -0
  13. package/dist/EpFlex-f7103829.js +5 -0
  14. package/dist/EpHeader-564a55a0.js +5 -0
  15. package/dist/{EpIcon-ff5233d3.js → EpIcon-5c184634.js} +1 -1
  16. package/dist/EpIframe-e47cdf06.js +5 -0
  17. package/dist/EpImg-4ac885e3.js +5 -0
  18. package/dist/{EpInput-38a116e8.js → EpInput-81ae2a5e.js} +1 -1
  19. package/dist/EpLineChart-468b3ed7.js +5 -0
  20. package/dist/EpLink-9f599e06.js +5 -0
  21. package/dist/EpLinkVersion-9a5026a6.js +5 -0
  22. package/dist/EpModal-8208c45a.js +5 -0
  23. package/dist/{EpNothing-0c1161b5.js → EpNothing-2c04e40e.js} +1 -1
  24. package/dist/EpPieChart-0b7f0752.js +5 -0
  25. package/dist/EpQuestion-f5c0082f.js +5 -0
  26. package/dist/EpQuote-c51e2778.js +5 -0
  27. package/dist/EpRadio-edd52b6b.js +5 -0
  28. package/dist/EpReading-19d5e14b.js +5 -0
  29. package/dist/EpResource-d05a5a4a.js +5 -0
  30. package/dist/EpScope-e4c2d014.js +5 -0
  31. package/dist/EpSection-97392b3b.js +5 -0
  32. package/dist/{EpSelect-54dc2caf.js → EpSelect-0bc80667.js} +1 -1
  33. package/dist/EpSkeleton-9542d360.js +10 -0
  34. package/dist/EpSoftware-3c6dce6e.js +5 -0
  35. package/dist/EpSpinner-d47f52b4.js +5 -0
  36. package/dist/EpSvg-c08f08c7.js +5 -0
  37. package/dist/EpTable-15f79011.js +5 -0
  38. package/dist/EpTerm-892a5db3.js +5 -0
  39. package/dist/EpText-466d34a5.js +5 -0
  40. package/dist/EpTimeLine-7c0f2078.js +5 -0
  41. package/dist/EpVideo-ddedb1ac.js +5 -0
  42. package/dist/EpVideoPanopto-2d7bdf5f.js +5 -0
  43. package/dist/components/interactions/EpAccordeon.vue.d.ts +3 -3
  44. package/dist/components/medias/EpTerm.vue.d.ts +0 -9
  45. package/dist/components/signages/EpAlert.vue.d.ts +3 -3
  46. package/dist/components/signages/EpSkeleton.vue.d.ts +2 -0
  47. package/dist/composables/useIcons.d.ts +3 -0
  48. package/dist/ep-lib-ts.js +1 -1
  49. package/dist/ep-lib-ts.umd.cjs +36 -32
  50. package/dist/{index-8ba6a808.js → index-78ac7d74.js} +4556 -4518
  51. package/dist/types/Accordeon.d.ts +4 -0
  52. package/dist/types/Alert.d.ts +4 -0
  53. package/package.json +1 -1
  54. package/src/components/basics/EpText.vue +4 -5
  55. package/src/components/interactions/EpContentSlider.vue +3 -2
  56. package/src/components/medias/EpSvg.vue +1 -1
  57. package/src/components/medias/EpTerm.vue +29 -21
  58. package/src/components/medias/EpTimeLine.vue +1 -1
  59. package/src/components/signages/EpSkeleton.vue +17 -0
  60. package/dist/BgAudio-0d3e1906.js +0 -5
  61. package/dist/DisplayBox-e24b0716.js +0 -5
  62. package/dist/EpAlert-127a5ec0.js +0 -5
  63. package/dist/EpAudio-232093fb.js +0 -5
  64. package/dist/EpBadge-3b2b1b16.js +0 -5
  65. package/dist/EpBarChart-c85cf146.js +0 -5
  66. package/dist/EpBtn-6a6aa737.js +0 -5
  67. package/dist/EpCard-bc9eea67.js +0 -5
  68. package/dist/EpContentSlider-c3f223dc.js +0 -5
  69. package/dist/EpDivider-85308a54.js +0 -5
  70. package/dist/EpEdu-226108fc.js +0 -5
  71. package/dist/EpFlex-58da2ff0.js +0 -5
  72. package/dist/EpHeader-b3d00ddd.js +0 -5
  73. package/dist/EpIframe-e537d5fe.js +0 -5
  74. package/dist/EpImg-5da4a13a.js +0 -5
  75. package/dist/EpLineChart-e4b95ea0.js +0 -5
  76. package/dist/EpLink-1d0c4a58.js +0 -5
  77. package/dist/EpLinkVersion-4b7ceff9.js +0 -5
  78. package/dist/EpModal-25720774.js +0 -5
  79. package/dist/EpPieChart-d411615d.js +0 -5
  80. package/dist/EpQuestion-e8b96e78.js +0 -5
  81. package/dist/EpQuote-a90ebf39.js +0 -5
  82. package/dist/EpRadio-5bb772a8.js +0 -5
  83. package/dist/EpReading-edf407a0.js +0 -5
  84. package/dist/EpResource-99b6e173.js +0 -5
  85. package/dist/EpScope-da257fa6.js +0 -5
  86. package/dist/EpSection-c4d0969f.js +0 -5
  87. package/dist/EpSoftware-2c98a593.js +0 -5
  88. package/dist/EpSpinner-f183bf19.js +0 -5
  89. package/dist/EpSvg-44db647b.js +0 -5
  90. package/dist/EpTable-0cbaf4f8.js +0 -5
  91. package/dist/EpTerm-41a877f2.js +0 -5
  92. package/dist/EpText-c659f337.js +0 -5
  93. package/dist/EpTimeLine-587db16d.js +0 -5
  94. package/dist/EpVideo-77bcdc7a.js +0 -5
  95. package/dist/EpVideoPanopto-5cc9743f.js +0 -5
@@ -35,6 +35,10 @@ export declare const typeAccordeon: {
35
35
  default: string;
36
36
  outlined: string;
37
37
  };
38
+ Question: {
39
+ default: string;
40
+ outlined: string;
41
+ };
38
42
  tip: {
39
43
  default: string;
40
44
  outlined: string;
@@ -23,6 +23,10 @@ export declare const typeAlert: {
23
23
  default: string;
24
24
  outlined: string;
25
25
  };
26
+ Question: {
27
+ default: string;
28
+ outlined: string;
29
+ };
26
30
  tip: {
27
31
  default: string;
28
32
  outlined: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "0.1.27",
4
+ "version": "0.1.30",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -24,7 +24,7 @@ const renderTitle = computed(() => {
24
24
 
25
25
  const renderText = computed(() => {
26
26
  if (!props.content) {
27
- return `<div>no data</div>`;
27
+ return `<div></div>`;
28
28
  }
29
29
  if (!isHtml(props.content)) {
30
30
  return useMarkdown(props.content);
@@ -75,11 +75,11 @@ const renderText = computed(() => {
75
75
  })
76
76
  );
77
77
  //get relations id and term
78
- const idsRelation = foundedRelations.map((x) => x.id);
78
+ //const idsRelation = foundedRelations.map((x) => x.id);
79
79
  const termsRelation = foundedRelations.map((x) => x.term);
80
80
  const variation = term.variation;
81
81
  const hasImge = term.src ? term.src : "";
82
- const replaceWord = `<div style="display:inline"><EpTerm term="${term.term}" word="${render_word}" variations="${variation}" graminfo="${term.graminfo}" src="${hasImge}" domain="${term.domain}" relations="${termsRelation}" idrelation="${idsRelation}" > ${term.definition}</EpTerm> </div>`;
82
+ const replaceWord = `<div style="display:inline"><EpTerm term="${term.term}" word="${render_word}" variations="${variation}" graminfo="${term.graminfo}" src="${hasImge}" domain="${term.domain}" relations="${termsRelation}"> ${term.definition}</EpTerm> </div>`;
83
83
  //replace output string
84
84
  newStr = newStr.replace(word, replaceWord);
85
85
 
@@ -108,8 +108,7 @@ const { compact } = toRefs(props);
108
108
  </script>
109
109
 
110
110
  <template>
111
- <div>
112
-
111
+ <div class="px-2">
113
112
  <myRenderComponent v-if="!compact"></myRenderComponent>
114
113
  <EpAccordeon outlined :title="renderTitle" v-else>
115
114
  <myRenderComponent></myRenderComponent>
@@ -2,6 +2,7 @@
2
2
  import { ref, computed, defineAsyncComponent, toRefs } from "vue";
3
3
  import {SlidesType} from "../../types/Slides"
4
4
  import { useComponent } from "../../composables/useComponent";
5
+ import { useRenderText } from "../../composables/useRenderText";
5
6
  import { mdiArrowLeft } from "@mdi/js";
6
7
  import { mdiArrowRight } from "@mdi/js";
7
8
  import EpIcon from "../basics/EpIcon.vue";
@@ -82,11 +83,11 @@ const {slides} = toRefs(props)
82
83
  <Transition name="list" mode="out-in">
83
84
  <div class="md:flex p-8" :key="currentSlide.uid">
84
85
  <div class="w-full mr-5 flex items-center" v-if="currentSlideMediaContent">
85
- <component v-if="currentSlide.img" :is="currentSlideMediaContent" :src="currentSlide.img"></component>
86
+ <component v-if="currentSlide.img" :is="currentSlideMediaContent" :src="currentSlide.img" cols="11"></component>
86
87
  <component v-else-if="currentSlide.component" :is="currentSlideMediaContent" v-bind="{...currentSlide.component.data}"></component>
87
88
  </div>
88
89
  <div class="w-full">
89
- <div class="overflow-y-auto h-96 p-custom" v-html="currentSlide.content"></div>
90
+ <div class="overflow-y-auto h-96 p-custom" v-html="useRenderText(currentSlide.content)"></div>
90
91
  </div>
91
92
  </div>
92
93
  </Transition>
@@ -61,7 +61,7 @@ const {title, content, cols} = toRefs(props)
61
61
  </template>
62
62
  <template #content>
63
63
  <div class="flex">
64
- <div v-if="content" :class="`mx-auto ${renderCols} bg-primary`">
64
+ <div v-if="content" :class="`mx-auto ${renderCols}`">
65
65
  <div v-html="content" class="w-full"></div>
66
66
  </div>
67
67
  </div>
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
- import { ref, toRefs, computed, onMounted} from "vue";
2
+ import { ref, toRefs, computed} from "vue";
3
3
  import { useRenderText } from "../../composables/useRenderText";
4
+ import { useRouter } from "vue-router";
4
5
  import { mdiBookmarkMultipleOutline } from "@mdi/js";
5
6
  import EpImg from "../basics/EpImg.vue";
6
7
  import EpIcon from "../basics/EpIcon.vue";
@@ -17,7 +18,7 @@ interface Props {
17
18
  domain?: string;
18
19
  graminfo?: string;
19
20
  relations?: string;
20
- idrelation?: string;
21
+ //idrelation?: string;
21
22
  labelClose?: string;
22
23
  src?:string;
23
24
  }
@@ -33,10 +34,6 @@ const props = withDefaults(defineProps<Props>(), {
33
34
  const show = ref(false);
34
35
 
35
36
 
36
-
37
-
38
-
39
-
40
37
  const subtitle = computed(() => {
41
38
  if (props.term !== props.word) {
42
39
  return `(${props.word})`;
@@ -62,14 +59,23 @@ const renderRelations = computed(() => {
62
59
  return renderRelations;
63
60
  });
64
61
 
65
- const relationsID = computed(() => {
66
- let relationsID = null;
67
- let valueprops = props.idrelation?.trim();
68
- if (valueprops?.length > 0) {
69
- relationsID = valueprops.split(",");
62
+
63
+ const router = useRouter()
64
+ const goto = (term:string) =>{
65
+ if(router.hasRoute('glossary')){
66
+ router.push({ path: "/glossary", query:{word:term} });
70
67
  }
71
- return relationsID;
72
- });
68
+ //console.log(router.hasRoute('signages'))
69
+ //
70
+ }
71
+ // const relationsID = computed(() => {
72
+ // let relationsID = null;
73
+ // let valueprops = props.idrelation?.trim();
74
+ // if (valueprops?.length > 0) {
75
+ // relationsID = valueprops.split(",");
76
+ // }
77
+ // return relationsID;
78
+ // });
73
79
 
74
80
  const renderDomain = computed(() => {
75
81
  if (props.domain === "null") {
@@ -142,14 +148,16 @@ const { term, graminfo, labelClose, src } = toRefs(props);
142
148
  </div>
143
149
  <div class="text-sm mt-2" v-if="renderRelations">
144
150
  <span class="mr-2 font-bold">Relations :</span>
145
- <EpBtn
146
- v-for="(relation, i) in renderRelations"
147
- :key="`relation-${i}`"
148
- size="small"
149
- rounded
150
- extra-class="mr-2"
151
- >{{ relation }}</EpBtn
152
- >
151
+ <template v-for="(relation, i) in renderRelations"
152
+ :key="`relation-${i}`">
153
+ <EpBtn
154
+ size="small"
155
+ rounded
156
+ extra-class="mr-2"
157
+ @click="goto(relation)"
158
+ >{{ relation }}</EpBtn>
159
+ </template>
160
+
153
161
  </div>
154
162
  <div class="flex justify-end">
155
163
  <EpBtn type="error" outlined @click="show = false" rounded>{{
@@ -71,7 +71,7 @@ const { title } = toRefs(props)
71
71
  <template>
72
72
  <!-- component -->
73
73
  <div>
74
- <div class="w-10/12 md:w-7/12 lg:6/12 mx-auto relative">
74
+ <div class="w-10/12 mx-auto relative">
75
75
  <h3 class="text-2xl mb-2">{{ title?.title?.text?.headline }}</h3>
76
76
  <p>{{ title?.title?.text?.text }}</p>
77
77
  <div class="my-4 px-2">
@@ -0,0 +1,17 @@
1
+ <script setup lang="ts">
2
+
3
+ //props
4
+ //square
5
+ //rounded
6
+ //an animate
7
+
8
+ //https://mui.com/material-ui/react-skeleton/
9
+ //https://ui.nuxt.com/layout/skeleton
10
+
11
+
12
+ </script>
13
+ <template>
14
+ <div>
15
+ skeleton
16
+ </div>
17
+ </template>
@@ -1,5 +0,0 @@
1
- import { L as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { M as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { I as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { z as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { c as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { o as a } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { d as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { e as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { w as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { g as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { r as a } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { h as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { J as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { A as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { j as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { p as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { B as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { C as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { x as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { q as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { y as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { K as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { v as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { b as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { s as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { t as a } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { k as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { D as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { l as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { E as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { m as a } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { _ as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { n as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { F as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { G as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { H as m } from "./index-8ba6a808.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };