@designsystem-se/af 38.2.1-beta.0 → 38.2.1-beta.dark-mode

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 (414) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-button.js +1 -1
  3. package/components/digi-calendar-datepicker.js +4 -4
  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 +1 -1
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +3 -3
  9. package/components/digi-context-menu.js +2 -2
  10. package/components/digi-dialog.js +3 -3
  11. package/components/digi-expandable-faq-item.js +1 -1
  12. package/components/digi-footer.js +1 -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 +3 -3
  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-receipt.js +1 -1
  20. package/components/digi-form-select-filter.js +50 -87
  21. package/components/digi-form-select.js +1 -1
  22. package/components/digi-header-avatar.js +1 -1
  23. package/components/digi-header-navigation.js +2 -2
  24. package/components/digi-header.js +5 -5
  25. package/components/digi-info-card-multi.js +1 -1
  26. package/components/digi-info-card.js +2 -2
  27. package/components/digi-link-button.js +1 -1
  28. package/components/digi-link-internal.js +1 -1
  29. package/components/digi-navigation-pagination.js +2 -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 +1 -1
  35. package/components/digi-progress-indicator.js +1 -1
  36. package/components/digi-quote.js +1 -1
  37. package/components/digi-tag.js +1 -1
  38. package/components/digi-title-logo.js +1 -1
  39. package/components/digi-tools-feedback.js +3 -3
  40. package/components/digi-tools-theme-provider.js +18 -5
  41. package/components/index.js +1 -1
  42. package/components/{p-9df35672.js → p-0207ebef.js} +1 -1
  43. package/components/p-24e68936.js +165 -0
  44. package/components/p-4b1d11d0.js +66 -0
  45. package/components/{p-75c8d67e.js → p-78154d00.js} +2 -2
  46. package/components/{p-bc5b7057.js → p-8562da9d.js} +2 -2
  47. package/components/p-8c4cbca6.js +177 -0
  48. package/components/{p-dbb0665a.js → p-99793659.js} +2 -2
  49. package/components/{p-e2a68e2b.js → p-b94458ed.js} +1 -1
  50. package/components/p-d7ef9cb1.js +13 -0
  51. package/custom-elements.json +4 -0
  52. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  53. package/dist/cjs/digi-button_84.cjs.entry.js +8421 -0
  54. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  55. package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block_2.cjs.entry.js} +1 -132
  56. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  57. package/dist/cjs/digi-dialog.cjs.entry.js +2 -18
  58. package/dist/cjs/digi-form-error-list.cjs.entry.js +1 -17
  59. package/dist/cjs/digi-form-receipt.cjs.entry.js +1 -17
  60. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +1 -17
  61. package/dist/cjs/digi-notification-error-page.cjs.entry.js +1 -17
  62. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  63. package/dist/cjs/digi-tools-feedback.cjs.entry.js +2 -18
  64. package/dist/cjs/index-7a477838.js +4 -220
  65. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  66. package/dist/cjs/index.cjs.js +179 -189
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{typography-variation.enum-9aab5027.js → typography-variation.enum-ad1b2403.js} +235 -0
  69. package/dist/collection/components/_button/button/button.css +14 -14
  70. package/dist/collection/components/_calendar/calendar/calendar.css +8 -3
  71. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +426 -106
  72. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  73. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  74. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  75. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +426 -106
  76. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +6 -5
  77. package/dist/collection/components/_form/form-filter/form-filter.css +2 -2
  78. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  79. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +3 -3
  80. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +48 -85
  81. package/dist/collection/components/_header/header/header.js +2 -2
  82. package/dist/collection/components/_header/header-avatar/header-avatar.css +425 -105
  83. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  84. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.css +1 -1
  85. package/dist/collection/components/_link/link-button/link-button.css +3 -3
  86. package/dist/collection/components/_link/link-internal/link-internal.css +425 -105
  87. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.css +3 -2
  88. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  89. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  90. package/dist/collection/components/_quote/quote/quote.css +2 -2
  91. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  92. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +166 -2
  93. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  94. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  95. package/dist/collection/design-tokens/components/_button.variables.scss +14 -14
  96. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  97. package/dist/collection/design-tokens/components/_calendar.variables.scss +4 -3
  98. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  99. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  100. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  101. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  102. package/dist/collection/design-tokens/components/_form-filter.variables.scss +2 -2
  103. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +3 -3
  104. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  105. package/dist/collection/design-tokens/components/_info-card-multi.variables.scss +1 -1
  106. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  107. package/dist/collection/design-tokens/components/_link-button.variables.scss +3 -3
  108. package/dist/collection/design-tokens/components/_navigation-context-menu.variables.scss +1 -1
  109. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  110. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  111. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  112. package/dist/collection/enums.js +1 -0
  113. package/dist/collection/styles/src/_alias.mixin.scss +252 -105
  114. package/dist/collection/styles/src/themes/_brand-af18.mixin.scss +19 -0
  115. package/dist/collection/styles/src/themes/_brand-af25.mixin.scss +144 -0
  116. package/dist/collection/styles/src/themes/_brand-common.mixin.scss +7 -0
  117. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +160 -4
  118. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +14 -14
  119. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  120. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +4 -3
  121. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  122. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  123. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  124. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  125. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-filter.variables.scss +2 -2
  126. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +3 -3
  127. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  128. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card-multi.variables.scss +1 -1
  129. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  130. package/dist/digi-arbetsformedlingen/design-tokens/components/_link-button.variables.scss +3 -3
  131. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +0 -2
  132. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-context-menu.variables.scss +1 -1
  133. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  134. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  135. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  136. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  137. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  138. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  139. package/dist/digi-arbetsformedlingen/{p-c3e0f6dd.entry.js → p-06704534.entry.js} +1 -1
  140. package/dist/digi-arbetsformedlingen/{p-b3283953.entry.js → p-160165b9.entry.js} +1 -1
  141. package/dist/digi-arbetsformedlingen/{p-655cda00.entry.js → p-1efcad5b.entry.js} +1 -1
  142. package/dist/digi-arbetsformedlingen/p-3ae13b8a.entry.js +1 -0
  143. package/dist/digi-arbetsformedlingen/p-72ef7f99.entry.js +1 -0
  144. package/dist/digi-arbetsformedlingen/p-80500b2d.entry.js +1 -0
  145. package/dist/digi-arbetsformedlingen/p-8d055a17.js +1 -0
  146. package/dist/digi-arbetsformedlingen/p-922f4556.entry.js +1 -0
  147. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  148. package/dist/digi-arbetsformedlingen/p-c59e5f69.entry.js +1 -0
  149. package/dist/digi-arbetsformedlingen/p-ca8d7464.entry.js +1 -0
  150. package/dist/digi-arbetsformedlingen/p-ede12626.entry.js +1 -0
  151. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  152. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +252 -105
  153. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af18.mixin.scss +19 -0
  154. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af25.mixin.scss +144 -0
  155. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-common.mixin.scss +7 -0
  156. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +160 -4
  157. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  158. package/dist/esm/digi-button_84.entry.js +8334 -0
  159. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  160. package/dist/esm/{digi-code-block_3.entry.js → digi-code-block_2.entry.js} +3 -133
  161. package/dist/esm/digi-code-example.entry.js +1 -1
  162. package/dist/esm/digi-dialog.entry.js +2 -18
  163. package/dist/esm/digi-form-error-list.entry.js +1 -17
  164. package/dist/esm/digi-form-receipt.entry.js +1 -17
  165. package/dist/esm/digi-navigation-pagination.entry.js +1 -17
  166. package/dist/esm/digi-notification-error-page.entry.js +1 -17
  167. package/dist/esm/digi-quote.entry.js +1 -1
  168. package/dist/esm/digi-tools-feedback.entry.js +2 -18
  169. package/dist/esm/index-148a7577.js +4 -220
  170. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  171. package/dist/esm/index.js +1 -17
  172. package/dist/esm/loader.js +1 -1
  173. package/dist/esm/typography-variation.enum-7319240b.js +501 -0
  174. package/dist/types/components/_form/form-select-filter/form-select-filter.d.ts +3 -22
  175. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  176. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  177. package/dist/types/components.d.ts +14 -2
  178. package/dist/types/enums.d.ts +1 -0
  179. package/hydrate/index.js +92 -110
  180. package/hydrate/index.mjs +92 -110
  181. package/package.json +2 -4
  182. package/components/p-4bad4fb0.js +0 -7
  183. package/components/p-70fad0ea.js +0 -165
  184. package/components/p-ab07faba.js +0 -66
  185. package/components/p-f84f590e.js +0 -177
  186. package/dist/cjs/digi-button_11.cjs.entry.js +0 -1194
  187. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2601
  188. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  189. package/dist/cjs/digi-context-menu.cjs.entry.js +0 -240
  190. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  191. package/dist/cjs/digi-footer-card.cjs.entry.js +0 -29
  192. package/dist/cjs/digi-footer.cjs.entry.js +0 -74
  193. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  194. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -139
  195. package/dist/cjs/digi-form-file-upload.cjs.entry.js +0 -601
  196. package/dist/cjs/digi-form-filter.cjs.entry.js +0 -248
  197. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -186
  198. package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
  199. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
  200. package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -228
  201. package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
  202. package/dist/cjs/digi-header.cjs.entry.js +0 -115
  203. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +0 -30
  204. package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
  205. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
  206. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +0 -99
  207. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  208. package/dist/cjs/digi-icon-copy.cjs.entry.js +0 -30
  209. package/dist/cjs/digi-icon-envelope.cjs.entry.js +0 -30
  210. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +0 -60
  211. package/dist/cjs/digi-icon-globe.cjs.entry.js +0 -30
  212. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +0 -145
  213. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  214. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +0 -99
  215. package/dist/cjs/digi-icon-sign.cjs.entry.js +0 -30
  216. package/dist/cjs/digi-icon-spinner.cjs.entry.js +0 -31
  217. package/dist/cjs/digi-icon-x.cjs.entry.js +0 -30
  218. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +0 -22
  219. package/dist/cjs/digi-info-card-multi.cjs.entry.js +0 -58
  220. package/dist/cjs/digi-info-card.cjs.entry.js +0 -79
  221. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  222. package/dist/cjs/digi-layout-columns.cjs.entry.js +0 -33
  223. package/dist/cjs/digi-link-button.cjs.entry.js +0 -66
  224. package/dist/cjs/digi-link-internal.cjs.entry.js +0 -37
  225. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  226. package/dist/cjs/digi-logo.cjs.entry.js +0 -49
  227. package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
  228. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -30
  229. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  230. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  231. package/dist/cjs/digi-notification-alert.cjs.entry.js +0 -112
  232. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  233. package/dist/cjs/digi-tag-media.cjs.entry.js +0 -47
  234. package/dist/cjs/digi-title-logo.cjs.entry.js +0 -133
  235. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  236. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  237. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  238. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  239. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
  240. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
  241. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  242. package/dist/cjs/footer-card-variation.enum-99555edc.js +0 -8
  243. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  244. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  245. package/dist/cjs/form-validation-message-variation.enum-c5ec3e2d.js +0 -31
  246. package/dist/cjs/index-cad91a90.js +0 -66
  247. package/dist/cjs/index-e8333bcc.js +0 -174
  248. package/dist/cjs/info-card-multi-type.enum-14746572.js +0 -8
  249. package/dist/cjs/info-card-variation.enum-64cef637.js +0 -24
  250. package/dist/cjs/layout-columns-variation.enum-65675649.js +0 -23
  251. package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
  252. package/dist/cjs/link-button-variation.enum-137785e3.js +0 -9
  253. package/dist/cjs/logo-color.enum-76f6c506.js +0 -7
  254. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  255. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  256. package/dist/cjs/tag-media-icon.enum-372563c5.js +0 -11
  257. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  258. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  259. package/dist/digi-arbetsformedlingen/p-02731621.entry.js +0 -1
  260. package/dist/digi-arbetsformedlingen/p-07303cb5.js +0 -1
  261. package/dist/digi-arbetsformedlingen/p-0ef5ec06.entry.js +0 -1
  262. package/dist/digi-arbetsformedlingen/p-0f6c0360.js +0 -1
  263. package/dist/digi-arbetsformedlingen/p-0fbe6e50.entry.js +0 -1
  264. package/dist/digi-arbetsformedlingen/p-10261517.entry.js +0 -1
  265. package/dist/digi-arbetsformedlingen/p-13ee320b.entry.js +0 -1
  266. package/dist/digi-arbetsformedlingen/p-1486034d.entry.js +0 -1
  267. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  268. package/dist/digi-arbetsformedlingen/p-2295239c.entry.js +0 -1
  269. package/dist/digi-arbetsformedlingen/p-25371300.entry.js +0 -1
  270. package/dist/digi-arbetsformedlingen/p-2a023831.js +0 -1
  271. package/dist/digi-arbetsformedlingen/p-2c685e4f.entry.js +0 -1
  272. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  273. package/dist/digi-arbetsformedlingen/p-3887bb40.js +0 -1
  274. package/dist/digi-arbetsformedlingen/p-398d0f60.entry.js +0 -1
  275. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  276. package/dist/digi-arbetsformedlingen/p-3c9195db.entry.js +0 -1
  277. package/dist/digi-arbetsformedlingen/p-3efa2f0b.entry.js +0 -1
  278. package/dist/digi-arbetsformedlingen/p-3f9dfdb0.entry.js +0 -1
  279. package/dist/digi-arbetsformedlingen/p-408e9b2a.entry.js +0 -1
  280. package/dist/digi-arbetsformedlingen/p-416992c0.entry.js +0 -1
  281. package/dist/digi-arbetsformedlingen/p-4b8cae8a.entry.js +0 -1
  282. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  283. package/dist/digi-arbetsformedlingen/p-4e9f2f05.entry.js +0 -1
  284. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +0 -1
  285. package/dist/digi-arbetsformedlingen/p-55bcba7c.entry.js +0 -1
  286. package/dist/digi-arbetsformedlingen/p-55d02ef7.entry.js +0 -1
  287. package/dist/digi-arbetsformedlingen/p-577f6995.entry.js +0 -1
  288. package/dist/digi-arbetsformedlingen/p-5f20045a.entry.js +0 -1
  289. package/dist/digi-arbetsformedlingen/p-5f4ece29.entry.js +0 -1
  290. package/dist/digi-arbetsformedlingen/p-6abd8d58.entry.js +0 -1
  291. package/dist/digi-arbetsformedlingen/p-6fb0f1a4.entry.js +0 -1
  292. package/dist/digi-arbetsformedlingen/p-70da2307.entry.js +0 -1
  293. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  294. package/dist/digi-arbetsformedlingen/p-7e77bbe7.entry.js +0 -1
  295. package/dist/digi-arbetsformedlingen/p-7e85c9e3.entry.js +0 -1
  296. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  297. package/dist/digi-arbetsformedlingen/p-814ca2ad.js +0 -1
  298. package/dist/digi-arbetsformedlingen/p-820e795b.js +0 -1
  299. package/dist/digi-arbetsformedlingen/p-8713df13.entry.js +0 -1
  300. package/dist/digi-arbetsformedlingen/p-8d9f4f10.entry.js +0 -1
  301. package/dist/digi-arbetsformedlingen/p-8ef41ad9.entry.js +0 -1
  302. package/dist/digi-arbetsformedlingen/p-8fa50755.entry.js +0 -1
  303. package/dist/digi-arbetsformedlingen/p-915b2a14.entry.js +0 -1
  304. package/dist/digi-arbetsformedlingen/p-986a1582.entry.js +0 -1
  305. package/dist/digi-arbetsformedlingen/p-9dd41cc4.js +0 -1
  306. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  307. package/dist/digi-arbetsformedlingen/p-9f47d4b7.entry.js +0 -1
  308. package/dist/digi-arbetsformedlingen/p-a0c77dff.entry.js +0 -1
  309. package/dist/digi-arbetsformedlingen/p-a2008b0a.entry.js +0 -1
  310. package/dist/digi-arbetsformedlingen/p-a969ba67.entry.js +0 -1
  311. package/dist/digi-arbetsformedlingen/p-af72f16f.entry.js +0 -1
  312. package/dist/digi-arbetsformedlingen/p-b3d93b8b.entry.js +0 -1
  313. package/dist/digi-arbetsformedlingen/p-beba49c2.entry.js +0 -1
  314. package/dist/digi-arbetsformedlingen/p-bf80a488.entry.js +0 -1
  315. package/dist/digi-arbetsformedlingen/p-c04ae2fc.entry.js +0 -1
  316. package/dist/digi-arbetsformedlingen/p-c06930c2.entry.js +0 -1
  317. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  318. package/dist/digi-arbetsformedlingen/p-c553b73b.entry.js +0 -1
  319. package/dist/digi-arbetsformedlingen/p-c604694f.entry.js +0 -1
  320. package/dist/digi-arbetsformedlingen/p-c604a480.entry.js +0 -1
  321. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  322. package/dist/digi-arbetsformedlingen/p-c7a512ee.entry.js +0 -1
  323. package/dist/digi-arbetsformedlingen/p-c7d079d0.entry.js +0 -1
  324. package/dist/digi-arbetsformedlingen/p-c9dfda73.js +0 -1
  325. package/dist/digi-arbetsformedlingen/p-d182d8bb.entry.js +0 -1
  326. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  327. package/dist/digi-arbetsformedlingen/p-d6d7b1d8.entry.js +0 -1
  328. package/dist/digi-arbetsformedlingen/p-db246e29.entry.js +0 -1
  329. package/dist/digi-arbetsformedlingen/p-de22ce43.entry.js +0 -1
  330. package/dist/digi-arbetsformedlingen/p-ecc2e481.entry.js +0 -1
  331. package/dist/digi-arbetsformedlingen/p-ee88e3f1.js +0 -1
  332. package/dist/digi-arbetsformedlingen/p-f2e16531.entry.js +0 -1
  333. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  334. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  335. package/dist/digi-arbetsformedlingen/p-f4edca16.entry.js +0 -1
  336. package/dist/digi-arbetsformedlingen/p-f5bcd77b.entry.js +0 -1
  337. package/dist/digi-arbetsformedlingen/p-f87c0b45.entry.js +0 -1
  338. package/dist/digi-arbetsformedlingen/p-fa77fcf7.entry.js +0 -1
  339. package/dist/digi-arbetsformedlingen/p-fb9b3544.entry.js +0 -1
  340. package/dist/digi-arbetsformedlingen/p-fdca581c.entry.js +0 -1
  341. package/dist/esm/digi-button_11.entry.js +0 -1180
  342. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2597
  343. package/dist/esm/digi-calendar_2.entry.js +0 -459
  344. package/dist/esm/digi-context-menu.entry.js +0 -236
  345. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  346. package/dist/esm/digi-footer-card.entry.js +0 -25
  347. package/dist/esm/digi-footer.entry.js +0 -70
  348. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  349. package/dist/esm/digi-form-checkbox.entry.js +0 -135
  350. package/dist/esm/digi-form-file-upload.entry.js +0 -597
  351. package/dist/esm/digi-form-filter.entry.js +0 -244
  352. package/dist/esm/digi-form-select_2.entry.js +0 -181
  353. package/dist/esm/digi-header-avatar.entry.js +0 -110
  354. package/dist/esm/digi-header-navigation-item.entry.js +0 -23
  355. package/dist/esm/digi-header-navigation.entry.js +0 -224
  356. package/dist/esm/digi-header-notification.entry.js +0 -19
  357. package/dist/esm/digi-header.entry.js +0 -111
  358. package/dist/esm/digi-icon-accessibility-universal.entry.js +0 -26
  359. package/dist/esm/digi-icon-bars.entry.js +0 -26
  360. package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
  361. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +0 -92
  362. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  363. package/dist/esm/digi-icon-copy.entry.js +0 -26
  364. package/dist/esm/digi-icon-envelope.entry.js +0 -26
  365. package/dist/esm/digi-icon-external-link-alt_2.entry.js +0 -55
  366. package/dist/esm/digi-icon-globe.entry.js +0 -26
  367. package/dist/esm/digi-icon-list-ul_6.entry.js +0 -136
  368. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  369. package/dist/esm/digi-icon-notification-error_4.entry.js +0 -92
  370. package/dist/esm/digi-icon-sign.entry.js +0 -26
  371. package/dist/esm/digi-icon-spinner.entry.js +0 -27
  372. package/dist/esm/digi-icon-x.entry.js +0 -26
  373. package/dist/esm/digi-info-card-multi-container.entry.js +0 -18
  374. package/dist/esm/digi-info-card-multi.entry.js +0 -54
  375. package/dist/esm/digi-info-card.entry.js +0 -75
  376. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  377. package/dist/esm/digi-layout-columns.entry.js +0 -29
  378. package/dist/esm/digi-link-button.entry.js +0 -62
  379. package/dist/esm/digi-link-internal.entry.js +0 -33
  380. package/dist/esm/digi-link.entry.js +0 -71
  381. package/dist/esm/digi-logo.entry.js +0 -45
  382. package/dist/esm/digi-media-image_2.entry.js +0 -162
  383. package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -26
  384. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  385. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  386. package/dist/esm/digi-notification-alert.entry.js +0 -108
  387. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  388. package/dist/esm/digi-tag-media.entry.js +0 -43
  389. package/dist/esm/digi-title-logo.entry.js +0 -129
  390. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  391. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  392. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  393. package/dist/esm/digi-typography.entry.js +0 -22
  394. package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
  395. package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
  396. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  397. package/dist/esm/footer-card-variation.enum-cc732148.js +0 -8
  398. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  399. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  400. package/dist/esm/form-validation-message-variation.enum-f7835fc5.js +0 -31
  401. package/dist/esm/index-5b6c95c6.js +0 -63
  402. package/dist/esm/index-8685f88d.js +0 -170
  403. package/dist/esm/info-card-multi-type.enum-07ee124f.js +0 -8
  404. package/dist/esm/info-card-variation.enum-2ccc52c1.js +0 -24
  405. package/dist/esm/layout-columns-variation.enum-34f7754e.js +0 -23
  406. package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
  407. package/dist/esm/link-button-variation.enum-84d4976f.js +0 -9
  408. package/dist/esm/logo-color.enum-8593dca6.js +0 -7
  409. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  410. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  411. package/dist/esm/tag-media-icon.enum-fefa191c.js +0 -11
  412. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  413. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
  414. package/dist/esm/typography-variation.enum-fdda731c.js +0 -266
@@ -1,240 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7a477838.js');
6
- const detectClickOutside_util = require('./detectClickOutside.util-3e764eb3.js');
7
- const detectFocusOutside_util = require('./detectFocusOutside.util-03c62976.js');
8
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
9
- require('./detectClosest.util-85b3507b.js');
10
-
11
- const navigationContextMenuCss = ".sc-digi-context-menu-h{--digi--navigation-context-menu--toggle-icon--transition:ease-in-out 0.2s all;--digi--navigation-context-menu--toggle-icon--transform:rotate(-180deg);--digi--navigation-context-menu--content--background-color:var(--digi--color--background--primary);--digi--navigation-context-menu--content--border-radius:var(--digi--border-radius--secondary);--digi--navigation-context-menu--content--max-width:90vw;--digi--navigation-context-menu--content--max-height:15rem;--digi--navigation-context-menu--button-icon--width:0.875rem;--digi--navigation-context-menu--button-trigger--font-size:var(--digi--typography--body--font-size--desktop);--digi--navigation-context-menu--button-trigger--padding:0;--digi--navigation-context-menu--item--font-size:var(--digi--typography--body--font-size--desktop);--digi--navigation-context-menu--item--background-color--active:var(--digi--color--background--interactive--selected--tertiary);--digi--navigation-context-menu--item--display:flex;--digi--navigation-context-menu--item--font-family:var(--digi--global--typography--font-family--default);--digi--navigation-context-menu--item--font-color:var(--digi--color--text--primary);display:block;box-sizing:border-box;width:fit-content}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu{display:grid}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__toggle-icon.sc-digi-context-menu{transition:var(--digi--navigation-context-menu--toggle-icon--transition)}.sc-digi-context-menu-h .digi-navigation-context-menu--active.sc-digi-context-menu .digi-navigation-context-menu__toggle-icon.sc-digi-context-menu{transform:var(--digi--navigation-context-menu--toggle-icon--transform)}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__trigger-button.sc-digi-context-menu{display:block;--digi--button--padding--medium:var(--digi--navigation-context-menu--button-trigger--padding);width:fit-content;--digi--button--font-size--medium:var(--digi--navigation-context-menu--button-trigger--font-size)}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__list.sc-digi-context-menu{width:100%;position:relative;display:none}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__list--active.sc-digi-context-menu{display:inline-grid}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__list.sc-digi-context-menu .dropdown-wrapper.sc-digi-context-menu{padding:0.5rem 0;display:none;width:max-content;min-width:100%;max-width:var(--digi--navigation-context-menu--content--max-width);max-height:var(--digi--navigation-context-menu--content--max-height);overflow-y:auto;box-sizing:border-box;z-index:10;margin-top:0.5rem;background-color:var(--digi--navigation-context-menu--content--background-color);border-radius:var(--digi--navigation-context-menu--content--border-radius);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.7);position:absolute}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__list.sc-digi-context-menu .dropdown-wrapper--visible.sc-digi-context-menu{display:block}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__list.sc-digi-context-menu .dropdown-wrapper--position-right.sc-digi-context-menu{right:0}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__list.sc-digi-context-menu .dropdown-wrapper--position-center.sc-digi-context-menu{left:50%;transform:translateX(-50%)}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .content-wrapper.sc-digi-context-menu{display:flex;flex-direction:row;align-items:baseline;padding-left:1rem;padding-right:1rem;gap:0.5rem}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item.sc-digi-context-menu{font-size:var(--digi--navigation-context-menu--item--font-size);display:var(--digi--navigation-context-menu--item--display);font-family:var(--digi--navigation-context-menu--item--font-family);padding:0.625rem 0;max-width:max-content;min-width:100%;width:100%;position:relative;cursor:pointer}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item.sc-digi-context-menu:hover{background-color:var(--digi--navigation-context-menu--item--background-color--active)}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item.sc-digi-context-menu:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item--active.sc-digi-context-menu{font-weight:600;background-color:var(--digi--navigation-context-menu--item--background-color--active)}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item--link.sc-digi-context-menu{list-style:none;margin:0;padding:0}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item--link.sc-digi-context-menu a.sc-digi-context-menu{padding:0.625rem 1rem;color:var(--digi--navigation-context-menu--item--font-color, #333333);text-decoration:none;margin:0;width:100%}.sc-digi-context-menu-h .digi-navigation-context-menu.sc-digi-context-menu .digi-navigation-context-menu__item.sc-digi-context-menu .digi-navigation-context-menu__button-icon.sc-digi-context-menu{--digi--icon--width:var(--digi--navigation-context-menu--button-icon--width)}";
12
- const DigiContextMenuStyle0 = navigationContextMenuCss;
13
-
14
- function deserializeProp(prop) {
15
- if (typeof prop === 'string') {
16
- return JSON.parse(prop);
17
- }
18
- return prop;
19
- }
20
- const ContextMenu = class {
21
- constructor(hostRef) {
22
- index.registerInstance(this, hostRef);
23
- this.afChangeItem = index.createEvent(this, "afChangeItem", 7);
24
- this.afFocusItem = index.createEvent(this, "afFocusItem", 7);
25
- this.afToggleMenu = index.createEvent(this, "afToggleMenu", 7);
26
- this.afBlur = index.createEvent(this, "afBlur", 7);
27
- this.itemRefs = {};
28
- this.visible = false;
29
- this.activeItemIdx = undefined;
30
- this.selectItemIdx = 0;
31
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-context-menu');
32
- this.afIcon = undefined;
33
- this.afTitle = undefined;
34
- this.afMenuItems = undefined;
35
- this.afDir = undefined;
36
- this.afLang = undefined;
37
- this.afAriaLabel = undefined;
38
- this.afMenuPosition = 'left-bottom';
39
- this.afActiveItem = undefined;
40
- }
41
- clickHandler(e) {
42
- const target = e.target;
43
- const selector = `#${this.afId}-identifier`;
44
- if (detectClickOutside_util.detectClickOutside(target, selector) && this.visible) {
45
- this.hideMenu();
46
- }
47
- }
48
- focusoutHandler(e) {
49
- const target = e.target;
50
- const selector = `#${this.afId}-identifier`;
51
- if (detectFocusOutside_util.detectFocusOutside(target, selector) && this.visible) {
52
- this.hideMenu();
53
- this.afBlur.emit();
54
- }
55
- }
56
- syncActiveItem() {
57
- if (this.afActiveItem != null) {
58
- const menuItems = this.afMenuItems;
59
- this.activeItemIdx = menuItems.findIndex((item) => item.id.toString() === this.afActiveItem);
60
- }
61
- }
62
- syncItems() {
63
- this.afMenuItems = deserializeProp(this.afMenuItems);
64
- }
65
- componentWillLoad() {
66
- this.syncItems();
67
- this.syncActiveItem();
68
- }
69
- get digiIcon() {
70
- if (this.afIcon != null) {
71
- return `digi-icon-${this.afIcon}`;
72
- }
73
- }
74
- hideMenu() {
75
- this.visible = false;
76
- this.afToggleMenu.emit(this.visible);
77
- }
78
- showMenu() {
79
- this.visible = true;
80
- this.afToggleMenu.emit(this.visible);
81
- }
82
- isLink() {
83
- if (this.afMenuItems && this.afMenuItems.length > 0) {
84
- const itemToCheck = this.afMenuItems[0];
85
- return itemToCheck.type && itemToCheck.type === 'link';
86
- }
87
- return false;
88
- }
89
- async handleToggle() {
90
- if (this.visible) {
91
- this.hideMenu();
92
- this.focusOnButton();
93
- }
94
- else {
95
- this.showMenu();
96
- if (!this.isLink()) {
97
- const idx = this.activeItemIdx || 0;
98
- const item = this.afMenuItems[idx];
99
- setTimeout(() => this.itemRefs[item.id].focus(), 25);
100
- }
101
- }
102
- }
103
- async focusOnButton() {
104
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
105
- // @ts-expect-error
106
- const digiButton = this.buttonRef;
107
- const button = (await digiButton.afMGetButtonElement());
108
- button.focus();
109
- }
110
- handleChangeItem(item, idx) {
111
- this.activeItemIdx = idx;
112
- this.handleToggle();
113
- this.afChangeItem.emit({ item, idx });
114
- }
115
- handleRef(ref, refId, payload) {
116
- if (refId === 'item') {
117
- this.itemRefs[payload.id] = ref;
118
- }
119
- }
120
- isActive(idx) {
121
- if ((this.activeItemIdx !== undefined || this.activeItemIdx !== null) &&
122
- this.activeItemIdx === idx) {
123
- return true;
124
- }
125
- return false;
126
- }
127
- isSelected(idx) {
128
- return this.selectItemIdx === idx;
129
- }
130
- nextIdx(idx) {
131
- if (idx > this.afMenuItems.length - 1) {
132
- return 0;
133
- }
134
- else if (idx < 0) {
135
- return this.afMenuItems.length - 1;
136
- }
137
- else {
138
- return idx;
139
- }
140
- }
141
- activateItem(idx) {
142
- const item = this.afMenuItems[idx];
143
- this.activeItemIdx = idx;
144
- this.focusItem(idx);
145
- this.handleChangeItem(item, idx);
146
- }
147
- focusItem(idx) {
148
- var _a;
149
- const item = this.afMenuItems[idx];
150
- this.selectItemIdx = idx;
151
- (_a = this.itemRefs[item.id]) === null || _a === void 0 ? void 0 : _a.focus();
152
- this.afFocusItem.emit({ item, idx });
153
- }
154
- focusCaptured() {
155
- const menuItems = this.afMenuItems;
156
- return menuItems.some((item) => this.itemRefs[item.id] === document.activeElement);
157
- }
158
- handleKey(e) {
159
- if (!this.focusCaptured())
160
- return;
161
- switch (e.key) {
162
- case 'ArrowUp':
163
- this.focusItem(this.nextIdx(this.selectItemIdx - 1));
164
- break;
165
- case 'ArrowDown':
166
- this.focusItem(this.nextIdx(this.selectItemIdx + 1));
167
- break;
168
- case 'Escape':
169
- this.hideMenu();
170
- this.focusOnButton();
171
- break;
172
- case 'Enter':
173
- case ' ':
174
- e.preventDefault();
175
- e.stopPropagation();
176
- this.activateItem(this.selectItemIdx);
177
- break;
178
- }
179
- }
180
- handleLinkClick(e, item, idx) {
181
- if (!item.overrideLink) {
182
- window.location.assign(item.href);
183
- }
184
- else {
185
- e.preventDefault();
186
- this.handleChangeItem(item, idx);
187
- }
188
- }
189
- renderLink(item, idx) {
190
- const menuItem = this.afMenuItems[idx];
191
- return (index.h("li", { id: `${this.afId}-listbox-item-${item.id}`, key: item.id, class: {
192
- 'digi-navigation-context-menu__item': true,
193
- 'digi-navigation-context-menu__item--link': true,
194
- 'digi-navigation-context-menu__item--active': this.isActive(idx)
195
- }, dir: this.afDir, lang: this.afLang, ref: (ref) => { var _a; return (_a = this.handleRef) === null || _a === void 0 ? void 0 : _a.call(this, ref, 'item', item); } }, index.h("a", { "aria-label": item.ariaLabel ? item.ariaLabel : null, href: menuItem.href ? menuItem.href : null, onClick: (e) => this.handleLinkClick(e, item, idx) }, item.title)));
196
- }
197
- renderDiv(item, idx) {
198
- return (index.h("div", { role: "option", id: `${this.afId}-listbox-item-${item.id}`, key: item.id, class: {
199
- 'digi-navigation-context-menu__item': true,
200
- 'digi-navigation-context-menu__item--active': this.isActive(idx)
201
- }, dir: this.afDir, lang: this.afLang, "aria-selected": this.isActive(idx).toString(), tabIndex: this.isSelected(idx) ? 0 : -1, onClick: () => { var _a; return (_a = this.handleChangeItem) === null || _a === void 0 ? void 0 : _a.call(this, item, idx); }, ref: (ref) => { var _a; return (_a = this.handleRef) === null || _a === void 0 ? void 0 : _a.call(this, ref, 'item', item); } }, index.h("div", { class: "content-wrapper" }, index.h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon", style: {
202
- visibility: idx === this.activeItemIdx && this.visible
203
- ? 'visible'
204
- : 'hidden'
205
- } }), index.h("span", { "aria-label": item.ariaLabel ? item.ariaLabel : null }, item.title)), ' '));
206
- }
207
- render() {
208
- const menuItems = this.afMenuItems;
209
- return (index.h(index.Host, { key: '3d710f244c36361e7a1db54d6ff91bcfa7dc8f61' }, index.h("div", { key: '098d2c031d46d62987810f254621d5540709c738', id: `${this.afId}-identifier`, class: {
210
- 'digi-navigation-context-menu': true,
211
- 'digi-navigation-context-menu--active': this.visible
212
- } }, index.h("digi-button", { key: '1bb808252655162e41807b2c05466ca6eb59dcd2', id: `${this.afId}-trigger`, ref: (ref) => (this.buttonRef = ref), onClick: () => this.handleToggle(), afVariation: "function", afAriaControls: `${this.afId}-dropdown`, afAriaExpanded: this.visible, afAriaLabel: this.afAriaLabel || null, class: "digi-navigation-context-menu__trigger-button" }, !!this.afIcon && index.h(this.digiIcon, { key: '3b9dea7016fba1b2fd47cbb554dfc237c677efd9', slot: "icon" }), this.afTitle, index.h("digi-icon-chevron-down", { key: '0fc00e257f1c52097e5e9588128a09d31c0e9470', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })), index.h("div", { key: '3ece43fb02a56fc404a371b3eec3d9bc5255cf6d', class: {
213
- 'digi-navigation-context-menu__list': true,
214
- 'digi-navigation-context-menu__list--active': this.visible
215
- } }, index.h("div", { key: 'd25725930bd2dc57e3cba2d79a80a30d70ca7feb', onKeyDown: (e) => {
216
- this.handleKey(e);
217
- }, id: `${this.afId}-dropdown`, style: {
218
- visibility: this.visible ? 'visible' : 'hidden'
219
- }, role: this.isLink() ? 'list' : 'listbox', "aria-labelledby": `${this.afId}-trigger`, class: {
220
- 'dropdown-wrapper': true,
221
- 'dropdown-wrapper--visible': this.visible,
222
- 'dropdown-wrapper--position-right': this.afMenuPosition === 'right-bottom',
223
- 'dropdown-wrapper--position-center': this.afMenuPosition === 'center-bottom'
224
- } }, menuItems &&
225
- menuItems.map((item, idx) => {
226
- const menuItem = menuItems[idx];
227
- if (menuItem.type && (menuItem === null || menuItem === void 0 ? void 0 : menuItem.type) === 'link') {
228
- return this.renderLink(item, idx);
229
- }
230
- return this.renderDiv(item, idx);
231
- }))))));
232
- }
233
- static get watchers() { return {
234
- "afActiveItem": ["syncActiveItem"],
235
- "afMenuItems": ["syncItems"]
236
- }; }
237
- };
238
- ContextMenu.style = DigiContextMenuStyle0;
239
-
240
- exports.digi_context_menu = ContextMenu;
@@ -1,97 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7a477838.js');
6
- const expandableFaqItemVariation_enum = require('./expandable-faq-item-variation.enum-89427195.js');
7
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
8
-
9
- const expandableFaqItemCss = ".sc-digi-expandable-faq-item-h{--digi--expandable-faq-item--header--background-color--primary:var(--digi--color--background--pop-out);--digi--expandable-faq-item--header--background-color--secondary:var(--digi--color--background--secondary);--digi--expandable-faq-item--header--background-color--tertiary:var(--digi--color--background--primary);--digi--expandable-faq-item--header--toggle-icon--transition:ease-in-out var(--digi--animation--duration--base) all;--digi--expandable-faq-item--content--transition:ease-in-out var(--digi--animation--duration--base) height;--digi--expandable-faq-item--icon--size:0.875rem;--digi--expandable-faq-item--icon--margin-right:var(--digi--margin--medium);--digi--expandable-faq-item--header--font-size:var(--digi--typography--preamble--font-size--desktop);--digi--expandable-faq-item--header--font-weight:var(--digi--typography--preamble--font-weight--desktop);--digi--expandable-faq-item--border-width:var(--digi--border-width--secondary);--digi--expandable-faq-item--border-bottom-width:var(--digi--border-width--secondary);--digi--expandable-faq-item--content--padding:var(--digi--gutter--largest-2);display:block}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--primary.sc-digi-expandable-faq-item{--BACKGROUND:var(--digi--expandable-faq-item--header--background-color--primary)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--secondary.sc-digi-expandable-faq-item{--BACKGROUND:var(--digi--expandable-faq-item--header--background-color--secondary)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--tertiary.sc-digi-expandable-faq-item{--BACKGROUND:var(--digi--expandable-faq-item--header--background-color--tertiary)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item.sc-digi-expandable-faq-item{margin-bottom:var(--digi--global--spacing--smallest-4);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--expanded.sc-digi-expandable-faq-item{border-bottom-color:var(--BACKGROUND)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item{background-color:var(--BACKGROUND);width:100%;max-width:calc(var(--digi--paragraph-width--medium) + var(--digi--padding--largest-2))}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item .digi-expandable-faq-item--fullwidth.sc-digi-expandable-faq-item{max-width:none}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header-text.sc-digi-expandable-faq-item{max-width:var(--digi--paragraph-width--medium)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h1.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h2.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h3.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h4.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h5.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h6.sc-digi-expandable-faq-item{margin:0}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon.sc-digi-expandable-faq-item{margin-right:var(--digi--expandable-faq-item--icon--margin-right);transition:var(--digi--expandable-faq-item--header--toggle-icon--transition)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon--expanded.sc-digi-expandable-faq-item{transform:rotate(-180deg)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon.sc-digi-expandable-faq-item-s>[slot^=icon],.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon .sc-digi-expandable-faq-item-s>[slot^=icon]{--digi--icon--width:var(--digi--expandable-faq-item--icon--size);--digi--icon--height:var(--digi--expandable-faq-item--icon--size)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--fullwidth.sc-digi-expandable-faq-item .digi-expandable-faq-item__header.sc-digi-expandable-faq-item{max-width:none}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__button.sc-digi-expandable-faq-item{color:var(--digi--color--text--primary);background-color:var(--BACKGROUND);border:none;border-radius:0;padding:var(--digi--expandable-faq-item--content--padding);font-size:var(--digi--expandable-faq-item--header--font-size);font-weight:var(--digi--expandable-faq-item--header--font-weight);width:100%;display:flex;align-items:center;text-align:left;cursor:pointer;font-family:var(--digi--global--typography--font-family--default)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__button.sc-digi-expandable-faq-item:hover{text-decoration:underline}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__button.sc-digi-expandable-faq-item:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content.sc-digi-expandable-faq-item{overflow-y:hidden}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content.sc-digi-expandable-faq-item>div.sc-digi-expandable-faq-item{padding:var(--digi--expandable-faq-item--content--padding);box-sizing:border-box;max-width:var(--digi--paragraph-width--medium)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content--animation.sc-digi-expandable-faq-item{transition:var(--digi--expandable-faq-item--content--transition)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content--hidden.sc-digi-expandable-faq-item{height:0}";
10
- const DigiExpandableFaqItemStyle0 = expandableFaqItemCss;
11
-
12
- const ExpandableFaqItem = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- this.afOnClick = index.createEvent(this, "afOnClick", 7);
16
- this.afHeading = undefined;
17
- this.afHeadingLevel = expandableFaqItemVariation_enum.ExpandableFaqItemHeadingLevel.H3;
18
- this.afFullWidth = false;
19
- this.afExpanded = false;
20
- this.afVariation = expandableFaqItemVariation_enum.ExpandableFaqItemVariation.PRIMARY;
21
- this.afAnimation = true;
22
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-expandable-faq-item');
23
- }
24
- get cssModifiers() {
25
- return {
26
- 'digi-expandable-faq-item--expanded': this.afExpanded,
27
- 'digi-expandable-faq-item--fullwidth': this.afFullWidth,
28
- 'digi-expandable-faq-item--primary': this.afVariation === expandableFaqItemVariation_enum.ExpandableFaqItemVariation.PRIMARY,
29
- 'digi-expandable-faq-item--secondary': this.afVariation === expandableFaqItemVariation_enum.ExpandableFaqItemVariation.SECONDARY,
30
- 'digi-expandable-faq-item--tertiary': this.afVariation === expandableFaqItemVariation_enum.ExpandableFaqItemVariation.TERTIARY
31
- };
32
- }
33
- /**
34
- * Hämtar en höjden till innehållet i vanliga frågor och svar och animera innehållet.
35
- * @en Gets a height to the content for FAQ and animate the content.
36
- */
37
- componentDidLoad() {
38
- const content = this.hostElement.children[0].querySelector(`#${this.afId}-content`);
39
- if (!this.afExpanded) {
40
- content.setAttribute('style', 'visibility: hidden;');
41
- }
42
- else {
43
- content.setAttribute('style', 'height: auto;');
44
- }
45
- content.addEventListener('transitionend', () => {
46
- if (!this.afExpanded) {
47
- content.setAttribute('style', 'visibility: hidden; height: ' + 0 + 'px');
48
- }
49
- else
50
- content.setAttribute('style', 'height: auto');
51
- });
52
- }
53
- animateContentHeight() {
54
- const content = this.hostElement.children[0].querySelector(`#${this.afId}-content`);
55
- const sectionHeight = content.firstElementChild
56
- .offsetHeight;
57
- if (!this.afExpanded && content.style.height === 'auto') {
58
- content.setAttribute('style', 'height: ' + sectionHeight + 'px');
59
- setTimeout(() => {
60
- content.setAttribute('style', 'height: 0');
61
- });
62
- return;
63
- }
64
- if (this.afExpanded) {
65
- content.setAttribute('style', 'visibility: visible; height:' + sectionHeight + 'px');
66
- if (!this.afAnimation) {
67
- setTimeout(() => {
68
- content.setAttribute('style', 'height: auto');
69
- });
70
- }
71
- }
72
- else {
73
- content.setAttribute('style', 'height: ' + 0 + 'px');
74
- }
75
- }
76
- render() {
77
- return (index.h("article", { key: '77cebf9e6024110a7a13e0a8b8bad26443783f3f', "aria-expanded": this.afExpanded ? 'true' : 'false', class: Object.assign({ 'digi-expandable-faq-item': true }, this.cssModifiers) }, index.h("header", { key: 'cfcd9dd4602a738d93c588e78aacf3a1d680be7f', class: "digi-expandable-faq-item__header" }, index.h(this.afHeadingLevel, { key: '070e9ce1ae568f76a98c790eecd9f6c8170882eb' }, index.h("button", { key: 'bd22294c7b556c2f048a9168e7ef6623df5f7344', type: "button", class: "digi-expandable-faq-item__button", onClick: (e) => {
78
- e.preventDefault();
79
- this.afExpanded = !this.afExpanded;
80
- this.afOnClick.emit(e);
81
- }, "aria-expanded": this.afExpanded ? 'true' : 'false', "aria-controls": `${this.afId}-content` }, index.h("digi-icon-chevron-down", { key: '8d32c3b205fb19bd82887eaeb586e823f43f275a', class: {
82
- 'digi-expandable-faq-item__header--toggle-icon': true,
83
- 'digi-expandable-faq-item__header--toggle-icon--expanded': this.afExpanded
84
- } }), index.h("div", { key: '8f3a9b920c46c0bd7604fc263eee364aab0530bc', class: "digi-expandable-faq-item__header-text" }, this.afHeading)))), index.h("section", { key: '0044fcff40a354d5aa2eab9cd3aa8bb8f84a655e', class: {
85
- 'digi-expandable-faq-item__content': true,
86
- 'digi-expandable-faq-item__content--animation': this.afAnimation,
87
- 'digi-expandable-faq-item__content--hidden': !this.afExpanded
88
- }, id: `${this.afId}-content` }, index.h("div", { key: '57d0847d6c133b95366884299109f728b72f9cdf' }, index.h("digi-typography", { key: 'a7ac9df70a7e68d0f55b6f745d456884ab3527ac' }, index.h("slot", { key: '49f68abb221c4b439269ea016c8f66e7dd5c37ea' }))))));
89
- }
90
- get hostElement() { return index.getElement(this); }
91
- static get watchers() { return {
92
- "afExpanded": ["animateContentHeight"]
93
- }; }
94
- };
95
- ExpandableFaqItem.style = DigiExpandableFaqItemStyle0;
96
-
97
- exports.digi_expandable_faq_item = ExpandableFaqItem;
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7a477838.js');
6
- const footerCardVariation_enum = require('./footer-card-variation.enum-99555edc.js');
7
-
8
- const footerCardCss = ".sc-digi-footer-card-h{--digi--footer-card--text--color:var(--digi--color--text--secondary);--digi--footer-card--border-bottom:solid var(--digi--border-width--primary) var(--digi--color--divider--on-brand-primary);--digi--footer-card--link--font-weight:var(--digi--typography--link-bold--font-weight--desktop)}.sc-digi-footer-card-h .digi-footer-card.sc-digi-footer-card{--BORDER:unset;--LINK-DECORATION:underline;--LINK-DECORATION--HOVER:underline;--LINK-SIZE:inherit;--PADDING-BOTTOM:var(--digi--container-gutter--larger);--MARGIN-BOTTOM:var(--digi--container-gutter--larger);margin-bottom:var(--MARGIN-BOTTOM);padding-bottom:var(--PADDING-BOTTOM);border-bottom:var(--BORDER)}@media (min-width: 61.9375rem){.sc-digi-footer-card-h .digi-footer-card.sc-digi-footer-card{--BORDER:0;--PADDING-BOTTOM:var(--digi--container-gutter--large)}}.sc-digi-footer-card-h .digi-footer-card--border.sc-digi-footer-card{--BORDER:var(--digi--footer-card--border-bottom);--LINK-SIZE:var(--digi--typography--heading-3--font-size--mobile)}@media (min-width: 61.9375rem){.sc-digi-footer-card-h .digi-footer-card--border.sc-digi-footer-card{--LINK-SIZE:var(--digi--typography--heading-3--font-size--desktop)}}.sc-digi-footer-card-h .digi-footer-card--icon.sc-digi-footer-card{--LINK-DECORATION:none}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h2,.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h3,.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h4,.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h5,.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h6{color:var(--digi--footer--text--color);margin-top:0}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h2{font-size:var(--digi--typography--heading-3--font-size--mobile)}@media (min-width: 61.9375rem){.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s h2{font-size:var(--digi--typography--heading-3--font-size--desktop)}}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s p{color:var(--digi--footer--text--color)}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s a{font-size:var(--LINK-SIZE);color:var(--digi--footer--text--color);font-weight:var(--digi--footer-card--link--font-weight);display:flex;align-items:flex-start;text-decoration:var(--LINK-DECORATION)}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s a:hover{text-decoration:var(--LINK-DECORATION--HOVER)}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s a svg{--digi--icon--color:var(--digi--footer-card-text--color);--digi--icon--height:1em;--digi--icon--width:1em;margin-right:var(--digi--gutter--small)}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s ul{padding:0;margin:0;list-style:none}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s ul li{margin-bottom:var(--digi--gutter--largest-2)}.sc-digi-footer-card-h .digi-footer-card .sc-digi-footer-card-s ul li:last-child{margin-bottom:0}";
9
- const DigiFooterCardStyle0 = footerCardCss;
10
-
11
- const FooterFooterCard = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.afType = footerCardVariation_enum.FooterCardVariation.NONE;
15
- }
16
- get cssModifiers() {
17
- return {
18
- 'digi-footer-card--icon': this.afType == footerCardVariation_enum.FooterCardVariation.ICON,
19
- 'digi-footer-card--border': this.afType == footerCardVariation_enum.FooterCardVariation.BORDER
20
- };
21
- }
22
- render() {
23
- return (index.h(index.Host, { key: 'a15273fc73e9e7e9fc9084dafb28c4bdd211a304' }, index.h("div", { key: '80d2759e16e78a4018a94b8a83cbabdb7d50ce96', class: Object.assign({ 'digi-footer-card': true }, this.cssModifiers) }, index.h("div", { key: 'f305ebb61e11f1e3b6862d02eb8be3dc6ca00e4c', class: "digi-footer-card__content" }, index.h("slot", { key: '4928d8f14f35856a3adee2d7d8d44f9dffaebd1b' })))));
24
- }
25
- get hostElement() { return index.getElement(this); }
26
- };
27
- FooterFooterCard.style = DigiFooterCardStyle0;
28
-
29
- exports.digi_footer_card = FooterFooterCard;
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7a477838.js');
6
- const typographyVariation_enum = require('./typography-variation.enum-9aab5027.js');
7
- require('./badge-notification-shape.enum-ff802554.js');
8
- require('./badge-status-variation.enum-0a5adc21.js');
9
- require('./code-example-variation.enum-1611825e.js');
10
- require('./form-input-type.enum-1fb2180a.js');
11
- require('./button-variation.enum-bc521499.js');
12
- require('./calendar-week-view-heading-level.enum-fd0c841b.js');
13
- require('./bar-chart-variation.enum-a4e866b6.js');
14
- require('./code-variation.enum-c4a4e6fd.js');
15
- require('./expandable-accordion-header-level.enum-45483252.js');
16
- require('./expandable-faq-item-variation.enum-89427195.js');
17
- require('./expandable-faq-variation.enum-af923f49.js');
18
- require('./footer-card-variation.enum-99555edc.js');
19
- require('./form-checkbox-variation.enum-d2ca879e.js');
20
- require('./form-validation-message-variation.enum-c5ec3e2d.js');
21
- require('./form-radiogroup-validation.enum-03a17d4d.js');
22
- require('./form-select-variation.enum-528c1bf0.js');
23
- require('./form-textarea-variation.enum-9c90d40f.js');
24
- require('./info-card-multi-type.enum-14746572.js');
25
- require('./info-card-variation.enum-64cef637.js');
26
- require('./layout-container-max-width.enum-7e637f44.js');
27
- const layoutBlockVariation_enum = require('./layout-block-variation.enum-f6102119.js');
28
- require('./layout-columns-variation.enum-65675649.js');
29
- require('./link-button-variation.enum-137785e3.js');
30
- require('./list-type.enum-aea4d012.js');
31
- require('./loader-skeleton-variation.enum-d52ba55e.js');
32
- require('./loader-spinner-size.enum-db2973f0.js');
33
- require('./logo-color.enum-76f6c506.js');
34
- require('./media-figure-alignment.enum-3885aba5.js');
35
- require('./navigation-sidebar-variation.enum-1c0c3064.js');
36
- require('./navigation-vertical-menu-variation.enum-c237edd3.js');
37
- require('./progress-circle-role.enum-b7fdcf0c.js');
38
- require('./progress-indicator-variation.enum-7cf8e0e4.js');
39
- require('./progress-list-item-variation.enum-90e4c874.js');
40
- require('./progress-list-variation.enum-06d5ce27.js');
41
- require('./progressbar-variation.enum-aff9fa80.js');
42
- require('./quote-image-inner-position.enum-e64e7a6d.js');
43
- require('./table-variation.enum-25df2ad7.js');
44
- require('./tag-media-icon.enum-372563c5.js');
45
- require('./tag-size.enum-387c516c.js');
46
- require('./tools-feedback-banner-type.enum-de373ba0.js');
47
- require('./tools-feedback-rating-variation.enum-2f71e84d.js');
48
- require('./tools-theme-provider.brand.enum-bc855272.js');
49
- require('./typography-heading-jumbo-variation.enum-8677e099.js');
50
- require('./typography-meta-variation.enum-13ac3538.js');
51
- require('./typography-time-variation.enum-bce1d87e.js');
52
- require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
53
-
54
- const footerCss = ".sc-digi-footer-h {\n --digi--footer--text--color: var(--digi--color--text--secondary);\n --digi--footer--text--font-family: var(--digi--global--typography--font-family--default);\n --digi--footer--text--font-size: var(--digi--typography--body--font-size--desktop);\n --digi--footer--text--font-weight: var(--digi--typography--description--font-weight--desktop);\n --digi--footer--link--color--default: var(--digi--color--text--secondary);\n --digi--footer--link--color--hover: var(--digi--color--text--secondary);\n --digi--footer--link--border-color--default: var(--digi--color--text--secondary);\n --digi--footer--link--border-color--hover: var(--digi--color--text--secondary);\n --digi--footer--padding-top: var(--digi--container-gutter--largest);\n --digi--footer--margin-top: var(--digi--container-gutter--large);\n --digi--footer--logo-vertical-padding: var(--digi--container-gutter--large);\n}\n.sc-digi-footer-h .digi-footer.sc-digi-footer {\n --MARGIN-TOP: var(--digi--footer--margin-top);\n color: var(--digi--footer--text--color);\n font-family: var(--digi--footer--text--font-family);\n font-size: var(--digi--footer--text--font-size);\n font-weight: var(--digi--footer--text--font-weight);\n line-height: normal;\n}\n.sc-digi-footer-h .digi-footer.sc-digi-footer-s > [slot^=content-top], .sc-digi-footer-h .digi-footer .sc-digi-footer-s > [slot^=content-top] {\n grid-template-columns: repeat(1, 1fr);\n}\n@media (min-width: 61.9375rem) {\n .sc-digi-footer-h .digi-footer.sc-digi-footer-s > [slot^=content-top], .sc-digi-footer-h .digi-footer .sc-digi-footer-s > [slot^=content-top] {\n grid-template-columns: repeat(4, 1fr);\n }\n .sc-digi-footer-h .digi-footer--small.sc-digi-footer-s > [slot^=content-top] > *:first-child, .sc-digi-footer-h .digi-footer--small .sc-digi-footer-s > [slot^=content-top] > *:first-child {\n grid-column: 1/3;\n }\n}\n@container (max-width: 600px) {\n .sc-digi-footer-h .digi-footer.sc-digi-footer-s > [slot^=content-top], .sc-digi-footer-h .digi-footer .sc-digi-footer-s > [slot^=content-top] {\n grid-template-columns: repeat(1, 1fr);\n }\n}\n.sc-digi-footer-h .digi-footer__content-top.sc-digi-footer {\n container-type: inline-size;\n padding-top: var(--digi--footer--padding-top);\n}\n.sc-digi-footer-h .digi-footer__content-bottom.sc-digi-footer {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n padding: var(--digi--footer--padding-top) 0;\n}\n@media (max-width: 61.9375rem) {\n .sc-digi-footer-h .digi-footer__content-bottom.sc-digi-footer {\n justify-content: center;\n }\n}\n@container (max-width: 600px) {\n .sc-digi-footer-h .digi-footer__content-bottom {\n justify-content: center;\n }\n}\n.sc-digi-footer-h .sc-digi-footer-s digi-logo {\n --digi--logo--padding--large--wide: 0;\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-top], .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-top] {\n display: grid;\n grid-template-rows: repeat(2, auto);\n column-gap: var(--digi--gutter--largest);\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left], .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-left] {\n flex-basis: 100%;\n display: flex;\n justify-content: center;\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left] .digi-logo, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left] .digi-logo, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-left] .digi-logo {\n padding: var(--digi--footer--logo-vertical-padding) 0;\n}\n@media (min-width: 61.9375rem) {\n .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left], .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-left] {\n flex-basis: auto;\n }\n .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left] .digi-logo, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-left] .digi-logo, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-left] .digi-logo {\n padding: 0;\n }\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] {\n display: flex;\n align-items: flex-end;\n flex-wrap: wrap;\n justify-content: center;\n margin-top: var(--MARGIN-TOP);\n}\n@media (min-width: 61.9375rem) {\n .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] {\n --MARGIN-TOP: 0;\n }\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] p, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] p, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] span, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] span, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] span, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a {\n color: var(--digi--footer--text--color);\n padding: var(--digi--gutter--small);\n margin: 0;\n}\n@media (min-width: 61.9375rem) {\n .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] p, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] p, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] span, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] span, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] span, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a {\n padding: var(--digi--gutter--largest-2) var(--digi--gutter--small);\n }\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a {\n color: var(--digi--footer--link--color--default);\n border-color: var(--digi--footer--link--border-color--default);\n margin: 0;\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a:visited, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a:visited {\n color: var(--digi--footer--link--color--default);\n}\n.sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a:hover, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a:hover, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a:focus, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a:focus, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right], .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a, .sc-digi-footer-h.sc-digi-footer-s > [slot^=content-bottom-right] a:active, .sc-digi-footer-h .sc-digi-footer-s > [slot^=content-bottom-right] a:active {\n background: transparent;\n color: var(--digi--footer--link--color--hover);\n border-color: var(--digi--footer--link--border-color--hover);\n}";
55
- const DigiFooterStyle0 = footerCss;
56
-
57
- const FooterFooter = class {
58
- constructor(hostRef) {
59
- index.registerInstance(this, hostRef);
60
- this.afVariation = typographyVariation_enum.FooterVariation.LARGE;
61
- }
62
- get cssModifiers() {
63
- return {
64
- 'digi-footer--small': this.afVariation == typographyVariation_enum.FooterVariation.SMALL
65
- };
66
- }
67
- render() {
68
- return (index.h(index.Host, { key: '133c1439937cd5c605b46960487caad993847dd3' }, index.h("footer", { key: '77ad14d88b16d7452ffe5406b0b0bf78c552d3ad', class: Object.assign({ 'digi-footer': true }, this.cssModifiers) }, index.h("digi-typography", { key: 'd695e51d7fed7bdacd5c2706804287e0cd67e94a' }, index.h("digi-layout-block", { key: '9dd0f463665ae8402445f2ff8b6ddc8b198836dd', afVariation: layoutBlockVariation_enum.LayoutBlockVariation.PROFILE }, index.h("digi-layout-container", { key: 'a8b72e661ee8f878ae6cf5a2d5da65bf1fb4fc7f', "af-no-gutter": true }, index.h("div", { key: '518a65a77376a7648e0c4298c1fd07c19dc725a4', class: "digi-footer__content-top" }, index.h("slot", { key: '87b6ba476ca0ef0f1a8c96926da133b0a5d27d3c', name: "content-top" })), index.h("div", { key: '4c43eec28c77d7dd793031beeb1c1962a7d997eb', class: "digi-footer__content-bottom" }, index.h("slot", { key: 'a2086ff384d987ae36cdadd758647bd950ff08ca', name: "content-bottom-left" }), index.h("slot", { key: '9a1147e4665ba559a87c0282412298d0be3a4794', name: "content-bottom-right" }))))))));
69
- }
70
- get hostElement() { return index.getElement(this); }
71
- };
72
- FooterFooter.style = DigiFooterStyle0;
73
-
74
- exports.digi_footer = FooterFooter;
@@ -1,121 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7a477838.js');
6
-
7
- const formCategoryFilterCss = ".sc-digi-form-category-filter-h{--digi--form-category-filter--gap:var(--digi--padding--small)}.sc-digi-form-category-filter-h .digi-form-category-filter.sc-digi-form-category-filter{display:flex;flex-wrap:wrap;gap:var(--digi--form-category-filter--gap)}.sc-digi-form-category-filter-h .digi-form-category-filter--category.sc-digi-form-category-filter{--digi--button--icon--spacing:0px}.sc-digi-form-category-filter-h .digi-form-category-filter--category--not-selected.sc-digi-form-category-filter{--digi--button--color--background--primary--default:var(--digi--color--background--interactive--default--quaternary);--digi--button--color--text--primary--default:var(--digi--color--text--interactive--brand-primary);--digi--button--color--border--primary--default:var(--digi--color--background--interactive--default--quaternary)}.sc-digi-form-category-filter-h .digi-form-category-filter--category--thin-text.sc-digi-form-category-filter{font-weight:400}";
8
- const DigiFormCategoryFilterStyle0 = formCategoryFilterCss;
9
-
10
- const FormCategoryFilter = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.afOnSelectedCategoryChange = index.createEvent(this, "afOnSelectedCategoryChange", 7);
14
- this.afCategories = [];
15
- this.afAllCategories = true;
16
- this.afAllCategoriesSelected = true;
17
- this.afAllCategoriesText = 'Alla kategorier';
18
- this.afVisibleCollapsed = 0;
19
- this.afStartCollapsed = false;
20
- this.afMultiselect = true;
21
- this.afHideToggle = false;
22
- this.selectedCategories = [];
23
- this.collapsed = false;
24
- }
25
- afCategoriesChangeHandler() {
26
- this.selectedCategories = this.afCategories
27
- .filter((category) => category.selected)
28
- .map((category) => category.name);
29
- if (this.selectedCategories.length === 0 &&
30
- this.afAllCategories &&
31
- this.afAllCategoriesSelected)
32
- this.selectedCategories = [this.afAllCategoriesText];
33
- }
34
- componentDidLoad() {
35
- this.afCategoriesChangeHandler();
36
- this.collapsed = this.afStartCollapsed;
37
- }
38
- displayCategories() {
39
- if (this.afHideToggle) {
40
- return [{ name: this.afAllCategoriesText }, ...this.afCategories];
41
- }
42
- if (this.afAllCategories) {
43
- if (this.collapsed &&
44
- this.afCategories.length + 1 > this.afVisibleCollapsed)
45
- return [
46
- { name: this.afAllCategoriesText },
47
- ...this.afCategories.slice(0, this.afVisibleCollapsed - 1)
48
- ];
49
- return [{ name: this.afAllCategoriesText }, ...this.afCategories];
50
- }
51
- if (this.collapsed && this.afCategories.length > this.afVisibleCollapsed)
52
- return this.afCategories.slice(0, this.afVisibleCollapsed);
53
- return this.afCategories;
54
- }
55
- toggleCategory(category) {
56
- if (!this.afMultiselect) {
57
- if (this.afAllCategories && category.name === this.afAllCategoriesText) {
58
- if (this.selectedCategories.includes(this.afAllCategoriesText)) {
59
- this.selectedCategories = [];
60
- this.afOnSelectedCategoryChange.emit([]);
61
- }
62
- else {
63
- this.selectedCategories = [this.afAllCategoriesText];
64
- this.afOnSelectedCategoryChange.emit(this.afCategories.map((category) => category.name));
65
- }
66
- }
67
- // Not allCategories
68
- this.selectedCategories = [category.name];
69
- this.afOnSelectedCategoryChange.emit(this.selectedCategories);
70
- return;
71
- }
72
- if (this.afAllCategories && category.name === this.afAllCategoriesText) {
73
- if (this.selectedCategories.includes(this.afAllCategoriesText)) {
74
- this.selectedCategories = [];
75
- this.afOnSelectedCategoryChange.emit([]);
76
- }
77
- else {
78
- this.selectedCategories = [this.afAllCategoriesText];
79
- this.afOnSelectedCategoryChange.emit(this.afCategories.map((category) => category.name));
80
- }
81
- }
82
- else {
83
- if (this.selectedCategories.findIndex((name) => name === category.name) >= 0)
84
- this.selectedCategories = this.selectedCategories.filter((name) => name !== category.name);
85
- else if (this.afAllCategories)
86
- this.selectedCategories = [
87
- ...this.selectedCategories.filter((name) => name !== this.afAllCategoriesText),
88
- category.name
89
- ];
90
- else
91
- this.selectedCategories = [...this.selectedCategories, category.name];
92
- this.afOnSelectedCategoryChange.emit(this.selectedCategories);
93
- }
94
- }
95
- toggleCollapsed() {
96
- this.collapsed = !this.collapsed;
97
- }
98
- toggleHidden() {
99
- this.afHideToggle = !this.toggleHidden;
100
- }
101
- render() {
102
- return (index.h(index.Host, { key: 'ec8e3838a29d5f77462b0c7e8e5ddb510eac2bc9' }, index.h("div", { key: '085c916fa62b00636a188ac8b225af8f370c25ff', class: {
103
- 'digi-form-category-filter': true
104
- } }, this.displayCategories().map((category) => (index.h("digi-button", { class: {
105
- 'digi-form-category-filter--category': true,
106
- 'digi-form-category-filter--category--not-selected': !this.selectedCategories.includes(category.name)
107
- }, afVariation: "primary", afAriaPressed: this.selectedCategories.includes(category.name), onAfOnClick: () => {
108
- this.toggleCategory(category);
109
- } }, typeof category.hits === 'undefined' && category.name, typeof category.hits !== 'undefined' && (index.h("span", null, category.name, ' ', index.h("span", { class: "digi-form-category-filter--category--thin-text" }, "(", category.hits, ")")))))), this.afHideToggle === false &&
110
- this.afCategories.length > this.afVisibleCollapsed && (index.h("div", { key: '2c8459757e7940cc6840132d6bf58d765ad3bef1' }, index.h("digi-button", { key: 'cf326f63112f4301fafd93bbbe0ae6a604ce6790', afVariation: "function", afAriaExpanded: !this.collapsed, onClick: () => {
111
- this.toggleCollapsed();
112
- } }, this.collapsed ? 'Visa alla' : 'Visa färre', this.collapsed ? (index.h("digi-icon-plus", { slot: "icon", "aria-hidden": "true" })) : (index.h("digi-icon-minus", { slot: "icon", "aria-hidden": "true" }))))))));
113
- }
114
- get hostElement() { return index.getElement(this); }
115
- static get watchers() { return {
116
- "afCategories": ["afCategoriesChangeHandler"]
117
- }; }
118
- };
119
- FormCategoryFilter.style = DigiFormCategoryFilterStyle0;
120
-
121
- exports.digi_form_category_filter = FormCategoryFilter;