@designsystem-se/af 37.0.2 → 38.0.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.
Files changed (1506) hide show
  1. package/components/digi-bar-chart.js +792 -698
  2. package/components/digi-calendar-datepicker.js +16 -15
  3. package/components/digi-calendar-week-view.js +3 -3
  4. package/components/digi-calendar.js +1 -1
  5. package/components/digi-chart-line.js +7 -7
  6. package/components/digi-code-block.js +1 -1
  7. package/components/digi-code-example.js +14 -14
  8. package/components/digi-code.js +1 -1
  9. package/components/digi-context-menu.js +5 -5
  10. package/components/digi-dialog.js +8 -7
  11. package/components/digi-expandable-accordion.js +3 -3
  12. package/components/digi-expandable-faq-item.js +6 -6
  13. package/components/digi-expandable-faq.js +2 -2
  14. package/components/digi-footer-card.js +1 -1
  15. package/components/digi-footer.js +6 -5
  16. package/components/digi-form-category-filter.js +4 -4
  17. package/components/digi-form-checkbox.js +1 -1
  18. package/components/digi-form-error-list.js +10 -9
  19. package/components/digi-form-fieldset.js +1 -1
  20. package/components/digi-form-file-upload.js +18 -18
  21. package/components/digi-form-filter.js +7 -7
  22. package/components/digi-form-input-search.js +9 -9
  23. package/components/digi-form-input.js +1 -1
  24. package/components/digi-form-label.js +1 -1
  25. package/components/digi-form-radiobutton.js +1 -1
  26. package/components/digi-form-radiogroup.js +6 -6
  27. package/components/digi-form-receipt.js +5 -4
  28. package/components/digi-form-select-filter.js +18 -17
  29. package/components/digi-form-select.js +1 -1
  30. package/components/digi-form-textarea.js +8 -8
  31. package/components/digi-form-validation-message.js +1 -1
  32. package/components/digi-header-avatar.js +4 -4
  33. package/components/digi-header-navigation-item.js +1 -1
  34. package/components/digi-header-navigation.js +9 -8
  35. package/components/digi-header-notification.js +2 -2
  36. package/components/digi-header.js +8 -38
  37. package/components/digi-icon-accessibility-deaf.js +2 -2
  38. package/components/digi-icon-accessibility-universal.js +2 -2
  39. package/components/digi-icon-apple.js +2 -2
  40. package/components/digi-icon-archive-outline.js +2 -2
  41. package/components/digi-icon-archive.js +2 -2
  42. package/components/digi-icon-arrow-back.js +2 -2
  43. package/components/digi-icon-arrow-down.js +2 -2
  44. package/components/digi-icon-arrow-left.js +2 -2
  45. package/components/digi-icon-arrow-right.js +1 -1
  46. package/components/digi-icon-arrow-sign-in.js +2 -2
  47. package/components/digi-icon-arrow-sign-out.js +2 -2
  48. package/components/digi-icon-arrow-up.js +2 -2
  49. package/components/digi-icon-at.js +2 -2
  50. package/components/digi-icon-bars.js +1 -1
  51. package/components/digi-icon-bell-filled.js +2 -2
  52. package/components/digi-icon-bell.js +2 -2
  53. package/components/digi-icon-book.js +2 -2
  54. package/components/digi-icon-bookmark-outline.js +2 -2
  55. package/components/digi-icon-bookmark-solid.js +2 -2
  56. package/components/digi-icon-bubble-ellipsis.js +2 -2
  57. package/components/digi-icon-bubble.js +2 -2
  58. package/components/digi-icon-building-outline.js +2 -2
  59. package/components/digi-icon-building-solid.js +2 -2
  60. package/components/digi-icon-bullseye.js +2 -2
  61. package/components/digi-icon-calculator-solid.js +2 -2
  62. package/components/digi-icon-calendar-alt-alert.js +2 -2
  63. package/components/digi-icon-calendar-alt.js +1 -1
  64. package/components/digi-icon-calendar.js +2 -2
  65. package/components/digi-icon-caret-circle-right.js +2 -2
  66. package/components/digi-icon-caret-down.js +1 -1
  67. package/components/digi-icon-caret-left.js +2 -2
  68. package/components/digi-icon-caret-right.js +2 -2
  69. package/components/digi-icon-caret-up.js +1 -1
  70. package/components/digi-icon-chart.js +1 -1
  71. package/components/digi-icon-chat.js +2 -2
  72. package/components/digi-icon-check-circle-reg-alt.js +2 -2
  73. package/components/digi-icon-check-circle-solid.js +1 -1
  74. package/components/digi-icon-check.js +1 -1
  75. package/components/digi-icon-checklist.js +2 -2
  76. package/components/digi-icon-chevron-down.js +1 -1
  77. package/components/digi-icon-chevron-left.js +1 -1
  78. package/components/digi-icon-chevron-right.js +1 -1
  79. package/components/digi-icon-chevron-up.js +2 -2
  80. package/components/digi-icon-clock.js +2 -2
  81. package/components/digi-icon-communication-play-solid.js +2 -2
  82. package/components/digi-icon-compress-alt.js +2 -2
  83. package/components/digi-icon-comunication-case.js +2 -2
  84. package/components/digi-icon-comunication-flag.js +2 -2
  85. package/components/digi-icon-comunication-graduate.js +2 -2
  86. package/components/digi-icon-comunication-play.js +2 -2
  87. package/components/digi-icon-cooperation.js +2 -2
  88. package/components/digi-icon-copy.js +1 -1
  89. package/components/digi-icon-danger-outline.js +2 -2
  90. package/components/digi-icon-download.js +2 -2
  91. package/components/digi-icon-dxa.js +2 -2
  92. package/components/digi-icon-edit.js +2 -2
  93. package/components/digi-icon-ellipsis.js +2 -2
  94. package/components/digi-icon-envelope-filled.js +2 -2
  95. package/components/digi-icon-envelope.js +2 -2
  96. package/components/digi-icon-exclamation-circle-filled.js +2 -2
  97. package/components/digi-icon-exclamation-triangle-filled.js +2 -2
  98. package/components/digi-icon-exclamation-triangle-warning.js +2 -2
  99. package/components/digi-icon-exclamation-triangle.js +2 -2
  100. package/components/digi-icon-expand-alt.js +2 -2
  101. package/components/digi-icon-external-link-alt.js +1 -1
  102. package/components/digi-icon-eye-slash.js +2 -2
  103. package/components/digi-icon-eye.js +2 -2
  104. package/components/digi-icon-facebook-square.js +2 -2
  105. package/components/digi-icon-file-add.js +1 -1
  106. package/components/digi-icon-file-document.js +2 -2
  107. package/components/digi-icon-file-excel.js +2 -2
  108. package/components/digi-icon-file-export.js +1 -1
  109. package/components/digi-icon-file-governing.js +2 -2
  110. package/components/digi-icon-file-pdf.js +2 -2
  111. package/components/digi-icon-file-powerpoint.js +2 -2
  112. package/components/digi-icon-file-remove.js +1 -1
  113. package/components/digi-icon-file-word.js +2 -2
  114. package/components/digi-icon-film.js +2 -2
  115. package/components/digi-icon-filter.js +2 -2
  116. package/components/digi-icon-folder-add.js +1 -1
  117. package/components/digi-icon-folder-directory.js +1 -1
  118. package/components/digi-icon-folder-open.js +1 -1
  119. package/components/digi-icon-folder.js +1 -1
  120. package/components/digi-icon-globe-filled.js +2 -2
  121. package/components/digi-icon-globe.js +2 -2
  122. package/components/digi-icon-headphones.js +2 -2
  123. package/components/digi-icon-heart-solid.js +2 -2
  124. package/components/digi-icon-heart.js +2 -2
  125. package/components/digi-icon-history.js +2 -2
  126. package/components/digi-icon-home.js +2 -2
  127. package/components/digi-icon-image.js +2 -2
  128. package/components/digi-icon-info-circle-solid.js +2 -2
  129. package/components/digi-icon-input-select-marker.js +1 -1
  130. package/components/digi-icon-instagram.js +2 -2
  131. package/components/digi-icon-job-suggestion.js +2 -2
  132. package/components/digi-icon-language-outline.js +2 -2
  133. package/components/digi-icon-language.js +2 -2
  134. package/components/digi-icon-laptop-phone.js +2 -2
  135. package/components/digi-icon-lattlast.js +2 -2
  136. package/components/digi-icon-licence-bus.js +2 -2
  137. package/components/digi-icon-licence-car.js +2 -2
  138. package/components/digi-icon-licence-motorcycle.js +2 -2
  139. package/components/digi-icon-licence-truck.js +2 -2
  140. package/components/digi-icon-lightbulb.js +2 -2
  141. package/components/digi-icon-linkedin-in.js +2 -2
  142. package/components/digi-icon-list-ul.js +1 -1
  143. package/components/digi-icon-lock.js +2 -2
  144. package/components/digi-icon-marker-filled.js +2 -2
  145. package/components/digi-icon-marker.js +2 -2
  146. package/components/digi-icon-media-course.js +2 -2
  147. package/components/digi-icon-media-podcast.js +2 -2
  148. package/components/digi-icon-microphone-off.js +2 -2
  149. package/components/digi-icon-microphone.js +2 -2
  150. package/components/digi-icon-minus.js +1 -1
  151. package/components/digi-icon-move.js +2 -2
  152. package/components/digi-icon-news.js +1 -1
  153. package/components/digi-icon-notification-error.js +1 -1
  154. package/components/digi-icon-notification-info.js +1 -1
  155. package/components/digi-icon-notification-succes.js +1 -1
  156. package/components/digi-icon-notification-warning.js +1 -1
  157. package/components/digi-icon-online-computervideo.js +1 -1
  158. package/components/digi-icon-online-interview.js +2 -2
  159. package/components/digi-icon-online-meeting.js +2 -2
  160. package/components/digi-icon-online-task.js +2 -2
  161. package/components/digi-icon-online-video.js +1 -1
  162. package/components/digi-icon-open-source.js +2 -2
  163. package/components/digi-icon-palette.js +2 -2
  164. package/components/digi-icon-paperclip.js +1 -1
  165. package/components/digi-icon-paste.js +1 -1
  166. package/components/digi-icon-pen.js +2 -2
  167. package/components/digi-icon-phone-hangup.js +2 -2
  168. package/components/digi-icon-phone.js +2 -2
  169. package/components/digi-icon-plus.js +1 -1
  170. package/components/digi-icon-pod.js +1 -1
  171. package/components/digi-icon-print.js +2 -2
  172. package/components/digi-icon-read.js +2 -2
  173. package/components/digi-icon-redo.js +2 -2
  174. package/components/digi-icon-scale.js +1 -1
  175. package/components/digi-icon-screensharing-off.js +2 -2
  176. package/components/digi-icon-screensharing.js +2 -2
  177. package/components/digi-icon-search.js +1 -1
  178. package/components/digi-icon-send-outline.js +2 -2
  179. package/components/digi-icon-send-solid.js +2 -2
  180. package/components/digi-icon-settings.js +2 -2
  181. package/components/digi-icon-share-alt.js +2 -2
  182. package/components/digi-icon-share-chain.js +2 -2
  183. package/components/digi-icon-sign.js +2 -2
  184. package/components/digi-icon-sliders-h.js +2 -2
  185. package/components/digi-icon-sokkandidat.js +2 -2
  186. package/components/digi-icon-sort-down.js +2 -2
  187. package/components/digi-icon-sort-up.js +2 -2
  188. package/components/digi-icon-sort.js +2 -2
  189. package/components/digi-icon-spinner.js +1 -1
  190. package/components/digi-icon-star-reg.js +2 -2
  191. package/components/digi-icon-star.js +2 -2
  192. package/components/digi-icon-suitcase-outline.js +2 -2
  193. package/components/digi-icon-suitcase-solid.js +2 -2
  194. package/components/digi-icon-system-assistance.js +2 -2
  195. package/components/digi-icon-table-column.js +2 -2
  196. package/components/digi-icon-table-row.js +2 -2
  197. package/components/digi-icon-table.js +1 -1
  198. package/components/digi-icon-task-done.js +2 -2
  199. package/components/digi-icon-toggle-off.js +2 -2
  200. package/components/digi-icon-toggle-on.js +2 -2
  201. package/components/digi-icon-trash.js +1 -1
  202. package/components/digi-icon-twitter.js +2 -2
  203. package/components/digi-icon-tyck-till.js +2 -2
  204. package/components/digi-icon-unlock.js +2 -2
  205. package/components/digi-icon-update.js +2 -2
  206. package/components/digi-icon-upload.js +2 -2
  207. package/components/digi-icon-user-add.js +1 -1
  208. package/components/digi-icon-user-alt.js +2 -2
  209. package/components/digi-icon-user-edit.js +1 -1
  210. package/components/digi-icon-users-solid.js +2 -2
  211. package/components/digi-icon-validation-error.js +1 -1
  212. package/components/digi-icon-validation-success.js +1 -1
  213. package/components/digi-icon-validation-warning.js +1 -1
  214. package/components/digi-icon-videocamera-off.js +2 -2
  215. package/components/digi-icon-videocamera.js +2 -2
  216. package/components/digi-icon-volume.js +2 -2
  217. package/components/digi-icon-web-tv.js +2 -2
  218. package/components/digi-icon-webinar.js +1 -1
  219. package/components/digi-icon-wifi-signal0.js +2 -2
  220. package/components/digi-icon-wifi-signal1.js +2 -2
  221. package/components/digi-icon-wifi-signal2.js +2 -2
  222. package/components/digi-icon-wifi-signal3.js +2 -2
  223. package/components/digi-icon-window.js +2 -2
  224. package/components/digi-icon-x-button-outline.js +1 -1
  225. package/components/digi-icon-x-button.js +2 -2
  226. package/components/digi-icon-x.js +1 -1
  227. package/components/digi-icon-youtube.js +2 -2
  228. package/components/digi-info-card-multi-container.js +2 -2
  229. package/components/digi-info-card-multi.js +11 -11
  230. package/components/digi-info-card.js +5 -5
  231. package/components/digi-layout-block.js +1 -1
  232. package/components/digi-layout-columns.js +1 -1
  233. package/components/digi-layout-container.js +1 -1
  234. package/components/digi-link-button.js +2 -2
  235. package/components/digi-link-external.js +1 -1
  236. package/components/digi-link-internal.js +1 -1
  237. package/components/digi-link.js +1 -1
  238. package/components/digi-list.js +3 -3
  239. package/components/digi-loader-skeleton.js +3 -3
  240. package/components/digi-loader-spinner.js +2 -2
  241. package/components/digi-logo.js +8 -42
  242. package/components/digi-media-figure.js +1 -1
  243. package/components/digi-media-image.js +1 -1
  244. package/components/digi-navigation-breadcrumbs.js +2 -2
  245. package/components/digi-navigation-pagination.js +12 -11
  246. package/components/digi-navigation-sidebar-button.js +1 -1
  247. package/components/digi-navigation-sidebar.js +5 -5
  248. package/components/digi-navigation-vertical-menu-item.js +8 -8
  249. package/components/digi-navigation-vertical-menu.js +1 -1
  250. package/components/digi-notification-alert.js +1 -1
  251. package/components/digi-notification-error-page.js +24 -23
  252. package/components/digi-progress-circle.js +10 -10
  253. package/components/digi-progress-indicator.js +6 -6
  254. package/components/digi-progress-list-item.js +8 -8
  255. package/components/digi-progress-list.js +2 -2
  256. package/components/digi-progressbar.js +2 -2
  257. package/components/digi-quote.js +4 -4
  258. package/components/digi-table.js +1 -1
  259. package/components/digi-tablist-panel.js +2 -2
  260. package/components/digi-tablist.js +7 -7
  261. package/components/digi-tag-media.js +1 -1
  262. package/components/digi-tag.js +2 -2
  263. package/components/digi-title-logo.js +155 -1
  264. package/components/digi-tools-feedback-banner.js +6 -6
  265. package/components/digi-tools-feedback-rating.js +8 -8
  266. package/components/digi-tools-feedback.js +5 -4
  267. package/components/digi-tools-theme-provider.js +2 -2
  268. package/components/digi-typography-heading-jumbo.js +1 -1
  269. package/components/digi-typography-meta.js +1 -1
  270. package/components/digi-typography-preamble.js +1 -1
  271. package/components/digi-typography-time.js +1 -1
  272. package/components/digi-typography.js +1 -1
  273. package/components/digi-util-breakpoint-observer.js +1 -1
  274. package/components/digi-util-detect-click-outside.js +1 -1
  275. package/components/digi-util-detect-focus-outside.js +1 -1
  276. package/components/digi-util-intersection-observer.js +1 -1
  277. package/components/digi-util-keydown-handler.js +1 -1
  278. package/components/digi-util-keyup-handler.js +1 -1
  279. package/components/digi-util-resize-observer.js +1 -1
  280. package/components/index.js +2 -1
  281. package/components/{p-583fae30.js → p-01264cdd.js} +2 -2
  282. package/components/{p-40f34110.js → p-02cac754.js} +2 -2
  283. package/components/{p-d5b9333c.js → p-02ebe13f.js} +2 -2
  284. package/components/{p-7ff04204.js → p-04e78688.js} +11 -10
  285. package/components/{p-0726ee0a.js → p-06905c58.js} +2 -2
  286. package/components/{p-78e97002.js → p-0e6a31ff.js} +1 -1
  287. package/components/{p-2484471b.js → p-14119afa.js} +2 -2
  288. package/components/{p-f20d8be7.js → p-1e730762.js} +2 -2
  289. package/components/{p-4fda15a2.js → p-210a5fb1.js} +2 -2
  290. package/components/{p-10fcee12.js → p-222f510d.js} +2 -2
  291. package/components/{p-a2df4b05.js → p-22bcbe8a.js} +4 -4
  292. package/components/p-2d7504f3.js +66 -0
  293. package/components/{p-965a52d4.js → p-36b65cd5.js} +2 -2
  294. package/components/{p-264c176f.js → p-433c995f.js} +2 -2
  295. package/components/{p-6565a6e1.js → p-43c92e65.js} +2 -2
  296. package/components/{p-8195db1a.js → p-4851d4b6.js} +2 -2
  297. package/components/{p-93899a9e.js → p-4b44f757.js} +2 -2
  298. package/components/{p-3f4e8021.js → p-4c4c38fd.js} +2 -2
  299. package/components/{p-0cd24461.js → p-4cdabbdb.js} +1 -1
  300. package/components/{p-aeca0a41.js → p-517dba78.js} +2 -2
  301. package/components/{p-cccdff76.js → p-58f84239.js} +2 -2
  302. package/components/{p-c45ecc56.js → p-59ead9fe.js} +8 -8
  303. package/components/{p-dedeb670.js → p-704e0126.js} +8 -8
  304. package/components/{p-16f08aa6.js → p-70c8d84e.js} +1 -1
  305. package/components/{p-5e3a020d.js → p-71afaf70.js} +3 -3
  306. package/components/{p-5a256d98.js → p-768f56d4.js} +1 -13
  307. package/components/{p-69a76a60.js → p-7af943bd.js} +2 -2
  308. package/components/{p-81e7adc1.js → p-7d7af765.js} +2 -2
  309. package/components/{p-6ce9fb68.js → p-7e9f8ee6.js} +2 -2
  310. package/components/{p-96a568b6.js → p-7f08536e.js} +2 -2
  311. package/components/{p-ea46c737.js → p-806d4bbf.js} +3 -3
  312. package/components/{p-d149967a.js → p-88605ec3.js} +2 -2
  313. package/components/{p-db8aaede.js → p-8d67da4c.js} +2 -2
  314. package/components/{p-c19a2763.js → p-8ee7ec0b.js} +2 -2
  315. package/components/{p-61c51a8d.js → p-96ef4705.js} +2 -2
  316. package/components/{p-7b97818b.js → p-9963ea8d.js} +1 -1
  317. package/components/p-9dd41cc4.js +7 -0
  318. package/components/{p-13770550.js → p-9e98bc1f.js} +2 -2
  319. package/components/{p-769dbb9e.js → p-9f757d46.js} +2 -2
  320. package/components/{p-ab9c3e15.js → p-a247bdd0.js} +1 -1
  321. package/components/{p-bd90b8ee.js → p-a43d5fe6.js} +2 -2
  322. package/components/{p-05bd223f.js → p-a480e81e.js} +2 -2
  323. package/components/{p-1e9052b0.js → p-ac5035f1.js} +1 -1
  324. package/components/{p-62a0008b.js → p-ae2af41e.js} +4 -3
  325. package/components/{p-789cf870.js → p-b18e3596.js} +2 -2
  326. package/components/{p-8bdc6d6b.js → p-b24c2842.js} +2 -2
  327. package/components/{p-6c013e3b.js → p-b53be17d.js} +2 -2
  328. package/components/{p-060b4baf.js → p-d2b12caf.js} +2 -2
  329. package/components/{p-956d730b.js → p-dab20489.js} +1 -1
  330. package/components/{p-31ef8371.js → p-db6386c7.js} +2 -2
  331. package/components/{p-40496c3d.js → p-db81738c.js} +2 -2
  332. package/components/{p-44f143ea.js → p-dbb0665a.js} +10 -10
  333. package/components/{p-a8fff2e3.js → p-de2295b7.js} +2 -2
  334. package/components/{p-9466c4e0.js → p-e2a68e2b.js} +10 -10
  335. package/components/{p-6c4c927f.js → p-e6b042b3.js} +1 -1
  336. package/components/{p-735a4842.js → p-e788c4e0.js} +2 -2
  337. package/components/{p-5a494103.js → p-e78c723f.js} +5 -5
  338. package/components/{p-f53eb01a.js → p-e946f613.js} +2 -2
  339. package/components/p-eecdc526.js +177 -0
  340. package/components/{p-2b3c1022.js → p-f461911c.js} +2 -2
  341. package/components/{p-119cd87b.js → p-f884ee43.js} +2 -2
  342. package/{dist/esm/linear-0246aaea.js → components/p-f9a1a787.js} +1 -1
  343. package/components/{p-eced9019.js → p-ff74fdd6.js} +2 -2
  344. package/custom-elements.json +1 -17
  345. package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
  346. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  347. package/dist/cjs/digi-bar-chart.cjs.entry.js +785 -691
  348. package/dist/cjs/digi-button_27.cjs.entry.js +1379 -0
  349. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +4 -9
  350. package/dist/cjs/digi-calendar_2.cjs.entry.js +2 -2
  351. package/dist/cjs/digi-chart-line.cjs.entry.js +2 -2
  352. package/dist/cjs/digi-code-block_3.cjs.entry.js +7 -12
  353. package/dist/cjs/digi-code-example.cjs.entry.js +7 -8
  354. package/dist/cjs/digi-code.cjs.entry.js +1 -1
  355. package/dist/cjs/digi-context-menu.cjs.entry.js +3 -3
  356. package/dist/cjs/digi-dialog.cjs.entry.js +6 -11
  357. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +1 -1
  358. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +4 -4
  359. package/dist/cjs/digi-expandable-faq.cjs.entry.js +2 -2
  360. package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
  361. package/dist/cjs/digi-form-checkbox.cjs.entry.js +139 -0
  362. package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -9
  363. package/dist/cjs/digi-form-file-upload.cjs.entry.js +7 -7
  364. package/dist/cjs/digi-form-filter.cjs.entry.js +5 -5
  365. package/dist/cjs/digi-form-input-search.cjs.entry.js +4 -5
  366. package/dist/cjs/digi-form-input.cjs.entry.js +3 -3
  367. package/dist/cjs/digi-form-label_3.cjs.entry.js +4 -4
  368. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +2 -2
  369. package/dist/cjs/digi-form-receipt.cjs.entry.js +4 -9
  370. package/dist/cjs/digi-form-select-filter.cjs.entry.js +10 -15
  371. package/dist/cjs/digi-form-select_2.cjs.entry.js +6 -6
  372. package/dist/cjs/digi-form-textarea.cjs.entry.js +3 -3
  373. package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +2 -2
  374. package/dist/cjs/digi-icon-apple.cjs.entry.js +2 -2
  375. package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +2 -2
  376. package/dist/cjs/digi-icon-archive.cjs.entry.js +2 -2
  377. package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +2 -2
  378. package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +2 -2
  379. package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +2 -2
  380. package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +2 -2
  381. package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +2 -2
  382. package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +2 -2
  383. package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +2 -2
  384. package/dist/cjs/digi-icon-at.cjs.entry.js +2 -2
  385. package/dist/cjs/digi-icon-bell.cjs.entry.js +2 -2
  386. package/dist/cjs/digi-icon-book.cjs.entry.js +2 -2
  387. package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +2 -2
  388. package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +2 -2
  389. package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +2 -2
  390. package/dist/cjs/digi-icon-bubble.cjs.entry.js +2 -2
  391. package/dist/cjs/digi-icon-building-outline.cjs.entry.js +2 -2
  392. package/dist/cjs/digi-icon-building-solid.cjs.entry.js +2 -2
  393. package/dist/cjs/digi-icon-bullseye.cjs.entry.js +2 -2
  394. package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +2 -2
  395. package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +2 -2
  396. package/dist/cjs/digi-icon-calendar.cjs.entry.js +2 -2
  397. package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +2 -2
  398. package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +4 -4
  399. package/dist/cjs/digi-icon-caret-left.cjs.entry.js +2 -2
  400. package/dist/cjs/digi-icon-caret-right.cjs.entry.js +2 -2
  401. package/dist/cjs/digi-icon-chart_2.cjs.entry.js +4 -4
  402. package/dist/cjs/digi-icon-chat.cjs.entry.js +2 -2
  403. package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +2 -2
  404. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +8 -8
  405. package/dist/cjs/digi-icon-check.cjs.entry.js +2 -2
  406. package/dist/cjs/digi-icon-checklist.cjs.entry.js +2 -2
  407. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +2 -2
  408. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +4 -4
  409. package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +2 -2
  410. package/dist/cjs/digi-icon-clock.cjs.entry.js +2 -2
  411. package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +2 -2
  412. package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +2 -2
  413. package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +2 -2
  414. package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +2 -2
  415. package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +2 -2
  416. package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +2 -2
  417. package/dist/cjs/digi-icon-cooperation.cjs.entry.js +2 -2
  418. package/dist/cjs/digi-icon-copy.cjs.entry.js +2 -2
  419. package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +2 -2
  420. package/dist/cjs/digi-icon-download.cjs.entry.js +2 -2
  421. package/dist/cjs/digi-icon-dxa.cjs.entry.js +2 -2
  422. package/dist/cjs/digi-icon-edit.cjs.entry.js +2 -2
  423. package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +2 -2
  424. package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +2 -2
  425. package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +2 -2
  426. package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +2 -2
  427. package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +2 -2
  428. package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +2 -2
  429. package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +2 -2
  430. package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +2 -2
  431. package/dist/cjs/digi-icon-eye.cjs.entry.js +2 -2
  432. package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +2 -2
  433. package/dist/cjs/digi-icon-file-add.cjs.entry.js +1 -1
  434. package/dist/cjs/digi-icon-file-document.cjs.entry.js +2 -2
  435. package/dist/cjs/digi-icon-file-excel.cjs.entry.js +2 -2
  436. package/dist/cjs/digi-icon-file-export.cjs.entry.js +1 -1
  437. package/dist/cjs/digi-icon-file-governing.cjs.entry.js +2 -2
  438. package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +2 -2
  439. package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +2 -2
  440. package/dist/cjs/digi-icon-file-remove.cjs.entry.js +1 -1
  441. package/dist/cjs/digi-icon-file-word.cjs.entry.js +2 -2
  442. package/dist/cjs/digi-icon-film.cjs.entry.js +2 -2
  443. package/dist/cjs/digi-icon-filter.cjs.entry.js +2 -2
  444. package/dist/cjs/digi-icon-folder-add.cjs.entry.js +1 -1
  445. package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +1 -1
  446. package/dist/cjs/digi-icon-folder-open.cjs.entry.js +1 -1
  447. package/dist/cjs/digi-icon-folder.cjs.entry.js +1 -1
  448. package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +2 -2
  449. package/dist/cjs/digi-icon-headphones.cjs.entry.js +2 -2
  450. package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +2 -2
  451. package/dist/cjs/digi-icon-heart.cjs.entry.js +2 -2
  452. package/dist/cjs/digi-icon-history.cjs.entry.js +2 -2
  453. package/dist/cjs/digi-icon-home.cjs.entry.js +2 -2
  454. package/dist/cjs/digi-icon-image.cjs.entry.js +2 -2
  455. package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +2 -2
  456. package/dist/cjs/digi-icon-instagram.cjs.entry.js +2 -2
  457. package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +2 -2
  458. package/dist/cjs/digi-icon-language-outline.cjs.entry.js +2 -2
  459. package/dist/cjs/digi-icon-language.cjs.entry.js +2 -2
  460. package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +2 -2
  461. package/dist/cjs/digi-icon-lattlast.cjs.entry.js +2 -2
  462. package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +2 -2
  463. package/dist/cjs/digi-icon-licence-car.cjs.entry.js +2 -2
  464. package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +2 -2
  465. package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +2 -2
  466. package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +2 -2
  467. package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +2 -2
  468. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +12 -12
  469. package/dist/cjs/digi-icon-lock.cjs.entry.js +2 -2
  470. package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +2 -2
  471. package/dist/cjs/digi-icon-marker.cjs.entry.js +2 -2
  472. package/dist/cjs/digi-icon-media-course.cjs.entry.js +2 -2
  473. package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +2 -2
  474. package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +2 -2
  475. package/dist/cjs/digi-icon-microphone.cjs.entry.js +2 -2
  476. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +4 -4
  477. package/dist/cjs/digi-icon-move.cjs.entry.js +2 -2
  478. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +8 -8
  479. package/dist/cjs/digi-icon-online-interview.cjs.entry.js +2 -2
  480. package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +2 -2
  481. package/dist/cjs/digi-icon-online-task.cjs.entry.js +2 -2
  482. package/dist/cjs/digi-icon-open-source.cjs.entry.js +2 -2
  483. package/dist/cjs/digi-icon-palette.cjs.entry.js +2 -2
  484. package/dist/cjs/digi-icon-paste.cjs.entry.js +1 -1
  485. package/dist/cjs/digi-icon-pen.cjs.entry.js +2 -2
  486. package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +2 -2
  487. package/dist/cjs/digi-icon-phone.cjs.entry.js +2 -2
  488. package/dist/cjs/digi-icon-print.cjs.entry.js +2 -2
  489. package/dist/cjs/digi-icon-read.cjs.entry.js +2 -2
  490. package/dist/cjs/digi-icon-redo.cjs.entry.js +2 -2
  491. package/dist/cjs/digi-icon-scale.cjs.entry.js +1 -1
  492. package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +2 -2
  493. package/dist/cjs/digi-icon-screensharing.cjs.entry.js +2 -2
  494. package/dist/cjs/digi-icon-search.cjs.entry.js +2 -2
  495. package/dist/cjs/digi-icon-send-outline.cjs.entry.js +2 -2
  496. package/dist/cjs/digi-icon-send-solid.cjs.entry.js +2 -2
  497. package/dist/cjs/digi-icon-settings.cjs.entry.js +2 -2
  498. package/dist/cjs/digi-icon-share-alt.cjs.entry.js +2 -2
  499. package/dist/cjs/digi-icon-share-chain.cjs.entry.js +2 -2
  500. package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +2 -2
  501. package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +2 -2
  502. package/dist/cjs/digi-icon-sort-down.cjs.entry.js +2 -2
  503. package/dist/cjs/digi-icon-sort-up.cjs.entry.js +2 -2
  504. package/dist/cjs/digi-icon-sort.cjs.entry.js +2 -2
  505. package/dist/cjs/digi-icon-spinner.cjs.entry.js +2 -2
  506. package/dist/cjs/digi-icon-star-reg.cjs.entry.js +2 -2
  507. package/dist/cjs/digi-icon-star.cjs.entry.js +2 -2
  508. package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +2 -2
  509. package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +2 -2
  510. package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +2 -2
  511. package/dist/cjs/digi-icon-table-column.cjs.entry.js +2 -2
  512. package/dist/cjs/digi-icon-table-row.cjs.entry.js +2 -2
  513. package/dist/cjs/digi-icon-task-done.cjs.entry.js +2 -2
  514. package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +2 -2
  515. package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +2 -2
  516. package/dist/cjs/digi-icon-twitter.cjs.entry.js +2 -2
  517. package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +2 -2
  518. package/dist/cjs/digi-icon-unlock.cjs.entry.js +2 -2
  519. package/dist/cjs/digi-icon-update.cjs.entry.js +2 -2
  520. package/dist/cjs/digi-icon-upload.cjs.entry.js +2 -2
  521. package/dist/cjs/digi-icon-user-add.cjs.entry.js +1 -1
  522. package/dist/cjs/digi-icon-user-alt.cjs.entry.js +2 -2
  523. package/dist/cjs/digi-icon-user-edit.cjs.entry.js +1 -1
  524. package/dist/cjs/digi-icon-users-solid.cjs.entry.js +2 -2
  525. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +4 -4
  526. package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +2 -2
  527. package/dist/cjs/digi-icon-videocamera.cjs.entry.js +2 -2
  528. package/dist/cjs/digi-icon-volume.cjs.entry.js +2 -2
  529. package/dist/cjs/digi-icon-web-tv.cjs.entry.js +2 -2
  530. package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +2 -2
  531. package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +2 -2
  532. package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +2 -2
  533. package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +2 -2
  534. package/dist/cjs/digi-icon-window.cjs.entry.js +2 -2
  535. package/dist/cjs/digi-icon-x-button.cjs.entry.js +2 -2
  536. package/dist/cjs/digi-icon-youtube.cjs.entry.js +2 -2
  537. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +1 -1
  538. package/dist/cjs/digi-info-card-multi.cjs.entry.js +1 -1
  539. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  540. package/dist/cjs/digi-layout-columns.cjs.entry.js +1 -1
  541. package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
  542. package/dist/cjs/{digi-icon-external-link-alt_2.cjs.entry.js → digi-link-external.cjs.entry.js} +1 -25
  543. package/dist/cjs/digi-link-internal.cjs.entry.js +2 -2
  544. package/dist/cjs/digi-list.cjs.entry.js +1 -1
  545. package/dist/cjs/digi-loader-skeleton.cjs.entry.js +3 -3
  546. package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
  547. package/dist/cjs/digi-media-figure.cjs.entry.js +1 -1
  548. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +2 -2
  549. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +9 -14
  550. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
  551. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
  552. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +1 -1
  553. package/dist/cjs/digi-notification-alert.cjs.entry.js +6 -11
  554. package/dist/cjs/digi-notification-error-page.cjs.entry.js +22 -27
  555. package/dist/cjs/digi-progress-circle.cjs.entry.js +8 -8
  556. package/dist/cjs/digi-progress-indicator.cjs.entry.js +3 -3
  557. package/dist/cjs/digi-progress-list-item.cjs.entry.js +5 -5
  558. package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
  559. package/dist/cjs/digi-progressbar.cjs.entry.js +2 -2
  560. package/dist/cjs/digi-quote.cjs.entry.js +2 -2
  561. package/dist/cjs/digi-table.cjs.entry.js +1 -1
  562. package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
  563. package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
  564. package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
  565. package/dist/cjs/digi-tag.cjs.entry.js +1 -1
  566. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
  567. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +2 -2
  568. package/dist/cjs/digi-tools-feedback.cjs.entry.js +6 -11
  569. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +2 -2
  570. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +1 -1
  571. package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
  572. package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
  573. package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
  574. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
  575. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
  576. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
  577. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
  578. package/dist/cjs/{form-input-search-variation.enum-c50239bc.js → form-input-search-variation.enum-e0e025b1.js} +7 -0
  579. package/dist/cjs/index-7a477838.js +8 -96
  580. package/dist/cjs/index.cjs.js +54 -65
  581. package/dist/cjs/loader.cjs.js +1 -1
  582. package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-c0ef9190.js} +33 -0
  583. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +311 -314
  584. package/dist/collection/components/_chart/bar-chart/bar-chart.css +49 -26
  585. package/dist/collection/components/_chart/bar-chart/bar-chart.js +794 -700
  586. package/dist/collection/components/_chart/chart-line/chart-line.css +1 -2
  587. package/dist/collection/components/_chart/chart-line/chart-line.js +3 -3
  588. package/dist/collection/components/_chart/interfaces/line-chart-data.interface.js +1 -0
  589. package/dist/collection/components/_code/code/code.js +1 -1
  590. package/dist/collection/components/_code/code-block/code-block.js +1 -1
  591. package/dist/collection/components/_code/code-example/code-example.js +4 -4
  592. package/dist/collection/components/_dialog/dialog/dialog.js +3 -3
  593. package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +1 -1
  594. package/dist/collection/components/_expandable/expandable-faq/expandable-faq.js +2 -2
  595. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +4 -4
  596. package/dist/collection/components/_footer/footer/footer.js +1 -1
  597. package/dist/collection/components/_footer/footer-card/footer-card.js +1 -1
  598. package/dist/collection/components/_form/form-category-filter/form-category-filter.js +2 -2
  599. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +311 -314
  600. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
  601. package/dist/collection/components/_form/form-error-list/form-error-list.js +1 -1
  602. package/dist/collection/components/_form/form-fieldset/form-fieldset.js +1 -1
  603. package/dist/collection/components/_form/form-file-upload/form-file-upload.js +7 -7
  604. package/dist/collection/components/_form/form-filter/form-filter.js +5 -5
  605. package/dist/collection/components/_form/form-input/form-input.js +3 -3
  606. package/dist/collection/components/_form/form-input-search/form-input-search.js +2 -2
  607. package/dist/collection/components/_form/form-label/form-label.js +1 -1
  608. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
  609. package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +2 -2
  610. package/dist/collection/components/_form/form-receipt/form-receipt.js +1 -1
  611. package/dist/collection/components/_form/form-select/form-select.js +4 -4
  612. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -7
  613. package/dist/collection/components/_form/form-textarea/form-textarea.js +3 -3
  614. package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
  615. package/dist/collection/components/_header/header/header.js +2 -81
  616. package/dist/collection/components/_header/header-avatar/header-avatar.css +311 -314
  617. package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
  618. package/dist/collection/components/_header/header-navigation/header-navigation.js +3 -3
  619. package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
  620. package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
  621. package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
  622. package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
  623. package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
  624. package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
  625. package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
  626. package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
  627. package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
  628. package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
  629. package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
  630. package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
  631. package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
  632. package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
  633. package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
  634. package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
  635. package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
  636. package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
  637. package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
  638. package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
  639. package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
  640. package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
  641. package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
  642. package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
  643. package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
  644. package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
  645. package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
  646. package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
  647. package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
  648. package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
  649. package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
  650. package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
  651. package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
  652. package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
  653. package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
  654. package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
  655. package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
  656. package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
  657. package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
  658. package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
  659. package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
  660. package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
  661. package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
  662. package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
  663. package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
  664. package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
  665. package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
  666. package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
  667. package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
  668. package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
  669. package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
  670. package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
  671. package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
  672. package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
  673. package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
  674. package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
  675. package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
  676. package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
  677. package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
  678. package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
  679. package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
  680. package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
  681. package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
  682. package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
  683. package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
  684. package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
  685. package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
  686. package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
  687. package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
  688. package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
  689. package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
  690. package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
  691. package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
  692. package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
  693. package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
  694. package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
  695. package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
  696. package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
  697. package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
  698. package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
  699. package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
  700. package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
  701. package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
  702. package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
  703. package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
  704. package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
  705. package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
  706. package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
  707. package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
  708. package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
  709. package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
  710. package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
  711. package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
  712. package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
  713. package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
  714. package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
  715. package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
  716. package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
  717. package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
  718. package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
  719. package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
  720. package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
  721. package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
  722. package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
  723. package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
  724. package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
  725. package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
  726. package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
  727. package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
  728. package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
  729. package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
  730. package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
  731. package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
  732. package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
  733. package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
  734. package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
  735. package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
  736. package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
  737. package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
  738. package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
  739. package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
  740. package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
  741. package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
  742. package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
  743. package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
  744. package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
  745. package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
  746. package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
  747. package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
  748. package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
  749. package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
  750. package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
  751. package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
  752. package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
  753. package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
  754. package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
  755. package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
  756. package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
  757. package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
  758. package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
  759. package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
  760. package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
  761. package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
  762. package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
  763. package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
  764. package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
  765. package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
  766. package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
  767. package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
  768. package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
  769. package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
  770. package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
  771. package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
  772. package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
  773. package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
  774. package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
  775. package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
  776. package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
  777. package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
  778. package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
  779. package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
  780. package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
  781. package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
  782. package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
  783. package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
  784. package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
  785. package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
  786. package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
  787. package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
  788. package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
  789. package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
  790. package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
  791. package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
  792. package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
  793. package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
  794. package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
  795. package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
  796. package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
  797. package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
  798. package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
  799. package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
  800. package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
  801. package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
  802. package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
  803. package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
  804. package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
  805. package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
  806. package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
  807. package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
  808. package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
  809. package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
  810. package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
  811. package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
  812. package/dist/collection/components/_info-card/info-card/info-card.js +1 -1
  813. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +1 -1
  814. package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +1 -1
  815. package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
  816. package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
  817. package/dist/collection/components/_layout/layout-container/layout-container.css +1 -1
  818. package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
  819. package/dist/collection/components/_link/link/link.js +1 -1
  820. package/dist/collection/components/_link/link-button/link-button.js +1 -1
  821. package/dist/collection/components/_link/link-external/link-external.js +1 -1
  822. package/dist/collection/components/_link/link-internal/link-internal.css +311 -314
  823. package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
  824. package/dist/collection/components/_list/list/list.js +1 -1
  825. package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
  826. package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
  827. package/dist/collection/components/_logo/logo/logo.css +10 -9
  828. package/dist/collection/components/_logo/logo/logo.js +6 -84
  829. package/dist/collection/components/_logo/title-logo/title-logo.css +1 -1
  830. package/dist/collection/components/_logo/title-logo/title-logo.js +4 -3
  831. package/dist/collection/components/_media/media-figure/media-figure.js +1 -1
  832. package/dist/collection/components/_media/media-image/media-image.js +2 -2
  833. package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
  834. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +3 -3
  835. package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
  836. package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
  837. package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
  838. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  839. package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
  840. package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
  841. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
  842. package/dist/collection/components/_notification/notification-alert/notification-alert.css +1 -1
  843. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  844. package/dist/collection/components/_notification/notification-error-page/illustrations/illustrations.js +1 -1
  845. package/dist/collection/components/_notification/notification-error-page/notification-error-page.css +0 -6
  846. package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
  847. package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
  848. package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
  849. package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
  850. package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
  851. package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
  852. package/dist/collection/components/_quote/quote/quote.css +2 -2
  853. package/dist/collection/components/_quote/quote/quote.js +1 -1
  854. package/dist/collection/components/_table/table/table.js +1 -1
  855. package/dist/collection/components/_tag/tag/tag.js +1 -1
  856. package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
  857. package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
  858. package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
  859. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.css +2 -2
  860. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
  861. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +132 -124
  862. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -2
  863. package/dist/collection/components/_typography/typography/typography.js +1 -1
  864. package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
  865. package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
  866. package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
  867. package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
  868. package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
  869. package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
  870. package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
  871. package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
  872. package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
  873. package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
  874. package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
  875. package/dist/collection/design-tokens/components/_logo.variables.scss +4 -6
  876. package/dist/collection/enums.js +0 -1
  877. package/dist/collection/interfaces.js +2 -2
  878. package/dist/collection/styles/src/_alias.mixin.scss +67 -89
  879. package/dist/collection/styles/src/_sass-variables.scss +1 -1
  880. package/dist/collection/styles/src/index.scss +8 -7
  881. package/dist/collection/styles/src/themes/{_theme-af18.mixin.scss → _brand-af18.mixin.scss} +68 -105
  882. package/dist/collection/styles/src/themes/{_theme-af25.mixin.scss → _brand-af25.mixin.scss} +68 -90
  883. package/dist/collection/styles/src/themes/_brand-common.mixin.scss +30 -0
  884. package/dist/collection/styles/src/themes/{_common.mixin.scss → _numeric-common.mixin.scss} +6 -36
  885. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +168 -2751
  886. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +6 -6
  887. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  888. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  889. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  890. package/dist/digi-arbetsformedlingen/{p-12a03793.entry.js → p-01a1b9c9.entry.js} +1 -1
  891. package/dist/digi-arbetsformedlingen/{p-7908074b.entry.js → p-0464dca2.entry.js} +1 -1
  892. package/dist/digi-arbetsformedlingen/{p-ce22d2bd.entry.js → p-05ca733b.entry.js} +1 -1
  893. package/dist/digi-arbetsformedlingen/{p-944a7329.entry.js → p-075bd3c6.entry.js} +1 -1
  894. package/dist/digi-arbetsformedlingen/{p-a8bfcbdb.entry.js → p-09ded933.entry.js} +1 -1
  895. package/dist/digi-arbetsformedlingen/p-0a6d26f7.entry.js +1 -0
  896. package/dist/digi-arbetsformedlingen/{p-76474429.entry.js → p-0b586930.entry.js} +1 -1
  897. package/dist/digi-arbetsformedlingen/{p-3c0c5222.entry.js → p-0fbe6e50.entry.js} +1 -1
  898. package/dist/digi-arbetsformedlingen/{p-00219e81.entry.js → p-0ff7a0b3.entry.js} +1 -1
  899. package/dist/digi-arbetsformedlingen/{p-53d6b8e7.entry.js → p-10ada07d.entry.js} +1 -1
  900. package/dist/digi-arbetsformedlingen/{p-6bd60ab6.entry.js → p-111fb07d.entry.js} +1 -1
  901. package/dist/digi-arbetsformedlingen/{p-2761f020.entry.js → p-1122ceea.entry.js} +1 -1
  902. package/dist/digi-arbetsformedlingen/{p-18e4355f.entry.js → p-118d3294.entry.js} +1 -1
  903. package/dist/digi-arbetsformedlingen/{p-83bf9168.entry.js → p-11d24d40.entry.js} +1 -1
  904. package/dist/digi-arbetsformedlingen/{p-df5225d2.entry.js → p-138540b1.entry.js} +1 -1
  905. package/dist/digi-arbetsformedlingen/p-13ee320b.entry.js +1 -0
  906. package/dist/digi-arbetsformedlingen/p-1486034d.entry.js +1 -0
  907. package/dist/digi-arbetsformedlingen/{p-f2f36d89.entry.js → p-153e6f52.entry.js} +1 -1
  908. package/dist/digi-arbetsformedlingen/{p-5b236abe.entry.js → p-1541bdea.entry.js} +1 -1
  909. package/dist/digi-arbetsformedlingen/{p-7b957a6b.entry.js → p-15562b33.entry.js} +1 -1
  910. package/dist/digi-arbetsformedlingen/{p-9966fe52.entry.js → p-1649e5cf.entry.js} +1 -1
  911. package/dist/digi-arbetsformedlingen/{p-c77c3d89.entry.js → p-16d86f97.entry.js} +1 -1
  912. package/dist/digi-arbetsformedlingen/{p-a930f885.entry.js → p-1a984b8d.entry.js} +1 -1
  913. package/dist/digi-arbetsformedlingen/{p-103ceec9.entry.js → p-1c575074.entry.js} +1 -1
  914. package/dist/digi-arbetsformedlingen/{p-fd0b154a.entry.js → p-1d9cc992.entry.js} +1 -1
  915. package/dist/digi-arbetsformedlingen/p-20693fa2.entry.js +1 -0
  916. package/dist/digi-arbetsformedlingen/{p-8506c514.entry.js → p-22d204d6.entry.js} +1 -1
  917. package/dist/digi-arbetsformedlingen/{p-4e0ecc91.entry.js → p-269ef8dc.entry.js} +1 -1
  918. package/dist/digi-arbetsformedlingen/{p-5faa3a64.entry.js → p-27c75cf5.entry.js} +1 -1
  919. package/dist/digi-arbetsformedlingen/{p-58b6386c.entry.js → p-2938e001.entry.js} +1 -1
  920. package/dist/digi-arbetsformedlingen/{p-af3c182b.entry.js → p-295dddb9.entry.js} +1 -1
  921. package/dist/digi-arbetsformedlingen/{p-024ef74e.entry.js → p-29b838ce.entry.js} +1 -1
  922. package/dist/digi-arbetsformedlingen/p-2d2f6950.entry.js +1 -0
  923. package/dist/digi-arbetsformedlingen/{p-1e36e974.entry.js → p-2dd2a2de.entry.js} +1 -1
  924. package/dist/digi-arbetsformedlingen/{p-e1dd3a3f.entry.js → p-2f94203c.entry.js} +1 -1
  925. package/dist/digi-arbetsformedlingen/{p-8d4403b3.entry.js → p-305262db.entry.js} +1 -1
  926. package/dist/digi-arbetsformedlingen/{p-3d7fff3c.entry.js → p-30dc159d.entry.js} +1 -1
  927. package/dist/digi-arbetsformedlingen/{p-5fc10ab0.entry.js → p-328bd8e3.entry.js} +1 -1
  928. package/dist/digi-arbetsformedlingen/{p-b5755c01.entry.js → p-332ed107.entry.js} +1 -1
  929. package/dist/digi-arbetsformedlingen/{p-92e43eab.entry.js → p-3510d041.entry.js} +1 -1
  930. package/dist/digi-arbetsformedlingen/p-3566b732.entry.js +1 -0
  931. package/dist/digi-arbetsformedlingen/{p-426e32f1.entry.js → p-386e5da9.entry.js} +1 -1
  932. package/dist/digi-arbetsformedlingen/{p-5d23e3cd.entry.js → p-3ae4cb29.entry.js} +1 -1
  933. package/dist/digi-arbetsformedlingen/{p-9f81e7ca.entry.js → p-3c8e2e00.entry.js} +1 -1
  934. package/dist/digi-arbetsformedlingen/p-3cda17e1.entry.js +1 -0
  935. package/dist/digi-arbetsformedlingen/{p-f275b457.entry.js → p-3dfd0cea.entry.js} +1 -1
  936. package/dist/digi-arbetsformedlingen/p-3f9dfdb0.entry.js +1 -0
  937. package/dist/digi-arbetsformedlingen/{p-3a76bfde.entry.js → p-408e9b2a.entry.js} +1 -1
  938. package/dist/digi-arbetsformedlingen/{p-33a87be9.entry.js → p-4128b648.entry.js} +1 -1
  939. package/dist/digi-arbetsformedlingen/{p-4e36c467.entry.js → p-416992c0.entry.js} +1 -1
  940. package/dist/digi-arbetsformedlingen/{p-e57e67b4.entry.js → p-41f4b689.entry.js} +1 -1
  941. package/dist/digi-arbetsformedlingen/{p-01f90a29.entry.js → p-4319f1b4.entry.js} +1 -1
  942. package/dist/digi-arbetsformedlingen/{p-a1312fc2.entry.js → p-443c70b2.entry.js} +1 -1
  943. package/dist/digi-arbetsformedlingen/{p-4bdc3b9f.entry.js → p-44f2fa8c.entry.js} +1 -1
  944. package/dist/digi-arbetsformedlingen/{p-b22e8852.entry.js → p-4588ebc2.entry.js} +1 -1
  945. package/dist/digi-arbetsformedlingen/{p-e5347e6f.entry.js → p-45fba8fe.entry.js} +1 -1
  946. package/dist/digi-arbetsformedlingen/{p-3e3f540d.entry.js → p-45fceb9c.entry.js} +1 -1
  947. package/dist/digi-arbetsformedlingen/{p-fd960097.entry.js → p-46224607.entry.js} +1 -1
  948. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
  949. package/dist/digi-arbetsformedlingen/{p-a5e967d5.entry.js → p-48eee8b1.entry.js} +1 -1
  950. package/dist/digi-arbetsformedlingen/{p-85d4f3af.entry.js → p-498e1eff.entry.js} +1 -1
  951. package/dist/digi-arbetsformedlingen/{p-8c761dbc.entry.js → p-49914705.entry.js} +1 -1
  952. package/dist/digi-arbetsformedlingen/{p-573b8fa7.entry.js → p-49a4fe71.entry.js} +1 -1
  953. package/dist/digi-arbetsformedlingen/{p-8d0f766e.entry.js → p-4a5a934d.entry.js} +1 -1
  954. package/dist/digi-arbetsformedlingen/{p-681e7beb.entry.js → p-4b8cae8a.entry.js} +1 -1
  955. package/dist/digi-arbetsformedlingen/{p-464cd846.entry.js → p-4bb2bf83.entry.js} +1 -1
  956. package/dist/digi-arbetsformedlingen/{p-8890800e.entry.js → p-4d74331b.entry.js} +1 -1
  957. package/dist/digi-arbetsformedlingen/p-4d84c470.entry.js +1 -0
  958. package/dist/digi-arbetsformedlingen/{p-0aab70a9.entry.js → p-4e8439d0.entry.js} +1 -1
  959. package/dist/digi-arbetsformedlingen/{p-cf8c3bb3.entry.js → p-505d6802.entry.js} +1 -1
  960. package/dist/digi-arbetsformedlingen/p-515867ab.entry.js +1 -0
  961. package/dist/digi-arbetsformedlingen/{p-853442cf.entry.js → p-51f1f0a2.entry.js} +1 -1
  962. package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
  963. package/dist/digi-arbetsformedlingen/{p-a6641402.entry.js → p-544bf960.entry.js} +1 -1
  964. package/dist/digi-arbetsformedlingen/{p-2693c1d8.entry.js → p-55bcba7c.entry.js} +1 -1
  965. package/dist/digi-arbetsformedlingen/{p-07985aef.entry.js → p-55d02ef7.entry.js} +1 -1
  966. package/dist/digi-arbetsformedlingen/{p-9754f96a.entry.js → p-565cb408.entry.js} +1 -1
  967. package/dist/digi-arbetsformedlingen/{p-4148e305.entry.js → p-56edf062.entry.js} +1 -1
  968. package/dist/digi-arbetsformedlingen/{p-26f8ef76.entry.js → p-577f6995.entry.js} +1 -1
  969. package/dist/digi-arbetsformedlingen/{p-9dce95f1.entry.js → p-59182ae9.entry.js} +1 -1
  970. package/dist/digi-arbetsformedlingen/{p-4acb80a4.entry.js → p-5a3f2339.entry.js} +1 -1
  971. package/dist/digi-arbetsformedlingen/{p-c8c08554.entry.js → p-5a5babd1.entry.js} +1 -1
  972. package/dist/digi-arbetsformedlingen/{p-38537016.entry.js → p-5ad6d46d.entry.js} +1 -1
  973. package/dist/digi-arbetsformedlingen/{p-b4bef936.entry.js → p-5f20045a.entry.js} +1 -1
  974. package/dist/digi-arbetsformedlingen/{p-41bc039f.entry.js → p-5f4ece29.entry.js} +1 -1
  975. package/dist/digi-arbetsformedlingen/p-5f981b60.entry.js +1 -0
  976. package/dist/digi-arbetsformedlingen/{p-e71113f0.entry.js → p-60738889.entry.js} +1 -1
  977. package/dist/digi-arbetsformedlingen/{p-6422c8ca.entry.js → p-6274431e.entry.js} +1 -1
  978. package/dist/digi-arbetsformedlingen/p-6324c9bf.entry.js +1 -0
  979. package/dist/digi-arbetsformedlingen/{p-633f8158.entry.js → p-6546c48d.entry.js} +1 -1
  980. package/dist/digi-arbetsformedlingen/{p-d7709d32.entry.js → p-658863ba.entry.js} +1 -1
  981. package/dist/digi-arbetsformedlingen/{p-e6d0f714.entry.js → p-675fe9ae.entry.js} +1 -1
  982. package/dist/digi-arbetsformedlingen/p-67ba87db.entry.js +1 -0
  983. package/dist/digi-arbetsformedlingen/{p-b88f6f99.entry.js → p-6b7e7040.entry.js} +1 -1
  984. package/dist/digi-arbetsformedlingen/{p-4f29b0c0.entry.js → p-6bc1255b.entry.js} +1 -1
  985. package/dist/digi-arbetsformedlingen/{p-de9c3a69.entry.js → p-6c8491a5.entry.js} +1 -1
  986. package/dist/digi-arbetsformedlingen/{p-67b49e94.entry.js → p-6ca83bc0.entry.js} +1 -1
  987. package/dist/digi-arbetsformedlingen/{p-a41ef0f6.entry.js → p-6cf784b6.entry.js} +1 -1
  988. package/dist/digi-arbetsformedlingen/{p-aa91c0af.entry.js → p-6f5f87eb.entry.js} +1 -1
  989. package/dist/digi-arbetsformedlingen/{p-077f80a5.entry.js → p-6ff42bef.entry.js} +1 -1
  990. package/dist/digi-arbetsformedlingen/{p-6ff374d1.entry.js → p-70744e7e.entry.js} +1 -1
  991. package/dist/digi-arbetsformedlingen/{p-d5763fdd.entry.js → p-741ec2d5.entry.js} +1 -1
  992. package/dist/digi-arbetsformedlingen/{p-628b7dbb.entry.js → p-7581e47c.entry.js} +1 -1
  993. package/dist/digi-arbetsformedlingen/{p-7cf05fa9.entry.js → p-784b28bb.entry.js} +1 -1
  994. package/dist/digi-arbetsformedlingen/{p-00506378.entry.js → p-78794f38.entry.js} +1 -1
  995. package/dist/digi-arbetsformedlingen/{p-fecc1b90.entry.js → p-7a4abd41.entry.js} +1 -1
  996. package/dist/digi-arbetsformedlingen/{p-7e557ad2.entry.js → p-7aa50e36.entry.js} +1 -1
  997. package/dist/digi-arbetsformedlingen/{p-7e7dcd4a.entry.js → p-7af556aa.entry.js} +1 -1
  998. package/dist/digi-arbetsformedlingen/{p-e3ac1f3a.entry.js → p-7afe3783.entry.js} +1 -1
  999. package/dist/digi-arbetsformedlingen/{p-1ed59d47.entry.js → p-7b82a34b.entry.js} +1 -1
  1000. package/dist/digi-arbetsformedlingen/{p-51144736.entry.js → p-7c2c13ba.entry.js} +1 -1
  1001. package/dist/digi-arbetsformedlingen/{p-0c1d3711.entry.js → p-7c3f6a30.entry.js} +1 -1
  1002. package/dist/digi-arbetsformedlingen/{p-13523367.entry.js → p-81c5af98.entry.js} +1 -1
  1003. package/dist/digi-arbetsformedlingen/{p-2b2f3fad.entry.js → p-821d5a2c.entry.js} +1 -1
  1004. package/dist/digi-arbetsformedlingen/{p-9b7f0707.entry.js → p-82611050.entry.js} +1 -1
  1005. package/dist/digi-arbetsformedlingen/{p-6d864e79.entry.js → p-82a74908.entry.js} +1 -1
  1006. package/dist/digi-arbetsformedlingen/{p-96a2f7d5.entry.js → p-8442b257.entry.js} +1 -1
  1007. package/dist/digi-arbetsformedlingen/{p-d274cee8.entry.js → p-851fe52d.entry.js} +1 -1
  1008. package/dist/digi-arbetsformedlingen/{p-15348eee.entry.js → p-8846018d.entry.js} +1 -1
  1009. package/dist/digi-arbetsformedlingen/{p-7255a748.entry.js → p-898bc9f7.entry.js} +1 -1
  1010. package/dist/digi-arbetsformedlingen/{p-e4d48214.entry.js → p-89ea748b.entry.js} +1 -1
  1011. package/dist/digi-arbetsformedlingen/{p-d8c3525c.entry.js → p-8c91e232.entry.js} +1 -1
  1012. package/dist/digi-arbetsformedlingen/{p-15263cf9.entry.js → p-8de3b839.entry.js} +1 -1
  1013. package/dist/digi-arbetsformedlingen/{p-87727a53.entry.js → p-8e53e821.entry.js} +1 -1
  1014. package/dist/digi-arbetsformedlingen/{p-009d0758.entry.js → p-8f33b97c.entry.js} +1 -1
  1015. package/dist/digi-arbetsformedlingen/{p-16f09f62.entry.js → p-8fa50755.entry.js} +1 -1
  1016. package/dist/digi-arbetsformedlingen/{p-c29ab968.entry.js → p-915b2a14.entry.js} +1 -1
  1017. package/dist/digi-arbetsformedlingen/{p-72c968e0.entry.js → p-93158bc8.entry.js} +1 -1
  1018. package/dist/digi-arbetsformedlingen/{p-8284b8cf.entry.js → p-942700b8.entry.js} +1 -1
  1019. package/dist/digi-arbetsformedlingen/{p-89e2aff2.entry.js → p-951bedf9.entry.js} +1 -1
  1020. package/dist/digi-arbetsformedlingen/{p-8e1568c4.entry.js → p-951c21cb.entry.js} +1 -1
  1021. package/dist/digi-arbetsformedlingen/{p-f8b6c6db.entry.js → p-9526fbc3.entry.js} +1 -1
  1022. package/dist/digi-arbetsformedlingen/{p-2fca5303.entry.js → p-97aab77e.entry.js} +1 -1
  1023. package/dist/digi-arbetsformedlingen/{p-d5376b7c.entry.js → p-9908e7e6.entry.js} +1 -1
  1024. package/dist/digi-arbetsformedlingen/{p-c3e6d920.entry.js → p-991c8ab8.entry.js} +1 -1
  1025. package/dist/digi-arbetsformedlingen/p-9a72b453.entry.js +1 -0
  1026. package/dist/digi-arbetsformedlingen/{p-b7c234ba.entry.js → p-9b6afae4.entry.js} +1 -1
  1027. package/dist/digi-arbetsformedlingen/p-9c053cf8.entry.js +1 -0
  1028. package/dist/digi-arbetsformedlingen/{p-447779c9.entry.js → p-9cdbe632.entry.js} +1 -1
  1029. package/dist/digi-arbetsformedlingen/{p-4ac07008.entry.js → p-9d0704a6.entry.js} +1 -1
  1030. package/dist/digi-arbetsformedlingen/{p-5d3383f9.entry.js → p-9f47d4b7.entry.js} +1 -1
  1031. package/dist/digi-arbetsformedlingen/{p-654dbd76.entry.js → p-a2420f61.entry.js} +1 -1
  1032. package/dist/digi-arbetsformedlingen/p-a26333e9.entry.js +1 -0
  1033. package/dist/digi-arbetsformedlingen/{p-e92094c2.entry.js → p-a3c8bff0.entry.js} +1 -1
  1034. package/dist/digi-arbetsformedlingen/{p-e7461a13.entry.js → p-a3eeb86f.entry.js} +1 -1
  1035. package/dist/digi-arbetsformedlingen/{p-1eae728c.entry.js → p-a5810f26.entry.js} +1 -1
  1036. package/dist/digi-arbetsformedlingen/{p-c5f7050c.entry.js → p-a682d6d0.entry.js} +1 -1
  1037. package/dist/digi-arbetsformedlingen/{p-bed4e41b.entry.js → p-a75e7291.entry.js} +1 -1
  1038. package/dist/digi-arbetsformedlingen/{p-dc3f1bff.entry.js → p-a8705ac5.entry.js} +1 -1
  1039. package/dist/digi-arbetsformedlingen/{p-e3d34c02.entry.js → p-a902ddef.entry.js} +1 -1
  1040. package/dist/digi-arbetsformedlingen/{p-0e20fa9d.entry.js → p-a9114fb8.entry.js} +1 -1
  1041. package/dist/digi-arbetsformedlingen/{p-870c4f49.entry.js → p-a969ba67.entry.js} +1 -1
  1042. package/dist/digi-arbetsformedlingen/{p-eaac5c66.entry.js → p-aa0a3d89.entry.js} +1 -1
  1043. package/dist/digi-arbetsformedlingen/{p-d98c9920.entry.js → p-ac212ad2.entry.js} +1 -1
  1044. package/dist/digi-arbetsformedlingen/p-ad186c98.entry.js +1 -0
  1045. package/dist/digi-arbetsformedlingen/{p-682f727c.entry.js → p-ad62f485.entry.js} +1 -1
  1046. package/dist/digi-arbetsformedlingen/{p-44a6202f.entry.js → p-ae5326a8.entry.js} +1 -1
  1047. package/dist/digi-arbetsformedlingen/{p-33349e7e.entry.js → p-af72f16f.entry.js} +1 -1
  1048. package/dist/digi-arbetsformedlingen/{p-4200e2e1.entry.js → p-b0c82cd5.entry.js} +1 -1
  1049. package/dist/digi-arbetsformedlingen/{p-6c3a302e.entry.js → p-b207a2ac.entry.js} +1 -1
  1050. package/dist/digi-arbetsformedlingen/{p-dea2dd09.entry.js → p-b3cd12d2.entry.js} +1 -1
  1051. package/dist/digi-arbetsformedlingen/{p-d7aa8315.entry.js → p-b3d93b8b.entry.js} +1 -1
  1052. package/dist/digi-arbetsformedlingen/p-b48f2bfc.entry.js +1 -0
  1053. package/dist/digi-arbetsformedlingen/{p-57319a80.entry.js → p-b4b33865.entry.js} +1 -1
  1054. package/dist/digi-arbetsformedlingen/{p-7f852a22.entry.js → p-b58169ec.entry.js} +1 -1
  1055. package/dist/digi-arbetsformedlingen/{p-405d57ae.entry.js → p-b91c9055.entry.js} +1 -1
  1056. package/dist/digi-arbetsformedlingen/{p-d055d564.entry.js → p-ba3c4861.entry.js} +1 -1
  1057. package/dist/digi-arbetsformedlingen/{p-34e12bd2.entry.js → p-bb96a67a.entry.js} +1 -1
  1058. package/dist/digi-arbetsformedlingen/{p-110c3e1a.entry.js → p-bb9ae588.entry.js} +1 -1
  1059. package/dist/digi-arbetsformedlingen/p-be2ff8df.entry.js +1 -0
  1060. package/dist/digi-arbetsformedlingen/{p-93766b5e.entry.js → p-c04ae2fc.entry.js} +1 -1
  1061. package/dist/digi-arbetsformedlingen/{p-3dafce70.entry.js → p-c06930c2.entry.js} +1 -1
  1062. package/dist/digi-arbetsformedlingen/{p-41065da6.entry.js → p-c141aedc.entry.js} +1 -1
  1063. package/dist/digi-arbetsformedlingen/{p-8b88c952.entry.js → p-c1ab43e3.entry.js} +1 -1
  1064. package/dist/digi-arbetsformedlingen/{p-b0da7751.entry.js → p-c1fd535b.entry.js} +1 -1
  1065. package/dist/digi-arbetsformedlingen/{p-37038edf.entry.js → p-c21e4aa2.entry.js} +1 -1
  1066. package/dist/digi-arbetsformedlingen/{p-193b136c.entry.js → p-c3efe169.entry.js} +1 -1
  1067. package/dist/digi-arbetsformedlingen/{p-c085dc03.entry.js → p-c590fb8b.entry.js} +1 -1
  1068. package/dist/digi-arbetsformedlingen/p-c5dcd4a3.entry.js +1 -0
  1069. package/dist/digi-arbetsformedlingen/{p-5a965d75.entry.js → p-c89542dc.entry.js} +1 -1
  1070. package/dist/digi-arbetsformedlingen/{p-2be2a087.entry.js → p-cb4b3028.entry.js} +1 -1
  1071. package/dist/digi-arbetsformedlingen/{p-4b124888.entry.js → p-cbc32f8f.entry.js} +1 -1
  1072. package/dist/digi-arbetsformedlingen/{p-05324cdd.entry.js → p-cbd72c5d.entry.js} +1 -1
  1073. package/dist/digi-arbetsformedlingen/{p-7e49b526.entry.js → p-cedbe18a.entry.js} +1 -1
  1074. package/dist/digi-arbetsformedlingen/{p-b3254470.entry.js → p-cef82303.entry.js} +1 -1
  1075. package/dist/digi-arbetsformedlingen/{p-a8a7fc5b.entry.js → p-cf977a1e.entry.js} +1 -1
  1076. package/dist/digi-arbetsformedlingen/{p-c741da33.entry.js → p-d0214716.entry.js} +1 -1
  1077. package/dist/digi-arbetsformedlingen/{p-bd085e7f.entry.js → p-d03e21e9.entry.js} +1 -1
  1078. package/dist/digi-arbetsformedlingen/{p-dd4cc053.entry.js → p-d0d10d50.entry.js} +1 -1
  1079. package/dist/digi-arbetsformedlingen/{p-744a0451.entry.js → p-d13202aa.entry.js} +1 -1
  1080. package/dist/digi-arbetsformedlingen/{p-7c116ffb.entry.js → p-d182d8bb.entry.js} +1 -1
  1081. package/dist/digi-arbetsformedlingen/{p-c06611d5.entry.js → p-d55628aa.entry.js} +1 -1
  1082. package/dist/digi-arbetsformedlingen/p-d595e8a3.js +1 -0
  1083. package/dist/digi-arbetsformedlingen/{p-69f63c7d.entry.js → p-d670e0e0.entry.js} +1 -1
  1084. package/dist/digi-arbetsformedlingen/p-d6a839c3.entry.js +1 -0
  1085. package/dist/digi-arbetsformedlingen/{p-13cd19d0.entry.js → p-d7f91b57.entry.js} +1 -1
  1086. package/dist/digi-arbetsformedlingen/{p-e4ee488a.entry.js → p-d8985c32.entry.js} +1 -1
  1087. package/dist/digi-arbetsformedlingen/{p-fff27d84.entry.js → p-d8f12bc6.entry.js} +1 -1
  1088. package/dist/digi-arbetsformedlingen/{p-ea113b44.entry.js → p-d926e01a.entry.js} +1 -1
  1089. package/dist/digi-arbetsformedlingen/{p-68c937f9.entry.js → p-d945efbc.entry.js} +1 -1
  1090. package/dist/digi-arbetsformedlingen/{p-618b8bc8.entry.js → p-d9a9ce27.entry.js} +1 -1
  1091. package/dist/digi-arbetsformedlingen/{p-d79cb764.entry.js → p-d9ee06b3.entry.js} +1 -1
  1092. package/dist/digi-arbetsformedlingen/{p-e734b21e.entry.js → p-d9fe47c6.entry.js} +1 -1
  1093. package/dist/digi-arbetsformedlingen/{p-faeae199.entry.js → p-da66642b.entry.js} +1 -1
  1094. package/dist/digi-arbetsformedlingen/{p-ca30cbad.entry.js → p-db7c0461.entry.js} +1 -1
  1095. package/dist/digi-arbetsformedlingen/{p-a5a86077.entry.js → p-dc2900ed.entry.js} +1 -1
  1096. package/dist/digi-arbetsformedlingen/{p-7f355471.entry.js → p-dd4dbce9.entry.js} +1 -1
  1097. package/dist/digi-arbetsformedlingen/{p-038adf64.entry.js → p-e2673aa1.entry.js} +1 -1
  1098. package/dist/digi-arbetsformedlingen/p-e29cbf26.entry.js +1 -0
  1099. package/dist/digi-arbetsformedlingen/{p-813f7cd7.entry.js → p-e325cf29.entry.js} +1 -1
  1100. package/dist/digi-arbetsformedlingen/p-e347aae8.entry.js +1 -0
  1101. package/dist/digi-arbetsformedlingen/{p-1dcfc210.entry.js → p-e41c954e.entry.js} +1 -1
  1102. package/dist/digi-arbetsformedlingen/{p-49735479.entry.js → p-e4b39465.entry.js} +1 -1
  1103. package/dist/digi-arbetsformedlingen/{p-f1fb0ee8.entry.js → p-e54c2bba.entry.js} +1 -1
  1104. package/dist/digi-arbetsformedlingen/p-e561a29d.entry.js +1 -0
  1105. package/dist/digi-arbetsformedlingen/{p-5d58a175.entry.js → p-e64c656d.entry.js} +1 -1
  1106. package/dist/digi-arbetsformedlingen/{p-9c4f07b0.entry.js → p-e7816175.entry.js} +1 -1
  1107. package/dist/digi-arbetsformedlingen/{p-e10e24fc.entry.js → p-e88d7860.entry.js} +1 -1
  1108. package/dist/digi-arbetsformedlingen/{p-88617c9f.entry.js → p-ea57a1da.entry.js} +1 -1
  1109. package/dist/digi-arbetsformedlingen/{p-1455b446.entry.js → p-ebd9596f.entry.js} +1 -1
  1110. package/dist/digi-arbetsformedlingen/p-ed4c0905.entry.js +1 -0
  1111. package/dist/digi-arbetsformedlingen/{p-57a0cc63.entry.js → p-eda570be.entry.js} +1 -1
  1112. package/dist/digi-arbetsformedlingen/{p-4122fe31.entry.js → p-f1857d71.entry.js} +1 -1
  1113. package/dist/digi-arbetsformedlingen/{p-6989161a.entry.js → p-f1e9e690.entry.js} +1 -1
  1114. package/dist/digi-arbetsformedlingen/{p-52f53840.entry.js → p-f2e9f090.entry.js} +1 -1
  1115. package/dist/digi-arbetsformedlingen/{p-942a829a.entry.js → p-f489832c.entry.js} +1 -1
  1116. package/dist/digi-arbetsformedlingen/{p-7888e12c.entry.js → p-f4edca16.entry.js} +1 -1
  1117. package/dist/digi-arbetsformedlingen/{p-89663e9f.entry.js → p-f50ab13d.entry.js} +1 -1
  1118. package/dist/digi-arbetsformedlingen/{p-22700f68.entry.js → p-f5bd6a43.entry.js} +1 -1
  1119. package/dist/digi-arbetsformedlingen/{p-67be853d.entry.js → p-f96939e4.entry.js} +1 -1
  1120. package/dist/digi-arbetsformedlingen/{p-a47b6b5c.js → p-f9a1a787.js} +1 -1
  1121. package/dist/digi-arbetsformedlingen/{p-96987381.entry.js → p-fb9b3544.entry.js} +1 -1
  1122. package/dist/digi-arbetsformedlingen/{p-285956a5.entry.js → p-fd094929.entry.js} +1 -1
  1123. package/dist/digi-arbetsformedlingen/{p-df3a8ec4.entry.js → p-fdca581c.entry.js} +1 -1
  1124. package/dist/digi-arbetsformedlingen/{p-f33ee2cb.entry.js → p-ff346c2a.entry.js} +1 -1
  1125. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +67 -89
  1126. package/dist/digi-arbetsformedlingen/styles/src/_sass-variables.scss +1 -1
  1127. package/dist/digi-arbetsformedlingen/styles/src/index.scss +8 -7
  1128. package/dist/digi-arbetsformedlingen/styles/src/themes/{_theme-af18.mixin.scss → _brand-af18.mixin.scss} +68 -105
  1129. package/dist/digi-arbetsformedlingen/styles/src/themes/{_theme-af25.mixin.scss → _brand-af25.mixin.scss} +68 -90
  1130. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-common.mixin.scss +30 -0
  1131. package/dist/digi-arbetsformedlingen/styles/src/themes/{_common.mixin.scss → _numeric-common.mixin.scss} +6 -36
  1132. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +168 -2751
  1133. package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
  1134. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  1135. package/dist/esm/digi-bar-chart.entry.js +786 -692
  1136. package/dist/esm/digi-button_27.entry.js +1349 -0
  1137. package/dist/esm/digi-calendar-datepicker.entry.js +4 -9
  1138. package/dist/esm/digi-calendar_2.entry.js +2 -2
  1139. package/dist/esm/digi-chart-line.entry.js +3 -3
  1140. package/dist/esm/digi-code-block_3.entry.js +7 -12
  1141. package/dist/esm/digi-code-example.entry.js +5 -6
  1142. package/dist/esm/digi-code.entry.js +1 -1
  1143. package/dist/esm/digi-context-menu.entry.js +3 -3
  1144. package/dist/esm/digi-dialog.entry.js +6 -11
  1145. package/dist/esm/digi-expandable-accordion.entry.js +1 -1
  1146. package/dist/esm/digi-expandable-faq-item.entry.js +4 -4
  1147. package/dist/esm/digi-expandable-faq.entry.js +2 -2
  1148. package/dist/esm/digi-form-category-filter.entry.js +2 -2
  1149. package/dist/esm/digi-form-checkbox.entry.js +135 -0
  1150. package/dist/esm/digi-form-error-list.entry.js +4 -9
  1151. package/dist/esm/digi-form-file-upload.entry.js +7 -7
  1152. package/dist/esm/digi-form-filter.entry.js +5 -5
  1153. package/dist/esm/digi-form-input-search.entry.js +3 -4
  1154. package/dist/esm/digi-form-input.entry.js +3 -3
  1155. package/dist/esm/digi-form-label_3.entry.js +4 -4
  1156. package/dist/esm/digi-form-radiogroup.entry.js +2 -2
  1157. package/dist/esm/digi-form-receipt.entry.js +4 -9
  1158. package/dist/esm/digi-form-select-filter.entry.js +10 -15
  1159. package/dist/esm/digi-form-select_2.entry.js +6 -6
  1160. package/dist/esm/digi-form-textarea.entry.js +3 -3
  1161. package/dist/esm/digi-icon-accessibility-deaf.entry.js +2 -2
  1162. package/dist/esm/digi-icon-apple.entry.js +2 -2
  1163. package/dist/esm/digi-icon-archive-outline.entry.js +2 -2
  1164. package/dist/esm/digi-icon-archive.entry.js +2 -2
  1165. package/dist/esm/digi-icon-arrow-back.entry.js +2 -2
  1166. package/dist/esm/digi-icon-arrow-down.entry.js +2 -2
  1167. package/dist/esm/digi-icon-arrow-left.entry.js +2 -2
  1168. package/dist/esm/digi-icon-arrow-right.entry.js +2 -2
  1169. package/dist/esm/digi-icon-arrow-sign-in.entry.js +2 -2
  1170. package/dist/esm/digi-icon-arrow-sign-out.entry.js +2 -2
  1171. package/dist/esm/digi-icon-arrow-up.entry.js +2 -2
  1172. package/dist/esm/digi-icon-at.entry.js +2 -2
  1173. package/dist/esm/digi-icon-bell.entry.js +2 -2
  1174. package/dist/esm/digi-icon-book.entry.js +2 -2
  1175. package/dist/esm/digi-icon-bookmark-outline.entry.js +2 -2
  1176. package/dist/esm/digi-icon-bookmark-solid.entry.js +2 -2
  1177. package/dist/esm/digi-icon-bubble-ellipsis.entry.js +2 -2
  1178. package/dist/esm/digi-icon-bubble.entry.js +2 -2
  1179. package/dist/esm/digi-icon-building-outline.entry.js +2 -2
  1180. package/dist/esm/digi-icon-building-solid.entry.js +2 -2
  1181. package/dist/esm/digi-icon-bullseye.entry.js +2 -2
  1182. package/dist/esm/digi-icon-calculator-solid.entry.js +2 -2
  1183. package/dist/esm/digi-icon-calendar-alt-alert.entry.js +2 -2
  1184. package/dist/esm/digi-icon-calendar.entry.js +2 -2
  1185. package/dist/esm/digi-icon-caret-circle-right.entry.js +2 -2
  1186. package/dist/esm/digi-icon-caret-down_2.entry.js +4 -4
  1187. package/dist/esm/digi-icon-caret-left.entry.js +2 -2
  1188. package/dist/esm/digi-icon-caret-right.entry.js +2 -2
  1189. package/dist/esm/digi-icon-chart_2.entry.js +4 -4
  1190. package/dist/esm/digi-icon-chat.entry.js +2 -2
  1191. package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +2 -2
  1192. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +8 -8
  1193. package/dist/esm/digi-icon-check.entry.js +2 -2
  1194. package/dist/esm/digi-icon-checklist.entry.js +2 -2
  1195. package/dist/esm/digi-icon-chevron-down.entry.js +2 -2
  1196. package/dist/esm/digi-icon-chevron-left_2.entry.js +4 -4
  1197. package/dist/esm/digi-icon-chevron-up.entry.js +2 -2
  1198. package/dist/esm/digi-icon-clock.entry.js +2 -2
  1199. package/dist/esm/digi-icon-communication-play-solid.entry.js +2 -2
  1200. package/dist/esm/digi-icon-compress-alt.entry.js +2 -2
  1201. package/dist/esm/digi-icon-comunication-case.entry.js +2 -2
  1202. package/dist/esm/digi-icon-comunication-flag.entry.js +2 -2
  1203. package/dist/esm/digi-icon-comunication-graduate.entry.js +2 -2
  1204. package/dist/esm/digi-icon-comunication-play.entry.js +2 -2
  1205. package/dist/esm/digi-icon-cooperation.entry.js +2 -2
  1206. package/dist/esm/digi-icon-copy.entry.js +2 -2
  1207. package/dist/esm/digi-icon-danger-outline.entry.js +2 -2
  1208. package/dist/esm/digi-icon-download.entry.js +2 -2
  1209. package/dist/esm/digi-icon-dxa.entry.js +2 -2
  1210. package/dist/esm/digi-icon-edit.entry.js +2 -2
  1211. package/dist/esm/digi-icon-ellipsis.entry.js +2 -2
  1212. package/dist/esm/digi-icon-envelope-filled.entry.js +2 -2
  1213. package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +2 -2
  1214. package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +2 -2
  1215. package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +2 -2
  1216. package/dist/esm/digi-icon-exclamation-triangle.entry.js +2 -2
  1217. package/dist/esm/digi-icon-expand-alt.entry.js +2 -2
  1218. package/dist/esm/digi-icon-eye-slash.entry.js +2 -2
  1219. package/dist/esm/digi-icon-eye.entry.js +2 -2
  1220. package/dist/esm/digi-icon-facebook-square.entry.js +2 -2
  1221. package/dist/esm/digi-icon-file-add.entry.js +1 -1
  1222. package/dist/esm/digi-icon-file-document.entry.js +2 -2
  1223. package/dist/esm/digi-icon-file-excel.entry.js +2 -2
  1224. package/dist/esm/digi-icon-file-export.entry.js +1 -1
  1225. package/dist/esm/digi-icon-file-governing.entry.js +2 -2
  1226. package/dist/esm/digi-icon-file-pdf.entry.js +2 -2
  1227. package/dist/esm/digi-icon-file-powerpoint.entry.js +2 -2
  1228. package/dist/esm/digi-icon-file-remove.entry.js +1 -1
  1229. package/dist/esm/digi-icon-file-word.entry.js +2 -2
  1230. package/dist/esm/digi-icon-film.entry.js +2 -2
  1231. package/dist/esm/digi-icon-filter.entry.js +2 -2
  1232. package/dist/esm/digi-icon-folder-add.entry.js +1 -1
  1233. package/dist/esm/digi-icon-folder-directory.entry.js +1 -1
  1234. package/dist/esm/digi-icon-folder-open.entry.js +1 -1
  1235. package/dist/esm/digi-icon-folder.entry.js +1 -1
  1236. package/dist/esm/digi-icon-globe-filled.entry.js +2 -2
  1237. package/dist/esm/digi-icon-headphones.entry.js +2 -2
  1238. package/dist/esm/digi-icon-heart-solid.entry.js +2 -2
  1239. package/dist/esm/digi-icon-heart.entry.js +2 -2
  1240. package/dist/esm/digi-icon-history.entry.js +2 -2
  1241. package/dist/esm/digi-icon-home.entry.js +2 -2
  1242. package/dist/esm/digi-icon-image.entry.js +2 -2
  1243. package/dist/esm/digi-icon-info-circle-solid.entry.js +2 -2
  1244. package/dist/esm/digi-icon-instagram.entry.js +2 -2
  1245. package/dist/esm/digi-icon-job-suggestion.entry.js +2 -2
  1246. package/dist/esm/digi-icon-language-outline.entry.js +2 -2
  1247. package/dist/esm/digi-icon-language.entry.js +2 -2
  1248. package/dist/esm/digi-icon-laptop-phone.entry.js +2 -2
  1249. package/dist/esm/digi-icon-lattlast.entry.js +2 -2
  1250. package/dist/esm/digi-icon-licence-bus.entry.js +2 -2
  1251. package/dist/esm/digi-icon-licence-car.entry.js +2 -2
  1252. package/dist/esm/digi-icon-licence-motorcycle.entry.js +2 -2
  1253. package/dist/esm/digi-icon-licence-truck.entry.js +2 -2
  1254. package/dist/esm/digi-icon-lightbulb.entry.js +2 -2
  1255. package/dist/esm/digi-icon-linkedin-in.entry.js +2 -2
  1256. package/dist/esm/digi-icon-list-ul_6.entry.js +12 -12
  1257. package/dist/esm/digi-icon-lock.entry.js +2 -2
  1258. package/dist/esm/digi-icon-marker-filled.entry.js +2 -2
  1259. package/dist/esm/digi-icon-marker.entry.js +2 -2
  1260. package/dist/esm/digi-icon-media-course.entry.js +2 -2
  1261. package/dist/esm/digi-icon-media-podcast.entry.js +2 -2
  1262. package/dist/esm/digi-icon-microphone-off.entry.js +2 -2
  1263. package/dist/esm/digi-icon-microphone.entry.js +2 -2
  1264. package/dist/esm/digi-icon-minus_2.entry.js +4 -4
  1265. package/dist/esm/digi-icon-move.entry.js +2 -2
  1266. package/dist/esm/digi-icon-notification-error_4.entry.js +8 -8
  1267. package/dist/esm/digi-icon-online-interview.entry.js +2 -2
  1268. package/dist/esm/digi-icon-online-meeting.entry.js +2 -2
  1269. package/dist/esm/digi-icon-online-task.entry.js +2 -2
  1270. package/dist/esm/digi-icon-open-source.entry.js +2 -2
  1271. package/dist/esm/digi-icon-palette.entry.js +2 -2
  1272. package/dist/esm/digi-icon-paste.entry.js +1 -1
  1273. package/dist/esm/digi-icon-pen.entry.js +2 -2
  1274. package/dist/esm/digi-icon-phone-hangup.entry.js +2 -2
  1275. package/dist/esm/digi-icon-phone.entry.js +2 -2
  1276. package/dist/esm/digi-icon-print.entry.js +2 -2
  1277. package/dist/esm/digi-icon-read.entry.js +2 -2
  1278. package/dist/esm/digi-icon-redo.entry.js +2 -2
  1279. package/dist/esm/digi-icon-scale.entry.js +1 -1
  1280. package/dist/esm/digi-icon-screensharing-off.entry.js +2 -2
  1281. package/dist/esm/digi-icon-screensharing.entry.js +2 -2
  1282. package/dist/esm/digi-icon-search.entry.js +2 -2
  1283. package/dist/esm/digi-icon-send-outline.entry.js +2 -2
  1284. package/dist/esm/digi-icon-send-solid.entry.js +2 -2
  1285. package/dist/esm/digi-icon-settings.entry.js +2 -2
  1286. package/dist/esm/digi-icon-share-alt.entry.js +2 -2
  1287. package/dist/esm/digi-icon-share-chain.entry.js +2 -2
  1288. package/dist/esm/digi-icon-sliders-h.entry.js +2 -2
  1289. package/dist/esm/digi-icon-sokkandidat.entry.js +2 -2
  1290. package/dist/esm/digi-icon-sort-down.entry.js +2 -2
  1291. package/dist/esm/digi-icon-sort-up.entry.js +2 -2
  1292. package/dist/esm/digi-icon-sort.entry.js +2 -2
  1293. package/dist/esm/digi-icon-spinner.entry.js +2 -2
  1294. package/dist/esm/digi-icon-star-reg.entry.js +2 -2
  1295. package/dist/esm/digi-icon-star.entry.js +2 -2
  1296. package/dist/esm/digi-icon-suitcase-outline.entry.js +2 -2
  1297. package/dist/esm/digi-icon-suitcase-solid.entry.js +2 -2
  1298. package/dist/esm/digi-icon-system-assistance.entry.js +2 -2
  1299. package/dist/esm/digi-icon-table-column.entry.js +2 -2
  1300. package/dist/esm/digi-icon-table-row.entry.js +2 -2
  1301. package/dist/esm/digi-icon-task-done.entry.js +2 -2
  1302. package/dist/esm/digi-icon-toggle-off.entry.js +2 -2
  1303. package/dist/esm/digi-icon-toggle-on.entry.js +2 -2
  1304. package/dist/esm/digi-icon-twitter.entry.js +2 -2
  1305. package/dist/esm/digi-icon-tyck-till.entry.js +2 -2
  1306. package/dist/esm/digi-icon-unlock.entry.js +2 -2
  1307. package/dist/esm/digi-icon-update.entry.js +2 -2
  1308. package/dist/esm/digi-icon-upload.entry.js +2 -2
  1309. package/dist/esm/digi-icon-user-add.entry.js +1 -1
  1310. package/dist/esm/digi-icon-user-alt.entry.js +2 -2
  1311. package/dist/esm/digi-icon-user-edit.entry.js +1 -1
  1312. package/dist/esm/digi-icon-users-solid.entry.js +2 -2
  1313. package/dist/esm/digi-icon-validation-error_2.entry.js +4 -4
  1314. package/dist/esm/digi-icon-videocamera-off.entry.js +2 -2
  1315. package/dist/esm/digi-icon-videocamera.entry.js +2 -2
  1316. package/dist/esm/digi-icon-volume.entry.js +2 -2
  1317. package/dist/esm/digi-icon-web-tv.entry.js +2 -2
  1318. package/dist/esm/digi-icon-wifi-signal0.entry.js +2 -2
  1319. package/dist/esm/digi-icon-wifi-signal1.entry.js +2 -2
  1320. package/dist/esm/digi-icon-wifi-signal2.entry.js +2 -2
  1321. package/dist/esm/digi-icon-wifi-signal3.entry.js +2 -2
  1322. package/dist/esm/digi-icon-window.entry.js +2 -2
  1323. package/dist/esm/digi-icon-x-button.entry.js +2 -2
  1324. package/dist/esm/digi-icon-youtube.entry.js +2 -2
  1325. package/dist/esm/digi-info-card-multi-container.entry.js +1 -1
  1326. package/dist/esm/digi-info-card-multi.entry.js +1 -1
  1327. package/dist/esm/digi-info-card.entry.js +1 -1
  1328. package/dist/esm/digi-layout-columns.entry.js +1 -1
  1329. package/dist/esm/digi-link-button.entry.js +1 -1
  1330. package/dist/esm/{digi-icon-external-link-alt_2.entry.js → digi-link-external.entry.js} +3 -26
  1331. package/dist/esm/digi-link-internal.entry.js +2 -2
  1332. package/dist/esm/digi-list.entry.js +1 -1
  1333. package/dist/esm/digi-loader-skeleton.entry.js +3 -3
  1334. package/dist/esm/digi-loader-spinner.entry.js +1 -1
  1335. package/dist/esm/digi-media-figure.entry.js +1 -1
  1336. package/dist/esm/digi-navigation-breadcrumbs.entry.js +2 -2
  1337. package/dist/esm/digi-navigation-pagination.entry.js +9 -14
  1338. package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
  1339. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
  1340. package/dist/esm/digi-navigation-vertical-menu.entry.js +1 -1
  1341. package/dist/esm/digi-notification-alert.entry.js +6 -11
  1342. package/dist/esm/digi-notification-error-page.entry.js +22 -27
  1343. package/dist/esm/digi-progress-circle.entry.js +8 -8
  1344. package/dist/esm/digi-progress-indicator.entry.js +3 -3
  1345. package/dist/esm/digi-progress-list-item.entry.js +5 -5
  1346. package/dist/esm/digi-progress-list.entry.js +1 -1
  1347. package/dist/esm/digi-progressbar.entry.js +2 -2
  1348. package/dist/esm/digi-quote.entry.js +2 -2
  1349. package/dist/esm/digi-table.entry.js +1 -1
  1350. package/dist/esm/digi-tablist-panel.entry.js +2 -2
  1351. package/dist/esm/digi-tablist.entry.js +5 -5
  1352. package/dist/esm/digi-tag-media.entry.js +2 -2
  1353. package/dist/esm/digi-tag.entry.js +1 -1
  1354. package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
  1355. package/dist/esm/digi-tools-feedback-rating.entry.js +2 -2
  1356. package/dist/esm/digi-tools-feedback.entry.js +4 -9
  1357. package/dist/esm/digi-tools-theme-provider.entry.js +2 -2
  1358. package/dist/esm/digi-typography-heading-jumbo.entry.js +1 -1
  1359. package/dist/esm/digi-typography-meta.entry.js +1 -1
  1360. package/dist/esm/digi-typography-preamble.entry.js +1 -1
  1361. package/dist/esm/digi-typography-time.entry.js +1 -1
  1362. package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
  1363. package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
  1364. package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
  1365. package/dist/esm/digi-util-resize-observer.entry.js +1 -1
  1366. package/dist/esm/{form-input-search-variation.enum-f9d669f2.js → form-input-search-variation.enum-6d8dc10a.js} +8 -1
  1367. package/dist/esm/index-148a7577.js +8 -96
  1368. package/dist/esm/index.js +3 -8
  1369. package/{components/p-a47b6b5c.js → dist/esm/linear-78b9219d.js} +1 -1
  1370. package/dist/esm/loader.js +1 -1
  1371. package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-c85d7857.js} +34 -1
  1372. package/dist/types/components/_chart/bar-chart/bar-chart.d.ts +58 -41
  1373. package/dist/types/components/_chart/chart-line/chart-line.d.ts +1 -1
  1374. package/dist/types/components/_chart/interfaces/bar-chart-data.interface.d.ts +28 -0
  1375. package/dist/types/components/_chart/{chart-line/chart-line-series.interface.d.ts → interfaces/chart-data-series.interface.d.ts} +1 -1
  1376. package/dist/types/components/_chart/{chart-line/chart-line-data.interface.d.ts → interfaces/line-chart-data.interface.d.ts} +2 -2
  1377. package/dist/types/components/_header/header/header.d.ts +0 -20
  1378. package/dist/types/components/_logo/logo/logo.d.ts +1 -16
  1379. package/dist/types/components/_logo/title-logo/title-logo.d.ts +0 -1
  1380. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +0 -1
  1381. package/dist/types/components.d.ts +10 -70
  1382. package/dist/types/enums.d.ts +0 -1
  1383. package/dist/types/interfaces.d.ts +2 -2
  1384. package/hydrate/index.js +1355 -1321
  1385. package/hydrate/index.mjs +1355 -1321
  1386. package/package.json +2 -4
  1387. package/components/p-2ac136a0.js +0 -154
  1388. package/components/p-9dd1da8c.js +0 -177
  1389. package/components/p-b57677c1.js +0 -66
  1390. package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
  1391. package/dist/cjs/button-type.enum-406723db.js +0 -8
  1392. package/dist/cjs/digi-button_2.cjs.entry.js +0 -262
  1393. package/dist/cjs/digi-footer-card.cjs.entry.js +0 -29
  1394. package/dist/cjs/digi-footer.cjs.entry.js +0 -78
  1395. package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
  1396. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
  1397. package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -232
  1398. package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
  1399. package/dist/cjs/digi-header.cjs.entry.js +0 -148
  1400. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +0 -30
  1401. package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
  1402. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
  1403. package/dist/cjs/digi-icon-envelope.cjs.entry.js +0 -30
  1404. package/dist/cjs/digi-icon-globe.cjs.entry.js +0 -30
  1405. package/dist/cjs/digi-icon-sign.cjs.entry.js +0 -30
  1406. package/dist/cjs/digi-icon-x.cjs.entry.js +0 -30
  1407. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  1408. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  1409. package/dist/cjs/digi-logo.cjs.entry.js +0 -69
  1410. package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
  1411. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -30
  1412. package/dist/cjs/digi-title-logo.cjs.entry.js +0 -135
  1413. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  1414. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
  1415. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
  1416. package/dist/cjs/footer-card-variation.enum-99555edc.js +0 -8
  1417. package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
  1418. package/dist/cjs/logo-variation.enum-607fadb4.js +0 -13
  1419. package/dist/collection/components/_logo/logo/logo-variation.enum.js +0 -5
  1420. package/dist/digi-arbetsformedlingen/p-0501a287.entry.js +0 -1
  1421. package/dist/digi-arbetsformedlingen/p-19c30198.entry.js +0 -1
  1422. package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +0 -1
  1423. package/dist/digi-arbetsformedlingen/p-260620fe.entry.js +0 -1
  1424. package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
  1425. package/dist/digi-arbetsformedlingen/p-286973f2.entry.js +0 -1
  1426. package/dist/digi-arbetsformedlingen/p-290d1746.js +0 -1
  1427. package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
  1428. package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +0 -1
  1429. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  1430. package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
  1431. package/dist/digi-arbetsformedlingen/p-443e9415.entry.js +0 -1
  1432. package/dist/digi-arbetsformedlingen/p-46ec7e56.entry.js +0 -1
  1433. package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
  1434. package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
  1435. package/dist/digi-arbetsformedlingen/p-5bed47db.entry.js +0 -1
  1436. package/dist/digi-arbetsformedlingen/p-5eba5ec4.entry.js +0 -1
  1437. package/dist/digi-arbetsformedlingen/p-61385dc4.entry.js +0 -1
  1438. package/dist/digi-arbetsformedlingen/p-618e6fb0.entry.js +0 -1
  1439. package/dist/digi-arbetsformedlingen/p-6fa23e38.entry.js +0 -1
  1440. package/dist/digi-arbetsformedlingen/p-6fdaec07.entry.js +0 -1
  1441. package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +0 -1
  1442. package/dist/digi-arbetsformedlingen/p-75309c9a.entry.js +0 -1
  1443. package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
  1444. package/dist/digi-arbetsformedlingen/p-826ad49e.entry.js +0 -1
  1445. package/dist/digi-arbetsformedlingen/p-82a89ca1.entry.js +0 -1
  1446. package/dist/digi-arbetsformedlingen/p-84719680.entry.js +0 -1
  1447. package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
  1448. package/dist/digi-arbetsformedlingen/p-8e47ac34.entry.js +0 -1
  1449. package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
  1450. package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
  1451. package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +0 -1
  1452. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  1453. package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +0 -1
  1454. package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +0 -1
  1455. package/dist/digi-arbetsformedlingen/p-bc0ca702.entry.js +0 -1
  1456. package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
  1457. package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +0 -1
  1458. package/dist/digi-arbetsformedlingen/p-cd50f570.entry.js +0 -1
  1459. package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
  1460. package/dist/digi-arbetsformedlingen/p-d4145a3e.entry.js +0 -1
  1461. package/dist/digi-arbetsformedlingen/p-dc9b6144.entry.js +0 -1
  1462. package/dist/digi-arbetsformedlingen/p-de625253.entry.js +0 -1
  1463. package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +0 -1
  1464. package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +0 -1
  1465. package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
  1466. package/dist/digi-arbetsformedlingen/p-e844d4cc.entry.js +0 -1
  1467. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  1468. package/dist/digi-arbetsformedlingen/p-eada91bf.entry.js +0 -1
  1469. package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
  1470. package/dist/digi-arbetsformedlingen/p-ee88e3f1.js +0 -1
  1471. package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
  1472. package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
  1473. package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
  1474. package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +0 -1
  1475. package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
  1476. package/dist/esm/button-type.enum-5250ae0b.js +0 -8
  1477. package/dist/esm/digi-button_2.entry.js +0 -257
  1478. package/dist/esm/digi-footer-card.entry.js +0 -25
  1479. package/dist/esm/digi-footer.entry.js +0 -74
  1480. package/dist/esm/digi-header-avatar.entry.js +0 -110
  1481. package/dist/esm/digi-header-navigation-item.entry.js +0 -23
  1482. package/dist/esm/digi-header-navigation.entry.js +0 -228
  1483. package/dist/esm/digi-header-notification.entry.js +0 -19
  1484. package/dist/esm/digi-header.entry.js +0 -144
  1485. package/dist/esm/digi-icon-accessibility-universal.entry.js +0 -26
  1486. package/dist/esm/digi-icon-bars.entry.js +0 -26
  1487. package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
  1488. package/dist/esm/digi-icon-envelope.entry.js +0 -26
  1489. package/dist/esm/digi-icon-globe.entry.js +0 -26
  1490. package/dist/esm/digi-icon-sign.entry.js +0 -26
  1491. package/dist/esm/digi-icon-x.entry.js +0 -26
  1492. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  1493. package/dist/esm/digi-link.entry.js +0 -71
  1494. package/dist/esm/digi-logo.entry.js +0 -65
  1495. package/dist/esm/digi-media-image_2.entry.js +0 -162
  1496. package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -26
  1497. package/dist/esm/digi-title-logo.entry.js +0 -131
  1498. package/dist/esm/digi-typography.entry.js +0 -22
  1499. package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
  1500. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  1501. package/dist/esm/footer-card-variation.enum-cc732148.js +0 -8
  1502. package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
  1503. package/dist/esm/logo-variation.enum-5b68b79f.js +0 -13
  1504. package/dist/types/components/_logo/logo/logo-variation.enum.d.ts +0 -4
  1505. /package/dist/collection/components/_chart/{chart-line/chart-line-data.interface.js → interfaces/bar-chart-data.interface.js} +0 -0
  1506. /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, p as polyInOut, c as interpolate, m as max, d as min, e as linear$1 } from './linear-0246aaea.js';
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:4px 4px 0.8125rem 0}.sc-digi-bar-chart-h .chartTooltip.sc-digi-bar-chart{box-sizing:border-box;position:absolute;background-color:rgba(250, 250, 250, 0.98);color:black;padding:5px 10px;padding-right:5px;border-radius:4px;display:flex;flex-direction:row;align-items:flex-start;box-shadow:rgba(60, 64, 67, 0.4) 0px 1px 2px 0px, rgba(60, 64, 67, 0.2) 0px 2px 6px 2px;font-size:0.875rem;display:none}.sc-digi-bar-chart-h .close.sc-digi-bar-chart{--digi--icon--color:black;cursor:pointer;margin-top:-5px}.sc-digi-bar-chart-h .legend.sc-digi-bar-chart::-webkit-scrollbar,.sc-digi-bar-chart-h .table.sc-digi-bar-chart::-webkit-scrollbar{height:10px;width:10px}.sc-digi-bar-chart-h .legend.sc-digi-bar-chart::-webkit-scrollbar-track,.sc-digi-bar-chart-h .table.sc-digi-bar-chart::-webkit-scrollbar-track{background:whitesmoke;border-radius:4px}.sc-digi-bar-chart-h .legend.sc-digi-bar-chart::-webkit-scrollbar-thumb,.sc-digi-bar-chart-h .table.sc-digi-bar-chart::-webkit-scrollbar-thumb{background-color:lightgray;border-radius:4px;border:0}.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:scroll;height:fit-content;border-radius:4px;padding:0.25rem;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}";
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._loading = false;
95
- this._placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
96
- this._dims = {};
97
- this._margin = {
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._tickWidth = 1;
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._loading)
121
+ if (this.loading)
117
122
  return this.loadingResize();
118
123
  this.resize();
119
124
  });
120
125
  });
121
- // Observer for watching size changes when in table mode
122
- this.tableObserver = new ResizeObserver((entries) => {
123
- entries.forEach(() => {
124
- select(this._legendDiv).style('width', this._dims.width + 'px');
125
- this.resizeTable();
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.setMargins(true);
132
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
133
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
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._yScale.range([
143
- this._margin.top,
144
- this._dims.height - this._margin.bottom
217
+ ? this.yScale.range([
218
+ this.margin.top,
219
+ this.dims.height - this.margin.bottom
145
220
  ])
146
- : this._yScale.range([
147
- this._dims.height - this._margin.bottom,
148
- this._margin.top
221
+ : this.yScale.range([
222
+ this.dims.height - this.margin.bottom,
223
+ this.margin.top
149
224
  ]);
150
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
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._xScale.range([
228
+ this.xScale.range([
154
229
  0,
155
- this._dims.width - this._margin.right - this._margin.left
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._yAxisHandle
260
+ this.yAxisHandle
170
261
  .selectAll('text')
171
262
  .style('cursor', 'pointer')
172
263
  .on('click', this.openTooltip)
173
- .on('mouseenter', this.hover)
174
- .on('mouseleave', this.hoverOut);
264
+ .on('mouseenter', this.highlightBarGroup)
265
+ .on('mouseleave', this.unHighlightBarGroup);
175
266
  }
176
267
  else {
177
- this._xAxisHandle
268
+ this.xAxisHandle
178
269
  .selectAll('text')
179
270
  .style('cursor', 'pointer')
180
271
  .on('click', this.openTooltip)
181
- .on('mouseenter', this.hover)
182
- .on('mouseleave', this.hoverOut);
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._yScale = band(empty
280
+ this.yScale = band(empty
190
281
  ? ['0', '1', '2', '3', '4', '5', '6', '7']
191
- : this._chartData.data.xValueNames, [this._margin.top, this._dims.height - this._margin.bottom])
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._yAxis = axisLeft(this._yScale);
285
+ this.yAxis = axisLeft(this.yScale);
195
286
  }
196
287
  else {
197
- this._yScale = linear()
198
- .domain(empty ? [0, 10] : [this._minVal, this._maxVal])
199
- .nice(((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
200
- ? (_c = this._chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
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._yScale.range([
203
- this._dims.height - this._margin.bottom,
204
- this._margin.top
293
+ this.yScale.range([
294
+ this.dims.height - this.margin.bottom,
295
+ this.margin.top
205
296
  ]);
206
- this._yAxis = axisLeft(this._yScale);
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._xScale = linear()
214
- .domain(empty ? [0, 10] : [this._minVal, this._maxVal])
304
+ this.xScale = linear()
305
+ .domain(empty ? [0, 10] : [this.minVal, this.maxVal])
215
306
  .nice(3);
216
- this._margin.right =
217
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
307
+ this.margin.right =
308
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
218
309
  this.yTickSize +
219
310
  this.tickPadding;
220
- this._xScale.range([
311
+ this.xScale.range([
221
312
  0,
222
- this._dims.width - this._margin.right - this._margin.left
313
+ this.dims.width - this.margin.right - this.margin.left
223
314
  ]);
224
315
  // Initializing actual axis
225
- this._xAxis = axisBottom(this._xScale);
226
- this._tickWidth = this.getLargestText(this._xScale.ticks().map((tick) => tick.toLocaleString()));
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._xScale = band()
231
- .domain(empty ? this._placeholderTicks : this._chartData.data.xValueNames)
232
- .range([0, this._dims.width - this._margin.right - this._margin.left])
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._xAxis = axisBottom(this._xScale);
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._namedTickSizes = [];
242
- this._ellipsisSize = this.getTextSize('...');
243
- if (this._chartData && this._chartData.data) {
244
- for (let i = 0; i < this._chartData.data.xValueNames.length; i++) {
245
- this._namedTickSizes.push(Math.ceil(this.getTextSize(this._chartData.data.xValueNames[i])));
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.updateBars = (fromLoading) => {
250
- this._barChartContainer
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.reshapeData)
253
- .join((enter) => {
254
- var _a, _b;
255
- const tempSelection = enter
256
- .append('g')
257
- .attr('class', 'barGroup')
258
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'));
259
- tempSelection
260
- .append('rect')
261
- .attr('class', 'bar')
262
- .style('cursor', 'pointer')
263
- .attr('ry', 4)
264
- .attr('rx', 4)
265
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
266
- ? this._yScale(d.key)
267
- : this._dims.height - this._margin.bottom)
268
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
269
- ? 2
270
- : this._xScale(d.key))
271
- .attr('width', () => this.afVariation === BarChartVariation.Horizontal
272
- ? 0
273
- : this._xScale.bandwidth())
274
- .attr('height', () => this.afVariation === BarChartVariation.Horizontal
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._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
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._textSelection
375
+ this.textSelection
469
376
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
470
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
471
- : this._yScale(d.value))
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._xScale(d.value)
474
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
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._xScale(d.value) < d.len + this.tickPadding * 2
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._xScale(d.value) < d.len + this.tickPadding * 2
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._xScale(d.value) < d.len + this.tickPadding * 2
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._loading) {
500
- this._placeholderTicks.forEach((key) => {
501
- toReturn.push({
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: '1'
413
+ len: 0
505
414
  });
415
+ toReturn.push(tick);
506
416
  });
507
417
  return toReturn;
508
418
  }
509
- this._chartData.data.xValueNames.forEach((key, index) => {
510
- toReturn.push({
511
- key: key,
512
- value: this._chartData.data.series[0].yValues[index],
513
- len: this.getTextSize(this._chartData.data.series[0].yValues[index].toLocaleString())
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._barSelection
520
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
521
- ? this._yScale(d.key)
522
- : this._yScale(d.value))
523
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
524
- ? 2
525
- : this._xScale(d.key))
526
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
527
- ? this._xScale(d.value)
528
- : this._xScale.bandwidth())
529
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
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
- // Resize table
534
- this.resizeTable = () => {
535
- this.setDims();
536
- this.setTableDimensions();
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._titleDiv).node().getBoundingClientRect(), tempLegend = select(this._legendDiv).node().getBoundingClientRect();
542
- const prevHeight = this._dims.height;
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._dims = select(this._chartDiv).node().getBoundingClientRect();
545
- this._dims.height =
546
- this._maxHeight - tempLegend.height - tempTitle.height - 1.75 * this._rem;
547
- return prevHeight != this._dims.height;
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._pixelSize =
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._chartData) === null || _a === void 0 ? void 0 : _a.data) &&
560
- this.getLargestText(this._chartData.data.xValueNames)
561
- ? this.getLargestText(this._chartData.data.xValueNames)
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._margin.left = left;
524
+ this.margin.left = left;
525
+ this.margin.bottom = this.pixelSize + this.tickPadding + this.xTickSize;
564
526
  }
565
- else
566
- this._margin.left = this.getLargestText(fromLoading
527
+ else {
528
+ this.margin.left = this.getLargestText(fromLoading
567
529
  ? ['0', '10']
568
530
  : [
569
- this._minVal ? this._tempScale[0].toLocaleString() : '0',
570
- this._maxVal ? this._tempScale[1].toLocaleString() : '10'
531
+ this.minVal ? this.tempScale[0].toLocaleString() : '0',
532
+ this.maxVal ? this.tempScale[1].toLocaleString() : '10'
571
533
  ]);
572
- if (this._margin.left > this._dims.width / 4) {
573
- this._margin.left = Math.floor(this._dims.width / 4);
574
- this._margin.ellipsis = true;
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._margin.ellipsis = false;
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._yAxisHandle
547
+ this.yAxisHandle
585
548
  .style('font-size', this.fontSize)
586
549
  .style('font-family', 'Open Sans')
587
- .call(this._yAxis
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._margin.ellipsis)
555
+ if (!this.margin.ellipsis)
593
556
  return d.toLocaleString();
594
557
  // Adding ellipsis to text
595
- const size = this._namedTickSizes[i] + this.tickPadding + this.yTickSize;
596
- const mSize = this._margin.left;
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._ellipsisSize)) * d.length), 3)) + '...');
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._ellipsisSize)) * d.length) - adjustment, 3))
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._yAxisHandle
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._yAxis
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._margin.ellipsis)
584
+ if (!this.margin.ellipsis)
622
585
  return d;
623
586
  // Adding ellipsis to text
624
- const size = this._namedTickSizes[i] + this.tickPadding + this.yTickSize;
625
- const mSize = this._margin.left;
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._ellipsisSize)) * d.length), 3))
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._ellipsisSize)) * d.length) - adjustment, 3))
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._chartData.data.xValues.length /
645
- ((this._dims.width - this._margin.left - this._margin.right) / 90 - 1));
646
- if (Math.floor(this._chartData.data.xValues.length / nTh) < 4) {
647
- nTh = Math.round(this._chartData.data.xValues.length / 4);
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._dims.width - this._margin.left - this._margin.right) /
650
- Math.floor(this._chartData.data.xValues.length / nTh + 1);
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._xAxisHandle
615
+ this.xAxisHandle
653
616
  .style('font-size', this.fontSize)
654
617
  .style('font-family', 'Open Sans')
655
- .call(this._xAxis
656
- .tickValues(this._xScale.domain().filter((...[, i]) => {
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._namedTickSizes[index] < allowedWidth)
631
+ if (this.namedTickSizes[index] < allowedWidth)
669
632
  return d;
670
633
  return (d.slice(0, Math.max(Math.floor((allowedWidth /
671
- (this._namedTickSizes[index] +
672
- this._ellipsisSize +
634
+ (this.namedTickSizes[index] +
635
+ this.ellipsisSize +
673
636
  5)) *
674
637
  d.length), 3)) + '...');
675
638
  }));
676
639
  }
677
640
  else {
678
- this._xAxisHandle
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._xAxis
684
- .tickValues(this._xScale.domain().filter((...[, i]) => {
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._namedTickSizes[index] < allowedWidth)
659
+ if (this.namedTickSizes[index] < allowedWidth)
697
660
  return d;
698
661
  return (d.slice(0, Math.max(Math.floor((allowedWidth /
699
- (this._namedTickSizes[index] +
700
- this._ellipsisSize +
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._chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
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._xAxisHandle.attr('display', 'none')
713
- : this._yAxisHandle.attr('display', 'none');
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._xAxisHandle.attr('display', null);
719
- toCall = this._xAxis;
720
- tickSize = -(this._dims.height - this._margin.top - this._margin.bottom);
721
- handle = this._xAxisHandle;
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._yAxisHandle.attr('display', null);
725
- toCall = this._yAxis;
726
- tickSize = -(this._dims.width - this._margin.left - this._margin.right);
727
- handle = this._yAxisHandle;
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._dims.width - this._margin.left - this._margin.right) /
731
- (this._tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
732
- ? this._xScale.ticks().length
733
- : this._yScale.ticks().length);
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._yAxisHandle.select('.domain').attr('display', 'none');
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('hover')
732
+ .transition('color')
770
733
  .duration(20)
771
- .attr('fill', event.target.tagName === 'rect'
772
- ? '#4C4C8B'
773
- : 'var(--digi--color--text--link-hover)');
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('hover')
751
+ .transition('color')
779
752
  .duration(this.defaultDuration)
780
- .attr('fill', event.target.tagName === 'rect' ? '#00005a' : '#333333');
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._tooltipData = this._barChartContainer
786
- .select(`#barGroup${d.replace(/[^A-Z0-9]+/gi, '_')}`)
758
+ this.tooltipData = this.barChartContainer
759
+ .select(`#${this.barGroupID(d)}`)
787
760
  .datum();
788
761
  }
789
762
  else
790
- this._tooltipData = d;
791
- const tooltipBody = this._tooltip.select('.tooltipBody');
792
- tooltipBody
793
- .select(this._tooltipHeading)
794
- .style('margin', '0 0.75rem 0 0 ')
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._tooltipData])
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
- .html((d) => d.value.toLocaleString());
807
- this._tooltip.style('display', 'flex');
808
- this.positionTooltip(this._tooltipData);
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._tooltip.style('display', 'none');
785
+ this.tooltip.style('display', 'none');
812
786
  };
813
787
  // Positions tooltip in horizontal mode
814
788
  this.positionTooltip = (data) => {
815
- const width = this._tooltip.node().getBoundingClientRect().width;
816
- const height = this._tooltip.node().getBoundingClientRect().height + 8;
817
- const diff = this._xScale(data.value) / 2 - width / 2;
818
- if (this.afVariation === BarChartVariation.Horizontal) {
819
- this._tooltip
820
- .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 )`)
821
- .style('max-width', this._xScale.range()[1] + 'px');
822
- this._tooltip
823
- .select('digi-icon-caret-up')
824
- .style('position', 'absolute')
825
- .style('--digi--icon--color', 'white')
826
- .style('top', '-11px')
827
- .style('left', '0')
828
- .style('transform', `translate(${diff > 0 ? width / 2 - 10 : this._xScale(data.value) / 2}px,0)`);
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._tooltip
832
- .style('transform', `translate(${this._margin.left + this.tickPadding + this._xScale(data.key) + this._xScale.bandwidth() / 2 - width / 2}px, ${this._yScale(data.value) - height}px )`)
833
- .style('max-width', this._xScale.range()[1] + 'px');
834
- this._tooltip
835
- .select('digi-icon-caret-down')
836
- .style('position', 'absolute')
837
- .style('--digi--icon--color', 'white')
838
- .style('left', '0')
839
- .style('bottom', '-11px')
840
- .style('transform', `translate(${width / 2 - 6}px,0)`);
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._tickWidth = this.getLargestText(this._xScale.ticks().map((tick) => tick.toLocaleString()));
856
+ this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
848
857
  this.tickSizes();
849
- this._barChartContainer.selectAll('.barGroup').data(this.reshapeData);
850
- if ((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
851
- this._textSelection.remove();
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.tableObserver.observe(this._chartDiv);
859
- this._status.innerHTML = '<p>Visas som tabell</p>';
860
- select(this._host).select('.tableButton').style('display', 'none');
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._svg
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._svg.remove();
871
- this._legendDiv.style['display'] = 'none';
872
- this._tableDiv.style['display'] = 'block';
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._tableDiv)
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._legendDiv)
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.tableObserver.disconnect();
890
- this._status.innerHTML = '<p>Visas som diagram</p>';
891
- select(this._host).select('.tableButton').style('display', null);
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._tableDiv);
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._svg
915
+ this.svg
904
916
  .attr('opacity', 0)
905
917
  .transition()
906
- .duration(150)
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 != 'string')
917
- this._chartData = data;
918
- else
919
- this._chartData = JSON.parse(data);
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._numberFormat = {
925
- 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,
926
- 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)
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._chartDiv).select('svg').remove();
931
- this._maxHeight = (_g = select(this._host)
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._chartDiv);
962
+ this.barChartObserver.observe(this.chartDiv);
935
963
  // Getting rem-size
936
- this._rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
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._svg = select(this._chartDiv)
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._chartData && this._chartData.title
946
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
947
- : 'Stapeldiagram');
948
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
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._tooltip = select('#' + this.afId);
953
- this._tooltip.select('.close').on('click', this.closeTooltip);
954
- this._tooltipHeading =
955
- 'h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1); // increment heading level by one
956
- // Add heading placeholder for heading
957
- this._tooltip
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._chartDiv).select('svg').remove();
967
- this._maxHeight = select(this._host)
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._chartDiv);
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._svg = select(this._chartDiv)
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._chartData && this._chartData.title
982
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
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._titleDiv)
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._loading = true;
1072
+ this.loading = true;
995
1073
  // close potentially open tooltip
996
- if (this._tooltip)
1074
+ if (this.tooltip)
997
1075
  this.closeTooltip();
998
- select(this._host).select('.tableButton').style('display', 'none');
1076
+ select(this.host).select('.tableButton').style('display', 'none');
999
1077
  const newHeight = this.setDims();
1000
1078
  this.transitionTitle();
1001
- this._xAxisHandle.selectAll('.tick').remove();
1002
- this._xAxisHandle.select('path').remove();
1003
- this._svg
1079
+ this.xAxisHandle.selectAll('.tick').remove();
1080
+ this.xAxisHandle.select('path').remove();
1081
+ this.svg
1004
1082
  .transition()
1005
1083
  .duration(400)
1006
- .attr('width', this._dims.width)
1007
- .attr('height', this._dims.height)
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._titleDiv)
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._barChartContainer
1092
+ this.barChartContainer
1017
1093
  .transition('position')
1018
1094
  .duration(this.defaultDuration)
1019
1095
  .ease(polyInOut)
1020
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
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._yScale.range([
1026
- this._margin.top,
1027
- this._dims.height - this._margin.bottom
1101
+ ? this.yScale.range([
1102
+ this.margin.top,
1103
+ this.dims.height - this.margin.bottom
1028
1104
  ])
1029
- : this._yScale.range([
1030
- this._dims.height - this._margin.bottom,
1031
- this._margin.top
1105
+ : this.yScale.range([
1106
+ this.dims.height - this.margin.bottom,
1107
+ this.margin.top
1032
1108
  ]);
1033
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1109
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1034
1110
  }
1035
1111
  const animateBars = () => {
1036
- this._barChartContainer.selectAll('.barGroup').remove();
1037
- this._barSelection = this._barChartContainer
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.reshapeData)
1118
+ .data(this.mappedData)
1040
1119
  .join('g')
1041
1120
  .attr('class', 'barGroup')
1042
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'))
1043
- .append('rect')
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._yScale(d.key)
1049
- : this._dims.height - this._margin.bottom)
1050
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
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', (d) => this.afVariation === BarChartVariation.Horizontal
1056
- ? this._xScale(d.value)
1057
- : this._xScale.bandwidth())
1134
+ .attr('width', this.widthFunction)
1058
1135
  .attr('height', () => 0)
1059
- //.attr('height', (d: any) => this.afVariation === BarChartVariation.Horizontal ? this._yScale.bandwidth() : (this._dims.height - this._margin.bottom) - this._yScale(d.value))
1060
- .attr('fill', 'gray')
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', (d) => this.afVariation === BarChartVariation.Horizontal
1065
- ? this._yScale(d.key)
1066
- : this._yScale(d.value))
1067
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
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._yScale(d.key)
1077
- : this._dims.height - this._margin.bottom)
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._placeholderTicks.length - 1)
1153
+ if (i === this.placeholderTicks.length - 1)
1081
1154
  animateBars();
1082
1155
  });
1083
1156
  };
1084
1157
  const flattenBars = () => {
1085
- this._barChartContainer
1086
- .selectAll('rect')
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._yScale(d.key)
1092
- : this._dims.height - this._margin.bottom)
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._chartDiv);
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._titleDiv).style('height');
1111
- select(this._titleDiv)
1112
- .style('height', this._prevHeight)
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._titleDiv).style('height', null));
1189
+ .on('end', () => select(this.titleDiv).style('height', null));
1117
1190
  }
1118
1191
  initYAxis(empty) {
1119
1192
  this.setYScale(empty);
1120
- this._barChartContainer = this._svg
1193
+ this.barChartContainer = this.svg
1121
1194
  .append('g')
1122
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1123
- this._yAxisHandle = this._barChartContainer.append('g');
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._chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
1136
- ? max((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
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._chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
1139
- ? min([0, min((_d = this._chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
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._maxVal = max$1;
1142
- this._minVal = min$1;
1143
- this._tempScale = linear()
1144
- .domain([this._minVal, this._maxVal])
1145
- .nice(((_f = (_e = this._chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
1146
- ? (_g = this._chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
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._xAxisHandle = this._barChartContainer
1226
+ this.xAxisHandle = this.barChartContainer
1154
1227
  .append('g')
1155
- .attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
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._xAxisHandle.select('.tick').select('line').remove();
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._barSelection = this._barChartContainer
1244
+ this.barSelection = this.barChartContainer
1245
+ .append('g')
1246
+ .attr('class', 'interactiveElements')
1247
+ .style('isolation', 'isolate')
1172
1248
  .selectAll('barGroup')
1173
- .data(this.reshapeData)
1249
+ .data(this.mappedData)
1174
1250
  .join('g')
1175
1251
  .attr('class', 'barGroup')
1176
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'))
1177
- .append('rect')
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
- this._barSelection
1181
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
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', (d) => this.afVariation === BarChartVariation.Horizontal
1190
- ? this._xScale(d.value)
1191
- : this._xScale.bandwidth())
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
- this._textSelection = this._barChartContainer
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._textSelection
1205
- .text((d) => d.value.toLocaleString(undefined, this._numberFormat))
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._yScale(d.key) + this._yScale.bandwidth() / 2
1212
- : this._yScale(d.value))
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._xScale(d)
1215
- : this._xScale(d.key) + this._xScale.bandwidth())
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._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels) ? null : 'none'; });
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._numberFormat = {
1233
- 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,
1234
- 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)
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._tooltip)
1316
+ if (this.tooltip)
1239
1317
  this.closeTooltip();
1240
1318
  // Check whether we are in table mode or not
1241
- if (this._tableDiv.style['display'] == 'block') {
1242
- if (!this._chartData.title) {
1243
- select(this._titleDiv)
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._loading) {
1256
- select(this._host).select('.tableButton').style('display', null);
1257
- select(this._legendDiv).style('display', null);
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._svg
1266
- .transition()
1267
- .duration(400)
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._barChartContainer
1350
+ this.barChartContainer
1276
1351
  .transition('position')
1277
1352
  .duration(this.defaultDuration)
1278
1353
  .ease(polyInOut)
1279
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1280
- if (!this._loading)
1281
- this._barChartContainer.on('end', () => this.barChartObserver.observe(this._chartDiv));
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._yScale.range([
1287
- this._margin.top,
1288
- this._dims.height - this._margin.bottom
1361
+ ? this.yScale.range([
1362
+ this.margin.top,
1363
+ this.dims.height - this.margin.bottom
1289
1364
  ])
1290
- : this._yScale.range([
1291
- this._dims.height - this._margin.bottom,
1292
- this._margin.top
1365
+ : this.yScale.range([
1366
+ this.dims.height - this.margin.bottom,
1367
+ this.margin.top
1293
1368
  ]);
1294
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
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._tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
1301
- ? this._xScale.ticks().map((tick) => tick.toLocaleString())
1302
- : this._yScale.ticks().map((tick) => tick.toLocaleString()));
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._loading) {
1305
- select(this._legendDiv)
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._margin.right =
1312
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
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._xScale.range([
1391
+ this.xScale.range([
1317
1392
  0,
1318
- this._dims.width - this._margin.right - this._margin.left
1393
+ this.dims.width - this.margin.right - this.margin.left
1319
1394
  ]);
1320
1395
  this.setNamedTicks(true);
1321
1396
  // Stop animation
1322
- this._barSelection.selectAll('.barGroup').on('end', null);
1323
- this._loading = false;
1324
- this._barSelection
1325
- .transition()
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._yScale(d.key)
1329
- : this._dims.height - this._margin.bottom)
1404
+ ? this.yScale(d.key)
1405
+ : this.dims.height - this.margin.bottom)
1330
1406
  .attr('height', () => 0)
1331
- .on('end', (...[, i]) => i === this._placeholderTicks.length - 1
1332
- ? this.updateBars(true)
1333
- : null);
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
- (_a = this._svg) === null || _a === void 0 ? void 0 : _a.attr('width', this._dims.width).attr('height', this._dims.height);
1349
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1350
- this._margin.right =
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._yScale.range([
1359
- this._margin.top,
1360
- this._dims.height - this._margin.bottom
1453
+ ? this.yScale.range([
1454
+ this.margin.top,
1455
+ this.dims.height - this.margin.bottom
1361
1456
  ])
1362
- : this._yScale.range([
1363
- this._dims.height - this._margin.bottom,
1364
- this._margin.top
1457
+ : this.yScale.range([
1458
+ this.dims.height - this.margin.bottom,
1459
+ this.margin.top
1365
1460
  ]);
1366
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
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._xScale.range([
1464
+ this.xScale.range([
1370
1465
  0,
1371
- this._dims.width - this._margin.right - this._margin.left
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._tooltipData)
1378
- this.positionTooltip(this._tooltipData);
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._chartData || Object.keys(this._chartData).length === 0) {
1396
- this._loading = true;
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._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
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._prevHeight = select(this._titleDiv).style('height');
1510
+ this.prevHeight = select(this.titleDiv).style('height');
1411
1511
  }
1412
1512
  componentDidUpdate() {
1413
- if (this._tableDiv.style['display'] != 'block' &&
1414
- Object.keys(this._chartData).length === 0) {
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
- return {
1424
- 'digi-bar-chart--vertical': this.afVariation == 'vertical',
1425
- 'digi-bar-chart--horizontal': this.afVariation == 'horizontal'
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._chartDiv).append('svg');
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._chartData
1546
+ // Setting table content from this.chartData
1447
1547
  setTableContent() {
1448
- this._tableDiv.innerHTML = `<digi-table af-size="small" af-variation="primary"> <table><caption>${this._chartData.title}</caption><thead><tr>${this.headings()}</tr></thead><tbody>${this.tableBody()}</tbody></table></digi-table>`;
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._tableDiv);
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._chartData.x}</th>`;
1460
- this._chartData.data.series.forEach((elem) => {
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._chartData && this._chartData.data) {
1469
- const loopable = this._chartData.data.xValueNames
1470
- ? this._chartData.data.xValueNames
1471
- : this._chartData.data.xValues;
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._chartData.data.series.forEach((serie) => {
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, _e;
1580
+ var _a, _b, _c, _d;
1484
1581
  // Setting header
1485
1582
  let heading = '';
1486
- if (this._chartData) {
1487
- if (!this._chartData.subTitle)
1488
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}>`;
1489
- else {
1490
- if (!this._chartData.infoText)
1491
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${this._chartData.subTitle}</p>`;
1492
- else
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: '7659fcc4817cdfb3f19f2bd11a41464c13b5e19e', ref: (el) => (this._host = el) }, h("div", { key: '063611cf8dbb2554904d972ed3fc1f89d714772e', class: "topWrapper", ref: (el) => (this._titleDiv = el) }, h("digi-typography", { key: 'ad58c43c2629e7b2b97e3ad1658646e5171b1531', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '2234460c0ffab8e7d251f099f4f2d38e1e5ebede', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.title) ? (_c = this._chartData) === null || _c === void 0 ? void 0 : _c.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: 'b82a89d578d997ab878d44a2928e5e31773bd34f', slot: "icon" }), "Visa tabell"), h("digi-button", { key: 'b5dc532f7655bd383d0dcf42f8851edbc81b448c', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_d = this._chartData) === null || _d === void 0 ? void 0 : _d.title) ? (_e = this._chartData) === null || _e === void 0 ? void 0 : _e.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: 'f868d9fd2c37c247e8abdd59cf2b9342ad120fef', slot: "icon" }), "Visa diagram"), h("div", { key: '6a0f7838d86a43b46d9a036ad935f50ebb2b523f', class: "scChartStatus", role: "status", ref: (el) => (this._status = el) })), h("div", { key: '5f37b9eaf1030cd1d5b1b0360cdaaa61f953b624', class: "chartTooltip", id: this.afId }, h("div", { key: 'a89608cb64620456a165ba4fb57db823870d2231', class: "tooltipBody" }), h("digi-icon-x", { key: 'e842c2b42f6bc7d6dfdad1d1b8a7acb9f8df5a1a', class: "close" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", null)) : (h("digi-icon-caret-down", null))), h("div", { key: 'f07154ab370a948016aa30a2547c4c9b25fae03b', ref: (el) => (this._chartDiv = el) }, " "), h("div", { key: '385151df18d373779257040d298bf8c108184500', class: "legend", ref: (el) => (this._legendDiv = el) }), h("div", { key: 'd5f07fc01a628aa2035a96d86621b6bab1e73f01', class: "table", ref: (el) => (this._tableDiv = el) }, ' ')));
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 {