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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Universite de Montreal - FAS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as x, computed as t, openBlock as r, createElementBlock as n, createElementVNode as s, normalizeClass as o, toDisplayString as f, createCommentVNode as h } from "vue";
|
|
2
|
+
const p = {
|
|
3
|
+
circle: {
|
|
4
|
+
small: " rounded-full w-12 h-12 text-5xl ",
|
|
5
|
+
middle: "rounded-full w-14 h-14 text-6xl",
|
|
6
|
+
big: "rounded-full w-16 h-16 text-7xl"
|
|
7
|
+
},
|
|
8
|
+
square: {
|
|
9
|
+
small: "w-12 h-12 text-5xl",
|
|
10
|
+
middle: "w-14 h-14 text-6xl",
|
|
11
|
+
big: "w-16 h-16 text-7xl"
|
|
12
|
+
},
|
|
13
|
+
rounded: {
|
|
14
|
+
small: "rounded w-12 h-12 text-5xl",
|
|
15
|
+
middle: "rounded w-14 h-14 text-6xl",
|
|
16
|
+
big: "rounded w-16 h-16 text-7xl"
|
|
17
|
+
}
|
|
18
|
+
}, v = { key: 0 }, _ = ["src", "alt"], w = { key: 1 }, b = /* @__PURE__ */ x({
|
|
19
|
+
__name: "EpAvatar",
|
|
20
|
+
props: {
|
|
21
|
+
src: { default: "" },
|
|
22
|
+
alt: { default: "" },
|
|
23
|
+
color: { default: "primary" },
|
|
24
|
+
size: { default: "small" },
|
|
25
|
+
variant: { default: "circle" },
|
|
26
|
+
name: { default: "" }
|
|
27
|
+
},
|
|
28
|
+
setup(c) {
|
|
29
|
+
const e = c, d = t(() => e.variant), u = t(() => e.size), a = t(() => {
|
|
30
|
+
var l;
|
|
31
|
+
return `${(l = p[d.value]) == null ? void 0 : l[u.value]}`;
|
|
32
|
+
}), i = t(() => " bg-" + e.color), m = t(() => e.name.length > 2 ? e.name.slice(0, 2) : e.name);
|
|
33
|
+
return (l, g) => (r(), n("div", null, [
|
|
34
|
+
e.src != "" ? (r(), n("div", v, [
|
|
35
|
+
s("img", {
|
|
36
|
+
src: e.src,
|
|
37
|
+
alt: e.alt,
|
|
38
|
+
class: o(`${a.value} `)
|
|
39
|
+
}, null, 10, _)
|
|
40
|
+
])) : e.src == "" ? (r(), n("div", w, [
|
|
41
|
+
s("div", {
|
|
42
|
+
class: o(`${a.value} ${i.value} justify-center font-bold text-white flex items-center`)
|
|
43
|
+
}, f(m.value), 3)
|
|
44
|
+
])) : h("", !0)
|
|
45
|
+
]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
b as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as u, computed as t, openBlock as f, createElementBlock as s, renderSlot as b, createElementVNode as c, normalizeClass as h, toDisplayString as m } from "vue";
|
|
2
|
+
const x = {
|
|
3
|
+
top_left: {
|
|
4
|
+
default: "-top-2 -left-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
|
|
5
|
+
dot: "-top-2 -left-2 absolute inline-flex items-center justify-center w-4 h-4 border-2 border-white rounded-full dark:border-gray-900",
|
|
6
|
+
hide: ""
|
|
7
|
+
},
|
|
8
|
+
top_right: {
|
|
9
|
+
default: "-top-2 -right-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
|
|
10
|
+
dot: "-top-2 -right-2 absolute inline-flex items-center justify-center w-4 h-4 font-bold font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
|
|
11
|
+
hide: ""
|
|
12
|
+
},
|
|
13
|
+
bottom_left: {
|
|
14
|
+
default: "-bottom-2 -left-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
|
|
15
|
+
dot: "-bottom-2 -left-2 absolute inline-flex items-center justify-center w-4 h-4 font-bold border-2 border-white rounded-full dark:border-gray-900",
|
|
16
|
+
hide: ""
|
|
17
|
+
},
|
|
18
|
+
bottom_right: {
|
|
19
|
+
default: "-bottom-2 -right-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
|
|
20
|
+
dot: "-bottom-2 -right-2 absolute inline-flex items-center justify-center w-4 h-4 font-bold border-2 border-white rounded-full dark:border-gray-900",
|
|
21
|
+
hide: ""
|
|
22
|
+
}
|
|
23
|
+
}, p = { class: "group relative w-max" }, w = /* @__PURE__ */ u({
|
|
24
|
+
__name: "EpBadge",
|
|
25
|
+
props: {
|
|
26
|
+
content: {},
|
|
27
|
+
mode: { default: "default" },
|
|
28
|
+
placement: { default: "top_right" },
|
|
29
|
+
visibility: { default: "true" },
|
|
30
|
+
color: { default: "primary" },
|
|
31
|
+
maxValue: { default: 0 }
|
|
32
|
+
},
|
|
33
|
+
setup(o) {
|
|
34
|
+
const e = o, l = t(() => e.placement), n = t(() => {
|
|
35
|
+
if (e.mode == "dot")
|
|
36
|
+
return "";
|
|
37
|
+
if (e.visibility == "false")
|
|
38
|
+
return "";
|
|
39
|
+
if (e.content != 0)
|
|
40
|
+
return e.content > e.maxValue && e.maxValue != 0 ? e.maxValue + "+" : e.content;
|
|
41
|
+
}), d = t(() => e.visibility == "true" ? e.mode : "hide"), i = t(() => "bg-" + e.color), a = t(() => {
|
|
42
|
+
var r;
|
|
43
|
+
return `${(r = x[l.value]) == null ? void 0 : r[d.value]}`;
|
|
44
|
+
});
|
|
45
|
+
return (r, y) => (f(), s("div", p, [
|
|
46
|
+
b(r.$slots, "default"),
|
|
47
|
+
c("div", {
|
|
48
|
+
class: h(`${a.value} ${i.value}`)
|
|
49
|
+
}, m(n.value), 3)
|
|
50
|
+
]));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
w as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as y, computed as b, toRefs as g, openBlock as x, createElementBlock as v, withDirectives as _, createElementVNode as d, unref as e, vModelCheckbox as h, toDisplayString as k } from "vue";
|
|
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
|
+
__name: "EpCheckbox",
|
|
4
|
+
props: {
|
|
5
|
+
id: { default: "0" },
|
|
6
|
+
label: { default: "check" },
|
|
7
|
+
modelValue: { type: [String, Array, Boolean], default: "" },
|
|
8
|
+
disabled: { type: Boolean, default: !1 },
|
|
9
|
+
readonly: { type: Boolean, default: !1 },
|
|
10
|
+
value: { default: void 0 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(r, { emit: s }) {
|
|
14
|
+
const o = r, n = s, t = b({
|
|
15
|
+
get() {
|
|
16
|
+
return o.modelValue;
|
|
17
|
+
},
|
|
18
|
+
set(a) {
|
|
19
|
+
n("update:modelValue", a);
|
|
20
|
+
}
|
|
21
|
+
}), { id: u, label: i, disabled: c, readonly: p, value: m } = g(o);
|
|
22
|
+
return (a, l) => (x(), v("label", V, [
|
|
23
|
+
_(d("input", {
|
|
24
|
+
type: "checkbox",
|
|
25
|
+
id: e(u),
|
|
26
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
|
|
27
|
+
value: e(m),
|
|
28
|
+
disabled: e(c),
|
|
29
|
+
readonly: e(p),
|
|
30
|
+
name: "notification-method",
|
|
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
|
+
}, null, 8, B), [
|
|
33
|
+
[h, t.value]
|
|
34
|
+
]),
|
|
35
|
+
d("span", C, k(e(i)), 1)
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
D as default
|
|
41
|
+
};
|