@oiz/stzh-components 4.12.1-beta1 → 4.12.2
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-N0ol04NL.js → index-D-_ltZeJ.js} +3 -3
- package/dist/cjs/{index-N0ol04NL.js.map → index-D-_ltZeJ.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-actions_6.cjs.entry.js +2 -2
- package/dist/cjs/stzh-actionset.cjs.entry.js +1 -1
- package/dist/cjs/stzh-amount.cjs.entry.js +1 -1
- package/dist/cjs/stzh-anchornav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-app-nav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-appointments.cjs.entry.js +2 -2
- package/dist/cjs/stzh-archivelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +2 -2
- package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-banner.cjs.entry.js +1 -1
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-navigation.cjs.entry.js +2 -2
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js +2 -2
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js +2 -2
- package/dist/cjs/stzh-card_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-carousel.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +36 -6
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -3
- package/dist/cjs/stzh-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-chipgroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-clamp.cjs.entry.js +1 -1
- package/dist/cjs/stzh-company-logo.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/stzh-content.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datalist_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +36 -6
- package/dist/cjs/stzh-daterange.cjs.entry.js +2 -2
- package/dist/cjs/stzh-details.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
- package/dist/cjs/stzh-disturber.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/stzh-feedreader-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-feedreader.cjs.entry.js +2 -2
- package/dist/cjs/stzh-figure.cjs.entry.js +2 -2
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
- package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ghettobox.cjs.entry.js +2 -2
- package/dist/cjs/stzh-header_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
- package/dist/cjs/stzh-homepage-search.cjs.entry.js +1 -1
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +2 -2
- package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-http-error.cjs.entry.js +1 -1
- package/dist/cjs/stzh-iframe.cjs.entry.js +1 -1
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-input-description-Dbubu75V.js → stzh-input-description-BCu4biHD.js} +3 -3
- package/dist/cjs/{stzh-input-description-Dbubu75V.js.map → stzh-input-description-BCu4biHD.js.map} +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +31 -36
- package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +2 -2
- package/dist/cjs/stzh-linklist.cjs.entry.js +2 -2
- package/dist/cjs/stzh-list_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-message.cjs.entry.js +4 -4
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-offline-indicator.cjs.entry.js +1 -1
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagecontent.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-panorama.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-menu.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-quote.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-teaser-layout-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-teaser-layout.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pkzh-qr.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +2 -2
- package/dist/cjs/stzh-print_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-quote.cjs.entry.js +1 -1
- package/dist/cjs/stzh-rating.cjs.entry.js +37 -9
- package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +2 -2
- package/dist/cjs/stzh-richtext.cjs.entry.js +1 -1
- package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +2 -2
- package/dist/cjs/stzh-search.cjs.entry.js +2 -2
- package/dist/cjs/stzh-section.cjs.entry.js +2 -2
- package/dist/cjs/stzh-show.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-storybook-preview.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
- package/dist/cjs/stzh-socialmediastream-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-socialmediastream.cjs.entry.js +2 -2
- package/dist/cjs/stzh-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-stepper.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky-actions.cjs.entry.js +2 -2
- package/dist/cjs/stzh-sticky.cjs.entry.js +2 -2
- package/dist/cjs/stzh-table.cjs.entry.js +2 -2
- package/dist/cjs/stzh-text.cjs.entry.js +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +2 -2
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-timeline.cjs.entry.js +1 -1
- package/dist/cjs/stzh-timepicker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toast_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-toggle.cjs.entry.js +36 -7
- package/dist/cjs/stzh-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/stzh-twocolumns.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-youtube.cjs.entry.js +1 -1
- package/dist/cjs/{utils-BtvTjHH2.js → utils-CjJm84Uq.js} +59 -2
- package/dist/cjs/utils-CjJm84Uq.js.map +1 -0
- 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-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-message/stzh-message.js +5 -5
- package/dist/collection/components/stzh-message/stzh-message.js.map +1 -1
- package/dist/collection/components/stzh-message/stzh-message.stories.js +127 -2
- 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-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-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-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/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-5iYOoBns.js → p-4Vt8Vqot.js} +3 -3
- package/dist/components/{p-5iYOoBns.js.map → p-4Vt8Vqot.js.map} +1 -1
- package/dist/components/{p-H9Yh6P94.js → p-6cYGuE14.js} +12 -12
- package/dist/components/{p-H9Yh6P94.js.map → p-6cYGuE14.js.map} +1 -1
- package/dist/components/{p-CzvAx4N0.js → p-AIPoMvau.js} +3 -3
- package/dist/components/{p-CzvAx4N0.js.map → p-AIPoMvau.js.map} +1 -1
- package/dist/components/{p-8vUD5Pvs.js → p-B44NYxqN.js} +38 -43
- package/dist/components/p-B44NYxqN.js.map +1 -0
- package/dist/components/{p-BcfJQ2iG.js → p-BB0rFoJE.js} +10 -10
- package/dist/components/{p-BcfJQ2iG.js.map → p-BB0rFoJE.js.map} +1 -1
- package/dist/components/{p-DajXzNIS.js → p-BBg6OWDc.js} +3 -3
- package/dist/components/{p-DajXzNIS.js.map → p-BBg6OWDc.js.map} +1 -1
- package/dist/components/{p-B9l_iEm8.js → p-BDTpabg7.js} +3 -3
- package/dist/components/{p-B9l_iEm8.js.map → p-BDTpabg7.js.map} +1 -1
- package/dist/components/{p-ulFcx8BE.js → p-BK6Q89R0.js} +6 -6
- package/dist/components/{p-ulFcx8BE.js.map → p-BK6Q89R0.js.map} +1 -1
- package/dist/components/{p-CLC2TbXk.js → p-BTNpLREK.js} +8 -8
- package/dist/components/{p-CLC2TbXk.js.map → p-BTNpLREK.js.map} +1 -1
- package/dist/components/{p-B6XvNGiA.js → p-BYIlBCuU.js} +7 -7
- package/dist/components/{p-B6XvNGiA.js.map → p-BYIlBCuU.js.map} +1 -1
- package/dist/components/{p-dZ-dwebM.js → p-BaU8F8yT.js} +12 -12
- package/dist/components/{p-dZ-dwebM.js.map → p-BaU8F8yT.js.map} +1 -1
- package/dist/components/{p-Cq0yCqAz.js → p-BbXrDPd7.js} +4 -4
- package/dist/components/{p-Cq0yCqAz.js.map → p-BbXrDPd7.js.map} +1 -1
- package/dist/components/{p-Cg0FICEV.js → p-Bc9gWpUe.js} +13 -13
- package/dist/components/{p-Cg0FICEV.js.map → p-Bc9gWpUe.js.map} +1 -1
- package/dist/components/{p-zoQGoMI3.js → p-BdtE_fpY.js} +3 -3
- package/dist/components/{p-zoQGoMI3.js.map → p-BdtE_fpY.js.map} +1 -1
- package/dist/components/{p-D6v9nUys.js → p-BeN1KWYK.js} +6 -6
- package/dist/components/{p-D6v9nUys.js.map → p-BeN1KWYK.js.map} +1 -1
- package/dist/components/{p-C4RWomy3.js → p-Bg2ganSs.js} +3 -3
- package/dist/components/{p-C4RWomy3.js.map → p-Bg2ganSs.js.map} +1 -1
- package/dist/components/{p-UU-uJ6rm.js → p-BiFb4c_S.js} +6 -6
- package/dist/components/{p-UU-uJ6rm.js.map → p-BiFb4c_S.js.map} +1 -1
- package/dist/components/{p-DWVF3j-K.js → p-BiZ4OWbq.js} +3 -3
- package/dist/components/{p-DWVF3j-K.js.map → p-BiZ4OWbq.js.map} +1 -1
- package/dist/components/{p-nQojTf6Q.js → p-BmG3hFM8.js} +3 -3
- package/dist/components/{p-nQojTf6Q.js.map → p-BmG3hFM8.js.map} +1 -1
- package/dist/components/{p-BphPIp_9.js → p-BsRNqz_b.js} +6 -6
- package/dist/components/{p-BphPIp_9.js.map → p-BsRNqz_b.js.map} +1 -1
- package/dist/components/{p-DOs1ZWHT.js → p-Bsor2Gp2.js} +8 -8
- package/dist/components/{p-DOs1ZWHT.js.map → p-Bsor2Gp2.js.map} +1 -1
- package/dist/components/{p-B5bRe2QR.js → p-C0lp0Fm8.js} +3 -3
- package/dist/components/{p-B5bRe2QR.js.map → p-C0lp0Fm8.js.map} +1 -1
- package/dist/components/{p-C9g8C0mi.js → p-C3-tTDZG.js} +4 -4
- package/dist/components/{p-C9g8C0mi.js.map → p-C3-tTDZG.js.map} +1 -1
- package/dist/components/{p-CtfINZeC.js → p-C3YgJPrk.js} +3 -3
- package/dist/components/{p-CtfINZeC.js.map → p-C3YgJPrk.js.map} +1 -1
- package/dist/components/{p-Di88jQY_.js → p-CKLwcqdK.js} +10 -10
- package/dist/components/{p-Di88jQY_.js.map → p-CKLwcqdK.js.map} +1 -1
- package/dist/components/{p-C4ew4BWF.js → p-CPdCE2fo.js} +7 -7
- package/dist/components/{p-C4ew4BWF.js.map → p-CPdCE2fo.js.map} +1 -1
- package/dist/components/{p-C7Wum7Zf.js → p-CRo_30JG.js} +3 -3
- package/dist/components/{p-C7Wum7Zf.js.map → p-CRo_30JG.js.map} +1 -1
- package/dist/components/{p-C8p_ftK9.js → p-CSqS_CuA.js} +3 -3
- package/dist/components/{p-C8p_ftK9.js.map → p-CSqS_CuA.js.map} +1 -1
- package/dist/components/{p-BHnUxFJO.js → p-CUN47AJ6.js} +4 -4
- package/dist/components/{p-BHnUxFJO.js.map → p-CUN47AJ6.js.map} +1 -1
- package/dist/components/{p-DjTm4fFR.js → p-CUfKtr7R.js} +3 -3
- package/dist/components/{p-DjTm4fFR.js.map → p-CUfKtr7R.js.map} +1 -1
- package/dist/components/{p-DmE9OpGH.js → p-CVHui8fR.js} +4 -4
- package/dist/components/{p-DmE9OpGH.js.map → p-CVHui8fR.js.map} +1 -1
- package/dist/components/{p-Bouerm1u.js → p-CWliRPVy.js} +6 -6
- package/dist/components/{p-Bouerm1u.js.map → p-CWliRPVy.js.map} +1 -1
- package/dist/components/{p-SGLayYK3.js → p-CX72zNNm.js} +3 -3
- package/dist/components/{p-SGLayYK3.js.map → p-CX72zNNm.js.map} +1 -1
- package/dist/components/{p-o34Djtsg.js → p-CXhl6EKC.js} +6 -6
- package/dist/components/{p-o34Djtsg.js.map → p-CXhl6EKC.js.map} +1 -1
- package/dist/components/{p-DONIQb7T.js → p-ChcKhy4e.js} +4 -4
- package/dist/components/{p-DONIQb7T.js.map → p-ChcKhy4e.js.map} +1 -1
- package/dist/components/{p-SyDKOxzb.js → p-CriJMdWt.js} +3 -3
- package/dist/components/{p-SyDKOxzb.js.map → p-CriJMdWt.js.map} +1 -1
- package/dist/components/{p-CK7gMyRU.js → p-CuR6yL1b.js} +3 -3
- package/dist/components/{p-CK7gMyRU.js.map → p-CuR6yL1b.js.map} +1 -1
- package/dist/components/{p-DMh6Sy1I.js → p-Cy--N6et.js} +9 -9
- package/dist/components/{p-DMh6Sy1I.js.map → p-Cy--N6et.js.map} +1 -1
- package/dist/components/{p-CPrTAi5M.js → p-D2yGNkLU.js} +4 -4
- package/dist/components/{p-CPrTAi5M.js.map → p-D2yGNkLU.js.map} +1 -1
- package/dist/components/{p-DbtxIjHJ.js → p-D4c33pwr.js} +13 -13
- package/dist/components/{p-DbtxIjHJ.js.map → p-D4c33pwr.js.map} +1 -1
- package/dist/components/{p-CN5apKPb.js → p-DBHUqFOB.js} +59 -3
- package/dist/components/p-DBHUqFOB.js.map +1 -0
- package/dist/components/{p-B2I6UGb-.js → p-DDAHV4ye.js} +4 -4
- package/dist/components/{p-B2I6UGb-.js.map → p-DDAHV4ye.js.map} +1 -1
- package/dist/components/{p-BSx9yT8P.js → p-DEfzwFSm.js} +3 -3
- package/dist/components/{p-BSx9yT8P.js.map → p-DEfzwFSm.js.map} +1 -1
- package/dist/components/{p-B-Td5eEF.js → p-DFEhv2Xw.js} +3 -3
- package/dist/components/{p-B-Td5eEF.js.map → p-DFEhv2Xw.js.map} +1 -1
- package/dist/components/{p-CzWLgw4z.js → p-DL-zsyu2.js} +11 -11
- package/dist/components/{p-CzWLgw4z.js.map → p-DL-zsyu2.js.map} +1 -1
- package/dist/components/{p-DGZVtVjz.js → p-DLBRj3YX.js} +4 -4
- package/dist/components/{p-DGZVtVjz.js.map → p-DLBRj3YX.js.map} +1 -1
- package/dist/components/{p-BWt1OlCP.js → p-DOnc5uKa.js} +6 -6
- package/dist/components/{p-BWt1OlCP.js.map → p-DOnc5uKa.js.map} +1 -1
- package/dist/components/{p-XSAPGv74.js → p-DPyihiYB.js} +4 -4
- package/dist/components/{p-XSAPGv74.js.map → p-DPyihiYB.js.map} +1 -1
- package/dist/components/{p-DvQXjdsB.js → p-DT0ux3Yn.js} +5 -5
- package/dist/components/{p-DvQXjdsB.js.map → p-DT0ux3Yn.js.map} +1 -1
- package/dist/components/{p-DsHYayb4.js → p-DT8WI_DQ.js} +6 -6
- package/dist/components/{p-DsHYayb4.js.map → p-DT8WI_DQ.js.map} +1 -1
- package/dist/components/{p-DcQjVFab.js → p-DTs8UJec.js} +4 -4
- package/dist/components/{p-DcQjVFab.js.map → p-DTs8UJec.js.map} +1 -1
- package/dist/components/{p-DX6blqyR.js → p-DXesblGY.js} +7 -7
- package/dist/components/{p-DX6blqyR.js.map → p-DXesblGY.js.map} +1 -1
- package/dist/components/{p-BKzN4XU2.js → p-DaIlRoxA.js} +4 -4
- package/dist/components/{p-BKzN4XU2.js.map → p-DaIlRoxA.js.map} +1 -1
- package/dist/components/{p-RMVTGhIS.js → p-Deiikj-l.js} +8 -8
- package/dist/components/{p-RMVTGhIS.js.map → p-Deiikj-l.js.map} +1 -1
- package/dist/components/{p-CnJ7i4Ge.js → p-DmRzqkUn.js} +4 -4
- package/dist/components/{p-CnJ7i4Ge.js.map → p-DmRzqkUn.js.map} +1 -1
- package/dist/components/{p-Dn5GUbNz.js → p-Dp2_qh2g.js} +44 -12
- package/dist/components/p-Dp2_qh2g.js.map +1 -0
- package/dist/components/{p-BA-k3iZ-.js → p-DrLVNdlm.js} +6 -6
- package/dist/components/{p-BA-k3iZ-.js.map → p-DrLVNdlm.js.map} +1 -1
- package/dist/components/{p-CjdErtj_.js → p-EWvxAi6Y.js} +44 -12
- package/dist/components/p-EWvxAi6Y.js.map +1 -0
- package/dist/components/{p-BopctUFy.js → p-JcCSKOtR.js} +7 -7
- package/dist/components/{p-BopctUFy.js.map → p-JcCSKOtR.js.map} +1 -1
- package/dist/components/{p-KSZ8qiZE.js → p-KKaagY0f.js} +10 -10
- package/dist/components/{p-KSZ8qiZE.js.map → p-KKaagY0f.js.map} +1 -1
- package/dist/components/{p-DehXKx39.js → p-R8ubFYun.js} +10 -10
- package/dist/components/{p-DehXKx39.js.map → p-R8ubFYun.js.map} +1 -1
- package/dist/components/{p-CVwbuuw7.js → p-RJIRkyt1.js} +9 -9
- package/dist/components/{p-CVwbuuw7.js.map → p-RJIRkyt1.js.map} +1 -1
- package/dist/components/{p-Bq8KQiri.js → p-SW8QhG6M.js} +3 -3
- package/dist/components/{p-Bq8KQiri.js.map → p-SW8QhG6M.js.map} +1 -1
- package/dist/components/{p-pWmESorT.js → p-dgzFBTky.js} +3 -3
- package/dist/components/{p-pWmESorT.js.map → p-dgzFBTky.js.map} +1 -1
- package/dist/components/{p-CdY_9ADR.js → p-i5bFTONl.js} +3 -3
- package/dist/components/{p-CdY_9ADR.js.map → p-i5bFTONl.js.map} +1 -1
- package/dist/components/{p-VpVgAuYa.js → p-rjZPG2L3.js} +3 -3
- package/dist/components/{p-VpVgAuYa.js.map → p-rjZPG2L3.js.map} +1 -1
- package/dist/components/{p-BS1D_VQu.js → p-wa6O8ip3.js} +4 -4
- package/dist/components/{p-BS1D_VQu.js.map → p-wa6O8ip3.js.map} +1 -1
- package/dist/components/{p-B0HsC5lT.js → p-xKyBBmWw.js} +3 -3
- package/dist/components/{p-B0HsC5lT.js.map → p-xKyBBmWw.js.map} +1 -1
- package/dist/components/{p-Cb-REzD8.js → p-xa5yO3I6.js} +8 -8
- package/dist/components/{p-Cb-REzD8.js.map → p-xa5yO3I6.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 +9 -9
- package/dist/components/stzh-anchornav.js +5 -5
- package/dist/components/stzh-app-nav.js +1 -1
- package/dist/components/stzh-appointments.js +14 -14
- package/dist/components/stzh-archivelist.js +7 -7
- package/dist/components/stzh-audio.js +6 -6
- package/dist/components/stzh-badge.js +1 -1
- package/dist/components/stzh-banner.js +4 -4
- 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 +3 -3
- package/dist/components/stzh-card-searchresult.js +15 -15
- 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 +1 -1
- package/dist/components/stzh-checkbox.js +1 -1
- package/dist/components/stzh-checkboxgroup.js +6 -6
- 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 +1 -1
- 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 +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cta.js +4 -4
- package/dist/components/stzh-datalist-item.js +1 -1
- package/dist/components/stzh-datalist.js +1 -1
- package/dist/components/stzh-datamessagelist-item.js +11 -11
- package/dist/components/stzh-datamessagelist.js +1 -1
- package/dist/components/stzh-datatable.js +18 -18
- package/dist/components/stzh-datepicker.js +1 -1
- package/dist/components/stzh-daterange.js +5 -5
- 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 +6 -6
- package/dist/components/stzh-feedreader-item.js +3 -3
- package/dist/components/stzh-feedreader.js +9 -9
- package/dist/components/stzh-fieldset.js +1 -1
- package/dist/components/stzh-figure.js +1 -1
- package/dist/components/stzh-flyingfocus.js +1 -1
- package/dist/components/stzh-footer.js +5 -5
- package/dist/components/stzh-gallery.js +8 -8
- package/dist/components/stzh-geo-ref-data.js +24 -24
- package/dist/components/stzh-ghettobox.js +5 -5
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-heading.js +1 -1
- package/dist/components/stzh-homepage-search.js +2 -2
- package/dist/components/stzh-homepage-service-highlights.js +7 -7
- package/dist/components/stzh-hr.js +1 -1
- package/dist/components/stzh-hspace.js +1 -1
- package/dist/components/stzh-http-error.js +7 -7
- package/dist/components/stzh-icon.js +1 -1
- package/dist/components/stzh-iframe.js +1 -1
- package/dist/components/stzh-imagecomparison.js +2 -2
- package/dist/components/stzh-input.js +1 -1
- package/dist/components/stzh-invert.js +1 -1
- package/dist/components/stzh-link.js +1 -1
- package/dist/components/stzh-linklist.js +11 -11
- 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 +1 -1
- 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 +20 -20
- package/dist/components/stzh-monthyearpicker.js +5 -5
- package/dist/components/stzh-offline-indicator.js +6 -6
- package/dist/components/stzh-olmap.js +1 -1
- package/dist/components/stzh-overlay.js +1 -1
- package/dist/components/stzh-page-skiplinks.js +1 -1
- package/dist/components/stzh-pagebottom.js +8 -8
- package/dist/components/stzh-pagecontent.js +2 -2
- package/dist/components/stzh-pagetitle-hero.js +2 -2
- package/dist/components/stzh-pagetitle-home.js +3 -3
- package/dist/components/stzh-pagetitle.js +3 -3
- package/dist/components/stzh-pagination.js +1 -1
- package/dist/components/stzh-panorama.js +11 -11
- package/dist/components/stzh-pi-content-navigation.js +4 -4
- package/dist/components/stzh-pi-menu.js +3 -3
- package/dist/components/stzh-pi-pagetitle.js +3 -3
- package/dist/components/stzh-pi-quote.js +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +5 -5
- package/dist/components/stzh-richtext.js +2 -2
- package/dist/components/stzh-row.js +1 -1
- package/dist/components/stzh-saptcha.js +7 -7
- package/dist/components/stzh-scrollup.js +2 -2
- package/dist/components/stzh-search.js +17 -17
- package/dist/components/stzh-section.js +2 -2
- package/dist/components/stzh-share.js +1 -1
- package/dist/components/stzh-show.js +1 -1
- package/dist/components/stzh-sitemap.js +9 -9
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-storybook-preview.js +1 -1
- package/dist/components/stzh-skiplink.js +1 -1
- package/dist/components/stzh-socialmediastream-item.js +1 -1
- package/dist/components/stzh-socialmediastream.js +7 -7
- 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 +3 -3
- package/dist/components/stzh-sticky-actions.js +3 -3
- package/dist/components/stzh-sticky.js +1 -1
- package/dist/components/stzh-table.js +2 -2
- package/dist/components/stzh-tag.js +1 -1
- package/dist/components/stzh-text.js +1 -1
- package/dist/components/stzh-textandimage.js +2 -2
- package/dist/components/stzh-timeline-item.js +4 -4
- package/dist/components/stzh-timeline.js +1 -1
- package/dist/components/stzh-timepicker.js +5 -5
- 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 +2 -2
- 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 +1 -1
- package/dist/components/stzh-vspace.js +1 -1
- package/dist/components/stzh-youtube.js +6 -6
- package/dist/esm/{index-BDy81lpO.js → index-BMrO_esM.js} +3 -3
- package/dist/esm/{index-BDy81lpO.js.map → index-BMrO_esM.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/stzh-accordion_3.entry.js +2 -2
- package/dist/esm/stzh-actions_6.entry.js +2 -2
- package/dist/esm/stzh-actionset.entry.js +1 -1
- package/dist/esm/stzh-amount.entry.js +1 -1
- package/dist/esm/stzh-anchornav.entry.js +1 -1
- package/dist/esm/stzh-app-nav.entry.js +1 -1
- package/dist/esm/stzh-appointments.entry.js +2 -2
- package/dist/esm/stzh-archivelist.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +2 -2
- package/dist/esm/stzh-badge_3.entry.js +2 -2
- package/dist/esm/stzh-banner.entry.js +1 -1
- package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
- package/dist/esm/stzh-buttongroup.entry.js +1 -1
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card-navigation.entry.js +2 -2
- package/dist/esm/stzh-card-searchresult.entry.js +2 -2
- package/dist/esm/stzh-card-superteaser.entry.js +2 -2
- package/dist/esm/stzh-card_2.entry.js +2 -2
- package/dist/esm/stzh-carousel.entry.js +2 -2
- package/dist/esm/stzh-chart.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/stzh-chip_2.entry.js +3 -3
- package/dist/esm/stzh-chipgroup.entry.js +1 -1
- package/dist/esm/stzh-clamp.entry.js +1 -1
- package/dist/esm/stzh-company-logo.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/stzh-content.entry.js +1 -1
- package/dist/esm/stzh-cta.entry.js +2 -2
- package/dist/esm/stzh-datalist_3.entry.js +2 -2
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +2 -2
- package/dist/esm/stzh-datepicker_3.entry.js +36 -6
- package/dist/esm/stzh-daterange.entry.js +2 -2
- package/dist/esm/stzh-details.entry.js +2 -2
- package/dist/esm/stzh-dialog.entry.js +2 -2
- package/dist/esm/stzh-disturber.entry.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/stzh-feedreader-item.entry.js +2 -2
- package/dist/esm/stzh-feedreader.entry.js +2 -2
- package/dist/esm/stzh-figure.entry.js +2 -2
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +2 -2
- package/dist/esm/stzh-gallery.entry.js +1 -1
- package/dist/esm/stzh-geo-ref-data.entry.js +1 -1
- package/dist/esm/stzh-ghettobox.entry.js +2 -2
- package/dist/esm/stzh-header_3.entry.js +2 -2
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-homepage-search.entry.js +1 -1
- package/dist/esm/stzh-homepage-service-highlights.entry.js +2 -2
- package/dist/esm/stzh-hr.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-http-error.entry.js +1 -1
- package/dist/esm/stzh-iframe.entry.js +1 -1
- package/dist/esm/stzh-imagecomparison.entry.js +1 -1
- package/dist/esm/{stzh-input-description-D2d54L27.js → stzh-input-description-F6xJmR4b.js} +3 -3
- package/dist/esm/{stzh-input-description-D2d54L27.js.map → stzh-input-description-F6xJmR4b.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 +1 -1
- package/dist/esm/stzh-link.entry.js +2 -2
- package/dist/esm/stzh-linklist.entry.js +2 -2
- package/dist/esm/stzh-list_2.entry.js +1 -1
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-loadingbar.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +2 -2
- package/dist/esm/stzh-message.entry.js +4 -4
- package/dist/esm/stzh-message.entry.js.map +1 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
- package/dist/esm/stzh-monthyearpicker.entry.js +1 -1
- package/dist/esm/stzh-offline-indicator.entry.js +1 -1
- package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +1 -1
- package/dist/esm/stzh-pagecontent.entry.js +2 -2
- package/dist/esm/stzh-pagetitle-hero.entry.js +2 -2
- package/dist/esm/stzh-pagetitle-home.entry.js +2 -2
- package/dist/esm/stzh-pagetitle.entry.js +2 -2
- package/dist/esm/stzh-panorama.entry.js +1 -1
- package/dist/esm/stzh-pi-content-navigation.entry.js +2 -2
- package/dist/esm/stzh-pi-menu.entry.js +1 -1
- package/dist/esm/stzh-pi-pagetitle.entry.js +2 -2
- package/dist/esm/stzh-pi-quote.entry.js +1 -1
- package/dist/esm/stzh-pi-teaser-layout-item.entry.js +1 -1
- package/dist/esm/stzh-pi-teaser-layout.entry.js +2 -2
- package/dist/esm/stzh-pi-teaser.entry.js +2 -2
- package/dist/esm/stzh-pkzh-qr.entry.js +1 -1
- package/dist/esm/stzh-popover.entry.js +2 -2
- package/dist/esm/stzh-print_2.entry.js +2 -2
- package/dist/esm/stzh-quote.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +2 -2
- package/dist/esm/stzh-richtext.entry.js +1 -1
- package/dist/esm/stzh-saptcha.entry.js +1 -1
- package/dist/esm/stzh-scrollup.entry.js +2 -2
- package/dist/esm/stzh-search.entry.js +2 -2
- package/dist/esm/stzh-section.entry.js +2 -2
- package/dist/esm/stzh-show.entry.js +1 -1
- package/dist/esm/stzh-sitemap.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-storybook-preview.entry.js +1 -1
- package/dist/esm/stzh-skiplink.entry.js +1 -1
- package/dist/esm/stzh-socialmediastream-item.entry.js +1 -1
- package/dist/esm/stzh-socialmediastream.entry.js +2 -2
- package/dist/esm/stzh-stepper-item.entry.js +1 -1
- package/dist/esm/stzh-stepper.entry.js +1 -1
- package/dist/esm/stzh-sticky-actions.entry.js +2 -2
- package/dist/esm/stzh-sticky.entry.js +2 -2
- package/dist/esm/stzh-table.entry.js +2 -2
- package/dist/esm/stzh-text.entry.js +1 -1
- package/dist/esm/stzh-textandimage.entry.js +2 -2
- package/dist/esm/stzh-timeline-item.entry.js +2 -2
- package/dist/esm/stzh-timeline.entry.js +1 -1
- package/dist/esm/stzh-timepicker.entry.js +1 -1
- package/dist/esm/stzh-toast_2.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/stzh-twocolumns.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm/stzh-youtube.entry.js +1 -1
- package/dist/esm/{utils-BnOofzDv.js → utils-CnvjJ2wY.js} +59 -3
- package/dist/esm/utils-CnvjJ2wY.js.map +1 -0
- package/dist/stzh-components/{p-D4oTGvdl.js → p--ooR_PU_.js} +2 -2
- package/dist/stzh-components/{p-D4oTGvdl.js.map → p--ooR_PU_.js.map} +1 -1
- package/dist/stzh-components/{p-f3276383.entry.js → p-00353dba.entry.js} +2 -2
- package/dist/stzh-components/{p-59da8df1.entry.js → p-01b57dff.entry.js} +2 -2
- package/dist/stzh-components/{p-65e3833f.entry.js → p-08c26fa4.entry.js} +2 -2
- package/dist/stzh-components/{p-561fd23e.entry.js → p-0bcce878.entry.js} +2 -2
- package/dist/stzh-components/{p-5f862749.entry.js → p-0d71a712.entry.js} +2 -2
- package/dist/stzh-components/{p-8e4ecd25.entry.js → p-102abd6c.entry.js} +2 -2
- package/dist/stzh-components/p-11375541.entry.js +2 -0
- package/dist/stzh-components/{p-deb5310a.entry.js.map → p-11375541.entry.js.map} +1 -1
- package/dist/stzh-components/{p-f1e336dc.entry.js → p-117d79b0.entry.js} +2 -2
- package/dist/stzh-components/{p-f1a64a00.entry.js → p-11984d87.entry.js} +2 -2
- package/dist/stzh-components/{p-7da86126.entry.js → p-15818fb6.entry.js} +2 -2
- package/dist/stzh-components/{p-1b39c90b.entry.js → p-182be2cb.entry.js} +6 -6
- package/dist/stzh-components/{p-e2f97240.entry.js → p-19425494.entry.js} +2 -2
- package/dist/stzh-components/{p-f442969e.entry.js → p-1c0d8bd1.entry.js} +2 -2
- package/dist/stzh-components/{p-1f1aac25.entry.js → p-1c10554c.entry.js} +2 -2
- package/dist/stzh-components/{p-e51cd413.entry.js → p-1da17a3f.entry.js} +2 -2
- package/dist/stzh-components/p-1e895ec3.entry.js +2 -0
- package/dist/stzh-components/p-1e895ec3.entry.js.map +1 -0
- package/dist/stzh-components/{p-74494120.entry.js → p-21d6ad19.entry.js} +2 -2
- package/dist/stzh-components/{p-931abfe7.entry.js → p-223813c2.entry.js} +2 -2
- package/dist/stzh-components/{p-54d92856.entry.js → p-2a02f828.entry.js} +2 -2
- package/dist/stzh-components/{p-0cac70a3.entry.js → p-2a127cc2.entry.js} +2 -2
- package/dist/stzh-components/{p-5b7298a4.entry.js → p-2a398b2e.entry.js} +2 -2
- package/dist/stzh-components/{p-75ffb877.entry.js → p-2b767b1b.entry.js} +2 -2
- package/dist/stzh-components/{p-dbe53670.entry.js → p-2c7792b4.entry.js} +2 -2
- package/dist/stzh-components/{p-1c3942a6.entry.js → p-2ddaf03b.entry.js} +2 -2
- package/dist/stzh-components/{p-fc96a153.entry.js → p-301c1aa1.entry.js} +2 -2
- package/dist/stzh-components/{p-f18c1bc6.entry.js → p-3066d7ac.entry.js} +2 -2
- package/dist/stzh-components/{p-ae8fe7f0.entry.js → p-32c6e24a.entry.js} +2 -2
- package/dist/stzh-components/{p-645c7fba.entry.js → p-34e31715.entry.js} +3 -3
- package/dist/stzh-components/{p-75dad6c7.entry.js → p-357943a8.entry.js} +2 -2
- package/dist/stzh-components/{p-9337582a.entry.js → p-39d6dad5.entry.js} +2 -2
- package/dist/stzh-components/{p-fd0e8627.entry.js → p-3b764057.entry.js} +2 -2
- package/dist/stzh-components/{p-0e3d6349.entry.js → p-3efa45ca.entry.js} +2 -2
- package/dist/stzh-components/{p-c471680d.entry.js → p-3f5f0aaf.entry.js} +2 -2
- package/dist/stzh-components/{p-2683a93d.entry.js → p-44b7bd82.entry.js} +2 -2
- package/dist/stzh-components/{p-8d558e1d.entry.js → p-490d880f.entry.js} +2 -2
- package/dist/stzh-components/{p-1db6f565.entry.js → p-49717f35.entry.js} +2 -2
- package/dist/stzh-components/{p-7f825eff.entry.js → p-4cc1d883.entry.js} +2 -2
- package/dist/stzh-components/{p-e92a11b6.entry.js → p-4e26f1e1.entry.js} +2 -2
- package/dist/stzh-components/{p-2e1efcc9.entry.js → p-51069c51.entry.js} +2 -2
- package/dist/stzh-components/{p-deb499e2.entry.js → p-51f6f724.entry.js} +2 -2
- package/dist/stzh-components/{p-0e45d2de.entry.js → p-56216434.entry.js} +2 -2
- package/dist/stzh-components/{p-46c5b453.entry.js → p-5eff4877.entry.js} +2 -2
- package/dist/stzh-components/{p-85ac6d83.entry.js → p-61bf5c59.entry.js} +2 -2
- package/dist/stzh-components/{p-bfa62b65.entry.js → p-66aa2138.entry.js} +2 -2
- package/dist/stzh-components/{p-759099e2.entry.js → p-66b8f10b.entry.js} +2 -2
- package/dist/stzh-components/{p-8f956678.entry.js → p-683a19bb.entry.js} +2 -2
- package/dist/stzh-components/{p-e281a715.entry.js → p-684d4d18.entry.js} +3 -3
- package/dist/stzh-components/p-687cae2d.entry.js +2 -0
- package/dist/stzh-components/p-687cae2d.entry.js.map +1 -0
- package/dist/stzh-components/{p-3c861eb0.entry.js → p-6add6579.entry.js} +2 -2
- package/dist/stzh-components/{p-7a1296d4.entry.js → p-6af8d5cb.entry.js} +2 -2
- package/dist/stzh-components/{p-69f5276e.entry.js → p-6b450966.entry.js} +2 -2
- package/dist/stzh-components/{p-b663c8f6.entry.js → p-6c6e664c.entry.js} +2 -2
- package/dist/stzh-components/{p-d3209381.entry.js → p-6e23fc8e.entry.js} +2 -2
- package/dist/stzh-components/{p-9957d575.entry.js → p-6ec9e3dc.entry.js} +2 -2
- package/dist/stzh-components/{p-70b10351.entry.js → p-7368a3bd.entry.js} +2 -2
- package/dist/stzh-components/{p-aef3c5ac.entry.js → p-77ab7971.entry.js} +2 -2
- package/dist/stzh-components/{p-e27591a6.entry.js → p-7898ab3c.entry.js} +2 -2
- package/dist/stzh-components/{p-aed15ee1.entry.js → p-7a8d05c2.entry.js} +2 -2
- package/dist/stzh-components/{p-f301a05c.entry.js → p-7b070e13.entry.js} +2 -2
- package/dist/stzh-components/{p-07639e2e.entry.js → p-7dc226b0.entry.js} +2 -2
- package/dist/stzh-components/{p-c0b4f81f.entry.js → p-7fef5a6d.entry.js} +2 -2
- package/dist/stzh-components/{p-b2fcc490.entry.js → p-80c514e1.entry.js} +2 -2
- package/dist/stzh-components/{p-82d1f2f4.entry.js → p-833bd793.entry.js} +2 -2
- package/dist/stzh-components/{p-6c3de48d.entry.js → p-8550b2d8.entry.js} +2 -2
- package/dist/stzh-components/{p-cd9b9eac.entry.js → p-85b5bdbd.entry.js} +2 -2
- package/dist/stzh-components/{p-65a6428c.entry.js → p-873bec1c.entry.js} +2 -2
- package/dist/stzh-components/{p-44df0e58.entry.js → p-89c070b8.entry.js} +2 -2
- package/dist/stzh-components/{p-8bc9e95b.entry.js → p-90c4a686.entry.js} +2 -2
- package/dist/stzh-components/{p-e93dbde4.entry.js → p-90db31fb.entry.js} +2 -2
- package/dist/stzh-components/{p-33c80dea.entry.js → p-91083053.entry.js} +2 -2
- package/dist/stzh-components/p-95b9d704.entry.js +2 -0
- package/dist/stzh-components/p-95b9d704.entry.js.map +1 -0
- package/dist/stzh-components/{p-52d757b2.entry.js → p-97be25ae.entry.js} +2 -2
- package/dist/stzh-components/{p-94eed7e7.entry.js → p-9a732268.entry.js} +2 -2
- package/dist/stzh-components/{p-39217901.entry.js → p-9b164561.entry.js} +2 -2
- package/dist/stzh-components/{p-8735dc17.entry.js → p-9bd07097.entry.js} +2 -2
- package/dist/stzh-components/{p-92d54e6a.entry.js → p-9d3dcadd.entry.js} +2 -2
- package/dist/stzh-components/{p-f4243fa8.entry.js → p-9db9d368.entry.js} +2 -2
- package/dist/stzh-components/p-BMrO_esM.js +3 -0
- package/dist/stzh-components/{p-BDy81lpO.js.map → p-BMrO_esM.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-dd01dcf6.entry.js → p-a2313acc.entry.js} +2 -2
- package/dist/stzh-components/{p-d3969952.entry.js → p-a466bef7.entry.js} +3 -3
- package/dist/stzh-components/{p-0fe0982a.entry.js → p-a6073abd.entry.js} +2 -2
- package/dist/stzh-components/{p-c5986c0b.entry.js → p-a924e049.entry.js} +2 -2
- package/dist/stzh-components/{p-58d6b294.entry.js → p-ab14b19a.entry.js} +2 -2
- package/dist/stzh-components/{p-25df4336.entry.js → p-ad11c427.entry.js} +2 -2
- package/dist/stzh-components/{p-85cb6ac3.entry.js → p-ad5b037d.entry.js} +2 -2
- package/dist/stzh-components/{p-09219622.entry.js → p-afbf7bd5.entry.js} +2 -2
- package/dist/stzh-components/p-b0f5c226.entry.js +2 -0
- package/dist/stzh-components/p-b0f5c226.entry.js.map +1 -0
- package/dist/stzh-components/{p-233a253c.entry.js → p-b322c0cd.entry.js} +2 -2
- package/dist/stzh-components/{p-e6626ed6.entry.js → p-b401f555.entry.js} +2 -2
- package/dist/stzh-components/{p-c9972340.entry.js → p-b6518908.entry.js} +6 -6
- package/dist/stzh-components/{p-97a89608.entry.js → p-b67a197e.entry.js} +2 -2
- package/dist/stzh-components/{p-5198a930.entry.js → p-b91a1fb5.entry.js} +2 -2
- package/dist/stzh-components/{p-8e34c9c9.entry.js → p-b936ffdb.entry.js} +2 -2
- package/dist/stzh-components/{p-64c9a8f7.entry.js → p-b93a07a9.entry.js} +2 -2
- package/dist/stzh-components/{p-bc622b2a.entry.js → p-b9c11320.entry.js} +2 -2
- package/dist/stzh-components/{p-539bb440.entry.js → p-b9d617d4.entry.js} +2 -2
- package/dist/stzh-components/{p-158b16e0.entry.js → p-bc49448d.entry.js} +2 -2
- package/dist/stzh-components/{p-45452a45.entry.js → p-c1ccb40f.entry.js} +2 -2
- package/dist/stzh-components/{p-d1a50145.entry.js → p-c359686c.entry.js} +2 -2
- package/dist/stzh-components/{p-d9ceb9a1.entry.js → p-c6ae1a73.entry.js} +2 -2
- package/dist/stzh-components/{p-3816c34e.entry.js → p-c8332abd.entry.js} +2 -2
- package/dist/stzh-components/{p-0df1be19.entry.js → p-ca39f17b.entry.js} +2 -2
- package/dist/stzh-components/{p-0a1eb5fd.entry.js → p-cba7e887.entry.js} +2 -2
- package/dist/stzh-components/{p-cc579b5c.entry.js → p-d0c780be.entry.js} +2 -2
- package/dist/stzh-components/{p-6aa53daf.entry.js → p-d10a459c.entry.js} +2 -2
- package/dist/stzh-components/{p-9c4e1649.entry.js → p-d10e2ff4.entry.js} +2 -2
- package/dist/stzh-components/{p-0dc95d03.entry.js → p-d319b8db.entry.js} +2 -2
- package/dist/stzh-components/{p-5ebd56ff.entry.js → p-d3ae51da.entry.js} +2 -2
- package/dist/stzh-components/{p-8a9f9b42.entry.js → p-d57711e5.entry.js} +2 -2
- package/dist/stzh-components/{p-7bb32473.entry.js → p-d591892c.entry.js} +2 -2
- package/dist/stzh-components/{p-968ef9db.entry.js → p-d8cacb50.entry.js} +2 -2
- package/dist/stzh-components/{p-32258f20.entry.js → p-d971957a.entry.js} +2 -2
- package/dist/stzh-components/{p-6e6064a5.entry.js → p-defa4f14.entry.js} +2 -2
- package/dist/stzh-components/p-e04fe921.entry.js +2 -0
- package/dist/stzh-components/p-e04fe921.entry.js.map +1 -0
- package/dist/stzh-components/{p-752e3cd8.entry.js → p-e6d33dfe.entry.js} +2 -2
- package/dist/stzh-components/{p-bb16873e.entry.js → p-e7c05a67.entry.js} +2 -2
- package/dist/stzh-components/{p-0747c17b.entry.js → p-e85f497a.entry.js} +2 -2
- package/dist/stzh-components/{p-38a9cabf.entry.js → p-e88b56a4.entry.js} +2 -2
- package/dist/stzh-components/{p-e84a2d9e.entry.js → p-ea2a37fa.entry.js} +2 -2
- package/dist/stzh-components/{p-67b2d82d.entry.js → p-ec4dc01c.entry.js} +2 -2
- package/dist/stzh-components/{p-32cd07f2.entry.js → p-ec958f98.entry.js} +2 -2
- package/dist/stzh-components/{p-120fc2f7.entry.js → p-ed66b150.entry.js} +2 -2
- package/dist/stzh-components/{p-78f63571.entry.js → p-eec61b75.entry.js} +2 -2
- package/dist/stzh-components/{p-68692aca.entry.js → p-f1fcc0d8.entry.js} +2 -2
- package/dist/stzh-components/{p-67e2ea65.entry.js → p-f31d01ea.entry.js} +2 -2
- package/dist/stzh-components/{p-79823ee9.entry.js → p-f76c80da.entry.js} +2 -2
- package/dist/stzh-components/{p-375f8787.entry.js → p-fce7bd0a.entry.js} +2 -2
- package/dist/stzh-components/{p-cd10adbb.entry.js → p-fd92dbe7.entry.js} +2 -2
- package/dist/stzh-components/p-fdb2fa88.entry.js +2 -0
- package/dist/stzh-components/p-fdb2fa88.entry.js.map +1 -0
- package/dist/stzh-components/{p-4dfa25ec.entry.js → p-fdca724c.entry.js} +2 -2
- package/dist/stzh-components/{p-01cb747a.entry.js → p-fe2e3916.entry.js} +2 -2
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +18 -0
- package/dist/types/components/stzh-input/stzh-input.d.ts +15 -4
- package/dist/types/components/stzh-message/stzh-message.d.ts +2 -2
- 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 +4 -4
- package/dist/types/utils/utils.d.ts +13 -0
- package/dist/vscode-data.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/utils-BtvTjHH2.js.map +0 -1
- package/dist/components/p-8vUD5Pvs.js.map +0 -1
- package/dist/components/p-CN5apKPb.js.map +0 -1
- package/dist/components/p-CjdErtj_.js.map +0 -1
- package/dist/components/p-Dn5GUbNz.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-0f6a6d68.entry.js +0 -2
- package/dist/stzh-components/p-0f6a6d68.entry.js.map +0 -1
- package/dist/stzh-components/p-17c76b7f.entry.js +0 -2
- package/dist/stzh-components/p-17c76b7f.entry.js.map +0 -1
- package/dist/stzh-components/p-42f4c28d.entry.js +0 -2
- package/dist/stzh-components/p-42f4c28d.entry.js.map +0 -1
- package/dist/stzh-components/p-856faa3f.entry.js +0 -2
- package/dist/stzh-components/p-856faa3f.entry.js.map +0 -1
- package/dist/stzh-components/p-963b4a81.entry.js +0 -2
- package/dist/stzh-components/p-963b4a81.entry.js.map +0 -1
- package/dist/stzh-components/p-BDy81lpO.js +0 -3
- package/dist/stzh-components/p-d215409f.entry.js +0 -2
- package/dist/stzh-components/p-d215409f.entry.js.map +0 -1
- package/dist/stzh-components/p-deb5310a.entry.js +0 -2
- /package/dist/stzh-components/{p-f3276383.entry.js.map → p-00353dba.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-59da8df1.entry.js.map → p-01b57dff.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-65e3833f.entry.js.map → p-08c26fa4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-561fd23e.entry.js.map → p-0bcce878.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5f862749.entry.js.map → p-0d71a712.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8e4ecd25.entry.js.map → p-102abd6c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f1e336dc.entry.js.map → p-117d79b0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f1a64a00.entry.js.map → p-11984d87.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7da86126.entry.js.map → p-15818fb6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1b39c90b.entry.js.map → p-182be2cb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e2f97240.entry.js.map → p-19425494.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f442969e.entry.js.map → p-1c0d8bd1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1f1aac25.entry.js.map → p-1c10554c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e51cd413.entry.js.map → p-1da17a3f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-74494120.entry.js.map → p-21d6ad19.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-931abfe7.entry.js.map → p-223813c2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-54d92856.entry.js.map → p-2a02f828.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0cac70a3.entry.js.map → p-2a127cc2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5b7298a4.entry.js.map → p-2a398b2e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-75ffb877.entry.js.map → p-2b767b1b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dbe53670.entry.js.map → p-2c7792b4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1c3942a6.entry.js.map → p-2ddaf03b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fc96a153.entry.js.map → p-301c1aa1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f18c1bc6.entry.js.map → p-3066d7ac.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ae8fe7f0.entry.js.map → p-32c6e24a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-645c7fba.entry.js.map → p-34e31715.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-75dad6c7.entry.js.map → p-357943a8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9337582a.entry.js.map → p-39d6dad5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fd0e8627.entry.js.map → p-3b764057.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0e3d6349.entry.js.map → p-3efa45ca.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c471680d.entry.js.map → p-3f5f0aaf.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2683a93d.entry.js.map → p-44b7bd82.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8d558e1d.entry.js.map → p-490d880f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1db6f565.entry.js.map → p-49717f35.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7f825eff.entry.js.map → p-4cc1d883.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e92a11b6.entry.js.map → p-4e26f1e1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2e1efcc9.entry.js.map → p-51069c51.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-deb499e2.entry.js.map → p-51f6f724.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0e45d2de.entry.js.map → p-56216434.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-46c5b453.entry.js.map → p-5eff4877.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-85ac6d83.entry.js.map → p-61bf5c59.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bfa62b65.entry.js.map → p-66aa2138.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-759099e2.entry.js.map → p-66b8f10b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8f956678.entry.js.map → p-683a19bb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e281a715.entry.js.map → p-684d4d18.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3c861eb0.entry.js.map → p-6add6579.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7a1296d4.entry.js.map → p-6af8d5cb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-69f5276e.entry.js.map → p-6b450966.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b663c8f6.entry.js.map → p-6c6e664c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d3209381.entry.js.map → p-6e23fc8e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9957d575.entry.js.map → p-6ec9e3dc.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-70b10351.entry.js.map → p-7368a3bd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aef3c5ac.entry.js.map → p-77ab7971.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e27591a6.entry.js.map → p-7898ab3c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aed15ee1.entry.js.map → p-7a8d05c2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f301a05c.entry.js.map → p-7b070e13.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-07639e2e.entry.js.map → p-7dc226b0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c0b4f81f.entry.js.map → p-7fef5a6d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b2fcc490.entry.js.map → p-80c514e1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-82d1f2f4.entry.js.map → p-833bd793.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6c3de48d.entry.js.map → p-8550b2d8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cd9b9eac.entry.js.map → p-85b5bdbd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-65a6428c.entry.js.map → p-873bec1c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-44df0e58.entry.js.map → p-89c070b8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8bc9e95b.entry.js.map → p-90c4a686.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e93dbde4.entry.js.map → p-90db31fb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-33c80dea.entry.js.map → p-91083053.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-52d757b2.entry.js.map → p-97be25ae.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-94eed7e7.entry.js.map → p-9a732268.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-39217901.entry.js.map → p-9b164561.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8735dc17.entry.js.map → p-9bd07097.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-92d54e6a.entry.js.map → p-9d3dcadd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f4243fa8.entry.js.map → p-9db9d368.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dd01dcf6.entry.js.map → p-a2313acc.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d3969952.entry.js.map → p-a466bef7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0fe0982a.entry.js.map → p-a6073abd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c5986c0b.entry.js.map → p-a924e049.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-58d6b294.entry.js.map → p-ab14b19a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-25df4336.entry.js.map → p-ad11c427.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-85cb6ac3.entry.js.map → p-ad5b037d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-09219622.entry.js.map → p-afbf7bd5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-233a253c.entry.js.map → p-b322c0cd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e6626ed6.entry.js.map → p-b401f555.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c9972340.entry.js.map → p-b6518908.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-97a89608.entry.js.map → p-b67a197e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5198a930.entry.js.map → p-b91a1fb5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8e34c9c9.entry.js.map → p-b936ffdb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-64c9a8f7.entry.js.map → p-b93a07a9.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bc622b2a.entry.js.map → p-b9c11320.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-539bb440.entry.js.map → p-b9d617d4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-158b16e0.entry.js.map → p-bc49448d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-45452a45.entry.js.map → p-c1ccb40f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d1a50145.entry.js.map → p-c359686c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d9ceb9a1.entry.js.map → p-c6ae1a73.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3816c34e.entry.js.map → p-c8332abd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0df1be19.entry.js.map → p-ca39f17b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0a1eb5fd.entry.js.map → p-cba7e887.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cc579b5c.entry.js.map → p-d0c780be.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6aa53daf.entry.js.map → p-d10a459c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9c4e1649.entry.js.map → p-d10e2ff4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0dc95d03.entry.js.map → p-d319b8db.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5ebd56ff.entry.js.map → p-d3ae51da.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8a9f9b42.entry.js.map → p-d57711e5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7bb32473.entry.js.map → p-d591892c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-968ef9db.entry.js.map → p-d8cacb50.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-32258f20.entry.js.map → p-d971957a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6e6064a5.entry.js.map → p-defa4f14.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-752e3cd8.entry.js.map → p-e6d33dfe.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bb16873e.entry.js.map → p-e7c05a67.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0747c17b.entry.js.map → p-e85f497a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-38a9cabf.entry.js.map → p-e88b56a4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e84a2d9e.entry.js.map → p-ea2a37fa.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-67b2d82d.entry.js.map → p-ec4dc01c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-32cd07f2.entry.js.map → p-ec958f98.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-120fc2f7.entry.js.map → p-ed66b150.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-78f63571.entry.js.map → p-eec61b75.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-68692aca.entry.js.map → p-f1fcc0d8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-67e2ea65.entry.js.map → p-f31d01ea.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-79823ee9.entry.js.map → p-f76c80da.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-375f8787.entry.js.map → p-fce7bd0a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cd10adbb.entry.js.map → p-fd92dbe7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4dfa25ec.entry.js.map → p-fdca724c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-01cb747a.entry.js.map → p-fe2e3916.entry.js.map} +0 -0
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
2
|
import readme from './readme.md?raw';
|
|
3
|
+
import { expect, userEvent, waitFor } from 'storybook/test';
|
|
4
|
+
import { getComponentByTestId } from '../../../.storybook/utils/component-test-utils';
|
|
3
5
|
|
|
4
6
|
import { getFigmaLink } from '../../../figma';
|
|
5
7
|
|
|
6
8
|
const COMPONENT_NAME = 'stzh-message';
|
|
7
9
|
const story = createComponentStory(COMPONENT_NAME);
|
|
8
10
|
|
|
11
|
+
const MESSAGE_TEST_ID = 'MESSAGE_TEST_ID';
|
|
12
|
+
|
|
9
13
|
const TEMPLATE = `
|
|
10
|
-
<stzh-message>
|
|
11
|
-
<
|
|
14
|
+
<stzh-message data-testid="${MESSAGE_TEST_ID}">
|
|
15
|
+
<p>This default slot content is not displayed when the description property is set.</p>
|
|
16
|
+
<stzh-link slot="link" icon="external-link">optional link</stzh-link>
|
|
12
17
|
</stzh-message>
|
|
13
18
|
`;
|
|
14
19
|
|
|
@@ -38,5 +43,125 @@ export const Default = {
|
|
|
38
43
|
args: {
|
|
39
44
|
label: 'Message title',
|
|
40
45
|
description: 'Optional description for this message.'
|
|
46
|
+
},
|
|
47
|
+
play: async ({ canvasElement, step }) => {
|
|
48
|
+
await step('Assert attributes', async () => {
|
|
49
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
50
|
+
expect(stzhMessageEl).toHaveAttribute('label', 'Message title');
|
|
51
|
+
expect(stzhMessageEl).toHaveAttribute('description', 'Optional description for this message.');
|
|
52
|
+
expect(stzhMessageEl).toHaveAttribute('type', 'info');
|
|
53
|
+
expect(stzhMessageEl).not.toHaveAttribute('hide-close');
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
await step('Close button is displayed', async () => {
|
|
57
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
58
|
+
const closeButtonEl = stzhMessageEl.querySelector('.stzh-message__close');
|
|
59
|
+
expect(closeButtonEl).not.toBeNull();
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
await step('Description property wins over default slot', async () => {
|
|
63
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
64
|
+
const descriptionEl = stzhMessageEl.querySelector('.stzh-message__description');
|
|
65
|
+
expect(descriptionEl).toHaveTextContent('Optional description for this message.');
|
|
66
|
+
expect(descriptionEl).not.toHaveTextContent('This default slot content is not displayed');
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
await step('Link slot is displayed below the description', async () => {
|
|
70
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
71
|
+
const descriptionEl = stzhMessageEl.querySelector('.stzh-message__description');
|
|
72
|
+
const linkWrapperEl = stzhMessageEl.querySelector('.stzh-message__link');
|
|
73
|
+
const linkEl = linkWrapperEl.querySelector('stzh-link');
|
|
74
|
+
|
|
75
|
+
expect(linkEl).not.toBeNull();
|
|
76
|
+
expect(linkEl).toHaveTextContent('optional link');
|
|
77
|
+
expect(descriptionEl.compareDocumentPosition(linkWrapperEl) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
await step('stzhClose and stzhOpen events are fired with component detail', async () => {
|
|
81
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
82
|
+
const closeButtonEl = stzhMessageEl.querySelector('.stzh-message__close');
|
|
83
|
+
let eventCloseDetail;
|
|
84
|
+
let eventOpenDetail;
|
|
85
|
+
|
|
86
|
+
stzhMessageEl.addEventListener('stzhClose', (ev) => {
|
|
87
|
+
eventCloseDetail = ev.detail;
|
|
88
|
+
});
|
|
89
|
+
stzhMessageEl.addEventListener('stzhOpen', (ev) => {
|
|
90
|
+
eventOpenDetail = ev.detail;
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
await userEvent.click(closeButtonEl);
|
|
94
|
+
expect(eventCloseDetail).toHaveProperty('component', 'stzh-message');
|
|
95
|
+
|
|
96
|
+
await waitFor(() => {
|
|
97
|
+
expect(stzhMessageEl).toHaveAttribute('hidden');
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
await stzhMessageEl.show();
|
|
101
|
+
expect(eventOpenDetail).toHaveProperty('component', 'stzh-message');
|
|
102
|
+
|
|
103
|
+
await waitFor(() => {
|
|
104
|
+
expect(stzhMessageEl).not.toHaveAttribute('hidden');
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const HTML_CONTENT_TEMPLATE = `
|
|
111
|
+
<stzh-message data-testid="${MESSAGE_TEST_ID}">
|
|
112
|
+
<p>Please correct these form fields:</p>
|
|
113
|
+
<stzh-list>
|
|
114
|
+
<stzh-list-item>Email</stzh-list-item>
|
|
115
|
+
<stzh-list-item>Phone number</stzh-list-item>
|
|
116
|
+
</stzh-list>
|
|
117
|
+
<stzh-link slot="link">optional link</stzh-link>
|
|
118
|
+
</stzh-message>
|
|
119
|
+
`;
|
|
120
|
+
|
|
121
|
+
export const WithHtml = {
|
|
122
|
+
render: (args) => story(args, HTML_CONTENT_TEMPLATE),
|
|
123
|
+
args: {
|
|
124
|
+
label: 'Validation failed',
|
|
125
|
+
type: 'error',
|
|
126
|
+
'hide-close': true
|
|
127
|
+
},
|
|
128
|
+
play: async ({ canvasElement, step }) => {
|
|
129
|
+
await step('Assert attributes', async () => {
|
|
130
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
131
|
+
expect(stzhMessageEl).toHaveAttribute('hide-close', 'true');
|
|
132
|
+
expect(stzhMessageEl).toHaveAttribute('type', 'error');
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
await step('Close button is not displayed', async () => {
|
|
136
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
137
|
+
const closeButtonEl = stzhMessageEl.querySelector('.stzh-message__close');
|
|
138
|
+
expect(closeButtonEl).toBeNull();
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
await step('Default slot accepts HTML content and custom elements', async () => {
|
|
142
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
143
|
+
const descriptionEl = stzhMessageEl.querySelector('.stzh-message__description');
|
|
144
|
+
const paragraphEl = descriptionEl.querySelector('p');
|
|
145
|
+
const listEl = descriptionEl.querySelector('stzh-list');
|
|
146
|
+
const listItemEls = descriptionEl.querySelectorAll('stzh-list-item');
|
|
147
|
+
|
|
148
|
+
expect(paragraphEl).not.toBeNull();
|
|
149
|
+
expect(paragraphEl).toHaveTextContent('Please correct these form fields:');
|
|
150
|
+
expect(listEl).not.toBeNull();
|
|
151
|
+
expect(listItemEls).toHaveLength(2);
|
|
152
|
+
expect(listItemEls[0]).toHaveTextContent('Email');
|
|
153
|
+
expect(listItemEls[1]).toHaveTextContent('Phone number');
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
await step('Link slot is displayed below the default slot content', async () => {
|
|
157
|
+
const stzhMessageEl = await getComponentByTestId(canvasElement, MESSAGE_TEST_ID);
|
|
158
|
+
const descriptionEl = stzhMessageEl.querySelector('.stzh-message__description');
|
|
159
|
+
const linkWrapperEl = stzhMessageEl.querySelector('.stzh-message__link');
|
|
160
|
+
const linkEl = linkWrapperEl.querySelector('stzh-link');
|
|
161
|
+
|
|
162
|
+
expect(linkEl).not.toBeNull();
|
|
163
|
+
expect(linkEl).toHaveTextContent('optional link');
|
|
164
|
+
expect(descriptionEl.compareDocumentPosition(linkWrapperEl) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
|
|
165
|
+
});
|
|
41
166
|
}
|
|
42
167
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { hasSlot } from "../../utils/utils";
|
|
2
|
+
import { hasDefaultSlotContent, hasSlot } from "../../utils/utils";
|
|
3
3
|
import { StzhInputDescription } from "../stzh-input/stzh-input-description";
|
|
4
4
|
let radioCounter = 0;
|
|
5
5
|
/**
|
|
@@ -29,6 +29,18 @@ export class StzhRadio {
|
|
|
29
29
|
this.label = "";
|
|
30
30
|
/** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */
|
|
31
31
|
this.a11yDescribedby = "";
|
|
32
|
+
/**
|
|
33
|
+
* Whether the component has meaningful default-slot content.
|
|
34
|
+
* Becomes obsolete with the implementation of PDESI-1908.
|
|
35
|
+
*/
|
|
36
|
+
this.hasDefaultSlot = false;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether default-slot content detection has run at least once.
|
|
39
|
+
* Used to avoid rendering state-dependent markup before the slot content
|
|
40
|
+
* has been evaluated.
|
|
41
|
+
* Becomes obsolete with the implementation of PDESI-1908.
|
|
42
|
+
*/
|
|
43
|
+
this.hasResolvedDefaultSlot = false;
|
|
32
44
|
this.focusedByInput = false;
|
|
33
45
|
this.handleReset = async () => {
|
|
34
46
|
this.checked = this.defaultChecked;
|
|
@@ -73,6 +85,19 @@ export class StzhRadio {
|
|
|
73
85
|
originalEvent: event,
|
|
74
86
|
});
|
|
75
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* Re-evaluates default-slot content and updates the related render state.
|
|
90
|
+
* Becomes obsolete with implementation of PDESI-1908.
|
|
91
|
+
*/
|
|
92
|
+
this.updateDefaultSlotState = () => {
|
|
93
|
+
const hasDefaultSlot = hasDefaultSlotContent(this.element, ["stzh-radio"]);
|
|
94
|
+
if (this.hasDefaultSlot !== hasDefaultSlot) {
|
|
95
|
+
this.hasDefaultSlot = hasDefaultSlot;
|
|
96
|
+
}
|
|
97
|
+
if (!this.hasResolvedDefaultSlot) {
|
|
98
|
+
this.hasResolvedDefaultSlot = true;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
76
101
|
}
|
|
77
102
|
resetListener(event) {
|
|
78
103
|
if (event.target.contains(this.element)) {
|
|
@@ -102,6 +127,9 @@ export class StzhRadio {
|
|
|
102
127
|
this._error = [];
|
|
103
128
|
}
|
|
104
129
|
}
|
|
130
|
+
componentDidLoad() {
|
|
131
|
+
this.updateDefaultSlotState();
|
|
132
|
+
}
|
|
105
133
|
async componentWillLoad() {
|
|
106
134
|
this.inputId = `stzh-radio-${radioCounter++}`;
|
|
107
135
|
this.errorWatcher(this.error);
|
|
@@ -115,6 +143,8 @@ export class StzhRadio {
|
|
|
115
143
|
const descriptionUsed = hasSlot(this.element, "description") || !!this.description;
|
|
116
144
|
const descriptionLongUsed = hasSlot(this.element, "description-long") || !!this.descriptionLong;
|
|
117
145
|
const errorUsed = hasSlot(this.element, "error") || ((_a = this._error) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
146
|
+
const labelUsed = !!this.label || this.hasDefaultSlot;
|
|
147
|
+
const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;
|
|
118
148
|
const classes = {
|
|
119
149
|
"stzh-radio": true,
|
|
120
150
|
"stzh-radio--has-description": descriptionUsed,
|
|
@@ -124,11 +154,11 @@ export class StzhRadio {
|
|
|
124
154
|
"stzh-radio--is-invalid": this.invalid || errorUsed,
|
|
125
155
|
"stzh-radio--is-disabled": this.disabled,
|
|
126
156
|
};
|
|
127
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: 'cc1cdf3e2146ff465b612c7ca987ecfa94bd1fc3', "is-invalid": this.invalid || errorUsed, tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: '16caff63681acb3dbe16d7c4d68c9783229af19e', class: classes }, labelWrapperUsed && (h("label", { key: 'd1c6f4593a3d5a79d311cd2970ed49e9e0109f35', class: "stzh-radio__field-wrapper" }, h("input", { key: '8b8aac42f4e53f32728e97b393f289c0aa28b9ea', 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: '9db48703b9f360cf4965e556e5928fb07ac6ba8e', class: "stzh-radio__mark" }, h("div", { key: '85b46892882617eb783436d2691d1e3c243560c8', class: "stzh-radio__check" })), h("div", { key: 'ad4944283ca6a5d622a95810253dbe23827ef437', class: "stzh-radio__label" }, this.label ? this.label : h("slot", { onSlotchange: this.updateDefaultSlotState }), labelUsed && !this.hideOptional && (h("span", { key: 'b925096f24db80a9e145c8b1d4efd5e5f998c0b5', class: "stzh-radio__marker" }, h("span", { key: '8c7115b913be26988b593db69e6bc14a932c2af5', class: "stzh-radio__marker-symbol", "aria-hidden": "true" }, this.required
|
|
128
158
|
? this.localization.$globals.requiredFieldMarker
|
|
129
|
-
: this.localization.$globals.optionalFieldMarker), h("span", { key: '
|
|
159
|
+
: this.localization.$globals.optionalFieldMarker), h("span", { key: 'e92d6e5758f0d6d0cbe1140338db427846c5a172', class: "stzh-radio__marker-text" }, this.required
|
|
130
160
|
? this.localization.$globals.requiredFieldText
|
|
131
|
-
: this.localization.$globals.optionalFieldText))), descriptionLongUsed && (h(StzhInputDescription, { key: '
|
|
161
|
+
: this.localization.$globals.optionalFieldText))), descriptionLongUsed && (h(StzhInputDescription, { key: 'e69652a157df0c226c3d592045baf3e63f64c995', 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: '5918bcc3a41885efa965606f08cfa7790bde0db8', classPrefix: "stzh-radio", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
|
|
132
162
|
}
|
|
133
163
|
static get is() { return "stzh-radio"; }
|
|
134
164
|
static get encapsulation() { return "scoped"; }
|
|
@@ -450,6 +480,12 @@ export class StzhRadio {
|
|
|
450
480
|
}
|
|
451
481
|
};
|
|
452
482
|
}
|
|
483
|
+
static get states() {
|
|
484
|
+
return {
|
|
485
|
+
"hasDefaultSlot": {},
|
|
486
|
+
"hasResolvedDefaultSlot": {}
|
|
487
|
+
};
|
|
488
|
+
}
|
|
453
489
|
static get events() {
|
|
454
490
|
return [{
|
|
455
491
|
"method": "stzhChange",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stzh-radio.js","sourceRoot":"","sources":["../../../../src/components/stzh-radio/stzh-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAItG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB;;;;;;GAMG;AAMH,MAAM,OAAO,SAAS;IALtB;QASE,6CAA6C;QACpB,aAAQ,GAAY,KAAK,CAAC;QAEnD,oCAAoC;QACX,SAAI,GAAW,EAAE,CAAC;QAE3C,6HAA6H;QACpG,UAAK,GAAmB,EAAE,CAAC;QAEpD,qBAAqB;QACI,YAAO,GAAY,KAAK,CAAC;QAElD,sBAAsB;QACG,aAAQ,GAAY,KAAK,CAAC;QAEnD,yEAAyE;QAChD,iBAAY,GAAY,KAAK,CAAC;QAEvD,qBAAqB;QACmB,YAAO,GAAY,KAAK,CAAC;QAKjE,YAAY;QAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, Watch } from \"@stencil/core\";\n\nimport { StzhRadioBlurEvent, StzhRadioChangeEvent, StzhRadioFocusEvent, StzhRadioValue } from \"../../index\";\n\nimport { 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 @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 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 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 <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 ? (\n this.label\n ) : (\n <span class=\"stzh-radio__label-slot\">\n <slot></slot>\n </span>\n )}\n\n {!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 {(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"]}
|
|
1
|
+
{"version":3,"file":"stzh-radio.js","sourceRoot":"","sources":["../../../../src/components/stzh-radio/stzh-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAI7G,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB;;;;;;GAMG;AAMH,MAAM,OAAO,SAAS;IALtB;QASE,6CAA6C;QACpB,aAAQ,GAAY,KAAK,CAAC;QAEnD,oCAAoC;QACX,SAAI,GAAW,EAAE,CAAC;QAE3C,6HAA6H;QACpG,UAAK,GAAmB,EAAE,CAAC;QAE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W,EAAC,YAAY,EACxB,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,mBAAmB,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,GAC1B,CACH,CACG,CACA,CACT;gBACA,CAAC,SAAS,IAAI,eAAe,CAAC,IAAI,CACjC,EAAC,oBAAoB,qDACnB,WAAW,EAAC,YAAY,EACxB,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,cAAc,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,GAC1B,CACH,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
|
|
@@ -143,7 +143,7 @@ export const ValueAsBoolean = {
|
|
|
143
143
|
stzhRadioEl = await getComponentByTestId(canvasElement, RADIO_TEST_ID);
|
|
144
144
|
|
|
145
145
|
await step('Assert attributes', async () => {
|
|
146
|
-
expect(stzhRadioEl).toHaveAttribute('hide-optional'
|
|
146
|
+
expect(stzhRadioEl).toHaveAttribute('hide-optional');
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
await step('Assert boolean value in stzhChange event', async () => {
|
|
@@ -207,3 +207,15 @@ export const ErrorMessageInSlot = {
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
|
+
|
|
211
|
+
const TEMPLATE_LABEL_SLOT = `
|
|
212
|
+
<${COMPONENT_NAME} data-testid="${RADIO_TEST_ID}">Label in default slot</${COMPONENT_NAME}>
|
|
213
|
+
`;
|
|
214
|
+
|
|
215
|
+
export const LabelSlotted = {
|
|
216
|
+
render: (args) => story(args, TEMPLATE_LABEL_SLOT),
|
|
217
|
+
args: {
|
|
218
|
+
name: 'option',
|
|
219
|
+
value: 'test'
|
|
220
|
+
}
|
|
221
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { hasSlot } from "../../utils/utils";
|
|
2
|
+
import { hasDefaultSlotContent, hasSlot } from "../../utils/utils";
|
|
3
3
|
import { StzhInputDescription } from "../stzh-input/stzh-input-description";
|
|
4
4
|
let ratingCounter = 0;
|
|
5
5
|
const MAX_RATING = 5;
|
|
@@ -26,7 +26,7 @@ export class StzhRating {
|
|
|
26
26
|
/** Hide `(optional)` label (or use `required` inside form to hide it) */
|
|
27
27
|
this.hideOptional = false;
|
|
28
28
|
/** Label (or use default slot) */
|
|
29
|
-
this.label = "
|
|
29
|
+
this.label = "";
|
|
30
30
|
/** Whether label should be visually hidden */
|
|
31
31
|
this.labelHidden = false;
|
|
32
32
|
this._error = [];
|
|
@@ -40,6 +40,18 @@ export class StzhRating {
|
|
|
40
40
|
this.tabbableIndex = null;
|
|
41
41
|
/** True if interaction by keyboard */
|
|
42
42
|
this.userKeyFocused = false;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the component has meaningful default-slot content.
|
|
45
|
+
* Becomes obsolete with the implementation of PDESI-1908.
|
|
46
|
+
*/
|
|
47
|
+
this.hasDefaultSlot = false;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates whether default-slot content detection has run at least once.
|
|
50
|
+
* Used to avoid rendering state-dependent markup before the slot content
|
|
51
|
+
* has been evaluated.
|
|
52
|
+
* Becomes obsolete with the implementation of PDESI-1908.
|
|
53
|
+
*/
|
|
54
|
+
this.hasResolvedDefaultSlot = false;
|
|
43
55
|
this.ratingButtons = [];
|
|
44
56
|
// Hover preview
|
|
45
57
|
this.onMouseEnter = (i) => {
|
|
@@ -155,6 +167,19 @@ export class StzhRating {
|
|
|
155
167
|
this.handleStep(i, -1, ev);
|
|
156
168
|
}
|
|
157
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* Re-evaluates default-slot content and updates the related render state.
|
|
172
|
+
* Becomes obsolete with implementation of PDESI-1908.
|
|
173
|
+
*/
|
|
174
|
+
this.updateDefaultSlotState = () => {
|
|
175
|
+
const hasDefaultSlot = hasDefaultSlotContent(this.element, ["stzh-rating"]);
|
|
176
|
+
if (this.hasDefaultSlot !== hasDefaultSlot) {
|
|
177
|
+
this.hasDefaultSlot = hasDefaultSlot;
|
|
178
|
+
}
|
|
179
|
+
if (!this.hasResolvedDefaultSlot) {
|
|
180
|
+
this.hasResolvedDefaultSlot = true;
|
|
181
|
+
}
|
|
182
|
+
};
|
|
158
183
|
}
|
|
159
184
|
handleFocusOut(ev) {
|
|
160
185
|
const nextTarget = ev.relatedTarget;
|
|
@@ -237,13 +262,16 @@ export class StzhRating {
|
|
|
237
262
|
get errorUsed() {
|
|
238
263
|
return hasSlot(this.element, "error") || this._error.length > 0;
|
|
239
264
|
}
|
|
265
|
+
componentDidLoad() {
|
|
266
|
+
this.updateDefaultSlotState();
|
|
267
|
+
}
|
|
240
268
|
render() {
|
|
241
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
269
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
242
270
|
const descriptionUsed = hasSlot(this.element, "description") || !!this.description;
|
|
243
271
|
const descriptionLongUsed = hasSlot(this.element, "description-long") || !!this.descriptionLong;
|
|
244
|
-
const hasTextLabel = hasSlot(this.element) || !!this.label;
|
|
245
272
|
const legendId = `${this.groupId}-legend`;
|
|
246
|
-
const
|
|
273
|
+
const labelUsed = !!this.label || this.hasDefaultSlot;
|
|
274
|
+
const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;
|
|
247
275
|
const classes = {
|
|
248
276
|
"stzh-rating": true,
|
|
249
277
|
"stzh-rating--has-description": descriptionUsed,
|
|
@@ -262,7 +290,7 @@ export class StzhRating {
|
|
|
262
290
|
.filter(Boolean)
|
|
263
291
|
.join(" ") || undefined;
|
|
264
292
|
const currentValue = this.value || 0;
|
|
265
|
-
return (h(Host, { key: '
|
|
293
|
+
return (h(Host, { key: 'a2aeff6077a218f4d9691ed27cc568afab1845c8', "is-invalid": this.invalid || this.errorUsed, "data-user-focus": this.userKeyFocused ? "true" : null }, this.name && !this.disabled && !this.readonly && (h("input", { key: '9cd723dfed72905f99842107a4e9ba5f5841fbb8', type: "hidden", name: this.name, value: String(this.value) })), h("fieldset", { key: 'c54fdaae224270de1eb1db0ebf474eec5f0a7067', class: classes }, labelWrapperUsed && (h("legend", { key: '2a50b33fadba1d9e3b7a2cd7a04247ac1ecb4595', id: legendId, class: "stzh-rating__legend" }, h("span", { key: '747db97c26bb457bb8c2e1c6a1a987dc93e57a1e', class: "stzh-rating__legend-text" }, this.label ? this.label : h("slot", { onSlotchange: this.updateDefaultSlotState }), labelUsed && !this.hideOptional && (h("span", { key: '8dd60b040c15214d3875a61da147904dc4c30f36', class: "stzh-rating__marker" }, h("span", { key: 'fd63a71af3910115cccc7f915a8537f6ceea42cf', class: "stzh-rating__marker-symbol", "aria-hidden": "true" }, markerSymbol), h("span", { key: 'bbf6a66264227045cff026233a7b1fad49544ce6', class: "stzh-rating__marker-text" }, markerText)))), descriptionLongUsed && (h(StzhInputDescription, { key: 'ac965869f7eb048915047d2847af024ccb237055', classPrefix: "stzh-rating", id: `${this.groupId}-description-long`, descriptionLong: this.descriptionLong, descriptionLongTitle: this.descriptionLongTitle, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: (_g = (_f = this.localization) === null || _f === void 0 ? void 0 : _f.$globals) === null || _g === void 0 ? void 0 : _g.moreInfoButtonLabel, showError: false, showDescriptionText: false })))), h("div", { key: '1d88d8a69c609bff2420279657cf48c6ce8f52a2', class: "stzh-rating__items", role: "radiogroup", "aria-labelledby": labelWrapperUsed ? legendId : undefined, "aria-label": labelUsed
|
|
266
294
|
? undefined
|
|
267
295
|
: this.readonly
|
|
268
296
|
? `${currentValue} von 5 Punkten`
|
|
@@ -278,7 +306,7 @@ export class StzhRating {
|
|
|
278
306
|
disabled: this.disabled,
|
|
279
307
|
readonly: this.readonly,
|
|
280
308
|
}, role: "radio", tabIndex: this.tabbableIndex === i ? 0 : -1, "aria-checked": this.value >= i ? "true" : "false", "aria-label": `${i} ${i === 1 ? "Punkt" : "Punkte"}`, onMouseEnter: () => this.onMouseEnter(i), onMouseLeave: this.onMouseLeave, onKeyDown: ev => this.onRatingItemKeyDown(i, ev), onClick: ev => this.onClick(i, ev), disabled: this.disabled || this.readonly, ref: el => (this.ratingButtons[i - 1] = el), "s-object-id": this.analyticsId || this.label }, h("stzh-icon", { class: "stzh-rating__icon", name: "star", "a11y-title": "" }), displayValue >= i && (h("stzh-icon", { class: "stzh-rating__icon", name: "star-filled", "a11y-title": "" }))));
|
|
281
|
-
})), (this.errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '
|
|
309
|
+
})), (this.errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '7eb34591279968ac48dbdf59d021d6c80983e0fd', classPrefix: "stzh-rating", id: `${this.groupId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
|
|
282
310
|
}
|
|
283
311
|
static get is() { return "stzh-rating"; }
|
|
284
312
|
static get encapsulation() { return "scoped"; }
|
|
@@ -474,7 +502,7 @@ export class StzhRating {
|
|
|
474
502
|
"setter": false,
|
|
475
503
|
"reflect": false,
|
|
476
504
|
"attribute": "label",
|
|
477
|
-
"defaultValue": "\"
|
|
505
|
+
"defaultValue": "\"\""
|
|
478
506
|
},
|
|
479
507
|
"analyticsId": {
|
|
480
508
|
"type": "string",
|
|
@@ -637,7 +665,9 @@ export class StzhRating {
|
|
|
637
665
|
return {
|
|
638
666
|
"hoverIndex": {},
|
|
639
667
|
"tabbableIndex": {},
|
|
640
|
-
"userKeyFocused": {}
|
|
668
|
+
"userKeyFocused": {},
|
|
669
|
+
"hasDefaultSlot": {},
|
|
670
|
+
"hasResolvedDefaultSlot": {}
|
|
641
671
|
};
|
|
642
672
|
}
|
|
643
673
|
static get events() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stzh-rating.js","sourceRoot":"","sources":["../../../../src/components/stzh-rating/stzh-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAErH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,IAAI,aAAa,GAAG,CAAC,CAAC;AAEtB,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAErC;;;;;;GAMG;AAMH,MAAM,OAAO,UAAU;IALvB;QASE,4CAA4C;QACJ,UAAK,GAAW,CAAC,CAAC;QAE1D,eAAe;QACU,aAAQ,GAAY,KAAK,CAAC;QAEnD,eAAe;QACU,aAAQ,GAAY,KAAK,CAAC;QAEnD,qBAAqB;QACI,YAAO,GAAY,KAAK,CAAC;QAElD,sBAAsB;QACG,aAAQ,GAAY,KAAK,CAAC;QAEnD,yEAAyE;QAChD,iBAAY,GAAY,KAA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AY,EAAE,GAAa,CACnF,CACM,CACV,CAAC;gBACJ,CAAC,CAAC,CACE;gBAEL,CAAC,IAAI,CAAC,SAAS,IAAI,eAAe,CAAC,IAAI,CACtC,EAAC,oBAAoB,qDACnB,WAAW,EAAC,aAAa,EACzB,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,cAAc,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,GAC1B,CACH,CACQ,CACN,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent, StzhRatingChangeEvent, StzhRatingBlurEvent, StzhRatingFocusEvent } from \"../../index\";\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet ratingCounter = 0;\n\nconst MAX_RATING = 5;\nconst RATING_ITEMS = [1, 2, 3, 4, 5];\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)\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-rating\",\n styleUrl: \"stzh-rating.scss\",\n scoped: true,\n})\nexport class StzhRating {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Initial rating value (min. 0, max. 5) */\n @Prop({ mutable: true, reflect: true }) value: number = 0;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Readonly */\n @Prop({ reflect: true }) readonly: 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 to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Form name (hidden input) */\n @Prop({ reflect: true }) name: string;\n\n /** Label (or use default slot) */\n @Prop() label: string = \"Label\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute on the rating items.\n * Default value will be taken from `label` prop.\n */\n @Prop() analyticsId: string;\n\n /** Whether label should be visually hidden */\n @Prop() labelHidden: boolean = false;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover */\n @Prop() descriptionLong: string;\n\n /** Deprecated: description-long-title prop */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message */\n @Prop() error: string | string[];\n private _error: string[] = [];\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Extra aria-describedby id(s) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Hover index (preview) */\n @State() private hoverIndex: number | null = null;\n\n /** Roving tabindex: which item is tabbable; null = only container */\n @State() private tabbableIndex: number | null = null;\n\n /** True if interaction by keyboard */\n @State() private userKeyFocused: boolean = false;\n\n @Element() element!: HTMLElement;\n\n /** Change event */\n @Event({ eventName: \"stzhChange\" })\n stzhChange!: EventEmitter<StzhRatingChangeEvent>;\n\n /** Focus event */\n @Event({ eventName: \"stzhFocus\" })\n stzhFocus!: EventEmitter<StzhRatingFocusEvent>;\n\n /** Blur event */\n @Event({ eventName: \"stzhBlur\" })\n stzhBlur!: EventEmitter<StzhRatingBlurEvent>;\n\n @Listen(\"focusout\")\n handleFocusOut(ev: FocusEvent) {\n const nextTarget = ev.relatedTarget as Node | null;\n if (nextTarget && this.element.contains(nextTarget)) return;\n\n this.stzhBlur.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n });\n }\n\n @Listen(\"focusin\")\n handleFocusIn(ev: FocusEvent) {\n if (!this.element.contains(ev.target as Node)) return;\n\n this.stzhFocus.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n });\n }\n\n private groupId!: string;\n private containerEl?: HTMLElement;\n private ratingButtons: HTMLButtonElement[] = [];\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue) || [];\n if (!Array.isArray(this._error)) this._error = [newValue];\n } catch {\n this._error = newValue ? [newValue] : [];\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n async componentWillLoad() {\n this.groupId = `stzh-rating-${ratingCounter++}`;\n this.errorWatcher(this.error);\n\n if (!this.localization && (window as any)?.stzhComponents?.utils?.fetchTranslations) {\n this.localization = await (window as any).stzhComponents.utils.fetchTranslations(this.element, \"rating\");\n }\n\n this.tabbableIndex = null;\n }\n\n private clampRatingValue(inputValue: number | null | undefined): number {\n const value = Number(inputValue);\n if (!Number.isFinite(value)) return 0;\n return Math.max(0, Math.min(MAX_RATING, Math.round(value)));\n }\n\n @Method() async setValue(ratingValue: number) {\n this.value = this.clampRatingValue(ratingValue);\n }\n\n /** Visual value (hover preview included) */\n private get displayValue() {\n return this.hoverIndex ?? this.value;\n }\n\n // Hover preview\n private onMouseEnter = (i: number) => {\n if (this.readonly || this.disabled) return;\n this.hoverIndex = i;\n };\n\n private onMouseLeave = () => {\n if (this.readonly || this.disabled) return;\n this.hoverIndex = null;\n };\n\n // Click choice → Change + Changed\n private onClick = (i: number, originalEvent: KeyboardEvent | MouseEvent) => {\n if (this.readonly || this.disabled) return;\n\n const oldValue = this.value;\n const next = this.clampRatingValue(i);\n\n if (next !== oldValue) {\n this.value = next;\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent,\n value: this.value,\n });\n }\n\n this.hoverIndex = null;\n this.setTabbableAndFocus(next);\n };\n\n // Roving helpers\n private setTabbableAndFocus(i: number) {\n this.tabbableIndex = i;\n const btn = this.ratingButtons[i - 1];\n if (btn) btn.focus();\n }\n\n private handleStep(from: number | null, delta: number, originalEvent: KeyboardEvent | MouseEvent) {\n const start = from ?? 0;\n const next = this.clampRatingValue(start + delta);\n\n if (next !== this.value) {\n this.value = next;\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent,\n value: this.value,\n });\n }\n\n this.setTabbableAndFocus(next);\n }\n\n // Keyboard on container (first interaction)\n private onContainerKeyDown = (ev: KeyboardEvent) => {\n if (this.readonly || this.disabled) return;\n if (ev.defaultPrevented) return;\n\n this.userKeyFocused = true;\n\n const rtl = getComputedStyle(this.containerEl as HTMLElement).direction === \"rtl\";\n const incKey = rtl ? \"ArrowLeft\" : \"ArrowRight\";\n const decKey = rtl ? \"ArrowRight\" : \"ArrowLeft\";\n\n if (ev.key === incKey || ev.key === \"ArrowUp\") {\n ev.preventDefault();\n if (this.tabbableIndex == null) this.setTabbableAndFocus(this.value || 1);\n this.handleStep(this.value || null, +1, ev);\n } else if (ev.key === decKey || ev.key === \"ArrowDown\") {\n ev.preventDefault();\n if (this.tabbableIndex == null) this.setTabbableAndFocus(this.value || 5);\n this.handleStep(this.value || 6, -1, ev);\n } else if (ev.key === \"Home\") {\n ev.preventDefault();\n const old = this.value;\n this.value = 1;\n if (this.value !== old) {\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n value: this.value,\n });\n }\n this.setTabbableAndFocus(1);\n } else if (ev.key === \"End\") {\n ev.preventDefault();\n const old = this.value;\n this.value = 5;\n if (this.value !== old) {\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n value: this.value,\n });\n }\n this.setTabbableAndFocus(5);\n } else if (ev.key === \" \" || ev.key === \"Enter\") {\n ev.preventDefault();\n\n if (!this.value) {\n const old = this.value;\n this.value = 1;\n if (this.value !== old) {\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n value: this.value,\n });\n }\n this.setTabbableAndFocus(1);\n } else if (this.tabbableIndex == null) {\n this.setTabbableAndFocus(this.value);\n }\n }\n };\n\n // Keyboard directly on rating item\n private onRatingItemKeyDown = (i: number, ev: KeyboardEvent) => {\n if (this.readonly || this.disabled) return;\n\n this.userKeyFocused = true;\n\n const rtl = getComputedStyle(this.containerEl as HTMLElement).direction === \"rtl\";\n const incKey = rtl ? \"ArrowLeft\" : \"ArrowRight\";\n const decKey = rtl ? \"ArrowRight\" : \"ArrowLeft\";\n\n if (ev.key === incKey || ev.key === \"ArrowUp\") {\n ev.preventDefault();\n ev.stopPropagation();\n this.handleStep(i, +1, ev);\n } else if (ev.key === decKey || ev.key === \"ArrowDown\") {\n ev.preventDefault();\n ev.stopPropagation();\n this.handleStep(i, -1, ev);\n }\n };\n\n private get errorUsed() {\n return hasSlot(this.element, \"error\") || this._error.length > 0;\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 hasTextLabel = hasSlot(this.element) || !!this.label;\n const legendId = `${this.groupId}-legend`;\n\n const legendUsed = !this.labelHidden && (hasTextLabel || descriptionLongUsed);\n\n const classes = {\n \"stzh-rating\": true,\n \"stzh-rating--has-description\": descriptionUsed,\n \"stzh-rating--has-description-long\": descriptionLongUsed,\n \"stzh-rating--has-error\": this.errorUsed,\n \"stzh-rating--is-disabled\": this.disabled,\n \"stzh-rating--is-readonly\": this.readonly,\n \"stzh-rating--is-invalid\": this.invalid || this.errorUsed,\n \"stzh-rating--has-label-hidden\": this.labelHidden,\n [`stzh-rating--size-${this.size}`]: !!this.size,\n };\n\n const t = this.localization?.$globals;\n const markerSymbol = this.required ? (t?.requiredFieldMarker ?? \"*\") : (t?.optionalFieldMarker ?? \"(optional)\");\n const markerText = this.required ? (t?.requiredFieldText ?? \"Required\") : (t?.optionalFieldText ?? \"Optional\");\n\n const ariaDescribedby =\n [this.description || descriptionUsed || this.errorUsed ? `${this.groupId}-description` : \"\", this.a11yDescribedby]\n .filter(Boolean)\n .join(\" \") || undefined;\n\n const currentValue = this.value || 0;\n\n return (\n <Host is-invalid={this.invalid || this.errorUsed} data-user-focus={this.userKeyFocused ? \"true\" : null}>\n {this.name && !this.disabled && !this.readonly && (\n <input type=\"hidden\" name={this.name} value={String(this.value)} />\n )}\n\n <fieldset class={classes}>\n {legendUsed && (\n <legend id={legendId} class=\"stzh-rating__legend\">\n <span class=\"stzh-rating__legend-text\">\n {hasSlot(this.element) ? <slot></slot> : (this.label ?? \"Label\")}\n\n {!this.hideOptional && (\n <span class=\"stzh-rating__marker\">\n <span class=\"stzh-rating__marker-symbol\" aria-hidden=\"true\">\n {markerSymbol}\n </span>\n <span class=\"stzh-rating__marker-text\">{markerText}</span>\n </span>\n )}\n </span>\n\n {descriptionLongUsed && (\n <StzhInputDescription\n classPrefix=\"stzh-rating\"\n id={`${this.groupId}-description-long`}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization?.$globals?.moreInfoButtonLabel}\n showError={false}\n showDescriptionText={false}\n />\n )}\n </legend>\n )}\n <div\n class=\"stzh-rating__items\"\n role=\"radiogroup\"\n aria-labelledby={legendUsed ? legendId : undefined}\n aria-label={\n hasTextLabel\n ? undefined\n : this.readonly\n ? `${currentValue} von 5 Punkten`\n : `Bewertung: ${currentValue} von 5 Punkten. Mit Pfeiltasten ändern.`\n }\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid || this.errorUsed ? \"true\" : \"false\"}\n aria-describedby={ariaDescribedby}\n id={this.groupId}\n tabIndex={this.disabled ? undefined : 0}\n onKeyDown={this.onContainerKeyDown}\n ref={el => (this.containerEl = el as HTMLElement)}\n >\n {RATING_ITEMS.map(i => {\n const displayValue = this.displayValue;\n const isFilled = this.value >= i;\n const hoverIndex = this.hoverIndex;\n const isPreview = hoverIndex != null && i <= hoverIndex;\n\n return (\n <button\n type=\"button\"\n class={{\n \"stzh-rating__item\": true,\n filled: isFilled,\n \"is-preview\": isPreview,\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n role=\"radio\"\n tabIndex={this.tabbableIndex === i ? 0 : -1}\n aria-checked={this.value >= i ? \"true\" : \"false\"}\n aria-label={`${i} ${i === 1 ? \"Punkt\" : \"Punkte\"}`}\n onMouseEnter={() => this.onMouseEnter(i)}\n onMouseLeave={this.onMouseLeave}\n onKeyDown={ev => this.onRatingItemKeyDown(i, ev)}\n onClick={ev => this.onClick(i, ev)}\n disabled={this.disabled || this.readonly}\n ref={el => (this.ratingButtons[i - 1] = el as HTMLButtonElement)}\n s-object-id={this.analyticsId || this.label}\n >\n <stzh-icon class=\"stzh-rating__icon\" name=\"star\" a11y-title=\"\"></stzh-icon>\n {displayValue >= i && (\n <stzh-icon class=\"stzh-rating__icon\" name=\"star-filled\" a11y-title=\"\"></stzh-icon>\n )}\n </button>\n );\n })}\n </div>\n\n {(this.errorUsed || descriptionUsed) && (\n <StzhInputDescription\n classPrefix=\"stzh-rating\"\n id={`${this.groupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLongUsed={false}\n />\n )}\n </fieldset>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"stzh-rating.js","sourceRoot":"","sources":["../../../../src/components/stzh-rating/stzh-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,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AC,aAAa,gBAAY,EAAE,GAAa,CACnF,CACM,CACV,CAAC;gBACJ,CAAC,CAAC,CACE;gBAEL,CAAC,IAAI,CAAC,SAAS,IAAI,eAAe,CAAC,IAAI,CACtC,EAAC,oBAAoB,qDACnB,WAAW,EAAC,aAAa,EACzB,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,cAAc,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,GAC1B,CACH,CACQ,CACN,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport { hasDefaultSlotContent, hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent, StzhRatingChangeEvent, StzhRatingBlurEvent, StzhRatingFocusEvent } from \"../../index\";\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet ratingCounter = 0;\n\nconst MAX_RATING = 5;\nconst RATING_ITEMS = [1, 2, 3, 4, 5];\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)\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-rating\",\n styleUrl: \"stzh-rating.scss\",\n scoped: true,\n})\nexport class StzhRating {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Initial rating value (min. 0, max. 5) */\n @Prop({ mutable: true, reflect: true }) value: number = 0;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Readonly */\n @Prop({ reflect: true }) readonly: 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 to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Form name (hidden input) */\n @Prop({ reflect: true }) name: string;\n\n /** Label (or use default slot) */\n @Prop() label: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute on the rating items.\n * Default value will be taken from `label` prop.\n */\n @Prop() analyticsId: string;\n\n /** Whether label should be visually hidden */\n @Prop() labelHidden: boolean = false;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover */\n @Prop() descriptionLong: string;\n\n /** Deprecated: description-long-title prop */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message */\n @Prop() error: string | string[];\n private _error: string[] = [];\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Extra aria-describedby id(s) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Hover index (preview) */\n @State() private hoverIndex: number | null = null;\n\n /** Roving tabindex: which item is tabbable; null = only container */\n @State() private tabbableIndex: number | null = null;\n\n /** True if interaction by keyboard */\n @State() private userKeyFocused: boolean = false;\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!: HTMLElement;\n\n /** Change event */\n @Event({ eventName: \"stzhChange\" })\n stzhChange!: EventEmitter<StzhRatingChangeEvent>;\n\n /** Focus event */\n @Event({ eventName: \"stzhFocus\" })\n stzhFocus!: EventEmitter<StzhRatingFocusEvent>;\n\n /** Blur event */\n @Event({ eventName: \"stzhBlur\" })\n stzhBlur!: EventEmitter<StzhRatingBlurEvent>;\n\n @Listen(\"focusout\")\n handleFocusOut(ev: FocusEvent) {\n const nextTarget = ev.relatedTarget as Node | null;\n if (nextTarget && this.element.contains(nextTarget)) return;\n\n this.stzhBlur.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n });\n }\n\n @Listen(\"focusin\")\n handleFocusIn(ev: FocusEvent) {\n if (!this.element.contains(ev.target as Node)) return;\n\n this.stzhFocus.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n });\n }\n\n private groupId!: string;\n private containerEl?: HTMLElement;\n private ratingButtons: HTMLButtonElement[] = [];\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue) || [];\n if (!Array.isArray(this._error)) this._error = [newValue];\n } catch {\n this._error = newValue ? [newValue] : [];\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n async componentWillLoad() {\n this.groupId = `stzh-rating-${ratingCounter++}`;\n this.errorWatcher(this.error);\n\n if (!this.localization && (window as any)?.stzhComponents?.utils?.fetchTranslations) {\n this.localization = await (window as any).stzhComponents.utils.fetchTranslations(this.element, \"rating\");\n }\n\n this.tabbableIndex = null;\n }\n\n private clampRatingValue(inputValue: number | null | undefined): number {\n const value = Number(inputValue);\n if (!Number.isFinite(value)) return 0;\n return Math.max(0, Math.min(MAX_RATING, Math.round(value)));\n }\n\n @Method() async setValue(ratingValue: number) {\n this.value = this.clampRatingValue(ratingValue);\n }\n\n /** Visual value (hover preview included) */\n private get displayValue() {\n return this.hoverIndex ?? this.value;\n }\n\n // Hover preview\n private onMouseEnter = (i: number) => {\n if (this.readonly || this.disabled) return;\n this.hoverIndex = i;\n };\n\n private onMouseLeave = () => {\n if (this.readonly || this.disabled) return;\n this.hoverIndex = null;\n };\n\n // Click choice → Change + Changed\n private onClick = (i: number, originalEvent: KeyboardEvent | MouseEvent) => {\n if (this.readonly || this.disabled) return;\n\n const oldValue = this.value;\n const next = this.clampRatingValue(i);\n\n if (next !== oldValue) {\n this.value = next;\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent,\n value: this.value,\n });\n }\n\n this.hoverIndex = null;\n this.setTabbableAndFocus(next);\n };\n\n // Roving helpers\n private setTabbableAndFocus(i: number) {\n this.tabbableIndex = i;\n const btn = this.ratingButtons[i - 1];\n if (btn) btn.focus();\n }\n\n private handleStep(from: number | null, delta: number, originalEvent: KeyboardEvent | MouseEvent) {\n const start = from ?? 0;\n const next = this.clampRatingValue(start + delta);\n\n if (next !== this.value) {\n this.value = next;\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent,\n value: this.value,\n });\n }\n\n this.setTabbableAndFocus(next);\n }\n\n // Keyboard on container (first interaction)\n private onContainerKeyDown = (ev: KeyboardEvent) => {\n if (this.readonly || this.disabled) return;\n if (ev.defaultPrevented) return;\n\n this.userKeyFocused = true;\n\n const rtl = getComputedStyle(this.containerEl as HTMLElement).direction === \"rtl\";\n const incKey = rtl ? \"ArrowLeft\" : \"ArrowRight\";\n const decKey = rtl ? \"ArrowRight\" : \"ArrowLeft\";\n\n if (ev.key === incKey || ev.key === \"ArrowUp\") {\n ev.preventDefault();\n if (this.tabbableIndex == null) this.setTabbableAndFocus(this.value || 1);\n this.handleStep(this.value || null, +1, ev);\n } else if (ev.key === decKey || ev.key === \"ArrowDown\") {\n ev.preventDefault();\n if (this.tabbableIndex == null) this.setTabbableAndFocus(this.value || 5);\n this.handleStep(this.value || 6, -1, ev);\n } else if (ev.key === \"Home\") {\n ev.preventDefault();\n const old = this.value;\n this.value = 1;\n if (this.value !== old) {\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n value: this.value,\n });\n }\n this.setTabbableAndFocus(1);\n } else if (ev.key === \"End\") {\n ev.preventDefault();\n const old = this.value;\n this.value = 5;\n if (this.value !== old) {\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n value: this.value,\n });\n }\n this.setTabbableAndFocus(5);\n } else if (ev.key === \" \" || ev.key === \"Enter\") {\n ev.preventDefault();\n\n if (!this.value) {\n const old = this.value;\n this.value = 1;\n if (this.value !== old) {\n this.stzhChange.emit({\n component: \"stzh-rating\",\n originalEvent: ev,\n value: this.value,\n });\n }\n this.setTabbableAndFocus(1);\n } else if (this.tabbableIndex == null) {\n this.setTabbableAndFocus(this.value);\n }\n }\n };\n\n // Keyboard directly on rating item\n private onRatingItemKeyDown = (i: number, ev: KeyboardEvent) => {\n if (this.readonly || this.disabled) return;\n\n this.userKeyFocused = true;\n\n const rtl = getComputedStyle(this.containerEl as HTMLElement).direction === \"rtl\";\n const incKey = rtl ? \"ArrowLeft\" : \"ArrowRight\";\n const decKey = rtl ? \"ArrowRight\" : \"ArrowLeft\";\n\n if (ev.key === incKey || ev.key === \"ArrowUp\") {\n ev.preventDefault();\n ev.stopPropagation();\n this.handleStep(i, +1, ev);\n } else if (ev.key === decKey || ev.key === \"ArrowDown\") {\n ev.preventDefault();\n ev.stopPropagation();\n this.handleStep(i, -1, ev);\n }\n };\n\n private get errorUsed() {\n return hasSlot(this.element, \"error\") || this._error.length > 0;\n }\n\n componentDidLoad() {\n this.updateDefaultSlotState();\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-rating\"]);\n if (this.hasDefaultSlot !== hasDefaultSlot) {\n this.hasDefaultSlot = hasDefaultSlot;\n }\n if (!this.hasResolvedDefaultSlot) {\n this.hasResolvedDefaultSlot = true;\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 legendId = `${this.groupId}-legend`;\n\n const labelUsed = !!this.label || this.hasDefaultSlot;\n\n const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;\n\n const classes = {\n \"stzh-rating\": true,\n \"stzh-rating--has-description\": descriptionUsed,\n \"stzh-rating--has-description-long\": descriptionLongUsed,\n \"stzh-rating--has-error\": this.errorUsed,\n \"stzh-rating--is-disabled\": this.disabled,\n \"stzh-rating--is-readonly\": this.readonly,\n \"stzh-rating--is-invalid\": this.invalid || this.errorUsed,\n \"stzh-rating--has-label-hidden\": this.labelHidden,\n [`stzh-rating--size-${this.size}`]: !!this.size,\n };\n\n const t = this.localization?.$globals;\n const markerSymbol = this.required ? (t?.requiredFieldMarker ?? \"*\") : (t?.optionalFieldMarker ?? \"(optional)\");\n const markerText = this.required ? (t?.requiredFieldText ?? \"Required\") : (t?.optionalFieldText ?? \"Optional\");\n\n const ariaDescribedby =\n [this.description || descriptionUsed || this.errorUsed ? `${this.groupId}-description` : \"\", this.a11yDescribedby]\n .filter(Boolean)\n .join(\" \") || undefined;\n\n const currentValue = this.value || 0;\n\n return (\n <Host is-invalid={this.invalid || this.errorUsed} data-user-focus={this.userKeyFocused ? \"true\" : null}>\n {this.name && !this.disabled && !this.readonly && (\n <input type=\"hidden\" name={this.name} value={String(this.value)} />\n )}\n\n <fieldset class={classes}>\n {labelWrapperUsed && (\n <legend id={legendId} class=\"stzh-rating__legend\">\n <span class=\"stzh-rating__legend-text\">\n {this.label ? this.label : <slot onSlotchange={this.updateDefaultSlotState}></slot>}\n {labelUsed && !this.hideOptional && (\n <span class=\"stzh-rating__marker\">\n <span class=\"stzh-rating__marker-symbol\" aria-hidden=\"true\">\n {markerSymbol}\n </span>\n <span class=\"stzh-rating__marker-text\">{markerText}</span>\n </span>\n )}\n </span>\n\n {descriptionLongUsed && (\n <StzhInputDescription\n classPrefix=\"stzh-rating\"\n id={`${this.groupId}-description-long`}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization?.$globals?.moreInfoButtonLabel}\n showError={false}\n showDescriptionText={false}\n />\n )}\n </legend>\n )}\n <div\n class=\"stzh-rating__items\"\n role=\"radiogroup\"\n aria-labelledby={labelWrapperUsed ? legendId : undefined}\n aria-label={\n labelUsed\n ? undefined\n : this.readonly\n ? `${currentValue} von 5 Punkten`\n : `Bewertung: ${currentValue} von 5 Punkten. Mit Pfeiltasten ändern.`\n }\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid || this.errorUsed ? \"true\" : \"false\"}\n aria-describedby={ariaDescribedby}\n id={this.groupId}\n tabIndex={this.disabled ? undefined : 0}\n onKeyDown={this.onContainerKeyDown}\n ref={el => (this.containerEl = el as HTMLElement)}\n >\n {RATING_ITEMS.map(i => {\n const displayValue = this.displayValue;\n const isFilled = this.value >= i;\n const hoverIndex = this.hoverIndex;\n const isPreview = hoverIndex != null && i <= hoverIndex;\n\n return (\n <button\n type=\"button\"\n class={{\n \"stzh-rating__item\": true,\n filled: isFilled,\n \"is-preview\": isPreview,\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n role=\"radio\"\n tabIndex={this.tabbableIndex === i ? 0 : -1}\n aria-checked={this.value >= i ? \"true\" : \"false\"}\n aria-label={`${i} ${i === 1 ? \"Punkt\" : \"Punkte\"}`}\n onMouseEnter={() => this.onMouseEnter(i)}\n onMouseLeave={this.onMouseLeave}\n onKeyDown={ev => this.onRatingItemKeyDown(i, ev)}\n onClick={ev => this.onClick(i, ev)}\n disabled={this.disabled || this.readonly}\n ref={el => (this.ratingButtons[i - 1] = el as HTMLButtonElement)}\n s-object-id={this.analyticsId || this.label}\n >\n <stzh-icon class=\"stzh-rating__icon\" name=\"star\" a11y-title=\"\"></stzh-icon>\n {displayValue >= i && (\n <stzh-icon class=\"stzh-rating__icon\" name=\"star-filled\" a11y-title=\"\"></stzh-icon>\n )}\n </button>\n );\n })}\n </div>\n\n {(this.errorUsed || descriptionUsed) && (\n <StzhInputDescription\n classPrefix=\"stzh-rating\"\n id={`${this.groupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLongUsed={false}\n />\n )}\n </fieldset>\n </Host>\n );\n }\n}\n"]}
|