@everchron/ec-shards 8.15.5 → 8.15.7

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
@@ -13477,9 +13477,14 @@ const F_ = /* @__PURE__ */ y(my, [["render", hy], ["__scopeId", "data-v-2c119fff
13477
13477
  handleClick(e) {
13478
13478
  this.$emit("click", e);
13479
13479
  },
13480
+ blurButton() {
13481
+ this.$refs.tabButton.blur();
13482
+ },
13480
13483
  handleKeyDown(e) {
13481
13484
  const s = e.keyCode;
13482
- if (this.orientation === "horizontal") {
13485
+ if (s === 27)
13486
+ e.preventDefault(), this.$refs.tabButton.blur();
13487
+ else if (this.orientation === "horizontal") {
13483
13488
  if (s === 37 || s === 39) {
13484
13489
  e.preventDefault();
13485
13490
  const a = this.$el.parentNode.children, n = Array.prototype.indexOf.call(a, this.$el), i = a[n - 1], r = a[n + 1];
@@ -13492,7 +13497,7 @@ const F_ = /* @__PURE__ */ y(my, [["render", hy], ["__scopeId", "data-v-2c119fff
13492
13497
  }
13493
13498
  }
13494
13499
  }
13495
- }, yy = (e) => (be("data-v-88c7bb3d"), e = e(), _e(), e), by = ["disabled", "aria-selected", "aria-controls", "aria-label"], _y = {
13500
+ }, yy = (e) => (be("data-v-5098e4d3"), e = e(), _e(), e), by = ["disabled", "aria-selected", "aria-controls", "aria-label"], _y = {
13496
13501
  key: 2,
13497
13502
  class: "shortcut"
13498
13503
  }, ky = /* @__PURE__ */ yy(() => /* @__PURE__ */ f("span", { class: "hover" }, null, -1));
@@ -13511,7 +13516,8 @@ function wy(e, s, t, a, n, i) {
13511
13516
  "aria-label": t.ariaLabel,
13512
13517
  role: "tab",
13513
13518
  ref: "tabButton",
13514
- onClick: s[0] || (s[0] = (...m) => i.handleClick && i.handleClick(...m))
13519
+ onClick: s[0] || (s[0] = (...m) => i.handleClick && i.handleClick(...m)),
13520
+ onMouseup: s[1] || (s[1] = (...m) => i.blurButton && i.blurButton(...m))
13515
13521
  }, [
13516
13522
  t.icon ? (o(), h(r, {
13517
13523
  key: 0,
@@ -13525,9 +13531,9 @@ function wy(e, s, t, a, n, i) {
13525
13531
  t.shortcut ? (o(), l("span", _y, w(t.shortcut), 1)) : u("", !0),
13526
13532
  _(d, { inset: 0 }),
13527
13533
  ky
13528
- ], 10, by);
13534
+ ], 42, by);
13529
13535
  }
13530
- const V_ = /* @__PURE__ */ y(vy, [["render", wy], ["__scopeId", "data-v-88c7bb3d"]]), Sy = {
13536
+ const V_ = /* @__PURE__ */ y(vy, [["render", wy], ["__scopeId", "data-v-5098e4d3"]]), Sy = {
13531
13537
  name: "ecs-tag",
13532
13538
  emits: ["click"],
13533
13539
  components: { EcsSkeletonLoader: fe, EcsFocusRing: L },