@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stzh-panorama.js","sourceRoot":"","sources":["../../../../src/components/stzh-panorama/stzh-panorama.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAevH,OAAO,WAAW,CAAC;AAEnB,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAC/C,MAAM,qBAAqB,GAAG,gCAAgC,CAAC;AAC/D,MAAM,oBAAoB,GAAG,+BAA+B,CAAC;AAC7D,MAAM,0BA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Fragment, h, Host, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport {\n PanoramaScene,\n PanoramaScenesLibrary,\n StzhDropdownChangeEvent,\n StzhPanoramaChangeEvent,\n StzhPanoramaFullscreenChangeEvent,\n StzhPanoramaLoadEvent,\n StzhPanoramaSceneChangeEvent,\n StzhPanoramaZoomChangeEvent,\n} from \"../../index\";\n\nimport { StzhPanoramaLocalizedText } from \"./stzh-panorama.localization\";\n\nimport \"pannellum\";\n\nconst CLASS_HOTSPOT = \"stzh-panorama__hotspot\";\nconst CLASS_HOTSPOT_TOOLTIP = \"stzh-panorama__hotspot-tooltip\";\nconst CLASS_HOTSPOT_BUTTON = \"stzh-panorama__hotspot-button\";\nconst CLASS_HOTSPOT_BUTTON_SCENE = \"is-scene\";\nconst CLASS_HOTSPOT_BUTTON_INFO = \"is-info\";\nconst CLASS_HOTSPOT_BUTTON_LINK = \"is-link\";\n\nconst ICON_HOTSPOT_SCENE = \"arrow-up\";\nconst ICON_HOTSPOT_DEFAULT = \"info-help\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-panorama\",\n styleUrl: \"stzh-panorama.scss\",\n})\nexport class StzhPanorama {\n /** Translation strings */\n @Prop() localization: StzhPanoramaLocalizedText;\n\n /** Caption */\n @Prop() caption: string = \"\";\n\n /** Heading */\n @Prop() heading: string = \"\";\n\n /** Copyright */\n @Prop() copyright: string = \"\";\n\n /** Current scene */\n @Prop({ mutable: true }) scene: string;\n\n /** Fade duration on scene change */\n @Prop() sceneFadeDuration = 500;\n\n /** Whether to autoload panorama on pageload */\n @Prop() autoload: boolean = true;\n\n /** If set to true, device orientation control will be used when the panorama is loaded, if the device supports it. If false, device orientation control needs to be activated by pressing a button. */\n @Prop() orientationOnByDefault: boolean = false;\n\n /** If set to false, moving/paning/zooming controls will be hidden. e.g. when embedding the panorama into content columns. */\n @Prop() showControls: boolean = true;\n\n /** If set to false, hotspots will be hidden. e.g. when embedding the panorama into content columns. */\n @Prop() showHotspots: boolean = true;\n\n /**\n * Available scenes\n *\n * An array of objects including `sceneId`, `imageTitle`, `imageSrc`, optionally `imageAuthor`, `imageType`, `caption`, `pitch`, `yaw`, `hfov` and `hotspots`\n * `hotspots` can be an array of objects including `pitch`, `yaw`, `type`, `text`, optionally `url`, `id`, `sceneId`, `targetPitch` and `targetYaw`\n *\n * See also https://pannellum.org/documentation/reference/\n */\n @Prop() scenes: PanoramaScene[] | string;\n private _scenes: PanoramaScene[];\n private _scenesLibrary: PanoramaScenesLibrary;\n\n @Element() element: HTMLStzhFigureElement;\n\n /** Get viewer instance */\n @Method()\n async getViewer(): Promise<any> {\n return this.viewer;\n }\n\n @Watch(\"scenes\")\n scenesWatcher(newValue: PanoramaScene[] | string) {\n if (!this.localization) {\n return;\n }\n\n if (typeof newValue === \"string\") {\n this._scenes = JSON.parse(newValue);\n } else if (newValue) {\n this._scenes = newValue;\n } else {\n throw new Error('\"scenes\" is empty');\n }\n\n const scenesLib: PanoramaScenesLibrary = {};\n\n // copy object and modify scene hotspots to build own more accessible elements\n this._scenes.forEach(scene => {\n const { sceneId, imageTitle, imageSrc, imageAuthor, imageType, hotspots, ...sceneParams } = scene;\n\n scenesLib[sceneId] = {\n ...sceneParams,\n type: imageType,\n panorama: imageSrc,\n hotSpots: this.showHotspots\n ? hotspots.map(hotSpot => ({\n ...hotSpot,\n URL: \"\", // switch hotspot into non url info spot to be able to create accessible link\n cssClass: CLASS_HOTSPOT,\n createTooltipFunc: this.createTooltip,\n createTooltipArgs: { ...hotSpot, url: hotSpot.url },\n }))\n : undefined,\n };\n });\n\n this._scenesLibrary = scenesLib;\n }\n\n @Watch(\"scene\")\n sceneWatcher(newValue: string) {\n this.viewer.loadScene(newValue);\n }\n\n @Watch(\"autoload\")\n @Watch(\"scenes\")\n @Watch(\"type\")\n @Watch(\"localization\")\n @Watch(\"orientationOnByDefault\")\n @Watch(\"sceneFadeDuration\")\n updateWatcher() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n // @Listen(\"load\", { target: \"window\" })\n // @Listen(\"deviceorientation\", { target: \"window\" })\n // @Listen(\"pageshow\", { target: \"window\" })\n // handleLoad() {\n // if (this.viewer) {\n // requestAnimationFrame(() => {\n // this.viewer.resize();\n // });\n // }\n // }\n\n /** Load event */\n @Event() stzhLoad: EventEmitter<StzhPanoramaLoadEvent>;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhPanoramaChangeEvent>;\n\n /** Fullscreen change event */\n @Event()\n stzhFullscreenChange: EventEmitter<StzhPanoramaFullscreenChangeEvent>;\n\n /** Scene change event */\n @Event() stzhSceneChange: EventEmitter<StzhPanoramaSceneChangeEvent>;\n\n /** Zoom change event */\n @Event() stzhZoomChange: EventEmitter<StzhPanoramaZoomChangeEvent>;\n\n @State() isOrientationSupported = false;\n @State() isOrientationActive = false;\n @State() isFullscreen = false;\n\n private viewer: any;\n private containerElement: HTMLElement;\n private actionRunning: { [key: string]: number } = {};\n private controlAnimationTime: number = 500;\n\n private createTooltip = (hotspotDiv, options) => {\n const element = document.createElement(\"stzh-button\");\n element.classList.add(CLASS_HOTSPOT_BUTTON);\n\n if (options.type === \"scene\") {\n element.classList.add(CLASS_HOTSPOT_BUTTON_SCENE);\n } else if (options.url && !options.text) {\n element.classList.add(CLASS_HOTSPOT_BUTTON_LINK);\n element.setAttribute(\"href\", options.url);\n element.setAttribute(\"target\", \"_blank\");\n } else {\n element.classList.add(CLASS_HOTSPOT_BUTTON_INFO);\n }\n\n element.icon = options.type === \"scene\" ? ICON_HOTSPOT_SCENE : ICON_HOTSPOT_DEFAULT;\n element.iconOnly = true;\n element.rounded = true;\n element.size = \"small\";\n element.variant = \"secondary\";\n\n if (options.text) {\n const tooltip = document.createElement(\"stzh-tooltip\");\n tooltip.label = this.localization.hotspotLabel;\n tooltip.placement = \"top\";\n tooltip.type = \"button\";\n tooltip.className = CLASS_HOTSPOT_TOOLTIP;\n\n if (options.url) {\n const tooltipContentSlot = document.createElement(\"div\");\n tooltipContentSlot.slot = \"content\";\n\n const text = document.createElement(\"stzh-text\");\n text.font = \"heavy\";\n text.curve = \"caption\";\n text.textContent = options.text;\n tooltipContentSlot.appendChild(text);\n\n const link = document.createElement(\"stzh-link\");\n link.label = this.localization.moreInformation;\n link.href = options.url;\n link.target = \"_blank\";\n link.icon = \"arrow-right\";\n link.iconPosition = \"right\";\n link.size = \"small\";\n tooltipContentSlot.appendChild(link);\n\n tooltip.appendChild(tooltipContentSlot);\n } else {\n tooltip.content = options.text;\n }\n\n tooltip.appendChild(element);\n hotspotDiv.appendChild(tooltip);\n } else {\n hotspotDiv.appendChild(element);\n }\n\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n element.addEventListener(\"keydown\", event => {\n event.stopPropagation();\n });\n };\n\n private handleSceneDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const target: HTMLStzhDropdownElement = event.target as HTMLStzhDropdownElement;\n const scene = (await target.getValue()) as string;\n this.scene = scene;\n };\n\n private handleControlsKeydown = (event: KeyboardEvent) => {\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n event.stopPropagation();\n };\n\n private action = (\n type:\n | \"zoomIn\"\n | \"zoomOut\"\n | \"fullscreen\"\n | \"startOrientation\"\n | \"stopOrientation\"\n | \"panUp\"\n | \"panDown\"\n | \"panLeft\"\n | \"panRight\"\n ) => {\n if (![\"startOrientation\", \"fullscreen\"].includes(type)) {\n this.stopOrientation();\n }\n\n if (type === \"zoomIn\") {\n this.executeAction(\"zoomIn\", this.viewer.getHfov, this.viewer.setHfov, -10);\n } else if (type === \"zoomOut\") {\n this.executeAction(\"zoomOut\", this.viewer.getHfov, this.viewer.setHfov, +10);\n } else if (type === \"fullscreen\") {\n this.viewer.toggleFullscreen();\n } else if (type === \"startOrientation\") {\n this.startOrientation();\n } else if (type === \"panUp\") {\n this.executeAction(\"panUp\", this.viewer.getPitch, this.viewer.setPitch, +10);\n } else if (type === \"panDown\") {\n this.executeAction(\"panDown\", this.viewer.getPitch, this.viewer.setPitch, -10);\n } else if (type === \"panLeft\") {\n this.executeAction(\"panLeft\", this.viewer.getYaw, this.viewer.setYaw, -10);\n } else if (type === \"panRight\") {\n this.executeAction(\"panRight\", this.viewer.getYaw, this.viewer.setYaw, +10);\n }\n };\n\n private stopOrientation() {\n if (this.viewer.isOrientationActive()) {\n this.viewer.stopOrientation();\n\n // trigger touchstart event to reset panorama rotation correctly\n // old preview code:\n // const evt = document.createEvent(\"HTMLEvents\");\n // evt.initEvent(\"touchstart\", false, true);\n // $(document).find(\".pnlm-dragfix\").get(0).dispatchEvent(evt);\n // alternative: https://gist.github.com/morewry/538efb737ed9c4e432e4\n\n var e = new window.Event(\"touchstart\");\n this.element.querySelector(\".pnlm-dragfix\").dispatchEvent(e);\n\n this.updateOrientationState();\n }\n }\n\n private startOrientation() {\n if (this.viewer.isOrientationSupported()) {\n this.viewer.startOrientation();\n this.updateOrientationState();\n }\n }\n\n private updateOrientationState() {\n this.isOrientationSupported = this.viewer.isOrientationSupported();\n this.isOrientationActive = this.isOrientationSupported && this.viewer.isOrientationActive();\n }\n\n /**\n * Execute a button control action.\n * If the action is already runing/animating, add the value to the current position and set as new target.\n */\n private executeAction(name, getter, setter, value) {\n this.actionRunning[name] =\n typeof this.actionRunning[name] !== \"undefined\" && this.actionRunning[name] !== 0\n ? this.actionRunning[name] + value\n : getter() + value;\n\n setter(this.actionRunning[name], this.controlAnimationTime, () => {\n this.actionRunning = { [name]: 0 };\n });\n }\n\n private initViewer() {\n this.viewer = window.pannellum.viewer(\n this.containerElement,\n // https://pannellum.org/documentation/reference/\n {\n scenes: this._scenesLibrary,\n default: {\n firstScene: this.scene,\n showControls: false, // we show our own controls (zoom in/out and fullscreen)\n sceneFadeDuration: this.sceneFadeDuration,\n autoLoad: this.autoload,\n compass: false,\n orientationOnByDefault: this.orientationOnByDefault,\n strings: {\n loadButtonLabel: this.localization.loadButtonLabel,\n loadingLabel: this.localization.loadingLabel,\n bylineLabel: this.localization.bylineLabel,\n noPanoramaError: this.localization.noPanoramaError,\n fileAccessError: this.localization.fileAccessError,\n malformedURLError: this.localization.malformedURLError,\n iOS8WebGLError: this.localization.iOS8WebGLError,\n genericWebGLError: this.localization.genericWebGLError,\n textureSizeError: this.localization.textureSizeError,\n unknownError: this.localization.unknownError,\n },\n },\n }\n );\n\n this.viewer.on(\"load\", () => {\n if (this.viewer) {\n // update classes for orientation control when a new scene has been loaded\n this.updateOrientationState();\n this.scene = this.viewer.getScene();\n\n this.stzhLoad.emit({\n component: \"stzh-panorama\",\n });\n }\n });\n\n this.viewer.on(\"touchstart\", () => {\n // update classes for orientation control when user interacts with panorama\n this.updateOrientationState();\n });\n\n this.viewer.on(\"fullscreenchange\", (status: boolean) => {\n this.isFullscreen = status;\n\n this.stzhFullscreenChange.emit({\n component: \"stzh-panorama\",\n value: this.isFullscreen,\n });\n });\n\n this.viewer.on(\"scenechange\", (sceneId: string) => {\n // set focus back to container when scene has been changed\n this.containerElement.focus();\n\n this.stzhSceneChange.emit({\n component: \"stzh-panorama\",\n value: sceneId,\n });\n });\n\n this.viewer.on(\"zoomchange\", (zoom: number) => {\n this.stzhZoomChange.emit({\n component: \"stzh-panorama\",\n value: zoom,\n });\n });\n\n this.viewer.on(\"animatefinished\", (data: { pitch: number; yaw: number; hfov: number }) => {\n this.stzhChange.emit({\n component: \"stzh-panorama\",\n value: data,\n });\n });\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"panorama\");\n }\n\n this.scenesWatcher(this.scenes);\n }\n\n async componentDidRender() {\n if (this.viewer) {\n return;\n }\n\n this.initViewer();\n }\n\n disconnectedCallback() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n render() {\n const classes = {\n \"stzh-panorama\": true,\n \"stzh-panorama--is-motion\": this.isOrientationActive,\n \"stzh-panorama--is-fullscreen\": this.isFullscreen,\n };\n\n const sceneOptions = this._scenes.map(({ sceneId, imageTitle }) => ({\n value: sceneId,\n text: imageTitle,\n }));\n\n const currentScene = this._scenes.find(({ sceneId }) => sceneId === this.scene);\n\n return (\n <Host>\n <div class={classes}>\n <stzh-figure\n class=\"stzh-panorama__figure\"\n heading={this.heading}\n caption={currentScene.caption || this.caption}\n copyright={currentScene.copyright || this.copyright}\n >\n <stzh-ratio>\n <div\n ref={el => (this.containerElement = el as HTMLElement)}\n class=\"stzh-panorama__container\"\n tabindex=\"0\"\n >\n <div class=\"stzh-panorama__sceneselector\">\n {sceneOptions.length > 1 && (\n <stzh-dropdown\n class={\"stzh-panorama__sceneselector-dropdown\"}\n size={\"small\"}\n popoverPlacement={\"top\"}\n label={this.localization.sceneLabel}\n labelHidden={true}\n noSearch={true}\n items={[this.scene]}\n options={sceneOptions}\n onStzhChange={this.handleSceneDropdownChange}\n ></stzh-dropdown>\n )}\n <div class=\"stzh-panorama__copyright\">\n {currentScene.imageAuthor || currentScene.copyright || this.copyright}\n </div>\n </div>\n <div class=\"stzh-panorama__controls\" onKeyDown={this.handleControlsKeydown}>\n {this.showControls && (\n <Fragment>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panLeft}\n variant=\"secondary\"\n icon=\"arrow-left\"\n size=\"small\"\n onClick={() => this.action(\"panLeft\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panRight}\n variant=\"secondary\"\n icon=\"arrow-right\"\n size=\"small\"\n onClick={() => this.action(\"panRight\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panUp}\n variant=\"secondary\"\n icon=\"arrow-up\"\n size=\"small\"\n onClick={() => this.action(\"panUp\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panDown}\n variant=\"secondary\"\n icon=\"arrow-down\"\n size=\"small\"\n onClick={() => this.action(\"panDown\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.zoomIn}\n variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n onClick={() => this.action(\"zoomIn\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.zoomOut}\n variant=\"secondary\"\n icon=\"minus\"\n size=\"small\"\n onClick={() => this.action(\"zoomOut\")}\n ></stzh-button>\n </Fragment>\n )}\n\n {this.isOrientationSupported && (\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={\n this.isOrientationActive\n ? this.localization.stopOrientation\n : this.localization.startOrientation\n }\n icon={this.isOrientationActive ? \"target-bullet\" : \"target\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(this.isOrientationActive ? \"stopOrientation\" : \"startOrientation\")}\n ></stzh-button>\n )}\n\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={\n this.isFullscreen\n ? this.localization.disableFullscreenLabel\n : this.localization.enableFullscreenLabel\n }\n icon={this.isFullscreen ? \"shrink\" : \"expand\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(\"fullscreen\")}\n ></stzh-button>\n </div>\n </div>\n </stzh-ratio>\n </stzh-figure>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"stzh-panorama.js","sourceRoot":"","sources":["../../../../src/components/stzh-panorama/stzh-panorama.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA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AAE,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAC3B,CACX,CACF,CACK,CACD,CACV,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Fragment, h, Host, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport {\n PanoramaScene,\n PanoramaScenesLibrary,\n StzhDropdownChangeEvent,\n StzhPanoramaChangeEvent,\n StzhPanoramaFullscreenChangeEvent,\n StzhPanoramaLoadEvent,\n StzhPanoramaSceneChangeEvent,\n StzhPanoramaZoomChangeEvent,\n} from \"../../index\";\n\nimport { StzhPanoramaLocalizedText } from \"./stzh-panorama.localization\";\n\nimport \"pannellum\";\n\nconst CLASS_HOTSPOT = \"stzh-panorama__hotspot\";\nconst CLASS_HOTSPOT_TOOLTIP = \"stzh-panorama__hotspot-tooltip\";\nconst CLASS_HOTSPOT_BUTTON = \"stzh-panorama__hotspot-button\";\nconst CLASS_HOTSPOT_BUTTON_SCENE = \"is-scene\";\nconst CLASS_HOTSPOT_BUTTON_INFO = \"is-info\";\nconst CLASS_HOTSPOT_BUTTON_LINK = \"is-link\";\n\nconst ICON_HOTSPOT_SCENE = \"arrow-up\";\nconst ICON_HOTSPOT_DEFAULT = \"info-help\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-panorama\",\n styleUrl: \"stzh-panorama.scss\",\n})\nexport class StzhPanorama {\n /** Translation strings */\n @Prop() localization: StzhPanoramaLocalizedText;\n\n /** Caption */\n @Prop() caption: string = \"\";\n\n /** Heading */\n @Prop() heading: string = \"\";\n\n /** Copyright */\n @Prop() copyright: string = \"\";\n\n /** Current scene */\n @Prop({ mutable: true }) scene: string;\n\n /** Fade duration on scene change */\n @Prop() sceneFadeDuration = 500;\n\n /** Whether to autoload panorama on pageload */\n @Prop() autoload: boolean = true;\n\n /** If set to true, device orientation control will be used when the panorama is loaded, if the device supports it. If false, device orientation control needs to be activated by pressing a button. */\n @Prop() orientationOnByDefault: boolean = false;\n\n /** If set to false, moving/paning/zooming controls will be hidden. e.g. when embedding the panorama into content columns. */\n @Prop() showControls: boolean = true;\n\n /** If set to false, hotspots will be hidden. e.g. when embedding the panorama into content columns. */\n @Prop() showHotspots: boolean = true;\n\n /**\n * Available scenes\n *\n * An array of objects including `sceneId`, `imageTitle`, `imageSrc`, optionally `imageAuthor`, `imageType`, `caption`, `pitch`, `yaw`, `hfov` and `hotspots`\n * `hotspots` can be an array of objects including `pitch`, `yaw`, `type`, `text`, optionally `url`, `id`, `sceneId`, `targetPitch` and `targetYaw`\n *\n * See also https://pannellum.org/documentation/reference/\n */\n @Prop() scenes: PanoramaScene[] | string;\n private _scenes: PanoramaScene[];\n private _scenesLibrary: PanoramaScenesLibrary;\n\n @Element() element: HTMLStzhFigureElement;\n\n /** Get viewer instance */\n @Method()\n async getViewer(): Promise<any> {\n return this.viewer;\n }\n\n @Watch(\"scenes\")\n scenesWatcher(newValue: PanoramaScene[] | string) {\n if (!this.localization) {\n return;\n }\n\n if (typeof newValue === \"string\") {\n this._scenes = JSON.parse(newValue);\n } else if (newValue) {\n this._scenes = newValue;\n } else {\n throw new Error('\"scenes\" is empty');\n }\n\n const scenesLib: PanoramaScenesLibrary = {};\n\n // copy object and modify scene hotspots to build own more accessible elements\n this._scenes.forEach(scene => {\n const { sceneId, imageTitle, imageSrc, imageAuthor, imageType, hotspots, ...sceneParams } = scene;\n\n scenesLib[sceneId] = {\n ...sceneParams,\n type: imageType,\n panorama: imageSrc,\n hotSpots: this.showHotspots\n ? hotspots.map(hotSpot => ({\n ...hotSpot,\n URL: \"\", // switch hotspot into non url info spot to be able to create accessible link\n cssClass: CLASS_HOTSPOT,\n createTooltipFunc: this.createTooltip,\n createTooltipArgs: { ...hotSpot, url: hotSpot.url },\n }))\n : undefined,\n };\n });\n\n this._scenesLibrary = scenesLib;\n }\n\n @Watch(\"scene\")\n sceneWatcher(newValue: string) {\n this.viewer.loadScene(newValue);\n }\n\n @Watch(\"autoload\")\n @Watch(\"scenes\")\n @Watch(\"type\")\n @Watch(\"localization\")\n @Watch(\"orientationOnByDefault\")\n @Watch(\"sceneFadeDuration\")\n updateWatcher() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n // @Listen(\"load\", { target: \"window\" })\n // @Listen(\"deviceorientation\", { target: \"window\" })\n // @Listen(\"pageshow\", { target: \"window\" })\n // handleLoad() {\n // if (this.viewer) {\n // requestAnimationFrame(() => {\n // this.viewer.resize();\n // });\n // }\n // }\n\n /** Load event */\n @Event() stzhLoad: EventEmitter<StzhPanoramaLoadEvent>;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhPanoramaChangeEvent>;\n\n /** Fullscreen change event */\n @Event()\n stzhFullscreenChange: EventEmitter<StzhPanoramaFullscreenChangeEvent>;\n\n /** Scene change event */\n @Event() stzhSceneChange: EventEmitter<StzhPanoramaSceneChangeEvent>;\n\n /** Zoom change event */\n @Event() stzhZoomChange: EventEmitter<StzhPanoramaZoomChangeEvent>;\n\n @State() isOrientationSupported = false;\n @State() isOrientationActive = false;\n @State() isFullscreen = false;\n\n private viewer: any;\n private containerElement: HTMLElement;\n private actionRunning: { [key: string]: number } = {};\n private controlAnimationTime: number = 500;\n\n private createTooltip = (hotspotDiv, options) => {\n const element = document.createElement(\"stzh-button\");\n element.classList.add(CLASS_HOTSPOT_BUTTON);\n\n if (options.type === \"scene\") {\n element.classList.add(CLASS_HOTSPOT_BUTTON_SCENE);\n } else if (options.url && !options.text) {\n element.classList.add(CLASS_HOTSPOT_BUTTON_LINK);\n element.setAttribute(\"href\", options.url);\n element.setAttribute(\"target\", \"_blank\");\n } else {\n element.classList.add(CLASS_HOTSPOT_BUTTON_INFO);\n }\n\n element.icon = options.type === \"scene\" ? ICON_HOTSPOT_SCENE : ICON_HOTSPOT_DEFAULT;\n element.iconOnly = true;\n element.rounded = true;\n element.size = \"small\";\n element.variant = \"secondary\";\n\n if (options.text) {\n const tooltip = document.createElement(\"stzh-tooltip\");\n tooltip.label = this.localization.hotspotLabel;\n tooltip.placement = \"top\";\n tooltip.type = \"button\";\n tooltip.className = CLASS_HOTSPOT_TOOLTIP;\n\n if (options.url) {\n const tooltipContentSlot = document.createElement(\"div\");\n tooltipContentSlot.slot = \"content\";\n\n const text = document.createElement(\"stzh-text\");\n text.font = \"heavy\";\n text.curve = \"caption\";\n text.textContent = options.text;\n tooltipContentSlot.appendChild(text);\n\n const link = document.createElement(\"stzh-link\");\n link.label = this.localization.moreInformation;\n link.href = options.url;\n link.target = \"_blank\";\n link.icon = \"arrow-right\";\n link.iconPosition = \"right\";\n link.size = \"small\";\n tooltipContentSlot.appendChild(link);\n\n tooltip.appendChild(tooltipContentSlot);\n } else {\n tooltip.content = options.text;\n }\n\n tooltip.appendChild(element);\n hotspotDiv.appendChild(tooltip);\n } else {\n hotspotDiv.appendChild(element);\n }\n\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n element.addEventListener(\"keydown\", event => {\n event.stopPropagation();\n });\n };\n\n private handleSceneDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const target: HTMLStzhDropdownElement = event.target as HTMLStzhDropdownElement;\n const scene = (await target.getValue()) as string;\n this.scene = scene;\n };\n\n private handleControlsKeydown = (event: KeyboardEvent) => {\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n event.stopPropagation();\n };\n\n private action = (\n type:\n | \"zoomIn\"\n | \"zoomOut\"\n | \"fullscreen\"\n | \"startOrientation\"\n | \"stopOrientation\"\n | \"panUp\"\n | \"panDown\"\n | \"panLeft\"\n | \"panRight\"\n ) => {\n if (![\"startOrientation\", \"fullscreen\"].includes(type)) {\n this.stopOrientation();\n }\n\n if (type === \"zoomIn\") {\n this.executeAction(\"zoomIn\", this.viewer.getHfov, this.viewer.setHfov, -10);\n } else if (type === \"zoomOut\") {\n this.executeAction(\"zoomOut\", this.viewer.getHfov, this.viewer.setHfov, +10);\n } else if (type === \"fullscreen\") {\n this.viewer.toggleFullscreen();\n } else if (type === \"startOrientation\") {\n this.startOrientation();\n } else if (type === \"panUp\") {\n this.executeAction(\"panUp\", this.viewer.getPitch, this.viewer.setPitch, +10);\n } else if (type === \"panDown\") {\n this.executeAction(\"panDown\", this.viewer.getPitch, this.viewer.setPitch, -10);\n } else if (type === \"panLeft\") {\n this.executeAction(\"panLeft\", this.viewer.getYaw, this.viewer.setYaw, -10);\n } else if (type === \"panRight\") {\n this.executeAction(\"panRight\", this.viewer.getYaw, this.viewer.setYaw, +10);\n }\n };\n\n private stopOrientation() {\n if (this.viewer.isOrientationActive()) {\n this.viewer.stopOrientation();\n\n // trigger touchstart event to reset panorama rotation correctly\n // old preview code:\n // const evt = document.createEvent(\"HTMLEvents\");\n // evt.initEvent(\"touchstart\", false, true);\n // $(document).find(\".pnlm-dragfix\").get(0).dispatchEvent(evt);\n // alternative: https://gist.github.com/morewry/538efb737ed9c4e432e4\n\n var e = new window.Event(\"touchstart\");\n this.element.querySelector(\".pnlm-dragfix\").dispatchEvent(e);\n\n this.updateOrientationState();\n }\n }\n\n private startOrientation() {\n if (this.viewer.isOrientationSupported()) {\n this.viewer.startOrientation();\n this.updateOrientationState();\n }\n }\n\n private updateOrientationState() {\n this.isOrientationSupported = this.viewer.isOrientationSupported();\n this.isOrientationActive = this.isOrientationSupported && this.viewer.isOrientationActive();\n }\n\n /**\n * Execute a button control action.\n * If the action is already runing/animating, add the value to the current position and set as new target.\n */\n private executeAction(name, getter, setter, value) {\n this.actionRunning[name] =\n typeof this.actionRunning[name] !== \"undefined\" && this.actionRunning[name] !== 0\n ? this.actionRunning[name] + value\n : getter() + value;\n\n setter(this.actionRunning[name], this.controlAnimationTime, () => {\n this.actionRunning = { [name]: 0 };\n });\n }\n\n private initViewer() {\n this.viewer = window.pannellum.viewer(\n this.containerElement,\n // https://pannellum.org/documentation/reference/\n {\n scenes: this._scenesLibrary,\n default: {\n firstScene: this.scene,\n showControls: false, // we show our own controls (zoom in/out and fullscreen)\n sceneFadeDuration: this.sceneFadeDuration,\n autoLoad: this.autoload,\n compass: false,\n orientationOnByDefault: this.orientationOnByDefault,\n strings: {\n loadButtonLabel: this.localization.loadButtonLabel,\n loadingLabel: this.localization.loadingLabel,\n bylineLabel: this.localization.bylineLabel,\n noPanoramaError: this.localization.noPanoramaError,\n fileAccessError: this.localization.fileAccessError,\n malformedURLError: this.localization.malformedURLError,\n iOS8WebGLError: this.localization.iOS8WebGLError,\n genericWebGLError: this.localization.genericWebGLError,\n textureSizeError: this.localization.textureSizeError,\n unknownError: this.localization.unknownError,\n },\n },\n }\n );\n\n this.viewer.on(\"load\", () => {\n if (this.viewer) {\n // update classes for orientation control when a new scene has been loaded\n this.updateOrientationState();\n this.scene = this.viewer.getScene();\n\n this.stzhLoad.emit({\n component: \"stzh-panorama\",\n });\n }\n });\n\n this.viewer.on(\"touchstart\", () => {\n // update classes for orientation control when user interacts with panorama\n this.updateOrientationState();\n });\n\n this.viewer.on(\"fullscreenchange\", (status: boolean) => {\n this.isFullscreen = status;\n\n this.stzhFullscreenChange.emit({\n component: \"stzh-panorama\",\n value: this.isFullscreen,\n });\n });\n\n this.viewer.on(\"scenechange\", (sceneId: string) => {\n // set focus back to container when scene has been changed\n this.containerElement.focus();\n\n this.stzhSceneChange.emit({\n component: \"stzh-panorama\",\n value: sceneId,\n });\n });\n\n this.viewer.on(\"zoomchange\", (zoom: number) => {\n this.stzhZoomChange.emit({\n component: \"stzh-panorama\",\n value: zoom,\n });\n });\n\n this.viewer.on(\"animatefinished\", (data: { pitch: number; yaw: number; hfov: number }) => {\n this.stzhChange.emit({\n component: \"stzh-panorama\",\n value: data,\n });\n });\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"panorama\");\n }\n\n this.scenesWatcher(this.scenes);\n }\n\n async componentDidRender() {\n if (this.viewer) {\n return;\n }\n\n this.initViewer();\n }\n\n disconnectedCallback() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n render() {\n const classes = {\n \"stzh-panorama\": true,\n \"stzh-panorama--is-motion\": this.isOrientationActive,\n \"stzh-panorama--is-fullscreen\": this.isFullscreen,\n };\n\n const sceneOptions = this._scenes.map(({ sceneId, imageTitle }) => ({\n value: sceneId,\n text: imageTitle,\n }));\n\n const currentScene = this._scenes.find(({ sceneId }) => sceneId === this.scene);\n\n return (\n <Host>\n <div class={classes}>\n <stzh-figure\n class=\"stzh-panorama__figure\"\n heading={this.heading}\n caption={currentScene.caption || this.caption}\n copyright={currentScene.copyright || this.copyright}\n >\n <stzh-ratio>\n <div\n ref={el => (this.containerElement = el as HTMLElement)}\n class=\"stzh-panorama__container\"\n tabindex=\"0\"\n >\n <div class=\"stzh-panorama__sceneselector\">\n {sceneOptions.length > 1 && (\n <stzh-dropdown\n class={\"stzh-panorama__sceneselector-dropdown\"}\n size={\"small\"}\n popoverPlacement={\"top\"}\n label={this.localization.sceneLabel}\n labelHidden={true}\n noSearch={true}\n items={[this.scene]}\n options={sceneOptions}\n onStzhChange={this.handleSceneDropdownChange}\n ></stzh-dropdown>\n )}\n {(currentScene.imageAuthor || currentScene.copyright || this.copyright) && (\n <div class=\"stzh-panorama__copyright\">\n {currentScene.imageAuthor || currentScene.copyright || this.copyright}\n </div>\n )}\n </div>\n <div class=\"stzh-panorama__controls\" onKeyDown={this.handleControlsKeydown}>\n {this.showControls && (\n <Fragment>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panLeft}\n variant=\"secondary\"\n icon=\"arrow-left\"\n size=\"small\"\n onClick={() => this.action(\"panLeft\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panRight}\n variant=\"secondary\"\n icon=\"arrow-right\"\n size=\"small\"\n onClick={() => this.action(\"panRight\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panUp}\n variant=\"secondary\"\n icon=\"arrow-up\"\n size=\"small\"\n onClick={() => this.action(\"panUp\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panDown}\n variant=\"secondary\"\n icon=\"arrow-down\"\n size=\"small\"\n onClick={() => this.action(\"panDown\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.zoomIn}\n variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n onClick={() => this.action(\"zoomIn\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.zoomOut}\n variant=\"secondary\"\n icon=\"minus\"\n size=\"small\"\n onClick={() => this.action(\"zoomOut\")}\n ></stzh-button>\n </Fragment>\n )}\n\n {this.isOrientationSupported && (\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={\n this.isOrientationActive\n ? this.localization.stopOrientation\n : this.localization.startOrientation\n }\n icon={this.isOrientationActive ? \"target-bullet\" : \"target\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(this.isOrientationActive ? \"stopOrientation\" : \"startOrientation\")}\n ></stzh-button>\n )}\n\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={\n this.isFullscreen\n ? this.localization.disableFullscreenLabel\n : this.localization.enableFullscreenLabel\n }\n icon={this.isFullscreen ? \"shrink\" : \"expand\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(\"fullscreen\")}\n ></stzh-button>\n </div>\n </div>\n </stzh-ratio>\n </stzh-figure>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { arrow, autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
3
3
|
import { createFocusTrap } from "focus-trap";
|
|
4
4
|
import { isStzhElement } from "../../utils/utils";
|
|
5
|
-
import { media } from "../../utils/media-utils";
|
|
5
|
+
import { addMediaChangeListener, media, removeMediaChangeListener } from "../../utils/media-utils";
|
|
6
6
|
import { waitForEvent } from "../../utils/event-utils";
|
|
7
|
-
import {
|
|
7
|
+
import { animateTo, stopAnimations } from "../../utils/animation-utils";
|
|
8
8
|
import Arrow from "../stzh-tooltip/assets/arrow.svg";
|
|
9
9
|
const ANIMATION_SHOW_DURATION = 200;
|
|
10
10
|
const ANIMATION_HIDE_DURATION = 300;
|
|
@@ -13,57 +13,45 @@ const ANIMATION_HIDE_DURATION_SMALL = 200;
|
|
|
13
13
|
function animationContentWrapperShow() {
|
|
14
14
|
const isSmall = media("small").matches;
|
|
15
15
|
return {
|
|
16
|
-
keyframes: [
|
|
17
|
-
{ opacity: "0" },
|
|
18
|
-
{ opacity: "1" }
|
|
19
|
-
],
|
|
16
|
+
keyframes: [{ opacity: "0" }, { opacity: "1" }],
|
|
20
17
|
options: {
|
|
21
18
|
duration: isSmall ? ANIMATION_SHOW_DURATION_SMALL : ANIMATION_SHOW_DURATION,
|
|
22
|
-
easing: "linear"
|
|
23
|
-
}
|
|
19
|
+
easing: "linear",
|
|
20
|
+
},
|
|
24
21
|
};
|
|
25
22
|
}
|
|
26
23
|
function animationContentWrapperHide() {
|
|
27
24
|
const isSmall = media("small").matches;
|
|
28
25
|
return {
|
|
29
|
-
keyframes: [
|
|
30
|
-
{ opacity: "1" },
|
|
31
|
-
{ opacity: "0" }
|
|
32
|
-
],
|
|
26
|
+
keyframes: [{ opacity: "1" }, { opacity: "0" }],
|
|
33
27
|
options: {
|
|
34
28
|
duration: isSmall ? ANIMATION_HIDE_DURATION_SMALL : ANIMATION_HIDE_DURATION,
|
|
35
|
-
easing: "linear"
|
|
36
|
-
}
|
|
29
|
+
easing: "linear",
|
|
30
|
+
},
|
|
37
31
|
};
|
|
38
32
|
}
|
|
39
33
|
function animationDialogShow() {
|
|
40
34
|
const isSmall = media("small").matches;
|
|
41
35
|
return {
|
|
42
|
-
keyframes: [
|
|
43
|
-
{ transform: isSmall ? "translateY(-8px)" : "translateY(100%)" },
|
|
44
|
-
{ transform: "translateY(0px)" }
|
|
45
|
-
],
|
|
36
|
+
keyframes: [{ transform: isSmall ? "translateY(-8px)" : "translateY(100%)" }, { transform: "translateY(0px)" }],
|
|
46
37
|
options: {
|
|
47
38
|
duration: isSmall ? ANIMATION_SHOW_DURATION_SMALL : ANIMATION_SHOW_DURATION,
|
|
48
|
-
easing: "linear"
|
|
49
|
-
}
|
|
39
|
+
easing: "linear",
|
|
40
|
+
},
|
|
50
41
|
};
|
|
51
42
|
}
|
|
52
43
|
function animationDialogHide() {
|
|
53
44
|
const isSmall = media("small").matches;
|
|
54
45
|
return {
|
|
55
|
-
keyframes: [
|
|
56
|
-
{ transform: "translateY(0px)" },
|
|
57
|
-
{ transform: isSmall ? "translateY(-8px)" : "translateY(100%)" }
|
|
58
|
-
],
|
|
46
|
+
keyframes: [{ transform: "translateY(0px)" }, { transform: isSmall ? "translateY(-8px)" : "translateY(100%)" }],
|
|
59
47
|
options: {
|
|
60
48
|
duration: isSmall ? ANIMATION_HIDE_DURATION_SMALL : ANIMATION_HIDE_DURATION,
|
|
61
|
-
easing: "linear"
|
|
62
|
-
}
|
|
49
|
+
easing: "linear",
|
|
50
|
+
},
|
|
63
51
|
};
|
|
64
52
|
}
|
|
65
53
|
const keyCode = {
|
|
66
|
-
ESC: 27
|
|
54
|
+
ESC: 27,
|
|
67
55
|
};
|
|
68
56
|
const CLASS_BODY_OPEN = "stzh-popover-open";
|
|
69
57
|
let popoverCounter = 0;
|
|
@@ -77,6 +65,14 @@ export class StzhPopover {
|
|
|
77
65
|
constructor() {
|
|
78
66
|
this.initialTouchX = null;
|
|
79
67
|
this.initialTouchY = null;
|
|
68
|
+
this.mediaChangeHandler = () => {
|
|
69
|
+
const isStzhHeaderStuck = document.documentElement.style.getPropertyValue("--stzh-header-is-stuck");
|
|
70
|
+
this.isHeaderStuckAndViewportMicro =
|
|
71
|
+
!media("small").matches && isStzhHeaderStuck === "1" && this.hasStzhHeaderParent;
|
|
72
|
+
if (this.open && this.isBranchedOutToBody && !this.isHeaderStuckAndViewportMicro) {
|
|
73
|
+
this.branchInFromBody();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
80
76
|
this.handleKeydown = (event) => {
|
|
81
77
|
if (event.keyCode === keyCode.ESC) {
|
|
82
78
|
this.hide();
|
|
@@ -90,22 +86,22 @@ export class StzhPopover {
|
|
|
90
86
|
const middleware = [
|
|
91
87
|
offset({
|
|
92
88
|
mainAxis: this.distance,
|
|
93
|
-
crossAxis: this.skidding
|
|
89
|
+
crossAxis: this.skidding,
|
|
94
90
|
}),
|
|
95
91
|
flip({
|
|
96
|
-
padding: 5
|
|
92
|
+
padding: 5,
|
|
97
93
|
}),
|
|
98
94
|
shift({
|
|
99
|
-
padding: 5
|
|
100
|
-
})
|
|
95
|
+
padding: 5,
|
|
96
|
+
}),
|
|
101
97
|
];
|
|
102
98
|
if (this.variant === "tooltip") {
|
|
103
99
|
middleware.push(arrow({
|
|
104
100
|
element: this.arrowElement,
|
|
105
|
-
padding: 5
|
|
101
|
+
padding: 5,
|
|
106
102
|
}));
|
|
107
103
|
}
|
|
108
|
-
const { x = 0, y = 0, strategy = "absolute", placement, middlewareData } = await computePosition(this.triggerFirstElement, this.dialogElement, {
|
|
104
|
+
const { x = 0, y = 0, strategy = "absolute", placement, middlewareData, } = await computePosition(this.triggerFirstElement, this.dialogElement, {
|
|
109
105
|
strategy: this.strategy,
|
|
110
106
|
placement: this.placement,
|
|
111
107
|
middleware,
|
|
@@ -150,8 +146,7 @@ export class StzhPopover {
|
|
|
150
146
|
const distX = touch.pageX - this.initialTouchX; // get horizontal dist traveled
|
|
151
147
|
const distY = touch.pageY - this.initialTouchY; // get vertical dist traveled
|
|
152
148
|
const threshold = 70;
|
|
153
|
-
const isYSwipe = Math.abs(distY) >= threshold
|
|
154
|
-
&& Math.abs(distX) <= threshold;
|
|
149
|
+
const isYSwipe = Math.abs(distY) >= threshold && Math.abs(distX) <= threshold;
|
|
155
150
|
if (isYSwipe) {
|
|
156
151
|
this.hide();
|
|
157
152
|
}
|
|
@@ -162,8 +157,7 @@ export class StzhPopover {
|
|
|
162
157
|
var _a;
|
|
163
158
|
let trigger = (_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
164
159
|
if (!trigger) {
|
|
165
|
-
const defaultSlot = Array.from(this.element.children)
|
|
166
|
-
.find(child => !child.hasAttribute("slot"));
|
|
160
|
+
const defaultSlot = Array.from(this.element.children).find(child => !child.hasAttribute("slot"));
|
|
167
161
|
trigger = defaultSlot;
|
|
168
162
|
}
|
|
169
163
|
if (trigger) {
|
|
@@ -182,12 +176,19 @@ export class StzhPopover {
|
|
|
182
176
|
this.strategy = "absolute";
|
|
183
177
|
this.localization = undefined;
|
|
184
178
|
this.computedPlacement = undefined;
|
|
179
|
+
this.isHeaderStuckAndViewportMicro = undefined;
|
|
180
|
+
this.isBranchedOutToBody = undefined;
|
|
181
|
+
this.hasStzhHeaderParent = undefined;
|
|
185
182
|
}
|
|
186
183
|
/** Show popover content */
|
|
187
184
|
async show() {
|
|
188
185
|
if (this.open) {
|
|
189
186
|
return;
|
|
190
187
|
}
|
|
188
|
+
this.mediaChangeHandler();
|
|
189
|
+
if (this.isHeaderStuckAndViewportMicro) {
|
|
190
|
+
this.branchOutToBody();
|
|
191
|
+
}
|
|
191
192
|
this.toggledByMethod = true;
|
|
192
193
|
this.open = true;
|
|
193
194
|
return waitForEvent(this.element, "stzhOpened");
|
|
@@ -199,7 +200,12 @@ export class StzhPopover {
|
|
|
199
200
|
}
|
|
200
201
|
this.toggledByMethod = true;
|
|
201
202
|
this.open = false;
|
|
202
|
-
|
|
203
|
+
await waitForEvent(this.element, "stzhClosed");
|
|
204
|
+
this.mediaChangeHandler();
|
|
205
|
+
if (this.isHeaderStuckAndViewportMicro) {
|
|
206
|
+
this.branchInFromBody();
|
|
207
|
+
}
|
|
208
|
+
return true;
|
|
203
209
|
}
|
|
204
210
|
/** Toggle popover content */
|
|
205
211
|
async toggle() {
|
|
@@ -217,10 +223,8 @@ export class StzhPopover {
|
|
|
217
223
|
if (!this.open) {
|
|
218
224
|
return;
|
|
219
225
|
}
|
|
220
|
-
const isClickOutside = event.target !== this.dialogElement
|
|
221
|
-
|
|
222
|
-
const isClickTrigger = event.target === this.triggerElement
|
|
223
|
-
|| this.triggerElement.contains(event.target);
|
|
226
|
+
const isClickOutside = event.target !== this.dialogElement && this.dialogElement.contains(event.target) === false;
|
|
227
|
+
const isClickTrigger = event.target === this.triggerElement || this.triggerElement.contains(event.target);
|
|
224
228
|
if (isClickOutside && !isClickTrigger) {
|
|
225
229
|
this.hide();
|
|
226
230
|
}
|
|
@@ -240,7 +244,7 @@ export class StzhPopover {
|
|
|
240
244
|
await Promise.all([
|
|
241
245
|
stopAnimations(this.contentWrapperElement),
|
|
242
246
|
stopAnimations(this.contentElement),
|
|
243
|
-
stopAnimations(this.dialogElement)
|
|
247
|
+
stopAnimations(this.dialogElement),
|
|
244
248
|
]);
|
|
245
249
|
// safari seems to need will-change,
|
|
246
250
|
// otherwise it has problems animating the element with the drop shadow
|
|
@@ -248,11 +252,11 @@ export class StzhPopover {
|
|
|
248
252
|
this.contentWrapperElement.hidden = false;
|
|
249
253
|
await Promise.all([
|
|
250
254
|
animateTo(media("small").matches ? this.dialogElement : this.contentWrapperElement, animationShow.keyframes, animationShow.options),
|
|
251
|
-
animateTo(media("small").matches ? this.dialogElement : this.contentElement, animationShowDialog.keyframes, animationShowDialog.options)
|
|
255
|
+
animateTo(media("small").matches ? this.dialogElement : this.contentElement, animationShowDialog.keyframes, animationShowDialog.options),
|
|
252
256
|
]);
|
|
253
257
|
if (this.toggledByMethod) {
|
|
254
258
|
this.stzhOpened.emit({
|
|
255
|
-
component: "stzh-popover"
|
|
259
|
+
component: "stzh-popover",
|
|
256
260
|
});
|
|
257
261
|
}
|
|
258
262
|
}
|
|
@@ -267,7 +271,7 @@ export class StzhPopover {
|
|
|
267
271
|
await Promise.all([
|
|
268
272
|
stopAnimations(this.contentWrapperElement),
|
|
269
273
|
stopAnimations(this.contentElement),
|
|
270
|
-
stopAnimations(this.dialogElement)
|
|
274
|
+
stopAnimations(this.dialogElement),
|
|
271
275
|
]);
|
|
272
276
|
await Promise.all([
|
|
273
277
|
animateTo(media("small").matches ? this.dialogElement : this.contentWrapperElement, animationHide.keyframes, animationHide.options),
|
|
@@ -277,7 +281,7 @@ export class StzhPopover {
|
|
|
277
281
|
this.dialogElement.style.willChange = "auto";
|
|
278
282
|
if (this.toggledByMethod) {
|
|
279
283
|
this.stzhClosed.emit({
|
|
280
|
-
component: "stzh-popover"
|
|
284
|
+
component: "stzh-popover",
|
|
281
285
|
});
|
|
282
286
|
}
|
|
283
287
|
}
|
|
@@ -291,8 +295,30 @@ export class StzhPopover {
|
|
|
291
295
|
this.distance = this.variant === "tooltip" ? 12 : 8;
|
|
292
296
|
}
|
|
293
297
|
}
|
|
298
|
+
setStzhHeaderParent() {
|
|
299
|
+
let parent = this.element.parentElement;
|
|
300
|
+
while (parent) {
|
|
301
|
+
if (parent.tagName && parent.tagName.toLowerCase() === "stzh-header") {
|
|
302
|
+
return true;
|
|
303
|
+
}
|
|
304
|
+
parent = parent.parentElement;
|
|
305
|
+
}
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
branchOutToBody() {
|
|
309
|
+
document.body.append(this.element);
|
|
310
|
+
this.parentNode.appendChild(this.triggerElement);
|
|
311
|
+
this.isBranchedOutToBody = true;
|
|
312
|
+
}
|
|
313
|
+
branchInFromBody() {
|
|
314
|
+
this.parentNode.appendChild(this.element);
|
|
315
|
+
this.rootElement.prepend(this.triggerElement);
|
|
316
|
+
this.isBranchedOutToBody = false;
|
|
317
|
+
}
|
|
294
318
|
async componentWillLoad() {
|
|
295
319
|
this.id = `stzh-popover-${popoverCounter++}`;
|
|
320
|
+
this.parentNode = this.element.parentNode;
|
|
321
|
+
this.hasStzhHeaderParent = this.setStzhHeaderParent();
|
|
296
322
|
this.distanceWatcher(this.distance);
|
|
297
323
|
if (!this.localization) {
|
|
298
324
|
this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, "popover");
|
|
@@ -301,8 +327,7 @@ export class StzhPopover {
|
|
|
301
327
|
popoverShown() {
|
|
302
328
|
document.body.classList.add(CLASS_BODY_OPEN);
|
|
303
329
|
const isStzh = isStzhElement(this.triggerFirstElement);
|
|
304
|
-
this.triggerFirstElement
|
|
305
|
-
.setAttribute(isStzh ? "a11y-expanded" : "aria-expanded", "true");
|
|
330
|
+
this.triggerFirstElement.setAttribute(isStzh ? "a11y-expanded" : "aria-expanded", "true");
|
|
306
331
|
if (this.trap) {
|
|
307
332
|
this.trap.activate();
|
|
308
333
|
}
|
|
@@ -310,30 +335,27 @@ export class StzhPopover {
|
|
|
310
335
|
popoverHidden() {
|
|
311
336
|
document.body.classList.remove(CLASS_BODY_OPEN);
|
|
312
337
|
const isStzh = isStzhElement(this.triggerFirstElement);
|
|
313
|
-
this.triggerFirstElement
|
|
314
|
-
.setAttribute(isStzh ? "a11y-expanded" : "aria-expanded", "false");
|
|
338
|
+
this.triggerFirstElement.setAttribute(isStzh ? "a11y-expanded" : "aria-expanded", "false");
|
|
315
339
|
if (this.trap) {
|
|
316
340
|
this.trap.deactivate();
|
|
317
341
|
}
|
|
318
342
|
}
|
|
319
343
|
componentDidRender() {
|
|
320
344
|
this.computePosition();
|
|
345
|
+
this.mediaChangeHandler();
|
|
321
346
|
this.open ? this.popoverShown() : this.popoverHidden();
|
|
322
347
|
const isStzh = isStzhElement(this.triggerFirstElement);
|
|
323
|
-
if ((isStzh && !this.triggerFirstElement.getAttribute("a11y-describedby"))
|
|
324
|
-
|
|
325
|
-
this.triggerFirstElement
|
|
326
|
-
.setAttribute(isStzh ? "a11y-describedby" : "aria-describedby", `${this.id}-trigger-description`);
|
|
348
|
+
if ((isStzh && !this.triggerFirstElement.getAttribute("a11y-describedby")) ||
|
|
349
|
+
(!isStzh && !this.triggerFirstElement.getAttribute("aria-describedby"))) {
|
|
350
|
+
this.triggerFirstElement.setAttribute(isStzh ? "a11y-describedby" : "aria-describedby", `${this.id}-trigger-description`);
|
|
327
351
|
}
|
|
328
|
-
if ((isStzh && !this.triggerFirstElement.getAttribute("a11y-label"))
|
|
329
|
-
|
|
330
|
-
this.triggerFirstElement
|
|
331
|
-
.setAttribute(isStzh ? "a11y-label" : "aria-label", this.label);
|
|
352
|
+
if ((isStzh && !this.triggerFirstElement.getAttribute("a11y-label")) ||
|
|
353
|
+
(!isStzh && !this.triggerFirstElement.getAttribute("aria-label"))) {
|
|
354
|
+
this.triggerFirstElement.setAttribute(isStzh ? "a11y-label" : "aria-label", this.label);
|
|
332
355
|
}
|
|
333
|
-
if ((isStzh && !this.triggerFirstElement.getAttribute("analytics-id"))
|
|
334
|
-
|
|
335
|
-
this.triggerFirstElement
|
|
336
|
-
.setAttribute(isStzh ? "analytics-id" : "s-object-id", this.label);
|
|
356
|
+
if ((isStzh && !this.triggerFirstElement.getAttribute("analytics-id")) ||
|
|
357
|
+
(!isStzh && !this.triggerFirstElement.getAttribute("s-object-id"))) {
|
|
358
|
+
this.triggerFirstElement.setAttribute(isStzh ? "analytics-id" : "s-object-id", this.label);
|
|
337
359
|
}
|
|
338
360
|
}
|
|
339
361
|
componentDidUpdate() {
|
|
@@ -345,21 +367,23 @@ export class StzhPopover {
|
|
|
345
367
|
this.trap = createFocusTrap(this.dialogElement, {
|
|
346
368
|
fallbackFocus: this.dialogElement,
|
|
347
369
|
clickOutsideDeactivates: true,
|
|
348
|
-
returnFocusOnDeactivate: true
|
|
370
|
+
returnFocusOnDeactivate: true,
|
|
349
371
|
});
|
|
350
372
|
if (this.open) {
|
|
351
373
|
this.popoverShown();
|
|
352
374
|
}
|
|
353
375
|
}
|
|
354
376
|
connectedCallback() {
|
|
377
|
+
addMediaChangeListener(this.mediaChangeHandler);
|
|
355
378
|
this.init();
|
|
356
379
|
this.observer = new MutationObserver(this.init);
|
|
357
380
|
this.observer.observe(this.element, {
|
|
358
381
|
childList: true,
|
|
359
|
-
subtree: true
|
|
382
|
+
subtree: true,
|
|
360
383
|
});
|
|
361
384
|
}
|
|
362
385
|
disconnectedCallback() {
|
|
386
|
+
removeMediaChangeListener(this.mediaChangeHandler);
|
|
363
387
|
if (this.observer) {
|
|
364
388
|
this.observer.disconnect();
|
|
365
389
|
}
|
|
@@ -377,10 +401,9 @@ export class StzhPopover {
|
|
|
377
401
|
[`stzh-popover--placement-${this.computedPlacement}`]: !!this.computedPlacement,
|
|
378
402
|
[`stzh-popover--fullwidth-${this.fullwidth}`]: !!this.fullwidth,
|
|
379
403
|
[`stzh-popover--${this.size}`]: !!this.size,
|
|
380
|
-
[`stzh-popover--${this.variant}`]: !!this.variant
|
|
404
|
+
[`stzh-popover--${this.variant}`]: !!this.variant,
|
|
381
405
|
};
|
|
382
|
-
return (h(Host, null, h("div", { class: classes, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("div", { ref:
|
|
383
|
-
h("div", { class: "stzh-popover__arrow", ref: (el) => (this.arrowElement = el), innerHTML: Arrow }), h("div", { class: "stzh-popover__content-inner" }, h("div", { class: "stzh-popover__label-wrapper" }, h("h2", { id: `${this.id}-label`, class: "stzh-popover__label" }, this.label ? this.label : h("slot", { name: "label" })), h("button", { class: "stzh-popover__close", onClick: () => this.hide(), type: "button" }, h("stzh-icon", { name: "close", class: "stzh-popover__icon" }), h("span", { class: "stzh-popover__vhidden" }, this.localization.close))), h("div", { class: "stzh-popover__content-slot-wrapper" }, h("div", { class: "stzh-popover__content-slot" }, h("slot", { name: "content" })), h("div", { class: "stzh-popover__action-slot" }, h("slot", { name: "action" }))))))))));
|
|
406
|
+
return (h(Host, null, h("div", { class: classes, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd, ref: el => (this.rootElement = el) }, h("div", { ref: el => (this.triggerElement = el), class: "stzh-popover__trigger" }, h("slot", null)), h("div", { class: "stzh-popover__vhidden", id: `${this.id}-trigger-description` }, this.localization.open), h("div", { ref: el => (this.contentWrapperElement = el), class: "stzh-popover__content-wrapper" }, h("div", { class: "stzh-popover__backdrop" }), h("div", { ref: el => (this.contentElement = el), class: "stzh-popover__content" }, h("div", { ref: el => (this.dialogElement = el), class: "stzh-popover__dialog", role: "dialog", tabindex: "-1", "aria-modal": "true", "aria-labelledby": this.label ? `${this.id}-label` : null, "aria-hidden": this.open ? "false" : "true", onKeyDown: this.handleKeydown }, this.variant === "tooltip" && (h("div", { class: "stzh-popover__arrow", ref: el => (this.arrowElement = el), innerHTML: Arrow })), h("div", { class: "stzh-popover__content-inner" }, h("div", { class: "stzh-popover__label-wrapper" }, h("h2", { id: `${this.id}-label`, class: "stzh-popover__label" }, this.label ? this.label : h("slot", { name: "label" })), h("button", { class: "stzh-popover__close", onClick: () => this.hide(), type: "button" }, h("stzh-icon", { name: "close", class: "stzh-popover__icon" }), h("span", { class: "stzh-popover__vhidden" }, this.localization.close))), h("div", { class: "stzh-popover__content-slot-wrapper" }, h("div", { class: "stzh-popover__content-slot" }, h("slot", { name: "content" })), h("div", { class: "stzh-popover__action-slot" }, h("slot", { name: "action" }))))))))));
|
|
384
407
|
}
|
|
385
408
|
static get is() { return "stzh-popover"; }
|
|
386
409
|
static get encapsulation() { return "scoped"; }
|
|
@@ -588,7 +611,10 @@ export class StzhPopover {
|
|
|
588
611
|
}
|
|
589
612
|
static get states() {
|
|
590
613
|
return {
|
|
591
|
-
"computedPlacement": {}
|
|
614
|
+
"computedPlacement": {},
|
|
615
|
+
"isHeaderStuckAndViewportMicro": {},
|
|
616
|
+
"isBranchedOutToBody": {},
|
|
617
|
+
"hasStzhHeaderParent": {}
|
|
592
618
|
};
|
|
593
619
|
}
|
|
594
620
|
static get events() {
|
|
@@ -699,7 +725,7 @@ export class StzhPopover {
|
|
|
699
725
|
},
|
|
700
726
|
"hide": {
|
|
701
727
|
"complexType": {
|
|
702
|
-
"signature": "() => Promise<
|
|
728
|
+
"signature": "() => Promise<boolean>",
|
|
703
729
|
"parameters": [],
|
|
704
730
|
"references": {
|
|
705
731
|
"Promise": {
|
|
@@ -707,7 +733,7 @@ export class StzhPopover {
|
|
|
707
733
|
"id": "global::Promise"
|
|
708
734
|
}
|
|
709
735
|
},
|
|
710
|
-
"return": "Promise<
|
|
736
|
+
"return": "Promise<boolean>"
|
|
711
737
|
},
|
|
712
738
|
"docs": {
|
|
713
739
|
"text": "Hide popover content",
|
|
@@ -716,7 +742,7 @@ export class StzhPopover {
|
|
|
716
742
|
},
|
|
717
743
|
"toggle": {
|
|
718
744
|
"complexType": {
|
|
719
|
-
"signature": "() => Promise<void>",
|
|
745
|
+
"signature": "() => Promise<boolean | void>",
|
|
720
746
|
"parameters": [],
|
|
721
747
|
"references": {
|
|
722
748
|
"Promise": {
|
|
@@ -724,7 +750,7 @@ export class StzhPopover {
|
|
|
724
750
|
"id": "global::Promise"
|
|
725
751
|
}
|
|
726
752
|
},
|
|
727
|
-
"return": "Promise<void>"
|
|
753
|
+
"return": "Promise<boolean | void>"
|
|
728
754
|
},
|
|
729
755
|
"docs": {
|
|
730
756
|
"text": "Toggle popover content",
|