@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
|
@@ -1,4 +1,4 @@
|
|
|
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 { a as api } from './p-Cpg2gH_9.js';
|
|
3
3
|
|
|
4
4
|
const stzhShowCss = () => `: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{--show-display:contents;--hide-display:none;--current-display:var(--hide-display);display:var(--current-display)}:host([mikro]){--current-display:var(--show-display)}:host([mikro=false]){--current-display:var(--hide-display)}@media screen and (min-width: 600px){:host([small]){--current-display:var(--show-display)}}@media screen and (min-width: 600px){:host([small=false]){--current-display:var(--hide-display)}}@media screen and (min-width: 900px){:host([medium]){--current-display:var(--show-display)}}@media screen and (min-width: 900px){:host([medium=false]){--current-display:var(--hide-display)}}@media screen and (min-width: 1260px){:host([large]){--current-display:var(--show-display)}}@media screen and (min-width: 1260px){:host([large=false]){--current-display:var(--hide-display)}}@media screen and (min-width: 1600px){:host([ultra]){--current-display:var(--show-display)}}@media screen and (min-width: 1600px){:host([ultra=false]){--current-display:var(--hide-display)}}`;
|
|
@@ -57,9 +57,9 @@ const StzhShow = /*@__PURE__*/ proxyCustomElement(class StzhShow extends H {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
const timeNow = Date.now();
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '127cc31da361580db8d9ffa32d5f26e9e9ae54d4', hidden: (this._showFromDate && timeNow <= this._showFromDate.getTime()) ||
|
|
61
61
|
(this._hideFromDate && timeNow >= this._hideFromDate.getTime()) ||
|
|
62
|
-
this.closedByCookie }, h("slot", { key: '
|
|
62
|
+
this.closedByCookie }, h("slot", { key: '7e3976c80768dfbdea6814f3347e4cdf282bdddc' })));
|
|
63
63
|
}
|
|
64
64
|
get element() { return this; }
|
|
65
65
|
static get watchers() { return {
|
|
@@ -95,6 +95,6 @@ function defineCustomElement() {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
export { StzhShow as S, defineCustomElement as d };
|
|
98
|
-
//# sourceMappingURL=p-
|
|
98
|
+
//# sourceMappingURL=p-C5ORTu7L.js.map
|
|
99
99
|
|
|
100
|
-
//# sourceMappingURL=p-
|
|
100
|
+
//# sourceMappingURL=p-C5ORTu7L.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-C5ORTu7L.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,MAAM,CAAC,k3DAAk3D,CAAC;;ACM94D,MAAM,gBAAgB,GAAG,4BAA4B;MAUxC,QAAQ,iBAAAA,kBAAA,CAAA,MAAA,QAAA,SAAAC,CAAA,CAAA;AALrB,IAAA,WAAA,CAAA,YAAA,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AA,IAAI,CAAC,aAAa,GAAG,QAAQ,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI;;aACpD;AACL,YAAA,IAAI,CAAC,aAAa,GAAG,QAAQ;;;IAQjC,iBAAiB,GAAA;AACf,QAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC;AAC3C,QAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC;;IAG7C,MAAM,GAAA;AACJ,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE;QAE1B,QACE,CAAC,CAAA,IAAI,qDACH,MAAM,EACJ,CAAC,IAAI,CAAC,aAAa,IAAI,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;AAC9D,iBAAC,IAAI,CAAC,aAAa,IAAI,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;AAC/D,gBAAA,IAAI,CAAC,cAAc,EAAA,EAGrB,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement","Cookie"],"sources":["src/components/stzh-show/stzh-show.scss?tag=stzh-show&encapsulation=shadow","src/components/stzh-show/stzh-show.tsx"],"sourcesContent":["/**\n * @prop --show-display: Display value that is used when content is shown (default `block`)\n * @prop --hide-display: Display value that is used when content is hidden (default `none`)\n * @prop --current-display: Current display value (readonly)\n */\n\n:host {\n --show-display: contents;\n --hide-display: none;\n --current-display: var(--hide-display);\n\n display: var(--current-display);\n}\n\n/* Mikro */\n\n:host([mikro]) {\n --current-display: var(--show-display);\n}\n\n:host([mikro=\"false\"]) {\n --current-display: var(--hide-display);\n}\n\n/* Small */\n\n:host([small]) {\n @include mq($from: small) {\n --current-display: var(--show-display);\n }\n}\n\n:host([small=\"false\"]) {\n @include mq($from: small) {\n --current-display: var(--hide-display);\n }\n}\n\n/* Medium */\n\n:host([medium]) {\n @include mq($from: medium) {\n --current-display: var(--show-display);\n }\n}\n\n:host([medium=\"false\"]) {\n @include mq($from: medium) {\n --current-display: var(--hide-display);\n }\n}\n\n/* Large */\n\n:host([large]) {\n @include mq($from: large) {\n --current-display: var(--show-display);\n }\n}\n\n:host([large=\"false\"]) {\n @include mq($from: large) {\n --current-display: var(--hide-display);\n }\n}\n\n/* Ultra */\n\n:host([ultra]) {\n @include mq($from: ultra) {\n --current-display: var(--show-display);\n }\n}\n\n:host([ultra=\"false\"]) {\n @include mq($from: ultra) {\n --current-display: var(--hide-display);\n }\n}\n","import { Component, Host, h, Element, Prop, Watch, Listen } from \"@stencil/core\";\n\nimport { StzhBannerCloseEvent, StzhGhettoboxCloseEvent, StzhMessageCloseEvent } from \"../../index\";\n\nimport Cookie from \"js-cookie\";\n\nconst KEY_PREFIX_CLOSE = \"stzh-components-show-close\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-show\",\n styleUrl: \"stzh-show.scss\",\n shadow: true,\n})\nexport class StzhShow {\n /** Mikro */\n @Prop({ reflect: true }) mikro: boolean;\n\n /** Small */\n @Prop({ reflect: true }) small: boolean;\n\n /** Medium */\n @Prop({ reflect: true }) medium: boolean;\n\n /** Large */\n @Prop({ reflect: true }) large: boolean;\n\n /** Ultra */\n @Prop({ reflect: true }) ultra: boolean;\n\n /** Show from date */\n @Prop() showFromDate: Date | string;\n private _showFromDate: Date;\n\n /** Hide from date */\n @Prop() hideFromDate: Date | string;\n private _hideFromDate: Date;\n\n /**\n * Close cookie name key.\n * Component will check for the cookie (stzh-components-show-close-{name})\n * and if not empty (component inside already closed before) will hide show.\n * Will also compare with showFromDate if given, to make sure cookie was set after showFromDate (otherwise will show again).\n */\n @Prop() closeKey: string = \"\";\n\n @Listen(\"stzhClose\")\n closeWatcher(event: CustomEvent<StzhBannerCloseEvent | StzhMessageCloseEvent | StzhGhettoboxCloseEvent>) {\n if ([\"stzh-banner\", \"stzh-message\", \"stzh-ghettobox\"].includes(event.detail.component)) {\n if (this.closeKey) {\n Cookie.set(`${KEY_PREFIX_CLOSE}-${this.closeKey}`, Date.now().toString());\n }\n }\n }\n\n @Watch(\"showFromDate\")\n showFromDateWatcher(newValue: Date | string) {\n if (typeof newValue === \"string\") {\n this._showFromDate = newValue ? new Date(newValue) : null;\n } else {\n this._showFromDate = newValue;\n }\n\n let closedByCookie = false;\n\n if (this.closeKey) {\n const timeClosed = Cookie.get(`${KEY_PREFIX_CLOSE}-${this.closeKey}`);\n\n if (timeClosed && (!this._showFromDate || Number(timeClosed) >= this._showFromDate.getTime())) {\n closedByCookie = true;\n }\n }\n\n this.closedByCookie = closedByCookie;\n }\n\n @Watch(\"hideFromDate\")\n hideFromDateWatcher(newValue: Date | string) {\n if (typeof newValue === \"string\") {\n this._hideFromDate = newValue ? new Date(newValue) : null;\n } else {\n this._hideFromDate = newValue;\n }\n }\n\n @Element() element: HTMLStzhShowElement;\n\n private closedByCookie: boolean = false;\n\n componentWillLoad() {\n this.showFromDateWatcher(this.showFromDate);\n this.hideFromDateWatcher(this.hideFromDate);\n }\n\n render() {\n const timeNow = Date.now();\n\n return (\n <Host\n hidden={\n (this._showFromDate && timeNow <= this._showFromDate.getTime()) ||\n (this._hideFromDate && timeNow >= this._hideFromDate.getTime()) ||\n this.closedByCookie\n }\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,8 +1,8 @@
|
|
|
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$4 } from './p-
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
5
|
-
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$4 } from './p-Dn7rMHvA.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-DvCfh0K2.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-mPSUVIkD.js';
|
|
5
|
+
import { d as defineCustomElement$1 } from './p-CxqE2nhG.js';
|
|
6
6
|
|
|
7
7
|
const stzhTagCss = () => `.sc-stzh-tag-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-tag-h,[stzh-hidden].sc-stzh-tag-h{display:none}.sc-stzh-tag-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-tag-h *.sc-stzh-tag,.sc-stzh-tag-h *.sc-stzh-tag::before,.sc-stzh-tag-h *.sc-stzh-tag::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-tag-h .has-focus.sc-stzh-tag{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-tag-h .stzh-fylingfocus-focused.sc-stzh-tag{outline-style:none !important}.sc-stzh-tag-h .stzh-fylingfocus-focused.sc-stzh-tag::-moz-focus-inner{border:0 !important}.sc-stzh-tag-h{--color:var(--stzh-tag-color, var(--stzh-color-secondary60));--height:1.5rem;--padding-top:0;--padding-bottom:0;--padding-left:calc(var(--stzh-space-small) - var(--border-width));--padding-right:calc(var(--stzh-space-small) - var(--border-width));--border-width:0px;--background-color:var(--stzh-tag-background-color, var(--stzh-color-grey20));--hover-color:var(--stzh-tag-hover-color, var(--stzh-color-secondary60));--hover-background-color:var(
|
|
8
8
|
--stzh-tag-hover-background-color,
|
|
@@ -107,7 +107,7 @@ const StzhTag = /*@__PURE__*/ proxyCustomElement(class StzhTag extends H {
|
|
|
107
107
|
[`stzh-tag--${this.nonInteractive ? "not" : "is"}-interactive`]: true,
|
|
108
108
|
};
|
|
109
109
|
const Tag = this.nonInteractive ? "div" : this.href ? "a" : "button";
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '18b13050db1bb0d7bb10a21a84534c1627137c57', tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: '57a7bb1a02694ea343df1402086a3080dd1f2a9c', class: classes }, this.href ? (h(Tag, { ref: el => (this.tag = el), class: {
|
|
111
111
|
"stzh-tag__button": true,
|
|
112
112
|
"is-button": !this.nonInteractive && !this.href,
|
|
113
113
|
"is-link": !this.nonInteractive && !!this.href,
|
|
@@ -168,6 +168,6 @@ function defineCustomElement() {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
export { StzhTag as S, defineCustomElement as d };
|
|
171
|
-
//# sourceMappingURL=p-
|
|
171
|
+
//# sourceMappingURL=p-CDOLFG2o.js.map
|
|
172
172
|
|
|
173
|
-
//# sourceMappingURL=p-
|
|
173
|
+
//# sourceMappingURL=p-CDOLFG2o.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-D7YAOnX0.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,MAAM,CAAC;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,koFAAkoF,CAAC;;MCHtnF,OAAO,iBAAAA,kBAAA,CAAA,MAAA,OAAA,SAAAC,CAAA,CAAA;AALpB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;;AAOU,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAGlB,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAM,CAAA,MAAA,GAAW,EAAE;;AAGF,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;;AAG/B,QAAA,IAAI,CAAA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,CAAA,GAAG,IACF,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,GAAG,EAAwC,CAAC,EAChE,KAAK,EAAE;AACL,gBAAA,kBAAkB,EAAE,IAAI;gBACxB,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI;gBAC/C,SAAS,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;AAC/C,aAAA,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,EACf,YAAA,EAAA,IAAI,CAAC,SAAS,IAAI,IAAI,EAChB,kBAAA,EAAA,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EAElB,EAAA,IAAI,CAAC,WAAW,EAAE,CACf,CACP,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-tag/stzh-tag.scss?tag=stzh-tag&encapsulation=scoped","src/components/stzh-tag/stzh-tag.tsx"],"sourcesContent":["/**\n * @prop --height: Height of tag\n * @prop --padding-top: Padding top of tag\n * @prop --padding-bottom: Padding bottom of tag\n * @prop --padding-left: Padding left of tag\n * @prop --padding-right: Padding right of tag\n * @prop --border-width: Border width of tag\n * @prop --color: Color of tag\n * @prop --background-color: Background color of tag\n * @prop --hover-color: Hover color of tag\n * @prop --hover-background-color: Hover background color of tag\n */\n\n@mixin tag--forced-colors-default() {\n --border-width: 2px;\n\n --color: CanvasText;\n --border-color: CanvasText;\n --background-color: Canvas;\n\n --hover-color: CanvasText;\n --hover-border-color: CanvasText;\n --hover-background-color: Canvas;\n}\n\n@mixin tag--forced-colors-button() {\n --border-width: 2px;\n\n --color: ButtonText;\n --border-color: ButtonBorder;\n --background-color: ButtonFace;\n\n --hover-color: HighlightText;\n --hover-border-color: Highlight;\n --hover-background-color: Highlight;\n}\n\n@mixin tag--forced-colors-link() {\n --border-width: 2px;\n\n --color: LinkText;\n --border-color: LinkText;\n --background-color: Canvas;\n\n --hover-color: LinkText;\n --hover-border-color: LinkText;\n --hover-background-color: Canvas;\n}\n\n@mixin button--forced-colors-disabled() {\n --border-width: 2px;\n\n --color: GrayText;\n --border-color: GrayText;\n --background-color: Canvas;\n\n --hover-color: GrayText;\n --hover-border-color: GrayText;\n --hover-background-color: Canvas;\n}\n\n:host {\n --color: var(--stzh-tag-color, #{$colorSecondary60});\n --height: 24px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: calc(#{space(\"small\")} - var(--border-width));\n --padding-right: calc(#{space(\"small\")} - var(--border-width));\n --border-width: 0px;\n --background-color: var(--stzh-tag-background-color, #{$colorGrey20});\n\n --hover-color: var(--stzh-tag-hover-color, #{$colorSecondary60});\n --hover-background-color: var(\n --stzh-tag-hover-background-color,\n var(--background-color)\n );\n\n display: inline-flex;\n\n &[size=\"large\"] {\n --height: 32px;\n }\n\n &[size=\"default\"][type=\"secondary\"] {\n --background-color: var(\n --stzh-tag-secondary-background-color,\n #{$colorSecondary60}\n );\n }\n\n &[type=\"secondary\"] {\n --color: var(--stzh-tag-secondary-color, #{$colorWhite});\n --background-color: var(\n --stzh-tag-secondary-background-color,\n #{$colorSecondary60}\n );\n --hover-color: var(--stzh-tag-secondary-hover-color, #{$colorWhite});\n --hover-background-color: var(\n --stzh-tag-secondary-hover-background-color,\n var(--background-color)\n );\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-tag-disabled-color, #{$colorGrey70});\n --background-color: var(\n --stzh-tag-disabled-background-color,\n #{$colorGrey20}\n );\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n}\n\n.stzh-tag {\n position: relative;\n\n &__button {\n @include fontSize(\"nano\");\n font-family: inherit;\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n appearance: none;\n border: var(--border-width) solid transparent;\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n\n @media (forced-colors: active) {\n transition: none;\n }\n }\n\n &__label {\n text-align: left;\n\n @media (forced-colors: active) {\n forced-color-adjust: preserve-parent-color;\n }\n }\n\n &__button:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n /* Size */\n\n &--size-large &__button {\n @include font(\"heavy\");\n @include fontSize(\"milli\");\n }\n\n /* Non-Interactive */\n &--not-interactive {\n @media (forced-colors: active) {\n @include tag--forced-colors-default;\n }\n }\n\n /* Interactive & Button */\n &--is-interactive#{&}--no-href {\n @media (forced-colors: active) {\n @include tag--forced-colors-button;\n }\n }\n\n /* Interactive & Link */\n &--is-interactive#{&}--has-href {\n @media (forced-colors: active) {\n @include tag--forced-colors-link;\n }\n }\n\n /* Disabled */\n &--is-disabled &__button {\n cursor: not-allowed;\n\n @media (forced-colors: active) {\n @include button--forced-colors-disabled;\n }\n }\n}\n","import { Component, Host, h, Prop, Event, EventEmitter, Element, Fragment } from \"@stencil/core\";\n\nimport { StzhTagType, StzhTagSize, StzhTagClickEvent, StzhTagFocusEvent, StzhTagBlurEvent } from \"../../index\";\n\n/**\n * @slot - Slot for label\n */\n@Component({\n tag: \"stzh-tag\",\n styleUrl: \"stzh-tag.scss\",\n scoped: true,\n})\nexport class StzhTag {\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the tag should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether tag is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhTagType = \"default\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhTagSize = \"default\";\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhTagElement;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhTagClickEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhTagFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhTagBlurEvent>;\n\n private tag: HTMLButtonElement | HTMLAnchorElement | HTMLDivElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n if (!this.nonInteractive) {\n this.tag?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n }\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <Fragment>\n <stzh-clamp lines={1} class=\"stzh-tag__label\" ref={el => (this.text = el as HTMLElement)}>\n {this.label ? this.label : <slot></slot>}\n </stzh-clamp>\n </Fragment>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.tag.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n render() {\n const classes = {\n \"stzh-tag\": true,\n \"stzh-tag--is-disabled\": this.disabled,\n [`stzh-tag--size-${this.size}`]: !!this.size,\n [`stzh-tag--${this.type}`]: !!this.type,\n [`stzh-tag--${this.href ? \"has\" : \"no\"}-href`]: true,\n [`stzh-tag--${this.nonInteractive ? \"not\" : \"is\"}-interactive`]: true,\n };\n\n const Tag = this.nonInteractive ? \"div\" : this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.href ? (\n <Tag\n ref={el => (this.tag = el as HTMLAnchorElement)}\n class={{\n \"stzh-tag__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Tag>\n ) : (\n <Tag\n ref={el => (this.tag = el as HTMLButtonElement | HTMLDivElement)}\n class={{\n \"stzh-tag__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Tag>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-CDOLFG2o.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,MAAM,CAAC;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,koFAAkoF,CAAC;;MCHtnF,OAAO,iBAAAA,kBAAA,CAAA,MAAA,OAAA,SAAAC,CAAA,CAAA;AALpB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;;AAOU,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAGlB,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAM,CAAA,MAAA,GAAW,EAAE;;AAGF,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;;AAG/B,QAAA,IAAI,CAAA,IAAA,GAAgB,SAAS;;AAG7B,QAAA,IAAI,CAAA,IAAA,GAAgB,SAAS;;AAG7B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAST,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AA6B7D,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;AAoB/B,QAAA,IAAW,CAAA,WAAA,GAAG,MAAK;AACzB,YAAA,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;AACxB,gBAAA,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE;;AAGlB,YAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,SAAC;AAEO,QAAA,IAAA,CAAA,OAAO,GAAG,CAAC,KAAiB,KAAI;AACtC,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI;AAE1B,YAAA,MAAM,UAAU,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C,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EAElB,EAAA,IAAI,CAAC,WAAW,EAAE,CACf,CACP,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-tag/stzh-tag.scss?tag=stzh-tag&encapsulation=scoped","src/components/stzh-tag/stzh-tag.tsx"],"sourcesContent":["/**\n * @prop --height: Height of tag\n * @prop --padding-top: Padding top of tag\n * @prop --padding-bottom: Padding bottom of tag\n * @prop --padding-left: Padding left of tag\n * @prop --padding-right: Padding right of tag\n * @prop --border-width: Border width of tag\n * @prop --color: Color of tag\n * @prop --background-color: Background color of tag\n * @prop --hover-color: Hover color of tag\n * @prop --hover-background-color: Hover background color of tag\n */\n\n@mixin tag--forced-colors-default() {\n --border-width: 2px;\n\n --color: CanvasText;\n --border-color: CanvasText;\n --background-color: Canvas;\n\n --hover-color: CanvasText;\n --hover-border-color: CanvasText;\n --hover-background-color: Canvas;\n}\n\n@mixin tag--forced-colors-button() {\n --border-width: 2px;\n\n --color: ButtonText;\n --border-color: ButtonBorder;\n --background-color: ButtonFace;\n\n --hover-color: HighlightText;\n --hover-border-color: Highlight;\n --hover-background-color: Highlight;\n}\n\n@mixin tag--forced-colors-link() {\n --border-width: 2px;\n\n --color: LinkText;\n --border-color: LinkText;\n --background-color: Canvas;\n\n --hover-color: LinkText;\n --hover-border-color: LinkText;\n --hover-background-color: Canvas;\n}\n\n@mixin button--forced-colors-disabled() {\n --border-width: 2px;\n\n --color: GrayText;\n --border-color: GrayText;\n --background-color: Canvas;\n\n --hover-color: GrayText;\n --hover-border-color: GrayText;\n --hover-background-color: Canvas;\n}\n\n:host {\n --color: var(--stzh-tag-color, #{$colorSecondary60});\n --height: 24px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: calc(#{space(\"small\")} - var(--border-width));\n --padding-right: calc(#{space(\"small\")} - var(--border-width));\n --border-width: 0px;\n --background-color: var(--stzh-tag-background-color, #{$colorGrey20});\n\n --hover-color: var(--stzh-tag-hover-color, #{$colorSecondary60});\n --hover-background-color: var(\n --stzh-tag-hover-background-color,\n var(--background-color)\n );\n\n display: inline-flex;\n\n &[size=\"large\"] {\n --height: 32px;\n }\n\n &[size=\"default\"][type=\"secondary\"] {\n --background-color: var(\n --stzh-tag-secondary-background-color,\n #{$colorSecondary60}\n );\n }\n\n &[type=\"secondary\"] {\n --color: var(--stzh-tag-secondary-color, #{$colorWhite});\n --background-color: var(\n --stzh-tag-secondary-background-color,\n #{$colorSecondary60}\n );\n --hover-color: var(--stzh-tag-secondary-hover-color, #{$colorWhite});\n --hover-background-color: var(\n --stzh-tag-secondary-hover-background-color,\n var(--background-color)\n );\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-tag-disabled-color, #{$colorGrey70});\n --background-color: var(\n --stzh-tag-disabled-background-color,\n #{$colorGrey20}\n );\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n}\n\n.stzh-tag {\n position: relative;\n\n &__button {\n @include fontSize(\"nano\");\n font-family: inherit;\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n appearance: none;\n border: var(--border-width) solid transparent;\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n\n @media (forced-colors: active) {\n transition: none;\n }\n }\n\n &__label {\n text-align: left;\n\n @media (forced-colors: active) {\n forced-color-adjust: preserve-parent-color;\n }\n }\n\n &__button:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n /* Size */\n\n &--size-large &__button {\n @include font(\"heavy\");\n @include fontSize(\"milli\");\n }\n\n /* Non-Interactive */\n &--not-interactive {\n @media (forced-colors: active) {\n @include tag--forced-colors-default;\n }\n }\n\n /* Interactive & Button */\n &--is-interactive#{&}--no-href {\n @media (forced-colors: active) {\n @include tag--forced-colors-button;\n }\n }\n\n /* Interactive & Link */\n &--is-interactive#{&}--has-href {\n @media (forced-colors: active) {\n @include tag--forced-colors-link;\n }\n }\n\n /* Disabled */\n &--is-disabled &__button {\n cursor: not-allowed;\n\n @media (forced-colors: active) {\n @include button--forced-colors-disabled;\n }\n }\n}\n","import { Component, Host, h, Prop, Event, EventEmitter, Element, Fragment } from \"@stencil/core\";\n\nimport { StzhTagType, StzhTagSize, StzhTagClickEvent, StzhTagFocusEvent, StzhTagBlurEvent } from \"../../index\";\n\n/**\n * @slot - Slot for label\n */\n@Component({\n tag: \"stzh-tag\",\n styleUrl: \"stzh-tag.scss\",\n scoped: true,\n})\nexport class StzhTag {\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the tag should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether tag is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhTagType = \"default\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhTagSize = \"default\";\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhTagElement;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhTagClickEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhTagFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhTagBlurEvent>;\n\n private tag: HTMLButtonElement | HTMLAnchorElement | HTMLDivElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n if (!this.nonInteractive) {\n this.tag?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n }\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <Fragment>\n <stzh-clamp lines={1} class=\"stzh-tag__label\" ref={el => (this.text = el as HTMLElement)}>\n {this.label ? this.label : <slot></slot>}\n </stzh-clamp>\n </Fragment>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.tag.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n render() {\n const classes = {\n \"stzh-tag\": true,\n \"stzh-tag--is-disabled\": this.disabled,\n [`stzh-tag--size-${this.size}`]: !!this.size,\n [`stzh-tag--${this.type}`]: !!this.type,\n [`stzh-tag--${this.href ? \"has\" : \"no\"}-href`]: true,\n [`stzh-tag--${this.nonInteractive ? \"not\" : \"is\"}-interactive`]: true,\n };\n\n const Tag = this.nonInteractive ? \"div\" : this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.href ? (\n <Tag\n ref={el => (this.tag = el as HTMLAnchorElement)}\n class={{\n \"stzh-tag__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Tag>\n ) : (\n <Tag\n ref={el => (this.tag = el as HTMLButtonElement | HTMLDivElement)}\n class={{\n \"stzh-tag__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Tag>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
|
3
3
|
const stzhTextCss = () => `.sc-stzh-text-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-text-h,[stzh-hidden].sc-stzh-text-h{display:none}.sc-stzh-text-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-text-h *.sc-stzh-text,.sc-stzh-text-h *.sc-stzh-text::before,.sc-stzh-text-h *.sc-stzh-text::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-text-h .has-focus.sc-stzh-text{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-text-h .stzh-fylingfocus-focused.sc-stzh-text{outline-style:none !important}.sc-stzh-text-h .stzh-fylingfocus-focused.sc-stzh-text::-moz-focus-inner{border:0 !important}.sc-stzh-text-h{--icon-size:1.25em;--icon-vertical-align:text-bottom;--color:var(--stzh-base-color);--display:var(--stzh-text-display, block);width:100%;color:var(--color);--grid-template-areas:var(
|
|
4
4
|
--stzh-text-grid-template-areas,
|
|
@@ -43,7 +43,7 @@ const StzhText = /*@__PURE__*/ proxyCustomElement(class StzhText extends H {
|
|
|
43
43
|
this.sizeUltra = "inherit";
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '28e2e7b5a061565551898f4d509ba0b7908f592b' }, h("div", { key: '66cdf412433d270244f654af9d633bcc13a46fb8', class: {
|
|
47
47
|
"stzh-text": true,
|
|
48
48
|
"stzh-text--is-lead": this.lead,
|
|
49
49
|
[`stzh-text--font-${this.font}`]: !!this.font,
|
|
@@ -53,7 +53,7 @@ const StzhText = /*@__PURE__*/ proxyCustomElement(class StzhText extends H {
|
|
|
53
53
|
[`stzh-text--size-medium-${this.sizeMedium}`]: !!this.sizeMedium,
|
|
54
54
|
[`stzh-text--size-large-${this.sizeLarge}`]: !!this.sizeLarge,
|
|
55
55
|
[`stzh-text--size-ultra-${this.sizeUltra}`]: !!this.sizeUltra,
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: 'b0f364a885dea731283b76d14023490e34531417', class: "stzh-text__text" }, h("div", { key: '2f6ffe17910f84a2092f51a51151ff12f0e70102', class: "stzh-text__icon" }, h("slot", { key: '9ed2b8653b000a1eac82ae1476e30840057f2757', name: "icon" })), h("div", { key: '43b231aebbf9ce3fd072ffd087e4309b7f050299', class: "stzh-text__text-inner" }, h("slot", { key: 'ab35e6f3f752fe416f3784c066eb7f23233a536d' }))))));
|
|
57
57
|
}
|
|
58
58
|
static get style() { return stzhTextCss(); }
|
|
59
59
|
}, [262, "stzh-text", {
|
|
@@ -82,6 +82,6 @@ function defineCustomElement() {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export { StzhText as S, defineCustomElement as d };
|
|
85
|
-
//# sourceMappingURL=p-
|
|
85
|
+
//# sourceMappingURL=p-CIG3atcV.js.map
|
|
86
86
|
|
|
87
|
-
//# sourceMappingURL=p-
|
|
87
|
+
//# sourceMappingURL=p-CIG3atcV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-CIG3atcV.js","mappings":";;AAAA,MAAM,WAAW,GAAG,MAAM,CAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6/qCAA6/qC,CAAC;;MCFj/qC,QAAQ,iBAAAA,kBAAA,CAAA,MAAA,QAAA,SAAAC,CAAA,CAAA;AALrB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AAOU,QAAA,IAAI,CAAA,IAAA,GAAe,SAAS;;AAGX,QAAA,IAAK,CAAA,KAAA,GAAgB,SAAS;;AAG9B,QAAA,IAAI,CAAA,IAAA,GAAY,KAAK;;AAGrB,QAAA,IAAK,CAAA,KAAA,GAA6D,SAAS;;AAG5F,QAAA,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EAAC,iBAAiB,EAAA,EAC1B,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iBAAiB,EAAA,EAC1B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,EAAA,CAAQ,CACrB,EACN,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,uBAAuB,EAAA,EAChC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,CACF,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-text/stzh-text.scss?tag=stzh-text&encapsulation=scoped","src/components/stzh-text/stzh-text.tsx"],"sourcesContent":["/**\n * @prop --color: Text color (also `color` can be overwritten)\n * @prop --icon-size: Icon size\n * @prop --icon-vertical-align: Icon vertical alignment\n *\n * @prop --stzh-base-color: **Global**: Text color\n * @prop --stzh-base-lead-color: **Global**: Lead text color\n */\n\n:host {\n --icon-size: 1.25em;\n --icon-vertical-align: text-bottom;\n --color: #{$baseColor};\n --display: var(--stzh-text-display, block);\n\n width: 100%;\n color: var(--color);\n\n --grid-template-areas: var(\n --stzh-text-grid-template-areas,\n \"text text text text\"\n );\n\n --grid-template-columns: var(\n --stzh-text-grid-template-columns,\n #{$gridColumns}\n );\n\n @include mq($from: small) {\n --grid-template-areas: var(\n --stzh-text-grid-template-areas,\n \"text text text text\"\n );\n }\n\n @include mq($from: medium) {\n --grid-template-areas: var(\n --stzh-text-grid-template-areas,\n \"text text text text text text text text\"\n );\n\n --grid-template-columns: var(\n --stzh-text-grid-template-columns,\n #{$gridColumnsMedium}\n );\n }\n\n ::slotted(*:first-child) {\n margin-top: 0 !important;\n }\n\n ::slotted(*:last-child) {\n margin-bottom: 0 !important;\n }\n\n ::slotted(a),\n ::slotted(* a) {\n color: $linkColor;\n transition: color $baseTransitionAnimationSpeed;\n border-radius: $buttonBorderRadius;\n text-underline-offset: $linkTextUnderlineOffset;\n text-decoration-line: $linkTextDecorationLine;\n text-decoration-thickness: $linkTextDecorationThickness;\n text-decoration-skip-ink: $linkTextDecorationSkipInk;\n\n &:hover {\n color: $linkHoverColor;\n text-decoration-line: $linkHoverTextDecorationLine;\n\n @media (hover: none) {\n color: inherit;\n }\n }\n }\n\n ::slotted(b),\n ::slotted(strong),\n ::slotted(* b),\n ::slotted(* strong) {\n @include font(\"heavy\");\n }\n\n ::slotted(i),\n ::slotted(em),\n ::slotted(* i),\n ::slotted(* em) {\n @include font;\n }\n\n &[lead]:not([lead=\"false\"]) {\n --color: #{$baseLeadColor};\n }\n\n &[color=\"primary\"] {\n --color: #{$colorPrimary70};\n }\n\n &[color=\"secondary\"] {\n --color: #{$colorSecondary60};\n }\n\n &[color=\"info\"] {\n --color: #{$textInfoColor};\n }\n\n &[color=\"inherit\"] {\n --color: initial;\n }\n}\n\n.stzh-text {\n --stzh-icon-size: var(--icon-size);\n --stzh-icon-vertical-align: var(--icon-vertical-align);\n\n --stzh-list-font-size: \"\";\n --stzh-list-line-height: \"\";\n --stzh-list-letter-spacing: \"\";\n\n // default font styling without attributes\n @include fontCurve($textFontCurveDefault);\n @include gridGutter;\n display: var(--display);\n grid-template-areas: var(--grid-template-areas);\n grid-template-columns: var(--grid-template-columns);\n\n color: var(--color);\n\n &__text {\n grid-area: text;\n display: flex;\n }\n\n &__icon {\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: 0.25em;\n }\n }\n\n &__text-inner {\n flex-grow: 1;\n }\n\n /* Lead variant */\n\n &--is-lead {\n @include font(\"heavy\");\n @include fontCurve(\"lead\", \"lead\");\n }\n\n /* Font variants */\n\n @each $font, $value in $fonts {\n &--font-#{$font} {\n @include font($font);\n }\n }\n\n /* Curve variants */\n\n &--curve-none {\n font-size: inherit;\n }\n\n @each $fontCurveName, $config in $fontCurves {\n &--curve-#{$fontCurveName} {\n @include fontCurve($fontCurveName);\n }\n }\n\n /* Size variants when consumer wants to overwrite predefined font curves */\n\n @each $size, $value in $fontSizes {\n &--size-#{$size} {\n @include fontSize($size);\n }\n }\n\n @each $breakpoint, $size in $breakpoints {\n @each $size, $value in $fontSizes {\n &--size-#{$breakpoint}-#{$size} {\n @include mq($from: $breakpoint) {\n @include fontSize($size);\n }\n }\n }\n }\n}\n\n.stzh-text__text-inner {\n text-overflow: var(--text-overflow, clip);\n white-space: var(--white-space, normal);\n overflow: var(--overflow, visible);\n width: var(--width, initial);\n max-width: var(--max-width, initial);\n}\n","import { Component, Host, h, Prop } from \"@stencil/core\";\n\nimport { Font } from \"../../index\";\n\n/**\n * @slot - Slot for text and icons\n * @slot icon - Slot for icon that should be on left side of the text (not inline)\n */\n@Component({\n tag: \"stzh-text\",\n styleUrl: \"stzh-text.scss\",\n scoped: true,\n})\nexport class StzhText {\n /** Font used */\n @Prop() font: Font.Fonts = \"default\";\n\n /** Type of curve (see [Spacings docs page](/docs/tokens-typography--docs#curves) for more info). */\n @Prop({ reflect: true }) curve: Font.Curves = \"default\";\n\n /** Whether if text is lead text */\n @Prop({ reflect: true }) lead: boolean = false;\n\n /** Color used */\n @Prop({ reflect: true }) color: \"default\" | \"primary\" | \"secondary\" | \"info\" | \"inherit\" = \"default\";\n\n /** Manually overwrite font size applied by curve attribute (see [Spacings docs page](/docs/tokens-typography--docs#sizes) for more info). */\n @Prop() size: Font.Sizes | \"inherit\" = \"inherit\";\n /** Manually overwrite font size applied by curve attribute above small breakpoint (see [Spacings docs page](/docs/tokens-typography--docs#sizes) for more info). */\n @Prop() sizeSmall: Font.Sizes | \"inherit\" = \"inherit\";\n /** Manually overwrite font size applied by curve attribute above medium breakpoint (see [Spacings docs page](/docs/tokens-typography--docs#sizes) for more info). */\n @Prop() sizeMedium: Font.Sizes | \"inherit\" = \"inherit\";\n /** Manually overwrite font size applied by curve attribute above large breakpoint (see [Spacings docs page](/docs/tokens-typography--docs#sizes) for more info). */\n @Prop() sizeLarge: Font.Sizes | \"inherit\" = \"inherit\";\n /** Manually overwrite font size applied by curve attribute above ultra breakpoint (see [Spacings docs page](/docs/tokens-typography--docs#sizes) for more info). */\n @Prop() sizeUltra: Font.Sizes | \"inherit\" = \"inherit\";\n\n render() {\n return (\n <Host>\n <div\n class={{\n \"stzh-text\": true,\n \"stzh-text--is-lead\": this.lead,\n [`stzh-text--font-${this.font}`]: !!this.font,\n [`stzh-text--curve-${this.curve}`]: !!this.curve,\n [`stzh-text--size-${this.size}`]: !!this.size,\n [`stzh-text--size-small-${this.sizeSmall}`]: !!this.sizeSmall,\n [`stzh-text--size-medium-${this.sizeMedium}`]: !!this.sizeMedium,\n [`stzh-text--size-large-${this.sizeLarge}`]: !!this.sizeLarge,\n [`stzh-text--size-ultra-${this.sizeUltra}`]: !!this.sizeUltra,\n }}\n >\n <div class=\"stzh-text__text\">\n <div class=\"stzh-text__icon\">\n <slot name=\"icon\"></slot>\n </div>\n <div class=\"stzh-text__text-inner\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as createEvent, h, e as Host, t as transformTag } from './p-
|
|
2
|
-
import { h as hasSlot } from './p-
|
|
3
|
-
import { S as StzhInputDescription } from './p-
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, e as Host, t as transformTag } from './p-DqjRJcEM.js';
|
|
2
|
+
import { a as hasDefaultSlotContent, h as hasSlot } from './p-DBHUqFOB.js';
|
|
3
|
+
import { S as StzhInputDescription } from './p-CbIALTef.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './p-mPSUVIkD.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-Bi0j3C9E.js';
|
|
6
|
+
import { d as defineCustomElement$1 } from './p-CIG3atcV.js';
|
|
7
7
|
|
|
8
8
|
const stzhRadioCss = () => `.sc-stzh-radio-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-radio-h,[stzh-hidden].sc-stzh-radio-h{display:none}.sc-stzh-radio-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::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-radio-h .has-focus.sc-stzh-radio{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio{outline-style:none !important}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio::-moz-focus-inner{border:0 !important}.sc-stzh-radio-h{--label-color:var(--stzh-radio-label-color, var(--stzh-base-color));--label-hover-color:var(--stzh-radio-label-hover-color, var(--stzh-color-primary70));--label-hover-checked-color:var(
|
|
9
9
|
--stzh-radio-label-hover-checked-color,
|
|
@@ -38,6 +38,18 @@ const StzhRadio = /*@__PURE__*/ proxyCustomElement(class StzhRadio extends H {
|
|
|
38
38
|
this.label = "";
|
|
39
39
|
/** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */
|
|
40
40
|
this.a11yDescribedby = "";
|
|
41
|
+
/**
|
|
42
|
+
* Whether the component has meaningful default-slot content.
|
|
43
|
+
* Becomes obsolete with the implementation of PDESI-1908.
|
|
44
|
+
*/
|
|
45
|
+
this.hasDefaultSlot = false;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates whether default-slot content detection has run at least once.
|
|
48
|
+
* Used to avoid rendering state-dependent markup before the slot content
|
|
49
|
+
* has been evaluated.
|
|
50
|
+
* Becomes obsolete with the implementation of PDESI-1908.
|
|
51
|
+
*/
|
|
52
|
+
this.hasResolvedDefaultSlot = false;
|
|
41
53
|
this.focusedByInput = false;
|
|
42
54
|
this.handleReset = async () => {
|
|
43
55
|
this.checked = this.defaultChecked;
|
|
@@ -82,6 +94,19 @@ const StzhRadio = /*@__PURE__*/ proxyCustomElement(class StzhRadio extends H {
|
|
|
82
94
|
originalEvent: event,
|
|
83
95
|
});
|
|
84
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* Re-evaluates default-slot content and updates the related render state.
|
|
99
|
+
* Becomes obsolete with implementation of PDESI-1908.
|
|
100
|
+
*/
|
|
101
|
+
this.updateDefaultSlotState = () => {
|
|
102
|
+
const hasDefaultSlot = hasDefaultSlotContent(this.element, ["stzh-radio"]);
|
|
103
|
+
if (this.hasDefaultSlot !== hasDefaultSlot) {
|
|
104
|
+
this.hasDefaultSlot = hasDefaultSlot;
|
|
105
|
+
}
|
|
106
|
+
if (!this.hasResolvedDefaultSlot) {
|
|
107
|
+
this.hasResolvedDefaultSlot = true;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
85
110
|
}
|
|
86
111
|
resetListener(event) {
|
|
87
112
|
if (event.target.contains(this.element)) {
|
|
@@ -111,6 +136,9 @@ const StzhRadio = /*@__PURE__*/ proxyCustomElement(class StzhRadio extends H {
|
|
|
111
136
|
this._error = [];
|
|
112
137
|
}
|
|
113
138
|
}
|
|
139
|
+
componentDidLoad() {
|
|
140
|
+
this.updateDefaultSlotState();
|
|
141
|
+
}
|
|
114
142
|
async componentWillLoad() {
|
|
115
143
|
this.inputId = `stzh-radio-${radioCounter++}`;
|
|
116
144
|
this.errorWatcher(this.error);
|
|
@@ -124,6 +152,8 @@ const StzhRadio = /*@__PURE__*/ proxyCustomElement(class StzhRadio extends H {
|
|
|
124
152
|
const descriptionUsed = hasSlot(this.element, "description") || !!this.description;
|
|
125
153
|
const descriptionLongUsed = hasSlot(this.element, "description-long") || !!this.descriptionLong;
|
|
126
154
|
const errorUsed = hasSlot(this.element, "error") || ((_a = this._error) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
155
|
+
const labelUsed = !!this.label || this.hasDefaultSlot;
|
|
156
|
+
const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;
|
|
127
157
|
const classes = {
|
|
128
158
|
"stzh-radio": true,
|
|
129
159
|
"stzh-radio--has-description": descriptionUsed,
|
|
@@ -133,11 +163,11 @@ const StzhRadio = /*@__PURE__*/ proxyCustomElement(class StzhRadio extends H {
|
|
|
133
163
|
"stzh-radio--is-invalid": this.invalid || errorUsed,
|
|
134
164
|
"stzh-radio--is-disabled": this.disabled,
|
|
135
165
|
};
|
|
136
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: '6bd9ef10b3300e578fefe4ff653cf978816cf1c4', "is-invalid": this.invalid || errorUsed, tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: 'ebea8d7aba9224f046d56555098b282102ec0929', class: classes }, labelWrapperUsed && (h("label", { key: 'cdd4030cff6fd5cff42edf529971e5ef07265db0', class: "stzh-radio__field-wrapper" }, h("input", { key: '6c7d1137b279447f1c6ae8b27460c843c7003af2', class: "stzh-radio__input", ref: el => (this.input = el), type: "radio", id: this.inputId, name: this.name, value: String(this.value), disabled: this.disabled, "aria-describedby": `${this.inputId}-description ${this.a11yDescribedby}`, "aria-required": this.required ? "true" : "false", "aria-invalid": this.invalid ? "true" : "false", checked: this.checked, defaultChecked: this.defaultChecked, onInput: this.onInput, onFocus: this.onFocus, onBlur: this.onBlur }), h("div", { key: 'c8509edd66148d8ac08321eb7697606d7c463167', class: "stzh-radio__mark" }, h("div", { key: '05ec9e5169f45e097eeac2738f37d971e2c0558a', class: "stzh-radio__check" })), h("div", { key: '1920c1b97402a54aa3d96fde0b90450fdeeccecc', class: "stzh-radio__label" }, this.label ? this.label : h("slot", { onSlotchange: this.updateDefaultSlotState }), labelUsed && !this.hideOptional && (h("span", { key: 'ceb36dd822f2270408df3d7febb1f11b18fc46f4', class: "stzh-radio__marker" }, h("span", { key: 'b9488232d4807504c0f17a968777071dcf40d6a6', class: "stzh-radio__marker-symbol", "aria-hidden": "true" }, this.required
|
|
137
167
|
? this.localization.$globals.requiredFieldMarker
|
|
138
|
-
: this.localization.$globals.optionalFieldMarker), h("span", { key: '
|
|
168
|
+
: this.localization.$globals.optionalFieldMarker), h("span", { key: '2995c8fcfdc07aa29c760b2e3faf9c7332a962f5', class: "stzh-radio__marker-text" }, this.required
|
|
139
169
|
? this.localization.$globals.requiredFieldText
|
|
140
|
-
: this.localization.$globals.optionalFieldText))), descriptionLongUsed && (h(StzhInputDescription, { key: '
|
|
170
|
+
: this.localization.$globals.optionalFieldText))), descriptionLongUsed && (h(StzhInputDescription, { key: 'a6b974712e0875863f2a3815b8c92c9e873ea006', classPrefix: "stzh-radio", id: `${this.inputId}-description-long`, descriptionLong: this.descriptionLong, descriptionLongTitle: this.descriptionLongTitle, descriptionLongUsed: true, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel, showError: false, showDescriptionText: false }))))), (errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '73568d8f39d6f583916a427c4b25e914a4d38e3a', classPrefix: "stzh-radio", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
|
|
141
171
|
}
|
|
142
172
|
get element() { return this; }
|
|
143
173
|
static get watchers() { return {
|
|
@@ -159,7 +189,9 @@ const StzhRadio = /*@__PURE__*/ proxyCustomElement(class StzhRadio extends H {
|
|
|
159
189
|
"descriptionLong": [1, "description-long"],
|
|
160
190
|
"descriptionLongTitle": [1, "description-long-title"],
|
|
161
191
|
"error": [1],
|
|
162
|
-
"a11yDescribedby": [1, "a11y-describedby"]
|
|
192
|
+
"a11yDescribedby": [1, "a11y-describedby"],
|
|
193
|
+
"hasDefaultSlot": [32],
|
|
194
|
+
"hasResolvedDefaultSlot": [32]
|
|
163
195
|
}, [[4, "reset", "resetListener"]], {
|
|
164
196
|
"error": ["errorWatcher"]
|
|
165
197
|
}]);
|
|
@@ -193,6 +225,6 @@ function defineCustomElement() {
|
|
|
193
225
|
}
|
|
194
226
|
|
|
195
227
|
export { StzhRadio as S, defineCustomElement as d };
|
|
196
|
-
//# sourceMappingURL=p-
|
|
228
|
+
//# sourceMappingURL=p-CJgyNq5X.js.map
|
|
197
229
|
|
|
198
|
-
//# sourceMappingURL=p-
|
|
230
|
+
//# sourceMappingURL=p-CJgyNq5X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-CJgyNq5X.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,MAAM,CAAC;AAC5B;AACA;AACA,g1PAAg1P,CAAC;;ACMj1P,IAAI,YAAY,GAAG,CAAC;MAcP,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;;AAU2B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAK,CAAA,KAAA,GAAmB,EAAE;;AAG1B,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAGxB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAY,CAAA,YAAA,GAAY,KAAK;;AAGd,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAMxD,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAkBe,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AAuCrE;;;AAGG;AACM,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;AAExC;;;;;AAKG;AACM,QAAA,IAAsB,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AmB,KAClB,CAAA,CAAC,oBAAoB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACnB,WAAW,EAAC,YAAY,EACxB,EAAE,EAAE,CAAG,EAAA,IAAI,CAAC,OAAO,CAAmB,iBAAA,CAAA,EACtC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,IAAI,EACzB,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EACnE,SAAS,EAAE,KAAK,EAChB,mBAAmB,EAAE,KAAK,EAC1B,CAAA,CACH,CACG,CACA,CACT,EACA,CAAC,SAAS,IAAI,eAAe,MAC5B,EAAC,oBAAoB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACnB,WAAW,EAAC,YAAY,EACxB,EAAE,EAAE,CAAG,EAAA,IAAI,CAAC,OAAO,CAAc,YAAA,CAAA,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,EAAA,CAC1B,CACH,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-radio/stzh-radio.scss?tag=stzh-radio&encapsulation=scoped","src/components/stzh-radio/stzh-radio.tsx"],"sourcesContent":[":host {\n --label-color: var(--stzh-radio-label-color, #{$baseColor});\n --label-hover-color: var(--stzh-radio-label-hover-color, #{$colorPrimary70});\n --label-hover-checked-color: var(\n --stzh-radio-label-hover-checked-color,\n #{$colorPrimary90}\n );\n --check-color: var(--stzh-radio-check-color, #{$colorPrimary70});\n --invalid-color: var(--stzh-radio-invalid-color, #{$colorError60});\n --disabled-color: var(--stzh-radio-disabled-color, #{$colorGrey50});\n\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radio {\n @include input-description;\n display: grid;\n\n &__field-wrapper {\n @include fontSize(\"milli\");\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n @include radio__mark();\n }\n\n &__check {\n @include radio__check($color: $colorPrimary70);\n }\n\n &__label {\n --stzh-base-color: initial;\n\n display: inline-flex;\n align-items: center;\n gap: space(\"xsmall\");\n color: var(--label-color);\n transition: color $baseTransitionAnimationSpeed;\n margin-left: space(\"small\");\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__label-text {\n min-width: 0;\n }\n\n &__label > &__description-wrapper {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label &__error,\n &__label &__description-text {\n display: none;\n }\n\n &__label &__description,\n &__label &__description-long {\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label &__description-long-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n line-height: 1;\n }\n\n &__label stzh-popover &__description-long-icon {\n --size: var(--stzh-icon-size-small);\n display: block;\n line-height: 0;\n color: $colorPrimary70;\n }\n &__label-slot {\n display: block;\n }\n\n &__label-slot stzh-text {\n display: block;\n }\n &__marker {\n @include fontSize(\"micro\");\n margin-left: calc(-0.25em + #{space(\"xsmall\")});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: var(--label-hover-checked-color);\n }\n\n &__input:checked:hover ~ &__mark &__check {\n @media (forced-colors: active) {\n color: Highlight;\n }\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: var(--label-hover-color);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n }\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: var(--label-hover-checked-color);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n }\n }\n\n &__input:checked ~ &__mark &__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n @media (forced-colors: none) {\n color: var(--invalid-color);\n }\n }\n\n &--is-invalid &__input ~ &__mark {\n @media (forced-colors: none) {\n border-color: var(--invalid-color);\n }\n }\n\n /* Disabled */\n\n &--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: var(--disabled-color);\n background-color: $colorGrey20;\n\n @media (forced-colors: active) {\n border-color: GrayText;\n }\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: var(--disabled-color);\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, Watch, State } from \"@stencil/core\";\n\nimport { StzhRadioBlurEvent, StzhRadioChangeEvent, StzhRadioFocusEvent, StzhRadioValue } from \"../../index\";\n\nimport { hasDefaultSlotContent, hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet radioCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-radio\",\n styleUrl: \"stzh-radio.scss\",\n scoped: true,\n})\nexport class StzhRadio {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** The value of the input element. Note that boolean values only work with property binding (not with attribute binding). */\n @Prop({ mutable: true }) value: StzhRadioValue = \"\";\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /**\n * **Do not use this property. It will be deprecated with the next major release.**\n * Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhRadioChangeEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhRadioFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhRadioBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n /**\n * Whether the component has meaningful default-slot content.\n * Becomes obsolete with the implementation of PDESI-1908.\n */\n @State() hasDefaultSlot: boolean = false;\n\n /**\n * Indicates whether default-slot content detection has run at least once.\n * Used to avoid rendering state-dependent markup before the slot content\n * has been evaluated.\n * Becomes obsolete with the implementation of PDESI-1908.\n */\n @State() hasResolvedDefaultSlot: boolean = false;\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n };\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n this.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n value: this.value,\n checked: this.checked,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n /**\n * Re-evaluates default-slot content and updates the related render state.\n * Becomes obsolete with implementation of PDESI-1908.\n */\n private updateDefaultSlotState = () => {\n const hasDefaultSlot = hasDefaultSlotContent(this.element, [\"stzh-radio\"]);\n if (this.hasDefaultSlot !== hasDefaultSlot) {\n this.hasDefaultSlot = hasDefaultSlot;\n }\n if (!this.hasResolvedDefaultSlot) {\n this.hasResolvedDefaultSlot = true;\n }\n };\n\n componentDidLoad() {\n this.updateDefaultSlotState();\n }\n\n async componentWillLoad() {\n this.inputId = `stzh-radio-${radioCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"radio\");\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const labelUsed = !!this.label || this.hasDefaultSlot;\n const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;\n\n const classes = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": descriptionUsed,\n \"stzh-radio--has-description-long\": descriptionLongUsed,\n \"stzh-radio--has-error\": errorUsed,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid || errorUsed,\n \"stzh-radio--is-disabled\": this.disabled,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {labelWrapperUsed && (\n <label class=\"stzh-radio__field-wrapper\">\n <input\n class=\"stzh-radio__input\"\n ref={el => (this.input = el as HTMLInputElement)}\n type=\"radio\"\n id={this.inputId}\n name={this.name}\n value={String(this.value)}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-radio__mark\">\n <div class=\"stzh-radio__check\"></div>\n </div>\n\n <div class=\"stzh-radio__label\">\n {this.label ? this.label : <slot onSlotchange={this.updateDefaultSlotState}></slot>}\n\n {labelUsed && !this.hideOptional && (\n <span class=\"stzh-radio__marker\">\n <span class=\"stzh-radio__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-radio__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n\n {descriptionLongUsed && (\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description-long`}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={true}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n showError={false}\n showDescriptionText={false}\n />\n )}\n </div>\n </label>\n )}\n {(errorUsed || descriptionUsed) && (\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLongUsed={false}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +1,11 @@
|
|
|
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$7 } from './p-
|
|
3
|
-
import { d as defineCustomElement$6 } from './p-
|
|
4
|
-
import { d as defineCustomElement$5 } from './p-
|
|
5
|
-
import { d as defineCustomElement$4 } from './p-
|
|
6
|
-
import { d as defineCustomElement$3 } from './p-
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
8
|
-
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$7 } from './p-Dn7rMHvA.js';
|
|
3
|
+
import { d as defineCustomElement$6 } from './p-CrQrHbCR.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './p-D-Yirlnl.js';
|
|
5
|
+
import { d as defineCustomElement$4 } from './p-mPSUVIkD.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-DhDUHSh7.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-Bi0j3C9E.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './p-CIG3atcV.js';
|
|
9
9
|
|
|
10
10
|
const stzhPaginationCss = () => `.sc-stzh-pagination-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-pagination-h,[stzh-hidden].sc-stzh-pagination-h{display:none}.sc-stzh-pagination-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagination-h *.sc-stzh-pagination,.sc-stzh-pagination-h *.sc-stzh-pagination::before,.sc-stzh-pagination-h *.sc-stzh-pagination::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-pagination-h .has-focus.sc-stzh-pagination{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-pagination-h .stzh-fylingfocus-focused.sc-stzh-pagination{outline-style:none !important}.sc-stzh-pagination-h .stzh-fylingfocus-focused.sc-stzh-pagination::-moz-focus-inner{border:0 !important}.sc-stzh-pagination-h{--justify-content:inherit;--padding-left:calc(var(--stzh-form-input-height) + var(--stzh-space-medium))}.stzh-pagination.sc-stzh-pagination{position:relative;display:flex;align-items:center;gap:var(--stzh-space-medium);padding-left:var(--padding-left);justify-content:var(--justify-content)}.stzh-pagination__input.sc-stzh-pagination{--text-align:center;--input-width:var(--stzh-form-input-height);--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;position:absolute;top:0;left:0}.stzh-pagination__total.sc-stzh-pagination{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);color:var(--stzh-color-grey70)}.stzh-pagination--size-small.sc-stzh-pagination{padding-left:calc(var(--stzh-form-input-small-height) + var(--stzh-space-medium))}.stzh-pagination--size-small.sc-stzh-pagination .stzh-pagination__input.sc-stzh-pagination{--input-width:var(--stzh-form-input-small-height)}`;
|
|
11
11
|
|
|
@@ -87,7 +87,7 @@ const StzhPagination = /*@__PURE__*/ proxyCustomElement(class StzhPagination ext
|
|
|
87
87
|
"stzh-pagination": true,
|
|
88
88
|
[`stzh-pagination--size-${this.size}`]: !!this.size,
|
|
89
89
|
};
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: 'c96bb076a8efad512d90319af275ecef18375c62', tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: 'ee505d4f5672e5bf03cdf360dedad66e2b465f19', class: classes }, this.allowManualInput ? (h(Fragment, null, h("stzh-input", { class: "stzh-pagination__input", type: "number", min: 1, max: this.total, label: this.label || this.localization.label, labelHidden: true, ref: el => (this.input = el), onStzhChange: this.onInputChange, value: ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString()) || "", required: this.required, disabled: this.disabled, description: this.description, descriptionLong: this.descriptionLong, error: this.error, a11yDescribedby: this.a11yDescribedby, name: this.name, size: this.size, invalid: this.invalid, hideOptional: true, noAutocomplete: true }), h("div", { class: "stzh-pagination__total" }, this.localization.totalLabel.replace(/\{total\}/gi, this.total.toString())))) : (h("div", { class: "stzh-pagination__total" }, this.value, " ", this.localization.totalLabel.replace(/\{total\}/gi, this.total.toString()))), h("stzh-buttongroup", { key: 'ecd3781f378ecf11bfa0a772e0d32922af3bda7b' }, h("stzh-button", { key: '128b04fd667d1a3f52b5a78c0d05849da3bd1fbb', variant: "tertiary", icon: "angle-left", "icon-only": true, size: this.size, a11yDisabled: this.value <= 1, a11yDescribedby: this.a11yDescribedby, a11yLabel: `${this.label || this.localization.label}, ${this.localization.prevLabel}, ${this.localization.selectedPageLabel} ${this.value}`, disabled: this.disabled, onClick: () => this.prev() }), h("stzh-button", { key: 'ee96341a6dda021fba99cc25d6e817db792b54d6', variant: "tertiary", icon: "angle-right", "icon-only": true, size: this.size, a11yDisabled: this.value >= this.total, a11yDescribedby: this.a11yDescribedby, a11yLabel: `${this.label || this.localization.label}, ${this.localization.nextLabel}, ${this.localization.selectedPageLabel} ${this.value}`, disabled: this.disabled, onClick: () => this.next() })))));
|
|
91
91
|
}
|
|
92
92
|
get element() { return this; }
|
|
93
93
|
static get style() { return stzhPaginationCss(); }
|
|
@@ -161,6 +161,6 @@ function defineCustomElement() {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
export { StzhPagination as S, defineCustomElement as d };
|
|
164
|
-
//# sourceMappingURL=p-
|
|
164
|
+
//# sourceMappingURL=p-CSdlcHhO.js.map
|
|
165
165
|
|
|
166
|
-
//# sourceMappingURL=p-
|
|
166
|
+
//# sourceMappingURL=p-CSdlcHhO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-RvRbhcRQ.js","mappings":";;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,MAAM,CAAC,umEAAumE,CAAC;;MCa5nE,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;AAL3B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAOU,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC;;AAGA,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC;;AAGlC,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAGlB,QAAA,IAAW,CAAA,WAAA,GAAY,KAAK;;AAGX,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAgB,CAAA,gBAAA,GAAY,IAAI;;AAYhC,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAGxB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAI,CAAA,IAAA,GAAwB,SAAS;;AAGrB,QAAA,IAAe,CAAA,eAAA,GA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,MAAM,IAAI,CAAC,IAAI,EAAE,EACb,CAAA,EACf,CAAA,CAAA,aAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,aAAa,EAAA,WAAA,EAAA,IAAA,EAElB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EACtC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,SAAS,EAAE,CAAA,EAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAK,EAAA,EAAA,IAAI,CAAC,YAAY,CAAC,SAAS,CACjF,EAAA,EAAA,IAAI,CAAC,YAAY,CAAC,iBACpB,CAAA,CAAA,EAAI,IAAI,CAAC,KAAK,CAAA,CAAE,EAChB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,EAAA,CACb,CACE,CACf,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-pagination/stzh-pagination.scss?tag=stzh-pagination&encapsulation=scoped","src/components/stzh-pagination/stzh-pagination.tsx"],"sourcesContent":[":host {\n --justify-content: inherit;\n --padding-left: calc(#{$formInputHeight} + #{space(\"medium\")});\n}\n\n.stzh-pagination {\n position: relative;\n display: flex;\n align-items: center;\n gap: space(\"medium\");\n padding-left: var(--padding-left);\n justify-content: var(--justify-content);\n\n &__input {\n --text-align: center;\n --input-width: #{$formInputHeight};\n --padding-top: 0px;\n --padding-bottom: 0px;\n --padding-left: 0px;\n --padding-right: 0px;\n\n position: absolute;\n top: 0;\n left: 0;\n }\n\n &__total {\n @include fontSize(\"nano\");\n color: $colorGrey70;\n }\n\n &--size-small {\n padding-left: calc(#{$formInputHeightSmall} + #{space(\"medium\")});\n }\n\n &--size-small &__input {\n --input-width: #{$formInputHeightSmall};\n }\n}\n","import { Component, Element, Event, EventEmitter, Fragment, h, Host, Method, Prop } from \"@stencil/core\";\n\nimport { StzhInputChangeEvent, StzhPaginationChangeEvent } from \"../../index\";\n\nimport { StzhPaginationLocalizedText } from \"./stzh-pagination.localization\";\n\n/**\n */\n@Component({\n tag: \"stzh-pagination\",\n styleUrl: \"stzh-pagination.scss\",\n scoped: true,\n})\nexport class StzhPagination {\n /** Total pages available. */\n @Prop() total: number = 1;\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Current page. */\n @Prop({ mutable: true }) value: number = 1;\n\n /** Label for dropdown */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether the current page is mutable via input */\n @Prop({ reflect: true }) allowManualInput: boolean = true;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Translation strings. */\n @Prop() localization: StzhPaginationLocalizedText;\n\n /** Pagination change event */\n @Event() stzhChange: EventEmitter<StzhPaginationChangeEvent>;\n\n @Element() element: HTMLStzhPaginationElement;\n\n /** Set current page to previous */\n @Method()\n async prev() {\n this.gotoPage(this.value - 1);\n }\n\n /** Set current page to next */\n @Method()\n async next() {\n this.gotoPage(this.value + 1);\n }\n\n private input: HTMLStzhInputElement;\n\n private gotoPage = (newPage: number) => {\n const previous = this.value;\n\n if (newPage >= 1 && newPage <= this.total) {\n this.value = newPage;\n } else if (newPage > this.total) {\n this.value = this.total;\n } else {\n this.value = 1;\n }\n\n if (previous !== this.value) {\n this.stzhChange.emit({\n component: \"stzh-pagination\",\n page: Number(this.value),\n });\n }\n };\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n };\n\n private onInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n const newPage = Number(event.detail.value) || 1;\n this.gotoPage(newPage);\n };\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"pagination\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-pagination\": true,\n [`stzh-pagination--size-${this.size}`]: !!this.size,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.allowManualInput ? (\n <Fragment>\n <stzh-input\n class=\"stzh-pagination__input\"\n type=\"number\"\n min={1}\n max={this.total}\n label={this.label || this.localization.label}\n labelHidden={true}\n ref={el => (this.input = el as HTMLStzhInputElement)}\n onStzhChange={this.onInputChange}\n value={this.value?.toString() || \"\"}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n invalid={this.invalid}\n hideOptional={true}\n noAutocomplete={true}\n ></stzh-input>\n <div class=\"stzh-pagination__total\">\n {this.localization.totalLabel.replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n </Fragment>\n ) : (\n <div class=\"stzh-pagination__total\">\n {this.value} {this.localization.totalLabel.replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n )}\n <stzh-buttongroup>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-left\"\n icon-only\n size={this.size}\n a11yDisabled={this.value <= 1}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.prevLabel}, ${\n this.localization.selectedPageLabel\n } ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.prev()}\n ></stzh-button>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-right\"\n icon-only\n size={this.size}\n a11yDisabled={this.value >= this.total}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.nextLabel}, ${\n this.localization.selectedPageLabel\n } ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.next()}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-CSdlcHhO.js","mappings":";;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,MAAM,CAAC,umEAAumE,CAAC;;MCa5nE,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;AAL3B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAOU,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC;;AAGA,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC;;AAGlC,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAGlB,QAAA,IAAW,CAAA,WAAA,GAAY,KAAK;;AAGX,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAgB,CAAA,gBAAA,GAAY,IAAI;;AAYhC,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAGxB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAI,CAAA,IAAA,GAAwB,SAAS;;AAGrB,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AAwB7D,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,OAAe,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AA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,aAAa,EAAA,WAAA,EAAA,IAAA,EAElB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EACtC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,SAAS,EAAE,CAAA,EAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAK,EAAA,EAAA,IAAI,CAAC,YAAY,CAAC,SAAS,CACjF,EAAA,EAAA,IAAI,CAAC,YAAY,CAAC,iBACpB,CAAA,CAAA,EAAI,IAAI,CAAC,KAAK,CAAA,CAAE,EAChB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,EAAA,CACb,CACE,CACf,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-pagination/stzh-pagination.scss?tag=stzh-pagination&encapsulation=scoped","src/components/stzh-pagination/stzh-pagination.tsx"],"sourcesContent":[":host {\n --justify-content: inherit;\n --padding-left: calc(#{$formInputHeight} + #{space(\"medium\")});\n}\n\n.stzh-pagination {\n position: relative;\n display: flex;\n align-items: center;\n gap: space(\"medium\");\n padding-left: var(--padding-left);\n justify-content: var(--justify-content);\n\n &__input {\n --text-align: center;\n --input-width: #{$formInputHeight};\n --padding-top: 0px;\n --padding-bottom: 0px;\n --padding-left: 0px;\n --padding-right: 0px;\n\n position: absolute;\n top: 0;\n left: 0;\n }\n\n &__total {\n @include fontSize(\"nano\");\n color: $colorGrey70;\n }\n\n &--size-small {\n padding-left: calc(#{$formInputHeightSmall} + #{space(\"medium\")});\n }\n\n &--size-small &__input {\n --input-width: #{$formInputHeightSmall};\n }\n}\n","import { Component, Element, Event, EventEmitter, Fragment, h, Host, Method, Prop } from \"@stencil/core\";\n\nimport { StzhInputChangeEvent, StzhPaginationChangeEvent } from \"../../index\";\n\nimport { StzhPaginationLocalizedText } from \"./stzh-pagination.localization\";\n\n/**\n */\n@Component({\n tag: \"stzh-pagination\",\n styleUrl: \"stzh-pagination.scss\",\n scoped: true,\n})\nexport class StzhPagination {\n /** Total pages available. */\n @Prop() total: number = 1;\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Current page. */\n @Prop({ mutable: true }) value: number = 1;\n\n /** Label for dropdown */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether the current page is mutable via input */\n @Prop({ reflect: true }) allowManualInput: boolean = true;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Translation strings. */\n @Prop() localization: StzhPaginationLocalizedText;\n\n /** Pagination change event */\n @Event() stzhChange: EventEmitter<StzhPaginationChangeEvent>;\n\n @Element() element: HTMLStzhPaginationElement;\n\n /** Set current page to previous */\n @Method()\n async prev() {\n this.gotoPage(this.value - 1);\n }\n\n /** Set current page to next */\n @Method()\n async next() {\n this.gotoPage(this.value + 1);\n }\n\n private input: HTMLStzhInputElement;\n\n private gotoPage = (newPage: number) => {\n const previous = this.value;\n\n if (newPage >= 1 && newPage <= this.total) {\n this.value = newPage;\n } else if (newPage > this.total) {\n this.value = this.total;\n } else {\n this.value = 1;\n }\n\n if (previous !== this.value) {\n this.stzhChange.emit({\n component: \"stzh-pagination\",\n page: Number(this.value),\n });\n }\n };\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n };\n\n private onInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n const newPage = Number(event.detail.value) || 1;\n this.gotoPage(newPage);\n };\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"pagination\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-pagination\": true,\n [`stzh-pagination--size-${this.size}`]: !!this.size,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.allowManualInput ? (\n <Fragment>\n <stzh-input\n class=\"stzh-pagination__input\"\n type=\"number\"\n min={1}\n max={this.total}\n label={this.label || this.localization.label}\n labelHidden={true}\n ref={el => (this.input = el as HTMLStzhInputElement)}\n onStzhChange={this.onInputChange}\n value={this.value?.toString() || \"\"}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n invalid={this.invalid}\n hideOptional={true}\n noAutocomplete={true}\n ></stzh-input>\n <div class=\"stzh-pagination__total\">\n {this.localization.totalLabel.replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n </Fragment>\n ) : (\n <div class=\"stzh-pagination__total\">\n {this.value} {this.localization.totalLabel.replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n )}\n <stzh-buttongroup>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-left\"\n icon-only\n size={this.size}\n a11yDisabled={this.value <= 1}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.prevLabel}, ${\n this.localization.selectedPageLabel\n } ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.prev()}\n ></stzh-button>\n <stzh-button\n variant=\"tertiary\"\n icon=\"angle-right\"\n icon-only\n size={this.size}\n a11yDisabled={this.value >= this.total}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.nextLabel}, ${\n this.localization.selectedPageLabel\n } ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.next()}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|