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