@oiz/stzh-components 3.0.0 → 3.1.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-1d1f8f2e.js → app-globals-0699ef40.js} +2 -2
- package/dist/cjs/{app-globals-1d1f8f2e.js.map → app-globals-0699ef40.js.map} +1 -1
- package/dist/cjs/index-92254d32.js +46 -18
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js +19 -19
- package/dist/cjs/stzh-accordion_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js +5 -18
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-card_3.cjs.entry.js → stzh-card_2.cjs.entry.js} +6 -222
- package/dist/cjs/stzh-card_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-message.cjs.entry.js → stzh-chipgroup_2.cjs.entry.js} +19 -2
- package/dist/cjs/stzh-chipgroup_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-chipselect.cjs.entry.js +222 -0
- package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +40 -37
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-container.cjs.entry.js +1 -1
- package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-content.cjs.entry.js +1 -1
- package/dist/cjs/stzh-content.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-datalist_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +31 -33
- package/dist/cjs/stzh-datepicker_3.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-gallery.cjs.entry.js +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +175 -166
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
- package/dist/cjs/stzh-heading.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +102 -0
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +29 -44
- package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +76 -0
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +16 -15
- package/dist/cjs/stzh-pagetitle.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js +51 -25
- package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +64 -0
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-pi-menu.cjs.entry.js +202 -0
- package/dist/cjs/stzh-pi-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +83 -0
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-pi-quote.cjs.entry.js +26 -0
- package/dist/cjs/stzh-pi-quote.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +62 -0
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +7 -3
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -1
- package/dist/cjs/stzh-progressbar.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -0
- package/dist/cjs/stzh-readspeaker.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +69 -44
- package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +3 -3
- package/dist/cjs/stzh-section.cjs.entry.js.map +1 -1
- 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-space.cjs.entry.js +1 -1
- package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +10 -8
- package/dist/cjs/stzh-textandimage.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +36 -51
- package/dist/cjs/stzh-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +65 -31
- package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +36 -3
- package/dist/collection/assets/i18n/en.json +36 -3
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +16 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +38 -20
- package/dist/collection/components/stzh-accordion/stzh-accordion.js.map +1 -1
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +4 -5
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +3 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +7 -8
- 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-amount/stzh-amount.js +1 -1
- package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
- package/dist/collection/components/stzh-archivelist/stzh-archivelist.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-banner/stzh-banner.css +3 -0
- package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +3 -0
- package/dist/collection/components/stzh-button/stzh-button.css +3 -0
- 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-navigation/stzh-card-navigation.css +3 -0
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js +2 -5
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js.map +1 -1
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.css +3 -0
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js +5 -18
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js.map +1 -1
- package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.css +3 -0
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +101 -18
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.js +6 -8
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.js.map +1 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
- package/dist/collection/components/stzh-cell/stzh-cell.css +3 -0
- 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-checkbox/stzh-checkbox.js +1 -1
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js.map +1 -1
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -1
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js.map +1 -1
- package/dist/collection/components/stzh-chip/stzh-chip.css +3 -0
- package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.css +3 -0
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +3 -0
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +3 -3
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +44 -32
- 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-contact/stzh-contact.js +48 -41
- package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/stzh-container/stzh-container.css +6 -1
- package/dist/collection/components/stzh-content/stzh-content.css +11 -0
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +119 -13
- package/dist/collection/components/stzh-cta/stzh-cta.css +3 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +5 -2
- 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-datamessagelist-item/stzh-datamessagelist-item.stories.js +21 -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-datepicker/stzh-datepicker.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
- package/dist/collection/components/stzh-daterange/stzh-daterange.css +3 -0
- package/dist/collection/components/stzh-details/stzh-details.css +3 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
- package/dist/collection/components/stzh-disturber/stzh-disturber.css +3 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +7 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
- package/dist/collection/components/stzh-editor/stzh-editor.css +3 -0
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.css +3 -0
- package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.css +3 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
- package/dist/collection/components/stzh-figure/stzh-figure.css +3 -0
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +3 -0
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +17 -5
- package/dist/collection/components/stzh-gallery/stzh-gallery.css +3 -11
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -0
- package/dist/collection/components/stzh-header/stzh-header.css +34 -14
- package/dist/collection/components/stzh-header/stzh-header.js +246 -167
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-header/stzh-header.stories.js +176 -120
- package/dist/collection/components/stzh-heading/stzh-heading.css +36 -0
- package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.css +387 -0
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.e2e.js +23 -0
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.e2e.js.map +1 -0
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +159 -0
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js.map +1 -0
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.stories.js +100 -0
- package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +12 -0
- package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
- package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -0
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +3 -0
- package/dist/collection/components/stzh-input/stzh-input.css +10 -0
- package/dist/collection/components/stzh-input/stzh-input.js +29 -44
- package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
- package/dist/collection/components/stzh-invert/stzh-invert.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 +7 -19
- 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-monthyearpicker/stzh-monthyearpicker.js +1 -1
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -1
- 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-pagebottom/stzh-pagebottom.css +3 -0
- package/dist/collection/components/stzh-pagecontent/stzh-pagecontent.css +3 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +8 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +34 -15
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js.map +1 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +29 -10
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -0
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.css +461 -0
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.e2e.js +23 -0
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.e2e.js.map +1 -0
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.js +86 -0
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.js.map +1 -0
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.stories.js +99 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -0
- package/dist/collection/components/stzh-panorama/stzh-panorama.css +54 -63
- package/dist/collection/components/stzh-panorama/stzh-panorama.js +106 -26
- package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
- package/dist/collection/components/stzh-panorama/stzh-panorama.localization.js.map +1 -1
- package/dist/collection/components/stzh-panorama/stzh-panorama.stories.js +40 -36
- package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.css +443 -0
- package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.e2e.js +16 -0
- package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.e2e.js.map +1 -0
- package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.js +218 -0
- package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.js.map +1 -0
- package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.stories.js +62 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.css +503 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.e2e.js +16 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.e2e.js.map +1 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.js +527 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.js.map +1 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.localization.js +2 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.localization.js.map +1 -0
- package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.stories.js +138 -0
- package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.css +944 -0
- package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.e2e.js +23 -0
- package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.e2e.js.map +1 -0
- package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.js +149 -0
- package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.js.map +1 -0
- package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.stories.js +184 -0
- package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.css +301 -0
- package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.e2e.js +16 -0
- package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.e2e.js.map +1 -0
- package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.js +48 -0
- package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.js.map +1 -0
- package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.stories.js +42 -0
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.css +364 -0
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.e2e.js +16 -0
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.e2e.js.map +1 -0
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.js +234 -0
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.js.map +1 -0
- package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.stories.js +66 -0
- package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
- package/dist/collection/components/stzh-print/stzh-print.css +3 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +20 -1
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js.map +1 -1
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +9 -0
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +11 -2
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +24 -2
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +16 -0
- package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
- package/dist/collection/components/stzh-radio/stzh-radio.js +20 -21
- package/dist/collection/components/stzh-radio/stzh-radio.js.map +1 -1
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +14 -15
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
- package/dist/collection/components/stzh-ratio/stzh-ratio.css +3 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.js +2 -2
- 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-readspeaker/stzh-readspeaker.js +1 -0
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js.map +1 -1
- 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 +3 -0
- package/dist/collection/components/stzh-search/stzh-search.css +137 -23
- package/dist/collection/components/stzh-search/stzh-search.js +132 -47
- package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
- package/dist/collection/components/stzh-search/stzh-search.stories.js +125 -26
- package/dist/collection/components/stzh-section/stzh-section.css +81 -9
- package/dist/collection/components/stzh-section/stzh-section.js +5 -5
- package/dist/collection/components/stzh-section/stzh-section.js.map +1 -1
- 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 +587 -212
- 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-sortable/stzh-sortable.css +3 -0
- package/dist/collection/components/stzh-space/stzh-space.css +12 -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-sticky-actions/stzh-sticky-actions.css +3 -0
- package/dist/collection/components/stzh-table/stzh-table.css +3 -0
- package/dist/collection/components/stzh-tag/stzh-tag.css +3 -0
- package/dist/collection/components/stzh-text/stzh-text.css +135 -0
- package/dist/collection/components/stzh-text/stzh-text.js +1 -1
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +71 -35
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +28 -8
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.js.map +1 -1
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +37 -22
- 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-timepicker/stzh-timepicker.js +1 -1
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.js.map +1 -1
- 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-toggle/stzh-toggle.js +1 -1
- package/dist/collection/components/stzh-toggle/stzh-toggle.js.map +1 -1
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +9 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +56 -53
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js.map +1 -1
- package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.css +3 -0
- package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
- package/dist/collection/components/stzh-upload/stzh-upload.js +69 -35
- package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +3 -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 +12 -0
- package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/pages/home/home.e2e.js +16 -0
- package/dist/collection/pages/home/home.e2e.js.map +1 -0
- package/dist/collection/pages/publizistische-inhalte/publizistische-inhalte.e2e.js +16 -0
- package/dist/collection/pages/publizistische-inhalte/publizistische-inhalte.e2e.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-accordion2.js +27 -20
- package/dist/components/stzh-accordion2.js.map +1 -1
- package/dist/components/stzh-amount.js.map +1 -1
- package/dist/components/stzh-card-searchresult.js +5 -18
- package/dist/components/stzh-card-searchresult.js.map +1 -1
- package/dist/components/stzh-cardlist2.js +5 -7
- package/dist/components/stzh-cardlist2.js.map +1 -1
- package/dist/components/stzh-checkbox.js.map +1 -1
- package/dist/components/stzh-checkboxgroup.js.map +1 -1
- package/dist/components/stzh-chipgroup.js +1 -31
- package/dist/components/stzh-chipgroup.js.map +1 -1
- package/dist/{esm/stzh-chipgroup.entry.js → components/stzh-chipgroup2.js} +23 -9
- package/dist/components/stzh-chipgroup2.js.map +1 -0
- package/dist/components/stzh-chipselect2.js +2 -2
- package/dist/components/stzh-chipselect2.js.map +1 -1
- package/dist/components/stzh-contact.js +43 -38
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-container.js +1 -1
- package/dist/components/stzh-container.js.map +1 -1
- package/dist/components/stzh-content.js +1 -1
- package/dist/components/stzh-content.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-datalist-item2.js +1 -1
- package/dist/components/stzh-datalist-item2.js.map +1 -1
- package/dist/components/stzh-datatable.js +22 -16
- package/dist/components/stzh-datatable.js.map +1 -1
- package/dist/components/stzh-datepicker2.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-gallery.js +1 -1
- package/dist/components/stzh-gallery.js.map +1 -1
- package/dist/components/stzh-header.js +179 -167
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-heading2.js +1 -1
- package/dist/components/stzh-heading2.js.map +1 -1
- package/dist/components/stzh-homepage-service-highlights.d.ts +11 -0
- package/dist/components/stzh-homepage-service-highlights.js +151 -0
- package/dist/components/stzh-homepage-service-highlights.js.map +1 -0
- package/dist/components/stzh-hspace2.js +1 -1
- package/dist/components/stzh-hspace2.js.map +1 -1
- package/dist/components/stzh-input2.js +29 -44
- package/dist/components/stzh-input2.js.map +1 -1
- package/dist/components/stzh-message2.js +1 -1
- package/dist/components/stzh-message2.js.map +1 -1
- package/dist/components/stzh-monthyearpicker.js.map +1 -1
- package/dist/components/stzh-pagetitle-home.d.ts +11 -0
- package/dist/components/stzh-pagetitle-home.js +96 -0
- package/dist/components/stzh-pagetitle-home.js.map +1 -0
- package/dist/components/stzh-pagetitle.js +17 -15
- package/dist/components/stzh-pagetitle.js.map +1 -1
- package/dist/components/stzh-panorama.js +71 -36
- package/dist/components/stzh-panorama.js.map +1 -1
- package/dist/components/stzh-pi-content-navigation.d.ts +11 -0
- package/dist/components/stzh-pi-content-navigation.js +96 -0
- package/dist/components/stzh-pi-content-navigation.js.map +1 -0
- package/dist/components/stzh-pi-menu.d.ts +11 -0
- package/dist/components/stzh-pi-menu.js +239 -0
- package/dist/components/stzh-pi-menu.js.map +1 -0
- package/dist/components/stzh-pi-pagetitle.d.ts +11 -0
- package/dist/components/stzh-pi-pagetitle.js +107 -0
- package/dist/components/stzh-pi-pagetitle.js.map +1 -0
- package/dist/components/stzh-pi-quote.d.ts +11 -0
- package/dist/components/stzh-pi-quote.js +41 -0
- package/dist/components/stzh-pi-quote.js.map +1 -0
- package/dist/components/stzh-pi-teaser.d.ts +11 -0
- package/dist/components/stzh-pi-teaser.js +89 -0
- package/dist/components/stzh-pi-teaser.js.map +1 -0
- package/dist/components/stzh-progressbar-item2.js +8 -3
- package/dist/components/stzh-progressbar-item2.js.map +1 -1
- package/dist/components/stzh-progressbar.js +3 -1
- package/dist/components/stzh-progressbar.js.map +1 -1
- package/dist/components/stzh-radio2.js +18 -19
- package/dist/components/stzh-radio2.js.map +1 -1
- package/dist/components/stzh-radiogroup2.js +13 -14
- package/dist/components/stzh-radiogroup2.js.map +1 -1
- package/dist/components/stzh-ratio2.js +1 -1
- package/dist/components/stzh-ratio2.js.map +1 -1
- package/dist/components/stzh-readspeaker.js +1 -0
- package/dist/components/stzh-readspeaker.js.map +1 -1
- package/dist/components/stzh-search.js +126 -61
- package/dist/components/stzh-search.js.map +1 -1
- package/dist/components/stzh-section.js +3 -3
- package/dist/components/stzh-section.js.map +1 -1
- 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-space.js +1 -1
- package/dist/components/stzh-space.js.map +1 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-text2.js.map +1 -1
- package/dist/components/stzh-textandimage.js +12 -9
- package/dist/components/stzh-textandimage.js.map +1 -1
- package/dist/components/stzh-timepicker.js.map +1 -1
- package/dist/components/stzh-toggle.js.map +1 -1
- package/dist/components/stzh-tooltip2.js +37 -51
- package/dist/components/stzh-tooltip2.js.map +1 -1
- package/dist/components/stzh-upload.js +65 -31
- package/dist/components/stzh-upload.js.map +1 -1
- package/dist/components/stzh-vspace.js +1 -1
- package/dist/components/stzh-vspace.js.map +1 -1
- package/dist/esm/{app-globals-f9c4987b.js → app-globals-ab5b077d.js} +2 -2
- package/dist/esm/{app-globals-f9c4987b.js.map → app-globals-ab5b077d.js.map} +1 -1
- package/dist/esm/index-e3050b18.js +46 -18
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion_3.entry.js +19 -19
- package/dist/esm/stzh-accordion_3.entry.js.map +1 -1
- package/dist/esm/stzh-amount.entry.js.map +1 -1
- package/dist/esm/stzh-card-searchresult.entry.js +5 -18
- package/dist/esm/stzh-card-searchresult.entry.js.map +1 -1
- package/dist/esm/{stzh-card_3.entry.js → stzh-card_2.entry.js} +7 -222
- package/dist/esm/stzh-card_2.entry.js.map +1 -0
- package/dist/esm/stzh-checkbox.entry.js.map +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js.map +1 -1
- package/dist/esm/{stzh-message.entry.js → stzh-chipgroup_2.entry.js} +20 -4
- package/dist/esm/stzh-chipgroup_2.entry.js.map +1 -0
- package/dist/esm/stzh-chipselect.entry.js +218 -0
- package/dist/esm/stzh-chipselect.entry.js.map +1 -0
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact.entry.js +40 -37
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-container.entry.js +1 -1
- package/dist/esm/stzh-container.entry.js.map +1 -1
- package/dist/esm/stzh-content.entry.js +1 -1
- package/dist/esm/stzh-content.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-datalist_2.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +31 -33
- package/dist/esm/stzh-datepicker_3.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-gallery.entry.js +1 -1
- package/dist/esm/stzh-gallery.entry.js.map +1 -1
- package/dist/esm/stzh-header.entry.js +175 -166
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-heading.entry.js.map +1 -1
- package/dist/esm/stzh-homepage-service-highlights.entry.js +98 -0
- package/dist/esm/stzh-homepage-service-highlights.entry.js.map +1 -0
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +29 -44
- package/dist/esm/stzh-input.entry.js.map +1 -1
- package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -1
- package/dist/esm/stzh-pagetitle-home.entry.js +72 -0
- package/dist/esm/stzh-pagetitle-home.entry.js.map +1 -0
- package/dist/esm/stzh-pagetitle.entry.js +16 -15
- package/dist/esm/stzh-pagetitle.entry.js.map +1 -1
- package/dist/esm/stzh-panorama.entry.js +52 -26
- package/dist/esm/stzh-panorama.entry.js.map +1 -1
- package/dist/esm/stzh-pi-content-navigation.entry.js +60 -0
- package/dist/esm/stzh-pi-content-navigation.entry.js.map +1 -0
- package/dist/esm/stzh-pi-menu.entry.js +198 -0
- package/dist/esm/stzh-pi-menu.entry.js.map +1 -0
- package/dist/esm/stzh-pi-pagetitle.entry.js +79 -0
- package/dist/esm/stzh-pi-pagetitle.entry.js.map +1 -0
- package/dist/esm/stzh-pi-quote.entry.js +22 -0
- package/dist/esm/stzh-pi-quote.entry.js.map +1 -0
- package/dist/esm/stzh-pi-teaser.entry.js +58 -0
- package/dist/esm/stzh-pi-teaser.entry.js.map +1 -0
- package/dist/esm/stzh-popover_2.entry.js +1 -1
- package/dist/esm/stzh-popover_2.entry.js.map +1 -1
- package/dist/esm/stzh-progressbar-item.entry.js +7 -3
- package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm/stzh-progressbar.entry.js +2 -1
- package/dist/esm/stzh-progressbar.entry.js.map +1 -1
- package/dist/esm/stzh-ratio.entry.js +1 -1
- package/dist/esm/stzh-ratio.entry.js.map +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -0
- package/dist/esm/stzh-readspeaker.entry.js.map +1 -1
- package/dist/esm/stzh-search.entry.js +70 -45
- package/dist/esm/stzh-search.entry.js.map +1 -1
- package/dist/esm/stzh-section.entry.js +3 -3
- package/dist/esm/stzh-section.entry.js.map +1 -1
- 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-space.entry.js +1 -1
- package/dist/esm/stzh-space.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +10 -8
- package/dist/esm/stzh-textandimage.entry.js.map +1 -1
- package/dist/esm/stzh-timepicker.entry.js.map +1 -1
- package/dist/esm/stzh-toggle.entry.js.map +1 -1
- package/dist/esm/stzh-tooltip.entry.js +36 -51
- package/dist/esm/stzh-tooltip.entry.js.map +1 -1
- package/dist/esm/stzh-upload.entry.js +65 -31
- package/dist/esm/stzh-upload.entry.js.map +1 -1
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +36 -3
- package/dist/stzh-components/assets/i18n/en.json +36 -3
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/p-012dc71e.entry.js +2 -0
- package/dist/stzh-components/{p-91b360c9.entry.js.map → p-012dc71e.entry.js.map} +1 -1
- package/dist/stzh-components/p-0b381244.entry.js +2 -0
- package/dist/stzh-components/{p-8b608a1b.entry.js.map → p-0b381244.entry.js.map} +1 -1
- package/dist/stzh-components/p-0c67b73d.entry.js +2 -0
- package/dist/stzh-components/p-0c67b73d.entry.js.map +1 -0
- package/dist/stzh-components/p-0fb40e48.entry.js.map +1 -1
- package/dist/stzh-components/p-1bc9a18d.entry.js +2 -0
- package/dist/stzh-components/{p-ca76966e.entry.js.map → p-1bc9a18d.entry.js.map} +1 -1
- package/dist/stzh-components/p-1f0e8499.entry.js +2 -0
- package/dist/stzh-components/p-1f0e8499.entry.js.map +1 -0
- package/dist/stzh-components/{p-744c2183.entry.js → p-204a6e41.entry.js} +2 -2
- package/dist/stzh-components/p-204a6e41.entry.js.map +1 -0
- package/dist/stzh-components/p-2096f3c6.entry.js.map +1 -1
- package/dist/stzh-components/{p-faec0661.entry.js → p-2ba166dd.entry.js} +2 -2
- package/dist/stzh-components/p-2ba166dd.entry.js.map +1 -0
- package/dist/stzh-components/{p-dff1ce7c.entry.js → p-37fbb5f0.entry.js} +2 -2
- package/dist/stzh-components/{p-dff1ce7c.entry.js.map → p-37fbb5f0.entry.js.map} +1 -1
- package/dist/stzh-components/p-4f49450d.entry.js +2 -0
- package/dist/stzh-components/p-4f49450d.entry.js.map +1 -0
- package/dist/stzh-components/p-52a914cd.entry.js +2 -0
- package/dist/stzh-components/p-52a914cd.entry.js.map +1 -0
- package/dist/stzh-components/p-56346206.entry.js +2 -0
- package/dist/stzh-components/p-56346206.entry.js.map +1 -0
- package/dist/stzh-components/p-59a1a257.entry.js +2 -0
- package/dist/stzh-components/p-59a1a257.entry.js.map +1 -0
- package/dist/stzh-components/p-5c3fddec.entry.js +2 -0
- package/dist/stzh-components/p-5c3fddec.entry.js.map +1 -0
- package/dist/stzh-components/p-673f842d.entry.js +2 -0
- package/dist/stzh-components/p-673f842d.entry.js.map +1 -0
- package/dist/stzh-components/p-6c2289da.entry.js.map +1 -1
- package/dist/stzh-components/p-722b9e40.entry.js.map +1 -1
- package/dist/stzh-components/{p-af87b81a.entry.js → p-75b79adf.entry.js} +2 -2
- package/dist/stzh-components/p-75b79adf.entry.js.map +1 -0
- package/dist/stzh-components/p-771d370d.entry.js +2 -0
- package/dist/stzh-components/p-771d370d.entry.js.map +1 -0
- package/dist/stzh-components/p-77ba1f21.entry.js +2 -0
- package/dist/stzh-components/p-77ba1f21.entry.js.map +1 -0
- package/dist/stzh-components/p-78a16599.entry.js +2 -0
- package/dist/stzh-components/p-78a16599.entry.js.map +1 -0
- package/dist/stzh-components/p-7aac960b.entry.js.map +1 -1
- package/dist/stzh-components/p-7ca981d1.entry.js +2 -0
- package/dist/stzh-components/p-7ca981d1.entry.js.map +1 -0
- package/dist/stzh-components/p-7d030c40.entry.js +2 -0
- package/dist/stzh-components/p-7d030c40.entry.js.map +1 -0
- package/dist/stzh-components/{p-b22876e5.entry.js → p-7efbb643.entry.js} +2 -2
- package/dist/stzh-components/p-7efbb643.entry.js.map +1 -0
- package/dist/stzh-components/p-801af922.entry.js +2 -0
- package/dist/stzh-components/p-801af922.entry.js.map +1 -0
- package/dist/stzh-components/p-8503fb10.entry.js +2 -0
- package/dist/stzh-components/{p-75045ebb.entry.js.map → p-8503fb10.entry.js.map} +1 -1
- package/dist/stzh-components/{p-663f31a2.entry.js → p-909f7fc0.entry.js} +2 -2
- package/dist/stzh-components/p-909f7fc0.entry.js.map +1 -0
- package/dist/stzh-components/p-969a4f9a.entry.js.map +1 -1
- package/dist/stzh-components/{p-5b1bc446.entry.js → p-991309dd.entry.js} +2 -2
- package/dist/stzh-components/{p-5b1bc446.entry.js.map → p-991309dd.entry.js.map} +1 -1
- package/dist/stzh-components/{p-56826f33.entry.js → p-af7855ff.entry.js} +2 -2
- package/dist/stzh-components/p-af7855ff.entry.js.map +1 -0
- package/dist/stzh-components/p-afde3fcd.entry.js +2 -0
- package/dist/stzh-components/p-afde3fcd.entry.js.map +1 -0
- package/dist/stzh-components/p-b41d255f.entry.js +2 -0
- package/dist/stzh-components/p-b41d255f.entry.js.map +1 -0
- package/dist/stzh-components/{p-af7562ba.entry.js → p-b566a2c0.entry.js} +2 -2
- package/dist/stzh-components/p-b566a2c0.entry.js.map +1 -0
- package/dist/stzh-components/p-b870c799.entry.js +2 -0
- package/dist/stzh-components/p-b870c799.entry.js.map +1 -0
- package/dist/stzh-components/p-bb1cacbc.entry.js +2 -0
- package/dist/stzh-components/p-bb1cacbc.entry.js.map +1 -0
- package/dist/stzh-components/{p-c31b1590.entry.js → p-c1cd45e1.entry.js} +5 -5
- package/dist/stzh-components/{p-c31b1590.entry.js.map → p-c1cd45e1.entry.js.map} +1 -1
- package/dist/stzh-components/p-c877d32c.entry.js +2 -0
- package/dist/stzh-components/{p-6f87ad6e.entry.js.map → p-c877d32c.entry.js.map} +1 -1
- package/dist/stzh-components/p-c8ead7fc.entry.js +2 -0
- package/dist/stzh-components/{p-f7979f2a.entry.js.map → p-c8ead7fc.entry.js.map} +1 -1
- package/dist/stzh-components/{p-f06b2737.js → p-cc1f8acc.js} +2 -2
- package/dist/stzh-components/p-cca366c2.entry.js.map +1 -1
- package/dist/stzh-components/p-cf856610.entry.js +2 -0
- package/dist/stzh-components/p-cf856610.entry.js.map +1 -0
- package/dist/stzh-components/{p-2773b08f.entry.js → p-d10a6897.entry.js} +2 -2
- package/dist/stzh-components/p-d10a6897.entry.js.map +1 -0
- package/dist/stzh-components/{p-929c5234.entry.js → p-d11565a5.entry.js} +3 -3
- package/dist/stzh-components/{p-929c5234.entry.js.map → p-d11565a5.entry.js.map} +1 -1
- package/dist/stzh-components/p-edf77853.entry.js +2 -0
- package/dist/stzh-components/p-edf77853.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +1663 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +3 -1
- package/dist/types/components/stzh-amount/stzh-amount.d.ts +1 -1
- package/dist/types/components/stzh-cardlist/stzh-cardlist.d.ts +2 -2
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +1 -1
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +1 -1
- package/dist/types/components/stzh-chipselect/stzh-chipselect.d.ts +1 -1
- package/dist/types/components/stzh-contact/stzh-contact.d.ts +7 -3
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +1 -1
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +1 -1
- package/dist/types/components/stzh-header/stzh-header.d.ts +15 -2
- package/dist/types/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.d.ts +17 -0
- package/dist/types/components/stzh-input/stzh-input.d.ts +1 -1
- package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +1 -1
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +3 -1
- package/dist/types/components/stzh-pagetitle-home/stzh-pagetitle-home.d.ts +16 -0
- package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +7 -1
- package/dist/types/components/stzh-panorama/stzh-panorama.localization.d.ts +1 -0
- package/dist/types/components/stzh-pi-content-navigation/stzh-pi-content-navigation.d.ts +36 -0
- package/dist/types/components/stzh-pi-menu/stzh-pi-menu.d.ts +62 -0
- package/dist/types/components/stzh-pi-menu/stzh-pi-menu.localization.d.ts +4 -0
- package/dist/types/components/stzh-pi-pagetitle/stzh-pi-pagetitle.d.ts +20 -0
- package/dist/types/components/stzh-pi-quote/stzh-pi-quote.d.ts +5 -0
- package/dist/types/components/stzh-pi-teaser/stzh-pi-teaser.d.ts +38 -0
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +4 -0
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +4 -0
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +2 -2
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +1 -1
- package/dist/types/components/stzh-search/stzh-search.d.ts +11 -1
- package/dist/types/components/stzh-section/stzh-section.d.ts +1 -1
- package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +2 -0
- package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +1 -1
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +1 -1
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +3 -1
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +2 -2
- package/dist/types/components.d.ts +523 -42
- package/dist/types/index.d.ts +92 -22
- package/dist/vscode-data.json +326 -11
- package/package.json +2 -2
- package/dist/cjs/stzh-card_3.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-chipgroup.cjs.entry.js +0 -25
- package/dist/cjs/stzh-chipgroup.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-message.cjs.entry.js.map +0 -1
- package/dist/esm/stzh-card_3.entry.js.map +0 -1
- package/dist/esm/stzh-chipgroup.entry.js.map +0 -1
- package/dist/esm/stzh-message.entry.js.map +0 -1
- package/dist/stzh-components/p-150f4514.entry.js +0 -2
- package/dist/stzh-components/p-150f4514.entry.js.map +0 -1
- package/dist/stzh-components/p-1a19bc6e.entry.js +0 -2
- package/dist/stzh-components/p-1a19bc6e.entry.js.map +0 -1
- package/dist/stzh-components/p-1a3dcde3.entry.js +0 -2
- package/dist/stzh-components/p-1a3dcde3.entry.js.map +0 -1
- package/dist/stzh-components/p-2773b08f.entry.js.map +0 -1
- package/dist/stzh-components/p-3b31f90d.entry.js +0 -2
- package/dist/stzh-components/p-3b31f90d.entry.js.map +0 -1
- package/dist/stzh-components/p-54e73927.entry.js +0 -2
- package/dist/stzh-components/p-54e73927.entry.js.map +0 -1
- package/dist/stzh-components/p-56826f33.entry.js.map +0 -1
- package/dist/stzh-components/p-663f31a2.entry.js.map +0 -1
- package/dist/stzh-components/p-6f87ad6e.entry.js +0 -2
- package/dist/stzh-components/p-744c2183.entry.js.map +0 -1
- package/dist/stzh-components/p-75045ebb.entry.js +0 -2
- package/dist/stzh-components/p-8b608a1b.entry.js +0 -2
- package/dist/stzh-components/p-8f19c3ec.entry.js +0 -2
- package/dist/stzh-components/p-8f19c3ec.entry.js.map +0 -1
- package/dist/stzh-components/p-91b360c9.entry.js +0 -2
- package/dist/stzh-components/p-9b19785c.entry.js +0 -2
- package/dist/stzh-components/p-9b19785c.entry.js.map +0 -1
- package/dist/stzh-components/p-af7562ba.entry.js.map +0 -1
- package/dist/stzh-components/p-af87b81a.entry.js.map +0 -1
- package/dist/stzh-components/p-b22876e5.entry.js.map +0 -1
- package/dist/stzh-components/p-b2920d7f.entry.js +0 -2
- package/dist/stzh-components/p-b2920d7f.entry.js.map +0 -1
- package/dist/stzh-components/p-ca76966e.entry.js +0 -2
- package/dist/stzh-components/p-d6a4fe56.entry.js +0 -2
- package/dist/stzh-components/p-d6a4fe56.entry.js.map +0 -1
- package/dist/stzh-components/p-ea423877.entry.js +0 -2
- package/dist/stzh-components/p-ea423877.entry.js.map +0 -1
- package/dist/stzh-components/p-ef849bb1.entry.js +0 -2
- package/dist/stzh-components/p-ef849bb1.entry.js.map +0 -1
- package/dist/stzh-components/p-f5809e5f.entry.js +0 -2
- package/dist/stzh-components/p-f5809e5f.entry.js.map +0 -1
- package/dist/stzh-components/p-f692c5d0.entry.js +0 -2
- package/dist/stzh-components/p-f692c5d0.entry.js.map +0 -1
- package/dist/stzh-components/p-f7979f2a.entry.js +0 -2
- package/dist/stzh-components/p-faec0661.entry.js.map +0 -1
- /package/dist/stzh-components/{p-f06b2737.js.map → p-cc1f8acc.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stzh-accordion.stzh-accordion-item.stzh-pagination.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,gBAAgB,GAAG,8qCAA8qC;;MC2B1rC,aAAa;;;;mBAEiC,SAAS;uBAGnC,IAAI;2BAGA,IAAI;;EAQvC,cAAc,CAAC,QAA8B;IAC3C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;MAC1B,SAAS,EAAE,gBAAgB;MAC3B,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;GACJ;EAGD,YAAY,CAAC,KAA8C;IACzD,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAsC,CAAC;IACzE,MAAM,eAAe,GAAG,mBAAmB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEtE,IACE,IAAI,CAAC,eAAe;UAChB,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,KAAK,qBAAqB,CAAC;SAClE,eAAe,KAAK,IAAI,CAAC,OAAO,EACnC;MACA,OAAO;KACR;IAED,MAAM,KAAK,GAAmC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,gB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nimations","animateTo","shimKeyframesAutoValues","waitForEvent","hasSlot"],"sources":["src/components/stzh-accordion/stzh-accordion.scss?tag=stzh-accordion&encapsulation=shadow","src/components/stzh-accordion/stzh-accordion.tsx","src/components/stzh-accordion-item/stzh-accordion-item.scss?tag=stzh-accordion-item&encapsulation=shadow","src/components/stzh-accordion-item/stzh-accordion-item.tsx","src/components/stzh-pagination/stzh-pagination.scss?tag=stzh-pagination&encapsulation=scoped","src/components/stzh-pagination/stzh-pagination.tsx"],"sourcesContent":[":host {\n // disable section paddings and margins\n --stzh-section-padding-top: 0px;\n --stzh-section-padding-bottom: 0px;\n --stzh-section-margin-top: 0px;\n --stzh-section-margin-bottom: 0px;\n}\n\n.stzh-accordion {\n display: grid;\n gap: space('xsmall');\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Listen,\n Method,\n Event,\n EventEmitter,\n Watch,\n} from \"@stencil/core\";\n\nimport {\n StzhAccordionItemOpenEvent,\n StzhAccordionVariantChangeEvent,\n StzhAccordionVariant\n} from \"../../index\";\n\n/**\n * @slot - Slot for `stzh-accordion-item` elements\n */\n@Component({\n tag: \"stzh-accordion\",\n styleUrl: \"stzh-accordion.scss\",\n shadow: true\n})\nexport class StzhAccordion {\n /** Variant */\n @Prop({ reflect: true }) variant: StzhAccordionVariant = \"default\";\n\n /** Whether folds are collapsible */\n @Prop() collapsible: boolean = true;\n\n /** Whether multiple folds can be opened at once */\n @Prop() multiselectable: boolean = true;\n\n @Element() element: HTMLStzhAccordionElement;\n\n /** Variant change event */\n @Event() stzhVariantChange: EventEmitter<StzhAccordionVariantChangeEvent>;\n\n @Watch(\"variant\")\n variantWatcher(newValue: StzhAccordionVariant) {\n this.stzhVariantChange.emit({\n component: \"stzh-accordion\",\n value: newValue\n });\n }\n\n @Listen(\"stzhOpen\")\n openListener(event: CustomEvent<StzhAccordionItemOpenEvent>) {\n const accordionItemOpened = event.target as HTMLStzhAccordionItemElement;\n const accordionOpened = accordionItemOpened.closest(\"stzh-accordion\");\n\n if (\n this.multiselectable\n || (event.detail && event.detail.component !== \"stzh-accordion-item\")\n || accordionOpened !== this.element\n ) {\n return;\n }\n\n const items: HTMLStzhAccordionItemElement[] = Array.from(accordionOpened.querySelectorAll(\"stzh-accordion-item\"));\n items.forEach((item) => {\n if (item !== accordionItemOpened) {\n item.hide();\n }\n });\n }\n\n /** Set focus to accordion item */\n @Method()\n async setItemFocus(accordionItem: HTMLStzhAccordionItemElement, action: string) {\n const accordion = accordionItem.closest(\"stzh-accordion\");\n\n if (accordion !== this.element) {\n return;\n }\n\n const items = (Array.from(accordion.querySelectorAll(\":scope > stzh-accordion-item\")) as HTMLStzhAccordionItemElement[])\n .filter((item) => !item.disabled);\n\n const currentIndex = items.indexOf(accordionItem);\n\n if ((action === 'prev' || action === 'next') && currentIndex === null) {\n action = action === 'prev' ? 'last' : 'first'\n }\n\n if (action === 'prev' && currentIndex === 0) {\n action = 'last'\n }\n\n if (action === 'next' && currentIndex === items.length - 1) {\n action = 'first'\n }\n\n if (action === 'prev') {\n items[currentIndex - 1].focus();\n } else if (action === 'next') {\n items[currentIndex + 1].focus();\n } else if (action === 'last') {\n items[items.length - 1].focus();\n } else if (action === 'first') {\n items[0].focus();\n } else {\n accordionItem.focus();\n }\n }\n\n render() {\n const classes = {\n \"stzh-accordion\": true,\n };\n\n return (\n <Host>\n <div class={classes}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n","/**\n * @prop --content-background: Content background\n *\n * @prop --stzh-accordion-content-background: **Global**: Content background\n */\n\n:host {\n --trigger-size: 18px;\n --trigger-color: currentColor;\n --content-background: #{$accordionContentBackground};\n --icon-size: #{iconSize()};\n --button-color: #{$colorPrimary70};\n --button-background-color: #{$colorSecondary30};\n\n --hover-button-color: var(--button-color);\n --hover-button-background-color: #{$colorSecondary40};\n --hover-trigger-color: var(--trigger-color);\n\n @media print {\n page-break-inside: avoid;\n break-inside: avoid;\n }\n\n @include highContrast() {\n --trigger-color: CanvasText;\n\n --hover-trigger-color: CanvasText;\n }\n}\n\n/* Table */\n:host(:where([is-variant=\"table\"])) {\n --trigger-size: #{iconSize()};\n --content-background: #{$colorGrey10};\n --button-background-color: #{$colorGrey20};\n --trigger-color: #{$colorBlack};\n\n --hover-button-background-color: #{$colorGrey30};\n\n @include highContrast() {\n --trigger-color: CanvasText;\n\n --hover-trigger-color: CanvasText;\n }\n}\n\n/* Disabled */\n\n:host(:where([disabled]:not([disabled=\"false\"]))) {\n --button-color: #{$colorGrey80};\n --button-background-color: #{$colorGrey20};\n --trigger-color: #{$colorGrey80};\n\n --hover-button-color: var(--button-color);\n --hover-button-background-color: var(--button-background-color);\n --hover-trigger-color: var(--trigger-color);\n}\n\n.stzh-accordion-item {\n &__heading {\n position: relative;\n margin: 0;\n }\n\n &__button {\n @include fontCurve('p1');\n @include spaceCurve('padding-top', 'regular');\n @include spaceCurve('padding-bottom', 'regular');\n font-family: inherit;\n width: 100%;\n appearance: none;\n display: flex;\n align-items: center;\n min-height: 60px;\n color: var(--button-color);\n background-color: var(--button-background-color);\n text-align: left;\n border: none;\n transition-property: background-color;\n transition-duration: $baseTransitionAnimationSpeed;\n cursor: pointer;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &:hover {\n color: var(--hover-button-color);\n background-color: var(--hover-button-background-color);\n }\n }\n\n &__button,\n &__content-inner {\n @include spaceCurve('padding-left', 'regular');\n @include spaceCurve('padding-right', 'regular');\n }\n\n &__button-text {\n flex-grow: 1;\n }\n\n &__button-icon {\n &.is-default {\n position: relative;\n display: block;\n width: var(--trigger-size);\n height: var(--trigger-size);\n margin-left: space('medium');\n\n &::before,\n &::after {\n position: absolute;\n top: 50%;\n left: 50%;\n content: '';\n display: block;\n width: var(--trigger-size);\n height: 2.5px;\n transition-property: transform, background-color;\n transition-duration: 500ms;\n transform-origin: top left;\n background-color: var(--trigger-color);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n\n &::before {\n transform: rotate(180deg) translate(-50%, -50%);\n }\n\n &::after {\n transform: rotate(90deg) translate(-50%, -50%);\n }\n }\n\n &.is-table {\n --size: var(--trigger-size);\n\n transition-property: transform, color;\n transition-duration: 500ms;\n color: var(--trigger-color);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n }\n\n &__button:hover &__button-icon {\n &.is-default {\n &::before,\n &::after {\n background-color: var(--hover-trigger-color);\n }\n }\n\n &.is-table {\n color: var(--hover-trigger-color);\n }\n }\n\n &__content {\n overflow: hidden;\n background-color: var(--content-background);\n\n @media print {\n height: auto !important;\n overflow: visible !important;\n display: block !important;\n }\n }\n\n &__content-inner {\n @include spaceCurve('padding-top', 'medium');\n @include spaceCurve('padding-bottom', 'medium');\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n align-self: flex-start;\n }\n\n &__badge {\n position: absolute;\n right: -5px;\n top: -5px;\n }\n\n &__description {\n @include fontCurve('caption');\n }\n\n &__heading-text,\n &__description,\n &__subtitle {\n display: block;\n }\n\n &__subtitle {\n @include fontCurve('p2');\n }\n\n /* Has icon */\n\n &--has-icon &__icon-wrapper {\n margin-right: space('xsmall');\n }\n\n /* Title Variant / Subtitle */\n\n &--title &__heading-text,\n &--has-subtitle &__heading-text {\n @include font('title');\n @include fontCurve('h3', 'heading');\n }\n\n &--title &__subtitle:not(:empty) + &__heading-text,\n &--has-subtitle &__subtitle:not(:empty) + &__heading-text {\n @include spaceCurve('margin-top', 'tiny');\n }\n\n\n /* Open */\n\n &--is-open &__button-icon {\n &.is-default {\n &::before,\n &::after {\n transform: rotate(0) translate(-50%, -50%);\n }\n }\n\n &.is-table {\n transform: rotate(180deg);\n }\n }\n\n /* Table Variant */\n\n &--table &__button,\n &--table &__content-inner {\n padding-left: space('medium');\n padding-right: space('medium');\n }\n\n &__button {\n @include fontSize('milli');\n padding-top: space('medium');\n padding-bottom: space('medium');\n min-height: 56px;\n }\n\n &--table &__content-inner {\n @include spaceCurve('padding-top', 'tiny');\n @include spaceCurve('padding-bottom', 'regular');\n }\n\n &--table &__heading-text {\n @include font('heavy');\n }\n\n /* Disabled */\n\n &--is-disabled &__button {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n State,\n Method,\n Watch,\n Event,\n EventEmitter,\n Listen,\n} from \"@stencil/core\";\n\nimport {\n StzhAccordionItemOpenEvent,\n StzhAccordionItemOpenedEvent,\n StzhAccordionItemCloseEvent,\n StzhAccordionItemClosedEvent,\n StzhAccordionItemFocusEvent,\n StzhAccordionItemBlurEvent,\n StzhAccordionVariantChangeEvent,\n StzhAccordionVariant,\n StzhBadgeType\n} from \"../../index\";\n\nimport { waitForEvent } from \"../../utils/event-utils\";\nimport { stopAnimations, animateTo, shimKeyframesAutoValues } from \"../../utils/animation-utils\";\nimport { hasSlot } from \"../../utils/utils\";\n\nconst ANIMATION_SHOW = {\n keyframes: [\n { height: \"0\", opacity: \"0\" },\n { height: \"auto\", opacity: \"1\" }\n ],\n options: { duration: 300, easing: \"linear\" }\n};\n\nconst ANIMATION_HIDE = {\n keyframes: [\n { height: \"auto\", opacity: \"1\" },\n { height: \"0\", opacity: \"0\" }\n ],\n options: { duration: 300, easing: \"linear\" }\n};\n\nlet accordionItemCounter = 0;\n\n/**\n * @slot - Slot for any content\n * @slot icon - Slot for icon element\n */\n@Component({\n tag: \"stzh-accordion-item\",\n styleUrl: \"stzh-accordion-item.scss\",\n shadow: true\n})\nexport class StzhAccordionItem {\n /** Variant (overwrites variant from accordion parent) */\n @Prop() variant: StzhAccordionVariant;\n\n /** Whether fold is collapsible (overwrites collapsible from accordion parent) */\n @Prop() collapsible: boolean;\n\n /** Whether fold is open */\n @Prop({ mutable: true, reflect: true }) open: boolean = false;\n\n /** Whether fold disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Heading title */\n @Prop() heading: string = \"\";\n\n /** Subtitle */\n @Prop() subtitle: string = \"\";\n\n /** Description */\n @Prop() description: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Badge */\n @Prop() badge: string = \"\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: StzhBadgeType = \"default\";\n\n /** Heading level, for accessibility, no visual impact */\n @Prop({ reflect: true }) headingLevel: \"1\" | \"2\" | \"3\" | \"4\" = \"3\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the button element.\n * Default value will be taken from `heading` prop.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhAccordionItemElement;\n\n /** Open event */\n @Event() stzhOpen: EventEmitter<StzhAccordionItemOpenEvent>;\n\n /** Opened event (after animation) */\n @Event() stzhOpened: EventEmitter<StzhAccordionItemOpenedEvent>;\n\n /** Close event */\n @Event() stzhClose: EventEmitter<StzhAccordionItemCloseEvent>;\n\n /** Closed event (after animation) */\n @Event() stzhClosed: EventEmitter<StzhAccordionItemClosedEvent>;\n\n @Watch(\"variant\")\n variantWatcher(newValue: StzhAccordionVariant) {\n if (typeof newValue !== \"undefined\") {\n this._variant = newValue;\n } else if (this.accordion) {\n this._variant = this.accordion.variant;\n }\n }\n\n @Watch(\"open\")\n async openWatcher(newValue: boolean) {\n if (!this.bodyElement) {\n return;\n }\n\n if (newValue) {\n if (this.toggledByMethod) {\n this.stzhOpen.emit({\n component: \"stzh-accordion-item\"\n });\n }\n\n await stopAnimations(this.bodyElement);\n this.bodyElement.hidden = false;\n\n await animateTo(\n this.bodyElement,\n shimKeyframesAutoValues(ANIMATION_SHOW.keyframes, {\n height: this.bodyElement.scrollHeight\n }),\n ANIMATION_SHOW.options\n );\n\n this.bodyElement.style.height = \"auto\";\n this.bodyElement.style.overflow = \"visible\";\n\n if (this.toggledByMethod) {\n this.stzhOpened.emit({\n component: \"stzh-accordion-item\"\n });\n }\n } else {\n if (this.toggledByMethod) {\n this.stzhClose.emit({\n component: \"stzh-accordion-item\"\n });\n }\n\n await stopAnimations(this.bodyElement);\n this.bodyElement.style.overflow = \"hidden\";\n\n await animateTo(\n this.bodyElement,\n shimKeyframesAutoValues(ANIMATION_HIDE.keyframes, {\n height: this.bodyElement.scrollHeight\n }),\n ANIMATION_HIDE.options\n );\n\n this.bodyElement.hidden = true;\n this.bodyElement.style.height = \"0px\";\n\n if (this.toggledByMethod) {\n this.stzhClosed.emit({\n component: \"stzh-accordion-item\"\n });\n }\n }\n\n this.toggledByMethod = false;\n }\n\n /** Show accordion item content */\n @Method()\n async show() {\n if (this.open || this.disabled) {\n return;\n }\n\n this.toggledByMethod = true;\n this.open = true;\n return waitForEvent(this.element, \"stzhOpened\");\n }\n\n /** Hide accordion item content */\n @Method()\n async hide() {\n if (!this.open || this.disabled) {\n return;\n }\n\n this.toggledByMethod = true;\n this.open = false;\n return waitForEvent(this.element, \"stzhClosed\");\n }\n\n /** Toggle accordion item content */\n @Method()\n async toggle() {\n if (this.open) {\n return await this.hide();\n } else {\n return await this.show();\n }\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhAccordionItemFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhAccordionItemBlurEvent>;\n\n @Listen(\"keydown\", { target: \"document\", capture: true })\n handleKeydown(event: KeyboardEvent) {\n if (event.key === \"Shift\") {\n this.shiftPressed = true;\n }\n }\n\n @Listen(\"keyup\", { target: \"document\", capture: true })\n handleKeyup(event: KeyboardEvent) {\n if (event.key === \"Shift\") {\n this.shiftPressed = false;\n }\n }\n\n @State() rootTabindex: number = 0;\n @State() _variant: StzhAccordionVariant;\n\n private toggledByMethod: boolean = false;\n private bodyElement: HTMLDivElement;\n private buttonElement: HTMLButtonElement;\n private accordionItemId: string;\n private accordion: HTMLStzhAccordionElement;\n private focusedByInput: boolean = false;\n private shiftPressed: boolean = false;\n\n private handleVariantChange = (_event: CustomEvent<StzhAccordionVariantChangeEvent>) => {\n this.variantWatcher(this.variant);\n }\n\n private handleHeaderClick = () => {\n if (typeof this.collapsible !== \"undefined\") {\n if (this.collapsible) {\n this.toggle();\n } else if (!this.open) {\n this.show();\n }\n } else if (!this.accordion || this.accordion.collapsible) {\n this.toggle();\n } else if (!this.open) {\n this.show();\n }\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.buttonElement.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n if (this.shiftPressed) { // user presses currently shift\n this.rootTabindex = -1;\n }\n\n this.stzhFocus.emit({\n component: \"stzh-accordion-item\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n this.rootTabindex = 0;\n\n this.stzhBlur.emit({\n component: \"stzh-accordion-item\",\n originalEvent: event\n });\n }\n\n private onButtonKeydown = (event: KeyboardEvent) => {\n let action = null;\n\n if (event.key === \"ArrowDown\") {\n action = \"next\";\n } else if (event.key === \"ArrowUp\") {\n action = \"prev\";\n } else if (event.key === \"Home\") {\n action = \"first\";\n } else if (event.key === \"End\") {\n action = \"last\";\n } else if (event.key === \"PageDown\" && event.ctrlKey) {\n action = \"next\";\n } else if (event.key === \"PageUp\" && event.ctrlKey) {\n action = \"prev\";\n }\n\n if (event.key === \"Shift\") {\n this.rootTabindex = -1;\n }\n\n if (action) {\n event.preventDefault();\n this.accordion.setItemFocus(this.element, action);\n }\n }\n\n private onContentKeydown = (event: KeyboardEvent) => {\n if (!event.ctrlKey) {\n return;\n }\n\n let action = null;\n\n if (event.key === \"PageDown\") {\n action = \"next\";\n } else if (event.key === \"PageUp\") {\n action = \"prev\";\n }\n\n if (action) {\n event.preventDefault();\n this.accordion.setItemFocus(this.element, action);\n }\n }\n\n componentWillLoad() {\n this.accordionItemId = `stzh-accordion-item-${accordionItemCounter++}`;\n }\n\n componentDidLoad() {\n this.bodyElement.hidden = !this.open;\n this.bodyElement.style.height = this.open ? \"auto\" : \"0px\";\n this.bodyElement.style.overflow = this.open ? \"visible\" : \"hidden\";\n }\n\n async connectedCallback() {\n this.accordion = this.element.closest(\"stzh-accordion\");\n\n if (this.accordion) {\n this.accordion.addEventListener(\"stzhVariantChange\", this.handleVariantChange);\n }\n\n this.variantWatcher(this.variant);\n }\n\n disconnectedCallback() {\n if (this.accordion) {\n this.accordion.removeEventListener(\"stzhVariantChange\", this.handleVariantChange);\n this.accordion = null;\n }\n }\n\n render() {\n const hasIcon = hasSlot(this.element, \"icon\") || !!this.icon;\n\n const Heading = `h${this.headingLevel}`;\n const classes = {\n \"stzh-accordion-item\": true,\n \"stzh-accordion-item--has-icon\": hasIcon,\n \"stzh-accordion-item--has-description\": !!this.description,\n \"stzh-accordion-item--has-subtitle\": !!this.subtitle,\n \"stzh-accordion-item--is-open\": this.open,\n \"stzh-accordion-item--is-disabled\": this.disabled,\n [`stzh-accordion-item--${this._variant}`]: !!this._variant,\n };\n\n return (\n <Host\n tabindex={this.disabled ? null : this.rootTabindex}\n onFocus={this.onRootFocus}\n is-variant={this._variant}\n >\n <div class={classes}>\n <Heading\n id={`${this.accordionItemId}-header`}\n class=\"stzh-accordion-item__heading\"\n onClick={this.handleHeaderClick}\n >\n <button\n ref={(el) => (this.buttonElement = el as HTMLButtonElement)}\n class=\"stzh-accordion-item__button\"\n aria-controls={`${this.accordionItemId}-content`}\n aria-expanded={`${this.open ? \"true\" : \"false\"}`}\n disabled={this.disabled}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onButtonKeydown}\n type=\"button\"\n s-object-id={this.analyticsId || this.heading}\n >\n <span class=\"stzh-accordion-item__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-accordion-item__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n </span>\n <span class=\"stzh-accordion-item__button-text\">\n <span class=\"stzh-accordion-item__subtitle\">\n {this.subtitle}\n </span>\n <span class=\"stzh-accordion-item__heading-text\">\n {this.heading}\n </span>\n <span class=\"stzh-accordion-item__description\">\n {this.description}\n </span>\n </span>\n {this._variant === \"table\"\n ?\n <stzh-icon name=\"angle-down\" class=\"stzh-accordion-item__button-icon is-table\"></stzh-icon>\n :\n <span class=\"stzh-accordion-item__button-icon is-default\"></span>\n }\n\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge\n class=\"stzh-accordion-item__badge\"\n label={this.badge}\n type={this.badgeType}\n ></stzh-badge>\n }\n </button>\n </Heading>\n <div\n id={`${this.accordionItemId}-content`}\n ref={(el) => (this.bodyElement = el as HTMLDivElement)}\n class=\"stzh-accordion-item__content\"\n aria-labelledby={`${this.accordionItemId}-header`}\n role=\"region\"\n onKeyDown={this.onContentKeydown}\n >\n <div class=\"stzh-accordion-item__content-inner\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n",":host {\n}\n\n.stzh-pagination {\n position: relative;\n display: flex;\n align-items: center;\n gap: space('medium');\n padding-left: calc(#{$formInputHeight} + #{space('medium')});\n\n &__input {\n --text-align: center;\n --input-width: #{$formInputHeight};\n --padding-top: 0px;\n --padding-bottom: 0px;\n --padding-left: 0px;\n --padding-right: 0px;\n\n position: absolute;\n top: 0;\n left: 0;\n }\n\n &__total {\n @include fontSize('nano');\n color: $colorGrey70;\n }\n\n &--size-small {\n padding-left: calc(#{$formInputHeightSmall} + #{space('medium')});\n }\n\n &--size-small &__input {\n --input-width: #{$formInputHeightSmall};\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Method,\n} from \"@stencil/core\";\n\nimport {\n StzhInputChangeEvent,\n StzhPaginationChangeEvent\n} from \"../../index\";\n\nimport { StzhPaginationLocalizedText } from \"./stzh-pagination.localization\";\n\n/**\n */\n@Component({\n tag: \"stzh-pagination\",\n styleUrl: \"stzh-pagination.scss\",\n scoped: true\n})\nexport class StzhPagination {\n /** Total pages available. */\n @Prop() total: number = 1;\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Current page. */\n @Prop({ mutable: true }) value: number = 1;\n\n /** Label for dropdown */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = '';\n\n /** Translation strings. */\n @Prop() localization: StzhPaginationLocalizedText;\n\n /** Pagination change event */\n @Event() stzhChange: EventEmitter<StzhPaginationChangeEvent>;\n\n @Element() element: HTMLStzhPaginationElement;\n\n /** Set current page to previous */\n @Method()\n async prev() {\n this.gotoPage(this.value - 1);\n }\n\n /** Set current page to next */\n @Method()\n async next() {\n this.gotoPage(this.value + 1);\n }\n\n private input: HTMLStzhInputElement;\n\n private gotoPage = (newPage: number) => {\n const previous = this.value;\n\n if (newPage >= 1 && newPage <= this.total) {\n this.value = newPage;\n } else if (newPage > this.total) {\n this.value = this.total;\n } else {\n this.value = 1;\n }\n\n if (previous !== this.value) {\n this.stzhChange.emit({\n component: \"stzh-pagination\",\n page: Number(this.value)\n });\n }\n }\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n }\n\n private onInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n const newPage = Number(event.detail.value) || 1;\n this.gotoPage(newPage);\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"pagination\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-pagination\": true,\n [`stzh-pagination--size-${this.size}`]: !!this.size,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <stzh-input\n class=\"stzh-pagination__input\"\n type=\"number\"\n min={1}\n max={this.total}\n label={this.label || this.localization.label}\n labelHidden={true}\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n onStzhChange={this.onInputChange}\n value={this.value?.toString() || ''}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n invalid={this.invalid}\n hideOptional={true}\n noAutocomplete={true}\n ></stzh-input>\n <div class=\"stzh-pagination__total\">\n {this.localization.totalLabel\n .replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n <stzh-buttongroup>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-left\"\n icon-only\n size={this.size}\n a11yDisabled={this.value <= 1}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.prevLabel}, ${this.localization.selectedPageLabel} ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.prev()}\n ></stzh-button>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-right\"\n icon-only\n size={this.size}\n a11yDisabled={this.value >= this.total}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.nextLabel}, ${this.localization.selectedPageLabel} ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.next()}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"stzh-accordion.stzh-accordion-item.stzh-pagination.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,gBAAgB,GAAG,y7CAAy7C;;MCYr8C,aAAa;;;;mBAEiC,SAAS;mBAGvB,EAAE;uBAGd,IAAI;2BAGA,IAAI;;EAQvC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BAAiB,IAAI,IAAI,CAAC,KAAK,EAAE,EAC3I,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,GACb,EACfA,yBACE,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,aAAa,qBAElB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EACtC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS,KAAK,IAAI,CAAC,YAAY,CAAC,iBAAiB,IAAI,IAAI,CAAC,KAAK,EAAE,EAC3I,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,GACb,CACE,CACf,CACD,EACP;GACH;;;;;;;;;","names":["h","Host","stopAnimations","animateTo","shimKeyframesAutoValues","waitForEvent","hasSlot"],"sources":["src/components/stzh-accordion/stzh-accordion.scss?tag=stzh-accordion&encapsulation=shadow","src/components/stzh-accordion/stzh-accordion.tsx","src/components/stzh-accordion-item/stzh-accordion-item.scss?tag=stzh-accordion-item&encapsulation=shadow","src/components/stzh-accordion-item/stzh-accordion-item.tsx","src/components/stzh-pagination/stzh-pagination.scss?tag=stzh-pagination&encapsulation=scoped","src/components/stzh-pagination/stzh-pagination.tsx"],"sourcesContent":[":host {\n // disable section paddings and margins\n --stzh-section-padding-top: 0px;\n --stzh-section-padding-bottom: 0px;\n --stzh-section-margin-top: 0px;\n --stzh-section-margin-bottom: 0px;\n}\n\n.stzh-accordion {\n display: grid;\n gap: space('xsmall');\n\n &__heading {\n @include spaceCurve('margin-bottom', 'small');\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, Watch } from \"@stencil/core\";\n\nimport { StzhAccordionItemOpenEvent, StzhAccordionVariant, StzhAccordionVariantChangeEvent } from \"../../index\";\n\n/**\n * @slot - Slot for `stzh-accordion-item` elements\n */\n@Component({\n tag: \"stzh-accordion\",\n styleUrl: \"stzh-accordion.scss\",\n shadow: true,\n})\nexport class StzhAccordion {\n /** Variant */\n @Prop({ reflect: true }) variant: StzhAccordionVariant = \"default\";\n\n /** Heading */\n @Prop({ reflect: true }) heading: string = \"\";\n\n /** Whether folds are collapsible */\n @Prop() collapsible: boolean = true;\n\n /** Whether multiple folds can be opened at once */\n @Prop() multiselectable: boolean = true;\n\n @Element() element: HTMLStzhAccordionElement;\n\n /** Variant change event */\n @Event() stzhVariantChange: EventEmitter<StzhAccordionVariantChangeEvent>;\n\n @Watch(\"variant\")\n variantWatcher(newValue: StzhAccordionVariant) {\n this.stzhVariantChange.emit({\n component: \"stzh-accordion\",\n value: newValue,\n });\n }\n\n @Listen(\"stzhOpen\")\n openListener(event: CustomEvent<StzhAccordionItemOpenEvent>) {\n const accordionItemOpened = event.target as HTMLStzhAccordionItemElement;\n const accordionOpened = accordionItemOpened.closest(\"stzh-accordion\");\n\n if (\n this.multiselectable ||\n (event.detail && event.detail.component !== \"stzh-accordion-item\") ||\n accordionOpened !== this.element\n ) {\n return;\n }\n\n const items: HTMLStzhAccordionItemElement[] = Array.from(accordionOpened.querySelectorAll(\"stzh-accordion-item\"));\n items.forEach(item => {\n if (item !== accordionItemOpened) {\n item.hide();\n }\n });\n }\n\n /** Set focus to accordion item */\n @Method()\n async setItemFocus(accordionItem: HTMLStzhAccordionItemElement, action: string) {\n const accordion = accordionItem.closest(\"stzh-accordion\");\n\n if (accordion !== this.element) {\n return;\n }\n\n const items = (\n Array.from(accordion.querySelectorAll(\":scope > stzh-accordion-item\")) as HTMLStzhAccordionItemElement[]\n ).filter(item => !item.disabled);\n\n const currentIndex = items.indexOf(accordionItem);\n\n if ((action === \"prev\" || action === \"next\") && currentIndex === null) {\n action = action === \"prev\" ? \"last\" : \"first\";\n }\n\n if (action === \"prev\" && currentIndex === 0) {\n action = \"last\";\n }\n\n if (action === \"next\" && currentIndex === items.length - 1) {\n action = \"first\";\n }\n\n if (action === \"prev\") {\n items[currentIndex - 1].focus();\n } else if (action === \"next\") {\n items[currentIndex + 1].focus();\n } else if (action === \"last\") {\n items[items.length - 1].focus();\n } else if (action === \"first\") {\n items[0].focus();\n } else {\n accordionItem.focus();\n }\n }\n\n render() {\n const classes = {\n \"stzh-accordion\": true,\n };\n\n return (\n <Host>\n <div class={classes}>\n {this.heading && (\n <div class=\"stzh-accordion__heading\">\n <stzh-heading level=\"2\">{this.heading}</stzh-heading>\n </div>\n )}\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n","/**\n * @prop --content-background: Content background\n *\n * @prop --stzh-accordion-content-background: **Global**: Content background\n */\n\n:host {\n --trigger-size: 18px;\n --trigger-color: currentColor;\n --content-background: #{$accordionContentBackground};\n --icon-size: #{iconSize()};\n --button-color: #{$colorPrimary70};\n --button-background-color: #{$colorSecondary30};\n\n --hover-button-color: var(--button-color);\n --hover-button-background-color: #{$colorSecondary40};\n --hover-trigger-color: var(--trigger-color);\n\n @media print {\n page-break-inside: avoid;\n break-inside: avoid;\n }\n\n @include highContrast() {\n --trigger-color: CanvasText;\n\n --hover-trigger-color: CanvasText;\n }\n}\n\n/* Table */\n:host(:where([is-variant=\"table\"])) {\n --trigger-size: #{iconSize()};\n --content-background: #{$colorGrey10};\n --button-background-color: #{$colorGrey20};\n --trigger-color: #{$colorBlack};\n\n --hover-button-background-color: #{$colorGrey30};\n\n @include highContrast() {\n --trigger-color: CanvasText;\n\n --hover-trigger-color: CanvasText;\n }\n}\n\n/* Disabled */\n\n:host(:where([disabled]:not([disabled=\"false\"]))) {\n --button-color: #{$colorGrey80};\n --button-background-color: #{$colorGrey20};\n --trigger-color: #{$colorGrey80};\n\n --hover-button-color: var(--button-color);\n --hover-button-background-color: var(--button-background-color);\n --hover-trigger-color: var(--trigger-color);\n}\n\n.stzh-accordion-item {\n &__heading {\n position: relative;\n margin: 0;\n }\n\n &__button {\n @include fontCurve('p1');\n @include spaceCurve('padding-top', 'regular');\n @include spaceCurve('padding-bottom', 'regular');\n font-family: inherit;\n width: 100%;\n appearance: none;\n display: flex;\n align-items: center;\n min-height: 60px;\n color: var(--button-color);\n background-color: var(--button-background-color);\n text-align: left;\n border: none;\n transition-property: background-color;\n transition-duration: $baseTransitionAnimationSpeed;\n cursor: pointer;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &:hover {\n color: var(--hover-button-color);\n background-color: var(--hover-button-background-color);\n }\n }\n\n &__button,\n &__content-inner {\n @include spaceCurve('padding-left', 'regular');\n @include spaceCurve('padding-right', 'regular');\n }\n\n &__button-text {\n flex-grow: 1;\n }\n\n &__button-icon {\n &.is-default {\n position: relative;\n display: block;\n width: var(--trigger-size);\n height: var(--trigger-size);\n margin-left: space('medium');\n\n &::before,\n &::after {\n position: absolute;\n top: 50%;\n left: 50%;\n content: '';\n display: block;\n width: var(--trigger-size);\n height: 2.5px;\n transition-property: transform, background-color;\n transition-duration: 500ms;\n transform-origin: top left;\n background-color: var(--trigger-color);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n\n &::before {\n transform: rotate(180deg) translate(-50%, -50%);\n }\n\n &::after {\n transform: rotate(90deg) translate(-50%, -50%);\n }\n }\n\n &.is-table {\n --size: var(--trigger-size);\n\n transition-property: transform, color;\n transition-duration: 500ms;\n color: var(--trigger-color);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n }\n\n &__button:hover &__button-icon {\n &.is-default {\n &::before,\n &::after {\n background-color: var(--hover-trigger-color);\n }\n }\n\n &.is-table {\n color: var(--hover-trigger-color);\n }\n }\n\n &__content {\n overflow: hidden;\n background-color: var(--content-background);\n\n @media print {\n height: auto !important;\n overflow: visible !important;\n display: block !important;\n }\n }\n\n &__content-inner {\n @include spaceCurve('padding-top', 'medium');\n @include spaceCurve('padding-bottom', 'medium');\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n align-self: flex-start;\n }\n\n &__badge {\n position: absolute;\n right: -5px;\n top: -5px;\n }\n\n &__description {\n @include fontCurve('caption');\n }\n\n &__heading-text,\n &__description,\n &__subtitle {\n display: block;\n }\n\n &__subtitle {\n @include fontCurve('p2');\n }\n\n /* Has icon */\n\n &--has-icon &__icon-wrapper {\n margin-right: space('xsmall');\n }\n\n /* Title Variant / Subtitle */\n\n &--title &__heading-text,\n &--has-subtitle &__heading-text {\n @include font('title');\n @include fontCurve('h3', 'heading');\n }\n\n &--title &__subtitle:not(:empty) + &__heading-text,\n &--has-subtitle &__subtitle:not(:empty) + &__heading-text {\n @include spaceCurve('margin-top', 'tiny');\n }\n\n\n /* Open */\n\n &--is-open &__button-icon {\n &.is-default {\n &::before,\n &::after {\n transform: rotate(0) translate(-50%, -50%);\n }\n }\n\n &.is-table {\n transform: rotate(180deg);\n }\n }\n\n /* Table Variant */\n\n &--table &__button,\n &--table &__content-inner {\n padding-left: space('medium');\n padding-right: space('medium');\n }\n\n &__button {\n @include fontSize('milli');\n padding-top: space('medium');\n padding-bottom: space('medium');\n min-height: 56px;\n }\n\n &--table &__content-inner {\n @include spaceCurve('padding-top', 'tiny');\n @include spaceCurve('padding-bottom', 'regular');\n }\n\n &--table &__heading-text {\n @include font('heavy');\n }\n\n /* Disabled */\n\n &--is-disabled &__button {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n State,\n Method,\n Watch,\n Event,\n EventEmitter,\n Listen,\n} from \"@stencil/core\";\n\nimport {\n StzhAccordionItemOpenEvent,\n StzhAccordionItemOpenedEvent,\n StzhAccordionItemCloseEvent,\n StzhAccordionItemClosedEvent,\n StzhAccordionItemFocusEvent,\n StzhAccordionItemBlurEvent,\n StzhAccordionVariantChangeEvent,\n StzhAccordionVariant,\n StzhBadgeType\n} from \"../../index\";\n\nimport { waitForEvent } from \"../../utils/event-utils\";\nimport { stopAnimations, animateTo, shimKeyframesAutoValues } from \"../../utils/animation-utils\";\nimport { hasSlot } from \"../../utils/utils\";\n\nconst ANIMATION_SHOW = {\n keyframes: [\n { height: \"0\", opacity: \"0\" },\n { height: \"auto\", opacity: \"1\" }\n ],\n options: { duration: 300, easing: \"linear\" }\n};\n\nconst ANIMATION_HIDE = {\n keyframes: [\n { height: \"auto\", opacity: \"1\" },\n { height: \"0\", opacity: \"0\" }\n ],\n options: { duration: 300, easing: \"linear\" }\n};\n\nlet accordionItemCounter = 0;\n\n/**\n * @slot - Slot for any content\n * @slot icon - Slot for icon element\n */\n@Component({\n tag: \"stzh-accordion-item\",\n styleUrl: \"stzh-accordion-item.scss\",\n shadow: true\n})\nexport class StzhAccordionItem {\n /** Variant (overwrites variant from accordion parent) */\n @Prop() variant: StzhAccordionVariant;\n\n /** Whether fold is collapsible (overwrites collapsible from accordion parent) */\n @Prop() collapsible: boolean;\n\n /** Whether fold is open */\n @Prop({ mutable: true, reflect: true }) open: boolean = false;\n\n /** Whether fold disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Heading title */\n @Prop() heading: string = \"\";\n\n /** Subtitle */\n @Prop() subtitle: string = \"\";\n\n /** Description */\n @Prop() description: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Badge */\n @Prop() badge: string = \"\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: StzhBadgeType = \"default\";\n\n /** Heading level, for accessibility, no visual impact */\n @Prop({ reflect: true }) headingLevel: \"1\" | \"2\" | \"3\" | \"4\" = \"3\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the button element.\n * Default value will be taken from `heading` prop.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhAccordionItemElement;\n\n /** Open event */\n @Event() stzhOpen: EventEmitter<StzhAccordionItemOpenEvent>;\n\n /** Opened event (after animation) */\n @Event() stzhOpened: EventEmitter<StzhAccordionItemOpenedEvent>;\n\n /** Close event */\n @Event() stzhClose: EventEmitter<StzhAccordionItemCloseEvent>;\n\n /** Closed event (after animation) */\n @Event() stzhClosed: EventEmitter<StzhAccordionItemClosedEvent>;\n\n @Watch(\"variant\")\n variantWatcher(newValue: StzhAccordionVariant) {\n if (typeof newValue !== \"undefined\") {\n this._variant = newValue;\n } else if (this.accordion) {\n this._variant = this.accordion.variant;\n }\n }\n\n @Watch(\"open\")\n async openWatcher(newValue: boolean) {\n if (!this.bodyElement) {\n return;\n }\n\n if (newValue) {\n if (this.toggledByMethod) {\n this.stzhOpen.emit({\n component: \"stzh-accordion-item\"\n });\n }\n\n await stopAnimations(this.bodyElement);\n this.bodyElement.hidden = false;\n\n await animateTo(\n this.bodyElement,\n shimKeyframesAutoValues(ANIMATION_SHOW.keyframes, {\n height: this.bodyElement.scrollHeight\n }),\n ANIMATION_SHOW.options\n );\n\n this.bodyElement.style.height = \"auto\";\n this.bodyElement.style.overflow = \"visible\";\n\n if (this.toggledByMethod) {\n this.stzhOpened.emit({\n component: \"stzh-accordion-item\"\n });\n }\n } else {\n if (this.toggledByMethod) {\n this.stzhClose.emit({\n component: \"stzh-accordion-item\"\n });\n }\n\n await stopAnimations(this.bodyElement);\n this.bodyElement.style.overflow = \"hidden\";\n\n await animateTo(\n this.bodyElement,\n shimKeyframesAutoValues(ANIMATION_HIDE.keyframes, {\n height: this.bodyElement.scrollHeight\n }),\n ANIMATION_HIDE.options\n );\n\n this.bodyElement.hidden = true;\n this.bodyElement.style.height = \"0px\";\n\n if (this.toggledByMethod) {\n this.stzhClosed.emit({\n component: \"stzh-accordion-item\"\n });\n }\n }\n\n this.toggledByMethod = false;\n }\n\n /** Show accordion item content */\n @Method()\n async show() {\n if (this.open || this.disabled) {\n return;\n }\n\n this.toggledByMethod = true;\n this.open = true;\n return waitForEvent(this.element, \"stzhOpened\");\n }\n\n /** Hide accordion item content */\n @Method()\n async hide() {\n if (!this.open || this.disabled) {\n return;\n }\n\n this.toggledByMethod = true;\n this.open = false;\n return waitForEvent(this.element, \"stzhClosed\");\n }\n\n /** Toggle accordion item content */\n @Method()\n async toggle() {\n if (this.open) {\n return await this.hide();\n } else {\n return await this.show();\n }\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhAccordionItemFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhAccordionItemBlurEvent>;\n\n @Listen(\"keydown\", { target: \"document\", capture: true })\n handleKeydown(event: KeyboardEvent) {\n if (event.key === \"Shift\") {\n this.shiftPressed = true;\n }\n }\n\n @Listen(\"keyup\", { target: \"document\", capture: true })\n handleKeyup(event: KeyboardEvent) {\n if (event.key === \"Shift\") {\n this.shiftPressed = false;\n }\n }\n\n @State() rootTabindex: number = 0;\n @State() _variant: StzhAccordionVariant;\n\n private toggledByMethod: boolean = false;\n private bodyElement: HTMLDivElement;\n private buttonElement: HTMLButtonElement;\n private accordionItemId: string;\n private accordion: HTMLStzhAccordionElement;\n private focusedByInput: boolean = false;\n private shiftPressed: boolean = false;\n\n private handleVariantChange = (_event: CustomEvent<StzhAccordionVariantChangeEvent>) => {\n this.variantWatcher(this.variant);\n }\n\n private handleHeaderClick = () => {\n if (typeof this.collapsible !== \"undefined\") {\n if (this.collapsible) {\n this.toggle();\n } else if (!this.open) {\n this.show();\n }\n } else if (!this.accordion || this.accordion.collapsible) {\n this.toggle();\n } else if (!this.open) {\n this.show();\n }\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.buttonElement.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n if (this.shiftPressed) { // user presses currently shift\n this.rootTabindex = -1;\n }\n\n this.stzhFocus.emit({\n component: \"stzh-accordion-item\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n this.rootTabindex = 0;\n\n this.stzhBlur.emit({\n component: \"stzh-accordion-item\",\n originalEvent: event\n });\n }\n\n private onButtonKeydown = (event: KeyboardEvent) => {\n let action = null;\n\n if (event.key === \"ArrowDown\") {\n action = \"next\";\n } else if (event.key === \"ArrowUp\") {\n action = \"prev\";\n } else if (event.key === \"Home\") {\n action = \"first\";\n } else if (event.key === \"End\") {\n action = \"last\";\n } else if (event.key === \"PageDown\" && event.ctrlKey) {\n action = \"next\";\n } else if (event.key === \"PageUp\" && event.ctrlKey) {\n action = \"prev\";\n }\n\n if (event.key === \"Shift\") {\n this.rootTabindex = -1;\n }\n\n if (action) {\n event.preventDefault();\n this.accordion.setItemFocus(this.element, action);\n }\n }\n\n private onContentKeydown = (event: KeyboardEvent) => {\n if (!event.ctrlKey) {\n return;\n }\n\n let action = null;\n\n if (event.key === \"PageDown\") {\n action = \"next\";\n } else if (event.key === \"PageUp\") {\n action = \"prev\";\n }\n\n if (action) {\n event.preventDefault();\n this.accordion.setItemFocus(this.element, action);\n }\n }\n\n componentWillLoad() {\n this.accordionItemId = `stzh-accordion-item-${accordionItemCounter++}`;\n }\n\n componentDidLoad() {\n this.bodyElement.hidden = !this.open;\n this.bodyElement.style.height = this.open ? \"auto\" : \"0px\";\n this.bodyElement.style.overflow = this.open ? \"visible\" : \"hidden\";\n }\n\n async connectedCallback() {\n this.accordion = this.element.closest(\"stzh-accordion\");\n\n if (this.accordion) {\n this.accordion.addEventListener(\"stzhVariantChange\", this.handleVariantChange);\n }\n\n this.variantWatcher(this.variant);\n }\n\n disconnectedCallback() {\n if (this.accordion) {\n this.accordion.removeEventListener(\"stzhVariantChange\", this.handleVariantChange);\n this.accordion = null;\n }\n }\n\n render() {\n const hasIcon = hasSlot(this.element, \"icon\") || !!this.icon;\n\n const Heading = `h${this.headingLevel}`;\n const classes = {\n \"stzh-accordion-item\": true,\n \"stzh-accordion-item--has-icon\": hasIcon,\n \"stzh-accordion-item--has-description\": !!this.description,\n \"stzh-accordion-item--has-subtitle\": !!this.subtitle,\n \"stzh-accordion-item--is-open\": this.open,\n \"stzh-accordion-item--is-disabled\": this.disabled,\n [`stzh-accordion-item--${this._variant}`]: !!this._variant,\n };\n\n return (\n <Host\n tabindex={this.disabled ? null : this.rootTabindex}\n onFocus={this.onRootFocus}\n is-variant={this._variant}\n >\n <div class={classes}>\n <Heading\n id={`${this.accordionItemId}-header`}\n class=\"stzh-accordion-item__heading\"\n onClick={this.handleHeaderClick}\n >\n <button\n ref={(el) => (this.buttonElement = el as HTMLButtonElement)}\n class=\"stzh-accordion-item__button\"\n aria-controls={`${this.accordionItemId}-content`}\n aria-expanded={`${this.open ? \"true\" : \"false\"}`}\n disabled={this.disabled}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onButtonKeydown}\n type=\"button\"\n s-object-id={this.analyticsId || this.heading}\n >\n <span class=\"stzh-accordion-item__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-accordion-item__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n </span>\n <span class=\"stzh-accordion-item__button-text\">\n <span class=\"stzh-accordion-item__subtitle\">\n {this.subtitle}\n </span>\n <span class=\"stzh-accordion-item__heading-text\">\n {this.heading}\n </span>\n <span class=\"stzh-accordion-item__description\">\n {this.description}\n </span>\n </span>\n {this._variant === \"table\"\n ?\n <stzh-icon name=\"angle-down\" class=\"stzh-accordion-item__button-icon is-table\"></stzh-icon>\n :\n <span class=\"stzh-accordion-item__button-icon is-default\"></span>\n }\n\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge\n class=\"stzh-accordion-item__badge\"\n label={this.badge}\n type={this.badgeType}\n ></stzh-badge>\n }\n </button>\n </Heading>\n <div\n id={`${this.accordionItemId}-content`}\n ref={(el) => (this.bodyElement = el as HTMLDivElement)}\n class=\"stzh-accordion-item__content\"\n aria-labelledby={`${this.accordionItemId}-header`}\n role=\"region\"\n onKeyDown={this.onContentKeydown}\n >\n <div class=\"stzh-accordion-item__content-inner\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n",":host {\n}\n\n.stzh-pagination {\n position: relative;\n display: flex;\n align-items: center;\n gap: space('medium');\n padding-left: calc(#{$formInputHeight} + #{space('medium')});\n\n &__input {\n --text-align: center;\n --input-width: #{$formInputHeight};\n --padding-top: 0px;\n --padding-bottom: 0px;\n --padding-left: 0px;\n --padding-right: 0px;\n\n position: absolute;\n top: 0;\n left: 0;\n }\n\n &__total {\n @include fontSize('nano');\n color: $colorGrey70;\n }\n\n &--size-small {\n padding-left: calc(#{$formInputHeightSmall} + #{space('medium')});\n }\n\n &--size-small &__input {\n --input-width: #{$formInputHeightSmall};\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Method,\n} from \"@stencil/core\";\n\nimport {\n StzhInputChangeEvent,\n StzhPaginationChangeEvent\n} from \"../../index\";\n\nimport { StzhPaginationLocalizedText } from \"./stzh-pagination.localization\";\n\n/**\n */\n@Component({\n tag: \"stzh-pagination\",\n styleUrl: \"stzh-pagination.scss\",\n scoped: true\n})\nexport class StzhPagination {\n /** Total pages available. */\n @Prop() total: number = 1;\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Current page. */\n @Prop({ mutable: true }) value: number = 1;\n\n /** Label for dropdown */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = '';\n\n /** Translation strings. */\n @Prop() localization: StzhPaginationLocalizedText;\n\n /** Pagination change event */\n @Event() stzhChange: EventEmitter<StzhPaginationChangeEvent>;\n\n @Element() element: HTMLStzhPaginationElement;\n\n /** Set current page to previous */\n @Method()\n async prev() {\n this.gotoPage(this.value - 1);\n }\n\n /** Set current page to next */\n @Method()\n async next() {\n this.gotoPage(this.value + 1);\n }\n\n private input: HTMLStzhInputElement;\n\n private gotoPage = (newPage: number) => {\n const previous = this.value;\n\n if (newPage >= 1 && newPage <= this.total) {\n this.value = newPage;\n } else if (newPage > this.total) {\n this.value = this.total;\n } else {\n this.value = 1;\n }\n\n if (previous !== this.value) {\n this.stzhChange.emit({\n component: \"stzh-pagination\",\n page: Number(this.value)\n });\n }\n }\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n }\n\n private onInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n const newPage = Number(event.detail.value) || 1;\n this.gotoPage(newPage);\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"pagination\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-pagination\": true,\n [`stzh-pagination--size-${this.size}`]: !!this.size,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <stzh-input\n class=\"stzh-pagination__input\"\n type=\"number\"\n min={1}\n max={this.total}\n label={this.label || this.localization.label}\n labelHidden={true}\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n onStzhChange={this.onInputChange}\n value={this.value?.toString() || ''}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n invalid={this.invalid}\n hideOptional={true}\n noAutocomplete={true}\n ></stzh-input>\n <div class=\"stzh-pagination__total\">\n {this.localization.totalLabel\n .replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n <stzh-buttongroup>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-left\"\n icon-only\n size={this.size}\n a11yDisabled={this.value <= 1}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.prevLabel}, ${this.localization.selectedPageLabel} ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.prev()}\n ></stzh-button>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-right\"\n icon-only\n size={this.size}\n a11yDisabled={this.value >= this.total}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.nextLabel}, ${this.localization.selectedPageLabel} ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.next()}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stzh-amount.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,49CAA49C;;ACoBl/C,IAAI,aAAa,GAAG,CAAC,CAAC;MAOT,UAAU;;;;IAYb,kBAAa,GAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACxG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;IAsE3C,gBAAW,GAAG;MACpB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;OACpB;KACF,CAAA;;IAyBO,qBAAgB,GAAG,CAAC,KAA2C;MACrE,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,qBAAqB,EAAE;QACrD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;OAC5B;M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jC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,gBAAgB,KAAK,IAAI,CAAC,YAAY,CAAC,qBAAqB,IAAI,IAAI,CAAC,KAAK,EAAE,EAC1H,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAClE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACV,CACE,CACf,CACF,EACN;GACH;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,aAAa,EAAE,IAAI;MACnB,8BAA8B,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW;MAClD,mCAAmC,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe;MAC3D,wBAAwB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;MACtC,0BAA0B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;MAC3C,0BAA0B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;KAC5C,CAAC;IAEF,QACEA,QAACC,UAAI,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,IACpED,iBAAK,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,QAAQ,IAElC,IAAI,CAAC,aAAa;MAClB,IAAI,CAAC,cAAc,EAAE;;QAErB,IAAI,CAAC,kBAAkB,EAAE,CAEvB,CACD,EACP;GACH;;;;;;;;;;;","names":["h","Host"],"sources":["src/components/stzh-amount/stzh-amount.scss?tag=stzh-amount&encapsulation=scoped","src/components/stzh-amount/stzh-amount.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-amount {\n &__stepper-wrapper {\n display: flex;\n align-items: flex-start;\n gap: space('medium');\n }\n\n &__buttongroup {\n margin-top: 19.5px + 2px; // input label height + margin\n }\n\n stzh-input#{&}__stepper-input {\n --text-align: center;\n width: 100%;\n }\n}\n","import {\n Component,\n Host,\n Prop,\n h,\n Watch,\n Element,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhDropdownOption,\n StzhAmountChangeEvent,\n StzhDropdownChangeEvent,\n StzhInputChangeEvent,\n} from \"../../index\";\n\nimport { StzhAmountLocalizedText } from './stzh-amount.localization';\n\nlet amountCounter = 0;\n\n@Component({\n tag: \"stzh-amount\",\n styleUrl: \"stzh-amount.scss\",\n scoped: true\n})\nexport class StzhAmount {\n /** The lowest allowed amount (can be negative). */\n @Prop() minValue: number = -9007199254740991;\n\n /** The highest allowed amount. */\n @Prop() maxValue: number = 9007199254740991;\n\n /** The lowest amount as option in the dropdown. Needs to be set to initially display a dropdown. */\n @Prop() minValueDropdown: number | null = null;\n\n /** The highest amount as option in the dropdown. Needs to be set to initially display a dropdown. */\n @Prop() maxValueDropdown: number | null = null;\n private _showDropdown: boolean = !Number.isNaN(this.minValueDropdown) && !Number.isNaN(this.maxValueDropdown)\n && this.minValueDropdown < this.maxValueDropdown;\n\n private _dropdownOptions: StzhDropdownOption[];\n\n /** The initial value of the amount element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** The step the amount can be increased or decreased */\n @Prop() step: number = 1;\n\n /** Name of the element (hidden select element in case of dropdown) */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Whether the amount component is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Popover placement for the dropdown (if applicable) */\n @Prop({ reflect: true }) popoverPlacement: \"bottom\" | \"bottom-end\" | \"bottom-center\" | \"top\" | \"top-end\" | \"top-center\" = \"bottom\";\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Whether clearable button is showing for the input field (does not apply to dropdown) */\n @Prop({ reflect: true }) clearable: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Description placed below the amount */\n @Prop() description: string;\n\n /** Long description message appearing in a popover */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message(s) */\n @Prop({ mutable: true }) error: string | string[];\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = '';\n\n /** Translation strings. */\n @Prop() localization: StzhAmountLocalizedText;\n\n @Watch(\"minValueDropdown\")\n @Watch(\"maxValueDropdown\")\n minMaxValueDropdownWatcher() {\n this.setDropdownOptions();\n }\n\n /** Amount change event */\n @Event() stzhChange: EventEmitter<StzhAmountChangeEvent>;\n\n @Element() element: HTMLStzhAmountElement;\n\n private amountId: string;\n private stepperInputId: string;\n private input: HTMLStzhInputElement | HTMLStzhDropdownElement;\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n }\n\n /** Fill the dropdown with options according to maxValueDropdown & minValueDropdown. */\n private setDropdownOptions() {\n if (!this._showDropdown) {\n return;\n }\n\n const options = [];\n\n for (let i = this.minValueDropdown; i <= this.maxValueDropdown; i++) {\n options.push({text: i.toString(), value: i.toString()});\n }\n if (this.maxValue != undefined && this.maxValue > this.maxValueDropdown) {\n options.push({text: `${this.maxValueDropdown.toString()}+`, value: this.dropdownItemPlusValue})\n }\n\n this._dropdownOptions = options;\n }\n\n private get dropdownItemPlusValue(): string {\n return (this.maxValueDropdown + this.step).toString();\n }\n\n /** Handling dropdown changes (switch to input stepper if the plus option is selected in the dropdown). */\n private onDropdownChange = (event: CustomEvent<StzhDropdownChangeEvent>) => {\n if (event.detail.value === this.dropdownItemPlusValue) {\n this._showDropdown = false;\n }\n\n this.value = Array.isArray(event.detail.value) ? event.detail.value[0] : event.detail.value;\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n });\n }\n\n /** Handling the minus button. */\n private onInputMinusStepClick = () => {\n if (Number(this.value) <= this.minValue) {\n return;\n }\n\n this.value = (Number(this.value) - this.step).toString();\n this.value = this.roundToStep(Number(this.value)).toString();\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n });\n }\n\n /** Handling the plus button. */\n private onInputPlusStepClick = () => {\n if (Number(this.value) >= this.maxValue) {\n return;\n }\n\n this.value = (Number(this.value) + this.step).toString();\n this.value = this.roundToStep(Number(this.value)).toString();\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n })\n }\n\n /** Handling manual value change of the stepper input. */\n private onStepperInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n this.value = event.detail.value;\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n });\n }\n\n /** Making sure, that the value is rounded correctly according to the step */\n private roundToStep(input: number): number {\n const decimals = Math.max(0, -Math.floor(Math.log10(this.step)));\n const factor = Math.pow(10, decimals);\n const rounded = Math.round(input / this.step) * this.step;\n return Number((rounded * factor / factor).toFixed(decimals));\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"amount\");\n }\n\n this.amountId = `stzh-amount-${amountCounter++}`;\n\n if (this._showDropdown) {\n this.setDropdownOptions()\n } else {\n this.stepperInputId = `${this.amountId}-stepper-input`\n }\n }\n\n private renderDropdown(): HTMLDivElement {\n const classes = {\n \"stzh-amount__dropdown\": true,\n [`stzh-amount--popover-placement-${this.popoverPlacement}`]: !!this.popoverPlacement,\n };\n return (\n <div class={classes}>\n <stzh-dropdown\n ref={(el) => (this.input = el as HTMLStzhDropdownElement)}\n options={this._dropdownOptions}\n items={[this.value]}\n label={this.label}\n labelHidden={this.labelHidden}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n invalid={this.invalid}\n popoverPlacement={this.popoverPlacement}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n hideOptional={this.hideOptional}\n onStzhChange={this.onDropdownChange}\n ></stzh-dropdown>\n </div>\n );\n }\n\n private renderInputStepper(): HTMLDivElement {\n return (\n <div class=\"stzh-amount__stepper\">\n <div class=\"stzh-amount__stepper-wrapper\">\n <stzh-input\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n class=\"stzh-amount__stepper-input\"\n value={this.value}\n type=\"number\"\n label={this.label}\n labelHidden={this.labelHidden}\n min={this.minValue}\n max={this.maxValue}\n error={this.error}\n invalid={this.invalid}\n required={this.required}\n name={this.name}\n id={this.stepperInputId}\n size={this.size}\n step={this.step}\n hideOptional={this.hideOptional}\n description={this.description}\n descriptionLong={this.descriptionLong}\n clearable={this.clearable}\n disabled={this.disabled}\n a11yDescribedby={this.a11yDescribedby}\n onStzhChange={this.onStepperInputChange}\n ></stzh-input>\n <stzh-buttongroup class=\"stzh-amount__buttongroup\">\n <stzh-button\n class=\"stzh-amount__stepper-minus\"\n onClick={this.onInputMinusStepClick}\n variant=\"secondary\"\n icon=\"minus\"\n iconOnly={true}\n a11yControls={this.stepperInputId}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label} ${this.localization.stepperMinusLabel}, ${this.localization.selectedAmountMessage} ${this.value}`}\n size={this.size}\n a11yDisabled={Number(this.value) <= this.minValue || this.disabled}\n disabled={this.disabled}\n ></stzh-button>\n <stzh-button\n class=\"stzh-amount__stepper-plus\"\n onClick={this.onInputPlusStepClick}\n variant=\"secondary\"\n icon=\"plus\"\n iconOnly={true}\n a11yControls={this.stepperInputId}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label} ${this.localization.stepperPlusLabel}, ${this.localization.selectedAmountMessage} ${this.value}`}\n size={this.size}\n a11yDisabled={Number(this.value) >= this.maxValue || this.disabled}\n disabled={this.disabled}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </div>\n );\n }\n\n render() {\n const classes = {\n \"stzh-amount\": true,\n \"stzh-amount--has-description\": !!this.description,\n \"stzh-amount--has-description-long\": !!this.descriptionLong,\n \"stzh-amount--has-error\": !!this.error,\n \"stzh-amount--is-required\": !!this.required,\n \"stzh-amount--is-disabled\": !!this.disabled\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes} id={this.amountId}>\n {\n this._showDropdown ?\n this.renderDropdown()\n :\n this.renderInputStepper()\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"stzh-amount.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,49CAA49C;;ACoBl/C,IAAI,aAAa,GAAG,CAAC,CAAC;MAOT,UAAU;;;;IAYb,kBAAa,GAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACxG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;IAsE3C,gBAAW,GAAG;MACpB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;OACpB;KACF,CAAA;;IAyBO,qBAAgB,GAAG,CAAC,KAA2C;MACrE,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,qBAAqB,EAAE;QACrD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;OAC5B;MAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;MAE5F,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACnB,SAAS,EAAE,aAAa;QACxB,KAAK,EA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,CAAC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAClE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACV,CACE,CACf,CACF,EACN;GACH;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,aAAa,EAAE,IAAI;MACnB,8BAA8B,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW;MAClD,mCAAmC,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe;MAC3D,wBAAwB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;MACtC,0BAA0B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;MAC3C,0BAA0B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;KAC5C,CAAC;IAEF,QACEA,QAACC,UAAI,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,IACpED,iBAAK,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,QAAQ,IAElC,IAAI,CAAC,aAAa;MAClB,IAAI,CAAC,cAAc,EAAE;;QAErB,IAAI,CAAC,kBAAkB,EAAE,CAEvB,CACD,EACP;GACH;;;;;;;;;;;","names":["h","Host"],"sources":["src/components/stzh-amount/stzh-amount.scss?tag=stzh-amount&encapsulation=scoped","src/components/stzh-amount/stzh-amount.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-amount {\n &__stepper-wrapper {\n display: flex;\n align-items: flex-start;\n gap: space('medium');\n }\n\n &__buttongroup {\n margin-top: 19.5px + 2px; // input label height + margin\n }\n\n stzh-input#{&}__stepper-input {\n --text-align: center;\n width: 100%;\n }\n}\n","import {\n Component,\n Host,\n Prop,\n h,\n Watch,\n Element,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhDropdownOption,\n StzhAmountChangeEvent,\n StzhDropdownChangeEvent,\n StzhInputChangeEvent,\n} from \"../../index\";\n\nimport { StzhAmountLocalizedText } from './stzh-amount.localization';\n\nlet amountCounter = 0;\n\n@Component({\n tag: \"stzh-amount\",\n styleUrl: \"stzh-amount.scss\",\n scoped: true\n})\nexport class StzhAmount {\n /** The lowest allowed amount (can be negative). */\n @Prop() minValue: number = -9007199254740991;\n\n /** The highest allowed amount. */\n @Prop() maxValue: number = 9007199254740991;\n\n /** The lowest amount as option in the dropdown. Needs to be set to initially display a dropdown. */\n @Prop() minValueDropdown: number | null = null;\n\n /** The highest amount as option in the dropdown. Needs to be set to initially display a dropdown. */\n @Prop() maxValueDropdown: number | null = null;\n private _showDropdown: boolean = !Number.isNaN(this.minValueDropdown) && !Number.isNaN(this.maxValueDropdown)\n && this.minValueDropdown < this.maxValueDropdown;\n\n private _dropdownOptions: StzhDropdownOption[];\n\n /** The initial value of the amount element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** The step the amount can be increased or decreased */\n @Prop() step: number = 1;\n\n /** Name of the element (hidden select element in case of dropdown) */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Whether the amount component is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Popover placement for the dropdown (if applicable) */\n @Prop({ reflect: true }) popoverPlacement: \"bottom\" | \"bottom-end\" | \"bottom-center\" | \"top\" | \"top-end\" | \"top-center\" = \"bottom\";\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Whether clearable button is showing for the input field (does not apply to dropdown) */\n @Prop({ reflect: true }) clearable: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Description placed below the amount */\n @Prop() description: string;\n\n /** Long description message appearing in a popover */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message(s) */\n @Prop({ mutable: true }) error: string | string[];\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = '';\n\n /** Translation strings. */\n @Prop() localization: StzhAmountLocalizedText;\n\n @Watch(\"minValueDropdown\")\n @Watch(\"maxValueDropdown\")\n minMaxValueDropdownWatcher() {\n this.setDropdownOptions();\n }\n\n /** Amount change event */\n @Event() stzhChange: EventEmitter<StzhAmountChangeEvent>;\n\n @Element() element: HTMLStzhAmountElement;\n\n private amountId: string;\n private stepperInputId: string;\n private input: HTMLStzhInputElement | HTMLStzhDropdownElement;\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n }\n\n /** Fill the dropdown with options according to maxValueDropdown & minValueDropdown. */\n private setDropdownOptions() {\n if (!this._showDropdown) {\n return;\n }\n\n const options = [];\n\n for (let i = this.minValueDropdown; i <= this.maxValueDropdown; i++) {\n options.push({text: i.toString(), value: i.toString()});\n }\n if (this.maxValue != undefined && this.maxValue > this.maxValueDropdown) {\n options.push({text: `${this.maxValueDropdown.toString()}+`, value: this.dropdownItemPlusValue})\n }\n\n this._dropdownOptions = options;\n }\n\n private get dropdownItemPlusValue(): string {\n return (this.maxValueDropdown + this.step).toString();\n }\n\n /** Handling dropdown changes (switch to input stepper if the plus option is selected in the dropdown). */\n private onDropdownChange = (event: CustomEvent<StzhDropdownChangeEvent>) => {\n if (event.detail.value === this.dropdownItemPlusValue) {\n this._showDropdown = false;\n }\n\n this.value = Array.isArray(event.detail.value) ? event.detail.value[0] : event.detail.value;\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n });\n }\n\n /** Handling the minus button. */\n private onInputMinusStepClick = () => {\n if (Number(this.value) <= this.minValue) {\n return;\n }\n\n this.value = (Number(this.value) - this.step).toString();\n this.value = this.roundToStep(Number(this.value)).toString();\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n });\n }\n\n /** Handling the plus button. */\n private onInputPlusStepClick = () => {\n if (Number(this.value) >= this.maxValue) {\n return;\n }\n\n this.value = (Number(this.value) + this.step).toString();\n this.value = this.roundToStep(Number(this.value)).toString();\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n })\n }\n\n /** Handling manual value change of the stepper input. */\n private onStepperInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n this.value = event.detail.value;\n\n this.stzhChange.emit({\n component: \"stzh-amount\",\n value: this.value\n });\n }\n\n /** Making sure, that the value is rounded correctly according to the step */\n private roundToStep(input: number): number {\n const decimals = Math.max(0, -Math.floor(Math.log10(this.step)));\n const factor = Math.pow(10, decimals);\n const rounded = Math.round(input / this.step) * this.step;\n return Number((rounded * factor / factor).toFixed(decimals));\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"amount\");\n }\n\n this.amountId = `stzh-amount-${amountCounter++}`;\n\n if (this._showDropdown) {\n this.setDropdownOptions()\n } else {\n this.stepperInputId = `${this.amountId}-stepper-input`\n }\n }\n\n private renderDropdown(): HTMLDivElement {\n const classes = {\n \"stzh-amount__dropdown\": true,\n [`stzh-amount--popover-placement-${this.popoverPlacement}`]: !!this.popoverPlacement,\n };\n return (\n <div class={classes}>\n <stzh-dropdown\n ref={(el) => (this.input = el as HTMLStzhDropdownElement)}\n options={this._dropdownOptions}\n items={[this.value]}\n label={this.label}\n labelHidden={this.labelHidden}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n invalid={this.invalid}\n popoverPlacement={this.popoverPlacement}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n hideOptional={this.hideOptional}\n onStzhChange={this.onDropdownChange}\n ></stzh-dropdown>\n </div>\n );\n }\n\n private renderInputStepper(): HTMLDivElement {\n return (\n <div class=\"stzh-amount__stepper\">\n <div class=\"stzh-amount__stepper-wrapper\">\n <stzh-input\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n class=\"stzh-amount__stepper-input\"\n value={this.value}\n type=\"number\"\n label={this.label}\n labelHidden={this.labelHidden}\n min={this.minValue}\n max={this.maxValue}\n error={this.error}\n invalid={this.invalid}\n required={this.required}\n name={this.name}\n id={this.stepperInputId}\n size={this.size}\n step={this.step}\n hideOptional={this.hideOptional}\n description={this.description}\n descriptionLong={this.descriptionLong}\n clearable={this.clearable}\n disabled={this.disabled}\n a11yDescribedby={this.a11yDescribedby}\n onStzhChange={this.onStepperInputChange}\n ></stzh-input>\n <stzh-buttongroup class=\"stzh-amount__buttongroup\">\n <stzh-button\n class=\"stzh-amount__stepper-minus\"\n onClick={this.onInputMinusStepClick}\n variant=\"secondary\"\n icon=\"minus\"\n iconOnly={true}\n a11yControls={this.stepperInputId}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label} ${this.localization.stepperMinusLabel}, ${this.localization.selectedAmountMessage} ${this.value}`}\n size={this.size}\n a11yDisabled={Number(this.value) <= this.minValue || this.disabled}\n disabled={this.disabled}\n ></stzh-button>\n <stzh-button\n class=\"stzh-amount__stepper-plus\"\n onClick={this.onInputPlusStepClick}\n variant=\"secondary\"\n icon=\"plus\"\n iconOnly={true}\n a11yControls={this.stepperInputId}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label} ${this.localization.stepperPlusLabel}, ${this.localization.selectedAmountMessage} ${this.value}`}\n size={this.size}\n a11yDisabled={Number(this.value) >= this.maxValue || this.disabled}\n disabled={this.disabled}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </div>\n );\n }\n\n render() {\n const classes = {\n \"stzh-amount\": true,\n \"stzh-amount--has-description\": !!this.description,\n \"stzh-amount--has-description-long\": !!this.descriptionLong,\n \"stzh-amount--has-error\": !!this.error,\n \"stzh-amount--is-required\": !!this.required,\n \"stzh-amount--is-disabled\": !!this.disabled\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes} id={this.amountId}>\n {\n this._showDropdown ?\n this.renderDropdown()\n :\n this.renderInputStepper()\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -16,7 +16,7 @@ const StzhCardSearchresult = class {
|
|
|
16
16
|
this.stzhClick.emit({
|
|
17
17
|
component: "stzh-card-searchresult",
|
|
18
18
|
originalEvent,
|
|
19
|
-
href: this.href
|
|
19
|
+
href: this.href,
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
this.localization = undefined;
|
|
@@ -94,9 +94,9 @@ const StzhCardSearchresult = class {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
const hasHeading = !!this.heading || utils.hasSlot(this.element,
|
|
98
|
-
const hasDescription = !!this.description || utils.hasSlot(this.element,
|
|
99
|
-
const hasImage = utils.hasSlot(this.element,
|
|
97
|
+
const hasHeading = !!this.heading || utils.hasSlot(this.element, "heading");
|
|
98
|
+
const hasDescription = !!this.description || utils.hasSlot(this.element, "description");
|
|
99
|
+
const hasImage = utils.hasSlot(this.element, "image");
|
|
100
100
|
const eventDateStart = this.eventDateStart && new Date(this.eventDateStart);
|
|
101
101
|
const eventDateEnd = this.eventDateEnd && new Date(this.eventDateEnd);
|
|
102
102
|
const classes = {
|
|
@@ -117,20 +117,7 @@ const StzhCardSearchresult = class {
|
|
|
117
117
|
};
|
|
118
118
|
const Heading = `h${this.headingLevel}`;
|
|
119
119
|
const HeadingLink = this.href ? "a" : "div";
|
|
120
|
-
return (index.h(index.Host, { "has-image": hasImage }, index.h("article", { class: classes, "aria-label": this.heading, role: "listitem" }, this.tag &&
|
|
121
|
-
index.h("stzh-tag", { class: "stzh-card-searchresult__tag", label: this.tag, nonInteractive: true }), index.h("div", { class: "stzh-card-searchresult__heading-wrapper" }, this.breadcrumbItems &&
|
|
122
|
-
index.h("stzh-breadcrumb", { class: "stzh-card-searchresult__breadcrumb", items: this.breadcrumbItems, variant: "teaser" }), this.dateline &&
|
|
123
|
-
index.h("div", { class: "stzh-card-searchresult__dateline" }, this.dateline), index.h(Heading, { class: "stzh-card-searchresult__heading" }, index.h(HeadingLink, { ref: (el) => (this.headingLinkElement = el), class: "stzh-card-searchresult__heading-link", href: this.href, target: this.target, download: this.download, onClick: this.handleCardClick }, index.h("div", { class: "stzh-card-searchresult__heading-link-text", ref: (el) => (this.headingTextElement = el) }, this.heading ? this.heading : index.h("slot", { name: "heading" }))))), index.h("div", { class: "stzh-card-searchresult__description-wrapper" }, (eventDateStart || this.eventLocation) &&
|
|
124
|
-
index.h("div", { class: "stzh-card-searchresult__event-infos" }, eventDateStart &&
|
|
125
|
-
index.h("div", { class: "stzh-card-searchresult__event-date" }, index.h("span", null, this.dateAdapter.format(eventDateStart, "dateLong"), ",\u00A0"), this.dateAdapter.formatSpan(eventDateStart, eventDateEnd, "time")), this.eventLocation &&
|
|
126
|
-
index.h("div", { class: "stzh-card-searchresult__event-location" }, this.eventLocation)), index.h("div", { class: "stzh-card-searchresult__description" }, this.description ? this.description : index.h("slot", { name: "description" }))), index.h("div", { class: "stzh-card-searchresult__image" }, eventDateStart &&
|
|
127
|
-
index.h("div", { class: "stzh-card-searchresult__event-date-teaser" }, index.h("div", { class: "stzh-card-searchresult__event-date-teaser-day-name" }, this.localization.$globals.dayNamesShort[eventDateStart.getDay()]), index.h("div", { class: "stzh-card-searchresult__event-date-teaser-day" }, eventDateStart.getDate() < 10 && '0', eventDateStart.getDate()), index.h("div", { class: "stzh-card-searchresult__event-date-teaser-month" }, this.localization.$globals.monthNamesShort[eventDateStart.getMonth()])), this.topic && index.h("div", { class: "stzh-card-searchresult__topic" }, this.topic), this.service && index.h("div", { class: "stzh-card-searchresult__service" }, this.service), index.h("slot", { name: "image" })), (this._meta.length > 0 || this.datalistItems || (!!this.downloadHeading || this._downloadMeta.length > 0)) &&
|
|
128
|
-
index.h("div", { class: "stzh-card-searchresult__meta-wrapper" }, this.datalistItems &&
|
|
129
|
-
index.h("stzh-datalist", { class: "stzh-card-searchresult__datalist", items: this.datalistItems }), this._meta.length > 0 &&
|
|
130
|
-
index.h("div", { class: "stzh-card-searchresult__meta" }, index.h("div", { class: "stzh-card-searchresult__meta-list" }, this._meta.map((meta) => index.h(index.Fragment, null, index.h("div", { class: "stzh-card-searchresult__meta-list-item" }, meta))))), (!!this.downloadHeading || this._downloadMeta.length > 0) &&
|
|
131
|
-
index.h("div", { class: "stzh-card-searchresult__download" }, index.h("div", { class: "stzh-card-searchresult__download-data" }, this.downloadHeading &&
|
|
132
|
-
index.h("div", { class: "stzh-card-searchresult__download-heading" }, this.downloadHeading), this._downloadMeta.length > 0 &&
|
|
133
|
-
index.h("div", { class: "stzh-card-searchresult__download-meta-list" }, this._downloadMeta.map((meta) => index.h(index.Fragment, null, index.h("div", { class: "stzh-card-searchresult__download-meta-list-item" }, meta))))), index.h("div", { class: "stzh-card-searchresult__download-button" }, index.h("stzh-icon", { class: "stzh-card-searchresult__download-icon", name: "download" })))))));
|
|
120
|
+
return (index.h(index.Host, { "has-image": hasImage }, index.h("article", { class: classes, "aria-label": this.heading, role: "listitem" }, this.tag && index.h("stzh-tag", { class: "stzh-card-searchresult__tag", label: this.tag, nonInteractive: true }), index.h("div", { class: "stzh-card-searchresult__heading-wrapper" }, this.breadcrumbItems && (index.h("stzh-breadcrumb", { class: "stzh-card-searchresult__breadcrumb", items: this.breadcrumbItems, variant: "teaser" })), this.dateline && index.h("div", { class: "stzh-card-searchresult__dateline" }, this.dateline), index.h(Heading, { class: "stzh-card-searchresult__heading" }, index.h(HeadingLink, { ref: el => (this.headingLinkElement = el), class: "stzh-card-searchresult__heading-link", href: this.href, target: this.target, download: this.download, onClick: this.handleCardClick }, index.h("div", { class: "stzh-card-searchresult__heading-link-text", ref: el => (this.headingTextElement = el) }, this.heading ? this.heading : index.h("slot", { name: "heading" }))))), index.h("div", { class: "stzh-card-searchresult__description-wrapper" }, (eventDateStart || this.eventLocation) && (index.h("div", { class: "stzh-card-searchresult__event-infos" }, eventDateStart && (index.h("div", { class: "stzh-card-searchresult__event-date" }, index.h("span", null, this.dateAdapter.format(eventDateStart, "dateLong"), ",\u00A0"), this.dateAdapter.formatSpan(eventDateStart, eventDateEnd, "time"))), this.eventLocation && index.h("div", { class: "stzh-card-searchresult__event-location" }, this.eventLocation))), index.h("div", { class: "stzh-card-searchresult__description" }, this.description ? this.description : index.h("slot", { name: "description" }))), index.h("div", { class: "stzh-card-searchresult__image" }, eventDateStart && (index.h("div", { class: "stzh-card-searchresult__event-date-teaser" }, index.h("div", { class: "stzh-card-searchresult__event-date-teaser-day-name" }, this.localization.$globals.dayNamesShort[eventDateStart.getDay()]), index.h("div", { class: "stzh-card-searchresult__event-date-teaser-day" }, eventDateStart.getDate() < 10 && "0", eventDateStart.getDate()), index.h("div", { class: "stzh-card-searchresult__event-date-teaser-month" }, this.localization.$globals.monthNamesShort[eventDateStart.getMonth()]))), this.topic && index.h("div", { class: "stzh-card-searchresult__topic" }, this.topic), this.service && index.h("div", { class: "stzh-card-searchresult__service" }, this.service), index.h("slot", { name: "image" })), (this._meta.length > 0 || this.datalistItems || !!this.downloadHeading || this._downloadMeta.length > 0) && (index.h("div", { class: "stzh-card-searchresult__meta-wrapper" }, this.datalistItems && (index.h("stzh-datalist", { class: "stzh-card-searchresult__datalist", items: this.datalistItems })), this._meta.length > 0 && (index.h("div", { class: "stzh-card-searchresult__meta" }, index.h("div", { class: "stzh-card-searchresult__meta-list" }, this._meta.map(meta => (index.h(index.Fragment, null, index.h("div", { class: "stzh-card-searchresult__meta-list-item" }, meta))))))), (!!this.downloadHeading || this._downloadMeta.length > 0) && (index.h("div", { class: "stzh-card-searchresult__download" }, index.h("div", { class: "stzh-card-searchresult__download-data" }, this.downloadHeading && (index.h("div", { class: "stzh-card-searchresult__download-heading" }, this.downloadHeading)), this._downloadMeta.length > 0 && (index.h("div", { class: "stzh-card-searchresult__download-meta-list" }, this._downloadMeta.map(meta => (index.h(index.Fragment, null, index.h("div", { class: "stzh-card-searchresult__download-meta-list-item" }, meta))))))), index.h("div", { class: "stzh-card-searchresult__download-button" }, index.h("stzh-icon", { class: "stzh-card-searchresult__download-icon", name: "download" })))))))));
|
|
134
121
|
}
|
|
135
122
|
get element() { return index.getElement(this); }
|
|
136
123
|
static get watchers() { return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stzh-card-searchresult.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,uBAAuB,GAAG,00bAA00b;;MCiC71b,oBAAoB;;;;IAmHvB,oBAAe,GAAG,CAAC,aAAyB;MAClD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,wBAAwB;QACnC,aAAa;QACb,IAAI,EAAE,IAAI,CAAC,IAAI;OAChB,CAAC,CAAC;KACJ,CAAA;;;;;;mBApGyB,EAAE;wBAGkB,GAAG;uBAGnB,EAAE;;;;;;;yBAsB0B,EAAE;;;;yBAYE,SAAS;;;;;EAsBvE,WAAW,CAAC,QAA2B;IACrC,IAAI,CAAC,QAAQ,EAAE;MACb,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;KACjB;SAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MACvC,IAAI;QACF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;OACnC;MAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;OACjB;KACF;SAAM;MACL,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;KACvB;GACF;EAGD,mBAAmB,CAAC,QAA2B;IAC7C,IAAI,CAAC,QAAQ,EAAE;MACb,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;KACzB;SAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MACvC,IAAI;QACF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;OAC3C;MAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,aAAa,GAAG,EAAE,CA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AAM,GAAG,CAAC;QACpBA,iBAAK,KAAK,EAAC,8BAA8B,IACvCA,iBAAK,KAAK,EAAC,mCAAmC,IAC3C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KACnBA,QAACE,cAAQ,QACPF,iBAAK,KAAK,EAAC,wCAAwC,IAAE,IAAI,CAAO,CACvD,CACZ,CACG,CACF,EAGP,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC;QACvDA,iBAAK,KAAK,EAAC,kCAAkC,IAC3CA,iBAAK,KAAK,EAAC,uCAAuC,IAC/C,IAAI,CAAC,eAAe;UACnBA,iBAAK,KAAK,EAAC,0CAA0C,IAClD,IAAI,CAAC,eAAe,CACjB,EAEP,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC;UAC5BA,iBAAK,KAAK,EAAC,4CAA4C,IACpD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,KAC3BA,QAACE,cAAQ,QACPF,iBAAK,KAAK,EAAC,iDAAiD,IAAE,IAAI,CAAO,CAChE,CACZ,CACG,CAEJ,EAENA,iBAAK,KAAK,EAAC,yCAAyC,IAClDA,uBAAW,KAAK,EAAC,uCAAuC,EAAC,IAAI,EAAC,UAAU,GAAa,CACjF,CACF,CAEJ,CAEA,CACL,EACP;GACH;;;;;;;;;;;","names":["hasSlot","h","Host","Fragment"],"sources":["src/components/stzh-card-searchresult/stzh-card-searchresult.scss?tag=stzh-card-searchresult&encapsulation=scoped","src/components/stzh-card-searchresult/stzh-card-searchresult.tsx"],"sourcesContent":[":host {\n --service-background-color: #{$colorSecondary30};\n --service-color: #{$colorPrimary70};\n\n --grid-template-areas:\n \"heading\"\n \"description\"\n \"meta\";\n --grid-template-rows: repeat(2, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr);\n\n display: grid;\n\n ::slotted(img) {\n width: 100%;\n max-width: 100%;\n }\n\n &[has-image] {\n --grid-template-areas:\n \"image\"\n \"heading\"\n \"description\"\n \"meta\";\n --grid-template-rows: repeat(3, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr);\n\n @include mq($from: small) {\n --grid-template-areas:\n \"heading image\"\n \"description image\"\n \"meta image\";\n --grid-template-rows: repeat(2, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr) minmax(180px, min-content);\n }\n }\n\n &[has-image][image-position=\"right\"] {\n @include mq($to: small) {\n --grid-template-areas:\n \"heading image\"\n \"description description\"\n \"meta meta\";\n --grid-template-rows: repeat(2, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr) minmax(100px, min-content);\n }\n }\n}\n\n.stzh-card-searchresult {\n @include fontSize('milli');\n position: relative;\n display: grid;\n background-color: $colorGrey10;\n grid-template-areas: var(--grid-template-areas);\n grid-template-rows: var(--grid-template-rows);\n grid-template-columns: var(--grid-template-columns);\n color: $colorGrey80;\n\n &__tag,\n &__dateline,\n &__breadcrumb,\n &__event-infos,\n &__heading-link-text,\n &__description,\n &__meta-wrapper {\n z-index: 1;\n position: relative;\n }\n\n &__heading-wrapper,\n &--has-description-wrapper &__description-wrapper,\n &__meta-wrapper {\n margin-left: space('medium');\n margin-right: space('medium');\n margin-bottom: space('large');\n }\n\n &__heading-wrapper {\n grid-area: heading;\n display: grid;\n margin-top: space('xlarge');\n }\n\n &__image {\n display: grid;\n grid-area: image;\n width: 100%;\n }\n\n &__description-wrapper {\n grid-area: description;\n }\n\n &__meta-wrapper {\n grid-area: meta;\n }\n\n &__meta {\n overflow: hidden;\n }\n\n &__download {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: space('xsmall');\n overflow: hidden;\n }\n\n &__download-button {\n align-self: flex-end;\n display: flex;\n justify-content: center;\n align-items: center;\n width: $formInputHeightSmall;\n height: $formInputHeightSmall;\n color: $colorPrimary70;\n }\n\n &__download-heading {\n color: $colorPrimary70;\n text-underline-offset: $linkTextUnderlineOffset;\n text-decoration-line: $linkTextDecorationLine;\n text-decoration-thickness: $linkTextDecorationThickness;\n text-decoration-skip-ink: $linkTextDecorationSkipInk;\n }\n\n &__tag,\n &__topic,\n &__service,\n &__event-date-teaser {\n z-index: 2;\n }\n\n &__tag {\n position: absolute;\n left: 0;\n top: 0;\n }\n\n &__service,\n &__topic {\n @include font('heavy');\n @include fontSize('micro');\n position: absolute;\n top: 0;\n right: 0;\n background-color: $colorSecondary30;\n color: $colorPrimary70;\n padding: space('xsmall') space('medium');\n text-align: center;\n\n @include mq($from: small) {\n min-width: 180px;\n }\n }\n\n &__service {\n background-color: var(--service-background-color);\n color: var(--service-color);\n }\n\n &__dateline {\n @include fontSize('micro');\n margin-bottom: space('small');\n }\n\n &__heading {\n margin-top: 0px;\n margin-bottom: space('xsmall');\n }\n\n &__heading-link {\n @include font('heavy');\n @include fontCurve('p1');\n display: block;\n color: $colorPrimary70;\n text-decoration-line: none;\n }\n\n &__event-infos {\n @include fontSize('micro');\n color: $colorBlack;\n }\n\n &:has(#{&}__description:not(:empty)) &__event-infos {\n margin-bottom: space('small');\n }\n\n &__description {\n &:empty {\n display: none;\n }\n }\n\n &__breadcrumb {\n margin-bottom: space('small');\n }\n\n &__event-date-teaser {\n @include fontSize('nano');\n text-transform: uppercase;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n color: $colorBlack;\n background-color: $colorSecondary30;\n position: absolute;\n top: 0;\n right: 0;\n }\n\n &__event-date-teaser-day {\n @include font('heavy');\n @include fontSize('hecto');\n color: $colorPrimary70;\n margin-top: -7px;\n margin-bottom: -7px;\n }\n\n &__meta-list,\n &__download-meta-list {\n @include fontSize('micro');\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n column-gap: space('xsmall');\n margin-left: calc((#{space('xsmall')} + 1px) / -1);\n }\n\n &__meta-list-item,\n &__download-meta-list-item {\n display: flex;\n align-items: center;\n min-height: 24px;\n gap: space('xsmall');\n\n &::before {\n content: '';\n display: block;\n width: 1px;\n height: 16px;\n background-color: currentColor;\n }\n }\n\n /* Has link */\n\n &--has-link &__heading-link {\n border-radius: $buttonBorderRadius;\n cursor: pointer;\n\n &::before,\n &::after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: background-color $baseTransitionAnimationSpeed;\n }\n\n &::after {\n z-index: 10;\n }\n }\n\n &--has-link:has(#{&}__heading-link:hover) &__heading-link {\n &::before {\n background-color: $colorSecondary10;\n }\n }\n\n &--has-link:has(#{&}__heading-link:hover) &__tag {\n --color: #{$colorSecondary60};\n }\n\n /* Has breadcrumb */\n\n &--has-breadcrumb &__heading-wrapper {\n margin-top: space('xlarge');\n }\n\n /* Has tag */\n\n &--has-tag &__heading-wrapper {\n margin-top: space('xxxlarge');\n }\n\n /* Has topic or service */\n\n &--has-service &__heading-wrapper,\n &--has-topic &__heading-wrapper {\n margin-top: space('xxxxlarge');\n }\n\n &--has-service#{&}--has-image-right &__heading-wrapper,\n &--has-topic#{&}--has-image-right &__heading-wrapper {\n margin-top: space('xxxlarge');\n }\n\n /* Has image (default) */\n\n &--has-image &__image {\n z-index: 1;\n position: relative;\n }\n\n &--has-image-default &__heading-wrapper {\n @include mq($to: small) {\n margin-top: space('small');\n }\n }\n\n /* Has image right */\n\n &--has-image-right &__image {\n @include mq($to: small) {\n margin-bottom: space('xsmall');\n }\n }\n\n &--has-image-right &__service,\n &--has-image-right &__topic {\n position: static;\n }\n\n /* Has description wrapper, meta or download */\n\n &--has-description-wrapper &__heading-wrapper,\n &--has-meta &__heading-wrapper,\n &--has-download &__heading-wrapper {\n margin-bottom: 0px;\n }\n\n &--has-meta &__description-wrapper,\n &--has-download &__description-wrapper {\n margin-bottom: 0px;\n }\n\n &--has-meta &__description,\n &--has-download &__description {\n &:not(:empty) {\n margin-bottom: space('small');\n }\n }\n\n &--has-download &__meta {\n margin-bottom: space('xsmall');\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Event,\n EventEmitter,\n Watch,\n Fragment\n} from \"@stencil/core\";\n\nimport {\n StzhCardSearchresultClickEvent,\n StzhBreadcrumbItem,\n StzhDatalistItemEntry,\n StzhLocaleAdapter\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\n/**\n * @slot heading - Heading text (alternative for heading property)\n * @slot description - Description text (alternative for description property)\n * @slot image - Image\n */\n@Component({\n tag: \"stzh-card-searchresult\",\n styleUrl: \"stzh-card-searchresult.scss\",\n scoped: true\n})\nexport class StzhCardSearchresult {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Href of card */\n @Prop({ reflect: true }) href: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string;\n\n /** Download attribute (if href is used) */\n @Prop() download: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link elements.\n * Default value will be taken from `heading` prop/slot.\n */\n @Prop() analyticsId: string;\n\n /** Heading (alternative for heading slot) */\n @Prop() heading: string = \"\";\n\n /** Heading level */\n @Prop() headingLevel: \"1\" | \"2\" | \"3\" | \"4\" = \"3\";\n\n /** Description text (alternative for description slot) */\n @Prop() description: string = \"\";\n\n /** Tag */\n @Prop() tag: string;\n\n /** Topic */\n @Prop() topic: string;\n\n /** Service */\n @Prop() service: string;\n\n /** Dateline */\n @Prop() dateline: string;\n\n /** Meta */\n @Prop() meta: string[] | string;\n private _meta: string[];\n\n /** Breadcrumb items */\n @Prop() breadcrumbItems: StzhBreadcrumbItem[] | string;\n\n /** Datalist items */\n @Prop() datalistItems: StzhDatalistItemEntry[] | string = [];\n\n /** Event start date */\n @Prop() eventDateStart: Date | string;\n\n /** Event start date */\n @Prop() eventDateEnd: Date | string;\n\n /** Event location */\n @Prop() eventLocation: string;\n\n /** Image position */\n @Prop({ reflect: true }) imagePosition: \"default\" | \"right\" = \"default\";\n\n /** Download heading */\n @Prop() downloadHeading: string;\n\n /** Download meta */\n @Prop() downloadMeta: string[] | string;\n private _downloadMeta: string[];\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n @Element() element: HTMLStzhListElement;\n\n /** Click event (if href is used) */\n @Event() stzhClick: EventEmitter<StzhCardSearchresultClickEvent>;\n\n @Watch(\"meta\")\n metaWatcher(newValue: string | string[]) {\n if (!newValue) {\n this._meta = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._meta = JSON.parse(newValue);\n } catch (e) {\n this._meta = [];\n }\n } else {\n this._meta = newValue;\n }\n }\n\n @Watch(\"downloadMeta\")\n downloadMetaWatcher(newValue: string | string[]) {\n if (!newValue) {\n this._downloadMeta = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._downloadMeta = JSON.parse(newValue);\n } catch (e) {\n this._downloadMeta = [];\n }\n } else {\n this._downloadMeta = newValue;\n }\n }\n\n private headingLinkElement: HTMLAnchorElement | HTMLDivElement;\n private headingTextElement: HTMLDivElement;\n\n private handleCardClick = (originalEvent: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-card-searchresult\",\n originalEvent,\n href: this.href\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n const objectId = this.analyticsId || this.headingTextElement?.innerText;\n\n if (objectId) {\n this.headingLinkElement?.setAttribute(\"s-object-id\", objectId);\n }\n });\n }\n\n async componentWillLoad() {\n this.metaWatcher(this.meta);\n this.downloadMetaWatcher(this.downloadMeta);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"card-searchresult\");\n }\n\n if (!this.dateAdapter) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n }\n\n render() {\n const hasHeading = !!this.heading || hasSlot(this.element, 'heading');\n const hasDescription = !!this.description || hasSlot(this.element, 'description');\n const hasImage = hasSlot(this.element, 'image');\n\n const eventDateStart = this.eventDateStart && new Date(this.eventDateStart);\n const eventDateEnd = this.eventDateEnd && new Date(this.eventDateEnd);\n\n const classes = {\n \"stzh-card-searchresult\": true,\n \"stzh-card-searchresult--has-heading\": hasHeading,\n \"stzh-card-searchresult--has-description\": hasDescription,\n \"stzh-card-searchresult--has-description-wrapper\": hasDescription || !!eventDateStart || !!this.eventLocation,\n \"stzh-card-searchresult--has-link\": !!this.href,\n \"stzh-card-searchresult--has-service\": !!this.service,\n \"stzh-card-searchresult--has-tag\": !!this.tag,\n \"stzh-card-searchresult--has-topic\": !!this.topic,\n \"stzh-card-searchresult--has-image\": hasImage,\n \"stzh-card-searchresult--has-image-default\": hasImage && this.imagePosition === \"default\",\n \"stzh-card-searchresult--has-image-right\": hasImage && this.imagePosition === \"right\",\n \"stzh-card-searchresult--has-meta\": this._meta.length > 0,\n \"stzh-card-searchresult--has-download\": !!this.downloadHeading || this._downloadMeta.length > 0,\n \"stzh-card-searchresult--has-breadcrumb\": !!this.breadcrumbItems,\n };\n\n const Heading = `h${this.headingLevel}`;\n const HeadingLink = this.href ? \"a\" : \"div\";\n\n return (\n <Host has-image={hasImage}>\n <article class={classes} aria-label={this.heading} role=\"listitem\">\n {this.tag &&\n <stzh-tag\n class=\"stzh-card-searchresult__tag\"\n label={this.tag}\n nonInteractive={true}\n ></stzh-tag>\n }\n\n <div class=\"stzh-card-searchresult__heading-wrapper\">\n {this.breadcrumbItems &&\n <stzh-breadcrumb\n class=\"stzh-card-searchresult__breadcrumb\"\n items={this.breadcrumbItems}\n variant=\"teaser\"\n ></stzh-breadcrumb>\n }\n\n {this.dateline &&\n <div class=\"stzh-card-searchresult__dateline\">{this.dateline}</div>\n }\n\n <Heading class=\"stzh-card-searchresult__heading\">\n <HeadingLink\n ref={(el) => (this.headingLinkElement = el as HTMLAnchorElement | HTMLDivElement)}\n class=\"stzh-card-searchresult__heading-link\"\n href={this.href}\n target={this.target}\n download={this.download}\n onClick={this.handleCardClick}\n >\n <div\n class=\"stzh-card-searchresult__heading-link-text\"\n ref={(el) => (this.headingTextElement = el as HTMLDivElement)}\n >\n {this.heading ? this.heading : <slot name=\"heading\"></slot>}\n </div>\n </HeadingLink>\n </Heading>\n </div>\n\n <div class=\"stzh-card-searchresult__description-wrapper\">\n {(eventDateStart || this.eventLocation) &&\n <div class=\"stzh-card-searchresult__event-infos\">\n {eventDateStart &&\n <div class=\"stzh-card-searchresult__event-date\">\n <span>{this.dateAdapter.format(eventDateStart, \"dateLong\")}, </span>\n {this.dateAdapter.formatSpan(eventDateStart, eventDateEnd, \"time\")}\n </div>\n }\n {this.eventLocation &&\n <div class=\"stzh-card-searchresult__event-location\">\n {this.eventLocation}\n </div>\n }\n </div>\n }\n\n <div class=\"stzh-card-searchresult__description\">\n {this.description ? this.description : <slot name=\"description\"></slot>}\n </div>\n </div>\n\n <div class=\"stzh-card-searchresult__image\">\n {eventDateStart &&\n <div class=\"stzh-card-searchresult__event-date-teaser\">\n <div class=\"stzh-card-searchresult__event-date-teaser-day-name\">\n {this.localization.$globals.dayNamesShort[eventDateStart.getDay()]}\n </div>\n <div class=\"stzh-card-searchresult__event-date-teaser-day\">\n {eventDateStart.getDate() < 10 && '0'}{eventDateStart.getDate()}\n </div>\n <div class=\"stzh-card-searchresult__event-date-teaser-month\">\n {this.localization.$globals.monthNamesShort[eventDateStart.getMonth()]}\n </div>\n </div>\n }\n {this.topic && <div class=\"stzh-card-searchresult__topic\">{this.topic}</div>}\n {this.service && <div class=\"stzh-card-searchresult__service\">{this.service}</div>}\n <slot name=\"image\"></slot>\n </div>\n\n {(this._meta.length > 0 || this.datalistItems || (!!this.downloadHeading || this._downloadMeta.length > 0)) &&\n <div class=\"stzh-card-searchresult__meta-wrapper\">\n {this.datalistItems &&\n <stzh-datalist\n class=\"stzh-card-searchresult__datalist\"\n items={this.datalistItems}\n >\n </stzh-datalist>\n }\n\n {this._meta.length > 0 &&\n <div class=\"stzh-card-searchresult__meta\">\n <div class=\"stzh-card-searchresult__meta-list\">\n {this._meta.map((meta) =>\n <Fragment>\n <div class=\"stzh-card-searchresult__meta-list-item\">{meta}</div>\n </Fragment>\n )}\n </div>\n </div>\n }\n\n {(!!this.downloadHeading || this._downloadMeta.length > 0) &&\n <div class=\"stzh-card-searchresult__download\">\n <div class=\"stzh-card-searchresult__download-data\">\n {this.downloadHeading &&\n <div class=\"stzh-card-searchresult__download-heading\">\n {this.downloadHeading}\n </div>\n }\n {this._downloadMeta.length > 0 &&\n <div class=\"stzh-card-searchresult__download-meta-list\">\n {this._downloadMeta.map((meta) =>\n <Fragment>\n <div class=\"stzh-card-searchresult__download-meta-list-item\">{meta}</div>\n </Fragment>\n )}\n </div>\n }\n </div>\n\n <div class=\"stzh-card-searchresult__download-button\">\n <stzh-icon class=\"stzh-card-searchresult__download-icon\" name=\"download\"></stzh-icon>\n </div>\n </div>\n }\n </div>\n }\n </article>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"stzh-card-searchresult.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,uBAAuB,GAAG,00bAA00b;;MCuB71b,oBAAoB;;;;IAmHvB,oBAAe,GAAG,CAAC,aAAyB;MAClD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,wBAAwB;QACnC,aAAa;QACb,IAAI,EAAE,IAAI,CAAC,IAAI;OAChB,CAAC,CAAC;KACJ,CAAC;;;;;;mBApGwB,EAAE;wBAGkB,GAAG;uBAGnB,EAAE;;;;;;;yBAsB0B,EAAE;;;;yBAYE,SAAS;;;;;EAsBvE,WAAW,CAAC,QAA2B;IACrC,IAAI,CAAC,QAAQ,EAAE;MACb,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;KACjB;SAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MACvC,IAAI;QACF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;OAC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BAAW,KAAK,EAAC,uCAAuC,EAAC,IAAI,EAAC,UAAU,GAAa,CACjF,CACF,CACP,CACG,CACP,CACO,CACL,EACP;GACH;;;;;;;;;;;","names":["hasSlot","h","Host","Fragment"],"sources":["src/components/stzh-card-searchresult/stzh-card-searchresult.scss?tag=stzh-card-searchresult&encapsulation=scoped","src/components/stzh-card-searchresult/stzh-card-searchresult.tsx"],"sourcesContent":[":host {\n --service-background-color: #{$colorSecondary30};\n --service-color: #{$colorPrimary70};\n\n --grid-template-areas:\n \"heading\"\n \"description\"\n \"meta\";\n --grid-template-rows: repeat(2, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr);\n\n display: grid;\n\n ::slotted(img) {\n width: 100%;\n max-width: 100%;\n }\n\n &[has-image] {\n --grid-template-areas:\n \"image\"\n \"heading\"\n \"description\"\n \"meta\";\n --grid-template-rows: repeat(3, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr);\n\n @include mq($from: small) {\n --grid-template-areas:\n \"heading image\"\n \"description image\"\n \"meta image\";\n --grid-template-rows: repeat(2, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr) minmax(180px, min-content);\n }\n }\n\n &[has-image][image-position=\"right\"] {\n @include mq($to: small) {\n --grid-template-areas:\n \"heading image\"\n \"description description\"\n \"meta meta\";\n --grid-template-rows: repeat(2, auto) minmax(0, 1fr);\n --grid-template-columns: minmax(0, 1fr) minmax(100px, min-content);\n }\n }\n}\n\n.stzh-card-searchresult {\n @include fontSize('milli');\n position: relative;\n display: grid;\n background-color: $colorGrey10;\n grid-template-areas: var(--grid-template-areas);\n grid-template-rows: var(--grid-template-rows);\n grid-template-columns: var(--grid-template-columns);\n color: $colorGrey80;\n\n &__tag,\n &__dateline,\n &__breadcrumb,\n &__event-infos,\n &__heading-link-text,\n &__description,\n &__meta-wrapper {\n z-index: 1;\n position: relative;\n }\n\n &__heading-wrapper,\n &--has-description-wrapper &__description-wrapper,\n &__meta-wrapper {\n margin-left: space('medium');\n margin-right: space('medium');\n margin-bottom: space('large');\n }\n\n &__heading-wrapper {\n grid-area: heading;\n display: grid;\n margin-top: space('xlarge');\n }\n\n &__image {\n display: grid;\n grid-area: image;\n width: 100%;\n }\n\n &__description-wrapper {\n grid-area: description;\n }\n\n &__meta-wrapper {\n grid-area: meta;\n }\n\n &__meta {\n overflow: hidden;\n }\n\n &__download {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: space('xsmall');\n overflow: hidden;\n }\n\n &__download-button {\n align-self: flex-end;\n display: flex;\n justify-content: center;\n align-items: center;\n width: $formInputHeightSmall;\n height: $formInputHeightSmall;\n color: $colorPrimary70;\n }\n\n &__download-heading {\n color: $colorPrimary70;\n text-underline-offset: $linkTextUnderlineOffset;\n text-decoration-line: $linkTextDecorationLine;\n text-decoration-thickness: $linkTextDecorationThickness;\n text-decoration-skip-ink: $linkTextDecorationSkipInk;\n }\n\n &__tag,\n &__topic,\n &__service,\n &__event-date-teaser {\n z-index: 2;\n }\n\n &__tag {\n position: absolute;\n left: 0;\n top: 0;\n }\n\n &__service,\n &__topic {\n @include font('heavy');\n @include fontSize('micro');\n position: absolute;\n top: 0;\n right: 0;\n background-color: $colorSecondary30;\n color: $colorPrimary70;\n padding: space('xsmall') space('medium');\n text-align: center;\n\n @include mq($from: small) {\n min-width: 180px;\n }\n }\n\n &__service {\n background-color: var(--service-background-color);\n color: var(--service-color);\n }\n\n &__dateline {\n @include fontSize('micro');\n margin-bottom: space('small');\n }\n\n &__heading {\n margin-top: 0px;\n margin-bottom: space('xsmall');\n }\n\n &__heading-link {\n @include font('heavy');\n @include fontCurve('p1');\n display: block;\n color: $colorPrimary70;\n text-decoration-line: none;\n }\n\n &__event-infos {\n @include fontSize('micro');\n color: $colorBlack;\n }\n\n &:has(#{&}__description:not(:empty)) &__event-infos {\n margin-bottom: space('small');\n }\n\n &__description {\n &:empty {\n display: none;\n }\n }\n\n &__breadcrumb {\n margin-bottom: space('small');\n }\n\n &__event-date-teaser {\n @include fontSize('nano');\n text-transform: uppercase;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n color: $colorBlack;\n background-color: $colorSecondary30;\n position: absolute;\n top: 0;\n right: 0;\n }\n\n &__event-date-teaser-day {\n @include font('heavy');\n @include fontSize('hecto');\n color: $colorPrimary70;\n margin-top: -7px;\n margin-bottom: -7px;\n }\n\n &__meta-list,\n &__download-meta-list {\n @include fontSize('micro');\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n column-gap: space('xsmall');\n margin-left: calc((#{space('xsmall')} + 1px) / -1);\n }\n\n &__meta-list-item,\n &__download-meta-list-item {\n display: flex;\n align-items: center;\n min-height: 24px;\n gap: space('xsmall');\n\n &::before {\n content: '';\n display: block;\n width: 1px;\n height: 16px;\n background-color: currentColor;\n }\n }\n\n /* Has link */\n\n &--has-link &__heading-link {\n border-radius: $buttonBorderRadius;\n cursor: pointer;\n\n &::before,\n &::after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: background-color $baseTransitionAnimationSpeed;\n }\n\n &::after {\n z-index: 10;\n }\n }\n\n &--has-link:has(#{&}__heading-link:hover) &__heading-link {\n &::before {\n background-color: $colorSecondary10;\n }\n }\n\n &--has-link:has(#{&}__heading-link:hover) &__tag {\n --color: #{$colorSecondary60};\n }\n\n /* Has breadcrumb */\n\n &--has-breadcrumb &__heading-wrapper {\n margin-top: space('xlarge');\n }\n\n /* Has tag */\n\n &--has-tag &__heading-wrapper {\n margin-top: space('xxxlarge');\n }\n\n /* Has topic or service */\n\n &--has-service &__heading-wrapper,\n &--has-topic &__heading-wrapper {\n margin-top: space('xxxxlarge');\n }\n\n &--has-service#{&}--has-image-right &__heading-wrapper,\n &--has-topic#{&}--has-image-right &__heading-wrapper {\n margin-top: space('xxxlarge');\n }\n\n /* Has image (default) */\n\n &--has-image &__image {\n z-index: 1;\n position: relative;\n }\n\n &--has-image-default &__heading-wrapper {\n @include mq($to: small) {\n margin-top: space('small');\n }\n }\n\n /* Has image right */\n\n &--has-image-right &__image {\n @include mq($to: small) {\n margin-bottom: space('xsmall');\n }\n }\n\n &--has-image-right &__service,\n &--has-image-right &__topic {\n position: static;\n }\n\n /* Has description wrapper, meta or download */\n\n &--has-description-wrapper &__heading-wrapper,\n &--has-meta &__heading-wrapper,\n &--has-download &__heading-wrapper {\n margin-bottom: 0px;\n }\n\n &--has-meta &__description-wrapper,\n &--has-download &__description-wrapper {\n margin-bottom: 0px;\n }\n\n &--has-meta &__description,\n &--has-download &__description {\n &:not(:empty) {\n margin-bottom: space('small');\n }\n }\n\n &--has-download &__meta {\n margin-bottom: space('xsmall');\n }\n}\n","import { Component, Host, h, Element, Prop, Event, EventEmitter, Watch, Fragment } from \"@stencil/core\";\n\nimport {\n StzhCardSearchresultClickEvent,\n StzhBreadcrumbItem,\n StzhDatalistItemEntry,\n StzhLocaleAdapter,\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\n/**\n * @slot heading - Heading text (alternative for heading property)\n * @slot description - Description text (alternative for description property)\n * @slot image - Image\n */\n@Component({\n tag: \"stzh-card-searchresult\",\n styleUrl: \"stzh-card-searchresult.scss\",\n scoped: true,\n})\nexport class StzhCardSearchresult {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Href of card */\n @Prop({ reflect: true }) href: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string;\n\n /** Download attribute (if href is used) */\n @Prop() download: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link elements.\n * Default value will be taken from `heading` prop/slot.\n */\n @Prop() analyticsId: string;\n\n /** Heading (alternative for heading slot) */\n @Prop() heading: string = \"\";\n\n /** Heading level */\n @Prop() headingLevel: \"1\" | \"2\" | \"3\" | \"4\" = \"3\";\n\n /** Description text (alternative for description slot) */\n @Prop() description: string = \"\";\n\n /** Tag */\n @Prop() tag: string;\n\n /** Topic */\n @Prop() topic: string;\n\n /** Service */\n @Prop() service: string;\n\n /** Dateline */\n @Prop() dateline: string;\n\n /** Meta */\n @Prop() meta: string[] | string;\n private _meta: string[];\n\n /** Breadcrumb items */\n @Prop() breadcrumbItems: StzhBreadcrumbItem[] | string;\n\n /** Datalist items */\n @Prop() datalistItems: StzhDatalistItemEntry[] | string = [];\n\n /** Event start date */\n @Prop() eventDateStart: Date | string;\n\n /** Event start date */\n @Prop() eventDateEnd: Date | string;\n\n /** Event location */\n @Prop() eventLocation: string;\n\n /** Image position */\n @Prop({ reflect: true }) imagePosition: \"default\" | \"right\" = \"default\";\n\n /** Download heading */\n @Prop() downloadHeading: string;\n\n /** Download meta */\n @Prop() downloadMeta: string[] | string;\n private _downloadMeta: string[];\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n @Element() element: HTMLStzhListElement;\n\n /** Click event (if href is used) */\n @Event() stzhClick: EventEmitter<StzhCardSearchresultClickEvent>;\n\n @Watch(\"meta\")\n metaWatcher(newValue: string | string[]) {\n if (!newValue) {\n this._meta = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._meta = JSON.parse(newValue);\n } catch (e) {\n this._meta = [];\n }\n } else {\n this._meta = newValue;\n }\n }\n\n @Watch(\"downloadMeta\")\n downloadMetaWatcher(newValue: string | string[]) {\n if (!newValue) {\n this._downloadMeta = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._downloadMeta = JSON.parse(newValue);\n } catch (e) {\n this._downloadMeta = [];\n }\n } else {\n this._downloadMeta = newValue;\n }\n }\n\n private headingLinkElement: HTMLAnchorElement | HTMLDivElement;\n private headingTextElement: HTMLDivElement;\n\n private handleCardClick = (originalEvent: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-card-searchresult\",\n originalEvent,\n href: this.href,\n });\n };\n\n componentDidRender() {\n requestAnimationFrame(() => {\n const objectId = this.analyticsId || this.headingTextElement?.innerText;\n\n if (objectId) {\n this.headingLinkElement?.setAttribute(\"s-object-id\", objectId);\n }\n });\n }\n\n async componentWillLoad() {\n this.metaWatcher(this.meta);\n this.downloadMetaWatcher(this.downloadMeta);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"card-searchresult\");\n }\n\n if (!this.dateAdapter) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n }\n\n render() {\n const hasHeading = !!this.heading || hasSlot(this.element, \"heading\");\n const hasDescription = !!this.description || hasSlot(this.element, \"description\");\n const hasImage = hasSlot(this.element, \"image\");\n\n const eventDateStart = this.eventDateStart && new Date(this.eventDateStart);\n const eventDateEnd = this.eventDateEnd && new Date(this.eventDateEnd);\n\n const classes = {\n \"stzh-card-searchresult\": true,\n \"stzh-card-searchresult--has-heading\": hasHeading,\n \"stzh-card-searchresult--has-description\": hasDescription,\n \"stzh-card-searchresult--has-description-wrapper\": hasDescription || !!eventDateStart || !!this.eventLocation,\n \"stzh-card-searchresult--has-link\": !!this.href,\n \"stzh-card-searchresult--has-service\": !!this.service,\n \"stzh-card-searchresult--has-tag\": !!this.tag,\n \"stzh-card-searchresult--has-topic\": !!this.topic,\n \"stzh-card-searchresult--has-image\": hasImage,\n \"stzh-card-searchresult--has-image-default\": hasImage && this.imagePosition === \"default\",\n \"stzh-card-searchresult--has-image-right\": hasImage && this.imagePosition === \"right\",\n \"stzh-card-searchresult--has-meta\": this._meta.length > 0,\n \"stzh-card-searchresult--has-download\": !!this.downloadHeading || this._downloadMeta.length > 0,\n \"stzh-card-searchresult--has-breadcrumb\": !!this.breadcrumbItems,\n };\n\n const Heading = `h${this.headingLevel}`;\n const HeadingLink = this.href ? \"a\" : \"div\";\n\n return (\n <Host has-image={hasImage}>\n <article class={classes} aria-label={this.heading} role=\"listitem\">\n {this.tag && <stzh-tag class=\"stzh-card-searchresult__tag\" label={this.tag} nonInteractive={true}></stzh-tag>}\n\n <div class=\"stzh-card-searchresult__heading-wrapper\">\n {this.breadcrumbItems && (\n <stzh-breadcrumb\n class=\"stzh-card-searchresult__breadcrumb\"\n items={this.breadcrumbItems}\n variant=\"teaser\"\n ></stzh-breadcrumb>\n )}\n\n {this.dateline && <div class=\"stzh-card-searchresult__dateline\">{this.dateline}</div>}\n\n <Heading class=\"stzh-card-searchresult__heading\">\n <HeadingLink\n ref={el => (this.headingLinkElement = el as HTMLAnchorElement | HTMLDivElement)}\n class=\"stzh-card-searchresult__heading-link\"\n href={this.href}\n target={this.target}\n download={this.download}\n onClick={this.handleCardClick}\n >\n <div\n class=\"stzh-card-searchresult__heading-link-text\"\n ref={el => (this.headingTextElement = el as HTMLDivElement)}\n >\n {this.heading ? this.heading : <slot name=\"heading\"></slot>}\n </div>\n </HeadingLink>\n </Heading>\n </div>\n\n <div class=\"stzh-card-searchresult__description-wrapper\">\n {(eventDateStart || this.eventLocation) && (\n <div class=\"stzh-card-searchresult__event-infos\">\n {eventDateStart && (\n <div class=\"stzh-card-searchresult__event-date\">\n <span>{this.dateAdapter.format(eventDateStart, \"dateLong\")}, </span>\n {this.dateAdapter.formatSpan(eventDateStart, eventDateEnd, \"time\")}\n </div>\n )}\n {this.eventLocation && <div class=\"stzh-card-searchresult__event-location\">{this.eventLocation}</div>}\n </div>\n )}\n\n <div class=\"stzh-card-searchresult__description\">\n {this.description ? this.description : <slot name=\"description\"></slot>}\n </div>\n </div>\n\n <div class=\"stzh-card-searchresult__image\">\n {eventDateStart && (\n <div class=\"stzh-card-searchresult__event-date-teaser\">\n <div class=\"stzh-card-searchresult__event-date-teaser-day-name\">\n {this.localization.$globals.dayNamesShort[eventDateStart.getDay()]}\n </div>\n <div class=\"stzh-card-searchresult__event-date-teaser-day\">\n {eventDateStart.getDate() < 10 && \"0\"}\n {eventDateStart.getDate()}\n </div>\n <div class=\"stzh-card-searchresult__event-date-teaser-month\">\n {this.localization.$globals.monthNamesShort[eventDateStart.getMonth()]}\n </div>\n </div>\n )}\n {this.topic && <div class=\"stzh-card-searchresult__topic\">{this.topic}</div>}\n {this.service && <div class=\"stzh-card-searchresult__service\">{this.service}</div>}\n <slot name=\"image\"></slot>\n </div>\n\n {(this._meta.length > 0 || this.datalistItems || !!this.downloadHeading || this._downloadMeta.length > 0) && (\n <div class=\"stzh-card-searchresult__meta-wrapper\">\n {this.datalistItems && (\n <stzh-datalist class=\"stzh-card-searchresult__datalist\" items={this.datalistItems}></stzh-datalist>\n )}\n\n {this._meta.length > 0 && (\n <div class=\"stzh-card-searchresult__meta\">\n <div class=\"stzh-card-searchresult__meta-list\">\n {this._meta.map(meta => (\n <Fragment>\n <div class=\"stzh-card-searchresult__meta-list-item\">{meta}</div>\n </Fragment>\n ))}\n </div>\n </div>\n )}\n\n {(!!this.downloadHeading || this._downloadMeta.length > 0) && (\n <div class=\"stzh-card-searchresult__download\">\n <div class=\"stzh-card-searchresult__download-data\">\n {this.downloadHeading && (\n <div class=\"stzh-card-searchresult__download-heading\">{this.downloadHeading}</div>\n )}\n {this._downloadMeta.length > 0 && (\n <div class=\"stzh-card-searchresult__download-meta-list\">\n {this._downloadMeta.map(meta => (\n <Fragment>\n <div class=\"stzh-card-searchresult__download-meta-list-item\">{meta}</div>\n </Fragment>\n ))}\n </div>\n )}\n </div>\n\n <div class=\"stzh-card-searchresult__download-button\">\n <stzh-icon class=\"stzh-card-searchresult__download-icon\" name=\"download\"></stzh-icon>\n </div>\n </div>\n )}\n </div>\n )}\n </article>\n </Host>\n );\n }\n}\n"],"version":3}
|