ep-lib-ts 0.1.41 → 0.1.43
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/dist/{BgAudio-e0df0452.js → BgAudio-9074bf47.js} +1 -1
- package/dist/{DisplayBox-df8969c3.js → DisplayBox-e2f9c14b.js} +1 -1
- package/dist/{EpAlert-f6c591eb.js → EpAlert-98a8913b.js} +1 -1
- package/dist/{EpAudio-a1825f53.js → EpAudio-8bca3f8b.js} +1 -1
- package/dist/EpBadge-aa69b61f.js +6 -0
- package/dist/{EpBarChart-d0c31501.js → EpBarChart-89719705.js} +1 -1
- package/dist/EpBtn-94de00aa.js +6 -0
- package/dist/EpCard-d31b9544.js +6 -0
- package/dist/EpCheckbox-b4696548.js +41 -0
- package/dist/EpChip-b1c3761b.js +6 -0
- package/dist/EpCodeblock-f5d4bbd7.js +1467 -0
- package/dist/EpContentSlider-8b95883d.js +6 -0
- package/dist/EpDivider-717cb204.js +6 -0
- package/dist/{EpEdu-9c2a17b0.js → EpEdu-1d62ac0f.js} +1 -1
- package/dist/EpFlex-4931d64b.js +6 -0
- package/dist/EpHeader-bf8e2580.js +6 -0
- package/dist/EpHotsPot-f4deb558.js +56 -0
- package/dist/EpHover-073dc31c.js +32 -0
- package/dist/{EpIcon-3cb7f2ba.js → EpIcon-e311fbad.js} +1 -1
- package/dist/EpIframe-d9f071a1.js +6 -0
- package/dist/EpImg-69c0feaf.js +6 -0
- package/dist/{EpInput-96a37b76.js → EpInput-867e4d4d.js} +1 -1
- package/dist/EpLineChart-0954dd9c.js +6 -0
- package/dist/EpLink-d3b39f02.js +6 -0
- package/dist/EpLinkVersion-b760bbd8.js +6 -0
- package/dist/{EpList-59198daf.js → EpList-8a3621c1.js} +1 -1
- package/dist/EpModal-5f7b55e3.js +6 -0
- package/dist/{EpNothing-eb1beaf2.js → EpNothing-ad160acf.js} +1 -1
- package/dist/EpPieChart-b4ace5f7.js +6 -0
- package/dist/EpQuestion-15d6c264.js +6 -0
- package/dist/EpQuote-2f8b0fd5.js +6 -0
- package/dist/EpRadio-53ea7ddf.js +6 -0
- package/dist/EpRadioSummative-e834a5da.js +6 -0
- package/dist/EpReading-6d3adc21.js +6 -0
- package/dist/EpResource-730effb3.js +6 -0
- package/dist/EpScope-9fa20a62.js +6 -0
- package/dist/EpSection-7a940784.js +6 -0
- package/dist/{EpSelect-51b0488b.js → EpSelect-2b3b90bf.js} +1 -1
- package/dist/EpSkeleton-579dd745.js +6 -0
- package/dist/EpSoftware-705be204.js +6 -0
- package/dist/EpSpinner-34dd8e0e.js +6 -0
- package/dist/EpSummativeTable-4765167a.js +6 -0
- package/dist/EpSvg-c3fcd0c2.js +6 -0
- package/dist/{EpSwitch-9feee893.js → EpSwitch-778610f4.js} +20 -20
- package/dist/EpTable-5c9216b8.js +6 -0
- package/dist/EpTerm-507bdfb9.js +6 -0
- package/dist/EpText-1915cfeb.js +6 -0
- package/dist/EpTimeLine-73c0ce36.js +6 -0
- package/dist/{EpToggle-9755056a.js → EpToggle-79231e19.js} +2 -2
- package/dist/EpVideo-1d6e8d50.js +6 -0
- package/dist/EpVideoPanopto-4cb0d51e.js +6 -0
- package/dist/EpWordDef-6bc37d76.js +6 -0
- package/dist/components/basics/EpHover.vue.d.ts +49 -0
- package/dist/components/basics/EpImg.vue.d.ts +5 -0
- package/dist/components/educationals/EpCodeblock.vue.d.ts +42 -0
- package/dist/components/forms/EpCheckbox.vue.d.ts +10 -14
- package/dist/components/forms/EpInput.vue.d.ts +1 -1
- package/dist/components/forms/EpRadioSummative.vue.d.ts +56 -0
- package/dist/components/forms/EpSelect.vue.d.ts +1 -1
- package/dist/components/forms/EpTextarea.vue.d.ts +1 -1
- package/dist/components/forms/EpToggle.vue.d.ts +1 -1
- package/dist/components/interactions/EpHotsPot.vue.d.ts +32 -0
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +24 -0
- package/dist/components/medias/EpCarousel.vue.d.ts +5 -0
- package/dist/components/medias/EpWordDef.vue.d.ts +1 -3
- package/dist/components/signages/EpQuote.vue.d.ts +4 -0
- package/dist/ep-lib-ts.js +28 -27
- package/dist/ep-lib-ts.umd.cjs +98 -42
- package/dist/index-96f36524.js +47690 -0
- package/dist/{index-91030c94.js → index-a3ad71e0.js} +2429 -2334
- package/dist/index.d.ts +2 -1
- package/dist/prism-04608307.js +1182 -0
- package/dist/style.css +1 -1
- package/dist/types/Codeblock.d.ts +223 -0
- package/dist/types/Image.d.ts +6 -0
- package/dist/types/SummativeTable.d.ts +10 -0
- package/package.json +7 -2
- package/src/components/basics/EpHover.vue +57 -0
- package/src/components/basics/EpImg.vue +27 -20
- package/src/components/educationals/EpCodeblock.vue +48 -0
- package/src/components/forms/EpCheckbox.vue +26 -28
- package/src/components/forms/EpRadioSummative.vue +53 -0
- package/src/components/forms/EpToggle.vue +3 -12
- package/src/components/interactions/EpHotsPot.vue +77 -0
- package/src/components/interactions/EpSummativeTable.vue +56 -0
- package/src/components/medias/EpCarousel.vue +5 -2
- package/src/components/medias/EpKatex.vue +1 -1
- package/src/components/medias/EpSvg.vue +4 -2
- package/src/components/medias/EpWordDef.vue +2 -4
- package/src/components/signages/EpQuote.vue +19 -16
- package/dist/EpBadge-6c7c194a.js +0 -6
- package/dist/EpBtn-d51f824a.js +0 -6
- package/dist/EpCard-e848d9bc.js +0 -6
- package/dist/EpCheckbox-fe632df9.js +0 -36
- package/dist/EpChip-373f5e4f.js +0 -6
- package/dist/EpContentSlider-c500f4b5.js +0 -6
- package/dist/EpDivider-3c9ae82f.js +0 -6
- package/dist/EpFlex-6fffcd30.js +0 -6
- package/dist/EpHeader-a04980fd.js +0 -6
- package/dist/EpIframe-f593e070.js +0 -6
- package/dist/EpImg-983fe4ba.js +0 -6
- package/dist/EpLineChart-2a7aa41b.js +0 -6
- package/dist/EpLink-8aebe07f.js +0 -6
- package/dist/EpLinkVersion-6b19796c.js +0 -6
- package/dist/EpModal-c7ad990c.js +0 -6
- package/dist/EpPieChart-0d4efe39.js +0 -6
- package/dist/EpQuestion-c5cf0835.js +0 -6
- package/dist/EpQuote-530e688e.js +0 -6
- package/dist/EpRadio-d24572ee.js +0 -6
- package/dist/EpReading-04ea83ba.js +0 -6
- package/dist/EpResource-d820c9d8.js +0 -6
- package/dist/EpScope-94cbbc27.js +0 -6
- package/dist/EpSection-8b5cd77c.js +0 -6
- package/dist/EpSkeleton-9974a603.js +0 -6
- package/dist/EpSoftware-8b3c0f9d.js +0 -6
- package/dist/EpSpinner-fb40c0d5.js +0 -6
- package/dist/EpSvg-9eeb39d5.js +0 -6
- package/dist/EpTable-dfa246d6.js +0 -6
- package/dist/EpTerm-8260ff0b.js +0 -6
- package/dist/EpText-e4de1bcb.js +0 -6
- package/dist/EpTimeLine-3c551d53.js +0 -6
- package/dist/EpVideo-4d77c312.js +0 -6
- package/dist/EpVideoPanopto-4ecfb461.js +0 -6
- package/dist/EpWordDef-37f6087e.js +0 -6
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {ref, computed, toRefs} from 'vue'
|
|
3
|
+
|
|
4
|
+
interface InfoButton {
|
|
5
|
+
id:string|number;
|
|
6
|
+
content:string;
|
|
7
|
+
verticalPosition:number;
|
|
8
|
+
horizontalPosition:number;
|
|
9
|
+
title:string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Props {
|
|
13
|
+
id?:string|number;
|
|
14
|
+
imageURL:string;
|
|
15
|
+
title?:string;
|
|
16
|
+
infoButtons:InfoButton[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const props = withDefaults(defineProps<Props>(), {});
|
|
20
|
+
|
|
21
|
+
const { title, imageURL } = toRefs(props)
|
|
22
|
+
|
|
23
|
+
const hotsPots = computed(() => {
|
|
24
|
+
if (props.infoButtons) {
|
|
25
|
+
return props.infoButtons.map((button) => {
|
|
26
|
+
let transform = `translateX(-50%)`;
|
|
27
|
+
|
|
28
|
+
if (button.horizontalPosition === 0) transform = ``;
|
|
29
|
+
else if (button.horizontalPosition === 100) transform = `translateX(-100%)`;
|
|
30
|
+
if (button.verticalPosition === 100) transform = `translateY(-100%) ${transform}`;
|
|
31
|
+
|
|
32
|
+
const position = `transform: ${transform}; top: ${button.verticalPosition}%; left: ${button.horizontalPosition}%;`;
|
|
33
|
+
|
|
34
|
+
return { ...button, position }
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
return []
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
const modalOpen = ref(false);
|
|
41
|
+
const displayContent = ref('')
|
|
42
|
+
const titleDisplay = ref('')
|
|
43
|
+
|
|
44
|
+
const openModal = (title:string, content:string) => {
|
|
45
|
+
modalOpen.value = true;
|
|
46
|
+
displayContent.value = content
|
|
47
|
+
titleDisplay.value = title
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const closeModal = () => {
|
|
51
|
+
modalOpen.value = false;
|
|
52
|
+
displayContent.value = ''
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<div>
|
|
59
|
+
<h2 class="text-xl font-bold">{{ title }}</h2>
|
|
60
|
+
<div class="relative">
|
|
61
|
+
<img :src="imageURL" :alt="`l'image de ${title}`">
|
|
62
|
+
<template v-for="spot in hotsPots" :key="spot.id">
|
|
63
|
+
<button @click="openModal(spot.title, spot.content)" :class="`absolute text-white px-4 py-2 shadow-md bg-primary`" :style="`${spot.position}`">+</button>
|
|
64
|
+
</template>
|
|
65
|
+
<div v-if="modalOpen" class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-5 px-2">
|
|
66
|
+
<div class="mx-2 bg-white p-2 shadow-md">
|
|
67
|
+
<h4>{{ titleDisplay }}</h4>
|
|
68
|
+
<div v-html="displayContent" class="text-sm"></div>
|
|
69
|
+
<button @click="closeModal" class="mt-4 bg-primary text-white px-2 py-1 text-sm">
|
|
70
|
+
Fermer
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {ref, computed, toRefs} from 'vue'
|
|
3
|
+
import EpDivider from '../basics/EpDivider.vue';
|
|
4
|
+
import EpRadioSummative from '../forms/EpRadioSummative.vue';
|
|
5
|
+
import type { QuestionSummative } from '../../types/SummativeTable';
|
|
6
|
+
const totalValue = ref<number[]>([])
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
title?:string;
|
|
10
|
+
questions:QuestionSummative[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(defineProps<Props>(), {})
|
|
14
|
+
|
|
15
|
+
const {title, questions} = toRefs(props)
|
|
16
|
+
|
|
17
|
+
const resultSummative = computed(()=> {
|
|
18
|
+
return totalValue.value.reduce((total, currentvalue) => total + currentvalue, 0)
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
//cette function sera efface, en creant le nouveau editeur
|
|
23
|
+
const transformNumber = (value:string|number) => {
|
|
24
|
+
const num = Number(value);
|
|
25
|
+
if (isNaN(num)) {
|
|
26
|
+
return 0;
|
|
27
|
+
} else {
|
|
28
|
+
return num;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div class="mt-4 bg-gray-50 p-4">
|
|
36
|
+
<h4 v-if="title" class="text-xl font-semibold mb-6">{{ title }}</h4>
|
|
37
|
+
<template v-for="(question,i) in questions" :key="`item-question-${i}`">
|
|
38
|
+
<p class=" text-gray-600 py-2 rounded">{{question.question}}</p>
|
|
39
|
+
<div class="flex flex-row flex-wrap gap-y-2 sm:gap-x-4">
|
|
40
|
+
<template v-for="(_option, j) in question.options" :key="`option-question-${j}`">
|
|
41
|
+
<EpRadioSummative
|
|
42
|
+
:id="`option-${i}-${j}-${_option.uid}`"
|
|
43
|
+
:name="`option-${i}-${j}-${_option.uid}`"
|
|
44
|
+
:label="_option.label"
|
|
45
|
+
:value="transformNumber(_option.value)"
|
|
46
|
+
v-model="totalValue[i]">
|
|
47
|
+
</EpRadioSummative>
|
|
48
|
+
</template>
|
|
49
|
+
</div>
|
|
50
|
+
<EpDivider />
|
|
51
|
+
</template>
|
|
52
|
+
<div class="text-right pr-16">
|
|
53
|
+
<span class="text-sm font-semibold uppercase">Total : {{ resultSummative }}</span>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
@@ -3,6 +3,7 @@ import { toRefs, ref } from "vue";
|
|
|
3
3
|
import { mdiChevronLeftCircleOutline } from "@mdi/js";
|
|
4
4
|
import { mdiChevronRightCircleOutline } from "@mdi/js";
|
|
5
5
|
import { MediaCarousel } from "../../types/MediaCarousel";
|
|
6
|
+
import { SizeThumbnail } from "../../types/Image";
|
|
6
7
|
import EpIcon from "../basics/EpIcon.vue";
|
|
7
8
|
import EpBtn from "../basics/EpBtn.vue";
|
|
8
9
|
import EpModal from "../interactions/EpModal.vue";
|
|
@@ -13,12 +14,14 @@ interface Props {
|
|
|
13
14
|
gallery?: boolean;
|
|
14
15
|
labelRef?: string | null;
|
|
15
16
|
labelClose?: string | null;
|
|
17
|
+
sizeThumbnail?: SizeThumbnail
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
const props = withDefaults(defineProps<Props>(), {
|
|
19
21
|
labelClose: "Fermer",
|
|
20
22
|
labelRef: "Référence",
|
|
21
23
|
gallery: false,
|
|
24
|
+
sizeThumbnail:"medium"
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
const currentIndex = ref<number>(0);
|
|
@@ -36,7 +39,7 @@ const nextSlide = () => {
|
|
|
36
39
|
currentIndex.value = newIndex;
|
|
37
40
|
};
|
|
38
41
|
|
|
39
|
-
const { carrouselImg, labelClose, labelRef } = toRefs(props);
|
|
42
|
+
const { carrouselImg, labelClose, labelRef, sizeThumbnail } = toRefs(props);
|
|
40
43
|
</script>
|
|
41
44
|
|
|
42
45
|
<template>
|
|
@@ -76,7 +79,7 @@ const { carrouselImg, labelClose, labelRef } = toRefs(props);
|
|
|
76
79
|
</div>
|
|
77
80
|
<div v-else class="flex flex-wrap">
|
|
78
81
|
<template v-for="image in carrouselImg" :key="`image-${image?.uid}`">
|
|
79
|
-
<EpImg :src="image.src" :bib="image.bib" :caption="image.caption" thumbnail></EpImg>
|
|
82
|
+
<EpImg :src="image.src" :bib="image.bib" :caption="image.caption" thumbnail :size-thumbnail="sizeThumbnail"></EpImg>
|
|
80
83
|
</template>
|
|
81
84
|
</div>
|
|
82
85
|
</template>
|
|
@@ -34,10 +34,12 @@ const Cols = [
|
|
|
34
34
|
'basis-9/12',
|
|
35
35
|
'basis-10/12',
|
|
36
36
|
'basis-11/12',
|
|
37
|
-
'basis-
|
|
37
|
+
'basis-full',
|
|
38
38
|
]
|
|
39
39
|
|
|
40
40
|
const renderCols = computed(() => {
|
|
41
|
+
// console.log(+props.cols)
|
|
42
|
+
// console.log(Cols[+props.cols])
|
|
41
43
|
return Cols[+props.cols]
|
|
42
44
|
})
|
|
43
45
|
|
|
@@ -50,7 +52,7 @@ const renderText = computed(()=> {
|
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
53
|
-
const {title, content
|
|
55
|
+
const {title, content} = toRefs(props)
|
|
54
56
|
|
|
55
57
|
</script>
|
|
56
58
|
|
|
@@ -5,9 +5,7 @@ import { useRenderText } from '../../composables/useRenderText';
|
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
|
|
7
7
|
interface Term {
|
|
8
|
-
|
|
9
|
-
id: string
|
|
10
|
-
}
|
|
8
|
+
id: string
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
interface Props {
|
|
@@ -18,7 +16,7 @@ interface Props {
|
|
|
18
16
|
const props = withDefaults(defineProps<Props>(), {});
|
|
19
17
|
|
|
20
18
|
const definition = computed(() => {
|
|
21
|
-
return props.glossary.find(item => item.id === props.term.
|
|
19
|
+
return props.glossary.find(item => item.id === props.term.id)
|
|
22
20
|
})
|
|
23
21
|
|
|
24
22
|
const sizeGramIngo = computed(() => {
|
|
@@ -3,17 +3,20 @@ import { toRefs, computed } from "vue";
|
|
|
3
3
|
import EpCard from "../basics/EpCard.vue";
|
|
4
4
|
import EpDivider from "../basics/EpDivider.vue";
|
|
5
5
|
import EpIcon from '../basics/EpIcon.vue'
|
|
6
|
+
import { mdiFormatQuoteOpen } from "@mdi/js";
|
|
6
7
|
|
|
7
8
|
interface Props {
|
|
8
9
|
author?: string | null;
|
|
9
10
|
img?: string | null;
|
|
10
11
|
card?: boolean;
|
|
12
|
+
hideIcon?:boolean;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
const props = withDefaults(defineProps<Props>(), {
|
|
14
16
|
author: null,
|
|
15
17
|
img: null,
|
|
16
18
|
card: false,
|
|
19
|
+
hideIcon:false
|
|
17
20
|
});
|
|
18
21
|
|
|
19
22
|
const colorText = computed(() => {
|
|
@@ -36,29 +39,29 @@ const imageStyle = computed(() => {
|
|
|
36
39
|
return `md:rounded-l-md`;
|
|
37
40
|
});
|
|
38
41
|
|
|
39
|
-
const { author, img, card } = toRefs(props);
|
|
42
|
+
const { author, img, card, hideIcon } = toRefs(props);
|
|
43
|
+
|
|
44
|
+
|
|
40
45
|
</script>
|
|
41
46
|
|
|
42
47
|
<template>
|
|
43
|
-
<div :class="card?'w-4/6 mx-auto':''">
|
|
44
|
-
<EpCard
|
|
45
|
-
:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<div class="
|
|
51
|
-
<
|
|
52
|
-
:
|
|
53
|
-
|
|
54
|
-
alt="Image of quote"
|
|
55
|
-
/>
|
|
48
|
+
<div :class="card ? 'w-4/6 mx-auto' : ''">
|
|
49
|
+
<EpCard :density="card ? 'default' : 'compact'" :outlined="!card ? true : false" :color="card ? 'primary' : 'bg-white'">
|
|
50
|
+
<div :class="`md:flex md:flex-wrap rounded-md`">
|
|
51
|
+
<div class="w-1/5 mr-6" v-if="img">
|
|
52
|
+
<img :class="`${imageStyle} md:w-full md:h-full md:object-cover md:rounded-l-md`" :src="img"
|
|
53
|
+
alt="Image of quote" />
|
|
54
|
+
</div>
|
|
55
|
+
<div class="flex items-center justify-center px-7" v-else-if="!hideIcon">
|
|
56
|
+
<div :class="card ? 'text-white':'text-stone-700'">
|
|
57
|
+
<EpIcon :size="60" :icon-path="mdiFormatQuoteOpen"></EpIcon>
|
|
58
|
+
</div>
|
|
56
59
|
</div>
|
|
57
|
-
<div :class="`
|
|
60
|
+
<div :class="`py-6 flex-1 ${colorText} ${hideIcon?'px-6':'pr-2'}`">
|
|
58
61
|
<slot></slot>
|
|
59
62
|
<template v-if="author">
|
|
60
63
|
<EpDivider size="border"></EpDivider>
|
|
61
|
-
<p :class="`
|
|
64
|
+
<p :class="`italic ${styleTextAutor}`">
|
|
62
65
|
{{ author }}
|
|
63
66
|
</p>
|
|
64
67
|
</template>
|
package/dist/EpBadge-6c7c194a.js
DELETED
package/dist/EpBtn-d51f824a.js
DELETED
package/dist/EpCard-e848d9bc.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, toRefs as p, openBlock as f, createElementBlock as b, createElementVNode as a, unref as e, toDisplayString as m } from "vue";
|
|
2
|
-
const y = ["id", "type", "value", "disabled", "readonly", "checked"], h = ["for", "disabled"], B = /* @__PURE__ */ u({
|
|
3
|
-
__name: "EpCheckbox",
|
|
4
|
-
props: {
|
|
5
|
-
id: { default: "0" },
|
|
6
|
-
label: { default: "check" },
|
|
7
|
-
modelValue: { default: "" },
|
|
8
|
-
type: { default: "checkbox" },
|
|
9
|
-
disabled: { type: Boolean, default: !1 },
|
|
10
|
-
readonly: { type: Boolean, default: !1 },
|
|
11
|
-
checked: { type: Boolean, default: !1 }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(o, { emit: k }) {
|
|
15
|
-
const t = o, { id: l, label: n, type: c, modelValue: s, disabled: d, readonly: r, checked: i } = p(t);
|
|
16
|
-
return (_, x) => (f(), b("div", null, [
|
|
17
|
-
a("input", {
|
|
18
|
-
id: e(l),
|
|
19
|
-
type: e(c),
|
|
20
|
-
value: e(s),
|
|
21
|
-
class: "form-checkbox rounded border-neutral-300 text-blue-600 h-[1.125rem] w-[1.125rem] mr-2 disabled:opacity-40 disabled:cursor-not-allowed",
|
|
22
|
-
disabled: e(d),
|
|
23
|
-
readonly: e(r),
|
|
24
|
-
checked: e(i)
|
|
25
|
-
}, null, 8, y),
|
|
26
|
-
a("label", {
|
|
27
|
-
for: e(l),
|
|
28
|
-
class: "disabled:opacity-40 hover:pointer-events-none",
|
|
29
|
-
disabled: e(d)
|
|
30
|
-
}, m(e(n)), 9, h)
|
|
31
|
-
]));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
B as default
|
|
36
|
-
};
|
package/dist/EpChip-373f5e4f.js
DELETED
package/dist/EpFlex-6fffcd30.js
DELETED
package/dist/EpImg-983fe4ba.js
DELETED
package/dist/EpLink-8aebe07f.js
DELETED
package/dist/EpModal-c7ad990c.js
DELETED
package/dist/EpQuote-530e688e.js
DELETED
package/dist/EpRadio-d24572ee.js
DELETED
package/dist/EpScope-94cbbc27.js
DELETED
package/dist/EpSvg-9eeb39d5.js
DELETED
package/dist/EpTable-dfa246d6.js
DELETED
package/dist/EpTerm-8260ff0b.js
DELETED
package/dist/EpText-e4de1bcb.js
DELETED
package/dist/EpVideo-4d77c312.js
DELETED