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.
@@ -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-e36de3b0"]]);
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 { createElementBlock as e, defineComponent as t, inject as n, normalizeClass as r, onUnmounted as i, openBlock as a, renderSlot as o } from "vue";
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 s = /* @__PURE__ */ t({
3
+ var c = /* @__PURE__ */ n({
4
4
  __name: "ETabPane",
5
5
  props: {
6
6
  name: {},
7
7
  label: {}
8
8
  },
9
- setup(t) {
10
- let s = n("registerTabPane"), c = n("unregisterTabPane");
11
- return s({
12
- label: t.label,
13
- name: t.name
14
- }), i(() => {
15
- c(t.name);
16
- }), (n, i) => (a(), e("div", { class: r(["e-tab-pane", "e-tab-pane" + t.name]) }, [o(n.$slots, "default", {}, void 0, !0)], 2));
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 { s as default };
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-7576e0b4"]]);
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
- }), l(() => {
19
- w(a.modelValue, !1);
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
- w(a.modelValue, !1);
23
+ T(C.value.querySelector(".e-tabs-label" + a.modelValue), a.modelValue, !1);
22
24
  };
23
- E.value?.addEventListener("resize", e), u(() => {
24
- E.value?.removeEventListener("resize", e);
25
+ C.value?.addEventListener("resize", e), u(() => {
26
+ C.value?.removeEventListener("resize", e);
25
27
  });
26
28
  });
27
- let C = (e) => {
28
- let t = E.value.querySelector(`.e-tabs-header>.e-tabs-label${a.modelValue}`), n = E.value.querySelector(".e-tabs-header>.line");
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
- }, w = (t, n = !0) => {
31
- let r = E.value.querySelector(".e-tabs-content");
32
- r.style.scrollBehavior = n ? "smooth" : "auto";
33
- let i = r.querySelector(".e-tab-pane" + t);
34
- e.scrollIntoView({
35
- element: i,
36
- block: a.placement.includes("left") || a.placement.includes("right") ? "center" : void 0,
37
- inline: a.placement.includes("top") || a.placement.includes("bottom") ? "center" : void 0
38
- }), x("update:modelValue", t), x("tabClick", t), o(() => {
39
- C(n);
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
- w(a.modelValue, !1);
48
+ T(null, a.modelValue, !1);
45
49
  });
46
50
  });
47
- let T = n(() => ({
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
- })), E = _("tabs"), D = n(() => {
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
- ref: "tabs",
71
- style: c(T.value)
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) => w(e.name)
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 } = e, i = t.parentNode;
5
- n && (n === "center" && (i.scrollTop = t.offsetTop + (i.clientHeight - t.offsetHeight) / 2), n === "start" && (i.scrollTop = t.offsetTop), n === "end" && (i.scrollTop = t.offsetTop + (i.offsetHeight - t.clientHeight))), r && (r === "center" && (i.scrollLeft = t.offsetLeft + (i.clientWidth - t.clientWidth) / 2), r === "start" && (i.scrollLeft = t.offsetLeft), r === "end" && (i.scrollLeft = t.offsetLeft + (i.offsetWidth - t.clientWidth)));
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
@@ -0,0 +1,5 @@
1
+ import type { Plugin } from 'vite';
2
+ declare const EPreloadImageBuilder: (options: {
3
+ pattern: string | string[];
4
+ }) => Plugin;
5
+ export default EPreloadImageBuilder;
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vite';
2
+ declare const ESvgPolyfill: () => Plugin;
3
+ export default ESvgPolyfill;
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'vite';
2
+ declare const ESvgSpriteBuilder: (options: {
3
+ pattern: string;
4
+ symbolId: (filename: string) => string;
5
+ }) => Plugin;
6
+ export default ESvgSpriteBuilder;
@@ -1,5 +1,4 @@
1
1
  import EPreloadImageBuilder from './EPreloadImageBuilder';
2
2
  import ESvgPolyfill from './ESvgPolyfill';
3
3
  import ESvgSpriteBuilder from './ESvgSpriteBuilder';
4
-
5
4
  export { ESvgSpriteBuilder, EPreloadImageBuilder, ESvgPolyfill };