@oiz/stzh-components 4.12.1 → 4.13.0-beta1
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/{index-Cj3dPOnE.js → index-DLshBNi6.js} +4 -45
- package/dist/cjs/index-DLshBNi6.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js +5 -5
- package/dist/cjs/stzh-actions_6.cjs.entry.js +11 -11
- package/dist/cjs/stzh-actionset.cjs.entry.js +6 -6
- package/dist/cjs/stzh-amount.cjs.entry.js +2 -2
- package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
- package/dist/cjs/stzh-app-nav.cjs.entry.js +2 -2
- package/dist/cjs/stzh-appointments.cjs.entry.js +21 -11
- package/dist/cjs/stzh-archivelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +5 -5
- package/dist/cjs/stzh-badge_3.cjs.entry.js +5 -5
- package/dist/cjs/stzh-banner.cjs.entry.js +2 -2
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-buttongroup.cjs.entry.js +2 -2
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-navigation.cjs.entry.js +3 -3
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js +3 -3
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js +2 -2
- package/dist/cjs/stzh-card_2.cjs.entry.js +8 -8
- package/dist/cjs/stzh-carousel.cjs.entry.js +4 -4
- package/dist/cjs/stzh-chart.cjs.entry.js +2 -2
- package/dist/cjs/stzh-checkbox.cjs.entry.js +36 -6
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +6 -6
- package/dist/cjs/stzh-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/stzh-chipgroup.cjs.entry.js +2 -2
- package/dist/cjs/stzh-clamp.cjs.entry.js +3 -3
- package/dist/cjs/stzh-company-logo.cjs.entry.js +2 -2
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact-cv.cjs.entry.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +2 -2
- package/dist/cjs/stzh-container_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-content.cjs.entry.js +2 -2
- package/dist/cjs/stzh-cta.cjs.entry.js +3 -3
- package/dist/cjs/stzh-datalist_3.cjs.entry.js +5 -5
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datatable.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +42 -12
- package/dist/cjs/stzh-daterange.cjs.entry.js +3 -3
- package/dist/cjs/stzh-details.cjs.entry.js +3 -3
- package/dist/cjs/stzh-dialog.cjs.entry.js +4 -4
- package/dist/cjs/stzh-disturber.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +7 -7
- package/dist/cjs/stzh-editor.cjs.entry.js +1 -1
- package/dist/cjs/stzh-eventdata.cjs.entry.js +1 -1
- package/dist/cjs/stzh-eventinfo.cjs.entry.js +4 -5
- package/dist/cjs/stzh-feedreader-item.cjs.entry.js +3 -3
- package/dist/cjs/stzh-feedreader.cjs.entry.js +3 -3
- package/dist/cjs/stzh-figure.cjs.entry.js +3 -3
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +2 -2
- package/dist/cjs/stzh-footer.cjs.entry.js +6 -5
- package/dist/cjs/stzh-gallery.cjs.entry.js +2 -2
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +4 -4
- package/dist/cjs/stzh-ghettobox.cjs.entry.js +3 -3
- package/dist/cjs/stzh-header_3.cjs.entry.js +5 -5
- package/dist/cjs/stzh-heading.cjs.entry.js +2 -2
- package/dist/cjs/stzh-homepage-search.cjs.entry.js +2 -2
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +4 -4
- package/dist/cjs/stzh-hr.cjs.entry.js +2 -2
- package/dist/cjs/stzh-hspace.cjs.entry.js +3 -3
- package/dist/cjs/stzh-http-error.cjs.entry.js +2 -2
- package/dist/cjs/stzh-iframe.cjs.entry.js +5 -5
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +3 -3
- package/dist/cjs/{stzh-input-description-IeBc75qD.js → stzh-input-description-CSsYU8AB.js} +3 -3
- package/dist/cjs/{stzh-input-description-IeBc75qD.js.map → stzh-input-description-CSsYU8AB.js.map} +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +31 -36
- package/dist/cjs/stzh-invert.cjs.entry.js +2 -2
- package/dist/cjs/stzh-link.cjs.entry.js +3 -3
- package/dist/cjs/stzh-linklist.cjs.entry.js +3 -3
- package/dist/cjs/stzh-list_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-loader.cjs.entry.js +2 -2
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +2 -2
- package/dist/cjs/stzh-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/stzh-message.cjs.entry.js +3 -3
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +2 -2
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +2 -2
- package/dist/cjs/stzh-offline-indicator.cjs.entry.js +2 -2
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagecontent.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +4 -4
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +3 -3
- package/dist/cjs/stzh-panorama.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pi-menu.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pi-quote.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-teaser-layout-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-teaser-layout.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pkzh-qr.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +3 -3
- package/dist/cjs/stzh-print_2.cjs.entry.js +4 -4
- package/dist/cjs/stzh-quote.cjs.entry.js +2 -2
- package/dist/cjs/stzh-rating.cjs.entry.js +37 -9
- package/dist/cjs/stzh-ratio.cjs.entry.js +2 -2
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +4 -4
- package/dist/cjs/stzh-richtext.cjs.entry.js +2 -2
- package/dist/cjs/stzh-saptcha.cjs.entry.js +3 -3
- package/dist/cjs/stzh-scrollup.cjs.entry.js +3 -3
- package/dist/cjs/stzh-search.cjs.entry.js +4 -4
- package/dist/cjs/stzh-section.cjs.entry.js +4 -4
- package/dist/cjs/stzh-show.cjs.entry.js +3 -3
- package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +2 -2
- package/dist/cjs/stzh-skin-storybook-preview.cjs.entry.js +2 -2
- package/dist/cjs/stzh-skiplink.cjs.entry.js +2 -2
- package/dist/cjs/stzh-socialmediastream-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-socialmediastream.cjs.entry.js +3 -3
- package/dist/cjs/stzh-stepper-item.cjs.entry.js +4 -4
- package/dist/cjs/stzh-stepper.cjs.entry.js +4 -4
- package/dist/cjs/stzh-sticky-actions.cjs.entry.js +3 -3
- package/dist/cjs/stzh-sticky.cjs.entry.js +3 -3
- package/dist/cjs/stzh-table.cjs.entry.js +3 -3
- package/dist/cjs/stzh-text.cjs.entry.js +3 -3
- package/dist/cjs/stzh-textandimage.cjs.entry.js +3 -3
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/stzh-timeline.cjs.entry.js +2 -2
- package/dist/cjs/stzh-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/stzh-toast_2.cjs.entry.js +5 -5
- package/dist/cjs/stzh-toggle.cjs.entry.js +36 -7
- package/dist/cjs/stzh-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/stzh-twocolumns.cjs.entry.js +3 -3
- package/dist/cjs/stzh-upload.cjs.entry.js +37 -8
- package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-intro.cjs.entry.js +2 -2
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +3 -3
- package/dist/cjs/stzh-vspace.cjs.entry.js +3 -3
- package/dist/cjs/stzh-youtube.cjs.entry.js +2 -2
- package/dist/cjs/{utils-BtvTjHH2.js → utils-CjJm84Uq.js} +59 -2
- package/dist/cjs/utils-CjJm84Uq.js.map +1 -0
- package/dist/collection/assets/i18n/fr.json +460 -0
- package/dist/collection/assets/i18n/it.json +461 -0
- package/dist/collection/assets/media/icons/mono/easy-read.svg +1 -0
- package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.js +2 -3
- package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.js.map +1 -1
- package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.stories.js +4 -0
- package/dist/collection/components/CMS/stzh-feedreader/stzh-feedreader.js +1 -1
- package/dist/collection/components/CMS/stzh-feedreader-item/stzh-feedreader-item.js +1 -1
- package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.js +3 -3
- package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.js +1 -1
- package/dist/collection/components/CMS/stzh-homepage-search/stzh-homepage-search.js +1 -1
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +2 -2
- package/dist/collection/components/CMS/stzh-linklist/stzh-linklist.js +1 -1
- package/dist/collection/components/CMS/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
- package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.js +1 -1
- package/dist/collection/components/CMS/stzh-pagebottom/stzh-pagebottom.js +1 -1
- package/dist/collection/components/CMS/stzh-pagecontent/stzh-pagecontent.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.stories.js +12 -2
- package/dist/collection/components/CMS/stzh-pagetitle-hero/stzh-pagetitle-hero.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.js +2 -2
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.stories.js +2 -2
- package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.js.map +1 -1
- package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.stories.js +3 -0
- package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.stories.js +5 -6
- package/dist/collection/components/CMS/stzh-pi-quote/stzh-pi-quote.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.js.map +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser-layout-item/stzh-pi-teaser-layout-item.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser-layout-item/stzh-pi-teaser-layout-item.js.map +1 -1
- package/dist/collection/components/CMS/stzh-print/stzh-print.js +1 -1
- package/dist/collection/components/CMS/stzh-search/stzh-search.js +2 -2
- package/dist/collection/components/CMS/stzh-sitemap/stzh-sitemap.js +1 -1
- package/dist/collection/components/CMS/stzh-socialmediastream/stzh-socialmediastream.js +1 -1
- package/dist/collection/components/CMS/stzh-socialmediastream-item/stzh-socialmediastream-item.js +1 -1
- package/dist/collection/components/CMS/stzh-textandimage/stzh-textandimage.js +1 -1
- package/dist/collection/components/CMS/stzh-twocolumns/stzh-twocolumns.js +1 -1
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +1 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
- package/dist/collection/components/stzh-actions/stzh-actions.js +1 -1
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +5 -5
- package/dist/collection/components/stzh-amount/stzh-amount.js +1 -1
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +1 -1
- package/dist/collection/components/stzh-app-nav/stzh-app-nav.js +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +23 -14
- package/dist/collection/components/stzh-appointments/stzh-appointments.js.map +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +53 -27
- package/dist/collection/components/stzh-audio/stzh-audio.js +3 -3
- package/dist/collection/components/stzh-badge/stzh-badge.js +1 -1
- package/dist/collection/components/stzh-banner/stzh-banner.js +1 -1
- package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.js +1 -1
- package/dist/collection/components/stzh-button/stzh-button.js +1 -1
- package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.js +1 -1
- package/dist/collection/components/stzh-card/stzh-card.js +4 -4
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.js +1 -1
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.js.map +1 -1
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js +1 -1
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +10 -42
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.js +1 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -2
- package/dist/collection/components/stzh-cell/stzh-cell.js +2 -2
- package/dist/collection/components/stzh-chart/stzh-chart.js +1 -1
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +40 -4
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js.map +1 -1
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +12 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +3 -3
- package/dist/collection/components/stzh-chip/stzh-chip.js +1 -1
- package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.js +1 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +5 -5
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +2 -2
- package/dist/collection/components/stzh-company-logo/stzh-company-logo.js +1 -1
- package/dist/collection/components/stzh-container/stzh-container.js +1 -1
- package/dist/collection/components/stzh-content/stzh-content.js +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.js +1 -1
- package/dist/collection/components/stzh-cta/stzh-cta.js +1 -1
- package/dist/collection/components/stzh-cta/stzh-cta.js.map +1 -1
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +2 -2
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +1 -1
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +3 -3
- package/dist/collection/components/stzh-daterange/stzh-daterange.js +1 -1
- package/dist/collection/components/stzh-details/stzh-details.js +1 -1
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +2 -2
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +4 -4
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
- package/dist/collection/components/stzh-figure/stzh-figure.js +1 -1
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.css +12 -0
- package/dist/collection/components/stzh-footer/stzh-footer.js +7 -6
- package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +9 -2
- package/dist/collection/components/stzh-gallery/stzh-gallery.js +1 -1
- package/dist/collection/components/stzh-header/stzh-header.css +1 -1
- package/dist/collection/components/stzh-header/stzh-header.js +2 -2
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
- package/dist/collection/components/stzh-hr/stzh-hr.js +1 -1
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +2 -2
- package/dist/collection/components/stzh-http-error/stzh-http-error.js +1 -1
- package/dist/collection/components/stzh-icon/stzh-icon.js +1 -1
- package/dist/collection/components/stzh-iframe/stzh-iframe.js +4 -4
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +2 -2
- package/dist/collection/components/stzh-input/stzh-input.js +29 -34
- package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
- package/dist/collection/components/stzh-input/stzh-input.stories.js +32 -9
- package/dist/collection/components/stzh-invert/stzh-invert.js +1 -1
- package/dist/collection/components/stzh-link/stzh-link.js +1 -1
- package/dist/collection/components/stzh-list/stzh-list.js +1 -1
- package/dist/collection/components/stzh-list-item/stzh-list-item.js +1 -1
- package/dist/collection/components/stzh-loader/stzh-loader.js +1 -1
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +1 -1
- package/dist/collection/components/stzh-menu/stzh-menu.js +1 -1
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +1 -1
- package/dist/collection/components/stzh-message/stzh-message.js +2 -2
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +1 -1
- package/dist/collection/components/stzh-offline-indicator/stzh-offline-indicator.js +1 -1
- package/dist/collection/components/stzh-olmap/stzh-olmap.js +1 -1
- package/dist/collection/components/stzh-overlay/stzh-overlay.js +1 -1
- package/dist/collection/components/stzh-pagination/stzh-pagination.js +1 -1
- package/dist/collection/components/stzh-panorama/stzh-panorama.js +2 -2
- package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
- package/dist/collection/components/stzh-quote/stzh-quote.js +1 -1
- package/dist/collection/components/stzh-radio/stzh-radio.js +40 -4
- package/dist/collection/components/stzh-radio/stzh-radio.js.map +1 -1
- package/dist/collection/components/stzh-radio/stzh-radio.stories.js +13 -1
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +3 -3
- package/dist/collection/components/stzh-rating/stzh-rating.js +39 -9
- package/dist/collection/components/stzh-rating/stzh-rating.js.map +1 -1
- package/dist/collection/components/stzh-rating/stzh-rating.stories.js +11 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.js +1 -1
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +2 -2
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +1 -1
- package/dist/collection/components/stzh-row/stzh-row.js +2 -2
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +2 -2
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.js +1 -1
- package/dist/collection/components/stzh-section/stzh-section.js +2 -2
- package/dist/collection/components/stzh-share/stzh-share.js +1 -1
- package/dist/collection/components/stzh-show/stzh-show.js +2 -2
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.js +1 -1
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +1 -1
- package/dist/collection/components/stzh-space/stzh-space.js +2 -2
- package/dist/collection/components/stzh-status/stzh-status.js +1 -1
- package/dist/collection/components/stzh-stepper/stzh-stepper.component.js +3 -3
- package/dist/collection/components/stzh-stepper-item/stzh-stepper-item.js +3 -3
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +1 -1
- package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.js +1 -1
- package/dist/collection/components/stzh-table/stzh-table.js +1 -1
- package/dist/collection/components/stzh-tag/stzh-tag.js +1 -1
- package/dist/collection/components/stzh-text/stzh-text.js +2 -2
- package/dist/collection/components/stzh-timeline/stzh-timeline.js +1 -1
- package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.js +1 -1
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +1 -1
- package/dist/collection/components/stzh-toast/stzh-toast.js +2 -2
- package/dist/collection/components/stzh-toastbar/stzh-toastbar.js +1 -1
- package/dist/collection/components/stzh-toggle/stzh-toggle.js +40 -5
- package/dist/collection/components/stzh-toggle/stzh-toggle.js.map +1 -1
- package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +15 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.js +37 -6
- package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +9 -0
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +2 -2
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +2 -2
- package/dist/collection/components/stzh-youtube/stzh-youtube.js +1 -1
- package/dist/collection/global/js/script.js +1 -1
- package/dist/collection/utils/utils.js +56 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/{p-cNHNXCvC.js → p-0Lt3woCB.js} +10 -10
- package/dist/components/{p-cNHNXCvC.js.map → p-0Lt3woCB.js.map} +1 -1
- package/dist/components/{p-CHL7PZWx.js → p-4bFqfRjC.js} +5 -5
- package/dist/components/{p-CHL7PZWx.js.map → p-4bFqfRjC.js.map} +1 -1
- package/dist/components/{p-D4BnQdqZ.js → p-9KM31mTj.js} +5 -5
- package/dist/components/{p-D4BnQdqZ.js.map → p-9KM31mTj.js.map} +1 -1
- package/dist/components/{p-jcnUY7bc.js → p-B-Ox_M1g.js} +5 -5
- package/dist/components/{p-jcnUY7bc.js.map → p-B-Ox_M1g.js.map} +1 -1
- package/dist/components/{p-BROnohFy.js → p-B3JVg6wh.js} +7 -7
- package/dist/components/{p-BROnohFy.js.map → p-B3JVg6wh.js.map} +1 -1
- package/dist/components/{p-BJXTTK_V.js → p-B3JgyjD6.js} +5 -5
- package/dist/components/{p-BJXTTK_V.js.map → p-B3JgyjD6.js.map} +1 -1
- package/dist/components/{p-BKIlDLNH.js → p-B446UYGz.js} +4 -4
- package/dist/components/{p-BKIlDLNH.js.map → p-B446UYGz.js.map} +1 -1
- package/dist/components/{p-Cqgkebne.js → p-BAcc6I3E.js} +4 -4
- package/dist/components/{p-Cqgkebne.js.map → p-BAcc6I3E.js.map} +1 -1
- package/dist/components/{p-C_jR89kU.js → p-BAn4Ipj9.js} +8 -8
- package/dist/components/{p-C_jR89kU.js.map → p-BAn4Ipj9.js.map} +1 -1
- package/dist/components/{p-DF6aCFVH.js → p-BDTQkRkl.js} +4 -4
- package/dist/components/{p-DF6aCFVH.js.map → p-BDTQkRkl.js.map} +1 -1
- package/dist/components/{p-BVyHe4zB.js → p-BDyLmXTF.js} +12 -12
- package/dist/components/{p-BVyHe4zB.js.map → p-BDyLmXTF.js.map} +1 -1
- package/dist/components/{p-C7bl96a5.js → p-BE4EipE7.js} +10 -10
- package/dist/components/p-BE4EipE7.js.map +1 -0
- package/dist/components/{p-U00jMEtY.js → p-BHup0e1i.js} +12 -12
- package/dist/components/{p-U00jMEtY.js.map → p-BHup0e1i.js.map} +1 -1
- package/dist/components/{p-Nj7vgfBU.js → p-BJz42pna.js} +9 -9
- package/dist/components/{p-Nj7vgfBU.js.map → p-BJz42pna.js.map} +1 -1
- package/dist/components/{p-Bnxt1olk.js → p-BNb1mC_F.js} +7 -7
- package/dist/components/{p-Bnxt1olk.js.map → p-BNb1mC_F.js.map} +1 -1
- package/dist/components/{p-CXxKSOOe.js → p-BdBBC-64.js} +8 -8
- package/dist/components/{p-CXxKSOOe.js.map → p-BdBBC-64.js.map} +1 -1
- package/dist/components/{p-BNRtW-oE.js → p-Bi0j3C9E.js} +6 -6
- package/dist/components/{p-BNRtW-oE.js.map → p-Bi0j3C9E.js.map} +1 -1
- package/dist/components/{p-BOLjzZGE.js → p-C1Uf6vu2.js} +4 -4
- package/dist/components/{p-BOLjzZGE.js.map → p-C1Uf6vu2.js.map} +1 -1
- package/dist/components/{p-CnS9iJUS.js → p-C5ORTu7L.js} +5 -5
- package/dist/components/{p-CnS9iJUS.js.map → p-C5ORTu7L.js.map} +1 -1
- package/dist/components/{p-D7YAOnX0.js → p-CDOLFG2o.js} +8 -8
- package/dist/components/{p-D7YAOnX0.js.map → p-CDOLFG2o.js.map} +1 -1
- package/dist/components/{p-CqIeGIYq.js → p-CIG3atcV.js} +5 -5
- package/dist/components/{p-CqIeGIYq.js.map → p-CIG3atcV.js.map} +1 -1
- package/dist/components/{p-BmZW5NzL.js → p-CJgyNq5X.js} +44 -12
- package/dist/components/p-CJgyNq5X.js.map +1 -0
- package/dist/components/{p-RvRbhcRQ.js → p-CSdlcHhO.js} +11 -11
- package/dist/components/{p-RvRbhcRQ.js.map → p-CSdlcHhO.js.map} +1 -1
- package/dist/components/{p-BW2gjhHd.js → p-CTF0VXbD.js} +11 -11
- package/dist/components/{p-BW2gjhHd.js.map → p-CTF0VXbD.js.map} +1 -1
- package/dist/components/{p-B3K72yyt.js → p-CWohC9WI.js} +4 -4
- package/dist/components/{p-B3K72yyt.js.map → p-CWohC9WI.js.map} +1 -1
- package/dist/components/{p-x2lzAuxg.js → p-CbIALTef.js} +3 -3
- package/dist/components/{p-x2lzAuxg.js.map → p-CbIALTef.js.map} +1 -1
- package/dist/components/{p-DfpWfXtU.js → p-CfO-Zm5r.js} +10 -10
- package/dist/components/{p-DfpWfXtU.js.map → p-CfO-Zm5r.js.map} +1 -1
- package/dist/components/{p-LMO8z7aY.js → p-Cg2CourL.js} +10 -10
- package/dist/components/{p-LMO8z7aY.js.map → p-Cg2CourL.js.map} +1 -1
- package/dist/components/{p-p0_NS-tW.js → p-CgcoSQbB.js} +4 -4
- package/dist/components/{p-p0_NS-tW.js.map → p-CgcoSQbB.js.map} +1 -1
- package/dist/components/{p-B7_vqC4s.js → p-CrQrHbCR.js} +7 -7
- package/dist/components/{p-B7_vqC4s.js.map → p-CrQrHbCR.js.map} +1 -1
- package/dist/components/{p-D1qHu5Qi.js → p-CxqE2nhG.js} +7 -7
- package/dist/components/{p-D1qHu5Qi.js.map → p-CxqE2nhG.js.map} +1 -1
- package/dist/components/{p-CUg-9OV-.js → p-CyByUFaI.js} +5 -5
- package/dist/components/{p-CUg-9OV-.js.map → p-CyByUFaI.js.map} +1 -1
- package/dist/components/{p-CC0Gv1-E.js → p-D-Yirlnl.js} +4 -4
- package/dist/components/{p-CC0Gv1-E.js.map → p-D-Yirlnl.js.map} +1 -1
- package/dist/components/{p-COE06LBm.js → p-D1f9K1WI.js} +4 -4
- package/dist/components/{p-COE06LBm.js.map → p-D1f9K1WI.js.map} +1 -1
- package/dist/components/{p-AGCnIH-Q.js → p-D653Lsik.js} +4 -4
- package/dist/components/{p-AGCnIH-Q.js.map → p-D653Lsik.js.map} +1 -1
- package/dist/components/{p-DgsPcRuX.js → p-D8P4IANZ.js} +6 -6
- package/dist/components/{p-DgsPcRuX.js.map → p-D8P4IANZ.js.map} +1 -1
- package/dist/components/{p-B1ilR8O2.js → p-D8sqmC0t.js} +5 -5
- package/dist/components/{p-B1ilR8O2.js.map → p-D8sqmC0t.js.map} +1 -1
- package/dist/components/{p-DStLZwaI.js → p-D8xZNR0-.js} +44 -12
- package/dist/components/p-D8xZNR0-.js.map +1 -0
- package/dist/components/{p-CN5apKPb.js → p-DBHUqFOB.js} +59 -3
- package/dist/components/p-DBHUqFOB.js.map +1 -0
- package/dist/components/{p-BdnKcZer.js → p-DI3R5qMv.js} +15 -15
- package/dist/components/{p-BdnKcZer.js.map → p-DI3R5qMv.js.map} +1 -1
- package/dist/components/{p-Chfmq0ty.js → p-DK163sow.js} +4 -4
- package/dist/components/{p-Chfmq0ty.js.map → p-DK163sow.js.map} +1 -1
- package/dist/components/{p-CjzcK4cD.js → p-DYbJOAOh.js} +7 -7
- package/dist/components/{p-CjzcK4cD.js.map → p-DYbJOAOh.js.map} +1 -1
- package/dist/components/{p-IifQDlUC.js → p-D_9Bm_mQ.js} +4 -4
- package/dist/components/{p-IifQDlUC.js.map → p-D_9Bm_mQ.js.map} +1 -1
- package/dist/components/{p-CB6SGGWh.js → p-DgLT1h5X.js} +18 -18
- package/dist/components/{p-CB6SGGWh.js.map → p-DgLT1h5X.js.map} +1 -1
- package/dist/components/{p-a_AFmDN-.js → p-DgdayHzY.js} +17 -17
- package/dist/components/{p-a_AFmDN-.js.map → p-DgdayHzY.js.map} +1 -1
- package/dist/components/{p-G6s0H-yQ.js → p-DhDUHSh7.js} +38 -43
- package/dist/components/p-DhDUHSh7.js.map +1 -0
- package/dist/components/{p-gRw8yRKG.js → p-Div6COxG.js} +5 -5
- package/dist/components/{p-gRw8yRKG.js.map → p-Div6COxG.js.map} +1 -1
- package/dist/components/{p-CLg_b_CM.js → p-DmbPNk49.js} +4 -4
- package/dist/components/{p-CLg_b_CM.js.map → p-DmbPNk49.js.map} +1 -1
- package/dist/components/{p-Yktwo3G-.js → p-Dn7rMHvA.js} +4 -4
- package/dist/components/{p-Yktwo3G-.js.map → p-Dn7rMHvA.js.map} +1 -1
- package/dist/components/{p-uzlslKFU.js → p-DoIM1--x.js} +9 -9
- package/dist/components/{p-uzlslKFU.js.map → p-DoIM1--x.js.map} +1 -1
- package/dist/components/{p-5QD-jnDI.js → p-DqjRJcEM.js} +4 -45
- package/dist/components/p-DqjRJcEM.js.map +1 -0
- package/dist/components/{p-DFNN4tQ9.js → p-DtzaWGPc.js} +7 -7
- package/dist/components/{p-DFNN4tQ9.js.map → p-DtzaWGPc.js.map} +1 -1
- package/dist/components/{p-HFkl_vzF.js → p-Dv3RTDbq.js} +7 -7
- package/dist/components/{p-HFkl_vzF.js.map → p-Dv3RTDbq.js.map} +1 -1
- package/dist/components/{p-ts8WMMWF.js → p-DvCfh0K2.js} +8 -8
- package/dist/components/{p-ts8WMMWF.js.map → p-DvCfh0K2.js.map} +1 -1
- package/dist/components/{p-BQkPv0M-.js → p-T-BXBdfL.js} +5 -5
- package/dist/components/{p-BQkPv0M-.js.map → p-T-BXBdfL.js.map} +1 -1
- package/dist/components/{p-C3JKH-3Y.js → p-TyvIem42.js} +13 -13
- package/dist/components/{p-C3JKH-3Y.js.map → p-TyvIem42.js.map} +1 -1
- package/dist/components/{p-BaMZCxiX.js → p-UdeeIE8s.js} +9 -9
- package/dist/components/{p-BaMZCxiX.js.map → p-UdeeIE8s.js.map} +1 -1
- package/dist/components/{p-hX8escCp.js → p-_Wg6OwyH.js} +5 -5
- package/dist/components/{p-hX8escCp.js.map → p-_Wg6OwyH.js.map} +1 -1
- package/dist/components/{p-Bh1lCPM9.js → p-bQrbIG84.js} +4 -4
- package/dist/components/{p-Bh1lCPM9.js.map → p-bQrbIG84.js.map} +1 -1
- package/dist/components/{p-B4rimZ__.js → p-cUbqjhRn.js} +4 -4
- package/dist/components/{p-B4rimZ__.js.map → p-cUbqjhRn.js.map} +1 -1
- package/dist/components/{p-zn9oE-TU.js → p-d0YyMFGG.js} +5 -5
- package/dist/components/{p-zn9oE-TU.js.map → p-d0YyMFGG.js.map} +1 -1
- package/dist/components/{p-CaNZTZoV.js → p-h04oY9Fw.js} +10 -10
- package/dist/components/{p-CaNZTZoV.js.map → p-h04oY9Fw.js.map} +1 -1
- package/dist/components/{p-CFzhqAe_.js → p-jWC23U_9.js} +7 -7
- package/dist/components/{p-CFzhqAe_.js.map → p-jWC23U_9.js.map} +1 -1
- package/dist/components/{p-DZ_hOgVb.js → p-mPSUVIkD.js} +4 -4
- package/dist/components/{p-DZ_hOgVb.js.map → p-mPSUVIkD.js.map} +1 -1
- package/dist/components/{p-BErZsbTE.js → p-nbFcugVj.js} +5 -5
- package/dist/components/{p-BErZsbTE.js.map → p-nbFcugVj.js.map} +1 -1
- package/dist/components/{p-C9VQ8n2k.js → p-o7Gv1uJo.js} +5 -5
- package/dist/components/{p-C9VQ8n2k.js.map → p-o7Gv1uJo.js.map} +1 -1
- package/dist/components/{p-DX8rme7W.js → p-pfvnaMy-.js} +5 -5
- package/dist/components/{p-DX8rme7W.js.map → p-pfvnaMy-.js.map} +1 -1
- package/dist/components/{p-RtvhBPkV.js → p-r4Fj5D10.js} +5 -5
- package/dist/components/{p-RtvhBPkV.js.map → p-r4Fj5D10.js.map} +1 -1
- package/dist/components/{p-CfeU7ZQ3.js → p-yXgUFUQF.js} +16 -16
- package/dist/components/{p-CfeU7ZQ3.js.map → p-yXgUFUQF.js.map} +1 -1
- package/dist/components/stzh-accordion-item.js +1 -1
- package/dist/components/stzh-accordion.js +1 -1
- package/dist/components/stzh-actions.js +1 -1
- package/dist/components/stzh-actionset.js +1 -1
- package/dist/components/stzh-amount.js +10 -10
- package/dist/components/stzh-anchornav.js +6 -6
- package/dist/components/stzh-app-nav.js +1 -1
- package/dist/components/stzh-appointments.js +33 -23
- package/dist/components/stzh-appointments.js.map +1 -1
- package/dist/components/stzh-archivelist.js +7 -7
- package/dist/components/stzh-audio.js +9 -9
- package/dist/components/stzh-badge.js +1 -1
- package/dist/components/stzh-banner.js +5 -5
- package/dist/components/stzh-breadcrumb.js +1 -1
- package/dist/components/stzh-button.js +1 -1
- package/dist/components/stzh-buttongroup.js +1 -1
- package/dist/components/stzh-calendar.js +1 -1
- package/dist/components/stzh-card-navigation.js +4 -4
- package/dist/components/stzh-card-navigation.js.map +1 -1
- package/dist/components/stzh-card-searchresult.js +16 -16
- package/dist/components/stzh-card-superteaser.js +15 -15
- package/dist/components/stzh-card.js +1 -1
- package/dist/components/stzh-cardlist.js +1 -1
- package/dist/components/stzh-carousel.js +1 -1
- package/dist/components/stzh-cell.js +1 -1
- package/dist/components/stzh-chart.js +2 -2
- package/dist/components/stzh-checkbox.js +1 -1
- package/dist/components/stzh-checkboxgroup.js +9 -9
- package/dist/components/stzh-chip.js +1 -1
- package/dist/components/stzh-chipgroup.js +1 -1
- package/dist/components/stzh-chipselect.js +1 -1
- package/dist/components/stzh-clamp.js +1 -1
- package/dist/components/stzh-company-logo.js +2 -2
- package/dist/components/stzh-contact-cv.js +5 -5
- package/dist/components/stzh-contact.js +11 -11
- package/dist/components/stzh-container.js +1 -1
- package/dist/components/stzh-content.js +2 -2
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cta.js +5 -5
- package/dist/components/stzh-cta.js.map +1 -1
- package/dist/components/stzh-datalist-item.js +1 -1
- package/dist/components/stzh-datalist.js +1 -1
- package/dist/components/stzh-datamessagelist-item.js +12 -12
- package/dist/components/stzh-datamessagelist.js +2 -2
- package/dist/components/stzh-datatable.js +18 -18
- package/dist/components/stzh-datepicker.js +1 -1
- package/dist/components/stzh-daterange.js +6 -6
- package/dist/components/stzh-details.js +1 -1
- package/dist/components/stzh-dialog.js +1 -1
- package/dist/components/stzh-disturber.js +5 -5
- package/dist/components/stzh-dropdown.js +1 -1
- package/dist/components/stzh-editor.js +4 -4
- package/dist/components/stzh-eventdata.js +1 -1
- package/dist/components/stzh-eventinfo.js +8 -9
- package/dist/components/stzh-eventinfo.js.map +1 -1
- package/dist/components/stzh-feedreader-item.js +4 -4
- package/dist/components/stzh-feedreader.js +10 -10
- package/dist/components/stzh-fieldset.js +1 -1
- package/dist/components/stzh-figure.js +1 -1
- package/dist/components/stzh-flyingfocus.js +2 -2
- package/dist/components/stzh-footer.js +10 -9
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-gallery.js +9 -9
- package/dist/components/stzh-geo-ref-data.js +27 -27
- package/dist/components/stzh-ghettobox.js +6 -6
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-heading.js +1 -1
- package/dist/components/stzh-homepage-search.js +3 -3
- package/dist/components/stzh-homepage-service-highlights.js +9 -9
- package/dist/components/stzh-hr.js +2 -2
- package/dist/components/stzh-hspace.js +1 -1
- package/dist/components/stzh-http-error.js +8 -8
- package/dist/components/stzh-icon.js +1 -1
- package/dist/components/stzh-iframe.js +1 -1
- package/dist/components/stzh-imagecomparison.js +4 -4
- package/dist/components/stzh-input.js +1 -1
- package/dist/components/stzh-invert.js +2 -2
- package/dist/components/stzh-link.js +1 -1
- package/dist/components/stzh-linklist.js +12 -12
- package/dist/components/stzh-list-item.js +1 -1
- package/dist/components/stzh-list.js +1 -1
- package/dist/components/stzh-loader.js +1 -1
- package/dist/components/stzh-loadingbar.js +2 -2
- package/dist/components/stzh-menu-item.js +1 -1
- package/dist/components/stzh-menu.js +1 -1
- package/dist/components/stzh-message.js +1 -1
- package/dist/components/stzh-microsite-teaserlist.js +21 -21
- package/dist/components/stzh-monthyearpicker.js +6 -6
- package/dist/components/stzh-offline-indicator.js +7 -7
- package/dist/components/stzh-olmap.js +1 -1
- package/dist/components/stzh-overlay.js +1 -1
- package/dist/components/stzh-page-skiplinks.js +2 -2
- package/dist/components/stzh-pagebottom.js +9 -9
- package/dist/components/stzh-pagecontent.js +3 -3
- package/dist/components/stzh-pagetitle-hero.js +3 -3
- package/dist/components/stzh-pagetitle-home.js +5 -5
- package/dist/components/stzh-pagetitle.js +4 -4
- package/dist/components/stzh-pagination.js +1 -1
- package/dist/components/stzh-panorama.js +13 -13
- package/dist/components/stzh-pi-content-navigation.js +5 -5
- package/dist/components/stzh-pi-content-navigation.js.map +1 -1
- package/dist/components/stzh-pi-menu.js +4 -4
- package/dist/components/stzh-pi-pagetitle.js +4 -4
- package/dist/components/stzh-pi-quote.js +2 -2
- package/dist/components/stzh-pi-teaser-layout-item.js +1 -1
- package/dist/components/stzh-pi-teaser-layout.js +3 -3
- package/dist/components/stzh-pi-teaser.js +4 -4
- package/dist/components/stzh-pi-teaser.js.map +1 -1
- package/dist/components/stzh-pkzh-qr.js +20 -20
- package/dist/components/stzh-popover.js +1 -1
- package/dist/components/stzh-print.js +1 -1
- package/dist/components/stzh-quote.js +2 -2
- package/dist/components/stzh-radio.js +1 -1
- package/dist/components/stzh-radiogroup.js +1 -1
- package/dist/components/stzh-rating.js +42 -12
- package/dist/components/stzh-rating.js.map +1 -1
- package/dist/components/stzh-ratio.js +1 -1
- package/dist/components/stzh-readspeaker.js +7 -7
- package/dist/components/stzh-richtext.js +3 -3
- package/dist/components/stzh-row.js +1 -1
- package/dist/components/stzh-saptcha.js +9 -9
- package/dist/components/stzh-scrollup.js +3 -3
- package/dist/components/stzh-search.js +19 -19
- package/dist/components/stzh-section.js +4 -4
- package/dist/components/stzh-share.js +1 -1
- package/dist/components/stzh-show.js +1 -1
- package/dist/components/stzh-sitemap.js +10 -10
- package/dist/components/stzh-skin-portal-mitwirken.js +2 -2
- package/dist/components/stzh-skin-storybook-preview.js +2 -2
- package/dist/components/stzh-skiplink.js +2 -2
- package/dist/components/stzh-socialmediastream-item.js +1 -1
- package/dist/components/stzh-socialmediastream.js +8 -8
- package/dist/components/stzh-sortable.js +1 -1
- package/dist/components/stzh-space.js +1 -1
- package/dist/components/stzh-status.js +1 -1
- package/dist/components/stzh-stepper-item.js +1 -1
- package/dist/components/stzh-stepper.js +6 -6
- package/dist/components/stzh-sticky-actions.js +4 -4
- package/dist/components/stzh-sticky.js +1 -1
- package/dist/components/stzh-table.js +3 -3
- package/dist/components/stzh-tag.js +1 -1
- package/dist/components/stzh-text.js +1 -1
- package/dist/components/stzh-textandimage.js +3 -3
- package/dist/components/stzh-timeline-item.js +5 -5
- package/dist/components/stzh-timeline.js +2 -2
- package/dist/components/stzh-timepicker.js +6 -6
- package/dist/components/stzh-toast.js +1 -1
- package/dist/components/stzh-toastbar.js +1 -1
- package/dist/components/stzh-toggle.js +42 -11
- package/dist/components/stzh-toggle.js.map +1 -1
- package/dist/components/stzh-tooltip.js +1 -1
- package/dist/components/stzh-twocolumns.js +3 -3
- package/dist/components/stzh-upload.js +50 -19
- package/dist/components/stzh-upload.js.map +1 -1
- package/dist/components/stzh-vbz-carousel.js +2 -2
- package/dist/components/stzh-vbz-connection-finder.js +1 -1
- package/dist/components/stzh-vbz-intro.js +6 -6
- package/dist/components/stzh-vbz-linechip.js +1 -1
- package/dist/components/stzh-vbz-majorticker.js +8 -8
- package/dist/components/stzh-vbz-ticker.js +7 -7
- package/dist/components/stzh-visuallyhidden.js +3 -3
- package/dist/components/stzh-vspace.js +3 -3
- package/dist/components/stzh-youtube.js +7 -7
- package/dist/esm/{index-Qb46gVIp.js → index-Cd_ra_Ay.js} +4 -45
- package/dist/esm/index-Cd_ra_Ay.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/stzh-accordion_3.entry.js +5 -5
- package/dist/esm/stzh-actions_6.entry.js +11 -11
- package/dist/esm/stzh-actionset.entry.js +6 -6
- package/dist/esm/stzh-amount.entry.js +2 -2
- package/dist/esm/stzh-anchornav.entry.js +2 -2
- package/dist/esm/stzh-app-nav.entry.js +2 -2
- package/dist/esm/stzh-appointments.entry.js +21 -11
- package/dist/esm/stzh-appointments.entry.js.map +1 -1
- package/dist/esm/stzh-archivelist.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +5 -5
- package/dist/esm/stzh-badge_3.entry.js +5 -5
- package/dist/esm/stzh-banner.entry.js +2 -2
- package/dist/esm/stzh-breadcrumb_2.entry.js +3 -3
- package/dist/esm/stzh-buttongroup.entry.js +2 -2
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card-navigation.entry.js +3 -3
- package/dist/esm/stzh-card-navigation.entry.js.map +1 -1
- package/dist/esm/stzh-card-searchresult.entry.js +3 -3
- package/dist/esm/stzh-card-superteaser.entry.js +2 -2
- package/dist/esm/stzh-card_2.entry.js +8 -8
- package/dist/esm/stzh-carousel.entry.js +4 -4
- package/dist/esm/stzh-chart.entry.js +2 -2
- package/dist/esm/stzh-checkbox.entry.js +36 -6
- package/dist/esm/stzh-checkbox.entry.js.map +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +6 -6
- package/dist/esm/stzh-chip_2.entry.js +9 -9
- package/dist/esm/stzh-chipgroup.entry.js +2 -2
- package/dist/esm/stzh-clamp.entry.js +3 -3
- package/dist/esm/stzh-company-logo.entry.js +2 -2
- package/dist/esm/stzh-components.js +3 -3
- package/dist/esm/stzh-contact-cv.entry.js +2 -2
- package/dist/esm/stzh-contact.entry.js +2 -2
- package/dist/esm/stzh-container_2.entry.js +3 -3
- package/dist/esm/stzh-content.entry.js +2 -2
- package/dist/esm/stzh-cta.entry.js +3 -3
- package/dist/esm/stzh-cta.entry.js.map +1 -1
- package/dist/esm/stzh-datalist_3.entry.js +5 -5
- package/dist/esm/stzh-datamessagelist-item.entry.js +2 -2
- package/dist/esm/stzh-datamessagelist.entry.js +2 -2
- package/dist/esm/stzh-datatable.entry.js +2 -2
- package/dist/esm/stzh-datepicker_3.entry.js +42 -12
- package/dist/esm/stzh-daterange.entry.js +3 -3
- package/dist/esm/stzh-details.entry.js +3 -3
- package/dist/esm/stzh-dialog.entry.js +4 -4
- package/dist/esm/stzh-disturber.entry.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +7 -7
- package/dist/esm/stzh-editor.entry.js +1 -1
- package/dist/esm/stzh-eventdata.entry.js +1 -1
- package/dist/esm/stzh-eventinfo.entry.js +4 -5
- package/dist/esm/stzh-eventinfo.entry.js.map +1 -1
- package/dist/esm/stzh-feedreader-item.entry.js +3 -3
- package/dist/esm/stzh-feedreader.entry.js +3 -3
- package/dist/esm/stzh-figure.entry.js +3 -3
- package/dist/esm/stzh-flyingfocus.entry.js +2 -2
- package/dist/esm/stzh-footer.entry.js +6 -5
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-gallery.entry.js +2 -2
- package/dist/esm/stzh-geo-ref-data.entry.js +4 -4
- package/dist/esm/stzh-ghettobox.entry.js +3 -3
- package/dist/esm/stzh-header_3.entry.js +5 -5
- package/dist/esm/stzh-heading.entry.js +2 -2
- package/dist/esm/stzh-homepage-search.entry.js +2 -2
- package/dist/esm/stzh-homepage-service-highlights.entry.js +4 -4
- package/dist/esm/stzh-hr.entry.js +2 -2
- package/dist/esm/stzh-hspace.entry.js +3 -3
- package/dist/esm/stzh-http-error.entry.js +2 -2
- package/dist/esm/stzh-iframe.entry.js +5 -5
- package/dist/esm/stzh-imagecomparison.entry.js +3 -3
- package/dist/esm/{stzh-input-description-CkiDnZXP.js → stzh-input-description-BLx_RZxZ.js} +3 -3
- package/dist/esm/{stzh-input-description-CkiDnZXP.js.map → stzh-input-description-BLx_RZxZ.js.map} +1 -1
- package/dist/esm/stzh-input.entry.js +31 -36
- package/dist/esm/stzh-input.entry.js.map +1 -1
- package/dist/esm/stzh-invert.entry.js +2 -2
- package/dist/esm/stzh-link.entry.js +3 -3
- package/dist/esm/stzh-linklist.entry.js +3 -3
- package/dist/esm/stzh-list_2.entry.js +3 -3
- package/dist/esm/stzh-loader.entry.js +2 -2
- package/dist/esm/stzh-loadingbar.entry.js +2 -2
- package/dist/esm/stzh-menu_2.entry.js +4 -4
- package/dist/esm/stzh-message.entry.js +3 -3
- package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
- package/dist/esm/stzh-monthyearpicker.entry.js +2 -2
- package/dist/esm/stzh-offline-indicator.entry.js +2 -2
- package/dist/esm/stzh-page-skiplinks.entry.js +2 -2
- package/dist/esm/stzh-pagebottom.entry.js +2 -2
- package/dist/esm/stzh-pagecontent.entry.js +3 -3
- package/dist/esm/stzh-pagetitle-hero.entry.js +3 -3
- package/dist/esm/stzh-pagetitle-home.entry.js +4 -4
- package/dist/esm/stzh-pagetitle.entry.js +3 -3
- package/dist/esm/stzh-panorama.entry.js +3 -3
- package/dist/esm/stzh-pi-content-navigation.entry.js +3 -3
- package/dist/esm/stzh-pi-content-navigation.entry.js.map +1 -1
- package/dist/esm/stzh-pi-menu.entry.js +2 -2
- package/dist/esm/stzh-pi-pagetitle.entry.js +3 -3
- package/dist/esm/stzh-pi-quote.entry.js +2 -2
- package/dist/esm/stzh-pi-teaser-layout-item.entry.js +2 -2
- package/dist/esm/stzh-pi-teaser-layout-item.entry.js.map +1 -1
- package/dist/esm/stzh-pi-teaser-layout.entry.js +2 -2
- package/dist/esm/stzh-pi-teaser.entry.js +3 -3
- package/dist/esm/stzh-pi-teaser.entry.js.map +1 -1
- package/dist/esm/stzh-pkzh-qr.entry.js +1 -1
- package/dist/esm/stzh-popover.entry.js +3 -3
- package/dist/esm/stzh-print_2.entry.js +4 -4
- package/dist/esm/stzh-quote.entry.js +2 -2
- package/dist/esm/stzh-rating.entry.js +37 -9
- package/dist/esm/stzh-rating.entry.js.map +1 -1
- package/dist/esm/stzh-ratio.entry.js +2 -2
- package/dist/esm/stzh-readspeaker.entry.js +4 -4
- package/dist/esm/stzh-richtext.entry.js +2 -2
- package/dist/esm/stzh-saptcha.entry.js +3 -3
- package/dist/esm/stzh-scrollup.entry.js +3 -3
- package/dist/esm/stzh-search.entry.js +4 -4
- package/dist/esm/stzh-section.entry.js +4 -4
- package/dist/esm/stzh-show.entry.js +3 -3
- package/dist/esm/stzh-sitemap.entry.js +2 -2
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +2 -2
- package/dist/esm/stzh-skin-storybook-preview.entry.js +2 -2
- package/dist/esm/stzh-skiplink.entry.js +2 -2
- package/dist/esm/stzh-socialmediastream-item.entry.js +2 -2
- package/dist/esm/stzh-socialmediastream.entry.js +3 -3
- package/dist/esm/stzh-stepper-item.entry.js +4 -4
- package/dist/esm/stzh-stepper.entry.js +4 -4
- package/dist/esm/stzh-sticky-actions.entry.js +3 -3
- package/dist/esm/stzh-sticky.entry.js +3 -3
- package/dist/esm/stzh-table.entry.js +3 -3
- package/dist/esm/stzh-text.entry.js +3 -3
- package/dist/esm/stzh-textandimage.entry.js +3 -3
- package/dist/esm/stzh-timeline-item.entry.js +3 -3
- package/dist/esm/stzh-timeline.entry.js +2 -2
- package/dist/esm/stzh-timepicker.entry.js +2 -2
- package/dist/esm/stzh-toast_2.entry.js +5 -5
- package/dist/esm/stzh-toggle.entry.js +36 -7
- package/dist/esm/stzh-toggle.entry.js.map +1 -1
- package/dist/esm/stzh-tooltip.entry.js +3 -3
- package/dist/esm/stzh-twocolumns.entry.js +3 -3
- package/dist/esm/stzh-upload.entry.js +37 -8
- package/dist/esm/stzh-upload.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-carousel.entry.js +1 -1
- package/dist/esm/stzh-vbz-connection-finder.entry.js +1 -1
- package/dist/esm/stzh-vbz-intro.entry.js +2 -2
- package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm/stzh-visuallyhidden.entry.js +3 -3
- package/dist/esm/stzh-vspace.entry.js +3 -3
- package/dist/esm/stzh-youtube.entry.js +2 -2
- package/dist/esm/{utils-BnOofzDv.js → utils-CnvjJ2wY.js} +59 -3
- package/dist/esm/utils-CnvjJ2wY.js.map +1 -0
- package/dist/stzh-components/assets/i18n/fr.json +460 -0
- package/dist/stzh-components/assets/i18n/it.json +461 -0
- package/dist/stzh-components/assets/media/icons/mono/easy-read.svg +1 -0
- package/dist/stzh-components/{p-bae8c063.entry.js → p-01df3db2.entry.js} +2 -2
- package/dist/stzh-components/{p-ff03f780.entry.js → p-079dcc0c.entry.js} +3 -3
- package/dist/stzh-components/{p-93afea50.entry.js → p-07a3f13b.entry.js} +2 -2
- package/dist/stzh-components/{p-7f6e2c50.entry.js → p-07f01850.entry.js} +2 -2
- package/dist/stzh-components/{p-64b3d4c2.entry.js → p-094f446c.entry.js} +2 -2
- package/dist/stzh-components/{p-4640481a.entry.js → p-0b78dd4f.entry.js} +2 -2
- package/dist/stzh-components/{p-32a41205.entry.js → p-0c981d74.entry.js} +2 -2
- package/dist/stzh-components/{p-a41ed36a.entry.js → p-10f8a411.entry.js} +2 -2
- package/dist/stzh-components/{p-c5157043.entry.js → p-1509f376.entry.js} +2 -2
- package/dist/stzh-components/p-1517a33d.entry.js +2 -0
- package/dist/stzh-components/p-1517a33d.entry.js.map +1 -0
- package/dist/stzh-components/{p-d80119b5.entry.js → p-157b43ee.entry.js} +2 -2
- package/dist/stzh-components/{p-d7470d02.entry.js → p-163e7402.entry.js} +2 -2
- package/dist/stzh-components/{p-6ecf3d10.entry.js → p-175bb0f6.entry.js} +2 -2
- package/dist/stzh-components/{p-b4d3dd64.entry.js → p-19128327.entry.js} +2 -2
- package/dist/stzh-components/{p-42e5eb19.entry.js → p-191ee433.entry.js} +2 -2
- package/dist/stzh-components/{p-3edfb735.entry.js → p-1c93511c.entry.js} +2 -2
- package/dist/stzh-components/{p-a711447d.entry.js → p-1e2fdef2.entry.js} +2 -2
- package/dist/stzh-components/p-1e2fdef2.entry.js.map +1 -0
- package/dist/stzh-components/{p-ed8062c2.entry.js → p-202d72b1.entry.js} +2 -2
- package/dist/stzh-components/{p-80503011.entry.js → p-209f26fb.entry.js} +2 -2
- package/dist/stzh-components/p-20bfbc6f.entry.js +2 -0
- package/dist/stzh-components/p-20bfbc6f.entry.js.map +1 -0
- package/dist/stzh-components/{p-6ca9c23c.entry.js → p-2609419a.entry.js} +2 -2
- package/dist/stzh-components/{p-414a3145.entry.js → p-28a1dfb8.entry.js} +2 -2
- package/dist/stzh-components/{p-7635b6f5.entry.js → p-29bce2da.entry.js} +2 -2
- package/dist/stzh-components/{p-aee4a2ae.entry.js → p-2c2ee11d.entry.js} +2 -2
- package/dist/stzh-components/{p-14d86c1d.entry.js → p-2c4b646b.entry.js} +2 -2
- package/dist/stzh-components/{p-055e9962.entry.js → p-2cafe02c.entry.js} +2 -2
- package/dist/stzh-components/{p-7960db96.entry.js → p-31ddeb59.entry.js} +2 -2
- package/dist/stzh-components/{p-a96614ae.entry.js → p-37ab4757.entry.js} +2 -2
- package/dist/stzh-components/{p-e95ee8a4.entry.js → p-3deebf76.entry.js} +2 -2
- package/dist/stzh-components/p-3e949281.entry.js +2 -0
- package/dist/stzh-components/{p-a1e07163.entry.js.map → p-3e949281.entry.js.map} +1 -1
- package/dist/stzh-components/{p-745161ef.entry.js → p-4306b004.entry.js} +2 -2
- package/dist/stzh-components/{p-9f3bbad2.entry.js → p-441a69c8.entry.js} +2 -2
- package/dist/stzh-components/{p-e8e9ceff.entry.js → p-47a3a92f.entry.js} +2 -2
- package/dist/stzh-components/{p-ced452d5.entry.js → p-49dbf5af.entry.js} +2 -2
- package/dist/stzh-components/{p-90807e9e.entry.js → p-4cc94ab2.entry.js} +2 -2
- package/dist/stzh-components/{p-af59c189.entry.js → p-4cf4a477.entry.js} +2 -2
- package/dist/stzh-components/{p-a29de908.entry.js → p-4df5aaec.entry.js} +2 -2
- package/dist/stzh-components/{p-d7ce73a1.entry.js → p-5075d2b8.entry.js} +2 -2
- package/dist/stzh-components/p-5ab62d5a.entry.js +2 -0
- package/dist/stzh-components/{p-d94cc86b.entry.js.map → p-5ab62d5a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-326b55a2.entry.js → p-608b3614.entry.js} +2 -2
- package/dist/stzh-components/{p-216a9cc6.entry.js → p-615bce0c.entry.js} +2 -2
- package/dist/stzh-components/{p-4eefbac4.entry.js → p-62b7f84a.entry.js} +2 -2
- package/dist/stzh-components/{p-43882380.entry.js → p-64f49126.entry.js} +2 -2
- package/dist/stzh-components/{p-2c30f74d.entry.js → p-65d16d3d.entry.js} +2 -2
- package/dist/stzh-components/{p-2c30f74d.entry.js.map → p-65d16d3d.entry.js.map} +1 -1
- package/dist/stzh-components/{p-e947cbc0.entry.js → p-66871ca6.entry.js} +3 -3
- package/dist/stzh-components/{p-a6209841.entry.js → p-6837f9f3.entry.js} +2 -2
- package/dist/stzh-components/{p-70b8ed74.entry.js → p-687aec65.entry.js} +2 -2
- package/dist/stzh-components/{p-edffd239.entry.js → p-68902793.entry.js} +2 -2
- package/dist/stzh-components/{p-edffd239.entry.js.map → p-68902793.entry.js.map} +1 -1
- package/dist/stzh-components/{p-390766ab.entry.js → p-6b9cd9d7.entry.js} +3 -3
- package/dist/stzh-components/{p-37aae8ac.entry.js → p-6c03fa87.entry.js} +3 -3
- package/dist/stzh-components/{p-7fc9372f.entry.js → p-6d317f61.entry.js} +2 -2
- package/dist/stzh-components/{p-e5675129.entry.js → p-6d5286d5.entry.js} +2 -2
- package/dist/stzh-components/{p-ac647202.entry.js → p-6fb9484b.entry.js} +2 -2
- package/dist/stzh-components/p-70dfa010.entry.js +2 -0
- package/dist/stzh-components/p-70dfa010.entry.js.map +1 -0
- package/dist/stzh-components/{p-c52c1aef.entry.js → p-72f80196.entry.js} +2 -2
- package/dist/stzh-components/{p-f51d4bbe.entry.js → p-7365c477.entry.js} +2 -2
- package/dist/stzh-components/{p-d9d0a469.entry.js → p-75291180.entry.js} +2 -2
- package/dist/stzh-components/{p-19cc2896.entry.js → p-761c5948.entry.js} +2 -2
- package/dist/stzh-components/{p-23cdc8a4.entry.js → p-7b65832f.entry.js} +2 -2
- package/dist/stzh-components/{p-86ffdc58.entry.js → p-7e6e6547.entry.js} +2 -2
- package/dist/stzh-components/{p-86ffdc58.entry.js.map → p-7e6e6547.entry.js.map} +1 -1
- package/dist/stzh-components/p-7ee51188.entry.js +2 -0
- package/dist/stzh-components/{p-dc72b0de.entry.js.map → p-7ee51188.entry.js.map} +1 -1
- package/dist/stzh-components/{p-3084c3a5.entry.js → p-7fe9b54c.entry.js} +2 -2
- package/dist/stzh-components/{p-6cd6392a.entry.js → p-8094cf86.entry.js} +2 -2
- package/dist/stzh-components/{p-2d09b8b3.entry.js → p-80fc31a3.entry.js} +2 -2
- package/dist/stzh-components/{p-1341927f.entry.js → p-8a37f308.entry.js} +2 -2
- package/dist/stzh-components/{p-10c5d519.entry.js → p-8afec643.entry.js} +2 -2
- package/dist/stzh-components/{p-61d59943.entry.js → p-8b17a4ea.entry.js} +2 -2
- package/dist/stzh-components/{p-cbef543b.entry.js → p-8c229068.entry.js} +2 -2
- package/dist/stzh-components/{p-1bb272ca.entry.js → p-8e0e50c7.entry.js} +2 -2
- package/dist/stzh-components/{p-cf40ac5b.entry.js → p-8f960061.entry.js} +2 -2
- package/dist/stzh-components/{p-2940951b.entry.js → p-9116a045.entry.js} +2 -2
- package/dist/stzh-components/{p-2940951b.entry.js.map → p-9116a045.entry.js.map} +1 -1
- package/dist/stzh-components/{p-234bf6bf.entry.js → p-91293013.entry.js} +2 -2
- package/dist/stzh-components/{p-96c7ceb0.entry.js → p-9401dae4.entry.js} +2 -2
- package/dist/stzh-components/{p-923deb7b.entry.js → p-973d5106.entry.js} +2 -2
- package/dist/stzh-components/{p-6c517443.entry.js → p-9a13a429.entry.js} +2 -2
- package/dist/stzh-components/{p-1b92110f.entry.js → p-9b3646d1.entry.js} +2 -2
- package/dist/stzh-components/{p-bd256924.entry.js → p-9fa5627e.entry.js} +2 -2
- package/dist/stzh-components/p-Cd_ra_Ay.js +3 -0
- package/dist/stzh-components/p-Cd_ra_Ay.js.map +1 -0
- package/dist/stzh-components/{p-Be8ir2AL.js → p-Cmnnu8LG.js} +2 -2
- package/dist/stzh-components/{p-Be8ir2AL.js.map → p-Cmnnu8LG.js.map} +1 -1
- package/dist/stzh-components/p-DhuTERdU.js +2 -0
- package/dist/stzh-components/p-DhuTERdU.js.map +1 -0
- package/dist/stzh-components/p-a12a9a69.entry.js +2 -0
- package/dist/stzh-components/{p-0ed4cd7e.entry.js.map → p-a12a9a69.entry.js.map} +1 -1
- package/dist/stzh-components/{p-99b23557.entry.js → p-a344c074.entry.js} +2 -2
- package/dist/stzh-components/p-a4af5ab1.entry.js +2 -0
- package/dist/stzh-components/p-a4af5ab1.entry.js.map +1 -0
- package/dist/stzh-components/{p-dfb3d918.entry.js → p-a5d371f1.entry.js} +2 -2
- package/dist/stzh-components/{p-0dd74312.entry.js → p-a955037d.entry.js} +2 -2
- package/dist/stzh-components/{p-42707a5b.entry.js → p-ab49825b.entry.js} +2 -2
- package/dist/stzh-components/{p-94f25b97.entry.js → p-abd035af.entry.js} +2 -2
- package/dist/stzh-components/{p-e8b7bf12.entry.js → p-b1c3a46e.entry.js} +2 -2
- package/dist/stzh-components/{p-09f28398.entry.js → p-b282776f.entry.js} +2 -2
- package/dist/stzh-components/{p-1021e488.entry.js → p-b29db204.entry.js} +2 -2
- package/dist/stzh-components/p-b3376d98.entry.js +2 -0
- package/dist/stzh-components/p-b3376d98.entry.js.map +1 -0
- package/dist/stzh-components/{p-d2acf05b.entry.js → p-b5e6915e.entry.js} +2 -2
- package/dist/stzh-components/{p-7a726c47.entry.js → p-b79a3cf6.entry.js} +2 -2
- package/dist/stzh-components/{p-0cd89ab9.entry.js → p-b93a3119.entry.js} +2 -2
- package/dist/stzh-components/{p-0cf712e6.entry.js → p-b95d6d7e.entry.js} +2 -2
- package/dist/stzh-components/{p-b7b21a8c.entry.js → p-b96726cd.entry.js} +2 -2
- package/dist/stzh-components/{p-60c3106c.entry.js → p-bbf9c297.entry.js} +2 -2
- package/dist/stzh-components/{p-71291933.entry.js → p-be131bb0.entry.js} +2 -2
- package/dist/stzh-components/{p-bc3af3b4.entry.js → p-c0ca3937.entry.js} +2 -2
- package/dist/stzh-components/{p-d434e9ef.entry.js → p-c2b979f4.entry.js} +2 -2
- package/dist/stzh-components/{p-a85ed304.entry.js → p-ca122373.entry.js} +2 -2
- package/dist/stzh-components/{p-20735c80.entry.js → p-ca3018d9.entry.js} +2 -2
- package/dist/stzh-components/p-cabbf05e.entry.js +2 -0
- package/dist/stzh-components/{p-e236ee82.entry.js.map → p-cabbf05e.entry.js.map} +1 -1
- package/dist/stzh-components/{p-73a79275.entry.js → p-cada8a35.entry.js} +2 -2
- package/dist/stzh-components/{p-033c3b6b.entry.js → p-cc8ee9b0.entry.js} +2 -2
- package/dist/stzh-components/{p-647a80da.entry.js → p-cd7b961a.entry.js} +2 -2
- package/dist/stzh-components/{p-e7e813f8.entry.js → p-ced6cf29.entry.js} +2 -2
- package/dist/stzh-components/{p-c297a620.entry.js → p-cf9f8810.entry.js} +2 -2
- package/dist/stzh-components/{p-d7668a3b.entry.js → p-d0a705e4.entry.js} +2 -2
- package/dist/stzh-components/{p-83a059a0.entry.js → p-d5811a44.entry.js} +2 -2
- package/dist/stzh-components/{p-5204cd86.entry.js → p-d681d6e4.entry.js} +2 -2
- package/dist/stzh-components/{p-4b928978.entry.js → p-d86f3f58.entry.js} +2 -2
- package/dist/stzh-components/{p-af4ea4bc.entry.js → p-dbd9d4dc.entry.js} +5 -5
- package/dist/stzh-components/{p-51d869eb.entry.js → p-dd861fbd.entry.js} +2 -2
- package/dist/stzh-components/{p-ef8e4a95.entry.js → p-df4d32b9.entry.js} +2 -2
- package/dist/stzh-components/{p-2baa284a.entry.js → p-e0df6f5e.entry.js} +2 -2
- package/dist/stzh-components/{p-fb25534f.entry.js → p-e1f17ba4.entry.js} +2 -2
- package/dist/stzh-components/{p-fb25534f.entry.js.map → p-e1f17ba4.entry.js.map} +1 -1
- package/dist/stzh-components/{p-ecd3be50.entry.js → p-e4713769.entry.js} +2 -2
- package/dist/stzh-components/p-e542834b.entry.js +2 -0
- package/dist/stzh-components/p-e542834b.entry.js.map +1 -0
- package/dist/stzh-components/{p-0795bbcd.entry.js → p-e682f2ac.entry.js} +2 -2
- package/dist/stzh-components/{p-b47d51d7.entry.js → p-e7dc4502.entry.js} +2 -2
- package/dist/stzh-components/{p-b8f44c79.entry.js → p-e7fd376c.entry.js} +7 -7
- package/dist/stzh-components/p-e9c52ffb.entry.js +2 -0
- package/dist/stzh-components/p-e9c52ffb.entry.js.map +1 -0
- package/dist/stzh-components/{p-02cb3aae.entry.js → p-ea5e7024.entry.js} +2 -2
- package/dist/stzh-components/{p-7aca0e23.entry.js → p-edf81efe.entry.js} +2 -2
- package/dist/stzh-components/{p-0134136f.entry.js → p-ef1dac1c.entry.js} +2 -2
- package/dist/stzh-components/{p-a7bed4b7.entry.js → p-f0494df6.entry.js} +2 -2
- package/dist/stzh-components/p-f3e31d46.entry.js +2 -0
- package/dist/stzh-components/{p-58882212.entry.js.map → p-f3e31d46.entry.js.map} +1 -1
- package/dist/stzh-components/{p-e19b6d8c.entry.js → p-f57e38fd.entry.js} +2 -2
- package/dist/stzh-components/{p-62ffe60a.entry.js → p-f5be3b98.entry.js} +2 -2
- package/dist/stzh-components/{p-ec817cb2.entry.js → p-f6abd4ab.entry.js} +2 -2
- package/dist/stzh-components/{p-61c9ed2d.entry.js → p-f8f7101d.entry.js} +2 -2
- package/dist/stzh-components/{p-42628b3a.entry.js → p-ff9946f2.entry.js} +2 -2
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +7 -1
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +18 -0
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +2 -2
- package/dist/types/components/stzh-header/stzh-header.d.ts +1 -1
- package/dist/types/components/stzh-input/stzh-input.d.ts +15 -4
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +18 -0
- package/dist/types/components/stzh-rating/stzh-rating.d.ts +18 -0
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +18 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +18 -0
- package/dist/types/components.d.ts +12 -12
- package/dist/types/utils/utils.d.ts +13 -0
- package/dist/vscode-data.json +6 -3
- package/package.json +1 -1
- package/dist/cjs/index-Cj3dPOnE.js.map +0 -1
- package/dist/cjs/utils-BtvTjHH2.js.map +0 -1
- package/dist/components/p-5QD-jnDI.js.map +0 -1
- package/dist/components/p-BmZW5NzL.js.map +0 -1
- package/dist/components/p-C7bl96a5.js.map +0 -1
- package/dist/components/p-CN5apKPb.js.map +0 -1
- package/dist/components/p-DStLZwaI.js.map +0 -1
- package/dist/components/p-G6s0H-yQ.js.map +0 -1
- package/dist/esm/index-Qb46gVIp.js.map +0 -1
- package/dist/esm/utils-BnOofzDv.js.map +0 -1
- package/dist/stzh-components/p--MYN2wgX.js +0 -2
- package/dist/stzh-components/p--MYN2wgX.js.map +0 -1
- package/dist/stzh-components/p-0ed4cd7e.entry.js +0 -2
- package/dist/stzh-components/p-18237cd2.entry.js +0 -2
- package/dist/stzh-components/p-18237cd2.entry.js.map +0 -1
- package/dist/stzh-components/p-58882212.entry.js +0 -2
- package/dist/stzh-components/p-5f86ac2c.entry.js +0 -2
- package/dist/stzh-components/p-5f86ac2c.entry.js.map +0 -1
- package/dist/stzh-components/p-61aa75b0.entry.js +0 -2
- package/dist/stzh-components/p-61aa75b0.entry.js.map +0 -1
- package/dist/stzh-components/p-6a798b0a.entry.js +0 -2
- package/dist/stzh-components/p-6a798b0a.entry.js.map +0 -1
- package/dist/stzh-components/p-Qb46gVIp.js +0 -3
- package/dist/stzh-components/p-Qb46gVIp.js.map +0 -1
- package/dist/stzh-components/p-a1e07163.entry.js +0 -2
- package/dist/stzh-components/p-a711447d.entry.js.map +0 -1
- package/dist/stzh-components/p-b6d762b2.entry.js +0 -2
- package/dist/stzh-components/p-b6d762b2.entry.js.map +0 -1
- package/dist/stzh-components/p-d21526d5.entry.js +0 -2
- package/dist/stzh-components/p-d21526d5.entry.js.map +0 -1
- package/dist/stzh-components/p-d94cc86b.entry.js +0 -2
- package/dist/stzh-components/p-dc72b0de.entry.js +0 -2
- package/dist/stzh-components/p-e236ee82.entry.js +0 -2
- package/dist/stzh-components/p-facf3e9e.entry.js +0 -2
- package/dist/stzh-components/p-facf3e9e.entry.js.map +0 -1
- /package/dist/stzh-components/{p-bae8c063.entry.js.map → p-01df3db2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ff03f780.entry.js.map → p-079dcc0c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-93afea50.entry.js.map → p-07a3f13b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7f6e2c50.entry.js.map → p-07f01850.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-64b3d4c2.entry.js.map → p-094f446c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4640481a.entry.js.map → p-0b78dd4f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-32a41205.entry.js.map → p-0c981d74.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a41ed36a.entry.js.map → p-10f8a411.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c5157043.entry.js.map → p-1509f376.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d80119b5.entry.js.map → p-157b43ee.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d7470d02.entry.js.map → p-163e7402.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6ecf3d10.entry.js.map → p-175bb0f6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b4d3dd64.entry.js.map → p-19128327.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-42e5eb19.entry.js.map → p-191ee433.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3edfb735.entry.js.map → p-1c93511c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ed8062c2.entry.js.map → p-202d72b1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-80503011.entry.js.map → p-209f26fb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6ca9c23c.entry.js.map → p-2609419a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-414a3145.entry.js.map → p-28a1dfb8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7635b6f5.entry.js.map → p-29bce2da.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aee4a2ae.entry.js.map → p-2c2ee11d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-14d86c1d.entry.js.map → p-2c4b646b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-055e9962.entry.js.map → p-2cafe02c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7960db96.entry.js.map → p-31ddeb59.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a96614ae.entry.js.map → p-37ab4757.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e95ee8a4.entry.js.map → p-3deebf76.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-745161ef.entry.js.map → p-4306b004.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9f3bbad2.entry.js.map → p-441a69c8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e8e9ceff.entry.js.map → p-47a3a92f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ced452d5.entry.js.map → p-49dbf5af.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-90807e9e.entry.js.map → p-4cc94ab2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-af59c189.entry.js.map → p-4cf4a477.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a29de908.entry.js.map → p-4df5aaec.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d7ce73a1.entry.js.map → p-5075d2b8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-326b55a2.entry.js.map → p-608b3614.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-216a9cc6.entry.js.map → p-615bce0c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4eefbac4.entry.js.map → p-62b7f84a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-43882380.entry.js.map → p-64f49126.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e947cbc0.entry.js.map → p-66871ca6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a6209841.entry.js.map → p-6837f9f3.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-70b8ed74.entry.js.map → p-687aec65.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-390766ab.entry.js.map → p-6b9cd9d7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-37aae8ac.entry.js.map → p-6c03fa87.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7fc9372f.entry.js.map → p-6d317f61.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e5675129.entry.js.map → p-6d5286d5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ac647202.entry.js.map → p-6fb9484b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c52c1aef.entry.js.map → p-72f80196.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f51d4bbe.entry.js.map → p-7365c477.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d9d0a469.entry.js.map → p-75291180.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-19cc2896.entry.js.map → p-761c5948.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-23cdc8a4.entry.js.map → p-7b65832f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3084c3a5.entry.js.map → p-7fe9b54c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6cd6392a.entry.js.map → p-8094cf86.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2d09b8b3.entry.js.map → p-80fc31a3.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1341927f.entry.js.map → p-8a37f308.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-10c5d519.entry.js.map → p-8afec643.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-61d59943.entry.js.map → p-8b17a4ea.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cbef543b.entry.js.map → p-8c229068.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1bb272ca.entry.js.map → p-8e0e50c7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cf40ac5b.entry.js.map → p-8f960061.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-234bf6bf.entry.js.map → p-91293013.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-96c7ceb0.entry.js.map → p-9401dae4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-923deb7b.entry.js.map → p-973d5106.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6c517443.entry.js.map → p-9a13a429.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1b92110f.entry.js.map → p-9b3646d1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bd256924.entry.js.map → p-9fa5627e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-99b23557.entry.js.map → p-a344c074.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dfb3d918.entry.js.map → p-a5d371f1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0dd74312.entry.js.map → p-a955037d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-42707a5b.entry.js.map → p-ab49825b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-94f25b97.entry.js.map → p-abd035af.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e8b7bf12.entry.js.map → p-b1c3a46e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-09f28398.entry.js.map → p-b282776f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1021e488.entry.js.map → p-b29db204.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d2acf05b.entry.js.map → p-b5e6915e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7a726c47.entry.js.map → p-b79a3cf6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0cd89ab9.entry.js.map → p-b93a3119.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0cf712e6.entry.js.map → p-b95d6d7e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b7b21a8c.entry.js.map → p-b96726cd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-60c3106c.entry.js.map → p-bbf9c297.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-71291933.entry.js.map → p-be131bb0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bc3af3b4.entry.js.map → p-c0ca3937.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d434e9ef.entry.js.map → p-c2b979f4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a85ed304.entry.js.map → p-ca122373.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-20735c80.entry.js.map → p-ca3018d9.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-73a79275.entry.js.map → p-cada8a35.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-033c3b6b.entry.js.map → p-cc8ee9b0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-647a80da.entry.js.map → p-cd7b961a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e7e813f8.entry.js.map → p-ced6cf29.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c297a620.entry.js.map → p-cf9f8810.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d7668a3b.entry.js.map → p-d0a705e4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-83a059a0.entry.js.map → p-d5811a44.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5204cd86.entry.js.map → p-d681d6e4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4b928978.entry.js.map → p-d86f3f58.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-af4ea4bc.entry.js.map → p-dbd9d4dc.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-51d869eb.entry.js.map → p-dd861fbd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ef8e4a95.entry.js.map → p-df4d32b9.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2baa284a.entry.js.map → p-e0df6f5e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ecd3be50.entry.js.map → p-e4713769.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0795bbcd.entry.js.map → p-e682f2ac.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b47d51d7.entry.js.map → p-e7dc4502.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b8f44c79.entry.js.map → p-e7fd376c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-02cb3aae.entry.js.map → p-ea5e7024.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7aca0e23.entry.js.map → p-edf81efe.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0134136f.entry.js.map → p-ef1dac1c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a7bed4b7.entry.js.map → p-f0494df6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e19b6d8c.entry.js.map → p-f57e38fd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-62ffe60a.entry.js.map → p-f5be3b98.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ec817cb2.entry.js.map → p-f6abd4ab.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-61c9ed2d.entry.js.map → p-f8f7101d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-42628b3a.entry.js.map → p-ff9946f2.entry.js.map} +0 -0
|
@@ -20,11 +20,11 @@ export class StzhVspace {
|
|
|
20
20
|
this.border = "none";
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '7dd1b9fd99644fa2d6f5bb658215acf028d200f2' }, h("div", { key: '68e161186c833ddb48c4abfdd909c52fb6688f68', class: {
|
|
24
24
|
"stzh-vspace": true,
|
|
25
25
|
[`stzh-vspace--justify-${this.justify}`]: !!this.justify,
|
|
26
26
|
[`stzh-vspace--items-${this.items}`]: !!this.items,
|
|
27
|
-
} }, h("slot", { key: '
|
|
27
|
+
} }, h("slot", { key: '6fdf7ca2831cdaaf378991b0690deec24a6add4b' }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "stzh-vspace"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class StzhYoutube {
|
|
|
49
49
|
"&enablejsapi=1" +
|
|
50
50
|
"&widgetid=1" +
|
|
51
51
|
(this.previewSkipped ? "" : "&autoplay=1");
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '8e1e5977dbb6292057c0a07b92dde63765110dd9' }, h("div", { key: '9309926985976410e85fc5af94ae0755a6d75367', class: classes }, h("stzh-ratio", { key: 'c9440131bb4d8a1bdc598afe8207c17318f2a17f' }, h("stzh-iframe", { key: '9a5e68365c38b103e5a49856e223d58af18e76eb', src: url, previewLabel: this.localization.previewLabel, previewIcon: "play", cookie: this.cookie, cookieConfirmLabel: this.localization.confirmLabel, cookieConfirmIcon: "play", cookieExpires: this.cookieExpires, skipPreview: this.skipPreview, skipPreviewIfCookieAccepted: this.skipPreviewIfCookieAccepted, onStzhPreviewSkip: this.handlePreviewSkipped }, h("slot", { key: '97de3b280a6e7a9f8bb442ba9a65d15e55488b1e', name: "preview-logo", slot: "preview-logo" }), h("slot", { key: '956d6d915400c2f926f8d7542e40728a6ea178f1', name: "preview-image", slot: "preview-image" }), h("div", { key: '2baf475009d8bed3325084ffc83332a4d159bcfe', slot: "cookiewall-text", innerHTML: this.localization.confirmText }))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "stzh-youtube"; }
|
|
55
55
|
static get encapsulation() { return "scoped"; }
|
|
@@ -155,4 +155,60 @@ export function getTheme() {
|
|
|
155
155
|
const htmlElement = document.documentElement;
|
|
156
156
|
return Array.from(htmlElement.classList).find((className) => className.startsWith("stzh-theme-"));
|
|
157
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* Checks whether a host element has meaningful default-slot content.
|
|
160
|
+
*
|
|
161
|
+
* This detects:
|
|
162
|
+
* - normal default-slot content
|
|
163
|
+
* - non-empty text nodes
|
|
164
|
+
* - Stencil scoped-slot fallback / relocated nodes
|
|
165
|
+
*
|
|
166
|
+
* This ignores:
|
|
167
|
+
* - named-slot content, meaning elements with a `slot` attribute
|
|
168
|
+
* - elements with one of the provided ignored class names
|
|
169
|
+
*/
|
|
170
|
+
export function hasDefaultSlotContent(host, ignoredClassNames = []) {
|
|
171
|
+
if (hasSlot(host)) {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
return Array.from(host.childNodes).some(node => {
|
|
175
|
+
const slotNode = getStencilRelocatedNode(node);
|
|
176
|
+
if (isNonEmptyTextNode(slotNode)) {
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
if (isDefaultSlotElement(slotNode, ignoredClassNames)) {
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
return false;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Returns the original Stencil-relocated node if available.
|
|
187
|
+
*
|
|
188
|
+
* Stencil may attach an internal `s-nr` property to nodes when handling
|
|
189
|
+
* scoped slots or slot fallback content. In that case, the useful content
|
|
190
|
+
* information may be on the relocated node instead of the wrapper node.
|
|
191
|
+
*/
|
|
192
|
+
function getStencilRelocatedNode(node) {
|
|
193
|
+
var _a;
|
|
194
|
+
return (_a = node['s-nr']) !== null && _a !== void 0 ? _a : node;
|
|
195
|
+
}
|
|
196
|
+
/** Checks whether the given node is a text node with visible content. */
|
|
197
|
+
function isNonEmptyTextNode(node) {
|
|
198
|
+
var _a;
|
|
199
|
+
return node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) !== null && _a !== void 0 ? _a : '').trim() !== '';
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Checks whether the given node is an element belonging to the default slot.
|
|
203
|
+
* Elements with a `slot` attribute belong to a named slot and are therefore
|
|
204
|
+
* not considered default-slot content.
|
|
205
|
+
*/
|
|
206
|
+
function isDefaultSlotElement(node, ignoredClassNames) {
|
|
207
|
+
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
const element = node;
|
|
211
|
+
return (!element.hasAttribute('slot') &&
|
|
212
|
+
!ignoredClassNames.some(className => element.classList.contains(className)));
|
|
213
|
+
}
|
|
158
214
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,mHAAmH;AACnH,uHAAuH;AACvH,MAAM,UAAU,OAAO,CAAC,EAAe,EAAE,IAAa;IACpD,wBAAwB;IACxB,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC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IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,KAAI,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,CAAC,GAAG,CAAC,CAAA,EAAE,CAAC;gBACxE,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;gBAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC1D,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAChC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,2BAA2B,CAAC,OAAO;IACjD,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,QAAQ;IACtB,MAAM,WAAW,GAAG,QAAQ,CAAC,eAAe,CAAC;IAC7C,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAC1D,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CACpC,CAAC;AACJ,CAAC","sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`,\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n\n switch (true) {\n // DEV\n case url.includes(\"localhost\"):\n case url.includes(\"test.stadt-zuerich.loc\"):\n case /\\.dev\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.DEV;\n\n // UAT\n case url.includes(\"integ.stadt-zuerich.ch\"):\n case /\\.uat\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.UAT;\n\n // PROD\n case url.includes(\"https://www.stadt-zuerich.ch\"):\n case url.includes(\"designsystem.stadt-zuerich.ch\"):\n case /\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.PROD;\n\n // Fallback\n default:\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n link.childNodes.forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.includes(\"_\")) {\n const span = document.createElement(\"span\");\n span.innerHTML = node.textContent.replace(/_/g, \"_<wbr>\");\n link.replaceChild(span, node);\n }\n });\n });\n}\nexport function formatHeadingForHyphenation(heading) {\n return heading.replace(/(\\p{L})\\/(\\p{L})/gu, \"$1 / $2\");\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find((className) =>\n className.startsWith(\"stzh-theme-\"),\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,mHAAmH;AACnH,uHAAuH;AACvH,MAAM,UAAU,OAAO,CAAC,EAAe,EAAE,IAAa;IACpD,wBAAwB;IACxB,IAA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,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,EAAE,CAAC;YACtD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,SAAS,uBAAuB,CAAC,IAAe;;IAC9C,OAAO,MAAC,IAA6B,CAAC,MAAM,CAAC,mCAAI,IAAI,CAAC;AACxD,CAAC;AAGD,yEAAyE;AACzE,SAAS,kBAAkB,CAAC,IAAe;;IACzC,OAAO,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,MAAA,IAAI,CAAC,WAAW,mCAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AACpF,CAAC;AAED;;;;GAIG;AACH,SAAS,oBAAoB,CAC3B,IAAe,EACf,iBAA2B;IAE3B,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,IAAmB,CAAC;IAEpC,OAAO,CACL,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC;QAC7B,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAC5E,CAAC;AACJ,CAAC","sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`,\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n\n switch (true) {\n // DEV\n case url.includes(\"localhost\"):\n case url.includes(\"test.stadt-zuerich.loc\"):\n case /\\.dev\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.DEV;\n\n // UAT\n case url.includes(\"integ.stadt-zuerich.ch\"):\n case /\\.uat\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.UAT;\n\n // PROD\n case url.includes(\"https://www.stadt-zuerich.ch\"):\n case url.includes(\"designsystem.stadt-zuerich.ch\"):\n case /\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.PROD;\n\n // Fallback\n default:\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n link.childNodes.forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.includes(\"_\")) {\n const span = document.createElement(\"span\");\n span.innerHTML = node.textContent.replace(/_/g, \"_<wbr>\");\n link.replaceChild(span, node);\n }\n });\n });\n}\nexport function formatHeadingForHyphenation(heading) {\n return heading.replace(/(\\p{L})\\/(\\p{L})/gu, \"$1 / $2\");\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find((className) =>\n className.startsWith(\"stzh-theme-\"),\n );\n}\n\n/** Below code becomes obsolete with the implementation of PDESI-1908 */\n/** ----------- */\n\n\ninterface StencilRelocatedNode extends ChildNode {\n /**\n * Internal Stencil runtime reference to the original relocated node.\n * This can exist when Stencil handles scoped slots / slot fallback nodes.\n * It is not part of the standard DOM API.\n */\n 's-nr'?: ChildNode;\n}\n\n/**\n * Checks whether a host element has meaningful default-slot content.\n *\n * This detects:\n * - normal default-slot content\n * - non-empty text nodes\n * - Stencil scoped-slot fallback / relocated nodes\n *\n * This ignores:\n * - named-slot content, meaning elements with a `slot` attribute\n * - elements with one of the provided ignored class names\n */\nexport function hasDefaultSlotContent(\n host: HTMLElement,\n ignoredClassNames: string[] = [],\n): boolean {\n if (hasSlot(host)) {\n return true;\n }\n\n return Array.from(host.childNodes).some(node => {\n const slotNode = getStencilRelocatedNode(node);\n\n if (isNonEmptyTextNode(slotNode)) {\n return true;\n }\n\n if (isDefaultSlotElement(slotNode, ignoredClassNames)) {\n return true;\n }\n\n return false;\n });\n}\n\n/**\n * Returns the original Stencil-relocated node if available.\n *\n * Stencil may attach an internal `s-nr` property to nodes when handling\n * scoped slots or slot fallback content. In that case, the useful content\n * information may be on the relocated node instead of the wrapper node.\n */\nfunction getStencilRelocatedNode(node: ChildNode): ChildNode {\n return (node as StencilRelocatedNode)['s-nr'] ?? node;\n}\n\n\n/** Checks whether the given node is a text node with visible content. */\nfunction isNonEmptyTextNode(node: ChildNode): boolean {\n return node.nodeType === Node.TEXT_NODE && (node.textContent ?? '').trim() !== '';\n}\n\n/**\n * Checks whether the given node is an element belonging to the default slot.\n * Elements with a `slot` attribute belong to a named slot and are therefore\n * not considered default-slot content.\n */\nfunction isDefaultSlotElement(\n node: ChildNode,\n ignoredClassNames: string[],\n): boolean {\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n\n const element = node as HTMLElement;\n\n return (\n !element.hasAttribute('slot') &&\n !ignoredClassNames.some(className => element.classList.contains(className))\n );\n}\n"]}
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalScripts } from './p-
|
|
2
|
-
export { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-
|
|
1
|
+
import { g as globalScripts } from './p-DqjRJcEM.js';
|
|
2
|
+
export { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-DqjRJcEM.js';
|
|
3
3
|
export { S as StzhSocialmediastreamItemActionVariant, V as VBZ, t as tc } from './p-uD4ilJut.js';
|
|
4
4
|
|
|
5
5
|
globalScripts();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, e as Host, t as transformTag } from './p-
|
|
2
|
-
import {
|
|
3
|
-
import { d as defineCustomElement$5 } from './p-
|
|
4
|
-
import { d as defineCustomElement$4 } from './p-
|
|
5
|
-
import { d as defineCustomElement$3 } from './p-
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, e as Host, t as transformTag } from './p-DqjRJcEM.js';
|
|
2
|
+
import { e as abbreviateText, j as getMeta } from './p-DBHUqFOB.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './p-Dn7rMHvA.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './p-CrQrHbCR.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './p-mPSUVIkD.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-CIG3atcV.js';
|
|
7
|
+
import { d as defineCustomElement$1 } from './p-BNb1mC_F.js';
|
|
8
8
|
|
|
9
9
|
const stzhShareCss = () => `.sc-stzh-share-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-share-h,[stzh-hidden].sc-stzh-share-h{display:none}.sc-stzh-share-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-share-h *.sc-stzh-share,.sc-stzh-share-h *.sc-stzh-share::before,.sc-stzh-share-h *.sc-stzh-share::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-share-h .has-focus.sc-stzh-share{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-share-h .stzh-fylingfocus-focused.sc-stzh-share{outline-style:none !important}.sc-stzh-share-h .stzh-fylingfocus-focused.sc-stzh-share::-moz-focus-inner{border:0 !important}.stzh-share__list.sc-stzh-share{list-style:none;margin:0;padding:0;display:flex}.stzh-share__item.sc-stzh-share:not(:last-child){margin-right:var(--stzh-space-xxsmall)}`;
|
|
10
10
|
|
|
@@ -91,7 +91,7 @@ const StzhShare = /*@__PURE__*/ proxyCustomElement(class StzhShare extends H {
|
|
|
91
91
|
icon: "xing",
|
|
92
92
|
},
|
|
93
93
|
};
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: 'c320e91fdd20a78b40540d84e7b4ff993be320a3' }, h("div", { key: '886b50c3db94837dbcd9ea540211fb0d31779fc7', class: classes }, h("ul", { key: 'e7ee47ea410851ff0c83cfd2b41b21c8ca33656d', class: "stzh-share__list" }, this._services.map(service => (h("li", { class: "stzh-share__item" }, h("stzh-tooltip", { content: serviceData[service].text, size: "small" }, h("stzh-button", { class: `stzh-share__button is-${service}`, size: "small", variant: "tertiary", iconOnly: true, href: serviceData[service].url, rel: serviceData[service].blank ? "nofollow noopener noreferrer" : "nofollow", target: serviceData[service].blank ? "_blank" : "_self", onClick: serviceData[service].popup ? e => this.openPopup(serviceData[service].url, e) : null, analyticsId: serviceData[service].text, icon: serviceData[service].icon })))))))));
|
|
95
95
|
}
|
|
96
96
|
get element() { return this; }
|
|
97
97
|
static get watchers() { return {
|
|
@@ -147,6 +147,6 @@ function defineCustomElement() {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export { StzhShare as S, defineCustomElement as d };
|
|
150
|
-
//# sourceMappingURL=p-
|
|
150
|
+
//# sourceMappingURL=p-0Lt3woCB.js.map
|
|
151
151
|
|
|
152
|
-
//# sourceMappingURL=p-
|
|
152
|
+
//# sourceMappingURL=p-0Lt3woCB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-0Lt3woCB.js","mappings":";;;;;;;;AAAA,MAAM,YAAY,GAAG,MAAM,CAAC,wvCAAwvC,CAAC;;ACOrxC;AACA,MAAM,gBAAgB,GAAG,GAAG;MASf,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;QAUU,IAAA,CAAA,GAAG,GAAW,MAAM,CAAC,QAAQ,CAAC,IAAI;AAQ1C;;;AAGG;AACK,QAAA,IAAA,CAAA,QAAQ,GAA4B,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC;AAEvF,QAAA,IAAS,CAAA,SAAA,GAAmB,EAAE;QAa9B,IAAA,CAAA,SAAS,GAAG,CAAC,GAAG,EAAE,KAAK,KAAI;YACjC,KAAK,CAAC,cAAc,EAAE;YACtB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,sBAAsB,CAAC;AACpD,SAAC;AA0FF;AAvGC,IAAA,eAAe,CAAC,QAAiC,EAAA;AAC/C,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;;aAChC;AACL,YAAA,IAAI,CAAC,SAAS,GAAG,QAAQ;;;AAW7B,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC;AAEnC,QAAA,IAAI,CAAC,IAAI,CAA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G,CAAC,OAAO,KACzB,CAAI,CAAA,IAAA,EAAA,EAAA,KAAK,EAAC,kBAAkB,EAAA,EAC1B,CAAc,CAAA,cAAA,EAAA,EAAA,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,EAAC,OAAO,EAAA,EAC5D,CACE,CAAA,aAAA,EAAA,EAAA,KAAK,EAAE,CAAA,sBAAA,EAAyB,OAAO,CAAA,CAAE,EACzC,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAC9B,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,8BAA8B,GAAG,UAAU,EAC7E,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,QAAQ,GAAG,OAAO,EACvD,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI,EAC7F,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EACtC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAA,CAClB,CACF,CACZ,CACN,CAAC,CACC,CACD,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-share/stzh-share.scss?tag=stzh-share&encapsulation=scoped","src/components/stzh-share/stzh-share.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-share {\n &__list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n }\n\n &__item {\n &:not(:last-child) {\n margin-right: space(\"xxsmall\");\n }\n }\n}\n","import { Component, Host, h, Element, Prop, Watch } from \"@stencil/core\";\n\nimport { ShareService } from \"../../index\";\nimport { StzhShareLocalizedText } from \"./stzh-share.localization\";\nimport { getMeta } from \"../../utils/utils\";\nimport { abbreviateText } from \"../../utils/string-utils\";\n\n// 280 - URL (always 24) = 256\nconst MAX_TWEET_LENGTH = 256;\n\n/**\n */\n@Component({\n tag: \"stzh-share\",\n styleUrl: \"stzh-share.scss\",\n scoped: true,\n})\nexport class StzhShare {\n /** Translation strings */\n @Prop() localization: StzhShareLocalizedText;\n\n /** URL of current site (uses full URL by default) */\n @Prop() url: string = window.location.href;\n\n /** Overwrite mail subject translation */\n @Prop() mailSubject: string;\n\n /** Overwrite mail body translation */\n @Prop() mailBody: string;\n\n /**\n * Array of enabled share buttons.\n * Possible services: `facebook` / `twitter` / `linkedin` / `xing` / `mail`\n */\n @Prop() services: ShareService[] | string = [\"mail\", \"facebook\", \"twitter\", \"linkedin\", \"xing\"];\n\n private _services: ShareService[] = [];\n\n @Watch(\"services\")\n servicesWatcher(newValue: ShareService[] | string) {\n if (typeof newValue === \"string\") {\n this._services = JSON.parse(newValue);\n } else {\n this._services = newValue;\n }\n }\n\n @Element() element: HTMLStzhShareElement;\n\n private openPopup = (url, event) => {\n event.preventDefault();\n window.open(url, \"_blank\", \"width=600,height=460\");\n };\n\n async componentWillLoad() {\n this.servicesWatcher(this.services);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"share\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-share\": true,\n };\n\n const shareUrl = encodeURIComponent(this.url);\n const mailSubject = encodeURIComponent(this.mailSubject || this.localization.mailSubject);\n const mailBody = encodeURIComponent(\n (this.mailBody || this.localization.mailBody)?.replace(/\\{shareUrl\\}/gi, this.url),\n );\n\n const title = encodeURIComponent(document.title);\n const twitterTitle = encodeURIComponent(abbreviateText(title, MAX_TWEET_LENGTH));\n const description = encodeURIComponent(getMeta(\"description\"));\n\n const serviceData = {\n mail: {\n popup: false,\n blank: false,\n url: `mailto:?subject=${mailSubject}&body=${mailBody}`,\n text: this.localization.shareMail,\n icon: \"mail\",\n },\n facebook: {\n popup: true,\n blank: true,\n url: `https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`,\n text: this.localization.shareFacebook,\n icon: \"facebook\",\n },\n twitter: {\n popup: true,\n blank: true,\n url: `https://twitter.com/intent/tweet?text=${twitterTitle}&url=${shareUrl}`,\n text: this.localization.shareTwitter,\n icon: \"twitter\",\n },\n linkedin: {\n popup: true,\n blank: true,\n url: `https://www.linkedin.com/shareArticle?mini=true&summary=${description}&title=${title}&url=${shareUrl}`,\n text: this.localization.shareLinkedin,\n icon: \"linkedin\",\n },\n xing: {\n popup: true,\n blank: true,\n url: `https://www.xing.com/spi/shares/new?url=${shareUrl}`,\n text: this.localization.shareXing,\n icon: \"xing\",\n },\n };\n\n return (\n <Host>\n <div class={classes}>\n <ul class=\"stzh-share__list\">\n {this._services.map(service => (\n <li class=\"stzh-share__item\">\n <stzh-tooltip content={serviceData[service].text} size=\"small\">\n <stzh-button\n class={`stzh-share__button is-${service}`}\n size=\"small\"\n variant=\"tertiary\"\n iconOnly={true}\n href={serviceData[service].url}\n rel={serviceData[service].blank ? \"nofollow noopener noreferrer\" : \"nofollow\"}\n target={serviceData[service].blank ? \"_blank\" : \"_self\"}\n onClick={serviceData[service].popup ? e => this.openPopup(serviceData[service].url, e) : null}\n analyticsId={serviceData[service].text}\n icon={serviceData[service].icon}\n ></stzh-button>\n </stzh-tooltip>\n </li>\n ))}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as createEvent, h, F as Fragment, e as Host, t as transformTag } from './p-
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, F as Fragment, e as Host, t as transformTag } from './p-DqjRJcEM.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-mPSUVIkD.js';
|
|
3
3
|
|
|
4
4
|
const stzhBreadcrumbCss = () => `.sc-stzh-breadcrumb-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-breadcrumb-h,[stzh-hidden].sc-stzh-breadcrumb-h{display:none}.sc-stzh-breadcrumb-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-breadcrumb-h *.sc-stzh-breadcrumb,.sc-stzh-breadcrumb-h *.sc-stzh-breadcrumb::before,.sc-stzh-breadcrumb-h *.sc-stzh-breadcrumb::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-breadcrumb-h .has-focus.sc-stzh-breadcrumb{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-breadcrumb-h .stzh-fylingfocus-focused.sc-stzh-breadcrumb{outline-style:none !important}.sc-stzh-breadcrumb-h .stzh-fylingfocus-focused.sc-stzh-breadcrumb::-moz-focus-inner{border:0 !important}.sc-stzh-breadcrumb-h{overflow:hidden;--color:var(--stzh-breadcrumb-color, var(--stzh-color-primary70))}@media print{.sc-stzh-breadcrumb-h{display:none}}[variant=teaser].sc-stzh-breadcrumb-h{--color:var(--stzh-color-grey80)}.stzh-breadcrumb.sc-stzh-breadcrumb{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);color:var(--color)}.stzh-breadcrumb__list.sc-stzh-breadcrumb,.stzh-breadcrumb__item.sc-stzh-breadcrumb,.stzh-breadcrumb__item-link.sc-stzh-breadcrumb{display:flex;align-items:center}.stzh-breadcrumb__list.sc-stzh-breadcrumb{list-style:none;margin:0;padding:0;white-space:nowrap}.stzh-breadcrumb__item.is-expand.sc-stzh-breadcrumb .stzh-breadcrumb__item-link.sc-stzh-breadcrumb{cursor:pointer}.stzh-breadcrumb__item.is-hidden.sc-stzh-breadcrumb{display:none}.stzh-breadcrumb__item.is-last.sc-stzh-breadcrumb .stzh-breadcrumb__item-link.sc-stzh-breadcrumb{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy)}.stzh-breadcrumb__item.is-first.sc-stzh-breadcrumb .stzh-breadcrumb__item-label.sc-stzh-breadcrumb{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-breadcrumb__item-link.sc-stzh-breadcrumb{appearance:none;background-color:transparent;border:none;text-decoration:none;color:inherit}.stzh-breadcrumb__item-link.is-link.sc-stzh-breadcrumb{cursor:pointer;transition:color var(--stzh-base-transition-animation-speed)}.stzh-breadcrumb__item-link.is-link.sc-stzh-breadcrumb:hover{color:var(--stzh-color-primary90)}.stzh-breadcrumb__item-icon.sc-stzh-breadcrumb{margin-right:var(--stzh-space-xxsmall)}.stzh-breadcrumb__item-icon.is-separator.sc-stzh-breadcrumb{--size:var(--stzh-icon-size-small)}@media (forced-colors: active){.stzh-breadcrumb__item-icon.is-separator.sc-stzh-breadcrumb{color:CanvasText}}.stzh-breadcrumb__item-label-hidden.sc-stzh-breadcrumb{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-breadcrumb--is-expanded.sc-stzh-breadcrumb .stzh-breadcrumb__list.sc-stzh-breadcrumb{flex-wrap:wrap;white-space:initial}.stzh-breadcrumb--is-expanded.sc-stzh-breadcrumb .is-expand.sc-stzh-breadcrumb{position:absolute}.stzh-breadcrumb--teaser.sc-stzh-breadcrumb{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}`;
|
|
5
5
|
|
|
@@ -157,7 +157,7 @@ const StzhBreadcrumb = /*@__PURE__*/ proxyCustomElement(class StzhBreadcrumb ext
|
|
|
157
157
|
[`stzh-breadcrumb--${this.variant}`]: !!this.variant,
|
|
158
158
|
rs_skip: true, // will prevent component being read by readspeaker
|
|
159
159
|
};
|
|
160
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'd425fe883141357260d5e59c89e1b3be52c44327' }, h("div", { key: 'ae53a282b8beb0ebdf3c918a9623bfe81ade6dd9', class: classes }, h("nav", { key: '3ab29ad0016d133d22a94e4e34c433537b43d385', ref: el => (this.navElement = el), class: "stzh-breadcrumb__nav", role: "navigation", "aria-label": this.localization.title }, h("ol", { key: '5e7796e80887d3590c733d55eb31869ba7c8cf9f', class: "stzh-breadcrumb__list" }, this._items.map((item, index) => (h(Fragment, null, h("li", { class: {
|
|
161
161
|
"stzh-breadcrumb__item": true,
|
|
162
162
|
"is-last": index + 1 === this._items.length,
|
|
163
163
|
"is-first": index === 0,
|
|
@@ -202,6 +202,6 @@ function defineCustomElement() {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
export { StzhBreadcrumb as S, defineCustomElement as d };
|
|
205
|
-
//# sourceMappingURL=p-
|
|
205
|
+
//# sourceMappingURL=p-4bFqfRjC.js.map
|
|
206
206
|
|
|
207
|
-
//# sourceMappingURL=p-
|
|
207
|
+
//# sourceMappingURL=p-4bFqfRjC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-CHL7PZWx.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,MAAM,CAAC,snHAAsnH,CAAC;;ACMxpH,MAAM,iBAAiB,GAAG,CAAC;AAC3B,MAAM,gBAAgB,GAAG,CAAC,CAAC;MAUd,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;AAL3B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAU2B,QAAA,IAAO,C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LElement"],"sources":["src/components/stzh-breadcrumb/stzh-breadcrumb.scss?tag=stzh-breadcrumb&encapsulation=scoped","src/components/stzh-breadcrumb/stzh-breadcrumb.tsx"],"sourcesContent":[":host {\n overflow: hidden;\n --color: var(--stzh-breadcrumb-color, #{$colorPrimary70});\n\n @media print {\n display: none;\n }\n\n &[variant=\"teaser\"] {\n --color: #{$colorGrey80};\n }\n}\n\n.stzh-breadcrumb {\n @include fontSize(\"milli\");\n color: var(--color);\n\n &__list,\n &__item,\n &__item-link {\n display: flex;\n align-items: center;\n }\n\n &__list {\n list-style: none;\n margin: 0;\n padding: 0;\n white-space: nowrap;\n }\n\n &__item.is-expand &__item-link {\n cursor: pointer;\n }\n\n &__item.is-hidden {\n display: none;\n }\n\n &__item.is-last &__item-link {\n @include font(\"heavy\");\n }\n\n &__item.is-first &__item-label {\n @include visuallyhidden;\n }\n\n &__item-link {\n appearance: none;\n background-color: transparent;\n border: none;\n text-decoration: none;\n color: inherit;\n }\n\n &__item-link.is-link {\n cursor: pointer;\n transition: color $baseTransitionAnimationSpeed;\n\n &:hover {\n color: $colorPrimary90;\n }\n }\n\n &__item-icon {\n margin-right: space(\"xxsmall\");\n\n &.is-separator {\n --size: #{iconSize(\"small\")};\n\n @media (forced-colors: active) {\n color: CanvasText;\n }\n }\n }\n\n &__item-label-hidden {\n @include visuallyhidden;\n }\n\n /* Expanded variant */\n\n &--is-expanded &__list {\n flex-wrap: wrap;\n white-space: initial;\n }\n\n &--is-expanded .is-expand {\n position: absolute;\n }\n\n /* Teaser variant */\n\n &--teaser {\n @include fontSize(\"micro\");\n }\n}\n","import { Component, Host, h, Element, Prop, Watch, State, Fragment, Event, EventEmitter } from \"@stencil/core\";\n\nimport { StzhBreadcrumbItem, StzhBreadcrumbItemClickEvent } from \"../../index\";\n\nimport { StzhBreadcrumbLocalizedText } from \"./stzh-breadcrumb.localization\";\n\nconst ITEM_EXPAND_INDEX = 1;\nconst SHRINK_DIRECTION = 1; // 1 = removes item to the right / -1 = removes item to the left\n\n/**\n *\n */\n@Component({\n tag: \"stzh-breadcrumb\",\n styleUrl: \"stzh-breadcrumb.scss\",\n scoped: true,\n})\nexport class StzhBreadcrumb {\n /** Translation strings */\n @Prop() localization: StzhBreadcrumbLocalizedText;\n\n /** Variant */\n @Prop({ reflect: true }) variant: \"default\" | \"teaser\" = \"default\";\n\n /** Breadcrumb items */\n @Prop() items: StzhBreadcrumbItem[] | string = [];\n private _items: StzhBreadcrumbItem[];\n\n /** Whether all items are shown (true) or everything should fit into one line and not wrap (false, default) */\n @Prop({ mutable: true, reflect: true }) expanded: boolean = false;\n\n @Element() element: HTMLStzhBreadcrumbElement;\n\n @Watch(\"items\")\n itemsWatcher(newValue: StzhBreadcrumbItem[] | string) {\n if (!newValue) {\n this._items = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._items = JSON.parse(newValue);\n } catch (e) {\n this._items = [];\n }\n } else {\n this._items = newValue;\n }\n }\n\n @Watch(\"expanded\")\n expandedWatcher() {\n this.updateContainer();\n }\n\n /** Item click event */\n @Event() stzhItemClick: EventEmitter<StzhBreadcrumbItemClickEvent>;\n\n @State() hasHiddenItems: boolean = false;\n\n private navElement: HTMLElement;\n private itemSizes: [HTMLElement, number][];\n\n private debounceResize: number;\n private resizeObserver: ResizeObserver;\n private debounceResizeItems: number;\n private resizeItemsObserver: ResizeObserver;\n\n private handleClick(item: StzhBreadcrumbItem, originalEvent: MouseEvent) {\n this.stzhItemClick.emit({\n component: \"stzh-breadcrumb\",\n item,\n originalEvent,\n });\n }\n\n private updateContainer = () => {\n if (!this.navElement || !this.itemSizes) {\n return;\n }\n\n const containerWidth = this.navElement.clientWidth;\n\n const totalItemsWidthWithoutExpandItem = this.itemSizes.reduce((previous, item, index) => {\n if (index === ITEM_EXPAND_INDEX) {\n return previous;\n } else {\n return previous + item[1];\n }\n }, 0);\n\n if (totalItemsWidthWithoutExpandItem >= containerWidth && this.itemSizes.length > 2 && !this.expanded) {\n const hideItems = [];\n\n const expandItemWidth = this.itemSizes[ITEM_EXPAND_INDEX][1];\n let currentIndexToHide = ITEM_EXPAND_INDEX + SHRINK_DIRECTION;\n let totalItemsShownWidthWithoutExpandItem = totalItemsWidthWithoutExpandItem;\n\n do {\n const current = this.itemSizes[currentIndexToHide];\n hideItems.push(current[0]);\n totalItemsShownWidthWithoutExpandItem = totalItemsShownWidthWithoutExpandItem - current[1];\n currentIndexToHide = currentIndexToHide + SHRINK_DIRECTION;\n } while (\n totalItemsShownWidthWithoutExpandItem + expandItemWidth >= containerWidth &&\n currentIndexToHide < this.itemSizes.length\n );\n\n this.hasHiddenItems = true;\n\n this.itemSizes.forEach(([item], index) => {\n if (index === ITEM_EXPAND_INDEX) {\n item.classList.remove(\"is-hidden\");\n } else {\n item.classList.toggle(\"is-hidden\", hideItems.includes(item));\n }\n });\n } else {\n this.hasHiddenItems = false;\n\n this.itemSizes.forEach(([item], index) => {\n if (index === ITEM_EXPAND_INDEX) {\n item.classList.add(\"is-hidden\");\n } else {\n item.classList.remove(\"is-hidden\");\n }\n });\n }\n };\n\n private updateItems = () => {\n if (!this.navElement) {\n return;\n }\n\n // TODO: current updates all item sizes, but could be optimized only to update really resized items with using passed ResizeObserver entries\n const items = Array.from(this.navElement.querySelectorAll(\".stzh-breadcrumb__item\")) as HTMLElement[];\n items.forEach(item => item.classList.remove(\"is-hidden\"));\n this.itemSizes = [];\n\n items.forEach(item => {\n const { width } = item.getBoundingClientRect();\n this.itemSizes.push([item, width]);\n });\n\n this.updateContainer();\n };\n\n private handleContainerResize = () => {\n if (this.debounceResize) {\n window.cancelAnimationFrame(this.debounceResize);\n }\n\n this.debounceResize = requestAnimationFrame(this.updateContainer);\n };\n\n private handleItemResize = () => {\n if (this.debounceResizeItems) {\n window.cancelAnimationFrame(this.debounceResizeItems);\n }\n\n this.debounceResizeItems = requestAnimationFrame(this.updateItems);\n };\n\n private handleExpandClick = () => {\n this.expanded = true;\n\n const itemLinks = Array.from(this.navElement.querySelectorAll(\".stzh-breadcrumb__item-link\")) as HTMLElement[];\n itemLinks[2].focus();\n };\n\n async componentWillLoad() {\n this.itemsWatcher(this.items);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"breadcrumb\");\n }\n }\n\n componentDidRender() {\n this.resizeObserver.observe(this.navElement);\n\n const items = this.navElement.querySelectorAll(\".stzh-breadcrumb__item\");\n items.forEach(item => {\n this.resizeItemsObserver.observe(item);\n });\n }\n\n connectedCallback() {\n this.resizeObserver = new ResizeObserver(this.handleContainerResize);\n this.resizeItemsObserver = new ResizeObserver(this.handleItemResize);\n }\n\n disconnectedCallback() {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n\n if (this.resizeItemsObserver) {\n this.resizeItemsObserver.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-breadcrumb\": true,\n \"stzh-breadcrumb--is-expanded\": this.expanded,\n \"stzh-breadcrumb--has-hidden-items\": this.hasHiddenItems,\n [`stzh-breadcrumb--${this.variant}`]: !!this.variant,\n rs_skip: true, // will prevent component being read by readspeaker\n };\n\n return (\n <Host>\n <div class={classes}>\n <nav\n ref={el => (this.navElement = el as HTMLElement)}\n class=\"stzh-breadcrumb__nav\"\n role=\"navigation\"\n aria-label={this.localization.title}\n >\n <ol class=\"stzh-breadcrumb__list\">\n {this._items.map((item, index) => (\n <Fragment>\n <li\n class={{\n \"stzh-breadcrumb__item\": true,\n \"is-last\": index + 1 === this._items.length,\n \"is-first\": index === 0,\n }}\n >\n <a\n aria-current={index + 1 === this._items.length ? \"page\" : null}\n href={item.href}\n onClick={e => this.handleClick(item, e)}\n class={{\n \"stzh-breadcrumb__item-link\": true,\n \"is-link\": !!item.href,\n }}\n >\n {index === 0 ? (\n <stzh-icon class=\"stzh-breadcrumb__item-icon\" name=\"home\"></stzh-icon>\n ) : (\n <stzh-icon class=\"stzh-breadcrumb__item-icon is-separator\" name=\"angle-right\"></stzh-icon>\n )}\n <span class=\"stzh-breadcrumb__item-label\" innerHTML={item.label}></span>\n </a>\n </li>\n {index === 0 && (\n <li class=\"stzh-breadcrumb__item is-expand\">\n <button class=\"stzh-breadcrumb__item-link\" onClick={this.handleExpandClick}>\n <stzh-icon class=\"stzh-breadcrumb__item-icon is-separator\" name=\"angle-right\"></stzh-icon>\n <span class=\"stzh-breadcrumb__item-label\">\n <span aria-hidden=\"true\">{this.localization.expandLabel}</span>\n <span class=\"stzh-breadcrumb__item-label-hidden\">{this.localization.expandHiddenLabel}</span>\n </span>\n </button>\n </li>\n )}\n </Fragment>\n ))}\n </ol>\n </nav>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-4bFqfRjC.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,MAAM,CAAC,snHAAsnH,CAAC;;ACMxpH,MAAM,iBAAiB,GAAG,CAAC;AAC3B,MAAM,gBAAgB,GAAG,CAAC,CAAC;MAUd,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;AAL3B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAU2B,QAAA,IAAO,CAAA,OAAA,GAAyB,SAAS;;AAG1D,QAAA,IAAK,CAAA,KAAA,GAAkC,EAAE;;AAIT,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AA2BxD,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;AAkBhC,QAAA,IAAe,CAAA,eAAA,GAAG,MAAK;YAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBACvC;;AAGF,YAAA,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW;AAElD,YAAA,MAAM,gCAAgC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,KAAI;AACvF,gBAAA,IAAI,KAAK,KAAK,iBAAiB,EAAE;AAC/B,oBAAA,OAAO,QAAQ;;qBACV;AACL,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D,EACJ,KAAK,KAAK,CAAC,KACV,CAAI,CAAA,IAAA,EAAA,EAAA,KAAK,EAAC,iCAAiC,EAAA,EACzC,CAAQ,CAAA,QAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAA,EACxE,CAAA,CAAA,WAAA,EAAA,EAAW,KAAK,EAAC,yCAAyC,EAAC,IAAI,EAAC,aAAa,EAAa,CAAA,EAC1F,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,6BAA6B,EAAA,EACvC,CAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAkB,MAAM,EAAE,EAAA,IAAI,CAAC,YAAY,CAAC,WAAW,CAAQ,EAC/D,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,oCAAoC,EAAA,EAAE,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAQ,CACxF,CACA,CACN,CACN,CACQ,CACZ,CAAC,CACC,CACD,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-breadcrumb/stzh-breadcrumb.scss?tag=stzh-breadcrumb&encapsulation=scoped","src/components/stzh-breadcrumb/stzh-breadcrumb.tsx"],"sourcesContent":[":host {\n overflow: hidden;\n --color: var(--stzh-breadcrumb-color, #{$colorPrimary70});\n\n @media print {\n display: none;\n }\n\n &[variant=\"teaser\"] {\n --color: #{$colorGrey80};\n }\n}\n\n.stzh-breadcrumb {\n @include fontSize(\"milli\");\n color: var(--color);\n\n &__list,\n &__item,\n &__item-link {\n display: flex;\n align-items: center;\n }\n\n &__list {\n list-style: none;\n margin: 0;\n padding: 0;\n white-space: nowrap;\n }\n\n &__item.is-expand &__item-link {\n cursor: pointer;\n }\n\n &__item.is-hidden {\n display: none;\n }\n\n &__item.is-last &__item-link {\n @include font(\"heavy\");\n }\n\n &__item.is-first &__item-label {\n @include visuallyhidden;\n }\n\n &__item-link {\n appearance: none;\n background-color: transparent;\n border: none;\n text-decoration: none;\n color: inherit;\n }\n\n &__item-link.is-link {\n cursor: pointer;\n transition: color $baseTransitionAnimationSpeed;\n\n &:hover {\n color: $colorPrimary90;\n }\n }\n\n &__item-icon {\n margin-right: space(\"xxsmall\");\n\n &.is-separator {\n --size: #{iconSize(\"small\")};\n\n @media (forced-colors: active) {\n color: CanvasText;\n }\n }\n }\n\n &__item-label-hidden {\n @include visuallyhidden;\n }\n\n /* Expanded variant */\n\n &--is-expanded &__list {\n flex-wrap: wrap;\n white-space: initial;\n }\n\n &--is-expanded .is-expand {\n position: absolute;\n }\n\n /* Teaser variant */\n\n &--teaser {\n @include fontSize(\"micro\");\n }\n}\n","import { Component, Host, h, Element, Prop, Watch, State, Fragment, Event, EventEmitter } from \"@stencil/core\";\n\nimport { StzhBreadcrumbItem, StzhBreadcrumbItemClickEvent } from \"../../index\";\n\nimport { StzhBreadcrumbLocalizedText } from \"./stzh-breadcrumb.localization\";\n\nconst ITEM_EXPAND_INDEX = 1;\nconst SHRINK_DIRECTION = 1; // 1 = removes item to the right / -1 = removes item to the left\n\n/**\n *\n */\n@Component({\n tag: \"stzh-breadcrumb\",\n styleUrl: \"stzh-breadcrumb.scss\",\n scoped: true,\n})\nexport class StzhBreadcrumb {\n /** Translation strings */\n @Prop() localization: StzhBreadcrumbLocalizedText;\n\n /** Variant */\n @Prop({ reflect: true }) variant: \"default\" | \"teaser\" = \"default\";\n\n /** Breadcrumb items */\n @Prop() items: StzhBreadcrumbItem[] | string = [];\n private _items: StzhBreadcrumbItem[];\n\n /** Whether all items are shown (true) or everything should fit into one line and not wrap (false, default) */\n @Prop({ mutable: true, reflect: true }) expanded: boolean = false;\n\n @Element() element: HTMLStzhBreadcrumbElement;\n\n @Watch(\"items\")\n itemsWatcher(newValue: StzhBreadcrumbItem[] | string) {\n if (!newValue) {\n this._items = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._items = JSON.parse(newValue);\n } catch (e) {\n this._items = [];\n }\n } else {\n this._items = newValue;\n }\n }\n\n @Watch(\"expanded\")\n expandedWatcher() {\n this.updateContainer();\n }\n\n /** Item click event */\n @Event() stzhItemClick: EventEmitter<StzhBreadcrumbItemClickEvent>;\n\n @State() hasHiddenItems: boolean = false;\n\n private navElement: HTMLElement;\n private itemSizes: [HTMLElement, number][];\n\n private debounceResize: number;\n private resizeObserver: ResizeObserver;\n private debounceResizeItems: number;\n private resizeItemsObserver: ResizeObserver;\n\n private handleClick(item: StzhBreadcrumbItem, originalEvent: MouseEvent) {\n this.stzhItemClick.emit({\n component: \"stzh-breadcrumb\",\n item,\n originalEvent,\n });\n }\n\n private updateContainer = () => {\n if (!this.navElement || !this.itemSizes) {\n return;\n }\n\n const containerWidth = this.navElement.clientWidth;\n\n const totalItemsWidthWithoutExpandItem = this.itemSizes.reduce((previous, item, index) => {\n if (index === ITEM_EXPAND_INDEX) {\n return previous;\n } else {\n return previous + item[1];\n }\n }, 0);\n\n if (totalItemsWidthWithoutExpandItem >= containerWidth && this.itemSizes.length > 2 && !this.expanded) {\n const hideItems = [];\n\n const expandItemWidth = this.itemSizes[ITEM_EXPAND_INDEX][1];\n let currentIndexToHide = ITEM_EXPAND_INDEX + SHRINK_DIRECTION;\n let totalItemsShownWidthWithoutExpandItem = totalItemsWidthWithoutExpandItem;\n\n do {\n const current = this.itemSizes[currentIndexToHide];\n hideItems.push(current[0]);\n totalItemsShownWidthWithoutExpandItem = totalItemsShownWidthWithoutExpandItem - current[1];\n currentIndexToHide = currentIndexToHide + SHRINK_DIRECTION;\n } while (\n totalItemsShownWidthWithoutExpandItem + expandItemWidth >= containerWidth &&\n currentIndexToHide < this.itemSizes.length\n );\n\n this.hasHiddenItems = true;\n\n this.itemSizes.forEach(([item], index) => {\n if (index === ITEM_EXPAND_INDEX) {\n item.classList.remove(\"is-hidden\");\n } else {\n item.classList.toggle(\"is-hidden\", hideItems.includes(item));\n }\n });\n } else {\n this.hasHiddenItems = false;\n\n this.itemSizes.forEach(([item], index) => {\n if (index === ITEM_EXPAND_INDEX) {\n item.classList.add(\"is-hidden\");\n } else {\n item.classList.remove(\"is-hidden\");\n }\n });\n }\n };\n\n private updateItems = () => {\n if (!this.navElement) {\n return;\n }\n\n // TODO: current updates all item sizes, but could be optimized only to update really resized items with using passed ResizeObserver entries\n const items = Array.from(this.navElement.querySelectorAll(\".stzh-breadcrumb__item\")) as HTMLElement[];\n items.forEach(item => item.classList.remove(\"is-hidden\"));\n this.itemSizes = [];\n\n items.forEach(item => {\n const { width } = item.getBoundingClientRect();\n this.itemSizes.push([item, width]);\n });\n\n this.updateContainer();\n };\n\n private handleContainerResize = () => {\n if (this.debounceResize) {\n window.cancelAnimationFrame(this.debounceResize);\n }\n\n this.debounceResize = requestAnimationFrame(this.updateContainer);\n };\n\n private handleItemResize = () => {\n if (this.debounceResizeItems) {\n window.cancelAnimationFrame(this.debounceResizeItems);\n }\n\n this.debounceResizeItems = requestAnimationFrame(this.updateItems);\n };\n\n private handleExpandClick = () => {\n this.expanded = true;\n\n const itemLinks = Array.from(this.navElement.querySelectorAll(\".stzh-breadcrumb__item-link\")) as HTMLElement[];\n itemLinks[2].focus();\n };\n\n async componentWillLoad() {\n this.itemsWatcher(this.items);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"breadcrumb\");\n }\n }\n\n componentDidRender() {\n this.resizeObserver.observe(this.navElement);\n\n const items = this.navElement.querySelectorAll(\".stzh-breadcrumb__item\");\n items.forEach(item => {\n this.resizeItemsObserver.observe(item);\n });\n }\n\n connectedCallback() {\n this.resizeObserver = new ResizeObserver(this.handleContainerResize);\n this.resizeItemsObserver = new ResizeObserver(this.handleItemResize);\n }\n\n disconnectedCallback() {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n\n if (this.resizeItemsObserver) {\n this.resizeItemsObserver.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-breadcrumb\": true,\n \"stzh-breadcrumb--is-expanded\": this.expanded,\n \"stzh-breadcrumb--has-hidden-items\": this.hasHiddenItems,\n [`stzh-breadcrumb--${this.variant}`]: !!this.variant,\n rs_skip: true, // will prevent component being read by readspeaker\n };\n\n return (\n <Host>\n <div class={classes}>\n <nav\n ref={el => (this.navElement = el as HTMLElement)}\n class=\"stzh-breadcrumb__nav\"\n role=\"navigation\"\n aria-label={this.localization.title}\n >\n <ol class=\"stzh-breadcrumb__list\">\n {this._items.map((item, index) => (\n <Fragment>\n <li\n class={{\n \"stzh-breadcrumb__item\": true,\n \"is-last\": index + 1 === this._items.length,\n \"is-first\": index === 0,\n }}\n >\n <a\n aria-current={index + 1 === this._items.length ? \"page\" : null}\n href={item.href}\n onClick={e => this.handleClick(item, e)}\n class={{\n \"stzh-breadcrumb__item-link\": true,\n \"is-link\": !!item.href,\n }}\n >\n {index === 0 ? (\n <stzh-icon class=\"stzh-breadcrumb__item-icon\" name=\"home\"></stzh-icon>\n ) : (\n <stzh-icon class=\"stzh-breadcrumb__item-icon is-separator\" name=\"angle-right\"></stzh-icon>\n )}\n <span class=\"stzh-breadcrumb__item-label\" innerHTML={item.label}></span>\n </a>\n </li>\n {index === 0 && (\n <li class=\"stzh-breadcrumb__item is-expand\">\n <button class=\"stzh-breadcrumb__item-link\" onClick={this.handleExpandClick}>\n <stzh-icon class=\"stzh-breadcrumb__item-icon is-separator\" name=\"angle-right\"></stzh-icon>\n <span class=\"stzh-breadcrumb__item-label\">\n <span aria-hidden=\"true\">{this.localization.expandLabel}</span>\n <span class=\"stzh-breadcrumb__item-label-hidden\">{this.localization.expandHiddenLabel}</span>\n </span>\n </button>\n </li>\n )}\n </Fragment>\n ))}\n </ol>\n </nav>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, e as Host, t as transformTag } from './p-
|
|
2
|
-
import { s as setPropsIfNull } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, e as Host, t as transformTag } from './p-DqjRJcEM.js';
|
|
2
|
+
import { s as setPropsIfNull } from './p-DBHUqFOB.js';
|
|
3
3
|
|
|
4
4
|
const stzhActionsCss = () => `:host{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}:host[hidden],:host[stzh-hidden]{display:none}:host::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}:host *,:host *::before,:host *::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}:host{}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}:host ::slotted([slot=primary]),:host ::slotted([slot=secondary]),:host ::slotted([slot=tertiary]){flex-grow:1;margin:calc(var(--stzh-space-medium) / 2)}@media screen and (min-width: 600px){:host[space-between=true] ::slotted([slot=tertiary]){flex-grow:inherit}}.stzh-actions__actions{display:flex;flex-direction:column-reverse;margin:calc(var(--stzh-space-medium) / -2)}@media screen and (min-width: 600px){.stzh-actions__actions{flex-direction:row}}.stzh-actions__primary-actions,.stzh-actions__secondary-actions,.stzh-actions__tertiary-actions{display:flex}.stzh-actions__wrapper{display:contents}@media screen and (max-width: 599px){.stzh-actions--process .stzh-actions__wrapper{display:flex;flex-wrap:wrap}}.stzh-actions--process .stzh-actions__actions{justify-content:flex-end}@media screen and (max-width: 599px){.stzh-actions--process .stzh-actions__primary-actions,.stzh-actions--process .stzh-actions__secondary-actions{flex-grow:1}}@media screen and (min-width: 600px){.stzh-actions--process .stzh-actions__tertiary-actions{margin-right:auto}}.stzh-actions--search .stzh-actions__actions{justify-content:flex-end}.stzh-actions{}.stzh-actions--space-between .stzh-actions__actions{justify-content:space-between}@media screen and (min-width: 600px){.stzh-actions--space-between .stzh-actions__actions{flex-direction:column}}@media screen and (min-width: 900px){.stzh-actions--space-between .stzh-actions__actions{flex-direction:row}}@media screen and (min-width: 600px){.stzh-actions--space-between .stzh-actions__wrapper{display:flex;justify-content:flex-end}}`;
|
|
5
5
|
|
|
@@ -48,7 +48,7 @@ const StzhActions = /*@__PURE__*/ proxyCustomElement(class StzhActions extends H
|
|
|
48
48
|
"stzh-actions--space-between": this.spaceBetween,
|
|
49
49
|
[`stzh-actions--${this.variant}`]: !!this.variant,
|
|
50
50
|
};
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '22922eb048401ce56c8df27c0a166a4bc50fae06', "space-between": this.spaceBetween }, h("div", { key: '3e40e9aff43195e052ab792ef07d7d0de5a154e5', class: classes }, h("div", { key: '05c2c5e2eb378a55ceca69883f67c4b4d1e53c8a', class: "stzh-actions__actions", role: "group" }, h("div", { key: 'd5259febb50994591be9ea873109ea83e1cce5c0', class: "stzh-actions__tertiary-actions" }, h("slot", { key: '1158357c6587fca8c7b788ac7c7185ce7388cd3f', name: "tertiary" })), h("div", { key: '0240870db471bd78a2bb1de93af6b6b31a2760c8', class: "stzh-actions__wrapper" }, h("div", { key: '2d180170bbbe4e90adab5685bc1923d19d22d545', class: "stzh-actions__secondary-actions" }, h("slot", { key: '8ad527d942ef005a4d2e9cad6b48d7cb5836b9d8', name: "secondary" })), h("div", { key: '3fd19e245b99eed1f1508e38ea7e0d436a124d4b', class: "stzh-actions__primary-actions" }, h("slot", { key: '51210838fbe95cd3e651cedada877cf478e53b5a', name: "primary" })))))));
|
|
52
52
|
}
|
|
53
53
|
get element() { return this; }
|
|
54
54
|
static get style() { return stzhActionsCss(); }
|
|
@@ -71,6 +71,6 @@ function defineCustomElement() {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export { StzhActions as S, defineCustomElement as d };
|
|
74
|
-
//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C,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAQ,CAAA,CACxB,CACF,CACF,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-actions/stzh-actions.scss?tag=stzh-actions&encapsulation=shadow","src/components/stzh-actions/stzh-actions.tsx"],"sourcesContent":[":host {\n ::slotted([slot=\"primary\"]),\n ::slotted([slot=\"secondary\"]),\n ::slotted([slot=\"tertiary\"]) {\n flex-grow: 1;\n margin: calc(#{space(\"medium\")} / 2);\n }\n\n &[space-between=\"true\"] ::slotted([slot=\"tertiary\"]) {\n @include mq($from: small) {\n flex-grow: inherit;\n }\n }\n}\n\n.stzh-actions {\n &__actions {\n display: flex;\n flex-direction: column-reverse;\n margin: calc(#{space(\"medium\")} / -2);\n\n @include mq($from: small) {\n flex-direction: row;\n }\n }\n\n &__primary-actions,\n &__secondary-actions,\n &__tertiary-actions {\n display: flex;\n }\n\n &__wrapper {\n display: contents;\n }\n\n // &--dialog &__actions {\n // justify-content: flex-end;\n // }\n\n &--process &__wrapper {\n @include mq($to: small) {\n display: flex;\n flex-wrap: wrap;\n }\n }\n\n &--process &__actions {\n justify-content: flex-end;\n }\n\n &--process &__primary-actions,\n &--process &__secondary-actions {\n @include mq($to: small) {\n flex-grow: 1;\n }\n }\n\n &--process &__tertiary-actions {\n @include mq($from: small) {\n margin-right: auto;\n }\n }\n\n &--search &__actions {\n justify-content: flex-end;\n }\n\n /* space between */\n &--space-between &__actions {\n justify-content: space-between;\n\n @include mq($from: small) {\n flex-direction: column;\n }\n\n @include mq($from: medium) {\n flex-direction: row;\n }\n }\n\n &--space-between &__wrapper {\n @include mq($from: small) {\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n","import { Component, Element, h, Host, Prop } from \"@stencil/core\";\n\nimport { setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot primary - Slot for primary button\n * @slot secondary - Slot for secondary button\n * @slot tertiary - Slot for tertiary button\n */\n@Component({\n tag: \"stzh-actions\",\n styleUrl: \"stzh-actions.scss\",\n shadow: true,\n})\nexport class StzhActions {\n /** Variant determining what position the action buttons are */\n @Prop({ reflect: true }) variant: \"form\" | \"dialog\" | \"process\" | \"search\" = \"form\";\n\n /** Whether to split tertiary and primary/secondary from each other (left and right). */\n @Prop({ reflect: true }) spaceBetween: boolean = false;\n\n @Element() element: HTMLStzhActionsElement;\n\n private observer: MutationObserver;\n\n private init = () => {\n const secondaryButtons = this.element.querySelectorAll(\n 'stzh-button[slot=\"secondary\"], [slot=\"secondary\"] stzh-button',\n );\n\n const tertiaryButtons = this.element.querySelectorAll(\n 'stzh-button[slot=\"tertiary\"], [slot=\"tertiary\"] stzh-button',\n );\n\n secondaryButtons.forEach(button => {\n setPropsIfNull(button, {\n variant: \"secondary\",\n } as HTMLStzhButtonElement);\n });\n\n tertiaryButtons.forEach(button => {\n setPropsIfNull(button, {\n variant: \"tertiary\",\n } as HTMLStzhButtonElement);\n });\n };\n\n connectedCallback() {\n this.init();\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-actions\": true,\n \"stzh-actions--space-between\": this.spaceBetween,\n [`stzh-actions--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host space-between={this.spaceBetween}>\n <div class={classes}>\n <div class=\"stzh-actions__actions\" role=\"group\">\n <div class=\"stzh-actions__tertiary-actions\">\n <slot name=\"tertiary\"></slot>\n </div>\n <div class=\"stzh-actions__wrapper\">\n <div class=\"stzh-actions__secondary-actions\">\n <slot name=\"secondary\"></slot>\n </div>\n <div class=\"stzh-actions__primary-actions\">\n <slot name=\"primary\"></slot>\n </div>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, t as transformTag, H, d as createEvent, h, e as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, t as transformTag, H, d as createEvent, h, e as Host } from './p-DqjRJcEM.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-DmbPNk49.js';
|
|
3
3
|
|
|
4
4
|
const stzhAccordionCss = () => `:host{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}:host[hidden],:host[stzh-hidden]{display:none}:host::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}:host *,:host *::before,:host *::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}:host{}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}:host{--stzh-section-padding-top:0px;--stzh-section-padding-bottom:0px;--stzh-section-margin-top:0px;--stzh-section-margin-bottom:0px;--margin-left:inherit;--margin-right:inherit}.stzh-accordion{display:grid;gap:var(--stzh-space-xsmall);margin-left:var(--margin-left);margin-right:var(--margin-left)}.stzh-accordion__heading{margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-accordion__heading{margin-bottom:var(--stzh-space-small)}}@media screen and (min-width: 900px){.stzh-accordion__heading{margin-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-accordion__heading{margin-bottom:var(--stzh-space-xlarge)}}.stzh-accordion{}.stzh-accordion--is-nested{margin-left:calc(var(--stzh-space-medium) * -1)}@media screen and (min-width: 600px){.stzh-accordion--is-nested{margin-left:calc(var(--stzh-space-large) * -1)}}@media screen and (min-width: 900px){.stzh-accordion--is-nested{margin-left:calc(var(--stzh-space-xlarge) * -1)}}@media screen and (min-width: 1260px){.stzh-accordion--is-nested{margin-left:calc(var(--stzh-space-xxlarge) * -1)}}.stzh-accordion--is-nested{margin-right:calc(var(--stzh-space-medium) * -1)}@media screen and (min-width: 600px){.stzh-accordion--is-nested{margin-right:calc(var(--stzh-space-large) * -1)}}@media screen and (min-width: 900px){.stzh-accordion--is-nested{margin-right:calc(var(--stzh-space-xlarge) * -1)}}@media screen and (min-width: 1260px){.stzh-accordion--is-nested{margin-right:calc(var(--stzh-space-xxlarge) * -1)}}`;
|
|
5
5
|
|
|
@@ -92,7 +92,7 @@ const StzhAccordion = /*@__PURE__*/ proxyCustomElement(class StzhAccordion exten
|
|
|
92
92
|
"stzh-accordion": true,
|
|
93
93
|
"stzh-accordion--is-nested": this.isNested,
|
|
94
94
|
};
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '2a3e9f9ca42b2a464ca4f084d0cfc6552b60ae88' }, h("div", { key: '2db041bb0e3ba0b43ebc95d9f3fc81b9c1869abe', class: classes }, this.heading && (h("div", { key: 'c5646ce363352f068e4b5e5c563325b4a6bb8691', class: "stzh-accordion__heading" }, h("stzh-heading", { key: '92d25f3f0b1af2eade203d6fc2224cc61221cc66', level: "2" }, this.heading))), h("slot", { key: '8956ff101f45b7d574d7aaf5bd8be75d522796e9' }))));
|
|
96
96
|
}
|
|
97
97
|
get element() { return this; }
|
|
98
98
|
static get watchers() { return {
|
|
@@ -129,6 +129,6 @@ function defineCustomElement() {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export { StzhAccordion as S, defineCustomElement as d };
|
|
132
|
-
//# sourceMappingURL=p-
|
|
132
|
+
//# sourceMappingURL=p-B-Ox_M1g.js.map
|
|
133
133
|
|
|
134
|
-
//# sourceMappingURL=p-
|
|
134
|
+
//# sourceMappingURL=p-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AA,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa;QAE9C,OAAO,aAAa,EAAE;YACpB,IAAI,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,gBAAgB,EAAE;AAC5D,gBAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;gBACpB;;AAEF,YAAA,aAAa,GAAG,aAAa,CAAC,aAAa;;;IAI/C,gBAAgB,GAAA;QACd,IAAI,CAAC,aAAa,EAAE;;IAGtB,MAAM,GAAA;AACJ,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,gBAAgB,EAAE,IAAI;YACtB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;SAC3C;AAED,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,OAAO,EAAA,EAChB,IAAI,CAAC,OAAO,KACX,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,yBAAyB,EAAA,EAClC,CAAc,CAAA,cAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,GAAG,EAAA,EAAE,IAAI,CAAC,OAAO,CAAgB,CACjD,CACP,EACD,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACT,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-accordion/stzh-accordion.scss?tag=stzh-accordion&encapsulation=shadow","src/components/stzh-accordion/stzh-accordion.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 --margin-left: inherit;\n --margin-right: inherit;\n}\n\n.stzh-accordion {\n display: grid;\n gap: space(\"xsmall\");\n margin-left: var(--margin-left);\n margin-right: var(--margin-left);\n\n &__heading {\n @include spaceCurve(\"margin-bottom\", \"small\");\n }\n\n /* is nested within another accordion */\n\n &--is-nested {\n @include spaceCurve(\"margin-left\", \"regular\", true);\n @include spaceCurve(\"margin-right\", \"regular\", true);\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, 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 @State() isNested: boolean;\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 private checkIfNested() {\n let parentElement = this.element.parentElement;\n\n while (parentElement) {\n if (parentElement.tagName.toLowerCase() === \"stzh-accordion\") {\n this.isNested = true;\n break;\n }\n parentElement = parentElement.parentElement;\n }\n }\n\n componentDidLoad() {\n this.checkIfNested();\n }\n\n render() {\n const classes = {\n \"stzh-accordion\": true,\n \"stzh-accordion--is-nested\": this.isNested,\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"],"version":3}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, e as Host, t as transformTag } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, e as Host, t as transformTag } from './p-DqjRJcEM.js';
|
|
2
2
|
import { S as StzhSocialmediastreamItemActionVariant } from './p-uD4ilJut.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
5
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-mPSUVIkD.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-DK163sow.js';
|
|
5
|
+
import { d as defineCustomElement$1 } from './p-CIG3atcV.js';
|
|
6
6
|
|
|
7
7
|
const stzhSocialmediastreamItemCss = () => `:host{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}:host[hidden],:host[stzh-hidden]{display:none}:host::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}:host *,:host *::before,:host *::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}:host{}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.stzh-socialmediastream-item{display:block;background-color:var(--stzh-color-grey10);text-decoration:none;color:var(--stzh-color-grey80)}.stzh-socialmediastream-item:visited{color:var(--stzh-color-grey80)}.stzh-socialmediastream-item:hover{background-color:var(--stzh-color-secondary10);color:var(--stzh-color-black)}.stzh-socialmediastream-item__image{position:relative}.stzh-socialmediastream-item__ratio{--background-color:var(--image-background-color)}.stzh-socialmediastream-item__image-inner-wrapper{background-color:var(--image-background-color);position:absolute;inset:0;height:100%}.stzh-socialmediastream-item__image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.stzh-socialmediastream-item{}.stzh-socialmediastream-item__content{padding:var(--stzh-space-xsmall) var(--stzh-space-medium) var(--stzh-space-small);display:flex;flex-direction:column;gap:var(--stzh-space-small)}.stzh-socialmediastream-item{}.stzh-socialmediastream-item__content-head{display:flex;align-items:center}.stzh-socialmediastream-item__content-head stzh-icon{--color:var(--stzh-color-primary)}.stzh-socialmediastream-item__content-title{width:100%;--color:var(--stzh-color-grey80)}.stzh-socialmediastream-item:hover .stzh-socialmediastream-item__content-title{--color:var(--stzh-color-black)}.stzh-socialmediastream-item{}.stzh-socialmediastream-item__content-body{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);--color:var(--stzh-color-grey80)}.stzh-socialmediastream-item__content-body a{word-wrap:break-word;color:var(--stzh-link-color)}.stzh-socialmediastream-item__content-body a:hover{color:var(--stzh-link-hover-color)}.stzh-socialmediastream-item__content-body a+a{margin-left:var(--stzh-space-xxsmall)}.stzh-socialmediastream-item{}.stzh-socialmediastream-item__content-footer{display:flex;align-items:center;gap:var(--stzh-space-small)}.stzh-socialmediastream-item__action{text-decoration:none;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);color:var(--stzh-link-color);display:flex;align-items:center;gap:var(--stzh-space-xxsmall);line-height:1}.stzh-socialmediastream-item__action:hover{color:var(--stzh-link-hover-color)}.stzh-socialmediastream-item__action stzh-icon{--size:1rem}`;
|
|
8
8
|
|
|
@@ -81,7 +81,7 @@ const StzhSocialmediastreamItem = /*@__PURE__*/ proxyCustomElement(class StzhSoc
|
|
|
81
81
|
const classes = {
|
|
82
82
|
"stzh-socialmediastream-item": true,
|
|
83
83
|
};
|
|
84
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: 'e7d787f8148eef04218a926cb4b7189c6796c7e0' }, h("a", { key: '690ac288086406a9d11e8e4fd8332f589662e947', class: classes, href: this._item.link, target: "_blank" }, this._item.image && (h("div", { key: '1b3cb143afd80a5afcfd48c62dbca71c7b672068', class: "stzh-socialmediastream-item__image" }, h("stzh-ratio", { key: 'f7fee72dcc99e92967c13a66375a4ff9959002f5', ratio: "1:1" }), h("div", { key: 'd6523d9aa6311cff4289b9c52f62f3ecd74db8fd', class: "stzh-socialmediastream-item__image-inner-wrapper" }, h("img", { key: 'a3ec7ea302e72e0aac5412c3d3a5db3abf12bded', src: this._item.image, alt: this._item.account.title })))), h("div", { key: '52fb7f7f0d44f9d548e377d1e681423704cb523c', class: "stzh-socialmediastream-item__content" }, h("div", { key: '2d56fe0cd1b16c900b87d5d7937dcbf0b593a418', class: "stzh-socialmediastream-item__content-head" }, h("stzh-text", { key: 'e07413c6dcef65909d9e4dcf1344f4ca1aa8f216', size: "nano", class: "stzh-socialmediastream-item__content-title" }, h("strong", { key: 'cf3f638e0c0fdb3e72b1c12c5c4095149fbedb04' }, this._item.account.title), h("br", { key: '7c18dd610ed932011dd97a44656c944488929f85' }), this.dateAdapter.format(this.getParsedDate(this._item.date), "dateInput")), h("stzh-icon", { key: '92364d649bb26d43c79e631facdb848d2adf1f3f', name: this.getIconName(this._item) })), h("div", { key: 'e97e35e812e0032e329277fc15aeffc99c1b18e7', class: "stzh-socialmediastream-item__content-body", innerHTML: this._item.text }), h("div", { key: '0835c5fd538064e1a82b40f7af5ef90816d09353', class: "stzh-socialmediastream-item__content-footer 1q23" }, this._item.actions &&
|
|
85
85
|
this._item.actions.map(action => (h("a", { href: action.url, title: action.title, class: "stzh-socialmediastream-item__action", target: "_blank" }, h("stzh-icon", { name: this.getActionIconName(action.variant) }), action.count))))))));
|
|
86
86
|
}
|
|
87
87
|
get element() { return this; }
|
|
@@ -126,6 +126,6 @@ function defineCustomElement() {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
export { StzhSocialmediastreamItem as S, defineCustomElement as d };
|
|
129
|
-
//# sourceMappingURL=p-
|
|
129
|
+
//# sourceMappingURL=p-B3JVg6wh.js.map
|
|
130
130
|
|
|
131
|
-
//# sourceMappingURL=p-
|
|
131
|
+
//# sourceMappingURL=p-B3JVg6wh.js.map
|