@oiz/stzh-components 2.4.0 → 2.5.0-alpha-carousel
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-d7bd37fe.js +889 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +3 -1
- package/dist/cjs/stzh-actionset.cjs.entry.js +11 -6
- package/dist/cjs/stzh-appnav.cjs.entry.js +3 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +12 -7
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +19 -11
- package/dist/cjs/stzh-carousel.cjs.entry.js +522 -0
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js +82 -5
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +15 -3
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +3 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +16 -13
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +3 -1
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -1
- package/dist/cjs/stzh-header.cjs.entry.js +32 -27
- package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +1 -1
- package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +6 -2
- package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-metanav.cjs.entry.js +3 -1
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +3 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +4 -2
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +3 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +4 -2
- package/dist/cjs/stzh-space.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +3 -1
- package/dist/cjs/stzh-table.cjs.entry.js +14 -4
- package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
- package/dist/collection/assets/i18n/de.json +8 -0
- package/dist/collection/assets/i18n/en.json +8 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/stzh-actions/stzh-actions.js +3 -1
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +11 -33
- package/dist/collection/components/stzh-appnav/stzh-appnav.js +3 -1
- package/dist/collection/components/stzh-button/stzh-button.css +5 -1
- package/dist/collection/components/stzh-button/stzh-button.js +45 -6
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +33 -8
- package/dist/collection/components/stzh-card/stzh-card.js +35 -36
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +253 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +966 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.localization.js +1 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +138 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +3 -1
- package/dist/collection/components/stzh-chip/stzh-chip.css +17 -15
- package/dist/collection/components/stzh-chip/stzh-chip.js +2 -1
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +1 -1
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +46 -160
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +218 -8
- package/dist/collection/components/stzh-clamp/stzh-clamp.localization.js +1 -0
- package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +1 -1
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +18 -18
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +15 -12
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -2
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +15 -12
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.js +3 -1
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +3 -1
- package/dist/collection/components/stzh-header/stzh-header.js +32 -45
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +4 -0
- package/dist/collection/components/stzh-input/stzh-input.css +1 -1
- package/dist/collection/components/stzh-invert/stzh-invert.css +3 -3
- package/dist/collection/components/stzh-link/stzh-link.js +40 -2
- package/dist/collection/components/stzh-loader/stzh-loader.css +4 -4
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +27 -27
- package/dist/collection/components/stzh-metanav/stzh-metanav.js +3 -1
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +3 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +3 -1
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -3
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.js +3 -1
- package/dist/collection/components/stzh-popover/stzh-popover.css +3 -3
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +6 -6
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +3 -1
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +3 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +3 -1
- package/dist/collection/components/stzh-space/stzh-space.css +4 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +3 -1
- package/dist/collection/components/stzh-table/stzh-table.js +14 -13
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +4 -0
- package/dist/collection/global/js/script.js +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +835 -1
- package/dist/components/stzh-actions.js +3 -1
- package/dist/components/stzh-actionset2.js +12 -7
- package/dist/components/stzh-appnav.js +3 -1
- package/dist/components/stzh-button2.js +14 -7
- package/dist/components/stzh-calendar2.js +1 -1
- package/dist/components/stzh-card2.js +20 -11
- package/dist/components/stzh-carousel.d.ts +11 -0
- package/dist/components/stzh-carousel.js +568 -0
- package/dist/components/stzh-checkboxgroup.js +3 -1
- package/dist/components/stzh-chip-select2.js +21 -9
- package/dist/components/stzh-chip2.js +19 -6
- package/dist/components/stzh-clamp2.js +110 -11
- package/dist/components/stzh-datalist2.js +3 -3
- package/dist/components/stzh-datamessagelist-item.js +16 -10
- package/dist/components/stzh-datatable.js +16 -4
- package/dist/components/stzh-dialog.js +16 -13
- package/dist/components/stzh-dropdown2.js +1 -1
- package/dist/components/stzh-footer.js +3 -1
- package/dist/components/stzh-ghettobox2.js +3 -1
- package/dist/components/stzh-header.js +33 -28
- package/dist/components/stzh-hspace.js +1 -1
- package/dist/components/stzh-input2.js +1 -1
- package/dist/components/stzh-invert.js +1 -1
- package/dist/components/stzh-link2.js +8 -2
- package/dist/components/stzh-loader2.js +1 -1
- package/dist/components/stzh-menu-item2.js +4 -4
- package/dist/components/stzh-metanav.js +3 -1
- package/dist/components/stzh-microsite-teaserlist.js +1 -1
- package/dist/components/stzh-page-skiplinks.js +3 -1
- package/dist/components/stzh-pagetitle-hero.js +4 -2
- package/dist/components/stzh-pagetitle.js +3 -1
- package/dist/components/stzh-popover2.js +1 -1
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-radiogroup2.js +3 -1
- package/dist/components/stzh-readspeaker.js +3 -1
- package/dist/components/stzh-sortable2.js +4 -2
- package/dist/components/stzh-space.js +1 -1
- package/dist/components/stzh-sticky.js +3 -1
- package/dist/components/stzh-table.js +15 -5
- package/dist/components/stzh-vspace.js +1 -1
- package/dist/esm/app-globals-62e1178d.js +887 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +3 -1
- package/dist/esm/stzh-actionset.entry.js +11 -6
- package/dist/esm/stzh-appnav.entry.js +3 -1
- package/dist/esm/stzh-badge_3.entry.js +12 -7
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card_3.entry.js +19 -11
- package/dist/esm/stzh-carousel.entry.js +518 -0
- package/dist/esm/stzh-checkboxgroup.entry.js +3 -1
- package/dist/esm/stzh-chip_2.entry.js +82 -5
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-datalist_2.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +15 -3
- package/dist/esm/stzh-datepicker_3.entry.js +3 -1
- package/dist/esm/stzh-dialog.entry.js +16 -13
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +3 -1
- package/dist/esm/stzh-ghettobox_2.entry.js +3 -1
- package/dist/esm/stzh-header.entry.js +32 -27
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-input.entry.js +1 -1
- package/dist/esm/stzh-invert.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +6 -2
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +2 -2
- package/dist/esm/stzh-metanav.entry.js +3 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
- package/dist/esm/stzh-page-skiplinks.entry.js +3 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +4 -2
- package/dist/esm/stzh-pagetitle.entry.js +3 -1
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +3 -1
- package/dist/esm/stzh-sortable.entry.js +4 -2
- package/dist/esm/stzh-space.entry.js +1 -1
- package/dist/esm/stzh-sticky.entry.js +3 -1
- package/dist/esm/stzh-table.entry.js +14 -4
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/app-globals-62e1178d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-card_3.entry.js +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -0
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-invert.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-loader.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-metanav.entry.js +1 -1
- package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
- package/dist/esm-es5/stzh-page-skiplinks.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-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +2 -2
- package/dist/esm-es5/stzh-space.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +8 -0
- package/dist/stzh-components/assets/i18n/en.json +8 -0
- package/dist/stzh-components/p-0a408348.entry.js +1 -0
- package/dist/stzh-components/{p-ff328114.system.entry.js → p-0c779613.system.entry.js} +1 -1
- package/dist/stzh-components/{p-55752bd5.system.entry.js → p-0e690e3e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8c141cae.system.entry.js → p-10b4fedd.system.entry.js} +1 -1
- package/dist/stzh-components/p-14729939.entry.js +1 -0
- package/dist/stzh-components/p-1494b502.entry.js +1 -0
- package/dist/stzh-components/p-14d5a56d.entry.js +1 -0
- package/dist/stzh-components/p-205f5111.system.entry.js +1 -0
- package/dist/stzh-components/p-2ed20db5.entry.js +1 -0
- package/dist/stzh-components/p-322e74e9.system.entry.js +1 -0
- package/dist/stzh-components/p-353294ce.entry.js +1 -0
- package/dist/stzh-components/p-396697db.system.entry.js +1 -0
- package/dist/stzh-components/p-3af95b5d.entry.js +1 -0
- package/dist/stzh-components/{p-6c73f6ad.entry.js → p-3f80ce87.entry.js} +1 -1
- package/dist/stzh-components/{p-6a94e520.system.entry.js → p-454e50f8.system.entry.js} +1 -1
- package/dist/stzh-components/p-48d40c7c.system.entry.js +1 -0
- package/dist/stzh-components/{p-5c72664e.system.entry.js → p-4acb6752.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b1ffc2a9.system.entry.js → p-4b995fe4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-be97cb22.entry.js → p-4da7ebff.entry.js} +1 -1
- package/dist/stzh-components/p-4f8085e5.entry.js +1 -0
- package/dist/stzh-components/{p-2f4448c9.system.entry.js → p-558f336d.system.entry.js} +1 -1
- package/dist/stzh-components/p-5a4aef52.entry.js +1 -0
- package/dist/stzh-components/{p-72a62d0d.system.entry.js → p-6659b6f6.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1a98470f.system.entry.js → p-6a26c9eb.system.entry.js} +1 -1
- package/dist/stzh-components/p-6bc7f44a.entry.js +1 -0
- package/dist/stzh-components/p-7ff1640c.entry.js +1 -0
- package/dist/stzh-components/{p-32ae64a3.entry.js → p-814e5ae7.entry.js} +1 -1
- package/dist/stzh-components/{p-37de872c.system.entry.js → p-821ca4af.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d95b44c6.system.entry.js → p-884793dd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d5948025.system.entry.js → p-88fbb2fc.system.entry.js} +1 -1
- package/dist/stzh-components/p-8b16550d.entry.js +1 -0
- package/dist/stzh-components/{p-963a7526.system.entry.js → p-8c371d1d.system.entry.js} +1 -1
- package/dist/stzh-components/p-8eda017e.entry.js +1 -0
- package/dist/stzh-components/p-949f7885.system.js +1 -0
- package/dist/stzh-components/p-99d85a97.entry.js +1 -0
- package/dist/stzh-components/p-9a94b249.system.entry.js +1 -0
- package/dist/stzh-components/{p-32a03d1c.entry.js → p-9ed30a9f.entry.js} +1 -1
- package/dist/stzh-components/{p-febba79b.entry.js → p-9f29e6c3.entry.js} +1 -1
- package/dist/stzh-components/{p-67816aa4.entry.js → p-a0b2739a.entry.js} +1 -1
- package/dist/stzh-components/p-a2121744.system.entry.js +1 -0
- package/dist/stzh-components/p-a22ac109.entry.js +1 -0
- package/dist/stzh-components/p-a3bf419d.entry.js +1 -0
- package/dist/stzh-components/{p-088b16c6.system.entry.js → p-abf13db9.system.entry.js} +1 -1
- package/dist/stzh-components/p-ad96eb50.entry.js +1 -0
- package/dist/stzh-components/p-ae7255f6.entry.js +1 -0
- package/dist/stzh-components/p-af05718d.system.entry.js +1 -0
- package/dist/stzh-components/p-b4c28bf5.entry.js +1 -0
- package/dist/stzh-components/p-b4db3558.js +1 -0
- package/dist/stzh-components/p-b61f7404.entry.js +1 -0
- package/dist/stzh-components/p-b9adebdc.entry.js +1 -0
- package/dist/stzh-components/{p-c4c620fa.system.entry.js → p-b9bd42e6.system.entry.js} +1 -1
- package/dist/stzh-components/p-b9f784e4.system.entry.js +1 -0
- package/dist/stzh-components/{p-7e9fa7f5.entry.js → p-bcfba21f.entry.js} +1 -1
- package/dist/stzh-components/p-bd1a5d6d.system.entry.js +1 -0
- package/dist/stzh-components/p-c457dad2.system.entry.js +1 -0
- package/dist/stzh-components/{p-f8feb07b.entry.js → p-c80a9d50.entry.js} +1 -1
- package/dist/stzh-components/p-cab1a192.entry.js +1 -0
- package/dist/stzh-components/p-cd59cead.system.js +1 -0
- package/dist/stzh-components/{p-102e2bcd.system.entry.js → p-cd979ce9.system.entry.js} +1 -1
- package/dist/stzh-components/{p-512c38b3.system.entry.js → p-ce5db779.system.entry.js} +1 -1
- package/dist/stzh-components/p-d29fd401.entry.js +1 -0
- package/dist/stzh-components/{p-51b3a560.system.entry.js → p-d585e8fd.system.entry.js} +1 -1
- package/dist/stzh-components/p-d5994419.system.entry.js +1 -0
- package/dist/stzh-components/p-d6e5f396.system.entry.js +1 -0
- package/dist/stzh-components/p-e1501622.system.entry.js +1 -0
- package/dist/stzh-components/p-e2d80ee3.entry.js +1 -0
- package/dist/stzh-components/p-e54f66ea.system.entry.js +1 -0
- package/dist/stzh-components/{p-7bb82e56.entry.js → p-eb16ad0d.entry.js} +1 -1
- package/dist/stzh-components/p-eb1ea7f0.entry.js +1 -0
- package/dist/stzh-components/{p-e1b2785b.entry.js → p-ec87506f.entry.js} +1 -1
- package/dist/stzh-components/{p-309fc559.system.entry.js → p-ee20b95b.system.entry.js} +1 -1
- package/dist/stzh-components/p-f122e15d.system.entry.js +1 -0
- package/dist/stzh-components/{p-809ed955.system.entry.js → p-f27d1a06.system.entry.js} +1 -1
- package/dist/stzh-components/p-f449f909.entry.js +1 -0
- package/dist/stzh-components/p-fe1c8047.system.entry.js +1 -0
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-carousel/stzh-carousel.localization.d.ts +5 -0
- package/dist/types/components/stzh-clamp/stzh-clamp.localization.d.ts +5 -0
- package/dist/types/components.d.ts +217 -1
- package/dist/types/index.d.ts +20 -0
- package/dist/vscode-data.json +90 -1
- package/package.json +4 -2
- package/dist/cjs/app-globals-8fbeeb92.js +0 -56
- package/dist/esm/app-globals-f5264f95.js +0 -54
- package/dist/esm-es5/app-globals-f5264f95.js +0 -1
- package/dist/stzh-components/p-05e742b4.js +0 -1
- package/dist/stzh-components/p-07dc23a3.system.entry.js +0 -1
- package/dist/stzh-components/p-09a6a4be.system.js +0 -1
- package/dist/stzh-components/p-0ab2f949.entry.js +0 -1
- package/dist/stzh-components/p-0ba944ab.entry.js +0 -1
- package/dist/stzh-components/p-12856e02.system.entry.js +0 -1
- package/dist/stzh-components/p-18e20038.entry.js +0 -1
- package/dist/stzh-components/p-1bcda13d.system.entry.js +0 -1
- package/dist/stzh-components/p-216b89d7.system.entry.js +0 -1
- package/dist/stzh-components/p-2e40e63c.system.entry.js +0 -1
- package/dist/stzh-components/p-340eedda.system.entry.js +0 -1
- package/dist/stzh-components/p-3721f7b2.entry.js +0 -1
- package/dist/stzh-components/p-37920e74.system.entry.js +0 -1
- package/dist/stzh-components/p-4633b93d.entry.js +0 -1
- package/dist/stzh-components/p-5b85324c.entry.js +0 -1
- package/dist/stzh-components/p-5d55a672.system.entry.js +0 -1
- package/dist/stzh-components/p-62791751.entry.js +0 -1
- package/dist/stzh-components/p-64cdef2f.entry.js +0 -1
- package/dist/stzh-components/p-660125e0.system.entry.js +0 -1
- package/dist/stzh-components/p-6932ce19.system.js +0 -1
- package/dist/stzh-components/p-761ee059.entry.js +0 -1
- package/dist/stzh-components/p-7d42654b.system.entry.js +0 -1
- package/dist/stzh-components/p-7f857e56.entry.js +0 -1
- package/dist/stzh-components/p-907f59dd.entry.js +0 -1
- package/dist/stzh-components/p-923dffc7.entry.js +0 -1
- package/dist/stzh-components/p-951b04ab.entry.js +0 -1
- package/dist/stzh-components/p-990f395b.entry.js +0 -1
- package/dist/stzh-components/p-9be21c72.entry.js +0 -1
- package/dist/stzh-components/p-9c35c9cd.entry.js +0 -1
- package/dist/stzh-components/p-a11ef2d6.system.entry.js +0 -1
- package/dist/stzh-components/p-a6be6aca.system.entry.js +0 -1
- package/dist/stzh-components/p-a7eb3e02.system.entry.js +0 -1
- package/dist/stzh-components/p-aa4f87cc.entry.js +0 -1
- package/dist/stzh-components/p-ae38f1d2.entry.js +0 -1
- package/dist/stzh-components/p-b9b1b7cf.entry.js +0 -1
- package/dist/stzh-components/p-bb698e26.entry.js +0 -1
- package/dist/stzh-components/p-bc545121.entry.js +0 -1
- package/dist/stzh-components/p-c2a22eb8.entry.js +0 -1
- package/dist/stzh-components/p-d1cfe06b.entry.js +0 -1
- package/dist/stzh-components/p-ddcec4e1.system.entry.js +0 -1
- package/dist/stzh-components/p-e09ac5e3.system.entry.js +0 -1
- package/dist/stzh-components/p-f0e2a32d.entry.js +0 -1
- package/dist/stzh-components/p-fd15cc86.entry.js +0 -1
- package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +0 -16
|
@@ -1,23 +1,95 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { fetchTranslations } from "../../utils/translation-utils";
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
*/
|
|
5
6
|
export class StzhClamp {
|
|
6
7
|
constructor() {
|
|
8
|
+
this.updateClamped = () => {
|
|
9
|
+
if (!this.textCloneElement) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const beforeClamped = this.clamped;
|
|
13
|
+
this.clamped = this.textCloneElement.scrollHeight > this.textCloneElement.clientHeight;
|
|
14
|
+
if (beforeClamped !== this.clamped) {
|
|
15
|
+
this.stzhClamp.emit({
|
|
16
|
+
component: "stzh-clamp",
|
|
17
|
+
clamped: this.clamped
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
this.handleResize = () => {
|
|
22
|
+
if (this.debounceResize) {
|
|
23
|
+
window.cancelAnimationFrame(this.debounceResize);
|
|
24
|
+
}
|
|
25
|
+
this.debounceResize = requestAnimationFrame(this.updateClamped);
|
|
26
|
+
};
|
|
27
|
+
this.handleMutaton = () => {
|
|
28
|
+
this.update();
|
|
29
|
+
};
|
|
30
|
+
this.handleExpandClick = () => {
|
|
31
|
+
this.expanded = !this.expanded;
|
|
32
|
+
this.stzhExpand.emit({
|
|
33
|
+
component: "stzh-clamp",
|
|
34
|
+
expanded: this.expanded
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
this.localization = undefined;
|
|
7
38
|
this.lines = 1;
|
|
8
39
|
this.linesSmall = 0;
|
|
9
40
|
this.linesMedium = 0;
|
|
10
41
|
this.linesLarge = 0;
|
|
11
42
|
this.linesUltra = 0;
|
|
43
|
+
this.showExpandLink = false;
|
|
44
|
+
this.expanded = false;
|
|
45
|
+
this.clamped = false;
|
|
46
|
+
}
|
|
47
|
+
async update() {
|
|
48
|
+
this.textCloneElement.innerHTML = this.textElement.innerHTML;
|
|
49
|
+
this.updateClamped();
|
|
50
|
+
}
|
|
51
|
+
async componentWillLoad() {
|
|
52
|
+
if (!this.localization) {
|
|
53
|
+
this.localization = await fetchTranslations(this.element, "clamp");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
componentDidLoad() {
|
|
57
|
+
this.mutationObserver = new MutationObserver(this.handleMutaton);
|
|
58
|
+
this.mutationObserver.observe(this.textElement, {
|
|
59
|
+
childList: true,
|
|
60
|
+
subtree: true,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
componentDidRender() {
|
|
64
|
+
this.update();
|
|
65
|
+
}
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
this.resizeObserver = new ResizeObserver(this.handleResize);
|
|
68
|
+
this.resizeObserver.observe(this.element);
|
|
69
|
+
}
|
|
70
|
+
disconnectedCallback() {
|
|
71
|
+
if (this.resizeObserver) {
|
|
72
|
+
this.resizeObserver.disconnect();
|
|
73
|
+
}
|
|
74
|
+
if (this.mutationObserver) {
|
|
75
|
+
this.mutationObserver.disconnect();
|
|
76
|
+
}
|
|
12
77
|
}
|
|
13
78
|
render() {
|
|
14
79
|
const classes = {
|
|
15
|
-
"stzh-clamp": true
|
|
80
|
+
"stzh-clamp": true,
|
|
81
|
+
"stzh-clamp--is-not-expanded": !this.expanded
|
|
16
82
|
};
|
|
17
|
-
return (h(Host,
|
|
83
|
+
return (h(Host, { style: {
|
|
84
|
+
'--lines': this.lines ? this.lines.toString() : null,
|
|
85
|
+
'--lines-small': this.linesSmall ? this.linesSmall.toString() : null,
|
|
86
|
+
'--lines-medium': this.linesMedium ? this.linesMedium.toString() : null,
|
|
87
|
+
'--lines-large': this.linesLarge ? this.linesLarge.toString() : null,
|
|
88
|
+
'--lines-ultra': this.linesUltra ? this.linesUltra.toString() : null,
|
|
89
|
+
} }, h("div", { class: classes }, h("div", { ref: (el) => (this.textElement = el), class: "stzh-clamp__text" }, h("slot", null)), h("div", { ref: (el) => (this.textCloneElement = el), class: "stzh-clamp__text is-clone", "aria-hidden": "true" }), this.showExpandLink && this.clamped &&
|
|
90
|
+
h("stzh-link", { class: "stzh-clamp__trigger", a11yTabindex: "-1", "aria-hidden": "true", onClick: this.handleExpandClick }, !this.expanded ? this.localization.showMore : this.localization.showLess))));
|
|
18
91
|
}
|
|
19
92
|
static get is() { return "stzh-clamp"; }
|
|
20
|
-
static get encapsulation() { return "scoped"; }
|
|
21
93
|
static get originalStyleUrls() {
|
|
22
94
|
return {
|
|
23
95
|
"$": ["stzh-clamp.scss"]
|
|
@@ -30,6 +102,26 @@ export class StzhClamp {
|
|
|
30
102
|
}
|
|
31
103
|
static get properties() {
|
|
32
104
|
return {
|
|
105
|
+
"localization": {
|
|
106
|
+
"type": "unknown",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "StzhClampLocalizedText",
|
|
110
|
+
"resolved": "StzhLocaleComponent & { showMore: string; showLess: string; }",
|
|
111
|
+
"references": {
|
|
112
|
+
"StzhClampLocalizedText": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "./stzh-clamp.localization"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Translation strings"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
33
125
|
"lines": {
|
|
34
126
|
"type": "number",
|
|
35
127
|
"mutable": false,
|
|
@@ -45,7 +137,7 @@ export class StzhClamp {
|
|
|
45
137
|
"text": "Line number"
|
|
46
138
|
},
|
|
47
139
|
"attribute": "lines",
|
|
48
|
-
"reflect":
|
|
140
|
+
"reflect": false,
|
|
49
141
|
"defaultValue": "1"
|
|
50
142
|
},
|
|
51
143
|
"linesSmall": {
|
|
@@ -63,7 +155,7 @@ export class StzhClamp {
|
|
|
63
155
|
"text": "Line number above small breakpoint"
|
|
64
156
|
},
|
|
65
157
|
"attribute": "lines-small",
|
|
66
|
-
"reflect":
|
|
158
|
+
"reflect": false,
|
|
67
159
|
"defaultValue": "0"
|
|
68
160
|
},
|
|
69
161
|
"linesMedium": {
|
|
@@ -81,7 +173,7 @@ export class StzhClamp {
|
|
|
81
173
|
"text": "Line number above medium breakpoint"
|
|
82
174
|
},
|
|
83
175
|
"attribute": "lines-medium",
|
|
84
|
-
"reflect":
|
|
176
|
+
"reflect": false,
|
|
85
177
|
"defaultValue": "0"
|
|
86
178
|
},
|
|
87
179
|
"linesLarge": {
|
|
@@ -99,7 +191,7 @@ export class StzhClamp {
|
|
|
99
191
|
"text": "Line number above large breakpoint"
|
|
100
192
|
},
|
|
101
193
|
"attribute": "lines-large",
|
|
102
|
-
"reflect":
|
|
194
|
+
"reflect": false,
|
|
103
195
|
"defaultValue": "0"
|
|
104
196
|
},
|
|
105
197
|
"linesUltra": {
|
|
@@ -117,9 +209,127 @@ export class StzhClamp {
|
|
|
117
209
|
"text": "Line number above ultra breakpoint"
|
|
118
210
|
},
|
|
119
211
|
"attribute": "lines-ultra",
|
|
120
|
-
"reflect":
|
|
212
|
+
"reflect": false,
|
|
121
213
|
"defaultValue": "0"
|
|
214
|
+
},
|
|
215
|
+
"showExpandLink": {
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"mutable": false,
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "boolean",
|
|
220
|
+
"resolved": "boolean",
|
|
221
|
+
"references": {}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": false,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": "Whether clamping is expanded"
|
|
228
|
+
},
|
|
229
|
+
"attribute": "show-expand-link",
|
|
230
|
+
"reflect": false,
|
|
231
|
+
"defaultValue": "false"
|
|
232
|
+
},
|
|
233
|
+
"expanded": {
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"mutable": true,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "boolean",
|
|
238
|
+
"resolved": "boolean",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "Whether clamping is expanded"
|
|
246
|
+
},
|
|
247
|
+
"attribute": "expanded",
|
|
248
|
+
"reflect": true,
|
|
249
|
+
"defaultValue": "false"
|
|
250
|
+
},
|
|
251
|
+
"clamped": {
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"mutable": true,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "boolean",
|
|
256
|
+
"resolved": "boolean",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": false,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": "Whether the text is currently clamped (readonly)"
|
|
264
|
+
},
|
|
265
|
+
"attribute": "clamped",
|
|
266
|
+
"reflect": true,
|
|
267
|
+
"defaultValue": "false"
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
static get events() {
|
|
272
|
+
return [{
|
|
273
|
+
"method": "stzhClamp",
|
|
274
|
+
"name": "stzhClamp",
|
|
275
|
+
"bubbles": true,
|
|
276
|
+
"cancelable": true,
|
|
277
|
+
"composed": true,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": "Event when clamping state changed"
|
|
281
|
+
},
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "StzhClampClampEvent",
|
|
284
|
+
"resolved": "{ component: \"stzh-clamp\"; clamped: boolean; }",
|
|
285
|
+
"references": {
|
|
286
|
+
"StzhClampClampEvent": {
|
|
287
|
+
"location": "import",
|
|
288
|
+
"path": "../../index"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}, {
|
|
293
|
+
"method": "stzhExpand",
|
|
294
|
+
"name": "stzhExpand",
|
|
295
|
+
"bubbles": true,
|
|
296
|
+
"cancelable": true,
|
|
297
|
+
"composed": true,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": "Event when expanding state changed"
|
|
301
|
+
},
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "StzhClampExpandEvent",
|
|
304
|
+
"resolved": "{ component: \"stzh-clamp\"; expanded: boolean; }",
|
|
305
|
+
"references": {
|
|
306
|
+
"StzhClampExpandEvent": {
|
|
307
|
+
"location": "import",
|
|
308
|
+
"path": "../../index"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}];
|
|
313
|
+
}
|
|
314
|
+
static get methods() {
|
|
315
|
+
return {
|
|
316
|
+
"update": {
|
|
317
|
+
"complexType": {
|
|
318
|
+
"signature": "() => Promise<void>",
|
|
319
|
+
"parameters": [],
|
|
320
|
+
"references": {
|
|
321
|
+
"Promise": {
|
|
322
|
+
"location": "global"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"return": "Promise<void>"
|
|
326
|
+
},
|
|
327
|
+
"docs": {
|
|
328
|
+
"text": "",
|
|
329
|
+
"tags": []
|
|
330
|
+
}
|
|
122
331
|
}
|
|
123
332
|
};
|
|
124
333
|
}
|
|
334
|
+
static get elementRef() { return "element"; }
|
|
125
335
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -29,8 +29,8 @@ export class StzhDatalist {
|
|
|
29
29
|
this.directionUltra = "inherit";
|
|
30
30
|
this.hideBorder = false;
|
|
31
31
|
this.disableLabelMinWidth = false;
|
|
32
|
-
this.items = [];
|
|
33
32
|
this.currentDirection = undefined;
|
|
33
|
+
this.items = [];
|
|
34
34
|
}
|
|
35
35
|
hideBorderWatcher(newValue) {
|
|
36
36
|
this.stzhHideBorderChange.emit({
|
|
@@ -215,6 +215,23 @@ export class StzhDatalist {
|
|
|
215
215
|
"reflect": true,
|
|
216
216
|
"defaultValue": "false"
|
|
217
217
|
},
|
|
218
|
+
"currentDirection": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"mutable": false,
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "\"vertical\" | \"horizontal\"",
|
|
223
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
224
|
+
"references": {}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": "Current direction in use (readonly)"
|
|
231
|
+
},
|
|
232
|
+
"attribute": "current-direction",
|
|
233
|
+
"reflect": true
|
|
234
|
+
},
|
|
218
235
|
"items": {
|
|
219
236
|
"type": "string",
|
|
220
237
|
"mutable": false,
|
|
@@ -237,23 +254,6 @@ export class StzhDatalist {
|
|
|
237
254
|
"attribute": "items",
|
|
238
255
|
"reflect": false,
|
|
239
256
|
"defaultValue": "[]"
|
|
240
|
-
},
|
|
241
|
-
"currentDirection": {
|
|
242
|
-
"type": "string",
|
|
243
|
-
"mutable": false,
|
|
244
|
-
"complexType": {
|
|
245
|
-
"original": "\"vertical\" | \"horizontal\"",
|
|
246
|
-
"resolved": "\"horizontal\" | \"vertical\"",
|
|
247
|
-
"references": {}
|
|
248
|
-
},
|
|
249
|
-
"required": false,
|
|
250
|
-
"optional": false,
|
|
251
|
-
"docs": {
|
|
252
|
-
"tags": [],
|
|
253
|
-
"text": "Current direction in use (readonly)"
|
|
254
|
-
},
|
|
255
|
-
"attribute": "current-direction",
|
|
256
|
-
"reflect": false
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -39,6 +39,12 @@ export class StzhDatatable {
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
+
this.handleResize = () => {
|
|
43
|
+
if (this.debounceResize) {
|
|
44
|
+
window.cancelAnimationFrame(this.debounceResize);
|
|
45
|
+
}
|
|
46
|
+
this.debounceResize = requestAnimationFrame(this.updateScrollStates);
|
|
47
|
+
};
|
|
42
48
|
this.handleScroll = () => {
|
|
43
49
|
if (this.debounceScroll) {
|
|
44
50
|
window.cancelAnimationFrame(this.debounceScroll);
|
|
@@ -92,9 +98,6 @@ export class StzhDatatable {
|
|
|
92
98
|
}
|
|
93
99
|
this.buildSearchIndex();
|
|
94
100
|
}
|
|
95
|
-
handleResize() {
|
|
96
|
-
this.updateScrollStates();
|
|
97
|
-
}
|
|
98
101
|
buildSearchIndex() {
|
|
99
102
|
if (!this._rows || this._rows.length === 0
|
|
100
103
|
|| !this._columns || this._columns.length === 0) {
|
|
@@ -153,6 +156,15 @@ export class StzhDatatable {
|
|
|
153
156
|
});
|
|
154
157
|
}
|
|
155
158
|
}
|
|
159
|
+
connectedCallback() {
|
|
160
|
+
this.resizeObserver = new ResizeObserver(this.handleResize);
|
|
161
|
+
this.resizeObserver.observe(this.element);
|
|
162
|
+
}
|
|
163
|
+
disconnectedCallback() {
|
|
164
|
+
if (this.resizeObserver) {
|
|
165
|
+
this.resizeObserver.disconnect();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
156
168
|
render() {
|
|
157
169
|
const classes = {
|
|
158
170
|
"stzh-datatable": true,
|
|
@@ -414,13 +426,4 @@ export class StzhDatatable {
|
|
|
414
426
|
"methodName": "columnsWatcher"
|
|
415
427
|
}];
|
|
416
428
|
}
|
|
417
|
-
static get listeners() {
|
|
418
|
-
return [{
|
|
419
|
-
"name": "resize",
|
|
420
|
-
"method": "handleResize",
|
|
421
|
-
"target": "window",
|
|
422
|
-
"capture": false,
|
|
423
|
-
"passive": true
|
|
424
|
-
}];
|
|
425
|
-
}
|
|
426
429
|
}
|
|
@@ -129,18 +129,6 @@ export class StzhDialog {
|
|
|
129
129
|
this.localization = await fetchTranslations(this.element, "dialog");
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
connectedCallback() {
|
|
133
|
-
if (!this.stay && this.element.parentElement !== document.body) {
|
|
134
|
-
document.body.appendChild(this.element);
|
|
135
|
-
}
|
|
136
|
-
this.parentElement = this.element.parentElement;
|
|
137
|
-
this.init();
|
|
138
|
-
this.observer = new MutationObserver(this.init);
|
|
139
|
-
this.observer.observe(this.element, {
|
|
140
|
-
childList: true,
|
|
141
|
-
subtree: true
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
132
|
componentDidRender() {
|
|
145
133
|
this.open ? this.dialogShown() : this.dialogHidden();
|
|
146
134
|
}
|
|
@@ -156,8 +144,23 @@ export class StzhDialog {
|
|
|
156
144
|
this.dialogShown();
|
|
157
145
|
}
|
|
158
146
|
}
|
|
147
|
+
connectedCallback() {
|
|
148
|
+
if (!this.stay && this.element.parentElement !== document.body) {
|
|
149
|
+
document.body.appendChild(this.element);
|
|
150
|
+
}
|
|
151
|
+
this.parentElement = this.element.parentElement;
|
|
152
|
+
this.init();
|
|
153
|
+
this.observer = new MutationObserver(this.init);
|
|
154
|
+
this.observer.observe(this.element, {
|
|
155
|
+
childList: true,
|
|
156
|
+
subtree: true
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
159
|
disconnectedCallback() {
|
|
160
160
|
this.dialogHidden();
|
|
161
|
+
if (this.observer) {
|
|
162
|
+
this.observer.disconnect();
|
|
163
|
+
}
|
|
161
164
|
}
|
|
162
165
|
render() {
|
|
163
166
|
return (h(Host, null, h("div", { class: {
|
|
@@ -431,7 +431,7 @@ stzh-dropdown[disabled]:not([disabled=false])[variant=plain] {
|
|
|
431
431
|
left: 0;
|
|
432
432
|
top: 50%;
|
|
433
433
|
height: 0.125rem;
|
|
434
|
-
margin-top: -0.
|
|
434
|
+
margin-top: -0.5px;
|
|
435
435
|
}
|
|
436
436
|
.stzh-dropdown__option, .stzh-dropdown__create {
|
|
437
437
|
font-size: var(--stzh-font-micro-font-size);
|
|
@@ -9,6 +9,33 @@ import { media } from "../../utils/media-utils";
|
|
|
9
9
|
*/
|
|
10
10
|
export class StzhHeader {
|
|
11
11
|
constructor() {
|
|
12
|
+
this.handleResize = () => {
|
|
13
|
+
if (this.stickyDisabled) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (this.debounceResize) {
|
|
17
|
+
window.cancelAnimationFrame(this.debounceResize);
|
|
18
|
+
}
|
|
19
|
+
this.debounceResize = requestAnimationFrame(() => {
|
|
20
|
+
readTask(() => {
|
|
21
|
+
this.isSmall = media("small").matches;
|
|
22
|
+
this.isSmallheader = media("smallheader").matches;
|
|
23
|
+
this.headerTop = this.element.offsetTop;
|
|
24
|
+
this.headerHeight = this.element.offsetHeight;
|
|
25
|
+
this.appnavHeight = this.appnavElement ? this.appnavElement.offsetHeight : 0;
|
|
26
|
+
this.metabarHeight = this.metabarElement ? this.metabarElement.offsetHeight : 0;
|
|
27
|
+
});
|
|
28
|
+
writeTask(() => {
|
|
29
|
+
if (this.appnavHeight && !this.isSmall && !this.preventAppnavPlaceholder) {
|
|
30
|
+
this.appnavPlaceholderElement.style.height = `${this.appnavHeight}px`;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.appnavPlaceholderElement.style.height = "0px";
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
this.scrollListener();
|
|
37
|
+
});
|
|
38
|
+
};
|
|
12
39
|
this.href = "https://www.stadt-zuerich.ch";
|
|
13
40
|
this.metabarStay = false;
|
|
14
41
|
this.stickyDisabled = false;
|
|
@@ -54,33 +81,6 @@ export class StzhHeader {
|
|
|
54
81
|
}
|
|
55
82
|
}
|
|
56
83
|
}
|
|
57
|
-
resizeListener() {
|
|
58
|
-
if (this.stickyDisabled) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (this.debounceResize) {
|
|
62
|
-
window.cancelAnimationFrame(this.debounceResize);
|
|
63
|
-
}
|
|
64
|
-
this.debounceResize = requestAnimationFrame(() => {
|
|
65
|
-
readTask(() => {
|
|
66
|
-
this.isSmall = media("small").matches;
|
|
67
|
-
this.isSmallheader = media("smallheader").matches;
|
|
68
|
-
this.headerTop = this.element.offsetTop;
|
|
69
|
-
this.headerHeight = this.element.offsetHeight;
|
|
70
|
-
this.appnavHeight = this.appnavElement ? this.appnavElement.offsetHeight : 0;
|
|
71
|
-
this.metabarHeight = this.metabarElement ? this.metabarElement.offsetHeight : 0;
|
|
72
|
-
});
|
|
73
|
-
writeTask(() => {
|
|
74
|
-
if (this.appnavHeight && !this.isSmall && !this.preventAppnavPlaceholder) {
|
|
75
|
-
this.appnavPlaceholderElement.style.height = `${this.appnavHeight}px`;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.appnavPlaceholderElement.style.height = "0px";
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
this.scrollListener();
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
84
|
scrollListener() {
|
|
85
85
|
if (this.stickyDisabled) {
|
|
86
86
|
return;
|
|
@@ -138,9 +138,14 @@ export class StzhHeader {
|
|
|
138
138
|
connectedCallback() {
|
|
139
139
|
this.appnavPlaceholderElement = document.createElement("div");
|
|
140
140
|
this.element.parentElement.appendChild(this.appnavPlaceholderElement);
|
|
141
|
+
this.resizeObserver = new ResizeObserver(this.handleResize);
|
|
142
|
+
this.resizeObserver.observe(this.element);
|
|
141
143
|
}
|
|
142
144
|
disconnectedCallback() {
|
|
143
145
|
this.appnavPlaceholderElement.parentElement.removeChild(this.appnavPlaceholderElement);
|
|
146
|
+
if (this.resizeObserver) {
|
|
147
|
+
this.resizeObserver.disconnect();
|
|
148
|
+
}
|
|
144
149
|
}
|
|
145
150
|
render() {
|
|
146
151
|
const navSlotUsed = hasSlot(this.element, "nav");
|
|
@@ -284,24 +289,6 @@ export class StzhHeader {
|
|
|
284
289
|
static get elementRef() { return "element"; }
|
|
285
290
|
static get listeners() {
|
|
286
291
|
return [{
|
|
287
|
-
"name": "resize",
|
|
288
|
-
"method": "resizeListener",
|
|
289
|
-
"target": "window",
|
|
290
|
-
"capture": false,
|
|
291
|
-
"passive": true
|
|
292
|
-
}, {
|
|
293
|
-
"name": "DOMContentLoaded",
|
|
294
|
-
"method": "resizeListener",
|
|
295
|
-
"target": "window",
|
|
296
|
-
"capture": false,
|
|
297
|
-
"passive": false
|
|
298
|
-
}, {
|
|
299
|
-
"name": "load",
|
|
300
|
-
"method": "resizeListener",
|
|
301
|
-
"target": "window",
|
|
302
|
-
"capture": false,
|
|
303
|
-
"passive": false
|
|
304
|
-
}, {
|
|
305
292
|
"name": "scroll",
|
|
306
293
|
"method": "scrollListener",
|
|
307
294
|
"target": "window",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
:host {
|
|
101
101
|
--h-space: var(--stzh-space-default);
|
|
102
102
|
--h-around: 0;
|
|
103
|
+
display: flex;
|
|
103
104
|
clear: both;
|
|
104
105
|
}
|
|
105
106
|
:host::after {
|
|
@@ -799,6 +800,9 @@
|
|
|
799
800
|
}
|
|
800
801
|
|
|
801
802
|
.stzh-hspace {
|
|
803
|
+
flex-grow: 1;
|
|
804
|
+
width: 100%;
|
|
805
|
+
height: 100%;
|
|
802
806
|
display: flex;
|
|
803
807
|
justify-content: flex-start;
|
|
804
808
|
align-items: flex-start;
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
}
|
|
126
126
|
:host ::slotted(*) stzh-chip[variant=filter]:not([disabled]) {
|
|
127
127
|
--color: var(--stzh-color-white);
|
|
128
|
-
--border:
|
|
128
|
+
--border-color: var(--stzh-color-white);
|
|
129
129
|
--remove-color: var(--stzh-color-white);
|
|
130
130
|
--background-color: var(--stzh-color-primary, var(--stzh-color-zueriblue));
|
|
131
131
|
--counter-color: var(--stzh-color-white56);
|
|
@@ -140,13 +140,13 @@
|
|
|
140
140
|
}
|
|
141
141
|
:host ::slotted(*) stzh-chip[variant=filter][non-interactive]:not([non-interactive=false]):not([disabled]) {
|
|
142
142
|
--hover-color: var(--color);
|
|
143
|
-
--hover-border: var(--border);
|
|
143
|
+
--hover-border-color: var(--border-color);
|
|
144
144
|
--hover-background-color: var(--background-color);
|
|
145
145
|
--hover-icon-color: var(--icon-color);
|
|
146
146
|
--hover-counter-color: var(--counter-color);
|
|
147
147
|
}
|
|
148
148
|
:host ::slotted(*) stzh-chip[variant=filter][active]:not([active=false]):not([disabled]) {
|
|
149
|
-
--border:
|
|
149
|
+
--border-color: transparent;
|
|
150
150
|
--background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
|
|
151
151
|
--hover-background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
|
|
152
152
|
--hover-remove-background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
|