@oiz/stzh-components 2.2.0 → 2.3.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-b6d82414.js → app-globals-13e786d3.js} +1 -1
- package/dist/cjs/{arrow-3c3b0ae5.js → arrow-cd521f34.js} +468 -478
- package/dist/cjs/axios-7ec96df7.js +3167 -0
- package/dist/cjs/{dom-9deb26c8.js → dom-be1edfde.js} +1 -1
- package/dist/cjs/{focus-trap.esm-1cb6bb2e.js → focus-trap.esm-34a1a0d0.js} +188 -278
- package/dist/cjs/{index-9fcb4305.js → index-83d427ee.js} +113 -3
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{shadow-css-bf3843d2.js → shadow-css-54f5c2d9.js} +1 -1
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actionset.cjs.entry.js +15 -5
- package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +20 -15
- package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chart.cjs.entry.js +1471 -404
- package/dist/cjs/stzh-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chip_2.cjs.entry.js +132 -0
- package/dist/cjs/stzh-components.cjs.js +27 -5
- package/dist/cjs/stzh-contact.cjs.entry.js +91 -0
- package/dist/cjs/stzh-container.cjs.entry.js +3 -2
- package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +33 -13
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +32 -31
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1056 -425
- package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
- package/dist/cjs/stzh-figure.cjs.entry.js +5 -3
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-header.cjs.entry.js +6 -5
- package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js +4 -3
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +2 -2
- package/dist/cjs/stzh-invert.cjs.entry.js +23 -0
- package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-list.cjs.entry.js +1 -1
- package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-message.cjs.entry.js +1 -1
- package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
- package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js +2 -2
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +5 -2
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +2 -2
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +9 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +5 -5
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +6 -4
- package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/stzh-ratio.cjs.entry.js +26 -0
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-row.cjs.entry.js +1 -1
- package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +1 -1
- package/dist/cjs/stzh-share.cjs.entry.js +1 -1
- package/dist/cjs/stzh-show.cjs.entry.js +41 -0
- package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
- package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +10 -66
- package/dist/cjs/stzh-space.cjs.entry.js +34 -0
- package/dist/cjs/stzh-status.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
- package/dist/cjs/stzh-table.cjs.entry.js +3 -2
- package/dist/cjs/stzh-text.cjs.entry.js +2 -2
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/stzh-upload.cjs.entry.js +5 -2
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +782 -690
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -7
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +3 -3
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +4 -3
- package/dist/collection/assets/i18n/de.json +1 -1
- package/dist/collection/assets/i18n/en.json +1 -1
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +11 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +18 -8
- package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +5 -5
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +1 -3
- package/dist/collection/components/stzh-button/stzh-button.css +12 -4
- package/dist/collection/components/stzh-button/stzh-button.stories.js +10 -6
- package/dist/collection/components/stzh-card/stzh-card.css +0 -18
- package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
- package/dist/collection/components/stzh-chart/stzh-chart.css +55 -37
- package/dist/collection/components/stzh-chip/stzh-chip.css +16 -2
- package/dist/collection/components/stzh-chip/stzh-chip.js +32 -3
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +6 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +21 -11
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +5 -0
- package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.css → stzh-contact/stzh-contact.css} +22 -22
- package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.js → stzh-contact/stzh-contact.js} +25 -25
- package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.stories.js → stzh-contact/stzh-contact.stories.js} +10 -9
- package/dist/collection/components/stzh-container/stzh-container.css +11 -1
- package/dist/collection/components/stzh-container/stzh-container.js +26 -1
- package/dist/collection/components/stzh-container/stzh-container.stories.js +6 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +136 -43
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +12 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +19 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +2 -1
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +28 -13
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +35 -13
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +20 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +9 -8
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +1 -0
- package/dist/collection/components/stzh-figure/stzh-figure.css +8 -5
- package/dist/collection/components/stzh-figure/stzh-figure.js +21 -1
- package/dist/collection/components/stzh-footer/stzh-footer.css +1 -0
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +12 -1
- package/dist/collection/components/stzh-header/stzh-header.css +5 -1
- package/dist/collection/components/stzh-header/stzh-header.js +4 -3
- package/dist/collection/components/stzh-header/stzh-header.stories.js +46 -38
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +166 -138
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
- package/dist/collection/components/stzh-invert/stzh-invert.css +158 -0
- package/dist/collection/components/stzh-invert/stzh-invert.js +25 -0
- package/dist/collection/components/stzh-invert/stzh-invert.stories.js +55 -0
- package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +8 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +6 -6
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +14 -1
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +4 -6
- package/dist/collection/components/stzh-popover/stzh-popover.css +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -7
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +34 -9
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +2 -2
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +2 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +40 -4
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
- package/dist/collection/components/stzh-ratio/stzh-ratio.css +172 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.js +88 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +35 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -5
- package/dist/collection/components/stzh-show/stzh-show.css +165 -0
- package/dist/collection/components/stzh-show/stzh-show.js +158 -0
- package/dist/collection/components/stzh-show/stzh-show.stories.js +52 -0
- package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +6 -3
- package/dist/collection/components/stzh-space/stzh-space.css +842 -0
- package/dist/collection/components/stzh-space/stzh-space.js +262 -0
- package/dist/collection/components/stzh-space/stzh-space.stories.js +76 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +9 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +21 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -1
- package/dist/collection/components/stzh-table/stzh-table.css +3 -0
- package/dist/collection/components/stzh-table/stzh-table.js +19 -0
- package/dist/collection/components/stzh-text/stzh-text.css +2 -2
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +2 -2
- package/dist/collection/components/stzh-upload/stzh-upload.js +3 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +157 -129
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +30 -6
- package/dist/collection/pages/egov.stories.js +190 -182
- package/dist/collection/pages/meinkonto.stories.js +367 -511
- package/dist/collection/pages/microsite.stories.js +235 -0
- package/dist/collection/pages/website.stories.js +139 -0
- package/dist/collection/patterns/appointments.stories.js +2 -2
- package/dist/collection/patterns/contact.stories.js +20 -20
- package/dist/collection/patterns/contactform.stories.js +2 -2
- package/dist/collection/patterns/jobdetails.stories.js +151 -0
- package/dist/collection/patterns/subpages.stories.js +1 -1
- package/dist/collection/patterns/twocolumns.stories.js +46 -0
- package/dist/components/arrow.js +468 -478
- package/dist/components/axios.js +3165 -0
- package/dist/components/date-utils.js +159 -0
- package/dist/components/focus-trap.esm.js +188 -278
- package/dist/components/index.d.ts +14 -1
- package/dist/components/index.js +7 -3
- package/dist/components/stzh-actionset2.js +16 -6
- package/dist/components/stzh-anchornav.js +1 -1
- package/dist/components/stzh-appointments.js +2 -1
- package/dist/components/stzh-button2.js +1 -1
- package/dist/components/stzh-calendar2.js +2 -159
- package/dist/components/stzh-card2.js +1 -1
- package/dist/components/stzh-chart.js +1470 -403
- package/dist/components/stzh-chip-select2.js +27 -15
- package/dist/components/stzh-chip2.js +23 -5
- package/dist/components/stzh-clamp2.js +1 -1
- package/dist/components/{stzh-contactaddress.d.ts → stzh-contact.d.ts} +4 -4
- package/dist/components/stzh-contact.js +157 -0
- package/dist/components/stzh-container.js +5 -2
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist-item2.js +30 -11
- package/dist/components/stzh-datalist2.js +3 -1
- package/dist/components/stzh-datatable.js +32 -30
- package/dist/components/stzh-datepicker2.js +2 -1
- package/dist/components/stzh-dropdown2.js +1054 -423
- package/dist/components/stzh-fieldset.js +1 -1
- package/dist/components/stzh-figure.js +6 -3
- package/dist/components/stzh-footer.js +1 -1
- package/dist/components/stzh-ghettobox2.js +1 -1
- package/dist/components/stzh-header.js +5 -4
- package/dist/components/stzh-hspace.js +8 -5
- package/dist/components/stzh-invert.d.ts +11 -0
- package/dist/components/stzh-invert.js +36 -0
- package/dist/components/stzh-microsite-teaserlist.js +1 -1
- package/dist/components/stzh-pagebottom.js +4 -1
- package/dist/components/stzh-pagetitle-hero.js +1 -1
- package/dist/components/stzh-pagetitle.js +8 -0
- package/dist/components/stzh-popover2.js +2 -2
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-progressbar-item2.js +6 -3
- package/dist/components/stzh-progressbar.js +1 -1
- package/dist/components/stzh-ratio.d.ts +11 -0
- package/dist/components/stzh-ratio.js +43 -0
- package/dist/components/stzh-richtext2.js +1 -1
- package/dist/components/stzh-show.d.ts +11 -0
- package/dist/components/stzh-show.js +62 -0
- package/dist/components/stzh-sitemap.js +1 -1
- package/dist/components/stzh-sortable2.js +9 -65
- package/dist/components/stzh-space.d.ts +11 -0
- package/dist/components/stzh-space.js +59 -0
- package/dist/components/stzh-sticky.js +5 -2
- package/dist/components/stzh-table.js +3 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-tooltip2.js +2 -2
- package/dist/components/stzh-upload.js +3 -0
- package/dist/components/stzh-vbz-linechip2.js +772 -680
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vbz-ticker.js +1 -1
- package/dist/components/stzh-vspace.js +8 -5
- package/dist/esm/{app-globals-ff581b69.js → app-globals-2e508622.js} +1 -1
- package/dist/esm/{arrow-86a679c7.js → arrow-480bc86f.js} +468 -478
- package/dist/esm/axios-e2b39666.js +3165 -0
- package/dist/esm/{dom-6be6f662.js → dom-c525f6e4.js} +1 -1
- package/dist/esm/{focus-trap.esm-074705a3.js → focus-trap.esm-82634dec.js} +188 -278
- package/dist/esm/{index-011c84fe.js → index-319b7c49.js} +112 -4
- package/dist/esm/loader.js +5 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +1 -1
- package/dist/esm/stzh-accordion-item.entry.js +1 -1
- package/dist/esm/stzh-accordion.entry.js +1 -1
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-actionset.entry.js +16 -6
- package/dist/esm/stzh-anchornav.entry.js +2 -2
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +2 -2
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card_3.entry.js +20 -15
- package/dist/esm/stzh-cell.entry.js +1 -1
- package/dist/esm/stzh-chart.entry.js +1471 -404
- package/dist/esm/stzh-checkbox.entry.js +2 -2
- package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
- package/dist/esm/stzh-chip_2.entry.js +127 -0
- package/dist/esm/stzh-components.js +24 -5
- package/dist/esm/stzh-contact.entry.js +87 -0
- package/dist/esm/stzh-container.entry.js +3 -2
- package/dist/esm/stzh-cspace.entry.js +2 -2
- package/dist/esm/stzh-datalist_2.entry.js +33 -13
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +32 -31
- package/dist/esm/stzh-datepicker_3.entry.js +2 -2
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +1056 -425
- package/dist/esm/stzh-fieldset.entry.js +2 -2
- package/dist/esm/stzh-figure.entry.js +5 -3
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +2 -2
- package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
- package/dist/esm/stzh-header.entry.js +6 -5
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-hr.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +4 -3
- package/dist/esm/stzh-icon-sprite.entry.js +1 -1
- package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
- package/dist/esm/stzh-input.entry.js +2 -2
- package/dist/esm/stzh-invert.entry.js +19 -0
- package/dist/esm/stzh-langnav.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-list-item.entry.js +1 -1
- package/dist/esm/stzh-list.entry.js +1 -1
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-loadingbar.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-message.entry.js +1 -1
- package/dist/esm/stzh-metanav.entry.js +1 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
- package/dist/esm/stzh-olmap.entry.js +1 -1
- package/dist/esm/stzh-overlay.entry.js +2 -2
- package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +5 -2
- package/dist/esm/stzh-pagetitle-hero.entry.js +2 -2
- package/dist/esm/stzh-pagetitle.entry.js +9 -1
- package/dist/esm/stzh-popover.entry.js +5 -5
- package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
- package/dist/esm/stzh-progressbar-item.entry.js +6 -4
- package/dist/esm/stzh-progressbar.entry.js +2 -2
- package/dist/esm/stzh-ratio.entry.js +22 -0
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js +1 -1
- package/dist/esm/stzh-saptcha.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- package/dist/esm/stzh-share.entry.js +1 -1
- package/dist/esm/stzh-show.entry.js +37 -0
- package/dist/esm/stzh-sitemap.entry.js +2 -2
- package/dist/esm/stzh-skiplink.entry.js +1 -1
- package/dist/esm/stzh-sortable.entry.js +10 -66
- package/dist/esm/stzh-space.entry.js +30 -0
- package/dist/esm/stzh-status.entry.js +1 -1
- package/dist/esm/stzh-sticky.entry.js +5 -3
- package/dist/esm/stzh-table.entry.js +3 -2
- package/dist/esm/stzh-text.entry.js +2 -2
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +2 -2
- package/dist/esm/stzh-tooltip.entry.js +5 -5
- package/dist/esm/stzh-upload.entry.js +5 -2
- package/dist/esm/stzh-vbz-linechip.entry.js +783 -691
- package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
- package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
- package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +4 -3
- package/dist/esm-es5/app-globals-2e508622.js +1 -0
- package/dist/esm-es5/arrow-480bc86f.js +1 -0
- package/dist/esm-es5/axios-e2b39666.js +1 -0
- package/dist/esm-es5/{dom-6be6f662.js → dom-c525f6e4.js} +0 -0
- package/dist/esm-es5/focus-trap.esm-82634dec.js +9 -0
- package/dist/esm-es5/index-319b7c49.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +0 -0
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-accordion.entry.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-anchornav.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-audio.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-card_3.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-chart.entry.js +3 -3
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -0
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-contact.entry.js +1 -0
- package/dist/esm-es5/stzh-container.entry.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-datamessagelist.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +4 -4
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +9 -1
- package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-heading.entry.js +1 -1
- package/dist/esm-es5/stzh-hr.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
- package/dist/esm-es5/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-invert.entry.js +1 -0
- package/dist/esm-es5/stzh-langnav.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-list-item.entry.js +1 -1
- package/dist/esm-es5/stzh-list.entry.js +1 -1
- package/dist/esm-es5/stzh-loader.entry.js +1 -1
- package/dist/esm-es5/stzh-loadingbar.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-overlay.entry.js +1 -1
- package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-ratio.entry.js +1 -0
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
- package/dist/esm-es5/stzh-section.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -1
- package/dist/esm-es5/stzh-show.entry.js +1 -0
- package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
- package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +2 -2
- package/dist/esm-es5/stzh-space.entry.js +1 -0
- package/dist/esm-es5/stzh-status.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-text.entry.js +1 -1
- package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/translation-utils-2623783f.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +1 -1
- package/dist/stzh-components/assets/i18n/en.json +1 -1
- package/dist/stzh-components/p-00c4c8c0.system.entry.js +1 -0
- package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
- package/dist/stzh-components/p-0447b178.system.entry.js +1 -0
- package/dist/stzh-components/{p-2bec3c77.entry.js → p-04d390eb.entry.js} +1 -1
- package/dist/stzh-components/p-06f5abab.system.entry.js +1 -0
- package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
- package/dist/stzh-components/p-09f582cd.entry.js +1 -0
- package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
- package/dist/stzh-components/p-0ada0b0a.system.entry.js +1 -0
- package/dist/stzh-components/p-0af8a184.system.entry.js +1 -0
- package/dist/stzh-components/p-0afba769.entry.js +1 -0
- package/dist/stzh-components/p-0ce8b383.system.js +1 -0
- package/dist/stzh-components/p-0f882e26.system.entry.js +1 -0
- package/dist/stzh-components/{p-fbf2f4ed.system.entry.js → p-101f9b11.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
- package/dist/stzh-components/p-125a8244.entry.js +1 -0
- package/dist/stzh-components/{p-bee6eef5.entry.js → p-126a0f14.entry.js} +1 -1
- package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
- package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
- package/dist/stzh-components/p-1783b15a.js +12 -0
- package/dist/stzh-components/p-1c2c9ca8.entry.js +1 -0
- package/dist/stzh-components/p-1f925e84.system.entry.js +1 -0
- package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
- package/dist/stzh-components/p-246cd179.js +1 -0
- package/dist/stzh-components/p-26889a91.entry.js +9 -0
- package/dist/stzh-components/p-2ad73c0c.system.entry.js +1 -0
- package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
- package/dist/stzh-components/p-2ba88798.entry.js +1 -0
- package/dist/stzh-components/{p-60274e67.system.entry.js → p-2c490268.system.entry.js} +1 -1
- package/dist/stzh-components/{p-912706bb.entry.js → p-2e6ef670.entry.js} +1 -1
- package/dist/stzh-components/p-2f4448c9.system.entry.js +1 -0
- package/dist/stzh-components/{p-376946bc.entry.js → p-2f4c5e18.entry.js} +1 -1
- package/dist/stzh-components/p-3238b0bf.entry.js +1 -0
- package/dist/stzh-components/p-36e72c1d.system.js +2 -0
- package/dist/stzh-components/{p-fd265f3a.entry.js → p-38e7645a.entry.js} +1 -1
- package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
- package/dist/stzh-components/p-3e433996.entry.js +1 -0
- package/dist/stzh-components/p-3f676d99.system.entry.js +1 -0
- package/dist/stzh-components/{p-0c8427bc.entry.js → p-40798ed2.entry.js} +1 -1
- package/dist/stzh-components/p-418e04f7.system.entry.js +1 -0
- package/dist/stzh-components/{p-7704b10b.entry.js → p-41fa7e81.entry.js} +1 -1
- package/dist/stzh-components/p-4370efe7.entry.js +1 -0
- package/dist/stzh-components/p-444b2baf.entry.js +1 -0
- package/dist/stzh-components/p-44b03dbb.js +10 -0
- package/dist/stzh-components/{p-2577ca1e.system.entry.js → p-44d10402.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ed0d51b6.entry.js → p-46d07ed7.entry.js} +1 -1
- package/dist/stzh-components/p-470182bb.system.entry.js +1 -0
- package/dist/stzh-components/{p-669896ec.entry.js → p-48dee587.entry.js} +1 -1
- package/dist/stzh-components/p-48e835cf.system.js +1 -0
- package/dist/stzh-components/{p-55b7cda7.system.entry.js → p-4a298117.system.entry.js} +1 -1
- package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
- package/dist/stzh-components/p-4d8c81b2.system.entry.js +1 -0
- package/dist/stzh-components/{p-f027e569.system.entry.js → p-512c38b3.system.entry.js} +1 -1
- package/dist/stzh-components/p-51b3a560.system.entry.js +1 -0
- package/dist/stzh-components/p-537adcfe.system.entry.js +3 -0
- package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
- package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
- package/dist/stzh-components/p-563b1abc.system.entry.js +1 -0
- package/dist/stzh-components/p-59793ef8.system.entry.js +1 -0
- package/dist/stzh-components/{p-6a0a76b3.entry.js → p-5b162e4f.entry.js} +1 -1
- package/dist/stzh-components/{p-0409bf6b.system.entry.js → p-5c717080.system.entry.js} +1 -1
- package/dist/stzh-components/p-5cb1cd93.system.entry.js +1 -0
- package/dist/stzh-components/p-5f9b58fb.system.entry.js +1 -0
- package/dist/stzh-components/{p-e7cf6c45.system.entry.js → p-617ece76.system.entry.js} +1 -1
- package/dist/stzh-components/{p-104df3a8.system.entry.js → p-6414454e.system.entry.js} +1 -1
- package/dist/stzh-components/p-6496df0a.system.entry.js +9 -0
- package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
- package/dist/stzh-components/p-64e27ac1.entry.js +1 -0
- package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
- package/dist/stzh-components/{p-b0d8866d.entry.js → p-65ea23f6.entry.js} +1 -1
- package/dist/stzh-components/p-668b4025.system.entry.js +1 -0
- package/dist/stzh-components/{p-f03ce92d.system.entry.js → p-6722e89a.system.entry.js} +1 -1
- package/dist/stzh-components/p-67ae4994.entry.js +1 -0
- package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
- package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
- package/dist/stzh-components/p-6c80b920.system.entry.js +1 -0
- package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
- package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
- package/dist/stzh-components/{p-ef3da23b.entry.js → p-705aa56d.entry.js} +1 -1
- package/dist/stzh-components/{p-288ee536.system.entry.js → p-70f85be3.system.entry.js} +1 -1
- package/dist/stzh-components/{p-62a2684d.entry.js → p-7185f634.entry.js} +1 -1
- package/dist/stzh-components/{p-11d7b426.system.entry.js → p-74d6e349.system.entry.js} +1 -1
- package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
- package/dist/stzh-components/p-7b0c04b3.system.entry.js +1 -0
- package/dist/stzh-components/{p-0cc8bbd7.system.entry.js → p-7e4261ce.system.entry.js} +1 -1
- package/dist/stzh-components/{p-fee6a938.entry.js → p-7e94b787.entry.js} +1 -1
- package/dist/stzh-components/{p-df5f49b4.js → p-7f0fb35c.js} +1 -1
- package/dist/stzh-components/{p-44e0b101.system.entry.js → p-7f1b7b44.system.entry.js} +1 -1
- package/dist/stzh-components/{p-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
- package/dist/stzh-components/p-81b4b0e6.system.entry.js +1 -0
- package/dist/stzh-components/{p-8cc119d3.system.entry.js → p-8361c9d8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cc720d2d.entry.js → p-838b0542.entry.js} +1 -1
- package/dist/stzh-components/p-862e7723.system.entry.js +1 -0
- package/dist/stzh-components/{p-49b292df.entry.js → p-86336227.entry.js} +1 -1
- package/dist/stzh-components/{p-586a8b3f.entry.js → p-8715198b.entry.js} +1 -1
- package/dist/stzh-components/p-8972cf20.entry.js +1 -0
- package/dist/stzh-components/p-8c5a6832.system.entry.js +1 -0
- package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
- package/dist/stzh-components/p-8ccefd49.system.entry.js +1 -0
- package/dist/stzh-components/p-8ee705ed.entry.js +1 -0
- package/dist/stzh-components/p-906caf97.js +1 -0
- package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
- package/dist/stzh-components/p-9380fb85.entry.js +1 -0
- package/dist/stzh-components/p-97e4272b.system.entry.js +1 -0
- package/dist/stzh-components/p-990f395b.entry.js +1 -0
- package/dist/stzh-components/p-99a3742a.js +2 -0
- package/dist/stzh-components/p-99aacd74.entry.js +1 -0
- package/dist/stzh-components/p-99b82949.entry.js +1 -0
- package/dist/stzh-components/p-99e27f57.system.js +1 -0
- package/dist/stzh-components/{p-576e1345.entry.js → p-99e43fb0.entry.js} +1 -1
- package/dist/stzh-components/p-9be29697.entry.js +1 -0
- package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
- package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-9d5c70ee.system.entry.js} +1 -1
- package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
- package/dist/stzh-components/{p-94830f96.system.entry.js → p-a0a033bd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
- package/dist/stzh-components/p-a2b2cfac.system.entry.js +1 -0
- package/dist/stzh-components/p-a3c7aa63.entry.js +9 -0
- package/dist/stzh-components/p-a408bfba.system.js +1 -1
- package/dist/stzh-components/{p-aae4655f.entry.js → p-a44527f8.entry.js} +1 -1
- package/dist/stzh-components/{p-8bbaed3a.entry.js → p-a4dd5ba3.entry.js} +1 -1
- package/dist/stzh-components/{p-c30600d0.system.entry.js → p-a51dd210.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4b0f473e.entry.js → p-a693ab41.entry.js} +1 -1
- package/dist/stzh-components/p-a6be6aca.system.entry.js +1 -0
- package/dist/stzh-components/p-ac3e3b2a.system.entry.js +1 -0
- package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
- package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
- package/dist/stzh-components/p-b050c1f4.entry.js +1 -0
- package/dist/stzh-components/{p-be79497f.system.entry.js → p-b1ffc2a9.system.entry.js} +1 -1
- package/dist/stzh-components/p-b395bed5.system.entry.js +1 -0
- package/dist/stzh-components/{p-30ba96a3.entry.js → p-b689b882.entry.js} +1 -1
- package/dist/stzh-components/{p-b3dc4913.entry.js → p-b6e6f847.entry.js} +1 -1
- package/dist/stzh-components/p-b92734db.entry.js +1 -0
- package/dist/stzh-components/{p-57a0f895.entry.js → p-b9427914.entry.js} +1 -1
- package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
- package/dist/stzh-components/p-bb82fa2d.system.entry.js +1 -0
- package/dist/stzh-components/{p-557f07b5.system.entry.js → p-bc36fda4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
- package/dist/stzh-components/p-bf071e77.system.js +1 -0
- package/dist/stzh-components/{p-84965eac.entry.js → p-c0ec905d.entry.js} +1 -1
- package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
- package/dist/stzh-components/{p-ea9ca52b.entry.js → p-c33b7d23.entry.js} +1 -1
- package/dist/stzh-components/p-c646c712.entry.js +1 -0
- package/dist/stzh-components/p-c8cc2563.system.entry.js +1 -0
- package/dist/stzh-components/p-c9c7d88a.entry.js +1 -0
- package/dist/stzh-components/p-cbe6d2ea.entry.js +1 -0
- package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
- package/dist/stzh-components/p-ccf023da.entry.js +3 -0
- package/dist/stzh-components/p-d04bbc19.js +1 -0
- package/dist/stzh-components/p-d32965be.system.entry.js +1 -0
- package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
- package/dist/stzh-components/p-d5644c25.entry.js +8 -0
- package/dist/stzh-components/p-d6a11daa.entry.js +1 -0
- package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
- package/dist/stzh-components/{p-a474826c.system.entry.js → p-da85cf73.system.entry.js} +1 -1
- package/dist/stzh-components/p-da98a8bb.system.entry.js +7 -0
- package/dist/stzh-components/p-db306e24.entry.js +1 -0
- package/dist/stzh-components/{p-d2f6fb1b.system.js → p-db339680.system.js} +1 -1
- package/dist/stzh-components/{p-f5fdc88c.entry.js → p-dbe5320f.entry.js} +3 -3
- package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
- package/dist/stzh-components/p-dd5f29aa.entry.js +1 -0
- package/dist/stzh-components/p-de9edaf2.entry.js +1 -0
- package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
- package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
- package/dist/stzh-components/p-e78fe899.system.entry.js +1 -0
- package/dist/stzh-components/{p-60d9bf98.system.entry.js → p-e7909de9.system.entry.js} +1 -1
- package/dist/stzh-components/{p-58af0855.system.entry.js → p-e7e9b295.system.entry.js} +1 -1
- package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
- package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
- package/dist/stzh-components/p-ed58b644.system.entry.js +1 -0
- package/dist/stzh-components/p-ee4b939a.entry.js +1 -0
- package/dist/stzh-components/{p-28d8aa31.entry.js → p-f0e2a32d.entry.js} +1 -1
- package/dist/stzh-components/{p-0cff4e01.entry.js → p-f2deda0a.entry.js} +1 -1
- package/dist/stzh-components/p-f3d69226.system.entry.js +1 -0
- package/dist/stzh-components/p-f433e62a.system.entry.js +1 -0
- package/dist/stzh-components/p-f5b2c12e.entry.js +1 -0
- package/dist/stzh-components/{p-4226dec6.system.entry.js → p-f7bb76d8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
- package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
- package/dist/stzh-components/p-fa615b51.system.entry.js +1 -0
- package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
- package/dist/stzh-components/p-fd3acd16.system.entry.js +1 -0
- package/dist/stzh-components/p-fe5d5fc8.entry.js +1 -0
- package/dist/stzh-components/p-fe9acc68.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-actionset/stzh-actionset.localization.d.ts +1 -1
- package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +1 -1
- package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +1 -1
- package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +1 -1
- package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +1 -1
- package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +1 -1
- package/dist/types/components/stzh-card/stzh-card.localization.d.ts +1 -1
- package/dist/types/components/stzh-card-list/stzh-card-list.localization.d.ts +1 -1
- package/dist/types/components/stzh-container/stzh-container.d.ts +2 -0
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -1
- package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +1 -1
- package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +1 -1
- package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +1 -1
- package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +1 -1
- package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +1 -1
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +1 -1
- package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +3 -1
- package/dist/types/components/stzh-input/stzh-input-description.d.ts +1 -1
- package/dist/types/components/stzh-message/stzh-message.localization.d.ts +1 -1
- package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.localization.d.ts +1 -1
- package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -1
- package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -1
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +1 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +1 -1
- package/dist/types/components/stzh-share/stzh-share.localization.d.ts +1 -1
- package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +1 -1
- package/dist/types/components/stzh-space/stzh-space.d.ts +27 -0
- package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -1
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -1
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +1 -1
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -1
- package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +3 -1
- package/dist/types/components.d.ts +390 -20
- package/dist/types/index.d.ts +135 -133
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/dist/types/utils/date-adapter.d.ts +2 -2
- package/dist/types/utils/h.d.ts +3 -3
- package/dist/types/utils/test-utils.d.ts +2 -2
- package/dist/types/utils/translation-utils.d.ts +5 -5
- package/dist/vscode-data.json +563 -4
- package/loader/index.d.ts +9 -0
- package/package.json +11 -11
- package/dist/cjs/index-8bd1552a.js +0 -2019
- package/dist/cjs/stzh-chip.cjs.entry.js +0 -100
- package/dist/cjs/stzh-clamp.cjs.entry.js +0 -27
- package/dist/cjs/stzh-contactaddress.cjs.entry.js +0 -91
- package/dist/collection/pages/example.stories.js +0 -170
- package/dist/components/index3.js +0 -2017
- package/dist/components/stzh-contactaddress.js +0 -157
- package/dist/esm/index-545902f4.js +0 -2017
- package/dist/esm/stzh-chip.entry.js +0 -96
- package/dist/esm/stzh-clamp.entry.js +0 -23
- package/dist/esm/stzh-contactaddress.entry.js +0 -87
- package/dist/esm-es5/app-globals-ff581b69.js +0 -1
- package/dist/esm-es5/arrow-86a679c7.js +0 -1
- package/dist/esm-es5/focus-trap.esm-074705a3.js +0 -9
- package/dist/esm-es5/index-011c84fe.js +0 -2
- package/dist/esm-es5/index-545902f4.js +0 -1
- package/dist/esm-es5/stzh-chip.entry.js +0 -1
- package/dist/esm-es5/stzh-clamp.entry.js +0 -1
- package/dist/esm-es5/stzh-contactaddress.entry.js +0 -1
- package/dist/stzh-components/p-006751fc.system.entry.js +0 -1
- package/dist/stzh-components/p-025c9c5b.entry.js +0 -1
- package/dist/stzh-components/p-06d9b884.system.entry.js +0 -1
- package/dist/stzh-components/p-0743d7fa.entry.js +0 -1
- package/dist/stzh-components/p-0850a2e1.system.entry.js +0 -1
- package/dist/stzh-components/p-09da70d8.entry.js +0 -1
- package/dist/stzh-components/p-0a647396.entry.js +0 -1
- package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
- package/dist/stzh-components/p-12a2afe9.entry.js +0 -1
- package/dist/stzh-components/p-17645237.entry.js +0 -1
- package/dist/stzh-components/p-18cb06e2.entry.js +0 -1
- package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
- package/dist/stzh-components/p-1ae4d600.system.entry.js +0 -1
- package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
- package/dist/stzh-components/p-21cad060.system.entry.js +0 -1
- package/dist/stzh-components/p-22b06793.entry.js +0 -1
- package/dist/stzh-components/p-23829f75.system.entry.js +0 -1
- package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
- package/dist/stzh-components/p-2d340222.system.entry.js +0 -1
- package/dist/stzh-components/p-31c3469c.entry.js +0 -1
- package/dist/stzh-components/p-3200f52a.system.entry.js +0 -1
- package/dist/stzh-components/p-385dda6c.system.entry.js +0 -1
- package/dist/stzh-components/p-391e6b90.entry.js +0 -1
- package/dist/stzh-components/p-3a1ff759.entry.js +0 -1
- package/dist/stzh-components/p-3ad67331.entry.js +0 -1
- package/dist/stzh-components/p-3e850dce.entry.js +0 -1
- package/dist/stzh-components/p-40a19ce6.js +0 -10
- package/dist/stzh-components/p-441ea784.entry.js +0 -1
- package/dist/stzh-components/p-4704588f.system.entry.js +0 -1
- package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
- package/dist/stzh-components/p-4b369bac.entry.js +0 -1
- package/dist/stzh-components/p-51be647d.entry.js +0 -1
- package/dist/stzh-components/p-53934cfd.js +0 -1
- package/dist/stzh-components/p-57237509.system.entry.js +0 -1
- package/dist/stzh-components/p-5790eb4f.system.entry.js +0 -1
- package/dist/stzh-components/p-57f8596f.system.entry.js +0 -1
- package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
- package/dist/stzh-components/p-5ddf8258.system.entry.js +0 -1
- package/dist/stzh-components/p-5fd9ae99.system.entry.js +0 -1
- package/dist/stzh-components/p-60ec90b2.system.entry.js +0 -1
- package/dist/stzh-components/p-63d94a57.system.entry.js +0 -1
- package/dist/stzh-components/p-64422176.entry.js +0 -9
- package/dist/stzh-components/p-661831da.entry.js +0 -1
- package/dist/stzh-components/p-67c6f0f2.entry.js +0 -1
- package/dist/stzh-components/p-6d009f56.system.entry.js +0 -1
- package/dist/stzh-components/p-71c07419.system.entry.js +0 -1
- package/dist/stzh-components/p-75068cd7.system.entry.js +0 -1
- package/dist/stzh-components/p-76165227.entry.js +0 -1
- package/dist/stzh-components/p-7941cf38.js +0 -1
- package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
- package/dist/stzh-components/p-7b86c022.entry.js +0 -1
- package/dist/stzh-components/p-7c26f80f.system.entry.js +0 -1
- package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
- package/dist/stzh-components/p-7e94dde2.entry.js +0 -1
- package/dist/stzh-components/p-812ea5e9.system.entry.js +0 -1
- package/dist/stzh-components/p-8364475f.js +0 -12
- package/dist/stzh-components/p-84b9f66f.system.entry.js +0 -1
- package/dist/stzh-components/p-853a1f92.entry.js +0 -1
- package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
- package/dist/stzh-components/p-8991d3bc.entry.js +0 -1
- package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
- package/dist/stzh-components/p-8fa2fb95.system.entry.js +0 -1
- package/dist/stzh-components/p-9072a490.system.entry.js +0 -1
- package/dist/stzh-components/p-92afa8df.entry.js +0 -1
- package/dist/stzh-components/p-95b490ec.system.entry.js +0 -1
- package/dist/stzh-components/p-9743f558.system.entry.js +0 -1
- package/dist/stzh-components/p-996579d0.entry.js +0 -1
- package/dist/stzh-components/p-9a5ebb1f.js +0 -2
- package/dist/stzh-components/p-9dac46e2.system.entry.js +0 -1
- package/dist/stzh-components/p-9e38b823.system.entry.js +0 -1
- package/dist/stzh-components/p-a16dc363.entry.js +0 -1
- package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
- package/dist/stzh-components/p-a8101552.entry.js +0 -8
- package/dist/stzh-components/p-a934dd4d.entry.js +0 -1
- package/dist/stzh-components/p-aacf685b.system.entry.js +0 -3
- package/dist/stzh-components/p-ac1a6085.system.entry.js +0 -1
- package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
- package/dist/stzh-components/p-afedafa6.system.entry.js +0 -1
- package/dist/stzh-components/p-b2145753.system.entry.js +0 -1
- package/dist/stzh-components/p-b436a18d.system.entry.js +0 -1
- package/dist/stzh-components/p-b908d228.system.entry.js +0 -1
- package/dist/stzh-components/p-b937ae70.system.js +0 -1
- package/dist/stzh-components/p-ba0b93c4.system.entry.js +0 -9
- package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
- package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
- package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
- package/dist/stzh-components/p-c63aecaa.system.entry.js +0 -1
- package/dist/stzh-components/p-c87e12de.system.entry.js +0 -1
- package/dist/stzh-components/p-cf6003d6.js +0 -1
- package/dist/stzh-components/p-cfd22a5e.system.entry.js +0 -1
- package/dist/stzh-components/p-d240494d.entry.js +0 -1
- package/dist/stzh-components/p-d5c0801b.entry.js +0 -1
- package/dist/stzh-components/p-d6ec20c8.system.entry.js +0 -1
- package/dist/stzh-components/p-d9bf09b1.system.entry.js +0 -1
- package/dist/stzh-components/p-db1692fb.entry.js +0 -1
- package/dist/stzh-components/p-dbdc01c7.system.js +0 -2
- package/dist/stzh-components/p-ded16c0e.system.js +0 -1
- package/dist/stzh-components/p-e20369c8.system.js +0 -10
- package/dist/stzh-components/p-e32bc982.system.js +0 -1
- package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
- package/dist/stzh-components/p-e76a3647.entry.js +0 -1
- package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
- package/dist/stzh-components/p-ec7b6ce8.entry.js +0 -7
- package/dist/stzh-components/p-f133eba2.entry.js +0 -1
- package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
- package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
- package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* tabbable 6.0.
|
|
2
|
+
* tabbable 6.0.1
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
4
|
*/
|
|
5
5
|
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
@@ -11,23 +11,22 @@ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (elemen
|
|
|
11
11
|
} : function (element) {
|
|
12
12
|
return element.ownerDocument;
|
|
13
13
|
};
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* @param {Element} el container to check in
|
|
16
17
|
* @param {boolean} includeContainer add container to check
|
|
17
18
|
* @param {(node: Element) => boolean} filter filter candidates
|
|
18
19
|
* @returns {Element[]}
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
21
|
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
22
22
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
23
|
-
|
|
24
23
|
if (includeContainer && matches.call(el, candidateSelector)) {
|
|
25
24
|
candidates.unshift(el);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
candidates = candidates.filter(filter);
|
|
29
27
|
return candidates;
|
|
30
28
|
};
|
|
29
|
+
|
|
31
30
|
/**
|
|
32
31
|
* @callback GetShadowRoot
|
|
33
32
|
* @param {Element} element to check for shadow root
|
|
@@ -41,9 +40,9 @@ var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
|
41
40
|
*/
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
|
-
* @typedef {Object}
|
|
45
|
-
* @property {Element}
|
|
46
|
-
* @property {Element[]} candidates
|
|
43
|
+
* @typedef {Object} CandidateScope
|
|
44
|
+
* @property {Element} scopeParent contains inner candidates
|
|
45
|
+
* @property {Element[]} candidates list of candidates found in the scope parent
|
|
47
46
|
*/
|
|
48
47
|
|
|
49
48
|
/**
|
|
@@ -52,7 +51,7 @@ var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
|
52
51
|
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
53
52
|
* or a boolean stating if it has an undisclosed shadow root
|
|
54
53
|
* @property {(node: Element) => boolean} filter filter candidates
|
|
55
|
-
* @property {boolean} flatten if true then result will flatten any
|
|
54
|
+
* @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
|
|
56
55
|
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
57
56
|
*/
|
|
58
57
|
|
|
@@ -60,44 +59,38 @@ var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
|
60
59
|
* @param {Element[]} elements list of element containers to match candidates from
|
|
61
60
|
* @param {boolean} includeContainer add container list to check
|
|
62
61
|
* @param {IterativeOptions} options
|
|
63
|
-
* @returns {Array.<Element|
|
|
62
|
+
* @returns {Array.<Element|CandidateScope>}
|
|
64
63
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
64
|
var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
68
65
|
var candidates = [];
|
|
69
66
|
var elementsToCheck = Array.from(elements);
|
|
70
|
-
|
|
71
67
|
while (elementsToCheck.length) {
|
|
72
68
|
var element = elementsToCheck.shift();
|
|
73
|
-
|
|
74
69
|
if (element.tagName === 'SLOT') {
|
|
75
70
|
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
76
71
|
var assigned = element.assignedElements();
|
|
77
72
|
var content = assigned.length ? assigned : element.children;
|
|
78
73
|
var nestedCandidates = getCandidatesIteratively(content, true, options);
|
|
79
|
-
|
|
80
74
|
if (options.flatten) {
|
|
81
75
|
candidates.push.apply(candidates, nestedCandidates);
|
|
82
76
|
} else {
|
|
83
77
|
candidates.push({
|
|
84
|
-
|
|
78
|
+
scopeParent: element,
|
|
85
79
|
candidates: nestedCandidates
|
|
86
80
|
});
|
|
87
81
|
}
|
|
88
82
|
} else {
|
|
89
83
|
// check candidate element
|
|
90
84
|
var validCandidate = matches.call(element, candidateSelector);
|
|
91
|
-
|
|
92
85
|
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
93
86
|
candidates.push(element);
|
|
94
|
-
}
|
|
95
|
-
|
|
87
|
+
}
|
|
96
88
|
|
|
97
|
-
|
|
89
|
+
// iterate over shadow content if possible
|
|
90
|
+
var shadowRoot = element.shadowRoot ||
|
|
91
|
+
// check for an undisclosed shadow
|
|
98
92
|
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
99
93
|
var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
|
|
100
|
-
|
|
101
94
|
if (shadowRoot && validShadowRoot) {
|
|
102
95
|
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
103
96
|
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
@@ -106,12 +99,11 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
106
99
|
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
107
100
|
// _after_ we return from this recursive call
|
|
108
101
|
var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
109
|
-
|
|
110
102
|
if (options.flatten) {
|
|
111
103
|
candidates.push.apply(candidates, _nestedCandidates);
|
|
112
104
|
} else {
|
|
113
105
|
candidates.push({
|
|
114
|
-
|
|
106
|
+
scopeParent: element,
|
|
115
107
|
candidates: _nestedCandidates
|
|
116
108
|
});
|
|
117
109
|
}
|
|
@@ -122,10 +114,8 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
122
114
|
}
|
|
123
115
|
}
|
|
124
116
|
}
|
|
125
|
-
|
|
126
117
|
return candidates;
|
|
127
118
|
};
|
|
128
|
-
|
|
129
119
|
var getTabindex = function getTabindex(node, isScope) {
|
|
130
120
|
if (node.tabIndex < 0) {
|
|
131
121
|
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
@@ -143,29 +133,23 @@ var getTabindex = function getTabindex(node, isScope) {
|
|
|
143
133
|
return 0;
|
|
144
134
|
}
|
|
145
135
|
}
|
|
146
|
-
|
|
147
136
|
return node.tabIndex;
|
|
148
137
|
};
|
|
149
|
-
|
|
150
138
|
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
151
139
|
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
152
140
|
};
|
|
153
|
-
|
|
154
141
|
var isInput = function isInput(node) {
|
|
155
142
|
return node.tagName === 'INPUT';
|
|
156
143
|
};
|
|
157
|
-
|
|
158
144
|
var isHiddenInput = function isHiddenInput(node) {
|
|
159
145
|
return isInput(node) && node.type === 'hidden';
|
|
160
146
|
};
|
|
161
|
-
|
|
162
147
|
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
163
148
|
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
164
149
|
return child.tagName === 'SUMMARY';
|
|
165
150
|
});
|
|
166
151
|
return r;
|
|
167
152
|
};
|
|
168
|
-
|
|
169
153
|
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
170
154
|
for (var i = 0; i < nodes.length; i++) {
|
|
171
155
|
if (nodes[i].checked && nodes[i].form === form) {
|
|
@@ -173,20 +157,15 @@ var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
|
173
157
|
}
|
|
174
158
|
}
|
|
175
159
|
};
|
|
176
|
-
|
|
177
160
|
var isTabbableRadio = function isTabbableRadio(node) {
|
|
178
161
|
if (!node.name) {
|
|
179
162
|
return true;
|
|
180
163
|
}
|
|
181
|
-
|
|
182
164
|
var radioScope = node.form || getRootNode(node);
|
|
183
|
-
|
|
184
165
|
var queryRadios = function queryRadios(name) {
|
|
185
166
|
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
186
167
|
};
|
|
187
|
-
|
|
188
168
|
var radioSet;
|
|
189
|
-
|
|
190
169
|
if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
|
|
191
170
|
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
192
171
|
} else {
|
|
@@ -198,23 +177,19 @@ var isTabbableRadio = function isTabbableRadio(node) {
|
|
|
198
177
|
return false;
|
|
199
178
|
}
|
|
200
179
|
}
|
|
201
|
-
|
|
202
180
|
var checked = getCheckedRadio(radioSet, node.form);
|
|
203
181
|
return !checked || checked === node;
|
|
204
182
|
};
|
|
205
|
-
|
|
206
183
|
var isRadio = function isRadio(node) {
|
|
207
184
|
return isInput(node) && node.type === 'radio';
|
|
208
185
|
};
|
|
209
|
-
|
|
210
186
|
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
211
187
|
return isRadio(node) && !isTabbableRadio(node);
|
|
212
|
-
};
|
|
213
|
-
|
|
188
|
+
};
|
|
214
189
|
|
|
190
|
+
// determines if a node is ultimately attached to the window's document
|
|
215
191
|
var isNodeAttached = function isNodeAttached(node) {
|
|
216
192
|
var _nodeRootHost;
|
|
217
|
-
|
|
218
193
|
// The root node is the shadow root if the node is in a shadow DOM; some document otherwise
|
|
219
194
|
// (but NOT _the_ document; see second 'If' comment below for more).
|
|
220
195
|
// If rootNode is shadow root, it'll have a host, which is the element to which the shadow
|
|
@@ -236,32 +211,25 @@ var isNodeAttached = function isNodeAttached(node) {
|
|
|
236
211
|
// node is actually detached.
|
|
237
212
|
var nodeRootHost = getRootNode(node).host;
|
|
238
213
|
var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
|
|
239
|
-
|
|
240
214
|
while (!attached && nodeRootHost) {
|
|
241
215
|
var _nodeRootHost2;
|
|
242
|
-
|
|
243
216
|
// since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
|
|
244
217
|
// which means we need to get the host's host and check if that parent host is contained
|
|
245
218
|
// in (i.e. attached to) the document
|
|
246
219
|
nodeRootHost = getRootNode(nodeRootHost).host;
|
|
247
220
|
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
|
|
248
221
|
}
|
|
249
|
-
|
|
250
222
|
return attached;
|
|
251
223
|
};
|
|
252
|
-
|
|
253
224
|
var isZeroArea = function isZeroArea(node) {
|
|
254
225
|
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
226
|
+
width = _node$getBoundingClie.width,
|
|
227
|
+
height = _node$getBoundingClie.height;
|
|
258
228
|
return width === 0 && height === 0;
|
|
259
229
|
};
|
|
260
|
-
|
|
261
230
|
var isHidden = function isHidden(node, _ref) {
|
|
262
231
|
var displayCheck = _ref.displayCheck,
|
|
263
|
-
|
|
264
|
-
|
|
232
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
265
233
|
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
266
234
|
// (see notes about this further down), which means we will consider it visible
|
|
267
235
|
// (this is legacy behavior from a very long way back)
|
|
@@ -270,24 +238,19 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
270
238
|
if (getComputedStyle(node).visibility === 'hidden') {
|
|
271
239
|
return true;
|
|
272
240
|
}
|
|
273
|
-
|
|
274
241
|
var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
|
|
275
242
|
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
276
|
-
|
|
277
243
|
if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
278
244
|
return true;
|
|
279
245
|
}
|
|
280
|
-
|
|
281
246
|
if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
|
|
282
247
|
if (typeof getShadowRoot === 'function') {
|
|
283
248
|
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
284
249
|
// 'non-zero-area' fallback
|
|
285
250
|
var originalNode = node;
|
|
286
|
-
|
|
287
251
|
while (node) {
|
|
288
252
|
var parentElement = node.parentElement;
|
|
289
253
|
var rootNode = getRootNode(node);
|
|
290
|
-
|
|
291
254
|
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
292
255
|
) {
|
|
293
256
|
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
@@ -304,25 +267,27 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
304
267
|
node = parentElement;
|
|
305
268
|
}
|
|
306
269
|
}
|
|
307
|
-
|
|
308
270
|
node = originalNode;
|
|
309
|
-
}
|
|
271
|
+
}
|
|
272
|
+
// else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
310
273
|
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
311
274
|
// it might be a falsy value, which means shadow DOM support is disabled
|
|
275
|
+
|
|
312
276
|
// Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
|
|
313
277
|
// now we can just test to see if it would normally be visible or not, provided it's
|
|
314
278
|
// attached to the main document.
|
|
315
279
|
// NOTE: We must consider case where node is inside a shadow DOM and given directly to
|
|
316
280
|
// `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
|
|
317
281
|
|
|
318
|
-
|
|
319
282
|
if (isNodeAttached(node)) {
|
|
320
283
|
// this works wherever the node is: if there's at least one client rect, it's
|
|
321
284
|
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
322
285
|
// node itself is hidden in place of its contents; and there's no need to search
|
|
323
286
|
// up the hierarchy either
|
|
324
287
|
return !node.getClientRects().length;
|
|
325
|
-
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// Else, the node isn't attached to the document, which means the `getClientRects()`
|
|
326
291
|
// API will __always__ return zero rects (this can happen, for example, if React
|
|
327
292
|
// is used to render nodes onto a detached tree, as confirmed in this thread:
|
|
328
293
|
// https://github.com/facebook/react/issues/9117#issuecomment-284228870)
|
|
@@ -338,12 +303,10 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
338
303
|
//
|
|
339
304
|
// v6.0.0: As of this major release, the default 'full' option __no longer treats detached
|
|
340
305
|
// nodes as visible with the 'none' fallback.__
|
|
341
|
-
|
|
342
|
-
|
|
343
306
|
if (displayCheck !== 'legacy-full') {
|
|
344
307
|
return true; // hidden
|
|
345
|
-
}
|
|
346
|
-
|
|
308
|
+
}
|
|
309
|
+
// else, fallback to 'none' mode and consider the node visible
|
|
347
310
|
} else if (displayCheck === 'non-zero-area') {
|
|
348
311
|
// NOTE: Even though this tests that the node's client rect is non-zero to determine
|
|
349
312
|
// whether it's displayed, and that a detached node will __always__ have a zero-area
|
|
@@ -351,89 +314,79 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
351
314
|
// this mode, we do want to consider nodes that have a zero area to be hidden at all
|
|
352
315
|
// times, and that includes attached or not.
|
|
353
316
|
return isZeroArea(node);
|
|
354
|
-
}
|
|
355
|
-
// it's visible
|
|
356
|
-
|
|
317
|
+
}
|
|
357
318
|
|
|
319
|
+
// visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
|
|
320
|
+
// it's visible
|
|
358
321
|
return false;
|
|
359
|
-
};
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
// form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
360
325
|
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
361
326
|
// fieldset
|
|
362
|
-
|
|
363
|
-
|
|
364
327
|
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
365
328
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
366
|
-
var parentNode = node.parentElement;
|
|
367
|
-
|
|
329
|
+
var parentNode = node.parentElement;
|
|
330
|
+
// check if `node` is contained in a disabled <fieldset>
|
|
368
331
|
while (parentNode) {
|
|
369
332
|
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
370
333
|
// look for the first <legend> among the children of the disabled <fieldset>
|
|
371
334
|
for (var i = 0; i < parentNode.children.length; i++) {
|
|
372
|
-
var child = parentNode.children.item(i);
|
|
373
|
-
|
|
335
|
+
var child = parentNode.children.item(i);
|
|
336
|
+
// when the first <legend> (in document order) is found
|
|
374
337
|
if (child.tagName === 'LEGEND') {
|
|
375
338
|
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
376
339
|
// return whether `node` is a descendant of its first <legend>
|
|
377
340
|
return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
378
341
|
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
342
|
+
}
|
|
343
|
+
// the disabled <fieldset> containing `node` has no <legend>
|
|
382
344
|
return true;
|
|
383
345
|
}
|
|
384
|
-
|
|
385
346
|
parentNode = parentNode.parentElement;
|
|
386
347
|
}
|
|
387
|
-
}
|
|
388
|
-
// enabled/disabled state
|
|
389
|
-
|
|
348
|
+
}
|
|
390
349
|
|
|
350
|
+
// else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
351
|
+
// enabled/disabled state
|
|
391
352
|
return false;
|
|
392
353
|
};
|
|
393
|
-
|
|
394
354
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
395
|
-
if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
|
|
355
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
|
|
356
|
+
// For a details element with a summary, the summary element gets the focus
|
|
396
357
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
397
358
|
return false;
|
|
398
359
|
}
|
|
399
|
-
|
|
400
360
|
return true;
|
|
401
361
|
};
|
|
402
|
-
|
|
403
362
|
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
404
363
|
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
405
364
|
return false;
|
|
406
365
|
}
|
|
407
|
-
|
|
408
366
|
return true;
|
|
409
367
|
};
|
|
410
|
-
|
|
411
368
|
var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
|
|
412
369
|
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
413
|
-
|
|
414
370
|
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
415
371
|
return true;
|
|
416
|
-
}
|
|
372
|
+
}
|
|
373
|
+
// If a custom element has an explicit negative tabindex,
|
|
417
374
|
// browsers will not allow tab targeting said element's children.
|
|
418
|
-
|
|
419
|
-
|
|
420
375
|
return false;
|
|
421
376
|
};
|
|
377
|
+
|
|
422
378
|
/**
|
|
423
|
-
* @param {Array.<Element|
|
|
379
|
+
* @param {Array.<Element|CandidateScope>} candidates
|
|
424
380
|
* @returns Element[]
|
|
425
381
|
*/
|
|
426
|
-
|
|
427
|
-
|
|
428
382
|
var sortByOrder = function sortByOrder(candidates) {
|
|
429
383
|
var regularTabbables = [];
|
|
430
384
|
var orderedTabbables = [];
|
|
431
385
|
candidates.forEach(function (item, i) {
|
|
432
|
-
var isScope = !!item.
|
|
433
|
-
var element = isScope ? item.
|
|
386
|
+
var isScope = !!item.scopeParent;
|
|
387
|
+
var element = isScope ? item.scopeParent : item;
|
|
434
388
|
var candidateTabindex = getTabindex(element, isScope);
|
|
435
389
|
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
436
|
-
|
|
437
390
|
if (candidateTabindex === 0) {
|
|
438
391
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
439
392
|
} else {
|
|
@@ -451,11 +404,9 @@ var sortByOrder = function sortByOrder(candidates) {
|
|
|
451
404
|
return acc;
|
|
452
405
|
}, []).concat(regularTabbables);
|
|
453
406
|
};
|
|
454
|
-
|
|
455
407
|
var tabbable = function tabbable(el, options) {
|
|
456
408
|
options = options || {};
|
|
457
409
|
var candidates;
|
|
458
|
-
|
|
459
410
|
if (options.getShadowRoot) {
|
|
460
411
|
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
461
412
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
@@ -466,14 +417,11 @@ var tabbable = function tabbable(el, options) {
|
|
|
466
417
|
} else {
|
|
467
418
|
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
468
419
|
}
|
|
469
|
-
|
|
470
420
|
return sortByOrder(candidates);
|
|
471
421
|
};
|
|
472
|
-
|
|
473
422
|
var focusable = function focusable(el, options) {
|
|
474
423
|
options = options || {};
|
|
475
424
|
var candidates;
|
|
476
|
-
|
|
477
425
|
if (options.getShadowRoot) {
|
|
478
426
|
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
479
427
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
@@ -483,58 +431,45 @@ var focusable = function focusable(el, options) {
|
|
|
483
431
|
} else {
|
|
484
432
|
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
485
433
|
}
|
|
486
|
-
|
|
487
434
|
return candidates;
|
|
488
435
|
};
|
|
489
|
-
|
|
490
436
|
var isTabbable = function isTabbable(node, options) {
|
|
491
437
|
options = options || {};
|
|
492
|
-
|
|
493
438
|
if (!node) {
|
|
494
439
|
throw new Error('No node provided');
|
|
495
440
|
}
|
|
496
|
-
|
|
497
441
|
if (matches.call(node, candidateSelector) === false) {
|
|
498
442
|
return false;
|
|
499
443
|
}
|
|
500
|
-
|
|
501
444
|
return isNodeMatchingSelectorTabbable(options, node);
|
|
502
445
|
};
|
|
503
|
-
|
|
504
446
|
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
505
|
-
|
|
506
447
|
var isFocusable = function isFocusable(node, options) {
|
|
507
448
|
options = options || {};
|
|
508
|
-
|
|
509
449
|
if (!node) {
|
|
510
450
|
throw new Error('No node provided');
|
|
511
451
|
}
|
|
512
|
-
|
|
513
452
|
if (matches.call(node, focusableCandidateSelector) === false) {
|
|
514
453
|
return false;
|
|
515
454
|
}
|
|
516
|
-
|
|
517
455
|
return isNodeMatchingSelectorFocusable(options, node);
|
|
518
456
|
};
|
|
519
457
|
|
|
520
458
|
/*!
|
|
521
|
-
* focus-trap 7.
|
|
459
|
+
* focus-trap 7.2.0
|
|
522
460
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
523
461
|
*/
|
|
524
462
|
|
|
525
463
|
function ownKeys(object, enumerableOnly) {
|
|
526
464
|
var keys = Object.keys(object);
|
|
527
|
-
|
|
528
465
|
if (Object.getOwnPropertySymbols) {
|
|
529
466
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
530
467
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
531
468
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
532
469
|
})), keys.push.apply(keys, symbols);
|
|
533
470
|
}
|
|
534
|
-
|
|
535
471
|
return keys;
|
|
536
472
|
}
|
|
537
|
-
|
|
538
473
|
function _objectSpread2(target) {
|
|
539
474
|
for (var i = 1; i < arguments.length; i++) {
|
|
540
475
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
@@ -544,11 +479,10 @@ function _objectSpread2(target) {
|
|
|
544
479
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
545
480
|
});
|
|
546
481
|
}
|
|
547
|
-
|
|
548
482
|
return target;
|
|
549
483
|
}
|
|
550
|
-
|
|
551
484
|
function _defineProperty(obj, key, value) {
|
|
485
|
+
key = _toPropertyKey(key);
|
|
552
486
|
if (key in obj) {
|
|
553
487
|
Object.defineProperty(obj, key, {
|
|
554
488
|
value: value,
|
|
@@ -559,64 +493,75 @@ function _defineProperty(obj, key, value) {
|
|
|
559
493
|
} else {
|
|
560
494
|
obj[key] = value;
|
|
561
495
|
}
|
|
562
|
-
|
|
563
496
|
return obj;
|
|
564
497
|
}
|
|
498
|
+
function _toPrimitive(input, hint) {
|
|
499
|
+
if (typeof input !== "object" || input === null) return input;
|
|
500
|
+
var prim = input[Symbol.toPrimitive];
|
|
501
|
+
if (prim !== undefined) {
|
|
502
|
+
var res = prim.call(input, hint || "default");
|
|
503
|
+
if (typeof res !== "object") return res;
|
|
504
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
505
|
+
}
|
|
506
|
+
return (hint === "string" ? String : Number)(input);
|
|
507
|
+
}
|
|
508
|
+
function _toPropertyKey(arg) {
|
|
509
|
+
var key = _toPrimitive(arg, "string");
|
|
510
|
+
return typeof key === "symbol" ? key : String(key);
|
|
511
|
+
}
|
|
565
512
|
|
|
566
|
-
var activeFocusTraps =
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
if (
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
if (activeTrap !== trap) {
|
|
574
|
-
activeTrap.pause();
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
var trapIndex = trapQueue.indexOf(trap);
|
|
579
|
-
|
|
580
|
-
if (trapIndex === -1) {
|
|
581
|
-
trapQueue.push(trap);
|
|
582
|
-
} else {
|
|
583
|
-
// move this existing trap to the front of the queue
|
|
584
|
-
trapQueue.splice(trapIndex, 1);
|
|
585
|
-
trapQueue.push(trap);
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
deactivateTrap: function deactivateTrap(trap) {
|
|
589
|
-
var trapIndex = trapQueue.indexOf(trap);
|
|
590
|
-
|
|
591
|
-
if (trapIndex !== -1) {
|
|
592
|
-
trapQueue.splice(trapIndex, 1);
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
if (trapQueue.length > 0) {
|
|
596
|
-
trapQueue[trapQueue.length - 1].unpause();
|
|
513
|
+
var activeFocusTraps = {
|
|
514
|
+
activateTrap: function activateTrap(trapStack, trap) {
|
|
515
|
+
if (trapStack.length > 0) {
|
|
516
|
+
var activeTrap = trapStack[trapStack.length - 1];
|
|
517
|
+
if (activeTrap !== trap) {
|
|
518
|
+
activeTrap.pause();
|
|
597
519
|
}
|
|
598
520
|
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
521
|
+
var trapIndex = trapStack.indexOf(trap);
|
|
522
|
+
if (trapIndex === -1) {
|
|
523
|
+
trapStack.push(trap);
|
|
524
|
+
} else {
|
|
525
|
+
// move this existing trap to the front of the queue
|
|
526
|
+
trapStack.splice(trapIndex, 1);
|
|
527
|
+
trapStack.push(trap);
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
deactivateTrap: function deactivateTrap(trapStack, trap) {
|
|
531
|
+
var trapIndex = trapStack.indexOf(trap);
|
|
532
|
+
if (trapIndex !== -1) {
|
|
533
|
+
trapStack.splice(trapIndex, 1);
|
|
534
|
+
}
|
|
535
|
+
if (trapStack.length > 0) {
|
|
536
|
+
trapStack[trapStack.length - 1].unpause();
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
};
|
|
602
540
|
var isSelectableInput = function isSelectableInput(node) {
|
|
603
541
|
return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
|
|
604
542
|
};
|
|
605
|
-
|
|
606
543
|
var isEscapeEvent = function isEscapeEvent(e) {
|
|
607
544
|
return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
|
|
608
545
|
};
|
|
609
|
-
|
|
610
546
|
var isTabEvent = function isTabEvent(e) {
|
|
611
547
|
return e.key === 'Tab' || e.keyCode === 9;
|
|
612
548
|
};
|
|
613
549
|
|
|
550
|
+
// checks for TAB by default
|
|
551
|
+
var isKeyForward = function isKeyForward(e) {
|
|
552
|
+
return isTabEvent(e) && !e.shiftKey;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
// checks for SHIFT+TAB by default
|
|
556
|
+
var isKeyBackward = function isKeyBackward(e) {
|
|
557
|
+
return isTabEvent(e) && e.shiftKey;
|
|
558
|
+
};
|
|
614
559
|
var delay = function delay(fn) {
|
|
615
560
|
return setTimeout(fn, 0);
|
|
616
|
-
};
|
|
617
|
-
// of Array.findIndex() for our needs
|
|
618
|
-
|
|
561
|
+
};
|
|
619
562
|
|
|
563
|
+
// Array.find/findIndex() are not supported on IE; this replicates enough
|
|
564
|
+
// of Array.findIndex() for our needs
|
|
620
565
|
var findIndex = function findIndex(arr, fn) {
|
|
621
566
|
var idx = -1;
|
|
622
567
|
arr.every(function (value, i) {
|
|
@@ -627,8 +572,10 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
627
572
|
|
|
628
573
|
return true; // next
|
|
629
574
|
});
|
|
575
|
+
|
|
630
576
|
return idx;
|
|
631
577
|
};
|
|
578
|
+
|
|
632
579
|
/**
|
|
633
580
|
* Get an option's value when it could be a plain value, or a handler that provides
|
|
634
581
|
* the value.
|
|
@@ -636,16 +583,12 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
636
583
|
* @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
|
|
637
584
|
* @returns {*} The `value`, or the handler's returned value.
|
|
638
585
|
*/
|
|
639
|
-
|
|
640
|
-
|
|
641
586
|
var valueOrHandler = function valueOrHandler(value) {
|
|
642
587
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
643
588
|
params[_key - 1] = arguments[_key];
|
|
644
589
|
}
|
|
645
|
-
|
|
646
590
|
return typeof value === 'function' ? value.apply(void 0, params) : value;
|
|
647
591
|
};
|
|
648
|
-
|
|
649
592
|
var getActualTarget = function getActualTarget(event) {
|
|
650
593
|
// NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
|
|
651
594
|
// shadow host. However, event.target.composedPath() will be an array of
|
|
@@ -657,17 +600,21 @@ var getActualTarget = function getActualTarget(event) {
|
|
|
657
600
|
return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
|
|
658
601
|
};
|
|
659
602
|
|
|
603
|
+
// NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
|
|
604
|
+
// current instance use the same stack if `userOptions.trapStack` isn't specified
|
|
605
|
+
var internalTrapStack = [];
|
|
660
606
|
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
661
607
|
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
662
608
|
// should be safe code to execute if the `document` option isn't specified
|
|
663
609
|
var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
|
|
664
|
-
|
|
610
|
+
var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
|
|
665
611
|
var config = _objectSpread2({
|
|
666
612
|
returnFocusOnDeactivate: true,
|
|
667
613
|
escapeDeactivates: true,
|
|
668
|
-
delayInitialFocus: true
|
|
614
|
+
delayInitialFocus: true,
|
|
615
|
+
isKeyForward: isKeyForward,
|
|
616
|
+
isKeyBackward: isKeyBackward
|
|
669
617
|
}, userOptions);
|
|
670
|
-
|
|
671
618
|
var state = {
|
|
672
619
|
// containers given to createFocusTrap()
|
|
673
620
|
// @type {Array<HTMLElement>}
|
|
@@ -687,6 +634,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
687
634
|
// }>}
|
|
688
635
|
containerGroups: [],
|
|
689
636
|
// same order/length as `containers` list
|
|
637
|
+
|
|
690
638
|
// references to objects in `containerGroups`, but only those that actually have
|
|
691
639
|
// tabbable nodes in them
|
|
692
640
|
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
@@ -710,10 +658,10 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
710
658
|
* @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
|
|
711
659
|
* IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
|
|
712
660
|
*/
|
|
713
|
-
|
|
714
661
|
var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
|
|
715
662
|
return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
|
|
716
663
|
};
|
|
664
|
+
|
|
717
665
|
/**
|
|
718
666
|
* Finds the index of the container that contains the element.
|
|
719
667
|
* @param {HTMLElement} element
|
|
@@ -721,16 +669,15 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
721
669
|
* `state.containerGroups` (the order/length of these lists are the same); -1
|
|
722
670
|
* if the element isn't found.
|
|
723
671
|
*/
|
|
724
|
-
|
|
725
|
-
|
|
726
672
|
var findContainerIndex = function findContainerIndex(element) {
|
|
727
673
|
// NOTE: search `containerGroups` because it's possible a group contains no tabbable
|
|
728
674
|
// nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
|
|
729
675
|
// and we still need to find the element in there
|
|
730
676
|
return state.containerGroups.findIndex(function (_ref) {
|
|
731
677
|
var container = _ref.container,
|
|
732
|
-
|
|
733
|
-
return container.contains(element) ||
|
|
678
|
+
tabbableNodes = _ref.tabbableNodes;
|
|
679
|
+
return container.contains(element) ||
|
|
680
|
+
// fall back to explicit tabbable search which will take into consideration any
|
|
734
681
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
735
682
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
736
683
|
// look inside web components even if open)
|
|
@@ -739,6 +686,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
739
686
|
});
|
|
740
687
|
});
|
|
741
688
|
};
|
|
689
|
+
|
|
742
690
|
/**
|
|
743
691
|
* Gets the node for the given option, which is expected to be an option that
|
|
744
692
|
* can be either a DOM node, a string that is a selector to get a node, `false`
|
|
@@ -752,19 +700,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
752
700
|
* @throws {Error} If the option is set, not `false`, and is not, or does not
|
|
753
701
|
* resolve to a node.
|
|
754
702
|
*/
|
|
755
|
-
|
|
756
|
-
|
|
757
703
|
var getNodeForOption = function getNodeForOption(optionName) {
|
|
758
704
|
var optionValue = config[optionName];
|
|
759
|
-
|
|
760
705
|
if (typeof optionValue === 'function') {
|
|
761
706
|
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
762
707
|
params[_key2 - 1] = arguments[_key2];
|
|
763
708
|
}
|
|
764
|
-
|
|
765
709
|
optionValue = optionValue.apply(void 0, params);
|
|
766
710
|
}
|
|
767
|
-
|
|
768
711
|
if (optionValue === true) {
|
|
769
712
|
optionValue = undefined; // use default value
|
|
770
713
|
}
|
|
@@ -772,56 +715,51 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
772
715
|
if (!optionValue) {
|
|
773
716
|
if (optionValue === undefined || optionValue === false) {
|
|
774
717
|
return optionValue;
|
|
775
|
-
}
|
|
776
|
-
|
|
718
|
+
}
|
|
719
|
+
// else, empty string (invalid), null (invalid), 0 (invalid)
|
|
777
720
|
|
|
778
721
|
throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
|
|
779
722
|
}
|
|
780
|
-
|
|
781
723
|
var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
|
|
782
724
|
|
|
783
725
|
if (typeof optionValue === 'string') {
|
|
784
726
|
node = doc.querySelector(optionValue); // resolve to node, or null if fails
|
|
785
|
-
|
|
786
727
|
if (!node) {
|
|
787
728
|
throw new Error("`".concat(optionName, "` as selector refers to no known node"));
|
|
788
729
|
}
|
|
789
730
|
}
|
|
790
|
-
|
|
791
731
|
return node;
|
|
792
732
|
};
|
|
793
|
-
|
|
794
733
|
var getInitialFocusNode = function getInitialFocusNode() {
|
|
795
|
-
var node = getNodeForOption('initialFocus');
|
|
734
|
+
var node = getNodeForOption('initialFocus');
|
|
796
735
|
|
|
736
|
+
// false explicitly indicates we want no initialFocus at all
|
|
797
737
|
if (node === false) {
|
|
798
738
|
return false;
|
|
799
739
|
}
|
|
800
|
-
|
|
801
740
|
if (node === undefined) {
|
|
802
741
|
// option not specified: use fallback options
|
|
803
742
|
if (findContainerIndex(doc.activeElement) >= 0) {
|
|
804
743
|
node = doc.activeElement;
|
|
805
744
|
} else {
|
|
806
745
|
var firstTabbableGroup = state.tabbableGroups[0];
|
|
807
|
-
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
746
|
+
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
808
747
|
|
|
748
|
+
// NOTE: `fallbackFocus` option function cannot return `false` (not supported)
|
|
809
749
|
node = firstTabbableNode || getNodeForOption('fallbackFocus');
|
|
810
750
|
}
|
|
811
751
|
}
|
|
812
|
-
|
|
813
752
|
if (!node) {
|
|
814
753
|
throw new Error('Your focus-trap needs to have at least one focusable element');
|
|
815
754
|
}
|
|
816
|
-
|
|
817
755
|
return node;
|
|
818
756
|
};
|
|
819
|
-
|
|
820
757
|
var updateTabbableNodes = function updateTabbableNodes() {
|
|
821
758
|
state.containerGroups = state.containers.map(function (container) {
|
|
822
|
-
var tabbableNodes = tabbable(container, config.tabbableOptions);
|
|
823
|
-
// are a superset of tabbable nodes
|
|
759
|
+
var tabbableNodes = tabbable(container, config.tabbableOptions);
|
|
824
760
|
|
|
761
|
+
// NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
762
|
+
// are a superset of tabbable nodes
|
|
825
763
|
var focusableNodes = focusable(container, config.tabbableOptions);
|
|
826
764
|
return {
|
|
827
765
|
container: container,
|
|
@@ -829,7 +767,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
829
767
|
focusableNodes: focusableNodes,
|
|
830
768
|
firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
|
|
831
769
|
lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
|
|
832
|
-
|
|
833
770
|
/**
|
|
834
771
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
835
772
|
* in this container, if any.
|
|
@@ -853,17 +790,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
853
790
|
var nodeIdx = focusableNodes.findIndex(function (n) {
|
|
854
791
|
return n === node;
|
|
855
792
|
});
|
|
856
|
-
|
|
857
793
|
if (nodeIdx < 0) {
|
|
858
794
|
return undefined;
|
|
859
795
|
}
|
|
860
|
-
|
|
861
796
|
if (forward) {
|
|
862
797
|
return focusableNodes.slice(nodeIdx + 1).find(function (n) {
|
|
863
798
|
return isTabbable(n, config.tabbableOptions);
|
|
864
799
|
});
|
|
865
800
|
}
|
|
866
|
-
|
|
867
801
|
return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
|
|
868
802
|
return isTabbable(n, config.tabbableOptions);
|
|
869
803
|
});
|
|
@@ -872,53 +806,46 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
872
806
|
});
|
|
873
807
|
state.tabbableGroups = state.containerGroups.filter(function (group) {
|
|
874
808
|
return group.tabbableNodes.length > 0;
|
|
875
|
-
});
|
|
809
|
+
});
|
|
876
810
|
|
|
811
|
+
// throw if no groups have tabbable nodes and we don't have a fallback focus node either
|
|
877
812
|
if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
|
|
878
813
|
) {
|
|
879
814
|
throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
|
|
880
815
|
}
|
|
881
816
|
};
|
|
882
|
-
|
|
883
817
|
var tryFocus = function tryFocus(node) {
|
|
884
818
|
if (node === false) {
|
|
885
819
|
return;
|
|
886
820
|
}
|
|
887
|
-
|
|
888
821
|
if (node === doc.activeElement) {
|
|
889
822
|
return;
|
|
890
823
|
}
|
|
891
|
-
|
|
892
824
|
if (!node || !node.focus) {
|
|
893
825
|
tryFocus(getInitialFocusNode());
|
|
894
826
|
return;
|
|
895
827
|
}
|
|
896
|
-
|
|
897
828
|
node.focus({
|
|
898
829
|
preventScroll: !!config.preventScroll
|
|
899
830
|
});
|
|
900
831
|
state.mostRecentlyFocusedNode = node;
|
|
901
|
-
|
|
902
832
|
if (isSelectableInput(node)) {
|
|
903
833
|
node.select();
|
|
904
834
|
}
|
|
905
835
|
};
|
|
906
|
-
|
|
907
836
|
var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
|
|
908
837
|
var node = getNodeForOption('setReturnFocus', previousActiveElement);
|
|
909
838
|
return node ? node : node === false ? false : previousActiveElement;
|
|
910
|
-
};
|
|
911
|
-
// so that it precedes the focus event.
|
|
912
|
-
|
|
839
|
+
};
|
|
913
840
|
|
|
841
|
+
// This needs to be done on mousedown and touchstart instead of click
|
|
842
|
+
// so that it precedes the focus event.
|
|
914
843
|
var checkPointerDown = function checkPointerDown(e) {
|
|
915
844
|
var target = getActualTarget(e);
|
|
916
|
-
|
|
917
845
|
if (findContainerIndex(target) >= 0) {
|
|
918
846
|
// allow the click since it ocurred inside the trap
|
|
919
847
|
return;
|
|
920
848
|
}
|
|
921
|
-
|
|
922
849
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
923
850
|
// immediately deactivate the trap
|
|
924
851
|
trap.deactivate({
|
|
@@ -936,25 +863,26 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
936
863
|
returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
|
|
937
864
|
});
|
|
938
865
|
return;
|
|
939
|
-
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
// This is needed for mobile devices.
|
|
940
869
|
// (If we'll only let `click` events through,
|
|
941
870
|
// then on mobile they will be blocked anyways if `touchstart` is blocked.)
|
|
942
|
-
|
|
943
|
-
|
|
944
871
|
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
945
872
|
// allow the click outside the trap to take place
|
|
946
873
|
return;
|
|
947
|
-
}
|
|
948
|
-
|
|
874
|
+
}
|
|
949
875
|
|
|
876
|
+
// otherwise, prevent the click
|
|
950
877
|
e.preventDefault();
|
|
951
|
-
};
|
|
952
|
-
|
|
878
|
+
};
|
|
953
879
|
|
|
880
|
+
// In case focus escapes the trap for some strange reason, pull it back in.
|
|
954
881
|
var checkFocusIn = function checkFocusIn(e) {
|
|
955
882
|
var target = getActualTarget(e);
|
|
956
|
-
var targetContained = findContainerIndex(target) >= 0;
|
|
883
|
+
var targetContained = findContainerIndex(target) >= 0;
|
|
957
884
|
|
|
885
|
+
// In Firefox when you Tab out of an iframe the Document is briefly focused.
|
|
958
886
|
if (targetContained || target instanceof Document) {
|
|
959
887
|
if (targetContained) {
|
|
960
888
|
state.mostRecentlyFocusedNode = target;
|
|
@@ -964,42 +892,41 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
964
892
|
e.stopImmediatePropagation();
|
|
965
893
|
tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
|
|
966
894
|
}
|
|
967
|
-
};
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
// Hijack key nav events on the first and last focusable nodes of the trap,
|
|
968
898
|
// in order to prevent focus from escaping. If it escapes for even a
|
|
969
899
|
// moment it can end up scrolling the page and causing confusion so we
|
|
970
900
|
// kind of need to capture the action at the keydown phase.
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
var target = getActualTarget(e);
|
|
901
|
+
var checkKeyNav = function checkKeyNav(event) {
|
|
902
|
+
var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
903
|
+
var target = getActualTarget(event);
|
|
975
904
|
updateTabbableNodes();
|
|
976
905
|
var destinationNode = null;
|
|
977
|
-
|
|
978
906
|
if (state.tabbableGroups.length > 0) {
|
|
979
907
|
// make sure the target is actually contained in a group
|
|
980
908
|
// NOTE: the target may also be the container itself if it's focusable
|
|
981
909
|
// with tabIndex='-1' and was given initial focus
|
|
982
910
|
var containerIndex = findContainerIndex(target);
|
|
983
911
|
var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
|
|
984
|
-
|
|
985
912
|
if (containerIndex < 0) {
|
|
986
913
|
// target not found in any group: quite possible focus has escaped the trap,
|
|
987
|
-
// so bring it back
|
|
988
|
-
if (
|
|
914
|
+
// so bring it back into...
|
|
915
|
+
if (isBackward) {
|
|
989
916
|
// ...the last node in the last group
|
|
990
917
|
destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
|
|
991
918
|
} else {
|
|
992
919
|
// ...the first node in the first group
|
|
993
920
|
destinationNode = state.tabbableGroups[0].firstTabbableNode;
|
|
994
921
|
}
|
|
995
|
-
} else if (
|
|
922
|
+
} else if (isBackward) {
|
|
996
923
|
// REVERSE
|
|
924
|
+
|
|
997
925
|
// is the target the first tabbable node in a group?
|
|
998
926
|
var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
|
|
999
927
|
var firstTabbableNode = _ref2.firstTabbableNode;
|
|
1000
928
|
return target === firstTabbableNode;
|
|
1001
929
|
});
|
|
1002
|
-
|
|
1003
930
|
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
|
|
1004
931
|
// an exception case where the target is either the container itself, or
|
|
1005
932
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
@@ -1009,7 +936,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1009
936
|
// first tabbable node, and go to the last tabbable node of the LAST group
|
|
1010
937
|
startOfGroupIndex = containerIndex;
|
|
1011
938
|
}
|
|
1012
|
-
|
|
1013
939
|
if (startOfGroupIndex >= 0) {
|
|
1014
940
|
// YES: then shift+tab should go to the last tabbable node in the
|
|
1015
941
|
// previous group (and wrap around to the last tabbable node of
|
|
@@ -1017,15 +943,19 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1017
943
|
var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
|
|
1018
944
|
var destinationGroup = state.tabbableGroups[destinationGroupIndex];
|
|
1019
945
|
destinationNode = destinationGroup.lastTabbableNode;
|
|
946
|
+
} else if (!isTabEvent(event)) {
|
|
947
|
+
// user must have customized the nav keys so we have to move focus manually _within_
|
|
948
|
+
// the active group: do this based on the order determined by tabbable()
|
|
949
|
+
destinationNode = containerGroup.nextTabbableNode(target, false);
|
|
1020
950
|
}
|
|
1021
951
|
} else {
|
|
1022
952
|
// FORWARD
|
|
953
|
+
|
|
1023
954
|
// is the target the last tabbable node in a group?
|
|
1024
955
|
var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
|
|
1025
956
|
var lastTabbableNode = _ref3.lastTabbableNode;
|
|
1026
957
|
return target === lastTabbableNode;
|
|
1027
958
|
});
|
|
1028
|
-
|
|
1029
959
|
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
|
|
1030
960
|
// an exception case where the target is the container itself, or
|
|
1031
961
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
@@ -1035,73 +965,76 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1035
965
|
// last tabbable node, and go to the first tabbable node of the FIRST group
|
|
1036
966
|
lastOfGroupIndex = containerIndex;
|
|
1037
967
|
}
|
|
1038
|
-
|
|
1039
968
|
if (lastOfGroupIndex >= 0) {
|
|
1040
969
|
// YES: then tab should go to the first tabbable node in the next
|
|
1041
970
|
// group (and wrap around to the first tabbable node of the FIRST
|
|
1042
971
|
// group if it's the last tabbable node of the LAST group)
|
|
1043
972
|
var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
|
|
1044
|
-
|
|
1045
973
|
var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
|
|
1046
974
|
destinationNode = _destinationGroup.firstTabbableNode;
|
|
975
|
+
} else if (!isTabEvent(event)) {
|
|
976
|
+
// user must have customized the nav keys so we have to move focus manually _within_
|
|
977
|
+
// the active group: do this based on the order determined by tabbable()
|
|
978
|
+
destinationNode = containerGroup.nextTabbableNode(target);
|
|
1047
979
|
}
|
|
1048
980
|
}
|
|
1049
981
|
} else {
|
|
982
|
+
// no groups available
|
|
1050
983
|
// NOTE: the fallbackFocus option does not support returning false to opt-out
|
|
1051
984
|
destinationNode = getNodeForOption('fallbackFocus');
|
|
1052
985
|
}
|
|
1053
|
-
|
|
1054
986
|
if (destinationNode) {
|
|
1055
|
-
|
|
987
|
+
if (isTabEvent(event)) {
|
|
988
|
+
// since tab natively moves focus, we wouldn't have a destination node unless we
|
|
989
|
+
// were on the edge of a container and had to move to the next/previous edge, in
|
|
990
|
+
// which case we want to prevent default to keep the browser from moving focus
|
|
991
|
+
// to where it normally would
|
|
992
|
+
event.preventDefault();
|
|
993
|
+
}
|
|
1056
994
|
tryFocus(destinationNode);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
995
|
+
}
|
|
996
|
+
// else, let the browser take care of [shift+]tab and move the focus
|
|
1059
997
|
};
|
|
1060
998
|
|
|
1061
|
-
var checkKey = function checkKey(
|
|
1062
|
-
if (isEscapeEvent(
|
|
1063
|
-
|
|
999
|
+
var checkKey = function checkKey(event) {
|
|
1000
|
+
if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
|
|
1001
|
+
event.preventDefault();
|
|
1064
1002
|
trap.deactivate();
|
|
1065
1003
|
return;
|
|
1066
1004
|
}
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
checkTab(e);
|
|
1070
|
-
return;
|
|
1005
|
+
if (config.isKeyForward(event) || config.isKeyBackward(event)) {
|
|
1006
|
+
checkKeyNav(event, config.isKeyBackward(event));
|
|
1071
1007
|
}
|
|
1072
1008
|
};
|
|
1073
|
-
|
|
1074
1009
|
var checkClick = function checkClick(e) {
|
|
1075
1010
|
var target = getActualTarget(e);
|
|
1076
|
-
|
|
1077
1011
|
if (findContainerIndex(target) >= 0) {
|
|
1078
1012
|
return;
|
|
1079
1013
|
}
|
|
1080
|
-
|
|
1081
1014
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
1082
1015
|
return;
|
|
1083
1016
|
}
|
|
1084
|
-
|
|
1085
1017
|
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
1086
1018
|
return;
|
|
1087
1019
|
}
|
|
1088
|
-
|
|
1089
1020
|
e.preventDefault();
|
|
1090
1021
|
e.stopImmediatePropagation();
|
|
1091
|
-
};
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
//
|
|
1092
1025
|
// EVENT LISTENERS
|
|
1093
1026
|
//
|
|
1094
1027
|
|
|
1095
|
-
|
|
1096
1028
|
var addListeners = function addListeners() {
|
|
1097
1029
|
if (!state.active) {
|
|
1098
1030
|
return;
|
|
1099
|
-
}
|
|
1031
|
+
}
|
|
1100
1032
|
|
|
1033
|
+
// There can be only one listening focus trap at a time
|
|
1034
|
+
activeFocusTraps.activateTrap(trapStack, trap);
|
|
1101
1035
|
|
|
1102
|
-
|
|
1036
|
+
// Delay ensures that the focused element doesn't capture the event
|
|
1103
1037
|
// that caused the focus trap activation.
|
|
1104
|
-
|
|
1105
1038
|
state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
|
|
1106
1039
|
tryFocus(getInitialFocusNode());
|
|
1107
1040
|
}) : tryFocus(getInitialFocusNode());
|
|
@@ -1124,70 +1057,58 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1124
1057
|
});
|
|
1125
1058
|
return trap;
|
|
1126
1059
|
};
|
|
1127
|
-
|
|
1128
1060
|
var removeListeners = function removeListeners() {
|
|
1129
1061
|
if (!state.active) {
|
|
1130
1062
|
return;
|
|
1131
1063
|
}
|
|
1132
|
-
|
|
1133
1064
|
doc.removeEventListener('focusin', checkFocusIn, true);
|
|
1134
1065
|
doc.removeEventListener('mousedown', checkPointerDown, true);
|
|
1135
1066
|
doc.removeEventListener('touchstart', checkPointerDown, true);
|
|
1136
1067
|
doc.removeEventListener('click', checkClick, true);
|
|
1137
1068
|
doc.removeEventListener('keydown', checkKey, true);
|
|
1138
1069
|
return trap;
|
|
1139
|
-
};
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
//
|
|
1140
1073
|
// TRAP DEFINITION
|
|
1141
1074
|
//
|
|
1142
1075
|
|
|
1143
|
-
|
|
1144
1076
|
trap = {
|
|
1145
1077
|
get active() {
|
|
1146
1078
|
return state.active;
|
|
1147
1079
|
},
|
|
1148
|
-
|
|
1149
1080
|
get paused() {
|
|
1150
1081
|
return state.paused;
|
|
1151
1082
|
},
|
|
1152
|
-
|
|
1153
1083
|
activate: function activate(activateOptions) {
|
|
1154
1084
|
if (state.active) {
|
|
1155
1085
|
return this;
|
|
1156
1086
|
}
|
|
1157
|
-
|
|
1158
1087
|
var onActivate = getOption(activateOptions, 'onActivate');
|
|
1159
1088
|
var onPostActivate = getOption(activateOptions, 'onPostActivate');
|
|
1160
1089
|
var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
|
|
1161
|
-
|
|
1162
1090
|
if (!checkCanFocusTrap) {
|
|
1163
1091
|
updateTabbableNodes();
|
|
1164
1092
|
}
|
|
1165
|
-
|
|
1166
1093
|
state.active = true;
|
|
1167
1094
|
state.paused = false;
|
|
1168
1095
|
state.nodeFocusedBeforeActivation = doc.activeElement;
|
|
1169
|
-
|
|
1170
1096
|
if (onActivate) {
|
|
1171
1097
|
onActivate();
|
|
1172
1098
|
}
|
|
1173
|
-
|
|
1174
1099
|
var finishActivation = function finishActivation() {
|
|
1175
1100
|
if (checkCanFocusTrap) {
|
|
1176
1101
|
updateTabbableNodes();
|
|
1177
1102
|
}
|
|
1178
|
-
|
|
1179
1103
|
addListeners();
|
|
1180
|
-
|
|
1181
1104
|
if (onPostActivate) {
|
|
1182
1105
|
onPostActivate();
|
|
1183
1106
|
}
|
|
1184
1107
|
};
|
|
1185
|
-
|
|
1186
1108
|
if (checkCanFocusTrap) {
|
|
1187
1109
|
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
1188
1110
|
return this;
|
|
1189
1111
|
}
|
|
1190
|
-
|
|
1191
1112
|
finishActivation();
|
|
1192
1113
|
return this;
|
|
1193
1114
|
},
|
|
@@ -1195,46 +1116,38 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1195
1116
|
if (!state.active) {
|
|
1196
1117
|
return this;
|
|
1197
1118
|
}
|
|
1198
|
-
|
|
1199
1119
|
var options = _objectSpread2({
|
|
1200
1120
|
onDeactivate: config.onDeactivate,
|
|
1201
1121
|
onPostDeactivate: config.onPostDeactivate,
|
|
1202
1122
|
checkCanReturnFocus: config.checkCanReturnFocus
|
|
1203
1123
|
}, deactivateOptions);
|
|
1204
|
-
|
|
1205
1124
|
clearTimeout(state.delayInitialFocusTimer); // noop if undefined
|
|
1206
|
-
|
|
1207
1125
|
state.delayInitialFocusTimer = undefined;
|
|
1208
1126
|
removeListeners();
|
|
1209
1127
|
state.active = false;
|
|
1210
1128
|
state.paused = false;
|
|
1211
|
-
activeFocusTraps.deactivateTrap(trap);
|
|
1129
|
+
activeFocusTraps.deactivateTrap(trapStack, trap);
|
|
1212
1130
|
var onDeactivate = getOption(options, 'onDeactivate');
|
|
1213
1131
|
var onPostDeactivate = getOption(options, 'onPostDeactivate');
|
|
1214
1132
|
var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
|
|
1215
1133
|
var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
|
|
1216
|
-
|
|
1217
1134
|
if (onDeactivate) {
|
|
1218
1135
|
onDeactivate();
|
|
1219
1136
|
}
|
|
1220
|
-
|
|
1221
1137
|
var finishDeactivation = function finishDeactivation() {
|
|
1222
1138
|
delay(function () {
|
|
1223
1139
|
if (returnFocus) {
|
|
1224
1140
|
tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
1225
1141
|
}
|
|
1226
|
-
|
|
1227
1142
|
if (onPostDeactivate) {
|
|
1228
1143
|
onPostDeactivate();
|
|
1229
1144
|
}
|
|
1230
1145
|
});
|
|
1231
1146
|
};
|
|
1232
|
-
|
|
1233
1147
|
if (returnFocus && checkCanReturnFocus) {
|
|
1234
1148
|
checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
|
|
1235
1149
|
return this;
|
|
1236
1150
|
}
|
|
1237
|
-
|
|
1238
1151
|
finishDeactivation();
|
|
1239
1152
|
return this;
|
|
1240
1153
|
},
|
|
@@ -1242,7 +1155,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1242
1155
|
if (state.paused || !state.active) {
|
|
1243
1156
|
return this;
|
|
1244
1157
|
}
|
|
1245
|
-
|
|
1246
1158
|
state.paused = true;
|
|
1247
1159
|
removeListeners();
|
|
1248
1160
|
return this;
|
|
@@ -1251,7 +1163,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1251
1163
|
if (!state.paused || !state.active) {
|
|
1252
1164
|
return this;
|
|
1253
1165
|
}
|
|
1254
|
-
|
|
1255
1166
|
state.paused = false;
|
|
1256
1167
|
updateTabbableNodes();
|
|
1257
1168
|
addListeners();
|
|
@@ -1262,15 +1173,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1262
1173
|
state.containers = elementsAsArray.map(function (element) {
|
|
1263
1174
|
return typeof element === 'string' ? doc.querySelector(element) : element;
|
|
1264
1175
|
});
|
|
1265
|
-
|
|
1266
1176
|
if (state.active) {
|
|
1267
1177
|
updateTabbableNodes();
|
|
1268
1178
|
}
|
|
1269
|
-
|
|
1270
1179
|
return this;
|
|
1271
1180
|
}
|
|
1272
|
-
};
|
|
1181
|
+
};
|
|
1273
1182
|
|
|
1183
|
+
// initialize container elements
|
|
1274
1184
|
trap.updateContainerElements(elements);
|
|
1275
1185
|
return trap;
|
|
1276
1186
|
};
|