@oiz/stzh-components 2.4.0-beta → 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/{_commonjsHelpers-dcc4cf71.js → _commonjsHelpers-bcc1208a.js} +0 -16
- package/dist/cjs/app-globals-d7bd37fe.js +889 -0
- package/dist/cjs/{js.cookie-226c94ed.js → js.cookie-9c263d23.js} +1 -1
- 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 +20 -8
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +36 -29
- package/dist/cjs/stzh-carousel.cjs.entry.js +522 -0
- package/dist/cjs/stzh-chart.cjs.entry.js +5998 -5171
- 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-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +10 -3
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +16 -4
- 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 +2 -2
- package/dist/cjs/stzh-footer.cjs.entry.js +3 -1
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +17 -4
- 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 +15 -4
- 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-message.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-olmap.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-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +16 -11
- package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
- package/dist/collection/assets/i18n/de.json +10 -0
- package/dist/collection/assets/i18n/en.json +11 -1
- 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 +16 -1
- package/dist/collection/components/stzh-button/stzh-button.js +73 -7
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +34 -9
- package/dist/collection/components/stzh-card/stzh-card.js +52 -54
- 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-chart/stzh-chart.css +101 -54
- package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +3 -1
- package/dist/collection/components/stzh-chip/stzh-chip.css +19 -17
- 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-cspace/stzh-cspace.css +36 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +18 -18
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +11 -0
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +28 -1
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +10 -0
- 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-input/stzh-input.stories.js +12 -12
- package/dist/collection/components/stzh-invert/stzh-invert.css +4 -4
- package/dist/collection/components/stzh-link/stzh-link.css +11 -0
- package/dist/collection/components/stzh-link/stzh-link.js +68 -3
- 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 +4 -4
- 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 +118 -12
- 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-richtext/stzh-richtext.css +14 -3
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +32 -0
- 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-vbz-ticker/stzh-vbz-ticker.js +16 -11
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +4 -0
- package/dist/collection/global/js/script.js +2 -0
- package/dist/components/_commonjsHelpers.js +1 -16
- 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 +23 -8
- package/dist/components/stzh-calendar2.js +1 -1
- package/dist/components/stzh-card2.js +37 -29
- package/dist/components/stzh-carousel.d.ts +11 -0
- package/dist/components/stzh-carousel.js +568 -0
- package/dist/components/stzh-chart.js +5995 -5168
- 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-cspace.js +1 -1
- package/dist/components/stzh-datalist-item2.js +10 -2
- package/dist/components/stzh-datalist2.js +3 -3
- package/dist/components/stzh-datamessagelist-item.js +17 -11
- 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 +18 -4
- 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-richtext2.js +14 -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-upload.js +1 -1
- package/dist/components/stzh-vbz-ticker.js +16 -11
- package/dist/components/stzh-vspace.js +1 -1
- package/dist/esm/{_commonjsHelpers-f9dc4873.js → _commonjsHelpers-ba3f0406.js} +1 -16
- package/dist/esm/app-globals-62e1178d.js +887 -0
- package/dist/esm/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
- 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 +20 -8
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card_3.entry.js +36 -29
- package/dist/esm/stzh-carousel.entry.js +518 -0
- package/dist/esm/stzh-chart.entry.js +5995 -5168
- 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-cspace.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +10 -3
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +16 -4
- 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 +2 -2
- package/dist/esm/stzh-footer.entry.js +3 -1
- package/dist/esm/stzh-ghettobox_2.entry.js +17 -4
- 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 +15 -4
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +2 -2
- package/dist/esm/stzh-message.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-olmap.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-upload.entry.js +1 -1
- package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +16 -11
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +1 -0
- package/dist/esm-es5/app-globals-62e1178d.js +1 -0
- package/dist/esm-es5/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
- 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-chart.entry.js +3 -3
- 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-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +2 -2
- 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 +2 -2
- 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-message.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-olmap.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-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +10 -0
- package/dist/stzh-components/assets/i18n/en.json +11 -1
- 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-10b4fedd.system.entry.js +1 -0
- 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-c8cc2563.system.entry.js → p-263fd0bb.system.entry.js} +1 -1
- 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-3a73b8b5.system.js +1 -0
- package/dist/stzh-components/p-3af95b5d.entry.js +1 -0
- package/dist/stzh-components/p-3e8ff66b.js +1 -0
- package/dist/stzh-components/p-3f80ce87.entry.js +1 -0
- package/dist/stzh-components/{p-c2f909c1.system.entry.js → p-3fc51ad1.system.entry.js} +1 -1
- package/dist/stzh-components/p-4453449f.entry.js +1 -0
- package/dist/stzh-components/{p-6a94e520.system.entry.js → p-454e50f8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d54ff4d4.system.entry.js → p-47175c6f.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-484a366f.system.js → p-5db542ae.system.js} +1 -1
- package/dist/stzh-components/{p-72a62d0d.system.entry.js → p-6659b6f6.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f3276ca5.system.entry.js → p-6a109ce9.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-02d51685.entry.js → p-6ee87986.entry.js} +1 -1
- package/dist/stzh-components/p-7ff1640c.entry.js +1 -0
- package/dist/stzh-components/{p-26889a91.entry.js → p-814e5ae7.entry.js} +2 -2
- package/dist/stzh-components/p-821ca4af.system.entry.js +1 -0
- package/dist/stzh-components/{p-2b67b0b3.system.entry.js → p-884793dd.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a32ae73a.system.entry.js → p-88fbb2fc.system.entry.js} +2 -2
- 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-6adc5f0c.system.entry.js → p-95bfbf67.system.entry.js} +1 -1
- 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-c9c7d88a.entry.js → p-a47e205f.entry.js} +1 -1
- package/dist/stzh-components/p-aa2c81e6.system.entry.js +3 -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-af9aac53.entry.js +3 -0
- package/dist/stzh-components/{p-24b8df26.js → p-b10682ee.js} +1 -1
- 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-b92734db.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-c9940c35.entry.js +1 -0
- 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-7e4261ce.system.entry.js → p-d5514e5b.system.entry.js} +1 -1
- 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-444b2baf.entry.js → p-e085a0a0.entry.js} +1 -1
- 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-e4aa12ba.system.entry.js +1 -0
- package/dist/stzh-components/p-e54f66ea.system.entry.js +1 -0
- package/dist/stzh-components/{p-d9ae09b5.entry.js → p-eb16ad0d.entry.js} +2 -2
- 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-af67ea5e.entry.js → p-f4c0d928.entry.js} +1 -1
- package/dist/stzh-components/p-f725921a.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 +250 -2
- package/dist/types/index.d.ts +20 -0
- package/dist/types/utils/translation-utils.d.ts +2 -0
- package/dist/vscode-data.json +106 -17
- package/package.json +6 -4
- package/dist/cjs/app-globals-57922fc2.js +0 -56
- package/dist/esm/app-globals-b848652e.js +0 -54
- package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +0 -1
- package/dist/esm-es5/app-globals-b848652e.js +0 -1
- package/dist/stzh-components/p-07dc23a3.system.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-16c0b9ae.entry.js +0 -3
- 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-1d435dd8.system.entry.js +0 -1
- package/dist/stzh-components/p-1f74846f.entry.js +0 -1
- package/dist/stzh-components/p-29e9ad9f.system.entry.js +0 -1
- package/dist/stzh-components/p-30a9de85.system.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-4c60da30.entry.js +0 -1
- package/dist/stzh-components/p-4eee30ea.system.entry.js +0 -1
- package/dist/stzh-components/p-532b4218.entry.js +0 -1
- package/dist/stzh-components/p-5d55a672.system.entry.js +0 -1
- package/dist/stzh-components/p-64cdef2f.entry.js +0 -1
- package/dist/stzh-components/p-65918f6f.system.js +0 -1
- package/dist/stzh-components/p-761ee059.entry.js +0 -1
- package/dist/stzh-components/p-798ac79c.entry.js +0 -1
- package/dist/stzh-components/p-7f857e56.entry.js +0 -1
- package/dist/stzh-components/p-84a6e023.system.entry.js +0 -1
- package/dist/stzh-components/p-89bd0d46.entry.js +0 -1
- package/dist/stzh-components/p-8caafed2.system.entry.js +0 -1
- package/dist/stzh-components/p-923dffc7.entry.js +0 -1
- package/dist/stzh-components/p-94662bed.system.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-99b82949.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-9c90535a.system.js +0 -1
- package/dist/stzh-components/p-9de8b25b.entry.js +0 -1
- package/dist/stzh-components/p-a11ef2d6.system.entry.js +0 -1
- package/dist/stzh-components/p-a691fe87.js +0 -1
- package/dist/stzh-components/p-a6be6aca.system.entry.js +0 -1
- package/dist/stzh-components/p-a6d4a8b1.js +0 -1
- package/dist/stzh-components/p-a7eb3e02.system.entry.js +0 -1
- package/dist/stzh-components/p-ae38f1d2.entry.js +0 -1
- package/dist/stzh-components/p-b04a9d0f.system.entry.js +0 -1
- package/dist/stzh-components/p-b422041d.entry.js +0 -1
- package/dist/stzh-components/p-b9372a2a.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-cc722b35.system.entry.js +0 -3
- package/dist/stzh-components/p-d1cfe06b.entry.js +0 -1
- package/dist/stzh-components/p-d943e02c.system.entry.js +0 -1
- package/dist/stzh-components/p-db306e24.entry.js +0 -1
- package/dist/stzh-components/p-e4a8f1bc.system.entry.js +0 -1
- package/dist/stzh-components/p-ed783154.system.entry.js +0 -1
- package/dist/stzh-components/p-ee4b939a.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
|
@@ -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
|
}
|
|
@@ -126,6 +126,17 @@
|
|
|
126
126
|
/* Vertical variant */
|
|
127
127
|
/* Horizontal variant */
|
|
128
128
|
}
|
|
129
|
+
.stzh-datalist-item__vhidden {
|
|
130
|
+
border: 0;
|
|
131
|
+
clip: rect(0 0 0 0);
|
|
132
|
+
-webkit-clip-path: inset(100%);
|
|
133
|
+
clip-path: inset(100%);
|
|
134
|
+
width: 0.0625rem;
|
|
135
|
+
height: 0.0625rem;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
padding: 0;
|
|
138
|
+
position: absolute;
|
|
139
|
+
}
|
|
129
140
|
.stzh-datalist-item__wrapper {
|
|
130
141
|
flex-grow: 1;
|
|
131
142
|
display: flex;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, Fragment } from "@stencil/core";
|
|
2
|
+
import { fetchTranslations } from "../../utils/translation-utils";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - Slot for nested datalist
|
|
4
5
|
*/
|
|
@@ -16,6 +17,7 @@ export class StzhDatalistItem {
|
|
|
16
17
|
this.handleHideBorderChange = (event) => {
|
|
17
18
|
this.hideBorder = event.detail.value;
|
|
18
19
|
};
|
|
20
|
+
this.localization = undefined;
|
|
19
21
|
this.direction = "vertical";
|
|
20
22
|
this.href = undefined;
|
|
21
23
|
this.rel = undefined;
|
|
@@ -43,7 +45,7 @@ export class StzhDatalistItem {
|
|
|
43
45
|
"is-button": isButton,
|
|
44
46
|
"is-link": !!this.href
|
|
45
47
|
}, href: this.href, rel: this.rel, target: this.target, download: this.download, "aria-label": `${this.label}, ${this.value}, ${this.meta}`, "aria-controls": this.a11yControls, "aria-expanded": typeof this.a11yExpanded !== "undefined"
|
|
46
|
-
? (this.a11yExpanded ? "true" : "false") : null }, this.value), h(Item, { "aria-hidden": "true", tabindex: "-1", class: {
|
|
48
|
+
? (this.a11yExpanded ? "true" : "false") : null }, this.rel && this.rel.includes('external') && h("div", { class: "stzh-datalist-item__vhidden" }, this.localization.$globals.externalLinkLabel), this.download && h("div", { class: "stzh-datalist-item__vhidden" }, this.localization.$globals.downloadLinkLabel), this.value), h(Item, { "aria-hidden": "true", tabindex: "-1", class: {
|
|
47
49
|
"stzh-datalist-item__meta": true,
|
|
48
50
|
"is-button": isButton,
|
|
49
51
|
"is-link": !!this.href
|
|
@@ -75,6 +77,11 @@ export class StzhDatalistItem {
|
|
|
75
77
|
this.datalist = null;
|
|
76
78
|
}
|
|
77
79
|
}
|
|
80
|
+
async componentWillLoad() {
|
|
81
|
+
if (!this.localization) {
|
|
82
|
+
this.localization = await fetchTranslations(this.element, "datalist-item");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
78
85
|
render() {
|
|
79
86
|
const isButton = typeof this.a11yExpanded !== "undefined"
|
|
80
87
|
|| typeof this.a11yControls !== "undefined";
|
|
@@ -120,6 +127,26 @@ export class StzhDatalistItem {
|
|
|
120
127
|
}
|
|
121
128
|
static get properties() {
|
|
122
129
|
return {
|
|
130
|
+
"localization": {
|
|
131
|
+
"type": "unknown",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "StzhLocaleComponent",
|
|
135
|
+
"resolved": "{ $locale: \"de\" | \"en\"; $formats: StzhLocaleFormats; $globals: StzhLocaleGlobals; }",
|
|
136
|
+
"references": {
|
|
137
|
+
"StzhLocaleComponent": {
|
|
138
|
+
"location": "import",
|
|
139
|
+
"path": "../../utils/translation-utils"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Translation strings"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
123
150
|
"direction": {
|
|
124
151
|
"type": "string",
|
|
125
152
|
"mutable": false,
|
|
@@ -269,6 +269,11 @@
|
|
|
269
269
|
margin-left: var(--stzh-space-xxlarge);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
+
@media screen and (min-width: 1024px) {
|
|
273
|
+
.stzh-datamessagelist-item__tags-wrapper {
|
|
274
|
+
flex-shrink: 0;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
272
277
|
.stzh-datamessagelist-item__tags {
|
|
273
278
|
display: flex;
|
|
274
279
|
flex-wrap: wrap;
|
|
@@ -282,6 +287,11 @@
|
|
|
282
287
|
.stzh-datamessagelist-item__tag {
|
|
283
288
|
margin: var(--stzh-space-xxsmall);
|
|
284
289
|
}
|
|
290
|
+
@media screen and (min-width: 1024px) {
|
|
291
|
+
.stzh-datamessagelist-item__tag {
|
|
292
|
+
flex-shrink: 0;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
285
295
|
.stzh-datamessagelist-item__actions {
|
|
286
296
|
display: flex;
|
|
287
297
|
flex-direction: column;
|
|
@@ -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;
|
|
@@ -49,11 +49,11 @@ const TemplateButtonRight = (args) => (
|
|
|
49
49
|
// we put this input inside another element
|
|
50
50
|
// to test if autofocus works when the component
|
|
51
51
|
// is used as a child of another stzh- component
|
|
52
|
-
const TemplateAutofocus = (args) => (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)
|
|
52
|
+
// const TemplateAutofocus = (args) => (
|
|
53
|
+
// <stzh-section>
|
|
54
|
+
// <stzh-input {...args}></stzh-input>
|
|
55
|
+
// </stzh-section>
|
|
56
|
+
// )
|
|
57
57
|
|
|
58
58
|
export const Default = Template.bind({});
|
|
59
59
|
Default.args = {
|
|
@@ -107,10 +107,10 @@ ButtonRight.args = {
|
|
|
107
107
|
value: 'Lorem ipsum dolor sit amet.'
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
export const Autofocus = TemplateAutofocus.bind({});
|
|
111
|
-
Autofocus.args = {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
110
|
+
// export const Autofocus = TemplateAutofocus.bind({});
|
|
111
|
+
// Autofocus.args = {
|
|
112
|
+
// name: 'text',
|
|
113
|
+
// label: 'Label',
|
|
114
|
+
// description: 'This field should be focused on page load',
|
|
115
|
+
// autofocus: true
|
|
116
|
+
// }
|
|
@@ -125,10 +125,10 @@
|
|
|
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
|
-
--counter-color: var(--stzh-color-
|
|
131
|
+
--counter-color: var(--stzh-color-white56);
|
|
132
132
|
--icon-color: var(--stzh-color-white);
|
|
133
133
|
--hover-color: var(--stzh-color-white);
|
|
134
134
|
--hover-border: 0.0625rem solid transparent;
|
|
@@ -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));
|
|
@@ -177,6 +177,17 @@
|
|
|
177
177
|
-webkit-text-decoration: var(--hover-text-decoration);
|
|
178
178
|
text-decoration: var(--hover-text-decoration);
|
|
179
179
|
}
|
|
180
|
+
.stzh-link__vhidden {
|
|
181
|
+
border: 0;
|
|
182
|
+
clip: rect(0 0 0 0);
|
|
183
|
+
-webkit-clip-path: inset(100%);
|
|
184
|
+
clip-path: inset(100%);
|
|
185
|
+
width: 0.0625rem;
|
|
186
|
+
height: 0.0625rem;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
padding: 0;
|
|
189
|
+
position: absolute;
|
|
190
|
+
}
|
|
180
191
|
.stzh-link__inner {
|
|
181
192
|
display: flex;
|
|
182
193
|
align-items: center;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, Fragment, h } from "@stencil/core";
|
|
2
2
|
import { hasSlot } from "../../utils/utils";
|
|
3
|
+
import { fetchTranslations } from "../../utils/translation-utils";
|
|
3
4
|
/**
|
|
4
5
|
* @slot - Slot for text content
|
|
5
6
|
* @slot icon - Slot for icon element
|
|
@@ -30,6 +31,7 @@ export class StzhLink {
|
|
|
30
31
|
originalEvent: event
|
|
31
32
|
});
|
|
32
33
|
};
|
|
34
|
+
this.localization = undefined;
|
|
33
35
|
this.icon = "";
|
|
34
36
|
this.iconPosition = "left";
|
|
35
37
|
this.size = "default";
|
|
@@ -53,7 +55,9 @@ export class StzhLink {
|
|
|
53
55
|
this.a11yLabel = undefined;
|
|
54
56
|
this.a11yDescribedby = "";
|
|
55
57
|
this.a11yExpanded = undefined;
|
|
58
|
+
this.a11yDisabled = undefined;
|
|
56
59
|
this.a11yControls = undefined;
|
|
60
|
+
this.a11yTabindex = undefined;
|
|
57
61
|
}
|
|
58
62
|
/** Focus link */
|
|
59
63
|
async setFocus() {
|
|
@@ -67,12 +71,17 @@ export class StzhLink {
|
|
|
67
71
|
h("stzh-badge", { class: "stzh-link__badge", label: this.badge, type: this.badgeType })));
|
|
68
72
|
}
|
|
69
73
|
renderContent() {
|
|
70
|
-
return (h("div", { class: "stzh-link__text" }, this.label ? this.label : h("slot", null)));
|
|
74
|
+
return (h("div", { class: "stzh-link__text" }, this.rel && this.rel.includes('external') && h("div", { class: "stzh-link__vhidden" }, this.localization.$globals.externalLinkLabel), this.download && h("div", { class: "stzh-link__vhidden" }, this.localization.$globals.downloadLinkLabel), this.label ? this.label : h("slot", null)));
|
|
71
75
|
}
|
|
72
76
|
renderInner(iconUsed) {
|
|
73
77
|
return (h(Fragment, null, h("div", { class: "stzh-link__inner" }, this.iconPosition === "left" && this.renderIcon(), this.renderContent(), this.iconPosition === "right" && this.renderIcon()), (this.badge || this.badgeEmpty) && !iconUsed &&
|
|
74
78
|
h("stzh-badge", { class: "stzh-link__badge", label: this.badge, type: this.badgeType })));
|
|
75
79
|
}
|
|
80
|
+
async componentWillLoad() {
|
|
81
|
+
if (!this.localization) {
|
|
82
|
+
this.localization = await fetchTranslations(this.element, "link");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
76
85
|
render() {
|
|
77
86
|
const iconUsed = hasSlot(this.element, "icon") || !!this.icon;
|
|
78
87
|
const classes = {
|
|
@@ -89,10 +98,12 @@ export class StzhLink {
|
|
|
89
98
|
[`stzh-link--${this.variant}`]: !!this.variant,
|
|
90
99
|
};
|
|
91
100
|
return (h(Host, null, this.href ?
|
|
92
|
-
h("a", { ref: (el) => (this.link = el), href: this.disabled ? null : this.href, download: this.download, rel: this.rel, target: this.target, class: classes, accessKey: this.linkAccesskey, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-
|
|
101
|
+
h("a", { ref: (el) => (this.link = el), href: this.disabled ? null : this.href, download: this.download, rel: this.rel, target: this.target, class: classes, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-disabled": typeof this.a11yDisabled !== "undefined"
|
|
102
|
+
? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
|
|
93
103
|
? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))
|
|
94
104
|
:
|
|
95
|
-
h("button", { ref: (el) => (this.link = el), class: classes, type: this.type, disabled: this.disabled, accessKey: this.linkAccesskey, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-
|
|
105
|
+
h("button", { ref: (el) => (this.link = el), class: classes, 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"
|
|
106
|
+
? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
|
|
96
107
|
? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))));
|
|
97
108
|
}
|
|
98
109
|
static get is() { return "stzh-link"; }
|
|
@@ -109,6 +120,26 @@ export class StzhLink {
|
|
|
109
120
|
}
|
|
110
121
|
static get properties() {
|
|
111
122
|
return {
|
|
123
|
+
"localization": {
|
|
124
|
+
"type": "unknown",
|
|
125
|
+
"mutable": false,
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "StzhLocaleComponent",
|
|
128
|
+
"resolved": "{ $locale: \"de\" | \"en\"; $formats: StzhLocaleFormats; $globals: StzhLocaleGlobals; }",
|
|
129
|
+
"references": {
|
|
130
|
+
"StzhLocaleComponent": {
|
|
131
|
+
"location": "import",
|
|
132
|
+
"path": "../../utils/translation-utils"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "Translation strings"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
112
143
|
"icon": {
|
|
113
144
|
"type": "string",
|
|
114
145
|
"mutable": false,
|
|
@@ -518,6 +549,23 @@ export class StzhLink {
|
|
|
518
549
|
"attribute": "a11y-expanded",
|
|
519
550
|
"reflect": true
|
|
520
551
|
},
|
|
552
|
+
"a11yDisabled": {
|
|
553
|
+
"type": "boolean",
|
|
554
|
+
"mutable": false,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "boolean",
|
|
557
|
+
"resolved": "boolean",
|
|
558
|
+
"references": {}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": "Aria disabled of link/button"
|
|
565
|
+
},
|
|
566
|
+
"attribute": "a11y-disabled",
|
|
567
|
+
"reflect": true
|
|
568
|
+
},
|
|
521
569
|
"a11yControls": {
|
|
522
570
|
"type": "string",
|
|
523
571
|
"mutable": false,
|
|
@@ -534,6 +582,23 @@ export class StzhLink {
|
|
|
534
582
|
},
|
|
535
583
|
"attribute": "a11y-controls",
|
|
536
584
|
"reflect": false
|
|
585
|
+
},
|
|
586
|
+
"a11yTabindex": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"mutable": false,
|
|
589
|
+
"complexType": {
|
|
590
|
+
"original": "string",
|
|
591
|
+
"resolved": "string",
|
|
592
|
+
"references": {}
|
|
593
|
+
},
|
|
594
|
+
"required": false,
|
|
595
|
+
"optional": false,
|
|
596
|
+
"docs": {
|
|
597
|
+
"tags": [],
|
|
598
|
+
"text": "Tabindex of link/button"
|
|
599
|
+
},
|
|
600
|
+
"attribute": "a11y-tabindex",
|
|
601
|
+
"reflect": false
|
|
537
602
|
}
|
|
538
603
|
};
|
|
539
604
|
}
|