@oiz/stzh-components 2.2.0-beta → 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/{animation-utils-cfa35ce7.js → animation-utils-54d784c2.js} +3 -0
- package/dist/cjs/{app-globals-f4ad4e99.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 +6 -3
- 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 +3 -3
- package/dist/cjs/stzh-calendar.cjs.entry.js +2 -2
- package/dist/cjs/stzh-card_3.cjs.entry.js +47 -12
- 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 +3 -3
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -3
- 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 +4 -3
- 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 +4 -4
- package/dist/cjs/stzh-details.cjs.entry.js +5 -2
- package/dist/cjs/stzh-dialog.cjs.entry.js +6 -6
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1057 -426
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/stzh-message.cjs.entry.js +2 -2
- package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +4 -4
- package/dist/cjs/stzh-olmap.cjs.entry.js +2 -2
- 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 +22 -8
- 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 +4 -2
- package/dist/cjs/stzh-toggle.cjs.entry.js +3 -3
- package/dist/cjs/stzh-tooltip.cjs.entry.js +32 -11
- package/dist/cjs/stzh-upload.cjs.entry.js +6 -3
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +784 -691
- 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 +10 -7
- package/dist/collection/assets/i18n/en.json +11 -8
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +12 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +1 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +3 -0
- 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 +13 -4
- package/dist/collection/components/stzh-button/stzh-button.stories.js +21 -17
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -0
- package/dist/collection/components/stzh-card/stzh-card.css +34 -16
- package/dist/collection/components/stzh-card/stzh-card.js +26 -4
- 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-checkbox/stzh-checkbox.css +1 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +1 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +68 -6
- package/dist/collection/components/stzh-chip/stzh-chip.js +52 -5
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +8 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +41 -4
- 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 -12
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +35 -13
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +11 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +3 -2
- 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-details/stzh-details.js +3 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +1 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +3 -3
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -0
- 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 +13 -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 +47 -39
- 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-icon/stzh-icon.js +1 -1
- package/dist/collection/components/stzh-input/stzh-input.css +1 -0
- 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.css +1 -0
- package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +1 -0
- package/dist/collection/components/stzh-message/stzh-message.css +1 -0
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
- package/dist/collection/components/stzh-olmap/stzh-olmap.js +1 -1
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.stories.js +1 -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 +3 -1
- package/dist/collection/components/stzh-popover/stzh-popover.js +18 -4
- 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 +147 -10
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
- package/dist/collection/components/stzh-radio/stzh-radio.css +1 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +1 -0
- 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-textandimage/stzh-textandimage.css +38 -2
- package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +20 -0
- package/dist/collection/components/stzh-toggle/stzh-toggle.css +1 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +1 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +28 -7
- package/dist/collection/components/stzh-upload/stzh-upload.css +1 -0
- package/dist/collection/components/stzh-upload/stzh-upload.js +3 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +2 -1
- 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 +191 -183
- package/dist/collection/pages/meinkonto.stories.js +368 -512
- 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 +67 -41
- 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 +6 -6
- package/dist/collection/patterns/twocolumns.stories.js +46 -0
- package/dist/collection/utils/animation-utils.js +3 -0
- package/dist/components/animation-utils.js +3 -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-accordion-item.js +4 -1
- 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 +3 -160
- package/dist/components/stzh-card2.js +9 -5
- package/dist/components/stzh-chart.js +1470 -403
- package/dist/components/stzh-checkbox.js +1 -1
- package/dist/components/stzh-checkboxgroup.js +1 -1
- package/dist/components/stzh-chip-select2.js +47 -8
- package/dist/components/stzh-chip2.js +26 -6
- 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-datamessagelist-item.js +3 -2
- package/dist/components/stzh-datatable.js +32 -30
- package/dist/components/stzh-datepicker2.js +2 -1
- package/dist/components/stzh-details.js +3 -0
- package/dist/components/stzh-dialog.js +4 -4
- package/dist/components/stzh-dropdown2.js +1055 -424
- 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-icon2.js +1 -1
- package/dist/components/stzh-input2.js +1 -1
- package/dist/components/stzh-invert.d.ts +11 -0
- package/dist/components/stzh-invert.js +36 -0
- package/dist/components/stzh-link2.js +1 -1
- package/dist/components/stzh-menu-item2.js +1 -1
- package/dist/components/stzh-message.js +1 -1
- package/dist/components/stzh-microsite-teaserlist.js +2 -2
- package/dist/components/stzh-olmap.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 +18 -4
- 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-radio2.js +1 -1
- package/dist/components/stzh-radiogroup2.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-textandimage.js +4 -1
- package/dist/components/stzh-toggle.js +1 -1
- package/dist/components/stzh-tooltip2.js +28 -7
- package/dist/components/stzh-upload.js +4 -1
- package/dist/components/stzh-vbz-linechip2.js +774 -681
- 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/{animation-utils-25c74e5b.js → animation-utils-e234a5f8.js} +3 -0
- package/dist/esm/{app-globals-17c2ba8d.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 +6 -3
- 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 +3 -3
- package/dist/esm/stzh-calendar.entry.js +2 -2
- package/dist/esm/stzh-card_3.entry.js +47 -12
- 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 +3 -3
- package/dist/esm/stzh-checkboxgroup.entry.js +3 -3
- 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 +4 -3
- 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 +4 -4
- package/dist/esm/stzh-details.entry.js +5 -2
- package/dist/esm/stzh-dialog.entry.js +6 -6
- package/dist/esm/stzh-dropdown.entry.js +1057 -426
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/stzh-message.entry.js +2 -2
- package/dist/esm/stzh-metanav.entry.js +1 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +3 -3
- package/dist/esm/stzh-olmap.entry.js +2 -2
- 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 +22 -8
- 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 +4 -2
- package/dist/esm/stzh-toggle.entry.js +3 -3
- package/dist/esm/stzh-tooltip.entry.js +32 -11
- package/dist/esm/stzh-upload.entry.js +6 -3
- package/dist/esm/stzh-vbz-linechip.entry.js +785 -692
- 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/animation-utils-e234a5f8.js +1 -0
- 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 +2 -2
- 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 +10 -7
- package/dist/stzh-components/assets/i18n/en.json +11 -8
- 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-04d390eb.entry.js +1 -0
- 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-2e6ef670.entry.js +1 -0
- 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-3145cd2f.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-5011f10c.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-6267a327.system.js → p-5494f37d.system.js} +1 -1
- 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-705aa56d.entry.js +1 -0
- 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-2b5b1e4a.system.entry.js → p-7e4261ce.system.entry.js} +2 -2
- package/dist/stzh-components/{p-f5db6234.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-8715198b.entry.js +1 -0
- 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-68400ee7.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-5c3c9ad4.entry.js → p-b6e6f847.entry.js} +1 -1
- package/dist/stzh-components/p-b92734db.entry.js +1 -0
- package/dist/stzh-components/p-b9427914.entry.js +1 -0
- 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-bc36fda4.system.entry.js +1 -0
- 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-c33b7d23.entry.js +1 -0
- 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-4c7e52aa.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-fd15cc86.entry.js +1 -0
- 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 +2 -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 +2 -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 +2 -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 +416 -22
- package/dist/types/index.d.ts +139 -132
- 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 +675 -104
- 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 -99
- 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 -95
- package/dist/esm/stzh-clamp.entry.js +0 -23
- package/dist/esm/stzh-contactaddress.entry.js +0 -87
- package/dist/esm-es5/animation-utils-25c74e5b.js +0 -1
- package/dist/esm-es5/app-globals-17c2ba8d.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-02fd7470.entry.js +0 -1
- package/dist/stzh-components/p-037357fc.system.entry.js +0 -1
- package/dist/stzh-components/p-04a45622.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-0b264a7a.entry.js +0 -1
- package/dist/stzh-components/p-0b9dc96d.system.js +0 -1
- package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
- package/dist/stzh-components/p-171c5795.system.entry.js +0 -1
- package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
- package/dist/stzh-components/p-1ca12032.system.entry.js +0 -1
- package/dist/stzh-components/p-1da26ca1.entry.js +0 -1
- package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
- package/dist/stzh-components/p-1fe1169e.entry.js +0 -1
- package/dist/stzh-components/p-213959b7.entry.js +0 -1
- package/dist/stzh-components/p-22b06793.entry.js +0 -1
- package/dist/stzh-components/p-231e6e6a.system.entry.js +0 -1
- package/dist/stzh-components/p-2862cdd8.system.entry.js +0 -1
- package/dist/stzh-components/p-2a5855f8.js +0 -1
- package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
- package/dist/stzh-components/p-31029226.entry.js +0 -1
- package/dist/stzh-components/p-311813bc.system.entry.js +0 -1
- package/dist/stzh-components/p-31c3469c.entry.js +0 -1
- package/dist/stzh-components/p-34b45788.entry.js +0 -7
- package/dist/stzh-components/p-3848d8ee.entry.js +0 -1
- package/dist/stzh-components/p-38f9cbf3.system.entry.js +0 -1
- package/dist/stzh-components/p-3905ca20.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-40a19ce6.js +0 -10
- package/dist/stzh-components/p-4228cd58.system.entry.js +0 -1
- package/dist/stzh-components/p-441ea784.entry.js +0 -1
- package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
- package/dist/stzh-components/p-4bd7dafb.system.entry.js +0 -1
- package/dist/stzh-components/p-4cd9f5c7.system.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-55f6fa41.system.entry.js +0 -1
- package/dist/stzh-components/p-57237509.system.entry.js +0 -1
- package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
- package/dist/stzh-components/p-5b379647.system.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-64422176.entry.js +0 -9
- package/dist/stzh-components/p-65675e11.entry.js +0 -1
- package/dist/stzh-components/p-661831da.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-7684506e.system.entry.js +0 -1
- package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
- package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
- package/dist/stzh-components/p-7da446d5.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-83830baa.system.entry.js +0 -1
- package/dist/stzh-components/p-84c86e4c.system.entry.js +0 -1
- package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
- package/dist/stzh-components/p-88cbd2c0.entry.js +0 -1
- package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
- 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-99f92c6d.system.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-a17754c7.system.entry.js +0 -1
- package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
- package/dist/stzh-components/p-a795868f.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-ab28e094.system.entry.js +0 -1
- package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
- package/dist/stzh-components/p-addc48e5.entry.js +0 -1
- package/dist/stzh-components/p-af0ab448.system.entry.js +0 -1
- package/dist/stzh-components/p-af63f1a4.entry.js +0 -1
- package/dist/stzh-components/p-b0fe9349.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-ba0b93c4.system.entry.js +0 -9
- package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
- package/dist/stzh-components/p-c065387a.entry.js +0 -1
- package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
- package/dist/stzh-components/p-c26aec94.entry.js +0 -1
- package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
- package/dist/stzh-components/p-c42435be.entry.js +0 -1
- package/dist/stzh-components/p-cf6003d6.js +0 -1
- package/dist/stzh-components/p-cfc0bc2e.system.entry.js +0 -1
- package/dist/stzh-components/p-d1d5825d.entry.js +0 -1
- package/dist/stzh-components/p-d4405931.system.entry.js +0 -1
- package/dist/stzh-components/p-d5c0801b.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-dce19efd.entry.js +0 -1
- 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-e2e54f09.system.js +0 -1
- package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
- package/dist/stzh-components/p-e71cd5cd.system.entry.js +0 -1
- package/dist/stzh-components/p-e72ca013.system.entry.js +0 -1
- package/dist/stzh-components/p-e76a3647.entry.js +0 -1
- package/dist/stzh-components/p-e812d35e.system.entry.js +0 -1
- package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
- package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
- package/dist/stzh-components/p-f37be5d7.entry.js +0 -1
- package/dist/stzh-components/p-f59b3545.system.entry.js +0 -1
- package/dist/stzh-components/p-f792fc8f.entry.js +0 -1
- package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$4 = require('./index-
|
|
5
|
+
const index$4 = require('./index-83d427ee.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
|
|
7
7
|
|
|
8
8
|
var version = "4.13.0";
|
|
@@ -5036,10 +5036,10 @@ function ribbon() {
|
|
|
5036
5036
|
|
|
5037
5037
|
var prefix = "$";
|
|
5038
5038
|
|
|
5039
|
-
function Map() {}
|
|
5039
|
+
function Map$1() {}
|
|
5040
5040
|
|
|
5041
|
-
Map.prototype = map$1.prototype = {
|
|
5042
|
-
constructor: Map,
|
|
5041
|
+
Map$1.prototype = map$1.prototype = {
|
|
5042
|
+
constructor: Map$1,
|
|
5043
5043
|
has: function(key) {
|
|
5044
5044
|
return (prefix + key) in this;
|
|
5045
5045
|
},
|
|
@@ -5087,10 +5087,10 @@ Map.prototype = map$1.prototype = {
|
|
|
5087
5087
|
};
|
|
5088
5088
|
|
|
5089
5089
|
function map$1(object, f) {
|
|
5090
|
-
var map = new Map;
|
|
5090
|
+
var map = new Map$1;
|
|
5091
5091
|
|
|
5092
5092
|
// Copy constructor.
|
|
5093
|
-
if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });
|
|
5093
|
+
if (object instanceof Map$1) object.each(function(value, key) { map.set(key, value); });
|
|
5094
5094
|
|
|
5095
5095
|
// Index array by numeric index or specified key function.
|
|
5096
5096
|
else if (Array.isArray(object)) {
|
|
@@ -5180,12 +5180,12 @@ function setMap(map, key, value) {
|
|
|
5180
5180
|
map.set(key, value);
|
|
5181
5181
|
}
|
|
5182
5182
|
|
|
5183
|
-
function Set() {}
|
|
5183
|
+
function Set$1() {}
|
|
5184
5184
|
|
|
5185
5185
|
var proto = map$1.prototype;
|
|
5186
5186
|
|
|
5187
|
-
Set.prototype = set.prototype = {
|
|
5188
|
-
constructor: Set,
|
|
5187
|
+
Set$1.prototype = set.prototype = {
|
|
5188
|
+
constructor: Set$1,
|
|
5189
5189
|
has: proto.has,
|
|
5190
5190
|
add: function(value) {
|
|
5191
5191
|
value += "";
|
|
@@ -5201,10 +5201,10 @@ Set.prototype = set.prototype = {
|
|
|
5201
5201
|
};
|
|
5202
5202
|
|
|
5203
5203
|
function set(object, f) {
|
|
5204
|
-
var set = new Set;
|
|
5204
|
+
var set = new Set$1;
|
|
5205
5205
|
|
|
5206
5206
|
// Copy constructor.
|
|
5207
|
-
if (object instanceof Set) object.each(function(value) { set.add(value); });
|
|
5207
|
+
if (object instanceof Set$1) object.each(function(value) { set.add(value); });
|
|
5208
5208
|
|
|
5209
5209
|
// Otherwise, assume it’s an array.
|
|
5210
5210
|
else if (object) {
|
|
@@ -17159,46 +17159,945 @@ const d3 = /*#__PURE__*/Object.freeze({
|
|
|
17159
17159
|
const require$$0 = /*@__PURE__*/_commonjsHelpers.getAugmentedNamespace(d3);
|
|
17160
17160
|
|
|
17161
17161
|
var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
17162
|
-
/*! sszvis v2.
|
|
17162
|
+
/*! sszvis v2.4.1, Copyright 2014-present Statistik Stadt Zürich */
|
|
17163
17163
|
(function (global, factory) {
|
|
17164
17164
|
factory(exports, require$$0) ;
|
|
17165
17165
|
}(_commonjsHelpers.commonjsGlobal, (function (exports, d3) {
|
|
17166
|
+
var d3__default = 'default' in d3 ? d3['default'] : d3;
|
|
17167
|
+
|
|
17168
|
+
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);
|
|
17169
|
+
|
|
17166
17170
|
/**
|
|
17167
|
-
*
|
|
17168
|
-
* recreated when rendered again.
|
|
17169
|
-
*
|
|
17170
|
-
* @see https://github.com/mbostock/d3/wiki/Selections
|
|
17171
|
-
*
|
|
17172
|
-
* @param {String} key - the name of the group
|
|
17173
|
-
* @return {d3.selection}
|
|
17171
|
+
* @this {Promise}
|
|
17174
17172
|
*/
|
|
17173
|
+
function finallyConstructor(callback) {
|
|
17174
|
+
var constructor = this.constructor;
|
|
17175
|
+
return this.then(
|
|
17176
|
+
function(value) {
|
|
17177
|
+
// @ts-ignore
|
|
17178
|
+
return constructor.resolve(callback()).then(function() {
|
|
17179
|
+
return value;
|
|
17180
|
+
});
|
|
17181
|
+
},
|
|
17182
|
+
function(reason) {
|
|
17183
|
+
// @ts-ignore
|
|
17184
|
+
return constructor.resolve(callback()).then(function() {
|
|
17185
|
+
// @ts-ignore
|
|
17186
|
+
return constructor.reject(reason);
|
|
17187
|
+
});
|
|
17188
|
+
}
|
|
17189
|
+
);
|
|
17190
|
+
}
|
|
17175
17191
|
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
|
|
17192
|
+
// Store setTimeout reference so promise-polyfill will be unaffected by
|
|
17193
|
+
// other code modifying setTimeout (like sinon.useFakeTimers())
|
|
17194
|
+
var setTimeoutFunc = setTimeout;
|
|
17195
|
+
|
|
17196
|
+
function isArray(x) {
|
|
17197
|
+
return Boolean(x && typeof x.length !== 'undefined');
|
|
17198
|
+
}
|
|
17199
|
+
|
|
17200
|
+
function noop() {}
|
|
17201
|
+
|
|
17202
|
+
// Polyfill for Function.prototype.bind
|
|
17203
|
+
function bind(fn, thisArg) {
|
|
17204
|
+
return function() {
|
|
17205
|
+
fn.apply(thisArg, arguments);
|
|
17206
|
+
};
|
|
17207
|
+
}
|
|
17208
|
+
|
|
17209
|
+
/**
|
|
17210
|
+
* @constructor
|
|
17211
|
+
* @param {Function} fn
|
|
17212
|
+
*/
|
|
17213
|
+
function Promise$1(fn) {
|
|
17214
|
+
if (!(this instanceof Promise$1))
|
|
17215
|
+
throw new TypeError('Promises must be constructed via new');
|
|
17216
|
+
if (typeof fn !== 'function') throw new TypeError('not a function');
|
|
17217
|
+
/** @type {!number} */
|
|
17218
|
+
this._state = 0;
|
|
17219
|
+
/** @type {!boolean} */
|
|
17220
|
+
this._handled = false;
|
|
17221
|
+
/** @type {Promise|undefined} */
|
|
17222
|
+
this._value = undefined;
|
|
17223
|
+
/** @type {!Array<!Function>} */
|
|
17224
|
+
this._deferreds = [];
|
|
17225
|
+
|
|
17226
|
+
doResolve(fn, this);
|
|
17227
|
+
}
|
|
17228
|
+
|
|
17229
|
+
function handle(self, deferred) {
|
|
17230
|
+
while (self._state === 3) {
|
|
17231
|
+
self = self._value;
|
|
17232
|
+
}
|
|
17233
|
+
if (self._state === 0) {
|
|
17234
|
+
self._deferreds.push(deferred);
|
|
17235
|
+
return;
|
|
17236
|
+
}
|
|
17237
|
+
self._handled = true;
|
|
17238
|
+
Promise$1._immediateFn(function() {
|
|
17239
|
+
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
17240
|
+
if (cb === null) {
|
|
17241
|
+
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
|
17242
|
+
return;
|
|
17243
|
+
}
|
|
17244
|
+
var ret;
|
|
17245
|
+
try {
|
|
17246
|
+
ret = cb(self._value);
|
|
17247
|
+
} catch (e) {
|
|
17248
|
+
reject(deferred.promise, e);
|
|
17249
|
+
return;
|
|
17250
|
+
}
|
|
17251
|
+
resolve(deferred.promise, ret);
|
|
17179
17252
|
});
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17253
|
+
}
|
|
17254
|
+
|
|
17255
|
+
function resolve(self, newValue) {
|
|
17256
|
+
try {
|
|
17257
|
+
// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
|
|
17258
|
+
if (newValue === self)
|
|
17259
|
+
throw new TypeError('A promise cannot be resolved with itself.');
|
|
17260
|
+
if (
|
|
17261
|
+
newValue &&
|
|
17262
|
+
(typeof newValue === 'object' || typeof newValue === 'function')
|
|
17263
|
+
) {
|
|
17264
|
+
var then = newValue.then;
|
|
17265
|
+
if (newValue instanceof Promise$1) {
|
|
17266
|
+
self._state = 3;
|
|
17267
|
+
self._value = newValue;
|
|
17268
|
+
finale(self);
|
|
17269
|
+
return;
|
|
17270
|
+
} else if (typeof then === 'function') {
|
|
17271
|
+
doResolve(bind(then, newValue), self);
|
|
17272
|
+
return;
|
|
17273
|
+
}
|
|
17274
|
+
}
|
|
17275
|
+
self._state = 1;
|
|
17276
|
+
self._value = newValue;
|
|
17277
|
+
finale(self);
|
|
17278
|
+
} catch (e) {
|
|
17279
|
+
reject(self, e);
|
|
17280
|
+
}
|
|
17281
|
+
}
|
|
17282
|
+
|
|
17283
|
+
function reject(self, newValue) {
|
|
17284
|
+
self._state = 2;
|
|
17285
|
+
self._value = newValue;
|
|
17286
|
+
finale(self);
|
|
17287
|
+
}
|
|
17288
|
+
|
|
17289
|
+
function finale(self) {
|
|
17290
|
+
if (self._state === 2 && self._deferreds.length === 0) {
|
|
17291
|
+
Promise$1._immediateFn(function() {
|
|
17292
|
+
if (!self._handled) {
|
|
17293
|
+
Promise$1._unhandledRejectionFn(self._value);
|
|
17294
|
+
}
|
|
17295
|
+
});
|
|
17296
|
+
}
|
|
17297
|
+
|
|
17298
|
+
for (var i = 0, len = self._deferreds.length; i < len; i++) {
|
|
17299
|
+
handle(self, self._deferreds[i]);
|
|
17300
|
+
}
|
|
17301
|
+
self._deferreds = null;
|
|
17302
|
+
}
|
|
17183
17303
|
|
|
17184
17304
|
/**
|
|
17185
|
-
*
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17305
|
+
* @constructor
|
|
17306
|
+
*/
|
|
17307
|
+
function Handler(onFulfilled, onRejected, promise) {
|
|
17308
|
+
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
17309
|
+
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
17310
|
+
this.promise = promise;
|
|
17311
|
+
}
|
|
17312
|
+
|
|
17313
|
+
/**
|
|
17314
|
+
* Take a potentially misbehaving resolver function and make sure
|
|
17315
|
+
* onFulfilled and onRejected are only called once.
|
|
17189
17316
|
*
|
|
17190
|
-
*
|
|
17191
|
-
* @return {d3.selection}
|
|
17317
|
+
* Makes no guarantees about asynchrony.
|
|
17192
17318
|
*/
|
|
17319
|
+
function doResolve(fn, self) {
|
|
17320
|
+
var done = false;
|
|
17321
|
+
try {
|
|
17322
|
+
fn(
|
|
17323
|
+
function(value) {
|
|
17324
|
+
if (done) return;
|
|
17325
|
+
done = true;
|
|
17326
|
+
resolve(self, value);
|
|
17327
|
+
},
|
|
17328
|
+
function(reason) {
|
|
17329
|
+
if (done) return;
|
|
17330
|
+
done = true;
|
|
17331
|
+
reject(self, reason);
|
|
17332
|
+
}
|
|
17333
|
+
);
|
|
17334
|
+
} catch (ex) {
|
|
17335
|
+
if (done) return;
|
|
17336
|
+
done = true;
|
|
17337
|
+
reject(self, ex);
|
|
17338
|
+
}
|
|
17339
|
+
}
|
|
17193
17340
|
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17341
|
+
Promise$1.prototype['catch'] = function(onRejected) {
|
|
17342
|
+
return this.then(null, onRejected);
|
|
17343
|
+
};
|
|
17344
|
+
|
|
17345
|
+
Promise$1.prototype.then = function(onFulfilled, onRejected) {
|
|
17346
|
+
// @ts-ignore
|
|
17347
|
+
var prom = new this.constructor(noop);
|
|
17348
|
+
|
|
17349
|
+
handle(this, new Handler(onFulfilled, onRejected, prom));
|
|
17350
|
+
return prom;
|
|
17351
|
+
};
|
|
17352
|
+
|
|
17353
|
+
Promise$1.prototype['finally'] = finallyConstructor;
|
|
17354
|
+
|
|
17355
|
+
Promise$1.all = function(arr) {
|
|
17356
|
+
return new Promise$1(function(resolve, reject) {
|
|
17357
|
+
if (!isArray(arr)) {
|
|
17358
|
+
return reject(new TypeError('Promise.all accepts an array'));
|
|
17359
|
+
}
|
|
17360
|
+
|
|
17361
|
+
var args = Array.prototype.slice.call(arr);
|
|
17362
|
+
if (args.length === 0) return resolve([]);
|
|
17363
|
+
var remaining = args.length;
|
|
17364
|
+
|
|
17365
|
+
function res(i, val) {
|
|
17366
|
+
try {
|
|
17367
|
+
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
17368
|
+
var then = val.then;
|
|
17369
|
+
if (typeof then === 'function') {
|
|
17370
|
+
then.call(
|
|
17371
|
+
val,
|
|
17372
|
+
function(val) {
|
|
17373
|
+
res(i, val);
|
|
17374
|
+
},
|
|
17375
|
+
reject
|
|
17376
|
+
);
|
|
17377
|
+
return;
|
|
17378
|
+
}
|
|
17379
|
+
}
|
|
17380
|
+
args[i] = val;
|
|
17381
|
+
if (--remaining === 0) {
|
|
17382
|
+
resolve(args);
|
|
17383
|
+
}
|
|
17384
|
+
} catch (ex) {
|
|
17385
|
+
reject(ex);
|
|
17386
|
+
}
|
|
17387
|
+
}
|
|
17388
|
+
|
|
17389
|
+
for (var i = 0; i < args.length; i++) {
|
|
17390
|
+
res(i, args[i]);
|
|
17391
|
+
}
|
|
17392
|
+
});
|
|
17393
|
+
};
|
|
17394
|
+
|
|
17395
|
+
Promise$1.resolve = function(value) {
|
|
17396
|
+
if (value && typeof value === 'object' && value.constructor === Promise$1) {
|
|
17397
|
+
return value;
|
|
17398
|
+
}
|
|
17399
|
+
|
|
17400
|
+
return new Promise$1(function(resolve) {
|
|
17401
|
+
resolve(value);
|
|
17197
17402
|
});
|
|
17198
|
-
var newGroup = group.enter().append("g").attr("data-d3-selectgroup", key);
|
|
17199
|
-
return group.merge(newGroup);
|
|
17200
17403
|
};
|
|
17201
17404
|
|
|
17405
|
+
Promise$1.reject = function(value) {
|
|
17406
|
+
return new Promise$1(function(resolve, reject) {
|
|
17407
|
+
reject(value);
|
|
17408
|
+
});
|
|
17409
|
+
};
|
|
17410
|
+
|
|
17411
|
+
Promise$1.race = function(arr) {
|
|
17412
|
+
return new Promise$1(function(resolve, reject) {
|
|
17413
|
+
if (!isArray(arr)) {
|
|
17414
|
+
return reject(new TypeError('Promise.race accepts an array'));
|
|
17415
|
+
}
|
|
17416
|
+
|
|
17417
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
17418
|
+
Promise$1.resolve(arr[i]).then(resolve, reject);
|
|
17419
|
+
}
|
|
17420
|
+
});
|
|
17421
|
+
};
|
|
17422
|
+
|
|
17423
|
+
// Use polyfill for setImmediate for performance gains
|
|
17424
|
+
Promise$1._immediateFn =
|
|
17425
|
+
// @ts-ignore
|
|
17426
|
+
(typeof setImmediate === 'function' &&
|
|
17427
|
+
function(fn) {
|
|
17428
|
+
// @ts-ignore
|
|
17429
|
+
setImmediate(fn);
|
|
17430
|
+
}) ||
|
|
17431
|
+
function(fn) {
|
|
17432
|
+
setTimeoutFunc(fn, 0);
|
|
17433
|
+
};
|
|
17434
|
+
|
|
17435
|
+
Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) {
|
|
17436
|
+
if (typeof console !== 'undefined' && console) {
|
|
17437
|
+
console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
|
|
17438
|
+
}
|
|
17439
|
+
};
|
|
17440
|
+
|
|
17441
|
+
/** @suppress {undefinedVars} */
|
|
17442
|
+
var globalNS = (function() {
|
|
17443
|
+
// the only reliable means to get the global object is
|
|
17444
|
+
// `Function('return this')()`
|
|
17445
|
+
// However, this causes CSP violations in Chrome apps.
|
|
17446
|
+
if (typeof self !== 'undefined') {
|
|
17447
|
+
return self;
|
|
17448
|
+
}
|
|
17449
|
+
if (typeof window !== 'undefined') {
|
|
17450
|
+
return window;
|
|
17451
|
+
}
|
|
17452
|
+
if (typeof _commonjsHelpers.commonjsGlobal !== 'undefined') {
|
|
17453
|
+
return _commonjsHelpers.commonjsGlobal;
|
|
17454
|
+
}
|
|
17455
|
+
throw new Error('unable to locate global object');
|
|
17456
|
+
})();
|
|
17457
|
+
|
|
17458
|
+
if (!('Promise' in globalNS)) {
|
|
17459
|
+
globalNS['Promise'] = Promise$1;
|
|
17460
|
+
} else if (!globalNS.Promise.prototype['finally']) {
|
|
17461
|
+
globalNS.Promise.prototype['finally'] = finallyConstructor;
|
|
17462
|
+
}
|
|
17463
|
+
|
|
17464
|
+
var global$1 = (function(self) {
|
|
17465
|
+
return self
|
|
17466
|
+
// eslint-disable-next-line no-invalid-this
|
|
17467
|
+
})(typeof self !== 'undefined' ? self : window);
|
|
17468
|
+
var support = {
|
|
17469
|
+
searchParams: 'URLSearchParams' in global$1,
|
|
17470
|
+
iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
|
|
17471
|
+
blob:
|
|
17472
|
+
'FileReader' in global$1 &&
|
|
17473
|
+
'Blob' in global$1 &&
|
|
17474
|
+
(function() {
|
|
17475
|
+
try {
|
|
17476
|
+
new Blob();
|
|
17477
|
+
return true
|
|
17478
|
+
} catch (e) {
|
|
17479
|
+
return false
|
|
17480
|
+
}
|
|
17481
|
+
})(),
|
|
17482
|
+
formData: 'FormData' in global$1,
|
|
17483
|
+
arrayBuffer: 'ArrayBuffer' in global$1
|
|
17484
|
+
};
|
|
17485
|
+
|
|
17486
|
+
function isDataView(obj) {
|
|
17487
|
+
return obj && DataView.prototype.isPrototypeOf(obj)
|
|
17488
|
+
}
|
|
17489
|
+
|
|
17490
|
+
if (support.arrayBuffer) {
|
|
17491
|
+
var viewClasses = [
|
|
17492
|
+
'[object Int8Array]',
|
|
17493
|
+
'[object Uint8Array]',
|
|
17494
|
+
'[object Uint8ClampedArray]',
|
|
17495
|
+
'[object Int16Array]',
|
|
17496
|
+
'[object Uint16Array]',
|
|
17497
|
+
'[object Int32Array]',
|
|
17498
|
+
'[object Uint32Array]',
|
|
17499
|
+
'[object Float32Array]',
|
|
17500
|
+
'[object Float64Array]'
|
|
17501
|
+
];
|
|
17502
|
+
|
|
17503
|
+
var isArrayBufferView =
|
|
17504
|
+
ArrayBuffer.isView ||
|
|
17505
|
+
function(obj) {
|
|
17506
|
+
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
|
17507
|
+
};
|
|
17508
|
+
}
|
|
17509
|
+
|
|
17510
|
+
function normalizeName(name) {
|
|
17511
|
+
if (typeof name !== 'string') {
|
|
17512
|
+
name = String(name);
|
|
17513
|
+
}
|
|
17514
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
|
|
17515
|
+
throw new TypeError('Invalid character in header field name')
|
|
17516
|
+
}
|
|
17517
|
+
return name.toLowerCase()
|
|
17518
|
+
}
|
|
17519
|
+
|
|
17520
|
+
function normalizeValue(value) {
|
|
17521
|
+
if (typeof value !== 'string') {
|
|
17522
|
+
value = String(value);
|
|
17523
|
+
}
|
|
17524
|
+
return value
|
|
17525
|
+
}
|
|
17526
|
+
|
|
17527
|
+
// Build a destructive iterator for the value list
|
|
17528
|
+
function iteratorFor(items) {
|
|
17529
|
+
var iterator = {
|
|
17530
|
+
next: function() {
|
|
17531
|
+
var value = items.shift();
|
|
17532
|
+
return {done: value === undefined, value: value}
|
|
17533
|
+
}
|
|
17534
|
+
};
|
|
17535
|
+
|
|
17536
|
+
if (support.iterable) {
|
|
17537
|
+
iterator[Symbol.iterator] = function() {
|
|
17538
|
+
return iterator
|
|
17539
|
+
};
|
|
17540
|
+
}
|
|
17541
|
+
|
|
17542
|
+
return iterator
|
|
17543
|
+
}
|
|
17544
|
+
|
|
17545
|
+
function Headers(headers) {
|
|
17546
|
+
this.map = {};
|
|
17547
|
+
|
|
17548
|
+
if (headers instanceof Headers) {
|
|
17549
|
+
headers.forEach(function(value, name) {
|
|
17550
|
+
this.append(name, value);
|
|
17551
|
+
}, this);
|
|
17552
|
+
} else if (Array.isArray(headers)) {
|
|
17553
|
+
headers.forEach(function(header) {
|
|
17554
|
+
this.append(header[0], header[1]);
|
|
17555
|
+
}, this);
|
|
17556
|
+
} else if (headers) {
|
|
17557
|
+
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
|
17558
|
+
this.append(name, headers[name]);
|
|
17559
|
+
}, this);
|
|
17560
|
+
}
|
|
17561
|
+
}
|
|
17562
|
+
|
|
17563
|
+
Headers.prototype.append = function(name, value) {
|
|
17564
|
+
name = normalizeName(name);
|
|
17565
|
+
value = normalizeValue(value);
|
|
17566
|
+
var oldValue = this.map[name];
|
|
17567
|
+
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
17568
|
+
};
|
|
17569
|
+
|
|
17570
|
+
Headers.prototype['delete'] = function(name) {
|
|
17571
|
+
delete this.map[normalizeName(name)];
|
|
17572
|
+
};
|
|
17573
|
+
|
|
17574
|
+
Headers.prototype.get = function(name) {
|
|
17575
|
+
name = normalizeName(name);
|
|
17576
|
+
return this.has(name) ? this.map[name] : null
|
|
17577
|
+
};
|
|
17578
|
+
|
|
17579
|
+
Headers.prototype.has = function(name) {
|
|
17580
|
+
return this.map.hasOwnProperty(normalizeName(name))
|
|
17581
|
+
};
|
|
17582
|
+
|
|
17583
|
+
Headers.prototype.set = function(name, value) {
|
|
17584
|
+
this.map[normalizeName(name)] = normalizeValue(value);
|
|
17585
|
+
};
|
|
17586
|
+
|
|
17587
|
+
Headers.prototype.forEach = function(callback, thisArg) {
|
|
17588
|
+
for (var name in this.map) {
|
|
17589
|
+
if (this.map.hasOwnProperty(name)) {
|
|
17590
|
+
callback.call(thisArg, this.map[name], name, this);
|
|
17591
|
+
}
|
|
17592
|
+
}
|
|
17593
|
+
};
|
|
17594
|
+
|
|
17595
|
+
Headers.prototype.keys = function() {
|
|
17596
|
+
var items = [];
|
|
17597
|
+
this.forEach(function(value, name) {
|
|
17598
|
+
items.push(name);
|
|
17599
|
+
});
|
|
17600
|
+
return iteratorFor(items)
|
|
17601
|
+
};
|
|
17602
|
+
|
|
17603
|
+
Headers.prototype.values = function() {
|
|
17604
|
+
var items = [];
|
|
17605
|
+
this.forEach(function(value) {
|
|
17606
|
+
items.push(value);
|
|
17607
|
+
});
|
|
17608
|
+
return iteratorFor(items)
|
|
17609
|
+
};
|
|
17610
|
+
|
|
17611
|
+
Headers.prototype.entries = function() {
|
|
17612
|
+
var items = [];
|
|
17613
|
+
this.forEach(function(value, name) {
|
|
17614
|
+
items.push([name, value]);
|
|
17615
|
+
});
|
|
17616
|
+
return iteratorFor(items)
|
|
17617
|
+
};
|
|
17618
|
+
|
|
17619
|
+
if (support.iterable) {
|
|
17620
|
+
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
17621
|
+
}
|
|
17622
|
+
|
|
17623
|
+
function consumed(body) {
|
|
17624
|
+
if (body.bodyUsed) {
|
|
17625
|
+
return Promise.reject(new TypeError('Already read'))
|
|
17626
|
+
}
|
|
17627
|
+
body.bodyUsed = true;
|
|
17628
|
+
}
|
|
17629
|
+
|
|
17630
|
+
function fileReaderReady(reader) {
|
|
17631
|
+
return new Promise(function(resolve, reject) {
|
|
17632
|
+
reader.onload = function() {
|
|
17633
|
+
resolve(reader.result);
|
|
17634
|
+
};
|
|
17635
|
+
reader.onerror = function() {
|
|
17636
|
+
reject(reader.error);
|
|
17637
|
+
};
|
|
17638
|
+
})
|
|
17639
|
+
}
|
|
17640
|
+
|
|
17641
|
+
function readBlobAsArrayBuffer(blob) {
|
|
17642
|
+
var reader = new FileReader();
|
|
17643
|
+
var promise = fileReaderReady(reader);
|
|
17644
|
+
reader.readAsArrayBuffer(blob);
|
|
17645
|
+
return promise
|
|
17646
|
+
}
|
|
17647
|
+
|
|
17648
|
+
function readBlobAsText(blob) {
|
|
17649
|
+
var reader = new FileReader();
|
|
17650
|
+
var promise = fileReaderReady(reader);
|
|
17651
|
+
reader.readAsText(blob);
|
|
17652
|
+
return promise
|
|
17653
|
+
}
|
|
17654
|
+
|
|
17655
|
+
function readArrayBufferAsText(buf) {
|
|
17656
|
+
var view = new Uint8Array(buf);
|
|
17657
|
+
var chars = new Array(view.length);
|
|
17658
|
+
|
|
17659
|
+
for (var i = 0; i < view.length; i++) {
|
|
17660
|
+
chars[i] = String.fromCharCode(view[i]);
|
|
17661
|
+
}
|
|
17662
|
+
return chars.join('')
|
|
17663
|
+
}
|
|
17664
|
+
|
|
17665
|
+
function bufferClone(buf) {
|
|
17666
|
+
if (buf.slice) {
|
|
17667
|
+
return buf.slice(0)
|
|
17668
|
+
} else {
|
|
17669
|
+
var view = new Uint8Array(buf.byteLength);
|
|
17670
|
+
view.set(new Uint8Array(buf));
|
|
17671
|
+
return view.buffer
|
|
17672
|
+
}
|
|
17673
|
+
}
|
|
17674
|
+
|
|
17675
|
+
function Body() {
|
|
17676
|
+
this.bodyUsed = false;
|
|
17677
|
+
|
|
17678
|
+
this._initBody = function(body) {
|
|
17679
|
+
/*
|
|
17680
|
+
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
17681
|
+
provide useful test harness features such as flush. However, on
|
|
17682
|
+
ES5 browsers without fetch or Proxy support pollyfills must be used;
|
|
17683
|
+
the proxy-pollyfill is unable to proxy an attribute unless it exists
|
|
17684
|
+
on the object before the Proxy is created. This change ensures
|
|
17685
|
+
Response.bodyUsed exists on the instance, while maintaining the
|
|
17686
|
+
semantic of setting Request.bodyUsed in the constructor before
|
|
17687
|
+
_initBody is called.
|
|
17688
|
+
*/
|
|
17689
|
+
this.bodyUsed = this.bodyUsed;
|
|
17690
|
+
this._bodyInit = body;
|
|
17691
|
+
if (!body) {
|
|
17692
|
+
this._bodyText = '';
|
|
17693
|
+
} else if (typeof body === 'string') {
|
|
17694
|
+
this._bodyText = body;
|
|
17695
|
+
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
17696
|
+
this._bodyBlob = body;
|
|
17697
|
+
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
17698
|
+
this._bodyFormData = body;
|
|
17699
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
17700
|
+
this._bodyText = body.toString();
|
|
17701
|
+
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
17702
|
+
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
17703
|
+
// IE 10-11 can't handle a DataView body.
|
|
17704
|
+
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
17705
|
+
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
17706
|
+
this._bodyArrayBuffer = bufferClone(body);
|
|
17707
|
+
} else {
|
|
17708
|
+
this._bodyText = body = Object.prototype.toString.call(body);
|
|
17709
|
+
}
|
|
17710
|
+
|
|
17711
|
+
if (!this.headers.get('content-type')) {
|
|
17712
|
+
if (typeof body === 'string') {
|
|
17713
|
+
this.headers.set('content-type', 'text/plain;charset=UTF-8');
|
|
17714
|
+
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
17715
|
+
this.headers.set('content-type', this._bodyBlob.type);
|
|
17716
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
17717
|
+
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
17718
|
+
}
|
|
17719
|
+
}
|
|
17720
|
+
};
|
|
17721
|
+
|
|
17722
|
+
if (support.blob) {
|
|
17723
|
+
this.blob = function() {
|
|
17724
|
+
var rejected = consumed(this);
|
|
17725
|
+
if (rejected) {
|
|
17726
|
+
return rejected
|
|
17727
|
+
}
|
|
17728
|
+
|
|
17729
|
+
if (this._bodyBlob) {
|
|
17730
|
+
return Promise.resolve(this._bodyBlob)
|
|
17731
|
+
} else if (this._bodyArrayBuffer) {
|
|
17732
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
|
17733
|
+
} else if (this._bodyFormData) {
|
|
17734
|
+
throw new Error('could not read FormData body as blob')
|
|
17735
|
+
} else {
|
|
17736
|
+
return Promise.resolve(new Blob([this._bodyText]))
|
|
17737
|
+
}
|
|
17738
|
+
};
|
|
17739
|
+
|
|
17740
|
+
this.arrayBuffer = function() {
|
|
17741
|
+
if (this._bodyArrayBuffer) {
|
|
17742
|
+
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
|
17743
|
+
} else {
|
|
17744
|
+
return this.blob().then(readBlobAsArrayBuffer)
|
|
17745
|
+
}
|
|
17746
|
+
};
|
|
17747
|
+
}
|
|
17748
|
+
|
|
17749
|
+
this.text = function() {
|
|
17750
|
+
var rejected = consumed(this);
|
|
17751
|
+
if (rejected) {
|
|
17752
|
+
return rejected
|
|
17753
|
+
}
|
|
17754
|
+
|
|
17755
|
+
if (this._bodyBlob) {
|
|
17756
|
+
return readBlobAsText(this._bodyBlob)
|
|
17757
|
+
} else if (this._bodyArrayBuffer) {
|
|
17758
|
+
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
|
17759
|
+
} else if (this._bodyFormData) {
|
|
17760
|
+
throw new Error('could not read FormData body as text')
|
|
17761
|
+
} else {
|
|
17762
|
+
return Promise.resolve(this._bodyText)
|
|
17763
|
+
}
|
|
17764
|
+
};
|
|
17765
|
+
|
|
17766
|
+
if (support.formData) {
|
|
17767
|
+
this.formData = function() {
|
|
17768
|
+
return this.text().then(decode)
|
|
17769
|
+
};
|
|
17770
|
+
}
|
|
17771
|
+
|
|
17772
|
+
this.json = function() {
|
|
17773
|
+
return this.text().then(JSON.parse)
|
|
17774
|
+
};
|
|
17775
|
+
|
|
17776
|
+
return this
|
|
17777
|
+
}
|
|
17778
|
+
|
|
17779
|
+
// HTTP methods whose capitalization should be normalized
|
|
17780
|
+
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
|
17781
|
+
|
|
17782
|
+
function normalizeMethod(method) {
|
|
17783
|
+
var upcased = method.toUpperCase();
|
|
17784
|
+
return methods.indexOf(upcased) > -1 ? upcased : method
|
|
17785
|
+
}
|
|
17786
|
+
|
|
17787
|
+
function Request(input, options) {
|
|
17788
|
+
options = options || {};
|
|
17789
|
+
var body = options.body;
|
|
17790
|
+
|
|
17791
|
+
if (input instanceof Request) {
|
|
17792
|
+
if (input.bodyUsed) {
|
|
17793
|
+
throw new TypeError('Already read')
|
|
17794
|
+
}
|
|
17795
|
+
this.url = input.url;
|
|
17796
|
+
this.credentials = input.credentials;
|
|
17797
|
+
if (!options.headers) {
|
|
17798
|
+
this.headers = new Headers(input.headers);
|
|
17799
|
+
}
|
|
17800
|
+
this.method = input.method;
|
|
17801
|
+
this.mode = input.mode;
|
|
17802
|
+
this.signal = input.signal;
|
|
17803
|
+
if (!body && input._bodyInit != null) {
|
|
17804
|
+
body = input._bodyInit;
|
|
17805
|
+
input.bodyUsed = true;
|
|
17806
|
+
}
|
|
17807
|
+
} else {
|
|
17808
|
+
this.url = String(input);
|
|
17809
|
+
}
|
|
17810
|
+
|
|
17811
|
+
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
17812
|
+
if (options.headers || !this.headers) {
|
|
17813
|
+
this.headers = new Headers(options.headers);
|
|
17814
|
+
}
|
|
17815
|
+
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
17816
|
+
this.mode = options.mode || this.mode || null;
|
|
17817
|
+
this.signal = options.signal || this.signal;
|
|
17818
|
+
this.referrer = null;
|
|
17819
|
+
|
|
17820
|
+
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
|
17821
|
+
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
17822
|
+
}
|
|
17823
|
+
this._initBody(body);
|
|
17824
|
+
|
|
17825
|
+
if (this.method === 'GET' || this.method === 'HEAD') {
|
|
17826
|
+
if (options.cache === 'no-store' || options.cache === 'no-cache') {
|
|
17827
|
+
// Search for a '_' parameter in the query string
|
|
17828
|
+
var reParamSearch = /([?&])_=[^&]*/;
|
|
17829
|
+
if (reParamSearch.test(this.url)) {
|
|
17830
|
+
// If it already exists then set the value with the current time
|
|
17831
|
+
this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());
|
|
17832
|
+
} else {
|
|
17833
|
+
// Otherwise add a new '_' parameter to the end with the current time
|
|
17834
|
+
var reQueryString = /\?/;
|
|
17835
|
+
this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
|
|
17836
|
+
}
|
|
17837
|
+
}
|
|
17838
|
+
}
|
|
17839
|
+
}
|
|
17840
|
+
|
|
17841
|
+
Request.prototype.clone = function() {
|
|
17842
|
+
return new Request(this, {body: this._bodyInit})
|
|
17843
|
+
};
|
|
17844
|
+
|
|
17845
|
+
function decode(body) {
|
|
17846
|
+
var form = new FormData();
|
|
17847
|
+
body
|
|
17848
|
+
.trim()
|
|
17849
|
+
.split('&')
|
|
17850
|
+
.forEach(function(bytes) {
|
|
17851
|
+
if (bytes) {
|
|
17852
|
+
var split = bytes.split('=');
|
|
17853
|
+
var name = split.shift().replace(/\+/g, ' ');
|
|
17854
|
+
var value = split.join('=').replace(/\+/g, ' ');
|
|
17855
|
+
form.append(decodeURIComponent(name), decodeURIComponent(value));
|
|
17856
|
+
}
|
|
17857
|
+
});
|
|
17858
|
+
return form
|
|
17859
|
+
}
|
|
17860
|
+
|
|
17861
|
+
function parseHeaders(rawHeaders) {
|
|
17862
|
+
var headers = new Headers();
|
|
17863
|
+
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
17864
|
+
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
17865
|
+
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
17866
|
+
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
17867
|
+
var parts = line.split(':');
|
|
17868
|
+
var key = parts.shift().trim();
|
|
17869
|
+
if (key) {
|
|
17870
|
+
var value = parts.join(':').trim();
|
|
17871
|
+
headers.append(key, value);
|
|
17872
|
+
}
|
|
17873
|
+
});
|
|
17874
|
+
return headers
|
|
17875
|
+
}
|
|
17876
|
+
|
|
17877
|
+
Body.call(Request.prototype);
|
|
17878
|
+
|
|
17879
|
+
function Response(bodyInit, options) {
|
|
17880
|
+
if (!options) {
|
|
17881
|
+
options = {};
|
|
17882
|
+
}
|
|
17883
|
+
|
|
17884
|
+
this.type = 'default';
|
|
17885
|
+
this.status = options.status === undefined ? 200 : options.status;
|
|
17886
|
+
this.ok = this.status >= 200 && this.status < 300;
|
|
17887
|
+
this.statusText = 'statusText' in options ? options.statusText : '';
|
|
17888
|
+
this.headers = new Headers(options.headers);
|
|
17889
|
+
this.url = options.url || '';
|
|
17890
|
+
this._initBody(bodyInit);
|
|
17891
|
+
}
|
|
17892
|
+
|
|
17893
|
+
Body.call(Response.prototype);
|
|
17894
|
+
|
|
17895
|
+
Response.prototype.clone = function() {
|
|
17896
|
+
return new Response(this._bodyInit, {
|
|
17897
|
+
status: this.status,
|
|
17898
|
+
statusText: this.statusText,
|
|
17899
|
+
headers: new Headers(this.headers),
|
|
17900
|
+
url: this.url
|
|
17901
|
+
})
|
|
17902
|
+
};
|
|
17903
|
+
|
|
17904
|
+
Response.error = function() {
|
|
17905
|
+
var response = new Response(null, {status: 0, statusText: ''});
|
|
17906
|
+
response.type = 'error';
|
|
17907
|
+
return response
|
|
17908
|
+
};
|
|
17909
|
+
|
|
17910
|
+
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
17911
|
+
|
|
17912
|
+
Response.redirect = function(url, status) {
|
|
17913
|
+
if (redirectStatuses.indexOf(status) === -1) {
|
|
17914
|
+
throw new RangeError('Invalid status code')
|
|
17915
|
+
}
|
|
17916
|
+
|
|
17917
|
+
return new Response(null, {status: status, headers: {location: url}})
|
|
17918
|
+
};
|
|
17919
|
+
|
|
17920
|
+
var DOMException = global$1.DOMException;
|
|
17921
|
+
|
|
17922
|
+
if (typeof DOMException !== 'function') {
|
|
17923
|
+
DOMException = function(message, name) {
|
|
17924
|
+
this.message = message;
|
|
17925
|
+
this.name = name;
|
|
17926
|
+
var error = Error(message);
|
|
17927
|
+
this.stack = error.stack;
|
|
17928
|
+
};
|
|
17929
|
+
DOMException.prototype = Object.create(Error.prototype);
|
|
17930
|
+
DOMException.prototype.constructor = DOMException;
|
|
17931
|
+
}
|
|
17932
|
+
|
|
17933
|
+
function fetch(input, init) {
|
|
17934
|
+
return new Promise(function(resolve, reject) {
|
|
17935
|
+
var request = new Request(input, init);
|
|
17936
|
+
|
|
17937
|
+
if (request.signal && request.signal.aborted) {
|
|
17938
|
+
return reject(new DOMException('Aborted', 'AbortError'))
|
|
17939
|
+
}
|
|
17940
|
+
|
|
17941
|
+
var xhr = new XMLHttpRequest();
|
|
17942
|
+
|
|
17943
|
+
function abortXhr() {
|
|
17944
|
+
xhr.abort();
|
|
17945
|
+
}
|
|
17946
|
+
|
|
17947
|
+
xhr.onload = function() {
|
|
17948
|
+
var options = {
|
|
17949
|
+
status: xhr.status,
|
|
17950
|
+
statusText: xhr.statusText,
|
|
17951
|
+
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
17952
|
+
};
|
|
17953
|
+
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
17954
|
+
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
17955
|
+
setTimeout(function() {
|
|
17956
|
+
resolve(new Response(body, options));
|
|
17957
|
+
}, 0);
|
|
17958
|
+
};
|
|
17959
|
+
|
|
17960
|
+
xhr.onerror = function() {
|
|
17961
|
+
setTimeout(function() {
|
|
17962
|
+
reject(new TypeError('Network request failed'));
|
|
17963
|
+
}, 0);
|
|
17964
|
+
};
|
|
17965
|
+
|
|
17966
|
+
xhr.ontimeout = function() {
|
|
17967
|
+
setTimeout(function() {
|
|
17968
|
+
reject(new TypeError('Network request failed'));
|
|
17969
|
+
}, 0);
|
|
17970
|
+
};
|
|
17971
|
+
|
|
17972
|
+
xhr.onabort = function() {
|
|
17973
|
+
setTimeout(function() {
|
|
17974
|
+
reject(new DOMException('Aborted', 'AbortError'));
|
|
17975
|
+
}, 0);
|
|
17976
|
+
};
|
|
17977
|
+
|
|
17978
|
+
function fixUrl(url) {
|
|
17979
|
+
try {
|
|
17980
|
+
return url === '' && global$1.location.href ? global$1.location.href : url
|
|
17981
|
+
} catch (e) {
|
|
17982
|
+
return url
|
|
17983
|
+
}
|
|
17984
|
+
}
|
|
17985
|
+
|
|
17986
|
+
xhr.open(request.method, fixUrl(request.url), true);
|
|
17987
|
+
|
|
17988
|
+
if (request.credentials === 'include') {
|
|
17989
|
+
xhr.withCredentials = true;
|
|
17990
|
+
} else if (request.credentials === 'omit') {
|
|
17991
|
+
xhr.withCredentials = false;
|
|
17992
|
+
}
|
|
17993
|
+
|
|
17994
|
+
if ('responseType' in xhr) {
|
|
17995
|
+
if (support.blob) {
|
|
17996
|
+
xhr.responseType = 'blob';
|
|
17997
|
+
} else if (
|
|
17998
|
+
support.arrayBuffer &&
|
|
17999
|
+
request.headers.get('Content-Type') &&
|
|
18000
|
+
request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
|
|
18001
|
+
) {
|
|
18002
|
+
xhr.responseType = 'arraybuffer';
|
|
18003
|
+
}
|
|
18004
|
+
}
|
|
18005
|
+
|
|
18006
|
+
request.headers.forEach(function(value, name) {
|
|
18007
|
+
xhr.setRequestHeader(name, value);
|
|
18008
|
+
});
|
|
18009
|
+
|
|
18010
|
+
if (request.signal) {
|
|
18011
|
+
request.signal.addEventListener('abort', abortXhr);
|
|
18012
|
+
|
|
18013
|
+
xhr.onreadystatechange = function() {
|
|
18014
|
+
// DONE (success or failure)
|
|
18015
|
+
if (xhr.readyState === 4) {
|
|
18016
|
+
request.signal.removeEventListener('abort', abortXhr);
|
|
18017
|
+
}
|
|
18018
|
+
};
|
|
18019
|
+
}
|
|
18020
|
+
|
|
18021
|
+
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
|
|
18022
|
+
})
|
|
18023
|
+
}
|
|
18024
|
+
|
|
18025
|
+
fetch.polyfill = true;
|
|
18026
|
+
|
|
18027
|
+
if (!global$1.fetch) {
|
|
18028
|
+
global$1.fetch = fetch;
|
|
18029
|
+
global$1.Headers = Headers;
|
|
18030
|
+
global$1.Request = Request;
|
|
18031
|
+
global$1.Response = Response;
|
|
18032
|
+
}
|
|
18033
|
+
|
|
18034
|
+
/**
|
|
18035
|
+
* d3-request shim
|
|
18036
|
+
*
|
|
18037
|
+
* This module shims [d3-request](https://github.com/d3/d3-request) from d3v4 using
|
|
18038
|
+
* the new [d3-fetch](https://github.com/d3/d3-fetch) from d3v5. This makes it
|
|
18039
|
+
* possible to use d3v4 code with d3v5 for the use cases in SSZVIS, but not when
|
|
18040
|
+
* using more advanced functionality of d3-request (e.g. setting headers).
|
|
18041
|
+
*
|
|
18042
|
+
* Example from d3v4 that works thanks to this shim:
|
|
18043
|
+
*
|
|
18044
|
+
* d3.csv("http://example.com")
|
|
18045
|
+
* .row(function(x) {
|
|
18046
|
+
* return {
|
|
18047
|
+
* year: parseInt(x.Jahr, 10)
|
|
18048
|
+
* }
|
|
18049
|
+
* })
|
|
18050
|
+
* .get(function(error, data) {
|
|
18051
|
+
* if (error) {
|
|
18052
|
+
* sszvis.loadError(error);
|
|
18053
|
+
* return;
|
|
18054
|
+
* }
|
|
18055
|
+
* actions.prepareState(data);
|
|
18056
|
+
* })
|
|
18057
|
+
*
|
|
18058
|
+
* With d3v5 this can now be written like:
|
|
18059
|
+
*
|
|
18060
|
+
* d3.csv("http://example.com", function(x) { return x })
|
|
18061
|
+
* .then(actions.prepareState)
|
|
18062
|
+
* .catch(sszvis.loadError)
|
|
18063
|
+
*
|
|
18064
|
+
* Supported d3 versions:
|
|
18065
|
+
* - d3 5.0: Fully supported
|
|
18066
|
+
* - d3 4.0: Partially supported (only "get" and "row" methods have been implemented)
|
|
18067
|
+
*/
|
|
18068
|
+
d3__default.csv = mkShim(d3__default.csv);
|
|
18069
|
+
d3__default.json = mkShim(d3__default.json); // -----------------------------------------------------------------------------
|
|
18070
|
+
|
|
18071
|
+
function mkShim(request) {
|
|
18072
|
+
function mkGet() {
|
|
18073
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18074
|
+
args[_key] = arguments[_key];
|
|
18075
|
+
}
|
|
18076
|
+
|
|
18077
|
+
return function (cb) {
|
|
18078
|
+
request.apply(void 0, args).then(function (data) {
|
|
18079
|
+
cb(undefined, data);
|
|
18080
|
+
}).catch(cb);
|
|
18081
|
+
};
|
|
18082
|
+
}
|
|
18083
|
+
|
|
18084
|
+
return function (url, parseNew) {
|
|
18085
|
+
return {
|
|
18086
|
+
// This is the "new" d3-fetch way of loading data that uses a Promise
|
|
18087
|
+
then: function then(cb) {
|
|
18088
|
+
return request(url, parseNew).then(cb);
|
|
18089
|
+
},
|
|
18090
|
+
// This is the "old" d3-request way of loading data using an XMLHttpRequest
|
|
18091
|
+
get: mkGet(url),
|
|
18092
|
+
row: function row(parseRow) {
|
|
18093
|
+
return {
|
|
18094
|
+
get: mkGet(url, parseRow)
|
|
18095
|
+
};
|
|
18096
|
+
}
|
|
18097
|
+
};
|
|
18098
|
+
};
|
|
18099
|
+
}
|
|
18100
|
+
|
|
17202
18101
|
/* eslint-disable */
|
|
17203
18102
|
|
|
17204
18103
|
/**
|
|
@@ -17301,15 +18200,62 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
17301
18200
|
}
|
|
17302
18201
|
}); // The innerSVG DOM property for SVGElement.
|
|
17303
18202
|
|
|
17304
|
-
Object.defineProperty(SVGElement.prototype, "innerSVG", {
|
|
17305
|
-
get: function get() {
|
|
17306
|
-
return this.innerHTML;
|
|
17307
|
-
},
|
|
17308
|
-
set: function set(markupText) {
|
|
17309
|
-
this.innerHTML = markupText;
|
|
17310
|
-
}
|
|
18203
|
+
Object.defineProperty(SVGElement.prototype, "innerSVG", {
|
|
18204
|
+
get: function get() {
|
|
18205
|
+
return this.innerHTML;
|
|
18206
|
+
},
|
|
18207
|
+
set: function set(markupText) {
|
|
18208
|
+
this.innerHTML = markupText;
|
|
18209
|
+
}
|
|
18210
|
+
});
|
|
18211
|
+
})();
|
|
18212
|
+
|
|
18213
|
+
// This is the more strict version of `isNaN`. We need to polyfill it for Internet Explorer,
|
|
18214
|
+
// all other browsers support this.
|
|
18215
|
+
// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
18216
|
+
Number.isNaN = Number.isNaN || function isNaN(input) {
|
|
18217
|
+
return typeof input === "number" && input !== input;
|
|
18218
|
+
};
|
|
18219
|
+
|
|
18220
|
+
T(); // d3 mutates state in many places, which is why we have to turn this off.
|
|
18221
|
+
|
|
18222
|
+
cn(false);
|
|
18223
|
+
|
|
18224
|
+
/**
|
|
18225
|
+
* d3.selection plugin to simplify creating idempotent divs that are not
|
|
18226
|
+
* recreated when rendered again.
|
|
18227
|
+
*
|
|
18228
|
+
* @see https://github.com/mbostock/d3/wiki/Selections
|
|
18229
|
+
*
|
|
18230
|
+
* @param {String} key - the name of the group
|
|
18231
|
+
* @return {d3.selection}
|
|
18232
|
+
*/
|
|
18233
|
+
|
|
18234
|
+
d3.selection.prototype.selectDiv = function (key) {
|
|
18235
|
+
var div = this.selectAll('[data-d3-selectdiv="' + key + '"]').data(function (d) {
|
|
18236
|
+
return [d];
|
|
18237
|
+
});
|
|
18238
|
+
var newDiv = div.enter().append("div").attr("data-d3-selectdiv", key).style("position", "absolute");
|
|
18239
|
+
return div.merge(newDiv);
|
|
18240
|
+
};
|
|
18241
|
+
|
|
18242
|
+
/**
|
|
18243
|
+
* d3.selection plugin to simplify creating idempotent groups that are not
|
|
18244
|
+
* recreated when rendered again.
|
|
18245
|
+
*
|
|
18246
|
+
* @see https://github.com/mbostock/d3/wiki/Selections
|
|
18247
|
+
*
|
|
18248
|
+
* @param {String} key The name of the group
|
|
18249
|
+
* @return {d3.selection}
|
|
18250
|
+
*/
|
|
18251
|
+
|
|
18252
|
+
d3.selection.prototype.selectGroup = function (key) {
|
|
18253
|
+
var group = this.selectAll('[data-d3-selectgroup="' + key + '"]').data(function (d) {
|
|
18254
|
+
return [d];
|
|
17311
18255
|
});
|
|
17312
|
-
|
|
18256
|
+
var newGroup = group.enter().append("g").attr("data-d3-selectgroup", key);
|
|
18257
|
+
return group.merge(newGroup);
|
|
18258
|
+
};
|
|
17313
18259
|
|
|
17314
18260
|
/**
|
|
17315
18261
|
* A collection of functional programming helper functions
|
|
@@ -17481,7 +18427,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
17481
18427
|
*/
|
|
17482
18428
|
|
|
17483
18429
|
var defined = function defined(val) {
|
|
17484
|
-
return typeof val !== "undefined" && val != null;
|
|
18430
|
+
return typeof val !== "undefined" && val != null && !Number.isNaN(val);
|
|
17485
18431
|
};
|
|
17486
18432
|
/**
|
|
17487
18433
|
* fn.derivedSet
|
|
@@ -17721,7 +18667,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
17721
18667
|
*/
|
|
17722
18668
|
|
|
17723
18669
|
var isNumber = function isNumber(val) {
|
|
17724
|
-
return Object.prototype.toString.call(val) === "[object Number]";
|
|
18670
|
+
return Object.prototype.toString.call(val) === "[object Number]" && !Number.isNaN(val);
|
|
17725
18671
|
};
|
|
17726
18672
|
/**
|
|
17727
18673
|
* fn.isObject
|
|
@@ -17997,10 +18943,22 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
17997
18943
|
};
|
|
17998
18944
|
}
|
|
17999
18945
|
|
|
18000
|
-
var
|
|
18001
|
-
var
|
|
18002
|
-
var
|
|
18003
|
-
var
|
|
18946
|
+
var darkBlue = "#3431DE";
|
|
18947
|
+
var mediumBlue = "#0A8DF6";
|
|
18948
|
+
var lightBlue = "#23C3F1";
|
|
18949
|
+
var darkRed = "#7B4FB7";
|
|
18950
|
+
var mediumRed = "#DB247D";
|
|
18951
|
+
var lightRed = "#FB737E";
|
|
18952
|
+
var darkGreen = "#007C78";
|
|
18953
|
+
var mediumGreen = "#1D942E";
|
|
18954
|
+
var lightGreen = "#99C32E";
|
|
18955
|
+
var darkBrown = "#9A5B01";
|
|
18956
|
+
var mediumBrown = "#FF720C";
|
|
18957
|
+
var lightBrown = "#FBB900";
|
|
18958
|
+
var scaleQual12 = qualColorScale([darkBlue, mediumBlue, lightBlue, darkRed, mediumRed, lightRed, darkGreen, mediumGreen, lightGreen, darkBrown, mediumBrown, lightBrown]);
|
|
18959
|
+
var scaleQual6 = qualColorScale([darkBlue, mediumRed, mediumGreen, lightBrown, lightBlue, mediumBrown]);
|
|
18960
|
+
var scaleQual6a = qualColorScale([darkBlue, mediumBlue, lightBlue, darkRed, mediumRed, lightRed]);
|
|
18961
|
+
var scaleQual6b = qualColorScale([darkGreen, mediumGreen, lightGreen, darkBrown, mediumBrown, lightBrown]);
|
|
18004
18962
|
|
|
18005
18963
|
function seqColorScale(colors) {
|
|
18006
18964
|
return function () {
|
|
@@ -18009,10 +18967,10 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
18009
18967
|
};
|
|
18010
18968
|
}
|
|
18011
18969
|
|
|
18012
|
-
var scaleSeqBlu = seqColorScale(["#
|
|
18013
|
-
var scaleSeqRed = seqColorScale(["#
|
|
18014
|
-
var scaleSeqGrn = seqColorScale(["#
|
|
18015
|
-
var scaleSeqBrn = seqColorScale(["#
|
|
18970
|
+
var scaleSeqBlu = seqColorScale(["#CADEFF", "#5B6EFF", "#211A8A"]);
|
|
18971
|
+
var scaleSeqRed = seqColorScale(["#FED2EE", "#ED408D", "#7D0044"]);
|
|
18972
|
+
var scaleSeqGrn = seqColorScale(["#CFEED8", "#34B446", "#0C4B1F"]);
|
|
18973
|
+
var scaleSeqBrn = seqColorScale(["#FCDDBB", "#EA5D00", "#611F00"]);
|
|
18016
18974
|
|
|
18017
18975
|
function divColorScale(colors) {
|
|
18018
18976
|
return function () {
|
|
@@ -18021,10 +18979,10 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
18021
18979
|
};
|
|
18022
18980
|
}
|
|
18023
18981
|
|
|
18024
|
-
var scaleDivVal = divColorScale(["#
|
|
18025
|
-
var scaleDivValGry = divColorScale(["#
|
|
18026
|
-
var scaleDivNtr = divColorScale(["#
|
|
18027
|
-
var scaleDivNtrGry = divColorScale(["#
|
|
18982
|
+
var scaleDivVal = divColorScale(["#782600", "#FFFFFF", "#2F2ABB"]);
|
|
18983
|
+
var scaleDivValGry = divColorScale(["#782600", "#F3F3F3", "#2F2ABB"]);
|
|
18984
|
+
var scaleDivNtr = divColorScale(["#A30059", "#FFFFFF", "#10652A"]);
|
|
18985
|
+
var scaleDivNtrGry = divColorScale(["#A30059", "#F3F3F3", "#10652A"]);
|
|
18028
18986
|
|
|
18029
18987
|
function greyColorScale(colors) {
|
|
18030
18988
|
return function () {
|
|
@@ -18873,7 +19831,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
18873
19831
|
* @return {sszvis.component}
|
|
18874
19832
|
*/
|
|
18875
19833
|
function rangeRuler () {
|
|
18876
|
-
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) {
|
|
19834
|
+
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) {
|
|
18877
19835
|
var selection = d3.select(this);
|
|
18878
19836
|
var props = selection.props();
|
|
18879
19837
|
var crispX = compose(halfPixel, props.x);
|
|
@@ -18912,6 +19870,11 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
18912
19870
|
.style("text-anchor", function (d) {
|
|
18913
19871
|
return props.flip(d) ? "end" : "start";
|
|
18914
19872
|
}).text(compose(formatNumber, props.label));
|
|
19873
|
+
|
|
19874
|
+
if (!props.removeStroke) {
|
|
19875
|
+
marks.attr("stroke", "white").attr("stroke-width", 0.5).attr("stroke-opacity", 0.75);
|
|
19876
|
+
}
|
|
19877
|
+
|
|
18915
19878
|
var total = selection.selectAll(".sszvis-rangeRuler__total").data([last(data)]);
|
|
18916
19879
|
var newTotal = total.enter().append("text").classed("sszvis-rangeRuler__total", true);
|
|
18917
19880
|
total.exit().remove();
|
|
@@ -18922,6 +19885,10 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
18922
19885
|
}).attr("y", props.top - 10).style("text-anchor", function (d) {
|
|
18923
19886
|
return props.flip(d) ? "end" : "start";
|
|
18924
19887
|
}).text("Total " + formatNumber(props.total));
|
|
19888
|
+
|
|
19889
|
+
if (!props.removeStroke) {
|
|
19890
|
+
total.attr("stroke", "white").attr("stroke-width", 0.5).attr("stroke-opacity", 0.75);
|
|
19891
|
+
}
|
|
18925
19892
|
});
|
|
18926
19893
|
}
|
|
18927
19894
|
|
|
@@ -19257,128 +20224,366 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
19257
20224
|
*/
|
|
19258
20225
|
|
|
19259
20226
|
|
|
19260
|
-
function formatTable(rows) {
|
|
19261
|
-
var tableBody = rows.map(function (row) {
|
|
19262
|
-
return "<tr>" + row.map(function (cell) {
|
|
19263
|
-
return "<td>" + cell + "</td>";
|
|
19264
|
-
}).join("") + "</tr>";
|
|
19265
|
-
}).join("");
|
|
19266
|
-
return '<table class="sszvis-tooltip__body__table">' + tableBody + "</table>";
|
|
19267
|
-
}
|
|
20227
|
+
function formatTable(rows) {
|
|
20228
|
+
var tableBody = rows.map(function (row) {
|
|
20229
|
+
return "<tr>" + row.map(function (cell) {
|
|
20230
|
+
return "<td>" + cell + "</td>";
|
|
20231
|
+
}).join("") + "</tr>";
|
|
20232
|
+
}).join("");
|
|
20233
|
+
return '<table class="sszvis-tooltip__body__table">' + tableBody + "</table>";
|
|
20234
|
+
}
|
|
20235
|
+
/**
|
|
20236
|
+
* Tooltip background generator
|
|
20237
|
+
*
|
|
20238
|
+
* Generates a path description with a tip on the specified side.
|
|
20239
|
+
*
|
|
20240
|
+
* top
|
|
20241
|
+
* ________
|
|
20242
|
+
* left | | right
|
|
20243
|
+
* |___ ___|
|
|
20244
|
+
* \/
|
|
20245
|
+
* bottom
|
|
20246
|
+
*
|
|
20247
|
+
* @param {Vector} a Top-left corner of the tooltip rectangle (x, y)
|
|
20248
|
+
* @param {Vector} b Bottom-right corner of the tooltip rectangle (x, y)
|
|
20249
|
+
* @param {String} orientation The tip will point in this direction (top, right, bottom, left)
|
|
20250
|
+
*
|
|
20251
|
+
* @return {Path} SVG path description
|
|
20252
|
+
*/
|
|
20253
|
+
|
|
20254
|
+
|
|
20255
|
+
function tooltipBackgroundGenerator(a, b, orientation, radius) {
|
|
20256
|
+
switch (orientation) {
|
|
20257
|
+
case "top":
|
|
20258
|
+
a[1] = a[1] + TIP_SIZE;
|
|
20259
|
+
break;
|
|
20260
|
+
|
|
20261
|
+
case "bottom":
|
|
20262
|
+
b[1] = b[1] - TIP_SIZE;
|
|
20263
|
+
break;
|
|
20264
|
+
|
|
20265
|
+
case "left":
|
|
20266
|
+
a[0] = a[0] + TIP_SIZE;
|
|
20267
|
+
break;
|
|
20268
|
+
|
|
20269
|
+
case "right":
|
|
20270
|
+
b[0] = b[0] - TIP_SIZE;
|
|
20271
|
+
break;
|
|
20272
|
+
}
|
|
20273
|
+
|
|
20274
|
+
function x(d) {
|
|
20275
|
+
return d[0];
|
|
20276
|
+
}
|
|
20277
|
+
|
|
20278
|
+
function y(d) {
|
|
20279
|
+
return d[1];
|
|
20280
|
+
}
|
|
20281
|
+
|
|
20282
|
+
function side(cx, cy, x0, y0, x1, y1, showTip) {
|
|
20283
|
+
var mx = x0 + (x1 - x0) / 2;
|
|
20284
|
+
var my = y0 + (y1 - y0) / 2;
|
|
20285
|
+
var corner = ["Q", cx, cy, x0, y0];
|
|
20286
|
+
var tip = [];
|
|
20287
|
+
|
|
20288
|
+
if (showTip && y0 === y1) {
|
|
20289
|
+
if (x0 < x1) {
|
|
20290
|
+
// Top
|
|
20291
|
+
tip = ["L", mx - TIP_SIZE, my, "L", mx, my - TIP_SIZE, "L", mx + TIP_SIZE, my];
|
|
20292
|
+
} else {
|
|
20293
|
+
// Bottom
|
|
20294
|
+
tip = ["L", mx + TIP_SIZE, my, "L", mx, my + TIP_SIZE, "L", mx - TIP_SIZE, my];
|
|
20295
|
+
}
|
|
20296
|
+
} else if (showTip && x0 === x1) {
|
|
20297
|
+
if (y0 < y1) {
|
|
20298
|
+
// Right
|
|
20299
|
+
tip = ["L", mx, my - TIP_SIZE, "L", mx + TIP_SIZE, my, "L", mx, my + TIP_SIZE];
|
|
20300
|
+
} else {
|
|
20301
|
+
// Left
|
|
20302
|
+
tip = ["L", mx, my + TIP_SIZE, "L", mx - TIP_SIZE, my, "L", mx, my - TIP_SIZE];
|
|
20303
|
+
}
|
|
20304
|
+
}
|
|
20305
|
+
|
|
20306
|
+
var end = ["L", x1, y1];
|
|
20307
|
+
return [].concat(corner, tip, end);
|
|
20308
|
+
}
|
|
20309
|
+
|
|
20310
|
+
return [// Start
|
|
20311
|
+
["M", x(a), y(a) + radius], // Top side
|
|
20312
|
+
side(x(a), y(a), x(a) + radius, y(a), x(b) - radius, y(a), orientation === "top"), // Right side
|
|
20313
|
+
side(x(b), y(a), x(b), y(a) + radius, x(b), y(b) - radius, orientation === "right"), // Bottom side
|
|
20314
|
+
side(x(b), y(b), x(b) - radius, y(b), x(a) + radius, y(b), orientation === "bottom"), // Left side
|
|
20315
|
+
side(x(a), y(b), x(a), y(b) - radius, x(a), y(a) + radius, orientation === "left")].map(function (d) {
|
|
20316
|
+
return d.join(" ");
|
|
20317
|
+
}).join(" ");
|
|
20318
|
+
}
|
|
20319
|
+
/**
|
|
20320
|
+
* Detect whether the current browser supports SVG filters
|
|
20321
|
+
*/
|
|
20322
|
+
|
|
20323
|
+
|
|
20324
|
+
function supportsSVGFilters() {
|
|
20325
|
+
return window["SVGFEColorMatrixElement"] !== undefined && SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE == 2;
|
|
20326
|
+
}
|
|
20327
|
+
|
|
20328
|
+
/**
|
|
20329
|
+
* @function sszvis.tooltipFit
|
|
20330
|
+
*
|
|
20331
|
+
* This is a useful default function for making a tooltip fit within a horizontal space.
|
|
20332
|
+
* You provide a default orientation for the tooltip, but also provide the bounds of the
|
|
20333
|
+
* space within which the tooltip should stay. When the tooltip is too close to the left
|
|
20334
|
+
* or right edge of the bounds, it is oriented away from the edge. Otherwise the default
|
|
20335
|
+
* is used.
|
|
20336
|
+
*
|
|
20337
|
+
* @param {String} defaultValue The default value for the tooltip orientation
|
|
20338
|
+
* @param {Object} bounds The bounds object within which the tooltip should stay.
|
|
20339
|
+
*
|
|
20340
|
+
* @returns {Function} A function for calculating the orientation of the tooltips.
|
|
20341
|
+
*/
|
|
20342
|
+
function fitTooltip (defaultVal, bounds) {
|
|
20343
|
+
var lo = Math.min(bounds.innerWidth * 1 / 4, 100);
|
|
20344
|
+
var hi = Math.max(bounds.innerWidth * 3 / 4, bounds.innerWidth - 100);
|
|
20345
|
+
return function (d) {
|
|
20346
|
+
var x = d.x;
|
|
20347
|
+
return x > hi ? "right" : x < lo ? "left" : defaultVal;
|
|
20348
|
+
};
|
|
20349
|
+
}
|
|
20350
|
+
|
|
20351
|
+
/**
|
|
20352
|
+
* Fallback handling
|
|
20353
|
+
*
|
|
20354
|
+
* Defaults to rendering a fallback image with standard chart proportions.
|
|
20355
|
+
*
|
|
20356
|
+
* @example
|
|
20357
|
+
* if (sszvis.fallback.unsupported()) {
|
|
20358
|
+
* sszvis.fallback.render('#sszvis-chart', {src: '../fallback.png', height: 300});
|
|
20359
|
+
* return;
|
|
20360
|
+
* }
|
|
20361
|
+
*
|
|
20362
|
+
* @module sszvis/fallback
|
|
20363
|
+
*/
|
|
20364
|
+
var fallbackUnsupported = function fallbackUnsupported() {
|
|
20365
|
+
var supportsSVG = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect;
|
|
20366
|
+
return !supportsSVG;
|
|
20367
|
+
};
|
|
20368
|
+
var fallbackCanvasUnsupported = function fallbackCanvasUnsupported() {
|
|
20369
|
+
var supportsCanvas = !!document.createElement("canvas").getContext;
|
|
20370
|
+
return !supportsCanvas;
|
|
20371
|
+
};
|
|
20372
|
+
var fallbackRender = function fallbackRender(selector, options) {
|
|
20373
|
+
options || (options = {});
|
|
20374
|
+
options.src || (options.src = "fallback.png");
|
|
20375
|
+
var selection = isSelection(selector) ? selector : d3.select(selector);
|
|
20376
|
+
selection.append("img").attr("class", "sszvis-fallback-image").attr("src", options.src);
|
|
20377
|
+
};
|
|
20378
|
+
|
|
20379
|
+
var nanoThrottle = function (callback, ms, trailing) {
|
|
20380
|
+
var t = 0, call;
|
|
20381
|
+
arguments.length < 3 && (trailing = true);
|
|
20382
|
+
return function () {
|
|
20383
|
+
var args = arguments;
|
|
20384
|
+
var self = this;
|
|
20385
|
+
call = function () {
|
|
20386
|
+
callback.apply(self, args);
|
|
20387
|
+
t = new Date().getTime() + ms;
|
|
20388
|
+
call = null;
|
|
20389
|
+
trailing && setTimeout(function () {
|
|
20390
|
+
call && call();
|
|
20391
|
+
}, ms);
|
|
20392
|
+
};
|
|
20393
|
+
if (new Date().getTime() > t) call();
|
|
20394
|
+
}
|
|
20395
|
+
};
|
|
20396
|
+
|
|
20397
|
+
/**
|
|
20398
|
+
* Viewport Resize watcher
|
|
20399
|
+
*
|
|
20400
|
+
* The resize watcher in the sszvis.viewport module can be used for alerting user code to
|
|
20401
|
+
* changes in the browser window size. This includes window resizing on desktop computers
|
|
20402
|
+
* and browsers, but also orientation changes on mobile browsers. Functions which listen
|
|
20403
|
+
* to the 'resize' event of the sszvis.viewport module will be fired on window resize.
|
|
20404
|
+
* You can add a resize listener to your application very easily:
|
|
20405
|
+
*
|
|
20406
|
+
* sszvis.viewport.on('resize', listenerFunction);
|
|
20407
|
+
*
|
|
20408
|
+
* The listener function will be called once per resize event, but at a slight delay. This is because,
|
|
20409
|
+
* while a user is resizing their browser window, many resize events can fire very quickly. This component
|
|
20410
|
+
* automatically throttles the rate at which the listener function is called, since you probably don't need
|
|
20411
|
+
* to respond to every single resize event. This throttling provides for a smoother user experience as they
|
|
20412
|
+
* resize the browser, and increases performance across the board. The listener function will always be
|
|
20413
|
+
* called after one or more window resize events, it just won't be called as often as the window fires the
|
|
20414
|
+
* events.
|
|
20415
|
+
*
|
|
20416
|
+
* @module sszvis/viewport
|
|
20417
|
+
*
|
|
20418
|
+
* @function {string, function} on the .on() function is used to listen to the resize event itself.
|
|
20419
|
+
* There is only one event supported by this component at the moment, so
|
|
20420
|
+
* the first argument to .on must be 'resize' for it to have any effect.
|
|
20421
|
+
* Although this is somewhat redundant, it is done to keep this component's
|
|
20422
|
+
* API clear and in line with other components.
|
|
20423
|
+
*
|
|
20424
|
+
* @return {Object}
|
|
20425
|
+
*/
|
|
20426
|
+
// sszvis.viewport.on('resize', callback);
|
|
20427
|
+
// While still enabling the user to register multiple callbacks for the 'resize'
|
|
20428
|
+
// event. Multiple callbacks are a feature which simply returning a d3.dispatch('resize')
|
|
20429
|
+
// object would not allow.
|
|
20430
|
+
|
|
20431
|
+
var callbacks = {
|
|
20432
|
+
resize: []
|
|
20433
|
+
};
|
|
20434
|
+
|
|
20435
|
+
if (typeof window !== "undefined") {
|
|
20436
|
+
d3.select(window).on("resize", nanoThrottle(function () {
|
|
20437
|
+
trigger("resize");
|
|
20438
|
+
}, 500));
|
|
20439
|
+
}
|
|
20440
|
+
|
|
20441
|
+
var on$1 = function on(name, cb) {
|
|
20442
|
+
if (!callbacks[name]) {
|
|
20443
|
+
callbacks[name] = [];
|
|
20444
|
+
}
|
|
20445
|
+
|
|
20446
|
+
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
20447
|
+
return fn !== cb;
|
|
20448
|
+
}).concat(cb);
|
|
20449
|
+
return this;
|
|
20450
|
+
};
|
|
20451
|
+
|
|
20452
|
+
var off = function off(name, cb) {
|
|
20453
|
+
if (!callbacks[name]) {
|
|
20454
|
+
return this;
|
|
20455
|
+
}
|
|
20456
|
+
|
|
20457
|
+
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
20458
|
+
return fn !== cb;
|
|
20459
|
+
});
|
|
20460
|
+
return this;
|
|
20461
|
+
};
|
|
20462
|
+
|
|
20463
|
+
var trigger = function trigger(name) {
|
|
20464
|
+
var evtArgs = Array.prototype.slice.call(arguments, 1);
|
|
20465
|
+
|
|
20466
|
+
if (callbacks[name]) {
|
|
20467
|
+
callbacks[name].forEach(function (fn) {
|
|
20468
|
+
fn.apply(null, evtArgs);
|
|
20469
|
+
});
|
|
20470
|
+
}
|
|
20471
|
+
|
|
20472
|
+
return this;
|
|
20473
|
+
};
|
|
20474
|
+
|
|
20475
|
+
var viewport = {
|
|
20476
|
+
on: on$1,
|
|
20477
|
+
off: off,
|
|
20478
|
+
trigger: trigger
|
|
20479
|
+
};
|
|
20480
|
+
|
|
19268
20481
|
/**
|
|
19269
|
-
*
|
|
20482
|
+
* Application loop
|
|
19270
20483
|
*
|
|
19271
|
-
*
|
|
20484
|
+
* Creates a stateful app that can be interacted with through actions. By providing
|
|
20485
|
+
* a structured approach, this allows us to optimize the render loop and clarifies
|
|
20486
|
+
* the relationship between state and actions.
|
|
19272
20487
|
*
|
|
19273
|
-
*
|
|
19274
|
-
*
|
|
19275
|
-
* left | | right
|
|
19276
|
-
* |___ ___|
|
|
19277
|
-
* \/
|
|
19278
|
-
* bottom
|
|
20488
|
+
* Within an app, state can only be modified through actions. During the render phase,
|
|
20489
|
+
* state is immutable and an error will be thrown if it is modified accidentally.
|
|
19279
20490
|
*
|
|
19280
|
-
*
|
|
19281
|
-
* @param {Vector} b Bottom-right corner of the tooltip rectangle (x, y)
|
|
19282
|
-
* @param {String} orientation The tip will point in this direction (top, right, bottom, left)
|
|
20491
|
+
* Conceptually, an app works like this:
|
|
19283
20492
|
*
|
|
19284
|
-
*
|
|
20493
|
+
* init
|
|
20494
|
+
* ⇣
|
|
20495
|
+
* state ⭢ render
|
|
20496
|
+
* ⮤ action ⮠
|
|
20497
|
+
*
|
|
20498
|
+
* The basis of an app are the following three types:
|
|
20499
|
+
*
|
|
20500
|
+
* Dispatch can be used to schedule an action after rendering has been completed. In the
|
|
20501
|
+
* render function, dispatch is not directly accessible; instead, an actions object is
|
|
20502
|
+
* provided to dispatch actions by calling them as functions.
|
|
20503
|
+
* @typedef {(action: string, p?: Props) => void} Dispatch
|
|
20504
|
+
*
|
|
20505
|
+
* An effect can be returned from an action to schedule further actions using dispatch.
|
|
20506
|
+
* @typedef {(d: Dispatch, p?: Props) => void} Effect
|
|
20507
|
+
*
|
|
20508
|
+
* An action receives an Immer.js Draft that can be mutated within the action. If further
|
|
20509
|
+
* actions should be called after this one, an action can return an Effect.
|
|
20510
|
+
* @typedef {(s: Draft, p?: Props) => Effect | void} Action
|
|
20511
|
+
* @see {@link https://immerjs.github.io/immer/docs/produce/}
|
|
20512
|
+
*
|
|
20513
|
+
* The app can be configured with the following props:
|
|
20514
|
+
*
|
|
20515
|
+
* @prop {Object} props
|
|
20516
|
+
* @prop {(s: Draft) => Promise<Effect | void>} props.init - Asynchronously create
|
|
20517
|
+
* the initial state and optionally schedule an action
|
|
20518
|
+
* @prop {(s: State, as: Record<keyof props.actions, (p?: Props) => void>)} props.render - Update
|
|
20519
|
+
* the DOM from the state and optionally dispatch actions
|
|
20520
|
+
* @prop {Record<string, Action>} [props.actions] - Functions to transition the
|
|
20521
|
+
* application state
|
|
20522
|
+
* @prop {{element: string, src: string}} [props.fallback] - Render a fallback image
|
|
20523
|
+
*
|
|
20524
|
+
* @module sszvis/app
|
|
19285
20525
|
*/
|
|
19286
20526
|
|
|
20527
|
+
var app = function app(_ref) {
|
|
20528
|
+
var init = _ref.init,
|
|
20529
|
+
render = _ref.render,
|
|
20530
|
+
_ref$actions = _ref.actions,
|
|
20531
|
+
actions = _ref$actions === void 0 ? {} : _ref$actions,
|
|
20532
|
+
fallback = _ref.fallback;
|
|
20533
|
+
var doing;
|
|
20534
|
+
var state;
|
|
20535
|
+
invariant(isFunction$1(init), 'An "init" function returning a Promise must be provided.');
|
|
20536
|
+
invariant(isFunction$1(render), 'A "render" function must be provided.');
|
|
20537
|
+
var actionDispatchers = Object.keys(actions).reduce(function (acc, key) {
|
|
20538
|
+
acc[key] = function (args) {
|
|
20539
|
+
dispatch(key, args);
|
|
20540
|
+
};
|
|
19287
20541
|
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
case "top":
|
|
19291
|
-
a[1] = a[1] + TIP_SIZE;
|
|
19292
|
-
break;
|
|
19293
|
-
|
|
19294
|
-
case "bottom":
|
|
19295
|
-
b[1] = b[1] - TIP_SIZE;
|
|
19296
|
-
break;
|
|
19297
|
-
|
|
19298
|
-
case "left":
|
|
19299
|
-
a[0] = a[0] + TIP_SIZE;
|
|
19300
|
-
break;
|
|
20542
|
+
return acc;
|
|
20543
|
+
}, {});
|
|
19301
20544
|
|
|
19302
|
-
|
|
19303
|
-
|
|
19304
|
-
|
|
19305
|
-
|
|
20545
|
+
function scheduleUpdate(effect) {
|
|
20546
|
+
if (!doing) {
|
|
20547
|
+
doing = true;
|
|
20548
|
+
requestAnimationFrame(function () {
|
|
20549
|
+
render(state, actionDispatchers);
|
|
20550
|
+
doing = false;
|
|
20551
|
+
});
|
|
20552
|
+
}
|
|
19306
20553
|
|
|
19307
|
-
|
|
19308
|
-
return d[0];
|
|
20554
|
+
if (isFunction$1(effect)) effect(dispatch);
|
|
19309
20555
|
}
|
|
19310
20556
|
|
|
19311
|
-
function
|
|
19312
|
-
|
|
20557
|
+
function dispatch(action, props) {
|
|
20558
|
+
invariant(actions[action] != null, "Action \"".concat(action, "\" is not defined, add it to \"actions\"."));
|
|
20559
|
+
var draft = pn(state);
|
|
20560
|
+
var effect = actions[action](draft, props);
|
|
20561
|
+
state = ln(draft);
|
|
20562
|
+
scheduleUpdate(effect);
|
|
19313
20563
|
}
|
|
19314
20564
|
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
}
|
|
19329
|
-
} else if (showTip && x0 === x1) {
|
|
19330
|
-
if (y0 < y1) {
|
|
19331
|
-
// Right
|
|
19332
|
-
tip = ["L", mx, my - TIP_SIZE, "L", mx + TIP_SIZE, my, "L", mx, my + TIP_SIZE];
|
|
19333
|
-
} else {
|
|
19334
|
-
// Left
|
|
19335
|
-
tip = ["L", mx, my + TIP_SIZE, "L", mx - TIP_SIZE, my, "L", mx, my - TIP_SIZE];
|
|
19336
|
-
}
|
|
19337
|
-
}
|
|
20565
|
+
var initialState = pn({});
|
|
20566
|
+
init(initialState).then(function (effect) {
|
|
20567
|
+
state = ln(initialState);
|
|
20568
|
+
scheduleUpdate(effect);
|
|
20569
|
+
viewport.on("resize", scheduleUpdate);
|
|
20570
|
+
}).catch(function (err) {
|
|
20571
|
+
invariant(false, err);
|
|
20572
|
+
fallback && fallbackRender(fallback.element, {
|
|
20573
|
+
src: fallback.src
|
|
20574
|
+
});
|
|
20575
|
+
});
|
|
20576
|
+
}; // -----------------------------------------------------------------------------
|
|
20577
|
+
// Helper functions
|
|
19338
20578
|
|
|
19339
|
-
|
|
19340
|
-
|
|
20579
|
+
function invariant(condition, message) {
|
|
20580
|
+
if (!condition) {
|
|
20581
|
+
throw new Error("[sszvis.app] ".concat(message));
|
|
19341
20582
|
}
|
|
19342
|
-
|
|
19343
|
-
return [// Start
|
|
19344
|
-
["M", x(a), y(a) + radius], // Top side
|
|
19345
|
-
side(x(a), y(a), x(a) + radius, y(a), x(b) - radius, y(a), orientation === "top"), // Right side
|
|
19346
|
-
side(x(b), y(a), x(b), y(a) + radius, x(b), y(b) - radius, orientation === "right"), // Bottom side
|
|
19347
|
-
side(x(b), y(b), x(b) - radius, y(b), x(a) + radius, y(b), orientation === "bottom"), // Left side
|
|
19348
|
-
side(x(a), y(b), x(a), y(b) - radius, x(a), y(a) + radius, orientation === "left")].map(function (d) {
|
|
19349
|
-
return d.join(" ");
|
|
19350
|
-
}).join(" ");
|
|
19351
|
-
}
|
|
19352
|
-
/**
|
|
19353
|
-
* Detect whether the current browser supports SVG filters
|
|
19354
|
-
*/
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
function supportsSVGFilters() {
|
|
19358
|
-
return window["SVGFEColorMatrixElement"] !== undefined && SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE == 2;
|
|
19359
20583
|
}
|
|
19360
20584
|
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
*
|
|
19364
|
-
* This is a useful default function for making a tooltip fit within a horizontal space.
|
|
19365
|
-
* You provide a default orientation for the tooltip, but also provide the bounds of the
|
|
19366
|
-
* space within which the tooltip should stay. When the tooltip is too close to the left
|
|
19367
|
-
* or right edge of the bounds, it is oriented away from the edge. Otherwise the default
|
|
19368
|
-
* is used.
|
|
19369
|
-
*
|
|
19370
|
-
* @param {String} defaultValue The default value for the tooltip orientation
|
|
19371
|
-
* @param {Object} bounds The bounds object within which the tooltip should stay.
|
|
19372
|
-
*
|
|
19373
|
-
* @returns {Function} A function for calculating the orientation of the tooltips.
|
|
19374
|
-
*/
|
|
19375
|
-
function fitTooltip (defaultVal, bounds) {
|
|
19376
|
-
var lo = Math.min(bounds.innerWidth * 1 / 4, 100);
|
|
19377
|
-
var hi = Math.max(bounds.innerWidth * 3 / 4, bounds.innerWidth - 100);
|
|
19378
|
-
return function (d) {
|
|
19379
|
-
var x = d.x;
|
|
19380
|
-
return x > hi ? "right" : x < lo ? "left" : defaultVal;
|
|
19381
|
-
};
|
|
20585
|
+
function isFunction$1(x) {
|
|
20586
|
+
return typeof x === "function";
|
|
19382
20587
|
}
|
|
19383
20588
|
|
|
19384
20589
|
/**
|
|
@@ -19976,6 +21181,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
19976
21181
|
*
|
|
19977
21182
|
* @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.
|
|
19978
21183
|
* @property {boolean} contour Specify a 'contour' background for the axis labels.
|
|
21184
|
+
* @property {boolean} removeStroke Removes the default stroke applied to the text
|
|
19979
21185
|
* @property {number} hideBorderTickThreshold Specifies the pixel distance threshold for the visible tick correction. Ticks which are closer than
|
|
19980
21186
|
* this threshold to the end of the axis (i.e. a tick which is 1 or two pixels from the end) will be
|
|
19981
21187
|
* hidden from view. This prevents the display of a tick very close to the ending line.
|
|
@@ -20010,7 +21216,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
20010
21216
|
var axis = function axis() {
|
|
20011
21217
|
// var axisDelegate = d3.axisBottom();
|
|
20012
21218
|
// axisDelegate.orient = function() { return 'bottom'; };
|
|
20013
|
-
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
|
|
21219
|
+
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
|
|
20014
21220
|
.prop("titleCenter") // a boolean value - whether to center the title
|
|
20015
21221
|
.prop("dxTitle") // a numeric value for the left offset of the title
|
|
20016
21222
|
.prop("dyTitle") // a numeric value for the top offset of the title
|
|
@@ -20254,6 +21460,14 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
20254
21460
|
textContour.text(textNode.textContent);
|
|
20255
21461
|
});
|
|
20256
21462
|
}
|
|
21463
|
+
|
|
21464
|
+
if (!props.removeStroke) {
|
|
21465
|
+
tickGroups.each(function () {
|
|
21466
|
+
var g = d3.select(this);
|
|
21467
|
+
var textNode = g.select("text");
|
|
21468
|
+
textNode.attr("stroke", "white").attr("stroke-width", 0.5).attr("stroke-opacity", 0.75);
|
|
21469
|
+
});
|
|
21470
|
+
}
|
|
20257
21471
|
}); // axisComponent.__delegate__ = axisDelegate;
|
|
20258
21472
|
|
|
20259
21473
|
return axisComponent;
|
|
@@ -21646,6 +22860,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
21646
22860
|
return component().prop("radius").prop("fill").prop("stroke").prop("angle", functor).render(function (data) {
|
|
21647
22861
|
var selection = d3.select(this);
|
|
21648
22862
|
var props = selection.props();
|
|
22863
|
+
var stroke = props.stroke || "#FFFFFF";
|
|
21649
22864
|
var angle = 0;
|
|
21650
22865
|
data.forEach(function (value) {
|
|
21651
22866
|
// In order for an angle transition to work correctly in d3, the transition must be done in data space.
|
|
@@ -21676,7 +22891,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
21676
22891
|
data[i].a1 = d.a1;
|
|
21677
22892
|
}
|
|
21678
22893
|
}).data(data);
|
|
21679
|
-
var newSegments = segments.enter().append("path").classed("sszvis-path", true).attr("transform", "translate(" + props.radius + "," + props.radius + ")").attr("fill", props.fill).attr("stroke",
|
|
22894
|
+
var newSegments = segments.enter().append("path").classed("sszvis-path", true).attr("transform", "translate(" + props.radius + "," + props.radius + ")").attr("fill", props.fill).attr("stroke", stroke);
|
|
21680
22895
|
segments.exit().remove();
|
|
21681
22896
|
segments = segments.merge(newSegments);
|
|
21682
22897
|
segments.transition(defaultTransition()).attr("transform", "translate(" + props.radius + "," + props.radius + ")").attrTween("d", function (d) {
|
|
@@ -21687,7 +22902,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
21687
22902
|
d.a1 = angle1Interp(t);
|
|
21688
22903
|
return arcGen(d);
|
|
21689
22904
|
};
|
|
21690
|
-
}).attr("fill", props.fill).attr("stroke",
|
|
22905
|
+
}).attr("fill", props.fill).attr("stroke", stroke);
|
|
21691
22906
|
var ta = tooltipAnchor().position(function (d) {
|
|
21692
22907
|
// The correction by - Math.PI / 2 is necessary because d3 automatically (and with brief, buried documentation!)
|
|
21693
22908
|
// makes the same correction to svg.arc() angles :o
|
|
@@ -22048,7 +23263,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
22048
23263
|
paths = paths.transition(defaultTransition());
|
|
22049
23264
|
}
|
|
22050
23265
|
|
|
22051
|
-
paths.attr("d", areaGen).attr("fill", props.fill).attr("stroke", props.stroke);
|
|
23266
|
+
paths.attr("d", areaGen).attr("fill", props.fill).attr("stroke", props.stroke || "#ffffff");
|
|
22052
23267
|
});
|
|
22053
23268
|
}
|
|
22054
23269
|
|
|
@@ -22177,7 +23392,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
22177
23392
|
return component().prop("xScale", functor).prop("width", functor).prop("yScale", functor).prop("height", functor).prop("fill").prop("stroke").render(function (data) {
|
|
22178
23393
|
var selection = d3.select(this);
|
|
22179
23394
|
var props = selection.props();
|
|
22180
|
-
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);
|
|
23395
|
+
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");
|
|
22181
23396
|
var groups = selection.selectAll(".sszvis-stack").data(data);
|
|
22182
23397
|
var newGroups = groups.enter().append("g").classed("sszvis-stack", true);
|
|
22183
23398
|
groups.exit().remove();
|
|
@@ -22877,34 +24092,6 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
22877
24092
|
return viewport.merge(viewportEnter);
|
|
22878
24093
|
}
|
|
22879
24094
|
|
|
22880
|
-
/**
|
|
22881
|
-
* Fallback handling
|
|
22882
|
-
*
|
|
22883
|
-
* Defaults to rendering a fallback image with standard chart proportions.
|
|
22884
|
-
*
|
|
22885
|
-
* @example
|
|
22886
|
-
* if (sszvis.fallback.unsupported()) {
|
|
22887
|
-
* sszvis.fallback.render('#sszvis-chart', {src: '../fallback.png', height: 300});
|
|
22888
|
-
* return;
|
|
22889
|
-
* }
|
|
22890
|
-
*
|
|
22891
|
-
* @module sszvis/fallback
|
|
22892
|
-
*/
|
|
22893
|
-
var fallbackUnsupported = function fallbackUnsupported() {
|
|
22894
|
-
var supportsSVG = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect;
|
|
22895
|
-
return !supportsSVG;
|
|
22896
|
-
};
|
|
22897
|
-
var fallbackCanvasUnsupported = function fallbackCanvasUnsupported() {
|
|
22898
|
-
var supportsCanvas = !!document.createElement("canvas").getContext;
|
|
22899
|
-
return !supportsCanvas;
|
|
22900
|
-
};
|
|
22901
|
-
var fallbackRender = function fallbackRender(selector, options) {
|
|
22902
|
-
options || (options = {});
|
|
22903
|
-
options.src || (options.src = "fallback.png");
|
|
22904
|
-
var selection = isSelection(selector) ? selector : d3.select(selector);
|
|
22905
|
-
selection.append("img").attr("class", "sszvis-fallback-image").attr("src", options.src);
|
|
22906
|
-
};
|
|
22907
|
-
|
|
22908
24095
|
/**
|
|
22909
24096
|
* Ordinal Color Scale Legend
|
|
22910
24097
|
*
|
|
@@ -24347,44 +25534,44 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24347
25534
|
*
|
|
24348
25535
|
* @return {sszvis.component}
|
|
24349
25536
|
*/
|
|
24350
|
-
var datumAcc = prop(
|
|
25537
|
+
var datumAcc = prop("datum");
|
|
24351
25538
|
function bubble () {
|
|
24352
|
-
var event = d3.dispatch(
|
|
24353
|
-
var anchoredCirclesComponent = component().prop(
|
|
25539
|
+
var event = d3.dispatch("over", "out", "click");
|
|
25540
|
+
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 () {
|
|
24354
25541
|
var selection = d3.select(this);
|
|
24355
25542
|
var props = selection.props();
|
|
24356
25543
|
var radiusAcc = compose(props.radius, datumAcc);
|
|
24357
|
-
var anchoredCircles = selection.selectGroup(
|
|
25544
|
+
var anchoredCircles = selection.selectGroup("anchoredCircles").selectAll(".sszvis-anchored-circle").data(props.mergedData, function (d) {
|
|
24358
25545
|
return d.geoJson.id;
|
|
24359
25546
|
});
|
|
24360
|
-
anchoredCircles.enter().append(
|
|
24361
|
-
event.call(
|
|
24362
|
-
}).on(
|
|
24363
|
-
event.call(
|
|
24364
|
-
}).on(
|
|
24365
|
-
event.call(
|
|
24366
|
-
}).merge(anchoredCircles).attr(
|
|
25547
|
+
anchoredCircles.enter().append("circle").attr("class", "sszvis-anchored-circle sszvis-anchored-circle--entering").attr("r", radiusAcc).on("mouseover", function (d) {
|
|
25548
|
+
event.call("over", this, d.datum);
|
|
25549
|
+
}).on("mouseout", function (d) {
|
|
25550
|
+
event.call("out", this, d.datum);
|
|
25551
|
+
}).on("click", function (d) {
|
|
25552
|
+
event.call("click", this, d.datum);
|
|
25553
|
+
}).merge(anchoredCircles).attr("transform", function (d) {
|
|
24367
25554
|
var position = props.mapPath.projection()(getGeoJsonCenter(d.geoJson));
|
|
24368
25555
|
return translateString(position[0], position[1]);
|
|
24369
|
-
}).style(
|
|
25556
|
+
}).style("fill", function (d) {
|
|
24370
25557
|
return props.fill(d.datum);
|
|
24371
|
-
}).style(
|
|
25558
|
+
}).style("stroke", function (d) {
|
|
24372
25559
|
return props.strokeColor(d.datum);
|
|
24373
|
-
}).style(
|
|
25560
|
+
}).style("stroke-width", function (d) {
|
|
24374
25561
|
return props.strokeWidth(d.datum);
|
|
24375
25562
|
}).sort(function (a, b) {
|
|
24376
25563
|
return props.radius(b.datum) - props.radius(a.datum);
|
|
24377
25564
|
}); // Remove the --entering modifier from the updating circles
|
|
24378
25565
|
|
|
24379
|
-
anchoredCircles.classed(
|
|
25566
|
+
anchoredCircles.classed("sszvis-anchored-circle--entering", false);
|
|
24380
25567
|
|
|
24381
25568
|
if (props.transition) {
|
|
24382
25569
|
var t = defaultTransition();
|
|
24383
|
-
anchoredCircles.exit().transition(t).attr(
|
|
24384
|
-
anchoredCircles.transition(t).attr(
|
|
25570
|
+
anchoredCircles.exit().transition(t).attr("r", 0).remove();
|
|
25571
|
+
anchoredCircles.transition(t).attr("r", radiusAcc);
|
|
24385
25572
|
} else {
|
|
24386
25573
|
anchoredCircles.exit().remove();
|
|
24387
|
-
anchoredCircles.attr(
|
|
25574
|
+
anchoredCircles.attr("r", radiusAcc);
|
|
24388
25575
|
}
|
|
24389
25576
|
});
|
|
24390
25577
|
|
|
@@ -24419,45 +25606,45 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24419
25606
|
* @return {sszvis.component}
|
|
24420
25607
|
*/
|
|
24421
25608
|
function mapRendererBase () {
|
|
24422
|
-
return component().prop(
|
|
24423
|
-
.prop(
|
|
24424
|
-
return
|
|
25609
|
+
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
|
|
25610
|
+
.prop("fill", functor).fill(function () {
|
|
25611
|
+
return "black";
|
|
24425
25612
|
}) // a function for the entity fill color. default is black
|
|
24426
|
-
.prop(
|
|
25613
|
+
.prop("transitionColor").transitionColor(true).render(function () {
|
|
24427
25614
|
var selection = d3.select(this);
|
|
24428
25615
|
var props = selection.props(); // render the missing value pattern
|
|
24429
25616
|
|
|
24430
|
-
ensureDefsElement(selection,
|
|
25617
|
+
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
|
|
24431
25618
|
|
|
24432
25619
|
function getMapFill(d) {
|
|
24433
|
-
return props.defined(d.datum) ? props.fill(d.datum) :
|
|
25620
|
+
return props.defined(d.datum) ? props.fill(d.datum) : "url(#missing-pattern)";
|
|
24434
25621
|
}
|
|
24435
25622
|
|
|
24436
|
-
var mapAreas = selection.selectAll(
|
|
25623
|
+
var mapAreas = selection.selectAll(".sszvis-map__area").data(props.mergedData); // add the base map paths - these are filled according to the map fill function
|
|
24437
25624
|
|
|
24438
|
-
var newMapAreas = mapAreas.enter().append(
|
|
24439
|
-
mapAreas.classed(
|
|
25625
|
+
var newMapAreas = mapAreas.enter().append("path").classed("sszvis-map__area", true).classed("sszvis-map__area--entering", true).attr("data-event-target", "").attr("fill", getMapFill);
|
|
25626
|
+
mapAreas.classed("sszvis-map__area--entering", false);
|
|
24440
25627
|
mapAreas.exit().remove();
|
|
24441
25628
|
mapAreas = mapAreas.merge(newMapAreas);
|
|
24442
|
-
selection.selectAll(
|
|
25629
|
+
selection.selectAll(".sszvis-map__area--undefined").attr("fill", getMapFill); // change the fill if necessary
|
|
24443
25630
|
|
|
24444
|
-
mapAreas.classed(
|
|
25631
|
+
mapAreas.classed("sszvis-map__area--undefined", function (d) {
|
|
24445
25632
|
return !defined(d.datum) || !props.defined(d.datum);
|
|
24446
|
-
}).attr(
|
|
25633
|
+
}).attr("d", function (d) {
|
|
24447
25634
|
return props.mapPath(d.geoJson);
|
|
24448
25635
|
});
|
|
24449
25636
|
|
|
24450
25637
|
if (props.transitionColor) {
|
|
24451
|
-
mapAreas.transition().call(slowTransition).attr(
|
|
25638
|
+
mapAreas.transition().call(slowTransition).attr("fill", getMapFill);
|
|
24452
25639
|
} else {
|
|
24453
|
-
mapAreas.attr(
|
|
25640
|
+
mapAreas.attr("fill", getMapFill);
|
|
24454
25641
|
} // the tooltip anchor generator
|
|
24455
25642
|
|
|
24456
25643
|
|
|
24457
25644
|
var ta = tooltipAnchor().position(function (d) {
|
|
24458
25645
|
return props.mapPath.projection()(getGeoJsonCenter(d.geoJson));
|
|
24459
25646
|
});
|
|
24460
|
-
var tooltipGroup = selection.selectGroup(
|
|
25647
|
+
var tooltipGroup = selection.selectGroup("tooltipAnchors").datum(props.mergedData); // attach tooltip anchors
|
|
24461
25648
|
|
|
24462
25649
|
tooltipGroup.call(ta);
|
|
24463
25650
|
});
|
|
@@ -24486,12 +25673,12 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24486
25673
|
* @return {sszvis.component}
|
|
24487
25674
|
*/
|
|
24488
25675
|
function geojson () {
|
|
24489
|
-
var event = d3.dispatch(
|
|
24490
|
-
var geojsonComponent = component().prop(
|
|
25676
|
+
var event = d3.dispatch("over", "out", "click");
|
|
25677
|
+
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) {
|
|
24491
25678
|
var selection = d3.select(this);
|
|
24492
25679
|
var props = selection.props(); // render the missing value pattern
|
|
24493
25680
|
|
|
24494
|
-
ensureDefsElement(selection,
|
|
25681
|
+
ensureDefsElement(selection, "pattern", "missing-pattern").call(mapMissingValuePattern); // getDataKeyName will be called on data values. It should return a map entity id.
|
|
24495
25682
|
// getMapKeyName will be called on the 'properties' of each map feature. It should
|
|
24496
25683
|
// return a map entity id. Data values are matched with corresponding map features using
|
|
24497
25684
|
// these entity ids.
|
|
@@ -24510,36 +25697,36 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24510
25697
|
});
|
|
24511
25698
|
|
|
24512
25699
|
function getMapFill(d) {
|
|
24513
|
-
return defined(d.datum) && props.defined(d.datum) ? props.fill(d.datum) :
|
|
25700
|
+
return defined(d.datum) && props.defined(d.datum) ? props.fill(d.datum) : "url(#missing-pattern)";
|
|
24514
25701
|
}
|
|
24515
25702
|
|
|
24516
25703
|
function getMapStroke(d) {
|
|
24517
|
-
return defined(d.datum) && props.defined(d.datum) ? props.stroke(d.datum) :
|
|
25704
|
+
return defined(d.datum) && props.defined(d.datum) ? props.stroke(d.datum) : "";
|
|
24518
25705
|
}
|
|
24519
25706
|
|
|
24520
|
-
var geoElements = selection.selectAll(
|
|
24521
|
-
var newGeoElements = geoElements.enter().append(
|
|
25707
|
+
var geoElements = selection.selectAll(".sszvis-map__geojsonelement").data(mergedData);
|
|
25708
|
+
var newGeoElements = geoElements.enter().append("path").classed("sszvis-map__geojsonelement", true).attr("data-event-target", "").attr("fill", getMapFill);
|
|
24522
25709
|
geoElements.exit().remove();
|
|
24523
25710
|
geoElements = geoElements.merge(newGeoElements);
|
|
24524
|
-
selection.selectAll(
|
|
24525
|
-
geoElements.classed(
|
|
25711
|
+
selection.selectAll(".sszvis-map__geojsonelement--undefined").attr("fill", getMapFill);
|
|
25712
|
+
geoElements.classed("sszvis-map__geojsonelement--undefined", function (d) {
|
|
24526
25713
|
return !defined(d.datum) || !props.defined(d.datum);
|
|
24527
|
-
}).attr(
|
|
25714
|
+
}).attr("d", function (d) {
|
|
24528
25715
|
return props.mapPath(d.geoJson);
|
|
24529
25716
|
});
|
|
24530
25717
|
|
|
24531
25718
|
if (props.transitionColor) {
|
|
24532
|
-
geoElements.transition().call(slowTransition).attr(
|
|
25719
|
+
geoElements.transition().call(slowTransition).attr("fill", getMapFill);
|
|
24533
25720
|
} else {
|
|
24534
|
-
geoElements.attr(
|
|
25721
|
+
geoElements.attr("fill", getMapFill);
|
|
24535
25722
|
}
|
|
24536
25723
|
|
|
24537
|
-
geoElements.attr(
|
|
24538
|
-
selection.selectAll(
|
|
25724
|
+
geoElements.attr("stroke", getMapStroke).attr("stroke-width", props.strokeWidth);
|
|
25725
|
+
selection.selectAll("[data-event-target]").on("mouseover", function (d) {
|
|
24539
25726
|
event.over(d.datum);
|
|
24540
|
-
}).on(
|
|
25727
|
+
}).on("mouseout", function (d) {
|
|
24541
25728
|
event.out(d.datum);
|
|
24542
|
-
}).on(
|
|
25729
|
+
}).on("click", function (d) {
|
|
24543
25730
|
event.click(d.datum);
|
|
24544
25731
|
}); // the tooltip anchor generator
|
|
24545
25732
|
|
|
@@ -24553,7 +25740,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24553
25740
|
|
|
24554
25741
|
return props.mapPath.projection()(sphericalCentroid);
|
|
24555
25742
|
});
|
|
24556
|
-
var tooltipGroup = selection.selectGroup(
|
|
25743
|
+
var tooltipGroup = selection.selectGroup("tooltipAnchors").datum(mergedData); // attach tooltip anchors
|
|
24557
25744
|
|
|
24558
25745
|
tooltipGroup.call(ta);
|
|
24559
25746
|
});
|
|
@@ -24584,13 +25771,13 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24584
25771
|
* @return {sszvis.component}
|
|
24585
25772
|
*/
|
|
24586
25773
|
function mapRendererHighlight () {
|
|
24587
|
-
return component().prop(
|
|
24588
|
-
.prop(
|
|
24589
|
-
.prop(
|
|
24590
|
-
.prop(
|
|
25774
|
+
return component().prop("keyName").keyName(GEO_KEY_DEFAULT) // the name of the data key that identifies which map entity it belongs to
|
|
25775
|
+
.prop("geoJson").prop("mapPath").prop("highlight").highlight([]) // an array of data values to highlight
|
|
25776
|
+
.prop("highlightStroke", functor).highlightStroke("white") // a function for highlighted entity stroke colors (default: white)
|
|
25777
|
+
.prop("highlightStrokeWidth", functor).highlightStrokeWidth(2).render(function () {
|
|
24591
25778
|
var selection = d3.select(this);
|
|
24592
25779
|
var props = selection.props();
|
|
24593
|
-
var highlightBorders = selection.selectAll(
|
|
25780
|
+
var highlightBorders = selection.selectAll(".sszvis-map__highlight");
|
|
24594
25781
|
|
|
24595
25782
|
if (!props.highlight.length) {
|
|
24596
25783
|
highlightBorders.remove();
|
|
@@ -24613,14 +25800,14 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24613
25800
|
return m;
|
|
24614
25801
|
}, []);
|
|
24615
25802
|
highlightBorders = highlightBorders.data(mergedHighlight);
|
|
24616
|
-
var newHighlightBorders = highlightBorders.enter().append(
|
|
25803
|
+
var newHighlightBorders = highlightBorders.enter().append("path").classed("sszvis-map__highlight", true);
|
|
24617
25804
|
highlightBorders.exit().remove();
|
|
24618
25805
|
highlightBorders = highlightBorders.merge(newHighlightBorders);
|
|
24619
|
-
highlightBorders.attr(
|
|
25806
|
+
highlightBorders.attr("d", function (d) {
|
|
24620
25807
|
return props.mapPath(d.geoJson);
|
|
24621
|
-
}).style(
|
|
25808
|
+
}).style("stroke", function (d) {
|
|
24622
25809
|
return props.highlightStroke(d.datum);
|
|
24623
|
-
}).style(
|
|
25810
|
+
}).style("stroke-width", function (d) {
|
|
24624
25811
|
return props.highlightStrokeWidth(d.datum);
|
|
24625
25812
|
});
|
|
24626
25813
|
});
|
|
@@ -24654,17 +25841,17 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24654
25841
|
* @return {sszvis.component}
|
|
24655
25842
|
*/
|
|
24656
25843
|
function image () {
|
|
24657
|
-
return component().prop(
|
|
25844
|
+
return component().prop("projection").prop("src").prop("geoBounds").prop("opacity").opacity(1).render(function () {
|
|
24658
25845
|
var selection = d3.select(this);
|
|
24659
25846
|
var props = selection.props();
|
|
24660
|
-
var image = selection.selectAll(
|
|
25847
|
+
var image = selection.selectAll(".sszvis-map__image").data([0]); // At the moment, 1 image per container
|
|
24661
25848
|
|
|
24662
|
-
var newImage = image.enter().append(
|
|
25849
|
+
var newImage = image.enter().append("img").classed("sszvis-map__image", true);
|
|
24663
25850
|
image.exit().remove();
|
|
24664
25851
|
image = image.merge(newImage);
|
|
24665
25852
|
var topLeft = props.projection(props.geoBounds[0]);
|
|
24666
25853
|
var bottomRight = props.projection(props.geoBounds[1]);
|
|
24667
|
-
image.attr(
|
|
25854
|
+
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);
|
|
24668
25855
|
});
|
|
24669
25856
|
}
|
|
24670
25857
|
|
|
@@ -24686,16 +25873,16 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24686
25873
|
* @return {sszvis.component}
|
|
24687
25874
|
*/
|
|
24688
25875
|
function mapRendererMesh () {
|
|
24689
|
-
return component().prop(
|
|
24690
|
-
.prop(
|
|
25876
|
+
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
|
|
25877
|
+
.prop("strokeWidth").strokeWidth(1.25).render(function () {
|
|
24691
25878
|
var selection = d3.select(this);
|
|
24692
25879
|
var props = selection.props(); // add the map borders. These are rendered as one single path element
|
|
24693
25880
|
|
|
24694
|
-
var meshLine = selection.selectAll(
|
|
24695
|
-
var newMeshLine = meshLine.enter().append(
|
|
25881
|
+
var meshLine = selection.selectAll(".sszvis-map__border").data([props.geoJson]);
|
|
25882
|
+
var newMeshLine = meshLine.enter().append("path").classed("sszvis-map__border", true);
|
|
24696
25883
|
meshLine.exit().remove();
|
|
24697
25884
|
meshLine = meshLine.merge(newMeshLine);
|
|
24698
|
-
meshLine.attr(
|
|
25885
|
+
meshLine.attr("d", props.mapPath).style("stroke", props.borderColor).style("stroke-width", props.strokeWidth);
|
|
24699
25886
|
});
|
|
24700
25887
|
}
|
|
24701
25888
|
|
|
@@ -24716,41 +25903,41 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24716
25903
|
* @return {sszvis.component}
|
|
24717
25904
|
*/
|
|
24718
25905
|
function mapRendererPatternedLakeOverlay () {
|
|
24719
|
-
return component().prop(
|
|
25906
|
+
return component().prop("mapPath").prop("lakeFeature").prop("lakeBounds").prop("lakePathColor").prop("fadeOut").fadeOut(true).render(function () {
|
|
24720
25907
|
var selection = d3.select(this);
|
|
24721
25908
|
var props = selection.props(); // the lake texture
|
|
24722
25909
|
|
|
24723
|
-
ensureDefsElement(selection,
|
|
25910
|
+
ensureDefsElement(selection, "pattern", "lake-pattern").call(mapLakePattern);
|
|
24724
25911
|
|
|
24725
25912
|
if (props.fadeOut) {
|
|
24726
25913
|
// the fade gradient
|
|
24727
|
-
ensureDefsElement(selection,
|
|
25914
|
+
ensureDefsElement(selection, "linearGradient", "lake-fade-gradient").call(mapLakeFadeGradient); // the mask, which uses the fade gradient
|
|
24728
25915
|
|
|
24729
|
-
ensureDefsElement(selection,
|
|
25916
|
+
ensureDefsElement(selection, "mask", "lake-fade-mask").call(mapLakeGradientMask);
|
|
24730
25917
|
} // generate the Lake Zurich path
|
|
24731
25918
|
|
|
24732
25919
|
|
|
24733
|
-
var zurichSee = selection.selectAll(
|
|
24734
|
-
var newZurichSee = zurichSee.enter().append(
|
|
25920
|
+
var zurichSee = selection.selectAll(".sszvis-map__lakezurich").data([props.lakeFeature]);
|
|
25921
|
+
var newZurichSee = zurichSee.enter().append("path").classed("sszvis-map__lakezurich", true);
|
|
24735
25922
|
zurichSee.exit().remove();
|
|
24736
25923
|
zurichSee = zurichSee.merge(newZurichSee);
|
|
24737
|
-
zurichSee.attr(
|
|
25924
|
+
zurichSee.attr("d", props.mapPath).attr("fill", "url(#lake-pattern)");
|
|
24738
25925
|
|
|
24739
25926
|
if (props.fadeOut) {
|
|
24740
25927
|
// this mask applies the fade effect
|
|
24741
|
-
zurichSee.attr(
|
|
25928
|
+
zurichSee.attr("mask", "url(#lake-fade-mask)");
|
|
24742
25929
|
} // add a path for the boundaries of map entities which extend over the lake.
|
|
24743
25930
|
// This path is rendered as a dotted line over the lake shape
|
|
24744
25931
|
|
|
24745
25932
|
|
|
24746
|
-
var lakePath = selection.selectAll(
|
|
24747
|
-
var newLakePath = lakePath.enter().append(
|
|
25933
|
+
var lakePath = selection.selectAll(".sszvis-map__lakepath").data([props.lakeBounds]);
|
|
25934
|
+
var newLakePath = lakePath.enter().append("path").classed("sszvis-map__lakepath", true);
|
|
24748
25935
|
lakePath.exit().remove();
|
|
24749
25936
|
lakePath = lakePath.merge(newLakePath);
|
|
24750
|
-
lakePath.attr(
|
|
25937
|
+
lakePath.attr("d", props.mapPath);
|
|
24751
25938
|
|
|
24752
25939
|
if (props.lakePathColor) {
|
|
24753
|
-
lakePath.style(
|
|
25940
|
+
lakePath.style("stroke", props.lakePathColor);
|
|
24754
25941
|
}
|
|
24755
25942
|
});
|
|
24756
25943
|
}
|
|
@@ -24777,21 +25964,21 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
24777
25964
|
* @return {sszvis.component}
|
|
24778
25965
|
*/
|
|
24779
25966
|
function raster () {
|
|
24780
|
-
return component().prop(
|
|
25967
|
+
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) {
|
|
24781
25968
|
var selection = d3.select(this);
|
|
24782
25969
|
var props = selection.props();
|
|
24783
|
-
var canvas = selection.selectAll(
|
|
24784
|
-
var newCanvas = canvas.enter().append(
|
|
25970
|
+
var canvas = selection.selectAll(".sszvis-map__rasterimage").data([0]);
|
|
25971
|
+
var newCanvas = canvas.enter().append("canvas").classed("sszvis-map__rasterimage", true);
|
|
24785
25972
|
canvas.exit().remove();
|
|
24786
25973
|
canvas = canvas.merge(newCanvas);
|
|
24787
|
-
canvas.attr(
|
|
24788
|
-
var ctx = canvas.node().getContext(
|
|
25974
|
+
canvas.attr("width", props.width).attr("height", props.height).style("opacity", props.opacity);
|
|
25975
|
+
var ctx = canvas.node().getContext("2d");
|
|
24789
25976
|
ctx.clearRect(0, 0, props.width, props.height);
|
|
24790
25977
|
|
|
24791
25978
|
if (props.debug) {
|
|
24792
25979
|
// Displays a rectangle that fills the canvas.
|
|
24793
25980
|
// Useful for checking alignment with other render layers.
|
|
24794
|
-
ctx.fillStyle =
|
|
25981
|
+
ctx.fillStyle = "rgba(255, 0, 0, 0.2)";
|
|
24795
25982
|
ctx.fillRect(0, 0, props.width, props.height);
|
|
24796
25983
|
}
|
|
24797
25984
|
|
|
@@ -25271,127 +26458,6 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
25271
26458
|
var modularTextHTML = makeTextWithFormat(formatHTML());
|
|
25272
26459
|
var modularTextSVG = makeTextWithFormat(formatSVG());
|
|
25273
26460
|
|
|
25274
|
-
/**
|
|
25275
|
-
* Viewport Resize watcher
|
|
25276
|
-
*
|
|
25277
|
-
* The resize watcher in the sszvis.viewport module can be used for alerting user code to
|
|
25278
|
-
* changes in the browser window size. This includes window resizing on desktop computers
|
|
25279
|
-
* and browsers, but also orientation changes on mobile browsers. Functions which listen
|
|
25280
|
-
* to the 'resize' event of the sszvis.viewport module will be fired on window resize.
|
|
25281
|
-
* You can add a resize listener to your application very easily:
|
|
25282
|
-
*
|
|
25283
|
-
* sszvis.viewport.on('resize', listenerFunction);
|
|
25284
|
-
*
|
|
25285
|
-
* The listener function will be called once per resize event, but at a slight delay. This is because,
|
|
25286
|
-
* while a user is resizing their browser window, many resize events can fire very quickly. This component
|
|
25287
|
-
* automatically throttles the rate at which the listener function is called, since you probably don't need
|
|
25288
|
-
* to respond to every single resize event. This throttling provides for a smoother user experience as they
|
|
25289
|
-
* resize the browser, and increases performance across the board. The listener function will always be
|
|
25290
|
-
* called after one or more window resize events, it just won't be called as often as the window fires the
|
|
25291
|
-
* events.
|
|
25292
|
-
*
|
|
25293
|
-
* @module sszvis/viewport
|
|
25294
|
-
*
|
|
25295
|
-
* @function {string, function} on the .on() function is used to listen to the resize event itself.
|
|
25296
|
-
* There is only one event supported by this component at the moment, so
|
|
25297
|
-
* the first argument to .on must be 'resize' for it to have any effect.
|
|
25298
|
-
* Although this is somewhat redundant, it is done to keep this component's
|
|
25299
|
-
* API clear and in line with other components.
|
|
25300
|
-
*
|
|
25301
|
-
* @return {Object}
|
|
25302
|
-
*/
|
|
25303
|
-
|
|
25304
|
-
function throttle(wait, func) {
|
|
25305
|
-
var context, args, result;
|
|
25306
|
-
var timeout = null;
|
|
25307
|
-
var previous = 0;
|
|
25308
|
-
|
|
25309
|
-
var lastCall = function lastCall() {
|
|
25310
|
-
previous = 0;
|
|
25311
|
-
result = func.apply(context, args);
|
|
25312
|
-
timeout = context = args = null;
|
|
25313
|
-
};
|
|
25314
|
-
|
|
25315
|
-
return function () {
|
|
25316
|
-
var now = Date.now();
|
|
25317
|
-
if (!previous) previous = now; // Sets up so that the function isn't called immediately
|
|
25318
|
-
|
|
25319
|
-
var remaining = wait - (now - previous);
|
|
25320
|
-
context = this;
|
|
25321
|
-
args = arguments;
|
|
25322
|
-
|
|
25323
|
-
if (remaining <= 0 || remaining > wait) {
|
|
25324
|
-
if (timeout) {
|
|
25325
|
-
clearTimeout(timeout);
|
|
25326
|
-
timeout = null;
|
|
25327
|
-
}
|
|
25328
|
-
|
|
25329
|
-
previous = now;
|
|
25330
|
-
result = func.apply(context, args);
|
|
25331
|
-
if (!timeout) context = args = null;
|
|
25332
|
-
} else if (!timeout) {
|
|
25333
|
-
timeout = setTimeout(lastCall, remaining);
|
|
25334
|
-
}
|
|
25335
|
-
|
|
25336
|
-
return result;
|
|
25337
|
-
};
|
|
25338
|
-
} // This rather strange set of functions is designed to support the API:
|
|
25339
|
-
// sszvis.viewport.on('resize', callback);
|
|
25340
|
-
// While still enabling the user to register multiple callbacks for the 'resize'
|
|
25341
|
-
// event. Multiple callbacks are a feature which simply returning a d3.dispatch('resize')
|
|
25342
|
-
// object would not allow.
|
|
25343
|
-
|
|
25344
|
-
|
|
25345
|
-
var callbacks = {
|
|
25346
|
-
resize: []
|
|
25347
|
-
};
|
|
25348
|
-
|
|
25349
|
-
if (typeof window !== "undefined") {
|
|
25350
|
-
d3.select(window).on("resize", throttle(500, function () {
|
|
25351
|
-
trigger("resize");
|
|
25352
|
-
}));
|
|
25353
|
-
}
|
|
25354
|
-
|
|
25355
|
-
var on = function on(name, cb) {
|
|
25356
|
-
if (!callbacks[name]) {
|
|
25357
|
-
callbacks[name] = [];
|
|
25358
|
-
}
|
|
25359
|
-
|
|
25360
|
-
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
25361
|
-
return fn !== cb;
|
|
25362
|
-
}).concat(cb);
|
|
25363
|
-
return this;
|
|
25364
|
-
};
|
|
25365
|
-
|
|
25366
|
-
var off = function off(name, cb) {
|
|
25367
|
-
if (!callbacks[name]) {
|
|
25368
|
-
return this;
|
|
25369
|
-
}
|
|
25370
|
-
|
|
25371
|
-
callbacks[name] = callbacks[name].filter(function (fn) {
|
|
25372
|
-
return fn !== cb;
|
|
25373
|
-
});
|
|
25374
|
-
return this;
|
|
25375
|
-
};
|
|
25376
|
-
|
|
25377
|
-
var trigger = function trigger(name) {
|
|
25378
|
-
var evtArgs = Array.prototype.slice.call(arguments, 1);
|
|
25379
|
-
|
|
25380
|
-
if (callbacks[name]) {
|
|
25381
|
-
callbacks[name].forEach(function (fn) {
|
|
25382
|
-
fn.apply(null, evtArgs);
|
|
25383
|
-
});
|
|
25384
|
-
}
|
|
25385
|
-
|
|
25386
|
-
return this;
|
|
25387
|
-
};
|
|
25388
|
-
|
|
25389
|
-
var viewport = {
|
|
25390
|
-
on: on,
|
|
25391
|
-
off: off,
|
|
25392
|
-
trigger: trigger
|
|
25393
|
-
};
|
|
25394
|
-
|
|
25395
26461
|
exports.AGGLOMERATION_2012_KEY = AGGLOMERATION_2012_KEY;
|
|
25396
26462
|
exports.DEFAULT_LEGEND_COLOR_ORDINAL_ROW_HEIGHT = DEFAULT_LEGEND_COLOR_ORDINAL_ROW_HEIGHT;
|
|
25397
26463
|
exports.DEFAULT_WIDTH = DEFAULT_WIDTH;
|
|
@@ -25408,6 +26474,7 @@ var sszvis = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
25408
26474
|
exports.annotationRangeRuler = rangeRuler;
|
|
25409
26475
|
exports.annotationRectangle = rectangle;
|
|
25410
26476
|
exports.annotationRuler = ruler;
|
|
26477
|
+
exports.app = app;
|
|
25411
26478
|
exports.arity = arity;
|
|
25412
26479
|
exports.aspectRatio = aspectRatio;
|
|
25413
26480
|
exports.aspectRatio12to5 = aspectRatio12to5;
|
|
@@ -26089,7 +27156,7 @@ const topojson = /*#__PURE__*/Object.freeze({
|
|
|
26089
27156
|
untransform: untransform
|
|
26090
27157
|
});
|
|
26091
27158
|
|
|
26092
|
-
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}";
|
|
27159
|
+
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}";
|
|
26093
27160
|
|
|
26094
27161
|
const StzhChart = class {
|
|
26095
27162
|
constructor(hostRef) {
|