@everchron/ec-shards 8.11.16 → 8.11.18

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/ec-shards.js CHANGED
@@ -13264,6 +13264,17 @@ const F_ = /* @__PURE__ */ v(fy, [["render", my], ["__scopeId", "data-v-74fe1e26
13264
13264
  return `ecs-tab-pane-flex-${this.flexDirection}`;
13265
13265
  }
13266
13266
  },
13267
+ methods: {
13268
+ scrollToTop() {
13269
+ const e = this.$refs.tabPaneRef;
13270
+ e && (e.scrollTop = 0);
13271
+ }
13272
+ },
13273
+ watch: {
13274
+ show(e) {
13275
+ e && this.scrollToTop();
13276
+ }
13277
+ },
13267
13278
  mounted() {
13268
13279
  !this.ariaLabeledBy || this.ariaLabeledBy.trim();
13269
13280
  }
@@ -13272,12 +13283,13 @@ function vy(e, s, t, a, n, i) {
13272
13283
  return o(), l("div", {
13273
13284
  class: h(["ecs-tab-pane", [t.show ? "show" : "", t.flex ? "ecs-tab-pane-flex" : "", i.directionClass]]),
13274
13285
  role: "tabpanel",
13275
- "aria-labelledby": t.ariaLabeledBy
13286
+ "aria-labelledby": t.ariaLabeledBy,
13287
+ ref: "tabPaneRef"
13276
13288
  }, [
13277
13289
  p(e.$slots, "default", {}, void 0, !0)
13278
13290
  ], 10, hy);
13279
13291
  }
13280
- const R_ = /* @__PURE__ */ v(py, [["render", vy], ["__scopeId", "data-v-273aa82d"]]), yy = {
13292
+ const R_ = /* @__PURE__ */ v(py, [["render", vy], ["__scopeId", "data-v-975265ad"]]), yy = {
13281
13293
  name: "ecs-tab-button",
13282
13294
  emits: ["click"],
13283
13295
  components: {