@proximus/lavender-carousel 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.
- package/dist/index.es.js +5 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -831,20 +831,21 @@ class Rt extends M {
|
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
connectedCallback() {
|
|
834
|
+
var i;
|
|
834
835
|
this.role = "img";
|
|
835
836
|
const e = document.querySelectorAll("px-icon-set");
|
|
836
837
|
e || console.log("<px-icon-set> component not found");
|
|
837
|
-
for (const
|
|
838
|
-
if (!
|
|
838
|
+
for (const a of e) {
|
|
839
|
+
if (!a.getAttribute("name") || !a.getAttribute("src")) {
|
|
839
840
|
console.error("Icon name or src not found");
|
|
840
841
|
continue;
|
|
841
842
|
}
|
|
842
|
-
|
|
843
|
+
a.getAttribute("name") === this.from && a.getAttribute("type") !== "font" && (E(this, h, a.getAttribute("src")), this.$el.firstElementChild.setAttribute(
|
|
843
844
|
"href",
|
|
844
845
|
`${p(this, h)}#icon-${this.name}`
|
|
845
846
|
));
|
|
846
847
|
}
|
|
847
|
-
!this.ariaLabel && p(this, d) && (p(this, d).ariaHidden = "true", this.ariaHidden = "true"), this.parentElement.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && this.setAttribute("color", "inherit");
|
|
848
|
+
!this.ariaLabel && p(this, d) && (p(this, d).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"));
|
|
848
849
|
}
|
|
849
850
|
updateAttribute(e, i, a, r) {
|
|
850
851
|
i !== null && i !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${i}`) : this.$el.classList.toggle(i)), a !== null && a !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${a}`) : this.$el.classList.toggle(a)), this.checkName(r, a) || f(
|