@proximus/lavender-mega-dropdown 1.4.10-beta.3 → 1.4.11-alpha.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 +6 -5
- 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 r;
|
|
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
|
|
383
|
-
if (!
|
|
383
|
+
for (const o of e) {
|
|
384
|
+
if (!o.getAttribute("name") || !o.getAttribute("src")) {
|
|
384
385
|
console.error("Icon name or src not found");
|
|
385
386
|
continue;
|
|
386
387
|
}
|
|
387
|
-
|
|
388
|
+
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (k(this, m, o.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");
|
|
393
|
+
!this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true"), ((r = this.parentElement) == null ? void 0 : r.localName) === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
|
|
393
394
|
}
|
|
394
395
|
updateAttribute(e, r, o, i) {
|
|
395
396
|
r !== null && r !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${r}`) : this.$el.classList.toggle(r)), o !== null && o !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${o}`) : this.$el.classList.toggle(o)), this.checkName(i, o) || d(
|
|
@@ -2408,7 +2409,7 @@ const ye = [...ut, "link-m", "link-s"], lt = [
|
|
|
2408
2409
|
updateVariant(t, e) {
|
|
2409
2410
|
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(lt, e) || d(
|
|
2410
2411
|
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${lt.join('", "')}".`
|
|
2411
|
-
)
|
|
2412
|
+
);
|
|
2412
2413
|
}
|
|
2413
2414
|
updateShape(t, e, r) {
|
|
2414
2415
|
if (!w(r, e)) {
|