ep-lib-ts 0.1.37 → 0.1.39
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-ee6be0f3.js → BgAudio-16fee83c.js} +1 -1
- package/dist/{DisplayBox-867d56fb.js → DisplayBox-73015033.js} +1 -1
- package/dist/{EpAlert-e0ad680d.js → EpAlert-2c844554.js} +1 -1
- package/dist/{EpAudio-f9836de7.js → EpAudio-2003d5e8.js} +1 -1
- package/dist/EpBadge-27f2474f.js +6 -0
- package/dist/{EpBarChart-84b69362.js → EpBarChart-48ff491a.js} +1 -1
- package/dist/EpBtn-7b078900.js +6 -0
- package/dist/EpCard-0aee22e8.js +6 -0
- package/dist/EpChip-2a8503d3.js +6 -0
- package/dist/EpContentSlider-40cc6a2b.js +6 -0
- package/dist/EpDivider-ed395bc5.js +6 -0
- package/dist/{EpEdu-582f809e.js → EpEdu-10122e1e.js} +1 -1
- package/dist/EpFlex-424687b3.js +6 -0
- package/dist/EpHeader-3d1641ed.js +6 -0
- package/dist/{EpIcon-d4dc0ecb.js → EpIcon-31d00f5e.js} +1 -1
- package/dist/EpIframe-a97b631a.js +6 -0
- package/dist/EpImg-222224c2.js +6 -0
- package/dist/{EpInput-afe43604.js → EpInput-2aa86f26.js} +1 -1
- package/dist/EpLineChart-16958459.js +6 -0
- package/dist/EpLink-004ed0a4.js +6 -0
- package/dist/EpLinkVersion-a34e1d57.js +6 -0
- package/dist/{EpList-2efcfcfb.js → EpList-d0d800c9.js} +1 -1
- package/dist/EpModal-b6942706.js +6 -0
- package/dist/{EpNothing-33d89c4c.js → EpNothing-bd698aea.js} +1 -1
- package/dist/EpPieChart-5497dd48.js +6 -0
- package/dist/EpQuestion-a7bb2ab2.js +6 -0
- package/dist/EpQuote-71b5b4c7.js +6 -0
- package/dist/EpRadio-3517e7a5.js +6 -0
- package/dist/EpReading-f2375e7c.js +6 -0
- package/dist/EpResource-7ad9996a.js +6 -0
- package/dist/{EpScope-44628aad.js → EpScope-3d25b2df.js} +1 -1
- package/dist/EpSection-b8709b04.js +6 -0
- package/dist/{EpSelect-46fcb799.js → EpSelect-65ad210c.js} +1 -1
- package/dist/EpSkeleton-3d3384fe.js +6 -0
- package/dist/EpSoftware-13fac4e9.js +6 -0
- package/dist/EpSpinner-cdc9f6f7.js +6 -0
- package/dist/EpSvg-9985e445.js +6 -0
- package/dist/EpTable-e7613a98.js +6 -0
- package/dist/EpTerm-e818059c.js +6 -0
- package/dist/EpText-44f21440.js +6 -0
- package/dist/EpTimeLine-0961d89d.js +6 -0
- package/dist/EpVideo-34c7f788.js +6 -0
- package/dist/EpVideoPanopto-53f86982.js +6 -0
- package/dist/EpWordDef-70e01746.js +81 -0
- package/dist/components/charts/EpBarChart.vue.d.ts +4 -0
- package/dist/components/charts/EpLineChart.vue.d.ts +4 -0
- package/dist/components/charts/EpPieChart.vue.d.ts +4 -0
- package/dist/components/medias/EpWordDef.vue.d.ts +29 -0
- package/dist/ep-lib-ts.js +11 -11
- package/dist/ep-lib-ts.umd.cjs +36 -36
- package/dist/{index-cdaa9a08.js → index-972bbed8.js} +3729 -3684
- package/dist/types/GlossaryEntry.d.ts +10 -0
- package/package.json +2 -2
- package/src/components/basics/EpImg.vue +4 -3
- package/src/components/charts/EpBarChart.vue +5 -3
- package/src/components/charts/EpLineChart.vue +5 -3
- package/src/components/charts/EpPieChart.vue +6 -4
- package/src/components/educationals/EpResource.vue +0 -1
- package/src/components/interactions/EpContentSlider.vue +50 -30
- package/src/components/interactions/EpQuestion.vue +4 -4
- package/src/components/medias/EpVideo.vue +16 -3
- package/src/components/medias/EpWordDef.vue +116 -0
- package/src/components/signages/EpQuote.vue +10 -9
- package/dist/EpBadge-4e59ef7c.js +0 -6
- package/dist/EpBtn-5e8f86bf.js +0 -6
- package/dist/EpCard-7e3ed4a4.js +0 -6
- package/dist/EpChip-dc954589.js +0 -6
- package/dist/EpContentSlider-cb03f3e9.js +0 -6
- package/dist/EpDivider-7678be0c.js +0 -6
- package/dist/EpFlex-f1971347.js +0 -6
- package/dist/EpHeader-78726a42.js +0 -6
- package/dist/EpIframe-c1e28504.js +0 -6
- package/dist/EpImg-c1483410.js +0 -6
- package/dist/EpLineChart-9fc01457.js +0 -6
- package/dist/EpLink-4a639047.js +0 -6
- package/dist/EpLinkVersion-8200767b.js +0 -6
- package/dist/EpModal-30b4a013.js +0 -6
- package/dist/EpPieChart-0059d199.js +0 -6
- package/dist/EpQuestion-37e61b97.js +0 -6
- package/dist/EpQuote-4d749894.js +0 -6
- package/dist/EpRadio-2a23d115.js +0 -6
- package/dist/EpReading-3ebe66a8.js +0 -6
- package/dist/EpResource-c6ccc660.js +0 -6
- package/dist/EpSection-840524bf.js +0 -6
- package/dist/EpSkeleton-1067e7d2.js +0 -6
- package/dist/EpSoftware-7b6c561f.js +0 -6
- package/dist/EpSpinner-0e8ac388.js +0 -6
- package/dist/EpSvg-cf5106d4.js +0 -6
- package/dist/EpTable-639de0ff.js +0 -6
- package/dist/EpTerm-28f932c3.js +0 -6
- package/dist/EpText-ee0d1c44.js +0 -6
- package/dist/EpTimeLine-7b1db15d.js +0 -6
- package/dist/EpVideo-36737f59.js +0 -6
- package/dist/EpVideoPanopto-c23c232f.js +0 -6
|
@@ -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, u as vt } from "./index-
|
|
2
|
+
import { c as ft, u as vt } from "./index-972bbed8.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-972bbed8.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, u as p } from "./index-
|
|
2
|
+
import { c as s, u as p } from "./index-972bbed8.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
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineComponent as L, computed as l, openBlock as s, createElementBlock as n, createElementVNode as t, toDisplayString as a, normalizeClass as u, createCommentVNode as c, Fragment as v, renderList as _, unref as p } from "vue";
|
|
2
|
+
import { I as h } from "./index-972bbed8.js";
|
|
3
|
+
import { useRouter as C } from "vue-router";
|
|
4
|
+
const R = { key: 0 }, T = { class: "h-min border border-stone-300 rounded-lg divide-y" }, z = { class: "text-xl font-semibold p-2" }, D = { class: "flex justify-between" }, H = /* @__PURE__ */ t("p", { class: "text-sm font-medium bg-stone-100 p-2" }, " Information grammaticale ", -1), I = { class: "px-2 py-1" }, M = /* @__PURE__ */ t("p", { class: "text-sm font-medium bg-stone-100 p-2" }, "Domaine", -1), V = { class: "px-2 py-1" }, $ = /* @__PURE__ */ t("p", { class: "text-sm font-medium bg-stone-100 p-2" }, "Variation(s)", -1), E = { class: "px-2 py-1" }, B = ["innerHTML"], N = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "flex"
|
|
7
|
+
}, j = ["innerHTML"], q = ["src", "alt"], F = { key: 0 }, G = /* @__PURE__ */ t("p", { class: "text-sm font-medium bg-stone-100 p-2" }, "Relations", -1), S = { class: "p-2" }, W = ["onClick"], A = { key: 1 }, Q = /* @__PURE__ */ L({
|
|
8
|
+
__name: "EpWordDef",
|
|
9
|
+
props: {
|
|
10
|
+
word: {},
|
|
11
|
+
glossary: {}
|
|
12
|
+
},
|
|
13
|
+
setup(f) {
|
|
14
|
+
const d = f, e = l(() => d.glossary.find((i) => i.id === d.word.term.id)), g = l(() => e.value ? e.value.domain || e.value.variation.length > 0 ? "w-1/3" : "w-full" : ""), y = l(() => e.value ? e.value.variation.length > 0 ? "w-1/4" : "w-3/4" : ""), x = l(() => e.value ? e.value.domain ? "w-2/4" : "w-3/4" : ""), k = (i) => d.glossary.filter((o) => i.some((r) => o.id === r)).map((o) => ({ id: o.id, term: o.term })), m = C(), b = (i) => {
|
|
15
|
+
m.hasRoute("glossary") && m.push({ path: "/glossary", query: { word: i } });
|
|
16
|
+
};
|
|
17
|
+
return (i, w) => (s(), n("div", null, [
|
|
18
|
+
e.value ? (s(), n("div", R, [
|
|
19
|
+
t("div", T, [
|
|
20
|
+
t("h2", z, a(e.value.term), 1),
|
|
21
|
+
t("div", D, [
|
|
22
|
+
t("div", {
|
|
23
|
+
class: u(g.value)
|
|
24
|
+
}, [
|
|
25
|
+
H,
|
|
26
|
+
t("div", I, a(e.value.graminfo), 1)
|
|
27
|
+
], 2),
|
|
28
|
+
e.value.domain ? (s(), n("div", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: u(y.value)
|
|
31
|
+
}, [
|
|
32
|
+
M,
|
|
33
|
+
t("div", V, a(e.value.domain), 1)
|
|
34
|
+
], 2)) : c("", !0),
|
|
35
|
+
e.value.variation.length > 0 ? (s(), n("div", {
|
|
36
|
+
key: 1,
|
|
37
|
+
class: u(x.value)
|
|
38
|
+
}, [
|
|
39
|
+
$,
|
|
40
|
+
t("div", E, [
|
|
41
|
+
(s(!0), n(v, null, _(e.value.variation, (o, r) => (s(), n("span", {
|
|
42
|
+
key: `v-${r}`
|
|
43
|
+
}, a(o) + a(e.value.variation.length > r + 1 ? ", " : "."), 1))), 128))
|
|
44
|
+
])
|
|
45
|
+
], 2)) : c("", !0)
|
|
46
|
+
]),
|
|
47
|
+
e.value.img ? (s(), n("div", N, [
|
|
48
|
+
t("div", {
|
|
49
|
+
class: "px-2 py-6",
|
|
50
|
+
innerHTML: p(h)(e.value.definition)
|
|
51
|
+
}, null, 8, j),
|
|
52
|
+
t("img", {
|
|
53
|
+
class: "h-60",
|
|
54
|
+
src: e.value.img,
|
|
55
|
+
alt: `Image du terme ${e.value.term}`
|
|
56
|
+
}, null, 8, q)
|
|
57
|
+
])) : (s(), n("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "px-2 py-6",
|
|
60
|
+
innerHTML: p(h)(e.value.definition)
|
|
61
|
+
}, null, 8, B)),
|
|
62
|
+
t("div", null, [
|
|
63
|
+
e.value.relation.length > 0 ? (s(), n("div", F, [
|
|
64
|
+
G,
|
|
65
|
+
t("div", S, [
|
|
66
|
+
(s(!0), n(v, null, _(k(e.value.relation), (o, r) => (s(), n("button", {
|
|
67
|
+
key: `relation-${r}`,
|
|
68
|
+
class: "p-1 border rounded mr-1",
|
|
69
|
+
onClick: (J) => b(o.term)
|
|
70
|
+
}, a(o.term), 9, W))), 128))
|
|
71
|
+
])
|
|
72
|
+
])) : c("", !0)
|
|
73
|
+
])
|
|
74
|
+
])
|
|
75
|
+
])) : (s(), n("div", A, "La definition n'est pas disponible"))
|
|
76
|
+
]));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
Q as default
|
|
81
|
+
};
|
|
@@ -20,12 +20,16 @@ interface Props {
|
|
|
20
20
|
type?: MediaVariants;
|
|
21
21
|
mandateLevel?: string | null;
|
|
22
22
|
source?: string;
|
|
23
|
+
width?: string;
|
|
23
24
|
}
|
|
24
25
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
25
26
|
center: boolean;
|
|
27
|
+
width: string;
|
|
26
28
|
}>, {}, 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>, {
|
|
27
29
|
center: boolean;
|
|
30
|
+
width: string;
|
|
28
31
|
}>>>, {
|
|
32
|
+
width: string;
|
|
29
33
|
center: boolean;
|
|
30
34
|
}, {}>;
|
|
31
35
|
export default _default;
|
|
@@ -20,12 +20,16 @@ interface Props {
|
|
|
20
20
|
type?: MediaVariants;
|
|
21
21
|
mandateLevel?: string | null;
|
|
22
22
|
source?: string;
|
|
23
|
+
width?: string;
|
|
23
24
|
}
|
|
24
25
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
25
26
|
center: boolean;
|
|
27
|
+
width: string;
|
|
26
28
|
}>, {}, 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>, {
|
|
27
29
|
center: boolean;
|
|
30
|
+
width: string;
|
|
28
31
|
}>>>, {
|
|
32
|
+
width: string;
|
|
29
33
|
center: boolean;
|
|
30
34
|
}, {}>;
|
|
31
35
|
export default _default;
|
|
@@ -21,15 +21,19 @@ interface Props {
|
|
|
21
21
|
type?: MediaVariants;
|
|
22
22
|
mandateLevel?: string | null;
|
|
23
23
|
source?: string;
|
|
24
|
+
width?: string;
|
|
24
25
|
}
|
|
25
26
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
26
27
|
center: boolean;
|
|
27
28
|
type: string;
|
|
29
|
+
width: string;
|
|
28
30
|
}>, {}, 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>, {
|
|
29
31
|
center: boolean;
|
|
30
32
|
type: string;
|
|
33
|
+
width: string;
|
|
31
34
|
}>>>, {
|
|
32
35
|
type: "base" | "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info";
|
|
36
|
+
width: string;
|
|
33
37
|
center: boolean;
|
|
34
38
|
}, {}>;
|
|
35
39
|
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GlossaryEntry } from '../../types/GlossaryEntry';
|
|
2
|
+
interface Term {
|
|
3
|
+
term: {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
word: Term;
|
|
9
|
+
glossary: GlossaryEntry[];
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, 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>, {}>>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_Prettify<T> = {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} & {};
|
package/dist/ep-lib-ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as e, J as o, z as r, c as i, o as t, d as n, e as d, R as l, f as m, w as C, g as S, r as c, h as u, K as g, i as h, A as x, j as L, S as T, p as f, B as k, C as A, x as B, q as b, y as I, L as P, b as Q, s as R, t as V, k as v, M as w, D, l as F, E as H, m as K, Q as M, _ as j, n as q, F as y, G as z, H as G } from "./index-972bbed8.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
export {
|
|
@@ -12,8 +12,8 @@ export {
|
|
|
12
12
|
l as EpCarousel,
|
|
13
13
|
m as EpChip,
|
|
14
14
|
C as EpContentSlider,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
S as EpDivider,
|
|
16
|
+
c as EpEdu,
|
|
17
17
|
u as EpFlex,
|
|
18
18
|
g as EpHeader,
|
|
19
19
|
h as EpIcon,
|
|
@@ -24,8 +24,8 @@ export {
|
|
|
24
24
|
k as EpLink,
|
|
25
25
|
A as EpLinkVersion,
|
|
26
26
|
B as EpModal,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
b as EpPieChart,
|
|
28
|
+
I as EpQuestion,
|
|
29
29
|
P as EpQuote,
|
|
30
30
|
Q as EpReading,
|
|
31
31
|
R as EpResource,
|
|
@@ -36,10 +36,10 @@ export {
|
|
|
36
36
|
F as EpSpinner,
|
|
37
37
|
H as EpSvg,
|
|
38
38
|
K as EpTable,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
M as EpTabs,
|
|
40
|
+
j as EpTerm,
|
|
41
|
+
q as EpText,
|
|
42
|
+
y as EpTimeLine,
|
|
43
|
+
z as EpVideo,
|
|
44
|
+
G as EpVideoPanopto
|
|
45
45
|
};
|