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