ep-lib-ts 0.1.34 → 0.1.35
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-a228cf2d.js → BgAudio-bf61de51.js} +1 -1
- package/dist/{DisplayBox-0b5dad43.js → DisplayBox-89b549f2.js} +1 -1
- package/dist/{EpAlert-6989df03.js → EpAlert-97de6de7.js} +1 -1
- package/dist/{EpAudio-ebe996a9.js → EpAudio-9ab815f1.js} +1 -1
- package/dist/EpBadge-dd8e857c.js +6 -0
- package/dist/{EpBarChart-52c346de.js → EpBarChart-0bbf2ef2.js} +1 -1
- package/dist/EpBtn-18387d10.js +6 -0
- package/dist/EpCard-31f18d9b.js +6 -0
- package/dist/EpChip-32ef487d.js +6 -0
- package/dist/EpContentSlider-d64d71f8.js +6 -0
- package/dist/EpDivider-233fb36b.js +6 -0
- package/dist/{EpEdu-ce928b82.js → EpEdu-5f3c59a4.js} +1 -1
- package/dist/EpFlex-eeda64e3.js +6 -0
- package/dist/EpHeader-333e073c.js +6 -0
- package/dist/{EpIcon-4f8bc342.js → EpIcon-3d10cc80.js} +1 -1
- package/dist/EpIframe-2ffab515.js +6 -0
- package/dist/EpImg-f1ed48bc.js +6 -0
- package/dist/{EpInput-c8787b2d.js → EpInput-8b77b684.js} +1 -1
- package/dist/EpLineChart-07cccc87.js +6 -0
- package/dist/EpLink-4ebb0f75.js +6 -0
- package/dist/EpLinkVersion-9504b6f0.js +6 -0
- package/dist/{EpList-a99a3dd0.js → EpList-d8433794.js} +1 -1
- package/dist/{EpListitem-457e39b7.js → EpListitem-aa4a0f95.js} +6 -6
- package/dist/EpModal-e17bd732.js +6 -0
- package/dist/{EpNothing-acde1df4.js → EpNothing-30ef41e6.js} +1 -1
- package/dist/EpPieChart-7b5c7d64.js +6 -0
- package/dist/EpQuestion-90a88ae5.js +6 -0
- package/dist/EpQuote-26dbbb13.js +6 -0
- package/dist/EpRadio-6eddd7b3.js +6 -0
- package/dist/EpReading-b9565583.js +6 -0
- package/dist/EpResource-8302d3d8.js +6 -0
- package/dist/{EpScope-3d80861f.js → EpScope-b84566a4.js} +1 -1
- package/dist/EpSection-ddd3a8b3.js +6 -0
- package/dist/{EpSelect-6089fdcb.js → EpSelect-63be92d8.js} +1 -1
- package/dist/EpSkeleton-1c722632.js +6 -0
- package/dist/EpSoftware-80fc1d51.js +6 -0
- package/dist/EpSpinner-55270b38.js +6 -0
- package/dist/EpSvg-89224f2a.js +6 -0
- package/dist/EpSwitch-9feee893.js +64 -0
- package/dist/EpTable-934c61e4.js +6 -0
- package/dist/EpTerm-cc9dc6c5.js +6 -0
- package/dist/EpText-f2758226.js +6 -0
- package/dist/EpTimeLine-94895947.js +6 -0
- package/dist/EpVideo-a581818c.js +6 -0
- package/dist/EpVideoPanopto-3681c5d8.js +6 -0
- package/dist/components/forms/EpSwitch.vue.d.ts +7 -10
- package/dist/ep-lib-ts.js +1 -1
- package/dist/ep-lib-ts.umd.cjs +11 -8
- package/dist/{index-90cd7bf2.js → index-fbf251b4.js} +8 -8
- package/dist/types/Switch.d.ts +11 -0
- package/package.json +1 -1
- package/src/components/basics/EpListitem.vue +1 -1
- package/src/components/forms/EpSwitch.vue +36 -26
- package/src/components/interactions/EpQuestion.vue +1 -1
- package/src/components/signages/EpHeader.vue +3 -3
- package/dist/EpBadge-de5e90c5.js +0 -6
- package/dist/EpBtn-255af003.js +0 -6
- package/dist/EpCard-6dc99a29.js +0 -6
- package/dist/EpChip-ecaf5fdd.js +0 -6
- package/dist/EpContentSlider-67ee8ff1.js +0 -6
- package/dist/EpDivider-399403ef.js +0 -6
- package/dist/EpFlex-ab0b2002.js +0 -6
- package/dist/EpHeader-c1f58215.js +0 -6
- package/dist/EpIframe-c1451be2.js +0 -6
- package/dist/EpImg-6068534f.js +0 -6
- package/dist/EpLineChart-740ffcc2.js +0 -6
- package/dist/EpLink-2414e304.js +0 -6
- package/dist/EpLinkVersion-43c07ab6.js +0 -6
- package/dist/EpModal-ef8a63d2.js +0 -6
- package/dist/EpPieChart-9dcb459f.js +0 -6
- package/dist/EpQuestion-aaa1f8bb.js +0 -6
- package/dist/EpQuote-5b4015f4.js +0 -6
- package/dist/EpRadio-227b82c2.js +0 -6
- package/dist/EpReading-58b135fb.js +0 -6
- package/dist/EpResource-10cc639f.js +0 -6
- package/dist/EpSection-f6695955.js +0 -6
- package/dist/EpSkeleton-0827c884.js +0 -6
- package/dist/EpSoftware-1f53d7fb.js +0 -6
- package/dist/EpSpinner-7f89aad2.js +0 -6
- package/dist/EpSvg-5d7df4f2.js +0 -6
- package/dist/EpSwitch-005fe90a.js +0 -47
- package/dist/EpTable-c8f1f97d.js +0 -6
- package/dist/EpTerm-3d4f8bd2.js +0 -6
- package/dist/EpText-9f05234d.js +0 -6
- package/dist/EpTimeLine-49b8ac13.js +0 -6
- package/dist/EpVideo-37c08690.js +0 -6
- package/dist/EpVideoPanopto-bd41e61d.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-fbf251b4.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-fbf251b4.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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, useSlots as h, computed as e, openBlock as n, createElementBlock as o, normalizeClass as v, createElementVNode as a, renderSlot as l, createCommentVNode as i } from "vue";
|
|
2
2
|
const y = { class: "flex items-center" }, C = {
|
|
3
3
|
key: 0,
|
|
4
|
-
class: "mr-2 min-w-fit"
|
|
4
|
+
class: "mr-2 min-w-fit px-2"
|
|
5
5
|
}, _ = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "px-2"
|
|
8
|
-
},
|
|
8
|
+
}, b = /* @__PURE__ */ m({
|
|
9
9
|
__name: "EpListitem",
|
|
10
10
|
props: {
|
|
11
11
|
type: { default: "default" },
|
|
@@ -14,9 +14,9 @@ const y = { class: "flex items-center" }, C = {
|
|
|
14
14
|
setup(u) {
|
|
15
15
|
const r = u, t = h();
|
|
16
16
|
console.log(t);
|
|
17
|
-
const c = e(() => !!t.leftContent), d = e(() => !!t.rightContent), f = e(() => r.type == "nested" ? "px-10" : ""),
|
|
17
|
+
const c = e(() => !!t.leftContent), d = e(() => !!t.rightContent), f = e(() => r.type == "nested" ? "px-10" : ""), p = e(() => r.disabled == "true" ? "opacity-75 text-slate-500 " : "hover:bg-gray-200 active:bg-gray-300");
|
|
18
18
|
return (s, g) => (n(), o("li", {
|
|
19
|
-
class: v(`flex flex-row flex-nowrap justify-between font-medium items-center py-4 ${f.value} ${
|
|
19
|
+
class: v(`flex flex-row flex-nowrap justify-between font-medium items-center py-4 ${f.value} ${p.value}`)
|
|
20
20
|
}, [
|
|
21
21
|
a("div", y, [
|
|
22
22
|
c.value ? (n(), o("div", C, [
|
|
@@ -33,5 +33,5 @@ const y = { class: "flex items-center" }, C = {
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
b as default
|
|
37
37
|
};
|
|
@@ -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-fbf251b4.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,64 @@
|
|
|
1
|
+
import { defineComponent as p, computed as g, toRefs as f, openBlock as b, createElementBlock as k, createElementVNode as r, unref as e, normalizeClass as h, toDisplayString as y } from "vue";
|
|
2
|
+
const m = {
|
|
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
|
+
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
|
+
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",
|
|
6
|
+
accent: "peer-focus:ring-bg-accent-light dark:peer-focus:ring-bg-accent-dark rounded-full peer dark:border-gray-600 peer-checked:bg-accent",
|
|
7
|
+
info: "peer-focus:ring-bg-info-light dark:peer-focus:ring-bg-info-dark rounded-full peer dark:border-gray-600 peer-checked:bg-info",
|
|
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
|
+
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
|
+
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
|
+
}, _ = { class: "relative inline-flex items-center cursor-pointer" }, w = ["id", "checked", "value", "disabled"], x = ["for"], S = /* @__PURE__ */ p({
|
|
12
|
+
__name: "EpSwitch",
|
|
13
|
+
props: {
|
|
14
|
+
id: { default: "toggle" },
|
|
15
|
+
type: { default: "base" },
|
|
16
|
+
label: { default: "" },
|
|
17
|
+
modelValue: { type: Boolean, default: !1 },
|
|
18
|
+
disabled: { type: Boolean, default: !1 },
|
|
19
|
+
readonly: { type: Boolean, default: !1 },
|
|
20
|
+
checked: { type: Boolean, default: !1 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(c, { emit: n }) {
|
|
24
|
+
const a = c, o = (t) => {
|
|
25
|
+
n("update:modelValue", t.target.checked);
|
|
26
|
+
}, s = g(() => `${m[a.type]}`), {
|
|
27
|
+
id: d,
|
|
28
|
+
label: u,
|
|
29
|
+
type: v,
|
|
30
|
+
modelValue: l,
|
|
31
|
+
disabled: i,
|
|
32
|
+
readonly: V,
|
|
33
|
+
checked: B
|
|
34
|
+
} = f(a);
|
|
35
|
+
return (t, C) => (b(), k("div", null, [
|
|
36
|
+
r("label", _, [
|
|
37
|
+
r("input", {
|
|
38
|
+
id: e(d),
|
|
39
|
+
type: "checkbox",
|
|
40
|
+
checked: e(l),
|
|
41
|
+
value: e(l),
|
|
42
|
+
onInput: o,
|
|
43
|
+
class: "sr-only peer",
|
|
44
|
+
role: "switch",
|
|
45
|
+
disabled: e(i),
|
|
46
|
+
onChange: o
|
|
47
|
+
}, null, 40, w),
|
|
48
|
+
r("div", {
|
|
49
|
+
class: h(`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4
|
|
50
|
+
${s.value} dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full
|
|
51
|
+
peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px]
|
|
52
|
+
after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all `)
|
|
53
|
+
}, null, 2)
|
|
54
|
+
]),
|
|
55
|
+
r("label", {
|
|
56
|
+
class: "inline-block pl-[0.15rem] hover:cursor-pointer",
|
|
57
|
+
for: e(d)
|
|
58
|
+
}, y(e(u)), 9, x)
|
|
59
|
+
]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
S as default
|
|
64
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { SwitchColorVariant } from "../../types/Switch";
|
|
1
2
|
interface Props {
|
|
2
3
|
id?: string;
|
|
4
|
+
type?: SwitchColorVariant;
|
|
3
5
|
label?: string;
|
|
4
6
|
modelValue?: boolean;
|
|
5
|
-
type?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
readonly?: boolean;
|
|
9
9
|
checked?: boolean;
|
|
@@ -11,34 +11,31 @@ interface Props {
|
|
|
11
11
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
12
|
id: string;
|
|
13
13
|
label: string;
|
|
14
|
-
modelValue: boolean;
|
|
15
14
|
type: string;
|
|
16
|
-
|
|
15
|
+
modelValue: boolean;
|
|
17
16
|
disabled: boolean;
|
|
18
17
|
readonly: boolean;
|
|
19
18
|
checked: boolean;
|
|
20
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (
|
|
20
|
+
"update:modelValue": (...args: any[]) => void;
|
|
22
21
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
23
22
|
id: string;
|
|
24
23
|
label: string;
|
|
25
|
-
modelValue: boolean;
|
|
26
24
|
type: string;
|
|
27
|
-
|
|
25
|
+
modelValue: boolean;
|
|
28
26
|
disabled: boolean;
|
|
29
27
|
readonly: boolean;
|
|
30
28
|
checked: boolean;
|
|
31
29
|
}>>> & {
|
|
32
|
-
"onUpdate:modelValue"?: ((
|
|
30
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
31
|
}, {
|
|
34
32
|
label: string;
|
|
35
|
-
type:
|
|
33
|
+
type: "base" | "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info";
|
|
36
34
|
disabled: boolean;
|
|
37
35
|
modelValue: boolean;
|
|
38
36
|
id: string;
|
|
39
37
|
readonly: boolean;
|
|
40
38
|
checked: boolean;
|
|
41
|
-
placeholder: string;
|
|
42
39
|
}, {}>;
|
|
43
40
|
export default _default;
|
|
44
41
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
package/dist/ep-lib-ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as e, I as o, z as r, c as i, o as t, d as n, e as d, Q as l, f as m, w as C, g as c, r as S, h as u, J as g, i as h, A as x, j as L, R as T, p as f, B as k, C as A, x as B, q as I, y as b, K as P, b as Q, s as R, t as V, k as v, L as w, D, l as F, E as H, m as K, P as j, _ as q, n as y, F as z, G, H as J } from "./index-
|
|
1
|
+
import { O as e, I as o, z as r, c as i, o as t, d as n, e as d, Q as l, f as m, w as C, g as c, r as S, h as u, J as g, i as h, A as x, j as L, R as T, p as f, B as k, C as A, x as B, q as I, y as b, K as P, b as Q, s as R, t as V, k as v, L as w, D, l as F, E as H, m as K, P as j, _ as q, n as y, F as z, G, H as J } from "./index-fbf251b4.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
export {
|