exploria-ui 2026.3.2 → 2026.3.4
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/components/navigation/ETabs/ETabPane.vue.d.ts +3 -3
- package/dist/components/navigation/ETabs/ETabs.vue.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue.js +1 -1
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue.js +1 -1
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +28 -23
- package/dist/packages/exploria-ui/src/utils/EDomUtil.js +23 -2
- package/dist/plugins/EPreloadImageBuilder.d.ts +5 -0
- package/dist/plugins/ESvgPolyfill.d.ts +3 -0
- package/dist/plugins/ESvgSpriteBuilder.d.ts +6 -0
- package/{src/plugins/index.ts → dist/plugins/index.d.ts} +0 -1
- package/dist/plugins/index.js +7487 -0
- package/package.json +2 -3
- package/src/plugins/EPreloadImageBuilder.ts +0 -66
- package/src/plugins/ESvgPolyfill.ts +0 -29
- package/src/plugins/ESvgSpriteBuilder.ts +0 -48
|
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./ETabPane.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/navigation/ETabs/ETabPane.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-b143209b"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as e, createElementBlock as t, defineComponent as n, inject as r, normalizeClass as i, onUnmounted as a, openBlock as o, renderSlot as s } from "vue";
|
|
2
2
|
//#region src/components/navigation/ETabs/ETabPane.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
3
|
+
var c = /* @__PURE__ */ n({
|
|
4
4
|
__name: "ETabPane",
|
|
5
5
|
props: {
|
|
6
6
|
name: {},
|
|
7
7
|
label: {}
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
let
|
|
11
|
-
return
|
|
12
|
-
label:
|
|
13
|
-
name:
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
}), (
|
|
9
|
+
setup(n) {
|
|
10
|
+
let c = r("registerTabPane"), l = r("unregisterTabPane");
|
|
11
|
+
return c({
|
|
12
|
+
label: e(() => n.label),
|
|
13
|
+
name: n.name
|
|
14
|
+
}), a(() => {
|
|
15
|
+
l(n.name);
|
|
16
|
+
}), (e, r) => (o(), t("div", { class: i(["e-tab-pane", "e-tab-pane" + n.name]) }, [s(e.$slots, "default", {}, void 0, !0)], 2));
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { c as default };
|
|
@@ -2,6 +2,6 @@ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./ETabs.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/navigation/ETabs/ETabs.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-29bcb422"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -15,36 +15,40 @@ var y = ["onClick"], b = /* @__PURE__ */ a({
|
|
|
15
15
|
S.value.push(e);
|
|
16
16
|
}), f("unregisterTabPane", (e) => {
|
|
17
17
|
S.value = S.value.filter((t) => t.name !== e);
|
|
18
|
-
})
|
|
19
|
-
|
|
18
|
+
});
|
|
19
|
+
let C = _("eTabsRef");
|
|
20
|
+
l(() => {
|
|
21
|
+
T(C.value.querySelector(".e-tabs-label" + a.modelValue), a.modelValue, !1);
|
|
20
22
|
let e = () => {
|
|
21
|
-
|
|
23
|
+
T(C.value.querySelector(".e-tabs-label" + a.modelValue), a.modelValue, !1);
|
|
22
24
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
C.value?.addEventListener("resize", e), u(() => {
|
|
26
|
+
C.value?.removeEventListener("resize", e);
|
|
25
27
|
});
|
|
26
28
|
});
|
|
27
|
-
let
|
|
28
|
-
let t =
|
|
29
|
+
let w = (e) => {
|
|
30
|
+
let t = C.value.querySelector(`.e-tabs-header>.e-tabs-label${a.modelValue}`), n = C.value.querySelector(".e-tabs-header>.line");
|
|
29
31
|
n.style.transition = e ? "all 0.3s ease-in-out" : "none", a.placement.includes("left") || a.placement.includes("right") ? (n.style.top = t.offsetTop + "px", n.style.height = t.offsetHeight + "px", n.style.width = "2px", a.placement.includes("left") ? (n.style.right = "0px", n.style.left = "unset") : (n.style.left = "0px", n.style.right = "unset")) : (n.style.left = t.offsetLeft + "px", n.style.width = t.offsetWidth + "px", n.style.height = "2px", a.placement.includes("top") ? (n.style.bottom = "0px", n.style.top = "unset") : (n.style.top = "0px", n.style.bottom = "unset"));
|
|
30
|
-
},
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
let
|
|
34
|
-
e.scrollIntoView({
|
|
35
|
-
element:
|
|
36
|
-
block:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
}, T = (t, n, r = !0) => {
|
|
33
|
+
let i = C.value.querySelector(".e-tabs-content");
|
|
34
|
+
i.style.scrollBehavior = r ? "smooth" : "auto";
|
|
35
|
+
let s = i.querySelector(".e-tab-pane" + n);
|
|
36
|
+
t && e.scrollIntoView({
|
|
37
|
+
element: t,
|
|
38
|
+
block: "center"
|
|
39
|
+
}), e.scrollIntoView({
|
|
40
|
+
element: s,
|
|
41
|
+
...a.placement.includes("left") || a.placement.includes("right") ? { block: "center" } : { inline: "center" }
|
|
42
|
+
}), x("update:modelValue", n), x("tabClick", n), o(() => {
|
|
43
|
+
w(r);
|
|
40
44
|
});
|
|
41
45
|
};
|
|
42
46
|
v(() => a.placement, () => {
|
|
43
47
|
o(() => {
|
|
44
|
-
|
|
48
|
+
T(null, a.modelValue, !1);
|
|
45
49
|
});
|
|
46
50
|
});
|
|
47
|
-
let
|
|
51
|
+
let E = n(() => ({
|
|
48
52
|
display: "flex",
|
|
49
53
|
flexDirection: (() => {
|
|
50
54
|
if (a.placement.includes("top")) return "column";
|
|
@@ -52,7 +56,7 @@ var y = ["onClick"], b = /* @__PURE__ */ a({
|
|
|
52
56
|
if (a.placement.includes("left")) return "row";
|
|
53
57
|
if (a.placement.includes("right")) return "row-reverse";
|
|
54
58
|
})()
|
|
55
|
-
})),
|
|
59
|
+
})), D = n(() => {
|
|
56
60
|
let e = {
|
|
57
61
|
flexDirection: a.placement.includes("top") || a.placement.includes("bottom") ? "row" : "column",
|
|
58
62
|
justifyContent: [
|
|
@@ -67,8 +71,9 @@ var y = ["onClick"], b = /* @__PURE__ */ a({
|
|
|
67
71
|
});
|
|
68
72
|
return (e, n) => (d(), r("div", {
|
|
69
73
|
class: s(["e-tabs", a.size]),
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
ref_key: "eTabsRef",
|
|
75
|
+
ref: C,
|
|
76
|
+
style: c(E.value)
|
|
72
77
|
}, [i("div", {
|
|
73
78
|
class: "e-tabs-header",
|
|
74
79
|
style: c(D.value)
|
|
@@ -79,7 +84,7 @@ var y = ["onClick"], b = /* @__PURE__ */ a({
|
|
|
79
84
|
"e-tabs-label" + e.name,
|
|
80
85
|
{ active: a.modelValue === e.name }
|
|
81
86
|
]),
|
|
82
|
-
onClick: (t) =>
|
|
87
|
+
onClick: (t) => T(t.target, e.name)
|
|
83
88
|
}, g(e.label), 11, y))), 128)), n[0] ||= i("div", { class: "line" }, null, -1)], 4), i("div", {
|
|
84
89
|
class: "e-tabs-content",
|
|
85
90
|
style: c({ flexDirection: a.placement.includes("top") || a.placement.includes("bottom") ? "row" : "column" })
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
//#region src/utils/EDomUtil.ts
|
|
2
2
|
var e = class {
|
|
3
3
|
static scrollIntoView(e) {
|
|
4
|
-
let { element: t, block: n, inline: r
|
|
5
|
-
|
|
4
|
+
let { element: t, block: n = "start", inline: r = "start" } = e;
|
|
5
|
+
if (!t) return;
|
|
6
|
+
let i = t.parentElement;
|
|
7
|
+
if (!(i instanceof HTMLElement)) return;
|
|
8
|
+
let a = t.getBoundingClientRect(), { offsetTop: o, offsetLeft: s } = t, { clientHeight: c, clientWidth: l } = i, u = a.height, d = a.width;
|
|
9
|
+
if (n) switch (n) {
|
|
10
|
+
case "center":
|
|
11
|
+
i.scrollTop = o - (c - u) / 2;
|
|
12
|
+
break;
|
|
13
|
+
case "end":
|
|
14
|
+
i.scrollTop = o + u - c;
|
|
15
|
+
break;
|
|
16
|
+
default: i.scrollTop = o;
|
|
17
|
+
}
|
|
18
|
+
if (r) switch (r) {
|
|
19
|
+
case "center":
|
|
20
|
+
i.scrollLeft = s - (l - d) / 2;
|
|
21
|
+
break;
|
|
22
|
+
case "end":
|
|
23
|
+
i.scrollLeft = s + d - l;
|
|
24
|
+
break;
|
|
25
|
+
default: i.scrollLeft = s;
|
|
26
|
+
}
|
|
6
27
|
}
|
|
7
28
|
};
|
|
8
29
|
//#endregion
|