@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 +1 -1
- package/dist/cjs/swirl-carousel.cjs.entry.js +2 -1
- package/dist/collection/components/swirl-carousel/swirl-carousel.js +2 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-carousel.js +2 -1
- package/dist/esm/swirl-carousel.entry.js +2 -1
- package/dist/swirl-components/p-4ba1b4c1.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/swirl-components/p-7d0fb26f.entry.js +0 -1
package/components.json
CHANGED
|
@@ -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: '
|
|
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: '
|
|
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"; }
|