ep-lib-ts 0.1.30 → 0.1.33
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-03ab87a2.js +6 -0
- package/dist/DisplayBox-2a24a5ba.js +6 -0
- package/dist/EpAlert-174fcb58.js +6 -0
- package/dist/EpAudio-3273480f.js +6 -0
- package/dist/EpAvatar-b8e6cc02.js +50 -0
- package/dist/EpBadge-1001b3f1.js +6 -0
- package/dist/EpBadge-f5faab43.js +55 -0
- package/dist/EpBarChart-9f7bfb0a.js +6 -0
- package/dist/EpBtn-d2ee85de.js +6 -0
- package/dist/EpCard-eb83211e.js +6 -0
- package/dist/EpChip-916932cb.js +6 -0
- package/dist/EpContentSlider-0cf1508d.js +6 -0
- package/dist/EpDivider-e7cb7f8a.js +6 -0
- package/dist/EpEdu-5a7baed7.js +6 -0
- package/dist/EpFlex-5a98c073.js +6 -0
- package/dist/EpHeader-6434c484.js +6 -0
- package/dist/EpIcon-ee0a43f7.js +6 -0
- package/dist/EpIframe-22b07140.js +6 -0
- package/dist/EpImg-a6041dc8.js +6 -0
- package/dist/{EpInput-81ae2a5e.js → EpInput-84694089.js} +4 -3
- package/dist/EpLineChart-2575d63d.js +6 -0
- package/dist/EpLink-973bc022.js +6 -0
- package/dist/EpLinkVersion-24002433.js +6 -0
- package/dist/EpModal-c85f0d51.js +6 -0
- package/dist/EpNothing-97d18b42.js +11 -0
- package/dist/EpPieChart-0eb59e41.js +6 -0
- package/dist/EpQuestion-9a2344da.js +6 -0
- package/dist/EpQuote-aaa938d0.js +6 -0
- package/dist/EpRadio-57e34517.js +6 -0
- package/dist/EpReading-e17c098f.js +6 -0
- package/dist/EpResource-2adf0ce4.js +6 -0
- package/dist/EpScope-2eceb2e9.js +6 -0
- package/dist/EpSection-d658f245.js +6 -0
- package/dist/{EpSelect-0bc80667.js → EpSelect-c508997b.js} +4 -3
- package/dist/EpSkeleton-fccbc6be.js +6 -0
- package/dist/EpSoftware-32ca0529.js +6 -0
- package/dist/EpSpinner-d8682586.js +6 -0
- package/dist/EpSvg-7d74c2b2.js +6 -0
- package/dist/EpTable-e5bd6c19.js +6 -0
- package/dist/EpTerm-427f5b86.js +6 -0
- package/dist/EpText-f96b3863.js +6 -0
- package/dist/EpTimeLine-54cbf65e.js +6 -0
- package/dist/EpTooltip-05e1d8fe.js +99 -0
- package/dist/EpVideo-9a9ce1e1.js +6 -0
- package/dist/EpVideoPanopto-f42c01cc.js +6 -0
- package/dist/components/basics/EpAvatar.vue.d.ts +51 -0
- package/dist/components/basics/EpBadge.vue.d.ts +33 -34
- package/dist/components/basics/EpBtn.vue.d.ts +54 -94
- package/dist/components/basics/EpCard.vue.d.ts +51 -76
- package/dist/components/basics/EpChip.vue.d.ts +44 -59
- package/dist/components/basics/EpDivider.vue.d.ts +38 -44
- package/dist/components/basics/EpIcon.vue.d.ts +30 -33
- package/dist/components/basics/EpImg.vue.d.ts +40 -73
- package/dist/components/basics/EpSection.vue.d.ts +39 -73
- package/dist/components/basics/EpSpinner.vue.d.ts +34 -35
- package/dist/components/basics/EpTable.vue.d.ts +22 -22
- package/dist/components/basics/EpText.vue.d.ts +28 -31
- package/dist/components/charts/EpBarChart.vue.d.ts +35 -69
- package/dist/components/charts/EpLineChart.vue.d.ts +35 -69
- package/dist/components/charts/EpPieChart.vue.d.ts +37 -66
- package/dist/components/educationals/EpEdu.vue.d.ts +41 -66
- package/dist/components/educationals/EpReading.vue.d.ts +65 -140
- package/dist/components/educationals/EpResource.vue.d.ts +30 -32
- package/dist/components/educationals/EpScope.vue.d.ts +28 -19
- package/dist/components/forms/EpCheckbox.vue.d.ts +44 -60
- package/dist/components/forms/EpInput.vue.d.ts +51 -84
- package/dist/components/forms/EpRadio.vue.d.ts +46 -59
- package/dist/components/forms/EpSelect.vue.d.ts +47 -73
- package/dist/components/forms/EpSwitch.vue.d.ts +47 -68
- package/dist/components/forms/EpTextarea.vue.d.ts +50 -76
- package/dist/components/forms/EpToggle.vue.d.ts +47 -68
- package/dist/components/interactions/EpAccordeon.vue.d.ts +37 -42
- package/dist/components/interactions/EpContentSlider.vue.d.ts +20 -10
- package/dist/components/interactions/EpModal.vue.d.ts +47 -52
- package/dist/components/interactions/EpQuestion.vue.d.ts +45 -84
- package/dist/components/interactions/EpTooltip.vue.d.ts +48 -0
- package/dist/components/medias/EpAudio.vue.d.ts +41 -68
- package/dist/components/medias/EpCarousel.vue.d.ts +32 -35
- package/dist/components/medias/EpIframe.vue.d.ts +37 -54
- package/dist/components/medias/EpKatex.vue.d.ts +32 -49
- package/dist/components/medias/EpLink.vue.d.ts +41 -68
- package/dist/components/medias/EpLinkVersion.vue.d.ts +27 -27
- package/dist/components/medias/EpSoftware.vue.d.ts +47 -82
- package/dist/components/medias/EpSvg.vue.d.ts +31 -41
- package/dist/components/medias/EpTerm.vue.d.ts +41 -69
- package/dist/components/medias/EpTimeLine.vue.d.ts +22 -24
- package/dist/components/medias/EpVideo.vue.d.ts +38 -60
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +38 -60
- package/dist/components/signages/EpAlert.vue.d.ts +36 -42
- package/dist/components/signages/EpBadge.vue.d.ts +56 -0
- package/dist/components/signages/EpHeader.vue.d.ts +53 -94
- package/dist/components/signages/EpQuote.vue.d.ts +31 -27
- package/dist/components/signages/EpSkeleton.vue.d.ts +40 -1
- package/dist/components/tools/BgAudio.vue.d.ts +26 -11
- package/dist/components/tools/TimelineItem.vue.d.ts +32 -33
- package/dist/ep-lib-ts.js +35 -33
- package/dist/ep-lib-ts.umd.cjs +31 -35
- package/dist/{index-78ac7d74.js → index-a7b2a6d7.js} +3544 -3532
- package/dist/index.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/types/Avatar.d.ts +18 -0
- package/dist/types/Badge.d.ts +23 -0
- package/dist/types/Tooltip.d.ts +75 -0
- package/package.json +2 -2
- package/src/components/basics/EpAvatar.vue +72 -0
- package/src/components/basics/EpText.vue +1 -1
- package/src/components/educationals/EpEdu.vue +1 -0
- package/src/components/educationals/EpReading.vue +2 -2
- package/src/components/interactions/EpQuestion.vue +1 -1
- package/src/components/interactions/EpTooltip.vue +164 -0
- package/src/components/medias/EpCarousel.vue +21 -18
- package/src/components/signages/EpBadge.vue +82 -0
- package/src/components/signages/EpQuote.vue +53 -37
- package/src/components/signages/EpSkeleton.vue +36 -9
- package/src/components/tools/TimelineItem.vue +1 -1
- package/dist/BgAudio-820c0a39.js +0 -5
- package/dist/DisplayBox-05ba8755.js +0 -5
- package/dist/EpAlert-f32ad986.js +0 -5
- package/dist/EpAudio-80dbaf40.js +0 -5
- package/dist/EpBadge-cb67d4b1.js +0 -5
- package/dist/EpBarChart-710b4ff4.js +0 -5
- package/dist/EpBtn-5c939189.js +0 -5
- package/dist/EpCard-3c75fd57.js +0 -5
- package/dist/EpChip-75b64fd5.js +0 -5
- package/dist/EpContentSlider-5f4ed454.js +0 -5
- package/dist/EpDivider-05f71886.js +0 -5
- package/dist/EpEdu-b7e92524.js +0 -5
- package/dist/EpFlex-f7103829.js +0 -5
- package/dist/EpHeader-564a55a0.js +0 -5
- package/dist/EpIcon-5c184634.js +0 -5
- package/dist/EpIframe-e47cdf06.js +0 -5
- package/dist/EpImg-4ac885e3.js +0 -5
- package/dist/EpLineChart-468b3ed7.js +0 -5
- package/dist/EpLink-9f599e06.js +0 -5
- package/dist/EpLinkVersion-9a5026a6.js +0 -5
- package/dist/EpModal-8208c45a.js +0 -5
- package/dist/EpNothing-2c04e40e.js +0 -10
- package/dist/EpPieChart-0b7f0752.js +0 -5
- package/dist/EpQuestion-f5c0082f.js +0 -5
- package/dist/EpQuote-c51e2778.js +0 -5
- package/dist/EpRadio-edd52b6b.js +0 -5
- package/dist/EpReading-19d5e14b.js +0 -5
- package/dist/EpResource-d05a5a4a.js +0 -5
- package/dist/EpScope-e4c2d014.js +0 -5
- package/dist/EpSection-97392b3b.js +0 -5
- package/dist/EpSkeleton-9542d360.js +0 -10
- package/dist/EpSoftware-3c6dce6e.js +0 -5
- package/dist/EpSpinner-d47f52b4.js +0 -5
- package/dist/EpSvg-c08f08c7.js +0 -5
- package/dist/EpTable-15f79011.js +0 -5
- package/dist/EpTerm-892a5db3.js +0 -5
- package/dist/EpText-466d34a5.js +0 -5
- package/dist/EpTimeLine-7c0f2078.js +0 -5
- package/dist/EpVideo-ddedb1ac.js +0 -5
- package/dist/EpVideoPanopto-2d7bdf5f.js +0 -5
|
@@ -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-16 h-16 text-5xl ",
|
|
5
|
+
middle: "rounded-full w-20 h-20 text-6xl",
|
|
6
|
+
big: "rounded-full w-24 h-24 text-7xl"
|
|
7
|
+
},
|
|
8
|
+
square: {
|
|
9
|
+
small: "w-16 h-16 text-5xl",
|
|
10
|
+
middle: "w-20 h-20 text-6xl",
|
|
11
|
+
big: "w-24 h-24 text-7xl"
|
|
12
|
+
},
|
|
13
|
+
rounded: {
|
|
14
|
+
small: "rounded w-16 h-16 text-5xl",
|
|
15
|
+
middle: "rounded w-20 h-20 text-6xl",
|
|
16
|
+
big: "rounded w-24 h-24 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
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
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-a7b2a6d7.js";
|
|
3
|
+
import "vue-router";
|
|
3
4
|
function pt() {
|
|
4
5
|
return Ee().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
5
6
|
}
|
|
@@ -1101,7 +1102,7 @@ function ae(e, t) {
|
|
|
1101
1102
|
if (e)
|
|
1102
1103
|
return e.props[t];
|
|
1103
1104
|
}
|
|
1104
|
-
const pr = { class: "w-72" }, hr = { class: "relative h-10 w-full min-w-[200px]" }, mr = /* @__PURE__ */ P("div", { class: "absolute top-2/4 right-3 grid h-5 w-5 -translate-y-2/4 place-items-center text-neutral-400" }, null, -1), br = ["id", "type", "disabled"], gr = ["for"], yr = { class: "my-3" }, _r = ["name", "id"], Vr = { key: 0 },
|
|
1105
|
+
const pr = { class: "w-72" }, hr = { class: "relative h-10 w-full min-w-[200px]" }, mr = /* @__PURE__ */ P("div", { class: "absolute top-2/4 right-3 grid h-5 w-5 -translate-y-2/4 place-items-center text-neutral-400" }, null, -1), br = ["id", "type", "disabled"], gr = ["for"], yr = { class: "my-3" }, _r = ["name", "id"], Vr = { key: 0 }, Ar = /* @__PURE__ */ ot({
|
|
1105
1106
|
__name: "EpInput",
|
|
1106
1107
|
props: {
|
|
1107
1108
|
name: {},
|
|
@@ -1167,5 +1168,5 @@ const pr = { class: "w-72" }, hr = { class: "relative h-10 w-full min-w-[200px]"
|
|
|
1167
1168
|
}
|
|
1168
1169
|
});
|
|
1169
1170
|
export {
|
|
1170
|
-
|
|
1171
|
+
Ar as default
|
|
1171
1172
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { openBlock as o, createElementBlock as t } from "vue";
|
|
2
|
+
import { a as e } from "./index-a7b2a6d7.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
const r = {};
|
|
5
|
+
function n(c, a) {
|
|
6
|
+
return o(), t("div", null, " no data ");
|
|
7
|
+
}
|
|
8
|
+
const m = /* @__PURE__ */ e(r, [["render", n]]);
|
|
9
|
+
export {
|
|
10
|
+
m as default
|
|
11
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
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-a7b2a6d7.js";
|
|
3
|
+
import "vue-router";
|
|
3
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 = [
|
|
4
5
|
i
|
|
5
|
-
], c = /* @__PURE__ */ e("label", { class: "before:content[' '] after:content[' '] pointer-events-none absolute left-0 border-red-500 -top-1.5 flex h-full w-full select-none text-[11px] font-normal leading-tight text-blue-gray-400 transition-all before:pointer-events-none before:mt-[6.5px] before:mr-1 before:box-border before:block before:h-1.5 before:w-2.5 before:rounded-tl-md before:border-t before:border-l before:border-blue-gray-200 before:transition-all after:pointer-events-none after:mt-[6.5px] after:ml-1 after:box-border after:block after:h-1.5 after:w-2.5 after:flex-grow after:rounded-tr-md after:border-t after:border-r after:border-blue-gray-200 after:transition-all peer-placeholder-shown:text-sm peer-placeholder-shown:leading-[3.75] peer-placeholder-shown:text-blue-gray-500 peer-placeholder-shown:before:border-transparent peer-placeholder-shown:after:border-transparent peer-focus:text-[11px] peer-focus:leading-tight peer-focus:text-blue-500 peer-focus:before:border-t-2 peer-focus:before:border-l-2 peer-focus:before:border-blue-500 peer-focus:after:border-t-2 peer-focus:after:border-r-2 peer-focus:after:border-blue-500 peer-disabled:text-transparent peer-disabled:before:border-transparent peer-disabled:after:border-transparent peer-disabled:peer-placeholder-shown:text-blue-gray-500" }, " Quel est le meilleur cycliste ", -1),
|
|
6
|
+
], c = /* @__PURE__ */ e("label", { class: "before:content[' '] after:content[' '] pointer-events-none absolute left-0 border-red-500 -top-1.5 flex h-full w-full select-none text-[11px] font-normal leading-tight text-blue-gray-400 transition-all before:pointer-events-none before:mt-[6.5px] before:mr-1 before:box-border before:block before:h-1.5 before:w-2.5 before:rounded-tl-md before:border-t before:border-l before:border-blue-gray-200 before:transition-all after:pointer-events-none after:mt-[6.5px] after:ml-1 after:box-border after:block after:h-1.5 after:w-2.5 after:flex-grow after:rounded-tr-md after:border-t after:border-r after:border-blue-gray-200 after:transition-all peer-placeholder-shown:text-sm peer-placeholder-shown:leading-[3.75] peer-placeholder-shown:text-blue-gray-500 peer-placeholder-shown:before:border-transparent peer-placeholder-shown:after:border-transparent peer-focus:text-[11px] peer-focus:leading-tight peer-focus:text-blue-500 peer-focus:before:border-t-2 peer-focus:before:border-l-2 peer-focus:before:border-blue-500 peer-focus:after:border-t-2 peer-focus:after:border-r-2 peer-focus:after:border-blue-500 peer-disabled:text-transparent peer-disabled:before:border-transparent peer-disabled:after:border-transparent peer-disabled:peer-placeholder-shown:text-blue-gray-500" }, " Quel est le meilleur cycliste ", -1), w = /* @__PURE__ */ o({
|
|
6
7
|
__name: "EpSelect",
|
|
7
8
|
props: {
|
|
8
9
|
id: { default: "0" },
|
|
@@ -27,5 +28,5 @@ const b = { class: "relative h-10 w-72 min-w-[200px]" }, f = ["disabled"], i = /
|
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
w as default
|
|
31
32
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineComponent as i, computed as a, openBlock as b, createElementBlock as w, renderSlot as d, createElementVNode as h, normalizeClass as y, toDisplayString as k } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
top: {
|
|
4
|
+
default: "text-gray-600 bg-gray-300 -top-7 inset-x-0",
|
|
5
|
+
dark: "text-white bg-black -top-7 inset-x-0",
|
|
6
|
+
arrow: "text-gray-600 bg-gray-300 -top-7 inset-x-0 arrow-light-top",
|
|
7
|
+
arrowdark: "text-white bg-black -top-7 inset-x-0 arrow-dark-top "
|
|
8
|
+
},
|
|
9
|
+
top_start: {
|
|
10
|
+
default: "text-gray-600 bg-gray-300 -top-7 left-0",
|
|
11
|
+
dark: "text-white bg-black -top-7 left-0",
|
|
12
|
+
arrow: "text-gray-600 bg-gray-300 -top-7 left-0 arrow-light-top ",
|
|
13
|
+
arrowdark: "text-white bg-black -top-7 inset-x-0 arrow-dark-top "
|
|
14
|
+
},
|
|
15
|
+
top_end: {
|
|
16
|
+
default: "text-gray-600 bg-gray-300 -top-7 right-0",
|
|
17
|
+
dark: "text-white bg-black -top-7 right-0",
|
|
18
|
+
arrow: "text-gray-600 bg-gray-300 -top-7 right-0 arrow-light-top ",
|
|
19
|
+
arrowdark: "text-white bg-black -top-7 right-0 arrow-dark-top "
|
|
20
|
+
},
|
|
21
|
+
bottom: {
|
|
22
|
+
default: "text-gray-600 bg-gray-300 -bottom-7 inset-x-0 ",
|
|
23
|
+
dark: "text-white bg-black -bottom-7 inset-x-0 ",
|
|
24
|
+
arrow: "text-gray-600 bg-gray-300 -bottom-7 inset-x-0 arrow-light-bottom ",
|
|
25
|
+
arrowdark: "text-white bg-black -bottom-7 inset-x-0 arrow-dark-bottom "
|
|
26
|
+
},
|
|
27
|
+
bottom_start: {
|
|
28
|
+
default: "text-gray-600 bg-gray-300 -bottom-7 left-0",
|
|
29
|
+
dark: "text-white bg-black -bottom-7 left-0",
|
|
30
|
+
arrow: "text-gray-600 bg-gray-300 -bottom-7 left-0 arrow-light-bottom",
|
|
31
|
+
arrowdark: "text-white bg-black -bottom-7 left-0 arrow-dark-bottom "
|
|
32
|
+
},
|
|
33
|
+
bottom_end: {
|
|
34
|
+
default: "text-gray-600 bg-gray-300 -bottom-7 right-0",
|
|
35
|
+
dark: "text-white bg-black -bottom-7 right-0",
|
|
36
|
+
arrow: "text-gray-600 bg-gray-300 -bottom-7 right-0 arrow-light-bottom ",
|
|
37
|
+
arrowdark: "text-white bg-black -bottom-7 right-0 arrow-dark-bottom "
|
|
38
|
+
},
|
|
39
|
+
left: {
|
|
40
|
+
default: "text-gray-600 bg-gray-300 inset-y-0 -left-12",
|
|
41
|
+
dark: "text-white bg-black inset-y-0 -left-12",
|
|
42
|
+
arrow: "arrow-light-left text-gray-600 bg-gray-300 inset-y-0 -left-12",
|
|
43
|
+
arrowdark: "text-white bg-black inset-y-0 -left-12 arrow-dark-left "
|
|
44
|
+
},
|
|
45
|
+
left_start: {
|
|
46
|
+
default: "text-gray-600 bg-gray-300 top-0 -left-12",
|
|
47
|
+
dark: "text-white bg-black top-0 -left-12",
|
|
48
|
+
arrow: "text-gray-600 bg-gray-300 top-0 -left-12 arrow-light-left",
|
|
49
|
+
arrowdark: "text-white bg-black top-0 -left-12 arrow-dark-left "
|
|
50
|
+
},
|
|
51
|
+
left_end: {
|
|
52
|
+
default: "text-gray-600 bg-gray-300 bottom-0 -left-12",
|
|
53
|
+
dark: "text-white bg-black bottom-0 -left-12",
|
|
54
|
+
arrow: "text-gray-600 bg-gray-300 bottom-0 -left-12 arrow-light-left ",
|
|
55
|
+
arrowdark: "text-white bg-black arrow-dark-left bottom-0 -left-12"
|
|
56
|
+
},
|
|
57
|
+
right: {
|
|
58
|
+
default: "text-gray-600 bg-gray-300 inset-y-0 -right-12",
|
|
59
|
+
dark: "text-white bg-black inset-y-0 -right-12",
|
|
60
|
+
arrow: "text-gray-600 bg-gray-300 inset-y-0 -right-12 arrow-light-right ",
|
|
61
|
+
arrowdark: "text-white bg-black inset-y-0 -right-12 arrow-dark-right"
|
|
62
|
+
},
|
|
63
|
+
right_start: {
|
|
64
|
+
default: "text-gray-600 bg-gray-300 top-0 -right-12",
|
|
65
|
+
dark: "text-white bg-black top-0 -right-12",
|
|
66
|
+
arrow: "text-gray-600 bg-gray-300 top-0 -right-12 arrow-light-right",
|
|
67
|
+
arrowdark: "text-white bg-black arrow-dark-right top-0 -right-12"
|
|
68
|
+
},
|
|
69
|
+
right_end: {
|
|
70
|
+
default: "text-gray-600 bg-gray-300 bottom-0 -right-12",
|
|
71
|
+
dark: "text-white bg-black bottom-0 -right-12",
|
|
72
|
+
arrow: "text-gray-600 bg-gray-300 bottom-0 -right-12 arrow-light-right",
|
|
73
|
+
arrowdark: "text-white bg-black bottom-0 -right-12 arrow-dark-right "
|
|
74
|
+
}
|
|
75
|
+
}, x = { class: "group relative w-max" }, f = /* @__PURE__ */ i({
|
|
76
|
+
__name: "EpTooltip",
|
|
77
|
+
props: {
|
|
78
|
+
text: {},
|
|
79
|
+
styles: { default: "light" },
|
|
80
|
+
placement: { default: "top" },
|
|
81
|
+
type: {},
|
|
82
|
+
arrow: { default: "none" }
|
|
83
|
+
},
|
|
84
|
+
setup(e) {
|
|
85
|
+
const r = e, o = a(() => r.placement), g = a(() => r.arrow == "arrow" ? r.styles == "dark" ? "arrowdark" : "arrow" : r.styles == "light" ? "default" : "dark"), l = a(() => {
|
|
86
|
+
var t;
|
|
87
|
+
return `${(t = n[o.value]) == null ? void 0 : t[g.value]}`;
|
|
88
|
+
});
|
|
89
|
+
return (t, p) => (b(), w("div", x, [
|
|
90
|
+
d(t.$slots, "default"),
|
|
91
|
+
h("span", {
|
|
92
|
+
class: y(`pointer-events-none absolute w-max rounded px-2 py-1 text-sm font-medium opacity-0 shadow transition-opacity group-hover:opacity-100 ${l.value} `)
|
|
93
|
+
}, k(t.text), 3)
|
|
94
|
+
]));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
f as default
|
|
99
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
type Color = "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info" | "question" | "tip";
|
|
2
|
+
type Variant = "circle" | "square" | "rounded";
|
|
3
|
+
type Size = "small" | "middle" | "big";
|
|
4
|
+
interface Props {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
color?: Color;
|
|
8
|
+
size?: Size;
|
|
9
|
+
variant?: Variant;
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
src: string;
|
|
14
|
+
alt: string;
|
|
15
|
+
color: string;
|
|
16
|
+
size: string;
|
|
17
|
+
variant: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}>, {}, 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>, {
|
|
20
|
+
src: string;
|
|
21
|
+
alt: string;
|
|
22
|
+
color: string;
|
|
23
|
+
size: string;
|
|
24
|
+
variant: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}>>>, {
|
|
27
|
+
src: string;
|
|
28
|
+
alt: string;
|
|
29
|
+
color: Color;
|
|
30
|
+
size: Size;
|
|
31
|
+
variant: Variant;
|
|
32
|
+
name: string;
|
|
33
|
+
}, {}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|