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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (648) hide show
  1. package/components/digi-badge-notification.d.ts +1 -1
  2. package/components/digi-badge-status.d.ts +1 -1
  3. package/components/digi-bar-chart.d.ts +1 -1
  4. package/components/digi-bar-chart.js +1 -1
  5. package/components/digi-button.d.ts +1 -1
  6. package/components/digi-button.js +1 -1
  7. package/components/digi-calendar-datepicker.d.ts +1 -1
  8. package/components/digi-calendar-datepicker.js +4 -4
  9. package/components/digi-calendar-week-view.d.ts +1 -1
  10. package/components/digi-calendar-week-view.js +1 -1
  11. package/components/digi-calendar.d.ts +1 -1
  12. package/components/digi-calendar.js +1 -1
  13. package/components/digi-chart-line.d.ts +1 -1
  14. package/components/digi-chart-line.js +1 -1
  15. package/components/digi-code-block.d.ts +1 -1
  16. package/components/digi-code-block.js +1 -1
  17. package/components/digi-code-example.d.ts +1 -1
  18. package/components/digi-code-example.js +3 -3
  19. package/components/digi-code.d.ts +1 -1
  20. package/components/digi-context-menu.d.ts +1 -1
  21. package/components/digi-context-menu.js +1 -1
  22. package/components/digi-dialog.d.ts +1 -1
  23. package/components/digi-dialog.js +3 -3
  24. package/components/digi-expandable-accordion.d.ts +1 -1
  25. package/components/digi-expandable-faq-item.d.ts +1 -1
  26. package/components/digi-expandable-faq-item.js +1 -1
  27. package/components/digi-expandable-faq.d.ts +1 -1
  28. package/components/digi-footer-card.d.ts +1 -1
  29. package/components/digi-footer.d.ts +1 -1
  30. package/components/digi-footer.js +1 -1
  31. package/components/digi-form-category-filter.d.ts +1 -1
  32. package/components/digi-form-category-filter.js +1 -1
  33. package/components/digi-form-checkbox.d.ts +1 -1
  34. package/components/digi-form-checkbox.js +1 -1
  35. package/components/digi-form-error-list.d.ts +1 -1
  36. package/components/digi-form-error-list.js +3 -3
  37. package/components/digi-form-fieldset.d.ts +1 -1
  38. package/components/digi-form-file-upload.d.ts +1 -1
  39. package/components/digi-form-file-upload.js +1 -1
  40. package/components/digi-form-filter.d.ts +1 -1
  41. package/components/digi-form-filter.js +2 -2
  42. package/components/digi-form-input-search.d.ts +1 -1
  43. package/components/digi-form-input-search.js +1 -1
  44. package/components/digi-form-input.d.ts +1 -1
  45. package/components/digi-form-label.d.ts +1 -1
  46. package/components/digi-form-radiobutton.d.ts +1 -1
  47. package/components/digi-form-radiogroup.d.ts +1 -1
  48. package/components/digi-form-receipt.d.ts +1 -1
  49. package/components/digi-form-receipt.js +1 -1
  50. package/components/digi-form-select-filter.d.ts +1 -1
  51. package/components/digi-form-select-filter.js +3 -3
  52. package/components/digi-form-select.d.ts +1 -1
  53. package/components/digi-form-select.js +1 -1
  54. package/components/digi-form-textarea.d.ts +1 -1
  55. package/components/digi-form-validation-message.d.ts +1 -1
  56. package/components/digi-header-avatar.d.ts +1 -1
  57. package/components/digi-header-avatar.js +1 -1
  58. package/components/digi-header-navigation-item.d.ts +1 -1
  59. package/components/digi-header-navigation.d.ts +1 -1
  60. package/components/digi-header-navigation.js +2 -2
  61. package/components/digi-header-notification.d.ts +1 -1
  62. package/components/digi-header.d.ts +1 -1
  63. package/components/digi-header.js +3 -3
  64. package/components/digi-icon-accessibility-deaf.d.ts +1 -1
  65. package/components/digi-icon-accessibility-universal.d.ts +1 -1
  66. package/components/digi-icon-apple.d.ts +1 -1
  67. package/components/digi-icon-archive-outline.d.ts +1 -1
  68. package/components/digi-icon-archive.d.ts +1 -1
  69. package/components/digi-icon-arrow-back.d.ts +1 -1
  70. package/components/digi-icon-arrow-down.d.ts +1 -1
  71. package/components/digi-icon-arrow-left.d.ts +1 -1
  72. package/components/digi-icon-arrow-right.d.ts +1 -1
  73. package/components/digi-icon-arrow-sign-in.d.ts +1 -1
  74. package/components/digi-icon-arrow-sign-out.d.ts +1 -1
  75. package/components/digi-icon-arrow-up.d.ts +1 -1
  76. package/components/digi-icon-at.d.ts +1 -1
  77. package/components/digi-icon-bars.d.ts +1 -1
  78. package/components/digi-icon-bell-filled.d.ts +1 -1
  79. package/components/digi-icon-bell.d.ts +1 -1
  80. package/components/digi-icon-book.d.ts +1 -1
  81. package/components/digi-icon-bookmark-outline.d.ts +1 -1
  82. package/components/digi-icon-bookmark-solid.d.ts +1 -1
  83. package/components/digi-icon-bubble-ellipsis.d.ts +1 -1
  84. package/components/digi-icon-bubble.d.ts +1 -1
  85. package/components/digi-icon-building-outline.d.ts +1 -1
  86. package/components/digi-icon-building-solid.d.ts +1 -1
  87. package/components/digi-icon-bullseye.d.ts +1 -1
  88. package/components/digi-icon-calculator-solid.d.ts +1 -1
  89. package/components/digi-icon-calendar-alt-alert.d.ts +1 -1
  90. package/components/digi-icon-calendar-alt.d.ts +1 -1
  91. package/components/digi-icon-calendar.d.ts +1 -1
  92. package/components/digi-icon-caret-circle-right.d.ts +1 -1
  93. package/components/digi-icon-caret-down.d.ts +1 -1
  94. package/components/digi-icon-caret-left.d.ts +1 -1
  95. package/components/digi-icon-caret-right.d.ts +1 -1
  96. package/components/digi-icon-caret-up.d.ts +1 -1
  97. package/components/digi-icon-chart.d.ts +1 -1
  98. package/components/digi-icon-chat.d.ts +1 -1
  99. package/components/digi-icon-check-circle-reg-alt.d.ts +1 -1
  100. package/components/digi-icon-check-circle-solid.d.ts +1 -1
  101. package/components/digi-icon-check.d.ts +1 -1
  102. package/components/digi-icon-checklist.d.ts +1 -1
  103. package/components/digi-icon-chevron-down.d.ts +1 -1
  104. package/components/digi-icon-chevron-left.d.ts +1 -1
  105. package/components/digi-icon-chevron-right.d.ts +1 -1
  106. package/components/digi-icon-chevron-up.d.ts +1 -1
  107. package/components/digi-icon-clock.d.ts +1 -1
  108. package/components/digi-icon-communication-play-solid.d.ts +1 -1
  109. package/components/digi-icon-compress-alt.d.ts +1 -1
  110. package/components/digi-icon-comunication-case.d.ts +1 -1
  111. package/components/digi-icon-comunication-flag.d.ts +1 -1
  112. package/components/digi-icon-comunication-graduate.d.ts +1 -1
  113. package/components/digi-icon-comunication-play.d.ts +1 -1
  114. package/components/digi-icon-cooperation.d.ts +1 -1
  115. package/components/digi-icon-copy.d.ts +1 -1
  116. package/components/digi-icon-danger-outline.d.ts +1 -1
  117. package/components/digi-icon-download.d.ts +1 -1
  118. package/components/digi-icon-dxa.d.ts +1 -1
  119. package/components/digi-icon-edit.d.ts +1 -1
  120. package/components/digi-icon-ellipsis.d.ts +1 -1
  121. package/components/digi-icon-envelope-filled.d.ts +1 -1
  122. package/components/digi-icon-envelope.d.ts +1 -1
  123. package/components/digi-icon-exclamation-circle-filled.d.ts +1 -1
  124. package/components/digi-icon-exclamation-triangle-filled.d.ts +1 -1
  125. package/components/digi-icon-exclamation-triangle-warning.d.ts +1 -1
  126. package/components/digi-icon-exclamation-triangle.d.ts +1 -1
  127. package/components/digi-icon-expand-alt.d.ts +1 -1
  128. package/components/digi-icon-external-link-alt.d.ts +1 -1
  129. package/components/digi-icon-eye-slash.d.ts +1 -1
  130. package/components/digi-icon-eye.d.ts +1 -1
  131. package/components/digi-icon-facebook-square.d.ts +1 -1
  132. package/components/digi-icon-file-add.d.ts +1 -1
  133. package/components/digi-icon-file-document.d.ts +1 -1
  134. package/components/digi-icon-file-excel.d.ts +1 -1
  135. package/components/digi-icon-file-export.d.ts +1 -1
  136. package/components/digi-icon-file-governing.d.ts +1 -1
  137. package/components/digi-icon-file-pdf.d.ts +1 -1
  138. package/components/digi-icon-file-powerpoint.d.ts +1 -1
  139. package/components/digi-icon-file-remove.d.ts +1 -1
  140. package/components/digi-icon-file-word.d.ts +1 -1
  141. package/components/digi-icon-film.d.ts +1 -1
  142. package/components/digi-icon-filter.d.ts +1 -1
  143. package/components/digi-icon-folder-add.d.ts +1 -1
  144. package/components/digi-icon-folder-directory.d.ts +1 -1
  145. package/components/digi-icon-folder-open.d.ts +1 -1
  146. package/components/digi-icon-folder.d.ts +1 -1
  147. package/components/digi-icon-globe-filled.d.ts +1 -1
  148. package/components/digi-icon-globe.d.ts +1 -1
  149. package/components/digi-icon-headphones.d.ts +1 -1
  150. package/components/digi-icon-heart-solid.d.ts +1 -1
  151. package/components/digi-icon-heart.d.ts +1 -1
  152. package/components/digi-icon-history.d.ts +1 -1
  153. package/components/digi-icon-home.d.ts +1 -1
  154. package/components/digi-icon-image.d.ts +1 -1
  155. package/components/digi-icon-info-circle-solid.d.ts +1 -1
  156. package/components/digi-icon-input-select-marker.d.ts +1 -1
  157. package/components/digi-icon-instagram.d.ts +1 -1
  158. package/components/digi-icon-job-suggestion.d.ts +1 -1
  159. package/components/digi-icon-language-outline.d.ts +1 -1
  160. package/components/digi-icon-language.d.ts +1 -1
  161. package/components/digi-icon-laptop-phone.d.ts +1 -1
  162. package/components/digi-icon-lattlast.d.ts +1 -1
  163. package/components/digi-icon-licence-bus.d.ts +1 -1
  164. package/components/digi-icon-licence-car.d.ts +1 -1
  165. package/components/digi-icon-licence-motorcycle.d.ts +1 -1
  166. package/components/digi-icon-licence-truck.d.ts +1 -1
  167. package/components/digi-icon-lightbulb.d.ts +1 -1
  168. package/components/digi-icon-linkedin-in.d.ts +1 -1
  169. package/components/digi-icon-list-ul.d.ts +1 -1
  170. package/components/digi-icon-lock.d.ts +1 -1
  171. package/components/digi-icon-marker-filled.d.ts +1 -1
  172. package/components/digi-icon-marker.d.ts +1 -1
  173. package/components/digi-icon-media-course.d.ts +1 -1
  174. package/components/digi-icon-media-podcast.d.ts +1 -1
  175. package/components/digi-icon-microphone-off.d.ts +1 -1
  176. package/components/digi-icon-microphone.d.ts +1 -1
  177. package/components/digi-icon-minus.d.ts +1 -1
  178. package/components/digi-icon-move.d.ts +1 -1
  179. package/components/digi-icon-news.d.ts +1 -1
  180. package/components/digi-icon-notification-error.d.ts +1 -1
  181. package/components/digi-icon-notification-info.d.ts +1 -1
  182. package/components/digi-icon-notification-succes.d.ts +1 -1
  183. package/components/digi-icon-notification-warning.d.ts +1 -1
  184. package/components/digi-icon-online-computervideo.d.ts +1 -1
  185. package/components/digi-icon-online-interview.d.ts +1 -1
  186. package/components/digi-icon-online-meeting.d.ts +1 -1
  187. package/components/digi-icon-online-task.d.ts +1 -1
  188. package/components/digi-icon-online-video.d.ts +1 -1
  189. package/components/digi-icon-open-source.d.ts +1 -1
  190. package/components/digi-icon-palette.d.ts +1 -1
  191. package/components/digi-icon-paperclip.d.ts +1 -1
  192. package/components/digi-icon-paste.d.ts +1 -1
  193. package/components/digi-icon-pen.d.ts +1 -1
  194. package/components/digi-icon-phone-hangup.d.ts +1 -1
  195. package/components/digi-icon-phone.d.ts +1 -1
  196. package/components/digi-icon-plus.d.ts +1 -1
  197. package/components/digi-icon-pod.d.ts +1 -1
  198. package/components/digi-icon-print.d.ts +1 -1
  199. package/components/digi-icon-read.d.ts +1 -1
  200. package/components/digi-icon-redo.d.ts +1 -1
  201. package/components/digi-icon-scale.d.ts +1 -1
  202. package/components/digi-icon-screensharing-off.d.ts +1 -1
  203. package/components/digi-icon-screensharing.d.ts +1 -1
  204. package/components/digi-icon-search.d.ts +1 -1
  205. package/components/digi-icon-send-outline.d.ts +1 -1
  206. package/components/digi-icon-send-solid.d.ts +1 -1
  207. package/components/digi-icon-settings.d.ts +1 -1
  208. package/components/digi-icon-share-alt.d.ts +1 -1
  209. package/components/digi-icon-share-chain.d.ts +1 -1
  210. package/components/digi-icon-sign.d.ts +1 -1
  211. package/components/digi-icon-sliders-h.d.ts +1 -1
  212. package/components/digi-icon-sokkandidat.d.ts +1 -1
  213. package/components/digi-icon-sort-down.d.ts +1 -1
  214. package/components/digi-icon-sort-up.d.ts +1 -1
  215. package/components/digi-icon-sort.d.ts +1 -1
  216. package/components/digi-icon-spinner.d.ts +1 -1
  217. package/components/digi-icon-star-reg.d.ts +1 -1
  218. package/components/digi-icon-star.d.ts +1 -1
  219. package/components/digi-icon-suitcase-outline.d.ts +1 -1
  220. package/components/digi-icon-suitcase-solid.d.ts +1 -1
  221. package/components/digi-icon-system-assistance.d.ts +1 -1
  222. package/components/digi-icon-table-column.d.ts +1 -1
  223. package/components/digi-icon-table-row.d.ts +1 -1
  224. package/components/digi-icon-table.d.ts +1 -1
  225. package/components/digi-icon-task-done.d.ts +1 -1
  226. package/components/digi-icon-toggle-off.d.ts +1 -1
  227. package/components/digi-icon-toggle-on.d.ts +1 -1
  228. package/components/digi-icon-trash.d.ts +1 -1
  229. package/components/digi-icon-twitter.d.ts +1 -1
  230. package/components/digi-icon-tyck-till.d.ts +1 -1
  231. package/components/digi-icon-unlock.d.ts +1 -1
  232. package/components/digi-icon-update.d.ts +1 -1
  233. package/components/digi-icon-upload.d.ts +1 -1
  234. package/components/digi-icon-user-add.d.ts +1 -1
  235. package/components/digi-icon-user-alt.d.ts +1 -1
  236. package/components/digi-icon-user-edit.d.ts +1 -1
  237. package/components/digi-icon-users-solid.d.ts +1 -1
  238. package/components/digi-icon-validation-error.d.ts +1 -1
  239. package/components/digi-icon-validation-success.d.ts +1 -1
  240. package/components/digi-icon-validation-warning.d.ts +1 -1
  241. package/components/digi-icon-videocamera-off.d.ts +1 -1
  242. package/components/digi-icon-videocamera.d.ts +1 -1
  243. package/components/digi-icon-volume.d.ts +1 -1
  244. package/components/digi-icon-web-tv.d.ts +1 -1
  245. package/components/digi-icon-webinar.d.ts +1 -1
  246. package/components/digi-icon-wifi-signal0.d.ts +1 -1
  247. package/components/digi-icon-wifi-signal1.d.ts +1 -1
  248. package/components/digi-icon-wifi-signal2.d.ts +1 -1
  249. package/components/digi-icon-wifi-signal3.d.ts +1 -1
  250. package/components/digi-icon-window.d.ts +1 -1
  251. package/components/digi-icon-x-button-outline.d.ts +1 -1
  252. package/components/digi-icon-x-button.d.ts +1 -1
  253. package/components/digi-icon-x.d.ts +1 -1
  254. package/components/digi-icon-youtube.d.ts +1 -1
  255. package/components/digi-info-card-multi-container.d.ts +1 -1
  256. package/components/digi-info-card-multi.d.ts +1 -1
  257. package/components/digi-info-card.d.ts +1 -1
  258. package/components/digi-info-card.js +2 -2
  259. package/components/digi-layout-block.d.ts +1 -1
  260. package/components/digi-layout-columns.d.ts +1 -1
  261. package/components/digi-layout-container.d.ts +1 -1
  262. package/components/digi-link-button.d.ts +1 -1
  263. package/components/digi-link-external.d.ts +1 -1
  264. package/components/digi-link-internal.d.ts +1 -1
  265. package/components/digi-link-internal.js +1 -1
  266. package/components/digi-link.d.ts +1 -1
  267. package/components/digi-list.d.ts +1 -1
  268. package/components/digi-loader-skeleton.d.ts +1 -1
  269. package/components/digi-loader-spinner.d.ts +1 -1
  270. package/components/digi-logo.d.ts +1 -1
  271. package/components/digi-logo.js +1 -1
  272. package/components/digi-media-figure.d.ts +1 -1
  273. package/components/digi-media-image.d.ts +1 -1
  274. package/components/digi-navigation-breadcrumbs.d.ts +1 -1
  275. package/components/digi-navigation-pagination.d.ts +1 -1
  276. package/components/digi-navigation-pagination.js +2 -2
  277. package/components/digi-navigation-sidebar-button.d.ts +1 -1
  278. package/components/digi-navigation-sidebar-button.js +1 -1
  279. package/components/digi-navigation-sidebar.d.ts +1 -1
  280. package/components/digi-navigation-sidebar.js +1 -1
  281. package/components/digi-navigation-vertical-menu-item.d.ts +1 -1
  282. package/components/digi-navigation-vertical-menu-item.js +1 -1
  283. package/components/digi-navigation-vertical-menu.d.ts +1 -1
  284. package/components/digi-notification-alert.d.ts +1 -1
  285. package/components/digi-notification-alert.js +1 -1
  286. package/components/digi-notification-error-page.d.ts +1 -1
  287. package/components/digi-notification-error-page.js +1 -1
  288. package/components/digi-progress-circle.d.ts +1 -1
  289. package/components/digi-progress-indicator.d.ts +1 -1
  290. package/components/digi-progress-indicator.js +1 -1
  291. package/components/digi-progress-list-item.d.ts +1 -1
  292. package/components/digi-progress-list.d.ts +1 -1
  293. package/components/digi-progressbar.d.ts +1 -1
  294. package/components/digi-quote.d.ts +1 -1
  295. package/components/digi-quote.js +1 -1
  296. package/components/digi-table.d.ts +1 -1
  297. package/components/digi-tablist-panel.d.ts +1 -1
  298. package/components/digi-tablist.d.ts +1 -1
  299. package/components/digi-tag-media.d.ts +1 -1
  300. package/components/digi-tag.d.ts +1 -1
  301. package/components/digi-tag.js +1 -1
  302. package/components/digi-title-logo.d.ts +1 -1
  303. package/components/digi-title-logo.js +1 -1
  304. package/components/digi-tools-feedback-banner.d.ts +1 -1
  305. package/components/digi-tools-feedback-rating.d.ts +1 -1
  306. package/components/digi-tools-feedback.d.ts +1 -1
  307. package/components/digi-tools-feedback.js +3 -3
  308. package/components/digi-tools-theme-provider.d.ts +1 -1
  309. package/components/digi-tools-theme-provider.js +18 -5
  310. package/components/digi-typography-heading-jumbo.d.ts +1 -1
  311. package/components/digi-typography-meta.d.ts +1 -1
  312. package/components/digi-typography-preamble.d.ts +1 -1
  313. package/components/digi-typography-time.d.ts +1 -1
  314. package/components/digi-typography.d.ts +1 -1
  315. package/components/digi-util-breakpoint-observer.d.ts +1 -1
  316. package/components/digi-util-detect-click-outside.d.ts +1 -1
  317. package/components/digi-util-detect-focus-outside.d.ts +1 -1
  318. package/components/digi-util-intersection-observer.d.ts +1 -1
  319. package/components/digi-util-keydown-handler.d.ts +1 -1
  320. package/components/digi-util-keyup-handler.d.ts +1 -1
  321. package/components/digi-util-mutation-observer.d.ts +1 -1
  322. package/components/digi-util-resize-observer.d.ts +1 -1
  323. package/components/index.d.ts +284 -284
  324. package/components/index.js +1 -1
  325. package/components/p-0d568c4b.js +66 -0
  326. package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
  327. package/components/{p-7ff04204.js → p-29f63312.js} +2 -2
  328. package/components/p-606ba731.js +165 -0
  329. package/components/{p-44f143ea.js → p-7d3fb535.js} +2 -2
  330. package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
  331. package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
  332. package/components/p-d7ef9cb1.js +13 -0
  333. package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
  334. package/components/p-f77cb7ae.js +163 -0
  335. package/custom-elements.json +4 -0
  336. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  337. package/dist/cjs/digi-button_38.cjs.entry.js +5759 -0
  338. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  339. package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block.cjs.entry.js} +3 -143
  340. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  341. package/dist/cjs/digi-dialog.cjs.entry.js +4 -15
  342. package/dist/cjs/digi-footer.cjs.entry.js +3 -14
  343. package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -14
  344. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
  345. package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -7
  346. package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -14
  347. package/dist/cjs/digi-header-avatar.cjs.entry.js +114 -0
  348. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
  349. package/dist/cjs/digi-header-navigation.cjs.entry.js +218 -0
  350. package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
  351. package/dist/cjs/digi-header.cjs.entry.js +134 -0
  352. package/dist/cjs/{digi-icon-copy.cjs.entry.js → digi-icon-bars.cjs.entry.js} +7 -7
  353. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
  354. package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
  355. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  356. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  357. package/dist/cjs/digi-media-image_2.cjs.entry.js +167 -0
  358. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -14
  359. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +30 -0
  360. package/dist/cjs/digi-notification-alert.cjs.entry.js +3 -14
  361. package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -14
  362. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  363. package/dist/cjs/digi-title-logo.cjs.entry.js +121 -0
  364. package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -15
  365. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
  366. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  367. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  368. package/dist/cjs/index-7a477838.js +44 -96
  369. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  370. package/dist/cjs/index.cjs.js +136 -141
  371. package/dist/cjs/loader.cjs.js +1 -1
  372. package/dist/cjs/{typography-variation.enum-118ff8e5.js → typography-variation.enum-e41bd69d.js} +138 -0
  373. package/dist/collection/components/_button/button/button.css +6 -6
  374. package/dist/collection/components/_calendar/calendar/calendar.css +7 -2
  375. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +347 -102
  376. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  377. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  378. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  379. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +347 -102
  380. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
  381. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  382. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  383. package/dist/collection/components/_header/header-avatar/header-avatar.css +346 -101
  384. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  385. package/dist/collection/components/_link/link-internal/link-internal.css +346 -101
  386. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  387. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  388. package/dist/collection/components/_quote/quote/quote.css +2 -2
  389. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  390. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +113 -2
  391. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  392. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  393. package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
  394. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  395. package/dist/collection/design-tokens/components/_calendar.variables.scss +3 -2
  396. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  397. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  398. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  399. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  400. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
  401. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  402. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  403. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  404. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  405. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  406. package/dist/collection/enums.js +1 -0
  407. package/dist/collection/styles/src/_alias.mixin.scss +274 -128
  408. package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
  409. package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +143 -0
  410. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
  411. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
  412. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  413. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +3 -2
  414. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  415. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  416. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  417. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  418. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
  419. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  420. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  421. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  422. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  423. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  424. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  425. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  426. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  427. package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
  428. package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
  429. package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
  430. package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
  431. package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +1 -0
  432. package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
  433. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  434. package/dist/digi-arbetsformedlingen/p-52a3c86a.entry.js +1 -0
  435. package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
  436. package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
  437. package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
  438. package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
  439. package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +1 -0
  440. package/dist/digi-arbetsformedlingen/p-76ec3619.entry.js +1 -0
  441. package/dist/digi-arbetsformedlingen/p-780519ec.entry.js +1 -0
  442. package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
  443. package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
  444. package/dist/digi-arbetsformedlingen/p-84719680.entry.js +1 -0
  445. package/dist/digi-arbetsformedlingen/p-920aee36.entry.js +1 -0
  446. package/dist/digi-arbetsformedlingen/p-9b6e8cf8.entry.js +1 -0
  447. package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +1 -0
  448. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  449. package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +1 -0
  450. package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +1 -0
  451. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  452. package/dist/digi-arbetsformedlingen/p-d9bcab5f.entry.js +1 -0
  453. package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +1 -0
  454. package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
  455. package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
  456. package/dist/digi-arbetsformedlingen/p-e7ee9bea.entry.js +1 -0
  457. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  458. package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
  459. package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +1 -0
  460. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +274 -128
  461. package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
  462. package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +143 -0
  463. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
  464. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  465. package/dist/esm/digi-button_38.entry.js +5718 -0
  466. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  467. package/dist/esm/digi-code-block.entry.js +85 -0
  468. package/dist/esm/digi-code-example.entry.js +1 -1
  469. package/dist/esm/digi-dialog.entry.js +4 -15
  470. package/dist/esm/digi-footer.entry.js +3 -14
  471. package/dist/esm/digi-form-error-list.entry.js +3 -14
  472. package/dist/esm/digi-form-file-upload.entry.js +2 -3
  473. package/dist/esm/digi-form-input-search.entry.js +1 -2
  474. package/dist/esm/digi-form-receipt.entry.js +3 -14
  475. package/dist/esm/digi-header-avatar.entry.js +110 -0
  476. package/dist/esm/digi-header-navigation-item.entry.js +23 -0
  477. package/dist/esm/digi-header-navigation.entry.js +214 -0
  478. package/dist/esm/digi-header-notification.entry.js +19 -0
  479. package/dist/esm/digi-header.entry.js +130 -0
  480. package/dist/esm/digi-icon-bars.entry.js +26 -0
  481. package/dist/esm/digi-icon-bell-filled.entry.js +26 -0
  482. package/dist/esm/digi-icon-x.entry.js +26 -0
  483. package/dist/esm/digi-info-card.entry.js +1 -1
  484. package/dist/esm/digi-link-internal.entry.js +1 -1
  485. package/dist/esm/digi-media-image_2.entry.js +162 -0
  486. package/dist/esm/digi-navigation-pagination.entry.js +3 -14
  487. package/dist/esm/digi-navigation-sidebar-button.entry.js +26 -0
  488. package/dist/esm/digi-notification-alert.entry.js +3 -14
  489. package/dist/esm/digi-notification-error-page.entry.js +3 -14
  490. package/dist/esm/digi-quote.entry.js +1 -1
  491. package/dist/esm/digi-title-logo.entry.js +117 -0
  492. package/dist/esm/digi-tools-feedback.entry.js +4 -15
  493. package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
  494. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  495. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  496. package/dist/esm/index-148a7577.js +44 -96
  497. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  498. package/dist/esm/index.js +3 -14
  499. package/dist/esm/loader.js +1 -1
  500. package/dist/esm/{typography-variation.enum-23eeecd2.js → typography-variation.enum-b07f76c9.js} +139 -1
  501. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  502. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  503. package/dist/types/components.d.ts +12 -0
  504. package/dist/types/enums.d.ts +1 -0
  505. package/hydrate/index.js +40 -21
  506. package/hydrate/index.mjs +40 -21
  507. package/package.json +1 -1
  508. package/components/p-4bad4fb0.js +0 -7
  509. package/components/p-b57677c1.js +0 -66
  510. package/components/p-e8fc33ed.js +0 -165
  511. package/components/p-ff4f4fb8.js +0 -163
  512. package/dist/cjs/digi-button_17.cjs.entry.js +0 -1120
  513. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2600
  514. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  515. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  516. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  517. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
  518. package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
  519. package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -129
  520. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
  521. package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -565
  522. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -186
  523. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  524. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  525. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  526. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  527. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +0 -53
  528. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  529. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  530. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  531. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  532. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  533. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  534. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  535. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  536. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
  537. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  538. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  539. package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +0 -15
  540. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  541. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  542. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  543. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  544. package/dist/cjs/index-cad91a90.js +0 -66
  545. package/dist/cjs/index-e8333bcc.js +0 -174
  546. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  547. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  548. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  549. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  550. package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +0 -1
  551. package/dist/digi-arbetsformedlingen/p-07985aef.entry.js +0 -1
  552. package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +0 -1
  553. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  554. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  555. package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
  556. package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +0 -1
  557. package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +0 -1
  558. package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
  559. package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
  560. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  561. package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
  562. package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
  563. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
  564. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  565. package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
  566. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +0 -1
  567. package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +0 -1
  568. package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
  569. package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +0 -1
  570. package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +0 -1
  571. package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
  572. package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
  573. package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
  574. package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
  575. package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +0 -1
  576. package/dist/digi-arbetsformedlingen/p-7327f45d.entry.js +0 -1
  577. package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
  578. package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
  579. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  580. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  581. package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +0 -1
  582. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  583. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  584. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  585. package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
  586. package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
  587. package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
  588. package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +0 -1
  589. package/dist/digi-arbetsformedlingen/p-9be9a291.js +0 -1
  590. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  591. package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +0 -1
  592. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  593. package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +0 -1
  594. package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
  595. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  596. package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +0 -1
  597. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  598. package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +0 -1
  599. package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
  600. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  601. package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
  602. package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
  603. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  604. package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +0 -1
  605. package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +0 -1
  606. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  607. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  608. package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +0 -1
  609. package/dist/esm/digi-button_17.entry.js +0 -1100
  610. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2596
  611. package/dist/esm/digi-calendar_2.entry.js +0 -459
  612. package/dist/esm/digi-code-block_3.entry.js +0 -223
  613. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  614. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  615. package/dist/esm/digi-form-checkbox.entry.js +0 -123
  616. package/dist/esm/digi-form-input.entry.js +0 -190
  617. package/dist/esm/digi-form-label_3.entry.js +0 -123
  618. package/dist/esm/digi-form-radiogroup.entry.js +0 -76
  619. package/dist/esm/digi-form-select-filter.entry.js +0 -561
  620. package/dist/esm/digi-form-select_2.entry.js +0 -181
  621. package/dist/esm/digi-icon-check.entry.js +0 -26
  622. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  623. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  624. package/dist/esm/digi-icon-copy.entry.js +0 -26
  625. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  626. package/dist/esm/digi-icon-validation-error_2.entry.js +0 -48
  627. package/dist/esm/digi-link.entry.js +0 -71
  628. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  629. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  630. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  631. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  632. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  633. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  634. package/dist/esm/digi-typography.entry.js +0 -22
  635. package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
  636. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  637. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  638. package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +0 -15
  639. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  640. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  641. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  642. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  643. package/dist/esm/index-5b6c95c6.js +0 -63
  644. package/dist/esm/index-8685f88d.js +0 -170
  645. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  646. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  647. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  648. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
@@ -1,464 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-7a477838.js');
6
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
7
- const detectClickOutside_util = require('./detectClickOutside.util-3e764eb3.js');
8
- const detectFocusOutside_util = require('./detectFocusOutside.util-03c62976.js');
9
- const logger_util = require('./logger.util-fdafc086.js');
10
- const text = require('./text-65b1b58c.js');
11
- const index$1 = require('./index-e8333bcc.js');
12
- const index$2 = require('./index-cad91a90.js');
13
- require('./detectClosest.util-85b3507b.js');
14
-
15
- const calendarCss = ".sc-digi-calendar-h{--digi--calendar--display:inline-block;--digi--calendar--header--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--header--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--header--display:flex;--digi--calendar--header--align-items:center;--digi--calendar--header--justify-content:space-between;--digi--calendar--header--text-align:center;--digi--calendar--header--button--padding:var(--digi--gutter--medium) var(--digi--gutter--largest);--digi--calendar--header--button--background:transparent;--digi--calendar--header--button--box-shadow:none;--digi--calendar--header--button--background--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--table--border-spacing:0;--digi--calendar--table--border-collapse:collapse;--digi--calendar--table--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--table--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--table-header--padding:var(--digi--gutter--larger) 0;--digi--calendar--table-header--font-weight-normal:var(--digi--typography--body--font-weight--desktop);--digi--calendar--date--border-color:none;--digi--calendar--date--box-shadow:none;--digi--calendar--date--background-color:var(--digi--color--background--interactive--default--secondary);--digi--calendar--date--background-color--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--padding:var(--digi--gutter--large);--digi--calendar--date--color:var(--digi--color--text--primary);--digi--calendar--date--focused--background-color:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--today--circle-border:2px solid var(--digi--color--marking--indication--secondary);--digi--calendar--date--today--circle-margin:10%;--digi--calendar--date--selected--color:var(--digi--color--text--interactive--secondary);--digi--calendar--date--selected--background-color:var(--digi--color--background--interactive--selected--primary);--digi--calendar--date--not-selectable-strike--color:var(--digi--color--marking--indication--tertiary);--digi--calendar--week--font-style:italic;--digi--calendar--week--font-size:var(--digi--global--typography--font-size--small);--digi--calendar--week--border-color:var(--digi--color--divider--primary);--digi--calendar--week--border-width:var(--digi--border-width--primary)}.sc-digi-calendar-h .digi-calendar.sc-digi-calendar{display:var(--digi--calendar--display);background:var(--digi--calendar--header--button--background);padding:0px 1px 3px 1px;overflow:hidden;max-width:23.4375rem}.sc-digi-calendar-h .digi-calendar--hide.sc-digi-calendar{--digi--calendar--display:none}.sc-digi-calendar-h .digi-calendar__header.sc-digi-calendar{display:var(--digi--calendar--header--display);align-items:var(--digi--calendar--header--align-items);justify-content:var(--digi--calendar--header--justify-content);text-align:var(--digi--calendar--header--text-align);font-size:var(--digi--global--typography--font-size--base);font-family:var(--digi--calendar--header--font-family);font-weight:var(--digi--calendar--header--font-weight)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar{display:inherit;justify-content:center;margin:0 auto}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:first-child{margin-right:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:last-child{width:5rem}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar select.sc-digi-calendar{padding-inline-end:2rem}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar{flex:auto;display:inherit;align-items:inherit;justify-content:inherit}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-name.sc-digi-calendar{padding-inline:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar{font-family:inherit;font-size:inherit;font-weight:inherit;color:var(--digi--calendar--date--color);display:flex;align-items:center;background:var(--digi--calendar--header--button--background);border:var(--digi--calendar--date--box-shadow);padding:var(--digi--calendar--header--button--padding)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:last-child{border-radius:0 4px 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:first-child{border-radius:4px 0 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible:not(.digi-calendar__date--not-selectable),.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:active:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}@media (any-hover: hover){.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__table.sc-digi-calendar{border-collapse:var(--digi--calendar--table--border-collapse);border-spacing:var(--digi--calendar--table--border-spacing);font-family:var(--digi--calendar--table--font-family);table-layout:fixed;margin-bottom:var(--digi--margin--medium)}.sc-digi-calendar-h .digi-calendar__table-header-week.sc-digi-calendar{font-style:italic;padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table-header--font-weight-normal);width:50px}.sc-digi-calendar-h .digi-calendar__table-header.sc-digi-calendar{padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table--font-weight);width:46px}.sc-digi-calendar-h .digi-calendar__td-week.sc-digi-calendar{border-right:var(--digi--calendar--week--border-width) solid var(--digi--calendar--week--border-color)}.sc-digi-calendar-h .digi-calendar__td.sc-digi-calendar{text-align:right}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar{font-style:var(--digi--calendar--week--font-style);font-size:var(--digi--calendar--week--font-size);display:table-cell;text-align:center}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar:hover{cursor:default}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar{position:relative;padding:var(--digi--calendar--date--padding);color:var(--digi--calendar--date--color);background-color:var(--digi--calendar--date--background-color);border-color:var(--digi--calendar--date--border-color);border-radius:var(--digi--border-radius--secondary);font-family:inherit;font-size:inherit;font-weight:inherit;text-align:center;border:none;width:44px;height:44px}.sc-digi-calendar-h .digi-calendar__date--disabled.sc-digi-calendar{--digi--calendar--date--color:transparent;pointer-events:none}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar{position:relative}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar::after{display:block;content:\" \";position:absolute;top:var(--digi--calendar--date--today--circle-margin);bottom:var(--digi--calendar--date--today--circle-margin);left:var(--digi--calendar--date--today--circle-margin);right:var(--digi--calendar--date--today--circle-margin);border:var(--digi--calendar--date--today--circle-border);border-radius:50%}.sc-digi-calendar-h .digi-calendar__date--today.digi-calendar__date--selected.sc-digi-calendar::after{border-color:var(--digi--color--icon--secondary)}@media (any-hover: hover){.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){cursor:pointer}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable):not(.digi-calendar__date--selected){--digi--calendar--date--box-shadow:var(--digi--calendar--date--box-shadow--hover);--digi--calendar--date--background-color:var(--digi--calendar--date--background-color--hover)}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable) span.sc-digi-calendar{text-decoration:underline}}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar{--digi--calendar--date--background-color:var(--digi--calendar--date--selected--background-color);--digi--calendar--date--color:var(--digi--calendar--date--selected--color)}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover{--digi--calendar--date--background-color:var(--digi--calendar--date--selected--background-color)}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover span.sc-digi-calendar{text-decoration:none}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar{cursor:not-allowed}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar::after{display:block;content:\" \";width:0px;height:100%;border:1px solid #757575;transform:rotate(-45deg);position:absolute;top:0%;left:50%}.sc-digi-calendar-h .digi-calendar__date--focused.sc-digi-calendar:focus-visible:not(.digi-calendar__date--selected):not(.digi-calendar__date--not-selectable){--digi--calendar--date--background-color:var(--digi--calendar--date--focused--background-color);outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-s digi-form-label{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
16
- const DigiCalendarStyle0 = calendarCss;
17
-
18
- const Calendar = class {
19
- constructor(hostRef) {
20
- index.registerInstance(this, hostRef);
21
- this.afOnDateSelectedChange = index.createEvent(this, "afOnDateSelectedChange", 7);
22
- this.afOnFocusOutside = index.createEvent(this, "afOnFocusOutside", 7);
23
- this.afOnClickOutside = index.createEvent(this, "afOnClickOutside", 7);
24
- this.afOnDirty = index.createEvent(this, "afOnDirty", 7);
25
- this.selectedDates = [];
26
- this.focusedDate = undefined;
27
- this.dirty = false;
28
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar');
29
- this.afOpenCalendarTo = undefined;
30
- this.afShowWeekNumber = false;
31
- this.afSelectedDate = undefined;
32
- this.afSelectedDates = [];
33
- this.afActive = true;
34
- this.afMinDate = undefined;
35
- this.afMaxDate = undefined;
36
- this.afMultipleDates = false;
37
- this.afYearSelect = false;
38
- this.activeCalendar = [];
39
- }
40
- focusedDateChanged() {
41
- this.drawCalendar(this.focusedDate);
42
- }
43
- afOpenCalendarToChangeHandler() {
44
- this.determineFocusedDate();
45
- }
46
- afShowWeekNumberChangeHandler() {
47
- this.drawCalendar(this.focusedDate);
48
- }
49
- afSelectedDateChangeHandler() {
50
- this.afSelectedDates = index$1.isValid(this.afSelectedDate)
51
- ? [this.afSelectedDate]
52
- : [];
53
- }
54
- afSelectedDatesChangeHandler() {
55
- if (this.afSelectedDates.length > 0) {
56
- if (this.afMultipleDates) {
57
- const invalidDate = this.afSelectedDates.find((date) => !index$1.isValid(date));
58
- if (invalidDate === undefined) {
59
- this.selectedDates = this.afSelectedDates;
60
- this.determineFocusedDate();
61
- }
62
- }
63
- else if (index$1.isValid(this.afSelectedDates[0])) {
64
- this.selectedDates = [this.afSelectedDates[0]];
65
- this.determineFocusedDate();
66
- }
67
- }
68
- else {
69
- this.selectedDates = [];
70
- }
71
- }
72
- focusoutHandler(e) {
73
- const target = e.target;
74
- const selector = `#${this.afId}-calendar`;
75
- if (detectFocusOutside_util.detectFocusOutside(target, selector)) {
76
- this.afOnFocusOutside.emit(e);
77
- }
78
- }
79
- clickHandler(e) {
80
- const target = e.target;
81
- const selector = `#${this.afId}-calendar`;
82
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
83
- this.afOnClickOutside.emit(e);
84
- }
85
- }
86
- determineFocusedDate() {
87
- if (this.dirty) {
88
- return; // Don't change focused date if user has already interacted with the calendar
89
- }
90
- else if (this.afOpenCalendarTo && index$1.isValid(this.afOpenCalendarTo)) {
91
- this.focusedDate = this.afOpenCalendarTo;
92
- }
93
- else if (this.selectedDates.length > 0) {
94
- this.focusedDate = this.selectedDates[0];
95
- }
96
- else {
97
- this.focusedDate = new Date();
98
- }
99
- }
100
- drawCalendar(focusedDate) {
101
- const date = {
102
- year: focusedDate.getFullYear(),
103
- month: focusedDate.getMonth()
104
- };
105
- this.lastWeekOfPreviousMonth = this.getWeekDays(this.getLastDayOfPrevMonth(date));
106
- this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
107
- this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
108
- this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
109
- this.activeCalendar = this.appendFirstWeekOfNextMonth()
110
- ? [
111
- this.lastWeekOfPreviousMonth,
112
- ...this.weekDaysbetween,
113
- this.appendFirstWeekOfNextMonth()
114
- ]
115
- : [this.lastWeekOfPreviousMonth, ...this.weekDaysbetween];
116
- this.appendFirstWeekOfNextMonth();
117
- if (this.afShowWeekNumber) {
118
- this.activeCalendar.forEach((el, i) => {
119
- this.activeCalendar[i].unshift(this.getWeekNumbers(el[0]));
120
- });
121
- }
122
- }
123
- appendFirstWeekOfNextMonth() {
124
- const lastArray = JSON.stringify(this.weekDaysbetween.slice(-1)[0]);
125
- const stringFirstweek = JSON.stringify(this.firstWeekOfNextMonth);
126
- if (!this.firstWeekOfNextMonth.some((date) => this.isSameMonth(date, this.focusedDate))) {
127
- return;
128
- }
129
- else if (lastArray !== stringFirstweek) {
130
- return this.firstWeekOfNextMonth;
131
- }
132
- }
133
- getLastDayOfPrevMonth(date) {
134
- return new Date(date.year, date.month, 0);
135
- }
136
- getWeekDays(date) {
137
- const today = date || new Date();
138
- const week = [];
139
- const dayOffset = today.getDay(); // 0=söndag
140
- for (let i = 1; i <= 7; i++) {
141
- week.push(new Date(today.getFullYear(), today.getMonth(), today.getDate() - dayOffset + i));
142
- }
143
- return week;
144
- }
145
- getFirstDayOfNextMonth(date) {
146
- return new Date(date.year, date.month + 1, 1);
147
- }
148
- getWeeksBetween(lastDayOfPrevMonth, firstDayOnNextMonth) {
149
- const week = 7 * 24 * 60 * 60 * 1000;
150
- const d1ms = lastDayOfPrevMonth.getTime();
151
- const d2ms = firstDayOnNextMonth.getTime();
152
- const diff = Math.abs(d2ms - d1ms);
153
- return Math.floor(diff / week);
154
- }
155
- getWeekdaysOfMonth(weeksBetween) {
156
- let weeks = [];
157
- for (let i = 1; i <= weeksBetween; i++) {
158
- weeks = [...weeks, this.getWeekDays(this.getUpcoming(i))];
159
- }
160
- return weeks;
161
- }
162
- getUpcoming(weeks) {
163
- return new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 7 * weeks);
164
- }
165
- onDirty() {
166
- if (!this.dirty) {
167
- this.dirty = true;
168
- this.afOnDirty.emit(this.dirty);
169
- }
170
- }
171
- selectDateHandler(dateSelected) {
172
- this.onDirty();
173
- if (!this.isDateSelectable(dateSelected))
174
- return;
175
- if (this.isDateSelected(dateSelected)) {
176
- this.selectedDates = this.afMultipleDates
177
- ? this.selectedDates.filter((d) => {
178
- return !this.isSameDate(d, dateSelected);
179
- })
180
- : [];
181
- }
182
- else {
183
- this.selectedDates = this.afMultipleDates
184
- ? [...this.selectedDates, dateSelected]
185
- : [dateSelected];
186
- }
187
- this.focusedDate = new Date(dateSelected);
188
- this.afOnDateSelectedChange.emit(this.selectedDates);
189
- }
190
- getMonthName(monthNumber) {
191
- return new Date(1992, monthNumber, 1)
192
- .toLocaleDateString(text._t.locale, {
193
- month: 'short'
194
- })
195
- .replace('.', '');
196
- }
197
- getFullMonthName(monthNumber) {
198
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(text._t.locale, {
199
- month: 'long',
200
- year: 'numeric'
201
- });
202
- }
203
- // Get the week number of a specific date. Taken from https://weeknumber.com/how-to/javascript
204
- getWeekNumbers(dateInput) {
205
- const date = new Date(dateInput);
206
- date.getTime();
207
- date.setHours(0, 0, 0, 0);
208
- date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
209
- const week1 = new Date(date.getFullYear(), 0, 4);
210
- return (1 +
211
- Math.round(((date.getTime() - week1.getTime()) / 86400000 -
212
- 3 +
213
- ((week1.getDay() + 6) % 7)) /
214
- 7));
215
- }
216
- isSameMonth(date, currentDate) {
217
- if (date instanceof Date && date instanceof Date) {
218
- return (`${date.getFullYear()}${date.getMonth()}` ===
219
- `${currentDate.getFullYear()}${currentDate.getMonth()}`);
220
- }
221
- return false;
222
- }
223
- isSameDate(date, newDate) {
224
- return this.getDateString(date) === this.getDateString(newDate);
225
- }
226
- getDateString(date) {
227
- return `${date.getDate()}${date.getMonth()}${date.getFullYear()}`;
228
- }
229
- isDateSelected(date) {
230
- return !!this.selectedDates.find((d) => this.isSameDate(date, d));
231
- }
232
- isDateSelectable(date) {
233
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
234
- return false;
235
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
236
- return false;
237
- return true;
238
- }
239
- isBefore(a, b) {
240
- return index$2.isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
241
- }
242
- isAfter(a, b) {
243
- return index$2.isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
244
- }
245
- dateWithoutTime(date) {
246
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
247
- }
248
- isInAnotherMonth(date) {
249
- return !this.isSameMonth(date, this.focusedDate);
250
- }
251
- subtractMonth() {
252
- this.onDirty();
253
- const month = new Date(this.focusedDate);
254
- const currentDay = month.getDate();
255
- month.setMonth(month.getMonth() - 1, 1);
256
- const lastDayOfPrevMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
257
- month.setDate(Math.min(currentDay, lastDayOfPrevMonth));
258
- this.focusedDate = month;
259
- }
260
- addMonth() {
261
- this.onDirty();
262
- const month = new Date(this.focusedDate);
263
- const currentDay = month.getDate();
264
- month.setMonth(month.getMonth() + 1, 1);
265
- const lastDayOfNextMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
266
- month.setDate(Math.min(currentDay, lastDayOfNextMonth));
267
- this.focusedDate = month;
268
- }
269
- getCurrent(date) {
270
- return this.isSameDate(date, new Date()) ? 'date' : null;
271
- }
272
- setTabIndex(date) {
273
- return this.isFocused(date) ? 0 : -1;
274
- }
275
- navigateHandler(e, daysToAdd) {
276
- !!e.detail && e.detail.preventDefault();
277
- if (e.detail.key === 'Tab') {
278
- return;
279
- }
280
- this.onDirty();
281
- const date = new Date(e.detail.target.dataset.date);
282
- const newDate = new Date(date.setDate(date.getDate() + daysToAdd));
283
- this.focusedDate = newDate;
284
- this.resetFocus();
285
- }
286
- resetFocus() {
287
- setTimeout(() => {
288
- const dates = this._tbody.querySelectorAll('.digi-calendar__date');
289
- if (dates.length <= 0) {
290
- logger_util.logger.warn(`Could not find an element with data-date attribute matching navigated date.`, this._tbody);
291
- return;
292
- }
293
- Array.from(dates).map((date) => {
294
- const d = date;
295
- d.tabIndex = -1;
296
- d.classList.remove('digi-calendar__date--focused');
297
- if (d.dataset.date === this.getFullDate(this.focusedDate)) {
298
- d.focus();
299
- d.tabIndex = 0;
300
- d.classList.add('digi-calendar__date--focused');
301
- }
302
- });
303
- }, 100);
304
- }
305
- getFullDate(date) {
306
- return date.toLocaleString(text._t.locale, {
307
- day: 'numeric',
308
- month: 'numeric',
309
- year: 'numeric'
310
- });
311
- }
312
- getDateName(date) {
313
- return date.toLocaleString(text._t.locale, {
314
- year: 'numeric',
315
- month: 'long',
316
- day: 'numeric'
317
- });
318
- }
319
- isFocused(date) {
320
- if (this.dirty) {
321
- return this.isSameDate(date, this.focusedDate);
322
- }
323
- if (this.afOpenCalendarTo) {
324
- return this.isSameDate(date, this.afOpenCalendarTo);
325
- }
326
- return this.isSameMonth(date, new Date())
327
- ? this.isSameDate(date, new Date())
328
- : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1;
329
- }
330
- ariaPressed(date) {
331
- return this.selectedDates.length > 0 &&
332
- !!this.selectedDates.find((d) => this.isSameDate(d, date))
333
- ? 'true'
334
- : 'false';
335
- }
336
- selectMonth(evt) {
337
- this.onDirty();
338
- const tempDate = new Date(this.focusedDate);
339
- const selectedMonth = parseInt(evt.target.value, 10);
340
- const currentDay = tempDate.getDate();
341
- tempDate.setMonth(selectedMonth, 1);
342
- const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
343
- tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
344
- this.focusedDate = tempDate;
345
- }
346
- selectYear(evt) {
347
- this.onDirty();
348
- const selectedYear = parseInt(evt.target.value, 10);
349
- // Skydda mot ogiltiga datum som 29 februari
350
- const day = Math.min(this.focusedDate.getDate(), new Date(selectedYear, this.focusedDate.getMonth() + 1, 0).getDate());
351
- const newDate = new Date(selectedYear, this.focusedDate.getMonth(), day);
352
- this.focusedDate = newDate;
353
- }
354
- earliestSelectableYear() {
355
- if (this.afMinDate)
356
- return this.afMinDate.getFullYear();
357
- return 1900;
358
- }
359
- latestSelectableYear() {
360
- if (this.afMaxDate)
361
- return this.afMaxDate.getFullYear();
362
- return new Date(Date.now()).getFullYear() + 10;
363
- }
364
- allSelectableYears() {
365
- const allYears = [];
366
- let currentYear = this.earliestSelectableYear();
367
- while (currentYear <= this.latestSelectableYear()) {
368
- allYears.push(currentYear++);
369
- }
370
- return allYears;
371
- }
372
- componentWillLoad() {
373
- var _a;
374
- if (index$1.isValid(this.afSelectedDate)) {
375
- this.selectedDates = [this.afSelectedDate];
376
- }
377
- else if (((_a = this.afSelectedDates) === null || _a === void 0 ? void 0 : _a.length) > 0) {
378
- const valid = this.afSelectedDates.filter((d) => index$1.isValid(d));
379
- if (valid.length > 0)
380
- this.selectedDates = valid;
381
- }
382
- this.determineFocusedDate();
383
- this.drawCalendar(this.focusedDate);
384
- }
385
- async componentDidLoad() {
386
- if (index$1.isValid(this.afSelectedDate))
387
- this.selectedDates = [this.afSelectedDate];
388
- else
389
- this.afSelectedDatesChangeHandler();
390
- await customElements.whenDefined('digi-form-select');
391
- }
392
- cssDateModifiers(date) {
393
- const shownMonth = this.focusedDate.getMonth();
394
- return {
395
- 'digi-calendar__date--today': this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date),
396
- 'digi-calendar__date--disabled': this.isInAnotherMonth(date),
397
- 'digi-calendar__date--focused': this.isFocused(date),
398
- 'digi-calendar__date--selected': this.isDateSelected(date) && date.getMonth() === shownMonth,
399
- 'digi-calendar__date--not-selectable': !this.isInAnotherMonth(date) && !this.isDateSelectable(date)
400
- };
401
- }
402
- render() {
403
- return (index.h("div", { key: '1077a770af823d9e0c0f59cdc6f1fef2a49d761a', class: {
404
- 'digi-calendar': true,
405
- 'digi-calendar--hide': !this.afActive
406
- }, id: `${this.afId}-calendar` }, this.afYearSelect && (index.h("div", { key: 'cd7dfa8e20efd08afa590cd4e177ddb4c41455d8', class: "digi-calendar__header" }, index.h("div", { key: 'd1e6e956713de7fe417253be0fc1ec3aea9748b0', class: "digi-calendar__header--year-select" }, index.h("digi-form-select", { key: 'cf34feec9ed25e0251effe86b3ce393918a32eda', afLabel: text._t.calendar.month, "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
407
- this.selectMonth(evt);
408
- } }, text._t.calendar.months.map((month, index$1) => {
409
- return index.h("option", { value: index$1 }, month);
410
- })), index.h("digi-form-select", { key: 'ddcd90917d6dba315f8018c4311c852f3471d3c0', afLabel: text._t.calendar.year, "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
411
- this.selectYear(evt);
412
- } }, this.allSelectableYears().map((year) => (index.h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (index.h("div", { key: '814648caa21619240a5904a809c95024398e9741', class: "digi-calendar__header" }, index.h("div", { key: 'd3dc54a4d0172d503bff66e5171846f433755c4b', class: "digi-calendar__header--month-step" }, index.h("button", { key: '7725160aab267e5cdd70618613b2f485d5b7dd7f', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() - 1) +
413
- ', ' + text._t.calendar.previousMonth, onClick: () => this.subtractMonth() }, index.h("digi-icon-chevron-left", { key: 'e8d1dc80011cb7e79ce6af893df2fd4601d92c74', slot: "icon", "aria-hidden": "true" }), index.h("span", { key: 'ae56dadf565d819f8e89804596dbe38119fb592e', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() - 1))), index.h("div", { key: '257ac7d346e084390aba658eb7329cab913e3463', class: "digi-calendar__month" }, this.getFullMonthName(this.focusedDate.getMonth())), index.h("button", { key: '0c483763c0420f1c172c78364d2ce931ffcd116d', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() + 1) +
414
- ', ' + text._t.calendar.nextMonth, onClick: () => this.addMonth() }, index.h("span", { key: 'de4617285a713bd9baa375a99f81bb027768c947', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() + 1)), index.h("digi-icon-chevron-right", { key: '8d6252fcdd7a035ce8fe4e6f4cb468ce7935aeba', slot: "icon", "aria-hidden": "true" }))))), index.h("digi-util-keydown-handler", { key: '5080246278db71745444dcd40d0722a64e8c80b5', onAfOnDown: (e) => this.navigateHandler(e, 7), onAfOnUp: (e) => this.navigateHandler(e, -7), onAfOnLeft: (e) => this.navigateHandler(e, -1), onAfOnRight: (e) => this.navigateHandler(e, 1) }, index.h("table", { key: '9052f9c8135d95110f927c6a5a949fbd63daec7a', role: "grid", class: "digi-calendar__table" }, index.h("thead", { key: '428467866c49e65d348db796a006611542aabc02' }, index.h("tr", { key: '260024069438dadff553bc3391a37bbb533b5d11', role: "row" }, this.afShowWeekNumber && (index.h("th", { key: '2c22102011ade9125e61416ac78eaed16dec2e26', role: "columnheader", abbr: text._t.calendar.week, class: "digi-calendar__table-header-week" }, text._t.calendar.week.toLowerCase())), Object.keys(text._t.calendar.weekdays).map((day) => (index.h("th", { role: "columnheader", "aria-label": text._t.calendar.weekdays[day], abbr: text._t.calendar.weekdays[day], class: "digi-calendar__table-header" }, text._t.calendar.weekdays_short[day].toLowerCase()))))), index.h("tbody", { key: 'cbe3d290919c35ad27799c17e6b6236557dbe126', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
415
- return (index.h("tr", null, week.map((day, i) => {
416
- if (this.afShowWeekNumber && i === 0) {
417
- return (index.h("th", { role: "rowheader", "aria-label": text._t.calendar.week + ' ' + day, class: "digi-calendar__td-week digi-calendar__date--week-number", id: 'digi-calendar__week-' + day }, day));
418
- }
419
- else {
420
- return this.isInAnotherMonth(day) ? (index.h("td", null)) : (index.h("td", { role: "gridcell", class: "digi-calendar__td" }, index.h("button", { key: this.getFullDate(day), type: "button", class: Object.assign(Object.assign({}, this.cssDateModifiers(day)), { 'digi-calendar__date': true }), onClick: () => this.selectDateHandler(day), "aria-current": this.isSameDate(day, new Date()) ? 'date' : null, "aria-label": `
421
- ${!this.isDateSelectable(day)
422
- ? text._t.calendar.disabledDate
423
- : ''} ${this.getDateName(day)}
424
- `, "aria-disabled": !this.isDateSelectable(day) ? 'true' : null, tabindex: this.setTabIndex(day), "data-date": this.getFullDate(day), "aria-pressed": this.isDateSelectable(day)
425
- ? this.ariaPressed(day)
426
- : null }, index.h("span", { "aria-hidden": "true" }, day.getDate()))));
427
- }
428
- })));
429
- })))), index.h("slot", { key: 'e97e8147fc91a3b401665eeeb8db6be7036f678b', name: "calendar-footer" })));
430
- }
431
- static get watchers() { return {
432
- "focusedDate": ["focusedDateChanged"],
433
- "afOpenCalendarTo": ["afOpenCalendarToChangeHandler"],
434
- "afShowWeekNumber": ["afShowWeekNumberChangeHandler"],
435
- "afSelectedDate": ["afSelectedDateChangeHandler"],
436
- "afSelectedDates": ["afSelectedDatesChangeHandler"]
437
- }; }
438
- };
439
- Calendar.style = DigiCalendarStyle0;
440
-
441
- const iconCalendarAltCss = ".sc-digi-icon-calendar-alt-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-calendar-alt-h svg.sc-digi-icon-calendar-alt{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
442
- const DigiIconCalendarAltStyle0 = iconCalendarAltCss;
443
-
444
- const IconCalendarAlt = class {
445
- constructor(hostRef) {
446
- index.registerInstance(this, hostRef);
447
- this.afTitle = undefined;
448
- this.afDesc = undefined;
449
- this.afSvgAriaHidden = true;
450
- this.afSvgAriaLabelledby = undefined;
451
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
452
- }
453
- render() {
454
- return (index.h("svg", { key: '87e379017e361b0e21f2ea5eeeb865aa9d406c58', class: "digi-icon-calendar-alt", width: "22", height: "26", viewBox: "0 0 22 26", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
455
- ? this.afSvgAriaLabelledby
456
- : this.afTitle
457
- ? this.titleId
458
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index.h("title", { key: '2bfb6fba555a94a63b1f2e2cc398c8993807852a', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'adff2ed4fb53f4ae4e0ec6b5dd1b51e2e12a0b2e' }, this.afDesc), index.h("path", { key: '0928cefdc9310488322b5ce6b5ee334fdee1778b', class: "digi-icon-calendar-alt__shape", d: "M21.41 8.125H.59a.601.601 0 01-.59-.61V5.689C0 4.341 1.056 3.25 2.357 3.25h2.357V.61c0-.336.265-.61.59-.61h1.964c.324 0 .59.274.59.61v2.64h6.285V.61c0-.336.265-.61.59-.61h1.963c.325 0 .59.274.59.61v2.64h2.357C20.944 3.25 22 4.342 22 5.688v1.828c0 .335-.265.609-.59.609zM.59 9.75h20.82c.325 0 .59.274.59.61v13.203C22 24.907 20.944 26 19.643 26H2.357C1.056 26 0 24.908 0 23.562V10.36c0-.335.265-.609.59-.609zm5.696 10.36a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm6.285 6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm6.286 6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03z", fill: "currentColor", "fill-rule": "nonzero" })));
459
- }
460
- };
461
- IconCalendarAlt.style = DigiIconCalendarAltStyle0;
462
-
463
- exports.digi_calendar = Calendar;
464
- exports.digi_icon_calendar_alt = IconCalendarAlt;
@@ -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.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--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--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: 'e412b493af65f46ae29f328eddcb578b2541edd8', "aria-expanded": this.afExpanded ? 'true' : 'false', class: Object.assign({ 'digi-expandable-faq-item': true }, this.cssModifiers) }, index.h("header", { key: '145157d04dfdc71a3c97fa7aadf4e907407ad98d', class: "digi-expandable-faq-item__header" }, index.h(this.afHeadingLevel, { key: 'd756b0ebc4c2787eb6ccfc209332d5ab91bcd850' }, index.h("button", { key: '47ad4e697d1098e17e08f662ee8623b5cbdca1f7', 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: 'eea58e9001fbeac3d398de353c267b5e5a32ac9b', 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: 'a5bd2b8c7a79543c3abc8dc4d8e287aad2b26712', class: "digi-expandable-faq-item__header-text" }, this.afHeading)))), index.h("section", { key: '535ff0e89a64e71ca8c8cbdd2f4492e71f46e374', 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: 'e8bf194e00157e1fead5927000024f7710ef8740' }, index.h("digi-typography", { key: 'a1fe6e46cc23cf0f6602d041499e04ff5952b119' }, index.h("slot", { key: '83a8cf8b3316a072b08202f9ba8ccaead336dfaf' }))))));
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;