@designsystem-se/af 35.4.0 → 35.4.1-beta.1
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 +641 -538
- 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-6c7ff092.js → p-039ae2b0.js} +2 -2
- package/components/{p-d18dccc2.js → p-03c90546.js} +2 -2
- package/components/{p-f516f6d6.js → p-04d40c11.js} +2 -2
- package/components/{p-5c935094.js → p-05d1c086.js} +8 -8
- package/components/{p-71bad47e.js → p-0b4d2d83.js} +1 -1
- package/components/{p-2d8b68de.js → p-0c50c0de.js} +2 -2
- package/components/{p-6a652c1c.js → p-13f4d2ef.js} +2 -2
- package/components/{p-ad94e4f3.js → p-14ca5b70.js} +4 -4
- package/components/{p-a90980f7.js → p-1585a4be.js} +2 -2
- package/components/{p-6013f971.js → p-1a1da470.js} +2 -2
- package/components/{p-764c106c.js → p-204a12b0.js} +1 -1
- package/components/{p-d309b91a.js → p-21a5bc1b.js} +2 -2
- package/components/{p-b08505a8.js → p-21cd8c48.js} +2 -2
- package/components/{p-64a9f915.js → p-2889897c.js} +2 -2
- package/components/{p-300490fb.js → p-2e15f1c6.js} +2 -2
- package/components/{p-f147733f.js → p-346262e9.js} +2 -2
- package/components/{p-60394bdb.js → p-358d9f7f.js} +2 -2
- package/components/{p-95dc2a66.js → p-3592c644.js} +2 -2
- package/components/{p-b5523600.js → p-3a53c26b.js} +2 -2
- package/components/{p-fccc9322.js → p-3f7610aa.js} +3 -3
- package/components/{p-f9e6f45e.js → p-48c9d0f3.js} +2 -2
- package/components/{p-73c973fc.js → p-4be31ab9.js} +8 -8
- package/components/{p-f5e13d2e.js → p-5489de1a.js} +1 -1
- package/components/{p-61fe9d78.js → p-598345b2.js} +2 -2
- package/components/{p-372e42fa.js → p-5c41419e.js} +2 -2
- package/components/{p-965664d4.js → p-5d16bf8e.js} +10 -10
- package/components/{p-0e6bb1ce.js → p-5e2cf317.js} +2 -2
- package/components/{p-299871dc.js → p-6105626d.js} +2 -2
- package/components/{p-1440ff46.js → p-6e6c2153.js} +2 -2
- package/components/{p-bbaf1285.js → p-70a1e53a.js} +2 -2
- package/components/{p-15bbce60.js → p-71b44546.js} +1 -1
- package/components/{p-96a4c4dc.js → p-739fcdc7.js} +2 -2
- package/components/{p-d14fe54d.js → p-748dfa2c.js} +2 -2
- package/components/{p-127b0f7a.js → p-75973da5.js} +2 -2
- package/components/{p-9f12ac0c.js → p-83c08ea6.js} +8 -8
- package/components/{p-042282c9.js → p-85b6b337.js} +2 -2
- package/components/{p-2a0c0c78.js → p-92b68e77.js} +2 -2
- package/components/{p-291680dc.js → p-95536f3c.js} +2 -2
- package/components/{p-4caaef7a.js → p-a7a01d29.js} +2 -2
- package/components/{p-39021139.js → p-a88d72d7.js} +2 -2
- package/components/{p-ba757bc9.js → p-b0527d47.js} +3 -3
- package/components/{p-ab1d6ae3.js → p-b6b7ca97.js} +10 -10
- package/components/{p-3cbdeea5.js → p-b808953f.js} +1 -1
- package/components/{p-7492d61e.js → p-bc6e8aa7.js} +2 -2
- package/components/{p-f7fd3e36.js → p-beb92e80.js} +1 -1
- package/components/{p-cfa81e91.js → p-beda5948.js} +1 -1
- package/components/{p-6b275dc1.js → p-d1e931a6.js} +2 -2
- package/components/{p-82463cc2.js → p-d6e8ab86.js} +2 -2
- package/components/{p-9bcf4599.js → p-daa147ae.js} +2 -2
- package/components/{p-aed6db71.js → p-e048c005.js} +2 -2
- package/components/{p-82085ee1.js → p-e14ea3f3.js} +2 -2
- package/components/{p-cf527784.js → p-e22a938c.js} +2 -2
- package/components/{p-8a2e80d2.js → p-e7d6ed0f.js} +1 -1
- package/components/{p-364d38fc.js → p-ea3ca139.js} +2 -2
- package/components/{p-42c4e18d.js → p-ecf4d8ee.js} +1 -1
- package/components/{p-472bc7d3.js → p-f080d24e.js} +2 -2
- package/components/{p-c495f54e.js → p-f2dc2816.js} +2 -2
- package/components/{p-3ea21529.js → p-f3c0bfd0.js} +2 -2
- package/components/{p-b5b891f2.js → p-f3cfe620.js} +3 -3
- package/components/{p-4458129b.js → p-fade2a85.js} +2 -2
- package/components/{p-4437e1a8.js → p-fc39074d.js} +1 -1
- package/custom-elements.json +1 -1
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/{digi-button_24.cjs.entry.js → digi-bar-chart_27.cjs.entry.js} +1734 -82
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +2 -2
- 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 +6 -6
- 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 +5 -5
- 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 +3 -3
- 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 +5 -5
- 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 +3 -3
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +9 -9
- 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 +8 -8
- package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-alert.cjs.entry.js +4 -4
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +5 -5
- 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 +3 -3
- package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +38 -0
- package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +20 -0
- 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/cjs/index-7a477838.js +10 -14
- package/dist/cjs/index.cjs.js +20 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +17 -0
- package/dist/cjs/{typography-variation.enum-9f56fd50.js → typography-variation.enum-8fd8bed4.js} +6 -16
- package/dist/collection/components/_chart/bar-chart/bar-chart.css +37 -28
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +644 -541
- 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/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/{p-20ef225a.entry.js → p-01bf3ad8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1e2a9156.entry.js → p-0361e2a2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2c7d4ecf.entry.js → p-0564bb24.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-352712b9.entry.js → p-056a51ac.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0d35dc92.entry.js → p-056d6d46.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9a73a55d.entry.js → p-064c939e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7660ba5b.entry.js → p-077c4ce7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fc945ec1.entry.js → p-07d588b9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d146131e.entry.js → p-081d9429.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c70ba82f.entry.js → p-08f58a6e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b7494943.entry.js → p-09906093.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-34ef0baa.entry.js → p-09a77556.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f69dbfcf.entry.js → p-0ad9751e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b618926.entry.js → p-0ce866e5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cd770cb4.entry.js → p-0cf7ecbc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-48113595.entry.js → p-0d2fbd96.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-07b02fa8.entry.js → p-0e83f440.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bb554f34.entry.js → p-118de1ce.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-905f3864.entry.js → p-124903f2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-76eb331e.entry.js → p-14c497e9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-83b3f053.entry.js → p-1567c7cf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a5c387e8.entry.js → p-187a2bff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6a33818a.entry.js → p-1934f440.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4788712e.entry.js → p-1da9c71e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fc252a02.entry.js → p-1debc9e3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b63e0b2d.entry.js → p-1e7003b3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9a7e195c.entry.js → p-1f96ae50.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ad471fd2.entry.js → p-207287dc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2412deb9.entry.js → p-21a46b7b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0c210491.entry.js → p-22dceb50.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-82634b60.entry.js → p-257b435c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d7cdbe75.entry.js → p-271cc7ea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-df2038b9.entry.js → p-28209746.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-658aa433.entry.js → p-29a1c40f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8355c75d.entry.js → p-2b0eba50.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4477f14c.entry.js → p-2b43163d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0052b03c.entry.js → p-2be7c13e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0e634a09.entry.js → p-2d3383dd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-218b829e.entry.js → p-2e7b66bf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1fcbbf5f.entry.js → p-2f797f49.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a98df65c.entry.js → p-31cead89.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2aa3ed49.entry.js → p-31d496fe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4c69c234.entry.js → p-32baaef3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-80a77b6e.entry.js → p-389c82d2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-11b5ab8d.entry.js → p-3a66b1ea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9789b001.entry.js → p-3ad168dc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e627abeb.entry.js → p-3bcccf75.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4871b74a.entry.js → p-3bf5a52f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0a904539.entry.js → p-3dd60944.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-edfdf8e9.entry.js → p-3ee18966.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c917502e.entry.js → p-3f62e3cc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8d3cb15a.entry.js → p-402ed96b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3c28625a.entry.js → p-4058160e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-27be8d2b.entry.js → p-421db079.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a0267f76.entry.js → p-4319225d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f6476365.entry.js → p-43837437.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7d597755.entry.js → p-43cfc8f6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-450c58fb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a439e93f.entry.js → p-45af6173.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-21653bf9.entry.js → p-46443861.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6559910e.entry.js → p-471da06a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-38603899.entry.js → p-47876094.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b48f2acd.entry.js → p-4a3f6ae6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1cc801fd.entry.js → p-4b44a657.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-83269fe6.entry.js → p-4b801f40.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ce8d2455.entry.js → p-4d08605b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4f6b2e2a.entry.js → p-505d0668.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e2330d9c.entry.js → p-50a66237.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a1ae9863.entry.js → p-51470297.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5456a3bc.entry.js → p-51ea79ee.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-52cdbf49.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-63148e09.entry.js → p-52d1fbdf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d1a77b0b.entry.js → p-53a6acbe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2f57b446.entry.js → p-557f59d9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dcaa4461.entry.js → p-58774bdd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a7361f39.entry.js → p-58b3f403.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-092d0e3e.entry.js → p-58dd2feb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7e6d699e.entry.js → p-5920fda5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e10e24fc.entry.js → p-599d0718.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-45af5d55.entry.js → p-59a2dea9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-99e4bd13.entry.js → p-5d25b4a2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-37459590.entry.js → p-5dc96f65.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0ac9f348.entry.js → p-5dcafc83.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9fe345d1.entry.js → p-5e38aa9d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8b88c952.entry.js → p-5e87079c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d0ffc80.entry.js → p-5f8b4cd7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-36229058.entry.js → p-60f2ae82.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1a21de52.entry.js → p-61113be3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-628437a4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-56cb2ded.entry.js → p-63afb8fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e69d2e1c.entry.js → p-641d21cc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5ac3d7a9.entry.js → p-64809ce2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-40f5fda7.entry.js → p-6544b13d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c30a3366.entry.js → p-65edd9ce.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1bd29b6a.entry.js → p-690cd894.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5473bfea.entry.js → p-69a504c4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-57dd2b38.entry.js → p-69abaca6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8328e58b.entry.js → p-6bc5f5e0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5503d5be.entry.js → p-72296348.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-89566597.entry.js → p-72a9f3f0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-730f71a8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c721f99a.entry.js → p-7762d2cc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-61385dc4.entry.js → p-7a1fb0c3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bb0935fc.entry.js → p-7a25d31e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16b8d192.entry.js → p-7bc9c1c7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-01f5f243.entry.js → p-7f4b20e3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e917904e.entry.js → p-802a5b46.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d30475d.entry.js → p-8122646c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-af4b851e.entry.js → p-81e2dacd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d0a8fa77.entry.js → p-82794386.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b32df740.entry.js → p-86cd6f83.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-86eddf30.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-649c30ed.entry.js → p-87b568b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3212807d.entry.js → p-87eddfbe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1dc8b284.entry.js → p-88ebf872.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-676ab6ef.entry.js → p-8b8d7c93.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-51c9cc1a.entry.js → p-8c0e86f4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a9bfc5bd.entry.js → p-90026fe6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-33425742.entry.js → p-906e723e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b10a1760.entry.js → p-91f23f8e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8ef4cf4a.entry.js → p-92cbf4fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c8257c8c.entry.js → p-9325f966.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16303afa.entry.js → p-94110ab3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4bb41707.entry.js → p-94e21fe5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-95a880bc.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-f6b2d484.entry.js → p-95d16f4f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e8fd0aed.entry.js → p-964278e5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-970324c7.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-4224f1e4.entry.js → p-980ed378.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c81d1d0b.entry.js → p-988bc7d7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7474d7b0.entry.js → p-9a802b7f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-27388bc4.entry.js → p-9b4786b1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bab6f184.entry.js → p-9be08233.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9ea535e1.entry.js → p-9db4749b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c566cef3.entry.js → p-9e1693bf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5ee51a86.entry.js → p-9eb8d626.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-db7c2105.entry.js → p-9fcb6c29.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a0bbf554.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a1d723c7.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d2a12b86.entry.js → p-a1f7262e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-66483a84.entry.js → p-a2c2af60.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6e925e52.entry.js → p-a3feba97.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cdbfa3d0.entry.js → p-a40a2cfb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-588fe3b5.entry.js → p-a42c7b62.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b734218c.entry.js → p-a619cf85.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cab53989.entry.js → p-a6aa5829.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5e37e5aa.entry.js → p-a797690b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c92e206b.entry.js → p-a913d408.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-592fd6a9.entry.js → p-ab8fb809.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-eeec1cf1.entry.js → p-ade1e805.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b81e0aec.entry.js → p-b02206fd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-de1e9254.entry.js → p-b0458215.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-b1a9c2fb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-1e03ba21.entry.js → p-b1c9b7c9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9cf50217.entry.js → p-b2b270b8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6de493b0.entry.js → p-b3eb7b70.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fe235598.entry.js → p-b67f9461.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bb1daa3b.entry.js → p-b80828d4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-73f6209d.entry.js → p-b8c5b457.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-87721a1f.entry.js → p-b963c8d3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8318562f.entry.js → p-bb980b9f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f2eb8ee5.entry.js → p-bc017492.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-780b30f6.entry.js → p-bccbb035.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8fa46692.entry.js → p-bcf9aac2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-53483e1d.entry.js → p-bd1024f6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-baac6e73.entry.js → p-bdb34478.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cfad003c.entry.js → p-be749fc0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c8751075.entry.js → p-be8b2f3b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-bee6cf1e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-07513ee6.entry.js → p-bef79399.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-01df63d6.entry.js → p-bf7b0303.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-726a0b56.entry.js → p-c09c9322.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-815a97f1.entry.js → p-c0bba648.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-43a43f09.entry.js → p-c10498fe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f9315403.entry.js → p-c1d6e124.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c273397c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-18006927.entry.js → p-c2fd82d0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c3e0c1dd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-ba39e14b.entry.js → p-c596aac5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9d15493f.entry.js → p-c6a031ec.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9763005c.entry.js → p-c7bfc24d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3e126f89.entry.js → p-c924ccab.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9e4a0fe4.entry.js → p-ce6f3f0c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b924bb0b.entry.js → p-ce8b2664.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16dd9b3f.entry.js → p-cfe0c858.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d1886fff.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2ffd9c4c.entry.js → p-d2543b7d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d46b426b.entry.js → p-d3e444da.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d5bb52b0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-7d54fe81.entry.js → p-d60e6377.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4fe05e2f.entry.js → p-d94a3918.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a6a0a040.entry.js → p-d9b00653.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-49aeb019.entry.js → p-da9aac78.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e55d3abf.entry.js → p-db4d42a7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5b01d3e2.entry.js → p-dc35ac0d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-93ec0277.entry.js → p-dcdf1e46.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-014044a7.entry.js → p-dceca2fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9045d5ff.entry.js → p-dddc341e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a67b4609.entry.js → p-de32edc5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-90bc53dc.entry.js → p-df04a0a9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-60989dea.entry.js → p-e03f981e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d5376b7c.entry.js → p-e2031ddc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5c7acd45.entry.js → p-e3bdf65a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-01c29a14.entry.js → p-e3f1d8e0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d2799e99.entry.js → p-e422f88e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-293ea71f.entry.js → p-e43b30d8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3eb4faff.entry.js → p-e4923428.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2196c33b.entry.js → p-e518d25b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5acaf4b0.entry.js → p-e5755cec.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b5edc89.entry.js → p-e5da1893.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-77ea6604.entry.js → p-e61b6fc6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ef9a3ddc.entry.js → p-e69ad396.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8e16d36a.entry.js → p-e7270a99.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c1606b8a.entry.js → p-e7e38b64.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a947fa52.entry.js → p-e92e7779.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4e2e1902.entry.js → p-eb166d2d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4eb58cf9.entry.js → p-ebfa36da.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-accb56da.entry.js → p-ec5e06ff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a4895704.entry.js → p-ed001874.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c168c84a.entry.js → p-ee24f4dd.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-39604e43.entry.js → p-f0b889b5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-099b1bac.entry.js → p-f124bfc7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ccd18e1a.entry.js → p-f3642357.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-664de70c.entry.js → p-f5e195f7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f7628391.entry.js → p-f7b51ba9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8473e21b.entry.js → p-f834ecf8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0bc366fb.entry.js → p-f896c941.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-804cb867.entry.js → p-f8ab294b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9df20034.entry.js → p-f8dd7a43.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9495044c.entry.js → p-f9b7f9f0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5aae7437.entry.js → p-fab53686.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e0db40e9.entry.js → p-fb2f9c4c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2062e63b.entry.js → p-fdc1f600.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b21e9c0a.entry.js → p-fe646f75.entry.js} +1 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/{digi-button_24.entry.js → digi-bar-chart_27.entry.js} +1731 -82
- package/dist/esm/digi-calendar-datepicker.entry.js +2 -2
- 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 +6 -6
- 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 +5 -5
- 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 +3 -3
- 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 +5 -5
- 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 +3 -3
- package/dist/esm/digi-form-select-filter.entry.js +9 -9
- 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 +8 -8
- package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
- package/dist/esm/digi-notification-alert.entry.js +4 -4
- package/dist/esm/digi-notification-error-page.entry.js +5 -5
- 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 +3 -3
- package/dist/esm/digi-tools-theme-provider.entry.js +1 -1
- package/dist/esm/digi-typography-heading-jumbo.entry.js +34 -0
- package/dist/esm/digi-typography-meta.entry.js +1 -1
- package/dist/esm/digi-typography-preamble.entry.js +16 -0
- 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/esm/index-148a7577.js +10 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +17 -0
- package/dist/esm/{typography-variation.enum-8ba40d15.js → typography-variation.enum-531cdf64.js} +7 -17
- package/dist/types/components/_chart/bar-chart/bar-chart.d.ts +55 -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 +23 -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 +1171 -1068
- package/hydrate/index.mjs +1171 -1068
- package/package.json +1 -1
- package/dist/cjs/bar-chart-variation.enum-a4e866b6.js +0 -7
- package/dist/cjs/digi-bar-chart.cjs.entry.js +0 -1510
- package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-icon-chart_2.cjs.entry.js +0 -53
- package/dist/digi-arbetsformedlingen/p-07fd5ccf.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-18ffcb24.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2422b0d1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4df8b9e1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-54a797ed.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7393b76b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a5c6e42e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a7d97546.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b22f09f1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cb8e7e0a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d2d0856f.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d4d2b1a5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-dcdffb3c.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e54f5b28.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/esm/bar-chart-variation.enum-97c0b47f.js +0 -7
- package/dist/esm/digi-bar-chart.entry.js +0 -1506
- package/dist/esm/digi-icon-caret-down_2.entry.js +0 -48
- package/dist/esm/digi-icon-chart_2.entry.js +0 -48
- /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
|
@@ -13,10 +13,14 @@ import { BarChartVariation } from "./bar-chart-variation.enum";
|
|
|
13
13
|
export class barChart {
|
|
14
14
|
constructor() {
|
|
15
15
|
// States
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
16
|
+
this.loading = false;
|
|
17
|
+
this.placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
|
|
18
|
+
// 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;
|
|
19
|
+
this.dataWidth = 1;
|
|
20
|
+
// Bar gap when using multiple bars for each point, this will be doubled, since it is applied on both bars
|
|
21
|
+
this.barGap = 0;
|
|
22
|
+
this.dims = {};
|
|
23
|
+
this.margin = {
|
|
20
24
|
bottom: 0,
|
|
21
25
|
top: 6,
|
|
22
26
|
left: 5,
|
|
@@ -27,161 +31,188 @@ export class barChart {
|
|
|
27
31
|
this.yTickSize = 0;
|
|
28
32
|
this.xTickSize = 5;
|
|
29
33
|
// Width of the largets X-tick-value
|
|
30
|
-
this.
|
|
34
|
+
this.tickWidth = 1;
|
|
31
35
|
// Transition
|
|
32
36
|
this.defaultDuration = 400;
|
|
33
37
|
// Text and formats
|
|
34
38
|
this.fontSize = '0.875rem';
|
|
39
|
+
this.colorPalettes = ['--digi--color--background--brand-primary', '--digi--color--infographic--brand--primary', '--digi--color--background--sentiment--beta--primary', '--digi--color--text--interactive--visited', '--digi--color--icon--validation--error'];
|
|
35
40
|
// Observer for watching size changes when in line chart mode
|
|
36
41
|
this.barChartObserver = new ResizeObserver((entries) => {
|
|
37
42
|
entries.forEach(() => {
|
|
38
|
-
if (this.
|
|
43
|
+
if (this.loading)
|
|
39
44
|
return this.loadingResize();
|
|
40
45
|
this.resize();
|
|
41
46
|
});
|
|
42
47
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
this.highlightBars = (serie) => {
|
|
49
|
+
this.barChartContainer.selectAll('.bar')
|
|
50
|
+
.attr('fill', (barData) => this.colorFunction(barData.serie))
|
|
51
|
+
.transition('color')
|
|
52
|
+
.duration(150)
|
|
53
|
+
.attr('fill', (barData) => {
|
|
54
|
+
if (barData.serie === serie)
|
|
55
|
+
return this.colorFunction(barData.serie);
|
|
56
|
+
else
|
|
57
|
+
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
48
58
|
});
|
|
49
|
-
|
|
59
|
+
d3.select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
|
|
60
|
+
};
|
|
61
|
+
this.resetBarColor = () => {
|
|
62
|
+
this.barChartContainer.selectAll('.bar').transition('color').duration(150).attr('fill', (barData) => this.colorFunction(barData.serie));
|
|
63
|
+
d3.select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', 1);
|
|
64
|
+
};
|
|
50
65
|
// Resizing chart while loading
|
|
51
66
|
this.loadingResize = () => {
|
|
52
67
|
const newHeight = this.setDims();
|
|
53
68
|
this.setMargins(true);
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.getTextSize(this.
|
|
69
|
+
this.svg.attr('width', this.dims.width).attr('height', this.dims.height);
|
|
70
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
71
|
+
this.margin.right =
|
|
72
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
58
73
|
this.yTickSize +
|
|
59
74
|
this.tickPadding;
|
|
60
75
|
// If there is a new height
|
|
61
76
|
if (newHeight) {
|
|
62
77
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
63
78
|
this.afVariation === BarChartVariation.Horizontal
|
|
64
|
-
? this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
79
|
+
? this.yScale.range([
|
|
80
|
+
this.margin.top,
|
|
81
|
+
this.dims.height - this.margin.bottom
|
|
67
82
|
])
|
|
68
|
-
: this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
83
|
+
: this.yScale.range([
|
|
84
|
+
this.dims.height - this.margin.bottom,
|
|
85
|
+
this.margin.top
|
|
71
86
|
]);
|
|
72
|
-
this.
|
|
87
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
73
88
|
}
|
|
74
89
|
// Update x-axis with new width
|
|
75
|
-
this.
|
|
90
|
+
this.xScale.range([
|
|
76
91
|
0,
|
|
77
|
-
this.
|
|
92
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
78
93
|
]);
|
|
79
|
-
this.
|
|
80
|
-
.attr('x',
|
|
81
|
-
|
|
82
|
-
: this._xScale(d.key))
|
|
83
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
84
|
-
? this._xScale(d.value)
|
|
85
|
-
: this._xScale.bandwidth());
|
|
94
|
+
this.barSelection
|
|
95
|
+
.attr('x', this.xFunction)
|
|
96
|
+
.attr('width', this.widthFunction);
|
|
86
97
|
this.setValueTicks();
|
|
87
98
|
};
|
|
99
|
+
this.highlightBarGroup = (_event, datum) => {
|
|
100
|
+
if (typeof datum === 'string') {
|
|
101
|
+
const barGroupID = '#' + this.barGroupID(datum);
|
|
102
|
+
this.barChartContainer.select(barGroupID).selectAll('.bar').transition('color')
|
|
103
|
+
.duration(20)
|
|
104
|
+
.attr('fill', (d) => {
|
|
105
|
+
return this.adjustColor(this.colorFunction(d.serie), 50);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
this.unHighlightBarGroup = () => {
|
|
110
|
+
this.barSelection.selectAll('.bar').transition('color')
|
|
111
|
+
.duration(100)
|
|
112
|
+
.attr('fill', (d) => {
|
|
113
|
+
return this.colorFunction(d.serie);
|
|
114
|
+
});
|
|
115
|
+
};
|
|
88
116
|
// Adding click listener for tool tip text
|
|
89
117
|
this.setTickInteraction = () => {
|
|
90
118
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
91
|
-
this.
|
|
119
|
+
this.yAxisHandle
|
|
92
120
|
.selectAll('text')
|
|
93
121
|
.style('cursor', 'pointer')
|
|
94
122
|
.on('click', this.openTooltip)
|
|
95
|
-
.on('mouseenter', this.
|
|
96
|
-
.on('mouseleave', this.
|
|
123
|
+
.on('mouseenter', this.highlightBarGroup)
|
|
124
|
+
.on('mouseleave', this.unHighlightBarGroup);
|
|
97
125
|
}
|
|
98
126
|
else {
|
|
99
|
-
this.
|
|
127
|
+
this.xAxisHandle
|
|
100
128
|
.selectAll('text')
|
|
101
129
|
.style('cursor', 'pointer')
|
|
102
130
|
.on('click', this.openTooltip)
|
|
103
|
-
.on('mouseenter', this.
|
|
104
|
-
.on('mouseleave', this.
|
|
131
|
+
.on('mouseenter', this.highlightBarGroup)
|
|
132
|
+
.on('mouseleave', this.unHighlightBarGroup);
|
|
105
133
|
}
|
|
106
134
|
};
|
|
107
135
|
// Setting Y-scale
|
|
108
136
|
this.setYScale = (empty) => {
|
|
109
137
|
var _a, _b, _c;
|
|
110
138
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
111
|
-
this.
|
|
139
|
+
this.yScale = d3
|
|
112
140
|
.scaleBand(empty
|
|
113
141
|
? ['0', '1', '2', '3', '4', '5', '6', '7']
|
|
114
|
-
: this.
|
|
142
|
+
: this.chartData.data.xValueNames, [this.margin.top, this.dims.height - this.margin.bottom])
|
|
115
143
|
.paddingOuter(0.1)
|
|
116
144
|
.paddingInner(0.1);
|
|
117
|
-
this.
|
|
145
|
+
this.yAxis = d3.axisLeft(this.yScale);
|
|
118
146
|
}
|
|
119
147
|
else {
|
|
120
|
-
this.
|
|
148
|
+
this.yScale = d3
|
|
121
149
|
.scaleLinear()
|
|
122
|
-
.domain(empty ? [0, 10] : [this.
|
|
123
|
-
.nice(((_b = (_a = this.
|
|
124
|
-
? (_c = this.
|
|
150
|
+
.domain(empty ? [0, 10] : [this.minVal, this.maxVal])
|
|
151
|
+
.nice(((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
|
|
152
|
+
? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
|
|
125
153
|
: 3);
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
154
|
+
this.yScale.range([
|
|
155
|
+
this.dims.height - this.margin.bottom,
|
|
156
|
+
this.margin.top
|
|
129
157
|
]);
|
|
130
|
-
this.
|
|
158
|
+
this.yAxis = d3.axisLeft(this.yScale);
|
|
131
159
|
}
|
|
132
160
|
};
|
|
133
161
|
// Setting X-Scale
|
|
134
162
|
this.setXScale = (empty) => {
|
|
135
163
|
// Horizontal
|
|
136
164
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
137
|
-
this.
|
|
165
|
+
this.xScale = d3
|
|
138
166
|
.scaleLinear()
|
|
139
|
-
.domain(empty ? [0, 10] : [this.
|
|
167
|
+
.domain(empty ? [0, 10] : [this.minVal, this.maxVal])
|
|
140
168
|
.nice(3);
|
|
141
|
-
this.
|
|
142
|
-
this.getTextSize(this.
|
|
169
|
+
this.margin.right =
|
|
170
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
143
171
|
this.yTickSize +
|
|
144
172
|
this.tickPadding;
|
|
145
|
-
this.
|
|
173
|
+
this.xScale.range([
|
|
146
174
|
0,
|
|
147
|
-
this.
|
|
175
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
148
176
|
]);
|
|
149
177
|
// Initializing actual axis
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
178
|
+
this.xAxis = d3.axisBottom(this.xScale);
|
|
179
|
+
this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
|
|
152
180
|
}
|
|
153
181
|
else {
|
|
154
182
|
// Vertical
|
|
155
|
-
this.
|
|
183
|
+
this.xScale = d3
|
|
156
184
|
.scaleBand()
|
|
157
|
-
.domain(empty ? this.
|
|
158
|
-
.range([0, this.
|
|
185
|
+
.domain(empty ? this.placeholderTicks : this.chartData.data.xValueNames)
|
|
186
|
+
.range([0, this.dims.width - this.margin.right - this.margin.left])
|
|
159
187
|
.paddingOuter(0.1)
|
|
160
188
|
.paddingInner(0.1);
|
|
161
|
-
this.
|
|
189
|
+
this.xAxis = d3.axisBottom(this.xScale);
|
|
162
190
|
}
|
|
163
191
|
};
|
|
164
192
|
// Stores all tick text sizes in an indexable array
|
|
165
193
|
this.tickSizes = () => {
|
|
166
194
|
// Initializing tick size array
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
169
|
-
if (this.
|
|
170
|
-
for (let i = 0; i < this.
|
|
171
|
-
this.
|
|
195
|
+
this.namedTickSizes = [];
|
|
196
|
+
this.ellipsisSize = this.getTextSize('...');
|
|
197
|
+
if (this.chartData && this.chartData.data) {
|
|
198
|
+
for (let i = 0; i < this.chartData.data.xValueNames.length; i++) {
|
|
199
|
+
this.namedTickSizes.push(Math.ceil(this.getTextSize(this.chartData.data.xValueNames[i])));
|
|
172
200
|
}
|
|
173
201
|
}
|
|
174
202
|
};
|
|
203
|
+
this.barGroupID = (key) => {
|
|
204
|
+
return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
|
|
205
|
+
};
|
|
175
206
|
this.updateBars = (fromLoading) => {
|
|
176
|
-
this.
|
|
207
|
+
this.barChartContainer
|
|
177
208
|
.selectAll('.barGroup')
|
|
178
|
-
.data(this.
|
|
209
|
+
.data(this.mappedData)
|
|
179
210
|
.join((enter) => {
|
|
180
211
|
var _a, _b;
|
|
181
212
|
const tempSelection = enter
|
|
182
213
|
.append('g')
|
|
183
214
|
.attr('class', 'barGroup')
|
|
184
|
-
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '
|
|
215
|
+
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''));
|
|
185
216
|
tempSelection
|
|
186
217
|
.append('rect')
|
|
187
218
|
.attr('class', 'bar')
|
|
@@ -189,16 +220,16 @@ export class barChart {
|
|
|
189
220
|
.attr('ry', 4)
|
|
190
221
|
.attr('rx', 4)
|
|
191
222
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
192
|
-
? this.
|
|
193
|
-
: this.
|
|
223
|
+
? this.yScale(d.key)
|
|
224
|
+
: this.dims.height - this.margin.bottom)
|
|
194
225
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
195
226
|
? 2
|
|
196
|
-
: this.
|
|
227
|
+
: this.xScale(d.key))
|
|
197
228
|
.attr('width', () => this.afVariation === BarChartVariation.Horizontal
|
|
198
229
|
? 0
|
|
199
|
-
: this.
|
|
230
|
+
: this.xScale.bandwidth())
|
|
200
231
|
.attr('height', () => this.afVariation === BarChartVariation.Horizontal
|
|
201
|
-
? this.
|
|
232
|
+
? this.yScale.bandwidth()
|
|
202
233
|
: 0)
|
|
203
234
|
.on('mouseenter', this.hover)
|
|
204
235
|
.on('mouseleave', this.hoverOut)
|
|
@@ -206,19 +237,11 @@ export class barChart {
|
|
|
206
237
|
.transition()
|
|
207
238
|
.duration(this.defaultDuration)
|
|
208
239
|
.ease(d3.easePolyInOut)
|
|
209
|
-
.attr('width',
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
213
|
-
? this._yScale(d.key)
|
|
214
|
-
: this._yScale(d.value))
|
|
215
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
216
|
-
? this._yScale.bandwidth()
|
|
217
|
-
: this._dims.height -
|
|
218
|
-
this._margin.bottom -
|
|
219
|
-
this._yScale(d.value))
|
|
240
|
+
.attr('width', this.widthFunction)
|
|
241
|
+
.attr('y', this.yFunction)
|
|
242
|
+
.attr('height', this.heightFunction)
|
|
220
243
|
.attr('fill', '#00005a');
|
|
221
|
-
if (!((_b = (_a = this.
|
|
244
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
222
245
|
return tempSelection;
|
|
223
246
|
tempSelection
|
|
224
247
|
.append('text')
|
|
@@ -229,32 +252,32 @@ export class barChart {
|
|
|
229
252
|
.attr('text-anchor', 'end')
|
|
230
253
|
.style('pointer-events', 'none')
|
|
231
254
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
232
|
-
? this.
|
|
233
|
-
: this.
|
|
255
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
256
|
+
: this.dims.height - this.margin.bottom)
|
|
234
257
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
235
258
|
? 2
|
|
236
|
-
: this.
|
|
259
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
237
260
|
.transition()
|
|
238
261
|
.duration(this.defaultDuration)
|
|
239
262
|
.ease(d3.easePolyInOut)
|
|
240
263
|
.attr('font-size', this.fontSize)
|
|
241
264
|
.attr('font-weight', '600')
|
|
242
265
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
243
|
-
? this.
|
|
244
|
-
: this.
|
|
266
|
+
? this.xScale(d.value)
|
|
267
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
245
268
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
246
|
-
? this.
|
|
247
|
-
: this.
|
|
269
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
270
|
+
: this.yScale(d.value))
|
|
248
271
|
.attr('text-anchor', (d) => {
|
|
249
272
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
250
273
|
return 'middle';
|
|
251
|
-
return this.
|
|
274
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
252
275
|
? 'start'
|
|
253
276
|
: 'end';
|
|
254
277
|
})
|
|
255
278
|
.attr('dx', (d) => {
|
|
256
279
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
257
|
-
return this.
|
|
280
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
258
281
|
? this.tickPadding
|
|
259
282
|
: -this.tickPadding;
|
|
260
283
|
return 0;
|
|
@@ -262,7 +285,7 @@ export class barChart {
|
|
|
262
285
|
.attr('fill', (d) => {
|
|
263
286
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
264
287
|
return 'black';
|
|
265
|
-
return this.
|
|
288
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
266
289
|
? 'black'
|
|
267
290
|
: 'white';
|
|
268
291
|
})
|
|
@@ -275,12 +298,12 @@ export class barChart {
|
|
|
275
298
|
? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
276
299
|
: 0;
|
|
277
300
|
const interpolatedValue = d3.interpolate(oldnum, d.value);
|
|
278
|
-
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.
|
|
301
|
+
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.numberFormat));
|
|
279
302
|
});
|
|
280
303
|
return tempSelection;
|
|
281
304
|
}, (update) => {
|
|
282
305
|
// Update ids to bars
|
|
283
|
-
update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '
|
|
306
|
+
update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''));
|
|
284
307
|
// Mouse interaction to updated loading bars
|
|
285
308
|
if (fromLoading) {
|
|
286
309
|
update
|
|
@@ -288,31 +311,21 @@ export class barChart {
|
|
|
288
311
|
.on('mouseenter', this.hover)
|
|
289
312
|
.on('mouseleave', this.hoverOut)
|
|
290
313
|
.on('click', this.openTooltip)
|
|
291
|
-
.attr('x',
|
|
292
|
-
? 2
|
|
293
|
-
: this._xScale(d.key))
|
|
314
|
+
.attr('x', this.xFunction)
|
|
294
315
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
295
|
-
? this.
|
|
296
|
-
: this.
|
|
297
|
-
.attr('width',
|
|
298
|
-
? this._xScale(d.value)
|
|
299
|
-
: this._xScale.bandwidth())
|
|
316
|
+
? this.yScale(d.key)
|
|
317
|
+
: this.dims.height - this.margin.bottom)
|
|
318
|
+
.attr('width', this.widthFunction)
|
|
300
319
|
.attr('height', () => this.afVariation === BarChartVariation.Horizontal
|
|
301
|
-
? this.
|
|
320
|
+
? this.yScale.bandwidth()
|
|
302
321
|
: 0)
|
|
303
322
|
.attr('fill', '#00005a')
|
|
304
323
|
.transition()
|
|
305
324
|
.duration(this.defaultDuration)
|
|
306
325
|
.ease(d3.easePolyInOut)
|
|
307
|
-
.attr('y',
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
311
|
-
? this._yScale.bandwidth()
|
|
312
|
-
: this._dims.height -
|
|
313
|
-
this._margin.bottom -
|
|
314
|
-
this._yScale(d.value))
|
|
315
|
-
.on('end', () => this.barChartObserver.observe(this._chartDiv)); // Reset barchartObserver
|
|
326
|
+
.attr('y', this.yFunction)
|
|
327
|
+
.attr('height', this.heightFunction)
|
|
328
|
+
.on('end', () => this.barChartObserver.observe(this.chartDiv)); // Reset barchartObserver
|
|
316
329
|
}
|
|
317
330
|
else {
|
|
318
331
|
update
|
|
@@ -320,46 +333,36 @@ export class barChart {
|
|
|
320
333
|
.transition()
|
|
321
334
|
.duration(this.defaultDuration)
|
|
322
335
|
.ease(d3.easePolyInOut)
|
|
323
|
-
.attr('
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
.attr('
|
|
327
|
-
? 2
|
|
328
|
-
: this._xScale(d.key))
|
|
329
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
330
|
-
? this._xScale(d.value)
|
|
331
|
-
: this._xScale.bandwidth())
|
|
332
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
333
|
-
? this._yScale.bandwidth()
|
|
334
|
-
: this._dims.height -
|
|
335
|
-
this._margin.bottom -
|
|
336
|
-
this._yScale(d.value))
|
|
336
|
+
.attr('x', this.xFunction)
|
|
337
|
+
.attr('y', this.yFunction)
|
|
338
|
+
.attr('width', this.widthFunction)
|
|
339
|
+
.attr('height', this.heightFunction)
|
|
337
340
|
.attr('fill', '#00005a');
|
|
338
341
|
}
|
|
339
342
|
return update
|
|
340
343
|
.select('text')
|
|
341
|
-
.style('display', () => { var _a, _b; return ((_b = (_a = this.
|
|
344
|
+
.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'; })
|
|
342
345
|
.transition()
|
|
343
346
|
.duration(this.defaultDuration)
|
|
344
347
|
.ease(d3.easePolyInOut)
|
|
345
348
|
.attr('font-size', this.fontSize)
|
|
346
349
|
.attr('font-weight', '600')
|
|
347
350
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
348
|
-
? this.
|
|
349
|
-
: this.
|
|
351
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
352
|
+
: this.yScale(d.value))
|
|
350
353
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
351
|
-
? this.
|
|
352
|
-
: this.
|
|
354
|
+
? this.xScale(d.value)
|
|
355
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
353
356
|
.attr('text-anchor', (d) => {
|
|
354
357
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
355
358
|
return 'middle';
|
|
356
|
-
return this.
|
|
359
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
357
360
|
? 'start'
|
|
358
361
|
: 'end';
|
|
359
362
|
})
|
|
360
363
|
.attr('dx', (d) => {
|
|
361
364
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
362
|
-
return this.
|
|
365
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
363
366
|
? this.tickPadding
|
|
364
367
|
: -this.tickPadding;
|
|
365
368
|
return 0;
|
|
@@ -367,7 +370,7 @@ export class barChart {
|
|
|
367
370
|
.attr('fill', (d) => {
|
|
368
371
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
369
372
|
return 'black';
|
|
370
|
-
return this.
|
|
373
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
371
374
|
? 'black'
|
|
372
375
|
: 'white';
|
|
373
376
|
})
|
|
@@ -380,27 +383,27 @@ export class barChart {
|
|
|
380
383
|
? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
381
384
|
: 0;
|
|
382
385
|
const interpolatedValue = d3.interpolate(oldnum, d.value);
|
|
383
|
-
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.
|
|
386
|
+
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.numberFormat));
|
|
384
387
|
});
|
|
385
388
|
}, (exit) => exit.remove());
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
389
|
+
this.barSelection = this.barChartContainer.selectAll('rect');
|
|
390
|
+
this.textSelection = this.barChartContainer.selectAll('.barText');
|
|
388
391
|
};
|
|
389
392
|
// Setting position of text according to bar size
|
|
390
393
|
this.adjustBarText = () => {
|
|
391
394
|
var _a, _b;
|
|
392
|
-
if (!((_b = (_a = this.
|
|
395
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
393
396
|
return;
|
|
394
|
-
this.
|
|
397
|
+
this.textSelection
|
|
395
398
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
396
|
-
? this.
|
|
397
|
-
: this.
|
|
399
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
400
|
+
: this.yScale(d.value))
|
|
398
401
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
399
|
-
? this.
|
|
400
|
-
: this.
|
|
402
|
+
? this.xScale(d.value)
|
|
403
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
401
404
|
.attr('dx', (d) => {
|
|
402
405
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
403
|
-
return this.
|
|
406
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
404
407
|
? this.tickPadding
|
|
405
408
|
: -this.tickPadding;
|
|
406
409
|
return 0;
|
|
@@ -408,151 +411,184 @@ export class barChart {
|
|
|
408
411
|
.attr('fill', (d) => {
|
|
409
412
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
410
413
|
return 'black';
|
|
411
|
-
return this.
|
|
414
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
412
415
|
? 'black'
|
|
413
416
|
: 'white';
|
|
414
417
|
})
|
|
415
418
|
.attr('text-anchor', (d) => {
|
|
416
419
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
417
420
|
return 'middle';
|
|
418
|
-
return this.
|
|
421
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
419
422
|
? 'start'
|
|
420
423
|
: 'end';
|
|
421
424
|
});
|
|
422
425
|
};
|
|
423
426
|
this.reshapeData = () => {
|
|
424
427
|
const toReturn = [];
|
|
425
|
-
if (this.
|
|
426
|
-
this.
|
|
427
|
-
|
|
428
|
+
if (this.loading || !this.chartData) {
|
|
429
|
+
this.placeholderTicks.forEach((key) => {
|
|
430
|
+
const tick = { key: key, series: [] };
|
|
431
|
+
tick.series.push({
|
|
428
432
|
key: key,
|
|
433
|
+
serie: 'loading',
|
|
429
434
|
value: Math.floor(Math.random() * (9 - 2 + 1) + 2),
|
|
430
|
-
len:
|
|
435
|
+
len: 0
|
|
431
436
|
});
|
|
437
|
+
toReturn.push(tick);
|
|
432
438
|
});
|
|
433
439
|
return toReturn;
|
|
434
440
|
}
|
|
435
|
-
this.
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
441
|
+
this.chartData.data.xValueNames.forEach((key, index) => {
|
|
442
|
+
const tick = { key: key, series: [] };
|
|
443
|
+
this.chartData.data.series.forEach((serie) => {
|
|
444
|
+
if (serie.yValues[index]) {
|
|
445
|
+
tick.series.push({
|
|
446
|
+
key: key,
|
|
447
|
+
serie: serie.title,
|
|
448
|
+
value: serie.yValues[index],
|
|
449
|
+
len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
|
|
450
|
+
});
|
|
451
|
+
}
|
|
440
452
|
});
|
|
453
|
+
toReturn.push(tick);
|
|
441
454
|
});
|
|
442
455
|
return toReturn;
|
|
443
456
|
};
|
|
444
457
|
this.adjustBarSize = () => {
|
|
445
|
-
this.
|
|
446
|
-
.attr('
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
.attr('
|
|
450
|
-
? 2
|
|
451
|
-
: this._xScale(d.key))
|
|
452
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
453
|
-
? this._xScale(d.value)
|
|
454
|
-
: this._xScale.bandwidth())
|
|
455
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
456
|
-
? this._yScale.bandwidth()
|
|
457
|
-
: this._dims.height - this._margin.bottom - this._yScale(d.value));
|
|
458
|
+
this.barSelection.selectAll('.bar')
|
|
459
|
+
.attr('x', this.xFunction)
|
|
460
|
+
.attr('y', this.yFunction)
|
|
461
|
+
.attr('width', this.widthFunction)
|
|
462
|
+
.attr('height', this.heightFunction);
|
|
458
463
|
};
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
464
|
+
this.evalColorVar = (colorVar) => {
|
|
465
|
+
return getComputedStyle(document.documentElement)
|
|
466
|
+
.getPropertyValue(colorVar)
|
|
467
|
+
.trim()
|
|
468
|
+
.toLocaleLowerCase();
|
|
469
|
+
};
|
|
470
|
+
// Handling x positioning of bars
|
|
471
|
+
this.xFunction = (d, i) => {
|
|
472
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
473
|
+
? (d.value > 0 ? this.xScale(0) : this.xScale(d.value))
|
|
474
|
+
: this.xScale(d.key) + ((this.xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
|
|
475
|
+
};
|
|
476
|
+
// Handling y positioning of bars
|
|
477
|
+
this.yFunction = (d, i) => {
|
|
478
|
+
if (!d.value)
|
|
479
|
+
return 0;
|
|
480
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
481
|
+
? this.yScale(d.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
|
|
482
|
+
: (d.value < 0 ? this.yScale(0) : this.yScale(d.value));
|
|
483
|
+
};
|
|
484
|
+
// Handling height for bars
|
|
485
|
+
this.heightFunction = (d) => {
|
|
486
|
+
if (!d.value)
|
|
487
|
+
return 0;
|
|
488
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
489
|
+
? this.yScale.bandwidth() / this.dataWidth - (this.barGap)
|
|
490
|
+
: (d.value < 0 ? this.yScale(d.value) - this.yScale(0) : this.yScale(0) - this.yScale(d.value));
|
|
491
|
+
};
|
|
492
|
+
// Handling width for bars
|
|
493
|
+
this.widthFunction = (d) => {
|
|
494
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
495
|
+
? Math.abs(this.xScale(0) - this.xScale(d.value))
|
|
496
|
+
: this.xScale.bandwidth() / this.dataWidth - (this.barGap);
|
|
463
497
|
};
|
|
464
498
|
// Setting dimension variable
|
|
465
499
|
this.setDims = (onlyHeight = false) => {
|
|
466
500
|
// Get title dimensions
|
|
467
|
-
const tempTitle = d3.select(this.
|
|
468
|
-
const prevHeight = this.
|
|
501
|
+
const tempTitle = d3.select(this.titleDiv).node().getBoundingClientRect(), tempLegend = d3.select(this.legendDiv).node().getBoundingClientRect();
|
|
502
|
+
const prevHeight = this.dims.height;
|
|
469
503
|
if (!onlyHeight)
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
472
|
-
this.
|
|
473
|
-
return prevHeight != this.
|
|
504
|
+
this.dims = d3.select(this.chartDiv).node().getBoundingClientRect();
|
|
505
|
+
this.dims.height =
|
|
506
|
+
this.maxHeight - tempLegend.height - tempTitle.height - 1.75 * this.rem;
|
|
507
|
+
return prevHeight != this.dims.height;
|
|
474
508
|
};
|
|
475
509
|
// Setting margins given text size
|
|
476
510
|
this.setMargins = (fromLoading) => {
|
|
477
511
|
var _a;
|
|
478
|
-
this.
|
|
512
|
+
this.pixelSize =
|
|
479
513
|
Number(window
|
|
480
514
|
.getComputedStyle(document.body)
|
|
481
515
|
.getPropertyValue('font-size')
|
|
482
516
|
.match(/\d+/)[0]) * Number(this.fontSize.replace(/[^\d.]|\.(?=.*\.)/g, ''));
|
|
483
517
|
// Getting the longest word, assuming it will also be the widest in terms of pixels
|
|
484
518
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
485
|
-
const left = ((_a = this.
|
|
486
|
-
this.getLargestText(this.
|
|
487
|
-
? this.getLargestText(this.
|
|
519
|
+
const left = ((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data) &&
|
|
520
|
+
this.getLargestText(this.chartData.data.xValueNames)
|
|
521
|
+
? this.getLargestText(this.chartData.data.xValueNames)
|
|
488
522
|
: 0;
|
|
489
|
-
this.
|
|
523
|
+
this.margin.left = left;
|
|
524
|
+
this.margin.bottom = this.pixelSize + this.tickPadding + this.xTickSize;
|
|
490
525
|
}
|
|
491
|
-
else
|
|
492
|
-
this.
|
|
526
|
+
else {
|
|
527
|
+
this.margin.left = this.getLargestText(fromLoading
|
|
493
528
|
? ['0', '10']
|
|
494
529
|
: [
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
530
|
+
this.minVal ? this.tempScale[0].toLocaleString() : '0',
|
|
531
|
+
this.maxVal ? this.tempScale[1].toLocaleString() : '10'
|
|
497
532
|
]);
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
533
|
+
this.margin.bottom = this.pixelSize;
|
|
534
|
+
}
|
|
535
|
+
if (this.margin.left > this.dims.width / 4) {
|
|
536
|
+
this.margin.left = Math.floor(this.dims.width / 4);
|
|
537
|
+
this.margin.ellipsis = true;
|
|
501
538
|
}
|
|
502
539
|
else
|
|
503
|
-
this.
|
|
504
|
-
this._margin.bottom = this._pixelSize + this.tickPadding + this.xTickSize;
|
|
540
|
+
this.margin.ellipsis = false;
|
|
505
541
|
};
|
|
506
542
|
// Adjusting y-ticks
|
|
507
543
|
this.setNamedTicks = (transition = false) => {
|
|
508
544
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
509
545
|
if (!transition) {
|
|
510
|
-
this.
|
|
546
|
+
this.yAxisHandle
|
|
511
547
|
.style('font-size', this.fontSize)
|
|
512
548
|
.style('font-family', 'Open Sans')
|
|
513
|
-
.call(this.
|
|
549
|
+
.call(this.yAxis
|
|
514
550
|
.tickPadding(this.tickPadding)
|
|
515
551
|
.tickSize(this.yTickSize)
|
|
516
552
|
.tickSizeOuter(0)
|
|
517
553
|
.tickFormat((d, i) => {
|
|
518
|
-
if (!this.
|
|
554
|
+
if (!this.margin.ellipsis)
|
|
519
555
|
return d.toLocaleString();
|
|
520
556
|
// Adding ellipsis to text
|
|
521
|
-
const size = this.
|
|
522
|
-
const mSize = this.
|
|
557
|
+
const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
|
|
558
|
+
const mSize = this.margin.left;
|
|
523
559
|
if (size < mSize)
|
|
524
560
|
return d.toLocaleString();
|
|
525
|
-
const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
561
|
+
const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3)) + '...');
|
|
526
562
|
let adjustment = 0;
|
|
527
563
|
if (newSize > mSize) {
|
|
528
564
|
adjustment = Math.ceil((newSize - mSize) / (size / d.length));
|
|
529
565
|
}
|
|
530
566
|
// Slicing the text up, saving atleast 3 characters
|
|
531
567
|
return (d
|
|
532
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
568
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
|
|
533
569
|
.trim() + '...');
|
|
534
570
|
}));
|
|
535
571
|
}
|
|
536
572
|
else {
|
|
537
|
-
this.
|
|
573
|
+
this.yAxisHandle
|
|
538
574
|
.style('font-size', this.fontSize)
|
|
539
575
|
.style('font-family', 'Open Sans')
|
|
540
576
|
.transition()
|
|
541
577
|
.duration(this.defaultDuration)
|
|
542
|
-
.call(this.
|
|
578
|
+
.call(this.yAxis
|
|
543
579
|
.tickPadding(this.tickPadding)
|
|
544
580
|
.tickSize(this.yTickSize)
|
|
545
581
|
.tickSizeOuter(0)
|
|
546
582
|
.tickFormat((d, i) => {
|
|
547
|
-
if (!this.
|
|
583
|
+
if (!this.margin.ellipsis)
|
|
548
584
|
return d;
|
|
549
585
|
// Adding ellipsis to text
|
|
550
|
-
const size = this.
|
|
551
|
-
const mSize = this.
|
|
586
|
+
const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
|
|
587
|
+
const mSize = this.margin.left;
|
|
552
588
|
if (size < mSize)
|
|
553
589
|
return d;
|
|
554
590
|
const newSize = this.getTextSize(d
|
|
555
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
591
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3))
|
|
556
592
|
.trim() + '...');
|
|
557
593
|
let adjustment = 0;
|
|
558
594
|
if (newSize > mSize) {
|
|
@@ -560,26 +596,26 @@ export class barChart {
|
|
|
560
596
|
}
|
|
561
597
|
// Slicing the text up, saving atleast 3 characters
|
|
562
598
|
return (d
|
|
563
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
599
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
|
|
564
600
|
.trim() + '...');
|
|
565
601
|
}));
|
|
566
602
|
}
|
|
567
603
|
}
|
|
568
604
|
else {
|
|
569
605
|
//Calculating every n:th text to show
|
|
570
|
-
let nTh = Math.round(this.
|
|
571
|
-
((this.
|
|
572
|
-
if (Math.floor(this.
|
|
573
|
-
nTh = Math.round(this.
|
|
606
|
+
let nTh = Math.max(Math.round(this.chartData.data.xValues.length /
|
|
607
|
+
((this.dims.width - this.margin.left - this.margin.right) / 90 - 1)), 1);
|
|
608
|
+
if (Math.floor(this.chartData.data.xValues.length / nTh) < 4) {
|
|
609
|
+
nTh = Math.round(this.chartData.data.xValues.length / 4);
|
|
574
610
|
}
|
|
575
|
-
const allowedWidth = (this.
|
|
576
|
-
Math.floor(this.
|
|
611
|
+
const allowedWidth = (this.dims.width - this.margin.left - this.margin.right) /
|
|
612
|
+
Math.floor(this.chartData.data.xValues.length / nTh + 1);
|
|
577
613
|
if (!transition) {
|
|
578
|
-
this.
|
|
614
|
+
this.xAxisHandle
|
|
579
615
|
.style('font-size', this.fontSize)
|
|
580
616
|
.style('font-family', 'Open Sans')
|
|
581
|
-
.call(this.
|
|
582
|
-
.tickValues(this.
|
|
617
|
+
.call(this.xAxis
|
|
618
|
+
.tickValues(this.xScale.domain().filter((...[, i]) => {
|
|
583
619
|
if (i == 0)
|
|
584
620
|
return true;
|
|
585
621
|
else {
|
|
@@ -591,23 +627,23 @@ export class barChart {
|
|
|
591
627
|
.tickSizeOuter(0)
|
|
592
628
|
.tickFormat((d, i) => {
|
|
593
629
|
const index = i * nTh;
|
|
594
|
-
if (this.
|
|
630
|
+
if (this.namedTickSizes[index] < allowedWidth)
|
|
595
631
|
return d;
|
|
596
632
|
return (d.slice(0, Math.max(Math.floor((allowedWidth /
|
|
597
|
-
(this.
|
|
598
|
-
this.
|
|
633
|
+
(this.namedTickSizes[index] +
|
|
634
|
+
this.ellipsisSize +
|
|
599
635
|
5)) *
|
|
600
636
|
d.length), 3)) + '...');
|
|
601
637
|
}));
|
|
602
638
|
}
|
|
603
639
|
else {
|
|
604
|
-
this.
|
|
640
|
+
this.xAxisHandle
|
|
605
641
|
.style('font-size', this.fontSize)
|
|
606
642
|
.style('font-family', 'Open Sans')
|
|
607
643
|
.transition()
|
|
608
644
|
.duration(this.defaultDuration)
|
|
609
|
-
.call(this.
|
|
610
|
-
.tickValues(this.
|
|
645
|
+
.call(this.xAxis
|
|
646
|
+
.tickValues(this.xScale.domain().filter((...[, i]) => {
|
|
611
647
|
if (i == 0)
|
|
612
648
|
return true;
|
|
613
649
|
else {
|
|
@@ -619,11 +655,11 @@ export class barChart {
|
|
|
619
655
|
.tickSizeOuter(0)
|
|
620
656
|
.tickFormat((d, i) => {
|
|
621
657
|
const index = i * nTh;
|
|
622
|
-
if (this.
|
|
658
|
+
if (this.namedTickSizes[index] < allowedWidth)
|
|
623
659
|
return d;
|
|
624
660
|
return (d.slice(0, Math.max(Math.floor((allowedWidth /
|
|
625
|
-
(this.
|
|
626
|
-
this.
|
|
661
|
+
(this.namedTickSizes[index] +
|
|
662
|
+
this.ellipsisSize +
|
|
627
663
|
5)) *
|
|
628
664
|
d.length), 3)) + '...');
|
|
629
665
|
}));
|
|
@@ -633,30 +669,30 @@ export class barChart {
|
|
|
633
669
|
// Positioning the ticks of the value bearing axis
|
|
634
670
|
this.setValueTicks = (transition = false) => {
|
|
635
671
|
var _a, _b;
|
|
636
|
-
if (((_a = this.
|
|
672
|
+
if (((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
|
|
637
673
|
this.afVariation === BarChartVariation.Horizontal
|
|
638
|
-
? this.
|
|
639
|
-
: this.
|
|
674
|
+
? this.xAxisHandle.attr('display', 'none')
|
|
675
|
+
: this.yAxisHandle.attr('display', 'none');
|
|
640
676
|
return;
|
|
641
677
|
}
|
|
642
678
|
let toCall, tickSize, handle;
|
|
643
679
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
644
|
-
this.
|
|
645
|
-
toCall = this.
|
|
646
|
-
tickSize = -(this.
|
|
647
|
-
handle = this.
|
|
680
|
+
this.xAxisHandle.attr('display', null);
|
|
681
|
+
toCall = this.xAxis;
|
|
682
|
+
tickSize = -(this.dims.height - this.margin.top - this.margin.bottom);
|
|
683
|
+
handle = this.xAxisHandle;
|
|
648
684
|
}
|
|
649
685
|
else {
|
|
650
|
-
this.
|
|
651
|
-
toCall = this.
|
|
652
|
-
tickSize = -(this.
|
|
653
|
-
handle = this.
|
|
686
|
+
this.yAxisHandle.attr('display', null);
|
|
687
|
+
toCall = this.yAxis;
|
|
688
|
+
tickSize = -(this.dims.width - this.margin.left - this.margin.right);
|
|
689
|
+
handle = this.yAxisHandle;
|
|
654
690
|
}
|
|
655
691
|
// Computing the amount of ticks to show
|
|
656
|
-
const ticks = Math.min(Math.floor((this.
|
|
657
|
-
(this.
|
|
658
|
-
? this.
|
|
659
|
-
: this.
|
|
692
|
+
const ticks = Math.min(Math.floor((this.dims.width - this.margin.left - this.margin.right) /
|
|
693
|
+
(this.tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
|
|
694
|
+
? this.xScale.ticks().length
|
|
695
|
+
: this.yScale.ticks().length);
|
|
660
696
|
if (!transition) {
|
|
661
697
|
handle
|
|
662
698
|
.style('font-size', this.fontSize)
|
|
@@ -687,124 +723,154 @@ export class barChart {
|
|
|
687
723
|
}
|
|
688
724
|
handle.selectAll('line').attr('stroke', 'lightgray');
|
|
689
725
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
690
|
-
this.
|
|
726
|
+
this.yAxisHandle.select('.domain').attr('display', 'none');
|
|
691
727
|
};
|
|
692
728
|
// Highlight bar
|
|
693
729
|
this.hover = (event) => {
|
|
694
730
|
d3.select(event.target)
|
|
695
|
-
.transition('
|
|
731
|
+
.transition('color')
|
|
696
732
|
.duration(20)
|
|
697
|
-
.attr('fill',
|
|
698
|
-
|
|
699
|
-
|
|
733
|
+
.attr('fill', (d) => {
|
|
734
|
+
return event.target.tagName === 'rect'
|
|
735
|
+
? this.adjustColor(this.colorFunction(d.serie), 50)
|
|
736
|
+
: this.evalColorVar('--digi--color--background--interactive--hover--tertiary');
|
|
737
|
+
});
|
|
700
738
|
};
|
|
701
739
|
// Removing highlight from bar
|
|
702
740
|
this.hoverOut = (event) => {
|
|
703
741
|
d3.select(event.target)
|
|
704
|
-
.transition('
|
|
742
|
+
.transition('color')
|
|
705
743
|
.duration(this.defaultDuration)
|
|
706
|
-
.attr('fill', event.target.tagName === 'rect' ?
|
|
744
|
+
.attr('fill', (d) => event.target.tagName === 'rect' ? this.colorFunction(d.serie) : '#333333');
|
|
707
745
|
};
|
|
708
746
|
this.openTooltip = (...[, d]) => {
|
|
709
747
|
// If type is string, the user has clicked on a y-axis tick
|
|
710
748
|
if (typeof d === 'string') {
|
|
711
|
-
this.
|
|
712
|
-
.select(
|
|
749
|
+
this.tooltipData = this.barChartContainer
|
|
750
|
+
.select(`#${this.barGroupID(d)}`)
|
|
713
751
|
.datum();
|
|
714
752
|
}
|
|
715
753
|
else
|
|
716
|
-
this.
|
|
717
|
-
const tooltipBody = this.
|
|
754
|
+
this.tooltipData = d;
|
|
755
|
+
const tooltipBody = this.tooltip.select('.tooltipBody');
|
|
718
756
|
tooltipBody
|
|
719
|
-
.select(
|
|
720
|
-
.
|
|
721
|
-
.style('font-weight', 500)
|
|
722
|
-
.html(this._tooltipData.key);
|
|
757
|
+
.select('.tooltipHeading')
|
|
758
|
+
.html(this.tooltipData.key);
|
|
723
759
|
tooltipBody
|
|
724
760
|
.selectAll('div')
|
|
725
|
-
.data([this.
|
|
761
|
+
.data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
|
|
726
762
|
.join('div')
|
|
727
763
|
.style('display', 'flex')
|
|
728
764
|
.style('flex-direction', 'row')
|
|
729
765
|
.style('flex-wrap', 'nowrap')
|
|
730
766
|
.style('white-space', 'nowrap')
|
|
731
767
|
.style('justify-content', 'space-between')
|
|
732
|
-
.
|
|
733
|
-
|
|
734
|
-
|
|
768
|
+
.style('margin', '0.25rem 0')
|
|
769
|
+
.html((d) => {
|
|
770
|
+
return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
|
|
771
|
+
});
|
|
772
|
+
this.tooltip.style('visibility', 'visible');
|
|
773
|
+
this.positionTooltip(this.tooltipData);
|
|
735
774
|
};
|
|
736
775
|
this.closeTooltip = () => {
|
|
737
|
-
this.
|
|
776
|
+
this.tooltip.style('visibility', 'hidden');
|
|
738
777
|
};
|
|
739
778
|
// Positions tooltip in horizontal mode
|
|
740
779
|
this.positionTooltip = (data) => {
|
|
741
|
-
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
if (
|
|
745
|
-
this.
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
.
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
780
|
+
var _a;
|
|
781
|
+
const width = this.tooltip.node().getBoundingClientRect().width;
|
|
782
|
+
// Single bar
|
|
783
|
+
if ('serie' in data) {
|
|
784
|
+
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
785
|
+
const diff = this.xScale(data.value) / 2 - width / 2;
|
|
786
|
+
this.tooltip
|
|
787
|
+
.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 )`)
|
|
788
|
+
.style('max-width', this.xScale.range()[1] + 'px');
|
|
789
|
+
this.tooltip
|
|
790
|
+
.select('digi-icon-caret-up')
|
|
791
|
+
.style('position', 'absolute')
|
|
792
|
+
.style('top', '-12px')
|
|
793
|
+
.style('left', '0')
|
|
794
|
+
.style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
|
|
795
|
+
}
|
|
796
|
+
else {
|
|
797
|
+
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);
|
|
798
|
+
const barIndex = ((this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1)) - (this.xScale.bandwidth() / this.dataWidth) / 2;
|
|
799
|
+
// This should be where the x-axis starts
|
|
800
|
+
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
801
|
+
// Creating adjustment for tooltip to not appear outside of chart
|
|
802
|
+
const spaceToSVGEdge = 5;
|
|
803
|
+
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;
|
|
804
|
+
this.tooltip
|
|
805
|
+
.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) )`);
|
|
806
|
+
this.tooltip
|
|
807
|
+
.select('digi-icon-caret-down')
|
|
808
|
+
.style('position', 'absolute')
|
|
809
|
+
.style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
|
|
810
|
+
.style('bottom', '-12px');
|
|
811
|
+
}
|
|
755
812
|
}
|
|
756
813
|
else {
|
|
757
|
-
this.
|
|
758
|
-
.
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
.
|
|
762
|
-
.
|
|
763
|
-
.
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
.
|
|
814
|
+
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
815
|
+
console.log('helloo');
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
819
|
+
const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
|
|
820
|
+
const yMax = d3.max(data.series.map(elem => elem.value));
|
|
821
|
+
// Creating adjustment for tooltip to not appear outside of chart
|
|
822
|
+
const spaceToSVGEdge = 5;
|
|
823
|
+
const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (translatePoint + width / 2) ? (((translatePoint + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
|
|
824
|
+
this.tooltip
|
|
825
|
+
.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) )`);
|
|
826
|
+
this.tooltip
|
|
827
|
+
.select('digi-icon-caret-down')
|
|
828
|
+
.style('position', 'absolute')
|
|
829
|
+
.style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
|
|
830
|
+
.style('bottom', '-12px');
|
|
831
|
+
}
|
|
767
832
|
}
|
|
768
833
|
};
|
|
769
834
|
// Once texts has fully loaded, we can recompute some sizes
|
|
770
835
|
this.recomputeTextSize = () => {
|
|
771
836
|
var _a, _b;
|
|
772
837
|
if (this.afVariation == BarChartVariation.Horizontal)
|
|
773
|
-
this.
|
|
838
|
+
this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
|
|
774
839
|
this.tickSizes();
|
|
775
|
-
this.
|
|
776
|
-
if ((_b = (_a = this.
|
|
777
|
-
this.
|
|
840
|
+
this.barChartContainer.selectAll('.barGroup').data(this.mappedData);
|
|
841
|
+
if ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
|
|
842
|
+
this.textSelection.remove();
|
|
778
843
|
this.initBarText();
|
|
779
844
|
};
|
|
780
845
|
// Removes resize observer for chart and inits table
|
|
781
846
|
this.activateTable = (event) => {
|
|
782
847
|
this.closeTooltip();
|
|
783
848
|
this.barChartObserver.disconnect();
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
786
|
-
d3.select(this.
|
|
787
|
-
d3.select(this._host).select('.chartButton').style('display', null);
|
|
849
|
+
this.status.innerHTML = '<p>Visas som tabell</p>';
|
|
850
|
+
d3.select(this.host).select('.tableButton').style('display', 'none');
|
|
851
|
+
d3.select(this.host).select('.chartButton').style('display', null);
|
|
788
852
|
event.target.nextSibling.lastChild.focus();
|
|
789
853
|
const duration = 150;
|
|
790
|
-
this.
|
|
854
|
+
this.svg
|
|
791
855
|
.attr('opacity', 1)
|
|
792
856
|
.transition('fadeout')
|
|
793
857
|
.duration(duration)
|
|
794
858
|
.attr('opacity', 0)
|
|
795
859
|
.on('end', () => {
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
860
|
+
this.svg.remove();
|
|
861
|
+
d3.select(this.legendDiv).select('.legend').selectAll('.legendChip').remove();
|
|
862
|
+
this.legendDiv.style['display'] = 'none';
|
|
863
|
+
this.tableDiv.style['display'] = 'block';
|
|
799
864
|
this.setTableContent();
|
|
800
865
|
this.setTableDimensions();
|
|
801
|
-
d3.select(this.
|
|
866
|
+
d3.select(this.tableDiv)
|
|
802
867
|
.style('opacity', 0)
|
|
803
868
|
.transition('fadein')
|
|
804
869
|
.duration(duration)
|
|
805
870
|
.style('opacity', 1);
|
|
871
|
+
this.chartDiv.style['display'] = 'none';
|
|
806
872
|
});
|
|
807
|
-
d3.select(this.
|
|
873
|
+
d3.select(this.legendDiv)
|
|
808
874
|
.style('opacity', 1)
|
|
809
875
|
.transition('fadeout')
|
|
810
876
|
.duration(duration)
|
|
@@ -812,12 +878,12 @@ export class barChart {
|
|
|
812
878
|
};
|
|
813
879
|
// Removes observer and calls init functions for line chart
|
|
814
880
|
this.reInitChart = (event) => {
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
d3.select(this.
|
|
818
|
-
d3.select(this._host).select('.chartButton').style('display', 'none');
|
|
881
|
+
this.status.innerHTML = '<p>Visas som diagram</p>';
|
|
882
|
+
d3.select(this.host).select('.tableButton').style('display', null);
|
|
883
|
+
d3.select(this.host).select('.chartButton').style('display', 'none');
|
|
819
884
|
event.target.previousSibling.lastChild.focus();
|
|
820
|
-
const table = d3.select(this.
|
|
885
|
+
const table = d3.select(this.tableDiv);
|
|
886
|
+
const duration = 150;
|
|
821
887
|
table
|
|
822
888
|
.style('opacity', 1)
|
|
823
889
|
.transition()
|
|
@@ -825,12 +891,19 @@ export class barChart {
|
|
|
825
891
|
.style('opacity', 0)
|
|
826
892
|
.on('end', () => {
|
|
827
893
|
table.style('display', 'none');
|
|
894
|
+
this.chartDiv.style['display'] = 'flex';
|
|
895
|
+
this.legendDiv.style['display'] = 'grid';
|
|
828
896
|
this.initChain();
|
|
829
|
-
this.
|
|
897
|
+
this.svg
|
|
830
898
|
.attr('opacity', 0)
|
|
831
899
|
.transition()
|
|
832
|
-
.duration(
|
|
900
|
+
.duration(duration)
|
|
833
901
|
.attr('opacity', 1);
|
|
902
|
+
d3.select(this.legendDiv)
|
|
903
|
+
.style('opacity', 0)
|
|
904
|
+
.transition('fadeout')
|
|
905
|
+
.duration(duration)
|
|
906
|
+
.style('opacity', 1);
|
|
834
907
|
});
|
|
835
908
|
};
|
|
836
909
|
this.afVariation = BarChartVariation.Vertical;
|
|
@@ -840,80 +913,113 @@ export class barChart {
|
|
|
840
913
|
}
|
|
841
914
|
afChartDataUpdate(data) {
|
|
842
915
|
if (typeof data != 'string')
|
|
843
|
-
this.
|
|
916
|
+
this.chartData = data;
|
|
844
917
|
else
|
|
845
|
-
this.
|
|
918
|
+
this.chartData = JSON.parse(data);
|
|
919
|
+
this.mappedData = this.reshapeData();
|
|
920
|
+
// checking for width of each tick
|
|
921
|
+
this.mappedData.forEach((elem) => {
|
|
922
|
+
if (elem.series.length > this.dataWidth)
|
|
923
|
+
this.dataWidth = elem.series.length;
|
|
924
|
+
});
|
|
925
|
+
if (this.dataWidth > 1)
|
|
926
|
+
this.barGap = 1;
|
|
846
927
|
}
|
|
847
928
|
initSvg() {
|
|
848
929
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
849
930
|
// Fetch number formatting
|
|
850
|
-
this.
|
|
851
|
-
maximumSignificantDigits: (_c = (_b = (_a = this.
|
|
852
|
-
notation: ((_f = (_e = (_d = this.
|
|
931
|
+
this.numberFormat = {
|
|
932
|
+
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,
|
|
933
|
+
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)
|
|
853
934
|
? 'compact'
|
|
854
935
|
: 'standard'
|
|
855
936
|
};
|
|
856
|
-
d3.select(this.
|
|
857
|
-
this.
|
|
858
|
-
.select(this.
|
|
937
|
+
d3.select(this.chartDiv).select('.chartSVG').remove();
|
|
938
|
+
this.maxHeight = (_g = d3
|
|
939
|
+
.select(this.host)
|
|
859
940
|
.node()
|
|
860
941
|
.parentNode) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().height;
|
|
861
|
-
this.barChartObserver.observe(this.
|
|
942
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
862
943
|
// Getting rem-size
|
|
863
|
-
this.
|
|
864
|
-
this.setMinMax();
|
|
944
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
865
945
|
this.setDims();
|
|
946
|
+
this.setMinMax();
|
|
866
947
|
this.setMargins();
|
|
867
948
|
// Appending svg
|
|
868
|
-
this.
|
|
869
|
-
.select(this.
|
|
949
|
+
this.svg = d3
|
|
950
|
+
.select(this.chartDiv)
|
|
870
951
|
.append('svg')
|
|
952
|
+
.attr('class', 'chartSVG')
|
|
871
953
|
.attr('aria-hidden', true)
|
|
872
954
|
.attr('role', 'img')
|
|
873
|
-
.attr('aria-label', this.
|
|
874
|
-
? 'Stapeldiagram om ' + this.
|
|
875
|
-
: 'Stapeldiagram')
|
|
876
|
-
|
|
955
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
956
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
957
|
+
: 'Stapeldiagram')
|
|
958
|
+
.attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
|
|
959
|
+
}
|
|
960
|
+
initLegend() {
|
|
961
|
+
const rectSize = 18;
|
|
962
|
+
const legendChips = d3.select(this.legendDiv).select('.legend')
|
|
963
|
+
.style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
|
|
964
|
+
.selectAll('.legendChip')
|
|
965
|
+
.data(this.chartData.data.series.map(serie => serie.title))
|
|
966
|
+
.join('div')
|
|
967
|
+
.attr('class', 'legendChip')
|
|
968
|
+
.style('display', 'flex')
|
|
969
|
+
.style('flex-direction', 'row')
|
|
970
|
+
.style('align-items', 'center')
|
|
971
|
+
.style('gap', '0.25rem')
|
|
972
|
+
.style('cursor', 'default')
|
|
973
|
+
.on('mouseenter', (_event, serie) => this.highlightBars(serie))
|
|
974
|
+
.on('mouseleave', this.resetBarColor);
|
|
975
|
+
legendChips.append('svg')
|
|
976
|
+
.attr('width', rectSize)
|
|
977
|
+
.attr('height', rectSize)
|
|
978
|
+
.append('rect')
|
|
979
|
+
.attr('x', 0)
|
|
980
|
+
.attr('y', 0)
|
|
981
|
+
.attr('width', rectSize)
|
|
982
|
+
.attr('height', rectSize)
|
|
983
|
+
.attr('rx', 4)
|
|
984
|
+
.attr('ry', 4)
|
|
985
|
+
.attr('fill', (title) => this.colorFunction(title));
|
|
986
|
+
legendChips.append('span').text((d) => d);
|
|
877
987
|
}
|
|
878
988
|
initToolTip() {
|
|
879
989
|
// Getting handle for tooltip
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
882
|
-
this._tooltipHeading =
|
|
883
|
-
'h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1); // increment heading level by one
|
|
990
|
+
this.tooltip = d3.select('#' + this.afId);
|
|
991
|
+
this.tooltip.select('.close').on('click', this.closeTooltip);
|
|
884
992
|
// Add heading placeholder for heading
|
|
885
|
-
this.
|
|
886
|
-
.
|
|
887
|
-
.append(this.
|
|
993
|
+
this.tooltip
|
|
994
|
+
.select('.tooltipBody')
|
|
995
|
+
.append('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1)) // increment heading level by one
|
|
888
996
|
.attr('class', 'tooltipHeading') // Adding class to try to dodge global css classes
|
|
889
997
|
.style('font-size', '1rem')
|
|
890
|
-
.style('margin', '0 0.75rem')
|
|
998
|
+
.style('margin', '0 0.75rem 0.5rem 0 ')
|
|
891
999
|
.style('font-weight', '500');
|
|
1000
|
+
this.tooltip.style('visibility', 'hidden');
|
|
892
1001
|
}
|
|
893
1002
|
initEmpty() {
|
|
894
|
-
d3.select(this.
|
|
895
|
-
this.
|
|
896
|
-
.select(this.
|
|
1003
|
+
d3.select(this.chartDiv).select('svg').remove();
|
|
1004
|
+
this.maxHeight = d3
|
|
1005
|
+
.select(this.host)
|
|
897
1006
|
.node()
|
|
898
1007
|
.parentNode.getBoundingClientRect().height;
|
|
899
|
-
this.barChartObserver.observe(this.
|
|
1008
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
900
1009
|
// Getting rem-size
|
|
901
|
-
this.
|
|
902
|
-
//this.setMinMax();
|
|
903
|
-
this.setDims();
|
|
1010
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
904
1011
|
this.setMargins();
|
|
905
1012
|
// Appending svg
|
|
906
|
-
this.
|
|
907
|
-
.select(this.
|
|
1013
|
+
this.svg = d3
|
|
1014
|
+
.select(this.chartDiv)
|
|
908
1015
|
.append('svg')
|
|
909
1016
|
.attr('aria-hidden', true)
|
|
910
1017
|
.attr('role', 'img')
|
|
911
|
-
.attr('aria-label', this.
|
|
912
|
-
? 'Stapeldiagram om ' + this.
|
|
1018
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1019
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
913
1020
|
: 'Stapeldiagram');
|
|
914
|
-
this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
|
|
915
1021
|
// Hide unusable components
|
|
916
|
-
d3.select(this.
|
|
1022
|
+
d3.select(this.titleDiv)
|
|
917
1023
|
.select(this.afHeadingLevel)
|
|
918
1024
|
.html(`${_t.loading}...`);
|
|
919
1025
|
this.initYAxis(true);
|
|
@@ -921,105 +1027,94 @@ export class barChart {
|
|
|
921
1027
|
this.loadingState(true);
|
|
922
1028
|
}
|
|
923
1029
|
loadingState(empty) {
|
|
924
|
-
this.
|
|
1030
|
+
this.loading = true;
|
|
925
1031
|
// close potentially open tooltip
|
|
926
|
-
if (this.
|
|
1032
|
+
if (this.tooltip)
|
|
927
1033
|
this.closeTooltip();
|
|
928
|
-
d3.select(this.
|
|
1034
|
+
d3.select(this.host).select('.tableButton').style('display', 'none');
|
|
929
1035
|
const newHeight = this.setDims();
|
|
930
1036
|
this.transitionTitle();
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
1037
|
+
this.xAxisHandle.selectAll('.tick').remove();
|
|
1038
|
+
this.xAxisHandle.select('path').remove();
|
|
1039
|
+
this.svg
|
|
934
1040
|
.transition()
|
|
935
1041
|
.duration(400)
|
|
936
|
-
.attr('
|
|
937
|
-
|
|
938
|
-
.attr('aria-label', this._chartData && this._chartData.title
|
|
939
|
-
? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
|
|
1042
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1043
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
940
1044
|
: 'Stapeldiagram');
|
|
941
1045
|
this.setMargins(true);
|
|
942
|
-
d3.select(this.
|
|
1046
|
+
d3.select(this.titleDiv)
|
|
943
1047
|
.select(this.afHeadingLevel)
|
|
944
1048
|
.html(`${_t.loading}...`);
|
|
945
1049
|
// Waiting with observing for changes until transition to regular bars is complete
|
|
946
|
-
this.
|
|
1050
|
+
this.barChartContainer
|
|
947
1051
|
.transition('position')
|
|
948
1052
|
.duration(this.defaultDuration)
|
|
949
1053
|
.ease(d3.easePolyInOut)
|
|
950
|
-
.attr('transform', `translate(${this.
|
|
1054
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
951
1055
|
// If there is a new height
|
|
952
1056
|
if (newHeight) {
|
|
953
1057
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
954
1058
|
this.afVariation === BarChartVariation.Horizontal
|
|
955
|
-
? this.
|
|
956
|
-
this.
|
|
957
|
-
this.
|
|
1059
|
+
? this.yScale.range([
|
|
1060
|
+
this.margin.top,
|
|
1061
|
+
this.dims.height - this.margin.bottom
|
|
958
1062
|
])
|
|
959
|
-
: this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
1063
|
+
: this.yScale.range([
|
|
1064
|
+
this.dims.height - this.margin.bottom,
|
|
1065
|
+
this.margin.top
|
|
962
1066
|
]);
|
|
963
|
-
this.
|
|
1067
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
964
1068
|
}
|
|
965
1069
|
const animateBars = () => {
|
|
966
|
-
this.
|
|
967
|
-
this.
|
|
1070
|
+
this.barChartContainer.selectAll('.barGroup').remove();
|
|
1071
|
+
this.barSelection = this.barChartContainer
|
|
968
1072
|
.selectAll('barGroup')
|
|
969
|
-
.data(this.
|
|
1073
|
+
.data(this.mappedData)
|
|
970
1074
|
.join('g')
|
|
971
1075
|
.attr('class', 'barGroup')
|
|
972
|
-
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '
|
|
1076
|
+
.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''))
|
|
973
1077
|
.append('rect')
|
|
974
1078
|
.attr('class', 'bar')
|
|
975
1079
|
.style('cursor', 'pointer');
|
|
976
|
-
this.
|
|
1080
|
+
this.barSelection
|
|
977
1081
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
978
|
-
? this.
|
|
979
|
-
: this.
|
|
980
|
-
.attr('x',
|
|
981
|
-
? 2
|
|
982
|
-
: this._xScale(d.key))
|
|
1082
|
+
? this.yScale(d.key)
|
|
1083
|
+
: this.dims.height - this.margin.bottom)
|
|
1084
|
+
.attr('x', this.xFunction)
|
|
983
1085
|
.attr('ry', 4)
|
|
984
1086
|
.attr('rx', 4)
|
|
985
|
-
.attr('width',
|
|
986
|
-
? this._xScale(d.value)
|
|
987
|
-
: this._xScale.bandwidth())
|
|
1087
|
+
.attr('width', this.widthFunction)
|
|
988
1088
|
.attr('height', () => 0)
|
|
989
|
-
//.attr('height', (d: any) => this.afVariation === BarChartVariation.Horizontal ? this._yScale.bandwidth() : (this._dims.height - this._margin.bottom) - this._yScale(d.value))
|
|
990
1089
|
.attr('fill', 'gray')
|
|
991
1090
|
.transition()
|
|
992
1091
|
.duration(400)
|
|
993
1092
|
.delay((...[, i]) => i * 150)
|
|
994
|
-
.attr('y',
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
998
|
-
? this._yScale.bandwidth()
|
|
999
|
-
: this._dims.height - this._margin.bottom - this._yScale(d.value));
|
|
1000
|
-
this._barSelection
|
|
1093
|
+
.attr('y', this.yFunction)
|
|
1094
|
+
.attr('height', this.heightFunction);
|
|
1095
|
+
this.barSelection
|
|
1001
1096
|
.transition()
|
|
1002
1097
|
.duration(400)
|
|
1003
1098
|
.ease(d3.easeLinear)
|
|
1004
1099
|
.delay((...[, i]) => i * 150 + 400)
|
|
1005
1100
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1006
|
-
? this.
|
|
1007
|
-
: this.
|
|
1101
|
+
? this.yScale(d.key)
|
|
1102
|
+
: this.dims.height - this.margin.bottom)
|
|
1008
1103
|
.attr('height', () => 0)
|
|
1009
1104
|
.on('end', (...[, i]) => {
|
|
1010
|
-
if (i === this.
|
|
1105
|
+
if (i === this.placeholderTicks.length - 1)
|
|
1011
1106
|
animateBars();
|
|
1012
1107
|
});
|
|
1013
1108
|
};
|
|
1014
1109
|
const flattenBars = () => {
|
|
1015
|
-
this.
|
|
1110
|
+
this.barChartContainer
|
|
1016
1111
|
.selectAll('rect')
|
|
1017
1112
|
.transition()
|
|
1018
1113
|
.duration(200)
|
|
1019
1114
|
.ease(d3.easeLinear)
|
|
1020
1115
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1021
|
-
? this.
|
|
1022
|
-
: this.
|
|
1116
|
+
? this.yScale(d.key)
|
|
1117
|
+
: this.dims.height - this.margin.bottom)
|
|
1023
1118
|
.attr('height', () => 0)
|
|
1024
1119
|
.on('end', (...[, i]) => {
|
|
1025
1120
|
if (i != 0)
|
|
@@ -1027,7 +1122,7 @@ export class barChart {
|
|
|
1027
1122
|
this.setYScale(true);
|
|
1028
1123
|
this.setValueTicks();
|
|
1029
1124
|
this.setXScale(true);
|
|
1030
|
-
this.barChartObserver.observe(this.
|
|
1125
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
1031
1126
|
animateBars();
|
|
1032
1127
|
});
|
|
1033
1128
|
};
|
|
@@ -1037,20 +1132,20 @@ export class barChart {
|
|
|
1037
1132
|
flattenBars();
|
|
1038
1133
|
}
|
|
1039
1134
|
transitionTitle() {
|
|
1040
|
-
const height = d3.select(this.
|
|
1041
|
-
d3.select(this.
|
|
1042
|
-
.style('height', this.
|
|
1135
|
+
const height = d3.select(this.titleDiv).style('height');
|
|
1136
|
+
d3.select(this.titleDiv)
|
|
1137
|
+
.style('height', this.prevHeight)
|
|
1043
1138
|
.transition('adjust')
|
|
1044
1139
|
.duration(400)
|
|
1045
1140
|
.style('height', height)
|
|
1046
|
-
.on('end', () => d3.select(this.
|
|
1141
|
+
.on('end', () => d3.select(this.titleDiv).style('height', null));
|
|
1047
1142
|
}
|
|
1048
1143
|
initYAxis(empty) {
|
|
1049
1144
|
this.setYScale(empty);
|
|
1050
|
-
this.
|
|
1145
|
+
this.barChartContainer = this.svg
|
|
1051
1146
|
.append('g')
|
|
1052
|
-
.attr('transform', `translate(${this.
|
|
1053
|
-
this.
|
|
1147
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1148
|
+
this.yAxisHandle = this.barChartContainer.append('g');
|
|
1054
1149
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
1055
1150
|
this.tickSizes();
|
|
1056
1151
|
this.setNamedTicks();
|
|
@@ -1062,32 +1157,32 @@ export class barChart {
|
|
|
1062
1157
|
// Sets the largest and smallest value from series 0, Should only be used when not loading
|
|
1063
1158
|
setMinMax() {
|
|
1064
1159
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1065
|
-
const max = d3.max((_a = this.
|
|
1066
|
-
? d3.max((_b = this.
|
|
1160
|
+
const max = d3.max((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
|
|
1161
|
+
? d3.max((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
|
|
1067
1162
|
: 0;
|
|
1068
|
-
const min = d3.min([0, d3.min((_c = this.
|
|
1069
|
-
? d3.min([0, d3.min((_d = this.
|
|
1163
|
+
const min = d3.min([0, d3.min((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
|
|
1164
|
+
? d3.min([0, d3.min((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
|
|
1070
1165
|
: 0;
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1073
|
-
this.
|
|
1166
|
+
this.maxVal = max;
|
|
1167
|
+
this.minVal = min;
|
|
1168
|
+
this.tempScale = d3
|
|
1074
1169
|
.scaleLinear()
|
|
1075
|
-
.domain([this.
|
|
1076
|
-
.nice(((_f = (_e = this.
|
|
1077
|
-
? (_g = this.
|
|
1170
|
+
.domain([this.minVal, this.maxVal])
|
|
1171
|
+
.nice(((_f = (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
|
|
1172
|
+
? (_g = this.chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
|
|
1078
1173
|
: 3)
|
|
1079
1174
|
.domain();
|
|
1080
1175
|
}
|
|
1081
1176
|
// Setting up x-axis, getting margin.right in this function
|
|
1082
1177
|
initXAxis(empty) {
|
|
1083
1178
|
this.setXScale(empty);
|
|
1084
|
-
this.
|
|
1179
|
+
this.xAxisHandle = this.barChartContainer
|
|
1085
1180
|
.append('g')
|
|
1086
|
-
.attr('transform', `translate(0,${this.
|
|
1181
|
+
.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1087
1182
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
1088
1183
|
this.setValueTicks();
|
|
1089
1184
|
// Removing first tick, because it aligns with y-axis domain
|
|
1090
|
-
this.
|
|
1185
|
+
//this.xAxisHandle.select('.tick').select('line').remove();
|
|
1091
1186
|
}
|
|
1092
1187
|
else {
|
|
1093
1188
|
if (!empty) {
|
|
@@ -1099,58 +1194,59 @@ export class barChart {
|
|
|
1099
1194
|
}
|
|
1100
1195
|
// Initializing bars, can only handle one series of bars for now
|
|
1101
1196
|
initBars() {
|
|
1102
|
-
this.
|
|
1197
|
+
this.barSelection = this.barChartContainer
|
|
1103
1198
|
.selectAll('barGroup')
|
|
1104
|
-
.data(this.
|
|
1199
|
+
.data(this.mappedData)
|
|
1105
1200
|
.join('g')
|
|
1106
1201
|
.attr('class', 'barGroup')
|
|
1107
|
-
.attr('id', (d) =>
|
|
1108
|
-
|
|
1202
|
+
.attr('id', (d) => this.barGroupID(d.key));
|
|
1203
|
+
this.barSelection.selectAll('.barGroup')
|
|
1204
|
+
.data((d) => {
|
|
1205
|
+
return d.series;
|
|
1206
|
+
})
|
|
1207
|
+
.join('rect')
|
|
1109
1208
|
.attr('class', 'bar')
|
|
1110
|
-
.style('cursor', 'pointer')
|
|
1111
|
-
|
|
1112
|
-
.attr('y',
|
|
1113
|
-
? this._yScale(d.key)
|
|
1114
|
-
: this._yScale(d.value))
|
|
1115
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1116
|
-
? 2
|
|
1117
|
-
: this._xScale(d.key))
|
|
1209
|
+
.style('cursor', 'pointer')
|
|
1210
|
+
.attr('x', this.xFunction)
|
|
1211
|
+
.attr('y', this.yFunction)
|
|
1118
1212
|
.attr('ry', 4)
|
|
1119
1213
|
.attr('rx', 4)
|
|
1120
|
-
.attr('width',
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1124
|
-
? this._yScale.bandwidth()
|
|
1125
|
-
: this._dims.height - this._margin.bottom - this._yScale(d.value))
|
|
1126
|
-
.attr('fill', '#00005a')
|
|
1214
|
+
.attr('width', this.widthFunction)
|
|
1215
|
+
.attr('height', this.heightFunction)
|
|
1216
|
+
.attr('fill', (d) => this.colorFunction(d.serie))
|
|
1127
1217
|
.on('mouseenter', this.hover)
|
|
1128
1218
|
.on('mouseleave', this.hoverOut)
|
|
1129
1219
|
.on('click', this.openTooltip);
|
|
1130
1220
|
}
|
|
1131
1221
|
initBarText() {
|
|
1132
|
-
|
|
1222
|
+
var _a, _b;
|
|
1223
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
1224
|
+
return;
|
|
1225
|
+
this.textSelection = this.barChartContainer
|
|
1133
1226
|
.selectAll('.barGroup')
|
|
1134
1227
|
.append('text');
|
|
1135
|
-
this.
|
|
1136
|
-
.text((d) =>
|
|
1228
|
+
this.textSelection
|
|
1229
|
+
.text((d) => {
|
|
1230
|
+
return d.value ? d.value.toLocaleString(undefined, this.numberFormat) : undefined;
|
|
1231
|
+
})
|
|
1137
1232
|
.attr('class', 'barText')
|
|
1138
1233
|
.attr('font-size', this.fontSize)
|
|
1139
1234
|
.attr('font-weight', '600')
|
|
1140
1235
|
.attr('text-anchor', 'end')
|
|
1141
1236
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1142
|
-
? this.
|
|
1143
|
-
: this.
|
|
1237
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
1238
|
+
: this.yScale(d.value))
|
|
1144
1239
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1145
|
-
? this.
|
|
1146
|
-
: this.
|
|
1240
|
+
? this.xScale(d)
|
|
1241
|
+
: this.xScale(d.key) + this.xScale.bandwidth())
|
|
1147
1242
|
.attr('dy', () => this.afVariation == BarChartVariation.Horizontal ? '0.35em' : '-0.25em')
|
|
1148
1243
|
.style('pointer-events', 'none')
|
|
1149
|
-
.style('display', () => { var _a, _b; return ((_b = (_a = this.
|
|
1244
|
+
.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'; });
|
|
1150
1245
|
this.adjustBarText();
|
|
1151
1246
|
}
|
|
1152
1247
|
initChain() {
|
|
1153
1248
|
this.initSvg();
|
|
1249
|
+
this.initLegend();
|
|
1154
1250
|
this.initToolTip();
|
|
1155
1251
|
this.initYAxis();
|
|
1156
1252
|
this.initXAxis();
|
|
@@ -1160,18 +1256,18 @@ export class barChart {
|
|
|
1160
1256
|
async updateChain() {
|
|
1161
1257
|
var _a, _b, _c, _d, _e, _f;
|
|
1162
1258
|
// Fetch number formatting
|
|
1163
|
-
this.
|
|
1164
|
-
maximumSignificantDigits: (_c = (_b = (_a = this.
|
|
1165
|
-
notation: ((_f = (_e = (_d = this.
|
|
1259
|
+
this.numberFormat = {
|
|
1260
|
+
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,
|
|
1261
|
+
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)
|
|
1166
1262
|
? 'compact'
|
|
1167
1263
|
: 'standard'
|
|
1168
1264
|
};
|
|
1169
|
-
if (this.
|
|
1265
|
+
if (this.tooltip)
|
|
1170
1266
|
this.closeTooltip();
|
|
1171
1267
|
// Check whether we are in table mode or not
|
|
1172
|
-
if (this.
|
|
1173
|
-
if (!this.
|
|
1174
|
-
d3.select(this.
|
|
1268
|
+
if (this.tableDiv.style['display'] == 'block') {
|
|
1269
|
+
if (!this.chartData.title) {
|
|
1270
|
+
d3.select(this.titleDiv)
|
|
1175
1271
|
.select(this.afHeadingLevel)
|
|
1176
1272
|
.html(`${_t.loading}...`);
|
|
1177
1273
|
}
|
|
@@ -1183,9 +1279,9 @@ export class barChart {
|
|
|
1183
1279
|
}
|
|
1184
1280
|
else {
|
|
1185
1281
|
// displaying legend again
|
|
1186
|
-
if (this.
|
|
1187
|
-
d3.select(this.
|
|
1188
|
-
d3.select(this.
|
|
1282
|
+
if (this.loading) {
|
|
1283
|
+
d3.select(this.host).select('.tableButton').style('display', null);
|
|
1284
|
+
d3.select(this.legendDiv).style('display', null);
|
|
1189
1285
|
this.initToolTip();
|
|
1190
1286
|
}
|
|
1191
1287
|
// Disconnect resize observer while adjusting things
|
|
@@ -1193,73 +1289,69 @@ export class barChart {
|
|
|
1193
1289
|
this.setMinMax();
|
|
1194
1290
|
const newHeight = this.setDims();
|
|
1195
1291
|
this.transitionTitle();
|
|
1196
|
-
this.
|
|
1197
|
-
.
|
|
1198
|
-
.
|
|
1199
|
-
.attr('width', this._dims.width)
|
|
1200
|
-
.attr('height', this._dims.height)
|
|
1201
|
-
.attr('aria-label', this._chartData && this._chartData.title
|
|
1202
|
-
? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
|
|
1292
|
+
this.svg
|
|
1293
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1294
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1203
1295
|
: 'Stapeldiagram');
|
|
1204
1296
|
this.setMargins();
|
|
1205
1297
|
// Waiting with observing for changes until transition to regular bars is complete
|
|
1206
|
-
this.
|
|
1298
|
+
this.barChartContainer
|
|
1207
1299
|
.transition('position')
|
|
1208
1300
|
.duration(this.defaultDuration)
|
|
1209
1301
|
.ease(d3.easePolyInOut)
|
|
1210
|
-
.attr('transform', `translate(${this.
|
|
1211
|
-
if (!this.
|
|
1212
|
-
this.
|
|
1302
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1303
|
+
if (!this.loading)
|
|
1304
|
+
this.barChartContainer.on('end', () => this.barChartObserver.observe(this.chartDiv));
|
|
1213
1305
|
// If there is a new height
|
|
1214
1306
|
if (newHeight) {
|
|
1215
1307
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1216
1308
|
this.afVariation === BarChartVariation.Horizontal
|
|
1217
|
-
? this.
|
|
1218
|
-
this.
|
|
1219
|
-
this.
|
|
1309
|
+
? this.yScale.range([
|
|
1310
|
+
this.margin.top,
|
|
1311
|
+
this.dims.height - this.margin.bottom
|
|
1220
1312
|
])
|
|
1221
|
-
: this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1313
|
+
: this.yScale.range([
|
|
1314
|
+
this.dims.height - this.margin.bottom,
|
|
1315
|
+
this.margin.top
|
|
1224
1316
|
]);
|
|
1225
|
-
this.
|
|
1317
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1226
1318
|
}
|
|
1227
1319
|
this.tickSizes();
|
|
1228
1320
|
this.setYScale();
|
|
1229
1321
|
this.setXScale();
|
|
1230
1322
|
this.setTickInteraction();
|
|
1231
|
-
this.
|
|
1232
|
-
? this.
|
|
1233
|
-
: this.
|
|
1323
|
+
this.tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
|
|
1324
|
+
? this.xScale.ticks().map((tick) => tick.toLocaleString())
|
|
1325
|
+
: this.yScale.ticks().map((tick) => tick.toLocaleString()));
|
|
1234
1326
|
this.setValueTicks(true);
|
|
1235
|
-
if (this.
|
|
1236
|
-
d3.select(this.
|
|
1327
|
+
if (this.loading) {
|
|
1328
|
+
d3.select(this.legendDiv)
|
|
1237
1329
|
.style('opacity', 0)
|
|
1238
1330
|
.transition()
|
|
1239
1331
|
.duration(400)
|
|
1240
1332
|
.ease(d3.easePolyInOut)
|
|
1241
1333
|
.style('opacity', 1);
|
|
1242
|
-
this.
|
|
1243
|
-
this.getTextSize(this.
|
|
1334
|
+
this.margin.right =
|
|
1335
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
1244
1336
|
this.yTickSize +
|
|
1245
1337
|
this.tickPadding;
|
|
1246
1338
|
// Update x-axis with new width
|
|
1247
|
-
this.
|
|
1339
|
+
this.xScale.range([
|
|
1248
1340
|
0,
|
|
1249
|
-
this.
|
|
1341
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
1250
1342
|
]);
|
|
1251
1343
|
this.setNamedTicks(true);
|
|
1252
1344
|
// Stop animation
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1345
|
+
this.barSelection.selectAll('.barGroup').on('end', null);
|
|
1346
|
+
this.loading = false;
|
|
1347
|
+
this.barSelection
|
|
1256
1348
|
.transition()
|
|
1257
1349
|
.duration(this.defaultDuration)
|
|
1258
1350
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1259
|
-
? this.
|
|
1260
|
-
: this.
|
|
1351
|
+
? this.yScale(d.key)
|
|
1352
|
+
: this.dims.height - this.margin.bottom)
|
|
1261
1353
|
.attr('height', () => 0)
|
|
1262
|
-
.on('end', (...[, i]) => i === this.
|
|
1354
|
+
.on('end', (...[, i]) => i === this.placeholderTicks.length - 1
|
|
1263
1355
|
? this.updateBars(true)
|
|
1264
1356
|
: null);
|
|
1265
1357
|
this.setTickInteraction();
|
|
@@ -1271,42 +1363,53 @@ export class barChart {
|
|
|
1271
1363
|
}
|
|
1272
1364
|
}
|
|
1273
1365
|
}
|
|
1366
|
+
// Getting correct color given index or name of data serie
|
|
1367
|
+
colorFunction(input) {
|
|
1368
|
+
if (typeof input === 'number')
|
|
1369
|
+
return this.evalColorVar(this.colorPalettes[input]);
|
|
1370
|
+
else {
|
|
1371
|
+
const index = this.chartData.data.series.findIndex((serie) => serie.title === input);
|
|
1372
|
+
if (index > 0)
|
|
1373
|
+
return this.evalColorVar(this.colorPalettes[index]);
|
|
1374
|
+
else
|
|
1375
|
+
return this.evalColorVar(this.colorPalettes[0]);
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1274
1378
|
// Resizing bar chart
|
|
1275
1379
|
resize() {
|
|
1276
|
-
var _a;
|
|
1277
1380
|
const newHeight = this.setDims();
|
|
1278
|
-
this.setMargins();
|
|
1279
|
-
|
|
1280
|
-
this.
|
|
1281
|
-
|
|
1282
|
-
this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
|
|
1381
|
+
//this.setMargins();
|
|
1382
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1383
|
+
this.margin.right =
|
|
1384
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
1283
1385
|
this.yTickSize +
|
|
1284
1386
|
this.tickPadding;
|
|
1285
1387
|
// If there is a new height
|
|
1286
1388
|
if (newHeight) {
|
|
1287
1389
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1288
1390
|
this.afVariation === BarChartVariation.Horizontal
|
|
1289
|
-
? this.
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1391
|
+
? this.yScale.range([
|
|
1392
|
+
this.margin.top,
|
|
1393
|
+
this.dims.height - this.margin.bottom
|
|
1292
1394
|
])
|
|
1293
|
-
: this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1395
|
+
: this.yScale.range([
|
|
1396
|
+
this.dims.height - this.margin.bottom,
|
|
1397
|
+
this.margin.top
|
|
1296
1398
|
]);
|
|
1297
|
-
this.
|
|
1399
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1298
1400
|
}
|
|
1299
1401
|
// Update x-axis with new width
|
|
1300
|
-
this.
|
|
1402
|
+
this.xScale.range([
|
|
1301
1403
|
0,
|
|
1302
|
-
this.
|
|
1404
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
1303
1405
|
]);
|
|
1304
1406
|
this.setNamedTicks();
|
|
1305
1407
|
this.setValueTicks();
|
|
1408
|
+
this.setTickInteraction();
|
|
1306
1409
|
this.adjustBarSize();
|
|
1307
1410
|
this.adjustBarText();
|
|
1308
|
-
if (this.
|
|
1309
|
-
this.positionTooltip(this.
|
|
1411
|
+
if (this.tooltip.style('visibility') !== 'hidden')
|
|
1412
|
+
this.positionTooltip(this.tooltipData);
|
|
1310
1413
|
}
|
|
1311
1414
|
// Returns the longest text from an array of strings
|
|
1312
1415
|
getLargestText(array) {
|
|
@@ -1319,30 +1422,33 @@ export class barChart {
|
|
|
1319
1422
|
});
|
|
1320
1423
|
return width;
|
|
1321
1424
|
}
|
|
1425
|
+
adjustColor(color, amount) {
|
|
1426
|
+
return '#' + color.replace(/^#/, '').replace(/../g, color => ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));
|
|
1427
|
+
}
|
|
1322
1428
|
componentWillLoad() {
|
|
1323
1429
|
this.afChartDataUpdate(this.afChartData);
|
|
1324
1430
|
}
|
|
1325
1431
|
componentDidLoad() {
|
|
1326
|
-
if (!this.
|
|
1327
|
-
this.
|
|
1432
|
+
if (!this.chartData || Object.keys(this.chartData).length === 0) {
|
|
1433
|
+
this.loading = true;
|
|
1328
1434
|
return this.initEmpty();
|
|
1329
1435
|
}
|
|
1330
1436
|
this.initChain();
|
|
1331
1437
|
document.fonts.ready.then(() => {
|
|
1332
1438
|
this.recomputeTextSize();
|
|
1333
1439
|
this.setNamedTicks();
|
|
1334
|
-
this.
|
|
1440
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1335
1441
|
});
|
|
1336
1442
|
}
|
|
1337
1443
|
disconnectedCallback() {
|
|
1338
1444
|
this.barChartObserver.disconnect();
|
|
1339
1445
|
}
|
|
1340
1446
|
componentWillUpdate() {
|
|
1341
|
-
this.
|
|
1447
|
+
this.prevHeight = d3.select(this.titleDiv).style('height');
|
|
1342
1448
|
}
|
|
1343
1449
|
componentDidUpdate() {
|
|
1344
|
-
if (this.
|
|
1345
|
-
Object.keys(this.
|
|
1450
|
+
if (this.tableDiv.style['display'] != 'block' &&
|
|
1451
|
+
Object.keys(this.chartData).length === 0) {
|
|
1346
1452
|
// Disconnect old barchartobserver while doing resizing
|
|
1347
1453
|
this.barChartObserver.disconnect();
|
|
1348
1454
|
return this.loadingState();
|
|
@@ -1351,15 +1457,15 @@ export class barChart {
|
|
|
1351
1457
|
}
|
|
1352
1458
|
// Not currently used
|
|
1353
1459
|
/*get cssModifiers() {
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1460
|
+
return {
|
|
1461
|
+
'digi-bar-chart--vertical': this.afVariation == 'vertical',
|
|
1462
|
+
'digi-bar-chart--horizontal': this.afVariation == 'horizontal'
|
|
1463
|
+
};
|
|
1464
|
+
}*/
|
|
1359
1465
|
// Returns pixelwidth of text given the current fontSize (costly function using .each)
|
|
1360
1466
|
getTextSize(text) {
|
|
1361
1467
|
const textWidth = [];
|
|
1362
|
-
const svg = d3.select(this.
|
|
1468
|
+
const svg = d3.select(this.chartDiv).append('svg');
|
|
1363
1469
|
svg
|
|
1364
1470
|
.selectAll('dummyText')
|
|
1365
1471
|
.data([text])
|
|
@@ -1374,21 +1480,18 @@ export class barChart {
|
|
|
1374
1480
|
svg.remove().exit();
|
|
1375
1481
|
return textWidth[0];
|
|
1376
1482
|
}
|
|
1377
|
-
// Setting table content from this.
|
|
1483
|
+
// Setting table content from this.chartData
|
|
1378
1484
|
setTableContent() {
|
|
1379
|
-
this.
|
|
1485
|
+
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>`;
|
|
1380
1486
|
}
|
|
1381
1487
|
setTableDimensions() {
|
|
1382
|
-
const table = d3.select(this.
|
|
1383
|
-
table
|
|
1384
|
-
// The last value is for compensating the padding set on the table element, changing padding in css, will need change in these two lines
|
|
1385
|
-
.style('height', this._dims.height + 'px');
|
|
1386
|
-
table.style('width', this._dims.width - this._rem * 0.65 + 'px');
|
|
1488
|
+
const table = d3.select(this.tableDiv);
|
|
1489
|
+
table.style('display', 'flex').style('height', '100%').style('width', '100%');
|
|
1387
1490
|
}
|
|
1388
1491
|
// Extracting all headings from data and returning a string with <th>-elements with headings
|
|
1389
1492
|
headings() {
|
|
1390
|
-
let headingsString = `<th scope="col">${this.
|
|
1391
|
-
this.
|
|
1493
|
+
let headingsString = `<th scope="col">${this.chartData.x}</th>`;
|
|
1494
|
+
this.chartData.data.series.forEach((elem) => {
|
|
1392
1495
|
headingsString = headingsString.concat(`<th scope="col">${elem.title}</th>`);
|
|
1393
1496
|
});
|
|
1394
1497
|
return headingsString;
|
|
@@ -1396,13 +1499,13 @@ export class barChart {
|
|
|
1396
1499
|
// Building the table body
|
|
1397
1500
|
tableBody() {
|
|
1398
1501
|
let body = '';
|
|
1399
|
-
if (this.
|
|
1400
|
-
const loopable = this.
|
|
1401
|
-
? this.
|
|
1402
|
-
: this.
|
|
1502
|
+
if (this.chartData && this.chartData.data) {
|
|
1503
|
+
const loopable = this.chartData.data.xValueNames
|
|
1504
|
+
? this.chartData.data.xValueNames
|
|
1505
|
+
: this.chartData.data.xValues;
|
|
1403
1506
|
loopable.forEach((elem, index) => {
|
|
1404
1507
|
let cells = '';
|
|
1405
|
-
this.
|
|
1508
|
+
this.chartData.data.series.forEach((serie) => {
|
|
1406
1509
|
cells = cells.concat(`<td>${serie.yValues[index] != null ? serie.yValues[index].toLocaleString() : '-'}</td>`);
|
|
1407
1510
|
});
|
|
1408
1511
|
body = body.concat(`<tr><th scope='row'>${elem}${cells}</th></tr>`);
|
|
@@ -1414,18 +1517,18 @@ export class barChart {
|
|
|
1414
1517
|
var _a, _b, _c, _d, _e;
|
|
1415
1518
|
// Setting header
|
|
1416
1519
|
let heading = '';
|
|
1417
|
-
if (this.
|
|
1418
|
-
if (!this.
|
|
1419
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1520
|
+
if (this.chartData) {
|
|
1521
|
+
if (!this.chartData.subTitle)
|
|
1522
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}>`;
|
|
1420
1523
|
else {
|
|
1421
|
-
if (!this.
|
|
1422
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1524
|
+
if (!this.chartData.infoText)
|
|
1525
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${this.chartData.subTitle}</p>`;
|
|
1423
1526
|
else
|
|
1424
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1425
|
-
<span style="display:block;margin-top:0.25rem;font-size:0.875rem;color:var(--digi--global--color--neutral--grayscale--darkest-3)">${this.
|
|
1527
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${(_a = this.chartData) === null || _a === void 0 ? void 0 : _a.subTitle}
|
|
1528
|
+
<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>`;
|
|
1426
1529
|
}
|
|
1427
1530
|
}
|
|
1428
|
-
return (h(Host, { key: '
|
|
1531
|
+
return (h(Host, { key: 'adbf9f1c26a8816a8d4b585b0fc7a0b9100bf252', ref: (el) => (this.host = el) }, h("div", { key: 'ee28dc5914be751e08c73253b80fd257c2e17bbb', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '6a0b051d3c26e9c34fb59d4ee323a10d1cb542e1', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '9e11623f0b35f394dc3655067625a37771f648d1', 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: '6e00e771521a10c0213ae6267ea2879c7ccc4b3c', slot: "icon" }), "Visa tabell"), h("digi-button", { key: 'a1eec7299c9cd273ceffa1f1689ee0c6297ce0a1', 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: '5361af6d17e4cd7d6217afd48c4a474fd905c8de', slot: "icon" }), "Visa diagram"), h("div", { key: '2efe2244c2105390580779f60a7c1accd5135d49', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '48f2316efe396309fd73510a2eea011c137e24ed', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '4f2f494517979cbb9de43945d5ffe17acbe6c814', class: "chartTooltip", id: this.afId }, h("div", { key: '36db97d0dcd4e2009cd33b4125b631eddae039ae', class: "tooltipBody" }), h("digi-icon-x", { key: 'b3ac9ec4b6cd6c2c666d475929c10c0aaba2b9e1', class: "close" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: 'f96ed8b4c527ba32de5dd5bdb58c367435ecbc04', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '3911352915f02a33231c2e0604a5073fb7203bd3', class: "legend" })), h("div", { key: '29c613f6af6e23b05748e230bad4c00156f30fd6', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
|
|
1429
1532
|
}
|
|
1430
1533
|
static get is() { return "digi-bar-chart"; }
|
|
1431
1534
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1511,13 +1614,13 @@ export class barChart {
|
|
|
1511
1614
|
"type": "string",
|
|
1512
1615
|
"mutable": true,
|
|
1513
1616
|
"complexType": {
|
|
1514
|
-
"original": "
|
|
1515
|
-
"resolved": "
|
|
1617
|
+
"original": "BarChartData | string",
|
|
1618
|
+
"resolved": "BarChartData | string",
|
|
1516
1619
|
"references": {
|
|
1517
|
-
"
|
|
1620
|
+
"BarChartData": {
|
|
1518
1621
|
"location": "import",
|
|
1519
|
-
"path": "../
|
|
1520
|
-
"id": "src/components/_chart/
|
|
1622
|
+
"path": "../interfaces/bar-chart-data.interface",
|
|
1623
|
+
"id": "src/components/_chart/interfaces/bar-chart-data.interface.ts::BarChartData"
|
|
1521
1624
|
}
|
|
1522
1625
|
}
|
|
1523
1626
|
},
|
|
@@ -1525,7 +1628,7 @@ export class barChart {
|
|
|
1525
1628
|
"optional": false,
|
|
1526
1629
|
"docs": {
|
|
1527
1630
|
"tags": [],
|
|
1528
|
-
"text": "Datan som ska visas upp i stapeldiagrammet, kan vara av antingen typen
|
|
1631
|
+
"text": "Datan som ska visas upp i stapeldiagrammet, kan vara av antingen typen BarChartData, eller str\u00E4ngifierad BarChartData"
|
|
1529
1632
|
},
|
|
1530
1633
|
"getter": false,
|
|
1531
1634
|
"setter": false,
|