@designsystem-se/af 37.0.2 → 38.0.1-beta.0

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