@designsystem-se/af 39.2.3 → 39.4.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 (1516) hide show
  1. package/components/digi-badge-notification.js +1 -1
  2. package/components/digi-badge-status.js +1 -1
  3. package/components/digi-bar-chart.js +8 -8
  4. package/components/digi-button.js +1 -1
  5. package/components/digi-calendar-datepicker.js +25 -24
  6. package/components/digi-calendar-week-view.js +5 -5
  7. package/components/digi-calendar.js +1 -1
  8. package/components/digi-chart-line.js +6 -6
  9. package/components/digi-code-block.js +1 -1
  10. package/components/digi-code-example.js +12 -12
  11. package/components/digi-code.js +1 -1
  12. package/components/digi-context-menu.js +7 -7
  13. package/components/digi-dialog.js +8 -8
  14. package/components/digi-expandable-accordion.js +3 -3
  15. package/components/digi-expandable-faq-item.js +3 -3
  16. package/components/digi-expandable-faq.js +1 -1
  17. package/components/digi-footer-card.js +1 -1
  18. package/components/digi-footer.js +7 -7
  19. package/components/digi-form-category-filter.js +4 -4
  20. package/components/digi-form-checkbox.js +1 -1
  21. package/components/digi-form-error-list.js +12 -12
  22. package/components/digi-form-fieldset.js +1 -1
  23. package/components/digi-form-file-upload.js +12 -12
  24. package/components/digi-form-filter.js +4 -4
  25. package/components/digi-form-input-search.js +9 -9
  26. package/components/digi-form-input.js +1 -1
  27. package/components/digi-form-label.js +1 -1
  28. package/components/digi-form-radiobutton.js +1 -1
  29. package/components/digi-form-radiogroup.js +5 -5
  30. package/components/digi-form-receipt.js +6 -6
  31. package/components/digi-form-select-filter.js +24 -21
  32. package/components/digi-form-select.js +1 -1
  33. package/components/digi-form-textarea.js +9 -9
  34. package/components/digi-form-validation-message.js +1 -1
  35. package/components/digi-header-avatar.js +5 -5
  36. package/components/digi-header-navigation-item.js +2 -2
  37. package/components/digi-header-navigation.js +12 -12
  38. package/components/digi-header-notification.js +3 -3
  39. package/components/digi-header.js +11 -11
  40. package/components/digi-icon-accessibility-deaf.js +3 -3
  41. package/components/digi-icon-accessibility-universal.js +3 -3
  42. package/components/digi-icon-apple.js +3 -3
  43. package/components/digi-icon-archive-outline.js +3 -3
  44. package/components/digi-icon-archive.js +3 -3
  45. package/components/digi-icon-arrow-back.js +3 -3
  46. package/components/digi-icon-arrow-down.js +3 -3
  47. package/components/digi-icon-arrow-left.js +3 -3
  48. package/components/digi-icon-arrow-right.js +1 -1
  49. package/components/digi-icon-arrow-sign-in.js +3 -3
  50. package/components/digi-icon-arrow-sign-out.js +3 -3
  51. package/components/digi-icon-arrow-up.js +3 -3
  52. package/components/digi-icon-at.js +3 -3
  53. package/components/digi-icon-bars.js +1 -1
  54. package/components/digi-icon-bell-filled.js +3 -3
  55. package/components/digi-icon-bell.js +3 -3
  56. package/components/digi-icon-book.js +3 -3
  57. package/components/digi-icon-bookmark-outline.js +3 -3
  58. package/components/digi-icon-bookmark-solid.js +3 -3
  59. package/components/digi-icon-bubble-ellipsis.js +3 -3
  60. package/components/digi-icon-bubble.js +3 -3
  61. package/components/digi-icon-building-outline.js +3 -3
  62. package/components/digi-icon-building-solid.js +3 -3
  63. package/components/digi-icon-bullseye.js +3 -3
  64. package/components/digi-icon-calculator-solid.js +3 -3
  65. package/components/digi-icon-calendar-alt-alert.js +3 -3
  66. package/components/digi-icon-calendar-alt.js +1 -1
  67. package/components/digi-icon-calendar.js +3 -3
  68. package/components/digi-icon-caret-circle-right.js +3 -3
  69. package/components/digi-icon-caret-down.js +1 -1
  70. package/components/digi-icon-caret-left.js +3 -3
  71. package/components/digi-icon-caret-right.js +3 -3
  72. package/components/digi-icon-caret-up.js +1 -1
  73. package/components/digi-icon-chart.js +1 -1
  74. package/components/digi-icon-chat.js +3 -3
  75. package/components/digi-icon-check-circle-reg-alt.js +3 -3
  76. package/components/digi-icon-check-circle-solid.js +1 -1
  77. package/components/digi-icon-check.js +1 -1
  78. package/components/digi-icon-checklist.js +3 -3
  79. package/components/digi-icon-chevron-down.js +1 -1
  80. package/components/digi-icon-chevron-left.js +1 -1
  81. package/components/digi-icon-chevron-right.js +1 -1
  82. package/components/digi-icon-chevron-up.js +3 -3
  83. package/components/digi-icon-clock.js +3 -3
  84. package/components/digi-icon-communication-play-solid.js +3 -3
  85. package/components/digi-icon-compress-alt.js +3 -3
  86. package/components/digi-icon-comunication-case.js +3 -3
  87. package/components/digi-icon-comunication-flag.js +3 -3
  88. package/components/digi-icon-comunication-graduate.js +3 -3
  89. package/components/digi-icon-comunication-play.js +3 -3
  90. package/components/digi-icon-cooperation.js +3 -3
  91. package/components/digi-icon-copy.js +1 -1
  92. package/components/digi-icon-danger-outline.js +3 -3
  93. package/components/digi-icon-download.js +3 -3
  94. package/components/digi-icon-dxa.js +3 -3
  95. package/components/digi-icon-edit.js +3 -3
  96. package/components/digi-icon-ellipsis.js +3 -3
  97. package/components/digi-icon-envelope-filled.js +3 -3
  98. package/components/digi-icon-envelope.js +3 -3
  99. package/components/digi-icon-exclamation-circle-filled.js +3 -3
  100. package/components/digi-icon-exclamation-triangle-filled.js +3 -3
  101. package/components/digi-icon-exclamation-triangle-warning.js +3 -3
  102. package/components/digi-icon-exclamation-triangle.js +3 -3
  103. package/components/digi-icon-expand-alt.js +3 -3
  104. package/components/digi-icon-external-link-alt.js +1 -1
  105. package/components/digi-icon-eye-slash.js +3 -3
  106. package/components/digi-icon-eye.js +3 -3
  107. package/components/digi-icon-facebook-square.js +3 -3
  108. package/components/digi-icon-file-add.js +2 -2
  109. package/components/digi-icon-file-document.js +3 -3
  110. package/components/digi-icon-file-excel.js +3 -3
  111. package/components/digi-icon-file-export.js +2 -2
  112. package/components/digi-icon-file-governing.js +3 -3
  113. package/components/digi-icon-file-pdf.js +3 -3
  114. package/components/digi-icon-file-powerpoint.js +3 -3
  115. package/components/digi-icon-file-remove.js +2 -2
  116. package/components/digi-icon-file-word.js +3 -3
  117. package/components/digi-icon-film.js +3 -3
  118. package/components/digi-icon-filter.js +3 -3
  119. package/components/digi-icon-folder-add.js +2 -2
  120. package/components/digi-icon-folder-directory.js +2 -2
  121. package/components/digi-icon-folder-open.js +2 -2
  122. package/components/digi-icon-folder.js +2 -2
  123. package/components/digi-icon-globe-filled.js +3 -3
  124. package/components/digi-icon-globe.js +3 -3
  125. package/components/digi-icon-headphones.js +3 -3
  126. package/components/digi-icon-heart-solid.js +3 -3
  127. package/components/digi-icon-heart.js +3 -3
  128. package/components/digi-icon-history.js +3 -3
  129. package/components/digi-icon-home.js +3 -3
  130. package/components/digi-icon-image.js +3 -3
  131. package/components/digi-icon-info-circle-solid.js +3 -3
  132. package/components/digi-icon-input-select-marker.js +1 -1
  133. package/components/digi-icon-instagram.js +3 -3
  134. package/components/digi-icon-job-suggestion.js +3 -3
  135. package/components/digi-icon-language-outline.js +3 -3
  136. package/components/digi-icon-language.js +3 -3
  137. package/components/digi-icon-laptop-phone.js +3 -3
  138. package/components/digi-icon-lattlast.js +3 -3
  139. package/components/digi-icon-licence-bus.js +3 -3
  140. package/components/digi-icon-licence-car.js +3 -3
  141. package/components/digi-icon-licence-motorcycle.js +3 -3
  142. package/components/digi-icon-licence-truck.js +3 -3
  143. package/components/digi-icon-lightbulb.js +3 -3
  144. package/components/digi-icon-linkedin-in.js +3 -3
  145. package/components/digi-icon-list-ul.js +1 -1
  146. package/components/digi-icon-lock.js +3 -3
  147. package/components/digi-icon-marker-filled.js +3 -3
  148. package/components/digi-icon-marker.js +3 -3
  149. package/components/digi-icon-media-course.js +3 -3
  150. package/components/digi-icon-media-podcast.js +3 -3
  151. package/components/digi-icon-microphone-off.js +3 -3
  152. package/components/digi-icon-microphone.js +3 -3
  153. package/components/digi-icon-minus.js +1 -1
  154. package/components/digi-icon-move.js +3 -3
  155. package/components/digi-icon-news.js +1 -1
  156. package/components/digi-icon-notification-error.js +1 -1
  157. package/components/digi-icon-notification-info.js +1 -1
  158. package/components/digi-icon-notification-succes.js +1 -1
  159. package/components/digi-icon-notification-warning.js +1 -1
  160. package/components/digi-icon-online-computervideo.js +1 -1
  161. package/components/digi-icon-online-interview.js +3 -3
  162. package/components/digi-icon-online-meeting.js +3 -3
  163. package/components/digi-icon-online-task.js +3 -3
  164. package/components/digi-icon-online-video.js +1 -1
  165. package/components/digi-icon-open-source.js +3 -3
  166. package/components/digi-icon-palette.js +3 -3
  167. package/components/digi-icon-paperclip.js +1 -1
  168. package/components/digi-icon-paste.js +2 -2
  169. package/components/digi-icon-pen.js +3 -3
  170. package/components/digi-icon-phone-hangup.js +3 -3
  171. package/components/digi-icon-phone.js +3 -3
  172. package/components/digi-icon-pinned-outline.d.ts +11 -0
  173. package/components/digi-icon-pinned-outline.js +51 -0
  174. package/components/digi-icon-pinned-solid.d.ts +11 -0
  175. package/components/digi-icon-pinned-solid.js +51 -0
  176. package/components/digi-icon-plus.js +1 -1
  177. package/components/digi-icon-pod.js +1 -1
  178. package/components/digi-icon-print.js +3 -3
  179. package/components/digi-icon-read.js +3 -3
  180. package/components/digi-icon-redo.js +3 -3
  181. package/components/digi-icon-scale.js +2 -2
  182. package/components/digi-icon-screensharing-off.js +3 -3
  183. package/components/digi-icon-screensharing.js +3 -3
  184. package/components/digi-icon-search.js +1 -1
  185. package/components/digi-icon-send-outline.js +3 -3
  186. package/components/digi-icon-send-solid.js +3 -3
  187. package/components/digi-icon-settings.js +3 -3
  188. package/components/digi-icon-share-alt.js +3 -3
  189. package/components/digi-icon-share-chain.js +3 -3
  190. package/components/digi-icon-sign.js +3 -3
  191. package/components/digi-icon-sliders-h.js +3 -3
  192. package/components/digi-icon-sokkandidat.js +3 -3
  193. package/components/digi-icon-sort-down.js +3 -3
  194. package/components/digi-icon-sort-up.js +3 -3
  195. package/components/digi-icon-sort.js +3 -3
  196. package/components/digi-icon-spinner.js +1 -1
  197. package/components/digi-icon-star-reg.js +3 -3
  198. package/components/digi-icon-star.js +3 -3
  199. package/components/digi-icon-suitcase-outline.js +3 -3
  200. package/components/digi-icon-suitcase-solid.js +3 -3
  201. package/components/digi-icon-system-assistance.js +3 -3
  202. package/components/digi-icon-table-column.js +3 -3
  203. package/components/digi-icon-table-row.js +3 -3
  204. package/components/digi-icon-table.js +1 -1
  205. package/components/digi-icon-task-done.js +3 -3
  206. package/components/digi-icon-toggle-off.js +3 -3
  207. package/components/digi-icon-toggle-on.js +3 -3
  208. package/components/digi-icon-trash.js +1 -1
  209. package/components/digi-icon-twitter.js +3 -3
  210. package/components/digi-icon-tyck-till.js +3 -3
  211. package/components/digi-icon-unlock.js +3 -3
  212. package/components/digi-icon-update.js +3 -3
  213. package/components/digi-icon-upload.js +3 -3
  214. package/components/digi-icon-user-add.js +2 -2
  215. package/components/digi-icon-user-alt.js +3 -3
  216. package/components/digi-icon-user-edit.js +2 -2
  217. package/components/digi-icon-users-solid.js +3 -3
  218. package/components/digi-icon-validation-error.js +1 -1
  219. package/components/digi-icon-validation-success.js +1 -1
  220. package/components/digi-icon-validation-warning.js +1 -1
  221. package/components/digi-icon-videocamera-off.js +3 -3
  222. package/components/digi-icon-videocamera.js +3 -3
  223. package/components/digi-icon-volume.js +3 -3
  224. package/components/digi-icon-web-tv.js +3 -3
  225. package/components/digi-icon-webinar.js +1 -1
  226. package/components/digi-icon-wifi-signal0.js +3 -3
  227. package/components/digi-icon-wifi-signal1.js +3 -3
  228. package/components/digi-icon-wifi-signal2.js +3 -3
  229. package/components/digi-icon-wifi-signal3.js +3 -3
  230. package/components/digi-icon-window.js +3 -3
  231. package/components/digi-icon-x-button-outline.js +1 -1
  232. package/components/digi-icon-x-button.js +3 -3
  233. package/components/digi-icon-x.js +1 -1
  234. package/components/digi-icon-youtube.js +3 -3
  235. package/components/digi-info-card-multi-container.js +3 -3
  236. package/components/digi-info-card-multi.js +18 -13
  237. package/components/digi-info-card.js +12 -7
  238. package/components/digi-layout-block.js +1 -1
  239. package/components/digi-layout-columns.js +1 -1
  240. package/components/digi-layout-container.js +1 -1
  241. package/components/digi-link-button.js +3 -3
  242. package/components/digi-link-external.js +1 -1
  243. package/components/digi-link-internal.js +1 -1
  244. package/components/digi-link.js +1 -1
  245. package/components/digi-list.js +4 -7
  246. package/components/digi-loader-skeleton.js +4 -4
  247. package/components/digi-loader-spinner.js +3 -3
  248. package/components/digi-logo.js +2 -2
  249. package/components/digi-media-figure.js +6 -4
  250. package/components/digi-media-image.js +1 -1
  251. package/components/digi-navigation-breadcrumbs.js +3 -3
  252. package/components/digi-navigation-pagination.js +15 -15
  253. package/components/digi-navigation-sidebar-button.js +1 -1
  254. package/components/digi-navigation-sidebar.js +7 -7
  255. package/components/digi-navigation-vertical-menu-item.js +9 -9
  256. package/components/digi-navigation-vertical-menu.js +2 -2
  257. package/components/digi-notification-alert.js +1 -1
  258. package/components/digi-notification-error-page.js +10 -10
  259. package/components/digi-progress-circle.js +11 -11
  260. package/components/digi-progress-indicator.js +7 -7
  261. package/components/digi-progress-list-item.js +9 -9
  262. package/components/digi-progress-list.js +3 -3
  263. package/components/digi-progressbar.js +3 -3
  264. package/components/digi-quote.js +4 -4
  265. package/components/digi-table.js +2 -2
  266. package/components/digi-tablist-panel.js +3 -3
  267. package/components/digi-tablist.js +9 -9
  268. package/components/digi-tag-media.js +1 -1
  269. package/components/digi-tag.js +4 -4
  270. package/components/digi-title-logo.js +6 -6
  271. package/components/digi-tools-feedback-banner.js +7 -7
  272. package/components/digi-tools-feedback-rating.js +8 -8
  273. package/components/digi-tools-feedback.js +8 -8
  274. package/components/digi-tools-theme-provider.js +2 -2
  275. package/components/digi-typography-heading-jumbo.js +2 -2
  276. package/components/digi-typography-meta.js +2 -2
  277. package/components/digi-typography-preamble.js +2 -2
  278. package/components/digi-typography-time.js +2 -2
  279. package/components/digi-typography.js +1 -1
  280. package/components/digi-util-breakpoint-observer.js +1 -1
  281. package/components/digi-util-detect-click-outside.js +2 -2
  282. package/components/digi-util-detect-focus-outside.js +2 -2
  283. package/components/digi-util-intersection-observer.js +1 -1
  284. package/components/digi-util-keydown-handler.js +1 -1
  285. package/components/digi-util-keyup-handler.js +2 -2
  286. package/components/digi-util-mutation-observer.js +2 -2
  287. package/components/digi-util-resize-observer.js +1 -1
  288. package/components/index.d.ts +4 -0
  289. package/components/index.js +6 -4
  290. package/components/{p--OfIV-on.js → p--ZotJVMi.js} +3 -3
  291. package/components/{p-noQGUY_w.js → p-AgZIYbLH.js} +3 -3
  292. package/components/{p-oVqRvXYm.js → p-B-cPdRds.js} +3 -3
  293. package/components/{p-BupNdJre.js → p-B6BX1N1X.js} +3 -3
  294. package/components/{p-BkRrSWNb.js → p-BDWWp0lK.js} +3 -3
  295. package/components/{p-Dzjkl5Kh.js → p-BH55vLLA.js} +2 -2
  296. package/components/{p-PhdhPGeA.js → p-BIlFc7I9.js} +3 -3
  297. package/components/{p-zeCQ8TGq.js → p-BJy_X4w0.js} +5 -5
  298. package/components/{p-BJgweNmE.js → p-BTZZnvGg.js} +3 -3
  299. package/components/{p-C5A2t93y.js → p-BXuj1JG9.js} +11 -11
  300. package/components/{p-1kIXcBRD.js → p-BZuzRIPp.js} +3 -3
  301. package/components/{p-0YsihRkX.js → p-Ba8nJMsy.js} +2 -2
  302. package/components/{p-BkdqrgFa.js → p-BcCdVd6n.js} +9 -9
  303. package/components/{p-Cn6V9H9D.js → p-BceTBIYs.js} +3 -3
  304. package/components/{p-BxG1tqmk.js → p-Bcjhx6qZ.js} +1 -1
  305. package/components/{p-P1LBiiXm.js → p-BeF9lc9R.js} +4 -4
  306. package/components/{p-V8bIji56.js → p-BhxvfGsw.js} +3 -3
  307. package/components/{p-CtUzKtIv.js → p-Bllr38jn.js} +3 -3
  308. package/components/{p-BISIikBQ.js → p-Bn8IPcnO.js} +3 -3
  309. package/components/{p-DQnLbEWg.js → p-BpER9_x0.js} +3 -3
  310. package/components/{p-DCCg-GBa.js → p-C0xkqI1k.js} +3 -3
  311. package/components/{p-DCcDMmpc.js → p-C18WZmoU.js} +3 -3
  312. package/components/{p-jUJnNkiJ.js → p-C3SAkRiv.js} +3 -3
  313. package/components/{p-Cf91SknN.js → p-C6T_QoAe.js} +5 -5
  314. package/components/{p-BbGPkkqr.js → p-CEr0zDQh.js} +1 -21
  315. package/components/{p-DdUXwmS6.js → p-CLebEPlN.js} +6 -6
  316. package/components/{p-B0NtWuWm.js → p-CNd0fZXZ.js} +3 -3
  317. package/components/{p-B3TKmnH5.js → p-CXIy0gWk.js} +3 -3
  318. package/components/{p-CBCmbVA7.js → p-CYt0d-NX.js} +7 -7
  319. package/components/{p-CZexDcPm.js → p-CbkoiTkB.js} +13 -13
  320. package/components/{p-BaIqYsaL.js → p-CcEp8Aqo.js} +4 -4
  321. package/components/{p-DYNoU7Ab.js → p-CdC45qBD.js} +3 -3
  322. package/components/{p-52C4taMR.js → p-Cj1jaosy.js} +3 -3
  323. package/components/{p-Du_iCC0o.js → p-Cq4yfo20.js} +3 -3
  324. package/components/{p-BaFkfL3J.js → p-D3SDqTuJ.js} +3 -3
  325. package/components/{p-0pTevzmo.js → p-D6LCrv8C.js} +1 -1
  326. package/components/{p-CSefQfv6.js → p-DDWwB4Kn.js} +3 -3
  327. package/components/{p-DuEh6-g9.js → p-DJcEhQEJ.js} +2 -2
  328. package/components/{p-BUFtpryS.js → p-DSAgUPKK.js} +3 -3
  329. package/components/{p-jKxa9rP_.js → p-DX8VKNHT.js} +3 -3
  330. package/components/{p-DB2hM8IT.js → p-DbTgZGPg.js} +1 -1
  331. package/components/{p-C2LUp3Td.js → p-De17Co06.js} +3 -3
  332. package/components/p-DjJgq63s.js +187 -0
  333. package/components/{p-CAW-ueZH.js → p-DlcO88yp.js} +3 -3
  334. package/components/p-Dn45dPPx.js +72 -0
  335. package/components/{p-DdqhvfV6.js → p-DrmWMWT9.js} +3 -3
  336. package/components/{p--uSFOD5O.js → p-Dsi5G8Ms.js} +3 -3
  337. package/components/{p-B85a4tNl.js → p-DwIsWN_0.js} +2 -2
  338. package/components/{p-C7W4tsEH.js → p-FpJ5eUea.js} +3 -3
  339. package/components/{p-CW-HnEHk.js → p-Jj7Vtyhr.js} +3 -3
  340. package/components/{p-DWk0TQi5.js → p-JzdNIAF8.js} +3 -3
  341. package/components/{p-B1hBNnkP.js → p-MlbW1aIM.js} +2 -2
  342. package/components/{p-DwuDBDrV.js → p-NPtjgGex.js} +2 -2
  343. package/components/{p-IUbLqTDz.js → p-PcePiWtS.js} +4 -4
  344. package/components/{p-_ycZeBN4.js → p-PuRFa9pe.js} +11 -1
  345. package/components/{p-Br3uVgA1.js → p-SksUyoGw.js} +3 -3
  346. package/components/{p-DDdKfPB2.js → p-Um6DAQKg.js} +1 -1
  347. package/components/{p-Din5WNxk.js → p-XCSlwMRk.js} +2 -2
  348. package/components/{p-Dp2m5Ssh.js → p-ZUaCd1lK.js} +6 -6
  349. package/components/{p-Dc8gh6yZ.js → p-fQK8ARTA.js} +3 -3
  350. package/components/{p-DEBBHpvE.js → p-geKuCVAu.js} +3 -3
  351. package/components/{p-BOuscZWN.js → p-mMUzbf2A.js} +3 -3
  352. package/components/{p-C1wkAzXH.js → p-sGVPCD-W.js} +3 -3
  353. package/components/{p-CGIRXM14.js → p-sxesGbh4.js} +2 -2
  354. package/components/p-u37CGyZ9.js +18 -0
  355. package/components/{p-DY1BY52y.js → p-vsoIIFLz.js} +3 -3
  356. package/custom-elements.json +58 -0
  357. package/dist/cjs/digi-arbetsformedlingen.cjs.js +2 -2
  358. package/dist/cjs/digi-badge-notification.cjs.entry.js +1 -1
  359. package/dist/cjs/digi-badge-status.cjs.entry.js +1 -1
  360. package/dist/cjs/digi-bar-chart.cjs.entry.js +1 -1
  361. package/dist/cjs/digi-button.cjs.entry.js +1 -1
  362. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +2671 -0
  363. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +52 -51
  364. package/dist/cjs/digi-calendar_2.cjs.entry.js +490 -0
  365. package/dist/cjs/digi-chart-line.cjs.entry.js +1 -1
  366. package/dist/cjs/digi-code-block_3.cjs.entry.js +12 -6
  367. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  368. package/dist/cjs/digi-code.cjs.entry.js +1 -1
  369. package/dist/cjs/digi-context-menu.cjs.entry.js +4 -4
  370. package/dist/cjs/digi-dialog.cjs.entry.js +12 -6
  371. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +128 -0
  372. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +126 -0
  373. package/dist/cjs/digi-expandable-faq.cjs.entry.js +1 -1
  374. package/dist/cjs/digi-footer-card.cjs.entry.js +1 -1
  375. package/dist/cjs/digi-footer.cjs.entry.js +12 -6
  376. package/dist/cjs/digi-form-category-filter.cjs.entry.js +1 -1
  377. package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
  378. package/dist/cjs/digi-form-error-list.cjs.entry.js +12 -6
  379. package/dist/cjs/digi-form-file-upload.cjs.entry.js +11 -10
  380. package/dist/cjs/digi-form-filter.cjs.entry.js +1 -1
  381. package/dist/cjs/digi-form-input-search.cjs.entry.js +7 -6
  382. package/dist/cjs/digi-form-input_8.cjs.entry.js +588 -0
  383. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +1 -1
  384. package/dist/cjs/digi-form-receipt.cjs.entry.js +12 -6
  385. package/dist/cjs/digi-form-select-filter.cjs.entry.js +22 -13
  386. package/dist/cjs/digi-form-textarea.cjs.entry.js +4 -4
  387. package/dist/cjs/digi-header-avatar.cjs.entry.js +3 -3
  388. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +2 -2
  389. package/dist/cjs/digi-header-navigation.cjs.entry.js +15 -9
  390. package/dist/cjs/digi-header-notification.cjs.entry.js +3 -3
  391. package/dist/cjs/digi-header.cjs.entry.js +13 -7
  392. package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +3 -3
  393. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +3 -3
  394. package/dist/cjs/digi-icon-apple.cjs.entry.js +3 -3
  395. package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +3 -3
  396. package/dist/cjs/digi-icon-archive.cjs.entry.js +3 -3
  397. package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +3 -3
  398. package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +3 -3
  399. package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +3 -3
  400. package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +3 -3
  401. package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +3 -3
  402. package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +3 -3
  403. package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +3 -3
  404. package/dist/cjs/digi-icon-at.cjs.entry.js +3 -3
  405. package/dist/cjs/digi-icon-bars.cjs.entry.js +3 -3
  406. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +3 -3
  407. package/dist/cjs/digi-icon-bell.cjs.entry.js +3 -3
  408. package/dist/cjs/digi-icon-book.cjs.entry.js +3 -3
  409. package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +3 -3
  410. package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +3 -3
  411. package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +3 -3
  412. package/dist/cjs/digi-icon-bubble.cjs.entry.js +3 -3
  413. package/dist/cjs/digi-icon-building-outline.cjs.entry.js +3 -3
  414. package/dist/cjs/digi-icon-building-solid.cjs.entry.js +3 -3
  415. package/dist/cjs/digi-icon-bullseye.cjs.entry.js +3 -3
  416. package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +3 -3
  417. package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +3 -3
  418. package/dist/cjs/digi-icon-calendar.cjs.entry.js +3 -3
  419. package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +3 -3
  420. package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +5 -5
  421. package/dist/cjs/digi-icon-caret-left.cjs.entry.js +3 -3
  422. package/dist/cjs/digi-icon-caret-right.cjs.entry.js +3 -3
  423. package/dist/cjs/digi-icon-chart_2.cjs.entry.js +5 -5
  424. package/dist/cjs/digi-icon-chat.cjs.entry.js +3 -3
  425. package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +3 -3
  426. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +9 -9
  427. package/dist/cjs/digi-icon-check.cjs.entry.js +3 -3
  428. package/dist/cjs/digi-icon-checklist.cjs.entry.js +3 -3
  429. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +28 -0
  430. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +51 -0
  431. package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +3 -3
  432. package/dist/cjs/digi-icon-clock.cjs.entry.js +3 -3
  433. package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +3 -3
  434. package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +3 -3
  435. package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +3 -3
  436. package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +3 -3
  437. package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +3 -3
  438. package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +3 -3
  439. package/dist/cjs/digi-icon-cooperation.cjs.entry.js +3 -3
  440. package/dist/cjs/digi-icon-copy.cjs.entry.js +3 -3
  441. package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +3 -3
  442. package/dist/cjs/digi-icon-download.cjs.entry.js +3 -3
  443. package/dist/cjs/digi-icon-dxa.cjs.entry.js +3 -3
  444. package/dist/cjs/digi-icon-edit.cjs.entry.js +3 -3
  445. package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +3 -3
  446. package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +3 -3
  447. package/dist/cjs/digi-icon-envelope.cjs.entry.js +3 -3
  448. package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +3 -3
  449. package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +3 -3
  450. package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +3 -3
  451. package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +3 -3
  452. package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +3 -3
  453. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +4 -4
  454. package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +3 -3
  455. package/dist/cjs/digi-icon-eye.cjs.entry.js +3 -3
  456. package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +3 -3
  457. package/dist/cjs/digi-icon-file-add.cjs.entry.js +2 -2
  458. package/dist/cjs/digi-icon-file-document.cjs.entry.js +3 -3
  459. package/dist/cjs/digi-icon-file-excel.cjs.entry.js +3 -3
  460. package/dist/cjs/digi-icon-file-export.cjs.entry.js +2 -2
  461. package/dist/cjs/digi-icon-file-governing.cjs.entry.js +3 -3
  462. package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +3 -3
  463. package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +3 -3
  464. package/dist/cjs/digi-icon-file-remove.cjs.entry.js +2 -2
  465. package/dist/cjs/digi-icon-file-word.cjs.entry.js +3 -3
  466. package/dist/cjs/digi-icon-film.cjs.entry.js +3 -3
  467. package/dist/cjs/digi-icon-filter.cjs.entry.js +3 -3
  468. package/dist/cjs/digi-icon-folder-add.cjs.entry.js +2 -2
  469. package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +2 -2
  470. package/dist/cjs/digi-icon-folder-open.cjs.entry.js +2 -2
  471. package/dist/cjs/digi-icon-folder.cjs.entry.js +2 -2
  472. package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +3 -3
  473. package/dist/cjs/digi-icon-globe.cjs.entry.js +3 -3
  474. package/dist/cjs/digi-icon-headphones.cjs.entry.js +3 -3
  475. package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +3 -3
  476. package/dist/cjs/digi-icon-heart.cjs.entry.js +3 -3
  477. package/dist/cjs/digi-icon-history.cjs.entry.js +3 -3
  478. package/dist/cjs/digi-icon-home.cjs.entry.js +3 -3
  479. package/dist/cjs/digi-icon-image.cjs.entry.js +3 -3
  480. package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +3 -3
  481. package/dist/cjs/digi-icon-instagram.cjs.entry.js +3 -3
  482. package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +3 -3
  483. package/dist/cjs/digi-icon-language-outline.cjs.entry.js +3 -3
  484. package/dist/cjs/digi-icon-language.cjs.entry.js +3 -3
  485. package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +3 -3
  486. package/dist/cjs/digi-icon-lattlast.cjs.entry.js +3 -3
  487. package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +3 -3
  488. package/dist/cjs/digi-icon-licence-car.cjs.entry.js +3 -3
  489. package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +3 -3
  490. package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +3 -3
  491. package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +3 -3
  492. package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +3 -3
  493. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +13 -13
  494. package/dist/cjs/digi-icon-lock.cjs.entry.js +3 -3
  495. package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +3 -3
  496. package/dist/cjs/digi-icon-marker.cjs.entry.js +3 -3
  497. package/dist/cjs/digi-icon-media-course.cjs.entry.js +3 -3
  498. package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +3 -3
  499. package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +3 -3
  500. package/dist/cjs/digi-icon-microphone.cjs.entry.js +3 -3
  501. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +5 -5
  502. package/dist/cjs/digi-icon-move.cjs.entry.js +3 -3
  503. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +9 -9
  504. package/dist/cjs/digi-icon-online-interview.cjs.entry.js +3 -3
  505. package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +3 -3
  506. package/dist/cjs/digi-icon-online-task.cjs.entry.js +3 -3
  507. package/dist/cjs/digi-icon-open-source.cjs.entry.js +3 -3
  508. package/dist/cjs/digi-icon-palette.cjs.entry.js +3 -3
  509. package/dist/cjs/digi-icon-paste.cjs.entry.js +2 -2
  510. package/dist/cjs/digi-icon-pen.cjs.entry.js +3 -3
  511. package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +3 -3
  512. package/dist/cjs/digi-icon-phone.cjs.entry.js +3 -3
  513. package/dist/cjs/digi-icon-pinned-outline.cjs.entry.js +28 -0
  514. package/dist/cjs/digi-icon-pinned-solid.cjs.entry.js +28 -0
  515. package/dist/cjs/digi-icon-print.cjs.entry.js +3 -3
  516. package/dist/cjs/digi-icon-read.cjs.entry.js +3 -3
  517. package/dist/cjs/digi-icon-redo.cjs.entry.js +3 -3
  518. package/dist/cjs/digi-icon-scale.cjs.entry.js +2 -2
  519. package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +3 -3
  520. package/dist/cjs/digi-icon-screensharing.cjs.entry.js +3 -3
  521. package/dist/cjs/digi-icon-search.cjs.entry.js +3 -3
  522. package/dist/cjs/digi-icon-send-outline.cjs.entry.js +3 -3
  523. package/dist/cjs/digi-icon-send-solid.cjs.entry.js +3 -3
  524. package/dist/cjs/digi-icon-settings.cjs.entry.js +3 -3
  525. package/dist/cjs/digi-icon-share-alt.cjs.entry.js +3 -3
  526. package/dist/cjs/digi-icon-share-chain.cjs.entry.js +3 -3
  527. package/dist/cjs/digi-icon-sign.cjs.entry.js +3 -3
  528. package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +3 -3
  529. package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +3 -3
  530. package/dist/cjs/digi-icon-sort-down.cjs.entry.js +3 -3
  531. package/dist/cjs/digi-icon-sort-up.cjs.entry.js +3 -3
  532. package/dist/cjs/digi-icon-sort.cjs.entry.js +3 -3
  533. package/dist/cjs/digi-icon-spinner.cjs.entry.js +3 -3
  534. package/dist/cjs/digi-icon-star-reg.cjs.entry.js +3 -3
  535. package/dist/cjs/digi-icon-star.cjs.entry.js +3 -3
  536. package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +3 -3
  537. package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +3 -3
  538. package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +3 -3
  539. package/dist/cjs/digi-icon-table-column.cjs.entry.js +3 -3
  540. package/dist/cjs/digi-icon-table-row.cjs.entry.js +3 -3
  541. package/dist/cjs/digi-icon-task-done.cjs.entry.js +3 -3
  542. package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +3 -3
  543. package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +3 -3
  544. package/dist/cjs/digi-icon-twitter.cjs.entry.js +3 -3
  545. package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +3 -3
  546. package/dist/cjs/digi-icon-unlock.cjs.entry.js +3 -3
  547. package/dist/cjs/digi-icon-update.cjs.entry.js +3 -3
  548. package/dist/cjs/digi-icon-upload.cjs.entry.js +3 -3
  549. package/dist/cjs/digi-icon-user-add.cjs.entry.js +2 -2
  550. package/dist/cjs/digi-icon-user-alt.cjs.entry.js +3 -3
  551. package/dist/cjs/digi-icon-user-edit.cjs.entry.js +2 -2
  552. package/dist/cjs/digi-icon-users-solid.cjs.entry.js +3 -3
  553. package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +3 -3
  554. package/dist/cjs/digi-icon-videocamera.cjs.entry.js +3 -3
  555. package/dist/cjs/digi-icon-volume.cjs.entry.js +3 -3
  556. package/dist/cjs/digi-icon-web-tv.cjs.entry.js +3 -3
  557. package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +3 -3
  558. package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +3 -3
  559. package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +3 -3
  560. package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +3 -3
  561. package/dist/cjs/digi-icon-window.cjs.entry.js +3 -3
  562. package/dist/cjs/digi-icon-x-button.cjs.entry.js +3 -3
  563. package/dist/cjs/digi-icon-x.cjs.entry.js +3 -3
  564. package/dist/cjs/digi-icon-youtube.cjs.entry.js +3 -3
  565. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +2 -2
  566. package/dist/cjs/digi-info-card-multi.cjs.entry.js +8 -3
  567. package/dist/cjs/digi-info-card.cjs.entry.js +8 -3
  568. package/dist/cjs/digi-layout-block_2.cjs.entry.js +3 -3
  569. package/dist/cjs/digi-layout-columns.cjs.entry.js +2 -2
  570. package/dist/cjs/digi-link-button.cjs.entry.js +2 -2
  571. package/dist/cjs/digi-link-internal.cjs.entry.js +3 -3
  572. package/dist/cjs/digi-link.cjs.entry.js +2 -2
  573. package/dist/cjs/digi-list.cjs.entry.js +2 -5
  574. package/dist/cjs/digi-loader-skeleton.cjs.entry.js +4 -4
  575. package/dist/cjs/digi-loader-spinner.cjs.entry.js +2 -2
  576. package/dist/cjs/digi-logo.cjs.entry.js +2 -2
  577. package/dist/cjs/digi-media-figure.cjs.entry.js +5 -4
  578. package/dist/cjs/digi-media-image_2.cjs.entry.js +4 -4
  579. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +3 -3
  580. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +18 -12
  581. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +2 -2
  582. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +3 -3
  583. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +7 -7
  584. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +2 -2
  585. package/dist/cjs/digi-notification-alert.cjs.entry.js +14 -8
  586. package/dist/cjs/digi-notification-error-page.cjs.entry.js +15 -9
  587. package/dist/cjs/digi-progress-circle.cjs.entry.js +9 -9
  588. package/dist/cjs/digi-progress-indicator.cjs.entry.js +4 -4
  589. package/dist/cjs/digi-progress-list-item.cjs.entry.js +6 -6
  590. package/dist/cjs/digi-progress-list.cjs.entry.js +2 -2
  591. package/dist/cjs/digi-progressbar.cjs.entry.js +3 -3
  592. package/dist/cjs/digi-quote.cjs.entry.js +2 -2
  593. package/dist/cjs/digi-table.cjs.entry.js +2 -2
  594. package/dist/cjs/digi-tablist-panel.cjs.entry.js +3 -3
  595. package/dist/cjs/digi-tablist.cjs.entry.js +6 -6
  596. package/dist/cjs/digi-tag-media.cjs.entry.js +3 -3
  597. package/dist/cjs/digi-tag.cjs.entry.js +2 -2
  598. package/dist/cjs/digi-title-logo.cjs.entry.js +13 -7
  599. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +2 -2
  600. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +2 -2
  601. package/dist/cjs/digi-tools-feedback.cjs.entry.js +13 -7
  602. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +2 -2
  603. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +46 -0
  604. package/dist/cjs/digi-typography-meta.cjs.entry.js +2 -2
  605. package/dist/cjs/digi-typography-preamble.cjs.entry.js +2 -2
  606. package/dist/cjs/digi-typography-time.cjs.entry.js +2 -2
  607. package/dist/cjs/digi-typography.cjs.entry.js +22 -0
  608. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +2 -2
  609. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +2 -2
  610. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +2 -2
  611. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +81 -0
  612. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +2 -2
  613. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +2 -2
  614. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +2 -2
  615. package/dist/cjs/expandable-accordion-header-level.enum-CjL9V3Kt.js +11 -0
  616. package/dist/cjs/expandable-faq-item-variation.enum-aKkYAQgd.js +18 -0
  617. package/dist/cjs/{form-validation-message-variation.enum-DgkifAnP.js → form-file-upload-variation.enum-xcEOoggr.js} +0 -7
  618. package/dist/cjs/form-input-search-variation.enum-VVfvlVeM.js +8 -0
  619. package/dist/cjs/{form-input-type.enum-CCCcY8gv.js → form-input-type.enum-DvF_MTHK.js} +0 -7
  620. package/dist/cjs/form-select-variation.enum-Chx0EWzg.js +44 -0
  621. package/dist/cjs/form-validation-message-variation.enum-BA5nmCiw.js +8 -0
  622. package/dist/cjs/{index-DUQtADgG.js → index-Bdlw-Iuy.js} +19 -189
  623. package/dist/cjs/{index-Cn1hHaSy.js → index-D36hZyeW.js} +47 -3
  624. package/dist/cjs/index-Snltmefx.js +174 -0
  625. package/dist/cjs/index-r0sb9TCr.js +66 -0
  626. package/dist/cjs/index.cjs.js +68 -62
  627. package/dist/cjs/info-card-multi-type.enum-DlNiPNfH.js +18 -0
  628. package/dist/cjs/{info-card-variation.enum-B1cqmknX.js → info-card-variation.enum-prsWZkWC.js} +10 -0
  629. package/dist/cjs/loader.cjs.js +2 -2
  630. package/dist/cjs/typography-heading-jumbo-variation.enum-Di1Jeh0G.js +17 -0
  631. package/dist/cjs/{typography-variation.enum-CVUvogxJ.js → typography-variation.enum-C4i5DFTI.js} +0 -106
  632. package/dist/collection/collection-manifest.json +2 -0
  633. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +2 -2
  634. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +28 -6
  635. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +2 -2
  636. package/dist/collection/components/_form/form-label/form-label.css +10 -13
  637. package/dist/collection/components/_form/form-label/form-label.js +1 -1
  638. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +10 -7
  639. package/dist/collection/components/_form/form-textarea/form-textarea.js +3 -3
  640. package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
  641. package/dist/collection/components/_header/header/header.js +1 -1
  642. package/dist/collection/components/_header/header-avatar/header-avatar.css +2 -2
  643. package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
  644. package/dist/collection/components/_header/header-navigation/header-navigation.js +3 -3
  645. package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
  646. package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
  647. package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
  648. package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
  649. package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
  650. package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
  651. package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
  652. package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
  653. package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
  654. package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
  655. package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
  656. package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
  657. package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
  658. package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
  659. package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
  660. package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
  661. package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
  662. package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
  663. package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
  664. package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
  665. package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
  666. package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
  667. package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
  668. package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
  669. package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
  670. package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
  671. package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
  672. package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
  673. package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
  674. package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
  675. package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
  676. package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
  677. package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
  678. package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
  679. package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
  680. package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
  681. package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
  682. package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
  683. package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
  684. package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
  685. package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
  686. package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
  687. package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
  688. package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
  689. package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
  690. package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
  691. package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
  692. package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
  693. package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
  694. package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
  695. package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
  696. package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
  697. package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
  698. package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
  699. package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
  700. package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
  701. package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
  702. package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
  703. package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
  704. package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
  705. package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
  706. package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
  707. package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
  708. package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
  709. package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
  710. package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
  711. package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
  712. package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
  713. package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
  714. package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
  715. package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
  716. package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
  717. package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
  718. package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
  719. package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
  720. package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
  721. package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
  722. package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
  723. package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
  724. package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
  725. package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
  726. package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
  727. package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
  728. package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
  729. package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
  730. package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
  731. package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
  732. package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
  733. package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
  734. package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
  735. package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
  736. package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
  737. package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
  738. package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
  739. package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
  740. package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
  741. package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
  742. package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
  743. package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
  744. package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
  745. package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
  746. package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
  747. package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
  748. package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
  749. package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
  750. package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
  751. package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
  752. package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
  753. package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
  754. package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
  755. package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
  756. package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
  757. package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
  758. package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
  759. package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
  760. package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
  761. package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
  762. package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
  763. package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
  764. package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
  765. package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
  766. package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
  767. package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
  768. package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
  769. package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
  770. package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
  771. package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
  772. package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
  773. package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
  774. package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
  775. package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
  776. package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
  777. package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
  778. package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
  779. package/dist/collection/components/_icon/icon-pinned-outline/icon-pinned-outline.css +15 -0
  780. package/dist/collection/components/_icon/icon-pinned-outline/icon-pinned-outline.js +129 -0
  781. package/dist/collection/components/_icon/icon-pinned-solid/icon-pinned-solid.css +15 -0
  782. package/dist/collection/components/_icon/icon-pinned-solid/icon-pinned-solid.js +129 -0
  783. package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
  784. package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
  785. package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
  786. package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
  787. package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
  788. package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
  789. package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
  790. package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
  791. package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
  792. package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
  793. package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
  794. package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
  795. package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
  796. package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
  797. package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
  798. package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
  799. package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
  800. package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
  801. package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
  802. package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
  803. package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
  804. package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
  805. package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
  806. package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
  807. package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
  808. package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
  809. package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
  810. package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
  811. package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
  812. package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
  813. package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
  814. package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
  815. package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
  816. package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
  817. package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
  818. package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
  819. package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
  820. package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
  821. package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
  822. package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
  823. package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
  824. package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
  825. package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
  826. package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
  827. package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
  828. package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
  829. package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
  830. package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
  831. package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
  832. package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
  833. package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
  834. package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
  835. package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
  836. package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
  837. package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
  838. package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
  839. package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
  840. package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
  841. package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
  842. package/dist/collection/components/_info-card/info-card/info-card.js +10 -3
  843. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +10 -3
  844. package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +2 -1
  845. package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
  846. package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
  847. package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
  848. package/dist/collection/components/_link/link/link.js +1 -1
  849. package/dist/collection/components/_link/link-button/link-button.js +1 -1
  850. package/dist/collection/components/_link/link-external/link-external.js +1 -1
  851. package/dist/collection/components/_link/link-internal/link-internal.css +2 -2
  852. package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
  853. package/dist/collection/components/_list/list/list.js +1 -4
  854. package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
  855. package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
  856. package/dist/collection/components/_logo/logo/logo.js +1 -1
  857. package/dist/collection/components/_logo/title-logo/title-logo.js +1 -1
  858. package/dist/collection/components/_media/media-figure/media-figure.css +19 -1
  859. package/dist/collection/components/_media/media-figure/media-figure.js +25 -2
  860. package/dist/collection/components/_media/media-image/media-image.js +2 -2
  861. package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
  862. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +3 -3
  863. package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
  864. package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
  865. package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
  866. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  867. package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
  868. package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
  869. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
  870. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  871. package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
  872. package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
  873. package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
  874. package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
  875. package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
  876. package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
  877. package/dist/collection/components/_quote/quote/quote.js +1 -1
  878. package/dist/collection/components/_table/table/table.js +1 -1
  879. package/dist/collection/components/_tag/tag/tag.js +1 -1
  880. package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
  881. package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
  882. package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
  883. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
  884. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -1
  885. package/dist/collection/components/_typography/typography/typography.js +1 -1
  886. package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
  887. package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
  888. package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
  889. package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
  890. package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
  891. package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
  892. package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
  893. package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
  894. package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
  895. package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
  896. package/dist/collection/components/_util/util-mutation-observer/util-mutation-observer.js +1 -1
  897. package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
  898. package/dist/collection/design-tokens/components/_logo.variables.scss +2 -0
  899. package/dist/collection/styles/src/index.scss +1 -1
  900. package/dist/collection/styles/src/themes/_numeric-common.mixin.scss +1 -1
  901. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +2 -0
  902. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  903. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  904. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  905. package/dist/digi-arbetsformedlingen/{p-e52b0375.entry.js → p-019d44ce.entry.js} +1 -1
  906. package/dist/digi-arbetsformedlingen/{p-21cb5136.entry.js → p-01f31a3f.entry.js} +1 -1
  907. package/dist/digi-arbetsformedlingen/{p-48290eeb.entry.js → p-059881c2.entry.js} +1 -1
  908. package/dist/digi-arbetsformedlingen/{p-3267691f.entry.js → p-0665f593.entry.js} +1 -1
  909. package/dist/digi-arbetsformedlingen/{p-e376ef67.entry.js → p-07bab7b6.entry.js} +1 -1
  910. package/dist/digi-arbetsformedlingen/{p-a8aabd0d.entry.js → p-0811f462.entry.js} +1 -1
  911. package/dist/digi-arbetsformedlingen/p-0a33af99.entry.js +1 -0
  912. package/dist/digi-arbetsformedlingen/p-0a5f6887.entry.js +1 -0
  913. package/dist/digi-arbetsformedlingen/{p-2e7b03b0.entry.js → p-0a85e169.entry.js} +1 -1
  914. package/dist/digi-arbetsformedlingen/{p-99f6ee4e.entry.js → p-0af02172.entry.js} +1 -1
  915. package/dist/digi-arbetsformedlingen/p-0b044c53.entry.js +1 -0
  916. package/dist/digi-arbetsformedlingen/{p-2187ef80.entry.js → p-0b3b42b0.entry.js} +1 -1
  917. package/dist/digi-arbetsformedlingen/p-0c4e6410.entry.js +1 -0
  918. package/dist/digi-arbetsformedlingen/p-0d9480a8.entry.js +1 -0
  919. package/dist/digi-arbetsformedlingen/{p-4dd23355.entry.js → p-0dc98b5e.entry.js} +1 -1
  920. package/dist/digi-arbetsformedlingen/{p-9a11a125.entry.js → p-0e49b3e8.entry.js} +1 -1
  921. package/dist/digi-arbetsformedlingen/{p-4ca25777.entry.js → p-0feb8f78.entry.js} +1 -1
  922. package/dist/digi-arbetsformedlingen/{p-f63550f1.entry.js → p-1036154c.entry.js} +1 -1
  923. package/dist/digi-arbetsformedlingen/{p-71a36a21.entry.js → p-104dceb6.entry.js} +1 -1
  924. package/dist/digi-arbetsformedlingen/{p-62c7ee21.entry.js → p-11579e0e.entry.js} +1 -1
  925. package/dist/digi-arbetsformedlingen/{p-24951793.entry.js → p-12026b79.entry.js} +1 -1
  926. package/dist/digi-arbetsformedlingen/{p-6a06b14f.entry.js → p-1269d7bd.entry.js} +1 -1
  927. package/dist/digi-arbetsformedlingen/{p-f866ad1f.entry.js → p-13aca3bd.entry.js} +1 -1
  928. package/dist/digi-arbetsformedlingen/{p-bb123c61.entry.js → p-13d43256.entry.js} +1 -1
  929. package/dist/digi-arbetsformedlingen/p-13f8ae49.entry.js +1 -0
  930. package/dist/digi-arbetsformedlingen/{p-e4b2e4d3.entry.js → p-13fe9db1.entry.js} +1 -1
  931. package/dist/digi-arbetsformedlingen/p-15ef4e28.entry.js +1 -0
  932. package/dist/digi-arbetsformedlingen/{p-a5118bc8.entry.js → p-1619e2a9.entry.js} +1 -1
  933. package/dist/digi-arbetsformedlingen/{p-0e18dc69.entry.js → p-176e8bb1.entry.js} +1 -1
  934. package/dist/digi-arbetsformedlingen/{p-b9ae3c3d.entry.js → p-17bc0d9e.entry.js} +1 -1
  935. package/dist/digi-arbetsformedlingen/{p-82f0b85a.entry.js → p-188f61a6.entry.js} +1 -1
  936. package/dist/digi-arbetsformedlingen/{p-2eea1661.entry.js → p-1943abb9.entry.js} +1 -1
  937. package/dist/digi-arbetsformedlingen/{p-c7fcf4c0.entry.js → p-19ed9040.entry.js} +1 -1
  938. package/dist/digi-arbetsformedlingen/p-1a6b10e7.entry.js +1 -0
  939. package/dist/digi-arbetsformedlingen/{p-2a4be324.entry.js → p-1b1fd776.entry.js} +1 -1
  940. package/dist/digi-arbetsformedlingen/{p-e6ec44dd.entry.js → p-1b7f7b2c.entry.js} +1 -1
  941. package/dist/digi-arbetsformedlingen/{p-d306dcc2.entry.js → p-1bd82acc.entry.js} +1 -1
  942. package/dist/digi-arbetsformedlingen/{p-a74f6719.entry.js → p-1c4bed36.entry.js} +1 -1
  943. package/dist/digi-arbetsformedlingen/{p-b2d712ce.entry.js → p-1e6ce5a6.entry.js} +1 -1
  944. package/dist/digi-arbetsformedlingen/{p-18b52cf2.entry.js → p-1ebe7bbc.entry.js} +1 -1
  945. package/dist/digi-arbetsformedlingen/{p-aedcf116.entry.js → p-219e9261.entry.js} +1 -1
  946. package/dist/digi-arbetsformedlingen/{p-7ce5cc4c.entry.js → p-21a45589.entry.js} +1 -1
  947. package/dist/digi-arbetsformedlingen/{p-aa4c09a4.entry.js → p-21ab89a6.entry.js} +1 -1
  948. package/dist/digi-arbetsformedlingen/{p-322ff73a.entry.js → p-22be1835.entry.js} +1 -1
  949. package/dist/digi-arbetsformedlingen/{p-4061c1aa.entry.js → p-2961a31b.entry.js} +1 -1
  950. package/dist/digi-arbetsformedlingen/{p-40d900dd.entry.js → p-2a73a9e6.entry.js} +1 -1
  951. package/dist/digi-arbetsformedlingen/{p-e3448802.entry.js → p-2c21a8a8.entry.js} +1 -1
  952. package/dist/digi-arbetsformedlingen/p-2dd51740.entry.js +1 -0
  953. package/dist/digi-arbetsformedlingen/{p-178f511d.entry.js → p-2df87be0.entry.js} +1 -1
  954. package/dist/digi-arbetsformedlingen/{p-379d52d7.entry.js → p-2e2d6577.entry.js} +1 -1
  955. package/dist/digi-arbetsformedlingen/{p-6c1c6267.entry.js → p-2e4004ec.entry.js} +1 -1
  956. package/dist/digi-arbetsformedlingen/{p-1614e405.entry.js → p-31893131.entry.js} +1 -1
  957. package/dist/digi-arbetsformedlingen/{p-07b783f7.entry.js → p-35fddc70.entry.js} +1 -1
  958. package/dist/digi-arbetsformedlingen/{p-e083b072.entry.js → p-36821a1f.entry.js} +1 -1
  959. package/dist/digi-arbetsformedlingen/{p-0b4f9561.entry.js → p-37182dbc.entry.js} +1 -1
  960. package/dist/digi-arbetsformedlingen/{p-ad329338.entry.js → p-38c9aa02.entry.js} +1 -1
  961. package/dist/digi-arbetsformedlingen/{p-800141af.entry.js → p-399dc36d.entry.js} +1 -1
  962. package/dist/digi-arbetsformedlingen/{p-9145bf7a.entry.js → p-39d76160.entry.js} +1 -1
  963. package/dist/digi-arbetsformedlingen/p-3ae7381a.entry.js +1 -0
  964. package/dist/digi-arbetsformedlingen/{p-ff94e924.entry.js → p-3d092818.entry.js} +1 -1
  965. package/dist/digi-arbetsformedlingen/p-3f474e45.entry.js +1 -0
  966. package/dist/digi-arbetsformedlingen/{p-44e0607a.entry.js → p-3fb4691c.entry.js} +1 -1
  967. package/dist/digi-arbetsformedlingen/{p-2a778743.entry.js → p-4007bd1a.entry.js} +1 -1
  968. package/dist/digi-arbetsformedlingen/{p-f1541030.entry.js → p-40f9e817.entry.js} +1 -1
  969. package/dist/digi-arbetsformedlingen/{p-db633609.entry.js → p-4144bb1a.entry.js} +1 -1
  970. package/dist/digi-arbetsformedlingen/{p-30ba7ac3.entry.js → p-4244b563.entry.js} +1 -1
  971. package/dist/digi-arbetsformedlingen/{p-368a5bea.entry.js → p-42f890e7.entry.js} +1 -1
  972. package/dist/digi-arbetsformedlingen/{p-aa3d5f76.entry.js → p-431a55ed.entry.js} +1 -1
  973. package/dist/digi-arbetsformedlingen/{p-fae174e9.entry.js → p-43391797.entry.js} +1 -1
  974. package/dist/digi-arbetsformedlingen/{p-7d59ccc3.entry.js → p-441cfb99.entry.js} +1 -1
  975. package/dist/digi-arbetsformedlingen/{p-2613c3ab.entry.js → p-44b82239.entry.js} +1 -1
  976. package/dist/digi-arbetsformedlingen/{p-291d80fd.entry.js → p-45347255.entry.js} +1 -1
  977. package/dist/digi-arbetsformedlingen/{p-dabcf5b4.entry.js → p-45441deb.entry.js} +1 -1
  978. package/dist/digi-arbetsformedlingen/{p-6cb8d615.entry.js → p-45867204.entry.js} +1 -1
  979. package/dist/digi-arbetsformedlingen/{p-69594580.entry.js → p-466265a5.entry.js} +1 -1
  980. package/dist/digi-arbetsformedlingen/p-48f73078.entry.js +1 -0
  981. package/dist/digi-arbetsformedlingen/{p-ffe8578c.entry.js → p-48f9e4ac.entry.js} +1 -1
  982. package/dist/digi-arbetsformedlingen/{p-d63d588f.entry.js → p-49253f08.entry.js} +1 -1
  983. package/dist/digi-arbetsformedlingen/{p-8fe026d9.entry.js → p-49b9442e.entry.js} +1 -1
  984. package/dist/digi-arbetsformedlingen/p-4a6ea898.entry.js +1 -0
  985. package/dist/digi-arbetsformedlingen/p-4aad19ca.entry.js +1 -0
  986. package/dist/digi-arbetsformedlingen/{p-c6573e5d.entry.js → p-4af3b7fb.entry.js} +1 -1
  987. package/dist/digi-arbetsformedlingen/p-4bc1769f.entry.js +1 -0
  988. package/dist/digi-arbetsformedlingen/{p-d11f831f.entry.js → p-4d4d6437.entry.js} +1 -1
  989. package/dist/digi-arbetsformedlingen/{p-1a211ec6.entry.js → p-4f1ce81f.entry.js} +1 -1
  990. package/dist/digi-arbetsformedlingen/{p-a1deddb1.entry.js → p-4ffde3b9.entry.js} +1 -1
  991. package/dist/digi-arbetsformedlingen/p-50382699.entry.js +1 -0
  992. package/dist/digi-arbetsformedlingen/{p-63ef5e5d.entry.js → p-50951a92.entry.js} +1 -1
  993. package/dist/digi-arbetsformedlingen/{p-97669c38.entry.js → p-531f0a36.entry.js} +1 -1
  994. package/dist/digi-arbetsformedlingen/{p-8e065a49.entry.js → p-54b043ef.entry.js} +1 -1
  995. package/dist/digi-arbetsformedlingen/p-54ebc070.entry.js +1 -0
  996. package/dist/digi-arbetsformedlingen/{p-d6db185c.entry.js → p-55848121.entry.js} +1 -1
  997. package/dist/digi-arbetsformedlingen/{p-c93d9638.entry.js → p-558bf076.entry.js} +1 -1
  998. package/dist/digi-arbetsformedlingen/{p-abeb2ae6.entry.js → p-571eb2d2.entry.js} +1 -1
  999. package/dist/digi-arbetsformedlingen/{p-b61bb68d.entry.js → p-57651202.entry.js} +1 -1
  1000. package/dist/digi-arbetsformedlingen/p-589ee476.entry.js +1 -0
  1001. package/dist/digi-arbetsformedlingen/{p-82a5250b.entry.js → p-59725f68.entry.js} +1 -1
  1002. package/dist/digi-arbetsformedlingen/p-5b365700.entry.js +1 -0
  1003. package/dist/digi-arbetsformedlingen/{p-0e4c3542.entry.js → p-5cc2f6ca.entry.js} +1 -1
  1004. package/dist/digi-arbetsformedlingen/{p-ff0a2f84.entry.js → p-5dff297b.entry.js} +1 -1
  1005. package/dist/digi-arbetsformedlingen/{p-391de403.entry.js → p-5e9e105a.entry.js} +1 -1
  1006. package/dist/digi-arbetsformedlingen/{p-36e544fd.entry.js → p-6062ad49.entry.js} +1 -1
  1007. package/dist/digi-arbetsformedlingen/p-60714029.entry.js +1 -0
  1008. package/dist/digi-arbetsformedlingen/{p-62f9f5a0.entry.js → p-61b1914b.entry.js} +1 -1
  1009. package/dist/digi-arbetsformedlingen/{p-d1e0380b.entry.js → p-637283b8.entry.js} +1 -1
  1010. package/dist/digi-arbetsformedlingen/{p-c07dad2f.entry.js → p-63ce48d1.entry.js} +1 -1
  1011. package/dist/digi-arbetsformedlingen/p-647d58f1.entry.js +1 -0
  1012. package/dist/digi-arbetsformedlingen/{p-333ce113.entry.js → p-66493066.entry.js} +1 -1
  1013. package/dist/digi-arbetsformedlingen/{p-d169bba2.entry.js → p-6937f9ae.entry.js} +1 -1
  1014. package/dist/digi-arbetsformedlingen/{p-63bbb611.entry.js → p-6c447196.entry.js} +1 -1
  1015. package/dist/digi-arbetsformedlingen/{p-0003a1b4.entry.js → p-6eb6ea7b.entry.js} +1 -1
  1016. package/dist/digi-arbetsformedlingen/{p-6557a26c.entry.js → p-6edbd98a.entry.js} +1 -1
  1017. package/dist/digi-arbetsformedlingen/{p-a29b6fff.entry.js → p-6f9db6b3.entry.js} +1 -1
  1018. package/dist/digi-arbetsformedlingen/{p-e41abde9.entry.js → p-7223b1cb.entry.js} +1 -1
  1019. package/dist/digi-arbetsformedlingen/{p-3642b109.entry.js → p-72b625d9.entry.js} +1 -1
  1020. package/dist/digi-arbetsformedlingen/{p-c345e105.entry.js → p-75825d6d.entry.js} +1 -1
  1021. package/dist/digi-arbetsformedlingen/{p-6b99ac0c.entry.js → p-75c6f0e9.entry.js} +1 -1
  1022. package/dist/digi-arbetsformedlingen/{p-d55fca6c.entry.js → p-77e3532a.entry.js} +1 -1
  1023. package/dist/digi-arbetsformedlingen/{p-50fd3a59.entry.js → p-7854e79f.entry.js} +1 -1
  1024. package/dist/digi-arbetsformedlingen/{p-7e9dec30.entry.js → p-78f7c896.entry.js} +1 -1
  1025. package/dist/digi-arbetsformedlingen/{p-5be00cb0.entry.js → p-7e1ed177.entry.js} +1 -1
  1026. package/dist/digi-arbetsformedlingen/p-7e74e797.entry.js +1 -0
  1027. package/dist/digi-arbetsformedlingen/{p-e6976f43.entry.js → p-7f55495a.entry.js} +1 -1
  1028. package/dist/digi-arbetsformedlingen/{p-ce760d56.entry.js → p-7fe8fe44.entry.js} +1 -1
  1029. package/dist/digi-arbetsformedlingen/{p-fb20fc2b.entry.js → p-80218be2.entry.js} +1 -1
  1030. package/dist/digi-arbetsformedlingen/{p-4149264b.entry.js → p-819f40cb.entry.js} +1 -1
  1031. package/dist/digi-arbetsformedlingen/p-81a3bbe3.entry.js +1 -0
  1032. package/dist/digi-arbetsformedlingen/{p-07cd5ff6.entry.js → p-820e96b5.entry.js} +1 -1
  1033. package/dist/digi-arbetsformedlingen/p-83e88889.entry.js +1 -0
  1034. package/dist/digi-arbetsformedlingen/{p-f069b6a2.entry.js → p-85aa8a2f.entry.js} +1 -1
  1035. package/dist/digi-arbetsformedlingen/{p-b746c5f8.entry.js → p-89c2fb8c.entry.js} +1 -1
  1036. package/dist/digi-arbetsformedlingen/{p-d8907731.entry.js → p-8bfc904c.entry.js} +1 -1
  1037. package/dist/digi-arbetsformedlingen/p-8c0ffb8c.entry.js +1 -0
  1038. package/dist/digi-arbetsformedlingen/p-8c96d776.entry.js +1 -0
  1039. package/dist/digi-arbetsformedlingen/{p-78001766.entry.js → p-8c982300.entry.js} +1 -1
  1040. package/dist/digi-arbetsformedlingen/p-8e9929b1.entry.js +1 -0
  1041. package/dist/digi-arbetsformedlingen/{p-3424c4a9.entry.js → p-905ced37.entry.js} +1 -1
  1042. package/dist/digi-arbetsformedlingen/p-906b9e83.entry.js +1 -0
  1043. package/dist/digi-arbetsformedlingen/{p-1430039a.entry.js → p-915ccbaf.entry.js} +1 -1
  1044. package/dist/digi-arbetsformedlingen/{p-51b028d6.entry.js → p-9177a588.entry.js} +1 -1
  1045. package/dist/digi-arbetsformedlingen/p-92cc7b1b.entry.js +1 -0
  1046. package/dist/digi-arbetsformedlingen/p-92daf877.entry.js +1 -0
  1047. package/dist/digi-arbetsformedlingen/{p-870a00f8.entry.js → p-93134a54.entry.js} +1 -1
  1048. package/dist/digi-arbetsformedlingen/{p-0d72dd25.entry.js → p-93316468.entry.js} +1 -1
  1049. package/dist/digi-arbetsformedlingen/p-935b8803.entry.js +1 -0
  1050. package/dist/digi-arbetsformedlingen/{p-24028559.entry.js → p-94affd17.entry.js} +1 -1
  1051. package/dist/digi-arbetsformedlingen/{p-c76f56d9.entry.js → p-95904c37.entry.js} +1 -1
  1052. package/dist/digi-arbetsformedlingen/p-9671293e.entry.js +1 -0
  1053. package/dist/digi-arbetsformedlingen/{p-984ce8c2.entry.js → p-967fae6b.entry.js} +1 -1
  1054. package/dist/digi-arbetsformedlingen/p-97194afa.entry.js +1 -0
  1055. package/dist/digi-arbetsformedlingen/{p-eab48785.entry.js → p-99e8a72f.entry.js} +1 -1
  1056. package/dist/digi-arbetsformedlingen/{p-f6b4acb7.entry.js → p-99f260b4.entry.js} +1 -1
  1057. package/dist/digi-arbetsformedlingen/{p-2957148d.entry.js → p-9a376eb4.entry.js} +1 -1
  1058. package/dist/digi-arbetsformedlingen/{p-7d0555f8.entry.js → p-9d53893f.entry.js} +1 -1
  1059. package/dist/digi-arbetsformedlingen/{p-424ad06e.entry.js → p-9d7fcb26.entry.js} +1 -1
  1060. package/dist/digi-arbetsformedlingen/{p-86c97931.entry.js → p-9e390529.entry.js} +1 -1
  1061. package/dist/digi-arbetsformedlingen/{p-2599113d.entry.js → p-9f853184.entry.js} +1 -1
  1062. package/dist/digi-arbetsformedlingen/p-9fc7d16a.entry.js +1 -0
  1063. package/dist/digi-arbetsformedlingen/p-B8hpiXmh.js +1 -0
  1064. package/dist/digi-arbetsformedlingen/p-BSJH8Lpg.js +1 -0
  1065. package/dist/digi-arbetsformedlingen/p-BXG8DzZe.js +3 -0
  1066. package/dist/digi-arbetsformedlingen/p-BfyJgcLA.js +1 -0
  1067. package/dist/digi-arbetsformedlingen/p-BixPaBHw.js +1 -0
  1068. package/dist/digi-arbetsformedlingen/p-BvWKyXb_.js +1 -0
  1069. package/dist/digi-arbetsformedlingen/p-C6B2KRZo.js +1 -0
  1070. package/dist/digi-arbetsformedlingen/p-CgSR-RTl.js +1 -0
  1071. package/dist/digi-arbetsformedlingen/p-D0J6vKy3.js +1 -0
  1072. package/dist/digi-arbetsformedlingen/p-DNjGvZvz.js +1 -0
  1073. package/dist/digi-arbetsformedlingen/p-DbBOgLZR.js +1 -0
  1074. package/dist/digi-arbetsformedlingen/p-DwNlf6Sh.js +1 -0
  1075. package/dist/digi-arbetsformedlingen/p-PuRFa9pe.js +1 -0
  1076. package/dist/digi-arbetsformedlingen/{p-6e256f0c.entry.js → p-a130ff5c.entry.js} +1 -1
  1077. package/dist/digi-arbetsformedlingen/{p-93689a8d.entry.js → p-a2943881.entry.js} +1 -1
  1078. package/dist/digi-arbetsformedlingen/p-a40e6860.entry.js +1 -0
  1079. package/dist/digi-arbetsformedlingen/p-a42311bb.entry.js +1 -0
  1080. package/dist/digi-arbetsformedlingen/p-a44d1d56.entry.js +1 -0
  1081. package/dist/digi-arbetsformedlingen/p-a5034f5b.entry.js +1 -0
  1082. package/dist/digi-arbetsformedlingen/p-a5b150ef.entry.js +1 -0
  1083. package/dist/digi-arbetsformedlingen/{p-85d9d52c.entry.js → p-a63a9193.entry.js} +1 -1
  1084. package/dist/digi-arbetsformedlingen/{p-e51bfddc.entry.js → p-a8ee10bb.entry.js} +1 -1
  1085. package/dist/digi-arbetsformedlingen/{p-66623058.entry.js → p-ab6a9462.entry.js} +1 -1
  1086. package/dist/digi-arbetsformedlingen/{p-85ce04f2.entry.js → p-ac3c1224.entry.js} +1 -1
  1087. package/dist/digi-arbetsformedlingen/{p-8a01b372.entry.js → p-ac4e8dd3.entry.js} +1 -1
  1088. package/dist/digi-arbetsformedlingen/{p-17b7fa43.entry.js → p-ae5c72fa.entry.js} +1 -1
  1089. package/dist/digi-arbetsformedlingen/{p-051495cd.entry.js → p-aea512cc.entry.js} +1 -1
  1090. package/dist/digi-arbetsformedlingen/{p-9717db6a.entry.js → p-afec75b3.entry.js} +1 -1
  1091. package/dist/digi-arbetsformedlingen/{p-a055ea73.entry.js → p-b0a3049b.entry.js} +1 -1
  1092. package/dist/digi-arbetsformedlingen/{p-728074a0.entry.js → p-b17aec82.entry.js} +1 -1
  1093. package/dist/digi-arbetsformedlingen/{p-5f1951f7.entry.js → p-b26339ce.entry.js} +1 -1
  1094. package/dist/digi-arbetsformedlingen/{p-7bc3f73a.entry.js → p-b2758844.entry.js} +1 -1
  1095. package/dist/digi-arbetsformedlingen/{p-f4ff6302.entry.js → p-b2cd6d1b.entry.js} +1 -1
  1096. package/dist/digi-arbetsformedlingen/{p-610230e7.entry.js → p-b52bb532.entry.js} +1 -1
  1097. package/dist/digi-arbetsformedlingen/{p-eddffe09.entry.js → p-b5755053.entry.js} +1 -1
  1098. package/dist/digi-arbetsformedlingen/{p-3c1d20cc.entry.js → p-b575e5fd.entry.js} +1 -1
  1099. package/dist/digi-arbetsformedlingen/{p-cbf181d6.entry.js → p-b5cd3ac6.entry.js} +1 -1
  1100. package/dist/digi-arbetsformedlingen/p-b6d4f19e.entry.js +1 -0
  1101. package/dist/digi-arbetsformedlingen/{p-10a4e3aa.entry.js → p-b8524c35.entry.js} +1 -1
  1102. package/dist/digi-arbetsformedlingen/{p-4f48ceee.entry.js → p-b870b8fb.entry.js} +1 -1
  1103. package/dist/digi-arbetsformedlingen/p-b95eabfe.entry.js +1 -0
  1104. package/dist/digi-arbetsformedlingen/{p-2d8f7119.entry.js → p-b9c0fa11.entry.js} +1 -1
  1105. package/dist/digi-arbetsformedlingen/{p-3bdcc894.entry.js → p-ba55c4ab.entry.js} +1 -1
  1106. package/dist/digi-arbetsformedlingen/{p-1d7ee591.entry.js → p-bf02aeab.entry.js} +1 -1
  1107. package/dist/digi-arbetsformedlingen/p-bffdfacf.entry.js +1 -0
  1108. package/dist/digi-arbetsformedlingen/{p-2ca1bcdd.entry.js → p-c27d4d55.entry.js} +1 -1
  1109. package/dist/digi-arbetsformedlingen/{p-737f41e9.entry.js → p-c319b1ef.entry.js} +1 -1
  1110. package/dist/digi-arbetsformedlingen/{p-269e2587.entry.js → p-c4293bd6.entry.js} +1 -1
  1111. package/dist/digi-arbetsformedlingen/{p-e74cbfb8.entry.js → p-c436e8ae.entry.js} +1 -1
  1112. package/dist/digi-arbetsformedlingen/{p-206404ae.entry.js → p-c43a624c.entry.js} +1 -1
  1113. package/dist/digi-arbetsformedlingen/{p-4f1e9553.entry.js → p-c54f015e.entry.js} +1 -1
  1114. package/dist/digi-arbetsformedlingen/{p-d923550e.entry.js → p-c6c9d80c.entry.js} +1 -1
  1115. package/dist/digi-arbetsformedlingen/{p-b29b6f7a.entry.js → p-c706a301.entry.js} +1 -1
  1116. package/dist/digi-arbetsformedlingen/{p-32959401.entry.js → p-c7c3278b.entry.js} +1 -1
  1117. package/dist/digi-arbetsformedlingen/{p-78e547be.entry.js → p-c94c5dd3.entry.js} +1 -1
  1118. package/dist/digi-arbetsformedlingen/{p-98d5e757.entry.js → p-c99f7997.entry.js} +1 -1
  1119. package/dist/digi-arbetsformedlingen/{p-b260cce3.entry.js → p-c9a6b1d8.entry.js} +1 -1
  1120. package/dist/digi-arbetsformedlingen/{p-a0ad3ada.entry.js → p-ca583644.entry.js} +1 -1
  1121. package/dist/digi-arbetsformedlingen/{p-a8b9a245.entry.js → p-caafd5fb.entry.js} +1 -1
  1122. package/dist/digi-arbetsformedlingen/{p-725df73b.entry.js → p-cbf0420c.entry.js} +1 -1
  1123. package/dist/digi-arbetsformedlingen/{p-ae8cda59.entry.js → p-d0cdaf85.entry.js} +1 -1
  1124. package/dist/digi-arbetsformedlingen/{p-64fa2f88.entry.js → p-d1b30961.entry.js} +1 -1
  1125. package/dist/digi-arbetsformedlingen/{p-7b32d26e.entry.js → p-d1ddf4f7.entry.js} +1 -1
  1126. package/dist/digi-arbetsformedlingen/{p-ffd747f1.entry.js → p-d1e27ff1.entry.js} +1 -1
  1127. package/dist/digi-arbetsformedlingen/{p-d1bd8f00.entry.js → p-d325e0ac.entry.js} +1 -1
  1128. package/dist/digi-arbetsformedlingen/p-d4575998.entry.js +1 -0
  1129. package/dist/digi-arbetsformedlingen/{p-6b8f46fc.entry.js → p-d532805b.entry.js} +1 -1
  1130. package/dist/digi-arbetsformedlingen/{p-bdf0adf8.entry.js → p-d59ad1cc.entry.js} +1 -1
  1131. package/dist/digi-arbetsformedlingen/{p-bdba8440.entry.js → p-d5be3005.entry.js} +1 -1
  1132. package/dist/digi-arbetsformedlingen/p-d699cbfd.entry.js +1 -0
  1133. package/dist/digi-arbetsformedlingen/{p-0109cd67.entry.js → p-d84fca74.entry.js} +1 -1
  1134. package/dist/digi-arbetsformedlingen/{p-65a5d6df.entry.js → p-da05977a.entry.js} +1 -1
  1135. package/dist/digi-arbetsformedlingen/p-da993d1b.entry.js +1 -0
  1136. package/dist/digi-arbetsformedlingen/{p-a75b1e3b.entry.js → p-daa7e89c.entry.js} +1 -1
  1137. package/dist/digi-arbetsformedlingen/{p-62805bf3.entry.js → p-dcc292f9.entry.js} +1 -1
  1138. package/dist/digi-arbetsformedlingen/{p-f0d6f813.entry.js → p-dd69a8f6.entry.js} +1 -1
  1139. package/dist/digi-arbetsformedlingen/{p-296301d4.entry.js → p-de7c8783.entry.js} +1 -1
  1140. package/dist/digi-arbetsformedlingen/{p-a0515a9a.entry.js → p-df8c4c4b.entry.js} +1 -1
  1141. package/dist/digi-arbetsformedlingen/p-df97885a.entry.js +1 -0
  1142. package/dist/digi-arbetsformedlingen/{p-6f1671ed.entry.js → p-df9a9ff8.entry.js} +1 -1
  1143. package/dist/digi-arbetsformedlingen/{p-165c926d.entry.js → p-dfcc1c1b.entry.js} +1 -1
  1144. package/dist/digi-arbetsformedlingen/p-e0765cff.entry.js +1 -0
  1145. package/dist/digi-arbetsformedlingen/{p-6662177f.entry.js → p-e736c847.entry.js} +1 -1
  1146. package/dist/digi-arbetsformedlingen/{p-02f709b9.entry.js → p-e75ffed2.entry.js} +1 -1
  1147. package/dist/digi-arbetsformedlingen/{p-e867c5e1.entry.js → p-e7bb982c.entry.js} +1 -1
  1148. package/dist/digi-arbetsformedlingen/{p-6c174a9c.entry.js → p-e85f55aa.entry.js} +1 -1
  1149. package/dist/digi-arbetsformedlingen/{p-9b03b04a.entry.js → p-e96c6f8d.entry.js} +1 -1
  1150. package/dist/digi-arbetsformedlingen/{p-616af459.entry.js → p-e99c9eb8.entry.js} +1 -1
  1151. package/dist/digi-arbetsformedlingen/{p-0476f89d.entry.js → p-ede7e7d3.entry.js} +1 -1
  1152. package/dist/digi-arbetsformedlingen/{p-f6305c8e.entry.js → p-eea27bfd.entry.js} +1 -1
  1153. package/dist/digi-arbetsformedlingen/{p-f982758f.entry.js → p-eeaeabfb.entry.js} +1 -1
  1154. package/dist/digi-arbetsformedlingen/{p-655a6196.entry.js → p-ef75ea1e.entry.js} +1 -1
  1155. package/dist/digi-arbetsformedlingen/{p-40abb10c.entry.js → p-f00b5e90.entry.js} +1 -1
  1156. package/dist/digi-arbetsformedlingen/{p-6408a7e2.entry.js → p-f047cc3a.entry.js} +1 -1
  1157. package/dist/digi-arbetsformedlingen/{p-41b2fd4b.entry.js → p-f19f825c.entry.js} +1 -1
  1158. package/dist/digi-arbetsformedlingen/{p-9e1897de.entry.js → p-f39d9a50.entry.js} +1 -1
  1159. package/dist/digi-arbetsformedlingen/{p-ac3be3d5.entry.js → p-f3e0a689.entry.js} +1 -1
  1160. package/dist/digi-arbetsformedlingen/{p-3f497ad0.entry.js → p-f4be8467.entry.js} +1 -1
  1161. package/dist/digi-arbetsformedlingen/p-f524ce10.entry.js +1 -0
  1162. package/dist/digi-arbetsformedlingen/p-f5Ytsp48.js +1 -0
  1163. package/dist/digi-arbetsformedlingen/{p-5b122492.entry.js → p-f6c40cbc.entry.js} +1 -1
  1164. package/dist/digi-arbetsformedlingen/{p-c5472db0.entry.js → p-f6e399ed.entry.js} +1 -1
  1165. package/dist/digi-arbetsformedlingen/{p-f4f5ce7b.entry.js → p-f7ac7554.entry.js} +1 -1
  1166. package/dist/digi-arbetsformedlingen/p-f84c06de.entry.js +1 -0
  1167. package/dist/digi-arbetsformedlingen/{p-47513f97.entry.js → p-f8609601.entry.js} +1 -1
  1168. package/dist/digi-arbetsformedlingen/{p-fab6da17.entry.js → p-f97e3d51.entry.js} +1 -1
  1169. package/dist/digi-arbetsformedlingen/p-f9c927cd.entry.js +1 -0
  1170. package/dist/digi-arbetsformedlingen/{p-cf284ff4.entry.js → p-fb4fd85d.entry.js} +1 -1
  1171. package/dist/digi-arbetsformedlingen/{p-a3f3f306.entry.js → p-fbb0794e.entry.js} +1 -1
  1172. package/dist/digi-arbetsformedlingen/{p-10581b5d.entry.js → p-fd620e90.entry.js} +1 -1
  1173. package/dist/digi-arbetsformedlingen/{p-3a954fbe.entry.js → p-fd96b250.entry.js} +1 -1
  1174. package/dist/digi-arbetsformedlingen/p-fe4ed838.entry.js +1 -0
  1175. package/dist/digi-arbetsformedlingen/{p-eb40c752.entry.js → p-fec19130.entry.js} +1 -1
  1176. package/dist/digi-arbetsformedlingen/p-u37CGyZ9.js +1 -0
  1177. package/dist/digi-arbetsformedlingen/styles/src/index.scss +1 -1
  1178. package/dist/digi-arbetsformedlingen/styles/src/themes/_numeric-common.mixin.scss +1 -1
  1179. package/dist/esm/digi-arbetsformedlingen.js +3 -3
  1180. package/dist/esm/digi-badge-notification.entry.js +1 -1
  1181. package/dist/esm/digi-badge-status.entry.js +1 -1
  1182. package/dist/esm/digi-bar-chart.entry.js +1 -1
  1183. package/dist/esm/digi-button.entry.js +1 -1
  1184. package/dist/esm/digi-calendar-datepicker.entry.js +2669 -0
  1185. package/dist/esm/digi-calendar-week-view.entry.js +3 -2
  1186. package/dist/esm/digi-calendar_2.entry.js +487 -0
  1187. package/dist/esm/digi-chart-line.entry.js +1 -1
  1188. package/dist/esm/digi-code-block_3.entry.js +12 -6
  1189. package/dist/esm/digi-code-example.entry.js +1 -1
  1190. package/dist/esm/digi-code.entry.js +1 -1
  1191. package/dist/esm/digi-context-menu.entry.js +4 -4
  1192. package/dist/esm/digi-dialog.entry.js +12 -6
  1193. package/dist/esm/digi-expandable-accordion.entry.js +126 -0
  1194. package/dist/esm/digi-expandable-faq-item.entry.js +124 -0
  1195. package/dist/esm/digi-expandable-faq.entry.js +1 -1
  1196. package/dist/esm/digi-footer-card.entry.js +1 -1
  1197. package/dist/esm/digi-footer.entry.js +12 -6
  1198. package/dist/esm/digi-form-category-filter.entry.js +1 -1
  1199. package/dist/esm/digi-form-checkbox.entry.js +2 -2
  1200. package/dist/esm/digi-form-error-list.entry.js +12 -6
  1201. package/dist/esm/digi-form-file-upload.entry.js +3 -2
  1202. package/dist/esm/digi-form-filter.entry.js +1 -1
  1203. package/dist/esm/digi-form-input-search.entry.js +3 -2
  1204. package/dist/esm/digi-form-input_8.entry.js +579 -0
  1205. package/dist/esm/digi-form-radiogroup.entry.js +1 -1
  1206. package/dist/esm/digi-form-receipt.entry.js +12 -6
  1207. package/dist/esm/digi-form-select-filter.entry.js +22 -13
  1208. package/dist/esm/digi-form-textarea.entry.js +4 -4
  1209. package/dist/esm/digi-header-avatar.entry.js +3 -3
  1210. package/dist/esm/digi-header-navigation-item.entry.js +2 -2
  1211. package/dist/esm/digi-header-navigation.entry.js +15 -9
  1212. package/dist/esm/digi-header-notification.entry.js +3 -3
  1213. package/dist/esm/digi-header.entry.js +13 -7
  1214. package/dist/esm/digi-icon-accessibility-deaf.entry.js +3 -3
  1215. package/dist/esm/digi-icon-accessibility-universal.entry.js +3 -3
  1216. package/dist/esm/digi-icon-apple.entry.js +3 -3
  1217. package/dist/esm/digi-icon-archive-outline.entry.js +3 -3
  1218. package/dist/esm/digi-icon-archive.entry.js +3 -3
  1219. package/dist/esm/digi-icon-arrow-back.entry.js +3 -3
  1220. package/dist/esm/digi-icon-arrow-down.entry.js +3 -3
  1221. package/dist/esm/digi-icon-arrow-left.entry.js +3 -3
  1222. package/dist/esm/digi-icon-arrow-right.entry.js +3 -3
  1223. package/dist/esm/digi-icon-arrow-sign-in.entry.js +3 -3
  1224. package/dist/esm/digi-icon-arrow-sign-out.entry.js +3 -3
  1225. package/dist/esm/digi-icon-arrow-up.entry.js +3 -3
  1226. package/dist/esm/digi-icon-at.entry.js +3 -3
  1227. package/dist/esm/digi-icon-bars.entry.js +3 -3
  1228. package/dist/esm/digi-icon-bell-filled.entry.js +3 -3
  1229. package/dist/esm/digi-icon-bell.entry.js +3 -3
  1230. package/dist/esm/digi-icon-book.entry.js +3 -3
  1231. package/dist/esm/digi-icon-bookmark-outline.entry.js +3 -3
  1232. package/dist/esm/digi-icon-bookmark-solid.entry.js +3 -3
  1233. package/dist/esm/digi-icon-bubble-ellipsis.entry.js +3 -3
  1234. package/dist/esm/digi-icon-bubble.entry.js +3 -3
  1235. package/dist/esm/digi-icon-building-outline.entry.js +3 -3
  1236. package/dist/esm/digi-icon-building-solid.entry.js +3 -3
  1237. package/dist/esm/digi-icon-bullseye.entry.js +3 -3
  1238. package/dist/esm/digi-icon-calculator-solid.entry.js +3 -3
  1239. package/dist/esm/digi-icon-calendar-alt-alert.entry.js +3 -3
  1240. package/dist/esm/digi-icon-calendar.entry.js +3 -3
  1241. package/dist/esm/digi-icon-caret-circle-right.entry.js +3 -3
  1242. package/dist/esm/digi-icon-caret-down_2.entry.js +5 -5
  1243. package/dist/esm/digi-icon-caret-left.entry.js +3 -3
  1244. package/dist/esm/digi-icon-caret-right.entry.js +3 -3
  1245. package/dist/esm/digi-icon-chart_2.entry.js +5 -5
  1246. package/dist/esm/digi-icon-chat.entry.js +3 -3
  1247. package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +3 -3
  1248. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +9 -9
  1249. package/dist/esm/digi-icon-check.entry.js +3 -3
  1250. package/dist/esm/digi-icon-checklist.entry.js +3 -3
  1251. package/dist/esm/digi-icon-chevron-down.entry.js +26 -0
  1252. package/dist/esm/digi-icon-chevron-left_2.entry.js +48 -0
  1253. package/dist/esm/digi-icon-chevron-up.entry.js +3 -3
  1254. package/dist/esm/digi-icon-clock.entry.js +3 -3
  1255. package/dist/esm/digi-icon-communication-play-solid.entry.js +3 -3
  1256. package/dist/esm/digi-icon-compress-alt.entry.js +3 -3
  1257. package/dist/esm/digi-icon-comunication-case.entry.js +3 -3
  1258. package/dist/esm/digi-icon-comunication-flag.entry.js +3 -3
  1259. package/dist/esm/digi-icon-comunication-graduate.entry.js +3 -3
  1260. package/dist/esm/digi-icon-comunication-play.entry.js +3 -3
  1261. package/dist/esm/digi-icon-cooperation.entry.js +3 -3
  1262. package/dist/esm/digi-icon-copy.entry.js +3 -3
  1263. package/dist/esm/digi-icon-danger-outline.entry.js +3 -3
  1264. package/dist/esm/digi-icon-download.entry.js +3 -3
  1265. package/dist/esm/digi-icon-dxa.entry.js +3 -3
  1266. package/dist/esm/digi-icon-edit.entry.js +3 -3
  1267. package/dist/esm/digi-icon-ellipsis.entry.js +3 -3
  1268. package/dist/esm/digi-icon-envelope-filled.entry.js +3 -3
  1269. package/dist/esm/digi-icon-envelope.entry.js +3 -3
  1270. package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +3 -3
  1271. package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +3 -3
  1272. package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +3 -3
  1273. package/dist/esm/digi-icon-exclamation-triangle.entry.js +3 -3
  1274. package/dist/esm/digi-icon-expand-alt.entry.js +3 -3
  1275. package/dist/esm/digi-icon-external-link-alt_2.entry.js +4 -4
  1276. package/dist/esm/digi-icon-eye-slash.entry.js +3 -3
  1277. package/dist/esm/digi-icon-eye.entry.js +3 -3
  1278. package/dist/esm/digi-icon-facebook-square.entry.js +3 -3
  1279. package/dist/esm/digi-icon-file-add.entry.js +2 -2
  1280. package/dist/esm/digi-icon-file-document.entry.js +3 -3
  1281. package/dist/esm/digi-icon-file-excel.entry.js +3 -3
  1282. package/dist/esm/digi-icon-file-export.entry.js +2 -2
  1283. package/dist/esm/digi-icon-file-governing.entry.js +3 -3
  1284. package/dist/esm/digi-icon-file-pdf.entry.js +3 -3
  1285. package/dist/esm/digi-icon-file-powerpoint.entry.js +3 -3
  1286. package/dist/esm/digi-icon-file-remove.entry.js +2 -2
  1287. package/dist/esm/digi-icon-file-word.entry.js +3 -3
  1288. package/dist/esm/digi-icon-film.entry.js +3 -3
  1289. package/dist/esm/digi-icon-filter.entry.js +3 -3
  1290. package/dist/esm/digi-icon-folder-add.entry.js +2 -2
  1291. package/dist/esm/digi-icon-folder-directory.entry.js +2 -2
  1292. package/dist/esm/digi-icon-folder-open.entry.js +2 -2
  1293. package/dist/esm/digi-icon-folder.entry.js +2 -2
  1294. package/dist/esm/digi-icon-globe-filled.entry.js +3 -3
  1295. package/dist/esm/digi-icon-globe.entry.js +3 -3
  1296. package/dist/esm/digi-icon-headphones.entry.js +3 -3
  1297. package/dist/esm/digi-icon-heart-solid.entry.js +3 -3
  1298. package/dist/esm/digi-icon-heart.entry.js +3 -3
  1299. package/dist/esm/digi-icon-history.entry.js +3 -3
  1300. package/dist/esm/digi-icon-home.entry.js +3 -3
  1301. package/dist/esm/digi-icon-image.entry.js +3 -3
  1302. package/dist/esm/digi-icon-info-circle-solid.entry.js +3 -3
  1303. package/dist/esm/digi-icon-instagram.entry.js +3 -3
  1304. package/dist/esm/digi-icon-job-suggestion.entry.js +3 -3
  1305. package/dist/esm/digi-icon-language-outline.entry.js +3 -3
  1306. package/dist/esm/digi-icon-language.entry.js +3 -3
  1307. package/dist/esm/digi-icon-laptop-phone.entry.js +3 -3
  1308. package/dist/esm/digi-icon-lattlast.entry.js +3 -3
  1309. package/dist/esm/digi-icon-licence-bus.entry.js +3 -3
  1310. package/dist/esm/digi-icon-licence-car.entry.js +3 -3
  1311. package/dist/esm/digi-icon-licence-motorcycle.entry.js +3 -3
  1312. package/dist/esm/digi-icon-licence-truck.entry.js +3 -3
  1313. package/dist/esm/digi-icon-lightbulb.entry.js +3 -3
  1314. package/dist/esm/digi-icon-linkedin-in.entry.js +3 -3
  1315. package/dist/esm/digi-icon-list-ul_6.entry.js +13 -13
  1316. package/dist/esm/digi-icon-lock.entry.js +3 -3
  1317. package/dist/esm/digi-icon-marker-filled.entry.js +3 -3
  1318. package/dist/esm/digi-icon-marker.entry.js +3 -3
  1319. package/dist/esm/digi-icon-media-course.entry.js +3 -3
  1320. package/dist/esm/digi-icon-media-podcast.entry.js +3 -3
  1321. package/dist/esm/digi-icon-microphone-off.entry.js +3 -3
  1322. package/dist/esm/digi-icon-microphone.entry.js +3 -3
  1323. package/dist/esm/digi-icon-minus_2.entry.js +5 -5
  1324. package/dist/esm/digi-icon-move.entry.js +3 -3
  1325. package/dist/esm/digi-icon-notification-error_4.entry.js +9 -9
  1326. package/dist/esm/digi-icon-online-interview.entry.js +3 -3
  1327. package/dist/esm/digi-icon-online-meeting.entry.js +3 -3
  1328. package/dist/esm/digi-icon-online-task.entry.js +3 -3
  1329. package/dist/esm/digi-icon-open-source.entry.js +3 -3
  1330. package/dist/esm/digi-icon-palette.entry.js +3 -3
  1331. package/dist/esm/digi-icon-paste.entry.js +2 -2
  1332. package/dist/esm/digi-icon-pen.entry.js +3 -3
  1333. package/dist/esm/digi-icon-phone-hangup.entry.js +3 -3
  1334. package/dist/esm/digi-icon-phone.entry.js +3 -3
  1335. package/dist/esm/digi-icon-pinned-outline.entry.js +26 -0
  1336. package/dist/esm/digi-icon-pinned-solid.entry.js +26 -0
  1337. package/dist/esm/digi-icon-print.entry.js +3 -3
  1338. package/dist/esm/digi-icon-read.entry.js +3 -3
  1339. package/dist/esm/digi-icon-redo.entry.js +3 -3
  1340. package/dist/esm/digi-icon-scale.entry.js +2 -2
  1341. package/dist/esm/digi-icon-screensharing-off.entry.js +3 -3
  1342. package/dist/esm/digi-icon-screensharing.entry.js +3 -3
  1343. package/dist/esm/digi-icon-search.entry.js +3 -3
  1344. package/dist/esm/digi-icon-send-outline.entry.js +3 -3
  1345. package/dist/esm/digi-icon-send-solid.entry.js +3 -3
  1346. package/dist/esm/digi-icon-settings.entry.js +3 -3
  1347. package/dist/esm/digi-icon-share-alt.entry.js +3 -3
  1348. package/dist/esm/digi-icon-share-chain.entry.js +3 -3
  1349. package/dist/esm/digi-icon-sign.entry.js +3 -3
  1350. package/dist/esm/digi-icon-sliders-h.entry.js +3 -3
  1351. package/dist/esm/digi-icon-sokkandidat.entry.js +3 -3
  1352. package/dist/esm/digi-icon-sort-down.entry.js +3 -3
  1353. package/dist/esm/digi-icon-sort-up.entry.js +3 -3
  1354. package/dist/esm/digi-icon-sort.entry.js +3 -3
  1355. package/dist/esm/digi-icon-spinner.entry.js +3 -3
  1356. package/dist/esm/digi-icon-star-reg.entry.js +3 -3
  1357. package/dist/esm/digi-icon-star.entry.js +3 -3
  1358. package/dist/esm/digi-icon-suitcase-outline.entry.js +3 -3
  1359. package/dist/esm/digi-icon-suitcase-solid.entry.js +3 -3
  1360. package/dist/esm/digi-icon-system-assistance.entry.js +3 -3
  1361. package/dist/esm/digi-icon-table-column.entry.js +3 -3
  1362. package/dist/esm/digi-icon-table-row.entry.js +3 -3
  1363. package/dist/esm/digi-icon-task-done.entry.js +3 -3
  1364. package/dist/esm/digi-icon-toggle-off.entry.js +3 -3
  1365. package/dist/esm/digi-icon-toggle-on.entry.js +3 -3
  1366. package/dist/esm/digi-icon-twitter.entry.js +3 -3
  1367. package/dist/esm/digi-icon-tyck-till.entry.js +3 -3
  1368. package/dist/esm/digi-icon-unlock.entry.js +3 -3
  1369. package/dist/esm/digi-icon-update.entry.js +3 -3
  1370. package/dist/esm/digi-icon-upload.entry.js +3 -3
  1371. package/dist/esm/digi-icon-user-add.entry.js +2 -2
  1372. package/dist/esm/digi-icon-user-alt.entry.js +3 -3
  1373. package/dist/esm/digi-icon-user-edit.entry.js +2 -2
  1374. package/dist/esm/digi-icon-users-solid.entry.js +3 -3
  1375. package/dist/esm/digi-icon-videocamera-off.entry.js +3 -3
  1376. package/dist/esm/digi-icon-videocamera.entry.js +3 -3
  1377. package/dist/esm/digi-icon-volume.entry.js +3 -3
  1378. package/dist/esm/digi-icon-web-tv.entry.js +3 -3
  1379. package/dist/esm/digi-icon-wifi-signal0.entry.js +3 -3
  1380. package/dist/esm/digi-icon-wifi-signal1.entry.js +3 -3
  1381. package/dist/esm/digi-icon-wifi-signal2.entry.js +3 -3
  1382. package/dist/esm/digi-icon-wifi-signal3.entry.js +3 -3
  1383. package/dist/esm/digi-icon-window.entry.js +3 -3
  1384. package/dist/esm/digi-icon-x-button.entry.js +3 -3
  1385. package/dist/esm/digi-icon-x.entry.js +3 -3
  1386. package/dist/esm/digi-icon-youtube.entry.js +3 -3
  1387. package/dist/esm/digi-info-card-multi-container.entry.js +2 -2
  1388. package/dist/esm/digi-info-card-multi.entry.js +8 -3
  1389. package/dist/esm/digi-info-card.entry.js +8 -3
  1390. package/dist/esm/digi-layout-block_2.entry.js +3 -3
  1391. package/dist/esm/digi-layout-columns.entry.js +2 -2
  1392. package/dist/esm/digi-link-button.entry.js +2 -2
  1393. package/dist/esm/digi-link-internal.entry.js +3 -3
  1394. package/dist/esm/digi-link.entry.js +2 -2
  1395. package/dist/esm/digi-list.entry.js +2 -5
  1396. package/dist/esm/digi-loader-skeleton.entry.js +4 -4
  1397. package/dist/esm/digi-loader-spinner.entry.js +2 -2
  1398. package/dist/esm/digi-logo.entry.js +2 -2
  1399. package/dist/esm/digi-media-figure.entry.js +5 -4
  1400. package/dist/esm/digi-media-image_2.entry.js +4 -4
  1401. package/dist/esm/digi-navigation-breadcrumbs.entry.js +3 -3
  1402. package/dist/esm/digi-navigation-pagination.entry.js +18 -12
  1403. package/dist/esm/digi-navigation-sidebar-button.entry.js +2 -2
  1404. package/dist/esm/digi-navigation-sidebar.entry.js +3 -3
  1405. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +7 -7
  1406. package/dist/esm/digi-navigation-vertical-menu.entry.js +2 -2
  1407. package/dist/esm/digi-notification-alert.entry.js +14 -8
  1408. package/dist/esm/digi-notification-error-page.entry.js +15 -9
  1409. package/dist/esm/digi-progress-circle.entry.js +9 -9
  1410. package/dist/esm/digi-progress-indicator.entry.js +4 -4
  1411. package/dist/esm/digi-progress-list-item.entry.js +6 -6
  1412. package/dist/esm/digi-progress-list.entry.js +2 -2
  1413. package/dist/esm/digi-progressbar.entry.js +3 -3
  1414. package/dist/esm/digi-quote.entry.js +2 -2
  1415. package/dist/esm/digi-table.entry.js +2 -2
  1416. package/dist/esm/digi-tablist-panel.entry.js +3 -3
  1417. package/dist/esm/digi-tablist.entry.js +6 -6
  1418. package/dist/esm/digi-tag-media.entry.js +3 -3
  1419. package/dist/esm/digi-tag.entry.js +2 -2
  1420. package/dist/esm/digi-title-logo.entry.js +13 -7
  1421. package/dist/esm/digi-tools-feedback-banner.entry.js +2 -2
  1422. package/dist/esm/digi-tools-feedback-rating.entry.js +2 -2
  1423. package/dist/esm/digi-tools-feedback.entry.js +13 -7
  1424. package/dist/esm/digi-tools-theme-provider.entry.js +2 -2
  1425. package/dist/esm/digi-typography-heading-jumbo.entry.js +44 -0
  1426. package/dist/esm/digi-typography-meta.entry.js +2 -2
  1427. package/dist/esm/digi-typography-preamble.entry.js +2 -2
  1428. package/dist/esm/digi-typography-time.entry.js +2 -2
  1429. package/dist/esm/digi-typography.entry.js +20 -0
  1430. package/dist/esm/digi-util-breakpoint-observer.entry.js +2 -2
  1431. package/dist/esm/digi-util-detect-click-outside.entry.js +2 -2
  1432. package/dist/esm/digi-util-detect-focus-outside.entry.js +2 -2
  1433. package/dist/esm/digi-util-keydown-handler.entry.js +79 -0
  1434. package/dist/esm/digi-util-keyup-handler.entry.js +2 -2
  1435. package/dist/esm/digi-util-mutation-observer.entry.js +2 -2
  1436. package/dist/esm/digi-util-resize-observer.entry.js +2 -2
  1437. package/dist/esm/expandable-accordion-header-level.enum-DwNlf6Sh.js +11 -0
  1438. package/dist/esm/expandable-faq-item-variation.enum-C6B2KRZo.js +18 -0
  1439. package/dist/esm/{form-validation-message-variation.enum-9n7Okhf1.js → form-file-upload-variation.enum-BfyJgcLA.js} +1 -8
  1440. package/dist/esm/form-input-search-variation.enum-BvWKyXb_.js +8 -0
  1441. package/dist/esm/{form-input-type.enum-C6S1HfeA.js → form-input-type.enum-BSJH8Lpg.js} +1 -8
  1442. package/dist/esm/form-select-variation.enum-f5Ytsp48.js +44 -0
  1443. package/dist/esm/form-validation-message-variation.enum-B8hpiXmh.js +8 -0
  1444. package/dist/esm/{index-BnKuq1L7.js → index-BXG8DzZe.js} +47 -3
  1445. package/dist/esm/index-BixPaBHw.js +170 -0
  1446. package/dist/esm/index-BsIL3T_0.js +63 -0
  1447. package/dist/esm/{index-Cnyfh_8_.js → index-DnTiPaEs.js} +3 -170
  1448. package/dist/esm/index.js +11 -5
  1449. package/dist/esm/info-card-multi-type.enum-u37CGyZ9.js +18 -0
  1450. package/dist/esm/{info-card-variation.enum-_ycZeBN4.js → info-card-variation.enum-PuRFa9pe.js} +11 -1
  1451. package/dist/esm/loader.js +3 -3
  1452. package/dist/esm/typography-heading-jumbo-variation.enum-DNjGvZvz.js +17 -0
  1453. package/dist/esm/{typography-variation.enum-Zivp2NJB.js → typography-variation.enum-D0J6vKy3.js} +1 -107
  1454. package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +5 -0
  1455. package/dist/types/components/_icon/icon-pinned-outline/icon-pinned-outline.d.ts +24 -0
  1456. package/dist/types/components/_icon/icon-pinned-solid/icon-pinned-solid.d.ts +24 -0
  1457. package/dist/types/components/_info-card/info-card-multi-container/info-card-multi-container.d.ts +1 -0
  1458. package/dist/types/components/_media/media-figure/media-figure.d.ts +6 -0
  1459. package/dist/types/components.d.ts +156 -4
  1460. package/hydrate/index.js +589 -500
  1461. package/hydrate/index.mjs +589 -500
  1462. package/package.json +1 -1
  1463. package/components/p-BYefdyRg.js +0 -187
  1464. package/components/p-CkIb3cUS.js +0 -8
  1465. package/components/p-DTbZcA8e.js +0 -72
  1466. package/dist/cjs/digi-calendar_19.cjs.entry.js +0 -4227
  1467. package/dist/cjs/info-card-multi-type.enum-pqhvdrsN.js +0 -8
  1468. package/dist/digi-arbetsformedlingen/p-00bc2401.entry.js +0 -1
  1469. package/dist/digi-arbetsformedlingen/p-0230ec9b.entry.js +0 -1
  1470. package/dist/digi-arbetsformedlingen/p-0394e694.entry.js +0 -1
  1471. package/dist/digi-arbetsformedlingen/p-04bbbd14.entry.js +0 -1
  1472. package/dist/digi-arbetsformedlingen/p-0cf25433.entry.js +0 -1
  1473. package/dist/digi-arbetsformedlingen/p-17824a0b.entry.js +0 -1
  1474. package/dist/digi-arbetsformedlingen/p-2346e439.entry.js +0 -1
  1475. package/dist/digi-arbetsformedlingen/p-25815f15.entry.js +0 -1
  1476. package/dist/digi-arbetsformedlingen/p-267a1c32.entry.js +0 -1
  1477. package/dist/digi-arbetsformedlingen/p-36c81161.entry.js +0 -1
  1478. package/dist/digi-arbetsformedlingen/p-3c99eb52.entry.js +0 -1
  1479. package/dist/digi-arbetsformedlingen/p-3d4ac22e.entry.js +0 -1
  1480. package/dist/digi-arbetsformedlingen/p-49d38827.entry.js +0 -1
  1481. package/dist/digi-arbetsformedlingen/p-4aefce1e.entry.js +0 -1
  1482. package/dist/digi-arbetsformedlingen/p-5bea0492.entry.js +0 -1
  1483. package/dist/digi-arbetsformedlingen/p-5c5b4dd6.entry.js +0 -1
  1484. package/dist/digi-arbetsformedlingen/p-5ee5766d.entry.js +0 -1
  1485. package/dist/digi-arbetsformedlingen/p-7a954634.entry.js +0 -1
  1486. package/dist/digi-arbetsformedlingen/p-88dc2ed4.entry.js +0 -1
  1487. package/dist/digi-arbetsformedlingen/p-9n7Okhf1.js +0 -1
  1488. package/dist/digi-arbetsformedlingen/p-BnKuq1L7.js +0 -3
  1489. package/dist/digi-arbetsformedlingen/p-C6S1HfeA.js +0 -1
  1490. package/dist/digi-arbetsformedlingen/p-CkIb3cUS.js +0 -1
  1491. package/dist/digi-arbetsformedlingen/p-Cnyfh_8_.js +0 -1
  1492. package/dist/digi-arbetsformedlingen/p-Zivp2NJB.js +0 -1
  1493. package/dist/digi-arbetsformedlingen/p-_ycZeBN4.js +0 -1
  1494. package/dist/digi-arbetsformedlingen/p-ace2e5fd.entry.js +0 -1
  1495. package/dist/digi-arbetsformedlingen/p-adc42d2b.entry.js +0 -1
  1496. package/dist/digi-arbetsformedlingen/p-af474b8b.entry.js +0 -1
  1497. package/dist/digi-arbetsformedlingen/p-b411a549.entry.js +0 -1
  1498. package/dist/digi-arbetsformedlingen/p-b4534304.entry.js +0 -1
  1499. package/dist/digi-arbetsformedlingen/p-b7712996.entry.js +0 -1
  1500. package/dist/digi-arbetsformedlingen/p-bfccf413.entry.js +0 -1
  1501. package/dist/digi-arbetsformedlingen/p-c28f67ee.entry.js +0 -1
  1502. package/dist/digi-arbetsformedlingen/p-cdd65abb.entry.js +0 -1
  1503. package/dist/digi-arbetsformedlingen/p-d4406627.entry.js +0 -1
  1504. package/dist/digi-arbetsformedlingen/p-d9f05bc7.entry.js +0 -1
  1505. package/dist/digi-arbetsformedlingen/p-dd95c75e.entry.js +0 -1
  1506. package/dist/digi-arbetsformedlingen/p-e5396b1e.entry.js +0 -1
  1507. package/dist/digi-arbetsformedlingen/p-e55c62c2.entry.js +0 -1
  1508. package/dist/digi-arbetsformedlingen/p-e7c10f6a.entry.js +0 -1
  1509. package/dist/digi-arbetsformedlingen/p-ebfcc08b.entry.js +0 -1
  1510. package/dist/digi-arbetsformedlingen/p-f6a311ff.entry.js +0 -1
  1511. package/dist/digi-arbetsformedlingen/p-f91295ac.entry.js +0 -1
  1512. package/dist/digi-arbetsformedlingen/p-f97e4bd6.entry.js +0 -1
  1513. package/dist/digi-arbetsformedlingen/p-fbea2a99.entry.js +0 -1
  1514. package/dist/digi-arbetsformedlingen/p-ffb4fac6.entry.js +0 -1
  1515. package/dist/esm/digi-calendar_19.entry.js +0 -4207
  1516. package/dist/esm/info-card-multi-type.enum-CkIb3cUS.js +0 -8
@@ -1,4227 +0,0 @@
1
- 'use strict';
2
-
3
- var index$1 = require('./index-Cn1hHaSy.js');
4
- var randomIdGenerator_util = require('./randomIdGenerator.util-C8XR2Tn1.js');
5
- var detectClickOutside_util = require('./detectClickOutside.util-DKR8Sdiw.js');
6
- var detectFocusOutside_util = require('./detectFocusOutside.util-BNHrXMJ2.js');
7
- var logger_util = require('./logger.util-DUhrcCTY.js');
8
- var text = require('./text-Cu3CaHGj.js');
9
- var index = require('./index-DUQtADgG.js');
10
- require('./badge-notification-shape.enum-CEyEo2G5.js');
11
- var typographyVariation_enum = require('./typography-variation.enum-CVUvogxJ.js');
12
- require('./badge-status-variation.enum-XX8d--rj.js');
13
- require('./button-size.enum-DgyvMkwE.js');
14
- require('./button-type.enum-2UH0KkO-.js');
15
- require('./button-variation.enum-DkUalo9f.js');
16
- require('./calendar-week-view-heading-level.enum-NEkm5SUq.js');
17
- require('./bar-chart-variation.enum-BZFN4377.js');
18
- require('./code-example-variation.enum-Cq-BioXW.js');
19
- require('./code-variation.enum-BM-hhQuD.js');
20
- require('./expandable-faq-variation.enum-FEybT9s4.js');
21
- require('./footer-card-variation.enum-BPnpkC45.js');
22
- require('./form-checkbox-variation.enum-BfOGU4Qt.js');
23
- var formValidationMessageVariation_enum = require('./form-validation-message-variation.enum-DgkifAnP.js');
24
- var formInputType_enum = require('./form-input-type.enum-CCCcY8gv.js');
25
- require('./form-radiogroup-validation.enum-DBDbjF6N.js');
26
- require('./form-textarea-variation.enum-BcEyaR5W.js');
27
- require('./info-card-multi-type.enum-pqhvdrsN.js');
28
- require('./info-card-variation.enum-B1cqmknX.js');
29
- require('./layout-container-max-width.enum-DqWtU7WK.js');
30
- require('./layout-block-variation.enum-BldWvnDk.js');
31
- require('./layout-columns-variation.enum-OgD-hvRN.js');
32
- require('./link-button-variation.enum-03cHZQxx.js');
33
- require('./list-type.enum-CkFOn-eB.js');
34
- require('./loader-skeleton-variation.enum-UvPtdesw.js');
35
- require('./loader-spinner-size.enum-u5AQs-UJ.js');
36
- require('./logo-color.enum-BJZv-f6R.js');
37
- require('./media-figure-alignment.enum-BWO1sg67.js');
38
- require('./navigation-sidebar-variation.enum-70NIGQoi.js');
39
- require('./navigation-vertical-menu-variation.enum-7IUICId3.js');
40
- require('./progress-circle-heading-level.enum-DNlyzNd6.js');
41
- require('./progress-indicator-heading-level.enum-CNarUduE.js');
42
- require('./progress-list-item-variation.enum-Dk3YS--x.js');
43
- require('./progress-list-variation.enum-BvLLJK9O.js');
44
- require('./progressbar-variation.enum-CnRJPSs7.js');
45
- require('./quote-image-inner-position.enum-CLifVlj0.js');
46
- require('./table-variation.enum-DlDZKXbq.js');
47
- require('./tag-media-icon.enum-DzhiwvjI.js');
48
- require('./tag-size.enum-DFom3Smn.js');
49
- require('./tools-feedback-banner-type.enum-Dyeg3XNb.js');
50
- require('./tools-feedback-rating-variation.enum-CBI4GhXs.js');
51
- require('./tools-theme-provider.brand.enum-BzduvCUY.js');
52
- require('./typography-meta-variation.enum-lvDemnSz.js');
53
- require('./typography-time-variation.enum-D2gIVzYH.js');
54
- require('./util-breakpoint-observer-breakpoints.enum-zoJiezkV.js');
55
- var keyboardHandler_util = require('./keyboardHandler.util-Co9WoNpM.js');
56
- require('./detectClosest.util-D1z809xM.js');
57
-
58
- function assign(target, dirtyObject) {
59
- if (target == null) {
60
- throw new TypeError('assign requires that input parameter not be null or undefined');
61
- }
62
-
63
- dirtyObject = dirtyObject || {};
64
-
65
- for (var property in dirtyObject) {
66
- if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
67
- target[property] = dirtyObject[property];
68
- }
69
- }
70
-
71
- return target;
72
- }
73
-
74
- /**
75
- * @name isAfter
76
- * @category Common Helpers
77
- * @summary Is the first date after the second one?
78
- *
79
- * @description
80
- * Is the first date after the second one?
81
- *
82
- * ### v2.0.0 breaking changes:
83
- *
84
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
85
- *
86
- * @param {Date|Number} date - the date that should be after the other one to return true
87
- * @param {Date|Number} dateToCompare - the date to compare with
88
- * @returns {Boolean} the first date is after the second date
89
- * @throws {TypeError} 2 arguments required
90
- *
91
- * @example
92
- * // Is 10 July 1989 after 11 February 1987?
93
- * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
94
- * //=> true
95
- */
96
-
97
- function isAfter(dirtyDate, dirtyDateToCompare) {
98
- index.requiredArgs(2, arguments);
99
- var date = index.toDate(dirtyDate);
100
- var dateToCompare = index.toDate(dirtyDateToCompare);
101
- return date.getTime() > dateToCompare.getTime();
102
- }
103
-
104
- /**
105
- * @name isBefore
106
- * @category Common Helpers
107
- * @summary Is the first date before the second one?
108
- *
109
- * @description
110
- * Is the first date before the second one?
111
- *
112
- * ### v2.0.0 breaking changes:
113
- *
114
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
115
- *
116
- * @param {Date|Number} date - the date that should be before the other one to return true
117
- * @param {Date|Number} dateToCompare - the date to compare with
118
- * @returns {Boolean} the first date is before the second date
119
- * @throws {TypeError} 2 arguments required
120
- *
121
- * @example
122
- * // Is 10 July 1989 before 11 February 1987?
123
- * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
124
- * //=> false
125
- */
126
-
127
- function isBefore(dirtyDate, dirtyDateToCompare) {
128
- index.requiredArgs(2, arguments);
129
- var date = index.toDate(dirtyDate);
130
- var dateToCompare = index.toDate(dirtyDateToCompare);
131
- return date.getTime() < dateToCompare.getTime();
132
- }
133
-
134
- // See issue: https://github.com/date-fns/date-fns/issues/376
135
-
136
- function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
137
- index.requiredArgs(2, arguments);
138
- var options = dirtyOptions || {};
139
- var locale = options.locale;
140
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
141
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
142
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
143
-
144
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
145
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
146
- }
147
-
148
- var date = index.toDate(dirtyDate);
149
- var day = index.toInteger(dirtyDay);
150
- var currentDay = date.getUTCDay();
151
- var remainder = day % 7;
152
- var dayIndex = (remainder + 7) % 7;
153
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
154
- date.setUTCDate(date.getUTCDate() + diff);
155
- return date;
156
- }
157
-
158
- // See issue: https://github.com/date-fns/date-fns/issues/376
159
-
160
- function setUTCISODay(dirtyDate, dirtyDay) {
161
- index.requiredArgs(2, arguments);
162
- var day = index.toInteger(dirtyDay);
163
-
164
- if (day % 7 === 0) {
165
- day = day - 7;
166
- }
167
-
168
- var weekStartsOn = 1;
169
- var date = index.toDate(dirtyDate);
170
- var currentDay = date.getUTCDay();
171
- var remainder = day % 7;
172
- var dayIndex = (remainder + 7) % 7;
173
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
174
- date.setUTCDate(date.getUTCDate() + diff);
175
- return date;
176
- }
177
-
178
- // See issue: https://github.com/date-fns/date-fns/issues/376
179
-
180
- function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
181
- index.requiredArgs(2, arguments);
182
- var date = index.toDate(dirtyDate);
183
- var isoWeek = index.toInteger(dirtyISOWeek);
184
- var diff = index.getUTCISOWeek(date) - isoWeek;
185
- date.setUTCDate(date.getUTCDate() - diff * 7);
186
- return date;
187
- }
188
-
189
- // See issue: https://github.com/date-fns/date-fns/issues/376
190
-
191
- function setUTCWeek(dirtyDate, dirtyWeek, options) {
192
- index.requiredArgs(2, arguments);
193
- var date = index.toDate(dirtyDate);
194
- var week = index.toInteger(dirtyWeek);
195
- var diff = index.getUTCWeek(date, options) - week;
196
- date.setUTCDate(date.getUTCDate() - diff * 7);
197
- return date;
198
- }
199
-
200
- var MILLISECONDS_IN_HOUR = 3600000;
201
- var MILLISECONDS_IN_MINUTE = 60000;
202
- var MILLISECONDS_IN_SECOND = 1000;
203
- var numericPatterns = {
204
- month: /^(1[0-2]|0?\d)/,
205
- // 0 to 12
206
- date: /^(3[0-1]|[0-2]?\d)/,
207
- // 0 to 31
208
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
209
- // 0 to 366
210
- week: /^(5[0-3]|[0-4]?\d)/,
211
- // 0 to 53
212
- hour23h: /^(2[0-3]|[0-1]?\d)/,
213
- // 0 to 23
214
- hour24h: /^(2[0-4]|[0-1]?\d)/,
215
- // 0 to 24
216
- hour11h: /^(1[0-1]|0?\d)/,
217
- // 0 to 11
218
- hour12h: /^(1[0-2]|0?\d)/,
219
- // 0 to 12
220
- minute: /^[0-5]?\d/,
221
- // 0 to 59
222
- second: /^[0-5]?\d/,
223
- // 0 to 59
224
- singleDigit: /^\d/,
225
- // 0 to 9
226
- twoDigits: /^\d{1,2}/,
227
- // 0 to 99
228
- threeDigits: /^\d{1,3}/,
229
- // 0 to 999
230
- fourDigits: /^\d{1,4}/,
231
- // 0 to 9999
232
- anyDigitsSigned: /^-?\d+/,
233
- singleDigitSigned: /^-?\d/,
234
- // 0 to 9, -0 to -9
235
- twoDigitsSigned: /^-?\d{1,2}/,
236
- // 0 to 99, -0 to -99
237
- threeDigitsSigned: /^-?\d{1,3}/,
238
- // 0 to 999, -0 to -999
239
- fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
240
-
241
- };
242
- var timezonePatterns = {
243
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
244
- basic: /^([+-])(\d{2})(\d{2})|Z/,
245
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
246
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
247
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
248
- };
249
-
250
- function parseNumericPattern(pattern, string, valueCallback) {
251
- var matchResult = string.match(pattern);
252
-
253
- if (!matchResult) {
254
- return null;
255
- }
256
-
257
- var value = parseInt(matchResult[0], 10);
258
- return {
259
- value: valueCallback ? valueCallback(value) : value,
260
- rest: string.slice(matchResult[0].length)
261
- };
262
- }
263
-
264
- function parseTimezonePattern(pattern, string) {
265
- var matchResult = string.match(pattern);
266
-
267
- if (!matchResult) {
268
- return null;
269
- } // Input is 'Z'
270
-
271
-
272
- if (matchResult[0] === 'Z') {
273
- return {
274
- value: 0,
275
- rest: string.slice(1)
276
- };
277
- }
278
-
279
- var sign = matchResult[1] === '+' ? 1 : -1;
280
- var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
281
- var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
282
- var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
283
- return {
284
- value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
285
- rest: string.slice(matchResult[0].length)
286
- };
287
- }
288
-
289
- function parseAnyDigitsSigned(string, valueCallback) {
290
- return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
291
- }
292
-
293
- function parseNDigits(n, string, valueCallback) {
294
- switch (n) {
295
- case 1:
296
- return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
297
-
298
- case 2:
299
- return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
300
-
301
- case 3:
302
- return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
303
-
304
- case 4:
305
- return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
306
-
307
- default:
308
- return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
309
- }
310
- }
311
-
312
- function parseNDigitsSigned(n, string, valueCallback) {
313
- switch (n) {
314
- case 1:
315
- return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
316
-
317
- case 2:
318
- return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
319
-
320
- case 3:
321
- return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
322
-
323
- case 4:
324
- return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
325
-
326
- default:
327
- return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
328
- }
329
- }
330
-
331
- function dayPeriodEnumToHours(enumValue) {
332
- switch (enumValue) {
333
- case 'morning':
334
- return 4;
335
-
336
- case 'evening':
337
- return 17;
338
-
339
- case 'pm':
340
- case 'noon':
341
- case 'afternoon':
342
- return 12;
343
-
344
- case 'am':
345
- case 'midnight':
346
- case 'night':
347
- default:
348
- return 0;
349
- }
350
- }
351
-
352
- function normalizeTwoDigitYear(twoDigitYear, currentYear) {
353
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
354
- // 1 -> 1 AC
355
- // 0 -> 1 BC
356
- // -1 -> 2 BC
357
-
358
- var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
359
- var result;
360
-
361
- if (absCurrentYear <= 50) {
362
- result = twoDigitYear || 100;
363
- } else {
364
- var rangeEnd = absCurrentYear + 50;
365
- var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
366
- var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
367
- result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
368
- }
369
-
370
- return isCommonEra ? result : 1 - result;
371
- }
372
-
373
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
374
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
375
-
376
- function isLeapYearIndex(year) {
377
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
378
- }
379
- /*
380
- * | | Unit | | Unit |
381
- * |-----|--------------------------------|-----|--------------------------------|
382
- * | a | AM, PM | A* | Milliseconds in day |
383
- * | b | AM, PM, noon, midnight | B | Flexible day period |
384
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
385
- * | d | Day of month | D | Day of year |
386
- * | e | Local day of week | E | Day of week |
387
- * | f | | F* | Day of week in month |
388
- * | g* | Modified Julian day | G | Era |
389
- * | h | Hour [1-12] | H | Hour [0-23] |
390
- * | i! | ISO day of week | I! | ISO week of year |
391
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
392
- * | k | Hour [1-24] | K | Hour [0-11] |
393
- * | l* | (deprecated) | L | Stand-alone month |
394
- * | m | Minute | M | Month |
395
- * | n | | N | |
396
- * | o! | Ordinal number modifier | O* | Timezone (GMT) |
397
- * | p | | P | |
398
- * | q | Stand-alone quarter | Q | Quarter |
399
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
400
- * | s | Second | S | Fraction of second |
401
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
402
- * | u | Extended year | U* | Cyclic year |
403
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
404
- * | w | Local week of year | W* | Week of month |
405
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
406
- * | y | Year (abs) | Y | Local week-numbering year |
407
- * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
408
- *
409
- * Letters marked by * are not implemented but reserved by Unicode standard.
410
- *
411
- * Letters marked by ! are non-standard, but implemented by date-fns:
412
- * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
413
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
414
- * i.e. 7 for Sunday, 1 for Monday, etc.
415
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
416
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
417
- * `R` is supposed to be used in conjunction with `I` and `i`
418
- * for universal ISO week-numbering date, whereas
419
- * `Y` is supposed to be used in conjunction with `w` and `e`
420
- * for week-numbering date specific to the locale.
421
- */
422
-
423
-
424
- var parsers = {
425
- // Era
426
- G: {
427
- priority: 140,
428
- parse: function (string, token, match, _options) {
429
- switch (token) {
430
- // AD, BC
431
- case 'G':
432
- case 'GG':
433
- case 'GGG':
434
- return match.era(string, {
435
- width: 'abbreviated'
436
- }) || match.era(string, {
437
- width: 'narrow'
438
- });
439
- // A, B
440
-
441
- case 'GGGGG':
442
- return match.era(string, {
443
- width: 'narrow'
444
- });
445
- // Anno Domini, Before Christ
446
-
447
- case 'GGGG':
448
- default:
449
- return match.era(string, {
450
- width: 'wide'
451
- }) || match.era(string, {
452
- width: 'abbreviated'
453
- }) || match.era(string, {
454
- width: 'narrow'
455
- });
456
- }
457
- },
458
- set: function (date, flags, value, _options) {
459
- flags.era = value;
460
- date.setUTCFullYear(value, 0, 1);
461
- date.setUTCHours(0, 0, 0, 0);
462
- return date;
463
- },
464
- incompatibleTokens: ['R', 'u', 't', 'T']
465
- },
466
- // Year
467
- y: {
468
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
469
- // | Year | y | yy | yyy | yyyy | yyyyy |
470
- // |----------|-------|----|-------|-------|-------|
471
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
472
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
473
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
474
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
475
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
476
- priority: 130,
477
- parse: function (string, token, match, _options) {
478
- var valueCallback = function (year) {
479
- return {
480
- year: year,
481
- isTwoDigitYear: token === 'yy'
482
- };
483
- };
484
-
485
- switch (token) {
486
- case 'y':
487
- return parseNDigits(4, string, valueCallback);
488
-
489
- case 'yo':
490
- return match.ordinalNumber(string, {
491
- unit: 'year',
492
- valueCallback: valueCallback
493
- });
494
-
495
- default:
496
- return parseNDigits(token.length, string, valueCallback);
497
- }
498
- },
499
- validate: function (_date, value, _options) {
500
- return value.isTwoDigitYear || value.year > 0;
501
- },
502
- set: function (date, flags, value, _options) {
503
- var currentYear = date.getUTCFullYear();
504
-
505
- if (value.isTwoDigitYear) {
506
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
507
- date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
508
- date.setUTCHours(0, 0, 0, 0);
509
- return date;
510
- }
511
-
512
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
513
- date.setUTCFullYear(year, 0, 1);
514
- date.setUTCHours(0, 0, 0, 0);
515
- return date;
516
- },
517
- incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
518
- },
519
- // Local week-numbering year
520
- Y: {
521
- priority: 130,
522
- parse: function (string, token, match, _options) {
523
- var valueCallback = function (year) {
524
- return {
525
- year: year,
526
- isTwoDigitYear: token === 'YY'
527
- };
528
- };
529
-
530
- switch (token) {
531
- case 'Y':
532
- return parseNDigits(4, string, valueCallback);
533
-
534
- case 'Yo':
535
- return match.ordinalNumber(string, {
536
- unit: 'year',
537
- valueCallback: valueCallback
538
- });
539
-
540
- default:
541
- return parseNDigits(token.length, string, valueCallback);
542
- }
543
- },
544
- validate: function (_date, value, _options) {
545
- return value.isTwoDigitYear || value.year > 0;
546
- },
547
- set: function (date, flags, value, options) {
548
- var currentYear = index.getUTCWeekYear(date, options);
549
-
550
- if (value.isTwoDigitYear) {
551
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
552
- date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
553
- date.setUTCHours(0, 0, 0, 0);
554
- return index.startOfUTCWeek(date, options);
555
- }
556
-
557
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
558
- date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
559
- date.setUTCHours(0, 0, 0, 0);
560
- return index.startOfUTCWeek(date, options);
561
- },
562
- incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
563
- },
564
- // ISO week-numbering year
565
- R: {
566
- priority: 130,
567
- parse: function (string, token, _match, _options) {
568
- if (token === 'R') {
569
- return parseNDigitsSigned(4, string);
570
- }
571
-
572
- return parseNDigitsSigned(token.length, string);
573
- },
574
- set: function (_date, _flags, value, _options) {
575
- var firstWeekOfYear = new Date(0);
576
- firstWeekOfYear.setUTCFullYear(value, 0, 4);
577
- firstWeekOfYear.setUTCHours(0, 0, 0, 0);
578
- return index.startOfUTCISOWeek(firstWeekOfYear);
579
- },
580
- incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
581
- },
582
- // Extended year
583
- u: {
584
- priority: 130,
585
- parse: function (string, token, _match, _options) {
586
- if (token === 'u') {
587
- return parseNDigitsSigned(4, string);
588
- }
589
-
590
- return parseNDigitsSigned(token.length, string);
591
- },
592
- set: function (date, _flags, value, _options) {
593
- date.setUTCFullYear(value, 0, 1);
594
- date.setUTCHours(0, 0, 0, 0);
595
- return date;
596
- },
597
- incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
598
- },
599
- // Quarter
600
- Q: {
601
- priority: 120,
602
- parse: function (string, token, match, _options) {
603
- switch (token) {
604
- // 1, 2, 3, 4
605
- case 'Q':
606
- case 'QQ':
607
- // 01, 02, 03, 04
608
- return parseNDigits(token.length, string);
609
- // 1st, 2nd, 3rd, 4th
610
-
611
- case 'Qo':
612
- return match.ordinalNumber(string, {
613
- unit: 'quarter'
614
- });
615
- // Q1, Q2, Q3, Q4
616
-
617
- case 'QQQ':
618
- return match.quarter(string, {
619
- width: 'abbreviated',
620
- context: 'formatting'
621
- }) || match.quarter(string, {
622
- width: 'narrow',
623
- context: 'formatting'
624
- });
625
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
626
-
627
- case 'QQQQQ':
628
- return match.quarter(string, {
629
- width: 'narrow',
630
- context: 'formatting'
631
- });
632
- // 1st quarter, 2nd quarter, ...
633
-
634
- case 'QQQQ':
635
- default:
636
- return match.quarter(string, {
637
- width: 'wide',
638
- context: 'formatting'
639
- }) || match.quarter(string, {
640
- width: 'abbreviated',
641
- context: 'formatting'
642
- }) || match.quarter(string, {
643
- width: 'narrow',
644
- context: 'formatting'
645
- });
646
- }
647
- },
648
- validate: function (_date, value, _options) {
649
- return value >= 1 && value <= 4;
650
- },
651
- set: function (date, _flags, value, _options) {
652
- date.setUTCMonth((value - 1) * 3, 1);
653
- date.setUTCHours(0, 0, 0, 0);
654
- return date;
655
- },
656
- incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
657
- },
658
- // Stand-alone quarter
659
- q: {
660
- priority: 120,
661
- parse: function (string, token, match, _options) {
662
- switch (token) {
663
- // 1, 2, 3, 4
664
- case 'q':
665
- case 'qq':
666
- // 01, 02, 03, 04
667
- return parseNDigits(token.length, string);
668
- // 1st, 2nd, 3rd, 4th
669
-
670
- case 'qo':
671
- return match.ordinalNumber(string, {
672
- unit: 'quarter'
673
- });
674
- // Q1, Q2, Q3, Q4
675
-
676
- case 'qqq':
677
- return match.quarter(string, {
678
- width: 'abbreviated',
679
- context: 'standalone'
680
- }) || match.quarter(string, {
681
- width: 'narrow',
682
- context: 'standalone'
683
- });
684
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
685
-
686
- case 'qqqqq':
687
- return match.quarter(string, {
688
- width: 'narrow',
689
- context: 'standalone'
690
- });
691
- // 1st quarter, 2nd quarter, ...
692
-
693
- case 'qqqq':
694
- default:
695
- return match.quarter(string, {
696
- width: 'wide',
697
- context: 'standalone'
698
- }) || match.quarter(string, {
699
- width: 'abbreviated',
700
- context: 'standalone'
701
- }) || match.quarter(string, {
702
- width: 'narrow',
703
- context: 'standalone'
704
- });
705
- }
706
- },
707
- validate: function (_date, value, _options) {
708
- return value >= 1 && value <= 4;
709
- },
710
- set: function (date, _flags, value, _options) {
711
- date.setUTCMonth((value - 1) * 3, 1);
712
- date.setUTCHours(0, 0, 0, 0);
713
- return date;
714
- },
715
- incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
716
- },
717
- // Month
718
- M: {
719
- priority: 110,
720
- parse: function (string, token, match, _options) {
721
- var valueCallback = function (value) {
722
- return value - 1;
723
- };
724
-
725
- switch (token) {
726
- // 1, 2, ..., 12
727
- case 'M':
728
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
729
- // 01, 02, ..., 12
730
-
731
- case 'MM':
732
- return parseNDigits(2, string, valueCallback);
733
- // 1st, 2nd, ..., 12th
734
-
735
- case 'Mo':
736
- return match.ordinalNumber(string, {
737
- unit: 'month',
738
- valueCallback: valueCallback
739
- });
740
- // Jan, Feb, ..., Dec
741
-
742
- case 'MMM':
743
- return match.month(string, {
744
- width: 'abbreviated',
745
- context: 'formatting'
746
- }) || match.month(string, {
747
- width: 'narrow',
748
- context: 'formatting'
749
- });
750
- // J, F, ..., D
751
-
752
- case 'MMMMM':
753
- return match.month(string, {
754
- width: 'narrow',
755
- context: 'formatting'
756
- });
757
- // January, February, ..., December
758
-
759
- case 'MMMM':
760
- default:
761
- return match.month(string, {
762
- width: 'wide',
763
- context: 'formatting'
764
- }) || match.month(string, {
765
- width: 'abbreviated',
766
- context: 'formatting'
767
- }) || match.month(string, {
768
- width: 'narrow',
769
- context: 'formatting'
770
- });
771
- }
772
- },
773
- validate: function (_date, value, _options) {
774
- return value >= 0 && value <= 11;
775
- },
776
- set: function (date, _flags, value, _options) {
777
- date.setUTCMonth(value, 1);
778
- date.setUTCHours(0, 0, 0, 0);
779
- return date;
780
- },
781
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
782
- },
783
- // Stand-alone month
784
- L: {
785
- priority: 110,
786
- parse: function (string, token, match, _options) {
787
- var valueCallback = function (value) {
788
- return value - 1;
789
- };
790
-
791
- switch (token) {
792
- // 1, 2, ..., 12
793
- case 'L':
794
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
795
- // 01, 02, ..., 12
796
-
797
- case 'LL':
798
- return parseNDigits(2, string, valueCallback);
799
- // 1st, 2nd, ..., 12th
800
-
801
- case 'Lo':
802
- return match.ordinalNumber(string, {
803
- unit: 'month',
804
- valueCallback: valueCallback
805
- });
806
- // Jan, Feb, ..., Dec
807
-
808
- case 'LLL':
809
- return match.month(string, {
810
- width: 'abbreviated',
811
- context: 'standalone'
812
- }) || match.month(string, {
813
- width: 'narrow',
814
- context: 'standalone'
815
- });
816
- // J, F, ..., D
817
-
818
- case 'LLLLL':
819
- return match.month(string, {
820
- width: 'narrow',
821
- context: 'standalone'
822
- });
823
- // January, February, ..., December
824
-
825
- case 'LLLL':
826
- default:
827
- return match.month(string, {
828
- width: 'wide',
829
- context: 'standalone'
830
- }) || match.month(string, {
831
- width: 'abbreviated',
832
- context: 'standalone'
833
- }) || match.month(string, {
834
- width: 'narrow',
835
- context: 'standalone'
836
- });
837
- }
838
- },
839
- validate: function (_date, value, _options) {
840
- return value >= 0 && value <= 11;
841
- },
842
- set: function (date, _flags, value, _options) {
843
- date.setUTCMonth(value, 1);
844
- date.setUTCHours(0, 0, 0, 0);
845
- return date;
846
- },
847
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
848
- },
849
- // Local week of year
850
- w: {
851
- priority: 100,
852
- parse: function (string, token, match, _options) {
853
- switch (token) {
854
- case 'w':
855
- return parseNumericPattern(numericPatterns.week, string);
856
-
857
- case 'wo':
858
- return match.ordinalNumber(string, {
859
- unit: 'week'
860
- });
861
-
862
- default:
863
- return parseNDigits(token.length, string);
864
- }
865
- },
866
- validate: function (_date, value, _options) {
867
- return value >= 1 && value <= 53;
868
- },
869
- set: function (date, _flags, value, options) {
870
- return index.startOfUTCWeek(setUTCWeek(date, value, options), options);
871
- },
872
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
873
- },
874
- // ISO week of year
875
- I: {
876
- priority: 100,
877
- parse: function (string, token, match, _options) {
878
- switch (token) {
879
- case 'I':
880
- return parseNumericPattern(numericPatterns.week, string);
881
-
882
- case 'Io':
883
- return match.ordinalNumber(string, {
884
- unit: 'week'
885
- });
886
-
887
- default:
888
- return parseNDigits(token.length, string);
889
- }
890
- },
891
- validate: function (_date, value, _options) {
892
- return value >= 1 && value <= 53;
893
- },
894
- set: function (date, _flags, value, options) {
895
- return index.startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
896
- },
897
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
898
- },
899
- // Day of the month
900
- d: {
901
- priority: 90,
902
- subPriority: 1,
903
- parse: function (string, token, match, _options) {
904
- switch (token) {
905
- case 'd':
906
- return parseNumericPattern(numericPatterns.date, string);
907
-
908
- case 'do':
909
- return match.ordinalNumber(string, {
910
- unit: 'date'
911
- });
912
-
913
- default:
914
- return parseNDigits(token.length, string);
915
- }
916
- },
917
- validate: function (date, value, _options) {
918
- var year = date.getUTCFullYear();
919
- var isLeapYear = isLeapYearIndex(year);
920
- var month = date.getUTCMonth();
921
-
922
- if (isLeapYear) {
923
- return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
924
- } else {
925
- return value >= 1 && value <= DAYS_IN_MONTH[month];
926
- }
927
- },
928
- set: function (date, _flags, value, _options) {
929
- date.setUTCDate(value);
930
- date.setUTCHours(0, 0, 0, 0);
931
- return date;
932
- },
933
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
934
- },
935
- // Day of year
936
- D: {
937
- priority: 90,
938
- subPriority: 1,
939
- parse: function (string, token, match, _options) {
940
- switch (token) {
941
- case 'D':
942
- case 'DD':
943
- return parseNumericPattern(numericPatterns.dayOfYear, string);
944
-
945
- case 'Do':
946
- return match.ordinalNumber(string, {
947
- unit: 'date'
948
- });
949
-
950
- default:
951
- return parseNDigits(token.length, string);
952
- }
953
- },
954
- validate: function (date, value, _options) {
955
- var year = date.getUTCFullYear();
956
- var isLeapYear = isLeapYearIndex(year);
957
-
958
- if (isLeapYear) {
959
- return value >= 1 && value <= 366;
960
- } else {
961
- return value >= 1 && value <= 365;
962
- }
963
- },
964
- set: function (date, _flags, value, _options) {
965
- date.setUTCMonth(0, value);
966
- date.setUTCHours(0, 0, 0, 0);
967
- return date;
968
- },
969
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
970
- },
971
- // Day of week
972
- E: {
973
- priority: 90,
974
- parse: function (string, token, match, _options) {
975
- switch (token) {
976
- // Tue
977
- case 'E':
978
- case 'EE':
979
- case 'EEE':
980
- return match.day(string, {
981
- width: 'abbreviated',
982
- context: 'formatting'
983
- }) || match.day(string, {
984
- width: 'short',
985
- context: 'formatting'
986
- }) || match.day(string, {
987
- width: 'narrow',
988
- context: 'formatting'
989
- });
990
- // T
991
-
992
- case 'EEEEE':
993
- return match.day(string, {
994
- width: 'narrow',
995
- context: 'formatting'
996
- });
997
- // Tu
998
-
999
- case 'EEEEEE':
1000
- return match.day(string, {
1001
- width: 'short',
1002
- context: 'formatting'
1003
- }) || match.day(string, {
1004
- width: 'narrow',
1005
- context: 'formatting'
1006
- });
1007
- // Tuesday
1008
-
1009
- case 'EEEE':
1010
- default:
1011
- return match.day(string, {
1012
- width: 'wide',
1013
- context: 'formatting'
1014
- }) || match.day(string, {
1015
- width: 'abbreviated',
1016
- context: 'formatting'
1017
- }) || match.day(string, {
1018
- width: 'short',
1019
- context: 'formatting'
1020
- }) || match.day(string, {
1021
- width: 'narrow',
1022
- context: 'formatting'
1023
- });
1024
- }
1025
- },
1026
- validate: function (_date, value, _options) {
1027
- return value >= 0 && value <= 6;
1028
- },
1029
- set: function (date, _flags, value, options) {
1030
- date = setUTCDay(date, value, options);
1031
- date.setUTCHours(0, 0, 0, 0);
1032
- return date;
1033
- },
1034
- incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
1035
- },
1036
- // Local day of week
1037
- e: {
1038
- priority: 90,
1039
- parse: function (string, token, match, options) {
1040
- var valueCallback = function (value) {
1041
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1042
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1043
- };
1044
-
1045
- switch (token) {
1046
- // 3
1047
- case 'e':
1048
- case 'ee':
1049
- // 03
1050
- return parseNDigits(token.length, string, valueCallback);
1051
- // 3rd
1052
-
1053
- case 'eo':
1054
- return match.ordinalNumber(string, {
1055
- unit: 'day',
1056
- valueCallback: valueCallback
1057
- });
1058
- // Tue
1059
-
1060
- case 'eee':
1061
- return match.day(string, {
1062
- width: 'abbreviated',
1063
- context: 'formatting'
1064
- }) || match.day(string, {
1065
- width: 'short',
1066
- context: 'formatting'
1067
- }) || match.day(string, {
1068
- width: 'narrow',
1069
- context: 'formatting'
1070
- });
1071
- // T
1072
-
1073
- case 'eeeee':
1074
- return match.day(string, {
1075
- width: 'narrow',
1076
- context: 'formatting'
1077
- });
1078
- // Tu
1079
-
1080
- case 'eeeeee':
1081
- return match.day(string, {
1082
- width: 'short',
1083
- context: 'formatting'
1084
- }) || match.day(string, {
1085
- width: 'narrow',
1086
- context: 'formatting'
1087
- });
1088
- // Tuesday
1089
-
1090
- case 'eeee':
1091
- default:
1092
- return match.day(string, {
1093
- width: 'wide',
1094
- context: 'formatting'
1095
- }) || match.day(string, {
1096
- width: 'abbreviated',
1097
- context: 'formatting'
1098
- }) || match.day(string, {
1099
- width: 'short',
1100
- context: 'formatting'
1101
- }) || match.day(string, {
1102
- width: 'narrow',
1103
- context: 'formatting'
1104
- });
1105
- }
1106
- },
1107
- validate: function (_date, value, _options) {
1108
- return value >= 0 && value <= 6;
1109
- },
1110
- set: function (date, _flags, value, options) {
1111
- date = setUTCDay(date, value, options);
1112
- date.setUTCHours(0, 0, 0, 0);
1113
- return date;
1114
- },
1115
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1116
- },
1117
- // Stand-alone local day of week
1118
- c: {
1119
- priority: 90,
1120
- parse: function (string, token, match, options) {
1121
- var valueCallback = function (value) {
1122
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1123
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1124
- };
1125
-
1126
- switch (token) {
1127
- // 3
1128
- case 'c':
1129
- case 'cc':
1130
- // 03
1131
- return parseNDigits(token.length, string, valueCallback);
1132
- // 3rd
1133
-
1134
- case 'co':
1135
- return match.ordinalNumber(string, {
1136
- unit: 'day',
1137
- valueCallback: valueCallback
1138
- });
1139
- // Tue
1140
-
1141
- case 'ccc':
1142
- return match.day(string, {
1143
- width: 'abbreviated',
1144
- context: 'standalone'
1145
- }) || match.day(string, {
1146
- width: 'short',
1147
- context: 'standalone'
1148
- }) || match.day(string, {
1149
- width: 'narrow',
1150
- context: 'standalone'
1151
- });
1152
- // T
1153
-
1154
- case 'ccccc':
1155
- return match.day(string, {
1156
- width: 'narrow',
1157
- context: 'standalone'
1158
- });
1159
- // Tu
1160
-
1161
- case 'cccccc':
1162
- return match.day(string, {
1163
- width: 'short',
1164
- context: 'standalone'
1165
- }) || match.day(string, {
1166
- width: 'narrow',
1167
- context: 'standalone'
1168
- });
1169
- // Tuesday
1170
-
1171
- case 'cccc':
1172
- default:
1173
- return match.day(string, {
1174
- width: 'wide',
1175
- context: 'standalone'
1176
- }) || match.day(string, {
1177
- width: 'abbreviated',
1178
- context: 'standalone'
1179
- }) || match.day(string, {
1180
- width: 'short',
1181
- context: 'standalone'
1182
- }) || match.day(string, {
1183
- width: 'narrow',
1184
- context: 'standalone'
1185
- });
1186
- }
1187
- },
1188
- validate: function (_date, value, _options) {
1189
- return value >= 0 && value <= 6;
1190
- },
1191
- set: function (date, _flags, value, options) {
1192
- date = setUTCDay(date, value, options);
1193
- date.setUTCHours(0, 0, 0, 0);
1194
- return date;
1195
- },
1196
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1197
- },
1198
- // ISO day of week
1199
- i: {
1200
- priority: 90,
1201
- parse: function (string, token, match, _options) {
1202
- var valueCallback = function (value) {
1203
- if (value === 0) {
1204
- return 7;
1205
- }
1206
-
1207
- return value;
1208
- };
1209
-
1210
- switch (token) {
1211
- // 2
1212
- case 'i':
1213
- case 'ii':
1214
- // 02
1215
- return parseNDigits(token.length, string);
1216
- // 2nd
1217
-
1218
- case 'io':
1219
- return match.ordinalNumber(string, {
1220
- unit: 'day'
1221
- });
1222
- // Tue
1223
-
1224
- case 'iii':
1225
- return match.day(string, {
1226
- width: 'abbreviated',
1227
- context: 'formatting',
1228
- valueCallback: valueCallback
1229
- }) || match.day(string, {
1230
- width: 'short',
1231
- context: 'formatting',
1232
- valueCallback: valueCallback
1233
- }) || match.day(string, {
1234
- width: 'narrow',
1235
- context: 'formatting',
1236
- valueCallback: valueCallback
1237
- });
1238
- // T
1239
-
1240
- case 'iiiii':
1241
- return match.day(string, {
1242
- width: 'narrow',
1243
- context: 'formatting',
1244
- valueCallback: valueCallback
1245
- });
1246
- // Tu
1247
-
1248
- case 'iiiiii':
1249
- return match.day(string, {
1250
- width: 'short',
1251
- context: 'formatting',
1252
- valueCallback: valueCallback
1253
- }) || match.day(string, {
1254
- width: 'narrow',
1255
- context: 'formatting',
1256
- valueCallback: valueCallback
1257
- });
1258
- // Tuesday
1259
-
1260
- case 'iiii':
1261
- default:
1262
- return match.day(string, {
1263
- width: 'wide',
1264
- context: 'formatting',
1265
- valueCallback: valueCallback
1266
- }) || match.day(string, {
1267
- width: 'abbreviated',
1268
- context: 'formatting',
1269
- valueCallback: valueCallback
1270
- }) || match.day(string, {
1271
- width: 'short',
1272
- context: 'formatting',
1273
- valueCallback: valueCallback
1274
- }) || match.day(string, {
1275
- width: 'narrow',
1276
- context: 'formatting',
1277
- valueCallback: valueCallback
1278
- });
1279
- }
1280
- },
1281
- validate: function (_date, value, _options) {
1282
- return value >= 1 && value <= 7;
1283
- },
1284
- set: function (date, _flags, value, options) {
1285
- date = setUTCISODay(date, value, options);
1286
- date.setUTCHours(0, 0, 0, 0);
1287
- return date;
1288
- },
1289
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1290
- },
1291
- // AM or PM
1292
- a: {
1293
- priority: 80,
1294
- parse: function (string, token, match, _options) {
1295
- switch (token) {
1296
- case 'a':
1297
- case 'aa':
1298
- case 'aaa':
1299
- return match.dayPeriod(string, {
1300
- width: 'abbreviated',
1301
- context: 'formatting'
1302
- }) || match.dayPeriod(string, {
1303
- width: 'narrow',
1304
- context: 'formatting'
1305
- });
1306
-
1307
- case 'aaaaa':
1308
- return match.dayPeriod(string, {
1309
- width: 'narrow',
1310
- context: 'formatting'
1311
- });
1312
-
1313
- case 'aaaa':
1314
- default:
1315
- return match.dayPeriod(string, {
1316
- width: 'wide',
1317
- context: 'formatting'
1318
- }) || match.dayPeriod(string, {
1319
- width: 'abbreviated',
1320
- context: 'formatting'
1321
- }) || match.dayPeriod(string, {
1322
- width: 'narrow',
1323
- context: 'formatting'
1324
- });
1325
- }
1326
- },
1327
- set: function (date, _flags, value, _options) {
1328
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1329
- return date;
1330
- },
1331
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1332
- },
1333
- // AM, PM, midnight
1334
- b: {
1335
- priority: 80,
1336
- parse: function (string, token, match, _options) {
1337
- switch (token) {
1338
- case 'b':
1339
- case 'bb':
1340
- case 'bbb':
1341
- return match.dayPeriod(string, {
1342
- width: 'abbreviated',
1343
- context: 'formatting'
1344
- }) || match.dayPeriod(string, {
1345
- width: 'narrow',
1346
- context: 'formatting'
1347
- });
1348
-
1349
- case 'bbbbb':
1350
- return match.dayPeriod(string, {
1351
- width: 'narrow',
1352
- context: 'formatting'
1353
- });
1354
-
1355
- case 'bbbb':
1356
- default:
1357
- return match.dayPeriod(string, {
1358
- width: 'wide',
1359
- context: 'formatting'
1360
- }) || match.dayPeriod(string, {
1361
- width: 'abbreviated',
1362
- context: 'formatting'
1363
- }) || match.dayPeriod(string, {
1364
- width: 'narrow',
1365
- context: 'formatting'
1366
- });
1367
- }
1368
- },
1369
- set: function (date, _flags, value, _options) {
1370
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1371
- return date;
1372
- },
1373
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1374
- },
1375
- // in the morning, in the afternoon, in the evening, at night
1376
- B: {
1377
- priority: 80,
1378
- parse: function (string, token, match, _options) {
1379
- switch (token) {
1380
- case 'B':
1381
- case 'BB':
1382
- case 'BBB':
1383
- return match.dayPeriod(string, {
1384
- width: 'abbreviated',
1385
- context: 'formatting'
1386
- }) || match.dayPeriod(string, {
1387
- width: 'narrow',
1388
- context: 'formatting'
1389
- });
1390
-
1391
- case 'BBBBB':
1392
- return match.dayPeriod(string, {
1393
- width: 'narrow',
1394
- context: 'formatting'
1395
- });
1396
-
1397
- case 'BBBB':
1398
- default:
1399
- return match.dayPeriod(string, {
1400
- width: 'wide',
1401
- context: 'formatting'
1402
- }) || match.dayPeriod(string, {
1403
- width: 'abbreviated',
1404
- context: 'formatting'
1405
- }) || match.dayPeriod(string, {
1406
- width: 'narrow',
1407
- context: 'formatting'
1408
- });
1409
- }
1410
- },
1411
- set: function (date, _flags, value, _options) {
1412
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1413
- return date;
1414
- },
1415
- incompatibleTokens: ['a', 'b', 't', 'T']
1416
- },
1417
- // Hour [1-12]
1418
- h: {
1419
- priority: 70,
1420
- parse: function (string, token, match, _options) {
1421
- switch (token) {
1422
- case 'h':
1423
- return parseNumericPattern(numericPatterns.hour12h, string);
1424
-
1425
- case 'ho':
1426
- return match.ordinalNumber(string, {
1427
- unit: 'hour'
1428
- });
1429
-
1430
- default:
1431
- return parseNDigits(token.length, string);
1432
- }
1433
- },
1434
- validate: function (_date, value, _options) {
1435
- return value >= 1 && value <= 12;
1436
- },
1437
- set: function (date, _flags, value, _options) {
1438
- var isPM = date.getUTCHours() >= 12;
1439
-
1440
- if (isPM && value < 12) {
1441
- date.setUTCHours(value + 12, 0, 0, 0);
1442
- } else if (!isPM && value === 12) {
1443
- date.setUTCHours(0, 0, 0, 0);
1444
- } else {
1445
- date.setUTCHours(value, 0, 0, 0);
1446
- }
1447
-
1448
- return date;
1449
- },
1450
- incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1451
- },
1452
- // Hour [0-23]
1453
- H: {
1454
- priority: 70,
1455
- parse: function (string, token, match, _options) {
1456
- switch (token) {
1457
- case 'H':
1458
- return parseNumericPattern(numericPatterns.hour23h, string);
1459
-
1460
- case 'Ho':
1461
- return match.ordinalNumber(string, {
1462
- unit: 'hour'
1463
- });
1464
-
1465
- default:
1466
- return parseNDigits(token.length, string);
1467
- }
1468
- },
1469
- validate: function (_date, value, _options) {
1470
- return value >= 0 && value <= 23;
1471
- },
1472
- set: function (date, _flags, value, _options) {
1473
- date.setUTCHours(value, 0, 0, 0);
1474
- return date;
1475
- },
1476
- incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1477
- },
1478
- // Hour [0-11]
1479
- K: {
1480
- priority: 70,
1481
- parse: function (string, token, match, _options) {
1482
- switch (token) {
1483
- case 'K':
1484
- return parseNumericPattern(numericPatterns.hour11h, string);
1485
-
1486
- case 'Ko':
1487
- return match.ordinalNumber(string, {
1488
- unit: 'hour'
1489
- });
1490
-
1491
- default:
1492
- return parseNDigits(token.length, string);
1493
- }
1494
- },
1495
- validate: function (_date, value, _options) {
1496
- return value >= 0 && value <= 11;
1497
- },
1498
- set: function (date, _flags, value, _options) {
1499
- var isPM = date.getUTCHours() >= 12;
1500
-
1501
- if (isPM && value < 12) {
1502
- date.setUTCHours(value + 12, 0, 0, 0);
1503
- } else {
1504
- date.setUTCHours(value, 0, 0, 0);
1505
- }
1506
-
1507
- return date;
1508
- },
1509
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1510
- },
1511
- // Hour [1-24]
1512
- k: {
1513
- priority: 70,
1514
- parse: function (string, token, match, _options) {
1515
- switch (token) {
1516
- case 'k':
1517
- return parseNumericPattern(numericPatterns.hour24h, string);
1518
-
1519
- case 'ko':
1520
- return match.ordinalNumber(string, {
1521
- unit: 'hour'
1522
- });
1523
-
1524
- default:
1525
- return parseNDigits(token.length, string);
1526
- }
1527
- },
1528
- validate: function (_date, value, _options) {
1529
- return value >= 1 && value <= 24;
1530
- },
1531
- set: function (date, _flags, value, _options) {
1532
- var hours = value <= 24 ? value % 24 : value;
1533
- date.setUTCHours(hours, 0, 0, 0);
1534
- return date;
1535
- },
1536
- incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1537
- },
1538
- // Minute
1539
- m: {
1540
- priority: 60,
1541
- parse: function (string, token, match, _options) {
1542
- switch (token) {
1543
- case 'm':
1544
- return parseNumericPattern(numericPatterns.minute, string);
1545
-
1546
- case 'mo':
1547
- return match.ordinalNumber(string, {
1548
- unit: 'minute'
1549
- });
1550
-
1551
- default:
1552
- return parseNDigits(token.length, string);
1553
- }
1554
- },
1555
- validate: function (_date, value, _options) {
1556
- return value >= 0 && value <= 59;
1557
- },
1558
- set: function (date, _flags, value, _options) {
1559
- date.setUTCMinutes(value, 0, 0);
1560
- return date;
1561
- },
1562
- incompatibleTokens: ['t', 'T']
1563
- },
1564
- // Second
1565
- s: {
1566
- priority: 50,
1567
- parse: function (string, token, match, _options) {
1568
- switch (token) {
1569
- case 's':
1570
- return parseNumericPattern(numericPatterns.second, string);
1571
-
1572
- case 'so':
1573
- return match.ordinalNumber(string, {
1574
- unit: 'second'
1575
- });
1576
-
1577
- default:
1578
- return parseNDigits(token.length, string);
1579
- }
1580
- },
1581
- validate: function (_date, value, _options) {
1582
- return value >= 0 && value <= 59;
1583
- },
1584
- set: function (date, _flags, value, _options) {
1585
- date.setUTCSeconds(value, 0);
1586
- return date;
1587
- },
1588
- incompatibleTokens: ['t', 'T']
1589
- },
1590
- // Fraction of second
1591
- S: {
1592
- priority: 30,
1593
- parse: function (string, token, _match, _options) {
1594
- var valueCallback = function (value) {
1595
- return Math.floor(value * Math.pow(10, -token.length + 3));
1596
- };
1597
-
1598
- return parseNDigits(token.length, string, valueCallback);
1599
- },
1600
- set: function (date, _flags, value, _options) {
1601
- date.setUTCMilliseconds(value);
1602
- return date;
1603
- },
1604
- incompatibleTokens: ['t', 'T']
1605
- },
1606
- // Timezone (ISO-8601. +00:00 is `'Z'`)
1607
- X: {
1608
- priority: 10,
1609
- parse: function (string, token, _match, _options) {
1610
- switch (token) {
1611
- case 'X':
1612
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1613
-
1614
- case 'XX':
1615
- return parseTimezonePattern(timezonePatterns.basic, string);
1616
-
1617
- case 'XXXX':
1618
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1619
-
1620
- case 'XXXXX':
1621
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1622
-
1623
- case 'XXX':
1624
- default:
1625
- return parseTimezonePattern(timezonePatterns.extended, string);
1626
- }
1627
- },
1628
- set: function (date, flags, value, _options) {
1629
- if (flags.timestampIsSet) {
1630
- return date;
1631
- }
1632
-
1633
- return new Date(date.getTime() - value);
1634
- },
1635
- incompatibleTokens: ['t', 'T', 'x']
1636
- },
1637
- // Timezone (ISO-8601)
1638
- x: {
1639
- priority: 10,
1640
- parse: function (string, token, _match, _options) {
1641
- switch (token) {
1642
- case 'x':
1643
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1644
-
1645
- case 'xx':
1646
- return parseTimezonePattern(timezonePatterns.basic, string);
1647
-
1648
- case 'xxxx':
1649
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1650
-
1651
- case 'xxxxx':
1652
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1653
-
1654
- case 'xxx':
1655
- default:
1656
- return parseTimezonePattern(timezonePatterns.extended, string);
1657
- }
1658
- },
1659
- set: function (date, flags, value, _options) {
1660
- if (flags.timestampIsSet) {
1661
- return date;
1662
- }
1663
-
1664
- return new Date(date.getTime() - value);
1665
- },
1666
- incompatibleTokens: ['t', 'T', 'X']
1667
- },
1668
- // Seconds timestamp
1669
- t: {
1670
- priority: 40,
1671
- parse: function (string, _token, _match, _options) {
1672
- return parseAnyDigitsSigned(string);
1673
- },
1674
- set: function (_date, _flags, value, _options) {
1675
- return [new Date(value * 1000), {
1676
- timestampIsSet: true
1677
- }];
1678
- },
1679
- incompatibleTokens: '*'
1680
- },
1681
- // Milliseconds timestamp
1682
- T: {
1683
- priority: 20,
1684
- parse: function (string, _token, _match, _options) {
1685
- return parseAnyDigitsSigned(string);
1686
- },
1687
- set: function (_date, _flags, value, _options) {
1688
- return [new Date(value), {
1689
- timestampIsSet: true
1690
- }];
1691
- },
1692
- incompatibleTokens: '*'
1693
- }
1694
- };
1695
-
1696
- var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1697
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1698
- // (one of the certain letters followed by `o`)
1699
- // - (\w)\1* matches any sequences of the same letter
1700
- // - '' matches two quote characters in a row
1701
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1702
- // except a single quote symbol, which ends the sequence.
1703
- // Two quote characters do not end the sequence.
1704
- // If there is no matching single quote
1705
- // then the sequence will continue until the end of the string.
1706
- // - . matches any single character unmatched by previous parts of the RegExps
1707
-
1708
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1709
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1710
-
1711
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1712
- var escapedStringRegExp = /^'([^]*?)'?$/;
1713
- var doubleQuoteRegExp = /''/g;
1714
- var notWhitespaceRegExp = /\S/;
1715
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1716
- /**
1717
- * @name parse
1718
- * @category Common Helpers
1719
- * @summary Parse the date.
1720
- *
1721
- * @description
1722
- * Return the date parsed from string using the given format string.
1723
- *
1724
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1725
- * > See: https://git.io/fxCyr
1726
- *
1727
- * The characters in the format string wrapped between two single quotes characters (') are escaped.
1728
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1729
- *
1730
- * Format of the format string is based on Unicode Technical Standard #35:
1731
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1732
- * with a few additions (see note 5 below the table).
1733
- *
1734
- * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1735
- * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1736
- *
1737
- * ```javascript
1738
- * parse('23 AM', 'HH a', new Date())
1739
- * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1740
- * ```
1741
- *
1742
- * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1743
- *
1744
- * Accepted format string patterns:
1745
- * | Unit |Prior| Pattern | Result examples | Notes |
1746
- * |---------------------------------|-----|---------|-----------------------------------|-------|
1747
- * | Era | 140 | G..GGG | AD, BC | |
1748
- * | | | GGGG | Anno Domini, Before Christ | 2 |
1749
- * | | | GGGGG | A, B | |
1750
- * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1751
- * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1752
- * | | | yy | 44, 01, 00, 17 | 4 |
1753
- * | | | yyy | 044, 001, 123, 999 | 4 |
1754
- * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1755
- * | | | yyyyy | ... | 2,4 |
1756
- * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1757
- * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1758
- * | | | YY | 44, 01, 00, 17 | 4,6 |
1759
- * | | | YYY | 044, 001, 123, 999 | 4 |
1760
- * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1761
- * | | | YYYYY | ... | 2,4 |
1762
- * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1763
- * | | | RR | -43, 01, 00, 17 | 4,5 |
1764
- * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1765
- * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1766
- * | | | RRRRR | ... | 2,4,5 |
1767
- * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1768
- * | | | uu | -43, 01, 99, -99 | 4 |
1769
- * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1770
- * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1771
- * | | | uuuuu | ... | 2,4 |
1772
- * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1773
- * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1774
- * | | | QQ | 01, 02, 03, 04 | |
1775
- * | | | QQQ | Q1, Q2, Q3, Q4 | |
1776
- * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1777
- * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1778
- * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1779
- * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1780
- * | | | qq | 01, 02, 03, 04 | |
1781
- * | | | qqq | Q1, Q2, Q3, Q4 | |
1782
- * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1783
- * | | | qqqqq | 1, 2, 3, 4 | 3 |
1784
- * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1785
- * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1786
- * | | | MM | 01, 02, ..., 12 | |
1787
- * | | | MMM | Jan, Feb, ..., Dec | |
1788
- * | | | MMMM | January, February, ..., December | 2 |
1789
- * | | | MMMMM | J, F, ..., D | |
1790
- * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1791
- * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1792
- * | | | LL | 01, 02, ..., 12 | |
1793
- * | | | LLL | Jan, Feb, ..., Dec | |
1794
- * | | | LLLL | January, February, ..., December | 2 |
1795
- * | | | LLLLL | J, F, ..., D | |
1796
- * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1797
- * | | | wo | 1st, 2nd, ..., 53th | 5 |
1798
- * | | | ww | 01, 02, ..., 53 | |
1799
- * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1800
- * | | | Io | 1st, 2nd, ..., 53th | 5 |
1801
- * | | | II | 01, 02, ..., 53 | 5 |
1802
- * | Day of month | 90 | d | 1, 2, ..., 31 | |
1803
- * | | | do | 1st, 2nd, ..., 31st | 5 |
1804
- * | | | dd | 01, 02, ..., 31 | |
1805
- * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1806
- * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1807
- * | | | DD | 01, 02, ..., 365, 366 | 7 |
1808
- * | | | DDD | 001, 002, ..., 365, 366 | |
1809
- * | | | DDDD | ... | 2 |
1810
- * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1811
- * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1812
- * | | | EEEEE | M, T, W, T, F, S, S | |
1813
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1814
- * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1815
- * | | | io | 1st, 2nd, ..., 7th | 5 |
1816
- * | | | ii | 01, 02, ..., 07 | 5 |
1817
- * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1818
- * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1819
- * | | | iiiii | M, T, W, T, F, S, S | 5 |
1820
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1821
- * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1822
- * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1823
- * | | | ee | 02, 03, ..., 01 | |
1824
- * | | | eee | Mon, Tue, Wed, ..., Sun | |
1825
- * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1826
- * | | | eeeee | M, T, W, T, F, S, S | |
1827
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1828
- * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1829
- * | | | co | 2nd, 3rd, ..., 1st | 5 |
1830
- * | | | cc | 02, 03, ..., 01 | |
1831
- * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1832
- * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1833
- * | | | ccccc | M, T, W, T, F, S, S | |
1834
- * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1835
- * | AM, PM | 80 | a..aaa | AM, PM | |
1836
- * | | | aaaa | a.m., p.m. | 2 |
1837
- * | | | aaaaa | a, p | |
1838
- * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1839
- * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1840
- * | | | bbbbb | a, p, n, mi | |
1841
- * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1842
- * | | | BBBB | at night, in the morning, ... | 2 |
1843
- * | | | BBBBB | at night, in the morning, ... | |
1844
- * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1845
- * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1846
- * | | | hh | 01, 02, ..., 11, 12 | |
1847
- * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1848
- * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1849
- * | | | HH | 00, 01, 02, ..., 23 | |
1850
- * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1851
- * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1852
- * | | | KK | 01, 02, ..., 11, 00 | |
1853
- * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1854
- * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1855
- * | | | kk | 24, 01, 02, ..., 23 | |
1856
- * | Minute | 60 | m | 0, 1, ..., 59 | |
1857
- * | | | mo | 0th, 1st, ..., 59th | 5 |
1858
- * | | | mm | 00, 01, ..., 59 | |
1859
- * | Second | 50 | s | 0, 1, ..., 59 | |
1860
- * | | | so | 0th, 1st, ..., 59th | 5 |
1861
- * | | | ss | 00, 01, ..., 59 | |
1862
- * | Seconds timestamp | 40 | t | 512969520 | |
1863
- * | | | tt | ... | 2 |
1864
- * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1865
- * | | | SS | 00, 01, ..., 99 | |
1866
- * | | | SSS | 000, 0001, ..., 999 | |
1867
- * | | | SSSS | ... | 2 |
1868
- * | Milliseconds timestamp | 20 | T | 512969520900 | |
1869
- * | | | TT | ... | 2 |
1870
- * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1871
- * | | | XX | -0800, +0530, Z | |
1872
- * | | | XXX | -08:00, +05:30, Z | |
1873
- * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1874
- * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1875
- * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1876
- * | | | xx | -0800, +0530, +0000 | |
1877
- * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1878
- * | | | xxxx | -0800, +0530, +0000, +123456 | |
1879
- * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1880
- * | Long localized date | NA | P | 05/29/1453 | 5,8 |
1881
- * | | | PP | May 29, 1453 | |
1882
- * | | | PPP | May 29th, 1453 | |
1883
- * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
1884
- * | Long localized time | NA | p | 12:00 AM | 5,8 |
1885
- * | | | pp | 12:00:00 AM | |
1886
- * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
1887
- * | | | PPpp | May 29, 1453, 12:00:00 AM | |
1888
- * | | | PPPpp | May 29th, 1453 at ... | |
1889
- * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
1890
- * Notes:
1891
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
1892
- * are the same as "stand-alone" units, but are different in some languages.
1893
- * "Formatting" units are declined according to the rules of the language
1894
- * in the context of a date. "Stand-alone" units are always nominative singular.
1895
- * In `format` function, they will produce different result:
1896
- *
1897
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
1898
- *
1899
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
1900
- *
1901
- * `parse` will try to match both formatting and stand-alone units interchangably.
1902
- *
1903
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
1904
- * the single quote characters (see below).
1905
- * If the sequence is longer than listed in table:
1906
- * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
1907
- * as wide as the sequence
1908
- * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
1909
- * These variations are marked with "2" in the last column of the table.
1910
- *
1911
- * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
1912
- * These tokens represent the shortest form of the quarter.
1913
- *
1914
- * 4. The main difference between `y` and `u` patterns are B.C. years:
1915
- *
1916
- * | Year | `y` | `u` |
1917
- * |------|-----|-----|
1918
- * | AC 1 | 1 | 1 |
1919
- * | BC 1 | 1 | 0 |
1920
- * | BC 2 | 2 | -1 |
1921
- *
1922
- * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
1923
- *
1924
- * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
1925
- *
1926
- * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
1927
- *
1928
- * while `uu` will just assign the year as is:
1929
- *
1930
- * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
1931
- *
1932
- * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
1933
- *
1934
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
1935
- * except local week-numbering years are dependent on `options.weekStartsOn`
1936
- * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
1937
- * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
1938
- *
1939
- * 5. These patterns are not in the Unicode Technical Standard #35:
1940
- * - `i`: ISO day of week
1941
- * - `I`: ISO week of year
1942
- * - `R`: ISO week-numbering year
1943
- * - `o`: ordinal number modifier
1944
- * - `P`: long localized date
1945
- * - `p`: long localized time
1946
- *
1947
- * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
1948
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
1949
- *
1950
- * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
1951
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
1952
- *
1953
- * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
1954
- * on the given locale.
1955
- *
1956
- * using `en-US` locale: `P` => `MM/dd/yyyy`
1957
- * using `en-US` locale: `p` => `hh:mm a`
1958
- * using `pt-BR` locale: `P` => `dd/MM/yyyy`
1959
- * using `pt-BR` locale: `p` => `HH:mm`
1960
- *
1961
- * Values will be assigned to the date in the descending order of its unit's priority.
1962
- * Units of an equal priority overwrite each other in the order of appearance.
1963
- *
1964
- * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
1965
- * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
1966
- *
1967
- * `referenceDate` must be passed for correct work of the function.
1968
- * If you're not sure which `referenceDate` to supply, create a new instance of Date:
1969
- * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
1970
- * In this case parsing will be done in the context of the current date.
1971
- * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
1972
- * then `Invalid Date` will be returned.
1973
- *
1974
- * The result may vary by locale.
1975
- *
1976
- * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
1977
- *
1978
- * If parsing failed, `Invalid Date` will be returned.
1979
- * Invalid Date is a Date, whose time value is NaN.
1980
- * Time value of Date: http://es5.github.io/#x15.9.1.1
1981
- *
1982
- * ### v2.0.0 breaking changes:
1983
- *
1984
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
1985
- *
1986
- * - Old `parse` was renamed to `toDate`.
1987
- * Now `parse` is a new function which parses a string using a provided format.
1988
- *
1989
- * ```javascript
1990
- * // Before v2.0.0
1991
- * parse('2016-01-01')
1992
- *
1993
- * // v2.0.0 onward (toDate no longer accepts a string)
1994
- * toDate(1392098430000) // Unix to timestamp
1995
- * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
1996
- * parse('2016-01-01', 'yyyy-MM-dd', new Date())
1997
- * ```
1998
- *
1999
- * @param {String} dateString - the string to parse
2000
- * @param {String} formatString - the string of tokens
2001
- * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
2002
- * @param {Object} [options] - an object with options.
2003
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2004
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2005
- * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
2006
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2007
- * see: https://git.io/fxCyr
2008
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2009
- * see: https://git.io/fxCyr
2010
- * @returns {Date} the parsed date
2011
- * @throws {TypeError} 3 arguments required
2012
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2013
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2014
- * @throws {RangeError} `options.locale` must contain `match` property
2015
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2016
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2017
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2018
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2019
- * @throws {RangeError} format string contains an unescaped latin alphabet character
2020
- *
2021
- * @example
2022
- * // Parse 11 February 2014 from middle-endian format:
2023
- * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
2024
- * //=> Tue Feb 11 2014 00:00:00
2025
- *
2026
- * @example
2027
- * // Parse 28th of February in Esperanto locale in the context of 2010 year:
2028
- * import eo from 'date-fns/locale/eo'
2029
- * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
2030
- * locale: eo
2031
- * })
2032
- * //=> Sun Feb 28 2010 00:00:00
2033
- */
2034
-
2035
- function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
2036
- index.requiredArgs(3, arguments);
2037
- var dateString = String(dirtyDateString);
2038
- var formatString = String(dirtyFormatString);
2039
- var options = {};
2040
- var locale = options.locale || index.locale;
2041
-
2042
- if (!locale.match) {
2043
- throw new RangeError('locale must contain match property');
2044
- }
2045
-
2046
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
2047
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index.toInteger(localeFirstWeekContainsDate);
2048
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index.toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2049
-
2050
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2051
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2052
- }
2053
-
2054
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
2055
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
2056
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2057
-
2058
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2059
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2060
- }
2061
-
2062
- if (formatString === '') {
2063
- if (dateString === '') {
2064
- return index.toDate(dirtyReferenceDate);
2065
- } else {
2066
- return new Date(NaN);
2067
- }
2068
- }
2069
-
2070
- var subFnOptions = {
2071
- firstWeekContainsDate: firstWeekContainsDate,
2072
- weekStartsOn: weekStartsOn,
2073
- locale: locale
2074
- }; // If timezone isn't specified, it will be set to the system timezone
2075
-
2076
- var setters = [{
2077
- priority: TIMEZONE_UNIT_PRIORITY,
2078
- subPriority: -1,
2079
- set: dateToSystemTimezone,
2080
- index: 0
2081
- }];
2082
- var i;
2083
- var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2084
- var firstCharacter = substring[0];
2085
-
2086
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2087
- var longFormatter = index.longFormatters[firstCharacter];
2088
- return longFormatter(substring, locale.formatLong, subFnOptions);
2089
- }
2090
-
2091
- return substring;
2092
- }).join('').match(formattingTokensRegExp);
2093
- var usedTokens = [];
2094
-
2095
- for (i = 0; i < tokens.length; i++) {
2096
- var token = tokens[i];
2097
-
2098
- if (!options.useAdditionalWeekYearTokens && index.isProtectedWeekYearToken(token)) {
2099
- index.throwProtectedError(token, formatString, dirtyDateString);
2100
- }
2101
-
2102
- if (!options.useAdditionalDayOfYearTokens && index.isProtectedDayOfYearToken(token)) {
2103
- index.throwProtectedError(token, formatString, dirtyDateString);
2104
- }
2105
-
2106
- var firstCharacter = token[0];
2107
- var parser = parsers[firstCharacter];
2108
-
2109
- if (parser) {
2110
- var incompatibleTokens = parser.incompatibleTokens;
2111
-
2112
- if (Array.isArray(incompatibleTokens)) {
2113
- var incompatibleToken = void 0;
2114
-
2115
- for (var _i = 0; _i < usedTokens.length; _i++) {
2116
- var usedToken = usedTokens[_i].token;
2117
-
2118
- if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2119
- incompatibleToken = usedTokens[_i];
2120
- break;
2121
- }
2122
- }
2123
-
2124
- if (incompatibleToken) {
2125
- throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2126
- }
2127
- } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2128
- throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2129
- }
2130
-
2131
- usedTokens.push({
2132
- token: firstCharacter,
2133
- fullToken: token
2134
- });
2135
- var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
2136
-
2137
- if (!parseResult) {
2138
- return new Date(NaN);
2139
- }
2140
-
2141
- setters.push({
2142
- priority: parser.priority,
2143
- subPriority: parser.subPriority || 0,
2144
- set: parser.set,
2145
- validate: parser.validate,
2146
- value: parseResult.value,
2147
- index: setters.length
2148
- });
2149
- dateString = parseResult.rest;
2150
- } else {
2151
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2152
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2153
- } // Replace two single quote characters with one single quote character
2154
-
2155
-
2156
- if (token === "''") {
2157
- token = "'";
2158
- } else if (firstCharacter === "'") {
2159
- token = cleanEscapedString(token);
2160
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2161
-
2162
-
2163
- if (dateString.indexOf(token) === 0) {
2164
- dateString = dateString.slice(token.length);
2165
- } else {
2166
- return new Date(NaN);
2167
- }
2168
- }
2169
- } // Check if the remaining input contains something other than whitespace
2170
-
2171
-
2172
- if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2173
- return new Date(NaN);
2174
- }
2175
-
2176
- var uniquePrioritySetters = setters.map(function (setter) {
2177
- return setter.priority;
2178
- }).sort(function (a, b) {
2179
- return b - a;
2180
- }).filter(function (priority, index, array) {
2181
- return array.indexOf(priority) === index;
2182
- }).map(function (priority) {
2183
- return setters.filter(function (setter) {
2184
- return setter.priority === priority;
2185
- }).sort(function (a, b) {
2186
- return b.subPriority - a.subPriority;
2187
- });
2188
- }).map(function (setterArray) {
2189
- return setterArray[0];
2190
- });
2191
- var date = index.toDate(dirtyReferenceDate);
2192
-
2193
- if (isNaN(date)) {
2194
- return new Date(NaN);
2195
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2196
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2197
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2198
-
2199
-
2200
- var utcDate = index.subMilliseconds(date, index.getTimezoneOffsetInMilliseconds(date));
2201
- var flags = {};
2202
-
2203
- for (i = 0; i < uniquePrioritySetters.length; i++) {
2204
- var setter = uniquePrioritySetters[i];
2205
-
2206
- if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2207
- return new Date(NaN);
2208
- }
2209
-
2210
- var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2211
-
2212
- if (result[0]) {
2213
- utcDate = result[0];
2214
- assign(flags, result[1]); // Result is date
2215
- } else {
2216
- utcDate = result;
2217
- }
2218
- }
2219
-
2220
- return utcDate;
2221
- }
2222
-
2223
- function dateToSystemTimezone(date, flags) {
2224
- if (flags.timestampIsSet) {
2225
- return date;
2226
- }
2227
-
2228
- var convertedDate = new Date(0);
2229
- convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2230
- convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2231
- return convertedDate;
2232
- }
2233
-
2234
- function cleanEscapedString(input) {
2235
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2236
- }
2237
-
2238
- 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(--digi--calendar--header--button--background--hover);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(--digi--calendar--header--button--background--hover);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.sc-digi-calendar th.sc-digi-calendar{text-align:center}.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}`;
2239
-
2240
- const Calendar = class {
2241
- constructor(hostRef) {
2242
- index$1.registerInstance(this, hostRef);
2243
- this.afOnDateSelectedChange = index$1.createEvent(this, "afOnDateSelectedChange", 7);
2244
- this.afOnFocusOutside = index$1.createEvent(this, "afOnFocusOutside", 7);
2245
- this.afOnClickOutside = index$1.createEvent(this, "afOnClickOutside", 7);
2246
- this.afOnDirty = index$1.createEvent(this, "afOnDirty", 7);
2247
- this.selectedDates = [];
2248
- this.dirty = false;
2249
- /**
2250
- * Prefix för komponentens 'id'-attribut. Ex. 'my-cool-id' genererar 'my-cool-id-calendar'. Ges inget värde genereras ett slumpmässigt.
2251
- * @en Prefix for the component's 'id' attribute. Example: 'my-cool-id' generates 'my-cool-id-calendar'. Defaults to random string.
2252
- */
2253
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar');
2254
- /**
2255
- * Visa veckonummer i kalender
2256
- * @en Show week number in the calendar
2257
- */
2258
- this.afShowWeekNumber = false;
2259
- /**
2260
- * Valda datum i kalendern
2261
- * @en Selected dates in calendar
2262
- */
2263
- this.afSelectedDates = [];
2264
- /**
2265
- * Visar eller döljer kalendern.
2266
- * @en Toggle calendar hide/show.
2267
- */
2268
- this.afActive = true;
2269
- /**
2270
- * Sätt denna till true för att tillåta val av flera datum
2271
- * @en Set this to true to be able to allow selection of multiple dates
2272
- */
2273
- this.afMultipleDates = false;
2274
- /**
2275
- * Sätt denna till true för att visa väljare för år
2276
- * @en Set this to true to be show year selector
2277
- */
2278
- this.afYearSelect = false;
2279
- this.activeCalendar = [];
2280
- }
2281
- focusedDateChanged() {
2282
- this.drawCalendar(this.focusedDate);
2283
- }
2284
- afOpenCalendarToChangeHandler() {
2285
- this.determineFocusedDate();
2286
- }
2287
- afShowWeekNumberChangeHandler() {
2288
- this.drawCalendar(this.focusedDate);
2289
- }
2290
- afSelectedDateChangeHandler() {
2291
- this.afSelectedDates = index.isValid(this.afSelectedDate)
2292
- ? [this.afSelectedDate]
2293
- : [];
2294
- }
2295
- afSelectedDatesChangeHandler() {
2296
- if (this.afSelectedDates.length > 0) {
2297
- if (this.afMultipleDates) {
2298
- const invalidDate = this.afSelectedDates.find((date) => !index.isValid(date));
2299
- if (invalidDate === undefined) {
2300
- this.selectedDates = this.afSelectedDates;
2301
- this.determineFocusedDate();
2302
- }
2303
- }
2304
- else if (index.isValid(this.afSelectedDates[0])) {
2305
- this.selectedDates = [this.afSelectedDates[0]];
2306
- this.determineFocusedDate();
2307
- }
2308
- }
2309
- else {
2310
- this.selectedDates = [];
2311
- }
2312
- }
2313
- focusoutHandler(e) {
2314
- const target = e.target;
2315
- const selector = `#${this.afId}-calendar`;
2316
- if (detectFocusOutside_util.detectFocusOutside(target, selector)) {
2317
- this.afOnFocusOutside.emit(e);
2318
- }
2319
- }
2320
- clickHandler(e) {
2321
- const target = e.target;
2322
- const selector = `#${this.afId}-calendar`;
2323
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
2324
- this.afOnClickOutside.emit(e);
2325
- }
2326
- }
2327
- determineFocusedDate() {
2328
- if (this.dirty) {
2329
- return; // Don't change focused date if user has already interacted with the calendar
2330
- }
2331
- else if (this.afOpenCalendarTo && index.isValid(this.afOpenCalendarTo)) {
2332
- this.focusedDate = this.afOpenCalendarTo;
2333
- }
2334
- else if (this.selectedDates.length > 0) {
2335
- this.focusedDate = this.selectedDates[0];
2336
- }
2337
- else {
2338
- this.focusedDate = new Date();
2339
- }
2340
- }
2341
- drawCalendar(focusedDate) {
2342
- const date = {
2343
- year: focusedDate.getFullYear(),
2344
- month: focusedDate.getMonth()
2345
- };
2346
- this.lastWeekOfPreviousMonth = this.getWeekDays(this.getLastDayOfPrevMonth(date));
2347
- this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
2348
- this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
2349
- this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
2350
- this.activeCalendar = this.appendFirstWeekOfNextMonth()
2351
- ? [
2352
- this.lastWeekOfPreviousMonth,
2353
- ...this.weekDaysbetween,
2354
- this.appendFirstWeekOfNextMonth()
2355
- ]
2356
- : [this.lastWeekOfPreviousMonth, ...this.weekDaysbetween];
2357
- this.appendFirstWeekOfNextMonth();
2358
- if (this.afShowWeekNumber) {
2359
- this.activeCalendar.forEach((el, i) => {
2360
- this.activeCalendar[i].unshift(this.getWeekNumbers(el[0]));
2361
- });
2362
- }
2363
- }
2364
- appendFirstWeekOfNextMonth() {
2365
- const lastArray = JSON.stringify(this.weekDaysbetween.slice(-1)[0]);
2366
- const stringFirstweek = JSON.stringify(this.firstWeekOfNextMonth);
2367
- if (!this.firstWeekOfNextMonth.some((date) => this.isSameMonth(date, this.focusedDate))) {
2368
- return;
2369
- }
2370
- else if (lastArray !== stringFirstweek) {
2371
- return this.firstWeekOfNextMonth;
2372
- }
2373
- }
2374
- getLastDayOfPrevMonth(date) {
2375
- return new Date(date.year, date.month, 0);
2376
- }
2377
- getWeekDays(date) {
2378
- const today = date || new Date();
2379
- const week = [];
2380
- const dayOffset = today.getDay(); // 0=söndag
2381
- for (let i = 1; i <= 7; i++) {
2382
- week.push(new Date(today.getFullYear(), today.getMonth(), today.getDate() - dayOffset + i));
2383
- }
2384
- return week;
2385
- }
2386
- getFirstDayOfNextMonth(date) {
2387
- return new Date(date.year, date.month + 1, 1);
2388
- }
2389
- getWeeksBetween(lastDayOfPrevMonth, firstDayOnNextMonth) {
2390
- const week = 7 * 24 * 60 * 60 * 1000;
2391
- const d1ms = lastDayOfPrevMonth.getTime();
2392
- const d2ms = firstDayOnNextMonth.getTime();
2393
- const diff = Math.abs(d2ms - d1ms);
2394
- return Math.floor(diff / week);
2395
- }
2396
- getWeekdaysOfMonth(weeksBetween) {
2397
- let weeks = [];
2398
- for (let i = 1; i <= weeksBetween; i++) {
2399
- weeks = [...weeks, this.getWeekDays(this.getUpcoming(i))];
2400
- }
2401
- return weeks;
2402
- }
2403
- getUpcoming(weeks) {
2404
- return new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 7 * weeks);
2405
- }
2406
- onDirty() {
2407
- if (!this.dirty) {
2408
- this.dirty = true;
2409
- this.afOnDirty.emit(this.dirty);
2410
- }
2411
- }
2412
- selectDateHandler(dateSelected) {
2413
- this.onDirty();
2414
- if (!this.isDateSelectable(dateSelected))
2415
- return;
2416
- if (this.isDateSelected(dateSelected)) {
2417
- this.selectedDates = this.afMultipleDates
2418
- ? this.selectedDates.filter((d) => {
2419
- return !this.isSameDate(d, dateSelected);
2420
- })
2421
- : [];
2422
- }
2423
- else {
2424
- this.selectedDates = this.afMultipleDates
2425
- ? [...this.selectedDates, dateSelected]
2426
- : [dateSelected];
2427
- }
2428
- this.focusedDate = new Date(dateSelected);
2429
- this.afOnDateSelectedChange.emit(this.selectedDates);
2430
- }
2431
- getMonthName(monthNumber) {
2432
- return new Date(1992, monthNumber, 1)
2433
- .toLocaleDateString(text._t.locale, {
2434
- month: 'short'
2435
- })
2436
- .replace('.', '');
2437
- }
2438
- getFullMonthName(monthNumber) {
2439
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(text._t.locale, {
2440
- month: 'long',
2441
- year: 'numeric'
2442
- });
2443
- }
2444
- // Get the week number of a specific date. Taken from https://weeknumber.com/how-to/javascript
2445
- getWeekNumbers(dateInput) {
2446
- const date = new Date(dateInput);
2447
- date.getTime();
2448
- date.setHours(0, 0, 0, 0);
2449
- date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
2450
- const week1 = new Date(date.getFullYear(), 0, 4);
2451
- return (1 +
2452
- Math.round(((date.getTime() - week1.getTime()) / 86400000 -
2453
- 3 +
2454
- ((week1.getDay() + 6) % 7)) /
2455
- 7));
2456
- }
2457
- isSameMonth(date, currentDate) {
2458
- if (date instanceof Date && date instanceof Date) {
2459
- return (`${date.getFullYear()}${date.getMonth()}` ===
2460
- `${currentDate.getFullYear()}${currentDate.getMonth()}`);
2461
- }
2462
- return false;
2463
- }
2464
- isSameDate(date, newDate) {
2465
- return this.getDateString(date) === this.getDateString(newDate);
2466
- }
2467
- getDateString(date) {
2468
- return `${date.getDate()}${date.getMonth()}${date.getFullYear()}`;
2469
- }
2470
- isDateSelected(date) {
2471
- return !!this.selectedDates.find((d) => this.isSameDate(date, d));
2472
- }
2473
- isDateSelectable(date) {
2474
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2475
- return false;
2476
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2477
- return false;
2478
- return true;
2479
- }
2480
- isBefore(a, b) {
2481
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2482
- }
2483
- isAfter(a, b) {
2484
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2485
- }
2486
- dateWithoutTime(date) {
2487
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2488
- }
2489
- isInAnotherMonth(date) {
2490
- return !this.isSameMonth(date, this.focusedDate);
2491
- }
2492
- subtractMonth() {
2493
- this.onDirty();
2494
- const month = new Date(this.focusedDate);
2495
- const currentDay = month.getDate();
2496
- month.setMonth(month.getMonth() - 1, 1);
2497
- const lastDayOfPrevMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2498
- month.setDate(Math.min(currentDay, lastDayOfPrevMonth));
2499
- this.focusedDate = month;
2500
- }
2501
- addMonth() {
2502
- this.onDirty();
2503
- const month = new Date(this.focusedDate);
2504
- const currentDay = month.getDate();
2505
- month.setMonth(month.getMonth() + 1, 1);
2506
- const lastDayOfNextMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2507
- month.setDate(Math.min(currentDay, lastDayOfNextMonth));
2508
- this.focusedDate = month;
2509
- }
2510
- getCurrent(date) {
2511
- return this.isSameDate(date, new Date()) ? 'date' : null;
2512
- }
2513
- setTabIndex(date) {
2514
- return this.isFocused(date) ? 0 : -1;
2515
- }
2516
- navigateHandler(e, daysToAdd) {
2517
- !!e.detail && e.detail.preventDefault();
2518
- if (e.detail.key === 'Tab') {
2519
- return;
2520
- }
2521
- this.onDirty();
2522
- const date = new Date(e.detail.target.dataset.date);
2523
- const newDate = new Date(date.setDate(date.getDate() + daysToAdd));
2524
- this.focusedDate = newDate;
2525
- this.resetFocus();
2526
- }
2527
- resetFocus() {
2528
- setTimeout(() => {
2529
- const dates = this._tbody.querySelectorAll('.digi-calendar__date');
2530
- if (dates.length <= 0) {
2531
- logger_util.logger.warn(`Could not find an element with data-date attribute matching navigated date.`, this._tbody);
2532
- return;
2533
- }
2534
- Array.from(dates).map((date) => {
2535
- const d = date;
2536
- d.tabIndex = -1;
2537
- d.classList.remove('digi-calendar__date--focused');
2538
- if (d.dataset.date === this.getFullDate(this.focusedDate)) {
2539
- d.focus();
2540
- d.tabIndex = 0;
2541
- d.classList.add('digi-calendar__date--focused');
2542
- }
2543
- });
2544
- }, 100);
2545
- }
2546
- getFullDate(date) {
2547
- return date.toLocaleString(text._t.locale, {
2548
- day: 'numeric',
2549
- month: 'numeric',
2550
- year: 'numeric'
2551
- });
2552
- }
2553
- getDateName(date) {
2554
- return date.toLocaleString(text._t.locale, {
2555
- year: 'numeric',
2556
- month: 'long',
2557
- day: 'numeric'
2558
- });
2559
- }
2560
- isFocused(date) {
2561
- if (this.dirty) {
2562
- return this.isSameDate(date, this.focusedDate);
2563
- }
2564
- if (this.afOpenCalendarTo) {
2565
- return this.isSameDate(date, this.afOpenCalendarTo);
2566
- }
2567
- return this.isSameMonth(date, new Date())
2568
- ? this.isSameDate(date, new Date())
2569
- : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1;
2570
- }
2571
- ariaPressed(date) {
2572
- return this.selectedDates.length > 0 &&
2573
- !!this.selectedDates.find((d) => this.isSameDate(d, date))
2574
- ? 'true'
2575
- : 'false';
2576
- }
2577
- selectMonth(evt) {
2578
- this.onDirty();
2579
- const tempDate = new Date(this.focusedDate);
2580
- const selectedMonth = parseInt(evt.target.value, 10);
2581
- const currentDay = tempDate.getDate();
2582
- tempDate.setMonth(selectedMonth, 1);
2583
- const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
2584
- tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
2585
- this.focusedDate = tempDate;
2586
- }
2587
- selectYear(evt) {
2588
- this.onDirty();
2589
- const selectedYear = parseInt(evt.target.value, 10);
2590
- // Skydda mot ogiltiga datum som 29 februari
2591
- const day = Math.min(this.focusedDate.getDate(), new Date(selectedYear, this.focusedDate.getMonth() + 1, 0).getDate());
2592
- const newDate = new Date(selectedYear, this.focusedDate.getMonth(), day);
2593
- this.focusedDate = newDate;
2594
- }
2595
- earliestSelectableYear() {
2596
- if (this.afMinDate)
2597
- return this.afMinDate.getFullYear();
2598
- return 1900;
2599
- }
2600
- latestSelectableYear() {
2601
- if (this.afMaxDate)
2602
- return this.afMaxDate.getFullYear();
2603
- return new Date(Date.now()).getFullYear() + 10;
2604
- }
2605
- allSelectableYears() {
2606
- const allYears = [];
2607
- let currentYear = this.earliestSelectableYear();
2608
- while (currentYear <= this.latestSelectableYear()) {
2609
- allYears.push(currentYear++);
2610
- }
2611
- return allYears;
2612
- }
2613
- componentWillLoad() {
2614
- var _a;
2615
- if (index.isValid(this.afSelectedDate)) {
2616
- this.selectedDates = [this.afSelectedDate];
2617
- }
2618
- else if (((_a = this.afSelectedDates) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2619
- const valid = this.afSelectedDates.filter((d) => index.isValid(d));
2620
- if (valid.length > 0)
2621
- this.selectedDates = valid;
2622
- }
2623
- this.determineFocusedDate();
2624
- this.drawCalendar(this.focusedDate);
2625
- }
2626
- async componentDidLoad() {
2627
- if (index.isValid(this.afSelectedDate))
2628
- this.selectedDates = [this.afSelectedDate];
2629
- else
2630
- this.afSelectedDatesChangeHandler();
2631
- await customElements.whenDefined('digi-form-select');
2632
- }
2633
- cssDateModifiers(date) {
2634
- const shownMonth = this.focusedDate.getMonth();
2635
- return {
2636
- 'digi-calendar__date--today': this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date),
2637
- 'digi-calendar__date--disabled': this.isInAnotherMonth(date),
2638
- 'digi-calendar__date--focused': this.isFocused(date),
2639
- 'digi-calendar__date--selected': this.isDateSelected(date) && date.getMonth() === shownMonth,
2640
- 'digi-calendar__date--not-selectable': !this.isInAnotherMonth(date) && !this.isDateSelectable(date)
2641
- };
2642
- }
2643
- render() {
2644
- return (index$1.h("div", { key: '1077a770af823d9e0c0f59cdc6f1fef2a49d761a', class: {
2645
- 'digi-calendar': true,
2646
- 'digi-calendar--hide': !this.afActive
2647
- }, id: `${this.afId}-calendar` }, this.afYearSelect && (index$1.h("div", { key: 'cd7dfa8e20efd08afa590cd4e177ddb4c41455d8', class: "digi-calendar__header" }, index$1.h("div", { key: 'd1e6e956713de7fe417253be0fc1ec3aea9748b0', class: "digi-calendar__header--year-select" }, index$1.h("digi-form-select", { key: 'cf34feec9ed25e0251effe86b3ce393918a32eda', afLabel: text._t.calendar.month, "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
2648
- this.selectMonth(evt);
2649
- } }, text._t.calendar.months.map((month, index) => {
2650
- return index$1.h("option", { value: index }, month);
2651
- })), index$1.h("digi-form-select", { key: 'ddcd90917d6dba315f8018c4311c852f3471d3c0', afLabel: text._t.calendar.year, "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
2652
- this.selectYear(evt);
2653
- } }, this.allSelectableYears().map((year) => (index$1.h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (index$1.h("div", { key: '814648caa21619240a5904a809c95024398e9741', class: "digi-calendar__header" }, index$1.h("div", { key: 'd3dc54a4d0172d503bff66e5171846f433755c4b', class: "digi-calendar__header--month-step" }, index$1.h("button", { key: '7725160aab267e5cdd70618613b2f485d5b7dd7f', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() - 1) +
2654
- ', ' + text._t.calendar.previousMonth, onClick: () => this.subtractMonth() }, index$1.h("digi-icon-chevron-left", { key: 'e8d1dc80011cb7e79ce6af893df2fd4601d92c74', slot: "icon", "aria-hidden": "true" }), index$1.h("span", { key: 'ae56dadf565d819f8e89804596dbe38119fb592e', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() - 1))), index$1.h("div", { key: '257ac7d346e084390aba658eb7329cab913e3463', class: "digi-calendar__month" }, this.getFullMonthName(this.focusedDate.getMonth())), index$1.h("button", { key: '0c483763c0420f1c172c78364d2ce931ffcd116d', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() + 1) +
2655
- ', ' + text._t.calendar.nextMonth, onClick: () => this.addMonth() }, index$1.h("span", { key: 'de4617285a713bd9baa375a99f81bb027768c947', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() + 1)), index$1.h("digi-icon-chevron-right", { key: '8d6252fcdd7a035ce8fe4e6f4cb468ce7935aeba', slot: "icon", "aria-hidden": "true" }))))), index$1.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$1.h("table", { key: '9052f9c8135d95110f927c6a5a949fbd63daec7a', role: "grid", class: "digi-calendar__table" }, index$1.h("thead", { key: '428467866c49e65d348db796a006611542aabc02' }, index$1.h("tr", { key: '260024069438dadff553bc3391a37bbb533b5d11', role: "row" }, this.afShowWeekNumber && (index$1.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$1.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$1.h("tbody", { key: 'cbe3d290919c35ad27799c17e6b6236557dbe126', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
2656
- return (index$1.h("tr", null, week.map((day, i) => {
2657
- if (this.afShowWeekNumber && i === 0) {
2658
- return (index$1.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));
2659
- }
2660
- else {
2661
- return this.isInAnotherMonth(day) ? (index$1.h("td", null)) : (index$1.h("td", { role: "gridcell", class: "digi-calendar__td" }, index$1.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": `
2662
- ${!this.isDateSelectable(day)
2663
- ? text._t.calendar.disabledDate
2664
- : ''} ${this.getDateName(day)}
2665
- `, "aria-disabled": !this.isDateSelectable(day) ? 'true' : null, tabindex: this.setTabIndex(day), "data-date": this.getFullDate(day), "aria-pressed": this.isDateSelectable(day)
2666
- ? this.ariaPressed(day)
2667
- : null }, index$1.h("span", { "aria-hidden": "true" }, day.getDate()))));
2668
- }
2669
- })));
2670
- })))), index$1.h("slot", { key: 'e97e8147fc91a3b401665eeeb8db6be7036f678b', name: "calendar-footer" })));
2671
- }
2672
- static get watchers() { return {
2673
- "focusedDate": [{
2674
- "focusedDateChanged": 0
2675
- }],
2676
- "afOpenCalendarTo": [{
2677
- "afOpenCalendarToChangeHandler": 0
2678
- }],
2679
- "afShowWeekNumber": [{
2680
- "afShowWeekNumberChangeHandler": 0
2681
- }],
2682
- "afSelectedDate": [{
2683
- "afSelectedDateChangeHandler": 0
2684
- }],
2685
- "afSelectedDates": [{
2686
- "afSelectedDatesChangeHandler": 0
2687
- }]
2688
- }; }
2689
- };
2690
- Calendar.style = calendarCss();
2691
-
2692
- const calendarDatepickerCss = () => `.sc-digi-calendar-datepicker:root{--digi--grayscale--0:#ffffff;--digi--grayscale--100:#f4f4f4;--digi--grayscale--1000:#000000;--digi--grayscale--200:#ededed;--digi--grayscale--300:#e4e4e4;--digi--grayscale--400:#dddddd;--digi--grayscale--50:#fbfbfb;--digi--grayscale--500:#cacaca;--digi--grayscale--600:#acacac;--digi--grayscale--700:#757575;--digi--grayscale--800:#5c5c5c;--digi--grayscale--900:#333333;--digi--misc--transparent:#ffffff00;--digi--sentiment--error--200:#fdeded;--digi--sentiment--error--500:#da0000;--digi--sentiment--error--700:#c7311a;--digi--sentiment--informative--200:#e9e9ff;--digi--sentiment--informative--500:#0a4dd1;--digi--sentiment--informative--700:#0058a3;--digi--sentiment--success--200:#e9f6ec;--digi--sentiment--success--500:#008a20;--digi--sentiment--success--700:#02703c;--digi--sentiment--warning--200:#fff398;--digi--sentiment--warning--50:#fffbdd;--digi--sentiment--warning--500:#ffe200;--digi--sentiment--warning--700:#ffc108;--digi--sentiment--warning--900:#664d00;--digi--animation--duration--base:var(--digi--global--animation--duration--base);--digi--animation--duration--small:var(--digi--global--animation--duration--short);--digi--animation--duration--large:var(--digi--global--animation--duration--longer);--digi--animation--duration--reduced:var(--digi--global--animation--duration--shortest);--digi--animation--duration--sweep:var(--digi--global--animation--duration--longest);--digi--animation--rotation--45:var(--digi--global--animation--rotation--smallest-2);--digi--animation--rotation--90:var(--digi--global--animation--rotation--smallest);--digi--animation--rotation--135:var(--digi--global--animation--rotation--smaller);--digi--animation--rotation--180:var(--digi--global--animation--rotation--small);--digi--animation--rotation--225:var(--digi--global--animation--rotation--base);--digi--animation--rotation--270:var(--digi--global--animation--rotation--large);--digi--animation--rotation--315:var(--digi--global--animation--rotation--larger);--digi--animation--rotation--360:var(--digi--global--animation--rotation--largest);--digi--global--animation--duration--base:0.3s;--digi--global--animation--duration--short:0.2s;--digi--global--animation--duration--shorter:0.1s;--digi--global--animation--duration--shortest:0.01s;--digi--global--animation--duration--long:0.4s;--digi--global--animation--duration--longer:0.5s;--digi--global--animation--duration--longest:4s;--digi--global--animation--rotation--smallest-2:0deg;--digi--global--animation--rotation--smallest:45deg;--digi--global--animation--rotation--smaller:90deg;--digi--global--animation--rotation--small:135deg;--digi--global--animation--rotation--base:180deg;--digi--global--animation--rotation--large:225deg;--digi--global--animation--rotation--larger:270deg;--digi--global--animation--rotation--largest:315deg;--digi--global--animation--rotation--largest-2:360deg;--digi--global--border-radius--base:6px;--digi--global--border-radius--small:4px;--digi--global--border-radius--smaller:3px;--digi--global--border-radius--smallest:2px;--digi--global--border-radius--smallest-2:1px;--digi--global--border-radius--smallest-3:0px;--digi--global--border-radius--large:8px;--digi--global--border-radius--larger:16px;--digi--global--border-radius--largest:32px;--digi--global--border-radius--largest-2:64px;--digi--global--border-width--base:2px;--digi--global--border-width--small:1px;--digi--global--border-width--smaller:0px;--digi--global--border-width--large:4px;--digi--global--border-width--larger:6px;--digi--global--border-width--largest:8px;--digi--global--border-width--largest-2:10px;--digi--global--border-style--solid:solid;--digi--global--border-style--none:none;--digi--global--border-style--dashed:dashed;--digi--global--spacing--base:16px;--digi--global--spacing--small:14px;--digi--global--spacing--smaller:12px;--digi--global--spacing--smallest:10px;--digi--global--spacing--smallest-2:8px;--digi--global--spacing--smallest-3:6px;--digi--global--spacing--smallest-4:4px;--digi--global--spacing--smallest-5:3px;--digi--global--spacing--smallest-6:2px;--digi--global--spacing--smallest-7:1px;--digi--global--spacing--large:18px;--digi--global--spacing--larger:20px;--digi--global--spacing---:22px;--digi--global--spacing--largest-2:24px;--digi--global--spacing--largest-3:28px;--digi--global--spacing--largest-4:32px;--digi--global--spacing--largest-5:40px;--digi--global--spacing--largest-6:48px;--digi--global--spacing--largest-7:56px;--digi--global--spacing--largest-8:64px;--digi--global--spacing--largest:22px;--digi--global--spacing--largest-3-5:30px;--digi--global--spacing--largest-9:72px;--digi--global--spacing--largest-10:80px;--digi--global--breakpoint--smallest-3:374px;--digi--global--breakpoint--smallest-2:375px;--digi--global--breakpoint--smallest:575px;--digi--global--breakpoint--smaller:576px;--digi--global--breakpoint--small:767px;--digi--global--breakpoint--medium:768px;--digi--global--breakpoint--large:991px;--digi--global--breakpoint--larger:992px;--digi--global--breakpoint--largest:1199px;--digi--global--breakpoint--largest-2:1200px;--digi--global--breakpoint--largest-3:1399px;--digi--global--breakpoint--largest-4:1400px;--digi--global--size--smaller:auto;--digi--global--size--small:36rem;--digi--global--size--base:48rem;--digi--global--size--large:62rem;--digi--global--size--larger:75rem;--digi--global--size--largest:87.5rem;--digi--global--text-width--small:31rem;--digi--global--text-width--base:35rem;--digi--global--text-width--large:40rem;--digi--global--text-width--larger:44rem;--digi--global--text-width--largest:48rem;--digi--global--text-width--largest-2:53rem;--digi--global--text-width--largest-3:61rem;--digi--global--text-width--largest-4:70rem;--digi--global--typography--line-height--base:1.5;--digi--global--typography--line-height--small:1;--digi--global--typography--line-height--large:2;--digi--global--typography--font-size--base:1rem;--digi--global--typography--font-size--small:0.875rem;--digi--global--typography--font-size--smaller:0.75rem;--digi--global--typography--font-size--large:1.125rem;--digi--global--typography--font-size--larger:1.25rem;--digi--global--typography--font-size--largest:1.375rem;--digi--global--typography--font-size--largest-2:1.5rem;--digi--global--typography--font-size--largest-3:1.75rem;--digi--global--typography--font-size--largest-4:2rem;--digi--global--typography--font-size--largest-5:2.25rem;--digi--global--typography--font-size--interaction-small:0.875rem;--digi--global--typography--font-size--interaction-medium:1rem;--digi--global--typography--font-size--interaction-large:1.125rem;--digi--global--typography--font-size--largest-6:2.5rem;--digi--global--typography--font-weight--regular:400;--digi--global--typography--font-weight--light:300;--digi--global--typography--font-weight--semibold:600;--digi--global--typography--font-weight--bold:700;--digi--global--typography--font-family--default:'Open Sans';--digi--global--typography--font-family--mono:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;--digi--global--typography--text-decoration--default:none;--digi--global--typography--text-decoration--link:underline;--digi--border-radius--primary:var(--digi--global--border-radius--smallest-3);--digi--border-radius--secondary:var(--digi--global--border-radius--base);--digi--border-radius--tertiary:var(--digi--global--border-radius--smaller);--digi--border-radius--complementary-1:var(--digi--global--border-radius--largest);--digi--border-radius--complementary-2:var(--digi--global--border-radius--largest-2);--digi--border-radius--button:var(--digi--global--border-radius--base);--digi--border-radius--input:var(--digi--global--border-radius--smallest-3);--digi--border-radius--input-search:var(--digi--global--border-radius--base);--digi--border-radius--complementary-3:var(--digi--global--border-radius--larger);--digi--border-width--primary:var(--digi--global--border-width--small);--digi--border-width--secondary:var(--digi--global--border-width--base);--digi--border-width--complementary-1:var(--digi--global--border-width--largest);--digi--border-width--complementary-2:var(--digi--global--border-width--largest-2);--digi--border-width--input-regular:var(--digi--global--border-width--small);--digi--border-width--input-validation:var(--digi--global--border-width--base);--digi--border-width--button:var(--digi--global--border-width--small);--digi--border-style--primary:var(--digi--global--border-style--solid);--digi--border-style--secondary:var(--digi--global--border-style--none);--digi--padding--medium:var(--digi--global--spacing--base);--digi--padding--smaller:var(--digi--global--spacing--smallest-2);--digi--padding--small:var(--digi--global--spacing--smaller);--digi--padding--large:var(--digi--global--spacing--largest-2);--digi--padding--larger:var(--digi--global--spacing--largest-3);--digi--padding--largest:var(--digi--global--spacing--largest-4);--digi--padding--largest-2:var(--digi--global--spacing--largest-5);--digi--padding--largest-3:var(--digi--global--spacing--largest-6);--digi--margin--smaller:var(--digi--global--spacing--smallest-2);--digi--margin--small:var(--digi--global--spacing--smallest);--digi--margin--medium:var(--digi--global--spacing--base);--digi--margin--large:var(--digi--global--spacing--largest-2);--digi--margin--larger:var(--digi--global--spacing--largest-3);--digi--margin--largest:var(--digi--global--spacing--largest-4);--digi--margin--h1-small:var(--digi--global--spacing--base);--digi--margin--h1-medium:var(--digi--global--spacing--largest-2);--digi--margin--h1-large:var(--digi--global--spacing--largest-4);--digi--margin--h2-small:var(--digi--global--spacing--base);--digi--margin--h2-large:var(--digi--global--spacing--base);--digi--margin--h3-small:var(--digi--global--spacing--smallest-2);--digi--margin--h3-large:var(--digi--global--spacing--smallest-2);--digi--margin--h4-h6-small:var(--digi--global--spacing--smallest-2);--digi--margin--h4-h6-large:var(--digi--global--spacing--smallest-2);--digi--margin--text-small:var(--digi--global--spacing--largest-2);--digi--margin--text-large:var(--digi--global--spacing--largest-2);--digi--gutter--largest-3:var(--digi--global--spacing--largest-2);--digi--gutter--largest-2:var(--digi--global--spacing--larger);--digi--gutter--largest:var(--digi--global--spacing--base);--digi--gutter--larger:var(--digi--global--spacing--smaller);--digi--gutter--large:var(--digi--global--spacing--smallest);--digi--gutter--medium:var(--digi--global--spacing--smallest-2);--digi--gutter--small:var(--digi--global--spacing--smallest-3);--digi--gutter--smaller:var(--digi--global--spacing--smallest-4);--digi--gutter--smallest:var(--digi--global--spacing--smallest-5);--digi--gutter--smallest-2:var(--digi--global--spacing--smallest-6);--digi--gutter--smallest-3:var(--digi--global--spacing--smallest-7);--digi--gutter--button-block-small:var(--digi--global--spacing--smallest-3);--digi--gutter--button-block-medium:var(--digi--global--spacing--smallest-2);--digi--gutter--button-block-large:var(--digi--global--spacing--smallest);--digi--gutter--button-inline-small:var(--digi--global--spacing--smallest-2);--digi--gutter--button-inline-medium:var(--digi--global--spacing--base);--digi--gutter--button-inline-large:var(--digi--global--spacing--largest-2);--digi--gutter--icon:var(--digi--global--spacing--smallest);--digi--breakpoint--small-below:var(--digi--global--breakpoint--smallest);--digi--breakpoint--small:var(--digi--global--breakpoint--smaller);--digi--breakpoint--medium-below:var(--digi--global--breakpoint--small);--digi--breakpoint--medium:var(--digi--global--breakpoint--medium);--digi--breakpoint--large-below:var(--digi--global--breakpoint--large);--digi--breakpoint--large:var(--digi--global--breakpoint--larger);--digi--breakpoint--x-large-below:var(--digi--global--breakpoint--largest);--digi--breakpoint--x-large:var(--digi--global--breakpoint--largest-2);--digi--breakpoint--xx-large-below:var(--digi--global--breakpoint--largest-3);--digi--breakpoint--xx-large:var(--digi--global--breakpoint--largest-4);--digi--container-width--smaller:var(--digi--global--size--smaller);--digi--container-width--small:var(--digi--global--size--small);--digi--container-width--base:var(--digi--global--size--base);--digi--container-width--medium:var(--digi--global--size--base);--digi--container-width--large:var(--digi--global--size--large);--digi--container-width--larger:var(--digi--global--size--larger);--digi--container-width--largest:var(--digi--global--size--largest);--digi--container-gutter--smaller:var(--digi--global--spacing--base);--digi--container-gutter--small:var(--digi--global--spacing--large);--digi--container-gutter--base:var(--digi--global--spacing--base);--digi--container-gutter--medium:var(--digi--global--spacing--largest-2);--digi--container-gutter--large:var(--digi--global--spacing--base);--digi--container-gutter--larger:var(--digi--global--spacing--largest-3-5);--digi--container-gutter--largest:var(--digi--global--spacing--largest-5);--digi--paragraph-width--medium:var(--digi--global--text-width--base);--digi--paragraph-width--large:var(--digi--global--text-width--large);--digi--input-height--small:var(--digi--global--spacing--largest-4);--digi--input-height--medium:var(--digi--global--spacing--largest-5);--digi--input-height--large:var(--digi--global--spacing--largest-6);--digi--typography--body--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--body--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--body--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--body--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--body--font-weight--desktop-large:var(--digi--global--typography--font-weight--regular);--digi--typography--body--font-weight--mobile:var(--digi--global--typography--font-weight--regular);--digi--typography--body--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--body--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--body--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--body--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--body--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--body--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--description--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--description--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--description--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-size--desktop:var(--digi--global--typography--font-size--largest-4);--digi--typography--heading-1--font-size--desktop-large:var(--digi--global--typography--font-size--largest-6);--digi--typography--heading-1--font-size--mobile:var(--digi--global--typography--font-size--largest-3);--digi--typography--heading-1--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-1--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-1--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--font-size--desktop:var(--digi--global--typography--font-size--largest-2);--digi--typography--heading-2--font-size--desktop-large:var(--digi--global--typography--font-size--largest-3);--digi--typography--heading-2--font-size--mobile:var(--digi--global--typography--font-size--largest);--digi--typography--heading-2--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--font-size--desktop:var(--digi--global--typography--font-size--larger);--digi--typography--heading-3--font-size--desktop-large:var(--digi--global--typography--font-size--largest);--digi--typography--heading-3--font-size--mobile:var(--digi--global--typography--font-size--large);--digi--typography--heading-3--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--heading-4--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--heading-4--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--heading-4--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-jumbo--font-size--desktop:var(--digi--global--typography--font-size--largest-4);--digi--typography--heading-jumbo--font-size--desktop-large:var(--digi--global--typography--font-size--largest-6);--digi--typography--heading-jumbo--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--input--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--label--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--label--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--label--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--label--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--label-description--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--label-description--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--link--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--link--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--link--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--link--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--link--font-weight--desktop-large:var(--digi--global--typography--font-weight--regular);--digi--typography--link--font-weight--mobile:var(--digi--global--typography--font-weight--regular);--digi--typography--link--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--link--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--link--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--link--text-decoration--desktop:var(--digi--global--typography--text-decoration--link);--digi--typography--link--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--link);--digi--typography--link--text-decoration--mobile:var(--digi--global--typography--text-decoration--link);--digi--typography--link-bold--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--preamble--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--preamble--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--preamble--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--preamble--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--preamble--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--accordion--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--accordion--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--accordion--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--tag--font-size--desktop:var(--digi--global--typography--font-size--small);--digi--typography--tag--font-size--mobile:var(--digi--global--typography--font-size--small);--digi--typography--tag--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--breadcrumbs--font-size--desktop:var(--digi--global--typography--font-size--small);--digi--typography--breadcrumbs--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--title-logo--font-size--desktop:var(--digi--global--typography--font-size--largest-5);--digi--typography--title-logo--font-size--desktop-large:var(--digi--global--typography--font-size--largest-5);--digi--typography--title-logo--font-size--mobile:var(--digi--global--typography--font-size--largest-3);--digi--typography--title-logo--font-weight--desktop:var(--digi--global--typography--font-weight--bold);--digi--typography--button--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--button--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--button--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--color--amethyst--500:#822998;--digi--color--jade--100:#bddfda;--digi--color--jade--200:#7fc1b6;--digi--color--jade--400:#379d8d;--digi--color--jade--50:#ddeeec;--digi--color--jade--500:#058470;--digi--color--jade--600:#046a5a;--digi--color--jade--700:#035548;--digi--color--jade--900:#02372f;--digi--color--leaf--100:#f1f7e5;--digi--color--leaf--200:#ddebc1;--digi--color--leaf--400:#aace65;--digi--color--leaf--500:#95c23e;--digi--color--leaf--600:#779b32;--digi--color--pear--500:#b7ee4a;--digi--color--pear--600:#a7d943;--digi--color--rose--100:#f4cada;--digi--color--rose--200:#e997b7;--digi--color--rose--400:#dd5c8e;--digi--color--rose--50:#f9e4ec;--digi--color--rose--500:#d43372;--digi--color--rose--600:#bd2e65;--digi--color--rose--700:#882149;--digi--color--rose--900:#54172e;--digi--color--sapphire--500:#1616b2;--digi--color--stratos--100:#dddde9;--digi--color--stratos--400:#33337b;--digi--color--stratos--500:#00005a;--digi--color--stratos--600:#000048;--digi--color--water--200:#f1f8fe;--digi--color--water--500:#bdd3e7;--digi--color--water--700:#0058a3;--digi--color--background--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--default--input-elements--light--af18:var(--digi--grayscale--0);--digi--color--background--interactive--default--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--interactive--default--primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--default--primary-inverted--light--af18:var(--digi--color--leaf--500);--digi--color--background--interactive--default--quaternary--light--af18:var(--digi--grayscale--100);--digi--color--background--interactive--default--secondary--light--af18:var(--digi--grayscale--0);--digi--color--background--interactive--default--secondary-inverted--light--af18:var(--digi--misc--transparent);--digi--color--background--interactive--default--tertiary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--digi--color--background--interactive--hover--primary--light--af18:var(--digi--color--water--700);--digi--color--background--interactive--hover--quarternary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--hover--secondary--light--af18:var(--digi--color--water--500);--digi--color--background--interactive--hover--tertiary--light--af18:var(--digi--color--sapphire--500);--digi--color--background--interactive--selected--on-menu-minus-button--light--af18:var(--digi--color--leaf--200);--digi--color--background--interactive--selected--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--background--interactive--selected--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--selected--tertiary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--validation--error--light--af18:var(--digi--sentiment--error--200);--digi--color--background--interactive--validation--success--light--af18:var(--digi--sentiment--success--200);--digi--color--background--interactive--validation--warning--light--af18:var(--digi--sentiment--warning--50);--digi--color--background--notification--light--af18:var(--digi--sentiment--error--500);--digi--color--background--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--primary--light--af18:var(--digi--grayscale--0);--digi--color--background--secondary--light--af18:var(--digi--grayscale--100);--digi--color--background--secondary-accent--light--af18:var(--digi--grayscale--400);--digi--color--background--secondary-muted--light--af18:var(--digi--grayscale--50);--digi--color--background--sentiment--beta--primary--light--af18:var(--digi--color--rose--500);--digi--color--background--sentiment--beta--secondary--light--af18:var(--digi--color--rose--100);--digi--color--background--sentiment--error--primary--light--af18:var(--digi--sentiment--error--500);--digi--color--background--sentiment--error--secondary--light--af18:var(--digi--sentiment--error--700);--digi--color--background--sentiment--error--tertiary--light--af18:var(--digi--sentiment--error--200);--digi--color--background--sentiment--info--primary--light--af18:var(--digi--sentiment--informative--500);--digi--color--background--sentiment--info--secondary--light--af18:var(--digi--sentiment--informative--700);--digi--color--background--sentiment--info--tertiary--light--af18:var(--digi--sentiment--informative--200);--digi--color--background--sentiment--neutral--primary--light--af18:var(--digi--grayscale--700);--digi--color--background--sentiment--neutral--secondary--light--af18:var(--digi--grayscale--400);--digi--color--background--sentiment--neutral--tertiary--light--af18:var(--digi--grayscale--900);--digi--color--background--sentiment--success--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--background--sentiment--success--secondary--light--af18:var(--digi--sentiment--success--700);--digi--color--background--sentiment--success--tertiary--light--af18:var(--digi--sentiment--success--200);--digi--color--background--sentiment--warning--primary--light--af18:var(--digi--sentiment--warning--500);--digi--color--background--sentiment--warning--quarternary--light--af18:var(--digi--sentiment--warning--50);--digi--color--background--sentiment--warning--secondary--light--af18:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light--af18:var(--digi--sentiment--warning--200);--digi--color--background--transparent--light--af18:var(--digi--misc--transparent);--digi--color--border--accent--primary--light--af18:var(--digi--color--stratos--500);--digi--color--border--accent--secondary--light--af18:var(--digi--color--leaf--500);--digi--color--border--interactive--default--inverted--light--af18:var(--digi--color--leaf--500);--digi--color--border--interactive--default--on-input--light--af18:var(--digi--grayscale--900);--digi--color--border--interactive--default--on-input-nuance--light--af18:var(--digi--grayscale--800);--digi--color--border--interactive--default--primary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--digi--color--border--interactive--hover--primary--light--af18:var(--digi--color--water--700);--digi--color--border--interactive--hover--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--selected--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--border--interactive--selected--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--border--interactive--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--border--interactive--validation--warning--light--af18:var(--digi--sentiment--warning--900);--digi--color--border--notification--light--af18:var(--digi--grayscale--0);--digi--color--border--sentiment--error--light--af18:var(--digi--sentiment--error--500);--digi--color--border--sentiment--info--light--af18:var(--digi--sentiment--informative--500);--digi--color--border--sentiment--success--light--af18:var(--digi--sentiment--success--500);--digi--color--border--sentiment--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--border--transparent--light--af18:var(--digi--misc--transparent);--digi--color--divider--cta--light--af18:var(--digi--color--sapphire--500);--digi--color--divider--on-brand-primary--light--af18:var(--digi--color--stratos--400);--digi--color--divider--primary--light--af18:var(--digi--grayscale--400);--digi--color--divider--secondary--light--af18:var(--digi--grayscale--200);--digi--color--icon--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--icon--brand-secondary--light--af18:var(--digi--color--leaf--500);--digi--color--icon--cta--light--af18:var(--digi--color--sapphire--500);--digi--color--icon--primary--light--af18:var(--digi--grayscale--900);--digi--color--icon--secondary--light--af18:var(--digi--grayscale--0);--digi--color--icon--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--icon--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--infographic--background--light--af18:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--brand--primary-alt--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--brand--secondary--light--af18:var(--digi--color--leaf--200);--digi--color--infographic--brand--secondary-alt--light--af18:var(--digi--color--leaf--200);--digi--color--infographic--lineart--light--af18:var(--digi--grayscale--900);--digi--color--logotype--primary--symbol--light--af18:var(--digi--color--leaf--500);--digi--color--logotype--primary--text--light--af18:var(--digi--color--stratos--500);--digi--color--logotype--secondary--symbol--light--af18:#1db920;--digi--color--logotype--secondary--text--light--af18:var(--digi--grayscale--0);--digi--color--marking--indication--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--marking--indication--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--marking--indication--tertiary--light--af18:var(--digi--grayscale--700);--digi--color--marking--navigation--level-active--light--af18:var(--digi--color--leaf--200);--digi--color--marking--navigation--level-inactive--light--af18:var(--digi--grayscale--100);--digi--color--marking--navigation--selected--light--af18:var(--digi--color--leaf--500);--digi--color--misc--skeleton--light--af18:var(--digi--grayscale--400);--digi--color--misc--spinner-path--light--af18:var(--digi--grayscale--400);--digi--color--text--description--light--af18:var(--digi--grayscale--800);--digi--color--text--interactive--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--text--interactive--brand-secondary--light--af18:var(--digi--color--leaf--500);--digi--color--text--interactive--primary--light--af18:var(--digi--color--sapphire--500);--digi--color--text--interactive--secondary--light--af18:var(--digi--grayscale--0);--digi--color--text--interactive--tertiary--light--af18:var(--digi--grayscale--900);--digi--color--text--interactive--visited--light--af18:var(--digi--color--amethyst--500);--digi--color--text--primary--light--af18:var(--digi--grayscale--900);--digi--color--text--secondary--light--af18:var(--digi--grayscale--0);--digi--amethyst--500:#822998;--digi--granskott--150:#f2faf2;--digi--granskott--200:#ebf8eb;--digi--granskott--250:#ddf4dd;--digi--granskott--300:#cbecc9;--digi--granskott--350:#ace4ad;--digi--granskott--650:#1db920;--digi--granskott--700:#02a704;--digi--granskott--750:#018903;--digi--granskott--800:#016503;--digi--natthimmel--200:#e9f6fd;--digi--natthimmel--250:#ddf1fc;--digi--natthimmel--300:#c9e9fa;--digi--natthimmel--350:#abdef7;--digi--natthimmel--700:#043982;--digi--natthimmel--800:#091d54;--digi--natthimmel--900:#071744;--digi--norrsken--400:#aaf5ab;--digi--norrsken--500:#67ee6a;--digi--rallarros--300:#f8ddf5;--digi--rallarros--500:#ce1cbd;--digi--sapphire--500:#1616b2;--digi--color--background--brand-primary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--default--input-elements--light:var(--digi--grayscale--0);--digi--color--background--interactive--default--pop-out--light:var(--digi--granskott--150);--digi--color--background--interactive--default--primary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--default--primary-inverted--light:var(--digi--norrsken--500);--digi--color--background--interactive--default--quaternary--light:var(--digi--grayscale--100);--digi--color--background--interactive--default--secondary--light:var(--digi--grayscale--0);--digi--color--background--interactive--default--secondary-inverted--light:var(--digi--misc--transparent);--digi--color--background--interactive--default--tertiary--light:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light:var(--digi--norrsken--400);--digi--color--background--interactive--hover--primary--light:var(--digi--natthimmel--700);--digi--color--background--interactive--hover--quarternary--light:var(--digi--grayscale--200);--digi--color--background--interactive--hover--secondary--light:var(--digi--natthimmel--250);--digi--color--background--interactive--hover--tertiary--light:var(--digi--sapphire--500);--digi--color--background--interactive--selected--on-menu-minus-button--light:var(--digi--granskott--350);--digi--color--background--interactive--selected--primary--light:var(--digi--sentiment--success--500);--digi--color--background--interactive--selected--secondary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--selected--tertiary--light:var(--digi--grayscale--200);--digi--color--background--interactive--validation--error--light:var(--digi--sentiment--error--200);--digi--color--background--interactive--validation--success--light:var(--digi--sentiment--success--200);--digi--color--background--interactive--validation--warning--light:var(--digi--sentiment--warning--50);--digi--color--background--notification--light:var(--digi--sentiment--error--500);--digi--color--background--pop-out--light:var(--digi--granskott--200);--digi--color--background--primary--light:var(--digi--grayscale--0);--digi--color--background--secondary--light:var(--digi--grayscale--100);--digi--color--background--secondary-accent--light:var(--digi--grayscale--400);--digi--color--background--secondary-muted--light:var(--digi--grayscale--50);--digi--color--background--sentiment--beta--primary--light:var(--digi--rallarros--500);--digi--color--background--sentiment--beta--secondary--light:var(--digi--rallarros--300);--digi--color--background--sentiment--error--primary--light:var(--digi--sentiment--error--500);--digi--color--background--sentiment--error--secondary--light:var(--digi--sentiment--error--700);--digi--color--background--sentiment--error--tertiary--light:var(--digi--sentiment--error--200);--digi--color--background--sentiment--info--primary--light:var(--digi--sentiment--informative--500);--digi--color--background--sentiment--info--secondary--light:var(--digi--sentiment--informative--700);--digi--color--background--sentiment--info--tertiary--light:var(--digi--sentiment--informative--200);--digi--color--background--sentiment--neutral--primary--light:var(--digi--grayscale--700);--digi--color--background--sentiment--neutral--secondary--light:var(--digi--grayscale--400);--digi--color--background--sentiment--neutral--tertiary--light:var(--digi--grayscale--900);--digi--color--background--sentiment--success--primary--light:var(--digi--sentiment--success--500);--digi--color--background--sentiment--success--secondary--light:var(--digi--sentiment--success--700);--digi--color--background--sentiment--success--tertiary--light:var(--digi--sentiment--success--200);--digi--color--background--sentiment--warning--primary--light:var(--digi--sentiment--warning--500);--digi--color--background--sentiment--warning--quarternary--light:var(--digi--sentiment--warning--50);--digi--color--background--sentiment--warning--secondary--light:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light:var(--digi--sentiment--warning--200);--digi--color--background--transparent--light:var(--digi--misc--transparent);--digi--color--border--accent--primary--light:var(--digi--natthimmel--800);--digi--color--border--accent--secondary--light:var(--digi--granskott--700);--digi--color--border--interactive--default--inverted--light:var(--digi--norrsken--500);--digi--color--border--interactive--default--on-input--light:var(--digi--grayscale--900);--digi--color--border--interactive--default--on-input-nuance--light:var(--digi--grayscale--800);--digi--color--border--interactive--default--primary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--hover--inverted--light:var(--digi--norrsken--400);--digi--color--border--interactive--hover--primary--light:var(--digi--natthimmel--700);--digi--color--border--interactive--hover--secondary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--selected--primary--light:var(--digi--sentiment--success--500);--digi--color--border--interactive--selected--secondary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--validation--error--light:var(--digi--sentiment--error--500);--digi--color--border--interactive--validation--success--light:var(--digi--sentiment--success--500);--digi--color--border--interactive--validation--warning--light:var(--digi--sentiment--warning--900);--digi--color--border--notification--light:var(--digi--grayscale--0);--digi--color--border--sentiment--error--light:var(--digi--sentiment--error--500);--digi--color--border--sentiment--info--light:var(--digi--sentiment--informative--500);--digi--color--border--sentiment--success--light:var(--digi--sentiment--success--500);--digi--color--border--sentiment--warning--light:var(--digi--sentiment--warning--500);--digi--color--border--transparent--light:var(--digi--misc--transparent);--digi--color--divider--cta--light:var(--digi--sapphire--500);--digi--color--divider--on-brand-primary--light:var(--digi--natthimmel--350);--digi--color--divider--primary--light:var(--digi--grayscale--400);--digi--color--divider--secondary--light:var(--digi--grayscale--200);--digi--color--icon--brand-primary--light:var(--digi--natthimmel--800);--digi--color--icon--brand-secondary--light:var(--digi--norrsken--500);--digi--color--icon--cta--light:var(--digi--sapphire--500);--digi--color--icon--primary--light:var(--digi--grayscale--900);--digi--color--icon--secondary--light:var(--digi--grayscale--0);--digi--color--icon--validation--error--light:var(--digi--sentiment--error--500);--digi--color--icon--validation--success--light:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light:var(--digi--sentiment--warning--500);--digi--color--infographic--background--light:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light:var(--digi--granskott--700);--digi--color--infographic--brand--primary-alt--light:var(--digi--granskott--700);--digi--color--infographic--brand--secondary--light:var(--digi--granskott--300);--digi--color--infographic--brand--secondary-alt--light:var(--digi--granskott--300);--digi--color--infographic--lineart--light:var(--digi--grayscale--900);--digi--color--logotype--primary--symbol--light:var(--digi--granskott--700);--digi--color--logotype--primary--text--light:var(--digi--natthimmel--800);--digi--color--logotype--secondary--symbol--light:#1db920;--digi--color--logotype--secondary--text--light:var(--digi--grayscale--0);--digi--color--marking--indication--primary--light:var(--digi--sentiment--success--500);--digi--color--marking--indication--secondary--light:var(--digi--natthimmel--800);--digi--color--marking--indication--tertiary--light:var(--digi--grayscale--700);--digi--color--marking--navigation--level-active--light:var(--digi--granskott--350);--digi--color--marking--navigation--level-inactive--light:var(--digi--grayscale--100);--digi--color--marking--navigation--selected--light:var(--digi--granskott--700);--digi--color--misc--skeleton--light:var(--digi--grayscale--400);--digi--color--misc--spinner-path--light:var(--digi--grayscale--400);--digi--color--text--description--light:var(--digi--grayscale--800);--digi--color--text--interactive--brand-primary--light:var(--digi--natthimmel--800);--digi--color--text--interactive--brand-secondary--light:var(--digi--norrsken--500);--digi--color--text--interactive--primary--light:var(--digi--sapphire--500);--digi--color--text--interactive--secondary--light:var(--digi--grayscale--0);--digi--color--text--interactive--tertiary--light:var(--digi--grayscale--900);--digi--color--text--interactive--visited--light:var(--digi--amethyst--500);--digi--color--text--primary--light:var(--digi--grayscale--900);--digi--color--text--secondary--light:var(--digi--grayscale--0);--digi--color--background--brand-primary:var(--digi--color--background--brand-primary--light);--digi--color--background--interactive--default--input-elements:var(--digi--color--background--interactive--default--input-elements--light);--digi--color--background--interactive--default--pop-out:var(--digi--color--background--interactive--default--pop-out--light);--digi--color--background--interactive--default--primary:var(--digi--color--background--interactive--default--primary--light);--digi--color--background--interactive--default--primary-inverted:var(--digi--color--background--interactive--default--primary-inverted--light);--digi--color--background--interactive--default--quaternary:var(--digi--color--background--interactive--default--quaternary--light);--digi--color--background--interactive--default--secondary:var(--digi--color--background--interactive--default--secondary--light);--digi--color--background--interactive--default--secondary-inverted:var(--digi--color--background--interactive--default--secondary-inverted--light);--digi--color--background--interactive--default--tertiary:var(--digi--color--background--interactive--default--tertiary--light);--digi--color--background--interactive--hover--inverted:var(--digi--color--background--interactive--hover--inverted--light);--digi--color--background--interactive--hover--primary:var(--digi--color--background--interactive--hover--primary--light);--digi--color--background--interactive--hover--quarternary:var(--digi--color--background--interactive--hover--quarternary--light);--digi--color--background--interactive--hover--secondary:var(--digi--color--background--interactive--hover--secondary--light);--digi--color--background--interactive--hover--tertiary:var(--digi--color--background--interactive--hover--tertiary--light);--digi--color--background--interactive--selected--on-menu-minus-button:var(--digi--color--background--interactive--selected--on-menu-minus-button--light);--digi--color--background--interactive--selected--primary:var(--digi--color--background--interactive--selected--primary--light);--digi--color--background--interactive--selected--secondary:var(--digi--color--background--interactive--selected--secondary--light);--digi--color--background--interactive--selected--tertiary:var(--digi--color--background--interactive--selected--tertiary--light);--digi--color--background--interactive--validation--error:var(--digi--color--background--interactive--validation--error--light);--digi--color--background--interactive--validation--success:var(--digi--color--background--interactive--validation--success--light);--digi--color--background--interactive--validation--warning:var(--digi--color--background--interactive--validation--warning--light);--digi--color--background--notification:var(--digi--color--background--notification--light);--digi--color--background--pop-out:var(--digi--color--background--pop-out--light);--digi--color--background--primary:var(--digi--color--background--primary--light);--digi--color--background--secondary:var(--digi--color--background--secondary--light);--digi--color--background--secondary-accent:var(--digi--color--background--secondary-accent--light);--digi--color--background--secondary-muted:var(--digi--color--background--secondary-muted--light);--digi--color--background--sentiment--beta--primary:var(--digi--color--background--sentiment--beta--primary--light);--digi--color--background--sentiment--beta--secondary:var(--digi--color--background--sentiment--beta--secondary--light);--digi--color--background--sentiment--error--primary:var(--digi--color--background--sentiment--error--primary--light);--digi--color--background--sentiment--error--secondary:var(--digi--color--background--sentiment--error--secondary--light);--digi--color--background--sentiment--error--tertiary:var(--digi--color--background--sentiment--error--tertiary--light);--digi--color--background--sentiment--info--primary:var(--digi--color--background--sentiment--info--primary--light);--digi--color--background--sentiment--info--secondary:var(--digi--color--background--sentiment--info--secondary--light);--digi--color--background--sentiment--info--tertiary:var(--digi--color--background--sentiment--info--tertiary--light);--digi--color--background--sentiment--neutral--primary:var(--digi--color--background--sentiment--neutral--primary--light);--digi--color--background--sentiment--neutral--secondary:var(--digi--color--background--sentiment--neutral--secondary--light);--digi--color--background--sentiment--neutral--tertiary:var(--digi--color--background--sentiment--neutral--tertiary--light);--digi--color--background--sentiment--success--primary:var(--digi--color--background--sentiment--success--primary--light);--digi--color--background--sentiment--success--secondary:var(--digi--color--background--sentiment--success--secondary--light);--digi--color--background--sentiment--success--tertiary:var(--digi--color--background--sentiment--success--tertiary--light);--digi--color--background--sentiment--warning--primary:var(--digi--color--background--sentiment--warning--primary--light);--digi--color--background--sentiment--warning--quarternary:var(--digi--color--background--sentiment--warning--quarternary--light);--digi--color--background--sentiment--warning--secondary:var(--digi--color--background--sentiment--warning--secondary--light);--digi--color--background--sentiment--warning--tertiary:var(--digi--color--background--sentiment--warning--tertiary--light);--digi--color--background--transparent:var(--digi--color--background--transparent--light);--digi--color--border--accent--primary:var(--digi--color--border--accent--primary--light);--digi--color--border--accent--secondary:var(--digi--color--border--accent--secondary--light);--digi--color--border--interactive--default--inverted:var(--digi--color--border--interactive--default--inverted--light);--digi--color--border--interactive--default--on-input:var(--digi--color--border--interactive--default--on-input--light);--digi--color--border--interactive--default--on-input-nuance:var(--digi--color--border--interactive--default--on-input-nuance--light);--digi--color--border--interactive--default--primary:var(--digi--color--border--interactive--default--primary--light);--digi--color--border--interactive--hover--inverted:var(--digi--color--border--interactive--hover--inverted--light);--digi--color--border--interactive--hover--primary:var(--digi--color--border--interactive--hover--primary--light);--digi--color--border--interactive--hover--secondary:var(--digi--color--border--interactive--hover--secondary--light);--digi--color--border--interactive--selected--primary:var(--digi--color--border--interactive--selected--primary--light);--digi--color--border--interactive--selected--secondary:var(--digi--color--border--interactive--selected--secondary--light);--digi--color--border--interactive--validation--error:var(--digi--color--border--interactive--validation--error--light);--digi--color--border--interactive--validation--success:var(--digi--color--border--interactive--validation--success--light);--digi--color--border--interactive--validation--warning:var(--digi--color--border--interactive--validation--warning--light);--digi--color--border--notification:var(--digi--color--border--notification--light);--digi--color--border--sentiment--error:var(--digi--color--border--sentiment--error--light);--digi--color--border--sentiment--info:var(--digi--color--border--sentiment--info--light);--digi--color--border--sentiment--success:var(--digi--color--border--sentiment--success--light);--digi--color--border--sentiment--warning:var(--digi--color--border--sentiment--warning--light);--digi--color--border--transparent:var(--digi--color--border--transparent--light);--digi--color--divider--cta:var(--digi--color--divider--cta--light);--digi--color--divider--on-brand-primary:var(--digi--color--divider--on-brand-primary--light);--digi--color--divider--primary:var(--digi--color--divider--primary--light);--digi--color--divider--secondary:var(--digi--color--divider--secondary--light);--digi--color--icon--brand-primary:var(--digi--color--icon--brand-primary--light);--digi--color--icon--brand-secondary:var(--digi--color--icon--brand-secondary--light);--digi--color--icon--cta:var(--digi--color--icon--cta--light);--digi--color--icon--primary:var(--digi--color--icon--primary--light);--digi--color--icon--secondary:var(--digi--color--icon--secondary--light);--digi--color--icon--validation--error:var(--digi--color--icon--validation--error--light);--digi--color--icon--validation--success:var(--digi--color--icon--validation--success--light);--digi--color--icon--validation--warning:var(--digi--color--icon--validation--warning--light);--digi--color--infographic--background:var(--digi--color--infographic--background--light);--digi--color--infographic--brand--primary:var(--digi--color--infographic--brand--primary--light);--digi--color--infographic--brand--primary-alt:var(--digi--color--infographic--brand--primary-alt--light);--digi--color--infographic--brand--secondary:var(--digi--color--infographic--brand--secondary--light);--digi--color--infographic--brand--secondary-alt:var(--digi--color--infographic--brand--secondary-alt--light);--digi--color--infographic--lineart:var(--digi--color--infographic--lineart--light);--digi--color--logotype--primary--symbol:var(--digi--color--logotype--primary--symbol--light);--digi--color--logotype--primary--text:var(--digi--color--logotype--primary--text--light);--digi--color--logotype--secondary--symbol:var(--digi--color--logotype--secondary--symbol--light);--digi--color--logotype--secondary--text:var(--digi--color--logotype--secondary--text--light);--digi--color--marking--indication--primary:var(--digi--color--marking--indication--primary--light);--digi--color--marking--indication--secondary:var(--digi--color--marking--indication--secondary--light);--digi--color--marking--indication--tertiary:var(--digi--color--marking--indication--tertiary--light);--digi--color--marking--navigation--level-active:var(--digi--color--marking--navigation--level-active--light);--digi--color--marking--navigation--level-inactive:var(--digi--color--marking--navigation--level-inactive--light);--digi--color--marking--navigation--selected:var(--digi--color--marking--navigation--selected--light);--digi--color--misc--skeleton:var(--digi--color--misc--skeleton--light);--digi--color--misc--spinner-path:var(--digi--color--misc--spinner-path--light);--digi--color--text--description:var(--digi--color--text--description--light);--digi--color--text--interactive--brand-primary:var(--digi--color--text--interactive--brand-primary--light);--digi--color--text--interactive--brand-secondary:var(--digi--color--text--interactive--brand-secondary--light);--digi--color--text--interactive--primary:var(--digi--color--text--interactive--primary--light);--digi--color--text--interactive--secondary:var(--digi--color--text--interactive--secondary--light);--digi--color--text--interactive--tertiary:var(--digi--color--text--interactive--tertiary--light);--digi--color--text--interactive--visited:var(--digi--color--text--interactive--visited--light);--digi--color--text--primary:var(--digi--color--text--primary--light);--digi--color--text--secondary:var(--digi--color--text--secondary--light)}body.sc-digi-calendar-datepicker{font-size:1rem;font-family:"Open Sans", Arial, sans-serif}.sc-digi-calendar-datepicker-h{--digi--datepicker--max-width:18.75rem;--digi--datepicker--border-radius:0.25rem;--digi--datepicker--calendar--max-width:20.25rem;--digi--datepicker--calendar--show-week--max-width:23.375rem;--digi--datepicker--calendar-shadow:0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.7);--digi--datepicker--calendar--background-color:var(--digi--color--background--interactive--default--secondary);--digi--datepicker--input-icon--width:0.875rem;--digi--datepicker--input-icon--horizontal-padding:0.75rem;--digi--datepicker--input-icon--vertical-padding:var(--digi--global--spacing--smallest-2);--digi--datepicker--input--inline-start:var(--digi--gutter--medium);--digi--datepicker--input--inline-end:calc(var(--digi--datepicker--input-icon--width) + var(--digi--datepicker--input-icon--horizontal-padding) * 2);box-sizing:content-box}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker.sc-digi-calendar-datepicker{position:relative;pointer-events:none}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker{position:relative;max-width:var(--digi--datepicker--max-width);pointer-events:auto}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__inactive.sc-digi-calendar-datepicker{--digi--form-input--background--empty:var(--digi--datepicker--input--inactive-background)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker{background:var(--digi--color--background--primary);height:var(--digi--form-input--height--medium);color:inherit;border:1px solid var(--digi--color--border--interactive--default--on-input);border-left:none;padding:0;font:inherit;outline:inherit;cursor:pointer}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker .digi-calendar-datepicker__button-icon.sc-digi-calendar-datepicker{box-sizing:content-box;width:var(--digi--datepicker--input-icon--width);padding:var(--digi--datepicker--input-icon--vertical-padding) var(--digi--datepicker--input-icon--horizontal-padding)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker svg.sc-digi-calendar-datepicker{color:var(--digi--color--icon--brand-primary)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:hover,.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:focus{background:var(--digi--color--background--interactive--hover--secondary)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--max-width);height:0px;border-radius:var(--digi--datepicker--border-radius);overflow:hidden;z-index:1}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-week-numbers.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--show-week--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-calendar.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{height:auto;background-color:var(--digi--datepicker--calendar--background-color);box-shadow:var(--digi--datepicker--calendar-shadow);position:absolute;top:var(--digi--datepicker--calendar--popup-top);left:0;pointer-events:auto}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-component.sc-digi-calendar-datepicker{--digi--form-input--padding:0 var(--digi--datepicker--input--inline-end) 0 var(--digi--datepicker--input--inline-start)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__selected-date-alert.sc-digi-calendar-datepicker{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}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__sr-instructions.sc-digi-calendar-datepicker{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}`;
2693
-
2694
- const CalendarDatepicker = class {
2695
- constructor(hostRef) {
2696
- index$1.registerInstance(this, hostRef);
2697
- this.afOnDateChange = index$1.createEvent(this, "afOnDateChange", 7);
2698
- this.afOnDateChangeRawText = index$1.createEvent(this, "afOnDateChangeRawText", 7);
2699
- this.afOnValidationChange = index$1.createEvent(this, "afOnValidationChange", 7);
2700
- this.showWrongFormatError = false;
2701
- this.showDisabledDateError = false;
2702
- this.showCalendar = false;
2703
- this.futureYears = 10;
2704
- this.screenReaderUpdateTrigger = false;
2705
- this.userInput = '';
2706
- /**
2707
- * Sätter attributet id för inputfältet, och utgör basen för andra id:n i komponenten
2708
- * @en Sets an id attribute for the input field, and serves as the base for other ids in the component
2709
- */
2710
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar-datepicker');
2711
- /**
2712
- * Texten till etiketten
2713
- * @en The label text
2714
- */
2715
- this.afLabel = text._t.calendar.datepicker.label;
2716
- /**
2717
- * Aria-label till knappen som öppnar kalendern
2718
- * @en Aria-label for the button that opens the calendar
2719
- */
2720
- this.afOpenCalendarAriaLabel = text._t.calendar.datepicker.openCalendarAriaLabel;
2721
- /**
2722
- * Aria-label till knappen som stänger kalendern
2723
- * @en Aria-label for the button that closes the calendar
2724
- */
2725
- this.afCloseCalendarAriaLabel = text._t.calendar.datepicker.closeCalendarAriaLabel;
2726
- /**
2727
- * Sätter valideringsstatus. Kan vara 'success', 'error', 'warning', 'neutral' eller ingenting. Om värdet är 'error' sätts också aria-invalid="true" på input-elementet.
2728
- * @en Set input validation status
2729
- */
2730
- this.afValidation = typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL;
2731
- /**
2732
- * Sätter valideringsmeddelandet för den inbyggda formatvalideringen. Default är "Fel format"
2733
- * @en Set input validation message for the built-in format validation
2734
- */
2735
- this.afValidationWrongFormat = text._t.calendar.datepicker.validationWrongFormat;
2736
- /**
2737
- * Sätter valideringsmeddelandet för den inbyggda valideringen när man anger datum som inte är valbara. Default är "Ej valbart datum"
2738
- * @en Set input validation message for the built-in when date is not selectable
2739
- */
2740
- this.afValidationDisabledDate = text._t.calendar.datepicker.validationDisabledDate;
2741
- /**
2742
- * Sätt denna till true för att stänga av komponentens egna validering
2743
- * @en Set this to true to disable internal validation
2744
- */
2745
- this.afDisableValidation = false;
2746
- /**
2747
- * Valda datum i kalendern
2748
- * @en Selected dates in calendar
2749
- */
2750
- this.afSelectedDates = [];
2751
- /**
2752
- * Sätts till true för att byta knapparna för föregående och nästa månad till dropdowns för att välja månad och år. Rekommenderas då förväntat datum är många månader bakåt eller framåt i tiden, som exempelvis ett födelsedatum.
2753
- * @en Set this to true to change the previous/next month buttons to dropdowns for selecting month and year. Recommended when the expected date is many months back or forward in time, such as a birthdate.
2754
- */
2755
- this.afYearSelect = false;
2756
- /**
2757
- * Sätter attributet 'value'
2758
- * @en Input value attribute
2759
- * @ignore
2760
- */
2761
- this.value = [];
2762
- /**
2763
- * Visa veckonummer i kalender
2764
- * @en Show week number in the calander.
2765
- */
2766
- this.afShowWeekNumber = false;
2767
- /**
2768
- * Sätt denna till true för att kunna markera mer en ett datum i kalendern
2769
- * @en Set this to true to be able to select multiple dates in the calander
2770
- */
2771
- this.afMultipleDates = false;
2772
- /**
2773
- * Sätt denna till true om kalendern ska stängas när användaren väljer ett datum
2774
- * @en Set this to true if the calendar should close when a date is selected
2775
- */
2776
- this.afCloseOnSelect = false;
2777
- /**
2778
- * Om värdet är true får felmeddelandet attributet role="alert".
2779
- * Om felet visas tillsammans med flera andra fel (till exempel efter servervalidering) ska värdet sättas till false.
2780
- * @en If the value is true, the error message gets the attribute role="alert".
2781
- * If the error is shown together with multiple errors (for example after server-side validation), the value should be set to false.
2782
- */
2783
- this.afErrorMessageIsAlert = true;
2784
- /**
2785
- * Sätt denna till true om formuläret innehåller fler obligatoriska fält än valfria.
2786
- * @en Set this to true if the form contains more required fields than optional fields.
2787
- */
2788
- this.afAnnounceIfOptional = false;
2789
- }
2790
- afDisableValidationChangeHandler(newVal) {
2791
- if (!newVal) {
2792
- const dates = this.userInput !== ''
2793
- ? this.parseInputString(this.userInput)
2794
- : this.afSelectedDates;
2795
- this.validateInputAndShowErrors(dates);
2796
- }
2797
- else {
2798
- this.showWrongFormatError = false;
2799
- this.showDisabledDateError = false;
2800
- }
2801
- }
2802
- afSelectedDatesChangeHandler(newVal) {
2803
- if (!this.afDisableValidation && newVal.length > 0) {
2804
- this.validateInputAndShowErrors(newVal);
2805
- }
2806
- }
2807
- valueChangeHandler(newVal) {
2808
- if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2809
- this.afSelectedDates = [];
2810
- }
2811
- /**
2812
- * Behövde lägga till den här förändringen för att angular med value accessor betedde sig märkligt vid onBlur av input-fält. Den reagerade när man lämnade fältet även fast fältet var tomt (pratar om watchern). Så behövde bygga en guard/gatekeeper som kontrollerar värdet först. Ska inte påverka manuell-, eller autovalidering.
2813
- */
2814
- if (Array.isArray(newVal) &&
2815
- newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2816
- this.afSelectedDates = newVal;
2817
- this.userInput = '';
2818
- }
2819
- }
2820
- afMinDateChangeHandler(newVal) {
2821
- if (!this.afDisableValidation && newVal) {
2822
- this.validateInputAndShowErrors(this.afSelectedDates);
2823
- }
2824
- }
2825
- afMaxDateChangeHandler(newVal) {
2826
- if (!this.afDisableValidation && newVal) {
2827
- this.validateInputAndShowErrors(this.afSelectedDates);
2828
- }
2829
- }
2830
- afMultipleDatesChangeHandler() {
2831
- var _a;
2832
- if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2833
- this.afSelectedDates = this.afSelectedDates.slice(-1);
2834
- this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2835
- }
2836
- }
2837
- get errorMessageIsAlert() {
2838
- return (this.afErrorMessageIsAlert !== false &&
2839
- this.afErrorMessageIsAlert !== 'false');
2840
- }
2841
- clickHandler(e) {
2842
- const target = e.target;
2843
- const selector = `#${this.afId}-datepicker`;
2844
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
2845
- this.showCalendar = false;
2846
- }
2847
- }
2848
- /**
2849
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva input-elementet.
2850
- * @en Listens for when focus is set on the custom element and propagates it down to the actual input element.
2851
- */
2852
- focusOnInput() {
2853
- this._input.focus();
2854
- }
2855
- connectedCallback() {
2856
- this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2857
- }
2858
- disconnectedCallback() {
2859
- this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2860
- }
2861
- componentDidLoad() {
2862
- var _a;
2863
- if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2864
- this.setValue(this.value);
2865
- }
2866
- }
2867
- componentDidUpdate() {
2868
- if (this.showCalendar) {
2869
- this.positionCalendar();
2870
- }
2871
- }
2872
- get cssModifiers() {
2873
- return {
2874
- 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2875
- 'digi-calendar-datepicker__show-error': this.hasBuiltInValidationError() || this.hasCustomValidationError(),
2876
- 'digi-calendar-datepicker__show-calendar': this.showCalendar
2877
- };
2878
- }
2879
- keyUpHandler(e) {
2880
- if (e.key === 'Escape' && this.showCalendar) {
2881
- this.showCalendar = false;
2882
- this.focusOnCalendarButton();
2883
- e.stopPropagation();
2884
- }
2885
- }
2886
- focusOnCalendarInput() {
2887
- const input = this.hostElement.querySelector(`#${this.afId}-datepicker input`);
2888
- input === null || input === void 0 ? void 0 : input.focus();
2889
- }
2890
- focusOnCalendarButton() {
2891
- const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2892
- calendarButton.focus();
2893
- }
2894
- positionCalendar() {
2895
- const btn = this.hostElement.querySelector(`#${this.afId}-button`);
2896
- const datepickerEl = this.hostElement.querySelector(`#${this.afId}-datepicker`);
2897
- if (!btn || !datepickerEl)
2898
- return;
2899
- const btnRect = btn.getBoundingClientRect();
2900
- const containerRect = datepickerEl.getBoundingClientRect();
2901
- datepickerEl.style.setProperty('--digi--datepicker--calendar--popup-top', `${btnRect.bottom - containerRect.top + 5}px`);
2902
- }
2903
- toggleCalendar() {
2904
- if (!this.showCalendar) {
2905
- this.positionCalendar();
2906
- }
2907
- this.showCalendar = !this.showCalendar;
2908
- if (this.showCalendar) {
2909
- this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2910
- }
2911
- }
2912
- parseInputString(value) {
2913
- return value
2914
- .split(new RegExp(`[&,]|${text._t.and}`, 'g'))
2915
- .map((text) => this.parseDateString(text.trim()));
2916
- }
2917
- resetValueAndState() {
2918
- this.showWrongFormatError = false;
2919
- this.showDisabledDateError = false;
2920
- this.setValue([]);
2921
- this.afOnDateChange.emit([]);
2922
- this.afSelectedDates = [];
2923
- }
2924
- removeDuplicateDates(dates) {
2925
- const seen = new Set();
2926
- return dates.filter((date) => {
2927
- if (!(date instanceof Date) || isNaN(date.getTime())) {
2928
- return true;
2929
- }
2930
- const key = date.toISOString().split('T')[0]; // yyyy-mm-dd
2931
- if (seen.has(key)) {
2932
- return false;
2933
- }
2934
- seen.add(key);
2935
- return true;
2936
- });
2937
- }
2938
- validateInputAndShowErrors(dates) {
2939
- this.showWrongFormatError = !!dates.find((date) => !index.isValid(date));
2940
- this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2941
- const inputIsValid = !this.showWrongFormatError && !this.showDisabledDateError;
2942
- this.afOnValidationChange.emit({
2943
- isValid: inputIsValid,
2944
- validationText: inputIsValid
2945
- ? undefined
2946
- : this.showWrongFormatError
2947
- ? this.afValidationWrongFormat
2948
- : this.afValidationDisabledDate
2949
- });
2950
- }
2951
- setValue(value) {
2952
- this.afSelectedDates = value;
2953
- this.value = value;
2954
- }
2955
- parseInput(evt) {
2956
- let newValue = '';
2957
- if (evt.detail && typeof evt.detail.value === 'string') {
2958
- newValue = evt.detail.value;
2959
- }
2960
- else if (evt.target && evt.target.value != null) {
2961
- newValue = evt.target.value;
2962
- }
2963
- this.userInput = newValue;
2964
- if (newValue === '') {
2965
- this.resetValueAndState();
2966
- return;
2967
- }
2968
- let dates = this.parseInputString(newValue);
2969
- // Single dates - acceptera inte flera datum inskrivna
2970
- if (!this.afDisableValidation &&
2971
- !this.afMultipleDates &&
2972
- dates.length > 1) {
2973
- this.showWrongFormatError = true;
2974
- this.afOnValidationChange.emit({
2975
- isValid: false,
2976
- validationText: this.afValidationWrongFormat
2977
- });
2978
- return;
2979
- }
2980
- // Multiple dates - filtrera bort dubbletter
2981
- if (!this.afDisableValidation && this.afMultipleDates) {
2982
- const uniqueDates = this.removeDuplicateDates(dates);
2983
- if (uniqueDates.length !== dates.length) {
2984
- dates = uniqueDates;
2985
- this.userInput = this.datesToInputString(dates);
2986
- }
2987
- }
2988
- this.setValue(dates);
2989
- if (!this.afDisableValidation) {
2990
- this.validateInputAndShowErrors(dates);
2991
- }
2992
- this.afOnDateChange.emit(dates);
2993
- }
2994
- parseCalendar(evt) {
2995
- if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
2996
- return;
2997
- if (!this.afDisableValidation) {
2998
- this.showWrongFormatError = false;
2999
- this.showDisabledDateError = false;
3000
- }
3001
- this.userInput = '';
3002
- this.setValue(evt.detail);
3003
- this.afOnDateChangeRawText.emit(this.inputValue);
3004
- if (this.afCloseOnSelect) {
3005
- this.toggleCalendar();
3006
- this.focusOnCalendarButton();
3007
- }
3008
- this.afOnDateChange.emit(this.afSelectedDates);
3009
- }
3010
- /*
3011
-
3012
- Metoden överskrider JavaScripts inbyggda "isValid"-funktion, då den tillåter att ex., "1" är rätt format medans ex., "13" är fel format vid YYYY-MM-DD krav på inmatat format.
3013
-
3014
- */
3015
- parseDateString(s) {
3016
- const raw = s.trim().replace(/[./]/g, '-');
3017
- // 1) yyyy-MM-dd
3018
- if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
3019
- const d = parse(raw, 'yyyy-MM-dd', new Date());
3020
- return index.isValid(d) ? d : new Date(NaN);
3021
- }
3022
- // 2) yyyymmdd
3023
- if (/^\d{8}$/.test(raw)) {
3024
- const yyyy = raw.slice(0, 4);
3025
- const mm = raw.slice(4, 6);
3026
- const dd = raw.slice(6, 8);
3027
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
3028
- return index.isValid(d) ? d : new Date(NaN);
3029
- }
3030
- // 3) yymmdd (map to full year using the previous futureYears logic)
3031
- if (/^\d{6}$/.test(raw)) {
3032
- const yy = raw.slice(0, 2);
3033
- const mm = raw.slice(2, 4);
3034
- const dd = raw.slice(4, 6);
3035
- const yyyy = this.getFullYear(yy);
3036
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
3037
- return index.isValid(d) ? d : new Date(NaN);
3038
- }
3039
- // Everything else is invalid (so "1" and "25" will now be "Fel format")
3040
- return new Date(NaN);
3041
- }
3042
- getFullYear(s) {
3043
- if (s.length === 4)
3044
- return s;
3045
- const y = new Date().getFullYear().toString();
3046
- return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
3047
- ? parseInt(y.slice(0, -2)) - 1 + s
3048
- : y.slice(0, -2) + s;
3049
- }
3050
- isDateSelectable(date) {
3051
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
3052
- return false;
3053
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
3054
- return false;
3055
- return true;
3056
- }
3057
- isBefore(a, b) {
3058
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
3059
- }
3060
- isAfter(a, b) {
3061
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
3062
- }
3063
- dateWithoutTime(date) {
3064
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
3065
- }
3066
- hasBuiltInValidationError() {
3067
- return this.showWrongFormatError || this.showDisabledDateError;
3068
- }
3069
- hasCustomValidationError() {
3070
- return (this.afValidation &&
3071
- this.afValidation !== typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL);
3072
- }
3073
- getErrorText() {
3074
- if (this.hasBuiltInValidationError()) {
3075
- return this.showWrongFormatError
3076
- ? this.afValidationWrongFormat
3077
- : this.afValidationDisabledDate;
3078
- }
3079
- if (this.hasCustomValidationError()) {
3080
- return this.afValidationText;
3081
- }
3082
- }
3083
- get inputValue() {
3084
- if (this.userInput !== '') {
3085
- return this.userInput;
3086
- }
3087
- // otherwise format your real selected dates
3088
- const sorted = this.afSelectedDates
3089
- .slice()
3090
- .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
3091
- return this.datesToInputString(sorted);
3092
- }
3093
- datesToInputString(dates) {
3094
- return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
3095
- ? dates
3096
- .map((date) => date.toLocaleDateString(text._t.locale))
3097
- .flatMap((date, index, all) => {
3098
- const isLast = index == all.length - 1;
3099
- const isFirst = index === 0;
3100
- if (isFirst) {
3101
- return date;
3102
- }
3103
- else if (isLast) {
3104
- return [` ${text._t.and} `, date];
3105
- }
3106
- else {
3107
- return [', ', date];
3108
- }
3109
- })
3110
- .join('')
3111
- : '';
3112
- }
3113
- get getSelectedDates() {
3114
- if (!this.afDisableValidation && this.hasBuiltInValidationError()) {
3115
- return [];
3116
- }
3117
- return this.afSelectedDates;
3118
- }
3119
- render() {
3120
- return (index$1.h(index$1.Host, { key: 'a22b366eece8bdf2a6d66ba7b4561093391ad16d', tabindex: -1 }, index$1.h("div", { key: '5ec3557df78bb012f2e10f1852252e78e2470ee3', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, index$1.h("div", { key: '1215a13021718ac98ad2a4a7a5bae3c456385124', class: "digi-calendar-datepicker__input-field" }, index$1.h("digi-form-input", { key: '8794d312452fe11f0f9052bbdd238e5570ec55f0', ref: (el) => (this._input = el), class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afName: this.afName, afValue: this.inputValue, afValidation: this.hasBuiltInValidationError()
3121
- ? typographyVariation_enum.FormInputValidation.ERROR
3122
- : this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, afAnnounceIfOptional: this.afAnnounceIfOptional, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText, onAfOnChange: (evt) => {
3123
- evt.stopImmediatePropagation();
3124
- this.parseInput(evt);
3125
- }, onAfOnBlur: (evt) => {
3126
- evt.stopImmediatePropagation();
3127
- this.afOnDateChangeRawText.emit(this.inputValue);
3128
- }, onKeyDown: (e) => {
3129
- // Focus trap: Catch backwards tab from input field and direct it to date button.
3130
- if (!this.showCalendar || e.key !== 'Tab' || !e.shiftKey)
3131
- return;
3132
- if (e.target.tagName !== 'INPUT')
3133
- return;
3134
- e.preventDefault();
3135
- const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
3136
- focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
3137
- } }, index$1.h("button", { key: 'c953ddf0c99cfd3b892941da7da4a887b342fd78', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
3138
- ? this.afCloseCalendarAriaLabel
3139
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, index$1.h("digi-icon-calendar-alt", { key: '46c7387d404b77911b97f31c10e7147bd436c7e3', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), index$1.h("div", { key: '91894a4219afa79d913f558f5d1cc6b410b535ce', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, index$1.h("p", { key: '989fc17ea7a95aa014a26e09f7db7f59fe53a36b', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
3140
- ? `${text._t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
3141
- : ''), index$1.h("digi-calendar", { key: '6e62fb845769eca0a9b8cb21e4a09a5620804d42', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afYearSelect: this.afYearSelect, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, afOpenCalendarTo: this.afOpenCalendarTo, onAfOnDateSelectedChange: (evt) => {
3142
- evt.stopImmediatePropagation();
3143
- this.parseCalendar(evt);
3144
- }, onKeyDown: (e) => {
3145
- // Focus trap: Catch forward tab from last focusable element in calendar and direct it to the input.
3146
- if (!this.showCalendar || e.key !== 'Tab' || e.shiftKey)
3147
- return;
3148
- if (!e.target.classList.contains('digi-calendar__date'))
3149
- return;
3150
- e.preventDefault();
3151
- this.focusOnCalendarInput();
3152
- } })), this.afCloseOnSelect && !this.afMultipleDates && (index$1.h("div", { key: 'd9f3eb470b29a0ab96134f1e4666743efacd7448', class: "digi-calendar-datepicker__selected-date-alert", role: this.errorMessageIsAlert ? 'alert' : null }, this.afSelectedDates.length > 0
3153
- ? `${text._t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
3154
- : '')))));
3155
- }
3156
- get hostElement() { return index$1.getElement(this); }
3157
- static get watchers() { return {
3158
- "afDisableValidation": [{
3159
- "afDisableValidationChangeHandler": 0
3160
- }],
3161
- "afSelectedDates": [{
3162
- "afSelectedDatesChangeHandler": 0
3163
- }],
3164
- "value": [{
3165
- "valueChangeHandler": 0
3166
- }],
3167
- "afMinDate": [{
3168
- "afMinDateChangeHandler": 0
3169
- }],
3170
- "afMaxDate": [{
3171
- "afMaxDateChangeHandler": 0
3172
- }],
3173
- "afMultipleDates": [{
3174
- "afMultipleDatesChangeHandler": 0
3175
- }]
3176
- }; }
3177
- };
3178
- CalendarDatepicker.style = calendarDatepickerCss();
3179
-
3180
- const expandableAccordionCss = () => `.sc-digi-expandable-accordion-h{--digi--expandable-accordion--header--toggle-icon--transition:ease-in-out var(--digi--animation--duration--base) all;--digi--expandable-accordion--header--font-size:var(--digi--typography--accordion--font-size--desktop);--digi--expandable-accordion--header--font-size--small:var(--digi--typography--accordion--font-size--mobile);--digi--expandable-accordion--header--font-weight:var(--digi--typography--accordion--font-weight--desktop);--digi--expandable-accordion--icon--size:0.875rem;--digi--expandable-accordion--icon--margin-right:var(--digi--margin--medium);--digi--expandable-accordion--border-bottom-width:var(--digi--border-width--secondary);--digi--expandable-accordion--border-bottom-color:var(--digi--color--divider--cta);--digi--expandable-accordion--content--padding:var(--digi--padding--medium) 0;--digi--expandable-accordion--content--transition:ease-in-out var(--digi--animation--duration--base) height;display:block}.sc-digi-expandable-accordion-h .digi-expandable-accordion.sc-digi-expandable-accordion::after{content:"";display:block;max-width:var(--digi--paragraph-width--medium);border-bottom-width:var(--digi--expandable-accordion--border-bottom-width);border-bottom-color:var(--digi--expandable-accordion--border-bottom-color);border-bottom-style:solid;margin-top:calc(var(--digi--expandable-accordion--border-bottom-width) * -1)}.sc-digi-expandable-accordion-h .digi-expandable-accordion--fullwidth.sc-digi-expandable-accordion::after{content:"";display:block;max-width:none;border-bottom-width:var(--digi--expandable-accordion--border-bottom-width);border-bottom-style:solid;margin-top:calc(var(--digi--expandable-accordion--border-bottom-width) * -1)}.digi-expandable-accordion__header.sc-digi-expandable-accordion{display:flex;align-items:center}.digi-expandable-accordion--variation-primary.sc-digi-expandable-accordion .digi-expandable-accordion__header.sc-digi-expandable-accordion{max-width:var(--digi--paragraph-width--medium);border-bottom-width:var(--digi--expandable-accordion--border-bottom-width);border-bottom-color:var(--digi--expandable-accordion--border-bottom-color);border-bottom-style:solid}.digi-expandable-accordion--fullwidth.sc-digi-expandable-accordion .digi-expandable-accordion__header.sc-digi-expandable-accordion{max-width:none}.digi-expandable-accordion__toggle-icon.sc-digi-expandable-accordion{transition:var(--digi--expandable-accordion--header--toggle-icon--transition)}.digi-expandable-accordion--expanded-true.sc-digi-expandable-accordion .digi-expandable-accordion__toggle-icon.sc-digi-expandable-accordion{transform:rotate(-180deg)}.digi-expandable-accordion__heading.sc-digi-expandable-accordion{margin:0;flex:1}.digi-expandable-accordion__heading-text.sc-digi-expandable-accordion{max-width:var(--digi--paragraph-width--medium)}.digi-expandable-accordion__button.sc-digi-expandable-accordion{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--expandable-accordion--header--font-size--small);font-weight:var(--digi--expandable-accordion--header--font-weight);width:100%;display:flex;gap:var(--digi--expandable-accordion--icon--margin-right);align-items:center;text-align:start;cursor:pointer;border:none}@media (min-width: 48rem){.digi-expandable-accordion__button.sc-digi-expandable-accordion{font-size:var(--digi--expandable-accordion--header--font-size)}}.digi-expandable-accordion--variation-primary.sc-digi-expandable-accordion .digi-expandable-accordion__button.sc-digi-expandable-accordion{color:var(--digi--color--text--primary);background-color:transparent;padding:var(--digi--expandable-accordion--content--padding)}.digi-expandable-accordion--variation-primary.sc-digi-expandable-accordion .digi-expandable-accordion__button.sc-digi-expandable-accordion:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-expandable-accordion--variation-primary.sc-digi-expandable-accordion .digi-expandable-accordion__button.sc-digi-expandable-accordion:hover{text-decoration:underline}.digi-expandable-accordion--fullwidth.sc-digi-expandable-accordion .digi-expandable-accordion__button.sc-digi-expandable-accordion{max-width:none}.digi-expandable-accordion__content.sc-digi-expandable-accordion{overflow-y:hidden}.digi-expandable-accordion--expanded-false.sc-digi-expandable-accordion .digi-expandable-accordion__content.sc-digi-expandable-accordion{height:0}.digi-expandable-accordion--variation-primary.sc-digi-expandable-accordion .digi-expandable-accordion__content.sc-digi-expandable-accordion>div.sc-digi-expandable-accordion{padding:var(--digi--expandable-accordion--content--padding)}.digi-expandable-accordion--variation-primary.digi-expandable-accordion--animation-true.sc-digi-expandable-accordion .digi-expandable-accordion__content.sc-digi-expandable-accordion{transition:var(--digi--expandable-accordion--content--transition)}.digi-expandable-accordion__toggle-inside.sc-digi-expandable-accordion{text-align:center;--digi--button--color--background--function--hover:var(--digi--color--background--primary)}@keyframes heightAnim{from{height:0%}to{height:100%}}`;
3181
-
3182
- const ExpandableAccordion = class {
3183
- constructor(hostRef) {
3184
- index$1.registerInstance(this, hostRef);
3185
- this.afOnClick = index$1.createEvent(this, "afOnClick", 7);
3186
- /**
3187
- * Sätter utfällbar rubrik. 'h2' är förvalt.
3188
- * @en Set heading level. Default is 'h2'
3189
- */
3190
- this.afHeadingLevel = typographyVariation_enum.ExpandableAccordionHeaderLevel.H2;
3191
- /**
3192
- * Gör så att komponenten tar upp 100% i bredd av ytan den befinner sig i.
3193
- * @en Makes the component take up 100% of the width of the surface it is in.
3194
- */
3195
- this.afFullWidth = false;
3196
- /**
3197
- * Sätter läge på rubriken om den ska vara expanderad eller ej.
3198
- * @en Sets the state of the accordion to expanded or not.
3199
- */
3200
- this.afExpanded = false;
3201
- /**
3202
- * Ställer in ifall komponenten ska ha en animation vid utfällning. Animation är påslagen som standard.
3203
- * @en Sets the state of the animation for the accordion's expanded area. Animation is on as default.
3204
- */
3205
- this.afAnimation = true;
3206
- /**
3207
- * Sätter attributet 'id'. Om inget väljs så skapas ett slumpmässigt id.
3208
- * @en Set id attribute. Defaults to random string.
3209
- */
3210
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-expandable-accordion');
3211
- /**
3212
- * Sätter texten som visas på knappen som expanderar komponenten. Om inget väljs så används "Visa"
3213
- * @en Sets the text on the button that expands the component. Defaults to "Visa".
3214
- */
3215
- this.afExpandText = text._t.show;
3216
- /**
3217
- * Sätter texten som visas på knappen som kollapsar komponenten. Om inget väljs så används "Dölj"
3218
- * @en Sets the text on the button that collapses the component. Defaults to "Dölj".
3219
- */
3220
- this.afCollapseText = text._t.hide;
3221
- }
3222
- get cssModifiers() {
3223
- return {
3224
- [`digi-expandable-accordion--expanded-${!!this.afExpanded}`]: true,
3225
- [`digi-expandable-accordion--animation-${!!this.afAnimation}`]: true,
3226
- [`digi-expandable-accordion--variation-primary`]: true,
3227
- [`digi-expandable-accordion--fullwidth`]: this.afFullWidth
3228
- };
3229
- }
3230
- /**
3231
- * Hämtar en höjden till innehållet i Utfällbar yta och animera innehållet.
3232
- * @en Gets a height to the content for expandable and animate the content.
3233
- */
3234
- componentDidLoad() {
3235
- const content = this.hostElement.querySelector(`#${this.afId}-content`);
3236
- if (!this.afExpanded) {
3237
- content.style.visibility = 'hidden';
3238
- }
3239
- else {
3240
- content.style.overflowY = 'inherit';
3241
- content.style.height = 'auto';
3242
- }
3243
- content.addEventListener('transitionend', () => {
3244
- if (!this.afExpanded) {
3245
- content.style.visibility = 'hidden';
3246
- content.style.height = '0px';
3247
- }
3248
- else {
3249
- content.style.height = 'auto';
3250
- content.style.overflowY = 'inherit';
3251
- }
3252
- });
3253
- }
3254
- animateContentHeight() {
3255
- const content = this.hostElement.querySelector(`#${this.afId}-content`);
3256
- const sectionHeight = content.firstElementChild
3257
- .offsetHeight;
3258
- if (!this.afExpanded && content.style.height === 'auto') {
3259
- content.style.height = sectionHeight + 'px';
3260
- setTimeout(() => {
3261
- content.style.height = '0';
3262
- content.style.overflowY = 'hidden';
3263
- });
3264
- return;
3265
- }
3266
- if (this.afExpanded) {
3267
- content.style.height = sectionHeight + 'px';
3268
- content.style.visibility = 'visible';
3269
- if (!this.afAnimation) {
3270
- setTimeout(() => {
3271
- content.style.height = 'auto';
3272
- content.style.overflowY = 'inherit';
3273
- });
3274
- }
3275
- }
3276
- else {
3277
- content.style.height = '0px';
3278
- }
3279
- }
3280
- clickToggleHandler(e, resetFocus = false) {
3281
- e.preventDefault();
3282
- this.afExpanded = !this.afExpanded;
3283
- if (resetFocus) {
3284
- this._button.focus();
3285
- }
3286
- this.afOnClick.emit(e);
3287
- }
3288
- render() {
3289
- return (index$1.h("article", { key: '2616819e45750577fb23f430d41b2787ca2210a5', "aria-expanded": this.afExpanded ? 'true' : 'false', class: Object.assign({ 'digi-expandable-accordion': true }, this.cssModifiers) }, index$1.h("header", { key: 'c77c15183eb4bba670ea2299d5dc3c19e243ea42', class: "digi-expandable-accordion__header" }, index$1.h(this.afHeadingLevel, { key: '20dc16774240b6d258eec3d94d4b5d9b9d0a735c', class: "digi-expandable-accordion__heading" }, index$1.h("button", { key: '23c45158f203517166cd4c5efe8801b849ea04e0', type: "button", class: "digi-expandable-accordion__button", onClick: (e) => this.clickToggleHandler(e), "aria-expanded": this.afExpanded ? 'true' : 'false', "aria-controls": `${this.afId}-content`, ref: (el) => (this._button = el) }, index$1.h("digi-icon-chevron-down", { key: 'bd48367111a6aac92061bda052ffb6708d4f3967', class: "digi-expandable-accordion__toggle-icon" }), index$1.h("div", { key: '2e419d3fd48aa8fd31f33012b541a0fd86e60d78', class: "digi-expandable-accordion__heading-text" }, this.afHeading)))), index$1.h("section", { key: 'a28657a14024836c9bb1c7e825c573ed6c598eca', class: "digi-expandable-accordion__content", id: `${this.afId}-content` }, index$1.h("div", { key: 'e13b9e653c1714adefd5401300789ed89d4cc1b3' }, index$1.h("digi-typography", { key: '335442cf9f97ec3f821ab2ca296e1539b24354cf' }, index$1.h("slot", { key: '05da2edf48d9259187bb72bf73a6c60ec9077bc0' }))))));
3290
- }
3291
- get hostElement() { return index$1.getElement(this); }
3292
- static get watchers() { return {
3293
- "afExpanded": [{
3294
- "animateContentHeight": 0
3295
- }]
3296
- }; }
3297
- };
3298
- ExpandableAccordion.style = expandableAccordionCss();
3299
-
3300
- const expandableFaqItemCss = () => `.sc-digi-expandable-faq-item-h{--digi--expandable-faq-item--header--background-color--primary:var(--digi--color--background--pop-out);--digi--expandable-faq-item--header--background-color--secondary:var(--digi--color--background--secondary);--digi--expandable-faq-item--header--background-color--tertiary:var(--digi--color--background--primary);--digi--expandable-faq-item--header--toggle-icon--transition:ease-in-out var(--digi--animation--duration--base) all;--digi--expandable-faq-item--content--transition:ease-in-out var(--digi--animation--duration--base) height;--digi--expandable-faq-item--icon--size:0.875rem;--digi--expandable-faq-item--icon--margin-right:var(--digi--margin--medium);--digi--expandable-faq-item--header--font-size:var(--digi--typography--preamble--font-size--desktop);--digi--expandable-faq-item--header--font-weight:var(--digi--typography--preamble--font-weight--desktop);--digi--expandable-faq-item--border-width:var(--digi--border-width--secondary);--digi--expandable-faq-item--border-bottom-width:var(--digi--border-width--secondary);--digi--expandable-faq-item--content--padding:var(--digi--gutter--largest-2);display:block}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--primary.sc-digi-expandable-faq-item{--BACKGROUND:var(--digi--expandable-faq-item--header--background-color--primary)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--secondary.sc-digi-expandable-faq-item{--BACKGROUND:var(--digi--expandable-faq-item--header--background-color--secondary)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--tertiary.sc-digi-expandable-faq-item{--BACKGROUND:var(--digi--expandable-faq-item--header--background-color--tertiary)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item.sc-digi-expandable-faq-item{margin-bottom:var(--digi--global--spacing--smallest-4);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--expanded.sc-digi-expandable-faq-item{border-bottom-color:var(--BACKGROUND)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item{background-color:var(--BACKGROUND);width:100%;max-width:calc(var(--digi--paragraph-width--medium) + var(--digi--padding--largest-2))}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item .digi-expandable-faq-item--fullwidth.sc-digi-expandable-faq-item{max-width:none}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header-text.sc-digi-expandable-faq-item{max-width:var(--digi--paragraph-width--medium)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h1.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h2.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h3.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h4.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h5.sc-digi-expandable-faq-item,.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header.sc-digi-expandable-faq-item h6.sc-digi-expandable-faq-item{margin:0}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon.sc-digi-expandable-faq-item{margin-right:var(--digi--expandable-faq-item--icon--margin-right);transition:var(--digi--expandable-faq-item--header--toggle-icon--transition)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon--expanded.sc-digi-expandable-faq-item{transform:rotate(-180deg)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon.sc-digi-expandable-faq-item-s>[slot^=icon],.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__header--toggle-icon .sc-digi-expandable-faq-item-s>[slot^=icon]{--digi--icon--width:var(--digi--expandable-faq-item--icon--size);--digi--icon--height:var(--digi--expandable-faq-item--icon--size)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item--fullwidth.sc-digi-expandable-faq-item .digi-expandable-faq-item__header.sc-digi-expandable-faq-item{max-width:none}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__button.sc-digi-expandable-faq-item{color:var(--digi--color--text--primary);background-color:var(--BACKGROUND);border:none;border-radius:0;padding:var(--digi--expandable-faq-item--content--padding);font-size:var(--digi--expandable-faq-item--header--font-size);font-weight:var(--digi--expandable-faq-item--header--font-weight);width:100%;display:flex;align-items:center;text-align:left;cursor:pointer;font-family:var(--digi--global--typography--font-family--default)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__button.sc-digi-expandable-faq-item:hover{text-decoration:underline}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__button.sc-digi-expandable-faq-item:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content.sc-digi-expandable-faq-item{overflow-y:hidden}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content.sc-digi-expandable-faq-item>div.sc-digi-expandable-faq-item{padding:var(--digi--expandable-faq-item--content--padding);box-sizing:border-box;max-width:var(--digi--paragraph-width--medium)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content--animation.sc-digi-expandable-faq-item{transition:var(--digi--expandable-faq-item--content--transition)}.sc-digi-expandable-faq-item-h .digi-expandable-faq-item__content--hidden.sc-digi-expandable-faq-item{height:0}`;
3301
-
3302
- const ExpandableFaqItem = class {
3303
- constructor(hostRef) {
3304
- index$1.registerInstance(this, hostRef);
3305
- this.afOnClick = index$1.createEvent(this, "afOnClick", 7);
3306
- /**
3307
- * Sätter rubriknivå. 'h3' är förvalt.
3308
- * @en Set heading level. Default is 'h3'
3309
- */
3310
- this.afHeadingLevel = typographyVariation_enum.ExpandableFaqItemHeadingLevel.H3;
3311
- /**
3312
- * Gör så att komponenten tar upp 100% i bredd av ytan den befinner sig i.
3313
- * @en Makes the component take up 100% of the width of the surface it is in.
3314
- */
3315
- this.afFullWidth = false;
3316
- /**
3317
- * Sätter läge på FAQ-frågan om den ska vara expanderad eller ej.
3318
- * @en Sets the state of the FAQ item to expanded or not.
3319
- */
3320
- this.afExpanded = false;
3321
- /**
3322
- * Sätter variant. Kan vara 'Primary' eller 'Secondary'
3323
- * @en Set variation. Can be 'Primary' or 'Secondary'
3324
- */
3325
- this.afVariation = typographyVariation_enum.ExpandableFaqItemVariation.PRIMARY;
3326
- /**
3327
- * Ställer in ifall komponenten ska ha en animation vid utfällning. Animation är påslagen som standard.
3328
- * @en Sets the state of the animation for the accordion's expanded area. Animation is on as default.
3329
- */
3330
- this.afAnimation = true;
3331
- /**
3332
- * Sätter attributet 'id'. Om inget väljs så skapas ett slumpmässigt id.
3333
- * @en Set id attribute. Defaults to random string.
3334
- */
3335
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-expandable-faq-item');
3336
- }
3337
- get cssModifiers() {
3338
- return {
3339
- 'digi-expandable-faq-item--expanded': this.afExpanded,
3340
- 'digi-expandable-faq-item--fullwidth': this.afFullWidth,
3341
- 'digi-expandable-faq-item--primary': this.afVariation === typographyVariation_enum.ExpandableFaqItemVariation.PRIMARY,
3342
- 'digi-expandable-faq-item--secondary': this.afVariation === typographyVariation_enum.ExpandableFaqItemVariation.SECONDARY,
3343
- 'digi-expandable-faq-item--tertiary': this.afVariation === typographyVariation_enum.ExpandableFaqItemVariation.TERTIARY
3344
- };
3345
- }
3346
- /**
3347
- * Hämtar en höjden till innehållet i vanliga frågor och svar och animera innehållet.
3348
- * @en Gets a height to the content for FAQ and animate the content.
3349
- */
3350
- componentDidLoad() {
3351
- const content = this.hostElement.querySelector(`#${this.afId}-content`);
3352
- if (!this.afExpanded) {
3353
- content.style.visibility = 'hidden';
3354
- }
3355
- else {
3356
- content.style.height = 'auto';
3357
- content.style.overflowY = 'inherit';
3358
- }
3359
- content.addEventListener('transitionend', () => {
3360
- if (!this.afExpanded) {
3361
- content.style.visibility = 'hidden';
3362
- content.style.height = '0px';
3363
- }
3364
- else {
3365
- content.style.height = 'auto';
3366
- content.style.overflowY = 'inherit';
3367
- }
3368
- });
3369
- }
3370
- animateContentHeight() {
3371
- const content = this.hostElement.querySelector(`#${this.afId}-content`);
3372
- const sectionHeight = content.firstElementChild
3373
- .offsetHeight;
3374
- if (!this.afExpanded && content.style.height === 'auto') {
3375
- content.style.height = sectionHeight + 'px';
3376
- setTimeout(() => {
3377
- content.style.height = '0';
3378
- content.style.overflowY = 'hidden';
3379
- });
3380
- return;
3381
- }
3382
- if (this.afExpanded) {
3383
- content.style.height = sectionHeight + 'px';
3384
- content.style.visibility = 'visible';
3385
- if (!this.afAnimation) {
3386
- setTimeout(() => {
3387
- content.style.height = 'auto';
3388
- content.style.overflowY = 'inherit';
3389
- });
3390
- }
3391
- }
3392
- else {
3393
- content.style.height = '0px';
3394
- }
3395
- }
3396
- render() {
3397
- return (index$1.h("article", { key: 'e0931c4256d2c4162911fe232132b6179968425f', "aria-expanded": this.afExpanded ? 'true' : 'false', class: Object.assign({ 'digi-expandable-faq-item': true }, this.cssModifiers) }, index$1.h("header", { key: '8f6befff5c82c63d5d1f10755f444791f17dafb7', class: "digi-expandable-faq-item__header" }, index$1.h(this.afHeadingLevel, { key: 'b9d58dcd28eb430d7b84365ba1bba99d3e86ebc9' }, index$1.h("button", { key: 'b2c20566cc84a2b4cbcbe2dcc2a35e44e8f0fcc9', type: "button", class: "digi-expandable-faq-item__button", onClick: (e) => {
3398
- e.preventDefault();
3399
- this.afExpanded = !this.afExpanded;
3400
- this.afOnClick.emit(e);
3401
- }, "aria-expanded": this.afExpanded ? 'true' : 'false', "aria-controls": `${this.afId}-content` }, index$1.h("digi-icon-chevron-down", { key: '40e0a896b3d7d44bf282e8462a24c43060a29eff', class: {
3402
- 'digi-expandable-faq-item__header--toggle-icon': true,
3403
- 'digi-expandable-faq-item__header--toggle-icon--expanded': this.afExpanded
3404
- } }), index$1.h("div", { key: 'f58aa361553f3063bf1e5171f8d320e6cb8189c6', class: "digi-expandable-faq-item__header-text" }, this.afHeading)))), index$1.h("section", { key: 'b4d0dd00a3e6fe9e8367ef5a6f197696de55f4fd', class: {
3405
- 'digi-expandable-faq-item__content': true,
3406
- 'digi-expandable-faq-item__content--animation': this.afAnimation,
3407
- 'digi-expandable-faq-item__content--hidden': !this.afExpanded
3408
- }, id: `${this.afId}-content` }, index$1.h("div", { key: 'e9a9147164d3934584cd5da5cfc8080ba9374c76' }, index$1.h("digi-typography", { key: '398a0c4e0aa1092db5f4a2e3182218ebbe0c3624' }, index$1.h("slot", { key: 'be924dc541b7c41b19b4392d3a988b492144d585' }))))));
3409
- }
3410
- get hostElement() { return index$1.getElement(this); }
3411
- static get watchers() { return {
3412
- "afExpanded": [{
3413
- "animateContentHeight": 0
3414
- }]
3415
- }; }
3416
- };
3417
- ExpandableFaqItem.style = expandableFaqItemCss();
3418
-
3419
- const formInputCss = () => `.sc-digi-form-input-h{--digi--form-input--height--small:var(--digi--input-height--small);--digi--form-input--height--medium:var(--digi--input-height--medium);--digi--form-input--height--large:var(--digi--input-height--large);--digi--form-input--border-radius:var(--digi--border-radius--input);--digi--form-input--padding:0 var(--digi--gutter--medium);--digi--form-input--background--empty:var(--digi--color--background--interactive--default--input-elements);--digi--form-input--background--neutral:var(--digi--color--background--interactive--default--input-elements);--digi--form-input--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-input--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-input--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-input--border--neutral:var(--digi--border-width--input-regular) solid;--digi--form-input--border--error:var(--digi--border-width--input-validation) solid;--digi--form-input--border--success:var(--digi--border-width--input-validation) solid;--digi--form-input--border--warning:var(--digi--border-width--input-validation) solid;--digi--form-input--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-input--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-input--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-input--border-color--error:var(--digi--color--border--interactive--validation--error)}.sc-digi-form-input-h .digi-form-input.sc-digi-form-input{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-input-h .digi-form-input--small.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--small)}.sc-digi-form-input-h .digi-form-input--medium.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--medium)}.sc-digi-form-input-h .digi-form-input--large.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--large)}.sc-digi-form-input-h .digi-form-input--neutral.sc-digi-form-input{--BORDER:var(--digi--form-input--border--neutral);--BORDER-COLOR:var(--digi--form-input--border-color--neutral);--BACKGROUND:var(--digi--form-input--background--neutral)}.sc-digi-form-input-h .digi-form-input--empty.sc-digi-form-input:not(:focus-within){--BACKGROUND:var(--digi--form-input--background--empty)}.sc-digi-form-input-h .digi-form-input--success.sc-digi-form-input{--BORDER:var(--digi--form-input--border--success);--BORDER-COLOR:var(--digi--form-input--border-color--success);--BACKGROUND:var(--digi--form-input--background--success)}.sc-digi-form-input-h .digi-form-input--warning.sc-digi-form-input{--BORDER:var(--digi--form-input--border--warning);--BORDER-COLOR:var(--digi--form-input--border-color--warning);--BACKGROUND:var(--digi--form-input--background--warning)}.sc-digi-form-input-h .digi-form-input--error.sc-digi-form-input{--BORDER:var(--digi--form-input--border--error);--BORDER-COLOR:var(--digi--form-input--border-color--error);--BACKGROUND:var(--digi--form-input--background--error)}.digi-form-input__input-wrapper.sc-digi-form-input{position:relative;display:flex}.digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{--MIN-HEIGHT:100%}.digi-form-input--button-variation-primary .digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{border-start-start-radius:0;border-end-start-radius:0}.digi-form-input--button-variation-secondary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input-wrapper.sc-digi-form-input{gap:var(--digi--gutter--medium);flex-wrap:wrap}.digi-form-input__input.sc-digi-form-input{flex:1;height:var(--HEIGHT);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--body--font-size--desktop);padding:var(--digi--form-input--padding);color:var(--digi--color--text--primary);background:var(--BACKGROUND);border:var(--BORDER);border-color:var(--BORDER-COLOR);border-radius:var(--digi--form-input--border-radius);box-sizing:border-box}.digi-form-input__input.sc-digi-form-input:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-form-input--button-variation-primary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input.sc-digi-form-input{border-end-end-radius:0;border-start-end-radius:0}`;
3420
-
3421
- const FormInput = class {
3422
- constructor(hostRef) {
3423
- index$1.registerInstance(this, hostRef);
3424
- this.afOnChange = index$1.createEvent(this, "afOnChange", 7);
3425
- this.afOnBlur = index$1.createEvent(this, "afOnBlur", 7);
3426
- this.afOnKeyup = index$1.createEvent(this, "afOnKeyup", 7);
3427
- this.afOnFocus = index$1.createEvent(this, "afOnFocus", 7);
3428
- this.afOnFocusout = index$1.createEvent(this, "afOnFocusout", 7);
3429
- this.afOnInput = index$1.createEvent(this, "afOnInput", 7);
3430
- this.afOnDirty = index$1.createEvent(this, "afOnDirty", 7);
3431
- this.afOnTouched = index$1.createEvent(this, "afOnTouched", 7);
3432
- this.afOnReady = index$1.createEvent(this, "afOnReady", 3);
3433
- this.hasActiveValidationMessage = false;
3434
- this.dirty = false;
3435
- this.touched = false;
3436
- /**
3437
- * Sätter attributet 'type'.
3438
- * @en Input type attribute
3439
- */
3440
- this.afType = formInputType_enum.FormInputType.TEXT;
3441
- /**
3442
- * Sätter attributet 'inputmode'.
3443
- * @en Inputmode type attribute
3444
- */
3445
- this.afInputmode = typographyVariation_enum.FormInputMode.DEFAULT;
3446
- /**
3447
- * Layout för hur inmatningsfältet ska visas då det finns en knapp
3448
- * @en Input layout when there is a button
3449
- */
3450
- this.afButtonVariation = formInputType_enum.FormInputButtonVariation.PRIMARY;
3451
- /**
3452
- * Sätter variant. Kan vara 'small', 'medium' eller 'large'
3453
- * @en Set input variation.
3454
- */
3455
- this.afVariation = typographyVariation_enum.FormInputVariation.MEDIUM;
3456
- /**
3457
- * Sätter attributet 'id'. Om inget väljs så skapas ett slumpmässigt id.
3458
- * @en Input id attribute. Defaults to random string.
3459
- */
3460
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-input');
3461
- /**
3462
- * Sätt denna till true om formuläret innehåller fler obligatoriska fält än valfria.
3463
- * @en Set this to true if the form contains more required fields than optional fields.
3464
- */
3465
- this.afAnnounceIfOptional = false;
3466
- /**
3467
- * Sätter valideringsstatus. Kan vara 'success', 'error', 'warning', 'neutral' eller ingenting.
3468
- * @en Set input validation status
3469
- */
3470
- this.afValidation = typographyVariation_enum.FormInputValidation.NEUTRAL;
3471
- /**
3472
- * Om värdet är true får felmeddelandet attributet role="alert".
3473
- * Om felet visas tillsammans med flera andra fel (till exempel efter servervalidering) ska värdet sättas till false.
3474
- * @en If the value is true, the error message gets the attribute role="alert".
3475
- * If the error is shown together with multiple errors (for example after server-side validation), the value should be set to false.
3476
- */
3477
- this.afErrorMessageIsAlert = true;
3478
- }
3479
- onValueChanged(value) {
3480
- this.afValue = value;
3481
- }
3482
- onAfValueChanged(value) {
3483
- this.value = value;
3484
- if (this._input && this._input.value !== String(value !== null && value !== void 0 ? value : '')) {
3485
- this._input.value = String(value !== null && value !== void 0 ? value : '');
3486
- }
3487
- }
3488
- get errorMessageIsAlert() {
3489
- return (this.afErrorMessageIsAlert !== false &&
3490
- this.afErrorMessageIsAlert !== 'false');
3491
- }
3492
- afValidationTextWatch() {
3493
- this.setActiveValidationMessage();
3494
- }
3495
- /**
3496
- * Hämtar en referens till inputelementet. Bra för att t.ex. sätta fokus programmatiskt.
3497
- * @en Returns a reference to the input element. Handy for setting focus programmatically.
3498
- */
3499
- async afMGetFormControlElement() {
3500
- return this._input;
3501
- }
3502
- /**
3503
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva input-elementet.
3504
- * @en Listens for when focus is set on the custom element and propagates it down to the actual input element.
3505
- */
3506
- focusOnInput() {
3507
- this._input.focus();
3508
- }
3509
- componentWillLoad() {
3510
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3511
- this.setActiveValidationMessage();
3512
- this.setHasButton();
3513
- }
3514
- componentWillUpdate() {
3515
- this.setHasButton();
3516
- }
3517
- componentDidLoad() {
3518
- this.afOnReady.emit();
3519
- }
3520
- setActiveValidationMessage() {
3521
- this.hasActiveValidationMessage = !!this.afValidationText;
3522
- }
3523
- get cssModifiers() {
3524
- return {
3525
- 'digi-form-input--small': this.afVariation === typographyVariation_enum.FormInputVariation.SMALL,
3526
- 'digi-form-input--medium': this.afVariation === typographyVariation_enum.FormInputVariation.MEDIUM,
3527
- 'digi-form-input--large': this.afVariation === typographyVariation_enum.FormInputVariation.LARGE,
3528
- 'digi-form-input--neutral': this.afValidation === typographyVariation_enum.FormInputValidation.NEUTRAL,
3529
- 'digi-form-input--success': this.afValidation === typographyVariation_enum.FormInputValidation.SUCCESS,
3530
- 'digi-form-input--error': this.afValidation === typographyVariation_enum.FormInputValidation.ERROR,
3531
- 'digi-form-input--warning': this.afValidation === typographyVariation_enum.FormInputValidation.WARNING,
3532
- [`digi-form-input--button-variation-${this.afButtonVariation}`]: !!this.afButtonVariation,
3533
- [`digi-form-input--has-button-${this.hasButton}`]: true,
3534
- 'digi-form-input--empty': !this.afValue &&
3535
- (!this.afValidation ||
3536
- this.afValidation === typographyVariation_enum.FormInputValidation.NEUTRAL)
3537
- };
3538
- }
3539
- blurHandler(e) {
3540
- const trimableTypes = [
3541
- formInputType_enum.FormInputType.TEXT,
3542
- formInputType_enum.FormInputType.EMAIL,
3543
- formInputType_enum.FormInputType.SEARCH,
3544
- formInputType_enum.FormInputType.TEL,
3545
- formInputType_enum.FormInputType.URL
3546
- ];
3547
- const shouldTrim = this.afTrimValue && trimableTypes.includes(this.afType);
3548
- if (shouldTrim && typeof e.target.value === 'string') {
3549
- const trimmedValue = e.target.value.trim();
3550
- if (trimmedValue !== e.target.value) {
3551
- this.afValue = this.value = trimmedValue;
3552
- if (this._input) {
3553
- this._input.value = trimmedValue;
3554
- }
3555
- // Emittar afOnInput så Angulars value accessor får det trimmade värdet
3556
- this.afOnInput.emit(e);
3557
- }
3558
- }
3559
- if (!this.touched) {
3560
- this.afOnTouched.emit(e);
3561
- this.touched = true;
3562
- }
3563
- this.afOnBlur.emit(e);
3564
- }
3565
- changeHandler(e) {
3566
- this.setActiveValidationMessage();
3567
- this.afOnChange.emit(e);
3568
- }
3569
- focusHandler(e) {
3570
- this.afOnFocus.emit(e);
3571
- }
3572
- focusoutHandler(e) {
3573
- this.afOnFocusout.emit(e);
3574
- }
3575
- keyupHandler(e) {
3576
- this.afOnKeyup.emit(e);
3577
- }
3578
- inputHandler(e) {
3579
- this.afValue = this.value =
3580
- this.afType === formInputType_enum.FormInputType.NUMBER
3581
- ? parseFloat(e.target.value)
3582
- : e.target.value;
3583
- if (!this.dirty) {
3584
- this.afOnDirty.emit(e);
3585
- this.dirty = true;
3586
- }
3587
- this.setActiveValidationMessage();
3588
- this.afOnInput.emit(e);
3589
- }
3590
- setHasButton() {
3591
- this.hasButton = !!this.hostElement.querySelector('[slot="button"]');
3592
- }
3593
- render() {
3594
- return (index$1.h(index$1.Host, { key: '2739bdd7385125581d7ea9c25a3610f5950c6a74', tabindex: -1 }, index$1.h("div", { key: '7e261c1e2fc4f37f4ddda861872a470c89181e16', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, index$1.h("digi-form-label", { key: '7e8fd283dedf0a851c714331ae640f7c74176bde', class: "digi-form-input__label", afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), index$1.h("div", { key: '68d715181c180ebaf957dfb46afb63b19b8a8188', class: "digi-form-input__input-wrapper" }, index$1.h("input", Object.assign({ key: 'e25ab871e988f9e8bd0837f75403e85f7423805f', class: "digi-form-input__input", ref: (el) => (this._input = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": `${this.afAriaDescribedby} ${this.afId}--validation-message`, "aria-labelledby": this.afAriaLabelledby, "aria-autocomplete": this.afAriaAutocomplete, "aria-invalid": this.afValidation === typographyVariation_enum.FormInputValidation.ERROR
3595
- ? 'true'
3596
- : 'false', "aria-controls": this.afAriaControls, autocomplete: this.afAutocomplete, autofocus: this.afAutofocus ? this.afAutofocus : null, maxLength: this.afMaxlength, minLength: this.afMinlength, max: this.afMax, min: this.afMin, step: this.afStep, list: this.afList, role: this.afRole, dirName: this.afDirname, required: this.afRequired, id: this.afId, name: this.afName, type: this.afType, value: this.afValue }, (this.afInputmode == typographyVariation_enum.FormInputMode.DEFAULT
3597
- ? {}
3598
- : { inputmode: this.afInputmode }))), index$1.h("slot", { key: 'c14ae079a53099fc3928bcf3ac7f5517c20b0f36', name: "button" })), index$1.h("div", { key: '75d6afa176cd8620e31c384e169b3c84a3bb584d', class: "digi-form-input__footer" }, index$1.h("div", { key: '81029d425aae06e3c72c08afe982f2ff1a7bb81d', class: "digi-form-input__validation", "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.hasActiveValidationMessage &&
3599
- this.afValidation != typographyVariation_enum.FormInputValidation.NEUTRAL && (index$1.h("digi-form-validation-message", { key: '9a8fec12db8c78a037a9b70194b32814d7641dad', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText)))))));
3600
- }
3601
- get hostElement() { return index$1.getElement(this); }
3602
- static get watchers() { return {
3603
- "value": [{
3604
- "onValueChanged": 0
3605
- }],
3606
- "afValue": [{
3607
- "onAfValueChanged": 0
3608
- }],
3609
- "afValidationText": [{
3610
- "afValidationTextWatch": 0
3611
- }]
3612
- }; }
3613
- };
3614
- FormInput.style = formInputCss();
3615
-
3616
- const formLabelCss = () => `.sc-digi-form-label-h .digi-form-label.sc-digi-form-label{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);color:var(--digi--color--text--primary);display:flex;flex-direction:column}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label{font-weight:var(--digi--typography--label--font-weight--desktop)}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label,.sc-digi-form-label-h .digi-form-label__label--description.sc-digi-form-label{line-height:var(--digi--typography--label--line-height--desktop);cursor:pointer;display:block}.sc-digi-form-label-h .digi-form-label__label-group.sc-digi-form-label{display:inline-flex;align-items:center;gap:var(--digi--gutter--icon)}.sc-digi-form-label-h .digi-form-label__description.sc-digi-form-label{max-width:var(--digi--paragraph-width--medium);line-height:var(--digi--typography--label-description--line-height--desktop);font-size:var(--digi--typography--label-description--font-size--desktop)}`;
3617
-
3618
- const FormLabel = class {
3619
- constructor(hostRef) {
3620
- index$1.registerInstance(this, hostRef);
3621
- /**
3622
- * Sätter attributet 'id'. Om inget väljs så skapas ett slumpmässigt id.
3623
- * @en Set id attribute. Defaults to random string.
3624
- */
3625
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-label');
3626
- /**
3627
- * Sätt denna till true om formuläret innehåller fler obligatoriska fält än valfria.
3628
- * @en Set this to true if the form contains more required fields than optional fields.
3629
- */
3630
- this.afAnnounceIfOptional = false;
3631
- /**
3632
- * Sätter text för afRequired.
3633
- * @en Set text for afRequired.
3634
- */
3635
- this.afRequiredText = text._t.required.toLowerCase();
3636
- /**
3637
- * Sätter text för afAnnounceIfOptional.
3638
- * @en Set text for afAnnounceIfOptional.
3639
- */
3640
- this.afAnnounceIfOptionalText = text._t.optional.toLowerCase();
3641
- }
3642
- componentWillLoad() {
3643
- this.setLabelText();
3644
- this.validateFor();
3645
- this.handleSlotVisibility();
3646
- }
3647
- validateFor() {
3648
- if (this.afFor == null) {
3649
- logger_util.logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
3650
- }
3651
- }
3652
- setLabelText() {
3653
- this.labelText = `${this.afLabel} ${this.requiredText}`;
3654
- if (!this.afLabel) {
3655
- logger_util.logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
3656
- }
3657
- }
3658
- handleSlotVisibility() {
3659
- this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
3660
- }
3661
- get requiredText() {
3662
- if (this.afRequired && !this.afAnnounceIfOptional) {
3663
- return this.afRequiredText ? ` (${this.afRequiredText})` : '';
3664
- }
3665
- else if (!this.afRequired && this.afAnnounceIfOptional) {
3666
- return this.afAnnounceIfOptionalText
3667
- ? ` (${this.afAnnounceIfOptionalText})`
3668
- : '';
3669
- }
3670
- else {
3671
- return '';
3672
- }
3673
- }
3674
- render() {
3675
- return (index$1.h("div", { key: 'ac9aec4d1d20cc37694af578a97a16a17291c9f3', class: "digi-form-label" }, index$1.h("div", { key: 'bf27c3012d1973798095e6b832572fc20863c5f1', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (index$1.h("label", { key: '75435e49548e4fa27330a35b033689a0ed9e99a7', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, index$1.h("span", { key: '0527ddcebbd2a1b215f42eaed06ba7fc28633d43', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (index$1.h("span", { key: '8a3b3e6a0ec0a97adb0760b390f0ddb34b3e0b87', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (index$1.h("div", { key: 'f2e6ad691a5cbc57b990416097454a393da35c01', class: "digi-form-label__actions" }, index$1.h("slot", { key: '1fab5cca94da7ad0f2b617db7f713d3b4d17c52d', name: "actions" }))))));
3676
- }
3677
- get hostElement() { return index$1.getElement(this); }
3678
- static get watchers() { return {
3679
- "afFor": [{
3680
- "validateFor": 0
3681
- }],
3682
- "afLabel": [{
3683
- "setLabelText": 0
3684
- }],
3685
- "afRequired": [{
3686
- "setLabelText": 0
3687
- }],
3688
- "afAnnounceIfOptional": [{
3689
- "setLabelText": 0
3690
- }]
3691
- }; }
3692
- };
3693
- FormLabel.style = formLabelCss();
3694
-
3695
- const formSelectCss = () => `.sc-digi-form-select-h{--digi--form-select--background--empty:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--neutral:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-select--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-select--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-select--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-select--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-select--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-select--border-color--error:var(--digi--color--border--interactive--validation--error);--digi--form-select--select-wrapper--position:relative;--digi--form-select--select--height--small:var(--digi--input-height--small);--digi--form-select--select--height--medium:var(--digi--input-height--medium);--digi--form-select--select--height--large:var(--digi--input-height--large);--digi--form-select--select--border-radius:var(--digi--border-radius--input);--digi--form-select--select--padding:0 var(--digi--gutter--medium);--digi--form-select--select--padding--inline-end:var(--digi--padding--large);--digi--form-select--select--border-width--neutral:var(--digi--border-width--input-regular);--digi--form-select--select--border-width--success:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--error:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--warning:var(--digi--border-width--input-validation);--digi--form-select--select--width:100%;--digi--form-select--select--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--select-option--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--label--margin-bottom:var(--digi--gutter--medium);--digi--form-select--icon--inline-end:0.75rem;--digi--form-select--icon--top:50%;--digi--form-select--icon--transform:translateY(-50%);--digi--form-select--icon--color:var(--digi--color--icon--primary);--digi--form-select--footer--margin-top:var(--digi--gutter--medium)}.sc-digi-form-select-h .digi-form-select.sc-digi-form-select{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-select-h .digi-form-select--neutral.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--neutral);--BORDER-COLOR:var(--digi--form-select--border-color--neutral);--BACKGROUND:var(--digi--form-select--background--neutral)}.sc-digi-form-select-h .digi-form-select--success.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--success);--BORDER-COLOR:var(--digi--form-select--border-color--success);--BACKGROUND:var(--digi--form-select--background--success)}.sc-digi-form-select-h .digi-form-select--warning.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--warning);--BORDER-COLOR:var(--digi--form-select--border-color--warning);--BACKGROUND:var(--digi--form-select--background--warning)}.sc-digi-form-select-h .digi-form-select--error.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--error);--BORDER-COLOR:var(--digi--form-select--border-color--error);--BACKGROUND:var(--digi--form-select--background--error)}.sc-digi-form-select-h .digi-form-select--small.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--small)}.sc-digi-form-select-h .digi-form-select--medium.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--medium)}.sc-digi-form-select-h .digi-form-select--large.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--large)}.sc-digi-form-select-h .digi-form-select--empty.sc-digi-form-select:not(:focus-within){--BACKGROUND:var(--digi--form-select--background--empty)}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select{appearance:none;width:var(--digi--form-select--select--width);padding:var(--digi--form-select--select--padding);padding-inline-end:var(--digi--form-select--select--padding--inline-end);height:var(--HEIGHT);border:var(--BORDER-WIDTH) solid;border-radius:var(--digi--form-select--select--border-radius);border-color:var(--BORDER-COLOR);cursor:pointer;font-size:var(--digi--form-select--select--font-size);color:var(--digi--color--text--primary);background:var(--BACKGROUND);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-form-select-h .digi-form-select__select-wrapper.sc-digi-form-select{position:var(--digi--form-select--select-wrapper--position)}.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{font-size:var(--digi--form-select--select-option--font-size)}@media (min-width: 48rem){.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{--digi--form-select--select-option--font-size:var(--digi--typography--font-size--l)}}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select::-ms-expand{display:none}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-form-select-h .digi-form-select__icon.sc-digi-form-select{position:absolute;inset-inline-end:var(--digi--form-select--icon--inline-end);inset-block-start:var(--digi--form-select--icon--top);transform:var(--digi--form-select--icon--transform);pointer-events:none;color:var(--digi--form-select--icon--color)}.digi-form-select--neutral.sc-digi-form-select .digi-form-select__footer.sc-digi-form-select{position:absolute}`;
3696
-
3697
- const FormSelect = class {
3698
- constructor(hostRef) {
3699
- index$1.registerInstance(this, hostRef);
3700
- this.afOnChange = index$1.createEvent(this, "afOnChange", 7);
3701
- this.afOnSelect = index$1.createEvent(this, "afOnSelect", 7);
3702
- this.afOnFocus = index$1.createEvent(this, "afOnFocus", 7);
3703
- this.afOnFocusout = index$1.createEvent(this, "afOnFocusout", 7);
3704
- this.afOnBlur = index$1.createEvent(this, "afOnBlur", 7);
3705
- this.afOnDirty = index$1.createEvent(this, "afOnDirty", 7);
3706
- this.afOnReady = index$1.createEvent(this, "afOnReady", 3);
3707
- this.optionItems = [];
3708
- this.dirty = false;
3709
- this.touched = false;
3710
- this.hasPlaceholder = false;
3711
- /**
3712
- * Normalt betonas ett obligatoriskt fält visuellt och semantiskt.
3713
- * Detta vänder på det och betonar fältet om det inte krävs.
3714
- * Ställ in detta till sant om ditt formulär innehåller fler obligatoriska fält än inte.
3715
- * @en Normally a required field is visually and semantically emphasized.
3716
- * This flips that and emphasizes the field if it is not required.
3717
- * Set this to true if your form contains more required fields than not.
3718
- */
3719
- this.afAnnounceIfOptional = false;
3720
- /**
3721
- * Sätter ett id attribut.
3722
- * @en Sets an id attribute. Standard är slumpmässig sträng.
3723
- */
3724
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-select');
3725
- /**
3726
- * Sätter väljarens storlek.
3727
- * @en Set select input size.
3728
- */
3729
- this.afVariation = typographyVariation_enum.FormSelectVariation.MEDIUM;
3730
- /**
3731
- * Sätter väljarens validering
3732
- * @en Set select validation
3733
- */
3734
- this.afValidation = typographyVariation_enum.FormSelectValidation.NEUTRAL;
3735
- /**
3736
- * Om värdet är true får felmeddelandet attributet role="alert".
3737
- * Om felet visas tillsammans med flera andra fel (till exempel efter servervalidering) ska värdet sättas till false.
3738
- * @en If the value is true, the error message gets the attribute role="alert".
3739
- * If the error is shown together with multiple errors (for example after server-side validation), the value should be set to false.
3740
- */
3741
- this.afErrorMessageIsAlert = true;
3742
- }
3743
- onValueChanged(value) {
3744
- this.afValue = value;
3745
- }
3746
- onAfValueChanged(value) {
3747
- this.value = value;
3748
- }
3749
- get errorMessageIsAlert() {
3750
- return (this.afErrorMessageIsAlert !== false &&
3751
- this.afErrorMessageIsAlert !== 'false');
3752
- }
3753
- getOptions() {
3754
- this.checkIfPlaceholder();
3755
- const options = Array.from(this.hostElement.querySelectorAll('option')).filter((el) => { var _a; return !((_a = this._select) === null || _a === void 0 ? void 0 : _a.contains(el)); });
3756
- const updatedOptionItems = options.map((el) => ({
3757
- value: el.value,
3758
- text: el.text
3759
- }));
3760
- if (JSON.stringify(updatedOptionItems) === JSON.stringify(this.optionItems)) {
3761
- return;
3762
- }
3763
- this.optionItems = updatedOptionItems;
3764
- }
3765
- checkIfPlaceholder() {
3766
- this.hasPlaceholder = !!this.afPlaceholder;
3767
- }
3768
- componentWillLoad() {
3769
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3770
- }
3771
- componentDidLoad() {
3772
- this.optionsObserver = new MutationObserver(() => this.getOptions());
3773
- this.optionsObserver.observe(this.hostElement, {
3774
- childList: true,
3775
- subtree: true
3776
- });
3777
- this.getOptions();
3778
- this.afOnReady.emit();
3779
- }
3780
- disconnectedCallback() {
3781
- var _a;
3782
- (_a = this.optionsObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
3783
- }
3784
- /**
3785
- * Returnerar en referens till formulärkontrollelementet.
3786
- * @en Returns a reference to the form control element.
3787
- */
3788
- async afMGetFormControlElement() {
3789
- return this._select;
3790
- }
3791
- /**
3792
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva select-elementet.
3793
- * @en Listens for when focus is set on the custom element and propagates it down to the actual select element.
3794
- */
3795
- focusOnInput() {
3796
- var _a;
3797
- (_a = this._select) === null || _a === void 0 ? void 0 : _a.focus();
3798
- }
3799
- get cssModifiers() {
3800
- return {
3801
- 'digi-form-select--small': this.afVariation === typographyVariation_enum.FormSelectVariation.SMALL,
3802
- 'digi-form-select--medium': this.afVariation === typographyVariation_enum.FormSelectVariation.MEDIUM,
3803
- 'digi-form-select--large': this.afVariation === typographyVariation_enum.FormSelectVariation.LARGE,
3804
- 'digi-form-select--neutral': this.afValidation === typographyVariation_enum.FormSelectValidation.NEUTRAL,
3805
- 'digi-form-select--success': this.afValidation === typographyVariation_enum.FormSelectValidation.SUCCESS,
3806
- 'digi-form-select--warning': this.afValidation === typographyVariation_enum.FormSelectValidation.WARNING,
3807
- 'digi-form-select--error': this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR,
3808
- 'digi-form-select--empty': !this.afValue &&
3809
- (!this.afValidation ||
3810
- this.afValidation === typographyVariation_enum.FormSelectValidation.NEUTRAL)
3811
- };
3812
- }
3813
- changeHandler(e) {
3814
- if (!this.dirty) {
3815
- this.afOnDirty.emit(e);
3816
- this.dirty = true;
3817
- }
3818
- this.value = this.afValue = e.target.value;
3819
- this.afOnChange.emit(e);
3820
- }
3821
- selectHandler(e) {
3822
- this.value = this.afValue = e.target.value;
3823
- this.afOnSelect.emit(e);
3824
- }
3825
- focusHandler(e) {
3826
- this.afOnFocus.emit(e);
3827
- }
3828
- focusoutHandler(e) {
3829
- this.afOnFocusout.emit(e);
3830
- }
3831
- blurHandler(e) {
3832
- this.afOnBlur.emit(e);
3833
- }
3834
- getSelectedItem(option) {
3835
- return this.afValue == option.value;
3836
- }
3837
- showValidation() {
3838
- return !this.afDisableValidation &&
3839
- this.afValidation !== typographyVariation_enum.FormSelectValidation.NEUTRAL &&
3840
- this.afValidationText
3841
- ? true
3842
- : false;
3843
- }
3844
- render() {
3845
- return (index$1.h(index$1.Host, { key: 'b40fb54f41ae0b739a943d600624889b604865b2', tabindex: -1 }, index$1.h("div", { key: 'e753b10a46503f6711b35dd1d30b8be59296cc0b', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, index$1.h("div", { key: 'a820eb5ffec3ac101febd080add2ddf9aa537c21', class: "digi-form-select__label-group" }, index$1.h("digi-form-label", { key: 'ad8616ae6b48a6e10c2827a7d00d51daa44129ec', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), index$1.h("div", { key: 'ffe072a753cfe6a7f6afd300e34f8aff9ec4fc2a', class: "digi-form-select__select-wrapper" }, index$1.h("select", { key: '204dbc6361c6fb0a0ae0265cdd05db1888380c6d', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR
3846
- ? 'true'
3847
- : 'false', "aria-describedby": `${this.afId}--validation-message`, ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (index$1.h("option", { key: '0f4675533c05c4e6a2f3dd7b502676aa6354c001', class: {
3848
- 'digi-form-select__select-option': true,
3849
- 'digi-form-select__select-option--initial-value': true
3850
- }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
3851
- return (index$1.h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
3852
- })), index$1.h("digi-icon-input-select-marker", { key: '13c14346d06dbf9d67bedfcb45300ee0cd7921e4', class: "digi-form-select__icon", slot: "icon" })), index$1.h("div", { key: '9a88dda5d1d981016bb17a053d913eadd89e5e07', hidden: true }, index$1.h("slot", { key: '9b6cc012b2c0fead2a1e70441abebbb28364b450' })), index$1.h("div", { key: '1f13d6ddaf2a9d78a7c66c242bfe5ac35cf2c961', class: "digi-form-select__footer" }, index$1.h("div", { key: '6ba7c2aea4196e0e1b646e22ca9d14be65540ccb', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (index$1.h("digi-form-validation-message", { key: 'eee53a1c30af8d43e8f60d3c85764f65d335e9ec', "af-variation": this.afValidation }, this.afValidationText)))))));
3853
- }
3854
- get hostElement() { return index$1.getElement(this); }
3855
- static get watchers() { return {
3856
- "value": [{
3857
- "onValueChanged": 0
3858
- }],
3859
- "afValue": [{
3860
- "onAfValueChanged": 0
3861
- }]
3862
- }; }
3863
- };
3864
- FormSelect.style = formSelectCss();
3865
-
3866
- const formValidationMessageCss = () => `.sc-digi-form-validation-message-h{--digi--form-validation-message--icon-color--success:var(--digi--color--icon--validation--success);--digi--form-validation-message--icon-color--warning:var(--digi--color--icon--validation--warning);--digi--form-validation-message--icon-color--error:var(--digi--color--icon--validation--error)}.sc-digi-form-validation-message-h .digi-form-validation-message.sc-digi-form-validation-message{display:flex;flex-wrap:wrap;align-items:center}.sc-digi-form-validation-message-h .digi-form-validation-message--success.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--success)}.sc-digi-form-validation-message-h .digi-form-validation-message--warning.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--warning)}.sc-digi-form-validation-message-h .digi-form-validation-message--error.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--error)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message{color:var(--ICON-COLOR);margin-inline-end:var(--digi--gutter--icon)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message>*.sc-digi-form-validation-message{--digi--icon--width:1.25em;--digi--icon--height:1.25em;--digi--icon--color:var(--ICON-COLOR);display:flex}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message .warning.sc-digi-form-validation-message{top:3px;position:relative}.sc-digi-form-validation-message-h .digi-form-validation-message__text.sc-digi-form-validation-message{flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);color:var(--digi--color--text--primary)}`;
3867
-
3868
- const FormValidationMessage = class {
3869
- constructor(hostRef) {
3870
- index$1.registerInstance(this, hostRef);
3871
- /**
3872
- * Sätter valideringsstatus. Kan vara 'success', 'error' eller 'warning'.
3873
- * @en Set validation status
3874
- */
3875
- this.afVariation = formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS;
3876
- }
3877
- get cssModifiers() {
3878
- return {
3879
- 'digi-form-validation-message--success': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS,
3880
- 'digi-form-validation-message--error': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.ERROR,
3881
- 'digi-form-validation-message--warning': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.WARNING
3882
- };
3883
- }
3884
- get icon() {
3885
- switch (this.afVariation) {
3886
- case formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS:
3887
- return index$1.h("digi-icon-validation-success", null);
3888
- case formValidationMessageVariation_enum.FormValidationMessageVariation.ERROR:
3889
- return index$1.h("digi-icon-validation-error", null);
3890
- case formValidationMessageVariation_enum.FormValidationMessageVariation.WARNING:
3891
- return index$1.h("digi-icon-validation-warning", { class: "warning" });
3892
- }
3893
- }
3894
- render() {
3895
- return (index$1.h("div", { key: '5c89cb2cfe7085ec0203814f2c7a43c9fe518db4', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, index$1.h("div", { key: 'cb85b6a6e02b081710f80ad7bbbe96e182d8c353', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), index$1.h("span", { key: '9b1689dcad19fd3f033c679f496a1c94348f393b', class: "digi-form-validation-message__text" }, index$1.h("slot", { key: '794c1b1c0771cae8c0b19bd7123f7f5bc28e99b7' }))));
3896
- }
3897
- get hostElement() { return index$1.getElement(this); }
3898
- };
3899
- FormValidationMessage.style = formValidationMessageCss();
3900
-
3901
- 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)}`;
3902
-
3903
- const IconCalendarAlt = class {
3904
- constructor(hostRef) {
3905
- index$1.registerInstance(this, hostRef);
3906
- /**
3907
- * För att dölja ikonen för skärmläsare. Default är satt till true.
3908
- * @en Hides the icon for screen readers. Default is set to true.
3909
- */
3910
- this.afSvgAriaHidden = true;
3911
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3912
- }
3913
- render() {
3914
- return (index$1.h("svg", { key: '51b9d922462d3ad108545dbe7df4bf805334b0ef', class: "digi-icon-calendar-alt", width: "22", height: "26", viewBox: "0 0 22 26", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3915
- ? this.afSvgAriaLabelledby
3916
- : this.afTitle
3917
- ? this.titleId
3918
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index$1.h("title", { key: '0cf10651a3b238c59bc9f342cec98ff7c2a967e7', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'a7826ce588a9bd9580c3f45a20834ff4e66a3620' }, this.afDesc), index$1.h("path", { key: '0854e6fc47b9a773f3d902e557535765d973252a', 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" })));
3919
- }
3920
- };
3921
- IconCalendarAlt.style = iconCalendarAltCss();
3922
-
3923
- const iconChevronDownCss = () => `.sc-digi-icon-chevron-down-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-chevron-down-h svg.sc-digi-icon-chevron-down{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)}`;
3924
-
3925
- const IconChevronDown = class {
3926
- constructor(hostRef) {
3927
- index$1.registerInstance(this, hostRef);
3928
- /**
3929
- * För att dölja ikonen för skärmläsare. Default är satt till true.
3930
- * @en Hides the icon for screen readers. Default is set to true.
3931
- */
3932
- this.afSvgAriaHidden = true;
3933
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3934
- }
3935
- render() {
3936
- return (index$1.h("svg", { key: '14c50bb9ce94f2ae7e6b89e99417668515a0e1fa', class: "digi-icon-chevron-down", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3937
- ? this.afSvgAriaLabelledby
3938
- : this.afTitle
3939
- ? this.titleId
3940
- : undefined }, this.afTitle && index$1.h("title", { key: '4692fea634337c2e89e5eeac67c707c84f919563', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '3948943affb34ebc1967aeb54389b0c3230e6daf' }, this.afDesc), index$1.h("path", { key: '252f72d574b43e0d794341fa05f5a2cf39cedb4d', class: "digi-icon-chevron-down__shape", d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3941
- }
3942
- };
3943
- IconChevronDown.style = iconChevronDownCss();
3944
-
3945
- const iconChevronLeftCss = () => `.sc-digi-icon-chevron-left-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-chevron-left-h svg.sc-digi-icon-chevron-left{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)}`;
3946
-
3947
- const IconChevronLeft = class {
3948
- constructor(hostRef) {
3949
- index$1.registerInstance(this, hostRef);
3950
- /**
3951
- * För att dölja ikonen för skärmläsare. Default är satt till true.
3952
- * @en Hides the icon for screen readers. Default is set to true.
3953
- */
3954
- this.afSvgAriaHidden = true;
3955
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3956
- }
3957
- render() {
3958
- return (index$1.h("svg", { key: 'def846a254699c1487c6650595a307d69570b03b', class: "digi-icon-chevron-left", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3959
- ? this.afSvgAriaLabelledby
3960
- : this.afTitle
3961
- ? this.titleId
3962
- : undefined }, this.afTitle && index$1.h("title", { key: '07e54926302b1524b1040b2a807060670448c0f8', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'af3cae8cfe1b8451e4698e1ec43aeb52122d0f81' }, this.afDesc), index$1.h("path", { key: 'd98281b3481fbbc3853c5a34d1fdd35f58b0056c', class: "digi-icon-chevron-left__shape", d: "M8 13L2 6.926 7.853 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3963
- }
3964
- };
3965
- IconChevronLeft.style = iconChevronLeftCss();
3966
-
3967
- const iconChevronRightCss = () => `.sc-digi-icon-chevron-right-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-chevron-right-h svg.sc-digi-icon-chevron-right{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)}`;
3968
-
3969
- const IconChevronRight = class {
3970
- constructor(hostRef) {
3971
- index$1.registerInstance(this, hostRef);
3972
- /**
3973
- * För att dölja ikonen för skärmläsare. Default är satt till true.
3974
- * @en Hides the icon for screen readers. Default is set to true.
3975
- */
3976
- this.afSvgAriaHidden = true;
3977
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3978
- }
3979
- render() {
3980
- return (index$1.h("svg", { key: '8a7349c8865c737830b6af0e3ea9aa7c6bd50f6f', class: "digi-icon-chevron-right", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3981
- ? this.afSvgAriaLabelledby
3982
- : this.afTitle
3983
- ? this.titleId
3984
- : undefined }, this.afTitle && index$1.h("title", { key: '83176271f8248b1ad42e1e5baf2f31ddc244cb0a', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'c22c051704141e87412e98ab3733afab36bf0bf3' }, this.afDesc), index$1.h("path", { key: '5f3f04a5512ca21c49e25797401bf68ac726c9d7', class: "digi-icon-chevron-right__shape", d: "M1 13l6-6.074L1.147 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3985
- }
3986
- };
3987
- IconChevronRight.style = iconChevronRightCss();
3988
-
3989
- const iconInputSelectMarkerCss = () => `.sc-digi-icon-input-select-marker-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-input-select-marker-h svg.sc-digi-icon-input-select-marker{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)}`;
3990
-
3991
- const IconInputSelectMarker = class {
3992
- constructor(hostRef) {
3993
- index$1.registerInstance(this, hostRef);
3994
- /**
3995
- * För att dölja ikonen för skärmläsare. Default är satt till true.
3996
- * @en Hides the icon for screen readers. Default is set to true.
3997
- */
3998
- this.afSvgAriaHidden = true;
3999
- this.titleId = randomIdGenerator_util.randomIdGenerator('icon-input-select-marker');
4000
- }
4001
- render() {
4002
- return (index$1.h("svg", { key: '3a27d862f015acdf222435b2abcf67f1a6c312f7', class: "digi-icon-input-select-marker", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
4003
- ? this.afSvgAriaLabelledby
4004
- : this.afTitle
4005
- ? this.titleId
4006
- : undefined }, this.afTitle && index$1.h("title", { key: '88b3c6625077baef962e3851804f50700191b43a', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'fd1b1225f6bfbc57e34126608b3fd91143253758' }, this.afDesc), index$1.h("path", { key: 'e83bfd8eef85f4e2f5c5171dd1d08a44d611fdea', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
4007
- }
4008
- };
4009
- IconInputSelectMarker.style = iconInputSelectMarkerCss();
4010
-
4011
- const iconValidationErrorCss = () => `.sc-digi-icon-validation-error-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-validation-error-h svg.sc-digi-icon-validation-error{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)}`;
4012
-
4013
- const IconValidationError = class {
4014
- constructor(hostRef) {
4015
- index$1.registerInstance(this, hostRef);
4016
- /**
4017
- * För att dölja ikonen för skärmläsare. Default är satt till true.
4018
- * @en Hides the icon for screen readers. Default is set to true.
4019
- */
4020
- this.afSvgAriaHidden = true;
4021
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
4022
- }
4023
- render() {
4024
- return (index$1.h("svg", { key: 'b20fb61395f90adad2b9e5be72d3e2ea3c5a3feb', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
4025
- ? this.afSvgAriaLabelledby
4026
- : this.afTitle
4027
- ? this.titleId
4028
- : undefined }, this.afTitle && index$1.h("title", { key: '5e08a1b947d534b913fff06e02109b53c607a0be', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'f016b92eb4957943a5308d12db1ce2f1b73fae3f' }, this.afDesc), index$1.h("path", { key: 'f5ba662eeb6689959a6990ae2e880edc42670490', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
4029
- }
4030
- };
4031
- IconValidationError.style = iconValidationErrorCss();
4032
-
4033
- const iconValidationSuccessCss = () => `.sc-digi-icon-validation-success-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-validation-success-h svg.sc-digi-icon-validation-success{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)}`;
4034
-
4035
- const IconCheckCircle = class {
4036
- constructor(hostRef) {
4037
- index$1.registerInstance(this, hostRef);
4038
- /**
4039
- * För att dölja ikonen för skärmläsare. Default är satt till true.
4040
- * @en Hides the icon for screen readers. Default is set to true.
4041
- */
4042
- this.afSvgAriaHidden = true;
4043
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
4044
- }
4045
- render() {
4046
- return (index$1.h("svg", { key: '1c9dcaf014e400504cbce24f69c67bdbb1dc0361', class: "digi-icon-validation-success", width: "25", height: "25", viewBox: "0 0 25 25", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
4047
- ? this.afSvgAriaLabelledby
4048
- : this.afTitle
4049
- ? this.titleId
4050
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index$1.h("title", { key: 'ed5b4d39b987b025d99ef2ce2153a8de749f587e', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '7c5175b745577dd9076170ba83fa00f8cc03c4a2' }, this.afDesc), index$1.h("path", { key: 'f9cb601de2dfbf7959b2b43023692e111f1fbf91', class: "digi-icon-validation-success__shape", d: "M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z", fill: "currentColor", "fill-rule": "nonzero" })));
4051
- }
4052
- };
4053
- IconCheckCircle.style = iconValidationSuccessCss();
4054
-
4055
- const iconValidationWarningCss = () => `.sc-digi-icon-validation-warning-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-validation-warning-h svg.sc-digi-icon-validation-warning{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)}`;
4056
-
4057
- const IconValidationWarning = class {
4058
- constructor(hostRef) {
4059
- index$1.registerInstance(this, hostRef);
4060
- /**
4061
- * För att dölja ikonen för skärmläsare. Default är satt till true.
4062
- * @en Hides the icon for screen readers. Default is set to true.
4063
- */
4064
- this.afSvgAriaHidden = true;
4065
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
4066
- }
4067
- render() {
4068
- return (index$1.h("div", { key: '7017a09730cca2dafe42548b11d18e34a693f81b' }, index$1.h("svg", { key: 'd56b196f88aaf6dd87bb416e422d399667e80202', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
4069
- ? this.afSvgAriaLabelledby
4070
- : this.afTitle
4071
- ? this.titleId
4072
- : undefined }, this.afTitle && index$1.h("title", { key: '25751b0fd552d8dcabc3402345ba8528126dd973', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '41476cbdf1b92dd9b7c44d8791481a5cf00186ca' }, this.afDesc), index$1.h("g", { key: '6607df5c4713e5680fcaa2e9ea29b7cab5064e3d', fill: "none", "fill-rule": "evenodd" }, index$1.h("circle", { key: 'c87e6472093671bc2f1f6b3d7eb0b34f512468c1', cx: "9", cy: "9", r: "6.75", fill: "#333" }), index$1.h("path", { key: '17b79d3e780ecbb2394b38586388ea457c65a2f7', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
4073
- }
4074
- };
4075
- IconValidationWarning.style = iconValidationWarningCss();
4076
-
4077
- const typographyCss = () => `digi-typography{--digi--typography--h1--margin--small:var(--digi--margin--h1-small);--digi--typography--h1--margin--medium:var(--digi--margin--h1-medium);--digi--typography--h1--margin--large:var(--digi--margin--h1-large);--digi--typography--h2--margin--small:var(--digi--margin--h2-small);--digi--typography--h2--margin--large:var(--digi--margin--h2-large);--digi--typography--h3--margin--small:var(--digi--margin--h3-small);--digi--typography--h3--margin--large:var(--digi--margin--h3-large);--digi--typography--h4--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h4--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--h5--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h6--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--paragraph--margin--small:var(--digi--margin--text-small);--digi--typography--paragraph--margin--large:var(--digi--margin--text-large);--digi--typography--paragraph--margin-top:initial;--digi--typography--color--text:var(--digi--color--text--primary);--digi--typography--text-decoration-thickness--hover:0.156em;--digi--typography--text-decoration-thickness--default:0.05em;--digi--typography--text-underline-offset:3px;font-family:var(--digi--global--typography--font-family--default);color:var(--digi--typography--color--text);font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);--FONT-SIZE--BODY:var(--digi--typography--body--font-size--mobile);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--mobile);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--mobile);--TEXT-DECORATION--BODY:var( --digi--typography--body--text-decoration--mobile );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--mobile);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--mobile);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--mobile);--TEXT-DECORATION--LINK:var( --digi--typography--link--text-decoration--mobile );--FONT-SIZE--HEADING-1:var(--digi--typography--heading-1--font-size--mobile);--LINE-HEIGHT--HEADING-1:var( --digi--typography--heading-1--line-height--mobile );--FONT-WEIGHT--HEADING-1:var( --digi--typography--heading-1--font-weight--mobile );--TEXT-DECORATION--HEADING-1:var( --digi--typography--heading-1--text-decoration--mobile );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--small);--FONT-SIZE--HEADING-2:var(--digi--typography--heading-2--font-size--mobile);--LINE-HEIGHT--HEADING-2:var( --digi--typography--heading-2--line-height--mobile );--FONT-WEIGHT--HEADING-2:var( --digi--typography--heading-2--font-weight--mobile );--TEXT-DECORATION--HEADING-2:var( --digi--typography--heading-2--text-decoration--mobile );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(--digi--typography--heading-3--font-size--mobile);--LINE-HEIGHT--HEADING-3:var( --digi--typography--heading-3--line-height--mobile );--FONT-WEIGHT--HEADING-3:var( --digi--typography--heading-3--font-weight--mobile );--TEXT-DECORATION--HEADING-3:var( --digi--typography--heading-3--text-decoration--mobile );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-4:var( --digi--typography--heading-4--line-height--mobile );--FONT-WEIGHT--HEADING-4:var( --digi--typography--heading-4--font-weight--mobile );--TEXT-DECORATION--HEADING-4:var( --digi--typography--heading-4--text-decoration--mobile );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-5:var( --digi--typography--heading-4--line-height--mobile );--FONT-WEIGHT--HEADING-5:var( --digi--typography--heading-4--font-weight--mobile );--TEXT-DECORATION--HEADING-5:var( --digi--typography--heading-4--text-decoration--mobile );--MARGIN--HEADING-5:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-6:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-6:var( --digi--typography--heading-4--line-height--mobile );--FONT-WEIGHT--HEADING-6:var( --digi--typography--heading-4--font-weight--mobile );--TEXT-DECORATION--HEADING-6:var( --digi--typography--heading-4--text-decoration--mobile );--MARGIN--HEADING-6:var(--digi--typography--h4--margin--small)}@media (min-width: 61.9375rem){digi-typography{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var( --digi--typography--body--text-decoration--desktop );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var( --digi--typography--link--text-decoration--desktop );--FONT-SIZE--HEADING-1:var( --digi--typography--heading-1--font-size--desktop );--LINE-HEIGHT--HEADING-1:var( --digi--typography--heading-1--line-height--desktop );--FONT-WEIGHT--HEADING-1:var( --digi--typography--heading-1--font-weight--desktop );--TEXT-DECORATION--HEADING-1:var( --digi--typography--heading-1--text-decoration--desktop );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var( --digi--typography--heading-2--font-size--desktop );--LINE-HEIGHT--HEADING-2:var( --digi--typography--heading-2--line-height--desktop );--FONT-WEIGHT--HEADING-2:var( --digi--typography--heading-2--font-weight--desktop );--TEXT-DECORATION--HEADING-2:var( --digi--typography--heading-2--text-decoration--desktop );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var( --digi--typography--heading-3--font-size--desktop );--LINE-HEIGHT--HEADING-3:var( --digi--typography--heading-3--line-height--desktop );--FONT-WEIGHT--HEADING-3:var( --digi--typography--heading-3--font-weight--desktop );--TEXT-DECORATION--HEADING-3:var( --digi--typography--heading-3--text-decoration--desktop );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var( --digi--typography--heading-4--font-size--desktop );--LINE-HEIGHT--HEADING-4:var( --digi--typography--heading-4--line-height--desktop );--FONT-WEIGHT--HEADING-4:var( --digi--typography--heading-4--font-weight--desktop );--TEXT-DECORATION--HEADING-4:var( --digi--typography--heading-4--text-decoration--desktop );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var( --digi--typography--heading-4--font-size--desktop );--LINE-HEIGHT--HEADING-5:var( --digi--typography--heading-4--line-height--desktop );--FONT-WEIGHT--HEADING-5:var( --digi--typography--heading-4--font-weight--desktop );--TEXT-DECORATION--HEADING-5:var( --digi--typography--heading-4--text-decoration--desktop );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var( --digi--typography--heading-4--font-size--desktop );--LINE-HEIGHT--HEADING-6:var( --digi--typography--heading-4--line-height--desktop );--FONT-WEIGHT--HEADING-6:var( --digi--typography--heading-4--font-weight--desktop );--TEXT-DECORATION--HEADING-6:var( --digi--typography--heading-4--text-decoration--desktop );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}}digi-typography h1,digi-typography h2,digi-typography h3,digi-typography h4,digi-typography h5,digi-typography h6{margin-top:0;}digi-typography h1,digi-typography .digi-h1{font-size:var(--FONT-SIZE--HEADING-1);line-height:var(--LINE-HEIGHT--HEADING-1);font-weight:var(--FONT-WEIGHT--HEADING-1);text-decoration:var(--TEXT-DECORATION--HEADING-1);margin-bottom:var(--MARGIN--HEADING-1)}digi-typography h2,digi-typography .digi-h2{font-size:var(--FONT-SIZE--HEADING-2);line-height:var(--LINE-HEIGHT--HEADING-2);font-weight:var(--FONT-WEIGHT--HEADING-2);text-decoration:var(--TEXT-DECORATION--HEADING-2);margin-bottom:var(--MARGIN--HEADING-2)}digi-typography h3,digi-typography .digi-h3{font-size:var(--FONT-SIZE--HEADING-3);line-height:var(--LINE-HEIGHT--HEADING-3);font-weight:var(--FONT-WEIGHT--HEADING-3);text-decoration:var(--TEXT-DECORATION--HEADING-3);margin-bottom:var(--MARGIN--HEADING-3)}digi-typography h4,digi-typography .digi-h4{font-size:var(--FONT-SIZE--HEADING-4);line-height:var(--LINE-HEIGHT--HEADING-4);font-weight:var(--FONT-WEIGHT--HEADING-4);text-decoration:var(--TEXT-DECORATION--HEADING-4);margin-bottom:var(--MARGIN--HEADING-4)}digi-typography h5,digi-typography .digi-h5{font-size:var(--FONT-SIZE--HEADING-5);line-height:var(--LINE-HEIGHT--HEADING-5);font-weight:var(--FONT-WEIGHT--HEADING-5);text-decoration:var(--TEXT-DECORATION--HEADING-5);margin-bottom:var(--MARGIN--HEADING-5)}digi-typography h6,digi-typography .digi-h6{font-size:var(--FONT-SIZE--HEADING-6);line-height:var(--LINE-HEIGHT--HEADING-6);font-weight:var(--FONT-WEIGHT--HEADING-6);text-decoration:var(--TEXT-DECORATION--HEADING-6);margin-bottom:var(--MARGIN--HEADING-6)}digi-typography p,digi-typography blockquote{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);margin-top:initial;margin-bottom:var(--MARGIN--BODY);max-width:var(--digi--paragraph-width--medium)}digi-typography p:last-child,digi-typography blockquote:last-child{margin-bottom:0}digi-typography blockquote{margin-inline:0}digi-typography digi-typography-preamble{display:block;margin-bottom:var(--MARGIN--BODY)}digi-typography digi-typography-preamble:last-child{margin-bottom:0}digi-typography ul,digi-typography ol,digi-typography dl{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);max-width:var(--digi--paragraph-width--medium);margin-bottom:var(--MARGIN--BODY)}digi-typography ul,digi-typography ol{margin:0 0 var(--MARGIN--BODY) 0;padding-inline-start:1.5rem}digi-typography ul li,digi-typography ol li{margin-top:initial;margin-bottom:0.5rem;box-sizing:border-box;width:100%;padding-left:0}digi-typography ul li:last-child,digi-typography ol li:last-child{margin-bottom:0}digi-typography a{font-size:1em;line-height:var(--LINE-HEIGHT--LINK);font-weight:inherit;text-decoration:var(--TEXT-DECORATION--LINK);color:var(--digi--color--text--interactive--primary);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--default);text-underline-offset:var(--digi--typography--text-underline-offset)}digi-typography a:hover{text-decoration:var(--TEXT-DECORATION--LINK);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--hover)}digi-typography a:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}digi-typography a:visited{color:var(--digi--color--text--interactive--visited)}digi-typography .digi-typography--hide-visited a:visited{color:var(--digi--color--text--interactive--primary)}digi-typography strong{font-weight:var(--digi--typography--label--font-weight--desktop)}`;
4078
-
4079
- const Typography = class {
4080
- constructor(hostRef) {
4081
- index$1.registerInstance(this, hostRef);
4082
- }
4083
- get cssModifiers() {
4084
- return {
4085
- 'digi-typography--hide-visited': this.hideVisitedColor
4086
- };
4087
- }
4088
- render() {
4089
- return (index$1.h("div", { key: '2b78d2c69b94e258feb4c99d5835cc58507d7886', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, index$1.h("slot", { key: '1f952d99d2331fb09a1b6d549a6ea97440302346' })));
4090
- }
4091
- };
4092
- Typography.style = typographyCss();
4093
-
4094
- const typographyHeadingJumboCss = () => `.sc-digi-typography-heading-jumbo-h{display:block}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo{font-size:var(--digi--typography--heading-jumbo--font-size--desktop);font-family:var(--digi--global--typography--font-family--default);color:var(--digi--color--text--primary);font-weight:var(--digi--typography--heading-jumbo--font-weight--desktop)}@media (min-width: 61.9375rem){.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo{font-size:var(--digi--typography--heading-jumbo--font-size--desktop-large)}}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo--secondary.sc-digi-typography-heading-jumbo{color:var(--digi--grayscale--0)}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo::after{content:"";width:11.875rem;height:0.4375rem;background:var(--digi--color--border--accent--primary);display:block;margin-top:var(--digi--padding--small)}@media (min-width: 61.9375rem){.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo::after{width:13.75rem;margin-top:var(--digi--margin--h2-large);height:0.625rem}}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo--secondary.sc-digi-typography-heading-jumbo::after{background:var(--digi--color--border--accent--secondary)}digi-typography .sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo{margin-bottom:var(--digi--margin--medium)}`;
4095
-
4096
- const TypographyHeadingJumbo = class {
4097
- constructor(hostRef) {
4098
- index$1.registerInstance(this, hostRef);
4099
- /**
4100
- * Rubrikens text
4101
- * @en The heading text
4102
- */
4103
- this.afText = '';
4104
- /**
4105
- * Sätt rubrikens vikt. 'h1' är förvalt.
4106
- * @en Set heading level. Default is 'h1'
4107
- */
4108
- this.afLevel = typographyVariation_enum.TypographyHeadingJumboLevel.H1;
4109
- /**
4110
- * Sätt språk inuti rubrik-elementet. 'sv' (svenska) är förvalt.
4111
- * @en Set language inside of title element. Defaults to 'sv' (swedish).
4112
- */
4113
- this.afLang = 'sv';
4114
- }
4115
- /**
4116
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva rubrik-elementet.
4117
- * @en Listens for when focus is set on the custom element and propagates it down to the actual heading element.
4118
- */
4119
- focusOnHeading() {
4120
- this.headingElement.focus();
4121
- }
4122
- get cssModifiers() {
4123
- return {
4124
- 'digi-typography-heading-jumbo--primary': this.afVariation === typographyVariation_enum.TypographyHeadingJumboVariation.PRIMARY,
4125
- 'digi-typography-heading-jumbo--secondary': this.afVariation === typographyVariation_enum.TypographyHeadingJumboVariation.SECONDARY
4126
- };
4127
- }
4128
- render() {
4129
- return (index$1.h(this.afLevel, { key: 'b63f9447d1ccefc73fcd3ac26562ed4d9f106f3c', ref: (el) => (this.headingElement = el), class: Object.assign({ 'digi-typography-heading-jumbo': true }, this.cssModifiers), lang: this.afLang, tabindex: -1 }, this.afText));
4130
- }
4131
- };
4132
- TypographyHeadingJumbo.style = typographyHeadingJumboCss();
4133
-
4134
- const UtilKeydownHandler = class {
4135
- constructor(hostRef) {
4136
- index$1.registerInstance(this, hostRef);
4137
- this.afOnEsc = index$1.createEvent(this, "afOnEsc", 7);
4138
- this.afOnEnter = index$1.createEvent(this, "afOnEnter", 7);
4139
- this.afOnTab = index$1.createEvent(this, "afOnTab", 7);
4140
- this.afOnSpace = index$1.createEvent(this, "afOnSpace", 7);
4141
- this.afOnShiftTab = index$1.createEvent(this, "afOnShiftTab", 7);
4142
- this.afOnUp = index$1.createEvent(this, "afOnUp", 7);
4143
- this.afOnDown = index$1.createEvent(this, "afOnDown", 7);
4144
- this.afOnLeft = index$1.createEvent(this, "afOnLeft", 7);
4145
- this.afOnRight = index$1.createEvent(this, "afOnRight", 7);
4146
- this.afOnHome = index$1.createEvent(this, "afOnHome", 7);
4147
- this.afOnEnd = index$1.createEvent(this, "afOnEnd", 7);
4148
- this.afOnKeyDown = index$1.createEvent(this, "afOnKeyDown", 7);
4149
- }
4150
- keydownHandler(e) {
4151
- const key = keyboardHandler_util.keyboardHandler(e);
4152
- switch (key) {
4153
- case keyboardHandler_util.KEY_CODE.SHIFT_TAB:
4154
- this.afOnShiftTab.emit(e);
4155
- break;
4156
- case keyboardHandler_util.KEY_CODE.DOWN_ARROW:
4157
- this.afOnDown.emit(e);
4158
- this.afOnKeyDown.emit(e);
4159
- break;
4160
- case keyboardHandler_util.KEY_CODE.UP_ARROW:
4161
- this.afOnUp.emit(e);
4162
- this.afOnKeyDown.emit(e);
4163
- break;
4164
- case keyboardHandler_util.KEY_CODE.LEFT_ARROW:
4165
- this.afOnLeft.emit(e);
4166
- this.afOnKeyDown.emit(e);
4167
- break;
4168
- case keyboardHandler_util.KEY_CODE.RIGHT_ARROW:
4169
- this.afOnRight.emit(e);
4170
- this.afOnKeyDown.emit(e);
4171
- break;
4172
- case keyboardHandler_util.KEY_CODE.ENTER:
4173
- this.afOnEnter.emit(e);
4174
- this.afOnKeyDown.emit(e);
4175
- break;
4176
- case keyboardHandler_util.KEY_CODE.ESCAPE:
4177
- this.afOnEsc.emit(e);
4178
- this.afOnKeyDown.emit(e);
4179
- break;
4180
- case keyboardHandler_util.KEY_CODE.TAB:
4181
- this.afOnTab.emit(e);
4182
- this.afOnKeyDown.emit(e);
4183
- break;
4184
- case keyboardHandler_util.KEY_CODE.SPACE:
4185
- this.afOnSpace.emit(e);
4186
- this.afOnKeyDown.emit(e);
4187
- break;
4188
- case keyboardHandler_util.KEY_CODE.HOME:
4189
- this.afOnHome.emit(e);
4190
- this.afOnKeyDown.emit(e);
4191
- break;
4192
- case keyboardHandler_util.KEY_CODE.END:
4193
- this.afOnEnd.emit(e);
4194
- this.afOnKeyDown.emit(e);
4195
- break;
4196
- case keyboardHandler_util.KEY_CODE.ANY:
4197
- this.afOnKeyDown.emit(e);
4198
- break;
4199
- default:
4200
- this.afOnKeyDown.emit(e);
4201
- return;
4202
- }
4203
- }
4204
- render() {
4205
- return index$1.h("slot", { key: 'c0a9e056eb5e48ce215370d38ee65a62ca2e33d9' });
4206
- }
4207
- };
4208
-
4209
- exports.digi_calendar = Calendar;
4210
- exports.digi_calendar_datepicker = CalendarDatepicker;
4211
- exports.digi_expandable_accordion = ExpandableAccordion;
4212
- exports.digi_expandable_faq_item = ExpandableFaqItem;
4213
- exports.digi_form_input = FormInput;
4214
- exports.digi_form_label = FormLabel;
4215
- exports.digi_form_select = FormSelect;
4216
- exports.digi_form_validation_message = FormValidationMessage;
4217
- exports.digi_icon_calendar_alt = IconCalendarAlt;
4218
- exports.digi_icon_chevron_down = IconChevronDown;
4219
- exports.digi_icon_chevron_left = IconChevronLeft;
4220
- exports.digi_icon_chevron_right = IconChevronRight;
4221
- exports.digi_icon_input_select_marker = IconInputSelectMarker;
4222
- exports.digi_icon_validation_error = IconValidationError;
4223
- exports.digi_icon_validation_success = IconCheckCircle;
4224
- exports.digi_icon_validation_warning = IconValidationWarning;
4225
- exports.digi_typography = Typography;
4226
- exports.digi_typography_heading_jumbo = TypographyHeadingJumbo;
4227
- exports.digi_util_keydown_handler = UtilKeydownHandler;