@oiz/stzh-components 2.10.0-beta → 2.10.0
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/cjs/{app-globals-1c49bef9.js → app-globals-4b0a6e5e.js} +2 -2
- package/dist/cjs/{app-globals-1c49bef9.js.map → app-globals-4b0a6e5e.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +35 -11
- package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cell.cjs.entry.js +2 -2
- package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-container.cjs.entry.js +9 -2
- package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +10 -3
- package/dist/cjs/stzh-figure.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-print.cjs.entry.js +52 -0
- package/dist/cjs/stzh-print.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-ratio.cjs.entry.js +5 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +52 -0
- package/dist/cjs/stzh-scrollup.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-skiplink.cjs.entry.js +38 -1
- package/dist/cjs/stzh-skiplink.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +51 -0
- package/dist/cjs/stzh-vbz-carousel.cjs.entry.js.map +1 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +10 -0
- package/dist/collection/components/stzh-actions/stzh-actions.css +3 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -0
- package/dist/collection/components/stzh-amount/stzh-amount.css +3 -0
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -0
- package/dist/collection/components/stzh-appnav/stzh-appnav.css +3 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
- package/dist/collection/components/stzh-audio/stzh-audio.css +3 -0
- package/dist/collection/components/stzh-badge/stzh-badge.css +3 -0
- package/dist/collection/components/stzh-button/stzh-button.css +3 -0
- package/dist/collection/components/stzh-button/stzh-button.js +1 -1
- package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
- package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +3 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -0
- package/dist/collection/components/stzh-card/stzh-card.css +3 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.css +3 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +37 -24
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +148 -12
- package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +50 -50
- package/dist/collection/components/stzh-cell/stzh-cell.css +11 -19
- package/dist/collection/components/stzh-cell/stzh-cell.js +8 -14
- package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
- package/dist/collection/components/stzh-chart/stzh-chart.css +3 -0
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +3 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +3 -0
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -0
- package/dist/collection/components/stzh-contact/stzh-contact.css +3 -0
- package/dist/collection/components/stzh-container/stzh-container.css +22 -5
- package/dist/collection/components/stzh-container/stzh-container.js +51 -2
- package/dist/collection/components/stzh-container/stzh-container.js.map +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +1271 -9
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +3 -0
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +3 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -0
- package/dist/collection/components/stzh-details/stzh-details.css +10 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +6 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
- package/dist/collection/components/stzh-figure/stzh-figure.css +18 -6
- package/dist/collection/components/stzh-figure/stzh-figure.js +47 -2
- package/dist/collection/components/stzh-figure/stzh-figure.js.map +1 -1
- package/dist/collection/components/stzh-figure/stzh-figure.stories.js +10 -0
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +13 -5
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -0
- package/dist/collection/components/stzh-header/stzh-header.css +33 -15
- package/dist/collection/components/stzh-header/stzh-header.stories.js +7 -7
- package/dist/collection/components/stzh-heading/stzh-heading.css +3 -0
- package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +3 -0
- package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +3 -0
- package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -0
- package/dist/collection/components/stzh-input/stzh-input.css +3 -0
- package/dist/collection/components/stzh-invert/stzh-invert.css +3 -0
- package/dist/collection/components/stzh-langnav/stzh-langnav.css +3 -0
- package/dist/collection/components/stzh-link/stzh-link.css +3 -0
- package/dist/collection/components/stzh-list/stzh-list.css +3 -0
- package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -0
- package/dist/collection/components/stzh-loader/stzh-loader.css +3 -0
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -0
- package/dist/collection/components/stzh-menu/stzh-menu.css +3 -0
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -0
- package/dist/collection/components/stzh-message/stzh-message.css +3 -0
- package/dist/collection/components/stzh-metanav/stzh-metanav.css +3 -0
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +3 -0
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +3 -0
- package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -0
- package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -0
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -0
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +2 -2
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +3 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -0
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -0
- package/dist/collection/components/stzh-panorama/stzh-panorama.css +3 -0
- package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
- package/dist/collection/components/stzh-print/stzh-print.css +127 -0
- package/dist/collection/components/stzh-print/stzh-print.js +53 -0
- package/dist/collection/components/stzh-print/stzh-print.js.map +1 -0
- package/dist/collection/components/stzh-print/stzh-print.stories.js +43 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +3 -0
- package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.css +457 -21
- package/dist/collection/components/stzh-ratio/stzh-ratio.js +110 -4
- package/dist/collection/components/stzh-ratio/stzh-ratio.js.map +1 -1
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +3 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -0
- package/dist/collection/components/stzh-row/stzh-row.css +3 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -0
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +127 -0
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.js +53 -0
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.js.map +1 -0
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.stories.js +99 -0
- package/dist/collection/components/stzh-section/stzh-section.css +3 -0
- package/dist/collection/components/stzh-share/stzh-share.css +3 -0
- package/dist/collection/components/stzh-show/stzh-show.css +3 -0
- package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +3 -0
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +25 -0
- package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +3 -0
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -0
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +81 -1
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js.map +1 -1
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -0
- package/dist/collection/components/stzh-space/stzh-space.css +3 -0
- package/dist/collection/components/stzh-status/stzh-status.css +3 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -0
- package/dist/collection/components/stzh-table/stzh-table.css +3 -0
- package/dist/collection/components/stzh-text/stzh-text.css +3 -0
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +3 -0
- package/dist/collection/components/stzh-timeline/stzh-timeline.css +3 -0
- package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +3 -0
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +3 -0
- package/dist/collection/components/stzh-toast/stzh-toast.css +3 -0
- package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +3 -0
- package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +3 -0
- package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +142 -0
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.js +76 -0
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.js.map +1 -0
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.stories.js +52 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -0
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -0
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -0
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +3 -0
- package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-accordion-item.js +1 -1
- package/dist/components/stzh-accordion-item.js.map +1 -1
- package/dist/components/stzh-button2.js.map +1 -1
- package/dist/components/stzh-carousel.js +1 -579
- package/dist/components/stzh-carousel.js.map +1 -1
- package/dist/components/stzh-carousel2.js +615 -0
- package/dist/components/stzh-carousel2.js.map +1 -0
- package/dist/components/stzh-cell.js +3 -3
- package/dist/components/stzh-cell.js.map +1 -1
- package/dist/components/stzh-container.js +13 -3
- package/dist/components/stzh-container.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-details.js +1 -1
- package/dist/components/stzh-details.js.map +1 -1
- package/dist/components/stzh-dropdown2.js +1 -1
- package/dist/components/stzh-dropdown2.js.map +1 -1
- package/dist/components/stzh-figure2.js +12 -3
- package/dist/components/stzh-figure2.js.map +1 -1
- package/dist/components/stzh-footer.js +1 -1
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-panorama.js.map +1 -1
- package/dist/components/stzh-print.d.ts +11 -0
- package/dist/components/stzh-print.js +64 -0
- package/dist/components/stzh-print.js.map +1 -0
- package/dist/components/stzh-ratio2.js +10 -2
- package/dist/components/stzh-ratio2.js.map +1 -1
- package/dist/components/stzh-scrollup.d.ts +11 -0
- package/dist/components/stzh-scrollup.js +64 -0
- package/dist/components/stzh-scrollup.js.map +1 -0
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
- package/dist/components/stzh-skiplink.js +39 -2
- package/dist/components/stzh-skiplink.js.map +1 -1
- package/dist/components/stzh-vbz-carousel.d.ts +11 -0
- package/dist/components/stzh-vbz-carousel.js +72 -0
- package/dist/components/stzh-vbz-carousel.js.map +1 -0
- package/dist/esm/{app-globals-503e5649.js → app-globals-fecef0e2.js} +2 -2
- package/dist/esm/{app-globals-503e5649.js.map → app-globals-fecef0e2.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion-item.entry.js +1 -1
- package/dist/esm/stzh-accordion-item.entry.js.map +1 -1
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +35 -11
- package/dist/esm/stzh-carousel.entry.js.map +1 -1
- package/dist/esm/stzh-cell.entry.js +2 -2
- package/dist/esm/stzh-cell.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-container.entry.js +9 -2
- package/dist/esm/stzh-container.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-details.entry.js.map +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm/stzh-figure.entry.js +10 -3
- package/dist/esm/stzh-figure.entry.js.map +1 -1
- package/dist/esm/stzh-footer.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-header.entry.js +1 -1
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-panorama.entry.js.map +1 -1
- package/dist/esm/stzh-print.entry.js +48 -0
- package/dist/esm/stzh-print.entry.js.map +1 -0
- package/dist/esm/stzh-ratio.entry.js +5 -1
- package/dist/esm/stzh-ratio.entry.js.map +1 -1
- package/dist/esm/stzh-scrollup.entry.js +48 -0
- package/dist/esm/stzh-scrollup.entry.js.map +1 -0
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm/stzh-skiplink.entry.js +39 -2
- package/dist/esm/stzh-skiplink.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-carousel.entry.js +47 -0
- package/dist/esm/stzh-vbz-carousel.entry.js.map +1 -0
- package/dist/esm-es5/{app-globals-503e5649.js → app-globals-fecef0e2.js} +2 -2
- package/dist/esm-es5/{app-globals-503e5649.js.map → app-globals-fecef0e2.js.map} +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-accordion-item.entry.js.map +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-container.entry.js +1 -1
- package/dist/esm-es5/stzh-container.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-details.entry.js.map +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js.map +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js.map +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
- package/dist/esm-es5/stzh-print.entry.js +2 -0
- package/dist/esm-es5/stzh-print.entry.js.map +1 -0
- package/dist/esm-es5/stzh-ratio.entry.js +1 -1
- package/dist/esm-es5/stzh-ratio.entry.js.map +1 -1
- package/dist/esm-es5/stzh-scrollup.entry.js +2 -0
- package/dist/esm-es5/stzh-scrollup.entry.js.map +1 -0
- package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
- package/dist/esm-es5/stzh-skiplink.entry.js.map +1 -1
- package/dist/esm-es5/stzh-vbz-carousel.entry.js +2 -0
- package/dist/esm-es5/stzh-vbz-carousel.entry.js.map +1 -0
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
- package/dist/stzh-components/{p-42d27a5d.system.entry.js → p-0d654519.system.entry.js} +2 -2
- package/dist/stzh-components/{p-42d27a5d.system.entry.js.map → p-0d654519.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-0dcbb483.system.entry.js.map +1 -1
- package/dist/stzh-components/p-0f3f22c8.entry.js +2 -0
- package/dist/stzh-components/p-0f3f22c8.entry.js.map +1 -0
- package/dist/stzh-components/p-25bfad8b.entry.js +2 -0
- package/dist/stzh-components/p-25bfad8b.entry.js.map +1 -0
- package/dist/stzh-components/p-28ae4569.entry.js +2 -0
- package/dist/stzh-components/p-28ae4569.entry.js.map +1 -0
- package/dist/stzh-components/p-35de63a8.entry.js +2 -0
- package/dist/stzh-components/p-35de63a8.entry.js.map +1 -0
- package/dist/stzh-components/p-37fc4785.system.entry.js +2 -0
- package/dist/stzh-components/p-37fc4785.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-6b86b394.entry.js → p-390c4a4b.entry.js} +4 -4
- package/dist/stzh-components/{p-6b86b394.entry.js.map → p-390c4a4b.entry.js.map} +1 -1
- package/dist/stzh-components/p-491ae21b.entry.js.map +1 -1
- package/dist/stzh-components/p-4b7f4e66.entry.js +2 -0
- package/dist/stzh-components/p-4b7f4e66.entry.js.map +1 -0
- package/dist/stzh-components/p-4d975c00.entry.js +2 -0
- package/dist/stzh-components/{p-18402a84.entry.js.map → p-4d975c00.entry.js.map} +1 -1
- package/dist/stzh-components/p-531fd43a.entry.js +2 -0
- package/dist/stzh-components/p-531fd43a.entry.js.map +1 -0
- package/dist/stzh-components/p-5f1338aa.system.entry.js.map +1 -1
- package/dist/stzh-components/p-64217de4.system.entry.js +2 -0
- package/dist/stzh-components/p-64217de4.system.entry.js.map +1 -0
- package/dist/stzh-components/p-6858fb1c.entry.js +2 -0
- package/dist/stzh-components/p-6858fb1c.entry.js.map +1 -0
- package/dist/stzh-components/p-6c9e992d.entry.js +2 -0
- package/dist/stzh-components/p-6c9e992d.entry.js.map +1 -0
- package/dist/stzh-components/p-70680746.entry.js +2 -0
- package/dist/stzh-components/p-70680746.entry.js.map +1 -0
- package/dist/stzh-components/p-81aee661.system.entry.js +2 -0
- package/dist/stzh-components/{p-1d8dbb06.system.entry.js.map → p-81aee661.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-83e30e85.system.entry.js +2 -0
- package/dist/stzh-components/p-83e30e85.system.entry.js.map +1 -0
- package/dist/stzh-components/p-844a2406.system.entry.js +2 -0
- package/dist/stzh-components/p-844a2406.system.entry.js.map +1 -0
- package/dist/stzh-components/p-8c26e8c9.entry.js +2 -0
- package/dist/stzh-components/{p-a8f684d4.entry.js.map → p-8c26e8c9.entry.js.map} +1 -1
- package/dist/stzh-components/p-8f9dc890.system.entry.js +2 -0
- package/dist/stzh-components/p-8f9dc890.system.entry.js.map +1 -0
- package/dist/stzh-components/p-9790b917.entry.js +2 -0
- package/dist/stzh-components/p-9790b917.entry.js.map +1 -0
- package/dist/stzh-components/p-a2a68a9d.system.entry.js +2 -0
- package/dist/stzh-components/p-a2a68a9d.system.entry.js.map +1 -0
- package/dist/stzh-components/p-b1d5d2df.system.entry.js +2 -0
- package/dist/stzh-components/p-b1d5d2df.system.entry.js.map +1 -0
- package/dist/stzh-components/p-be975e7b.system.js +2 -0
- package/dist/stzh-components/{p-5fce4cad.system.js.map → p-be975e7b.system.js.map} +1 -1
- package/dist/stzh-components/{p-a12b9320.entry.js → p-bf106d8e.entry.js} +2 -2
- package/dist/stzh-components/p-bf106d8e.entry.js.map +1 -0
- package/dist/stzh-components/p-c6e46a21.entry.js.map +1 -1
- package/dist/stzh-components/{p-902b3880.system.js → p-cce9517f.system.js} +2 -2
- package/dist/stzh-components/{p-902b3880.system.js.map → p-cce9517f.system.js.map} +1 -1
- package/dist/stzh-components/p-ce501c33.system.entry.js +2 -0
- package/dist/stzh-components/p-ce501c33.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-8a9c656a.system.entry.js → p-d58e8330.system.entry.js} +2 -2
- package/dist/stzh-components/p-d58e8330.system.entry.js.map +1 -0
- package/dist/stzh-components/p-dfda6333.system.entry.js +2 -0
- package/dist/stzh-components/p-dfda6333.system.entry.js.map +1 -0
- package/dist/stzh-components/p-e03a82e6.system.entry.js +2 -0
- package/dist/stzh-components/{p-ff1cfbee.system.entry.js.map → p-e03a82e6.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-e922df8b.system.entry.js +2 -0
- package/dist/stzh-components/{p-4b5bc7a0.system.entry.js.map → p-e922df8b.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-ec8651cb.entry.js +2 -0
- package/dist/stzh-components/{p-346b8599.entry.js.map → p-ec8651cb.entry.js.map} +1 -1
- package/dist/stzh-components/{p-e11c28a1.js → p-ed41f495.js} +2 -2
- package/dist/stzh-components/{p-e11c28a1.js.map → p-ed41f495.js.map} +1 -1
- package/dist/stzh-components/p-ee8c7dc4.system.entry.js +2 -0
- package/dist/stzh-components/p-ee8c7dc4.system.entry.js.map +1 -0
- package/dist/stzh-components/p-f3ab9795.system.entry.js +2 -0
- package/dist/stzh-components/p-f3ab9795.system.entry.js.map +1 -0
- package/dist/stzh-components/p-fe31269f.entry.js +2 -0
- package/dist/stzh-components/p-fe31269f.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +22 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-cell/stzh-cell.d.ts +2 -2
- package/dist/types/components/stzh-container/stzh-container.d.ts +4 -0
- package/dist/types/components.d.ts +186 -15
- package/dist/types/index.d.ts +10 -1
- package/dist/vscode-data.json +213 -24
- package/package.json +1 -1
- package/dist/stzh-components/p-061ede8b.entry.js +0 -2
- package/dist/stzh-components/p-061ede8b.entry.js.map +0 -1
- package/dist/stzh-components/p-086e9523.system.entry.js +0 -2
- package/dist/stzh-components/p-086e9523.system.entry.js.map +0 -1
- package/dist/stzh-components/p-18402a84.entry.js +0 -2
- package/dist/stzh-components/p-1ae561a5.system.entry.js +0 -2
- package/dist/stzh-components/p-1ae561a5.system.entry.js.map +0 -1
- package/dist/stzh-components/p-1c930dc5.entry.js +0 -2
- package/dist/stzh-components/p-1c930dc5.entry.js.map +0 -1
- package/dist/stzh-components/p-1d8dbb06.system.entry.js +0 -2
- package/dist/stzh-components/p-1edbef4a.system.entry.js +0 -2
- package/dist/stzh-components/p-1edbef4a.system.entry.js.map +0 -1
- package/dist/stzh-components/p-2eb74ed1.entry.js +0 -2
- package/dist/stzh-components/p-2eb74ed1.entry.js.map +0 -1
- package/dist/stzh-components/p-2f205fad.entry.js +0 -2
- package/dist/stzh-components/p-2f205fad.entry.js.map +0 -1
- package/dist/stzh-components/p-32773a2c.system.entry.js +0 -2
- package/dist/stzh-components/p-32773a2c.system.entry.js.map +0 -1
- package/dist/stzh-components/p-346b8599.entry.js +0 -2
- package/dist/stzh-components/p-3d3d09c3.entry.js +0 -2
- package/dist/stzh-components/p-3d3d09c3.entry.js.map +0 -1
- package/dist/stzh-components/p-4b5bc7a0.system.entry.js +0 -2
- package/dist/stzh-components/p-5fce4cad.system.js +0 -2
- package/dist/stzh-components/p-6966188f.system.entry.js +0 -2
- package/dist/stzh-components/p-6966188f.system.entry.js.map +0 -1
- package/dist/stzh-components/p-8a9c656a.system.entry.js.map +0 -1
- package/dist/stzh-components/p-95a50796.entry.js +0 -2
- package/dist/stzh-components/p-95a50796.entry.js.map +0 -1
- package/dist/stzh-components/p-a12b9320.entry.js.map +0 -1
- package/dist/stzh-components/p-a8f684d4.entry.js +0 -2
- package/dist/stzh-components/p-b98bc5c1.entry.js +0 -2
- package/dist/stzh-components/p-b98bc5c1.entry.js.map +0 -1
- package/dist/stzh-components/p-bb5b861d.system.entry.js +0 -2
- package/dist/stzh-components/p-bb5b861d.system.entry.js.map +0 -1
- package/dist/stzh-components/p-c4c8b232.system.entry.js +0 -2
- package/dist/stzh-components/p-c4c8b232.system.entry.js.map +0 -1
- package/dist/stzh-components/p-d3f4ad11.system.entry.js +0 -2
- package/dist/stzh-components/p-d3f4ad11.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e0e7105e.entry.js +0 -2
- package/dist/stzh-components/p-e0e7105e.entry.js.map +0 -1
- package/dist/stzh-components/p-ff1cfbee.system.entry.js +0 -2
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +0 -27
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { i as isStzhElement } from './utils.js';
|
|
3
|
+
import { a as addMediaChangeListener, r as removeMediaChangeListener, m as media } from './media-utils.js';
|
|
4
|
+
|
|
5
|
+
const stzhCarouselCss = ".sc-stzh-carousel-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-carousel-h{display:none}.sc-stzh-carousel-h *.sc-stzh-carousel,.sc-stzh-carousel-h *.sc-stzh-carousel::before,.sc-stzh-carousel-h *.sc-stzh-carousel::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-carousel-h .has-focus.sc-stzh-carousel{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-carousel-h .stzh-fylingfocus-focused.sc-stzh-carousel{outline-style:none !important}.sc-stzh-carousel-h .stzh-fylingfocus-focused.sc-stzh-carousel::-moz-focus-inner{border:0 !important}.sc-stzh-carousel-h{--peek:calc(var(--peek-in, 0px) + var(--peek-out, 0px));--peek-out:1.25rem;--padding-top:0px;--padding-bottom:0px;--gutter:var(--stzh-space-xxxsmall);--snap-stop:always;--slides:1;--slide-size:calc((100% - (var(--slides) - 1) * var(--gutter)) / var(--slides))}@media screen and (min-width: 600px){.sc-stzh-carousel-h{--peek-out:2rem}}@media screen and (min-width: 1024px){.sc-stzh-carousel-h{--peek-out:0px}}.sc-stzh-carousel-h .sc-stzh-carousel-s>*{width:100%;height:100%;-ms-flex-negative:0;flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:var(--snap-stop)}.sc-stzh-carousel-h .sc-stzh-carousel-s img{-webkit-user-drag:none;user-drag:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions]{position:absolute;top:0;left:0;z-index:1;pointer-events:none;padding:0 var(--peek)}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-text{width:auto}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-button{pointer-events:all}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-space,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-hspace,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-vspace{padding:var(--stzh-space-xsmall)}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions]{--background-color:transparent}[variant=cards].sc-stzh-carousel-h{--padding-top:0.25rem;--padding-bottom:0.25rem;--gutter:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){[variant=cards].sc-stzh-carousel-h{--peek-out:2.5rem;--gutter:var(--stzh-space-small)}}@media screen and (min-width: 1260px){[variant=cards].sc-stzh-carousel-h{--peek-out:5.5rem;--gutter:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){[variant=cards].sc-stzh-carousel-h{--peek-out:calc((100vw - 78.75rem - var(--stzh-scrollbar-width, 0px)) / 2)}}.sc-stzh-carousel-h[variant=cards] .sc-stzh-carousel-s>[slot=actions]{position:relative;-ms-flex-order:1;order:1;margin-top:calc(var(--stzh-space-medium) - var(--padding-bottom))}[no-peek].sc-stzh-carousel-h:not([no-peek=false]){--peek-out:0px;--peek-in:0px}.stzh-carousel.sc-stzh-carousel{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:calc(100% + var(--peek-out) * 2);margin-left:calc(var(--peek-out) / -1);margin-right:calc(var(--peek-out) / -1)}.stzh-carousel__vhidden.sc-stzh-carousel{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-carousel__scroll.sc-stzh-carousel{position:relative;grid-area:slides;display:grid;width:100%;height:100%;place-items:center;overflow-x:auto;overflow-y:visible;grid-auto-flow:column;grid-auto-columns:var(--slide-size);grid-auto-rows:100%;-moz-column-gap:var(--gutter);-webkit-column-gap:var(--gutter);column-gap:var(--gutter);-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scroll-padding:0 var(--peek);padding:var(--padding-top) var(--peek) var(--padding-bottom)}@media (prefers-reduced-motion: reduce){.stzh-carousel__scroll.sc-stzh-carousel{scroll-behavior:auto}}.stzh-carousel__scroll.sc-stzh-carousel::-webkit-scrollbar{display:none}.stzh-carousel--is-draggable.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grab;cursor:grab}.stzh-carousel--is-dragging.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grabbing;cursor:grabbing}.stzh-carousel--is-disabled.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:not-allowed;overflow:hidden}.stzh-carousel--is-non-interactive.sc-stzh-carousel{pointer-events:none;-ms-touch-action:none;touch-action:none}";
|
|
6
|
+
|
|
7
|
+
const reducedMotionMedia = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
8
|
+
let carouselCounter = 0;
|
|
9
|
+
const StzhCarousel = /*@__PURE__*/ proxyCustomElement(class StzhCarousel extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.stzhSlideStart = createEvent(this, "stzhSlideStart", 7);
|
|
14
|
+
this.stzhSlidePassed = createEvent(this, "stzhSlidePassed", 7);
|
|
15
|
+
this.stzhSlideEnd = createEvent(this, "stzhSlideEnd", 7);
|
|
16
|
+
/** Current scroll position */
|
|
17
|
+
this.slideScrollLeft = 0;
|
|
18
|
+
/** Flag whether scrolling was done by user or not */
|
|
19
|
+
this.scrolledByAutoplay = false;
|
|
20
|
+
/** Timeout ID used to catch the end of scroll events */
|
|
21
|
+
this.scrollTimeoutId = null;
|
|
22
|
+
/** Last drag event position */
|
|
23
|
+
this.lastX = null;
|
|
24
|
+
/** Where the dragging started */
|
|
25
|
+
this.startX = null;
|
|
26
|
+
/** Where the dragging started scroll position */
|
|
27
|
+
this.startScrollLeft = null;
|
|
28
|
+
/** Timeout ID for a smooth drag release */
|
|
29
|
+
this.disableTimeoutId = null;
|
|
30
|
+
/** Whether user has just stopped dragging */
|
|
31
|
+
this.stoppedDragging = false;
|
|
32
|
+
this.onReducedMotionMediaChange = () => {
|
|
33
|
+
this.autoplayDisabledByMotionMedia = reducedMotionMedia.matches;
|
|
34
|
+
};
|
|
35
|
+
this.onMouseenter = () => {
|
|
36
|
+
if (!this.preventAutoplayPause) {
|
|
37
|
+
this.autoplayDisabledByMouse = true;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
this.onMouseleave = () => {
|
|
41
|
+
this.autoplayDisabledByMouse = false;
|
|
42
|
+
};
|
|
43
|
+
this.onFocusin = () => {
|
|
44
|
+
if (!this.preventAutoplayPause) {
|
|
45
|
+
this.autoplayDisabledByFocus = true;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
this.onFocusout = () => {
|
|
49
|
+
this.autoplayDisabledByFocus = false;
|
|
50
|
+
};
|
|
51
|
+
this.onPreviousClick = () => {
|
|
52
|
+
this.scrollToPreviousSnapPoint();
|
|
53
|
+
};
|
|
54
|
+
this.onNextClick = () => {
|
|
55
|
+
this.scrollToNextSnapPoint();
|
|
56
|
+
};
|
|
57
|
+
this.onSlideResize = () => {
|
|
58
|
+
if (this.scrollElement) {
|
|
59
|
+
this.itemSize = this.sizingMethod();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
this.onMutation = () => {
|
|
63
|
+
if (!this.scrollElement) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.slideElements = Array.from(this.scrollElement.children);
|
|
67
|
+
this.slideElements.forEach((slide, index) => {
|
|
68
|
+
slide.setAttribute("role", "group");
|
|
69
|
+
slide.setAttribute("aria-roledescription", "slide");
|
|
70
|
+
slide.setAttribute("aria-label", this.localization.slideLabel
|
|
71
|
+
.replace(/\{current\}/gi, (index + 1).toString())
|
|
72
|
+
.replace(/\{total\}/gi, this.slideElements.length.toString()));
|
|
73
|
+
});
|
|
74
|
+
this.previousElements = Array.from(this.element.querySelectorAll("[data-stzh-carousel-previous]"));
|
|
75
|
+
this.nextElements = Array.from(this.element.querySelectorAll("[data-stzh-carousel-next]"));
|
|
76
|
+
this.navigationTextElements = Array.from(this.element.querySelectorAll("[data-stzh-carousel-navigation-text]"));
|
|
77
|
+
};
|
|
78
|
+
this.onScroll = () => {
|
|
79
|
+
if (this.scrollTimeoutId === null) {
|
|
80
|
+
const direction = (this.scrollElement.scrollLeft > this.slideScrollLeft) ? 1 : -1;
|
|
81
|
+
this.scrolling = true;
|
|
82
|
+
if (!this.scrolledByAutoplay) {
|
|
83
|
+
if (this.preventAutoplayStop) {
|
|
84
|
+
this.autoplayDisabledByScroll = true;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.autoplay = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
this.stzhSlideStart.emit({
|
|
91
|
+
component: "stzh-carousel",
|
|
92
|
+
index: this.slide + direction
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (this.slide !== this.calculateSlide()) {
|
|
96
|
+
this.update();
|
|
97
|
+
this.stzhSlidePassed.emit({
|
|
98
|
+
component: "stzh-carousel",
|
|
99
|
+
index: this.slide
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
this.scrollTimeoutId && window.clearTimeout(this.scrollTimeoutId);
|
|
103
|
+
this.scrollTimeoutId = window.setTimeout(this.onScrollEnd, this.scrollTimeout);
|
|
104
|
+
};
|
|
105
|
+
this.onScrollEnd = () => {
|
|
106
|
+
this.scrollTimeoutId = null;
|
|
107
|
+
this.update();
|
|
108
|
+
this.scrolling = false;
|
|
109
|
+
this.scrolledByAutoplay = false;
|
|
110
|
+
this.autoplayDisabledByScroll = false;
|
|
111
|
+
if (this.stoppedDragging) {
|
|
112
|
+
this.stoppedDragging = false;
|
|
113
|
+
this.scrollElement.style.removeProperty("scroll-behavior");
|
|
114
|
+
this.scrollElement.style.removeProperty("scroll-snap-type");
|
|
115
|
+
}
|
|
116
|
+
if (this.tabThrough || this.variant === "cards") {
|
|
117
|
+
this.ariaLive = "";
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.ariaLive = (this.currentSlides > 1 ? this.localization.slidesLabel : this.localization.slideLabel)
|
|
121
|
+
.replace(/\{(current|from)\}/gi, (this.slide + 1).toString())
|
|
122
|
+
.replace(/\{to\}/gi, (this.slide + this.currentSlides).toString())
|
|
123
|
+
.replace(/\{total\}/gi, this.slideElements.length.toString());
|
|
124
|
+
}
|
|
125
|
+
this.stzhSlideEnd.emit({
|
|
126
|
+
component: "stzh-carousel",
|
|
127
|
+
index: this.slide
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
this.onMediaChange = () => {
|
|
131
|
+
const ultra = media("ultra").matches;
|
|
132
|
+
const large = media("large").matches;
|
|
133
|
+
const medium = media("medium").matches;
|
|
134
|
+
const small = media("small").matches;
|
|
135
|
+
if (ultra && this.slidesUltra !== 0) {
|
|
136
|
+
this.currentSlides = this.slidesUltra;
|
|
137
|
+
}
|
|
138
|
+
else if (large && this.slidesLarge !== 0) {
|
|
139
|
+
this.currentSlides = this.slidesLarge;
|
|
140
|
+
}
|
|
141
|
+
else if (medium && this.slidesMedium !== 0) {
|
|
142
|
+
this.currentSlides = this.slidesMedium;
|
|
143
|
+
}
|
|
144
|
+
else if (small && this.slidesSmall !== 0) {
|
|
145
|
+
this.currentSlides = this.slidesSmall;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
this.currentSlides = this.slides;
|
|
149
|
+
}
|
|
150
|
+
// if (ultra && this.swipeSlidesUltra !== 0) {
|
|
151
|
+
// this.currentSwipeSlides = this.swipeSlidesUltra;
|
|
152
|
+
// } else if (large && this.swipeSlidesLarge !== 0) {
|
|
153
|
+
// this.currentSwipeSlides = this.swipeSlidesLarge;
|
|
154
|
+
// } else if (medium && this.swipeSlidesMedium !== 0) {
|
|
155
|
+
// this.currentSwipeSlides = this.swipeSlidesMedium;
|
|
156
|
+
// } else if (small && this.swipeSlidesSmall !== 0) {
|
|
157
|
+
// this.currentSwipeSlides = this.swipeSlidesSmall;
|
|
158
|
+
// } else {
|
|
159
|
+
// this.currentSwipeSlides = this.swipeSlides;
|
|
160
|
+
// }
|
|
161
|
+
this.currentSwipeSlides = this.currentSlides;
|
|
162
|
+
};
|
|
163
|
+
/** Scroll the slider the appropriate amount of pixels and update the last event position */
|
|
164
|
+
this.mouseMove = (event) => {
|
|
165
|
+
const distance = this.lastX - event.clientX;
|
|
166
|
+
this.lastX = event.clientX;
|
|
167
|
+
this.scrollElement.scrollLeft += distance;
|
|
168
|
+
};
|
|
169
|
+
/** Clear disable timeout, set up variables and styles and attach the listener. */
|
|
170
|
+
this.startDragging = (event) => {
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
this.disableTimeoutId && window.clearTimeout(this.disableTimeoutId);
|
|
173
|
+
this.disableTimeoutId = null;
|
|
174
|
+
this.startX = this.lastX = event.clientX;
|
|
175
|
+
this.startScrollLeft = this.scrollElement.scrollLeft;
|
|
176
|
+
this.scrollElement.style.setProperty("scroll-behavior", "auto");
|
|
177
|
+
this.scrollElement.style.setProperty("scroll-snap-type", "unset");
|
|
178
|
+
this.dragging = true;
|
|
179
|
+
if (this.preventAutoplayStop) {
|
|
180
|
+
this.autoplayDisabledByDrag = true;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
this.autoplay = false;
|
|
184
|
+
}
|
|
185
|
+
window.addEventListener("mousemove", this.mouseMove);
|
|
186
|
+
window.addEventListener("mouseup", this.stopDragging, { capture: true });
|
|
187
|
+
window.addEventListener("click", this.checkClick, { capture: true });
|
|
188
|
+
};
|
|
189
|
+
/** User stopped dragging */
|
|
190
|
+
this.stopDragging = (event) => {
|
|
191
|
+
event.preventDefault();
|
|
192
|
+
const distance = Math.abs(this.startX - this.lastX);
|
|
193
|
+
const minimumReached = distance > this.distanceQuickSwipe;
|
|
194
|
+
const direction = (this.lastX > this.startX) ? 1 : -1;
|
|
195
|
+
this.dragging = false;
|
|
196
|
+
this.autoplayDisabledByDrag = false;
|
|
197
|
+
const endDraddingLeft = this.scrollElement.scrollLeft;
|
|
198
|
+
this.scrollElement.style.removeProperty("scroll-snap-type");
|
|
199
|
+
const finalLeft = this.scrollElement.scrollLeft;
|
|
200
|
+
this.scrollElement.style.setProperty("scroll-snap-type", "unset");
|
|
201
|
+
this.scrollElement.scrollTo({ left: endDraddingLeft, behavior: "auto" });
|
|
202
|
+
if (finalLeft !== this.startScrollLeft || !minimumReached) {
|
|
203
|
+
this.scrollElement.scrollTo({ left: finalLeft, behavior: reducedMotionMedia.matches ? "auto" : "smooth" });
|
|
204
|
+
}
|
|
205
|
+
else if (direction === 1) {
|
|
206
|
+
this.slideToPrevious();
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
this.slideToNext();
|
|
210
|
+
}
|
|
211
|
+
window.removeEventListener("mousemove", this.mouseMove);
|
|
212
|
+
window.removeEventListener("mouseup", this.stopDragging, { capture: true });
|
|
213
|
+
this.stoppedDragging = true;
|
|
214
|
+
};
|
|
215
|
+
this.checkClick = (event) => {
|
|
216
|
+
const distance = Math.abs(this.startX - this.lastX);
|
|
217
|
+
const minimumReached = distance > this.distancePreventClick;
|
|
218
|
+
if (minimumReached) {
|
|
219
|
+
event.preventDefault();
|
|
220
|
+
}
|
|
221
|
+
this.lastX = null;
|
|
222
|
+
window.removeEventListener("click", this.checkClick, { capture: true });
|
|
223
|
+
};
|
|
224
|
+
this.autoplayInterval = () => {
|
|
225
|
+
this.scrolledByAutoplay = true;
|
|
226
|
+
if (this.hasReachedLastSlide()) {
|
|
227
|
+
this.slideTo(0);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
this.slideToNext();
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
this.localization = undefined;
|
|
234
|
+
this.variant = "default";
|
|
235
|
+
this.disabled = false;
|
|
236
|
+
this.noPeek = false;
|
|
237
|
+
this.slides = 1;
|
|
238
|
+
this.slidesSmall = 0;
|
|
239
|
+
this.slidesMedium = 0;
|
|
240
|
+
this.slidesLarge = 0;
|
|
241
|
+
this.slidesUltra = 0;
|
|
242
|
+
this.slide = 0;
|
|
243
|
+
this.autoplay = false;
|
|
244
|
+
this.autoplayTimeout = 3000;
|
|
245
|
+
this.nonInteractive = false;
|
|
246
|
+
this.preventMouseDrag = false;
|
|
247
|
+
this.preventAutoplayPause = false;
|
|
248
|
+
this.preventAutoplayStop = false;
|
|
249
|
+
this.tabThrough = false;
|
|
250
|
+
this.scrollTimeout = 100;
|
|
251
|
+
this.distanceQuickSwipe = 40;
|
|
252
|
+
this.distancePreventClick = 6;
|
|
253
|
+
this.autoplayRunning = false;
|
|
254
|
+
this.autoplayDisabledByMotionMedia = false;
|
|
255
|
+
this.autoplayDisabledByMouse = false;
|
|
256
|
+
this.autoplayDisabledByFocus = false;
|
|
257
|
+
this.autoplayDisabledByScroll = false;
|
|
258
|
+
this.autoplayDisabledByDrag = false;
|
|
259
|
+
this.dragging = false;
|
|
260
|
+
this.scrolling = false;
|
|
261
|
+
this.ariaLive = "";
|
|
262
|
+
this.currentSlides = 1;
|
|
263
|
+
this.currentSwipeSlides = 1;
|
|
264
|
+
this.slideElements = [];
|
|
265
|
+
this.previousElements = [];
|
|
266
|
+
this.nextElements = [];
|
|
267
|
+
this.navigationTextElements = [];
|
|
268
|
+
}
|
|
269
|
+
/** Scroll to a slide by index */
|
|
270
|
+
async slideTo(index, behaviour = "smooth") {
|
|
271
|
+
this.scrollToSlide(index, behaviour);
|
|
272
|
+
}
|
|
273
|
+
/** Scroll to previous snap point */
|
|
274
|
+
async slideToPrevious(behaviour = "smooth") {
|
|
275
|
+
this.scrollToPreviousSnapPoint(behaviour);
|
|
276
|
+
}
|
|
277
|
+
/** Scroll to next snap point */
|
|
278
|
+
async slideToNext(behaviour = "smooth") {
|
|
279
|
+
this.scrollToNextSnapPoint(behaviour);
|
|
280
|
+
}
|
|
281
|
+
disabledWatcher() {
|
|
282
|
+
if (this.disabled) {
|
|
283
|
+
this.scrollElement && this.scrollElement.removeEventListener("scroll", this.onScroll);
|
|
284
|
+
this.scrollTimeoutId && window.clearTimeout(this.scrollTimeoutId);
|
|
285
|
+
this.scrollTimeoutId = null;
|
|
286
|
+
this.element.removeEventListener("mouseenter", this.onMouseenter);
|
|
287
|
+
this.element.removeEventListener("mouseleave", this.onMouseleave);
|
|
288
|
+
this.element.removeEventListener("focusin", this.onFocusin);
|
|
289
|
+
this.element.removeEventListener("focusout", this.onFocusout);
|
|
290
|
+
this.onReducedMotionMediaChange();
|
|
291
|
+
reducedMotionMedia && reducedMotionMedia.removeEventListener("change", this.onReducedMotionMediaChange);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
this.scrollElement && this.scrollElement.addEventListener("scroll", this.onScroll, { passive: true });
|
|
295
|
+
this.element.addEventListener("mouseenter", this.onMouseenter);
|
|
296
|
+
this.element.addEventListener("mouseleave", this.onMouseleave);
|
|
297
|
+
this.element.addEventListener("focusin", this.onFocusin);
|
|
298
|
+
this.element.addEventListener("focusout", this.onFocusout);
|
|
299
|
+
reducedMotionMedia && reducedMotionMedia.addEventListener("change", this.onReducedMotionMediaChange);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
preventMouseDragWatcher() {
|
|
303
|
+
if (this.preventMouseDrag || this.disabled) {
|
|
304
|
+
this.disableTimeoutId && window.clearTimeout(this.disableTimeoutId);
|
|
305
|
+
this.disableTimeoutId = null;
|
|
306
|
+
this.scrollElement && this.scrollElement.removeEventListener("mousedown", this.startDragging);
|
|
307
|
+
this.lastX = null;
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
this.scrollElement && this.scrollElement.addEventListener("mousedown", this.startDragging);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
autoplayRunningWatcher() {
|
|
314
|
+
if (!this.autoplay
|
|
315
|
+
|| this.disabled
|
|
316
|
+
|| this.autoplayDisabledByMotionMedia
|
|
317
|
+
|| this.autoplayDisabledByMouse
|
|
318
|
+
|| this.autoplayDisabledByFocus
|
|
319
|
+
|| this.autoplayDisabledByScroll
|
|
320
|
+
|| this.autoplayDisabledByDrag) {
|
|
321
|
+
this.autoplayIntervalId && window.clearInterval(this.autoplayIntervalId);
|
|
322
|
+
this.autoplayIntervalId = null;
|
|
323
|
+
this.autoplayRunning = false;
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
this.autoplayIntervalId && window.clearInterval(this.autoplayIntervalId);
|
|
327
|
+
this.autoplayIntervalId = window.setInterval(this.autoplayInterval, this.autoplayTimeout);
|
|
328
|
+
this.autoplayRunning = true;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
snapAlignWatcher() {
|
|
332
|
+
this.slideElements.forEach((slide, index) => {
|
|
333
|
+
const shouldSnap = (index - this.currentSwipeSlides) % this.currentSwipeSlides === 0;
|
|
334
|
+
if (shouldSnap) {
|
|
335
|
+
slide.style.removeProperty("scroll-snap-align");
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
slide.style.setProperty("scroll-snap-align", "none");
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
inertWatcher() {
|
|
343
|
+
this.slideElements.forEach((slide, index) => {
|
|
344
|
+
const isActive = this.tabThrough
|
|
345
|
+
|| this.variant === "cards"
|
|
346
|
+
|| index >= this.slide && index < this.slide + this.currentSlides;
|
|
347
|
+
slide.inert = !isActive;
|
|
348
|
+
if (isActive) {
|
|
349
|
+
slide.removeAttribute("aria-hidden");
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
slide.setAttribute("aria-hidden", isActive ? "false" : "true");
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
prevNextNavigationWatcher() {
|
|
357
|
+
const tabThrough = this.tabThrough || this.variant === "cards";
|
|
358
|
+
const setAriaAttributes = (element) => {
|
|
359
|
+
const isStzh = isStzhElement(element);
|
|
360
|
+
if (tabThrough) {
|
|
361
|
+
element.setAttribute("aria-hidden", "true");
|
|
362
|
+
element.setAttribute(isStzh ? "a11y-tabindex" : "tabindex", "-1");
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
element.removeAttribute("aria-hidden");
|
|
366
|
+
element.removeAttribute(isStzh ? "a11y-tabindex" : "tabindex");
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
this.nextElements.forEach(setAriaAttributes);
|
|
370
|
+
this.previousElements.forEach(setAriaAttributes);
|
|
371
|
+
}
|
|
372
|
+
prevNextHiddenWatcher() {
|
|
373
|
+
const hideElements = this.slideElements.length <= this.currentSlides;
|
|
374
|
+
const setHiddenAttribute = (element) => {
|
|
375
|
+
if (hideElements) {
|
|
376
|
+
element.setAttribute("hidden", "");
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
element.removeAttribute("hidden");
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
this.navigationTextElements.forEach(setHiddenAttribute);
|
|
383
|
+
this.nextElements.forEach(setHiddenAttribute);
|
|
384
|
+
this.previousElements.forEach(setHiddenAttribute);
|
|
385
|
+
}
|
|
386
|
+
nextPrevDisabledWatcher() {
|
|
387
|
+
if (!this.scrollElement) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
const reachedFirstSlide = this.slide === 0;
|
|
391
|
+
const reachedLastSlide = this.hasReachedLastSlide();
|
|
392
|
+
this.nextElements.forEach((element) => {
|
|
393
|
+
const isStzh = isStzhElement(element);
|
|
394
|
+
element.setAttribute(isStzh ? "a11y-disabled" : "aria-disabled", reachedLastSlide ? "true" : "false");
|
|
395
|
+
});
|
|
396
|
+
this.previousElements.forEach((element) => {
|
|
397
|
+
const isStzh = isStzhElement(element);
|
|
398
|
+
element.setAttribute(isStzh ? "a11y-disabled" : "aria-disabled", reachedFirstSlide ? "true" : "false");
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
nextElementsWatcher() {
|
|
402
|
+
this.nextElements.forEach((nextElement) => {
|
|
403
|
+
const isStzh = isStzhElement(nextElement);
|
|
404
|
+
nextElement.addEventListener("click", this.onNextClick);
|
|
405
|
+
nextElement.setAttribute(isStzh ? "a11y-controls" : "aria-controls", `${this.carouselId}-scroll`);
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
previousElementsWatcher() {
|
|
409
|
+
this.previousElements.forEach((previousElement) => {
|
|
410
|
+
const isStzh = isStzhElement(previousElement);
|
|
411
|
+
previousElement.addEventListener("click", this.onPreviousClick);
|
|
412
|
+
previousElement.setAttribute(isStzh ? "a11y-controls" : "aria-controls", `${this.carouselId}-scroll`);
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
scrollToSlide(index, behaviour = "smooth") {
|
|
416
|
+
if (this.disabled) {
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
this.scrollElement.scrollTo({
|
|
420
|
+
left: index * this.itemSize,
|
|
421
|
+
behavior: reducedMotionMedia.matches ? "auto" : behaviour
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/** Width of a slide */
|
|
425
|
+
sizingMethod() {
|
|
426
|
+
const css = window.getComputedStyle(this.scrollElement);
|
|
427
|
+
return (this.scrollElement.firstElementChild || this.scrollElement).offsetWidth
|
|
428
|
+
+ parseInt(css.getPropertyValue("column-gap"), 10);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Calculates the active slide.
|
|
432
|
+
* The scroll-snap-type property makes sure that the container snaps perfectly to integer multiples.
|
|
433
|
+
*/
|
|
434
|
+
calculateSlide() {
|
|
435
|
+
// Math.round: Dispatch 'stzhSlidePassed' events around the center of each slide
|
|
436
|
+
// Math.ceil: Dispatch 'stzhSlidePassed' events as soon as the next one is visible
|
|
437
|
+
// Math.floor: Dispatch 'stzhSlidePassed' events only when the next one is fully visible
|
|
438
|
+
return Math.floor(this.scrollElement.scrollLeft / this.itemSize);
|
|
439
|
+
}
|
|
440
|
+
scrollToPreviousSnapPoint(behaviour = "smooth") {
|
|
441
|
+
if (this.disabled) {
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
let previousIndex = this.slide;
|
|
445
|
+
let canSnap = false;
|
|
446
|
+
while (!canSnap && previousIndex > 0) {
|
|
447
|
+
previousIndex = previousIndex - 1;
|
|
448
|
+
canSnap = (previousIndex - this.currentSwipeSlides) % this.currentSwipeSlides === 0;
|
|
449
|
+
}
|
|
450
|
+
this.slideTo(previousIndex, behaviour);
|
|
451
|
+
}
|
|
452
|
+
scrollToNextSnapPoint(behaviour = "smooth") {
|
|
453
|
+
if (this.disabled) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
this.slideTo(this.slide + this.currentSwipeSlides, behaviour);
|
|
457
|
+
}
|
|
458
|
+
update() {
|
|
459
|
+
this.slide = this.calculateSlide();
|
|
460
|
+
this.slideScrollLeft = this.slide * this.itemSize;
|
|
461
|
+
this.onMutation();
|
|
462
|
+
}
|
|
463
|
+
hasReachedLastSlide() {
|
|
464
|
+
const { scrollLeft, offsetWidth, scrollWidth } = this.scrollElement;
|
|
465
|
+
return Math.ceil(scrollLeft + offsetWidth) >= scrollWidth;
|
|
466
|
+
}
|
|
467
|
+
async componentWillLoad() {
|
|
468
|
+
this.carouselId = `stzh-carousel-${carouselCounter++}`;
|
|
469
|
+
this.onMediaChange();
|
|
470
|
+
if (!this.localization) {
|
|
471
|
+
this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, "carousel");
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
componentDidLoad() {
|
|
475
|
+
this.itemSize = this.sizingMethod();
|
|
476
|
+
this.update();
|
|
477
|
+
this.disabledWatcher();
|
|
478
|
+
this.preventMouseDragWatcher();
|
|
479
|
+
this.autoplayRunningWatcher();
|
|
480
|
+
}
|
|
481
|
+
connectedCallback() {
|
|
482
|
+
addMediaChangeListener(this.onMediaChange);
|
|
483
|
+
this.resizeObserver = new ResizeObserver(this.onSlideResize);
|
|
484
|
+
this.resizeObserver.observe(this.element);
|
|
485
|
+
this.mutationObserver = new MutationObserver(this.onMutation);
|
|
486
|
+
this.mutationObserver.observe(this.element, {
|
|
487
|
+
childList: true,
|
|
488
|
+
subtree: true
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
disconnectedCallback() {
|
|
492
|
+
this.scrollTimeoutId && window.clearTimeout(this.scrollTimeoutId);
|
|
493
|
+
this.scrollTimeoutId = null;
|
|
494
|
+
this.disabled = true;
|
|
495
|
+
removeMediaChangeListener(this.onMediaChange);
|
|
496
|
+
if (this.resizeObserver) {
|
|
497
|
+
this.resizeObserver.disconnect();
|
|
498
|
+
}
|
|
499
|
+
if (this.mutationObserver) {
|
|
500
|
+
this.mutationObserver.disconnect();
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
render() {
|
|
504
|
+
const classes = {
|
|
505
|
+
"stzh-carousel": true,
|
|
506
|
+
"stzh-carousel--is-disabled": this.disabled,
|
|
507
|
+
"stzh-carousel--is-draggable": !this.preventMouseDrag,
|
|
508
|
+
"stzh-carousel--is-non-interactive": this.nonInteractive,
|
|
509
|
+
"stzh-carousel--is-dragging": this.dragging,
|
|
510
|
+
"stzh-carousel--is-scrolling": this.scrolling,
|
|
511
|
+
"stzh-carousel--has-autoplay": this.autoplay,
|
|
512
|
+
"stzh-carousel--is-autoplay-running": this.autoplayRunning,
|
|
513
|
+
};
|
|
514
|
+
return (h(Host, { "aria-roledescription": "carousel", style: {
|
|
515
|
+
'--slides': this.currentSlides.toString()
|
|
516
|
+
} }, h("div", { class: classes }, h("slot", { name: "actions" }), h("div", { class: "stzh-carousel__vhidden", "aria-live": this.autoplayDisabledByFocus || this.autoplayDisabledByMouse ? "polite" : "off" }, this.ariaLive), h("div", { ref: (el) => (this.scrollElement = el), id: `${this.carouselId}-scroll`, class: "stzh-carousel__scroll" }, h("slot", null)))));
|
|
517
|
+
}
|
|
518
|
+
get element() { return this; }
|
|
519
|
+
static get watchers() { return {
|
|
520
|
+
"disabled": ["disabledWatcher", "preventMouseDragWatcher", "autoplayRunningWatcher"],
|
|
521
|
+
"preventMouseDrag": ["preventMouseDragWatcher"],
|
|
522
|
+
"autoplay": ["autoplayRunningWatcher"],
|
|
523
|
+
"autoplayDisabledByMotionMedia": ["autoplayRunningWatcher"],
|
|
524
|
+
"autoplayDisabledByMouse": ["autoplayRunningWatcher"],
|
|
525
|
+
"autoplayDisabledByFocus": ["autoplayRunningWatcher"],
|
|
526
|
+
"autoplayDisabledByScroll": ["autoplayRunningWatcher"],
|
|
527
|
+
"autoplayDisabledByDrag": ["autoplayRunningWatcher"],
|
|
528
|
+
"autoplayTimeout": ["autoplayRunningWatcher"],
|
|
529
|
+
"slideElements": ["snapAlignWatcher", "inertWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher"],
|
|
530
|
+
"currentSwipeSlides": ["snapAlignWatcher"],
|
|
531
|
+
"slide": ["inertWatcher", "nextPrevDisabledWatcher"],
|
|
532
|
+
"variant": ["inertWatcher", "prevNextNavigationWatcher"],
|
|
533
|
+
"currentSlides": ["inertWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher"],
|
|
534
|
+
"tabThrough": ["inertWatcher", "prevNextNavigationWatcher"],
|
|
535
|
+
"nextElements": ["prevNextNavigationWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher", "nextElementsWatcher"],
|
|
536
|
+
"previousElements": ["prevNextNavigationWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher", "previousElementsWatcher"],
|
|
537
|
+
"navigationTextElements": ["prevNextHiddenWatcher"]
|
|
538
|
+
}; }
|
|
539
|
+
static get style() { return stzhCarouselCss; }
|
|
540
|
+
}, [6, "stzh-carousel", {
|
|
541
|
+
"localization": [16],
|
|
542
|
+
"variant": [513],
|
|
543
|
+
"disabled": [516],
|
|
544
|
+
"noPeek": [516, "no-peek"],
|
|
545
|
+
"slides": [2],
|
|
546
|
+
"slidesSmall": [2, "slides-small"],
|
|
547
|
+
"slidesMedium": [2, "slides-medium"],
|
|
548
|
+
"slidesLarge": [2, "slides-large"],
|
|
549
|
+
"slidesUltra": [2, "slides-ultra"],
|
|
550
|
+
"slide": [2],
|
|
551
|
+
"autoplay": [1028],
|
|
552
|
+
"autoplayTimeout": [2, "autoplay-timeout"],
|
|
553
|
+
"nonInteractive": [4, "non-interactive"],
|
|
554
|
+
"preventMouseDrag": [4, "prevent-mouse-drag"],
|
|
555
|
+
"preventAutoplayPause": [4, "prevent-autoplay-pause"],
|
|
556
|
+
"preventAutoplayStop": [4, "prevent-autoplay-stop"],
|
|
557
|
+
"tabThrough": [4, "tab-through"],
|
|
558
|
+
"scrollTimeout": [32],
|
|
559
|
+
"distanceQuickSwipe": [32],
|
|
560
|
+
"distancePreventClick": [32],
|
|
561
|
+
"autoplayRunning": [32],
|
|
562
|
+
"autoplayDisabledByMotionMedia": [32],
|
|
563
|
+
"autoplayDisabledByMouse": [32],
|
|
564
|
+
"autoplayDisabledByFocus": [32],
|
|
565
|
+
"autoplayDisabledByScroll": [32],
|
|
566
|
+
"autoplayDisabledByDrag": [32],
|
|
567
|
+
"dragging": [32],
|
|
568
|
+
"scrolling": [32],
|
|
569
|
+
"ariaLive": [32],
|
|
570
|
+
"currentSlides": [32],
|
|
571
|
+
"currentSwipeSlides": [32],
|
|
572
|
+
"slideElements": [32],
|
|
573
|
+
"previousElements": [32],
|
|
574
|
+
"nextElements": [32],
|
|
575
|
+
"navigationTextElements": [32],
|
|
576
|
+
"slideTo": [64],
|
|
577
|
+
"slideToPrevious": [64],
|
|
578
|
+
"slideToNext": [64]
|
|
579
|
+
}, undefined, {
|
|
580
|
+
"disabled": ["disabledWatcher", "preventMouseDragWatcher", "autoplayRunningWatcher"],
|
|
581
|
+
"preventMouseDrag": ["preventMouseDragWatcher"],
|
|
582
|
+
"autoplay": ["autoplayRunningWatcher"],
|
|
583
|
+
"autoplayDisabledByMotionMedia": ["autoplayRunningWatcher"],
|
|
584
|
+
"autoplayDisabledByMouse": ["autoplayRunningWatcher"],
|
|
585
|
+
"autoplayDisabledByFocus": ["autoplayRunningWatcher"],
|
|
586
|
+
"autoplayDisabledByScroll": ["autoplayRunningWatcher"],
|
|
587
|
+
"autoplayDisabledByDrag": ["autoplayRunningWatcher"],
|
|
588
|
+
"autoplayTimeout": ["autoplayRunningWatcher"],
|
|
589
|
+
"slideElements": ["snapAlignWatcher", "inertWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher"],
|
|
590
|
+
"currentSwipeSlides": ["snapAlignWatcher"],
|
|
591
|
+
"slide": ["inertWatcher", "nextPrevDisabledWatcher"],
|
|
592
|
+
"variant": ["inertWatcher", "prevNextNavigationWatcher"],
|
|
593
|
+
"currentSlides": ["inertWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher"],
|
|
594
|
+
"tabThrough": ["inertWatcher", "prevNextNavigationWatcher"],
|
|
595
|
+
"nextElements": ["prevNextNavigationWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher", "nextElementsWatcher"],
|
|
596
|
+
"previousElements": ["prevNextNavigationWatcher", "prevNextHiddenWatcher", "nextPrevDisabledWatcher", "previousElementsWatcher"],
|
|
597
|
+
"navigationTextElements": ["prevNextHiddenWatcher"]
|
|
598
|
+
}]);
|
|
599
|
+
function defineCustomElement() {
|
|
600
|
+
if (typeof customElements === "undefined") {
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
const components = ["stzh-carousel"];
|
|
604
|
+
components.forEach(tagName => { switch (tagName) {
|
|
605
|
+
case "stzh-carousel":
|
|
606
|
+
if (!customElements.get(tagName)) {
|
|
607
|
+
customElements.define(tagName, StzhCarousel);
|
|
608
|
+
}
|
|
609
|
+
break;
|
|
610
|
+
} });
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export { StzhCarousel as S, defineCustomElement as d };
|
|
614
|
+
|
|
615
|
+
//# sourceMappingURL=stzh-carousel2.js.map
|