@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
|
@@ -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 label/text content
|
|
5
6
|
* @slot icon - Slot for icon element
|
|
@@ -45,6 +46,7 @@ export class StzhButton {
|
|
|
45
46
|
event.preventDefault();
|
|
46
47
|
}
|
|
47
48
|
};
|
|
49
|
+
this.localization = undefined;
|
|
48
50
|
this.badge = "";
|
|
49
51
|
this.badgeType = "default";
|
|
50
52
|
this.badgePosition = "button";
|
|
@@ -74,7 +76,9 @@ export class StzhButton {
|
|
|
74
76
|
this.a11yLabel = undefined;
|
|
75
77
|
this.a11yDescribedby = "";
|
|
76
78
|
this.a11yExpanded = undefined;
|
|
79
|
+
this.a11yDisabled = undefined;
|
|
77
80
|
this.a11yControls = undefined;
|
|
81
|
+
this.a11yTabindex = undefined;
|
|
78
82
|
}
|
|
79
83
|
/** Focus button */
|
|
80
84
|
async setFocus() {
|
|
@@ -88,13 +92,18 @@ export class StzhButton {
|
|
|
88
92
|
h("stzh-badge", { class: "stzh-button__badge", label: this.badge, type: this.badgeType })));
|
|
89
93
|
}
|
|
90
94
|
renderContent() {
|
|
91
|
-
return (h("div", { class: "stzh-button__text" }, this.label ? this.label : h("slot", null)));
|
|
95
|
+
return (h("div", { class: "stzh-button__text" }, this.rel && this.rel.includes('external') && h("div", { class: "stzh-button__vhidden" }, this.localization.$globals.externalLinkLabel), this.download && h("div", { class: "stzh-button__vhidden" }, this.localization.$globals.downloadLinkLabel), this.label ? this.label : h("slot", null)));
|
|
92
96
|
}
|
|
93
97
|
renderInner(iconUsed) {
|
|
94
98
|
return (h(Fragment, null, h("div", { class: "stzh-button__inner", onClick: this.onClick }, this.type === "radio" &&
|
|
95
99
|
h("div", { class: "stzh-button__mark" }, h("div", { class: "stzh-button__check" })), this.iconPosition === "left" && this.renderIcon(iconUsed), this.renderContent(), this.iconPosition === "right" && this.renderIcon(iconUsed)), (this.badge || this.badgeEmpty) && (this.badgePosition === "button" || !iconUsed) &&
|
|
96
100
|
h("stzh-badge", { class: "stzh-button__badge", label: this.badge, type: this.badgeType, onClick: this.onClick })));
|
|
97
101
|
}
|
|
102
|
+
async componentWillLoad() {
|
|
103
|
+
if (!this.localization) {
|
|
104
|
+
this.localization = await fetchTranslations(this.element, "button");
|
|
105
|
+
}
|
|
106
|
+
}
|
|
98
107
|
render() {
|
|
99
108
|
const iconUsed = hasSlot(this.element, "icon") || !!this.icon;
|
|
100
109
|
const classes = {
|
|
@@ -115,15 +124,18 @@ export class StzhButton {
|
|
|
115
124
|
[`stzh-button--${this.variant}`]: !!this.variant
|
|
116
125
|
};
|
|
117
126
|
return (h(Host, null, this.href ?
|
|
118
|
-
h("a", { ref: (el) => (this.button = el), href: this.disabled ? null : this.href, rel: this.rel, download: this.download, target: this.target, class: classes, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-
|
|
119
|
-
? (this.
|
|
127
|
+
h("a", { ref: (el) => (this.button = el), href: this.disabled ? null : this.href, rel: this.rel, download: this.download, target: this.target, class: classes, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-disabled": typeof this.a11yDisabled !== "undefined"
|
|
128
|
+
? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
|
|
129
|
+
? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, this.renderInner(iconUsed))
|
|
120
130
|
:
|
|
121
131
|
this.type === "radio" ?
|
|
122
|
-
h("label", { ref: (el) => (this.button = el), class: classes, onClick: this.onClick }, h("input", { ref: (el) => (this.input = el), type: "radio", class: "stzh-button__input", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-
|
|
123
|
-
? (this.
|
|
132
|
+
h("label", { ref: (el) => (this.button = el), class: classes, onClick: this.onClick }, h("input", { ref: (el) => (this.input = el), type: "radio", class: "stzh-button__input", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-disabled": typeof this.a11yDisabled !== "undefined"
|
|
133
|
+
? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
|
|
134
|
+
? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, onInput: this.onInput }), this.renderInner(iconUsed))
|
|
124
135
|
:
|
|
125
|
-
h("button", { ref: (el) => (this.button = el), class: classes, type: this.type, disabled: this.disabled, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-
|
|
126
|
-
? (this.
|
|
136
|
+
h("button", { ref: (el) => (this.button = el), class: classes, type: this.type, disabled: this.disabled, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-disabled": typeof this.a11yDisabled !== "undefined"
|
|
137
|
+
? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
|
|
138
|
+
? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, this.renderInner(iconUsed))));
|
|
127
139
|
}
|
|
128
140
|
static get is() { return "stzh-button"; }
|
|
129
141
|
static get encapsulation() { return "scoped"; }
|
|
@@ -139,6 +151,26 @@ export class StzhButton {
|
|
|
139
151
|
}
|
|
140
152
|
static get properties() {
|
|
141
153
|
return {
|
|
154
|
+
"localization": {
|
|
155
|
+
"type": "unknown",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "StzhLocaleComponent",
|
|
159
|
+
"resolved": "{ $locale: \"de\" | \"en\"; $formats: StzhLocaleFormats; $globals: StzhLocaleGlobals; }",
|
|
160
|
+
"references": {
|
|
161
|
+
"StzhLocaleComponent": {
|
|
162
|
+
"location": "import",
|
|
163
|
+
"path": "../../utils/translation-utils"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Translation strings"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
142
174
|
"badge": {
|
|
143
175
|
"type": "string",
|
|
144
176
|
"mutable": false,
|
|
@@ -656,6 +688,23 @@ export class StzhButton {
|
|
|
656
688
|
"attribute": "a11y-expanded",
|
|
657
689
|
"reflect": true
|
|
658
690
|
},
|
|
691
|
+
"a11yDisabled": {
|
|
692
|
+
"type": "boolean",
|
|
693
|
+
"mutable": false,
|
|
694
|
+
"complexType": {
|
|
695
|
+
"original": "boolean",
|
|
696
|
+
"resolved": "boolean",
|
|
697
|
+
"references": {}
|
|
698
|
+
},
|
|
699
|
+
"required": false,
|
|
700
|
+
"optional": false,
|
|
701
|
+
"docs": {
|
|
702
|
+
"tags": [],
|
|
703
|
+
"text": "Aria disabled of link/button"
|
|
704
|
+
},
|
|
705
|
+
"attribute": "a11y-disabled",
|
|
706
|
+
"reflect": true
|
|
707
|
+
},
|
|
659
708
|
"a11yControls": {
|
|
660
709
|
"type": "string",
|
|
661
710
|
"mutable": false,
|
|
@@ -672,6 +721,23 @@ export class StzhButton {
|
|
|
672
721
|
},
|
|
673
722
|
"attribute": "a11y-controls",
|
|
674
723
|
"reflect": false
|
|
724
|
+
},
|
|
725
|
+
"a11yTabindex": {
|
|
726
|
+
"type": "string",
|
|
727
|
+
"mutable": false,
|
|
728
|
+
"complexType": {
|
|
729
|
+
"original": "string",
|
|
730
|
+
"resolved": "string",
|
|
731
|
+
"references": {}
|
|
732
|
+
},
|
|
733
|
+
"required": false,
|
|
734
|
+
"optional": false,
|
|
735
|
+
"docs": {
|
|
736
|
+
"tags": [],
|
|
737
|
+
"text": "Tabindex of link/button"
|
|
738
|
+
},
|
|
739
|
+
"attribute": "a11y-tabindex",
|
|
740
|
+
"reflect": false
|
|
675
741
|
}
|
|
676
742
|
};
|
|
677
743
|
}
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
|
|
100
100
|
:host {
|
|
101
101
|
--box-shadow: var(--stzh-box-shadow-popover);
|
|
102
|
-
--border:
|
|
102
|
+
--border-color: var(--stzh-base-border-color);
|
|
103
103
|
--border-radius: 0.1875rem;
|
|
104
104
|
--content-min-height: 7.5rem;
|
|
105
105
|
--dnd-visibility: hidden;
|
|
@@ -115,6 +115,12 @@
|
|
|
115
115
|
:host[checked]:not([checked=false]) {
|
|
116
116
|
outline: 0.1875rem solid var(--stzh-color-primary, var(--stzh-color-zueriblue));
|
|
117
117
|
}
|
|
118
|
+
:host[hide-elevation]:not([hide-elevation=false]) {
|
|
119
|
+
--box-shadow: none;
|
|
120
|
+
}
|
|
121
|
+
:host[hide-elevation]:not([hide-elevation=false])[href]:hover, :host[hide-elevation]:not([hide-elevation=false])[href]:focus-within, :host[hide-elevation]:not([hide-elevation=false]).is-selected, :host[hide-elevation]:not([hide-elevation=false]).is-chosen, .is-selected :host[hide-elevation]:not([hide-elevation=false]), .is-chosen :host[hide-elevation]:not([hide-elevation=false]) {
|
|
122
|
+
--box-shadow: var(--stzh-box-shadow-popover);
|
|
123
|
+
}
|
|
118
124
|
:host.is-ghost::after, .is-ghost :host::after {
|
|
119
125
|
border-radius: var(--border-radius);
|
|
120
126
|
}
|
|
@@ -123,10 +129,10 @@
|
|
|
123
129
|
}
|
|
124
130
|
:host.is-ghost, .is-ghost :host {
|
|
125
131
|
--box-shadow: none;
|
|
126
|
-
--border:
|
|
132
|
+
--border-color: transparent;
|
|
127
133
|
overflow: hidden;
|
|
128
134
|
}
|
|
129
|
-
:host.is-drag, :host.is-chosen, :host.is-ghost, :host.is-selected, .is-drag :host, .is-chosen :host, .is-ghost :host, .is-selected :host {
|
|
135
|
+
:host.is-drag, :host.is-chosen, :host.is-ghost, :host.is-selected, .is-drag :host, .is-chosen :host, .is-ghost :host, .is-selected :host, :host[is-sortable]:hover {
|
|
130
136
|
--dnd-visibility: visible;
|
|
131
137
|
--dnd-opacity: 1;
|
|
132
138
|
}
|
|
@@ -195,7 +201,9 @@
|
|
|
195
201
|
background-color: var(--stzh-color-white);
|
|
196
202
|
border-radius: var(--border-radius);
|
|
197
203
|
box-shadow: var(--box-shadow);
|
|
198
|
-
border:
|
|
204
|
+
border-width: 0.0625rem;
|
|
205
|
+
border-style: solid;
|
|
206
|
+
border-color: var(--border-color);
|
|
199
207
|
transition: box-shadow var(--stzh-base-transition-animation-speed);
|
|
200
208
|
/* Has Link */
|
|
201
209
|
/* Interactive Subtitle */
|
|
@@ -276,7 +284,7 @@
|
|
|
276
284
|
align-items: flex-start;
|
|
277
285
|
}
|
|
278
286
|
.stzh-card__header-meta {
|
|
279
|
-
display: flex;
|
|
287
|
+
display: inline-flex;
|
|
280
288
|
}
|
|
281
289
|
.stzh-card__header-meta:not(:empty) {
|
|
282
290
|
margin-top: var(--stzh-space-xsmall);
|
|
@@ -385,8 +393,8 @@
|
|
|
385
393
|
}
|
|
386
394
|
@media screen and (max-width: 1023px) {
|
|
387
395
|
.stzh-card__card-action {
|
|
388
|
-
--icon-text-margin:
|
|
389
|
-
--badge-icon-text-margin:
|
|
396
|
+
--icon-text-margin: 0px;
|
|
397
|
+
--badge-icon-text-margin: 0px;
|
|
390
398
|
}
|
|
391
399
|
}
|
|
392
400
|
.stzh-card__card-action[variant=tertiary] {
|
|
@@ -408,6 +416,23 @@
|
|
|
408
416
|
transition: color var(--stzh-base-transition-animation-speed);
|
|
409
417
|
border-radius: var(--stzh-button-border-radius);
|
|
410
418
|
}
|
|
419
|
+
.stzh-card--has-link .stzh-card__title-link::before, .stzh-card--has-link .stzh-card__title-link::after {
|
|
420
|
+
content: "";
|
|
421
|
+
z-index: 1;
|
|
422
|
+
display: block;
|
|
423
|
+
position: absolute;
|
|
424
|
+
top: 0;
|
|
425
|
+
left: 0;
|
|
426
|
+
width: 100%;
|
|
427
|
+
height: 100%;
|
|
428
|
+
}
|
|
429
|
+
.stzh-card--has-link .stzh-card__card-actions, .stzh-card--has-link .stzh-card__header-meta, .stzh-card--has-link .stzh-card__footer-actionset, .stzh-card--has-link .stzh-card__footer-select-button {
|
|
430
|
+
position: relative;
|
|
431
|
+
z-index: 2;
|
|
432
|
+
}
|
|
433
|
+
.stzh-card--has-link .stzh-card__image-link:hover + .stzh-card__content-wrapper .stzh-card__title-link, .stzh-card--has-link .stzh-card__title-link:hover, .stzh-card--has-link .stzh-card__title-link:focus {
|
|
434
|
+
color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
|
|
435
|
+
}
|
|
411
436
|
.stzh-card--has-link:hover .stzh-card__footer-arrow {
|
|
412
437
|
color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
|
|
413
438
|
}
|
|
@@ -450,8 +475,8 @@
|
|
|
450
475
|
border-bottom: none;
|
|
451
476
|
}
|
|
452
477
|
.stzh-card--is-collapsed .stzh-card__card-action, .stzh-card--has-collapsed-header .stzh-card__card-action {
|
|
453
|
-
--icon-text-margin:
|
|
454
|
-
--badge-icon-text-margin:
|
|
478
|
+
--icon-text-margin: 0px;
|
|
479
|
+
--badge-icon-text-margin: 0px;
|
|
455
480
|
}
|
|
456
481
|
.stzh-card--is-starred .stzh-card__card-action.is-star {
|
|
457
482
|
color: var(--stzh-color-primary, var(--stzh-color-zueriblue));
|
|
@@ -105,6 +105,12 @@ export class StzhCard {
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
+
this.handleResize = () => {
|
|
109
|
+
if (this.debounceResize) {
|
|
110
|
+
window.cancelAnimationFrame(this.debounceResize);
|
|
111
|
+
}
|
|
112
|
+
this.debounceResize = requestAnimationFrame(this.update);
|
|
113
|
+
};
|
|
108
114
|
this.handleMutation = (entries) => {
|
|
109
115
|
this.init();
|
|
110
116
|
this.nodeChange(entries);
|
|
@@ -139,14 +145,9 @@ export class StzhCard {
|
|
|
139
145
|
this.collapsible = false;
|
|
140
146
|
this.hideHeaderBorder = false;
|
|
141
147
|
this.hideFooterBorder = false;
|
|
148
|
+
this.hideElevation = false;
|
|
142
149
|
this.hideMovementActions = false;
|
|
143
150
|
}
|
|
144
|
-
handleResize() {
|
|
145
|
-
if (this.debounceResize) {
|
|
146
|
-
window.cancelAnimationFrame(this.debounceResize);
|
|
147
|
-
}
|
|
148
|
-
this.debounceResize = requestAnimationFrame(this.update);
|
|
149
|
-
}
|
|
150
151
|
subtitleWatcher(newValue) {
|
|
151
152
|
if (typeof newValue === "string") {
|
|
152
153
|
try {
|
|
@@ -218,14 +219,35 @@ export class StzhCard {
|
|
|
218
219
|
childList: true,
|
|
219
220
|
subtree: true
|
|
220
221
|
});
|
|
222
|
+
this.resizeObserver = new ResizeObserver(this.handleResize);
|
|
223
|
+
this.resizeObserver.observe(this.element);
|
|
221
224
|
}
|
|
222
225
|
disconnectedCallback() {
|
|
223
|
-
this.observer
|
|
226
|
+
if (this.observer) {
|
|
227
|
+
this.observer.disconnect();
|
|
228
|
+
}
|
|
229
|
+
if (this.resizeObserver) {
|
|
230
|
+
this.resizeObserver.disconnect();
|
|
231
|
+
}
|
|
224
232
|
}
|
|
225
233
|
render() {
|
|
226
234
|
var _a, _b, _c;
|
|
227
235
|
const imageUsed = hasSlot(this.element, "image");
|
|
228
236
|
const contentUsed = hasSlot(this.element, "content");
|
|
237
|
+
const Subtitle = `${this.subtitleInteractive ? 'button' : 'span'}`;
|
|
238
|
+
const sortableChildElement = this.findSortableChildElement();
|
|
239
|
+
const isFirstItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
|
|
240
|
+
&& Array.from((_a = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _a === void 0 ? void 0 : _a.children)
|
|
241
|
+
.indexOf(sortableChildElement) === 0;
|
|
242
|
+
const isLastItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
|
|
243
|
+
&& Array.from((_b = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _b === void 0 ? void 0 : _b.children)
|
|
244
|
+
.indexOf(sortableChildElement) === ((_c = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _c === void 0 ? void 0 : _c.children.length) - 1;
|
|
245
|
+
const sortableEnabled = !this.sortableDisabled && this.sortable && !this.sortable.disabled;
|
|
246
|
+
const sortableActionsEnabled = sortableEnabled && !this.hideMovementActions;
|
|
247
|
+
const nonCollapsingTextHeaderActions = this._headerActions.filter(action => !action.onlyCollapseText);
|
|
248
|
+
// const headerActions = [
|
|
249
|
+
// ...this._headerActions
|
|
250
|
+
// ];
|
|
229
251
|
const classes = {
|
|
230
252
|
"stzh-card": true,
|
|
231
253
|
"stzh-card--has-link": !!this.href,
|
|
@@ -238,25 +260,10 @@ export class StzhCard {
|
|
|
238
260
|
"stzh-card--is-collapsible": this.collapsible,
|
|
239
261
|
"stzh-card--is-collapsed": this.collapsed,
|
|
240
262
|
"stzh-card--is-starred": this.starred,
|
|
241
|
-
"stzh-card--is-checked": this.checked
|
|
263
|
+
"stzh-card--is-checked": this.checked,
|
|
264
|
+
"stzh-card--is-sortable": sortableEnabled
|
|
242
265
|
};
|
|
243
|
-
|
|
244
|
-
const sortableChildElement = this.findSortableChildElement();
|
|
245
|
-
const isFirstItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
|
|
246
|
-
&& Array.from((_a = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _a === void 0 ? void 0 : _a.children)
|
|
247
|
-
.indexOf(sortableChildElement) === 0;
|
|
248
|
-
const isLastItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
|
|
249
|
-
&& Array.from((_b = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _b === void 0 ? void 0 : _b.children)
|
|
250
|
-
.indexOf(sortableChildElement) === ((_c = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _c === void 0 ? void 0 : _c.children.length) - 1;
|
|
251
|
-
const sortableActionsEnabled = !this.sortableDisabled
|
|
252
|
-
&& !this.hideMovementActions
|
|
253
|
-
&& this.sortable
|
|
254
|
-
&& !this.sortable.disabled;
|
|
255
|
-
const nonCollapsingTextHeaderActions = this._headerActions.filter(action => !action.onlyCollapseText);
|
|
256
|
-
// const headerActions = [
|
|
257
|
-
// ...this._headerActions
|
|
258
|
-
// ];
|
|
259
|
-
return (h(Host, { role: "listitem", "aria-label": this.heading }, h("article", { ref: (el) => (this.mainElement = el), class: classes }, h("a", { "aria-hidden": "true", tabindex: "-1", class: "stzh-card__image-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, h("slot", { name: "image" })), h("div", { class: "stzh-card__content-wrapper" }, h("stzh-icon", { class: "stzh-card__dnd", name: "drag" }), h("header", { ref: (el) => (this.headerElement = el), class: "stzh-card__header", onClick: this.headerClick }, h("div", { class: "stzh-card__header-top" }, h("div", { ref: (el) => (this.headerLeftElement = el), class: "stzh-card__header-left" }, h("div", { class: "stzh-card__title-area" }, h("h3", { class: "stzh-card__title" }, h("a", { class: "stzh-card__title-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, this.heading ? this.heading : h("slot", { name: "heading" }))), this._subtitles.length > 0 &&
|
|
266
|
+
return (h(Host, { role: "listitem", "aria-label": this.heading, "is-sortable": sortableEnabled }, h("article", { ref: (el) => (this.mainElement = el), class: classes }, h("a", { "aria-hidden": "true", tabindex: "-1", class: "stzh-card__image-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, h("slot", { name: "image" })), h("div", { class: "stzh-card__content-wrapper" }, h("stzh-icon", { class: "stzh-card__dnd", name: "drag" }), h("header", { ref: (el) => (this.headerElement = el), class: "stzh-card__header", onClick: this.headerClick }, h("div", { class: "stzh-card__header-top" }, h("div", { ref: (el) => (this.headerLeftElement = el), class: "stzh-card__header-left" }, h("div", { class: "stzh-card__title-area" }, h("h3", { class: "stzh-card__title" }, h("a", { class: "stzh-card__title-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, this.heading ? this.heading : h("slot", { name: "heading" }))), this._subtitles.length > 0 &&
|
|
260
267
|
h(Subtitle, { class: "stzh-card__subtitle", onClick: this.subtitleClick }, this._subtitles.map(subtitle => (h("span", { class: "stzh-card__subtitle-text" }, subtitle)))))), h("div", { ref: (el) => (this.headerRightElement = el), class: "stzh-card__header-right" }, h("div", { class: "stzh-card__card-actions" }, this._headerActions.map(action => (h("stzh-button", { class: {
|
|
261
268
|
"stzh-card__card-action": true,
|
|
262
269
|
"is-button": true,
|
|
@@ -276,8 +283,8 @@ export class StzhCard {
|
|
|
276
283
|
h(Fragment, null, !isFirstItemInSortable &&
|
|
277
284
|
h("stzh-menu-item", { icon: "arrow-up", onClick: this.arrowUpClick }, this.localization.actionMoveUp), !isLastItemInSortable &&
|
|
278
285
|
h("stzh-menu-item", { icon: "arrow-down", onClick: this.arrowDownClick }, this.localization.actionMoveDown))))))), h("div", { class: "stzh-card__header-meta" }, h("slot", { name: "meta" }))), h("div", { class: "stzh-card__content hide-when-collapsed" }, h("slot", { name: "content" })), h("div", { class: "stzh-card__footer hide-when-collapsed" }, h("slot", { name: "footer" }, this._footerActions.length > 0 &&
|
|
279
|
-
h("stzh-actionset", { actions: this._footerActions }), this.selectable &&
|
|
280
|
-
h("stzh-button", { fullwidth: true, type: "radio", variant: "secondary", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, label: this.localization.select, onStzhChange: this.handleSelectionChange }), this.withArrow &&
|
|
286
|
+
h("stzh-actionset", { class: "stzh-card__footer-actionset", actions: this._footerActions }), this.selectable &&
|
|
287
|
+
h("stzh-button", { class: "stzh-card__footer-select-button", fullwidth: true, type: "radio", variant: "secondary", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, label: this.localization.select, onStzhChange: this.handleSelectionChange }), this.withArrow &&
|
|
281
288
|
h("stzh-icon", { class: "stzh-card__footer-arrow", name: "arrow-right-long" })))))));
|
|
282
289
|
}
|
|
283
290
|
static get is() { return "stzh-card"; }
|
|
@@ -682,6 +689,24 @@ export class StzhCard {
|
|
|
682
689
|
"reflect": true,
|
|
683
690
|
"defaultValue": "false"
|
|
684
691
|
},
|
|
692
|
+
"hideElevation": {
|
|
693
|
+
"type": "boolean",
|
|
694
|
+
"mutable": false,
|
|
695
|
+
"complexType": {
|
|
696
|
+
"original": "boolean",
|
|
697
|
+
"resolved": "boolean",
|
|
698
|
+
"references": {}
|
|
699
|
+
},
|
|
700
|
+
"required": false,
|
|
701
|
+
"optional": false,
|
|
702
|
+
"docs": {
|
|
703
|
+
"tags": [],
|
|
704
|
+
"text": "Whether card elevation should be hidden"
|
|
705
|
+
},
|
|
706
|
+
"attribute": "hide-elevation",
|
|
707
|
+
"reflect": true,
|
|
708
|
+
"defaultValue": "false"
|
|
709
|
+
},
|
|
685
710
|
"hideMovementActions": {
|
|
686
711
|
"type": "boolean",
|
|
687
712
|
"mutable": false,
|
|
@@ -821,31 +846,4 @@ export class StzhCard {
|
|
|
821
846
|
"methodName": "collapsedWatcher"
|
|
822
847
|
}];
|
|
823
848
|
}
|
|
824
|
-
static get listeners() {
|
|
825
|
-
return [{
|
|
826
|
-
"name": "appload",
|
|
827
|
-
"method": "handleResize",
|
|
828
|
-
"target": "window",
|
|
829
|
-
"capture": false,
|
|
830
|
-
"passive": false
|
|
831
|
-
}, {
|
|
832
|
-
"name": "resize",
|
|
833
|
-
"method": "handleResize",
|
|
834
|
-
"target": "window",
|
|
835
|
-
"capture": false,
|
|
836
|
-
"passive": true
|
|
837
|
-
}, {
|
|
838
|
-
"name": "DOMContentLoaded",
|
|
839
|
-
"method": "handleResize",
|
|
840
|
-
"target": "window",
|
|
841
|
-
"capture": false,
|
|
842
|
-
"passive": false
|
|
843
|
-
}, {
|
|
844
|
-
"name": "load",
|
|
845
|
-
"method": "handleResize",
|
|
846
|
-
"target": "window",
|
|
847
|
-
"capture": false,
|
|
848
|
-
"passive": false
|
|
849
|
-
}];
|
|
850
|
-
}
|
|
851
849
|
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
* Base
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Flyingfocus
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Link
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Text
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Richtext
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Section
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Header
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Appnav
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Progressbar
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Loader
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* Table
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Heading
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* Menu (Item)
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Form Elements (Input / Checkbox / Radio / Select / Datepicker)
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Popover
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Tooltips
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Accordions
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Buttons
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Box Shadows
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Z-Indexes
|
|
63
|
+
* Inspired by https://www.duetds.com/tokens/#z-index
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* Icon sizes
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* Grid
|
|
70
|
+
*/
|
|
71
|
+
/**
|
|
72
|
+
* Breakpoints
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Container
|
|
76
|
+
*/
|
|
77
|
+
/**
|
|
78
|
+
* Spaces
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* Fonts
|
|
82
|
+
*/
|
|
83
|
+
:host {
|
|
84
|
+
font-family: var(--stzh-font-family-regular);
|
|
85
|
+
font-weight: var(--stzh-font-weight-regular);
|
|
86
|
+
font-style: normal;
|
|
87
|
+
color: var(--stzh-base-color);
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
display: block;
|
|
90
|
+
}
|
|
91
|
+
:host[hidden] {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
:host *,
|
|
95
|
+
:host *::before,
|
|
96
|
+
:host *::after {
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host {
|
|
101
|
+
--peek: calc(var(--peek-in, 0px) + var(--peek-out, 0px));
|
|
102
|
+
--peek-out: 1.25rem;
|
|
103
|
+
--padding-top: 0px;
|
|
104
|
+
--padding-bottom: 0px;
|
|
105
|
+
--gutter: var(--stzh-space-xxxsmall);
|
|
106
|
+
--snap-stop: always;
|
|
107
|
+
--slides: 1;
|
|
108
|
+
--slide-size: calc((100% - (var(--slides) - 1) * var(--gutter)) / var(--slides));
|
|
109
|
+
}
|
|
110
|
+
@media screen and (min-width: 600px) {
|
|
111
|
+
:host {
|
|
112
|
+
--peek-out: 0px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
:host[variant=cards] {
|
|
116
|
+
--padding-top: 0.25rem;
|
|
117
|
+
--padding-bottom: 0.25rem;
|
|
118
|
+
--gutter: var(--stzh-space-xsmall);
|
|
119
|
+
}
|
|
120
|
+
@media screen and (min-width: 600px) {
|
|
121
|
+
:host[variant=cards] {
|
|
122
|
+
--peek-out: 2rem;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
@media screen and (min-width: 1024px) {
|
|
126
|
+
:host[variant=cards] {
|
|
127
|
+
--peek-out: 2.5rem;
|
|
128
|
+
--gutter: var(--stzh-space-small);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
@media screen and (min-width: 1260px) {
|
|
132
|
+
:host[variant=cards] {
|
|
133
|
+
--peek-out: 5.5rem;
|
|
134
|
+
--gutter: var(--stzh-space-medium);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@media screen and (min-width: 1440px) {
|
|
138
|
+
:host[variant=cards] {
|
|
139
|
+
--peek-out: calc((100vw - 78.75rem - var(--stzh-scrollbar-width, 0px)) / 2);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
:host ::slotted(*) {
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
scroll-snap-align: start;
|
|
147
|
+
scroll-snap-stop: var(--snap-stop);
|
|
148
|
+
}
|
|
149
|
+
:host ::slotted(*) img {
|
|
150
|
+
-webkit-user-drag: none;
|
|
151
|
+
user-drag: none;
|
|
152
|
+
-moz-user-select: none;
|
|
153
|
+
-webkit-user-select: none;
|
|
154
|
+
user-select: none;
|
|
155
|
+
}
|
|
156
|
+
:host ::slotted([slot=actions]) {
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 0;
|
|
159
|
+
left: 0;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
pointer-events: none;
|
|
162
|
+
padding: 0 var(--peek);
|
|
163
|
+
}
|
|
164
|
+
:host ::slotted([slot=actions]) stzh-text {
|
|
165
|
+
width: auto;
|
|
166
|
+
}
|
|
167
|
+
:host ::slotted([slot=actions]) stzh-button {
|
|
168
|
+
pointer-events: all;
|
|
169
|
+
}
|
|
170
|
+
:host ::slotted([slot=actions]) stzh-button[data-stzh-carousel-previous] {
|
|
171
|
+
--border-radius: var(--stzh-button-border-radius) 0 0 var(--stzh-button-border-radius);
|
|
172
|
+
--border-width: 0.0625rem 0 0.0625rem 0.0625rem;
|
|
173
|
+
}
|
|
174
|
+
:host ::slotted([slot=actions]) stzh-button[data-stzh-carousel-next] {
|
|
175
|
+
--border-radius: 0 var(--stzh-button-border-radius) var(--stzh-button-border-radius) 0;
|
|
176
|
+
}
|
|
177
|
+
:host ::slotted(stzh-ratio[slot=actions]) stzh-space,
|
|
178
|
+
:host ::slotted(stzh-ratio[slot=actions]) stzh-hspace,
|
|
179
|
+
:host ::slotted(stzh-ratio[slot=actions]) stzh-vspace {
|
|
180
|
+
padding: var(--stzh-space-xsmall);
|
|
181
|
+
}
|
|
182
|
+
:host ::slotted(stzh-ratio[slot=actions]) {
|
|
183
|
+
--background-color: transparent;
|
|
184
|
+
}
|
|
185
|
+
:host[variant=cards] ::slotted([slot=actions]) {
|
|
186
|
+
position: relative;
|
|
187
|
+
order: 1;
|
|
188
|
+
margin-top: calc(var(--stzh-space-medium) - var(--padding-bottom));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.stzh-carousel {
|
|
192
|
+
position: relative;
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
width: calc(100% + var(--peek-out) * 2);
|
|
196
|
+
margin-left: calc(var(--peek-out) / -1);
|
|
197
|
+
margin-right: calc(var(--peek-out) / -1);
|
|
198
|
+
}
|
|
199
|
+
.stzh-carousel__vhidden {
|
|
200
|
+
border: 0;
|
|
201
|
+
clip: rect(0 0 0 0);
|
|
202
|
+
-webkit-clip-path: inset(100%);
|
|
203
|
+
clip-path: inset(100%);
|
|
204
|
+
width: 0.0625rem;
|
|
205
|
+
height: 0.0625rem;
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
padding: 0;
|
|
208
|
+
position: absolute;
|
|
209
|
+
}
|
|
210
|
+
.stzh-carousel__scroll {
|
|
211
|
+
position: relative;
|
|
212
|
+
grid-area: slides;
|
|
213
|
+
display: grid;
|
|
214
|
+
width: 100%;
|
|
215
|
+
height: 100%;
|
|
216
|
+
place-items: center;
|
|
217
|
+
overflow-x: auto;
|
|
218
|
+
overflow-y: visible;
|
|
219
|
+
grid-auto-flow: column;
|
|
220
|
+
grid-auto-columns: var(--slide-size);
|
|
221
|
+
grid-auto-rows: 100%;
|
|
222
|
+
-moz-column-gap: var(--gutter);
|
|
223
|
+
column-gap: var(--gutter);
|
|
224
|
+
-webkit-overflow-scrolling: touch;
|
|
225
|
+
scrollbar-width: none;
|
|
226
|
+
-ms-overflow-style: none;
|
|
227
|
+
scroll-behavior: smooth;
|
|
228
|
+
overscroll-behavior-x: contain;
|
|
229
|
+
-webkit-scroll-snap-type: x mandatory;
|
|
230
|
+
scroll-snap-type: x mandatory;
|
|
231
|
+
scroll-padding: 0 var(--peek);
|
|
232
|
+
padding: var(--padding-top) var(--peek) var(--padding-bottom);
|
|
233
|
+
}
|
|
234
|
+
@media (prefers-reduced-motion: reduce) {
|
|
235
|
+
.stzh-carousel__scroll {
|
|
236
|
+
scroll-behavior: auto;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
.stzh-carousel__scroll::-webkit-scrollbar {
|
|
240
|
+
display: none;
|
|
241
|
+
}
|
|
242
|
+
.stzh-carousel--is-draggable .stzh-carousel__scroll {
|
|
243
|
+
cursor: -webkit-grab;
|
|
244
|
+
cursor: grab;
|
|
245
|
+
}
|
|
246
|
+
.stzh-carousel--is-dragging .stzh-carousel__scroll {
|
|
247
|
+
cursor: -webkit-grabbing;
|
|
248
|
+
cursor: grabbing;
|
|
249
|
+
}
|
|
250
|
+
.stzh-carousel--is-disabled .stzh-carousel__scroll {
|
|
251
|
+
cursor: not-allowed;
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
}
|