@proximus/lavender-mega-dropdown 2.0.0-alpha.103 → 2.0.0-alpha.104

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.
Files changed (2) hide show
  1. package/dist/index.es.js +4 -4
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -2136,14 +2136,14 @@ class me extends HTMLElement {
2136
2136
  <slot name="mdd-footer"></slot>
2137
2137
  </px-hstack>
2138
2138
  </px-section>
2139
- </dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Rt], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.role = "menu", this.internals && (this.internals.role = "menu");
2139
+ </dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Rt], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.internals && (this.internals.role = "menu");
2140
2140
  }
2141
2141
  static get observedAttributes() {
2142
2142
  return ["hidden", "name", "close-button-aria-label", "back-to-menu-label"];
2143
2143
  }
2144
2144
  connectedCallback() {
2145
2145
  var e, o;
2146
- if (this.querySelectorAll("px-mdd-section").length === 0)
2146
+ if (this.role = "menu", this.querySelectorAll("px-mdd-section").length === 0)
2147
2147
  throw new Error("HeaderPanel must contain at least one MenuSection");
2148
2148
  this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (r) => {
2149
2149
  if (r.target.closest("px-button-icon"))
@@ -2591,7 +2591,7 @@ class $e extends HTMLElement {
2591
2591
  </span>
2592
2592
  <px-spacer></px-spacer>
2593
2593
  <px-icon name="chevron_right" from="lavender"></px-icon>
2594
- </px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Nt], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.role = "listitem", this.internals && (this.internals.role = "listitem");
2594
+ </px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Nt], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.internals && (this.internals.role = "listitem");
2595
2595
  }
2596
2596
  static get observedAttributes() {
2597
2597
  return ["href", "for"];
@@ -2604,7 +2604,7 @@ class $e extends HTMLElement {
2604
2604
  t === "href" && this.$link ? this.$link.href = e : t === "href" && !this.$link && e ? (this.shadowRoot.innerHTML = `<a href="${e}">${this.template}</a>`, this.shadowRoot.firstElementChild.setAttribute("tabindex", "0"), this.$arrowIcon.style.display = "none") : t === "for" && !this.$button && e && (this.shadowRoot.innerHTML = `<button>${this.template}</button>`, this.shadowRoot.firstElementChild.setAttribute("tabindex", "0"));
2605
2605
  }
2606
2606
  connectedCallback() {
2607
- this.hasAttribute("href") ? (this.updateView("href", this.href), this.$link.href = this.href) : this.hasAttribute("for") && (this.updateView("for", this.getAttribute("for")), this.addEventListener("click", this.handleClick)), this.$after && this.$after.localName === "px-icon" && this.configureAfterIcon(this.$after), this.$link && (this.$arrowIcon.style.display = "none");
2607
+ this.role = "listitem", this.hasAttribute("href") ? (this.updateView("href", this.href), this.$link.href = this.href) : this.hasAttribute("for") && (this.updateView("for", this.getAttribute("for")), this.addEventListener("click", this.handleClick)), this.$after && this.$after.localName === "px-icon" && this.configureAfterIcon(this.$after), this.$link && (this.$arrowIcon.style.display = "none");
2608
2608
  }
2609
2609
  handleClick() {
2610
2610
  const t = new CustomEvent("section-item-click", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-mega-dropdown",
3
- "version": "2.0.0-alpha.103",
3
+ "version": "2.0.0-alpha.104",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",