@proximus/lavender-layout 2.0.0-alpha.206 → 2.0.0-alpha.208
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 +3 -10
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -132,11 +132,7 @@ var d = [
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
updateOverflowX(e, t, n, i) {
|
|
135
|
-
|
|
136
|
-
a(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
135
|
+
r(i, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : a(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
140
136
|
}
|
|
141
137
|
updateFlexProperties(e, t, r, i) {
|
|
142
138
|
r !== null && !this.checkName(i, r) && a(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
@@ -149,11 +145,8 @@ var d = [
|
|
|
149
145
|
}
|
|
150
146
|
updateStyle(e, t, n, r) {
|
|
151
147
|
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
152
|
-
if (!n) {
|
|
153
|
-
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (a && r && r.includes(n)) {
|
|
148
|
+
if (!n) this.$el.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
149
|
+
else if (a && r && r.includes(n)) {
|
|
157
150
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
158
151
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
159
152
|
} else this.$el.style.setProperty(i, n);
|