@designsystem-se/af 35.4.1-beta.0 → 35.4.1-beta.2

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 (1336) hide show
  1. package/components/digi-bar-chart.js +684 -470
  2. package/components/digi-calendar-datepicker.js +13 -13
  3. package/components/digi-calendar-week-view.js +3 -3
  4. package/components/digi-calendar.js +1 -1
  5. package/components/digi-chart-line.js +5 -5
  6. package/components/digi-code-block.js +1 -1
  7. package/components/digi-code-example.js +9 -9
  8. package/components/digi-code.js +1 -1
  9. package/components/digi-context-menu.js +5 -5
  10. package/components/digi-dialog.js +6 -6
  11. package/components/digi-expandable-accordion.js +3 -3
  12. package/components/digi-expandable-faq-item.js +6 -6
  13. package/components/digi-expandable-faq.js +2 -2
  14. package/components/digi-footer-card.js +1 -1
  15. package/components/digi-footer.js +4 -4
  16. package/components/digi-form-category-filter.js +4 -4
  17. package/components/digi-form-checkbox.js +1 -1
  18. package/components/digi-form-error-list.js +13 -13
  19. package/components/digi-form-fieldset.js +1 -1
  20. package/components/digi-form-file-upload.js +18 -18
  21. package/components/digi-form-filter.js +7 -7
  22. package/components/digi-form-input-search.js +9 -9
  23. package/components/digi-form-input.js +1 -1
  24. package/components/digi-form-label.js +1 -1
  25. package/components/digi-form-radiobutton.js +1 -1
  26. package/components/digi-form-radiogroup.js +2 -2
  27. package/components/digi-form-receipt.js +3 -3
  28. package/components/digi-form-select-filter.js +16 -16
  29. package/components/digi-form-select.js +1 -1
  30. package/components/digi-form-textarea.js +8 -8
  31. package/components/digi-form-validation-message.js +1 -1
  32. package/components/digi-header-avatar.js +3 -3
  33. package/components/digi-header-navigation-item.js +1 -1
  34. package/components/digi-header-navigation.js +7 -7
  35. package/components/digi-header-notification.js +2 -2
  36. package/components/digi-header.js +6 -6
  37. package/components/digi-icon-accessibility-deaf.js +2 -2
  38. package/components/digi-icon-accessibility-universal.js +2 -2
  39. package/components/digi-icon-apple.js +2 -2
  40. package/components/digi-icon-archive-outline.js +2 -2
  41. package/components/digi-icon-archive.js +2 -2
  42. package/components/digi-icon-arrow-back.js +2 -2
  43. package/components/digi-icon-arrow-down.js +2 -2
  44. package/components/digi-icon-arrow-left.js +2 -2
  45. package/components/digi-icon-arrow-right.js +1 -1
  46. package/components/digi-icon-arrow-sign-in.js +2 -2
  47. package/components/digi-icon-arrow-sign-out.js +2 -2
  48. package/components/digi-icon-arrow-up.js +2 -2
  49. package/components/digi-icon-at.js +2 -2
  50. package/components/digi-icon-bars.js +1 -1
  51. package/components/digi-icon-bell-filled.js +2 -2
  52. package/components/digi-icon-bell.js +2 -2
  53. package/components/digi-icon-book.js +2 -2
  54. package/components/digi-icon-bookmark-outline.js +2 -2
  55. package/components/digi-icon-bookmark-solid.js +2 -2
  56. package/components/digi-icon-bubble-ellipsis.js +2 -2
  57. package/components/digi-icon-bubble.js +2 -2
  58. package/components/digi-icon-building-outline.js +2 -2
  59. package/components/digi-icon-building-solid.js +2 -2
  60. package/components/digi-icon-bullseye.js +2 -2
  61. package/components/digi-icon-calculator-solid.js +2 -2
  62. package/components/digi-icon-calendar-alt-alert.js +2 -2
  63. package/components/digi-icon-calendar-alt.js +1 -1
  64. package/components/digi-icon-calendar.js +2 -2
  65. package/components/digi-icon-caret-circle-right.js +2 -2
  66. package/components/digi-icon-caret-down.js +1 -1
  67. package/components/digi-icon-caret-left.js +2 -2
  68. package/components/digi-icon-caret-right.js +2 -2
  69. package/components/digi-icon-caret-up.js +1 -1
  70. package/components/digi-icon-chart.js +1 -1
  71. package/components/digi-icon-chat.js +2 -2
  72. package/components/digi-icon-check-circle-reg-alt.js +2 -2
  73. package/components/digi-icon-check-circle-solid.js +1 -1
  74. package/components/digi-icon-check.js +1 -1
  75. package/components/digi-icon-checklist.js +2 -2
  76. package/components/digi-icon-chevron-down.js +1 -1
  77. package/components/digi-icon-chevron-left.js +1 -1
  78. package/components/digi-icon-chevron-right.js +1 -1
  79. package/components/digi-icon-chevron-up.js +2 -2
  80. package/components/digi-icon-clock.js +2 -2
  81. package/components/digi-icon-communication-play-solid.js +2 -2
  82. package/components/digi-icon-compress-alt.js +2 -2
  83. package/components/digi-icon-comunication-case.js +2 -2
  84. package/components/digi-icon-comunication-flag.js +2 -2
  85. package/components/digi-icon-comunication-graduate.js +2 -2
  86. package/components/digi-icon-comunication-play.js +2 -2
  87. package/components/digi-icon-cooperation.js +2 -2
  88. package/components/digi-icon-copy.js +1 -1
  89. package/components/digi-icon-danger-outline.js +2 -2
  90. package/components/digi-icon-download.js +2 -2
  91. package/components/digi-icon-dxa.js +2 -2
  92. package/components/digi-icon-edit.js +2 -2
  93. package/components/digi-icon-ellipsis.js +2 -2
  94. package/components/digi-icon-envelope-filled.js +2 -2
  95. package/components/digi-icon-envelope.js +2 -2
  96. package/components/digi-icon-exclamation-circle-filled.js +2 -2
  97. package/components/digi-icon-exclamation-triangle-filled.js +2 -2
  98. package/components/digi-icon-exclamation-triangle-warning.js +2 -2
  99. package/components/digi-icon-exclamation-triangle.js +2 -2
  100. package/components/digi-icon-expand-alt.js +2 -2
  101. package/components/digi-icon-external-link-alt.js +1 -1
  102. package/components/digi-icon-eye-slash.js +2 -2
  103. package/components/digi-icon-eye.js +2 -2
  104. package/components/digi-icon-facebook-square.js +2 -2
  105. package/components/digi-icon-file-add.js +1 -1
  106. package/components/digi-icon-file-document.js +2 -2
  107. package/components/digi-icon-file-excel.js +2 -2
  108. package/components/digi-icon-file-export.js +1 -1
  109. package/components/digi-icon-file-governing.js +2 -2
  110. package/components/digi-icon-file-pdf.js +2 -2
  111. package/components/digi-icon-file-powerpoint.js +2 -2
  112. package/components/digi-icon-file-remove.js +1 -1
  113. package/components/digi-icon-file-word.js +2 -2
  114. package/components/digi-icon-film.js +2 -2
  115. package/components/digi-icon-filter.js +2 -2
  116. package/components/digi-icon-folder-add.js +1 -1
  117. package/components/digi-icon-folder-directory.js +1 -1
  118. package/components/digi-icon-folder-open.js +1 -1
  119. package/components/digi-icon-folder.js +1 -1
  120. package/components/digi-icon-globe-filled.js +2 -2
  121. package/components/digi-icon-globe.js +2 -2
  122. package/components/digi-icon-headphones.js +2 -2
  123. package/components/digi-icon-heart-solid.js +2 -2
  124. package/components/digi-icon-heart.js +2 -2
  125. package/components/digi-icon-history.js +2 -2
  126. package/components/digi-icon-home.js +2 -2
  127. package/components/digi-icon-image.js +2 -2
  128. package/components/digi-icon-info-circle-solid.js +2 -2
  129. package/components/digi-icon-input-select-marker.js +1 -1
  130. package/components/digi-icon-instagram.js +2 -2
  131. package/components/digi-icon-job-suggestion.js +2 -2
  132. package/components/digi-icon-language-outline.js +2 -2
  133. package/components/digi-icon-language.js +2 -2
  134. package/components/digi-icon-laptop-phone.js +2 -2
  135. package/components/digi-icon-lattlast.js +2 -2
  136. package/components/digi-icon-licence-bus.js +2 -2
  137. package/components/digi-icon-licence-car.js +2 -2
  138. package/components/digi-icon-licence-motorcycle.js +2 -2
  139. package/components/digi-icon-licence-truck.js +2 -2
  140. package/components/digi-icon-lightbulb.js +2 -2
  141. package/components/digi-icon-linkedin-in.js +2 -2
  142. package/components/digi-icon-list-ul.js +1 -1
  143. package/components/digi-icon-lock.js +2 -2
  144. package/components/digi-icon-marker-filled.js +2 -2
  145. package/components/digi-icon-marker.js +2 -2
  146. package/components/digi-icon-media-course.js +2 -2
  147. package/components/digi-icon-media-podcast.js +2 -2
  148. package/components/digi-icon-microphone-off.js +2 -2
  149. package/components/digi-icon-microphone.js +2 -2
  150. package/components/digi-icon-minus.js +1 -1
  151. package/components/digi-icon-move.js +2 -2
  152. package/components/digi-icon-news.js +1 -1
  153. package/components/digi-icon-notification-error.js +1 -1
  154. package/components/digi-icon-notification-info.js +1 -1
  155. package/components/digi-icon-notification-succes.js +1 -1
  156. package/components/digi-icon-notification-warning.js +1 -1
  157. package/components/digi-icon-online-computervideo.js +1 -1
  158. package/components/digi-icon-online-interview.js +2 -2
  159. package/components/digi-icon-online-meeting.js +2 -2
  160. package/components/digi-icon-online-task.js +2 -2
  161. package/components/digi-icon-online-video.js +1 -1
  162. package/components/digi-icon-open-source.js +2 -2
  163. package/components/digi-icon-palette.js +2 -2
  164. package/components/digi-icon-paperclip.js +1 -1
  165. package/components/digi-icon-paste.js +1 -1
  166. package/components/digi-icon-pen.js +2 -2
  167. package/components/digi-icon-phone-hangup.js +2 -2
  168. package/components/digi-icon-phone.js +2 -2
  169. package/components/digi-icon-plus.js +1 -1
  170. package/components/digi-icon-pod.js +1 -1
  171. package/components/digi-icon-print.js +2 -2
  172. package/components/digi-icon-read.js +2 -2
  173. package/components/digi-icon-redo.js +2 -2
  174. package/components/digi-icon-scale.js +1 -1
  175. package/components/digi-icon-screensharing-off.js +2 -2
  176. package/components/digi-icon-screensharing.js +2 -2
  177. package/components/digi-icon-search.js +1 -1
  178. package/components/digi-icon-send-outline.js +2 -2
  179. package/components/digi-icon-send-solid.js +2 -2
  180. package/components/digi-icon-settings.js +2 -2
  181. package/components/digi-icon-share-alt.js +2 -2
  182. package/components/digi-icon-share-chain.js +2 -2
  183. package/components/digi-icon-sign.js +2 -2
  184. package/components/digi-icon-sliders-h.js +2 -2
  185. package/components/digi-icon-sokkandidat.js +2 -2
  186. package/components/digi-icon-sort-down.js +2 -2
  187. package/components/digi-icon-sort-up.js +2 -2
  188. package/components/digi-icon-sort.js +2 -2
  189. package/components/digi-icon-spinner.js +1 -1
  190. package/components/digi-icon-star-reg.js +2 -2
  191. package/components/digi-icon-star.js +2 -2
  192. package/components/digi-icon-suitcase-outline.js +2 -2
  193. package/components/digi-icon-suitcase-solid.js +2 -2
  194. package/components/digi-icon-system-assistance.js +2 -2
  195. package/components/digi-icon-table-column.js +2 -2
  196. package/components/digi-icon-table-row.js +2 -2
  197. package/components/digi-icon-table.js +1 -1
  198. package/components/digi-icon-task-done.js +2 -2
  199. package/components/digi-icon-toggle-off.js +2 -2
  200. package/components/digi-icon-toggle-on.js +2 -2
  201. package/components/digi-icon-trash.js +1 -1
  202. package/components/digi-icon-twitter.js +2 -2
  203. package/components/digi-icon-tyck-till.js +2 -2
  204. package/components/digi-icon-unlock.js +2 -2
  205. package/components/digi-icon-update.js +2 -2
  206. package/components/digi-icon-upload.js +2 -2
  207. package/components/digi-icon-user-add.js +1 -1
  208. package/components/digi-icon-user-alt.js +2 -2
  209. package/components/digi-icon-user-edit.js +1 -1
  210. package/components/digi-icon-users-solid.js +2 -2
  211. package/components/digi-icon-validation-error.js +1 -1
  212. package/components/digi-icon-validation-success.js +1 -1
  213. package/components/digi-icon-validation-warning.js +1 -1
  214. package/components/digi-icon-videocamera-off.js +2 -2
  215. package/components/digi-icon-videocamera.js +2 -2
  216. package/components/digi-icon-volume.js +2 -2
  217. package/components/digi-icon-web-tv.js +2 -2
  218. package/components/digi-icon-webinar.js +1 -1
  219. package/components/digi-icon-wifi-signal0.js +2 -2
  220. package/components/digi-icon-wifi-signal1.js +2 -2
  221. package/components/digi-icon-wifi-signal2.js +2 -2
  222. package/components/digi-icon-wifi-signal3.js +2 -2
  223. package/components/digi-icon-window.js +2 -2
  224. package/components/digi-icon-x-button-outline.js +1 -1
  225. package/components/digi-icon-x-button.js +2 -2
  226. package/components/digi-icon-x.js +1 -1
  227. package/components/digi-icon-youtube.js +2 -2
  228. package/components/digi-info-card-multi-container.js +2 -2
  229. package/components/digi-info-card-multi.js +11 -11
  230. package/components/digi-info-card.js +5 -5
  231. package/components/digi-layout-block.js +1 -1
  232. package/components/digi-layout-columns.js +1 -1
  233. package/components/digi-layout-container.js +1 -1
  234. package/components/digi-link-button.js +2 -2
  235. package/components/digi-link-external.js +1 -1
  236. package/components/digi-link-internal.js +1 -1
  237. package/components/digi-link.js +1 -1
  238. package/components/digi-list.js +3 -3
  239. package/components/digi-loader-skeleton.js +3 -3
  240. package/components/digi-loader-spinner.js +2 -2
  241. package/components/digi-logo.js +2 -2
  242. package/components/digi-media-figure.js +1 -1
  243. package/components/digi-media-image.js +1 -1
  244. package/components/digi-navigation-breadcrumbs.js +2 -2
  245. package/components/digi-navigation-pagination.js +10 -10
  246. package/components/digi-navigation-sidebar-button.js +1 -1
  247. package/components/digi-navigation-sidebar.js +5 -5
  248. package/components/digi-navigation-vertical-menu-item.js +8 -8
  249. package/components/digi-navigation-vertical-menu.js +1 -1
  250. package/components/digi-notification-alert.js +1 -1
  251. package/components/digi-notification-error-page.js +6 -6
  252. package/components/digi-progress-circle.js +10 -10
  253. package/components/digi-progress-indicator.js +6 -6
  254. package/components/digi-progress-list-item.js +8 -8
  255. package/components/digi-progress-list.js +2 -2
  256. package/components/digi-progressbar.js +2 -2
  257. package/components/digi-quote.js +3 -3
  258. package/components/digi-table.js +1 -1
  259. package/components/digi-tablist-panel.js +2 -2
  260. package/components/digi-tablist.js +7 -7
  261. package/components/digi-tag-media.js +1 -1
  262. package/components/digi-tag.js +2 -2
  263. package/components/digi-title-logo.js +1 -1
  264. package/components/digi-tools-feedback-banner.js +6 -6
  265. package/components/digi-tools-feedback-rating.js +7 -7
  266. package/components/digi-tools-feedback.js +3 -3
  267. package/components/digi-tools-theme-provider.js +1 -1
  268. package/components/digi-typography-heading-jumbo.js +1 -1
  269. package/components/digi-typography-meta.js +1 -1
  270. package/components/digi-typography-preamble.js +1 -1
  271. package/components/digi-typography-time.js +1 -1
  272. package/components/digi-typography.js +1 -1
  273. package/components/digi-util-breakpoint-observer.js +1 -1
  274. package/components/digi-util-detect-click-outside.js +1 -1
  275. package/components/digi-util-detect-focus-outside.js +1 -1
  276. package/components/digi-util-intersection-observer.js +1 -1
  277. package/components/digi-util-keydown-handler.js +1 -1
  278. package/components/digi-util-keyup-handler.js +1 -1
  279. package/components/digi-util-resize-observer.js +1 -1
  280. package/components/{p-291680dc.js → p-006daf6c.js} +2 -2
  281. package/components/{p-f516f6d6.js → p-013b272d.js} +2 -2
  282. package/components/{p-15bbce60.js → p-017e5253.js} +1 -1
  283. package/components/{p-4caaef7a.js → p-02eaef05.js} +2 -2
  284. package/components/{p-472bc7d3.js → p-03338211.js} +2 -2
  285. package/components/{p-fccc9322.js → p-0c5076db.js} +3 -3
  286. package/components/{p-6b275dc1.js → p-0c854af1.js} +2 -2
  287. package/components/{p-4437e1a8.js → p-0dd5a8f7.js} +1 -1
  288. package/components/{p-64a9f915.js → p-11278347.js} +2 -2
  289. package/components/{p-7492d61e.js → p-12ec96fa.js} +2 -2
  290. package/components/{p-95dc2a66.js → p-1a145be2.js} +2 -2
  291. package/components/{p-60394bdb.js → p-23755c77.js} +2 -2
  292. package/components/{p-127b0f7a.js → p-24a74dc2.js} +2 -2
  293. package/components/{p-5c935094.js → p-26f2230b.js} +8 -8
  294. package/components/{p-3ea21529.js → p-2bcbe128.js} +2 -2
  295. package/components/{p-b08505a8.js → p-2c01b4f7.js} +2 -2
  296. package/components/{p-8a2e80d2.js → p-32226717.js} +1 -1
  297. package/components/{p-cf527784.js → p-3344671c.js} +2 -2
  298. package/components/{p-42c4e18d.js → p-33f08ec3.js} +1 -1
  299. package/components/{p-a90980f7.js → p-34685ea4.js} +2 -2
  300. package/components/{p-4458129b.js → p-356b716a.js} +2 -2
  301. package/components/{p-2d8b68de.js → p-3748dc79.js} +2 -2
  302. package/components/{p-9f12ac0c.js → p-388030df.js} +8 -8
  303. package/components/{p-f7fd3e36.js → p-3c5d25a0.js} +1 -1
  304. package/components/{p-b5523600.js → p-3c9cea93.js} +2 -2
  305. package/components/{p-82463cc2.js → p-3e15a1be.js} +2 -2
  306. package/components/{p-300490fb.js → p-4241698a.js} +2 -2
  307. package/components/{p-61fe9d78.js → p-49c80f22.js} +2 -2
  308. package/components/{p-6013f971.js → p-4a93de6b.js} +2 -2
  309. package/components/{p-965664d4.js → p-52fe1a97.js} +10 -10
  310. package/components/{p-d14fe54d.js → p-581b3b56.js} +2 -2
  311. package/components/{p-299871dc.js → p-5bbb5a67.js} +2 -2
  312. package/components/{p-f147733f.js → p-5ef44852.js} +2 -2
  313. package/components/{p-b5b891f2.js → p-68b8b9a8.js} +3 -3
  314. package/components/{p-9bcf4599.js → p-6a4babd1.js} +2 -2
  315. package/components/{p-f9e6f45e.js → p-6aa77536.js} +2 -2
  316. package/components/{p-6a652c1c.js → p-6db48210.js} +2 -2
  317. package/components/{p-d18dccc2.js → p-73101c41.js} +2 -2
  318. package/components/{p-372e42fa.js → p-73796afb.js} +2 -2
  319. package/components/{p-ab1d6ae3.js → p-7811ea5a.js} +10 -10
  320. package/components/{p-39021139.js → p-85197207.js} +2 -2
  321. package/components/{p-042282c9.js → p-8bc620b1.js} +2 -2
  322. package/components/{p-bbaf1285.js → p-94603530.js} +2 -2
  323. package/components/{p-82085ee1.js → p-954224b5.js} +2 -2
  324. package/components/{p-3cbdeea5.js → p-9b37e59c.js} +1 -1
  325. package/components/{p-d309b91a.js → p-a2c97c2e.js} +2 -2
  326. package/components/{p-2a0c0c78.js → p-aa5b937d.js} +2 -2
  327. package/components/{p-96a4c4dc.js → p-af9bf7a3.js} +2 -2
  328. package/components/{p-aed6db71.js → p-b2ff86cf.js} +2 -2
  329. package/components/{p-c495f54e.js → p-bd545c73.js} +2 -2
  330. package/components/{p-1440ff46.js → p-c139a46c.js} +2 -2
  331. package/components/{p-ba757bc9.js → p-c6c4ee59.js} +3 -3
  332. package/components/{p-364d38fc.js → p-c90fed99.js} +2 -2
  333. package/components/{p-0e6bb1ce.js → p-cc5bd9f9.js} +2 -2
  334. package/components/{p-f5e13d2e.js → p-ccccd7bb.js} +1 -1
  335. package/components/{p-764c106c.js → p-cfb33ac7.js} +1 -1
  336. package/components/{p-73c973fc.js → p-d0884709.js} +8 -8
  337. package/components/{p-71bad47e.js → p-d1fc55fd.js} +1 -1
  338. package/components/{p-cfa81e91.js → p-df47eea9.js} +1 -1
  339. package/components/{p-6c7ff092.js → p-e6a40b0a.js} +2 -2
  340. package/components/{p-ad94e4f3.js → p-f630b5d3.js} +4 -4
  341. package/custom-elements.json +1 -1
  342. package/dist/cjs/digi-bar-chart_27.cjs.entry.js +721 -507
  343. package/dist/cjs/digi-calendar_2.cjs.entry.js +2 -2
  344. package/dist/cjs/digi-chart-line.cjs.entry.js +1 -1
  345. package/dist/cjs/digi-code-block_3.cjs.entry.js +4 -4
  346. package/dist/cjs/digi-code-example.cjs.entry.js +4 -4
  347. package/dist/cjs/digi-code.cjs.entry.js +1 -1
  348. package/dist/cjs/digi-context-menu.cjs.entry.js +3 -3
  349. package/dist/cjs/digi-dialog.cjs.entry.js +3 -3
  350. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +1 -1
  351. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +4 -4
  352. package/dist/cjs/digi-expandable-faq.cjs.entry.js +2 -2
  353. package/dist/cjs/digi-footer-card.cjs.entry.js +1 -1
  354. package/dist/cjs/digi-footer.cjs.entry.js +1 -1
  355. package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
  356. package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
  357. package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -3
  358. package/dist/cjs/digi-form-file-upload.cjs.entry.js +7 -7
  359. package/dist/cjs/digi-form-filter.cjs.entry.js +5 -5
  360. package/dist/cjs/digi-form-input-search.cjs.entry.js +2 -2
  361. package/dist/cjs/digi-form-input.cjs.entry.js +3 -3
  362. package/dist/cjs/digi-form-label_5.cjs.entry.js +8 -8
  363. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +2 -2
  364. package/dist/cjs/digi-form-receipt.cjs.entry.js +1 -1
  365. package/dist/cjs/digi-form-select-filter.cjs.entry.js +7 -7
  366. package/dist/cjs/digi-form-select_2.cjs.entry.js +6 -6
  367. package/dist/cjs/digi-form-textarea.cjs.entry.js +3 -3
  368. package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +2 -2
  369. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +2 -2
  370. package/dist/cjs/digi-icon-apple.cjs.entry.js +2 -2
  371. package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +2 -2
  372. package/dist/cjs/digi-icon-archive.cjs.entry.js +2 -2
  373. package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +2 -2
  374. package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +2 -2
  375. package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +2 -2
  376. package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +2 -2
  377. package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +2 -2
  378. package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +2 -2
  379. package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +2 -2
  380. package/dist/cjs/digi-icon-at.cjs.entry.js +2 -2
  381. package/dist/cjs/digi-icon-bell.cjs.entry.js +2 -2
  382. package/dist/cjs/digi-icon-book.cjs.entry.js +2 -2
  383. package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +2 -2
  384. package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +2 -2
  385. package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +2 -2
  386. package/dist/cjs/digi-icon-bubble.cjs.entry.js +2 -2
  387. package/dist/cjs/digi-icon-building-outline.cjs.entry.js +2 -2
  388. package/dist/cjs/digi-icon-building-solid.cjs.entry.js +2 -2
  389. package/dist/cjs/digi-icon-bullseye.cjs.entry.js +2 -2
  390. package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +2 -2
  391. package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +2 -2
  392. package/dist/cjs/digi-icon-calendar.cjs.entry.js +2 -2
  393. package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +2 -2
  394. package/dist/cjs/digi-icon-caret-left.cjs.entry.js +2 -2
  395. package/dist/cjs/digi-icon-caret-right.cjs.entry.js +2 -2
  396. package/dist/cjs/digi-icon-chat.cjs.entry.js +2 -2
  397. package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +2 -2
  398. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +8 -8
  399. package/dist/cjs/digi-icon-check.cjs.entry.js +2 -2
  400. package/dist/cjs/digi-icon-checklist.cjs.entry.js +2 -2
  401. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +2 -2
  402. package/dist/cjs/digi-icon-chevron-left.cjs.entry.js +2 -2
  403. package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +2 -2
  404. package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +2 -2
  405. package/dist/cjs/digi-icon-clock.cjs.entry.js +2 -2
  406. package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +2 -2
  407. package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +2 -2
  408. package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +2 -2
  409. package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +2 -2
  410. package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +2 -2
  411. package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +2 -2
  412. package/dist/cjs/digi-icon-cooperation.cjs.entry.js +2 -2
  413. package/dist/cjs/digi-icon-copy.cjs.entry.js +2 -2
  414. package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +2 -2
  415. package/dist/cjs/digi-icon-download.cjs.entry.js +2 -2
  416. package/dist/cjs/digi-icon-dxa.cjs.entry.js +2 -2
  417. package/dist/cjs/digi-icon-edit.cjs.entry.js +2 -2
  418. package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +2 -2
  419. package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +2 -2
  420. package/dist/cjs/digi-icon-envelope.cjs.entry.js +2 -2
  421. package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +2 -2
  422. package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +2 -2
  423. package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +2 -2
  424. package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +2 -2
  425. package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +2 -2
  426. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +3 -3
  427. package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +2 -2
  428. package/dist/cjs/digi-icon-eye.cjs.entry.js +2 -2
  429. package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +2 -2
  430. package/dist/cjs/digi-icon-file-add.cjs.entry.js +1 -1
  431. package/dist/cjs/digi-icon-file-document.cjs.entry.js +2 -2
  432. package/dist/cjs/digi-icon-file-excel.cjs.entry.js +2 -2
  433. package/dist/cjs/digi-icon-file-export.cjs.entry.js +1 -1
  434. package/dist/cjs/digi-icon-file-governing.cjs.entry.js +2 -2
  435. package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +2 -2
  436. package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +2 -2
  437. package/dist/cjs/digi-icon-file-remove.cjs.entry.js +1 -1
  438. package/dist/cjs/digi-icon-file-word.cjs.entry.js +2 -2
  439. package/dist/cjs/digi-icon-film.cjs.entry.js +2 -2
  440. package/dist/cjs/digi-icon-filter.cjs.entry.js +2 -2
  441. package/dist/cjs/digi-icon-folder-add.cjs.entry.js +1 -1
  442. package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +1 -1
  443. package/dist/cjs/digi-icon-folder-open.cjs.entry.js +1 -1
  444. package/dist/cjs/digi-icon-folder.cjs.entry.js +1 -1
  445. package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +2 -2
  446. package/dist/cjs/digi-icon-globe.cjs.entry.js +2 -2
  447. package/dist/cjs/digi-icon-headphones.cjs.entry.js +2 -2
  448. package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +2 -2
  449. package/dist/cjs/digi-icon-heart.cjs.entry.js +2 -2
  450. package/dist/cjs/digi-icon-history.cjs.entry.js +2 -2
  451. package/dist/cjs/digi-icon-home.cjs.entry.js +2 -2
  452. package/dist/cjs/digi-icon-image.cjs.entry.js +2 -2
  453. package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +2 -2
  454. package/dist/cjs/digi-icon-instagram.cjs.entry.js +2 -2
  455. package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +2 -2
  456. package/dist/cjs/digi-icon-language-outline.cjs.entry.js +2 -2
  457. package/dist/cjs/digi-icon-language.cjs.entry.js +2 -2
  458. package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +2 -2
  459. package/dist/cjs/digi-icon-lattlast.cjs.entry.js +2 -2
  460. package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +2 -2
  461. package/dist/cjs/digi-icon-licence-car.cjs.entry.js +2 -2
  462. package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +2 -2
  463. package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +2 -2
  464. package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +2 -2
  465. package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +2 -2
  466. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +12 -12
  467. package/dist/cjs/digi-icon-lock.cjs.entry.js +2 -2
  468. package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +2 -2
  469. package/dist/cjs/digi-icon-marker.cjs.entry.js +2 -2
  470. package/dist/cjs/digi-icon-media-course.cjs.entry.js +2 -2
  471. package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +2 -2
  472. package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +2 -2
  473. package/dist/cjs/digi-icon-microphone.cjs.entry.js +2 -2
  474. package/dist/cjs/digi-icon-move.cjs.entry.js +2 -2
  475. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +8 -8
  476. package/dist/cjs/digi-icon-online-interview.cjs.entry.js +2 -2
  477. package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +2 -2
  478. package/dist/cjs/digi-icon-online-task.cjs.entry.js +2 -2
  479. package/dist/cjs/digi-icon-open-source.cjs.entry.js +2 -2
  480. package/dist/cjs/digi-icon-palette.cjs.entry.js +2 -2
  481. package/dist/cjs/digi-icon-paste.cjs.entry.js +1 -1
  482. package/dist/cjs/digi-icon-pen.cjs.entry.js +2 -2
  483. package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +2 -2
  484. package/dist/cjs/digi-icon-phone.cjs.entry.js +2 -2
  485. package/dist/cjs/digi-icon-print.cjs.entry.js +2 -2
  486. package/dist/cjs/digi-icon-read.cjs.entry.js +2 -2
  487. package/dist/cjs/digi-icon-redo.cjs.entry.js +2 -2
  488. package/dist/cjs/digi-icon-scale.cjs.entry.js +1 -1
  489. package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +2 -2
  490. package/dist/cjs/digi-icon-screensharing.cjs.entry.js +2 -2
  491. package/dist/cjs/digi-icon-search.cjs.entry.js +2 -2
  492. package/dist/cjs/digi-icon-send-outline.cjs.entry.js +2 -2
  493. package/dist/cjs/digi-icon-send-solid.cjs.entry.js +2 -2
  494. package/dist/cjs/digi-icon-settings.cjs.entry.js +2 -2
  495. package/dist/cjs/digi-icon-share-alt.cjs.entry.js +2 -2
  496. package/dist/cjs/digi-icon-share-chain.cjs.entry.js +2 -2
  497. package/dist/cjs/digi-icon-sign.cjs.entry.js +2 -2
  498. package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +2 -2
  499. package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +2 -2
  500. package/dist/cjs/digi-icon-sort-down.cjs.entry.js +2 -2
  501. package/dist/cjs/digi-icon-sort-up.cjs.entry.js +2 -2
  502. package/dist/cjs/digi-icon-sort.cjs.entry.js +2 -2
  503. package/dist/cjs/digi-icon-spinner.cjs.entry.js +2 -2
  504. package/dist/cjs/digi-icon-star-reg.cjs.entry.js +2 -2
  505. package/dist/cjs/digi-icon-star.cjs.entry.js +2 -2
  506. package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +2 -2
  507. package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +2 -2
  508. package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +2 -2
  509. package/dist/cjs/digi-icon-table-column.cjs.entry.js +2 -2
  510. package/dist/cjs/digi-icon-table-row.cjs.entry.js +2 -2
  511. package/dist/cjs/digi-icon-task-done.cjs.entry.js +2 -2
  512. package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +2 -2
  513. package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +2 -2
  514. package/dist/cjs/digi-icon-twitter.cjs.entry.js +2 -2
  515. package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +2 -2
  516. package/dist/cjs/digi-icon-unlock.cjs.entry.js +2 -2
  517. package/dist/cjs/digi-icon-update.cjs.entry.js +2 -2
  518. package/dist/cjs/digi-icon-upload.cjs.entry.js +2 -2
  519. package/dist/cjs/digi-icon-user-add.cjs.entry.js +1 -1
  520. package/dist/cjs/digi-icon-user-alt.cjs.entry.js +2 -2
  521. package/dist/cjs/digi-icon-user-edit.cjs.entry.js +1 -1
  522. package/dist/cjs/digi-icon-users-solid.cjs.entry.js +2 -2
  523. package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +2 -2
  524. package/dist/cjs/digi-icon-videocamera.cjs.entry.js +2 -2
  525. package/dist/cjs/digi-icon-volume.cjs.entry.js +2 -2
  526. package/dist/cjs/digi-icon-web-tv.cjs.entry.js +2 -2
  527. package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +2 -2
  528. package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +2 -2
  529. package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +2 -2
  530. package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +2 -2
  531. package/dist/cjs/digi-icon-window.cjs.entry.js +2 -2
  532. package/dist/cjs/digi-icon-x-button.cjs.entry.js +2 -2
  533. package/dist/cjs/digi-icon-youtube.cjs.entry.js +2 -2
  534. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +1 -1
  535. package/dist/cjs/digi-info-card-multi.cjs.entry.js +1 -1
  536. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  537. package/dist/cjs/digi-layout-columns.cjs.entry.js +1 -1
  538. package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
  539. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  540. package/dist/cjs/digi-link.cjs.entry.js +1 -1
  541. package/dist/cjs/digi-list.cjs.entry.js +1 -1
  542. package/dist/cjs/digi-loader-skeleton.cjs.entry.js +3 -3
  543. package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
  544. package/dist/cjs/digi-media-figure.cjs.entry.js +1 -1
  545. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +2 -2
  546. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +6 -6
  547. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
  548. package/dist/cjs/digi-notification-alert.cjs.entry.js +2 -2
  549. package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -3
  550. package/dist/cjs/digi-progress-circle.cjs.entry.js +8 -8
  551. package/dist/cjs/digi-progress-indicator.cjs.entry.js +3 -3
  552. package/dist/cjs/digi-progress-list-item.cjs.entry.js +5 -5
  553. package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
  554. package/dist/cjs/digi-progressbar.cjs.entry.js +2 -2
  555. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  556. package/dist/cjs/digi-table.cjs.entry.js +1 -1
  557. package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
  558. package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
  559. package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
  560. package/dist/cjs/digi-tag.cjs.entry.js +1 -1
  561. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
  562. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +1 -1
  563. package/dist/cjs/digi-tools-feedback.cjs.entry.js +1 -1
  564. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +1 -1
  565. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +1 -1
  566. package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
  567. package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
  568. package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
  569. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
  570. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
  571. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
  572. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
  573. package/dist/collection/components/_chart/bar-chart/bar-chart.css +44 -27
  574. package/dist/collection/components/_chart/bar-chart/bar-chart.js +687 -473
  575. package/dist/collection/components/_chart/chart-line/chart-line.js +3 -3
  576. package/dist/collection/components/_chart/interfaces/line-chart-data.interface.js +1 -0
  577. package/dist/collection/components/_code/code/code.js +1 -1
  578. package/dist/collection/components/_code/code-block/code-block.js +1 -1
  579. package/dist/collection/components/_code/code-example/code-example.js +4 -4
  580. package/dist/collection/components/_dialog/dialog/dialog.js +3 -3
  581. package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +1 -1
  582. package/dist/collection/components/_expandable/expandable-faq/expandable-faq.js +2 -2
  583. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +4 -4
  584. package/dist/collection/components/_footer/footer/footer.js +1 -1
  585. package/dist/collection/components/_footer/footer-card/footer-card.js +1 -1
  586. package/dist/collection/components/_form/form-category-filter/form-category-filter.js +2 -2
  587. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
  588. package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
  589. package/dist/collection/components/_form/form-fieldset/form-fieldset.js +1 -1
  590. package/dist/collection/components/_form/form-file-upload/form-file-upload.js +7 -7
  591. package/dist/collection/components/_form/form-filter/form-filter.js +5 -5
  592. package/dist/collection/components/_form/form-input/form-input.js +3 -3
  593. package/dist/collection/components/_form/form-input-search/form-input-search.js +2 -2
  594. package/dist/collection/components/_form/form-label/form-label.js +1 -1
  595. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
  596. package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +2 -2
  597. package/dist/collection/components/_form/form-receipt/form-receipt.js +1 -1
  598. package/dist/collection/components/_form/form-select/form-select.js +4 -4
  599. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -7
  600. package/dist/collection/components/_form/form-textarea/form-textarea.js +3 -3
  601. package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
  602. package/dist/collection/components/_header/header/header.js +1 -1
  603. package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
  604. package/dist/collection/components/_header/header-navigation/header-navigation.js +3 -3
  605. package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
  606. package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
  607. package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
  608. package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
  609. package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
  610. package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
  611. package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
  612. package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
  613. package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
  614. package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
  615. package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
  616. package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
  617. package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
  618. package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
  619. package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
  620. package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
  621. package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
  622. package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
  623. package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
  624. package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
  625. package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
  626. package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
  627. package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
  628. package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
  629. package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
  630. package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
  631. package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
  632. package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
  633. package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
  634. package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
  635. package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
  636. package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
  637. package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
  638. package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
  639. package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
  640. package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
  641. package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
  642. package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
  643. package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
  644. package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
  645. package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
  646. package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
  647. package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
  648. package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
  649. package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
  650. package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
  651. package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
  652. package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
  653. package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
  654. package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
  655. package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
  656. package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
  657. package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
  658. package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
  659. package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
  660. package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
  661. package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
  662. package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
  663. package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
  664. package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
  665. package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
  666. package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
  667. package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
  668. package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
  669. package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
  670. package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
  671. package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
  672. package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
  673. package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
  674. package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
  675. package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
  676. package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
  677. package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
  678. package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
  679. package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
  680. package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
  681. package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
  682. package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
  683. package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
  684. package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
  685. package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
  686. package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
  687. package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
  688. package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
  689. package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
  690. package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
  691. package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
  692. package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
  693. package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
  694. package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
  695. package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
  696. package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
  697. package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
  698. package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
  699. package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
  700. package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
  701. package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
  702. package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
  703. package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
  704. package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
  705. package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
  706. package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
  707. package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
  708. package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
  709. package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
  710. package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
  711. package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
  712. package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
  713. package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
  714. package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
  715. package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
  716. package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
  717. package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
  718. package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
  719. package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
  720. package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
  721. package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
  722. package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
  723. package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
  724. package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
  725. package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
  726. package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
  727. package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
  728. package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
  729. package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
  730. package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
  731. package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
  732. package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
  733. package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
  734. package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
  735. package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
  736. package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
  737. package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
  738. package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
  739. package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
  740. package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
  741. package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
  742. package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
  743. package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
  744. package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
  745. package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
  746. package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
  747. package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
  748. package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
  749. package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
  750. package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
  751. package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
  752. package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
  753. package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
  754. package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
  755. package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
  756. package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
  757. package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
  758. package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
  759. package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
  760. package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
  761. package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
  762. package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
  763. package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
  764. package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
  765. package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
  766. package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
  767. package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
  768. package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
  769. package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
  770. package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
  771. package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
  772. package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
  773. package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
  774. package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
  775. package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
  776. package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
  777. package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
  778. package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
  779. package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
  780. package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
  781. package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
  782. package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
  783. package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
  784. package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
  785. package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
  786. package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
  787. package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
  788. package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
  789. package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
  790. package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
  791. package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
  792. package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
  793. package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
  794. package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
  795. package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
  796. package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
  797. package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
  798. package/dist/collection/components/_info-card/info-card/info-card.js +1 -1
  799. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +1 -1
  800. package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +1 -1
  801. package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
  802. package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
  803. package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
  804. package/dist/collection/components/_link/link/link.js +1 -1
  805. package/dist/collection/components/_link/link-button/link-button.js +1 -1
  806. package/dist/collection/components/_link/link-external/link-external.js +1 -1
  807. package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
  808. package/dist/collection/components/_list/list/list.js +1 -1
  809. package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
  810. package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
  811. package/dist/collection/components/_logo/title-logo/title-logo.js +1 -1
  812. package/dist/collection/components/_media/media-figure/media-figure.js +1 -1
  813. package/dist/collection/components/_media/media-image/media-image.js +2 -2
  814. package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
  815. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +3 -3
  816. package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
  817. package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
  818. package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
  819. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  820. package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
  821. package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
  822. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
  823. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  824. package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
  825. package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
  826. package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
  827. package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
  828. package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
  829. package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
  830. package/dist/collection/components/_quote/quote/quote.js +1 -1
  831. package/dist/collection/components/_table/table/table.js +1 -1
  832. package/dist/collection/components/_tag/tag/tag.js +1 -1
  833. package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
  834. package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
  835. package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
  836. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
  837. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -1
  838. package/dist/collection/components/_typography/typography/typography.js +1 -1
  839. package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
  840. package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
  841. package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
  842. package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
  843. package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
  844. package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
  845. package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
  846. package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
  847. package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
  848. package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
  849. package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
  850. package/dist/collection/design-tokens/components/_logo.variables.scss +16 -19
  851. package/dist/collection/interfaces.js +2 -2
  852. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +15 -19
  853. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  854. package/dist/digi-arbetsformedlingen/{p-cfad003c.entry.js → p-00e12273.entry.js} +1 -1
  855. package/dist/digi-arbetsformedlingen/{p-5e37e5aa.entry.js → p-012c9ce6.entry.js} +1 -1
  856. package/dist/digi-arbetsformedlingen/{p-21653bf9.entry.js → p-01ec90b7.entry.js} +1 -1
  857. package/dist/digi-arbetsformedlingen/{p-27be8d2b.entry.js → p-0254b7a0.entry.js} +1 -1
  858. package/dist/digi-arbetsformedlingen/{p-5456a3bc.entry.js → p-06c5ef56.entry.js} +1 -1
  859. package/dist/digi-arbetsformedlingen/{p-37459590.entry.js → p-071edd63.entry.js} +1 -1
  860. package/dist/digi-arbetsformedlingen/{p-c168c84a.entry.js → p-07730a8e.entry.js} +1 -1
  861. package/dist/digi-arbetsformedlingen/{p-18006927.entry.js → p-089d928b.entry.js} +1 -1
  862. package/dist/digi-arbetsformedlingen/{p-36229058.entry.js → p-09e4471e.entry.js} +1 -1
  863. package/dist/digi-arbetsformedlingen/{p-ce8d2455.entry.js → p-10d9870d.entry.js} +1 -1
  864. package/dist/digi-arbetsformedlingen/{p-83b3f053.entry.js → p-10dd9a49.entry.js} +1 -1
  865. package/dist/digi-arbetsformedlingen/{p-2196c33b.entry.js → p-1108b754.entry.js} +1 -1
  866. package/dist/digi-arbetsformedlingen/{p-815a97f1.entry.js → p-110d71e2.entry.js} +1 -1
  867. package/dist/digi-arbetsformedlingen/{p-51c9cc1a.entry.js → p-11331424.entry.js} +1 -1
  868. package/dist/digi-arbetsformedlingen/{p-53483e1d.entry.js → p-1246da70.entry.js} +1 -1
  869. package/dist/digi-arbetsformedlingen/{p-38603899.entry.js → p-126d4aca.entry.js} +1 -1
  870. package/dist/digi-arbetsformedlingen/{p-0052b03c.entry.js → p-14c46c37.entry.js} +1 -1
  871. package/dist/digi-arbetsformedlingen/{p-a947fa52.entry.js → p-1535b321.entry.js} +1 -1
  872. package/dist/digi-arbetsformedlingen/p-1743bbb5.entry.js +1 -0
  873. package/dist/digi-arbetsformedlingen/{p-bab6f184.entry.js → p-1783f800.entry.js} +1 -1
  874. package/dist/digi-arbetsformedlingen/{p-87721a1f.entry.js → p-194b2d68.entry.js} +1 -1
  875. package/dist/digi-arbetsformedlingen/{p-664de70c.entry.js → p-1957d85a.entry.js} +1 -1
  876. package/dist/digi-arbetsformedlingen/{p-a67b4609.entry.js → p-1988baf1.entry.js} +1 -1
  877. package/dist/digi-arbetsformedlingen/{p-3ae60edc.entry.js → p-1a191be4.entry.js} +1 -1
  878. package/dist/digi-arbetsformedlingen/{p-3eb4faff.entry.js → p-1b788352.entry.js} +1 -1
  879. package/dist/digi-arbetsformedlingen/{p-4477f14c.entry.js → p-1bc60ab0.entry.js} +1 -1
  880. package/dist/digi-arbetsformedlingen/{p-431baa4e.entry.js → p-1bf78bdd.entry.js} +1 -1
  881. package/dist/digi-arbetsformedlingen/{p-c8751075.entry.js → p-1c10b11b.entry.js} +1 -1
  882. package/dist/digi-arbetsformedlingen/{p-8473e21b.entry.js → p-1d836a3e.entry.js} +1 -1
  883. package/dist/digi-arbetsformedlingen/{p-649c30ed.entry.js → p-20354ce6.entry.js} +1 -1
  884. package/dist/digi-arbetsformedlingen/{p-4eb58cf9.entry.js → p-22c420aa.entry.js} +1 -1
  885. package/dist/digi-arbetsformedlingen/{p-99e4bd13.entry.js → p-2303adba.entry.js} +1 -1
  886. package/dist/digi-arbetsformedlingen/{p-d0a8fa77.entry.js → p-2559ff9c.entry.js} +1 -1
  887. package/dist/digi-arbetsformedlingen/{p-905f3864.entry.js → p-257a08ce.entry.js} +1 -1
  888. package/dist/digi-arbetsformedlingen/{p-e69d2e1c.entry.js → p-26010df0.entry.js} +1 -1
  889. package/dist/digi-arbetsformedlingen/{p-a6a0a040.entry.js → p-2656add6.entry.js} +1 -1
  890. package/dist/digi-arbetsformedlingen/p-275de08b.entry.js +1 -0
  891. package/dist/digi-arbetsformedlingen/{p-c566cef3.entry.js → p-2b9a18c3.entry.js} +1 -1
  892. package/dist/digi-arbetsformedlingen/{p-044b32d7.entry.js → p-2c1bac02.entry.js} +1 -1
  893. package/dist/digi-arbetsformedlingen/{p-780b30f6.entry.js → p-2dac502b.entry.js} +1 -1
  894. package/dist/digi-arbetsformedlingen/{p-63148e09.entry.js → p-2e7d6275.entry.js} +1 -1
  895. package/dist/digi-arbetsformedlingen/{p-c92e206b.entry.js → p-2f7b4d00.entry.js} +1 -1
  896. package/dist/digi-arbetsformedlingen/{p-8b88c952.entry.js → p-31f5f71c.entry.js} +1 -1
  897. package/dist/digi-arbetsformedlingen/{p-a9bfc5bd.entry.js → p-3273c669.entry.js} +1 -1
  898. package/dist/digi-arbetsformedlingen/{p-a5c387e8.entry.js → p-34891a6b.entry.js} +1 -1
  899. package/dist/digi-arbetsformedlingen/{p-b48f2acd.entry.js → p-34e3e0e6.entry.js} +1 -1
  900. package/dist/digi-arbetsformedlingen/{p-4b618926.entry.js → p-3598ace4.entry.js} +1 -1
  901. package/dist/digi-arbetsformedlingen/{p-82634b60.entry.js → p-359fba9e.entry.js} +1 -1
  902. package/dist/digi-arbetsformedlingen/{p-8318562f.entry.js → p-36d4b2c8.entry.js} +1 -1
  903. package/dist/digi-arbetsformedlingen/{p-4224f1e4.entry.js → p-380b3f39.entry.js} +1 -1
  904. package/dist/digi-arbetsformedlingen/{p-4c69c234.entry.js → p-38325b58.entry.js} +1 -1
  905. package/dist/digi-arbetsformedlingen/{p-cdbfa3d0.entry.js → p-395f0bda.entry.js} +1 -1
  906. package/dist/digi-arbetsformedlingen/{p-61385dc4.entry.js → p-3c043498.entry.js} +1 -1
  907. package/dist/digi-arbetsformedlingen/{p-58f76475.entry.js → p-3cf6c027.entry.js} +1 -1
  908. package/dist/digi-arbetsformedlingen/{p-3e126f89.entry.js → p-3e74d20d.entry.js} +1 -1
  909. package/dist/digi-arbetsformedlingen/{p-1e2a9156.entry.js → p-3fb297c6.entry.js} +1 -1
  910. package/dist/digi-arbetsformedlingen/{p-b7494943.entry.js → p-40cf758f.entry.js} +1 -1
  911. package/dist/digi-arbetsformedlingen/{p-cab53989.entry.js → p-4194e1fc.entry.js} +1 -1
  912. package/dist/digi-arbetsformedlingen/{p-726a0b56.entry.js → p-41f7e512.entry.js} +1 -1
  913. package/dist/digi-arbetsformedlingen/p-44da2e39.entry.js +1 -0
  914. package/dist/digi-arbetsformedlingen/{p-8d3cb15a.entry.js → p-44f06c51.entry.js} +1 -1
  915. package/dist/digi-arbetsformedlingen/{p-658aa433.entry.js → p-462d6f20.entry.js} +1 -1
  916. package/dist/digi-arbetsformedlingen/{p-89566597.entry.js → p-47a41577.entry.js} +1 -1
  917. package/dist/digi-arbetsformedlingen/{p-ef9a3ddc.entry.js → p-49c82d68.entry.js} +1 -1
  918. package/dist/digi-arbetsformedlingen/{p-588fe3b5.entry.js → p-4a5cacf7.entry.js} +1 -1
  919. package/dist/digi-arbetsformedlingen/{p-9763005c.entry.js → p-4b00b1c3.entry.js} +1 -1
  920. package/dist/digi-arbetsformedlingen/{p-a7361f39.entry.js → p-4bbed9ef.entry.js} +1 -1
  921. package/dist/digi-arbetsformedlingen/{p-d5376b7c.entry.js → p-4ee6b711.entry.js} +1 -1
  922. package/dist/digi-arbetsformedlingen/{p-a98df65c.entry.js → p-5177b503.entry.js} +1 -1
  923. package/dist/digi-arbetsformedlingen/{p-66483a84.entry.js → p-531d681a.entry.js} +1 -1
  924. package/dist/digi-arbetsformedlingen/{p-a1ae9863.entry.js → p-5491d7d4.entry.js} +1 -1
  925. package/dist/digi-arbetsformedlingen/{p-20ef225a.entry.js → p-554aae7c.entry.js} +1 -1
  926. package/dist/digi-arbetsformedlingen/{p-77ea6604.entry.js → p-55ef7f3d.entry.js} +1 -1
  927. package/dist/digi-arbetsformedlingen/{p-93ec0277.entry.js → p-57118749.entry.js} +1 -1
  928. package/dist/digi-arbetsformedlingen/{p-8355c75d.entry.js → p-57459e51.entry.js} +1 -1
  929. package/dist/digi-arbetsformedlingen/{p-7660ba5b.entry.js → p-574a7418.entry.js} +1 -1
  930. package/dist/digi-arbetsformedlingen/{p-2f57b446.entry.js → p-57790de9.entry.js} +1 -1
  931. package/dist/digi-arbetsformedlingen/{p-e627abeb.entry.js → p-58d4933f.entry.js} +1 -1
  932. package/dist/digi-arbetsformedlingen/{p-9f03b573.entry.js → p-5a27b6b5.entry.js} +1 -1
  933. package/dist/digi-arbetsformedlingen/{p-5d0ffc80.entry.js → p-5aabb979.entry.js} +1 -1
  934. package/dist/digi-arbetsformedlingen/{p-07b02fa8.entry.js → p-5abfd0c7.entry.js} +1 -1
  935. package/dist/digi-arbetsformedlingen/{p-9cf50217.entry.js → p-5cdc0458.entry.js} +1 -1
  936. package/dist/digi-arbetsformedlingen/{p-0bc366fb.entry.js → p-5d79bfc0.entry.js} +1 -1
  937. package/dist/digi-arbetsformedlingen/{p-1241d74a.entry.js → p-5dae03d4.entry.js} +1 -1
  938. package/dist/digi-arbetsformedlingen/{p-db7c2105.entry.js → p-5e8a9b5a.entry.js} +1 -1
  939. package/dist/digi-arbetsformedlingen/{p-804cb867.entry.js → p-601a994c.entry.js} +1 -1
  940. package/dist/digi-arbetsformedlingen/{p-edfdf8e9.entry.js → p-60665a18.entry.js} +1 -1
  941. package/dist/digi-arbetsformedlingen/{p-2aa3ed49.entry.js → p-62326367.entry.js} +1 -1
  942. package/dist/digi-arbetsformedlingen/{p-099b1bac.entry.js → p-630cd660.entry.js} +1 -1
  943. package/dist/digi-arbetsformedlingen/{p-16b8d192.entry.js → p-631334ff.entry.js} +1 -1
  944. package/dist/digi-arbetsformedlingen/{p-af4b851e.entry.js → p-65de40aa.entry.js} +1 -1
  945. package/dist/digi-arbetsformedlingen/{p-352712b9.entry.js → p-66523239.entry.js} +1 -1
  946. package/dist/digi-arbetsformedlingen/{p-4bb41707.entry.js → p-667d915b.entry.js} +1 -1
  947. package/dist/digi-arbetsformedlingen/{p-49aeb019.entry.js → p-690e5bad.entry.js} +1 -1
  948. package/dist/digi-arbetsformedlingen/{p-0a904539.entry.js → p-6a7e65ec.entry.js} +1 -1
  949. package/dist/digi-arbetsformedlingen/{p-9495044c.entry.js → p-6a80fc2b.entry.js} +1 -1
  950. package/dist/digi-arbetsformedlingen/{p-6a33818a.entry.js → p-6b03f6d8.entry.js} +1 -1
  951. package/dist/digi-arbetsformedlingen/{p-c4cf1215.entry.js → p-6ba7b2f8.entry.js} +1 -1
  952. package/dist/digi-arbetsformedlingen/{p-5ee51a86.entry.js → p-6c601c76.entry.js} +1 -1
  953. package/dist/digi-arbetsformedlingen/{p-5aae7437.entry.js → p-6ca52876.entry.js} +1 -1
  954. package/dist/digi-arbetsformedlingen/{p-e8fd0aed.entry.js → p-6f6281e4.entry.js} +1 -1
  955. package/dist/digi-arbetsformedlingen/{p-18ffcb24.entry.js → p-70468ce6.entry.js} +1 -1
  956. package/dist/digi-arbetsformedlingen/{p-fc945ec1.entry.js → p-70677284.entry.js} +1 -1
  957. package/dist/digi-arbetsformedlingen/{p-2ffd9c4c.entry.js → p-713eee6b.entry.js} +1 -1
  958. package/dist/digi-arbetsformedlingen/{p-4f6b2e2a.entry.js → p-728a2192.entry.js} +1 -1
  959. package/dist/digi-arbetsformedlingen/{p-b81e0aec.entry.js → p-73046585.entry.js} +1 -1
  960. package/dist/digi-arbetsformedlingen/{p-7d597755.entry.js → p-732be7a0.entry.js} +1 -1
  961. package/dist/digi-arbetsformedlingen/{p-b734218c.entry.js → p-73b6d872.entry.js} +1 -1
  962. package/dist/digi-arbetsformedlingen/{p-fe235598.entry.js → p-756f88d1.entry.js} +1 -1
  963. package/dist/digi-arbetsformedlingen/{p-2c7d4ecf.entry.js → p-773ab423.entry.js} +1 -1
  964. package/dist/digi-arbetsformedlingen/{p-8328e58b.entry.js → p-788b29ec.entry.js} +1 -1
  965. package/dist/digi-arbetsformedlingen/{p-de1e9254.entry.js → p-78cd2706.entry.js} +1 -1
  966. package/dist/digi-arbetsformedlingen/{p-4b5edc89.entry.js → p-79f4abc4.entry.js} +1 -1
  967. package/dist/digi-arbetsformedlingen/{p-df2038b9.entry.js → p-7b089cb7.entry.js} +1 -1
  968. package/dist/digi-arbetsformedlingen/{p-d7cdbe75.entry.js → p-7b2f12b2.entry.js} +1 -1
  969. package/dist/digi-arbetsformedlingen/{p-8e16d36a.entry.js → p-7bb7a25a.entry.js} +1 -1
  970. package/dist/digi-arbetsformedlingen/{p-16303afa.entry.js → p-7ca774e8.entry.js} +1 -1
  971. package/dist/digi-arbetsformedlingen/{p-5503d5be.entry.js → p-7cf555b3.entry.js} +1 -1
  972. package/dist/digi-arbetsformedlingen/{p-5b01d3e2.entry.js → p-7cf8107e.entry.js} +1 -1
  973. package/dist/digi-arbetsformedlingen/{p-b10a1760.entry.js → p-7e7c82f3.entry.js} +1 -1
  974. package/dist/digi-arbetsformedlingen/{p-bb1daa3b.entry.js → p-7f56550a.entry.js} +1 -1
  975. package/dist/digi-arbetsformedlingen/{p-f6476365.entry.js → p-7fa5601d.entry.js} +1 -1
  976. package/dist/digi-arbetsformedlingen/{p-9e4a0fe4.entry.js → p-80439965.entry.js} +1 -1
  977. package/dist/digi-arbetsformedlingen/{p-1cc801fd.entry.js → p-810a40e3.entry.js} +1 -1
  978. package/dist/digi-arbetsformedlingen/{p-b63e0b2d.entry.js → p-815b4882.entry.js} +1 -1
  979. package/dist/digi-arbetsformedlingen/{p-5473bfea.entry.js → p-828461a1.entry.js} +1 -1
  980. package/dist/digi-arbetsformedlingen/{p-9a7e195c.entry.js → p-878a5e40.entry.js} +1 -1
  981. package/dist/digi-arbetsformedlingen/{p-c8257c8c.entry.js → p-87ae4ae3.entry.js} +1 -1
  982. package/dist/digi-arbetsformedlingen/{p-60989dea.entry.js → p-8945ea11.entry.js} +1 -1
  983. package/dist/digi-arbetsformedlingen/{p-4871b74a.entry.js → p-89eea066.entry.js} +1 -1
  984. package/dist/digi-arbetsformedlingen/{p-e55d3abf.entry.js → p-8aa5732b.entry.js} +1 -1
  985. package/dist/digi-arbetsformedlingen/{p-1e03ba21.entry.js → p-8b38261b.entry.js} +1 -1
  986. package/dist/digi-arbetsformedlingen/{p-accb56da.entry.js → p-8b620bb4.entry.js} +1 -1
  987. package/dist/digi-arbetsformedlingen/{p-9ea535e1.entry.js → p-8bfe319c.entry.js} +1 -1
  988. package/dist/digi-arbetsformedlingen/{p-b32df740.entry.js → p-8f1d812e.entry.js} +1 -1
  989. package/dist/digi-arbetsformedlingen/{p-7d54fe81.entry.js → p-8fb4be3e.entry.js} +1 -1
  990. package/dist/digi-arbetsformedlingen/{p-d1a77b0b.entry.js → p-938d5268.entry.js} +1 -1
  991. package/dist/digi-arbetsformedlingen/{p-bb554f34.entry.js → p-94056eff.entry.js} +1 -1
  992. package/dist/digi-arbetsformedlingen/{p-4788712e.entry.js → p-94d31951.entry.js} +1 -1
  993. package/dist/digi-arbetsformedlingen/{p-a439e93f.entry.js → p-96ac63da.entry.js} +1 -1
  994. package/dist/digi-arbetsformedlingen/{p-d46b426b.entry.js → p-975c07d8.entry.js} +1 -1
  995. package/dist/digi-arbetsformedlingen/{p-11b5ab8d.entry.js → p-97e025c7.entry.js} +1 -1
  996. package/dist/digi-arbetsformedlingen/{p-33425742.entry.js → p-99faaa94.entry.js} +1 -1
  997. package/dist/digi-arbetsformedlingen/{p-a4895704.entry.js → p-9e10ac9a.entry.js} +1 -1
  998. package/dist/digi-arbetsformedlingen/p-9e3ab016.entry.js +1 -0
  999. package/dist/digi-arbetsformedlingen/{p-c721f99a.entry.js → p-9f3b65c9.entry.js} +1 -1
  1000. package/dist/digi-arbetsformedlingen/{p-f7628391.entry.js → p-a2111444.entry.js} +1 -1
  1001. package/dist/digi-arbetsformedlingen/{p-f2eb8ee5.entry.js → p-a2580017.entry.js} +1 -1
  1002. package/dist/digi-arbetsformedlingen/{p-83269fe6.entry.js → p-a393d458.entry.js} +1 -1
  1003. package/dist/digi-arbetsformedlingen/{p-76eb331e.entry.js → p-a437b3f9.entry.js} +1 -1
  1004. package/dist/digi-arbetsformedlingen/{p-c70ba82f.entry.js → p-a4af962c.entry.js} +1 -1
  1005. package/dist/digi-arbetsformedlingen/{p-baac6e73.entry.js → p-a540bf30.entry.js} +1 -1
  1006. package/dist/digi-arbetsformedlingen/p-a5d3d3c3.entry.js +1 -0
  1007. package/dist/digi-arbetsformedlingen/{p-222a2b41.entry.js → p-a5ebb909.entry.js} +1 -1
  1008. package/dist/digi-arbetsformedlingen/{p-c917502e.entry.js → p-a71ae220.entry.js} +1 -1
  1009. package/dist/digi-arbetsformedlingen/{p-7e6d699e.entry.js → p-a8ffe40b.entry.js} +1 -1
  1010. package/dist/digi-arbetsformedlingen/{p-6e925e52.entry.js → p-aacb29b9.entry.js} +1 -1
  1011. package/dist/digi-arbetsformedlingen/{p-0ac9f348.entry.js → p-ab058e08.entry.js} +1 -1
  1012. package/dist/digi-arbetsformedlingen/{p-9fe345d1.entry.js → p-aca55593.entry.js} +1 -1
  1013. package/dist/digi-arbetsformedlingen/{p-c81d1d0b.entry.js → p-acdc4ad2.entry.js} +1 -1
  1014. package/dist/digi-arbetsformedlingen/{p-c30a3366.entry.js → p-ae6819c3.entry.js} +1 -1
  1015. package/dist/digi-arbetsformedlingen/{p-dcaa4461.entry.js → p-afd55426.entry.js} +1 -1
  1016. package/dist/digi-arbetsformedlingen/{p-cd770cb4.entry.js → p-b1f348dd.entry.js} +1 -1
  1017. package/dist/digi-arbetsformedlingen/{p-293ea71f.entry.js → p-b1f62aa7.entry.js} +1 -1
  1018. package/dist/digi-arbetsformedlingen/{p-5a08f170.entry.js → p-b20e4b2b.entry.js} +1 -1
  1019. package/dist/digi-arbetsformedlingen/{p-0c210491.entry.js → p-b21a2e98.entry.js} +1 -1
  1020. package/dist/digi-arbetsformedlingen/{p-fc252a02.entry.js → p-b26d1962.entry.js} +1 -1
  1021. package/dist/digi-arbetsformedlingen/{p-d2a12b86.entry.js → p-b6b80e5e.entry.js} +1 -1
  1022. package/dist/digi-arbetsformedlingen/{p-6de493b0.entry.js → p-b8d19dbd.entry.js} +1 -1
  1023. package/dist/digi-arbetsformedlingen/{p-73f6209d.entry.js → p-b97f4844.entry.js} +1 -1
  1024. package/dist/digi-arbetsformedlingen/{p-43a43f09.entry.js → p-b9f5938f.entry.js} +1 -1
  1025. package/dist/digi-arbetsformedlingen/{p-d146131e.entry.js → p-ba527995.entry.js} +1 -1
  1026. package/dist/digi-arbetsformedlingen/{p-39604e43.entry.js → p-bc24cbe8.entry.js} +1 -1
  1027. package/dist/digi-arbetsformedlingen/{p-014044a7.entry.js → p-bdcbcdc8.entry.js} +1 -1
  1028. package/dist/digi-arbetsformedlingen/{p-8fa46692.entry.js → p-beaad0d0.entry.js} +1 -1
  1029. package/dist/digi-arbetsformedlingen/{p-592fd6a9.entry.js → p-bf0dfd0b.entry.js} +1 -1
  1030. package/dist/digi-arbetsformedlingen/{p-0e634a09.entry.js → p-bf72ed5a.entry.js} +1 -1
  1031. package/dist/digi-arbetsformedlingen/{p-3212807d.entry.js → p-c01795e5.entry.js} +1 -1
  1032. package/dist/digi-arbetsformedlingen/p-c134240a.entry.js +1 -0
  1033. package/dist/digi-arbetsformedlingen/{p-2062e63b.entry.js → p-c19ce9d4.entry.js} +1 -1
  1034. package/dist/digi-arbetsformedlingen/{p-e917904e.entry.js → p-c1ccede0.entry.js} +1 -1
  1035. package/dist/digi-arbetsformedlingen/{p-1bd29b6a.entry.js → p-c3ca35dd.entry.js} +1 -1
  1036. package/dist/digi-arbetsformedlingen/{p-4fe05e2f.entry.js → p-c3fb7dd7.entry.js} +1 -1
  1037. package/dist/digi-arbetsformedlingen/{p-48113595.entry.js → p-c53510ef.entry.js} +1 -1
  1038. package/dist/digi-arbetsformedlingen/{p-7474d7b0.entry.js → p-c66d07b2.entry.js} +1 -1
  1039. package/dist/digi-arbetsformedlingen/{p-1fcbbf5f.entry.js → p-c71d48b2.entry.js} +1 -1
  1040. package/dist/digi-arbetsformedlingen/{p-8ef4cf4a.entry.js → p-cb564e82.entry.js} +1 -1
  1041. package/dist/digi-arbetsformedlingen/{p-16dd9b3f.entry.js → p-cbca6d07.entry.js} +1 -1
  1042. package/dist/digi-arbetsformedlingen/{p-01df63d6.entry.js → p-ce0dabff.entry.js} +1 -1
  1043. package/dist/digi-arbetsformedlingen/{p-3c28625a.entry.js → p-d1ecee88.entry.js} +1 -1
  1044. package/dist/digi-arbetsformedlingen/{p-57dd2b38.entry.js → p-d2ab4ed2.entry.js} +1 -1
  1045. package/dist/digi-arbetsformedlingen/p-d378e55c.entry.js +1 -0
  1046. package/dist/digi-arbetsformedlingen/{p-4e2e1902.entry.js → p-d4db7f47.entry.js} +1 -1
  1047. package/dist/digi-arbetsformedlingen/{p-bb0935fc.entry.js → p-d8eb784a.entry.js} +1 -1
  1048. package/dist/digi-arbetsformedlingen/{p-1dc8b284.entry.js → p-d98cbbc6.entry.js} +1 -1
  1049. package/dist/digi-arbetsformedlingen/{p-5d30475d.entry.js → p-d9d512a2.entry.js} +1 -1
  1050. package/dist/digi-arbetsformedlingen/{p-80a77b6e.entry.js → p-da873ca4.entry.js} +1 -1
  1051. package/dist/digi-arbetsformedlingen/{p-ccd18e1a.entry.js → p-dbba5d69.entry.js} +1 -1
  1052. package/dist/digi-arbetsformedlingen/{p-5ac3d7a9.entry.js → p-dbbfef28.entry.js} +1 -1
  1053. package/dist/digi-arbetsformedlingen/{p-90bc53dc.entry.js → p-dbc3b435.entry.js} +1 -1
  1054. package/dist/digi-arbetsformedlingen/{p-218b829e.entry.js → p-de4fbcd3.entry.js} +1 -1
  1055. package/dist/digi-arbetsformedlingen/{p-a884ccf8.entry.js → p-df25ab6c.entry.js} +1 -1
  1056. package/dist/digi-arbetsformedlingen/{p-56ca6c5c.entry.js → p-e0332fa2.entry.js} +1 -1
  1057. package/dist/digi-arbetsformedlingen/{p-676ab6ef.entry.js → p-e0c26551.entry.js} +1 -1
  1058. package/dist/digi-arbetsformedlingen/{p-9a73a55d.entry.js → p-e11ceb56.entry.js} +1 -1
  1059. package/dist/digi-arbetsformedlingen/{p-9d15493f.entry.js → p-e4e62c4c.entry.js} +1 -1
  1060. package/dist/digi-arbetsformedlingen/{p-34ef0baa.entry.js → p-e589bb2d.entry.js} +1 -1
  1061. package/dist/digi-arbetsformedlingen/{p-5acaf4b0.entry.js → p-e5d8a700.entry.js} +1 -1
  1062. package/dist/digi-arbetsformedlingen/{p-b21e9c0a.entry.js → p-e61f241a.entry.js} +1 -1
  1063. package/dist/digi-arbetsformedlingen/{p-eeec1cf1.entry.js → p-e79c0ed4.entry.js} +1 -1
  1064. package/dist/digi-arbetsformedlingen/{p-f6b2d484.entry.js → p-e81118c0.entry.js} +1 -1
  1065. package/dist/digi-arbetsformedlingen/{p-f9315403.entry.js → p-e9a38c46.entry.js} +1 -1
  1066. package/dist/digi-arbetsformedlingen/p-ebe1a123.entry.js +1 -0
  1067. package/dist/digi-arbetsformedlingen/{p-a0267f76.entry.js → p-ebf72947.entry.js} +1 -1
  1068. package/dist/digi-arbetsformedlingen/{p-07513ee6.entry.js → p-ec6b2a9f.entry.js} +1 -1
  1069. package/dist/digi-arbetsformedlingen/{p-e10e24fc.entry.js → p-efb71c3e.entry.js} +1 -1
  1070. package/dist/digi-arbetsformedlingen/{p-ad471fd2.entry.js → p-f2fb8b75.entry.js} +1 -1
  1071. package/dist/digi-arbetsformedlingen/{p-27388bc4.entry.js → p-f4e149c8.entry.js} +1 -1
  1072. package/dist/digi-arbetsformedlingen/{p-01c29a14.entry.js → p-f557e3c1.entry.js} +1 -1
  1073. package/dist/digi-arbetsformedlingen/p-f59e3142.entry.js +1 -0
  1074. package/dist/digi-arbetsformedlingen/{p-9045d5ff.entry.js → p-f5c90c67.entry.js} +1 -1
  1075. package/dist/digi-arbetsformedlingen/{p-2412deb9.entry.js → p-f60443a4.entry.js} +1 -1
  1076. package/dist/digi-arbetsformedlingen/{p-9df20034.entry.js → p-f60f2522.entry.js} +1 -1
  1077. package/dist/digi-arbetsformedlingen/{p-1a21de52.entry.js → p-f6e7076a.entry.js} +1 -1
  1078. package/dist/digi-arbetsformedlingen/{p-40f5fda7.entry.js → p-f77fd434.entry.js} +1 -1
  1079. package/dist/digi-arbetsformedlingen/{p-9789b001.entry.js → p-f78590cc.entry.js} +1 -1
  1080. package/dist/digi-arbetsformedlingen/{p-56cb2ded.entry.js → p-f9d7d880.entry.js} +1 -1
  1081. package/dist/digi-arbetsformedlingen/{p-f69dbfcf.entry.js → p-fa82c26d.entry.js} +1 -1
  1082. package/dist/digi-arbetsformedlingen/{p-45af5d55.entry.js → p-fd88cc1c.entry.js} +1 -1
  1083. package/dist/digi-arbetsformedlingen/{p-69010d14.entry.js → p-fde27f08.entry.js} +1 -1
  1084. package/dist/digi-arbetsformedlingen/{p-ba39e14b.entry.js → p-fe5ba864.entry.js} +1 -1
  1085. package/dist/esm/digi-bar-chart_27.entry.js +721 -507
  1086. package/dist/esm/digi-calendar_2.entry.js +2 -2
  1087. package/dist/esm/digi-chart-line.entry.js +1 -1
  1088. package/dist/esm/digi-code-block_3.entry.js +4 -4
  1089. package/dist/esm/digi-code-example.entry.js +4 -4
  1090. package/dist/esm/digi-code.entry.js +1 -1
  1091. package/dist/esm/digi-context-menu.entry.js +3 -3
  1092. package/dist/esm/digi-dialog.entry.js +3 -3
  1093. package/dist/esm/digi-expandable-accordion.entry.js +1 -1
  1094. package/dist/esm/digi-expandable-faq-item.entry.js +4 -4
  1095. package/dist/esm/digi-expandable-faq.entry.js +2 -2
  1096. package/dist/esm/digi-footer-card.entry.js +1 -1
  1097. package/dist/esm/digi-footer.entry.js +1 -1
  1098. package/dist/esm/digi-form-category-filter.entry.js +2 -2
  1099. package/dist/esm/digi-form-checkbox.entry.js +2 -2
  1100. package/dist/esm/digi-form-error-list.entry.js +3 -3
  1101. package/dist/esm/digi-form-file-upload.entry.js +7 -7
  1102. package/dist/esm/digi-form-filter.entry.js +5 -5
  1103. package/dist/esm/digi-form-input-search.entry.js +2 -2
  1104. package/dist/esm/digi-form-input.entry.js +3 -3
  1105. package/dist/esm/digi-form-label_5.entry.js +8 -8
  1106. package/dist/esm/digi-form-radiogroup.entry.js +2 -2
  1107. package/dist/esm/digi-form-receipt.entry.js +1 -1
  1108. package/dist/esm/digi-form-select-filter.entry.js +7 -7
  1109. package/dist/esm/digi-form-select_2.entry.js +6 -6
  1110. package/dist/esm/digi-form-textarea.entry.js +3 -3
  1111. package/dist/esm/digi-icon-accessibility-deaf.entry.js +2 -2
  1112. package/dist/esm/digi-icon-accessibility-universal.entry.js +2 -2
  1113. package/dist/esm/digi-icon-apple.entry.js +2 -2
  1114. package/dist/esm/digi-icon-archive-outline.entry.js +2 -2
  1115. package/dist/esm/digi-icon-archive.entry.js +2 -2
  1116. package/dist/esm/digi-icon-arrow-back.entry.js +2 -2
  1117. package/dist/esm/digi-icon-arrow-down.entry.js +2 -2
  1118. package/dist/esm/digi-icon-arrow-left.entry.js +2 -2
  1119. package/dist/esm/digi-icon-arrow-right.entry.js +2 -2
  1120. package/dist/esm/digi-icon-arrow-sign-in.entry.js +2 -2
  1121. package/dist/esm/digi-icon-arrow-sign-out.entry.js +2 -2
  1122. package/dist/esm/digi-icon-arrow-up.entry.js +2 -2
  1123. package/dist/esm/digi-icon-at.entry.js +2 -2
  1124. package/dist/esm/digi-icon-bell.entry.js +2 -2
  1125. package/dist/esm/digi-icon-book.entry.js +2 -2
  1126. package/dist/esm/digi-icon-bookmark-outline.entry.js +2 -2
  1127. package/dist/esm/digi-icon-bookmark-solid.entry.js +2 -2
  1128. package/dist/esm/digi-icon-bubble-ellipsis.entry.js +2 -2
  1129. package/dist/esm/digi-icon-bubble.entry.js +2 -2
  1130. package/dist/esm/digi-icon-building-outline.entry.js +2 -2
  1131. package/dist/esm/digi-icon-building-solid.entry.js +2 -2
  1132. package/dist/esm/digi-icon-bullseye.entry.js +2 -2
  1133. package/dist/esm/digi-icon-calculator-solid.entry.js +2 -2
  1134. package/dist/esm/digi-icon-calendar-alt-alert.entry.js +2 -2
  1135. package/dist/esm/digi-icon-calendar.entry.js +2 -2
  1136. package/dist/esm/digi-icon-caret-circle-right.entry.js +2 -2
  1137. package/dist/esm/digi-icon-caret-left.entry.js +2 -2
  1138. package/dist/esm/digi-icon-caret-right.entry.js +2 -2
  1139. package/dist/esm/digi-icon-chat.entry.js +2 -2
  1140. package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +2 -2
  1141. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +8 -8
  1142. package/dist/esm/digi-icon-check.entry.js +2 -2
  1143. package/dist/esm/digi-icon-checklist.entry.js +2 -2
  1144. package/dist/esm/digi-icon-chevron-down.entry.js +2 -2
  1145. package/dist/esm/digi-icon-chevron-left.entry.js +2 -2
  1146. package/dist/esm/digi-icon-chevron-right.entry.js +2 -2
  1147. package/dist/esm/digi-icon-chevron-up.entry.js +2 -2
  1148. package/dist/esm/digi-icon-clock.entry.js +2 -2
  1149. package/dist/esm/digi-icon-communication-play-solid.entry.js +2 -2
  1150. package/dist/esm/digi-icon-compress-alt.entry.js +2 -2
  1151. package/dist/esm/digi-icon-comunication-case.entry.js +2 -2
  1152. package/dist/esm/digi-icon-comunication-flag.entry.js +2 -2
  1153. package/dist/esm/digi-icon-comunication-graduate.entry.js +2 -2
  1154. package/dist/esm/digi-icon-comunication-play.entry.js +2 -2
  1155. package/dist/esm/digi-icon-cooperation.entry.js +2 -2
  1156. package/dist/esm/digi-icon-copy.entry.js +2 -2
  1157. package/dist/esm/digi-icon-danger-outline.entry.js +2 -2
  1158. package/dist/esm/digi-icon-download.entry.js +2 -2
  1159. package/dist/esm/digi-icon-dxa.entry.js +2 -2
  1160. package/dist/esm/digi-icon-edit.entry.js +2 -2
  1161. package/dist/esm/digi-icon-ellipsis.entry.js +2 -2
  1162. package/dist/esm/digi-icon-envelope-filled.entry.js +2 -2
  1163. package/dist/esm/digi-icon-envelope.entry.js +2 -2
  1164. package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +2 -2
  1165. package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +2 -2
  1166. package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +2 -2
  1167. package/dist/esm/digi-icon-exclamation-triangle.entry.js +2 -2
  1168. package/dist/esm/digi-icon-expand-alt.entry.js +2 -2
  1169. package/dist/esm/digi-icon-external-link-alt_2.entry.js +3 -3
  1170. package/dist/esm/digi-icon-eye-slash.entry.js +2 -2
  1171. package/dist/esm/digi-icon-eye.entry.js +2 -2
  1172. package/dist/esm/digi-icon-facebook-square.entry.js +2 -2
  1173. package/dist/esm/digi-icon-file-add.entry.js +1 -1
  1174. package/dist/esm/digi-icon-file-document.entry.js +2 -2
  1175. package/dist/esm/digi-icon-file-excel.entry.js +2 -2
  1176. package/dist/esm/digi-icon-file-export.entry.js +1 -1
  1177. package/dist/esm/digi-icon-file-governing.entry.js +2 -2
  1178. package/dist/esm/digi-icon-file-pdf.entry.js +2 -2
  1179. package/dist/esm/digi-icon-file-powerpoint.entry.js +2 -2
  1180. package/dist/esm/digi-icon-file-remove.entry.js +1 -1
  1181. package/dist/esm/digi-icon-file-word.entry.js +2 -2
  1182. package/dist/esm/digi-icon-film.entry.js +2 -2
  1183. package/dist/esm/digi-icon-filter.entry.js +2 -2
  1184. package/dist/esm/digi-icon-folder-add.entry.js +1 -1
  1185. package/dist/esm/digi-icon-folder-directory.entry.js +1 -1
  1186. package/dist/esm/digi-icon-folder-open.entry.js +1 -1
  1187. package/dist/esm/digi-icon-folder.entry.js +1 -1
  1188. package/dist/esm/digi-icon-globe-filled.entry.js +2 -2
  1189. package/dist/esm/digi-icon-globe.entry.js +2 -2
  1190. package/dist/esm/digi-icon-headphones.entry.js +2 -2
  1191. package/dist/esm/digi-icon-heart-solid.entry.js +2 -2
  1192. package/dist/esm/digi-icon-heart.entry.js +2 -2
  1193. package/dist/esm/digi-icon-history.entry.js +2 -2
  1194. package/dist/esm/digi-icon-home.entry.js +2 -2
  1195. package/dist/esm/digi-icon-image.entry.js +2 -2
  1196. package/dist/esm/digi-icon-info-circle-solid.entry.js +2 -2
  1197. package/dist/esm/digi-icon-instagram.entry.js +2 -2
  1198. package/dist/esm/digi-icon-job-suggestion.entry.js +2 -2
  1199. package/dist/esm/digi-icon-language-outline.entry.js +2 -2
  1200. package/dist/esm/digi-icon-language.entry.js +2 -2
  1201. package/dist/esm/digi-icon-laptop-phone.entry.js +2 -2
  1202. package/dist/esm/digi-icon-lattlast.entry.js +2 -2
  1203. package/dist/esm/digi-icon-licence-bus.entry.js +2 -2
  1204. package/dist/esm/digi-icon-licence-car.entry.js +2 -2
  1205. package/dist/esm/digi-icon-licence-motorcycle.entry.js +2 -2
  1206. package/dist/esm/digi-icon-licence-truck.entry.js +2 -2
  1207. package/dist/esm/digi-icon-lightbulb.entry.js +2 -2
  1208. package/dist/esm/digi-icon-linkedin-in.entry.js +2 -2
  1209. package/dist/esm/digi-icon-list-ul_6.entry.js +12 -12
  1210. package/dist/esm/digi-icon-lock.entry.js +2 -2
  1211. package/dist/esm/digi-icon-marker-filled.entry.js +2 -2
  1212. package/dist/esm/digi-icon-marker.entry.js +2 -2
  1213. package/dist/esm/digi-icon-media-course.entry.js +2 -2
  1214. package/dist/esm/digi-icon-media-podcast.entry.js +2 -2
  1215. package/dist/esm/digi-icon-microphone-off.entry.js +2 -2
  1216. package/dist/esm/digi-icon-microphone.entry.js +2 -2
  1217. package/dist/esm/digi-icon-move.entry.js +2 -2
  1218. package/dist/esm/digi-icon-notification-error_4.entry.js +8 -8
  1219. package/dist/esm/digi-icon-online-interview.entry.js +2 -2
  1220. package/dist/esm/digi-icon-online-meeting.entry.js +2 -2
  1221. package/dist/esm/digi-icon-online-task.entry.js +2 -2
  1222. package/dist/esm/digi-icon-open-source.entry.js +2 -2
  1223. package/dist/esm/digi-icon-palette.entry.js +2 -2
  1224. package/dist/esm/digi-icon-paste.entry.js +1 -1
  1225. package/dist/esm/digi-icon-pen.entry.js +2 -2
  1226. package/dist/esm/digi-icon-phone-hangup.entry.js +2 -2
  1227. package/dist/esm/digi-icon-phone.entry.js +2 -2
  1228. package/dist/esm/digi-icon-print.entry.js +2 -2
  1229. package/dist/esm/digi-icon-read.entry.js +2 -2
  1230. package/dist/esm/digi-icon-redo.entry.js +2 -2
  1231. package/dist/esm/digi-icon-scale.entry.js +1 -1
  1232. package/dist/esm/digi-icon-screensharing-off.entry.js +2 -2
  1233. package/dist/esm/digi-icon-screensharing.entry.js +2 -2
  1234. package/dist/esm/digi-icon-search.entry.js +2 -2
  1235. package/dist/esm/digi-icon-send-outline.entry.js +2 -2
  1236. package/dist/esm/digi-icon-send-solid.entry.js +2 -2
  1237. package/dist/esm/digi-icon-settings.entry.js +2 -2
  1238. package/dist/esm/digi-icon-share-alt.entry.js +2 -2
  1239. package/dist/esm/digi-icon-share-chain.entry.js +2 -2
  1240. package/dist/esm/digi-icon-sign.entry.js +2 -2
  1241. package/dist/esm/digi-icon-sliders-h.entry.js +2 -2
  1242. package/dist/esm/digi-icon-sokkandidat.entry.js +2 -2
  1243. package/dist/esm/digi-icon-sort-down.entry.js +2 -2
  1244. package/dist/esm/digi-icon-sort-up.entry.js +2 -2
  1245. package/dist/esm/digi-icon-sort.entry.js +2 -2
  1246. package/dist/esm/digi-icon-spinner.entry.js +2 -2
  1247. package/dist/esm/digi-icon-star-reg.entry.js +2 -2
  1248. package/dist/esm/digi-icon-star.entry.js +2 -2
  1249. package/dist/esm/digi-icon-suitcase-outline.entry.js +2 -2
  1250. package/dist/esm/digi-icon-suitcase-solid.entry.js +2 -2
  1251. package/dist/esm/digi-icon-system-assistance.entry.js +2 -2
  1252. package/dist/esm/digi-icon-table-column.entry.js +2 -2
  1253. package/dist/esm/digi-icon-table-row.entry.js +2 -2
  1254. package/dist/esm/digi-icon-task-done.entry.js +2 -2
  1255. package/dist/esm/digi-icon-toggle-off.entry.js +2 -2
  1256. package/dist/esm/digi-icon-toggle-on.entry.js +2 -2
  1257. package/dist/esm/digi-icon-twitter.entry.js +2 -2
  1258. package/dist/esm/digi-icon-tyck-till.entry.js +2 -2
  1259. package/dist/esm/digi-icon-unlock.entry.js +2 -2
  1260. package/dist/esm/digi-icon-update.entry.js +2 -2
  1261. package/dist/esm/digi-icon-upload.entry.js +2 -2
  1262. package/dist/esm/digi-icon-user-add.entry.js +1 -1
  1263. package/dist/esm/digi-icon-user-alt.entry.js +2 -2
  1264. package/dist/esm/digi-icon-user-edit.entry.js +1 -1
  1265. package/dist/esm/digi-icon-users-solid.entry.js +2 -2
  1266. package/dist/esm/digi-icon-videocamera-off.entry.js +2 -2
  1267. package/dist/esm/digi-icon-videocamera.entry.js +2 -2
  1268. package/dist/esm/digi-icon-volume.entry.js +2 -2
  1269. package/dist/esm/digi-icon-web-tv.entry.js +2 -2
  1270. package/dist/esm/digi-icon-wifi-signal0.entry.js +2 -2
  1271. package/dist/esm/digi-icon-wifi-signal1.entry.js +2 -2
  1272. package/dist/esm/digi-icon-wifi-signal2.entry.js +2 -2
  1273. package/dist/esm/digi-icon-wifi-signal3.entry.js +2 -2
  1274. package/dist/esm/digi-icon-window.entry.js +2 -2
  1275. package/dist/esm/digi-icon-x-button.entry.js +2 -2
  1276. package/dist/esm/digi-icon-youtube.entry.js +2 -2
  1277. package/dist/esm/digi-info-card-multi-container.entry.js +1 -1
  1278. package/dist/esm/digi-info-card-multi.entry.js +1 -1
  1279. package/dist/esm/digi-info-card.entry.js +1 -1
  1280. package/dist/esm/digi-layout-columns.entry.js +1 -1
  1281. package/dist/esm/digi-link-button.entry.js +1 -1
  1282. package/dist/esm/digi-link-internal.entry.js +1 -1
  1283. package/dist/esm/digi-link.entry.js +1 -1
  1284. package/dist/esm/digi-list.entry.js +1 -1
  1285. package/dist/esm/digi-loader-skeleton.entry.js +3 -3
  1286. package/dist/esm/digi-loader-spinner.entry.js +1 -1
  1287. package/dist/esm/digi-media-figure.entry.js +1 -1
  1288. package/dist/esm/digi-navigation-breadcrumbs.entry.js +2 -2
  1289. package/dist/esm/digi-navigation-pagination.entry.js +6 -6
  1290. package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
  1291. package/dist/esm/digi-notification-alert.entry.js +2 -2
  1292. package/dist/esm/digi-notification-error-page.entry.js +3 -3
  1293. package/dist/esm/digi-progress-circle.entry.js +8 -8
  1294. package/dist/esm/digi-progress-indicator.entry.js +3 -3
  1295. package/dist/esm/digi-progress-list-item.entry.js +5 -5
  1296. package/dist/esm/digi-progress-list.entry.js +1 -1
  1297. package/dist/esm/digi-progressbar.entry.js +2 -2
  1298. package/dist/esm/digi-quote.entry.js +1 -1
  1299. package/dist/esm/digi-table.entry.js +1 -1
  1300. package/dist/esm/digi-tablist-panel.entry.js +2 -2
  1301. package/dist/esm/digi-tablist.entry.js +5 -5
  1302. package/dist/esm/digi-tag-media.entry.js +2 -2
  1303. package/dist/esm/digi-tag.entry.js +1 -1
  1304. package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
  1305. package/dist/esm/digi-tools-feedback-rating.entry.js +1 -1
  1306. package/dist/esm/digi-tools-feedback.entry.js +1 -1
  1307. package/dist/esm/digi-tools-theme-provider.entry.js +1 -1
  1308. package/dist/esm/digi-typography-heading-jumbo.entry.js +1 -1
  1309. package/dist/esm/digi-typography-meta.entry.js +1 -1
  1310. package/dist/esm/digi-typography-preamble.entry.js +1 -1
  1311. package/dist/esm/digi-typography-time.entry.js +1 -1
  1312. package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
  1313. package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
  1314. package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
  1315. package/dist/esm/digi-util-resize-observer.entry.js +1 -1
  1316. package/dist/types/components/_chart/bar-chart/bar-chart.d.ts +49 -41
  1317. package/dist/types/components/_chart/chart-line/chart-line.d.ts +1 -1
  1318. package/dist/types/components/_chart/interfaces/bar-chart-data.interface.d.ts +28 -0
  1319. package/dist/types/components/_chart/{chart-line/chart-line-series.interface.d.ts → interfaces/chart-data-series.interface.d.ts} +1 -1
  1320. package/dist/types/components/_chart/{chart-line/chart-line-data.interface.d.ts → interfaces/line-chart-data.interface.d.ts} +2 -2
  1321. package/dist/types/components.d.ts +8 -6
  1322. package/dist/types/interfaces.d.ts +2 -2
  1323. package/hydrate/index.js +1214 -1000
  1324. package/hydrate/index.mjs +1214 -1000
  1325. package/package.json +1 -1
  1326. package/dist/digi-arbetsformedlingen/p-37377041.entry.js +0 -1
  1327. package/dist/digi-arbetsformedlingen/p-4df8b9e1.entry.js +0 -1
  1328. package/dist/digi-arbetsformedlingen/p-7393b76b.entry.js +0 -1
  1329. package/dist/digi-arbetsformedlingen/p-a7d97546.entry.js +0 -1
  1330. package/dist/digi-arbetsformedlingen/p-b924bb0b.entry.js +0 -1
  1331. package/dist/digi-arbetsformedlingen/p-d2799e99.entry.js +0 -1
  1332. package/dist/digi-arbetsformedlingen/p-d4d2b1a5.entry.js +0 -1
  1333. package/dist/digi-arbetsformedlingen/p-ea09368a.entry.js +0 -1
  1334. package/dist/digi-arbetsformedlingen/p-f70535e3.entry.js +0 -1
  1335. /package/dist/collection/components/_chart/{chart-line/chart-line-data.interface.js → interfaces/bar-chart-data.interface.js} +0 -0
  1336. /package/dist/collection/components/_chart/{chart-line/chart-line-series.interface.js → interfaces/chart-data-series.interface.js} +0 -0
@@ -13,13 +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'];
16
+ this.loading = false;
17
+ this.placeholderTicks = ['0', '1', '2', '3', '4', '5', '6', '7'];
18
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
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
20
21
  this.barGap = 0;
21
- this._dims = {};
22
- this._margin = {
22
+ this.dims = {};
23
+ this.margin = {
23
24
  bottom: 0,
24
25
  top: 6,
25
26
  left: 5,
@@ -30,7 +31,7 @@ export class barChart {
30
31
  this.yTickSize = 0;
31
32
  this.xTickSize = 5;
32
33
  // Width of the largets X-tick-value
33
- this._tickWidth = 1;
34
+ this.tickWidth = 1;
34
35
  // Transition
35
36
  this.defaultDuration = 400;
36
37
  // Text and formats
@@ -39,141 +40,238 @@ export class barChart {
39
40
  // Observer for watching size changes when in line chart mode
40
41
  this.barChartObserver = new ResizeObserver((entries) => {
41
42
  entries.forEach(() => {
42
- if (this._loading)
43
+ if (this.loading)
43
44
  return this.loadingResize();
44
45
  this.resize();
45
46
  });
46
47
  });
47
- // Observer for watching size changes when in table mode
48
- this.tableObserver = new ResizeObserver((entries) => {
49
- entries.forEach(() => {
50
- d3.select(this._legendDiv).style('width', this._dims.width + 'px');
51
- 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
+ }
52
63
  });
53
- });
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
+ };
54
127
  // Resizing chart while loading
55
128
  this.loadingResize = () => {
56
129
  const newHeight = this.setDims();
57
130
  this.setMargins(true);
58
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
59
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
60
- this._margin.right =
61
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
131
+ this.svg.attr('width', this.dims.width).attr('height', this.dims.height);
132
+ this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
133
+ this.margin.right =
134
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
62
135
  this.yTickSize +
63
136
  this.tickPadding;
64
137
  // If there is a new height
65
138
  if (newHeight) {
66
139
  // Update y-axis with potentially new height (might want to do a check here)
67
140
  this.afVariation === BarChartVariation.Horizontal
68
- ? this._yScale.range([
69
- this._margin.top,
70
- this._dims.height - this._margin.bottom
141
+ ? this.yScale.range([
142
+ this.margin.top,
143
+ this.dims.height - this.margin.bottom
71
144
  ])
72
- : this._yScale.range([
73
- this._dims.height - this._margin.bottom,
74
- this._margin.top
145
+ : this.yScale.range([
146
+ this.dims.height - this.margin.bottom,
147
+ this.margin.top
75
148
  ]);
76
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
149
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
77
150
  }
78
151
  // Update x-axis with new width
79
- this._xScale.range([
152
+ this.xScale.range([
80
153
  0,
81
- this._dims.width - this._margin.right - this._margin.left
154
+ this.dims.width - this.margin.right - this.margin.left
82
155
  ]);
83
- this._barSelection
156
+ this.barSelection
84
157
  .attr('x', this.xFunction)
85
158
  .attr('width', this.widthFunction);
86
159
  this.setValueTicks();
87
160
  };
161
+ this.highlightBarGroup = (_event, datum) => {
162
+ if (typeof datum === 'string') {
163
+ const barGroupID = '#' + this.barGroupID(datum);
164
+ this.barChartContainer.select(barGroupID).selectAll('.bar').transition('color')
165
+ .duration(20)
166
+ .attr('fill', (d) => {
167
+ var _a;
168
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
169
+ return 'url(#prognosisHighlight)';
170
+ }
171
+ else
172
+ return this.adjustColor(this.colorFunction(d.serie), 50);
173
+ });
174
+ }
175
+ };
176
+ this.unHighlightBarGroup = () => {
177
+ this.barSelection.selectAll('.bar').transition('color')
178
+ .duration(100)
179
+ .attr('fill', (d) => {
180
+ return this.colorFunction(d.serie);
181
+ });
182
+ };
88
183
  // Adding click listener for tool tip text
89
184
  this.setTickInteraction = () => {
90
185
  if (this.afVariation === BarChartVariation.Horizontal) {
91
- this._yAxisHandle
186
+ this.yAxisHandle
92
187
  .selectAll('text')
93
188
  .style('cursor', 'pointer')
94
189
  .on('click', this.openTooltip)
95
- .on('mouseenter', this.hover)
96
- .on('mouseleave', this.hoverOut);
190
+ .on('mouseenter', this.highlightBarGroup)
191
+ .on('mouseleave', this.unHighlightBarGroup);
97
192
  }
98
193
  else {
99
- this._xAxisHandle
194
+ this.xAxisHandle
100
195
  .selectAll('text')
101
196
  .style('cursor', 'pointer')
102
197
  .on('click', this.openTooltip)
103
- .on('mouseenter', this.hover)
104
- .on('mouseleave', this.hoverOut);
198
+ .on('mouseenter', this.highlightBarGroup)
199
+ .on('mouseleave', this.unHighlightBarGroup);
105
200
  }
106
201
  };
107
202
  // Setting Y-scale
108
203
  this.setYScale = (empty) => {
109
204
  var _a, _b, _c;
110
205
  if (this.afVariation == BarChartVariation.Horizontal) {
111
- this._yScale = d3
206
+ this.yScale = d3
112
207
  .scaleBand(empty
113
208
  ? ['0', '1', '2', '3', '4', '5', '6', '7']
114
- : this._chartData.data.xValueNames, [this._margin.top, this._dims.height - this._margin.bottom])
209
+ : this.chartData.data.xValueNames, [this.margin.top, this.dims.height - this.margin.bottom])
115
210
  .paddingOuter(0.1)
116
211
  .paddingInner(0.1);
117
- this._yAxis = d3.axisLeft(this._yScale);
212
+ this.yAxis = d3.axisLeft(this.yScale);
118
213
  }
119
214
  else {
120
- this._yScale = d3
215
+ this.yScale = d3
121
216
  .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
217
+ .domain(empty ? [0, 10] : [this.minVal, this.maxVal])
218
+ .nice(((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.numberOfReferenceLines)
219
+ ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.meta.numberOfReferenceLines
125
220
  : 3);
126
- this._yScale.range([
127
- this._dims.height - this._margin.bottom,
128
- this._margin.top
221
+ this.yScale.range([
222
+ this.dims.height - this.margin.bottom,
223
+ this.margin.top
129
224
  ]);
130
- this._yAxis = d3.axisLeft(this._yScale);
225
+ this.yAxis = d3.axisLeft(this.yScale);
131
226
  }
132
227
  };
133
228
  // Setting X-Scale
134
229
  this.setXScale = (empty) => {
135
230
  // Horizontal
136
231
  if (this.afVariation == BarChartVariation.Horizontal) {
137
- this._xScale = d3
232
+ this.xScale = d3
138
233
  .scaleLinear()
139
- .domain(empty ? [0, 10] : [this._minVal, this._maxVal])
234
+ .domain(empty ? [0, 10] : [this.minVal, this.maxVal])
140
235
  .nice(3);
141
- this._margin.right =
142
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
236
+ this.margin.right =
237
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
143
238
  this.yTickSize +
144
239
  this.tickPadding;
145
- this._xScale.range([
240
+ this.xScale.range([
146
241
  0,
147
- this._dims.width - this._margin.right - this._margin.left
242
+ this.dims.width - this.margin.right - this.margin.left
148
243
  ]);
149
244
  // Initializing actual axis
150
- this._xAxis = d3.axisBottom(this._xScale);
151
- this._tickWidth = this.getLargestText(this._xScale.ticks().map((tick) => tick.toLocaleString()));
245
+ this.xAxis = d3.axisBottom(this.xScale);
246
+ this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
152
247
  }
153
248
  else {
154
249
  // Vertical
155
- this._xScale = d3
250
+ this.xScale = d3
156
251
  .scaleBand()
157
- .domain(empty ? this._placeholderTicks : this._chartData.data.xValueNames)
158
- .range([0, this._dims.width - this._margin.right - this._margin.left])
252
+ .domain(empty ? this.placeholderTicks : this.chartData.data.xValueNames)
253
+ .range([0, this.dims.width - this.margin.right - this.margin.left])
159
254
  .paddingOuter(0.1)
160
255
  .paddingInner(0.1);
161
- this._xAxis = d3.axisBottom(this._xScale);
256
+ this.xAxis = d3.axisBottom(this.xScale);
162
257
  }
163
258
  };
164
259
  // Stores all tick text sizes in an indexable array
165
260
  this.tickSizes = () => {
166
261
  // 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])));
262
+ this.namedTickSizes = [];
263
+ this.ellipsisSize = this.getTextSize('...');
264
+ if (this.chartData && this.chartData.data) {
265
+ for (let i = 0; i < this.chartData.data.xValueNames.length; i++) {
266
+ this.namedTickSizes.push(Math.ceil(this.getTextSize(this.chartData.data.xValueNames[i])));
172
267
  }
173
268
  }
174
269
  };
270
+ this.barGroupID = (key) => {
271
+ return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
272
+ };
175
273
  this.updateBars = (fromLoading) => {
176
- this._barChartContainer
274
+ this.barChartContainer
177
275
  .selectAll('.barGroup')
178
276
  .data(this.mappedData)
179
277
  .join((enter) => {
@@ -181,7 +279,7 @@ export class barChart {
181
279
  const tempSelection = enter
182
280
  .append('g')
183
281
  .attr('class', 'barGroup')
184
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'));
282
+ .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''));
185
283
  tempSelection
186
284
  .append('rect')
187
285
  .attr('class', 'bar')
@@ -189,16 +287,16 @@ export class barChart {
189
287
  .attr('ry', 4)
190
288
  .attr('rx', 4)
191
289
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
192
- ? this._yScale(d.key)
193
- : this._dims.height - this._margin.bottom)
290
+ ? this.yScale(d.key)
291
+ : this.dims.height - this.margin.bottom)
194
292
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
195
293
  ? 2
196
- : this._xScale(d.key))
294
+ : this.xScale(d.key))
197
295
  .attr('width', () => this.afVariation === BarChartVariation.Horizontal
198
296
  ? 0
199
- : this._xScale.bandwidth())
297
+ : this.xScale.bandwidth())
200
298
  .attr('height', () => this.afVariation === BarChartVariation.Horizontal
201
- ? this._yScale.bandwidth()
299
+ ? this.yScale.bandwidth()
202
300
  : 0)
203
301
  .on('mouseenter', this.hover)
204
302
  .on('mouseleave', this.hoverOut)
@@ -210,7 +308,7 @@ export class barChart {
210
308
  .attr('y', this.yFunction)
211
309
  .attr('height', this.heightFunction)
212
310
  .attr('fill', '#00005a');
213
- if (!((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
311
+ if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
214
312
  return tempSelection;
215
313
  tempSelection
216
314
  .append('text')
@@ -221,32 +319,32 @@ export class barChart {
221
319
  .attr('text-anchor', 'end')
222
320
  .style('pointer-events', 'none')
223
321
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
224
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
225
- : this._dims.height - this._margin.bottom)
322
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
323
+ : this.dims.height - this.margin.bottom)
226
324
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
227
325
  ? 2
228
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
326
+ : this.xScale(d.key) + this.xScale.bandwidth() / 2)
229
327
  .transition()
230
328
  .duration(this.defaultDuration)
231
329
  .ease(d3.easePolyInOut)
232
330
  .attr('font-size', this.fontSize)
233
331
  .attr('font-weight', '600')
234
332
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
235
- ? this._xScale(d.value)
236
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
333
+ ? this.xScale(d.value)
334
+ : this.xScale(d.key) + this.xScale.bandwidth() / 2)
237
335
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
238
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
239
- : this._yScale(d.value))
336
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
337
+ : this.yScale(d.value))
240
338
  .attr('text-anchor', (d) => {
241
339
  if (this.afVariation === BarChartVariation.Vertical)
242
340
  return 'middle';
243
- return this._xScale(d.value) < d.len + this.tickPadding * 2
341
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
244
342
  ? 'start'
245
343
  : 'end';
246
344
  })
247
345
  .attr('dx', (d) => {
248
346
  if (this.afVariation === BarChartVariation.Horizontal)
249
- return this._xScale(d.value) < d.len + this.tickPadding * 2
347
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
250
348
  ? this.tickPadding
251
349
  : -this.tickPadding;
252
350
  return 0;
@@ -254,7 +352,7 @@ export class barChart {
254
352
  .attr('fill', (d) => {
255
353
  if (this.afVariation === BarChartVariation.Vertical)
256
354
  return 'black';
257
- return this._xScale(d.value) < d.len + this.tickPadding * 2
355
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
258
356
  ? 'black'
259
357
  : 'white';
260
358
  })
@@ -267,12 +365,12 @@ export class barChart {
267
365
  ? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
268
366
  : 0;
269
367
  const interpolatedValue = d3.interpolate(oldnum, d.value);
270
- return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this._numberFormat));
368
+ return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.numberFormat));
271
369
  });
272
370
  return tempSelection;
273
371
  }, (update) => {
274
372
  // Update ids to bars
275
- update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'));
373
+ update.attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''));
276
374
  // Mouse interaction to updated loading bars
277
375
  if (fromLoading) {
278
376
  update
@@ -282,11 +380,11 @@ export class barChart {
282
380
  .on('click', this.openTooltip)
283
381
  .attr('x', this.xFunction)
284
382
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
285
- ? this._yScale(d.key)
286
- : this._dims.height - this._margin.bottom)
383
+ ? this.yScale(d.key)
384
+ : this.dims.height - this.margin.bottom)
287
385
  .attr('width', this.widthFunction)
288
386
  .attr('height', () => this.afVariation === BarChartVariation.Horizontal
289
- ? this._yScale.bandwidth()
387
+ ? this.yScale.bandwidth()
290
388
  : 0)
291
389
  .attr('fill', '#00005a')
292
390
  .transition()
@@ -294,7 +392,7 @@ export class barChart {
294
392
  .ease(d3.easePolyInOut)
295
393
  .attr('y', this.yFunction)
296
394
  .attr('height', this.heightFunction)
297
- .on('end', () => this.barChartObserver.observe(this._chartDiv)); // Reset barchartObserver
395
+ .on('end', () => this.barChartObserver.observe(this.chartDiv)); // Reset barchartObserver
298
396
  }
299
397
  else {
300
398
  update
@@ -310,28 +408,28 @@ export class barChart {
310
408
  }
311
409
  return update
312
410
  .select('text')
313
- .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'; })
411
+ .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'; })
314
412
  .transition()
315
413
  .duration(this.defaultDuration)
316
414
  .ease(d3.easePolyInOut)
317
415
  .attr('font-size', this.fontSize)
318
416
  .attr('font-weight', '600')
319
417
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
320
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
321
- : this._yScale(d.value))
418
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
419
+ : this.yScale(d.value))
322
420
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
323
- ? this._xScale(d.value)
324
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
421
+ ? this.xScale(d.value)
422
+ : this.xScale(d.key) + this.xScale.bandwidth() / 2)
325
423
  .attr('text-anchor', (d) => {
326
424
  if (this.afVariation === BarChartVariation.Vertical)
327
425
  return 'middle';
328
- return this._xScale(d.value) < d.len + this.tickPadding * 2
426
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
329
427
  ? 'start'
330
428
  : 'end';
331
429
  })
332
430
  .attr('dx', (d) => {
333
431
  if (this.afVariation === BarChartVariation.Horizontal)
334
- return this._xScale(d.value) < d.len + this.tickPadding * 2
432
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
335
433
  ? this.tickPadding
336
434
  : -this.tickPadding;
337
435
  return 0;
@@ -339,7 +437,7 @@ export class barChart {
339
437
  .attr('fill', (d) => {
340
438
  if (this.afVariation === BarChartVariation.Vertical)
341
439
  return 'black';
342
- return this._xScale(d.value) < d.len + this.tickPadding * 2
440
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
343
441
  ? 'black'
344
442
  : 'white';
345
443
  })
@@ -352,27 +450,27 @@ export class barChart {
352
450
  ? parseFloat(nodelist[i].textContent.replace(/\s/g, ''))
353
451
  : 0;
354
452
  const interpolatedValue = d3.interpolate(oldnum, d.value);
355
- return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this._numberFormat));
453
+ return (t) => (nodelist[i].textContent = parseInt(interpolatedValue(t)).toLocaleString(undefined, this.numberFormat));
356
454
  });
357
455
  }, (exit) => exit.remove());
358
- this._barSelection = this._barChartContainer.selectAll('rect');
359
- this._textSelection = this._barChartContainer.selectAll('.barText');
456
+ this.barSelection = this.barChartContainer.selectAll('rect');
457
+ this.textSelection = this.barChartContainer.selectAll('.barText');
360
458
  };
361
459
  // Setting position of text according to bar size
362
460
  this.adjustBarText = () => {
363
461
  var _a, _b;
364
- if (!((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
462
+ if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
365
463
  return;
366
- this._textSelection
464
+ this.textSelection
367
465
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
368
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
369
- : this._yScale(d.value))
466
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
467
+ : this.yScale(d.value))
370
468
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
371
- ? this._xScale(d.value)
372
- : this._xScale(d.key) + this._xScale.bandwidth() / 2)
469
+ ? this.xScale(d.value)
470
+ : this.xScale(d.key) + this.xScale.bandwidth() / 2)
373
471
  .attr('dx', (d) => {
374
472
  if (this.afVariation === BarChartVariation.Horizontal)
375
- return this._xScale(d.value) < d.len + this.tickPadding * 2
473
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
376
474
  ? this.tickPadding
377
475
  : -this.tickPadding;
378
476
  return 0;
@@ -380,26 +478,26 @@ export class barChart {
380
478
  .attr('fill', (d) => {
381
479
  if (this.afVariation === BarChartVariation.Vertical)
382
480
  return 'black';
383
- return this._xScale(d.value) < d.len + this.tickPadding * 2
481
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
384
482
  ? 'black'
385
483
  : 'white';
386
484
  })
387
485
  .attr('text-anchor', (d) => {
388
486
  if (this.afVariation === BarChartVariation.Vertical)
389
487
  return 'middle';
390
- return this._xScale(d.value) < d.len + this.tickPadding * 2
488
+ return this.xScale(d.value) < d.len + this.tickPadding * 2
391
489
  ? 'start'
392
490
  : 'end';
393
491
  });
394
492
  };
395
493
  this.reshapeData = () => {
396
494
  const toReturn = [];
397
- if (this._loading) {
398
- this._placeholderTicks.forEach((key) => {
495
+ if (this.loading || !this.chartData) {
496
+ this.placeholderTicks.forEach((key) => {
399
497
  const tick = { key: key, series: [] };
400
498
  tick.series.push({
401
499
  key: key,
402
- serie: '',
500
+ serie: 'loading',
403
501
  value: Math.floor(Math.random() * (9 - 2 + 1) + 2),
404
502
  len: 0
405
503
  });
@@ -407,154 +505,177 @@ export class barChart {
407
505
  });
408
506
  return toReturn;
409
507
  }
410
- this._chartData.data.xValueNames.forEach((key, index) => {
411
- const tick = { key: key, series: [] };
412
- this._chartData.data.series.forEach((serie) => {
413
- if (serie.yValues[index]) {
414
- tick.series.push({
415
- key: key,
416
- serie: serie.title,
417
- value: serie.yValues[index],
418
- len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
508
+ else {
509
+ if (this.chartData.data.xValueNames) {
510
+ this.chartData.data.xValueNames.forEach((key, index) => {
511
+ const tick = { key: key, series: [] };
512
+ this.chartData.data.series.forEach((serie) => {
513
+ if (serie.yValues[index]) {
514
+ tick.series.push({
515
+ key: key,
516
+ serie: serie.title,
517
+ value: serie.yValues[index],
518
+ len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
519
+ });
520
+ }
419
521
  });
420
- }
421
- });
422
- toReturn.push(tick);
423
- });
522
+ toReturn.push(tick);
523
+ });
524
+ }
525
+ else {
526
+ this.chartData.data.xValues.forEach((key, index) => {
527
+ const tick = { key: key.toString(), series: [] };
528
+ this.chartData.data.series.forEach((serie) => {
529
+ if (serie.yValues[index]) {
530
+ tick.series.push({
531
+ key: key.toString(),
532
+ serie: serie.title,
533
+ value: serie.yValues[index],
534
+ len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
535
+ });
536
+ }
537
+ });
538
+ toReturn.push(tick);
539
+ });
540
+ }
541
+ }
424
542
  return toReturn;
425
543
  };
426
544
  this.adjustBarSize = () => {
427
- this._barSelection.selectAll('.bar')
545
+ this.barSelection.selectAll('.bar')
428
546
  .attr('x', this.xFunction)
429
547
  .attr('y', this.yFunction)
430
548
  .attr('width', this.widthFunction)
431
549
  .attr('height', this.heightFunction);
432
550
  };
551
+ this.evalColorVar = (colorVar) => {
552
+ return getComputedStyle(document.documentElement)
553
+ .getPropertyValue(colorVar)
554
+ .trim()
555
+ .toLocaleLowerCase();
556
+ };
433
557
  // Handling x positioning of bars
434
558
  this.xFunction = (d, i) => {
435
559
  return this.afVariation === BarChartVariation.Horizontal
436
- ? (d.value > 0 ? this._xScale(0) : this._xScale(d.value))
437
- : this._xScale(d.key) + ((this._xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
560
+ ? (d.value > 0 ? this.xScale(0) : this.xScale(d.value))
561
+ : this.xScale(d.key) + ((this.xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
438
562
  };
439
563
  // Handling y positioning of bars
440
564
  this.yFunction = (d, i) => {
441
565
  if (!d.value)
442
566
  return 0;
443
567
  return this.afVariation === BarChartVariation.Horizontal
444
- ? this._yScale(d.key) + ((this._yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
445
- : (d.value < 0 ? this._yScale(0) : this._yScale(d.value));
568
+ ? this.yScale(d.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
569
+ : (d.value < 0 ? this.yScale(0) : this.yScale(d.value));
446
570
  };
447
571
  // Handling height for bars
448
572
  this.heightFunction = (d) => {
449
573
  if (!d.value)
450
574
  return 0;
451
575
  return this.afVariation === BarChartVariation.Horizontal
452
- ? this._yScale.bandwidth() / this.dataWidth - (this.barGap)
453
- : (d.value < 0 ? this._yScale(d.value) - this._yScale(0) : this._yScale(0) - this._yScale(d.value));
576
+ ? this.yScale.bandwidth() / this.dataWidth - (this.barGap)
577
+ : (d.value < 0 ? this.yScale(d.value) - this.yScale(0) : this.yScale(0) - this.yScale(d.value));
454
578
  };
455
579
  // Handling width for bars
456
580
  this.widthFunction = (d) => {
457
581
  return this.afVariation === BarChartVariation.Horizontal
458
- ? Math.abs(this._xScale(0) - this._xScale(d.value))
459
- : this._xScale.bandwidth() / this.dataWidth - (this.barGap);
460
- };
461
- // Resize table
462
- this.resizeTable = () => {
463
- this.setDims();
464
- this.setTableDimensions();
582
+ ? Math.abs(this.xScale(0) - this.xScale(d.value))
583
+ : this.xScale.bandwidth() / this.dataWidth - (this.barGap);
465
584
  };
466
585
  // Setting dimension variable
467
586
  this.setDims = (onlyHeight = false) => {
468
587
  // Get title dimensions
469
- const tempTitle = d3.select(this._titleDiv).node().getBoundingClientRect(), tempLegend = d3.select(this._legendDiv).node().getBoundingClientRect();
470
- const prevHeight = this._dims.height;
588
+ const tempTitle = d3.select(this.titleDiv).node().getBoundingClientRect(), tempLegend = d3.select(this.legendDiv).node().getBoundingClientRect();
589
+ const prevHeight = this.dims.height;
471
590
  if (!onlyHeight)
472
- this._dims = d3.select(this._chartDiv).node().getBoundingClientRect();
473
- this._dims.height =
474
- this._maxHeight - tempLegend.height - tempTitle.height - 1.75 * this._rem;
475
- return prevHeight != this._dims.height;
591
+ this.dims = d3.select(this.chartDiv).node().getBoundingClientRect();
592
+ this.dims.height =
593
+ this.maxHeight - tempLegend.height - tempTitle.height - 1.75 * this.rem;
594
+ return prevHeight != this.dims.height;
476
595
  };
477
596
  // Setting margins given text size
478
597
  this.setMargins = (fromLoading) => {
479
598
  var _a;
480
- this._pixelSize =
599
+ this.pixelSize =
481
600
  Number(window
482
601
  .getComputedStyle(document.body)
483
602
  .getPropertyValue('font-size')
484
603
  .match(/\d+/)[0]) * Number(this.fontSize.replace(/[^\d.]|\.(?=.*\.)/g, ''));
485
604
  // Getting the longest word, assuming it will also be the widest in terms of pixels
486
605
  if (this.afVariation === BarChartVariation.Horizontal) {
487
- const left = ((_a = this._chartData) === null || _a === void 0 ? void 0 : _a.data) &&
488
- this.getLargestText(this._chartData.data.xValueNames)
489
- ? this.getLargestText(this._chartData.data.xValueNames)
606
+ const left = ((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data) &&
607
+ this.getLargestText(this.chartData.data.xValueNames)
608
+ ? this.getLargestText(this.chartData.data.xValueNames)
490
609
  : 0;
491
- this._margin.left = left;
610
+ this.margin.left = left;
611
+ this.margin.bottom = this.pixelSize + this.tickPadding + this.xTickSize;
492
612
  }
493
- else
494
- this._margin.left = this.getLargestText(fromLoading
613
+ else {
614
+ this.margin.left = this.getLargestText(fromLoading
495
615
  ? ['0', '10']
496
616
  : [
497
- this._minVal ? this._tempScale[0].toLocaleString() : '0',
498
- this._maxVal ? this._tempScale[1].toLocaleString() : '10'
617
+ this.minVal ? this.tempScale[0].toLocaleString() : '0',
618
+ this.maxVal ? this.tempScale[1].toLocaleString() : '10'
499
619
  ]);
500
- if (this._margin.left > this._dims.width / 4) {
501
- this._margin.left = Math.floor(this._dims.width / 4);
502
- this._margin.ellipsis = true;
620
+ this.margin.bottom = this.pixelSize;
621
+ }
622
+ if (this.margin.left > this.dims.width / 4) {
623
+ this.margin.left = Math.floor(this.dims.width / 4);
624
+ this.margin.ellipsis = true;
503
625
  }
504
626
  else
505
- this._margin.ellipsis = false;
506
- this._margin.bottom = this._pixelSize + this.tickPadding + this.xTickSize;
627
+ this.margin.ellipsis = false;
507
628
  };
508
629
  // Adjusting y-ticks
509
630
  this.setNamedTicks = (transition = false) => {
510
631
  if (this.afVariation == BarChartVariation.Horizontal) {
511
632
  if (!transition) {
512
- this._yAxisHandle
633
+ this.yAxisHandle
513
634
  .style('font-size', this.fontSize)
514
635
  .style('font-family', 'Open Sans')
515
- .call(this._yAxis
636
+ .call(this.yAxis
516
637
  .tickPadding(this.tickPadding)
517
638
  .tickSize(this.yTickSize)
518
639
  .tickSizeOuter(0)
519
640
  .tickFormat((d, i) => {
520
- if (!this._margin.ellipsis)
641
+ if (!this.margin.ellipsis)
521
642
  return d.toLocaleString();
522
643
  // Adding ellipsis to text
523
- const size = this._namedTickSizes[i] + this.tickPadding + this.yTickSize;
524
- const mSize = this._margin.left;
644
+ const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
645
+ const mSize = this.margin.left;
525
646
  if (size < mSize)
526
647
  return d.toLocaleString();
527
- const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length), 3)) + '...');
648
+ const newSize = this.getTextSize(d.slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3)) + '...');
528
649
  let adjustment = 0;
529
650
  if (newSize > mSize) {
530
651
  adjustment = Math.ceil((newSize - mSize) / (size / d.length));
531
652
  }
532
653
  // Slicing the text up, saving atleast 3 characters
533
654
  return (d
534
- .slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length) - adjustment, 3))
655
+ .slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
535
656
  .trim() + '...');
536
657
  }));
537
658
  }
538
659
  else {
539
- this._yAxisHandle
660
+ this.yAxisHandle
540
661
  .style('font-size', this.fontSize)
541
662
  .style('font-family', 'Open Sans')
542
663
  .transition()
543
664
  .duration(this.defaultDuration)
544
- .call(this._yAxis
665
+ .call(this.yAxis
545
666
  .tickPadding(this.tickPadding)
546
667
  .tickSize(this.yTickSize)
547
668
  .tickSizeOuter(0)
548
669
  .tickFormat((d, i) => {
549
- if (!this._margin.ellipsis)
670
+ if (!this.margin.ellipsis)
550
671
  return d;
551
672
  // Adding ellipsis to text
552
- const size = this._namedTickSizes[i] + this.tickPadding + this.yTickSize;
553
- const mSize = this._margin.left;
673
+ const size = this.namedTickSizes[i] + this.tickPadding + this.yTickSize;
674
+ const mSize = this.margin.left;
554
675
  if (size < mSize)
555
676
  return d;
556
677
  const newSize = this.getTextSize(d
557
- .slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length), 3))
678
+ .slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length), 3))
558
679
  .trim() + '...');
559
680
  let adjustment = 0;
560
681
  if (newSize > mSize) {
@@ -562,26 +683,26 @@ export class barChart {
562
683
  }
563
684
  // Slicing the text up, saving atleast 3 characters
564
685
  return (d
565
- .slice(0, Math.max(Math.floor((mSize / (size + this._ellipsisSize)) * d.length) - adjustment, 3))
686
+ .slice(0, Math.max(Math.floor((mSize / (size + this.ellipsisSize)) * d.length) - adjustment, 3))
566
687
  .trim() + '...');
567
688
  }));
568
689
  }
569
690
  }
570
691
  else {
571
692
  //Calculating every n:th text to show
572
- let nTh = Math.round(this._chartData.data.xValues.length /
573
- ((this._dims.width - this._margin.left - this._margin.right) / 90 - 1));
574
- if (Math.floor(this._chartData.data.xValues.length / nTh) < 4) {
575
- nTh = Math.round(this._chartData.data.xValues.length / 4);
693
+ let nTh = Math.max(Math.round(this.chartData.data.xValues.length /
694
+ ((this.dims.width - this.margin.left - this.margin.right) / 90 - 1)), 1);
695
+ if (Math.floor(this.chartData.data.xValues.length / nTh) < 4) {
696
+ nTh = Math.round(this.chartData.data.xValues.length / 4);
576
697
  }
577
- const allowedWidth = (this._dims.width - this._margin.left - this._margin.right) /
578
- Math.floor(this._chartData.data.xValues.length / nTh + 1);
698
+ const allowedWidth = (this.dims.width - this.margin.left - this.margin.right) /
699
+ Math.floor(this.chartData.data.xValues.length / nTh + 1);
579
700
  if (!transition) {
580
- this._xAxisHandle
701
+ this.xAxisHandle
581
702
  .style('font-size', this.fontSize)
582
703
  .style('font-family', 'Open Sans')
583
- .call(this._xAxis
584
- .tickValues(this._xScale.domain().filter((...[, i]) => {
704
+ .call(this.xAxis
705
+ .tickValues(this.xScale.domain().filter((...[, i]) => {
585
706
  if (i == 0)
586
707
  return true;
587
708
  else {
@@ -593,23 +714,23 @@ export class barChart {
593
714
  .tickSizeOuter(0)
594
715
  .tickFormat((d, i) => {
595
716
  const index = i * nTh;
596
- if (this._namedTickSizes[index] < allowedWidth)
717
+ if (this.namedTickSizes[index] < allowedWidth)
597
718
  return d;
598
719
  return (d.slice(0, Math.max(Math.floor((allowedWidth /
599
- (this._namedTickSizes[index] +
600
- this._ellipsisSize +
720
+ (this.namedTickSizes[index] +
721
+ this.ellipsisSize +
601
722
  5)) *
602
723
  d.length), 3)) + '...');
603
724
  }));
604
725
  }
605
726
  else {
606
- this._xAxisHandle
727
+ this.xAxisHandle
607
728
  .style('font-size', this.fontSize)
608
729
  .style('font-family', 'Open Sans')
609
730
  .transition()
610
731
  .duration(this.defaultDuration)
611
- .call(this._xAxis
612
- .tickValues(this._xScale.domain().filter((...[, i]) => {
732
+ .call(this.xAxis
733
+ .tickValues(this.xScale.domain().filter((...[, i]) => {
613
734
  if (i == 0)
614
735
  return true;
615
736
  else {
@@ -621,11 +742,11 @@ export class barChart {
621
742
  .tickSizeOuter(0)
622
743
  .tickFormat((d, i) => {
623
744
  const index = i * nTh;
624
- if (this._namedTickSizes[index] < allowedWidth)
745
+ if (this.namedTickSizes[index] < allowedWidth)
625
746
  return d;
626
747
  return (d.slice(0, Math.max(Math.floor((allowedWidth /
627
- (this._namedTickSizes[index] +
628
- this._ellipsisSize +
748
+ (this.namedTickSizes[index] +
749
+ this.ellipsisSize +
629
750
  5)) *
630
751
  d.length), 3)) + '...');
631
752
  }));
@@ -635,30 +756,30 @@ export class barChart {
635
756
  // Positioning the ticks of the value bearing axis
636
757
  this.setValueTicks = (transition = false) => {
637
758
  var _a, _b;
638
- if (((_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
759
+ if (((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) && ((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.meta.hideXAxis)) {
639
760
  this.afVariation === BarChartVariation.Horizontal
640
- ? this._xAxisHandle.attr('display', 'none')
641
- : this._yAxisHandle.attr('display', 'none');
761
+ ? this.xAxisHandle.attr('display', 'none')
762
+ : this.yAxisHandle.attr('display', 'none');
642
763
  return;
643
764
  }
644
765
  let toCall, tickSize, handle;
645
766
  if (this.afVariation === BarChartVariation.Horizontal) {
646
- this._xAxisHandle.attr('display', null);
647
- toCall = this._xAxis;
648
- tickSize = -(this._dims.height - this._margin.top - this._margin.bottom);
649
- handle = this._xAxisHandle;
767
+ this.xAxisHandle.attr('display', null);
768
+ toCall = this.xAxis;
769
+ tickSize = -(this.dims.height - this.margin.top - this.margin.bottom);
770
+ handle = this.xAxisHandle;
650
771
  }
651
772
  else {
652
- this._yAxisHandle.attr('display', null);
653
- toCall = this._yAxis;
654
- tickSize = -(this._dims.width - this._margin.left - this._margin.right);
655
- handle = this._yAxisHandle;
773
+ this.yAxisHandle.attr('display', null);
774
+ toCall = this.yAxis;
775
+ tickSize = -(this.dims.width - this.margin.left - this.margin.right);
776
+ handle = this.yAxisHandle;
656
777
  }
657
778
  // Computing the amount of ticks to show
658
- const ticks = Math.min(Math.floor((this._dims.width - this._margin.left - this._margin.right) /
659
- (this._tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
660
- ? this._xScale.ticks().length
661
- : this._yScale.ticks().length);
779
+ const ticks = Math.min(Math.floor((this.dims.width - this.margin.left - this.margin.right) /
780
+ (this.tickWidth + this.xTickSize)) - 2, this.afVariation == BarChartVariation.Horizontal
781
+ ? this.xScale.ticks().length
782
+ : this.yScale.ticks().length);
662
783
  if (!transition) {
663
784
  handle
664
785
  .style('font-size', this.fontSize)
@@ -689,124 +810,162 @@ export class barChart {
689
810
  }
690
811
  handle.selectAll('line').attr('stroke', 'lightgray');
691
812
  if (this.afVariation === BarChartVariation.Vertical)
692
- this._yAxisHandle.select('.domain').attr('display', 'none');
813
+ this.yAxisHandle.select('.domain').attr('display', 'none');
693
814
  };
694
815
  // Highlight bar
695
816
  this.hover = (event) => {
696
817
  d3.select(event.target)
697
- .transition('hover')
818
+ .transition('color')
698
819
  .duration(20)
699
- .attr('fill', (d) => event.target.tagName === 'rect'
700
- ? `hsl(from ${this.colorFunction(d.serie)} h s calc(l + 10))`
701
- : 'var(--digi--color--background--interactive--hover--tertiary)');
820
+ .attr('fill', (d) => {
821
+ var _a;
822
+ if (event.target.tagName === 'rect') {
823
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
824
+ return 'url(#prognosisHighlight)';
825
+ }
826
+ else
827
+ return this.adjustColor(this.colorFunction(d.serie), 50);
828
+ }
829
+ else {
830
+ return this.evalColorVar('--digi--color--background--interactive--hover--tertiary');
831
+ }
832
+ });
702
833
  };
703
834
  // Removing highlight from bar
704
835
  this.hoverOut = (event) => {
705
836
  d3.select(event.target)
706
- .transition('hover')
837
+ .transition('color')
707
838
  .duration(this.defaultDuration)
708
839
  .attr('fill', (d) => event.target.tagName === 'rect' ? this.colorFunction(d.serie) : '#333333');
709
840
  };
710
841
  this.openTooltip = (...[, d]) => {
711
842
  // If type is string, the user has clicked on a y-axis tick
712
843
  if (typeof d === 'string') {
713
- this._tooltipData = this._barChartContainer
714
- .select(`#barGroup${d.replace(/[^A-Z0-9]+/gi, '_')}`)
844
+ this.tooltipData = this.barChartContainer
845
+ .select(`#${this.barGroupID(d)}`)
715
846
  .datum();
716
847
  }
717
848
  else
718
- this._tooltipData = d;
719
- const tooltipBody = this._tooltip.select('.tooltipBody');
720
- tooltipBody
721
- .select(this._tooltipHeading)
722
- .style('margin', '0 0.75rem 0 0 ')
723
- .style('font-weight', 500)
724
- .html(this._tooltipData.key);
849
+ this.tooltipData = d;
850
+ const tooltipBody = this.tooltip.select('.tooltipBody');
851
+ this.tooltip
852
+ .select('.tooltipHeading')
853
+ .html(this.tooltipData.key);
725
854
  tooltipBody
726
855
  .selectAll('div')
727
- .data([this._tooltipData])
856
+ .data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
728
857
  .join('div')
729
858
  .style('display', 'flex')
730
859
  .style('flex-direction', 'row')
731
860
  .style('flex-wrap', 'nowrap')
732
861
  .style('white-space', 'nowrap')
733
862
  .style('justify-content', 'space-between')
734
- .html((d) => d.value.toLocaleString());
735
- this._tooltip.style('display', 'flex');
736
- this.positionTooltip(this._tooltipData);
863
+ .style('margin', '0.25rem 0')
864
+ .html((d) => {
865
+ return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
866
+ });
867
+ this.tooltip.style('visibility', 'visible');
868
+ this.positionTooltip(this.tooltipData);
737
869
  };
738
870
  this.closeTooltip = () => {
739
- this._tooltip.style('display', 'none');
871
+ this.tooltip.style('visibility', 'hidden');
740
872
  };
741
873
  // Positions tooltip in horizontal mode
742
874
  this.positionTooltip = (data) => {
743
- const width = this._tooltip.node().getBoundingClientRect().width;
744
- const height = this._tooltip.node().getBoundingClientRect().height + 8;
745
- const diff = this._xScale(data.value) / 2 - width / 2;
746
- if (this.afVariation === BarChartVariation.Horizontal) {
747
- this._tooltip
748
- .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 )`)
749
- .style('max-width', this._xScale.range()[1] + 'px');
750
- this._tooltip
751
- .select('digi-icon-caret-up')
752
- .style('position', 'absolute')
753
- .style('--digi--icon--color', 'white')
754
- .style('top', '-11px')
755
- .style('left', '0')
756
- .style('transform', `translate(${diff > 0 ? width / 2 - 10 : this._xScale(data.value) / 2}px,0)`);
875
+ var _a;
876
+ const width = this.tooltip.node().getBoundingClientRect().width;
877
+ // Single bar
878
+ if ('serie' in data) {
879
+ if (this.afVariation === BarChartVariation.Horizontal) {
880
+ const diff = this.xScale(data.value) / 2 - width / 2;
881
+ this.tooltip
882
+ .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 )`)
883
+ .style('max-width', this.xScale.range()[1] + 'px');
884
+ this.tooltip
885
+ .select('digi-icon-caret-up')
886
+ .style('position', 'absolute')
887
+ .style('top', '-12px')
888
+ .style('left', '0')
889
+ .style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
890
+ }
891
+ else {
892
+ 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);
893
+ const barIndex = ((this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1)) - (this.xScale.bandwidth() / this.dataWidth) / 2;
894
+ // This should be where the x-axis starts
895
+ const xStart = this.margin.left + this.tickPadding + this.yTickSize;
896
+ // Creating adjustment for tooltip to not appear outside of chart
897
+ const spaceToSVGEdge = 5;
898
+ 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;
899
+ this.tooltip
900
+ .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) )`);
901
+ this.tooltip
902
+ .select('digi-icon-caret-down')
903
+ .style('position', 'absolute')
904
+ .style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
905
+ .style('bottom', '-12px');
906
+ }
757
907
  }
758
908
  else {
759
- this._tooltip
760
- .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 )`)
761
- .style('max-width', this._xScale.range()[1] + 'px');
762
- this._tooltip
763
- .select('digi-icon-caret-down')
764
- .style('position', 'absolute')
765
- .style('--digi--icon--color', 'white')
766
- .style('left', '0')
767
- .style('bottom', '-11px')
768
- .style('transform', `translate(${width / 2 - 6}px,0)`);
909
+ if (this.afVariation === BarChartVariation.Horizontal) {
910
+ console.log('helloo');
911
+ }
912
+ else {
913
+ const xStart = this.margin.left + this.tickPadding + this.yTickSize;
914
+ const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
915
+ const yMax = d3.max(data.series.map(elem => elem.value));
916
+ // Creating adjustment for tooltip to not appear outside of chart
917
+ const spaceToSVGEdge = 5;
918
+ const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (translatePoint + width / 2) ? (((translatePoint + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
919
+ this.tooltip
920
+ .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) )`);
921
+ this.tooltip
922
+ .select('digi-icon-caret-down')
923
+ .style('position', 'absolute')
924
+ .style('left', `calc(${50 + inlineAdjustment}% - 6px)`)
925
+ .style('bottom', '-12px');
926
+ }
769
927
  }
770
928
  };
771
929
  // Once texts has fully loaded, we can recompute some sizes
772
930
  this.recomputeTextSize = () => {
773
931
  var _a, _b;
774
932
  if (this.afVariation == BarChartVariation.Horizontal)
775
- this._tickWidth = this.getLargestText(this._xScale.ticks().map((tick) => tick.toLocaleString()));
933
+ this.tickWidth = this.getLargestText(this.xScale.ticks().map((tick) => tick.toLocaleString()));
776
934
  this.tickSizes();
777
- this._barChartContainer.selectAll('.barGroup').data(this.mappedData);
778
- if ((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
779
- this._textSelection.remove();
935
+ this.barChartContainer.selectAll('.barGroup').data(this.mappedData);
936
+ if ((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels)
937
+ this.textSelection.remove();
780
938
  this.initBarText();
781
939
  };
782
940
  // Removes resize observer for chart and inits table
783
941
  this.activateTable = (event) => {
784
942
  this.closeTooltip();
785
943
  this.barChartObserver.disconnect();
786
- this.tableObserver.observe(this._chartDiv);
787
- this._status.innerHTML = '<p>Visas som tabell</p>';
788
- d3.select(this._host).select('.tableButton').style('display', 'none');
789
- d3.select(this._host).select('.chartButton').style('display', null);
944
+ this.status.innerHTML = '<p>Visas som tabell</p>';
945
+ d3.select(this.host).select('.tableButton').style('display', 'none');
946
+ d3.select(this.host).select('.chartButton').style('display', null);
790
947
  event.target.nextSibling.lastChild.focus();
791
948
  const duration = 150;
792
- this._svg
949
+ this.svg
793
950
  .attr('opacity', 1)
794
951
  .transition('fadeout')
795
952
  .duration(duration)
796
953
  .attr('opacity', 0)
797
954
  .on('end', () => {
798
- this._svg.remove();
799
- this._legendDiv.style['display'] = 'none';
800
- this._tableDiv.style['display'] = 'block';
955
+ this.svg.remove();
956
+ d3.select(this.legendDiv).select('.legend').selectAll('.legendChip').remove();
957
+ this.legendDiv.style['display'] = 'none';
958
+ this.tableDiv.style['display'] = 'block';
801
959
  this.setTableContent();
802
960
  this.setTableDimensions();
803
- d3.select(this._tableDiv)
961
+ d3.select(this.tableDiv)
804
962
  .style('opacity', 0)
805
963
  .transition('fadein')
806
964
  .duration(duration)
807
965
  .style('opacity', 1);
966
+ this.chartDiv.style['display'] = 'none';
808
967
  });
809
- d3.select(this._legendDiv)
968
+ d3.select(this.legendDiv)
810
969
  .style('opacity', 1)
811
970
  .transition('fadeout')
812
971
  .duration(duration)
@@ -814,12 +973,12 @@ export class barChart {
814
973
  };
815
974
  // Removes observer and calls init functions for line chart
816
975
  this.reInitChart = (event) => {
817
- this.tableObserver.disconnect();
818
- this._status.innerHTML = '<p>Visas som diagram</p>';
819
- d3.select(this._host).select('.tableButton').style('display', null);
820
- d3.select(this._host).select('.chartButton').style('display', 'none');
976
+ this.status.innerHTML = '<p>Visas som diagram</p>';
977
+ d3.select(this.host).select('.tableButton').style('display', null);
978
+ d3.select(this.host).select('.chartButton').style('display', 'none');
821
979
  event.target.previousSibling.lastChild.focus();
822
- const table = d3.select(this._tableDiv);
980
+ const table = d3.select(this.tableDiv);
981
+ const duration = 150;
823
982
  table
824
983
  .style('opacity', 1)
825
984
  .transition()
@@ -827,12 +986,19 @@ export class barChart {
827
986
  .style('opacity', 0)
828
987
  .on('end', () => {
829
988
  table.style('display', 'none');
989
+ this.chartDiv.style['display'] = 'flex';
990
+ this.legendDiv.style['display'] = 'grid';
830
991
  this.initChain();
831
- this._svg
992
+ this.svg
832
993
  .attr('opacity', 0)
833
994
  .transition()
834
- .duration(150)
995
+ .duration(duration)
835
996
  .attr('opacity', 1);
997
+ d3.select(this.legendDiv)
998
+ .style('opacity', 0)
999
+ .transition('fadeout')
1000
+ .duration(duration)
1001
+ .style('opacity', 1);
836
1002
  });
837
1003
  };
838
1004
  this.afVariation = BarChartVariation.Vertical;
@@ -842,9 +1008,10 @@ export class barChart {
842
1008
  }
843
1009
  afChartDataUpdate(data) {
844
1010
  if (typeof data != 'string')
845
- this._chartData = data;
1011
+ this.chartData = data;
846
1012
  else
847
- this._chartData = JSON.parse(data);
1013
+ this.chartData = JSON.parse(data);
1014
+ this.series = this.chartData.data.series.map(serie => serie.title);
848
1015
  this.mappedData = this.reshapeData();
849
1016
  // checking for width of each tick
850
1017
  this.mappedData.forEach((elem) => {
@@ -857,73 +1024,117 @@ export class barChart {
857
1024
  initSvg() {
858
1025
  var _a, _b, _c, _d, _e, _f, _g;
859
1026
  // Fetch number formatting
860
- this._numberFormat = {
861
- 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,
862
- 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)
1027
+ this.numberFormat = {
1028
+ 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,
1029
+ 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)
863
1030
  ? 'compact'
864
1031
  : 'standard'
865
1032
  };
866
- d3.select(this._chartDiv).select('svg').remove();
867
- this._maxHeight = (_g = d3
868
- .select(this._host)
1033
+ d3.select(this.chartDiv).select('.chartSVG').remove();
1034
+ this.maxHeight = (_g = d3
1035
+ .select(this.host)
869
1036
  .node()
870
1037
  .parentNode) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().height;
871
- this.barChartObserver.observe(this._chartDiv);
1038
+ this.barChartObserver.observe(this.chartDiv);
872
1039
  // Getting rem-size
873
- this._rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
874
- this.setMinMax();
1040
+ this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
875
1041
  this.setDims();
1042
+ this.setMinMax();
876
1043
  this.setMargins();
877
1044
  // Appending svg
878
- this._svg = d3
879
- .select(this._chartDiv)
1045
+ this.svg = d3
1046
+ .select(this.chartDiv)
880
1047
  .append('svg')
1048
+ .attr('class', 'chartSVG')
881
1049
  .attr('aria-hidden', true)
882
1050
  .attr('role', 'img')
883
- .attr('aria-label', this._chartData && this._chartData.title
884
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
885
- : 'Stapeldiagram');
886
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
1051
+ .attr('aria-label', this.chartData && this.chartData.title
1052
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1053
+ : 'Stapeldiagram')
1054
+ .attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
1055
+ }
1056
+ initLegend() {
1057
+ const rectSize = 18;
1058
+ const legendData = this.chartData.data.series.map(serie => serie.title);
1059
+ if (this.chartData.data.averageLine)
1060
+ legendData.push(this.chartData.data.averageLine.text);
1061
+ const legendChips = d3.select(this.legendDiv).select('.legend')
1062
+ .style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
1063
+ .selectAll('.legendChip')
1064
+ .data(legendData)
1065
+ .join('div')
1066
+ .attr('class', 'legendChip')
1067
+ .style('display', 'flex')
1068
+ .style('flex-direction', 'row')
1069
+ .style('align-items', 'center')
1070
+ .style('gap', '0.25rem')
1071
+ .style('cursor', 'default')
1072
+ .on('mouseenter', (_event, serie) => this.highlightBars(serie))
1073
+ .on('mouseleave', this.resetBarColor);
1074
+ legendChips.append('svg')
1075
+ .attr('width', rectSize)
1076
+ .attr('height', rectSize)
1077
+ .append('rect')
1078
+ .attr('x', 0)
1079
+ .attr('y', 0)
1080
+ .attr('width', rectSize)
1081
+ .attr('height', rectSize)
1082
+ .attr('rx', 4)
1083
+ .attr('ry', 4)
1084
+ .attr('fill', (title) => this.colorFunction(title));
1085
+ legendChips.append('span').style('text-wrap', 'nowrap').text((d) => d);
1086
+ if (this.chartData.data.averageLine) {
1087
+ const averageLine = legendChips.filter(':last-child')
1088
+ .on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
1089
+ const miniSVG = averageLine
1090
+ .select('svg')
1091
+ .attr('width', rectSize * 2);
1092
+ miniSVG.select('rect').remove();
1093
+ miniSVG.append('line')
1094
+ .attr('x1', 1)
1095
+ .attr('x2', rectSize * 2 - 1)
1096
+ .attr('y1', rectSize / 2 + 1)
1097
+ .attr('y2', rectSize / 2 + 1)
1098
+ .attr('stroke', 'var(--digi--color--infographic--lineart)')
1099
+ .attr('stroke-linecap', 'round')
1100
+ .attr('stroke-dasharray', '12, 7');
1101
+ }
887
1102
  }
888
1103
  initToolTip() {
889
1104
  // Getting handle for tooltip
890
- this._tooltip = d3.select('#' + this.afId);
891
- this._tooltip.select('.close').on('click', this.closeTooltip);
892
- this._tooltipHeading =
893
- 'h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1); // increment heading level by one
1105
+ this.tooltip = d3.select('#' + this.afId);
1106
+ this.tooltip.select('.close').on('click', this.closeTooltip);
894
1107
  // Add heading placeholder for heading
895
- this._tooltip
896
- .selectAll('.tooltipBody')
897
- .append(this._tooltipHeading)
1108
+ this.tooltip
1109
+ .select('.tooltipHead')
1110
+ .insert('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1), ':first-child') // increment heading level by one
898
1111
  .attr('class', 'tooltipHeading') // Adding class to try to dodge global css classes
899
1112
  .style('font-size', '1rem')
900
- .style('margin', '0 0.75rem')
1113
+ .style('margin', '0 0.75rem 0.5rem 0 ')
901
1114
  .style('font-weight', '500');
1115
+ this.tooltip.style('visibility', 'hidden');
902
1116
  }
903
1117
  initEmpty() {
904
- d3.select(this._chartDiv).select('svg').remove();
905
- this._maxHeight = d3
906
- .select(this._host)
1118
+ d3.select(this.chartDiv).select('svg').remove();
1119
+ this.maxHeight = d3
1120
+ .select(this.host)
907
1121
  .node()
908
1122
  .parentNode.getBoundingClientRect().height;
909
- this.barChartObserver.observe(this._chartDiv);
1123
+ this.barChartObserver.observe(this.chartDiv);
910
1124
  // Getting rem-size
911
- this._rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
912
- //this.setMinMax();
913
- this.setDims();
1125
+ this.rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
914
1126
  this.setMargins();
915
1127
  // Appending svg
916
- this._svg = d3
917
- .select(this._chartDiv)
1128
+ this.svg = d3
1129
+ .select(this.chartDiv)
918
1130
  .append('svg')
919
1131
  .attr('aria-hidden', true)
920
1132
  .attr('role', 'img')
921
- .attr('aria-label', this._chartData && this._chartData.title
922
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
1133
+ .attr('aria-label', this.chartData && this.chartData.title
1134
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
923
1135
  : 'Stapeldiagram');
924
- this._svg.attr('width', this._dims.width).attr('height', this._dims.height);
925
1136
  // Hide unusable components
926
- d3.select(this._titleDiv)
1137
+ d3.select(this.titleDiv)
927
1138
  .select(this.afHeadingLevel)
928
1139
  .html(`${_t.loading}...`);
929
1140
  this.initYAxis(true);
@@ -931,62 +1142,60 @@ export class barChart {
931
1142
  this.loadingState(true);
932
1143
  }
933
1144
  loadingState(empty) {
934
- this._loading = true;
1145
+ this.loading = true;
935
1146
  // close potentially open tooltip
936
- if (this._tooltip)
1147
+ if (this.tooltip)
937
1148
  this.closeTooltip();
938
- d3.select(this._host).select('.tableButton').style('display', 'none');
1149
+ d3.select(this.host).select('.tableButton').style('display', 'none');
939
1150
  const newHeight = this.setDims();
940
1151
  this.transitionTitle();
941
- this._xAxisHandle.selectAll('.tick').remove();
942
- this._xAxisHandle.select('path').remove();
943
- this._svg
1152
+ this.xAxisHandle.selectAll('.tick').remove();
1153
+ this.xAxisHandle.select('path').remove();
1154
+ this.svg
944
1155
  .transition()
945
1156
  .duration(400)
946
- .attr('width', this._dims.width)
947
- .attr('height', this._dims.height)
948
- .attr('aria-label', this._chartData && this._chartData.title
949
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
1157
+ .attr('aria-label', this.chartData && this.chartData.title
1158
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
950
1159
  : 'Stapeldiagram');
951
1160
  this.setMargins(true);
952
- d3.select(this._titleDiv)
1161
+ d3.select(this.titleDiv)
953
1162
  .select(this.afHeadingLevel)
954
1163
  .html(`${_t.loading}...`);
955
1164
  // Waiting with observing for changes until transition to regular bars is complete
956
- this._barChartContainer
1165
+ this.barChartContainer
957
1166
  .transition('position')
958
1167
  .duration(this.defaultDuration)
959
1168
  .ease(d3.easePolyInOut)
960
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1169
+ .attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
961
1170
  // If there is a new height
962
1171
  if (newHeight) {
963
1172
  // Update y-axis with potentially new height (might want to do a check here)
964
1173
  this.afVariation === BarChartVariation.Horizontal
965
- ? this._yScale.range([
966
- this._margin.top,
967
- this._dims.height - this._margin.bottom
1174
+ ? this.yScale.range([
1175
+ this.margin.top,
1176
+ this.dims.height - this.margin.bottom
968
1177
  ])
969
- : this._yScale.range([
970
- this._dims.height - this._margin.bottom,
971
- this._margin.top
1178
+ : this.yScale.range([
1179
+ this.dims.height - this.margin.bottom,
1180
+ this.margin.top
972
1181
  ]);
973
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1182
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
974
1183
  }
975
1184
  const animateBars = () => {
976
- this._barChartContainer.selectAll('.barGroup').remove();
977
- this._barSelection = this._barChartContainer
1185
+ this.barChartContainer.selectAll('.barGroup').remove();
1186
+ this.barSelection = this.barChartContainer
978
1187
  .selectAll('barGroup')
979
1188
  .data(this.mappedData)
980
1189
  .join('g')
981
1190
  .attr('class', 'barGroup')
982
- .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_'))
1191
+ .attr('id', (d) => 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, ''))
983
1192
  .append('rect')
984
1193
  .attr('class', 'bar')
985
1194
  .style('cursor', 'pointer');
986
- this._barSelection
1195
+ this.barSelection
987
1196
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
988
- ? this._yScale(d.key)
989
- : this._dims.height - this._margin.bottom)
1197
+ ? this.yScale(d.key)
1198
+ : this.dims.height - this.margin.bottom)
990
1199
  .attr('x', this.xFunction)
991
1200
  .attr('ry', 4)
992
1201
  .attr('rx', 4)
@@ -998,29 +1207,29 @@ export class barChart {
998
1207
  .delay((...[, i]) => i * 150)
999
1208
  .attr('y', this.yFunction)
1000
1209
  .attr('height', this.heightFunction);
1001
- this._barSelection
1210
+ this.barSelection
1002
1211
  .transition()
1003
1212
  .duration(400)
1004
1213
  .ease(d3.easeLinear)
1005
1214
  .delay((...[, i]) => i * 150 + 400)
1006
1215
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1007
- ? this._yScale(d.key)
1008
- : this._dims.height - this._margin.bottom)
1216
+ ? this.yScale(d.key)
1217
+ : this.dims.height - this.margin.bottom)
1009
1218
  .attr('height', () => 0)
1010
1219
  .on('end', (...[, i]) => {
1011
- if (i === this._placeholderTicks.length - 1)
1220
+ if (i === this.placeholderTicks.length - 1)
1012
1221
  animateBars();
1013
1222
  });
1014
1223
  };
1015
1224
  const flattenBars = () => {
1016
- this._barChartContainer
1225
+ this.barChartContainer
1017
1226
  .selectAll('rect')
1018
1227
  .transition()
1019
1228
  .duration(200)
1020
1229
  .ease(d3.easeLinear)
1021
1230
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1022
- ? this._yScale(d.key)
1023
- : this._dims.height - this._margin.bottom)
1231
+ ? this.yScale(d.key)
1232
+ : this.dims.height - this.margin.bottom)
1024
1233
  .attr('height', () => 0)
1025
1234
  .on('end', (...[, i]) => {
1026
1235
  if (i != 0)
@@ -1028,7 +1237,7 @@ export class barChart {
1028
1237
  this.setYScale(true);
1029
1238
  this.setValueTicks();
1030
1239
  this.setXScale(true);
1031
- this.barChartObserver.observe(this._chartDiv);
1240
+ this.barChartObserver.observe(this.chartDiv);
1032
1241
  animateBars();
1033
1242
  });
1034
1243
  };
@@ -1038,20 +1247,20 @@ export class barChart {
1038
1247
  flattenBars();
1039
1248
  }
1040
1249
  transitionTitle() {
1041
- const height = d3.select(this._titleDiv).style('height');
1042
- d3.select(this._titleDiv)
1043
- .style('height', this._prevHeight)
1250
+ const height = d3.select(this.titleDiv).style('height');
1251
+ d3.select(this.titleDiv)
1252
+ .style('height', this.prevHeight)
1044
1253
  .transition('adjust')
1045
1254
  .duration(400)
1046
1255
  .style('height', height)
1047
- .on('end', () => d3.select(this._titleDiv).style('height', null));
1256
+ .on('end', () => d3.select(this.titleDiv).style('height', null));
1048
1257
  }
1049
1258
  initYAxis(empty) {
1050
1259
  this.setYScale(empty);
1051
- this._barChartContainer = this._svg
1260
+ this.barChartContainer = this.svg
1052
1261
  .append('g')
1053
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1054
- this._yAxisHandle = this._barChartContainer.append('g');
1262
+ .attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1263
+ this.yAxisHandle = this.barChartContainer.append('g');
1055
1264
  if (this.afVariation === BarChartVariation.Horizontal) {
1056
1265
  this.tickSizes();
1057
1266
  this.setNamedTicks();
@@ -1063,32 +1272,32 @@ export class barChart {
1063
1272
  // Sets the largest and smallest value from series 0, Should only be used when not loading
1064
1273
  setMinMax() {
1065
1274
  var _a, _b, _c, _d, _e, _f, _g;
1066
- const max = d3.max((_a = this._chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
1067
- ? d3.max((_b = this._chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
1275
+ const max = d3.max((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.data.series[0].yValues)
1276
+ ? d3.max((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.data.series[0].yValues)
1068
1277
  : 0;
1069
- const min = d3.min([0, d3.min((_c = this._chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
1070
- ? d3.min([0, d3.min((_d = this._chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
1278
+ const min = d3.min([0, d3.min((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.data.series[0].yValues)])
1279
+ ? d3.min([0, d3.min((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.data.series[0].yValues)])
1071
1280
  : 0;
1072
- this._maxVal = max;
1073
- this._minVal = min;
1074
- this._tempScale = d3
1281
+ this.maxVal = max;
1282
+ this.minVal = min;
1283
+ this.tempScale = d3
1075
1284
  .scaleLinear()
1076
- .domain([this._minVal, this._maxVal])
1077
- .nice(((_f = (_e = this._chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
1078
- ? (_g = this._chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
1285
+ .domain([this.minVal, this.maxVal])
1286
+ .nice(((_f = (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.meta) === null || _f === void 0 ? void 0 : _f.numberOfReferenceLines)
1287
+ ? (_g = this.chartData) === null || _g === void 0 ? void 0 : _g.meta.numberOfReferenceLines
1079
1288
  : 3)
1080
1289
  .domain();
1081
1290
  }
1082
1291
  // Setting up x-axis, getting margin.right in this function
1083
1292
  initXAxis(empty) {
1084
1293
  this.setXScale(empty);
1085
- this._xAxisHandle = this._barChartContainer
1294
+ this.xAxisHandle = this.barChartContainer
1086
1295
  .append('g')
1087
- .attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1296
+ .attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1088
1297
  if (this.afVariation === BarChartVariation.Horizontal) {
1089
1298
  this.setValueTicks();
1090
1299
  // Removing first tick, because it aligns with y-axis domain
1091
- //this._xAxisHandle.select('.tick').select('line').remove();
1300
+ //this.xAxisHandle.select('.tick').select('line').remove();
1092
1301
  }
1093
1302
  else {
1094
1303
  if (!empty) {
@@ -1100,15 +1309,16 @@ export class barChart {
1100
1309
  }
1101
1310
  // Initializing bars, can only handle one series of bars for now
1102
1311
  initBars() {
1103
- this._barSelection = this._barChartContainer
1312
+ this.barSelection = this.barChartContainer
1313
+ .append('g')
1314
+ .attr('class', 'interactiveElements')
1315
+ .style('isolation', 'isolate')
1104
1316
  .selectAll('barGroup')
1105
1317
  .data(this.mappedData)
1106
1318
  .join('g')
1107
1319
  .attr('class', 'barGroup')
1108
- .attr('id', (d) => {
1109
- return 'barGroup' + d.key.replace(/[^A-Z0-9]+/gi, '_');
1110
- });
1111
- this._barSelection.selectAll('.barGroup')
1320
+ .attr('id', (d) => this.barGroupID(d.key));
1321
+ this.barSelection.selectAll('.barGroup')
1112
1322
  .data((d) => {
1113
1323
  return d.series;
1114
1324
  })
@@ -1128,53 +1338,55 @@ export class barChart {
1128
1338
  }
1129
1339
  initBarText() {
1130
1340
  var _a, _b;
1131
- if (!((_b = (_a = this._chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
1341
+ if (!((_b = (_a = this.chartData) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.valueLabels))
1132
1342
  return;
1133
- this._textSelection = this._barChartContainer
1343
+ this.textSelection = this.barChartContainer
1134
1344
  .selectAll('.barGroup')
1135
1345
  .append('text');
1136
- this._textSelection
1346
+ this.textSelection
1137
1347
  .text((d) => {
1138
- return d.value ? d.value.toLocaleString(undefined, this._numberFormat) : undefined;
1348
+ return d.value ? d.value.toLocaleString(undefined, this.numberFormat) : undefined;
1139
1349
  })
1140
1350
  .attr('class', 'barText')
1141
1351
  .attr('font-size', this.fontSize)
1142
1352
  .attr('font-weight', '600')
1143
1353
  .attr('text-anchor', 'end')
1144
1354
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1145
- ? this._yScale(d.key) + this._yScale.bandwidth() / 2
1146
- : this._yScale(d.value))
1355
+ ? this.yScale(d.key) + this.yScale.bandwidth() / 2
1356
+ : this.yScale(d.value))
1147
1357
  .attr('x', (d) => this.afVariation === BarChartVariation.Horizontal
1148
- ? this._xScale(d)
1149
- : this._xScale(d.key) + this._xScale.bandwidth())
1358
+ ? this.xScale(d)
1359
+ : this.xScale(d.key) + this.xScale.bandwidth())
1150
1360
  .attr('dy', () => this.afVariation == BarChartVariation.Horizontal ? '0.35em' : '-0.25em')
1151
1361
  .style('pointer-events', 'none')
1152
- .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'; });
1362
+ .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'; });
1153
1363
  this.adjustBarText();
1154
1364
  }
1155
1365
  initChain() {
1156
1366
  this.initSvg();
1367
+ this.initLegend();
1157
1368
  this.initToolTip();
1158
1369
  this.initYAxis();
1159
1370
  this.initXAxis();
1160
1371
  this.initBars();
1372
+ this.averageLine();
1161
1373
  this.initBarText();
1162
1374
  }
1163
1375
  async updateChain() {
1164
1376
  var _a, _b, _c, _d, _e, _f;
1165
1377
  // Fetch number formatting
1166
- this._numberFormat = {
1167
- 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,
1168
- 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)
1378
+ this.numberFormat = {
1379
+ 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,
1380
+ 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)
1169
1381
  ? 'compact'
1170
1382
  : 'standard'
1171
1383
  };
1172
- if (this._tooltip)
1384
+ if (this.tooltip)
1173
1385
  this.closeTooltip();
1174
1386
  // Check whether we are in table mode or not
1175
- if (this._tableDiv.style['display'] == 'block') {
1176
- if (!this._chartData.title) {
1177
- d3.select(this._titleDiv)
1387
+ if (this.tableDiv.style['display'] == 'block') {
1388
+ if (!this.chartData.title) {
1389
+ d3.select(this.titleDiv)
1178
1390
  .select(this.afHeadingLevel)
1179
1391
  .html(`${_t.loading}...`);
1180
1392
  }
@@ -1186,9 +1398,9 @@ export class barChart {
1186
1398
  }
1187
1399
  else {
1188
1400
  // displaying legend again
1189
- if (this._loading) {
1190
- d3.select(this._host).select('.tableButton').style('display', null);
1191
- d3.select(this._legendDiv).style('display', null);
1401
+ if (this.loading) {
1402
+ d3.select(this.host).select('.tableButton').style('display', null);
1403
+ d3.select(this.legendDiv).style('display', null);
1192
1404
  this.initToolTip();
1193
1405
  }
1194
1406
  // Disconnect resize observer while adjusting things
@@ -1196,73 +1408,69 @@ export class barChart {
1196
1408
  this.setMinMax();
1197
1409
  const newHeight = this.setDims();
1198
1410
  this.transitionTitle();
1199
- this._svg
1200
- .transition()
1201
- .duration(400)
1202
- .attr('width', this._dims.width)
1203
- .attr('height', this._dims.height)
1204
- .attr('aria-label', this._chartData && this._chartData.title
1205
- ? 'Stapeldiagram om ' + this._chartData.title.toLowerCase()
1411
+ this.svg
1412
+ .attr('aria-label', this.chartData && this.chartData.title
1413
+ ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1206
1414
  : 'Stapeldiagram');
1207
1415
  this.setMargins();
1208
1416
  // Waiting with observing for changes until transition to regular bars is complete
1209
- this._barChartContainer
1417
+ this.barChartContainer
1210
1418
  .transition('position')
1211
1419
  .duration(this.defaultDuration)
1212
1420
  .ease(d3.easePolyInOut)
1213
- .attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1214
- if (!this._loading)
1215
- this._barChartContainer.on('end', () => this.barChartObserver.observe(this._chartDiv));
1421
+ .attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1422
+ if (!this.loading)
1423
+ this.barChartContainer.on('end', () => this.barChartObserver.observe(this.chartDiv));
1216
1424
  // If there is a new height
1217
1425
  if (newHeight) {
1218
1426
  // Update y-axis with potentially new height (might want to do a check here)
1219
1427
  this.afVariation === BarChartVariation.Horizontal
1220
- ? this._yScale.range([
1221
- this._margin.top,
1222
- this._dims.height - this._margin.bottom
1428
+ ? this.yScale.range([
1429
+ this.margin.top,
1430
+ this.dims.height - this.margin.bottom
1223
1431
  ])
1224
- : this._yScale.range([
1225
- this._dims.height - this._margin.bottom,
1226
- this._margin.top
1432
+ : this.yScale.range([
1433
+ this.dims.height - this.margin.bottom,
1434
+ this.margin.top
1227
1435
  ]);
1228
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1436
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1229
1437
  }
1230
1438
  this.tickSizes();
1231
1439
  this.setYScale();
1232
1440
  this.setXScale();
1233
1441
  this.setTickInteraction();
1234
- this._tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
1235
- ? this._xScale.ticks().map((tick) => tick.toLocaleString())
1236
- : this._yScale.ticks().map((tick) => tick.toLocaleString()));
1442
+ this.tickWidth = this.getLargestText(this.afVariation == BarChartVariation.Horizontal
1443
+ ? this.xScale.ticks().map((tick) => tick.toLocaleString())
1444
+ : this.yScale.ticks().map((tick) => tick.toLocaleString()));
1237
1445
  this.setValueTicks(true);
1238
- if (this._loading) {
1239
- d3.select(this._legendDiv)
1446
+ if (this.loading) {
1447
+ d3.select(this.legendDiv)
1240
1448
  .style('opacity', 0)
1241
1449
  .transition()
1242
1450
  .duration(400)
1243
1451
  .ease(d3.easePolyInOut)
1244
1452
  .style('opacity', 1);
1245
- this._margin.right =
1246
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
1453
+ this.margin.right =
1454
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
1247
1455
  this.yTickSize +
1248
1456
  this.tickPadding;
1249
1457
  // Update x-axis with new width
1250
- this._xScale.range([
1458
+ this.xScale.range([
1251
1459
  0,
1252
- this._dims.width - this._margin.right - this._margin.left
1460
+ this.dims.width - this.margin.right - this.margin.left
1253
1461
  ]);
1254
1462
  this.setNamedTicks(true);
1255
1463
  // Stop animation
1256
- this._barSelection.selectAll('.barGroup').on('end', null);
1257
- this._loading = false;
1258
- this._barSelection
1464
+ this.barSelection.selectAll('.barGroup').on('end', null);
1465
+ this.loading = false;
1466
+ this.barSelection
1259
1467
  .transition()
1260
1468
  .duration(this.defaultDuration)
1261
1469
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1262
- ? this._yScale(d.key)
1263
- : this._dims.height - this._margin.bottom)
1470
+ ? this.yScale(d.key)
1471
+ : this.dims.height - this.margin.bottom)
1264
1472
  .attr('height', () => 0)
1265
- .on('end', (...[, i]) => i === this._placeholderTicks.length - 1
1473
+ .on('end', (...[, i]) => i === this.placeholderTicks.length - 1
1266
1474
  ? this.updateBars(true)
1267
1475
  : null);
1268
1476
  this.setTickInteraction();
@@ -1276,52 +1484,58 @@ export class barChart {
1276
1484
  }
1277
1485
  // Getting correct color given index or name of data serie
1278
1486
  colorFunction(input) {
1279
- if (typeof input === 'number')
1280
- return `var(${this.colorPalettes[input]})`;
1487
+ var _a;
1488
+ if (typeof input === 'number') {
1489
+ return this.evalColorVar(this.colorPalettes[input]);
1490
+ }
1281
1491
  else {
1282
- const index = this._chartData.data.series.findIndex((serie) => serie.title === input);
1283
- if (index > 0)
1284
- return `var(${this.colorPalettes[index]})`;
1492
+ const index = this.chartData.data.series.findIndex((serie) => serie.title === input);
1493
+ if (index > 0) {
1494
+ if ((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern)
1495
+ return 'url(#prognosis)';
1496
+ else
1497
+ return this.evalColorVar(this.colorPalettes[index]);
1498
+ }
1285
1499
  else
1286
- return `var(${this.colorPalettes[0]})`;
1500
+ return this.evalColorVar(this.colorPalettes[0]);
1287
1501
  }
1288
1502
  }
1289
1503
  // Resizing bar chart
1290
1504
  resize() {
1291
- var _a;
1292
1505
  const newHeight = this.setDims();
1293
- this.setMargins();
1294
- (_a = this._svg) === null || _a === void 0 ? void 0 : _a.attr('width', this._dims.width).attr('height', this._dims.height);
1295
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1296
- this._margin.right =
1297
- this.getTextSize(this._xScale.domain()[1].toLocaleString()) / 2 +
1506
+ //this.setMargins();
1507
+ this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1508
+ this.margin.right =
1509
+ this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
1298
1510
  this.yTickSize +
1299
1511
  this.tickPadding;
1300
1512
  // If there is a new height
1301
1513
  if (newHeight) {
1302
1514
  // Update y-axis with potentially new height (might want to do a check here)
1303
1515
  this.afVariation === BarChartVariation.Horizontal
1304
- ? this._yScale.range([
1305
- this._margin.top,
1306
- this._dims.height - this._margin.bottom
1516
+ ? this.yScale.range([
1517
+ this.margin.top,
1518
+ this.dims.height - this.margin.bottom
1307
1519
  ])
1308
- : this._yScale.range([
1309
- this._dims.height - this._margin.bottom,
1310
- this._margin.top
1520
+ : this.yScale.range([
1521
+ this.dims.height - this.margin.bottom,
1522
+ this.margin.top
1311
1523
  ]);
1312
- this._xAxisHandle.attr('transform', `translate(0,${this._dims.height - this._margin.bottom})`);
1524
+ this.xAxisHandle.attr('transform', `translate(0,${this.dims.height - this.margin.bottom})`);
1313
1525
  }
1314
1526
  // Update x-axis with new width
1315
- this._xScale.range([
1527
+ this.xScale.range([
1316
1528
  0,
1317
- this._dims.width - this._margin.right - this._margin.left
1529
+ this.dims.width - this.margin.right - this.margin.left
1318
1530
  ]);
1319
1531
  this.setNamedTicks();
1320
1532
  this.setValueTicks();
1533
+ this.setTickInteraction();
1534
+ this.averageLine();
1321
1535
  this.adjustBarSize();
1322
1536
  this.adjustBarText();
1323
- if (this._tooltipData)
1324
- this.positionTooltip(this._tooltipData);
1537
+ if (this.tooltip.style('visibility') !== 'hidden')
1538
+ this.positionTooltip(this.tooltipData);
1325
1539
  }
1326
1540
  // Returns the longest text from an array of strings
1327
1541
  getLargestText(array) {
@@ -1334,30 +1548,33 @@ export class barChart {
1334
1548
  });
1335
1549
  return width;
1336
1550
  }
1551
+ adjustColor(color, amount) {
1552
+ return '#' + color.replace(/^#/, '').replace(/../g, color => ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));
1553
+ }
1337
1554
  componentWillLoad() {
1338
1555
  this.afChartDataUpdate(this.afChartData);
1339
1556
  }
1340
1557
  componentDidLoad() {
1341
- if (!this._chartData || Object.keys(this._chartData).length === 0) {
1342
- this._loading = true;
1558
+ if (!this.chartData || Object.keys(this.chartData).length === 0) {
1559
+ this.loading = true;
1343
1560
  return this.initEmpty();
1344
1561
  }
1345
1562
  this.initChain();
1346
1563
  document.fonts.ready.then(() => {
1347
1564
  this.recomputeTextSize();
1348
1565
  this.setNamedTicks();
1349
- this._barChartContainer.attr('transform', `translate(${this._margin.left + this.tickPadding + this.yTickSize},0)`);
1566
+ this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
1350
1567
  });
1351
1568
  }
1352
1569
  disconnectedCallback() {
1353
1570
  this.barChartObserver.disconnect();
1354
1571
  }
1355
1572
  componentWillUpdate() {
1356
- this._prevHeight = d3.select(this._titleDiv).style('height');
1573
+ this.prevHeight = d3.select(this.titleDiv).style('height');
1357
1574
  }
1358
1575
  componentDidUpdate() {
1359
- if (this._tableDiv.style['display'] != 'block' &&
1360
- Object.keys(this._chartData).length === 0) {
1576
+ if (this.tableDiv.style['display'] != 'block' &&
1577
+ Object.keys(this.chartData).length === 0) {
1361
1578
  // Disconnect old barchartobserver while doing resizing
1362
1579
  this.barChartObserver.disconnect();
1363
1580
  return this.loadingState();
@@ -1374,7 +1591,7 @@ export class barChart {
1374
1591
  // Returns pixelwidth of text given the current fontSize (costly function using .each)
1375
1592
  getTextSize(text) {
1376
1593
  const textWidth = [];
1377
- const svg = d3.select(this._chartDiv).append('svg');
1594
+ const svg = d3.select(this.chartDiv).append('svg');
1378
1595
  svg
1379
1596
  .selectAll('dummyText')
1380
1597
  .data([text])
@@ -1389,21 +1606,18 @@ export class barChart {
1389
1606
  svg.remove().exit();
1390
1607
  return textWidth[0];
1391
1608
  }
1392
- // Setting table content from this._chartData
1609
+ // Setting table content from this.chartData
1393
1610
  setTableContent() {
1394
- 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>`;
1611
+ 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>`;
1395
1612
  }
1396
1613
  setTableDimensions() {
1397
- const table = d3.select(this._tableDiv);
1398
- table
1399
- // The last value is for compensating the padding set on the table element, changing padding in css, will need change in these two lines
1400
- .style('height', this._dims.height + 'px');
1401
- table.style('width', this._dims.width - this._rem * 0.65 + 'px');
1614
+ const table = d3.select(this.tableDiv);
1615
+ table.style('display', 'flex').style('height', '100%').style('width', '100%');
1402
1616
  }
1403
1617
  // Extracting all headings from data and returning a string with <th>-elements with headings
1404
1618
  headings() {
1405
- let headingsString = `<th scope="col">${this._chartData.x}</th>`;
1406
- this._chartData.data.series.forEach((elem) => {
1619
+ let headingsString = `<th scope="col">${this.chartData.x}</th>`;
1620
+ this.chartData.data.series.forEach((elem) => {
1407
1621
  headingsString = headingsString.concat(`<th scope="col">${elem.title}</th>`);
1408
1622
  });
1409
1623
  return headingsString;
@@ -1411,13 +1625,13 @@ export class barChart {
1411
1625
  // Building the table body
1412
1626
  tableBody() {
1413
1627
  let body = '';
1414
- if (this._chartData && this._chartData.data) {
1415
- const loopable = this._chartData.data.xValueNames
1416
- ? this._chartData.data.xValueNames
1417
- : this._chartData.data.xValues;
1628
+ if (this.chartData && this.chartData.data) {
1629
+ const loopable = this.chartData.data.xValueNames
1630
+ ? this.chartData.data.xValueNames
1631
+ : this.chartData.data.xValues;
1418
1632
  loopable.forEach((elem, index) => {
1419
1633
  let cells = '';
1420
- this._chartData.data.series.forEach((serie) => {
1634
+ this.chartData.data.series.forEach((serie) => {
1421
1635
  cells = cells.concat(`<td>${serie.yValues[index] != null ? serie.yValues[index].toLocaleString() : '-'}</td>`);
1422
1636
  });
1423
1637
  body = body.concat(`<tr><th scope='row'>${elem}${cells}</th></tr>`);
@@ -1429,18 +1643,18 @@ export class barChart {
1429
1643
  var _a, _b, _c, _d, _e;
1430
1644
  // Setting header
1431
1645
  let heading = '';
1432
- if (this._chartData) {
1433
- if (!this._chartData.subTitle)
1434
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}>`;
1646
+ if (this.chartData) {
1647
+ if (!this.chartData.subTitle)
1648
+ heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}>`;
1435
1649
  else {
1436
- if (!this._chartData.infoText)
1437
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${this._chartData.subTitle}</p>`;
1650
+ if (!this.chartData.infoText)
1651
+ heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${this.chartData.subTitle}</p>`;
1438
1652
  else
1439
- heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${(_a = this._chartData) === null || _a === void 0 ? void 0 : _a.subTitle}
1440
- <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>`;
1653
+ heading = `<${this.afHeadingLevel}>${this.chartData.title}</${this.afHeadingLevel}><p>${(_a = this.chartData) === null || _a === void 0 ? void 0 : _a.subTitle}
1654
+ <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>`;
1441
1655
  }
1442
1656
  }
1443
- return (h(Host, { key: 'a1e4aaa788766d54c691e95b7e70932b0e7d2b05', ref: (el) => (this._host = el) }, h("div", { key: '2fac926d196acaa20ab5f438968e3c98c08dd104', class: "topWrapper", ref: (el) => (this._titleDiv = el) }, h("digi-typography", { key: '16d8cbd0f03a2a2d24d3366ab1b3eaed797dd361', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '22a93add4a7f1ea3965ce496f2b5cbf488b01314', 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: '152938d206dc00e2fb88b52d332960cbeda2c045', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '66db213ee1c4cb169c7c257853a15a468bf2a83e', 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: 'ac4b8adad6ace97f50591cd39b8b0082d067f069', slot: "icon" }), "Visa diagram"), h("div", { key: 'b28e00a40b5c1a2919146ec4815f23a14fdfac50', class: "scChartStatus", role: "status", ref: (el) => (this._status = el) })), h("div", { key: '63f80744faa1d4b3d7d62bece3b5c446eda3ae7b', class: "chartTooltip", id: this.afId }, h("div", { key: '8c9fa9388b9bfc071c4a594275159eb36a8ec43b', class: "tooltipBody" }), h("digi-icon-x", { key: '252d12a937e5276381fa40ec3bb4e77c259da9c1', class: "close" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", null)) : (h("digi-icon-caret-down", null))), h("div", { key: '9b70433c310882bd0a06784ca1fa21c5b2dd9e52', ref: (el) => (this._chartDiv = el) }, " "), h("div", { key: '459e38448e29eea1fa7a10de7f3f1f06b6404eab', class: "legend", ref: (el) => (this._legendDiv = el) }), h("div", { key: 'cc655054cb3c3688c75060ebbdf6c3f8ea4ad712', class: "table", ref: (el) => (this._tableDiv = el) }, ' ')));
1657
+ return (h(Host, { key: '54667697f174d4094b521c81dc772b599c262c29', ref: (el) => (this.host = el) }, h("svg", { key: 'df7e852f09b0c7b142154024444a8cc694b3a34a', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '036603fe008473d87dac2c97e7d4106aca962cc6' }, h("pattern", { key: '4d69d72862f411f0c1d115613ef21b449467a8cf', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '75f26f0b57f83546f5b0a788f14be2daebe4c1f9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: '93a47ceac0fb59103486e974e63325b31672e89d', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '90e8ca1a698db50f0711ede271c6d5357fb26c42', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: 'cc034a851b624f5c2107b15f29d63a224601e0c9', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '248034ecb86d548ceafe837341dabbae07b6c753', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '51b7a0e2f9ff0f85d3abde08ab3f3cf346cdd4aa', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '880b7b7a2fde8eccbd4c24878cc7b3b9b9c6497a', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: 'f374ae56dc6d13906d27bbb76fba63128bc6b704', 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: '3c8dcd209ffd76fb97cdb14232996136ff3a0387', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '89e5a3a838efd0e2c21abb88141e7e455c1c5b7a', 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: '8c3debb222d5079506dee4f9cdacf85128ead251', slot: "icon" }), "Visa diagram"), h("div", { key: '0c1916ce68d02ab2b567ed20ea25c17076497aaf', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '143cc5ecbc3bbf3d085eb0426bca9b3bf66ecc7b', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: 'eabbfd6c62996ae237014bd0e4754fb857e0f518', class: "chartTooltip", id: this.afId }, h("div", { key: '97c7c2e479acb9a6f4658768870c1484baa59f01', class: "tooltipHead" }, h("digi-icon-x", { key: 'ec08ba3c764cb66ed0ecac0afdd6b4d16bc84b84', class: "close" })), h("div", { key: '6d80b2cb7bf94c492eaed42a80a8252394fe92b9', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: '7a22b0e07deb81e3e566f60e5e8e2d2f3056a2a2', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '40d906b37ea0a69cb7fcfe310e612e8a5cba2928', class: "legend" })), h("div", { key: '24802d1363812b9d50bd98216f36c7c3f44856d2', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1444
1658
  }
1445
1659
  static get is() { return "digi-bar-chart"; }
1446
1660
  static get encapsulation() { return "scoped"; }
@@ -1526,13 +1740,13 @@ export class barChart {
1526
1740
  "type": "string",
1527
1741
  "mutable": true,
1528
1742
  "complexType": {
1529
- "original": "ChartLineData | string",
1530
- "resolved": "ChartLineData | string",
1743
+ "original": "BarChartData | string",
1744
+ "resolved": "BarChartData | string",
1531
1745
  "references": {
1532
- "ChartLineData": {
1746
+ "BarChartData": {
1533
1747
  "location": "import",
1534
- "path": "../chart-line/chart-line-data.interface",
1535
- "id": "src/components/_chart/chart-line/chart-line-data.interface.ts::ChartLineData"
1748
+ "path": "../interfaces/bar-chart-data.interface",
1749
+ "id": "src/components/_chart/interfaces/bar-chart-data.interface.ts::BarChartData"
1536
1750
  }
1537
1751
  }
1538
1752
  },
@@ -1540,7 +1754,7 @@ export class barChart {
1540
1754
  "optional": false,
1541
1755
  "docs": {
1542
1756
  "tags": [],
1543
- "text": "Datan som ska visas upp i stapeldiagrammet, kan vara av antingen typen ChartLineData, eller str\u00E4ngifierad ChartLineData"
1757
+ "text": "Datan som ska visas upp i stapeldiagrammet, kan vara av antingen typen BarChartData, eller str\u00E4ngifierad BarChartData"
1544
1758
  },
1545
1759
  "getter": false,
1546
1760
  "setter": false,