@proximus/lavender-autocomplete 2.0.0-alpha.117 → 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
@@ -663,20 +663,21 @@ class Ye extends S {
663
663
  }
664
664
  }
665
665
  connectedCallback() {
666
+ var i;
666
667
  this.role = "img";
667
668
  const t = document.querySelectorAll("px-icon-set");
668
669
  t || console.log("<px-icon-set> component not found");
669
- for (const i of t) {
670
- if (!i.getAttribute("name") || !i.getAttribute("src")) {
670
+ for (const r of t) {
671
+ if (!r.getAttribute("name") || !r.getAttribute("src")) {
671
672
  console.error("Icon name or src not found");
672
673
  continue;
673
674
  }
674
- i.getAttribute("name") === this.from && i.getAttribute("type") !== "font" && (g(this, y, i.getAttribute("src")), this.$el.firstElementChild.setAttribute(
675
+ r.getAttribute("name") === this.from && r.getAttribute("type") !== "font" && (g(this, y, r.getAttribute("src")), this.$el.firstElementChild.setAttribute(
675
676
  "href",
676
677
  `${a(this, y)}#icon-${this.name}`
677
678
  ));
678
679
  }
679
- !this.ariaLabel && a(this, h) && (a(this, h).ariaHidden = "true", this.ariaHidden = "true"), this.parentElement.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && this.setAttribute("color", "inherit");
680
+ !this.ariaLabel && a(this, h) && (a(this, h).ariaHidden = "true", this.ariaHidden = "true"), ((i = this.parentElement) == null ? void 0 : i.localName) === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
680
681
  }
681
682
  updateAttribute(t, i, r, o) {
682
683
  i !== null && i !== "" && (t === "size" ? this.$el.classList.toggle(`${t}-${i}`) : this.$el.classList.toggle(i)), r !== null && r !== "" && (t === "size" ? this.$el.classList.toggle(`${t}-${r}`) : this.$el.classList.toggle(r)), this.checkName(o, r) || p(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-autocomplete",
3
- "version": "2.0.0-alpha.117",
3
+ "version": "2.0.0-alpha.118",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",