@proximus/lavender-carousel 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +9 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -374,15 +374,15 @@ class mt extends HTMLElement {
|
|
|
374
374
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
375
375
|
}
|
|
376
376
|
static get observedAttributes() {
|
|
377
|
-
return ["grow"];
|
|
377
|
+
return ["grow", "nogap"];
|
|
378
378
|
}
|
|
379
379
|
attributeChangedCallback(t, e, i) {
|
|
380
380
|
t === "grow" && (this.growValue = i || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
|
|
381
381
|
}
|
|
382
382
|
connectedCallback() {
|
|
383
|
-
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
|
|
383
|
+
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
|
|
384
384
|
this.handleSizeChange();
|
|
385
|
-
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
|
|
385
|
+
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
|
|
386
386
|
}
|
|
387
387
|
disconnectedCallback() {
|
|
388
388
|
var t;
|
|
@@ -409,6 +409,12 @@ class mt extends HTMLElement {
|
|
|
409
409
|
updateParticipation() {
|
|
410
410
|
this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
|
|
411
411
|
}
|
|
412
|
+
get nogap() {
|
|
413
|
+
return this.hasAttribute("nogap");
|
|
414
|
+
}
|
|
415
|
+
set nogap(t) {
|
|
416
|
+
t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
417
|
+
}
|
|
412
418
|
}
|
|
413
419
|
customElements.get("px-spacer") || customElements.define("px-spacer", mt);
|
|
414
420
|
const kt = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", Z = new CSSStyleSheet();
|