@oiz/stzh-components 3.0.0-beta5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-82cc9313.js → app-globals-1d1f8f2e.js} +2 -2
- package/dist/cjs/{app-globals-82cc9313.js.map → app-globals-1d1f8f2e.js.map} +1 -1
- package/dist/cjs/index-92254d32.js +16 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +8 -2
- package/dist/cjs/stzh-actions.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +2 -0
- package/dist/cjs/stzh-card_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +1 -2
- package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +9 -10
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-content.cjs.entry.js +1 -1
- package/dist/cjs/stzh-content.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +8 -10
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +162 -0
- package/dist/cjs/stzh-details.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-eventdata.cjs.entry.js +26 -0
- package/dist/cjs/stzh-eventdata.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-eventinfo.cjs.entry.js +43 -4
- package/dist/cjs/stzh-eventinfo.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +0 -1
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +1 -1
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-details_2.cjs.entry.js → stzh-message.cjs.entry.js} +1 -155
- package/dist/cjs/stzh-message.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +18 -2
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +3 -2
- package/dist/cjs/stzh-textandimage.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +3 -1
- package/dist/collection/assets/i18n/en.json +3 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -3
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +3 -3
- package/dist/collection/components/stzh-actions/stzh-actions.css +27 -7
- package/dist/collection/components/stzh-actions/stzh-actions.js +8 -1
- package/dist/collection/components/stzh-actions/stzh-actions.js.map +1 -1
- package/dist/collection/components/stzh-actions/stzh-actions.stories.js +2 -2
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -3
- package/dist/collection/components/stzh-amount/stzh-amount.css +3 -3
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -3
- package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -3
- package/dist/collection/components/stzh-archivelist/stzh-archivelist.css +3 -3
- package/dist/collection/components/stzh-audio/stzh-audio.css +3 -3
- package/dist/collection/components/stzh-badge/stzh-badge.css +3 -3
- package/dist/collection/components/stzh-banner/stzh-banner.css +3 -3
- package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +8 -3
- package/dist/collection/components/stzh-button/stzh-button.css +3 -3
- package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +3 -3
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -3
- package/dist/collection/components/stzh-card/stzh-card.css +3 -3
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.css +3 -3
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.stories.js +1 -1
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.css +3 -3
- package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.css +3 -3
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +3 -3
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +8 -3
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +0 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
- package/dist/collection/components/stzh-cell/stzh-cell.css +3 -3
- package/dist/collection/components/stzh-chart/stzh-chart.css +6 -3
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -3
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -3
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +9 -12
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js.map +1 -1
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +9 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +3 -3
- package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.css +3 -3
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +3 -3
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +2 -0
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +2 -2
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -3
- package/dist/collection/components/stzh-contact/stzh-contact.css +3 -3
- package/dist/collection/components/stzh-container/stzh-container.css +3 -3
- package/dist/collection/components/stzh-content/stzh-content.css +7 -5
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +9 -9
- package/dist/collection/components/stzh-cta/stzh-cta.css +8 -3
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -3
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +9 -69
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +3 -3
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -3
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -3
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -3
- package/dist/collection/components/stzh-daterange/stzh-daterange.css +3 -3
- package/dist/collection/components/stzh-details/stzh-details.css +3 -3
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -3
- package/dist/collection/components/stzh-disturber/stzh-disturber.css +3 -3
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -3
- package/dist/collection/components/stzh-editor/stzh-editor.css +3 -3
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.css +210 -0
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.e2e.js +18 -0
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.e2e.js.map +1 -0
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.js +52 -0
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.js.map +1 -0
- package/dist/collection/components/stzh-eventdata/stzh-eventdata.stories.js +44 -0
- package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.css +157 -12
- package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.js +122 -4
- package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.js.map +1 -1
- package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.localization.js.map +1 -1
- package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.stories.js +14 -1
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -3
- package/dist/collection/components/stzh-figure/stzh-figure.css +3 -3
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -3
- package/dist/collection/components/stzh-footer/stzh-footer.css +7 -4
- package/dist/collection/components/stzh-gallery/stzh-gallery.css +9 -3
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -3
- package/dist/collection/components/stzh-header/stzh-header.css +3 -3
- package/dist/collection/components/stzh-header/stzh-header.js +0 -1
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-heading/stzh-heading.css +3 -3
- package/dist/collection/components/stzh-hr/stzh-hr.css +3 -3
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +3 -3
- package/dist/collection/components/stzh-icon/stzh-icon.css +9 -3
- package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -3
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +10 -3
- package/dist/collection/components/stzh-input/stzh-input.css +3 -3
- package/dist/collection/components/stzh-invert/stzh-invert.css +3 -3
- package/dist/collection/components/stzh-link/stzh-link.css +3 -3
- package/dist/collection/components/stzh-list/stzh-list.css +3 -3
- package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -3
- package/dist/collection/components/stzh-loader/stzh-loader.css +3 -3
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -3
- package/dist/collection/components/stzh-menu/stzh-menu.css +3 -3
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -3
- package/dist/collection/components/stzh-message/stzh-message.css +3 -3
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +3 -3
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +3 -3
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +36 -4
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -1
- package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -3
- package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -3
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -3
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +3 -3
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +0 -1
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js.map +1 -1
- package/dist/collection/components/stzh-pagecontent/stzh-pagecontent.css +3 -3
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -3
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +2 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js.map +1 -1
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -3
- package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -3
- package/dist/collection/components/stzh-panorama/stzh-panorama.css +3 -3
- package/dist/collection/components/stzh-popover/stzh-popover.css +3 -3
- package/dist/collection/components/stzh-print/stzh-print.css +3 -3
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -3
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +3 -3
- package/dist/collection/components/stzh-radio/stzh-radio.css +3 -3
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -3
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +8 -12
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +10 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.css +3 -3
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +8 -3
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -3
- package/dist/collection/components/stzh-row/stzh-row.css +3 -3
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -3
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +3 -3
- package/dist/collection/components/stzh-search/stzh-search.css +6 -5
- package/dist/collection/components/stzh-section/stzh-section.css +3 -3
- package/dist/collection/components/stzh-share/stzh-share.css +3 -3
- package/dist/collection/components/stzh-show/stzh-show.css +3 -3
- package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +3 -3
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +18 -3
- package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +3 -3
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -3
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -3
- package/dist/collection/components/stzh-space/stzh-space.css +3 -3
- package/dist/collection/components/stzh-status/stzh-status.css +3 -3
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -3
- package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.css +3 -3
- package/dist/collection/components/stzh-table/stzh-table.css +3 -3
- package/dist/collection/components/stzh-tag/stzh-tag.css +3 -3
- package/dist/collection/components/stzh-text/stzh-text.css +4 -4
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +9 -3
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +2 -1
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.js.map +1 -1
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +2 -0
- package/dist/collection/components/stzh-timeline/stzh-timeline.css +3 -3
- package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +3 -3
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +3 -3
- package/dist/collection/components/stzh-toast/stzh-toast.css +3 -3
- package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +3 -3
- package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -3
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +3 -3
- package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.css +3 -3
- package/dist/collection/components/stzh-upload/stzh-upload.css +3 -3
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +3 -3
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -3
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -3
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -3
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -3
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +3 -3
- package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -3
- package/dist/collection/pages/website/website.e2e.js +1 -1
- package/dist/collection/pages/website/website.e2e.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/stzh-actions.js +8 -2
- package/dist/components/stzh-actions.js.map +1 -1
- package/dist/components/stzh-breadcrumb2.js +1 -1
- package/dist/components/stzh-breadcrumb2.js.map +1 -1
- package/dist/components/stzh-carousel2.js +1 -2
- package/dist/components/stzh-carousel2.js.map +1 -1
- package/dist/components/stzh-chart.js +1 -1
- package/dist/components/stzh-chart.js.map +1 -1
- package/dist/components/stzh-checkboxgroup.js +10 -12
- package/dist/components/stzh-checkboxgroup.js.map +1 -1
- package/dist/components/stzh-chipselect2.js +2 -0
- package/dist/components/stzh-chipselect2.js.map +1 -1
- package/dist/components/stzh-content.js +1 -1
- package/dist/components/stzh-content.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-cta.js +1 -1
- package/dist/components/stzh-cta.js.map +1 -1
- package/dist/components/stzh-datalist-item2.js +1 -1
- package/dist/components/stzh-datalist-item2.js.map +1 -1
- package/dist/components/stzh-eventdata.d.ts +11 -0
- package/dist/components/stzh-eventdata.js +41 -0
- package/dist/components/stzh-eventdata.js.map +1 -0
- package/dist/components/stzh-eventinfo.js +50 -8
- package/dist/components/stzh-eventinfo.js.map +1 -1
- package/dist/components/stzh-footer.js +1 -1
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-gallery.js +1 -1
- package/dist/components/stzh-gallery.js.map +1 -1
- package/dist/components/stzh-header.js +0 -1
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-icon2.js +1 -1
- package/dist/components/stzh-icon2.js.map +1 -1
- package/dist/components/stzh-imagecomparison.js +1 -1
- package/dist/components/stzh-imagecomparison.js.map +1 -1
- package/dist/components/stzh-monthyearpicker.js +19 -2
- package/dist/components/stzh-monthyearpicker.js.map +1 -1
- package/dist/components/stzh-pagebottom.js.map +1 -1
- package/dist/components/stzh-pagetitle.js +2 -1
- package/dist/components/stzh-pagetitle.js.map +1 -1
- package/dist/components/stzh-radiogroup2.js +8 -11
- package/dist/components/stzh-radiogroup2.js.map +1 -1
- package/dist/components/stzh-readspeaker.js +1 -1
- package/dist/components/stzh-readspeaker.js.map +1 -1
- package/dist/components/stzh-search.js +1 -1
- package/dist/components/stzh-search.js.map +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-text2.js.map +1 -1
- package/dist/components/stzh-textandimage.js +3 -2
- package/dist/components/stzh-textandimage.js.map +1 -1
- package/dist/esm/{app-globals-d7eff0a5.js → app-globals-f9c4987b.js} +2 -2
- package/dist/esm/{app-globals-d7eff0a5.js.map → app-globals-f9c4987b.js.map} +1 -1
- package/dist/esm/index-e3050b18.js +16 -8
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +8 -2
- package/dist/esm/stzh-actions.entry.js.map +1 -1
- package/dist/esm/stzh-badge_3.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
- package/dist/esm/stzh-breadcrumb_2.entry.js.map +1 -1
- package/dist/esm/stzh-card_3.entry.js +2 -0
- package/dist/esm/stzh-card_3.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +1 -2
- package/dist/esm/stzh-carousel.entry.js.map +1 -1
- package/dist/esm/stzh-chart.entry.js +1 -1
- package/dist/esm/stzh-chart.entry.js.map +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +9 -10
- package/dist/esm/stzh-checkboxgroup.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-content.entry.js +1 -1
- package/dist/esm/stzh-content.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-cta.entry.js +1 -1
- package/dist/esm/stzh-cta.entry.js.map +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +8 -10
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/stzh-details.entry.js +158 -0
- package/dist/esm/stzh-details.entry.js.map +1 -0
- package/dist/esm/stzh-eventdata.entry.js +22 -0
- package/dist/esm/stzh-eventdata.entry.js.map +1 -0
- package/dist/esm/stzh-eventinfo.entry.js +43 -4
- package/dist/esm/stzh-eventinfo.entry.js.map +1 -1
- package/dist/esm/stzh-footer.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-gallery.entry.js +1 -1
- package/dist/esm/stzh-gallery.entry.js.map +1 -1
- package/dist/esm/stzh-header.entry.js +0 -1
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-imagecomparison.entry.js +1 -1
- package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm/{stzh-details_2.entry.js → stzh-message.entry.js} +2 -155
- package/dist/esm/stzh-message.entry.js.map +1 -0
- package/dist/esm/stzh-monthyearpicker.entry.js +18 -2
- package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -1
- package/dist/esm/stzh-pagebottom.entry.js.map +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +2 -1
- package/dist/esm/stzh-pagetitle.entry.js.map +1 -1
- package/dist/esm/stzh-popover_2.entry.js +1 -1
- package/dist/esm/stzh-popover_2.entry.js.map +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js.map +1 -1
- package/dist/esm/stzh-search.entry.js +1 -1
- package/dist/esm/stzh-search.entry.js.map +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +3 -2
- package/dist/esm/stzh-textandimage.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +3 -1
- package/dist/stzh-components/assets/i18n/en.json +3 -1
- package/dist/stzh-components/p-14177ccb.entry.js +2 -0
- package/dist/stzh-components/p-14177ccb.entry.js.map +1 -0
- package/dist/stzh-components/p-161ae3d1.entry.js +2 -0
- package/dist/stzh-components/p-161ae3d1.entry.js.map +1 -0
- package/dist/stzh-components/{p-93721591.entry.js → p-1a19bc6e.entry.js} +2 -2
- package/dist/stzh-components/p-1a19bc6e.entry.js.map +1 -0
- package/dist/stzh-components/p-1a3dcde3.entry.js +2 -0
- package/dist/stzh-components/p-1a3dcde3.entry.js.map +1 -0
- package/dist/stzh-components/p-2096f3c6.entry.js +2 -0
- package/dist/stzh-components/p-2096f3c6.entry.js.map +1 -0
- package/dist/stzh-components/p-27d5ad01.entry.js +2 -0
- package/dist/stzh-components/p-27d5ad01.entry.js.map +1 -0
- package/dist/stzh-components/p-3f0d3919.entry.js +2 -0
- package/dist/stzh-components/p-3f0d3919.entry.js.map +1 -0
- package/dist/stzh-components/p-429d2a9b.entry.js +2 -0
- package/dist/stzh-components/p-429d2a9b.entry.js.map +1 -0
- package/dist/stzh-components/{p-e5cfdb8a.entry.js → p-5b1bc446.entry.js} +2 -2
- package/dist/stzh-components/{p-e5cfdb8a.entry.js.map → p-5b1bc446.entry.js.map} +1 -1
- package/dist/stzh-components/{p-0aabd857.entry.js → p-663f31a2.entry.js} +2 -2
- package/dist/stzh-components/p-663f31a2.entry.js.map +1 -0
- package/dist/stzh-components/{p-1be90089.entry.js → p-6f87ad6e.entry.js} +2 -2
- package/dist/stzh-components/{p-1be90089.entry.js.map → p-6f87ad6e.entry.js.map} +1 -1
- package/dist/stzh-components/p-7aac960b.entry.js +2 -0
- package/dist/stzh-components/p-7aac960b.entry.js.map +1 -0
- package/dist/stzh-components/p-8f19c3ec.entry.js +2 -0
- package/dist/stzh-components/p-8f19c3ec.entry.js.map +1 -0
- package/dist/stzh-components/p-91b360c9.entry.js +2 -0
- package/dist/stzh-components/{p-d028e43d.entry.js.map → p-91b360c9.entry.js.map} +1 -1
- package/dist/stzh-components/p-91d7c08d.entry.js +2 -0
- package/dist/stzh-components/p-91d7c08d.entry.js.map +1 -0
- package/dist/stzh-components/{p-f2ec1ede.entry.js → p-929c5234.entry.js} +2 -2
- package/dist/stzh-components/{p-f2ec1ede.entry.js.map → p-929c5234.entry.js.map} +1 -1
- package/dist/stzh-components/p-94947ab0.entry.js.map +1 -1
- package/dist/stzh-components/p-97df1d9f.entry.js +2 -0
- package/dist/stzh-components/p-97df1d9f.entry.js.map +1 -0
- package/dist/stzh-components/{p-9f9d53a0.entry.js → p-9b19785c.entry.js} +2 -2
- package/dist/stzh-components/p-9b19785c.entry.js.map +1 -0
- package/dist/stzh-components/{p-1a50b64a.entry.js → p-ab2aee99.entry.js} +2 -2
- package/dist/stzh-components/{p-1a50b64a.entry.js.map → p-ab2aee99.entry.js.map} +1 -1
- package/dist/stzh-components/p-af7562ba.entry.js +2 -0
- package/dist/stzh-components/p-af7562ba.entry.js.map +1 -0
- package/dist/stzh-components/{p-0bf70420.entry.js → p-af87b81a.entry.js} +2 -2
- package/dist/stzh-components/p-af87b81a.entry.js.map +1 -0
- package/dist/stzh-components/p-c9eecee7.entry.js +2 -0
- package/dist/stzh-components/p-c9eecee7.entry.js.map +1 -0
- package/dist/stzh-components/{p-3fa1c5a4.entry.js → p-ee82f53c.entry.js} +2 -2
- package/dist/stzh-components/{p-3fa1c5a4.entry.js.map → p-ee82f53c.entry.js.map} +1 -1
- package/dist/stzh-components/p-ef849bb1.entry.js +2 -0
- package/dist/stzh-components/p-ef849bb1.entry.js.map +1 -0
- package/dist/stzh-components/p-f06b2737.js +2 -0
- package/dist/stzh-components/{p-05e8c18d.js.map → p-f06b2737.js.map} +1 -1
- package/dist/stzh-components/{p-55cdd473.entry.js → p-f692c5d0.entry.js} +2 -2
- package/dist/stzh-components/p-f692c5d0.entry.js.map +1 -0
- package/dist/stzh-components/p-f7979f2a.entry.js +2 -0
- package/dist/stzh-components/p-f7979f2a.entry.js.map +1 -0
- package/dist/stzh-components/p-fdd6e755.entry.js +2 -0
- package/dist/stzh-components/p-fdd6e755.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +1 -0
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +1 -1
- package/dist/types/components/stzh-eventdata/stzh-eventdata.d.ts +10 -0
- package/dist/types/components/stzh-eventinfo/stzh-eventinfo.d.ts +15 -1
- package/dist/types/components/stzh-eventinfo/stzh-eventinfo.localization.d.ts +2 -0
- package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +3 -2
- package/dist/types/components/stzh-pagebottom/stzh-pagebottom.d.ts +0 -1
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +1 -1
- package/dist/types/components.d.ts +61 -0
- package/dist/vscode-data.json +41 -0
- package/package.json +1 -1
- package/dist/cjs/stzh-details_2.cjs.entry.js.map +0 -1
- package/dist/esm/stzh-details_2.entry.js.map +0 -1
- package/dist/stzh-components/p-05e8c18d.js +0 -2
- package/dist/stzh-components/p-0aabd857.entry.js.map +0 -1
- package/dist/stzh-components/p-0bf70420.entry.js.map +0 -1
- package/dist/stzh-components/p-3c2d9cff.entry.js +0 -2
- package/dist/stzh-components/p-3c2d9cff.entry.js.map +0 -1
- package/dist/stzh-components/p-3cd1696a.entry.js +0 -2
- package/dist/stzh-components/p-3cd1696a.entry.js.map +0 -1
- package/dist/stzh-components/p-400f2932.entry.js +0 -2
- package/dist/stzh-components/p-400f2932.entry.js.map +0 -1
- package/dist/stzh-components/p-55cdd473.entry.js.map +0 -1
- package/dist/stzh-components/p-5f5d14cb.entry.js +0 -2
- package/dist/stzh-components/p-5f5d14cb.entry.js.map +0 -1
- package/dist/stzh-components/p-836c4cdf.entry.js +0 -2
- package/dist/stzh-components/p-836c4cdf.entry.js.map +0 -1
- package/dist/stzh-components/p-93721591.entry.js.map +0 -1
- package/dist/stzh-components/p-9f9d53a0.entry.js.map +0 -1
- package/dist/stzh-components/p-accbac61.entry.js +0 -2
- package/dist/stzh-components/p-accbac61.entry.js.map +0 -1
- package/dist/stzh-components/p-bd2a2c30.entry.js +0 -2
- package/dist/stzh-components/p-bd2a2c30.entry.js.map +0 -1
- package/dist/stzh-components/p-beec9a0a.entry.js +0 -2
- package/dist/stzh-components/p-beec9a0a.entry.js.map +0 -1
- package/dist/stzh-components/p-c774915c.entry.js +0 -2
- package/dist/stzh-components/p-c774915c.entry.js.map +0 -1
- package/dist/stzh-components/p-d028e43d.entry.js +0 -2
- package/dist/stzh-components/p-d56d5fe9.entry.js +0 -2
- package/dist/stzh-components/p-d56d5fe9.entry.js.map +0 -1
- package/dist/stzh-components/p-ddfb8df0.entry.js +0 -2
- package/dist/stzh-components/p-ddfb8df0.entry.js.map +0 -1
- package/dist/stzh-components/p-e10aa7bd.entry.js +0 -2
- package/dist/stzh-components/p-e10aa7bd.entry.js.map +0 -1
- package/dist/stzh-components/p-f50e0102.entry.js +0 -2
- package/dist/stzh-components/p-f50e0102.entry.js.map +0 -1
- package/dist/stzh-components/p-f86e53a0.entry.js +0 -2
- package/dist/stzh-components/p-f86e53a0.entry.js.map +0 -1
|
@@ -22,10 +22,10 @@ export class StzhRadiogroup {
|
|
|
22
22
|
this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));
|
|
23
23
|
this.updateRadiosProperty("hide-optional", true);
|
|
24
24
|
this.updateRadiosProperty("a11y-describedby", `${this.radiogroupId}-description`);
|
|
25
|
+
this.updateRadiosProperty("invalid", this.invalid || this.errorUsed);
|
|
25
26
|
this.watchValue(this.value);
|
|
26
27
|
this.watchName(this.name);
|
|
27
28
|
this.watchDisabled(this.disabled);
|
|
28
|
-
this.watchInvalid(this.invalid);
|
|
29
29
|
this.watchRequired(this.required);
|
|
30
30
|
};
|
|
31
31
|
this.localization = undefined;
|
|
@@ -52,9 +52,6 @@ export class StzhRadiogroup {
|
|
|
52
52
|
watchDisabled(newValue) {
|
|
53
53
|
this.updateRadiosProperty("disabled", newValue);
|
|
54
54
|
}
|
|
55
|
-
watchInvalid(newValue) {
|
|
56
|
-
this.updateRadiosProperty("invalid", newValue);
|
|
57
|
-
}
|
|
58
55
|
watchRequired(newValue) {
|
|
59
56
|
this.updateRadiosProperty("required", newValue);
|
|
60
57
|
}
|
|
@@ -107,6 +104,10 @@ export class StzhRadiogroup {
|
|
|
107
104
|
}
|
|
108
105
|
});
|
|
109
106
|
}
|
|
107
|
+
get errorUsed() {
|
|
108
|
+
var _a;
|
|
109
|
+
return hasSlot(this.element, 'error') || ((_a = this._error) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
110
|
+
}
|
|
110
111
|
updateCheckedRadioByValue(value) {
|
|
111
112
|
this.checkedRadio = this.radios.find(radio => radio.value === value);
|
|
112
113
|
if (this.checkedRadio) {
|
|
@@ -160,22 +161,20 @@ export class StzhRadiogroup {
|
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
render() {
|
|
163
|
-
var _a;
|
|
164
164
|
const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;
|
|
165
165
|
const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;
|
|
166
|
-
const errorUsed = hasSlot(this.element, 'error') || ((_a = this._error) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
167
166
|
const classes = {
|
|
168
167
|
"stzh-radiogroup": true,
|
|
169
168
|
"stzh-radiogroup--has-description": descriptionUsed,
|
|
170
169
|
"stzh-radiogroup--has-description-long": descriptionLongUsed,
|
|
171
|
-
"stzh-radiogroup--has-error": errorUsed,
|
|
170
|
+
"stzh-radiogroup--has-error": this.errorUsed,
|
|
172
171
|
"stzh-radiogroup--is-required": this.required,
|
|
173
172
|
"stzh-radiogroup--is-disabled": this.disabled,
|
|
174
|
-
"stzh-radiogroup--is-invalid": this.invalid || errorUsed,
|
|
173
|
+
"stzh-radiogroup--is-invalid": this.invalid || this.errorUsed,
|
|
175
174
|
"stzh-radiogroup--hide-legend": this.hideLegend,
|
|
176
175
|
[`stzh-radiogroup--direction-${this.direction}`]: !!this.direction
|
|
177
176
|
};
|
|
178
|
-
return (h(Host, { "is-invalid": this.invalid || errorUsed }, h("fieldset", { class: classes }, this.legend &&
|
|
177
|
+
return (h(Host, { "is-invalid": this.invalid || this.errorUsed }, h("fieldset", { class: classes }, this.legend &&
|
|
179
178
|
h("legend", { class: "stzh-radiogroup__legend" }, this.legend, !this.hideOptional &&
|
|
180
179
|
h("span", { class: "stzh-radiogroup__marker" }, h("span", { class: "stzh-radiogroup__marker-symbol", "aria-hidden": "true" }, this.required
|
|
181
180
|
? this.localization.$globals.requiredFieldMarker
|
|
@@ -513,9 +512,6 @@ export class StzhRadiogroup {
|
|
|
513
512
|
}, {
|
|
514
513
|
"propName": "disabled",
|
|
515
514
|
"methodName": "watchDisabled"
|
|
516
|
-
}, {
|
|
517
|
-
"propName": "invalid",
|
|
518
|
-
"methodName": "watchInvalid"
|
|
519
515
|
}, {
|
|
520
516
|
"propName": "required",
|
|
521
517
|
"methodName": "watchRequired"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stzh-radiogroup.js","sourceRoot":"","sources":["../../../../src/components/stzh-radiogroup/stzh-radiogroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,OAAO,EACP,KAAK,EACL,CAAC,EACD,MAAM,EACN,IAAI,EACL,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,MAAM,cAAc,GAAG,gDAAgD,CAAC;AAExE,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAE1B;;;;;;GAMG;AAMH,MAAM,OAAO,cAAc;;IAoDjB,6BAAwB,GAAa,EAAE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AC,QAAQ,CAAC,iBAAiB,CAE3C,CACF,CAEF;QAEX,WAAK,KAAK,EAAC,yBAAyB;UAClC,eAAa,CACT;QACN,EAAC,oBAAoB,IACnB,WAAW,EAAC,iBAAiB,EAC7B,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,cAAc,EACtC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACO,CACN,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Prop,\n Element,\n Watch,\n h,\n Listen,\n Host\n} from \"@stencil/core\";\n\nimport { StzhRadioChangeEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { camelCase } from \"../../utils/string-utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nconst SELECTOR_RADIO = 'stzh-radio, stzh-button[type=radio], stzh-card';\n\nlet radiogroupCounter = 0;\n\n/**\n * @slot - Slot for `stzh-radio`, `stzh-button[type=\"radio\"]` or `stzh-card` elements\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-radiogroup\",\n styleUrl: \"stzh-radiogroup.scss\",\n scoped: true\n})\nexport class StzhRadiogroup {\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 radio elements, will define the radio group. If you have more than one radio group on a page, every group needs to have its own unique name */\n @Prop({ reflect: true }) name: string;\n\n /** The legend */\n @Prop() legend: string;\n\n /** Hide legend to show only for screenreaders */\n @Prop({ reflect: true }) hideLegend: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Select a radio by value */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Direction */\n @Prop({ reflect: true }) direction: \"vertical\" | \"horizontal\" = \"vertical\";\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 /** 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 /** Current checked radio element (readonly) */\n @Prop() checkedRadio: HTMLStzhRadioElement | null = null;\n\n /** Prevent updating certain properties of radio elements (possible values inside array: disabled, invalid, required, hide-marker) */\n @Prop() preventUpdateProperties: string[] | string = [];\n private _preventUpdateProperties: string[] = [];\n\n /** Host element */\n @Element() element: HTMLElement;\n\n @Watch(\"name\")\n watchName(newValue: string) {\n this.updateRadiosProperty(\"name\", newValue);\n }\n\n @Watch(\"disabled\")\n watchDisabled(newValue: boolean) {\n this.updateRadiosProperty(\"disabled\", newValue);\n }\n\n @Watch(\"invalid\")\n watchInvalid(newValue: boolean) {\n this.updateRadiosProperty(\"invalid\", newValue);\n }\n\n @Watch(\"required\")\n watchRequired(newValue: boolean) {\n this.updateRadiosProperty(\"required\", newValue);\n }\n\n @Watch(\"value\")\n watchValue(newValue: string) {\n this.updateCheckedRadioByValue(newValue);\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 @Watch(\"preventUpdateProperties\")\n preventUpdatePropertiesWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._preventUpdateProperties = JSON.parse(newValue);\n } else {\n this._preventUpdateProperties = newValue;\n }\n }\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\n @Listen(\"stzhChange\")\n onChange(event: CustomEvent<StzhRadioChangeEvent>) {\n this.value = event.detail.value;\n }\n\n /** Radio elements */\n private radios: HTMLStzhRadioElement[];\n private radiogroupId: string;\n private observer: MutationObserver;\n\n private updateRadiosProperty(prop: string, value: any) {\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (prop === \"name\" || (this._preventUpdateProperties.indexOf(prop) === -1)) {\n radio[camelCase(prop)] = value;\n }\n });\n }\n\n private updateCheckedRadioByValue(value: string) {\n this.checkedRadio = this.radios.find(radio => radio.value === value);\n\n if (this.checkedRadio) {\n this.checkedRadio.checked = true;\n }\n\n this.uncheckRadios();\n }\n\n private uncheckRadios() {\n // make sure that no other radios are checked than the current one or no one\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (!this.checkedRadio || radio !== this.checkedRadio) {\n radio.checked = false;\n }\n });\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n }\n\n private init = () => {\n // update radios\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n this.updateRadiosProperty(\"hide-optional\", true);\n this.updateRadiosProperty(\"a11y-describedby\", `${this.radiogroupId}-description`);\n\n this.watchValue(this.value);\n this.watchName(this.name);\n this.watchDisabled(this.disabled);\n this.watchInvalid(this.invalid);\n this.watchRequired(this.required);\n }\n\n componentDidLoad() {\n this.defaultValue = this.defaultValue ? this.defaultValue : this.value;\n }\n\n async componentWillLoad() {\n this.radiogroupId = `stzh-radiogroup-${radiogroupCounter++}`;\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'radiogroup');\n }\n }\n\n componentShouldUpdate(_newValue, _oldValue, prop: string) {\n return prop !== \"checkedRadio\";\n }\n\n componentDidRender() {\n this.init();\n }\n\n connectedCallback() {\n if (!this.value) {\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n // try to find a checkbox that might has checked set to true\n const checkedRadio = this.radios.find(radio => radio.checked);\n\n if (checkedRadio) {\n this.value = checkedRadio.value;\n }\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const 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 classes = {\n \"stzh-radiogroup\": true,\n \"stzh-radiogroup--has-description\": descriptionUsed,\n \"stzh-radiogroup--has-description-long\": descriptionLongUsed,\n \"stzh-radiogroup--has-error\": errorUsed,\n \"stzh-radiogroup--is-required\": this.required,\n \"stzh-radiogroup--is-disabled\": this.disabled,\n \"stzh-radiogroup--is-invalid\": this.invalid || errorUsed,\n \"stzh-radiogroup--hide-legend\": this.hideLegend,\n [`stzh-radiogroup--direction-${this.direction}`]: !!this.direction\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed}>\n <fieldset class={classes}>\n {this.legend &&\n <legend class=\"stzh-radiogroup__legend\">\n {this.legend}\n {!this.hideOptional &&\n <span class=\"stzh-radiogroup__marker\">\n <span class=\"stzh-radiogroup__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-radiogroup__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </legend>\n }\n <div class=\"stzh-radiogroup__fields\">\n <slot></slot>\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-radiogroup\"\n id={`${this.radiogroupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </fieldset>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"stzh-radiogroup.js","sourceRoot":"","sources":["../../../../src/components/stzh-radiogroup/stzh-radiogroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,OAAO,EACP,KAAK,EACL,CAAC,EACD,MAAM,EACN,IAAI,EACL,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,s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AAM,KAAK,EAAC,8BAA8B,IACvC,IAAI,CAAC,QAAQ;kBACZ,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,iBAAiB;kBAC9C,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAE3C,CACF,CAEF;QAEX,WAAK,KAAK,EAAC,yBAAyB;UAClC,eAAa,CACT;QACN,EAAC,oBAAoB,IACnB,WAAW,EAAC,iBAAiB,EAC7B,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,cAAc,EACtC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACO,CACN,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Prop,\n Element,\n Watch,\n h,\n Listen,\n Host\n} from \"@stencil/core\";\n\nimport { StzhRadioChangeEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { camelCase } from \"../../utils/string-utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nconst SELECTOR_RADIO = 'stzh-radio, stzh-button[type=radio], stzh-card';\n\nlet radiogroupCounter = 0;\n\n/**\n * @slot - Slot for `stzh-radio`, `stzh-button[type=\"radio\"]` or `stzh-card` elements\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-radiogroup\",\n styleUrl: \"stzh-radiogroup.scss\",\n scoped: true\n})\nexport class StzhRadiogroup {\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 radio elements, will define the radio group. If you have more than one radio group on a page, every group needs to have its own unique name */\n @Prop({ reflect: true }) name: string;\n\n /** The legend */\n @Prop() legend: string;\n\n /** Hide legend to show only for screenreaders */\n @Prop({ reflect: true }) hideLegend: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Select a radio by value */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Direction */\n @Prop({ reflect: true }) direction: \"vertical\" | \"horizontal\" = \"vertical\";\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 /** 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 /** Current checked radio element (readonly) */\n @Prop() checkedRadio: HTMLStzhRadioElement | null = null;\n\n /** Prevent updating certain properties of radio elements (possible values inside array: disabled, invalid, required, hide-marker) */\n @Prop() preventUpdateProperties: string[] | string = [];\n private _preventUpdateProperties: string[] = [];\n\n /** Host element */\n @Element() element: HTMLElement;\n\n @Watch(\"name\")\n watchName(newValue: string) {\n this.updateRadiosProperty(\"name\", newValue);\n }\n\n @Watch(\"disabled\")\n watchDisabled(newValue: boolean) {\n this.updateRadiosProperty(\"disabled\", newValue);\n }\n\n @Watch(\"required\")\n watchRequired(newValue: boolean) {\n this.updateRadiosProperty(\"required\", newValue);\n }\n\n @Watch(\"value\")\n watchValue(newValue: string) {\n this.updateCheckedRadioByValue(newValue);\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 @Watch(\"preventUpdateProperties\")\n preventUpdatePropertiesWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._preventUpdateProperties = JSON.parse(newValue);\n } else {\n this._preventUpdateProperties = newValue;\n }\n }\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\n @Listen(\"stzhChange\")\n onChange(event: CustomEvent<StzhRadioChangeEvent>) {\n this.value = event.detail.value;\n }\n\n /** Radio elements */\n private radios: HTMLStzhRadioElement[];\n private radiogroupId: string;\n private observer: MutationObserver;\n\n private updateRadiosProperty(prop: string, value: any) {\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (prop === \"name\" || (this._preventUpdateProperties.indexOf(prop) === -1)) {\n radio[camelCase(prop)] = value;\n }\n });\n }\n\n private get errorUsed(): boolean {\n return hasSlot(this.element, 'error') || this._error?.length > 0;\n }\n\n private updateCheckedRadioByValue(value: string) {\n this.checkedRadio = this.radios.find(radio => radio.value === value);\n\n if (this.checkedRadio) {\n this.checkedRadio.checked = true;\n }\n\n this.uncheckRadios();\n }\n\n private uncheckRadios() {\n // make sure that no other radios are checked than the current one or no one\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (!this.checkedRadio || radio !== this.checkedRadio) {\n radio.checked = false;\n }\n });\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n }\n\n private init = () => {\n // update radios\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n this.updateRadiosProperty(\"hide-optional\", true);\n this.updateRadiosProperty(\"a11y-describedby\", `${this.radiogroupId}-description`);\n this.updateRadiosProperty(\"invalid\", this.invalid || this.errorUsed);\n\n this.watchValue(this.value);\n this.watchName(this.name);\n this.watchDisabled(this.disabled);\n this.watchRequired(this.required);\n }\n\n componentDidLoad() {\n this.defaultValue = this.defaultValue ? this.defaultValue : this.value;\n }\n\n async componentWillLoad() {\n this.radiogroupId = `stzh-radiogroup-${radiogroupCounter++}`;\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'radiogroup');\n }\n }\n\n componentShouldUpdate(_newValue, _oldValue, prop: string) {\n return prop !== \"checkedRadio\";\n }\n\n componentDidRender() {\n this.init();\n }\n\n connectedCallback() {\n if (!this.value) {\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n // try to find a checkbox that might has checked set to true\n const checkedRadio = this.radios.find(radio => radio.checked);\n\n if (checkedRadio) {\n this.value = checkedRadio.value;\n }\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;\n\n const classes = {\n \"stzh-radiogroup\": true,\n \"stzh-radiogroup--has-description\": descriptionUsed,\n \"stzh-radiogroup--has-description-long\": descriptionLongUsed,\n \"stzh-radiogroup--has-error\": this.errorUsed,\n \"stzh-radiogroup--is-required\": this.required,\n \"stzh-radiogroup--is-disabled\": this.disabled,\n \"stzh-radiogroup--is-invalid\": this.invalid || this.errorUsed,\n \"stzh-radiogroup--hide-legend\": this.hideLegend,\n [`stzh-radiogroup--direction-${this.direction}`]: !!this.direction\n };\n\n return (\n <Host is-invalid={this.invalid || this.errorUsed}>\n <fieldset class={classes}>\n {this.legend &&\n <legend class=\"stzh-radiogroup__legend\">\n {this.legend}\n {!this.hideOptional &&\n <span class=\"stzh-radiogroup__marker\">\n <span class=\"stzh-radiogroup__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-radiogroup__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </legend>\n }\n <div class=\"stzh-radiogroup__fields\">\n <slot></slot>\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-radiogroup\"\n id={`${this.radiogroupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </fieldset>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -47,3 +47,13 @@ export const Default = {
|
|
|
47
47
|
legend: 'Department options'
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
+
|
|
51
|
+
export const WithError = {
|
|
52
|
+
render: (args) => story(args, TEMPLATE),
|
|
53
|
+
args: {
|
|
54
|
+
value: 'UVZ',
|
|
55
|
+
name: 'department_story_1',
|
|
56
|
+
legend: 'Department options',
|
|
57
|
+
error: 'Error'
|
|
58
|
+
}
|
|
59
|
+
};
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
/**
|
|
28
28
|
* Header
|
|
29
29
|
*/
|
|
30
|
+
/**
|
|
31
|
+
* Footer
|
|
32
|
+
*/
|
|
30
33
|
/**
|
|
31
34
|
* Fieldset
|
|
32
35
|
*/
|
|
@@ -57,9 +60,6 @@
|
|
|
57
60
|
/**
|
|
58
61
|
* Tooltips
|
|
59
62
|
*/
|
|
60
|
-
/**
|
|
61
|
-
* Header
|
|
62
|
-
*/
|
|
63
63
|
/**
|
|
64
64
|
* Dialogs / Popover
|
|
65
65
|
*/
|
|
@@ -221,6 +221,11 @@ stzh-readspeaker .stzh-fylingfocus-focused::-moz-focus-inner {
|
|
|
221
221
|
--dropdown-settings-top: var(--stzh-readspeaker-dropdown-settings-top, var(--stzh-form-input-tiny-height));
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
@media print {
|
|
225
|
+
stzh-readspeaker {
|
|
226
|
+
display: none;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
224
229
|
|
|
225
230
|
.stzh-readspeaker {
|
|
226
231
|
position: relative;
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
/**
|
|
28
28
|
* Header
|
|
29
29
|
*/
|
|
30
|
+
/**
|
|
31
|
+
* Footer
|
|
32
|
+
*/
|
|
30
33
|
/**
|
|
31
34
|
* Fieldset
|
|
32
35
|
*/
|
|
@@ -57,9 +60,6 @@
|
|
|
57
60
|
/**
|
|
58
61
|
* Tooltips
|
|
59
62
|
*/
|
|
60
|
-
/**
|
|
61
|
-
* Header
|
|
62
|
-
*/
|
|
63
63
|
/**
|
|
64
64
|
* Dialogs / Popover
|
|
65
65
|
*/
|
|
@@ -168,6 +168,7 @@ stzh-search {
|
|
|
168
168
|
display: block;
|
|
169
169
|
/* default outline value, which will be applied to all elements receiving focus
|
|
170
170
|
the .has-focus class is used by the focus target */
|
|
171
|
+
--filter-background-color: var(--stzh-search-filter-background-color, var(--stzh-color-grey10));
|
|
171
172
|
--grid-template-areas:
|
|
172
173
|
"filters-main filters-main filters-main filters-main"
|
|
173
174
|
"results results results results";
|
|
@@ -296,7 +297,7 @@ stzh-search:where([has-aside-filters]:not([hide-aside-filters]:not([hide-aside-f
|
|
|
296
297
|
}
|
|
297
298
|
.stzh-search__filters-main:not(:empty) {
|
|
298
299
|
padding: var(--stzh-space-xlarge);
|
|
299
|
-
background-color: var(--
|
|
300
|
+
background-color: var(--filter-background-color);
|
|
300
301
|
}
|
|
301
302
|
@media screen and (min-width: 900px) {
|
|
302
303
|
.stzh-search__filters-main:not(:empty) {
|
|
@@ -313,7 +314,7 @@ stzh-search:where([has-aside-filters]:not([hide-aside-filters]:not([hide-aside-f
|
|
|
313
314
|
}
|
|
314
315
|
.stzh-search__filters-aside:not(:empty) {
|
|
315
316
|
padding: var(--stzh-space-xlarge);
|
|
316
|
-
background-color: var(--
|
|
317
|
+
background-color: var(--filter-background-color);
|
|
317
318
|
}
|
|
318
319
|
@media screen and (min-width: 900px) {
|
|
319
320
|
.stzh-search__filters-aside:not(:empty) {
|
package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css
CHANGED
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
/**
|
|
29
29
|
* Header
|
|
30
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* Footer
|
|
33
|
+
*/
|
|
31
34
|
/**
|
|
32
35
|
* Fieldset
|
|
33
36
|
*/
|
|
@@ -58,9 +61,6 @@
|
|
|
58
61
|
/**
|
|
59
62
|
* Tooltips
|
|
60
63
|
*/
|
|
61
|
-
/**
|
|
62
|
-
* Header
|
|
63
|
-
*/
|
|
64
64
|
/**
|
|
65
65
|
* Dialogs / Popover
|
|
66
66
|
*/
|
|
@@ -181,6 +181,18 @@ body {
|
|
|
181
181
|
-webkit-print-color-adjust: exact !important;
|
|
182
182
|
print-color-adjust: exact !important;
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
.stzh-print-break-after-always {
|
|
186
|
+
page-break-after: always !important;
|
|
187
|
+
-moz-column-break-after: always !important;
|
|
188
|
+
break-after: always !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.stzh-print-break-inside-avoid {
|
|
192
|
+
page-break-inside: avoid !important;
|
|
193
|
+
-moz-column-break-inside: avoid !important;
|
|
194
|
+
break-inside: avoid !important;
|
|
195
|
+
}
|
|
184
196
|
}
|
|
185
197
|
|
|
186
198
|
/* Helper for enabling smooth scrolling */
|
|
@@ -1188,6 +1200,9 @@ the .has-focus class is used by the focus target */
|
|
|
1188
1200
|
/* Header */
|
|
1189
1201
|
--stzh-header-logobar-background-color: var(--stzh-color-primary70);
|
|
1190
1202
|
|
|
1203
|
+
/* Footer */
|
|
1204
|
+
--stzh-footer-background-color: var(--stzh-color-primary100);
|
|
1205
|
+
|
|
1191
1206
|
/* Accordion */
|
|
1192
1207
|
--stzh-accordion-content-background: var(--stzh-color-secondary10);
|
|
1193
1208
|
|