@oiz/stzh-components 3.1.0 → 3.2.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-0699ef40.js → app-globals-efe6d21d.js} +2 -2
- package/dist/cjs/{app-globals-0699ef40.js.map → app-globals-efe6d21d.js.map} +1 -1
- package/dist/cjs/index-92254d32.js +28 -16
- 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 +24 -8
- package/dist/cjs/stzh-accordion_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-anchornav.cjs.entry.js +4 -3
- package/dist/cjs/stzh-anchornav.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-app-bar.cjs.entry.js +48 -0
- package/dist/cjs/stzh-app-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-navigation.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_2.cjs.entry.js +8 -2
- package/dist/cjs/stzh-card_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chip.cjs.entry.js +22 -32
- package/dist/cjs/stzh-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact-cv.cjs.entry.js +63 -0
- package/dist/cjs/stzh-contact-cv.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-contact.cjs.entry.js +5 -3
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-container.cjs.entry.js +1 -1
- package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-daterange.cjs.entry.js +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-disturber.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/stzh-eventinfo.cjs.entry.js +1 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
- package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +27 -19
- package/dist/cjs/stzh-ghettobox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +2 -2
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +1 -1
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-iframe.cjs.entry.js +2881 -24
- package/dist/cjs/stzh-iframe.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +8 -4
- package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-list.cjs.entry.js → stzh-list_2.cjs.entry.js} +20 -1
- package/dist/cjs/stzh-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-menu_2.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 +2 -2
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagetitle.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover_2.cjs.entry.js +90 -67
- package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-print_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +6 -6
- package/dist/cjs/stzh-scrollup.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-sticky-actions.cjs.entry.js +9 -8
- package/dist/cjs/stzh-sticky-actions.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
- package/dist/cjs/stzh-table.cjs.entry.js +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/stzh-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-twocolumns.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +3101 -7
- package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js +25 -0
- package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-vbz-intro.cjs.entry.js +58 -0
- package/dist/cjs/stzh-vbz-intro.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +33 -44
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js.map +1 -1
- package/dist/cjs/{utils-d0fff87f.js → utils-d091c010.js} +40 -9
- package/dist/cjs/utils-d091c010.js.map +1 -0
- package/dist/collection/assets/i18n/de.json +22 -7
- package/dist/collection/assets/i18n/en.json +22 -7
- package/dist/collection/assets/media/icons/mono/construction.svg +1 -1
- package/dist/collection/assets/media/icons/mono/crop.svg +1 -0
- package/dist/collection/assets/meta/icons-preview.html +6 -1
- package/dist/collection/assets/mock/appl/mobiscan/publicEndpoint/image/retreive-pdf +5 -0
- package/dist/collection/assets/mock/appl/mobiscan/publicEndpoint/ping +3 -0
- package/dist/collection/assets/mock/appl/mobiscan/publicEndpoint/url +3 -0
- package/dist/collection/assets/mock/appl/mobiscan/rs/auth +4 -0
- package/dist/collection/assets/mock/appl/mobiscan/rs/config +5 -0
- package/dist/collection/assets/vendors/iframe-resizer/iframeResizer.contentWindow.js +1311 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +39 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +20 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.js.map +1 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +5 -0
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +5 -4
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js.map +1 -1
- package/dist/collection/components/stzh-app-bar/stzh-app-bar.css +253 -0
- package/dist/collection/components/stzh-app-bar/stzh-app-bar.e2e.js +16 -0
- package/dist/collection/components/stzh-app-bar/stzh-app-bar.e2e.js.map +1 -0
- package/dist/collection/components/stzh-app-bar/stzh-app-bar.js +54 -0
- package/dist/collection/components/stzh-app-bar/stzh-app-bar.js.map +1 -0
- package/dist/collection/components/stzh-app-bar/stzh-app-bar.stories.js +45 -0
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +5 -0
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.js +9 -2
- package/dist/collection/components/stzh-cardlist/stzh-cardlist.js.map +1 -1
- package/dist/collection/components/stzh-chip/stzh-chip.js +23 -33
- package/dist/collection/components/stzh-chip/stzh-chip.js.map +1 -1
- package/dist/collection/components/stzh-contact/stzh-contact.css +47 -15
- package/dist/collection/components/stzh-contact/stzh-contact.js +21 -1
- package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/stzh-contact/stzh-contact.stories.js +68 -49
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.css +196 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.e2e.js +16 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.e2e.js.map +1 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.js +163 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.js.map +1 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.localization.js +2 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.localization.js.map +1 -0
- package/dist/collection/components/stzh-contact-cv/stzh-contact-cv.stories.js +52 -0
- package/dist/collection/components/stzh-container/stzh-container.css +2 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +53 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.css +10 -2
- package/dist/collection/components/stzh-header/stzh-header.css +19 -3
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.css +14 -3
- package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.stories.js +1 -1
- package/dist/collection/components/stzh-iframe/stzh-iframe.css +8 -1
- package/dist/collection/components/stzh-iframe/stzh-iframe.js +139 -26
- package/dist/collection/components/stzh-iframe/stzh-iframe.js.map +1 -1
- package/dist/collection/components/stzh-iframe/stzh-iframe.stories.js +30 -11
- package/dist/collection/components/stzh-input/stzh-input.css +1 -1
- package/dist/collection/components/stzh-input/stzh-input.js +8 -3
- package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +2 -1
- package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.css +19 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.css +11 -1
- package/dist/collection/components/stzh-pagination/stzh-pagination.js +43 -6
- package/dist/collection/components/stzh-pagination/stzh-pagination.js.map +1 -1
- package/dist/collection/components/stzh-panorama/stzh-panorama.js +1 -1
- package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.js +101 -75
- package/dist/collection/components/stzh-popover/stzh-popover.js.map +1 -1
- package/dist/collection/components/stzh-ratio/stzh-ratio.css +6 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +28 -20
- package/dist/collection/components/stzh-richtext/stzh-richtext.js.map +1 -1
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +15 -6
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.js +6 -6
- package/dist/collection/components/stzh-scrollup/stzh-scrollup.js.map +1 -1
- package/dist/collection/components/stzh-section/stzh-section.css +134 -1
- package/dist/collection/components/stzh-section/stzh-section.js +2 -2
- package/dist/collection/components/stzh-section/stzh-section.js.map +1 -1
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +206 -22
- package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.css +4 -0
- package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.js +11 -9
- package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.js.map +1 -1
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +8 -4
- package/dist/collection/components/stzh-upload/models/stzh-photographing-configuration.dto.js +2 -0
- package/dist/collection/components/stzh-upload/models/stzh-photographing-configuration.dto.js.map +1 -0
- package/dist/collection/components/stzh-upload/models/stzh-photographing-pdf-file.dto.js +3 -0
- package/dist/collection/components/stzh-upload/models/stzh-photographing-pdf-file.dto.js.map +1 -0
- package/dist/collection/components/stzh-upload/models/stzh-photographing-url-details.dto.js +2 -0
- package/dist/collection/components/stzh-upload/models/stzh-photographing-url-details.dto.js.map +1 -0
- package/dist/collection/components/stzh-upload/stzh-upload.css +84 -11
- package/dist/collection/components/stzh-upload/stzh-upload.js +274 -4
- package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.localization.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +13 -7
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +6 -4
- package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.stories.js +2 -5
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.css +192 -0
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.e2e.js +18 -0
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.e2e.js.map +1 -0
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js +26 -0
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js.map +1 -0
- package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.stories.js +39 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.css +341 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.e2e.js +16 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.e2e.js.map +1 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.js +110 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.js.map +1 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.localization.js +2 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.localization.js.map +1 -0
- package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.stories.js +75 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -3
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +8 -10
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +17 -21
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +34 -45
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js.map +1 -1
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js.map +1 -1
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +10 -12
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/pages/mkz/mkz.e2e.js +16 -0
- package/dist/collection/pages/mkz/mkz.e2e.js.map +1 -0
- package/dist/collection/pages/upload-photographing/upload-photographing.e2e.js +16 -0
- package/dist/collection/pages/upload-photographing/upload-photographing.e2e.js.map +1 -0
- package/dist/collection/patterns/contact-accordion/contact-accordion.e2e.js +21 -0
- package/dist/collection/patterns/contact-accordion/contact-accordion.e2e.js.map +1 -0
- package/dist/collection/patterns/poi/poi.e2e.js +21 -0
- package/dist/collection/patterns/poi/poi.e2e.js.map +1 -0
- package/dist/collection/utils/utils.js +38 -8
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-accordion-item2.js +1 -1
- package/dist/components/stzh-accordion-item2.js.map +1 -1
- package/dist/components/stzh-accordion2.js +17 -1
- package/dist/components/stzh-accordion2.js.map +1 -1
- package/dist/components/stzh-anchornav.js +4 -3
- package/dist/components/stzh-anchornav.js.map +1 -1
- package/dist/components/stzh-app-bar.d.ts +11 -0
- package/dist/components/stzh-app-bar.js +60 -0
- package/dist/components/stzh-app-bar.js.map +1 -0
- package/dist/components/stzh-cardlist2.js +9 -2
- package/dist/components/stzh-cardlist2.js.map +1 -1
- package/dist/components/stzh-chip2.js +22 -32
- package/dist/components/stzh-chip2.js.map +1 -1
- package/dist/components/stzh-contact-cv.d.ts +11 -0
- package/dist/components/stzh-contact-cv.js +102 -0
- package/dist/components/stzh-contact-cv.js.map +1 -0
- package/dist/components/stzh-contact.js +5 -2
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-container.js +1 -1
- package/dist/components/stzh-container.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-datepicker2.js.map +1 -1
- package/dist/components/stzh-dialog.js +1 -226
- package/dist/components/stzh-dialog.js.map +1 -1
- package/dist/components/stzh-dialog2.js +230 -0
- package/dist/components/stzh-dialog2.js.map +1 -0
- package/dist/components/stzh-footer.js +1 -1
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-homepage-service-highlights.js +1 -1
- package/dist/components/stzh-homepage-service-highlights.js.map +1 -1
- package/dist/components/stzh-iframe2.js +2883 -23
- package/dist/components/stzh-iframe2.js.map +1 -1
- package/dist/components/stzh-input2.js +9 -4
- package/dist/components/stzh-input2.js.map +1 -1
- package/dist/components/stzh-list-item.js +1 -34
- package/dist/components/stzh-list-item.js.map +1 -1
- package/dist/{esm/stzh-list-item.entry.js → components/stzh-list-item2.js} +24 -9
- package/dist/components/stzh-list-item2.js.map +1 -0
- package/dist/components/stzh-list.js +1 -36
- package/dist/components/stzh-list.js.map +1 -1
- package/dist/{esm/stzh-list.entry.js → components/stzh-list2.js} +26 -9
- package/dist/components/stzh-list2.js.map +1 -0
- package/dist/components/stzh-pagetitle-home.js +1 -1
- package/dist/components/stzh-pagetitle-home.js.map +1 -1
- package/dist/components/stzh-pagetitle.js +1 -1
- package/dist/components/stzh-pagetitle.js.map +1 -1
- package/dist/components/stzh-pagination2.js +9 -6
- package/dist/components/stzh-pagination2.js.map +1 -1
- package/dist/components/stzh-panorama.js +1 -1
- package/dist/components/stzh-panorama.js.map +1 -1
- package/dist/components/stzh-popover2.js +93 -67
- package/dist/components/stzh-popover2.js.map +1 -1
- package/dist/components/stzh-ratio2.js +1 -1
- package/dist/components/stzh-ratio2.js.map +1 -1
- package/dist/components/stzh-richtext2.js +26 -18
- package/dist/components/stzh-richtext2.js.map +1 -1
- package/dist/components/stzh-scrollup.js +5 -5
- package/dist/components/stzh-scrollup.js.map +1 -1
- package/dist/components/stzh-section.js +1 -1
- package/dist/components/stzh-section.js.map +1 -1
- package/dist/components/stzh-share2.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
- package/dist/components/stzh-sticky-actions.js +10 -8
- package/dist/components/stzh-sticky-actions.js.map +1 -1
- package/dist/components/stzh-tooltip2.js +1 -1
- package/dist/components/stzh-tooltip2.js.map +1 -1
- package/dist/components/stzh-upload.js +3127 -6
- package/dist/components/stzh-upload.js.map +1 -1
- package/dist/components/stzh-vbz-carousel.js +1 -1
- package/dist/components/stzh-vbz-carousel.js.map +1 -1
- package/dist/components/stzh-vbz-connection-finder.d.ts +11 -0
- package/dist/components/stzh-vbz-connection-finder.js +38 -0
- package/dist/components/stzh-vbz-connection-finder.js.map +1 -0
- package/dist/components/stzh-vbz-intro.d.ts +11 -0
- package/dist/components/stzh-vbz-intro.js +100 -0
- package/dist/components/stzh-vbz-intro.js.map +1 -0
- package/dist/components/stzh-vbz-linechip2.js +1 -1
- package/dist/components/stzh-vbz-linechip2.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vbz-ticker.js +33 -44
- package/dist/components/stzh-vbz-ticker.js.map +1 -1
- package/dist/components/utils.js +39 -9
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{app-globals-ab5b077d.js → app-globals-93678901.js} +2 -2
- package/dist/esm/{app-globals-ab5b077d.js.map → app-globals-93678901.js.map} +1 -1
- package/dist/esm/index-e3050b18.js +28 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion_3.entry.js +25 -9
- package/dist/esm/stzh-accordion_3.entry.js.map +1 -1
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-anchornav.entry.js +4 -3
- package/dist/esm/stzh-anchornav.entry.js.map +1 -1
- package/dist/esm/stzh-app-bar.entry.js +44 -0
- package/dist/esm/stzh-app-bar.entry.js.map +1 -0
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +1 -1
- package/dist/esm/stzh-card-navigation.entry.js +1 -1
- package/dist/esm/stzh-card-searchresult.entry.js +1 -1
- package/dist/esm/stzh-card-superteaser.entry.js +1 -1
- package/dist/esm/stzh-card_2.entry.js +8 -2
- package/dist/esm/stzh-card_2.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +1 -1
- package/dist/esm/stzh-checkbox.entry.js +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm/stzh-chip.entry.js +22 -32
- package/dist/esm/stzh-chip.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact-cv.entry.js +59 -0
- package/dist/esm/stzh-contact-cv.entry.js.map +1 -0
- package/dist/esm/stzh-contact.entry.js +5 -3
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-container.entry.js +1 -1
- package/dist/esm/stzh-container.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +2 -2
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-cta.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/stzh-daterange.entry.js +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js.map +1 -1
- package/dist/esm/stzh-disturber.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/stzh-eventinfo.entry.js +1 -1
- package/dist/esm/stzh-figure.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +2 -2
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-ghettobox_3.entry.js +27 -19
- package/dist/esm/stzh-ghettobox_3.entry.js.map +1 -1
- package/dist/esm/stzh-header.entry.js +2 -2
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-homepage-service-highlights.entry.js +1 -1
- package/dist/esm/stzh-homepage-service-highlights.entry.js.map +1 -1
- package/dist/esm/stzh-iframe.entry.js +2881 -24
- package/dist/esm/stzh-iframe.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +8 -4
- package/dist/esm/stzh-input.entry.js.map +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-list_2.entry.js +41 -0
- package/dist/esm/stzh-list_2.entry.js.map +1 -0
- package/dist/esm/stzh-menu_2.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 +2 -2
- package/dist/esm/stzh-pagetitle-home.entry.js.map +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +2 -2
- package/dist/esm/stzh-pagetitle.entry.js.map +1 -1
- package/dist/esm/stzh-panorama.entry.js +1 -1
- package/dist/esm/stzh-panorama.entry.js.map +1 -1
- package/dist/esm/stzh-pi-content-navigation.entry.js +1 -1
- package/dist/esm/stzh-pi-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-pi-teaser.entry.js +1 -1
- package/dist/esm/stzh-popover_2.entry.js +91 -68
- package/dist/esm/stzh-popover_2.entry.js.map +1 -1
- package/dist/esm/stzh-print_2.entry.js +1 -1
- package/dist/esm/stzh-ratio.entry.js +1 -1
- package/dist/esm/stzh-ratio.entry.js.map +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-scrollup.entry.js +6 -6
- package/dist/esm/stzh-scrollup.entry.js.map +1 -1
- package/dist/esm/stzh-search.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js.map +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm/stzh-sticky-actions.entry.js +9 -8
- package/dist/esm/stzh-sticky-actions.entry.js.map +1 -1
- package/dist/esm/stzh-sticky.entry.js +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-timeline-item.entry.js +1 -1
- package/dist/esm/stzh-toast.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +1 -1
- package/dist/esm/stzh-tooltip.entry.js +2 -2
- package/dist/esm/stzh-tooltip.entry.js.map +1 -1
- package/dist/esm/stzh-twocolumns.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +3098 -4
- package/dist/esm/stzh-upload.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-carousel.entry.js +1 -1
- package/dist/esm/stzh-vbz-carousel.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-connection-finder.entry.js +21 -0
- package/dist/esm/stzh-vbz-connection-finder.entry.js.map +1 -0
- package/dist/esm/stzh-vbz-intro.entry.js +54 -0
- package/dist/esm/stzh-vbz-intro.entry.js.map +1 -0
- package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm/stzh-vbz-linechip.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +33 -44
- package/dist/esm/stzh-vbz-ticker.entry.js.map +1 -1
- package/dist/esm/{utils-54aead01.js → utils-90658cfe.js} +40 -10
- package/dist/esm/utils-90658cfe.js.map +1 -0
- package/dist/stzh-components/assets/i18n/de.json +22 -7
- package/dist/stzh-components/assets/i18n/en.json +22 -7
- package/dist/stzh-components/assets/media/icons/mono/construction.svg +1 -1
- package/dist/stzh-components/assets/media/icons/mono/crop.svg +1 -0
- package/dist/stzh-components/assets/meta/icons-preview.html +6 -1
- package/dist/stzh-components/assets/mock/appl/mobiscan/publicEndpoint/image/retreive-pdf +5 -0
- package/dist/stzh-components/assets/mock/appl/mobiscan/publicEndpoint/ping +3 -0
- package/dist/stzh-components/assets/mock/appl/mobiscan/publicEndpoint/url +3 -0
- package/dist/stzh-components/assets/mock/appl/mobiscan/rs/auth +4 -0
- package/dist/stzh-components/assets/mock/appl/mobiscan/rs/config +5 -0
- package/dist/stzh-components/assets/vendors/iframe-resizer/iframeResizer.contentWindow.js +1311 -0
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/p-05127d71.entry.js +2 -0
- package/dist/stzh-components/p-05127d71.entry.js.map +1 -0
- package/dist/stzh-components/{p-9684b22d.entry.js → p-09480ffe.entry.js} +2 -2
- package/dist/stzh-components/{p-c877d32c.entry.js → p-0b0c7cb8.entry.js} +2 -2
- package/dist/stzh-components/p-0b0c7cb8.entry.js.map +1 -0
- package/dist/stzh-components/{p-161ae3d1.entry.js → p-0b15d79b.entry.js} +2 -2
- package/dist/stzh-components/p-109a885b.entry.js +2 -0
- package/dist/stzh-components/{p-2d7966cf.entry.js.map → p-109a885b.entry.js.map} +1 -1
- package/dist/stzh-components/{p-c1cd45e1.entry.js → p-12bffe97.entry.js} +2 -2
- package/dist/stzh-components/p-13cd7748.entry.js +2 -0
- package/dist/stzh-components/p-13cd7748.entry.js.map +1 -0
- package/dist/stzh-components/{p-27d5ad01.entry.js → p-16a2675e.entry.js} +2 -2
- package/dist/stzh-components/{p-75b79adf.entry.js → p-1cbf5c84.entry.js} +2 -2
- package/dist/stzh-components/p-1cbf5c84.entry.js.map +1 -0
- package/dist/stzh-components/{p-20db8d01.entry.js → p-1fd858a2.entry.js} +2 -2
- package/dist/stzh-components/p-1fd858a2.entry.js.map +1 -0
- package/dist/stzh-components/p-21c351b4.entry.js +2 -0
- package/dist/stzh-components/p-21c351b4.entry.js.map +1 -0
- package/dist/stzh-components/{p-59a1a257.entry.js → p-21f7064d.entry.js} +2 -2
- package/dist/stzh-components/p-21f7064d.entry.js.map +1 -0
- package/dist/stzh-components/p-23de5712.entry.js +2 -0
- package/dist/stzh-components/p-23de5712.entry.js.map +1 -0
- package/dist/stzh-components/{p-0fb40e48.entry.js → p-24ea178a.entry.js} +2 -2
- package/dist/stzh-components/{p-3f0d3919.entry.js → p-2812752a.entry.js} +2 -2
- package/dist/stzh-components/{p-68d33cd3.entry.js → p-29c1cb5c.entry.js} +2 -2
- package/dist/stzh-components/p-2d405b51.js +2 -0
- package/dist/stzh-components/{p-cc1f8acc.js.map → p-2d405b51.js.map} +1 -1
- package/dist/stzh-components/{p-801af922.entry.js → p-30a522e0.entry.js} +2 -2
- package/dist/stzh-components/{p-d10a6897.entry.js → p-30a7c058.entry.js} +2 -2
- package/dist/stzh-components/{p-7ca981d1.entry.js → p-3261eab4.entry.js} +2 -2
- package/dist/stzh-components/{p-5d4a2df0.entry.js → p-32cb5b94.entry.js} +2 -2
- package/dist/stzh-components/{p-97df1d9f.entry.js → p-346d2f3d.entry.js} +2 -2
- package/dist/stzh-components/p-346f8661.entry.js +2 -0
- package/dist/stzh-components/p-346f8661.entry.js.map +1 -0
- package/dist/stzh-components/{p-8f1dbd3b.entry.js → p-3912a256.entry.js} +2 -2
- package/dist/stzh-components/{p-6fdc4c74.entry.js → p-39acdb68.entry.js} +2 -2
- package/dist/stzh-components/p-3cc6f193.entry.js +2 -0
- package/dist/stzh-components/p-3cc6f193.entry.js.map +1 -0
- package/dist/stzh-components/{p-204a6e41.entry.js → p-466263ff.entry.js} +2 -2
- package/dist/stzh-components/p-466263ff.entry.js.map +1 -0
- package/dist/stzh-components/p-49d356da.entry.js +2 -0
- package/dist/stzh-components/p-49d356da.entry.js.map +1 -0
- package/dist/stzh-components/p-585551c1.entry.js +2 -0
- package/dist/stzh-components/p-585551c1.entry.js.map +1 -0
- package/dist/stzh-components/{p-edf77853.entry.js → p-63c76fd5.entry.js} +2 -2
- package/dist/stzh-components/{p-533fea0b.entry.js → p-67e61035.entry.js} +2 -2
- package/dist/stzh-components/p-6e0c8764.entry.js +2 -0
- package/dist/stzh-components/p-6e0c8764.entry.js.map +1 -0
- package/dist/stzh-components/{p-80fafa1d.entry.js → p-6fffe2c8.entry.js} +2 -2
- package/dist/stzh-components/p-7b14ef7a.entry.js +2 -0
- package/dist/stzh-components/p-7b14ef7a.entry.js.map +1 -0
- package/dist/stzh-components/{p-eb79f3ed.entry.js → p-82c53e4f.entry.js} +2 -2
- package/dist/stzh-components/p-85143b35.entry.js +2 -0
- package/dist/stzh-components/p-85143b35.entry.js.map +1 -0
- package/dist/stzh-components/{p-8e0a2441.entry.js → p-87f3052b.entry.js} +2 -2
- package/dist/stzh-components/{p-b566a2c0.entry.js → p-8a82bf60.entry.js} +2 -2
- package/dist/stzh-components/{p-9b43127f.entry.js → p-8b04698a.entry.js} +2 -2
- package/dist/stzh-components/p-8b3828e7.entry.js +2 -0
- package/dist/stzh-components/p-8b3828e7.entry.js.map +1 -0
- package/dist/stzh-components/{p-4db427d5.entry.js → p-8c4d543d.entry.js} +2 -2
- package/dist/stzh-components/p-8c4d543d.entry.js.map +1 -0
- package/dist/stzh-components/p-90772ec6.entry.js +2 -0
- package/dist/stzh-components/p-90772ec6.entry.js.map +1 -0
- package/dist/stzh-components/p-9bc12eff.entry.js +2 -0
- package/dist/stzh-components/p-9bc12eff.entry.js.map +1 -0
- package/dist/stzh-components/{p-7754870d.entry.js → p-9c1b3929.entry.js} +2 -2
- package/dist/stzh-components/{p-5c3fddec.entry.js → p-9c643610.entry.js} +2 -2
- package/dist/stzh-components/{p-5c3fddec.entry.js.map → p-9c643610.entry.js.map} +1 -1
- package/dist/stzh-components/{p-4f49450d.entry.js → p-9e4f0532.entry.js} +2 -2
- package/dist/stzh-components/p-9e4f0532.entry.js.map +1 -0
- package/dist/stzh-components/{p-cff05968.entry.js → p-a249f3f6.entry.js} +2 -2
- package/dist/stzh-components/{p-a2e9723b.entry.js → p-aa3e4203.entry.js} +2 -2
- package/dist/stzh-components/{p-f5821678.entry.js → p-ab5ee55b.entry.js} +2 -2
- package/dist/stzh-components/{p-ce99f5e8.entry.js → p-acef653a.entry.js} +2 -2
- package/dist/stzh-components/{p-c5dbf7ad.entry.js → p-b03f41c3.entry.js} +2 -2
- package/dist/stzh-components/p-b273f95c.entry.js +2 -0
- package/dist/stzh-components/p-b273f95c.entry.js.map +1 -0
- package/dist/stzh-components/{p-72c375c7.entry.js → p-b397337c.entry.js} +2 -2
- package/dist/stzh-components/p-b397337c.entry.js.map +1 -0
- package/dist/stzh-components/{p-ef21f4dc.entry.js → p-ba716237.entry.js} +2 -2
- package/dist/stzh-components/p-ba716237.entry.js.map +1 -0
- package/dist/stzh-components/p-bcaef6d7.entry.js +2 -0
- package/dist/stzh-components/{p-012dc71e.entry.js.map → p-bcaef6d7.entry.js.map} +1 -1
- package/dist/stzh-components/p-bdff55a6.entry.js +2 -0
- package/dist/stzh-components/{p-78a16599.entry.js.map → p-bdff55a6.entry.js.map} +1 -1
- package/dist/stzh-components/{p-ee82f53c.entry.js → p-c169f243.entry.js} +2 -2
- package/dist/stzh-components/{p-7d030c40.entry.js → p-c3816fd3.entry.js} +2 -2
- package/dist/stzh-components/{p-7aac960b.entry.js → p-ce6dbd52.entry.js} +2 -2
- package/dist/stzh-components/{p-50c1632e.entry.js → p-d0ecdd5b.entry.js} +2 -2
- package/dist/stzh-components/{p-50c1632e.entry.js.map → p-d0ecdd5b.entry.js.map} +1 -1
- package/dist/stzh-components/{p-722b9e40.entry.js → p-d46bbc8c.entry.js} +2 -2
- package/dist/stzh-components/{p-c9eecee7.entry.js → p-d48ecb2f.entry.js} +2 -2
- package/dist/stzh-components/{p-ea152ff3.entry.js → p-d7697cf8.entry.js} +2 -2
- package/dist/stzh-components/p-d789647a.entry.js +2 -0
- package/dist/stzh-components/p-d789647a.entry.js.map +1 -0
- package/dist/stzh-components/{p-472b3327.entry.js → p-d7f1ed07.entry.js} +2 -2
- package/dist/stzh-components/{p-afde3fcd.entry.js → p-d8265b82.entry.js} +2 -2
- package/dist/stzh-components/{p-afde3fcd.entry.js.map → p-d8265b82.entry.js.map} +1 -1
- package/dist/stzh-components/{p-56346206.entry.js → p-d9fa718c.entry.js} +2 -2
- package/dist/stzh-components/p-e30a5acc.js +2 -0
- package/dist/stzh-components/p-e30a5acc.js.map +1 -0
- package/dist/stzh-components/{p-f4ed8d7e.entry.js → p-ef47c976.entry.js} +2 -2
- package/dist/stzh-components/p-ef47c976.entry.js.map +1 -0
- package/dist/stzh-components/{p-66007952.entry.js → p-f34720e2.entry.js} +2 -2
- package/dist/stzh-components/p-f34720e2.entry.js.map +1 -0
- package/dist/stzh-components/p-ffbb7594.entry.js +2 -0
- package/dist/stzh-components/p-ffbb7594.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +206 -22
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +3 -0
- package/dist/types/components/stzh-app-bar/stzh-app-bar.d.ts +15 -0
- package/dist/types/components/stzh-cardlist/stzh-cardlist.d.ts +1 -0
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +1 -1
- package/dist/types/components/stzh-contact/stzh-contact.d.ts +2 -0
- package/dist/types/components/stzh-contact-cv/stzh-contact-cv.d.ts +23 -0
- package/dist/types/components/stzh-contact-cv/stzh-contact-cv.localization.d.ts +8 -0
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +1 -1
- package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +9 -1
- package/dist/types/components/stzh-input/stzh-input.d.ts +3 -0
- package/dist/types/components/stzh-pagination/stzh-pagination.d.ts +4 -0
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +12 -3
- package/dist/types/components/stzh-section/stzh-section.d.ts +1 -1
- package/dist/types/components/stzh-sticky-actions/stzh-sticky-actions.d.ts +1 -0
- package/dist/types/components/stzh-upload/models/stzh-photographing-configuration.dto.d.ts +5 -0
- package/dist/types/components/stzh-upload/models/stzh-photographing-pdf-file.dto.d.ts +5 -0
- package/dist/types/components/stzh-upload/models/stzh-photographing-url-details.dto.d.ts +4 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +36 -0
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +6 -0
- package/dist/types/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.d.ts +7 -0
- package/dist/types/components/stzh-vbz-intro/stzh-vbz-intro.d.ts +15 -0
- package/dist/types/components/stzh-vbz-intro/stzh-vbz-intro.localization.d.ts +4 -0
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +2 -1
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -2
- package/dist/types/components.d.ts +186 -10
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/dist/vscode-data.json +120 -1
- package/package.json +3 -1
- package/dist/cjs/stzh-list-item.cjs.entry.js +0 -27
- package/dist/cjs/stzh-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-list.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-d0fff87f.js.map +0 -1
- package/dist/esm/stzh-list-item.entry.js.map +0 -1
- package/dist/esm/stzh-list.entry.js.map +0 -1
- package/dist/esm/utils-54aead01.js.map +0 -1
- package/dist/stzh-components/p-012dc71e.entry.js +0 -2
- package/dist/stzh-components/p-100d4052.entry.js +0 -2
- package/dist/stzh-components/p-100d4052.entry.js.map +0 -1
- package/dist/stzh-components/p-1f0e8499.entry.js +0 -2
- package/dist/stzh-components/p-1f0e8499.entry.js.map +0 -1
- package/dist/stzh-components/p-204a6e41.entry.js.map +0 -1
- package/dist/stzh-components/p-20db8d01.entry.js.map +0 -1
- package/dist/stzh-components/p-2d7966cf.entry.js +0 -2
- package/dist/stzh-components/p-4db427d5.entry.js.map +0 -1
- package/dist/stzh-components/p-4f49450d.entry.js.map +0 -1
- package/dist/stzh-components/p-523c0bb1.entry.js +0 -2
- package/dist/stzh-components/p-523c0bb1.entry.js.map +0 -1
- package/dist/stzh-components/p-52a914cd.entry.js +0 -2
- package/dist/stzh-components/p-52a914cd.entry.js.map +0 -1
- package/dist/stzh-components/p-59a1a257.entry.js.map +0 -1
- package/dist/stzh-components/p-648b7232.entry.js +0 -2
- package/dist/stzh-components/p-648b7232.entry.js.map +0 -1
- package/dist/stzh-components/p-66007952.entry.js.map +0 -1
- package/dist/stzh-components/p-6ab9dee8.entry.js +0 -2
- package/dist/stzh-components/p-6ab9dee8.entry.js.map +0 -1
- package/dist/stzh-components/p-6c2289da.entry.js +0 -2
- package/dist/stzh-components/p-6c2289da.entry.js.map +0 -1
- package/dist/stzh-components/p-72c375c7.entry.js.map +0 -1
- package/dist/stzh-components/p-75b79adf.entry.js.map +0 -1
- package/dist/stzh-components/p-771d370d.entry.js +0 -2
- package/dist/stzh-components/p-771d370d.entry.js.map +0 -1
- package/dist/stzh-components/p-77ba1f21.entry.js +0 -2
- package/dist/stzh-components/p-77ba1f21.entry.js.map +0 -1
- package/dist/stzh-components/p-78a16599.entry.js +0 -2
- package/dist/stzh-components/p-7e304ea3.js +0 -2
- package/dist/stzh-components/p-7e304ea3.js.map +0 -1
- package/dist/stzh-components/p-7efbb643.entry.js +0 -2
- package/dist/stzh-components/p-7efbb643.entry.js.map +0 -1
- package/dist/stzh-components/p-991309dd.entry.js +0 -2
- package/dist/stzh-components/p-991309dd.entry.js.map +0 -1
- package/dist/stzh-components/p-af7855ff.entry.js +0 -2
- package/dist/stzh-components/p-af7855ff.entry.js.map +0 -1
- package/dist/stzh-components/p-c877d32c.entry.js.map +0 -1
- package/dist/stzh-components/p-cc1f8acc.js +0 -2
- package/dist/stzh-components/p-cf856610.entry.js +0 -2
- package/dist/stzh-components/p-cf856610.entry.js.map +0 -1
- package/dist/stzh-components/p-ef21f4dc.entry.js.map +0 -1
- package/dist/stzh-components/p-f4ed8d7e.entry.js.map +0 -1
- package/dist/stzh-components/p-fdd6e755.entry.js +0 -2
- package/dist/stzh-components/p-fdd6e755.entry.js.map +0 -1
- /package/dist/stzh-components/{p-9684b22d.entry.js.map → p-09480ffe.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-161ae3d1.entry.js.map → p-0b15d79b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c1cd45e1.entry.js.map → p-12bffe97.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-27d5ad01.entry.js.map → p-16a2675e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0fb40e48.entry.js.map → p-24ea178a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3f0d3919.entry.js.map → p-2812752a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-68d33cd3.entry.js.map → p-29c1cb5c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-801af922.entry.js.map → p-30a522e0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d10a6897.entry.js.map → p-30a7c058.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7ca981d1.entry.js.map → p-3261eab4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-5d4a2df0.entry.js.map → p-32cb5b94.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-97df1d9f.entry.js.map → p-346d2f3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8f1dbd3b.entry.js.map → p-3912a256.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6fdc4c74.entry.js.map → p-39acdb68.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-edf77853.entry.js.map → p-63c76fd5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-533fea0b.entry.js.map → p-67e61035.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-80fafa1d.entry.js.map → p-6fffe2c8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-eb79f3ed.entry.js.map → p-82c53e4f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8e0a2441.entry.js.map → p-87f3052b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b566a2c0.entry.js.map → p-8a82bf60.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9b43127f.entry.js.map → p-8b04698a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7754870d.entry.js.map → p-9c1b3929.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cff05968.entry.js.map → p-a249f3f6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a2e9723b.entry.js.map → p-aa3e4203.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f5821678.entry.js.map → p-ab5ee55b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ce99f5e8.entry.js.map → p-acef653a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c5dbf7ad.entry.js.map → p-b03f41c3.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ee82f53c.entry.js.map → p-c169f243.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7d030c40.entry.js.map → p-c3816fd3.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7aac960b.entry.js.map → p-ce6dbd52.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-722b9e40.entry.js.map → p-d46bbc8c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c9eecee7.entry.js.map → p-d48ecb2f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ea152ff3.entry.js.map → p-d7697cf8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-472b3327.entry.js.map → p-d7f1ed07.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-56346206.entry.js.map → p-d9fa718c.entry.js.map} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { s as setPropsIfNull } from './utils.js';
|
|
3
|
+
|
|
4
|
+
const stzhAppBarCss = ".sc-stzh-app-bar-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-app-bar-h{display:none}.sc-stzh-app-bar-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-app-bar-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-app-bar-h *.sc-stzh-app-bar,.sc-stzh-app-bar-h *.sc-stzh-app-bar::before,.sc-stzh-app-bar-h *.sc-stzh-app-bar::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-app-bar-h .has-focus.sc-stzh-app-bar{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-app-bar-h .stzh-fylingfocus-focused.sc-stzh-app-bar{outline-style:none !important}.sc-stzh-app-bar-h .stzh-fylingfocus-focused.sc-stzh-app-bar::-moz-focus-inner{border:0 !important}.sc-stzh-app-bar-h{--stzh-app-bar-background-color:var(--stzh-color-white);--stzh-app-bar-hover-background-color:var(--stzh-color-coolgrey10)}.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five]{position:relative;flex-grow:1;--icon-text-margin:0;--background-color:var(--stzh-app-bar-background-color);--hover-background-color:var(--stzh-app-bar-hover-background-color);--padding-top:var(--stzh-space-xxsmall);--padding-bottom:var(--stzh-space-xxsmall);--padding-left:var(--stzh-space-xxsmall);--padding-right:var(--stzh-space-xxsmall)}.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five] .stzh-button__inner{flex-direction:column;gap:var(--stzh-space-xsmall)}@media screen and (min-width: 1260px){.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four] .stzh-button__inner,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five] .stzh-button__inner{flex-direction:inherit}}.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five] .stzh-button__text{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height)}@media screen and (min-width: 1260px){.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four] .stzh-button__text,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five] .stzh-button__text{font-size:var(--stzh-font-centi-font-size);line-height:var(--stzh-font-centi-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}}@media screen and (min-width: 1260px){.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four],.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five]{--icon-text-margin:inherit}}.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=one]:not(:first-child):after,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=two]:not(:first-child):after,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=three]:not(:first-child):after,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=four]:not(:first-child):after,.sc-stzh-app-bar-h .sc-stzh-app-bar-s>[slot=five]:not(:first-child):after{content:\"\";display:inline-block;width:0.0625rem;background-color:var(--stzh-color-coolgrey20);position:absolute;top:var(--stzh-space-xsmall);bottom:var(--stzh-space-xsmall)}.stzh-app-bar__buttons.sc-stzh-app-bar{display:flex;flex-direction:row}";
|
|
5
|
+
|
|
6
|
+
const StzhAppBar$1 = /*@__PURE__*/ proxyCustomElement(class StzhAppBar extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.init = () => {
|
|
11
|
+
const buttons = this.element.querySelectorAll("stzh-button");
|
|
12
|
+
buttons.forEach(button => {
|
|
13
|
+
setPropsIfNull(button, {
|
|
14
|
+
variant: "tertiary",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
this.init();
|
|
21
|
+
this.observer = new MutationObserver(this.init);
|
|
22
|
+
this.observer.observe(this.element, {
|
|
23
|
+
childList: true,
|
|
24
|
+
subtree: true,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
if (this.observer) {
|
|
29
|
+
this.observer.disconnect();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const classes = {
|
|
34
|
+
"stzh-app-bar": true,
|
|
35
|
+
};
|
|
36
|
+
return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-app-bar__buttons", role: "group" }, h("slot", { name: "one" }), h("slot", { name: "two" }), h("slot", { name: "three" }), h("slot", { name: "four" }), h("slot", { name: "five" })))));
|
|
37
|
+
}
|
|
38
|
+
get element() { return this; }
|
|
39
|
+
static get style() { return stzhAppBarCss; }
|
|
40
|
+
}, [6, "stzh-app-bar"]);
|
|
41
|
+
function defineCustomElement$1() {
|
|
42
|
+
if (typeof customElements === "undefined") {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const components = ["stzh-app-bar"];
|
|
46
|
+
components.forEach(tagName => { switch (tagName) {
|
|
47
|
+
case "stzh-app-bar":
|
|
48
|
+
if (!customElements.get(tagName)) {
|
|
49
|
+
customElements.define(tagName, StzhAppBar$1);
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
} });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const StzhAppBar = StzhAppBar$1;
|
|
56
|
+
const defineCustomElement = defineCustomElement$1;
|
|
57
|
+
|
|
58
|
+
export { StzhAppBar, defineCustomElement };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=stzh-app-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"stzh-app-bar.js","mappings":";;;AAAA,MAAM,aAAa,GAAG,ssJAAssJ;;MCgB/sJA,YAAU;EALvB;;;IAUU,SAAI,GAAG;MACb,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;MAE7D,OAAO,CAAC,OAAO,CAAC,MAAM;QACpB,cAAc,CAAC,MAAM,EAAE;UACrB,OAAO,EAAE,UAAU;SACK,CAAC,CAAC;OAC7B,CAAC,CAAC;KACJ,CAAC;GAqCH;EAnCC,iBAAiB;IACf,IAAI,CAAC,IAAI,EAAE,CAAC;IAEZ,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE;MAClC,SAAS,EAAE,IAAI;MACf,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;GACJ;EAED,oBAAoB;IAClB,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;KAC5B;GACF;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,cAAc,EAAE,IAAI;KACrB,CAAC;IAEF,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAE,OAAO,IACjB,WAAK,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAC,OAAO,IAC7C,YAAM,IAAI,EAAC,KAAK,GAAQ,EACxB,YAAM,IAAI,EAAC,KAAK,GAAQ,EACxB,YAAM,IAAI,EAAC,OAAO,GAAQ,EAC1B,YAAM,IAAI,EAAC,MAAM,GAAQ,EACzB,YAAM,IAAI,EAAC,MAAM,GAAQ,CACrB,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;","names":["StzhAppBar"],"sources":["src/components/stzh-app-bar/stzh-app-bar.scss?tag=stzh-app-bar&encapsulation=scoped","src/components/stzh-app-bar/stzh-app-bar.tsx"],"sourcesContent":["/**\n * @prop --stzh-app-bar-background-color: Background color of app bar buttons.\n * @prop --stzh-app-bar-hover-background-color: Hover background color of app bar buttons.\n */\n\n:host {\n --stzh-app-bar-background-color: var(--stzh-color-white);\n --stzh-app-bar-hover-background-color: var(--stzh-color-coolgrey10);\n\n ::slotted([slot=\"one\"]),\n ::slotted([slot=\"two\"]),\n ::slotted([slot=\"three\"]),\n ::slotted([slot=\"four\"]),\n ::slotted([slot=\"five\"]) {\n position: relative;\n flex-grow: 1;\n --icon-text-margin: 0;\n --background-color: var(--stzh-app-bar-background-color);\n --hover-background-color: var(--stzh-app-bar-hover-background-color);\n --padding-top: var(--stzh-space-xxsmall);\n --padding-bottom: var(--stzh-space-xxsmall);\n --padding-left: var(--stzh-space-xxsmall);\n --padding-right: var(--stzh-space-xxsmall);\n\n .stzh-button__inner {\n flex-direction: column;\n gap: var(--stzh-space-xsmall);\n\n @include mq($from: large) {\n flex-direction: inherit;\n }\n }\n\n .stzh-button__text {\n @include font('medium');\n @include fontSize('pico');\n\n @include mq($from: large) {\n @include fontSize('centi');\n }\n }\n\n @include mq($from: large) {\n --icon-text-margin: inherit;\n }\n\n &:not(:first-child):after {\n content: \"\";\n display: inline-block;\n width: 1px;\n background-color: var(--stzh-color-coolgrey20);\n position: absolute;\n top: var(--stzh-space-xsmall);\n bottom: var(--stzh-space-xsmall);\n }\n }\n}\n\n.stzh-app-bar {\n &__buttons {\n display: flex;\n flex-direction: row;\n }\n}\n","import { Component, Element, h, Host } from \"@stencil/core\";\n\nimport { setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot one - Slot for first button\n * @slot two - Slot for second button\n * @slot three - Slot for third button\n * @slot four - Slot for fourth button\n * @slot five - Slot for fifth button\n */\n@Component({\n tag: \"stzh-app-bar\",\n styleUrl: \"stzh-app-bar.scss\",\n scoped: true,\n})\nexport class StzhAppBar {\n @Element() element: HTMLStzhAppBarElement;\n\n private observer: MutationObserver;\n\n private init = () => {\n const buttons = this.element.querySelectorAll(\"stzh-button\");\n\n buttons.forEach(button => {\n setPropsIfNull(button, {\n variant: \"tertiary\",\n } as HTMLStzhButtonElement);\n });\n };\n\n connectedCallback() {\n this.init();\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-app-bar\": true,\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-app-bar__buttons\" role=\"group\">\n <slot name=\"one\"></slot>\n <slot name=\"two\"></slot>\n <slot name=\"three\"></slot>\n <slot name=\"four\"></slot>\n <slot name=\"five\"></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -4,7 +4,7 @@ import { d as defineCustomElement$3 } from './stzh-icon2.js';
|
|
|
4
4
|
import { d as defineCustomElement$2 } from './stzh-link2.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './stzh-sortable2.js';
|
|
6
6
|
|
|
7
|
-
const stzhCardlistCss = ".sc-stzh-cardlist-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-cardlist-h{display:none}.sc-stzh-cardlist-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-cardlist-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-cardlist-h *.sc-stzh-cardlist,.sc-stzh-cardlist-h *.sc-stzh-cardlist::before,.sc-stzh-cardlist-h *.sc-stzh-cardlist::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-cardlist-h .has-focus.sc-stzh-cardlist{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-cardlist-h .stzh-fylingfocus-focused.sc-stzh-cardlist{outline-style:none !important}.sc-stzh-cardlist-h .stzh-fylingfocus-focused.sc-stzh-cardlist::-moz-focus-inner{border:0 !important}.sc-stzh-cardlist-h{--description-color:var(--stzh-cardlist-description-color, inherit);--background-color:var(--stzh-cardlist-background-color, inherit)}.stzh-cardlist__cards.sc-stzh-cardlist{display:grid;gap:var(--stzh-grid-gutter)}@media screen and (min-width: 600px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 900px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-medium)}}@media screen and (min-width: 1260px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-large)}}@media screen and (min-width: 1600px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-ultra)}}.stzh-cardlist__header.sc-stzh-cardlist{display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start}@media screen and (min-width: 900px){.stzh-cardlist__header.sc-stzh-cardlist{flex-direction:row}}.stzh-cardlist__description.sc-stzh-cardlist{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);--stzh-icon-color:var(--stzh-color-primary70)}@media screen and (min-width: 900px){.stzh-cardlist__description.sc-stzh-cardlist{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-cardlist__description.sc-stzh-cardlist:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-cardlist__description.sc-stzh-cardlist:not(:empty){margin-bottom:0}}.stzh-cardlist__description.sc-stzh-cardlist-s>stzh-heading,.stzh-cardlist__description .sc-stzh-cardlist-s>stzh-heading{--color:var(--description-color)}.stzh-cardlist__switch.sc-stzh-cardlist{--color:inherit;align-self:end}.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-xxlarge)}}.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){row-gap:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){row-gap:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){row-gap:var(--stzh-space-medium)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){padding-left:calc(((100% - (var(--stzh-grid-gutter-small) * 3)) / 4) + var(--stzh-grid-gutter-small))}}@media screen and (min-width: 900px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){grid-template-columns:repeat(2, minmax(0, 1fr));padding-left:0}}.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){grid-template-columns:repeat(2, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){grid-template-columns:repeat(3, minmax(0, 1fr))}}.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{row-gap:var(--stzh-space-xlarge)}@media screen and (min-width: 900px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{row-gap:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{row-gap:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media screen and (min-width: 900px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(4, minmax(0, 1fr))}}.stzh-cardlist--layout-searchresults.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-xlarge)}.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-xxlarge)}}.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{background-color:var(--background-color);position:relative;left:50%;right:50%;margin-left:calc(-50vw + var(--stzh-scrollbar-width) / 2);margin-right:calc(-50vw + var(--stzh-scrollbar-width) / 2);width:calc(100vw - var(--stzh-scrollbar-width));max-width:calc(100vw - var(--stzh-scrollbar-width));padding-top:var(--stzh-space-xxlarge);padding-bottom:var(--stzh-space-xxlarge)}@media screen and (min-width: 600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-top:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-bottom:var(--stzh-space-xbig)}}.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:1.25rem;margin-right:1.25rem}@media screen and (min-width: 600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:2rem;margin-right:2rem}}@media screen and (min-width: 900px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:2.5rem;margin-right:2.5rem}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:4rem;margin-right:4rem}}@media screen and (min-width: 1600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:auto;margin-right:auto;max-width:84.25rem}}";
|
|
7
|
+
const stzhCardlistCss = ".sc-stzh-cardlist-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-cardlist-h{display:none}.sc-stzh-cardlist-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-cardlist-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-cardlist-h *.sc-stzh-cardlist,.sc-stzh-cardlist-h *.sc-stzh-cardlist::before,.sc-stzh-cardlist-h *.sc-stzh-cardlist::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-cardlist-h .has-focus.sc-stzh-cardlist{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-cardlist-h .stzh-fylingfocus-focused.sc-stzh-cardlist{outline-style:none !important}.sc-stzh-cardlist-h .stzh-fylingfocus-focused.sc-stzh-cardlist::-moz-focus-inner{border:0 !important}.sc-stzh-cardlist-h{--description-color:var(--stzh-cardlist-description-color, inherit);--background-color:var(--stzh-cardlist-background-color, inherit)}.stzh-cardlist__cards.sc-stzh-cardlist{display:grid;gap:var(--stzh-grid-gutter)}@media screen and (min-width: 600px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 900px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-medium)}}@media screen and (min-width: 1260px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-large)}}@media screen and (min-width: 1600px){.stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-grid-gutter-ultra)}}.stzh-cardlist__header.sc-stzh-cardlist{display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start}@media screen and (min-width: 900px){.stzh-cardlist__header.sc-stzh-cardlist{flex-direction:row}}.stzh-cardlist__description.sc-stzh-cardlist{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);--stzh-icon-color:var(--stzh-color-primary70)}@media screen and (min-width: 900px){.stzh-cardlist__description.sc-stzh-cardlist{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-cardlist__description.sc-stzh-cardlist:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-cardlist__description.sc-stzh-cardlist:not(:empty){margin-bottom:0}}.stzh-cardlist__description.sc-stzh-cardlist-s>stzh-heading,.stzh-cardlist__description .sc-stzh-cardlist-s>stzh-heading{--color:var(--description-color)}.stzh-cardlist__switch.sc-stzh-cardlist{--color:inherit;align-self:end}.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist.sc-stzh-cardlist:has(.stzh-cardlist__description:not(:empty)) .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--has-toggle-link.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist{margin-bottom:var(--stzh-space-xxlarge)}}.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){row-gap:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){row-gap:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){row-gap:var(--stzh-space-medium)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){padding-left:calc(((100% - (var(--stzh-grid-gutter-small) * 3)) / 4) + var(--stzh-grid-gutter-small))}}@media screen and (min-width: 900px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation:not([has-lead])),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation:not([has-lead])){grid-template-columns:repeat(2, minmax(0, 1fr));padding-left:0}}.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){row-gap:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){grid-template-columns:repeat(2, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-card-navigation[has-lead]),.stzh-cardlist--layout-subpages.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist:has(stzh-pi-content-navigation[has-lead]){grid-template-columns:repeat(3, minmax(0, 1fr))}}.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{row-gap:var(--stzh-space-xlarge)}@media screen and (min-width: 900px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{row-gap:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{row-gap:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media screen and (min-width: 900px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(4, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-teasers.stzh-cardlist--max-3-cols.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.stzh-cardlist--max-3-cols.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{grid-template-columns:repeat(3, minmax(0, 1fr))}}.stzh-cardlist--layout-searchresults.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-xlarge)}.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-fullwidth.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{gap:var(--stzh-space-xxlarge)}}.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{background-color:var(--background-color);position:relative;left:50%;right:50%;margin-left:calc(-50vw + var(--stzh-scrollbar-width) / 2);margin-right:calc(-50vw + var(--stzh-scrollbar-width) / 2);width:calc(100vw - var(--stzh-scrollbar-width));max-width:calc(100vw - var(--stzh-scrollbar-width));padding-top:var(--stzh-space-xxlarge);padding-bottom:var(--stzh-space-xxlarge)}@media screen and (min-width: 600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-top:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist{padding-bottom:var(--stzh-space-xbig)}}.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:1.25rem;margin-right:1.25rem}@media screen and (min-width: 600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:2rem;margin-right:2rem}}@media screen and (min-width: 900px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:2.5rem;margin-right:2.5rem}}@media screen and (min-width: 1260px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:4rem;margin-right:4rem}}@media screen and (min-width: 1600px){.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__header.sc-stzh-cardlist,.stzh-cardlist--layout-pi-teasers.sc-stzh-cardlist .stzh-cardlist__cards.sc-stzh-cardlist{margin-left:auto;margin-right:auto;max-width:84.25rem}}";
|
|
8
8
|
|
|
9
9
|
const StzhCardlist = /*@__PURE__*/ proxyCustomElement(class StzhCardlist extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
@@ -65,22 +65,28 @@ const StzhCardlist = /*@__PURE__*/ proxyCustomElement(class StzhCardlist extends
|
|
|
65
65
|
this.sortableEnabled = false;
|
|
66
66
|
this.sortableDataIdAttribute = "data-id";
|
|
67
67
|
this.allCollapsed = false;
|
|
68
|
+
this.isStzhAnchornavVisible = false;
|
|
68
69
|
}
|
|
69
70
|
collapseListener() {
|
|
70
71
|
this.updateCollapsedState();
|
|
71
72
|
}
|
|
72
73
|
async componentWillLoad() {
|
|
74
|
+
this.isStzhAnchornavVisible =
|
|
75
|
+
document.documentElement.style.getPropertyValue("--stzh-anchornav-is-visible") === "1";
|
|
73
76
|
if (!this.localization) {
|
|
74
77
|
this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, "cardlist");
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
80
|
componentDidLoad() {
|
|
81
|
+
this.isStzhAnchornavVisible =
|
|
82
|
+
document.documentElement.style.getPropertyValue("--stzh-anchornav-is-visible") === "1";
|
|
78
83
|
this.updateCollapsedState();
|
|
79
84
|
}
|
|
80
85
|
render() {
|
|
81
86
|
const classes = {
|
|
82
87
|
"stzh-cardlist": true,
|
|
83
88
|
"stzh-cardlist--has-toggle-link": this.showToggleLink,
|
|
89
|
+
"stzh-cardlist--max-3-cols": this.isStzhAnchornavVisible,
|
|
84
90
|
[`stzh-cardlist--layout-${this.layout}`]: !!this.layout,
|
|
85
91
|
};
|
|
86
92
|
return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-cardlist__header" }, h("div", { class: "stzh-cardlist__description" }, this.description ? this.description : h("slot", { name: "description" })), this.showToggleLink && (h("stzh-link", { class: "stzh-cardlist__switch", icon: this.allCollapsed ? "list-expanded" : "list-shrinked", label: this.allCollapsed ? this.localization.expandAll : this.localization.collapseAll, onClick: this.collapseClick }))), h("stzh-sortable", { disabled: !this.sortableEnabled, dataIdAttribute: this.sortableDataIdAttribute, ghostClone: this.sortableGhostClone }, h("div", { class: "stzh-cardlist__cards", role: "list" }, h("slot", null))))));
|
|
@@ -94,7 +100,8 @@ const StzhCardlist = /*@__PURE__*/ proxyCustomElement(class StzhCardlist extends
|
|
|
94
100
|
"showToggleLink": [516, "show-toggle-link"],
|
|
95
101
|
"sortableEnabled": [4, "sortable-enabled"],
|
|
96
102
|
"sortableDataIdAttribute": [1, "sortable-data-id-attribute"],
|
|
97
|
-
"allCollapsed": [32]
|
|
103
|
+
"allCollapsed": [32],
|
|
104
|
+
"isStzhAnchornavVisible": [32]
|
|
98
105
|
}, [[0, "stzhCollapse", "collapseListener"]]]);
|
|
99
106
|
function defineCustomElement() {
|
|
100
107
|
if (typeof customElements === "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stzh-cardlist2.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,+7YAA+7Y;;MCc18Y,YAAY;;;;;IA8Bf,kBAAa,GAAG;MACtB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;MACrE,KAAK,CAAC,OAAO,CAAC,IAAI;QAChB,IAAI,IAAI,CAAC,WAAW,EAAE;UACpB,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;SACrC;OACF,CAAC,CAAC;MAEH,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;MAEvC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;QACxB,SAAS,EAAE,eAAe;QAC1B,YAAY,EAAE,IAAI,CAAC,YAAY;OAChC,CAAC,CAAC;KACJ,CAAC;IAEM,yBAAoB,GAAG;MAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;MACrE,IAAI,CAAC,YAAY,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC1D,CAAC;IAEM,uBAAkB,GAAa,CAA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,KAAK,EAAE,OAAO,IACjB,WAAK,KAAK,EAAC,uBAAuB,IAChC,WAAK,KAAK,EAAC,4BAA4B,IACpC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,GAAG,YAAM,IAAI,EAAC,aAAa,GAAQ,CACnE,EACL,IAAI,CAAC,cAAc,KAClB,iBACE,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAE,IAAI,CAAC,YAAY,GAAG,eAAe,GAAG,eAAe,EAC3D,KAAK,EAAE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,EACtF,OAAO,EAAE,IAAI,CAAC,aAAa,GAChB,CACd,CACG,EAEN,qBACE,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,EAC/B,eAAe,EAAE,IAAI,CAAC,uBAAuB,EAC7C,UAAU,EAAE,IAAI,CAAC,kBAAkB,IAEnC,WAAK,KAAK,EAAC,sBAAsB,EAAC,IAAI,EAAC,MAAM,IAC3C,eAAa,CACT,CACQ,CACZ,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-cardlist/stzh-cardlist.scss?tag=stzh-cardlist&encapsulation=scoped","src/components/stzh-cardlist/stzh-cardlist.tsx"],"sourcesContent":[":host {\n --description-color: var(--stzh-cardlist-description-color, inherit);\n --background-color: var(--stzh-cardlist-background-color, inherit);\n}\n\n.stzh-cardlist {\n &__cards {\n display: grid;\n gap: $gridGutter;\n\n @include mq($from: small) {\n gap: $gridGutterSmall;\n }\n\n @include mq($from: medium) {\n gap: $gridGutterMedium;\n }\n\n @include mq($from: large) {\n gap: $gridGutterLarge;\n }\n\n @include mq($from: ultra) {\n gap: $gridGutterUltra;\n }\n }\n\n &__header {\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n align-items: flex-start;\n\n @include mq($from: medium) { // was smallheader before\n flex-direction: row;\n }\n }\n\n &__description {\n @include fontCurve('p1');\n --stzh-icon-color: #{$colorPrimary70};\n\n &:not(:empty) {\n margin-bottom: space('xsmall');\n\n @include mq($from: medium) { // was smallheader before\n margin-bottom: 0;\n }\n }\n\n ::slotted(stzh-heading) {\n --color: var(--description-color);\n }\n }\n\n &__switch {\n --color: inherit;\n align-self: end;\n }\n\n /* Has content inside header */\n\n &:has(#{&}__description:not(:empty)) &__header,\n &--has-toggle-link &__header {\n @include spaceCurve('margin-bottom', 'regular');\n }\n\n /* Subpages layout variant */\n\n &--layout-subpages &__cards:has(stzh-card-navigation:not([has-lead])),\n &--layout-subpages &__cards:has(stzh-pi-content-navigation:not([has-lead])) {\n @include spaceCurve('row-gap', 'tiny');\n\n @include mq($from: small) {\n padding-left: calc(((100% - (#{$gridGutterSmall} * 3)) / 4) + #{$gridGutterSmall});\n }\n\n @include mq($from: medium) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n padding-left: 0;\n }\n }\n\n &--layout-subpages &__cards:has(stzh-card-navigation[has-lead]),\n &--layout-subpages &__cards:has(stzh-pi-content-navigation[has-lead]) {\n @include spaceCurve('row-gap', 'regular');\n\n @include mq($from: small) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n @include mq($from: large) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n /* Teasers and Pi Teasers layout variant */\n\n &--layout-teasers &__cards,\n &--layout-pi-teasers &__cards {\n @include spaceCurve('row-gap', 'medium');\n\n @include mq($from: small) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n @include mq($from: medium) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n @include mq($from: large) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n /* Searchresults layout variant */\n\n &--layout-searchresults &__cards {\n gap: space('xlarge');\n }\n\n /* Fullwidth layout variant (e.g. for MeinKonto dashboard) */\n\n &--layout-fullwidth &__cards {\n @include spaceCurve('gap', 'regular');\n }\n\n /* Pi Teasers variant */\n &--layout-pi-teasers {\n background-color: var(--background-color);\n position: relative;\n left: 50%;\n right: 50%;\n margin-left: calc(-50vw + var(--stzh-scrollbar-width) / 2);\n margin-right: calc(-50vw + var(--stzh-scrollbar-width) / 2);\n width: calc(100vw - var(--stzh-scrollbar-width));\n max-width: calc(100vw - var(--stzh-scrollbar-width));\n @include spaceCurve('padding-top', 'big');\n @include spaceCurve('padding-bottom', 'big');\n }\n\n &--layout-pi-teasers &__header,\n &--layout-pi-teasers &__cards {\n @include container();\n }\n}\n","import { Component, Host, h, Element, Prop, Listen, State, Event, EventEmitter } from \"@stencil/core\";\n\nimport { StzhCardlistCollapseAllEvent } from \"../../index\";\nimport { StzhCardlistLocalizedText } from \"./stzh-cardlist.localization\";\n\n/**\n * @slot - Slot for `stzh-card` elements\n * @slot description - Slot for description\n */\n@Component({\n tag: \"stzh-cardlist\",\n styleUrl: \"stzh-cardlist.scss\",\n scoped: true,\n})\nexport class StzhCardlist {\n /** Translation strings */\n @Prop() localization: StzhCardlistLocalizedText;\n\n @Prop({ reflect: true }) layout: \"fullwidth\" | \"searchresults\" | \"subpages\" | \"teasers\" | \"pi-teasers\" = \"fullwidth\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Whether collapse/expand toggle link */\n @Prop({ reflect: true }) showToggleLink: boolean = false;\n\n /** Whether sorting should be enabled */\n @Prop() sortableEnabled: boolean = false;\n\n /** HTML attribute that is used by the `toArray()` of sortable method */\n @Prop() sortableDataIdAttribute: string = \"data-id\";\n\n @Element() element: HTMLStzhCardlistElement;\n\n /** Collapse all event */\n @Event() stzhCollapseAll: EventEmitter<StzhCardlistCollapseAllEvent>;\n\n @Listen(\"stzhCollapse\")\n collapseListener() {\n this.updateCollapsedState();\n }\n\n @State() allCollapsed: boolean = false;\n\n private collapseClick = () => {\n const cards = Array.from(this.element.querySelectorAll(\"stzh-card\"));\n cards.forEach(card => {\n if (card.collapsible) {\n card.collapsed = !this.allCollapsed;\n }\n });\n\n this.allCollapsed = !this.allCollapsed;\n\n this.stzhCollapseAll.emit({\n component: \"stzh-cardlist\",\n allCollapsed: this.allCollapsed,\n });\n };\n\n private updateCollapsedState = () => {\n const cards = Array.from(this.element.querySelectorAll(\"stzh-card\"));\n this.allCollapsed = !cards.some(card => !card.collapsed);\n };\n\n private sortableGhostClone: Function = (dragElement: HTMLElement) => {\n // const [clonedElement, clonedStzhElement, originalStzhElement] = cloneWrappedStzhElement(dragElement);\n\n // if (\n // clonedStzhElement\n // && originalStzhElement\n // && clonedStzhElement.tagName.toLowerCase() === \"stzh-card\"\n // ) {\n // const clonedStzhElementCard: HTMLStzhCardElement = clonedStzhElement as HTMLStzhCardElement;\n // const originalStzhElementCard: HTMLStzhCardElement = originalStzhElement as HTMLStzhCardElement;\n\n // // copy every property that is not reflected to its attribute\n // clonedStzhElementCard.heading = originalStzhElementCard.heading;\n // clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;\n // clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;\n // clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;\n // clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;\n // }\n\n // return clonedElement;\n\n const card =\n dragElement.tagName.toLowerCase() === \"stzh-card\" ? dragElement : dragElement.querySelector(\"stzh-card\");\n\n if (card) {\n const originalElement = dragElement as HTMLStzhCardElement;\n const clonedElement = dragElement.cloneNode(true) as HTMLStzhCardElement;\n\n // copy every property that is not reflected to its attribute\n clonedElement.heading = originalElement.heading;\n clonedElement.subtitle = originalElement.subtitle;\n clonedElement.headerActions = originalElement.headerActions;\n clonedElement.footerActions = originalElement.footerActions;\n clonedElement.hideMovementActions = originalElement.hideMovementActions;\n\n return clonedElement;\n }\n };\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"cardlist\");\n }\n }\n\n componentDidLoad() {\n this.updateCollapsedState();\n }\n\n render() {\n const classes = {\n \"stzh-cardlist\": true,\n \"stzh-cardlist--has-toggle-link\": this.showToggleLink,\n [`stzh-cardlist--layout-${this.layout}`]: !!this.layout,\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-cardlist__header\">\n <div class=\"stzh-cardlist__description\">\n {this.description ? this.description : <slot name=\"description\"></slot>}\n </div>\n {this.showToggleLink && (\n <stzh-link\n class=\"stzh-cardlist__switch\"\n icon={this.allCollapsed ? \"list-expanded\" : \"list-shrinked\"}\n label={this.allCollapsed ? this.localization.expandAll : this.localization.collapseAll}\n onClick={this.collapseClick}\n ></stzh-link>\n )}\n </div>\n\n <stzh-sortable\n disabled={!this.sortableEnabled}\n dataIdAttribute={this.sortableDataIdAttribute}\n ghostClone={this.sortableGhostClone}\n >\n <div class=\"stzh-cardlist__cards\" role=\"list\">\n <slot></slot>\n </div>\n </stzh-sortable>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"stzh-cardlist2.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,2vZAA2vZ;;MCctwZ,YAAY;;;;;IA+Bf,kBAAa,GAAG;MACtB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;MACrE,KAAK,CAAC,OAAO,CAAC,IAAI;QAChB,IAAI,IAAI,CAAC,WAAW,EAAE;UACpB,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;SACrC;OACF,CAAC,CAAC;MAEH,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;MAEvC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;QACxB,SAAS,EAAE,eAAe;QAC1B,YAAY,EAAE,IAAI,CAAC,YAAY;OAChC,CAAC,CAAC;KACJ,CAAC;IAEM,yBAAoB,GAAG;MAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC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sources":["src/components/stzh-cardlist/stzh-cardlist.scss?tag=stzh-cardlist&encapsulation=scoped","src/components/stzh-cardlist/stzh-cardlist.tsx"],"sourcesContent":[":host {\n --description-color: var(--stzh-cardlist-description-color, inherit);\n --background-color: var(--stzh-cardlist-background-color, inherit);\n}\n\n.stzh-cardlist {\n &__cards {\n display: grid;\n gap: $gridGutter;\n\n @include mq($from: small) {\n gap: $gridGutterSmall;\n }\n\n @include mq($from: medium) {\n gap: $gridGutterMedium;\n }\n\n @include mq($from: large) {\n gap: $gridGutterLarge;\n }\n\n @include mq($from: ultra) {\n gap: $gridGutterUltra;\n }\n }\n\n &__header {\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n align-items: flex-start;\n\n @include mq($from: medium) { // was smallheader before\n flex-direction: row;\n }\n }\n\n &__description {\n @include fontCurve('p1');\n --stzh-icon-color: #{$colorPrimary70};\n\n &:not(:empty) {\n margin-bottom: space('xsmall');\n\n @include mq($from: medium) { // was smallheader before\n margin-bottom: 0;\n }\n }\n\n ::slotted(stzh-heading) {\n --color: var(--description-color);\n }\n }\n\n &__switch {\n --color: inherit;\n align-self: end;\n }\n\n /* Has content inside header */\n\n &:has(#{&}__description:not(:empty)) &__header,\n &--has-toggle-link &__header {\n @include spaceCurve('margin-bottom', 'regular');\n }\n\n /* Subpages layout variant */\n\n &--layout-subpages &__cards:has(stzh-card-navigation:not([has-lead])),\n &--layout-subpages &__cards:has(stzh-pi-content-navigation:not([has-lead])) {\n @include spaceCurve('row-gap', 'tiny');\n\n @include mq($from: small) {\n padding-left: calc(((100% - (#{$gridGutterSmall} * 3)) / 4) + #{$gridGutterSmall});\n }\n\n @include mq($from: medium) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n padding-left: 0;\n }\n }\n\n &--layout-subpages &__cards:has(stzh-card-navigation[has-lead]),\n &--layout-subpages &__cards:has(stzh-pi-content-navigation[has-lead]) {\n @include spaceCurve('row-gap', 'regular');\n\n @include mq($from: small) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n @include mq($from: large) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n /* Teasers and Pi Teasers layout variant */\n\n &--layout-teasers &__cards,\n &--layout-pi-teasers &__cards {\n @include spaceCurve('row-gap', 'medium');\n\n @include mq($from: small) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n @include mq($from: medium) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n @include mq($from: large) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n &--layout-teasers#{&}--max-3-cols &__cards,\n &--layout-pi-teasers#{&}--max-3-cols &__cards {\n @include mq($from: large) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n /* Searchresults layout variant */\n\n &--layout-searchresults &__cards {\n gap: space('xlarge');\n }\n\n /* Fullwidth layout variant (e.g. for MeinKonto dashboard) */\n\n &--layout-fullwidth &__cards {\n @include spaceCurve('gap', 'regular');\n }\n\n /* Pi Teasers variant */\n &--layout-pi-teasers {\n background-color: var(--background-color);\n position: relative;\n left: 50%;\n right: 50%;\n margin-left: calc(-50vw + var(--stzh-scrollbar-width) / 2);\n margin-right: calc(-50vw + var(--stzh-scrollbar-width) / 2);\n width: calc(100vw - var(--stzh-scrollbar-width));\n max-width: calc(100vw - var(--stzh-scrollbar-width));\n @include spaceCurve('padding-top', 'big');\n @include spaceCurve('padding-bottom', 'big');\n }\n\n &--layout-pi-teasers &__header,\n &--layout-pi-teasers &__cards {\n @include container();\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State } from \"@stencil/core\";\n\nimport { StzhCardlistCollapseAllEvent } from \"../../index\";\nimport { StzhCardlistLocalizedText } from \"./stzh-cardlist.localization\";\n\n/**\n * @slot - Slot for `stzh-card` elements\n * @slot description - Slot for description\n */\n@Component({\n tag: \"stzh-cardlist\",\n styleUrl: \"stzh-cardlist.scss\",\n scoped: true,\n})\nexport class StzhCardlist {\n /** Translation strings */\n @Prop() localization: StzhCardlistLocalizedText;\n\n @Prop({ reflect: true }) layout: \"fullwidth\" | \"searchresults\" | \"subpages\" | \"teasers\" | \"pi-teasers\" = \"fullwidth\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Whether collapse/expand toggle link */\n @Prop({ reflect: true }) showToggleLink: boolean = false;\n\n /** Whether sorting should be enabled */\n @Prop() sortableEnabled: boolean = false;\n\n /** HTML attribute that is used by the `toArray()` of sortable method */\n @Prop() sortableDataIdAttribute: string = \"data-id\";\n\n @Element() element: HTMLStzhCardlistElement;\n\n /** Collapse all event */\n @Event() stzhCollapseAll: EventEmitter<StzhCardlistCollapseAllEvent>;\n\n @Listen(\"stzhCollapse\")\n collapseListener() {\n this.updateCollapsedState();\n }\n\n @State() allCollapsed: boolean = false;\n @State() isStzhAnchornavVisible: boolean = false;\n\n private collapseClick = () => {\n const cards = Array.from(this.element.querySelectorAll(\"stzh-card\"));\n cards.forEach(card => {\n if (card.collapsible) {\n card.collapsed = !this.allCollapsed;\n }\n });\n\n this.allCollapsed = !this.allCollapsed;\n\n this.stzhCollapseAll.emit({\n component: \"stzh-cardlist\",\n allCollapsed: this.allCollapsed,\n });\n };\n\n private updateCollapsedState = () => {\n const cards = Array.from(this.element.querySelectorAll(\"stzh-card\"));\n this.allCollapsed = !cards.some(card => !card.collapsed);\n };\n\n private sortableGhostClone: Function = (dragElement: HTMLElement) => {\n // const [clonedElement, clonedStzhElement, originalStzhElement] = cloneWrappedStzhElement(dragElement);\n\n // if (\n // clonedStzhElement\n // && originalStzhElement\n // && clonedStzhElement.tagName.toLowerCase() === \"stzh-card\"\n // ) {\n // const clonedStzhElementCard: HTMLStzhCardElement = clonedStzhElement as HTMLStzhCardElement;\n // const originalStzhElementCard: HTMLStzhCardElement = originalStzhElement as HTMLStzhCardElement;\n\n // // copy every property that is not reflected to its attribute\n // clonedStzhElementCard.heading = originalStzhElementCard.heading;\n // clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;\n // clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;\n // clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;\n // clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;\n // }\n\n // return clonedElement;\n\n const card =\n dragElement.tagName.toLowerCase() === \"stzh-card\" ? dragElement : dragElement.querySelector(\"stzh-card\");\n\n if (card) {\n const originalElement = dragElement as HTMLStzhCardElement;\n const clonedElement = dragElement.cloneNode(true) as HTMLStzhCardElement;\n\n // copy every property that is not reflected to its attribute\n clonedElement.heading = originalElement.heading;\n clonedElement.subtitle = originalElement.subtitle;\n clonedElement.headerActions = originalElement.headerActions;\n clonedElement.footerActions = originalElement.footerActions;\n clonedElement.hideMovementActions = originalElement.hideMovementActions;\n\n return clonedElement;\n }\n };\n\n async componentWillLoad() {\n this.isStzhAnchornavVisible =\n document.documentElement.style.getPropertyValue(\"--stzh-anchornav-is-visible\") === \"1\";\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"cardlist\");\n }\n }\n\n componentDidLoad() {\n this.isStzhAnchornavVisible =\n document.documentElement.style.getPropertyValue(\"--stzh-anchornav-is-visible\") === \"1\";\n this.updateCollapsedState();\n }\n\n render() {\n const classes = {\n \"stzh-cardlist\": true,\n \"stzh-cardlist--has-toggle-link\": this.showToggleLink,\n \"stzh-cardlist--max-3-cols\": this.isStzhAnchornavVisible,\n [`stzh-cardlist--layout-${this.layout}`]: !!this.layout,\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-cardlist__header\">\n <div class=\"stzh-cardlist__description\">\n {this.description ? this.description : <slot name=\"description\"></slot>}\n </div>\n {this.showToggleLink && (\n <stzh-link\n class=\"stzh-cardlist__switch\"\n icon={this.allCollapsed ? \"list-expanded\" : \"list-shrinked\"}\n label={this.allCollapsed ? this.localization.expandAll : this.localization.collapseAll}\n onClick={this.collapseClick}\n ></stzh-link>\n )}\n </div>\n\n <stzh-sortable\n disabled={!this.sortableEnabled}\n dataIdAttribute={this.sortableDataIdAttribute}\n ghostClone={this.sortableGhostClone}\n >\n <div class=\"stzh-cardlist__cards\" role=\"list\">\n <slot></slot>\n </div>\n </stzh-sortable>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -26,37 +26,37 @@ const StzhChip = /*@__PURE__*/ proxyCustomElement(class StzhChip extends HTMLEle
|
|
|
26
26
|
const focusEvent = new FocusEvent("focus", {
|
|
27
27
|
view: window,
|
|
28
28
|
bubbles: false,
|
|
29
|
-
cancelable: false
|
|
29
|
+
cancelable: false,
|
|
30
30
|
});
|
|
31
31
|
this.element.dispatchEvent(focusEvent);
|
|
32
32
|
this.stzhFocus.emit({
|
|
33
33
|
component: "stzh-chip",
|
|
34
|
-
originalEvent: event
|
|
34
|
+
originalEvent: event,
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
this.onBlur = (event) => {
|
|
38
38
|
const blurEvent = new FocusEvent("blur", {
|
|
39
39
|
view: window,
|
|
40
40
|
bubbles: false,
|
|
41
|
-
cancelable: false
|
|
41
|
+
cancelable: false,
|
|
42
42
|
});
|
|
43
43
|
this.element.dispatchEvent(blurEvent);
|
|
44
44
|
this.stzhBlur.emit({
|
|
45
45
|
component: "stzh-chip",
|
|
46
|
-
originalEvent: event
|
|
46
|
+
originalEvent: event,
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
this.onClick = (event) => {
|
|
50
50
|
this.stzhClick.emit({
|
|
51
51
|
component: "stzh-chip",
|
|
52
52
|
originalEvent: event,
|
|
53
|
-
href: this.href
|
|
53
|
+
href: this.href,
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
this.onRemoveClick = (event) => {
|
|
57
57
|
this.stzhRemove.emit({
|
|
58
58
|
component: "stzh-chip",
|
|
59
|
-
originalEvent: event
|
|
59
|
+
originalEvent: event,
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
this.label = "";
|
|
@@ -90,16 +90,11 @@ const StzhChip = /*@__PURE__*/ proxyCustomElement(class StzhChip extends HTMLEle
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
renderInner() {
|
|
93
|
-
return (h("div", { class: "stzh-chip__button-inner" }, h("div", { class: "stzh-chip__icon-wrapper" }, this.icon || (typeof this.icon === "undefined" && this.variant === "tag" && this.type !== "default") ?
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|| this.type === "success" && "checkmark-circle" })
|
|
99
|
-
:
|
|
100
|
-
h("slot", { name: "icon" })), h("stzh-clamp", { lines: 1, class: "stzh-chip__label", ref: (el) => (this.text = el) }, this.label ? this.label : h("slot", null), this.counter &&
|
|
101
|
-
h("span", { class: "stzh-chip__vhidden" }, "\u00A0(", this.counter, ")")), this.counter &&
|
|
102
|
-
h("div", { class: "stzh-chip__counter", "aria-hidden": "true" }, this.counter)));
|
|
93
|
+
return (h("div", { class: "stzh-chip__button-inner" }, h("div", { class: "stzh-chip__icon-wrapper" }, this.icon || (typeof this.icon === "undefined" && this.variant === "tag" && this.type !== "default") ? (h("stzh-icon", { class: "stzh-chip__icon", name: this.icon ||
|
|
94
|
+
(this.type === "info" && "info-help") ||
|
|
95
|
+
(this.type === "warning" && "important-warning") ||
|
|
96
|
+
(this.type === "error" && "warning") ||
|
|
97
|
+
(this.type === "success" && "checkmark-circle") })) : (h("slot", { name: "icon" }))), h("stzh-clamp", { lines: 1, class: "stzh-chip__label", ref: el => (this.text = el) }, this.label ? this.label : h("slot", null), this.counter && this.counter !== "undefined" && this.counter !== undefined && (h("span", { class: "stzh-chip__vhidden" }, "\u00A0(", this.counter, ")"))), this.counter && this.counter !== "undefined" && this.counter !== undefined && (h("div", { class: "stzh-chip__counter", "aria-hidden": "true" }, this.counter))));
|
|
103
98
|
}
|
|
104
99
|
render() {
|
|
105
100
|
const classes = {
|
|
@@ -111,23 +106,18 @@ const StzhChip = /*@__PURE__*/ proxyCustomElement(class StzhChip extends HTMLEle
|
|
|
111
106
|
"stzh-chip--has-counter": !!this.counter,
|
|
112
107
|
[`stzh-chip--type-${this.type}`]: !!this.type,
|
|
113
108
|
[`stzh-chip--size-${this.size}`]: !!this.size,
|
|
114
|
-
[`stzh-chip--${this.variant}`]: !!this.variant
|
|
109
|
+
[`stzh-chip--${this.variant}`]: !!this.variant,
|
|
115
110
|
};
|
|
116
|
-
const Chip = this.nonInteractive ? "div" :
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:
|
|
126
|
-
h(Chip, { ref: (el) => (this.chip = el), class: {
|
|
127
|
-
"stzh-chip__button": true,
|
|
128
|
-
"is-button": !this.nonInteractive && !this.href,
|
|
129
|
-
"is-link": !this.nonInteractive && !!this.href
|
|
130
|
-
}, disabled: this.disabled, type: "button", tabindex: this.a11yTabindex, "aria-label": this.a11yLabel || null, "aria-describedby": this.a11yDescribedby || null, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner()))));
|
|
111
|
+
const Chip = this.nonInteractive ? "div" : this.href ? "a" : "button";
|
|
112
|
+
return (h(Host, { tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { class: classes }, this.removable && (h("button", { class: "stzh-chip__remove", onClick: this.onRemoveClick, disabled: this.disabled, "aria-label": this.removeLabel, type: "button", "s-object-id": this.removeAnalyticsId || this.removeLabel }, h("stzh-icon", { class: "stzh-chip__remove-icon", name: "close-big" }))), this.href ? (h(Chip, { ref: el => (this.chip = el), class: {
|
|
113
|
+
"stzh-chip__button": true,
|
|
114
|
+
"is-button": !this.nonInteractive && !this.href,
|
|
115
|
+
"is-link": !this.nonInteractive && !!this.href,
|
|
116
|
+
}, href: this.disabled ? null : this.href, target: this.target, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel || null, "aria-describedby": this.a11yDescribedby || null, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner())) : (h(Chip, { ref: el => (this.chip = el), class: {
|
|
117
|
+
"stzh-chip__button": true,
|
|
118
|
+
"is-button": !this.nonInteractive && !this.href,
|
|
119
|
+
"is-link": !this.nonInteractive && !!this.href,
|
|
120
|
+
}, disabled: this.disabled, type: "button", tabindex: this.a11yTabindex, "aria-label": this.a11yLabel || null, "aria-describedby": this.a11yDescribedby || null, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner())))));
|
|
131
121
|
}
|
|
132
122
|
get element() { return this; }
|
|
133
123
|
static get style() { return stzhChipCss; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stzh-chip2.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,4obAA4ob;;MC6Bnpb,QAAQ;;;;;;;;IA8FX,mBAAc,GAAY,KAAK,CAAC;IA+ChC,gBAAW,GAAG;MACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QACxB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;OACnB;MAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;KAC7B,CAAA;IAEO,YAAO,GAAG,CAAC,KAAiB;MAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;MAE3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;QACzC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;MACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE,KAAK;OACrB,CAAC,CAAC;KACJ,CAAA;IAEO,WAAM,GAAG,CAAC,KAAiB;MACjC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,MAAM,EAAE;QACvC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAA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MAAM,IAAI,CAAC,IAAI,GAAG,EAAuB,CAAC,EAClD,KAAK,EAAE;YACL,mBAAmB,EAAE,IAAI;YACzB,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI;YAC/C,SAAS,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;WAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACd,CAEL,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chip/stzh-chip.scss?tag=stzh-chip&encapsulation=scoped","src/components/stzh-chip/stzh-chip.tsx"],"sourcesContent":["@mixin chip--size-default() {\n --font-size: var(--stzh-font-micro-font-size);\n --line-height: var(--stzh-font-micro-text-line-height);\n --letter-spacing: normal;\n\n --height: 32px;\n --outer-height: 40px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: #{space('small')};\n --padding-right: #{space('small')};\n --border-radius: 16px;\n\n @include mq($from: medium) {\n --outer-height: auto;\n }\n}\n\n@mixin chip--size-large() {\n --height: 40px;\n --border-radius: 20px;\n --padding-left: #{space('medium')};\n --padding-right: #{space('medium')};\n}\n\n@mixin chip--size-small() {\n --font-size: var(--stzh-font-nano-font-size);\n --line-height: var(--stzh-font-nano-text-line-height);\n --letter-spacing: normal;\n\n --height: 24px;\n --border-radius: 12px;\n --padding-left: #{space('xsmall')};\n --padding-right: #{space('xsmall')};\n}\n\n:host {\n @include chip--size-default;\n --color: var(--stzh-chip-color, #{$colorPrimary70});\n --remove-color: var(--color);\n --remove-border-radius: 24px;\n --background-color: var(--stzh-chip-background-color, #{$colorSecondary30});\n --icon-size: #{iconSize('xsmall')};\n --icon-color: var(--color);\n --icon-gap: #{space('xsmall')};\n --counter-color: var(--color);\n --counter-gap: #{space('xsmall')};\n\n --hover-color: var(--stzh-chip-hover-color, #{$colorPrimary70});\n --hover-background-color: var(--stzh-chip-hover-background-color, #{$colorSecondary40});\n --hover-remove-color: var(--hover-color);\n --hover-remove-background-color: #{$colorPrimary30};\n --hover-icon-color: var(--hover-color);\n --hover-counter-color: var(--hover-color);\n\n display: inline-flex;\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n\n &[variant=\"input\"] {\n --background-color: #{$colorPrimary10};\n\n --hover-color: #{$colorPrimary90};\n --hover-background-color: #{$colorPrimary20};\n }\n\n &[variant=\"tag\"] {\n --color: #{$colorGrey90};\n --background-color: #{$colorGrey20};\n\n --hover-color: #{$colorGrey90};\n --hover-background-color: #{$colorGrey20};\n }\n\n &[variant=\"input\"]:where([size=\"small\"]) {\n --icon-gap: #{space('xxsmall')};\n }\n\n &[variant=\"tag\"]:where([size=\"small\"]) {\n --padding-left: #{space('xsmall')};\n --padding-right: #{space('xsmall')};\n --icon-gap: #{space('xxsmall')};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"]) {\n --color: #{$colorWarning90};\n\n --hover-color: #{$colorWarning90};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"]) {\n --color: #{$colorError70};\n\n --hover-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"]) {\n --color: #{$colorSuccess70};\n\n --hover-color: #{$colorSuccess70};\n }\n\n &[variant=\"tag\"]:where([inverted]:not([inverted=\"false\"])) {\n --color: #{$colorWhite};\n --background-color: #{$colorGrey90};\n\n --hover-color: #{$colorWhite};\n --hover-background-color: #{$colorGrey90};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"][inverted]:not([inverted=\"false\"])) {\n --color: #{$colorBlack};\n --background-color: #{$colorWarning60};\n\n --hover-color: #{$colorBlack};\n --hover-background-color: #{$colorWarning60};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorError70};\n\n --hover-background-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorSuccess70};\n\n --hover-background-color: #{$colorSuccess70};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--stzh-chip-active-color, #{$colorWhite});\n --background-color: var(--stzh-chip-active-background-color, #{$colorPrimary70});\n\n --hover-color: var(--stzh-chip-active-hover-color, #{$colorWhite});\n --hover-background-color: var(--stzh-chip-active-hover-background-color, #{$colorPrimary90});\n --hover-remove-background-color: #{$colorPrimary90};\n\n @include highContrast() {\n --color: Highlight;\n --background-color: Canvas;\n\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-chip-disabled-color, #{$colorGrey80});\n --background-color: var(--stzh-chip-disabled-background-color, #{$colorGrey20});\n --remove-color: var(--color);\n --icon-color: var(--color);\n --counter-color: var(--color);\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[variant=\"input\"][disabled]:not([disabled=\"false\"]) {\n --background-color: #{$colorGrey10};\n }\n}\n\n:host(:where([size=\"small\"])) {\n @include chip--size-small;\n}\n\n:host(:where([size=\"large\"])) {\n @include chip--size-large;\n}\n\n@each $breakpoint, $size in $breakpoints {\n @include mq($from: $breakpoint) {\n :host(:where([size-#{$breakpoint}=\"default\"])) {\n @include chip--size-default;\n }\n\n :host(:where([size-#{$breakpoint}=\"small\"])) {\n @include chip--size-small;\n }\n\n :host(:where([size-#{$breakpoint}=\"large\"])) {\n @include chip--size-large;\n }\n }\n}\n\n.stzh-chip {\n position: relative;\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__button {\n font-size: var(--font-size);\n line-height: var(--line-height);\n letter-spacing: var(--letter-spacing);\n min-height: var(--outer-height);\n font-family: inherit;\n appearance: none;\n padding: 0px;\n border: none;\n background-color: transparent;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__button-inner {\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n }\n\n &__label {\n text-align: left;\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n display: flex;\n color: var(--icon-color);\n transition: color $baseTransitionAnimationSpeed;\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: var(--icon-gap);\n }\n }\n\n &__counter {\n display: flex;\n font-variant-numeric: tabular-nums;\n margin-left: var(--counter-gap);\n color: var(--counter-color);\n transition: color $baseTransitionAnimationSpeed;\n }\n\n &__remove {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 0;\n appearance: none;\n font-family: inherit;\n border: none;\n background: none;\n padding: 0;\n width: var(--height);\n height: var(--height);\n border-radius: var(--remove-border-radius);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: space('xxsmall');\n color: var(--remove-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-remove-color);\n background-color: var(--hover-remove-background-color);\n }\n }\n\n &__remove-icon {\n --size: #{iconSize('xxsmall')};\n }\n\n &__button:hover &__button-inner,\n &__remove:hover + &__button &__button-inner {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__button:hover &__counter,\n &__remove:hover + &__button &__counter {\n color: var(--hover-counter-color);\n }\n\n &__button:hover &__icon-wrapper,\n &__remove:hover + &__button &__icon-wrapper {\n color: var(--hover-icon-color);\n }\n\n /* Removeable */\n\n &--is-removable &__button-inner {\n padding-right: calc(var(--height) + #{space('xxsmall')});\n }\n\n /* Disabled */\n\n &--is-disabled &__button,\n &--is-disabled &__remove {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element\n} from \"@stencil/core\";\n\nimport {\n StzhChipVariant,\n StzhChipSize,\n StzhChipType,\n StzhChipClickEvent,\n StzhChipRemoveEvent,\n StzhChipFocusEvent,\n StzhChipBlurEvent\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n * @slot icon - Slot for icon\n */\n@Component({\n tag: \"stzh-chip\",\n styleUrl: \"stzh-chip.scss\",\n scoped: true\n})\nexport class StzhChip {\n /** Label */\n @Prop() label: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string;\n\n /** `href` if the chip should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether chip is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Whether remove button should be shown */\n @Prop({ reflect: true }) removable: boolean = false;\n\n /** Whether inverted style is shown (only available for `tag` variant) */\n @Prop({ reflect: true }) inverted: boolean = false;\n\n /** Variant */\n @Prop({ reflect: true }) variant: StzhChipVariant = \"tag\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhChipSize = \"default\";\n\n /** Size variant (above small breakpoint) */\n @Prop({ reflect: true }) sizeSmall: StzhChipSize;\n\n /** Size variant (above medium breakpoint) */\n @Prop({ reflect: true }) sizeMedium: StzhChipSize;\n\n /** Size variant (above large breakpoint) */\n @Prop({ reflect: true }) sizeLarge: StzhChipSize;\n\n /** Size variant (above ultra breakpoint) */\n @Prop({ reflect: true }) sizeUltra: StzhChipSize;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhChipType = \"default\";\n\n /** Counter */\n @Prop() counter: string = \"\";\n\n /** Label of remove button for screenreaders */\n @Prop() removeLabel: string = \"\";\n\n /** Active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhChipElement;\n\n /** Chip click event */\n @Event() stzhClick: EventEmitter<StzhChipClickEvent>;\n\n /** Chip remove event */\n @Event() stzhRemove: EventEmitter<StzhChipRemoveEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhChipFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhChipBlurEvent>;\n\n private chip: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.chip?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <div class=\"stzh-chip__button-inner\">\n <div class=\"stzh-chip__icon-wrapper\">\n {this.icon || (typeof this.icon === \"undefined\" && this.variant === \"tag\" && this.type !== \"default\") ?\n <stzh-icon class=\"stzh-chip__icon\" name={\n this.icon\n || this.type === \"info\" && \"info-help\"\n || this.type === \"warning\" && \"important-warning\"\n || this.type === \"error\" && \"warning\"\n || this.type === \"success\" && \"checkmark-circle\"\n }></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n </div>\n\n <stzh-clamp\n lines={1}\n class=\"stzh-chip__label\"\n ref={(el) => (this.text = el as HTMLElement)}\n >\n {this.label ? this.label : <slot></slot>}\n {this.counter &&\n <span class=\"stzh-chip__vhidden\">\n ({this.counter})\n </span>\n }\n </stzh-clamp>\n\n {this.counter &&\n <div class=\"stzh-chip__counter\" aria-hidden=\"true\">\n {this.counter}\n </div>\n }\n </div>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.chip.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n href: this.href\n });\n }\n\n private onRemoveClick = (event: MouseEvent) => {\n this.stzhRemove.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n render() {\n const classes = {\n \"stzh-chip\": true,\n \"stzh-chip--is-active\": this.active,\n \"stzh-chip--is-disabled\": this.disabled,\n \"stzh-chip--is-removable\": this.removable,\n \"stzh-chip--is-inverted\": this.inverted,\n \"stzh-chip--has-counter\": !!this.counter,\n [`stzh-chip--type-${this.type}`]: !!this.type,\n [`stzh-chip--size-${this.size}`]: !!this.size,\n [`stzh-chip--${this.variant}`]: !!this.variant\n };\n\n const Chip = this.nonInteractive ? \"div\" :\n this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.removable &&\n <button\n class=\"stzh-chip__remove\"\n onClick={this.onRemoveClick}\n disabled={this.disabled}\n aria-label={this.removeLabel}\n type=\"button\"\n s-object-id={this.removeAnalyticsId || this.removeLabel}\n >\n <stzh-icon class=\"stzh-chip__remove-icon\" name=\"close-big\"></stzh-icon>\n </button>\n }\n\n {this.href ?\n <Chip\n ref={(el) => (this.chip = el as HTMLAnchorElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n :\n <Chip\n ref={(el) => (this.chip = el as HTMLButtonElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|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,CAAC,IAAI,CAAC,IAAI;OAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACd,CACR,CACG,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chip/stzh-chip.scss?tag=stzh-chip&encapsulation=scoped","src/components/stzh-chip/stzh-chip.tsx"],"sourcesContent":["@mixin chip--size-default() {\n --font-size: var(--stzh-font-micro-font-size);\n --line-height: var(--stzh-font-micro-text-line-height);\n --letter-spacing: normal;\n\n --height: 32px;\n --outer-height: 40px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: #{space('small')};\n --padding-right: #{space('small')};\n --border-radius: 16px;\n\n @include mq($from: medium) {\n --outer-height: auto;\n }\n}\n\n@mixin chip--size-large() {\n --height: 40px;\n --border-radius: 20px;\n --padding-left: #{space('medium')};\n --padding-right: #{space('medium')};\n}\n\n@mixin chip--size-small() {\n --font-size: var(--stzh-font-nano-font-size);\n --line-height: var(--stzh-font-nano-text-line-height);\n --letter-spacing: normal;\n\n --height: 24px;\n --border-radius: 12px;\n --padding-left: #{space('xsmall')};\n --padding-right: #{space('xsmall')};\n}\n\n:host {\n @include chip--size-default;\n --color: var(--stzh-chip-color, #{$colorPrimary70});\n --remove-color: var(--color);\n --remove-border-radius: 24px;\n --background-color: var(--stzh-chip-background-color, #{$colorSecondary30});\n --icon-size: #{iconSize('xsmall')};\n --icon-color: var(--color);\n --icon-gap: #{space('xsmall')};\n --counter-color: var(--color);\n --counter-gap: #{space('xsmall')};\n\n --hover-color: var(--stzh-chip-hover-color, #{$colorPrimary70});\n --hover-background-color: var(--stzh-chip-hover-background-color, #{$colorSecondary40});\n --hover-remove-color: var(--hover-color);\n --hover-remove-background-color: #{$colorPrimary30};\n --hover-icon-color: var(--hover-color);\n --hover-counter-color: var(--hover-color);\n\n display: inline-flex;\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n\n &[variant=\"input\"] {\n --background-color: #{$colorPrimary10};\n\n --hover-color: #{$colorPrimary90};\n --hover-background-color: #{$colorPrimary20};\n }\n\n &[variant=\"tag\"] {\n --color: #{$colorGrey90};\n --background-color: #{$colorGrey20};\n\n --hover-color: #{$colorGrey90};\n --hover-background-color: #{$colorGrey20};\n }\n\n &[variant=\"input\"]:where([size=\"small\"]) {\n --icon-gap: #{space('xxsmall')};\n }\n\n &[variant=\"tag\"]:where([size=\"small\"]) {\n --padding-left: #{space('xsmall')};\n --padding-right: #{space('xsmall')};\n --icon-gap: #{space('xxsmall')};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"]) {\n --color: #{$colorWarning90};\n\n --hover-color: #{$colorWarning90};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"]) {\n --color: #{$colorError70};\n\n --hover-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"]) {\n --color: #{$colorSuccess70};\n\n --hover-color: #{$colorSuccess70};\n }\n\n &[variant=\"tag\"]:where([inverted]:not([inverted=\"false\"])) {\n --color: #{$colorWhite};\n --background-color: #{$colorGrey90};\n\n --hover-color: #{$colorWhite};\n --hover-background-color: #{$colorGrey90};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"][inverted]:not([inverted=\"false\"])) {\n --color: #{$colorBlack};\n --background-color: #{$colorWarning60};\n\n --hover-color: #{$colorBlack};\n --hover-background-color: #{$colorWarning60};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorError70};\n\n --hover-background-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorSuccess70};\n\n --hover-background-color: #{$colorSuccess70};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--stzh-chip-active-color, #{$colorWhite});\n --background-color: var(--stzh-chip-active-background-color, #{$colorPrimary70});\n\n --hover-color: var(--stzh-chip-active-hover-color, #{$colorWhite});\n --hover-background-color: var(--stzh-chip-active-hover-background-color, #{$colorPrimary90});\n --hover-remove-background-color: #{$colorPrimary90};\n\n @include highContrast() {\n --color: Highlight;\n --background-color: Canvas;\n\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-chip-disabled-color, #{$colorGrey80});\n --background-color: var(--stzh-chip-disabled-background-color, #{$colorGrey20});\n --remove-color: var(--color);\n --icon-color: var(--color);\n --counter-color: var(--color);\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[variant=\"input\"][disabled]:not([disabled=\"false\"]) {\n --background-color: #{$colorGrey10};\n }\n}\n\n:host(:where([size=\"small\"])) {\n @include chip--size-small;\n}\n\n:host(:where([size=\"large\"])) {\n @include chip--size-large;\n}\n\n@each $breakpoint, $size in $breakpoints {\n @include mq($from: $breakpoint) {\n :host(:where([size-#{$breakpoint}=\"default\"])) {\n @include chip--size-default;\n }\n\n :host(:where([size-#{$breakpoint}=\"small\"])) {\n @include chip--size-small;\n }\n\n :host(:where([size-#{$breakpoint}=\"large\"])) {\n @include chip--size-large;\n }\n }\n}\n\n.stzh-chip {\n position: relative;\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__button {\n font-size: var(--font-size);\n line-height: var(--line-height);\n letter-spacing: var(--letter-spacing);\n min-height: var(--outer-height);\n font-family: inherit;\n appearance: none;\n padding: 0px;\n border: none;\n background-color: transparent;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__button-inner {\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n }\n\n &__label {\n text-align: left;\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n display: flex;\n color: var(--icon-color);\n transition: color $baseTransitionAnimationSpeed;\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: var(--icon-gap);\n }\n }\n\n &__counter {\n display: flex;\n font-variant-numeric: tabular-nums;\n margin-left: var(--counter-gap);\n color: var(--counter-color);\n transition: color $baseTransitionAnimationSpeed;\n }\n\n &__remove {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 0;\n appearance: none;\n font-family: inherit;\n border: none;\n background: none;\n padding: 0;\n width: var(--height);\n height: var(--height);\n border-radius: var(--remove-border-radius);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: space('xxsmall');\n color: var(--remove-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-remove-color);\n background-color: var(--hover-remove-background-color);\n }\n }\n\n &__remove-icon {\n --size: #{iconSize('xxsmall')};\n }\n\n &__button:hover &__button-inner,\n &__remove:hover + &__button &__button-inner {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__button:hover &__counter,\n &__remove:hover + &__button &__counter {\n color: var(--hover-counter-color);\n }\n\n &__button:hover &__icon-wrapper,\n &__remove:hover + &__button &__icon-wrapper {\n color: var(--hover-icon-color);\n }\n\n /* Removeable */\n\n &--is-removable &__button-inner {\n padding-right: calc(var(--height) + #{space('xxsmall')});\n }\n\n /* Disabled */\n\n &--is-disabled &__button,\n &--is-disabled &__remove {\n cursor: not-allowed;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Prop } from \"@stencil/core\";\n\nimport {\n StzhChipBlurEvent,\n StzhChipClickEvent,\n StzhChipFocusEvent,\n StzhChipRemoveEvent,\n StzhChipSize,\n StzhChipType,\n StzhChipVariant,\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n * @slot icon - Slot for icon\n */\n@Component({\n tag: \"stzh-chip\",\n styleUrl: \"stzh-chip.scss\",\n scoped: true,\n})\nexport class StzhChip {\n /** Label */\n @Prop() label: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string;\n\n /** `href` if the chip should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether chip is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Whether remove button should be shown */\n @Prop({ reflect: true }) removable: boolean = false;\n\n /** Whether inverted style is shown (only available for `tag` variant) */\n @Prop({ reflect: true }) inverted: boolean = false;\n\n /** Variant */\n @Prop({ reflect: true }) variant: StzhChipVariant = \"tag\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhChipSize = \"default\";\n\n /** Size variant (above small breakpoint) */\n @Prop({ reflect: true }) sizeSmall: StzhChipSize;\n\n /** Size variant (above medium breakpoint) */\n @Prop({ reflect: true }) sizeMedium: StzhChipSize;\n\n /** Size variant (above large breakpoint) */\n @Prop({ reflect: true }) sizeLarge: StzhChipSize;\n\n /** Size variant (above ultra breakpoint) */\n @Prop({ reflect: true }) sizeUltra: StzhChipSize;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhChipType = \"default\";\n\n /** Counter */\n @Prop() counter: string = \"\";\n\n /** Label of remove button for screenreaders */\n @Prop() removeLabel: string = \"\";\n\n /** Active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhChipElement;\n\n /** Chip click event */\n @Event() stzhClick: EventEmitter<StzhChipClickEvent>;\n\n /** Chip remove event */\n @Event() stzhRemove: EventEmitter<StzhChipRemoveEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhChipFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhChipBlurEvent>;\n\n private chip: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.chip?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <div class=\"stzh-chip__button-inner\">\n <div class=\"stzh-chip__icon-wrapper\">\n {this.icon || (typeof this.icon === \"undefined\" && this.variant === \"tag\" && this.type !== \"default\") ? (\n <stzh-icon\n class=\"stzh-chip__icon\"\n name={\n this.icon ||\n (this.type === \"info\" && \"info-help\") ||\n (this.type === \"warning\" && \"important-warning\") ||\n (this.type === \"error\" && \"warning\") ||\n (this.type === \"success\" && \"checkmark-circle\")\n }\n ></stzh-icon>\n ) : (\n <slot name=\"icon\"></slot>\n )}\n </div>\n\n <stzh-clamp lines={1} class=\"stzh-chip__label\" ref={el => (this.text = el as HTMLElement)}>\n {this.label ? this.label : <slot></slot>}\n {this.counter && this.counter !== \"undefined\" && this.counter !== undefined && (\n <span class=\"stzh-chip__vhidden\"> ({this.counter})</span>\n )}\n </stzh-clamp>\n\n {this.counter && this.counter !== \"undefined\" && this.counter !== undefined && (\n <div class=\"stzh-chip__counter\" aria-hidden=\"true\">\n {this.counter}\n </div>\n )}\n </div>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.chip.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n private onRemoveClick = (event: MouseEvent) => {\n this.stzhRemove.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n render() {\n const classes = {\n \"stzh-chip\": true,\n \"stzh-chip--is-active\": this.active,\n \"stzh-chip--is-disabled\": this.disabled,\n \"stzh-chip--is-removable\": this.removable,\n \"stzh-chip--is-inverted\": this.inverted,\n \"stzh-chip--has-counter\": !!this.counter,\n [`stzh-chip--type-${this.type}`]: !!this.type,\n [`stzh-chip--size-${this.size}`]: !!this.size,\n [`stzh-chip--${this.variant}`]: !!this.variant,\n };\n\n const Chip = this.nonInteractive ? \"div\" : this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.removable && (\n <button\n class=\"stzh-chip__remove\"\n onClick={this.onRemoveClick}\n disabled={this.disabled}\n aria-label={this.removeLabel}\n type=\"button\"\n s-object-id={this.removeAnalyticsId || this.removeLabel}\n >\n <stzh-icon class=\"stzh-chip__remove-icon\" name=\"close-big\"></stzh-icon>\n </button>\n )}\n\n {this.href ? (\n <Chip\n ref={el => (this.chip = el as HTMLAnchorElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n ) : (\n <Chip\n ref={el => (this.chip = el as HTMLButtonElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface StzhContactCv extends Components.StzhContactCv, HTMLElement {}
|
|
4
|
+
export const StzhContactCv: {
|
|
5
|
+
prototype: StzhContactCv;
|
|
6
|
+
new (): StzhContactCv;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { h as hasSlot } from './utils.js';
|
|
3
|
+
import { d as defineCustomElement$4 } from './stzh-list2.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './stzh-list-item2.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './stzh-text2.js';
|
|
6
|
+
|
|
7
|
+
const stzhContactCvCss = ".sc-stzh-contact-cv-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-contact-cv-h{display:none}.sc-stzh-contact-cv-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-contact-cv-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-contact-cv-h *.sc-stzh-contact-cv,.sc-stzh-contact-cv-h *.sc-stzh-contact-cv::before,.sc-stzh-contact-cv-h *.sc-stzh-contact-cv::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-contact-cv-h .has-focus.sc-stzh-contact-cv{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-contact-cv-h .stzh-fylingfocus-focused.sc-stzh-contact-cv{outline-style:none !important}.sc-stzh-contact-cv-h .stzh-fylingfocus-focused.sc-stzh-contact-cv::-moz-focus-inner{border:0 !important}.stzh-contact-cv.sc-stzh-contact-cv{padding-top:var(--stzh-space-small)}@media screen and (min-width: 900px){.stzh-contact-cv.sc-stzh-contact-cv{padding-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-contact-cv.sc-stzh-contact-cv{padding-top:var(--stzh-space-large)}}.stzh-contact-cv__content-block.sc-stzh-contact-cv{padding-bottom:var(--stzh-space-small)}@media screen and (min-width: 900px){.stzh-contact-cv__content-block.sc-stzh-contact-cv{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-contact-cv__content-block.sc-stzh-contact-cv{padding-bottom:var(--stzh-space-large)}}.stzh-contact-cv__content-title.sc-stzh-contact-cv{margin-bottom:0;font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy)}";
|
|
8
|
+
|
|
9
|
+
const StzhContactCv$1 = /*@__PURE__*/ proxyCustomElement(class StzhContactCv extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this._trainings = [];
|
|
14
|
+
this._hobbies = [];
|
|
15
|
+
this.localization = undefined;
|
|
16
|
+
this.jobtitle = undefined;
|
|
17
|
+
this.responsibilities = undefined;
|
|
18
|
+
this.trainings = undefined;
|
|
19
|
+
this.hobbies = undefined;
|
|
20
|
+
}
|
|
21
|
+
trainingsWatcher(newValue) {
|
|
22
|
+
if (typeof newValue === "string") {
|
|
23
|
+
this._trainings = JSON.parse(newValue);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this._trainings = newValue;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
hobbiesWatcher(newValue) {
|
|
30
|
+
if (typeof newValue === "string") {
|
|
31
|
+
this._hobbies = JSON.parse(newValue);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this._hobbies = newValue;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async componentWillLoad() {
|
|
38
|
+
this.trainingsWatcher(this.trainings);
|
|
39
|
+
this.hobbiesWatcher(this.hobbies);
|
|
40
|
+
if (!this.localization) {
|
|
41
|
+
this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, "contact-cv");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
const hasFavoriteLinks = hasSlot(this.element, "favorite-links");
|
|
46
|
+
const classes = {
|
|
47
|
+
"stzh-contact-cv": true,
|
|
48
|
+
"stzh-contact-cv--has-favorite-links": hasFavoriteLinks,
|
|
49
|
+
};
|
|
50
|
+
return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-contact-cv__content-wrapper" }, h("stzh-text", { class: "stzh-contact-cv__content-block" }, h("p", { class: "stzh-contact-cv__content-title" }, this.localization.jobtitle), h("span", null, this.jobtitle)), h("stzh-text", { class: "stzh-contact-cv__content-block" }, h("p", { class: "stzh-contact-cv__content-title" }, this.localization.responsibilities), h("span", null, this.responsibilities)), h("stzh-text", { class: "stzh-contact-cv__content-block" }, h("p", { class: "stzh-contact-cv__content-title" }, this.localization.trainings), h("stzh-list", null, this._trainings.map(training => (h("stzh-list-item", null, training))))), h("stzh-text", { class: "stzh-contact-cv__content-block" }, h("p", { class: "stzh-contact-cv__content-title" }, this.localization.hobbies), h("stzh-list", null, this._hobbies.map(hobby => (h("stzh-list-item", null, hobby))))), h("div", { class: "stzh-contact-cv__favorite-links" }, h("stzh-text", { class: "stzh-contact-cv__content-block" }, h("p", { class: "stzh-contact-cv__content-title" }, this.localization.favoriteLinks), h("slot", { name: "favorite-links" })))))));
|
|
51
|
+
}
|
|
52
|
+
get element() { return this; }
|
|
53
|
+
static get watchers() { return {
|
|
54
|
+
"trainings": ["trainingsWatcher"],
|
|
55
|
+
"hobbies": ["hobbiesWatcher"]
|
|
56
|
+
}; }
|
|
57
|
+
static get style() { return stzhContactCvCss; }
|
|
58
|
+
}, [6, "stzh-contact-cv", {
|
|
59
|
+
"localization": [16],
|
|
60
|
+
"jobtitle": [1],
|
|
61
|
+
"responsibilities": [1],
|
|
62
|
+
"trainings": [1],
|
|
63
|
+
"hobbies": [1]
|
|
64
|
+
}, undefined, {
|
|
65
|
+
"trainings": ["trainingsWatcher"],
|
|
66
|
+
"hobbies": ["hobbiesWatcher"]
|
|
67
|
+
}]);
|
|
68
|
+
function defineCustomElement$1() {
|
|
69
|
+
if (typeof customElements === "undefined") {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const components = ["stzh-contact-cv", "stzh-list", "stzh-list-item", "stzh-text"];
|
|
73
|
+
components.forEach(tagName => { switch (tagName) {
|
|
74
|
+
case "stzh-contact-cv":
|
|
75
|
+
if (!customElements.get(tagName)) {
|
|
76
|
+
customElements.define(tagName, StzhContactCv$1);
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
case "stzh-list":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
defineCustomElement$4();
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
case "stzh-list-item":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
defineCustomElement$3();
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
case "stzh-text":
|
|
90
|
+
if (!customElements.get(tagName)) {
|
|
91
|
+
defineCustomElement$2();
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
94
|
+
} });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const StzhContactCv = StzhContactCv$1;
|
|
98
|
+
const defineCustomElement = defineCustomElement$1;
|
|
99
|
+
|
|
100
|
+
export { StzhContactCv, defineCustomElement };
|
|
101
|
+
|
|
102
|
+
//# sourceMappingURL=stzh-contact-cv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"stzh-contact-cv.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,gkEAAgkE;;MCa5kEA,eAAa;;;;IAYhB,eAAU,GAAa,EAAE,CAAC;IAI1B,aAAQ,GAA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,IAC/C,SAAG,KAAK,EAAC,gCAAgC,IAAE,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAK,EAClF,gBAAO,IAAI,CAAC,gBAAgB,CAAQ,CAC1B,EACZ,iBAAW,KAAK,EAAC,gCAAgC,IAC/C,SAAG,KAAK,EAAC,gCAAgC,IAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAK,EAC3E,qBACG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,KAC3B,0BAAiB,QAAQ,CAAkB,CAC5C,CAAC,CACQ,CACF,EACZ,iBAAW,KAAK,EAAC,gCAAgC,IAC/C,SAAG,KAAK,EAAC,gCAAgC,IAAE,IAAI,CAAC,YAAY,CAAC,OAAO,CAAK,EACzE,qBACG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,KACtB,0BAAiB,KAAK,CAAkB,CACzC,CAAC,CACQ,CACF,EACZ,WAAK,KAAK,EAAC,iCAAiC,IAC1C,iBAAW,KAAK,EAAC,gCAAgC,IAC/C,SAAG,KAAK,EAAC,gCAAgC,IAAE,IAAI,CAAC,YAAY,CAAC,aAAa,CAAK,EAC/E,YAAM,IAAI,EAAC,gBAAgB,GAAQ,CACzB,CACR,CACF,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["StzhContactCv"],"sources":["src/components/stzh-contact-cv/stzh-contact-cv.scss?tag=stzh-contact-cv&encapsulation=scoped","src/components/stzh-contact-cv/stzh-contact-cv.tsx"],"sourcesContent":[":host {\n\n}\n\n.stzh-contact-cv {\n @include spaceCurve('padding-top', 'small');\n\n &__content-block {\n @include spaceCurve('padding-bottom', 'small');\n }\n\n &__content-title {\n margin-bottom: 0;\n @include font('heavy');\n }\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhContactCvLocalizedText } from \"./stzh-contact-cv.localization\";\n\n/**\n * @slot favorite-links - slot for favorite links\n */\n@Component({\n tag: \"stzh-contact-cv\",\n styleUrl: \"stzh-contact-cv.scss\",\n scoped: true,\n})\nexport class StzhContactCv {\n /** Translation strings */\n @Prop() localization: StzhContactCvLocalizedText;\n\n /** Jobtitle */\n @Prop() jobtitle: string;\n\n /** Responsiblities */\n @Prop() responsibilities: string;\n\n /** Trainings */\n @Prop() trainings: string | string[];\n private _trainings: string[] = [];\n\n /** Hobbies */\n @Prop() hobbies: string | string[];\n private _hobbies: string[] = [];\n\n @Watch(\"trainings\")\n trainingsWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n this._trainings = JSON.parse(newValue);\n } else {\n this._trainings = newValue;\n }\n }\n\n @Watch(\"hobbies\")\n hobbiesWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n this._hobbies = JSON.parse(newValue);\n } else {\n this._hobbies = newValue;\n }\n }\n\n @Element() element: HTMLStzhContactCvElement;\n\n async componentWillLoad() {\n this.trainingsWatcher(this.trainings);\n this.hobbiesWatcher(this.hobbies);\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"contact-cv\");\n }\n }\n\n render() {\n const hasFavoriteLinks = hasSlot(this.element, \"favorite-links\");\n\n const classes = {\n \"stzh-contact-cv\": true,\n \"stzh-contact-cv--has-favorite-links\": hasFavoriteLinks,\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-contact-cv__content-wrapper\">\n <stzh-text class=\"stzh-contact-cv__content-block\">\n <p class=\"stzh-contact-cv__content-title\">{this.localization.jobtitle}</p>\n <span>{this.jobtitle}</span>\n </stzh-text>\n <stzh-text class=\"stzh-contact-cv__content-block\">\n <p class=\"stzh-contact-cv__content-title\">{this.localization.responsibilities}</p>\n <span>{this.responsibilities}</span>\n </stzh-text>\n <stzh-text class=\"stzh-contact-cv__content-block\">\n <p class=\"stzh-contact-cv__content-title\">{this.localization.trainings}</p>\n <stzh-list>\n {this._trainings.map(training => (\n <stzh-list-item>{training}</stzh-list-item>\n ))}\n </stzh-list>\n </stzh-text>\n <stzh-text class=\"stzh-contact-cv__content-block\">\n <p class=\"stzh-contact-cv__content-title\">{this.localization.hobbies}</p>\n <stzh-list>\n {this._hobbies.map(hobby => (\n <stzh-list-item>{hobby}</stzh-list-item>\n ))}\n </stzh-list>\n </stzh-text>\n <div class=\"stzh-contact-cv__favorite-links\">\n <stzh-text class=\"stzh-contact-cv__content-block\">\n <p class=\"stzh-contact-cv__content-title\">{this.localization.favoriteLinks}</p>\n <slot name=\"favorite-links\"></slot>\n </stzh-text>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|