ep-lib-ts 1.0.0 → 1.0.1
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/.vscode/extensions.json +3 -0
- package/LICENSE +21 -0
- package/dist/BgAudio-C8bS54bl.js +4 -0
- package/dist/DisplayBox-BTPVW9_v.js +4 -0
- package/dist/EpAlert-Daji8LsR.js +4 -0
- package/dist/EpAudio-Dq7twl4x.js +4 -0
- package/dist/EpAvatar-Dmpg0PFj.js +50 -0
- package/dist/EpBadge-DBfMe1r_.js +4 -0
- package/dist/EpBadge-DqmSNdbi.js +55 -0
- package/dist/EpBarChart-cAlm0rKf.js +4 -0
- package/dist/EpBtn-S2VJnt--.js +4 -0
- package/dist/EpCard-SvaBmdDK.js +4 -0
- package/dist/EpCheckbox-BtJRFbS_.js +41 -0
- package/dist/EpChip-Chn_9bRP.js +4 -0
- package/dist/EpCodeblock-DVX2XFFj.js +1477 -0
- package/dist/EpContentSlider-Ds2GlrkO.js +4 -0
- package/dist/EpDarkmode--_9Qi6HH.js +19 -0
- package/dist/EpDivider-Bj4Zya_F.js +4 -0
- package/dist/EpEdu-Y7Lkf3Ew.js +4 -0
- package/dist/EpFlex-5yWhvYX7.js +4 -0
- package/dist/EpHeader-CEQBk1ah.js +4 -0
- package/dist/EpHotsPot-NGjKJCc8.js +56 -0
- package/dist/EpHover-BL7JsbVZ.js +31 -0
- package/dist/EpIcon-CuhZ90Zx.js +4 -0
- package/dist/EpIframe-DbPnkezB.js +4 -0
- package/dist/EpImg-DJ9gNwhJ.js +4 -0
- package/dist/EpInput-DMIxjwBM.js +1177 -0
- package/dist/EpLineChart-ALvSFQ-w.js +4 -0
- package/dist/EpLink-CQSfQHRj.js +4 -0
- package/dist/EpLinkVersion-VIxCHjDt.js +4 -0
- package/dist/EpList-BkH08ROd.js +12 -0
- package/dist/EpListitem-DzQrc-k2.js +37 -0
- package/dist/EpModal-CYy1Iu1T.js +4 -0
- package/dist/EpNothing-IEAPsIPI.js +10 -0
- package/dist/EpPieChart-Cpxylmzw.js +4 -0
- package/dist/EpQuestion-gFjB_YVU.js +4 -0
- package/dist/EpQuote-C2WMKC8z.js +4 -0
- package/dist/EpRadio-CZu2BYd-.js +4 -0
- package/dist/EpRadioSummative-POEEv1YI.js +4 -0
- package/dist/EpReading-6LKvPJl5.js +4 -0
- package/dist/EpResource-Bqu38I44.js +4 -0
- package/dist/EpScope-B04S9t4O.js +4 -0
- package/dist/EpSection-B9obOS7v.js +4 -0
- package/dist/EpSelect-DLGx5g-U.js +31 -0
- package/dist/EpSkeleton-rkvPpE2y.js +4 -0
- package/dist/EpSoftware-DmH-rUDN.js +4 -0
- package/dist/EpSpinner-7XiNy9LV.js +4 -0
- package/dist/EpSummativeTable-JWOA25gE.js +4 -0
- package/dist/EpSvg-Dfvodejy.js +4 -0
- package/dist/EpSwitch-C7NMjBk9.js +64 -0
- package/dist/EpTable-C0lD6aED.js +4 -0
- package/dist/EpTerm-XGV0Zf2w.js +4 -0
- package/dist/EpText-DhHXfEHv.js +4 -0
- package/dist/EpTextarea-DyMM95ER.js +41 -0
- package/dist/EpTimeLine-CDL7liGh.js +4 -0
- package/dist/EpToggle-CfXYpI1b.js +44 -0
- package/dist/EpTooltip-B4s0_PvZ.js +99 -0
- package/dist/EpVideo-em0qb_rk.js +4 -0
- package/dist/EpVideoPanopto-DAMRV6HD.js +4 -0
- package/dist/EpWordDef-bLyQzqx8.js +4 -0
- package/dist/components/basics/EpAvatar.vue.d.ts +51 -0
- package/dist/components/basics/EpBadge.vue.d.ts +37 -0
- package/dist/components/basics/EpBtn.vue.d.ts +69 -0
- package/dist/components/basics/EpCard.vue.d.ts +71 -0
- package/dist/components/basics/EpChip.vue.d.ts +58 -0
- package/dist/components/basics/EpDivider.vue.d.ts +46 -0
- package/dist/components/basics/EpFlex.vue.d.ts +9 -0
- package/dist/components/basics/EpHover.vue.d.ts +49 -0
- package/dist/components/basics/EpIcon.vue.d.ts +34 -0
- package/dist/components/basics/EpImg.vue.d.ts +52 -0
- package/dist/components/basics/EpList.vue.d.ts +9 -0
- package/dist/components/basics/EpListitem.vue.d.ts +43 -0
- package/dist/components/basics/EpSection.vue.d.ts +50 -0
- package/dist/components/basics/EpSpinner.vue.d.ts +40 -0
- package/dist/components/basics/EpTable.vue.d.ts +24 -0
- package/dist/components/basics/EpText.vue.d.ts +31 -0
- package/dist/components/charts/EpBarChart.vue.d.ts +54 -0
- package/dist/components/charts/EpLineChart.vue.d.ts +54 -0
- package/dist/components/charts/EpPieChart.vue.d.ts +58 -0
- package/dist/components/educationals/EpCodeblock.vue.d.ts +43 -0
- package/dist/components/educationals/EpEdu.vue.d.ts +57 -0
- package/dist/components/educationals/EpReading.vue.d.ts +78 -0
- package/dist/components/educationals/EpResource.vue.d.ts +34 -0
- package/dist/components/educationals/EpScope.vue.d.ts +32 -0
- package/dist/components/forms/EpCheckbox.vue.d.ts +52 -0
- package/dist/components/forms/EpInput.vue.d.ts +65 -0
- package/dist/components/forms/EpRadio.vue.d.ts +57 -0
- package/dist/components/forms/EpRadioSummative.vue.d.ts +57 -0
- package/dist/components/forms/EpSelect.vue.d.ts +57 -0
- package/dist/components/forms/EpSwitch.vue.d.ts +58 -0
- package/dist/components/forms/EpTextarea.vue.d.ts +64 -0
- package/dist/components/forms/EpToggle.vue.d.ts +60 -0
- package/dist/components/interactions/EpAccordeon.vue.d.ts +50 -0
- package/dist/components/interactions/EpContentSlider.vue.d.ts +24 -0
- package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -0
- package/dist/components/interactions/EpHotsPot.vue.d.ts +32 -0
- package/dist/components/interactions/EpModal.vue.d.ts +65 -0
- package/dist/components/interactions/EpQuestion.vue.d.ts +53 -0
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +25 -0
- package/dist/components/interactions/EpTabs.vue.d.ts +2 -0
- package/dist/components/interactions/EpTooltip.vue.d.ts +49 -0
- package/dist/components/medias/EpAudio.vue.d.ts +48 -0
- package/dist/components/medias/EpCarousel.vue.d.ts +44 -0
- package/dist/components/medias/EpIframe.vue.d.ts +42 -0
- package/dist/components/medias/EpKatex.vue.d.ts +36 -0
- package/dist/components/medias/EpLink.vue.d.ts +48 -0
- package/dist/components/medias/EpLinkVersion.vue.d.ts +37 -0
- package/dist/components/medias/EpSoftware.vue.d.ts +55 -0
- package/dist/components/medias/EpSvg.vue.d.ts +36 -0
- package/dist/components/medias/EpTerm.vue.d.ts +54 -0
- package/dist/components/medias/EpTimeLine.vue.d.ts +32 -0
- package/dist/components/medias/EpVideo.vue.d.ts +44 -0
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +45 -0
- package/dist/components/medias/EpWordDef.vue.d.ts +28 -0
- package/dist/components/signages/EpAlert.vue.d.ts +56 -0
- package/dist/components/signages/EpBadge.vue.d.ts +57 -0
- package/dist/components/signages/EpHeader.vue.d.ts +64 -0
- package/dist/components/signages/EpNothing.vue.d.ts +2 -0
- package/dist/components/signages/EpQuote.vue.d.ts +47 -0
- package/dist/components/signages/EpSkeleton.vue.d.ts +41 -0
- package/dist/components/tools/BgAudio.vue.d.ts +29 -0
- package/dist/components/tools/DisplayBox.vue.d.ts +17 -0
- package/dist/components/tools/SvgFilter.vue.d.ts +2 -0
- package/dist/components/tools/TimelineItem.vue.d.ts +38 -0
- package/dist/composables/isHtml.d.ts +1 -0
- package/dist/composables/useColors.d.ts +1 -0
- package/dist/composables/useComponent.d.ts +6 -0
- package/dist/composables/useIcons.d.ts +26 -0
- package/dist/composables/useMarkdown.d.ts +1 -0
- package/dist/composables/useRenderText.d.ts +1 -0
- package/dist/ep-lib-ts.js +45 -0
- package/dist/ep-lib-ts.umd.cjs +406 -0
- package/dist/index-Dl6z_ITi.js +18485 -0
- package/dist/index-M54_P8uC.js +47687 -0
- package/dist/index.d.ts +44 -0
- package/dist/main.d.ts +1 -0
- package/dist/prism-B0q7vMaL.js +1182 -0
- package/dist/router.d.ts +2 -0
- package/dist/style.css +1 -0
- package/dist/types/Accordeon.d.ts +47 -0
- package/dist/types/Alert.d.ts +35 -0
- package/dist/types/Answer.d.ts +16 -0
- package/dist/types/Avatar.d.ts +18 -0
- package/dist/types/Badge.d.ts +23 -0
- package/dist/types/Border.d.ts +2 -0
- package/dist/types/Btn.d.ts +41 -0
- package/dist/types/Card.d.ts +6 -0
- package/dist/types/Chip.d.ts +41 -0
- package/dist/types/Codeblock.d.ts +223 -0
- package/dist/types/GlossaryEntry.d.ts +10 -0
- package/dist/types/Image.d.ts +6 -0
- package/dist/types/MandateLevel.d.ts +5 -0
- package/dist/types/MediaCarousel.d.ts +7 -0
- package/dist/types/Medias.d.ts +11 -0
- package/dist/types/Radio.d.ts +11 -0
- package/dist/types/Slides.d.ts +15 -0
- package/dist/types/SummativeTable.d.ts +10 -0
- package/dist/types/Switch.d.ts +11 -0
- package/dist/types/TimeLine.d.ts +124 -0
- package/dist/types/Tooltip.d.ts +75 -0
- package/dist/vite.svg +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as m, ref as u, onMounted as h, openBlock as o, createElementBlock as n, createCommentVNode as a } from "vue";
|
|
2
|
+
const d = { key: 0 }, i = { key: 1 }, f = /* @__PURE__ */ m({
|
|
3
|
+
__name: "EpDarkmode",
|
|
4
|
+
setup(g) {
|
|
5
|
+
const r = (e) => {
|
|
6
|
+
localStorage.setItem("user-theme", e), t.value = e, document.documentElement.className = e;
|
|
7
|
+
}, c = () => localStorage.getItem("user-theme"), s = () => {
|
|
8
|
+
const e = localStorage.getItem("user-theme");
|
|
9
|
+
r(e === "light" ? "dark" : "light");
|
|
10
|
+
}, l = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", t = u(c() || l());
|
|
11
|
+
return h(() => r(t.value)), (e, k) => (o(), n("button", { onClick: s }, [
|
|
12
|
+
t.value === "dark" ? (o(), n("span", d, " ☀️ ")) : a("", !0),
|
|
13
|
+
t.value === "light" ? (o(), n("span", i, " 🌙 ")) : a("", !0)
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
f as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as y, toRefs as g, computed as k, ref as c, openBlock as n, createElementBlock as i, createElementVNode as o, toDisplayString as p, unref as m, Fragment as C, renderList as P, normalizeClass as $, normalizeStyle as b, createCommentVNode as w } from "vue";
|
|
2
|
+
const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src", "alt"], M = ["onClick"], E = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "absolute inset-0 flex items-center justify-center bg-black bg-opacity-5 px-2"
|
|
5
|
+
}, H = { class: "mx-2 bg-white p-2 shadow-md" }, R = ["innerHTML"], N = /* @__PURE__ */ y({
|
|
6
|
+
__name: "EpHotsPot",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
imageURL: {},
|
|
10
|
+
title: {},
|
|
11
|
+
infoButtons: {}
|
|
12
|
+
},
|
|
13
|
+
setup(f) {
|
|
14
|
+
const l = f, { title: d, imageURL: _ } = g(l), h = k(() => l.infoButtons ? l.infoButtons.map((t) => {
|
|
15
|
+
let e = "translateX(-50%)";
|
|
16
|
+
t.horizontalPosition === 0 ? e = "" : t.horizontalPosition === 100 && (e = "translateX(-100%)"), t.verticalPosition === 100 && (e = `translateY(-100%) ${e}`);
|
|
17
|
+
const s = `transform: ${e}; top: ${t.verticalPosition}%; left: ${t.horizontalPosition}%;`;
|
|
18
|
+
return { ...t, position: s };
|
|
19
|
+
}) : []), a = c(!1), r = c(""), u = c(""), v = (t, e) => {
|
|
20
|
+
a.value = !0, r.value = e, u.value = t;
|
|
21
|
+
}, x = () => {
|
|
22
|
+
a.value = !1, r.value = "";
|
|
23
|
+
};
|
|
24
|
+
return (t, e) => (n(), i("div", null, [
|
|
25
|
+
o("h2", z, p(m(d)), 1),
|
|
26
|
+
o("div", B, [
|
|
27
|
+
o("img", {
|
|
28
|
+
src: m(_),
|
|
29
|
+
alt: `l'image de ${m(d)}`
|
|
30
|
+
}, null, 8, L),
|
|
31
|
+
(n(!0), i(C, null, P(h.value, (s) => (n(), i("button", {
|
|
32
|
+
key: s.id,
|
|
33
|
+
onClick: (D) => v(s.title, s.content),
|
|
34
|
+
class: $("absolute text-white px-4 py-2 shadow-md bg-primary"),
|
|
35
|
+
style: b(`${s.position}`)
|
|
36
|
+
}, "+", 12, M))), 128)),
|
|
37
|
+
a.value ? (n(), i("div", E, [
|
|
38
|
+
o("div", H, [
|
|
39
|
+
o("h4", null, p(u.value), 1),
|
|
40
|
+
o("div", {
|
|
41
|
+
innerHTML: r.value,
|
|
42
|
+
class: "text-sm"
|
|
43
|
+
}, null, 8, R),
|
|
44
|
+
o("button", {
|
|
45
|
+
onClick: x,
|
|
46
|
+
class: "mt-4 bg-primary text-white px-2 py-1 text-sm"
|
|
47
|
+
}, " Fermer ")
|
|
48
|
+
])
|
|
49
|
+
])) : w("", !0)
|
|
50
|
+
])
|
|
51
|
+
]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
N as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as c, computed as t, openBlock as i, createElementBlock as u, renderSlot as f, createElementVNode as d, normalizeClass as p, toDisplayString as m } from "vue";
|
|
2
|
+
import { u as o } from "./index-Dl6z_ITi.js";
|
|
3
|
+
const v = { class: "relative max-w-xs overflow-hidden bg-cover bg-no-repeat" }, h = /* @__PURE__ */ c({
|
|
4
|
+
__name: "EpHover",
|
|
5
|
+
props: {
|
|
6
|
+
bg_color: { default: "black" },
|
|
7
|
+
text_color: { default: "white" },
|
|
8
|
+
text: { default: "" },
|
|
9
|
+
animation: { default: "" }
|
|
10
|
+
},
|
|
11
|
+
setup(r) {
|
|
12
|
+
const e = r, l = t(() => {
|
|
13
|
+
if (e.bg_color)
|
|
14
|
+
return `${o("bg", e.bg_color)}`;
|
|
15
|
+
}), a = t(() => {
|
|
16
|
+
if (e.text_color)
|
|
17
|
+
return `${o("text", e.text_color)}`;
|
|
18
|
+
}), n = t(() => e.animation == "scale" ? "hover:scale-110 hover:opacity-100 " : "hover:opacity-100");
|
|
19
|
+
return (s, x) => (i(), u("div", v, [
|
|
20
|
+
f(s.$slots, "default"),
|
|
21
|
+
d("div", {
|
|
22
|
+
class: p(`absolute bottom-0 left-0 right-0 top-0 h-full w-full overflow-hidden ${l.value}
|
|
23
|
+
font-bold flex justify-center items-center bg-fixed opacity-0 transition duration-300 ease-in-out
|
|
24
|
+
text-4xl ${n.value} ${a.value}`)
|
|
25
|
+
}, m(e.text), 3)
|
|
26
|
+
]));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
h as default
|
|
31
|
+
};
|