@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
|
@@ -5032,10 +5032,10 @@ function ribbon() {
|
|
|
5032
5032
|
|
|
5033
5033
|
var prefix = "$";
|
|
5034
5034
|
|
|
5035
|
-
function Map() {}
|
|
5035
|
+
function Map$1() {}
|
|
5036
5036
|
|
|
5037
|
-
Map.prototype = map$1.prototype = {
|
|
5038
|
-
constructor: Map,
|
|
5037
|
+
Map$1.prototype = map$1.prototype = {
|
|
5038
|
+
constructor: Map$1,
|
|
5039
5039
|
has: function(key) {
|
|
5040
5040
|
return (prefix + key) in this;
|
|
5041
5041
|
},
|
|
@@ -5083,10 +5083,10 @@ Map.prototype = map$1.prototype = {
|
|
|
5083
5083
|
};
|
|
5084
5084
|
|
|
5085
5085
|
function map$1(object, f) {
|
|
5086
|
-
var map = new Map;
|
|
5086
|
+
var map = new Map$1;
|
|
5087
5087
|
|
|
5088
5088
|
// Copy constructor.
|
|
5089
|
-
if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });
|
|
5089
|
+
if (object instanceof Map$1) object.each(function(value, key) { map.set(key, value); });
|
|
5090
5090
|
|
|
5091
5091
|
// Index array by numeric index or specified key function.
|
|
5092
5092
|
else if (Array.isArray(object)) {
|
|
@@ -5176,12 +5176,12 @@ function setMap(map, key, value) {
|
|
|
5176
5176
|
map.set(key, value);
|
|
5177
5177
|
}
|
|
5178
5178
|
|
|
5179
|
-
function Set() {}
|
|
5179
|
+
function Set$1() {}
|
|
5180
5180
|
|
|
5181
5181
|
var proto = map$1.prototype;
|
|
5182
5182
|
|
|
5183
|
-
Set.prototype = set.prototype = {
|
|
5184
|
-
constructor: Set,
|
|
5183
|
+
Set$1.prototype = set.prototype = {
|
|
5184
|
+
constructor: Set$1,
|
|
5185
5185
|
has: proto.has,
|
|
5186
5186
|
add: function(value) {
|
|
5187
5187
|
value += "";
|
|
@@ -5197,10 +5197,10 @@ Set.prototype = set.prototype = {
|
|
|
5197
5197
|
};
|
|
5198
5198
|
|
|
5199
5199
|
function set(object, f) {
|
|
5200
|
-
var set = new Set;
|
|
5200
|
+
var set = new Set$1;
|
|
5201
5201
|
|
|
5202
5202
|
// Copy constructor.
|
|
5203
|
-
if (object instanceof Set) object.each(function(value) { set.add(value); });
|
|
5203
|
+
if (object instanceof Set$1) object.each(function(value) { set.add(value); });
|
|
5204
5204
|
|
|
5205
5205
|
// Otherwise, assume it’s an array.
|
|
5206
5206
|
else if (object) {
|
|
@@ -17155,46 +17155,945 @@ const d3 = /*#__PURE__*/Object.freeze({
|
|
|
17155
17155
|
const require$$0 = /*@__PURE__*/getAugmentedNamespace(d3);
|
|
17156
17156
|
|
|
17157
17157
|
var sszvis = createCommonjsModule(function (module, exports) {
|
|
17158
|
-
/*! sszvis v2.
|
|
17158
|
+
/*! sszvis v2.4.1, Copyright 2014-present Statistik Stadt Zürich */
|
|
17159
17159
|
(function (global, factory) {
|
|
17160
17160
|
factory(exports, require$$0) ;
|
|
17161
17161
|
}(commonjsGlobal, (function (exports, d3) {
|
|
17162
|
+
var d3__default = 'default' in d3 ? d3['default'] : d3;
|
|
17163
|
+
|
|
17164
|
+
function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(n){return !!n&&!!n[Q]}function r(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);return !t||t===Object.prototype}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:Z)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return n.slice();var t=nn(n);delete t[Q];for(var r=Z(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d(n,e){b(n)||t(n)||!r(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,t){return d(t,!0)}),!0));}function h(){n(2);}function b(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function y(t){var r=tn[t];return r||n(19,t),r}function m(n,t){tn[n]=t;}function _(){return U}function j(n,t){t&&(y("Patches"),n.u=[],n.s=[],n.v=t);}function g(n){O(n),n.p.forEach(S),n.p=null;}function O(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.g=!0;}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||y("ES5").S(e,t,o),o?(i[Q].P&&(g(e),n(4)),r(t)&&(t=M(e,t),e.l||x(e,t)),e.u&&y("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(n,t,r){if(b(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A(n,e,o,t,i,r)})),x(n,o,!1),r&&n.u&&y("Patches").R(e,r,n.u,n.s);}return e.o}function A(e,i,o,a,c,s){if(t(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!t(v))return;e.m=!1;}if(r(c)&&!b(c)){if(!e.h.N&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,t,r){void 0===r&&(r=!1),n.h.N&&n.m&&d(t,r);}function z(n,t){var r=n[Q];return (r?p(r):n)[t]}function I(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function E(n){n.P||(n.P=!0,n.l&&E(n.l));}function k(n){n.o||(n.o=l(n.t));}function R(n,t,r){var e=s(t)?y("MapSet").T(t,r):v(t)?y("MapSet").F(t,r):n.O?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=rn;r&&(i=[e],o=en);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):y("ES5").J(t,r);return (r?r.A:_()).p.push(e),e}function D(e){return t(e)||n(22,e),function n(t){if(!r(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!y("ES5").K(u)))return u.t;u.I=!0,e=N(t,c),u.I=!1;}else e=N(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f(e,t,n(r));})),3===c?new Set(e):e}(e)}function N(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function T(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q];return rn.get(t,n)},set:function(t){var r=this[Q];rn.set(r,n,t);}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q];if(!r.P)switch(r.i){case 5:a(r)&&E(r);break;case 4:o(r)&&E(r);}}}function o(n){for(var t=n.t,r=n.k,e=Z(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=t[o];if(void 0===a&&!u(t,o))return !0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return !0}}var v=!!t[Q];return e.length!==Z(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return !0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return !(!r||r.get)}var s={};m("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=nn(t);delete o[Q];for(var u=Z(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,r,o){o?t(r)&&r[Q].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(t){t!==Q&&(void 0!==e[t]||u(e,t)?f[t]||n(o[t]):(f[t]=!0,E(r)));})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,E(r));}));else if(5===c){if(a(r)&&(E(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,nn=Object.getOwnPropertyDescriptors||function(n){var t={};return Z(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},tn={},rn={get:function(n,t){if(t===Q)return n;var e=p(n);if(!u(e,t))return function(n,t,r){var e,i=I(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r(i)?i:i===z(n.t,t)?(k(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,t,r){var e=I(p(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(n.D[t]=!0,!n.P){if(c(r,z(p(n),t))&&(void 0!==r||u(n.t,t)))return !0;k(n),E(n);}return n.o[t]=r,!0},deleteProperty:function(n,t){return void 0!==z(n.t,t)||t in n.t?(n.D[t]=!1,k(n),E(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},en={};i(rn,(function(n,t){en[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),en.deleteProperty=function(t,r){return rn.deleteProperty.call(this,t[0],r)},en.set=function(t,r,e){return rn.set.call(this,t[0],r,e,t[0])};var on=function(){function e(n){this.O=B,this.N="production"!=="production","boolean"==typeof(null==n?void 0:n.useProxies)&&this.setUseProxies(n.useProxies),"boolean"==typeof(null==n?void 0:n.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this);}var i=e.prototype;return i.produce=function(t,e,i){if("function"==typeof t&&"function"!=typeof e){var o=e;e=t;var u=this;return function(n){var t=this;void 0===n&&(n=o);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return u.produce(n,(function(n){var r;return (r=e).call.apply(r,[t,n].concat(i))}))}}var a;if("function"!=typeof e&&n(6),void 0!==i&&"function"!=typeof i&&n(7),r(t)){var f=w(this),c=R(this,t,void 0),s=!0;try{a=e(c),s=!1;}finally{s?g(f):O(f);}return "undefined"!=typeof Promise&&a instanceof Promise?a.then((function(n){return j(f,i),P(n,f)}),(function(n){throw g(f),n})):(j(f,i),P(a,f))}if(!t||"object"!=typeof t){if((a=e(t))===H)return;return void 0===a&&(a=t),this.N&&d(a,!0),a}n(21,t);},i.produceWithPatches=function(n,t){var r,e,i=this;return "function"==typeof n?function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return i.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(e))}))}:[this.produce(n,t,(function(n,t){r=n,e=t;})),r,e]},i.createDraft=function(e){r(e)||n(8),t(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(t,r){var e=t&&t[Q];var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.N=n;},i.setUseProxies=function(t){t&&!B&&n(20),this.O=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=y("Patches").$;return t(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),un=new on;un.produceWithPatches.bind(un);var cn=un.setAutoFreeze.bind(un);un.setUseProxies.bind(un);un.applyPatches.bind(un);var pn=un.createDraft.bind(un),ln=un.finishDraft.bind(un);
|
|
17165
|
+
|
|
17162
17166
|
/**
|
|
17163
|
-
*
|
|
17164
|
-
* recreated when rendered again.
|
|
17165
|
-
*
|
|
17166
|
-
* @see https://github.com/mbostock/d3/wiki/Selections
|
|
17167
|
-
*
|
|
17168
|
-
* @param {String} key - the name of the group
|
|
17169
|
-
* @return {d3.selection}
|
|
17167
|
+
* @this {Promise}
|
|
17170
17168
|
*/
|
|
17169
|
+
function finallyConstructor(callback) {
|
|
17170
|
+
var constructor = this.constructor;
|
|
17171
|
+
return this.then(
|
|
17172
|
+
function(value) {
|
|
17173
|
+
// @ts-ignore
|
|
17174
|
+
return constructor.resolve(callback()).then(function() {
|
|
17175
|
+
return value;
|
|
17176
|
+
});
|
|
17177
|
+
},
|
|
17178
|
+
function(reason) {
|
|
17179
|
+
// @ts-ignore
|
|
17180
|
+
return constructor.resolve(callback()).then(function() {
|
|
17181
|
+
// @ts-ignore
|
|
17182
|
+
return constructor.reject(reason);
|
|
17183
|
+
});
|
|
17184
|
+
}
|
|
17185
|
+
);
|
|
17186
|
+
}
|
|
17171
17187
|
|
|
17172
|
-
|
|
17173
|
-
|
|
17174
|
-
|
|
17188
|
+
// Store setTimeout reference so promise-polyfill will be unaffected by
|
|
17189
|
+
// other code modifying setTimeout (like sinon.useFakeTimers())
|
|
17190
|
+
var setTimeoutFunc = setTimeout;
|
|
17191
|
+
|
|
17192
|
+
function isArray(x) {
|
|
17193
|
+
return Boolean(x && typeof x.length !== 'undefined');
|
|
17194
|
+
}
|
|
17195
|
+
|
|
17196
|
+
function noop() {}
|
|
17197
|
+
|
|
17198
|
+
// Polyfill for Function.prototype.bind
|
|
17199
|
+
function bind(fn, thisArg) {
|
|
17200
|
+
return function() {
|
|
17201
|
+
fn.apply(thisArg, arguments);
|
|
17202
|
+
};
|
|
17203
|
+
}
|
|
17204
|
+
|
|
17205
|
+
/**
|
|
17206
|
+
* @constructor
|
|
17207
|
+
* @param {Function} fn
|
|
17208
|
+
*/
|
|
17209
|
+
function Promise$1(fn) {
|
|
17210
|
+
if (!(this instanceof Promise$1))
|
|
17211
|
+
throw new TypeError('Promises must be constructed via new');
|
|
17212
|
+
if (typeof fn !== 'function') throw new TypeError('not a function');
|
|
17213
|
+
/** @type {!number} */
|
|
17214
|
+
this._state = 0;
|
|
17215
|
+
/** @type {!boolean} */
|
|
17216
|
+
this._handled = false;
|
|
17217
|
+
/** @type {Promise|undefined} */
|
|
17218
|
+
this._value = undefined;
|
|
17219
|
+
/** @type {!Array<!Function>} */
|
|
17220
|
+
this._deferreds = [];
|
|
17221
|
+
|
|
17222
|
+
doResolve(fn, this);
|
|
17223
|
+
}
|
|
17224
|
+
|
|
17225
|
+
function handle(self, deferred) {
|
|
17226
|
+
while (self._state === 3) {
|
|
17227
|
+
self = self._value;
|
|
17228
|
+
}
|
|
17229
|
+
if (self._state === 0) {
|
|
17230
|
+
self._deferreds.push(deferred);
|
|
17231
|
+
return;
|
|
17232
|
+
}
|
|
17233
|
+
self._handled = true;
|
|
17234
|
+
Promise$1._immediateFn(function() {
|
|
17235
|
+
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
17236
|
+
if (cb === null) {
|
|
17237
|
+
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
|
17238
|
+
return;
|
|
17239
|
+
}
|
|
17240
|
+
var ret;
|
|
17241
|
+
try {
|
|
17242
|
+
ret = cb(self._value);
|
|
17243
|
+
} catch (e) {
|
|
17244
|
+
reject(deferred.promise, e);
|
|
17245
|
+
return;
|
|
17246
|
+
}
|
|
17247
|
+
resolve(deferred.promise, ret);
|
|
17175
17248
|
});
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
|
|
17249
|
+
}
|
|
17250
|
+
|
|
17251
|
+
function resolve(self, newValue) {
|
|
17252
|
+
try {
|
|
17253
|
+
// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
|
|
17254
|
+
if (newValue === self)
|
|
17255
|
+
throw new TypeError('A promise cannot be resolved with itself.');
|
|
17256
|
+
if (
|
|
17257
|
+
newValue &&
|
|
17258
|
+
(typeof newValue === 'object' || typeof newValue === 'function')
|
|
17259
|
+
) {
|
|
17260
|
+
var then = newValue.then;
|
|
17261
|
+
if (newValue instanceof Promise$1) {
|
|
17262
|
+
self._state = 3;
|
|
17263
|
+
self._value = newValue;
|
|
17264
|
+
finale(self);
|
|
17265
|
+
return;
|
|
17266
|
+
} else if (typeof then === 'function') {
|
|
17267
|
+
doResolve(bind(then, newValue), self);
|
|
17268
|
+
return;
|
|
17269
|
+
}
|
|
17270
|
+
}
|
|
17271
|
+
self._state = 1;
|
|
17272
|
+
self._value = newValue;
|
|
17273
|
+
finale(self);
|
|
17274
|
+
} catch (e) {
|
|
17275
|
+
reject(self, e);
|
|
17276
|
+
}
|
|
17277
|
+
}
|
|
17278
|
+
|
|
17279
|
+
function reject(self, newValue) {
|
|
17280
|
+
self._state = 2;
|
|
17281
|
+
self._value = newValue;
|
|
17282
|
+
finale(self);
|
|
17283
|
+
}
|
|
17284
|
+
|
|
17285
|
+
function finale(self) {
|
|
17286
|
+
if (self._state === 2 && self._deferreds.length === 0) {
|
|
17287
|
+
Promise$1._immediateFn(function() {
|
|
17288
|
+
if (!self._handled) {
|
|
17289
|
+
Promise$1._unhandledRejectionFn(self._value);
|
|
17290
|
+
}
|
|
17291
|
+
});
|
|
17292
|
+
}
|
|
17293
|
+
|
|
17294
|
+
for (var i = 0, len = self._deferreds.length; i < len; i++) {
|
|
17295
|
+
handle(self, self._deferreds[i]);
|
|
17296
|
+
}
|
|
17297
|
+
self._deferreds = null;
|
|
17298
|
+
}
|
|
17179
17299
|
|
|
17180
17300
|
/**
|
|
17181
|
-
*
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17301
|
+
* @constructor
|
|
17302
|
+
*/
|
|
17303
|
+
function Handler(onFulfilled, onRejected, promise) {
|
|
17304
|
+
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
17305
|
+
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
17306
|
+
this.promise = promise;
|
|
17307
|
+
}
|
|
17308
|
+
|
|
17309
|
+
/**
|
|
17310
|
+
* Take a potentially misbehaving resolver function and make sure
|
|
17311
|
+
* onFulfilled and onRejected are only called once.
|
|
17185
17312
|
*
|
|
17186
|
-
*
|
|
17187
|
-
* @return {d3.selection}
|
|
17313
|
+
* Makes no guarantees about asynchrony.
|
|
17188
17314
|
*/
|
|
17315
|
+
function doResolve(fn, self) {
|
|
17316
|
+
var done = false;
|
|
17317
|
+
try {
|
|
17318
|
+
fn(
|
|
17319
|
+
function(value) {
|
|
17320
|
+
if (done) return;
|
|
17321
|
+
done = true;
|
|
17322
|
+
resolve(self, value);
|
|
17323
|
+
},
|
|
17324
|
+
function(reason) {
|
|
17325
|
+
if (done) return;
|
|
17326
|
+
done = true;
|
|
17327
|
+
reject(self, reason);
|
|
17328
|
+
}
|
|
17329
|
+
);
|
|
17330
|
+
} catch (ex) {
|
|
17331
|
+
if (done) return;
|
|
17332
|
+
done = true;
|
|
17333
|
+
reject(self, ex);
|
|
17334
|
+
}
|
|
17335
|
+
}
|
|
17189
17336
|
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17337
|
+
Promise$1.prototype['catch'] = function(onRejected) {
|
|
17338
|
+
return this.then(null, onRejected);
|
|
17339
|
+
};
|
|
17340
|
+
|
|
17341
|
+
Promise$1.prototype.then = function(onFulfilled, onRejected) {
|
|
17342
|
+
// @ts-ignore
|
|
17343
|
+
var prom = new this.constructor(noop);
|
|
17344
|
+
|
|
17345
|
+
handle(this, new Handler(onFulfilled, onRejected, prom));
|
|
17346
|
+
return prom;
|
|
17347
|
+
};
|
|
17348
|
+
|
|
17349
|
+
Promise$1.prototype['finally'] = finallyConstructor;
|
|
17350
|
+
|
|
17351
|
+
Promise$1.all = function(arr) {
|
|
17352
|
+
return new Promise$1(function(resolve, reject) {
|
|
17353
|
+
if (!isArray(arr)) {
|
|
17354
|
+
return reject(new TypeError('Promise.all accepts an array'));
|
|
17355
|
+
}
|
|
17356
|
+
|
|
17357
|
+
var args = Array.prototype.slice.call(arr);
|
|
17358
|
+
if (args.length === 0) return resolve([]);
|
|
17359
|
+
var remaining = args.length;
|
|
17360
|
+
|
|
17361
|
+
function res(i, val) {
|
|
17362
|
+
try {
|
|
17363
|
+
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
17364
|
+
var then = val.then;
|
|
17365
|
+
if (typeof then === 'function') {
|
|
17366
|
+
then.call(
|
|
17367
|
+
val,
|
|
17368
|
+
function(val) {
|
|
17369
|
+
res(i, val);
|
|
17370
|
+
},
|
|
17371
|
+
reject
|
|
17372
|
+
);
|
|
17373
|
+
return;
|
|
17374
|
+
}
|
|
17375
|
+
}
|
|
17376
|
+
args[i] = val;
|
|
17377
|
+
if (--remaining === 0) {
|
|
17378
|
+
resolve(args);
|
|
17379
|
+
}
|
|
17380
|
+
} catch (ex) {
|
|
17381
|
+
reject(ex);
|
|
17382
|
+
}
|
|
17383
|
+
}
|
|
17384
|
+
|
|
17385
|
+
for (var i = 0; i < args.length; i++) {
|
|
17386
|
+
res(i, args[i]);
|
|
17387
|
+
}
|
|
17388
|
+
});
|
|
17389
|
+
};
|
|
17390
|
+
|
|
17391
|
+
Promise$1.resolve = function(value) {
|
|
17392
|
+
if (value && typeof value === 'object' && value.constructor === Promise$1) {
|
|
17393
|
+
return value;
|
|
17394
|
+
}
|
|
17395
|
+
|
|
17396
|
+
return new Promise$1(function(resolve) {
|
|
17397
|
+
resolve(value);
|
|
17193
17398
|
});
|
|
17194
|
-
var newGroup = group.enter().append("g").attr("data-d3-selectgroup", key);
|
|
17195
|
-
return group.merge(newGroup);
|
|
17196
17399
|
};
|
|
17197
17400
|
|
|
17401
|
+
Promise$1.reject = function(value) {
|
|
17402
|
+
return new Promise$1(function(resolve, reject) {
|
|
17403
|
+
reject(value);
|
|
17404
|
+
});
|
|
17405
|
+
};
|
|
17406
|
+
|
|
17407
|
+
Promise$1.race = function(arr) {
|
|
17408
|
+
return new Promise$1(function(resolve, reject) {
|
|
17409
|
+
if (!isArray(arr)) {
|
|
17410
|
+
return reject(new TypeError('Promise.race accepts an array'));
|
|
17411
|
+
}
|
|
17412
|
+
|
|
17413
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
17414
|
+
Promise$1.resolve(arr[i]).then(resolve, reject);
|
|
17415
|
+
}
|
|
17416
|
+
});
|
|
17417
|
+
};
|
|
17418
|
+
|
|
17419
|
+
// Use polyfill for setImmediate for performance gains
|
|
17420
|
+
Promise$1._immediateFn =
|
|
17421
|
+
// @ts-ignore
|
|
17422
|
+
(typeof setImmediate === 'function' &&
|
|
17423
|
+
function(fn) {
|
|
17424
|
+
// @ts-ignore
|
|
17425
|
+
setImmediate(fn);
|
|
17426
|
+
}) ||
|
|
17427
|
+
function(fn) {
|
|
17428
|
+
setTimeoutFunc(fn, 0);
|
|
17429
|
+
};
|
|
17430
|
+
|
|
17431
|
+
Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) {
|
|
17432
|
+
if (typeof console !== 'undefined' && console) {
|
|
17433
|
+
console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
|
|
17434
|
+
}
|
|
17435
|
+
};
|
|
17436
|
+
|
|
17437
|
+
/** @suppress {undefinedVars} */
|
|
17438
|
+
var globalNS = (function() {
|
|
17439
|
+
// the only reliable means to get the global object is
|
|
17440
|
+
// `Function('return this')()`
|
|
17441
|
+
// However, this causes CSP violations in Chrome apps.
|
|
17442
|
+
if (typeof self !== 'undefined') {
|
|
17443
|
+
return self;
|
|
17444
|
+
}
|
|
17445
|
+
if (typeof window !== 'undefined') {
|
|
17446
|
+
return window;
|
|
17447
|
+
}
|
|
17448
|
+
if (typeof commonjsGlobal !== 'undefined') {
|
|
17449
|
+
return commonjsGlobal;
|
|
17450
|
+
}
|
|
17451
|
+
throw new Error('unable to locate global object');
|
|
17452
|
+
})();
|
|
17453
|
+
|
|
17454
|
+
if (!('Promise' in globalNS)) {
|
|
17455
|
+
globalNS['Promise'] = Promise$1;
|
|
17456
|
+
} else if (!globalNS.Promise.prototype['finally']) {
|
|
17457
|
+
globalNS.Promise.prototype['finally'] = finallyConstructor;
|
|
17458
|
+
}
|
|
17459
|
+
|
|
17460
|
+
var global$1 = (function(self) {
|
|
17461
|
+
return self
|
|
17462
|
+
// eslint-disable-next-line no-invalid-this
|
|
17463
|
+
})(typeof self !== 'undefined' ? self : window);
|
|
17464
|
+
var support = {
|
|
17465
|
+
searchParams: 'URLSearchParams' in global$1,
|
|
17466
|
+
iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
|
|
17467
|
+
blob:
|
|
17468
|
+
'FileReader' in global$1 &&
|
|
17469
|
+
'Blob' in global$1 &&
|
|
17470
|
+
(function() {
|
|
17471
|
+
try {
|
|
17472
|
+
new Blob();
|
|
17473
|
+
return true
|
|
17474
|
+
} catch (e) {
|
|
17475
|
+
return false
|
|
17476
|
+
}
|
|
17477
|
+
})(),
|
|
17478
|
+
formData: 'FormData' in global$1,
|
|
17479
|
+
arrayBuffer: 'ArrayBuffer' in global$1
|
|
17480
|
+
};
|
|
17481
|
+
|
|
17482
|
+
function isDataView(obj) {
|
|
17483
|
+
return obj && DataView.prototype.isPrototypeOf(obj)
|
|
17484
|
+
}
|
|
17485
|
+
|
|
17486
|
+
if (support.arrayBuffer) {
|
|
17487
|
+
var viewClasses = [
|
|
17488
|
+
'[object Int8Array]',
|
|
17489
|
+
'[object Uint8Array]',
|
|
17490
|
+
'[object Uint8ClampedArray]',
|
|
17491
|
+
'[object Int16Array]',
|
|
17492
|
+
'[object Uint16Array]',
|
|
17493
|
+
'[object Int32Array]',
|
|
17494
|
+
'[object Uint32Array]',
|
|
17495
|
+
'[object Float32Array]',
|
|
17496
|
+
'[object Float64Array]'
|
|
17497
|
+
];
|
|
17498
|
+
|
|
17499
|
+
var isArrayBufferView =
|
|
17500
|
+
ArrayBuffer.isView ||
|
|
17501
|
+
function(obj) {
|
|
17502
|
+
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
|
17503
|
+
};
|
|
17504
|
+
}
|
|
17505
|
+
|
|
17506
|
+
function normalizeName(name) {
|
|
17507
|
+
if (typeof name !== 'string') {
|
|
17508
|
+
name = String(name);
|
|
17509
|
+
}
|
|
17510
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
|
|
17511
|
+
throw new TypeError('Invalid character in header field name')
|
|
17512
|
+
}
|
|
17513
|
+
return name.toLowerCase()
|
|
17514
|
+
}
|
|
17515
|
+
|
|
17516
|
+
function normalizeValue(value) {
|
|
17517
|
+
if (typeof value !== 'string') {
|
|
17518
|
+
value = String(value);
|
|
17519
|
+
}
|
|
17520
|
+
return value
|
|
17521
|
+
}
|
|
17522
|
+
|
|
17523
|
+
// Build a destructive iterator for the value list
|
|
17524
|
+
function iteratorFor(items) {
|
|
17525
|
+
var iterator = {
|
|
17526
|
+
next: function() {
|
|
17527
|
+
var value = items.shift();
|
|
17528
|
+
return {done: value === undefined, value: value}
|
|
17529
|
+
}
|
|
17530
|
+
};
|
|
17531
|
+
|
|
17532
|
+
if (support.iterable) {
|
|
17533
|
+
iterator[Symbol.iterator] = function() {
|
|
17534
|
+
return iterator
|
|
17535
|
+
};
|
|
17536
|
+
}
|
|
17537
|
+
|
|
17538
|
+
return iterator
|
|
17539
|
+
}
|
|
17540
|
+
|
|
17541
|
+
function Headers(headers) {
|
|
17542
|
+
this.map = {};
|
|
17543
|
+
|
|
17544
|
+
if (headers instanceof Headers) {
|
|
17545
|
+
headers.forEach(function(value, name) {
|
|
17546
|
+
this.append(name, value);
|
|
17547
|
+
}, this);
|
|
17548
|
+
} else if (Array.isArray(headers)) {
|
|
17549
|
+
headers.forEach(function(header) {
|
|
17550
|
+
this.append(header[0], header[1]);
|
|
17551
|
+
}, this);
|
|
17552
|
+
} else if (headers) {
|
|
17553
|
+
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
|
17554
|
+
this.append(name, headers[name]);
|
|
17555
|
+
}, this);
|
|
17556
|
+
}
|
|
17557
|
+
}
|
|
17558
|
+
|
|
17559
|
+
Headers.prototype.append = function(name, value) {
|
|
17560
|
+
name = normalizeName(name);
|
|
17561
|
+
value = normalizeValue(value);
|
|
17562
|
+
var oldValue = this.map[name];
|
|
17563
|
+
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
17564
|
+
};
|
|
17565
|
+
|
|
17566
|
+
Headers.prototype['delete'] = function(name) {
|
|
17567
|
+
delete this.map[normalizeName(name)];
|
|
17568
|
+
};
|
|
17569
|
+
|
|
17570
|
+
Headers.prototype.get = function(name) {
|
|
17571
|
+
name = normalizeName(name);
|
|
17572
|
+
return this.has(name) ? this.map[name] : null
|
|
17573
|
+
};
|
|
17574
|
+
|
|
17575
|
+
Headers.prototype.has = function(name) {
|
|
17576
|
+
return this.map.hasOwnProperty(normalizeName(name))
|
|
17577
|
+
};
|
|
17578
|
+
|
|
17579
|
+
Headers.prototype.set = function(name, value) {
|
|
17580
|
+
this.map[normalizeName(name)] = normalizeValue(value);
|
|
17581
|
+
};
|
|
17582
|
+
|
|
17583
|
+
Headers.prototype.forEach = function(callback, thisArg) {
|
|
17584
|
+
for (var name in this.map) {
|
|
17585
|
+
if (this.map.hasOwnProperty(name)) {
|
|
17586
|
+
callback.call(thisArg, this.map[name], name, this);
|
|
17587
|
+
}
|
|
17588
|
+
}
|
|
17589
|
+
};
|
|
17590
|
+
|
|
17591
|
+
Headers.prototype.keys = function() {
|
|
17592
|
+
var items = [];
|
|
17593
|
+
this.forEach(function(value, name) {
|
|
17594
|
+
items.push(name);
|
|
17595
|
+
});
|
|
17596
|
+
return iteratorFor(items)
|
|
17597
|
+
};
|
|
17598
|
+
|
|
17599
|
+
Headers.prototype.values = function() {
|
|
17600
|
+
var items = [];
|
|
17601
|
+
this.forEach(function(value) {
|
|
17602
|
+
items.push(value);
|
|
17603
|
+
});
|
|
17604
|
+
return iteratorFor(items)
|
|
17605
|
+
};
|
|
17606
|
+
|
|
17607
|
+
Headers.prototype.entries = function() {
|
|
17608
|
+
var items = [];
|
|
17609
|
+
this.forEach(function(value, name) {
|
|
17610
|
+
items.push([name, value]);
|
|
17611
|
+
});
|
|
17612
|
+
return iteratorFor(items)
|
|
17613
|
+
};
|
|
17614
|
+
|
|
17615
|
+
if (support.iterable) {
|
|
17616
|
+
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
17617
|
+
}
|
|
17618
|
+
|
|
17619
|
+
function consumed(body) {
|
|
17620
|
+
if (body.bodyUsed) {
|
|
17621
|
+
return Promise.reject(new TypeError('Already read'))
|
|
17622
|
+
}
|
|
17623
|
+
body.bodyUsed = true;
|
|
17624
|
+
}
|
|
17625
|
+
|
|
17626
|
+
function fileReaderReady(reader) {
|
|
17627
|
+
return new Promise(function(resolve, reject) {
|
|
17628
|
+
reader.onload = function() {
|
|
17629
|
+
resolve(reader.result);
|
|
17630
|
+
};
|
|
17631
|
+
reader.onerror = function() {
|
|
17632
|
+
reject(reader.error);
|
|
17633
|
+
};
|
|
17634
|
+
})
|
|
17635
|
+
}
|
|
17636
|
+
|
|
17637
|
+
function readBlobAsArrayBuffer(blob) {
|
|
17638
|
+
var reader = new FileReader();
|
|
17639
|
+
var promise = fileReaderReady(reader);
|
|
17640
|
+
reader.readAsArrayBuffer(blob);
|
|
17641
|
+
return promise
|
|
17642
|
+
}
|
|
17643
|
+
|
|
17644
|
+
function readBlobAsText(blob) {
|
|
17645
|
+
var reader = new FileReader();
|
|
17646
|
+
var promise = fileReaderReady(reader);
|
|
17647
|
+
reader.readAsText(blob);
|
|
17648
|
+
return promise
|
|
17649
|
+
}
|
|
17650
|
+
|
|
17651
|
+
function readArrayBufferAsText(buf) {
|
|
17652
|
+
var view = new Uint8Array(buf);
|
|
17653
|
+
var chars = new Array(view.length);
|
|
17654
|
+
|
|
17655
|
+
for (var i = 0; i < view.length; i++) {
|
|
17656
|
+
chars[i] = String.fromCharCode(view[i]);
|
|
17657
|
+
}
|
|
17658
|
+
return chars.join('')
|
|
17659
|
+
}
|
|
17660
|
+
|
|
17661
|
+
function bufferClone(buf) {
|
|
17662
|
+
if (buf.slice) {
|
|
17663
|
+
return buf.slice(0)
|
|
17664
|
+
} else {
|
|
17665
|
+
var view = new Uint8Array(buf.byteLength);
|
|
17666
|
+
view.set(new Uint8Array(buf));
|
|
17667
|
+
return view.buffer
|
|
17668
|
+
}
|
|
17669
|
+
}
|
|
17670
|
+
|
|
17671
|
+
function Body() {
|
|
17672
|
+
this.bodyUsed = false;
|
|
17673
|
+
|
|
17674
|
+
this._initBody = function(body) {
|
|
17675
|
+
/*
|
|
17676
|
+
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
17677
|
+
provide useful test harness features such as flush. However, on
|
|
17678
|
+
ES5 browsers without fetch or Proxy support pollyfills must be used;
|
|
17679
|
+
the proxy-pollyfill is unable to proxy an attribute unless it exists
|
|
17680
|
+
on the object before the Proxy is created. This change ensures
|
|
17681
|
+
Response.bodyUsed exists on the instance, while maintaining the
|
|
17682
|
+
semantic of setting Request.bodyUsed in the constructor before
|
|
17683
|
+
_initBody is called.
|
|
17684
|
+
*/
|
|
17685
|
+
this.bodyUsed = this.bodyUsed;
|
|
17686
|
+
this._bodyInit = body;
|
|
17687
|
+
if (!body) {
|
|
17688
|
+
this._bodyText = '';
|
|
17689
|
+
} else if (typeof body === 'string') {
|
|
17690
|
+
this._bodyText = body;
|
|
17691
|
+
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
17692
|
+
this._bodyBlob = body;
|
|
17693
|
+
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
17694
|
+
this._bodyFormData = body;
|
|
17695
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
17696
|
+
this._bodyText = body.toString();
|
|
17697
|
+
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
17698
|
+
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
17699
|
+
// IE 10-11 can't handle a DataView body.
|
|
17700
|
+
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
17701
|
+
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
17702
|
+
this._bodyArrayBuffer = bufferClone(body);
|
|
17703
|
+
} else {
|
|
17704
|
+
this._bodyText = body = Object.prototype.toString.call(body);
|
|
17705
|
+
}
|
|
17706
|
+
|
|
17707
|
+
if (!this.headers.get('content-type')) {
|
|
17708
|
+
if (typeof body === 'string') {
|
|
17709
|
+
this.headers.set('content-type', 'text/plain;charset=UTF-8');
|
|
17710
|
+
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
17711
|
+
this.headers.set('content-type', this._bodyBlob.type);
|
|
17712
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
17713
|
+
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
17714
|
+
}
|
|
17715
|
+
}
|
|
17716
|
+
};
|
|
17717
|
+
|
|
17718
|
+
if (support.blob) {
|
|
17719
|
+
this.blob = function() {
|
|
17720
|
+
var rejected = consumed(this);
|
|
17721
|
+
if (rejected) {
|
|
17722
|
+
return rejected
|
|
17723
|
+
}
|
|
17724
|
+
|
|
17725
|
+
if (this._bodyBlob) {
|
|
17726
|
+
return Promise.resolve(this._bodyBlob)
|
|
17727
|
+
} else if (this._bodyArrayBuffer) {
|
|
17728
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
|
17729
|
+
} else if (this._bodyFormData) {
|
|
17730
|
+
throw new Error('could not read FormData body as blob')
|
|
17731
|
+
} else {
|
|
17732
|
+
return Promise.resolve(new Blob([this._bodyText]))
|
|
17733
|
+
}
|
|
17734
|
+
};
|
|
17735
|
+
|
|
17736
|
+
this.arrayBuffer = function() {
|
|
17737
|
+
if (this._bodyArrayBuffer) {
|
|
17738
|
+
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
|
17739
|
+
} else {
|
|
17740
|
+
return this.blob().then(readBlobAsArrayBuffer)
|
|
17741
|
+
}
|
|
17742
|
+
};
|
|
17743
|
+
}
|
|
17744
|
+
|
|
17745
|
+
this.text = function() {
|
|
17746
|
+
var rejected = consumed(this);
|
|
17747
|
+
if (rejected) {
|
|
17748
|
+
return rejected
|
|
17749
|
+
}
|
|
17750
|
+
|
|
17751
|
+
if (this._bodyBlob) {
|
|
17752
|
+
return readBlobAsText(this._bodyBlob)
|
|
17753
|
+
} else if (this._bodyArrayBuffer) {
|
|
17754
|
+
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
|
17755
|
+
} else if (this._bodyFormData) {
|
|
17756
|
+
throw new Error('could not read FormData body as text')
|
|
17757
|
+
} else {
|
|
17758
|
+
return Promise.resolve(this._bodyText)
|
|
17759
|
+
}
|
|
17760
|
+
};
|
|
17761
|
+
|
|
17762
|
+
if (support.formData) {
|
|
17763
|
+
this.formData = function() {
|
|
17764
|
+
return this.text().then(decode)
|
|
17765
|
+
};
|
|
17766
|
+
}
|
|
17767
|
+
|
|
17768
|
+
this.json = function() {
|
|
17769
|
+
return this.text().then(JSON.parse)
|
|
17770
|
+
};
|
|
17771
|
+
|
|
17772
|
+
return this
|
|
17773
|
+
}
|
|
17774
|
+
|
|
17775
|
+
// HTTP methods whose capitalization should be normalized
|
|
17776
|
+
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
|
17777
|
+
|
|
17778
|
+
function normalizeMethod(method) {
|
|
17779
|
+
var upcased = method.toUpperCase();
|
|
17780
|
+
return methods.indexOf(upcased) > -1 ? upcased : method
|
|
17781
|
+
}
|
|
17782
|
+
|
|
17783
|
+
function Request(input, options) {
|
|
17784
|
+
options = options || {};
|
|
17785
|
+
var body = options.body;
|
|
17786
|
+
|
|
17787
|
+
if (input instanceof Request) {
|
|
17788
|
+
if (input.bodyUsed) {
|
|
17789
|
+
throw new TypeError('Already read')
|
|
17790
|
+
}
|
|
17791
|
+
this.url = input.url;
|
|
17792
|
+
this.credentials = input.credentials;
|
|
17793
|
+
if (!options.headers) {
|
|
17794
|
+
this.headers = new Headers(input.headers);
|
|
17795
|
+
}
|
|
17796
|
+
this.method = input.method;
|
|
17797
|
+
this.mode = input.mode;
|
|
17798
|
+
this.signal = input.signal;
|
|
17799
|
+
if (!body && input._bodyInit != null) {
|
|
17800
|
+
body = input._bodyInit;
|
|
17801
|
+
input.bodyUsed = true;
|
|
17802
|
+
}
|
|
17803
|
+
} else {
|
|
17804
|
+
this.url = String(input);
|
|
17805
|
+
}
|
|
17806
|
+
|
|
17807
|
+
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
17808
|
+
if (options.headers || !this.headers) {
|
|
17809
|
+
this.headers = new Headers(options.headers);
|
|
17810
|
+
}
|
|
17811
|
+
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
17812
|
+
this.mode = options.mode || this.mode || null;
|
|
17813
|
+
this.signal = options.signal || this.signal;
|
|
17814
|
+
this.referrer = null;
|
|
17815
|
+
|
|
17816
|
+
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
|
17817
|
+
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
17818
|
+
}
|
|
17819
|
+
this._initBody(body);
|
|
17820
|
+
|
|
17821
|
+
if (this.method === 'GET' || this.method === 'HEAD') {
|
|
17822
|
+
if (options.cache === 'no-store' || options.cache === 'no-cache') {
|
|
17823
|
+
// Search for a '_' parameter in the query string
|
|
17824
|
+
var reParamSearch = /([?&])_=[^&]*/;
|
|
17825
|
+
if (reParamSearch.test(this.url)) {
|
|
17826
|
+
// If it already exists then set the value with the current time
|
|
17827
|
+
this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());
|
|
17828
|
+
} else {
|
|
17829
|
+
// Otherwise add a new '_' parameter to the end with the current time
|
|
17830
|
+
var reQueryString = /\?/;
|
|
17831
|
+
this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
|
|
17832
|
+
}
|
|
17833
|
+
}
|
|
17834
|
+
}
|
|
17835
|
+
}
|
|
17836
|
+
|
|
17837
|
+
Request.prototype.clone = function() {
|
|
17838
|
+
return new Request(this, {body: this._bodyInit})
|
|
17839
|
+
};
|
|
17840
|
+
|
|
17841
|
+
function decode(body) {
|
|
17842
|
+
var form = new FormData();
|
|
17843
|
+
body
|
|
17844
|
+
.trim()
|
|
17845
|
+
.split('&')
|
|
17846
|
+
.forEach(function(bytes) {
|
|
17847
|
+
if (bytes) {
|
|
17848
|
+
var split = bytes.split('=');
|
|
17849
|
+
var name = split.shift().replace(/\+/g, ' ');
|
|
17850
|
+
var value = split.join('=').replace(/\+/g, ' ');
|
|
17851
|
+
form.append(decodeURIComponent(name), decodeURIComponent(value));
|
|
17852
|
+
}
|
|
17853
|
+
});
|
|
17854
|
+
return form
|
|
17855
|
+
}
|
|
17856
|
+
|
|
17857
|
+
function parseHeaders(rawHeaders) {
|
|
17858
|
+
var headers = new Headers();
|
|
17859
|
+
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
17860
|
+
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
17861
|
+
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
17862
|
+
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
17863
|
+
var parts = line.split(':');
|
|
17864
|
+
var key = parts.shift().trim();
|
|
17865
|
+
if (key) {
|
|
17866
|
+
var value = parts.join(':').trim();
|
|
17867
|
+
headers.append(key, value);
|
|
17868
|
+
}
|
|
17869
|
+
});
|
|
17870
|
+
return headers
|
|
17871
|
+
}
|
|
17872
|
+
|
|
17873
|
+
Body.call(Request.prototype);
|
|
17874
|
+
|
|
17875
|
+
function Response(bodyInit, options) {
|
|
17876
|
+
if (!options) {
|
|
17877
|
+
options = {};
|
|
17878
|
+
}
|
|
17879
|
+
|
|
17880
|
+
this.type = 'default';
|
|
17881
|
+
this.status = options.status === undefined ? 200 : options.status;
|
|
17882
|
+
this.ok = this.status >= 200 && this.status < 300;
|
|
17883
|
+
this.statusText = 'statusText' in options ? options.statusText : '';
|
|
17884
|
+
this.headers = new Headers(options.headers);
|
|
17885
|
+
this.url = options.url || '';
|
|
17886
|
+
this._initBody(bodyInit);
|
|
17887
|
+
}
|
|
17888
|
+
|
|
17889
|
+
Body.call(Response.prototype);
|
|
17890
|
+
|
|
17891
|
+
Response.prototype.clone = function() {
|
|
17892
|
+
return new Response(this._bodyInit, {
|
|
17893
|
+
status: this.status,
|
|
17894
|
+
statusText: this.statusText,
|
|
17895
|
+
headers: new Headers(this.headers),
|
|
17896
|
+
url: this.url
|
|
17897
|
+
})
|
|
17898
|
+
};
|
|
17899
|
+
|
|
17900
|
+
Response.error = function() {
|
|
17901
|
+
var response = new Response(null, {status: 0, statusText: ''});
|
|
17902
|
+
response.type = 'error';
|
|
17903
|
+
return response
|
|
17904
|
+
};
|
|
17905
|
+
|
|
17906
|
+
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
17907
|
+
|
|
17908
|
+
Response.redirect = function(url, status) {
|
|
17909
|
+
if (redirectStatuses.indexOf(status) === -1) {
|
|
17910
|
+
throw new RangeError('Invalid status code')
|
|
17911
|
+
}
|
|
17912
|
+
|
|
17913
|
+
return new Response(null, {status: status, headers: {location: url}})
|
|
17914
|
+
};
|
|
17915
|
+
|
|
17916
|
+
var DOMException = global$1.DOMException;
|
|
17917
|
+
|
|
17918
|
+
if (typeof DOMException !== 'function') {
|
|
17919
|
+
DOMException = function(message, name) {
|
|
17920
|
+
this.message = message;
|
|
17921
|
+
this.name = name;
|
|
17922
|
+
var error = Error(message);
|
|
17923
|
+
this.stack = error.stack;
|
|
17924
|
+
};
|
|
17925
|
+
DOMException.prototype = Object.create(Error.prototype);
|
|
17926
|
+
DOMException.prototype.constructor = DOMException;
|
|
17927
|
+
}
|
|
17928
|
+
|
|
17929
|
+
function fetch(input, init) {
|
|
17930
|
+
return new Promise(function(resolve, reject) {
|
|
17931
|
+
var request = new Request(input, init);
|
|
17932
|
+
|
|
17933
|
+
if (request.signal && request.signal.aborted) {
|
|
17934
|
+
return reject(new DOMException('Aborted', 'AbortError'))
|
|
17935
|
+
}
|
|
17936
|
+
|
|
17937
|
+
var xhr = new XMLHttpRequest();
|
|
17938
|
+
|
|
17939
|
+
function abortXhr() {
|
|
17940
|
+
xhr.abort();
|
|
17941
|
+
}
|
|
17942
|
+
|
|
17943
|
+
xhr.onload = function() {
|
|
17944
|
+
var options = {
|
|
17945
|
+
status: xhr.status,
|
|
17946
|
+
statusText: xhr.statusText,
|
|
17947
|
+
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
17948
|
+
};
|
|
17949
|
+
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
17950
|
+
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
17951
|
+
setTimeout(function() {
|
|
17952
|
+
resolve(new Response(body, options));
|
|
17953
|
+
}, 0);
|
|
17954
|
+
};
|
|
17955
|
+
|
|
17956
|
+
xhr.onerror = function() {
|
|
17957
|
+
setTimeout(function() {
|
|
17958
|
+
reject(new TypeError('Network request failed'));
|
|
17959
|
+
}, 0);
|
|
17960
|
+
};
|
|
17961
|
+
|
|
17962
|
+
xhr.ontimeout = function() {
|
|
17963
|
+
setTimeout(function() {
|
|
17964
|
+
reject(new TypeError('Network request failed'));
|
|
17965
|
+
}, 0);
|
|
17966
|
+
};
|
|
17967
|
+
|
|
17968
|
+
xhr.onabort = function() {
|
|
17969
|
+
setTimeout(function() {
|
|
17970
|
+
reject(new DOMException('Aborted', 'AbortError'));
|
|
17971
|
+
}, 0);
|
|
17972
|
+
};
|
|
17973
|
+
|
|
17974
|
+
function fixUrl(url) {
|
|
17975
|
+
try {
|
|
17976
|
+
return url === '' && global$1.location.href ? global$1.location.href : url
|
|
17977
|
+
} catch (e) {
|
|
17978
|
+
return url
|
|
17979
|
+
}
|
|
17980
|
+
}
|
|
17981
|
+
|
|
17982
|
+
xhr.open(request.method, fixUrl(request.url), true);
|
|
17983
|
+
|
|
17984
|
+
if (request.credentials === 'include') {
|
|
17985
|
+
xhr.withCredentials = true;
|
|
17986
|
+
} else if (request.credentials === 'omit') {
|
|
17987
|
+
xhr.withCredentials = false;
|
|
17988
|
+
}
|
|
17989
|
+
|
|
17990
|
+
if ('responseType' in xhr) {
|
|
17991
|
+
if (support.blob) {
|
|
17992
|
+
xhr.responseType = 'blob';
|
|
17993
|
+
} else if (
|
|
17994
|
+
support.arrayBuffer &&
|
|
17995
|
+
request.headers.get('Content-Type') &&
|
|
17996
|
+
request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
|
|
17997
|
+
) {
|
|
17998
|
+
xhr.responseType = 'arraybuffer';
|
|
17999
|
+
}
|
|
18000
|
+
}
|
|
18001
|
+
|
|
18002
|
+
request.headers.forEach(function(value, name) {
|
|
18003
|
+
xhr.setRequestHeader(name, value);
|
|
18004
|
+
});
|
|
18005
|
+
|
|
18006
|
+
if (request.signal) {
|
|
18007
|
+
request.signal.addEventListener('abort', abortXhr);
|
|
18008
|
+
|
|
18009
|
+
xhr.onreadystatechange = function() {
|
|
18010
|
+
// DONE (success or failure)
|
|
18011
|
+
if (xhr.readyState === 4) {
|
|
18012
|
+
request.signal.removeEventListener('abort', abortXhr);
|
|
18013
|
+
}
|
|
18014
|
+
};
|
|
18015
|
+
}
|
|
18016
|
+
|
|
18017
|
+
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
|
|
18018
|
+
})
|
|
18019
|
+
}
|
|
18020
|
+
|
|
18021
|
+
fetch.polyfill = true;
|
|
18022
|
+
|
|
18023
|
+
if (!global$1.fetch) {
|
|
18024
|
+
global$1.fetch = fetch;
|
|
18025
|
+
global$1.Headers = Headers;
|
|
18026
|
+
global$1.Request = Request;
|
|
18027
|
+
global$1.Response = Response;
|
|
18028
|
+
}
|
|
18029
|
+
|
|
18030
|
+
/**
|
|
18031
|
+
* d3-request shim
|
|
18032
|
+
*
|
|
18033
|
+
* This module shims [d3-request](https://github.com/d3/d3-request) from d3v4 using
|
|
18034
|
+
* the new [d3-fetch](https://github.com/d3/d3-fetch) from d3v5. This makes it
|
|
18035
|
+
* possible to use d3v4 code with d3v5 for the use cases in SSZVIS, but not when
|
|
18036
|
+
* using more advanced functionality of d3-request (e.g. setting headers).
|
|
18037
|
+
*
|
|
18038
|
+
* Example from d3v4 that works thanks to this shim:
|
|
18039
|
+
*
|
|
18040
|
+
* d3.csv("http://example.com")
|
|
18041
|
+
* .row(function(x) {
|
|
18042
|
+
* return {
|
|
18043
|
+
* year: parseInt(x.Jahr, 10)
|
|
18044
|
+
* }
|
|
18045
|
+
* })
|
|
18046
|
+
* .get(function(error, data) {
|
|
18047
|
+
* if (error) {
|
|
18048
|
+
* sszvis.loadError(error);
|
|
18049
|
+
* return;
|
|
18050
|
+
* }
|
|
18051
|
+
* actions.prepareState(data);
|
|
18052
|
+
* })
|
|
18053
|
+
*
|
|
18054
|
+
* With d3v5 this can now be written like:
|
|
18055
|
+
*
|
|
18056
|
+
* d3.csv("http://example.com", function(x) { return x })
|
|
18057
|
+
* .then(actions.prepareState)
|
|
18058
|
+
* .catch(sszvis.loadError)
|
|
18059
|
+
*
|
|
18060
|
+
* Supported d3 versions:
|
|
18061
|
+
* - d3 5.0: Fully supported
|
|
18062
|
+
* - d3 4.0: Partially supported (only "get" and "row" methods have been implemented)
|
|
18063
|
+
*/
|
|
18064
|
+
d3__default.csv = mkShim(d3__default.csv);
|
|
18065
|
+
d3__default.json = mkShim(d3__default.json); // -----------------------------------------------------------------------------
|
|
18066
|
+
|
|
18067
|
+
function mkShim(request) {
|
|
18068
|
+
function mkGet() {
|
|
18069
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18070
|
+
args[_key] = arguments[_key];
|
|
18071
|
+
}
|
|
18072
|
+
|
|
18073
|
+
return function (cb) {
|
|
18074
|
+
request.apply(void 0, args).then(function (data) {
|
|
18075
|
+
cb(undefined, data);
|
|
18076
|
+
}).catch(cb);
|
|
18077
|
+
};
|
|
18078
|
+
}
|
|
18079
|
+
|
|
18080
|
+
return function (url, parseNew) {
|
|
18081
|
+
return {
|
|
18082
|
+
// This is the "new" d3-fetch way of loading data that uses a Promise
|
|
18083
|
+
then: function then(cb) {
|
|
18084
|
+
return request(url, parseNew).then(cb);
|
|
18085
|
+
},
|
|
18086
|
+
// This is the "old" d3-request way of loading data using an XMLHttpRequest
|
|
18087
|
+
get: mkGet(url),
|
|
18088
|
+
row: function row(parseRow) {
|
|
18089
|
+
return {
|
|
18090
|
+
get: mkGet(url, parseRow)
|
|
18091
|
+
};
|
|
18092
|
+
}
|
|
18093
|
+
};
|
|
18094
|
+
};
|
|
18095
|
+
}
|
|
18096
|
+
|
|
17198
18097
|
/* eslint-disable */
|
|
17199
18098
|
|
|
17200
18099
|
/**
|
|
@@ -17297,15 +18196,62 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
17297
18196
|
}
|
|
17298
18197
|
}); // The innerSVG DOM property for SVGElement.
|
|
17299
18198
|
|
|
17300
|
-
Object.defineProperty(SVGElement.prototype, "innerSVG", {
|
|
17301
|
-
get: function get() {
|
|
17302
|
-
return this.innerHTML;
|
|
17303
|
-
},
|
|
17304
|
-
set: function set(markupText) {
|
|
17305
|
-
this.innerHTML = markupText;
|
|
17306
|
-
}
|
|
18199
|
+
Object.defineProperty(SVGElement.prototype, "innerSVG", {
|
|
18200
|
+
get: function get() {
|
|
18201
|
+
return this.innerHTML;
|
|
18202
|
+
},
|
|
18203
|
+
set: function set(markupText) {
|
|
18204
|
+
this.innerHTML = markupText;
|
|
18205
|
+
}
|
|
18206
|
+
});
|
|
18207
|
+
})();
|
|
18208
|
+
|
|
18209
|
+
// This is the more strict version of `isNaN`. We need to polyfill it for Internet Explorer,
|
|
18210
|
+
// all other browsers support this.
|
|
18211
|
+
// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
18212
|
+
Number.isNaN = Number.isNaN || function isNaN(input) {
|
|
18213
|
+
return typeof input === "number" && input !== input;
|
|
18214
|
+
};
|
|
18215
|
+
|
|
18216
|
+
T(); // d3 mutates state in many places, which is why we have to turn this off.
|
|
18217
|
+
|
|
18218
|
+
cn(false);
|
|
18219
|
+
|
|
18220
|
+
/**
|
|
18221
|
+
* d3.selection plugin to simplify creating idempotent divs that are not
|
|
18222
|
+
* recreated when rendered again.
|
|
18223
|
+
*
|
|
18224
|
+
* @see https://github.com/mbostock/d3/wiki/Selections
|
|
18225
|
+
*
|
|
18226
|
+
* @param {String} key - the name of the group
|
|
18227
|
+
* @return {d3.selection}
|
|
18228
|
+
*/
|
|
18229
|
+
|
|
18230
|
+
d3.selection.prototype.selectDiv = function (key) {
|
|
18231
|
+
var div = this.selectAll('[data-d3-selectdiv="' + key + '"]').data(function (d) {
|
|
18232
|
+
return [d];
|
|
18233
|
+
});
|
|
18234
|
+
var newDiv = div.enter().append("div").attr("data-d3-selectdiv", key).style("position", "absolute");
|
|
18235
|
+
return div.merge(newDiv);
|
|
18236
|
+
};
|
|
18237
|
+
|
|
18238
|
+
/**
|
|
18239
|
+
* d3.selection plugin to simplify creating idempotent groups that are not
|
|
18240
|
+
* recreated when rendered again.
|
|
18241
|
+
*
|
|
18242
|
+
* @see https://github.com/mbostock/d3/wiki/Selections
|
|
18243
|
+
*
|
|
18244
|
+
* @param {String} key The name of the group
|
|
18245
|
+
* @return {d3.selection}
|
|
18246
|
+
*/
|
|
18247
|
+
|
|
18248
|
+
d3.selection.prototype.selectGroup = function (key) {
|
|
18249
|
+
var group = this.selectAll('[data-d3-selectgroup="' + key + '"]').data(function (d) {
|
|
18250
|
+
return [d];
|
|
17307
18251
|
});
|
|
17308
|
-
|
|
18252
|
+
var newGroup = group.enter().append("g").attr("data-d3-selectgroup", key);
|
|
18253
|
+
return group.merge(newGroup);
|
|
18254
|
+
};
|
|
17309
18255
|
|
|
17310
18256
|
/**
|
|
17311
18257
|
* A collection of functional programming helper functions
|
|
@@ -17477,7 +18423,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
17477
18423
|
*/
|
|
17478
18424
|
|
|
17479
18425
|
var defined = function defined(val) {
|
|
17480
|
-
return typeof val !== "undefined" && val != null;
|
|
18426
|
+
return typeof val !== "undefined" && val != null && !Number.isNaN(val);
|
|
17481
18427
|
};
|
|
17482
18428
|
/**
|
|
17483
18429
|
* fn.derivedSet
|
|
@@ -17717,7 +18663,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
17717
18663
|
*/
|
|
17718
18664
|
|
|
17719
18665
|
var isNumber = function isNumber(val) {
|
|
17720
|
-
return Object.prototype.toString.call(val) === "[object Number]";
|
|
18666
|
+
return Object.prototype.toString.call(val) === "[object Number]" && !Number.isNaN(val);
|
|
17721
18667
|
};
|
|
17722
18668
|
/**
|
|
17723
18669
|
* fn.isObject
|
|
@@ -17993,10 +18939,22 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
17993
18939
|
};
|
|
17994
18940
|
}
|
|
17995
18941
|
|
|
17996
|
-
var
|
|
17997
|
-
var
|
|
17998
|
-
var
|
|
17999
|
-
var
|
|
18942
|
+
var darkBlue = "#3431DE";
|
|
18943
|
+
var mediumBlue = "#0A8DF6";
|
|
18944
|
+
var lightBlue = "#23C3F1";
|
|
18945
|
+
var darkRed = "#7B4FB7";
|
|
18946
|
+
var mediumRed = "#DB247D";
|
|
18947
|
+
var lightRed = "#FB737E";
|
|
18948
|
+
var darkGreen = "#007C78";
|
|
18949
|
+
var mediumGreen = "#1D942E";
|
|
18950
|
+
var lightGreen = "#99C32E";
|
|
18951
|
+
var darkBrown = "#9A5B01";
|
|
18952
|
+
var mediumBrown = "#FF720C";
|
|
18953
|
+
var lightBrown = "#FBB900";
|
|
18954
|
+
var scaleQual12 = qualColorScale([darkBlue, mediumBlue, lightBlue, darkRed, mediumRed, lightRed, darkGreen, mediumGreen, lightGreen, darkBrown, mediumBrown, lightBrown]);
|
|
18955
|
+
var scaleQual6 = qualColorScale([darkBlue, mediumRed, mediumGreen, lightBrown, lightBlue, mediumBrown]);
|
|
18956
|
+
var scaleQual6a = qualColorScale([darkBlue, mediumBlue, lightBlue, darkRed, mediumRed, lightRed]);
|
|
18957
|
+
var scaleQual6b = qualColorScale([darkGreen, mediumGreen, lightGreen, darkBrown, mediumBrown, lightBrown]);
|
|
18000
18958
|
|
|
18001
18959
|
function seqColorScale(colors) {
|
|
18002
18960
|
return function () {
|
|
@@ -18005,10 +18963,10 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
18005
18963
|
};
|
|
18006
18964
|
}
|
|
18007
18965
|
|
|
18008
|
-
var scaleSeqBlu = seqColorScale(["#
|
|
18009
|
-
var scaleSeqRed = seqColorScale(["#
|
|
18010
|
-
var scaleSeqGrn = seqColorScale(["#
|
|
18011
|
-
var scaleSeqBrn = seqColorScale(["#
|
|
18966
|
+
var scaleSeqBlu = seqColorScale(["#CADEFF", "#5B6EFF", "#211A8A"]);
|
|
18967
|
+
var scaleSeqRed = seqColorScale(["#FED2EE", "#ED408D", "#7D0044"]);
|
|
18968
|
+
var scaleSeqGrn = seqColorScale(["#CFEED8", "#34B446", "#0C4B1F"]);
|
|
18969
|
+
var scaleSeqBrn = seqColorScale(["#FCDDBB", "#EA5D00", "#611F00"]);
|
|
18012
18970
|
|
|
18013
18971
|
function divColorScale(colors) {
|
|
18014
18972
|
return function () {
|
|
@@ -18017,10 +18975,10 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
18017
18975
|
};
|
|
18018
18976
|
}
|
|
18019
18977
|
|
|
18020
|
-
var scaleDivVal = divColorScale(["#
|
|
18021
|
-
var scaleDivValGry = divColorScale(["#
|
|
18022
|
-
var scaleDivNtr = divColorScale(["#
|
|
18023
|
-
var scaleDivNtrGry = divColorScale(["#
|
|
18978
|
+
var scaleDivVal = divColorScale(["#782600", "#FFFFFF", "#2F2ABB"]);
|
|
18979
|
+
var scaleDivValGry = divColorScale(["#782600", "#F3F3F3", "#2F2ABB"]);
|
|
18980
|
+
var scaleDivNtr = divColorScale(["#A30059", "#FFFFFF", "#10652A"]);
|
|
18981
|
+
var scaleDivNtrGry = divColorScale(["#A30059", "#F3F3F3", "#10652A"]);
|
|
18024
18982
|
|
|
18025
18983
|
function greyColorScale(colors) {
|
|
18026
18984
|
return function () {
|
|
@@ -18869,7 +19827,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
18869
19827
|
* @return {sszvis.component}
|
|
18870
19828
|
*/
|
|
18871
19829
|
function rangeRuler () {
|
|
18872
|
-
return component().prop("x", functor).prop("y0", functor).prop("y1", functor).prop("top").prop("bottom").prop("label").label(functor("")).prop("total").prop("flip", functor).flip(false).render(function (data) {
|
|
19830
|
+
return component().prop("x", functor).prop("y0", functor).prop("y1", functor).prop("top").prop("bottom").prop("label").prop("removeStroke").label(functor("")).prop("total").prop("flip", functor).flip(false).render(function (data) {
|
|
18873
19831
|
var selection = d3.select(this);
|
|
18874
19832
|
var props = selection.props();
|
|
18875
19833
|
var crispX = compose(halfPixel, props.x);
|
|
@@ -18908,6 +19866,11 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
18908
19866
|
.style("text-anchor", function (d) {
|
|
18909
19867
|
return props.flip(d) ? "end" : "start";
|
|
18910
19868
|
}).text(compose(formatNumber, props.label));
|
|
19869
|
+
|
|
19870
|
+
if (!props.removeStroke) {
|
|
19871
|
+
marks.attr("stroke", "white").attr("stroke-width", 0.5).attr("stroke-opacity", 0.75);
|
|
19872
|
+
}
|
|
19873
|
+
|
|
18911
19874
|
var total = selection.selectAll(".sszvis-rangeRuler__total").data([last(data)]);
|
|
18912
19875
|
var newTotal = total.enter().append("text").classed("sszvis-rangeRuler__total", true);
|
|
18913
19876
|
total.exit().remove();
|
|
@@ -18918,6 +19881,10 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
18918
19881
|
}).attr("y", props.top - 10).style("text-anchor", function (d) {
|
|
18919
19882
|
return props.flip(d) ? "end" : "start";
|
|
18920
19883
|
}).text("Total " + formatNumber(props.total));
|
|
19884
|
+
|
|
19885
|
+
if (!props.removeStroke) {
|
|
19886
|
+
total.attr("stroke", "white").attr("stroke-width", 0.5).attr("stroke-opacity", 0.75);
|
|
19887
|
+
}
|
|
18921
19888
|
});
|
|
18922
19889
|
}
|
|
18923
19890
|
|
|
@@ -19253,128 +20220,366 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
19253
20220
|
*/
|
|
19254
20221
|
|
|
19255
20222
|
|
|
19256
|
-
function formatTable(rows) {
|
|
19257
|
-
var tableBody = rows.map(function (row) {
|
|
19258
|
-
return "<tr>" + row.map(function (cell) {
|
|
19259
|
-
return "<td>" + cell + "</td>";
|
|
19260
|
-
}).join("") + "</tr>";
|
|
19261
|
-
}).join("");
|
|
19262
|
-
return '<table class="sszvis-tooltip__body__table">' + tableBody + "</table>";
|
|
19263
|
-
}
|
|
20223
|
+
function formatTable(rows) {
|
|
20224
|
+
var tableBody = rows.map(function (row) {
|
|
20225
|
+
return "<tr>" + row.map(function (cell) {
|
|
20226
|
+
return "<td>" + cell + "</td>";
|
|
20227
|
+
}).join("") + "</tr>";
|
|
20228
|
+
}).join("");
|
|
20229
|
+
return '<table class="sszvis-tooltip__body__table">' + tableBody + "</table>";
|
|
20230
|
+
}
|
|
20231
|
+
/**
|
|
20232
|
+
* Tooltip background generator
|
|
20233
|
+
*
|
|
20234
|
+
* Generates a path description with a tip on the specified side.
|
|
20235
|
+
*
|
|
20236
|
+
* top
|
|
20237
|
+
* ________
|
|
20238
|
+
* left | | right
|
|
20239
|
+
* |___ ___|
|
|
20240
|
+
* \/
|
|
20241
|
+
* bottom
|
|
20242
|
+
*
|
|
20243
|
+
* @param {Vector} a Top-left corner of the tooltip rectangle (x, y)
|
|
20244
|
+
* @param {Vector} b Bottom-right corner of the tooltip rectangle (x, y)
|
|
20245
|
+
* @param {String} orientation The tip will point in this direction (top, right, bottom, left)
|
|
20246
|
+
*
|
|
20247
|
+
* @return {Path} SVG path description
|
|
20248
|
+
*/
|
|
20249
|
+
|
|
20250
|
+
|
|
20251
|
+
function tooltipBackgroundGenerator(a, b, orientation, radius) {
|
|
20252
|
+
switch (orientation) {
|
|
20253
|
+
case "top":
|
|
20254
|
+
a[1] = a[1] + TIP_SIZE;
|
|
20255
|
+
break;
|
|
20256
|
+
|
|
20257
|
+
case "bottom":
|
|
20258
|
+
b[1] = b[1] - TIP_SIZE;
|
|
20259
|
+
break;
|
|
20260
|
+
|
|
20261
|
+
case "left":
|
|
20262
|
+
a[0] = a[0] + TIP_SIZE;
|
|
20263
|
+
break;
|
|
20264
|
+
|
|
20265
|
+
case "right":
|
|
20266
|
+
b[0] = b[0] - TIP_SIZE;
|
|
20267
|
+
break;
|
|
20268
|
+
}
|
|
20269
|
+
|
|
20270
|
+
function x(d) {
|
|
20271
|
+
return d[0];
|
|
20272
|
+
}
|
|
20273
|
+
|
|
20274
|
+
function y(d) {
|
|
20275
|
+
return d[1];
|
|
20276
|
+
}
|
|
20277
|
+
|
|
20278
|
+
function side(cx, cy, x0, y0, x1, y1, showTip) {
|
|
20279
|
+
var mx = x0 + (x1 - x0) / 2;
|
|
20280
|
+
var my = y0 + (y1 - y0) / 2;
|
|
20281
|
+
var corner = ["Q", cx, cy, x0, y0];
|
|
20282
|
+
var tip = [];
|
|
20283
|
+
|
|
20284
|
+
if (showTip && y0 === y1) {
|
|
20285
|
+
if (x0 < x1) {
|
|
20286
|
+
// Top
|
|
20287
|
+
tip = ["L", mx - TIP_SIZE, my, "L", mx, my - TIP_SIZE, "L", mx + TIP_SIZE, my];
|
|
20288
|
+
} else {
|
|
20289
|
+
// Bottom
|
|
20290
|
+
tip = ["L", mx + TIP_SIZE, my, "L", mx, my + TIP_SIZE, "L", mx - TIP_SIZE, my];
|
|
20291
|
+
}
|
|
20292
|
+
} else if (showTip && x0 === x1) {
|
|
20293
|
+
if (y0 < y1) {
|
|
20294
|
+
// Right
|
|
20295
|
+
tip = ["L", mx, my - TIP_SIZE, "L", mx + TIP_SIZE, my, "L", mx, my + TIP_SIZE];
|
|
20296
|
+
} else {
|
|
20297
|
+
// Left
|
|
20298
|
+
tip = ["L", mx, my + TIP_SIZE, "L", mx - TIP_SIZE, my, "L", mx, my - TIP_SIZE];
|
|
20299
|
+
}
|
|
20300
|
+
}
|
|
20301
|
+
|
|
20302
|
+
var end = ["L", x1, y1];
|
|
20303
|
+
return [].concat(corner, tip, end);
|
|
20304
|
+
}
|
|
20305
|
+
|
|
20306
|
+
return [// Start
|
|
20307
|
+
["M", x(a), y(a) + radius], // Top side
|
|
20308
|
+
side(x(a), y(a), x(a) + radius, y(a), x(b) - radius, y(a), orientation === "top"), // Right side
|
|
20309
|
+
side(x(b), y(a), x(b), y(a) + radius, x(b), y(b) - radius, orientation === "right"), // Bottom side
|
|
20310
|
+
side(x(b), y(b), x(b) - radius, y(b), x(a) + radius, y(b), orientation === "bottom"), // Left side
|
|
20311
|
+
side(x(a), y(b), x(a), y(b) - radius, x(a), y(a) + radius, orientation === "left")].map(function (d) {
|
|
20312
|
+
return d.join(" ");
|
|
20313
|
+
}).join(" ");
|
|
20314
|
+
}
|
|
20315
|
+
/**
|
|
20316
|
+
* Detect whether the current browser supports SVG filters
|
|
20317
|
+
*/
|
|
20318
|
+
|
|
20319
|
+
|
|
20320
|
+
function supportsSVGFilters() {
|
|
20321
|
+
return window["SVGFEColorMatrixElement"] !== undefined && SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE == 2;
|
|
20322
|
+
}
|
|
20323
|
+
|
|
20324
|
+
/**
|
|
20325
|
+
* @function sszvis.tooltipFit
|
|
20326
|
+
*
|
|
20327
|
+
* This is a useful default function for making a tooltip fit within a horizontal space.
|
|
20328
|
+
* You provide a default orientation for the tooltip, but also provide the bounds of the
|
|
20329
|
+
* space within which the tooltip should stay. When the tooltip is too close to the left
|
|
20330
|
+
* or right edge of the bounds, it is oriented away from the edge. Otherwise the default
|
|
20331
|
+
* is used.
|
|
20332
|
+
*
|
|
20333
|
+
* @param {String} defaultValue The default value for the tooltip orientation
|
|
20334
|
+
* @param {Object} bounds The bounds object within which the tooltip should stay.
|
|
20335
|
+
*
|
|
20336
|
+
* @returns {Function} A function for calculating the orientation of the tooltips.
|
|
20337
|
+
*/
|
|
20338
|
+
function fitTooltip (defaultVal, bounds) {
|
|
20339
|
+
var lo = Math.min(bounds.innerWidth * 1 / 4, 100);
|
|
20340
|
+
var hi = Math.max(bounds.innerWidth * 3 / 4, bounds.innerWidth - 100);
|
|
20341
|
+
return function (d) {
|
|
20342
|
+
var x = d.x;
|
|
20343
|
+
return x > hi ? "right" : x < lo ? "left" : defaultVal;
|
|
20344
|
+
};
|
|
20345
|
+
}
|
|
20346
|
+
|
|
20347
|
+
/**
|
|
20348
|
+
* Fallback handling
|
|
20349
|
+
*
|
|
20350
|
+
* Defaults to rendering a fallback image with standard chart proportions.
|
|
20351
|
+
*
|
|
20352
|
+
* @example
|
|
20353
|
+
* if (sszvis.fallback.unsupported()) {
|
|
20354
|
+
* sszvis.fallback.render('#sszvis-chart', {src: '../fallback.png', height: 300});
|
|
20355
|
+
* return;
|
|
20356
|
+
* }
|
|
20357
|
+
*
|
|
20358
|
+
* @module sszvis/fallback
|
|
20359
|
+
*/
|
|
20360
|
+
var fallbackUnsupported = function fallbackUnsupported() {
|
|
20361
|
+
var supportsSVG = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect;
|
|
20362
|
+
return !supportsSVG;
|
|
20363
|
+
};
|
|
20364
|
+
var fallbackCanvasUnsupported = function fallbackCanvasUnsupported() {
|
|
20365
|
+
var supportsCanvas = !!document.createElement("canvas").getContext;
|
|
20366
|
+
return !supportsCanvas;
|
|
20367
|
+
};
|
|
20368
|
+
var fallbackRender = function fallbackRender(selector, options) {
|
|
20369
|
+
options || (options = {});
|
|
20370
|
+
options.src || (options.src = "fallback.png");
|
|
20371
|
+
var selection = isSelection(selector) ? selector : d3.select(selector);
|
|
20372
|
+
selection.append("img").attr("class", "sszvis-fallback-image").attr("src", options.src);
|
|
20373
|
+
};
|
|
20374
|
+
|
|
20375
|
+
var nanoThrottle = function (callback, ms, trailing) {
|
|
20376
|
+
var t = 0, call;
|
|
20377
|
+
arguments.length < 3 && (trailing = true);
|
|
20378
|
+
return function () {
|
|
20379
|
+
var args = arguments;
|
|
20380
|
+
var self = this;
|
|
20381
|
+
call = function () {
|
|
20382
|
+
callback.apply(self, args);
|
|
20383
|
+
t = new Date().getTime() + ms;
|
|
20384
|
+
call = null;
|
|
20385
|
+
trailing && setTimeout(function () {
|
|
20386
|
+
call && call();
|
|
20387
|
+
}, ms);
|
|
20388
|
+
};
|
|
20389
|
+
if (new Date().getTime() > t) call();
|
|
20390
|
+
}
|
|
20391
|
+
};
|
|
20392
|
+
|
|
20393
|
+
/**
|
|
20394
|
+
* Viewport Resize watcher
|
|
20395
|
+
*
|
|
20396
|
+
* The resize watcher in the sszvis.viewport module can be used for alerting user code to
|
|
20397
|
+
* changes in the browser window size. This includes window resizing on desktop computers
|
|
20398
|
+
* and browsers, but also orientation changes on mobile browsers. Functions which listen
|
|
20399
|
+
* to the 'resize' event of the sszvis.viewport module will be fired on window resize.
|
|
20400
|
+
* You can add a resize listener to your application very easily:
|
|
20401
|
+
*
|
|
20402
|
+
* sszvis.viewport.on('resize', listenerFunction);
|
|
20403
|
+
*
|
|
20404
|
+
* The listener function will be called once per resize event, but at a slight delay. This is because,
|
|
20405
|
+
* while a user is resizing their browser window, many resize events can fire very quickly. This component
|
|
20406
|
+
* automatically throttles the rate at which the listener function is called, since you probably don't need
|
|
20407
|
+
* to respond to every single resize event. This throttling provides for a smoother user experience as they
|
|
20408
|
+
* resize the browser, and increases performance across the board. The listener function will always be
|
|
20409
|
+
* called after one or more window resize events, it just won't be called as often as the window fires the
|
|
20410
|
+
* events.
|
|
20411
|
+
*
|
|
20412
|
+
* @module sszvis/viewport
|
|
20413
|
+
*
|
|
20414
|
+
* @function {string, function} on the .on() function is used to listen to the resize event itself.
|
|
20415
|
+
* There is only one event supported by this component at the moment, so
|
|
20416
|
+
* the first argument to .on must be 'resize' for it to have any effect.
|
|
20417
|
+
* Although this is somewhat redundant, it is done to keep this component's
|
|
20418
|
+
* API clear and in line with other components.
|
|
20419
|
+
*
|
|
20420
|
+
* @return {Object}
|
|
20421
|
+
*/
|
|
20422
|
+
// sszvis.viewport.on('resize', callback);
|
|
20423
|
+
// While still enabling the user to register multiple callbacks for the 'resize'
|
|
20424
|
+
// event. Multiple callbacks are a feature which simply returning a d3.dispatch('resize')
|
|
20425
|
+
// object would not allow.
|
|
20426
|
+
|
|
20427
|
+
var callbacks = {
|
|
20428
|
+
resize: []
|
|
20429
|
+
};
|
|
20430
|
+
|
|
20431
|
+
if (typeof window !== "undefined") {
|
|
20432
|
+
d3.select(window).on("resize", nanoThrottle(function () {
|
|
20433
|
+
trigger("resize");
|
|
20434
|
+
}, 500));
|
|
20435
|
+
}
|
|
20436
|
+
|
|
20437
|
+
var on$1 = function on(name, cb) {
|
|
20438
|
+
if (!callbacks[name]) {
|
|
20439
|
+
callbacks[name] = [];
|
|
20440
|
+
}
|
|
20441
|
+
|
|
20442
|
+
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
20443
|
+
return fn !== cb;
|
|
20444
|
+
}).concat(cb);
|
|
20445
|
+
return this;
|
|
20446
|
+
};
|
|
20447
|
+
|
|
20448
|
+
var off = function off(name, cb) {
|
|
20449
|
+
if (!callbacks[name]) {
|
|
20450
|
+
return this;
|
|
20451
|
+
}
|
|
20452
|
+
|
|
20453
|
+
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
20454
|
+
return fn !== cb;
|
|
20455
|
+
});
|
|
20456
|
+
return this;
|
|
20457
|
+
};
|
|
20458
|
+
|
|
20459
|
+
var trigger = function trigger(name) {
|
|
20460
|
+
var evtArgs = Array.prototype.slice.call(arguments, 1);
|
|
20461
|
+
|
|
20462
|
+
if (callbacks[name]) {
|
|
20463
|
+
callbacks[name].forEach(function (fn) {
|
|
20464
|
+
fn.apply(null, evtArgs);
|
|
20465
|
+
});
|
|
20466
|
+
}
|
|
20467
|
+
|
|
20468
|
+
return this;
|
|
20469
|
+
};
|
|
20470
|
+
|
|
20471
|
+
var viewport = {
|
|
20472
|
+
on: on$1,
|
|
20473
|
+
off: off,
|
|
20474
|
+
trigger: trigger
|
|
20475
|
+
};
|
|
20476
|
+
|
|
19264
20477
|
/**
|
|
19265
|
-
*
|
|
20478
|
+
* Application loop
|
|
19266
20479
|
*
|
|
19267
|
-
*
|
|
20480
|
+
* Creates a stateful app that can be interacted with through actions. By providing
|
|
20481
|
+
* a structured approach, this allows us to optimize the render loop and clarifies
|
|
20482
|
+
* the relationship between state and actions.
|
|
19268
20483
|
*
|
|
19269
|
-
*
|
|
19270
|
-
*
|
|
19271
|
-
* left | | right
|
|
19272
|
-
* |___ ___|
|
|
19273
|
-
* \/
|
|
19274
|
-
* bottom
|
|
20484
|
+
* Within an app, state can only be modified through actions. During the render phase,
|
|
20485
|
+
* state is immutable and an error will be thrown if it is modified accidentally.
|
|
19275
20486
|
*
|
|
19276
|
-
*
|
|
19277
|
-
* @param {Vector} b Bottom-right corner of the tooltip rectangle (x, y)
|
|
19278
|
-
* @param {String} orientation The tip will point in this direction (top, right, bottom, left)
|
|
20487
|
+
* Conceptually, an app works like this:
|
|
19279
20488
|
*
|
|
19280
|
-
*
|
|
20489
|
+
* init
|
|
20490
|
+
* ⇣
|
|
20491
|
+
* state ⭢ render
|
|
20492
|
+
* ⮤ action ⮠
|
|
20493
|
+
*
|
|
20494
|
+
* The basis of an app are the following three types:
|
|
20495
|
+
*
|
|
20496
|
+
* Dispatch can be used to schedule an action after rendering has been completed. In the
|
|
20497
|
+
* render function, dispatch is not directly accessible; instead, an actions object is
|
|
20498
|
+
* provided to dispatch actions by calling them as functions.
|
|
20499
|
+
* @typedef {(action: string, p?: Props) => void} Dispatch
|
|
20500
|
+
*
|
|
20501
|
+
* An effect can be returned from an action to schedule further actions using dispatch.
|
|
20502
|
+
* @typedef {(d: Dispatch, p?: Props) => void} Effect
|
|
20503
|
+
*
|
|
20504
|
+
* An action receives an Immer.js Draft that can be mutated within the action. If further
|
|
20505
|
+
* actions should be called after this one, an action can return an Effect.
|
|
20506
|
+
* @typedef {(s: Draft, p?: Props) => Effect | void} Action
|
|
20507
|
+
* @see {@link https://immerjs.github.io/immer/docs/produce/}
|
|
20508
|
+
*
|
|
20509
|
+
* The app can be configured with the following props:
|
|
20510
|
+
*
|
|
20511
|
+
* @prop {Object} props
|
|
20512
|
+
* @prop {(s: Draft) => Promise<Effect | void>} props.init - Asynchronously create
|
|
20513
|
+
* the initial state and optionally schedule an action
|
|
20514
|
+
* @prop {(s: State, as: Record<keyof props.actions, (p?: Props) => void>)} props.render - Update
|
|
20515
|
+
* the DOM from the state and optionally dispatch actions
|
|
20516
|
+
* @prop {Record<string, Action>} [props.actions] - Functions to transition the
|
|
20517
|
+
* application state
|
|
20518
|
+
* @prop {{element: string, src: string}} [props.fallback] - Render a fallback image
|
|
20519
|
+
*
|
|
20520
|
+
* @module sszvis/app
|
|
19281
20521
|
*/
|
|
19282
20522
|
|
|
20523
|
+
var app = function app(_ref) {
|
|
20524
|
+
var init = _ref.init,
|
|
20525
|
+
render = _ref.render,
|
|
20526
|
+
_ref$actions = _ref.actions,
|
|
20527
|
+
actions = _ref$actions === void 0 ? {} : _ref$actions,
|
|
20528
|
+
fallback = _ref.fallback;
|
|
20529
|
+
var doing;
|
|
20530
|
+
var state;
|
|
20531
|
+
invariant(isFunction$1(init), 'An "init" function returning a Promise must be provided.');
|
|
20532
|
+
invariant(isFunction$1(render), 'A "render" function must be provided.');
|
|
20533
|
+
var actionDispatchers = Object.keys(actions).reduce(function (acc, key) {
|
|
20534
|
+
acc[key] = function (args) {
|
|
20535
|
+
dispatch(key, args);
|
|
20536
|
+
};
|
|
19283
20537
|
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
case "top":
|
|
19287
|
-
a[1] = a[1] + TIP_SIZE;
|
|
19288
|
-
break;
|
|
19289
|
-
|
|
19290
|
-
case "bottom":
|
|
19291
|
-
b[1] = b[1] - TIP_SIZE;
|
|
19292
|
-
break;
|
|
19293
|
-
|
|
19294
|
-
case "left":
|
|
19295
|
-
a[0] = a[0] + TIP_SIZE;
|
|
19296
|
-
break;
|
|
20538
|
+
return acc;
|
|
20539
|
+
}, {});
|
|
19297
20540
|
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
20541
|
+
function scheduleUpdate(effect) {
|
|
20542
|
+
if (!doing) {
|
|
20543
|
+
doing = true;
|
|
20544
|
+
requestAnimationFrame(function () {
|
|
20545
|
+
render(state, actionDispatchers);
|
|
20546
|
+
doing = false;
|
|
20547
|
+
});
|
|
20548
|
+
}
|
|
19302
20549
|
|
|
19303
|
-
|
|
19304
|
-
return d[0];
|
|
20550
|
+
if (isFunction$1(effect)) effect(dispatch);
|
|
19305
20551
|
}
|
|
19306
20552
|
|
|
19307
|
-
function
|
|
19308
|
-
|
|
20553
|
+
function dispatch(action, props) {
|
|
20554
|
+
invariant(actions[action] != null, "Action \"".concat(action, "\" is not defined, add it to \"actions\"."));
|
|
20555
|
+
var draft = pn(state);
|
|
20556
|
+
var effect = actions[action](draft, props);
|
|
20557
|
+
state = ln(draft);
|
|
20558
|
+
scheduleUpdate(effect);
|
|
19309
20559
|
}
|
|
19310
20560
|
|
|
19311
|
-
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
}
|
|
19325
|
-
} else if (showTip && x0 === x1) {
|
|
19326
|
-
if (y0 < y1) {
|
|
19327
|
-
// Right
|
|
19328
|
-
tip = ["L", mx, my - TIP_SIZE, "L", mx + TIP_SIZE, my, "L", mx, my + TIP_SIZE];
|
|
19329
|
-
} else {
|
|
19330
|
-
// Left
|
|
19331
|
-
tip = ["L", mx, my + TIP_SIZE, "L", mx - TIP_SIZE, my, "L", mx, my - TIP_SIZE];
|
|
19332
|
-
}
|
|
19333
|
-
}
|
|
20561
|
+
var initialState = pn({});
|
|
20562
|
+
init(initialState).then(function (effect) {
|
|
20563
|
+
state = ln(initialState);
|
|
20564
|
+
scheduleUpdate(effect);
|
|
20565
|
+
viewport.on("resize", scheduleUpdate);
|
|
20566
|
+
}).catch(function (err) {
|
|
20567
|
+
invariant(false, err);
|
|
20568
|
+
fallback && fallbackRender(fallback.element, {
|
|
20569
|
+
src: fallback.src
|
|
20570
|
+
});
|
|
20571
|
+
});
|
|
20572
|
+
}; // -----------------------------------------------------------------------------
|
|
20573
|
+
// Helper functions
|
|
19334
20574
|
|
|
19335
|
-
|
|
19336
|
-
|
|
20575
|
+
function invariant(condition, message) {
|
|
20576
|
+
if (!condition) {
|
|
20577
|
+
throw new Error("[sszvis.app] ".concat(message));
|
|
19337
20578
|
}
|
|
19338
|
-
|
|
19339
|
-
return [// Start
|
|
19340
|
-
["M", x(a), y(a) + radius], // Top side
|
|
19341
|
-
side(x(a), y(a), x(a) + radius, y(a), x(b) - radius, y(a), orientation === "top"), // Right side
|
|
19342
|
-
side(x(b), y(a), x(b), y(a) + radius, x(b), y(b) - radius, orientation === "right"), // Bottom side
|
|
19343
|
-
side(x(b), y(b), x(b) - radius, y(b), x(a) + radius, y(b), orientation === "bottom"), // Left side
|
|
19344
|
-
side(x(a), y(b), x(a), y(b) - radius, x(a), y(a) + radius, orientation === "left")].map(function (d) {
|
|
19345
|
-
return d.join(" ");
|
|
19346
|
-
}).join(" ");
|
|
19347
|
-
}
|
|
19348
|
-
/**
|
|
19349
|
-
* Detect whether the current browser supports SVG filters
|
|
19350
|
-
*/
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
function supportsSVGFilters() {
|
|
19354
|
-
return window["SVGFEColorMatrixElement"] !== undefined && SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE == 2;
|
|
19355
20579
|
}
|
|
19356
20580
|
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
*
|
|
19360
|
-
* This is a useful default function for making a tooltip fit within a horizontal space.
|
|
19361
|
-
* You provide a default orientation for the tooltip, but also provide the bounds of the
|
|
19362
|
-
* space within which the tooltip should stay. When the tooltip is too close to the left
|
|
19363
|
-
* or right edge of the bounds, it is oriented away from the edge. Otherwise the default
|
|
19364
|
-
* is used.
|
|
19365
|
-
*
|
|
19366
|
-
* @param {String} defaultValue The default value for the tooltip orientation
|
|
19367
|
-
* @param {Object} bounds The bounds object within which the tooltip should stay.
|
|
19368
|
-
*
|
|
19369
|
-
* @returns {Function} A function for calculating the orientation of the tooltips.
|
|
19370
|
-
*/
|
|
19371
|
-
function fitTooltip (defaultVal, bounds) {
|
|
19372
|
-
var lo = Math.min(bounds.innerWidth * 1 / 4, 100);
|
|
19373
|
-
var hi = Math.max(bounds.innerWidth * 3 / 4, bounds.innerWidth - 100);
|
|
19374
|
-
return function (d) {
|
|
19375
|
-
var x = d.x;
|
|
19376
|
-
return x > hi ? "right" : x < lo ? "left" : defaultVal;
|
|
19377
|
-
};
|
|
20581
|
+
function isFunction$1(x) {
|
|
20582
|
+
return typeof x === "function";
|
|
19378
20583
|
}
|
|
19379
20584
|
|
|
19380
20585
|
/**
|
|
@@ -19972,6 +21177,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
19972
21177
|
*
|
|
19973
21178
|
* @property {boolean} alignOuterLabels Whether or not to align the outer labels to the axis extent so that they do not fall outside the axis space.
|
|
19974
21179
|
* @property {boolean} contour Specify a 'contour' background for the axis labels.
|
|
21180
|
+
* @property {boolean} removeStroke Removes the default stroke applied to the text
|
|
19975
21181
|
* @property {number} hideBorderTickThreshold Specifies the pixel distance threshold for the visible tick correction. Ticks which are closer than
|
|
19976
21182
|
* this threshold to the end of the axis (i.e. a tick which is 1 or two pixels from the end) will be
|
|
19977
21183
|
* hidden from view. This prevents the display of a tick very close to the ending line.
|
|
@@ -20006,7 +21212,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
20006
21212
|
var axis = function axis() {
|
|
20007
21213
|
// var axisDelegate = d3.axisBottom();
|
|
20008
21214
|
// axisDelegate.orient = function() { return 'bottom'; };
|
|
20009
|
-
var axisComponent = component().prop("scale").prop("orient").prop("ticks").prop("tickValues").prop("tickSize").prop("tickSizeInner").prop("tickSizeOuter").prop("tickPadding").prop("tickFormat").prop("_scale").prop("orient").orient("bottom").prop("alignOuterLabels").alignOuterLabels(false).prop("contour").prop("hideBorderTickThreshold").hideBorderTickThreshold(TICK_PROXIMITY_THRESHOLD).prop("hideLabelThreshold").hideLabelThreshold(LABEL_PROXIMITY_THRESHOLD).prop("highlightTick", functor).prop("showZeroY").showZeroY(false).prop("slant").prop("textWrap").prop("tickLength").prop("title").prop("titleAnchor") // start, end, or middle
|
|
21215
|
+
var axisComponent = component().prop("scale").prop("orient").prop("ticks").prop("tickValues").prop("tickSize").prop("tickSizeInner").prop("tickSizeOuter").prop("tickPadding").prop("tickFormat").prop("_scale").prop("orient").orient("bottom").prop("alignOuterLabels").alignOuterLabels(false).prop("contour").prop("removeStroke").prop("hideBorderTickThreshold").hideBorderTickThreshold(TICK_PROXIMITY_THRESHOLD).prop("hideLabelThreshold").hideLabelThreshold(LABEL_PROXIMITY_THRESHOLD).prop("highlightTick", functor).prop("showZeroY").showZeroY(false).prop("slant").prop("textWrap").prop("tickLength").prop("title").prop("titleAnchor") // start, end, or middle
|
|
20010
21216
|
.prop("titleCenter") // a boolean value - whether to center the title
|
|
20011
21217
|
.prop("dxTitle") // a numeric value for the left offset of the title
|
|
20012
21218
|
.prop("dyTitle") // a numeric value for the top offset of the title
|
|
@@ -20250,6 +21456,14 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
20250
21456
|
textContour.text(textNode.textContent);
|
|
20251
21457
|
});
|
|
20252
21458
|
}
|
|
21459
|
+
|
|
21460
|
+
if (!props.removeStroke) {
|
|
21461
|
+
tickGroups.each(function () {
|
|
21462
|
+
var g = d3.select(this);
|
|
21463
|
+
var textNode = g.select("text");
|
|
21464
|
+
textNode.attr("stroke", "white").attr("stroke-width", 0.5).attr("stroke-opacity", 0.75);
|
|
21465
|
+
});
|
|
21466
|
+
}
|
|
20253
21467
|
}); // axisComponent.__delegate__ = axisDelegate;
|
|
20254
21468
|
|
|
20255
21469
|
return axisComponent;
|
|
@@ -21642,6 +22856,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
21642
22856
|
return component().prop("radius").prop("fill").prop("stroke").prop("angle", functor).render(function (data) {
|
|
21643
22857
|
var selection = d3.select(this);
|
|
21644
22858
|
var props = selection.props();
|
|
22859
|
+
var stroke = props.stroke || "#FFFFFF";
|
|
21645
22860
|
var angle = 0;
|
|
21646
22861
|
data.forEach(function (value) {
|
|
21647
22862
|
// In order for an angle transition to work correctly in d3, the transition must be done in data space.
|
|
@@ -21672,7 +22887,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
21672
22887
|
data[i].a1 = d.a1;
|
|
21673
22888
|
}
|
|
21674
22889
|
}).data(data);
|
|
21675
|
-
var newSegments = segments.enter().append("path").classed("sszvis-path", true).attr("transform", "translate(" + props.radius + "," + props.radius + ")").attr("fill", props.fill).attr("stroke",
|
|
22890
|
+
var newSegments = segments.enter().append("path").classed("sszvis-path", true).attr("transform", "translate(" + props.radius + "," + props.radius + ")").attr("fill", props.fill).attr("stroke", stroke);
|
|
21676
22891
|
segments.exit().remove();
|
|
21677
22892
|
segments = segments.merge(newSegments);
|
|
21678
22893
|
segments.transition(defaultTransition()).attr("transform", "translate(" + props.radius + "," + props.radius + ")").attrTween("d", function (d) {
|
|
@@ -21683,7 +22898,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
21683
22898
|
d.a1 = angle1Interp(t);
|
|
21684
22899
|
return arcGen(d);
|
|
21685
22900
|
};
|
|
21686
|
-
}).attr("fill", props.fill).attr("stroke",
|
|
22901
|
+
}).attr("fill", props.fill).attr("stroke", stroke);
|
|
21687
22902
|
var ta = tooltipAnchor().position(function (d) {
|
|
21688
22903
|
// The correction by - Math.PI / 2 is necessary because d3 automatically (and with brief, buried documentation!)
|
|
21689
22904
|
// makes the same correction to svg.arc() angles :o
|
|
@@ -22044,7 +23259,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
22044
23259
|
paths = paths.transition(defaultTransition());
|
|
22045
23260
|
}
|
|
22046
23261
|
|
|
22047
|
-
paths.attr("d", areaGen).attr("fill", props.fill).attr("stroke", props.stroke);
|
|
23262
|
+
paths.attr("d", areaGen).attr("fill", props.fill).attr("stroke", props.stroke || "#ffffff");
|
|
22048
23263
|
});
|
|
22049
23264
|
}
|
|
22050
23265
|
|
|
@@ -22173,7 +23388,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
22173
23388
|
return component().prop("xScale", functor).prop("width", functor).prop("yScale", functor).prop("height", functor).prop("fill").prop("stroke").render(function (data) {
|
|
22174
23389
|
var selection = d3.select(this);
|
|
22175
23390
|
var props = selection.props();
|
|
22176
|
-
var barGen = bar().x(config.x(props)).y(config.y(props)).width(config.width(props)).height(config.height(props)).fill(props.fill).stroke(props.stroke);
|
|
23391
|
+
var barGen = bar().x(config.x(props)).y(config.y(props)).width(config.width(props)).height(config.height(props)).fill(props.fill).stroke(props.stroke || "#FFFFFF");
|
|
22177
23392
|
var groups = selection.selectAll(".sszvis-stack").data(data);
|
|
22178
23393
|
var newGroups = groups.enter().append("g").classed("sszvis-stack", true);
|
|
22179
23394
|
groups.exit().remove();
|
|
@@ -22873,34 +24088,6 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
22873
24088
|
return viewport.merge(viewportEnter);
|
|
22874
24089
|
}
|
|
22875
24090
|
|
|
22876
|
-
/**
|
|
22877
|
-
* Fallback handling
|
|
22878
|
-
*
|
|
22879
|
-
* Defaults to rendering a fallback image with standard chart proportions.
|
|
22880
|
-
*
|
|
22881
|
-
* @example
|
|
22882
|
-
* if (sszvis.fallback.unsupported()) {
|
|
22883
|
-
* sszvis.fallback.render('#sszvis-chart', {src: '../fallback.png', height: 300});
|
|
22884
|
-
* return;
|
|
22885
|
-
* }
|
|
22886
|
-
*
|
|
22887
|
-
* @module sszvis/fallback
|
|
22888
|
-
*/
|
|
22889
|
-
var fallbackUnsupported = function fallbackUnsupported() {
|
|
22890
|
-
var supportsSVG = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect;
|
|
22891
|
-
return !supportsSVG;
|
|
22892
|
-
};
|
|
22893
|
-
var fallbackCanvasUnsupported = function fallbackCanvasUnsupported() {
|
|
22894
|
-
var supportsCanvas = !!document.createElement("canvas").getContext;
|
|
22895
|
-
return !supportsCanvas;
|
|
22896
|
-
};
|
|
22897
|
-
var fallbackRender = function fallbackRender(selector, options) {
|
|
22898
|
-
options || (options = {});
|
|
22899
|
-
options.src || (options.src = "fallback.png");
|
|
22900
|
-
var selection = isSelection(selector) ? selector : d3.select(selector);
|
|
22901
|
-
selection.append("img").attr("class", "sszvis-fallback-image").attr("src", options.src);
|
|
22902
|
-
};
|
|
22903
|
-
|
|
22904
24091
|
/**
|
|
22905
24092
|
* Ordinal Color Scale Legend
|
|
22906
24093
|
*
|
|
@@ -24343,44 +25530,44 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24343
25530
|
*
|
|
24344
25531
|
* @return {sszvis.component}
|
|
24345
25532
|
*/
|
|
24346
|
-
var datumAcc = prop(
|
|
25533
|
+
var datumAcc = prop("datum");
|
|
24347
25534
|
function bubble () {
|
|
24348
|
-
var event = d3.dispatch(
|
|
24349
|
-
var anchoredCirclesComponent = component().prop(
|
|
25535
|
+
var event = d3.dispatch("over", "out", "click");
|
|
25536
|
+
var anchoredCirclesComponent = component().prop("mergedData").prop("mapPath").prop("radius", functor).prop("fill", functor).prop("strokeColor", functor).strokeColor("#ffffff").prop("strokeWidth", functor).strokeWidth(1).prop("transition").transition(true).render(function () {
|
|
24350
25537
|
var selection = d3.select(this);
|
|
24351
25538
|
var props = selection.props();
|
|
24352
25539
|
var radiusAcc = compose(props.radius, datumAcc);
|
|
24353
|
-
var anchoredCircles = selection.selectGroup(
|
|
25540
|
+
var anchoredCircles = selection.selectGroup("anchoredCircles").selectAll(".sszvis-anchored-circle").data(props.mergedData, function (d) {
|
|
24354
25541
|
return d.geoJson.id;
|
|
24355
25542
|
});
|
|
24356
|
-
anchoredCircles.enter().append(
|
|
24357
|
-
event.call(
|
|
24358
|
-
}).on(
|
|
24359
|
-
event.call(
|
|
24360
|
-
}).on(
|
|
24361
|
-
event.call(
|
|
24362
|
-
}).merge(anchoredCircles).attr(
|
|
25543
|
+
anchoredCircles.enter().append("circle").attr("class", "sszvis-anchored-circle sszvis-anchored-circle--entering").attr("r", radiusAcc).on("mouseover", function (d) {
|
|
25544
|
+
event.call("over", this, d.datum);
|
|
25545
|
+
}).on("mouseout", function (d) {
|
|
25546
|
+
event.call("out", this, d.datum);
|
|
25547
|
+
}).on("click", function (d) {
|
|
25548
|
+
event.call("click", this, d.datum);
|
|
25549
|
+
}).merge(anchoredCircles).attr("transform", function (d) {
|
|
24363
25550
|
var position = props.mapPath.projection()(getGeoJsonCenter(d.geoJson));
|
|
24364
25551
|
return translateString(position[0], position[1]);
|
|
24365
|
-
}).style(
|
|
25552
|
+
}).style("fill", function (d) {
|
|
24366
25553
|
return props.fill(d.datum);
|
|
24367
|
-
}).style(
|
|
25554
|
+
}).style("stroke", function (d) {
|
|
24368
25555
|
return props.strokeColor(d.datum);
|
|
24369
|
-
}).style(
|
|
25556
|
+
}).style("stroke-width", function (d) {
|
|
24370
25557
|
return props.strokeWidth(d.datum);
|
|
24371
25558
|
}).sort(function (a, b) {
|
|
24372
25559
|
return props.radius(b.datum) - props.radius(a.datum);
|
|
24373
25560
|
}); // Remove the --entering modifier from the updating circles
|
|
24374
25561
|
|
|
24375
|
-
anchoredCircles.classed(
|
|
25562
|
+
anchoredCircles.classed("sszvis-anchored-circle--entering", false);
|
|
24376
25563
|
|
|
24377
25564
|
if (props.transition) {
|
|
24378
25565
|
var t = defaultTransition();
|
|
24379
|
-
anchoredCircles.exit().transition(t).attr(
|
|
24380
|
-
anchoredCircles.transition(t).attr(
|
|
25566
|
+
anchoredCircles.exit().transition(t).attr("r", 0).remove();
|
|
25567
|
+
anchoredCircles.transition(t).attr("r", radiusAcc);
|
|
24381
25568
|
} else {
|
|
24382
25569
|
anchoredCircles.exit().remove();
|
|
24383
|
-
anchoredCircles.attr(
|
|
25570
|
+
anchoredCircles.attr("r", radiusAcc);
|
|
24384
25571
|
}
|
|
24385
25572
|
});
|
|
24386
25573
|
|
|
@@ -24415,45 +25602,45 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24415
25602
|
* @return {sszvis.component}
|
|
24416
25603
|
*/
|
|
24417
25604
|
function mapRendererBase () {
|
|
24418
|
-
return component().prop(
|
|
24419
|
-
.prop(
|
|
24420
|
-
return
|
|
25605
|
+
return component().prop("mergedData").prop("geoJson").prop("mapPath").prop("defined", functor).defined(true) // a predicate function to determine whether a datum has a defined value
|
|
25606
|
+
.prop("fill", functor).fill(function () {
|
|
25607
|
+
return "black";
|
|
24421
25608
|
}) // a function for the entity fill color. default is black
|
|
24422
|
-
.prop(
|
|
25609
|
+
.prop("transitionColor").transitionColor(true).render(function () {
|
|
24423
25610
|
var selection = d3.select(this);
|
|
24424
25611
|
var props = selection.props(); // render the missing value pattern
|
|
24425
25612
|
|
|
24426
|
-
ensureDefsElement(selection,
|
|
25613
|
+
ensureDefsElement(selection, "pattern", "missing-pattern").call(mapMissingValuePattern); // map fill function - returns the missing value pattern if the datum doesn't exist or fails the props.defined test
|
|
24427
25614
|
|
|
24428
25615
|
function getMapFill(d) {
|
|
24429
|
-
return props.defined(d.datum) ? props.fill(d.datum) :
|
|
25616
|
+
return props.defined(d.datum) ? props.fill(d.datum) : "url(#missing-pattern)";
|
|
24430
25617
|
}
|
|
24431
25618
|
|
|
24432
|
-
var mapAreas = selection.selectAll(
|
|
25619
|
+
var mapAreas = selection.selectAll(".sszvis-map__area").data(props.mergedData); // add the base map paths - these are filled according to the map fill function
|
|
24433
25620
|
|
|
24434
|
-
var newMapAreas = mapAreas.enter().append(
|
|
24435
|
-
mapAreas.classed(
|
|
25621
|
+
var newMapAreas = mapAreas.enter().append("path").classed("sszvis-map__area", true).classed("sszvis-map__area--entering", true).attr("data-event-target", "").attr("fill", getMapFill);
|
|
25622
|
+
mapAreas.classed("sszvis-map__area--entering", false);
|
|
24436
25623
|
mapAreas.exit().remove();
|
|
24437
25624
|
mapAreas = mapAreas.merge(newMapAreas);
|
|
24438
|
-
selection.selectAll(
|
|
25625
|
+
selection.selectAll(".sszvis-map__area--undefined").attr("fill", getMapFill); // change the fill if necessary
|
|
24439
25626
|
|
|
24440
|
-
mapAreas.classed(
|
|
25627
|
+
mapAreas.classed("sszvis-map__area--undefined", function (d) {
|
|
24441
25628
|
return !defined(d.datum) || !props.defined(d.datum);
|
|
24442
|
-
}).attr(
|
|
25629
|
+
}).attr("d", function (d) {
|
|
24443
25630
|
return props.mapPath(d.geoJson);
|
|
24444
25631
|
});
|
|
24445
25632
|
|
|
24446
25633
|
if (props.transitionColor) {
|
|
24447
|
-
mapAreas.transition().call(slowTransition).attr(
|
|
25634
|
+
mapAreas.transition().call(slowTransition).attr("fill", getMapFill);
|
|
24448
25635
|
} else {
|
|
24449
|
-
mapAreas.attr(
|
|
25636
|
+
mapAreas.attr("fill", getMapFill);
|
|
24450
25637
|
} // the tooltip anchor generator
|
|
24451
25638
|
|
|
24452
25639
|
|
|
24453
25640
|
var ta = tooltipAnchor().position(function (d) {
|
|
24454
25641
|
return props.mapPath.projection()(getGeoJsonCenter(d.geoJson));
|
|
24455
25642
|
});
|
|
24456
|
-
var tooltipGroup = selection.selectGroup(
|
|
25643
|
+
var tooltipGroup = selection.selectGroup("tooltipAnchors").datum(props.mergedData); // attach tooltip anchors
|
|
24457
25644
|
|
|
24458
25645
|
tooltipGroup.call(ta);
|
|
24459
25646
|
});
|
|
@@ -24482,12 +25669,12 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24482
25669
|
* @return {sszvis.component}
|
|
24483
25670
|
*/
|
|
24484
25671
|
function geojson () {
|
|
24485
|
-
var event = d3.dispatch(
|
|
24486
|
-
var geojsonComponent = component().prop(
|
|
25672
|
+
var event = d3.dispatch("over", "out", "click");
|
|
25673
|
+
var geojsonComponent = component().prop("dataKeyName").dataKeyName(GEO_KEY_DEFAULT).prop("geoJsonKeyName").geoJsonKeyName("id").prop("geoJson").prop("mapPath").prop("defined", functor).defined(true).prop("fill", functor).fill("black").prop("stroke", functor).stroke("black").prop("strokeWidth", functor).strokeWidth(1.25).prop("transitionColor").transitionColor(true).render(function (data) {
|
|
24487
25674
|
var selection = d3.select(this);
|
|
24488
25675
|
var props = selection.props(); // render the missing value pattern
|
|
24489
25676
|
|
|
24490
|
-
ensureDefsElement(selection,
|
|
25677
|
+
ensureDefsElement(selection, "pattern", "missing-pattern").call(mapMissingValuePattern); // getDataKeyName will be called on data values. It should return a map entity id.
|
|
24491
25678
|
// getMapKeyName will be called on the 'properties' of each map feature. It should
|
|
24492
25679
|
// return a map entity id. Data values are matched with corresponding map features using
|
|
24493
25680
|
// these entity ids.
|
|
@@ -24506,36 +25693,36 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24506
25693
|
});
|
|
24507
25694
|
|
|
24508
25695
|
function getMapFill(d) {
|
|
24509
|
-
return defined(d.datum) && props.defined(d.datum) ? props.fill(d.datum) :
|
|
25696
|
+
return defined(d.datum) && props.defined(d.datum) ? props.fill(d.datum) : "url(#missing-pattern)";
|
|
24510
25697
|
}
|
|
24511
25698
|
|
|
24512
25699
|
function getMapStroke(d) {
|
|
24513
|
-
return defined(d.datum) && props.defined(d.datum) ? props.stroke(d.datum) :
|
|
25700
|
+
return defined(d.datum) && props.defined(d.datum) ? props.stroke(d.datum) : "";
|
|
24514
25701
|
}
|
|
24515
25702
|
|
|
24516
|
-
var geoElements = selection.selectAll(
|
|
24517
|
-
var newGeoElements = geoElements.enter().append(
|
|
25703
|
+
var geoElements = selection.selectAll(".sszvis-map__geojsonelement").data(mergedData);
|
|
25704
|
+
var newGeoElements = geoElements.enter().append("path").classed("sszvis-map__geojsonelement", true).attr("data-event-target", "").attr("fill", getMapFill);
|
|
24518
25705
|
geoElements.exit().remove();
|
|
24519
25706
|
geoElements = geoElements.merge(newGeoElements);
|
|
24520
|
-
selection.selectAll(
|
|
24521
|
-
geoElements.classed(
|
|
25707
|
+
selection.selectAll(".sszvis-map__geojsonelement--undefined").attr("fill", getMapFill);
|
|
25708
|
+
geoElements.classed("sszvis-map__geojsonelement--undefined", function (d) {
|
|
24522
25709
|
return !defined(d.datum) || !props.defined(d.datum);
|
|
24523
|
-
}).attr(
|
|
25710
|
+
}).attr("d", function (d) {
|
|
24524
25711
|
return props.mapPath(d.geoJson);
|
|
24525
25712
|
});
|
|
24526
25713
|
|
|
24527
25714
|
if (props.transitionColor) {
|
|
24528
|
-
geoElements.transition().call(slowTransition).attr(
|
|
25715
|
+
geoElements.transition().call(slowTransition).attr("fill", getMapFill);
|
|
24529
25716
|
} else {
|
|
24530
|
-
geoElements.attr(
|
|
25717
|
+
geoElements.attr("fill", getMapFill);
|
|
24531
25718
|
}
|
|
24532
25719
|
|
|
24533
|
-
geoElements.attr(
|
|
24534
|
-
selection.selectAll(
|
|
25720
|
+
geoElements.attr("stroke", getMapStroke).attr("stroke-width", props.strokeWidth);
|
|
25721
|
+
selection.selectAll("[data-event-target]").on("mouseover", function (d) {
|
|
24535
25722
|
event.over(d.datum);
|
|
24536
|
-
}).on(
|
|
25723
|
+
}).on("mouseout", function (d) {
|
|
24537
25724
|
event.out(d.datum);
|
|
24538
|
-
}).on(
|
|
25725
|
+
}).on("click", function (d) {
|
|
24539
25726
|
event.click(d.datum);
|
|
24540
25727
|
}); // the tooltip anchor generator
|
|
24541
25728
|
|
|
@@ -24549,7 +25736,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24549
25736
|
|
|
24550
25737
|
return props.mapPath.projection()(sphericalCentroid);
|
|
24551
25738
|
});
|
|
24552
|
-
var tooltipGroup = selection.selectGroup(
|
|
25739
|
+
var tooltipGroup = selection.selectGroup("tooltipAnchors").datum(mergedData); // attach tooltip anchors
|
|
24553
25740
|
|
|
24554
25741
|
tooltipGroup.call(ta);
|
|
24555
25742
|
});
|
|
@@ -24580,13 +25767,13 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24580
25767
|
* @return {sszvis.component}
|
|
24581
25768
|
*/
|
|
24582
25769
|
function mapRendererHighlight () {
|
|
24583
|
-
return component().prop(
|
|
24584
|
-
.prop(
|
|
24585
|
-
.prop(
|
|
24586
|
-
.prop(
|
|
25770
|
+
return component().prop("keyName").keyName(GEO_KEY_DEFAULT) // the name of the data key that identifies which map entity it belongs to
|
|
25771
|
+
.prop("geoJson").prop("mapPath").prop("highlight").highlight([]) // an array of data values to highlight
|
|
25772
|
+
.prop("highlightStroke", functor).highlightStroke("white") // a function for highlighted entity stroke colors (default: white)
|
|
25773
|
+
.prop("highlightStrokeWidth", functor).highlightStrokeWidth(2).render(function () {
|
|
24587
25774
|
var selection = d3.select(this);
|
|
24588
25775
|
var props = selection.props();
|
|
24589
|
-
var highlightBorders = selection.selectAll(
|
|
25776
|
+
var highlightBorders = selection.selectAll(".sszvis-map__highlight");
|
|
24590
25777
|
|
|
24591
25778
|
if (!props.highlight.length) {
|
|
24592
25779
|
highlightBorders.remove();
|
|
@@ -24609,14 +25796,14 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24609
25796
|
return m;
|
|
24610
25797
|
}, []);
|
|
24611
25798
|
highlightBorders = highlightBorders.data(mergedHighlight);
|
|
24612
|
-
var newHighlightBorders = highlightBorders.enter().append(
|
|
25799
|
+
var newHighlightBorders = highlightBorders.enter().append("path").classed("sszvis-map__highlight", true);
|
|
24613
25800
|
highlightBorders.exit().remove();
|
|
24614
25801
|
highlightBorders = highlightBorders.merge(newHighlightBorders);
|
|
24615
|
-
highlightBorders.attr(
|
|
25802
|
+
highlightBorders.attr("d", function (d) {
|
|
24616
25803
|
return props.mapPath(d.geoJson);
|
|
24617
|
-
}).style(
|
|
25804
|
+
}).style("stroke", function (d) {
|
|
24618
25805
|
return props.highlightStroke(d.datum);
|
|
24619
|
-
}).style(
|
|
25806
|
+
}).style("stroke-width", function (d) {
|
|
24620
25807
|
return props.highlightStrokeWidth(d.datum);
|
|
24621
25808
|
});
|
|
24622
25809
|
});
|
|
@@ -24650,17 +25837,17 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24650
25837
|
* @return {sszvis.component}
|
|
24651
25838
|
*/
|
|
24652
25839
|
function image () {
|
|
24653
|
-
return component().prop(
|
|
25840
|
+
return component().prop("projection").prop("src").prop("geoBounds").prop("opacity").opacity(1).render(function () {
|
|
24654
25841
|
var selection = d3.select(this);
|
|
24655
25842
|
var props = selection.props();
|
|
24656
|
-
var image = selection.selectAll(
|
|
25843
|
+
var image = selection.selectAll(".sszvis-map__image").data([0]); // At the moment, 1 image per container
|
|
24657
25844
|
|
|
24658
|
-
var newImage = image.enter().append(
|
|
25845
|
+
var newImage = image.enter().append("img").classed("sszvis-map__image", true);
|
|
24659
25846
|
image.exit().remove();
|
|
24660
25847
|
image = image.merge(newImage);
|
|
24661
25848
|
var topLeft = props.projection(props.geoBounds[0]);
|
|
24662
25849
|
var bottomRight = props.projection(props.geoBounds[1]);
|
|
24663
|
-
image.attr(
|
|
25850
|
+
image.attr("src", props.src).style("left", Math.round(topLeft[0]) + "px").style("top", Math.round(topLeft[1]) + "px").style("width", Math.round(bottomRight[0] - topLeft[0]) + "px").style("height", Math.round(bottomRight[1] - topLeft[1]) + "px").style("opacity", props.opacity);
|
|
24664
25851
|
});
|
|
24665
25852
|
}
|
|
24666
25853
|
|
|
@@ -24682,16 +25869,16 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24682
25869
|
* @return {sszvis.component}
|
|
24683
25870
|
*/
|
|
24684
25871
|
function mapRendererMesh () {
|
|
24685
|
-
return component().prop(
|
|
24686
|
-
.prop(
|
|
25872
|
+
return component().prop("geoJson").prop("mapPath").prop("borderColor").borderColor("white") // A function or string for the color of all borders. Note: all borders have the same color
|
|
25873
|
+
.prop("strokeWidth").strokeWidth(1.25).render(function () {
|
|
24687
25874
|
var selection = d3.select(this);
|
|
24688
25875
|
var props = selection.props(); // add the map borders. These are rendered as one single path element
|
|
24689
25876
|
|
|
24690
|
-
var meshLine = selection.selectAll(
|
|
24691
|
-
var newMeshLine = meshLine.enter().append(
|
|
25877
|
+
var meshLine = selection.selectAll(".sszvis-map__border").data([props.geoJson]);
|
|
25878
|
+
var newMeshLine = meshLine.enter().append("path").classed("sszvis-map__border", true);
|
|
24692
25879
|
meshLine.exit().remove();
|
|
24693
25880
|
meshLine = meshLine.merge(newMeshLine);
|
|
24694
|
-
meshLine.attr(
|
|
25881
|
+
meshLine.attr("d", props.mapPath).style("stroke", props.borderColor).style("stroke-width", props.strokeWidth);
|
|
24695
25882
|
});
|
|
24696
25883
|
}
|
|
24697
25884
|
|
|
@@ -24712,41 +25899,41 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24712
25899
|
* @return {sszvis.component}
|
|
24713
25900
|
*/
|
|
24714
25901
|
function mapRendererPatternedLakeOverlay () {
|
|
24715
|
-
return component().prop(
|
|
25902
|
+
return component().prop("mapPath").prop("lakeFeature").prop("lakeBounds").prop("lakePathColor").prop("fadeOut").fadeOut(true).render(function () {
|
|
24716
25903
|
var selection = d3.select(this);
|
|
24717
25904
|
var props = selection.props(); // the lake texture
|
|
24718
25905
|
|
|
24719
|
-
ensureDefsElement(selection,
|
|
25906
|
+
ensureDefsElement(selection, "pattern", "lake-pattern").call(mapLakePattern);
|
|
24720
25907
|
|
|
24721
25908
|
if (props.fadeOut) {
|
|
24722
25909
|
// the fade gradient
|
|
24723
|
-
ensureDefsElement(selection,
|
|
25910
|
+
ensureDefsElement(selection, "linearGradient", "lake-fade-gradient").call(mapLakeFadeGradient); // the mask, which uses the fade gradient
|
|
24724
25911
|
|
|
24725
|
-
ensureDefsElement(selection,
|
|
25912
|
+
ensureDefsElement(selection, "mask", "lake-fade-mask").call(mapLakeGradientMask);
|
|
24726
25913
|
} // generate the Lake Zurich path
|
|
24727
25914
|
|
|
24728
25915
|
|
|
24729
|
-
var zurichSee = selection.selectAll(
|
|
24730
|
-
var newZurichSee = zurichSee.enter().append(
|
|
25916
|
+
var zurichSee = selection.selectAll(".sszvis-map__lakezurich").data([props.lakeFeature]);
|
|
25917
|
+
var newZurichSee = zurichSee.enter().append("path").classed("sszvis-map__lakezurich", true);
|
|
24731
25918
|
zurichSee.exit().remove();
|
|
24732
25919
|
zurichSee = zurichSee.merge(newZurichSee);
|
|
24733
|
-
zurichSee.attr(
|
|
25920
|
+
zurichSee.attr("d", props.mapPath).attr("fill", "url(#lake-pattern)");
|
|
24734
25921
|
|
|
24735
25922
|
if (props.fadeOut) {
|
|
24736
25923
|
// this mask applies the fade effect
|
|
24737
|
-
zurichSee.attr(
|
|
25924
|
+
zurichSee.attr("mask", "url(#lake-fade-mask)");
|
|
24738
25925
|
} // add a path for the boundaries of map entities which extend over the lake.
|
|
24739
25926
|
// This path is rendered as a dotted line over the lake shape
|
|
24740
25927
|
|
|
24741
25928
|
|
|
24742
|
-
var lakePath = selection.selectAll(
|
|
24743
|
-
var newLakePath = lakePath.enter().append(
|
|
25929
|
+
var lakePath = selection.selectAll(".sszvis-map__lakepath").data([props.lakeBounds]);
|
|
25930
|
+
var newLakePath = lakePath.enter().append("path").classed("sszvis-map__lakepath", true);
|
|
24744
25931
|
lakePath.exit().remove();
|
|
24745
25932
|
lakePath = lakePath.merge(newLakePath);
|
|
24746
|
-
lakePath.attr(
|
|
25933
|
+
lakePath.attr("d", props.mapPath);
|
|
24747
25934
|
|
|
24748
25935
|
if (props.lakePathColor) {
|
|
24749
|
-
lakePath.style(
|
|
25936
|
+
lakePath.style("stroke", props.lakePathColor);
|
|
24750
25937
|
}
|
|
24751
25938
|
});
|
|
24752
25939
|
}
|
|
@@ -24773,21 +25960,21 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
24773
25960
|
* @return {sszvis.component}
|
|
24774
25961
|
*/
|
|
24775
25962
|
function raster () {
|
|
24776
|
-
return component().prop(
|
|
25963
|
+
return component().prop("debug").debug(false).prop("width").prop("height").prop("position").prop("cellSide").cellSide(2).prop("fill", functor).prop("opacity").opacity(1).render(function (data) {
|
|
24777
25964
|
var selection = d3.select(this);
|
|
24778
25965
|
var props = selection.props();
|
|
24779
|
-
var canvas = selection.selectAll(
|
|
24780
|
-
var newCanvas = canvas.enter().append(
|
|
25966
|
+
var canvas = selection.selectAll(".sszvis-map__rasterimage").data([0]);
|
|
25967
|
+
var newCanvas = canvas.enter().append("canvas").classed("sszvis-map__rasterimage", true);
|
|
24781
25968
|
canvas.exit().remove();
|
|
24782
25969
|
canvas = canvas.merge(newCanvas);
|
|
24783
|
-
canvas.attr(
|
|
24784
|
-
var ctx = canvas.node().getContext(
|
|
25970
|
+
canvas.attr("width", props.width).attr("height", props.height).style("opacity", props.opacity);
|
|
25971
|
+
var ctx = canvas.node().getContext("2d");
|
|
24785
25972
|
ctx.clearRect(0, 0, props.width, props.height);
|
|
24786
25973
|
|
|
24787
25974
|
if (props.debug) {
|
|
24788
25975
|
// Displays a rectangle that fills the canvas.
|
|
24789
25976
|
// Useful for checking alignment with other render layers.
|
|
24790
|
-
ctx.fillStyle =
|
|
25977
|
+
ctx.fillStyle = "rgba(255, 0, 0, 0.2)";
|
|
24791
25978
|
ctx.fillRect(0, 0, props.width, props.height);
|
|
24792
25979
|
}
|
|
24793
25980
|
|
|
@@ -25267,127 +26454,6 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
25267
26454
|
var modularTextHTML = makeTextWithFormat(formatHTML());
|
|
25268
26455
|
var modularTextSVG = makeTextWithFormat(formatSVG());
|
|
25269
26456
|
|
|
25270
|
-
/**
|
|
25271
|
-
* Viewport Resize watcher
|
|
25272
|
-
*
|
|
25273
|
-
* The resize watcher in the sszvis.viewport module can be used for alerting user code to
|
|
25274
|
-
* changes in the browser window size. This includes window resizing on desktop computers
|
|
25275
|
-
* and browsers, but also orientation changes on mobile browsers. Functions which listen
|
|
25276
|
-
* to the 'resize' event of the sszvis.viewport module will be fired on window resize.
|
|
25277
|
-
* You can add a resize listener to your application very easily:
|
|
25278
|
-
*
|
|
25279
|
-
* sszvis.viewport.on('resize', listenerFunction);
|
|
25280
|
-
*
|
|
25281
|
-
* The listener function will be called once per resize event, but at a slight delay. This is because,
|
|
25282
|
-
* while a user is resizing their browser window, many resize events can fire very quickly. This component
|
|
25283
|
-
* automatically throttles the rate at which the listener function is called, since you probably don't need
|
|
25284
|
-
* to respond to every single resize event. This throttling provides for a smoother user experience as they
|
|
25285
|
-
* resize the browser, and increases performance across the board. The listener function will always be
|
|
25286
|
-
* called after one or more window resize events, it just won't be called as often as the window fires the
|
|
25287
|
-
* events.
|
|
25288
|
-
*
|
|
25289
|
-
* @module sszvis/viewport
|
|
25290
|
-
*
|
|
25291
|
-
* @function {string, function} on the .on() function is used to listen to the resize event itself.
|
|
25292
|
-
* There is only one event supported by this component at the moment, so
|
|
25293
|
-
* the first argument to .on must be 'resize' for it to have any effect.
|
|
25294
|
-
* Although this is somewhat redundant, it is done to keep this component's
|
|
25295
|
-
* API clear and in line with other components.
|
|
25296
|
-
*
|
|
25297
|
-
* @return {Object}
|
|
25298
|
-
*/
|
|
25299
|
-
|
|
25300
|
-
function throttle(wait, func) {
|
|
25301
|
-
var context, args, result;
|
|
25302
|
-
var timeout = null;
|
|
25303
|
-
var previous = 0;
|
|
25304
|
-
|
|
25305
|
-
var lastCall = function lastCall() {
|
|
25306
|
-
previous = 0;
|
|
25307
|
-
result = func.apply(context, args);
|
|
25308
|
-
timeout = context = args = null;
|
|
25309
|
-
};
|
|
25310
|
-
|
|
25311
|
-
return function () {
|
|
25312
|
-
var now = Date.now();
|
|
25313
|
-
if (!previous) previous = now; // Sets up so that the function isn't called immediately
|
|
25314
|
-
|
|
25315
|
-
var remaining = wait - (now - previous);
|
|
25316
|
-
context = this;
|
|
25317
|
-
args = arguments;
|
|
25318
|
-
|
|
25319
|
-
if (remaining <= 0 || remaining > wait) {
|
|
25320
|
-
if (timeout) {
|
|
25321
|
-
clearTimeout(timeout);
|
|
25322
|
-
timeout = null;
|
|
25323
|
-
}
|
|
25324
|
-
|
|
25325
|
-
previous = now;
|
|
25326
|
-
result = func.apply(context, args);
|
|
25327
|
-
if (!timeout) context = args = null;
|
|
25328
|
-
} else if (!timeout) {
|
|
25329
|
-
timeout = setTimeout(lastCall, remaining);
|
|
25330
|
-
}
|
|
25331
|
-
|
|
25332
|
-
return result;
|
|
25333
|
-
};
|
|
25334
|
-
} // This rather strange set of functions is designed to support the API:
|
|
25335
|
-
// sszvis.viewport.on('resize', callback);
|
|
25336
|
-
// While still enabling the user to register multiple callbacks for the 'resize'
|
|
25337
|
-
// event. Multiple callbacks are a feature which simply returning a d3.dispatch('resize')
|
|
25338
|
-
// object would not allow.
|
|
25339
|
-
|
|
25340
|
-
|
|
25341
|
-
var callbacks = {
|
|
25342
|
-
resize: []
|
|
25343
|
-
};
|
|
25344
|
-
|
|
25345
|
-
if (typeof window !== "undefined") {
|
|
25346
|
-
d3.select(window).on("resize", throttle(500, function () {
|
|
25347
|
-
trigger("resize");
|
|
25348
|
-
}));
|
|
25349
|
-
}
|
|
25350
|
-
|
|
25351
|
-
var on = function on(name, cb) {
|
|
25352
|
-
if (!callbacks[name]) {
|
|
25353
|
-
callbacks[name] = [];
|
|
25354
|
-
}
|
|
25355
|
-
|
|
25356
|
-
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
25357
|
-
return fn !== cb;
|
|
25358
|
-
}).concat(cb);
|
|
25359
|
-
return this;
|
|
25360
|
-
};
|
|
25361
|
-
|
|
25362
|
-
var off = function off(name, cb) {
|
|
25363
|
-
if (!callbacks[name]) {
|
|
25364
|
-
return this;
|
|
25365
|
-
}
|
|
25366
|
-
|
|
25367
|
-
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
25368
|
-
return fn !== cb;
|
|
25369
|
-
});
|
|
25370
|
-
return this;
|
|
25371
|
-
};
|
|
25372
|
-
|
|
25373
|
-
var trigger = function trigger(name) {
|
|
25374
|
-
var evtArgs = Array.prototype.slice.call(arguments, 1);
|
|
25375
|
-
|
|
25376
|
-
if (callbacks[name]) {
|
|
25377
|
-
callbacks[name].forEach(function (fn) {
|
|
25378
|
-
fn.apply(null, evtArgs);
|
|
25379
|
-
});
|
|
25380
|
-
}
|
|
25381
|
-
|
|
25382
|
-
return this;
|
|
25383
|
-
};
|
|
25384
|
-
|
|
25385
|
-
var viewport = {
|
|
25386
|
-
on: on,
|
|
25387
|
-
off: off,
|
|
25388
|
-
trigger: trigger
|
|
25389
|
-
};
|
|
25390
|
-
|
|
25391
26457
|
exports.AGGLOMERATION_2012_KEY = AGGLOMERATION_2012_KEY;
|
|
25392
26458
|
exports.DEFAULT_LEGEND_COLOR_ORDINAL_ROW_HEIGHT = DEFAULT_LEGEND_COLOR_ORDINAL_ROW_HEIGHT;
|
|
25393
26459
|
exports.DEFAULT_WIDTH = DEFAULT_WIDTH;
|
|
@@ -25404,6 +26470,7 @@ var sszvis = createCommonjsModule(function (module, exports) {
|
|
|
25404
26470
|
exports.annotationRangeRuler = rangeRuler;
|
|
25405
26471
|
exports.annotationRectangle = rectangle;
|
|
25406
26472
|
exports.annotationRuler = ruler;
|
|
26473
|
+
exports.app = app;
|
|
25407
26474
|
exports.arity = arity;
|
|
25408
26475
|
exports.aspectRatio = aspectRatio;
|
|
25409
26476
|
exports.aspectRatio12to5 = aspectRatio12to5;
|
|
@@ -26085,7 +27152,7 @@ const topojson = /*#__PURE__*/Object.freeze({
|
|
|
26085
27152
|
untransform: untransform
|
|
26086
27153
|
});
|
|
26087
27154
|
|
|
26088
|
-
const stzhChartCss = "@charset \"UTF-8\";:host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sszvis-outer-container{clear:both;position:relative}.sszvis-svg-layer{position:relative}.sszvis-html-layer{position:absolute}.sszvis-fallback-image{display:block;margin:0 auto;max-width:32.25rem;width:100%}.sszvis-interactive{cursor:default;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-touch-callout:none}.sszvis-interactive.sszvis-interactive--draggable{cursor:pointer;cursor:grab;cursor:-webkit-grab}.sszvis-interactive.sszvis-interactive--draggable:active{cursor:grabbing;cursor:-webkit-grabbing}.sszvis-axis text{fill:#767676;font-family:Arial, sans-serif;font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-axis path,.sszvis-axis line{fill:none;stroke:#B8B8B8;shape-rendering:crispEdges}.sszvis-axis .tick text.active{fill:#545454}.sszvis-axis .tick text.hidden{display:none}.sszvis-axis .tick line.hidden{display:none}.sszvis-axis.sszvis-axis--top path{display:none}.sszvis-axis.sszvis-axis--vertical path{display:none}.sszvis-axis.sszvis-axis--slider path{stroke:none}.sszvis-axis__label-contour{fill:#FFFFFF;opacity:0.8;stroke:#FFFFFF;stroke-width:3}.sszvis-bar--missing{stroke:#A4A4A4}.sszvis-line{fill:none;stroke-width:1.1}.sszvis-pyramid__referenceline{fill:none;stroke:#aaa;stroke-width:2;stroke-dasharray:3 3}.sszvis-sankey-label{alignment-baseline:central;dominant-baseline:central;font-family:Arial, sans-serif;font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-sankey-strong-label{fill:#545454}.sszvis-sankey-weak-label{fill:#767676}.sszvis-sankey-column-label{text-anchor:middle}.sszvis-sankey-column-label-tick{stroke:#B8B8B8}.sszvis-sankey-link-source-label{text-anchor:start}.sszvis-sankey-link-target-label{text-anchor:end}.sszvis-map__area{stroke:none}.sszvis-map__border{fill:none;pointer-events:none;stroke-linejoin:round;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__highlight{fill:none;pointer-events:none;stroke-linejoin:round;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__lakezurich{pointer-events:none;stroke:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__lakepath{fill:none;pointer-events:none;stroke:#d3d3d3;stroke-width:1.25;stroke-dasharray:3 3;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__geojsonelement{pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__image{display:block;position:absolute;pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__rasterimage{display:block;position:absolute;pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-control-buttonGroup{display:inline-block;position:absolute;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-control-buttonGroup__item{background-color:#FFFFFF;border:0.0625rem solid #767676;border-left:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:#767676;cursor:pointer;display:table-cell;font-family:Arial, sans-serif;font-size:0.75rem;line-height:normal;padding:0.5625rem 0.75rem;text-align:center;vertical-align:middle}.sszvis-control-buttonGroup__item.selected{background-color:#767676;color:#FFFFFF}.sszvis-control-buttonGroup__item:first-child{border-left:0.0625rem solid #767676;border-top-left-radius:0.1875rem;border-bottom-left-radius:0.1875rem}.sszvis-control-buttonGroup__item:last-child{border-top-right-radius:0.1875rem;border-bottom-right-radius:0.1875rem}.sszvis-control-select{border:0.0625rem solid #767676;border-radius:0.1875rem;background-color:#FFFFFF;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABQElEQVR4nO3TzW2DUBDEcZdACSnBpe1lVhzdCSXZnaQE55JJSOJgMO9rH/OTOK70/iNxOomIiIiIiMi3cRzfar8hlc0tAM4A3gFMeZ5UDoDps+W86sDMBgBXd7+7+z3yCACmWcfVzIbFg9/xkUeYx68a4b/4iCM8in86wlJ8pBGW4ucj/Dhy98uzowgjrImffZevQzMb3P0WeYSN8bc/v0HkEXbHU8QRksVTpBGSx1OEEbLFU8sjZI+nFkcoFk8tjVA8nloYoVo81RyhejzVGKGZeCo5QnPxVGKEZuMp5wjNx1OOEcLEU8oRwsVTihHCxtOeEcLH0ysjdBNPW0foKp4yjBAnnhKOEC+eEowQN552jBA/nl4YoZ942jBCf/G0YoR+42lhhP7j6cEIx4mn2QjHiyczGw4bLyIiIiIiUtMHjJmBk7uXEiAAAAAASUVORK5CYII=\");background-position:96% 51%;background-repeat:no-repeat;background-size:0.75rem 0.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:2.125rem;overflow:hidden}.sszvis-control-select__element{background:transparent;border:0.0625rem solid #FFFFFF;color:#767676;font-family:Arial, sans-serif;font-size:1rem;height:2.125rem;outline:0}.sszvis-control-select__element:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.sszvis-control-select__metrics{font-family:Arial, sans-serif;font-size:0.75rem;height:auto;position:absolute;visibility:hidden;width:auto;white-space:nowrap}.sszvis-control-slider__handle{cursor:pointer}.sszvis-control-slider--label{fill:#545454;font-family:Arial, sans-serif;font-size:0.625rem;text-anchor:middle}.sszvis-control-slider__handlebox{fill:#fff;stroke:#545454}.sszvis-control-slider__handleline{stroke:#545454}.sszvis-handleRuler__handle{fill:#FFFFFF;stroke:#808184}.sszvis-handleRuler__handle-mark{stroke:#A6A8AB}.sszvis-ruler__rule{shape-rendering:crispEdges;stroke:#CCCCCC}.sszvis-ruler__dot{stroke:#FFFFFF;stroke-width:1.5}.sszvis-ruler__label,.sszvis-ruler__label-outline{font-family:Arial, sans-serif;font-size:0.75rem;font-style:normal;font-weight:normal}.sszvis-ruler__label{fill:#545454}.sszvis-ruler__label-outline{stroke:#FFFFFF;stroke-width:3}.sszvis-rangeFlag__mark{fill:#EFEFEF;stroke:#7C7C7C;stroke-width:1.5}.sszvis-rangeRuler__rule{opacity:0.25;shape-rendering:crispEdges;stroke:#000000}.sszvis-rangeRuler__p1,.sszvis-rangeRuler__p2{fill:#000000;opacity:0.25}.sszvis-rangeRuler__label,.sszvis-rangeRuler__total{font-size:0.625rem;fill:#545454;font-family:Arial, sans-serif;font-style:normal}.sszvis-tooltip{min-width:3.75rem;position:absolute}.sszvis-tooltip__background{position:absolute}.sszvis-tooltip__background path{fill:rgba(255, 255, 255, 0.9)}.sszvis-tooltip__background.sszvis-tooltip__background--fallback path{stroke:#ddd;stroke-width:1}.sszvis-tooltip__content{font-family:Arial;padding:0.625rem 0.625rem 0.4375rem 0.625rem;position:relative;white-space:nowrap;z-index:1}.sszvis-tooltip__content strong{font-weight:bold}.sszvis-tooltip__content em{font-weight:bold}.sszvis-tooltip__header{color:#545454;font-size:0.75rem;line-height:1.3333;vertical-align:middle}.sszvis-tooltip__body{color:#7C7C7C;font-size:0.6875rem;line-height:1.4545;vertical-align:middle}.sszvis-tooltip--small .sszvis-tooltip__content{padding:0.375rem 0.625rem 0.25rem 0.625rem;text-align:center}.sszvis-tooltip__body__table,.sszvis-tooltip__body__table td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:top}.sszvis-tooltip__body__table{border:none !important;border-collapse:collapse;border-spacing:0;min-width:7.5rem;margin-top:0.375rem;width:100%}.sszvis-tooltip__body__table tr{border-top:0.0625rem solid #E5E6E7}.sszvis-tooltip__body__table td{border:none !important;padding:0.4375rem 0.5em 0.4375rem 0 !important;text-align:left;vertical-align:top}.sszvis-tooltip__body__table tr:last-child td{padding-bottom:0.1875rem}.sszvis-tooltip__body__table td:last-child{color:#545454;font-weight:bold;padding-right:0;text-align:right}.sszvis-tooltipAnchor{pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-referenceline{stroke-width:1.5;stroke:#aaa;stroke-dasharray:3 3}.sszvis-referenceline__caption{fill:#7C7C7C;font-family:Arial, sans-serif;font-size:0.6875rem;text-anchor:middle;-webkit-backface-visibility:hidden}.sszvis-dataareacircle__caption{fill:#7C7C7C;font-family:Arial, sans-serif;font-size:0.6875rem;text-anchor:middle}.sszvis-dataarearectangle__caption{fill:#7C7C7C;font-family:Arial, sans-serif;font-size:0.6875rem;text-anchor:middle}.sszvis-legend__label{fill:#767676;font-family:Arial, sans-serif;font-size:0.75rem;font-style:normal;font-weight:normal;text-anchor:start}.sszvis-legend__label--small{fill:#767676;font-size:0.625rem}.sszvis-legend__axislabel{fill:#767676;font-family:Arial, sans-serif;font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-legend__crispmark{shape-rendering:crispEdges}.sszvis-legend__greyline{fill:none;stroke:#B8B8B8;stroke-width:1.1}.sszvis-legend__dashedline{stroke:#CCCCCC;stroke-dasharray:2 3;stroke-width:1}stzh-chart{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}stzh-chart[hidden]{display:none}stzh-chart *,stzh-chart *::before,stzh-chart *::after{-webkit-box-sizing:border-box;box-sizing:border-box}";
|
|
27155
|
+
const stzhChartCss = "@charset \"UTF-8\";:host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sszvis-outer-container{clear:both;position:relative}.sszvis-svg-layer{position:relative}.sszvis-html-layer{position:absolute}.sszvis-fallback-image{display:block;margin:0 auto;max-width:32.25rem;width:100%}.sszvis-interactive{cursor:default;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-touch-callout:none}.sszvis-interactive.sszvis-interactive--draggable{cursor:pointer;cursor:grab;cursor:-webkit-grab}.sszvis-interactive.sszvis-interactive--draggable:active{cursor:grabbing;cursor:-webkit-grabbing}:root{--stzh-font:var(--stzh-font-family-regular, \"Helvetica Neue\", Helvetica, Arial, sans-serif)}.sszvis-axis text{fill:#767676;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-axis path,.sszvis-axis line{fill:none;stroke:#b8b8b8;shape-rendering:crispEdges}.sszvis-axis .tick text.active{fill:#545454}.sszvis-axis .tick text.hidden{display:none}.sszvis-axis .tick line.hidden{display:none}.sszvis-axis.sszvis-axis--top path{display:none}.sszvis-axis.sszvis-axis--vertical path{display:none}.sszvis-axis.sszvis-axis--slider path{stroke:none}.sszvis-axis__label-contour{fill:#ffffff;opacity:0.8;stroke:#ffffff;stroke-width:3}.sszvis-bar--missing{stroke:#a4a4a4}.sszvis-line{fill:none;stroke-width:1.1}.sszvis-pyramid__referenceline{fill:none;stroke:#aaa;stroke-width:2;stroke-dasharray:3 3}.sszvis-sankey-label{alignment-baseline:central;dominant-baseline:central;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-sankey-strong-label{fill:#545454}.sszvis-sankey-weak-label{fill:#767676}.sszvis-sankey-column-label{text-anchor:middle}.sszvis-sankey-column-label-tick{stroke:#b8b8b8}.sszvis-sankey-link-source-label{text-anchor:start}.sszvis-sankey-link-target-label{text-anchor:end}.sszvis-map__area{stroke:none}.sszvis-map__border{fill:none;pointer-events:none;stroke-linejoin:round;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__highlight{fill:none;pointer-events:none;stroke-linejoin:round;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__lakezurich{pointer-events:none;stroke:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__lakepath{fill:none;pointer-events:none;stroke:#d3d3d3;stroke-width:1.25;stroke-dasharray:3 3;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__geojsonelement{pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__image{display:block;position:absolute;pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__rasterimage{display:block;position:absolute;pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-control-buttonGroup{display:inline-block;position:absolute;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-control-buttonGroup__item{background-color:#ffffff;border:0.0625rem solid #767676;border-left:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:#767676;cursor:pointer;display:table-cell;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;line-height:normal;padding:0.5625rem 0.75rem;text-align:center;vertical-align:middle}.sszvis-control-buttonGroup__item.selected{background-color:#767676;color:#ffffff}.sszvis-control-buttonGroup__item:first-child{border-left:0.0625rem solid #767676;border-top-left-radius:0.1875rem;border-bottom-left-radius:0.1875rem}.sszvis-control-buttonGroup__item:last-child{border-top-right-radius:0.1875rem;border-bottom-right-radius:0.1875rem}.sszvis-control-select{border:0.0625rem solid #767676;border-radius:0.1875rem;background-color:#ffffff;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABQElEQVR4nO3TzW2DUBDEcZdACSnBpe1lVhzdCSXZnaQE55JJSOJgMO9rH/OTOK70/iNxOomIiIiIiMi3cRzfar8hlc0tAM4A3gFMeZ5UDoDps+W86sDMBgBXd7+7+z3yCACmWcfVzIbFg9/xkUeYx68a4b/4iCM8in86wlJ8pBGW4ucj/Dhy98uzowgjrImffZevQzMb3P0WeYSN8bc/v0HkEXbHU8QRksVTpBGSx1OEEbLFU8sjZI+nFkcoFk8tjVA8nloYoVo81RyhejzVGKGZeCo5QnPxVGKEZuMp5wjNx1OOEcLEU8oRwsVTihHCxtOeEcLH0ysjdBNPW0foKp4yjBAnnhKOEC+eEowQN552jBA/nl4YoZ942jBCf/G0YoR+42lhhP7j6cEIx4mn2QjHiyczGw4bLyIiIiIiUtMHjJmBk7uXEiAAAAAASUVORK5CYII=\");background-position:96% 51%;background-repeat:no-repeat;background-size:0.75rem 0.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:2.125rem;overflow:hidden}.sszvis-control-select__element{background:transparent;border:0.0625rem solid #ffffff;color:#767676;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:1rem;height:2.125rem;outline:0}.sszvis-control-select__element:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.sszvis-control-select__metrics{font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;height:auto;position:absolute;visibility:hidden;width:auto;white-space:nowrap}.sszvis-control-slider__handle{cursor:pointer}.sszvis-control-slider--label{fill:#545454;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;text-anchor:middle}.sszvis-control-slider__handlebox{fill:#fff;stroke:#545454}.sszvis-control-slider__handleline{stroke:#545454}.sszvis-handleRuler__handle{fill:#ffffff;stroke:#808184}.sszvis-handleRuler__handle-mark{stroke:#a6a8ab}.sszvis-ruler__rule{shape-rendering:crispEdges;stroke:#cccccc}.sszvis-ruler__dot{stroke:#ffffff;stroke-width:1.5}.sszvis-ruler__label,.sszvis-ruler__label-outline{font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;font-style:normal;font-weight:normal}.sszvis-ruler__label{fill:#545454}.sszvis-ruler__label-outline{stroke:#ffffff;stroke-width:3}.sszvis-rangeFlag__mark{fill:#efefef;stroke:#7c7c7c;stroke-width:1.5}.sszvis-rangeRuler__rule{opacity:0.25;shape-rendering:crispEdges;stroke:#000000}.sszvis-rangeRuler__p1,.sszvis-rangeRuler__p2{fill:#000000;opacity:0.25}.sszvis-rangeRuler__label,.sszvis-rangeRuler__total{font-size:0.625rem;fill:#545454;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-style:normal}.sszvis-tooltip{min-width:3.75rem;position:absolute}.sszvis-tooltip__background{position:absolute}.sszvis-tooltip__background path{fill:rgba(255, 255, 255, 0.9)}.sszvis-tooltip__background.sszvis-tooltip__background--fallback path{stroke:#ddd;stroke-width:1}.sszvis-tooltip__content{font-family:Arial;padding:0.625rem 0.625rem 0.4375rem 0.625rem;position:relative;white-space:nowrap;z-index:1}.sszvis-tooltip__content strong{font-weight:bold}.sszvis-tooltip__content em{font-weight:bold}.sszvis-tooltip__header{color:#545454;font-size:0.75rem;line-height:1.3333;vertical-align:middle}.sszvis-tooltip__body{color:#7c7c7c;font-size:0.6875rem;line-height:1.4545;vertical-align:middle}.sszvis-tooltip--small .sszvis-tooltip__content{padding:0.375rem 0.625rem 0.25rem 0.625rem;text-align:center}.sszvis-tooltip__body__table,.sszvis-tooltip__body__table td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:top}.sszvis-tooltip__body__table{border:none !important;border-collapse:collapse;border-spacing:0;min-width:7.5rem;margin-top:0.375rem;width:100%}.sszvis-tooltip__body__table tr{border-top:0.0625rem solid #e5e6e7}.sszvis-tooltip__body__table td{border:none !important;padding:0.4375rem 0.5em 0.4375rem 0 !important;text-align:left;vertical-align:top}.sszvis-tooltip__body__table tr:last-child td{padding-bottom:0.1875rem}.sszvis-tooltip__body__table td:last-child{color:#545454;font-weight:bold;padding-right:0;text-align:right}.sszvis-tooltipAnchor{pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-referenceline{stroke-width:1.5;stroke:#aaa;stroke-dasharray:3 3}.sszvis-referenceline__caption{fill:#7c7c7c;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.6875rem;text-anchor:middle;-webkit-backface-visibility:hidden}.sszvis-dataareacircle__caption{fill:#7c7c7c;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.6875rem;text-anchor:middle}.sszvis-dataarearectangle__caption{fill:#7c7c7c;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.6875rem;text-anchor:middle}.sszvis-legend__label{fill:#767676;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;font-style:normal;font-weight:normal;text-anchor:start}.sszvis-legend__label--small{fill:#767676;font-size:0.625rem}.sszvis-legend__axislabel{fill:#767676;font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-legend__crispmark{shape-rendering:crispEdges}.sszvis-legend__greyline{fill:none;stroke:#b8b8b8;stroke-width:1.1}.sszvis-legend__dashedline{stroke:#cccccc;stroke-dasharray:2 3;stroke-width:1}stzh-chart{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}stzh-chart[hidden]{display:none}stzh-chart *,stzh-chart *::before,stzh-chart *::after{-webkit-box-sizing:border-box;box-sizing:border-box}";
|
|
26089
27156
|
|
|
26090
27157
|
const StzhChart$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
26091
27158
|
constructor() {
|