@designsystem-se/af 32.3.1-beta.1 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-calendar-datepicker.js +3 -4
  3. package/components/digi-calendar-week-view.js +1 -1
  4. package/components/digi-calendar.js +1 -1
  5. package/components/digi-card.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 +9 -7
  9. package/components/digi-context-menu.js +151 -52
  10. package/components/digi-dialog.js +3 -4
  11. package/components/digi-expandable-accordion.js +2 -3
  12. package/components/digi-expandable-faq-item.js +1 -1
  13. package/components/digi-footer.js +2 -3
  14. package/components/digi-form-error-list.js +3 -4
  15. package/components/digi-form-file-upload.js +1 -1
  16. package/components/digi-form-receipt.js +1 -2
  17. package/components/digi-form-select-filter.js +2 -3
  18. package/components/digi-header-avatar.js +2 -2
  19. package/components/digi-header-navigation.js +3 -4
  20. package/components/digi-header.js +3 -4
  21. package/components/digi-info-card-multi.js +4 -4
  22. package/components/digi-info-card.js +1 -1
  23. package/components/digi-list.js +1 -1
  24. package/components/digi-loader-spinner.js +1 -1
  25. package/components/digi-media-image.js +1 -1
  26. package/components/digi-navigation-context-menu.js +1 -1
  27. package/components/digi-navigation-pagination.js +9 -10
  28. package/components/digi-navigation-sidebar-button.js +1 -1
  29. package/components/digi-navigation-sidebar.js +4 -4
  30. package/components/digi-navigation-vertical-menu-item.js +6 -6
  31. package/components/digi-navigation-vertical-menu.js +1 -1
  32. package/components/digi-notification-alert.js +1 -1
  33. package/components/digi-notification-error-page.js +7 -15
  34. package/components/digi-progress-circle.js +12 -8
  35. package/components/digi-progress-indicator.js +7 -3
  36. package/components/digi-progress-list-item.js +5 -5
  37. package/components/digi-progress-list.js +2 -2
  38. package/components/digi-progressbar.js +2 -2
  39. package/components/digi-quote.js +3 -3
  40. package/components/digi-table.js +1 -1
  41. package/components/digi-tablist-panel.js +2 -2
  42. package/components/digi-tablist.js +5 -5
  43. package/components/digi-tag-media.js +1 -1
  44. package/components/digi-tag.js +5 -3
  45. package/components/digi-tools-feedback-banner.js +1 -1
  46. package/components/digi-tools-feedback-rating.js +3 -3
  47. package/components/digi-tools-feedback.js +2 -3
  48. package/components/digi-tools-languagepicker.js +5 -5
  49. package/components/digi-typography-heading-jumbo.js +6 -2
  50. package/components/digi-typography-meta.js +37 -1
  51. package/components/digi-typography-preamble.js +1 -1
  52. package/components/digi-typography-time.js +1 -1
  53. package/components/digi-typography.js +1 -1
  54. package/components/digi-util-breakpoint-observer.js +1 -1
  55. package/components/digi-util-detect-click-outside.js +1 -1
  56. package/components/digi-util-detect-focus-outside.js +1 -1
  57. package/components/digi-util-intersection-observer.js +1 -1
  58. package/components/digi-util-keydown-handler.js +1 -1
  59. package/components/digi-util-keyup-handler.js +1 -1
  60. package/components/digi-util-resize-observer.js +1 -1
  61. package/components/index.d.ts +0 -6
  62. package/components/index.js +1 -5
  63. package/components/{p-d7211fec.js → p-2b4c472b.js} +1 -11
  64. package/components/{p-1ee02c0b.js → p-38b0d0c7.js} +1 -2
  65. package/components/{p-e87d124f.js → p-4b8bc232.js} +1 -1
  66. package/components/{p-ed121585.js → p-50634baa.js} +1 -1
  67. package/components/{p-83e38978.js → p-5e487ed4.js} +1 -1
  68. package/components/{p-dfa85da0.js → p-8a1aaa8e.js} +6 -6
  69. package/components/{p-809fd710.js → p-918e9955.js} +2 -2
  70. package/components/{p-23d4119d.js → p-950b05b1.js} +1 -1
  71. package/components/{p-f034b64e.js → p-aa59e5c0.js} +1 -1
  72. package/components/{p-af7ab137.js → p-d08de295.js} +1 -1
  73. package/components/{p-648cd0b2.js → p-ef49c2f8.js} +4 -5
  74. package/components/{p-2bfb4163.js → p-f0bdf339.js} +1 -1
  75. package/components/{p-71554a36.js → p-f3c5a743.js} +1 -1
  76. package/custom-elements.json +11 -120
  77. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  78. package/dist/cjs/digi-button_6.cjs.entry.js +246 -2301
  79. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +3 -4
  80. package/dist/cjs/digi-chart-line.cjs.entry.js +2314 -0
  81. package/dist/cjs/digi-code-block_3.cjs.entry.js +3 -4
  82. package/dist/cjs/digi-code-example.cjs.entry.js +7 -5
  83. package/dist/cjs/digi-dialog.cjs.entry.js +3 -4
  84. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +3 -4
  85. package/dist/cjs/digi-footer.cjs.entry.js +3 -4
  86. package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -4
  87. package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -4
  88. package/dist/cjs/digi-form-select-filter.cjs.entry.js +3 -4
  89. package/dist/cjs/digi-header-navigation.cjs.entry.js +3 -4
  90. package/dist/cjs/digi-header.cjs.entry.js +4 -5
  91. package/dist/cjs/digi-icon-chart_2.cjs.entry.js +53 -0
  92. package/dist/cjs/digi-icon-language-outline_4.cjs.entry.js +5 -5
  93. package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
  94. package/dist/cjs/digi-layout-block.cjs.entry.js +47 -0
  95. package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
  96. package/dist/cjs/digi-logo_2.cjs.entry.js +1 -1
  97. package/dist/cjs/digi-media-image_2.cjs.entry.js +1 -1
  98. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +9 -10
  99. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
  100. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
  101. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +1 -1
  102. package/dist/cjs/digi-notification-alert.cjs.entry.js +5 -6
  103. package/dist/cjs/digi-notification-error-page.cjs.entry.js +7 -15
  104. package/dist/cjs/digi-progress-circle.cjs.entry.js +12 -8
  105. package/dist/cjs/digi-progress-indicator.cjs.entry.js +7 -3
  106. package/dist/cjs/digi-progress-list-item.cjs.entry.js +5 -5
  107. package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
  108. package/dist/cjs/digi-progressbar.cjs.entry.js +2 -2
  109. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  110. package/dist/cjs/digi-table.cjs.entry.js +1 -1
  111. package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
  112. package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
  113. package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
  114. package/dist/cjs/digi-tag.cjs.entry.js +3 -2
  115. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
  116. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +2 -2
  117. package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -5
  118. package/dist/cjs/digi-tools-languagepicker.cjs.entry.js +3 -3
  119. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +6 -2
  120. package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
  121. package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
  122. package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
  123. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +1 -1
  124. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
  125. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
  126. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +1 -1
  127. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
  128. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
  129. package/dist/cjs/index-cfa8e9be.js +18 -30
  130. package/dist/cjs/index.cjs.js +22 -35
  131. package/dist/cjs/layout-block-container.enum-52ae6994.js +8 -0
  132. package/dist/cjs/loader.cjs.js +1 -1
  133. package/dist/cjs/{tools-feedback-variation.enum-4547e1e3.js → tools-feedback-variation.enum-2ac9956e.js} +0 -10
  134. package/dist/cjs/{layout-container-max-width.enum-7e637f44.js → typography-variation.enum-d7083728.js} +6 -7
  135. package/dist/collection/collection-manifest.json +0 -3
  136. package/dist/collection/components/_code/code-example/code-example.js +7 -5
  137. package/dist/collection/components/_loader/loader-spinner/loader-spinner.css +1 -0
  138. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.css +85 -172
  139. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +190 -62
  140. package/dist/collection/components/_navigation/navigation-context-menu-legacy/navigation-context-menu.js +5 -5
  141. package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
  142. package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
  143. package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
  144. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  145. package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
  146. package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
  147. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
  148. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  149. package/dist/collection/components/_notification/notification-error-page/illustrations/illustrations.js +7 -7
  150. package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
  151. package/dist/collection/components/_progress/progress-circle/progress-circle.js +12 -8
  152. package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +7 -3
  153. package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
  154. package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
  155. package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
  156. package/dist/collection/components/_quote/quote/quote.js +1 -2
  157. package/dist/collection/components/_table/table/table.js +1 -1
  158. package/dist/collection/components/_tag/tag/tag.css +10 -0
  159. package/dist/collection/components/_tag/tag/tag.js +25 -1
  160. package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
  161. package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
  162. package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
  163. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +2 -2
  164. package/dist/collection/components/_tools/tools-languagepicker/tools-languagepicker.js +4 -4
  165. package/dist/collection/components/_typography/typography/typography.js +1 -1
  166. package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +6 -2
  167. package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
  168. package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
  169. package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
  170. package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
  171. package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
  172. package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
  173. package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
  174. package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
  175. package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
  176. package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
  177. package/dist/collection/design-tokens/components/_navigation-context-menu.variables.scss +3 -47
  178. package/dist/collection/design-tokens/css/variables.css +3 -0
  179. package/dist/collection/design-tokens/scss/variables.scss +3 -0
  180. package/dist/collection/design-tokens/styleguide/web.json +57 -0
  181. package/dist/collection/design-tokens/styleguide/web.scss +3 -0
  182. package/dist/collection/enums.js +0 -2
  183. package/dist/collection/interfaces.js +0 -1
  184. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-context-menu.variables.scss +41 -45
  185. package/dist/digi-arbetsformedlingen/design-tokens/css/variables.css +3 -0
  186. package/dist/digi-arbetsformedlingen/design-tokens/scss/variables.scss +3 -0
  187. package/dist/digi-arbetsformedlingen/design-tokens/styleguide/web.json +57 -0
  188. package/dist/digi-arbetsformedlingen/design-tokens/styleguide/web.scss +3 -0
  189. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  190. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  191. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  192. package/dist/digi-arbetsformedlingen/p-005c72ca.entry.js +1 -0
  193. package/dist/digi-arbetsformedlingen/p-028dd0d4.js +1 -0
  194. package/dist/digi-arbetsformedlingen/{p-5a7a3e3d.entry.js → p-04ca1ba6.entry.js} +1 -1
  195. package/dist/digi-arbetsformedlingen/p-0551a242.entry.js +1 -0
  196. package/dist/digi-arbetsformedlingen/{p-a64f6920.entry.js → p-0f485fa7.entry.js} +1 -1
  197. package/dist/digi-arbetsformedlingen/p-14368210.entry.js +1 -0
  198. package/dist/digi-arbetsformedlingen/p-16aa5a85.entry.js +1 -0
  199. package/dist/digi-arbetsformedlingen/{p-b1759898.entry.js → p-1d3f7336.entry.js} +1 -1
  200. package/dist/digi-arbetsformedlingen/{p-a4727186.entry.js → p-20a65f1c.entry.js} +1 -1
  201. package/dist/digi-arbetsformedlingen/p-2af9b440.js +1 -0
  202. package/dist/digi-arbetsformedlingen/{p-d3ad14b2.entry.js → p-2f79bfcc.entry.js} +1 -1
  203. package/dist/digi-arbetsformedlingen/{p-11a56b7a.entry.js → p-346297b2.entry.js} +1 -1
  204. package/dist/digi-arbetsformedlingen/{p-ca626e5c.entry.js → p-349f73d9.entry.js} +1 -1
  205. package/dist/digi-arbetsformedlingen/{p-6b57023d.entry.js → p-3ee7d913.entry.js} +1 -1
  206. package/dist/digi-arbetsformedlingen/{p-816ed242.entry.js → p-3fde4aec.entry.js} +1 -1
  207. package/dist/digi-arbetsformedlingen/p-40a81c4a.entry.js +1 -0
  208. package/dist/digi-arbetsformedlingen/{p-edda9cea.entry.js → p-419d99f0.entry.js} +1 -1
  209. package/dist/digi-arbetsformedlingen/p-4638e6b1.entry.js +1 -0
  210. package/dist/digi-arbetsformedlingen/{p-c2bec230.entry.js → p-48664690.entry.js} +1 -1
  211. package/dist/digi-arbetsformedlingen/p-4fa41b6b.entry.js +1 -0
  212. package/dist/digi-arbetsformedlingen/{p-bbad90a7.entry.js → p-57665401.entry.js} +1 -1
  213. package/dist/digi-arbetsformedlingen/p-59d1de44.entry.js +1 -0
  214. package/dist/digi-arbetsformedlingen/p-64609e83.entry.js +1 -0
  215. package/dist/digi-arbetsformedlingen/{p-61e92fa9.entry.js → p-66b0d3c6.entry.js} +1 -1
  216. package/dist/digi-arbetsformedlingen/{p-0a6f6df3.entry.js → p-68886e60.entry.js} +1 -1
  217. package/dist/digi-arbetsformedlingen/{p-699e385a.entry.js → p-7bbee718.entry.js} +1 -1
  218. package/dist/digi-arbetsformedlingen/p-7f4f58d5.entry.js +1 -0
  219. package/dist/digi-arbetsformedlingen/p-81cac8dd.entry.js +1 -0
  220. package/dist/digi-arbetsformedlingen/p-860e37c2.entry.js +1 -0
  221. package/dist/digi-arbetsformedlingen/p-8f42a48e.entry.js +1 -0
  222. package/dist/digi-arbetsformedlingen/{p-9a53b638.entry.js → p-9657af86.entry.js} +1 -1
  223. package/dist/digi-arbetsformedlingen/{p-9d5f4dd0.entry.js → p-966ea804.entry.js} +1 -1
  224. package/dist/digi-arbetsformedlingen/p-9a06e85b.entry.js +1 -0
  225. package/dist/digi-arbetsformedlingen/{p-cccdb2c8.entry.js → p-9d8d64fa.entry.js} +1 -1
  226. package/dist/digi-arbetsformedlingen/{p-caf79640.entry.js → p-a6fcc0f7.entry.js} +1 -1
  227. package/dist/digi-arbetsformedlingen/p-a7970fe3.entry.js +1 -0
  228. package/dist/digi-arbetsformedlingen/{p-eb7ca274.entry.js → p-affe6eac.entry.js} +1 -1
  229. package/dist/digi-arbetsformedlingen/p-b77ea3a1.entry.js +1 -0
  230. package/dist/digi-arbetsformedlingen/{p-70d542da.entry.js → p-ba740002.entry.js} +1 -1
  231. package/dist/digi-arbetsformedlingen/p-bad82d8a.entry.js +1 -0
  232. package/dist/digi-arbetsformedlingen/p-bd56d622.entry.js +1 -0
  233. package/dist/digi-arbetsformedlingen/p-c16371b2.entry.js +1 -0
  234. package/dist/digi-arbetsformedlingen/{p-7b7c092f.entry.js → p-c16e6afe.entry.js} +1 -1
  235. package/dist/digi-arbetsformedlingen/p-c2a5da97.js +1 -0
  236. package/dist/digi-arbetsformedlingen/{p-8fc1143f.js → p-c2ee26cb.js} +1 -1
  237. package/dist/digi-arbetsformedlingen/{p-c750cc28.entry.js → p-d630f2e9.entry.js} +1 -1
  238. package/dist/digi-arbetsformedlingen/{p-9c72fecd.entry.js → p-e07fed59.entry.js} +1 -1
  239. package/dist/digi-arbetsformedlingen/p-e361c7bb.entry.js +1 -0
  240. package/dist/digi-arbetsformedlingen/p-edd43c5d.entry.js +1 -0
  241. package/dist/digi-arbetsformedlingen/p-ee5f2630.entry.js +1 -0
  242. package/dist/digi-arbetsformedlingen/p-eedd8fdb.entry.js +1 -0
  243. package/dist/digi-arbetsformedlingen/{p-305a1547.entry.js → p-f0cdaac5.entry.js} +1 -1
  244. package/dist/digi-arbetsformedlingen/{p-0873a381.entry.js → p-f427db52.entry.js} +1 -1
  245. package/dist/digi-arbetsformedlingen/{p-22beda0f.entry.js → p-f84d9dea.entry.js} +1 -1
  246. package/dist/digi-arbetsformedlingen/p-fa7824e9.entry.js +1 -0
  247. package/dist/digi-arbetsformedlingen/p-fa890d2b.entry.js +1 -0
  248. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  249. package/dist/esm/digi-bar-chart.entry.js +1 -1
  250. package/dist/esm/digi-button_6.entry.js +243 -2298
  251. package/dist/esm/digi-calendar-datepicker.entry.js +3 -4
  252. package/dist/esm/digi-chart-line.entry.js +2310 -0
  253. package/dist/esm/digi-code-block_3.entry.js +3 -4
  254. package/dist/esm/digi-code-example.entry.js +7 -5
  255. package/dist/esm/digi-dialog.entry.js +3 -4
  256. package/dist/esm/digi-expandable-accordion.entry.js +3 -4
  257. package/dist/esm/digi-footer.entry.js +3 -4
  258. package/dist/esm/digi-form-error-list.entry.js +3 -4
  259. package/dist/esm/digi-form-receipt.entry.js +3 -4
  260. package/dist/esm/digi-form-select-filter.entry.js +3 -4
  261. package/dist/esm/digi-header-navigation.entry.js +3 -4
  262. package/dist/esm/digi-header.entry.js +3 -4
  263. package/dist/esm/digi-icon-chart_2.entry.js +48 -0
  264. package/dist/esm/digi-icon-language-outline_4.entry.js +5 -5
  265. package/dist/esm/digi-icon-x.entry.js +26 -0
  266. package/dist/esm/digi-layout-block.entry.js +43 -0
  267. package/dist/esm/digi-loader-spinner.entry.js +1 -1
  268. package/dist/esm/digi-logo_2.entry.js +1 -1
  269. package/dist/esm/digi-media-image_2.entry.js +1 -1
  270. package/dist/esm/digi-navigation-pagination.entry.js +9 -10
  271. package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
  272. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
  273. package/dist/esm/digi-navigation-vertical-menu.entry.js +1 -1
  274. package/dist/esm/digi-notification-alert.entry.js +5 -6
  275. package/dist/esm/digi-notification-error-page.entry.js +7 -15
  276. package/dist/esm/digi-progress-circle.entry.js +12 -8
  277. package/dist/esm/digi-progress-indicator.entry.js +7 -3
  278. package/dist/esm/digi-progress-list-item.entry.js +5 -5
  279. package/dist/esm/digi-progress-list.entry.js +1 -1
  280. package/dist/esm/digi-progressbar.entry.js +2 -2
  281. package/dist/esm/digi-quote.entry.js +1 -1
  282. package/dist/esm/digi-table.entry.js +1 -1
  283. package/dist/esm/digi-tablist-panel.entry.js +2 -2
  284. package/dist/esm/digi-tablist.entry.js +5 -5
  285. package/dist/esm/digi-tag-media.entry.js +2 -2
  286. package/dist/esm/digi-tag.entry.js +3 -2
  287. package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
  288. package/dist/esm/digi-tools-feedback-rating.entry.js +2 -2
  289. package/dist/esm/digi-tools-feedback.entry.js +4 -5
  290. package/dist/esm/digi-tools-languagepicker.entry.js +3 -3
  291. package/dist/esm/digi-typography-heading-jumbo.entry.js +6 -2
  292. package/dist/esm/digi-typography-meta.entry.js +1 -1
  293. package/dist/esm/digi-typography-preamble.entry.js +1 -1
  294. package/dist/esm/digi-typography-time.entry.js +1 -1
  295. package/dist/esm/digi-util-breakpoint-observer.entry.js +1 -1
  296. package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
  297. package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
  298. package/dist/esm/digi-util-keydown-handler.entry.js +1 -1
  299. package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
  300. package/dist/esm/digi-util-resize-observer.entry.js +1 -1
  301. package/dist/esm/index-8e318bb2.js +18 -30
  302. package/dist/esm/index.js +3 -4
  303. package/dist/esm/layout-block-container.enum-29d52ee9.js +8 -0
  304. package/dist/esm/{linear-f59f8318.js → linear-ef018ffb.js} +1 -1
  305. package/dist/esm/loader.js +1 -1
  306. package/dist/esm/{tools-feedback-variation.enum-92d10df2.js → tools-feedback-variation.enum-45abb679.js} +1 -11
  307. package/dist/esm/{layout-container-max-width.enum-c40018ac.js → typography-variation.enum-d9fdbf06.js} +7 -8
  308. package/dist/types/components/_code/code-example/code-example.d.ts +1 -0
  309. package/dist/types/components/_navigation/navigation-context-menu/navigation-context-menu.d.ts +52 -14
  310. package/dist/types/components/_navigation/navigation-context-menu/navigation-context-menu.types.d.ts +7 -3
  311. package/dist/types/components/_progress/progress-circle/progress-circle.d.ts +4 -0
  312. package/dist/types/components/_progress/progress-indicator/progress-indicator.d.ts +4 -0
  313. package/dist/types/components/_quote/quote/quote.d.ts +0 -1
  314. package/dist/types/components/_tag/tag/tag.d.ts +4 -0
  315. package/dist/types/components/_tools/tools-languagepicker/tools-languagepicker.d.ts +1 -1
  316. package/dist/types/components/_typography/typography-heading-jumbo/typography-heading-jumbo.d.ts +4 -0
  317. package/dist/types/components.d.ts +77 -220
  318. package/dist/types/enums.d.ts +0 -2
  319. package/dist/types/interfaces.d.ts +0 -1
  320. package/hydrate/index.js +250 -451
  321. package/hydrate/index.mjs +250 -451
  322. package/package.json +1 -1
  323. package/components/digi-navigation-dropdown.d.ts +0 -11
  324. package/components/digi-navigation-dropdown.js +0 -6
  325. package/components/digi-quote-multi-container.d.ts +0 -11
  326. package/components/digi-quote-multi-container.js +0 -39
  327. package/components/digi-quote-single.d.ts +0 -11
  328. package/components/digi-quote-single.js +0 -63
  329. package/components/p-3f827c1d.js +0 -39
  330. package/components/p-8fa816d6.js +0 -8
  331. package/components/p-e308ef6b.js +0 -221
  332. package/dist/cjs/digi-context-menu.cjs.entry.js +0 -132
  333. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  334. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  335. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  336. package/dist/cjs/digi-navigation-dropdown.cjs.entry.js +0 -188
  337. package/dist/cjs/digi-quote-multi-container.cjs.entry.js +0 -23
  338. package/dist/cjs/digi-quote-single.cjs.entry.js +0 -33
  339. package/dist/cjs/quote-single-variation.enum-53f94dbc.js +0 -8
  340. package/dist/cjs/typography-variation.enum-5b035b3b.js +0 -7
  341. package/dist/collection/components/_navigation/navigation-dropdown/navigation-dropdown.css +0 -319
  342. package/dist/collection/components/_navigation/navigation-dropdown/navigation-dropdown.js +0 -539
  343. package/dist/collection/components/_navigation/navigation-dropdown/navigation-dropdown.types.js +0 -1
  344. package/dist/collection/components/_quote/quote-multi-container/quote-multi-container-heading-level.enum.js +0 -9
  345. package/dist/collection/components/_quote/quote-multi-container/quote-multi-container.css +0 -26
  346. package/dist/collection/components/_quote/quote-multi-container/quote-multi-container.js +0 -86
  347. package/dist/collection/components/_quote/quote-single/quote-single-variation.enum.js +0 -6
  348. package/dist/collection/components/_quote/quote-single/quote.css +0 -324
  349. package/dist/collection/components/_quote/quote-single/quote.js +0 -141
  350. package/dist/collection/design-tokens/components/_quote-quote-multi-container.variables.scss +0 -5
  351. package/dist/collection/design-tokens/components/_quote-single.variables.scss +0 -14
  352. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote-quote-multi-container.variables.scss +0 -5
  353. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote-single.variables.scss +0 -14
  354. package/dist/digi-arbetsformedlingen/p-02646d18.entry.js +0 -1
  355. package/dist/digi-arbetsformedlingen/p-0eac1bee.js +0 -1
  356. package/dist/digi-arbetsformedlingen/p-125dd887.entry.js +0 -1
  357. package/dist/digi-arbetsformedlingen/p-167234fc.entry.js +0 -1
  358. package/dist/digi-arbetsformedlingen/p-195cf497.entry.js +0 -1
  359. package/dist/digi-arbetsformedlingen/p-25faef21.entry.js +0 -1
  360. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  361. package/dist/digi-arbetsformedlingen/p-331e95be.entry.js +0 -1
  362. package/dist/digi-arbetsformedlingen/p-4028ad65.entry.js +0 -1
  363. package/dist/digi-arbetsformedlingen/p-45fe2828.entry.js +0 -1
  364. package/dist/digi-arbetsformedlingen/p-4c6f74fb.entry.js +0 -1
  365. package/dist/digi-arbetsformedlingen/p-4e9b1820.entry.js +0 -1
  366. package/dist/digi-arbetsformedlingen/p-51706444.entry.js +0 -1
  367. package/dist/digi-arbetsformedlingen/p-7cb35359.entry.js +0 -1
  368. package/dist/digi-arbetsformedlingen/p-81e86ac1.entry.js +0 -1
  369. package/dist/digi-arbetsformedlingen/p-848aa358.entry.js +0 -1
  370. package/dist/digi-arbetsformedlingen/p-87c1f5c7.entry.js +0 -1
  371. package/dist/digi-arbetsformedlingen/p-8fa816d6.js +0 -1
  372. package/dist/digi-arbetsformedlingen/p-903b00e6.js +0 -1
  373. package/dist/digi-arbetsformedlingen/p-994395cb.entry.js +0 -1
  374. package/dist/digi-arbetsformedlingen/p-a06dd644.entry.js +0 -1
  375. package/dist/digi-arbetsformedlingen/p-a272c883.entry.js +0 -1
  376. package/dist/digi-arbetsformedlingen/p-a6d806e5.entry.js +0 -1
  377. package/dist/digi-arbetsformedlingen/p-d7fe697e.entry.js +0 -1
  378. package/dist/digi-arbetsformedlingen/p-de4c4238.entry.js +0 -1
  379. package/dist/digi-arbetsformedlingen/p-e092908a.entry.js +0 -1
  380. package/dist/digi-arbetsformedlingen/p-e661462a.entry.js +0 -1
  381. package/dist/digi-arbetsformedlingen/p-e8ae7a8d.entry.js +0 -1
  382. package/dist/digi-arbetsformedlingen/p-f2339f8e.entry.js +0 -1
  383. package/dist/digi-arbetsformedlingen/p-f4c3f47e.entry.js +0 -1
  384. package/dist/digi-arbetsformedlingen/p-fb8ac3de.entry.js +0 -1
  385. package/dist/digi-arbetsformedlingen/p-fc4dc147.entry.js +0 -1
  386. package/dist/esm/digi-context-menu.entry.js +0 -128
  387. package/dist/esm/digi-icon-check.entry.js +0 -26
  388. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  389. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  390. package/dist/esm/digi-navigation-dropdown.entry.js +0 -184
  391. package/dist/esm/digi-quote-multi-container.entry.js +0 -19
  392. package/dist/esm/digi-quote-single.entry.js +0 -29
  393. package/dist/esm/quote-single-variation.enum-be92a9f7.js +0 -8
  394. package/dist/esm/typography-variation.enum-38d1ef90.js +0 -7
  395. package/dist/types/components/_navigation/navigation-dropdown/navigation-dropdown.d.ts +0 -44
  396. package/dist/types/components/_navigation/navigation-dropdown/navigation-dropdown.types.d.ts +0 -18
  397. package/dist/types/components/_quote/quote-multi-container/quote-multi-container-heading-level.enum.d.ts +0 -8
  398. package/dist/types/components/_quote/quote-multi-container/quote-multi-container.d.ts +0 -25
  399. package/dist/types/components/_quote/quote-single/quote-single-variation.enum.d.ts +0 -5
  400. package/dist/types/components/_quote/quote-single/quote.d.ts +0 -40
@@ -15,6 +15,9 @@ function deserializeProp(prop) {
15
15
  export class ContextMenu {
16
16
  constructor() {
17
17
  this.itemRefs = {};
18
+ this.visible = false;
19
+ this.activeItemIdx = undefined;
20
+ this.selectItemIdx = 0;
18
21
  this.afId = randomIdGenerator('digi-context-menu');
19
22
  this.afIcon = undefined;
20
23
  this.afTitle = undefined;
@@ -24,9 +27,6 @@ export class ContextMenu {
24
27
  this.afAriaLabel = undefined;
25
28
  this.afMenuPosition = 'left-bottom';
26
29
  this.afActiveItem = undefined;
27
- this.items = [];
28
- this.visible = false;
29
- this.activeItemIdx = undefined;
30
30
  }
31
31
  clickHandler(e) {
32
32
  const target = e.target;
@@ -43,6 +43,24 @@ export class ContextMenu {
43
43
  this.afBlur.emit();
44
44
  }
45
45
  }
46
+ syncActiveItem() {
47
+ if (this.afActiveItem != null) {
48
+ const menuItems = this.afMenuItems;
49
+ this.activeItemIdx = menuItems.findIndex((item) => item.id.toString() === this.afActiveItem);
50
+ }
51
+ }
52
+ syncItems() {
53
+ this.afMenuItems = deserializeProp(this.afMenuItems);
54
+ }
55
+ componentWillLoad() {
56
+ this.syncItems();
57
+ this.syncActiveItem();
58
+ }
59
+ get digiIcon() {
60
+ if (this.afIcon != null) {
61
+ return `digi-icon-${this.afIcon}`;
62
+ }
63
+ }
46
64
  hideMenu() {
47
65
  this.visible = false;
48
66
  this.afToggleMenu.emit(this.visible);
@@ -51,66 +69,155 @@ export class ContextMenu {
51
69
  this.visible = true;
52
70
  this.afToggleMenu.emit(this.visible);
53
71
  }
54
- handleToggle() {
55
- var _a, _b;
72
+ isLink() {
73
+ if (this.afMenuItems && this.afMenuItems.length > 0) {
74
+ const itemToCheck = this.afMenuItems[0];
75
+ return itemToCheck.type && itemToCheck.type === 'link';
76
+ }
77
+ return false;
78
+ }
79
+ async handleToggle() {
56
80
  if (this.visible) {
57
81
  this.hideMenu();
58
- (_b = (_a = this.buttonRef).focus) === null || _b === void 0 ? void 0 : _b.call(_a);
82
+ this.focusOnButton();
59
83
  }
60
84
  else {
61
85
  this.showMenu();
62
- const idx = this.activeItemIdx || 0;
63
- const item = this.items[idx];
64
- setTimeout(() => this.itemRefs[item.id].focus(), 25);
86
+ if (!this.isLink()) {
87
+ const idx = this.activeItemIdx || 0;
88
+ const item = this.afMenuItems[idx];
89
+ setTimeout(() => this.itemRefs[item.id].focus(), 25);
90
+ }
65
91
  }
66
92
  }
93
+ async focusOnButton() {
94
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
95
+ // @ts-expect-error
96
+ const digiButton = this.buttonRef;
97
+ const button = (await digiButton.afMGetButtonElement());
98
+ button.focus();
99
+ }
67
100
  handleChangeItem(item, idx) {
68
101
  this.activeItemIdx = idx;
69
102
  this.handleToggle();
70
103
  this.afChangeItem.emit({ item, idx });
71
104
  }
72
- handleFocusItem(item, idx) {
73
- this.afFocusItem.emit({ item, idx });
74
- }
75
105
  handleRef(ref, refId, payload) {
76
106
  if (refId === 'item') {
77
107
  this.itemRefs[payload.id] = ref;
78
108
  }
79
109
  }
80
- syncActiveItem() {
81
- if (this.afActiveItem != null) {
82
- this.activeItemIdx = this.items.findIndex((item) => item.id.toString() === this.afActiveItem);
110
+ isActive(idx) {
111
+ if ((this.activeItemIdx !== undefined || this.activeItemIdx !== null) &&
112
+ this.activeItemIdx === idx) {
113
+ return true;
83
114
  }
115
+ return false;
84
116
  }
85
- syncItems() {
86
- this.items = deserializeProp(this.afMenuItems);
117
+ isSelected(idx) {
118
+ return this.selectItemIdx === idx;
87
119
  }
88
- componentWillLoad() {
89
- this.syncItems();
90
- this.syncActiveItem();
120
+ nextIdx(idx) {
121
+ if (idx > this.afMenuItems.length - 1) {
122
+ return 0;
123
+ }
124
+ else if (idx < 0) {
125
+ return this.afMenuItems.length - 1;
126
+ }
127
+ else {
128
+ return idx;
129
+ }
91
130
  }
92
- get digiIcon() {
93
- if (this.afIcon != null) {
94
- return `digi-icon-${this.afIcon}`;
131
+ activateItem(idx) {
132
+ const item = this.afMenuItems[idx];
133
+ this.activeItemIdx = idx;
134
+ this.focusItem(idx);
135
+ this.handleChangeItem(item, idx);
136
+ }
137
+ focusItem(idx) {
138
+ var _a;
139
+ const item = this.afMenuItems[idx];
140
+ this.selectItemIdx = idx;
141
+ (_a = this.itemRefs[item.id]) === null || _a === void 0 ? void 0 : _a.focus();
142
+ this.afFocusItem.emit({ item, idx });
143
+ }
144
+ focusCaptured() {
145
+ const menuItems = this.afMenuItems;
146
+ return menuItems.some((item) => this.itemRefs[item.id] === document.activeElement);
147
+ }
148
+ handleKey(e) {
149
+ if (!this.focusCaptured())
150
+ return;
151
+ switch (e.key) {
152
+ case 'ArrowUp':
153
+ this.focusItem(this.nextIdx(this.selectItemIdx - 1));
154
+ break;
155
+ case 'ArrowDown':
156
+ this.focusItem(this.nextIdx(this.selectItemIdx + 1));
157
+ break;
158
+ case 'Escape':
159
+ this.hideMenu();
160
+ this.focusOnButton();
161
+ break;
162
+ case 'Enter':
163
+ case ' ':
164
+ e.preventDefault();
165
+ e.stopPropagation();
166
+ this.activateItem(this.selectItemIdx);
167
+ break;
168
+ default:
169
+ break;
170
+ }
171
+ }
172
+ handleLinkClick(e, item, idx) {
173
+ if (!item.overrideLink) {
174
+ window.location.assign(item.href);
175
+ }
176
+ else {
177
+ e.preventDefault();
178
+ this.handleChangeItem(item, idx);
95
179
  }
96
180
  }
181
+ renderLink(item, idx) {
182
+ const menuItem = this.afMenuItems[idx];
183
+ return (h("li", { id: `${this.afId}-listbox-item-${item.id}`, key: item.id, class: {
184
+ 'digi-navigation-context-menu__item': true,
185
+ 'digi-navigation-context-menu__item--link': true,
186
+ 'digi-navigation-context-menu__item--active': this.isActive(idx)
187
+ }, 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); } }, h("a", { "aria-label": item.ariaLabel ? item.ariaLabel : null, href: menuItem.href ? menuItem.href : null, onClick: (e) => this.handleLinkClick(e, item, idx) }, item.title)));
188
+ }
189
+ renderDiv(item, idx) {
190
+ return (h("div", { role: "option", id: `${this.afId}-listbox-item-${item.id}`, key: item.id, class: {
191
+ 'digi-navigation-context-menu__item': true,
192
+ 'digi-navigation-context-menu__item--active': this.isActive(idx)
193
+ }, 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); } }, h("div", { class: "content-wrapper" }, h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon", style: {
194
+ visibility: idx === this.activeItemIdx && this.visible
195
+ ? 'visible'
196
+ : 'hidden'
197
+ } }), h("span", { "aria-label": item.ariaLabel ? item.ariaLabel : null }, item.title)), ' '));
198
+ }
97
199
  render() {
98
- return (h(Host, { key: 'b56dc8e0ca38fa90bf6ac4495b9fb583e00b75ed', id: `${this.afId}-identifier` }, h("digi-navigation-dropdown", { key: 'c196f5442e8c21397ea6a5cb284c6f7e96af15e1', afAriaLabelledby: `${this.afId}-trigger`, afItems: this.items, afVisible: this.visible, afMenuPosition: this.afMenuPosition, afDir: this.afDir, afActiveItem: this.activeItemIdx, afLang: this.afLang, onAfRef: (e) => this.handleRef(e.detail.ref, e.detail.id, e.detail.payload), onAfChangeItem: (e) => this.handleChangeItem(e.detail.item, e.detail.idx), onAfFocusItem: (e) => this.handleFocusItem(e.detail.item, e.detail.idx), afRenderItem: (item, idx) => {
99
- const menuItem = this.items[idx];
100
- const Container = menuItem.type === 'link' ? 'a' : 'div';
101
- const containerArgs = menuItem.type === 'link'
102
- ? { href: menuItem.href, tabindex: -1 }
103
- : {};
104
- const showIcon = menuItem.type !== 'link';
105
- return (h(Container, Object.assign({ class: "content-wrapper" }, containerArgs), showIcon && (h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon", style: {
106
- visibility: idx === this.activeItemIdx && this.visible
107
- ? 'visible'
108
- : 'hidden'
109
- } })), h("p", null, item.title)));
110
- } }, h("digi-button", { key: 'b8e22491a441218e7f2d47ff7a64acdbceb8291a', id: `${this.afId}-trigger`, afInputRef: (ref) => (this.buttonRef = ref), onClick: () => this.handleToggle(), afVariation: "function", afAriaControls: this.afId, afAriaExpanded: this.visible, afAriaLabel: this.afAriaLabel || null, class: {
200
+ const menuItems = this.afMenuItems;
201
+ return (h(Host, { key: '8b9ddb1d31e294505f5ae3f226510ba587ecfc04', class: 'digi-navigation-context-menu' }, h("div", { key: 'bcc94554eb00a58409b7cae6a5c3668767ddb26d', id: `${this.afId}-identifier`, class: "digi-navigation-context-menu--id-wrapper" }, h("digi-button", { key: '287e0f1f1afba43c8250185e5ea589aa26c5367c', 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: {
111
202
  'digi-navigation-context-menu__trigger-button': true,
112
203
  'digi-navigation-context-menu--active': this.visible
113
- } }, !!this.afIcon && h(this.digiIcon, { key: '46475907cc2794c222199e447bd875f62899b956', slot: "icon" }), this.afTitle, h("digi-icon-chevron-down", { key: 'bc867a2cfa17c6fedc3651dac5d117df13415535', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })))));
204
+ } }, !!this.afIcon && h(this.digiIcon, { key: 'db42fdd3432f87096be2e5da8b3e05732b0aedf4', slot: "icon" }), this.afTitle, h("digi-icon-chevron-down", { key: '7977ded8cc5a7aa0aec7e2735dc38f95a4d31a06', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })), h("div", { key: '5ff21d52bb2f57c8777bd04bf906730c960bc054', class: "digi-navigation-context-menu__list" }, h("div", { key: 'a8e81ab1b3c371ef501bf96f7c14c11d54a97836', onKeyDown: (e) => {
205
+ this.handleKey(e);
206
+ }, id: `${this.afId}-dropdown`, style: {
207
+ visibility: this.visible ? 'visible' : 'hidden'
208
+ }, role: this.isLink() ? 'list' : 'listbox', "aria-labelledby": `${this.afId}-trigger`, class: {
209
+ 'dropdown-wrapper': true,
210
+ 'dropdown-wrapper--visible': this.visible,
211
+ 'dropdown-wrapper--position-right': this.afMenuPosition === 'right-bottom',
212
+ 'dropdown-wrapper--position-center': this.afMenuPosition === 'center-bottom'
213
+ } }, menuItems &&
214
+ menuItems.map((item, idx) => {
215
+ const menuItem = menuItems[idx];
216
+ if (menuItem.type && (menuItem === null || menuItem === void 0 ? void 0 : menuItem.type) === 'link') {
217
+ return this.renderLink(item, idx);
218
+ }
219
+ return this.renderDiv(item, idx);
220
+ }))))));
114
221
  }
115
222
  static get is() { return "digi-context-menu"; }
116
223
  static get originalStyleUrls() {
@@ -136,8 +243,11 @@ export class ContextMenu {
136
243
  "required": false,
137
244
  "optional": false,
138
245
  "docs": {
139
- "tags": [],
140
- "text": ""
246
+ "tags": [{
247
+ "name": "en",
248
+ "text": "Sets a unique Id. If not set, one will be created"
249
+ }],
250
+ "text": "(Frivillig) Om du vill att komponenten ska ha ett unikt ID, kan du skicka in detta h\u00E4r, annars genereras ett automatiskt"
141
251
  },
142
252
  "getter": false,
143
253
  "setter": false,
@@ -154,10 +264,13 @@ export class ContextMenu {
154
264
  "references": {}
155
265
  },
156
266
  "required": false,
157
- "optional": false,
267
+ "optional": true,
158
268
  "docs": {
159
- "tags": [],
160
- "text": ""
269
+ "tags": [{
270
+ "name": "en",
271
+ "text": "Sets which icon that should be shown"
272
+ }],
273
+ "text": "Anv\u00E4nds till att v\u00E4lja ikon som visas, skriv i namnet p\u00E5 ikonen"
161
274
  },
162
275
  "getter": false,
163
276
  "setter": false,
@@ -175,8 +288,11 @@ export class ContextMenu {
175
288
  "required": false,
176
289
  "optional": false,
177
290
  "docs": {
178
- "tags": [],
179
- "text": ""
291
+ "tags": [{
292
+ "name": "en",
293
+ "text": "Sets the title of the button"
294
+ }],
295
+ "text": "S\u00E4tter titeln p\u00E5 knappen"
180
296
  },
181
297
  "getter": false,
182
298
  "setter": false,
@@ -197,11 +313,14 @@ export class ContextMenu {
197
313
  }
198
314
  }
199
315
  },
200
- "required": false,
316
+ "required": true,
201
317
  "optional": false,
202
318
  "docs": {
203
- "tags": [],
204
- "text": ""
319
+ "tags": [{
320
+ "name": "en",
321
+ "text": "Sets the title of the button"
322
+ }],
323
+ "text": "Lista av typen ContextMenuItem som"
205
324
  },
206
325
  "getter": false,
207
326
  "setter": false,
@@ -217,16 +336,19 @@ export class ContextMenu {
217
336
  "references": {
218
337
  "HTMLDir": {
219
338
  "location": "import",
220
- "path": "../navigation-dropdown/navigation-dropdown.types",
221
- "id": "src/components/_navigation/navigation-dropdown/navigation-dropdown.types.ts::HTMLDir"
339
+ "path": "./navigation-context-menu.types",
340
+ "id": "src/components/_navigation/navigation-context-menu/navigation-context-menu.types.ts::HTMLDir"
222
341
  }
223
342
  }
224
343
  },
225
344
  "required": false,
226
345
  "optional": true,
227
346
  "docs": {
228
- "tags": [],
229
- "text": ""
347
+ "tags": [{
348
+ "name": "en",
349
+ "text": "Sets dir-attribute"
350
+ }],
351
+ "text": "S\u00E4tter dir-attributet"
230
352
  },
231
353
  "getter": false,
232
354
  "setter": false,
@@ -244,8 +366,11 @@ export class ContextMenu {
244
366
  "required": false,
245
367
  "optional": true,
246
368
  "docs": {
247
- "tags": [],
248
- "text": ""
369
+ "tags": [{
370
+ "name": "en",
371
+ "text": "Sets lang-attribute"
372
+ }],
373
+ "text": "S\u00E4tter lang-attributet"
249
374
  },
250
375
  "getter": false,
251
376
  "setter": false,
@@ -261,10 +386,13 @@ export class ContextMenu {
261
386
  "references": {}
262
387
  },
263
388
  "required": false,
264
- "optional": false,
389
+ "optional": true,
265
390
  "docs": {
266
- "tags": [],
267
- "text": ""
391
+ "tags": [{
392
+ "name": "en",
393
+ "text": "Sets aria-label on expandable button"
394
+ }],
395
+ "text": "S\u00E4tter aria-label p\u00E5 expanderbar knapp"
268
396
  },
269
397
  "getter": false,
270
398
  "setter": false,
@@ -275,13 +403,13 @@ export class ContextMenu {
275
403
  "type": "string",
276
404
  "mutable": false,
277
405
  "complexType": {
278
- "original": "RelativePosition",
406
+ "original": "ContextMenuPosition",
279
407
  "resolved": "\"center-bottom\" | \"left-bottom\" | \"right-bottom\"",
280
408
  "references": {
281
- "RelativePosition": {
409
+ "ContextMenuPosition": {
282
410
  "location": "import",
283
- "path": "../navigation-dropdown/navigation-dropdown.types",
284
- "id": "src/components/_navigation/navigation-dropdown/navigation-dropdown.types.ts::RelativePosition"
411
+ "path": "./navigation-context-menu.types",
412
+ "id": "src/components/_navigation/navigation-context-menu/navigation-context-menu.types.ts::ContextMenuPosition"
285
413
  }
286
414
  }
287
415
  },
@@ -332,9 +460,9 @@ export class ContextMenu {
332
460
  }
333
461
  static get states() {
334
462
  return {
335
- "items": {},
336
463
  "visible": {},
337
- "activeItemIdx": {}
464
+ "activeItemIdx": {},
465
+ "selectItemIdx": {}
338
466
  };
339
467
  }
340
468
  static get events() {
@@ -228,13 +228,13 @@ export class NavigationContextMenu {
228
228
  };
229
229
  }
230
230
  render() {
231
- return (h("div", { key: 'd065b8e2dd16892fa6f69c5f80cf494225bda71d', class: Object.assign({ 'digi-navigation-context-menu': true }, this.cssModifiers), id: `${this.afId}-identifier` }, h("digi-util-keydown-handler", { key: '0382e43c3573cd51ce929efeef64f3cda74ef5b7', onAfOnEsc: () => this.setInactive(true) }, h("digi-button", { key: '2538eda16fb9d994722b44d9832264834269ebb8', ref: (el) => (this._toggleButton = el), onClick: (e) => this.toggleMenu(e), id: `${this.afId}-trigger`, "af-variation": "function", "af-aria-controls": this.afId, "af-aria-expanded": this.isActive ? 'true' : 'false', class: {
231
+ return (h("div", { key: 'c807f0ab3459be7e91d946e61293295181bcd80c', class: Object.assign({ 'digi-navigation-context-menu': true }, this.cssModifiers), id: `${this.afId}-identifier` }, h("digi-util-keydown-handler", { key: 'ff38f5fb09e9bdcf47d1c14385f9d6863e6f1d9f', onAfOnEsc: () => this.setInactive(true) }, h("digi-button", { key: '440a855733e0b2f6ff0c9729141eefa2e9a8b688', ref: (el) => (this._toggleButton = el), onClick: (e) => this.toggleMenu(e), id: `${this.afId}-trigger`, "af-variation": "function", "af-aria-controls": this.afId, "af-aria-expanded": this.isActive ? 'true' : 'false', class: {
232
232
  'digi-navigation-context-menu__trigger-button': true,
233
233
  'digi-navigation-context-menu--active': this.isActive
234
- } }, !!this.afIcon && h(this.digiIcon, { key: '44a48c69c26a975337451f571ade3d9ea1074424', slot: "icon" }), this.afText, h("digi-icon-chevron-down", { key: '74266793b220464592f3656c38bd0d9038036818', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })), h("div", { key: '40195409c29b584f26d34cfc5ebcebd07f4c20f7', class: {
234
+ } }, !!this.afIcon && h(this.digiIcon, { key: 'e36465dff1c19c4854982849be74c0075fe418b5', slot: "icon" }), this.afText, h("digi-icon-chevron-down", { key: 'f32eab5d3b948ceb36f933aa578d7f8be8deb171', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })), h("div", { key: '89b8b4d23790d590bcac9f1ab0992448a4300ebb', class: {
235
235
  'digi-navigation-context-menu__content': true,
236
236
  'digi-navigation-context-menu__content--hidden': !this.isActive
237
- } }, h("digi-util-keydown-handler", { key: 'aa80e2083933f767377acc7b612f37823a7ee7af', onAfOnHome: (e) => this.homeHandler(e), onAfOnEnd: (e) => this.endHandler(e), onAfOnUp: (e) => this.upHandler(e), onAfOnDown: (e) => this.downHandler(e), onAfOnTab: () => this.setInactive(), onAfOnShiftTab: () => this.setInactive() }, h("ul", { key: '569c4e778a95272898edf0a0029b4f1c4b2bdb0a', id: this.afId, class: {
237
+ } }, h("digi-util-keydown-handler", { key: '5a0f489027f45983db0c8a56bf0894636874f53c', onAfOnHome: (e) => this.homeHandler(e), onAfOnEnd: (e) => this.endHandler(e), onAfOnUp: (e) => this.upHandler(e), onAfOnDown: (e) => this.downHandler(e), onAfOnTab: () => this.setInactive(), onAfOnShiftTab: () => this.setInactive() }, h("ul", { key: '117b0505fb7b85f60f325af7e0ea72a15a9ca827', id: this.afId, class: {
238
238
  'digi-navigation-context-menu__items': true,
239
239
  'digi-navigation-context-menu__items--bordered': this.listItems.length > 4
240
240
  }, role: "menu", "aria-describedby": `${this.afId}-trigger` }, this.listItems.map((item) => {
@@ -245,9 +245,9 @@ export class NavigationContextMenu {
245
245
  'digi-navigation-context-menu__item--selected': Number(item.index) ===
246
246
  Number(this.selectedListItemIndex)
247
247
  }, key: item.index, "data-key": item.index, dir: item.dir }, this.showCheckIcon(item.index, item.type) && (h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon" })), item.type === 'button' && (h("digi-button", { "af-tabindex": "-1", afRole: "menuitemradio", "data-type": item.type, "data-value": item.value, class: "digi-navigation-context-menu__button", afDir: item.dir, afLang: item.lang, onClick: (e) => this.itemClickHandler(e, true), afAriaChecked: this.showCheckIcon(item.index, item.type) }, item.text)), item.type === 'link' && (h("a", { tabindex: "-1", role: "menuitem", class: "digi-navigation-context-menu__link", href: item.href, "data-type": item.type, onClick: (e) => this.itemClickHandler(e), dir: item.dir, lang: item.lang }, item.text))));
248
- }))))), h("digi-util-mutation-observer", { key: 'ae2baa14644facaeddf6c86b110a15d116ca5ee0', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: this.debounce(() => {
248
+ }))))), h("digi-util-mutation-observer", { key: 'fadd9063b8c46ce6d44dc51e7deb85bbdadabf23', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: this.debounce(() => {
249
249
  this.generateListItems(this._observer.children);
250
- }) }, h("slot", { key: '19c51afd9b03b72f18d71c31a5c993abe6eef84c' }))));
250
+ }) }, h("slot", { key: '65921a6880190a8fde38409994bae985511c12ba' }))));
251
251
  }
252
252
  static get is() { return "digi-navigation-context-menu"; }
253
253
  static get encapsulation() { return "scoped"; }
@@ -124,15 +124,15 @@ export class NavigationPagination {
124
124
  }
125
125
  }
126
126
  render() {
127
- return (h("div", { key: '1cd6e56aa20351f03649d0b91781c2804ed88041', class: "digi-navigation-pagination" }, h("digi-util-resize-observer", { key: '0beef37b035b0ab5cd4fc9cebe1cbf6934571e83', onAfOnChange: (e) => {
127
+ return (h("div", { key: '78a0c9b0111a713414b6054516ca77e1ccbeb005', class: "digi-navigation-pagination" }, h("digi-util-resize-observer", { key: '1041fa4a1646b2fd15b2f1c727e9a660d2c315ec', onAfOnChange: (e) => {
128
128
  this.handleResizeObserver(e);
129
- } }), h("span", { key: '579540c5d47c61dec104bf85ae3c1918f135d163', id: `${this.afId}-aria-label`, "aria-hidden": "true", class: "digi-navigation-pagination__aria-label" }, "Paginering"), h("nav", { key: '1e49e11840682a250fda2c8d1cf9af153f854cf1', "aria-labelledby": this.labelledby(), class: `digi-navigation-pagination__pagination ${this.twoRows ? 'digi-navigation-pagination--two-rows' : ''}` }, h("digi-button", { key: '6e43c967bde5d2c297202126e610b74c9d5f23bf', onClick: () => this.prevPage(), class: {
129
+ } }), h("span", { key: 'ae9b310fe9445e675d0bdfa1a539e5f09144af4b', id: `${this.afId}-aria-label`, "aria-hidden": "true", class: "digi-navigation-pagination__aria-label" }, "Paginering"), h("nav", { key: 'a477d801bdb33ffd80d75d5c6e1620517ce380fc', "aria-labelledby": this.labelledby(), class: `digi-navigation-pagination__pagination ${this.twoRows ? 'digi-navigation-pagination--two-rows' : ''}` }, h("digi-button", { key: '6d484990a96b9922f06e9ec11b948755ae308b3c', onClick: () => this.prevPage(), class: {
130
130
  'digi-navigation-pagination__button digi-navigation-pagination__button--previous': true,
131
131
  'digi-navigation-pagination__button--hidden': this.currentPage === 1
132
- }, afVariation: "secondary", afAriaLabel: "F\u00F6reg\u00E5ende" }, h("digi-icon-chevron-left", { key: '760a8c4115649ab0428239979950fbe957559dd5', slot: "icon" }), h("span", { key: 'eb63a8fd9aa51ec3fadec8fe623c1bd8031b438e' }, "F\u00F6reg\u00E5ende")), h("digi-button", { key: '7f40d440358b9c10585a48b96861f12bd8e3099f', onClick: () => this.nextPage(), class: {
132
+ }, afVariation: "secondary", afAriaLabel: "F\u00F6reg\u00E5ende" }, h("digi-icon-chevron-left", { key: 'a36537d8d5f333778d18be1d8616cd7a65bee6e7', slot: "icon" }), h("span", { key: '03290c16634c64d353378e062bc766e98b2e3044' }, "F\u00F6reg\u00E5ende")), h("digi-button", { key: '10c78fa592a81dc7cf647c1a5fd2c3d643ff2b89', onClick: () => this.nextPage(), class: {
133
133
  'digi-navigation-pagination__button digi-navigation-pagination__button--next': true,
134
134
  'digi-navigation-pagination__button--hidden': this.currentPage === this.afTotalPages
135
- }, afVariation: "secondary", afAriaLabel: "N\u00E4sta" }, h("digi-icon-chevron-right", { key: 'c1cb9100b5e909f0549e03c1fc4b95fd734f1030', slot: "icon-secondary" }), h("span", { key: '336ee5118de2901e4d11bb6305b6f0735a745dde' }, "N\u00E4sta")), h("div", { key: '43d78e83ae0f0cceb81ec9c0c6641cb5f39212d8', class: "digi-navigation-pagination__pages" }, h("ol", { key: '03278ed5eabe0bf35b0b4d126c09422d26831d37', class: "digi-navigation-pagination__page-list" }, this.currentInterval.map((pageValue) => {
135
+ }, afVariation: "secondary", afAriaLabel: "N\u00E4sta" }, h("digi-icon-chevron-right", { key: 'fe6384ea7c761d2ed8b98b973587a73db49d25cc', slot: "icon-secondary" }), h("span", { key: '359b1452f66b801192c0870c70673e3ea60d04fe' }, "N\u00E4sta")), h("div", { key: '9dbc2f31e802dfb49cd5b0ee42a39c72c46f557e', class: "digi-navigation-pagination__pages" }, h("ol", { key: '85e87ec458c7d48ea79f7cea88048bf1f1762fe2', class: "digi-navigation-pagination__page-list" }, this.currentInterval.map((pageValue) => {
136
136
  const page = isNaN(pageValue)
137
137
  ? parseInt(pageValue.replace('…', ''))
138
138
  : pageValue;
@@ -143,10 +143,10 @@ export class NavigationPagination {
143
143
  }, afVariation: this.currentPage === page
144
144
  ? ButtonVariation.PRIMARY
145
145
  : ButtonVariation.SECONDARY }, h("span", { class: `digi-navigation-pagination__page-text` }, page))));
146
- })))), this.afTotalResults > 0 && (h("div", { key: '924f0639488c1e36f5198f37f1f249ccbeba3031', class: {
146
+ })))), this.afTotalResults > 0 && (h("div", { key: '788a812309eb4f14ff76390f644e11820d420a5a', class: {
147
147
  'digi-navigation-pagination__result': true,
148
148
  'digi-navigation-pagination__result--pages': this.afTotalPages > 1
149
- }, "aria-hidden": this.afTotalPages > 1 ? 'true' : 'false', id: `${this.afId}-result` }, h("digi-typography", { key: 'c29398339e79724ad67ce3c73d7ad0bc1d6fa826' }, h("span", { key: 'e6bfb1a2e05f4845cc4dceeb2f32f59b403f1820', id: `${this.afId}-result-show` }, "Visar "), h("strong", { key: '19cc2e4debc9e29d2b734582fd8e6a1586a43279', id: `${this.afId}-result-current` }, this.afCurrentResultStart, "-", this.afCurrentResultEnd), h("span", { key: 'ce55a11fdf1b1cf5776abb118af998d370a98a33', id: `${this.afId}-result-of` }, " av "), h("strong", { key: 'fe6eff60da1ae09d338a090b7069ef93d229da31', id: `${this.afId}-result-total` }, this.afTotalResults), this.afResultName && (h("span", { key: '03a46bbce9c6c0f1cf454bb511124bb29170aa25', id: `${this.afId}-result-name` }, ` ${this.afResultName}`)))))));
149
+ }, "aria-hidden": this.afTotalPages > 1 ? 'true' : 'false', id: `${this.afId}-result` }, h("digi-typography", { key: 'a48519e08c288a011d8f6a34606d650037aac21c' }, h("span", { key: '94205b0d38dd6d2cb980a9e78c9778f4d9a56bcc', id: `${this.afId}-result-show` }, "Visar "), h("strong", { key: '567b3490941c533fbda1b1463b55e4472779f13f', id: `${this.afId}-result-current` }, this.afCurrentResultStart, "-", this.afCurrentResultEnd), h("span", { key: '9189447acda031c0d6864dec369a78099c6f064a', id: `${this.afId}-result-of` }, " av "), h("strong", { key: '5aa4106a61c5bdd3c77033442b9a932b5d762bd0', id: `${this.afId}-result-total` }, this.afTotalResults), this.afResultName && (h("span", { key: 'f665e8c988854f35284242d48ee30923c4c421e2', id: `${this.afId}-result-name` }, ` ${this.afResultName}`)))))));
150
150
  }
151
151
  static get is() { return "digi-navigation-pagination"; }
152
152
  static get encapsulation() { return "scoped"; }
@@ -278,7 +278,7 @@ export class NavigationSidebar {
278
278
  };
279
279
  }
280
280
  render() {
281
- return (h(Host, { key: '417f349e0c426171cf5ece707c7676d6617727cf' }, h("digi-util-breakpoint-observer", { key: 'a70dfd0073ac0dae26fca5755e1be82497cffc27' }, h("digi-util-keydown-handler", { key: '35ba7fb3fc233e1de5ada527708ac98f87c78387', onAfOnEsc: (e) => this.escHandler(e), onAfOnTab: (e) => this.tabHandler(e), onAfOnShiftTab: (e) => this.shiftHandler(e) }, h("div", { key: '67daf7df0de6d73ea57c55524effb800a43db15d', class: "digi-navigation-sidebar", "aria-hidden": !this.afActive ? 'true' : 'false' }, h("div", { key: '80c78bfd00fc2f9c95fa999b3f6ab73c85f9c80f', "aria-hidden": "true", class: Object.assign({ 'digi-navigation-sidebar__backdrop': true }, this.cssModifiersBackdrop), onClick: (e) => this.backdropClickHandler(e) }), h("div", { key: 'e126f26ed0d2a6c45cbdfbf0bef5b2c896d1a942', class: Object.assign({ 'digi-navigation-sidebar__wrapper': true }, this.cssModifiers) }, h("div", { key: 'c751ef62e67ed35b9a8ffa61edff1f35f6b0f52b', class: "digi-navigation-sidebar__inner", ref: (el) => {
281
+ return (h(Host, { key: '5626465a5b84eab9eeb95d78922990ed7e12d5e2' }, h("digi-util-breakpoint-observer", { key: '04a1bb4d90251f028d5486c2606f8b56fb9be132' }, h("digi-util-keydown-handler", { key: '0623f5974acc30ef8778d26ba9f3913eb4f04dab', onAfOnEsc: (e) => this.escHandler(e), onAfOnTab: (e) => this.tabHandler(e), onAfOnShiftTab: (e) => this.shiftHandler(e) }, h("div", { key: '9fc53cb121f03c4db8c81e3fc165e5b9a270ad5b', class: "digi-navigation-sidebar", "aria-hidden": !this.afActive ? 'true' : 'false' }, h("div", { key: 'c93b854b2c0d971983d22235258b58bbb08a36a2', "aria-hidden": "true", class: Object.assign({ 'digi-navigation-sidebar__backdrop': true }, this.cssModifiersBackdrop), onClick: (e) => this.backdropClickHandler(e) }), h("div", { key: 'd959f2bd96456de3a598447706da62264edb4ba9', class: Object.assign({ 'digi-navigation-sidebar__wrapper': true }, this.cssModifiers) }, h("div", { key: '7bf5238552a08738c449a3f4deb5f4b38d43c5d0', class: "digi-navigation-sidebar__inner", ref: (el) => {
282
282
  this._wrapper = el;
283
283
  } }, this.showHeader ? (h("div", { class: {
284
284
  'digi-navigation-sidebar__header': true,
@@ -287,7 +287,7 @@ export class NavigationSidebar {
287
287
  'digi-navigation-sidebar__header--close-button--end': this.afCloseButtonPosition ===
288
288
  NavigationSidebarCloseButtonPosition.END,
289
289
  'digi-navigation-sidebar__header--reversed': !!this.afHeading
290
- } }, this.afHeading && (h(this.afHeadingLevel, { ref: (el) => (this._heading = el), class: "digi-navigation-sidebar__heading", tabindex: "-1" }, this.afHeading)), h("digi-button", { onClick: (e) => this.closeHandler(e), "af-variation": "function", "af-aria-label": this.afCloseButtonAriaLabel, class: "digi-navigation-sidebar__close-button" }, this.afCloseButtonText, h("digi-icon-x", { slot: "icon-secondary" })))) : (h("div", null)), h("div", { key: '060ae91b557d532c868288fbaf3b2469d556acf9', class: "digi-navigation-sidebar__content" }, h("div", { key: '15a9a04be1b24591ce28a73a10e502b30288c029', class: "digi-navigation-sidebar__nav-wrapper" }, h("slot", { key: 'f35a9df504085d627402e85a62b766717880ba6d' })), this._hasFooter && (h("div", { key: '0b67d68328f8f5cdac1a2555ec979232f3a7757e', class: "digi-navigation-sidebar__footer" }, h("slot", { key: '4955eba4bace184d10a1cbb10a4254d730ef8afd', name: "footer" })))))))))));
290
+ } }, this.afHeading && (h(this.afHeadingLevel, { ref: (el) => (this._heading = el), class: "digi-navigation-sidebar__heading", tabindex: "-1" }, this.afHeading)), h("digi-button", { onClick: (e) => this.closeHandler(e), "af-variation": "function", "af-aria-label": this.afCloseButtonAriaLabel, class: "digi-navigation-sidebar__close-button" }, this.afCloseButtonText, h("digi-icon-x", { slot: "icon-secondary" })))) : (h("div", null)), h("div", { key: '01acb6fe480569238677836cbe5cd5afa1afd81d', class: "digi-navigation-sidebar__content" }, h("div", { key: '8a174b798ef129fa9fe9ade633e8f7de8d952ae6', class: "digi-navigation-sidebar__nav-wrapper" }, h("slot", { key: 'f2e86c0bf80b36d1ff6c12a884abc16964c7c001' })), this._hasFooter && (h("div", { key: '4bc6ced8a6333bf05aefe623a5a000b75bd7b010', class: "digi-navigation-sidebar__footer" }, h("slot", { key: 'c04599b4192a266d4f631588b8b329c4ac2e7bef', name: "footer" })))))))))));
291
291
  }
292
292
  static get is() { return "digi-navigation-sidebar"; }
293
293
  static get encapsulation() { return "scoped"; }
@@ -15,7 +15,7 @@ export class NavigationSidebarButton {
15
15
  this.afOnToggle.emit(this.isActive);
16
16
  }
17
17
  render() {
18
- return (h("digi-button", { key: '9304dd2121a3758e9bef83ad45539aabc2390f11', id: this.afId, class: "digi-navigation-sidebar-button", "af-variation": "function", "af-aria-label": this.afAriaLabel, onClick: () => this.toggleHandler() }, this.afText, h("digi-icon-bars", { key: '6d419ac71efe6e91ae71e069f81c3b753e22af26', slot: "icon" })));
18
+ return (h("digi-button", { key: 'f90df32c8458d64c6460066c62c656aa5e75fa63', id: this.afId, class: "digi-navigation-sidebar-button", "af-variation": "function", "af-aria-label": this.afAriaLabel, onClick: () => this.toggleHandler() }, this.afText, h("digi-icon-bars", { key: '35681837fa0887f2614f9cf04621d89b9add6fbe', slot: "icon" })));
19
19
  }
20
20
  static get is() { return "digi-navigation-sidebar-button"; }
21
21
  static get encapsulation() { return "scoped"; }
@@ -221,14 +221,14 @@ export class NavigationTablist {
221
221
  cancelAnimationFrame(this._requestAnimationFrame);
222
222
  }
223
223
  render() {
224
- return (h(Host, { key: '1c4f02178c4ec0a728bc08b9679a9c067d58e64b' }, h("div", { key: '8cd714379823932261c1903babf6cbe6c1df6b95', class: {
224
+ return (h(Host, { key: 'b254db2497b74752d34aa4672ae38ac5a1051024' }, h("div", { key: '4028d5c2ee9954fb5755285dfe88029fec02d516', class: {
225
225
  'digi-tablist': true,
226
226
  'digi-tablist--overflow-scroll': this.afOverflowMode === OverflowMode.Scroll,
227
227
  'digi-tablist--overflow-controls': this.afOverflowMode === OverflowMode.Controls
228
- } }, h("div", { key: 'c263bdf6f3d1904d43e90d7ff92547f6c3665bb0', class: "control-wrapper", style: {
228
+ } }, h("div", { key: '1643904cc02630eb56f711b7decf3157cefab417', class: "control-wrapper", style: {
229
229
  left: '0',
230
230
  visibility: this.showPrev ? 'visible' : 'hidden'
231
- } }, h("button", { key: 'ed97d0d647af8f9cd4c8b93a789f247297df5c6c', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Previous) }, h("digi-icon-chevron-left", { key: 'afcb7a95d3e2ac83b4af9881ddde8163905cc4c8' }))), h("div", { key: '9de31c4f7e188a5105f806cd0a6b1af800bc5b28', role: "tablist", ref: (ref) => (this.tablistRef = ref), "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel }, this.tabs.map((tab) => {
231
+ } }, h("button", { key: 'd71bb576079e486f2bf197c1654e47ef81147455', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Previous) }, h("digi-icon-chevron-left", { key: 'e9d6cfbbb9aa6175d591db7fa67918b266506ed1' }))), h("div", { key: 'ae8db9b6af8276c07fef53b1e376ccf975dd1822', role: "tablist", ref: (ref) => (this.tablistRef = ref), "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel }, this.tabs.map((tab) => {
232
232
  const focusable = tab.id === this.tabs[this.selectedTab].id;
233
233
  const isActive = tab.id === this.tabs[this.activeTab].id;
234
234
  const Icon = `digi-icon-${tab.icon}`;
@@ -237,10 +237,10 @@ export class NavigationTablist {
237
237
  'digi-tab': true,
238
238
  'is-active': isActive
239
239
  }, id: `tab-${tab.id}`, role: "tab", type: "button", tabindex: focusable ? '0' : '-1', "aria-label": tab.ariaLabel, "aria-selected": isActive.toString(), "aria-controls": `tabpanel-${tab.id}`, onClick: () => this.handleTabChange(tab) }, h("div", { class: "content-wrapper" }, h("span", { class: "tablist-content" }, tab.icon && h(Icon, { "aria-hidden": "true" }), h("span", { class: "title", "data-text": tab.title }, tab.title), tab.badgeValue && (h("digi-badge-notification", { afValue: badgeValue, "aria-hidden": "true" }))), h("div", { class: "indicator" }))));
240
- })), h("div", { key: 'c476c9b8713f87bddfc2bf7c22f1f0d32fa6af59', class: "control-wrapper", style: {
240
+ })), h("div", { key: 'fad2b3c44632c2354abef8c4a863654cfb44954a', class: "control-wrapper", style: {
241
241
  right: '0',
242
242
  visibility: this.showNext ? 'visible' : 'hidden'
243
- } }, h("button", { key: '9c4432ddaa1318580ca5dcad137c677444d463dc', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Next) }, h("digi-icon-chevron-right", { key: '2f72fddaa29d6ba0d6956f8fcf1db6b457f8c0fd' })))), h("div", { key: '2294cc2cb2c5947d904340b0daa3a81e6b18f1e1', ref: (ref) => (this.panelsRef = ref), role: "presentation" }, h("slot", { key: '14844d23f7ae2ac24c82fe0d21f5f2f5b423c53e' }))));
243
+ } }, h("button", { key: '75df669a8a5693fb90755daccbb85a09478124cc', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Next) }, h("digi-icon-chevron-right", { key: 'b9d9fe9346d98fda9c97f999a1667645a58e3686' })))), h("div", { key: '03997499224b2d881c755eef234cee9dda4e2828', ref: (ref) => (this.panelsRef = ref), role: "presentation" }, h("slot", { key: '0d983ff976eb7a90b92030b3ef9a33c135aab90a' }))));
244
244
  }
245
245
  static get is() { return "digi-tablist"; }
246
246
  static get encapsulation() { return "scoped"; }
@@ -9,11 +9,11 @@ export class NavigationTabPanel {
9
9
  this.isVisible = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'c6085ad48782a59362e55f1c12cfaf928fc40c47' }, h("div", { key: '23da99f4d99d1a88e1125f127e7de150e6ef0aea', id: `tabpanel-${this.tab}`, role: "tabpanel", "aria-labelledby": `tab-${this.tab}`, style: {
12
+ return (h(Host, { key: '86f137cc5e2a52c59307d8efd21981606c84478e' }, h("div", { key: '642ae49a6b9c667b786acd732d30b5e62f0a629e', id: `tabpanel-${this.tab}`, role: "tabpanel", "aria-labelledby": `tab-${this.tab}`, style: {
13
13
  display: this.isVisible ? 'initial' : 'none',
14
14
  overflowX: 'hidden',
15
15
  overflowY: 'auto'
16
- } }, h("slot", { key: 'a798b98cbc83639854995d446b457f3f39fbf3ab' }))));
16
+ } }, h("slot", { key: '01cdafb4516423f5561fdf8d8128fc7370e4f9ec' }))));
17
17
  }
18
18
  static get is() { return "digi-tablist-panel"; }
19
19
  static get encapsulation() { return "scoped"; }
@@ -168,7 +168,7 @@ export class NavigationVerticalMenu {
168
168
  };
169
169
  }
170
170
  render() {
171
- return (h("nav", { key: 'e7dd90acdde937b4474ffc6d615aa32324e60437', class: Object.assign({ 'digi-navigation-vertical-menu': true }, this.cssModifiers), id: this.afId, "aria-label": this.afAriaLabel }, h("slot", { key: 'e060c8c7455c3db6bd7c18a9ceb52ee0d13cc6ac' })));
171
+ return (h("nav", { key: 'fbfc0638443d0632580c4ae2c53090b4e3f1e5a6', class: Object.assign({ 'digi-navigation-vertical-menu': true }, this.cssModifiers), id: this.afId, "aria-label": this.afAriaLabel }, h("slot", { key: '755eafab9d245bf601b28f3b5b5777920f344156' })));
172
172
  }
173
173
  static get is() { return "digi-navigation-vertical-menu"; }
174
174
  static get encapsulation() { return "scoped"; }
@@ -115,24 +115,24 @@ export class NavigationVerticalMenuItem {
115
115
  }
116
116
  }
117
117
  render() {
118
- return (h("host", { key: '90998bfdc035aafce066f5c449b2baf7b22013a4', class: {
118
+ return (h("host", { key: '2f2359793d28c6ba0716683157208d17efc6251a', class: {
119
119
  'digi-navigation-vertical-menu-item--has-subnav': this.hasSubnav,
120
120
  'digi-navigation-vertical-menu-item--active-subnav': this.activeSubnav
121
- } }, h("div", { key: '5aa15246813f9c19cb5a11b51a3364f9c4c81ecb', class: Object.assign({ 'digi-navigation-vertical-menu-item': true }, this.cssModifiers) }, this.hasSubnav && this.afHref && (h("div", { key: '51a6359d7acd27c3233640291799c507cc9abea4', class: "digi-navigation-vertical-menu-item__inner digi-navigation-vertical-menu-item__inner--combined" }, h("a", { key: '05d2730b34df61b45cb4529ab06724d76135c2bf', id: `${this.afId}-link`, href: this.afHref, class: {
121
+ } }, h("div", { key: 'b3bff02bdaf99cca35c2f4b17fe25b85ea816656', class: Object.assign({ 'digi-navigation-vertical-menu-item': true }, this.cssModifiers) }, this.hasSubnav && this.afHref && (h("div", { key: '7e312eeeec0f3f458208739d95856c32379da7c4', class: "digi-navigation-vertical-menu-item__inner digi-navigation-vertical-menu-item__inner--combined" }, h("a", { key: '1ab2faf7e35bc196d35521b27681a0bc7fc40774', id: `${this.afId}-link`, href: this.afHref, class: {
122
122
  'digi-navigation-vertical-menu-item__link': true,
123
123
  'digi-navigation-vertical-menu-item__has-subnav': true,
124
124
  'digi-navigation-vertical-menu-item__link--active': this.isActive,
125
125
  'digi-navigation-vertical-menu-item__link--expanded': this.activeSubnav
126
- }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '728fcec109a200b1bc88b94aa65a0cd95f7f26ec', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '3f8f7112d0b425241470c5895616217b88e337a2', name: "icon" })), h("span", { key: '16e6a72b7e54fc6a05418882809bfa3a5001d733', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'a71df07d1edcf382b014045c03f4dd3f24308a78', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '333224149090b0511766d970337872255a037c40', name: "badge" }))), h("button", { key: '6225b3945f66c7d8309727972a6c78d5e389e089', type: "button", id: `${this.afId}-toggle-button`, class: {
126
+ }, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'cd3f002b2f815b4408c98e8321d57475e24233de', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '5eadc9a85b08e5b6c543ce935c266d7b9151b4fb', name: "icon" })), h("span", { key: '759938bb34b8af5c480c6dd1e51ef42c6a79d0b8', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '5c81f925ab25ed96e0819d55ee06daad4e47ae9a', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '7b7dfe574e6355428823ce168911c6e03884797d', name: "badge" }))), h("button", { key: 'a0a7e83416fc0797ef8aca5ff0c612731901a03e', type: "button", id: `${this.afId}-toggle-button`, class: {
127
127
  'digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--toggle': true,
128
128
  'digi-navigation-vertical-menu-item__button--active': this.isActive
129
- }, onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', "aria-label": `${this.toggleButtonText} ${this.afText}` }, h("span", { key: '03cfa0a703525883cbed486d55e21f0977d8ba90', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: '8085c37fb501a202dd892e2afd218cd961f23948', class: "icon" }, this.toggleIcon))))), this.hasSubnav && !this.afHref && (h("div", { key: '597bbb20edad42bff6cd072b3df0b4fc7b48ac85', class: "digi-navigation-vertical-menu-item__inner" }, h("button", { key: 'f1930269af1d34f9bb5dad7660e5316a5d55c9a1', id: `${this.afId}-toggle-button`, class: "digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--only-toggle", onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', type: "button" }, h("span", { key: '7b2bc0c07007fd87f5d665f43ce0d543f09e5d71', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '938fc1e8f1aa2c61f96bb280639275cacfa7db91', name: "icon" })), h("span", { key: 'bdd05664a67e04fda3a70553cf07a5a9915eda55', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '053bab38d026bde9be6440a9ef446e761da81fad', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '338867e2b365f9912aec5c81200fcb2a5cfaf2b1', name: "badge" })), h("span", { key: '87275b1021b7257114f2c9d99335821c6de13696', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: 'aa36f5138af4bf36029ddcb4a83a836c5a8bf455' }, this.toggleIcon))))), !this.hasSubnav && (h("div", { key: '63ad76cfdf49432658d6d9cb4dfad57283739136', class: "digi-navigation-vertical-menu-item__inner" }, !this.isActive && (h("a", { key: '6ed218c0c51b2444f5f3c3028554cfb38eee50ec', id: `${this.afId}-link`, href: this.afHref, class: {
129
+ }, onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', "aria-label": `${this.toggleButtonText} ${this.afText}` }, h("span", { key: '9c42984717dee2b6eac09ff50611e63cea6e189b', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: 'acd1fe02c6dcb6113f7849c4b0c29b7e5359da06', class: "icon" }, this.toggleIcon))))), this.hasSubnav && !this.afHref && (h("div", { key: '68c573eb24d342396f932b4474e704a85199dbf6', class: "digi-navigation-vertical-menu-item__inner" }, h("button", { key: '8510c79aa62ba83064b8ea1a464a4c973e96d83c', id: `${this.afId}-toggle-button`, class: "digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--only-toggle", onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', type: "button" }, h("span", { key: '72bc6c4d86ff6c3999d1902adf5dbe516dde8863', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '16e2647a296b7021163381f8fa42c570167696ef', name: "icon" })), h("span", { key: '5c44a355878aaa6f5528ea9b220f25daf80f34f7', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '42f91b15bb3d99347b93bc1c06adf3095f88c153', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'b016a90afff30650ebd88e86c2b52c32be67c209', name: "badge" })), h("span", { key: '35ae3a1d50831d977730d4fb7dea0b5ad90d0466', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: '7b482d5ecab31c6d98e6cdfba5808b74c5dd050c' }, this.toggleIcon))))), !this.hasSubnav && (h("div", { key: '47a5658c6f6e049e4b52c5146130e1ea9f4de598', class: "digi-navigation-vertical-menu-item__inner" }, !this.isActive && (h("a", { key: '934f930abd86abf7014bfd59f737339714c82ff1', id: `${this.afId}-link`, href: this.afHref, class: {
130
130
  'digi-navigation-vertical-menu-item__link': true,
131
131
  'digi-navigation-vertical-menu-item__link--active': this.isActive
132
- }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '8f973191164b025edc6af194a4a51768c4c72e74', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '2f7ab8db20dcd3850af9041eda318a8732e2f79a', name: "icon" })), h("span", { key: 'ef02a477469133bbd5469f1a65d345e8fa445697', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '29f5efe7b0397a2156cf1149b551e3de2356a606', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'f198a9ee32674f68c34b94243d9564c3cc359323', name: "badge" })))), this.isActive && (h("a", { key: 'b23cc5d4ef0c6795412628eedcea7330c6524f40', id: `${this.afId}-link`, href: this.afHref, "aria-current": this.afAriaCurrent, class: {
132
+ }, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'c112a0e8462e04be069feb62a4af311c150cbb18', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '8884a6a300bf211b177354ce34ce7aac8f49d228', name: "icon" })), h("span", { key: 'c26f8fd29f0b4a1d8612a5a576d6410ca930d754', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'ecad78e4ea28f5aaea194e2c84fd0c04b3c331d1', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '734ba82ec71353f514a700921c8fe23d8c6ca2f5', name: "badge" })))), this.isActive && (h("a", { key: 'ccdff17960fe8d78d111435d11626f901c096f11', id: `${this.afId}-link`, href: this.afHref, "aria-current": this.afAriaCurrent, class: {
133
133
  'digi-navigation-vertical-menu-item__link': true,
134
134
  'digi-navigation-vertical-menu-item__link--active': this.isActive
135
- }, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'f8fffcbdc3b3e177dae3457b6997a2fc08e0dbcd', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '44aa12c4095825a0c9de923123778334d3c1a6b3', name: "icon" })), h("span", { key: 'd67c07434dec6d29dead94264bbb1a56b87b6dbc', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '0e627f689ca82f5eeea9f2cc86e1e8841323d55b', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'b70c627546c1358aeeea11ebc9aae3f015cbb160', name: "badge" })))))))));
135
+ }, onClick: (e) => this.clickHandler(e) }, h("div", { key: '98b6ef79ab34656585aa442ea9a7004d845fa46c', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '5dc5abd4ec44aa243b07b8c30694560fec15c4b5', name: "icon" })), h("span", { key: '657145f6767c2ce1be8e2a9dab7489e5cfa694ef', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'e868ca7ce91446e75a7850b1f65629167124db43', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'dee1d6d5c667890a005ed3f4c22eb1daee71f4e2', name: "badge" })))))))));
136
136
  }
137
137
  static get is() { return "digi-navigation-vertical-menu-item"; }
138
138
  static get encapsulation() { return "scoped"; }