@oiz/stzh-components 4.3.0 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-8ce8837c.js → app-globals-e1e74ca4.js} +2 -2
- package/dist/cjs/{app-globals-8ce8837c.js.map → app-globals-e1e74ca4.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 +6 -6
- package/dist/cjs/stzh-audio.cjs.entry.js +3 -3
- package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-navigation.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card.cjs.entry.js +9 -24
- package/dist/cjs/stzh-card.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 +5 -6
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-disturber.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-homepage-search.cjs.entry.js +1 -1
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +2 -2
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/stzh-pi-menu.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-quote.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-poicard.cjs.entry.js +2 -2
- package/dist/cjs/stzh-poilist.cjs.entry.js +2 -2
- 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-vbz-connection-finder.cjs.entry.js +8 -1
- package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/en.json +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/CMS/VBZ/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js +26 -1
- package/dist/collection/components/CMS/VBZ/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js.map +1 -1
- package/dist/collection/components/CMS/stzh-card-superteaser/stzh-card-superteaser.js +1 -1
- package/dist/collection/components/CMS/stzh-contact/stzh-contact.js +5 -6
- package/dist/collection/components/CMS/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/CMS/stzh-contact-cv/stzh-contact-cv.js +1 -1
- package/dist/collection/components/CMS/stzh-disturber/stzh-disturber.js +2 -2
- package/dist/collection/components/CMS/stzh-editor/stzh-editor.js +1 -1
- package/dist/collection/components/CMS/stzh-eventdata/stzh-eventdata.js +1 -1
- package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.js +1 -1
- package/dist/collection/components/CMS/stzh-feedreader/stzh-feedreader.js +1 -1
- package/dist/collection/components/CMS/stzh-feedreader-item/stzh-feedreader-item.js +1 -1
- package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.js +3 -3
- package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.js +1 -1
- package/dist/collection/components/CMS/stzh-homepage-search/stzh-homepage-search.js +1 -1
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +2 -2
- package/dist/collection/components/CMS/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +3 -3
- package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.js +1 -1
- package/dist/collection/components/CMS/stzh-pagebottom/stzh-pagebottom.js +1 -1
- package/dist/collection/components/CMS/stzh-pagecontent/stzh-pagecontent.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.js +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle-hero/stzh-pagetitle-hero.js +2 -2
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.js +2 -2
- package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.js +2 -2
- package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-quote/stzh-pi-quote.js +1 -1
- package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.js +1 -1
- package/dist/collection/components/CMS/stzh-poicard/stzh-poicard.js +2 -2
- package/dist/collection/components/CMS/stzh-poilist/stzh-poilist.js +2 -2
- package/dist/collection/components/CMS/stzh-print/stzh-print.js +1 -1
- package/dist/collection/components/CMS/stzh-search/stzh-search.js +2 -2
- package/dist/collection/components/CMS/stzh-sitemap/stzh-sitemap.js +1 -1
- package/dist/collection/components/CMS/stzh-socialmediastream/stzh-socialmediastream.js +1 -1
- package/dist/collection/components/CMS/stzh-socialmediastream-item/stzh-socialmediastream-item.js +1 -1
- package/dist/collection/components/CMS/stzh-textandimage/stzh-textandimage.js +1 -1
- package/dist/collection/components/CMS/stzh-twocolumns/stzh-twocolumns.js +1 -1
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +1 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
- package/dist/collection/components/stzh-actions/stzh-actions.js +1 -1
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +5 -5
- package/dist/collection/components/stzh-amount/stzh-amount.js +1 -1
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +1 -1
- package/dist/collection/components/stzh-app-nav/stzh-app-nav.js +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +6 -6
- package/dist/collection/components/stzh-audio/stzh-audio.js +3 -3
- package/dist/collection/components/stzh-badge/stzh-badge.js +1 -1
- package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.js +1 -1
- package/dist/collection/components/stzh-button/stzh-button.js +1 -1
- package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.js +1 -1
- package/dist/collection/components/stzh-card/stzh-card.e2e.js +1 -0
- package/dist/collection/components/stzh-card/stzh-card.e2e.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.js +11 -26
- package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.stories.js +148 -12
- package/dist/collection/components/{CMS/stzh-card-navigation → stzh-card-navigation}/stzh-card-navigation.e2e.js +2 -2
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js.map +1 -0
- package/dist/collection/components/{CMS/stzh-card-navigation → stzh-card-navigation}/stzh-card-navigation.js +3 -3
- package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.js.map +1 -0
- package/dist/collection/components/{CMS/stzh-card-navigation → stzh-card-navigation}/stzh-card-navigation.stories.js +3 -3
- package/dist/collection/components/{CMS/stzh-card-searchresult → stzh-card-searchresult}/stzh-card-searchresult.e2e.js +2 -2
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.e2e.js.map +1 -0
- package/dist/collection/components/{CMS/stzh-card-searchresult → stzh-card-searchresult}/stzh-card-searchresult.js +7 -7
- package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js.map +1 -0
- package/dist/collection/components/{CMS/stzh-card-searchresult → stzh-card-searchresult}/stzh-card-searchresult.stories.js +3 -3
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +1 -1
- package/dist/collection/components/stzh-datatable/stzh-datatable.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-02dde838.js → p-0315f0e6.js} +3 -3
- package/dist/components/{p-02dde838.js.map → p-0315f0e6.js.map} +1 -1
- package/dist/components/{p-022b1add.js → p-0bed6703.js} +3 -3
- package/dist/components/{p-022b1add.js.map → p-0bed6703.js.map} +1 -1
- package/dist/components/{p-75de2b52.js → p-12654708.js} +5 -5
- package/dist/components/{p-75de2b52.js.map → p-12654708.js.map} +1 -1
- package/dist/components/{p-6eb9fbaf.js → p-12c55d67.js} +3 -3
- package/dist/components/{p-6eb9fbaf.js.map → p-12c55d67.js.map} +1 -1
- package/dist/components/{p-60bfdfcf.js → p-1dc83d62.js} +2 -2
- package/dist/components/{p-60bfdfcf.js.map → p-1dc83d62.js.map} +1 -1
- package/dist/components/{p-78ff471a.js → p-21e55e49.js} +3 -3
- package/dist/components/{p-78ff471a.js.map → p-21e55e49.js.map} +1 -1
- package/dist/components/{p-61e8a4c8.js → p-26475e68.js} +2 -2
- package/dist/components/{p-61e8a4c8.js.map → p-26475e68.js.map} +1 -1
- package/dist/components/{p-2e58848d.js → p-318eb8ce.js} +7 -7
- package/dist/components/{p-2e58848d.js.map → p-318eb8ce.js.map} +1 -1
- package/dist/components/{p-bc35e5a1.js → p-3be733b1.js} +4 -4
- package/dist/components/{p-bc35e5a1.js.map → p-3be733b1.js.map} +1 -1
- package/dist/components/{p-fc1aafb5.js → p-3c92a168.js} +2 -2
- package/dist/components/{p-fc1aafb5.js.map → p-3c92a168.js.map} +1 -1
- package/dist/components/{p-ae438bdc.js → p-46b3c290.js} +3 -3
- package/dist/components/{p-ae438bdc.js.map → p-46b3c290.js.map} +1 -1
- package/dist/components/{p-7733b8ca.js → p-54e44cdb.js} +4 -4
- package/dist/components/{p-7733b8ca.js.map → p-54e44cdb.js.map} +1 -1
- package/dist/components/{p-ec047685.js → p-5d6829ef.js} +6 -6
- package/dist/components/{p-ec047685.js.map → p-5d6829ef.js.map} +1 -1
- package/dist/components/{p-ffec300d.js → p-5e30852c.js} +3 -3
- package/dist/components/{p-ffec300d.js.map → p-5e30852c.js.map} +1 -1
- package/dist/components/{p-fb02e9f7.js → p-652ae542.js} +2 -2
- package/dist/components/{p-fb02e9f7.js.map → p-652ae542.js.map} +1 -1
- package/dist/components/{p-3ec7da5f.js → p-65d498b6.js} +3 -3
- package/dist/components/{p-3ec7da5f.js.map → p-65d498b6.js.map} +1 -1
- package/dist/components/{p-b9b2eb1b.js → p-80a893df.js} +2 -2
- package/dist/components/{p-b9b2eb1b.js.map → p-80a893df.js.map} +1 -1
- package/dist/components/{p-fbdd0f8f.js → p-83a7ac2c.js} +3 -3
- package/dist/components/{p-fbdd0f8f.js.map → p-83a7ac2c.js.map} +1 -1
- package/dist/components/{p-f87105bb.js → p-8c662622.js} +2 -2
- package/dist/components/{p-f87105bb.js.map → p-8c662622.js.map} +1 -1
- package/dist/components/{p-2dc162f9.js → p-8c9e8d25.js} +5 -5
- package/dist/components/{p-2dc162f9.js.map → p-8c9e8d25.js.map} +1 -1
- package/dist/components/{p-b1d32805.js → p-9187b0ea.js} +3 -3
- package/dist/components/{p-b1d32805.js.map → p-9187b0ea.js.map} +1 -1
- package/dist/components/{p-8e4c1a5e.js → p-9da09a5b.js} +2 -2
- package/dist/components/{p-8e4c1a5e.js.map → p-9da09a5b.js.map} +1 -1
- package/dist/components/{p-f35400e1.js → p-a0c79a46.js} +2 -2
- package/dist/components/{p-f35400e1.js.map → p-a0c79a46.js.map} +1 -1
- package/dist/components/{p-6eaf5218.js → p-a81a3a4c.js} +3 -3
- package/dist/components/{p-6eaf5218.js.map → p-a81a3a4c.js.map} +1 -1
- package/dist/components/{p-2a972be2.js → p-ba5a005c.js} +4 -4
- package/dist/components/{p-2a972be2.js.map → p-ba5a005c.js.map} +1 -1
- package/dist/components/{p-907db6a9.js → p-bb4f4ffc.js} +5 -5
- package/dist/components/{p-907db6a9.js.map → p-bb4f4ffc.js.map} +1 -1
- package/dist/components/{p-55350e52.js → p-bd503085.js} +3 -3
- package/dist/components/{p-55350e52.js.map → p-bd503085.js.map} +1 -1
- package/dist/components/{p-0c2de460.js → p-c16c49ca.js} +4 -4
- package/dist/components/{p-0c2de460.js.map → p-c16c49ca.js.map} +1 -1
- package/dist/components/{p-07da844f.js → p-c3216aa7.js} +3 -3
- package/dist/components/{p-07da844f.js.map → p-c3216aa7.js.map} +1 -1
- package/dist/components/{p-4eb35d23.js → p-c6550ae3.js} +4 -4
- package/dist/components/{p-4eb35d23.js.map → p-c6550ae3.js.map} +1 -1
- package/dist/components/{p-8054dcb8.js → p-c8b4046a.js} +9 -9
- package/dist/components/{p-8054dcb8.js.map → p-c8b4046a.js.map} +1 -1
- package/dist/components/{p-273d413c.js → p-dbe86180.js} +14 -29
- package/dist/components/p-dbe86180.js.map +1 -0
- package/dist/components/{p-aa78661e.js → p-dd7410cb.js} +4 -4
- package/dist/components/{p-aa78661e.js.map → p-dd7410cb.js.map} +1 -1
- package/dist/components/{p-8b1537d5.js → p-f4ff43ee.js} +2 -2
- package/dist/components/{p-8b1537d5.js.map → p-f4ff43ee.js.map} +1 -1
- package/dist/components/{p-e6d206c1.js → p-fcde2fcb.js} +3 -3
- package/dist/components/{p-e6d206c1.js.map → p-fcde2fcb.js.map} +1 -1
- package/dist/components/stzh-accordion-item.js +1 -1
- package/dist/components/stzh-accordion.js +1 -1
- package/dist/components/stzh-actions.js +1 -1
- package/dist/components/stzh-actionset.js +1 -1
- package/dist/components/stzh-amount.js +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 +12 -12
- 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 +2 -2
- package/dist/components/stzh-bathstatus-item.js +1 -1
- package/dist/components/stzh-bathstatus-list.js +3 -3
- package/dist/components/stzh-breadcrumb.js +1 -1
- package/dist/components/stzh-button.js +1 -1
- package/dist/components/stzh-buttongroup.js +1 -1
- package/dist/components/stzh-calendar.js +1 -1
- package/dist/components/stzh-card-navigation.js +1 -1
- package/dist/components/stzh-card-navigation.js.map +1 -1
- package/dist/components/stzh-card-searchresult.js +9 -9
- package/dist/components/stzh-card-searchresult.js.map +1 -1
- package/dist/components/stzh-card-superteaser.js +9 -9
- 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 +7 -8
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-datalist-item.js +1 -1
- package/dist/components/stzh-datalist.js +1 -1
- package/dist/components/stzh-datamessagelist-item.js +6 -6
- package/dist/components/stzh-datatable.js +9 -9
- package/dist/components/stzh-datatable.js.map +1 -1
- 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 +4 -4
- 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 +15 -15
- 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 +3 -3
- 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-menu-item.js +1 -1
- package/dist/components/stzh-message.js +1 -1
- package/dist/components/stzh-microsite-teaserlist.js +13 -13
- 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 +2 -2
- 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 +3 -3
- package/dist/components/stzh-pi-content-navigation.js +2 -2
- package/dist/components/stzh-pi-menu.js +2 -2
- package/dist/components/stzh-pi-pagetitle.js +1 -1
- package/dist/components/stzh-pi-quote.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 +9 -9
- 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-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 +7 -7
- package/dist/components/stzh-vbz-connection-finder.js +10 -2
- package/dist/components/stzh-vbz-connection-finder.js.map +1 -1
- package/dist/components/stzh-vbz-intro.js +2 -2
- package/dist/components/stzh-vbz-majorticker.js +3 -3
- package/dist/components/stzh-vbz-ticker.js +2 -2
- package/dist/components/stzh-youtube.js +3 -3
- package/dist/esm/{app-globals-c92f16c0.js → app-globals-a68db587.js} +2 -2
- package/dist/esm/{app-globals-c92f16c0.js.map → app-globals-a68db587.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 +6 -6
- package/dist/esm/stzh-audio.entry.js +3 -3
- package/dist/esm/stzh-badge_3.entry.js +2 -2
- package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
- package/dist/esm/stzh-buttongroup.entry.js +1 -1
- package/dist/esm/stzh-card-navigation.entry.js +1 -1
- package/dist/esm/stzh-card-navigation.entry.js.map +1 -1
- package/dist/esm/stzh-card-searchresult.entry.js +1 -1
- package/dist/esm/stzh-card-searchresult.entry.js.map +1 -1
- package/dist/esm/stzh-card-superteaser.entry.js +1 -1
- package/dist/esm/stzh-card.entry.js +9 -24
- package/dist/esm/stzh-card.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 +5 -6
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-datatable.entry.js.map +1 -1
- package/dist/esm/stzh-disturber.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/stzh-ghettobox_3.entry.js +1 -1
- package/dist/esm/stzh-homepage-search.entry.js +1 -1
- package/dist/esm/stzh-homepage-service-highlights.entry.js +2 -2
- package/dist/esm/stzh-microsite-teaserlist.entry.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/stzh-pi-menu.entry.js +2 -2
- package/dist/esm/stzh-pi-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-pi-quote.entry.js +1 -1
- package/dist/esm/stzh-pi-teaser.entry.js +1 -1
- package/dist/esm/stzh-poicard.entry.js +2 -2
- package/dist/esm/stzh-poilist.entry.js +2 -2
- 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-vbz-connection-finder.entry.js +8 -1
- package/dist/esm/stzh-vbz-connection-finder.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/en.json +1 -1
- package/dist/stzh-components/{p-466ce2ed.entry.js → p-1a4b1e07.entry.js} +2 -2
- package/dist/stzh-components/{p-fc532b6d.entry.js → p-2abd5e52.entry.js} +2 -2
- package/dist/stzh-components/{p-dc677b81.js → p-30632dd5.js} +2 -2
- package/dist/stzh-components/{p-04ad66ce.entry.js → p-3099c1a4.entry.js} +2 -2
- package/dist/stzh-components/p-3356301f.entry.js +2 -0
- package/dist/stzh-components/{p-001a94ff.entry.js.map → p-3356301f.entry.js.map} +1 -1
- package/dist/stzh-components/{p-19e9cfcb.entry.js → p-33776d2d.entry.js} +2 -2
- package/dist/stzh-components/{p-03f81303.entry.js → p-34ae771d.entry.js} +2 -2
- package/dist/stzh-components/{p-712e88e4.entry.js → p-3ea25700.entry.js} +2 -2
- package/dist/stzh-components/{p-f0950d01.entry.js → p-44027d66.entry.js} +2 -2
- package/dist/stzh-components/{p-d230175b.entry.js → p-49385921.entry.js} +2 -2
- package/dist/stzh-components/{p-dd0da396.entry.js → p-496d3d37.entry.js} +2 -2
- package/dist/stzh-components/{p-89eb7d18.entry.js → p-4bb9dbd6.entry.js} +2 -2
- package/dist/stzh-components/{p-23ae4720.entry.js → p-5460b0ab.entry.js} +2 -2
- package/dist/stzh-components/{p-85fc1586.entry.js → p-57e17a51.entry.js} +2 -2
- package/dist/stzh-components/{p-89a10196.entry.js → p-5b1ce6b8.entry.js} +2 -2
- package/dist/stzh-components/{p-28d64550.entry.js → p-5c15d9a0.entry.js} +2 -2
- package/dist/stzh-components/{p-65ac1df7.entry.js → p-5cf0212b.entry.js} +2 -2
- package/dist/stzh-components/{p-10afcbfe.entry.js → p-5e098dcd.entry.js} +2 -2
- package/dist/stzh-components/{p-d8f7f464.entry.js → p-5ebdee72.entry.js} +2 -2
- package/dist/stzh-components/p-5ebdee72.entry.js.map +1 -0
- package/dist/stzh-components/{p-4eb4bbfb.entry.js → p-6d494b4b.entry.js} +2 -2
- package/dist/stzh-components/{p-18faf89f.entry.js → p-759bf70a.entry.js} +2 -2
- package/dist/stzh-components/{p-c79d559d.entry.js → p-78d27630.entry.js} +2 -2
- package/dist/stzh-components/{p-70602177.entry.js → p-7a5ae4fe.entry.js} +2 -2
- package/dist/stzh-components/{p-b1cf7284.entry.js → p-7ba43dfe.entry.js} +2 -2
- package/dist/stzh-components/{p-129e3895.entry.js → p-82a2a943.entry.js} +2 -2
- package/dist/stzh-components/{p-b20a4d1f.entry.js → p-8908ff04.entry.js} +2 -2
- package/dist/stzh-components/{p-a0864a0b.entry.js → p-895a053d.entry.js} +2 -2
- package/dist/stzh-components/{p-c73ce503.entry.js → p-8d2022f7.entry.js} +2 -2
- package/dist/stzh-components/{p-71c33a68.entry.js → p-90cd0105.entry.js} +2 -2
- package/dist/stzh-components/{p-5d4a0fd1.entry.js → p-91ff396d.entry.js} +2 -2
- package/dist/stzh-components/p-91ff396d.entry.js.map +1 -0
- package/dist/stzh-components/{p-daddb702.entry.js → p-98ebe720.entry.js} +2 -2
- package/dist/stzh-components/{p-e9cc01e3.entry.js → p-9aea8195.entry.js} +2 -2
- package/dist/stzh-components/{p-5c85487e.entry.js → p-9f47ab4a.entry.js} +2 -2
- package/dist/stzh-components/p-9f47ab4a.entry.js.map +1 -0
- package/dist/stzh-components/{p-2c2896a5.entry.js → p-a22d71d8.entry.js} +2 -2
- package/dist/stzh-components/{p-8493a7ab.entry.js → p-a250a770.entry.js} +2 -2
- package/dist/stzh-components/p-a250a770.entry.js.map +1 -0
- package/dist/stzh-components/{p-5970ced7.entry.js → p-a46ae0cd.entry.js} +2 -2
- package/dist/stzh-components/{p-2a0bf4cb.entry.js → p-a7d9f6f1.entry.js} +2 -2
- package/dist/stzh-components/{p-f5b5b83e.entry.js → p-ac2efdad.entry.js} +2 -2
- package/dist/stzh-components/{p-e81765c0.entry.js → p-af507306.entry.js} +2 -2
- package/dist/stzh-components/{p-3642d44b.entry.js → p-bd11c719.entry.js} +2 -2
- package/dist/stzh-components/p-bed50961.entry.js.map +1 -1
- package/dist/stzh-components/{p-838776fd.entry.js → p-c421e3a8.entry.js} +2 -2
- package/dist/stzh-components/{p-5083e7fb.entry.js → p-c7fb2e0b.entry.js} +2 -2
- package/dist/stzh-components/{p-aea128ba.entry.js → p-d274a5af.entry.js} +2 -2
- package/dist/stzh-components/{p-6dd3708b.entry.js → p-d745c0fc.entry.js} +2 -2
- package/dist/stzh-components/{p-95ed49c6.entry.js → p-e18672e6.entry.js} +2 -2
- package/dist/stzh-components/{p-0fd8221a.entry.js → p-e2546fd2.entry.js} +2 -2
- package/dist/stzh-components/{p-99b217dc.entry.js → p-e40e6c83.entry.js} +2 -2
- package/dist/stzh-components/{p-acec3687.entry.js → p-ee07bb5c.entry.js} +2 -2
- package/dist/stzh-components/{p-588eaf19.entry.js → p-fd1d7e46.entry.js} +2 -2
- package/dist/stzh-components/p-fd1d7e46.entry.js.map +1 -0
- package/dist/stzh-components/{p-44c77ad6.entry.js → p-fedaf68c.entry.js} +2 -2
- 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-connection-finder/stzh-vbz-connection-finder.d.ts +3 -0
- package/dist/types/components/stzh-card/stzh-card.d.ts +2 -10
- package/dist/types/components/{CMS/stzh-card-navigation → stzh-card-navigation}/stzh-card-navigation.d.ts +2 -2
- package/dist/types/components/{CMS/stzh-card-searchresult → stzh-card-searchresult}/stzh-card-searchresult.d.ts +2 -2
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +1 -1
- package/dist/types/components.d.ts +13 -5
- package/dist/vscode-data.json +14 -2
- package/package.json +1 -1
- package/dist/collection/components/CMS/stzh-card-navigation/stzh-card-navigation.e2e.js.map +0 -1
- package/dist/collection/components/CMS/stzh-card-navigation/stzh-card-navigation.js.map +0 -1
- package/dist/collection/components/CMS/stzh-card-searchresult/stzh-card-searchresult.e2e.js.map +0 -1
- package/dist/collection/components/CMS/stzh-card-searchresult/stzh-card-searchresult.js.map +0 -1
- package/dist/components/p-273d413c.js.map +0 -1
- package/dist/stzh-components/p-001a94ff.entry.js +0 -2
- package/dist/stzh-components/p-588eaf19.entry.js.map +0 -1
- package/dist/stzh-components/p-5c85487e.entry.js.map +0 -1
- package/dist/stzh-components/p-5d4a0fd1.entry.js.map +0 -1
- package/dist/stzh-components/p-8493a7ab.entry.js.map +0 -1
- package/dist/stzh-components/p-d8f7f464.entry.js.map +0 -1
- /package/dist/collection/components/{CMS/stzh-card-navigation → stzh-card-navigation}/stzh-card-navigation.css +0 -0
- /package/dist/collection/components/{CMS/stzh-card-searchresult → stzh-card-searchresult}/assets/placeholder-image.svg +0 -0
- /package/dist/collection/components/{CMS/stzh-card-searchresult → stzh-card-searchresult}/stzh-card-searchresult.css +0 -0
- /package/dist/stzh-components/{p-466ce2ed.entry.js.map → p-1a4b1e07.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fc532b6d.entry.js.map → p-2abd5e52.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dc677b81.js.map → p-30632dd5.js.map} +0 -0
- /package/dist/stzh-components/{p-04ad66ce.entry.js.map → p-3099c1a4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-19e9cfcb.entry.js.map → p-33776d2d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-03f81303.entry.js.map → p-34ae771d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-712e88e4.entry.js.map → p-3ea25700.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f0950d01.entry.js.map → p-44027d66.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d230175b.entry.js.map → p-49385921.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dd0da396.entry.js.map → p-496d3d37.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-89eb7d18.entry.js.map → p-4bb9dbd6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-23ae4720.entry.js.map → p-5460b0ab.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-85fc1586.entry.js.map → p-57e17a51.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-89a10196.entry.js.map → p-5b1ce6b8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-28d64550.entry.js.map → p-5c15d9a0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-65ac1df7.entry.js.map → p-5cf0212b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-10afcbfe.entry.js.map → p-5e098dcd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4eb4bbfb.entry.js.map → p-6d494b4b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-18faf89f.entry.js.map → p-759bf70a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c79d559d.entry.js.map → p-78d27630.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-70602177.entry.js.map → p-7a5ae4fe.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1cf7284.entry.js.map → p-7ba43dfe.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-129e3895.entry.js.map → p-82a2a943.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b20a4d1f.entry.js.map → p-8908ff04.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a0864a0b.entry.js.map → p-895a053d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c73ce503.entry.js.map → p-8d2022f7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-71c33a68.entry.js.map → p-90cd0105.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-daddb702.entry.js.map → p-98ebe720.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e9cc01e3.entry.js.map → p-9aea8195.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2c2896a5.entry.js.map → p-a22d71d8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5970ced7.entry.js.map → p-a46ae0cd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2a0bf4cb.entry.js.map → p-a7d9f6f1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f5b5b83e.entry.js.map → p-ac2efdad.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e81765c0.entry.js.map → p-af507306.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3642d44b.entry.js.map → p-bd11c719.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-838776fd.entry.js.map → p-c421e3a8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5083e7fb.entry.js.map → p-c7fb2e0b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aea128ba.entry.js.map → p-d274a5af.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6dd3708b.entry.js.map → p-d745c0fc.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-95ed49c6.entry.js.map → p-e18672e6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0fd8221a.entry.js.map → p-e2546fd2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-99b217dc.entry.js.map → p-e40e6c83.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-acec3687.entry.js.map → p-ee07bb5c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-44c77ad6.entry.js.map → p-fedaf68c.entry.js.map} +0 -0
|
@@ -3,12 +3,23 @@ import { withActions } from '@storybook/addon-actions/decorator';
|
|
|
3
3
|
import readme from './readme.md?raw';
|
|
4
4
|
|
|
5
5
|
import { getFigmaLink } from '../../../figma';
|
|
6
|
+
import {
|
|
7
|
+
clickElementWithoutHrefRedirect,
|
|
8
|
+
expectIsVisible,
|
|
9
|
+
getComponentByTestId,
|
|
10
|
+
waitForElement
|
|
11
|
+
} from "../../../.storybook/utils/component-test-utils";
|
|
12
|
+
import { expect } from "@storybook/jest";
|
|
13
|
+
import { userEvent } from "@storybook/testing-library";
|
|
6
14
|
|
|
7
15
|
const COMPONENT_NAME = 'stzh-card';
|
|
8
16
|
const story = createComponentStory(COMPONENT_NAME);
|
|
9
17
|
|
|
18
|
+
const CARD_TEST_ID = 'CARD_TEST_ID';
|
|
19
|
+
let stzhCardEl;
|
|
20
|
+
|
|
10
21
|
const TEMPLATE = `
|
|
11
|
-
<stzh-card>
|
|
22
|
+
<stzh-card data-testid="${CARD_TEST_ID}">
|
|
12
23
|
<img slot="image" src="media/images/example.jpg" loading="lazy" alt="Example image" />
|
|
13
24
|
<div slot="content">Card Content</div>
|
|
14
25
|
<stzh-status
|
|
@@ -21,7 +32,7 @@ const TEMPLATE = `
|
|
|
21
32
|
`;
|
|
22
33
|
|
|
23
34
|
const TEMPLATE_SELECTABLE = `
|
|
24
|
-
<stzh-card>
|
|
35
|
+
<stzh-card data-testid="${CARD_TEST_ID}">
|
|
25
36
|
<img slot="image" src="media/images/example.jpg" loading="lazy" alt="Example image" />
|
|
26
37
|
<div slot="content">Card Content</div>
|
|
27
38
|
<stzh-chip slot="meta" label="Tag"></stzh-chip>
|
|
@@ -29,7 +40,7 @@ const TEMPLATE_SELECTABLE = `
|
|
|
29
40
|
`;
|
|
30
41
|
|
|
31
42
|
const TEMPLATE_STARRABLE = `
|
|
32
|
-
<stzh-card>
|
|
43
|
+
<stzh-card data-testid="${CARD_TEST_ID}">
|
|
33
44
|
<div slot="content">Card Content</div>
|
|
34
45
|
</stzh-card>
|
|
35
46
|
`;
|
|
@@ -40,7 +51,7 @@ export default {
|
|
|
40
51
|
parameters: {
|
|
41
52
|
layout: 'padded',
|
|
42
53
|
actions: {
|
|
43
|
-
handles: ['stzhCollapse', 'stzhClick', 'stzhStarClick', 'stzhSubtitleClick', 'stzhActionClick'],
|
|
54
|
+
handles: ['stzhCollapse', 'stzhClick', 'stzhStarClick', 'stzhSubtitleClick', 'stzhActionClick', 'stzhHeaderActionClick'],
|
|
44
55
|
},
|
|
45
56
|
docs: {
|
|
46
57
|
description: {
|
|
@@ -55,18 +66,17 @@ export default {
|
|
|
55
66
|
},
|
|
56
67
|
decorators: [
|
|
57
68
|
withActions,
|
|
58
|
-
|
|
59
69
|
],
|
|
60
70
|
};
|
|
61
71
|
|
|
62
72
|
const headerActions = [
|
|
63
73
|
{
|
|
64
|
-
'id': 'delete',
|
|
74
|
+
'id': 'header-action-delete',
|
|
65
75
|
'icon': 'delete',
|
|
66
|
-
'label': '
|
|
76
|
+
'label': 'Delete',
|
|
67
77
|
},
|
|
68
78
|
{
|
|
69
|
-
'id': 'message',
|
|
79
|
+
'id': 'header-action-message',
|
|
70
80
|
'icon': 'mail',
|
|
71
81
|
'badge': '3',
|
|
72
82
|
'label': 'Messages',
|
|
@@ -105,19 +115,145 @@ const footerActions = [
|
|
|
105
115
|
export const Default = {
|
|
106
116
|
render: (args) => story(args, TEMPLATE),
|
|
107
117
|
args: {
|
|
108
|
-
heading: '
|
|
109
|
-
subtitle: '
|
|
118
|
+
heading: 'Heading',
|
|
119
|
+
subtitle: 'Subtitle',
|
|
120
|
+
headerActions: headerActions,
|
|
121
|
+
name: 'default-card',
|
|
122
|
+
footerActions: [
|
|
123
|
+
{
|
|
124
|
+
'id': 'footer-action-1',
|
|
125
|
+
'icon': 'arrow-right',
|
|
126
|
+
'label': 'Details',
|
|
127
|
+
'variant': 'default',
|
|
128
|
+
'iconPosition': 'right',
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
play: async ({ canvasElement, step }) => {
|
|
133
|
+
|
|
134
|
+
stzhCardEl = await getComponentByTestId(canvasElement, CARD_TEST_ID);
|
|
135
|
+
|
|
136
|
+
await step('Assert attributes', async () => {
|
|
137
|
+
expect(stzhCardEl).toHaveAttribute('heading', 'Heading');
|
|
138
|
+
expect(stzhCardEl).toHaveAttribute('subtitle', 'Subtitle');
|
|
139
|
+
expect(stzhCardEl).toHaveAttribute('name', 'default-card');
|
|
140
|
+
expect(stzhCardEl).toHaveAttribute('variant', 'default');
|
|
141
|
+
expect(stzhCardEl).toHaveAttribute('role', 'listitem');
|
|
142
|
+
expect(stzhCardEl).toHaveAttribute('aria-label', 'Heading');
|
|
143
|
+
expect(stzhCardEl).toHaveAttribute('background-color', 'grey');
|
|
144
|
+
expect(stzhCardEl).toHaveAttribute('heading-level', '3');
|
|
145
|
+
expect(stzhCardEl).not.toHaveAttribute('href');
|
|
146
|
+
|
|
147
|
+
const imageLinkEl = stzhCardEl.querySelector('a.stzh-card__image-link');
|
|
148
|
+
expect(imageLinkEl).not.toHaveAttribute('href');
|
|
149
|
+
expect(imageLinkEl).not.toHaveAttribute('target');
|
|
150
|
+
|
|
151
|
+
const titleLinkEl = stzhCardEl.querySelector('a.stzh-card__title-link');
|
|
152
|
+
expect(titleLinkEl).not.toHaveAttribute('href');
|
|
153
|
+
expect(titleLinkEl).not.toHaveAttribute('target');
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
await step('Assert stzhClick event details (click on article element)', async () => {
|
|
157
|
+
|
|
158
|
+
let stzhClickEventDetail;
|
|
159
|
+
stzhCardEl.addEventListener('stzhClick', (ev) => {
|
|
160
|
+
stzhClickEventDetail = ev.detail;
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
const articleEl = stzhCardEl.querySelector('article');
|
|
164
|
+
await userEvent.click(articleEl);
|
|
165
|
+
// component is stzh-card
|
|
166
|
+
expect(stzhClickEventDetail).toHaveProperty('component', 'stzh-card');
|
|
167
|
+
// href is not existent
|
|
168
|
+
expect(stzhClickEventDetail).not.toHaveProperty('href');
|
|
169
|
+
// originalEvent is PointerEvent
|
|
170
|
+
expect(stzhClickEventDetail.originalEvent).toHaveProperty('type', 'click');
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
await step('Assert stzhActionClick event details (click on footer action button)', async () => {
|
|
174
|
+
|
|
175
|
+
let stzhClickEventDetail;
|
|
176
|
+
stzhCardEl.addEventListener('stzhActionClick', (ev) => {
|
|
177
|
+
stzhClickEventDetail = ev.detail;
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
const footerActionButtonEl = stzhCardEl.querySelector('stzh-actionset stzh-button.stzh-actionset__action');
|
|
181
|
+
await userEvent.click(footerActionButtonEl);
|
|
182
|
+
|
|
183
|
+
// component is stzh-actionset
|
|
184
|
+
expect(stzhClickEventDetail).toHaveProperty('component', 'stzh-actionset');
|
|
185
|
+
// originalEvent is PointerEvent
|
|
186
|
+
expect(stzhClickEventDetail.originalEvent).toHaveProperty('type', 'click');
|
|
187
|
+
// action id is present
|
|
188
|
+
expect(stzhClickEventDetail.action).toHaveProperty('id', 'footer-action-1');
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export const WithHref = {
|
|
194
|
+
render: (args) => story(args, TEMPLATE),
|
|
195
|
+
args: {
|
|
196
|
+
heading: 'Heading',
|
|
197
|
+
subtitle: 'Subtitle',
|
|
198
|
+
name: 'card',
|
|
199
|
+
href: 'https://www.stadt-zuerich.ch',
|
|
200
|
+
target: '_blank',
|
|
110
201
|
headerActions: headerActions,
|
|
111
202
|
footerActions: [
|
|
112
203
|
{
|
|
113
|
-
'id': 'action-1',
|
|
204
|
+
'id': 'footer-action-1',
|
|
114
205
|
'icon': 'arrow-right',
|
|
115
|
-
'label': '
|
|
206
|
+
'label': 'Details',
|
|
116
207
|
'variant': 'default',
|
|
117
208
|
'iconPosition': 'right',
|
|
118
209
|
},
|
|
119
210
|
],
|
|
120
211
|
},
|
|
212
|
+
play: async ({ canvasElement, step }) => {
|
|
213
|
+
|
|
214
|
+
stzhCardEl = await getComponentByTestId(canvasElement, CARD_TEST_ID);
|
|
215
|
+
|
|
216
|
+
await step('Assert attributes', async () => {
|
|
217
|
+
|
|
218
|
+
expect(stzhCardEl).toHaveAttribute('href', 'https://www.stadt-zuerich.ch');
|
|
219
|
+
expect(stzhCardEl).toHaveAttribute('target', '_blank');
|
|
220
|
+
|
|
221
|
+
const imageLinkEl = stzhCardEl.querySelector('a.stzh-card__image-link');
|
|
222
|
+
expect(imageLinkEl).toHaveAttribute('href', 'https://www.stadt-zuerich.ch');
|
|
223
|
+
expect(imageLinkEl).toHaveAttribute('target', '_blank');
|
|
224
|
+
|
|
225
|
+
const titleLinkEl = stzhCardEl.querySelector('a.stzh-card__title-link');
|
|
226
|
+
expect(titleLinkEl).toHaveAttribute('href', 'https://www.stadt-zuerich.ch');
|
|
227
|
+
expect(titleLinkEl).toHaveAttribute('target', '_blank');
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
await step('Assert stzhClick event details (click on image element)', async () => {
|
|
231
|
+
|
|
232
|
+
const imageLinkEl = stzhCardEl.querySelector('a.stzh-card__image-link');
|
|
233
|
+
|
|
234
|
+
const capturedStzhClickEvent = await clickElementWithoutHrefRedirect(imageLinkEl, 'stzhClick', {
|
|
235
|
+
eventTarget: stzhCardEl,
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
expect(capturedStzhClickEvent.detail.component).toBe('stzh-card');
|
|
239
|
+
expect(capturedStzhClickEvent.detail.href).toBe('https://www.stadt-zuerich.ch');
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
await step('Assert stzhActionClick event details (click on footer action button)', async () => {
|
|
243
|
+
|
|
244
|
+
let stzhClickEventDetail;
|
|
245
|
+
stzhCardEl.addEventListener('stzhActionClick', (ev) => {
|
|
246
|
+
stzhClickEventDetail = ev.detail;
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
const footerActionButtonEl = stzhCardEl.querySelector('stzh-actionset stzh-button.stzh-actionset__action');
|
|
250
|
+
await userEvent.click(footerActionButtonEl);
|
|
251
|
+
|
|
252
|
+
expect(stzhClickEventDetail).toHaveProperty('component', 'stzh-actionset');
|
|
253
|
+
expect(stzhClickEventDetail.originalEvent).toHaveProperty('type', 'click');
|
|
254
|
+
expect(stzhClickEventDetail.action).toHaveProperty('id', 'footer-action-1');
|
|
255
|
+
});
|
|
256
|
+
},
|
|
121
257
|
};
|
|
122
258
|
|
|
123
259
|
export const Selectable = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test } from "@playwright/test";
|
|
2
|
-
import { visualDiff } from "
|
|
3
|
-
const URL = "components-
|
|
2
|
+
import { visualDiff } from "../../../.build/test/utils";
|
|
3
|
+
const URL = "components-cardnavigation";
|
|
4
4
|
const STORIES = [
|
|
5
5
|
"content-navigation",
|
|
6
6
|
"without-lead",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-card-navigation.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-card-navigation/stzh-card-navigation.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,2BAA2B,CAAC;AAExC,MAAM,OAAO,GAAG;IACd,oBAAoB;IACnB,cAAc;IACd,cAAc;CAChB,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IACpC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YACtD,MAAM,UAAU,CAAC;gBACf,OAAO;gBACP,IAAI;gBACJ,GAAG,EAAE,GAAG;aACT,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-cardnavigation\";\n\nconst STORIES = [\n \"content-navigation\",\n \"without-lead\",\n \"with-hyphens\"\n];\n\ntest.describe(\"card-navigation\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL,\n });\n });\n });\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { hasSlot } from "
|
|
2
|
+
import { hasSlot } from "../../utils/utils";
|
|
3
3
|
/**
|
|
4
4
|
* @slot heading - Heading text (alternative for heading property)
|
|
5
5
|
* @slot lead - Lead text (alternative for lead property)
|
|
@@ -39,7 +39,7 @@ export class StzhCardNavigation {
|
|
|
39
39
|
};
|
|
40
40
|
const Heading = `h${this.headingLevel}`;
|
|
41
41
|
const TitleLink = this.href ? 'a' : 'button';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '6baeef74c234db5b0ff49edb94f8be658db8fa51', "has-lead": hasLead }, h("article", { key: '0e4c40bbe12e18da21d462e3282a41780c83a1ec', class: classes, "aria-label": this.heading, role: "listitem" }, h("div", { key: '15d760a01d78bb1ad7e20ef21a05f5724721db7b', class: "stzh-card-navigation__wrapper" }, h(Heading, { key: '866ed2ec132488eb7d7baf975f4c22cab4d9c88f', class: "stzh-card-navigation__title" }, h(TitleLink, { key: '82d857e1ba4aa79678d30eb98817a1720e3ae2c2', ref: el => (this.titleLinkElement = el), class: "stzh-card-navigation__title-link", href: this.href, target: this.target, onClick: this.handleCardClick }, this.heading ? (h("div", { ref: el => (this.headingTextElement = el), innerHTML: this.heading })) : (h("div", { ref: el => (this.headingTextElement = el) }, h("slot", { name: "heading" }))))), h("div", { key: '3bdc587f8355b46c6810838cd24fd1618477556c', class: "stzh-card-navigation__lead" }, this.lead ? this.lead : h("slot", { name: "lead" }))), h("div", { key: 'c88a378cbf902150e145d46e6bf421e550587b7e', class: "stzh-card-navigation__arrow" }, h("stzh-icon", { key: '75cc2dfb254007fb3b7b6b19ead4d4a2a2ea49d1', class: "stzh-card-navigation__arrow-icon", name: "arrow-right" })))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "stzh-card-navigation"; }
|
|
45
45
|
static get encapsulation() { return "scoped"; }
|
|
@@ -197,7 +197,7 @@ export class StzhCardNavigation {
|
|
|
197
197
|
"references": {
|
|
198
198
|
"StzhCardNavigationClickEvent": {
|
|
199
199
|
"location": "import",
|
|
200
|
-
"path": "
|
|
200
|
+
"path": "../../index",
|
|
201
201
|
"id": "src/index.ts::StzhCardNavigationClickEvent"
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-card-navigation.js","sourceRoot":"","sources":["../../../../src/components/stzh-card-navigation/stzh-card-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGvF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C;;;GAGG;AAMH,MAAM,OAAO,kBAAkB;;QAkCrB,oBAAe,GAAG,CAAC,aAAyB,EAAE,EAAE;YACtD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBAClB,SAAS,EAAE,sBAAsB;gBACjC,aAAa;gBACb,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB,CAAC,CAAC;QACL,CAAC,CAAC;;;;uBAzBwB,EAAE;4BAGkB,GAAG;oBAG1B,EAAE;8BAG0B,KAAK;;IAkBxD,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AE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,GAAG,EAAoB,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,GAAQ,CAClG,CAAC,CAAC,CAAC,CACF,WAAK,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,GAAG,EAAoB,CAAC;4BAC9D,YAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACP,CACS,CACJ;oBAEV,4DAAK,KAAK,EAAC,4BAA4B,IAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,MAAM,GAAQ,CAAO,CAC7F;gBAEN,4DAAK,KAAK,EAAC,6BAA6B;oBACtC,kEAAW,KAAK,EAAC,kCAAkC,EAAC,IAAI,EAAC,aAAa,GAAa,CAC/E,CACE,CACL,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\nimport { StzhCardNavigationClickEvent } from '../../index';\nimport { hasSlot } from '../../utils/utils';\n\n/**\n * @slot heading - Heading text (alternative for heading property)\n * @slot lead - Lead text (alternative for lead property)\n */\n@Component({\n tag: 'stzh-card-navigation',\n styleUrl: 'stzh-card-navigation.scss',\n scoped: true,\n})\nexport class StzhCardNavigation {\n /** Href of card */\n @Prop({ reflect: true }) href: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link elements.\n * Default value will be taken from `heading` prop/slot.\n */\n @Prop() analyticsId: string;\n\n /** Heading (alternative for heading slot) */\n @Prop() heading: string = '';\n\n /** Heading level */\n @Prop() headingLevel: '1' | '2' | '3' | '4' = '3';\n\n /** Lead text (alternative for lead slot) */\n @Prop() lead: string = '';\n\n /** Automatic Hyphens */\n @Prop({ reflect: true }) hyphensEnabled: boolean = false;\n\n @Element() element: HTMLStzhListElement;\n\n /** Click event (if href is used) */\n @Event() stzhClick: EventEmitter<StzhCardNavigationClickEvent>;\n\n private titleLinkElement: HTMLAnchorElement | HTMLButtonElement;\n private headingTextElement: HTMLDivElement;\n\n private handleCardClick = (originalEvent: MouseEvent) => {\n this.stzhClick.emit({\n component: 'stzh-card-navigation',\n originalEvent,\n href: this.href,\n });\n };\n\n componentDidRender() {\n requestAnimationFrame(() => {\n const objectId = this.analyticsId || this.headingTextElement?.innerText;\n\n if (objectId) {\n this.titleLinkElement?.setAttribute('s-object-id', objectId);\n }\n });\n }\n\n render() {\n const hasLead = !!this.lead || hasSlot(this.element, 'lead');\n\n const classes = {\n 'stzh-card-navigation': true,\n 'stzh-card-navigation--has-lead': hasLead,\n 'stzh-card-navigation--hyphens': this.hyphensEnabled,\n };\n\n const Heading = `h${this.headingLevel}`;\n const TitleLink = this.href ? 'a' : 'button';\n\n return (\n <Host has-lead={hasLead}>\n <article class={classes} aria-label={this.heading} role=\"listitem\">\n <div class=\"stzh-card-navigation__wrapper\">\n <Heading class=\"stzh-card-navigation__title\">\n <TitleLink\n ref={el => (this.titleLinkElement = el as HTMLAnchorElement | HTMLButtonElement)}\n class=\"stzh-card-navigation__title-link\"\n href={this.href}\n target={this.target}\n onClick={this.handleCardClick}\n >\n {this.heading ? (\n <div ref={el => (this.headingTextElement = el as HTMLDivElement)} innerHTML={this.heading}></div>\n ) : (\n <div ref={el => (this.headingTextElement = el as HTMLDivElement)}>\n <slot name=\"heading\"></slot>\n </div>\n )}\n </TitleLink>\n </Heading>\n\n <div class=\"stzh-card-navigation__lead\">{this.lead ? this.lead : <slot name=\"lead\"></slot>}</div>\n </div>\n\n <div class=\"stzh-card-navigation__arrow\">\n <stzh-icon class=\"stzh-card-navigation__arrow-icon\" name=\"arrow-right\"></stzh-icon>\n </div>\n </article>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createComponentStory } from '
|
|
1
|
+
import { createComponentStory } from '../../utils/story-utils';
|
|
2
2
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
3
|
import readme from './readme.md?raw';
|
|
4
4
|
|
|
5
|
-
import { getFigmaLink } from '
|
|
5
|
+
import { getFigmaLink } from '../../../figma';
|
|
6
6
|
|
|
7
7
|
const COMPONENT_NAME = 'stzh-card-navigation';
|
|
8
8
|
const story = createComponentStory(COMPONENT_NAME);
|
|
@@ -12,7 +12,7 @@ const TEMPLATE = `
|
|
|
12
12
|
`;
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
|
-
title: 'Components/
|
|
15
|
+
title: 'Components/CardNavigation',
|
|
16
16
|
component: COMPONENT_NAME,
|
|
17
17
|
parameters: {
|
|
18
18
|
layout: 'padded',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test } from "@playwright/test";
|
|
2
|
-
import { visualDiff } from "
|
|
3
|
-
const URL = "components-
|
|
2
|
+
import { visualDiff } from "../../../.build/test/utils";
|
|
3
|
+
const URL = "components-cardsearchresult";
|
|
4
4
|
const STORIES = [
|
|
5
5
|
"media",
|
|
6
6
|
"with-hyphens",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-card-searchresult.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-card-searchresult/stzh-card-searchresult.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,6BAA6B,CAAC;AAE1C,MAAM,OAAO,GAAG;IACd,OAAO;IACP,cAAc;IACd,yBAAyB;IACzB,SAAS;IACT,SAAS;IACT,UAAU;IACV,WAAW;IACX,OAAO;IACP,8BAA8B;IAC9B,aAAa;IACb,wBAAwB;IACxB,qBAAqB;IACrB,iBAAiB;IACjB,SAAS;IACT,8BAA8B;IAC9B,eAAe;CAChB,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACtC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YACtD,MAAM,UAAU,CAAC;gBACf,OAAO;gBACP,IAAI;gBACJ,GAAG,EAAE,GAAG;aACT,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-cardsearchresult\";\n\nconst STORIES = [\n \"media\",\n \"with-hyphens\",\n \"city-counsil-resolution\",\n \"service\",\n \"website\",\n \"document\",\n \"job-offer\",\n \"event\",\n \"event-with-placeholder-image\",\n \"publication\",\n \"publication-statistics\",\n \"official-collection\",\n \"business-report\",\n \"gallery\",\n \"forms-and-information-sheets\",\n \"practice-pool\",\n];\n\ntest.describe(\"card-searchresult\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL\n });\n });\n });\n});\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, h, Host } from "@stencil/core";
|
|
2
|
-
import { hasSlot } from "
|
|
2
|
+
import { hasSlot } from "../../utils/utils";
|
|
3
3
|
import PlaceholderImage from "./assets/placeholder-image.svg";
|
|
4
4
|
/**
|
|
5
5
|
* @slot heading - Heading text (alternative for heading property)
|
|
@@ -123,7 +123,7 @@ export class StzhCardSearchresult {
|
|
|
123
123
|
};
|
|
124
124
|
const Heading = `h${this.headingLevel}`;
|
|
125
125
|
const HeadingLink = this.href ? 'a' : 'div';
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '6ad4d06898b0ea6d3e94748e81d3302638a12d71', "has-image": hasImage }, h("article", { key: 'ade897bba1a380aa80a2372a446cf2cb28ebad37', class: classes, "aria-label": this.heading, role: "listitem" }, this.tag && h("stzh-tag", { key: '384f159abcdd41f043dd306717a5bc46c84eaa6a', class: "stzh-card-searchresult__tag", label: this.tag, nonInteractive: true }), h("div", { key: '2c5178485689f02d40b276d3517590b9ebfdffba', class: "stzh-card-searchresult__heading-wrapper" }, this.breadcrumbItems && (h("stzh-breadcrumb", { key: 'ec640ba9f1febd69660e33388a6c48a4c9683214', class: "stzh-card-searchresult__breadcrumb", items: this.breadcrumbItems, variant: "teaser" })), this.dateline && h("div", { key: '7be07cc63c0415ac8d2736a1850ea489f9bd1594', class: "stzh-card-searchresult__dateline" }, this.dateline), h(Heading, { key: 'c0a580dfc398730a2f34b5ec9a87eb98e5bef46d', class: "stzh-card-searchresult__heading" }, h(HeadingLink, { key: '116d4e85f528b4610bb374e96d6aba9078cc3fe8', ref: el => (this.headingLinkElement = el), class: "stzh-card-searchresult__heading-link", href: this.href, target: this.target, download: this.download, onClick: this.handleCardClick }, this.heading ? (h("div", { class: "stzh-card-searchresult__heading-link-text", ref: el => (this.headingTextElement = el), innerHTML: this.heading })) : (h("div", { class: "stzh-card-searchresult__heading-link-text", ref: el => (this.headingTextElement = el) }, h("slot", { name: "heading" })))))), h("div", { key: '930549d901b4031384589221af84b30456073098', class: "stzh-card-searchresult__description-wrapper" }, (eventDateStart || this.eventLocation) && (h("div", { key: 'd4179d9c03a694044d30160e85bb2397485c2699', class: "stzh-card-searchresult__event-infos" }, eventDateStart && (h("div", { key: '2591cb7836d7ba51ef7659e87bbb4feb718dcf51', class: "stzh-card-searchresult__event-date" }, h("span", { key: '827e37a240e4ef982984ce25cc96d5a7741ebd59' }, this.dateAdapter.format(eventDateStart, 'dateLong')), this.hasProperStartAndOrEndDate(eventDateStart, eventDateEnd) && (h("span", { key: 'ab507961c5f1db052f96171adf26872e3b7b2cf7' }, ",\u00A0", this.dateAdapter.formatSpan(eventDateStart, eventDateEnd, 'time'))))), this.eventLocation && h("div", { key: '038a9d68837838eaaf0e6e62e179bd4de6271a5d', class: "stzh-card-searchresult__event-location" }, this.eventLocation))), h("div", { key: '351bdd7e66e7e05c53a725374dbf9320088d099f', class: "stzh-card-searchresult__description" }, this.description ? this.description : h("slot", { name: "description" }))), h("div", { key: '2fa3743d7cec3fc5eae748fcf8447970162aa36d', class: "stzh-card-searchresult__image" }, eventDateStart && (h("div", { key: '3f61274d2365b1ee6ce89a8f1f9d95d2780bed7e', class: "stzh-card-searchresult__event-date-teaser" }, h("div", { key: 'a5b3242063e118a130e3dc55b7f5fea8c9cbf5bd', class: "stzh-card-searchresult__event-date-teaser-day-name" }, this.localization.$globals.dayNamesShort[eventDateStart.getDay()]), h("div", { key: '8ff38d2d75564580f5ec2d3ee9278626f06a9928', class: "stzh-card-searchresult__event-date-teaser-day" }, eventDateStart.getDate() < 10 && '0', eventDateStart.getDate()), h("div", { key: '4d192b51db436e2158d91f421b083a98d72fad84', class: "stzh-card-searchresult__event-date-teaser-month" }, this.localization.$globals.monthNamesShort[eventDateStart.getMonth()]))), this.topic && h("div", { key: 'cd4328660085fdb8de571047c5a8090c48123b7d', class: "stzh-card-searchresult__topic" }, this.topic), this.service && h("div", { key: 'a2530097161a312eab865b9d7d649536e745434f', class: "stzh-card-searchresult__service" }, this.service), h("slot", { key: '564131288d1b98ad7bcc27b411e276fda6b24cff', name: "image" }), this.placeholderImageEnabled && !hasImageSlot && (h("stzh-ratio", { key: '1314063779440e340e611e0b4505346a63e0e93f', ratio: "21:9", "ratio-small": "1:1" }, h("div", { key: 'c7c5b6975aeae72fedf13acdea35e5808228a3fc', class: "stzh-card-searchresult__image-placeholder", innerHTML: PlaceholderImage })))), (this._meta.length > 0 || this.datalistItems || !!this.downloadHeading || this._downloadMeta.length > 0) && (h("div", { key: '1680c46a075ae0b703183d8aa8edb370ed146c50', class: "stzh-card-searchresult__meta-wrapper" }, this.datalistItems && (h("stzh-datalist", { key: 'e19675828fb638bcbd93c7c41c1fa9f4d1624687', class: "stzh-card-searchresult__datalist", items: this.datalistItems })), this._meta.length > 0 && (h("div", { key: 'ccb298045c0a99a15f690fc4a67fc74d12600341', class: "stzh-card-searchresult__meta" }, h("div", { key: '2c7e93489d01c9f4cd98b7b9033fee697c6ceb0e', class: "stzh-card-searchresult__meta-list" }, this._meta.map(meta => (h(Fragment, null, h("div", { class: "stzh-card-searchresult__meta-list-item" }, meta))))))), (!!this.downloadHeading || this._downloadMeta.length > 0) && (h("div", { key: '571cbf8dd7d20d0db84afc542dc49bbb6b83c3d3', class: "stzh-card-searchresult__download" }, h("div", { key: 'fc7c9e3f0d1069ce58772f09a98f8588be5fd91c', class: "stzh-card-searchresult__download-data" }, this.downloadHeading && (h("div", { key: '8f4fb61fa486fcdf99eaa5bd0dae1685c9b31d26', class: "stzh-card-searchresult__download-heading" }, this.downloadHeading)), this._downloadMeta.length > 0 && (h("div", { key: '82dd5efc8fa83aec6176d0a2b71c85eab48d730a', class: "stzh-card-searchresult__download-meta-list" }, this._downloadMeta.map(meta => (h(Fragment, null, h("div", { class: "stzh-card-searchresult__download-meta-list-item" }, meta))))))), h("div", { key: 'b9e1fcd20e00a1493af5becb4ed86088aeabda00', class: "stzh-card-searchresult__download-button" }, h("stzh-icon", { key: '33f035e04965cb8b14ca075e47dcad885b481ec8', class: "stzh-card-searchresult__download-icon", name: "download" })))))))));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "stzh-card-searchresult"; }
|
|
129
129
|
static get encapsulation() { return "scoped"; }
|
|
@@ -148,7 +148,7 @@ export class StzhCardSearchresult {
|
|
|
148
148
|
"references": {
|
|
149
149
|
"StzhLocaleComponent": {
|
|
150
150
|
"location": "import",
|
|
151
|
-
"path": "
|
|
151
|
+
"path": "../../index",
|
|
152
152
|
"id": "src/index.ts::StzhLocaleComponent"
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -376,7 +376,7 @@ export class StzhCardSearchresult {
|
|
|
376
376
|
"references": {
|
|
377
377
|
"StzhBreadcrumbItem": {
|
|
378
378
|
"location": "import",
|
|
379
|
-
"path": "
|
|
379
|
+
"path": "../../index",
|
|
380
380
|
"id": "src/index.ts::StzhBreadcrumbItem"
|
|
381
381
|
}
|
|
382
382
|
}
|
|
@@ -399,7 +399,7 @@ export class StzhCardSearchresult {
|
|
|
399
399
|
"references": {
|
|
400
400
|
"StzhDatalistItemEntry": {
|
|
401
401
|
"location": "import",
|
|
402
|
-
"path": "
|
|
402
|
+
"path": "../../index",
|
|
403
403
|
"id": "src/index.ts::StzhDatalistItemEntry"
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -554,7 +554,7 @@ export class StzhCardSearchresult {
|
|
|
554
554
|
"references": {
|
|
555
555
|
"StzhLocaleAdapter": {
|
|
556
556
|
"location": "import",
|
|
557
|
-
"path": "
|
|
557
|
+
"path": "../../index",
|
|
558
558
|
"id": "src/index.ts::StzhLocaleAdapter"
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -603,7 +603,7 @@ export class StzhCardSearchresult {
|
|
|
603
603
|
"references": {
|
|
604
604
|
"StzhCardSearchresultClickEvent": {
|
|
605
605
|
"location": "import",
|
|
606
|
-
"path": "
|
|
606
|
+
"path": "../../index",
|
|
607
607
|
"id": "src/index.ts::StzhCardSearchresultClickEvent"
|
|
608
608
|
}
|
|
609
609
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stzh-card-searchresult.js","sourceRoot":"","sources":["../../../../src/components/stzh-card-searchresult/stzh-card-searchresult.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Fragment, h, Host, Prop, Watch } from '@stencil/core';\n\nimport {\n StzhBreadcrumbItem,\n StzhCardSearchresultClickEvent,\n StzhDatalistItemEntry,\n StzhLocaleAdapter,\n StzhLocaleComponent,\n} from '../../index';\n\nimport { hasSlot } from '../../utils/utils';\nimport PlaceholderImage from './assets/placeholder-image.svg';\n\n/**\n * @slot heading - Heading text (alternative for heading property)\n * @slot description - Description text (alternative for description property)\n * @slot image - Image\n */\n@Component({\n tag: 'stzh-card-searchresult',\n styleUrl: 'stzh-card-searchresult.scss',\n scoped: true,\n})\nexport class StzhCardSearchresult {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Href of card */\n @Prop({ reflect: true }) href: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string;\n\n /** Download attribute (if href is used) */\n @Prop() download: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link elements.\n * Default value will be taken from `heading` prop/slot.\n */\n @Prop() analyticsId: string;\n\n /** Heading (alternative for heading slot) */\n @Prop() heading: string = '';\n\n /** Heading level */\n @Prop() headingLevel: '1' | '2' | '3' | '4' = '3';\n\n /** Description text (alternative for description slot) */\n @Prop() description: string = '';\n\n /** Tag */\n @Prop() tag: string;\n\n /** Topic */\n @Prop() topic: string;\n\n /** Service */\n @Prop() service: string;\n\n /** Dateline */\n @Prop() dateline: string;\n\n /** Meta */\n @Prop() meta: string[] | string;\n private _meta: string[];\n\n /** Breadcrumb items */\n @Prop() breadcrumbItems: StzhBreadcrumbItem[] | string;\n\n /** Datalist items */\n @Prop() datalistItems: StzhDatalistItemEntry[] | string = [];\n\n /** Event start date */\n @Prop() eventDateStart: Date | string;\n\n /** Event start date */\n @Prop() eventDateEnd: Date | string;\n\n /** Event location */\n @Prop() eventLocation: string;\n\n /** Enable placeholder image if image slot not used */\n @Prop() placeholderImageEnabled: boolean = false;\n\n /** Image position */\n @Prop({ reflect: true }) imagePosition: 'default' | 'right' = 'default';\n\n /** Download heading */\n @Prop() downloadHeading: string;\n\n /** Download meta */\n @Prop() downloadMeta: string[] | string;\n private _downloadMeta: string[];\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n /** Automatic Hyphens */\n @Prop({ reflect: true }) hyphensEnabled: boolean = false;\n\n @Element() element: HTMLStzhListElement;\n\n /** Click event (if href is used) */\n @Event() stzhClick: EventEmitter<StzhCardSearchresultClickEvent>;\n\n @Watch('meta')\n metaWatcher(newValue: string | string[]) {\n if (!newValue) {\n this._meta = [];\n } else if (typeof newValue === 'string') {\n try {\n this._meta = JSON.parse(newValue);\n } catch (e) {\n this._meta = [];\n }\n } else {\n this._meta = newValue;\n }\n }\n\n @Watch('downloadMeta')\n downloadMetaWatcher(newValue: string | string[]) {\n if (!newValue) {\n this._downloadMeta = [];\n } else if (typeof newValue === 'string') {\n try {\n this._downloadMeta = JSON.parse(newValue);\n } catch (e) {\n this._downloadMeta = [];\n }\n } else {\n this._downloadMeta = newValue;\n }\n }\n\n private headingLinkElement: HTMLAnchorElement | HTMLDivElement;\n private headingTextElement: HTMLDivElement;\n\n private handleCardClick = (originalEvent: MouseEvent) => {\n this.stzhClick.emit({\n component: 'stzh-card-searchresult',\n originalEvent,\n href: this.href,\n });\n };\n\n private hasProperStartAndOrEndDate(startDate: Date | undefined, endDate: Date | undefined) {\n return !(!!startDate && startDate.getHours() === 0 && !endDate);\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n const objectId = this.analyticsId || this.headingTextElement?.innerText;\n\n if (objectId) {\n this.headingLinkElement?.setAttribute('s-object-id', objectId);\n }\n });\n }\n\n async componentWillLoad() {\n this.metaWatcher(this.meta);\n this.downloadMetaWatcher(this.downloadMeta);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'card-searchresult');\n }\n\n if (!this.dateAdapter) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals,\n );\n }\n }\n\n render() {\n const hasHeading = !!this.heading || hasSlot(this.element, 'heading');\n const hasDescription = !!this.description || hasSlot(this.element, 'description');\n const hasImageSlot = hasSlot(this.element, 'image');\n\n const eventDateStart = this.eventDateStart && new Date(this.eventDateStart);\n const eventDateEnd = this.eventDateEnd && new Date(this.eventDateEnd);\n if (eventDateStart && !hasImageSlot) {\n this.placeholderImageEnabled = true;\n }\n\n const hasImage = hasImageSlot || this.placeholderImageEnabled;\n\n const classes = {\n 'stzh-card-searchresult': true,\n 'stzh-card-searchresult--has-heading': hasHeading,\n 'stzh-card-searchresult--has-description': hasDescription,\n 'stzh-card-searchresult--has-description-wrapper': hasDescription || !!eventDateStart || !!this.eventLocation,\n 'stzh-card-searchresult--has-link': !!this.href,\n 'stzh-card-searchresult--has-service': !!this.service,\n 'stzh-card-searchresult--has-tag': !!this.tag,\n 'stzh-card-searchresult--has-topic': !!this.topic,\n 'stzh-card-searchresult--has-image': hasImage,\n 'stzh-card-searchresult--has-image-default': hasImage && this.imagePosition === 'default',\n 'stzh-card-searchresult--has-image-right': hasImage && this.imagePosition === 'right',\n 'stzh-card-searchresult--has-meta': this._meta.length > 0,\n 'stzh-card-searchresult--has-download': !!this.downloadHeading || this._downloadMeta.length > 0,\n 'stzh-card-searchresult--has-breadcrumb': !!this.breadcrumbItems,\n 'stzh-card-searchresult--hyphens': this.hyphensEnabled,\n };\n\n const Heading = `h${this.headingLevel}`;\n const HeadingLink = this.href ? 'a' : 'div';\n\n return (\n <Host has-image={hasImage}>\n <article class={classes} aria-label={this.heading} role=\"listitem\">\n {this.tag && <stzh-tag class=\"stzh-card-searchresult__tag\" label={this.tag} nonInteractive={true}></stzh-tag>}\n\n <div class=\"stzh-card-searchresult__heading-wrapper\">\n {this.breadcrumbItems && (\n <stzh-breadcrumb\n class=\"stzh-card-searchresult__breadcrumb\"\n items={this.breadcrumbItems}\n variant=\"teaser\"\n ></stzh-breadcrumb>\n )}\n\n {this.dateline && <div class=\"stzh-card-searchresult__dateline\">{this.dateline}</div>}\n\n <Heading class=\"stzh-card-searchresult__heading\">\n <HeadingLink\n ref={el => (this.headingLinkElement = el as HTMLAnchorElement | HTMLDivElement)}\n class=\"stzh-card-searchresult__heading-link\"\n href={this.href}\n target={this.target}\n download={this.download}\n onClick={this.handleCardClick}\n >\n {this.heading ? (\n <div\n class=\"stzh-card-searchresult__heading-link-text\"\n ref={el => (this.headingTextElement = el as HTMLDivElement)}\n innerHTML={this.heading}\n ></div>\n ) : (\n <div\n class=\"stzh-card-searchresult__heading-link-text\"\n ref={el => (this.headingTextElement = el as HTMLDivElement)}\n >\n <slot name=\"heading\"></slot>\n </div>\n )}\n </HeadingLink>\n </Heading>\n </div>\n\n <div class=\"stzh-card-searchresult__description-wrapper\">\n {(eventDateStart || this.eventLocation) && (\n <div class=\"stzh-card-searchresult__event-infos\">\n {eventDateStart && (\n <div class=\"stzh-card-searchresult__event-date\">\n <span>{this.dateAdapter.format(eventDateStart, 'dateLong')}</span>\n {this.hasProperStartAndOrEndDate(eventDateStart, eventDateEnd) && (\n <span>, {this.dateAdapter.formatSpan(eventDateStart, eventDateEnd, 'time')}</span>\n )}\n </div>\n )}\n {this.eventLocation && <div class=\"stzh-card-searchresult__event-location\">{this.eventLocation}</div>}\n </div>\n )}\n\n <div class=\"stzh-card-searchresult__description\">\n {this.description ? this.description : <slot name=\"description\"></slot>}\n </div>\n </div>\n\n <div class=\"stzh-card-searchresult__image\">\n {eventDateStart && (\n <div class=\"stzh-card-searchresult__event-date-teaser\">\n <div class=\"stzh-card-searchresult__event-date-teaser-day-name\">\n {this.localization.$globals.dayNamesShort[eventDateStart.getDay()]}\n </div>\n <div class=\"stzh-card-searchresult__event-date-teaser-day\">\n {eventDateStart.getDate() < 10 && '0'}\n {eventDateStart.getDate()}\n </div>\n <div class=\"stzh-card-searchresult__event-date-teaser-month\">\n {this.localization.$globals.monthNamesShort[eventDateStart.getMonth()]}\n </div>\n </div>\n )}\n {this.topic && <div class=\"stzh-card-searchresult__topic\">{this.topic}</div>}\n {this.service && <div class=\"stzh-card-searchresult__service\">{this.service}</div>}\n <slot name=\"image\"></slot>\n {this.placeholderImageEnabled && !hasImageSlot && (\n <stzh-ratio ratio=\"21:9\" ratio-small=\"1:1\">\n <div class=\"stzh-card-searchresult__image-placeholder\" innerHTML={PlaceholderImage}></div>\n </stzh-ratio>\n )}\n </div>\n\n {(this._meta.length > 0 || this.datalistItems || !!this.downloadHeading || this._downloadMeta.length > 0) && (\n <div class=\"stzh-card-searchresult__meta-wrapper\">\n {this.datalistItems && (\n <stzh-datalist class=\"stzh-card-searchresult__datalist\" items={this.datalistItems}></stzh-datalist>\n )}\n\n {this._meta.length > 0 && (\n <div class=\"stzh-card-searchresult__meta\">\n <div class=\"stzh-card-searchresult__meta-list\">\n {this._meta.map(meta => (\n <Fragment>\n <div class=\"stzh-card-searchresult__meta-list-item\">{meta}</div>\n </Fragment>\n ))}\n </div>\n </div>\n )}\n\n {(!!this.downloadHeading || this._downloadMeta.length > 0) && (\n <div class=\"stzh-card-searchresult__download\">\n <div class=\"stzh-card-searchresult__download-data\">\n {this.downloadHeading && (\n <div class=\"stzh-card-searchresult__download-heading\">{this.downloadHeading}</div>\n )}\n {this._downloadMeta.length > 0 && (\n <div class=\"stzh-card-searchresult__download-meta-list\">\n {this._downloadMeta.map(meta => (\n <Fragment>\n <div class=\"stzh-card-searchresult__download-meta-list-item\">{meta}</div>\n </Fragment>\n ))}\n </div>\n )}\n </div>\n\n <div class=\"stzh-card-searchresult__download-button\">\n <stzh-icon class=\"stzh-card-searchresult__download-icon\" name=\"download\"></stzh-icon>\n </div>\n </div>\n )}\n </div>\n )}\n </article>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createComponentStory } from '
|
|
1
|
+
import { createComponentStory } from '../../utils/story-utils';
|
|
2
2
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
3
|
import readme from './readme.md?raw';
|
|
4
4
|
|
|
5
|
-
import { getFigmaLink } from '
|
|
5
|
+
import { getFigmaLink } from '../../../figma';
|
|
6
6
|
|
|
7
7
|
const COMPONENT_NAME = 'stzh-card-searchresult';
|
|
8
8
|
const story = createComponentStory(COMPONENT_NAME);
|
|
@@ -26,7 +26,7 @@ const TEMPLATE_WITH_PUBLICATION = `
|
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
28
|
export default {
|
|
29
|
-
title: 'Components/
|
|
29
|
+
title: 'Components/CardSearchresult',
|
|
30
30
|
component: COMPONENT_NAME,
|
|
31
31
|
parameters: {
|
|
32
32
|
layout: 'padded',
|
|
@@ -669,7 +669,7 @@ export class StzhDatatable {
|
|
|
669
669
|
"optional": false,
|
|
670
670
|
"docs": {
|
|
671
671
|
"tags": [],
|
|
672
|
-
"text": "Whether to show table data as list on
|
|
672
|
+
"text": "Whether to show table data as list on medium or smaller breakpoint"
|
|
673
673
|
},
|
|
674
674
|
"attribute": "show-list",
|
|
675
675
|
"reflect": true,
|