@designsystem-se/af 37.0.2 → 38.0.1-beta.0
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 +793 -699
- package/components/digi-button.js +1 -1
- package/components/digi-calendar-datepicker.js +16 -15
- package/components/digi-calendar-week-view.js +4 -4
- package/components/digi-calendar.js +1 -1
- package/components/digi-chart-line.js +8 -8
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +15 -15
- package/components/digi-code.js +2 -2
- package/components/digi-context-menu.js +6 -6
- package/components/digi-dialog.js +10 -9
- package/components/digi-expandable-accordion.js +3 -3
- package/components/digi-expandable-faq-item.js +7 -7
- package/components/digi-expandable-faq.js +2 -2
- package/components/digi-footer-card.js +1 -1
- package/components/digi-footer.js +6 -5
- package/components/digi-form-category-filter.js +5 -5
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +11 -10
- package/components/digi-form-fieldset.js +1 -1
- package/components/digi-form-file-upload.js +18 -18
- package/components/digi-form-filter.js +8 -8
- package/components/digi-form-input-search.js +10 -10
- 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 +6 -6
- package/components/digi-form-receipt.js +5 -4
- package/components/digi-form-select-filter.js +19 -18
- 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 +4 -4
- package/components/digi-header-navigation-item.js +1 -1
- package/components/digi-header-navigation.js +10 -9
- package/components/digi-header-notification.js +2 -2
- package/components/digi-header.js +9 -39
- 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 +3 -3
- 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 +12 -12
- 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 +4 -4
- package/components/digi-loader-skeleton.js +3 -3
- package/components/digi-loader-spinner.js +2 -2
- package/components/digi-logo.js +8 -42
- 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 +13 -12
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +6 -6
- 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 +24 -23
- package/components/digi-progress-circle.js +10 -10
- package/components/digi-progress-indicator.js +7 -7
- 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 +4 -4
- 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 +3 -3
- package/components/digi-title-logo.js +155 -1
- package/components/digi-tools-feedback-banner.js +6 -6
- package/components/digi-tools-feedback-rating.js +8 -8
- package/components/digi-tools-feedback.js +6 -5
- package/components/digi-tools-theme-provider.js +2 -2
- 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/index.js +2 -1
- package/components/{p-583fae30.js → p-01264cdd.js} +2 -2
- package/components/{p-40f34110.js → p-02cac754.js} +2 -2
- package/components/{p-d5b9333c.js → p-02ebe13f.js} +2 -2
- package/components/{p-0726ee0a.js → p-06905c58.js} +2 -2
- package/components/{p-78e97002.js → p-0e6a31ff.js} +1 -1
- package/components/{p-2484471b.js → p-14119afa.js} +2 -2
- package/components/p-195ca01d.js +132 -0
- package/components/{p-f20d8be7.js → p-1e730762.js} +2 -2
- package/components/{p-4fda15a2.js → p-210a5fb1.js} +2 -2
- package/components/{p-10fcee12.js → p-222f510d.js} +2 -2
- package/components/{p-a2df4b05.js → p-22bcbe8a.js} +4 -4
- package/components/{p-ab9c3e15.js → p-2881b363.js} +2 -2
- package/components/{p-965a52d4.js → p-36b65cd5.js} +2 -2
- package/components/{p-264c176f.js → p-433c995f.js} +2 -2
- package/components/{p-6565a6e1.js → p-43c92e65.js} +2 -2
- package/components/{p-8195db1a.js → p-4851d4b6.js} +2 -2
- package/components/{p-93899a9e.js → p-4b44f757.js} +2 -2
- package/components/{p-3f4e8021.js → p-4c4c38fd.js} +2 -2
- package/components/{p-0cd24461.js → p-4cdabbdb.js} +1 -1
- package/components/{p-7ff04204.js → p-4d2d082d.js} +12 -11
- package/components/{p-aeca0a41.js → p-517dba78.js} +2 -2
- package/components/p-57a1c472.js +177 -0
- package/components/{p-cccdff76.js → p-58f84239.js} +2 -2
- package/components/{p-c45ecc56.js → p-59ead9fe.js} +8 -8
- package/components/{p-dedeb670.js → p-704e0126.js} +8 -8
- package/components/{p-16f08aa6.js → p-70c8d84e.js} +1 -1
- package/components/{p-e8fc33ed.js → p-70fad0ea.js} +1 -1
- package/components/{p-5e3a020d.js → p-71afaf70.js} +3 -3
- package/components/{p-5a256d98.js → p-768f56d4.js} +1 -13
- package/components/{p-69a76a60.js → p-7af943bd.js} +2 -2
- package/components/{p-81e7adc1.js → p-7d7af765.js} +2 -2
- package/components/{p-6ce9fb68.js → p-7e9f8ee6.js} +2 -2
- package/components/{p-96a568b6.js → p-7f08536e.js} +2 -2
- package/components/{p-ea46c737.js → p-806d4bbf.js} +3 -3
- package/components/{p-d149967a.js → p-88605ec3.js} +2 -2
- package/components/{p-db8aaede.js → p-8d67da4c.js} +2 -2
- package/components/{p-c19a2763.js → p-8ee7ec0b.js} +2 -2
- package/components/{p-61c51a8d.js → p-96ef4705.js} +2 -2
- package/components/{p-7b97818b.js → p-9963ea8d.js} +1 -1
- package/components/p-9dd41cc4.js +7 -0
- package/components/{p-f53eb01a.js → p-9df35672.js} +3 -3
- package/components/{p-13770550.js → p-9e98bc1f.js} +2 -2
- package/components/{p-769dbb9e.js → p-9f757d46.js} +2 -2
- package/components/{p-bd90b8ee.js → p-a43d5fe6.js} +2 -2
- package/components/{p-05bd223f.js → p-a480e81e.js} +2 -2
- package/components/p-ab07faba.js +66 -0
- package/components/{p-1e9052b0.js → p-ac5035f1.js} +1 -1
- package/components/{p-789cf870.js → p-b18e3596.js} +2 -2
- package/components/{p-8bdc6d6b.js → p-b24c2842.js} +2 -2
- package/components/{p-6c013e3b.js → p-b53be17d.js} +2 -2
- package/components/{p-060b4baf.js → p-d2b12caf.js} +2 -2
- package/components/{p-956d730b.js → p-dab20489.js} +1 -1
- package/components/{p-31ef8371.js → p-db6386c7.js} +2 -2
- package/components/{p-40496c3d.js → p-db81738c.js} +2 -2
- package/components/{p-44f143ea.js → p-dbb0665a.js} +10 -10
- package/components/{p-a8fff2e3.js → p-de2295b7.js} +2 -2
- package/components/{p-9466c4e0.js → p-e2a68e2b.js} +10 -10
- package/components/{p-6c4c927f.js → p-e6b042b3.js} +1 -1
- package/components/{p-735a4842.js → p-e788c4e0.js} +2 -2
- package/components/{p-5a494103.js → p-e78c723f.js} +5 -5
- package/components/{p-2b3c1022.js → p-f461911c.js} +2 -2
- package/components/{p-119cd87b.js → p-f884ee43.js} +2 -2
- package/{dist/esm/linear-0246aaea.js → components/p-f9a1a787.js} +1 -1
- package/components/{p-eced9019.js → p-ff74fdd6.js} +2 -2
- package/custom-elements.json +1 -17
- package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-bar-chart.cjs.entry.js +785 -691
- package/dist/cjs/digi-button_27.cjs.entry.js +1379 -0
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +4 -9
- package/dist/cjs/digi-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/digi-chart-line.cjs.entry.js +2 -2
- package/dist/cjs/digi-code-block_3.cjs.entry.js +8 -13
- package/dist/cjs/digi-code-example.cjs.entry.js +7 -8
- package/dist/cjs/digi-code.cjs.entry.js +2 -2
- package/dist/cjs/digi-context-menu.cjs.entry.js +3 -3
- package/dist/cjs/digi-dialog.cjs.entry.js +7 -12
- package/dist/cjs/digi-expandable-accordion.cjs.entry.js +1 -1
- package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +5 -5
- package/dist/cjs/digi-expandable-faq.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +139 -0
- package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -9
- 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 +4 -5
- package/dist/cjs/digi-form-input.cjs.entry.js +3 -3
- package/dist/cjs/digi-form-label_3.cjs.entry.js +4 -4
- package/dist/cjs/digi-form-radiogroup.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-receipt.cjs.entry.js +4 -9
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +10 -15
- 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-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-down_2.cjs.entry.js +4 -4
- 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-chart_2.cjs.entry.js +4 -4
- 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_2.cjs.entry.js +4 -4
- 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-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 +3 -3
- 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-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-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-minus_2.cjs.entry.js +4 -4
- 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-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-validation-error_2.cjs.entry.js +4 -4
- 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 +2 -2
- 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-icon-external-link-alt_2.cjs.entry.js → digi-link-external.cjs.entry.js} +1 -25
- package/dist/cjs/digi-link-internal.cjs.entry.js +2 -2
- package/dist/cjs/digi-list.cjs.entry.js +2 -2
- 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 +9 -14
- package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +1 -1
- package/dist/cjs/digi-notification-alert.cjs.entry.js +6 -11
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +22 -27
- package/dist/cjs/digi-progress-circle.cjs.entry.js +8 -8
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +4 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +6 -11
- package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +2 -2
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/{form-input-search-variation.enum-c50239bc.js → form-input-search-variation.enum-e0e025b1.js} +7 -0
- package/dist/cjs/index-7a477838.js +8 -96
- package/dist/cjs/index.cjs.js +54 -65
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-c0ef9190.js} +33 -0
- package/dist/collection/components/_button/button/button.css +22 -20
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +313 -316
- package/dist/collection/components/_chart/bar-chart/bar-chart.css +49 -26
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +794 -700
- package/dist/collection/components/_chart/chart-line/chart-line.css +1 -2
- 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.css +6 -2
- package/dist/collection/components/_code/code/code.js +1 -1
- package/dist/collection/components/_code/code-block/code-block.css +12 -4
- 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.css +17 -17
- 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.css +4 -4
- 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.css +313 -316
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
- package/dist/collection/components/_form/form-error-list/form-error-list.js +1 -1
- 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 +2 -81
- package/dist/collection/components/_header/header-avatar/header-avatar.css +313 -316
- 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.css +4 -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.css +3 -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.css +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.css +313 -316
- package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
- package/dist/collection/components/_list/list/list.css +5 -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/logo/logo.css +10 -9
- package/dist/collection/components/_logo/logo/logo.js +6 -84
- package/dist/collection/components/_logo/title-logo/title-logo.css +1 -1
- package/dist/collection/components/_logo/title-logo/title-logo.js +4 -3
- 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.css +1 -1
- package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
- package/dist/collection/components/_notification/notification-error-page/illustrations/illustrations.js +1 -1
- package/dist/collection/components/_notification/notification-error-page/notification-error-page.css +0 -6
- 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.css +1 -1
- 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.css +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.css +2 -2
- 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.css +132 -124
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -2
- package/dist/collection/components/_typography/typography/typography.css +4 -4
- 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 +4 -6
- package/dist/collection/enums.js +0 -1
- package/dist/collection/interfaces.js +2 -2
- package/dist/collection/styles/src/_alias.mixin.scss +67 -89
- package/dist/collection/styles/src/_sass-variables.scss +1 -1
- package/dist/collection/styles/src/index.scss +8 -7
- package/dist/collection/styles/src/themes/{_theme-af18.mixin.scss → _brand-af18.mixin.scss} +68 -105
- package/dist/collection/styles/src/themes/{_theme-af25.mixin.scss → _brand-af25.mixin.scss} +68 -90
- package/dist/collection/styles/src/themes/_brand-common.mixin.scss +30 -0
- package/dist/collection/styles/src/themes/{_common.mixin.scss → _numeric-common.mixin.scss} +6 -36
- package/dist/collection/styles/src/tokens-documentation/web-AF25.json +168 -2751
- package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +6 -6
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/{p-12a03793.entry.js → p-01a1b9c9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7908074b.entry.js → p-0464dca2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ce22d2bd.entry.js → p-05ca733b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-944a7329.entry.js → p-075bd3c6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a8bfcbdb.entry.js → p-09ded933.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-0a6d26f7.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-76474429.entry.js → p-0b586930.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3c0c5222.entry.js → p-0fbe6e50.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-00219e81.entry.js → p-0ff7a0b3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-53d6b8e7.entry.js → p-10ada07d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6bd60ab6.entry.js → p-111fb07d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2761f020.entry.js → p-1122ceea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-18e4355f.entry.js → p-118d3294.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-83bf9168.entry.js → p-11d24d40.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-df5225d2.entry.js → p-138540b1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-13ee320b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1486034d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-f2f36d89.entry.js → p-153e6f52.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5b236abe.entry.js → p-1541bdea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7b957a6b.entry.js → p-15562b33.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9966fe52.entry.js → p-1649e5cf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c77c3d89.entry.js → p-16d86f97.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a930f885.entry.js → p-1a984b8d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-103ceec9.entry.js → p-1c575074.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fd0b154a.entry.js → p-1d9cc992.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-20693fa2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-8506c514.entry.js → p-22d204d6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4e0ecc91.entry.js → p-269ef8dc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5faa3a64.entry.js → p-27c75cf5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-58b6386c.entry.js → p-2938e001.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-af3c182b.entry.js → p-295dddb9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-024ef74e.entry.js → p-29b838ce.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-2d2f6950.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-1e36e974.entry.js → p-2dd2a2de.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e1dd3a3f.entry.js → p-2f94203c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8d4403b3.entry.js → p-305262db.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3d7fff3c.entry.js → p-30dc159d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5fc10ab0.entry.js → p-328bd8e3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b5755c01.entry.js → p-332ed107.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-92e43eab.entry.js → p-3510d041.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-3566b732.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-426e32f1.entry.js → p-386e5da9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8e1568c4.entry.js → p-398d0f60.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d23e3cd.entry.js → p-3ae4cb29.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9f81e7ca.entry.js → p-3c8e2e00.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-57319a80.entry.js → p-3c9195db.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-3cda17e1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-f275b457.entry.js → p-3dfd0cea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-3f9dfdb0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-3a76bfde.entry.js → p-408e9b2a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-33a87be9.entry.js → p-4128b648.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4e36c467.entry.js → p-416992c0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e57e67b4.entry.js → p-41f4b689.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-01f90a29.entry.js → p-4319f1b4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a1312fc2.entry.js → p-443c70b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4bdc3b9f.entry.js → p-44f2fa8c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b22e8852.entry.js → p-4588ebc2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e5347e6f.entry.js → p-45fba8fe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3e3f540d.entry.js → p-45fceb9c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fd960097.entry.js → p-46224607.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a5e967d5.entry.js → p-48eee8b1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-85d4f3af.entry.js → p-498e1eff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8c761dbc.entry.js → p-49914705.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-573b8fa7.entry.js → p-49a4fe71.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8d0f766e.entry.js → p-4a5a934d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-681e7beb.entry.js → p-4b8cae8a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-464cd846.entry.js → p-4bb2bf83.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8890800e.entry.js → p-4d74331b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4d84c470.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-0aab70a9.entry.js → p-4e8439d0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cf8c3bb3.entry.js → p-505d6802.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-50b32151.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-853442cf.entry.js → p-51f1f0a2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a6641402.entry.js → p-544bf960.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-54b6eb3f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2693c1d8.entry.js → p-55bcba7c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-07985aef.entry.js → p-55d02ef7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9754f96a.entry.js → p-565cb408.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4148e305.entry.js → p-56edf062.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-26f8ef76.entry.js → p-577f6995.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9dce95f1.entry.js → p-59182ae9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4acb80a4.entry.js → p-5a3f2339.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c8c08554.entry.js → p-5a5babd1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-38537016.entry.js → p-5ad6d46d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b4bef936.entry.js → p-5f20045a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-41bc039f.entry.js → p-5f4ece29.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-5f981b60.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-e71113f0.entry.js → p-60738889.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6422c8ca.entry.js → p-6274431e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-6324c9bf.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-633f8158.entry.js → p-6546c48d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d7709d32.entry.js → p-658863ba.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e6d0f714.entry.js → p-675fe9ae.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-67ba87db.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-69cdbd95.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-b88f6f99.entry.js → p-6b7e7040.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4f29b0c0.entry.js → p-6bc1255b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-de9c3a69.entry.js → p-6c8491a5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-67b49e94.entry.js → p-6ca83bc0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a41ef0f6.entry.js → p-6cf784b6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-aa91c0af.entry.js → p-6f5f87eb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d5376b7c.entry.js → p-6fb0f1a4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-077f80a5.entry.js → p-6ff42bef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6ff374d1.entry.js → p-70744e7e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-70da2307.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d5763fdd.entry.js → p-741ec2d5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-628b7dbb.entry.js → p-7581e47c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7cf05fa9.entry.js → p-784b28bb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-00506378.entry.js → p-78794f38.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fecc1b90.entry.js → p-7a4abd41.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7e557ad2.entry.js → p-7aa50e36.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7e7dcd4a.entry.js → p-7af556aa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e3ac1f3a.entry.js → p-7afe3783.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1ed59d47.entry.js → p-7b82a34b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-51144736.entry.js → p-7c2c13ba.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0c1d3711.entry.js → p-7c3f6a30.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-801f8747.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-13523367.entry.js → p-81c5af98.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2b2f3fad.entry.js → p-821d5a2c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9b7f0707.entry.js → p-82611050.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6d864e79.entry.js → p-82a74908.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-96a2f7d5.entry.js → p-8442b257.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d274cee8.entry.js → p-851fe52d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-15348eee.entry.js → p-8846018d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7255a748.entry.js → p-898bc9f7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e4d48214.entry.js → p-89ea748b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d8c3525c.entry.js → p-8c91e232.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-15263cf9.entry.js → p-8de3b839.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-87727a53.entry.js → p-8e53e821.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-009d0758.entry.js → p-8f33b97c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-16f09f62.entry.js → p-8fa50755.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9062da9b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c29ab968.entry.js → p-915b2a14.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-72c968e0.entry.js → p-93158bc8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8284b8cf.entry.js → p-942700b8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-89e2aff2.entry.js → p-951bedf9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f8b6c6db.entry.js → p-9526fbc3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2fca5303.entry.js → p-97aab77e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c3e6d920.entry.js → p-991c8ab8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9a456d55.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9a72b453.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-b7c234ba.entry.js → p-9b6afae4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9c053cf8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-447779c9.entry.js → p-9cdbe632.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4ac07008.entry.js → p-9d0704a6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d3383f9.entry.js → p-9f47d4b7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-654dbd76.entry.js → p-a2420f61.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a26333e9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-e92094c2.entry.js → p-a3c8bff0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e7461a13.entry.js → p-a3eeb86f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1eae728c.entry.js → p-a5810f26.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c5f7050c.entry.js → p-a682d6d0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bed4e41b.entry.js → p-a75e7291.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dc3f1bff.entry.js → p-a8705ac5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c741da33.entry.js → p-a8a75edb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e3d34c02.entry.js → p-a902ddef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0e20fa9d.entry.js → p-a9114fb8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-870c4f49.entry.js → p-a969ba67.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-eaac5c66.entry.js → p-aa0a3d89.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d98c9920.entry.js → p-ac212ad2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-ad186c98.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-682f727c.entry.js → p-ad62f485.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-44a6202f.entry.js → p-ae5326a8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-33349e7e.entry.js → p-af72f16f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4200e2e1.entry.js → p-b0c82cd5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6c3a302e.entry.js → p-b207a2ac.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dea2dd09.entry.js → p-b3cd12d2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d7aa8315.entry.js → p-b3d93b8b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7f852a22.entry.js → p-b58169ec.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-405d57ae.entry.js → p-b91c9055.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d055d564.entry.js → p-ba3c4861.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-34e12bd2.entry.js → p-bb96a67a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-110c3e1a.entry.js → p-bb9ae588.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-be2ff8df.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-93766b5e.entry.js → p-c04ae2fc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3dafce70.entry.js → p-c06930c2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b0da7751.entry.js → p-c1fd535b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-37038edf.entry.js → p-c21e4aa2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-193b136c.entry.js → p-c3efe169.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c085dc03.entry.js → p-c590fb8b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c5dcd4a3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-5a965d75.entry.js → p-c89542dc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2be2a087.entry.js → p-cb4b3028.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b124888.entry.js → p-cbc32f8f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-05324cdd.entry.js → p-cbd72c5d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7e49b526.entry.js → p-cedbe18a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b3254470.entry.js → p-cef82303.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a8a7fc5b.entry.js → p-cf977a1e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bd085e7f.entry.js → p-d03e21e9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dd4cc053.entry.js → p-d0d10d50.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-744a0451.entry.js → p-d13202aa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7c116ffb.entry.js → p-d182d8bb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c06611d5.entry.js → p-d55628aa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d595e8a3.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-69f63c7d.entry.js → p-d670e0e0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d71c33d8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-13cd19d0.entry.js → p-d7f91b57.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e4ee488a.entry.js → p-d8985c32.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fff27d84.entry.js → p-d8f12bc6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ea113b44.entry.js → p-d926e01a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-68c937f9.entry.js → p-d945efbc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-618b8bc8.entry.js → p-d9a9ce27.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d79cb764.entry.js → p-d9ee06b3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e734b21e.entry.js → p-d9fe47c6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-faeae199.entry.js → p-da66642b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ca30cbad.entry.js → p-db7c0461.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a5a86077.entry.js → p-dc2900ed.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7f355471.entry.js → p-dd4dbce9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-038adf64.entry.js → p-e2673aa1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-813f7cd7.entry.js → p-e325cf29.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-e347aae8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-1dcfc210.entry.js → p-e41c954e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-49735479.entry.js → p-e4b39465.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f1fb0ee8.entry.js → p-e54c2bba.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5d58a175.entry.js → p-e64c656d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9c4f07b0.entry.js → p-e7816175.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e10e24fc.entry.js → p-e88d7860.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-88617c9f.entry.js → p-ea57a1da.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1455b446.entry.js → p-ebd9596f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-57a0cc63.entry.js → p-eda570be.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4122fe31.entry.js → p-f1857d71.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6989161a.entry.js → p-f1e9e690.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-52f53840.entry.js → p-f2e9f090.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-942a829a.entry.js → p-f489832c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7888e12c.entry.js → p-f4edca16.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-89663e9f.entry.js → p-f50ab13d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-22700f68.entry.js → p-f5bd6a43.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-67be853d.entry.js → p-f96939e4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a47b6b5c.js → p-f9a1a787.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-96987381.entry.js → p-fb9b3544.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-285956a5.entry.js → p-fd094929.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-df3a8ec4.entry.js → p-fdca581c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f33ee2cb.entry.js → p-ff346c2a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +67 -89
- package/dist/digi-arbetsformedlingen/styles/src/_sass-variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/styles/src/index.scss +8 -7
- package/dist/digi-arbetsformedlingen/styles/src/themes/{_theme-af18.mixin.scss → _brand-af18.mixin.scss} +68 -105
- package/dist/digi-arbetsformedlingen/styles/src/themes/{_theme-af25.mixin.scss → _brand-af25.mixin.scss} +68 -90
- package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-common.mixin.scss +30 -0
- package/dist/digi-arbetsformedlingen/styles/src/themes/{_common.mixin.scss → _numeric-common.mixin.scss} +6 -36
- package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +168 -2751
- package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-bar-chart.entry.js +786 -692
- package/dist/esm/digi-button_27.entry.js +1349 -0
- package/dist/esm/digi-calendar-datepicker.entry.js +4 -9
- package/dist/esm/digi-calendar_2.entry.js +2 -2
- package/dist/esm/digi-chart-line.entry.js +3 -3
- package/dist/esm/digi-code-block_3.entry.js +8 -13
- package/dist/esm/digi-code-example.entry.js +5 -6
- package/dist/esm/digi-code.entry.js +2 -2
- package/dist/esm/digi-context-menu.entry.js +3 -3
- package/dist/esm/digi-dialog.entry.js +7 -12
- package/dist/esm/digi-expandable-accordion.entry.js +1 -1
- package/dist/esm/digi-expandable-faq-item.entry.js +5 -5
- package/dist/esm/digi-expandable-faq.entry.js +2 -2
- package/dist/esm/digi-form-category-filter.entry.js +2 -2
- package/dist/esm/digi-form-checkbox.entry.js +135 -0
- package/dist/esm/digi-form-error-list.entry.js +4 -9
- 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 +3 -4
- package/dist/esm/digi-form-input.entry.js +3 -3
- package/dist/esm/digi-form-label_3.entry.js +4 -4
- package/dist/esm/digi-form-radiogroup.entry.js +2 -2
- package/dist/esm/digi-form-receipt.entry.js +4 -9
- package/dist/esm/digi-form-select-filter.entry.js +10 -15
- 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-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-down_2.entry.js +4 -4
- 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-chart_2.entry.js +4 -4
- 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_2.entry.js +4 -4
- 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-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 +3 -3
- 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-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-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-minus_2.entry.js +4 -4
- 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-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-validation-error_2.entry.js +4 -4
- 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 +2 -2
- 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-icon-external-link-alt_2.entry.js → digi-link-external.entry.js} +3 -26
- package/dist/esm/digi-link-internal.entry.js +2 -2
- package/dist/esm/digi-list.entry.js +2 -2
- 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 +9 -14
- package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
- package/dist/esm/digi-navigation-vertical-menu.entry.js +1 -1
- package/dist/esm/digi-notification-alert.entry.js +6 -11
- package/dist/esm/digi-notification-error-page.entry.js +22 -27
- package/dist/esm/digi-progress-circle.entry.js +8 -8
- package/dist/esm/digi-progress-indicator.entry.js +4 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/digi-tools-feedback.entry.js +4 -9
- package/dist/esm/digi-tools-theme-provider.entry.js +2 -2
- package/dist/esm/digi-typography-heading-jumbo.entry.js +1 -1
- package/dist/esm/digi-typography-meta.entry.js +1 -1
- package/dist/esm/digi-typography-preamble.entry.js +1 -1
- package/dist/esm/digi-typography-time.entry.js +1 -1
- package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
- package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
- package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
- package/dist/esm/digi-util-resize-observer.entry.js +1 -1
- package/dist/esm/{form-input-search-variation.enum-f9d669f2.js → form-input-search-variation.enum-6d8dc10a.js} +8 -1
- package/dist/esm/index-148a7577.js +8 -96
- package/dist/esm/index.js +3 -8
- package/{components/p-a47b6b5c.js → dist/esm/linear-78b9219d.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-c85d7857.js} +34 -1
- package/dist/types/components/_chart/bar-chart/bar-chart.d.ts +58 -41
- package/dist/types/components/_chart/chart-line/chart-line.d.ts +1 -1
- package/dist/types/components/_chart/interfaces/bar-chart-data.interface.d.ts +28 -0
- package/dist/types/components/_chart/{chart-line/chart-line-series.interface.d.ts → interfaces/chart-data-series.interface.d.ts} +1 -1
- package/dist/types/components/_chart/{chart-line/chart-line-data.interface.d.ts → interfaces/line-chart-data.interface.d.ts} +2 -2
- package/dist/types/components/_header/header/header.d.ts +0 -20
- package/dist/types/components/_logo/logo/logo.d.ts +1 -16
- package/dist/types/components/_logo/title-logo/title-logo.d.ts +0 -1
- package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +0 -1
- package/dist/types/components.d.ts +10 -70
- package/dist/types/enums.d.ts +0 -1
- package/dist/types/interfaces.d.ts +2 -2
- package/hydrate/index.js +1365 -1331
- package/hydrate/index.mjs +1365 -1331
- package/package.json +1 -1
- package/components/p-2ac136a0.js +0 -154
- package/components/p-62a0008b.js +0 -131
- package/components/p-9dd1da8c.js +0 -177
- package/components/p-b57677c1.js +0 -66
- package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
- package/dist/cjs/button-type.enum-406723db.js +0 -8
- package/dist/cjs/digi-button_2.cjs.entry.js +0 -262
- package/dist/cjs/digi-footer-card.cjs.entry.js +0 -29
- package/dist/cjs/digi-footer.cjs.entry.js +0 -78
- package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
- package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
- package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -232
- package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
- package/dist/cjs/digi-header.cjs.entry.js +0 -148
- package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-envelope.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-globe.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-sign.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-x.cjs.entry.js +0 -30
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
- package/dist/cjs/digi-link.cjs.entry.js +0 -75
- package/dist/cjs/digi-logo.cjs.entry.js +0 -69
- package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
- package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -30
- package/dist/cjs/digi-title-logo.cjs.entry.js +0 -135
- package/dist/cjs/digi-typography.cjs.entry.js +0 -26
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
- package/dist/cjs/footer-card-variation.enum-99555edc.js +0 -8
- package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
- package/dist/cjs/logo-variation.enum-607fadb4.js +0 -13
- package/dist/collection/components/_logo/logo/logo-variation.enum.js +0 -5
- package/dist/digi-arbetsformedlingen/p-0501a287.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-19c30198.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-260620fe.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-286973f2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-290d1746.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
- package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-41065da6.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-443e9415.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-46ec7e56.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5bed47db.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5eba5ec4.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-61385dc4.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-618e6fb0.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6fa23e38.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6fdaec07.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-75309c9a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-826ad49e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-82a89ca1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-84719680.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8b88c952.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8e47ac34.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bc0ca702.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cd50f570.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d4145a3e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-dc9b6144.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-de625253.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e844d4cc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-eada91bf.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee88e3f1.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +0 -1
- package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
- package/dist/esm/button-type.enum-5250ae0b.js +0 -8
- package/dist/esm/digi-button_2.entry.js +0 -257
- package/dist/esm/digi-footer-card.entry.js +0 -25
- package/dist/esm/digi-footer.entry.js +0 -74
- package/dist/esm/digi-header-avatar.entry.js +0 -110
- package/dist/esm/digi-header-navigation-item.entry.js +0 -23
- package/dist/esm/digi-header-navigation.entry.js +0 -228
- package/dist/esm/digi-header-notification.entry.js +0 -19
- package/dist/esm/digi-header.entry.js +0 -144
- package/dist/esm/digi-icon-accessibility-universal.entry.js +0 -26
- package/dist/esm/digi-icon-bars.entry.js +0 -26
- package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
- package/dist/esm/digi-icon-envelope.entry.js +0 -26
- package/dist/esm/digi-icon-globe.entry.js +0 -26
- package/dist/esm/digi-icon-sign.entry.js +0 -26
- package/dist/esm/digi-icon-x.entry.js +0 -26
- package/dist/esm/digi-layout-block_2.entry.js +0 -87
- package/dist/esm/digi-link.entry.js +0 -71
- package/dist/esm/digi-logo.entry.js +0 -65
- package/dist/esm/digi-media-image_2.entry.js +0 -162
- package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -26
- package/dist/esm/digi-title-logo.entry.js +0 -131
- package/dist/esm/digi-typography.entry.js +0 -22
- package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
- package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
- package/dist/esm/footer-card-variation.enum-cc732148.js +0 -8
- package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
- package/dist/esm/logo-variation.enum-5b68b79f.js +0 -13
- package/dist/types/components/_logo/logo/logo-variation.enum.d.ts +0 -4
- /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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-148a7577.js';
|
|
2
|
-
import { o as ordinal, i as initRange, r as range, s as select, a as axisLeft, l as linear, b as axisBottom,
|
|
2
|
+
import { o as ordinal, i as initRange, r as range, s as select, a as axisLeft, l as linear, b as axisBottom, m as max, p as polyInOut, c as min, d as linear$1 } from './linear-78b9219d.js';
|
|
3
3
|
import { _ as _t } from './text-8f88c0f6.js';
|
|
4
4
|
import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
|
|
5
5
|
import { B as BarChartVariation } from './bar-chart-variation.enum-97c0b47f.js';
|
|
@@ -84,17 +84,21 @@ function band() {
|
|
|
84
84
|
return initRange.apply(rescale(), arguments);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
const barChartCss = ".sc-digi-bar-chart-h .digi-bar-chart.sc-digi-bar-chart{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-bar-chart-h .topWrapper.sc-digi-bar-chart,.sc-digi-bar-chart-h .chartTitle.sc-digi-bar-chart .digi-typography.sc-digi-bar-chart{display:flex;flex-direction:column;gap:0.75rem}.sc-digi-bar-chart-h .topWrapper.sc-digi-bar-chart{margin-bottom:0.75rem}.sc-digi-bar-chart-h .chartTitle.sc-digi-bar-chart{--MARGIN--HEADING-2:0;--MARGIN--HEADING-3:0;--MARGIN--HEADING-4:0;--MARGIN--HEADING-5:0;--MARGIN--HEADING-6:0}.sc-digi-bar-chart-h .buttonWrapper.sc-digi-bar-chart{--digi--button--padding--medium:
|
|
87
|
+
const barChartCss = ".sc-digi-bar-chart-h{width:100%;display:flex;flex-direction:column;min-width:0}.sc-digi-bar-chart-h .digi-bar-chart.sc-digi-bar-chart{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-bar-chart-h .svgWrap.sc-digi-bar-chart{position:relative;display:flex;min-height:20px;min-width:20px;width:100%;height:100%}.sc-digi-bar-chart-h .topWrapper.sc-digi-bar-chart,.sc-digi-bar-chart-h .chartTitle.sc-digi-bar-chart .digi-typography.sc-digi-bar-chart{display:flex;flex-direction:column;gap:0.75rem}.sc-digi-bar-chart-h .topWrapper.sc-digi-bar-chart{margin-bottom:0.75rem}.sc-digi-bar-chart-h .chartTitle.sc-digi-bar-chart{--MARGIN--HEADING-2:0;--MARGIN--HEADING-3:0;--MARGIN--HEADING-4:0;--MARGIN--HEADING-5:0;--MARGIN--HEADING-6:0;--MARGIN--BODY:0}.sc-digi-bar-chart-h .buttonWrapper.sc-digi-bar-chart{--digi--button--padding--medium:0 0 0.75rem 0}.sc-digi-bar-chart-h .chartTooltip.sc-digi-bar-chart{top:-5px;position:absolute;background-color:var(--digi--color--background--primary);color:black;padding:5px 10px;padding-right:5px;border-radius:4px;display:block;width:max-content;white-space:nowrap;filter:drop-shadow(rgba(0, 0, 0, 0.8) 0px 0px 1px);font-size:0.875rem}.sc-digi-bar-chart-h .tooltipBody.sc-digi-bar-chart{display:inline-block}.sc-digi-bar-chart-h .tooltipHead.sc-digi-bar-chart{display:flex;flex-direction:row;justify-content:space-between}.sc-digi-bar-chart-h .tooltipClose.sc-digi-bar-chart{display:inline-block;vertical-align:top;--digi--color--icon--primary:#333;cursor:pointer}.sc-digi-bar-chart-h .tooltipClose.sc-digi-bar-chart:hover{--digi--color--icon--primary:gray}.sc-digi-bar-chart-h .legendWrap.sc-digi-bar-chart{display:grid}.sc-digi-bar-chart-h .legend.sc-digi-bar-chart{display:flex;flex-direction:row;gap:1rem;min-width:0;overflow-x:auto;scrollbar-gutter:stable}.sc-digi-bar-chart-h .caret.sc-digi-bar-chart{--digi--icon--color:var(--digi--color--background--primary)}.sc-digi-bar-chart-h .scChartStatus.sc-digi-bar-chart{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sc-digi-bar-chart-h .table.sc-digi-bar-chart{display:none;overflow-y:auto;height:auto;border-radius:4px;background:linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top, linear-gradient(rgba(255, 255, 255, 0), white 70%) center bottom, radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) center top, radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) center bottom;background-repeat:no-repeat;background-size:100% 40px, 100% 40px, 100% 14px, 100% 14px;background-attachment:local, local, scroll, scroll}";
|
|
88
88
|
const DigiBarChartStyle0 = barChartCss;
|
|
89
89
|
|
|
90
90
|
const barChart = class {
|
|
91
91
|
constructor(hostRef) {
|
|
92
92
|
registerInstance(this, hostRef);
|
|
93
93
|
// States
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
94
|
+
this.loading = false;
|
|
95
|
+
this.placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
|
|
96
|
+
// 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;
|
|
97
|
+
this.dataWidth = 1;
|
|
98
|
+
// Bar gap when using multiple bars for each point, this will be doubled, since it is applied on both bars
|
|
99
|
+
this.barGap = 0;
|
|
100
|
+
this.dims = {};
|
|
101
|
+
this.margin = {
|
|
98
102
|
bottom: 0,
|
|
99
103
|
top: 6,
|
|
100
104
|
left: 5,
|
|
@@ -105,376 +109,279 @@ const barChart = class {
|
|
|
105
109
|
this.yTickSize = 0;
|
|
106
110
|
this.xTickSize = 5;
|
|
107
111
|
// Width of the largets X-tick-value
|
|
108
|
-
this.
|
|
112
|
+
this.tickWidth = 1;
|
|
109
113
|
// Transition
|
|
110
114
|
this.defaultDuration = 400;
|
|
111
115
|
// Text and formats
|
|
112
116
|
this.fontSize = '0.875rem';
|
|
117
|
+
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'];
|
|
113
118
|
// Observer for watching size changes when in line chart mode
|
|
114
119
|
this.barChartObserver = new ResizeObserver((entries) => {
|
|
115
120
|
entries.forEach(() => {
|
|
116
|
-
if (this.
|
|
121
|
+
if (this.loading)
|
|
117
122
|
return this.loadingResize();
|
|
118
123
|
this.resize();
|
|
119
124
|
});
|
|
120
125
|
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
this.highlightBars = (serie) => {
|
|
127
|
+
this.barChartContainer.selectAll('.bar')
|
|
128
|
+
.attr('fill', (barData) => this.colorFunction(barData.serie))
|
|
129
|
+
.transition('color')
|
|
130
|
+
.duration(150)
|
|
131
|
+
.attr('fill', (barData) => {
|
|
132
|
+
var _a;
|
|
133
|
+
if (barData.serie === serie)
|
|
134
|
+
return this.colorFunction(barData.serie);
|
|
135
|
+
else {
|
|
136
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
|
|
137
|
+
return 'url(#prognosisInactive)';
|
|
138
|
+
}
|
|
139
|
+
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
140
|
+
}
|
|
126
141
|
});
|
|
127
|
-
|
|
142
|
+
select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
|
|
143
|
+
};
|
|
144
|
+
this.resetBarColor = () => {
|
|
145
|
+
this.barChartContainer.selectAll('.bar').transition('color').duration(150).attr('fill', (barData) => this.colorFunction(barData.serie));
|
|
146
|
+
select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', 1);
|
|
147
|
+
if (this.chartData.data.averageLine) {
|
|
148
|
+
this.barChartContainer.selectAll('.averageLine').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
|
|
149
|
+
.style('filter', 'contrast(0.5)');
|
|
150
|
+
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
|
|
151
|
+
.style('filter', 'contrast(0.5)'); */
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
this.highlightAverageLine = (serie) => {
|
|
155
|
+
this.barChartContainer.selectAll('.bar')
|
|
156
|
+
.transition('color')
|
|
157
|
+
.duration(150)
|
|
158
|
+
.attr('fill', (barData) => {
|
|
159
|
+
var _a;
|
|
160
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
|
|
161
|
+
return 'url(#prognosisInactive)';
|
|
162
|
+
}
|
|
163
|
+
else
|
|
164
|
+
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
165
|
+
});
|
|
166
|
+
this.barChartContainer.selectAll('.averageLine').transition('avgLine')
|
|
167
|
+
.duration(150).style('mix-blend-mode', null).style('filter', null);
|
|
168
|
+
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLineText')
|
|
169
|
+
.duration(150).style('mix-blend-mode', null).style('filter', null) */
|
|
170
|
+
select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
|
|
171
|
+
};
|
|
172
|
+
// Sets and resizespositions the average line
|
|
173
|
+
this.averageLine = () => {
|
|
174
|
+
if (!this.chartData.data.averageLine)
|
|
175
|
+
return;
|
|
176
|
+
const avLineGroup = this.barChartContainer.select('.interactiveElements').selectAll('.averageLineGroup').data([this.chartData.data.averageLine]).join('g').attr('class', 'averageLineGroup');
|
|
177
|
+
/* avLineGroup.selectAll('.averageLineText')
|
|
178
|
+
.data(d => [d])
|
|
179
|
+
.join('text')
|
|
180
|
+
.attr('class', 'averageLineText')
|
|
181
|
+
.text(d => d.text)
|
|
182
|
+
.attr('x', this.xScale.range()[0])
|
|
183
|
+
.attr('y', (d) => this.yScale(d.value))
|
|
184
|
+
.attr('dy', -2)
|
|
185
|
+
.attr('font-size', this.fontSize)
|
|
186
|
+
.attr('fill', 'var(--digi--color--infographic--lineart)')
|
|
187
|
+
.style('mix-blend-mode', 'plus-lighter')
|
|
188
|
+
.style('filter', 'contrast(0.5)'); */
|
|
189
|
+
avLineGroup.selectAll('.averageLine')
|
|
190
|
+
.data(d => [d.value])
|
|
191
|
+
.join('line')
|
|
192
|
+
.attr('class', 'averageLine')
|
|
193
|
+
.attr('x1', this.xScale.range()[0])
|
|
194
|
+
.attr('y1', (d) => this.yScale(d))
|
|
195
|
+
.attr('x2', this.xScale.range()[1])
|
|
196
|
+
.attr('y2', (d) => this.yScale(d))
|
|
197
|
+
.attr('stroke', 'var(--digi--color--infographic--lineart)')
|
|
198
|
+
.attr('stroke-width', 2)
|
|
199
|
+
.attr('stroke-dasharray', '12, 7')
|
|
200
|
+
.attr('stroke-linecap', 'round')
|
|
201
|
+
.style('mix-blend-mode', 'plus-lighter')
|
|
202
|
+
.style('filter', 'contrast(0.5)')
|
|
203
|
+
.style('pointer-events', 'none');
|
|
204
|
+
};
|
|
128
205
|
// Resizing chart while loading
|
|
129
206
|
this.loadingResize = () => {
|
|
130
207
|
const newHeight = this.setDims();
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
|
|
134
|
-
this._margin.right =
|
|
135
|
-
this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
|
|
208
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
209
|
+
this.margin.right =
|
|
210
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
136
211
|
this.yTickSize +
|
|
137
212
|
this.tickPadding;
|
|
138
213
|
// If there is a new height
|
|
139
214
|
if (newHeight) {
|
|
140
215
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
141
216
|
this.afVariation === BarChartVariation.Horizontal
|
|
142
|
-
? this.
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
217
|
+
? this.yScale.range([
|
|
218
|
+
this.margin.top,
|
|
219
|
+
this.dims.height - this.margin.bottom
|
|
145
220
|
])
|
|
146
|
-
: this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
221
|
+
: this.yScale.range([
|
|
222
|
+
this.dims.height - this.margin.bottom,
|
|
223
|
+
this.margin.top
|
|
149
224
|
]);
|
|
150
|
-
this.
|
|
225
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
151
226
|
}
|
|
152
227
|
// Update x-axis with new width
|
|
153
|
-
this.
|
|
228
|
+
this.xScale.range([
|
|
154
229
|
0,
|
|
155
|
-
this.
|
|
230
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
156
231
|
]);
|
|
157
|
-
this._barSelection
|
|
158
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
159
|
-
? 2
|
|
160
|
-
: this._xScale(d.key))
|
|
161
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
162
|
-
? this._xScale(d.value)
|
|
163
|
-
: this._xScale.bandwidth());
|
|
164
232
|
this.setValueTicks();
|
|
233
|
+
this.adjustBarSize();
|
|
234
|
+
};
|
|
235
|
+
this.highlightBarGroup = (_event, datum) => {
|
|
236
|
+
if (typeof datum === 'string') {
|
|
237
|
+
const barGroupID = '#' + this.barGroupID(datum);
|
|
238
|
+
this.barChartContainer.select(barGroupID).selectAll('.bar').transition('color')
|
|
239
|
+
.duration(20)
|
|
240
|
+
.attr('fill', (d) => {
|
|
241
|
+
var _a;
|
|
242
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
|
|
243
|
+
return 'url(#prognosisHighlight)';
|
|
244
|
+
}
|
|
245
|
+
else
|
|
246
|
+
return this.adjustColor(this.colorFunction(d.serie), 50);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
this.unHighlightBarGroup = () => {
|
|
251
|
+
this.barSelection.selectAll('.bar').transition('color')
|
|
252
|
+
.duration(100)
|
|
253
|
+
.attr('fill', (d) => {
|
|
254
|
+
return this.colorFunction(d.serie);
|
|
255
|
+
});
|
|
165
256
|
};
|
|
166
257
|
// Adding click listener for tool tip text
|
|
167
258
|
this.setTickInteraction = () => {
|
|
168
259
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
169
|
-
this.
|
|
260
|
+
this.yAxisHandle
|
|
170
261
|
.selectAll('text')
|
|
171
262
|
.style('cursor', 'pointer')
|
|
172
263
|
.on('click', this.openTooltip)
|
|
173
|
-
.on('mouseenter', this.
|
|
174
|
-
.on('mouseleave', this.
|
|
264
|
+
.on('mouseenter', this.highlightBarGroup)
|
|
265
|
+
.on('mouseleave', this.unHighlightBarGroup);
|
|
175
266
|
}
|
|
176
267
|
else {
|
|
177
|
-
this.
|
|
268
|
+
this.xAxisHandle
|
|
178
269
|
.selectAll('text')
|
|
179
270
|
.style('cursor', 'pointer')
|
|
180
271
|
.on('click', this.openTooltip)
|
|
181
|
-
.on('mouseenter', this.
|
|
182
|
-
.on('mouseleave', this.
|
|
272
|
+
.on('mouseenter', this.highlightBarGroup)
|
|
273
|
+
.on('mouseleave', this.unHighlightBarGroup);
|
|
183
274
|
}
|
|
184
275
|
};
|
|
185
276
|
// Setting Y-scale
|
|
186
277
|
this.setYScale = (empty) => {
|
|
187
278
|
var _a, _b, _c;
|
|
188
279
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
189
|
-
this.
|
|
280
|
+
this.yScale = band(empty
|
|
190
281
|
? ['0', '1', '2', '3', '4', '5', '6', '7']
|
|
191
|
-
: this.
|
|
282
|
+
: this.chartData.data.xValueNames, [this.margin.top, this.dims.height - this.margin.bottom])
|
|
192
283
|
.paddingOuter(0.1)
|
|
193
284
|
.paddingInner(0.1);
|
|
194
|
-
this.
|
|
285
|
+
this.yAxis = axisLeft(this.yScale);
|
|
195
286
|
}
|
|
196
287
|
else {
|
|
197
|
-
this.
|
|
198
|
-
.domain(empty ? [0, 10] : [this.
|
|
199
|
-
.nice(((_b = (_a = this.
|
|
200
|
-
? (_c = this.
|
|
288
|
+
this.yScale = linear()
|
|
289
|
+
.domain(empty ? [0, 10] : [this.minVal, this.maxVal])
|
|
290
|
+
.nice(((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
|
|
291
|
+
? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
|
|
201
292
|
: 3);
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
293
|
+
this.yScale.range([
|
|
294
|
+
this.dims.height - this.margin.bottom,
|
|
295
|
+
this.margin.top
|
|
205
296
|
]);
|
|
206
|
-
this.
|
|
297
|
+
this.yAxis = axisLeft(this.yScale);
|
|
207
298
|
}
|
|
208
299
|
};
|
|
209
300
|
// Setting X-Scale
|
|
210
301
|
this.setXScale = (empty) => {
|
|
211
302
|
// Horizontal
|
|
212
303
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
213
|
-
this.
|
|
214
|
-
.domain(empty ? [0, 10] : [this.
|
|
304
|
+
this.xScale = linear()
|
|
305
|
+
.domain(empty ? [0, 10] : [this.minVal, this.maxVal])
|
|
215
306
|
.nice(3);
|
|
216
|
-
this.
|
|
217
|
-
this.getTextSize(this.
|
|
307
|
+
this.margin.right =
|
|
308
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
218
309
|
this.yTickSize +
|
|
219
310
|
this.tickPadding;
|
|
220
|
-
this.
|
|
311
|
+
this.xScale.range([
|
|
221
312
|
0,
|
|
222
|
-
this.
|
|
313
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
223
314
|
]);
|
|
224
315
|
// Initializing actual axis
|
|
225
|
-
this.
|
|
226
|
-
this.
|
|
316
|
+
this.xAxis = axisBottom(this.xScale);
|
|
317
|
+
this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
|
|
227
318
|
}
|
|
228
319
|
else {
|
|
229
320
|
// Vertical
|
|
230
|
-
this.
|
|
231
|
-
.domain(empty ? this.
|
|
232
|
-
.range([0, this.
|
|
321
|
+
this.xScale = band()
|
|
322
|
+
.domain(empty ? this.placeholderTicks : this.chartData.data.xValueNames)
|
|
323
|
+
.range([0, this.dims.width - this.margin.right - this.margin.left])
|
|
233
324
|
.paddingOuter(0.1)
|
|
234
325
|
.paddingInner(0.1);
|
|
235
|
-
this.
|
|
326
|
+
this.xAxis = axisBottom(this.xScale);
|
|
236
327
|
}
|
|
237
328
|
};
|
|
238
329
|
// Stores all tick text sizes in an indexable array
|
|
239
330
|
this.tickSizes = () => {
|
|
240
331
|
// Initializing tick size array
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
if (this.
|
|
244
|
-
for (let i = 0; i < this.
|
|
245
|
-
this.
|
|
332
|
+
this.namedTickSizes = [];
|
|
333
|
+
this.ellipsisSize = this.getTextSize('...');
|
|
334
|
+
if (this.chartData && this.chartData.data) {
|
|
335
|
+
for (let i = 0; i < this.chartData.data.xValueNames.length; i++) {
|
|
336
|
+
this.namedTickSizes.push(Math.ceil(this.getTextSize(this.chartData.data.xValueNames[i])));
|
|
246
337
|
}
|
|
247
338
|
}
|
|
248
339
|
};
|
|
249
|
-
this.
|
|
250
|
-
|
|
340
|
+
this.barGroupID = (key) => {
|
|
341
|
+
return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
|
|
342
|
+
};
|
|
343
|
+
this.updateBars = () => {
|
|
344
|
+
this.barSelection = this.barChartContainer.select('.interactiveElements')
|
|
251
345
|
.selectAll('.barGroup')
|
|
252
|
-
.data(this.
|
|
253
|
-
.join(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
? this._yScale.bandwidth()
|
|
276
|
-
: 0)
|
|
277
|
-
.on('mouseenter', this.hover)
|
|
278
|
-
.on('mouseleave', this.hoverOut)
|
|
279
|
-
.on('click', this.openTooltip)
|
|
280
|
-
.transition()
|
|
281
|
-
.duration(this.defaultDuration)
|
|
282
|
-
.ease(polyInOut)
|
|
283
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
284
|
-
? this._xScale(d.value)
|
|
285
|
-
: this._xScale.bandwidth())
|
|
286
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
287
|
-
? this._yScale(d.key)
|
|
288
|
-
: this._yScale(d.value))
|
|
289
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
290
|
-
? this._yScale.bandwidth()
|
|
291
|
-
: this._dims.height -
|
|
292
|
-
this._margin.bottom -
|
|
293
|
-
this._yScale(d.value))
|
|
294
|
-
.attr('fill', '#00005a');
|
|
295
|
-
if (!((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
296
|
-
return tempSelection;
|
|
297
|
-
tempSelection
|
|
298
|
-
.append('text')
|
|
299
|
-
.text((d) => d.value.toLocaleString())
|
|
300
|
-
.attr('class', 'barText')
|
|
301
|
-
.attr('font-size', this.fontSize)
|
|
302
|
-
.attr('font-weight', '600')
|
|
303
|
-
.attr('text-anchor', 'end')
|
|
304
|
-
.style('pointer-events', 'none')
|
|
305
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
306
|
-
? this._yScale(d.key) + this._yScale.bandwidth() / 2
|
|
307
|
-
: this._dims.height - this._margin.bottom)
|
|
308
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
309
|
-
? 2
|
|
310
|
-
: this._xScale(d.key) + this._xScale.bandwidth() / 2)
|
|
311
|
-
.transition()
|
|
312
|
-
.duration(this.defaultDuration)
|
|
313
|
-
.ease(polyInOut)
|
|
314
|
-
.attr('font-size', this.fontSize)
|
|
315
|
-
.attr('font-weight', '600')
|
|
316
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
317
|
-
? this._xScale(d.value)
|
|
318
|
-
: this._xScale(d.key) + this._xScale.bandwidth() / 2)
|
|
319
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
320
|
-
? this._yScale(d.key) + this._yScale.bandwidth() / 2
|
|
321
|
-
: this._yScale(d.value))
|
|
322
|
-
.attr('text-anchor', (d) => {
|
|
323
|
-
if (this.afVariation === BarChartVariation.Vertical)
|
|
324
|
-
return 'middle';
|
|
325
|
-
return this._xScale(d.value) < d.len + this.tickPadding * 2
|
|
326
|
-
? 'start'
|
|
327
|
-
: 'end';
|
|
328
|
-
})
|
|
329
|
-
.attr('dx', (d) => {
|
|
330
|
-
if (this.afVariation === BarChartVariation.Horizontal)
|
|
331
|
-
return this._xScale(d.value) < d.len + this.tickPadding * 2
|
|
332
|
-
? this.tickPadding
|
|
333
|
-
: -this.tickPadding;
|
|
334
|
-
return 0;
|
|
335
|
-
})
|
|
336
|
-
.attr('fill', (d) => {
|
|
337
|
-
if (this.afVariation === BarChartVariation.Vertical)
|
|
338
|
-
return 'black';
|
|
339
|
-
return this._xScale(d.value) < d.len + this.tickPadding * 2
|
|
340
|
-
? 'black'
|
|
341
|
-
: 'white';
|
|
342
|
-
})
|
|
343
|
-
.attr('dy', () => this.afVariation == BarChartVariation.Horizontal
|
|
344
|
-
? '0.35em'
|
|
345
|
-
: '-0.25em')
|
|
346
|
-
.style('pointer-events', 'none')
|
|
347
|
-
.attrTween('text', (d, i, nodelist) => {
|
|
348
|
-
const oldnum = parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
349
|
-
? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
350
|
-
: 0;
|
|
351
|
-
const interpolatedValue = interpolate(oldnum, d.value);
|
|
352
|
-
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this._numberFormat));
|
|
353
|
-
});
|
|
354
|
-
return tempSelection;
|
|
355
|
-
}, (update) => {
|
|
356
|
-
// Update ids to bars
|
|
357
|
-
update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'));
|
|
358
|
-
// Mouse interaction to updated loading bars
|
|
359
|
-
if (fromLoading) {
|
|
360
|
-
update
|
|
361
|
-
.select('rect')
|
|
362
|
-
.on('mouseenter', this.hover)
|
|
363
|
-
.on('mouseleave', this.hoverOut)
|
|
364
|
-
.on('click', this.openTooltip)
|
|
365
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
366
|
-
? 2
|
|
367
|
-
: this._xScale(d.key))
|
|
368
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
369
|
-
? this._yScale(d.key)
|
|
370
|
-
: this._dims.height - this._margin.bottom)
|
|
371
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
372
|
-
? this._xScale(d.value)
|
|
373
|
-
: this._xScale.bandwidth())
|
|
374
|
-
.attr('height', () => this.afVariation === BarChartVariation.Horizontal
|
|
375
|
-
? this._yScale.bandwidth()
|
|
376
|
-
: 0)
|
|
377
|
-
.attr('fill', '#00005a')
|
|
378
|
-
.transition()
|
|
379
|
-
.duration(this.defaultDuration)
|
|
380
|
-
.ease(polyInOut)
|
|
381
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
382
|
-
? this._yScale(d.key)
|
|
383
|
-
: this._yScale(d.value))
|
|
384
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
385
|
-
? this._yScale.bandwidth()
|
|
386
|
-
: this._dims.height -
|
|
387
|
-
this._margin.bottom -
|
|
388
|
-
this._yScale(d.value))
|
|
389
|
-
.on('end', () => this.barChartObserver.observe(this._chartDiv)); // Reset barchartObserver
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
update
|
|
393
|
-
.select('rect')
|
|
394
|
-
.transition()
|
|
395
|
-
.duration(this.defaultDuration)
|
|
396
|
-
.ease(polyInOut)
|
|
397
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
398
|
-
? this._yScale(d.key)
|
|
399
|
-
: this._yScale(d.value))
|
|
400
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
401
|
-
? 2
|
|
402
|
-
: this._xScale(d.key))
|
|
403
|
-
.attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
404
|
-
? this._xScale(d.value)
|
|
405
|
-
: this._xScale.bandwidth())
|
|
406
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
407
|
-
? this._yScale.bandwidth()
|
|
408
|
-
: this._dims.height -
|
|
409
|
-
this._margin.bottom -
|
|
410
|
-
this._yScale(d.value))
|
|
411
|
-
.attr('fill', '#00005a');
|
|
412
|
-
}
|
|
413
|
-
return update
|
|
414
|
-
.select('text')
|
|
415
|
-
.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'; })
|
|
416
|
-
.transition()
|
|
417
|
-
.duration(this.defaultDuration)
|
|
418
|
-
.ease(polyInOut)
|
|
419
|
-
.attr('font-size', this.fontSize)
|
|
420
|
-
.attr('font-weight', '600')
|
|
421
|
-
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
422
|
-
? this._yScale(d.key) + this._yScale.bandwidth() / 2
|
|
423
|
-
: this._yScale(d.value))
|
|
424
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
425
|
-
? this._xScale(d.value)
|
|
426
|
-
: this._xScale(d.key) + this._xScale.bandwidth() / 2)
|
|
427
|
-
.attr('text-anchor', (d) => {
|
|
428
|
-
if (this.afVariation === BarChartVariation.Vertical)
|
|
429
|
-
return 'middle';
|
|
430
|
-
return this._xScale(d.value) < d.len + this.tickPadding * 2
|
|
431
|
-
? 'start'
|
|
432
|
-
: 'end';
|
|
433
|
-
})
|
|
434
|
-
.attr('dx', (d) => {
|
|
435
|
-
if (this.afVariation === BarChartVariation.Horizontal)
|
|
436
|
-
return this._xScale(d.value) < d.len + this.tickPadding * 2
|
|
437
|
-
? this.tickPadding
|
|
438
|
-
: -this.tickPadding;
|
|
439
|
-
return 0;
|
|
440
|
-
})
|
|
441
|
-
.attr('fill', (d) => {
|
|
442
|
-
if (this.afVariation === BarChartVariation.Vertical)
|
|
443
|
-
return 'black';
|
|
444
|
-
return this._xScale(d.value) < d.len + this.tickPadding * 2
|
|
445
|
-
? 'black'
|
|
446
|
-
: 'white';
|
|
447
|
-
})
|
|
448
|
-
.attr('dy', () => this.afVariation == BarChartVariation.Horizontal
|
|
449
|
-
? '0.35em'
|
|
450
|
-
: '-0.25em')
|
|
451
|
-
.style('pointer-events', 'none')
|
|
452
|
-
.attrTween('text', (d, i, nodelist) => {
|
|
453
|
-
const oldnum = parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
454
|
-
? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
|
|
455
|
-
: 0;
|
|
456
|
-
const interpolatedValue = interpolate(oldnum, d.value);
|
|
457
|
-
return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this._numberFormat));
|
|
458
|
-
});
|
|
459
|
-
}, (exit) => exit.remove());
|
|
460
|
-
this._barSelection = this._barChartContainer.selectAll('rect');
|
|
461
|
-
this._textSelection = this._barChartContainer.selectAll('.barText');
|
|
346
|
+
.data(this.mappedData)
|
|
347
|
+
.join('g')
|
|
348
|
+
.attr('class', 'barGroup')
|
|
349
|
+
.attr('id', (d) => this.barGroupID(d.key));
|
|
350
|
+
this.barSelection.selectAll('.bar')
|
|
351
|
+
.data((d) => {
|
|
352
|
+
return d.series;
|
|
353
|
+
})
|
|
354
|
+
.join('rect')
|
|
355
|
+
.attr('class', 'bar')
|
|
356
|
+
.style('cursor', 'pointer')
|
|
357
|
+
.attr('x', this.xFunction)
|
|
358
|
+
.attr('y', this.yFunction)
|
|
359
|
+
.attr('ry', 4)
|
|
360
|
+
.attr('rx', 4)
|
|
361
|
+
.attr('width', this.widthFunction)
|
|
362
|
+
.attr('height', this.heightFunction)
|
|
363
|
+
.attr('fill', (d) => this.colorFunction(d.serie))
|
|
364
|
+
.on('mouseenter', this.hover)
|
|
365
|
+
.on('mouseleave', this.hoverOut)
|
|
366
|
+
.on('click', this.openTooltip);
|
|
367
|
+
this.barSelection = this.barChartContainer.selectAll('.barGroup');
|
|
368
|
+
this.textSelection = this.barChartContainer.selectAll('.barText');
|
|
462
369
|
};
|
|
463
370
|
// Setting position of text according to bar size
|
|
464
371
|
this.adjustBarText = () => {
|
|
465
372
|
var _a, _b;
|
|
466
|
-
if (!((_b = (_a = this.
|
|
373
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
467
374
|
return;
|
|
468
|
-
this.
|
|
375
|
+
this.textSelection
|
|
469
376
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
470
|
-
? this.
|
|
471
|
-
: this.
|
|
377
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
378
|
+
: this.yScale(d.value))
|
|
472
379
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
473
|
-
? this.
|
|
474
|
-
: this.
|
|
380
|
+
? this.xScale(d.value)
|
|
381
|
+
: this.xScale(d.key) + this.xScale.bandwidth() / 2)
|
|
475
382
|
.attr('dx', (d) => {
|
|
476
383
|
if (this.afVariation === BarChartVariation.Horizontal)
|
|
477
|
-
return this.
|
|
384
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
478
385
|
? this.tickPadding
|
|
479
386
|
: -this.tickPadding;
|
|
480
387
|
return 0;
|
|
@@ -482,151 +389,207 @@ const barChart = class {
|
|
|
482
389
|
.attr('fill', (d) => {
|
|
483
390
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
484
391
|
return 'black';
|
|
485
|
-
return this.
|
|
392
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
486
393
|
? 'black'
|
|
487
394
|
: 'white';
|
|
488
395
|
})
|
|
489
396
|
.attr('text-anchor', (d) => {
|
|
490
397
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
491
398
|
return 'middle';
|
|
492
|
-
return this.
|
|
399
|
+
return this.xScale(d.value) < d.len + this.tickPadding * 2
|
|
493
400
|
? 'start'
|
|
494
401
|
: 'end';
|
|
495
402
|
});
|
|
496
403
|
};
|
|
497
404
|
this.reshapeData = () => {
|
|
498
405
|
const toReturn = [];
|
|
499
|
-
if (this.
|
|
500
|
-
this.
|
|
501
|
-
|
|
406
|
+
if (!this.chartData) {
|
|
407
|
+
this.placeholderTicks.forEach((key) => {
|
|
408
|
+
const tick = { key: key, series: [] };
|
|
409
|
+
tick.series.push({
|
|
502
410
|
key: key,
|
|
411
|
+
serie: 'loading',
|
|
503
412
|
value: Math.floor(Math.random() * (9 - 2 + 1) + 2),
|
|
504
|
-
len:
|
|
413
|
+
len: 0
|
|
505
414
|
});
|
|
415
|
+
toReturn.push(tick);
|
|
506
416
|
});
|
|
507
417
|
return toReturn;
|
|
508
418
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
key
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
419
|
+
else {
|
|
420
|
+
if (this.chartData.data.xValueNames) {
|
|
421
|
+
this.chartData.data.xValueNames.forEach((key, index) => {
|
|
422
|
+
const tick = { key: key, series: [] };
|
|
423
|
+
this.chartData.data.series.forEach((serie) => {
|
|
424
|
+
if (serie.yValues[index]) {
|
|
425
|
+
tick.series.push({
|
|
426
|
+
key: key,
|
|
427
|
+
serie: serie.title,
|
|
428
|
+
value: serie.yValues[index],
|
|
429
|
+
len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
toReturn.push(tick);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
this.chartData.data.xValues.forEach((key, index) => {
|
|
438
|
+
const tick = { key: key.toString(), series: [] };
|
|
439
|
+
this.chartData.data.series.forEach((serie) => {
|
|
440
|
+
if (serie.yValues[index]) {
|
|
441
|
+
tick.series.push({
|
|
442
|
+
key: key.toString(),
|
|
443
|
+
serie: serie.title,
|
|
444
|
+
value: serie.yValues[index],
|
|
445
|
+
len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
toReturn.push(tick);
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
}
|
|
516
453
|
return toReturn;
|
|
517
454
|
};
|
|
518
455
|
this.adjustBarSize = () => {
|
|
519
|
-
this.
|
|
520
|
-
.attr('
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
.attr('
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
.
|
|
530
|
-
? this._yScale.bandwidth()
|
|
531
|
-
: this._dims.height - this._margin.bottom - this._yScale(d.value));
|
|
456
|
+
this.barSelection.selectAll('.bar')
|
|
457
|
+
.attr('x', this.xFunction)
|
|
458
|
+
.attr('y', this.yFunction)
|
|
459
|
+
.attr('width', this.widthFunction)
|
|
460
|
+
.attr('height', this.heightFunction);
|
|
461
|
+
};
|
|
462
|
+
this.evalColorVar = (colorVar) => {
|
|
463
|
+
return getComputedStyle(document.documentElement)
|
|
464
|
+
.getPropertyValue(colorVar)
|
|
465
|
+
.trim()
|
|
466
|
+
.toLocaleLowerCase();
|
|
532
467
|
};
|
|
533
|
-
//
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
|
|
468
|
+
// Handling x positioning of bars
|
|
469
|
+
this.xFunction = (d, i) => {
|
|
470
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
471
|
+
? (d.value > 0 ? this.xScale(0) : this.xScale(d.value))
|
|
472
|
+
: this.xScale(d.key) + ((this.xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
|
|
473
|
+
};
|
|
474
|
+
// Handling y positioning of bars
|
|
475
|
+
this.yFunction = (d, i) => {
|
|
476
|
+
if (!d.value)
|
|
477
|
+
return 0;
|
|
478
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
479
|
+
? this.yScale(d.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
|
|
480
|
+
: (d.value < 0 ? this.yScale(0) : this.yScale(d.value));
|
|
481
|
+
};
|
|
482
|
+
// Handling height for bars
|
|
483
|
+
this.heightFunction = (d) => {
|
|
484
|
+
if (!d.value)
|
|
485
|
+
return 0;
|
|
486
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
487
|
+
? this.yScale.bandwidth() / this.dataWidth - (this.barGap)
|
|
488
|
+
: (d.value < 0 ? this.yScale(d.value) - this.yScale(0) : this.yScale(0) - this.yScale(d.value));
|
|
489
|
+
};
|
|
490
|
+
// Handling width for bars
|
|
491
|
+
this.widthFunction = (d) => {
|
|
492
|
+
return this.afVariation === BarChartVariation.Horizontal
|
|
493
|
+
? Math.abs(this.xScale(0) - this.xScale(d.value))
|
|
494
|
+
: this.xScale.bandwidth() / this.dataWidth - (this.barGap);
|
|
537
495
|
};
|
|
538
496
|
// Setting dimension variable
|
|
539
497
|
this.setDims = (onlyHeight = false) => {
|
|
540
498
|
// Get title dimensions
|
|
541
|
-
const tempTitle = select(this.
|
|
542
|
-
const prevHeight = this.
|
|
499
|
+
const tempTitle = select(this.titleDiv).node().getBoundingClientRect(), tempLegend = select(this.legendDiv).node().getBoundingClientRect();
|
|
500
|
+
const prevHeight = this.dims.height;
|
|
543
501
|
if (!onlyHeight)
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
547
|
-
|
|
502
|
+
this.dims = select(this.chartDiv).node().getBoundingClientRect();
|
|
503
|
+
this.dims.height =
|
|
504
|
+
this.maxHeight - tempLegend.height - tempTitle.height - 1.75 * this.rem;
|
|
505
|
+
// Making sure height and width are defined
|
|
506
|
+
this.dims.height = Number.isNaN(this.dims.height) ? 10 : this.dims.height;
|
|
507
|
+
this.dims.width = Number.isNaN(this.dims.width) ? 10 : this.dims.width;
|
|
508
|
+
return prevHeight !== this.dims.height;
|
|
548
509
|
};
|
|
549
510
|
// Setting margins given text size
|
|
550
511
|
this.setMargins = (fromLoading) => {
|
|
551
512
|
var _a;
|
|
552
|
-
this.
|
|
513
|
+
this.pixelSize =
|
|
553
514
|
Number(window
|
|
554
515
|
.getComputedStyle(document.body)
|
|
555
516
|
.getPropertyValue('font-size')
|
|
556
517
|
.match(/\d+/)[0]) * Number(this.fontSize.replace(/[^\d.]|\.(?=.*\.)/g, ''));
|
|
557
518
|
// Getting the longest word, assuming it will also be the widest in terms of pixels
|
|
558
519
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
559
|
-
const left = ((_a = this.
|
|
560
|
-
this.getLargestText(this.
|
|
561
|
-
? this.getLargestText(this.
|
|
520
|
+
const left = ((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data) &&
|
|
521
|
+
this.getLargestText(this.chartData.data.xValueNames)
|
|
522
|
+
? this.getLargestText(this.chartData.data.xValueNames)
|
|
562
523
|
: 0;
|
|
563
|
-
this.
|
|
524
|
+
this.margin.left = left;
|
|
525
|
+
this.margin.bottom = this.pixelSize + this.tickPadding + this.xTickSize;
|
|
564
526
|
}
|
|
565
|
-
else
|
|
566
|
-
this.
|
|
527
|
+
else {
|
|
528
|
+
this.margin.left = this.getLargestText(fromLoading
|
|
567
529
|
? ['0', '10']
|
|
568
530
|
: [
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
531
|
+
this.minVal ? this.tempScale[0].toLocaleString() : '0',
|
|
532
|
+
this.maxVal ? this.tempScale[1].toLocaleString() : '10'
|
|
571
533
|
]);
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
534
|
+
this.margin.bottom = this.pixelSize;
|
|
535
|
+
}
|
|
536
|
+
if (this.margin.left > this.dims.width / 4) {
|
|
537
|
+
this.margin.left = Math.floor(this.dims.width / 4);
|
|
538
|
+
this.margin.ellipsis = true;
|
|
575
539
|
}
|
|
576
540
|
else
|
|
577
|
-
this.
|
|
578
|
-
this._margin.bottom = this._pixelSize + this.tickPadding + this.xTickSize;
|
|
541
|
+
this.margin.ellipsis = false;
|
|
579
542
|
};
|
|
580
543
|
// Adjusting y-ticks
|
|
581
544
|
this.setNamedTicks = (transition = false) => {
|
|
582
545
|
if (this.afVariation == BarChartVariation.Horizontal) {
|
|
583
546
|
if (!transition) {
|
|
584
|
-
this.
|
|
547
|
+
this.yAxisHandle
|
|
585
548
|
.style('font-size', this.fontSize)
|
|
586
549
|
.style('font-family', 'Open Sans')
|
|
587
|
-
.call(this.
|
|
550
|
+
.call(this.yAxis
|
|
588
551
|
.tickPadding(this.tickPadding)
|
|
589
552
|
.tickSize(this.yTickSize)
|
|
590
553
|
.tickSizeOuter(0)
|
|
591
554
|
.tickFormat((d, i) => {
|
|
592
|
-
if (!this.
|
|
555
|
+
if (!this.margin.ellipsis)
|
|
593
556
|
return d.toLocaleString();
|
|
594
557
|
// Adding ellipsis to text
|
|
595
|
-
const size = this.
|
|
596
|
-
const mSize = this.
|
|
558
|
+
const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
|
|
559
|
+
const mSize = this.margin.left;
|
|
597
560
|
if (size < mSize)
|
|
598
561
|
return d.toLocaleString();
|
|
599
|
-
const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
562
|
+
const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3)) + '...');
|
|
600
563
|
let adjustment = 0;
|
|
601
564
|
if (newSize > mSize) {
|
|
602
565
|
adjustment = Math.ceil((newSize - mSize) / (size / d.length));
|
|
603
566
|
}
|
|
604
567
|
// Slicing the text up, saving atleast 3 characters
|
|
605
568
|
return (d
|
|
606
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
569
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
|
|
607
570
|
.trim() + '...');
|
|
608
571
|
}));
|
|
609
572
|
}
|
|
610
573
|
else {
|
|
611
|
-
this.
|
|
574
|
+
this.yAxisHandle
|
|
612
575
|
.style('font-size', this.fontSize)
|
|
613
576
|
.style('font-family', 'Open Sans')
|
|
614
577
|
.transition()
|
|
615
578
|
.duration(this.defaultDuration)
|
|
616
|
-
.call(this.
|
|
579
|
+
.call(this.yAxis
|
|
617
580
|
.tickPadding(this.tickPadding)
|
|
618
581
|
.tickSize(this.yTickSize)
|
|
619
582
|
.tickSizeOuter(0)
|
|
620
583
|
.tickFormat((d, i) => {
|
|
621
|
-
if (!this.
|
|
584
|
+
if (!this.margin.ellipsis)
|
|
622
585
|
return d;
|
|
623
586
|
// Adding ellipsis to text
|
|
624
|
-
const size = this.
|
|
625
|
-
const mSize = this.
|
|
587
|
+
const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
|
|
588
|
+
const mSize = this.margin.left;
|
|
626
589
|
if (size < mSize)
|
|
627
590
|
return d;
|
|
628
591
|
const newSize = this.getTextSize(d
|
|
629
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
592
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3))
|
|
630
593
|
.trim() + '...');
|
|
631
594
|
let adjustment = 0;
|
|
632
595
|
if (newSize > mSize) {
|
|
@@ -634,26 +597,26 @@ const barChart = class {
|
|
|
634
597
|
}
|
|
635
598
|
// Slicing the text up, saving atleast 3 characters
|
|
636
599
|
return (d
|
|
637
|
-
.slice(0, Math.max(Math.floor((mSize / (size + this.
|
|
600
|
+
.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
|
|
638
601
|
.trim() + '...');
|
|
639
602
|
}));
|
|
640
603
|
}
|
|
641
604
|
}
|
|
642
605
|
else {
|
|
643
606
|
//Calculating every n:th text to show
|
|
644
|
-
let nTh = Math.round(this.
|
|
645
|
-
((this.
|
|
646
|
-
if (Math.floor(this.
|
|
647
|
-
nTh = Math.round(this.
|
|
607
|
+
let nTh = Math.max(Math.round(this.chartData.data.xValues.length /
|
|
608
|
+
((this.dims.width - this.margin.left - this.margin.right) / 90 - 1)), 1);
|
|
609
|
+
if (Math.floor(this.chartData.data.xValues.length / nTh) < 4) {
|
|
610
|
+
nTh = Math.round(this.chartData.data.xValues.length / 4);
|
|
648
611
|
}
|
|
649
|
-
const allowedWidth = (this.
|
|
650
|
-
Math.floor(this.
|
|
612
|
+
const allowedWidth = (this.dims.width - this.margin.left - this.margin.right) /
|
|
613
|
+
Math.floor(this.chartData.data.xValues.length / nTh + 1);
|
|
651
614
|
if (!transition) {
|
|
652
|
-
this.
|
|
615
|
+
this.xAxisHandle
|
|
653
616
|
.style('font-size', this.fontSize)
|
|
654
617
|
.style('font-family', 'Open Sans')
|
|
655
|
-
.call(this.
|
|
656
|
-
.tickValues(this.
|
|
618
|
+
.call(this.xAxis
|
|
619
|
+
.tickValues(this.xScale.domain().filter((...[, i]) => {
|
|
657
620
|
if (i == 0)
|
|
658
621
|
return true;
|
|
659
622
|
else {
|
|
@@ -665,23 +628,23 @@ const barChart = class {
|
|
|
665
628
|
.tickSizeOuter(0)
|
|
666
629
|
.tickFormat((d, i) => {
|
|
667
630
|
const index = i * nTh;
|
|
668
|
-
if (this.
|
|
631
|
+
if (this.namedTickSizes[index] < allowedWidth)
|
|
669
632
|
return d;
|
|
670
633
|
return (d.slice(0, Math.max(Math.floor((allowedWidth /
|
|
671
|
-
(this.
|
|
672
|
-
this.
|
|
634
|
+
(this.namedTickSizes[index] +
|
|
635
|
+
this.ellipsisSize +
|
|
673
636
|
5)) *
|
|
674
637
|
d.length), 3)) + '...');
|
|
675
638
|
}));
|
|
676
639
|
}
|
|
677
640
|
else {
|
|
678
|
-
this.
|
|
641
|
+
this.xAxisHandle
|
|
679
642
|
.style('font-size', this.fontSize)
|
|
680
643
|
.style('font-family', 'Open Sans')
|
|
681
644
|
.transition()
|
|
682
645
|
.duration(this.defaultDuration)
|
|
683
|
-
.call(this.
|
|
684
|
-
.tickValues(this.
|
|
646
|
+
.call(this.xAxis
|
|
647
|
+
.tickValues(this.xScale.domain().filter((...[, i]) => {
|
|
685
648
|
if (i == 0)
|
|
686
649
|
return true;
|
|
687
650
|
else {
|
|
@@ -693,11 +656,11 @@ const barChart = class {
|
|
|
693
656
|
.tickSizeOuter(0)
|
|
694
657
|
.tickFormat((d, i) => {
|
|
695
658
|
const index = i * nTh;
|
|
696
|
-
if (this.
|
|
659
|
+
if (this.namedTickSizes[index] < allowedWidth)
|
|
697
660
|
return d;
|
|
698
661
|
return (d.slice(0, Math.max(Math.floor((allowedWidth /
|
|
699
|
-
(this.
|
|
700
|
-
this.
|
|
662
|
+
(this.namedTickSizes[index] +
|
|
663
|
+
this.ellipsisSize +
|
|
701
664
|
5)) *
|
|
702
665
|
d.length), 3)) + '...');
|
|
703
666
|
}));
|
|
@@ -707,30 +670,30 @@ const barChart = class {
|
|
|
707
670
|
// Positioning the ticks of the value bearing axis
|
|
708
671
|
this.setValueTicks = (transition = false) => {
|
|
709
672
|
var _a, _b;
|
|
710
|
-
if (((_a = this.
|
|
673
|
+
if (((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
|
|
711
674
|
this.afVariation === BarChartVariation.Horizontal
|
|
712
|
-
? this.
|
|
713
|
-
: this.
|
|
675
|
+
? this.xAxisHandle.attr('display', 'none')
|
|
676
|
+
: this.yAxisHandle.attr('display', 'none');
|
|
714
677
|
return;
|
|
715
678
|
}
|
|
716
679
|
let toCall, tickSize, handle;
|
|
717
680
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
718
|
-
this.
|
|
719
|
-
toCall = this.
|
|
720
|
-
tickSize = -(this.
|
|
721
|
-
handle = this.
|
|
681
|
+
this.xAxisHandle.attr('display', null);
|
|
682
|
+
toCall = this.xAxis;
|
|
683
|
+
tickSize = -(this.dims.height - this.margin.top - this.margin.bottom);
|
|
684
|
+
handle = this.xAxisHandle;
|
|
722
685
|
}
|
|
723
686
|
else {
|
|
724
|
-
this.
|
|
725
|
-
toCall = this.
|
|
726
|
-
tickSize = -(this.
|
|
727
|
-
handle = this.
|
|
687
|
+
this.yAxisHandle.attr('display', null);
|
|
688
|
+
toCall = this.yAxis;
|
|
689
|
+
tickSize = -(this.dims.width - this.margin.left - this.margin.right);
|
|
690
|
+
handle = this.yAxisHandle;
|
|
728
691
|
}
|
|
729
692
|
// Computing the amount of ticks to show
|
|
730
|
-
const ticks = Math.min(Math.floor((this.
|
|
731
|
-
(this.
|
|
732
|
-
? this.
|
|
733
|
-
: this.
|
|
693
|
+
const ticks = Math.min(Math.floor((this.dims.width - this.margin.left - this.margin.right) /
|
|
694
|
+
(this.tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
|
|
695
|
+
? this.xScale.ticks().length
|
|
696
|
+
: this.yScale.ticks().length);
|
|
734
697
|
if (!transition) {
|
|
735
698
|
handle
|
|
736
699
|
.style('font-size', this.fontSize)
|
|
@@ -761,124 +724,171 @@ const barChart = class {
|
|
|
761
724
|
}
|
|
762
725
|
handle.selectAll('line').attr('stroke', 'lightgray');
|
|
763
726
|
if (this.afVariation === BarChartVariation.Vertical)
|
|
764
|
-
this.
|
|
727
|
+
this.yAxisHandle.select('.domain').attr('display', 'none');
|
|
765
728
|
};
|
|
766
729
|
// Highlight bar
|
|
767
730
|
this.hover = (event) => {
|
|
768
731
|
select(event.target)
|
|
769
|
-
.transition('
|
|
732
|
+
.transition('color')
|
|
770
733
|
.duration(20)
|
|
771
|
-
.attr('fill',
|
|
772
|
-
|
|
773
|
-
|
|
734
|
+
.attr('fill', (d) => {
|
|
735
|
+
var _a;
|
|
736
|
+
if (event.target.tagName === 'rect') {
|
|
737
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
|
|
738
|
+
return 'url(#prognosisHighlight)';
|
|
739
|
+
}
|
|
740
|
+
else
|
|
741
|
+
return this.adjustColor(this.colorFunction(d.serie), 50);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
return this.evalColorVar('--digi--color--background--interactive--hover--tertiary');
|
|
745
|
+
}
|
|
746
|
+
});
|
|
774
747
|
};
|
|
775
748
|
// Removing highlight from bar
|
|
776
749
|
this.hoverOut = (event) => {
|
|
777
750
|
select(event.target)
|
|
778
|
-
.transition('
|
|
751
|
+
.transition('color')
|
|
779
752
|
.duration(this.defaultDuration)
|
|
780
|
-
.attr('fill', event.target.tagName === 'rect' ?
|
|
753
|
+
.attr('fill', (d) => event.target.tagName === 'rect' ? this.colorFunction(d.serie) : '#333333');
|
|
781
754
|
};
|
|
782
755
|
this.openTooltip = (...[, d]) => {
|
|
783
756
|
// If type is string, the user has clicked on a y-axis tick
|
|
784
757
|
if (typeof d === 'string') {
|
|
785
|
-
this.
|
|
786
|
-
.select(
|
|
758
|
+
this.tooltipData = this.barChartContainer
|
|
759
|
+
.select(`#${this.barGroupID(d)}`)
|
|
787
760
|
.datum();
|
|
788
761
|
}
|
|
789
762
|
else
|
|
790
|
-
this.
|
|
791
|
-
const tooltipBody = this.
|
|
792
|
-
|
|
793
|
-
.select(
|
|
794
|
-
.
|
|
795
|
-
.style('font-weight', 500)
|
|
796
|
-
.html(this._tooltipData.key);
|
|
763
|
+
this.tooltipData = d;
|
|
764
|
+
const tooltipBody = this.tooltip.select('.tooltipBody');
|
|
765
|
+
this.tooltip
|
|
766
|
+
.select('.tooltipHeading')
|
|
767
|
+
.html(this.tooltipData.key);
|
|
797
768
|
tooltipBody
|
|
798
769
|
.selectAll('div')
|
|
799
|
-
.data([this.
|
|
770
|
+
.data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
|
|
800
771
|
.join('div')
|
|
801
772
|
.style('display', 'flex')
|
|
802
773
|
.style('flex-direction', 'row')
|
|
803
774
|
.style('flex-wrap', 'nowrap')
|
|
804
775
|
.style('white-space', 'nowrap')
|
|
805
776
|
.style('justify-content', 'space-between')
|
|
806
|
-
.
|
|
807
|
-
|
|
808
|
-
|
|
777
|
+
.style('margin', '0.25rem 0')
|
|
778
|
+
.html((d) => {
|
|
779
|
+
return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
|
|
780
|
+
});
|
|
781
|
+
this.tooltip.style('display', null);
|
|
782
|
+
this.positionTooltip(this.tooltipData);
|
|
809
783
|
};
|
|
810
784
|
this.closeTooltip = () => {
|
|
811
|
-
this.
|
|
785
|
+
this.tooltip.style('display', 'none');
|
|
812
786
|
};
|
|
813
787
|
// Positions tooltip in horizontal mode
|
|
814
788
|
this.positionTooltip = (data) => {
|
|
815
|
-
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
if (
|
|
819
|
-
this.
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
.
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
789
|
+
var _a;
|
|
790
|
+
const width = this.tooltip.node().getBoundingClientRect().width;
|
|
791
|
+
// Single bar
|
|
792
|
+
if ('serie' in data) {
|
|
793
|
+
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
794
|
+
const diff = this.xScale(data.value) / 2 - width / 2;
|
|
795
|
+
this.tooltip
|
|
796
|
+
.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 )`)
|
|
797
|
+
.style('max-width', this.xScale.range()[1] + 'px');
|
|
798
|
+
this.tooltip
|
|
799
|
+
.select('digi-icon-caret-up')
|
|
800
|
+
.style('position', 'absolute')
|
|
801
|
+
.style('top', '-11px')
|
|
802
|
+
.style('left', '0')
|
|
803
|
+
.style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
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);
|
|
807
|
+
const barIndex = ((this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1)) - (this.xScale.bandwidth() / this.dataWidth) / 2;
|
|
808
|
+
// This should be where the x-axis starts
|
|
809
|
+
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
810
|
+
// Creating adjustment for tooltip to not appear outside of chart
|
|
811
|
+
const spaceToSVGEdge = 5;
|
|
812
|
+
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;
|
|
813
|
+
this.tooltip
|
|
814
|
+
.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) )`);
|
|
815
|
+
this.tooltip
|
|
816
|
+
.select('digi-icon-caret-down')
|
|
817
|
+
.style('position', 'absolute')
|
|
818
|
+
.style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
|
|
819
|
+
.style('bottom', '-11.5px');
|
|
820
|
+
}
|
|
829
821
|
}
|
|
830
822
|
else {
|
|
831
|
-
this.
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
.
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
823
|
+
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
824
|
+
this.tooltip
|
|
825
|
+
.style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
|
|
826
|
+
);
|
|
827
|
+
this.tooltip
|
|
828
|
+
.select('digi-icon-caret-up')
|
|
829
|
+
.style('position', 'absolute')
|
|
830
|
+
.style('top', '-11px')
|
|
831
|
+
.style('left', '0')
|
|
832
|
+
.style('transform', `translate(50%,0)`);
|
|
833
|
+
//this.yScale(data.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
837
|
+
const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
|
|
838
|
+
const yMax = max(data.series.map(elem => elem.value));
|
|
839
|
+
// Creating adjustment for tooltip to not appear outside of chart
|
|
840
|
+
const spaceToSVGEdge = 5;
|
|
841
|
+
const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (translatePoint + width / 2) ? (((translatePoint + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
|
|
842
|
+
this.tooltip
|
|
843
|
+
.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) )`);
|
|
844
|
+
this.tooltip
|
|
845
|
+
.select('digi-icon-caret-down')
|
|
846
|
+
.style('position', 'absolute')
|
|
847
|
+
.style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
|
|
848
|
+
.style('bottom', '-11.5px');
|
|
849
|
+
}
|
|
841
850
|
}
|
|
842
851
|
};
|
|
843
852
|
// Once texts has fully loaded, we can recompute some sizes
|
|
844
853
|
this.recomputeTextSize = () => {
|
|
845
854
|
var _a, _b;
|
|
846
855
|
if (this.afVariation == BarChartVariation.Horizontal)
|
|
847
|
-
this.
|
|
856
|
+
this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
|
|
848
857
|
this.tickSizes();
|
|
849
|
-
this.
|
|
850
|
-
if ((_b = (_a = this.
|
|
851
|
-
this.
|
|
858
|
+
this.barChartContainer.selectAll('.barGroup').data(this.mappedData);
|
|
859
|
+
if ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
|
|
860
|
+
this.textSelection.remove();
|
|
852
861
|
this.initBarText();
|
|
853
862
|
};
|
|
854
863
|
// Removes resize observer for chart and inits table
|
|
855
864
|
this.activateTable = (event) => {
|
|
856
865
|
this.closeTooltip();
|
|
857
866
|
this.barChartObserver.disconnect();
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
select(this.
|
|
861
|
-
select(this._host).select('.chartButton').style('display', null);
|
|
867
|
+
this.status.innerHTML = '<p>Visas som tabell</p>';
|
|
868
|
+
select(this.host).select('.tableButton').style('display', 'none');
|
|
869
|
+
select(this.host).select('.chartButton').style('display', null);
|
|
862
870
|
event.target.nextSibling.lastChild.focus();
|
|
863
871
|
const duration = 150;
|
|
864
|
-
this.
|
|
872
|
+
this.svg
|
|
865
873
|
.attr('opacity', 1)
|
|
866
874
|
.transition('fadeout')
|
|
867
875
|
.duration(duration)
|
|
868
876
|
.attr('opacity', 0)
|
|
869
877
|
.on('end', () => {
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
878
|
+
this.svg.remove();
|
|
879
|
+
select(this.legendDiv).select('.legend').selectAll('.legendChip').remove();
|
|
880
|
+
this.legendDiv.style['display'] = 'none';
|
|
881
|
+
this.tableDiv.style['display'] = 'block';
|
|
873
882
|
this.setTableContent();
|
|
874
883
|
this.setTableDimensions();
|
|
875
|
-
select(this.
|
|
884
|
+
select(this.tableDiv)
|
|
876
885
|
.style('opacity', 0)
|
|
877
886
|
.transition('fadein')
|
|
878
887
|
.duration(duration)
|
|
879
888
|
.style('opacity', 1);
|
|
889
|
+
this.chartDiv.style['display'] = 'none';
|
|
880
890
|
});
|
|
881
|
-
select(this.
|
|
891
|
+
select(this.legendDiv)
|
|
882
892
|
.style('opacity', 1)
|
|
883
893
|
.transition('fadeout')
|
|
884
894
|
.duration(duration)
|
|
@@ -886,12 +896,12 @@ const barChart = class {
|
|
|
886
896
|
};
|
|
887
897
|
// Removes observer and calls init functions for line chart
|
|
888
898
|
this.reInitChart = (event) => {
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
891
|
-
select(this.
|
|
892
|
-
select(this._host).select('.chartButton').style('display', 'none');
|
|
899
|
+
this.status.innerHTML = '<p>Visas som diagram</p>';
|
|
900
|
+
select(this.host).select('.tableButton').style('display', null);
|
|
901
|
+
select(this.host).select('.chartButton').style('display', 'none');
|
|
893
902
|
event.target.previousSibling.lastChild.focus();
|
|
894
|
-
const table = select(this.
|
|
903
|
+
const table = select(this.tableDiv);
|
|
904
|
+
const duration = 150;
|
|
895
905
|
table
|
|
896
906
|
.style('opacity', 1)
|
|
897
907
|
.transition()
|
|
@@ -899,12 +909,19 @@ const barChart = class {
|
|
|
899
909
|
.style('opacity', 0)
|
|
900
910
|
.on('end', () => {
|
|
901
911
|
table.style('display', 'none');
|
|
912
|
+
this.chartDiv.style['display'] = 'flex';
|
|
913
|
+
this.legendDiv.style['display'] = 'grid';
|
|
902
914
|
this.initChain();
|
|
903
|
-
this.
|
|
915
|
+
this.svg
|
|
904
916
|
.attr('opacity', 0)
|
|
905
917
|
.transition()
|
|
906
|
-
.duration(
|
|
918
|
+
.duration(duration)
|
|
907
919
|
.attr('opacity', 1);
|
|
920
|
+
select(this.legendDiv)
|
|
921
|
+
.style('opacity', 0)
|
|
922
|
+
.transition('fadeout')
|
|
923
|
+
.duration(duration)
|
|
924
|
+
.style('opacity', 1);
|
|
908
925
|
});
|
|
909
926
|
};
|
|
910
927
|
this.afVariation = BarChartVariation.Vertical;
|
|
@@ -913,183 +930,239 @@ const barChart = class {
|
|
|
913
930
|
this.afChartData = undefined;
|
|
914
931
|
}
|
|
915
932
|
afChartDataUpdate(data) {
|
|
916
|
-
if (typeof data
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
933
|
+
if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 || typeof data !== 'string' && Object.keys(data).length > 0) {
|
|
934
|
+
if (typeof data != 'string')
|
|
935
|
+
this.chartData = data;
|
|
936
|
+
else
|
|
937
|
+
this.chartData = JSON.parse(data);
|
|
938
|
+
this.series = this.chartData.data.series.map(serie => serie.title);
|
|
939
|
+
}
|
|
940
|
+
this.mappedData = this.reshapeData();
|
|
941
|
+
// checking for width of each tick
|
|
942
|
+
this.mappedData.forEach((elem) => {
|
|
943
|
+
if (elem.series.length > this.dataWidth)
|
|
944
|
+
this.dataWidth = elem.series.length;
|
|
945
|
+
});
|
|
946
|
+
if (this.dataWidth > 1)
|
|
947
|
+
this.barGap = 1;
|
|
920
948
|
}
|
|
921
949
|
initSvg() {
|
|
922
950
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
923
951
|
// Fetch number formatting
|
|
924
|
-
this.
|
|
925
|
-
maximumSignificantDigits: (_c = (_b = (_a = this.
|
|
926
|
-
notation: ((_f = (_e = (_d = this.
|
|
952
|
+
this.numberFormat = {
|
|
953
|
+
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,
|
|
954
|
+
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)
|
|
927
955
|
? 'compact'
|
|
928
956
|
: 'standard'
|
|
929
957
|
};
|
|
930
|
-
select(this.
|
|
931
|
-
this.
|
|
958
|
+
select(this.chartDiv).select('.chartSVG').remove();
|
|
959
|
+
this.maxHeight = (_g = select(this.host)
|
|
932
960
|
.node()
|
|
933
961
|
.parentNode) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().height;
|
|
934
|
-
this.barChartObserver.observe(this.
|
|
962
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
935
963
|
// Getting rem-size
|
|
936
|
-
this.
|
|
937
|
-
this.setMinMax();
|
|
964
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
938
965
|
this.setDims();
|
|
966
|
+
this.setMinMax();
|
|
939
967
|
this.setMargins();
|
|
940
968
|
// Appending svg
|
|
941
|
-
this.
|
|
969
|
+
this.svg = select(this.chartDiv)
|
|
942
970
|
.append('svg')
|
|
971
|
+
.attr('class', 'chartSVG')
|
|
943
972
|
.attr('aria-hidden', true)
|
|
944
973
|
.attr('role', 'img')
|
|
945
|
-
.attr('aria-label', this.
|
|
946
|
-
? 'Stapeldiagram om ' + this.
|
|
947
|
-
: 'Stapeldiagram')
|
|
948
|
-
|
|
974
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
975
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
976
|
+
: 'Stapeldiagram')
|
|
977
|
+
.attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
|
|
978
|
+
}
|
|
979
|
+
initLegend() {
|
|
980
|
+
const rectSize = 18;
|
|
981
|
+
const legendData = this.chartData.data.series.map(serie => serie.title);
|
|
982
|
+
if (this.chartData.data.averageLine)
|
|
983
|
+
legendData.push(this.chartData.data.averageLine.text);
|
|
984
|
+
const legendChips = select(this.legendDiv).select('.legend')
|
|
985
|
+
.style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
|
|
986
|
+
.style('margin-top', '0.5rem')
|
|
987
|
+
.selectAll('.legendChip')
|
|
988
|
+
.data(legendData)
|
|
989
|
+
.join('div')
|
|
990
|
+
.attr('class', 'legendChip')
|
|
991
|
+
.style('display', 'flex')
|
|
992
|
+
.style('flex-direction', 'row')
|
|
993
|
+
.style('align-items', 'center')
|
|
994
|
+
.style('gap', '0.25rem')
|
|
995
|
+
.style('cursor', 'default')
|
|
996
|
+
.on('mouseenter', (_event, serie) => this.highlightBars(serie))
|
|
997
|
+
.on('mouseleave', this.resetBarColor);
|
|
998
|
+
legendChips.append('svg')
|
|
999
|
+
.attr('width', rectSize + 1)
|
|
1000
|
+
.attr('height', rectSize + 1)
|
|
1001
|
+
.append('rect')
|
|
1002
|
+
.attr('x', 0)
|
|
1003
|
+
.attr('y', 0)
|
|
1004
|
+
.attr('width', rectSize)
|
|
1005
|
+
.attr('height', rectSize)
|
|
1006
|
+
.attr('rx', 4)
|
|
1007
|
+
.attr('ry', 4)
|
|
1008
|
+
.attr('fill', (title) => this.colorFunction(title));
|
|
1009
|
+
legendChips.append('span').style('text-wrap', 'nowrap').style('font-size', '0.875rem').text((d) => d);
|
|
1010
|
+
if (this.chartData.data.averageLine) {
|
|
1011
|
+
const averageLine = legendChips.filter(':last-child')
|
|
1012
|
+
.on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
|
|
1013
|
+
const miniSVG = averageLine
|
|
1014
|
+
.select('svg')
|
|
1015
|
+
.attr('width', rectSize * 2);
|
|
1016
|
+
miniSVG.select('rect').remove();
|
|
1017
|
+
miniSVG.append('line')
|
|
1018
|
+
.attr('x1', 1)
|
|
1019
|
+
.attr('x2', rectSize * 2 - 1)
|
|
1020
|
+
.attr('y1', rectSize / 2 + 1)
|
|
1021
|
+
.attr('y2', rectSize / 2 + 1)
|
|
1022
|
+
.attr('stroke', 'var(--digi--color--infographic--lineart)')
|
|
1023
|
+
.attr('stroke-linecap', 'round')
|
|
1024
|
+
.attr('stroke-dasharray', '12, 7');
|
|
1025
|
+
}
|
|
949
1026
|
}
|
|
950
1027
|
initToolTip() {
|
|
951
1028
|
// Getting handle for tooltip
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
.selectAll('.tooltipBody')
|
|
959
|
-
.append(this._tooltipHeading)
|
|
1029
|
+
this.tooltip = select('#' + this.afId);
|
|
1030
|
+
this.tooltip.select('.tooltipClose').on('click', this.closeTooltip);
|
|
1031
|
+
this.tooltip.selectAll('.tooltipHeading').remove();
|
|
1032
|
+
this.tooltip
|
|
1033
|
+
.select('.tooltipHead')
|
|
1034
|
+
.insert('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1), ':first-child') // increment heading level by one
|
|
960
1035
|
.attr('class', 'tooltipHeading') // Adding class to try to dodge global css classes
|
|
1036
|
+
.style('text-wrap', 'wrap')
|
|
961
1037
|
.style('font-size', '1rem')
|
|
962
|
-
.style('margin', '0 0.75rem')
|
|
1038
|
+
.style('margin', '0 0.75rem 0.25rem 0 ')
|
|
963
1039
|
.style('font-weight', '500');
|
|
1040
|
+
this.tooltip.style('display', 'none');
|
|
964
1041
|
}
|
|
965
1042
|
initEmpty() {
|
|
966
|
-
select(this.
|
|
967
|
-
this.
|
|
1043
|
+
select(this.chartDiv).select('.chartSVG').remove();
|
|
1044
|
+
this.maxHeight = select(this.host)
|
|
968
1045
|
.node()
|
|
969
1046
|
.parentNode.getBoundingClientRect().height;
|
|
970
|
-
this.barChartObserver.observe(this.
|
|
971
|
-
// Getting rem-size
|
|
972
|
-
this._rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
973
|
-
//this.setMinMax();
|
|
1047
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
974
1048
|
this.setDims();
|
|
1049
|
+
// Getting rem-size
|
|
1050
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
975
1051
|
this.setMargins();
|
|
976
1052
|
// Appending svg
|
|
977
|
-
this.
|
|
1053
|
+
this.svg = select(this.chartDiv)
|
|
978
1054
|
.append('svg')
|
|
1055
|
+
.attr('class', 'chartSVG')
|
|
979
1056
|
.attr('aria-hidden', true)
|
|
980
1057
|
.attr('role', 'img')
|
|
981
|
-
.attr('aria-label', this.
|
|
982
|
-
? 'Stapeldiagram om ' + this.
|
|
983
|
-
: 'Stapeldiagram');
|
|
984
|
-
this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
|
|
1058
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1059
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1060
|
+
: 'Stapeldiagram').attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
|
|
985
1061
|
// Hide unusable components
|
|
986
|
-
select(this.
|
|
1062
|
+
select(this.titleDiv)
|
|
987
1063
|
.select(this.afHeadingLevel)
|
|
988
1064
|
.html(`${_t.loading}...`);
|
|
989
1065
|
this.initYAxis(true);
|
|
990
1066
|
this.initXAxis(true);
|
|
1067
|
+
this.tooltip = select('#' + this.afId);
|
|
1068
|
+
this.tooltip.style('display', 'none');
|
|
991
1069
|
this.loadingState(true);
|
|
992
1070
|
}
|
|
993
1071
|
loadingState(empty) {
|
|
994
|
-
this.
|
|
1072
|
+
this.loading = true;
|
|
995
1073
|
// close potentially open tooltip
|
|
996
|
-
if (this.
|
|
1074
|
+
if (this.tooltip)
|
|
997
1075
|
this.closeTooltip();
|
|
998
|
-
select(this.
|
|
1076
|
+
select(this.host).select('.tableButton').style('display', 'none');
|
|
999
1077
|
const newHeight = this.setDims();
|
|
1000
1078
|
this.transitionTitle();
|
|
1001
|
-
this.
|
|
1002
|
-
this.
|
|
1003
|
-
this.
|
|
1079
|
+
this.xAxisHandle.selectAll('.tick').remove();
|
|
1080
|
+
this.xAxisHandle.select('path').remove();
|
|
1081
|
+
this.svg
|
|
1004
1082
|
.transition()
|
|
1005
1083
|
.duration(400)
|
|
1006
|
-
.attr('
|
|
1007
|
-
|
|
1008
|
-
.attr('aria-label', this._chartData && this._chartData.title
|
|
1009
|
-
? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
|
|
1084
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1085
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1010
1086
|
: 'Stapeldiagram');
|
|
1011
1087
|
this.setMargins(true);
|
|
1012
|
-
select(this.
|
|
1088
|
+
select(this.titleDiv)
|
|
1013
1089
|
.select(this.afHeadingLevel)
|
|
1014
1090
|
.html(`${_t.loading}...`);
|
|
1015
1091
|
// Waiting with observing for changes until transition to regular bars is complete
|
|
1016
|
-
this.
|
|
1092
|
+
this.barChartContainer
|
|
1017
1093
|
.transition('position')
|
|
1018
1094
|
.duration(this.defaultDuration)
|
|
1019
1095
|
.ease(polyInOut)
|
|
1020
|
-
.attr('transform', `translate(${this.
|
|
1096
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1021
1097
|
// If there is a new height
|
|
1022
1098
|
if (newHeight) {
|
|
1023
1099
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1024
1100
|
this.afVariation === BarChartVariation.Horizontal
|
|
1025
|
-
? this.
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1101
|
+
? this.yScale.range([
|
|
1102
|
+
this.margin.top,
|
|
1103
|
+
this.dims.height - this.margin.bottom
|
|
1028
1104
|
])
|
|
1029
|
-
: this.
|
|
1030
|
-
this.
|
|
1031
|
-
this.
|
|
1105
|
+
: this.yScale.range([
|
|
1106
|
+
this.dims.height - this.margin.bottom,
|
|
1107
|
+
this.margin.top
|
|
1032
1108
|
]);
|
|
1033
|
-
this.
|
|
1109
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1034
1110
|
}
|
|
1035
1111
|
const animateBars = () => {
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1112
|
+
this.barChartContainer.selectAll('.interactiveElements').remove();
|
|
1113
|
+
this.barSelection = this.barChartContainer
|
|
1114
|
+
.append('g')
|
|
1115
|
+
.attr('class', 'interactiveElements')
|
|
1116
|
+
.style('isolation', 'isolate')
|
|
1038
1117
|
.selectAll('barGroup')
|
|
1039
|
-
.data(this.
|
|
1118
|
+
.data(this.mappedData)
|
|
1040
1119
|
.join('g')
|
|
1041
1120
|
.attr('class', 'barGroup')
|
|
1042
|
-
.attr('id', (d) =>
|
|
1043
|
-
|
|
1121
|
+
.attr('id', (d) => this.barGroupID(d.key));
|
|
1122
|
+
this.barSelection.selectAll('bar')
|
|
1123
|
+
.data((d) => {
|
|
1124
|
+
return d.series;
|
|
1125
|
+
})
|
|
1126
|
+
.join('rect')
|
|
1044
1127
|
.attr('class', 'bar')
|
|
1045
|
-
.style('cursor', 'pointer');
|
|
1046
|
-
this._barSelection
|
|
1047
1128
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1048
|
-
? this.
|
|
1049
|
-
: this.
|
|
1050
|
-
.attr('x',
|
|
1051
|
-
? 2
|
|
1052
|
-
: this._xScale(d.key))
|
|
1129
|
+
? this.yScale(d.key)
|
|
1130
|
+
: this.dims.height - this.margin.bottom)
|
|
1131
|
+
.attr('x', this.xFunction)
|
|
1053
1132
|
.attr('ry', 4)
|
|
1054
1133
|
.attr('rx', 4)
|
|
1055
|
-
.attr('width',
|
|
1056
|
-
? this._xScale(d.value)
|
|
1057
|
-
: this._xScale.bandwidth())
|
|
1134
|
+
.attr('width', this.widthFunction)
|
|
1058
1135
|
.attr('height', () => 0)
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
.transition()
|
|
1136
|
+
.attr('fill', 'gray');
|
|
1137
|
+
this.barChartContainer.selectAll('.bar')
|
|
1138
|
+
.transition('animateBar')
|
|
1062
1139
|
.duration(400)
|
|
1063
1140
|
.delay((...[, i]) => i * 150)
|
|
1064
|
-
.attr('y',
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
.
|
|
1068
|
-
? this._yScale.bandwidth()
|
|
1069
|
-
: this._dims.height - this._margin.bottom - this._yScale(d.value));
|
|
1070
|
-
this._barSelection
|
|
1071
|
-
.transition()
|
|
1141
|
+
.attr('y', this.yFunction)
|
|
1142
|
+
.attr('height', this.heightFunction);
|
|
1143
|
+
this.barChartContainer.selectAll('.bar')
|
|
1144
|
+
.transition('animateBar')
|
|
1072
1145
|
.duration(400)
|
|
1073
1146
|
.ease(linear$1)
|
|
1074
1147
|
.delay((...[, i]) => i * 150 + 400)
|
|
1075
1148
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1076
|
-
? this.
|
|
1077
|
-
: this.
|
|
1149
|
+
? this.yScale(d.key)
|
|
1150
|
+
: this.dims.height - this.margin.bottom)
|
|
1078
1151
|
.attr('height', () => 0)
|
|
1079
1152
|
.on('end', (...[, i]) => {
|
|
1080
|
-
if (i === this.
|
|
1153
|
+
if (i === this.placeholderTicks.length - 1)
|
|
1081
1154
|
animateBars();
|
|
1082
1155
|
});
|
|
1083
1156
|
};
|
|
1084
1157
|
const flattenBars = () => {
|
|
1085
|
-
this.
|
|
1086
|
-
.selectAll('
|
|
1087
|
-
.transition()
|
|
1158
|
+
this.barChartContainer
|
|
1159
|
+
.selectAll('.bar')
|
|
1160
|
+
.transition('animateBar')
|
|
1088
1161
|
.duration(200)
|
|
1089
1162
|
.ease(linear$1)
|
|
1090
1163
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1091
|
-
? this.
|
|
1092
|
-
: this.
|
|
1164
|
+
? this.yScale(d.key)
|
|
1165
|
+
: this.dims.height - this.margin.bottom)
|
|
1093
1166
|
.attr('height', () => 0)
|
|
1094
1167
|
.on('end', (...[, i]) => {
|
|
1095
1168
|
if (i != 0)
|
|
@@ -1097,7 +1170,7 @@ const barChart = class {
|
|
|
1097
1170
|
this.setYScale(true);
|
|
1098
1171
|
this.setValueTicks();
|
|
1099
1172
|
this.setXScale(true);
|
|
1100
|
-
this.barChartObserver.observe(this.
|
|
1173
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
1101
1174
|
animateBars();
|
|
1102
1175
|
});
|
|
1103
1176
|
};
|
|
@@ -1107,20 +1180,20 @@ const barChart = class {
|
|
|
1107
1180
|
flattenBars();
|
|
1108
1181
|
}
|
|
1109
1182
|
transitionTitle() {
|
|
1110
|
-
const height = select(this.
|
|
1111
|
-
select(this.
|
|
1112
|
-
.style('height', this.
|
|
1183
|
+
const height = select(this.titleDiv).style('height');
|
|
1184
|
+
select(this.titleDiv)
|
|
1185
|
+
.style('height', this.prevHeight)
|
|
1113
1186
|
.transition('adjust')
|
|
1114
1187
|
.duration(400)
|
|
1115
1188
|
.style('height', height)
|
|
1116
|
-
.on('end', () => select(this.
|
|
1189
|
+
.on('end', () => select(this.titleDiv).style('height', null));
|
|
1117
1190
|
}
|
|
1118
1191
|
initYAxis(empty) {
|
|
1119
1192
|
this.setYScale(empty);
|
|
1120
|
-
this.
|
|
1193
|
+
this.barChartContainer = this.svg
|
|
1121
1194
|
.append('g')
|
|
1122
|
-
.attr('transform', `translate(${this.
|
|
1123
|
-
this.
|
|
1195
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1196
|
+
this.yAxisHandle = this.barChartContainer.append('g');
|
|
1124
1197
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
1125
1198
|
this.tickSizes();
|
|
1126
1199
|
this.setNamedTicks();
|
|
@@ -1132,31 +1205,31 @@ const barChart = class {
|
|
|
1132
1205
|
// Sets the largest and smallest value from series 0, Should only be used when not loading
|
|
1133
1206
|
setMinMax() {
|
|
1134
1207
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1135
|
-
const max$1 = max((_a = this.
|
|
1136
|
-
? max((_b = this.
|
|
1208
|
+
const max$1 = max((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
|
|
1209
|
+
? max((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
|
|
1137
1210
|
: 0;
|
|
1138
|
-
const min$1 = min([0, min((_c = this.
|
|
1139
|
-
? min([0, min((_d = this.
|
|
1211
|
+
const min$1 = min([0, min((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
|
|
1212
|
+
? min([0, min((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
|
|
1140
1213
|
: 0;
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1144
|
-
.domain([this.
|
|
1145
|
-
.nice(((_f = (_e = this.
|
|
1146
|
-
? (_g = this.
|
|
1214
|
+
this.maxVal = max$1;
|
|
1215
|
+
this.minVal = min$1;
|
|
1216
|
+
this.tempScale = linear()
|
|
1217
|
+
.domain([this.minVal, this.maxVal])
|
|
1218
|
+
.nice(((_f = (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
|
|
1219
|
+
? (_g = this.chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
|
|
1147
1220
|
: 3)
|
|
1148
1221
|
.domain();
|
|
1149
1222
|
}
|
|
1150
1223
|
// Setting up x-axis, getting margin.right in this function
|
|
1151
1224
|
initXAxis(empty) {
|
|
1152
1225
|
this.setXScale(empty);
|
|
1153
|
-
this.
|
|
1226
|
+
this.xAxisHandle = this.barChartContainer
|
|
1154
1227
|
.append('g')
|
|
1155
|
-
.attr('transform', `translate(0,${this.
|
|
1228
|
+
.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1156
1229
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
1157
1230
|
this.setValueTicks();
|
|
1158
1231
|
// Removing first tick, because it aligns with y-axis domain
|
|
1159
|
-
this.
|
|
1232
|
+
//this.xAxisHandle.select('.tick').select('line').remove();
|
|
1160
1233
|
}
|
|
1161
1234
|
else {
|
|
1162
1235
|
if (!empty) {
|
|
@@ -1168,79 +1241,84 @@ const barChart = class {
|
|
|
1168
1241
|
}
|
|
1169
1242
|
// Initializing bars, can only handle one series of bars for now
|
|
1170
1243
|
initBars() {
|
|
1171
|
-
this.
|
|
1244
|
+
this.barSelection = this.barChartContainer
|
|
1245
|
+
.append('g')
|
|
1246
|
+
.attr('class', 'interactiveElements')
|
|
1247
|
+
.style('isolation', 'isolate')
|
|
1172
1248
|
.selectAll('barGroup')
|
|
1173
|
-
.data(this.
|
|
1249
|
+
.data(this.mappedData)
|
|
1174
1250
|
.join('g')
|
|
1175
1251
|
.attr('class', 'barGroup')
|
|
1176
|
-
.attr('id', (d) =>
|
|
1177
|
-
|
|
1252
|
+
.attr('id', (d) => this.barGroupID(d.key));
|
|
1253
|
+
this.barSelection.selectAll('.barGroup')
|
|
1254
|
+
.data((d) => {
|
|
1255
|
+
return d.series;
|
|
1256
|
+
})
|
|
1257
|
+
.join('rect')
|
|
1178
1258
|
.attr('class', 'bar')
|
|
1179
|
-
.style('cursor', 'pointer')
|
|
1180
|
-
|
|
1181
|
-
.attr('y',
|
|
1182
|
-
? this._yScale(d.key)
|
|
1183
|
-
: this._yScale(d.value))
|
|
1184
|
-
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1185
|
-
? 2
|
|
1186
|
-
: this._xScale(d.key))
|
|
1259
|
+
.style('cursor', 'pointer')
|
|
1260
|
+
.attr('x', this.xFunction)
|
|
1261
|
+
.attr('y', this.yFunction)
|
|
1187
1262
|
.attr('ry', 4)
|
|
1188
1263
|
.attr('rx', 4)
|
|
1189
|
-
.attr('width',
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
.attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1193
|
-
? this._yScale.bandwidth()
|
|
1194
|
-
: this._dims.height - this._margin.bottom - this._yScale(d.value))
|
|
1195
|
-
.attr('fill', '#00005a')
|
|
1264
|
+
.attr('width', this.widthFunction)
|
|
1265
|
+
.attr('height', this.heightFunction)
|
|
1266
|
+
.attr('fill', (d) => this.colorFunction(d.serie))
|
|
1196
1267
|
.on('mouseenter', this.hover)
|
|
1197
1268
|
.on('mouseleave', this.hoverOut)
|
|
1198
1269
|
.on('click', this.openTooltip);
|
|
1199
1270
|
}
|
|
1200
1271
|
initBarText() {
|
|
1201
|
-
|
|
1272
|
+
var _a, _b;
|
|
1273
|
+
if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
|
|
1274
|
+
return;
|
|
1275
|
+
this.textSelection = this.barChartContainer
|
|
1202
1276
|
.selectAll('.barGroup')
|
|
1203
1277
|
.append('text');
|
|
1204
|
-
this.
|
|
1205
|
-
.text((d) =>
|
|
1278
|
+
this.textSelection
|
|
1279
|
+
.text((d) => {
|
|
1280
|
+
return d.value ? d.value.toLocaleString(undefined, this.numberFormat) : undefined;
|
|
1281
|
+
})
|
|
1206
1282
|
.attr('class', 'barText')
|
|
1207
1283
|
.attr('font-size', this.fontSize)
|
|
1208
1284
|
.attr('font-weight', '600')
|
|
1209
1285
|
.attr('text-anchor', 'end')
|
|
1210
1286
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1211
|
-
? this.
|
|
1212
|
-
: this.
|
|
1287
|
+
? this.yScale(d.key) + this.yScale.bandwidth() / 2
|
|
1288
|
+
: this.yScale(d.value))
|
|
1213
1289
|
.attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1214
|
-
? this.
|
|
1215
|
-
: this.
|
|
1290
|
+
? this.xScale(d)
|
|
1291
|
+
: this.xScale(d.key) + this.xScale.bandwidth())
|
|
1216
1292
|
.attr('dy', () => this.afVariation == BarChartVariation.Horizontal ? '0.35em' : '-0.25em')
|
|
1217
1293
|
.style('pointer-events', 'none')
|
|
1218
|
-
.style('display', () => { var _a, _b; return ((_b = (_a = this.
|
|
1294
|
+
.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'; });
|
|
1219
1295
|
this.adjustBarText();
|
|
1220
1296
|
}
|
|
1221
1297
|
initChain() {
|
|
1222
1298
|
this.initSvg();
|
|
1299
|
+
this.initLegend();
|
|
1223
1300
|
this.initToolTip();
|
|
1224
1301
|
this.initYAxis();
|
|
1225
1302
|
this.initXAxis();
|
|
1226
1303
|
this.initBars();
|
|
1304
|
+
this.averageLine();
|
|
1227
1305
|
this.initBarText();
|
|
1228
1306
|
}
|
|
1229
1307
|
async updateChain() {
|
|
1230
1308
|
var _a, _b, _c, _d, _e, _f;
|
|
1231
1309
|
// Fetch number formatting
|
|
1232
|
-
this.
|
|
1233
|
-
maximumSignificantDigits: (_c = (_b = (_a = this.
|
|
1234
|
-
notation: ((_f = (_e = (_d = this.
|
|
1310
|
+
this.numberFormat = {
|
|
1311
|
+
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,
|
|
1312
|
+
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)
|
|
1235
1313
|
? 'compact'
|
|
1236
1314
|
: 'standard'
|
|
1237
1315
|
};
|
|
1238
|
-
if (this.
|
|
1316
|
+
if (this.tooltip)
|
|
1239
1317
|
this.closeTooltip();
|
|
1240
1318
|
// Check whether we are in table mode or not
|
|
1241
|
-
if (this.
|
|
1242
|
-
if (!this.
|
|
1243
|
-
select(this.
|
|
1319
|
+
if (this.tableDiv.style['display'] == 'block') {
|
|
1320
|
+
if (!this.chartData.title) {
|
|
1321
|
+
select(this.titleDiv)
|
|
1244
1322
|
.select(this.afHeadingLevel)
|
|
1245
1323
|
.html(`${_t.loading}...`);
|
|
1246
1324
|
}
|
|
@@ -1252,85 +1330,86 @@ const barChart = class {
|
|
|
1252
1330
|
}
|
|
1253
1331
|
else {
|
|
1254
1332
|
// displaying legend again
|
|
1255
|
-
if (this.
|
|
1256
|
-
select(this.
|
|
1257
|
-
select(this.
|
|
1333
|
+
if (this.loading) {
|
|
1334
|
+
select(this.host).select('.tableButton').style('display', null);
|
|
1335
|
+
select(this.legendDiv).style('display', null);
|
|
1258
1336
|
this.initToolTip();
|
|
1337
|
+
this.initLegend();
|
|
1259
1338
|
}
|
|
1260
1339
|
// Disconnect resize observer while adjusting things
|
|
1261
1340
|
this.barChartObserver.disconnect();
|
|
1262
1341
|
this.setMinMax();
|
|
1263
1342
|
const newHeight = this.setDims();
|
|
1264
1343
|
this.transitionTitle();
|
|
1265
|
-
this.
|
|
1266
|
-
.
|
|
1267
|
-
.
|
|
1268
|
-
.attr('width', this._dims.width)
|
|
1269
|
-
.attr('height', this._dims.height)
|
|
1270
|
-
.attr('aria-label', this._chartData && this._chartData.title
|
|
1271
|
-
? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
|
|
1344
|
+
this.svg
|
|
1345
|
+
.attr('aria-label', this.chartData && this.chartData.title
|
|
1346
|
+
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
1272
1347
|
: 'Stapeldiagram');
|
|
1273
1348
|
this.setMargins();
|
|
1274
1349
|
// Waiting with observing for changes until transition to regular bars is complete
|
|
1275
|
-
this.
|
|
1350
|
+
this.barChartContainer
|
|
1276
1351
|
.transition('position')
|
|
1277
1352
|
.duration(this.defaultDuration)
|
|
1278
1353
|
.ease(polyInOut)
|
|
1279
|
-
.attr('transform', `translate(${this.
|
|
1280
|
-
if (!this.
|
|
1281
|
-
this.
|
|
1354
|
+
.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1355
|
+
if (!this.loading)
|
|
1356
|
+
this.barChartContainer.on('end', () => this.barChartObserver.observe(this.chartDiv));
|
|
1282
1357
|
// If there is a new height
|
|
1283
1358
|
if (newHeight) {
|
|
1284
1359
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1285
1360
|
this.afVariation === BarChartVariation.Horizontal
|
|
1286
|
-
? this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1361
|
+
? this.yScale.range([
|
|
1362
|
+
this.margin.top,
|
|
1363
|
+
this.dims.height - this.margin.bottom
|
|
1289
1364
|
])
|
|
1290
|
-
: this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1365
|
+
: this.yScale.range([
|
|
1366
|
+
this.dims.height - this.margin.bottom,
|
|
1367
|
+
this.margin.top
|
|
1293
1368
|
]);
|
|
1294
|
-
this.
|
|
1369
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1295
1370
|
}
|
|
1296
1371
|
this.tickSizes();
|
|
1297
1372
|
this.setYScale();
|
|
1298
1373
|
this.setXScale();
|
|
1299
1374
|
this.setTickInteraction();
|
|
1300
|
-
this.
|
|
1301
|
-
? this.
|
|
1302
|
-
: this.
|
|
1375
|
+
this.tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
|
|
1376
|
+
? this.xScale.ticks().map((tick) => tick.toLocaleString())
|
|
1377
|
+
: this.yScale.ticks().map((tick) => tick.toLocaleString()));
|
|
1303
1378
|
this.setValueTicks(true);
|
|
1304
|
-
if (this.
|
|
1305
|
-
select(this.
|
|
1379
|
+
if (this.loading) {
|
|
1380
|
+
select(this.legendDiv)
|
|
1306
1381
|
.style('opacity', 0)
|
|
1307
1382
|
.transition()
|
|
1308
1383
|
.duration(400)
|
|
1309
1384
|
.ease(polyInOut)
|
|
1310
1385
|
.style('opacity', 1);
|
|
1311
|
-
this.
|
|
1312
|
-
this.getTextSize(this.
|
|
1386
|
+
this.margin.right =
|
|
1387
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
1313
1388
|
this.yTickSize +
|
|
1314
1389
|
this.tickPadding;
|
|
1315
1390
|
// Update x-axis with new width
|
|
1316
|
-
this.
|
|
1391
|
+
this.xScale.range([
|
|
1317
1392
|
0,
|
|
1318
|
-
this.
|
|
1393
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
1319
1394
|
]);
|
|
1320
1395
|
this.setNamedTicks(true);
|
|
1321
1396
|
// Stop animation
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
|
|
1397
|
+
this.barChartContainer.selectAll('.barGroup').on('end', null);
|
|
1398
|
+
select(this.titleDiv).select('.loadingHeader').remove();
|
|
1399
|
+
this.loading = false;
|
|
1400
|
+
this.barChartContainer.selectAll('.bar').interrupt('animateBar');
|
|
1401
|
+
this.barChartContainer.selectAll('.bar').transition()
|
|
1326
1402
|
.duration(this.defaultDuration)
|
|
1327
1403
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
1328
|
-
? this.
|
|
1329
|
-
: this.
|
|
1404
|
+
? this.yScale(d.key)
|
|
1405
|
+
: this.dims.height - this.margin.bottom)
|
|
1330
1406
|
.attr('height', () => 0)
|
|
1331
|
-
.on('end', (...[, i]) =>
|
|
1332
|
-
|
|
1333
|
-
|
|
1407
|
+
.on('end', (...[, i]) => {
|
|
1408
|
+
if (i === this.placeholderTicks.length - 1) {
|
|
1409
|
+
this.updateBars();
|
|
1410
|
+
this.barChartObserver.observe(this.chartDiv);
|
|
1411
|
+
}
|
|
1412
|
+
});
|
|
1334
1413
|
this.setTickInteraction();
|
|
1335
1414
|
}
|
|
1336
1415
|
else {
|
|
@@ -1340,42 +1419,60 @@ const barChart = class {
|
|
|
1340
1419
|
}
|
|
1341
1420
|
}
|
|
1342
1421
|
}
|
|
1422
|
+
// Getting correct color given index or name of data serie
|
|
1423
|
+
colorFunction(input) {
|
|
1424
|
+
var _a;
|
|
1425
|
+
if (typeof input === 'number') {
|
|
1426
|
+
return this.evalColorVar(this.colorPalettes[input]);
|
|
1427
|
+
}
|
|
1428
|
+
else {
|
|
1429
|
+
const index = this.chartData.data.series.findIndex((serie) => serie.title === input);
|
|
1430
|
+
if (index > 0) {
|
|
1431
|
+
if ((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern)
|
|
1432
|
+
return 'url(#prognosis)';
|
|
1433
|
+
else
|
|
1434
|
+
return this.evalColorVar(this.colorPalettes[index]);
|
|
1435
|
+
}
|
|
1436
|
+
else
|
|
1437
|
+
return this.evalColorVar(this.colorPalettes[0]);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1343
1440
|
// Resizing bar chart
|
|
1344
1441
|
resize() {
|
|
1345
|
-
var _a;
|
|
1346
1442
|
const newHeight = this.setDims();
|
|
1347
|
-
this.setMargins();
|
|
1348
|
-
|
|
1349
|
-
this.
|
|
1350
|
-
|
|
1351
|
-
this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
|
|
1443
|
+
//this.setMargins();
|
|
1444
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1445
|
+
this.margin.right =
|
|
1446
|
+
this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
|
|
1352
1447
|
this.yTickSize +
|
|
1353
1448
|
this.tickPadding;
|
|
1354
1449
|
// If there is a new height
|
|
1355
1450
|
if (newHeight) {
|
|
1356
1451
|
// Update y-axis with potentially new height (might want to do a check here)
|
|
1357
1452
|
this.afVariation === BarChartVariation.Horizontal
|
|
1358
|
-
? this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1453
|
+
? this.yScale.range([
|
|
1454
|
+
this.margin.top,
|
|
1455
|
+
this.dims.height - this.margin.bottom
|
|
1361
1456
|
])
|
|
1362
|
-
: this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1457
|
+
: this.yScale.range([
|
|
1458
|
+
this.dims.height - this.margin.bottom,
|
|
1459
|
+
this.margin.top
|
|
1365
1460
|
]);
|
|
1366
|
-
this.
|
|
1461
|
+
this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
|
|
1367
1462
|
}
|
|
1368
1463
|
// Update x-axis with new width
|
|
1369
|
-
this.
|
|
1464
|
+
this.xScale.range([
|
|
1370
1465
|
0,
|
|
1371
|
-
this.
|
|
1466
|
+
this.dims.width - this.margin.right - this.margin.left
|
|
1372
1467
|
]);
|
|
1373
1468
|
this.setNamedTicks();
|
|
1374
1469
|
this.setValueTicks();
|
|
1470
|
+
this.setTickInteraction();
|
|
1471
|
+
this.averageLine();
|
|
1375
1472
|
this.adjustBarSize();
|
|
1376
1473
|
this.adjustBarText();
|
|
1377
|
-
if (this.
|
|
1378
|
-
this.positionTooltip(this.
|
|
1474
|
+
if (this.tooltip.style('display') !== 'none')
|
|
1475
|
+
this.positionTooltip(this.tooltipData);
|
|
1379
1476
|
}
|
|
1380
1477
|
// Returns the longest text from an array of strings
|
|
1381
1478
|
getLargestText(array) {
|
|
@@ -1388,30 +1485,33 @@ const barChart = class {
|
|
|
1388
1485
|
});
|
|
1389
1486
|
return width;
|
|
1390
1487
|
}
|
|
1488
|
+
adjustColor(color, amount) {
|
|
1489
|
+
return '#' + color.replace(/^#/, '').replace(/../g, color => ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));
|
|
1490
|
+
}
|
|
1391
1491
|
componentWillLoad() {
|
|
1392
1492
|
this.afChartDataUpdate(this.afChartData);
|
|
1393
1493
|
}
|
|
1394
1494
|
componentDidLoad() {
|
|
1395
|
-
if (!this.
|
|
1396
|
-
this.
|
|
1495
|
+
if (!this.chartData || Object.keys(this.chartData).length === 0) {
|
|
1496
|
+
this.loading = true;
|
|
1397
1497
|
return this.initEmpty();
|
|
1398
1498
|
}
|
|
1399
1499
|
this.initChain();
|
|
1400
1500
|
document.fonts.ready.then(() => {
|
|
1401
1501
|
this.recomputeTextSize();
|
|
1402
1502
|
this.setNamedTicks();
|
|
1403
|
-
this.
|
|
1503
|
+
this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
|
|
1404
1504
|
});
|
|
1405
1505
|
}
|
|
1406
1506
|
disconnectedCallback() {
|
|
1407
1507
|
this.barChartObserver.disconnect();
|
|
1408
1508
|
}
|
|
1409
1509
|
componentWillUpdate() {
|
|
1410
|
-
this.
|
|
1510
|
+
this.prevHeight = select(this.titleDiv).style('height');
|
|
1411
1511
|
}
|
|
1412
1512
|
componentDidUpdate() {
|
|
1413
|
-
if (this.
|
|
1414
|
-
Object.keys(this.
|
|
1513
|
+
if (this.tableDiv.style['display'] != 'block' &&
|
|
1514
|
+
Object.keys(this.chartData).length === 0) {
|
|
1415
1515
|
// Disconnect old barchartobserver while doing resizing
|
|
1416
1516
|
this.barChartObserver.disconnect();
|
|
1417
1517
|
return this.loadingState();
|
|
@@ -1420,15 +1520,15 @@ const barChart = class {
|
|
|
1420
1520
|
}
|
|
1421
1521
|
// Not currently used
|
|
1422
1522
|
/*get cssModifiers() {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1523
|
+
return {
|
|
1524
|
+
'digi-bar-chart--vertical': this.afVariation == 'vertical',
|
|
1525
|
+
'digi-bar-chart--horizontal': this.afVariation == 'horizontal'
|
|
1526
|
+
};
|
|
1527
|
+
}*/
|
|
1428
1528
|
// Returns pixelwidth of text given the current fontSize (costly function using .each)
|
|
1429
1529
|
getTextSize(text) {
|
|
1430
1530
|
const textWidth = [];
|
|
1431
|
-
const svg = select(this.
|
|
1531
|
+
const svg = select(this.chartDiv).append('svg');
|
|
1432
1532
|
svg
|
|
1433
1533
|
.selectAll('dummyText')
|
|
1434
1534
|
.data([text])
|
|
@@ -1443,21 +1543,18 @@ const barChart = class {
|
|
|
1443
1543
|
svg.remove().exit();
|
|
1444
1544
|
return textWidth[0];
|
|
1445
1545
|
}
|
|
1446
|
-
// Setting table content from this.
|
|
1546
|
+
// Setting table content from this.chartData
|
|
1447
1547
|
setTableContent() {
|
|
1448
|
-
this.
|
|
1548
|
+
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>`;
|
|
1449
1549
|
}
|
|
1450
1550
|
setTableDimensions() {
|
|
1451
|
-
const table = select(this.
|
|
1452
|
-
table
|
|
1453
|
-
// The last value is for compensating the padding set on the table element, changing padding in css, will need change in these two lines
|
|
1454
|
-
.style('height', this._dims.height + 'px');
|
|
1455
|
-
table.style('width', this._dims.width - this._rem * 0.65 + 'px');
|
|
1551
|
+
const table = select(this.tableDiv);
|
|
1552
|
+
table.style('display', 'flex').style('height', '100%').style('width', '100%');
|
|
1456
1553
|
}
|
|
1457
1554
|
// Extracting all headings from data and returning a string with <th>-elements with headings
|
|
1458
1555
|
headings() {
|
|
1459
|
-
let headingsString = `<th scope="col">${this.
|
|
1460
|
-
this.
|
|
1556
|
+
let headingsString = `<th scope="col">${this.chartData.x}</th>`;
|
|
1557
|
+
this.chartData.data.series.forEach((elem) => {
|
|
1461
1558
|
headingsString = headingsString.concat(`<th scope="col">${elem.title}</th>`);
|
|
1462
1559
|
});
|
|
1463
1560
|
return headingsString;
|
|
@@ -1465,13 +1562,13 @@ const barChart = class {
|
|
|
1465
1562
|
// Building the table body
|
|
1466
1563
|
tableBody() {
|
|
1467
1564
|
let body = '';
|
|
1468
|
-
if (this.
|
|
1469
|
-
const loopable = this.
|
|
1470
|
-
? this.
|
|
1471
|
-
: this.
|
|
1565
|
+
if (this.chartData && this.chartData.data) {
|
|
1566
|
+
const loopable = this.chartData.data.xValueNames
|
|
1567
|
+
? this.chartData.data.xValueNames
|
|
1568
|
+
: this.chartData.data.xValues;
|
|
1472
1569
|
loopable.forEach((elem, index) => {
|
|
1473
1570
|
let cells = '';
|
|
1474
|
-
this.
|
|
1571
|
+
this.chartData.data.series.forEach((serie) => {
|
|
1475
1572
|
cells = cells.concat(`<td>${serie.yValues[index] != null ? serie.yValues[index].toLocaleString() : '-'}</td>`);
|
|
1476
1573
|
});
|
|
1477
1574
|
body = body.concat(`<tr><th scope='row'>${elem}${cells}</th></tr>`);
|
|
@@ -1480,21 +1577,18 @@ const barChart = class {
|
|
|
1480
1577
|
return body;
|
|
1481
1578
|
}
|
|
1482
1579
|
render() {
|
|
1483
|
-
var _a, _b, _c, _d
|
|
1580
|
+
var _a, _b, _c, _d;
|
|
1484
1581
|
// Setting header
|
|
1485
1582
|
let heading = '';
|
|
1486
|
-
if (this.
|
|
1487
|
-
if (!this.
|
|
1488
|
-
heading = `<${this.afHeadingLevel}>${this.
|
|
1489
|
-
else
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${(_a = this._chartData) === null || _a === void 0 ? void 0 : _a.subTitle}
|
|
1494
|
-
<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>`;
|
|
1495
|
-
}
|
|
1583
|
+
if (this.chartData) {
|
|
1584
|
+
if (!this.chartData.subTitle)
|
|
1585
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}>`;
|
|
1586
|
+
else
|
|
1587
|
+
heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${this.chartData.subTitle}</p>`;
|
|
1588
|
+
if (this.chartData.infoText)
|
|
1589
|
+
heading = `${heading}<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>`;
|
|
1496
1590
|
}
|
|
1497
|
-
return (h(Host, { key: '
|
|
1591
|
+
return (h(Host, { key: 'd39019eecd4013769648a7cdb1e5dc48712de934', ref: (el) => (this.host = el) }, h("svg", { key: '9e4dbfcd19038c6b9c8cfe26b4e8b3c5ef624896', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '9ed2bc8b3064642d01e9028fa91c55577ed2da1c' }, h("pattern", { key: 'ca867a03dac364d29de422bc074c7ff3a8bac858', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '2f2169ba84fcbb198a8f109bc57971beb3c3ca09', width: "8", height: "8", fill: 'white' }), h("line", { key: 'ad51412cb272233eb58a82a293643c4e865e34e9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: 'ecc0ffeb0eda0d84102678c17163d0afc472cde5', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: 'ca9a51785850ea8e26f4ca3b84dc28401325af63', width: "8", height: "8", fill: 'white' }), h("line", { key: 'd7dd225c20b588f74bff91d44ff5abc8839bc445', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: '654a002d89f6ce33fc4958afe3997829511b867e', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '6d0286f1d11de92c88083618d4acb3300f36857d', width: "8", height: "8", fill: 'white' }), h("line", { key: '4acd94253dbdb1fc85090d677d246028a6e595d6', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '9022c75fa8077b2c025aac91b8c1a565b50ad8f0', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '4a28b8506806ca2418fd21512460baebe84614d5', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '69f4603b0fde842906e17abee241c6e3b4de1059', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.title) ? (_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: '803f63ac1912c5979c43e7c58d28591a1d6ce461', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '7d87badd6ae3df65127bdfe4c4308c0d38d5ccb7', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title) ? (_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: 'f92c2eb9f08bf7f13a7eaea287b80a233efd95ef', slot: "icon" }), "Visa diagram"), h("div", { key: 'ee5b3ad8cdcfcf00891f56f7a7e738adf76f36c1', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: 'cbc0c8724ac73a07a4f2d01044d4928214e63f43', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '52cb24ae1a29f5381860031513b7b9e835044935', class: "chartTooltip", id: this.afId }, h("div", { key: '17c4c08dcf63cd263db4f32fecae7ec5216e3014', class: "tooltipHead" }, h("digi-icon-x", { key: 'f44a9a534ae02fe674fc0f9161e5c4b5a3eecb30', class: "tooltipClose" })), h("div", { key: 'ffbe44f6a8db4dc67d6980bd69ca2209e4a75745', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: '5d9cce591ea02a7b8ebdb42af55f378ee064a48a', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '8b8b7cd614e5d6202bfce04e57c98ee040f15dab', class: "legend" })), h("div", { key: '64a35d431e28638ffece4dd12bdf04678ed13768', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
|
|
1498
1592
|
}
|
|
1499
1593
|
get hostElement() { return getElement(this); }
|
|
1500
1594
|
static get watchers() { return {
|