@oiz/stzh-components 2.1.0-alpha → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{_commonjsHelpers-bcc1208a.js → _commonjsHelpers-dcc4cf71.js} +16 -0
- package/dist/cjs/{app-globals-e1f4f1d9.js → app-globals-dc82b9ca.js} +1 -1
- package/dist/cjs/{js.cookie-9c263d23.js → js.cookie-226c94ed.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +2 -2
- package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
- package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -1
- package/dist/cjs/stzh-chart.cjs.entry.js +26127 -0
- package/dist/cjs/stzh-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chip.cjs.entry.js +13 -6
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contactaddress.cjs.entry.js +65 -0
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +12 -6
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-header.cjs.entry.js +1 -1
- package/dist/cjs/stzh-heading.cjs.entry.js +2 -2
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
- package/dist/cjs/stzh-link.cjs.entry.js +2 -1
- package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-message.cjs.entry.js +2 -2
- package/dist/cjs/stzh-olmap.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +32 -0
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +99 -0
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-share.cjs.entry.js +113 -0
- package/dist/cjs/stzh-upload.cjs.entry.js +52 -36
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +12 -4
- package/dist/collection/assets/i18n/de.json +10 -0
- package/dist/collection/assets/i18n/en.json +10 -0
- package/dist/collection/assets/icons/mono/facebook-filled.svg +3 -0
- package/dist/collection/assets/icons/mono/linkedin-filled.svg +12 -0
- package/dist/collection/assets/icons/mono/mail-filled.svg +6 -0
- package/dist/collection/assets/icons/mono/star-filled.svg +1 -1
- package/dist/collection/assets/icons/mono/twitter-filled.svg +3 -0
- package/dist/collection/assets/icons/mono/xing-filled.svg +4 -0
- package/dist/collection/assets/media/olmap/marker-active.png +0 -0
- package/dist/collection/assets/media/olmap/marker.png +0 -0
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +51 -3
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
- package/dist/collection/components/stzh-actions/stzh-actions.css +7 -1
- package/dist/collection/components/stzh-actions/stzh-actions.js +3 -3
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -0
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +5 -0
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +1 -1
- package/dist/collection/components/stzh-appnav/stzh-appnav.css +3 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +1 -1
- package/dist/collection/components/stzh-audio/stzh-audio.css +3 -0
- package/dist/collection/components/stzh-badge/stzh-badge.css +3 -0
- package/dist/collection/components/stzh-button/stzh-button.css +3 -0
- package/dist/collection/components/stzh-button/stzh-button.js +19 -1
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -0
- package/dist/collection/components/stzh-card/stzh-card.css +3 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.css +3 -0
- package/dist/collection/components/stzh-cell/stzh-cell.css +3 -0
- package/dist/collection/components/stzh-chart/stzh-chart.css +799 -0
- package/dist/collection/components/stzh-chart/stzh-chart.js +110 -0
- package/dist/collection/components/stzh-chart/stzh-chart.stories.js +287 -0
- package/dist/collection/components/stzh-checkbox/assets/check.svg +1 -1
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -3
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +4 -21
- package/dist/collection/components/stzh-chip/stzh-chip.js +49 -24
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +0 -9
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +3 -0
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -0
- package/dist/collection/components/stzh-contactaddress/stzh-contactaddress.css +153 -0
- package/dist/collection/components/stzh-contactaddress/stzh-contactaddress.js +321 -0
- package/dist/collection/components/stzh-contactaddress/stzh-contactaddress.stories.js +100 -0
- package/dist/collection/components/stzh-container/stzh-container.css +3 -0
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +3 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +13 -2
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -11
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +1 -1
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
- package/dist/collection/components/stzh-figure/stzh-figure.css +3 -1
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +53 -0
- package/dist/collection/components/stzh-footer/stzh-footer.js +46 -18
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +21 -1
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +10 -10
- package/dist/collection/components/stzh-header/stzh-header.css +3 -0
- package/dist/collection/components/stzh-header/stzh-header.js +2 -2
- package/dist/collection/components/stzh-heading/stzh-heading.css +9 -6
- package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
- package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +3 -0
- package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +95 -30
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +8 -1
- package/dist/collection/components/stzh-input/stzh-input.css +3 -0
- package/dist/collection/components/stzh-link/stzh-link.css +3 -0
- package/dist/collection/components/stzh-link/stzh-link.js +19 -1
- package/dist/collection/components/stzh-list/stzh-list.css +3 -0
- package/dist/collection/components/stzh-list-item/assets/checkmark.svg +1 -1
- package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -0
- package/dist/collection/components/stzh-loader/stzh-loader.css +3 -0
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -0
- package/dist/collection/components/stzh-menu/stzh-menu.css +3 -0
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -0
- package/dist/collection/components/stzh-message/stzh-message.css +3 -0
- package/dist/collection/components/stzh-metanav/stzh-metanav.css +3 -0
- package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -0
- package/dist/collection/components/stzh-olmap/stzh-olmap.js +2 -2
- package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -0
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -0
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +153 -0
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +151 -0
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.stories.js +44 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +5 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +3 -3
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +396 -0
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.js +157 -0
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +94 -0
- package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +8 -4
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +3 -0
- package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +1 -1
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +3 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -0
- package/dist/collection/components/stzh-row/stzh-row.css +3 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -0
- package/dist/collection/components/stzh-section/stzh-section.css +3 -0
- package/dist/collection/components/stzh-share/stzh-share.css +149 -0
- package/dist/collection/components/stzh-share/stzh-share.js +184 -0
- package/dist/collection/components/stzh-share/stzh-share.localization.js +1 -0
- package/dist/collection/components/stzh-share/stzh-share.stories.js +33 -0
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -0
- package/dist/collection/components/stzh-status/stzh-status.css +3 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +1 -1
- package/dist/collection/components/stzh-table/stzh-table.css +3 -0
- package/dist/collection/components/stzh-text/stzh-text.css +3 -0
- package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +3 -0
- package/dist/collection/components/stzh-upload/stzh-upload.css +44 -19
- package/dist/collection/components/stzh-upload/stzh-upload.js +69 -35
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +3 -3
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +1 -1
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -0
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -0
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +3 -0
- package/dist/components/_commonjsHelpers.js +16 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +6 -1
- package/dist/components/stzh-accordion-item.js +2 -2
- package/dist/components/stzh-actions.js +2 -2
- package/dist/components/stzh-anchornav.js +2 -2
- package/dist/components/stzh-appointments.js +1 -1
- package/dist/components/stzh-button2.js +3 -1
- package/dist/components/stzh-chart.d.ts +11 -0
- package/dist/components/stzh-chart.js +26144 -0
- package/dist/components/stzh-checkbox.js +2 -2
- package/dist/components/stzh-chip2.js +16 -8
- package/dist/components/stzh-contactaddress.d.ts +11 -0
- package/dist/components/stzh-contactaddress.js +93 -0
- package/dist/components/stzh-datamessagelist-item.js +14 -8
- package/dist/components/stzh-datamessagelist.js +1 -1
- package/dist/components/stzh-figure.js +1 -1
- package/dist/components/stzh-footer.js +14 -7
- package/dist/components/stzh-ghettobox2.js +1 -1
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-heading2.js +2 -2
- package/dist/components/stzh-icon-sprite.js +2 -2
- package/dist/components/stzh-link2.js +3 -1
- package/dist/components/stzh-list-item.js +1 -1
- package/dist/components/stzh-olmap.js +1 -1
- package/dist/components/stzh-pagebottom.d.ts +11 -0
- package/dist/components/stzh-pagebottom.js +70 -0
- package/dist/components/stzh-pagetitle-hero.d.ts +11 -0
- package/dist/components/stzh-pagetitle-hero.js +116 -0
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-share.d.ts +11 -0
- package/dist/components/stzh-share.js +6 -0
- package/dist/components/stzh-share2.js +139 -0
- package/dist/components/stzh-upload.js +53 -36
- package/dist/components/stzh-vbz-linechip2.js +11 -3
- package/dist/esm/{_commonjsHelpers-ba3f0406.js → _commonjsHelpers-f9dc4873.js} +16 -1
- package/dist/esm/{app-globals-453acbdb.js → app-globals-246b5e49.js} +1 -1
- package/dist/esm/{js.cookie-28a40640.js → js.cookie-53735b72.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion-item.entry.js +2 -2
- package/dist/esm/stzh-actions.entry.js +2 -2
- package/dist/esm/stzh-anchornav.entry.js +2 -2
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +2 -1
- package/dist/esm/stzh-chart.entry.js +26123 -0
- package/dist/esm/stzh-checkbox.entry.js +2 -2
- package/dist/esm/stzh-chip.entry.js +14 -7
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contactaddress.entry.js +61 -0
- package/dist/esm/stzh-datamessagelist-item.entry.js +2 -2
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/stzh-figure.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +12 -6
- package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
- package/dist/esm/stzh-header.entry.js +1 -1
- package/dist/esm/stzh-heading.entry.js +2 -2
- package/dist/esm/stzh-icon-sprite.entry.js +2 -2
- package/dist/esm/stzh-link.entry.js +2 -1
- package/dist/esm/stzh-list-item.entry.js +1 -1
- package/dist/esm/stzh-message.entry.js +2 -2
- package/dist/esm/stzh-olmap.entry.js +2 -2
- package/dist/esm/stzh-pagebottom.entry.js +28 -0
- package/dist/esm/stzh-pagetitle-hero.entry.js +95 -0
- package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-share.entry.js +109 -0
- package/dist/esm/stzh-upload.entry.js +52 -36
- package/dist/esm/stzh-vbz-linechip.entry.js +12 -4
- package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +1 -0
- package/dist/esm-es5/app-globals-246b5e49.js +1 -0
- package/dist/esm-es5/{js.cookie-28a40640.js → js.cookie-53735b72.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-chart.entry.js +3 -0
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-chip.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-contactaddress.entry.js +1 -0
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-heading.entry.js +1 -1
- package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-list-item.entry.js +1 -1
- package/dist/esm-es5/stzh-message.entry.js +1 -1
- package/dist/esm-es5/stzh-olmap.entry.js +2 -2
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -0
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -0
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -0
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +10 -0
- package/dist/stzh-components/assets/i18n/en.json +10 -0
- package/dist/stzh-components/assets/icons/mono/facebook-filled.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/linkedin-filled.svg +12 -0
- package/dist/stzh-components/assets/icons/mono/mail-filled.svg +6 -0
- package/dist/stzh-components/assets/icons/mono/star-filled.svg +1 -1
- package/dist/stzh-components/assets/icons/mono/twitter-filled.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/xing-filled.svg +4 -0
- package/dist/stzh-components/assets/media/olmap/marker-active.png +0 -0
- package/dist/stzh-components/assets/media/olmap/marker.png +0 -0
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +95 -30
- package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/stzh-components/{p-29d9a568.entry.js → p-105a11cb.entry.js} +1 -1
- package/dist/stzh-components/{p-b491bcd7.system.entry.js → p-14e457c6.system.entry.js} +1 -1
- package/dist/stzh-components/p-17ae6581.entry.js +1 -0
- package/dist/stzh-components/{p-3e24b964.entry.js → p-229d4ad2.entry.js} +1 -1
- package/dist/stzh-components/{p-3f8976bc.system.entry.js → p-22c9a00d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8e363084.system.entry.js → p-238a8c83.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b10682ee.js → p-24b8df26.js} +1 -1
- package/dist/stzh-components/p-25ef050a.entry.js +1 -0
- package/dist/stzh-components/p-293ceb5e.entry.js +1 -0
- package/dist/stzh-components/p-2ba8b5c9.system.entry.js +1 -0
- package/dist/stzh-components/{p-e7afcd6f.entry.js → p-38b9e5e9.entry.js} +1 -1
- package/dist/stzh-components/p-3a0f37bd.entry.js +1 -0
- package/dist/stzh-components/p-44dd74d1.system.entry.js +1 -0
- package/dist/stzh-components/p-470ccde5.system.entry.js +1 -0
- package/dist/stzh-components/{p-5db542ae.system.js → p-484a366f.system.js} +1 -1
- package/dist/stzh-components/{p-a61bf274.entry.js → p-4a3f9353.entry.js} +1 -1
- package/dist/stzh-components/{p-d69b12f8.entry.js → p-4e6ddb5f.entry.js} +1 -1
- package/dist/stzh-components/p-4fd4a703.entry.js +3 -0
- package/dist/stzh-components/p-51c75fba.system.entry.js +1 -0
- package/dist/stzh-components/p-5caa837c.system.entry.js +3 -0
- package/dist/stzh-components/{p-3b33fa76.system.entry.js → p-5ed4d1d5.system.entry.js} +1 -1
- package/dist/stzh-components/p-60d8e2da.entry.js +1 -0
- package/dist/stzh-components/p-61c9ca5d.entry.js +1 -0
- package/dist/stzh-components/p-61d4852f.system.entry.js +1 -0
- package/dist/stzh-components/p-6830f839.entry.js +1 -0
- package/dist/stzh-components/p-6d22bd0d.entry.js +1 -0
- package/dist/stzh-components/{p-6f7a7f7a.entry.js → p-71220066.entry.js} +1 -1
- package/dist/stzh-components/p-71d757d3.js +1 -0
- package/dist/stzh-components/p-7909f56b.entry.js +1 -0
- package/dist/stzh-components/p-7a584d3f.system.entry.js +1 -0
- package/dist/stzh-components/p-7aef399f.entry.js +1 -0
- package/dist/stzh-components/{p-c5749124.system.entry.js → p-7c172e64.system.entry.js} +1 -1
- package/dist/stzh-components/p-7dec02ca.entry.js +1 -0
- package/dist/stzh-components/p-84aace40.system.entry.js +1 -0
- package/dist/stzh-components/{p-6b5f447c.system.entry.js → p-8ab86ca3.system.entry.js} +1 -1
- package/dist/stzh-components/p-8f9de52f.system.entry.js +1 -0
- package/dist/stzh-components/p-909d7a3c.system.js +1 -0
- package/dist/stzh-components/p-95defe16.system.entry.js +1 -0
- package/dist/stzh-components/p-98a972b7.system.entry.js +1 -0
- package/dist/stzh-components/p-9c90535a.system.js +1 -0
- package/dist/stzh-components/p-a6d4a8b1.js +1 -0
- package/dist/stzh-components/p-a866b3a3.entry.js +1 -0
- package/dist/stzh-components/p-ac409e7b.system.entry.js +1 -0
- package/dist/stzh-components/p-ad119aca.entry.js +1 -0
- package/dist/stzh-components/p-b0e514c7.entry.js +1 -0
- package/dist/stzh-components/{p-020379d7.system.entry.js → p-b1ff3a21.system.entry.js} +2 -2
- package/dist/stzh-components/p-b54ed1f9.entry.js +1 -0
- package/dist/stzh-components/p-bc34bf07.system.entry.js +1 -0
- package/dist/stzh-components/p-bd5b8114.system.entry.js +1 -0
- package/dist/stzh-components/p-c2238fbf.entry.js +1 -0
- package/dist/stzh-components/p-c3846ccf.system.entry.js +1 -0
- package/dist/stzh-components/p-c777032f.system.entry.js +1 -0
- package/dist/stzh-components/p-ce06b4f2.system.js +1 -0
- package/dist/stzh-components/p-cf781b59.entry.js +1 -0
- package/dist/stzh-components/{p-bb8f71a4.entry.js → p-d4b93488.entry.js} +2 -2
- package/dist/stzh-components/p-d5ee4ac0.entry.js +1 -0
- package/dist/stzh-components/{p-fd811f6b.system.entry.js → p-daa34275.system.entry.js} +2 -2
- package/dist/stzh-components/p-e161760f.system.entry.js +1 -0
- package/dist/stzh-components/p-e785d9cc.entry.js +1 -0
- package/dist/stzh-components/{p-641126a8.system.entry.js → p-f5f3475c.system.entry.js} +1 -1
- package/dist/stzh-components/p-f6ab391e.system.entry.js +1 -0
- package/dist/stzh-components/{p-74786856.system.entry.js → p-ff2a6bdf.system.entry.js} +1 -1
- package/dist/stzh-components/p-ff534e27.entry.js +1 -0
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-share/stzh-share.localization.d.ts +10 -0
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -0
- package/dist/types/components.d.ts +351 -13
- package/dist/types/index.d.ts +7 -1
- package/dist/vscode-data.json +201 -11
- package/package.json +6 -2
- package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +0 -1
- package/dist/esm-es5/app-globals-453acbdb.js +0 -1
- package/dist/stzh-components/p-011dcf30.system.entry.js +0 -1
- package/dist/stzh-components/p-08714718.system.entry.js +0 -1
- package/dist/stzh-components/p-0977d9b6.entry.js +0 -1
- package/dist/stzh-components/p-0e474d1a.system.entry.js +0 -1
- package/dist/stzh-components/p-1399b2d7.entry.js +0 -1
- package/dist/stzh-components/p-2bf021f2.js +0 -1
- package/dist/stzh-components/p-2c891eee.entry.js +0 -1
- package/dist/stzh-components/p-3623b3a5.system.js +0 -1
- package/dist/stzh-components/p-3a73b8b5.system.js +0 -1
- package/dist/stzh-components/p-3e8ff66b.js +0 -1
- package/dist/stzh-components/p-4b93fb24.entry.js +0 -1
- package/dist/stzh-components/p-554fb3ac.system.js +0 -1
- package/dist/stzh-components/p-58714045.entry.js +0 -1
- package/dist/stzh-components/p-59970f71.entry.js +0 -1
- package/dist/stzh-components/p-62c7caed.entry.js +0 -1
- package/dist/stzh-components/p-648e03bc.entry.js +0 -1
- package/dist/stzh-components/p-6b2282cd.system.entry.js +0 -1
- package/dist/stzh-components/p-6c76e51d.entry.js +0 -1
- package/dist/stzh-components/p-6cbdbd06.entry.js +0 -1
- package/dist/stzh-components/p-90941379.system.entry.js +0 -1
- package/dist/stzh-components/p-9ca1efe4.system.entry.js +0 -1
- package/dist/stzh-components/p-9d58c713.entry.js +0 -1
- package/dist/stzh-components/p-a4a4370d.entry.js +0 -1
- package/dist/stzh-components/p-a6da8c06.system.entry.js +0 -1
- package/dist/stzh-components/p-afaa9c37.system.entry.js +0 -1
- package/dist/stzh-components/p-bb9e8364.entry.js +0 -1
- package/dist/stzh-components/p-bd7dd853.system.entry.js +0 -1
- package/dist/stzh-components/p-be534671.entry.js +0 -1
- package/dist/stzh-components/p-c7c3735a.entry.js +0 -1
- package/dist/stzh-components/p-da857e0d.entry.js +0 -1
- package/dist/stzh-components/p-de8f9508.system.entry.js +0 -1
- package/dist/stzh-components/p-e56d7b16.system.entry.js +0 -1
- package/dist/stzh-components/p-eb3425a1.system.entry.js +0 -1
- package/dist/stzh-components/p-fa9a4cd5.system.entry.js +0 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-2915b467.js';
|
|
2
|
+
import { s as setPropsIfNull, h as hasSlot } from './utils-68a28fce.js';
|
|
3
|
+
import { a as addMediaChangeListener, r as removeMediaChangeListener, m as media } from './media-utils-9b041ceb.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* fitty v2.3.6 - Snugly resizes text to fit its parent container
|
|
7
|
+
* Copyright (c) 2022 Rik Schennink <rik@pqina.nl> (https://pqina.nl/)
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var e=function(e){if(e){var t=function(e){return [].slice.call(e)},n=0,i=1,r=2,o=3,a=[],l=null,u="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(l),l=e.requestAnimationFrame((function(){return s(a.filter((function(e){return e.dirty&&e.active})))}));}:function(){},c=function(e){return function(){a.forEach((function(t){return t.dirty=e})),u();}},s=function(e){e.filter((function(e){return !e.styleComputed})).forEach((function(e){e.styleComputed=m(e);})),e.filter(y).forEach(v);var t=e.filter(p);t.forEach(d),t.forEach((function(e){v(e),f(e);})),t.forEach(S);},f=function(e){return e.dirty=n},d=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap";},p=function(e){return e.dirty!==r||e.dirty===r&&e.element.parentNode.clientWidth!==e.availableWidth},m=function(t){var n=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(n.getPropertyValue("font-size")),t.display=n.getPropertyValue("display"),t.whiteSpace=n.getPropertyValue("white-space"),!0},y=function(e){var t=!1;return !e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},v=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px";},S=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}));},h=function(e,t){return function(){e.dirty=t,e.active&&u();}},w=function(e){return function(){a=a.filter((function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize;}},b=function(e){return function(){e.active||(e.active=!0,u());}},z=function(e){return function(){return e.active=!1}},F=function(e){e.observeMutations&&(e.observer=new MutationObserver(h(e,i)),e.observer.observe(e.element,e.observeMutations));},g={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},W=null,E=function(){e.clearTimeout(W),W=e.setTimeout(c(r),x.observeWindowDelay);},M=["resize","orientationchange"];return Object.defineProperty(x,"observeWindow",{set:function(t){var n="".concat(t?"add":"remove","EventListener");M.forEach((function(t){e[n](t,E);}));}}),x.observeWindow=!0,x.observeWindowDelay=100,x.fitAll=c(o),x}function C(e,t){var n=Object.assign({},g,t),i=e.map((function(e){var t=Object.assign({},n,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},F(e),e.newbie=!0,e.dirty=!0,a.push(e);}(t),{element:e,fit:h(t,o),unfreeze:b(t),freeze:z(t),unsubscribe:w(t)}}));return u(),i}function x(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return "string"==typeof e?C(t(document.querySelectorAll(e)),n):C([e],n)[0]}}("undefined"==typeof window?null:window);
|
|
11
|
+
|
|
12
|
+
const stzhPagetitleHeroCss = ".sc-stzh-pagetitle-hero-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-hero-h{display:none}.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::before,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>img[slot=image],.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>[slot=image] img{display:block;position:absolute;width:100%;height:100%;top:0;left:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter]:not([disabled]){--color:var(--stzh-color-white);--border:0.0625rem solid var(--stzh-color-white);--remove-color:var(--stzh-color-white);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-white48);--icon-color:var(--stzh-color-white);--hover-color:var(--stzh-color-white);--hover-border:0.0625rem solid transparent;--hover-background-color:var(--stzh-color-white16);--hover-remove-color:var(--stzh-color-white);--hover-remove-background-color:var(--stzh-color-white16);--hover-counter-color:var(--stzh-color-white);--hover-icon-color:var(--stzh-color-white)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter][active]:not([active=false]):not([disabled]){--border:0.0625rem solid transparent;--background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-remove-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag]:not(:last-child){margin-right:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero.sc-stzh-pagetitle-hero{padding-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{position:absolute;left:0;top:0}}@media screen and (max-width: 1023px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero:not(:empty){margin:var(--stzh-space-xlarge) 0}}.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{--stzh-flyingfocus-color:var(--stzh-base-invert-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:1;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding:var(--stzh-space-xxxlarge) var(--stzh-space-xlarge);margin-top:calc(var(--stzh-space-xxxlarge) * -1)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xxxxlarge) var(--stzh-space-xxlarge);margin-top:calc(var(--stzh-space-big) * -1)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin:var(--stzh-space-big) 0;width:50%;margin-left:-8.3333333333%}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xbig)}}.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-white);margin:0;font-size:1.875rem;line-height:1.107;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:normal;word-break:normal;word-break:break-word}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-size:3rem}}.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h3-default-text-letter-spacing);margin-top:var(--stzh-space-xlarge);color:var(--stzh-color-white)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-text-line-height, var(--stzh-font-deci-text-line-height));letter-spacing:var(--stzh-font-curve-h3-small-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-text-line-height, var(--stzh-font-regular-text-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxxlarge);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 600px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row;flex-direction:row}}.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{position:relative;-ms-flex-negative:0;flex-shrink:0;background-color:var(--stzh-color-grey5);margin-left:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2);margin-right:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{width:58.3333333333%;margin-left:0;margin-right:0}}.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{position:relative;width:100%;height:0;padding-bottom:75%}@media screen and (min-width: 600px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:56.25%}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:75%}}.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin:0 auto;margin-bottom:var(--stzh-space-large)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge);max-width:70%}}.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin-right:-8.3333333333%}}.stzh-pagetitle-hero--has-no-lead.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:column;flex-direction:column;margin-top:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{width:100%;margin:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xlarge);margin-bottom:var(--stzh-space-xlarge);position:static}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxlarge)}}";
|
|
13
|
+
|
|
14
|
+
const StzhPagetitleHero = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
registerInstance(this, hostRef);
|
|
17
|
+
this.init = () => {
|
|
18
|
+
const backLink = this.element.querySelector('stzh-link[slot="back-link"], [slot="back-link"] stzh-link');
|
|
19
|
+
const leads = this.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text');
|
|
20
|
+
const tags = this.element.querySelectorAll('stzh-chip[slot="tag"], [slot="tag"] stzh-chip');
|
|
21
|
+
if (backLink) {
|
|
22
|
+
setPropsIfNull(backLink, {
|
|
23
|
+
icon: "arrow-left-circle"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
leads.forEach((lead) => {
|
|
27
|
+
setPropsIfNull(lead, {
|
|
28
|
+
lead: true
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
tags.forEach((tag) => {
|
|
32
|
+
setPropsIfNull(tag, {
|
|
33
|
+
role: "listitem"
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
this.reinitFitty = () => {
|
|
38
|
+
this.destroyFitty();
|
|
39
|
+
const isSmall = media("small").matches;
|
|
40
|
+
this.fitty = e(this.mainTitleElement, {
|
|
41
|
+
minSize: isSmall ? 48 : 32,
|
|
42
|
+
maxSize: isSmall ? 96 : 64
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
this.heading = "";
|
|
46
|
+
this.leadAuthor = "";
|
|
47
|
+
this.subtitle = "";
|
|
48
|
+
}
|
|
49
|
+
destroyFitty() {
|
|
50
|
+
if (this.fitty) {
|
|
51
|
+
this.fitty.unsubscribe();
|
|
52
|
+
this.fitty = null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async componentWillUpdate() {
|
|
56
|
+
this.destroyFitty();
|
|
57
|
+
}
|
|
58
|
+
async componentDidRender() {
|
|
59
|
+
if (this.fitty) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.reinitFitty();
|
|
63
|
+
}
|
|
64
|
+
connectedCallback() {
|
|
65
|
+
this.init();
|
|
66
|
+
addMediaChangeListener(this.reinitFitty);
|
|
67
|
+
this.observer = new MutationObserver(this.init);
|
|
68
|
+
this.observer.observe(this.element, {
|
|
69
|
+
childList: true,
|
|
70
|
+
subtree: true
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
disconnectedCallback() {
|
|
74
|
+
this.observer.disconnect();
|
|
75
|
+
removeMediaChangeListener(this.reinitFitty);
|
|
76
|
+
this.destroyFitty();
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
const imageSlotUsed = hasSlot(this.element, "image");
|
|
80
|
+
const leadSlotUsed = hasSlot(this.element, "lead");
|
|
81
|
+
const backLinkSlotUsed = hasSlot(this.element, "back-link");
|
|
82
|
+
const classes = {
|
|
83
|
+
"stzh-pagetitle-hero": true,
|
|
84
|
+
"stzh-pagetitle-hero--has-no-image": !imageSlotUsed,
|
|
85
|
+
"stzh-pagetitle-hero--has-no-lead": !leadSlotUsed,
|
|
86
|
+
"stzh-pagetitle-hero--has-back-link": backLinkSlotUsed,
|
|
87
|
+
};
|
|
88
|
+
return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-pagetitle-hero__header" }, h("div", { class: "stzh-pagetitle-hero__back-link" }, h("slot", { name: "back-link" })), h("div", { class: "stzh-pagetitle-hero__image-wrapper" }, h("div", { class: "stzh-pagetitle-hero__image-ratio" }), h("slot", { name: "image" })), h("div", { class: "stzh-pagetitle-hero__title-wrapper" }, h("div", { class: "stzh-pagetitle-hero__tags", role: "list" }, h("slot", { name: "tag" })), h("div", { class: "stzh-pagetitle-hero__title-parent" }, h("h1", { ref: (el) => (this.mainTitleElement = el), class: "stzh-pagetitle-hero__title" }, this.heading)), this.subtitle &&
|
|
89
|
+
h("div", { class: "stzh-pagetitle-hero__subtitle" }, this.subtitle))), h("div", { class: "stzh-pagetitle-hero__lead" }, h("slot", { name: "lead" }), h("div", { class: "stzh-pagetitle-hero__lead-author" }, this.leadAuthor)))));
|
|
90
|
+
}
|
|
91
|
+
get element() { return getElement(this); }
|
|
92
|
+
};
|
|
93
|
+
StzhPagetitleHero.style = stzhPagetitleHeroCss;
|
|
94
|
+
|
|
95
|
+
export { StzhPagetitleHero as stzh_pagetitle_hero };
|