@oiz/stzh-components 4.6.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-237b22c8.js → app-globals-c14f30c8.js} +2 -2
- package/dist/cjs/{app-globals-237b22c8.js.map → app-globals-c14f30c8.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-actions_6.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actionset.cjs.entry.js +5 -5
- 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 +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +3 -3
- package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-banner.cjs.entry.js +2 -2
- package/dist/cjs/stzh-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-bathstatus-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-bathstatus-list.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cardlist_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cardlist_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-chipselect.cjs.entry.js +11 -6
- package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact-cv.cjs.entry.js +1 -1
- package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
- package/dist/cjs/stzh-disturber.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +11 -4
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- 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 +1 -1
- package/dist/cjs/stzh-feedreader-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-feedreader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +24 -16
- package/dist/cjs/stzh-geo-ref-data.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-ghettobox_3.cjs.entry.js.map +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-linklist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-microsite-teaserlist.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 +1 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-menu.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js.map +1 -1
- 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.cjs.entry.js +1 -1
- package/dist/cjs/stzh-poicard.cjs.entry.js +1 -1
- package/dist/cjs/stzh-poilist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-print_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +2 -2
- package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
- package/dist/cjs/stzh-socialmediastream-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-socialmediastream.cjs.entry.js +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-twocolumns.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +45 -10
- package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +46 -4
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +4 -2
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/CMS/PKZH/stzh-pkzh-qr/stzh-pkzh-qr.stories.js +1 -3
- package/dist/collection/components/CMS/VBZ/stzh-vbz-carousel/stzh-vbz-carousel.stories.js +1 -3
- package/dist/collection/components/CMS/VBZ/stzh-vbz-connection-finder/stzh-vbz-connection-finder.stories.js +1 -6
- package/dist/collection/components/CMS/VBZ/stzh-vbz-intro/stzh-vbz-intro.stories.js +1 -3
- package/dist/collection/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.js +48 -3
- package/dist/collection/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.js.map +1 -1
- package/dist/collection/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +1 -11
- package/dist/collection/components/CMS/VBZ/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +1 -6
- package/dist/collection/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.js +22 -2
- package/dist/collection/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.js.map +1 -1
- package/dist/collection/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +2 -6
- package/dist/collection/components/CMS/stzh-archivelist/stzh-archivelist.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-bathstatus-item/stzh-bathstatus-item.js +1 -1
- package/dist/collection/components/CMS/stzh-bathstatus-item/stzh-bathstatus-item.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-bathstatus-list/stzh-bathstatus-list.js +1 -1
- package/dist/collection/components/CMS/stzh-bathstatus-list/stzh-bathstatus-list.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-card-superteaser/stzh-card-superteaser.js +1 -1
- package/dist/collection/components/CMS/stzh-card-superteaser/stzh-card-superteaser.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-contact/stzh-contact.js +1 -1
- package/dist/collection/components/CMS/stzh-contact/stzh-contact.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-contact-cv/stzh-contact-cv.js +1 -1
- package/dist/collection/components/CMS/stzh-contact-cv/stzh-contact-cv.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-disturber/stzh-disturber.js +1 -1
- package/dist/collection/components/CMS/stzh-disturber/stzh-disturber.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-editor/stzh-editor.js +1 -1
- package/dist/collection/components/CMS/stzh-editor/stzh-editor.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-eventdata/stzh-eventdata.js +1 -1
- package/dist/collection/components/CMS/stzh-eventdata/stzh-eventdata.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.js +1 -1
- package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-feedreader/stzh-feedreader.js +1 -1
- package/dist/collection/components/CMS/stzh-feedreader/stzh-feedreader.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-feedreader-item/stzh-feedreader-item.js +1 -1
- package/dist/collection/components/CMS/stzh-feedreader-item/stzh-feedreader-item.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.js +24 -16
- package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.js.map +1 -1
- package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.stories.js +1 -6
- package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.css +3 -3
- package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.js +1 -1
- package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-homepage-search/stzh-homepage-search.js +1 -1
- package/dist/collection/components/CMS/stzh-homepage-search/stzh-homepage-search.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +2 -2
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-linklist/stzh-linklist.js +1 -1
- package/dist/collection/components/CMS/stzh-linklist/stzh-linklist.stories.js +1 -6
- package/dist/collection/components/CMS/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
- package/dist/collection/components/CMS/stzh-microsite-teaserlist/stzh-microsite-teaserlist.stories.js +1 -11
- package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.js +1 -1
- package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +1 -6
- package/dist/collection/components/CMS/stzh-pagebottom/stzh-pagebottom.js +1 -1
- package/dist/collection/components/CMS/stzh-pagebottom/stzh-pagebottom.stories.js +1 -9
- package/dist/collection/components/CMS/stzh-pagecontent/stzh-pagecontent.js +1 -1
- package/dist/collection/components/CMS/stzh-pagecontent/stzh-pagecontent.stories.js +1 -6
- package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-pagetitle-hero/stzh-pagetitle-hero.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.css +0 -1
- package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.css +3 -0
- package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-pi-quote/stzh-pi-quote.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-quote/stzh-pi-quote.stories.js +1 -4
- package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-pi-teaser-layout/stzh-pi-teaser-layout.stories.js +3 -6
- package/dist/collection/components/CMS/stzh-pi-teaser-layout-item/stzh-pi-teaser-layout-item.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser-layout-item/stzh-pi-teaser-layout-item.stories.js +3 -5
- package/dist/collection/components/CMS/stzh-poicard/stzh-poicard.js +1 -1
- package/dist/collection/components/CMS/stzh-poicard/stzh-poicard.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-poilist/stzh-poilist.js +1 -1
- package/dist/collection/components/CMS/stzh-poilist/stzh-poilist.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-print/stzh-print.js +1 -1
- package/dist/collection/components/CMS/stzh-print/stzh-print.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-search/stzh-search.js +2 -2
- package/dist/collection/components/CMS/stzh-search/stzh-search.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-sitemap/stzh-sitemap.js +1 -1
- package/dist/collection/components/CMS/stzh-sitemap/stzh-sitemap.stories.js +2 -3
- package/dist/collection/components/CMS/stzh-socialmediastream/stzh-socialmediastream.js +1 -1
- package/dist/collection/components/CMS/stzh-socialmediastream/stzh-socialmediastream.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-socialmediastream-item/stzh-socialmediastream-item.js +1 -1
- package/dist/collection/components/CMS/stzh-socialmediastream-item/stzh-socialmediastream-item.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-textandimage/stzh-textandimage.js +1 -1
- package/dist/collection/components/CMS/stzh-textandimage/stzh-textandimage.stories.js +1 -3
- package/dist/collection/components/CMS/stzh-twocolumns/stzh-twocolumns.js +1 -1
- package/dist/collection/components/CMS/stzh-twocolumns/stzh-twocolumns.stories.js +1 -3
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +1 -1
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +3 -6
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +4 -7
- package/dist/collection/components/stzh-actions/stzh-actions.js +1 -1
- package/dist/collection/components/stzh-actions/stzh-actions.stories.js +3 -5
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +5 -5
- package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +3 -5
- package/dist/collection/components/stzh-amount/stzh-amount.js +1 -1
- package/dist/collection/components/stzh-amount/stzh-amount.stories.js +3 -4
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +1 -1
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.stories.js +3 -4
- package/dist/collection/components/stzh-app-nav/stzh-app-nav.js +1 -1
- package/dist/collection/components/stzh-app-nav/stzh-app-nav.stories.js +3 -5
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +17 -14
- package/dist/collection/components/stzh-audio/stzh-audio.js +3 -3
- package/dist/collection/components/stzh-audio/stzh-audio.stories.js +3 -5
- package/dist/collection/components/stzh-badge/stzh-badge.js +1 -1
- package/dist/collection/components/stzh-badge/stzh-badge.stories.js +3 -5
- package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.css +1 -1
- package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.e2e.js +2 -2
- package/dist/collection/components/stzh-banner/stzh-banner.e2e.js.map +1 -0
- package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.js +4 -4
- package/dist/collection/components/stzh-banner/stzh-banner.js.map +1 -0
- package/dist/collection/components/stzh-banner/stzh-banner.localization.js.map +1 -0
- package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.stories.js +6 -8
- package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.stories.js +3 -5
- package/dist/collection/components/stzh-button/stzh-button.stories.js +4 -6
- package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.stories.js +4 -3
- package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +3 -5
- package/dist/collection/components/stzh-card/stzh-card.stories.js +14 -17
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.stories.js +3 -5
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.stories.js +3 -5
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +7 -6
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.stories.js +3 -5
- package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +3 -5
- package/dist/collection/components/stzh-cell/stzh-cell.stories.js +3 -4
- package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -3
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +7 -10
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +5 -9
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +3 -5
- package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.stories.js +1 -3
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +11 -6
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +4 -6
- package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +3 -4
- package/dist/collection/components/stzh-company-logo/stzh-company-logo.stories.js +1 -6
- package/dist/collection/components/stzh-container/stzh-container.stories.js +1 -3
- package/dist/collection/components/stzh-content/stzh-content.stories.js +1 -6
- package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +1 -6
- package/dist/collection/components/stzh-cta/stzh-cta.stories.js +3 -5
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +3 -5
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.stories.js +3 -5
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +1 -3
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +3 -5
- package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +3 -5
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +3 -5
- package/dist/collection/components/stzh-daterange/stzh-daterange.stories.js +1 -6
- package/dist/collection/components/stzh-details/stzh-details.stories.js +3 -5
- package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +3 -5
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +11 -4
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +4 -6
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +6 -11
- package/dist/collection/components/stzh-figure/stzh-figure.stories.js +1 -3
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +1 -3
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +1 -3
- package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +1 -3
- package/dist/collection/components/stzh-header/stzh-header.stories.js +3 -5
- package/dist/collection/components/stzh-heading/stzh-heading.stories.js +1 -6
- package/dist/collection/components/stzh-hr/stzh-hr.stories.js +1 -3
- package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +1 -6
- package/dist/collection/components/stzh-http-error/stzh-http-error.stories.js +1 -6
- package/dist/collection/components/stzh-icon/stzh-icon.stories.js +1 -6
- package/dist/collection/components/stzh-iframe/stzh-iframe.stories.js +3 -5
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.stories.js +3 -5
- package/dist/collection/components/stzh-input/stzh-input.stories.js +6 -8
- package/dist/collection/components/stzh-invert/stzh-invert.stories.js +1 -3
- package/dist/collection/components/stzh-link/stzh-link.stories.js +3 -4
- package/dist/collection/components/stzh-list/stzh-list.stories.js +1 -3
- package/dist/collection/components/stzh-loader/stzh-loader.stories.js +1 -6
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +1 -3
- package/dist/collection/components/stzh-menu/stzh-menu.stories.js +1 -6
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +3 -5
- package/dist/collection/components/stzh-message/stzh-message.stories.js +3 -5
- package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.stories.js +3 -4
- package/dist/collection/components/stzh-offline-indicator/stzh-offline-indicator.stories.js +1 -3
- package/dist/collection/components/stzh-olmap/stzh-olmap.stories.js +3 -5
- package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +3 -5
- package/dist/collection/components/stzh-pagination/stzh-pagination.stories.js +3 -5
- package/dist/collection/components/stzh-panorama/stzh-panorama.stories.js +3 -5
- package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -8
- package/dist/collection/components/stzh-quote/stzh-quote.stories.js +1 -4
- package/dist/collection/components/stzh-radio/stzh-radio.stories.js +7 -11
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +6 -9
- package/dist/collection/components/stzh-rating/stzh-rating.stories.js +16 -23
- package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +1 -3
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +1 -3
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +1 -6
- package/dist/collection/components/stzh-row/stzh-row.stories.js +1 -5
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +3 -5
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.stories.js +1 -17
- package/dist/collection/components/stzh-section/stzh-section.stories.js +1 -3
- package/dist/collection/components/stzh-share/stzh-share.stories.js +1 -3
- package/dist/collection/components/stzh-show/stzh-show.stories.js +1 -3
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.stories.js +1 -6
- package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.stories.js +1 -6
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +1 -6
- package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +3 -5
- package/dist/collection/components/stzh-space/stzh-space.stories.js +1 -6
- package/dist/collection/components/stzh-status/stzh-status.stories.js +1 -3
- package/dist/collection/components/stzh-stepper/stzh-stepper.stories.js +4 -7
- package/dist/collection/components/stzh-stepper-item/stzh-stepper-item.stories.js +4 -7
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -5
- package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.stories.js +1 -3
- package/dist/collection/components/stzh-table/stzh-table.stories.js +1 -3
- package/dist/collection/components/stzh-tag/stzh-tag.stories.js +3 -5
- package/dist/collection/components/stzh-text/stzh-text.stories.js +5 -7
- package/dist/collection/components/stzh-timeline/stzh-timeline.stories.js +3 -5
- package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.stories.js +3 -5
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.stories.js +3 -5
- package/dist/collection/components/stzh-toast/stzh-toast.stories.js +3 -5
- package/dist/collection/components/stzh-toastbar/stzh-toastbar.stories.js +1 -2
- package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +3 -5
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +3 -5
- package/dist/collection/components/stzh-upload/stzh-upload.js +46 -11
- package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +13 -12
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +1 -6
- package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +1 -6
- package/dist/collection/components/stzh-youtube/stzh-youtube.stories.js +1 -3
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-79436c88.js → p-05fe3259.js} +2 -2
- package/dist/components/{p-79436c88.js.map → p-05fe3259.js.map} +1 -1
- package/dist/components/{p-0b630cac.js → p-06e3cf2d.js} +16 -11
- package/dist/components/p-06e3cf2d.js.map +1 -0
- package/dist/components/{p-27bf6b87.js → p-0e787824.js} +4 -4
- package/dist/components/{p-27bf6b87.js.map → p-0e787824.js.map} +1 -1
- package/dist/components/{p-cb0898ca.js → p-139d2041.js} +4 -4
- package/dist/components/{p-cb0898ca.js.map → p-139d2041.js.map} +1 -1
- package/dist/components/{p-a792adae.js → p-17e8405b.js} +3 -3
- package/dist/components/{p-a792adae.js.map → p-17e8405b.js.map} +1 -1
- package/dist/components/{p-db160bc1.js → p-1c6e00e3.js} +4 -4
- package/dist/components/{p-db160bc1.js.map → p-1c6e00e3.js.map} +1 -1
- package/dist/components/{p-95960509.js → p-1e18dc1d.js} +4 -4
- package/dist/components/{p-95960509.js.map → p-1e18dc1d.js.map} +1 -1
- package/dist/components/{p-5c7c4130.js → p-2b549cf6.js} +2 -2
- package/dist/components/{p-5c7c4130.js.map → p-2b549cf6.js.map} +1 -1
- package/dist/components/{p-2d80d228.js → p-31108932.js} +2 -2
- package/dist/components/{p-2d80d228.js.map → p-31108932.js.map} +1 -1
- package/dist/components/{p-2c27e000.js → p-33bb9ae6.js} +9 -9
- package/dist/components/{p-2c27e000.js.map → p-33bb9ae6.js.map} +1 -1
- package/dist/components/{p-78ad1fb5.js → p-349fbfd7.js} +2 -2
- package/dist/components/{p-78ad1fb5.js.map → p-349fbfd7.js.map} +1 -1
- package/dist/components/{p-31a89409.js → p-363adb38.js} +5 -5
- package/dist/components/{p-31a89409.js.map → p-363adb38.js.map} +1 -1
- package/dist/components/p-37c9ec06.js.map +1 -1
- package/dist/components/{p-7969eeb6.js → p-38e34484.js} +2 -2
- package/dist/components/{p-7969eeb6.js.map → p-38e34484.js.map} +1 -1
- package/dist/components/{p-c4637521.js → p-3ee4c2ec.js} +3 -3
- package/dist/components/{p-c4637521.js.map → p-3ee4c2ec.js.map} +1 -1
- package/dist/components/{p-1ec35678.js → p-4bdf2c0e.js} +5 -5
- package/dist/components/{p-1ec35678.js.map → p-4bdf2c0e.js.map} +1 -1
- package/dist/components/{p-2d2bf07d.js → p-5fe404aa.js} +49 -5
- package/dist/components/p-5fe404aa.js.map +1 -0
- package/dist/components/{p-1f315034.js → p-626168f9.js} +4 -4
- package/dist/components/{p-1f315034.js.map → p-626168f9.js.map} +1 -1
- package/dist/components/{p-b8fda153.js → p-6a1a040f.js} +2 -2
- package/dist/components/{p-b8fda153.js.map → p-6a1a040f.js.map} +1 -1
- package/dist/components/{p-bafc325d.js → p-74f1fb8a.js} +3 -3
- package/dist/components/{p-bafc325d.js.map → p-74f1fb8a.js.map} +1 -1
- package/dist/components/{p-ec5e2f2a.js → p-775cca3b.js} +2 -2
- package/dist/components/{p-ec5e2f2a.js.map → p-775cca3b.js.map} +1 -1
- package/dist/components/{p-c9320f27.js → p-804c5a42.js} +4 -4
- package/dist/components/{p-c9320f27.js.map → p-804c5a42.js.map} +1 -1
- package/dist/components/{p-28548919.js → p-8c402b5e.js} +3 -3
- package/dist/components/{p-28548919.js.map → p-8c402b5e.js.map} +1 -1
- package/dist/components/{p-e25baa50.js → p-8e42dbab.js} +3 -3
- package/dist/components/{p-e25baa50.js.map → p-8e42dbab.js.map} +1 -1
- package/dist/components/{p-c8267c9e.js → p-999b8661.js} +4 -4
- package/dist/components/p-999b8661.js.map +1 -0
- package/dist/components/{p-258d7bde.js → p-9a88d047.js} +3 -3
- package/dist/components/{p-258d7bde.js.map → p-9a88d047.js.map} +1 -1
- package/dist/components/{p-51253a86.js → p-a94140df.js} +3 -3
- package/dist/components/{p-51253a86.js.map → p-a94140df.js.map} +1 -1
- package/dist/components/{p-c484e7ca.js → p-af574b36.js} +2 -2
- package/dist/components/{p-c484e7ca.js.map → p-af574b36.js.map} +1 -1
- package/dist/components/{p-a3e94f5e.js → p-b379f4ca.js} +6 -6
- package/dist/components/{p-a3e94f5e.js.map → p-b379f4ca.js.map} +1 -1
- package/dist/components/{p-cac39de3.js → p-b38507d2.js} +2 -2
- package/dist/components/{p-cac39de3.js.map → p-b38507d2.js.map} +1 -1
- package/dist/components/{p-04567f95.js → p-b392fbfe.js} +4 -4
- package/dist/components/{p-04567f95.js.map → p-b392fbfe.js.map} +1 -1
- package/dist/components/{p-cccc2b32.js → p-bb5dd9ca.js} +6 -6
- package/dist/components/{p-cccc2b32.js.map → p-bb5dd9ca.js.map} +1 -1
- package/dist/components/{p-27688347.js → p-bec99b6c.js} +4 -4
- package/dist/components/{p-27688347.js.map → p-bec99b6c.js.map} +1 -1
- package/dist/components/{p-dc031c55.js → p-c16c2ca7.js} +6 -6
- package/dist/components/{p-dc031c55.js.map → p-c16c2ca7.js.map} +1 -1
- package/dist/components/{p-9dccba17.js → p-cac3a53e.js} +3 -3
- package/dist/components/{p-9dccba17.js.map → p-cac3a53e.js.map} +1 -1
- package/dist/components/{p-1462b0ac.js → p-e961f0da.js} +3 -3
- package/dist/components/{p-1462b0ac.js.map → p-e961f0da.js.map} +1 -1
- package/dist/components/{p-3d9ce94f.js → p-f07fda42.js} +12 -5
- package/dist/components/p-f07fda42.js.map +1 -0
- 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 +5 -5
- package/dist/components/stzh-anchornav.js +4 -4
- package/dist/components/stzh-app-nav.js +1 -1
- package/dist/components/stzh-appointments.js +8 -8
- package/dist/components/stzh-archivelist.js +4 -4
- package/dist/components/stzh-audio.js +3 -3
- package/dist/components/stzh-badge.js +1 -1
- package/dist/components/stzh-banner.js +4 -4
- package/dist/components/stzh-banner.js.map +1 -1
- package/dist/components/stzh-bathstatus-item.js +1 -1
- package/dist/components/stzh-bathstatus-list.js +4 -4
- package/dist/components/stzh-button.js +1 -1
- package/dist/components/stzh-calendar.js +1 -1
- package/dist/components/stzh-card-searchresult.js +7 -7
- package/dist/components/stzh-card-superteaser.js +8 -8
- package/dist/components/stzh-card.js +1 -1
- package/dist/components/stzh-cardlist.js +1 -1
- package/dist/components/stzh-chip.js +1 -1
- package/dist/components/stzh-chipselect.js +1 -1
- package/dist/components/stzh-clamp.js +1 -1
- package/dist/components/stzh-contact-cv.js +1 -1
- package/dist/components/stzh-contact.js +5 -5
- package/dist/components/stzh-datalist-item.js +1 -1
- package/dist/components/stzh-datalist.js +1 -1
- package/dist/components/stzh-datamessagelist-item.js +6 -6
- package/dist/components/stzh-datatable.js +9 -9
- package/dist/components/stzh-datepicker.js +1 -1
- package/dist/components/stzh-daterange.js +2 -2
- package/dist/components/stzh-dialog.js +1 -1
- package/dist/components/stzh-disturber.js +3 -3
- package/dist/components/stzh-dropdown.js +1 -1
- package/dist/components/stzh-editor.js +3 -3
- package/dist/components/stzh-eventdata.js +1 -1
- package/dist/components/stzh-eventinfo.js +3 -3
- package/dist/components/stzh-feedreader-item.js +1 -1
- package/dist/components/stzh-feedreader.js +5 -5
- package/dist/components/stzh-footer.js +2 -2
- package/dist/components/stzh-gallery.js +2 -2
- package/dist/components/stzh-geo-ref-data.js +36 -28
- package/dist/components/stzh-geo-ref-data.js.map +1 -1
- package/dist/components/stzh-ghettobox.js +1 -1
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-homepage-search.js +1 -1
- package/dist/components/stzh-homepage-service-highlights.js +4 -4
- package/dist/components/stzh-http-error.js +2 -2
- package/dist/components/stzh-iframe.js +1 -1
- package/dist/components/stzh-input.js +1 -1
- package/dist/components/stzh-link.js +1 -1
- package/dist/components/stzh-linklist.js +5 -5
- package/dist/components/stzh-menu-item.js +1 -1
- package/dist/components/stzh-message.js +1 -1
- package/dist/components/stzh-microsite-teaserlist.js +11 -11
- package/dist/components/stzh-monthyearpicker.js +1 -1
- package/dist/components/stzh-offline-indicator.js +4 -4
- package/dist/components/stzh-page-skiplinks.js +1 -1
- package/dist/components/stzh-pagebottom.js +5 -5
- package/dist/components/stzh-pagecontent.js +1 -1
- package/dist/components/stzh-pagetitle-hero.js +1 -1
- package/dist/components/stzh-pagetitle-home.js +1 -1
- package/dist/components/stzh-pagetitle.js +1 -1
- package/dist/components/stzh-pagination.js +1 -1
- package/dist/components/stzh-panorama.js +4 -4
- package/dist/components/stzh-pi-content-navigation.js +1 -1
- package/dist/components/stzh-pi-menu.js +2 -2
- package/dist/components/stzh-pi-menu.js.map +1 -1
- package/dist/components/stzh-pi-pagetitle.js +2 -2
- package/dist/components/stzh-pi-pagetitle.js.map +1 -1
- 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 +1 -1
- package/dist/components/stzh-pi-teaser.js +1 -1
- package/dist/components/stzh-pkzh-qr.js +7 -7
- package/dist/components/stzh-poicard.js +1 -1
- package/dist/components/stzh-poilist.js +10 -10
- package/dist/components/stzh-print.js +1 -1
- package/dist/components/stzh-readspeaker.js +2 -2
- package/dist/components/stzh-saptcha.js +3 -3
- package/dist/components/stzh-search.js +10 -10
- package/dist/components/stzh-share.js +1 -1
- package/dist/components/stzh-sitemap.js +5 -5
- package/dist/components/stzh-socialmediastream-item.js +1 -1
- package/dist/components/stzh-socialmediastream.js +2 -2
- package/dist/components/stzh-tag.js +1 -1
- package/dist/components/stzh-textandimage.js +1 -1
- package/dist/components/stzh-timeline-item.js +1 -1
- package/dist/components/stzh-timepicker.js +1 -1
- package/dist/components/stzh-toast.js +1 -1
- package/dist/components/stzh-toastbar.js +1 -1
- package/dist/components/stzh-twocolumns.js +1 -1
- package/dist/components/stzh-upload.js +52 -17
- package/dist/components/stzh-upload.js.map +1 -1
- package/dist/components/stzh-vbz-intro.js +2 -2
- package/dist/components/stzh-vbz-linechip.js +1 -1
- package/dist/components/stzh-vbz-majorticker.js +3 -3
- package/dist/components/stzh-vbz-ticker.js +8 -5
- package/dist/components/stzh-vbz-ticker.js.map +1 -1
- package/dist/components/stzh-youtube.js +3 -3
- package/dist/esm/{app-globals-a962cea2.js → app-globals-a7ad59a2.js} +2 -2
- package/dist/esm/{app-globals-a962cea2.js.map → app-globals-a7ad59a2.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion_3.entry.js +2 -2
- package/dist/esm/stzh-actions_6.entry.js +1 -1
- package/dist/esm/stzh-actionset.entry.js +5 -5
- 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 +1 -1
- package/dist/esm/stzh-audio.entry.js +3 -3
- package/dist/esm/stzh-badge_3.entry.js +1 -1
- package/dist/esm/stzh-banner.entry.js +2 -2
- package/dist/esm/stzh-banner.entry.js.map +1 -1
- package/dist/esm/stzh-bathstatus-item.entry.js +1 -1
- package/dist/esm/stzh-bathstatus-list.entry.js +1 -1
- package/dist/esm/stzh-card-superteaser.entry.js +1 -1
- package/dist/esm/stzh-cardlist_3.entry.js +1 -1
- package/dist/esm/stzh-cardlist_3.entry.js.map +1 -1
- package/dist/esm/stzh-chipselect.entry.js +11 -6
- package/dist/esm/stzh-chipselect.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact-cv.entry.js +1 -1
- package/dist/esm/stzh-contact.entry.js +1 -1
- package/dist/esm/stzh-disturber.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +11 -4
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- 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 +1 -1
- package/dist/esm/stzh-feedreader-item.entry.js +1 -1
- package/dist/esm/stzh-feedreader.entry.js +1 -1
- package/dist/esm/stzh-geo-ref-data.entry.js +24 -16
- package/dist/esm/stzh-geo-ref-data.entry.js.map +1 -1
- package/dist/esm/stzh-ghettobox_3.entry.js +2 -2
- package/dist/esm/stzh-ghettobox_3.entry.js.map +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-linklist.entry.js +1 -1
- package/dist/esm/stzh-microsite-teaserlist.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 +1 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-home.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-pi-content-navigation.entry.js +1 -1
- package/dist/esm/stzh-pi-menu.entry.js +2 -2
- package/dist/esm/stzh-pi-menu.entry.js.map +1 -1
- package/dist/esm/stzh-pi-pagetitle.entry.js +2 -2
- package/dist/esm/stzh-pi-pagetitle.entry.js.map +1 -1
- 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.entry.js +1 -1
- package/dist/esm/stzh-poicard.entry.js +1 -1
- package/dist/esm/stzh-poilist.entry.js +1 -1
- package/dist/esm/stzh-print_2.entry.js +1 -1
- package/dist/esm/stzh-search.entry.js +2 -2
- package/dist/esm/stzh-sitemap.entry.js +1 -1
- package/dist/esm/stzh-socialmediastream-item.entry.js +1 -1
- package/dist/esm/stzh-socialmediastream.entry.js +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-twocolumns.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +45 -10
- package/dist/esm/stzh-upload.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-linechip.entry.js +46 -4
- package/dist/esm/stzh-vbz-linechip.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +4 -2
- package/dist/esm/stzh-vbz-ticker.entry.js.map +1 -1
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-50a81b5c.entry.js → p-0cf78c66.entry.js} +2 -2
- package/dist/stzh-components/{p-9b858b7e.entry.js → p-1047debc.entry.js} +2 -2
- package/dist/stzh-components/{p-d0e8b48e.entry.js → p-126e6d91.entry.js} +2 -2
- package/dist/stzh-components/{p-3064f4b9.entry.js → p-1724d14c.entry.js} +2 -2
- package/dist/stzh-components/{p-21c8ffbe.entry.js → p-1a926012.entry.js} +2 -2
- package/dist/stzh-components/{p-0585149c.entry.js → p-1b517ef0.entry.js} +2 -2
- package/dist/stzh-components/p-3677f45f.entry.js +2 -0
- package/dist/stzh-components/p-3677f45f.entry.js.map +1 -0
- package/dist/stzh-components/{p-2925f080.entry.js → p-37f3a254.entry.js} +2 -2
- package/dist/stzh-components/{p-6dd89068.entry.js → p-3e6c40f3.entry.js} +2 -2
- package/dist/stzh-components/{p-0585ce30.entry.js → p-40b71f43.entry.js} +2 -2
- package/dist/stzh-components/p-4248810c.entry.js +2 -0
- package/dist/stzh-components/p-4248810c.entry.js.map +1 -0
- package/dist/stzh-components/{p-b4743671.entry.js → p-49d1df6c.entry.js} +2 -2
- package/dist/stzh-components/{p-c58f66b7.entry.js → p-4c34707b.entry.js} +2 -2
- package/dist/stzh-components/{p-9dc09551.entry.js → p-4cc22e58.entry.js} +2 -2
- package/dist/stzh-components/p-53356df0.entry.js +2 -0
- package/dist/stzh-components/p-53356df0.entry.js.map +1 -0
- package/dist/stzh-components/{p-0c40b74a.entry.js → p-57350e0f.entry.js} +2 -2
- package/dist/stzh-components/{p-9868d9ae.entry.js → p-582dce2a.entry.js} +2 -2
- package/dist/stzh-components/{p-6e273ca9.entry.js → p-59f148b6.entry.js} +2 -2
- package/dist/stzh-components/{p-a06207b8.entry.js → p-5c6e3a8d.entry.js} +2 -2
- package/dist/stzh-components/p-64d9db0e.entry.js +2 -0
- package/dist/stzh-components/{p-08a557a9.entry.js.map → p-64d9db0e.entry.js.map} +1 -1
- package/dist/stzh-components/{p-f4a72255.entry.js → p-68eac8f8.entry.js} +2 -2
- package/dist/stzh-components/{p-71a0881e.entry.js → p-6caa57d2.entry.js} +2 -2
- package/dist/stzh-components/{p-51b68c35.entry.js → p-6f9d0b16.entry.js} +2 -2
- package/dist/stzh-components/{p-30190507.entry.js → p-75cb1777.entry.js} +5 -5
- package/dist/stzh-components/p-75cb1777.entry.js.map +1 -0
- package/dist/stzh-components/{p-53fbd93e.entry.js → p-7659680e.entry.js} +2 -2
- package/dist/stzh-components/{p-7c4475b1.entry.js → p-7a89cb17.entry.js} +2 -2
- package/dist/stzh-components/{p-a3227cea.entry.js → p-7cbdff42.entry.js} +2 -2
- package/dist/stzh-components/{p-8b77de57.entry.js → p-7cc03903.entry.js} +2 -2
- package/dist/stzh-components/{p-94c29a35.entry.js → p-7e2ccf70.entry.js} +2 -2
- package/dist/stzh-components/p-7e2ccf70.entry.js.map +1 -0
- package/dist/stzh-components/{p-c820956f.entry.js → p-80ad40e0.entry.js} +2 -2
- package/dist/stzh-components/{p-0d7b090a.entry.js → p-81223fd0.entry.js} +2 -2
- package/dist/stzh-components/{p-0504563f.entry.js → p-81cedb07.entry.js} +2 -2
- package/dist/stzh-components/{p-ff5abecf.entry.js → p-88771be4.entry.js} +2 -2
- package/dist/stzh-components/{p-51e9d435.entry.js → p-920fce3c.entry.js} +2 -2
- package/dist/stzh-components/{p-aca1cbd6.entry.js → p-93ec64d8.entry.js} +2 -2
- package/dist/stzh-components/{p-42ec2ee3.entry.js → p-a34af577.entry.js} +2 -2
- package/dist/stzh-components/p-a34af577.entry.js.map +1 -0
- package/dist/stzh-components/{p-54ba4496.entry.js → p-a406f00b.entry.js} +2 -2
- package/dist/stzh-components/{p-3a5acc86.entry.js → p-b0216e1c.entry.js} +2 -2
- package/dist/stzh-components/{p-e45aaf19.entry.js → p-b1f7a965.entry.js} +2 -2
- package/dist/stzh-components/{p-3a0112f4.entry.js → p-b2577810.entry.js} +2 -2
- package/dist/stzh-components/{p-d68f208f.js → p-b381bb3f.js} +2 -2
- package/dist/stzh-components/p-beb1274a.entry.js +2 -0
- package/dist/stzh-components/{p-24daddfd.entry.js.map → p-beb1274a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-38570073.entry.js → p-beeb3c30.entry.js} +2 -2
- package/dist/stzh-components/{p-0edd3842.entry.js → p-c8319cd5.entry.js} +2 -2
- package/dist/stzh-components/{p-70805ea3.entry.js → p-c8d80b05.entry.js} +2 -2
- package/dist/stzh-components/{p-8de194c8.entry.js → p-ceb4aac5.entry.js} +2 -2
- package/dist/stzh-components/p-ceb4aac5.entry.js.map +1 -0
- package/dist/stzh-components/{p-15f3c6a1.entry.js → p-dbe28f96.entry.js} +2 -2
- package/dist/stzh-components/{p-3f4afd76.entry.js → p-de4b1f2b.entry.js} +2 -2
- package/dist/stzh-components/{p-13881ff2.entry.js → p-de8c2229.entry.js} +2 -2
- package/dist/stzh-components/{p-ee9f0975.entry.js → p-def94196.entry.js} +2 -2
- package/dist/stzh-components/p-def94196.entry.js.map +1 -0
- package/dist/stzh-components/p-e437fcf8.entry.js +2 -0
- package/dist/stzh-components/p-e437fcf8.entry.js.map +1 -0
- package/dist/stzh-components/{p-b1695c60.entry.js → p-e55ed246.entry.js} +2 -2
- package/dist/stzh-components/{p-9c552bd1.entry.js → p-f06def5a.entry.js} +2 -2
- package/dist/stzh-components/{p-380d1021.entry.js → p-f4a3b35e.entry.js} +2 -2
- package/dist/stzh-components/{p-380d1021.entry.js.map → p-f4a3b35e.entry.js.map} +1 -1
- package/dist/stzh-components/p-fe46e220.entry.js +2 -0
- package/dist/stzh-components/p-fe46e220.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +10 -2
- package/dist/types/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +4 -2
- package/dist/types/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.d.ts +1 -0
- package/dist/types/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.d.ts +2 -2
- package/dist/types/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.localization.d.ts +1 -1
- package/dist/types/components.d.ts +28 -4
- package/dist/types/index.d.ts +22 -1
- package/dist/vscode-data.json +32 -0
- package/package.json +13 -24
- package/dist/collection/components/CMS/stzh-banner/stzh-banner.e2e.js.map +0 -1
- package/dist/collection/components/CMS/stzh-banner/stzh-banner.js.map +0 -1
- package/dist/collection/components/CMS/stzh-banner/stzh-banner.localization.js.map +0 -1
- package/dist/components/p-0b630cac.js.map +0 -1
- package/dist/components/p-2d2bf07d.js.map +0 -1
- package/dist/components/p-3d9ce94f.js.map +0 -1
- package/dist/components/p-c8267c9e.js.map +0 -1
- package/dist/stzh-components/p-08a557a9.entry.js +0 -2
- package/dist/stzh-components/p-24daddfd.entry.js +0 -2
- package/dist/stzh-components/p-30190507.entry.js.map +0 -1
- package/dist/stzh-components/p-357ce1c2.entry.js +0 -2
- package/dist/stzh-components/p-357ce1c2.entry.js.map +0 -1
- package/dist/stzh-components/p-42ec2ee3.entry.js.map +0 -1
- package/dist/stzh-components/p-520572a4.entry.js +0 -2
- package/dist/stzh-components/p-520572a4.entry.js.map +0 -1
- package/dist/stzh-components/p-7157b3d2.entry.js +0 -2
- package/dist/stzh-components/p-7157b3d2.entry.js.map +0 -1
- package/dist/stzh-components/p-7254baa2.entry.js +0 -2
- package/dist/stzh-components/p-7254baa2.entry.js.map +0 -1
- package/dist/stzh-components/p-846c28e5.entry.js +0 -2
- package/dist/stzh-components/p-846c28e5.entry.js.map +0 -1
- package/dist/stzh-components/p-8de194c8.entry.js.map +0 -1
- package/dist/stzh-components/p-94c29a35.entry.js.map +0 -1
- package/dist/stzh-components/p-ee9f0975.entry.js.map +0 -1
- /package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.localization.js +0 -0
- /package/dist/stzh-components/{p-50a81b5c.entry.js.map → p-0cf78c66.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9b858b7e.entry.js.map → p-1047debc.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d0e8b48e.entry.js.map → p-126e6d91.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3064f4b9.entry.js.map → p-1724d14c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-21c8ffbe.entry.js.map → p-1a926012.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0585149c.entry.js.map → p-1b517ef0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2925f080.entry.js.map → p-37f3a254.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6dd89068.entry.js.map → p-3e6c40f3.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0585ce30.entry.js.map → p-40b71f43.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b4743671.entry.js.map → p-49d1df6c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c58f66b7.entry.js.map → p-4c34707b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9dc09551.entry.js.map → p-4cc22e58.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0c40b74a.entry.js.map → p-57350e0f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9868d9ae.entry.js.map → p-582dce2a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6e273ca9.entry.js.map → p-59f148b6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a06207b8.entry.js.map → p-5c6e3a8d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f4a72255.entry.js.map → p-68eac8f8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-71a0881e.entry.js.map → p-6caa57d2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-51b68c35.entry.js.map → p-6f9d0b16.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-53fbd93e.entry.js.map → p-7659680e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7c4475b1.entry.js.map → p-7a89cb17.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a3227cea.entry.js.map → p-7cbdff42.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8b77de57.entry.js.map → p-7cc03903.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c820956f.entry.js.map → p-80ad40e0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0d7b090a.entry.js.map → p-81223fd0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0504563f.entry.js.map → p-81cedb07.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ff5abecf.entry.js.map → p-88771be4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-51e9d435.entry.js.map → p-920fce3c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aca1cbd6.entry.js.map → p-93ec64d8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-54ba4496.entry.js.map → p-a406f00b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3a5acc86.entry.js.map → p-b0216e1c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e45aaf19.entry.js.map → p-b1f7a965.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3a0112f4.entry.js.map → p-b2577810.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d68f208f.js.map → p-b381bb3f.js.map} +0 -0
- /package/dist/stzh-components/{p-38570073.entry.js.map → p-beeb3c30.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0edd3842.entry.js.map → p-c8319cd5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-70805ea3.entry.js.map → p-c8d80b05.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-15f3c6a1.entry.js.map → p-dbe28f96.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3f4afd76.entry.js.map → p-de4b1f2b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-13881ff2.entry.js.map → p-de8c2229.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1695c60.entry.js.map → p-e55ed246.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9c552bd1.entry.js.map → p-f06def5a.entry.js.map} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -128,8 +127,8 @@ export default {
|
|
|
128
127
|
title: 'Components/Cardlist',
|
|
129
128
|
component: COMPONENT_NAME,
|
|
130
129
|
parameters: {
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
stzhActions: {
|
|
131
|
+
events: ['stzhCollapseAll']
|
|
133
132
|
},
|
|
134
133
|
layout: 'padded',
|
|
135
134
|
docs: {
|
|
@@ -142,8 +141,7 @@ export default {
|
|
|
142
141
|
url: getFigmaLink('cardlist'),
|
|
143
142
|
allowFullscreen: true
|
|
144
143
|
}
|
|
145
|
-
}
|
|
146
|
-
decorators: [withActions]
|
|
144
|
+
}
|
|
147
145
|
};
|
|
148
146
|
|
|
149
147
|
export const Services = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -112,8 +111,8 @@ export default {
|
|
|
112
111
|
component: COMPONENT_NAME,
|
|
113
112
|
parameters: {
|
|
114
113
|
layout: 'fullscreen',
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
stzhActions: {
|
|
115
|
+
events: ['stzhSlideStart', 'stzhSlidePassed', 'stzhSlideEnd']
|
|
117
116
|
},
|
|
118
117
|
docs: {
|
|
119
118
|
description: {
|
|
@@ -125,8 +124,7 @@ export default {
|
|
|
125
124
|
url: getFigmaLink('carousel'),
|
|
126
125
|
allowFullscreen: true
|
|
127
126
|
}
|
|
128
|
-
}
|
|
129
|
-
decorators: [withActions]
|
|
127
|
+
}
|
|
130
128
|
};
|
|
131
129
|
|
|
132
130
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
import { fullwidthCentered } from '../../utils/decorators';
|
|
5
4
|
|
|
@@ -18,8 +17,8 @@ export default {
|
|
|
18
17
|
title: 'Components/Cell',
|
|
19
18
|
component: COMPONENT_NAME,
|
|
20
19
|
parameters: {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
stzhActions: {
|
|
21
|
+
events: []
|
|
23
22
|
},
|
|
24
23
|
docs: {
|
|
25
24
|
description: {
|
|
@@ -32,7 +31,7 @@ export default {
|
|
|
32
31
|
allowFullscreen: true
|
|
33
32
|
}
|
|
34
33
|
},
|
|
35
|
-
decorators: [
|
|
34
|
+
decorators: [fullwidthCentered]
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -26,8 +25,7 @@ export default {
|
|
|
26
25
|
url: getFigmaLink('chart'),
|
|
27
26
|
allowFullscreen: true
|
|
28
27
|
}
|
|
29
|
-
}
|
|
30
|
-
decorators: [withActions]
|
|
28
|
+
}
|
|
31
29
|
};
|
|
32
30
|
|
|
33
31
|
// https://statistikstadtzuerich.github.io/sszvis/#/pie-charts
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
6
|
-
import { fireEvent } from '
|
|
7
|
-
import { expect } from '@storybook/jest';
|
|
5
|
+
import { expect, fireEvent } from 'storybook/test';
|
|
8
6
|
import {
|
|
9
|
-
|
|
10
|
-
setAttributeAndWait,
|
|
7
|
+
expectCssVarColor,
|
|
11
8
|
expectIsVisible,
|
|
12
|
-
|
|
9
|
+
getComponentByTestId,
|
|
10
|
+
setAttributeAndWait
|
|
13
11
|
} from '../../../.storybook/utils/component-test-utils';
|
|
14
12
|
|
|
15
13
|
const COMPONENT_NAME = 'stzh-checkbox';
|
|
@@ -26,8 +24,8 @@ export default {
|
|
|
26
24
|
title: 'Components/Checkbox',
|
|
27
25
|
component: COMPONENT_NAME,
|
|
28
26
|
parameters: {
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
stzhActions: {
|
|
28
|
+
events: ['stzhChange', 'stzhFocus', 'stzhBlur', 'stzhClick']
|
|
31
29
|
},
|
|
32
30
|
docs: {
|
|
33
31
|
description: {
|
|
@@ -39,8 +37,7 @@ export default {
|
|
|
39
37
|
url: getFigmaLink('checkbox'),
|
|
40
38
|
allowFullscreen: true
|
|
41
39
|
}
|
|
42
|
-
}
|
|
43
|
-
decorators: [withActions]
|
|
40
|
+
}
|
|
44
41
|
};
|
|
45
42
|
|
|
46
43
|
export const Default = {
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
6
|
-
import {
|
|
7
|
-
import { expect } from '@storybook/jest';
|
|
5
|
+
import { expect } from 'storybook/test';
|
|
8
6
|
import {
|
|
9
7
|
expectIsVisible,
|
|
10
8
|
getComponentByTestId,
|
|
11
|
-
setAttributeAndWait
|
|
12
|
-
sleep
|
|
9
|
+
setAttributeAndWait
|
|
13
10
|
} from '../../../.storybook/utils/component-test-utils';
|
|
14
11
|
|
|
15
12
|
const COMPONENT_NAME = 'stzh-checkboxgroup';
|
|
@@ -30,8 +27,8 @@ export default {
|
|
|
30
27
|
title: 'Components/Checkboxgroup',
|
|
31
28
|
component: COMPONENT_NAME,
|
|
32
29
|
parameters: {
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
stzhActions: {
|
|
31
|
+
events: ['stzhChange', 'stzhClick', 'stzhFocus', 'stzhBlur']
|
|
35
32
|
},
|
|
36
33
|
docs: {
|
|
37
34
|
description: {
|
|
@@ -43,8 +40,7 @@ export default {
|
|
|
43
40
|
url: getFigmaLink('checkboxgroup'),
|
|
44
41
|
allowFullscreen: true
|
|
45
42
|
}
|
|
46
|
-
}
|
|
47
|
-
decorators: [withActions]
|
|
43
|
+
}
|
|
48
44
|
};
|
|
49
45
|
|
|
50
46
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -15,8 +14,8 @@ export default {
|
|
|
15
14
|
title: 'Components/Chip',
|
|
16
15
|
component: COMPONENT_NAME,
|
|
17
16
|
parameters: {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
stzhActions: {
|
|
18
|
+
events: ['stzhClick', 'stzhRemove', 'stzhFocus', 'stzhBlur']
|
|
20
19
|
},
|
|
21
20
|
docs: {
|
|
22
21
|
description: {
|
|
@@ -28,8 +27,7 @@ export default {
|
|
|
28
27
|
url: getFigmaLink('chip'),
|
|
29
28
|
allowFullscreen: true
|
|
30
29
|
}
|
|
31
|
-
}
|
|
32
|
-
decorators: [withActions]
|
|
30
|
+
}
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
export const Filter = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -29,8 +28,7 @@ export default {
|
|
|
29
28
|
url: getFigmaLink('chipgroup'),
|
|
30
29
|
allowFullscreen: true
|
|
31
30
|
}
|
|
32
|
-
}
|
|
33
|
-
decorators: [withActions]
|
|
31
|
+
}
|
|
34
32
|
};
|
|
35
33
|
|
|
36
34
|
export const Default = {
|
|
@@ -68,6 +68,9 @@ export class StzhChipselect {
|
|
|
68
68
|
}
|
|
69
69
|
else if (event.key === " " || event.key === "Enter") {
|
|
70
70
|
event.preventDefault();
|
|
71
|
+
if (activeOptionIndex < 0) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
71
74
|
if (this.multiple) {
|
|
72
75
|
if (this._data[activeOptionIndex].value === "" &&
|
|
73
76
|
this._value.length > 0 &&
|
|
@@ -81,7 +84,7 @@ export class StzhChipselect {
|
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
else {
|
|
84
|
-
this.value = this._data[activeOptionIndex].value;
|
|
87
|
+
this.value = this._data[activeOptionIndex].value;
|
|
85
88
|
}
|
|
86
89
|
this.stzhChange.emit({
|
|
87
90
|
component: "stzh-chipselect",
|
|
@@ -109,7 +112,7 @@ export class StzhChipselect {
|
|
|
109
112
|
this.disabled = false;
|
|
110
113
|
this.hideOptional = false;
|
|
111
114
|
this.a11yDescribedby = "";
|
|
112
|
-
this.activeFocusOptionIndex =
|
|
115
|
+
this.activeFocusOptionIndex = -1;
|
|
113
116
|
}
|
|
114
117
|
resetListener(event) {
|
|
115
118
|
if (event.target.contains(this.element)) {
|
|
@@ -201,6 +204,8 @@ export class StzhChipselect {
|
|
|
201
204
|
const descriptionUsed = !!this.description;
|
|
202
205
|
const descriptionLongUsed = !!this.descriptionLong;
|
|
203
206
|
const errorUsed = !!this.error;
|
|
207
|
+
const hasActive = this.activeFocusOptionIndex >= 0;
|
|
208
|
+
const activeId = hasActive ? `${this.id}-option-${this.activeFocusOptionIndex}` : undefined;
|
|
204
209
|
const classes = {
|
|
205
210
|
"stzh-chipselect": true,
|
|
206
211
|
"stzh-chipselect--has-description": descriptionUsed,
|
|
@@ -211,11 +216,11 @@ export class StzhChipselect {
|
|
|
211
216
|
"stzh-chipselect--is-required": this.required,
|
|
212
217
|
"stzh-chipselect--has-label-hidden": this.labelHidden,
|
|
213
218
|
};
|
|
214
|
-
return (h(Host, { key: '
|
|
219
|
+
return (h(Host, { key: '5794c7d0e50201f7689bbc19717a02824f9a497d', "is-invalid": this.invalid || errorUsed }, h("div", { key: '769c9167d5548992b626d31faf43a0c272a0f6df', class: classes }, this.multiple ? (h(Fragment, null, this._value.map(value => (h("input", { type: "hidden", name: this.name, value: value }))))) : (h("input", { type: "hidden", name: this.name, value: this.value })), h("label", { key: 'b76e3e7c99f4a5c401d76cfbeab4281480ce48bc', class: "stzh-chipselect__label", htmlFor: this.id }, this.label ? this.label : h("slot", null), !this.hideOptional && (h("span", { key: '2c6ca19b9f7b2dcc8284d0c9e469c4caf6f8e11f', class: "stzh-chipselect__marker" }, h("span", { key: '22f350affc68c12f36caf592e41b74e58d822962', class: "stzh-chipselect__marker-symbol", "aria-hidden": "true" }, this.required
|
|
215
220
|
? this.localization.$globals.requiredFieldMarker
|
|
216
|
-
: this.localization.$globals.optionalFieldMarker), h("span", { key: '
|
|
221
|
+
: this.localization.$globals.optionalFieldMarker), h("span", { key: '7a1e903e7c27dce25bcee7b43cce6f646f4ee5aa', class: "stzh-chipselect__marker-text" }, this.required
|
|
217
222
|
? this.localization.$globals.requiredFieldText
|
|
218
|
-
: this.localization.$globals.optionalFieldText)))), this._data.length > 0 && (h(Fragment, { key: '
|
|
223
|
+
: this.localization.$globals.optionalFieldText)))), this._data.length > 0 && (h(Fragment, { key: '1f64a0b097e78a5c9e99fb891c50383c5e4a5f9e' }, h("div", { key: 'e073e45633cf904a6b02058d56d188b3c01d9d15', id: this.id, class: "stzh-chipselect__chips", role: "listbox", tabindex: "0", "aria-multiselectable": this.multiple ? "true" : "false", "aria-activedescendant": activeId, "aria-describedby": `${this.id}-description ${this.a11yDescribedby}`, onKeyDown: this.handleKeydown }, this._data.map((data, index) => (h("stzh-chip", { role: "option", class: {
|
|
219
224
|
"stzh-chipselect__chip": true,
|
|
220
225
|
"is-focused": this.activeFocusOptionIndex === index,
|
|
221
226
|
}, label: data.label, counter: data.counter, icon: data.icon, type: data.type, inverted: data.inverted, variant: data.variant, size: data.size || "small", disabled: this.disabled || data.disabled, active: this._value.includes(data.value) ||
|
|
@@ -228,7 +233,7 @@ export class StzhChipselect {
|
|
|
228
233
|
this.multiple &&
|
|
229
234
|
(this._value.length === 0 || (this._value.length === 1 && this._value[0] === "")))
|
|
230
235
|
? "true"
|
|
231
|
-
: "false", id: `${this.id}-option-${index}`, a11yTabindex: "-1", onClick: () => this.handleChipClick(data, index) })))), h(StzhInputDescription, { key: '
|
|
236
|
+
: "false", id: `${this.id}-option-${index}`, a11yTabindex: "-1", onClick: () => this.handleChipClick(data, index) })))), h(StzhInputDescription, { key: '4f01198867cfdc306856d1e12dea624080276eea', classPrefix: "stzh-chipselect", id: `${this.id}-description`, error: this._error, description: this.description, descriptionLong: this.descriptionLong, descriptionLongTitle: this.descriptionLongTitle, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel }))))));
|
|
232
237
|
}
|
|
233
238
|
static get is() { return "stzh-chipselect"; }
|
|
234
239
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stzh-chipselect.js","sourceRoot":"","sources":["../../../../src/components/stzh-chipselect/stzh-chipselect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAQvH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAK5E,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAE1B;;;;;;GAMG;AAMH,MAAM,OAAO,cAAc;;QAMjB,UAAK,GAAyB,EAAE,CAAC;QAiBjC,WAAM,GAAa,EAAE,CAAC;QAwHtB,gBAAW,GAAG,KAAK,IAAI,EAAE;YAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;YAE/B,yBAAyB;YACzB,kCAAkC;YAClC,sBAAsB;YACtB,MAAM;QACR,CAAC,CAAC;QAEM,oBAAe,GAAG,KAAK,EAAE,IAAwB,EAAE,KAAa,EAAE,EAAE;YAC1E,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,IAAI,CAAC,KAAK,KAAK,EAA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n\nimport {\n StzhChipselectItem,\n StzhChipselectChangeEvent,\n // StzhDropdownChangeEvent\n} from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\n// import { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nlet chipselectCounter = 0;\n\n/**\n * @slot - Slot for `stzh-checkbox` elements\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-chipselect\",\n styleUrl: \"stzh-chipselect.scss\",\n scoped: true,\n})\nexport class StzhChipselect {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** The list of chips */\n @Prop() data: string | StzhChipselectItem[] = [];\n private _data: StzhChipselectItem[] = [];\n // private _dataDropdown: any[] = [];\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Multiple */\n @Prop({ mutable: true }) multiple: boolean = false;\n\n /** Value */\n @Prop({ mutable: true }) value: string | string[] = \"\";\n private _value: string[] = [];\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string | 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 /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Whether all chips are disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n @State() activeFocusOptionIndex: number = 0;\n\n @Element() element: HTMLStzhChipselectElement;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhChipselectChangeEvent>;\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(\"value\")\n valueWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n try {\n const parsedValue = JSON.parse(newValue); // since parsing a number like string (i.e. \"1\") will return a number and parsing a boolean like string (i.e. \"true\") will return a boolean we need to check if the parsed value is indeed an array.\n if (Array.isArray(parsedValue)) {\n this._value = parsedValue;\n } else {\n this._value = newValue ? [newValue] : [];\n }\n } catch (ex) {\n this._value = newValue ? [newValue] : [];\n }\n } else {\n this._value = newValue ? newValue : [];\n }\n }\n\n @Watch(\"data\")\n dataWatcher(newValue: StzhChipselectItem[] | string) {\n if (typeof newValue === \"string\") {\n this._data = JSON.parse(newValue);\n } else {\n this._data = newValue;\n }\n\n this._data.map(dataEntry => {\n if (typeof dataEntry.value !== \"string\") {\n throw new TypeError(\n `${dataEntry.value} is not a string. The data prop only accepts arrays (or stringified arrays), where the value property is a string. Consult the StzhChipselectItem type definition for more information.`,\n );\n }\n });\n // this._dataDropdown = this._data.map((data) => {\n // return {\n // text: data.counter\n // ? `${data.label} (${data.counter})`\n // : data.label,\n // value: data.value\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 private id: string;\n private renderPromiseResolve: (value?: unknown) => void;\n\n private waitForNextRender() {\n return new Promise(resolve => (this.renderPromiseResolve = resolve));\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n\n // this.stzhChange.emit({\n // component: \"stzh-chipselect\",\n // value: this.value\n // });\n };\n\n private handleChipClick = async (data: StzhChipselectItem, index: number) => {\n if (this.multiple) {\n if (data.value === \"\" && this._value.length > 0 && !(this._value.length === 1 && this._value[0] === \"\")) {\n this.value = [];\n } else if (data.value !== \"\") {\n this.value = this._value.includes(data.value)\n ? this._value.filter(value => value !== data.value)\n : [...this._value, data.value];\n }\n } else {\n this.value = data.value;\n }\n\n this.activeFocusOptionIndex = index;\n\n await this.waitForNextRender();\n\n this.stzhChange.emit({\n component: \"stzh-chipselect\",\n value: this.multiple ? this._value : this._value[0],\n });\n };\n\n // private handleDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n // this.value = Array.isArray(event.detail.value) ? event.detail.value[0] : event.detail.value;\n\n // this.activeFocusOptionIndex = this._data.findIndex(data => {\n // return data.value === this.value;\n // });\n\n // await this.waitForNextRender();\n\n // this.stzhChange.emit({\n // component: \"stzh-chipselect\",\n // value: this.value\n // })\n // }\n\n private handleKeydown = (event: KeyboardEvent) => {\n let newActiveIndex: number = null;\n const activeOptionIndex = this.activeFocusOptionIndex;\n\n if (event.key === \"ArrowUp\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n\n if (activeOptionIndex > 0) {\n newActiveIndex = activeOptionIndex - 1;\n }\n } else if (event.key === \"ArrowDown\" || event.key === \"ArrowRight\") {\n event.preventDefault();\n\n if (activeOptionIndex < this._data.length - 1) {\n newActiveIndex = activeOptionIndex + 1;\n }\n } else if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n if (this.multiple) {\n if (\n this._data[activeOptionIndex].value === \"\" &&\n this._value.length > 0 &&\n !(this._value.length === 1 && this._value[0] === \"\")\n ) {\n this.value = [];\n } else if (this._data[activeOptionIndex].value !== \"\") {\n this.value = this._value.includes(this._data[activeOptionIndex].value)\n ? this._value.filter(value => value !== this._data[activeOptionIndex].value)\n : [...this._value, this._data[activeOptionIndex].value];\n }\n } else {\n this.value = this._data[activeOptionIndex].value; //HERE\n }\n this.stzhChange.emit({\n component: \"stzh-chipselect\",\n value: this.value,\n });\n }\n\n if (newActiveIndex !== null) {\n this.activeFocusOptionIndex = newActiveIndex;\n }\n };\n\n componentDidRender() {\n if (this.renderPromiseResolve) {\n this.renderPromiseResolve();\n }\n }\n\n async componentWillLoad() {\n this.id = `stzh-chipselect-${chipselectCounter++}`;\n\n this.dataWatcher(this.data);\n this.errorWatcher(this.error);\n this.valueWatcher(this.value);\n\n this.defaultValue = this.defaultValue || this.value;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"chipselect\");\n }\n }\n\n render() {\n const descriptionUsed = !!this.description;\n const descriptionLongUsed = !!this.descriptionLong;\n const errorUsed = !!this.error;\n\n const classes = {\n \"stzh-chipselect\": true,\n \"stzh-chipselect--has-description\": descriptionUsed,\n \"stzh-chipselect--has-description-long\": descriptionLongUsed,\n \"stzh-chipselect--has-error\": errorUsed,\n \"stzh-chipselect--is-invalid\": this.invalid || errorUsed,\n \"stzh-chipselect--is-disabled\": this.disabled,\n \"stzh-chipselect--is-required\": this.required,\n \"stzh-chipselect--has-label-hidden\": this.labelHidden,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed}>\n <div class={classes}>\n {this.multiple ? (\n <Fragment>\n {this._value.map(value => (\n <input type=\"hidden\" name={this.name} value={value} />\n ))}\n </Fragment>\n ) : (\n <input type=\"hidden\" name={this.name} value={this.value} />\n )}\n\n <label class=\"stzh-chipselect__label\" htmlFor={this.id}>\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional && (\n <span class=\"stzh-chipselect__marker\">\n <span class=\"stzh-chipselect__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-chipselect__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n </label>\n\n {this._data.length > 0 && (\n <Fragment>\n <div\n id={this.id}\n class=\"stzh-chipselect__chips\"\n role=\"listbox\"\n tabindex=\"0\"\n aria-multiselectable={this.multiple ? \"true\" : \"false\"}\n aria-activedescendant={`${this.id}-option-${this.activeFocusOptionIndex}`}\n aria-describedby={`${this.id}-description ${this.a11yDescribedby}`}\n onKeyDown={this.handleKeydown}\n >\n {this._data.map((data, index) => (\n <stzh-chip\n role=\"option\"\n class={{\n \"stzh-chipselect__chip\": true,\n \"is-focused\": this.activeFocusOptionIndex === index,\n }}\n label={data.label}\n counter={data.counter}\n icon={data.icon}\n type={data.type}\n inverted={data.inverted}\n variant={data.variant}\n size={data.size || \"small\"}\n disabled={this.disabled || data.disabled}\n active={\n this._value.includes(data.value) ||\n (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === \"\")) ||\n (!data.value &&\n this.multiple &&\n (this._value.length === 0 || (this._value.length === 1 && this._value[0] === \"\")))\n }\n aria-selected={\n this._value.includes(data.value) ||\n (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === \"\")) ||\n (!data.value &&\n this.multiple &&\n (this._value.length === 0 || (this._value.length === 1 && this._value[0] === \"\")))\n ? \"true\"\n : \"false\"\n }\n id={`${this.id}-option-${index}`}\n a11yTabindex=\"-1\"\n onClick={() => this.handleChipClick(data, index)}\n ></stzh-chip>\n ))}\n </div>\n\n <StzhInputDescription\n classPrefix=\"stzh-chipselect\"\n id={`${this.id}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n\n {/* <stzh-dropdown\n class=\"stzh-chipselect__dropdown\"\n multiple={this.multiple}\n disabled={this.disabled}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n required={this.required}\n invalid={this.invalid}\n items={[this.value]}\n label={this.label}\n labelHidden={this.labelHidden}\n options={this._dataDropdown}\n hideOptional={this.hideOptional}\n onStzhChange={this.handleDropdownChange}\n ></stzh-dropdown> */}\n </Fragment>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"stzh-chipselect.js","sourceRoot":"","sources":["../../../../src/components/stzh-chipselect/stzh-chipselect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAQvH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAK5E,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAE1B;;;;;;GAMG;AAMH,MAAM,OAAO,cAAc;;QAMjB,UAAK,GAAyB,EAAE,CAAC;QAiBjC,WAAM,GAAa,EAAE,CAAC;QAwHtB,gBAAW,GAAG,KAAK,IAAI,EAAE;YAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;YAE/B,yBAAyB;YACzB,kCAAkC;YAClC,sBAAsB;YACtB,MAAM;QACR,CAAC,CAAC;QAEM,oBAAe,GAAG,KAAK,EAAE,IAAwB,EAAE,KAAa,EAAE,EAAE;YAC1E,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;oBACxG,IAAI,C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en } from \"@stencil/core\";\n\nimport {\n StzhChipselectItem,\n StzhChipselectChangeEvent,\n // StzhDropdownChangeEvent\n} from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\n// import { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nlet chipselectCounter = 0;\n\n/**\n * @slot - Slot for `stzh-checkbox` elements\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-chipselect\",\n styleUrl: \"stzh-chipselect.scss\",\n scoped: true,\n})\nexport class StzhChipselect {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** The list of chips */\n @Prop() data: string | StzhChipselectItem[] = [];\n private _data: StzhChipselectItem[] = [];\n // private _dataDropdown: any[] = [];\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Multiple */\n @Prop({ mutable: true }) multiple: boolean = false;\n\n /** Value */\n @Prop({ mutable: true }) value: string | string[] = \"\";\n private _value: string[] = [];\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string | 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 /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Whether all chips are disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n @State() activeFocusOptionIndex: number = -1;\n\n @Element() element: HTMLStzhChipselectElement;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhChipselectChangeEvent>;\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(\"value\")\n valueWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n try {\n const parsedValue = JSON.parse(newValue); // since parsing a number like string (i.e. \"1\") will return a number and parsing a boolean like string (i.e. \"true\") will return a boolean we need to check if the parsed value is indeed an array.\n if (Array.isArray(parsedValue)) {\n this._value = parsedValue;\n } else {\n this._value = newValue ? [newValue] : [];\n }\n } catch (ex) {\n this._value = newValue ? [newValue] : [];\n }\n } else {\n this._value = newValue ? newValue : [];\n }\n }\n\n @Watch(\"data\")\n dataWatcher(newValue: StzhChipselectItem[] | string) {\n if (typeof newValue === \"string\") {\n this._data = JSON.parse(newValue);\n } else {\n this._data = newValue;\n }\n\n this._data.map(dataEntry => {\n if (typeof dataEntry.value !== \"string\") {\n throw new TypeError(\n `${dataEntry.value} is not a string. The data prop only accepts arrays (or stringified arrays), where the value property is a string. Consult the StzhChipselectItem type definition for more information.`,\n );\n }\n });\n // this._dataDropdown = this._data.map((data) => {\n // return {\n // text: data.counter\n // ? `${data.label} (${data.counter})`\n // : data.label,\n // value: data.value\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 private id: string;\n private renderPromiseResolve: (value?: unknown) => void;\n\n private waitForNextRender() {\n return new Promise(resolve => (this.renderPromiseResolve = resolve));\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n\n // this.stzhChange.emit({\n // component: \"stzh-chipselect\",\n // value: this.value\n // });\n };\n\n private handleChipClick = async (data: StzhChipselectItem, index: number) => {\n if (this.multiple) {\n if (data.value === \"\" && this._value.length > 0 && !(this._value.length === 1 && this._value[0] === \"\")) {\n this.value = [];\n } else if (data.value !== \"\") {\n this.value = this._value.includes(data.value)\n ? this._value.filter(value => value !== data.value)\n : [...this._value, data.value];\n }\n } else {\n this.value = data.value;\n }\n\n this.activeFocusOptionIndex = index;\n\n await this.waitForNextRender();\n\n this.stzhChange.emit({\n component: \"stzh-chipselect\",\n value: this.multiple ? this._value : this._value[0],\n });\n };\n\n // private handleDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n // this.value = Array.isArray(event.detail.value) ? event.detail.value[0] : event.detail.value;\n\n // this.activeFocusOptionIndex = this._data.findIndex(data => {\n // return data.value === this.value;\n // });\n\n // await this.waitForNextRender();\n\n // this.stzhChange.emit({\n // component: \"stzh-chipselect\",\n // value: this.value\n // })\n // }\n\n private handleKeydown = (event: KeyboardEvent) => {\n let newActiveIndex: number = null;\n const activeOptionIndex = this.activeFocusOptionIndex;\n\n if (event.key === \"ArrowUp\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n\n if (activeOptionIndex > 0) {\n newActiveIndex = activeOptionIndex - 1;\n }\n } else if (event.key === \"ArrowDown\" || event.key === \"ArrowRight\") {\n event.preventDefault();\n\n if (activeOptionIndex < this._data.length - 1) {\n newActiveIndex = activeOptionIndex + 1;\n }\n } else if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n \n if (activeOptionIndex < 0) {\n return;\n }\n\n if (this.multiple) {\n if (\n this._data[activeOptionIndex].value === \"\" &&\n this._value.length > 0 &&\n !(this._value.length === 1 && this._value[0] === \"\")\n ) {\n this.value = [];\n } else if (this._data[activeOptionIndex].value !== \"\") {\n this.value = this._value.includes(this._data[activeOptionIndex].value)\n ? this._value.filter(value => value !== this._data[activeOptionIndex].value)\n : [...this._value, this._data[activeOptionIndex].value];\n }\n } else {\n this.value = this._data[activeOptionIndex].value;\n }\n this.stzhChange.emit({\n component: \"stzh-chipselect\",\n value: this.value,\n });\n }\n\n if (newActiveIndex !== null) {\n this.activeFocusOptionIndex = newActiveIndex;\n }\n };\n\n componentDidRender() {\n if (this.renderPromiseResolve) {\n this.renderPromiseResolve();\n }\n }\n\n async componentWillLoad() {\n this.id = `stzh-chipselect-${chipselectCounter++}`;\n\n this.dataWatcher(this.data);\n this.errorWatcher(this.error);\n this.valueWatcher(this.value);\n\n this.defaultValue = this.defaultValue || this.value;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"chipselect\");\n }\n }\n\n render() {\n const descriptionUsed = !!this.description;\n const descriptionLongUsed = !!this.descriptionLong;\n const errorUsed = !!this.error;\n\n const hasActive = this.activeFocusOptionIndex >= 0;\n const activeId = hasActive ? `${this.id}-option-${this.activeFocusOptionIndex}` : undefined;\n\n const classes = {\n \"stzh-chipselect\": true,\n \"stzh-chipselect--has-description\": descriptionUsed,\n \"stzh-chipselect--has-description-long\": descriptionLongUsed,\n \"stzh-chipselect--has-error\": errorUsed,\n \"stzh-chipselect--is-invalid\": this.invalid || errorUsed,\n \"stzh-chipselect--is-disabled\": this.disabled,\n \"stzh-chipselect--is-required\": this.required,\n \"stzh-chipselect--has-label-hidden\": this.labelHidden,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed}>\n <div class={classes}>\n {this.multiple ? (\n <Fragment>\n {this._value.map(value => (\n <input type=\"hidden\" name={this.name} value={value} />\n ))}\n </Fragment>\n ) : (\n <input type=\"hidden\" name={this.name} value={this.value} />\n )}\n\n <label class=\"stzh-chipselect__label\" htmlFor={this.id}>\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional && (\n <span class=\"stzh-chipselect__marker\">\n <span class=\"stzh-chipselect__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-chipselect__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n </label>\n\n {this._data.length > 0 && (\n <Fragment>\n <div\n id={this.id}\n class=\"stzh-chipselect__chips\"\n role=\"listbox\"\n tabindex=\"0\"\n aria-multiselectable={this.multiple ? \"true\" : \"false\"}\n aria-activedescendant={activeId}\n aria-describedby={`${this.id}-description ${this.a11yDescribedby}`}\n onKeyDown={this.handleKeydown}\n >\n {this._data.map((data, index) => (\n <stzh-chip\n role=\"option\"\n class={{\n \"stzh-chipselect__chip\": true,\n \"is-focused\": this.activeFocusOptionIndex === index,\n }}\n label={data.label}\n counter={data.counter}\n icon={data.icon}\n type={data.type}\n inverted={data.inverted}\n variant={data.variant}\n size={data.size || \"small\"}\n disabled={this.disabled || data.disabled}\n active={\n this._value.includes(data.value) ||\n (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === \"\")) ||\n (!data.value &&\n this.multiple &&\n (this._value.length === 0 || (this._value.length === 1 && this._value[0] === \"\")))\n }\n aria-selected={\n this._value.includes(data.value) ||\n (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === \"\")) ||\n (!data.value &&\n this.multiple &&\n (this._value.length === 0 || (this._value.length === 1 && this._value[0] === \"\")))\n ? \"true\"\n : \"false\"\n }\n id={`${this.id}-option-${index}`}\n a11yTabindex=\"-1\"\n onClick={() => this.handleChipClick(data, index)}\n ></stzh-chip>\n ))}\n </div>\n\n <StzhInputDescription\n classPrefix=\"stzh-chipselect\"\n id={`${this.id}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n\n {/* <stzh-dropdown\n class=\"stzh-chipselect__dropdown\"\n multiple={this.multiple}\n disabled={this.disabled}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n required={this.required}\n invalid={this.invalid}\n items={[this.value]}\n label={this.label}\n labelHidden={this.labelHidden}\n options={this._dataDropdown}\n hideOptional={this.hideOptional}\n onStzhChange={this.handleDropdownChange}\n ></stzh-dropdown> */}\n </Fragment>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
6
5
|
import { expectIsVisible, getComponentByTestId } from '../../../.storybook/utils/component-test-utils';
|
|
7
|
-
import { expect } from '
|
|
6
|
+
import { expect } from 'storybook/test';
|
|
8
7
|
|
|
9
8
|
const COMPONENT_NAME = 'stzh-chipselect';
|
|
10
9
|
const story = createComponentStory(COMPONENT_NAME);
|
|
@@ -20,8 +19,8 @@ export default {
|
|
|
20
19
|
title: 'Components/Chipselect',
|
|
21
20
|
component: COMPONENT_NAME,
|
|
22
21
|
parameters: {
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
stzhActions: {
|
|
23
|
+
events: ['stzhChange', 'stzhClick']
|
|
25
24
|
},
|
|
26
25
|
docs: {
|
|
27
26
|
description: {
|
|
@@ -33,8 +32,7 @@ export default {
|
|
|
33
32
|
url: getFigmaLink('chipselect'),
|
|
34
33
|
allowFullscreen: true
|
|
35
34
|
}
|
|
36
|
-
}
|
|
37
|
-
decorators: [withActions]
|
|
35
|
+
}
|
|
38
36
|
};
|
|
39
37
|
|
|
40
38
|
const DATA = [
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
import { fullwidthCentered } from '../../utils/decorators';
|
|
5
4
|
|
|
@@ -20,8 +19,8 @@ export default {
|
|
|
20
19
|
title: 'Components/Clamp',
|
|
21
20
|
component: COMPONENT_NAME,
|
|
22
21
|
parameters: {
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
stzhActions: {
|
|
23
|
+
events: ['stzhClamp', 'stzhExpand']
|
|
25
24
|
},
|
|
26
25
|
docs: {
|
|
27
26
|
description: {
|
|
@@ -34,7 +33,7 @@ export default {
|
|
|
34
33
|
allowFullscreen: true
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
decorators: [
|
|
36
|
+
decorators: [fullwidthCentered]
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -18,9 +17,6 @@ export default {
|
|
|
18
17
|
component: COMPONENT_NAME,
|
|
19
18
|
parameters: {
|
|
20
19
|
layout: 'fullscreen',
|
|
21
|
-
actions: {
|
|
22
|
-
handles: []
|
|
23
|
-
},
|
|
24
20
|
docs: {
|
|
25
21
|
description: {
|
|
26
22
|
component: readme
|
|
@@ -31,8 +27,7 @@ export default {
|
|
|
31
27
|
url: getFigmaLink('company-logo'),
|
|
32
28
|
allowFullscreen: true
|
|
33
29
|
}
|
|
34
|
-
}
|
|
35
|
-
decorators: [withActions]
|
|
30
|
+
}
|
|
36
31
|
};
|
|
37
32
|
|
|
38
33
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -28,8 +27,7 @@ export default {
|
|
|
28
27
|
url: getFigmaLink('container'),
|
|
29
28
|
allowFullscreen: true
|
|
30
29
|
}
|
|
31
|
-
}
|
|
32
|
-
decorators: [withActions]
|
|
30
|
+
}
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -25,9 +24,6 @@ export default {
|
|
|
25
24
|
component: COMPONENT_NAME,
|
|
26
25
|
parameters: {
|
|
27
26
|
layout: 'fullscreen',
|
|
28
|
-
actions: {
|
|
29
|
-
handles: []
|
|
30
|
-
},
|
|
31
27
|
docs: {
|
|
32
28
|
description: {
|
|
33
29
|
component: readme
|
|
@@ -38,8 +34,7 @@ export default {
|
|
|
38
34
|
url: getFigmaLink('content'),
|
|
39
35
|
allowFullscreen: true
|
|
40
36
|
}
|
|
41
|
-
}
|
|
42
|
-
decorators: [withActions]
|
|
37
|
+
}
|
|
43
38
|
};
|
|
44
39
|
|
|
45
40
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
const COMPONENT_NAME = 'stzh-cspace';
|
|
@@ -22,16 +21,12 @@ export default {
|
|
|
22
21
|
title: 'Components/Cspace',
|
|
23
22
|
component: COMPONENT_NAME,
|
|
24
23
|
parameters: {
|
|
25
|
-
actions: {
|
|
26
|
-
handles: []
|
|
27
|
-
},
|
|
28
24
|
docs: {
|
|
29
25
|
description: {
|
|
30
26
|
component: readme
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
|
-
}
|
|
34
|
-
decorators: [withActions]
|
|
29
|
+
}
|
|
35
30
|
};
|
|
36
31
|
|
|
37
32
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -88,8 +87,8 @@ export default {
|
|
|
88
87
|
title: 'Components/Cta',
|
|
89
88
|
component: COMPONENT_NAME,
|
|
90
89
|
parameters: {
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
stzhActions: {
|
|
91
|
+
events: ['stzhClick', 'click', 'stzhFocus', 'stzhBlur']
|
|
93
92
|
},
|
|
94
93
|
layout: 'fullscreen',
|
|
95
94
|
docs: {
|
|
@@ -102,8 +101,7 @@ export default {
|
|
|
102
101
|
url: getFigmaLink('cta'),
|
|
103
102
|
allowFullscreen: true
|
|
104
103
|
}
|
|
105
|
-
}
|
|
106
|
-
decorators: [withActions]
|
|
104
|
+
}
|
|
107
105
|
};
|
|
108
106
|
|
|
109
107
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -84,8 +83,8 @@ export default {
|
|
|
84
83
|
component: COMPONENT_NAME,
|
|
85
84
|
parameters: {
|
|
86
85
|
layout: 'padded',
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
stzhActions: {
|
|
87
|
+
events: ['stzhDirectionChange', 'stzhVariantChange', 'stzhBigLabelChange']
|
|
89
88
|
},
|
|
90
89
|
docs: {
|
|
91
90
|
description: {
|
|
@@ -97,8 +96,7 @@ export default {
|
|
|
97
96
|
url: getFigmaLink('datalist'),
|
|
98
97
|
allowFullscreen: true
|
|
99
98
|
}
|
|
100
|
-
}
|
|
101
|
-
decorators: [withActions]
|
|
99
|
+
}
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
export const Default = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponentStory } from '../../utils/story-utils';
|
|
2
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
2
|
import readme from './readme.md?raw';
|
|
4
3
|
|
|
5
4
|
import { getFigmaLink } from '../../../figma';
|
|
@@ -18,8 +17,8 @@ export default {
|
|
|
18
17
|
component: COMPONENT_NAME,
|
|
19
18
|
parameters: {
|
|
20
19
|
layout: 'padded',
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
stzhActions: {
|
|
21
|
+
events: ['stzhItemActionClick', 'stzhClick', 'stzhFocus', 'stzhBlur']
|
|
23
22
|
},
|
|
24
23
|
docs: {
|
|
25
24
|
description: {
|
|
@@ -31,8 +30,7 @@ export default {
|
|
|
31
30
|
url: getFigmaLink('datalist-item'),
|
|
32
31
|
allowFullscreen: true
|
|
33
32
|
}
|
|
34
|
-
}
|
|
35
|
-
decorators: [withActions]
|
|
33
|
+
}
|
|
36
34
|
};
|
|
37
35
|
|
|
38
36
|
export const Default = {
|