@proximus/lavender-selectablebox 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 +4 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -132,11 +132,7 @@ var p = [
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
updateOverflowX(e, t, n, r) {
|
|
135
|
-
|
|
136
|
-
s(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
135
|
+
i(r, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : s(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
140
136
|
}
|
|
141
137
|
updateFlexProperties(e, t, r, i) {
|
|
142
138
|
r !== null && !this.checkName(i, r) && s(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
@@ -149,11 +145,8 @@ var p = [
|
|
|
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);
|
|
@@ -643,13 +636,10 @@ var O = [
|
|
|
643
636
|
}
|
|
644
637
|
}
|
|
645
638
|
#e(e, t) {
|
|
646
|
-
|
|
647
|
-
s(`
|
|
639
|
+
i(t, e) || s(`
|
|
648
640
|
"${e}" is not a valid footer-position value for ${this.tagName.toLowerCase()}.
|
|
649
641
|
Allowed values are: "${t.join("\", \"")}".
|
|
650
642
|
`);
|
|
651
|
-
return;
|
|
652
|
-
}
|
|
653
643
|
}
|
|
654
644
|
get $el() {
|
|
655
645
|
return this.shadowRoot.querySelector(".selectable-box");
|