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