@proximus/lavender-carousel 1.3.0 → 1.4.1-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 +12 -6
- 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();
|
|
@@ -783,7 +789,7 @@ class Tt extends T {
|
|
|
783
789
|
m(this, w, () => `<svg aria-hidden="true">
|
|
784
790
|
<use xlink:href="#icon-${this.name}"></use>
|
|
785
791
|
</svg>`);
|
|
786
|
-
this.shadowRoot.innerHTML = d(this, w).call(this), C(this, p, (i = this.attachInternals) == null ? void 0 : i.call(this)), d(this, p) && (d(this, p).role = "img");
|
|
792
|
+
this.shadowRoot.innerHTML = d(this, w).call(this), this.role = "img", C(this, p, (i = this.attachInternals) == null ? void 0 : i.call(this)), d(this, p) && (d(this, p).role = "img");
|
|
787
793
|
}
|
|
788
794
|
static get observedAttributes() {
|
|
789
795
|
return [...super.observedAttributes, ...Lt];
|
|
@@ -806,7 +812,7 @@ class Tt extends T {
|
|
|
806
812
|
case "aria-label":
|
|
807
813
|
if (!d(this, p))
|
|
808
814
|
return;
|
|
809
|
-
s ? d(this, p).ariaHidden = "false" : d(this, p).ariaHidden = "true";
|
|
815
|
+
s ? (d(this, p).ariaHidden = "false", this.ariaHidden = "false") : (d(this, p).ariaHidden = "true", this.ariaHidden = "true");
|
|
810
816
|
break;
|
|
811
817
|
}
|
|
812
818
|
}
|
|
@@ -823,7 +829,7 @@ class Tt extends T {
|
|
|
823
829
|
`${d(this, h)}#icon-${this.name}`
|
|
824
830
|
));
|
|
825
831
|
}
|
|
826
|
-
!this.ariaLabel && d(this, p) && (d(this, p).ariaHidden = "true");
|
|
832
|
+
!this.ariaLabel && d(this, p) && (d(this, p).ariaHidden = "true", this.ariaHidden = "true");
|
|
827
833
|
}
|
|
828
834
|
updateAttribute(e, i, s, n) {
|
|
829
835
|
i !== null && i !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${i}`) : this.$el.classList.toggle(i)), s !== null && s !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${s}`) : this.$el.classList.toggle(s)), this.checkName(n, s) || console.error(`${s} is not an allowed ${e} value`);
|