@proximus/lavender-common 2.0.0-alpha.205 → 2.0.0-alpha.207
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 -21
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -48,13 +48,9 @@ var c = class {
|
|
|
48
48
|
}
|
|
49
49
|
setInteractiveState(e) {
|
|
50
50
|
let t = this.#a;
|
|
51
|
-
|
|
52
|
-
t.forEach((e) => e.removeAttribute("interactive-state"));
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
t.forEach((t) => {
|
|
51
|
+
this.#n() ? t.forEach((t) => {
|
|
56
52
|
e ? t.setAttribute("interactive-state", e) : t.removeAttribute("interactive-state");
|
|
57
|
-
});
|
|
53
|
+
}) : t.forEach((e) => e.removeAttribute("interactive-state"));
|
|
58
54
|
}
|
|
59
55
|
get #a() {
|
|
60
56
|
return Array.from(this.#e.querySelectorAll("*")).filter(l);
|
|
@@ -143,11 +139,8 @@ var u = class e extends HTMLElement {
|
|
|
143
139
|
let e = this.parentElement;
|
|
144
140
|
for (; e;) {
|
|
145
141
|
if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
|
|
146
|
-
if (window.getComputedStyle(e).display === "contents")
|
|
147
|
-
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
break;
|
|
142
|
+
if (window.getComputedStyle(e).display === "contents") e = e.parentElement;
|
|
143
|
+
else break;
|
|
151
144
|
}
|
|
152
145
|
return !1;
|
|
153
146
|
}
|
|
@@ -664,18 +657,10 @@ function W(e, t, n = !1) {
|
|
|
664
657
|
}
|
|
665
658
|
}
|
|
666
659
|
function G(e, t, n) {
|
|
667
|
-
|
|
668
|
-
e.removeAttribute(t);
|
|
669
|
-
return;
|
|
670
|
-
}
|
|
671
|
-
e.setAttribute(t, n.toString());
|
|
660
|
+
n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
|
|
672
661
|
}
|
|
673
662
|
function K(e, t, n) {
|
|
674
|
-
|
|
675
|
-
e.removeAttribute(t);
|
|
676
|
-
return;
|
|
677
|
-
}
|
|
678
|
-
e.setAttribute(t, "");
|
|
663
|
+
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
679
664
|
}
|
|
680
665
|
//#endregion
|
|
681
666
|
//#region src/breakpoints.ts
|