@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
|
@@ -6,20 +6,21 @@ const index = require('./index-92254d32.js');
|
|
|
6
6
|
const axios = require('./axios-32d5fd86.js');
|
|
7
7
|
const index$1 = require('./index.cjs.js');
|
|
8
8
|
|
|
9
|
-
const stzhVbzTickerCss = ".sc-stzh-vbz-ticker-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-vbz-ticker-h{display:none}.sc-stzh-vbz-ticker-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-vbz-ticker-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::before,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::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-vbz-ticker-h .has-focus.sc-stzh-vbz-ticker{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-vbz-ticker-h .stzh-fylingfocus-focused.sc-stzh-vbz-ticker{outline-style:none !important}.sc-stzh-vbz-ticker-h .stzh-fylingfocus-focused.sc-stzh-vbz-ticker::-moz-focus-inner{border:0 !important}.stzh-vbz-ticker.sc-stzh-vbz-ticker{display:flex;flex-direction:column;position:relative}@media screen and (min-width: 900px){.stzh-vbz-ticker.sc-stzh-vbz-ticker{flex-direction:row;align-items:flex-start}}.stzh-vbz-ticker__icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-small);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{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-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);display:flex;flex-wrap:wrap}@media screen and (min-width: 900px){.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{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-vbz-ticker__title-parts.sc-stzh-vbz-ticker{display:flex;flex-wrap:wrap;margin:calc(var(--stzh-space-xxxsmall) / -1) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker{display:flex;align-items:center;white-space:nowrap;margin:var(--stzh-space-xxxsmall) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-vbz-ticker__title-part--
|
|
9
|
+
const stzhVbzTickerCss = ".sc-stzh-vbz-ticker-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-vbz-ticker-h{display:none}.sc-stzh-vbz-ticker-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-vbz-ticker-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::before,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::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-vbz-ticker-h .has-focus.sc-stzh-vbz-ticker{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-vbz-ticker-h .stzh-fylingfocus-focused.sc-stzh-vbz-ticker{outline-style:none !important}.sc-stzh-vbz-ticker-h .stzh-fylingfocus-focused.sc-stzh-vbz-ticker::-moz-focus-inner{border:0 !important}.stzh-vbz-ticker.sc-stzh-vbz-ticker{display:flex;flex-direction:column;position:relative}@media screen and (min-width: 900px){.stzh-vbz-ticker.sc-stzh-vbz-ticker{flex-direction:row;align-items:flex-start}}.stzh-vbz-ticker__content.sc-stzh-vbz-ticker{display:flex;flex-direction:column;gap:var(--stzh-space-xsmall)}.stzh-vbz-ticker__icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-small);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{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-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);display:flex;flex-wrap:wrap}@media screen and (min-width: 900px){.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{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-vbz-ticker__title-parts.sc-stzh-vbz-ticker{display:flex;flex-wrap:wrap;margin:calc(var(--stzh-space-xxxsmall) / -1) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker{display:flex;align-items:center;white-space:nowrap;margin:var(--stzh-space-xxxsmall) 0;color:var(--stzh-color-grey90)}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-vbz-ticker__title-part--major-events.sc-stzh-vbz-ticker{color:var(--stzh-color-coral)}.stzh-vbz-ticker__title-part--disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-error60)}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker{display:flex;flex-wrap:wrap;gap:0 var(--stzh-space-xsmall)}.stzh-vbz-ticker__tooltip.sc-stzh-vbz-ticker{--width:20.875rem}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker{display:flex;align-items:flex-start}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker:not(:first-child){margin-top:var(--stzh-space-small)}.stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{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-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:flex}.stzh-vbz-ticker__disturbance-date.sc-stzh-vbz-ticker{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-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-top:var(--stzh-space-xsmall)}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy)}.stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-xsmall);margin-top:var(--stzh-space-xxxsmall);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__disturbance-link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-xsmall)}";
|
|
10
10
|
|
|
11
11
|
const StzhVbzTicker = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.globalDisturbances = [];
|
|
15
|
-
this.
|
|
15
|
+
this.linesWithDisturbances = [];
|
|
16
|
+
this.linesWithConstructions = [];
|
|
16
17
|
this.counter = {
|
|
17
18
|
[`${index$1.VBZ.DISTURBANCE_GLOBAL}`]: 0,
|
|
18
19
|
[`${index$1.VBZ.DISTURBANCE_INFORMATION}`]: 0,
|
|
19
20
|
[`${index$1.VBZ.DISTURBANCE_CONSTRUCTION}`]: 0,
|
|
20
21
|
[`${index$1.VBZ.DISTURBANCE_NORMAL}`]: 0,
|
|
21
22
|
[`${index$1.VBZ.DISTURBANCE_EVENT}`]: 0,
|
|
22
|
-
[`${index$1.VBZ.DISTURBANCE_BUS}`]: 0
|
|
23
|
+
[`${index$1.VBZ.DISTURBANCE_BUS}`]: 0,
|
|
23
24
|
};
|
|
24
25
|
this.api = "https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}";
|
|
25
26
|
this.data = "";
|
|
@@ -29,7 +30,7 @@ const StzhVbzTicker = class {
|
|
|
29
30
|
}
|
|
30
31
|
localizationWatcher() {
|
|
31
32
|
this.collator = new Intl.Collator(this.localization.$locale, {
|
|
32
|
-
numeric: true
|
|
33
|
+
numeric: true,
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
async apiWatcher(newValue) {
|
|
@@ -55,14 +56,13 @@ const StzhVbzTicker = class {
|
|
|
55
56
|
else {
|
|
56
57
|
this._data = newValue;
|
|
57
58
|
}
|
|
58
|
-
const
|
|
59
|
+
const linesToDisplay = {};
|
|
59
60
|
(_b = (_a = this._data) === null || _a === void 0 ? void 0 : _a.Message) === null || _b === void 0 ? void 0 : _b.forEach(message => {
|
|
60
61
|
const urls = message.channel
|
|
61
62
|
.filter(channel => channel.name === index$1.VBZ.CHANNEL_TICKER && channel.url)
|
|
62
63
|
.map(channel => channel.url)
|
|
63
64
|
.reduce((a, b) => a.concat(b), []);
|
|
64
|
-
const infoUrl = urls
|
|
65
|
-
.find(url => url.url.indexOf(index$1.VBZ.CHANNEL_INFO_URL_FILTER) !== -1);
|
|
65
|
+
const infoUrl = urls.find(url => url.url.indexOf(index$1.VBZ.CHANNEL_INFO_URL_FILTER) !== -1);
|
|
66
66
|
if (message.baseType === index$1.VBZ.BASE_TYPE_GLOBAL) {
|
|
67
67
|
this.counter[index$1.VBZ.DISTURBANCE_GLOBAL]++;
|
|
68
68
|
this.globalDisturbances.push({
|
|
@@ -74,35 +74,35 @@ const StzhVbzTicker = class {
|
|
|
74
74
|
endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),
|
|
75
75
|
altStart: message.altStart,
|
|
76
76
|
altEnd: message.altEnd,
|
|
77
|
-
infoUrl: infoUrl
|
|
77
|
+
infoUrl: infoUrl,
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
81
81
|
this.counter[message.category]++;
|
|
82
82
|
}
|
|
83
|
-
// don't add to
|
|
83
|
+
// don't add to linesWithDisturbances if no line/product has been linked to
|
|
84
84
|
// or if it is a information disturbance or global
|
|
85
|
-
if (message.affectedProduct
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
if (message.affectedProduct &&
|
|
86
|
+
message.category !== index$1.VBZ.DISTURBANCE_INFORMATION &&
|
|
87
|
+
message.baseType !== index$1.VBZ.BASE_TYPE_GLOBAL) {
|
|
88
88
|
const affectedLines = [];
|
|
89
89
|
message.affectedProduct.forEach(product => {
|
|
90
|
-
if (typeof
|
|
91
|
-
|
|
90
|
+
if (typeof linesToDisplay[product.lineId] === "undefined") {
|
|
91
|
+
linesToDisplay[product.lineId] = {
|
|
92
92
|
line: product.line,
|
|
93
93
|
name: product.name,
|
|
94
94
|
category: product.cls,
|
|
95
95
|
disturbances: [],
|
|
96
|
-
alert: false
|
|
96
|
+
alert: false,
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
if (message.category === index$1.VBZ.
|
|
100
|
-
|
|
99
|
+
if (message.category === index$1.VBZ.DISTURBANCE_EVENT || message.category === index$1.VBZ.DISTURBANCE_GLOBAL) {
|
|
100
|
+
linesToDisplay[product.lineId].alert = true;
|
|
101
101
|
}
|
|
102
102
|
// only add disturbance message to line if it was not already added (avoiding same message twice)
|
|
103
103
|
if (!affectedLines.includes(product.lineId)) {
|
|
104
104
|
affectedLines.push(product.lineId);
|
|
105
|
-
|
|
105
|
+
linesToDisplay[product.lineId].disturbances.push({
|
|
106
106
|
id: message.id,
|
|
107
107
|
head: message.head,
|
|
108
108
|
category: message.category,
|
|
@@ -111,17 +111,21 @@ const StzhVbzTicker = class {
|
|
|
111
111
|
endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),
|
|
112
112
|
altStart: message.altStart,
|
|
113
113
|
altEnd: message.altEnd,
|
|
114
|
-
infoUrl: infoUrl
|
|
114
|
+
infoUrl: infoUrl,
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
this.
|
|
121
|
-
.map(key =>
|
|
120
|
+
this.linesWithDisturbances = Object.keys(linesToDisplay)
|
|
121
|
+
.map(key => linesToDisplay[key])
|
|
122
|
+
.filter(line => line.disturbances.findIndex(disturbance => disturbance.category !== index$1.VBZ.DISTURBANCE_CONSTRUCTION) > -1);
|
|
123
|
+
this.linesWithConstructions = Object.keys(linesToDisplay)
|
|
124
|
+
.map(key => linesToDisplay[key])
|
|
125
|
+
.filter(line => line.disturbances.findIndex(disturbance => disturbance.category === index$1.VBZ.DISTURBANCE_CONSTRUCTION) > -1);
|
|
122
126
|
// sort by line name
|
|
123
|
-
this.
|
|
124
|
-
|
|
127
|
+
this.linesWithDisturbances.sort((a, b) => this.collator.compare(a.line, b.line));
|
|
128
|
+
this.linesWithConstructions.sort((a, b) => this.collator.compare(a.line, b.line));
|
|
125
129
|
}
|
|
126
130
|
async componentWillLoad() {
|
|
127
131
|
if (!this.localization) {
|
|
@@ -139,31 +143,16 @@ const StzhVbzTicker = class {
|
|
|
139
143
|
renderDisturbance(disturbance) {
|
|
140
144
|
return (index.h("div", { class: {
|
|
141
145
|
"stzh-vbz-ticker__disturbance": true,
|
|
142
|
-
[`stzh-vbz-ticker__disturbance--type${disturbance.category}`]: !!disturbance.category
|
|
143
|
-
} }, disturbance.
|
|
144
|
-
|| disturbance.baseType === index$1.VBZ.BASE_TYPE_GLOBAL
|
|
145
|
-
?
|
|
146
|
-
index.h("stzh-icon", { name: "warning-big", class: "stzh-vbz-ticker__disturbance-icon" })
|
|
147
|
-
:
|
|
148
|
-
index.h("stzh-icon", { name: "construction", class: "stzh-vbz-ticker__disturbance-icon" }), index.h("div", { class: "stzh-vbz-ticker__disturbance-text" }, index.h("div", { class: "stzh-vbz-ticker__disturbance-title" }, disturbance.head), index.h("div", { class: "stzh-vbz-ticker__disturbance-date" }, this.dateAdapter.formatSpan(disturbance.altStart || disturbance.startDate, disturbance.altEnd || disturbance.endDate, "date")), disturbance.infoUrl ?
|
|
149
|
-
index.h("stzh-link", { class: "stzh-vbz-ticker__disturbance-link", size: "small", href: disturbance.infoUrl.url }, this.localization.moreInfo)
|
|
150
|
-
:
|
|
151
|
-
index.h("stzh-link", { class: "stzh-vbz-ticker__disturbance-link", size: "small", target: "_blank", icon: "external-link", href: this.moreInfoLink
|
|
152
|
-
.replace(/\{lang\}/, this.localization.$locale)
|
|
153
|
-
.replace(/\{id\}/, disturbance.id) }, this.localization.moreInfo))));
|
|
146
|
+
[`stzh-vbz-ticker__disturbance--type${disturbance.category}`]: !!disturbance.category,
|
|
147
|
+
} }, index.h("div", { class: "stzh-vbz-ticker__disturbance-text" }, index.h("div", { class: "stzh-vbz-ticker__disturbance-title" }, disturbance.head), index.h("div", { class: "stzh-vbz-ticker__disturbance-date" }, this.dateAdapter.formatSpan(disturbance.altStart || disturbance.startDate, disturbance.altEnd || disturbance.endDate, "date")), disturbance.infoUrl ? (index.h("stzh-link", { class: "stzh-vbz-ticker__disturbance-link", size: "small", href: disturbance.infoUrl.url }, this.localization.moreInfo)) : (index.h("stzh-link", { class: "stzh-vbz-ticker__disturbance-link", size: "small", target: "_blank", icon: "external-link", href: this.moreInfoLink.replace(/\{lang\}/, this.localization.$locale).replace(/\{id\}/, disturbance.id) }, this.localization.moreInfo)))));
|
|
154
148
|
}
|
|
155
149
|
render() {
|
|
156
150
|
const classes = {
|
|
157
|
-
"stzh-vbz-ticker": true
|
|
151
|
+
"stzh-vbz-ticker": true,
|
|
158
152
|
};
|
|
159
|
-
return (index.h(index.Host, null, index.h("div", { class: classes }, index.h("div", { class: "stzh-vbz-
|
|
160
|
-
|
|
161
|
-
index.h("div", { class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--
|
|
162
|
-
this.localization.furtherDisturbanceTitle : this.localization.disturbanceTitle), (this.counter[index$1.VBZ.DISTURBANCE_CONSTRUCTION] > 0
|
|
163
|
-
|| this.counter[index$1.VBZ.DISTURBANCE_EVENT] > 0
|
|
164
|
-
|| this.counter[index$1.VBZ.DISTURBANCE_BUS] > 0) &&
|
|
165
|
-
index.h("div", { class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others" }, index.h("stzh-icon", { class: "stzh-vbz-ticker__icon", name: "construction" }), this.localization.constructionsTitle))), (this.lines.length > 0 || this.counter[index$1.VBZ.DISTURBANCE_GLOBAL] > 0) &&
|
|
166
|
-
index.h(index.Fragment, null, index.h("div", { class: "stzh-vbz-ticker__chips", role: "list" }, this.lines.map((line) => index.h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, index.h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, index.h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), index.h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map((disturbance) => this.renderDisturbance(disturbance))))))))), index.h("div", { class: "stzh-vbz-ticker__link" }, index.h("slot", { name: "link" })))));
|
|
153
|
+
return (index.h(index.Host, null, index.h("div", { class: classes }, index.h("div", { class: "stzh-vbz-ticker__content" }, this.counter[index$1.VBZ.DISTURBANCE_NORMAL] > 0 && (index.h(index.Fragment, null, index.h("div", { class: "stzh-vbz-ticker__title" }, index.h("div", { class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances" }, index.h("stzh-icon", { class: "stzh-vbz-ticker__icon", name: "warning" }), this.localization.disturbancesTitle)), index.h("div", { class: "stzh-vbz-ticket__lines" }, index.h("div", { class: "stzh-vbz-ticker__chips", role: "list" }, this.linesWithDisturbances.map(line => (index.h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, index.h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, index.h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), index.h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map(disturbance => this.renderDisturbance(disturbance))))))))))), (this.counter[index$1.VBZ.DISTURBANCE_CONSTRUCTION] > 0 ||
|
|
154
|
+
this.counter[index$1.VBZ.DISTURBANCE_EVENT] > 0 ||
|
|
155
|
+
this.counter[index$1.VBZ.DISTURBANCE_BUS] > 0) && (index.h(index.Fragment, null, index.h("div", { class: "stzh-vbz-ticker__title" }, index.h("div", { class: "stzh-vbz-ticker__title-parts" }, index.h("div", { class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others" }, index.h("stzh-icon", { class: "stzh-vbz-ticker__icon", name: "construction" }), this.localization.constructionsTitle))), index.h("div", { class: "stzh-vbz-ticket__lines" }, index.h("div", { class: "stzh-vbz-ticker__chips", role: "list" }, this.linesWithConstructions.map(line => (index.h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, index.h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, index.h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), index.h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map(disturbance => this.renderDisturbance(disturbance))))))))))), index.h("div", { class: "stzh-vbz-ticker__link" }, index.h("slot", { name: "link" }))))));
|
|
167
156
|
}
|
|
168
157
|
get element() { return index.getElement(this); }
|
|
169
158
|
static get watchers() { return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stzh-vbz-ticker.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,gBAAgB,GAAG,ggJAAggJ;;MC+B5gJ,aAAa;;;IAuBhB,uBAAkB,GAA2B,EAAE,CAAC;IAChD,UAAK,GAAoB,EAAE,CAAC;IAG5B,YAAO,GAAG;MAChB,CAAC,GAAGA,WAAG,CAAC,kBAAkB,EAAE,GAA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AAO,CAACF,WAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC;MACjEE,QAACE,cAAQ,QAMPF,iBAAK,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,MAAM,IAW5C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KACnBA,iBAAK,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAC,UAAU,IAChDA,0BAAc,KAAK,EAAC,0BAA0B,IAC5CA,+BAAmB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAsB,EAC3EA,iBAAK,KAAK,EAAC,kCAAkC,EAAC,IAAI,EAAC,SAAS,IACzD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,KAAK,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CACxE,CACO,CACX,CACP,CACG,CACG,CACT,EAENA,iBAAK,KAAK,EAAC,uBAAuB,IAChCA,kBAAM,IAAI,EAAC,MAAM,GAAQ,CACrB,CACF,CACD,EACP;GACH;;;;;;;;;;;;;","names":["VBZ","axios","h","Host","Fragment"],"sources":["src/components/stzh-vbz-ticker/stzh-vbz-ticker.scss?tag=stzh-vbz-ticker&encapsulation=scoped","src/components/stzh-vbz-ticker/stzh-vbz-ticker.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-vbz-ticker {\n display: flex;\n flex-direction: column;\n position: relative;\n\n @include mq($from: medium) {\n flex-direction: row;\n align-items: flex-start;\n }\n\n &__icon {\n --size: #{iconSize('small')};\n margin-right: space('xsmall');\n }\n\n &__title {\n @include font;\n @include fontCurve('p1');\n display: flex;\n flex-wrap: wrap;\n }\n\n &__title-parts {\n display: flex;\n flex-wrap: wrap;\n margin: calc(#{space('xxxsmall')} / -1) 0;\n }\n\n &__title-part {\n display: flex;\n align-items: center;\n white-space: nowrap;\n margin: space('xxxsmall') 0;\n\n &:not(:last-child) {\n margin-right: space('large');\n }\n\n &--no-disturbances {\n color: $colorFirgreen50;\n }\n\n &--major-events {\n color: $colorCoral;\n }\n\n &--disturbances {\n color: $colorError60;\n }\n }\n\n // &__description {\n // @include fontSize('micro');\n // @include spaceCurve('margin-top', 'tiny');\n // }\n\n &__link {\n margin-top: space('small');\n\n @include mq($from: medium) {\n position: absolute;\n top: 0;\n right: 0;\n margin-top: 0;\n }\n }\n\n &__chips {\n display: flex;\n flex-wrap: wrap;\n\n &:not(:empty) {\n margin: calc(#{space('xxsmall')} * -1);\n margin-top: calc(#{space('medium')} - #{space('xxsmall')});\n }\n }\n\n &__chip {\n margin: space('xxsmall');\n }\n\n &__tooltip {\n --width: 334px;\n }\n\n &__disturbance {\n display: flex;\n align-items: flex-start;\n\n &:not(:first-child) {\n margin-top: space('small');\n }\n }\n\n // TODO: look after rws how to restyle (was previously colored red but doesn't fit anymore with new tooltip background color)\n // &__disturbance--type0 &__disturbance-title,\n // &__disturbance--type0 &__disturbance-icon,\n // &__disturbance--type2 &__disturbance-title,\n // &__disturbance--type2 &__disturbance-icon {\n // color: $colorError60;\n // }\n\n &__disturbance-title {\n @include font;\n display: flex;\n }\n\n &__disturbance--type0 &__disturbance-title,\n &__disturbance--type2 &__disturbance-title {\n @include font('heavy');\n }\n\n &__disturbance-icon {\n --size: #{iconSize('xsmall')};\n margin-top: space('xxxsmall');\n margin-right: space('xsmall');\n }\n\n &__disturbance-link {\n margin-top: space('xsmall');\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Watch,\n Element,\n Fragment\n} from \"@stencil/core\";\n\nimport axios from 'axios';\n\nimport { StzhLocaleAdapter } from \"../../utils/date-adapter\";\n\nimport {\n VBZ,\n VbzTickerInfoUrl,\n VbzTickerDisturbance,\n VbzTickerLine\n} from \"../../index\";\n\nimport { StzhVbzTickerLocalizedText } from \"./stzh-vbz-ticker.localization\";\n\n/**\n * @slot link - Optional link to traffic situation\n */\n@Component({\n tag: \"stzh-vbz-ticker\",\n styleUrl: \"stzh-vbz-ticker.scss\",\n scoped: true\n})\nexport class StzhVbzTicker {\n /** API URL (`{lang}` is replaced in the URL) */\n @Prop() api: string = \"https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}\";\n\n /** Data to pass in directly (alternative for API call) */\n @Prop() data: any = \"\";\n private _data: any;\n\n /** More info link (`{lang}` and `{id}` are replaced in the URL) */\n @Prop() moreInfoLink: string = \"https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}\";\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n /** Translation strings. */\n @Prop() localization: StzhVbzTickerLocalizedText;\n\n @Element() element: HTMLStzhVbzTickerElement;\n\n private globalDisturbances: VbzTickerDisturbance[] = [];\n private lines: VbzTickerLine[] = [];\n private collator: Intl.Collator;\n\n private counter = {\n [`${VBZ.DISTURBANCE_GLOBAL}`]: 0,\n [`${VBZ.DISTURBANCE_INFORMATION}`]: 0,\n [`${VBZ.DISTURBANCE_CONSTRUCTION}`]: 0,\n [`${VBZ.DISTURBANCE_NORMAL}`]: 0,\n [`${VBZ.DISTURBANCE_EVENT}`]: 0,\n [`${VBZ.DISTURBANCE_BUS}`]: 0\n };\n\n @Watch(\"localization\")\n localizationWatcher() {\n this.collator = new Intl.Collator(this.localization.$locale, {\n numeric: true\n });\n }\n\n @Watch(\"api\")\n async apiWatcher(newValue: string) {\n if (!newValue) {\n return;\n }\n\n let apiUrl = this.api.replace(/\\{lang\\}/, this.localization.$locale)\n apiUrl = apiUrl + (apiUrl.includes(\"?\") ? \"&\" : \"?\") + Date.now();\n\n // load data from API\n const { data } = await axios.get(apiUrl);\n\n this.data = data;\n }\n\n @Watch(\"dateAdapter\")\n dateAdapterWatcher(newValue: StzhLocaleAdapter) {\n if (!newValue) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n }\n\n @Watch(\"data\")\n async dataWatcher(newValue: any) {\n if (typeof newValue === \"string\") {\n this._data = JSON.parse(newValue);\n } else {\n this._data = newValue;\n }\n\n const lines: { [key: string]: VbzTickerLine } = {};\n\n this._data?.Message?.forEach(message => {\n const urls: VbzTickerInfoUrl[] = message.channel\n .filter(channel => channel.name === VBZ.CHANNEL_TICKER && channel.url)\n .map(channel => channel.url)\n .reduce((a, b) => a.concat(b), []);\n\n const infoUrl = urls\n .find(url => url.url.indexOf(VBZ.CHANNEL_INFO_URL_FILTER) !== -1);\n\n if (message.baseType === VBZ.BASE_TYPE_GLOBAL) {\n this.counter[VBZ.DISTURBANCE_GLOBAL]++;\n\n this.globalDisturbances.push({\n id: message.id,\n head: message.head,\n category: message.category,\n baseType: message.baseType,\n startDate: new Date(`${message.sDate}T${message.sTime}+02:00`),\n endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),\n altStart: message.altStart,\n altEnd: message.altEnd,\n infoUrl: infoUrl\n });\n } else {\n this.counter[message.category]++;\n }\n\n // don't add to lines if no line/product has been linked to\n // or if it is a information disturbance or global\n if (\n message.affectedProduct\n && message.category !== VBZ.DISTURBANCE_INFORMATION\n && message.baseType !== VBZ.BASE_TYPE_GLOBAL\n ) {\n const affectedLines = [];\n\n message.affectedProduct.forEach(product => {\n if (typeof lines[product.lineId] === \"undefined\") {\n lines[product.lineId] = {\n line: product.line,\n name: product.name,\n category: product.cls,\n disturbances: [],\n alert: false\n }\n }\n\n if (message.category === VBZ.DISTURBANCE_NORMAL) {\n lines[product.lineId].alert = true;\n }\n\n // only add disturbance message to line if it was not already added (avoiding same message twice)\n if (!affectedLines.includes(product.lineId)) {\n affectedLines.push(product.lineId);\n\n lines[product.lineId].disturbances.push({\n id: message.id,\n head: message.head,\n category: message.category,\n baseType: message.baseType,\n startDate: new Date(`${message.sDate}T${message.sTime}+02:00`),\n endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),\n altStart: message.altStart,\n altEnd: message.altEnd,\n infoUrl: infoUrl\n })\n }\n })\n }\n });\n\n this.lines = Object.keys(lines)\n .map(key => lines[key]);\n\n // sort by line name\n this.lines.sort((a, b) => this.collator\n .compare(a.line, b.line));\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"vbz-ticker\");\n this.localizationWatcher();\n }\n\n this.dateAdapterWatcher(this.dateAdapter);\n\n if (this.data) {\n await this.dataWatcher(this.data);\n } else {\n await this.apiWatcher(this.api);\n }\n }\n\n renderDisturbance(disturbance: VbzTickerDisturbance) {\n return (\n <div class={{\n \"stzh-vbz-ticker__disturbance\": true,\n [`stzh-vbz-ticker__disturbance--type${disturbance.category}`]: !!disturbance.category\n }}>\n {disturbance.category === VBZ.DISTURBANCE_NORMAL\n || disturbance.baseType === VBZ.BASE_TYPE_GLOBAL\n ?\n <stzh-icon name=\"warning-big\" class=\"stzh-vbz-ticker__disturbance-icon\"></stzh-icon>\n :\n <stzh-icon name=\"construction\" class=\"stzh-vbz-ticker__disturbance-icon\"></stzh-icon>\n }\n\n <div class=\"stzh-vbz-ticker__disturbance-text\">\n <div class=\"stzh-vbz-ticker__disturbance-title\">\n {disturbance.head}\n </div>\n\n <div class=\"stzh-vbz-ticker__disturbance-date\">\n {this.dateAdapter.formatSpan(\n disturbance.altStart || disturbance.startDate,\n disturbance.altEnd || disturbance.endDate,\n \"date\"\n )}\n </div>\n\n {disturbance.infoUrl ?\n <stzh-link\n class=\"stzh-vbz-ticker__disturbance-link\"\n size=\"small\"\n href={disturbance.infoUrl.url}\n >\n {this.localization.moreInfo}\n </stzh-link>\n :\n <stzh-link\n class=\"stzh-vbz-ticker__disturbance-link\"\n size=\"small\"\n target=\"_blank\"\n icon=\"external-link\"\n href={this.moreInfoLink\n .replace(/\\{lang\\}/, this.localization.$locale)\n .replace(/\\{id\\}/, disturbance.id)}\n >\n {this.localization.moreInfo}\n </stzh-link>\n }\n </div>\n </div>\n );\n }\n\n render() {\n const classes = {\n \"stzh-vbz-ticker\": true\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-vbz-ticker__text\">\n <div class=\"stzh-vbz-ticker__title\">\n <div class=\"stzh-vbz-ticker__title-parts\">\n {this.lines.length === 0 && this.counter[VBZ.DISTURBANCE_GLOBAL] === 0 &&\n <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances\">\n <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"checkmark-circle\"></stzh-icon>\n {this.localization.noDisturbances}\n </div>}\n\n {/* {this.counter[DISTURBANCE_GLOBAL] > 0 &&\n <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--major-events\">\n <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"important-warning\"></stzh-icon>\n {this.localization.majorEventTitle}\n </div>} */}\n\n {this.counter[VBZ.DISTURBANCE_NORMAL] > 0 &&\n <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances\">\n <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"warning\"></stzh-icon>\n {this.counter[VBZ.DISTURBANCE_GLOBAL] > 0 ?\n this.localization.furtherDisturbanceTitle : this.localization.disturbanceTitle}\n </div>}\n\n {(this.counter[VBZ.DISTURBANCE_CONSTRUCTION] > 0\n || this.counter[VBZ.DISTURBANCE_EVENT] > 0\n || this.counter[VBZ.DISTURBANCE_BUS] > 0) &&\n <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others\">\n <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"construction\"></stzh-icon>\n {this.localization.constructionsTitle}\n </div>}\n </div>\n </div>\n\n {(this.lines.length > 0 || this.counter[VBZ.DISTURBANCE_GLOBAL] > 0) &&\n <Fragment>\n {/* <div class=\"stzh-vbz-ticker__description\">\n {this.counter[VBZ.DISTURBANCE_GLOBAL] > 0\n ? this.localization.globalDisturbance\n : this.localization.affectedLines}\n </div> */}\n <div class=\"stzh-vbz-ticker__chips\" role=\"list\">\n {/* {this.counter[VBZ.DISTURBANCE_GLOBAL] > 0 &&\n <div class=\"stzh-vbz-ticker__chip\" role=\"listitem\">\n <stzh-tooltip class=\"stzh-vbz-ticker__tooltip\">\n <stzh-vbz-linechip global></stzh-vbz-linechip>\n <div class=\"stzh-vbz-ticker__tooltip-content\" slot=\"content\">\n {this.globalDisturbances.map((disturbance) => this.renderDisturbance(disturbance))}\n </div>\n </stzh-tooltip>\n </div>} */}\n\n {this.lines.map((line) =>\n <div class=\"stzh-vbz-ticker__chip\" role=\"listitem\">\n <stzh-tooltip class=\"stzh-vbz-ticker__tooltip\">\n <stzh-vbz-linechip line={line.line} alert={line.alert}></stzh-vbz-linechip>\n <div class=\"stzh-vbz-ticker__tooltip-content\" slot=\"content\">\n {line.disturbances.map((disturbance) => this.renderDisturbance(disturbance))}\n </div>\n </stzh-tooltip>\n </div>\n )}\n </div>\n </Fragment>}\n </div>\n\n <div class=\"stzh-vbz-ticker__link\">\n <slot name=\"link\"></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"stzh-vbz-ticker.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,gBAAgB,GAAG,giJAAgiJ;;MCkB5iJ,aAAa;;;IAwBhB,uBAAkB,GAA2B,EAAE,CAAC;IAChD,0BAAqB,GAAoB,EAAE,CAAC;IAC5C,2BAAsB,GAAoB,EAAE,CAAC;IAG7C,YAAO,GAAG;MAChB,CAAC,GAAGA,WAAG,CAAC,kBAAkB,EAAE,GAAG,CAAC;MAChC,CAAC,GAAGA,WAAG,CAAC,uBAAuB,EAAE,GAAG,CAAC;MACrC,CAAC,GAAGA,WAAG,CAAC,wBAAwB,EAAE,GAAG,CAAC;MACtC,CAAC,GAAGA,WAAG,CAAC,kBAAkB,EAAE,GAAG,CAAC;MAChC,CAAC,GAAGA,WAAG,CAAC,iBAAiB,EAAE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MAC9C,IAAI,CAAC,OAAO,CAACA,WAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC;MACvC,IAAI,CAAC,OAAO,CAACA,WAAG,CAAC,eAAe,CAAC,GAAG,CAAC,MACrCE,QAACE,cAAQ,QACPF,iBAAK,KAAK,EAAC,wBAAwB,IACjCA,iBAAK,KAAK,EAAC,8BAA8B,IACvCA,iBAAK,KAAK,EAAC,iEAAiE,IAC1EA,uBAAW,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAC,cAAc,GAAa,EACxE,IAAI,CAAC,YAAY,CAAC,kBAAkB,CACjC,CACF,CACF,EACNA,iBAAK,KAAK,EAAC,wBAAwB,IACjCA,iBAAK,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,MAAM,IAC5C,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,IAAI,KACnCA,iBAAK,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAC,UAAU,IAChDA,0BAAc,KAAK,EAAC,0BAA0B,IAC5CA,+BAAmB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAsB,EAC3EA,iBAAK,KAAK,EAAC,kCAAkC,EAAC,IAAI,EAAC,SAAS,IACzD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CACtE,CACO,CACX,CACP,CAAC,CACE,CACF,CACG,CACZ,EAEDA,iBAAK,KAAK,EAAC,uBAAuB,IAChCA,kBAAM,IAAI,EAAC,MAAM,GAAQ,CACrB,CACF,CACF,CACD,EACP;GACH;;;;;;;;;;;;;","names":["VBZ","axios","h","Host","Fragment"],"sources":["src/components/stzh-vbz-ticker/stzh-vbz-ticker.scss?tag=stzh-vbz-ticker&encapsulation=scoped","src/components/stzh-vbz-ticker/stzh-vbz-ticker.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-vbz-ticker {\n display: flex;\n flex-direction: column;\n position: relative;\n\n @include mq($from: medium) {\n flex-direction: row;\n align-items: flex-start;\n }\n\n &__content {\n display: flex;\n flex-direction: column;\n gap: var(--stzh-space-xsmall);\n }\n\n &__icon {\n --size: #{iconSize('small')};\n margin-right: space('xsmall');\n }\n\n &__title {\n @include font;\n @include fontCurve('p1');\n display: flex;\n flex-wrap: wrap;\n }\n\n &__title-parts {\n display: flex;\n flex-wrap: wrap;\n margin: calc(#{space('xxxsmall')} / -1) 0;\n }\n\n &__title-part {\n display: flex;\n align-items: center;\n white-space: nowrap;\n margin: space('xxxsmall') 0;\n color: $colorGrey90;\n\n\n &:not(:last-child) {\n margin-right: space('large');\n }\n\n &--major-events {\n color: $colorCoral;\n }\n\n &--disturbances {\n color: $colorError60;\n }\n }\n\n &__chips {\n display: flex;\n flex-wrap: wrap;\n gap: 0 var(--stzh-space-xsmall);\n }\n\n &__tooltip {\n --width: 334px;\n }\n\n &__disturbance {\n display: flex;\n align-items: flex-start;\n\n &:not(:first-child) {\n margin-top: space('small');\n }\n }\n\n &__disturbance-title {\n @include font;\n @include fontSize('micro');\n display: flex;\n }\n\n &__disturbance-date {\n @include font;\n @include fontSize('micro');\n margin-top: space('xsmall');\n }\n\n &__disturbance--type0 &__disturbance-title,\n &__disturbance--type2 &__disturbance-title {\n @include font('heavy');\n }\n\n &__disturbance-icon {\n --size: #{iconSize('xsmall')};\n margin-top: space('xxxsmall');\n margin-right: space('xsmall');\n }\n\n &__disturbance-link {\n margin-top: space('xsmall');\n }\n}\n\n","import { Component, Element, Fragment, h, Host, Prop, Watch } from \"@stencil/core\";\n\nimport axios from \"axios\";\n\nimport { StzhLocaleAdapter } from \"../../utils/date-adapter\";\n\nimport { VBZ, VbzTickerDisturbance, VbzTickerInfoUrl, VbzTickerLine } from \"../../index\";\n\nimport { StzhVbzTickerLocalizedText } from \"./stzh-vbz-ticker.localization\";\n\n/**\n * @slot link - Optional link to traffic situation\n */\n@Component({\n tag: \"stzh-vbz-ticker\",\n styleUrl: \"stzh-vbz-ticker.scss\",\n scoped: true,\n})\nexport class StzhVbzTicker {\n /** API URL (`{lang}` is replaced in the URL) */\n @Prop() api: string =\n \"https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}\";\n\n /** Data to pass in directly (alternative for API call) */\n @Prop() data: any = \"\";\n private _data: any;\n\n /** More info link (`{lang}` and `{id}` are replaced in the URL) */\n @Prop() moreInfoLink: string = \"https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}\";\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n /** Translation strings. */\n @Prop() localization: StzhVbzTickerLocalizedText;\n\n @Element() element: HTMLStzhVbzTickerElement;\n\n private globalDisturbances: VbzTickerDisturbance[] = [];\n private linesWithDisturbances: VbzTickerLine[] = [];\n private linesWithConstructions: VbzTickerLine[] = [];\n private collator: Intl.Collator;\n\n private counter = {\n [`${VBZ.DISTURBANCE_GLOBAL}`]: 0,\n [`${VBZ.DISTURBANCE_INFORMATION}`]: 0,\n [`${VBZ.DISTURBANCE_CONSTRUCTION}`]: 0,\n [`${VBZ.DISTURBANCE_NORMAL}`]: 0,\n [`${VBZ.DISTURBANCE_EVENT}`]: 0,\n [`${VBZ.DISTURBANCE_BUS}`]: 0,\n };\n\n @Watch(\"localization\")\n localizationWatcher() {\n this.collator = new Intl.Collator(this.localization.$locale, {\n numeric: true,\n });\n }\n\n @Watch(\"api\")\n async apiWatcher(newValue: string) {\n if (!newValue) {\n return;\n }\n\n let apiUrl = this.api.replace(/\\{lang\\}/, this.localization.$locale);\n apiUrl = apiUrl + (apiUrl.includes(\"?\") ? \"&\" : \"?\") + Date.now();\n\n // load data from API\n const { data } = await axios.get(apiUrl);\n\n this.data = data;\n }\n\n @Watch(\"dateAdapter\")\n dateAdapterWatcher(newValue: StzhLocaleAdapter) {\n if (!newValue) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n }\n\n @Watch(\"data\")\n async dataWatcher(newValue: any) {\n if (typeof newValue === \"string\") {\n this._data = JSON.parse(newValue);\n } else {\n this._data = newValue;\n }\n\n const linesToDisplay: { [key: string]: VbzTickerLine } = {};\n\n this._data?.Message?.forEach(message => {\n const urls: VbzTickerInfoUrl[] = message.channel\n .filter(channel => channel.name === VBZ.CHANNEL_TICKER && channel.url)\n .map(channel => channel.url)\n .reduce((a, b) => a.concat(b), []);\n\n const infoUrl = urls.find(url => url.url.indexOf(VBZ.CHANNEL_INFO_URL_FILTER) !== -1);\n\n if (message.baseType === VBZ.BASE_TYPE_GLOBAL) {\n this.counter[VBZ.DISTURBANCE_GLOBAL]++;\n\n this.globalDisturbances.push({\n id: message.id,\n head: message.head,\n category: message.category,\n baseType: message.baseType,\n startDate: new Date(`${message.sDate}T${message.sTime}+02:00`),\n endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),\n altStart: message.altStart,\n altEnd: message.altEnd,\n infoUrl: infoUrl,\n });\n } else {\n this.counter[message.category]++;\n }\n\n // don't add to linesWithDisturbances if no line/product has been linked to\n // or if it is a information disturbance or global\n if (\n message.affectedProduct &&\n message.category !== VBZ.DISTURBANCE_INFORMATION &&\n message.baseType !== VBZ.BASE_TYPE_GLOBAL\n ) {\n const affectedLines = [];\n\n message.affectedProduct.forEach(product => {\n if (typeof linesToDisplay[product.lineId] === \"undefined\") {\n linesToDisplay[product.lineId] = {\n line: product.line,\n name: product.name,\n category: product.cls,\n disturbances: [],\n alert: false,\n };\n }\n\n if (message.category === VBZ.DISTURBANCE_EVENT || message.category === VBZ.DISTURBANCE_GLOBAL) {\n linesToDisplay[product.lineId].alert = true;\n }\n\n // only add disturbance message to line if it was not already added (avoiding same message twice)\n if (!affectedLines.includes(product.lineId)) {\n affectedLines.push(product.lineId);\n\n linesToDisplay[product.lineId].disturbances.push({\n id: message.id,\n head: message.head,\n category: message.category,\n baseType: message.baseType,\n startDate: new Date(`${message.sDate}T${message.sTime}+02:00`),\n endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),\n altStart: message.altStart,\n altEnd: message.altEnd,\n infoUrl: infoUrl,\n });\n }\n });\n }\n });\n\n this.linesWithDisturbances = Object.keys(linesToDisplay)\n .map(key => linesToDisplay[key])\n .filter(\n line => line.disturbances.findIndex(disturbance => disturbance.category !== VBZ.DISTURBANCE_CONSTRUCTION) > -1\n );\n\n this.linesWithConstructions = Object.keys(linesToDisplay)\n .map(key => linesToDisplay[key])\n .filter(\n line => line.disturbances.findIndex(disturbance => disturbance.category === VBZ.DISTURBANCE_CONSTRUCTION) > -1\n );\n\n // sort by line name\n this.linesWithDisturbances.sort((a, b) => this.collator.compare(a.line, b.line));\n this.linesWithConstructions.sort((a, b) => this.collator.compare(a.line, b.line));\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"vbz-ticker\");\n this.localizationWatcher();\n }\n\n this.dateAdapterWatcher(this.dateAdapter);\n\n if (this.data) {\n await this.dataWatcher(this.data);\n } else {\n await this.apiWatcher(this.api);\n }\n }\n\n renderDisturbance(disturbance: VbzTickerDisturbance) {\n return (\n <div\n class={{\n \"stzh-vbz-ticker__disturbance\": true,\n [`stzh-vbz-ticker__disturbance--type${disturbance.category}`]: !!disturbance.category,\n }}\n >\n <div class=\"stzh-vbz-ticker__disturbance-text\">\n <div class=\"stzh-vbz-ticker__disturbance-title\">{disturbance.head}</div>\n\n <div class=\"stzh-vbz-ticker__disturbance-date\">\n {this.dateAdapter.formatSpan(\n disturbance.altStart || disturbance.startDate,\n disturbance.altEnd || disturbance.endDate,\n \"date\"\n )}\n </div>\n\n {disturbance.infoUrl ? (\n <stzh-link class=\"stzh-vbz-ticker__disturbance-link\" size=\"small\" href={disturbance.infoUrl.url}>\n {this.localization.moreInfo}\n </stzh-link>\n ) : (\n <stzh-link\n class=\"stzh-vbz-ticker__disturbance-link\"\n size=\"small\"\n target=\"_blank\"\n icon=\"external-link\"\n href={this.moreInfoLink.replace(/\\{lang\\}/, this.localization.$locale).replace(/\\{id\\}/, disturbance.id)}\n >\n {this.localization.moreInfo}\n </stzh-link>\n )}\n </div>\n </div>\n );\n }\n\n render() {\n const classes = {\n \"stzh-vbz-ticker\": true,\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-vbz-ticker__content\">\n {/* TODO: Old stuff currently in verification whether to redesign or remove. */}\n\n {/*{this.linesWithDisturbances.length === 0 && this.counter[VBZ.DISTURBANCE_GLOBAL] === 0 && (*/}\n {/* <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances\">*/}\n {/* <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"checkmark-circle\"></stzh-icon>*/}\n {/* {this.localization.noDisturbances}*/}\n {/* </div>*/}\n {/*)}*/}\n\n {/*{this.counter[DISTURBANCE_GLOBAL] > 0 && (*/}\n {/* <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--major-events\">*/}\n {/* <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"important-warning\"></stzh-icon>*/}\n {/* {this.localization.majorEventTitle}*/}\n {/* </div>*/}\n {/*)}*/}\n\n {/*<div class=\"stzh-vbz-ticker__description\">*/}\n {/* {this.counter[VBZ.DISTURBANCE_GLOBAL] > 0*/}\n {/* ? this.localization.globalDisturbance*/}\n {/* : this.localization.affectedLines}*/}\n {/*</div>*/}\n\n {/*{this.counter[VBZ.DISTURBANCE_GLOBAL] > 0 && (*/}\n {/* <div class=\"stzh-vbz-ticker__chip\" role=\"listitem\">*/}\n {/* <stzh-tooltip class=\"stzh-vbz-ticker__tooltip\">*/}\n {/* <stzh-vbz-linechip global></stzh-vbz-linechip>*/}\n {/* <div class=\"stzh-vbz-ticker__tooltip-content\" slot=\"content\">*/}\n {/* {this.globalDisturbances.map(disturbance => this.renderDisturbance(disturbance))}*/}\n {/* </div>*/}\n {/* </stzh-tooltip>*/}\n {/* </div>*/}\n {/*)}*/}\n\n {this.counter[VBZ.DISTURBANCE_NORMAL] > 0 && (\n <Fragment>\n <div class=\"stzh-vbz-ticker__title\">\n <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances\">\n <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"warning\"></stzh-icon>\n {this.localization.disturbancesTitle}\n </div>\n </div>\n <div class=\"stzh-vbz-ticket__lines\">\n <div class=\"stzh-vbz-ticker__chips\" role=\"list\">\n {this.linesWithDisturbances.map(line => (\n <div class=\"stzh-vbz-ticker__chip\" role=\"listitem\">\n <stzh-tooltip class=\"stzh-vbz-ticker__tooltip\">\n <stzh-vbz-linechip line={line.line} alert={line.alert}></stzh-vbz-linechip>\n <div class=\"stzh-vbz-ticker__tooltip-content\" slot=\"content\">\n {line.disturbances.map(disturbance => this.renderDisturbance(disturbance))}\n </div>\n </stzh-tooltip>\n </div>\n ))}\n </div>\n </div>\n </Fragment>\n )}\n\n {/* Constructions etc. */}\n {(this.counter[VBZ.DISTURBANCE_CONSTRUCTION] > 0 ||\n this.counter[VBZ.DISTURBANCE_EVENT] > 0 ||\n this.counter[VBZ.DISTURBANCE_BUS] > 0) && (\n <Fragment>\n <div class=\"stzh-vbz-ticker__title\">\n <div class=\"stzh-vbz-ticker__title-parts\">\n <div class=\"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others\">\n <stzh-icon class=\"stzh-vbz-ticker__icon\" name=\"construction\"></stzh-icon>\n {this.localization.constructionsTitle}\n </div>\n </div>\n </div>\n <div class=\"stzh-vbz-ticket__lines\">\n <div class=\"stzh-vbz-ticker__chips\" role=\"list\">\n {this.linesWithConstructions.map(line => (\n <div class=\"stzh-vbz-ticker__chip\" role=\"listitem\">\n <stzh-tooltip class=\"stzh-vbz-ticker__tooltip\">\n <stzh-vbz-linechip line={line.line} alert={line.alert}></stzh-vbz-linechip>\n <div class=\"stzh-vbz-ticker__tooltip-content\" slot=\"content\">\n {line.disturbances.map(disturbance => this.renderDisturbance(disturbance))}\n </div>\n </stzh-tooltip>\n </div>\n ))}\n </div>\n </div>\n </Fragment>\n )}\n\n <div class=\"stzh-vbz-ticker__link\">\n <slot name=\"link\"></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -10,13 +10,13 @@ function hasSlot(el, name) {
|
|
|
10
10
|
return el.querySelector(`[slot="${name}"]`) !== null;
|
|
11
11
|
}
|
|
12
12
|
// Look for a default slot
|
|
13
|
-
return Array.from(childNodes(el)).some(node => {
|
|
14
|
-
if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !==
|
|
13
|
+
return Array.from(childNodes(el)).some((node) => {
|
|
14
|
+
if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== "") {
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
17
|
if (node.nodeType === node.ELEMENT_NODE) {
|
|
18
18
|
const el = node;
|
|
19
|
-
if (!el.hasAttribute(
|
|
19
|
+
if (!el.hasAttribute("slot")) {
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -24,7 +24,7 @@ function hasSlot(el, name) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function setPropsIfNull(element, attributes) {
|
|
27
|
-
Object.keys(attributes).forEach(attribute => {
|
|
27
|
+
Object.keys(attributes).forEach((attribute) => {
|
|
28
28
|
if (element.getAttribute(stringUtils.dashCase(attribute)) === null) {
|
|
29
29
|
element[attribute] = attributes[attribute];
|
|
30
30
|
}
|
|
@@ -34,7 +34,7 @@ function isStzhElement(element) {
|
|
|
34
34
|
if (!element || element.nodeType !== 1) {
|
|
35
35
|
return false;
|
|
36
36
|
}
|
|
37
|
-
return element.tagName.toLowerCase().indexOf(
|
|
37
|
+
return element.tagName.toLowerCase().indexOf("stzh-") === 0;
|
|
38
38
|
}
|
|
39
39
|
// returns content of <meta name="" content=""> tags or '' if empty/non existant
|
|
40
40
|
function getMeta(name) {
|
|
@@ -58,14 +58,18 @@ function childNodes(node) {
|
|
|
58
58
|
return Array.from(childNodes);
|
|
59
59
|
}
|
|
60
60
|
function isVisible(element) {
|
|
61
|
+
// @ts-ignore
|
|
61
62
|
if (typeof element.checkVisibility !== "undefined") {
|
|
63
|
+
// @ts-ignore
|
|
62
64
|
return element.checkVisibility({
|
|
63
65
|
checkOpacity: false,
|
|
64
|
-
checkVisibilityCSS: false
|
|
66
|
+
checkVisibilityCSS: false,
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
69
|
else {
|
|
68
|
-
return !!(element.offsetWidth ||
|
|
70
|
+
return !!(element.offsetWidth ||
|
|
71
|
+
element.offsetHeight ||
|
|
72
|
+
element.getClientRects().length);
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
function offset(element) {
|
|
@@ -76,7 +80,7 @@ function offset(element) {
|
|
|
76
80
|
let win = element.ownerDocument.defaultView;
|
|
77
81
|
return {
|
|
78
82
|
top: rect.top + win.pageYOffset,
|
|
79
|
-
left: rect.left + win.pageXOffset
|
|
83
|
+
left: rect.left + win.pageXOffset,
|
|
80
84
|
};
|
|
81
85
|
}
|
|
82
86
|
async function raf() {
|
|
@@ -86,6 +90,32 @@ async function raf() {
|
|
|
86
90
|
});
|
|
87
91
|
});
|
|
88
92
|
}
|
|
93
|
+
exports.StzhEnvironmentEnum = void 0;
|
|
94
|
+
(function (StzhEnvironmentEnum) {
|
|
95
|
+
StzhEnvironmentEnum["UNKNOWN"] = "UNKNOWN";
|
|
96
|
+
StzhEnvironmentEnum["DEV"] = "DEV";
|
|
97
|
+
StzhEnvironmentEnum["UAT"] = "UAT";
|
|
98
|
+
StzhEnvironmentEnum["PROD"] = "PROD";
|
|
99
|
+
})(exports.StzhEnvironmentEnum || (exports.StzhEnvironmentEnum = {}));
|
|
100
|
+
function getStzhEnvironment() {
|
|
101
|
+
const url = window.location.href;
|
|
102
|
+
if (url.includes("test.stadt-zuerich.ch") ||
|
|
103
|
+
url.match(/\.dev\.cmp\.szh\.loc/)) {
|
|
104
|
+
return exports.StzhEnvironmentEnum.DEV;
|
|
105
|
+
}
|
|
106
|
+
else if (url.includes("integ.stadt-zuerich.ch") ||
|
|
107
|
+
url.includes("stzh-desi-unic-preview.netlify.app") ||
|
|
108
|
+
url.match(/\.uat\.cmp\.szh\.loc/)) {
|
|
109
|
+
return exports.StzhEnvironmentEnum.UAT;
|
|
110
|
+
}
|
|
111
|
+
else if (url.includes("www.stadt-zuerich.ch") ||
|
|
112
|
+
url.match(/\.cmp\.szh\.loc/)) {
|
|
113
|
+
return exports.StzhEnvironmentEnum.PROD;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return exports.StzhEnvironmentEnum.UNKNOWN;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
89
119
|
// `extras.experimentalSlotFixes` stencil config flag resolves cloning light dom elements
|
|
90
120
|
// so our own cloneElement / cloneWrappedStzhElement helpers are not needed right now
|
|
91
121
|
// (used before in cardlist and sortable component).
|
|
@@ -140,6 +170,7 @@ async function raf() {
|
|
|
140
170
|
// }
|
|
141
171
|
|
|
142
172
|
exports.getMeta = getMeta;
|
|
173
|
+
exports.getStzhEnvironment = getStzhEnvironment;
|
|
143
174
|
exports.hasSlot = hasSlot;
|
|
144
175
|
exports.isStzhElement = isStzhElement;
|
|
145
176
|
exports.isVisible = isVisible;
|
|
@@ -147,4 +178,4 @@ exports.offset = offset;
|
|
|
147
178
|
exports.raf = raf;
|
|
148
179
|
exports.setPropsIfNull = setPropsIfNull;
|
|
149
180
|
|
|
150
|
-
//# sourceMappingURL=utils-
|
|
181
|
+
//# sourceMappingURL=utils-d091c010.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-d091c010.js","mappings":";;;;AAEA;AACA;SACgB,OAAO,CAAC,EAAe,EAAE,IAAa;;EAEpD,IAAI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ACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;;;;;;;;;","names":["dashCase","StzhEnvironmentEnum"],"sources":["src/utils/utils.ts"],"sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n if (\n url.includes(\"test.stadt-zuerich.ch\") ||\n url.match(/\\.dev\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.DEV;\n } else if (\n url.includes(\"integ.stadt-zuerich.ch\") ||\n url.includes(\"stzh-desi-unic-preview.netlify.app\") ||\n url.match(/\\.uat\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.UAT;\n } else if (\n url.includes(\"www.stadt-zuerich.ch\") ||\n url.match(/\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.PROD;\n } else {\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\n// `extras.experimentalSlotFixes` stencil config flag resolves cloning light dom elements\n// so our own cloneElement / cloneWrappedStzhElement helpers are not needed right now\n// (used before in cardlist and sortable component).\n\n// export function children(node: Element) {\n// return childNodes(node).map((n: any) => n.nodeType === 1);\n// }\n\n// const nativeCloneNodeFn = Node.prototype.cloneNode;\n\n// export function cloneElement(node: Element, deep: boolean) {\n// const clonedNode = nativeCloneNodeFn.call(node, false);\n// const srcChildNodes = childNodes(node);\n\n// if (deep) {\n// for (let i = 0; i < srcChildNodes.length; i++) {\n// if (srcChildNodes[i].nodeType !== 2) {\n// const childClone = cloneElement(srcChildNodes[i], true);\n// clonedNode.appendChild(childClone);\n// }\n// }\n// }\n\n// return clonedNode;\n// }\n\n// // Clone an stzh-* element that is using stencil polyfilled slots (no shadow dom)\n// // and potentially wrapped in normal elements (e.g. angular component)\n// export function cloneWrappedStzhElement(elementToClone: Element): [Element, Element, Element] {\n// let clonedElement: Element;\n// let clonedStzhElement: Element;\n// let originalStzhElement: Element;\n\n// if (isStzhElement(elementToClone)) {\n// clonedElement = cloneElement(elementToClone, true);\n// clonedStzhElement = clonedElement;\n// originalStzhElement = elementToClone;\n// } else {\n// clonedElement = elementToClone.cloneNode() as Element;\n\n// let clonedInnerElementLast: Element = clonedElement;\n// let originalInnerElementLast: Element = elementToClone;\n\n// // clone inner root elements separately until we find a stzh element\n// while (originalInnerElementLast.children.length === 1 && !isStzhElement(originalInnerElementLast.children[0])) {\n// originalInnerElementLast = originalInnerElementLast.children[0];\n// const clonedInnerElementCurrent = originalInnerElementLast.cloneNode() as Element;\n\n// clonedInnerElementLast.appendChild(clonedInnerElementCurrent);\n// clonedInnerElementLast = clonedInnerElementCurrent;\n// }\n\n// if (isStzhElement(originalInnerElementLast.children[0])) {\n// clonedStzhElement = cloneElement(originalInnerElementLast.children[0], true);\n// originalStzhElement = originalInnerElementLast.children[0];\n// clonedInnerElementLast.appendChild(clonedStzhElement);\n// } else {\n// // no root stzh element found, so we give up and just deep clone the root\n// clonedElement = cloneElement(elementToClone, true);\n// }\n// }\n\n// return [clonedElement, clonedStzhElement, originalStzhElement];\n// }\n"],"version":3}
|
|
@@ -147,10 +147,11 @@
|
|
|
147
147
|
"removeButtonTitle": "Option löschen"
|
|
148
148
|
},
|
|
149
149
|
"upload": {
|
|
150
|
-
"heading": "
|
|
151
|
-
"description": "
|
|
152
|
-
"buttonIntro": "oder hier",
|
|
150
|
+
"heading": "Bitte Datei hochladen",
|
|
151
|
+
"description": "Zulässige Dateiformate: {{fileformats}} (max. {{filesize}} MB)",
|
|
152
|
+
"buttonIntro": "oder Dateien hier reinziehen",
|
|
153
153
|
"button": "Datei auswählen | Dateien auswählen",
|
|
154
|
+
"buttonScan": "Dokument fotografieren | Dokumente fotografieren",
|
|
154
155
|
"cancelUpload": "Upload abbrechen",
|
|
155
156
|
"uploadCanceled": "Upload abgebrochen.",
|
|
156
157
|
"cancelUploadConfirmation": "Sind Sie sicher, dass Sie den Upload abbrechen wollen?",
|
|
@@ -163,7 +164,12 @@
|
|
|
163
164
|
"responseError": "Server Fehler Code {{statusCode}}.",
|
|
164
165
|
"invalidFileType": "Sie können keine Dateien von diesem Typ uploaden.",
|
|
165
166
|
"fileTooBig": "Die Datei ist zu gross ({{filesize}}MiB). Maximal erlaubte Grösse: {{maxFilesize}}MiB.",
|
|
166
|
-
"fileTooBigServer": "Die Datei ist zu gross (Error 413)"
|
|
167
|
+
"fileTooBigServer": "Die Datei ist zu gross (Error 413)",
|
|
168
|
+
"photographingTitle1": "1 Smartphone oder Tablet verbinden",
|
|
169
|
+
"photographingText1": "Sie können Ihre Dokumente mit Ihrem Smartphone oder Tablet fotografieren und hochladen. Scannen Sie den QR-Code mit Ihrem mobilen Gerät oder geben Sie folgende URL in den Browser ihres mobilen Gerätes ein:",
|
|
170
|
+
"photographingTitle2": "2 Dokument hochladen",
|
|
171
|
+
"photographingText2": "Sobald Sie die Webseite auf Ihrem mobilen Gerät geöffnet haben, können Sie die Dokumente fotografieren oder aus dem Speicher Ihres Geräts hochladen.",
|
|
172
|
+
"back": "Zurück"
|
|
167
173
|
},
|
|
168
174
|
"calendar": {
|
|
169
175
|
"prevMonthLabel": "Vorheriger Monat",
|
|
@@ -384,6 +390,13 @@
|
|
|
384
390
|
"expandLabel": "...",
|
|
385
391
|
"expandHiddenLabel": "Blende alle Breadcrumbs ein"
|
|
386
392
|
},
|
|
393
|
+
"contact-cv": {
|
|
394
|
+
"jobtitle": "Funktion",
|
|
395
|
+
"responsibilities": "Zuständigkeit",
|
|
396
|
+
"trainings": "Ausbildung",
|
|
397
|
+
"hobbies": "Hobbies",
|
|
398
|
+
"favoriteLinks": "Meine Lieblingslinks"
|
|
399
|
+
},
|
|
387
400
|
"vbz-ticker": {
|
|
388
401
|
"moreInfo": "Weitere Informationen",
|
|
389
402
|
"noDisturbances": "Alle Linien fahren wie geplant.",
|
|
@@ -395,11 +408,13 @@
|
|
|
395
408
|
"railReplacementBus": "{n} Bahnersatzbus | {n} Bahnersatzbusse",
|
|
396
409
|
"majorEvent": "{n} Grossereignis | {n} Grossereignisse",
|
|
397
410
|
"majorEventTitle": "Grossereignis",
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"constructionsTitle": "Baustellen"
|
|
411
|
+
"disturbancesTitle": "Störungen auf folgenden Linien",
|
|
412
|
+
"constructionsTitle": "Baustellen auf folgenden Linien"
|
|
401
413
|
},
|
|
402
414
|
"vbz-majorticker": {
|
|
403
415
|
"moreInfo": "Weitere Informationen"
|
|
416
|
+
},
|
|
417
|
+
"vbz-intro": {
|
|
418
|
+
"quicklinksHeading": "Schnelleinstieg"
|
|
404
419
|
}
|
|
405
420
|
}
|
|
@@ -147,10 +147,11 @@
|
|
|
147
147
|
"removeButtonTitle": "Remove item"
|
|
148
148
|
},
|
|
149
149
|
"upload": {
|
|
150
|
-
"heading": "
|
|
151
|
-
"description": "
|
|
152
|
-
"buttonIntro": "or here",
|
|
150
|
+
"heading": "Please upload file",
|
|
151
|
+
"description": "Allowed file formats: {{fileformats}} (max. {{filesize}} MB)",
|
|
152
|
+
"buttonIntro": "or drag files here",
|
|
153
153
|
"button": "Choose file | Choose files",
|
|
154
|
+
"buttonScan": "Scan document | Scan documents",
|
|
154
155
|
"cancelUpload": "Cancel upload",
|
|
155
156
|
"uploadCanceled": "Upload canceled.",
|
|
156
157
|
"cancelUploadConfirmation": "Are you sure you want to cancel this upload?",
|
|
@@ -163,7 +164,12 @@
|
|
|
163
164
|
"responseError": "Server responded with code {{statusCode}}.",
|
|
164
165
|
"invalidFileType": "You can't upload files of this type.",
|
|
165
166
|
"fileTooBig": "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
|
|
166
|
-
"fileTooBigServer": "File is too big (error 413)"
|
|
167
|
+
"fileTooBigServer": "File is too big (error 413)",
|
|
168
|
+
"photographingTitle1": "1 Connect smartphone or table",
|
|
169
|
+
"photographingText1": "You can take a photo of your documents with your smartphone or tablet and upload them. Scan the QR code with your mobile device or enter the following URL in the browser of your mobile device:",
|
|
170
|
+
"photographingTitle2": "2 Upload document",
|
|
171
|
+
"photographingText2": "Once you have opened the website on your mobile device, you can take a photo of the documents or upload them from your device's storage.",
|
|
172
|
+
"back": "Zurück"
|
|
167
173
|
},
|
|
168
174
|
"calendar": {
|
|
169
175
|
"prevMonthLabel": "Previous month",
|
|
@@ -385,6 +391,13 @@
|
|
|
385
391
|
"expandLabel": "...",
|
|
386
392
|
"expandHiddenLabel": "Show all breadcrumbs"
|
|
387
393
|
},
|
|
394
|
+
"contact-cv": {
|
|
395
|
+
"jobtitle": "Jobtitle",
|
|
396
|
+
"responsibilities": "Responsibilities",
|
|
397
|
+
"trainings": "Trainings",
|
|
398
|
+
"hobbies": "Hobbies",
|
|
399
|
+
"favoriteLinks": "My favorite links"
|
|
400
|
+
},
|
|
388
401
|
"vbz-ticker": {
|
|
389
402
|
"moreInfo": "More information",
|
|
390
403
|
"noDisturbances": "All lines are running as planned.",
|
|
@@ -396,11 +409,13 @@
|
|
|
396
409
|
"railReplacementBus": "{n} Rail replacement bus | {n} Rail replacement buses",
|
|
397
410
|
"majorEvent": "{n} Major event | {n} Major events",
|
|
398
411
|
"majorEventTitle": "Major event",
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"constructionsTitle": "Construction sites"
|
|
412
|
+
"disturbancesTitle": "Disturbances for these lines",
|
|
413
|
+
"constructionsTitle": "Constructionworks on the following lines"
|
|
402
414
|
},
|
|
403
415
|
"vbz-majorticker": {
|
|
404
416
|
"moreInfo": "More information"
|
|
417
|
+
},
|
|
418
|
+
"vbz-intro": {
|
|
419
|
+
"quicklinksHeading": "Schnelleinstieg"
|
|
405
420
|
}
|
|
406
421
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><defs><clipPath id="a"><rect width="20" height="11" x="2" y="5" rx="1"/></clipPath></defs><rect width="20" height="11" x="2" y="5" stroke="currentColor" stroke-width="4" clip-path="url(#a)" rx="1"/><path stroke="currentColor" stroke-width="2" d="M6 16v6m12-6v6M10.707 5.707l-8 8m15-8-9 9m12-5-5 5"/><circle cx="6.5" cy="3.5" r="1" fill="currentColor" stroke="currentColor"/><circle cx="17.5" cy="3.5" r="1" fill="currentColor" stroke="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 25 24"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M5.375 17v2h12v4h2v-4h4v-2h-4V5h-12V1h-2v4h-4v2h4zm2 0h10V7h-10z" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M.375 0h24v24h-24z"/></clipPath></defs></svg>
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
</div>
|
|
187
187
|
|
|
188
188
|
<div class="icon-wrapper">
|
|
189
|
-
<div class="icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><
|
|
189
|
+
<div class="icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><defs><clipPath id="a"><rect width="20" height="11" x="2" y="5" rx="1"/></clipPath></defs><rect width="20" height="11" x="2" y="5" stroke="currentColor" stroke-width="4" clip-path="url(#a)" rx="1"/><path stroke="currentColor" stroke-width="2" d="M6 16v6m12-6v6M10.707 5.707l-8 8m15-8-9 9m12-5-5 5"/><circle cx="6.5" cy="3.5" r="1" fill="currentColor" stroke="currentColor"/><circle cx="17.5" cy="3.5" r="1" fill="currentColor" stroke="currentColor"/></svg></div>
|
|
190
190
|
<div class="icon-name">construction</div>
|
|
191
191
|
</div>
|
|
192
192
|
|
|
@@ -195,6 +195,11 @@
|
|
|
195
195
|
<div class="icon-name">copy</div>
|
|
196
196
|
</div>
|
|
197
197
|
|
|
198
|
+
<div class="icon-wrapper">
|
|
199
|
+
<div class="icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 25 24"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M5.375 17v2h12v4h2v-4h4v-2h-4V5h-12V1h-2v4h-4v2h4zm2 0h10V7h-10z" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M.375 0h24v24h-24z"/></clipPath></defs></svg></div>
|
|
200
|
+
<div class="icon-name">crop</div>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
198
203
|
<div class="icon-wrapper">
|
|
199
204
|
<div class="icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16m3.833 3.337a.595.595 0 0 1 .763.067.59.59 0 0 1 .063.76q-3.27 4.569-3.598 4.897a1.5 1.5 0 0 1-2.122 0 1.5 1.5 0 0 1 0-2.122q.56-.56 4.894-3.602M17.5 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-11 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2m2.318-3.596a1 1 0 1 1-1.416 1.414 1 1 0 0 1 1.416-1.414M12 5.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg></div>
|
|
200
205
|
<div class="icon-name">dashboard</div>
|