@itcenteratunihelsinki/huds-lib 0.8.49 → 0.8.50
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/hy-hero-carousel.js +4 -10
- package/components/hy-hero-carousel.js.map +1 -1
- package/dist/cjs/hy-hero-carousel.cjs.entry.js +4 -10
- package/dist/cjs/hy-hero-carousel.cjs.entry.js.map +1 -1
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js +4 -10
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js.map +1 -1
- package/dist/esm/hy-hero-carousel.entry.js +4 -10
- package/dist/esm/hy-hero-carousel.entry.js.map +1 -1
- package/dist/huds-lib/hy-hero-carousel.entry.js +1 -1
- package/dist/huds-lib/hy-hero-carousel.entry.js.map +1 -1
- package/package.json +2 -2
|
@@ -5038,7 +5038,7 @@ const HyHeroCarousel = class {
|
|
|
5038
5038
|
crossFade: true
|
|
5039
5039
|
},
|
|
5040
5040
|
direction: "horizontal",
|
|
5041
|
-
loop:
|
|
5041
|
+
loop: false,
|
|
5042
5042
|
spaceBetween: 50,
|
|
5043
5043
|
navigation: {
|
|
5044
5044
|
nextEl: ".swiper-button-next",
|
|
@@ -5080,15 +5080,9 @@ const HyHeroCarousel = class {
|
|
|
5080
5080
|
].join(" ");
|
|
5081
5081
|
return (index.h("li", { class: paginationButtonClasses }, index.h("button", { "aria-label": `${this.ariaLabelBulletMessage} ${index$1}`, onClick: () => this.handleSlideChangeFromButtons(index$1), "data-index": index$1, "aria-current": index$1 === currentIndex ? "true" : "false" }, i.theme_text &&
|
|
5082
5082
|
index.h("span", { class: "hero-carousel--item__pagination__button__theme" }, i.theme_text), index.h("span", { innerHTML: i.title }))));
|
|
5083
|
-
})))) : null), index.h("div", { class: "hero-carousel--item__image" }, srcSet.length > 0 ? (index.h("picture", null, srcSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { "aria-hidden": "true", loading: currentIndex === 0 ? 'eager' : 'lazy', alt: i.image_alt, class: `hy-image__image`, src: i.image_fallback }))) : (index.h("img", { "aria-hidden": "true", loading: currentIndex === 0 ? 'eager' : 'lazy', alt: i.image_alt, class: `hy-image__image`, src: i.image_fallback })),
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
"hero-carousel--item__pagination__button",
|
|
5087
|
-
index$1 === 1 ? "is-current" : "",
|
|
5088
|
-
].join(" ");
|
|
5089
|
-
return (index.h("li", { class: paginationButtonClasses }, index.h("button", { "aria-label": `${this.ariaLabelBulletMessage} ${index$1}`, onClick: () => this.handleSlideChangeFromButtons(index$1), "data-index": index$1, "aria-current": index$1 === 1 ? "true" : "false" }, i.theme_text &&
|
|
5090
|
-
index.h("span", { class: "hero-carousel--item__pagination__button__theme" }, i.theme_text), index.h("span", { innerHTML: i.title }))));
|
|
5091
|
-
})))) : null, this.itemCount > 1 ? (index.h("div", { class: "hero-carousel--controls" }, index.h("div", { class: "swiper-pagination hero-carousel--pagination--mobile" }), index.h("div", { class: "hero-carousel--controls__buttons" }, index.h("div", { class: "swiper-button-prev" }, index.h("hy-icon", { class: "arrow", icon: "hy-icon-arrow-left" }), index.h("hy-icon", { class: "caret", icon: "hy-icon-caret-left" })), index.h("div", { class: "swiper-button-next" }, index.h("hy-icon", { class: "arrow", icon: "hy-icon-arrow-right" }), index.h("hy-icon", { class: "caret", icon: "hy-icon-caret-right" }))))) : null)));
|
|
5083
|
+
})))) : null), index.h("div", { class: "hero-carousel--item__image" }, srcSet.length > 0 ? (index.h("picture", null, srcSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { "aria-hidden": "true", loading: currentIndex === 0 ? 'eager' : 'lazy', alt: i.image_alt, class: `hy-image__image`, src: i.image_fallback }))) : (index.h("img", { "aria-hidden": "true", loading: currentIndex === 0 ? 'eager' : 'lazy', alt: i.image_alt, class: `hy-image__image`, src: i.image_fallback })), currentIndex !== 0 &&
|
|
5084
|
+
index.h("div", { class: "swiper-lazy-preloader" })))));
|
|
5085
|
+
})), this.itemCount > 1 ? (index.h("div", { class: "hero-carousel--controls" }, index.h("div", { class: "swiper-pagination hero-carousel--pagination--mobile" }), index.h("div", { class: "hero-carousel--controls__buttons" }, index.h("div", { class: "swiper-button-prev" }, index.h("hy-icon", { class: "arrow", icon: "hy-icon-arrow-left" }), index.h("hy-icon", { class: "caret", icon: "hy-icon-caret-left" })), index.h("div", { class: "swiper-button-next" }, index.h("hy-icon", { class: "arrow", icon: "hy-icon-arrow-right" }), index.h("hy-icon", { class: "caret", icon: "hy-icon-caret-right" }))))) : null)));
|
|
5092
5086
|
}
|
|
5093
5087
|
};
|
|
5094
5088
|
HyHeroCarousel.style = hyHeroCarouselCss;
|