@oiz/stzh-components 2.7.0 → 2.8.0-beta
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-c9c5ef57.js → app-globals-dff738b3.js} +2 -2
- package/dist/cjs/{app-globals-c9c5ef57.js.map → app-globals-dff738b3.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{string-utils-a867b99d.js → string-utils-2575ea7f.js} +14 -1
- package/dist/cjs/string-utils-2575ea7f.js.map +1 -0
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-sortable.cjs.entry.js → stzh-actionset_4.cjs.entry.js} +567 -3
- package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-amount.cjs.entry.js +4 -3
- package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +7 -7
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-buttongroup.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chip-select.cjs.entry.js +149 -0
- package/dist/cjs/stzh-chip-select.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +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 +3 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +11 -8
- package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +32 -8
- package/dist/cjs/stzh-datatable.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +6 -5
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +4 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ghettobox.cjs.entry.js +108 -0
- package/dist/cjs/stzh-ghettobox.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-header.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +4 -2
- package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +5 -5
- package/dist/cjs/stzh-link.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagination.cjs.entry.js +86 -0
- package/dist/cjs/stzh-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-richtext_2.cjs.entry.js +86 -0
- package/dist/cjs/stzh-richtext_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-row.cjs.entry.js +1 -1
- package/dist/cjs/stzh-row.cjs.entry.js.map +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-share.cjs.entry.js +7 -21
- package/dist/cjs/stzh-share.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-space.cjs.entry.js +1 -1
- package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-table.cjs.entry.js +6 -4
- package/dist/cjs/stzh-table.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
- package/dist/cjs/{utils-a2ff9f84.js → utils-916583be.js} +7 -1
- package/dist/cjs/utils-916583be.js.map +1 -0
- package/dist/collection/assets/i18n/de.json +8 -1
- package/dist/collection/assets/i18n/en.json +8 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/stzh-amount/stzh-amount.css +1 -1
- package/dist/collection/components/stzh-amount/stzh-amount.js +21 -2
- package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
- package/dist/collection/components/stzh-button/stzh-button.js +6 -6
- package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
- package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +11 -6
- package/dist/collection/components/stzh-card/stzh-card.css +30 -28
- package/dist/collection/components/stzh-card/stzh-card.js +30 -7
- package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
- package/dist/collection/components/stzh-cell/stzh-cell.css +0 -5
- package/dist/collection/components/stzh-chip/stzh-chip.js +2 -2
- package/dist/collection/components/stzh-chip/stzh-chip.js.map +1 -1
- package/dist/collection/components/stzh-container/stzh-container.css +0 -8
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +103 -133
- package/dist/collection/components/stzh-cspace/stzh-cspace.js +46 -2
- package/dist/collection/components/stzh-cspace/stzh-cspace.js.map +1 -1
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +5 -0
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +12 -8
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js.map +1 -1
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +21 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +85 -7
- package/dist/collection/components/stzh-datatable/stzh-datatable.js.map +1 -1
- package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +41 -14
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +22 -3
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +1 -1
- package/dist/collection/components/stzh-dialog/stzh-dialog.js.map +1 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +12 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +20 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +0 -6
- package/dist/collection/components/stzh-input/stzh-input.css +16 -1
- package/dist/collection/components/stzh-input/stzh-input.js +20 -0
- package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
- package/dist/collection/components/stzh-link/stzh-link.js +4 -4
- package/dist/collection/components/stzh-link/stzh-link.js.map +1 -1
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +2 -2
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js.map +1 -1
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +2 -2
- package/dist/collection/components/stzh-overlay/stzh-overlay.js +1 -1
- package/dist/collection/components/stzh-overlay/stzh-overlay.js.map +1 -1
- package/dist/collection/components/stzh-pagination/stzh-pagination.css +127 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.js +437 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.js.map +1 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.localization.js +2 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.localization.js.map +1 -0
- package/dist/collection/components/stzh-pagination/stzh-pagination.stories.js +44 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +4 -2
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +38 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.js.map +1 -1
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +2 -2
- package/dist/collection/components/stzh-row/stzh-row.css +0 -5
- package/dist/collection/components/stzh-section/stzh-section.css +0 -6
- package/dist/collection/components/stzh-share/stzh-share.js +6 -20
- package/dist/collection/components/stzh-share/stzh-share.js.map +1 -1
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +53 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.js.map +1 -1
- package/dist/collection/components/stzh-space/stzh-space.css +0 -6
- package/dist/collection/components/stzh-table/stzh-table.css +21 -0
- package/dist/collection/components/stzh-table/stzh-table.js +7 -3
- package/dist/collection/components/stzh-table/stzh-table.js.map +1 -1
- package/dist/collection/components/stzh-table/stzh-table.stories.js +259 -4
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +1 -1
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +0 -6
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/string-utils.js +12 -0
- package/dist/collection/utils/string-utils.js.map +1 -1
- package/dist/collection/utils/utils.js +5 -0
- 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/string-utils.js +13 -1
- package/dist/components/string-utils.js.map +1 -1
- package/dist/components/stzh-amount.js +5 -3
- package/dist/components/stzh-amount.js.map +1 -1
- package/dist/components/stzh-button2.js +6 -6
- package/dist/components/stzh-button2.js.map +1 -1
- package/dist/components/stzh-buttongroup2.js +1 -1
- package/dist/components/stzh-buttongroup2.js.map +1 -1
- package/dist/components/stzh-card2.js +31 -8
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/components/stzh-cell.js +1 -1
- package/dist/components/stzh-cell.js.map +1 -1
- package/dist/components/stzh-chip2.js +2 -2
- package/dist/components/stzh-chip2.js.map +1 -1
- package/dist/components/stzh-contact.js +18 -12
- 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 +8 -2
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-datalist-item2.js +23 -14
- package/dist/components/stzh-datalist-item2.js.map +1 -1
- package/dist/components/stzh-datalist2.js +14 -8
- package/dist/components/stzh-datalist2.js.map +1 -1
- package/dist/components/stzh-datatable.js +129 -18
- package/dist/components/stzh-datatable.js.map +1 -1
- package/dist/components/stzh-datepicker2.js +5 -3
- package/dist/components/stzh-datepicker2.js.map +1 -1
- package/dist/components/stzh-dialog.js +1 -1
- package/dist/components/stzh-dialog.js.map +1 -1
- package/dist/components/stzh-dropdown2.js +4 -1
- package/dist/components/stzh-dropdown2.js.map +1 -1
- package/dist/components/stzh-hspace.js +1 -1
- package/dist/components/stzh-hspace.js.map +1 -1
- package/dist/components/stzh-input2.js +4 -1
- package/dist/components/stzh-input2.js.map +1 -1
- package/dist/components/stzh-link2.js +4 -4
- package/dist/components/stzh-link2.js.map +1 -1
- package/dist/components/stzh-menu-item2.js +2 -2
- package/dist/components/stzh-menu-item2.js.map +1 -1
- package/dist/components/stzh-overlay.js +1 -1
- package/dist/components/stzh-overlay.js.map +1 -1
- package/dist/components/stzh-pagination.d.ts +11 -0
- package/dist/components/stzh-pagination.js +8 -0
- package/dist/components/stzh-pagination.js.map +1 -0
- package/dist/components/stzh-pagination2.js +151 -0
- package/dist/components/stzh-pagination2.js.map +1 -0
- package/dist/components/stzh-richtext2.js +5 -1
- package/dist/components/stzh-richtext2.js.map +1 -1
- package/dist/components/stzh-row.js +1 -1
- package/dist/components/stzh-row.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 +6 -20
- package/dist/components/stzh-share2.js.map +1 -1
- package/dist/components/stzh-sitemap.js +16 -10
- package/dist/components/stzh-sitemap.js.map +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-sortable2.js +1 -1
- package/dist/components/stzh-sortable2.js.map +1 -1
- package/dist/components/stzh-space.js +1 -1
- package/dist/components/stzh-space.js.map +1 -1
- package/dist/components/stzh-table.js +6 -4
- package/dist/components/stzh-table.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vspace.js +1 -1
- package/dist/components/stzh-vspace.js.map +1 -1
- package/dist/components/utils.js +6 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{app-globals-5ab947af.js → app-globals-07e538f3.js} +2 -2
- package/dist/esm/{app-globals-5ab947af.js.map → app-globals-07e538f3.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/string-utils-3ffa8d6b.js +29 -0
- package/dist/esm/string-utils-3ffa8d6b.js.map +1 -0
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/{stzh-sortable.entry.js → stzh-actionset_4.entry.js} +566 -5
- package/dist/esm/stzh-actionset_4.entry.js.map +1 -0
- package/dist/esm/stzh-amount.entry.js +4 -3
- package/dist/esm/stzh-amount.entry.js.map +1 -1
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +7 -7
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-buttongroup.entry.js +1 -1
- package/dist/esm/stzh-buttongroup.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +1 -1
- package/dist/esm/stzh-cell.entry.js +1 -1
- package/dist/esm/stzh-cell.entry.js.map +1 -1
- package/dist/esm/stzh-checkbox.entry.js +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
- package/dist/esm/stzh-chip-select.entry.js +145 -0
- package/dist/esm/stzh-chip-select.entry.js.map +1 -0
- package/dist/esm/stzh-chip_2.entry.js +2 -2
- package/dist/esm/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact.entry.js +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 +3 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +11 -8
- package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm/stzh-datatable.entry.js +32 -8
- package/dist/esm/stzh-datatable.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +6 -5
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +2 -2
- package/dist/esm/stzh-dialog.entry.js.map +1 -1
- package/dist/esm/stzh-dropdown.entry.js +4 -2
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm/stzh-figure.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +1 -1
- package/dist/esm/stzh-ghettobox.entry.js +104 -0
- package/dist/esm/stzh-ghettobox.entry.js.map +1 -0
- package/dist/esm/stzh-header.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +4 -2
- package/dist/esm/stzh-input.entry.js.map +1 -1
- package/dist/esm/stzh-link.entry.js +5 -5
- package/dist/esm/stzh-link.entry.js.map +1 -1
- package/dist/esm/stzh-menu_2.entry.js +3 -3
- package/dist/esm/stzh-menu_2.entry.js.map +1 -1
- package/dist/esm/stzh-overlay.entry.js +1 -1
- package/dist/esm/stzh-overlay.entry.js.map +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-pagination.entry.js +82 -0
- package/dist/esm/stzh-pagination.entry.js.map +1 -0
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-richtext_2.entry.js +81 -0
- package/dist/esm/stzh-richtext_2.entry.js.map +1 -0
- package/dist/esm/stzh-row.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js.map +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-share.entry.js +6 -20
- package/dist/esm/stzh-share.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-space.entry.js +1 -1
- package/dist/esm/stzh-space.entry.js.map +1 -1
- package/dist/esm/stzh-table.entry.js +6 -4
- package/dist/esm/stzh-table.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +1 -1
- package/dist/esm/stzh-tooltip.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +1 -1
- package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js.map +1 -1
- package/dist/esm/{utils-51148d9a.js → utils-8f264f12.js} +7 -2
- package/dist/esm/utils-8f264f12.js.map +1 -0
- package/dist/esm-es5/{app-globals-5ab947af.js → app-globals-07e538f3.js} +2 -2
- package/dist/esm-es5/{app-globals-5ab947af.js.map → app-globals-07e538f3.js.map} +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/string-utils-3ffa8d6b.js +2 -0
- package/dist/esm-es5/string-utils-3ffa8d6b.js.map +1 -0
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset_4.entry.js +8 -0
- package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -0
- package/dist/esm-es5/stzh-amount.entry.js +1 -1
- package/dist/esm-es5/stzh-amount.entry.js.map +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-audio.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-buttongroup.entry.js +1 -1
- package/dist/esm-es5/stzh-buttongroup.entry.js.map +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip-select.entry.js +2 -0
- package/dist/esm-es5/stzh-chip-select.entry.js.map +1 -0
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-contact.entry.js +1 -1
- package/dist/esm-es5/stzh-container.entry.js +1 -1
- package/dist/esm-es5/stzh-container.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js.map +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
- package/dist/esm-es5/stzh-dropdown.entry.js.map +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.entry.js +2 -0
- package/dist/esm-es5/stzh-ghettobox.entry.js.map +1 -0
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js.map +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-input.entry.js.map +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js.map +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-overlay.entry.js +1 -1
- package/dist/esm-es5/stzh-overlay.entry.js.map +1 -1
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-pagination.entry.js +2 -0
- package/dist/esm-es5/stzh-pagination.entry.js.map +1 -0
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-richtext_2.entry.js +2 -0
- package/dist/esm-es5/stzh-richtext_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js.map +1 -1
- package/dist/esm-es5/stzh-section.entry.js +1 -1
- package/dist/esm-es5/stzh-section.entry.js.map +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js.map +1 -1
- package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm-es5/stzh-space.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js.map +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js.map +1 -1
- package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
- package/dist/esm-es5/utils-8f264f12.js +2 -0
- package/dist/esm-es5/utils-8f264f12.js.map +1 -0
- package/dist/stzh-components/assets/i18n/de.json +8 -1
- package/dist/stzh-components/assets/i18n/en.json +8 -1
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-f23f2408.system.entry.js → p-09445156.system.entry.js} +2 -2
- package/dist/stzh-components/p-0b5fbb86.system.entry.js +2 -0
- package/dist/stzh-components/p-0b5fbb86.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-94a5e295.system.entry.js → p-0d302a14.system.entry.js} +2 -2
- package/dist/stzh-components/p-1016d03d.system.entry.js +2 -0
- package/dist/stzh-components/p-1016d03d.system.entry.js.map +1 -0
- package/dist/stzh-components/p-1760118e.entry.js +2 -0
- package/dist/stzh-components/{p-a1c02179.entry.js.map → p-1760118e.entry.js.map} +1 -1
- package/dist/stzh-components/p-1ad68cac.system.entry.js +2 -0
- package/dist/stzh-components/p-1ad68cac.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-c901fe72.system.entry.js → p-1d683f3a.system.entry.js} +3 -3
- package/dist/stzh-components/p-1d683f3a.system.entry.js.map +1 -0
- package/dist/stzh-components/p-1e5f556b.system.entry.js +2 -0
- package/dist/stzh-components/p-1e5f556b.system.entry.js.map +1 -0
- package/dist/stzh-components/p-1fad78a6.entry.js +2 -0
- package/dist/stzh-components/{p-5ee43b56.entry.js.map → p-1fad78a6.entry.js.map} +1 -1
- package/dist/stzh-components/p-22a2f4c1.system.js +2 -0
- package/dist/stzh-components/p-22a2f4c1.system.js.map +1 -0
- package/dist/stzh-components/{p-39a4904e.system.entry.js → p-2614251e.system.entry.js} +2 -2
- package/dist/stzh-components/{p-8b62ec27.js → p-26ec7788.js} +2 -2
- package/dist/stzh-components/{p-8b62ec27.js.map → p-26ec7788.js.map} +1 -1
- package/dist/stzh-components/p-2705720b.entry.js +2 -0
- package/dist/stzh-components/p-2705720b.entry.js.map +1 -0
- package/dist/stzh-components/{p-799548c4.system.entry.js → p-27489e46.system.entry.js} +2 -2
- package/dist/stzh-components/{p-9f4f3882.system.entry.js → p-2d777867.system.entry.js} +2 -2
- package/dist/stzh-components/{p-9f4f3882.system.entry.js.map → p-2d777867.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-29ed53a9.system.entry.js → p-2dd983a9.system.entry.js} +2 -2
- package/dist/stzh-components/{p-cc1a6af1.system.entry.js → p-2ec243e8.system.entry.js} +2 -2
- package/dist/stzh-components/{p-cd0f7b10.entry.js → p-33da1a1c.entry.js} +2 -2
- package/dist/stzh-components/p-35a328cc.system.entry.js +2 -0
- package/dist/stzh-components/p-35a328cc.system.entry.js.map +1 -0
- package/dist/stzh-components/p-3f72c05a.system.js +2 -0
- package/dist/stzh-components/p-3f72c05a.system.js.map +1 -0
- package/dist/stzh-components/p-40694e20.system.entry.js +2 -0
- package/dist/stzh-components/p-40694e20.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-6608126b.entry.js → p-4325de93.entry.js} +2 -2
- package/dist/stzh-components/{p-bc997ce2.entry.js → p-432d3ec4.entry.js} +2 -2
- package/dist/stzh-components/{p-bc997ce2.entry.js.map → p-432d3ec4.entry.js.map} +1 -1
- package/dist/stzh-components/{p-517af258.system.entry.js → p-444f765a.system.entry.js} +2 -2
- package/dist/stzh-components/p-4bcc414d.system.entry.js +2 -0
- package/dist/stzh-components/p-4bcc414d.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-9d46101e.entry.js → p-4c4a05b3.entry.js} +2 -2
- package/dist/stzh-components/{p-9d46101e.entry.js.map → p-4c4a05b3.entry.js.map} +1 -1
- package/dist/stzh-components/{p-7b297848.system.entry.js → p-50652c05.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a8c92707.system.entry.js → p-509b0e4c.system.entry.js} +2 -2
- package/dist/stzh-components/p-51ccda11.system.entry.js +2 -0
- package/dist/stzh-components/p-51ccda11.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-a2b49ad8.entry.js → p-52bcb3ab.entry.js} +2 -2
- package/dist/stzh-components/{p-4cd7c872.system.entry.js → p-5af33d37.system.entry.js} +2 -2
- package/dist/stzh-components/{p-8cb7e2da.system.entry.js → p-5bceda21.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c0f971f2.entry.js → p-5df47c3a.entry.js} +8 -8
- package/dist/stzh-components/p-5df47c3a.entry.js.map +1 -0
- package/dist/stzh-components/{p-edef74c8.system.entry.js → p-62ca262c.system.entry.js} +2 -2
- package/dist/stzh-components/{p-edef74c8.system.entry.js.map → p-62ca262c.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-c2a06b4d.system.entry.js → p-62e0ad8d.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c2a06b4d.system.entry.js.map → p-62e0ad8d.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-67f50e81.system.entry.js +2 -0
- package/dist/stzh-components/p-67f50e81.system.entry.js.map +1 -0
- package/dist/stzh-components/p-68b00da7.system.entry.js +2 -0
- package/dist/stzh-components/p-68b00da7.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-eca073df.system.entry.js → p-6ac4713f.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b8ad5f47.system.entry.js → p-709bb264.system.entry.js} +2 -2
- package/dist/stzh-components/{p-3e5da137.entry.js → p-7463c7b5.entry.js} +2 -2
- package/dist/stzh-components/p-75fa2483.entry.js +2 -0
- package/dist/stzh-components/p-75fa2483.entry.js.map +1 -0
- package/dist/stzh-components/{p-562f4dfa.entry.js → p-78f78684.entry.js} +2 -2
- package/dist/stzh-components/p-7992047b.entry.js +2 -0
- package/dist/stzh-components/p-7992047b.entry.js.map +1 -0
- package/dist/stzh-components/p-7ac51980.system.entry.js +2 -0
- package/dist/stzh-components/p-7ac51980.system.entry.js.map +1 -0
- package/dist/stzh-components/p-7e5587ee.entry.js +2 -0
- package/dist/stzh-components/p-7e5587ee.entry.js.map +1 -0
- package/dist/stzh-components/p-8225341e.entry.js +2 -0
- package/dist/stzh-components/p-8225341e.entry.js.map +1 -0
- package/dist/stzh-components/{p-3dea2f45.entry.js → p-849ec693.entry.js} +2 -2
- package/dist/stzh-components/{p-f5c99792.system.entry.js → p-8547ae9e.system.entry.js} +2 -2
- package/dist/stzh-components/{p-f5c99792.system.entry.js.map → p-8547ae9e.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-2615433f.system.entry.js → p-88440469.system.entry.js} +2 -2
- package/dist/stzh-components/{p-2615433f.system.entry.js.map → p-88440469.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-3aa5623c.entry.js → p-89562c7e.entry.js} +2 -2
- package/dist/stzh-components/{p-0f71e85f.entry.js → p-8a44987c.entry.js} +2 -2
- package/dist/stzh-components/{p-0f71e85f.entry.js.map → p-8a44987c.entry.js.map} +1 -1
- package/dist/stzh-components/p-8a58fa64.entry.js +2 -0
- package/dist/stzh-components/p-8a58fa64.entry.js.map +1 -0
- package/dist/stzh-components/p-8eaac610.entry.js +2 -0
- package/dist/stzh-components/p-8eaac610.entry.js.map +1 -0
- package/dist/stzh-components/{p-3184a123.system.entry.js → p-8f6c5346.system.entry.js} +2 -2
- package/dist/stzh-components/{p-3184a123.system.entry.js.map → p-8f6c5346.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-45572515.entry.js → p-916f8386.entry.js} +2 -2
- package/dist/stzh-components/p-9705d27e.system.entry.js +2 -0
- package/dist/stzh-components/{p-9fe69be8.system.entry.js.map → p-9705d27e.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-2d25bcc8.entry.js → p-979390db.entry.js} +2 -2
- package/dist/stzh-components/{p-ffdd9cab.system.js → p-9b4e4b9d.system.js} +2 -2
- package/dist/stzh-components/{p-ffdd9cab.system.js.map → p-9b4e4b9d.system.js.map} +1 -1
- package/dist/stzh-components/p-9c428351.entry.js +2 -0
- package/dist/stzh-components/p-9c428351.entry.js.map +1 -0
- package/dist/stzh-components/{p-70d7389a.entry.js → p-9f2332f6.entry.js} +2 -2
- package/dist/stzh-components/{p-70d7389a.entry.js.map → p-9f2332f6.entry.js.map} +1 -1
- package/dist/stzh-components/p-9faae333.entry.js +2 -0
- package/dist/stzh-components/p-9faae333.entry.js.map +1 -0
- package/dist/stzh-components/{p-e2ff2ef4.entry.js → p-a0008fa2.entry.js} +2 -2
- package/dist/stzh-components/{p-05b9e4c2.system.entry.js → p-a26cd855.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b792ea2e.system.entry.js → p-a2d5846c.system.entry.js} +2 -2
- package/dist/stzh-components/{p-6c219530.entry.js → p-a8e1b13c.entry.js} +2 -2
- package/dist/stzh-components/{p-4a299f84.entry.js → p-acbe3680.entry.js} +2 -2
- package/dist/stzh-components/p-afdf3a08.system.entry.js +2 -0
- package/dist/stzh-components/p-afdf3a08.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-35cbff3f.entry.js → p-affbfe00.entry.js} +2 -2
- package/dist/stzh-components/p-b33a79ba.system.entry.js +2 -0
- package/dist/stzh-components/p-b33a79ba.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-7772c262.entry.js → p-b5531053.entry.js} +2 -2
- package/dist/stzh-components/{p-bf069354.entry.js → p-b61c752e.entry.js} +2 -2
- package/dist/stzh-components/{p-bf069354.entry.js.map → p-b61c752e.entry.js.map} +1 -1
- package/dist/stzh-components/p-b989646a.entry.js +2 -0
- package/dist/stzh-components/p-b989646a.entry.js.map +1 -0
- package/dist/stzh-components/p-bd7f6761.entry.js +2 -0
- package/dist/stzh-components/p-bd7f6761.entry.js.map +1 -0
- package/dist/stzh-components/p-bda21265.system.entry.js +8 -0
- package/dist/stzh-components/p-bda21265.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-f599025e.system.entry.js → p-c0aa52aa.system.entry.js} +2 -2
- package/dist/stzh-components/p-c2615e7c.system.entry.js +2 -0
- package/dist/{esm-es5/stzh-ghettobox_2.entry.js.map → stzh-components/p-c2615e7c.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-d5b4d345.entry.js → p-c323f19e.entry.js} +2 -2
- package/dist/stzh-components/p-c323f19e.entry.js.map +1 -0
- package/dist/stzh-components/p-c64a7018.system.entry.js +2 -0
- package/dist/stzh-components/p-c64a7018.system.entry.js.map +1 -0
- package/dist/stzh-components/p-ca6d7215.entry.js +2 -0
- package/dist/stzh-components/p-ca6d7215.entry.js.map +1 -0
- package/dist/stzh-components/p-d6ffd97e.entry.js +2 -0
- package/dist/stzh-components/p-d6ffd97e.entry.js.map +1 -0
- package/dist/stzh-components/{p-fefcd0e6.entry.js → p-d7a7560a.entry.js} +2 -2
- package/dist/stzh-components/{p-87b4549c.system.entry.js → p-dad99bd2.system.entry.js} +2 -2
- package/dist/stzh-components/p-daf17eae.entry.js +2 -0
- package/dist/stzh-components/p-daf17eae.entry.js.map +1 -0
- package/dist/stzh-components/p-dd137812.entry.js +8 -0
- package/dist/stzh-components/p-dd137812.entry.js.map +1 -0
- package/dist/stzh-components/{p-b05c240b.system.entry.js → p-e16ee236.system.entry.js} +2 -2
- package/dist/stzh-components/p-e5781c90.system.entry.js +2 -0
- package/dist/stzh-components/p-e5781c90.system.entry.js.map +1 -0
- package/dist/stzh-components/p-e606314e.system.entry.js +2 -0
- package/dist/stzh-components/p-e606314e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-bcd5b20e.entry.js → p-e7454abb.entry.js} +2 -2
- package/dist/stzh-components/p-e787179c.js +2 -0
- package/dist/stzh-components/p-e787179c.js.map +1 -0
- package/dist/stzh-components/p-e7d4542e.entry.js +2 -0
- package/dist/stzh-components/p-e7d4542e.entry.js.map +1 -0
- package/dist/stzh-components/p-eaa65f52.system.js.map +1 -1
- package/dist/stzh-components/p-eab77a09.system.entry.js +2 -0
- package/dist/stzh-components/p-eab77a09.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-6d097e82.system.entry.js → p-ebe979a3.system.entry.js} +2 -2
- package/dist/stzh-components/{p-9b7d4e8d.entry.js → p-ef4c12ac.entry.js} +2 -2
- package/dist/stzh-components/p-f02d484d.system.js +2 -0
- package/dist/stzh-components/{p-b7d68fca.system.js.map → p-f02d484d.system.js.map} +1 -1
- package/dist/stzh-components/{p-3cb43903.entry.js → p-f0ac9730.entry.js} +2 -2
- package/dist/stzh-components/p-f43f7434.entry.js +2 -0
- package/dist/stzh-components/p-f43f7434.entry.js.map +1 -0
- package/dist/stzh-components/p-f4ec861e.entry.js +2 -0
- package/dist/stzh-components/{p-14e782cb.entry.js.map → p-f4ec861e.entry.js.map} +1 -1
- package/dist/stzh-components/{p-8d695d3e.system.entry.js → p-f65b5145.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b82351f0.system.entry.js → p-f665752d.system.entry.js} +2 -2
- package/dist/stzh-components/p-f879bc5a.system.entry.js +2 -0
- package/dist/stzh-components/p-f879bc5a.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-c3b260a1.entry.js → p-fb12ec57.entry.js} +2 -2
- package/dist/stzh-components/p-fb36e3be.entry.js +2 -0
- package/dist/stzh-components/{p-df9460ae.system.entry.js.map → p-fb36e3be.entry.js.map} +1 -1
- package/dist/stzh-components/p-fc339100.js +2 -0
- package/dist/stzh-components/p-fc339100.js.map +1 -0
- package/dist/stzh-components/{p-52e52b49.entry.js → p-fd97e87d.entry.js} +2 -2
- package/dist/stzh-components/p-fdabe05c.entry.js +2 -0
- package/dist/stzh-components/p-fdabe05c.entry.js.map +1 -0
- package/dist/stzh-components/p-fdb1fd0a.entry.js +2 -0
- package/dist/stzh-components/p-fdb1fd0a.entry.js.map +1 -0
- package/dist/stzh-components/{p-80d581ac.system.entry.js → p-fece12c0.system.entry.js} +2 -2
- package/dist/stzh-components/p-fece12c0.system.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +740 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +4 -0
- package/dist/types/components/stzh-pagination/stzh-pagination.localization.d.ts +8 -0
- package/dist/types/components.d.ts +251 -4
- package/dist/types/index.d.ts +6 -0
- package/dist/types/utils/string-utils.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/vscode-data.json +125 -3
- package/package.json +1 -1
- package/dist/cjs/string-utils-a867b99d.js.map +0 -1
- package/dist/cjs/stzh-actionset.cjs.entry.js +0 -173
- package/dist/cjs/stzh-actionset.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +0 -528
- package/dist/cjs/stzh-card_3.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +0 -157
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-status.cjs.entry.js +0 -34
- package/dist/cjs/stzh-status.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-a2ff9f84.js.map +0 -1
- package/dist/esm/string-utils-f98ee4e8.js +0 -17
- package/dist/esm/string-utils-f98ee4e8.js.map +0 -1
- package/dist/esm/stzh-actionset.entry.js +0 -169
- package/dist/esm/stzh-actionset.entry.js.map +0 -1
- package/dist/esm/stzh-card_3.entry.js +0 -522
- package/dist/esm/stzh-card_3.entry.js.map +0 -1
- package/dist/esm/stzh-ghettobox_2.entry.js +0 -152
- package/dist/esm/stzh-ghettobox_2.entry.js.map +0 -1
- package/dist/esm/stzh-sortable.entry.js.map +0 -1
- package/dist/esm/stzh-status.entry.js +0 -30
- package/dist/esm/stzh-status.entry.js.map +0 -1
- package/dist/esm/utils-51148d9a.js.map +0 -1
- package/dist/esm-es5/string-utils-f98ee4e8.js +0 -2
- package/dist/esm-es5/string-utils-f98ee4e8.js.map +0 -1
- package/dist/esm-es5/stzh-actionset.entry.js +0 -2
- package/dist/esm-es5/stzh-actionset.entry.js.map +0 -1
- package/dist/esm-es5/stzh-card_3.entry.js +0 -2
- package/dist/esm-es5/stzh-card_3.entry.js.map +0 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +0 -2
- package/dist/esm-es5/stzh-sortable.entry.js +0 -8
- package/dist/esm-es5/stzh-sortable.entry.js.map +0 -1
- package/dist/esm-es5/stzh-status.entry.js +0 -2
- package/dist/esm-es5/stzh-status.entry.js.map +0 -1
- package/dist/esm-es5/utils-51148d9a.js +0 -2
- package/dist/esm-es5/utils-51148d9a.js.map +0 -1
- package/dist/stzh-components/p-0515de95.system.entry.js +0 -2
- package/dist/stzh-components/p-0515de95.system.entry.js.map +0 -1
- package/dist/stzh-components/p-07c0f4ce.entry.js +0 -2
- package/dist/stzh-components/p-07c0f4ce.entry.js.map +0 -1
- package/dist/stzh-components/p-09191103.system.entry.js +0 -2
- package/dist/stzh-components/p-09191103.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0e6889d6.system.entry.js +0 -8
- package/dist/stzh-components/p-0e6889d6.system.entry.js.map +0 -1
- package/dist/stzh-components/p-14e782cb.entry.js +0 -2
- package/dist/stzh-components/p-172ba9ba.entry.js +0 -8
- package/dist/stzh-components/p-172ba9ba.entry.js.map +0 -1
- package/dist/stzh-components/p-2907f1b5.entry.js +0 -2
- package/dist/stzh-components/p-2907f1b5.entry.js.map +0 -1
- package/dist/stzh-components/p-2f3add2f.system.entry.js +0 -2
- package/dist/stzh-components/p-2f3add2f.system.entry.js.map +0 -1
- package/dist/stzh-components/p-3290296f.entry.js +0 -2
- package/dist/stzh-components/p-3290296f.entry.js.map +0 -1
- package/dist/stzh-components/p-343694cb.system.entry.js +0 -2
- package/dist/stzh-components/p-343694cb.system.entry.js.map +0 -1
- package/dist/stzh-components/p-36b1004d.entry.js +0 -2
- package/dist/stzh-components/p-36b1004d.entry.js.map +0 -1
- package/dist/stzh-components/p-3d056a49.entry.js +0 -2
- package/dist/stzh-components/p-3d056a49.entry.js.map +0 -1
- package/dist/stzh-components/p-402ea6f4.entry.js +0 -2
- package/dist/stzh-components/p-402ea6f4.entry.js.map +0 -1
- package/dist/stzh-components/p-4468e033.system.entry.js +0 -2
- package/dist/stzh-components/p-4468e033.system.entry.js.map +0 -1
- package/dist/stzh-components/p-53b84310.system.entry.js +0 -2
- package/dist/stzh-components/p-53b84310.system.entry.js.map +0 -1
- package/dist/stzh-components/p-55061908.entry.js +0 -2
- package/dist/stzh-components/p-55061908.entry.js.map +0 -1
- package/dist/stzh-components/p-57ba4050.system.entry.js +0 -2
- package/dist/stzh-components/p-57ba4050.system.entry.js.map +0 -1
- package/dist/stzh-components/p-5aa96b49.system.entry.js +0 -2
- package/dist/stzh-components/p-5aa96b49.system.entry.js.map +0 -1
- package/dist/stzh-components/p-5c697491.js +0 -2
- package/dist/stzh-components/p-5c697491.js.map +0 -1
- package/dist/stzh-components/p-5d8ad1f4.system.entry.js +0 -2
- package/dist/stzh-components/p-5d8ad1f4.system.entry.js.map +0 -1
- package/dist/stzh-components/p-5ee43b56.entry.js +0 -2
- package/dist/stzh-components/p-62188444.entry.js +0 -2
- package/dist/stzh-components/p-62188444.entry.js.map +0 -1
- package/dist/stzh-components/p-693c611c.entry.js +0 -2
- package/dist/stzh-components/p-693c611c.entry.js.map +0 -1
- package/dist/stzh-components/p-72c69a2e.entry.js +0 -2
- package/dist/stzh-components/p-72c69a2e.entry.js.map +0 -1
- package/dist/stzh-components/p-78071d97.entry.js +0 -2
- package/dist/stzh-components/p-78071d97.entry.js.map +0 -1
- package/dist/stzh-components/p-7dc517db.entry.js +0 -2
- package/dist/stzh-components/p-7dc517db.entry.js.map +0 -1
- package/dist/stzh-components/p-80d581ac.system.entry.js.map +0 -1
- package/dist/stzh-components/p-82e886d4.entry.js +0 -2
- package/dist/stzh-components/p-82e886d4.entry.js.map +0 -1
- package/dist/stzh-components/p-9fe69be8.system.entry.js +0 -2
- package/dist/stzh-components/p-a003aa96.system.entry.js +0 -2
- package/dist/stzh-components/p-a003aa96.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a1c02179.entry.js +0 -2
- package/dist/stzh-components/p-a2bdc528.system.entry.js +0 -2
- package/dist/stzh-components/p-a2bdc528.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a2c076b8.system.entry.js +0 -2
- package/dist/stzh-components/p-a2c076b8.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a8ccb843.entry.js +0 -2
- package/dist/stzh-components/p-a8ccb843.entry.js.map +0 -1
- package/dist/stzh-components/p-ab199fd7.system.entry.js +0 -2
- package/dist/stzh-components/p-ab199fd7.system.entry.js.map +0 -1
- package/dist/stzh-components/p-b295cbcc.system.entry.js +0 -2
- package/dist/stzh-components/p-b295cbcc.system.entry.js.map +0 -1
- package/dist/stzh-components/p-b5cda655.entry.js +0 -2
- package/dist/stzh-components/p-b5cda655.entry.js.map +0 -1
- package/dist/stzh-components/p-b7d68fca.system.js +0 -2
- package/dist/stzh-components/p-b910e1b7.entry.js +0 -2
- package/dist/stzh-components/p-b910e1b7.entry.js.map +0 -1
- package/dist/stzh-components/p-c0f971f2.entry.js.map +0 -1
- package/dist/stzh-components/p-c901fe72.system.entry.js.map +0 -1
- package/dist/stzh-components/p-cb04774b.entry.js +0 -2
- package/dist/stzh-components/p-cb04774b.entry.js.map +0 -1
- package/dist/stzh-components/p-cc35e963.entry.js +0 -2
- package/dist/stzh-components/p-cc35e963.entry.js.map +0 -1
- package/dist/stzh-components/p-d3f7e7e2.system.entry.js +0 -2
- package/dist/stzh-components/p-d3f7e7e2.system.entry.js.map +0 -1
- package/dist/stzh-components/p-d4b7a303.system.js +0 -2
- package/dist/stzh-components/p-d4b7a303.system.js.map +0 -1
- package/dist/stzh-components/p-d5b4d345.entry.js.map +0 -1
- package/dist/stzh-components/p-df9460ae.system.entry.js +0 -2
- package/dist/stzh-components/p-e40d6e96.entry.js +0 -2
- package/dist/stzh-components/p-e40d6e96.entry.js.map +0 -1
- package/dist/stzh-components/p-ebcc510d.system.entry.js +0 -2
- package/dist/stzh-components/p-ebcc510d.system.entry.js.map +0 -1
- package/dist/stzh-components/p-ee7a68db.js +0 -2
- package/dist/stzh-components/p-ee7a68db.js.map +0 -1
- package/dist/stzh-components/p-f2d74491.system.entry.js +0 -2
- package/dist/stzh-components/p-f2d74491.system.entry.js.map +0 -1
- package/dist/stzh-components/p-f58c28ad.system.js +0 -2
- package/dist/stzh-components/p-f58c28ad.system.js.map +0 -1
- package/dist/stzh-components/p-fda1c56c.system.entry.js +0 -2
- package/dist/stzh-components/p-fda1c56c.system.entry.js.map +0 -1
- /package/dist/stzh-components/{p-f23f2408.system.entry.js.map → p-09445156.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-94a5e295.system.entry.js.map → p-0d302a14.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-39a4904e.system.entry.js.map → p-2614251e.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-799548c4.system.entry.js.map → p-27489e46.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-29ed53a9.system.entry.js.map → p-2dd983a9.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cc1a6af1.system.entry.js.map → p-2ec243e8.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cd0f7b10.entry.js.map → p-33da1a1c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6608126b.entry.js.map → p-4325de93.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-517af258.system.entry.js.map → p-444f765a.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7b297848.system.entry.js.map → p-50652c05.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a8c92707.system.entry.js.map → p-509b0e4c.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a2b49ad8.entry.js.map → p-52bcb3ab.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4cd7c872.system.entry.js.map → p-5af33d37.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8cb7e2da.system.entry.js.map → p-5bceda21.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-eca073df.system.entry.js.map → p-6ac4713f.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b8ad5f47.system.entry.js.map → p-709bb264.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3e5da137.entry.js.map → p-7463c7b5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-562f4dfa.entry.js.map → p-78f78684.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3dea2f45.entry.js.map → p-849ec693.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3aa5623c.entry.js.map → p-89562c7e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-45572515.entry.js.map → p-916f8386.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2d25bcc8.entry.js.map → p-979390db.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e2ff2ef4.entry.js.map → p-a0008fa2.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-05b9e4c2.system.entry.js.map → p-a26cd855.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b792ea2e.system.entry.js.map → p-a2d5846c.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6c219530.entry.js.map → p-a8e1b13c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4a299f84.entry.js.map → p-acbe3680.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-35cbff3f.entry.js.map → p-affbfe00.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7772c262.entry.js.map → p-b5531053.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f599025e.system.entry.js.map → p-c0aa52aa.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fefcd0e6.entry.js.map → p-d7a7560a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-87b4549c.system.entry.js.map → p-dad99bd2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b05c240b.system.entry.js.map → p-e16ee236.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bcd5b20e.entry.js.map → p-e7454abb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-6d097e82.system.entry.js.map → p-ebe979a3.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9b7d4e8d.entry.js.map → p-ef4c12ac.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3cb43903.entry.js.map → p-f0ac9730.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8d695d3e.system.entry.js.map → p-f65b5145.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b82351f0.system.entry.js.map → p-f665752d.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c3b260a1.entry.js.map → p-fb12ec57.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-52e52b49.entry.js.map → p-fd97e87d.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as s,a as e,g as r}from"./p-9e02896c.js";import{f as o}from"./p-25a09313.js";import{g as i}from"./p-fc339100.js";import{b as h}from"./p-e787179c.js";const a=".sc-stzh-share-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-share-h{display:none}.sc-stzh-share-h *.sc-stzh-share,.sc-stzh-share-h *.sc-stzh-share::before,.sc-stzh-share-h *.sc-stzh-share::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-share__list.sc-stzh-share{list-style:none;margin:0;padding:0;display:-ms-flexbox;display:flex}.stzh-share__item.sc-stzh-share:not(:last-child){margin-right:var(--stzh-space-small)}.stzh-share__icon.sc-stzh-share{--size:var(--stzh-icon-size-xsmall)}.stzh-share__button.sc-stzh-share{color:var(--stzh-color-white);border-radius:var(--stzh-button-border-radius);display:grid;place-items:center;width:2.875rem;height:1.625rem}.stzh-share__button.is-facebook.sc-stzh-share{background-color:#3b5998}.stzh-share__button.is-facebook.sc-stzh-share:hover{background-color:#23355B}.stzh-share__button.is-twitter.sc-stzh-share{background-color:#1da1f2}.stzh-share__button.is-twitter.sc-stzh-share:hover{background-color:#116091}.stzh-share__button.is-linkedin.sc-stzh-share{background-color:#1485BD}.stzh-share__button.is-linkedin.sc-stzh-share:hover{background-color:#0C4F71}.stzh-share__button.is-xing.sc-stzh-share{background-color:#0E7574}.stzh-share__button.is-xing.sc-stzh-share:hover{background-color:#084645}.stzh-share__button.is-mail.sc-stzh-share{background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-share__button.is-mail.sc-stzh-share:hover{background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}";const n=256;const c=class{constructor(s){t(this,s);this._services=[];this.openPopup=(t,s)=>{s.preventDefault();window.open(t,"_blank","width=600,height=460")};this.localization=undefined;this.url=window.location.href;this.services=["facebook","twitter","linkedin","xing","mail"]}servicesWatcher(t){if(typeof t==="string"){this._services=JSON.parse(t)}else{this._services=t}}async componentWillLoad(){this.servicesWatcher(this.services);if(!this.localization){this.localization=await o(this.element,"share")}}render(){var t;const r={"stzh-share":true};const o=encodeURIComponent(this.url);const a=encodeURIComponent(this.localization.mailSubject);const c=encodeURIComponent((t=this.localization.mailBody)===null||t===void 0?void 0:t.replace(/\{shareUrl\}/gi,this.url));const l=encodeURIComponent(document.title);const u=encodeURIComponent(h(l,n));const d=encodeURIComponent(i("description"));const z={facebook:{popup:true,blank:true,url:`https://www.facebook.com/sharer/sharer.php?u=${o}`,text:this.localization.shareFacebook,icon:"facebook-filled"},twitter:{popup:true,blank:true,url:`https://twitter.com/intent/tweet?text=${u}&url=${o}`,text:this.localization.shareTwitter,icon:"twitter-filled"},linkedin:{popup:true,blank:true,url:`https://www.linkedin.com/shareArticle?mini=true&summary=${d}&title=${l}&url=${o}`,text:this.localization.shareLinkedin,icon:"linkedin-filled"},xing:{popup:true,blank:true,url:`https://www.xing.com/spi/shares/new?url=${o}`,text:this.localization.shareXing,icon:"xing-filled"},mail:{popup:false,blank:false,url:`mailto:?subject=${a}&body=${c}`,text:this.localization.shareMail,icon:"mail-filled"}};return s(e,null,s("div",{class:r},s("ul",{class:"stzh-share__list"},this._services.map((t=>s("li",{class:"stzh-share__item"},s("stzh-tooltip",{content:z[t].text},s("a",{class:`stzh-share__button is-${t}`,href:z[t].url,"aria-label":z[t].text,rel:z[t].blank?"nofollow noopener noreferrer":"nofollow",target:z[t].blank?"_blank":"_self",onClick:z[t].popup?s=>this.openPopup(z[t].url,s):null,"s-object-id":z[t].text},s("stzh-icon",{class:"stzh-share__icon",name:z[t].icon})))))))))}get element(){return r(this)}static get watchers(){return{services:["servicesWatcher"]}}};c.style=a;export{c as stzh_share};
|
|
2
|
+
//# sourceMappingURL=p-2705720b.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stzhShareCss","MAX_TWEET_LENGTH","StzhShare","this","_services","openPopup","url","event","preventDefault","window","open","location","href","servicesWatcher","newValue","JSON","parse","async","services","localization","fetchTranslations","element","render","classes","shareUrl","encodeURIComponent","mailSubject","mailBody","_a","replace","title","document","twitterTitle","abbreviateText","description","getMeta","serviceData","facebook","popup","blank","text","shareFacebook","icon","twitter","shareTwitter","linkedin","shareLinkedin","xing","shareXing","mail","shareMail","h","Host","class","map","service","content","rel","target","onClick","e","name"],"sources":["./src/components/stzh-share/stzh-share.scss?tag=stzh-share&encapsulation=scoped","./src/components/stzh-share/stzh-share.tsx"],"sourcesContent":[":host {\n}\n\n$shareColorFacebook: #3b5998;\n$shareColorFacebookHover: #23355B;\n$shareColorTwitter: #1da1f2;\n$shareColorTwitterHover: #116091;\n$shareColorLinkedin: #1485BD;\n$shareColorLinkedinHover: #0C4F71;\n$shareColorXing: #0E7574;\n$shareColorXingHover: #084645;\n\n.stzh-share {\n &__list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n }\n\n &__item {\n &:not(:last-child) {\n margin-right: space('small');\n }\n }\n\n &__icon {\n --size: #{iconSize('xsmall')};\n }\n\n &__button {\n color: $colorWhite;\n border-radius: $buttonBorderRadius;\n display: grid;\n place-items: center;\n width: 46px;\n height: 26px;\n\n &.is-facebook {\n background-color: $shareColorFacebook;\n\n &:hover {\n background-color: $shareColorFacebookHover;\n }\n }\n\n &.is-twitter {\n background-color: $shareColorTwitter;\n\n &:hover {\n background-color: $shareColorTwitterHover;\n }\n }\n\n &.is-linkedin {\n background-color: $shareColorLinkedin;\n\n &:hover {\n background-color: $shareColorLinkedinHover;\n }\n }\n\n &.is-xing {\n background-color: $shareColorXing;\n\n &:hover {\n background-color: $shareColorXingHover;\n }\n }\n\n &.is-mail {\n background-color: $colorPrimary;\n\n &:hover {\n background-color: $colorPrimaryHover;\n }\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Watch\n} from \"@stencil/core\";\n\nimport { ShareService } from \"../../index\";\nimport { fetchTranslations } from \"../../utils/translation-utils\";\nimport { StzhShareLocalizedText } from \"./stzh-share.localization\"\nimport { getMeta } from '../../utils/utils';\nimport { abbreviateText } from '../../utils/string-utils';\n\n// 280 - URL (always 24) = 256\nconst MAX_TWEET_LENGTH = 256;\n\n/**\n */\n@Component({\n tag: \"stzh-share\",\n styleUrl: \"stzh-share.scss\",\n scoped: true\n})\nexport class StzhShare {\n /** Translation strings */\n @Prop() localization: StzhShareLocalizedText;\n\n /** URL of current site (uses full URL by default) */\n @Prop() url: string = window.location.href;\n\n /**\n * Array of enabled share buttons.\n * Possible services: `facebook` / `twitter` / `linkedin` / `xing` / `mail`\n */\n @Prop() services: ShareService[] | string = [\n \"facebook\", \"twitter\", \"linkedin\", \"xing\", \"mail\"\n ];\n\n private _services: ShareService[] = [];\n\n @Watch(\"services\")\n servicesWatcher(newValue: ShareService[] | string) {\n if (typeof newValue === \"string\") {\n this._services = JSON.parse(newValue);\n } else {\n this._services = newValue;\n }\n }\n\n @Element() element: HTMLStzhShareElement;\n\n private openPopup = (url, event) => {\n event.preventDefault();\n window.open(url, \"_blank\", \"width=600,height=460\");\n }\n\n async componentWillLoad() {\n this.servicesWatcher(this.services);\n\n if (!this.localization) {\n this.localization = await fetchTranslations(this.element, \"share\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-share\": true\n };\n\n const shareUrl = encodeURIComponent(this.url);\n const mailSubject = encodeURIComponent(this.localization.mailSubject);\n const mailBody = encodeURIComponent(\n this.localization.mailBody?.replace(/\\{shareUrl\\}/gi, this.url)\n );\n\n const title = encodeURIComponent(document.title);\n const twitterTitle = encodeURIComponent(abbreviateText(title, MAX_TWEET_LENGTH));\n const description = encodeURIComponent(getMeta(\"description\"));\n\n const serviceData = {\n \"facebook\": {\n popup: true,\n blank: true,\n url: `https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`,\n text: this.localization.shareFacebook,\n icon: \"facebook-filled\"\n },\n \"twitter\": {\n popup: true,\n blank: true,\n url: `https://twitter.com/intent/tweet?text=${twitterTitle}&url=${shareUrl}`,\n text: this.localization.shareTwitter,\n icon: \"twitter-filled\"\n },\n \"linkedin\": {\n popup: true,\n blank: true,\n url: `https://www.linkedin.com/shareArticle?mini=true&summary=${description}&title=${title}&url=${shareUrl}`,\n text: this.localization.shareLinkedin,\n icon: \"linkedin-filled\"\n },\n \"xing\": {\n popup: true,\n blank: true,\n url: `https://www.xing.com/spi/shares/new?url=${shareUrl}`,\n text: this.localization.shareXing,\n icon: \"xing-filled\"\n },\n \"mail\": {\n popup: false,\n blank: false,\n url: `mailto:?subject=${mailSubject}&body=${mailBody}`,\n text: this.localization.shareMail,\n icon: \"mail-filled\"\n }\n };\n\n return (\n <Host>\n <div class={classes}>\n <ul class=\"stzh-share__list\">\n {this._services.map((service) =>\n <li class=\"stzh-share__item\">\n <stzh-tooltip content={serviceData[service].text}>\n <a\n class={`stzh-share__button is-${service}`}\n href={serviceData[service].url}\n aria-label={serviceData[service].text}\n rel={serviceData[service].blank ? \"nofollow noopener noreferrer\" : \"nofollow\"}\n target={serviceData[service].blank ? \"_blank\" : \"_self\"}\n onClick={serviceData[service].popup ? (e) => this.openPopup(serviceData[service].url, e) : null}\n s-object-id={serviceData[service].text}\n >\n <stzh-icon class=\"stzh-share__icon\" name={serviceData[service].icon}></stzh-icon>\n </a>\n </stzh-tooltip>\n </li>\n )}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"qKAAA,MAAMA,EAAe,ixDCgBrB,MAAMC,EAAmB,I,MASZC,EAAS,M,yBAeZC,KAAAC,UAA4B,GAa5BD,KAAAE,UAAY,CAACC,EAAKC,KACxBA,EAAMC,iBACNC,OAAOC,KAAKJ,EAAK,SAAU,uBAAuB,E,qCAzB9BG,OAAOE,SAASC,K,cAMM,CAC1C,WAAY,UAAW,WAAY,OAAQ,O,CAM7CC,gBAAgBC,GACd,UAAWA,IAAa,SAAU,CAChCX,KAAKC,UAAYW,KAAKC,MAAMF,E,KACvB,CACLX,KAAKC,UAAYU,C,EAWrBG,0BACEd,KAAKU,gBAAgBV,KAAKe,UAE1B,IAAKf,KAAKgB,aAAc,CACtBhB,KAAKgB,mBAAqBC,EAAkBjB,KAAKkB,QAAS,Q,EAI9DC,S,MACE,MAAMC,EAAU,CACd,aAAc,MAGhB,MAAMC,EAAWC,mBAAmBtB,KAAKG,KACzC,MAAMoB,EAAcD,mBAAmBtB,KAAKgB,aAAaO,aACzD,MAAMC,EAAWF,oBACfG,EAAAzB,KAAKgB,aAAaQ,YAAQ,MAAAC,SAAA,SAAAA,EAAEC,QAAQ,iBAAkB1B,KAAKG,MAG7D,MAAMwB,EAAQL,mBAAmBM,SAASD,OAC1C,MAAME,EAAeP,mBAAmBQ,EAAeH,EAAO7B,IAC9D,MAAMiC,EAAcT,mBAAmBU,EAAQ,gBAE/C,MAAMC,EAAc,CAClBC,SAAY,CACVC,MAAO,KACPC,MAAO,KACPjC,IAAK,gDAAgDkB,IACrDgB,KAAMrC,KAAKgB,aAAasB,cACxBC,KAAM,mBAERC,QAAW,CACTL,MAAO,KACPC,MAAO,KACPjC,IAAK,yCAAyC0B,SAAoBR,IAClEgB,KAAMrC,KAAKgB,aAAayB,aACxBF,KAAM,kBAERG,SAAY,CACVP,MAAO,KACPC,MAAO,KACPjC,IAAK,2DAA2D4B,WAAqBJ,SAAaN,IAClGgB,KAAMrC,KAAKgB,aAAa2B,cACxBJ,KAAM,mBAERK,KAAQ,CACNT,MAAO,KACPC,MAAO,KACPjC,IAAK,2CAA2CkB,IAChDgB,KAAMrC,KAAKgB,aAAa6B,UACxBN,KAAM,eAERO,KAAQ,CACNX,MAAO,MACPC,MAAO,MACPjC,IAAK,mBAAmBoB,UAAoBC,IAC5Ca,KAAMrC,KAAKgB,aAAa+B,UACxBR,KAAM,gBAIV,OACES,EAACC,EAAI,KACHD,EAAA,OAAKE,MAAO9B,GACV4B,EAAA,MAAIE,MAAM,oBACPlD,KAAKC,UAAUkD,KAAKC,GACnBJ,EAAA,MAAIE,MAAM,oBACRF,EAAA,gBAAcK,QAASpB,EAAYmB,GAASf,MAC1CW,EAAA,KACEE,MAAO,yBAAyBE,IAChC3C,KAAMwB,EAAYmB,GAASjD,IAAG,aAClB8B,EAAYmB,GAASf,KACjCiB,IAAKrB,EAAYmB,GAAShB,MAAQ,+BAAiC,WACnEmB,OAAQtB,EAAYmB,GAAShB,MAAQ,SAAW,QAChDoB,QAASvB,EAAYmB,GAASjB,MAASsB,GAAMzD,KAAKE,UAAU+B,EAAYmB,GAASjD,IAAKsD,GAAK,KAAI,cAClFxB,EAAYmB,GAASf,MAElCW,EAAA,aAAWE,MAAM,mBAAmBQ,KAAMzB,EAAYmB,GAASb,c"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,o,i){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function s(t){try{a(i.next(t))}catch(t){r(t)}}function l(t){try{a(i["throw"](t))}catch(t){r(t)}}function a(t){t.done?o(t.value):n(t.value).then(s,l)}a((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(t){return function(e){return a([t,e])}}function a(l){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(o=0)),o)try{if(i=1,n&&(r=l[0]&2?n["return"]:l[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;if(n=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;n=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(l[0]===6&&o.label<r[1]){o.label=r[1];r=l;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(l);break}if(r[2])o.ops.pop();o.trys.pop();continue}l=e.call(t,o)}catch(t){l=[6,t];n=0}finally{i=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-a408bfba.system.js","./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,o,i){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function s(t){try{a(i.next(t))}catch(t){r(t)}}function l(t){try{a(i["throw"](t))}catch(t){r(t)}}function a(t){t.done?o(t.value):n(t.value).then(s,l)}a((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(t){return function(e){return a([t,e])}}function a(l){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(o=0)),o)try{if(i=1,n&&(r=l[0]&2?n["return"]:l[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;if(n=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;n=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(l[0]===6&&o.label<r[1]){o.label=r[1];r=l;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(l);break}if(r[2])o.ops.pop();o.trys.pop();continue}l=e.call(t,o)}catch(t){l=[6,t];n=0}finally{i=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-a408bfba.system.js","./p-22a2f4c1.system.js"],(function(t){"use strict";var e,o,i,n,r,s,l,a;return{setters:[function(t){e=t.r;o=t.h;i=t.F;n=t.a;r=t.g},function(t){s=t.f},function(t){l=t.s;a=t.h}],execute:function(){var h=":host{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}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-footer{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;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);background-color:var(--stzh-color-white);padding:var(--stzh-space-xlarge) 0;}.stzh-footer[hidden]{display:none}.stzh-footer *,.stzh-footer *::before,.stzh-footer *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-footer [slot=logo],.stzh-footer [slot=logo] img{display:block;height:2.375rem}.stzh-footer [slot=info]{margin:0}.stzh-footer stzh-link[slot=info],.stzh-footer stzh-link[slot=link],.stzh-footer stzh-link[slot=social-link],.stzh-footer stzh-link.stzh-footer__link{--color:var(--stzh-base-color);--text-decoration-line:none;--icon-wrapper-height:auto;--icon-size:var(--stzh-icon-size-large)}.stzh-footer stzh-link[slot=info] .stzh-link,.stzh-footer stzh-link[slot=link] .stzh-link,.stzh-footer stzh-link[slot=social-link] .stzh-link,.stzh-footer stzh-link.stzh-footer__link .stzh-link{font-size:inherit}.stzh-footer stzh-link[slot=social-link]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-footer stzh-link[slot=social-link]{margin-bottom:0;margin-right:var(--stzh-space-large)}}.stzh-footer stzh-link[slot=info]:not(:last-child){margin-bottom:var(--stzh-space-small)}.stzh-footer stzh-link[slot=link]:not(:last-child){margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 800px){.stzh-footer stzh-link[slot=link]:not(:last-child){margin-bottom:0;margin-right:var(--stzh-space-large)}}.stzh-footer__wrapper{margin:0 1.25rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 600px){.stzh-footer__wrapper{margin:0 2rem}}@media screen and (min-width: 1024px){.stzh-footer__wrapper{margin:0 2.5rem}}@media screen and (min-width: 1260px){.stzh-footer__wrapper{margin:0 5.5rem}}@media screen and (min-width: 1440px){.stzh-footer__wrapper{margin:0 auto;width:78.75rem}}@media screen and (min-width: 1024px){.stzh-footer__wrapper{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}}.stzh-footer__logo:empty,.stzh-footer__info:empty,.stzh-footer__social-link:empty,.stzh-footer__links:empty{display:none}.stzh-footer__logo:not(:empty){margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-footer__logo:not(:empty){margin-bottom:0}}.stzh-footer__info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}.stzh-footer__info:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-footer__info:not(:empty){margin-bottom:0}}@media screen and (min-width: 1024px){.stzh-footer__logo,.stzh-footer__social-link{margin-right:auto}}@media screen and (min-width: 1024px){.stzh-footer__links{margin-left:auto}}.stzh-footer__links,.stzh-footer__link-list,.stzh-footer slot-fb[name=link]:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 800px){.stzh-footer__links,.stzh-footer__link-list,.stzh-footer slot-fb[name=link]:not([hidden]){-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}.stzh-footer__copyright:not(:empty)+.stzh-footer__link-list:not(:empty){margin-top:var(--stzh-space-small)}@media screen and (min-width: 800px){.stzh-footer__copyright:not(:empty)+.stzh-footer__link-list:not(:empty){margin-top:0;margin-left:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-footer--has-logo .stzh-footer__wrapper,.stzh-footer--has-info .stzh-footer__wrapper{-ms-flex-align:start;align-items:flex-start}}.stzh-footer--has-border{border-top:0.0625rem solid var(--stzh-base-border-color)}";var f=t("stzh_footer",function(){function t(t){var o=this;e(this,t);this.init=function(){var t=o.element.querySelector('stzh-link[slot="social-link"]');var e=o.element.querySelectorAll('stzh-link[slot="link"]');if(t){l(t,{icon:"social-media"})}e.forEach((function(t){t.setAttribute("role","listitem")}))};this.localization=undefined;this.copyright=undefined;this.variant="default";this.mainUrl="https://www.stadt-zuerich.ch";this.withBorder=false}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(o){switch(o.label){case 0:if(typeof this.copyright==="undefined"){t=new Date;this.copyright="© ".concat(t.getFullYear()," Stadt Zürich")}if(!!this.localization)return[3,2];e=this;return[4,s(this.element,"footer")];case 1:e.localization=o.sent();o.label=2;case 2:return[2]}}))}))};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};t.prototype.render=function(){var t=a(this.element,"logo");var e=a(this.element,"info");var r=a(this.element,"link");var s=a(this.element,"social-link");var l={"stzh-footer":true,"stzh-footer--has-border":this.withBorder,"stzh-footer--has-logo":t,"stzh-footer--has-info":e,"stzh-footer--has-links":r,"stzh-footer--has-social-link":s};return o(n,null,o("footer",{class:l},o("div",{class:"stzh-footer__wrapper"},o("div",{class:"stzh-footer__social-link"},o("slot",{name:"social-link"})),o("div",{class:"stzh-footer__logo"},o("slot",{name:"logo"})),o("div",{class:"stzh-footer__info"},o("slot",{name:"info"})),o("div",{class:"stzh-footer__links"},this.copyright&&o("div",{class:"stzh-footer__copyright"},this.copyright),o("div",{class:"stzh-footer__link-list",role:"list"},o("slot",{name:"link"},this.variant==="egov"&&o(i,null,o("stzh-link",{slot:"link",target:"_blank",class:"stzh-footer__link",href:"".concat(this.mainUrl,"/").concat(this.localization.legalNoticeUrl)},this.localization.legalNoticeText),o("stzh-link",{slot:"link",target:"_blank",class:"stzh-footer__link",href:"".concat(this.mainUrl,"/").concat(this.localization.imprintUrl)},this.localization.imprintText),o("stzh-link",{class:"stzh-footer__link",slot:"link",target:"_blank",href:"".concat(this.mainUrl,"/").concat(this.localization.accessibilityUrl)},this.localization.accessibilityText))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());f.style=h}}}));
|
|
2
|
+
//# sourceMappingURL=p-27489e46.system.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,l){function a(t){try{r(n.next(t))}catch(t){l(t)}}function o(t){try{r(n["throw"](t))}catch(t){l(t)}}function r(t){t.done?e(t.value):s(t.value).then(a,o)}r((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,s,l,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(i){return r([t,i])}}function r(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(e=0)),e)try{if(n=1,s&&(l=o[0]&2?s["return"]:o[0]?s["throw"]||((l=s["return"])&&l.call(s),0):s.next)&&!(l=l.call(s,o[1])).done)return l;if(s=0,l)o=[o[0]&2,l.value];switch(o[0]){case 0:case 1:l=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;s=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(l=e.trys,l=l.length>0&&l[l.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!l||o[1]>l[0]&&o[1]<l[3])){e.label=o[1];break}if(o[0]===6&&e.label<l[1]){e.label=l[1];l=o;break}if(l&&e.label<l[2]){e.label=l[2];e.ops.push(o);break}if(l[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];s=0}finally{n=l=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-d4b7a303.system.js","./p-a408bfba.system.js"],(function(t){"use strict";var i,e,n,s,l,a,o,r;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.F;l=t.a;a=t.g},function(t){o=t.h},function(t){r=t.f}],execute:function(){var h='@charset "UTF-8";.sc-stzh-link-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-link-h{display:none}.sc-stzh-link-h *.sc-stzh-link,.sc-stzh-link-h *.sc-stzh-link::before,.sc-stzh-link-h *.sc-stzh-link::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-link-h{--color:var(--stzh-link-color);--text-decoration-line:underline;--icon-size:var(--stzh-icon-size-medium);--icon-wrapper-height:var(--stzh-link-icon-wrapper-height);--hover-color:var(--stzh-link-hover-color);--hover-text-decoration-line:underline;color:var(--color);display:inline-block}.sc-stzh-link-h .sc-stzh-link-s>stzh-text{--color:initial}[fullwidth].sc-stzh-link-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-link-h{--icon-size:var(--stzh-icon-size-small)}[variant=secondary].sc-stzh-link-h{--color:var(--stzh-base-color)}[active].sc-stzh-link-h:not([active=false]){--color:var(--hover-color)}[disabled].sc-stzh-link-h:not([disabled=false]){--color:var(--stzh-color-grey25);--hover-color:var(--stzh-color-grey25)}.sc-stzh-link-h .sc-stzh-link-s>stzh-icon,.stzh-link__icon.sc-stzh-link{--size:var(--icon-size)}.stzh-link.sc-stzh-link{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);font-family:inherit;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);cursor:pointer;width:100%;-webkit-text-decoration-line:none;text-decoration-line:none;background-color:transparent;padding:0;border-radius:var(--stzh-button-border-radius);text-align:left}@media screen and (min-width: 1024px){.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-link.sc-stzh-link:hover{color:var(--hover-color)}.stzh-link.sc-stzh-link:hover .stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--hover-text-decoration-line);text-decoration-line:var(--hover-text-decoration-line)}.stzh-link__vhidden.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link__inner.sc-stzh-link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}.stzh-link__icon-wrapper.sc-stzh-link{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:var(--icon-wrapper-height)}.stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--text-decoration-line);text-decoration-line:var(--text-decoration-line)}.stzh-link__icon-wrapper.sc-stzh-link:not(:empty)+.stzh-link__text.sc-stzh-link:not(:empty),.stzh-link__text.sc-stzh-link:not(:empty)+.stzh-link__icon-wrapper.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-xxsmall)}.stzh-link__badge.sc-stzh-link{position:absolute;z-index:1;top:0;right:0}.stzh-link--has-icon-only.sc-stzh-link .stzh-link__text.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link--badge-position-link.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:static}.stzh-link__badge.sc-stzh-link,.stzh-link--badge-position-link.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xxsmall) * -1);right:calc(var(--stzh-space-large) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:relative}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link+.stzh-link__text.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-small)}.stzh-link--size-small.sc-stzh-link{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-link--size-inherit.sc-stzh-link{font-size:inherit;line-height:inherit;letter-spacing:inherit}.stzh-link--align-left.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:start;justify-content:flex-start}.stzh-link--align-right.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:end;justify-content:flex-end}.stzh-link--align-center.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:center;justify-content:center}.stzh-link--align-space-between.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:justify;justify-content:space-between}.stzh-link--is-disabled.sc-stzh-link{cursor:not-allowed}';var c=t("stzh_link",function(){function t(t){var n=this;i(this,t);this.stzhFocus=e(this,"stzhFocus",7);this.stzhBlur=e(this,"stzhBlur",7);this.focusedByInput=false;this.onRootFocus=function(){if(!n.focusedByInput){n.setFocus()}n.focusedByInput=false};this.onFocus=function(t){n.focusedByInput=true;var i=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhFocus.emit({component:"stzh-link",originalEvent:t})};this.onBlur=function(t){var i=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhBlur.emit({component:"stzh-link",originalEvent:t})};this.localization=undefined;this.icon="";this.iconPosition="left";this.size="default";this.href="";this.rel=undefined;this.target="";this.download=undefined;this.type="button";this.variant="default";this.fullwidth=false;this.textAlign="default";this.badge="";this.badgeType="default";this.badgeEmpty=false;this.badgePosition="icon";this.disabled=false;this.active=false;this.iconOnly=false;this.label="";this.linkAccesskey=undefined;this.a11yLabel=undefined;this.a11yDescribedby="";this.a11yExpanded=undefined;this.a11yDisabled=undefined;this.a11yControls=undefined;this.a11yTabindex=undefined;this.analyticsId=undefined}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.link.focus();return[2]}))}))};t.prototype.renderIcon=function(){return n("div",{class:"stzh-link__icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-link__icon",name:this.icon}):n("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.renderContent=function(){var t=this;return n("div",{class:"stzh-link__text"},this.rel&&this.rel.includes("external")&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.externalLinkLabel),this.download&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.downloadLinkLabel),n("div",{ref:function(i){return t.text=i}},this.label?this.label:n("slot",null)))};t.prototype.renderInner=function(t){return n(s,null,n("div",{class:"stzh-link__inner"},this.iconPosition==="left"&&this.renderIcon(),this.renderContent(),this.iconPosition==="right"&&this.renderIcon()),(this.badge||this.badgeEmpty)&&!t&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,r(this.element,"link")];case 1:t.localization=i.sent();i.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){t.link.setAttribute("s-object-id",t.analyticsId||t.text.innerText)}))};t.prototype.render=function(){var t;var i=this;var e=o(this.element,"icon")||!!this.icon;var s=(t={"stzh-link":true,"stzh-link--has-icon":e,"stzh-link--has-icon-only":this.iconOnly,"stzh-link--has-badge":!!this.badge,"stzh-link--is-fullwidth":this.fullwidth,"stzh-link--is-disabled":this.disabled,"stzh-link--is-active":this.active},t["stzh-link--badge-position-".concat(this.badgePosition)]=!!this.badgePosition,t["stzh-link--align-".concat(this.textAlign)]=!!this.textAlign,t["stzh-link--size-".concat(this.size)]=!!this.size,t["stzh-link--".concat(this.variant)]=!!this.variant,t);return n(l,{tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},this.href?n("a",{ref:function(t){return i.link=t},href:this.disabled?null:this.href,download:this.download,rel:this.rel,target:this.target,class:s,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel,"aria-describedby":this.a11yDescribedby,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)):n("button",{ref:function(t){return i.link=t},class:s,type:this.type,disabled:this.disabled,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel,"aria-describedby":this.a11yDescribedby,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());c.style=h}}}));
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,l){function a(t){try{r(n.next(t))}catch(t){l(t)}}function o(t){try{r(n["throw"](t))}catch(t){l(t)}}function r(t){t.done?e(t.value):s(t.value).then(a,o)}r((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,s,l,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(i){return r([t,i])}}function r(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(e=0)),e)try{if(n=1,s&&(l=o[0]&2?s["return"]:o[0]?s["throw"]||((l=s["return"])&&l.call(s),0):s.next)&&!(l=l.call(s,o[1])).done)return l;if(s=0,l)o=[o[0]&2,l.value];switch(o[0]){case 0:case 1:l=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;s=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(l=e.trys,l=l.length>0&&l[l.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!l||o[1]>l[0]&&o[1]<l[3])){e.label=o[1];break}if(o[0]===6&&e.label<l[1]){e.label=l[1];l=o;break}if(l&&e.label<l[2]){e.label=l[2];e.ops.push(o);break}if(l[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];s=0}finally{n=l=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-22a2f4c1.system.js","./p-a408bfba.system.js"],(function(t){"use strict";var i,e,n,s,l,a,o,r;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.F;l=t.a;a=t.g},function(t){o=t.h},function(t){r=t.f}],execute:function(){var h='@charset "UTF-8";.sc-stzh-link-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-link-h{display:none}.sc-stzh-link-h *.sc-stzh-link,.sc-stzh-link-h *.sc-stzh-link::before,.sc-stzh-link-h *.sc-stzh-link::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-link-h{--color:var(--stzh-link-color);--text-decoration-line:underline;--icon-size:var(--stzh-icon-size-medium);--icon-wrapper-height:var(--stzh-link-icon-wrapper-height);--hover-color:var(--stzh-link-hover-color);--hover-text-decoration-line:underline;color:var(--color);display:inline-block}.sc-stzh-link-h .sc-stzh-link-s>stzh-text{--color:initial}[fullwidth].sc-stzh-link-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-link-h{--icon-size:var(--stzh-icon-size-small)}[variant=secondary].sc-stzh-link-h{--color:var(--stzh-base-color)}[active].sc-stzh-link-h:not([active=false]){--color:var(--hover-color)}[disabled].sc-stzh-link-h:not([disabled=false]){--color:var(--stzh-color-grey25);--hover-color:var(--stzh-color-grey25)}.sc-stzh-link-h .sc-stzh-link-s>stzh-icon,.stzh-link__icon.sc-stzh-link{--size:var(--icon-size)}.stzh-link.sc-stzh-link{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);font-family:inherit;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);cursor:pointer;width:100%;-webkit-text-decoration-line:none;text-decoration-line:none;background-color:transparent;padding:0;border-radius:var(--stzh-button-border-radius);text-align:left}@media screen and (min-width: 1024px){.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-link.sc-stzh-link:hover{color:var(--hover-color)}.stzh-link.sc-stzh-link:hover .stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--hover-text-decoration-line);text-decoration-line:var(--hover-text-decoration-line)}.stzh-link__vhidden.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link__inner.sc-stzh-link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}.stzh-link__icon-wrapper.sc-stzh-link{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:var(--icon-wrapper-height)}.stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--text-decoration-line);text-decoration-line:var(--text-decoration-line)}.stzh-link__icon-wrapper.sc-stzh-link:not(:empty)+.stzh-link__text.sc-stzh-link:not(:empty),.stzh-link__text.sc-stzh-link:not(:empty)+.stzh-link__icon-wrapper.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-xxsmall)}.stzh-link__badge.sc-stzh-link{position:absolute;z-index:1;top:0;right:0}.stzh-link--has-icon-only.sc-stzh-link .stzh-link__text.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link--badge-position-link.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:static}.stzh-link__badge.sc-stzh-link,.stzh-link--badge-position-link.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xxsmall) * -1);right:calc(var(--stzh-space-large) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:relative}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link+.stzh-link__text.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-small)}.stzh-link--size-small.sc-stzh-link{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-link--size-inherit.sc-stzh-link{font-size:inherit;line-height:inherit;letter-spacing:inherit}.stzh-link--align-left.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:start;justify-content:flex-start}.stzh-link--align-right.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:end;justify-content:flex-end}.stzh-link--align-center.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:center;justify-content:center}.stzh-link--align-space-between.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:justify;justify-content:space-between}.stzh-link--is-disabled.sc-stzh-link{cursor:not-allowed}';var c=t("stzh_link",function(){function t(t){var n=this;i(this,t);this.stzhFocus=e(this,"stzhFocus",7);this.stzhBlur=e(this,"stzhBlur",7);this.focusedByInput=false;this.onRootFocus=function(){if(!n.focusedByInput){n.setFocus()}n.focusedByInput=false};this.onFocus=function(t){n.focusedByInput=true;var i=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhFocus.emit({component:"stzh-link",originalEvent:t})};this.onBlur=function(t){var i=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhBlur.emit({component:"stzh-link",originalEvent:t})};this.localization=undefined;this.icon="";this.iconPosition="left";this.size="default";this.href="";this.rel=undefined;this.target="";this.download=undefined;this.type="button";this.variant="default";this.fullwidth=false;this.textAlign="default";this.badge="";this.badgeType="default";this.badgeEmpty=false;this.badgePosition="icon";this.disabled=false;this.active=false;this.iconOnly=false;this.label="";this.linkAccesskey=undefined;this.a11yLabel=undefined;this.a11yDescribedby="";this.a11yExpanded=undefined;this.a11yDisabled=undefined;this.a11yControls=undefined;this.a11yTabindex=undefined;this.analyticsId=undefined}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.link.focus();return[2]}))}))};t.prototype.renderIcon=function(){return n("div",{class:"stzh-link__icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-link__icon",name:this.icon}):n("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.renderContent=function(){var t=this;return n("div",{class:"stzh-link__text"},this.rel&&this.rel.includes("external")&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.externalLinkLabel),this.download&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.downloadLinkLabel),n("div",{ref:function(i){return t.text=i}},this.label?this.label:n("slot",null)))};t.prototype.renderInner=function(t){return n(s,null,n("div",{class:"stzh-link__inner"},this.iconPosition==="left"&&this.renderIcon(),this.renderContent(),this.iconPosition==="right"&&this.renderIcon()),(this.badge||this.badgeEmpty)&&!t&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,r(this.element,"link")];case 1:t.localization=i.sent();i.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){t.link.setAttribute("s-object-id",t.analyticsId||t.text.innerText)}))};t.prototype.render=function(){var t;var i=this;var e=o(this.element,"icon")||!!this.icon;var s=(t={"stzh-link":true,"stzh-link--has-icon":e,"stzh-link--has-icon-only":this.iconOnly,"stzh-link--has-badge":!!this.badge,"stzh-link--is-fullwidth":this.fullwidth,"stzh-link--is-disabled":this.disabled,"stzh-link--is-active":this.active},t["stzh-link--badge-position-".concat(this.badgePosition)]=!!this.badgePosition,t["stzh-link--align-".concat(this.textAlign)]=!!this.textAlign,t["stzh-link--size-".concat(this.size)]=!!this.size,t["stzh-link--".concat(this.variant)]=!!this.variant,t);return n(l,{tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},this.href?n("a",{ref:function(t){return i.link=t},href:this.disabled?null:this.href,download:this.download,rel:this.rel,target:this.target,class:s,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel||null,"aria-describedby":this.a11yDescribedby||null,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls||null,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)):n("button",{ref:function(t){return i.link=t},class:s,type:this.type,disabled:this.disabled,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel||null,"aria-describedby":this.a11yDescribedby||null,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls||null,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());c.style=h}}}));
|
|
2
|
+
//# sourceMappingURL=p-2d777867.system.entry.js.map
|
package/dist/stzh-components/{p-9f4f3882.system.entry.js.map → p-2d777867.system.entry.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["stzhLinkCss","StzhLink","exports","this","focusedByInput","onRootFocus","_this","setFocus","onFocus","event","focusEvent","FocusEvent","view","window","bubbles","cancelable","element","dispatchEvent","stzhFocus","emit","component","originalEvent","onBlur","blurEvent","stzhBlur","class_1","prototype","link","focus","renderIcon","h","class","icon","name","badge","badgeEmpty","label","type","badgeType","renderContent","rel","includes","localization","$globals","externalLinkLabel","download","downloadLinkLabel","ref","el","text","renderInner","iconUsed","Fragment","iconPosition","componentWillLoad","_a","fetchTranslations","_b","sent","componentDidRender","requestAnimationFrame","setAttribute","analyticsId","innerText","render","hasSlot","classes","iconOnly","fullwidth","disabled","active","concat","badgePosition","textAlign","size","variant","Host","tabindex","href","target","accessKey","linkAccesskey","a11yTabindex","a11yLabel","a11yDescribedby","a11yDisabled","a11yExpanded","a11yControls"],"sources":["src/components/stzh-link/stzh-link.scss?tag=stzh-link&encapsulation=scoped","src/components/stzh-link/stzh-link.tsx"],"sourcesContent":[":host {\n --color: #{$linkColor};\n --text-decoration-line: underline;\n --icon-size: #{iconSize('medium')};\n --icon-wrapper-height: #{$linkIconWrapperHeight};\n\n --hover-color: #{$linkHoverColor};\n --hover-text-decoration-line: underline;\n\n color: var(--color);\n display: inline-block;\n\n ::slotted(stzh-text) {\n --color: initial;\n }\n\n &[fullwidth]:not([fullwidth=\"false\"]) {\n width: 100%;\n display: block;\n }\n\n &[size=\"small\"] {\n --icon-size: #{iconSize('small')};\n }\n\n &[variant=\"secondary\"] {\n --color: #{$baseColor};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--hover-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey25};\n --hover-color: #{$colorGrey25};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-link__icon {\n --size: var(--icon-size);\n}\n\n.stzh-link {\n @include fontCurve('p1');\n font-family: inherit;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: stretch;\n appearance: none;\n border: none;\n color: var(--color);\n transition: color $baseTransitionAnimationSpeed;\n cursor: pointer;\n width: 100%;\n text-decoration-line: none;\n background-color: transparent;\n padding: 0;\n border-radius: $buttonBorderRadius;\n text-align: left;\n\n &:hover {\n color: var(--hover-color);\n }\n\n &:hover &__text {\n text-decoration-line: var(--hover-text-decoration-line);\n }\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__inner {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n }\n\n &__icon-wrapper {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: var(--icon-wrapper-height);\n }\n\n &__text {\n text-decoration-line: var(--text-decoration-line);\n }\n\n &__icon-wrapper:not(:empty) + &__text:not(:empty),\n &__text:not(:empty) + &__icon-wrapper:not(:empty) {\n margin-left: space('xxsmall');\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n }\n\n /* Variant if link only has icon */\n\n &--has-icon-only &__text {\n @include visuallyhidden;\n }\n\n /* Badge positioning variants */\n\n &--badge-position-link &__icon-wrapper {\n position: static;\n }\n\n &__badge,\n &--badge-position-link &__badge {\n top: calc(#{space('xxsmall')} * -1);\n right: calc(#{space('large')} * -1);\n }\n\n &--badge-position-icon#{&}--has-icon &__icon-wrapper {\n position: relative;\n }\n\n &--badge-position-icon#{&}--has-icon &__badge {\n top: calc(#{space('xsmall')} * -1);\n right: calc(#{space('small')} * -1);;\n }\n\n &--badge-position-icon#{&}--has-icon#{&}--has-badge &__icon-wrapper + &__text:not(:empty) {\n margin-left: space('small');\n }\n\n /* Size variants */\n\n &--size-small {\n @include fontSize('micro');\n }\n\n &--size-inherit {\n font-size: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n }\n\n /* Alignment variants */\n\n &--align-left &__inner {\n justify-content: flex-start;\n }\n\n &--align-right &__inner {\n justify-content: flex-end;\n }\n\n &--align-center &__inner {\n justify-content: center;\n }\n\n &--align-space-between &__inner {\n justify-content: space-between;\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n Fragment,\n Element,\n h,\n Prop,\n Method,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhLinkFocusEvent,\n StzhLinkBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { fetchTranslations, StzhLocaleComponent } from \"../../utils/translation-utils\";\n\n/**\n * @slot - Slot for text content\n * @slot icon - Slot for icon element\n */\n@Component({\n tag: \"stzh-link\",\n styleUrl: \"stzh-link.scss\",\n scoped: true\n})\nexport class StzhLink {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Icon Position */\n @Prop({ reflect: true }) iconPosition: \"left\" | \"right\" = \"left\";\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" | \"inherit\" = \"default\";\n\n /** href attribute of the link */\n @Prop() href: string = \"\";\n\n /** Rel (if href is used) */\n @Prop() rel: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string = \"\";\n\n /** Download attribute of link (if `href` used) */\n @Prop() download: string;\n\n /** type of the button, if used as button (if no href used) */\n @Prop() type: \"button\" | \"submit\" | \"reset\" = \"button\";\n\n /** Variant style */\n @Prop({ reflect: true }) variant: \"default\" | \"secondary\" = \"default\";\n\n /** Whether the link is full width */\n @Prop({ reflect: true }) fullwidth: boolean = false;\n\n /** Text alignment */\n @Prop({ reflect: true }) textAlign: \"left\" | \"center\" | \"right\" | \"space-between\" | \"default\" = \"default\";\n\n /** Badge text */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: \"default\" | \"success\" | \"warning\" | \"error\" | \"info\" = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Badge position */\n @Prop({ reflect: true }) badgePosition: \"icon\" | \"link\" = \"icon\";\n\n /** Disabled status */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Active status */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Whether only an icon is used inside the link */\n @Prop({ reflect: true }) iconOnly: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Access key of link (usually a number e.g. 1) */\n @Prop() linkAccesskey: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Aria expanded of link/button */\n @Prop({ reflect: true, attribute: \"a11y-expanded\" }) a11yExpanded: boolean;\n\n /** Aria disabled of link/button */\n @Prop({ reflect: true, attribute: \"a11y-disabled\" }) a11yDisabled: boolean;\n\n /** Aria controls of link/button */\n @Prop({ attribute: \"a11y-controls\" }) a11yControls: string;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhLinkElement;\n\n /** Focus link */\n @Method()\n async setFocus() {\n this.link.focus();\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhLinkFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhLinkBlurEvent>;\n\n private link: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private renderIcon(): HTMLInputElement {\n return (\n <div class=\"stzh-link__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-link__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n return (\n <div class=\"stzh-link__text\">\n {this.rel && this.rel.includes('external') && <div class=\"stzh-link__vhidden\">{this.localization.$globals.externalLinkLabel}</div>}\n {this.download && <div class=\"stzh-link__vhidden\">{this.localization.$globals.downloadLinkLabel}</div>}\n <div ref={(el) => (this.text = el as HTMLDivElement)}>{this.label ? this.label : <slot></slot>}</div>\n </div>\n );\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n <div class=\"stzh-link__inner\">\n {this.iconPosition === \"left\" && this.renderIcon()}\n {this.renderContent()}\n {this.iconPosition === \"right\" && this.renderIcon()}\n </div>\n {(this.badge || this.badgeEmpty) && !iconUsed &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </Fragment>\n );\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await fetchTranslations(this.element, \"link\");\n }\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.link.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const iconUsed = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-link\": true,\n \"stzh-link--has-icon\": iconUsed,\n \"stzh-link--has-icon-only\": this.iconOnly,\n \"stzh-link--has-badge\": !!this.badge,\n \"stzh-link--is-fullwidth\": this.fullwidth,\n \"stzh-link--is-disabled\": this.disabled,\n \"stzh-link--is-active\": this.active,\n [`stzh-link--badge-position-${this.badgePosition}`]: !!this.badgePosition,\n [`stzh-link--align-${this.textAlign}`]: !!this.textAlign,\n [`stzh-link--size-${this.size}`]: !!this.size,\n [`stzh-link--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ?\n <a\n ref={(el) => (this.link = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n download={this.download}\n rel={this.rel}\n target={this.target}\n class={classes}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel}\n aria-describedby={this.a11yDescribedby}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </a>\n :\n <button\n ref={(el) => (this.link = el as HTMLButtonElement)}\n class={classes}\n type={this.type}\n disabled={this.disabled}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel}\n aria-describedby={this.a11yDescribedby}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </button>\n }\n </Host>\n );\n }\n}\n"],"mappings":"otDAAA,IAAMA,EAAc,4gL,IC6BPC,EAAQC,EAAA,uB,2GAyGXC,KAAAC,eAA0B,MAE1BD,KAAAE,YAAc,WACpB,IAAKC,EAAKF,eAAgB,CACxBE,EAAKC,U,CAGPD,EAAKF,eAAiB,K,EAGhBD,KAAAK,QAAU,SAACC,GACjBH,EAAKF,eAAiB,KAEtB,IAAMM,EAAa,IAAIC,WAAW,QAAS,CACzCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAGdT,EAAKU,QAAQC,cAAcP,GAC3BJ,EAAKY,UAAUC,KAAK,CAClBC,UAAW,YACXC,cAAeZ,G,EAIXN,KAAAmB,OAAS,SAACb,GAChB,IAAMc,EAAY,IAAIZ,WAAW,OAAQ,CACvCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAGdT,EAAKU,QAAQC,cAAcM,GAC3BjB,EAAKkB,SAASL,KAAK,CACjBC,UAAW,YACXC,cAAeZ,G,wCAxII,G,kBAGmC,O,UAGO,U,UAG1C,G,+BAME,G,kCAMqB,S,aAGc,U,eAGd,M,eAGkD,U,WAGxE,G,eAGmE,U,gBAG5C,M,mBAGW,O,cAGb,M,YAGF,M,cAGE,M,WAGrB,G,2EAS2C,G,2IAyB7DgB,EAAAC,UAAAnB,SAAN,W,qFACEJ,KAAKwB,KAAKC,Q,iBAmDJH,EAAAC,UAAAG,WAAA,WACN,OACEC,EAAA,OAAKC,MAAM,2BACR5B,KAAK6B,KACJF,EAAA,aAAWC,MAAM,kBAAkBE,KAAM9B,KAAK6B,OAE9CF,EAAA,QAAMG,KAAK,UAEX9B,KAAK+B,OAAS/B,KAAKgC,aACnBL,EAAA,cAAYC,MAAM,mBAAmBK,MAAOjC,KAAK+B,MAAOG,KAAMlC,KAAKmC,Y,EAMnEb,EAAAC,UAAAa,cAAA,eAAAjC,EAAAH,KACN,OACE2B,EAAA,OAAKC,MAAM,mBACR5B,KAAKqC,KAAOrC,KAAKqC,IAAIC,SAAS,aAAeX,EAAA,OAAKC,MAAM,sBAAsB5B,KAAKuC,aAAaC,SAASC,mBACzGzC,KAAK0C,UAAYf,EAAA,OAAKC,MAAM,sBAAsB5B,KAAKuC,aAAaC,SAASG,mBAC9EhB,EAAA,OAAKiB,IAAK,SAACC,GAAE,OAAM1C,EAAK2C,KAAOD,CAAlB,GAA0C7C,KAAKiC,MAAQjC,KAAKiC,MAAQN,EAAA,c,EAK/EL,EAAAC,UAAAwB,YAAA,SAAYC,GAClB,OACErB,EAACsB,EAAQ,KACPtB,EAAA,OAAKC,MAAM,oBACR5B,KAAKkD,eAAiB,QAAUlD,KAAK0B,aACrC1B,KAAKoC,gBACLpC,KAAKkD,eAAiB,SAAWlD,KAAK0B,eAEvC1B,KAAK+B,OAAS/B,KAAKgC,cAAgBgB,GACnCrB,EAAA,cAAYC,MAAM,mBAAmBK,MAAOjC,KAAK+B,MAAOG,KAAMlC,KAAKmC,Y,EAMrEb,EAAAC,UAAA4B,kBAAN,W,uHACOnD,KAAKuC,aAAN,YACFa,EAAApD,KAAoB,SAAMqD,EAAkBrD,KAAKa,QAAS,S,OAA1DuC,EAAKb,aAAee,EAAAC,O,mCAIxBjC,EAAAC,UAAAiC,mBAAA,eAAArD,EAAAH,KACEyD,uBAAsB,WACpBtD,EAAKqB,KAAKkC,aAAa,cAAevD,EAAKwD,aAAexD,EAAK2C,KAAKc,U,KAIxEtC,EAAAC,UAAAsC,OAAA,W,MAAA,IAAA1D,EAAAH,KACE,IAAMgD,EAAWc,EAAQ9D,KAAKa,QAAS,WAAab,KAAK6B,KACzD,IAAMkC,GAAOX,EAAA,CACX,YAAa,KACb,sBAAuBJ,EACvB,2BAA4BhD,KAAKgE,SACjC,yBAA0BhE,KAAK+B,MAC/B,0BAA2B/B,KAAKiE,UAChC,yBAA0BjE,KAAKkE,SAC/B,uBAAwBlE,KAAKmE,QAC7Bf,EAAC,6BAAAgB,OAA6BpE,KAAKqE,kBAAoBrE,KAAKqE,cAC5DjB,EAAC,oBAAAgB,OAAoBpE,KAAKsE,cAAgBtE,KAAKsE,UAC/ClB,EAAC,mBAAAgB,OAAmBpE,KAAKuE,SAAWvE,KAAKuE,KACzCnB,EAAC,cAAAgB,OAAcpE,KAAKwE,YAAcxE,KAAKwE,Q,GAGzC,OACE7C,EAAC8C,EAAI,CAACC,SAAU1E,KAAKkE,SAAW,KAAO,KAAM7D,QAASL,KAAKE,aACxDF,KAAK2E,KACJhD,EAAA,KACEiB,IAAK,SAACC,GAAE,OAAM1C,EAAKqB,KAAOqB,CAAlB,EACR8B,KAAM3E,KAAKkE,SAAW,KAAOlE,KAAK2E,KAClCjC,SAAU1C,KAAK0C,SACfL,IAAKrC,KAAKqC,IACVuC,OAAQ5E,KAAK4E,OACbhD,MAAOmC,EACPc,UAAW7E,KAAK8E,cAChBJ,SAAU1E,KAAK+E,aAAY,aACf/E,KAAKgF,UAAS,mBACRhF,KAAKiF,gBAAe,uBAChBjF,KAAKkF,eAAiB,YACvClF,KAAKkF,aAAe,OAAS,QAAW,KAAI,uBAC3BlF,KAAKmF,eAAiB,YACvCnF,KAAKmF,aAAe,OAAS,QAAW,KAAI,gBAClCnF,KAAKoF,aACpB/E,QAASL,KAAKK,QACdc,OAAQnB,KAAKmB,QAEZnB,KAAK+C,YAAYC,IAGpBrB,EAAA,UACEiB,IAAK,SAACC,GAAE,OAAM1C,EAAKqB,KAAOqB,CAAlB,EACRjB,MAAOmC,EACP7B,KAAMlC,KAAKkC,KACXgC,SAAUlE,KAAKkE,SACfW,UAAW7E,KAAK8E,cAChBJ,SAAU1E,KAAK+E,aAAY,aACf/E,KAAKgF,UAAS,mBACRhF,KAAKiF,gBAAe,uBAChBjF,KAAKkF,eAAiB,YACvClF,KAAKkF,aAAe,OAAS,QAAW,KAAI,uBAC3BlF,KAAKmF,eAAiB,YACvCnF,KAAKmF,aAAe,OAAS,QAAW,KAAI,gBAClCnF,KAAKoF,aACpB/E,QAASL,KAAKK,QACdc,OAAQnB,KAAKmB,QAEZnB,KAAK+C,YAAYC,I,4HA/PT,I"}
|
|
1
|
+
{"version":3,"names":["stzhLinkCss","StzhLink","exports","this","focusedByInput","onRootFocus","_this","setFocus","onFocus","event","focusEvent","FocusEvent","view","window","bubbles","cancelable","element","dispatchEvent","stzhFocus","emit","component","originalEvent","onBlur","blurEvent","stzhBlur","class_1","prototype","link","focus","renderIcon","h","class","icon","name","badge","badgeEmpty","label","type","badgeType","renderContent","rel","includes","localization","$globals","externalLinkLabel","download","downloadLinkLabel","ref","el","text","renderInner","iconUsed","Fragment","iconPosition","componentWillLoad","_a","fetchTranslations","_b","sent","componentDidRender","requestAnimationFrame","setAttribute","analyticsId","innerText","render","hasSlot","classes","iconOnly","fullwidth","disabled","active","concat","badgePosition","textAlign","size","variant","Host","tabindex","href","target","accessKey","linkAccesskey","a11yTabindex","a11yLabel","a11yDescribedby","a11yDisabled","a11yExpanded","a11yControls"],"sources":["src/components/stzh-link/stzh-link.scss?tag=stzh-link&encapsulation=scoped","src/components/stzh-link/stzh-link.tsx"],"sourcesContent":[":host {\n --color: #{$linkColor};\n --text-decoration-line: underline;\n --icon-size: #{iconSize('medium')};\n --icon-wrapper-height: #{$linkIconWrapperHeight};\n\n --hover-color: #{$linkHoverColor};\n --hover-text-decoration-line: underline;\n\n color: var(--color);\n display: inline-block;\n\n ::slotted(stzh-text) {\n --color: initial;\n }\n\n &[fullwidth]:not([fullwidth=\"false\"]) {\n width: 100%;\n display: block;\n }\n\n &[size=\"small\"] {\n --icon-size: #{iconSize('small')};\n }\n\n &[variant=\"secondary\"] {\n --color: #{$baseColor};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--hover-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey25};\n --hover-color: #{$colorGrey25};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-link__icon {\n --size: var(--icon-size);\n}\n\n.stzh-link {\n @include fontCurve('p1');\n font-family: inherit;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: stretch;\n appearance: none;\n border: none;\n color: var(--color);\n transition: color $baseTransitionAnimationSpeed;\n cursor: pointer;\n width: 100%;\n text-decoration-line: none;\n background-color: transparent;\n padding: 0;\n border-radius: $buttonBorderRadius;\n text-align: left;\n\n &:hover {\n color: var(--hover-color);\n }\n\n &:hover &__text {\n text-decoration-line: var(--hover-text-decoration-line);\n }\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__inner {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n }\n\n &__icon-wrapper {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: var(--icon-wrapper-height);\n }\n\n &__text {\n text-decoration-line: var(--text-decoration-line);\n }\n\n &__icon-wrapper:not(:empty) + &__text:not(:empty),\n &__text:not(:empty) + &__icon-wrapper:not(:empty) {\n margin-left: space('xxsmall');\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n }\n\n /* Variant if link only has icon */\n\n &--has-icon-only &__text {\n @include visuallyhidden;\n }\n\n /* Badge positioning variants */\n\n &--badge-position-link &__icon-wrapper {\n position: static;\n }\n\n &__badge,\n &--badge-position-link &__badge {\n top: calc(#{space('xxsmall')} * -1);\n right: calc(#{space('large')} * -1);\n }\n\n &--badge-position-icon#{&}--has-icon &__icon-wrapper {\n position: relative;\n }\n\n &--badge-position-icon#{&}--has-icon &__badge {\n top: calc(#{space('xsmall')} * -1);\n right: calc(#{space('small')} * -1);;\n }\n\n &--badge-position-icon#{&}--has-icon#{&}--has-badge &__icon-wrapper + &__text:not(:empty) {\n margin-left: space('small');\n }\n\n /* Size variants */\n\n &--size-small {\n @include fontSize('micro');\n }\n\n &--size-inherit {\n font-size: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n }\n\n /* Alignment variants */\n\n &--align-left &__inner {\n justify-content: flex-start;\n }\n\n &--align-right &__inner {\n justify-content: flex-end;\n }\n\n &--align-center &__inner {\n justify-content: center;\n }\n\n &--align-space-between &__inner {\n justify-content: space-between;\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n Fragment,\n Element,\n h,\n Prop,\n Method,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhLinkFocusEvent,\n StzhLinkBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { fetchTranslations, StzhLocaleComponent } from \"../../utils/translation-utils\";\n\n/**\n * @slot - Slot for text content\n * @slot icon - Slot for icon element\n */\n@Component({\n tag: \"stzh-link\",\n styleUrl: \"stzh-link.scss\",\n scoped: true\n})\nexport class StzhLink {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Icon Position */\n @Prop({ reflect: true }) iconPosition: \"left\" | \"right\" = \"left\";\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" | \"inherit\" = \"default\";\n\n /** href attribute of the link */\n @Prop() href: string = \"\";\n\n /** Rel (if href is used) */\n @Prop() rel: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string = \"\";\n\n /** Download attribute of link (if `href` used) */\n @Prop() download: string;\n\n /** type of the button, if used as button (if no href used) */\n @Prop() type: \"button\" | \"submit\" | \"reset\" = \"button\";\n\n /** Variant style */\n @Prop({ reflect: true }) variant: \"default\" | \"secondary\" = \"default\";\n\n /** Whether the link is full width */\n @Prop({ reflect: true }) fullwidth: boolean = false;\n\n /** Text alignment */\n @Prop({ reflect: true }) textAlign: \"left\" | \"center\" | \"right\" | \"space-between\" | \"default\" = \"default\";\n\n /** Badge text */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: \"default\" | \"success\" | \"warning\" | \"error\" | \"info\" = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Badge position */\n @Prop({ reflect: true }) badgePosition: \"icon\" | \"link\" = \"icon\";\n\n /** Disabled status */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Active status */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Whether only an icon is used inside the link */\n @Prop({ reflect: true }) iconOnly: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Access key of link (usually a number e.g. 1) */\n @Prop() linkAccesskey: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Aria expanded of link/button */\n @Prop({ reflect: true, attribute: \"a11y-expanded\" }) a11yExpanded: boolean;\n\n /** Aria disabled of link/button */\n @Prop({ reflect: true, attribute: \"a11y-disabled\" }) a11yDisabled: boolean;\n\n /** Aria controls of link/button */\n @Prop({ attribute: \"a11y-controls\" }) a11yControls: string;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhLinkElement;\n\n /** Focus link */\n @Method()\n async setFocus() {\n this.link.focus();\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhLinkFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhLinkBlurEvent>;\n\n private link: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private renderIcon(): HTMLInputElement {\n return (\n <div class=\"stzh-link__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-link__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n return (\n <div class=\"stzh-link__text\">\n {this.rel && this.rel.includes('external') && <div class=\"stzh-link__vhidden\">{this.localization.$globals.externalLinkLabel}</div>}\n {this.download && <div class=\"stzh-link__vhidden\">{this.localization.$globals.downloadLinkLabel}</div>}\n <div ref={(el) => (this.text = el as HTMLDivElement)}>{this.label ? this.label : <slot></slot>}</div>\n </div>\n );\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n <div class=\"stzh-link__inner\">\n {this.iconPosition === \"left\" && this.renderIcon()}\n {this.renderContent()}\n {this.iconPosition === \"right\" && this.renderIcon()}\n </div>\n {(this.badge || this.badgeEmpty) && !iconUsed &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </Fragment>\n );\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await fetchTranslations(this.element, \"link\");\n }\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.link.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const iconUsed = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-link\": true,\n \"stzh-link--has-icon\": iconUsed,\n \"stzh-link--has-icon-only\": this.iconOnly,\n \"stzh-link--has-badge\": !!this.badge,\n \"stzh-link--is-fullwidth\": this.fullwidth,\n \"stzh-link--is-disabled\": this.disabled,\n \"stzh-link--is-active\": this.active,\n [`stzh-link--badge-position-${this.badgePosition}`]: !!this.badgePosition,\n [`stzh-link--align-${this.textAlign}`]: !!this.textAlign,\n [`stzh-link--size-${this.size}`]: !!this.size,\n [`stzh-link--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ?\n <a\n ref={(el) => (this.link = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n download={this.download}\n rel={this.rel}\n target={this.target}\n class={classes}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </a>\n :\n <button\n ref={(el) => (this.link = el as HTMLButtonElement)}\n class={classes}\n type={this.type}\n disabled={this.disabled}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </button>\n }\n </Host>\n );\n }\n}\n"],"mappings":"otDAAA,IAAMA,EAAc,4gL,IC6BPC,EAAQC,EAAA,uB,2GAyGXC,KAAAC,eAA0B,MAE1BD,KAAAE,YAAc,WACpB,IAAKC,EAAKF,eAAgB,CACxBE,EAAKC,U,CAGPD,EAAKF,eAAiB,K,EAGhBD,KAAAK,QAAU,SAACC,GACjBH,EAAKF,eAAiB,KAEtB,IAAMM,EAAa,IAAIC,WAAW,QAAS,CACzCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAGdT,EAAKU,QAAQC,cAAcP,GAC3BJ,EAAKY,UAAUC,KAAK,CAClBC,UAAW,YACXC,cAAeZ,G,EAIXN,KAAAmB,OAAS,SAACb,GAChB,IAAMc,EAAY,IAAIZ,WAAW,OAAQ,CACvCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAGdT,EAAKU,QAAQC,cAAcM,GAC3BjB,EAAKkB,SAASL,KAAK,CACjBC,UAAW,YACXC,cAAeZ,G,wCAxII,G,kBAGmC,O,UAGO,U,UAG1C,G,+BAME,G,kCAMqB,S,aAGc,U,eAGd,M,eAGkD,U,WAGxE,G,eAGmE,U,gBAG5C,M,mBAGW,O,cAGb,M,YAGF,M,cAGE,M,WAGrB,G,2EAS2C,G,2IAyB7DgB,EAAAC,UAAAnB,SAAN,W,qFACEJ,KAAKwB,KAAKC,Q,iBAmDJH,EAAAC,UAAAG,WAAA,WACN,OACEC,EAAA,OAAKC,MAAM,2BACR5B,KAAK6B,KACJF,EAAA,aAAWC,MAAM,kBAAkBE,KAAM9B,KAAK6B,OAE9CF,EAAA,QAAMG,KAAK,UAEX9B,KAAK+B,OAAS/B,KAAKgC,aACnBL,EAAA,cAAYC,MAAM,mBAAmBK,MAAOjC,KAAK+B,MAAOG,KAAMlC,KAAKmC,Y,EAMnEb,EAAAC,UAAAa,cAAA,eAAAjC,EAAAH,KACN,OACE2B,EAAA,OAAKC,MAAM,mBACR5B,KAAKqC,KAAOrC,KAAKqC,IAAIC,SAAS,aAAeX,EAAA,OAAKC,MAAM,sBAAsB5B,KAAKuC,aAAaC,SAASC,mBACzGzC,KAAK0C,UAAYf,EAAA,OAAKC,MAAM,sBAAsB5B,KAAKuC,aAAaC,SAASG,mBAC9EhB,EAAA,OAAKiB,IAAK,SAACC,GAAE,OAAM1C,EAAK2C,KAAOD,CAAlB,GAA0C7C,KAAKiC,MAAQjC,KAAKiC,MAAQN,EAAA,c,EAK/EL,EAAAC,UAAAwB,YAAA,SAAYC,GAClB,OACErB,EAACsB,EAAQ,KACPtB,EAAA,OAAKC,MAAM,oBACR5B,KAAKkD,eAAiB,QAAUlD,KAAK0B,aACrC1B,KAAKoC,gBACLpC,KAAKkD,eAAiB,SAAWlD,KAAK0B,eAEvC1B,KAAK+B,OAAS/B,KAAKgC,cAAgBgB,GACnCrB,EAAA,cAAYC,MAAM,mBAAmBK,MAAOjC,KAAK+B,MAAOG,KAAMlC,KAAKmC,Y,EAMrEb,EAAAC,UAAA4B,kBAAN,W,uHACOnD,KAAKuC,aAAN,YACFa,EAAApD,KAAoB,SAAMqD,EAAkBrD,KAAKa,QAAS,S,OAA1DuC,EAAKb,aAAee,EAAAC,O,mCAIxBjC,EAAAC,UAAAiC,mBAAA,eAAArD,EAAAH,KACEyD,uBAAsB,WACpBtD,EAAKqB,KAAKkC,aAAa,cAAevD,EAAKwD,aAAexD,EAAK2C,KAAKc,U,KAIxEtC,EAAAC,UAAAsC,OAAA,W,MAAA,IAAA1D,EAAAH,KACE,IAAMgD,EAAWc,EAAQ9D,KAAKa,QAAS,WAAab,KAAK6B,KACzD,IAAMkC,GAAOX,EAAA,CACX,YAAa,KACb,sBAAuBJ,EACvB,2BAA4BhD,KAAKgE,SACjC,yBAA0BhE,KAAK+B,MAC/B,0BAA2B/B,KAAKiE,UAChC,yBAA0BjE,KAAKkE,SAC/B,uBAAwBlE,KAAKmE,QAC7Bf,EAAC,6BAAAgB,OAA6BpE,KAAKqE,kBAAoBrE,KAAKqE,cAC5DjB,EAAC,oBAAAgB,OAAoBpE,KAAKsE,cAAgBtE,KAAKsE,UAC/ClB,EAAC,mBAAAgB,OAAmBpE,KAAKuE,SAAWvE,KAAKuE,KACzCnB,EAAC,cAAAgB,OAAcpE,KAAKwE,YAAcxE,KAAKwE,Q,GAGzC,OACE7C,EAAC8C,EAAI,CAACC,SAAU1E,KAAKkE,SAAW,KAAO,KAAM7D,QAASL,KAAKE,aACxDF,KAAK2E,KACJhD,EAAA,KACEiB,IAAK,SAACC,GAAE,OAAM1C,EAAKqB,KAAOqB,CAAlB,EACR8B,KAAM3E,KAAKkE,SAAW,KAAOlE,KAAK2E,KAClCjC,SAAU1C,KAAK0C,SACfL,IAAKrC,KAAKqC,IACVuC,OAAQ5E,KAAK4E,OACbhD,MAAOmC,EACPc,UAAW7E,KAAK8E,cAChBJ,SAAU1E,KAAK+E,aAAY,aACf/E,KAAKgF,WAAa,KAAI,mBAChBhF,KAAKiF,iBAAmB,KAAI,uBACxBjF,KAAKkF,eAAiB,YACvClF,KAAKkF,aAAe,OAAS,QAAW,KAAI,uBAC3BlF,KAAKmF,eAAiB,YACvCnF,KAAKmF,aAAe,OAAS,QAAW,KAAI,gBAClCnF,KAAKoF,cAAgB,KACpC/E,QAASL,KAAKK,QACdc,OAAQnB,KAAKmB,QAEZnB,KAAK+C,YAAYC,IAGpBrB,EAAA,UACEiB,IAAK,SAACC,GAAE,OAAM1C,EAAKqB,KAAOqB,CAAlB,EACRjB,MAAOmC,EACP7B,KAAMlC,KAAKkC,KACXgC,SAAUlE,KAAKkE,SACfW,UAAW7E,KAAK8E,cAChBJ,SAAU1E,KAAK+E,aAAY,aACf/E,KAAKgF,WAAa,KAAI,mBAChBhF,KAAKiF,iBAAmB,KAAI,uBACxBjF,KAAKkF,eAAiB,YACvClF,KAAKkF,aAAe,OAAS,QAAW,KAAI,uBAC3BlF,KAAKmF,eAAiB,YACvCnF,KAAKmF,aAAe,OAAS,QAAW,KAAI,gBAClCnF,KAAKoF,cAAgB,KACpC/E,QAASL,KAAKK,QACdc,OAAQnB,KAAKmB,QAEZnB,KAAK+C,YAAYC,I,4HA/PT,I"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-23a9ea04.system.js","./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-23a9ea04.system.js","./p-3f72c05a.system.js","./p-a408bfba.system.js","./p-309d2b66.system.js","./p-eaa65f52.system.js"],(function(t){"use strict";var e,n,r,i,o,a,s,c,h,u;return{setters:[function(t){e=t.r;n=t.c;r=t.h;i=t.a;o=t.g},function(t){a=t.a},function(t){s=t.a},function(t){c=t.f},function(t){h=t.c},function(t){u=t.VBZ}],execute:function(){var l=".sc-stzh-vbz-majorticker-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-vbz-majorticker-h{display:none}.sc-stzh-vbz-majorticker-h *.sc-stzh-vbz-majorticker,.sc-stzh-vbz-majorticker-h *.sc-stzh-vbz-majorticker::before,.sc-stzh-vbz-majorticker-h *.sc-stzh-vbz-majorticker::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-vbz-majorticker__ghettobox.sc-stzh-vbz-majorticker{--stzh-base-invert-color:var(--stzh-color-black);--stzh-base-invert-color72:var(--stzh-color-black72);--stzh-base-invert-color32:var(--stzh-color-black32);--stzh-base-invert-color16:var(--stzh-color-black16);--background-color:var(--stzh-color-coral)}";var f=t("stzh_vbz_majorticker",function(){function t(t){var r=this;e(this,t);this.stzhDisturbanceFetched=n(this,"stzhDisturbanceFetched",7);this.disturbance=null;this.onGhettoboxOpen=function(){r.ghettoboxShown=true};this.onGhettoboxClose=function(){r.ghettoboxShown=false};this.api="https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}";this.data="";this.moreInfoLink="https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}";this.dateAdapter=undefined;this.localization=undefined;this.ghettoboxCloseTimeKey=undefined;this.ghettoboxShown=true}t.prototype.getGhettoboxShown=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.ghettoboxShown]}))}))};t.prototype.getDisturbance=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.disturbance]}))}))};t.prototype.apiWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:if(!t){return[2]}e=this.api.replace(/\{lang\}/,this.localization.$locale);e=e+(e.includes("?")?"&":"?")+Date.now();return[4,a.get(e)];case 1:n=r.sent().data;this.data=n;return[2]}}))}))};t.prototype.dataWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,r,i,o;return __generator(this,(function(a){if(typeof t==="string"){this._data=JSON.parse(t)}else{this._data=t}r=(n=(e=this._data)===null||e===void 0?void 0:e.Message)===null||n===void 0?void 0:n.find((function(t){return t.category===u.DISTURBANCE_INFORMATION&&t.baseType===u.BASE_TYPE_GLOBAL}));if(r){i=r.channel.filter((function(t){return t.name===u.CHANNEL_TICKER&&t.url})).map((function(t){return t.url})).reduce((function(t,e){return t.concat(e)}),[]);o=i.find((function(t){return t.url.indexOf(u.CHANNEL_INFO_URL_FILTER)!==-1}));this.disturbance={id:r.id,head:r.head,text:s(r.text),startDate:new Date("".concat(r.sDate,"T").concat(r.sTime,"+02:00")),endDate:new Date("".concat(r.eDate,"T").concat(r.eTime,"+02:00")),altStart:r.altStart,altEnd:r.altEnd,infoUrl:o}}this.stzhDisturbanceFetched.emit({component:"stzh-vbz-majorticker",disturbance:this.disturbance});return[2]}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,c(this.element,"vbz-majorticker")];case 1:t.localization=e.sent();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=h(this.localization.$formats,this.localization.$globals)}if(!this.data)return[3,4];return[4,this.dataWatcher(this.data)];case 3:e.sent();return[3,6];case 4:return[4,this.apiWatcher(this.api)];case 5:e.sent();e.label=6;case 6:return[2]}}))}))};t.prototype.render=function(){var t={"stzh-vbz-majorticker":true};return r(i,{hidden:!this.disturbance||!this.ghettoboxShown},r("div",{class:t},this.disturbance&&r("stzh-ghettobox",{onStzhOpen:this.onGhettoboxOpen,onStzhClose:this.onGhettoboxClose,class:"stzh-vbz-majorticker__ghettobox",hideClose:true,closeTimeKey:this.ghettoboxCloseTimeKey,mainTitle:this.disturbance.head,publishDate:this.disturbance.startDate},r("stzh-richtext",{innerHTML:this.disturbance.text}),this.disturbance.infoUrl?r("stzh-button",{slot:"button",href:this.disturbance.infoUrl.url},this.disturbance.infoUrl.name):r("stzh-button",{slot:"button",target:"_blank",href:this.moreInfoLink.replace(/\{lang\}/,this.localization.$locale).replace(/\{id\}/,this.disturbance.id)},this.localization.moreInfo))))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{api:["apiWatcher"],data:["dataWatcher"]}},enumerable:false,configurable:true});return t}());f.style=l}}}));
|
|
2
|
+
//# sourceMappingURL=p-2dd983a9.system.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,s,i){function r(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,o){function l(e){try{n(i.next(e))}catch(e){o(e)}}function a(e){try{n(i["throw"](e))}catch(e){o(e)}}function n(e){e.done?s(e.value):r(e.value).then(l,a)}n((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return n([e,t])}}function n(a){if(i)throw new TypeError("Generator is already executing.");while(l&&(l=0,a[0]&&(s=0)),s)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:s.label++;return{value:a[1],done:false};case 5:s.label++;r=a[1];a=[0];continue;case 7:a=s.ops.pop();s.trys.pop();continue;default:if(!(o=s.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){s=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(a[0]===6&&s.label<o[1]){s.label=o[1];o=a;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(a);break}if(o[2])s.ops.pop();s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-d4b7a303.system.js","./p-a408bfba.system.js","./p-176db2fe.system.js"],(function(e){"use strict";var t,s,i,r,o,l,a,n,c,u;return{setters:[function(e){t=e.r;s=e.c;i=e.h;r=e.a;o=e.g},function(e){l=e.i},function(e){a=e.f},function(e){n=e.a;c=e.r;u=e.m}],execute:function(){var h=".sc-stzh-carousel-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-carousel-h{display:none}.sc-stzh-carousel-h *.sc-stzh-carousel,.sc-stzh-carousel-h *.sc-stzh-carousel::before,.sc-stzh-carousel-h *.sc-stzh-carousel::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-carousel-h{--peek:calc(var(--peek-in, 0px) + var(--peek-out, 0px));--peek-out:1.25rem;--padding-top:0px;--padding-bottom:0px;--gutter:var(--stzh-space-xxxsmall);--snap-stop:always;--slides:1;--slide-size:calc((100% - (var(--slides) - 1) * var(--gutter)) / var(--slides))}@media screen and (min-width: 600px){.sc-stzh-carousel-h{--peek-out:2rem}}@media screen and (min-width: 1024px){.sc-stzh-carousel-h{--peek-out:0px}}[variant=cards].sc-stzh-carousel-h{--padding-top:0.25rem;--padding-bottom:0.25rem;--gutter:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){[variant=cards].sc-stzh-carousel-h{--peek-out:2.5rem;--gutter:var(--stzh-space-small)}}@media screen and (min-width: 1260px){[variant=cards].sc-stzh-carousel-h{--peek-out:5.5rem;--gutter:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){[variant=cards].sc-stzh-carousel-h{--peek-out:calc((100vw - 78.75rem - var(--stzh-scrollbar-width, 0px)) / 2)}}.sc-stzh-carousel-h .sc-stzh-carousel-s>*{width:100%;height:100%;-ms-flex-negative:0;flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:var(--snap-stop)}.sc-stzh-carousel-h .sc-stzh-carousel-s img{-webkit-user-drag:none;user-drag:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions]{position:absolute;top:0;left:0;z-index:1;pointer-events:none;padding:0 var(--peek)}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-text{width:auto}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-button{pointer-events:all}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-space,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-hspace,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-vspace{padding:var(--stzh-space-xsmall)}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions]{--background-color:transparent}.sc-stzh-carousel-h[variant=cards] .sc-stzh-carousel-s>[slot=actions]{position:relative;-ms-flex-order:1;order:1;margin-top:calc(var(--stzh-space-medium) - var(--padding-bottom))}.stzh-carousel.sc-stzh-carousel{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:calc(100% + var(--peek-out) * 2);margin-left:calc(var(--peek-out) / -1);margin-right:calc(var(--peek-out) / -1)}.stzh-carousel__vhidden.sc-stzh-carousel{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-carousel__scroll.sc-stzh-carousel{position:relative;grid-area:slides;display:grid;width:100%;height:100%;place-items:center;overflow-x:auto;overflow-y:visible;grid-auto-flow:column;grid-auto-columns:var(--slide-size);grid-auto-rows:100%;-moz-column-gap:var(--gutter);-webkit-column-gap:var(--gutter);column-gap:var(--gutter);-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scroll-padding:0 var(--peek);padding:var(--padding-top) var(--peek) var(--padding-bottom)}@media (prefers-reduced-motion: reduce){.stzh-carousel__scroll.sc-stzh-carousel{scroll-behavior:auto}}.stzh-carousel__scroll.sc-stzh-carousel::-webkit-scrollbar{display:none}.stzh-carousel--is-draggable.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grab;cursor:grab}.stzh-carousel--is-dragging.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grabbing;cursor:grabbing}.stzh-carousel--is-disabled.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:not-allowed;overflow:hidden}";var d=window.matchMedia("(prefers-reduced-motion: reduce)");var p=0;var v=e("stzh_carousel",function(){function e(e){var i=this;t(this,e);this.stzhSlideStart=s(this,"stzhSlideStart",7);this.stzhSlidePassed=s(this,"stzhSlidePassed",7);this.stzhSlideEnd=s(this,"stzhSlideEnd",7);this.slideScrollLeft=0;this.scrolledByAutoplay=false;this.scrollTimeoutId=null;this.lastX=null;this.startX=null;this.startScrollLeft=null;this.disableTimeoutId=null;this.stoppedDragging=false;this.onReducedMotionMediaChange=function(){i.autoplayDisabledByMotionMedia=d.matches};this.onMouseenter=function(){i.autoplayDisabledByMouse=true};this.onMouseleave=function(){i.autoplayDisabledByMouse=false};this.onFocusin=function(){i.autoplayDisabledByFocus=true};this.onFocusout=function(){i.autoplayDisabledByFocus=false};this.onPreviousClick=function(){i.scrollToPreviousSnapPoint()};this.onNextClick=function(){i.scrollToNextSnapPoint()};this.onSlideResize=function(){if(i.scrollElement){i.itemSize=i.sizingMethod()}};this.onMutation=function(){if(!i.scrollElement){return}i.slideElements=Array.from(i.scrollElement.children);i.slideElements.forEach((function(e,t){e.setAttribute("role","group");e.setAttribute("aria-roledescription","slide");e.setAttribute("aria-label",i.localization.slideLabel.replace(/\{current\}/gi,(t+1).toString()).replace(/\{total\}/gi,i.slideElements.length.toString()))}));i.previousElements=Array.from(i.element.querySelectorAll("[data-stzh-carousel-previous]"));i.nextElements=Array.from(i.element.querySelectorAll("[data-stzh-carousel-next]"));i.navigationTextElements=Array.from(i.element.querySelectorAll("[data-stzh-carousel-navigation-text]"))};this.onScroll=function(){if(i.scrollTimeoutId===null){var e=i.scrollElement.scrollLeft>i.slideScrollLeft?1:-1;i.scrolling=true;if(!i.scrolledByAutoplay){i.autoplay=false}i.stzhSlideStart.emit({component:"stzh-carousel",index:i.slide+e})}if(i.slide!==i.calculateSlide()){i.update();i.stzhSlidePassed.emit({component:"stzh-carousel",index:i.slide})}i.scrollTimeoutId&&window.clearTimeout(i.scrollTimeoutId);i.scrollTimeoutId=window.setTimeout(i.onScrollEnd,i.scrollTimeout)};this.onScrollEnd=function(){i.scrollTimeoutId=null;i.update();i.scrolling=false;i.scrolledByAutoplay=false;if(i.stoppedDragging){i.stoppedDragging=false;i.scrollElement.style.removeProperty("scroll-behavior");i.scrollElement.style.removeProperty("scroll-snap-type")}if(i.tabThrough||i.variant==="cards"){i.ariaLive=""}else{i.ariaLive=(i.currentSlides>1?i.localization.slidesLabel:i.localization.slideLabel).replace(/\{(current|from)\}/gi,(i.slide+1).toString()).replace(/\{to\}/gi,(i.slide+i.currentSlides).toString()).replace(/\{total\}/gi,i.slideElements.length.toString())}i.stzhSlideEnd.emit({component:"stzh-carousel",index:i.slide})};this.onMediaChange=function(){var e=u("ultra").matches;var t=u("large").matches;var s=u("medium").matches;var r=u("small").matches;if(e&&i.slidesUltra!==0){i.currentSlides=i.slidesUltra}else if(t&&i.slidesLarge!==0){i.currentSlides=i.slidesLarge}else if(s&&i.slidesMedium!==0){i.currentSlides=i.slidesMedium}else if(r&&i.slidesSmall!==0){i.currentSlides=i.slidesSmall}else{i.currentSlides=i.slides}i.currentSwipeSlides=i.currentSlides};this.mouseMove=function(e){var t=i.lastX-e.clientX;i.lastX=e.clientX;i.scrollElement.scrollLeft+=t};this.startDragging=function(e){e.preventDefault();i.disableTimeoutId&&window.clearTimeout(i.disableTimeoutId);i.disableTimeoutId=null;i.startX=i.lastX=e.clientX;i.startScrollLeft=i.scrollElement.scrollLeft;i.scrollElement.style.setProperty("scroll-behavior","auto");i.scrollElement.style.setProperty("scroll-snap-type","unset");i.dragging=true;i.autoplay=false;window.addEventListener("mousemove",i.mouseMove);window.addEventListener("mouseup",i.stopDragging,{capture:true});window.addEventListener("click",i.checkClick,{capture:true})};this.stopDragging=function(e){e.preventDefault();var t=Math.abs(i.startX-i.lastX);var s=t>i.distanceQuickSwipe;var r=i.lastX>i.startX?1:-1;i.dragging=false;var o=i.scrollElement.scrollLeft;i.scrollElement.style.removeProperty("scroll-snap-type");var l=i.scrollElement.scrollLeft;i.scrollElement.style.setProperty("scroll-snap-type","unset");i.scrollElement.scrollTo({left:o,behavior:"auto"});if(l!==i.startScrollLeft||!s){i.scrollElement.scrollTo({left:l,behavior:d.matches?"auto":"smooth"})}else if(r===1){i.slideToPrevious()}else{i.slideToNext()}window.removeEventListener("mousemove",i.mouseMove);window.removeEventListener("mouseup",i.stopDragging,{capture:true});i.stoppedDragging=true};this.checkClick=function(e){var t=Math.abs(i.startX-i.lastX);var s=t>i.distancePreventClick;if(s){e.preventDefault()}i.lastX=null;window.removeEventListener("click",i.checkClick,{capture:true})};this.autoplayInterval=function(){i.scrolledByAutoplay=true;if(i.hasReachedLastSlide()){i.slideTo(0)}else{i.slideToNext()}};this.localization=undefined;this.variant="default";this.disabled=false;this.slides=1;this.slidesSmall=0;this.slidesMedium=0;this.slidesLarge=0;this.slidesUltra=0;this.slide=0;this.autoplay=false;this.tabThrough=false;this.preventMouseDrag=false;this.scrollTimeout=100;this.autoplayTimeout=3e3;this.distanceQuickSwipe=40;this.distancePreventClick=6;this.autoplayRunning=false;this.autoplayDisabledByMotionMedia=false;this.autoplayDisabledByMouse=false;this.autoplayDisabledByFocus=false;this.dragging=false;this.scrolling=false;this.ariaLive="";this.currentSlides=1;this.currentSwipeSlides=1;this.slideElements=[];this.previousElements=[];this.nextElements=[];this.navigationTextElements=[]}e.prototype.slideTo=function(e,t){if(t===void 0){t="smooth"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(s){this.scrollToSlide(e,t);return[2]}))}))};e.prototype.slideToPrevious=function(e){if(e===void 0){e="smooth"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.scrollToPreviousSnapPoint(e);return[2]}))}))};e.prototype.slideToNext=function(e){if(e===void 0){e="smooth"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.scrollToNextSnapPoint(e);return[2]}))}))};e.prototype.disabledWatcher=function(){if(this.disabled){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this.onScroll);this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=null;this.element.removeEventListener("mouseenter",this.onMouseenter);this.element.removeEventListener("mouseleave",this.onMouseleave);this.element.removeEventListener("focusin",this.onFocusin);this.element.removeEventListener("focusout",this.onFocusout);this.onReducedMotionMediaChange();d&&d.removeEventListener("change",this.onReducedMotionMediaChange)}else{this.scrollElement&&this.scrollElement.addEventListener("scroll",this.onScroll,{passive:true});this.element.addEventListener("mouseenter",this.onMouseenter);this.element.addEventListener("mouseleave",this.onMouseleave);this.element.addEventListener("focusin",this.onFocusin);this.element.addEventListener("focusout",this.onFocusout);d&&d.addEventListener("change",this.onReducedMotionMediaChange)}};e.prototype.preventMouseDragWatcher=function(){if(this.preventMouseDrag||this.disabled){this.disableTimeoutId&&window.clearTimeout(this.disableTimeoutId);this.disableTimeoutId=null;this.scrollElement&&this.scrollElement.removeEventListener("mousedown",this.startDragging);this.lastX=null}else{this.scrollElement&&this.scrollElement.addEventListener("mousedown",this.startDragging)}};e.prototype.autoplayRunningWatcher=function(){if(!this.autoplay||this.disabled||this.autoplayDisabledByMotionMedia||this.autoplayDisabledByMouse||this.autoplayDisabledByFocus){this.autoplayIntervalId&&window.clearInterval(this.autoplayIntervalId);this.autoplayIntervalId=null;this.autoplayRunning=false}else{this.autoplayIntervalId&&window.clearInterval(this.autoplayIntervalId);this.autoplayIntervalId=window.setInterval(this.autoplayInterval,this.autoplayTimeout);this.autoplayRunning=true}};e.prototype.snapAlignWatcher=function(){var e=this;this.slideElements.forEach((function(t,s){var i=(s-e.currentSwipeSlides)%e.currentSwipeSlides===0;if(i){t.style.removeProperty("scroll-snap-align")}else{t.style.setProperty("scroll-snap-align","none")}}))};e.prototype.inertWatcher=function(){var e=this;this.slideElements.forEach((function(t,s){var i=e.tabThrough||e.variant==="cards"||s>=e.slide&&s<e.slide+e.currentSlides;t.inert=!i;if(i){t.removeAttribute("aria-hidden")}else{t.setAttribute("aria-hidden",i?"false":"true")}}))};e.prototype.prevNextNavigationWatcher=function(){var e=this.tabThrough||this.variant==="cards";var t=function(t){var s=l(t);if(e){t.setAttribute("aria-hidden","true");t.setAttribute(s?"a11y-tabindex":"tabindex","-1")}else{t.removeAttribute("aria-hidden");t.removeAttribute(s?"a11y-tabindex":"tabindex")}};this.nextElements.forEach(t);this.previousElements.forEach(t)};e.prototype.prevNextHiddenWatcher=function(){var e=this.slideElements.length<=this.currentSlides;var t=function(t){if(e){t.setAttribute("hidden","")}else{t.removeAttribute("hidden")}};this.navigationTextElements.forEach(t);this.nextElements.forEach(t);this.previousElements.forEach(t)};e.prototype.nextPrevDisabledWatcher=function(){if(!this.scrollElement){return}var e=this.slide===0;var t=this.hasReachedLastSlide();this.nextElements.forEach((function(e){var s=l(e);e.setAttribute(s?"a11y-disabled":"aria-disabled",t?"true":"false")}));this.previousElements.forEach((function(t){var s=l(t);t.setAttribute(s?"a11y-disabled":"aria-disabled",e?"true":"false")}))};e.prototype.nextElementsWatcher=function(){var e=this;this.nextElements.forEach((function(t){var s=l(t);t.addEventListener("click",e.onNextClick);t.setAttribute(s?"a11y-controls":"aria-controls","".concat(e.carouselId,"-scroll"))}))};e.prototype.previousElementsWatcher=function(){var e=this;this.previousElements.forEach((function(t){var s=l(t);t.addEventListener("click",e.onPreviousClick);t.setAttribute(s?"a11y-controls":"aria-controls","".concat(e.carouselId,"-scroll"))}))};e.prototype.scrollToSlide=function(e,t){if(t===void 0){t="smooth"}if(this.disabled){return}this.scrollElement.scrollTo({left:e*this.itemSize,behavior:d.matches?"auto":t})};e.prototype.sizingMethod=function(){var e=window.getComputedStyle(this.scrollElement);return this.scrollElement.firstElementChild.offsetWidth+parseInt(e.getPropertyValue("column-gap"),10)};e.prototype.calculateSlide=function(){return Math.floor(this.scrollElement.scrollLeft/this.itemSize)};e.prototype.scrollToPreviousSnapPoint=function(e){if(e===void 0){e="smooth"}if(this.disabled){return}var t=this.slide;var s=false;while(!s&&t>0){t=t-1;s=(t-this.currentSwipeSlides)%this.currentSwipeSlides===0}this.slideTo(t,e)};e.prototype.scrollToNextSnapPoint=function(e){if(e===void 0){e="smooth"}if(this.disabled){return}this.slideTo(this.slide+this.currentSwipeSlides,e)};e.prototype.update=function(){this.slide=this.calculateSlide();this.slideScrollLeft=this.slide*this.itemSize;this.onMutation()};e.prototype.hasReachedLastSlide=function(){var e=this.scrollElement,t=e.scrollLeft,s=e.offsetWidth,i=e.scrollWidth;return Math.ceil(t+s)>=i};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.carouselId="stzh-carousel-".concat(p++);this.onMediaChange();if(!!this.localization)return[3,2];e=this;return[4,a(this.element,"carousel")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.componentDidLoad=function(){this.itemSize=this.sizingMethod();this.update();this.disabledWatcher();this.preventMouseDragWatcher();this.autoplayRunningWatcher()};e.prototype.connectedCallback=function(){n(this.onMediaChange);this.resizeObserver=new ResizeObserver(this.onSlideResize);this.resizeObserver.observe(this.element);this.mutationObserver=new MutationObserver(this.onMutation);this.mutationObserver.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=null;this.disabled=true;c(this.onMediaChange);if(this.resizeObserver){this.resizeObserver.disconnect()}if(this.mutationObserver){this.mutationObserver.disconnect()}};e.prototype.render=function(){var e=this;var t={"stzh-carousel":true,"stzh-carousel--is-disabled":this.disabled,"stzh-carousel--is-draggable":!this.preventMouseDrag,"stzh-carousel--is-dragging":this.dragging,"stzh-carousel--is-scrolling":this.scrolling,"stzh-carousel--has-autoplay":this.autoplay,"stzh-carousel--is-autoplay-running":this.autoplayRunning,"stzh-carousel--is-autoplay-disabled-by-motion-media":this.autoplayDisabledByMotionMedia,"stzh-carousel--is-autoplay-disabled-by-mouse":this.autoplayDisabledByMouse,"stzh-carousel--is-autoplay-disabled-by-focus":this.autoplayDisabledByFocus};return i(r,{"aria-roledescription":"carousel",style:{"--slides":this.currentSlides.toString()}},i("div",{class:t},i("slot",{name:"actions"}),i("div",{class:"stzh-carousel__vhidden","aria-live":this.autoplayDisabledByFocus||this.autoplayDisabledByMouse?"polite":"off"},this.ariaLive),i("div",{ref:function(t){return e.scrollElement=t},id:"".concat(this.carouselId,"-scroll"),class:"stzh-carousel__scroll"},i("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledWatcher","preventMouseDragWatcher","autoplayRunningWatcher"],preventMouseDrag:["preventMouseDragWatcher"],autoplay:["autoplayRunningWatcher"],autoplayDisabledByMotionMedia:["autoplayRunningWatcher"],autoplayDisabledByMouse:["autoplayRunningWatcher"],autoplayDisabledByFocus:["autoplayRunningWatcher"],autoplayTimeout:["autoplayRunningWatcher"],slideElements:["snapAlignWatcher","inertWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher"],currentSwipeSlides:["snapAlignWatcher"],slide:["inertWatcher","nextPrevDisabledWatcher"],variant:["inertWatcher","prevNextNavigationWatcher"],currentSlides:["inertWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher"],tabThrough:["inertWatcher","prevNextNavigationWatcher"],nextElements:["prevNextNavigationWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher","nextElementsWatcher"],previousElements:["prevNextNavigationWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher","previousElementsWatcher"],navigationTextElements:["prevNextHiddenWatcher"]}},enumerable:false,configurable:true});return e}());v.style=h}}}));
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,s,i){function r(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,o){function l(e){try{n(i.next(e))}catch(e){o(e)}}function a(e){try{n(i["throw"](e))}catch(e){o(e)}}function n(e){e.done?s(e.value):r(e.value).then(l,a)}n((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return n([e,t])}}function n(a){if(i)throw new TypeError("Generator is already executing.");while(l&&(l=0,a[0]&&(s=0)),s)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:s.label++;return{value:a[1],done:false};case 5:s.label++;r=a[1];a=[0];continue;case 7:a=s.ops.pop();s.trys.pop();continue;default:if(!(o=s.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){s=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(a[0]===6&&s.label<o[1]){s.label=o[1];o=a;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(a);break}if(o[2])s.ops.pop();s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-7b184ebb.system.js","./p-22a2f4c1.system.js","./p-a408bfba.system.js","./p-176db2fe.system.js"],(function(e){"use strict";var t,s,i,r,o,l,a,n,c,u;return{setters:[function(e){t=e.r;s=e.c;i=e.h;r=e.a;o=e.g},function(e){l=e.i},function(e){a=e.f},function(e){n=e.a;c=e.r;u=e.m}],execute:function(){var h=".sc-stzh-carousel-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-carousel-h{display:none}.sc-stzh-carousel-h *.sc-stzh-carousel,.sc-stzh-carousel-h *.sc-stzh-carousel::before,.sc-stzh-carousel-h *.sc-stzh-carousel::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-carousel-h{--peek:calc(var(--peek-in, 0px) + var(--peek-out, 0px));--peek-out:1.25rem;--padding-top:0px;--padding-bottom:0px;--gutter:var(--stzh-space-xxxsmall);--snap-stop:always;--slides:1;--slide-size:calc((100% - (var(--slides) - 1) * var(--gutter)) / var(--slides))}@media screen and (min-width: 600px){.sc-stzh-carousel-h{--peek-out:2rem}}@media screen and (min-width: 1024px){.sc-stzh-carousel-h{--peek-out:0px}}[variant=cards].sc-stzh-carousel-h{--padding-top:0.25rem;--padding-bottom:0.25rem;--gutter:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){[variant=cards].sc-stzh-carousel-h{--peek-out:2.5rem;--gutter:var(--stzh-space-small)}}@media screen and (min-width: 1260px){[variant=cards].sc-stzh-carousel-h{--peek-out:5.5rem;--gutter:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){[variant=cards].sc-stzh-carousel-h{--peek-out:calc((100vw - 78.75rem - var(--stzh-scrollbar-width, 0px)) / 2)}}.sc-stzh-carousel-h .sc-stzh-carousel-s>*{width:100%;height:100%;-ms-flex-negative:0;flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:var(--snap-stop)}.sc-stzh-carousel-h .sc-stzh-carousel-s img{-webkit-user-drag:none;user-drag:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions]{position:absolute;top:0;left:0;z-index:1;pointer-events:none;padding:0 var(--peek)}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-text{width:auto}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-button{pointer-events:all}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-space,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-hspace,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-vspace{padding:var(--stzh-space-xsmall)}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions]{--background-color:transparent}.sc-stzh-carousel-h[variant=cards] .sc-stzh-carousel-s>[slot=actions]{position:relative;-ms-flex-order:1;order:1;margin-top:calc(var(--stzh-space-medium) - var(--padding-bottom))}.stzh-carousel.sc-stzh-carousel{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:calc(100% + var(--peek-out) * 2);margin-left:calc(var(--peek-out) / -1);margin-right:calc(var(--peek-out) / -1)}.stzh-carousel__vhidden.sc-stzh-carousel{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-carousel__scroll.sc-stzh-carousel{position:relative;grid-area:slides;display:grid;width:100%;height:100%;place-items:center;overflow-x:auto;overflow-y:visible;grid-auto-flow:column;grid-auto-columns:var(--slide-size);grid-auto-rows:100%;-moz-column-gap:var(--gutter);-webkit-column-gap:var(--gutter);column-gap:var(--gutter);-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scroll-padding:0 var(--peek);padding:var(--padding-top) var(--peek) var(--padding-bottom)}@media (prefers-reduced-motion: reduce){.stzh-carousel__scroll.sc-stzh-carousel{scroll-behavior:auto}}.stzh-carousel__scroll.sc-stzh-carousel::-webkit-scrollbar{display:none}.stzh-carousel--is-draggable.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grab;cursor:grab}.stzh-carousel--is-dragging.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grabbing;cursor:grabbing}.stzh-carousel--is-disabled.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:not-allowed;overflow:hidden}";var d=window.matchMedia("(prefers-reduced-motion: reduce)");var p=0;var v=e("stzh_carousel",function(){function e(e){var i=this;t(this,e);this.stzhSlideStart=s(this,"stzhSlideStart",7);this.stzhSlidePassed=s(this,"stzhSlidePassed",7);this.stzhSlideEnd=s(this,"stzhSlideEnd",7);this.slideScrollLeft=0;this.scrolledByAutoplay=false;this.scrollTimeoutId=null;this.lastX=null;this.startX=null;this.startScrollLeft=null;this.disableTimeoutId=null;this.stoppedDragging=false;this.onReducedMotionMediaChange=function(){i.autoplayDisabledByMotionMedia=d.matches};this.onMouseenter=function(){i.autoplayDisabledByMouse=true};this.onMouseleave=function(){i.autoplayDisabledByMouse=false};this.onFocusin=function(){i.autoplayDisabledByFocus=true};this.onFocusout=function(){i.autoplayDisabledByFocus=false};this.onPreviousClick=function(){i.scrollToPreviousSnapPoint()};this.onNextClick=function(){i.scrollToNextSnapPoint()};this.onSlideResize=function(){if(i.scrollElement){i.itemSize=i.sizingMethod()}};this.onMutation=function(){if(!i.scrollElement){return}i.slideElements=Array.from(i.scrollElement.children);i.slideElements.forEach((function(e,t){e.setAttribute("role","group");e.setAttribute("aria-roledescription","slide");e.setAttribute("aria-label",i.localization.slideLabel.replace(/\{current\}/gi,(t+1).toString()).replace(/\{total\}/gi,i.slideElements.length.toString()))}));i.previousElements=Array.from(i.element.querySelectorAll("[data-stzh-carousel-previous]"));i.nextElements=Array.from(i.element.querySelectorAll("[data-stzh-carousel-next]"));i.navigationTextElements=Array.from(i.element.querySelectorAll("[data-stzh-carousel-navigation-text]"))};this.onScroll=function(){if(i.scrollTimeoutId===null){var e=i.scrollElement.scrollLeft>i.slideScrollLeft?1:-1;i.scrolling=true;if(!i.scrolledByAutoplay){i.autoplay=false}i.stzhSlideStart.emit({component:"stzh-carousel",index:i.slide+e})}if(i.slide!==i.calculateSlide()){i.update();i.stzhSlidePassed.emit({component:"stzh-carousel",index:i.slide})}i.scrollTimeoutId&&window.clearTimeout(i.scrollTimeoutId);i.scrollTimeoutId=window.setTimeout(i.onScrollEnd,i.scrollTimeout)};this.onScrollEnd=function(){i.scrollTimeoutId=null;i.update();i.scrolling=false;i.scrolledByAutoplay=false;if(i.stoppedDragging){i.stoppedDragging=false;i.scrollElement.style.removeProperty("scroll-behavior");i.scrollElement.style.removeProperty("scroll-snap-type")}if(i.tabThrough||i.variant==="cards"){i.ariaLive=""}else{i.ariaLive=(i.currentSlides>1?i.localization.slidesLabel:i.localization.slideLabel).replace(/\{(current|from)\}/gi,(i.slide+1).toString()).replace(/\{to\}/gi,(i.slide+i.currentSlides).toString()).replace(/\{total\}/gi,i.slideElements.length.toString())}i.stzhSlideEnd.emit({component:"stzh-carousel",index:i.slide})};this.onMediaChange=function(){var e=u("ultra").matches;var t=u("large").matches;var s=u("medium").matches;var r=u("small").matches;if(e&&i.slidesUltra!==0){i.currentSlides=i.slidesUltra}else if(t&&i.slidesLarge!==0){i.currentSlides=i.slidesLarge}else if(s&&i.slidesMedium!==0){i.currentSlides=i.slidesMedium}else if(r&&i.slidesSmall!==0){i.currentSlides=i.slidesSmall}else{i.currentSlides=i.slides}i.currentSwipeSlides=i.currentSlides};this.mouseMove=function(e){var t=i.lastX-e.clientX;i.lastX=e.clientX;i.scrollElement.scrollLeft+=t};this.startDragging=function(e){e.preventDefault();i.disableTimeoutId&&window.clearTimeout(i.disableTimeoutId);i.disableTimeoutId=null;i.startX=i.lastX=e.clientX;i.startScrollLeft=i.scrollElement.scrollLeft;i.scrollElement.style.setProperty("scroll-behavior","auto");i.scrollElement.style.setProperty("scroll-snap-type","unset");i.dragging=true;i.autoplay=false;window.addEventListener("mousemove",i.mouseMove);window.addEventListener("mouseup",i.stopDragging,{capture:true});window.addEventListener("click",i.checkClick,{capture:true})};this.stopDragging=function(e){e.preventDefault();var t=Math.abs(i.startX-i.lastX);var s=t>i.distanceQuickSwipe;var r=i.lastX>i.startX?1:-1;i.dragging=false;var o=i.scrollElement.scrollLeft;i.scrollElement.style.removeProperty("scroll-snap-type");var l=i.scrollElement.scrollLeft;i.scrollElement.style.setProperty("scroll-snap-type","unset");i.scrollElement.scrollTo({left:o,behavior:"auto"});if(l!==i.startScrollLeft||!s){i.scrollElement.scrollTo({left:l,behavior:d.matches?"auto":"smooth"})}else if(r===1){i.slideToPrevious()}else{i.slideToNext()}window.removeEventListener("mousemove",i.mouseMove);window.removeEventListener("mouseup",i.stopDragging,{capture:true});i.stoppedDragging=true};this.checkClick=function(e){var t=Math.abs(i.startX-i.lastX);var s=t>i.distancePreventClick;if(s){e.preventDefault()}i.lastX=null;window.removeEventListener("click",i.checkClick,{capture:true})};this.autoplayInterval=function(){i.scrolledByAutoplay=true;if(i.hasReachedLastSlide()){i.slideTo(0)}else{i.slideToNext()}};this.localization=undefined;this.variant="default";this.disabled=false;this.slides=1;this.slidesSmall=0;this.slidesMedium=0;this.slidesLarge=0;this.slidesUltra=0;this.slide=0;this.autoplay=false;this.tabThrough=false;this.preventMouseDrag=false;this.scrollTimeout=100;this.autoplayTimeout=3e3;this.distanceQuickSwipe=40;this.distancePreventClick=6;this.autoplayRunning=false;this.autoplayDisabledByMotionMedia=false;this.autoplayDisabledByMouse=false;this.autoplayDisabledByFocus=false;this.dragging=false;this.scrolling=false;this.ariaLive="";this.currentSlides=1;this.currentSwipeSlides=1;this.slideElements=[];this.previousElements=[];this.nextElements=[];this.navigationTextElements=[]}e.prototype.slideTo=function(e,t){if(t===void 0){t="smooth"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(s){this.scrollToSlide(e,t);return[2]}))}))};e.prototype.slideToPrevious=function(e){if(e===void 0){e="smooth"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.scrollToPreviousSnapPoint(e);return[2]}))}))};e.prototype.slideToNext=function(e){if(e===void 0){e="smooth"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.scrollToNextSnapPoint(e);return[2]}))}))};e.prototype.disabledWatcher=function(){if(this.disabled){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this.onScroll);this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=null;this.element.removeEventListener("mouseenter",this.onMouseenter);this.element.removeEventListener("mouseleave",this.onMouseleave);this.element.removeEventListener("focusin",this.onFocusin);this.element.removeEventListener("focusout",this.onFocusout);this.onReducedMotionMediaChange();d&&d.removeEventListener("change",this.onReducedMotionMediaChange)}else{this.scrollElement&&this.scrollElement.addEventListener("scroll",this.onScroll,{passive:true});this.element.addEventListener("mouseenter",this.onMouseenter);this.element.addEventListener("mouseleave",this.onMouseleave);this.element.addEventListener("focusin",this.onFocusin);this.element.addEventListener("focusout",this.onFocusout);d&&d.addEventListener("change",this.onReducedMotionMediaChange)}};e.prototype.preventMouseDragWatcher=function(){if(this.preventMouseDrag||this.disabled){this.disableTimeoutId&&window.clearTimeout(this.disableTimeoutId);this.disableTimeoutId=null;this.scrollElement&&this.scrollElement.removeEventListener("mousedown",this.startDragging);this.lastX=null}else{this.scrollElement&&this.scrollElement.addEventListener("mousedown",this.startDragging)}};e.prototype.autoplayRunningWatcher=function(){if(!this.autoplay||this.disabled||this.autoplayDisabledByMotionMedia||this.autoplayDisabledByMouse||this.autoplayDisabledByFocus){this.autoplayIntervalId&&window.clearInterval(this.autoplayIntervalId);this.autoplayIntervalId=null;this.autoplayRunning=false}else{this.autoplayIntervalId&&window.clearInterval(this.autoplayIntervalId);this.autoplayIntervalId=window.setInterval(this.autoplayInterval,this.autoplayTimeout);this.autoplayRunning=true}};e.prototype.snapAlignWatcher=function(){var e=this;this.slideElements.forEach((function(t,s){var i=(s-e.currentSwipeSlides)%e.currentSwipeSlides===0;if(i){t.style.removeProperty("scroll-snap-align")}else{t.style.setProperty("scroll-snap-align","none")}}))};e.prototype.inertWatcher=function(){var e=this;this.slideElements.forEach((function(t,s){var i=e.tabThrough||e.variant==="cards"||s>=e.slide&&s<e.slide+e.currentSlides;t.inert=!i;if(i){t.removeAttribute("aria-hidden")}else{t.setAttribute("aria-hidden",i?"false":"true")}}))};e.prototype.prevNextNavigationWatcher=function(){var e=this.tabThrough||this.variant==="cards";var t=function(t){var s=l(t);if(e){t.setAttribute("aria-hidden","true");t.setAttribute(s?"a11y-tabindex":"tabindex","-1")}else{t.removeAttribute("aria-hidden");t.removeAttribute(s?"a11y-tabindex":"tabindex")}};this.nextElements.forEach(t);this.previousElements.forEach(t)};e.prototype.prevNextHiddenWatcher=function(){var e=this.slideElements.length<=this.currentSlides;var t=function(t){if(e){t.setAttribute("hidden","")}else{t.removeAttribute("hidden")}};this.navigationTextElements.forEach(t);this.nextElements.forEach(t);this.previousElements.forEach(t)};e.prototype.nextPrevDisabledWatcher=function(){if(!this.scrollElement){return}var e=this.slide===0;var t=this.hasReachedLastSlide();this.nextElements.forEach((function(e){var s=l(e);e.setAttribute(s?"a11y-disabled":"aria-disabled",t?"true":"false")}));this.previousElements.forEach((function(t){var s=l(t);t.setAttribute(s?"a11y-disabled":"aria-disabled",e?"true":"false")}))};e.prototype.nextElementsWatcher=function(){var e=this;this.nextElements.forEach((function(t){var s=l(t);t.addEventListener("click",e.onNextClick);t.setAttribute(s?"a11y-controls":"aria-controls","".concat(e.carouselId,"-scroll"))}))};e.prototype.previousElementsWatcher=function(){var e=this;this.previousElements.forEach((function(t){var s=l(t);t.addEventListener("click",e.onPreviousClick);t.setAttribute(s?"a11y-controls":"aria-controls","".concat(e.carouselId,"-scroll"))}))};e.prototype.scrollToSlide=function(e,t){if(t===void 0){t="smooth"}if(this.disabled){return}this.scrollElement.scrollTo({left:e*this.itemSize,behavior:d.matches?"auto":t})};e.prototype.sizingMethod=function(){var e=window.getComputedStyle(this.scrollElement);return this.scrollElement.firstElementChild.offsetWidth+parseInt(e.getPropertyValue("column-gap"),10)};e.prototype.calculateSlide=function(){return Math.floor(this.scrollElement.scrollLeft/this.itemSize)};e.prototype.scrollToPreviousSnapPoint=function(e){if(e===void 0){e="smooth"}if(this.disabled){return}var t=this.slide;var s=false;while(!s&&t>0){t=t-1;s=(t-this.currentSwipeSlides)%this.currentSwipeSlides===0}this.slideTo(t,e)};e.prototype.scrollToNextSnapPoint=function(e){if(e===void 0){e="smooth"}if(this.disabled){return}this.slideTo(this.slide+this.currentSwipeSlides,e)};e.prototype.update=function(){this.slide=this.calculateSlide();this.slideScrollLeft=this.slide*this.itemSize;this.onMutation()};e.prototype.hasReachedLastSlide=function(){var e=this.scrollElement,t=e.scrollLeft,s=e.offsetWidth,i=e.scrollWidth;return Math.ceil(t+s)>=i};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.carouselId="stzh-carousel-".concat(p++);this.onMediaChange();if(!!this.localization)return[3,2];e=this;return[4,a(this.element,"carousel")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.componentDidLoad=function(){this.itemSize=this.sizingMethod();this.update();this.disabledWatcher();this.preventMouseDragWatcher();this.autoplayRunningWatcher()};e.prototype.connectedCallback=function(){n(this.onMediaChange);this.resizeObserver=new ResizeObserver(this.onSlideResize);this.resizeObserver.observe(this.element);this.mutationObserver=new MutationObserver(this.onMutation);this.mutationObserver.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=null;this.disabled=true;c(this.onMediaChange);if(this.resizeObserver){this.resizeObserver.disconnect()}if(this.mutationObserver){this.mutationObserver.disconnect()}};e.prototype.render=function(){var e=this;var t={"stzh-carousel":true,"stzh-carousel--is-disabled":this.disabled,"stzh-carousel--is-draggable":!this.preventMouseDrag,"stzh-carousel--is-dragging":this.dragging,"stzh-carousel--is-scrolling":this.scrolling,"stzh-carousel--has-autoplay":this.autoplay,"stzh-carousel--is-autoplay-running":this.autoplayRunning,"stzh-carousel--is-autoplay-disabled-by-motion-media":this.autoplayDisabledByMotionMedia,"stzh-carousel--is-autoplay-disabled-by-mouse":this.autoplayDisabledByMouse,"stzh-carousel--is-autoplay-disabled-by-focus":this.autoplayDisabledByFocus};return i(r,{"aria-roledescription":"carousel",style:{"--slides":this.currentSlides.toString()}},i("div",{class:t},i("slot",{name:"actions"}),i("div",{class:"stzh-carousel__vhidden","aria-live":this.autoplayDisabledByFocus||this.autoplayDisabledByMouse?"polite":"off"},this.ariaLive),i("div",{ref:function(t){return e.scrollElement=t},id:"".concat(this.carouselId,"-scroll"),class:"stzh-carousel__scroll"},i("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledWatcher","preventMouseDragWatcher","autoplayRunningWatcher"],preventMouseDrag:["preventMouseDragWatcher"],autoplay:["autoplayRunningWatcher"],autoplayDisabledByMotionMedia:["autoplayRunningWatcher"],autoplayDisabledByMouse:["autoplayRunningWatcher"],autoplayDisabledByFocus:["autoplayRunningWatcher"],autoplayTimeout:["autoplayRunningWatcher"],slideElements:["snapAlignWatcher","inertWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher"],currentSwipeSlides:["snapAlignWatcher"],slide:["inertWatcher","nextPrevDisabledWatcher"],variant:["inertWatcher","prevNextNavigationWatcher"],currentSlides:["inertWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher"],tabThrough:["inertWatcher","prevNextNavigationWatcher"],nextElements:["prevNextNavigationWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher","nextElementsWatcher"],previousElements:["prevNextNavigationWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher","previousElementsWatcher"],navigationTextElements:["prevNextHiddenWatcher"]}},enumerable:false,configurable:true});return e}());v.style=h}}}));
|
|
2
|
+
//# sourceMappingURL=p-2ec243e8.system.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,a as o,g as e}from"./p-9e02896c.js";import{c as h,a,A as r,o as l,f as n,s as c,b as p}from"./p-9dc36e07.js";import{c as d}from"./p-75bc73a1.js";import{i as z}from"./p-5c697491.js";import{f}from"./p-25a09313.js";import{w as m}from"./p-df2bb358.js";import{s as b,a as u}from"./p-5011f10c.js";const w=".sc-stzh-tooltip-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-tooltip-h{display:none}.sc-stzh-tooltip-h *.sc-stzh-tooltip,.sc-stzh-tooltip-h *.sc-stzh-tooltip::before,.sc-stzh-tooltip-h *.sc-stzh-tooltip::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-tooltip-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-tooltip-padding);--border-radius:var(--stzh-tooltip-border-radius)}.stzh-tooltip__arrow.sc-stzh-tooltip{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-tooltip--placement-bottom.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-tooltip--placement-top.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-tooltip--placement-left.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-tooltip--placement-right.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}.stzh-tooltip__content.sc-stzh-tooltip{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:absolute;z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--border-radius);background-color:var(--stzh-color-white);width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-tooltip__content.sc-stzh-tooltip{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-tooltip__content-slot.sc-stzh-tooltip{padding:var(--padding)}.stzh-tooltip__close.sc-stzh-tooltip{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}.stzh-tooltip__icon.sc-stzh-tooltip{--size:var(--stzh-icon-size-xxsmall)}.stzh-tooltip__vhidden.sc-stzh-tooltip{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";const g={keyframes:[{opacity:"0"},{opacity:"1"}],options:{duration:100,easing:"linear"}};const v={keyframes:[{opacity:"1"},{opacity:"0"}],options:{duration:200,easing:"linear"}};const _={ESC:27};let x=0;const y=class{constructor(i){t(this,i);this.stzhOpen=s(this,"stzhOpen",7);this.stzhOpened=s(this,"stzhOpened",7);this.stzhClose=s(this,"stzhClose",7);this.stzhClosed=s(this,"stzhClosed",7);this.toggledByMethod=false;this.isHovering=false;this.onEscKey=t=>{if(t.keyCode===_.ESC){this.hide()}};this.computePosition=async()=>{if(!this.open){return}const{x:t=0,y:s=0,strategy:i="absolute",placement:o,middlewareData:e}=await h(this.triggerElement.firstElementChild,this.contentElement,{strategy:this.strategy,placement:this.placement,middleware:[l({mainAxis:this.distance,crossAxis:this.skidding}),n({padding:5}),c({padding:5}),p({element:this.arrowElement,padding:5})]});this.middlewareData=e;this.computedPlacement=o;Object.assign(this.contentElement.style,{position:i,left:`${t}px`,top:`${s}px`});Object.assign(this.arrowElement.style,{left:t!=null?`${e.arrow.x}px`:"",top:s!=null?`${e.arrow.y}px`:""})};this.onClickTrigger=()=>{if(this.hasTrigger("click")){this.toggle()}};this.onMouseEnterTrigger=()=>{if(this.hasTrigger("hover")){this.isHovering=true;this.show()}};this.onMouseLeaveTrigger=()=>{if(this.hasTrigger("hover")){this.isHovering=false;document.addEventListener("mousemove",this.onMouseMoveDocument)}};this.onFocusTrigger=()=>{if(this.hasTrigger("focus")){this.show()}};this.onBlurTrigger=()=>{if(this.hasTrigger("focus")){this.hide()}};this.onMouseMoveDocument=t=>{const{clientX:s,clientY:i}=t;if(!this.computedPlacement){return true}const o=this.computedPlacement.split("-")[0];const e=this.middlewareData.offset;const h=this.contentElement.getBoundingClientRect();if(!e){return true}const a=o==="bottom"?e.y:0;const r=o==="top"?e.y:0;const l=o==="right"?e.x:0;const n=o==="left"?e.x:0;const c=h.top-i>a;const p=i-h.bottom>r;const d=h.left-s>l;const z=s-h.right>n;if(c||p||d||z){document.removeEventListener("mousemove",this.onMouseMoveDocument);if(!this.isHovering){this.hide()}}};this.open=false;this.label="";this.content="";this.placement="bottom";this.strategy="absolute";this.skidding=0;this.distance=16;this.interactive=false;this.trigger="hover focus";this.localization=undefined;this.computedPlacement=undefined}async show(){if(this.open){return}this.toggledByMethod=true;this.open=true;return m(this.element,"stzhOpened")}async hide(){if(!this.open){return}this.toggledByMethod=true;this.open=false;return m(this.element,"stzhClosed")}async toggle(){if(this.open){return await this.hide()}else{return await this.show()}}async update(){return await this.computePosition()}async openWatcher(t){if(!this.contentElement){return}if(t){if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-tooltip"})}await b(this.contentElement);this.contentElement.style.willChange="transform, opacity, position, top, left, bottom, right";this.contentElement.hidden=false;await u(this.contentElement,g.keyframes,g.options);if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-tooltip"})}}else{if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-tooltip"})}await b(this.contentElement);await u(this.contentElement,v.keyframes,v.options);this.contentElement.hidden=true;this.contentElement.style.willChange="auto";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-tooltip"})}}this.toggledByMethod=false}triggerWatcher(t){this._trigger=t.split(" ")}handleDocumentClick(t){if(!this.open){return}const s=t.target!==this.contentElement&&this.contentElement.contains(t.target)===false;const i=t.target===this.triggerElement||this.triggerElement.contains(t.target);if(s&&!i&&this.hasTrigger("click")){this.hide()}}hasTrigger(t){return this._trigger.indexOf(t)>-1}async componentWillLoad(){this.id=`stzh-tooltip-${x++}`;this.triggerWatcher(this.trigger);if(!this.localization){this.localization=await f(this.element,"tooltip")}}componentDidRender(){this.computePosition();const t=z(this.triggerElement.firstElementChild);if(this.hasTrigger("click")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false");if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||!t&&!this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby",`${this.id}-trigger-description`)}if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-label")||!t&&!this.triggerElement.firstElementChild.getAttribute("aria-label")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-label":"aria-label",this.label)}if(t&&!this.triggerElement.firstElementChild.getAttribute("analytics-id")||!t&&!this.triggerElement.firstElementChild.getAttribute("s-object-id")){this.triggerElement.firstElementChild.setAttribute(t?"analytics-id":"s-object-id",this.label)}}else{if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||!t&&!this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby",`${this.id}-content`)}}if(this.trap){this.open?this.trap.activate():this.trap.deactivate()}}componentDidUpdate(){if(this.trap){this.trap.updateContainerElements(this.contentElement)}}componentDidLoad(){this.autoUpdateCleanup=a(this.element,this.contentElement,this.computePosition);if(this.interactive){this.trap=d(this.contentElement,{fallbackFocus:this.contentElement,clickOutsideDeactivates:true,returnFocusOnDeactivate:true});if(this.open){this.trap.activate()}}this.contentElement.hidden=!this.open}connectedCallback(){var t;let s=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!s){const t=Array.from(this.element.children).find((t=>!t.hasAttribute("slot")));s=t}if(s){s.addEventListener("click",this.onClickTrigger);s.addEventListener("mouseenter",this.onMouseEnterTrigger);s.addEventListener("mouseleave",this.onMouseLeaveTrigger);s.addEventListener("focusin",this.onFocusTrigger);s.addEventListener("focusout",this.onBlurTrigger)}}disconnectedCallback(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger);this.triggerElement.firstElementChild.removeEventListener("mouseenter",this.onMouseEnterTrigger);this.triggerElement.firstElementChild.removeEventListener("mouseleave",this.onMouseLeaveTrigger);this.triggerElement.firstElementChild.removeEventListener("focusin",this.onFocusTrigger);this.triggerElement.firstElementChild.removeEventListener("focusout",this.onBlurTrigger)}}render(){const t={"stzh-tooltip":true,[`stzh-tooltip--open`]:this.open,[`stzh-tooltip--placement-${this.computedPlacement}`]:!!this.computedPlacement};return i(o,null,i("div",{class:t},i("div",{class:"stzh-tooltip__trigger",ref:t=>this.triggerElement=t},i("slot",null)),this.hasTrigger("click")&&i("div",{class:"stzh-tooltip__vhidden",id:`${this.id}-trigger-description`},this.localization.open),i("div",{class:"stzh-tooltip__content",id:`${this.id}-content`,ref:t=>this.contentElement=t,tabindex:"-1","aria-labelledby":this.label?`${this.id}-label`:null,"aria-hidden":this.open?"false":"true",onKeyDown:this.onEscKey,onMouseEnter:this.onMouseEnterTrigger,onMouseLeave:this.onMouseLeaveTrigger,onFocusin:this.onFocusTrigger,onFocusout:this.onBlurTrigger},i("div",{class:"stzh-tooltip__arrow",ref:t=>this.arrowElement=t,innerHTML:r}),this.label&&i("h2",{id:`${this.id}-label`,class:"stzh-tooltip__vhidden"},this.label),this.hasTrigger("click")&&i("button",{class:"stzh-tooltip__close",onClick:()=>this.hide(),type:"button"},i("stzh-icon",{name:"close",class:"stzh-tooltip__icon"}),i("span",{class:"stzh-tooltip__vhidden"},this.localization.close)),i("div",{class:"stzh-tooltip__content-slot"},this.content?this.content:i("slot",{name:"content"})))))}get element(){return e(this)}static get watchers(){return{open:["openWatcher"],trigger:["triggerWatcher"]}}};y.style=w;export{y as stzh_tooltip};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i,a as o,g as e}from"./p-9e02896c.js";import{c as h,a,A as r,o as l,f as n,s as c,b as p}from"./p-9dc36e07.js";import{c as d}from"./p-75bc73a1.js";import{i as z}from"./p-fc339100.js";import{f}from"./p-25a09313.js";import{w as m}from"./p-df2bb358.js";import{s as b,a as u}from"./p-5011f10c.js";const w=".sc-stzh-tooltip-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-tooltip-h{display:none}.sc-stzh-tooltip-h *.sc-stzh-tooltip,.sc-stzh-tooltip-h *.sc-stzh-tooltip::before,.sc-stzh-tooltip-h *.sc-stzh-tooltip::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-tooltip-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-tooltip-padding);--border-radius:var(--stzh-tooltip-border-radius)}.stzh-tooltip__arrow.sc-stzh-tooltip{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-tooltip--placement-bottom.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-tooltip--placement-top.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-tooltip--placement-left.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-tooltip--placement-right.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}.stzh-tooltip__content.sc-stzh-tooltip{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:absolute;z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--border-radius);background-color:var(--stzh-color-white);width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-tooltip__content.sc-stzh-tooltip{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-tooltip__content-slot.sc-stzh-tooltip{padding:var(--padding)}.stzh-tooltip__close.sc-stzh-tooltip{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}.stzh-tooltip__icon.sc-stzh-tooltip{--size:var(--stzh-icon-size-xxsmall)}.stzh-tooltip__vhidden.sc-stzh-tooltip{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";const g={keyframes:[{opacity:"0"},{opacity:"1"}],options:{duration:100,easing:"linear"}};const v={keyframes:[{opacity:"1"},{opacity:"0"}],options:{duration:200,easing:"linear"}};const _={ESC:27};let x=0;const y=class{constructor(i){t(this,i);this.stzhOpen=s(this,"stzhOpen",7);this.stzhOpened=s(this,"stzhOpened",7);this.stzhClose=s(this,"stzhClose",7);this.stzhClosed=s(this,"stzhClosed",7);this.toggledByMethod=false;this.isHovering=false;this.onEscKey=t=>{if(t.keyCode===_.ESC){this.hide()}};this.computePosition=async()=>{if(!this.open){return}const{x:t=0,y:s=0,strategy:i="absolute",placement:o,middlewareData:e}=await h(this.triggerElement.firstElementChild,this.contentElement,{strategy:this.strategy,placement:this.placement,middleware:[l({mainAxis:this.distance,crossAxis:this.skidding}),n({padding:5}),c({padding:5}),p({element:this.arrowElement,padding:5})]});this.middlewareData=e;this.computedPlacement=o;Object.assign(this.contentElement.style,{position:i,left:`${t}px`,top:`${s}px`});Object.assign(this.arrowElement.style,{left:t!=null?`${e.arrow.x}px`:"",top:s!=null?`${e.arrow.y}px`:""})};this.onClickTrigger=()=>{if(this.hasTrigger("click")){this.toggle()}};this.onMouseEnterTrigger=()=>{if(this.hasTrigger("hover")){this.isHovering=true;this.show()}};this.onMouseLeaveTrigger=()=>{if(this.hasTrigger("hover")){this.isHovering=false;document.addEventListener("mousemove",this.onMouseMoveDocument)}};this.onFocusTrigger=()=>{if(this.hasTrigger("focus")){this.show()}};this.onBlurTrigger=()=>{if(this.hasTrigger("focus")){this.hide()}};this.onMouseMoveDocument=t=>{const{clientX:s,clientY:i}=t;if(!this.computedPlacement){return true}const o=this.computedPlacement.split("-")[0];const e=this.middlewareData.offset;const h=this.contentElement.getBoundingClientRect();if(!e){return true}const a=o==="bottom"?e.y:0;const r=o==="top"?e.y:0;const l=o==="right"?e.x:0;const n=o==="left"?e.x:0;const c=h.top-i>a;const p=i-h.bottom>r;const d=h.left-s>l;const z=s-h.right>n;if(c||p||d||z){document.removeEventListener("mousemove",this.onMouseMoveDocument);if(!this.isHovering){this.hide()}}};this.open=false;this.label="";this.content="";this.placement="bottom";this.strategy="absolute";this.skidding=0;this.distance=16;this.interactive=false;this.trigger="hover focus";this.localization=undefined;this.computedPlacement=undefined}async show(){if(this.open){return}this.toggledByMethod=true;this.open=true;return m(this.element,"stzhOpened")}async hide(){if(!this.open){return}this.toggledByMethod=true;this.open=false;return m(this.element,"stzhClosed")}async toggle(){if(this.open){return await this.hide()}else{return await this.show()}}async update(){return await this.computePosition()}async openWatcher(t){if(!this.contentElement){return}if(t){if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-tooltip"})}await b(this.contentElement);this.contentElement.style.willChange="transform, opacity, position, top, left, bottom, right";this.contentElement.hidden=false;await u(this.contentElement,g.keyframes,g.options);if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-tooltip"})}}else{if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-tooltip"})}await b(this.contentElement);await u(this.contentElement,v.keyframes,v.options);this.contentElement.hidden=true;this.contentElement.style.willChange="auto";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-tooltip"})}}this.toggledByMethod=false}triggerWatcher(t){this._trigger=t.split(" ")}handleDocumentClick(t){if(!this.open){return}const s=t.target!==this.contentElement&&this.contentElement.contains(t.target)===false;const i=t.target===this.triggerElement||this.triggerElement.contains(t.target);if(s&&!i&&this.hasTrigger("click")){this.hide()}}hasTrigger(t){return this._trigger.indexOf(t)>-1}async componentWillLoad(){this.id=`stzh-tooltip-${x++}`;this.triggerWatcher(this.trigger);if(!this.localization){this.localization=await f(this.element,"tooltip")}}componentDidRender(){this.computePosition();const t=z(this.triggerElement.firstElementChild);if(this.hasTrigger("click")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false");if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||!t&&!this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby",`${this.id}-trigger-description`)}if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-label")||!t&&!this.triggerElement.firstElementChild.getAttribute("aria-label")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-label":"aria-label",this.label)}if(t&&!this.triggerElement.firstElementChild.getAttribute("analytics-id")||!t&&!this.triggerElement.firstElementChild.getAttribute("s-object-id")){this.triggerElement.firstElementChild.setAttribute(t?"analytics-id":"s-object-id",this.label)}}else{if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||!t&&!this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby",`${this.id}-content`)}}if(this.trap){this.open?this.trap.activate():this.trap.deactivate()}}componentDidUpdate(){if(this.trap){this.trap.updateContainerElements(this.contentElement)}}componentDidLoad(){this.autoUpdateCleanup=a(this.element,this.contentElement,this.computePosition);if(this.interactive){this.trap=d(this.contentElement,{fallbackFocus:this.contentElement,clickOutsideDeactivates:true,returnFocusOnDeactivate:true});if(this.open){this.trap.activate()}}this.contentElement.hidden=!this.open}connectedCallback(){var t;let s=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!s){const t=Array.from(this.element.children).find((t=>!t.hasAttribute("slot")));s=t}if(s){s.addEventListener("click",this.onClickTrigger);s.addEventListener("mouseenter",this.onMouseEnterTrigger);s.addEventListener("mouseleave",this.onMouseLeaveTrigger);s.addEventListener("focusin",this.onFocusTrigger);s.addEventListener("focusout",this.onBlurTrigger)}}disconnectedCallback(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger);this.triggerElement.firstElementChild.removeEventListener("mouseenter",this.onMouseEnterTrigger);this.triggerElement.firstElementChild.removeEventListener("mouseleave",this.onMouseLeaveTrigger);this.triggerElement.firstElementChild.removeEventListener("focusin",this.onFocusTrigger);this.triggerElement.firstElementChild.removeEventListener("focusout",this.onBlurTrigger)}}render(){const t={"stzh-tooltip":true,[`stzh-tooltip--open`]:this.open,[`stzh-tooltip--placement-${this.computedPlacement}`]:!!this.computedPlacement};return i(o,null,i("div",{class:t},i("div",{class:"stzh-tooltip__trigger",ref:t=>this.triggerElement=t},i("slot",null)),this.hasTrigger("click")&&i("div",{class:"stzh-tooltip__vhidden",id:`${this.id}-trigger-description`},this.localization.open),i("div",{class:"stzh-tooltip__content",id:`${this.id}-content`,ref:t=>this.contentElement=t,tabindex:"-1","aria-labelledby":this.label?`${this.id}-label`:null,"aria-hidden":this.open?"false":"true",onKeyDown:this.onEscKey,onMouseEnter:this.onMouseEnterTrigger,onMouseLeave:this.onMouseLeaveTrigger,onFocusin:this.onFocusTrigger,onFocusout:this.onBlurTrigger},i("div",{class:"stzh-tooltip__arrow",ref:t=>this.arrowElement=t,innerHTML:r}),this.label&&i("h2",{id:`${this.id}-label`,class:"stzh-tooltip__vhidden"},this.label),this.hasTrigger("click")&&i("button",{class:"stzh-tooltip__close",onClick:()=>this.hide(),type:"button"},i("stzh-icon",{name:"close",class:"stzh-tooltip__icon"}),i("span",{class:"stzh-tooltip__vhidden"},this.localization.close)),i("div",{class:"stzh-tooltip__content-slot"},this.content?this.content:i("slot",{name:"content"})))))}get element(){return e(this)}static get watchers(){return{open:["openWatcher"],trigger:["triggerWatcher"]}}};y.style=w;export{y as stzh_tooltip};
|
|
2
|
+
//# sourceMappingURL=p-33da1a1c.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-7b184ebb.system.js"],(function(e){"use strict";var s,a,t;return{setters:[function(e){s=e.r;a=e.h;t=e.a}],execute:function(){var i=":host{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}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host{--v-space:var(--stzh-space-default);--v-around:0;display:-ms-flexbox;display:flex}:host ::slotted(*){max-width:100%;padding-top:calc(var(--v-space) * var(--v-around));padding-bottom:calc(var(--v-space) * var(--v-around));margin:0}:host ::slotted(*:not(:last-child)){margin-bottom:calc(var(--v-space) * (1 - var(--v-around)))}:host ::slotted(stzh-vspace),:host ::slotted(stzh-hspace),:host ::slotted(stzh-row),:host ::slotted(stzh-container),:host ::slotted(stzh-section){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-positive:1;flex-grow:1}:host(:empty){--v-around:1;height:var(--v-space)}:host([around]:not([around=false])){--v-around:1}:host([border=top]),:host([border=top-bottom]){border-top:0.0625rem solid var(--stzh-base-border-color)}:host([border=bottom]),:host([border=top-bottom]){border-bottom:0.0625rem solid var(--stzh-base-border-color)}:host([curve=tiny]){--v-space:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){:host([curve=tiny]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([curve=tiny]){--v-space:var(--stzh-space-medium)}}:host([curve=small]){--v-space:var(--stzh-space-small)}@media screen and (min-width: 1024px){:host([curve=small]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([curve=small]){--v-space:var(--stzh-space-large)}}:host([curve=regular]){--v-space:var(--stzh-space-medium)}@media screen and (min-width: 1024px){:host([curve=regular]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([curve=regular]){--v-space:var(--stzh-space-xlarge)}}:host([curve=medium]){--v-space:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){:host([curve=medium]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([curve=medium]){--v-space:var(--stzh-space-xxxlarge)}}:host([curve=large]){--v-space:var(--stzh-space-xxlarge)}@media screen and (min-width: 1024px){:host([curve=large]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([curve=large]){--v-space:var(--stzh-space-xxxxlarge)}}:host([curve=big]){--v-space:var(--stzh-space-xxxlarge)}@media screen and (min-width: 600px){:host([curve=big]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([curve=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([curve=big]){--v-space:var(--stzh-space-xbig)}}:host([curve=huge]){--v-space:var(--stzh-space-xxxxlarge)}@media screen and (min-width: 600px){:host([curve=huge]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([curve=huge]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([curve=huge]){--v-space:var(--stzh-space-huge)}}:host([size=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}:host([size=xxsmall]){--v-space:var(--stzh-space-xxsmall)}:host([size=xsmall]){--v-space:var(--stzh-space-xsmall)}:host([size=small]){--v-space:var(--stzh-space-small)}:host([size=medium]){--v-space:var(--stzh-space-medium)}:host([size=large]){--v-space:var(--stzh-space-large)}:host([size=xlarge]){--v-space:var(--stzh-space-xlarge)}:host([size=xxlarge]){--v-space:var(--stzh-space-xxlarge)}:host([size=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}:host([size=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}:host([size=big]){--v-space:var(--stzh-space-big)}:host([size=xbig]){--v-space:var(--stzh-space-xbig)}:host([size=huge]){--v-space:var(--stzh-space-huge)}:host([size=xhuge]){--v-space:var(--stzh-space-xhuge)}:host([size=none]){--v-space:var(--stzh-space-none)}:host([size=default]){--v-space:var(--stzh-space-default)}@media screen and (min-width: 600px){:host([size-small=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 600px){:host([size-small=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 600px){:host([size-small=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 600px){:host([size-small=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 600px){:host([size-small=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 600px){:host([size-small=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 600px){:host([size-small=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 600px){:host([size-small=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){:host([size-small=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 600px){:host([size-small=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){:host([size-small=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 600px){:host([size-small=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 600px){:host([size-small=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 600px){:host([size-small=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 800px){:host([size-smallheader=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 800px){:host([size-smallheader=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 800px){:host([size-smallheader=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 800px){:host([size-smallheader=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 800px){:host([size-smallheader=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 800px){:host([size-smallheader=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 800px){:host([size-smallheader=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 800px){:host([size-smallheader=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1024px){:host([size-medium=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1024px){:host([size-medium=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1024px){:host([size-medium=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){:host([size-medium=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1024px){:host([size-medium=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([size-medium=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1024px){:host([size-medium=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){:host([size-medium=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1024px){:host([size-medium=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1024px){:host([size-medium=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1260px){:host([size-large=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1260px){:host([size-large=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([size-large=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([size-large=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([size-large=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([size-large=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([size-large=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1260px){:host([size-large=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1260px){:host([size-large=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1260px){:host([size-large=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1440px){:host([size-ultra=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){:host([size-ultra=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1440px){:host([size-ultra=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1440px){:host([size-ultra=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1440px){:host([size-ultra=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1440px){:host([size-ultra=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1440px){:host([size-ultra=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1440px){:host([size-ultra=default]){--v-space:var(--stzh-space-default)}}.stzh-vspace{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start;padding:0;margin:0;}.stzh-vspace--border-top{border-top:0.0625rem solid var(--stzh-base-border-color)}.stzh-vspace--border-bottom{border-bottom:0.0625rem solid var(--stzh-base-border-color)}.stzh-vspace--justify-center{-ms-flex-pack:center;justify-content:center}.stzh-vspace--justify-end{-ms-flex-pack:end;justify-content:flex-end}.stzh-vspace--justify-between{-ms-flex-pack:justify;justify-content:space-between}.stzh-vspace--justify-around{-ms-flex-pack:distribute;justify-content:space-around}.stzh-vspace--justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.stzh-vspace--items-end{-ms-flex-align:end;align-items:flex-end}.stzh-vspace--items-center{-ms-flex-align:center;align-items:center}.stzh-vspace--items-baseline{-ms-flex-align:baseline;align-items:baseline}.stzh-vspace--items-stretch{-ms-flex-align:stretch;align-items:stretch}";var r=e("stzh_vspace",function(){function e(e){s(this,e);this.curve="none";this.size="inherit";this.sizeSmall="inherit";this.sizeMedium="inherit";this.sizeLarge="inherit";this.sizeUltra="inherit";this.justify="start";this.items="start";this.around=false;this.border="none"}e.prototype.render=function(){var e;return a(t,null,a("div",{class:(e={"stzh-vspace":true},e["stzh-vspace--justify-".concat(this.justify)]=!!this.justify,e["stzh-vspace--items-".concat(this.items)]=!!this.items,e)},a("slot",null)))};return e}());r.style=i}}}));
|
|
2
|
+
//# sourceMappingURL=p-35a328cc.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stzhVspaceCss","StzhVspace","exports","class_1","prototype","render","h","Host","class","_a","concat","this","justify","items"],"sources":["src/components/stzh-vspace/stzh-vspace.scss?tag=stzh-vspace&encapsulation=shadow","src/components/stzh-vspace/stzh-vspace.tsx"],"sourcesContent":[":host {\n --v-space: #{space()};\n --v-around: 0;\n\n display: flex;\n\n ::slotted(*) {\n // fix IE11 not wrapping text\n max-width: 100%;\n padding-top: calc(var(--v-space) * var(--v-around));\n padding-bottom: calc(var(--v-space) * var(--v-around));\n margin: 0;\n }\n\n ::slotted(*:not(:last-child)) {\n margin-bottom: calc(var(--v-space) * (1 - var(--v-around)));\n }\n\n ::slotted(stzh-vspace),\n ::slotted(stzh-hspace),\n ::slotted(stzh-row),\n ::slotted(stzh-container),\n ::slotted(stzh-section) {\n align-self: stretch;\n flex-grow: 1;\n }\n}\n\n:host(:empty) {\n --v-around: 1;\n\n height: var(--v-space);\n}\n\n:host([around]:not([around=\"false\"])) {\n --v-around: 1;\n}\n\n/* Border variants */\n\n:host([border=\"top\"]),\n:host([border=\"top-bottom\"]) {\n border-top: 1px solid $baseBorderColor;\n}\n\n:host([border=\"bottom\"]),\n:host([border=\"top-bottom\"]) {\n border-bottom: 1px solid $baseBorderColor;\n}\n\n/* Space variants */\n\n@each $spaceCurve, $value in $spaceCurves {\n $defaultSize: map-get($value, 'size');\n $breakpointSizes: map-get($value, 'sizes');\n\n // :host([curve=\"#{$spaceCurve}\"]) > .stzh-vspace {\n :host([curve=\"#{$spaceCurve}\"]) {\n --v-space: #{space($defaultSize)};\n\n @each $breakpoint, $size in $breakpointSizes {\n @include mq($from: $breakpoint) {\n --v-space: #{space($size)};\n }\n }\n }\n}\n\n@mixin spaceProps($breakpoint: null) {\n @each $space, $value in $spaceSizes {\n @if $breakpoint {\n // :host([size-#{$breakpoint}=\"#{$space}\"]) > .stzh-vspace {\n :host([size-#{$breakpoint}=\"#{$space}\"]) {\n @include mq($from: $breakpoint) {\n --v-space: #{$value};\n }\n }\n } @else {\n // :host([size=\"#{$space}\"]) > .stzh-vspace {\n :host([size=\"#{$space}\"]) {\n --v-space: #{$value};\n }\n }\n }\n}\n\n@include spaceProps();\n\n@each $breakpoint, $size in $breakpoints {\n @include spaceProps($breakpoint);\n}\n\n.stzh-vspace {\n flex-grow: 1;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n padding: 0;\n margin: 0;\n\n &--border-top {\n border-top: 1px solid $baseBorderColor;\n }\n\n &--border-bottom {\n border-bottom: 1px solid $baseBorderColor;\n }\n\n /* Justify content variants */\n\n &--justify-center {\n justify-content: center;\n }\n\n &--justify-end {\n justify-content: flex-end;\n }\n\n &--justify-between {\n justify-content: space-between;\n }\n\n &--justify-around {\n justify-content: space-around;\n }\n\n &--justify-evenly {\n justify-content: space-evenly;\n }\n\n /* Align items variants */\n\n &--items-end {\n align-items: flex-end;\n }\n\n &--items-center {\n align-items: center;\n }\n\n &--items-baseline {\n align-items: baseline;\n }\n\n &--items-stretch {\n align-items: stretch;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n} from \"@stencil/core\";\n\nimport { Space, Layout } from \"../../index\";\n\n/**\n * @slot - Slot for any elements that should be vertically spaced\n */\n@Component({\n tag: \"stzh-vspace\",\n styleUrl: \"stzh-vspace.scss\",\n shadow: true\n})\nexport class StzhVspace {\n /** Type of curve */\n @Prop() curve: Space.Curves = \"none\";\n\n /** Type of size */\n @Prop() size: Space.Sizes = \"inherit\";\n /** Type of size above small breakpoint */\n @Prop() sizeSmall: Space.Sizes = \"inherit\";\n /** Type of size above medium breakpoint */\n @Prop() sizeMedium: Space.Sizes = \"inherit\";\n /** Type of size above large breakpoint */\n @Prop() sizeLarge: Space.Sizes = \"inherit\";\n /** Type of size above ultra breakpoint */\n @Prop() sizeUltra: Space.Sizes = \"inherit\";\n\n /** Alignment */\n @Prop() justify: Layout.Justify = \"start\";\n\n /** Control how cells items are positioned along a container's cross axis */\n @Prop() items: Layout.Items = \"start\";\n\n /** Apply spacing to slotted elements */\n @Prop({ reflect: true }) around: boolean = false;\n\n /** Add border */\n @Prop({ reflect: true }) border: \"none\" | \"top\" | \"bottom\" | \"top-bottom\" = \"none\";\n\n render() {\n return (\n <Host>\n <div\n class={{\n \"stzh-vspace\": true,\n [`stzh-vspace--justify-${this.justify}`]: !!this.justify,\n [`stzh-vspace--items-${this.items}`]: !!this.items\n }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"kJAAA,IAAMA,EAAgB,kja,ICiBTC,EAAUC,EAAA,yB,mCAES,O,UAGF,U,eAEK,U,gBAEC,U,eAED,U,eAEA,U,aAGC,Q,WAGJ,Q,YAGa,M,YAGiC,M,CAE5EC,EAAAC,UAAAC,OAAA,W,MACE,OACEC,EAACC,EAAI,KACHD,EAAA,OACEE,OAAKC,EAAA,CACH,cAAe,MACfA,EAAC,wBAAAC,OAAwBC,KAAKC,YAAcD,KAAKC,QACjDH,EAAC,sBAAAC,OAAsBC,KAAKE,UAAYF,KAAKE,M,IAG/CP,EAAA,c,WArCa,I"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register([],(function(r){"use strict";return{execute:function(){r({a:e,b:t,c:n});function e(r){var e=r.replace(/^\s*(?:<br\s*\/?>\s*)*/i,"").replace(/\s*(?:<br\s*\/?>\s*)*$/i,"").replace(/(?:<br\s*\/?>\s*?){2,}/gi,"</p><p>");return"<p>".concat(e,"</p>")}function n(r){return r.replace(/-([a-z])/g,(function(r){return r[1].toUpperCase()}))}function t(r,e){if(r.length<=e){return r}var n=r.substring(0,e-1).lastIndexOf(" ");if(n){return r.substring(0,n)+"…"}else{return r.substring(0,e-1)}}}}}));
|
|
2
|
+
//# sourceMappingURL=p-3f72c05a.system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createParagraphsFromBrs","content","replaced","replace","concat","camelCase","dashString","g","toUpperCase","abbreviateText","text","length","lastWhitespaceIndex","substring","lastIndexOf"],"sources":["src/utils/string-utils.ts"],"sourcesContent":["export function createParagraphsFromBrs(content: string) {\n const replaced = content\n .replace(/^\\s*(?:<br\\s*\\/?>\\s*)*/i, \"\")\n .replace(/\\s*(?:<br\\s*\\/?>\\s*)*$/i, \"\")\n .replace(/(?:<br\\s*\\/?>\\s*?){2,}/gi, \"</p><p>\");\n\n return `<p>${replaced}</p>`;\n}\n\nexport function camelCase(dashString: string) {\n return dashString\n .replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n}\n\nexport function abbreviateText(text, length) {\n if (text.length <= length) {\n return text;\n }\n\n var lastWhitespaceIndex = text.substring(0, length - 1).lastIndexOf(' ');\n\n if (lastWhitespaceIndex) {\n return text.substring(0, lastWhitespaceIndex) + '\\u2026';\n } else {\n return text.substring(0, length - 1);\n }\n}\n"],"mappings":"iGAAgBA,EAAwBC,GACtC,IAAMC,EAAWD,EACdE,QAAQ,0BAA2B,IACnCA,QAAQ,0BAA2B,IACnCA,QAAQ,2BAA4B,WAEvC,MAAO,MAAAC,OAAMF,EAAQ,OACvB,C,SAEgBG,EAAUC,GACxB,OAAOA,EACJH,QAAQ,aAAa,SAAUI,GAC9B,OAAOA,EAAE,GAAGC,a,GAElB,C,SAEgBC,EAAeC,EAAMC,GACnC,GAAID,EAAKC,QAAUA,EAAQ,CACzB,OAAOD,C,CAGT,IAAIE,EAAsBF,EAAKG,UAAU,EAAGF,EAAS,GAAGG,YAAY,KAEpE,GAAIF,EAAqB,CACvB,OAAOF,EAAKG,UAAU,EAAGD,GAAuB,G,KAC3C,CACL,OAAOF,EAAKG,UAAU,EAAGF,EAAS,E,CAEtC,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-7b184ebb.system.js","./p-22a2f4c1.system.js"],(function(t){"use strict";var e,a,s,i,r,l;return{setters:[function(t){e=t.r;a=t.h;s=t.a;i=t.g},function(t){r=t.s;l=t.h}],execute:function(){var o=':host{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}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-table{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;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-table[hidden]{display:none}stzh-table *,stzh-table *::before,stzh-table *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-table[disable-min-width]:not([disable-min-width=false]){--min-width:none}.stzh-table{}.stzh-table__header{border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-table__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-table__header{padding-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-table__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-table__header{margin-bottom:var(--stzh-space-xlarge)}}.stzh-table__sub-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.stzh-table__heading{margin-bottom:var(--stzh-space-small)}.stzh-table__header .stzh-table__search{-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 600px){.stzh-table__header .stzh-table__search{width:var(--stzh-table-input-width);-ms-flex-positive:0;flex-grow:0}}.stzh-table__action-button{-ms-flex-negative:0;flex-shrink:0}.stzh-table__action-button:not(:empty){margin-left:var(--stzh-space-medium)}.stzh-table__outer-wrapper{position:relative}.stzh-table__outer-wrapper::before,.stzh-table__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-table__outer-wrapper::before{left:0}.stzh-table__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-table__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-table__pagination-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.stzh-table__pagination-wrapper:not(:empty){margin-top:var(--stzh-space-medium)}.stzh-table__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-table__sort-button:hover,.stzh-table__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-table stzh-icon.stzh-table__sort-icon{display:none}.stzh-table table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-table thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-table tr:hover td,.stzh-table tr:hover th{background-color:var(--stzh-color-grey5)}.stzh-table td,.stzh-table th{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-table td a,.stzh-table th a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-table td a:hover,.stzh-table td a:focus,.stzh-table th a:hover,.stzh-table th a:focus{color:var(--stzh-link-hover-color)}.stzh-table td b,.stzh-table td strong,.stzh-table th b,.stzh-table th strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-table td i,.stzh-table td em,.stzh-table th i,.stzh-table th em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-table td.align-left,.stzh-table th.align-left{text-align:left}.stzh-table td.align-right,.stzh-table th.align-right{text-align:right}.stzh-table td.align-center,.stzh-table th.align-center{text-align:center}.stzh-table td.valign-auto,.stzh-table th.valign-auto{vertical-align:auto}.stzh-table td.valign-middle,.stzh-table th.valign-middle{vertical-align:middle}.stzh-table td.valign-bottom,.stzh-table th.valign-bottom{vertical-align:bottom}.stzh-table td.nowrap,.stzh-table th.nowrap{white-space:nowrap}.stzh-table td.is-sticky-left,.stzh-table td.is-sticky-right,.stzh-table th.is-sticky-left,.stzh-table th.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-table td.has-sticked,.stzh-table th.has-sticked{z-index:2}.stzh-table td.is-sticky-left,.stzh-table th.is-sticky-left{left:0}.stzh-table td.is-sticky-right,.stzh-table th.is-sticky-right{right:0}.stzh-table td.is-sticky-left::after,.stzh-table td.is-sticky-right::after,.stzh-table th.is-sticky-left::after,.stzh-table th.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-table td.is-sticky-left::after,.stzh-table th.is-sticky-left::after{right:0}.stzh-table td.is-sticky-right::after,.stzh-table th.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-table td.has-sticked.is-sticky-left::after,.stzh-table td.has-sticked.is-sticky-right::after,.stzh-table th.has-sticked.is-sticky-left::after,.stzh-table th.has-sticked.is-sticky-right::after{opacity:1}.stzh-table th{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-table th.is-sortable{padding:0}td.has-sorted .stzh-table__sort-icon,th.has-sorted .stzh-table__sort-icon{display:-ms-inline-flexbox;display:inline-flex}td.has-sorted-desc .stzh-table__sort-icon,th.has-sorted-desc .stzh-table__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-table.has-list .stzh-table__outer-wrapper{display:none}@media screen and (min-width: 600px){.stzh-table.has-list .stzh-table__outer-wrapper{display:block}}@media screen and (min-width: 600px){.stzh-table.has-list .stzh-table__list-wrapper{display:none}}.stzh-table.has-scroll-left-shadow .stzh-table__outer-wrapper::before,.stzh-table.has-scroll-right-shadow .stzh-table__outer-wrapper::after{opacity:1}';var n="has-sticked";var h="is-sticky-left";var c="is-sticky-right";var b=t("stzh_table",function(){function t(t){var a=this;e(this,t);this.updateCellClasses=function(){if(!a.tableWrapper){return}var t=Array.from(a.tableWrapper.querySelectorAll("tr"));t.forEach((function(t){var e=Array.from(t.children);e.forEach((function(t,e){t.classList.remove(h);t.classList.remove(c);if(e===a.fixedLeft){t.classList.add(h)}if(e===a.fixedRight){t.classList.add(c)}}))}))};this.updateScrollStates=function(){if(!a.tableWrapper){return}var t=a.tableWrapper.scrollLeft;var e=a.tableWrapper.scrollWidth;var s=a.tableWrapper.clientWidth;a.isScrollable=e>s;a.hasScrollLeft=t>0;a.hasScrollRight=t<e-s;var i=Array.from(a.tableWrapper.querySelectorAll("tr"));var r=i[0];if(!r){return}a.cellsStickyLeft=[];a.cellsStickyRight=[];var l=Array.from(r.children);l.forEach((function(e,i){var r=e.offsetLeft;var l=r+e.offsetWidth;if(a.hasScrollLeft&&i===a.fixedLeft&&Math.ceil(t)>=r){a.cellsStickyLeft.push(i)}if(a.hasScrollRight&&i===a.fixedRight&&Math.ceil(t)+s<=l){a.cellsStickyRight.push(i)}}));i.forEach((function(t){var e=Array.from(t.children);e.forEach((function(t,e){if(a.cellsStickyLeft.indexOf(e)>-1||a.cellsStickyRight.indexOf(e)>-1){t.classList.add(n)}else{t.classList.remove(n)}}))}))};this.init=function(){var t=a.element.querySelector('stzh-input[slot="search"], [slot="search"] stzh-input');if(t){r(t,{size:"small"})}a.updateCellClasses();a.updateScrollStates()};this.handleResize=function(){if(a.debounceResize){window.cancelAnimationFrame(a.debounceResize)}a.debounceResize=requestAnimationFrame(a.updateScrollStates)};this.handleScroll=function(){if(a.debounceScroll){window.cancelAnimationFrame(a.debounceScroll)}a.debounceScroll=requestAnimationFrame(a.updateScrollStates)};this.fixedLeft=null;this.fixedRight=null;this.disableMinWidth=false;this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[]}t.prototype.fixedCellWatcher=function(){this.updateCellClasses();this.updateScrollStates()};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true});this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.render=function(){var t=this;var e=l(this.element,"list");var i={"stzh-table":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0,"has-list":e};return a(s,null,a("div",{class:i},a("div",{class:"stzh-table__header"},a("div",{class:"stzh-table__heading"},a("slot",{name:"heading"})),a("div",{class:"stzh-table__sub-header"},a("div",{class:"stzh-table__search"},a("slot",{name:"search"})),a("div",{class:"stzh-table__action-button"},a("slot",{name:"action-button"})))),a("div",{class:"stzh-table__outer-wrapper"},a("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-table__wrapper",onScroll:this.handleScroll},a("slot",null))),a("div",{class:"stzh-table__list-wrapper"},a("slot",{name:"list"})),a("div",{class:"stzh-table__pagination-wrapper"},a("slot",{name:"pagination"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{fixedLeft:["fixedCellWatcher"],fixedRight:["fixedCellWatcher"]}},enumerable:false,configurable:true});return t}());b.style=o}}}));
|
|
2
|
+
//# sourceMappingURL=p-40694e20.system.entry.js.map
|