@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,15 +1,15 @@
1
1
  import { p as proxyCustomElement, H, h, d as Host } from './p-a53686b3.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 './p-a47b6b5c.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 './p-f9a1a787.js';
3
3
  import { _ as _t } from './p-903a27d9.js';
4
4
  import { r as randomIdGenerator } from './p-ffe5c0e8.js';
5
5
  import { B as BarChartVariation } from './p-dcdffb3c.js';
6
6
  import { d as defineCustomElement$8 } from './p-e8fc33ed.js';
7
- import { d as defineCustomElement$7 } from './p-583fae30.js';
8
- import { d as defineCustomElement$6 } from './p-965a52d4.js';
9
- import { d as defineCustomElement$5 } from './p-13770550.js';
10
- import { d as defineCustomElement$4 } from './p-789cf870.js';
11
- import { d as defineCustomElement$3 } from './p-93899a9e.js';
12
- import { d as defineCustomElement$2 } from './p-ab9c3e15.js';
7
+ import { d as defineCustomElement$7 } from './p-01264cdd.js';
8
+ import { d as defineCustomElement$6 } from './p-36b65cd5.js';
9
+ import { d as defineCustomElement$5 } from './p-9e98bc1f.js';
10
+ import { d as defineCustomElement$4 } from './p-b18e3596.js';
11
+ import { d as defineCustomElement$3 } from './p-4b44f757.js';
12
+ import { d as defineCustomElement$2 } from './p-a247bdd0.js';
13
13
 
14
14
  function band() {
15
15
  var scale = ordinal().unknown(undefined),
@@ -91,7 +91,7 @@ function band() {
91
91
  return initRange.apply(rescale(), arguments);
92
92
  }
93
93
 
94
- const barChartCss = ".sc-digi-bar-chart-h .digi-bar-chart.sc-digi-bar-chart{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-bar-chart-h .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}";
94
+ const barChartCss = ".sc-digi-bar-chart-h{width:100%;display:flex;flex-direction:column;min-width:0}.sc-digi-bar-chart-h .digi-bar-chart.sc-digi-bar-chart{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-bar-chart-h .svgWrap.sc-digi-bar-chart{position:relative;display:flex;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}";
95
95
  const DigiBarChartStyle0 = barChartCss;
96
96
 
97
97
  const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
@@ -99,10 +99,14 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
99
99
  super();
100
100
  this.__registerHost();
101
101
  // States
102
- this._loading = false;
103
- this._placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
104
- this._dims = {};
105
- this._margin = {
102
+ this.loading = false;
103
+ this.placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
104
+ // Width of data at each tick, if we have two data series that have values att same tick, this will be 2 for example. defaults to 1;
105
+ this.dataWidth = 1;
106
+ // Bar gap when using multiple bars for each point, this will be doubled, since it is applied on both bars
107
+ this.barGap = 0;
108
+ this.dims = {};
109
+ this.margin = {
106
110
  bottom: 0,
107
111
  top: 6,
108
112
  left: 5,
@@ -113,376 +117,279 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
113
117
  this.yTickSize = 0;
114
118
  this.xTickSize = 5;
115
119
  // Width of the largets X-tick-value
116
- this._tickWidth = 1;
120
+ this.tickWidth = 1;
117
121
  // Transition
118
122
  this.defaultDuration = 400;
119
123
  // Text and formats
120
124
  this.fontSize = '0.875rem';
125
+ 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'];
121
126
  // Observer for watching size changes when in line chart mode
122
127
  this.barChartObserver = new ResizeObserver((entries) => {
123
128
  entries.forEach(() => {
124
- if (this._loading)
129
+ if (this.loading)
125
130
  return this.loadingResize();
126
131
  this.resize();
127
132
  });
128
133
  });
129
- // Observer for watching size changes when in table mode
130
- this.tableObserver = new ResizeObserver((entries) => {
131
- entries.forEach(() => {
132
- select(this._legendDiv).style('width', this._dims.width + 'px');
133
- this.resizeTable();
134
+ this.highlightBars = (serie) => {
135
+ this.barChartContainer.selectAll('.bar')
136
+ .attr('fill', (barData) => this.colorFunction(barData.serie))
137
+ .transition('color')
138
+ .duration(150)
139
+ .attr('fill', (barData) => {
140
+ var _a;
141
+ if (barData.serie === serie)
142
+ return this.colorFunction(barData.serie);
143
+ else {
144
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
145
+ return 'url(#prognosisInactive)';
146
+ }
147
+ return this.evalColorVar('--digi--color--background--secondary-accent');
148
+ }
134
149
  });
135
- });
150
+ select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
151
+ };
152
+ this.resetBarColor = () => {
153
+ this.barChartContainer.selectAll('.bar').transition('color').duration(150).attr('fill', (barData) => this.colorFunction(barData.serie));
154
+ select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', 1);
155
+ if (this.chartData.data.averageLine) {
156
+ this.barChartContainer.selectAll('.averageLine').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
157
+ .style('filter', 'contrast(0.5)');
158
+ /* this.barChartContainer.selectAll('.averageLineText').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
159
+ .style('filter', 'contrast(0.5)'); */
160
+ }
161
+ };
162
+ this.highlightAverageLine = (serie) => {
163
+ this.barChartContainer.selectAll('.bar')
164
+ .transition('color')
165
+ .duration(150)
166
+ .attr('fill', (barData) => {
167
+ var _a;
168
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
169
+ return 'url(#prognosisInactive)';
170
+ }
171
+ else
172
+ return this.evalColorVar('--digi--color--background--secondary-accent');
173
+ });
174
+ this.barChartContainer.selectAll('.averageLine').transition('avgLine')
175
+ .duration(150).style('mix-blend-mode', null).style('filter', null);
176
+ /* this.barChartContainer.selectAll('.averageLineText').transition('avgLineText')
177
+ .duration(150).style('mix-blend-mode', null).style('filter', null) */
178
+ select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
179
+ };
180
+ // Sets and resizespositions the average line
181
+ this.averageLine = () => {
182
+ if (!this.chartData.data.averageLine)
183
+ return;
184
+ const avLineGroup = this.barChartContainer.select('.interactiveElements').selectAll('.averageLineGroup').data([this.chartData.data.averageLine]).join('g').attr('class', 'averageLineGroup');
185
+ /* avLineGroup.selectAll('.averageLineText')
186
+ .data(d => [d])
187
+ .join('text')
188
+ .attr('class', 'averageLineText')
189
+ .text(d => d.text)
190
+ .attr('x', this.xScale.range()[0])
191
+ .attr('y', (d) => this.yScale(d.value))
192
+ .attr('dy', -2)
193
+ .attr('font-size', this.fontSize)
194
+ .attr('fill', 'var(--digi--color--infographic--lineart)')
195
+ .style('mix-blend-mode', 'plus-lighter')
196
+ .style('filter', 'contrast(0.5)'); */
197
+ avLineGroup.selectAll('.averageLine')
198
+ .data(d => [d.value])
199
+ .join('line')
200
+ .attr('class', 'averageLine')
201
+ .attr('x1', this.xScale.range()[0])
202
+ .attr('y1', (d) => this.yScale(d))
203
+ .attr('x2', this.xScale.range()[1])
204
+ .attr('y2', (d) => this.yScale(d))
205
+ .attr('stroke', 'var(--digi--color--infographic--lineart)')
206
+ .attr('stroke-width', 2)
207
+ .attr('stroke-dasharray', '12, 7')
208
+ .attr('stroke-linecap', 'round')
209
+ .style('mix-blend-mode', 'plus-lighter')
210
+ .style('filter', 'contrast(0.5)')
211
+ .style('pointer-events', 'none');
212
+ };
136
213
  // Resizing chart while loading
137
214
  this.loadingResize = () => {
138
215
  const newHeight = this.setDims();
139
- this.setMargins(true);
140
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
141
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
142
- this._margin.right =
143
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
216
+ this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
217
+ this.margin.right =
218
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
144
219
  this.yTickSize +
145
220
  this.tickPadding;
146
221
  // If there is a new height
147
222
  if (newHeight) {
148
223
  // Update y-axis with potentially new height (might want to do a check here)
149
224
  this.afVariation === BarChartVariation.Horizontal
150
- ? this._yScale.range([
151
- this._margin.top,
152
- this._dims.height - this._margin.bottom
225
+ ? this.yScale.range([
226
+ this.margin.top,
227
+ this.dims.height - this.margin.bottom
153
228
  ])
154
- : this._yScale.range([
155
- this._dims.height - this._margin.bottom,
156
- this._margin.top
229
+ : this.yScale.range([
230
+ this.dims.height - this.margin.bottom,
231
+ this.margin.top
157
232
  ]);
158
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
233
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
159
234
  }
160
235
  // Update x-axis with new width
161
- this._xScale.range([
236
+ this.xScale.range([
162
237
  0,
163
- this._dims.width - this._margin.right - this._margin.left
238
+ this.dims.width - this.margin.right - this.margin.left
164
239
  ]);
165
- this._barSelection
166
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
167
- ? 2
168
- : this._xScale(d.key))
169
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
170
- ? this._xScale(d.value)
171
- : this._xScale.bandwidth());
172
240
  this.setValueTicks();
241
+ this.adjustBarSize();
242
+ };
243
+ this.highlightBarGroup = (_event, datum) => {
244
+ if (typeof datum === 'string') {
245
+ const barGroupID = '#' + this.barGroupID(datum);
246
+ this.barChartContainer.select(barGroupID).selectAll('.bar').transition('color')
247
+ .duration(20)
248
+ .attr('fill', (d) => {
249
+ var _a;
250
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
251
+ return 'url(#prognosisHighlight)';
252
+ }
253
+ else
254
+ return this.adjustColor(this.colorFunction(d.serie), 50);
255
+ });
256
+ }
257
+ };
258
+ this.unHighlightBarGroup = () => {
259
+ this.barSelection.selectAll('.bar').transition('color')
260
+ .duration(100)
261
+ .attr('fill', (d) => {
262
+ return this.colorFunction(d.serie);
263
+ });
173
264
  };
174
265
  // Adding click listener for tool tip text
175
266
  this.setTickInteraction = () => {
176
267
  if (this.afVariation === BarChartVariation.Horizontal) {
177
- this._yAxisHandle
268
+ this.yAxisHandle
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
  else {
185
- this._xAxisHandle
276
+ this.xAxisHandle
186
277
  .selectAll('text')
187
278
  .style('cursor', 'pointer')
188
279
  .on('click', this.openTooltip)
189
- .on('mouseenter', this.hover)
190
- .on('mouseleave', this.hoverOut);
280
+ .on('mouseenter', this.highlightBarGroup)
281
+ .on('mouseleave', this.unHighlightBarGroup);
191
282
  }
192
283
  };
193
284
  // Setting Y-scale
194
285
  this.setYScale = (empty) => {
195
286
  var _a, _b, _c;
196
287
  if (this.afVariation == BarChartVariation.Horizontal) {
197
- this._yScale = band(empty
288
+ this.yScale = band(empty
198
289
  ? ['0', '1', '2', '3', '4', '5', '6', '7']
199
- : this._chartData.data.xValueNames, [this._margin.top, this._dims.height - this._margin.bottom])
290
+ : this.chartData.data.xValueNames, [this.margin.top, this.dims.height - this.margin.bottom])
200
291
  .paddingOuter(0.1)
201
292
  .paddingInner(0.1);
202
- this._yAxis = axisLeft(this._yScale);
293
+ this.yAxis = axisLeft(this.yScale);
203
294
  }
204
295
  else {
205
- this._yScale = linear()
206
- .domain(empty ? [0, 10] : [this._minVal, this._maxVal])
207
- .nice(((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
208
- ? (_c = this._chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
296
+ this.yScale = linear()
297
+ .domain(empty ? [0, 10] : [this.minVal, this.maxVal])
298
+ .nice(((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
299
+ ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
209
300
  : 3);
210
- this._yScale.range([
211
- this._dims.height - this._margin.bottom,
212
- this._margin.top
301
+ this.yScale.range([
302
+ this.dims.height - this.margin.bottom,
303
+ this.margin.top
213
304
  ]);
214
- this._yAxis = axisLeft(this._yScale);
305
+ this.yAxis = axisLeft(this.yScale);
215
306
  }
216
307
  };
217
308
  // Setting X-Scale
218
309
  this.setXScale = (empty) => {
219
310
  // Horizontal
220
311
  if (this.afVariation == BarChartVariation.Horizontal) {
221
- this._xScale = linear()
222
- .domain(empty ? [0, 10] : [this._minVal, this._maxVal])
312
+ this.xScale = linear()
313
+ .domain(empty ? [0, 10] : [this.minVal, this.maxVal])
223
314
  .nice(3);
224
- this._margin.right =
225
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
315
+ this.margin.right =
316
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
226
317
  this.yTickSize +
227
318
  this.tickPadding;
228
- this._xScale.range([
319
+ this.xScale.range([
229
320
  0,
230
- this._dims.width - this._margin.right - this._margin.left
321
+ this.dims.width - this.margin.right - this.margin.left
231
322
  ]);
232
323
  // Initializing actual axis
233
- this._xAxis = axisBottom(this._xScale);
234
- this._tickWidth = this.getLargestText(this._xScale.ticks().map((tick) => tick.toLocaleString()));
324
+ this.xAxis = axisBottom(this.xScale);
325
+ this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
235
326
  }
236
327
  else {
237
328
  // Vertical
238
- this._xScale = band()
239
- .domain(empty ? this._placeholderTicks : this._chartData.data.xValueNames)
240
- .range([0, this._dims.width - this._margin.right - this._margin.left])
329
+ this.xScale = band()
330
+ .domain(empty ? this.placeholderTicks : this.chartData.data.xValueNames)
331
+ .range([0, this.dims.width - this.margin.right - this.margin.left])
241
332
  .paddingOuter(0.1)
242
333
  .paddingInner(0.1);
243
- this._xAxis = axisBottom(this._xScale);
334
+ this.xAxis = axisBottom(this.xScale);
244
335
  }
245
336
  };
246
337
  // Stores all tick text sizes in an indexable array
247
338
  this.tickSizes = () => {
248
339
  // Initializing tick size array
249
- this._namedTickSizes = [];
250
- this._ellipsisSize = this.getTextSize('...');
251
- if (this._chartData && this._chartData.data) {
252
- for (let i = 0; i < this._chartData.data.xValueNames.length; i++) {
253
- this._namedTickSizes.push(Math.ceil(this.getTextSize(this._chartData.data.xValueNames[i])));
340
+ this.namedTickSizes = [];
341
+ this.ellipsisSize = this.getTextSize('...');
342
+ if (this.chartData && this.chartData.data) {
343
+ for (let i = 0; i < this.chartData.data.xValueNames.length; i++) {
344
+ this.namedTickSizes.push(Math.ceil(this.getTextSize(this.chartData.data.xValueNames[i])));
254
345
  }
255
346
  }
256
347
  };
257
- this.updateBars = (fromLoading) => {
258
- this._barChartContainer
348
+ this.barGroupID = (key) => {
349
+ return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
350
+ };
351
+ this.updateBars = () => {
352
+ this.barSelection = this.barChartContainer.select('.interactiveElements')
259
353
  .selectAll('.barGroup')
260
- .data(this.reshapeData)
261
- .join((enter) => {
262
- var _a, _b;
263
- const tempSelection = enter
264
- .append('g')
265
- .attr('class', 'barGroup')
266
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'));
267
- tempSelection
268
- .append('rect')
269
- .attr('class', 'bar')
270
- .style('cursor', 'pointer')
271
- .attr('ry', 4)
272
- .attr('rx', 4)
273
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
274
- ? this._yScale(d.key)
275
- : this._dims.height - this._margin.bottom)
276
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
277
- ? 2
278
- : this._xScale(d.key))
279
- .attr('width', () => this.afVariation === BarChartVariation.Horizontal
280
- ? 0
281
- : this._xScale.bandwidth())
282
- .attr('height', () => this.afVariation === BarChartVariation.Horizontal
283
- ? this._yScale.bandwidth()
284
- : 0)
285
- .on('mouseenter', this.hover)
286
- .on('mouseleave', this.hoverOut)
287
- .on('click', this.openTooltip)
288
- .transition()
289
- .duration(this.defaultDuration)
290
- .ease(polyInOut)
291
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
292
- ? this._xScale(d.value)
293
- : this._xScale.bandwidth())
294
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
295
- ? this._yScale(d.key)
296
- : this._yScale(d.value))
297
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
298
- ? this._yScale.bandwidth()
299
- : this._dims.height -
300
- this._margin.bottom -
301
- this._yScale(d.value))
302
- .attr('fill', '#00005a');
303
- if (!((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
304
- return tempSelection;
305
- tempSelection
306
- .append('text')
307
- .text((d) => d.value.toLocaleString())
308
- .attr('class', 'barText')
309
- .attr('font-size', this.fontSize)
310
- .attr('font-weight', '600')
311
- .attr('text-anchor', 'end')
312
- .style('pointer-events', 'none')
313
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
314
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
315
- : this._dims.height - this._margin.bottom)
316
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
317
- ? 2
318
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
319
- .transition()
320
- .duration(this.defaultDuration)
321
- .ease(polyInOut)
322
- .attr('font-size', this.fontSize)
323
- .attr('font-weight', '600')
324
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
325
- ? this._xScale(d.value)
326
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
327
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
328
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
329
- : this._yScale(d.value))
330
- .attr('text-anchor', (d) => {
331
- if (this.afVariation === BarChartVariation.Vertical)
332
- return 'middle';
333
- return this._xScale(d.value) < d.len + this.tickPadding * 2
334
- ? 'start'
335
- : 'end';
336
- })
337
- .attr('dx', (d) => {
338
- if (this.afVariation === BarChartVariation.Horizontal)
339
- return this._xScale(d.value) < d.len + this.tickPadding * 2
340
- ? this.tickPadding
341
- : -this.tickPadding;
342
- return 0;
343
- })
344
- .attr('fill', (d) => {
345
- if (this.afVariation === BarChartVariation.Vertical)
346
- return 'black';
347
- return this._xScale(d.value) < d.len + this.tickPadding * 2
348
- ? 'black'
349
- : 'white';
350
- })
351
- .attr('dy', () => this.afVariation == BarChartVariation.Horizontal
352
- ? '0.35em'
353
- : '-0.25em')
354
- .style('pointer-events', 'none')
355
- .attrTween('text', (d, i, nodelist) => {
356
- const oldnum = parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
357
- ? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
358
- : 0;
359
- const interpolatedValue = interpolate(oldnum, d.value);
360
- return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this._numberFormat));
361
- });
362
- return tempSelection;
363
- }, (update) => {
364
- // Update ids to bars
365
- update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'));
366
- // Mouse interaction to updated loading bars
367
- if (fromLoading) {
368
- update
369
- .select('rect')
370
- .on('mouseenter', this.hover)
371
- .on('mouseleave', this.hoverOut)
372
- .on('click', this.openTooltip)
373
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
374
- ? 2
375
- : this._xScale(d.key))
376
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
377
- ? this._yScale(d.key)
378
- : this._dims.height - this._margin.bottom)
379
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
380
- ? this._xScale(d.value)
381
- : this._xScale.bandwidth())
382
- .attr('height', () => this.afVariation === BarChartVariation.Horizontal
383
- ? this._yScale.bandwidth()
384
- : 0)
385
- .attr('fill', '#00005a')
386
- .transition()
387
- .duration(this.defaultDuration)
388
- .ease(polyInOut)
389
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
390
- ? this._yScale(d.key)
391
- : this._yScale(d.value))
392
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
393
- ? this._yScale.bandwidth()
394
- : this._dims.height -
395
- this._margin.bottom -
396
- this._yScale(d.value))
397
- .on('end', () => this.barChartObserver.observe(this._chartDiv)); // Reset barchartObserver
398
- }
399
- else {
400
- update
401
- .select('rect')
402
- .transition()
403
- .duration(this.defaultDuration)
404
- .ease(polyInOut)
405
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
406
- ? this._yScale(d.key)
407
- : this._yScale(d.value))
408
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
409
- ? 2
410
- : this._xScale(d.key))
411
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
412
- ? this._xScale(d.value)
413
- : this._xScale.bandwidth())
414
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
415
- ? this._yScale.bandwidth()
416
- : this._dims.height -
417
- this._margin.bottom -
418
- this._yScale(d.value))
419
- .attr('fill', '#00005a');
420
- }
421
- return update
422
- .select('text')
423
- .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'; })
424
- .transition()
425
- .duration(this.defaultDuration)
426
- .ease(polyInOut)
427
- .attr('font-size', this.fontSize)
428
- .attr('font-weight', '600')
429
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
430
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
431
- : this._yScale(d.value))
432
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
433
- ? this._xScale(d.value)
434
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
435
- .attr('text-anchor', (d) => {
436
- if (this.afVariation === BarChartVariation.Vertical)
437
- return 'middle';
438
- return this._xScale(d.value) < d.len + this.tickPadding * 2
439
- ? 'start'
440
- : 'end';
441
- })
442
- .attr('dx', (d) => {
443
- if (this.afVariation === BarChartVariation.Horizontal)
444
- return this._xScale(d.value) < d.len + this.tickPadding * 2
445
- ? this.tickPadding
446
- : -this.tickPadding;
447
- return 0;
448
- })
449
- .attr('fill', (d) => {
450
- if (this.afVariation === BarChartVariation.Vertical)
451
- return 'black';
452
- return this._xScale(d.value) < d.len + this.tickPadding * 2
453
- ? 'black'
454
- : 'white';
455
- })
456
- .attr('dy', () => this.afVariation == BarChartVariation.Horizontal
457
- ? '0.35em'
458
- : '-0.25em')
459
- .style('pointer-events', 'none')
460
- .attrTween('text', (d, i, nodelist) => {
461
- const oldnum = parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
462
- ? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
463
- : 0;
464
- const interpolatedValue = interpolate(oldnum, d.value);
465
- return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this._numberFormat));
466
- });
467
- }, (exit) => exit.remove());
468
- this._barSelection = this._barChartContainer.selectAll('rect');
469
- this._textSelection = this._barChartContainer.selectAll('.barText');
354
+ .data(this.mappedData)
355
+ .join('g')
356
+ .attr('class', 'barGroup')
357
+ .attr('id', (d) => this.barGroupID(d.key));
358
+ this.barSelection.selectAll('.bar')
359
+ .data((d) => {
360
+ return d.series;
361
+ })
362
+ .join('rect')
363
+ .attr('class', 'bar')
364
+ .style('cursor', 'pointer')
365
+ .attr('x', this.xFunction)
366
+ .attr('y', this.yFunction)
367
+ .attr('ry', 4)
368
+ .attr('rx', 4)
369
+ .attr('width', this.widthFunction)
370
+ .attr('height', this.heightFunction)
371
+ .attr('fill', (d) => this.colorFunction(d.serie))
372
+ .on('mouseenter', this.hover)
373
+ .on('mouseleave', this.hoverOut)
374
+ .on('click', this.openTooltip);
375
+ this.barSelection = this.barChartContainer.selectAll('.barGroup');
376
+ this.textSelection = this.barChartContainer.selectAll('.barText');
470
377
  };
471
378
  // Setting position of text according to bar size
472
379
  this.adjustBarText = () => {
473
380
  var _a, _b;
474
- if (!((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
381
+ if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
475
382
  return;
476
- this._textSelection
383
+ this.textSelection
477
384
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
478
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
479
- : this._yScale(d.value))
385
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
386
+ : this.yScale(d.value))
480
387
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
481
- ? this._xScale(d.value)
482
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
388
+ ? this.xScale(d.value)
389
+ : this.xScale(d.key) + this.xScale.bandwidth() / 2)
483
390
  .attr('dx', (d) => {
484
391
  if (this.afVariation === BarChartVariation.Horizontal)
485
- return this._xScale(d.value) < d.len + this.tickPadding * 2
392
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
486
393
  ? this.tickPadding
487
394
  : -this.tickPadding;
488
395
  return 0;
@@ -490,151 +397,207 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
490
397
  .attr('fill', (d) => {
491
398
  if (this.afVariation === BarChartVariation.Vertical)
492
399
  return 'black';
493
- return this._xScale(d.value) < d.len + this.tickPadding * 2
400
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
494
401
  ? 'black'
495
402
  : 'white';
496
403
  })
497
404
  .attr('text-anchor', (d) => {
498
405
  if (this.afVariation === BarChartVariation.Vertical)
499
406
  return 'middle';
500
- return this._xScale(d.value) < d.len + this.tickPadding * 2
407
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
501
408
  ? 'start'
502
409
  : 'end';
503
410
  });
504
411
  };
505
412
  this.reshapeData = () => {
506
413
  const toReturn = [];
507
- if (this._loading) {
508
- this._placeholderTicks.forEach((key) => {
509
- toReturn.push({
414
+ if (!this.chartData) {
415
+ this.placeholderTicks.forEach((key) => {
416
+ const tick = { key: key, series: [] };
417
+ tick.series.push({
510
418
  key: key,
419
+ serie: 'loading',
511
420
  value: Math.floor(Math.random() * (9 - 2 + 1) + 2),
512
- len: '1'
421
+ len: 0
513
422
  });
423
+ toReturn.push(tick);
514
424
  });
515
425
  return toReturn;
516
426
  }
517
- this._chartData.data.xValueNames.forEach((key, index) => {
518
- toReturn.push({
519
- key: key,
520
- value: this._chartData.data.series[0].yValues[index],
521
- len: this.getTextSize(this._chartData.data.series[0].yValues[index].toLocaleString())
522
- });
523
- });
427
+ else {
428
+ if (this.chartData.data.xValueNames) {
429
+ this.chartData.data.xValueNames.forEach((key, index) => {
430
+ const tick = { key: key, series: [] };
431
+ this.chartData.data.series.forEach((serie) => {
432
+ if (serie.yValues[index]) {
433
+ tick.series.push({
434
+ key: key,
435
+ serie: serie.title,
436
+ value: serie.yValues[index],
437
+ len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
438
+ });
439
+ }
440
+ });
441
+ toReturn.push(tick);
442
+ });
443
+ }
444
+ else {
445
+ this.chartData.data.xValues.forEach((key, index) => {
446
+ const tick = { key: key.toString(), series: [] };
447
+ this.chartData.data.series.forEach((serie) => {
448
+ if (serie.yValues[index]) {
449
+ tick.series.push({
450
+ key: key.toString(),
451
+ serie: serie.title,
452
+ value: serie.yValues[index],
453
+ len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
454
+ });
455
+ }
456
+ });
457
+ toReturn.push(tick);
458
+ });
459
+ }
460
+ }
524
461
  return toReturn;
525
462
  };
526
463
  this.adjustBarSize = () => {
527
- this._barSelection
528
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
529
- ? this._yScale(d.key)
530
- : this._yScale(d.value))
531
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
532
- ? 2
533
- : this._xScale(d.key))
534
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
535
- ? this._xScale(d.value)
536
- : this._xScale.bandwidth())
537
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
538
- ? this._yScale.bandwidth()
539
- : this._dims.height - this._margin.bottom - this._yScale(d.value));
464
+ this.barSelection.selectAll('.bar')
465
+ .attr('x', this.xFunction)
466
+ .attr('y', this.yFunction)
467
+ .attr('width', this.widthFunction)
468
+ .attr('height', this.heightFunction);
469
+ };
470
+ this.evalColorVar = (colorVar) => {
471
+ return getComputedStyle(document.documentElement)
472
+ .getPropertyValue(colorVar)
473
+ .trim()
474
+ .toLocaleLowerCase();
540
475
  };
541
- // Resize table
542
- this.resizeTable = () => {
543
- this.setDims();
544
- this.setTableDimensions();
476
+ // Handling x positioning of bars
477
+ this.xFunction = (d, i) => {
478
+ return this.afVariation === BarChartVariation.Horizontal
479
+ ? (d.value > 0 ? this.xScale(0) : this.xScale(d.value))
480
+ : this.xScale(d.key) + ((this.xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
481
+ };
482
+ // Handling y positioning of bars
483
+ this.yFunction = (d, i) => {
484
+ if (!d.value)
485
+ return 0;
486
+ return this.afVariation === BarChartVariation.Horizontal
487
+ ? this.yScale(d.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
488
+ : (d.value < 0 ? this.yScale(0) : this.yScale(d.value));
489
+ };
490
+ // Handling height for bars
491
+ this.heightFunction = (d) => {
492
+ if (!d.value)
493
+ return 0;
494
+ return this.afVariation === BarChartVariation.Horizontal
495
+ ? this.yScale.bandwidth() / this.dataWidth - (this.barGap)
496
+ : (d.value < 0 ? this.yScale(d.value) - this.yScale(0) : this.yScale(0) - this.yScale(d.value));
497
+ };
498
+ // Handling width for bars
499
+ this.widthFunction = (d) => {
500
+ return this.afVariation === BarChartVariation.Horizontal
501
+ ? Math.abs(this.xScale(0) - this.xScale(d.value))
502
+ : this.xScale.bandwidth() / this.dataWidth - (this.barGap);
545
503
  };
546
504
  // Setting dimension variable
547
505
  this.setDims = (onlyHeight = false) => {
548
506
  // Get title dimensions
549
- const tempTitle = select(this._titleDiv).node().getBoundingClientRect(), tempLegend = select(this._legendDiv).node().getBoundingClientRect();
550
- const prevHeight = this._dims.height;
507
+ const tempTitle = select(this.titleDiv).node().getBoundingClientRect(), tempLegend = select(this.legendDiv).node().getBoundingClientRect();
508
+ const prevHeight = this.dims.height;
551
509
  if (!onlyHeight)
552
- this._dims = select(this._chartDiv).node().getBoundingClientRect();
553
- this._dims.height =
554
- this._maxHeight - tempLegend.height - tempTitle.height - 1.75 * this._rem;
555
- return prevHeight != this._dims.height;
510
+ this.dims = select(this.chartDiv).node().getBoundingClientRect();
511
+ this.dims.height =
512
+ this.maxHeight - tempLegend.height - tempTitle.height - 1.75 * this.rem;
513
+ // Making sure height and width are defined
514
+ this.dims.height = Number.isNaN(this.dims.height) ? 10 : this.dims.height;
515
+ this.dims.width = Number.isNaN(this.dims.width) ? 10 : this.dims.width;
516
+ return prevHeight !== this.dims.height;
556
517
  };
557
518
  // Setting margins given text size
558
519
  this.setMargins = (fromLoading) => {
559
520
  var _a;
560
- this._pixelSize =
521
+ this.pixelSize =
561
522
  Number(window
562
523
  .getComputedStyle(document.body)
563
524
  .getPropertyValue('font-size')
564
525
  .match(/\d+/)[0]) * Number(this.fontSize.replace(/[^\d.]|\.(?=.*\.)/g, ''));
565
526
  // Getting the longest word, assuming it will also be the widest in terms of pixels
566
527
  if (this.afVariation === BarChartVariation.Horizontal) {
567
- const left = ((_a = this._chartData) === null || _a === void 0 ? void 0 : _a.data) &&
568
- this.getLargestText(this._chartData.data.xValueNames)
569
- ? this.getLargestText(this._chartData.data.xValueNames)
528
+ const left = ((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data) &&
529
+ this.getLargestText(this.chartData.data.xValueNames)
530
+ ? this.getLargestText(this.chartData.data.xValueNames)
570
531
  : 0;
571
- this._margin.left = left;
532
+ this.margin.left = left;
533
+ this.margin.bottom = this.pixelSize + this.tickPadding + this.xTickSize;
572
534
  }
573
- else
574
- this._margin.left = this.getLargestText(fromLoading
535
+ else {
536
+ this.margin.left = this.getLargestText(fromLoading
575
537
  ? ['0', '10']
576
538
  : [
577
- this._minVal ? this._tempScale[0].toLocaleString() : '0',
578
- this._maxVal ? this._tempScale[1].toLocaleString() : '10'
539
+ this.minVal ? this.tempScale[0].toLocaleString() : '0',
540
+ this.maxVal ? this.tempScale[1].toLocaleString() : '10'
579
541
  ]);
580
- if (this._margin.left > this._dims.width / 4) {
581
- this._margin.left = Math.floor(this._dims.width / 4);
582
- this._margin.ellipsis = true;
542
+ this.margin.bottom = this.pixelSize;
543
+ }
544
+ if (this.margin.left > this.dims.width / 4) {
545
+ this.margin.left = Math.floor(this.dims.width / 4);
546
+ this.margin.ellipsis = true;
583
547
  }
584
548
  else
585
- this._margin.ellipsis = false;
586
- this._margin.bottom = this._pixelSize + this.tickPadding + this.xTickSize;
549
+ this.margin.ellipsis = false;
587
550
  };
588
551
  // Adjusting y-ticks
589
552
  this.setNamedTicks = (transition = false) => {
590
553
  if (this.afVariation == BarChartVariation.Horizontal) {
591
554
  if (!transition) {
592
- this._yAxisHandle
555
+ this.yAxisHandle
593
556
  .style('font-size', this.fontSize)
594
557
  .style('font-family', 'Open Sans')
595
- .call(this._yAxis
558
+ .call(this.yAxis
596
559
  .tickPadding(this.tickPadding)
597
560
  .tickSize(this.yTickSize)
598
561
  .tickSizeOuter(0)
599
562
  .tickFormat((d, i) => {
600
- if (!this._margin.ellipsis)
563
+ if (!this.margin.ellipsis)
601
564
  return d.toLocaleString();
602
565
  // Adding ellipsis to text
603
- const size = this._namedTickSizes[i] + this.tickPadding + this.yTickSize;
604
- const mSize = this._margin.left;
566
+ const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
567
+ const mSize = this.margin.left;
605
568
  if (size < mSize)
606
569
  return d.toLocaleString();
607
- const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length), 3)) + '...');
570
+ const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3)) + '...');
608
571
  let adjustment = 0;
609
572
  if (newSize > mSize) {
610
573
  adjustment = Math.ceil((newSize - mSize) / (size / d.length));
611
574
  }
612
575
  // Slicing the text up, saving atleast 3 characters
613
576
  return (d
614
- .slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length) - adjustment, 3))
577
+ .slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
615
578
  .trim() + '...');
616
579
  }));
617
580
  }
618
581
  else {
619
- this._yAxisHandle
582
+ this.yAxisHandle
620
583
  .style('font-size', this.fontSize)
621
584
  .style('font-family', 'Open Sans')
622
585
  .transition()
623
586
  .duration(this.defaultDuration)
624
- .call(this._yAxis
587
+ .call(this.yAxis
625
588
  .tickPadding(this.tickPadding)
626
589
  .tickSize(this.yTickSize)
627
590
  .tickSizeOuter(0)
628
591
  .tickFormat((d, i) => {
629
- if (!this._margin.ellipsis)
592
+ if (!this.margin.ellipsis)
630
593
  return d;
631
594
  // Adding ellipsis to text
632
- const size = this._namedTickSizes[i] + this.tickPadding + this.yTickSize;
633
- const mSize = this._margin.left;
595
+ const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
596
+ const mSize = this.margin.left;
634
597
  if (size < mSize)
635
598
  return d;
636
599
  const newSize = this.getTextSize(d
637
- .slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length), 3))
600
+ .slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3))
638
601
  .trim() + '...');
639
602
  let adjustment = 0;
640
603
  if (newSize > mSize) {
@@ -642,26 +605,26 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
642
605
  }
643
606
  // Slicing the text up, saving atleast 3 characters
644
607
  return (d
645
- .slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length) - adjustment, 3))
608
+ .slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
646
609
  .trim() + '...');
647
610
  }));
648
611
  }
649
612
  }
650
613
  else {
651
614
  //Calculating every n:th text to show
652
- let nTh = Math.round(this._chartData.data.xValues.length /
653
- ((this._dims.width - this._margin.left - this._margin.right) / 90 - 1));
654
- if (Math.floor(this._chartData.data.xValues.length / nTh) < 4) {
655
- nTh = Math.round(this._chartData.data.xValues.length / 4);
615
+ let nTh = Math.max(Math.round(this.chartData.data.xValues.length /
616
+ ((this.dims.width - this.margin.left - this.margin.right) / 90 - 1)), 1);
617
+ if (Math.floor(this.chartData.data.xValues.length / nTh) < 4) {
618
+ nTh = Math.round(this.chartData.data.xValues.length / 4);
656
619
  }
657
- const allowedWidth = (this._dims.width - this._margin.left - this._margin.right) /
658
- Math.floor(this._chartData.data.xValues.length / nTh + 1);
620
+ const allowedWidth = (this.dims.width - this.margin.left - this.margin.right) /
621
+ Math.floor(this.chartData.data.xValues.length / nTh + 1);
659
622
  if (!transition) {
660
- this._xAxisHandle
623
+ this.xAxisHandle
661
624
  .style('font-size', this.fontSize)
662
625
  .style('font-family', 'Open Sans')
663
- .call(this._xAxis
664
- .tickValues(this._xScale.domain().filter((...[, i]) => {
626
+ .call(this.xAxis
627
+ .tickValues(this.xScale.domain().filter((...[, i]) => {
665
628
  if (i == 0)
666
629
  return true;
667
630
  else {
@@ -673,23 +636,23 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
673
636
  .tickSizeOuter(0)
674
637
  .tickFormat((d, i) => {
675
638
  const index = i * nTh;
676
- if (this._namedTickSizes[index] < allowedWidth)
639
+ if (this.namedTickSizes[index] < allowedWidth)
677
640
  return d;
678
641
  return (d.slice(0, Math.max(Math.floor((allowedWidth /
679
- (this._namedTickSizes[index] +
680
- this._ellipsisSize +
642
+ (this.namedTickSizes[index] +
643
+ this.ellipsisSize +
681
644
  5)) *
682
645
  d.length), 3)) + '...');
683
646
  }));
684
647
  }
685
648
  else {
686
- this._xAxisHandle
649
+ this.xAxisHandle
687
650
  .style('font-size', this.fontSize)
688
651
  .style('font-family', 'Open Sans')
689
652
  .transition()
690
653
  .duration(this.defaultDuration)
691
- .call(this._xAxis
692
- .tickValues(this._xScale.domain().filter((...[, i]) => {
654
+ .call(this.xAxis
655
+ .tickValues(this.xScale.domain().filter((...[, i]) => {
693
656
  if (i == 0)
694
657
  return true;
695
658
  else {
@@ -701,11 +664,11 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
701
664
  .tickSizeOuter(0)
702
665
  .tickFormat((d, i) => {
703
666
  const index = i * nTh;
704
- if (this._namedTickSizes[index] < allowedWidth)
667
+ if (this.namedTickSizes[index] < allowedWidth)
705
668
  return d;
706
669
  return (d.slice(0, Math.max(Math.floor((allowedWidth /
707
- (this._namedTickSizes[index] +
708
- this._ellipsisSize +
670
+ (this.namedTickSizes[index] +
671
+ this.ellipsisSize +
709
672
  5)) *
710
673
  d.length), 3)) + '...');
711
674
  }));
@@ -715,30 +678,30 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
715
678
  // Positioning the ticks of the value bearing axis
716
679
  this.setValueTicks = (transition = false) => {
717
680
  var _a, _b;
718
- if (((_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
681
+ if (((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
719
682
  this.afVariation === BarChartVariation.Horizontal
720
- ? this._xAxisHandle.attr('display', 'none')
721
- : this._yAxisHandle.attr('display', 'none');
683
+ ? this.xAxisHandle.attr('display', 'none')
684
+ : this.yAxisHandle.attr('display', 'none');
722
685
  return;
723
686
  }
724
687
  let toCall, tickSize, handle;
725
688
  if (this.afVariation === BarChartVariation.Horizontal) {
726
- this._xAxisHandle.attr('display', null);
727
- toCall = this._xAxis;
728
- tickSize = -(this._dims.height - this._margin.top - this._margin.bottom);
729
- handle = this._xAxisHandle;
689
+ this.xAxisHandle.attr('display', null);
690
+ toCall = this.xAxis;
691
+ tickSize = -(this.dims.height - this.margin.top - this.margin.bottom);
692
+ handle = this.xAxisHandle;
730
693
  }
731
694
  else {
732
- this._yAxisHandle.attr('display', null);
733
- toCall = this._yAxis;
734
- tickSize = -(this._dims.width - this._margin.left - this._margin.right);
735
- handle = this._yAxisHandle;
695
+ this.yAxisHandle.attr('display', null);
696
+ toCall = this.yAxis;
697
+ tickSize = -(this.dims.width - this.margin.left - this.margin.right);
698
+ handle = this.yAxisHandle;
736
699
  }
737
700
  // Computing the amount of ticks to show
738
- const ticks = Math.min(Math.floor((this._dims.width - this._margin.left - this._margin.right) /
739
- (this._tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
740
- ? this._xScale.ticks().length
741
- : this._yScale.ticks().length);
701
+ const ticks = Math.min(Math.floor((this.dims.width - this.margin.left - this.margin.right) /
702
+ (this.tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
703
+ ? this.xScale.ticks().length
704
+ : this.yScale.ticks().length);
742
705
  if (!transition) {
743
706
  handle
744
707
  .style('font-size', this.fontSize)
@@ -769,124 +732,171 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
769
732
  }
770
733
  handle.selectAll('line').attr('stroke', 'lightgray');
771
734
  if (this.afVariation === BarChartVariation.Vertical)
772
- this._yAxisHandle.select('.domain').attr('display', 'none');
735
+ this.yAxisHandle.select('.domain').attr('display', 'none');
773
736
  };
774
737
  // Highlight bar
775
738
  this.hover = (event) => {
776
739
  select(event.target)
777
- .transition('hover')
740
+ .transition('color')
778
741
  .duration(20)
779
- .attr('fill', event.target.tagName === 'rect'
780
- ? '#4C4C8B'
781
- : 'var(--digi--color--text--link-hover)');
742
+ .attr('fill', (d) => {
743
+ var _a;
744
+ if (event.target.tagName === 'rect') {
745
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
746
+ return 'url(#prognosisHighlight)';
747
+ }
748
+ else
749
+ return this.adjustColor(this.colorFunction(d.serie), 50);
750
+ }
751
+ else {
752
+ return this.evalColorVar('--digi--color--background--interactive--hover--tertiary');
753
+ }
754
+ });
782
755
  };
783
756
  // Removing highlight from bar
784
757
  this.hoverOut = (event) => {
785
758
  select(event.target)
786
- .transition('hover')
759
+ .transition('color')
787
760
  .duration(this.defaultDuration)
788
- .attr('fill', event.target.tagName === 'rect' ? '#00005a' : '#333333');
761
+ .attr('fill', (d) => event.target.tagName === 'rect' ? this.colorFunction(d.serie) : '#333333');
789
762
  };
790
763
  this.openTooltip = (...[, d]) => {
791
764
  // If type is string, the user has clicked on a y-axis tick
792
765
  if (typeof d === 'string') {
793
- this._tooltipData = this._barChartContainer
794
- .select(`#barGroup${d.replace(/[^A-Z0-9]+/gi, '_')}`)
766
+ this.tooltipData = this.barChartContainer
767
+ .select(`#${this.barGroupID(d)}`)
795
768
  .datum();
796
769
  }
797
770
  else
798
- this._tooltipData = d;
799
- const tooltipBody = this._tooltip.select('.tooltipBody');
800
- tooltipBody
801
- .select(this._tooltipHeading)
802
- .style('margin', '0 0.75rem 0 0 ')
803
- .style('font-weight', 500)
804
- .html(this._tooltipData.key);
771
+ this.tooltipData = d;
772
+ const tooltipBody = this.tooltip.select('.tooltipBody');
773
+ this.tooltip
774
+ .select('.tooltipHeading')
775
+ .html(this.tooltipData.key);
805
776
  tooltipBody
806
777
  .selectAll('div')
807
- .data([this._tooltipData])
778
+ .data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
808
779
  .join('div')
809
780
  .style('display', 'flex')
810
781
  .style('flex-direction', 'row')
811
782
  .style('flex-wrap', 'nowrap')
812
783
  .style('white-space', 'nowrap')
813
784
  .style('justify-content', 'space-between')
814
- .html((d) => d.value.toLocaleString());
815
- this._tooltip.style('display', 'flex');
816
- this.positionTooltip(this._tooltipData);
785
+ .style('margin', '0.25rem 0')
786
+ .html((d) => {
787
+ return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
788
+ });
789
+ this.tooltip.style('display', null);
790
+ this.positionTooltip(this.tooltipData);
817
791
  };
818
792
  this.closeTooltip = () => {
819
- this._tooltip.style('display', 'none');
793
+ this.tooltip.style('display', 'none');
820
794
  };
821
795
  // Positions tooltip in horizontal mode
822
796
  this.positionTooltip = (data) => {
823
- const width = this._tooltip.node().getBoundingClientRect().width;
824
- const height = this._tooltip.node().getBoundingClientRect().height + 8;
825
- const diff = this._xScale(data.value) / 2 - width / 2;
826
- if (this.afVariation === BarChartVariation.Horizontal) {
827
- this._tooltip
828
- .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 )`)
829
- .style('max-width', this._xScale.range()[1] + 'px');
830
- this._tooltip
831
- .select('digi-icon-caret-up')
832
- .style('position', 'absolute')
833
- .style('--digi--icon--color', 'white')
834
- .style('top', '-11px')
835
- .style('left', '0')
836
- .style('transform', `translate(${diff > 0 ? width / 2 - 10 : this._xScale(data.value) / 2}px,0)`);
797
+ var _a;
798
+ const width = this.tooltip.node().getBoundingClientRect().width;
799
+ // Single bar
800
+ if ('serie' in data) {
801
+ if (this.afVariation === BarChartVariation.Horizontal) {
802
+ const diff = this.xScale(data.value) / 2 - width / 2;
803
+ this.tooltip
804
+ .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 )`)
805
+ .style('max-width', this.xScale.range()[1] + 'px');
806
+ this.tooltip
807
+ .select('digi-icon-caret-up')
808
+ .style('position', 'absolute')
809
+ .style('top', '-11px')
810
+ .style('left', '0')
811
+ .style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
812
+ }
813
+ else {
814
+ 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);
815
+ const barIndex = ((this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1)) - (this.xScale.bandwidth() / this.dataWidth) / 2;
816
+ // This should be where the x-axis starts
817
+ const xStart = this.margin.left + this.tickPadding + this.yTickSize;
818
+ // Creating adjustment for tooltip to not appear outside of chart
819
+ const spaceToSVGEdge = 5;
820
+ 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;
821
+ this.tooltip
822
+ .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) )`);
823
+ this.tooltip
824
+ .select('digi-icon-caret-down')
825
+ .style('position', 'absolute')
826
+ .style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
827
+ .style('bottom', '-11.5px');
828
+ }
837
829
  }
838
830
  else {
839
- this._tooltip
840
- .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 )`)
841
- .style('max-width', this._xScale.range()[1] + 'px');
842
- this._tooltip
843
- .select('digi-icon-caret-down')
844
- .style('position', 'absolute')
845
- .style('--digi--icon--color', 'white')
846
- .style('left', '0')
847
- .style('bottom', '-11px')
848
- .style('transform', `translate(${width / 2 - 6}px,0)`);
831
+ if (this.afVariation === BarChartVariation.Horizontal) {
832
+ this.tooltip
833
+ .style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
834
+ );
835
+ this.tooltip
836
+ .select('digi-icon-caret-up')
837
+ .style('position', 'absolute')
838
+ .style('top', '-11px')
839
+ .style('left', '0')
840
+ .style('transform', `translate(50%,0)`);
841
+ //this.yScale(data.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
842
+ }
843
+ else {
844
+ const xStart = this.margin.left + this.tickPadding + this.yTickSize;
845
+ const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
846
+ const yMax = max(data.series.map(elem => elem.value));
847
+ // Creating adjustment for tooltip to not appear outside of chart
848
+ const spaceToSVGEdge = 5;
849
+ const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (translatePoint + width / 2) ? (((translatePoint + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
850
+ this.tooltip
851
+ .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) )`);
852
+ this.tooltip
853
+ .select('digi-icon-caret-down')
854
+ .style('position', 'absolute')
855
+ .style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
856
+ .style('bottom', '-11.5px');
857
+ }
849
858
  }
850
859
  };
851
860
  // Once texts has fully loaded, we can recompute some sizes
852
861
  this.recomputeTextSize = () => {
853
862
  var _a, _b;
854
863
  if (this.afVariation == BarChartVariation.Horizontal)
855
- this._tickWidth = this.getLargestText(this._xScale.ticks().map((tick) => tick.toLocaleString()));
864
+ this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
856
865
  this.tickSizes();
857
- this._barChartContainer.selectAll('.barGroup').data(this.reshapeData);
858
- if ((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
859
- this._textSelection.remove();
866
+ this.barChartContainer.selectAll('.barGroup').data(this.mappedData);
867
+ if ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
868
+ this.textSelection.remove();
860
869
  this.initBarText();
861
870
  };
862
871
  // Removes resize observer for chart and inits table
863
872
  this.activateTable = (event) => {
864
873
  this.closeTooltip();
865
874
  this.barChartObserver.disconnect();
866
- this.tableObserver.observe(this._chartDiv);
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);
875
+ this.status.innerHTML = '<p>Visas som tabell</p>';
876
+ select(this.host).select('.tableButton').style('display', 'none');
877
+ select(this.host).select('.chartButton').style('display', null);
870
878
  event.target.nextSibling.lastChild.focus();
871
879
  const duration = 150;
872
- this._svg
880
+ this.svg
873
881
  .attr('opacity', 1)
874
882
  .transition('fadeout')
875
883
  .duration(duration)
876
884
  .attr('opacity', 0)
877
885
  .on('end', () => {
878
- this._svg.remove();
879
- this._legendDiv.style['display'] = 'none';
880
- this._tableDiv.style['display'] = 'block';
886
+ this.svg.remove();
887
+ select(this.legendDiv).select('.legend').selectAll('.legendChip').remove();
888
+ this.legendDiv.style['display'] = 'none';
889
+ this.tableDiv.style['display'] = 'block';
881
890
  this.setTableContent();
882
891
  this.setTableDimensions();
883
- select(this._tableDiv)
892
+ select(this.tableDiv)
884
893
  .style('opacity', 0)
885
894
  .transition('fadein')
886
895
  .duration(duration)
887
896
  .style('opacity', 1);
897
+ this.chartDiv.style['display'] = 'none';
888
898
  });
889
- select(this._legendDiv)
899
+ select(this.legendDiv)
890
900
  .style('opacity', 1)
891
901
  .transition('fadeout')
892
902
  .duration(duration)
@@ -894,12 +904,12 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
894
904
  };
895
905
  // Removes observer and calls init functions for line chart
896
906
  this.reInitChart = (event) => {
897
- this.tableObserver.disconnect();
898
- this._status.innerHTML = '<p>Visas som diagram</p>';
899
- select(this._host).select('.tableButton').style('display', null);
900
- select(this._host).select('.chartButton').style('display', 'none');
907
+ this.status.innerHTML = '<p>Visas som diagram</p>';
908
+ select(this.host).select('.tableButton').style('display', null);
909
+ select(this.host).select('.chartButton').style('display', 'none');
901
910
  event.target.previousSibling.lastChild.focus();
902
- const table = select(this._tableDiv);
911
+ const table = select(this.tableDiv);
912
+ const duration = 150;
903
913
  table
904
914
  .style('opacity', 1)
905
915
  .transition()
@@ -907,12 +917,19 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
907
917
  .style('opacity', 0)
908
918
  .on('end', () => {
909
919
  table.style('display', 'none');
920
+ this.chartDiv.style['display'] = 'flex';
921
+ this.legendDiv.style['display'] = 'grid';
910
922
  this.initChain();
911
- this._svg
923
+ this.svg
912
924
  .attr('opacity', 0)
913
925
  .transition()
914
- .duration(150)
926
+ .duration(duration)
915
927
  .attr('opacity', 1);
928
+ select(this.legendDiv)
929
+ .style('opacity', 0)
930
+ .transition('fadeout')
931
+ .duration(duration)
932
+ .style('opacity', 1);
916
933
  });
917
934
  };
918
935
  this.afVariation = BarChartVariation.Vertical;
@@ -921,183 +938,239 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
921
938
  this.afChartData = undefined;
922
939
  }
923
940
  afChartDataUpdate(data) {
924
- if (typeof data != 'string')
925
- this._chartData = data;
926
- else
927
- this._chartData = JSON.parse(data);
941
+ if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 || typeof data !== 'string' && Object.keys(data).length > 0) {
942
+ if (typeof data != 'string')
943
+ this.chartData = data;
944
+ else
945
+ this.chartData = JSON.parse(data);
946
+ this.series = this.chartData.data.series.map(serie => serie.title);
947
+ }
948
+ this.mappedData = this.reshapeData();
949
+ // checking for width of each tick
950
+ this.mappedData.forEach((elem) => {
951
+ if (elem.series.length > this.dataWidth)
952
+ this.dataWidth = elem.series.length;
953
+ });
954
+ if (this.dataWidth > 1)
955
+ this.barGap = 1;
928
956
  }
929
957
  initSvg() {
930
958
  var _a, _b, _c, _d, _e, _f, _g;
931
959
  // Fetch number formatting
932
- this._numberFormat = {
933
- 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,
934
- 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)
960
+ this.numberFormat = {
961
+ 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,
962
+ 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)
935
963
  ? 'compact'
936
964
  : 'standard'
937
965
  };
938
- select(this._chartDiv).select('svg').remove();
939
- this._maxHeight = (_g = select(this._host)
966
+ select(this.chartDiv).select('.chartSVG').remove();
967
+ this.maxHeight = (_g = select(this.host)
940
968
  .node()
941
969
  .parentNode) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().height;
942
- this.barChartObserver.observe(this._chartDiv);
970
+ this.barChartObserver.observe(this.chartDiv);
943
971
  // Getting rem-size
944
- this._rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
945
- this.setMinMax();
972
+ this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
946
973
  this.setDims();
974
+ this.setMinMax();
947
975
  this.setMargins();
948
976
  // Appending svg
949
- this._svg = select(this._chartDiv)
977
+ this.svg = select(this.chartDiv)
950
978
  .append('svg')
979
+ .attr('class', 'chartSVG')
951
980
  .attr('aria-hidden', true)
952
981
  .attr('role', 'img')
953
- .attr('aria-label', this._chartData && this._chartData.title
954
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
955
- : 'Stapeldiagram');
956
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
982
+ .attr('aria-label', this.chartData && this.chartData.title
983
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
984
+ : 'Stapeldiagram')
985
+ .attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
986
+ }
987
+ initLegend() {
988
+ const rectSize = 18;
989
+ const legendData = this.chartData.data.series.map(serie => serie.title);
990
+ if (this.chartData.data.averageLine)
991
+ legendData.push(this.chartData.data.averageLine.text);
992
+ const legendChips = select(this.legendDiv).select('.legend')
993
+ .style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
994
+ .style('margin-top', '0.5rem')
995
+ .selectAll('.legendChip')
996
+ .data(legendData)
997
+ .join('div')
998
+ .attr('class', 'legendChip')
999
+ .style('display', 'flex')
1000
+ .style('flex-direction', 'row')
1001
+ .style('align-items', 'center')
1002
+ .style('gap', '0.25rem')
1003
+ .style('cursor', 'default')
1004
+ .on('mouseenter', (_event, serie) => this.highlightBars(serie))
1005
+ .on('mouseleave', this.resetBarColor);
1006
+ legendChips.append('svg')
1007
+ .attr('width', rectSize + 1)
1008
+ .attr('height', rectSize + 1)
1009
+ .append('rect')
1010
+ .attr('x', 0)
1011
+ .attr('y', 0)
1012
+ .attr('width', rectSize)
1013
+ .attr('height', rectSize)
1014
+ .attr('rx', 4)
1015
+ .attr('ry', 4)
1016
+ .attr('fill', (title) => this.colorFunction(title));
1017
+ legendChips.append('span').style('text-wrap', 'nowrap').style('font-size', '0.875rem').text((d) => d);
1018
+ if (this.chartData.data.averageLine) {
1019
+ const averageLine = legendChips.filter(':last-child')
1020
+ .on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
1021
+ const miniSVG = averageLine
1022
+ .select('svg')
1023
+ .attr('width', rectSize * 2);
1024
+ miniSVG.select('rect').remove();
1025
+ miniSVG.append('line')
1026
+ .attr('x1', 1)
1027
+ .attr('x2', rectSize * 2 - 1)
1028
+ .attr('y1', rectSize / 2 + 1)
1029
+ .attr('y2', rectSize / 2 + 1)
1030
+ .attr('stroke', 'var(--digi--color--infographic--lineart)')
1031
+ .attr('stroke-linecap', 'round')
1032
+ .attr('stroke-dasharray', '12, 7');
1033
+ }
957
1034
  }
958
1035
  initToolTip() {
959
1036
  // Getting handle for tooltip
960
- this._tooltip = select('#' + this.afId);
961
- this._tooltip.select('.close').on('click', this.closeTooltip);
962
- this._tooltipHeading =
963
- 'h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1); // increment heading level by one
964
- // Add heading placeholder for heading
965
- this._tooltip
966
- .selectAll('.tooltipBody')
967
- .append(this._tooltipHeading)
1037
+ this.tooltip = select('#' + this.afId);
1038
+ this.tooltip.select('.tooltipClose').on('click', this.closeTooltip);
1039
+ this.tooltip.selectAll('.tooltipHeading').remove();
1040
+ this.tooltip
1041
+ .select('.tooltipHead')
1042
+ .insert('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1), ':first-child') // increment heading level by one
968
1043
  .attr('class', 'tooltipHeading') // Adding class to try to dodge global css classes
1044
+ .style('text-wrap', 'wrap')
969
1045
  .style('font-size', '1rem')
970
- .style('margin', '0 0.75rem')
1046
+ .style('margin', '0 0.75rem 0.25rem 0 ')
971
1047
  .style('font-weight', '500');
1048
+ this.tooltip.style('display', 'none');
972
1049
  }
973
1050
  initEmpty() {
974
- select(this._chartDiv).select('svg').remove();
975
- this._maxHeight = select(this._host)
1051
+ select(this.chartDiv).select('.chartSVG').remove();
1052
+ this.maxHeight = select(this.host)
976
1053
  .node()
977
1054
  .parentNode.getBoundingClientRect().height;
978
- this.barChartObserver.observe(this._chartDiv);
979
- // Getting rem-size
980
- this._rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
981
- //this.setMinMax();
1055
+ this.barChartObserver.observe(this.chartDiv);
982
1056
  this.setDims();
1057
+ // Getting rem-size
1058
+ this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
983
1059
  this.setMargins();
984
1060
  // Appending svg
985
- this._svg = select(this._chartDiv)
1061
+ this.svg = select(this.chartDiv)
986
1062
  .append('svg')
1063
+ .attr('class', 'chartSVG')
987
1064
  .attr('aria-hidden', true)
988
1065
  .attr('role', 'img')
989
- .attr('aria-label', this._chartData && this._chartData.title
990
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
991
- : 'Stapeldiagram');
992
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
1066
+ .attr('aria-label', this.chartData && this.chartData.title
1067
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1068
+ : 'Stapeldiagram').attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
993
1069
  // Hide unusable components
994
- select(this._titleDiv)
1070
+ select(this.titleDiv)
995
1071
  .select(this.afHeadingLevel)
996
1072
  .html(`${_t.loading}...`);
997
1073
  this.initYAxis(true);
998
1074
  this.initXAxis(true);
1075
+ this.tooltip = select('#' + this.afId);
1076
+ this.tooltip.style('display', 'none');
999
1077
  this.loadingState(true);
1000
1078
  }
1001
1079
  loadingState(empty) {
1002
- this._loading = true;
1080
+ this.loading = true;
1003
1081
  // close potentially open tooltip
1004
- if (this._tooltip)
1082
+ if (this.tooltip)
1005
1083
  this.closeTooltip();
1006
- select(this._host).select('.tableButton').style('display', 'none');
1084
+ select(this.host).select('.tableButton').style('display', 'none');
1007
1085
  const newHeight = this.setDims();
1008
1086
  this.transitionTitle();
1009
- this._xAxisHandle.selectAll('.tick').remove();
1010
- this._xAxisHandle.select('path').remove();
1011
- this._svg
1087
+ this.xAxisHandle.selectAll('.tick').remove();
1088
+ this.xAxisHandle.select('path').remove();
1089
+ this.svg
1012
1090
  .transition()
1013
1091
  .duration(400)
1014
- .attr('width', this._dims.width)
1015
- .attr('height', this._dims.height)
1016
- .attr('aria-label', this._chartData && this._chartData.title
1017
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
1092
+ .attr('aria-label', this.chartData && this.chartData.title
1093
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1018
1094
  : 'Stapeldiagram');
1019
1095
  this.setMargins(true);
1020
- select(this._titleDiv)
1096
+ select(this.titleDiv)
1021
1097
  .select(this.afHeadingLevel)
1022
1098
  .html(`${_t.loading}...`);
1023
1099
  // Waiting with observing for changes until transition to regular bars is complete
1024
- this._barChartContainer
1100
+ this.barChartContainer
1025
1101
  .transition('position')
1026
1102
  .duration(this.defaultDuration)
1027
1103
  .ease(polyInOut)
1028
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1104
+ .attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1029
1105
  // If there is a new height
1030
1106
  if (newHeight) {
1031
1107
  // Update y-axis with potentially new height (might want to do a check here)
1032
1108
  this.afVariation === BarChartVariation.Horizontal
1033
- ? this._yScale.range([
1034
- this._margin.top,
1035
- this._dims.height - this._margin.bottom
1109
+ ? this.yScale.range([
1110
+ this.margin.top,
1111
+ this.dims.height - this.margin.bottom
1036
1112
  ])
1037
- : this._yScale.range([
1038
- this._dims.height - this._margin.bottom,
1039
- this._margin.top
1113
+ : this.yScale.range([
1114
+ this.dims.height - this.margin.bottom,
1115
+ this.margin.top
1040
1116
  ]);
1041
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1117
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1042
1118
  }
1043
1119
  const animateBars = () => {
1044
- this._barChartContainer.selectAll('.barGroup').remove();
1045
- this._barSelection = this._barChartContainer
1120
+ this.barChartContainer.selectAll('.interactiveElements').remove();
1121
+ this.barSelection = this.barChartContainer
1122
+ .append('g')
1123
+ .attr('class', 'interactiveElements')
1124
+ .style('isolation', 'isolate')
1046
1125
  .selectAll('barGroup')
1047
- .data(this.reshapeData)
1126
+ .data(this.mappedData)
1048
1127
  .join('g')
1049
1128
  .attr('class', 'barGroup')
1050
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'))
1051
- .append('rect')
1129
+ .attr('id', (d) => this.barGroupID(d.key));
1130
+ this.barSelection.selectAll('bar')
1131
+ .data((d) => {
1132
+ return d.series;
1133
+ })
1134
+ .join('rect')
1052
1135
  .attr('class', 'bar')
1053
- .style('cursor', 'pointer');
1054
- this._barSelection
1055
1136
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1056
- ? this._yScale(d.key)
1057
- : this._dims.height - this._margin.bottom)
1058
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
1059
- ? 2
1060
- : this._xScale(d.key))
1137
+ ? this.yScale(d.key)
1138
+ : this.dims.height - this.margin.bottom)
1139
+ .attr('x', this.xFunction)
1061
1140
  .attr('ry', 4)
1062
1141
  .attr('rx', 4)
1063
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
1064
- ? this._xScale(d.value)
1065
- : this._xScale.bandwidth())
1142
+ .attr('width', this.widthFunction)
1066
1143
  .attr('height', () => 0)
1067
- //.attr('height', (d: any) => this.afVariation === BarChartVariation.Horizontal ? this._yScale.bandwidth() : (this._dims.height - this._margin.bottom) - this._yScale(d.value))
1068
- .attr('fill', 'gray')
1069
- .transition()
1144
+ .attr('fill', 'gray');
1145
+ this.barChartContainer.selectAll('.bar')
1146
+ .transition('animateBar')
1070
1147
  .duration(400)
1071
1148
  .delay((...[, i]) => i * 150)
1072
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1073
- ? this._yScale(d.key)
1074
- : this._yScale(d.value))
1075
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
1076
- ? this._yScale.bandwidth()
1077
- : this._dims.height - this._margin.bottom - this._yScale(d.value));
1078
- this._barSelection
1079
- .transition()
1149
+ .attr('y', this.yFunction)
1150
+ .attr('height', this.heightFunction);
1151
+ this.barChartContainer.selectAll('.bar')
1152
+ .transition('animateBar')
1080
1153
  .duration(400)
1081
1154
  .ease(linear$1)
1082
1155
  .delay((...[, i]) => i * 150 + 400)
1083
1156
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1084
- ? this._yScale(d.key)
1085
- : this._dims.height - this._margin.bottom)
1157
+ ? this.yScale(d.key)
1158
+ : this.dims.height - this.margin.bottom)
1086
1159
  .attr('height', () => 0)
1087
1160
  .on('end', (...[, i]) => {
1088
- if (i === this._placeholderTicks.length - 1)
1161
+ if (i === this.placeholderTicks.length - 1)
1089
1162
  animateBars();
1090
1163
  });
1091
1164
  };
1092
1165
  const flattenBars = () => {
1093
- this._barChartContainer
1094
- .selectAll('rect')
1095
- .transition()
1166
+ this.barChartContainer
1167
+ .selectAll('.bar')
1168
+ .transition('animateBar')
1096
1169
  .duration(200)
1097
1170
  .ease(linear$1)
1098
1171
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1099
- ? this._yScale(d.key)
1100
- : this._dims.height - this._margin.bottom)
1172
+ ? this.yScale(d.key)
1173
+ : this.dims.height - this.margin.bottom)
1101
1174
  .attr('height', () => 0)
1102
1175
  .on('end', (...[, i]) => {
1103
1176
  if (i != 0)
@@ -1105,7 +1178,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1105
1178
  this.setYScale(true);
1106
1179
  this.setValueTicks();
1107
1180
  this.setXScale(true);
1108
- this.barChartObserver.observe(this._chartDiv);
1181
+ this.barChartObserver.observe(this.chartDiv);
1109
1182
  animateBars();
1110
1183
  });
1111
1184
  };
@@ -1115,20 +1188,20 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1115
1188
  flattenBars();
1116
1189
  }
1117
1190
  transitionTitle() {
1118
- const height = select(this._titleDiv).style('height');
1119
- select(this._titleDiv)
1120
- .style('height', this._prevHeight)
1191
+ const height = select(this.titleDiv).style('height');
1192
+ select(this.titleDiv)
1193
+ .style('height', this.prevHeight)
1121
1194
  .transition('adjust')
1122
1195
  .duration(400)
1123
1196
  .style('height', height)
1124
- .on('end', () => select(this._titleDiv).style('height', null));
1197
+ .on('end', () => select(this.titleDiv).style('height', null));
1125
1198
  }
1126
1199
  initYAxis(empty) {
1127
1200
  this.setYScale(empty);
1128
- this._barChartContainer = this._svg
1201
+ this.barChartContainer = this.svg
1129
1202
  .append('g')
1130
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1131
- this._yAxisHandle = this._barChartContainer.append('g');
1203
+ .attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1204
+ this.yAxisHandle = this.barChartContainer.append('g');
1132
1205
  if (this.afVariation === BarChartVariation.Horizontal) {
1133
1206
  this.tickSizes();
1134
1207
  this.setNamedTicks();
@@ -1140,31 +1213,31 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1140
1213
  // Sets the largest and smallest value from series 0, Should only be used when not loading
1141
1214
  setMinMax() {
1142
1215
  var _a, _b, _c, _d, _e, _f, _g;
1143
- const max$1 = max((_a = this._chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
1144
- ? max((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
1216
+ const max$1 = max((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
1217
+ ? max((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
1145
1218
  : 0;
1146
- const min$1 = min([0, min((_c = this._chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
1147
- ? min([0, min((_d = this._chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
1219
+ const min$1 = min([0, min((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
1220
+ ? min([0, min((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
1148
1221
  : 0;
1149
- this._maxVal = max$1;
1150
- this._minVal = min$1;
1151
- this._tempScale = linear()
1152
- .domain([this._minVal, this._maxVal])
1153
- .nice(((_f = (_e = this._chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
1154
- ? (_g = this._chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
1222
+ this.maxVal = max$1;
1223
+ this.minVal = min$1;
1224
+ this.tempScale = linear()
1225
+ .domain([this.minVal, this.maxVal])
1226
+ .nice(((_f = (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
1227
+ ? (_g = this.chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
1155
1228
  : 3)
1156
1229
  .domain();
1157
1230
  }
1158
1231
  // Setting up x-axis, getting margin.right in this function
1159
1232
  initXAxis(empty) {
1160
1233
  this.setXScale(empty);
1161
- this._xAxisHandle = this._barChartContainer
1234
+ this.xAxisHandle = this.barChartContainer
1162
1235
  .append('g')
1163
- .attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1236
+ .attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1164
1237
  if (this.afVariation === BarChartVariation.Horizontal) {
1165
1238
  this.setValueTicks();
1166
1239
  // Removing first tick, because it aligns with y-axis domain
1167
- this._xAxisHandle.select('.tick').select('line').remove();
1240
+ //this.xAxisHandle.select('.tick').select('line').remove();
1168
1241
  }
1169
1242
  else {
1170
1243
  if (!empty) {
@@ -1176,79 +1249,84 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1176
1249
  }
1177
1250
  // Initializing bars, can only handle one series of bars for now
1178
1251
  initBars() {
1179
- this._barSelection = this._barChartContainer
1252
+ this.barSelection = this.barChartContainer
1253
+ .append('g')
1254
+ .attr('class', 'interactiveElements')
1255
+ .style('isolation', 'isolate')
1180
1256
  .selectAll('barGroup')
1181
- .data(this.reshapeData)
1257
+ .data(this.mappedData)
1182
1258
  .join('g')
1183
1259
  .attr('class', 'barGroup')
1184
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'))
1185
- .append('rect')
1260
+ .attr('id', (d) => this.barGroupID(d.key));
1261
+ this.barSelection.selectAll('.barGroup')
1262
+ .data((d) => {
1263
+ return d.series;
1264
+ })
1265
+ .join('rect')
1186
1266
  .attr('class', 'bar')
1187
- .style('cursor', 'pointer');
1188
- this._barSelection
1189
- .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1190
- ? this._yScale(d.key)
1191
- : this._yScale(d.value))
1192
- .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
1193
- ? 2
1194
- : this._xScale(d.key))
1267
+ .style('cursor', 'pointer')
1268
+ .attr('x', this.xFunction)
1269
+ .attr('y', this.yFunction)
1195
1270
  .attr('ry', 4)
1196
1271
  .attr('rx', 4)
1197
- .attr('width', (d) => this.afVariation === BarChartVariation.Horizontal
1198
- ? this._xScale(d.value)
1199
- : this._xScale.bandwidth())
1200
- .attr('height', (d) => this.afVariation === BarChartVariation.Horizontal
1201
- ? this._yScale.bandwidth()
1202
- : this._dims.height - this._margin.bottom - this._yScale(d.value))
1203
- .attr('fill', '#00005a')
1272
+ .attr('width', this.widthFunction)
1273
+ .attr('height', this.heightFunction)
1274
+ .attr('fill', (d) => this.colorFunction(d.serie))
1204
1275
  .on('mouseenter', this.hover)
1205
1276
  .on('mouseleave', this.hoverOut)
1206
1277
  .on('click', this.openTooltip);
1207
1278
  }
1208
1279
  initBarText() {
1209
- this._textSelection = this._barChartContainer
1280
+ var _a, _b;
1281
+ if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
1282
+ return;
1283
+ this.textSelection = this.barChartContainer
1210
1284
  .selectAll('.barGroup')
1211
1285
  .append('text');
1212
- this._textSelection
1213
- .text((d) => d.value.toLocaleString(undefined, this._numberFormat))
1286
+ this.textSelection
1287
+ .text((d) => {
1288
+ return d.value ? d.value.toLocaleString(undefined, this.numberFormat) : undefined;
1289
+ })
1214
1290
  .attr('class', 'barText')
1215
1291
  .attr('font-size', this.fontSize)
1216
1292
  .attr('font-weight', '600')
1217
1293
  .attr('text-anchor', 'end')
1218
1294
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1219
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
1220
- : this._yScale(d.value))
1295
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
1296
+ : this.yScale(d.value))
1221
1297
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
1222
- ? this._xScale(d)
1223
- : this._xScale(d.key) + this._xScale.bandwidth())
1298
+ ? this.xScale(d)
1299
+ : this.xScale(d.key) + this.xScale.bandwidth())
1224
1300
  .attr('dy', () => this.afVariation == BarChartVariation.Horizontal ? '0.35em' : '-0.25em')
1225
1301
  .style('pointer-events', 'none')
1226
- .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'; });
1302
+ .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'; });
1227
1303
  this.adjustBarText();
1228
1304
  }
1229
1305
  initChain() {
1230
1306
  this.initSvg();
1307
+ this.initLegend();
1231
1308
  this.initToolTip();
1232
1309
  this.initYAxis();
1233
1310
  this.initXAxis();
1234
1311
  this.initBars();
1312
+ this.averageLine();
1235
1313
  this.initBarText();
1236
1314
  }
1237
1315
  async updateChain() {
1238
1316
  var _a, _b, _c, _d, _e, _f;
1239
1317
  // Fetch number formatting
1240
- this._numberFormat = {
1241
- 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,
1242
- 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)
1318
+ this.numberFormat = {
1319
+ 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,
1320
+ 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)
1243
1321
  ? 'compact'
1244
1322
  : 'standard'
1245
1323
  };
1246
- if (this._tooltip)
1324
+ if (this.tooltip)
1247
1325
  this.closeTooltip();
1248
1326
  // Check whether we are in table mode or not
1249
- if (this._tableDiv.style['display'] == 'block') {
1250
- if (!this._chartData.title) {
1251
- select(this._titleDiv)
1327
+ if (this.tableDiv.style['display'] == 'block') {
1328
+ if (!this.chartData.title) {
1329
+ select(this.titleDiv)
1252
1330
  .select(this.afHeadingLevel)
1253
1331
  .html(`${_t.loading}...`);
1254
1332
  }
@@ -1260,85 +1338,86 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1260
1338
  }
1261
1339
  else {
1262
1340
  // displaying legend again
1263
- if (this._loading) {
1264
- select(this._host).select('.tableButton').style('display', null);
1265
- select(this._legendDiv).style('display', null);
1341
+ if (this.loading) {
1342
+ select(this.host).select('.tableButton').style('display', null);
1343
+ select(this.legendDiv).style('display', null);
1266
1344
  this.initToolTip();
1345
+ this.initLegend();
1267
1346
  }
1268
1347
  // Disconnect resize observer while adjusting things
1269
1348
  this.barChartObserver.disconnect();
1270
1349
  this.setMinMax();
1271
1350
  const newHeight = this.setDims();
1272
1351
  this.transitionTitle();
1273
- this._svg
1274
- .transition()
1275
- .duration(400)
1276
- .attr('width', this._dims.width)
1277
- .attr('height', this._dims.height)
1278
- .attr('aria-label', this._chartData && this._chartData.title
1279
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
1352
+ this.svg
1353
+ .attr('aria-label', this.chartData && this.chartData.title
1354
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1280
1355
  : 'Stapeldiagram');
1281
1356
  this.setMargins();
1282
1357
  // Waiting with observing for changes until transition to regular bars is complete
1283
- this._barChartContainer
1358
+ this.barChartContainer
1284
1359
  .transition('position')
1285
1360
  .duration(this.defaultDuration)
1286
1361
  .ease(polyInOut)
1287
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1288
- if (!this._loading)
1289
- this._barChartContainer.on('end', () => this.barChartObserver.observe(this._chartDiv));
1362
+ .attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1363
+ if (!this.loading)
1364
+ this.barChartContainer.on('end', () => this.barChartObserver.observe(this.chartDiv));
1290
1365
  // If there is a new height
1291
1366
  if (newHeight) {
1292
1367
  // Update y-axis with potentially new height (might want to do a check here)
1293
1368
  this.afVariation === BarChartVariation.Horizontal
1294
- ? this._yScale.range([
1295
- this._margin.top,
1296
- this._dims.height - this._margin.bottom
1369
+ ? this.yScale.range([
1370
+ this.margin.top,
1371
+ this.dims.height - this.margin.bottom
1297
1372
  ])
1298
- : this._yScale.range([
1299
- this._dims.height - this._margin.bottom,
1300
- this._margin.top
1373
+ : this.yScale.range([
1374
+ this.dims.height - this.margin.bottom,
1375
+ this.margin.top
1301
1376
  ]);
1302
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1377
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1303
1378
  }
1304
1379
  this.tickSizes();
1305
1380
  this.setYScale();
1306
1381
  this.setXScale();
1307
1382
  this.setTickInteraction();
1308
- this._tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
1309
- ? this._xScale.ticks().map((tick) => tick.toLocaleString())
1310
- : this._yScale.ticks().map((tick) => tick.toLocaleString()));
1383
+ this.tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
1384
+ ? this.xScale.ticks().map((tick) => tick.toLocaleString())
1385
+ : this.yScale.ticks().map((tick) => tick.toLocaleString()));
1311
1386
  this.setValueTicks(true);
1312
- if (this._loading) {
1313
- select(this._legendDiv)
1387
+ if (this.loading) {
1388
+ select(this.legendDiv)
1314
1389
  .style('opacity', 0)
1315
1390
  .transition()
1316
1391
  .duration(400)
1317
1392
  .ease(polyInOut)
1318
1393
  .style('opacity', 1);
1319
- this._margin.right =
1320
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
1394
+ this.margin.right =
1395
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
1321
1396
  this.yTickSize +
1322
1397
  this.tickPadding;
1323
1398
  // Update x-axis with new width
1324
- this._xScale.range([
1399
+ this.xScale.range([
1325
1400
  0,
1326
- this._dims.width - this._margin.right - this._margin.left
1401
+ this.dims.width - this.margin.right - this.margin.left
1327
1402
  ]);
1328
1403
  this.setNamedTicks(true);
1329
1404
  // Stop animation
1330
- this._barSelection.selectAll('.barGroup').on('end', null);
1331
- this._loading = false;
1332
- this._barSelection
1333
- .transition()
1405
+ this.barChartContainer.selectAll('.barGroup').on('end', null);
1406
+ select(this.titleDiv).select('.loadingHeader').remove();
1407
+ this.loading = false;
1408
+ this.barChartContainer.selectAll('.bar').interrupt('animateBar');
1409
+ this.barChartContainer.selectAll('.bar').transition()
1334
1410
  .duration(this.defaultDuration)
1335
1411
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1336
- ? this._yScale(d.key)
1337
- : this._dims.height - this._margin.bottom)
1412
+ ? this.yScale(d.key)
1413
+ : this.dims.height - this.margin.bottom)
1338
1414
  .attr('height', () => 0)
1339
- .on('end', (...[, i]) => i === this._placeholderTicks.length - 1
1340
- ? this.updateBars(true)
1341
- : null);
1415
+ .on('end', (...[, i]) => {
1416
+ if (i === this.placeholderTicks.length - 1) {
1417
+ this.updateBars();
1418
+ this.barChartObserver.observe(this.chartDiv);
1419
+ }
1420
+ });
1342
1421
  this.setTickInteraction();
1343
1422
  }
1344
1423
  else {
@@ -1348,42 +1427,60 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1348
1427
  }
1349
1428
  }
1350
1429
  }
1430
+ // Getting correct color given index or name of data serie
1431
+ colorFunction(input) {
1432
+ var _a;
1433
+ if (typeof input === 'number') {
1434
+ return this.evalColorVar(this.colorPalettes[input]);
1435
+ }
1436
+ else {
1437
+ const index = this.chartData.data.series.findIndex((serie) => serie.title === input);
1438
+ if (index > 0) {
1439
+ if ((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern)
1440
+ return 'url(#prognosis)';
1441
+ else
1442
+ return this.evalColorVar(this.colorPalettes[index]);
1443
+ }
1444
+ else
1445
+ return this.evalColorVar(this.colorPalettes[0]);
1446
+ }
1447
+ }
1351
1448
  // Resizing bar chart
1352
1449
  resize() {
1353
- var _a;
1354
1450
  const newHeight = this.setDims();
1355
- this.setMargins();
1356
- (_a = this._svg) === null || _a === void 0 ? void 0 : _a.attr('width', this._dims.width).attr('height', this._dims.height);
1357
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1358
- this._margin.right =
1359
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
1451
+ //this.setMargins();
1452
+ this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1453
+ this.margin.right =
1454
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
1360
1455
  this.yTickSize +
1361
1456
  this.tickPadding;
1362
1457
  // If there is a new height
1363
1458
  if (newHeight) {
1364
1459
  // Update y-axis with potentially new height (might want to do a check here)
1365
1460
  this.afVariation === BarChartVariation.Horizontal
1366
- ? this._yScale.range([
1367
- this._margin.top,
1368
- this._dims.height - this._margin.bottom
1461
+ ? this.yScale.range([
1462
+ this.margin.top,
1463
+ this.dims.height - this.margin.bottom
1369
1464
  ])
1370
- : this._yScale.range([
1371
- this._dims.height - this._margin.bottom,
1372
- this._margin.top
1465
+ : this.yScale.range([
1466
+ this.dims.height - this.margin.bottom,
1467
+ this.margin.top
1373
1468
  ]);
1374
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1469
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1375
1470
  }
1376
1471
  // Update x-axis with new width
1377
- this._xScale.range([
1472
+ this.xScale.range([
1378
1473
  0,
1379
- this._dims.width - this._margin.right - this._margin.left
1474
+ this.dims.width - this.margin.right - this.margin.left
1380
1475
  ]);
1381
1476
  this.setNamedTicks();
1382
1477
  this.setValueTicks();
1478
+ this.setTickInteraction();
1479
+ this.averageLine();
1383
1480
  this.adjustBarSize();
1384
1481
  this.adjustBarText();
1385
- if (this._tooltipData)
1386
- this.positionTooltip(this._tooltipData);
1482
+ if (this.tooltip.style('display') !== 'none')
1483
+ this.positionTooltip(this.tooltipData);
1387
1484
  }
1388
1485
  // Returns the longest text from an array of strings
1389
1486
  getLargestText(array) {
@@ -1396,30 +1493,33 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1396
1493
  });
1397
1494
  return width;
1398
1495
  }
1496
+ adjustColor(color, amount) {
1497
+ return '#' + color.replace(/^#/, '').replace(/../g, color => ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));
1498
+ }
1399
1499
  componentWillLoad() {
1400
1500
  this.afChartDataUpdate(this.afChartData);
1401
1501
  }
1402
1502
  componentDidLoad() {
1403
- if (!this._chartData || Object.keys(this._chartData).length === 0) {
1404
- this._loading = true;
1503
+ if (!this.chartData || Object.keys(this.chartData).length === 0) {
1504
+ this.loading = true;
1405
1505
  return this.initEmpty();
1406
1506
  }
1407
1507
  this.initChain();
1408
1508
  document.fonts.ready.then(() => {
1409
1509
  this.recomputeTextSize();
1410
1510
  this.setNamedTicks();
1411
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1511
+ this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1412
1512
  });
1413
1513
  }
1414
1514
  disconnectedCallback() {
1415
1515
  this.barChartObserver.disconnect();
1416
1516
  }
1417
1517
  componentWillUpdate() {
1418
- this._prevHeight = select(this._titleDiv).style('height');
1518
+ this.prevHeight = select(this.titleDiv).style('height');
1419
1519
  }
1420
1520
  componentDidUpdate() {
1421
- if (this._tableDiv.style['display'] != 'block' &&
1422
- Object.keys(this._chartData).length === 0) {
1521
+ if (this.tableDiv.style['display'] != 'block' &&
1522
+ Object.keys(this.chartData).length === 0) {
1423
1523
  // Disconnect old barchartobserver while doing resizing
1424
1524
  this.barChartObserver.disconnect();
1425
1525
  return this.loadingState();
@@ -1428,15 +1528,15 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1428
1528
  }
1429
1529
  // Not currently used
1430
1530
  /*get cssModifiers() {
1431
- return {
1432
- 'digi-bar-chart--vertical': this.afVariation == 'vertical',
1433
- 'digi-bar-chart--horizontal': this.afVariation == 'horizontal'
1434
- };
1435
- }*/
1531
+ return {
1532
+ 'digi-bar-chart--vertical': this.afVariation == 'vertical',
1533
+ 'digi-bar-chart--horizontal': this.afVariation == 'horizontal'
1534
+ };
1535
+ }*/
1436
1536
  // Returns pixelwidth of text given the current fontSize (costly function using .each)
1437
1537
  getTextSize(text) {
1438
1538
  const textWidth = [];
1439
- const svg = select(this._chartDiv).append('svg');
1539
+ const svg = select(this.chartDiv).append('svg');
1440
1540
  svg
1441
1541
  .selectAll('dummyText')
1442
1542
  .data([text])
@@ -1451,21 +1551,18 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1451
1551
  svg.remove().exit();
1452
1552
  return textWidth[0];
1453
1553
  }
1454
- // Setting table content from this._chartData
1554
+ // Setting table content from this.chartData
1455
1555
  setTableContent() {
1456
- 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>`;
1556
+ 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>`;
1457
1557
  }
1458
1558
  setTableDimensions() {
1459
- const table = select(this._tableDiv);
1460
- table
1461
- // The last value is for compensating the padding set on the table element, changing padding in css, will need change in these two lines
1462
- .style('height', this._dims.height + 'px');
1463
- table.style('width', this._dims.width - this._rem * 0.65 + 'px');
1559
+ const table = select(this.tableDiv);
1560
+ table.style('display', 'flex').style('height', '100%').style('width', '100%');
1464
1561
  }
1465
1562
  // Extracting all headings from data and returning a string with <th>-elements with headings
1466
1563
  headings() {
1467
- let headingsString = `<th scope="col">${this._chartData.x}</th>`;
1468
- this._chartData.data.series.forEach((elem) => {
1564
+ let headingsString = `<th scope="col">${this.chartData.x}</th>`;
1565
+ this.chartData.data.series.forEach((elem) => {
1469
1566
  headingsString = headingsString.concat(`<th scope="col">${elem.title}</th>`);
1470
1567
  });
1471
1568
  return headingsString;
@@ -1473,13 +1570,13 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1473
1570
  // Building the table body
1474
1571
  tableBody() {
1475
1572
  let body = '';
1476
- if (this._chartData && this._chartData.data) {
1477
- const loopable = this._chartData.data.xValueNames
1478
- ? this._chartData.data.xValueNames
1479
- : this._chartData.data.xValues;
1573
+ if (this.chartData && this.chartData.data) {
1574
+ const loopable = this.chartData.data.xValueNames
1575
+ ? this.chartData.data.xValueNames
1576
+ : this.chartData.data.xValues;
1480
1577
  loopable.forEach((elem, index) => {
1481
1578
  let cells = '';
1482
- this._chartData.data.series.forEach((serie) => {
1579
+ this.chartData.data.series.forEach((serie) => {
1483
1580
  cells = cells.concat(`<td>${serie.yValues[index] != null ? serie.yValues[index].toLocaleString() : '-'}</td>`);
1484
1581
  });
1485
1582
  body = body.concat(`<tr><th scope='row'>${elem}${cells}</th></tr>`);
@@ -1488,21 +1585,18 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1488
1585
  return body;
1489
1586
  }
1490
1587
  render() {
1491
- var _a, _b, _c, _d, _e;
1588
+ var _a, _b, _c, _d;
1492
1589
  // Setting header
1493
1590
  let heading = '';
1494
- if (this._chartData) {
1495
- if (!this._chartData.subTitle)
1496
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}>`;
1497
- else {
1498
- if (!this._chartData.infoText)
1499
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${this._chartData.subTitle}</p>`;
1500
- else
1501
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${(_a = this._chartData) === null || _a === void 0 ? void 0 : _a.subTitle}
1502
- <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>`;
1503
- }
1591
+ if (this.chartData) {
1592
+ if (!this.chartData.subTitle)
1593
+ heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}>`;
1594
+ else
1595
+ heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${this.chartData.subTitle}</p>`;
1596
+ if (this.chartData.infoText)
1597
+ 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>`;
1504
1598
  }
1505
- 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) }, ' ')));
1599
+ 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) }, ' ')));
1506
1600
  }
1507
1601
  get hostElement() { return this; }
1508
1602
  static get watchers() { return {