ep-lib-ts 1.0.36 → 1.0.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-BDO4Ln5y.js +4 -0
- package/dist/DisplayBox-Diko7_uH.js +4 -0
- package/dist/Ep360Image-Dmwx7NrY.js +228 -0
- package/dist/Ep360Video-b_stvC2Z.js +235 -0
- package/dist/EpAlert-iWXSHupC.js +4 -0
- package/dist/EpAudio-Bnb1MIw6.js +4 -0
- package/dist/EpAvatar-DTfkDxUP.js +4 -0
- package/dist/{EpAvatar-Dmpg0PFj.js → EpAvatar.vue_vue_type_script_setup_true_lang-IeQ9W4tD.js} +11 -11
- package/dist/EpBadge-BcVkBKJK.js +4 -0
- package/dist/{EpBadge-DqmSNdbi.js → EpBadge-CWIq_C51.js} +2 -2
- package/dist/EpBarChart-D42B3a97.js +4 -0
- package/dist/EpBranchingScenario-dEapAg2r.js +151 -0
- package/dist/EpBtn-BtyunWne.js +4 -0
- package/dist/EpCard--mtof8hL.js +4 -0
- package/dist/{EpCheckbox-_Nt9Bvq3.js → EpCheckbox-D-AiG1k1.js} +10 -10
- package/dist/EpChip-DitreF_J.js +4 -0
- package/dist/EpCodeblock-nBOawE0H.js +4 -0
- package/dist/EpConclusion-CcOvoC8e.js +4 -0
- package/dist/EpContentSlider-DpIiJmPt.js +4 -0
- package/dist/{EpDarkmode-fMMNJbJs.js → EpDarkmode-DV-fRn1K.js} +5 -5
- package/dist/EpDescription-DeVW7LNL.js +4 -0
- package/dist/EpDivider-vEs9W9Km.js +4 -0
- package/dist/EpEdu-BC4BxjYR.js +4 -0
- package/dist/EpFlex-xdVOYg4a.js +4 -0
- package/dist/EpFunnelChart-CF1CM2id.js +4 -0
- package/dist/EpHeader-BMoXpQdW.js +4 -0
- package/dist/{EpHotsPot-DFz_Du9o.js → EpHotsPot-nT87sUMT.js} +6 -6
- package/dist/EpHover-CwOc7bvn.js +4 -0
- package/dist/EpHover.vue_vue_type_script_setup_true_lang-DDLIDTha.js +36 -0
- package/dist/EpHoverCard-BTWsiA2z.js +84 -0
- package/dist/EpIcon-Cektqqle.js +4 -0
- package/dist/EpIframe-CFLSXU7z.js +4 -0
- package/dist/EpImg-Ct-KfkRp.js +4 -0
- package/dist/EpInput-c9THhDCs.js +1095 -0
- package/dist/EpInstructions-BCFWkov8.js +4 -0
- package/dist/EpIntroduction-Cx1Tc920.js +4 -0
- package/dist/EpLineChart-BffNNoNj.js +4 -0
- package/dist/EpLink-Bx_E9Gjz.js +4 -0
- package/dist/EpLinkVersion-6CTPFhT5.js +4 -0
- package/dist/{EpList-B6Q3fXGj.js → EpList-CM3b-mLc.js} +3 -3
- package/dist/{EpListitem-DzQrc-k2.js → EpListitem-DXh4Kniu.js} +4 -4
- package/dist/EpLottieSvg-NNSQLDpl.js +1971 -0
- package/dist/EpModal-DLG_mddB.js +4 -0
- package/dist/EpNothing-DVY_GKL6.js +10 -0
- package/dist/EpObjective-DIWMrap_.js +4 -0
- package/dist/EpPieChart-CTDL07vZ.js +4 -0
- package/dist/EpQuestion-RzrZk_Op.js +4 -0
- package/dist/EpQuote-SaMcAmmL.js +4 -0
- package/dist/EpRadio-w5IkZmj5.js +4 -0
- package/dist/EpRadioSummative-BeZecHlR.js +4 -0
- package/dist/EpReading-CVgr9TGN.js +4 -0
- package/dist/EpResource-BEql6U6K.js +4 -0
- package/dist/EpScope-BAuTDV_B.js +4 -0
- package/dist/EpSection-CESMVDna.js +4 -0
- package/dist/EpSectionCols-CacYX-v3.js +4 -0
- package/dist/{EpSelect-FIb6SyJU.js → EpSelect-kjH_wTXb.js} +3 -3
- package/dist/EpSkeleton-CuvqT7PL.js +4 -0
- package/dist/EpSoftware-LK_nIUJY.js +4 -0
- package/dist/EpSpecificObjective-BTavyAY9.js +4 -0
- package/dist/EpSpinner-CZo0f9Nx.js +4 -0
- package/dist/EpStackedList-DWkLmrqI.js +75 -0
- package/dist/EpSummativeTable-Dlhhgq1A.js +4 -0
- package/dist/EpSvg-CG-uua_J.js +4 -0
- package/dist/{EpSwitch-hdXyzuR1.js → EpSwitch-DtQon_hm.js} +2 -2
- package/dist/EpTable-DsXZI8Hm.js +4 -0
- package/dist/EpTerm-DGTKAJqq.js +4 -0
- package/dist/EpText-kB0vb1Da.js +4 -0
- package/dist/{EpTextarea-D8UCQuga.js → EpTextarea-VJ4pdPV_.js} +2 -2
- package/dist/EpTimeLine-DK_bzCen.js +4 -0
- package/dist/{EpToggle-BDp54LpY.js → EpToggle-BTkTNVEz.js} +2 -2
- package/dist/{EpTooltip-B4s0_PvZ.js → EpTooltip-J6UMMP3d.js} +2 -2
- package/dist/EpVideo-CPN6M6cs.js +4 -0
- package/dist/EpVideoPanopto-UZckfqS1.js +4 -0
- package/dist/EpWordDef-dSnuxRtl.js +4 -0
- package/dist/components/basics/EpHover.vue.d.ts +12 -10
- package/dist/components/basics/EpHoverCard.vue.d.ts +86 -0
- package/dist/components/basics/EpStackedList.vue.d.ts +50 -0
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +45 -0
- package/dist/components/educationals/EpCodeblock.vue.d.ts +1 -1
- package/dist/components/interactions/Ep360Image.vue.d.ts +16 -0
- package/dist/components/interactions/Ep360Video.vue.d.ts +16 -0
- package/dist/components/medias/EpLottieSvg.vue.d.ts +58 -0
- package/dist/ep-lib-ts.js +23 -23
- package/dist/ep-lib-ts.umd.cjs +5158 -109
- package/dist/{index-D4ekzRdY.js → index-Bw4yzGuc.js} +3999 -3114
- package/dist/{index-7_RFK7FL.js → index-CPs4nmaJ.js} +4684 -4549
- package/dist/index-IdtPmXeP.js +3483 -0
- package/dist/{prism-CZvJL8HS.js → prism-DM8vlN3d.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/testImg.jpg +0 -0
- package/dist/testMaria.jpg +0 -0
- package/dist/three.module-laS36oD-.js +48903 -0
- package/dist/types/Aframe.d.ts +1 -0
- package/dist/types/Component.d.ts +10 -0
- package/dist/types/Hover.d.ts +3 -0
- package/dist/types/StackedList.d.ts +37 -0
- package/dist/types/Three.d.ts +1 -0
- package/dist/types/image360.d.ts +16 -0
- package/dist/types/video360.d.ts +16 -0
- package/package.json +10 -5
- package/src/components/basics/EpHover.vue +32 -28
- package/src/components/basics/EpHoverCard.vue +123 -0
- package/src/components/basics/EpImg.vue +1 -1
- package/src/components/basics/EpListitem.vue +41 -59
- package/src/components/basics/EpStackedList.vue +83 -0
- package/src/components/educationals/EpBranchingScenario.vue +239 -0
- package/src/components/educationals/EpCodeblock.vue +1 -1
- package/src/components/educationals/EpEdu.vue +4 -4
- package/src/components/interactions/Ep360Image.vue +344 -0
- package/src/components/interactions/Ep360Video.vue +339 -0
- package/src/components/medias/EpLottieSvg.vue +79 -0
- package/dist/BgAudio-BpeNw9L4.js +0 -4
- package/dist/DisplayBox-aSVYrDHI.js +0 -4
- package/dist/EpAlert-x0STjaqD.js +0 -4
- package/dist/EpAudio-D7LIG4mf.js +0 -4
- package/dist/EpBadge-Du6v1vQL.js +0 -4
- package/dist/EpBarChart-BoINXvhV.js +0 -4
- package/dist/EpBtn-DE6qTHlW.js +0 -4
- package/dist/EpCard-CNcn4RbZ.js +0 -4
- package/dist/EpChip-DHgdqDEX.js +0 -4
- package/dist/EpCodeblock-CR2LGKR-.js +0 -4
- package/dist/EpConclusion-B9DhTuTc.js +0 -4
- package/dist/EpContentSlider-BdS_KctY.js +0 -4
- package/dist/EpDescription-D1TbwNrX.js +0 -4
- package/dist/EpDivider-DjTTwzGb.js +0 -4
- package/dist/EpEdu-CuI1_N9M.js +0 -4
- package/dist/EpFlex-Dx5C4Gc8.js +0 -4
- package/dist/EpFunnelChart-C6_M1nag.js +0 -4
- package/dist/EpHeader-B5jyGMDA.js +0 -4
- package/dist/EpHover-3fnZrdD6.js +0 -31
- package/dist/EpIcon-DDm9gGfm.js +0 -4
- package/dist/EpIframe-BNz3cawg.js +0 -4
- package/dist/EpImg-CxjLfziE.js +0 -4
- package/dist/EpInput-HmLHpLYh.js +0 -1168
- package/dist/EpInstructions-C0reDzIV.js +0 -4
- package/dist/EpIntroduction-C92mD-hu.js +0 -4
- package/dist/EpLineChart-Cm4W9z14.js +0 -4
- package/dist/EpLink-CGVS8yjO.js +0 -4
- package/dist/EpLinkVersion-CsGN9YS9.js +0 -4
- package/dist/EpModal-DuIZeI6V.js +0 -4
- package/dist/EpNothing-BDqIuSB9.js +0 -10
- package/dist/EpObjective-R1tWBwTe.js +0 -4
- package/dist/EpPieChart-CoTBcaaf.js +0 -4
- package/dist/EpQuestion-DmEcATq1.js +0 -4
- package/dist/EpQuote-BPCJBVbM.js +0 -4
- package/dist/EpRadio-TsUBsVoj.js +0 -4
- package/dist/EpRadioSummative-Cl9dVMJD.js +0 -4
- package/dist/EpReading-vOjzuYW7.js +0 -4
- package/dist/EpResource-Dbq_41hb.js +0 -4
- package/dist/EpScope-DIc4HvYy.js +0 -4
- package/dist/EpSection-Cb18CHq0.js +0 -4
- package/dist/EpSectionCols-B1P8ujg-.js +0 -4
- package/dist/EpSkeleton-vw7gDYoi.js +0 -4
- package/dist/EpSoftware-BAKbJhZg.js +0 -4
- package/dist/EpSpecificObjective-B5L6-OCN.js +0 -4
- package/dist/EpSpinner-rQzI6_Pe.js +0 -4
- package/dist/EpSummativeTable-Djg4DVSn.js +0 -4
- package/dist/EpSvg-DggY9PtW.js +0 -4
- package/dist/EpTable-CvhrvBOq.js +0 -4
- package/dist/EpTerm-C6HSHM0J.js +0 -4
- package/dist/EpText-CftDXaM-.js +0 -4
- package/dist/EpTimeLine-D7ks1LH_.js +0 -4
- package/dist/EpVideo-3MO0ao4H.js +0 -4
- package/dist/EpVideoPanopto-C-hIsXtV.js +0 -4
- package/dist/EpWordDef-BkwqmvfJ.js +0 -4
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { defineComponent as H, ref as f, computed as L, createElementBlock as n, openBlock as o, normalizeStyle as k, createElementVNode as r, createCommentVNode as g, toDisplayString as m, unref as v, normalizeClass as u, createVNode as j, Fragment as y, renderList as w } from "vue";
|
|
2
|
+
import { k as b, j as A, w as I, a as M } from "./index-CPs4nmaJ.js";
|
|
3
|
+
const q = { class: "font-bold text-3xl" }, E = ["innerHTML"], V = ["innerHTML"], z = ["src"], B = ["onClick"], N = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "flex-grow flex"
|
|
6
|
+
}, F = ["innerHTML"], O = ["src"], P = ["onClick"], Q = { class: "flex-grow flex flex-col items-center" }, R = {
|
|
7
|
+
class: "flex flex-col relative w-full gap-4 px-5 py-5 items-start overflow-auto border-l-4 border-gray-700",
|
|
8
|
+
style: { "max-width": "600px", height: "300px" }
|
|
9
|
+
}, D = /* @__PURE__ */ H({
|
|
10
|
+
__name: "EpBranchingScenario",
|
|
11
|
+
props: {
|
|
12
|
+
scenarioTitle: {},
|
|
13
|
+
initialInstruction: { default: null },
|
|
14
|
+
bgColor: {},
|
|
15
|
+
decisionTree: {},
|
|
16
|
+
transitionAnimation: { default: "fade" }
|
|
17
|
+
},
|
|
18
|
+
setup(T) {
|
|
19
|
+
const d = T, a = f([]), c = f(0), i = f(null), p = f(!0), C = (e) => {
|
|
20
|
+
let s = d.decisionTree;
|
|
21
|
+
if (e.length > 0)
|
|
22
|
+
for (let t = 0; t < e.length; t++)
|
|
23
|
+
s = s.options[e[t]];
|
|
24
|
+
return s !== d.decisionTree ? s : null;
|
|
25
|
+
}, _ = () => {
|
|
26
|
+
h.value && (a.value.length === 0 && (p.value = !0), a.value.pop(), i.value = C(a.value), c.value = a.value.length);
|
|
27
|
+
}, h = L(() => c.value === 0 || i.value && i.value.options && i.value.options.length > 0), $ = () => {
|
|
28
|
+
c.value = 0, i.value = null, a.value = [], p.value = !0;
|
|
29
|
+
}, S = (e) => {
|
|
30
|
+
let s = [{ question: d.decisionTree.rootQuestion, choice: d.decisionTree.options[e[0]].name }], t = d.decisionTree.options[e[0]];
|
|
31
|
+
if (e.length > 1)
|
|
32
|
+
for (let l = 1; l < e.length; l++) {
|
|
33
|
+
let x = t.question;
|
|
34
|
+
t = t.options[e[l]], s.push({ question: x, choice: t.name });
|
|
35
|
+
}
|
|
36
|
+
return s;
|
|
37
|
+
};
|
|
38
|
+
return (e, s) => (o(), n("div", null, [
|
|
39
|
+
p.value ? (o(), n("div", {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "m-4 mx-auto w-2/3 bg-gray-200 dark:bg-slate-800 rounded-md flex flex-col items-center justify-around p-4 fade",
|
|
42
|
+
style: k({ minHeight: "500px", backgroundColor: e.bgColor })
|
|
43
|
+
}, [
|
|
44
|
+
r("h1", q, m(e.scenarioTitle), 1),
|
|
45
|
+
e.initialInstruction ? (o(), n("div", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "text-center min-w-max m-3 flex flex-col items-center gap-3",
|
|
48
|
+
innerHTML: v(b)(e.initialInstruction)
|
|
49
|
+
}, null, 8, E)) : g("", !0),
|
|
50
|
+
r("button", {
|
|
51
|
+
class: "rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3",
|
|
52
|
+
onClick: s[0] || (s[0] = (t) => p.value = !1)
|
|
53
|
+
}, "Commencer")
|
|
54
|
+
], 4)) : (o(), n("div", {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: "m-4 mx-auto w-2/3 rounded-md flex flex-col p-4 bg-gray-200 dark:bg-slate-800",
|
|
57
|
+
style: k({ minHeight: "500px", backgroundColor: e.bgColor })
|
|
58
|
+
}, [
|
|
59
|
+
r("div", null, [
|
|
60
|
+
h.value ? (o(), n("button", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: u(`rounded bg-blue-500 text-white py-2 px-4 m-2 ${e.transitionAnimation}`),
|
|
63
|
+
onClick: _
|
|
64
|
+
}, [
|
|
65
|
+
j(A, {
|
|
66
|
+
"icon-path": v(I),
|
|
67
|
+
size: "25"
|
|
68
|
+
}, null, 8, ["icon-path"])
|
|
69
|
+
], 2)) : g("", !0)
|
|
70
|
+
]),
|
|
71
|
+
c.value === 0 ? (o(), n("div", {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: u(`flex-grow flex flex-col items-center justify-around ${e.transitionAnimation}`)
|
|
74
|
+
}, [
|
|
75
|
+
r("div", {
|
|
76
|
+
class: "text-center min-w-max m-3 flex flex-col items-center gap-3",
|
|
77
|
+
innerHTML: v(b)(e.decisionTree.rootQuestion)
|
|
78
|
+
}, null, 8, V),
|
|
79
|
+
e.decisionTree.imgSrc ? (o(), n("img", {
|
|
80
|
+
key: 0,
|
|
81
|
+
src: e.decisionTree.imgSrc,
|
|
82
|
+
class: "rounded",
|
|
83
|
+
width: "200"
|
|
84
|
+
}, null, 8, z)) : g("", !0),
|
|
85
|
+
r("div", {
|
|
86
|
+
class: u(`w-full justify-items-center mx-4 grid ${e.decisionTree.options.length <= 2 ? "grid-cols-2" : "grid-cols-3"}`)
|
|
87
|
+
}, [
|
|
88
|
+
(o(!0), n(y, null, w(e.decisionTree.options, (t, l) => (o(), n("button", {
|
|
89
|
+
class: u(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${l === e.decisionTree.options.length - 1 && l % 3 === 0 ? "col-span-3" : "col-span-1"}`),
|
|
90
|
+
key: l,
|
|
91
|
+
onClick: (x) => {
|
|
92
|
+
a.value.push(l), c.value++, i.value = t;
|
|
93
|
+
}
|
|
94
|
+
}, m(t.name), 11, B))), 128))
|
|
95
|
+
], 2)
|
|
96
|
+
], 2)) : (o(), n("div", N, [
|
|
97
|
+
h.value ? (o(), n("div", {
|
|
98
|
+
key: i.value.question,
|
|
99
|
+
class: u(`flex-grow flex flex-col items-center justify-around ${e.transitionAnimation}`)
|
|
100
|
+
}, [
|
|
101
|
+
r("div", {
|
|
102
|
+
class: "text-center min-w-max m-3 flex flex-col items-center gap-3",
|
|
103
|
+
innerHTML: v(b)(i.value.question)
|
|
104
|
+
}, null, 8, F),
|
|
105
|
+
i.value.imgSrc ? (o(), n("img", {
|
|
106
|
+
key: 0,
|
|
107
|
+
src: i.value.imgSrc,
|
|
108
|
+
class: "rounded",
|
|
109
|
+
width: "200"
|
|
110
|
+
}, null, 8, O)) : g("", !0),
|
|
111
|
+
r("div", {
|
|
112
|
+
class: u(`w-full justify-items-center mx-4 grid ${i.value.options.length <= 2 ? "grid-cols-2" : "grid-cols-3"}`)
|
|
113
|
+
}, [
|
|
114
|
+
(o(!0), n(y, null, w(i.value.options, (t, l) => (o(), n("button", {
|
|
115
|
+
class: u(`rounded bg-blue-500 text-white py-2 px-4 min-w-28 max-w-40 my-3 ${l === i.value.options.length - 1 && l % 3 === 0 ? "col-span-3" : "col-span-1"}`),
|
|
116
|
+
key: l,
|
|
117
|
+
onClick: (x) => {
|
|
118
|
+
a.value.push(l), c.value++, i.value = t;
|
|
119
|
+
}
|
|
120
|
+
}, m(t.name), 11, P))), 128))
|
|
121
|
+
], 2)
|
|
122
|
+
], 2)) : (o(), n("div", {
|
|
123
|
+
key: 1,
|
|
124
|
+
class: u(`flex-grow flex flex-col items-center ${e.transitionAnimation}`)
|
|
125
|
+
}, [
|
|
126
|
+
r("div", Q, [
|
|
127
|
+
s[1] || (s[1] = r("h1", { class: "my-2 font-bold text-3xl" }, "Vous avez terminé le scénario!", -1)),
|
|
128
|
+
s[2] || (s[2] = r("p", null, "Voici votre parcours", -1)),
|
|
129
|
+
r("div", R, [
|
|
130
|
+
(o(!0), n(y, null, w(S(a.value), (t, l) => (o(), n("div", {
|
|
131
|
+
key: l,
|
|
132
|
+
class: "path-item rounded bg-blue-500 text-white py-2 px-4 flex flex-col items-center"
|
|
133
|
+
}, [
|
|
134
|
+
r("u", null, m(t.question), 1),
|
|
135
|
+
r("p", null, m(t.choice), 1)
|
|
136
|
+
]))), 128))
|
|
137
|
+
])
|
|
138
|
+
]),
|
|
139
|
+
r("button", {
|
|
140
|
+
class: "rounded bg-blue-500 text-white py-2 px-4 min-w-28 my-3 col-span-1",
|
|
141
|
+
onClick: $
|
|
142
|
+
}, "Recommencer")
|
|
143
|
+
], 2))
|
|
144
|
+
]))
|
|
145
|
+
], 4))
|
|
146
|
+
]));
|
|
147
|
+
}
|
|
148
|
+
}), K = /* @__PURE__ */ M(D, [["__scopeId", "data-v-07c75699"]]);
|
|
149
|
+
export {
|
|
150
|
+
K as default
|
|
151
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, computed as b, toRefs as g,
|
|
1
|
+
import { defineComponent as y, computed as b, toRefs as g, createElementBlock as x, openBlock as v, withDirectives as _, createElementVNode as d, unref as e, vModelCheckbox as h, toDisplayString as k } from "vue";
|
|
2
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
3
|
__name: "EpCheckbox",
|
|
4
4
|
props: {
|
|
@@ -10,27 +10,27 @@ const V = { class: "cursor-pointer flex items-center rounded-md py-3 px-3 text-x
|
|
|
10
10
|
value: { default: void 0 }
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const o =
|
|
13
|
+
setup(r, { emit: s }) {
|
|
14
|
+
const o = r, n = s, t = b({
|
|
15
15
|
get() {
|
|
16
16
|
return o.modelValue;
|
|
17
17
|
},
|
|
18
18
|
set(a) {
|
|
19
|
-
|
|
19
|
+
n("update:modelValue", a);
|
|
20
20
|
}
|
|
21
|
-
}), { id: u, label: i, disabled: c, readonly: p, value:
|
|
22
|
-
return (a, l) => (
|
|
23
|
-
|
|
21
|
+
}), { id: u, label: i, disabled: c, readonly: p, value: m } = g(o);
|
|
22
|
+
return (a, l) => (v(), x("label", V, [
|
|
23
|
+
_(d("input", {
|
|
24
24
|
type: "checkbox",
|
|
25
25
|
id: e(u),
|
|
26
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
27
|
-
value: e(
|
|
26
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
|
|
27
|
+
value: e(m),
|
|
28
28
|
disabled: e(c),
|
|
29
29
|
readonly: e(p),
|
|
30
30
|
name: "notification-method",
|
|
31
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
32
|
}, null, 8, B), [
|
|
33
|
-
[
|
|
33
|
+
[h, t.value]
|
|
34
34
|
]),
|
|
35
35
|
d("span", C, k(e(i)), 1)
|
|
36
36
|
]));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as c, ref as u, onMounted as p,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as c, ref as u, onMounted as p, createElementBlock as r, openBlock as n, createStaticVNode as m, createElementVNode as a } from "vue";
|
|
2
|
+
import { L as g } from "./index-CPs4nmaJ.js";
|
|
3
3
|
const k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
title: "Switch to light mode"
|
|
@@ -18,13 +18,13 @@ const k = {
|
|
|
18
18
|
};
|
|
19
19
|
return p(() => {
|
|
20
20
|
s(t.value);
|
|
21
|
-
}), (e, o) => (
|
|
21
|
+
}), (e, o) => (n(), r("button", {
|
|
22
22
|
onClick: h,
|
|
23
23
|
class: "p-2 rounded-full transition-colors duration-300 hover:bg-gray-700 hover:scale-105"
|
|
24
24
|
}, [
|
|
25
|
-
t.value === "dark" ? (
|
|
25
|
+
t.value === "dark" ? (n(), r("span", k, o[0] || (o[0] = [
|
|
26
26
|
m('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun"><circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"></path></svg>', 1)
|
|
27
|
-
]))) : (
|
|
27
|
+
]))) : (n(), r("span", v, o[1] || (o[1] = [
|
|
28
28
|
a("svg", {
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
width: "24",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, toRefs as g, computed as b, ref as c,
|
|
1
|
+
import { defineComponent as x, toRefs as g, computed as b, ref as c, createElementBlock as n, openBlock as l, createElementVNode as o, toDisplayString as m, unref as u, createCommentVNode as k, Fragment as C, renderList as P, normalizeStyle as $, normalizeClass as w } from "vue";
|
|
2
2
|
const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src", "alt"], M = ["onClick"], E = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "absolute inset-0 flex items-center justify-center bg-black bg-opacity-5 px-2"
|
|
@@ -24,20 +24,20 @@ const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src",
|
|
|
24
24
|
}, y = () => {
|
|
25
25
|
a.value = !1, r.value = "";
|
|
26
26
|
};
|
|
27
|
-
return (e, t) => (
|
|
27
|
+
return (e, t) => (l(), n("div", null, [
|
|
28
28
|
o("h2", z, m(u(d)), 1),
|
|
29
29
|
o("div", B, [
|
|
30
30
|
o("img", {
|
|
31
31
|
src: u(h),
|
|
32
32
|
alt: `l'image de ${u(d)}`
|
|
33
33
|
}, null, 8, L),
|
|
34
|
-
(
|
|
34
|
+
(l(!0), n(C, null, P(_.value, (s) => (l(), n("button", {
|
|
35
35
|
key: s.id,
|
|
36
36
|
onClick: (D) => v(s.title, s.content),
|
|
37
|
-
class:
|
|
37
|
+
class: w("absolute text-white px-4 py-2 shadow-md bg-primary"),
|
|
38
38
|
style: $(`${s.position}`)
|
|
39
39
|
}, "+", 12, M))), 128)),
|
|
40
|
-
a.value ? (
|
|
40
|
+
a.value ? (l(), n("div", E, [
|
|
41
41
|
o("div", H, [
|
|
42
42
|
o("h4", null, m(p.value), 1),
|
|
43
43
|
o("div", {
|
|
@@ -49,7 +49,7 @@ const z = { class: "text-xl font-bold" }, B = { class: "relative" }, L = ["src",
|
|
|
49
49
|
class: "mt-4 bg-primary text-white px-2 py-1 text-sm"
|
|
50
50
|
}, m(e.labels.fermer), 1)
|
|
51
51
|
])
|
|
52
|
-
])) :
|
|
52
|
+
])) : k("", !0)
|
|
53
53
|
])
|
|
54
54
|
]));
|
|
55
55
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as i, computed as r, createElementBlock as u, openBlock as c, renderSlot as p, createElementVNode as d, unref as f, normalizeClass as m, normalizeStyle as x } from "vue";
|
|
2
|
+
import { k as h } from "./index-CPs4nmaJ.js";
|
|
3
|
+
const v = { class: "relative group overflow-hidden bg-cover bg-no-repeat" }, g = ["innerHTML"], _ = /* @__PURE__ */ i({
|
|
4
|
+
__name: "EpHover",
|
|
5
|
+
props: {
|
|
6
|
+
bgColor: { default: "beige" },
|
|
7
|
+
textColor: { default: "black" },
|
|
8
|
+
text: { default: "" },
|
|
9
|
+
animation: { default: "translateX" },
|
|
10
|
+
seeThrough: { type: Boolean },
|
|
11
|
+
textSize: {}
|
|
12
|
+
},
|
|
13
|
+
setup(a) {
|
|
14
|
+
const e = a, l = r(() => {
|
|
15
|
+
let t = "";
|
|
16
|
+
e.animation == "scale" ? t = "group-hover:scale-105" : e.animation == "translateY" ? t = "translate-y-96 group-hover:translate-y-0" : e.animation == "translateX" && (t = "translate-x-96 group-hover:translate-x-0");
|
|
17
|
+
let o = e.seeThrough ? "group-hover:opacity-90" : "group-hover:opacity-100", s = e.textSize ? `text-${e.textSize}` : "text-md";
|
|
18
|
+
return t + " " + o + " " + s;
|
|
19
|
+
}), n = r(() => ({
|
|
20
|
+
backgroundColor: e.bgColor,
|
|
21
|
+
color: e.textColor
|
|
22
|
+
}));
|
|
23
|
+
return (t, o) => (c(), u("div", v, [
|
|
24
|
+
p(t.$slots, "default"),
|
|
25
|
+
d("div", {
|
|
26
|
+
style: x(n.value),
|
|
27
|
+
class: m(`rounded-t-md absolute bottom-0 left-0 right-0 top-0 max-h-full w-full p-10 dark:text-white box-border whitespace-normal overflow-x-auto overflow-y-auto
|
|
28
|
+
flex flex-col opacity-0 transition duration-1000 ease-in-out ${l.value}`),
|
|
29
|
+
innerHTML: f(h)(t.text)
|
|
30
|
+
}, null, 14, g)
|
|
31
|
+
]));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
_
|
|
36
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as w, computed as l, toRefs as $, createElementBlock as s, openBlock as a, normalizeClass as d, createBlock as B, createCommentVNode as n, createElementVNode as r, unref as t, withCtx as S, renderSlot as i, toDisplayString as x, createVNode as T } from "vue";
|
|
2
|
+
import { _ as z } from "./EpHover.vue_vue_type_script_setup_true_lang-DDLIDTha.js";
|
|
3
|
+
import { u as p, i as E, j as N } from "./index-CPs4nmaJ.js";
|
|
4
|
+
const V = ["src"], j = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "mb-2 flex items-center justify-between dark:text-white"
|
|
7
|
+
}, A = { class: "text-2xl dark:text-white font-bold" }, W = { key: 0 }, D = { class: "dark:text-white" }, H = { class: "dark:text-white max-w-4xl" }, G = /* @__PURE__ */ w({
|
|
8
|
+
__name: "EpHoverCard",
|
|
9
|
+
props: {
|
|
10
|
+
title: { default: null },
|
|
11
|
+
subtitle: { default: null },
|
|
12
|
+
outlined: { type: Boolean, default: !1 },
|
|
13
|
+
flat: { type: Boolean, default: !1 },
|
|
14
|
+
icon: { default: null },
|
|
15
|
+
color: { default: null },
|
|
16
|
+
src: { default: null },
|
|
17
|
+
maxWidth: { default: "max-w-4xl" },
|
|
18
|
+
density: { default: "default" },
|
|
19
|
+
hoverContent: {},
|
|
20
|
+
hoverBg: { default: "" },
|
|
21
|
+
hoverAnimation: { default: "translateY" },
|
|
22
|
+
seeThrough: { type: Boolean },
|
|
23
|
+
textSize: {},
|
|
24
|
+
hoverColor: {}
|
|
25
|
+
},
|
|
26
|
+
setup(v) {
|
|
27
|
+
const e = v, b = l(() => e.flat ? "" : "shadow-lg"), k = l(() => e.outlined && e.color ? `border solid ${p("border", e.color)}` : e.outlined ? "border solid border-primary dark:border-primary" : "dark:border dark:solid dark:border-primary"), y = l(() => e.color && !e.outlined ? `${p("bg", e.color)}` : "bg-white text-black"), C = l(() => e.color && !e.outlined ? "text-white" : "text-gray-600"), _ = l(() => E[e.density]), g = l(() => `
|
|
28
|
+
${b.value}
|
|
29
|
+
${k.value}
|
|
30
|
+
${y.value}
|
|
31
|
+
${e.maxWidth}
|
|
32
|
+
rounded-md
|
|
33
|
+
dark:bg-dark
|
|
34
|
+
dark:text-white
|
|
35
|
+
my-4 `), { title: u, subtitle: c, icon: h, src: f, hoverContent: m } = $(e);
|
|
36
|
+
return (o, R) => (a(), s("div", {
|
|
37
|
+
class: d(`${g.value} mx-auto`)
|
|
38
|
+
}, [
|
|
39
|
+
t(f) && t(m) ? (a(), B(z, {
|
|
40
|
+
key: 0,
|
|
41
|
+
textColor: o.hoverColor,
|
|
42
|
+
textSize: o.textSize,
|
|
43
|
+
seeThrough: o.seeThrough,
|
|
44
|
+
bgColor: o.hoverBg,
|
|
45
|
+
animation: o.hoverAnimation,
|
|
46
|
+
text: t(m)
|
|
47
|
+
}, {
|
|
48
|
+
default: S(() => [
|
|
49
|
+
r("img", {
|
|
50
|
+
src: t(f),
|
|
51
|
+
class: "w-full rounded-t-md",
|
|
52
|
+
alt: "header card"
|
|
53
|
+
}, null, 8, V)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["textColor", "textSize", "seeThrough", "bgColor", "animation", "text"])) : n("", !0),
|
|
57
|
+
r("div", {
|
|
58
|
+
class: d(_.value)
|
|
59
|
+
}, [
|
|
60
|
+
t(u) || t(c) ? (a(), s("div", j, [
|
|
61
|
+
r("div", null, [
|
|
62
|
+
r("h3", A, x(t(u)), 1),
|
|
63
|
+
r("h4", {
|
|
64
|
+
class: d(`text-xs dark:text-white ${C.value}`)
|
|
65
|
+
}, x(t(c)), 3)
|
|
66
|
+
]),
|
|
67
|
+
t(h) ? (a(), s("div", W, [
|
|
68
|
+
T(N, { "icon-path": t(h) }, null, 8, ["icon-path"])
|
|
69
|
+
])) : n("", !0)
|
|
70
|
+
])) : n("", !0),
|
|
71
|
+
i(o.$slots, "card-header"),
|
|
72
|
+
r("div", D, [
|
|
73
|
+
i(o.$slots, "default")
|
|
74
|
+
]),
|
|
75
|
+
r("div", H, [
|
|
76
|
+
i(o.$slots, "card-actions")
|
|
77
|
+
])
|
|
78
|
+
], 2)
|
|
79
|
+
], 2));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
export {
|
|
83
|
+
G as default
|
|
84
|
+
};
|