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.
- package/package.json +25 -29
- package/src/components/charts/EpBarChart.vue +3 -3
- package/src/components/charts/EpLineChart.vue +3 -3
- package/src/components/charts/EpPieChart.vue +1 -0
- package/src/components/interactions/EpDarkmode.vue +48 -0
- package/src/components/interactions/EpSummativeTable.vue +1 -1
- package/src/components/medias/EpLink.vue +30 -13
- package/src/components/medias/EpVideoPanopto.vue +10 -1
- package/.vscode/extensions.json +0 -3
- package/dist/BgAudio-9074bf47.js +0 -6
- package/dist/DisplayBox-e2f9c14b.js +0 -6
- package/dist/EpAlert-98a8913b.js +0 -6
- package/dist/EpAudio-8bca3f8b.js +0 -6
- package/dist/EpAvatar-1e55fdc7.js +0 -50
- package/dist/EpBadge-aa69b61f.js +0 -6
- package/dist/EpBadge-f5faab43.js +0 -55
- package/dist/EpBarChart-89719705.js +0 -6
- package/dist/EpBtn-94de00aa.js +0 -6
- package/dist/EpCard-d31b9544.js +0 -6
- package/dist/EpCheckbox-b4696548.js +0 -41
- package/dist/EpChip-b1c3761b.js +0 -6
- package/dist/EpCodeblock-f5d4bbd7.js +0 -1467
- package/dist/EpContentSlider-8b95883d.js +0 -6
- package/dist/EpDivider-717cb204.js +0 -6
- package/dist/EpEdu-1d62ac0f.js +0 -6
- package/dist/EpFlex-4931d64b.js +0 -6
- package/dist/EpHeader-bf8e2580.js +0 -6
- package/dist/EpHotsPot-f4deb558.js +0 -56
- package/dist/EpHover-073dc31c.js +0 -32
- package/dist/EpIcon-e311fbad.js +0 -6
- package/dist/EpIframe-d9f071a1.js +0 -6
- package/dist/EpImg-69c0feaf.js +0 -6
- package/dist/EpInput-867e4d4d.js +0 -1172
- package/dist/EpLineChart-0954dd9c.js +0 -6
- package/dist/EpLink-d3b39f02.js +0 -6
- package/dist/EpLinkVersion-b760bbd8.js +0 -6
- package/dist/EpList-8a3621c1.js +0 -13
- package/dist/EpListitem-aa4a0f95.js +0 -37
- package/dist/EpModal-5f7b55e3.js +0 -6
- package/dist/EpNothing-ad160acf.js +0 -11
- package/dist/EpPieChart-b4ace5f7.js +0 -6
- package/dist/EpQuestion-15d6c264.js +0 -6
- package/dist/EpQuote-2f8b0fd5.js +0 -6
- package/dist/EpRadio-53ea7ddf.js +0 -6
- package/dist/EpRadioSummative-e834a5da.js +0 -6
- package/dist/EpReading-6d3adc21.js +0 -6
- package/dist/EpResource-730effb3.js +0 -6
- package/dist/EpScope-9fa20a62.js +0 -6
- package/dist/EpSection-7a940784.js +0 -6
- package/dist/EpSelect-2b3b90bf.js +0 -32
- package/dist/EpSkeleton-579dd745.js +0 -6
- package/dist/EpSoftware-705be204.js +0 -6
- package/dist/EpSpinner-34dd8e0e.js +0 -6
- package/dist/EpSummativeTable-4765167a.js +0 -6
- package/dist/EpSvg-c3fcd0c2.js +0 -6
- package/dist/EpSwitch-778610f4.js +0 -64
- package/dist/EpTable-5c9216b8.js +0 -6
- package/dist/EpTerm-507bdfb9.js +0 -6
- package/dist/EpText-1915cfeb.js +0 -6
- package/dist/EpTextarea-67f751e9.js +0 -41
- package/dist/EpTimeLine-73c0ce36.js +0 -6
- package/dist/EpToggle-79231e19.js +0 -44
- package/dist/EpTooltip-05e1d8fe.js +0 -99
- package/dist/EpVideo-1d6e8d50.js +0 -6
- package/dist/EpVideoPanopto-4cb0d51e.js +0 -6
- package/dist/EpWordDef-6bc37d76.js +0 -6
- package/dist/components/basics/EpAvatar.vue.d.ts +0 -51
- package/dist/components/basics/EpBadge.vue.d.ts +0 -37
- package/dist/components/basics/EpBtn.vue.d.ts +0 -68
- package/dist/components/basics/EpCard.vue.d.ts +0 -70
- package/dist/components/basics/EpChip.vue.d.ts +0 -57
- package/dist/components/basics/EpDivider.vue.d.ts +0 -45
- package/dist/components/basics/EpFlex.vue.d.ts +0 -9
- package/dist/components/basics/EpHover.vue.d.ts +0 -49
- package/dist/components/basics/EpIcon.vue.d.ts +0 -34
- package/dist/components/basics/EpImg.vue.d.ts +0 -51
- package/dist/components/basics/EpList.vue.d.ts +0 -9
- package/dist/components/basics/EpListitem.vue.d.ts +0 -43
- package/dist/components/basics/EpSection.vue.d.ts +0 -50
- package/dist/components/basics/EpSpinner.vue.d.ts +0 -40
- package/dist/components/basics/EpTable.vue.d.ts +0 -24
- package/dist/components/basics/EpText.vue.d.ts +0 -31
- package/dist/components/charts/EpBarChart.vue.d.ts +0 -52
- package/dist/components/charts/EpLineChart.vue.d.ts +0 -52
- package/dist/components/charts/EpPieChart.vue.d.ts +0 -56
- package/dist/components/educationals/EpCodeblock.vue.d.ts +0 -42
- package/dist/components/educationals/EpEdu.vue.d.ts +0 -56
- package/dist/components/educationals/EpReading.vue.d.ts +0 -77
- package/dist/components/educationals/EpResource.vue.d.ts +0 -33
- package/dist/components/educationals/EpScope.vue.d.ts +0 -32
- package/dist/components/forms/EpCheckbox.vue.d.ts +0 -52
- package/dist/components/forms/EpInput.vue.d.ts +0 -65
- package/dist/components/forms/EpRadio.vue.d.ts +0 -56
- package/dist/components/forms/EpRadioSummative.vue.d.ts +0 -56
- package/dist/components/forms/EpSelect.vue.d.ts +0 -57
- package/dist/components/forms/EpSwitch.vue.d.ts +0 -57
- package/dist/components/forms/EpTextarea.vue.d.ts +0 -64
- package/dist/components/forms/EpToggle.vue.d.ts +0 -60
- package/dist/components/interactions/EpAccordeon.vue.d.ts +0 -49
- package/dist/components/interactions/EpContentSlider.vue.d.ts +0 -23
- package/dist/components/interactions/EpHotsPot.vue.d.ts +0 -32
- package/dist/components/interactions/EpModal.vue.d.ts +0 -65
- package/dist/components/interactions/EpQuestion.vue.d.ts +0 -52
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +0 -24
- package/dist/components/interactions/EpTabs.vue.d.ts +0 -2
- package/dist/components/interactions/EpTooltip.vue.d.ts +0 -48
- package/dist/components/medias/EpAudio.vue.d.ts +0 -47
- package/dist/components/medias/EpCarousel.vue.d.ts +0 -43
- package/dist/components/medias/EpIframe.vue.d.ts +0 -41
- package/dist/components/medias/EpKatex.vue.d.ts +0 -35
- package/dist/components/medias/EpLink.vue.d.ts +0 -47
- package/dist/components/medias/EpLinkVersion.vue.d.ts +0 -37
- package/dist/components/medias/EpSoftware.vue.d.ts +0 -54
- package/dist/components/medias/EpSvg.vue.d.ts +0 -35
- package/dist/components/medias/EpTerm.vue.d.ts +0 -54
- package/dist/components/medias/EpTimeLine.vue.d.ts +0 -31
- package/dist/components/medias/EpVideo.vue.d.ts +0 -43
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +0 -43
- package/dist/components/medias/EpWordDef.vue.d.ts +0 -27
- package/dist/components/signages/EpAlert.vue.d.ts +0 -55
- package/dist/components/signages/EpBadge.vue.d.ts +0 -56
- package/dist/components/signages/EpHeader.vue.d.ts +0 -64
- package/dist/components/signages/EpNothing.vue.d.ts +0 -2
- package/dist/components/signages/EpQuote.vue.d.ts +0 -47
- package/dist/components/signages/EpSkeleton.vue.d.ts +0 -41
- package/dist/components/tools/BgAudio.vue.d.ts +0 -29
- package/dist/components/tools/DisplayBox.vue.d.ts +0 -17
- package/dist/components/tools/SvgFilter.vue.d.ts +0 -2
- package/dist/components/tools/TimelineItem.vue.d.ts +0 -37
- package/dist/composables/isHtml.d.ts +0 -1
- package/dist/composables/useColors.d.ts +0 -1
- package/dist/composables/useComponent.d.ts +0 -6
- package/dist/composables/useIcons.d.ts +0 -26
- package/dist/composables/useMarkdown.d.ts +0 -1
- package/dist/composables/useRenderText.d.ts +0 -1
- package/dist/ep-lib-ts.js +0 -47
- package/dist/ep-lib-ts.umd.cjs +0 -407
- package/dist/index-96f36524.js +0 -47690
- package/dist/index-a3ad71e0.js +0 -19711
- package/dist/index.d.ts +0 -43
- package/dist/main.d.ts +0 -0
- package/dist/prism-04608307.js +0 -1182
- package/dist/router.d.ts +0 -2
- package/dist/style.css +0 -1
- package/dist/types/Accordeon.d.ts +0 -47
- package/dist/types/Alert.d.ts +0 -35
- package/dist/types/Answer.d.ts +0 -15
- package/dist/types/Avatar.d.ts +0 -18
- package/dist/types/Badge.d.ts +0 -23
- package/dist/types/Border.d.ts +0 -2
- package/dist/types/Btn.d.ts +0 -41
- package/dist/types/Card.d.ts +0 -6
- package/dist/types/Chip.d.ts +0 -41
- package/dist/types/Codeblock.d.ts +0 -223
- package/dist/types/GlossaryEntry.d.ts +0 -10
- package/dist/types/Image.d.ts +0 -6
- package/dist/types/MandateLevel.d.ts +0 -5
- package/dist/types/MediaCarousel.d.ts +0 -7
- package/dist/types/Medias.d.ts +0 -11
- package/dist/types/Radio.d.ts +0 -11
- package/dist/types/Slides.d.ts +0 -15
- package/dist/types/SummativeTable.d.ts +0 -10
- package/dist/types/Switch.d.ts +0 -11
- package/dist/types/TimeLine.d.ts +0 -124
- package/dist/types/Tooltip.d.ts +0 -75
- 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.
|
|
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
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
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.
|
|
46
|
-
"@types/katex": "^0.16.
|
|
47
|
-
"@types/markdown-it": "^
|
|
48
|
-
"@types/node": "^20.
|
|
49
|
-
"@vitejs/plugin-vue": "^
|
|
50
|
-
"autoprefixer": "^10.4.
|
|
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.
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"vite": "^
|
|
57
|
-
"
|
|
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": "
|
|
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>(), {
|
|
@@ -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.
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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
|
-
|
|
58
|
-
<
|
|
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="
|
|
64
|
+
<iframe :src="src" width="100%" :height="sizeVideo" frameborder="0" allowfullscreen></iframe>
|
|
65
|
+
|
|
57
66
|
</div>
|
|
58
67
|
</template>
|
|
59
68
|
<!-- <template #actions>
|
package/.vscode/extensions.json
DELETED
package/dist/BgAudio-9074bf47.js
DELETED
package/dist/EpAlert-98a8913b.js
DELETED
package/dist/EpAudio-8bca3f8b.js
DELETED
|
@@ -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
|
-
};
|
package/dist/EpBadge-aa69b61f.js
DELETED
package/dist/EpBadge-f5faab43.js
DELETED
|
@@ -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
|
-
};
|
package/dist/EpBtn-94de00aa.js
DELETED
package/dist/EpCard-d31b9544.js
DELETED
|
@@ -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
|
-
};
|