@getflip/swirl-components 0.317.0 → 0.317.1

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/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-04-08T10:58:12",
2
+ "timestamp": "2025-04-09T12:44:49",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -57,6 +57,7 @@ const SwirlCarousel = class {
57
57
  }
58
58
  onWindowResize() {
59
59
  this.checkScrollStatus();
60
+ this.checkScrollPosition();
60
61
  }
61
62
  componentDidLoad() {
62
63
  queueMicrotask(() => {
@@ -162,7 +163,7 @@ const SwirlCarousel = class {
162
163
  "carousel--is-at-start": this.isAtStart,
163
164
  "carousel--is-at-end": this.isAtEnd,
164
165
  });
165
- return (index.h(index.Host, { key: '4a51de70cfbc822287ac89be9a023ce3b1765c72', "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, index.h("div", { key: '9252572f5774605943cd9dcb5ce69fe80db082eb', class: className }, this.isScrollable && !this.isAtStart && (index.h("swirl-button", { key: 'e580f6713df6b45e9375aa8b235259d10c647d4e', class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "floating" })), this.isScrollable && !this.isAtEnd && (index.h("swirl-button", { key: 'c6726a036c07c20f35931684c2ba4bb5f72fcd18', class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "floating" })), index.h("div", { key: '5e72c254a630d77df8cb29ea23e799b3a78081d0', "aria-live": "polite", class: "carousel__slides", style: slidesStyles, onScroll: this.onScroll, ref: (el) => (this.slidesContainer = el) }, index.h("slot", { key: '8b1a05d213ca9f011769154a19fb5d9777b26247', onSlotchange: this.onSlotChange })))));
166
+ return (index.h(index.Host, { key: '49ae3956e780803b3a71be6bc6ae10f49f4ff6a2', "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, index.h("div", { key: 'f178dfcf58ece220b1ef9f76dbea5a72082ddc73', class: className }, this.isScrollable && !this.isAtStart && (index.h("swirl-button", { key: 'b9cf8dffb2017a8ce51f7ffc1d566de428481863', class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "floating" })), this.isScrollable && !this.isAtEnd && (index.h("swirl-button", { key: '9b59149c2838e52c00eb3f312b5c66a12e56e965', class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "floating" })), index.h("div", { key: 'f5b9343af6a14957982aeca99b2931139cd9d58d', "aria-live": "polite", class: "carousel__slides", style: slidesStyles, onScroll: this.onScroll, ref: (el) => (this.slidesContainer = el) }, index.h("slot", { key: '8684886a48992ec0f61cab7c87b73c3cba1be4d1', onSlotchange: this.onSlotChange })))));
166
167
  }
167
168
  get el() { return index.getElement(this); }
168
169
  };
@@ -50,6 +50,7 @@ export class SwirlCarousel {
50
50
  }
51
51
  onWindowResize() {
52
52
  this.checkScrollStatus();
53
+ this.checkScrollPosition();
53
54
  }
54
55
  componentDidLoad() {
55
56
  queueMicrotask(() => {
@@ -155,7 +156,7 @@ export class SwirlCarousel {
155
156
  "carousel--is-at-start": this.isAtStart,
156
157
  "carousel--is-at-end": this.isAtEnd,
157
158
  });
158
- return (h(Host, { key: '4a51de70cfbc822287ac89be9a023ce3b1765c72', "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, h("div", { key: '9252572f5774605943cd9dcb5ce69fe80db082eb', class: className }, this.isScrollable && !this.isAtStart && (h("swirl-button", { key: 'e580f6713df6b45e9375aa8b235259d10c647d4e', class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "floating" })), this.isScrollable && !this.isAtEnd && (h("swirl-button", { key: 'c6726a036c07c20f35931684c2ba4bb5f72fcd18', class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "floating" })), h("div", { key: '5e72c254a630d77df8cb29ea23e799b3a78081d0', "aria-live": "polite", class: "carousel__slides", style: slidesStyles, onScroll: this.onScroll, ref: (el) => (this.slidesContainer = el) }, h("slot", { key: '8b1a05d213ca9f011769154a19fb5d9777b26247', onSlotchange: this.onSlotChange })))));
159
+ return (h(Host, { key: '49ae3956e780803b3a71be6bc6ae10f49f4ff6a2', "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, h("div", { key: 'f178dfcf58ece220b1ef9f76dbea5a72082ddc73', class: className }, this.isScrollable && !this.isAtStart && (h("swirl-button", { key: 'b9cf8dffb2017a8ce51f7ffc1d566de428481863', class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "floating" })), this.isScrollable && !this.isAtEnd && (h("swirl-button", { key: '9b59149c2838e52c00eb3f312b5c66a12e56e965', class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "floating" })), h("div", { key: 'f5b9343af6a14957982aeca99b2931139cd9d58d', "aria-live": "polite", class: "carousel__slides", style: slidesStyles, onScroll: this.onScroll, ref: (el) => (this.slidesContainer = el) }, h("slot", { key: '8684886a48992ec0f61cab7c87b73c3cba1be4d1', onSlotchange: this.onSlotChange })))));
159
160
  }
160
161
  static get is() { return "swirl-carousel"; }
161
162
  static get encapsulation() { return "shadow"; }