@designsystem-se/af 35.4.1-beta.0 → 35.4.1-beta.2
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/components/digi-bar-chart.js +684 -470
- package/components/digi-calendar-datepicker.js +13 -13
- package/components/digi-calendar-week-view.js +3 -3
- package/components/digi-calendar.js +1 -1
- package/components/digi-chart-line.js +5 -5
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +9 -9
- package/components/digi-code.js +1 -1
- package/components/digi-context-menu.js +5 -5
- package/components/digi-dialog.js +6 -6
- package/components/digi-expandable-accordion.js +3 -3
- package/components/digi-expandable-faq-item.js +6 -6
- package/components/digi-expandable-faq.js +2 -2
- package/components/digi-footer-card.js +1 -1
- package/components/digi-footer.js +4 -4
- package/components/digi-form-category-filter.js +4 -4
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +13 -13
- package/components/digi-form-fieldset.js +1 -1
- package/components/digi-form-file-upload.js +18 -18
- package/components/digi-form-filter.js +7 -7
- package/components/digi-form-input-search.js +9 -9
- package/components/digi-form-input.js +1 -1
- package/components/digi-form-label.js +1 -1
- package/components/digi-form-radiobutton.js +1 -1
- package/components/digi-form-radiogroup.js +2 -2
- package/components/digi-form-receipt.js +3 -3
- package/components/digi-form-select-filter.js +16 -16
- package/components/digi-form-select.js +1 -1
- package/components/digi-form-textarea.js +8 -8
- package/components/digi-form-validation-message.js +1 -1
- package/components/digi-header-avatar.js +3 -3
- package/components/digi-header-navigation-item.js +1 -1
- package/components/digi-header-navigation.js +7 -7
- package/components/digi-header-notification.js +2 -2
- package/components/digi-header.js +6 -6
- package/components/digi-icon-accessibility-deaf.js +2 -2
- package/components/digi-icon-accessibility-universal.js +2 -2
- package/components/digi-icon-apple.js +2 -2
- package/components/digi-icon-archive-outline.js +2 -2
- package/components/digi-icon-archive.js +2 -2
- package/components/digi-icon-arrow-back.js +2 -2
- package/components/digi-icon-arrow-down.js +2 -2
- package/components/digi-icon-arrow-left.js +2 -2
- package/components/digi-icon-arrow-right.js +1 -1
- package/components/digi-icon-arrow-sign-in.js +2 -2
- package/components/digi-icon-arrow-sign-out.js +2 -2
- package/components/digi-icon-arrow-up.js +2 -2
- package/components/digi-icon-at.js +2 -2
- package/components/digi-icon-bars.js +1 -1
- package/components/digi-icon-bell-filled.js +2 -2
- package/components/digi-icon-bell.js +2 -2
- package/components/digi-icon-book.js +2 -2
- package/components/digi-icon-bookmark-outline.js +2 -2
- package/components/digi-icon-bookmark-solid.js +2 -2
- package/components/digi-icon-bubble-ellipsis.js +2 -2
- package/components/digi-icon-bubble.js +2 -2
- package/components/digi-icon-building-outline.js +2 -2
- package/components/digi-icon-building-solid.js +2 -2
- package/components/digi-icon-bullseye.js +2 -2
- package/components/digi-icon-calculator-solid.js +2 -2
- package/components/digi-icon-calendar-alt-alert.js +2 -2
- package/components/digi-icon-calendar-alt.js +1 -1
- package/components/digi-icon-calendar.js +2 -2
- package/components/digi-icon-caret-circle-right.js +2 -2
- package/components/digi-icon-caret-down.js +1 -1
- package/components/digi-icon-caret-left.js +2 -2
- package/components/digi-icon-caret-right.js +2 -2
- package/components/digi-icon-caret-up.js +1 -1
- package/components/digi-icon-chart.js +1 -1
- package/components/digi-icon-chat.js +2 -2
- package/components/digi-icon-check-circle-reg-alt.js +2 -2
- package/components/digi-icon-check-circle-solid.js +1 -1
- package/components/digi-icon-check.js +1 -1
- package/components/digi-icon-checklist.js +2 -2
- package/components/digi-icon-chevron-down.js +1 -1
- package/components/digi-icon-chevron-left.js +1 -1
- package/components/digi-icon-chevron-right.js +1 -1
- package/components/digi-icon-chevron-up.js +2 -2
- package/components/digi-icon-clock.js +2 -2
- package/components/digi-icon-communication-play-solid.js +2 -2
- package/components/digi-icon-compress-alt.js +2 -2
- package/components/digi-icon-comunication-case.js +2 -2
- package/components/digi-icon-comunication-flag.js +2 -2
- package/components/digi-icon-comunication-graduate.js +2 -2
- package/components/digi-icon-comunication-play.js +2 -2
- package/components/digi-icon-cooperation.js +2 -2
- package/components/digi-icon-copy.js +1 -1
- package/components/digi-icon-danger-outline.js +2 -2
- package/components/digi-icon-download.js +2 -2
- package/components/digi-icon-dxa.js +2 -2
- package/components/digi-icon-edit.js +2 -2
- package/components/digi-icon-ellipsis.js +2 -2
- package/components/digi-icon-envelope-filled.js +2 -2
- package/components/digi-icon-envelope.js +2 -2
- package/components/digi-icon-exclamation-circle-filled.js +2 -2
- package/components/digi-icon-exclamation-triangle-filled.js +2 -2
- package/components/digi-icon-exclamation-triangle-warning.js +2 -2
- package/components/digi-icon-exclamation-triangle.js +2 -2
- package/components/digi-icon-expand-alt.js +2 -2
- package/components/digi-icon-external-link-alt.js +1 -1
- package/components/digi-icon-eye-slash.js +2 -2
- package/components/digi-icon-eye.js +2 -2
- package/components/digi-icon-facebook-square.js +2 -2
- package/components/digi-icon-file-add.js +1 -1
- package/components/digi-icon-file-document.js +2 -2
- package/components/digi-icon-file-excel.js +2 -2
- package/components/digi-icon-file-export.js +1 -1
- package/components/digi-icon-file-governing.js +2 -2
- package/components/digi-icon-file-pdf.js +2 -2
- package/components/digi-icon-file-powerpoint.js +2 -2
- package/components/digi-icon-file-remove.js +1 -1
- package/components/digi-icon-file-word.js +2 -2
- package/components/digi-icon-film.js +2 -2
- package/components/digi-icon-filter.js +2 -2
- package/components/digi-icon-folder-add.js +1 -1
- package/components/digi-icon-folder-directory.js +1 -1
- package/components/digi-icon-folder-open.js +1 -1
- package/components/digi-icon-folder.js +1 -1
- package/components/digi-icon-globe-filled.js +2 -2
- package/components/digi-icon-globe.js +2 -2
- package/components/digi-icon-headphones.js +2 -2
- package/components/digi-icon-heart-solid.js +2 -2
- package/components/digi-icon-heart.js +2 -2
- package/components/digi-icon-history.js +2 -2
- package/components/digi-icon-home.js +2 -2
- package/components/digi-icon-image.js +2 -2
- package/components/digi-icon-info-circle-solid.js +2 -2
- package/components/digi-icon-input-select-marker.js +1 -1
- package/components/digi-icon-instagram.js +2 -2
- package/components/digi-icon-job-suggestion.js +2 -2
- package/components/digi-icon-language-outline.js +2 -2
- package/components/digi-icon-language.js +2 -2
- package/components/digi-icon-laptop-phone.js +2 -2
- package/components/digi-icon-lattlast.js +2 -2
- package/components/digi-icon-licence-bus.js +2 -2
- package/components/digi-icon-licence-car.js +2 -2
- package/components/digi-icon-licence-motorcycle.js +2 -2
- package/components/digi-icon-licence-truck.js +2 -2
- package/components/digi-icon-lightbulb.js +2 -2
- package/components/digi-icon-linkedin-in.js +2 -2
- package/components/digi-icon-list-ul.js +1 -1
- package/components/digi-icon-lock.js +2 -2
- package/components/digi-icon-marker-filled.js +2 -2
- package/components/digi-icon-marker.js +2 -2
- package/components/digi-icon-media-course.js +2 -2
- package/components/digi-icon-media-podcast.js +2 -2
- package/components/digi-icon-microphone-off.js +2 -2
- package/components/digi-icon-microphone.js +2 -2
- package/components/digi-icon-minus.js +1 -1
- package/components/digi-icon-move.js +2 -2
- package/components/digi-icon-news.js +1 -1
- package/components/digi-icon-notification-error.js +1 -1
- package/components/digi-icon-notification-info.js +1 -1
- package/components/digi-icon-notification-succes.js +1 -1
- package/components/digi-icon-notification-warning.js +1 -1
- package/components/digi-icon-online-computervideo.js +1 -1
- package/components/digi-icon-online-interview.js +2 -2
- package/components/digi-icon-online-meeting.js +2 -2
- package/components/digi-icon-online-task.js +2 -2
- package/components/digi-icon-online-video.js +1 -1
- package/components/digi-icon-open-source.js +2 -2
- package/components/digi-icon-palette.js +2 -2
- package/components/digi-icon-paperclip.js +1 -1
- package/components/digi-icon-paste.js +1 -1
- package/components/digi-icon-pen.js +2 -2
- package/components/digi-icon-phone-hangup.js +2 -2
- package/components/digi-icon-phone.js +2 -2
- package/components/digi-icon-plus.js +1 -1
- package/components/digi-icon-pod.js +1 -1
- package/components/digi-icon-print.js +2 -2
- package/components/digi-icon-read.js +2 -2
- package/components/digi-icon-redo.js +2 -2
- package/components/digi-icon-scale.js +1 -1
- package/components/digi-icon-screensharing-off.js +2 -2
- package/components/digi-icon-screensharing.js +2 -2
- package/components/digi-icon-search.js +1 -1
- package/components/digi-icon-send-outline.js +2 -2
- package/components/digi-icon-send-solid.js +2 -2
- package/components/digi-icon-settings.js +2 -2
- package/components/digi-icon-share-alt.js +2 -2
- package/components/digi-icon-share-chain.js +2 -2
- package/components/digi-icon-sign.js +2 -2
- package/components/digi-icon-sliders-h.js +2 -2
- package/components/digi-icon-sokkandidat.js +2 -2
- package/components/digi-icon-sort-down.js +2 -2
- package/components/digi-icon-sort-up.js +2 -2
- package/components/digi-icon-sort.js +2 -2
- package/components/digi-icon-spinner.js +1 -1
- package/components/digi-icon-star-reg.js +2 -2
- package/components/digi-icon-star.js +2 -2
- package/components/digi-icon-suitcase-outline.js +2 -2
- package/components/digi-icon-suitcase-solid.js +2 -2
- package/components/digi-icon-system-assistance.js +2 -2
- package/components/digi-icon-table-column.js +2 -2
- package/components/digi-icon-table-row.js +2 -2
- package/components/digi-icon-table.js +1 -1
- package/components/digi-icon-task-done.js +2 -2
- package/components/digi-icon-toggle-off.js +2 -2
- package/components/digi-icon-toggle-on.js +2 -2
- package/components/digi-icon-trash.js +1 -1
- package/components/digi-icon-twitter.js +2 -2
- package/components/digi-icon-tyck-till.js +2 -2
- package/components/digi-icon-unlock.js +2 -2
- package/components/digi-icon-update.js +2 -2
- package/components/digi-icon-upload.js +2 -2
- package/components/digi-icon-user-add.js +1 -1
- package/components/digi-icon-user-alt.js +2 -2
- package/components/digi-icon-user-edit.js +1 -1
- package/components/digi-icon-users-solid.js +2 -2
- package/components/digi-icon-validation-error.js +1 -1
- package/components/digi-icon-validation-success.js +1 -1
- package/components/digi-icon-validation-warning.js +1 -1
- package/components/digi-icon-videocamera-off.js +2 -2
- package/components/digi-icon-videocamera.js +2 -2
- package/components/digi-icon-volume.js +2 -2
- package/components/digi-icon-web-tv.js +2 -2
- package/components/digi-icon-webinar.js +1 -1
- package/components/digi-icon-wifi-signal0.js +2 -2
- package/components/digi-icon-wifi-signal1.js +2 -2
- package/components/digi-icon-wifi-signal2.js +2 -2
- package/components/digi-icon-wifi-signal3.js +2 -2
- package/components/digi-icon-window.js +2 -2
- package/components/digi-icon-x-button-outline.js +1 -1
- package/components/digi-icon-x-button.js +2 -2
- package/components/digi-icon-x.js +1 -1
- package/components/digi-icon-youtube.js +2 -2
- package/components/digi-info-card-multi-container.js +2 -2
- package/components/digi-info-card-multi.js +11 -11
- package/components/digi-info-card.js +5 -5
- package/components/digi-layout-block.js +1 -1
- package/components/digi-layout-columns.js +1 -1
- package/components/digi-layout-container.js +1 -1
- package/components/digi-link-button.js +2 -2
- package/components/digi-link-external.js +1 -1
- package/components/digi-link-internal.js +1 -1
- package/components/digi-link.js +1 -1
- package/components/digi-list.js +3 -3
- package/components/digi-loader-skeleton.js +3 -3
- package/components/digi-loader-spinner.js +2 -2
- package/components/digi-logo.js +2 -2
- package/components/digi-media-figure.js +1 -1
- package/components/digi-media-image.js +1 -1
- package/components/digi-navigation-breadcrumbs.js +2 -2
- package/components/digi-navigation-pagination.js +10 -10
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +5 -5
- package/components/digi-navigation-vertical-menu-item.js +8 -8
- package/components/digi-navigation-vertical-menu.js +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +6 -6
- package/components/digi-progress-circle.js +10 -10
- package/components/digi-progress-indicator.js +6 -6
- package/components/digi-progress-list-item.js +8 -8
- package/components/digi-progress-list.js +2 -2
- package/components/digi-progressbar.js +2 -2
- package/components/digi-quote.js +3 -3
- package/components/digi-table.js +1 -1
- package/components/digi-tablist-panel.js +2 -2
- package/components/digi-tablist.js +7 -7
- package/components/digi-tag-media.js +1 -1
- package/components/digi-tag.js +2 -2
- package/components/digi-title-logo.js +1 -1
- package/components/digi-tools-feedback-banner.js +6 -6
- package/components/digi-tools-feedback-rating.js +7 -7
- package/components/digi-tools-feedback.js +3 -3
- package/components/digi-tools-theme-provider.js +1 -1
- package/components/digi-typography-heading-jumbo.js +1 -1
- package/components/digi-typography-meta.js +1 -1
- package/components/digi-typography-preamble.js +1 -1
- package/components/digi-typography-time.js +1 -1
- package/components/digi-typography.js +1 -1
- package/components/digi-util-breakpoint-observer.js +1 -1
- package/components/digi-util-detect-click-outside.js +1 -1
- package/components/digi-util-detect-focus-outside.js +1 -1
- package/components/digi-util-intersection-observer.js +1 -1
- package/components/digi-util-keydown-handler.js +1 -1
- package/components/digi-util-keyup-handler.js +1 -1
- package/components/digi-util-resize-observer.js +1 -1
- package/components/{p-291680dc.js → p-006daf6c.js} +2 -2
- package/components/{p-f516f6d6.js → p-013b272d.js} +2 -2
- package/components/{p-15bbce60.js → p-017e5253.js} +1 -1
- package/components/{p-4caaef7a.js → p-02eaef05.js} +2 -2
- package/components/{p-472bc7d3.js → p-03338211.js} +2 -2
- package/components/{p-fccc9322.js → p-0c5076db.js} +3 -3
- package/components/{p-6b275dc1.js → p-0c854af1.js} +2 -2
- package/components/{p-4437e1a8.js → p-0dd5a8f7.js} +1 -1
- package/components/{p-64a9f915.js → p-11278347.js} +2 -2
- package/components/{p-7492d61e.js → p-12ec96fa.js} +2 -2
- package/components/{p-95dc2a66.js → p-1a145be2.js} +2 -2
- package/components/{p-60394bdb.js → p-23755c77.js} +2 -2
- package/components/{p-127b0f7a.js → p-24a74dc2.js} +2 -2
- package/components/{p-5c935094.js → p-26f2230b.js} +8 -8
- package/components/{p-3ea21529.js → p-2bcbe128.js} +2 -2
- package/components/{p-b08505a8.js → p-2c01b4f7.js} +2 -2
- package/components/{p-8a2e80d2.js → p-32226717.js} +1 -1
- package/components/{p-cf527784.js → p-3344671c.js} +2 -2
- package/components/{p-42c4e18d.js → p-33f08ec3.js} +1 -1
- package/components/{p-a90980f7.js → p-34685ea4.js} +2 -2
- package/components/{p-4458129b.js → p-356b716a.js} +2 -2
- package/components/{p-2d8b68de.js → p-3748dc79.js} +2 -2
- package/components/{p-9f12ac0c.js → p-388030df.js} +8 -8
- package/components/{p-f7fd3e36.js → p-3c5d25a0.js} +1 -1
- package/components/{p-b5523600.js → p-3c9cea93.js} +2 -2
- package/components/{p-82463cc2.js → p-3e15a1be.js} +2 -2
- package/components/{p-300490fb.js → p-4241698a.js} +2 -2
- package/components/{p-61fe9d78.js → p-49c80f22.js} +2 -2
- package/components/{p-6013f971.js → p-4a93de6b.js} +2 -2
- package/components/{p-965664d4.js → p-52fe1a97.js} +10 -10
- package/components/{p-d14fe54d.js → p-581b3b56.js} +2 -2
- package/components/{p-299871dc.js → p-5bbb5a67.js} +2 -2
- package/components/{p-f147733f.js → p-5ef44852.js} +2 -2
- package/components/{p-b5b891f2.js → p-68b8b9a8.js} +3 -3
- package/components/{p-9bcf4599.js → p-6a4babd1.js} +2 -2
- package/components/{p-f9e6f45e.js → p-6aa77536.js} +2 -2
- package/components/{p-6a652c1c.js → p-6db48210.js} +2 -2
- package/components/{p-d18dccc2.js → p-73101c41.js} +2 -2
- package/components/{p-372e42fa.js → p-73796afb.js} +2 -2
- package/components/{p-ab1d6ae3.js → p-7811ea5a.js} +10 -10
- package/components/{p-39021139.js → p-85197207.js} +2 -2
- package/components/{p-042282c9.js → p-8bc620b1.js} +2 -2
- package/components/{p-bbaf1285.js → p-94603530.js} +2 -2
- package/components/{p-82085ee1.js → p-954224b5.js} +2 -2
- package/components/{p-3cbdeea5.js → p-9b37e59c.js} +1 -1
- package/components/{p-d309b91a.js → p-a2c97c2e.js} +2 -2
- package/components/{p-2a0c0c78.js → p-aa5b937d.js} +2 -2
- package/components/{p-96a4c4dc.js → p-af9bf7a3.js} +2 -2
- package/components/{p-aed6db71.js → p-b2ff86cf.js} +2 -2
- package/components/{p-c495f54e.js → p-bd545c73.js} +2 -2
- package/components/{p-1440ff46.js → p-c139a46c.js} +2 -2
- package/components/{p-ba757bc9.js → p-c6c4ee59.js} +3 -3
- package/components/{p-364d38fc.js → p-c90fed99.js} +2 -2
- package/components/{p-0e6bb1ce.js → p-cc5bd9f9.js} +2 -2
- package/components/{p-f5e13d2e.js → p-ccccd7bb.js} +1 -1
- package/components/{p-764c106c.js → p-cfb33ac7.js} +1 -1
- package/components/{p-73c973fc.js → p-d0884709.js} +8 -8
- package/components/{p-71bad47e.js → p-d1fc55fd.js} +1 -1
- package/components/{p-cfa81e91.js → p-df47eea9.js} +1 -1
- package/components/{p-6c7ff092.js → p-e6a40b0a.js} +2 -2
- package/components/{p-ad94e4f3.js → p-f630b5d3.js} +4 -4
- package/custom-elements.json +1 -1
- package/dist/cjs/digi-bar-chart_27.cjs.entry.js +721 -507
- package/dist/cjs/digi-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/digi-chart-line.cjs.entry.js +1 -1
- package/dist/cjs/digi-code-block_3.cjs.entry.js +4 -4
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -4
- package/dist/cjs/digi-code.cjs.entry.js +1 -1
- package/dist/cjs/digi-context-menu.cjs.entry.js +3 -3
- package/dist/cjs/digi-dialog.cjs.entry.js +3 -3
- package/dist/cjs/digi-expandable-accordion.cjs.entry.js +1 -1
- package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +4 -4
- package/dist/cjs/digi-expandable-faq.cjs.entry.js +2 -2
- package/dist/cjs/digi-footer-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-footer.cjs.entry.js +1 -1
- package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -3
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +7 -7
- package/dist/cjs/digi-form-filter.cjs.entry.js +5 -5
- package/dist/cjs/digi-form-input-search.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-input.cjs.entry.js +3 -3
- package/dist/cjs/digi-form-label_5.cjs.entry.js +8 -8
- package/dist/cjs/digi-form-radiogroup.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-receipt.cjs.entry.js +1 -1
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +7 -7
- package/dist/cjs/digi-form-select_2.cjs.entry.js +6 -6
- package/dist/cjs/digi-form-textarea.cjs.entry.js +3 -3
- package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-apple.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-archive.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-at.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bell.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-book.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bubble.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-building-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-building-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bullseye.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-calendar.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-caret-left.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-caret-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-chat.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +8 -8
- package/dist/cjs/digi-icon-check.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-checklist.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-chevron-left.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-clock.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-cooperation.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-download.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-dxa.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-edit.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-envelope.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +3 -3
- package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-eye.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-add.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-file-document.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-excel.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-export.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-file-governing.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-remove.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-file-word.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-film.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-filter.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-folder-add.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-folder-open.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-folder.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-globe.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-headphones.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-heart.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-history.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-home.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-image.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-instagram.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-language-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-language.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-lattlast.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-car.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +12 -12
- package/dist/cjs/digi-icon-lock.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-marker.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-media-course.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-microphone.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-move.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +8 -8
- package/dist/cjs/digi-icon-online-interview.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-online-task.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-open-source.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-palette.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-paste.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-pen.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-phone.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-print.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-read.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-redo.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-scale.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-screensharing.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-search.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-send-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-send-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-settings.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-share-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-share-chain.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sign.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sort-down.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sort-up.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sort.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-spinner.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-star-reg.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-star.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-table-column.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-table-row.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-task-done.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-unlock.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-update.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-upload.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-user-add.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-user-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-user-edit.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-users-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-videocamera.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-volume.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-web-tv.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-window.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-x-button.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +1 -1
- package/dist/cjs/digi-info-card-multi.cjs.entry.js +1 -1
- package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-layout-columns.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
- package/dist/cjs/digi-link.cjs.entry.js +1 -1
- package/dist/cjs/digi-list.cjs.entry.js +1 -1
- package/dist/cjs/digi-loader-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
- package/dist/cjs/digi-media-figure.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +6 -6
- package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-alert.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -3
- package/dist/cjs/digi-progress-circle.cjs.entry.js +8 -8
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/digi-progress-list-item.cjs.entry.js +5 -5
- package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
- package/dist/cjs/digi-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/digi-quote.cjs.entry.js +1 -1
- package/dist/cjs/digi-table.cjs.entry.js +1 -1
- package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
- package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
- package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
- package/dist/cjs/digi-tag.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
- package/dist/collection/components/_chart/bar-chart/bar-chart.css +44 -27
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +687 -473
- package/dist/collection/components/_chart/chart-line/chart-line.js +3 -3
- package/dist/collection/components/_chart/interfaces/line-chart-data.interface.js +1 -0
- package/dist/collection/components/_code/code/code.js +1 -1
- package/dist/collection/components/_code/code-block/code-block.js +1 -1
- package/dist/collection/components/_code/code-example/code-example.js +4 -4
- package/dist/collection/components/_dialog/dialog/dialog.js +3 -3
- package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +1 -1
- package/dist/collection/components/_expandable/expandable-faq/expandable-faq.js +2 -2
- package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +4 -4
- package/dist/collection/components/_footer/footer/footer.js +1 -1
- package/dist/collection/components/_footer/footer-card/footer-card.js +1 -1
- package/dist/collection/components/_form/form-category-filter/form-category-filter.js +2 -2
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
- package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
- package/dist/collection/components/_form/form-fieldset/form-fieldset.js +1 -1
- package/dist/collection/components/_form/form-file-upload/form-file-upload.js +7 -7
- package/dist/collection/components/_form/form-filter/form-filter.js +5 -5
- package/dist/collection/components/_form/form-input/form-input.js +3 -3
- package/dist/collection/components/_form/form-input-search/form-input-search.js +2 -2
- package/dist/collection/components/_form/form-label/form-label.js +1 -1
- package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
- package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +2 -2
- package/dist/collection/components/_form/form-receipt/form-receipt.js +1 -1
- package/dist/collection/components/_form/form-select/form-select.js +4 -4
- package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -7
- package/dist/collection/components/_form/form-textarea/form-textarea.js +3 -3
- package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
- package/dist/collection/components/_header/header/header.js +1 -1
- package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
- package/dist/collection/components/_header/header-navigation/header-navigation.js +3 -3
- package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
- package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
- package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
- package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
- package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
- package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
- package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
- package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
- package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
- package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
- package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
- package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
- package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
- package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
- package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
- package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
- package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
- package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
- package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
- package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
- package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
- package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
- package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
- package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
- package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
- package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
- package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
- package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
- package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
- package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
- package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
- package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
- package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
- package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
- package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
- package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
- package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
- package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
- package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
- package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
- package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
- package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
- package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
- package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
- package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
- package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
- package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
- package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
- package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
- package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
- package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
- package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
- package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
- package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
- package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
- package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
- package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
- package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
- package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
- package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
- package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
- package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
- package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
- package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
- package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
- package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
- package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
- package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
- package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
- package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
- package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
- package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
- package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
- package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
- package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
- package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
- package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
- package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
- package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
- package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
- package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
- package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
- package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
- package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
- package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
- package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
- package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
- package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
- package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
- package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
- package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
- package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
- package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
- package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
- package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
- package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
- package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
- package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
- package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
- package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
- package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
- package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
- package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
- package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
- package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
- package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
- package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
- package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
- package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
- package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
- package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
- package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
- package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
- package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
- package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
- package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
- package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
- package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
- package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
- package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
- package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
- package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
- package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
- package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
- package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
- package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
- package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
- package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
- package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
- package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
- package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
- package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
- package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
- package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
- package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
- package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
- package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
- package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
- package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
- package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
- package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
- package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
- package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
- package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
- package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
- package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
- package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
- package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
- package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
- package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
- package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
- package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
- package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
- package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
- package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
- package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
- package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
- package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
- package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
- package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
- package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
- package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
- package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
- package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
- package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
- package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
- package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
- package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
- package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
- package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
- package/dist/collection/components/_info-card/info-card/info-card.js +1 -1
- package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +1 -1
- package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +1 -1
- package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
- package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
- package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
- package/dist/collection/components/_link/link/link.js +1 -1
- package/dist/collection/components/_link/link-button/link-button.js +1 -1
- package/dist/collection/components/_link/link-external/link-external.js +1 -1
- package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
- package/dist/collection/components/_list/list/list.js +1 -1
- package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
- package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
- package/dist/collection/components/_logo/title-logo/title-logo.js +1 -1
- package/dist/collection/components/_media/media-figure/media-figure.js +1 -1
- package/dist/collection/components/_media/media-image/media-image.js +2 -2
- package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
- package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +3 -3
- package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
- package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
- package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
- package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
- package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
- package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
- package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
- package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
- package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
- package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
- package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
- package/dist/collection/components/_quote/quote/quote.js +1 -1
- package/dist/collection/components/_table/table/table.js +1 -1
- package/dist/collection/components/_tag/tag/tag.js +1 -1
- package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
- package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
- package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
- package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -1
- package/dist/collection/components/_typography/typography/typography.js +1 -1
- package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
- package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
- package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
- package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
- package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
- package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
- package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
- package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
- package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
- package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
- package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
- package/dist/collection/design-tokens/components/_logo.variables.scss +16 -19
- package/dist/collection/interfaces.js +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +15 -19
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/{p-cfad003c.entry.js → p-00e12273.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5e37e5aa.entry.js → p-012c9ce6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-21653bf9.entry.js → p-01ec90b7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-27be8d2b.entry.js → p-0254b7a0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5456a3bc.entry.js → p-06c5ef56.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-37459590.entry.js → p-071edd63.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c168c84a.entry.js → p-07730a8e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-18006927.entry.js → p-089d928b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-36229058.entry.js → p-09e4471e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ce8d2455.entry.js → p-10d9870d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-83b3f053.entry.js → p-10dd9a49.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2196c33b.entry.js → p-1108b754.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-815a97f1.entry.js → p-110d71e2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-51c9cc1a.entry.js → p-11331424.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-53483e1d.entry.js → p-1246da70.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-38603899.entry.js → p-126d4aca.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0052b03c.entry.js → p-14c46c37.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a947fa52.entry.js → p-1535b321.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-1743bbb5.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-bab6f184.entry.js → p-1783f800.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-87721a1f.entry.js → p-194b2d68.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-664de70c.entry.js → p-1957d85a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a67b4609.entry.js → p-1988baf1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3ae60edc.entry.js → p-1a191be4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3eb4faff.entry.js → p-1b788352.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4477f14c.entry.js → p-1bc60ab0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-431baa4e.entry.js → p-1bf78bdd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c8751075.entry.js → p-1c10b11b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8473e21b.entry.js → p-1d836a3e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-649c30ed.entry.js → p-20354ce6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4eb58cf9.entry.js → p-22c420aa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-99e4bd13.entry.js → p-2303adba.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d0a8fa77.entry.js → p-2559ff9c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-905f3864.entry.js → p-257a08ce.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e69d2e1c.entry.js → p-26010df0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a6a0a040.entry.js → p-2656add6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-275de08b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c566cef3.entry.js → p-2b9a18c3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-044b32d7.entry.js → p-2c1bac02.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-780b30f6.entry.js → p-2dac502b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-63148e09.entry.js → p-2e7d6275.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c92e206b.entry.js → p-2f7b4d00.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8b88c952.entry.js → p-31f5f71c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a9bfc5bd.entry.js → p-3273c669.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a5c387e8.entry.js → p-34891a6b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b48f2acd.entry.js → p-34e3e0e6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b618926.entry.js → p-3598ace4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-82634b60.entry.js → p-359fba9e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8318562f.entry.js → p-36d4b2c8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4224f1e4.entry.js → p-380b3f39.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4c69c234.entry.js → p-38325b58.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cdbfa3d0.entry.js → p-395f0bda.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-61385dc4.entry.js → p-3c043498.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-58f76475.entry.js → p-3cf6c027.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3e126f89.entry.js → p-3e74d20d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1e2a9156.entry.js → p-3fb297c6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b7494943.entry.js → p-40cf758f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cab53989.entry.js → p-4194e1fc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-726a0b56.entry.js → p-41f7e512.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-44da2e39.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-8d3cb15a.entry.js → p-44f06c51.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-658aa433.entry.js → p-462d6f20.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-89566597.entry.js → p-47a41577.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ef9a3ddc.entry.js → p-49c82d68.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-588fe3b5.entry.js → p-4a5cacf7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9763005c.entry.js → p-4b00b1c3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a7361f39.entry.js → p-4bbed9ef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d5376b7c.entry.js → p-4ee6b711.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a98df65c.entry.js → p-5177b503.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-66483a84.entry.js → p-531d681a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a1ae9863.entry.js → p-5491d7d4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-20ef225a.entry.js → p-554aae7c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-77ea6604.entry.js → p-55ef7f3d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-93ec0277.entry.js → p-57118749.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8355c75d.entry.js → p-57459e51.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7660ba5b.entry.js → p-574a7418.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2f57b446.entry.js → p-57790de9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e627abeb.entry.js → p-58d4933f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9f03b573.entry.js → p-5a27b6b5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d0ffc80.entry.js → p-5aabb979.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-07b02fa8.entry.js → p-5abfd0c7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9cf50217.entry.js → p-5cdc0458.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0bc366fb.entry.js → p-5d79bfc0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1241d74a.entry.js → p-5dae03d4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-db7c2105.entry.js → p-5e8a9b5a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-804cb867.entry.js → p-601a994c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-edfdf8e9.entry.js → p-60665a18.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2aa3ed49.entry.js → p-62326367.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-099b1bac.entry.js → p-630cd660.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16b8d192.entry.js → p-631334ff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-af4b851e.entry.js → p-65de40aa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-352712b9.entry.js → p-66523239.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4bb41707.entry.js → p-667d915b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-49aeb019.entry.js → p-690e5bad.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0a904539.entry.js → p-6a7e65ec.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9495044c.entry.js → p-6a80fc2b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6a33818a.entry.js → p-6b03f6d8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c4cf1215.entry.js → p-6ba7b2f8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5ee51a86.entry.js → p-6c601c76.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5aae7437.entry.js → p-6ca52876.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e8fd0aed.entry.js → p-6f6281e4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-18ffcb24.entry.js → p-70468ce6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fc945ec1.entry.js → p-70677284.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2ffd9c4c.entry.js → p-713eee6b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4f6b2e2a.entry.js → p-728a2192.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b81e0aec.entry.js → p-73046585.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7d597755.entry.js → p-732be7a0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b734218c.entry.js → p-73b6d872.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fe235598.entry.js → p-756f88d1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2c7d4ecf.entry.js → p-773ab423.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8328e58b.entry.js → p-788b29ec.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-de1e9254.entry.js → p-78cd2706.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b5edc89.entry.js → p-79f4abc4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-df2038b9.entry.js → p-7b089cb7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d7cdbe75.entry.js → p-7b2f12b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8e16d36a.entry.js → p-7bb7a25a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16303afa.entry.js → p-7ca774e8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5503d5be.entry.js → p-7cf555b3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5b01d3e2.entry.js → p-7cf8107e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b10a1760.entry.js → p-7e7c82f3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bb1daa3b.entry.js → p-7f56550a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f6476365.entry.js → p-7fa5601d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9e4a0fe4.entry.js → p-80439965.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1cc801fd.entry.js → p-810a40e3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b63e0b2d.entry.js → p-815b4882.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5473bfea.entry.js → p-828461a1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9a7e195c.entry.js → p-878a5e40.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c8257c8c.entry.js → p-87ae4ae3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-60989dea.entry.js → p-8945ea11.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4871b74a.entry.js → p-89eea066.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e55d3abf.entry.js → p-8aa5732b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1e03ba21.entry.js → p-8b38261b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-accb56da.entry.js → p-8b620bb4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9ea535e1.entry.js → p-8bfe319c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b32df740.entry.js → p-8f1d812e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7d54fe81.entry.js → p-8fb4be3e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d1a77b0b.entry.js → p-938d5268.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bb554f34.entry.js → p-94056eff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4788712e.entry.js → p-94d31951.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a439e93f.entry.js → p-96ac63da.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d46b426b.entry.js → p-975c07d8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-11b5ab8d.entry.js → p-97e025c7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-33425742.entry.js → p-99faaa94.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a4895704.entry.js → p-9e10ac9a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9e3ab016.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c721f99a.entry.js → p-9f3b65c9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f7628391.entry.js → p-a2111444.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f2eb8ee5.entry.js → p-a2580017.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-83269fe6.entry.js → p-a393d458.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-76eb331e.entry.js → p-a437b3f9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c70ba82f.entry.js → p-a4af962c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-baac6e73.entry.js → p-a540bf30.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a5d3d3c3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-222a2b41.entry.js → p-a5ebb909.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c917502e.entry.js → p-a71ae220.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7e6d699e.entry.js → p-a8ffe40b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6e925e52.entry.js → p-aacb29b9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0ac9f348.entry.js → p-ab058e08.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9fe345d1.entry.js → p-aca55593.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c81d1d0b.entry.js → p-acdc4ad2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c30a3366.entry.js → p-ae6819c3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dcaa4461.entry.js → p-afd55426.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cd770cb4.entry.js → p-b1f348dd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-293ea71f.entry.js → p-b1f62aa7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5a08f170.entry.js → p-b20e4b2b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0c210491.entry.js → p-b21a2e98.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fc252a02.entry.js → p-b26d1962.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d2a12b86.entry.js → p-b6b80e5e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6de493b0.entry.js → p-b8d19dbd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-73f6209d.entry.js → p-b97f4844.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-43a43f09.entry.js → p-b9f5938f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d146131e.entry.js → p-ba527995.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-39604e43.entry.js → p-bc24cbe8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-014044a7.entry.js → p-bdcbcdc8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8fa46692.entry.js → p-beaad0d0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-592fd6a9.entry.js → p-bf0dfd0b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0e634a09.entry.js → p-bf72ed5a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3212807d.entry.js → p-c01795e5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c134240a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2062e63b.entry.js → p-c19ce9d4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e917904e.entry.js → p-c1ccede0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1bd29b6a.entry.js → p-c3ca35dd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4fe05e2f.entry.js → p-c3fb7dd7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-48113595.entry.js → p-c53510ef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7474d7b0.entry.js → p-c66d07b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1fcbbf5f.entry.js → p-c71d48b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8ef4cf4a.entry.js → p-cb564e82.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16dd9b3f.entry.js → p-cbca6d07.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-01df63d6.entry.js → p-ce0dabff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3c28625a.entry.js → p-d1ecee88.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-57dd2b38.entry.js → p-d2ab4ed2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d378e55c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-4e2e1902.entry.js → p-d4db7f47.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bb0935fc.entry.js → p-d8eb784a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1dc8b284.entry.js → p-d98cbbc6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d30475d.entry.js → p-d9d512a2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-80a77b6e.entry.js → p-da873ca4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ccd18e1a.entry.js → p-dbba5d69.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5ac3d7a9.entry.js → p-dbbfef28.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-90bc53dc.entry.js → p-dbc3b435.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-218b829e.entry.js → p-de4fbcd3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a884ccf8.entry.js → p-df25ab6c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-56ca6c5c.entry.js → p-e0332fa2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-676ab6ef.entry.js → p-e0c26551.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9a73a55d.entry.js → p-e11ceb56.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9d15493f.entry.js → p-e4e62c4c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-34ef0baa.entry.js → p-e589bb2d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5acaf4b0.entry.js → p-e5d8a700.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b21e9c0a.entry.js → p-e61f241a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-eeec1cf1.entry.js → p-e79c0ed4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f6b2d484.entry.js → p-e81118c0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f9315403.entry.js → p-e9a38c46.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-ebe1a123.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a0267f76.entry.js → p-ebf72947.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-07513ee6.entry.js → p-ec6b2a9f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e10e24fc.entry.js → p-efb71c3e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ad471fd2.entry.js → p-f2fb8b75.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-27388bc4.entry.js → p-f4e149c8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-01c29a14.entry.js → p-f557e3c1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-f59e3142.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-9045d5ff.entry.js → p-f5c90c67.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2412deb9.entry.js → p-f60443a4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9df20034.entry.js → p-f60f2522.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1a21de52.entry.js → p-f6e7076a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-40f5fda7.entry.js → p-f77fd434.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9789b001.entry.js → p-f78590cc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-56cb2ded.entry.js → p-f9d7d880.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f69dbfcf.entry.js → p-fa82c26d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-45af5d55.entry.js → p-fd88cc1c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-69010d14.entry.js → p-fde27f08.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ba39e14b.entry.js → p-fe5ba864.entry.js} +1 -1
- package/dist/esm/digi-bar-chart_27.entry.js +721 -507
- package/dist/esm/digi-calendar_2.entry.js +2 -2
- package/dist/esm/digi-chart-line.entry.js +1 -1
- package/dist/esm/digi-code-block_3.entry.js +4 -4
- package/dist/esm/digi-code-example.entry.js +4 -4
- package/dist/esm/digi-code.entry.js +1 -1
- package/dist/esm/digi-context-menu.entry.js +3 -3
- package/dist/esm/digi-dialog.entry.js +3 -3
- package/dist/esm/digi-expandable-accordion.entry.js +1 -1
- package/dist/esm/digi-expandable-faq-item.entry.js +4 -4
- package/dist/esm/digi-expandable-faq.entry.js +2 -2
- package/dist/esm/digi-footer-card.entry.js +1 -1
- package/dist/esm/digi-footer.entry.js +1 -1
- package/dist/esm/digi-form-category-filter.entry.js +2 -2
- package/dist/esm/digi-form-checkbox.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +3 -3
- package/dist/esm/digi-form-file-upload.entry.js +7 -7
- package/dist/esm/digi-form-filter.entry.js +5 -5
- package/dist/esm/digi-form-input-search.entry.js +2 -2
- package/dist/esm/digi-form-input.entry.js +3 -3
- package/dist/esm/digi-form-label_5.entry.js +8 -8
- package/dist/esm/digi-form-radiogroup.entry.js +2 -2
- package/dist/esm/digi-form-receipt.entry.js +1 -1
- package/dist/esm/digi-form-select-filter.entry.js +7 -7
- package/dist/esm/digi-form-select_2.entry.js +6 -6
- package/dist/esm/digi-form-textarea.entry.js +3 -3
- package/dist/esm/digi-icon-accessibility-deaf.entry.js +2 -2
- package/dist/esm/digi-icon-accessibility-universal.entry.js +2 -2
- package/dist/esm/digi-icon-apple.entry.js +2 -2
- package/dist/esm/digi-icon-archive-outline.entry.js +2 -2
- package/dist/esm/digi-icon-archive.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-back.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-down.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-left.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-right.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-sign-in.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-sign-out.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-up.entry.js +2 -2
- package/dist/esm/digi-icon-at.entry.js +2 -2
- package/dist/esm/digi-icon-bell.entry.js +2 -2
- package/dist/esm/digi-icon-book.entry.js +2 -2
- package/dist/esm/digi-icon-bookmark-outline.entry.js +2 -2
- package/dist/esm/digi-icon-bookmark-solid.entry.js +2 -2
- package/dist/esm/digi-icon-bubble-ellipsis.entry.js +2 -2
- package/dist/esm/digi-icon-bubble.entry.js +2 -2
- package/dist/esm/digi-icon-building-outline.entry.js +2 -2
- package/dist/esm/digi-icon-building-solid.entry.js +2 -2
- package/dist/esm/digi-icon-bullseye.entry.js +2 -2
- package/dist/esm/digi-icon-calculator-solid.entry.js +2 -2
- package/dist/esm/digi-icon-calendar-alt-alert.entry.js +2 -2
- package/dist/esm/digi-icon-calendar.entry.js +2 -2
- package/dist/esm/digi-icon-caret-circle-right.entry.js +2 -2
- package/dist/esm/digi-icon-caret-left.entry.js +2 -2
- package/dist/esm/digi-icon-caret-right.entry.js +2 -2
- package/dist/esm/digi-icon-chat.entry.js +2 -2
- package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +2 -2
- package/dist/esm/digi-icon-check-circle-solid_4.entry.js +8 -8
- package/dist/esm/digi-icon-check.entry.js +2 -2
- package/dist/esm/digi-icon-checklist.entry.js +2 -2
- package/dist/esm/digi-icon-chevron-down.entry.js +2 -2
- package/dist/esm/digi-icon-chevron-left.entry.js +2 -2
- package/dist/esm/digi-icon-chevron-right.entry.js +2 -2
- package/dist/esm/digi-icon-chevron-up.entry.js +2 -2
- package/dist/esm/digi-icon-clock.entry.js +2 -2
- package/dist/esm/digi-icon-communication-play-solid.entry.js +2 -2
- package/dist/esm/digi-icon-compress-alt.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-case.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-flag.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-graduate.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-play.entry.js +2 -2
- package/dist/esm/digi-icon-cooperation.entry.js +2 -2
- package/dist/esm/digi-icon-copy.entry.js +2 -2
- package/dist/esm/digi-icon-danger-outline.entry.js +2 -2
- package/dist/esm/digi-icon-download.entry.js +2 -2
- package/dist/esm/digi-icon-dxa.entry.js +2 -2
- package/dist/esm/digi-icon-edit.entry.js +2 -2
- package/dist/esm/digi-icon-ellipsis.entry.js +2 -2
- package/dist/esm/digi-icon-envelope-filled.entry.js +2 -2
- package/dist/esm/digi-icon-envelope.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-triangle.entry.js +2 -2
- package/dist/esm/digi-icon-expand-alt.entry.js +2 -2
- package/dist/esm/digi-icon-external-link-alt_2.entry.js +3 -3
- package/dist/esm/digi-icon-eye-slash.entry.js +2 -2
- package/dist/esm/digi-icon-eye.entry.js +2 -2
- package/dist/esm/digi-icon-facebook-square.entry.js +2 -2
- package/dist/esm/digi-icon-file-add.entry.js +1 -1
- package/dist/esm/digi-icon-file-document.entry.js +2 -2
- package/dist/esm/digi-icon-file-excel.entry.js +2 -2
- package/dist/esm/digi-icon-file-export.entry.js +1 -1
- package/dist/esm/digi-icon-file-governing.entry.js +2 -2
- package/dist/esm/digi-icon-file-pdf.entry.js +2 -2
- package/dist/esm/digi-icon-file-powerpoint.entry.js +2 -2
- package/dist/esm/digi-icon-file-remove.entry.js +1 -1
- package/dist/esm/digi-icon-file-word.entry.js +2 -2
- package/dist/esm/digi-icon-film.entry.js +2 -2
- package/dist/esm/digi-icon-filter.entry.js +2 -2
- package/dist/esm/digi-icon-folder-add.entry.js +1 -1
- package/dist/esm/digi-icon-folder-directory.entry.js +1 -1
- package/dist/esm/digi-icon-folder-open.entry.js +1 -1
- package/dist/esm/digi-icon-folder.entry.js +1 -1
- package/dist/esm/digi-icon-globe-filled.entry.js +2 -2
- package/dist/esm/digi-icon-globe.entry.js +2 -2
- package/dist/esm/digi-icon-headphones.entry.js +2 -2
- package/dist/esm/digi-icon-heart-solid.entry.js +2 -2
- package/dist/esm/digi-icon-heart.entry.js +2 -2
- package/dist/esm/digi-icon-history.entry.js +2 -2
- package/dist/esm/digi-icon-home.entry.js +2 -2
- package/dist/esm/digi-icon-image.entry.js +2 -2
- package/dist/esm/digi-icon-info-circle-solid.entry.js +2 -2
- package/dist/esm/digi-icon-instagram.entry.js +2 -2
- package/dist/esm/digi-icon-job-suggestion.entry.js +2 -2
- package/dist/esm/digi-icon-language-outline.entry.js +2 -2
- package/dist/esm/digi-icon-language.entry.js +2 -2
- package/dist/esm/digi-icon-laptop-phone.entry.js +2 -2
- package/dist/esm/digi-icon-lattlast.entry.js +2 -2
- package/dist/esm/digi-icon-licence-bus.entry.js +2 -2
- package/dist/esm/digi-icon-licence-car.entry.js +2 -2
- package/dist/esm/digi-icon-licence-motorcycle.entry.js +2 -2
- package/dist/esm/digi-icon-licence-truck.entry.js +2 -2
- package/dist/esm/digi-icon-lightbulb.entry.js +2 -2
- package/dist/esm/digi-icon-linkedin-in.entry.js +2 -2
- package/dist/esm/digi-icon-list-ul_6.entry.js +12 -12
- package/dist/esm/digi-icon-lock.entry.js +2 -2
- package/dist/esm/digi-icon-marker-filled.entry.js +2 -2
- package/dist/esm/digi-icon-marker.entry.js +2 -2
- package/dist/esm/digi-icon-media-course.entry.js +2 -2
- package/dist/esm/digi-icon-media-podcast.entry.js +2 -2
- package/dist/esm/digi-icon-microphone-off.entry.js +2 -2
- package/dist/esm/digi-icon-microphone.entry.js +2 -2
- package/dist/esm/digi-icon-move.entry.js +2 -2
- package/dist/esm/digi-icon-notification-error_4.entry.js +8 -8
- package/dist/esm/digi-icon-online-interview.entry.js +2 -2
- package/dist/esm/digi-icon-online-meeting.entry.js +2 -2
- package/dist/esm/digi-icon-online-task.entry.js +2 -2
- package/dist/esm/digi-icon-open-source.entry.js +2 -2
- package/dist/esm/digi-icon-palette.entry.js +2 -2
- package/dist/esm/digi-icon-paste.entry.js +1 -1
- package/dist/esm/digi-icon-pen.entry.js +2 -2
- package/dist/esm/digi-icon-phone-hangup.entry.js +2 -2
- package/dist/esm/digi-icon-phone.entry.js +2 -2
- package/dist/esm/digi-icon-print.entry.js +2 -2
- package/dist/esm/digi-icon-read.entry.js +2 -2
- package/dist/esm/digi-icon-redo.entry.js +2 -2
- package/dist/esm/digi-icon-scale.entry.js +1 -1
- package/dist/esm/digi-icon-screensharing-off.entry.js +2 -2
- package/dist/esm/digi-icon-screensharing.entry.js +2 -2
- package/dist/esm/digi-icon-search.entry.js +2 -2
- package/dist/esm/digi-icon-send-outline.entry.js +2 -2
- package/dist/esm/digi-icon-send-solid.entry.js +2 -2
- package/dist/esm/digi-icon-settings.entry.js +2 -2
- package/dist/esm/digi-icon-share-alt.entry.js +2 -2
- package/dist/esm/digi-icon-share-chain.entry.js +2 -2
- package/dist/esm/digi-icon-sign.entry.js +2 -2
- package/dist/esm/digi-icon-sliders-h.entry.js +2 -2
- package/dist/esm/digi-icon-sokkandidat.entry.js +2 -2
- package/dist/esm/digi-icon-sort-down.entry.js +2 -2
- package/dist/esm/digi-icon-sort-up.entry.js +2 -2
- package/dist/esm/digi-icon-sort.entry.js +2 -2
- package/dist/esm/digi-icon-spinner.entry.js +2 -2
- package/dist/esm/digi-icon-star-reg.entry.js +2 -2
- package/dist/esm/digi-icon-star.entry.js +2 -2
- package/dist/esm/digi-icon-suitcase-outline.entry.js +2 -2
- package/dist/esm/digi-icon-suitcase-solid.entry.js +2 -2
- package/dist/esm/digi-icon-system-assistance.entry.js +2 -2
- package/dist/esm/digi-icon-table-column.entry.js +2 -2
- package/dist/esm/digi-icon-table-row.entry.js +2 -2
- package/dist/esm/digi-icon-task-done.entry.js +2 -2
- package/dist/esm/digi-icon-toggle-off.entry.js +2 -2
- package/dist/esm/digi-icon-toggle-on.entry.js +2 -2
- package/dist/esm/digi-icon-twitter.entry.js +2 -2
- package/dist/esm/digi-icon-tyck-till.entry.js +2 -2
- package/dist/esm/digi-icon-unlock.entry.js +2 -2
- package/dist/esm/digi-icon-update.entry.js +2 -2
- package/dist/esm/digi-icon-upload.entry.js +2 -2
- package/dist/esm/digi-icon-user-add.entry.js +1 -1
- package/dist/esm/digi-icon-user-alt.entry.js +2 -2
- package/dist/esm/digi-icon-user-edit.entry.js +1 -1
- package/dist/esm/digi-icon-users-solid.entry.js +2 -2
- package/dist/esm/digi-icon-videocamera-off.entry.js +2 -2
- package/dist/esm/digi-icon-videocamera.entry.js +2 -2
- package/dist/esm/digi-icon-volume.entry.js +2 -2
- package/dist/esm/digi-icon-web-tv.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal0.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal1.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal2.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal3.entry.js +2 -2
- package/dist/esm/digi-icon-window.entry.js +2 -2
- package/dist/esm/digi-icon-x-button.entry.js +2 -2
- package/dist/esm/digi-icon-youtube.entry.js +2 -2
- package/dist/esm/digi-info-card-multi-container.entry.js +1 -1
- package/dist/esm/digi-info-card-multi.entry.js +1 -1
- package/dist/esm/digi-info-card.entry.js +1 -1
- package/dist/esm/digi-layout-columns.entry.js +1 -1
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-link.entry.js +1 -1
- package/dist/esm/digi-list.entry.js +1 -1
- package/dist/esm/digi-loader-skeleton.entry.js +3 -3
- package/dist/esm/digi-loader-spinner.entry.js +1 -1
- package/dist/esm/digi-media-figure.entry.js +1 -1
- package/dist/esm/digi-navigation-breadcrumbs.entry.js +2 -2
- package/dist/esm/digi-navigation-pagination.entry.js +6 -6
- package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
- package/dist/esm/digi-notification-alert.entry.js +2 -2
- package/dist/esm/digi-notification-error-page.entry.js +3 -3
- package/dist/esm/digi-progress-circle.entry.js +8 -8
- package/dist/esm/digi-progress-indicator.entry.js +3 -3
- package/dist/esm/digi-progress-list-item.entry.js +5 -5
- package/dist/esm/digi-progress-list.entry.js +1 -1
- package/dist/esm/digi-progressbar.entry.js +2 -2
- package/dist/esm/digi-quote.entry.js +1 -1
- package/dist/esm/digi-table.entry.js +1 -1
- package/dist/esm/digi-tablist-panel.entry.js +2 -2
- package/dist/esm/digi-tablist.entry.js +5 -5
- package/dist/esm/digi-tag-media.entry.js +2 -2
- package/dist/esm/digi-tag.entry.js +1 -1
- package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
- package/dist/esm/digi-tools-feedback-rating.entry.js +1 -1
- package/dist/esm/digi-tools-feedback.entry.js +1 -1
- package/dist/esm/digi-tools-theme-provider.entry.js +1 -1
- package/dist/esm/digi-typography-heading-jumbo.entry.js +1 -1
- package/dist/esm/digi-typography-meta.entry.js +1 -1
- package/dist/esm/digi-typography-preamble.entry.js +1 -1
- package/dist/esm/digi-typography-time.entry.js +1 -1
- package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
- package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
- package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
- package/dist/esm/digi-util-resize-observer.entry.js +1 -1
- package/dist/types/components/_chart/bar-chart/bar-chart.d.ts +49 -41
- package/dist/types/components/_chart/chart-line/chart-line.d.ts +1 -1
- package/dist/types/components/_chart/interfaces/bar-chart-data.interface.d.ts +28 -0
- package/dist/types/components/_chart/{chart-line/chart-line-series.interface.d.ts → interfaces/chart-data-series.interface.d.ts} +1 -1
- package/dist/types/components/_chart/{chart-line/chart-line-data.interface.d.ts → interfaces/line-chart-data.interface.d.ts} +2 -2
- package/dist/types/components.d.ts +8 -6
- package/dist/types/interfaces.d.ts +2 -2
- package/hydrate/index.js +1214 -1000
- package/hydrate/index.mjs +1214 -1000
- package/package.json +1 -1
- package/dist/digi-arbetsformedlingen/p-37377041.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4df8b9e1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7393b76b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a7d97546.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b924bb0b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d2799e99.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d4d2b1a5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ea09368a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f70535e3.entry.js +0 -1
- /package/dist/collection/components/_chart/{chart-line/chart-line-data.interface.js → interfaces/bar-chart-data.interface.js} +0 -0
- /package/dist/collection/components/_chart/{chart-line/chart-line-series.interface.js → interfaces/chart-data-series.interface.js} +0 -0
|
@@ -4,12 +4,12 @@ import { _ as _t } from './p-08cf2c0e.js';
|
|
|
4
4
|
import { r as randomIdGenerator } from './p-ffe5c0e8.js';
|
|
5
5
|
import { B as BarChartVariation } from './p-dcdffb3c.js';
|
|
6
6
|
import { d as defineCustomElement$8 } from './p-e8fc33ed.js';
|
|
7
|
-
import { d as defineCustomElement$7 } from './p-
|
|
8
|
-
import { d as defineCustomElement$6 } from './p-
|
|
9
|
-
import { d as defineCustomElement$5 } from './p-
|
|
10
|
-
import { d as defineCustomElement$4 } from './p-
|
|
11
|
-
import { d as defineCustomElement$3 } from './p-
|
|
12
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$7 } from './p-4241698a.js';
|
|
8
|
+
import { d as defineCustomElement$6 } from './p-5ef44852.js';
|
|
9
|
+
import { d as defineCustomElement$5 } from './p-3c9cea93.js';
|
|
10
|
+
import { d as defineCustomElement$4 } from './p-94603530.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './p-cc5bd9f9.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './p-cfb33ac7.js';
|
|
13
13
|
|
|
14
14
|
function band() {
|
|
15
15
|
var scale = ordinal().unknown(undefined),
|
|
@@ -91,7 +91,7 @@ function band() {
|
|
|
91
91
|
return initRange.apply(rescale(), arguments);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const barChartCss = ".sc-digi-bar-chart-h .digi-bar-chart.sc-digi-bar-chart{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-bar-chart-h .
|
|
94
|
+
const barChartCss = ".sc-digi-bar-chart-h{width:100%;display:flex;flex-direction:column;min-width:0}.sc-digi-bar-chart-h .digi-bar-chart.sc-digi-bar-chart{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-bar-chart-h .svgWrap.sc-digi-bar-chart{position:relative;display:flex;width:100%;height:100%}.sc-digi-bar-chart-h .topWrapper.sc-digi-bar-chart,.sc-digi-bar-chart-h .chartTitle.sc-digi-bar-chart .digi-typography.sc-digi-bar-chart{display:flex;flex-direction:column;gap:0.75rem}.sc-digi-bar-chart-h .chartTitle.sc-digi-bar-chart{--MARGIN--HEADING-2:0;--MARGIN--HEADING-3:0;--MARGIN--HEADING-4:0;--MARGIN--HEADING-5:0;--MARGIN--HEADING-6:0}.sc-digi-bar-chart-h .buttonWrapper.sc-digi-bar-chart{--digi--button--padding--medium:4px 4px 0.8125rem 0}.sc-digi-bar-chart-h .chartTooltip.sc-digi-bar-chart{top:-5px;position:absolute;background-color:var(--digi--color--background--primary);color:black;padding:5px 10px;padding-right:5px;border-radius:4px;display:block;width:max-content;white-space:nowrap;filter:drop-shadow(rgba(0, 0, 0, 0.8) 0px 0px 1px);font-size:0.875rem}.sc-digi-bar-chart-h .tooltipBody.sc-digi-bar-chart{display:inline-block}.sc-digi-bar-chart-h .tooltipHead.sc-digi-bar-chart{display:flex;flex-direction:row;justify-content:space-between}.sc-digi-bar-chart-h .close.sc-digi-bar-chart{display:inline-block;vertical-align:top;--digi--color--icon--primary:#333;cursor:pointer}.sc-digi-bar-chart-h .close.sc-digi-bar-chart:hover{--digi--color--icon--primary:gray}.sc-digi-bar-chart-h .legendWrap.sc-digi-bar-chart{display:grid}.sc-digi-bar-chart-h .legend.sc-digi-bar-chart{display:flex;flex-direction:row;gap:1rem;min-width:0;overflow-x:auto;scrollbar-gutter:stable}.sc-digi-bar-chart-h .caret.sc-digi-bar-chart{--digi--icon--color:var(--digi--color--background--primary)}.sc-digi-bar-chart-h .scChartStatus.sc-digi-bar-chart{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sc-digi-bar-chart-h .table.sc-digi-bar-chart{display:none;overflow-y:auto;height:auto;border-radius:4px;background:linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top, linear-gradient(rgba(255, 255, 255, 0), white 70%) center bottom, radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) center top, radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) center bottom;background-repeat:no-repeat;background-size:100% 40px, 100% 40px, 100% 14px, 100% 14px;background-attachment:local, local, scroll, scroll}";
|
|
95
95
|
const DigiBarChartStyle0 = barChartCss;
|
|
96
96
|
|
|
97
97
|
const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
@@ -99,13 +99,14 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
99
99
|
super();
|
|
100
100
|
this.__registerHost();
|
|
101
101
|
// States
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
102
|
+
this.loading = false;
|
|
103
|
+
this.placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
|
|
104
104
|
// Width of data at each tick, if we have two data series that have values att same tick, this will be 2 for example. defaults to 1;
|
|
105
105
|
this.dataWidth = 1;
|
|
106
|
+
// Bar gap when using multiple bars for each point, this will be doubled, since it is applied on both bars
|
|
106
107
|
this.barGap = 0;
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
108
|
+
this.dims = {};
|
|
109
|
+
this.margin = {
|
|
109
110
|
bottom: 0,
|
|
110
111
|
top: 6,
|
|
111
112
|
left: 5,
|
|
@@ -116,7 +117,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
116
117
|
this.yTickSize = 0;
|
|
117
118
|
this.xTickSize = 5;
|
|
118
119
|
// Width of the largets X-tick-value
|
|
119
|
-
this.
|
|
120
|
+
this.tickWidth = 1;
|
|
120
121
|
// Transition
|
|
121
122
|
this.defaultDuration = 400;
|
|
122
123
|
// Text and formats
|
|
@@ -125,137 +126,234 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
125
126
|
// Observer for watching size changes when in line chart mode
|
|
126
127
|
this.barChartObserver = new ResizeObserver((entries) => {
|
|
127
128
|
entries.forEach(() => {
|
|
128
|
-
if (this.
|
|
129
|
+
if (this.loading)
|
|
129
130
|
return this.loadingResize();
|
|
130
131
|
this.resize();
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
this.highlightBars = (serie) => {
|
|
135
|
+
this.barChartContainer.selectAll('.bar')
|
|
136
|
+
.attr('fill', (barData) => this.colorFunction(barData.serie))
|
|
137
|
+
.transition('color')
|
|
138
|
+
.duration(150)
|
|
139
|
+
.attr('fill', (barData) => {
|
|
140
|
+
var _a;
|
|
141
|
+
if (barData.serie === serie)
|
|
142
|
+
return this.colorFunction(barData.serie);
|
|
143
|
+
else {
|
|
144
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
|
|
145
|
+
return 'url(#prognosisInactive)';
|
|
146
|
+
}
|
|
147
|
+
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
148
|
+
}
|
|
138
149
|
});
|
|
139
|
-
|
|
150
|
+
select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
|
|
151
|
+
};
|
|
152
|
+
this.resetBarColor = () => {
|
|
153
|
+
this.barChartContainer.selectAll('.bar').transition('color').duration(150).attr('fill', (barData) => this.colorFunction(barData.serie));
|
|
154
|
+
select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', 1);
|
|
155
|
+
if (this.chartData.data.averageLine) {
|
|
156
|
+
this.barChartContainer.selectAll('.averageLine').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
|
|
157
|
+
.style('filter', 'contrast(0.5)');
|
|
158
|
+
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
|
|
159
|
+
.style('filter', 'contrast(0.5)'); */
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
this.highlightAverageLine = (serie) => {
|
|
163
|
+
this.barChartContainer.selectAll('.bar')
|
|
164
|
+
.transition('color')
|
|
165
|
+
.duration(150)
|
|
166
|
+
.attr('fill', (barData) => {
|
|
167
|
+
var _a;
|
|
168
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
|
|
169
|
+
return 'url(#prognosisInactive)';
|
|
170
|
+
}
|
|
171
|
+
else
|
|
172
|
+
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
173
|
+
});
|
|
174
|
+
this.barChartContainer.selectAll('.averageLine').transition('avgLine')
|
|
175
|
+
.duration(150).style('mix-blend-mode', null).style('filter', null);
|
|
176
|
+
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLineText')
|
|
177
|
+
.duration(150).style('mix-blend-mode', null).style('filter', null) */
|
|
178
|
+
select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
|
|
179
|
+
};
|
|
180
|
+
// Sets and resizespositions the average line
|
|
181
|
+
this.averageLine = () => {
|
|
182
|
+
if (!this.chartData.data.averageLine)
|
|
183
|
+
return;
|
|
184
|
+
const avLineGroup = this.barChartContainer.select('.interactiveElements').selectAll('.averageLineGroup').data([this.chartData.data.averageLine]).join('g').attr('class', 'averageLineGroup');
|
|
185
|
+
/* avLineGroup.selectAll('.averageLineText')
|
|
186
|
+
.data(d => [d])
|
|
187
|
+
.join('text')
|
|
188
|
+
.attr('class', 'averageLineText')
|
|
189
|
+
.text(d => d.text)
|
|
190
|
+
.attr('x', this.xScale.range()[0])
|
|
191
|
+
.attr('y', (d) => this.yScale(d.value))
|
|
192
|
+
.attr('dy', -2)
|
|
193
|
+
.attr('font-size', this.fontSize)
|
|
194
|
+
.attr('fill', 'var(--digi--color--infographic--lineart)')
|
|
195
|
+
.style('mix-blend-mode', 'plus-lighter')
|
|
196
|
+
.style('filter', 'contrast(0.5)'); */
|
|
197
|
+
avLineGroup.selectAll('.averageLine')
|
|
198
|
+
.data(d => [d.value])
|
|
199
|
+
.join('line')
|
|
200
|
+
.attr('class', 'averageLine')
|
|
201
|
+
.attr('x1', this.xScale.range()[0])
|
|
202
|
+
.attr('y1', (d) => this.yScale(d))
|
|
203
|
+
.attr('x2', this.xScale.range()[1])
|
|
204
|
+
.attr('y2', (d) => this.yScale(d))
|
|
205
|
+
.attr('stroke', 'var(--digi--color--infographic--lineart)')
|
|
206
|
+
.attr('stroke-width', 2)
|
|
207
|
+
.attr('stroke-dasharray', '12, 7')
|
|
208
|
+
.attr('stroke-linecap', 'round')
|
|
209
|
+
.style('mix-blend-mode', 'plus-lighter')
|
|
210
|
+
.style('filter', 'contrast(0.5)')
|
|
211
|
+
.style('pointer-events', 'none');
|
|
212
|
+
};
|
|
140
213
|
// Resizing chart while loading
|
|
141
214
|
this.loadingResize = () => {
|
|
142
215
|
const newHeight = this.setDims();
|
|
143
216
|
this.setMargins(true);
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.getTextSize(this.
|
|
217
|
+
this.svg.attr('width', this.dims.width).attr('height', this.dims.height);
|
|
218
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
219
|
+
this.margin.right =
|
|
220
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
148
221
|
this.yTickSize +
|
|
149
222
|
this.tickPadding;
|
|
150
223
|
// If there is a new height
|
|
151
224
|
if (newHeight) {
|
|
152
225
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
153
226
|
this.afVariation === BarChartVariation.Horizontal
|
|
154
|
-
? this.
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
227
|
+
? this.yScale.range([
|
|
228
|
+
this.margin.top,
|
|
229
|
+
this.dims.height - this.margin.bottom
|
|
157
230
|
])
|
|
158
|
-
: this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
231
|
+
: this.yScale.range([
|
|
232
|
+
this.dims.height - this.margin.bottom,
|
|
233
|
+
this.margin.top
|
|
161
234
|
]);
|
|
162
|
-
this.
|
|
235
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
163
236
|
}
|
|
164
237
|
// Update x-axis with new width
|
|
165
|
-
this.
|
|
238
|
+
this.xScale.range([
|
|
166
239
|
0,
|
|
167
|
-
this.
|
|
240
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
168
241
|
]);
|
|
169
|
-
this.
|
|
242
|
+
this.barSelection
|
|
170
243
|
.attr('x', this.xFunction)
|
|
171
244
|
.attr('width', this.widthFunction);
|
|
172
245
|
this.setValueTicks();
|
|
173
246
|
};
|
|
247
|
+
this.highlightBarGroup = (_event, datum) => {
|
|
248
|
+
if (typeof datum === 'string') {
|
|
249
|
+
const barGroupID = '#' + this.barGroupID(datum);
|
|
250
|
+
this.barChartContainer.select(barGroupID).selectAll('.bar').transition('color')
|
|
251
|
+
.duration(20)
|
|
252
|
+
.attr('fill', (d) => {
|
|
253
|
+
var _a;
|
|
254
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
|
|
255
|
+
return 'url(#prognosisHighlight)';
|
|
256
|
+
}
|
|
257
|
+
else
|
|
258
|
+
return this.adjustColor(this.colorFunction(d.serie), 50);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
this.unHighlightBarGroup = () => {
|
|
263
|
+
this.barSelection.selectAll('.bar').transition('color')
|
|
264
|
+
.duration(100)
|
|
265
|
+
.attr('fill', (d) => {
|
|
266
|
+
return this.colorFunction(d.serie);
|
|
267
|
+
});
|
|
268
|
+
};
|
|
174
269
|
// Adding click listener for tool tip text
|
|
175
270
|
this.setTickInteraction = () => {
|
|
176
271
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
177
|
-
this.
|
|
272
|
+
this.yAxisHandle
|
|
178
273
|
.selectAll('text')
|
|
179
274
|
.style('cursor', 'pointer')
|
|
180
275
|
.on('click', this.openTooltip)
|
|
181
|
-
.on('mouseenter', this.
|
|
182
|
-
.on('mouseleave', this.
|
|
276
|
+
.on('mouseenter', this.highlightBarGroup)
|
|
277
|
+
.on('mouseleave', this.unHighlightBarGroup);
|
|
183
278
|
}
|
|
184
279
|
else {
|
|
185
|
-
this.
|
|
280
|
+
this.xAxisHandle
|
|
186
281
|
.selectAll('text')
|
|
187
282
|
.style('cursor', 'pointer')
|
|
188
283
|
.on('click', this.openTooltip)
|
|
189
|
-
.on('mouseenter', this.
|
|
190
|
-
.on('mouseleave', this.
|
|
284
|
+
.on('mouseenter', this.highlightBarGroup)
|
|
285
|
+
.on('mouseleave', this.unHighlightBarGroup);
|
|
191
286
|
}
|
|
192
287
|
};
|
|
193
288
|
// Setting Y-scale
|
|
194
289
|
this.setYScale = (empty) => {
|
|
195
290
|
var _a, _b, _c;
|
|
196
291
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
197
|
-
this.
|
|
292
|
+
this.yScale = band(empty
|
|
198
293
|
? ['0', '1', '2', '3', '4', '5', '6', '7']
|
|
199
|
-
: this.
|
|
294
|
+
: this.chartData.data.xValueNames, [this.margin.top, this.dims.height - this.margin.bottom])
|
|
200
295
|
.paddingOuter(0.1)
|
|
201
296
|
.paddingInner(0.1);
|
|
202
|
-
this.
|
|
297
|
+
this.yAxis = axisLeft(this.yScale);
|
|
203
298
|
}
|
|
204
299
|
else {
|
|
205
|
-
this.
|
|
206
|
-
.domain(empty ? [0, 10] : [this.
|
|
207
|
-
.nice(((_b = (_a = this.
|
|
208
|
-
? (_c = this.
|
|
300
|
+
this.yScale = linear()
|
|
301
|
+
.domain(empty ? [0, 10] : [this.minVal, this.maxVal])
|
|
302
|
+
.nice(((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
|
|
303
|
+
? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
|
|
209
304
|
: 3);
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
305
|
+
this.yScale.range([
|
|
306
|
+
this.dims.height - this.margin.bottom,
|
|
307
|
+
this.margin.top
|
|
213
308
|
]);
|
|
214
|
-
this.
|
|
309
|
+
this.yAxis = axisLeft(this.yScale);
|
|
215
310
|
}
|
|
216
311
|
};
|
|
217
312
|
// Setting X-Scale
|
|
218
313
|
this.setXScale = (empty) => {
|
|
219
314
|
// Horizontal
|
|
220
315
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
221
|
-
this.
|
|
222
|
-
.domain(empty ? [0, 10] : [this.
|
|
316
|
+
this.xScale = linear()
|
|
317
|
+
.domain(empty ? [0, 10] : [this.minVal, this.maxVal])
|
|
223
318
|
.nice(3);
|
|
224
|
-
this.
|
|
225
|
-
this.getTextSize(this.
|
|
319
|
+
this.margin.right =
|
|
320
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
226
321
|
this.yTickSize +
|
|
227
322
|
this.tickPadding;
|
|
228
|
-
this.
|
|
323
|
+
this.xScale.range([
|
|
229
324
|
0,
|
|
230
|
-
this.
|
|
325
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
231
326
|
]);
|
|
232
327
|
// Initializing actual axis
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
328
|
+
this.xAxis = axisBottom(this.xScale);
|
|
329
|
+
this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
|
|
235
330
|
}
|
|
236
331
|
else {
|
|
237
332
|
// Vertical
|
|
238
|
-
this.
|
|
239
|
-
.domain(empty ? this.
|
|
240
|
-
.range([0, this.
|
|
333
|
+
this.xScale = band()
|
|
334
|
+
.domain(empty ? this.placeholderTicks : this.chartData.data.xValueNames)
|
|
335
|
+
.range([0, this.dims.width - this.margin.right - this.margin.left])
|
|
241
336
|
.paddingOuter(0.1)
|
|
242
337
|
.paddingInner(0.1);
|
|
243
|
-
this.
|
|
338
|
+
this.xAxis = axisBottom(this.xScale);
|
|
244
339
|
}
|
|
245
340
|
};
|
|
246
341
|
// Stores all tick text sizes in an indexable array
|
|
247
342
|
this.tickSizes = () => {
|
|
248
343
|
// Initializing tick size array
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
251
|
-
if (this.
|
|
252
|
-
for (let i = 0; i < this.
|
|
253
|
-
this.
|
|
344
|
+
this.namedTickSizes = [];
|
|
345
|
+
this.ellipsisSize = this.getTextSize('...');
|
|
346
|
+
if (this.chartData && this.chartData.data) {
|
|
347
|
+
for (let i = 0; i < this.chartData.data.xValueNames.length; i++) {
|
|
348
|
+
this.namedTickSizes.push(Math.ceil(this.getTextSize(this.chartData.data.xValueNames[i])));
|
|
254
349
|
}
|
|
255
350
|
}
|
|
256
351
|
};
|
|
352
|
+
this.barGroupID = (key) => {
|
|
353
|
+
return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
|
|
354
|
+
};
|
|
257
355
|
this.updateBars = (fromLoading) => {
|
|
258
|
-
this.
|
|
356
|
+
this.barChartContainer
|
|
259
357
|
.selectAll('.barGroup')
|
|
260
358
|
.data(this.mappedData)
|
|
261
359
|
.join((enter) => {
|
|
@@ -263,7 +361,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
263
361
|
const tempSelection = enter
|
|
264
362
|
.append('g')
|
|
265
363
|
.attr('class', 'barGroup')
|
|
266
|
-
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '
|
|
364
|
+
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''));
|
|
267
365
|
tempSelection
|
|
268
366
|
.append('rect')
|
|
269
367
|
.attr('class', 'bar')
|
|
@@ -271,16 +369,16 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
271
369
|
.attr('ry', 4)
|
|
272
370
|
.attr('rx', 4)
|
|
273
371
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
274
|
-
? this.
|
|
275
|
-
: this.
|
|
372
|
+
? this.yScale(d.key)
|
|
373
|
+
: this.dims.height - this.margin.bottom)
|
|
276
374
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
277
375
|
? 2
|
|
278
|
-
: this.
|
|
376
|
+
: this.xScale(d.key))
|
|
279
377
|
.attr('width', () => this.afVariation === BarChartVariation.Horizontal
|
|
280
378
|
? 0
|
|
281
|
-
: this.
|
|
379
|
+
: this.xScale.bandwidth())
|
|
282
380
|
.attr('height', () => this.afVariation === BarChartVariation.Horizontal
|
|
283
|
-
? this.
|
|
381
|
+
? this.yScale.bandwidth()
|
|
284
382
|
: 0)
|
|
285
383
|
.on('mouseenter', this.hover)
|
|
286
384
|
.on('mouseleave', this.hoverOut)
|
|
@@ -292,7 +390,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
292
390
|
.attr('y', this.yFunction)
|
|
293
391
|
.attr('height', this.heightFunction)
|
|
294
392
|
.attr('fill', '#00005a');
|
|
295
|
-
if (!((_b = (_a = this.
|
|
393
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
296
394
|
return tempSelection;
|
|
297
395
|
tempSelection
|
|
298
396
|
.append('text')
|
|
@@ -303,32 +401,32 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
303
401
|
.attr('text-anchor', 'end')
|
|
304
402
|
.style('pointer-events', 'none')
|
|
305
403
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
306
|
-
? this.
|
|
307
|
-
: this.
|
|
404
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
405
|
+
: this.dims.height - this.margin.bottom)
|
|
308
406
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
309
407
|
? 2
|
|
310
|
-
: this.
|
|
408
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
311
409
|
.transition()
|
|
312
410
|
.duration(this.defaultDuration)
|
|
313
411
|
.ease(polyInOut)
|
|
314
412
|
.attr('font-size', this.fontSize)
|
|
315
413
|
.attr('font-weight', '600')
|
|
316
414
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
317
|
-
? this.
|
|
318
|
-
: this.
|
|
415
|
+
? this.xScale(d.value)
|
|
416
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
319
417
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
320
|
-
? this.
|
|
321
|
-
: this.
|
|
418
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
419
|
+
: this.yScale(d.value))
|
|
322
420
|
.attr('text-anchor', (d) => {
|
|
323
421
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
324
422
|
return 'middle';
|
|
325
|
-
return this.
|
|
423
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
326
424
|
? 'start'
|
|
327
425
|
: 'end';
|
|
328
426
|
})
|
|
329
427
|
.attr('dx', (d) => {
|
|
330
428
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
331
|
-
return this.
|
|
429
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
332
430
|
? this.tickPadding
|
|
333
431
|
: -this.tickPadding;
|
|
334
432
|
return 0;
|
|
@@ -336,7 +434,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
336
434
|
.attr('fill', (d) => {
|
|
337
435
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
338
436
|
return 'black';
|
|
339
|
-
return this.
|
|
437
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
340
438
|
? 'black'
|
|
341
439
|
: 'white';
|
|
342
440
|
})
|
|
@@ -349,12 +447,12 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
349
447
|
? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
350
448
|
: 0;
|
|
351
449
|
const interpolatedValue = interpolate(oldnum, d.value);
|
|
352
|
-
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.
|
|
450
|
+
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.numberFormat));
|
|
353
451
|
});
|
|
354
452
|
return tempSelection;
|
|
355
453
|
}, (update) => {
|
|
356
454
|
// Update ids to bars
|
|
357
|
-
update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '
|
|
455
|
+
update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''));
|
|
358
456
|
// Mouse interaction to updated loading bars
|
|
359
457
|
if (fromLoading) {
|
|
360
458
|
update
|
|
@@ -364,11 +462,11 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
364
462
|
.on('click', this.openTooltip)
|
|
365
463
|
.attr('x', this.xFunction)
|
|
366
464
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
367
|
-
? this.
|
|
368
|
-
: this.
|
|
465
|
+
? this.yScale(d.key)
|
|
466
|
+
: this.dims.height - this.margin.bottom)
|
|
369
467
|
.attr('width', this.widthFunction)
|
|
370
468
|
.attr('height', () => this.afVariation === BarChartVariation.Horizontal
|
|
371
|
-
? this.
|
|
469
|
+
? this.yScale.bandwidth()
|
|
372
470
|
: 0)
|
|
373
471
|
.attr('fill', '#00005a')
|
|
374
472
|
.transition()
|
|
@@ -376,7 +474,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
376
474
|
.ease(polyInOut)
|
|
377
475
|
.attr('y', this.yFunction)
|
|
378
476
|
.attr('height', this.heightFunction)
|
|
379
|
-
.on('end', () => this.barChartObserver.observe(this.
|
|
477
|
+
.on('end', () => this.barChartObserver.observe(this.chartDiv)); // Reset barchartObserver
|
|
380
478
|
}
|
|
381
479
|
else {
|
|
382
480
|
update
|
|
@@ -392,28 +490,28 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
392
490
|
}
|
|
393
491
|
return update
|
|
394
492
|
.select('text')
|
|
395
|
-
.style('display', () => { var _a, _b; return ((_b = (_a = this.
|
|
493
|
+
.style('display', () => { var _a, _b; return ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels) ? null : 'none'; })
|
|
396
494
|
.transition()
|
|
397
495
|
.duration(this.defaultDuration)
|
|
398
496
|
.ease(polyInOut)
|
|
399
497
|
.attr('font-size', this.fontSize)
|
|
400
498
|
.attr('font-weight', '600')
|
|
401
499
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
402
|
-
? this.
|
|
403
|
-
: this.
|
|
500
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
501
|
+
: this.yScale(d.value))
|
|
404
502
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
405
|
-
? this.
|
|
406
|
-
: this.
|
|
503
|
+
? this.xScale(d.value)
|
|
504
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
407
505
|
.attr('text-anchor', (d) => {
|
|
408
506
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
409
507
|
return 'middle';
|
|
410
|
-
return this.
|
|
508
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
411
509
|
? 'start'
|
|
412
510
|
: 'end';
|
|
413
511
|
})
|
|
414
512
|
.attr('dx', (d) => {
|
|
415
513
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
416
|
-
return this.
|
|
514
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
417
515
|
? this.tickPadding
|
|
418
516
|
: -this.tickPadding;
|
|
419
517
|
return 0;
|
|
@@ -421,7 +519,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
421
519
|
.attr('fill', (d) => {
|
|
422
520
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
423
521
|
return 'black';
|
|
424
|
-
return this.
|
|
522
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
425
523
|
? 'black'
|
|
426
524
|
: 'white';
|
|
427
525
|
})
|
|
@@ -434,27 +532,27 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
434
532
|
? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
435
533
|
: 0;
|
|
436
534
|
const interpolatedValue = interpolate(oldnum, d.value);
|
|
437
|
-
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.
|
|
535
|
+
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.numberFormat));
|
|
438
536
|
});
|
|
439
537
|
}, (exit) => exit.remove());
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
538
|
+
this.barSelection = this.barChartContainer.selectAll('rect');
|
|
539
|
+
this.textSelection = this.barChartContainer.selectAll('.barText');
|
|
442
540
|
};
|
|
443
541
|
// Setting position of text according to bar size
|
|
444
542
|
this.adjustBarText = () => {
|
|
445
543
|
var _a, _b;
|
|
446
|
-
if (!((_b = (_a = this.
|
|
544
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
447
545
|
return;
|
|
448
|
-
this.
|
|
546
|
+
this.textSelection
|
|
449
547
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
450
|
-
? this.
|
|
451
|
-
: this.
|
|
548
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
549
|
+
: this.yScale(d.value))
|
|
452
550
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
453
|
-
? this.
|
|
454
|
-
: this.
|
|
551
|
+
? this.xScale(d.value)
|
|
552
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
455
553
|
.attr('dx', (d) => {
|
|
456
554
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
457
|
-
return this.
|
|
555
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
458
556
|
? this.tickPadding
|
|
459
557
|
: -this.tickPadding;
|
|
460
558
|
return 0;
|
|
@@ -462,26 +560,26 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
462
560
|
.attr('fill', (d) => {
|
|
463
561
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
464
562
|
return 'black';
|
|
465
|
-
return this.
|
|
563
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
466
564
|
? 'black'
|
|
467
565
|
: 'white';
|
|
468
566
|
})
|
|
469
567
|
.attr('text-anchor', (d) => {
|
|
470
568
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
471
569
|
return 'middle';
|
|
472
|
-
return this.
|
|
570
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
473
571
|
? 'start'
|
|
474
572
|
: 'end';
|
|
475
573
|
});
|
|
476
574
|
};
|
|
477
575
|
this.reshapeData = () => {
|
|
478
576
|
const toReturn = [];
|
|
479
|
-
if (this.
|
|
480
|
-
this.
|
|
577
|
+
if (this.loading || !this.chartData) {
|
|
578
|
+
this.placeholderTicks.forEach((key) => {
|
|
481
579
|
const tick = { key: key, series: [] };
|
|
482
580
|
tick.series.push({
|
|
483
581
|
key: key,
|
|
484
|
-
serie: '',
|
|
582
|
+
serie: 'loading',
|
|
485
583
|
value: Math.floor(Math.random() * (9 - 2 + 1) + 2),
|
|
486
584
|
len: 0
|
|
487
585
|
});
|
|
@@ -489,154 +587,177 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
489
587
|
});
|
|
490
588
|
return toReturn;
|
|
491
589
|
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
590
|
+
else {
|
|
591
|
+
if (this.chartData.data.xValueNames) {
|
|
592
|
+
this.chartData.data.xValueNames.forEach((key, index) => {
|
|
593
|
+
const tick = { key: key, series: [] };
|
|
594
|
+
this.chartData.data.series.forEach((serie) => {
|
|
595
|
+
if (serie.yValues[index]) {
|
|
596
|
+
tick.series.push({
|
|
597
|
+
key: key,
|
|
598
|
+
serie: serie.title,
|
|
599
|
+
value: serie.yValues[index],
|
|
600
|
+
len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
|
|
601
|
+
});
|
|
602
|
+
}
|
|
501
603
|
});
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
604
|
+
toReturn.push(tick);
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
this.chartData.data.xValues.forEach((key, index) => {
|
|
609
|
+
const tick = { key: key.toString(), series: [] };
|
|
610
|
+
this.chartData.data.series.forEach((serie) => {
|
|
611
|
+
if (serie.yValues[index]) {
|
|
612
|
+
tick.series.push({
|
|
613
|
+
key: key.toString(),
|
|
614
|
+
serie: serie.title,
|
|
615
|
+
value: serie.yValues[index],
|
|
616
|
+
len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
toReturn.push(tick);
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
}
|
|
506
624
|
return toReturn;
|
|
507
625
|
};
|
|
508
626
|
this.adjustBarSize = () => {
|
|
509
|
-
this.
|
|
627
|
+
this.barSelection.selectAll('.bar')
|
|
510
628
|
.attr('x', this.xFunction)
|
|
511
629
|
.attr('y', this.yFunction)
|
|
512
630
|
.attr('width', this.widthFunction)
|
|
513
631
|
.attr('height', this.heightFunction);
|
|
514
632
|
};
|
|
633
|
+
this.evalColorVar = (colorVar) => {
|
|
634
|
+
return getComputedStyle(document.documentElement)
|
|
635
|
+
.getPropertyValue(colorVar)
|
|
636
|
+
.trim()
|
|
637
|
+
.toLocaleLowerCase();
|
|
638
|
+
};
|
|
515
639
|
// Handling x positioning of bars
|
|
516
640
|
this.xFunction = (d, i) => {
|
|
517
641
|
return this.afVariation === BarChartVariation.Horizontal
|
|
518
|
-
? (d.value > 0 ? this.
|
|
519
|
-
: this.
|
|
642
|
+
? (d.value > 0 ? this.xScale(0) : this.xScale(d.value))
|
|
643
|
+
: this.xScale(d.key) + ((this.xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
|
|
520
644
|
};
|
|
521
645
|
// Handling y positioning of bars
|
|
522
646
|
this.yFunction = (d, i) => {
|
|
523
647
|
if (!d.value)
|
|
524
648
|
return 0;
|
|
525
649
|
return this.afVariation === BarChartVariation.Horizontal
|
|
526
|
-
? this.
|
|
527
|
-
: (d.value < 0 ? this.
|
|
650
|
+
? this.yScale(d.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
|
|
651
|
+
: (d.value < 0 ? this.yScale(0) : this.yScale(d.value));
|
|
528
652
|
};
|
|
529
653
|
// Handling height for bars
|
|
530
654
|
this.heightFunction = (d) => {
|
|
531
655
|
if (!d.value)
|
|
532
656
|
return 0;
|
|
533
657
|
return this.afVariation === BarChartVariation.Horizontal
|
|
534
|
-
? this.
|
|
535
|
-
: (d.value < 0 ? this.
|
|
658
|
+
? this.yScale.bandwidth() / this.dataWidth - (this.barGap)
|
|
659
|
+
: (d.value < 0 ? this.yScale(d.value) - this.yScale(0) : this.yScale(0) - this.yScale(d.value));
|
|
536
660
|
};
|
|
537
661
|
// Handling width for bars
|
|
538
662
|
this.widthFunction = (d) => {
|
|
539
663
|
return this.afVariation === BarChartVariation.Horizontal
|
|
540
|
-
? Math.abs(this.
|
|
541
|
-
: this.
|
|
542
|
-
};
|
|
543
|
-
// Resize table
|
|
544
|
-
this.resizeTable = () => {
|
|
545
|
-
this.setDims();
|
|
546
|
-
this.setTableDimensions();
|
|
664
|
+
? Math.abs(this.xScale(0) - this.xScale(d.value))
|
|
665
|
+
: this.xScale.bandwidth() / this.dataWidth - (this.barGap);
|
|
547
666
|
};
|
|
548
667
|
// Setting dimension variable
|
|
549
668
|
this.setDims = (onlyHeight = false) => {
|
|
550
669
|
// Get title dimensions
|
|
551
|
-
const tempTitle = select(this.
|
|
552
|
-
const prevHeight = this.
|
|
670
|
+
const tempTitle = select(this.titleDiv).node().getBoundingClientRect(), tempLegend = select(this.legendDiv).node().getBoundingClientRect();
|
|
671
|
+
const prevHeight = this.dims.height;
|
|
553
672
|
if (!onlyHeight)
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
return prevHeight != this.
|
|
673
|
+
this.dims = select(this.chartDiv).node().getBoundingClientRect();
|
|
674
|
+
this.dims.height =
|
|
675
|
+
this.maxHeight - tempLegend.height - tempTitle.height - 1.75 * this.rem;
|
|
676
|
+
return prevHeight != this.dims.height;
|
|
558
677
|
};
|
|
559
678
|
// Setting margins given text size
|
|
560
679
|
this.setMargins = (fromLoading) => {
|
|
561
680
|
var _a;
|
|
562
|
-
this.
|
|
681
|
+
this.pixelSize =
|
|
563
682
|
Number(window
|
|
564
683
|
.getComputedStyle(document.body)
|
|
565
684
|
.getPropertyValue('font-size')
|
|
566
685
|
.match(/\d+/)[0]) * Number(this.fontSize.replace(/[^\d.]|\.(?=.*\.)/g, ''));
|
|
567
686
|
// Getting the longest word, assuming it will also be the widest in terms of pixels
|
|
568
687
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
569
|
-
const left = ((_a = this.
|
|
570
|
-
this.getLargestText(this.
|
|
571
|
-
? this.getLargestText(this.
|
|
688
|
+
const left = ((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data) &&
|
|
689
|
+
this.getLargestText(this.chartData.data.xValueNames)
|
|
690
|
+
? this.getLargestText(this.chartData.data.xValueNames)
|
|
572
691
|
: 0;
|
|
573
|
-
this.
|
|
692
|
+
this.margin.left = left;
|
|
693
|
+
this.margin.bottom = this.pixelSize + this.tickPadding + this.xTickSize;
|
|
574
694
|
}
|
|
575
|
-
else
|
|
576
|
-
this.
|
|
695
|
+
else {
|
|
696
|
+
this.margin.left = this.getLargestText(fromLoading
|
|
577
697
|
? ['0', '10']
|
|
578
698
|
: [
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
699
|
+
this.minVal ? this.tempScale[0].toLocaleString() : '0',
|
|
700
|
+
this.maxVal ? this.tempScale[1].toLocaleString() : '10'
|
|
581
701
|
]);
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
702
|
+
this.margin.bottom = this.pixelSize;
|
|
703
|
+
}
|
|
704
|
+
if (this.margin.left > this.dims.width / 4) {
|
|
705
|
+
this.margin.left = Math.floor(this.dims.width / 4);
|
|
706
|
+
this.margin.ellipsis = true;
|
|
585
707
|
}
|
|
586
708
|
else
|
|
587
|
-
this.
|
|
588
|
-
this._margin.bottom = this._pixelSize + this.tickPadding + this.xTickSize;
|
|
709
|
+
this.margin.ellipsis = false;
|
|
589
710
|
};
|
|
590
711
|
// Adjusting y-ticks
|
|
591
712
|
this.setNamedTicks = (transition = false) => {
|
|
592
713
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
593
714
|
if (!transition) {
|
|
594
|
-
this.
|
|
715
|
+
this.yAxisHandle
|
|
595
716
|
.style('font-size', this.fontSize)
|
|
596
717
|
.style('font-family', 'Open Sans')
|
|
597
|
-
.call(this.
|
|
718
|
+
.call(this.yAxis
|
|
598
719
|
.tickPadding(this.tickPadding)
|
|
599
720
|
.tickSize(this.yTickSize)
|
|
600
721
|
.tickSizeOuter(0)
|
|
601
722
|
.tickFormat((d, i) => {
|
|
602
|
-
if (!this.
|
|
723
|
+
if (!this.margin.ellipsis)
|
|
603
724
|
return d.toLocaleString();
|
|
604
725
|
// Adding ellipsis to text
|
|
605
|
-
const size = this.
|
|
606
|
-
const mSize = this.
|
|
726
|
+
const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
|
|
727
|
+
const mSize = this.margin.left;
|
|
607
728
|
if (size < mSize)
|
|
608
729
|
return d.toLocaleString();
|
|
609
|
-
const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
730
|
+
const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3)) + '...');
|
|
610
731
|
let adjustment = 0;
|
|
611
732
|
if (newSize > mSize) {
|
|
612
733
|
adjustment = Math.ceil((newSize - mSize) / (size / d.length));
|
|
613
734
|
}
|
|
614
735
|
// Slicing the text up, saving atleast 3 characters
|
|
615
736
|
return (d
|
|
616
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
737
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
|
|
617
738
|
.trim() + '...');
|
|
618
739
|
}));
|
|
619
740
|
}
|
|
620
741
|
else {
|
|
621
|
-
this.
|
|
742
|
+
this.yAxisHandle
|
|
622
743
|
.style('font-size', this.fontSize)
|
|
623
744
|
.style('font-family', 'Open Sans')
|
|
624
745
|
.transition()
|
|
625
746
|
.duration(this.defaultDuration)
|
|
626
|
-
.call(this.
|
|
747
|
+
.call(this.yAxis
|
|
627
748
|
.tickPadding(this.tickPadding)
|
|
628
749
|
.tickSize(this.yTickSize)
|
|
629
750
|
.tickSizeOuter(0)
|
|
630
751
|
.tickFormat((d, i) => {
|
|
631
|
-
if (!this.
|
|
752
|
+
if (!this.margin.ellipsis)
|
|
632
753
|
return d;
|
|
633
754
|
// Adding ellipsis to text
|
|
634
|
-
const size = this.
|
|
635
|
-
const mSize = this.
|
|
755
|
+
const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
|
|
756
|
+
const mSize = this.margin.left;
|
|
636
757
|
if (size < mSize)
|
|
637
758
|
return d;
|
|
638
759
|
const newSize = this.getTextSize(d
|
|
639
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
760
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3))
|
|
640
761
|
.trim() + '...');
|
|
641
762
|
let adjustment = 0;
|
|
642
763
|
if (newSize > mSize) {
|
|
@@ -644,26 +765,26 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
644
765
|
}
|
|
645
766
|
// Slicing the text up, saving atleast 3 characters
|
|
646
767
|
return (d
|
|
647
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
768
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
|
|
648
769
|
.trim() + '...');
|
|
649
770
|
}));
|
|
650
771
|
}
|
|
651
772
|
}
|
|
652
773
|
else {
|
|
653
774
|
//Calculating every n:th text to show
|
|
654
|
-
let nTh = Math.round(this.
|
|
655
|
-
((this.
|
|
656
|
-
if (Math.floor(this.
|
|
657
|
-
nTh = Math.round(this.
|
|
775
|
+
let nTh = Math.max(Math.round(this.chartData.data.xValues.length /
|
|
776
|
+
((this.dims.width - this.margin.left - this.margin.right) / 90 - 1)), 1);
|
|
777
|
+
if (Math.floor(this.chartData.data.xValues.length / nTh) < 4) {
|
|
778
|
+
nTh = Math.round(this.chartData.data.xValues.length / 4);
|
|
658
779
|
}
|
|
659
|
-
const allowedWidth = (this.
|
|
660
|
-
Math.floor(this.
|
|
780
|
+
const allowedWidth = (this.dims.width - this.margin.left - this.margin.right) /
|
|
781
|
+
Math.floor(this.chartData.data.xValues.length / nTh + 1);
|
|
661
782
|
if (!transition) {
|
|
662
|
-
this.
|
|
783
|
+
this.xAxisHandle
|
|
663
784
|
.style('font-size', this.fontSize)
|
|
664
785
|
.style('font-family', 'Open Sans')
|
|
665
|
-
.call(this.
|
|
666
|
-
.tickValues(this.
|
|
786
|
+
.call(this.xAxis
|
|
787
|
+
.tickValues(this.xScale.domain().filter((...[, i]) => {
|
|
667
788
|
if (i == 0)
|
|
668
789
|
return true;
|
|
669
790
|
else {
|
|
@@ -675,23 +796,23 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
675
796
|
.tickSizeOuter(0)
|
|
676
797
|
.tickFormat((d, i) => {
|
|
677
798
|
const index = i * nTh;
|
|
678
|
-
if (this.
|
|
799
|
+
if (this.namedTickSizes[index] < allowedWidth)
|
|
679
800
|
return d;
|
|
680
801
|
return (d.slice(0, Math.max(Math.floor((allowedWidth /
|
|
681
|
-
(this.
|
|
682
|
-
this.
|
|
802
|
+
(this.namedTickSizes[index] +
|
|
803
|
+
this.ellipsisSize +
|
|
683
804
|
5)) *
|
|
684
805
|
d.length), 3)) + '...');
|
|
685
806
|
}));
|
|
686
807
|
}
|
|
687
808
|
else {
|
|
688
|
-
this.
|
|
809
|
+
this.xAxisHandle
|
|
689
810
|
.style('font-size', this.fontSize)
|
|
690
811
|
.style('font-family', 'Open Sans')
|
|
691
812
|
.transition()
|
|
692
813
|
.duration(this.defaultDuration)
|
|
693
|
-
.call(this.
|
|
694
|
-
.tickValues(this.
|
|
814
|
+
.call(this.xAxis
|
|
815
|
+
.tickValues(this.xScale.domain().filter((...[, i]) => {
|
|
695
816
|
if (i == 0)
|
|
696
817
|
return true;
|
|
697
818
|
else {
|
|
@@ -703,11 +824,11 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
703
824
|
.tickSizeOuter(0)
|
|
704
825
|
.tickFormat((d, i) => {
|
|
705
826
|
const index = i * nTh;
|
|
706
|
-
if (this.
|
|
827
|
+
if (this.namedTickSizes[index] < allowedWidth)
|
|
707
828
|
return d;
|
|
708
829
|
return (d.slice(0, Math.max(Math.floor((allowedWidth /
|
|
709
|
-
(this.
|
|
710
|
-
this.
|
|
830
|
+
(this.namedTickSizes[index] +
|
|
831
|
+
this.ellipsisSize +
|
|
711
832
|
5)) *
|
|
712
833
|
d.length), 3)) + '...');
|
|
713
834
|
}));
|
|
@@ -717,30 +838,30 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
717
838
|
// Positioning the ticks of the value bearing axis
|
|
718
839
|
this.setValueTicks = (transition = false) => {
|
|
719
840
|
var _a, _b;
|
|
720
|
-
if (((_a = this.
|
|
841
|
+
if (((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
|
|
721
842
|
this.afVariation === BarChartVariation.Horizontal
|
|
722
|
-
? this.
|
|
723
|
-
: this.
|
|
843
|
+
? this.xAxisHandle.attr('display', 'none')
|
|
844
|
+
: this.yAxisHandle.attr('display', 'none');
|
|
724
845
|
return;
|
|
725
846
|
}
|
|
726
847
|
let toCall, tickSize, handle;
|
|
727
848
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
728
|
-
this.
|
|
729
|
-
toCall = this.
|
|
730
|
-
tickSize = -(this.
|
|
731
|
-
handle = this.
|
|
849
|
+
this.xAxisHandle.attr('display', null);
|
|
850
|
+
toCall = this.xAxis;
|
|
851
|
+
tickSize = -(this.dims.height - this.margin.top - this.margin.bottom);
|
|
852
|
+
handle = this.xAxisHandle;
|
|
732
853
|
}
|
|
733
854
|
else {
|
|
734
|
-
this.
|
|
735
|
-
toCall = this.
|
|
736
|
-
tickSize = -(this.
|
|
737
|
-
handle = this.
|
|
855
|
+
this.yAxisHandle.attr('display', null);
|
|
856
|
+
toCall = this.yAxis;
|
|
857
|
+
tickSize = -(this.dims.width - this.margin.left - this.margin.right);
|
|
858
|
+
handle = this.yAxisHandle;
|
|
738
859
|
}
|
|
739
860
|
// Computing the amount of ticks to show
|
|
740
|
-
const ticks = Math.min(Math.floor((this.
|
|
741
|
-
(this.
|
|
742
|
-
? this.
|
|
743
|
-
: this.
|
|
861
|
+
const ticks = Math.min(Math.floor((this.dims.width - this.margin.left - this.margin.right) /
|
|
862
|
+
(this.tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
|
|
863
|
+
? this.xScale.ticks().length
|
|
864
|
+
: this.yScale.ticks().length);
|
|
744
865
|
if (!transition) {
|
|
745
866
|
handle
|
|
746
867
|
.style('font-size', this.fontSize)
|
|
@@ -771,124 +892,162 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
771
892
|
}
|
|
772
893
|
handle.selectAll('line').attr('stroke', 'lightgray');
|
|
773
894
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
774
|
-
this.
|
|
895
|
+
this.yAxisHandle.select('.domain').attr('display', 'none');
|
|
775
896
|
};
|
|
776
897
|
// Highlight bar
|
|
777
898
|
this.hover = (event) => {
|
|
778
899
|
select(event.target)
|
|
779
|
-
.transition('
|
|
900
|
+
.transition('color')
|
|
780
901
|
.duration(20)
|
|
781
|
-
.attr('fill', (d) =>
|
|
782
|
-
|
|
783
|
-
|
|
902
|
+
.attr('fill', (d) => {
|
|
903
|
+
var _a;
|
|
904
|
+
if (event.target.tagName === 'rect') {
|
|
905
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
|
|
906
|
+
return 'url(#prognosisHighlight)';
|
|
907
|
+
}
|
|
908
|
+
else
|
|
909
|
+
return this.adjustColor(this.colorFunction(d.serie), 50);
|
|
910
|
+
}
|
|
911
|
+
else {
|
|
912
|
+
return this.evalColorVar('--digi--color--background--interactive--hover--tertiary');
|
|
913
|
+
}
|
|
914
|
+
});
|
|
784
915
|
};
|
|
785
916
|
// Removing highlight from bar
|
|
786
917
|
this.hoverOut = (event) => {
|
|
787
918
|
select(event.target)
|
|
788
|
-
.transition('
|
|
919
|
+
.transition('color')
|
|
789
920
|
.duration(this.defaultDuration)
|
|
790
921
|
.attr('fill', (d) => event.target.tagName === 'rect' ? this.colorFunction(d.serie) : '#333333');
|
|
791
922
|
};
|
|
792
923
|
this.openTooltip = (...[, d]) => {
|
|
793
924
|
// If type is string, the user has clicked on a y-axis tick
|
|
794
925
|
if (typeof d === 'string') {
|
|
795
|
-
this.
|
|
796
|
-
.select(
|
|
926
|
+
this.tooltipData = this.barChartContainer
|
|
927
|
+
.select(`#${this.barGroupID(d)}`)
|
|
797
928
|
.datum();
|
|
798
929
|
}
|
|
799
930
|
else
|
|
800
|
-
this.
|
|
801
|
-
const tooltipBody = this.
|
|
802
|
-
|
|
803
|
-
.select(
|
|
804
|
-
.
|
|
805
|
-
.style('font-weight', 500)
|
|
806
|
-
.html(this._tooltipData.key);
|
|
931
|
+
this.tooltipData = d;
|
|
932
|
+
const tooltipBody = this.tooltip.select('.tooltipBody');
|
|
933
|
+
this.tooltip
|
|
934
|
+
.select('.tooltipHeading')
|
|
935
|
+
.html(this.tooltipData.key);
|
|
807
936
|
tooltipBody
|
|
808
937
|
.selectAll('div')
|
|
809
|
-
.data([this.
|
|
938
|
+
.data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
|
|
810
939
|
.join('div')
|
|
811
940
|
.style('display', 'flex')
|
|
812
941
|
.style('flex-direction', 'row')
|
|
813
942
|
.style('flex-wrap', 'nowrap')
|
|
814
943
|
.style('white-space', 'nowrap')
|
|
815
944
|
.style('justify-content', 'space-between')
|
|
816
|
-
.
|
|
817
|
-
|
|
818
|
-
|
|
945
|
+
.style('margin', '0.25rem 0')
|
|
946
|
+
.html((d) => {
|
|
947
|
+
return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
|
|
948
|
+
});
|
|
949
|
+
this.tooltip.style('visibility', 'visible');
|
|
950
|
+
this.positionTooltip(this.tooltipData);
|
|
819
951
|
};
|
|
820
952
|
this.closeTooltip = () => {
|
|
821
|
-
this.
|
|
953
|
+
this.tooltip.style('visibility', 'hidden');
|
|
822
954
|
};
|
|
823
955
|
// Positions tooltip in horizontal mode
|
|
824
956
|
this.positionTooltip = (data) => {
|
|
825
|
-
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
if (
|
|
829
|
-
this.
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
.
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
957
|
+
var _a;
|
|
958
|
+
const width = this.tooltip.node().getBoundingClientRect().width;
|
|
959
|
+
// Single bar
|
|
960
|
+
if ('serie' in data) {
|
|
961
|
+
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
962
|
+
const diff = this.xScale(data.value) / 2 - width / 2;
|
|
963
|
+
this.tooltip
|
|
964
|
+
.style('transform', `translate(${this.margin.left + this.tickPadding + Math.max(diff, -4)}px, ${this.yScale(data.key) + this.yScale.bandwidth() + this.yScale.paddingInner() * this.yScale.bandwidth()}px )`)
|
|
965
|
+
.style('max-width', this.xScale.range()[1] + 'px');
|
|
966
|
+
this.tooltip
|
|
967
|
+
.select('digi-icon-caret-up')
|
|
968
|
+
.style('position', 'absolute')
|
|
969
|
+
.style('top', '-12px')
|
|
970
|
+
.style('left', '0')
|
|
971
|
+
.style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
|
|
972
|
+
}
|
|
973
|
+
else {
|
|
974
|
+
const index = (_a = this.mappedData.find(xPoint => xPoint.key === data.key)) === null || _a === void 0 ? void 0 : _a.series.findIndex(serie => serie.serie === data.serie);
|
|
975
|
+
const barIndex = ((this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1)) - (this.xScale.bandwidth() / this.dataWidth) / 2;
|
|
976
|
+
// This should be where the x-axis starts
|
|
977
|
+
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
978
|
+
// Creating adjustment for tooltip to not appear outside of chart
|
|
979
|
+
const spaceToSVGEdge = 5;
|
|
980
|
+
const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (this.xScale(data.key) + xStart + barIndex + width / 2) ? (((this.xScale(data.key) + xStart + barIndex + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
|
|
981
|
+
this.tooltip
|
|
982
|
+
.style('transform', `translate( calc(${this.xScale(data.key) + xStart + barIndex}px - ${50 + inlineAdjustment}%), calc(-100% + ${(data.value > 0 ? this.yScale(data.value) : this.yScale(0)) - 2}px) )`);
|
|
983
|
+
this.tooltip
|
|
984
|
+
.select('digi-icon-caret-down')
|
|
985
|
+
.style('position', 'absolute')
|
|
986
|
+
.style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
|
|
987
|
+
.style('bottom', '-12px');
|
|
988
|
+
}
|
|
839
989
|
}
|
|
840
990
|
else {
|
|
841
|
-
this.
|
|
842
|
-
.
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
.
|
|
846
|
-
.
|
|
847
|
-
.
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
.
|
|
991
|
+
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
992
|
+
console.log('helloo');
|
|
993
|
+
}
|
|
994
|
+
else {
|
|
995
|
+
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
996
|
+
const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
|
|
997
|
+
const yMax = max(data.series.map(elem => elem.value));
|
|
998
|
+
// Creating adjustment for tooltip to not appear outside of chart
|
|
999
|
+
const spaceToSVGEdge = 5;
|
|
1000
|
+
const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (translatePoint + width / 2) ? (((translatePoint + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
|
|
1001
|
+
this.tooltip
|
|
1002
|
+
.style('transform', `translate( calc(${this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2}px - ${50 + inlineAdjustment}%), calc(-100% + ${this.yScale(yMax && yMax > 0 ? yMax : 0) - 1}px) )`);
|
|
1003
|
+
this.tooltip
|
|
1004
|
+
.select('digi-icon-caret-down')
|
|
1005
|
+
.style('position', 'absolute')
|
|
1006
|
+
.style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
|
|
1007
|
+
.style('bottom', '-12px');
|
|
1008
|
+
}
|
|
851
1009
|
}
|
|
852
1010
|
};
|
|
853
1011
|
// Once texts has fully loaded, we can recompute some sizes
|
|
854
1012
|
this.recomputeTextSize = () => {
|
|
855
1013
|
var _a, _b;
|
|
856
1014
|
if (this.afVariation == BarChartVariation.Horizontal)
|
|
857
|
-
this.
|
|
1015
|
+
this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
|
|
858
1016
|
this.tickSizes();
|
|
859
|
-
this.
|
|
860
|
-
if ((_b = (_a = this.
|
|
861
|
-
this.
|
|
1017
|
+
this.barChartContainer.selectAll('.barGroup').data(this.mappedData);
|
|
1018
|
+
if ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
|
|
1019
|
+
this.textSelection.remove();
|
|
862
1020
|
this.initBarText();
|
|
863
1021
|
};
|
|
864
1022
|
// Removes resize observer for chart and inits table
|
|
865
1023
|
this.activateTable = (event) => {
|
|
866
1024
|
this.closeTooltip();
|
|
867
1025
|
this.barChartObserver.disconnect();
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
870
|
-
select(this.
|
|
871
|
-
select(this._host).select('.chartButton').style('display', null);
|
|
1026
|
+
this.status.innerHTML = '<p>Visas som tabell</p>';
|
|
1027
|
+
select(this.host).select('.tableButton').style('display', 'none');
|
|
1028
|
+
select(this.host).select('.chartButton').style('display', null);
|
|
872
1029
|
event.target.nextSibling.lastChild.focus();
|
|
873
1030
|
const duration = 150;
|
|
874
|
-
this.
|
|
1031
|
+
this.svg
|
|
875
1032
|
.attr('opacity', 1)
|
|
876
1033
|
.transition('fadeout')
|
|
877
1034
|
.duration(duration)
|
|
878
1035
|
.attr('opacity', 0)
|
|
879
1036
|
.on('end', () => {
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
882
|
-
this.
|
|
1037
|
+
this.svg.remove();
|
|
1038
|
+
select(this.legendDiv).select('.legend').selectAll('.legendChip').remove();
|
|
1039
|
+
this.legendDiv.style['display'] = 'none';
|
|
1040
|
+
this.tableDiv.style['display'] = 'block';
|
|
883
1041
|
this.setTableContent();
|
|
884
1042
|
this.setTableDimensions();
|
|
885
|
-
select(this.
|
|
1043
|
+
select(this.tableDiv)
|
|
886
1044
|
.style('opacity', 0)
|
|
887
1045
|
.transition('fadein')
|
|
888
1046
|
.duration(duration)
|
|
889
1047
|
.style('opacity', 1);
|
|
1048
|
+
this.chartDiv.style['display'] = 'none';
|
|
890
1049
|
});
|
|
891
|
-
select(this.
|
|
1050
|
+
select(this.legendDiv)
|
|
892
1051
|
.style('opacity', 1)
|
|
893
1052
|
.transition('fadeout')
|
|
894
1053
|
.duration(duration)
|
|
@@ -896,12 +1055,12 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
896
1055
|
};
|
|
897
1056
|
// Removes observer and calls init functions for line chart
|
|
898
1057
|
this.reInitChart = (event) => {
|
|
899
|
-
this.
|
|
900
|
-
this.
|
|
901
|
-
select(this.
|
|
902
|
-
select(this._host).select('.chartButton').style('display', 'none');
|
|
1058
|
+
this.status.innerHTML = '<p>Visas som diagram</p>';
|
|
1059
|
+
select(this.host).select('.tableButton').style('display', null);
|
|
1060
|
+
select(this.host).select('.chartButton').style('display', 'none');
|
|
903
1061
|
event.target.previousSibling.lastChild.focus();
|
|
904
|
-
const table = select(this.
|
|
1062
|
+
const table = select(this.tableDiv);
|
|
1063
|
+
const duration = 150;
|
|
905
1064
|
table
|
|
906
1065
|
.style('opacity', 1)
|
|
907
1066
|
.transition()
|
|
@@ -909,12 +1068,19 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
909
1068
|
.style('opacity', 0)
|
|
910
1069
|
.on('end', () => {
|
|
911
1070
|
table.style('display', 'none');
|
|
1071
|
+
this.chartDiv.style['display'] = 'flex';
|
|
1072
|
+
this.legendDiv.style['display'] = 'grid';
|
|
912
1073
|
this.initChain();
|
|
913
|
-
this.
|
|
1074
|
+
this.svg
|
|
914
1075
|
.attr('opacity', 0)
|
|
915
1076
|
.transition()
|
|
916
|
-
.duration(
|
|
1077
|
+
.duration(duration)
|
|
917
1078
|
.attr('opacity', 1);
|
|
1079
|
+
select(this.legendDiv)
|
|
1080
|
+
.style('opacity', 0)
|
|
1081
|
+
.transition('fadeout')
|
|
1082
|
+
.duration(duration)
|
|
1083
|
+
.style('opacity', 1);
|
|
918
1084
|
});
|
|
919
1085
|
};
|
|
920
1086
|
this.afVariation = BarChartVariation.Vertical;
|
|
@@ -924,9 +1090,10 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
924
1090
|
}
|
|
925
1091
|
afChartDataUpdate(data) {
|
|
926
1092
|
if (typeof data != 'string')
|
|
927
|
-
this.
|
|
1093
|
+
this.chartData = data;
|
|
928
1094
|
else
|
|
929
|
-
this.
|
|
1095
|
+
this.chartData = JSON.parse(data);
|
|
1096
|
+
this.series = this.chartData.data.series.map(serie => serie.title);
|
|
930
1097
|
this.mappedData = this.reshapeData();
|
|
931
1098
|
// checking for width of each tick
|
|
932
1099
|
this.mappedData.forEach((elem) => {
|
|
@@ -939,69 +1106,113 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
939
1106
|
initSvg() {
|
|
940
1107
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
941
1108
|
// Fetch number formatting
|
|
942
|
-
this.
|
|
943
|
-
maximumSignificantDigits: (_c = (_b = (_a = this.
|
|
944
|
-
notation: ((_f = (_e = (_d = this.
|
|
1109
|
+
this.numberFormat = {
|
|
1110
|
+
maximumSignificantDigits: (_c = (_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.labelProperties) === null || _c === void 0 ? void 0 : _c.significantDigits,
|
|
1111
|
+
notation: ((_f = (_e = (_d = this.chartData) === null || _d === void 0 ? void 0 : _d.meta) === null || _e === void 0 ? void 0 : _e.labelProperties) === null || _f === void 0 ? void 0 : _f.shortHand)
|
|
945
1112
|
? 'compact'
|
|
946
1113
|
: 'standard'
|
|
947
1114
|
};
|
|
948
|
-
select(this.
|
|
949
|
-
this.
|
|
1115
|
+
select(this.chartDiv).select('.chartSVG').remove();
|
|
1116
|
+
this.maxHeight = (_g = select(this.host)
|
|
950
1117
|
.node()
|
|
951
1118
|
.parentNode) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().height;
|
|
952
|
-
this.barChartObserver.observe(this.
|
|
1119
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
953
1120
|
// Getting rem-size
|
|
954
|
-
this.
|
|
955
|
-
this.setMinMax();
|
|
1121
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
956
1122
|
this.setDims();
|
|
1123
|
+
this.setMinMax();
|
|
957
1124
|
this.setMargins();
|
|
958
1125
|
// Appending svg
|
|
959
|
-
this.
|
|
1126
|
+
this.svg = select(this.chartDiv)
|
|
960
1127
|
.append('svg')
|
|
1128
|
+
.attr('class', 'chartSVG')
|
|
961
1129
|
.attr('aria-hidden', true)
|
|
962
1130
|
.attr('role', 'img')
|
|
963
|
-
.attr('aria-label', this.
|
|
964
|
-
? 'Stapeldiagram om ' + this.
|
|
965
|
-
: 'Stapeldiagram')
|
|
966
|
-
|
|
1131
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1132
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1133
|
+
: 'Stapeldiagram')
|
|
1134
|
+
.attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
|
|
1135
|
+
}
|
|
1136
|
+
initLegend() {
|
|
1137
|
+
const rectSize = 18;
|
|
1138
|
+
const legendData = this.chartData.data.series.map(serie => serie.title);
|
|
1139
|
+
if (this.chartData.data.averageLine)
|
|
1140
|
+
legendData.push(this.chartData.data.averageLine.text);
|
|
1141
|
+
const legendChips = select(this.legendDiv).select('.legend')
|
|
1142
|
+
.style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
|
|
1143
|
+
.selectAll('.legendChip')
|
|
1144
|
+
.data(legendData)
|
|
1145
|
+
.join('div')
|
|
1146
|
+
.attr('class', 'legendChip')
|
|
1147
|
+
.style('display', 'flex')
|
|
1148
|
+
.style('flex-direction', 'row')
|
|
1149
|
+
.style('align-items', 'center')
|
|
1150
|
+
.style('gap', '0.25rem')
|
|
1151
|
+
.style('cursor', 'default')
|
|
1152
|
+
.on('mouseenter', (_event, serie) => this.highlightBars(serie))
|
|
1153
|
+
.on('mouseleave', this.resetBarColor);
|
|
1154
|
+
legendChips.append('svg')
|
|
1155
|
+
.attr('width', rectSize)
|
|
1156
|
+
.attr('height', rectSize)
|
|
1157
|
+
.append('rect')
|
|
1158
|
+
.attr('x', 0)
|
|
1159
|
+
.attr('y', 0)
|
|
1160
|
+
.attr('width', rectSize)
|
|
1161
|
+
.attr('height', rectSize)
|
|
1162
|
+
.attr('rx', 4)
|
|
1163
|
+
.attr('ry', 4)
|
|
1164
|
+
.attr('fill', (title) => this.colorFunction(title));
|
|
1165
|
+
legendChips.append('span').style('text-wrap', 'nowrap').text((d) => d);
|
|
1166
|
+
if (this.chartData.data.averageLine) {
|
|
1167
|
+
const averageLine = legendChips.filter(':last-child')
|
|
1168
|
+
.on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
|
|
1169
|
+
const miniSVG = averageLine
|
|
1170
|
+
.select('svg')
|
|
1171
|
+
.attr('width', rectSize * 2);
|
|
1172
|
+
miniSVG.select('rect').remove();
|
|
1173
|
+
miniSVG.append('line')
|
|
1174
|
+
.attr('x1', 1)
|
|
1175
|
+
.attr('x2', rectSize * 2 - 1)
|
|
1176
|
+
.attr('y1', rectSize / 2 + 1)
|
|
1177
|
+
.attr('y2', rectSize / 2 + 1)
|
|
1178
|
+
.attr('stroke', 'var(--digi--color--infographic--lineart)')
|
|
1179
|
+
.attr('stroke-linecap', 'round')
|
|
1180
|
+
.attr('stroke-dasharray', '12, 7');
|
|
1181
|
+
}
|
|
967
1182
|
}
|
|
968
1183
|
initToolTip() {
|
|
969
1184
|
// Getting handle for tooltip
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
972
|
-
this._tooltipHeading =
|
|
973
|
-
'h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1); // increment heading level by one
|
|
1185
|
+
this.tooltip = select('#' + this.afId);
|
|
1186
|
+
this.tooltip.select('.close').on('click', this.closeTooltip);
|
|
974
1187
|
// Add heading placeholder for heading
|
|
975
|
-
this.
|
|
976
|
-
.
|
|
977
|
-
.
|
|
1188
|
+
this.tooltip
|
|
1189
|
+
.select('.tooltipHead')
|
|
1190
|
+
.insert('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1), ':first-child') // increment heading level by one
|
|
978
1191
|
.attr('class', 'tooltipHeading') // Adding class to try to dodge global css classes
|
|
979
1192
|
.style('font-size', '1rem')
|
|
980
|
-
.style('margin', '0 0.75rem')
|
|
1193
|
+
.style('margin', '0 0.75rem 0.5rem 0 ')
|
|
981
1194
|
.style('font-weight', '500');
|
|
1195
|
+
this.tooltip.style('visibility', 'hidden');
|
|
982
1196
|
}
|
|
983
1197
|
initEmpty() {
|
|
984
|
-
select(this.
|
|
985
|
-
this.
|
|
1198
|
+
select(this.chartDiv).select('svg').remove();
|
|
1199
|
+
this.maxHeight = select(this.host)
|
|
986
1200
|
.node()
|
|
987
1201
|
.parentNode.getBoundingClientRect().height;
|
|
988
|
-
this.barChartObserver.observe(this.
|
|
1202
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
989
1203
|
// Getting rem-size
|
|
990
|
-
this.
|
|
991
|
-
//this.setMinMax();
|
|
992
|
-
this.setDims();
|
|
1204
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
993
1205
|
this.setMargins();
|
|
994
1206
|
// Appending svg
|
|
995
|
-
this.
|
|
1207
|
+
this.svg = select(this.chartDiv)
|
|
996
1208
|
.append('svg')
|
|
997
1209
|
.attr('aria-hidden', true)
|
|
998
1210
|
.attr('role', 'img')
|
|
999
|
-
.attr('aria-label', this.
|
|
1000
|
-
? 'Stapeldiagram om ' + this.
|
|
1211
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1212
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1001
1213
|
: 'Stapeldiagram');
|
|
1002
|
-
this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
|
|
1003
1214
|
// Hide unusable components
|
|
1004
|
-
select(this.
|
|
1215
|
+
select(this.titleDiv)
|
|
1005
1216
|
.select(this.afHeadingLevel)
|
|
1006
1217
|
.html(`${_t.loading}...`);
|
|
1007
1218
|
this.initYAxis(true);
|
|
@@ -1009,62 +1220,60 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1009
1220
|
this.loadingState(true);
|
|
1010
1221
|
}
|
|
1011
1222
|
loadingState(empty) {
|
|
1012
|
-
this.
|
|
1223
|
+
this.loading = true;
|
|
1013
1224
|
// close potentially open tooltip
|
|
1014
|
-
if (this.
|
|
1225
|
+
if (this.tooltip)
|
|
1015
1226
|
this.closeTooltip();
|
|
1016
|
-
select(this.
|
|
1227
|
+
select(this.host).select('.tableButton').style('display', 'none');
|
|
1017
1228
|
const newHeight = this.setDims();
|
|
1018
1229
|
this.transitionTitle();
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1230
|
+
this.xAxisHandle.selectAll('.tick').remove();
|
|
1231
|
+
this.xAxisHandle.select('path').remove();
|
|
1232
|
+
this.svg
|
|
1022
1233
|
.transition()
|
|
1023
1234
|
.duration(400)
|
|
1024
|
-
.attr('
|
|
1025
|
-
|
|
1026
|
-
.attr('aria-label', this._chartData && this._chartData.title
|
|
1027
|
-
? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
|
|
1235
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1236
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1028
1237
|
: 'Stapeldiagram');
|
|
1029
1238
|
this.setMargins(true);
|
|
1030
|
-
select(this.
|
|
1239
|
+
select(this.titleDiv)
|
|
1031
1240
|
.select(this.afHeadingLevel)
|
|
1032
1241
|
.html(`${_t.loading}...`);
|
|
1033
1242
|
// Waiting with observing for changes until transition to regular bars is complete
|
|
1034
|
-
this.
|
|
1243
|
+
this.barChartContainer
|
|
1035
1244
|
.transition('position')
|
|
1036
1245
|
.duration(this.defaultDuration)
|
|
1037
1246
|
.ease(polyInOut)
|
|
1038
|
-
.attr('transform', `translate(${this.
|
|
1247
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1039
1248
|
// If there is a new height
|
|
1040
1249
|
if (newHeight) {
|
|
1041
1250
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1042
1251
|
this.afVariation === BarChartVariation.Horizontal
|
|
1043
|
-
? this.
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1252
|
+
? this.yScale.range([
|
|
1253
|
+
this.margin.top,
|
|
1254
|
+
this.dims.height - this.margin.bottom
|
|
1046
1255
|
])
|
|
1047
|
-
: this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1256
|
+
: this.yScale.range([
|
|
1257
|
+
this.dims.height - this.margin.bottom,
|
|
1258
|
+
this.margin.top
|
|
1050
1259
|
]);
|
|
1051
|
-
this.
|
|
1260
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1052
1261
|
}
|
|
1053
1262
|
const animateBars = () => {
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1263
|
+
this.barChartContainer.selectAll('.barGroup').remove();
|
|
1264
|
+
this.barSelection = this.barChartContainer
|
|
1056
1265
|
.selectAll('barGroup')
|
|
1057
1266
|
.data(this.mappedData)
|
|
1058
1267
|
.join('g')
|
|
1059
1268
|
.attr('class', 'barGroup')
|
|
1060
|
-
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '
|
|
1269
|
+
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''))
|
|
1061
1270
|
.append('rect')
|
|
1062
1271
|
.attr('class', 'bar')
|
|
1063
1272
|
.style('cursor', 'pointer');
|
|
1064
|
-
this.
|
|
1273
|
+
this.barSelection
|
|
1065
1274
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1066
|
-
? this.
|
|
1067
|
-
: this.
|
|
1275
|
+
? this.yScale(d.key)
|
|
1276
|
+
: this.dims.height - this.margin.bottom)
|
|
1068
1277
|
.attr('x', this.xFunction)
|
|
1069
1278
|
.attr('ry', 4)
|
|
1070
1279
|
.attr('rx', 4)
|
|
@@ -1076,29 +1285,29 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1076
1285
|
.delay((...[, i]) => i * 150)
|
|
1077
1286
|
.attr('y', this.yFunction)
|
|
1078
1287
|
.attr('height', this.heightFunction);
|
|
1079
|
-
this.
|
|
1288
|
+
this.barSelection
|
|
1080
1289
|
.transition()
|
|
1081
1290
|
.duration(400)
|
|
1082
1291
|
.ease(linear$1)
|
|
1083
1292
|
.delay((...[, i]) => i * 150 + 400)
|
|
1084
1293
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1085
|
-
? this.
|
|
1086
|
-
: this.
|
|
1294
|
+
? this.yScale(d.key)
|
|
1295
|
+
: this.dims.height - this.margin.bottom)
|
|
1087
1296
|
.attr('height', () => 0)
|
|
1088
1297
|
.on('end', (...[, i]) => {
|
|
1089
|
-
if (i === this.
|
|
1298
|
+
if (i === this.placeholderTicks.length - 1)
|
|
1090
1299
|
animateBars();
|
|
1091
1300
|
});
|
|
1092
1301
|
};
|
|
1093
1302
|
const flattenBars = () => {
|
|
1094
|
-
this.
|
|
1303
|
+
this.barChartContainer
|
|
1095
1304
|
.selectAll('rect')
|
|
1096
1305
|
.transition()
|
|
1097
1306
|
.duration(200)
|
|
1098
1307
|
.ease(linear$1)
|
|
1099
1308
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1100
|
-
? this.
|
|
1101
|
-
: this.
|
|
1309
|
+
? this.yScale(d.key)
|
|
1310
|
+
: this.dims.height - this.margin.bottom)
|
|
1102
1311
|
.attr('height', () => 0)
|
|
1103
1312
|
.on('end', (...[, i]) => {
|
|
1104
1313
|
if (i != 0)
|
|
@@ -1106,7 +1315,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1106
1315
|
this.setYScale(true);
|
|
1107
1316
|
this.setValueTicks();
|
|
1108
1317
|
this.setXScale(true);
|
|
1109
|
-
this.barChartObserver.observe(this.
|
|
1318
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
1110
1319
|
animateBars();
|
|
1111
1320
|
});
|
|
1112
1321
|
};
|
|
@@ -1116,20 +1325,20 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1116
1325
|
flattenBars();
|
|
1117
1326
|
}
|
|
1118
1327
|
transitionTitle() {
|
|
1119
|
-
const height = select(this.
|
|
1120
|
-
select(this.
|
|
1121
|
-
.style('height', this.
|
|
1328
|
+
const height = select(this.titleDiv).style('height');
|
|
1329
|
+
select(this.titleDiv)
|
|
1330
|
+
.style('height', this.prevHeight)
|
|
1122
1331
|
.transition('adjust')
|
|
1123
1332
|
.duration(400)
|
|
1124
1333
|
.style('height', height)
|
|
1125
|
-
.on('end', () => select(this.
|
|
1334
|
+
.on('end', () => select(this.titleDiv).style('height', null));
|
|
1126
1335
|
}
|
|
1127
1336
|
initYAxis(empty) {
|
|
1128
1337
|
this.setYScale(empty);
|
|
1129
|
-
this.
|
|
1338
|
+
this.barChartContainer = this.svg
|
|
1130
1339
|
.append('g')
|
|
1131
|
-
.attr('transform', `translate(${this.
|
|
1132
|
-
this.
|
|
1340
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1341
|
+
this.yAxisHandle = this.barChartContainer.append('g');
|
|
1133
1342
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
1134
1343
|
this.tickSizes();
|
|
1135
1344
|
this.setNamedTicks();
|
|
@@ -1141,31 +1350,31 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1141
1350
|
// Sets the largest and smallest value from series 0, Should only be used when not loading
|
|
1142
1351
|
setMinMax() {
|
|
1143
1352
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1144
|
-
const max$1 = max((_a = this.
|
|
1145
|
-
? max((_b = this.
|
|
1353
|
+
const max$1 = max((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
|
|
1354
|
+
? max((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
|
|
1146
1355
|
: 0;
|
|
1147
|
-
const min$1 = min([0, min((_c = this.
|
|
1148
|
-
? min([0, min((_d = this.
|
|
1356
|
+
const min$1 = min([0, min((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
|
|
1357
|
+
? min([0, min((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
|
|
1149
1358
|
: 0;
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1153
|
-
.domain([this.
|
|
1154
|
-
.nice(((_f = (_e = this.
|
|
1155
|
-
? (_g = this.
|
|
1359
|
+
this.maxVal = max$1;
|
|
1360
|
+
this.minVal = min$1;
|
|
1361
|
+
this.tempScale = linear()
|
|
1362
|
+
.domain([this.minVal, this.maxVal])
|
|
1363
|
+
.nice(((_f = (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
|
|
1364
|
+
? (_g = this.chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
|
|
1156
1365
|
: 3)
|
|
1157
1366
|
.domain();
|
|
1158
1367
|
}
|
|
1159
1368
|
// Setting up x-axis, getting margin.right in this function
|
|
1160
1369
|
initXAxis(empty) {
|
|
1161
1370
|
this.setXScale(empty);
|
|
1162
|
-
this.
|
|
1371
|
+
this.xAxisHandle = this.barChartContainer
|
|
1163
1372
|
.append('g')
|
|
1164
|
-
.attr('transform', `translate(0,${this.
|
|
1373
|
+
.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1165
1374
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
1166
1375
|
this.setValueTicks();
|
|
1167
1376
|
// Removing first tick, because it aligns with y-axis domain
|
|
1168
|
-
//this.
|
|
1377
|
+
//this.xAxisHandle.select('.tick').select('line').remove();
|
|
1169
1378
|
}
|
|
1170
1379
|
else {
|
|
1171
1380
|
if (!empty) {
|
|
@@ -1177,15 +1386,16 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1177
1386
|
}
|
|
1178
1387
|
// Initializing bars, can only handle one series of bars for now
|
|
1179
1388
|
initBars() {
|
|
1180
|
-
this.
|
|
1389
|
+
this.barSelection = this.barChartContainer
|
|
1390
|
+
.append('g')
|
|
1391
|
+
.attr('class', 'interactiveElements')
|
|
1392
|
+
.style('isolation', 'isolate')
|
|
1181
1393
|
.selectAll('barGroup')
|
|
1182
1394
|
.data(this.mappedData)
|
|
1183
1395
|
.join('g')
|
|
1184
1396
|
.attr('class', 'barGroup')
|
|
1185
|
-
.attr('id', (d) =>
|
|
1186
|
-
|
|
1187
|
-
});
|
|
1188
|
-
this._barSelection.selectAll('.barGroup')
|
|
1397
|
+
.attr('id', (d) => this.barGroupID(d.key));
|
|
1398
|
+
this.barSelection.selectAll('.barGroup')
|
|
1189
1399
|
.data((d) => {
|
|
1190
1400
|
return d.series;
|
|
1191
1401
|
})
|
|
@@ -1205,53 +1415,55 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1205
1415
|
}
|
|
1206
1416
|
initBarText() {
|
|
1207
1417
|
var _a, _b;
|
|
1208
|
-
if (!((_b = (_a = this.
|
|
1418
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
1209
1419
|
return;
|
|
1210
|
-
this.
|
|
1420
|
+
this.textSelection = this.barChartContainer
|
|
1211
1421
|
.selectAll('.barGroup')
|
|
1212
1422
|
.append('text');
|
|
1213
|
-
this.
|
|
1423
|
+
this.textSelection
|
|
1214
1424
|
.text((d) => {
|
|
1215
|
-
return d.value ? d.value.toLocaleString(undefined, this.
|
|
1425
|
+
return d.value ? d.value.toLocaleString(undefined, this.numberFormat) : undefined;
|
|
1216
1426
|
})
|
|
1217
1427
|
.attr('class', 'barText')
|
|
1218
1428
|
.attr('font-size', this.fontSize)
|
|
1219
1429
|
.attr('font-weight', '600')
|
|
1220
1430
|
.attr('text-anchor', 'end')
|
|
1221
1431
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1222
|
-
? this.
|
|
1223
|
-
: this.
|
|
1432
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
1433
|
+
: this.yScale(d.value))
|
|
1224
1434
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1225
|
-
? this.
|
|
1226
|
-
: this.
|
|
1435
|
+
? this.xScale(d)
|
|
1436
|
+
: this.xScale(d.key) + this.xScale.bandwidth())
|
|
1227
1437
|
.attr('dy', () => this.afVariation == BarChartVariation.Horizontal ? '0.35em' : '-0.25em')
|
|
1228
1438
|
.style('pointer-events', 'none')
|
|
1229
|
-
.style('display', () => { var _a, _b; return ((_b = (_a = this.
|
|
1439
|
+
.style('display', () => { var _a, _b; return ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels) ? null : 'none'; });
|
|
1230
1440
|
this.adjustBarText();
|
|
1231
1441
|
}
|
|
1232
1442
|
initChain() {
|
|
1233
1443
|
this.initSvg();
|
|
1444
|
+
this.initLegend();
|
|
1234
1445
|
this.initToolTip();
|
|
1235
1446
|
this.initYAxis();
|
|
1236
1447
|
this.initXAxis();
|
|
1237
1448
|
this.initBars();
|
|
1449
|
+
this.averageLine();
|
|
1238
1450
|
this.initBarText();
|
|
1239
1451
|
}
|
|
1240
1452
|
async updateChain() {
|
|
1241
1453
|
var _a, _b, _c, _d, _e, _f;
|
|
1242
1454
|
// Fetch number formatting
|
|
1243
|
-
this.
|
|
1244
|
-
maximumSignificantDigits: (_c = (_b = (_a = this.
|
|
1245
|
-
notation: ((_f = (_e = (_d = this.
|
|
1455
|
+
this.numberFormat = {
|
|
1456
|
+
maximumSignificantDigits: (_c = (_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.labelProperties) === null || _c === void 0 ? void 0 : _c.significantDigits,
|
|
1457
|
+
notation: ((_f = (_e = (_d = this.chartData) === null || _d === void 0 ? void 0 : _d.meta) === null || _e === void 0 ? void 0 : _e.labelProperties) === null || _f === void 0 ? void 0 : _f.shortHand)
|
|
1246
1458
|
? 'compact'
|
|
1247
1459
|
: 'standard'
|
|
1248
1460
|
};
|
|
1249
|
-
if (this.
|
|
1461
|
+
if (this.tooltip)
|
|
1250
1462
|
this.closeTooltip();
|
|
1251
1463
|
// Check whether we are in table mode or not
|
|
1252
|
-
if (this.
|
|
1253
|
-
if (!this.
|
|
1254
|
-
select(this.
|
|
1464
|
+
if (this.tableDiv.style['display'] == 'block') {
|
|
1465
|
+
if (!this.chartData.title) {
|
|
1466
|
+
select(this.titleDiv)
|
|
1255
1467
|
.select(this.afHeadingLevel)
|
|
1256
1468
|
.html(`${_t.loading}...`);
|
|
1257
1469
|
}
|
|
@@ -1263,9 +1475,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1263
1475
|
}
|
|
1264
1476
|
else {
|
|
1265
1477
|
// displaying legend again
|
|
1266
|
-
if (this.
|
|
1267
|
-
select(this.
|
|
1268
|
-
select(this.
|
|
1478
|
+
if (this.loading) {
|
|
1479
|
+
select(this.host).select('.tableButton').style('display', null);
|
|
1480
|
+
select(this.legendDiv).style('display', null);
|
|
1269
1481
|
this.initToolTip();
|
|
1270
1482
|
}
|
|
1271
1483
|
// Disconnect resize observer while adjusting things
|
|
@@ -1273,73 +1485,69 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1273
1485
|
this.setMinMax();
|
|
1274
1486
|
const newHeight = this.setDims();
|
|
1275
1487
|
this.transitionTitle();
|
|
1276
|
-
this.
|
|
1277
|
-
.
|
|
1278
|
-
.
|
|
1279
|
-
.attr('width', this._dims.width)
|
|
1280
|
-
.attr('height', this._dims.height)
|
|
1281
|
-
.attr('aria-label', this._chartData && this._chartData.title
|
|
1282
|
-
? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
|
|
1488
|
+
this.svg
|
|
1489
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1490
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1283
1491
|
: 'Stapeldiagram');
|
|
1284
1492
|
this.setMargins();
|
|
1285
1493
|
// Waiting with observing for changes until transition to regular bars is complete
|
|
1286
|
-
this.
|
|
1494
|
+
this.barChartContainer
|
|
1287
1495
|
.transition('position')
|
|
1288
1496
|
.duration(this.defaultDuration)
|
|
1289
1497
|
.ease(polyInOut)
|
|
1290
|
-
.attr('transform', `translate(${this.
|
|
1291
|
-
if (!this.
|
|
1292
|
-
this.
|
|
1498
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1499
|
+
if (!this.loading)
|
|
1500
|
+
this.barChartContainer.on('end', () => this.barChartObserver.observe(this.chartDiv));
|
|
1293
1501
|
// If there is a new height
|
|
1294
1502
|
if (newHeight) {
|
|
1295
1503
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1296
1504
|
this.afVariation === BarChartVariation.Horizontal
|
|
1297
|
-
? this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1505
|
+
? this.yScale.range([
|
|
1506
|
+
this.margin.top,
|
|
1507
|
+
this.dims.height - this.margin.bottom
|
|
1300
1508
|
])
|
|
1301
|
-
: this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1509
|
+
: this.yScale.range([
|
|
1510
|
+
this.dims.height - this.margin.bottom,
|
|
1511
|
+
this.margin.top
|
|
1304
1512
|
]);
|
|
1305
|
-
this.
|
|
1513
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1306
1514
|
}
|
|
1307
1515
|
this.tickSizes();
|
|
1308
1516
|
this.setYScale();
|
|
1309
1517
|
this.setXScale();
|
|
1310
1518
|
this.setTickInteraction();
|
|
1311
|
-
this.
|
|
1312
|
-
? this.
|
|
1313
|
-
: this.
|
|
1519
|
+
this.tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
|
|
1520
|
+
? this.xScale.ticks().map((tick) => tick.toLocaleString())
|
|
1521
|
+
: this.yScale.ticks().map((tick) => tick.toLocaleString()));
|
|
1314
1522
|
this.setValueTicks(true);
|
|
1315
|
-
if (this.
|
|
1316
|
-
select(this.
|
|
1523
|
+
if (this.loading) {
|
|
1524
|
+
select(this.legendDiv)
|
|
1317
1525
|
.style('opacity', 0)
|
|
1318
1526
|
.transition()
|
|
1319
1527
|
.duration(400)
|
|
1320
1528
|
.ease(polyInOut)
|
|
1321
1529
|
.style('opacity', 1);
|
|
1322
|
-
this.
|
|
1323
|
-
this.getTextSize(this.
|
|
1530
|
+
this.margin.right =
|
|
1531
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
1324
1532
|
this.yTickSize +
|
|
1325
1533
|
this.tickPadding;
|
|
1326
1534
|
// Update x-axis with new width
|
|
1327
|
-
this.
|
|
1535
|
+
this.xScale.range([
|
|
1328
1536
|
0,
|
|
1329
|
-
this.
|
|
1537
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
1330
1538
|
]);
|
|
1331
1539
|
this.setNamedTicks(true);
|
|
1332
1540
|
// Stop animation
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1541
|
+
this.barSelection.selectAll('.barGroup').on('end', null);
|
|
1542
|
+
this.loading = false;
|
|
1543
|
+
this.barSelection
|
|
1336
1544
|
.transition()
|
|
1337
1545
|
.duration(this.defaultDuration)
|
|
1338
1546
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1339
|
-
? this.
|
|
1340
|
-
: this.
|
|
1547
|
+
? this.yScale(d.key)
|
|
1548
|
+
: this.dims.height - this.margin.bottom)
|
|
1341
1549
|
.attr('height', () => 0)
|
|
1342
|
-
.on('end', (...[, i]) => i === this.
|
|
1550
|
+
.on('end', (...[, i]) => i === this.placeholderTicks.length - 1
|
|
1343
1551
|
? this.updateBars(true)
|
|
1344
1552
|
: null);
|
|
1345
1553
|
this.setTickInteraction();
|
|
@@ -1353,52 +1561,58 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1353
1561
|
}
|
|
1354
1562
|
// Getting correct color given index or name of data serie
|
|
1355
1563
|
colorFunction(input) {
|
|
1356
|
-
|
|
1357
|
-
|
|
1564
|
+
var _a;
|
|
1565
|
+
if (typeof input === 'number') {
|
|
1566
|
+
return this.evalColorVar(this.colorPalettes[input]);
|
|
1567
|
+
}
|
|
1358
1568
|
else {
|
|
1359
|
-
const index = this.
|
|
1360
|
-
if (index > 0)
|
|
1361
|
-
|
|
1569
|
+
const index = this.chartData.data.series.findIndex((serie) => serie.title === input);
|
|
1570
|
+
if (index > 0) {
|
|
1571
|
+
if ((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern)
|
|
1572
|
+
return 'url(#prognosis)';
|
|
1573
|
+
else
|
|
1574
|
+
return this.evalColorVar(this.colorPalettes[index]);
|
|
1575
|
+
}
|
|
1362
1576
|
else
|
|
1363
|
-
return
|
|
1577
|
+
return this.evalColorVar(this.colorPalettes[0]);
|
|
1364
1578
|
}
|
|
1365
1579
|
}
|
|
1366
1580
|
// Resizing bar chart
|
|
1367
1581
|
resize() {
|
|
1368
|
-
var _a;
|
|
1369
1582
|
const newHeight = this.setDims();
|
|
1370
|
-
this.setMargins();
|
|
1371
|
-
|
|
1372
|
-
this.
|
|
1373
|
-
|
|
1374
|
-
this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
|
|
1583
|
+
//this.setMargins();
|
|
1584
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1585
|
+
this.margin.right =
|
|
1586
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
1375
1587
|
this.yTickSize +
|
|
1376
1588
|
this.tickPadding;
|
|
1377
1589
|
// If there is a new height
|
|
1378
1590
|
if (newHeight) {
|
|
1379
1591
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1380
1592
|
this.afVariation === BarChartVariation.Horizontal
|
|
1381
|
-
? this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1593
|
+
? this.yScale.range([
|
|
1594
|
+
this.margin.top,
|
|
1595
|
+
this.dims.height - this.margin.bottom
|
|
1384
1596
|
])
|
|
1385
|
-
: this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1597
|
+
: this.yScale.range([
|
|
1598
|
+
this.dims.height - this.margin.bottom,
|
|
1599
|
+
this.margin.top
|
|
1388
1600
|
]);
|
|
1389
|
-
this.
|
|
1601
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1390
1602
|
}
|
|
1391
1603
|
// Update x-axis with new width
|
|
1392
|
-
this.
|
|
1604
|
+
this.xScale.range([
|
|
1393
1605
|
0,
|
|
1394
|
-
this.
|
|
1606
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
1395
1607
|
]);
|
|
1396
1608
|
this.setNamedTicks();
|
|
1397
1609
|
this.setValueTicks();
|
|
1610
|
+
this.setTickInteraction();
|
|
1611
|
+
this.averageLine();
|
|
1398
1612
|
this.adjustBarSize();
|
|
1399
1613
|
this.adjustBarText();
|
|
1400
|
-
if (this.
|
|
1401
|
-
this.positionTooltip(this.
|
|
1614
|
+
if (this.tooltip.style('visibility') !== 'hidden')
|
|
1615
|
+
this.positionTooltip(this.tooltipData);
|
|
1402
1616
|
}
|
|
1403
1617
|
// Returns the longest text from an array of strings
|
|
1404
1618
|
getLargestText(array) {
|
|
@@ -1411,30 +1625,33 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1411
1625
|
});
|
|
1412
1626
|
return width;
|
|
1413
1627
|
}
|
|
1628
|
+
adjustColor(color, amount) {
|
|
1629
|
+
return '#' + color.replace(/^#/, '').replace(/../g, color => ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));
|
|
1630
|
+
}
|
|
1414
1631
|
componentWillLoad() {
|
|
1415
1632
|
this.afChartDataUpdate(this.afChartData);
|
|
1416
1633
|
}
|
|
1417
1634
|
componentDidLoad() {
|
|
1418
|
-
if (!this.
|
|
1419
|
-
this.
|
|
1635
|
+
if (!this.chartData || Object.keys(this.chartData).length === 0) {
|
|
1636
|
+
this.loading = true;
|
|
1420
1637
|
return this.initEmpty();
|
|
1421
1638
|
}
|
|
1422
1639
|
this.initChain();
|
|
1423
1640
|
document.fonts.ready.then(() => {
|
|
1424
1641
|
this.recomputeTextSize();
|
|
1425
1642
|
this.setNamedTicks();
|
|
1426
|
-
this.
|
|
1643
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1427
1644
|
});
|
|
1428
1645
|
}
|
|
1429
1646
|
disconnectedCallback() {
|
|
1430
1647
|
this.barChartObserver.disconnect();
|
|
1431
1648
|
}
|
|
1432
1649
|
componentWillUpdate() {
|
|
1433
|
-
this.
|
|
1650
|
+
this.prevHeight = select(this.titleDiv).style('height');
|
|
1434
1651
|
}
|
|
1435
1652
|
componentDidUpdate() {
|
|
1436
|
-
if (this.
|
|
1437
|
-
Object.keys(this.
|
|
1653
|
+
if (this.tableDiv.style['display'] != 'block' &&
|
|
1654
|
+
Object.keys(this.chartData).length === 0) {
|
|
1438
1655
|
// Disconnect old barchartobserver while doing resizing
|
|
1439
1656
|
this.barChartObserver.disconnect();
|
|
1440
1657
|
return this.loadingState();
|
|
@@ -1451,7 +1668,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1451
1668
|
// Returns pixelwidth of text given the current fontSize (costly function using .each)
|
|
1452
1669
|
getTextSize(text) {
|
|
1453
1670
|
const textWidth = [];
|
|
1454
|
-
const svg = select(this.
|
|
1671
|
+
const svg = select(this.chartDiv).append('svg');
|
|
1455
1672
|
svg
|
|
1456
1673
|
.selectAll('dummyText')
|
|
1457
1674
|
.data([text])
|
|
@@ -1466,21 +1683,18 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1466
1683
|
svg.remove().exit();
|
|
1467
1684
|
return textWidth[0];
|
|
1468
1685
|
}
|
|
1469
|
-
// Setting table content from this.
|
|
1686
|
+
// Setting table content from this.chartData
|
|
1470
1687
|
setTableContent() {
|
|
1471
|
-
this.
|
|
1688
|
+
this.tableDiv.innerHTML = `<digi-table af-size="small" style="width:100%" af-variation="primary"> <table><caption>${this.chartData.title}</caption><thead><tr>${this.headings()}</tr></thead><tbody>${this.tableBody()}</tbody></table></digi-table>`;
|
|
1472
1689
|
}
|
|
1473
1690
|
setTableDimensions() {
|
|
1474
|
-
const table = select(this.
|
|
1475
|
-
table
|
|
1476
|
-
// The last value is for compensating the padding set on the table element, changing padding in css, will need change in these two lines
|
|
1477
|
-
.style('height', this._dims.height + 'px');
|
|
1478
|
-
table.style('width', this._dims.width - this._rem * 0.65 + 'px');
|
|
1691
|
+
const table = select(this.tableDiv);
|
|
1692
|
+
table.style('display', 'flex').style('height', '100%').style('width', '100%');
|
|
1479
1693
|
}
|
|
1480
1694
|
// Extracting all headings from data and returning a string with <th>-elements with headings
|
|
1481
1695
|
headings() {
|
|
1482
|
-
let headingsString = `<th scope="col">${this.
|
|
1483
|
-
this.
|
|
1696
|
+
let headingsString = `<th scope="col">${this.chartData.x}</th>`;
|
|
1697
|
+
this.chartData.data.series.forEach((elem) => {
|
|
1484
1698
|
headingsString = headingsString.concat(`<th scope="col">${elem.title}</th>`);
|
|
1485
1699
|
});
|
|
1486
1700
|
return headingsString;
|
|
@@ -1488,13 +1702,13 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1488
1702
|
// Building the table body
|
|
1489
1703
|
tableBody() {
|
|
1490
1704
|
let body = '';
|
|
1491
|
-
if (this.
|
|
1492
|
-
const loopable = this.
|
|
1493
|
-
? this.
|
|
1494
|
-
: this.
|
|
1705
|
+
if (this.chartData && this.chartData.data) {
|
|
1706
|
+
const loopable = this.chartData.data.xValueNames
|
|
1707
|
+
? this.chartData.data.xValueNames
|
|
1708
|
+
: this.chartData.data.xValues;
|
|
1495
1709
|
loopable.forEach((elem, index) => {
|
|
1496
1710
|
let cells = '';
|
|
1497
|
-
this.
|
|
1711
|
+
this.chartData.data.series.forEach((serie) => {
|
|
1498
1712
|
cells = cells.concat(`<td>${serie.yValues[index] != null ? serie.yValues[index].toLocaleString() : '-'}</td>`);
|
|
1499
1713
|
});
|
|
1500
1714
|
body = body.concat(`<tr><th scope='row'>${elem}${cells}</th></tr>`);
|
|
@@ -1506,18 +1720,18 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
|
|
|
1506
1720
|
var _a, _b, _c, _d, _e;
|
|
1507
1721
|
// Setting header
|
|
1508
1722
|
let heading = '';
|
|
1509
|
-
if (this.
|
|
1510
|
-
if (!this.
|
|
1511
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1723
|
+
if (this.chartData) {
|
|
1724
|
+
if (!this.chartData.subTitle)
|
|
1725
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}>`;
|
|
1512
1726
|
else {
|
|
1513
|
-
if (!this.
|
|
1514
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1727
|
+
if (!this.chartData.infoText)
|
|
1728
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${this.chartData.subTitle}</p>`;
|
|
1515
1729
|
else
|
|
1516
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1517
|
-
<span style="display:block;margin-top:0.25rem;font-size:0.875rem;color:var(--digi--global--color--neutral--grayscale--darkest-3)">${this.
|
|
1730
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${(_a = this.chartData) === null || _a === void 0 ? void 0 : _a.subTitle}
|
|
1731
|
+
<span style="display:block;margin-top:0.25rem;font-size:0.875rem;color:var(--digi--global--color--neutral--grayscale--darkest-3)">${this.chartData.infoText}</span></p>`;
|
|
1518
1732
|
}
|
|
1519
1733
|
}
|
|
1520
|
-
return (h(Host, { key: '
|
|
1734
|
+
return (h(Host, { key: '54667697f174d4094b521c81dc772b599c262c29', ref: (el) => (this.host = el) }, h("svg", { key: 'df7e852f09b0c7b142154024444a8cc694b3a34a', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '036603fe008473d87dac2c97e7d4106aca962cc6' }, h("pattern", { key: '4d69d72862f411f0c1d115613ef21b449467a8cf', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '75f26f0b57f83546f5b0a788f14be2daebe4c1f9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: '93a47ceac0fb59103486e974e63325b31672e89d', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '90e8ca1a698db50f0711ede271c6d5357fb26c42', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: 'cc034a851b624f5c2107b15f29d63a224601e0c9', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '248034ecb86d548ceafe837341dabbae07b6c753', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '51b7a0e2f9ff0f85d3abde08ab3f3cf346cdd4aa', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '880b7b7a2fde8eccbd4c24878cc7b3b9b9c6497a', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: 'f374ae56dc6d13906d27bbb76fba63128bc6b704', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title) ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: '3c8dcd209ffd76fb97cdb14232996136ff3a0387', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '89e5a3a838efd0e2c21abb88141e7e455c1c5b7a', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title) ? (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: '8c3debb222d5079506dee4f9cdacf85128ead251', slot: "icon" }), "Visa diagram"), h("div", { key: '0c1916ce68d02ab2b567ed20ea25c17076497aaf', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '143cc5ecbc3bbf3d085eb0426bca9b3bf66ecc7b', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: 'eabbfd6c62996ae237014bd0e4754fb857e0f518', class: "chartTooltip", id: this.afId }, h("div", { key: '97c7c2e479acb9a6f4658768870c1484baa59f01', class: "tooltipHead" }, h("digi-icon-x", { key: 'ec08ba3c764cb66ed0ecac0afdd6b4d16bc84b84', class: "close" })), h("div", { key: '6d80b2cb7bf94c492eaed42a80a8252394fe92b9', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: '7a22b0e07deb81e3e566f60e5e8e2d2f3056a2a2', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '40d906b37ea0a69cb7fcfe310e612e8a5cba2928', class: "legend" })), h("div", { key: '24802d1363812b9d50bd98216f36c7c3f44856d2', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
|
|
1521
1735
|
}
|
|
1522
1736
|
get hostElement() { return this; }
|
|
1523
1737
|
static get watchers() { return {
|