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,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,32 @@
|
|
|
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-a3ad71e0.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
const v = { class: "relative max-w-xs overflow-hidden bg-cover bg-no-repeat" }, g = /* @__PURE__ */ c({
|
|
5
|
+
__name: "EpHover",
|
|
6
|
+
props: {
|
|
7
|
+
bg_color: { default: "black" },
|
|
8
|
+
text_color: { default: "white" },
|
|
9
|
+
text: { default: "" },
|
|
10
|
+
animation: { default: "" }
|
|
11
|
+
},
|
|
12
|
+
setup(r) {
|
|
13
|
+
const e = r, l = t(() => {
|
|
14
|
+
if (e.bg_color)
|
|
15
|
+
return `${o("bg", e.bg_color)}`;
|
|
16
|
+
}), a = t(() => {
|
|
17
|
+
if (e.text_color)
|
|
18
|
+
return `${o("text", e.text_color)}`;
|
|
19
|
+
}), n = t(() => e.animation == "scale" ? "hover:scale-110 hover:opacity-100 " : "hover:opacity-100");
|
|
20
|
+
return (s, x) => (i(), u("div", v, [
|
|
21
|
+
f(s.$slots, "default"),
|
|
22
|
+
d("div", {
|
|
23
|
+
class: p(`absolute bottom-0 left-0 right-0 top-0 h-full w-full overflow-hidden ${l.value}
|
|
24
|
+
font-bold flex justify-center items-center bg-fixed opacity-0 transition duration-300 ease-in-out
|
|
25
|
+
text-4xl ${n.value} ${a.value}`)
|
|
26
|
+
}, m(e.text), 3)
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
g as default
|
|
32
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as N, toValue as V, unref as f, onMounted as qe, getCurrentInstance as z, watch as I, warn as Ye, provide as Xe, isRef as ue, onBeforeUnmount as Ze, inject as et, ref as re, reactive as tt, onUnmounted as rt, nextTick as nt, defineComponent as ot, toRefs as it, toRef as lt, openBlock as be, createElementBlock as ge, Fragment as at, createTextVNode as ye, toDisplayString as J, createElementVNode as P, createVNode as ut, withDirectives as st, vModelText as ct, createCommentVNode as dt } from "vue";
|
|
2
|
-
import { c as ft,
|
|
2
|
+
import { c as ft, x as vt } from "./index-a3ad71e0.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
function pt() {
|
|
5
5
|
return Ee().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as o, renderSlot as r } from "vue";
|
|
2
|
-
import { a as s } from "./index-
|
|
2
|
+
import { a as s } from "./index-a3ad71e0.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const c = {}, n = { class: "py-6 px-3 w-1/4 min-w-[180px]" };
|
|
5
5
|
function p(e, a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as t, createElementBlock as a, createElementVNode as e, createVNode as l, unref as n, createStaticVNode as d } from "vue";
|
|
2
|
-
import { c as s,
|
|
2
|
+
import { c as s, x as p } from "./index-a3ad71e0.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const b = { class: "relative h-10 w-72 min-w-[200px]" }, f = ["disabled"], i = /* @__PURE__ */ d('<option value="option">Choisissez une option</option><option value="vanderpoel">Van Der Poel</option><option value="vanaert">Van Aert</option><option value="pogacar">Pogacar</option><option value="evenepoel">Evenepoel</option>', 5), u = [
|
|
5
5
|
i
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as f, toRefs as b, openBlock as k, createElementBlock as h, createElementVNode as r, unref as e, normalizeClass as y, toDisplayString as m } from "vue";
|
|
2
|
+
const _ = {
|
|
3
3
|
base: "peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:border-gray-600 peer-checked:bg-blue-600 ",
|
|
4
4
|
primary: "peer-focus:ring-bg-primary-light dark:peer-focus:ring-bg-primary-dark rounded-full peer dark:border-gray-600 peer-checked:bg-primary",
|
|
5
5
|
secondary: "peer-focus:ring-bg-secondary-light dark:peer-focus:ring-bg-secondary-dark rounded-full peer dark:border-gray-600 peer-checked:bg-secondary",
|
|
@@ -8,7 +8,7 @@ const m = {
|
|
|
8
8
|
warning: "peer-focus:ring-bg-warning-light dark:peer-focus:ring-bg-warning-dark rounded-full peer dark:border-gray-600 peer-checked:bg-warning",
|
|
9
9
|
success: "peer-focus:ring-bg-success-light dark:peer-focus:ring-bg-success-dark rounded-full peer dark:border-gray-600 peer-checked:bg-success",
|
|
10
10
|
error: "peer-focus:ring-bg-error-light dark:peer-focus:ring-bg-error-dark rounded-full peer dark:border-gray-600 peer-checked:bg-error"
|
|
11
|
-
},
|
|
11
|
+
}, w = { class: "relative inline-flex items-center cursor-pointer" }, x = ["id", "checked", "value", "disabled"], v = ["for"], $ = /* @__PURE__ */ g({
|
|
12
12
|
__name: "EpSwitch",
|
|
13
13
|
props: {
|
|
14
14
|
id: { default: "toggle" },
|
|
@@ -21,19 +21,19 @@ const m = {
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
23
|
setup(c, { emit: n }) {
|
|
24
|
-
const a = c, o = (t) => {
|
|
25
|
-
|
|
26
|
-
},
|
|
24
|
+
const a = c, s = n, o = (t) => {
|
|
25
|
+
s("update:modelValue", t.target.checked);
|
|
26
|
+
}, u = f(() => `${_[a.type]}`), {
|
|
27
27
|
id: d,
|
|
28
|
-
label:
|
|
29
|
-
type:
|
|
28
|
+
label: i,
|
|
29
|
+
type: V,
|
|
30
30
|
modelValue: l,
|
|
31
|
-
disabled:
|
|
32
|
-
readonly:
|
|
33
|
-
checked:
|
|
34
|
-
} =
|
|
35
|
-
return (t,
|
|
36
|
-
r("label",
|
|
31
|
+
disabled: p,
|
|
32
|
+
readonly: B,
|
|
33
|
+
checked: C
|
|
34
|
+
} = b(a);
|
|
35
|
+
return (t, E) => (k(), h("div", null, [
|
|
36
|
+
r("label", w, [
|
|
37
37
|
r("input", {
|
|
38
38
|
id: e(d),
|
|
39
39
|
type: "checkbox",
|
|
@@ -42,12 +42,12 @@ const m = {
|
|
|
42
42
|
onInput: o,
|
|
43
43
|
class: "sr-only peer",
|
|
44
44
|
role: "switch",
|
|
45
|
-
disabled: e(
|
|
45
|
+
disabled: e(p),
|
|
46
46
|
onChange: o
|
|
47
|
-
}, null, 40,
|
|
47
|
+
}, null, 40, x),
|
|
48
48
|
r("div", {
|
|
49
|
-
class:
|
|
50
|
-
${
|
|
49
|
+
class: y(`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4
|
|
50
|
+
${u.value} dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full
|
|
51
51
|
peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px]
|
|
52
52
|
after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all `)
|
|
53
53
|
}, null, 2)
|
|
@@ -55,10 +55,10 @@ const m = {
|
|
|
55
55
|
r("label", {
|
|
56
56
|
class: "inline-block pl-[0.15rem] hover:cursor-pointer",
|
|
57
57
|
for: e(d)
|
|
58
|
-
},
|
|
58
|
+
}, m(e(i)), 9, v)
|
|
59
59
|
]));
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
$ as default
|
|
64
64
|
};
|
|
@@ -20,10 +20,10 @@ const b = ["id", "type", "checked", "disabled"], _ = ["for"], y = /* @__PURE__ *
|
|
|
20
20
|
modelValue: k,
|
|
21
21
|
placeholder: i,
|
|
22
22
|
disabled: f,
|
|
23
|
-
readonly:
|
|
23
|
+
readonly: m,
|
|
24
24
|
checked: d
|
|
25
25
|
} = s(c);
|
|
26
|
-
return (
|
|
26
|
+
return (x, g) => (n(), u("div", null, [
|
|
27
27
|
r("input", {
|
|
28
28
|
id: e(o),
|
|
29
29
|
type: e(t),
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
type Animation = "" | "scale";
|
|
2
|
+
type Color = "" | "white" | "black" | "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info" | "question" | "tip" | "primarydark" | "secondarydark" | "accentdark" | "errordark" | "warningdark" | "successdark" | "infodark" | "questiondark" | "tipdark" | "primarylight" | "secondarylight" | "accentlight" | "errorlight" | "warninglight" | "successlight" | "infolight" | "questionlight" | "tiplight";
|
|
3
|
+
interface Props {
|
|
4
|
+
bg_color?: Color;
|
|
5
|
+
text_color?: Color;
|
|
6
|
+
text?: string;
|
|
7
|
+
animation?: Animation;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
bg_color: string;
|
|
11
|
+
text_color: string;
|
|
12
|
+
text: string;
|
|
13
|
+
animation: string;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
|
+
bg_color: string;
|
|
16
|
+
text_color: string;
|
|
17
|
+
text: string;
|
|
18
|
+
animation: string;
|
|
19
|
+
}>>>, {
|
|
20
|
+
text: string;
|
|
21
|
+
bg_color: Color;
|
|
22
|
+
text_color: Color;
|
|
23
|
+
animation: Animation;
|
|
24
|
+
}, {}>, {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithDefaults<P, D> = {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
|
+
default: D[K];
|
|
40
|
+
}> : P[K];
|
|
41
|
+
};
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { SizeThumbnail } from '../../types/Image';
|
|
1
2
|
interface Props {
|
|
2
3
|
src: string;
|
|
3
4
|
alt?: string;
|
|
4
5
|
height?: string | number;
|
|
5
6
|
width?: string | number;
|
|
6
7
|
thumbnail?: boolean;
|
|
8
|
+
sizeThumbnail?: SizeThumbnail;
|
|
7
9
|
caption?: string;
|
|
8
10
|
bib?: string;
|
|
9
11
|
title?: string;
|
|
@@ -15,14 +17,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
17
|
cols: string;
|
|
16
18
|
thumbnail: boolean;
|
|
17
19
|
noModal: boolean;
|
|
20
|
+
sizeThumbnail: string;
|
|
18
21
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
22
|
alt: string;
|
|
20
23
|
cols: string;
|
|
21
24
|
thumbnail: boolean;
|
|
22
25
|
noModal: boolean;
|
|
26
|
+
sizeThumbnail: string;
|
|
23
27
|
}>>>, {
|
|
24
28
|
alt: string;
|
|
25
29
|
thumbnail: boolean;
|
|
30
|
+
sizeThumbnail: "small" | "medium" | "large";
|
|
26
31
|
noModal: boolean;
|
|
27
32
|
cols: string | number;
|
|
28
33
|
}, {}>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Theme from "../../types/Codeblock";
|
|
2
|
+
type Langue = "javascript" | "css" | "html" | "php" | "json" | "typescript";
|
|
3
|
+
interface Props {
|
|
4
|
+
code?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
lang?: Langue;
|
|
7
|
+
theme?: Theme;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
code: string;
|
|
11
|
+
label: string;
|
|
12
|
+
lang: string;
|
|
13
|
+
theme: "neon-bunny";
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
|
+
code: string;
|
|
16
|
+
label: string;
|
|
17
|
+
lang: string;
|
|
18
|
+
theme: "neon-bunny";
|
|
19
|
+
}>>>, {
|
|
20
|
+
code: string;
|
|
21
|
+
label: string;
|
|
22
|
+
lang: Langue;
|
|
23
|
+
theme: Theme;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|