@designsystem-se/af 38.0.1-beta.1 → 38.0.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 (406) hide show
  1. package/components/digi-bar-chart.js +171 -71
  2. package/components/digi-button.js +1 -1
  3. package/components/digi-calendar-datepicker.js +10 -9
  4. package/components/digi-calendar-week-view.js +1 -1
  5. package/components/digi-calendar.js +1 -1
  6. package/components/digi-chart-line.js +13 -9
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +4 -4
  9. package/components/digi-context-menu.js +2 -2
  10. package/components/digi-dialog.js +4 -3
  11. package/components/digi-expandable-faq-item.js +1 -1
  12. package/components/digi-footer.js +2 -1
  13. package/components/digi-form-category-filter.js +1 -1
  14. package/components/digi-form-checkbox.js +1 -1
  15. package/components/digi-form-error-list.js +5 -6
  16. package/components/digi-form-file-upload.js +1 -1
  17. package/components/digi-form-filter.js +3 -3
  18. package/components/digi-form-input-search.js +1 -1
  19. package/components/digi-form-radiobutton.js +1 -1
  20. package/components/digi-form-receipt.js +2 -1
  21. package/components/digi-form-select-filter.js +4 -3
  22. package/components/digi-form-select.js +1 -1
  23. package/components/digi-header-avatar.js +1 -1
  24. package/components/digi-header-navigation.js +3 -2
  25. package/components/digi-header.js +6 -5
  26. package/components/digi-info-card-multi.js +1 -1
  27. package/components/digi-info-card.js +2 -2
  28. package/components/digi-link-internal.js +1 -1
  29. package/components/digi-navigation-pagination.js +3 -2
  30. package/components/digi-navigation-sidebar-button.js +1 -1
  31. package/components/digi-navigation-sidebar.js +1 -1
  32. package/components/digi-navigation-vertical-menu-item.js +1 -1
  33. package/components/digi-notification-alert.js +1 -1
  34. package/components/digi-notification-error-page.js +2 -1
  35. package/components/digi-progress-circle.js +1 -6
  36. package/components/digi-progress-indicator.js +1 -1
  37. package/components/digi-quote.js +1 -1
  38. package/components/digi-tablist.js +5 -5
  39. package/components/digi-tag.js +2 -2
  40. package/components/digi-title-logo.js +2 -1
  41. package/components/digi-tools-feedback.js +4 -3
  42. package/components/digi-tools-theme-provider.js +5 -18
  43. package/components/index.js +2 -1
  44. package/components/p-13c09880.js +177 -0
  45. package/components/p-4bad4fb0.js +7 -0
  46. package/components/p-70fad0ea.js +165 -0
  47. package/components/{p-74c7dd5f.js → p-75c8d67e.js} +3 -2
  48. package/components/{p-b24c2842.js → p-77d8d575.js} +2 -2
  49. package/components/{p-fb8dd721.js → p-9df35672.js} +1 -1
  50. package/components/p-ab07faba.js +66 -0
  51. package/components/{p-4dc6d374.js → p-bc5b7057.js} +3 -2
  52. package/components/p-be4fd246.js +7 -0
  53. package/components/{p-90548d3f.js → p-dbb0665a.js} +2 -2
  54. package/components/{p-b94458ed.js → p-e2a68e2b.js} +1 -1
  55. package/custom-elements.json +0 -4
  56. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  57. package/dist/cjs/digi-bar-chart.cjs.entry.js +170 -70
  58. package/dist/cjs/digi-button_27.cjs.entry.js +1380 -0
  59. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +2599 -0
  60. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +51 -50
  61. package/dist/cjs/digi-calendar_2.cjs.entry.js +464 -0
  62. package/dist/cjs/digi-chart-line.cjs.entry.js +12 -8
  63. package/dist/cjs/{digi-code-block_2.cjs.entry.js → digi-code-block_3.cjs.entry.js} +134 -2
  64. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  65. package/dist/cjs/digi-context-menu.cjs.entry.js +240 -0
  66. package/dist/cjs/digi-dialog.cjs.entry.js +20 -3
  67. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +97 -0
  68. package/dist/cjs/digi-form-category-filter.cjs.entry.js +121 -0
  69. package/dist/cjs/digi-form-checkbox.cjs.entry.js +139 -0
  70. package/dist/cjs/digi-form-error-list.cjs.entry.js +20 -4
  71. package/dist/cjs/digi-form-file-upload.cjs.entry.js +589 -0
  72. package/dist/cjs/digi-form-filter.cjs.entry.js +248 -0
  73. package/dist/cjs/digi-form-input-search.cjs.entry.js +7 -6
  74. package/dist/cjs/digi-form-input.cjs.entry.js +194 -0
  75. package/dist/cjs/digi-form-label_3.cjs.entry.js +129 -0
  76. package/dist/cjs/digi-form-receipt.cjs.entry.js +19 -2
  77. package/dist/cjs/digi-form-select-filter.cjs.entry.js +564 -0
  78. package/dist/cjs/digi-form-select_2.cjs.entry.js +186 -0
  79. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +99 -0
  80. package/dist/cjs/digi-icon-check.cjs.entry.js +30 -0
  81. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +30 -0
  82. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +53 -0
  83. package/dist/cjs/digi-icon-copy.cjs.entry.js +30 -0
  84. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +145 -0
  85. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +53 -0
  86. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +99 -0
  87. package/dist/cjs/digi-icon-spinner.cjs.entry.js +31 -0
  88. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +53 -0
  89. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +22 -0
  90. package/dist/cjs/digi-info-card-multi.cjs.entry.js +58 -0
  91. package/dist/cjs/digi-info-card.cjs.entry.js +79 -0
  92. package/dist/cjs/digi-layout-columns.cjs.entry.js +33 -0
  93. package/dist/cjs/digi-link-button.cjs.entry.js +66 -0
  94. package/dist/cjs/digi-link-external.cjs.entry.js +36 -0
  95. package/dist/cjs/digi-link-internal.cjs.entry.js +37 -0
  96. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +19 -2
  97. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +150 -0
  98. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +177 -0
  99. package/dist/cjs/digi-notification-alert.cjs.entry.js +112 -0
  100. package/dist/cjs/digi-notification-error-page.cjs.entry.js +19 -2
  101. package/dist/cjs/digi-progress-circle.cjs.entry.js +4 -9
  102. package/dist/cjs/digi-progress-indicator.cjs.entry.js +137 -0
  103. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  104. package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
  105. package/dist/cjs/digi-tag-media.cjs.entry.js +47 -0
  106. package/dist/cjs/digi-tag.cjs.entry.js +1 -1
  107. package/dist/cjs/digi-tools-feedback.cjs.entry.js +20 -3
  108. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +28 -0
  109. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +38 -0
  110. package/dist/cjs/digi-typography-preamble.cjs.entry.js +20 -0
  111. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
  112. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +18 -0
  113. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +19 -0
  114. package/dist/cjs/form-file-upload-variation.enum-634cfae8.js +24 -0
  115. package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +15 -0
  116. package/dist/cjs/{form-input-type.enum-1fb2180a.js → form-input-type.enum-9c8ee12a.js} +0 -14
  117. package/dist/cjs/form-input-variation.enum-c750520c.js +29 -0
  118. package/dist/cjs/form-select-variation.enum-528c1bf0.js +16 -0
  119. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +8 -0
  120. package/dist/cjs/index-7a477838.js +156 -4
  121. package/dist/cjs/{index-acb7b350.js → index-ac8e01b4.js} +19 -189
  122. package/dist/cjs/index-cad91a90.js +66 -0
  123. package/dist/cjs/index-e8333bcc.js +174 -0
  124. package/dist/cjs/index.cjs.js +205 -188
  125. package/dist/cjs/info-card-multi-type.enum-14746572.js +8 -0
  126. package/dist/cjs/info-card-variation.enum-64cef637.js +24 -0
  127. package/dist/cjs/layout-columns-variation.enum-65675649.js +23 -0
  128. package/dist/cjs/link-button-variation.enum-137785e3.js +9 -0
  129. package/dist/cjs/loader.cjs.js +1 -1
  130. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +13 -0
  131. package/dist/cjs/progress-circle-role.enum-b7fdcf0c.js +7 -0
  132. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +13 -0
  133. package/dist/cjs/tag-media-icon.enum-372563c5.js +11 -0
  134. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +7 -0
  135. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +17 -0
  136. package/dist/cjs/{typography-variation.enum-ad1b2403.js → typography-variation.enum-c0ef9190.js} +0 -230
  137. package/dist/collection/components/_button/button/button.css +10 -10
  138. package/dist/collection/components/_calendar/calendar/calendar.css +2 -7
  139. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +106 -411
  140. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +5 -5
  141. package/dist/collection/components/_chart/bar-chart/bar-chart.js +171 -70
  142. package/dist/collection/components/_chart/chart-line/chart-line.js +12 -8
  143. package/dist/collection/components/_code/code-example/code-example.css +0 -6
  144. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  145. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  146. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +106 -411
  147. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
  148. package/dist/collection/components/_form/form-error-list/form-error-list.js +1 -7
  149. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +3 -4
  150. package/dist/collection/components/_form/form-filter/form-filter.css +1 -1
  151. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
  152. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  153. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +2 -2
  154. package/dist/collection/components/_header/header/header.js +2 -2
  155. package/dist/collection/components/_header/header-avatar/header-avatar.css +105 -410
  156. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  157. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.css +1 -1
  158. package/dist/collection/components/_link/link-internal/link-internal.css +105 -410
  159. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.css +2 -3
  160. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  161. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  162. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +3 -4
  163. package/dist/collection/components/_quote/quote/quote.css +2 -2
  164. package/dist/collection/components/_tag/tag/tag.js +1 -1
  165. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  166. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +2 -157
  167. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +2 -43
  168. package/dist/collection/design-tokens/components/_button.variables.scss +10 -10
  169. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  170. package/dist/collection/design-tokens/components/_calendar.variables.scss +2 -3
  171. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  172. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  173. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  174. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +0 -2
  175. package/dist/collection/design-tokens/components/_form-filter.variables.scss +1 -1
  176. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +2 -2
  177. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  178. package/dist/collection/design-tokens/components/_info-card-multi.variables.scss +1 -1
  179. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  180. package/dist/collection/design-tokens/components/_logo.variables.scss +0 -2
  181. package/dist/collection/design-tokens/components/_navigation-context-menu.variables.scss +1 -1
  182. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  183. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  184. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  185. package/dist/collection/enums.js +7 -1
  186. package/dist/collection/styles/src/_alias.mixin.scss +105 -246
  187. package/dist/collection/styles/src/themes/_brand-af18.mixin.scss +0 -16
  188. package/dist/collection/styles/src/themes/_brand-af25.mixin.scss +0 -138
  189. package/dist/collection/styles/src/themes/_brand-common.mixin.scss +0 -7
  190. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +14 -3171
  191. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +10 -10
  192. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  193. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +2 -3
  194. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  195. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  196. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  197. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +0 -2
  198. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-filter.variables.scss +1 -1
  199. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +2 -2
  200. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  201. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card-multi.variables.scss +1 -1
  202. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  203. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +0 -2
  204. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-context-menu.variables.scss +1 -1
  205. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  206. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  207. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  208. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  209. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  210. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  211. package/dist/digi-arbetsformedlingen/{p-60738889.entry.js → p-01874a31.entry.js} +1 -1
  212. package/dist/digi-arbetsformedlingen/p-07303cb5.js +1 -0
  213. package/dist/digi-arbetsformedlingen/p-0f6c0360.js +1 -0
  214. package/dist/digi-arbetsformedlingen/p-0fbe6e50.entry.js +1 -0
  215. package/dist/digi-arbetsformedlingen/p-111fb07d.entry.js +1 -0
  216. package/dist/digi-arbetsformedlingen/p-13ee320b.entry.js +1 -0
  217. package/dist/digi-arbetsformedlingen/p-1486034d.entry.js +1 -0
  218. package/dist/digi-arbetsformedlingen/p-18880083.entry.js +1 -0
  219. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +1 -0
  220. package/dist/digi-arbetsformedlingen/p-1f956af8.js +1 -0
  221. package/dist/digi-arbetsformedlingen/p-2a023831.js +1 -0
  222. package/dist/digi-arbetsformedlingen/p-2d2f6950.entry.js +1 -0
  223. package/dist/digi-arbetsformedlingen/p-30dc159d.entry.js +1 -0
  224. package/dist/digi-arbetsformedlingen/p-37c0ea9e.entry.js +1 -0
  225. package/dist/digi-arbetsformedlingen/p-39468f49.entry.js +1 -0
  226. package/dist/digi-arbetsformedlingen/p-398d0f60.entry.js +1 -0
  227. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +1 -0
  228. package/dist/digi-arbetsformedlingen/p-3c9195db.entry.js +1 -0
  229. package/dist/digi-arbetsformedlingen/p-3f9dfdb0.entry.js +1 -0
  230. package/dist/digi-arbetsformedlingen/p-408e9b2a.entry.js +1 -0
  231. package/dist/digi-arbetsformedlingen/p-416992c0.entry.js +1 -0
  232. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
  233. package/dist/digi-arbetsformedlingen/p-4b8cae8a.entry.js +1 -0
  234. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +1 -0
  235. package/dist/digi-arbetsformedlingen/p-501f9b16.entry.js +1 -0
  236. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +1 -0
  237. package/dist/digi-arbetsformedlingen/{p-d670e0e0.entry.js → p-54d5aa93.entry.js} +1 -1
  238. package/dist/digi-arbetsformedlingen/p-55bcba7c.entry.js +1 -0
  239. package/dist/digi-arbetsformedlingen/p-55d02ef7.entry.js +1 -0
  240. package/dist/digi-arbetsformedlingen/p-577f6995.entry.js +1 -0
  241. package/dist/digi-arbetsformedlingen/p-59073668.entry.js +1 -0
  242. package/dist/digi-arbetsformedlingen/p-5f20045a.entry.js +1 -0
  243. package/dist/digi-arbetsformedlingen/p-5f4ece29.entry.js +1 -0
  244. package/dist/digi-arbetsformedlingen/p-6fb0f1a4.entry.js +1 -0
  245. package/dist/digi-arbetsformedlingen/p-70da2307.entry.js +1 -0
  246. package/dist/digi-arbetsformedlingen/p-7933b555.js +1 -0
  247. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +1 -0
  248. package/dist/digi-arbetsformedlingen/p-8142cc73.js +1 -0
  249. package/dist/digi-arbetsformedlingen/p-814ca2ad.js +1 -0
  250. package/dist/digi-arbetsformedlingen/p-820e795b.js +1 -0
  251. package/dist/digi-arbetsformedlingen/p-82611050.entry.js +1 -0
  252. package/dist/digi-arbetsformedlingen/p-82a74908.entry.js +1 -0
  253. package/dist/digi-arbetsformedlingen/p-8833044b.entry.js +1 -0
  254. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +1 -0
  255. package/dist/digi-arbetsformedlingen/p-8fa50755.entry.js +1 -0
  256. package/dist/digi-arbetsformedlingen/p-905ccb30.js +1 -0
  257. package/dist/digi-arbetsformedlingen/p-915b2a14.entry.js +1 -0
  258. package/dist/digi-arbetsformedlingen/p-97f66789.entry.js +1 -0
  259. package/dist/digi-arbetsformedlingen/p-9c053cf8.entry.js +1 -0
  260. package/dist/digi-arbetsformedlingen/p-9dae073c.entry.js +1 -0
  261. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +1 -0
  262. package/dist/digi-arbetsformedlingen/p-9f47d4b7.entry.js +1 -0
  263. package/dist/digi-arbetsformedlingen/p-a186888d.entry.js +1 -0
  264. package/dist/digi-arbetsformedlingen/p-a969ba67.entry.js +1 -0
  265. package/dist/digi-arbetsformedlingen/p-af72f16f.entry.js +1 -0
  266. package/dist/digi-arbetsformedlingen/p-b3d93b8b.entry.js +1 -0
  267. package/dist/digi-arbetsformedlingen/p-ba3c4861.entry.js +1 -0
  268. package/dist/digi-arbetsformedlingen/p-be4fd246.js +1 -0
  269. package/dist/digi-arbetsformedlingen/p-c04ae2fc.entry.js +1 -0
  270. package/dist/digi-arbetsformedlingen/p-c06930c2.entry.js +1 -0
  271. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +1 -0
  272. package/dist/digi-arbetsformedlingen/p-c7949525.js +1 -0
  273. package/dist/digi-arbetsformedlingen/{p-0a6d26f7.entry.js → p-cea5ef63.entry.js} +1 -1
  274. package/dist/digi-arbetsformedlingen/p-d182d8bb.entry.js +1 -0
  275. package/dist/digi-arbetsformedlingen/p-d1886fff.js +1 -0
  276. package/dist/digi-arbetsformedlingen/{p-67ba87db.entry.js → p-d3e14568.entry.js} +1 -1
  277. package/dist/digi-arbetsformedlingen/p-d595e8a3.js +1 -0
  278. package/dist/digi-arbetsformedlingen/p-ddd659bf.entry.js +1 -0
  279. package/dist/digi-arbetsformedlingen/p-e5bd5a7e.entry.js +1 -0
  280. package/dist/digi-arbetsformedlingen/p-eda570be.entry.js +1 -0
  281. package/dist/digi-arbetsformedlingen/p-ef689144.entry.js +1 -0
  282. package/dist/digi-arbetsformedlingen/p-f0a405ca.entry.js +1 -0
  283. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +1 -0
  284. package/dist/digi-arbetsformedlingen/p-f447b984.js +1 -0
  285. package/dist/digi-arbetsformedlingen/p-f4edca16.entry.js +1 -0
  286. package/dist/digi-arbetsformedlingen/p-fb9b3544.entry.js +1 -0
  287. package/dist/digi-arbetsformedlingen/p-fdca581c.entry.js +1 -0
  288. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +105 -246
  289. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af18.mixin.scss +0 -16
  290. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af25.mixin.scss +0 -138
  291. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-common.mixin.scss +0 -7
  292. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +14 -3171
  293. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  294. package/dist/esm/digi-bar-chart.entry.js +170 -70
  295. package/dist/esm/digi-button_27.entry.js +1350 -0
  296. package/dist/esm/digi-calendar-datepicker.entry.js +2595 -0
  297. package/dist/esm/digi-calendar-week-view.entry.js +2 -1
  298. package/dist/esm/digi-calendar_2.entry.js +459 -0
  299. package/dist/esm/digi-chart-line.entry.js +12 -8
  300. package/dist/esm/{digi-code-block_2.entry.js → digi-code-block_3.entry.js} +135 -4
  301. package/dist/esm/digi-code-example.entry.js +1 -1
  302. package/dist/esm/digi-context-menu.entry.js +236 -0
  303. package/dist/esm/digi-dialog.entry.js +20 -3
  304. package/dist/esm/digi-expandable-faq-item.entry.js +93 -0
  305. package/dist/esm/digi-form-category-filter.entry.js +117 -0
  306. package/dist/esm/digi-form-checkbox.entry.js +135 -0
  307. package/dist/esm/digi-form-error-list.entry.js +20 -4
  308. package/dist/esm/digi-form-file-upload.entry.js +585 -0
  309. package/dist/esm/digi-form-filter.entry.js +244 -0
  310. package/dist/esm/digi-form-input-search.entry.js +2 -1
  311. package/dist/esm/digi-form-input.entry.js +190 -0
  312. package/dist/esm/digi-form-label_3.entry.js +123 -0
  313. package/dist/esm/digi-form-receipt.entry.js +19 -2
  314. package/dist/esm/digi-form-select-filter.entry.js +560 -0
  315. package/dist/esm/digi-form-select_2.entry.js +181 -0
  316. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +92 -0
  317. package/dist/esm/digi-icon-check.entry.js +26 -0
  318. package/dist/esm/digi-icon-chevron-down.entry.js +26 -0
  319. package/dist/esm/digi-icon-chevron-left_2.entry.js +48 -0
  320. package/dist/esm/digi-icon-copy.entry.js +26 -0
  321. package/dist/esm/digi-icon-list-ul_6.entry.js +136 -0
  322. package/dist/esm/digi-icon-minus_2.entry.js +48 -0
  323. package/dist/esm/digi-icon-notification-error_4.entry.js +92 -0
  324. package/dist/esm/digi-icon-spinner.entry.js +27 -0
  325. package/dist/esm/digi-icon-validation-error_2.entry.js +48 -0
  326. package/dist/esm/digi-info-card-multi-container.entry.js +18 -0
  327. package/dist/esm/digi-info-card-multi.entry.js +54 -0
  328. package/dist/esm/digi-info-card.entry.js +75 -0
  329. package/dist/esm/digi-layout-columns.entry.js +29 -0
  330. package/dist/esm/digi-link-button.entry.js +62 -0
  331. package/dist/esm/digi-link-external.entry.js +32 -0
  332. package/dist/esm/digi-link-internal.entry.js +33 -0
  333. package/dist/esm/digi-navigation-pagination.entry.js +19 -2
  334. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +146 -0
  335. package/dist/esm/digi-navigation-vertical-menu.entry.js +173 -0
  336. package/dist/esm/digi-notification-alert.entry.js +108 -0
  337. package/dist/esm/digi-notification-error-page.entry.js +19 -2
  338. package/dist/esm/digi-progress-circle.entry.js +1 -6
  339. package/dist/esm/digi-progress-indicator.entry.js +133 -0
  340. package/dist/esm/digi-quote.entry.js +1 -1
  341. package/dist/esm/digi-tablist.entry.js +5 -5
  342. package/dist/esm/digi-tag-media.entry.js +43 -0
  343. package/dist/esm/digi-tag.entry.js +1 -1
  344. package/dist/esm/digi-tools-feedback.entry.js +20 -3
  345. package/dist/esm/digi-tools-theme-provider.entry.js +24 -0
  346. package/dist/esm/digi-typography-heading-jumbo.entry.js +34 -0
  347. package/dist/esm/digi-typography-preamble.entry.js +16 -0
  348. package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
  349. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +18 -0
  350. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +19 -0
  351. package/dist/esm/form-file-upload-variation.enum-9c49ec5e.js +24 -0
  352. package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +15 -0
  353. package/dist/esm/{form-input-type.enum-a6bba983.js → form-input-type.enum-3da3db27.js} +1 -15
  354. package/dist/esm/form-input-variation.enum-64d9450f.js +29 -0
  355. package/dist/esm/form-select-variation.enum-f2f6098d.js +16 -0
  356. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +8 -0
  357. package/dist/esm/index-148a7577.js +156 -4
  358. package/dist/esm/{index-dc6b83f7.js → index-2fce392f.js} +3 -170
  359. package/dist/esm/index-5b6c95c6.js +63 -0
  360. package/dist/esm/index-8685f88d.js +170 -0
  361. package/dist/esm/index.js +19 -2
  362. package/dist/esm/info-card-multi-type.enum-07ee124f.js +8 -0
  363. package/dist/esm/info-card-variation.enum-2ccc52c1.js +24 -0
  364. package/dist/esm/layout-columns-variation.enum-34f7754e.js +23 -0
  365. package/dist/esm/link-button-variation.enum-84d4976f.js +9 -0
  366. package/dist/esm/loader.js +1 -1
  367. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +13 -0
  368. package/dist/esm/progress-circle-role.enum-7737a2c6.js +7 -0
  369. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +13 -0
  370. package/dist/esm/tag-media-icon.enum-fefa191c.js +11 -0
  371. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +7 -0
  372. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +17 -0
  373. package/dist/esm/typography-variation.enum-c85d7857.js +271 -0
  374. package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +2 -2
  375. package/dist/types/components/_form/form-error-list/form-error-list.d.ts +0 -1
  376. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +0 -9
  377. package/dist/types/components.d.ts +0 -12
  378. package/dist/types/enums.d.ts +7 -1
  379. package/hydrate/index.js +229 -146
  380. package/hydrate/index.mjs +229 -146
  381. package/package.json +1 -1
  382. package/components/p-1af1c5ea.js +0 -165
  383. package/components/p-adb4322e.js +0 -66
  384. package/components/p-bd92430e.js +0 -177
  385. package/components/p-d7ef9cb1.js +0 -13
  386. package/dist/cjs/digi-button_84.cjs.entry.js +0 -8405
  387. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +0 -5
  388. package/dist/digi-arbetsformedlingen/p-0467a3ec.entry.js +0 -1
  389. package/dist/digi-arbetsformedlingen/p-1995b9cc.entry.js +0 -1
  390. package/dist/digi-arbetsformedlingen/p-3f47ec44.entry.js +0 -1
  391. package/dist/digi-arbetsformedlingen/p-47ab0b39.entry.js +0 -1
  392. package/dist/digi-arbetsformedlingen/p-5ad6d46d.entry.js +0 -1
  393. package/dist/digi-arbetsformedlingen/p-6f2ac316.entry.js +0 -1
  394. package/dist/digi-arbetsformedlingen/p-72ef7f99.entry.js +0 -1
  395. package/dist/digi-arbetsformedlingen/p-740c6ad8.entry.js +0 -1
  396. package/dist/digi-arbetsformedlingen/p-8d055a17.js +0 -1
  397. package/dist/digi-arbetsformedlingen/p-94ded2bd.entry.js +0 -1
  398. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +0 -1
  399. package/dist/digi-arbetsformedlingen/p-b471f287.entry.js +0 -1
  400. package/dist/digi-arbetsformedlingen/p-c64b4626.js +0 -1
  401. package/dist/digi-arbetsformedlingen/p-ed832d4e.entry.js +0 -1
  402. package/dist/digi-arbetsformedlingen/p-ede12626.entry.js +0 -1
  403. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +0 -1
  404. package/dist/esm/digi-button_84.entry.js +0 -8318
  405. package/dist/esm/typography-variation.enum-7319240b.js +0 -501
  406. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +0 -4
@@ -3,7 +3,7 @@ import { o as ordinal, i as initRange, r as range, s as select, a as axisLeft, l
3
3
  import { _ as _t } from './p-903a27d9.js';
4
4
  import { r as randomIdGenerator } from './p-ffe5c0e8.js';
5
5
  import { B as BarChartVariation } from './p-dcdffb3c.js';
6
- import { d as defineCustomElement$8 } from './p-1af1c5ea.js';
6
+ import { d as defineCustomElement$8 } from './p-70fad0ea.js';
7
7
  import { d as defineCustomElement$7 } from './p-01264cdd.js';
8
8
  import { d as defineCustomElement$6 } from './p-36b65cd5.js';
9
9
  import { d as defineCustomElement$5 } from './p-9e98bc1f.js';
@@ -122,7 +122,13 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
122
122
  this.defaultDuration = 400;
123
123
  // Text and formats
124
124
  this.fontSize = '0.875rem';
125
- this.colorPalettes = ['--digi--color--background--brand-primary', '--digi--color--infographic--brand--primary', '--digi--color--background--sentiment--beta--primary', '--digi--color--text--interactive--visited', '--digi--color--icon--validation--error'];
125
+ this.colorPalettes = [
126
+ '--digi--color--background--brand-primary',
127
+ '--digi--color--infographic--brand--primary',
128
+ '--digi--color--background--sentiment--beta--primary',
129
+ '--digi--color--text--interactive--visited',
130
+ '--digi--color--icon--validation--error'
131
+ ];
126
132
  // Observer for watching size changes when in line chart mode
127
133
  this.barChartObserver = new ResizeObserver((entries) => {
128
134
  entries.forEach(() => {
@@ -132,7 +138,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
132
138
  });
133
139
  });
134
140
  this.highlightBars = (serie) => {
135
- this.barChartContainer.selectAll('.bar')
141
+ this.barChartContainer
142
+ .selectAll('.bar')
136
143
  .attr('fill', (barData) => this.colorFunction(barData.serie))
137
144
  .transition('color')
138
145
  .duration(150)
@@ -141,47 +148,78 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
141
148
  if (barData.serie === serie)
142
149
  return this.colorFunction(barData.serie);
143
150
  else {
144
- if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
151
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
152
+ this.series.indexOf(barData.serie) > 0) {
145
153
  return 'url(#prognosisInactive)';
146
154
  }
147
155
  return this.evalColorVar('--digi--color--background--secondary-accent');
148
156
  }
149
157
  });
150
- select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
158
+ select(this.legendDiv)
159
+ .selectAll('.legendChip')
160
+ .transition('colorLegend')
161
+ .duration(150)
162
+ .style('opacity', (title) => (title === serie ? 1 : 0.25));
151
163
  };
152
164
  this.resetBarColor = () => {
153
- this.barChartContainer.selectAll('.bar').transition('color').duration(150).attr('fill', (barData) => this.colorFunction(barData.serie));
154
- select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', 1);
165
+ this.barChartContainer
166
+ .selectAll('.bar')
167
+ .transition('color')
168
+ .duration(150)
169
+ .attr('fill', (barData) => this.colorFunction(barData.serie));
170
+ select(this.legendDiv)
171
+ .selectAll('.legendChip')
172
+ .transition('colorLegend')
173
+ .duration(150)
174
+ .style('opacity', 1);
155
175
  if (this.chartData.data.averageLine) {
156
- this.barChartContainer.selectAll('.averageLine').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
176
+ this.barChartContainer
177
+ .selectAll('.averageLine')
178
+ .transition('avgLine')
179
+ .style('mix-blend-mode', 'plus-lighter')
157
180
  .style('filter', 'contrast(0.5)');
158
181
  /* this.barChartContainer.selectAll('.averageLineText').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
159
182
  .style('filter', 'contrast(0.5)'); */
160
183
  }
161
184
  };
162
185
  this.highlightAverageLine = (serie) => {
163
- this.barChartContainer.selectAll('.bar')
186
+ this.barChartContainer
187
+ .selectAll('.bar')
164
188
  .transition('color')
165
189
  .duration(150)
166
190
  .attr('fill', (barData) => {
167
191
  var _a;
168
- if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(barData.serie) > 0) {
192
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
193
+ this.series.indexOf(barData.serie) > 0) {
169
194
  return 'url(#prognosisInactive)';
170
195
  }
171
196
  else
172
197
  return this.evalColorVar('--digi--color--background--secondary-accent');
173
198
  });
174
- this.barChartContainer.selectAll('.averageLine').transition('avgLine')
175
- .duration(150).style('mix-blend-mode', null).style('filter', null);
199
+ this.barChartContainer
200
+ .selectAll('.averageLine')
201
+ .transition('avgLine')
202
+ .duration(150)
203
+ .style('mix-blend-mode', null)
204
+ .style('filter', null);
176
205
  /* this.barChartContainer.selectAll('.averageLineText').transition('avgLineText')
177
206
  .duration(150).style('mix-blend-mode', null).style('filter', null) */
178
- select(this.legendDiv).selectAll('.legendChip').transition('colorLegend').duration(150).style('opacity', (title) => title === serie ? 1 : 0.25);
207
+ select(this.legendDiv)
208
+ .selectAll('.legendChip')
209
+ .transition('colorLegend')
210
+ .duration(150)
211
+ .style('opacity', (title) => (title === serie ? 1 : 0.25));
179
212
  };
180
213
  // Sets and resizespositions the average line
181
214
  this.averageLine = () => {
182
215
  if (!this.chartData.data.averageLine)
183
216
  return;
184
- const avLineGroup = this.barChartContainer.select('.interactiveElements').selectAll('.averageLineGroup').data([this.chartData.data.averageLine]).join('g').attr('class', 'averageLineGroup');
217
+ const avLineGroup = this.barChartContainer
218
+ .select('.interactiveElements')
219
+ .selectAll('.averageLineGroup')
220
+ .data([this.chartData.data.averageLine])
221
+ .join('g')
222
+ .attr('class', 'averageLineGroup');
185
223
  /* avLineGroup.selectAll('.averageLineText')
186
224
  .data(d => [d])
187
225
  .join('text')
@@ -194,8 +232,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
194
232
  .attr('fill', 'var(--digi--color--infographic--lineart)')
195
233
  .style('mix-blend-mode', 'plus-lighter')
196
234
  .style('filter', 'contrast(0.5)'); */
197
- avLineGroup.selectAll('.averageLine')
198
- .data(d => [d.value])
235
+ avLineGroup
236
+ .selectAll('.averageLine')
237
+ .data((d) => [d.value])
199
238
  .join('line')
200
239
  .attr('class', 'averageLine')
201
240
  .attr('x1', this.xScale.range()[0])
@@ -243,11 +282,15 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
243
282
  this.highlightBarGroup = (_event, datum) => {
244
283
  if (typeof datum === 'string') {
245
284
  const barGroupID = '#' + this.barGroupID(datum);
246
- this.barChartContainer.select(barGroupID).selectAll('.bar').transition('color')
285
+ this.barChartContainer
286
+ .select(barGroupID)
287
+ .selectAll('.bar')
288
+ .transition('color')
247
289
  .duration(20)
248
290
  .attr('fill', (d) => {
249
291
  var _a;
250
- if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
292
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
293
+ this.series.indexOf(d.serie) > 0) {
251
294
  return 'url(#prognosisHighlight)';
252
295
  }
253
296
  else
@@ -256,7 +299,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
256
299
  }
257
300
  };
258
301
  this.unHighlightBarGroup = () => {
259
- this.barSelection.selectAll('.bar').transition('color')
302
+ this.barSelection
303
+ .selectAll('.bar')
304
+ .transition('color')
260
305
  .duration(100)
261
306
  .attr('fill', (d) => {
262
307
  return this.colorFunction(d.serie);
@@ -349,13 +394,15 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
349
394
  return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
350
395
  };
351
396
  this.updateBars = () => {
352
- this.barSelection = this.barChartContainer.select('.interactiveElements')
397
+ this.barSelection = this.barChartContainer
398
+ .select('.interactiveElements')
353
399
  .selectAll('.barGroup')
354
400
  .data(this.mappedData)
355
401
  .join('g')
356
402
  .attr('class', 'barGroup')
357
403
  .attr('id', (d) => this.barGroupID(d.key));
358
- this.barSelection.selectAll('.bar')
404
+ this.barSelection
405
+ .selectAll('.bar')
359
406
  .data((d) => {
360
407
  return d.series;
361
408
  })
@@ -434,7 +481,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
434
481
  key: key,
435
482
  serie: serie.title,
436
483
  value: serie.yValues[index],
437
- len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
484
+ len: serie.yValues[index]
485
+ ? this.getTextSize(serie.yValues[index].toLocaleString())
486
+ : 0
438
487
  });
439
488
  }
440
489
  });
@@ -450,7 +499,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
450
499
  key: key.toString(),
451
500
  serie: serie.title,
452
501
  value: serie.yValues[index],
453
- len: serie.yValues[index] ? this.getTextSize(serie.yValues[index].toLocaleString()) : 0
502
+ len: serie.yValues[index]
503
+ ? this.getTextSize(serie.yValues[index].toLocaleString())
504
+ : 0
454
505
  });
455
506
  }
456
507
  });
@@ -461,7 +512,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
461
512
  return toReturn;
462
513
  };
463
514
  this.adjustBarSize = () => {
464
- this.barSelection.selectAll('.bar')
515
+ this.barSelection
516
+ .selectAll('.bar')
465
517
  .attr('x', this.xFunction)
466
518
  .attr('y', this.yFunction)
467
519
  .attr('width', this.widthFunction)
@@ -476,30 +528,38 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
476
528
  // Handling x positioning of bars
477
529
  this.xFunction = (d, i) => {
478
530
  return this.afVariation === BarChartVariation.Horizontal
479
- ? (d.value > 0 ? this.xScale(0) : this.xScale(d.value))
480
- : this.xScale(d.key) + ((this.xScale.bandwidth() / this.dataWidth) * i + (this.barGap * i));
531
+ ? d.value > 0
532
+ ? this.xScale(0)
533
+ : this.xScale(d.value)
534
+ : this.xScale(d.key) +
535
+ ((this.xScale.bandwidth() / this.dataWidth) * i + this.barGap * i);
481
536
  };
482
537
  // Handling y positioning of bars
483
538
  this.yFunction = (d, i) => {
484
539
  if (!d.value)
485
540
  return 0;
486
541
  return this.afVariation === BarChartVariation.Horizontal
487
- ? this.yScale(d.key) + ((this.yScale.bandwidth() / this.dataWidth) * i + (this.barGap * i))
488
- : (d.value < 0 ? this.yScale(0) : this.yScale(d.value));
542
+ ? this.yScale(d.key) +
543
+ ((this.yScale.bandwidth() / this.dataWidth) * i + this.barGap * i)
544
+ : d.value < 0
545
+ ? this.yScale(0)
546
+ : this.yScale(d.value);
489
547
  };
490
548
  // Handling height for bars
491
549
  this.heightFunction = (d) => {
492
550
  if (!d.value)
493
551
  return 0;
494
552
  return this.afVariation === BarChartVariation.Horizontal
495
- ? this.yScale.bandwidth() / this.dataWidth - (this.barGap)
496
- : (d.value < 0 ? this.yScale(d.value) - this.yScale(0) : this.yScale(0) - this.yScale(d.value));
553
+ ? this.yScale.bandwidth() / this.dataWidth - this.barGap
554
+ : d.value < 0
555
+ ? this.yScale(d.value) - this.yScale(0)
556
+ : this.yScale(0) - this.yScale(d.value);
497
557
  };
498
558
  // Handling width for bars
499
559
  this.widthFunction = (d) => {
500
560
  return this.afVariation === BarChartVariation.Horizontal
501
561
  ? Math.abs(this.xScale(0) - this.xScale(d.value))
502
- : this.xScale.bandwidth() / this.dataWidth - (this.barGap);
562
+ : this.xScale.bandwidth() / this.dataWidth - this.barGap;
503
563
  };
504
564
  // Setting dimension variable
505
565
  this.setDims = (onlyHeight = false) => {
@@ -742,7 +802,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
742
802
  .attr('fill', (d) => {
743
803
  var _a;
744
804
  if (event.target.tagName === 'rect') {
745
- if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) && this.series.indexOf(d.serie) > 0) {
805
+ if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
806
+ this.series.indexOf(d.serie) > 0) {
746
807
  return 'url(#prognosisHighlight)';
747
808
  }
748
809
  else
@@ -758,7 +819,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
758
819
  select(event.target)
759
820
  .transition('color')
760
821
  .duration(this.defaultDuration)
761
- .attr('fill', (d) => event.target.tagName === 'rect' ? this.colorFunction(d.serie) : '#333333');
822
+ .attr('fill', (d) => event.target.tagName === 'rect'
823
+ ? this.colorFunction(d.serie)
824
+ : '#333333');
762
825
  };
763
826
  this.openTooltip = (...[, d]) => {
764
827
  // If type is string, the user has clicked on a y-axis tick
@@ -770,9 +833,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
770
833
  else
771
834
  this.tooltipData = d;
772
835
  const tooltipBody = this.tooltip.select('.tooltipBody');
773
- this.tooltip
774
- .select('.tooltipHeading')
775
- .html(this.tooltipData.key);
836
+ this.tooltip.select('.tooltipHeading').html(this.tooltipData.key);
776
837
  tooltipBody
777
838
  .selectAll('div')
778
839
  .data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
@@ -811,15 +872,25 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
811
872
  .style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
812
873
  }
813
874
  else {
814
- const index = (_a = this.mappedData.find(xPoint => xPoint.key === data.key)) === null || _a === void 0 ? void 0 : _a.series.findIndex(serie => serie.serie === data.serie);
815
- const barIndex = ((this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1)) - (this.xScale.bandwidth() / this.dataWidth) / 2;
875
+ const index = (_a = this.mappedData
876
+ .find((xPoint) => xPoint.key === data.key)) === null || _a === void 0 ? void 0 : _a.series.findIndex((serie) => serie.serie === data.serie);
877
+ const barIndex = (this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1) -
878
+ this.xScale.bandwidth() / this.dataWidth / 2;
816
879
  // This should be where the x-axis starts
817
880
  const xStart = this.margin.left + this.tickPadding + this.yTickSize;
818
881
  // Creating adjustment for tooltip to not appear outside of chart
819
882
  const spaceToSVGEdge = 5;
820
- const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (this.xScale(data.key) + xStart + barIndex + width / 2) ? (((this.xScale(data.key) + xStart + barIndex + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
821
- this.tooltip
822
- .style('transform', `translate( calc(${this.xScale(data.key) + xStart + barIndex}px - ${50 + inlineAdjustment}%), calc(-100% + ${(data.value > 0 ? this.yScale(data.value) : this.yScale(0)) - 2}px) )`);
883
+ const inlineAdjustment = this.dims.width - spaceToSVGEdge <
884
+ this.xScale(data.key) + xStart + barIndex + width / 2
885
+ ? ((this.xScale(data.key) +
886
+ xStart +
887
+ barIndex +
888
+ width / 2 -
889
+ (this.dims.width - spaceToSVGEdge)) /
890
+ width) *
891
+ 100
892
+ : 0;
893
+ this.tooltip.style('transform', `translate( calc(${this.xScale(data.key) + xStart + barIndex}px - ${50 + inlineAdjustment}%), calc(-100% + ${(data.value > 0 ? this.yScale(data.value) : this.yScale(0)) - 2}px) )`);
823
894
  this.tooltip
824
895
  .select('digi-icon-caret-down')
825
896
  .style('position', 'absolute')
@@ -829,8 +900,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
829
900
  }
830
901
  else {
831
902
  if (this.afVariation === BarChartVariation.Horizontal) {
832
- this.tooltip
833
- .style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
903
+ this.tooltip.style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
834
904
  );
835
905
  this.tooltip
836
906
  .select('digi-icon-caret-up')
@@ -843,12 +913,17 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
843
913
  else {
844
914
  const xStart = this.margin.left + this.tickPadding + this.yTickSize;
845
915
  const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
846
- const yMax = max(data.series.map(elem => elem.value));
916
+ const yMax = max(data.series.map((elem) => elem.value));
847
917
  // Creating adjustment for tooltip to not appear outside of chart
848
918
  const spaceToSVGEdge = 5;
849
- const inlineAdjustment = (this.dims.width - spaceToSVGEdge) < (translatePoint + width / 2) ? (((translatePoint + width / 2) - (this.dims.width - spaceToSVGEdge)) / width) * 100 : 0;
850
- this.tooltip
851
- .style('transform', `translate( calc(${this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2}px - ${50 + inlineAdjustment}%), calc(-100% + ${this.yScale(yMax && yMax > 0 ? yMax : 0) - 1}px) )`);
919
+ const inlineAdjustment = this.dims.width - spaceToSVGEdge < translatePoint + width / 2
920
+ ? ((translatePoint +
921
+ width / 2 -
922
+ (this.dims.width - spaceToSVGEdge)) /
923
+ width) *
924
+ 100
925
+ : 0;
926
+ this.tooltip.style('transform', `translate( calc(${this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2}px - ${50 + inlineAdjustment}%), calc(-100% + ${this.yScale(yMax && yMax > 0 ? yMax : 0) - 1}px) )`);
852
927
  this.tooltip
853
928
  .select('digi-icon-caret-down')
854
929
  .style('position', 'absolute')
@@ -884,7 +959,10 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
884
959
  .attr('opacity', 0)
885
960
  .on('end', () => {
886
961
  this.svg.remove();
887
- select(this.legendDiv).select('.legend').selectAll('.legendChip').remove();
962
+ select(this.legendDiv)
963
+ .select('.legend')
964
+ .selectAll('.legendChip')
965
+ .remove();
888
966
  this.legendDiv.style['display'] = 'none';
889
967
  this.tableDiv.style['display'] = 'block';
890
968
  this.setTableContent();
@@ -938,12 +1016,13 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
938
1016
  this.afChartData = undefined;
939
1017
  }
940
1018
  afChartDataUpdate(data) {
941
- if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 || typeof data !== 'string' && Object.keys(data).length > 0) {
1019
+ if ((typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0) ||
1020
+ (typeof data !== 'string' && Object.keys(data).length > 0)) {
942
1021
  if (typeof data != 'string')
943
1022
  this.chartData = data;
944
1023
  else
945
1024
  this.chartData = JSON.parse(data);
946
- this.series = this.chartData.data.series.map(serie => serie.title);
1025
+ this.series = this.chartData.data.series.map((serie) => serie.title);
947
1026
  }
948
1027
  this.mappedData = this.reshapeData();
949
1028
  // checking for width of each tick
@@ -986,10 +1065,11 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
986
1065
  }
987
1066
  initLegend() {
988
1067
  const rectSize = 18;
989
- const legendData = this.chartData.data.series.map(serie => serie.title);
1068
+ const legendData = this.chartData.data.series.map((serie) => serie.title);
990
1069
  if (this.chartData.data.averageLine)
991
1070
  legendData.push(this.chartData.data.averageLine.text);
992
- const legendChips = select(this.legendDiv).select('.legend')
1071
+ const legendChips = select(this.legendDiv)
1072
+ .select('.legend')
993
1073
  .style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
994
1074
  .style('margin-top', '0.5rem')
995
1075
  .selectAll('.legendChip')
@@ -1003,7 +1083,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1003
1083
  .style('cursor', 'default')
1004
1084
  .on('mouseenter', (_event, serie) => this.highlightBars(serie))
1005
1085
  .on('mouseleave', this.resetBarColor);
1006
- legendChips.append('svg')
1086
+ legendChips
1087
+ .append('svg')
1007
1088
  .attr('width', rectSize + 1)
1008
1089
  .attr('height', rectSize + 1)
1009
1090
  .append('rect')
@@ -1014,15 +1095,19 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1014
1095
  .attr('rx', 4)
1015
1096
  .attr('ry', 4)
1016
1097
  .attr('fill', (title) => this.colorFunction(title));
1017
- legendChips.append('span').style('text-wrap', 'nowrap').style('font-size', '0.875rem').text((d) => d);
1098
+ legendChips
1099
+ .append('span')
1100
+ .style('text-wrap', 'nowrap')
1101
+ .style('font-size', '0.875rem')
1102
+ .text((d) => d);
1018
1103
  if (this.chartData.data.averageLine) {
1019
- const averageLine = legendChips.filter(':last-child')
1104
+ const averageLine = legendChips
1105
+ .filter(':last-child')
1020
1106
  .on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
1021
- const miniSVG = averageLine
1022
- .select('svg')
1023
- .attr('width', rectSize * 2);
1107
+ const miniSVG = averageLine.select('svg').attr('width', rectSize * 2);
1024
1108
  miniSVG.select('rect').remove();
1025
- miniSVG.append('line')
1109
+ miniSVG
1110
+ .append('line')
1026
1111
  .attr('x1', 1)
1027
1112
  .attr('x2', rectSize * 2 - 1)
1028
1113
  .attr('y1', rectSize / 2 + 1)
@@ -1065,7 +1150,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1065
1150
  .attr('role', 'img')
1066
1151
  .attr('aria-label', this.chartData && this.chartData.title
1067
1152
  ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1068
- : 'Stapeldiagram').attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
1153
+ : 'Stapeldiagram')
1154
+ .attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
1069
1155
  // Hide unusable components
1070
1156
  select(this.titleDiv)
1071
1157
  .select(this.afHeadingLevel)
@@ -1127,7 +1213,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1127
1213
  .join('g')
1128
1214
  .attr('class', 'barGroup')
1129
1215
  .attr('id', (d) => this.barGroupID(d.key));
1130
- this.barSelection.selectAll('bar')
1216
+ this.barSelection
1217
+ .selectAll('bar')
1131
1218
  .data((d) => {
1132
1219
  return d.series;
1133
1220
  })
@@ -1142,13 +1229,15 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1142
1229
  .attr('width', this.widthFunction)
1143
1230
  .attr('height', () => 0)
1144
1231
  .attr('fill', 'gray');
1145
- this.barChartContainer.selectAll('.bar')
1232
+ this.barChartContainer
1233
+ .selectAll('.bar')
1146
1234
  .transition('animateBar')
1147
1235
  .duration(400)
1148
1236
  .delay((...[, i]) => i * 150)
1149
1237
  .attr('y', this.yFunction)
1150
1238
  .attr('height', this.heightFunction);
1151
- this.barChartContainer.selectAll('.bar')
1239
+ this.barChartContainer
1240
+ .selectAll('.bar')
1152
1241
  .transition('animateBar')
1153
1242
  .duration(400)
1154
1243
  .ease(linear$1)
@@ -1258,7 +1347,8 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1258
1347
  .join('g')
1259
1348
  .attr('class', 'barGroup')
1260
1349
  .attr('id', (d) => this.barGroupID(d.key));
1261
- this.barSelection.selectAll('.barGroup')
1350
+ this.barSelection
1351
+ .selectAll('.barGroup')
1262
1352
  .data((d) => {
1263
1353
  return d.series;
1264
1354
  })
@@ -1285,7 +1375,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1285
1375
  .append('text');
1286
1376
  this.textSelection
1287
1377
  .text((d) => {
1288
- return d.value ? d.value.toLocaleString(undefined, this.numberFormat) : undefined;
1378
+ return d.value
1379
+ ? d.value.toLocaleString(undefined, this.numberFormat)
1380
+ : undefined;
1289
1381
  })
1290
1382
  .attr('class', 'barText')
1291
1383
  .attr('font-size', this.fontSize)
@@ -1349,8 +1441,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1349
1441
  this.setMinMax();
1350
1442
  const newHeight = this.setDims();
1351
1443
  this.transitionTitle();
1352
- this.svg
1353
- .attr('aria-label', this.chartData && this.chartData.title
1444
+ this.svg.attr('aria-label', this.chartData && this.chartData.title
1354
1445
  ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1355
1446
  : 'Stapeldiagram');
1356
1447
  this.setMargins();
@@ -1406,7 +1497,9 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1406
1497
  select(this.titleDiv).select('.loadingHeader').remove();
1407
1498
  this.loading = false;
1408
1499
  this.barChartContainer.selectAll('.bar').interrupt('animateBar');
1409
- this.barChartContainer.selectAll('.bar').transition()
1500
+ this.barChartContainer
1501
+ .selectAll('.bar')
1502
+ .transition()
1410
1503
  .duration(this.defaultDuration)
1411
1504
  .attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
1412
1505
  ? this.yScale(d.key)
@@ -1494,7 +1587,11 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1494
1587
  return width;
1495
1588
  }
1496
1589
  adjustColor(color, amount) {
1497
- return '#' + color.replace(/^#/, '').replace(/../g, color => ('0' + Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2));
1590
+ return ('#' +
1591
+ color
1592
+ .replace(/^#/, '')
1593
+ .replace(/../g, (color) => ('0' +
1594
+ Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2)));
1498
1595
  }
1499
1596
  componentWillLoad() {
1500
1597
  this.afChartDataUpdate(this.afChartData);
@@ -1557,7 +1654,10 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1557
1654
  }
1558
1655
  setTableDimensions() {
1559
1656
  const table = select(this.tableDiv);
1560
- table.style('display', 'flex').style('height', '100%').style('width', '100%');
1657
+ table
1658
+ .style('display', 'flex')
1659
+ .style('height', '100%')
1660
+ .style('width', '100%');
1561
1661
  }
1562
1662
  // Extracting all headings from data and returning a string with <th>-elements with headings
1563
1663
  headings() {
@@ -1596,7 +1696,7 @@ const barChart = /*@__PURE__*/ proxyCustomElement(class barChart extends H {
1596
1696
  if (this.chartData.infoText)
1597
1697
  heading = `${heading}<span style="display:block;margin-top:0.25rem;font-size:0.875rem;color:var(--digi--global--color--neutral--grayscale--darkest-3)">${this.chartData.infoText}</span>`;
1598
1698
  }
1599
- return (h(Host, { key: 'd39019eecd4013769648a7cdb1e5dc48712de934', ref: (el) => (this.host = el) }, h("svg", { key: '9e4dbfcd19038c6b9c8cfe26b4e8b3c5ef624896', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '9ed2bc8b3064642d01e9028fa91c55577ed2da1c' }, h("pattern", { key: 'ca867a03dac364d29de422bc074c7ff3a8bac858', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '2f2169ba84fcbb198a8f109bc57971beb3c3ca09', width: "8", height: "8", fill: 'white' }), h("line", { key: 'ad51412cb272233eb58a82a293643c4e865e34e9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: 'ecc0ffeb0eda0d84102678c17163d0afc472cde5', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: 'ca9a51785850ea8e26f4ca3b84dc28401325af63', width: "8", height: "8", fill: 'white' }), h("line", { key: 'd7dd225c20b588f74bff91d44ff5abc8839bc445', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: '654a002d89f6ce33fc4958afe3997829511b867e', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '6d0286f1d11de92c88083618d4acb3300f36857d', width: "8", height: "8", fill: 'white' }), h("line", { key: '4acd94253dbdb1fc85090d677d246028a6e595d6', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '9022c75fa8077b2c025aac91b8c1a565b50ad8f0', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '4a28b8506806ca2418fd21512460baebe84614d5', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '69f4603b0fde842906e17abee241c6e3b4de1059', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.title) ? (_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: '803f63ac1912c5979c43e7c58d28591a1d6ce461', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '7d87badd6ae3df65127bdfe4c4308c0d38d5ccb7', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title) ? (_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: 'f92c2eb9f08bf7f13a7eaea287b80a233efd95ef', slot: "icon" }), "Visa diagram"), h("div", { key: 'ee5b3ad8cdcfcf00891f56f7a7e738adf76f36c1', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: 'cbc0c8724ac73a07a4f2d01044d4928214e63f43', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '52cb24ae1a29f5381860031513b7b9e835044935', class: "chartTooltip", id: this.afId }, h("div", { key: '17c4c08dcf63cd263db4f32fecae7ec5216e3014', class: "tooltipHead" }, h("digi-icon-x", { key: 'f44a9a534ae02fe674fc0f9161e5c4b5a3eecb30', class: "tooltipClose" })), h("div", { key: 'ffbe44f6a8db4dc67d6980bd69ca2209e4a75745', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: '5d9cce591ea02a7b8ebdb42af55f378ee064a48a', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '8b8b7cd614e5d6202bfce04e57c98ee040f15dab', class: "legend" })), h("div", { key: '64a35d431e28638ffece4dd12bdf04678ed13768', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1699
+ return (h(Host, { key: 'cb70095467051cf1142891bc63694623e707d92f', ref: (el) => (this.host = el) }, h("svg", { key: 'c040fe2f27d9a5e3de1471fe7e4d853757f6a754', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '17fd52f2cac5a3225e097aee80e8dc1a99909840' }, h("pattern", { key: '2940e729359dad1acc4635363cd5a8f3ee4d8ea1', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '4b47d41ea9f4699a4bcc7b0f04d00b8bbd124946', width: "8", height: "8", fill: "white" }), h("line", { key: 'd5c3a32fb715a5271a784771d9812ea599390fc3', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: '8038bb4d62fd87a118e0bcf4e750165eed48f789', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: 'b1247b7d27e73836c7b5a05fb77a872e89853d3b', width: "8", height: "8", fill: "white" }), h("line", { key: '14265bcba469f08b890654315a86d6278271d64d', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: '4069999fd742795379f093c83c00cca488b6139c', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: 'c525ae39e05acf3e7522f1b92feffdfe5221e528', width: "8", height: "8", fill: "white" }), h("line", { key: 'fa183e0678f6f3794e094b97975fe96955b49e0a', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: 'b6e46d7f4701775a177b02a98f46ca40308e9938', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '88d49833d43776a2bc23d7f73bb8cc9442350634', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '75e2ef09c3f9f91a08b3596d02ad308b244586bb', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.title) ? (_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: '7712b56f991bb5214aa3bebb9e380221156b6bbf', slot: "icon" }), "Visa tabell"), h("digi-button", { key: 'b9d442ea0b62303c2bf1018651ce3206063f3b35', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title) ? (_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: '260c432d04f8ea00216cd485b5ec3a29df4b4db1', slot: "icon" }), "Visa diagram"), h("div", { key: 'a7fd6276b5738e9cf040f0e9b99e983b27ec25cf', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '705ec9e3931b91009ff565bbd8f4ba300bd8dbd7', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '242fd5b7afba36df00aa7fb256bd8578712d25e7', class: "chartTooltip", id: this.afId }, h("div", { key: '6417cc30962396164fe4840ecfef62c4ef7591d6', class: "tooltipHead" }, h("digi-icon-x", { key: 'dc4edb442bfb342fbdb64b06e70f1e19ccc5ffb1', class: "tooltipClose" })), h("div", { key: 'da625c879d4c0eebffa02193dc36d794c755b768', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: 'a003a616c2ee8b848d402b38009261539ebf0c50', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '44a6db8daa836ccf910aafd6fd996f153c337bf4', class: "legend" })), h("div", { key: 'a872281035f2799fe8aa9128a953d0c5d9f6b2cc', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1600
1700
  }
1601
1701
  get hostElement() { return this; }
1602
1702
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { B as Button, d as defineCustomElement$1 } from './p-1af1c5ea.js';
1
+ import { B as Button, d as defineCustomElement$1 } from './p-70fad0ea.js';
2
2
 
3
3
  const DigiButton = Button;
4
4
  const defineCustomElement = defineCustomElement$1;