@proximus/lavender-mega-dropdown 2.0.0-alpha.116 → 2.0.0-alpha.118

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 +5 -4
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -376,20 +376,21 @@ class ie extends X {
376
376
  }
377
377
  }
378
378
  connectedCallback() {
379
+ var o;
379
380
  this.role = "img";
380
381
  const e = document.querySelectorAll("px-icon-set");
381
382
  e || console.log("<px-icon-set> component not found");
382
- for (const o of e) {
383
- if (!o.getAttribute("name") || !o.getAttribute("src")) {
383
+ for (const r of e) {
384
+ if (!r.getAttribute("name") || !r.getAttribute("src")) {
384
385
  console.error("Icon name or src not found");
385
386
  continue;
386
387
  }
387
- o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (k(this, m, o.getAttribute("src")), this.$el.firstElementChild.setAttribute(
388
+ r.getAttribute("name") === this.from && r.getAttribute("type") !== "font" && (k(this, m, r.getAttribute("src")), this.$el.firstElementChild.setAttribute(
388
389
  "href",
389
390
  `${n(this, m)}#icon-${this.name}`
390
391
  ));
391
392
  }
392
- !this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true"), this.parentElement.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && this.setAttribute("color", "inherit");
393
+ !this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true"), ((o = this.parentElement) == null ? void 0 : o.localName) === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
393
394
  }
394
395
  updateAttribute(e, o, r, i) {
395
396
  o !== null && o !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${o}`) : this.$el.classList.toggle(o)), r !== null && r !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${r}`) : this.$el.classList.toggle(r)), this.checkName(i, r) || d(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-mega-dropdown",
3
- "version": "2.0.0-alpha.116",
3
+ "version": "2.0.0-alpha.118",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",