@visma-swno/vsn-navigation 1.2.0-beta.21 → 1.2.0-beta.22

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.
@@ -2234,16 +2234,16 @@ var Qt, J = class extends e {
2234
2234
  }, this._onItemMouseLeave = () => {
2235
2235
  this._showTooltip = !1;
2236
2236
  }, this._onKeyDown = (e) => {
2237
- e.defaultPrevented || A(e) || (e.key === "Enter" || e.key === " " ? (e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded) : e.key === "ArrowRight" ? (e.preventDefault(), e.stopPropagation(), this._isExpanded = !0) : e.key === "ArrowLeft" ? (e.preventDefault(), e.stopPropagation(), this._isExpanded = !1) : e.key === "Escape" && (this._isExpanded &&= (e.preventDefault(), e.stopPropagation(), !1)));
2237
+ e.defaultPrevented || A(e) || (e.key === "Enter" || e.key === " " ? (e.preventDefault(), this._isExpanded = !this._isExpanded) : e.key === "ArrowRight" ? (e.preventDefault(), this._isExpanded = !0) : e.key === "ArrowLeft" && (e.preventDefault(), this._isExpanded = !1));
2238
2238
  }, this._onClick = (e) => {
2239
2239
  if (e.defaultPrevented) return;
2240
2240
  if (this._isParent()) {
2241
2241
  if (A(e)) return;
2242
- e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded;
2242
+ e.preventDefault(), this._isExpanded = !this._isExpanded;
2243
2243
  return;
2244
2244
  }
2245
2245
  if (!this.tree || e.button !== 0 || A(e)) return;
2246
- e.preventDefault(), e.stopPropagation();
2246
+ e.preventDefault();
2247
2247
  let t = [...this.ancestorPath, this.tree];
2248
2248
  this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
2249
2249
  detail: { path: t },
@@ -2308,21 +2308,21 @@ var $t = class extends e {
2308
2308
  super(), this._handleKeyDown = (e) => {
2309
2309
  if (e.defaultPrevented || A(e)) return;
2310
2310
  if (e.key === "Escape") {
2311
- e.preventDefault(), e.stopPropagation(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
2311
+ e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
2312
2312
  bubbles: !0,
2313
2313
  composed: !0
2314
2314
  }));
2315
2315
  return;
2316
2316
  }
2317
2317
  if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
2318
- e.preventDefault(), e.stopPropagation();
2318
+ e.preventDefault();
2319
2319
  return;
2320
2320
  }
2321
2321
  if (e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
2322
2322
  let t = Array.from(this.querySelectorAll("a.ga-side-navigation__item, div.ga-side-navigation__item[tabindex=\"0\"]"));
2323
2323
  if (!t.length) return;
2324
2324
  let n = t.indexOf(e.target);
2325
- n !== -1 && (e.preventDefault(), e.stopPropagation(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
2325
+ n !== -1 && (e.preventDefault(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
2326
2326
  }, new z(this, () => !0);
2327
2327
  }
2328
2328
  createRenderRoot() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visma-swno/vsn-navigation",
3
- "version": "1.2.0-beta.21",
3
+ "version": "1.2.0-beta.22",
4
4
  "type": "module",
5
5
  "customElements": "dist/custom-elements.json",
6
6
  "exports": {