@designsystem-se/af 39.2.2 → 39.2.3-beta.darkmode.1

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 (1321) hide show
  1. package/components/digi-badge-notification.js +1 -1
  2. package/components/digi-badge-status.js +2 -2
  3. package/components/digi-bar-chart.js +8 -8
  4. package/components/digi-button.js +1 -1
  5. package/components/digi-calendar-datepicker.js +16 -16
  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 +17 -17
  11. package/components/digi-code.js +1 -1
  12. package/components/digi-context-menu.js +5 -5
  13. package/components/digi-dialog.js +6 -6
  14. package/components/digi-expandable-accordion.js +21 -14
  15. package/components/digi-expandable-faq-item.js +24 -17
  16. package/components/digi-expandable-faq.js +1 -1
  17. package/components/digi-footer-card.js +1 -1
  18. package/components/digi-footer.js +5 -5
  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 +10 -10
  22. package/components/digi-form-fieldset.js +1 -1
  23. package/components/digi-form-file-upload.js +13 -13
  24. package/components/digi-form-filter.js +5 -5
  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 +4 -4
  31. package/components/digi-form-select-filter.js +13 -13
  32. package/components/digi-form-select.js +1 -1
  33. package/components/digi-form-textarea.js +6 -6
  34. package/components/digi-form-validation-message.js +1 -1
  35. package/components/digi-header-avatar.js +4 -4
  36. package/components/digi-header-navigation-item.js +1 -1
  37. package/components/digi-header-navigation.js +7 -7
  38. package/components/digi-header-notification.js +1 -1
  39. package/components/digi-header.js +10 -10
  40. package/components/digi-icon-accessibility-deaf.js +1 -1
  41. package/components/digi-icon-accessibility-universal.js +1 -1
  42. package/components/digi-icon-apple.js +1 -1
  43. package/components/digi-icon-archive-outline.js +1 -1
  44. package/components/digi-icon-archive.js +1 -1
  45. package/components/digi-icon-arrow-back.js +1 -1
  46. package/components/digi-icon-arrow-down.js +1 -1
  47. package/components/digi-icon-arrow-left.js +1 -1
  48. package/components/digi-icon-arrow-right.js +1 -1
  49. package/components/digi-icon-arrow-sign-in.js +1 -1
  50. package/components/digi-icon-arrow-sign-out.js +1 -1
  51. package/components/digi-icon-arrow-up.js +1 -1
  52. package/components/digi-icon-at.js +1 -1
  53. package/components/digi-icon-bars.js +1 -1
  54. package/components/digi-icon-bell-filled.js +1 -1
  55. package/components/digi-icon-bell.js +1 -1
  56. package/components/digi-icon-book.js +1 -1
  57. package/components/digi-icon-bookmark-outline.js +1 -1
  58. package/components/digi-icon-bookmark-solid.js +1 -1
  59. package/components/digi-icon-bubble-ellipsis.js +1 -1
  60. package/components/digi-icon-bubble.js +1 -1
  61. package/components/digi-icon-building-outline.js +1 -1
  62. package/components/digi-icon-building-solid.js +1 -1
  63. package/components/digi-icon-bullseye.js +1 -1
  64. package/components/digi-icon-calculator-solid.js +1 -1
  65. package/components/digi-icon-calendar-alt-alert.js +1 -1
  66. package/components/digi-icon-calendar-alt.js +1 -1
  67. package/components/digi-icon-calendar.js +1 -1
  68. package/components/digi-icon-caret-circle-right.js +1 -1
  69. package/components/digi-icon-caret-down.js +1 -1
  70. package/components/digi-icon-caret-left.js +1 -1
  71. package/components/digi-icon-caret-right.js +1 -1
  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 +1 -1
  75. package/components/digi-icon-check-circle-reg-alt.js +1 -1
  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 +1 -1
  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 +1 -1
  83. package/components/digi-icon-clock.js +1 -1
  84. package/components/digi-icon-communication-play-solid.js +1 -1
  85. package/components/digi-icon-compress-alt.js +1 -1
  86. package/components/digi-icon-comunication-case.js +1 -1
  87. package/components/digi-icon-comunication-flag.js +1 -1
  88. package/components/digi-icon-comunication-graduate.js +1 -1
  89. package/components/digi-icon-comunication-play.js +1 -1
  90. package/components/digi-icon-cooperation.js +1 -1
  91. package/components/digi-icon-copy.js +1 -1
  92. package/components/digi-icon-danger-outline.js +1 -1
  93. package/components/digi-icon-download.js +1 -1
  94. package/components/digi-icon-dxa.js +1 -1
  95. package/components/digi-icon-edit.js +1 -1
  96. package/components/digi-icon-ellipsis.js +1 -1
  97. package/components/digi-icon-envelope-filled.js +1 -1
  98. package/components/digi-icon-envelope.js +1 -1
  99. package/components/digi-icon-exclamation-circle-filled.js +1 -1
  100. package/components/digi-icon-exclamation-triangle-filled.js +1 -1
  101. package/components/digi-icon-exclamation-triangle-warning.js +1 -1
  102. package/components/digi-icon-exclamation-triangle.js +1 -1
  103. package/components/digi-icon-expand-alt.js +1 -1
  104. package/components/digi-icon-external-link-alt.js +1 -1
  105. package/components/digi-icon-eye-slash.js +1 -1
  106. package/components/digi-icon-eye.js +1 -1
  107. package/components/digi-icon-facebook-square.js +1 -1
  108. package/components/digi-icon-file-add.js +1 -1
  109. package/components/digi-icon-file-document.js +1 -1
  110. package/components/digi-icon-file-excel.js +1 -1
  111. package/components/digi-icon-file-export.js +1 -1
  112. package/components/digi-icon-file-governing.js +1 -1
  113. package/components/digi-icon-file-pdf.js +1 -1
  114. package/components/digi-icon-file-powerpoint.js +1 -1
  115. package/components/digi-icon-file-remove.js +1 -1
  116. package/components/digi-icon-file-word.js +1 -1
  117. package/components/digi-icon-film.js +1 -1
  118. package/components/digi-icon-filter.js +1 -1
  119. package/components/digi-icon-folder-add.js +1 -1
  120. package/components/digi-icon-folder-directory.js +1 -1
  121. package/components/digi-icon-folder-open.js +1 -1
  122. package/components/digi-icon-folder.js +1 -1
  123. package/components/digi-icon-globe-filled.js +1 -1
  124. package/components/digi-icon-globe.js +1 -1
  125. package/components/digi-icon-headphones.js +1 -1
  126. package/components/digi-icon-heart-solid.js +1 -1
  127. package/components/digi-icon-heart.js +1 -1
  128. package/components/digi-icon-history.js +1 -1
  129. package/components/digi-icon-home.js +1 -1
  130. package/components/digi-icon-image.js +1 -1
  131. package/components/digi-icon-info-circle-solid.js +1 -1
  132. package/components/digi-icon-input-select-marker.js +1 -1
  133. package/components/digi-icon-instagram.js +1 -1
  134. package/components/digi-icon-job-suggestion.js +1 -1
  135. package/components/digi-icon-language-outline.js +1 -1
  136. package/components/digi-icon-language.js +1 -1
  137. package/components/digi-icon-laptop-phone.js +1 -1
  138. package/components/digi-icon-lattlast.js +1 -1
  139. package/components/digi-icon-licence-bus.js +1 -1
  140. package/components/digi-icon-licence-car.js +1 -1
  141. package/components/digi-icon-licence-motorcycle.js +1 -1
  142. package/components/digi-icon-licence-truck.js +1 -1
  143. package/components/digi-icon-lightbulb.js +1 -1
  144. package/components/digi-icon-linkedin-in.js +1 -1
  145. package/components/digi-icon-list-ul.js +1 -1
  146. package/components/digi-icon-lock.js +1 -1
  147. package/components/digi-icon-marker-filled.js +1 -1
  148. package/components/digi-icon-marker.js +1 -1
  149. package/components/digi-icon-media-course.js +1 -1
  150. package/components/digi-icon-media-podcast.js +1 -1
  151. package/components/digi-icon-microphone-off.js +1 -1
  152. package/components/digi-icon-microphone.js +1 -1
  153. package/components/digi-icon-minus.js +1 -1
  154. package/components/digi-icon-move.js +1 -1
  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 +1 -1
  162. package/components/digi-icon-online-meeting.js +1 -1
  163. package/components/digi-icon-online-task.js +1 -1
  164. package/components/digi-icon-online-video.js +1 -1
  165. package/components/digi-icon-open-source.js +1 -1
  166. package/components/digi-icon-palette.js +1 -1
  167. package/components/digi-icon-paperclip.js +1 -1
  168. package/components/digi-icon-paste.js +1 -1
  169. package/components/digi-icon-pen.js +1 -1
  170. package/components/digi-icon-phone-hangup.js +1 -1
  171. package/components/digi-icon-phone.js +1 -1
  172. package/components/digi-icon-plus.js +1 -1
  173. package/components/digi-icon-pod.js +1 -1
  174. package/components/digi-icon-print.js +1 -1
  175. package/components/digi-icon-read.js +1 -1
  176. package/components/digi-icon-redo.js +1 -1
  177. package/components/digi-icon-scale.js +1 -1
  178. package/components/digi-icon-screensharing-off.js +1 -1
  179. package/components/digi-icon-screensharing.js +1 -1
  180. package/components/digi-icon-search.js +1 -1
  181. package/components/digi-icon-send-outline.js +1 -1
  182. package/components/digi-icon-send-solid.js +1 -1
  183. package/components/digi-icon-settings.js +1 -1
  184. package/components/digi-icon-share-alt.js +1 -1
  185. package/components/digi-icon-share-chain.js +1 -1
  186. package/components/digi-icon-sign.js +1 -1
  187. package/components/digi-icon-sliders-h.js +1 -1
  188. package/components/digi-icon-sokkandidat.js +1 -1
  189. package/components/digi-icon-sort-down.js +1 -1
  190. package/components/digi-icon-sort-up.js +1 -1
  191. package/components/digi-icon-sort.js +1 -1
  192. package/components/digi-icon-spinner.js +1 -1
  193. package/components/digi-icon-star-reg.js +1 -1
  194. package/components/digi-icon-star.js +1 -1
  195. package/components/digi-icon-suitcase-outline.js +1 -1
  196. package/components/digi-icon-suitcase-solid.js +1 -1
  197. package/components/digi-icon-system-assistance.js +1 -1
  198. package/components/digi-icon-table-column.js +1 -1
  199. package/components/digi-icon-table-row.js +1 -1
  200. package/components/digi-icon-table.js +1 -1
  201. package/components/digi-icon-task-done.js +1 -1
  202. package/components/digi-icon-toggle-off.js +1 -1
  203. package/components/digi-icon-toggle-on.js +1 -1
  204. package/components/digi-icon-trash.js +1 -1
  205. package/components/digi-icon-twitter.js +1 -1
  206. package/components/digi-icon-tyck-till.js +1 -1
  207. package/components/digi-icon-unlock.js +1 -1
  208. package/components/digi-icon-update.js +1 -1
  209. package/components/digi-icon-upload.js +1 -1
  210. package/components/digi-icon-user-add.js +1 -1
  211. package/components/digi-icon-user-alt.js +1 -1
  212. package/components/digi-icon-user-edit.js +1 -1
  213. package/components/digi-icon-users-solid.js +1 -1
  214. package/components/digi-icon-validation-error.js +1 -1
  215. package/components/digi-icon-validation-success.js +1 -1
  216. package/components/digi-icon-validation-warning.js +1 -1
  217. package/components/digi-icon-videocamera-off.js +1 -1
  218. package/components/digi-icon-videocamera.js +1 -1
  219. package/components/digi-icon-volume.js +1 -1
  220. package/components/digi-icon-web-tv.js +1 -1
  221. package/components/digi-icon-webinar.js +1 -1
  222. package/components/digi-icon-wifi-signal0.js +1 -1
  223. package/components/digi-icon-wifi-signal1.js +1 -1
  224. package/components/digi-icon-wifi-signal2.js +1 -1
  225. package/components/digi-icon-wifi-signal3.js +1 -1
  226. package/components/digi-icon-window.js +1 -1
  227. package/components/digi-icon-x-button-outline.js +1 -1
  228. package/components/digi-icon-x-button.js +1 -1
  229. package/components/digi-icon-x.js +1 -1
  230. package/components/digi-icon-youtube.js +1 -1
  231. package/components/digi-info-card-multi-container.js +2 -2
  232. package/components/digi-info-card-multi.js +11 -11
  233. package/components/digi-info-card.js +8 -8
  234. package/components/digi-layout-block.js +1 -1
  235. package/components/digi-layout-columns.js +1 -1
  236. package/components/digi-layout-container.js +1 -1
  237. package/components/digi-link-button.js +3 -3
  238. package/components/digi-link-external.js +1 -1
  239. package/components/digi-link-internal.js +1 -1
  240. package/components/digi-link.js +1 -1
  241. package/components/digi-list.js +3 -3
  242. package/components/digi-loader-skeleton.js +1 -1
  243. package/components/digi-loader-spinner.js +2 -2
  244. package/components/digi-logo.js +1 -1
  245. package/components/digi-media-figure.js +1 -1
  246. package/components/digi-media-image.js +1 -1
  247. package/components/digi-navigation-breadcrumbs.js +1 -1
  248. package/components/digi-navigation-pagination.js +7 -7
  249. package/components/digi-navigation-sidebar-button.js +1 -1
  250. package/components/digi-navigation-sidebar.js +5 -5
  251. package/components/digi-navigation-vertical-menu-item.js +4 -4
  252. package/components/digi-navigation-vertical-menu.js +1 -1
  253. package/components/digi-notification-alert.js +1 -1
  254. package/components/digi-notification-error-page.js +5 -5
  255. package/components/digi-progress-circle.js +3 -3
  256. package/components/digi-progress-indicator.js +5 -5
  257. package/components/digi-progress-list-item.js +5 -5
  258. package/components/digi-progress-list.js +2 -2
  259. package/components/digi-progressbar.js +1 -1
  260. package/components/digi-quote.js +3 -3
  261. package/components/digi-table.js +1 -1
  262. package/components/digi-tablist-panel.js +1 -1
  263. package/components/digi-tablist.js +4 -4
  264. package/components/digi-tag-media.js +1 -1
  265. package/components/digi-tag.js +3 -3
  266. package/components/digi-title-logo.js +3 -3
  267. package/components/digi-tools-feedback-banner.js +6 -6
  268. package/components/digi-tools-feedback-rating.js +7 -7
  269. package/components/digi-tools-feedback.js +5 -5
  270. package/components/digi-tools-theme-provider.js +18 -6
  271. package/components/digi-typography-heading-jumbo.js +1 -1
  272. package/components/digi-typography-meta.js +1 -1
  273. package/components/digi-typography-preamble.js +1 -1
  274. package/components/digi-typography-time.js +1 -1
  275. package/components/digi-typography.js +1 -1
  276. package/components/digi-util-breakpoint-observer.js +1 -1
  277. package/components/digi-util-detect-click-outside.js +1 -1
  278. package/components/digi-util-detect-focus-outside.js +1 -1
  279. package/components/digi-util-intersection-observer.js +1 -1
  280. package/components/digi-util-keydown-handler.js +1 -1
  281. package/components/digi-util-keyup-handler.js +1 -1
  282. package/components/digi-util-mutation-observer.js +1 -1
  283. package/components/digi-util-resize-observer.js +1 -1
  284. package/components/index.js +2 -2
  285. package/components/{p-DEBBHpvE.js → p-B-t5S9EY.js} +1 -1
  286. package/components/{p-1kIXcBRD.js → p-B4zX2d6p.js} +1 -1
  287. package/components/{p-DdqhvfV6.js → p-BAOHx55A.js} +1 -1
  288. package/components/{p--uSFOD5O.js → p-BCFaqI9s.js} +1 -1
  289. package/components/{p-BaIqYsaL.js → p-BElcAqYW.js} +2 -2
  290. package/components/{p-B1hBNnkP.js → p-BOE22wd8.js} +1 -1
  291. package/components/{p-Din5WNxk.js → p-BOYiO_CB.js} +1 -1
  292. package/components/{p-C5A2t93y.js → p-BOeC-Of4.js} +12 -12
  293. package/components/{p-C2LUp3Td.js → p-BR0nLAzm.js} +1 -1
  294. package/components/{p-Dp2m5Ssh.js → p-BUcJbdzx.js} +4 -4
  295. package/components/{p-DCcDMmpc.js → p-BWWL4jJP.js} +1 -1
  296. package/components/{p-BJgweNmE.js → p-BYKyLtpu.js} +1 -1
  297. package/components/p-BYZUJ0Q_.js +13 -0
  298. package/components/p-BZRGhz_S.js +72 -0
  299. package/components/{p-0YsihRkX.js → p-BaehiA8Y.js} +1 -1
  300. package/components/{p-DB2hM8IT.js → p-BfomCr3I.js} +2 -2
  301. package/components/{p-CBCmbVA7.js → p-BiNL5dw0.js} +8 -8
  302. package/components/{p-jKxa9rP_.js → p-BlZ-1QLb.js} +1 -1
  303. package/components/{p-BISIikBQ.js → p-BmRyNkB_.js} +1 -1
  304. package/components/{p-V8bIji56.js → p-C2Lpmf2x.js} +1 -1
  305. package/components/{p-Du_iCC0o.js → p-C7AD2AhM.js} +1 -1
  306. package/components/{p-DYNoU7Ab.js → p-C9zHx5BL.js} +1 -1
  307. package/components/{p-CGIRXM14.js → p-CE_2IEI5.js} +1 -1
  308. package/components/{p-noQGUY_w.js → p-CH1lVNBP.js} +1 -1
  309. package/components/{p-BOuscZWN.js → p-CIBh8Rh-.js} +1 -1
  310. package/components/{p-BkdqrgFa.js → p-CIycOhDg.js} +7 -7
  311. package/components/{p-Dc8gh6yZ.js → p-CQ1lMJ49.js} +2 -2
  312. package/components/p-CQROpT8v.js +172 -0
  313. package/components/{p-B85a4tNl.js → p-CUAFK7gb.js} +1 -1
  314. package/components/{p-DY1BY52y.js → p-Cb7uE8x_.js} +1 -1
  315. package/components/{p-CW-HnEHk.js → p-ChtxF85n.js} +1 -1
  316. package/components/{p-DDdKfPB2.js → p-CiDU-xlx.js} +1 -1
  317. package/components/{p-DdUXwmS6.js → p-CrZdemxQ.js} +6 -6
  318. package/components/{p-B3TKmnH5.js → p-Ctn-efIl.js} +1 -1
  319. package/components/{p-CtUzKtIv.js → p-CuTYkqsd.js} +1 -1
  320. package/components/{p-jUJnNkiJ.js → p-Cz6nhK_B.js} +1 -1
  321. package/components/{p-Dzjkl5Kh.js → p-D22-ysDR.js} +1 -1
  322. package/components/{p-Br3uVgA1.js → p-D2QQibn5.js} +1 -1
  323. package/components/{p-oVqRvXYm.js → p-D63hpOkc.js} +1 -1
  324. package/components/{p-DWk0TQi5.js → p-D77ZFbW0.js} +1 -1
  325. package/components/{p-Cf91SknN.js → p-D8S3Wfmt.js} +5 -5
  326. package/components/{p-CZexDcPm.js → p-DB26lDNY.js} +10 -10
  327. package/components/{p-IUbLqTDz.js → p-DDBDsiLp.js} +3 -3
  328. package/components/{p-BUFtpryS.js → p-DE7TwhoQ.js} +1 -1
  329. package/components/{p-DCCg-GBa.js → p-DIBaTUKu.js} +1 -1
  330. package/components/{p-P1LBiiXm.js → p-DLssvWYG.js} +3 -3
  331. package/components/{p-52C4taMR.js → p-DcSAmYh_.js} +1 -1
  332. package/components/{p-C1wkAzXH.js → p-DdIorjKS.js} +1 -1
  333. package/components/{p-PhdhPGeA.js → p-Dg_d1EJv.js} +1 -1
  334. package/components/{p-BupNdJre.js → p-DkjLIQie.js} +1 -1
  335. package/components/{p-CAW-ueZH.js → p-DlPkQOwC.js} +1 -1
  336. package/components/{p-DuEh6-g9.js → p-Do8A7kOR.js} +1 -1
  337. package/components/{p-BkRrSWNb.js → p-DxGWaEFK.js} +1 -1
  338. package/components/p-DxOec_Ja.js +187 -0
  339. package/components/{p-BaFkfL3J.js → p-DxbdHKFX.js} +1 -1
  340. package/components/{p-DQnLbEWg.js → p-IG_YvUc_.js} +1 -1
  341. package/components/{p-Cn6V9H9D.js → p-O1o1E_0r.js} +1 -1
  342. package/components/{p-B0NtWuWm.js → p-Pp3HidK_.js} +1 -1
  343. package/components/{p-DwuDBDrV.js → p-QBzpsnLr.js} +1 -1
  344. package/components/{p-CSefQfv6.js → p-RqmVNvwH.js} +1 -1
  345. package/components/{p-C7W4tsEH.js → p-T8lSAX_5.js} +1 -1
  346. package/components/{p-zeCQ8TGq.js → p-hmotN9X1.js} +4 -4
  347. package/components/{p--OfIV-on.js → p-pkO_siWo.js} +1 -1
  348. package/components/{p-0pTevzmo.js → p-z3nuMaA6.js} +1 -1
  349. package/custom-elements.json +5 -1
  350. package/dist/cjs/badge-notification-shape.enum-CEyEo2G5.js +8 -0
  351. package/dist/cjs/{button-variation.enum-ngMqFLdW.js → button-variation.enum-DkUalo9f.js} +0 -6
  352. package/dist/cjs/{calendar-week-view-heading-level.enum-BI2f9bbk.js → calendar-week-view-heading-level.enum-NEkm5SUq.js} +0 -7
  353. package/dist/cjs/{code-example-variation.enum-Cq-BioXW.js → code-example-variation.enum-BCENTUV2.js} +6 -0
  354. package/dist/cjs/digi-arbetsformedlingen.cjs.js +2 -2
  355. package/dist/cjs/digi-badge-notification.cjs.entry.js +65 -0
  356. package/dist/cjs/digi-badge-status.cjs.entry.js +2 -2
  357. package/dist/cjs/digi-bar-chart.cjs.entry.js +1 -1
  358. package/dist/cjs/digi-button_83.cjs.entry.js +8855 -0
  359. package/dist/cjs/{digi-badge-notification_8.cjs.entry.js → digi-calendar-week-view.cjs.entry.js} +72 -645
  360. package/dist/cjs/digi-chart-line.cjs.entry.js +1 -1
  361. package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block_2.cjs.entry.js} +8 -148
  362. package/dist/cjs/digi-code-example.cjs.entry.js +10 -10
  363. package/dist/cjs/digi-code.cjs.entry.js +1 -1
  364. package/dist/cjs/digi-dialog.cjs.entry.js +8 -27
  365. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +19 -12
  366. package/dist/cjs/digi-expandable-faq.cjs.entry.js +1 -1
  367. package/dist/cjs/digi-form-error-list.cjs.entry.js +7 -26
  368. package/dist/cjs/digi-form-input-search.cjs.entry.js +7 -9
  369. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +1 -1
  370. package/dist/cjs/digi-form-receipt.cjs.entry.js +7 -26
  371. package/dist/cjs/digi-form-textarea.cjs.entry.js +1 -1
  372. package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +1 -1
  373. package/dist/cjs/digi-icon-apple.cjs.entry.js +1 -1
  374. package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +1 -1
  375. package/dist/cjs/digi-icon-archive.cjs.entry.js +1 -1
  376. package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +1 -1
  377. package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +1 -1
  378. package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +1 -1
  379. package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +1 -1
  380. package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +1 -1
  381. package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +1 -1
  382. package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +1 -1
  383. package/dist/cjs/digi-icon-at.cjs.entry.js +1 -1
  384. package/dist/cjs/digi-icon-bell.cjs.entry.js +1 -1
  385. package/dist/cjs/digi-icon-book.cjs.entry.js +1 -1
  386. package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +1 -1
  387. package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +1 -1
  388. package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +1 -1
  389. package/dist/cjs/digi-icon-bubble.cjs.entry.js +1 -1
  390. package/dist/cjs/digi-icon-building-outline.cjs.entry.js +1 -1
  391. package/dist/cjs/digi-icon-building-solid.cjs.entry.js +1 -1
  392. package/dist/cjs/digi-icon-bullseye.cjs.entry.js +1 -1
  393. package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +1 -1
  394. package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +1 -1
  395. package/dist/cjs/digi-icon-calendar.cjs.entry.js +1 -1
  396. package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +1 -1
  397. package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +1 -1
  398. package/dist/cjs/digi-icon-caret-left.cjs.entry.js +1 -1
  399. package/dist/cjs/digi-icon-caret-right.cjs.entry.js +1 -1
  400. package/dist/cjs/digi-icon-chart_2.cjs.entry.js +1 -1
  401. package/dist/cjs/digi-icon-chat.cjs.entry.js +1 -1
  402. package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +1 -1
  403. package/dist/cjs/digi-icon-checklist.cjs.entry.js +1 -1
  404. package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +1 -1
  405. package/dist/cjs/digi-icon-clock.cjs.entry.js +1 -1
  406. package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +1 -1
  407. package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +1 -1
  408. package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +1 -1
  409. package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +1 -1
  410. package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +1 -1
  411. package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +1 -1
  412. package/dist/cjs/digi-icon-cooperation.cjs.entry.js +1 -1
  413. package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +1 -1
  414. package/dist/cjs/digi-icon-download.cjs.entry.js +1 -1
  415. package/dist/cjs/digi-icon-dxa.cjs.entry.js +1 -1
  416. package/dist/cjs/digi-icon-edit.cjs.entry.js +1 -1
  417. package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +1 -1
  418. package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +1 -1
  419. package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +1 -1
  420. package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +1 -1
  421. package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +1 -1
  422. package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +1 -1
  423. package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +1 -1
  424. package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +1 -1
  425. package/dist/cjs/digi-icon-eye.cjs.entry.js +1 -1
  426. package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +1 -1
  427. package/dist/cjs/digi-icon-file-add.cjs.entry.js +1 -1
  428. package/dist/cjs/digi-icon-file-document.cjs.entry.js +1 -1
  429. package/dist/cjs/digi-icon-file-excel.cjs.entry.js +1 -1
  430. package/dist/cjs/digi-icon-file-export.cjs.entry.js +1 -1
  431. package/dist/cjs/digi-icon-file-governing.cjs.entry.js +1 -1
  432. package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +1 -1
  433. package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +1 -1
  434. package/dist/cjs/digi-icon-file-remove.cjs.entry.js +1 -1
  435. package/dist/cjs/digi-icon-file-word.cjs.entry.js +1 -1
  436. package/dist/cjs/digi-icon-film.cjs.entry.js +1 -1
  437. package/dist/cjs/digi-icon-filter.cjs.entry.js +1 -1
  438. package/dist/cjs/digi-icon-folder-add.cjs.entry.js +1 -1
  439. package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +1 -1
  440. package/dist/cjs/digi-icon-folder-open.cjs.entry.js +1 -1
  441. package/dist/cjs/digi-icon-folder.cjs.entry.js +1 -1
  442. package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +1 -1
  443. package/dist/cjs/digi-icon-headphones.cjs.entry.js +1 -1
  444. package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +1 -1
  445. package/dist/cjs/digi-icon-heart.cjs.entry.js +1 -1
  446. package/dist/cjs/digi-icon-history.cjs.entry.js +1 -1
  447. package/dist/cjs/digi-icon-home.cjs.entry.js +1 -1
  448. package/dist/cjs/digi-icon-image.cjs.entry.js +1 -1
  449. package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +1 -1
  450. package/dist/cjs/digi-icon-instagram.cjs.entry.js +1 -1
  451. package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +1 -1
  452. package/dist/cjs/digi-icon-language-outline.cjs.entry.js +1 -1
  453. package/dist/cjs/digi-icon-language.cjs.entry.js +1 -1
  454. package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +1 -1
  455. package/dist/cjs/digi-icon-lattlast.cjs.entry.js +1 -1
  456. package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +1 -1
  457. package/dist/cjs/digi-icon-licence-car.cjs.entry.js +1 -1
  458. package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +1 -1
  459. package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +1 -1
  460. package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +1 -1
  461. package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +1 -1
  462. package/dist/cjs/digi-icon-lock.cjs.entry.js +1 -1
  463. package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +1 -1
  464. package/dist/cjs/digi-icon-marker.cjs.entry.js +1 -1
  465. package/dist/cjs/digi-icon-media-course.cjs.entry.js +1 -1
  466. package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +1 -1
  467. package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +1 -1
  468. package/dist/cjs/digi-icon-microphone.cjs.entry.js +1 -1
  469. package/dist/cjs/digi-icon-move.cjs.entry.js +1 -1
  470. package/dist/cjs/digi-icon-online-interview.cjs.entry.js +1 -1
  471. package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +1 -1
  472. package/dist/cjs/digi-icon-online-task.cjs.entry.js +1 -1
  473. package/dist/cjs/digi-icon-open-source.cjs.entry.js +1 -1
  474. package/dist/cjs/digi-icon-palette.cjs.entry.js +1 -1
  475. package/dist/cjs/digi-icon-paste.cjs.entry.js +1 -1
  476. package/dist/cjs/digi-icon-pen.cjs.entry.js +1 -1
  477. package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +1 -1
  478. package/dist/cjs/digi-icon-phone.cjs.entry.js +1 -1
  479. package/dist/cjs/digi-icon-print.cjs.entry.js +1 -1
  480. package/dist/cjs/digi-icon-read.cjs.entry.js +1 -1
  481. package/dist/cjs/digi-icon-redo.cjs.entry.js +1 -1
  482. package/dist/cjs/digi-icon-scale.cjs.entry.js +1 -1
  483. package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +1 -1
  484. package/dist/cjs/digi-icon-screensharing.cjs.entry.js +1 -1
  485. package/dist/cjs/digi-icon-search.cjs.entry.js +1 -1
  486. package/dist/cjs/digi-icon-send-outline.cjs.entry.js +1 -1
  487. package/dist/cjs/digi-icon-send-solid.cjs.entry.js +1 -1
  488. package/dist/cjs/digi-icon-settings.cjs.entry.js +1 -1
  489. package/dist/cjs/digi-icon-share-alt.cjs.entry.js +1 -1
  490. package/dist/cjs/digi-icon-share-chain.cjs.entry.js +1 -1
  491. package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +1 -1
  492. package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +1 -1
  493. package/dist/cjs/digi-icon-sort-down.cjs.entry.js +1 -1
  494. package/dist/cjs/digi-icon-sort-up.cjs.entry.js +1 -1
  495. package/dist/cjs/digi-icon-sort.cjs.entry.js +1 -1
  496. package/dist/cjs/digi-icon-star-reg.cjs.entry.js +1 -1
  497. package/dist/cjs/digi-icon-star.cjs.entry.js +1 -1
  498. package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +1 -1
  499. package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +1 -1
  500. package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +1 -1
  501. package/dist/cjs/digi-icon-table-column.cjs.entry.js +1 -1
  502. package/dist/cjs/digi-icon-table-row.cjs.entry.js +1 -1
  503. package/dist/cjs/digi-icon-task-done.cjs.entry.js +1 -1
  504. package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +1 -1
  505. package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +1 -1
  506. package/dist/cjs/digi-icon-twitter.cjs.entry.js +1 -1
  507. package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +1 -1
  508. package/dist/cjs/digi-icon-unlock.cjs.entry.js +1 -1
  509. package/dist/cjs/digi-icon-update.cjs.entry.js +1 -1
  510. package/dist/cjs/digi-icon-upload.cjs.entry.js +1 -1
  511. package/dist/cjs/digi-icon-user-add.cjs.entry.js +1 -1
  512. package/dist/cjs/digi-icon-user-alt.cjs.entry.js +1 -1
  513. package/dist/cjs/digi-icon-user-edit.cjs.entry.js +1 -1
  514. package/dist/cjs/digi-icon-users-solid.cjs.entry.js +1 -1
  515. package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +1 -1
  516. package/dist/cjs/digi-icon-videocamera.cjs.entry.js +1 -1
  517. package/dist/cjs/digi-icon-volume.cjs.entry.js +1 -1
  518. package/dist/cjs/digi-icon-web-tv.cjs.entry.js +1 -1
  519. package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +1 -1
  520. package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +1 -1
  521. package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +1 -1
  522. package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +1 -1
  523. package/dist/cjs/digi-icon-window.cjs.entry.js +1 -1
  524. package/dist/cjs/digi-icon-x-button.cjs.entry.js +1 -1
  525. package/dist/cjs/digi-icon-youtube.cjs.entry.js +1 -1
  526. package/dist/cjs/digi-list.cjs.entry.js +1 -1
  527. package/dist/cjs/digi-loader-skeleton.cjs.entry.js +1 -1
  528. package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
  529. package/dist/cjs/digi-media-figure.cjs.entry.js +1 -1
  530. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +1 -1
  531. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +7 -26
  532. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +1 -1
  533. package/dist/cjs/digi-notification-error-page.cjs.entry.js +7 -26
  534. package/dist/cjs/digi-progress-circle.cjs.entry.js +1 -1
  535. package/dist/cjs/digi-progress-list-item.cjs.entry.js +2 -2
  536. package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
  537. package/dist/cjs/digi-progressbar.cjs.entry.js +1 -1
  538. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  539. package/dist/cjs/digi-table.cjs.entry.js +1 -1
  540. package/dist/cjs/digi-tablist-panel.cjs.entry.js +20 -0
  541. package/dist/cjs/digi-tablist.cjs.entry.js +312 -0
  542. package/dist/cjs/digi-tag.cjs.entry.js +1 -1
  543. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
  544. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +1 -1
  545. package/dist/cjs/digi-tools-feedback.cjs.entry.js +9 -28
  546. package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
  547. package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
  548. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
  549. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
  550. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
  551. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +1 -1
  552. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
  553. package/dist/cjs/{form-input-type.enum-DvF_MTHK.js → form-input-type.enum-B2CsNSBg.js} +14 -0
  554. package/dist/cjs/{index-Bdlw-Iuy.js → index-DUQtADgG.js} +189 -19
  555. package/dist/cjs/{index-Cn1hHaSy.js → index-c-lFHXD-.js} +17 -233
  556. package/dist/cjs/index.cjs.js +175 -190
  557. package/dist/cjs/loader.cjs.js +2 -2
  558. package/dist/cjs/typography-variation.enum-B05du-qd.js +511 -0
  559. package/dist/collection/components/_badge/badge-status/badge-status.css +2 -2
  560. package/dist/collection/components/_button/button/button.css +14 -14
  561. package/dist/collection/components/_calendar/calendar/calendar.css +8 -3
  562. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +581 -7
  563. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  564. package/dist/collection/components/_code/code-example/code-example.js +4 -5
  565. package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +18 -11
  566. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +21 -14
  567. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +594 -6
  568. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +6 -5
  569. package/dist/collection/components/_form/form-filter/form-filter.css +2 -2
  570. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.css +6 -0
  571. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  572. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +3 -3
  573. package/dist/collection/components/_header/header/header.js +2 -2
  574. package/dist/collection/components/_header/header-avatar/header-avatar.css +579 -5
  575. package/dist/collection/components/_info-card/info-card/info-card.js +5 -5
  576. package/dist/collection/components/_link/link-button/link-button.css +3 -3
  577. package/dist/collection/components/_link/link-internal/link-internal.css +579 -5
  578. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.css +3 -2
  579. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  580. package/dist/collection/components/_notification/notification-alert/notification-alert.css +1 -1
  581. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +5 -4
  582. package/dist/collection/components/_progress/progress-list-item/progress-list-item.css +2 -2
  583. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +168 -4
  584. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  585. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  586. package/dist/collection/design-tokens/components/_badge-status.variables.scss +1 -1
  587. package/dist/collection/design-tokens/components/_button.variables.scss +14 -14
  588. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  589. package/dist/collection/design-tokens/components/_calendar.variables.scss +4 -3
  590. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  591. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  592. package/dist/collection/design-tokens/components/_form-filter.variables.scss +2 -2
  593. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +3 -3
  594. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  595. package/dist/collection/design-tokens/components/_link-button.variables.scss +3 -3
  596. package/dist/collection/design-tokens/components/_logo.variables.scss +0 -2
  597. package/dist/collection/design-tokens/components/_navigation-context-menu.variables.scss +1 -1
  598. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  599. package/dist/collection/design-tokens/components/_notification-alert.variables.scss +1 -1
  600. package/dist/collection/design-tokens/components/_progress-indicator.variables.scss +1 -1
  601. package/dist/collection/enums.js +1 -0
  602. package/dist/collection/styles/src/index.scss +16 -2
  603. package/dist/collection/styles/src/themes/_alias-dark.mixin.scss +127 -0
  604. package/dist/collection/styles/src/{_alias.mixin.scss → themes/_alias-light.mixin.scss} +20 -1
  605. package/dist/collection/styles/src/themes/_brand-af18.mixin.scss +20 -1
  606. package/dist/collection/styles/src/themes/_brand-af25.mixin.scss +147 -3
  607. package/dist/collection/styles/src/themes/_brand-common.mixin.scss +11 -0
  608. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +380 -203
  609. package/dist/digi-arbetsformedlingen/design-tokens/components/_badge-status.variables.scss +1 -1
  610. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +14 -14
  611. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  612. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +4 -3
  613. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  614. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  615. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-filter.variables.scss +2 -2
  616. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +3 -3
  617. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  618. package/dist/digi-arbetsformedlingen/design-tokens/components/_link-button.variables.scss +3 -3
  619. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +15 -17
  620. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-context-menu.variables.scss +1 -1
  621. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  622. package/dist/digi-arbetsformedlingen/design-tokens/components/_notification-alert.variables.scss +1 -1
  623. package/dist/digi-arbetsformedlingen/design-tokens/components/_progress-indicator.variables.scss +1 -1
  624. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  625. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  626. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  627. package/dist/digi-arbetsformedlingen/{p-fae174e9.entry.js → p-004ad57d.entry.js} +1 -1
  628. package/dist/digi-arbetsformedlingen/{p-e6ec44dd.entry.js → p-034643e5.entry.js} +1 -1
  629. package/dist/digi-arbetsformedlingen/{p-655a6196.entry.js → p-034bf607.entry.js} +1 -1
  630. package/dist/digi-arbetsformedlingen/{p-6b99ac0c.entry.js → p-03ef2b8d.entry.js} +1 -1
  631. package/dist/digi-arbetsformedlingen/{p-291d80fd.entry.js → p-07b99188.entry.js} +1 -1
  632. package/dist/digi-arbetsformedlingen/p-08d76cd8.entry.js +1 -0
  633. package/dist/digi-arbetsformedlingen/{p-b61bb68d.entry.js → p-091ea005.entry.js} +1 -1
  634. package/dist/digi-arbetsformedlingen/{p-737f41e9.entry.js → p-09868c71.entry.js} +1 -1
  635. package/dist/digi-arbetsformedlingen/{p-d1bd8f00.entry.js → p-0b1bfe29.entry.js} +1 -1
  636. package/dist/digi-arbetsformedlingen/{p-eddffe09.entry.js → p-0ce97183.entry.js} +1 -1
  637. package/dist/digi-arbetsformedlingen/{p-7bc3f73a.entry.js → p-0d354b83.entry.js} +1 -1
  638. package/dist/digi-arbetsformedlingen/{p-6662177f.entry.js → p-0dd90bf0.entry.js} +1 -1
  639. package/dist/digi-arbetsformedlingen/{p-725df73b.entry.js → p-0e17667d.entry.js} +1 -1
  640. package/dist/digi-arbetsformedlingen/{p-a055ea73.entry.js → p-0e7ec828.entry.js} +1 -1
  641. package/dist/digi-arbetsformedlingen/{p-c6573e5d.entry.js → p-0f6dc4f0.entry.js} +1 -1
  642. package/dist/digi-arbetsformedlingen/{p-5b122492.entry.js → p-1227e00d.entry.js} +1 -1
  643. package/dist/digi-arbetsformedlingen/p-1277c617.entry.js +1 -0
  644. package/dist/digi-arbetsformedlingen/{p-4dd23355.entry.js → p-134fa67b.entry.js} +1 -1
  645. package/dist/digi-arbetsformedlingen/{p-6cb8d615.entry.js → p-156c6e23.entry.js} +1 -1
  646. package/dist/digi-arbetsformedlingen/{p-d11f831f.entry.js → p-1630a433.entry.js} +1 -1
  647. package/dist/digi-arbetsformedlingen/{p-0109cd67.entry.js → p-176cc742.entry.js} +1 -1
  648. package/dist/digi-arbetsformedlingen/{p-97669c38.entry.js → p-18ea4ef7.entry.js} +1 -1
  649. package/dist/digi-arbetsformedlingen/{p-02f709b9.entry.js → p-1d0bbbe2.entry.js} +1 -1
  650. package/dist/digi-arbetsformedlingen/{p-40d900dd.entry.js → p-1d495f16.entry.js} +1 -1
  651. package/dist/digi-arbetsformedlingen/{p-e083b072.entry.js → p-1dcdfbf2.entry.js} +1 -1
  652. package/dist/digi-arbetsformedlingen/{p-e74cbfb8.entry.js → p-1de2e644.entry.js} +1 -1
  653. package/dist/digi-arbetsformedlingen/{p-24951793.entry.js → p-1e062b4f.entry.js} +1 -1
  654. package/dist/digi-arbetsformedlingen/{p-e51bfddc.entry.js → p-1e269892.entry.js} +1 -1
  655. package/dist/digi-arbetsformedlingen/{p-82f0b85a.entry.js → p-1ed48a98.entry.js} +1 -1
  656. package/dist/digi-arbetsformedlingen/{p-391de403.entry.js → p-1ef0bd38.entry.js} +1 -1
  657. package/dist/digi-arbetsformedlingen/{p-4061c1aa.entry.js → p-1fa83639.entry.js} +1 -1
  658. package/dist/digi-arbetsformedlingen/{p-62f9f5a0.entry.js → p-2023f038.entry.js} +1 -1
  659. package/dist/digi-arbetsformedlingen/{p-e41abde9.entry.js → p-20499ac8.entry.js} +1 -1
  660. package/dist/digi-arbetsformedlingen/{p-b2d712ce.entry.js → p-205bc292.entry.js} +1 -1
  661. package/dist/digi-arbetsformedlingen/{p-32959401.entry.js → p-270fbfd0.entry.js} +1 -1
  662. package/dist/digi-arbetsformedlingen/{p-c76f56d9.entry.js → p-27cb6ee8.entry.js} +1 -1
  663. package/dist/digi-arbetsformedlingen/{p-aa4c09a4.entry.js → p-28eef231.entry.js} +1 -1
  664. package/dist/digi-arbetsformedlingen/{p-b9ae3c3d.entry.js → p-29cfb644.entry.js} +1 -1
  665. package/dist/digi-arbetsformedlingen/{p-5c5b4dd6.entry.js → p-2b18aa4e.entry.js} +1 -1
  666. package/dist/digi-arbetsformedlingen/{p-379d52d7.entry.js → p-2ba9d966.entry.js} +1 -1
  667. package/dist/digi-arbetsformedlingen/{p-aedcf116.entry.js → p-2d91e6cb.entry.js} +1 -1
  668. package/dist/digi-arbetsformedlingen/{p-f6a311ff.entry.js → p-2e109c6a.entry.js} +1 -1
  669. package/dist/digi-arbetsformedlingen/{p-9e1897de.entry.js → p-2e8006b6.entry.js} +1 -1
  670. package/dist/digi-arbetsformedlingen/{p-f0d6f813.entry.js → p-30e55007.entry.js} +1 -1
  671. package/dist/digi-arbetsformedlingen/{p-30ba7ac3.entry.js → p-324e2b61.entry.js} +1 -1
  672. package/dist/digi-arbetsformedlingen/{p-7d0555f8.entry.js → p-359fee0a.entry.js} +1 -1
  673. package/dist/digi-arbetsformedlingen/{p-d923550e.entry.js → p-379ebecc.entry.js} +1 -1
  674. package/dist/digi-arbetsformedlingen/{p-f6305c8e.entry.js → p-37d4b595.entry.js} +1 -1
  675. package/dist/digi-arbetsformedlingen/{p-b4534304.entry.js → p-3bab24df.entry.js} +1 -1
  676. package/dist/digi-arbetsformedlingen/{p-a1deddb1.entry.js → p-3bcd93ba.entry.js} +1 -1
  677. package/dist/digi-arbetsformedlingen/{p-51b028d6.entry.js → p-3efa3d56.entry.js} +1 -1
  678. package/dist/digi-arbetsformedlingen/{p-85d9d52c.entry.js → p-4035c3f7.entry.js} +1 -1
  679. package/dist/digi-arbetsformedlingen/{p-1a211ec6.entry.js → p-40a04ac5.entry.js} +1 -1
  680. package/dist/digi-arbetsformedlingen/{p-98d5e757.entry.js → p-41c682ae.entry.js} +1 -1
  681. package/dist/digi-arbetsformedlingen/p-43af44df.entry.js +1 -0
  682. package/dist/digi-arbetsformedlingen/{p-07b783f7.entry.js → p-43efb447.entry.js} +1 -1
  683. package/dist/digi-arbetsformedlingen/{p-40abb10c.entry.js → p-453e6b5d.entry.js} +1 -1
  684. package/dist/digi-arbetsformedlingen/{p-49d38827.entry.js → p-457f7f42.entry.js} +1 -1
  685. package/dist/digi-arbetsformedlingen/{p-86c97931.entry.js → p-459c8df2.entry.js} +1 -1
  686. package/dist/digi-arbetsformedlingen/{p-0e18dc69.entry.js → p-45a4ea92.entry.js} +1 -1
  687. package/dist/digi-arbetsformedlingen/{p-f4f5ce7b.entry.js → p-45f4551c.entry.js} +1 -1
  688. package/dist/digi-arbetsformedlingen/{p-178f511d.entry.js → p-46eb8922.entry.js} +1 -1
  689. package/dist/digi-arbetsformedlingen/{p-64fa2f88.entry.js → p-47f207d3.entry.js} +1 -1
  690. package/dist/digi-arbetsformedlingen/{p-1614e405.entry.js → p-48761e64.entry.js} +1 -1
  691. package/dist/digi-arbetsformedlingen/{p-1430039a.entry.js → p-490f0074.entry.js} +1 -1
  692. package/dist/digi-arbetsformedlingen/{p-6a06b14f.entry.js → p-49332a95.entry.js} +1 -1
  693. package/dist/digi-arbetsformedlingen/{p-269e2587.entry.js → p-49782f19.entry.js} +1 -1
  694. package/dist/digi-arbetsformedlingen/{p-333ce113.entry.js → p-4ada21fd.entry.js} +1 -1
  695. package/dist/digi-arbetsformedlingen/{p-1d7ee591.entry.js → p-4d064d71.entry.js} +1 -1
  696. package/dist/digi-arbetsformedlingen/{p-f6b4acb7.entry.js → p-4e3bda0d.entry.js} +1 -1
  697. package/dist/digi-arbetsformedlingen/{p-7e9dec30.entry.js → p-4f2f40d6.entry.js} +1 -1
  698. package/dist/digi-arbetsformedlingen/{p-0003a1b4.entry.js → p-4f35b603.entry.js} +1 -1
  699. package/dist/digi-arbetsformedlingen/{p-b29b6f7a.entry.js → p-4fec4d11.entry.js} +1 -1
  700. package/dist/digi-arbetsformedlingen/{p-7b32d26e.entry.js → p-51c0e248.entry.js} +1 -1
  701. package/dist/digi-arbetsformedlingen/{p-d306dcc2.entry.js → p-5252c24b.entry.js} +1 -1
  702. package/dist/digi-arbetsformedlingen/{p-3c1d20cc.entry.js → p-529ca2b7.entry.js} +1 -1
  703. package/dist/digi-arbetsformedlingen/{p-6e256f0c.entry.js → p-52f3e840.entry.js} +1 -1
  704. package/dist/digi-arbetsformedlingen/{p-bdba8440.entry.js → p-538e5d02.entry.js} +1 -1
  705. package/dist/digi-arbetsformedlingen/p-542fb753.entry.js +1 -0
  706. package/dist/digi-arbetsformedlingen/{p-8e065a49.entry.js → p-578cea6f.entry.js} +1 -1
  707. package/dist/digi-arbetsformedlingen/{p-e3448802.entry.js → p-57b533b0.entry.js} +1 -1
  708. package/dist/digi-arbetsformedlingen/{p-f1541030.entry.js → p-5b2a70a1.entry.js} +1 -1
  709. package/dist/digi-arbetsformedlingen/{p-3642b109.entry.js → p-6309168d.entry.js} +1 -1
  710. package/dist/digi-arbetsformedlingen/{p-5bea0492.entry.js → p-6535c400.entry.js} +1 -1
  711. package/dist/digi-arbetsformedlingen/{p-c345e105.entry.js → p-659aeaa5.entry.js} +1 -1
  712. package/dist/digi-arbetsformedlingen/{p-a8aabd0d.entry.js → p-69562838.entry.js} +1 -1
  713. package/dist/digi-arbetsformedlingen/{p-66623058.entry.js → p-698c5adb.entry.js} +1 -1
  714. package/dist/digi-arbetsformedlingen/{p-7a954634.entry.js → p-6c3ca01e.entry.js} +1 -1
  715. package/dist/digi-arbetsformedlingen/{p-4f1e9553.entry.js → p-6d6225e7.entry.js} +1 -1
  716. package/dist/digi-arbetsformedlingen/{p-3c99eb52.entry.js → p-6ec44695.entry.js} +1 -1
  717. package/dist/digi-arbetsformedlingen/p-6ffe9b19.entry.js +1 -0
  718. package/dist/digi-arbetsformedlingen/{p-6b8f46fc.entry.js → p-705aa251.entry.js} +1 -1
  719. package/dist/digi-arbetsformedlingen/p-71aea960.entry.js +1 -0
  720. package/dist/digi-arbetsformedlingen/{p-2187ef80.entry.js → p-74aa1afa.entry.js} +1 -1
  721. package/dist/digi-arbetsformedlingen/{p-3a954fbe.entry.js → p-74fbe8c7.entry.js} +1 -1
  722. package/dist/digi-arbetsformedlingen/{p-d6db185c.entry.js → p-772712fc.entry.js} +1 -1
  723. package/dist/digi-arbetsformedlingen/{p-f069b6a2.entry.js → p-7dc6f172.entry.js} +1 -1
  724. package/dist/digi-arbetsformedlingen/{p-e55c62c2.entry.js → p-7e1c821e.entry.js} +1 -1
  725. package/dist/digi-arbetsformedlingen/{p-48290eeb.entry.js → p-81161d8d.entry.js} +1 -1
  726. package/dist/digi-arbetsformedlingen/{p-ffd747f1.entry.js → p-817f6af3.entry.js} +1 -1
  727. package/dist/digi-arbetsformedlingen/{p-051495cd.entry.js → p-8382e9d4.entry.js} +1 -1
  728. package/dist/digi-arbetsformedlingen/{p-07cd5ff6.entry.js → p-853360eb.entry.js} +1 -1
  729. package/dist/digi-arbetsformedlingen/{p-00bc2401.entry.js → p-8555ce63.entry.js} +1 -1
  730. package/dist/digi-arbetsformedlingen/{p-a74f6719.entry.js → p-861ff915.entry.js} +1 -1
  731. package/dist/digi-arbetsformedlingen/{p-4f48ceee.entry.js → p-87bab63c.entry.js} +1 -1
  732. package/dist/digi-arbetsformedlingen/{p-adc42d2b.entry.js → p-8825b8f1.entry.js} +1 -1
  733. package/dist/digi-arbetsformedlingen/{p-d8907731.entry.js → p-885f9150.entry.js} +1 -1
  734. package/dist/digi-arbetsformedlingen/{p-fb20fc2b.entry.js → p-89679282.entry.js} +1 -1
  735. package/dist/digi-arbetsformedlingen/{p-368a5bea.entry.js → p-8e8d8313.entry.js} +1 -1
  736. package/dist/digi-arbetsformedlingen/{p-2613c3ab.entry.js → p-8efc073c.entry.js} +1 -1
  737. package/dist/digi-arbetsformedlingen/{p-17b7fa43.entry.js → p-8f276fc4.entry.js} +1 -1
  738. package/dist/digi-arbetsformedlingen/{p-6c1c6267.entry.js → p-8f383022.entry.js} +1 -1
  739. package/dist/digi-arbetsformedlingen/{p-ce760d56.entry.js → p-9259655e.entry.js} +1 -1
  740. package/dist/digi-arbetsformedlingen/{p-a0515a9a.entry.js → p-92a54b01.entry.js} +1 -1
  741. package/dist/digi-arbetsformedlingen/{p-93689a8d.entry.js → p-92d26c07.entry.js} +1 -1
  742. package/dist/digi-arbetsformedlingen/p-935eef7f.entry.js +1 -0
  743. package/dist/digi-arbetsformedlingen/p-945e5b5b.entry.js +1 -0
  744. package/dist/digi-arbetsformedlingen/{p-2eea1661.entry.js → p-9644e43b.entry.js} +1 -1
  745. package/dist/digi-arbetsformedlingen/{p-3424c4a9.entry.js → p-96517693.entry.js} +1 -1
  746. package/dist/digi-arbetsformedlingen/{p-36e544fd.entry.js → p-97e60b1b.entry.js} +1 -1
  747. package/dist/digi-arbetsformedlingen/{p-78001766.entry.js → p-9a18a8ae.entry.js} +1 -1
  748. package/dist/digi-arbetsformedlingen/{p-a8b9a245.entry.js → p-9be13aed.entry.js} +1 -1
  749. package/dist/digi-arbetsformedlingen/{p-44e0607a.entry.js → p-9d433003.entry.js} +1 -1
  750. package/dist/digi-arbetsformedlingen/{p-78e547be.entry.js → p-9e2f0f97.entry.js} +1 -1
  751. package/dist/digi-arbetsformedlingen/{p-b260cce3.entry.js → p-9e9254c1.entry.js} +1 -1
  752. package/dist/digi-arbetsformedlingen/{p-0b4f9561.entry.js → p-9ff7e10c.entry.js} +1 -1
  753. package/dist/digi-arbetsformedlingen/p-CC1-vxoR.js +1 -0
  754. package/dist/digi-arbetsformedlingen/p-CKoZU0-H.js +1 -0
  755. package/dist/digi-arbetsformedlingen/p-CN1mgrt1.js +1 -0
  756. package/dist/digi-arbetsformedlingen/p-CS9j_cSH.js +3 -0
  757. package/dist/digi-arbetsformedlingen/p-Cnyfh_8_.js +1 -0
  758. package/dist/digi-arbetsformedlingen/p-DH_-wpLB.js +1 -0
  759. package/dist/digi-arbetsformedlingen/p-Ooszw6tl.js +1 -0
  760. package/dist/digi-arbetsformedlingen/p-a0a54474.entry.js +1 -0
  761. package/dist/digi-arbetsformedlingen/{p-bdf0adf8.entry.js → p-a31b21bd.entry.js} +1 -1
  762. package/dist/digi-arbetsformedlingen/{p-e6976f43.entry.js → p-a32217f9.entry.js} +1 -1
  763. package/dist/digi-arbetsformedlingen/{p-5f1951f7.entry.js → p-a44d510d.entry.js} +1 -1
  764. package/dist/digi-arbetsformedlingen/{p-21cb5136.entry.js → p-a6fb7907.entry.js} +1 -1
  765. package/dist/digi-arbetsformedlingen/{p-4ca25777.entry.js → p-a748fabb.entry.js} +1 -1
  766. package/dist/digi-arbetsformedlingen/{p-63ef5e5d.entry.js → p-a75547ea.entry.js} +1 -1
  767. package/dist/digi-arbetsformedlingen/{p-165c926d.entry.js → p-a9f03749.entry.js} +1 -1
  768. package/dist/digi-arbetsformedlingen/{p-c28f67ee.entry.js → p-aa767642.entry.js} +1 -1
  769. package/dist/digi-arbetsformedlingen/{p-82a5250b.entry.js → p-ab4a2427.entry.js} +1 -1
  770. package/dist/digi-arbetsformedlingen/{p-aa3d5f76.entry.js → p-ad00e83d.entry.js} +1 -1
  771. package/dist/digi-arbetsformedlingen/{p-63bbb611.entry.js → p-aebbab64.entry.js} +1 -1
  772. package/dist/digi-arbetsformedlingen/{p-728074a0.entry.js → p-afd9680e.entry.js} +1 -1
  773. package/dist/digi-arbetsformedlingen/{p-3f497ad0.entry.js → p-b62f39ed.entry.js} +1 -1
  774. package/dist/digi-arbetsformedlingen/{p-b746c5f8.entry.js → p-b9ae21dd.entry.js} +1 -1
  775. package/dist/digi-arbetsformedlingen/{p-c07dad2f.entry.js → p-ba477e7e.entry.js} +1 -1
  776. package/dist/digi-arbetsformedlingen/{p-9a11a125.entry.js → p-ba5a1c7b.entry.js} +1 -1
  777. package/dist/digi-arbetsformedlingen/{p-2a778743.entry.js → p-bc938418.entry.js} +1 -1
  778. package/dist/digi-arbetsformedlingen/{p-9b03b04a.entry.js → p-bd27e44a.entry.js} +1 -1
  779. package/dist/digi-arbetsformedlingen/p-bdc9714f.entry.js +1 -0
  780. package/dist/digi-arbetsformedlingen/{p-2a4be324.entry.js → p-c1ab6528.entry.js} +1 -1
  781. package/dist/digi-arbetsformedlingen/p-c5161d75.entry.js +1 -0
  782. package/dist/digi-arbetsformedlingen/{p-c93d9638.entry.js → p-c5ce20b1.entry.js} +1 -1
  783. package/dist/digi-arbetsformedlingen/{p-206404ae.entry.js → p-c5cfcbc3.entry.js} +1 -1
  784. package/dist/digi-arbetsformedlingen/{p-62805bf3.entry.js → p-c6d2a5c4.entry.js} +1 -1
  785. package/dist/digi-arbetsformedlingen/{p-eb40c752.entry.js → p-c925e5e1.entry.js} +1 -1
  786. package/dist/digi-arbetsformedlingen/{p-db633609.entry.js → p-ce3101fa.entry.js} +1 -1
  787. package/dist/digi-arbetsformedlingen/{p-10a4e3aa.entry.js → p-d0ad956e.entry.js} +1 -1
  788. package/dist/digi-arbetsformedlingen/{p-dabcf5b4.entry.js → p-d101374f.entry.js} +1 -1
  789. package/dist/digi-arbetsformedlingen/{p-7ce5cc4c.entry.js → p-d472f6f6.entry.js} +1 -1
  790. package/dist/digi-arbetsformedlingen/{p-ac3be3d5.entry.js → p-d4ae28a7.entry.js} +1 -1
  791. package/dist/digi-arbetsformedlingen/{p-800141af.entry.js → p-d609bb3e.entry.js} +1 -1
  792. package/dist/digi-arbetsformedlingen/{p-c5472db0.entry.js → p-d632aca5.entry.js} +1 -1
  793. package/dist/digi-arbetsformedlingen/{p-bb123c61.entry.js → p-d895eee8.entry.js} +1 -1
  794. package/dist/digi-arbetsformedlingen/{p-616af459.entry.js → p-d961a352.entry.js} +1 -1
  795. package/dist/digi-arbetsformedlingen/{p-24028559.entry.js → p-dabad705.entry.js} +1 -1
  796. package/dist/digi-arbetsformedlingen/p-dafb785d.entry.js +1 -0
  797. package/dist/digi-arbetsformedlingen/{p-610230e7.entry.js → p-db93564a.entry.js} +1 -1
  798. package/dist/digi-arbetsformedlingen/{p-6408a7e2.entry.js → p-dff46943.entry.js} +1 -1
  799. package/dist/digi-arbetsformedlingen/{p-4149264b.entry.js → p-dff9f594.entry.js} +1 -1
  800. package/dist/digi-arbetsformedlingen/{p-3267691f.entry.js → p-e021672f.entry.js} +1 -1
  801. package/dist/digi-arbetsformedlingen/{p-f982758f.entry.js → p-e14154ed.entry.js} +1 -1
  802. package/dist/digi-arbetsformedlingen/{p-36c81161.entry.js → p-e402f70a.entry.js} +1 -1
  803. package/dist/digi-arbetsformedlingen/{p-cbf181d6.entry.js → p-e44200d4.entry.js} +1 -1
  804. package/dist/digi-arbetsformedlingen/{p-984ce8c2.entry.js → p-e5188258.entry.js} +1 -1
  805. package/dist/digi-arbetsformedlingen/{p-2d8f7119.entry.js → p-e5dbfe7a.entry.js} +1 -1
  806. package/dist/digi-arbetsformedlingen/p-e60b0f05.entry.js +1 -0
  807. package/dist/digi-arbetsformedlingen/{p-69594580.entry.js → p-e65bcccb.entry.js} +1 -1
  808. package/dist/digi-arbetsformedlingen/{p-d63d588f.entry.js → p-e72a2816.entry.js} +1 -1
  809. package/dist/digi-arbetsformedlingen/{p-50fd3a59.entry.js → p-e7685768.entry.js} +1 -1
  810. package/dist/digi-arbetsformedlingen/{p-6557a26c.entry.js → p-e7b01d8b.entry.js} +1 -1
  811. package/dist/digi-arbetsformedlingen/{p-9717db6a.entry.js → p-e873db5f.entry.js} +1 -1
  812. package/dist/digi-arbetsformedlingen/{p-f4ff6302.entry.js → p-e8f4134c.entry.js} +1 -1
  813. package/dist/digi-arbetsformedlingen/{p-e4b2e4d3.entry.js → p-e9159e30.entry.js} +1 -1
  814. package/dist/digi-arbetsformedlingen/{p-ff0a2f84.entry.js → p-e96c250e.entry.js} +1 -1
  815. package/dist/digi-arbetsformedlingen/{p-fab6da17.entry.js → p-ea137c01.entry.js} +1 -1
  816. package/dist/digi-arbetsformedlingen/{p-f97e4bd6.entry.js → p-ea972f79.entry.js} +1 -1
  817. package/dist/digi-arbetsformedlingen/{p-6c174a9c.entry.js → p-ebe297c6.entry.js} +1 -1
  818. package/dist/digi-arbetsformedlingen/{p-424ad06e.entry.js → p-ec806678.entry.js} +1 -1
  819. package/dist/digi-arbetsformedlingen/p-ed04013b.entry.js +1 -0
  820. package/dist/digi-arbetsformedlingen/p-eeb3a81c.entry.js +1 -0
  821. package/dist/digi-arbetsformedlingen/{p-9145bf7a.entry.js → p-ef45f4ae.entry.js} +1 -1
  822. package/dist/digi-arbetsformedlingen/{p-abeb2ae6.entry.js → p-f0d7f6f0.entry.js} +1 -1
  823. package/dist/digi-arbetsformedlingen/{p-85ce04f2.entry.js → p-f2077cc4.entry.js} +1 -1
  824. package/dist/digi-arbetsformedlingen/{p-cf284ff4.entry.js → p-f53234a6.entry.js} +1 -1
  825. package/dist/digi-arbetsformedlingen/{p-8fe026d9.entry.js → p-f7ae2d03.entry.js} +1 -1
  826. package/dist/digi-arbetsformedlingen/{p-d169bba2.entry.js → p-f92af315.entry.js} +1 -1
  827. package/dist/digi-arbetsformedlingen/{p-2599113d.entry.js → p-f977dfa7.entry.js} +1 -1
  828. package/dist/digi-arbetsformedlingen/p-fb1f9ed2.entry.js +1 -0
  829. package/dist/digi-arbetsformedlingen/{p-65a5d6df.entry.js → p-fdf2bc8f.entry.js} +1 -1
  830. package/dist/digi-arbetsformedlingen/{p-18b52cf2.entry.js → p-fe08fff5.entry.js} +1 -1
  831. package/dist/digi-arbetsformedlingen/{p-2e7b03b0.entry.js → p-fe922ebc.entry.js} +1 -1
  832. package/dist/digi-arbetsformedlingen/p-y5Nm4oWF.js +1 -0
  833. package/dist/digi-arbetsformedlingen/styles/src/index.scss +16 -2
  834. package/dist/digi-arbetsformedlingen/styles/src/themes/_alias-dark.mixin.scss +127 -0
  835. package/dist/digi-arbetsformedlingen/styles/src/{_alias.mixin.scss → themes/_alias-light.mixin.scss} +20 -1
  836. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af18.mixin.scss +20 -1
  837. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af25.mixin.scss +147 -3
  838. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-common.mixin.scss +11 -0
  839. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +380 -203
  840. package/dist/esm/badge-notification-shape.enum-CKoZU0-H.js +8 -0
  841. package/dist/esm/{button-variation.enum-BMQm4N5I.js → button-variation.enum-y5Nm4oWF.js} +1 -7
  842. package/dist/esm/{calendar-week-view-heading-level.enum-BBOpiDGx.js → calendar-week-view-heading-level.enum-DH_-wpLB.js} +1 -8
  843. package/dist/esm/{code-example-variation.enum-DGI7Jkg2.js → code-example-variation.enum-Ooszw6tl.js} +7 -1
  844. package/dist/esm/digi-arbetsformedlingen.js +3 -3
  845. package/dist/esm/digi-badge-notification.entry.js +63 -0
  846. package/dist/esm/digi-badge-status.entry.js +2 -2
  847. package/dist/esm/digi-bar-chart.entry.js +1 -1
  848. package/dist/esm/digi-button_83.entry.js +8771 -0
  849. package/dist/esm/{digi-badge-notification_8.entry.js → digi-calendar-week-view.entry.js} +6 -572
  850. package/dist/esm/digi-chart-line.entry.js +1 -1
  851. package/dist/esm/{digi-code-block_3.entry.js → digi-code-block_2.entry.js} +8 -147
  852. package/dist/esm/digi-code-example.entry.js +8 -8
  853. package/dist/esm/digi-code.entry.js +1 -1
  854. package/dist/esm/digi-dialog.entry.js +7 -26
  855. package/dist/esm/digi-expandable-accordion.entry.js +19 -12
  856. package/dist/esm/digi-expandable-faq.entry.js +1 -1
  857. package/dist/esm/digi-form-error-list.entry.js +7 -26
  858. package/dist/esm/digi-form-input-search.entry.js +2 -4
  859. package/dist/esm/digi-form-radiogroup.entry.js +1 -1
  860. package/dist/esm/digi-form-receipt.entry.js +7 -26
  861. package/dist/esm/digi-form-textarea.entry.js +1 -1
  862. package/dist/esm/digi-icon-accessibility-deaf.entry.js +1 -1
  863. package/dist/esm/digi-icon-apple.entry.js +1 -1
  864. package/dist/esm/digi-icon-archive-outline.entry.js +1 -1
  865. package/dist/esm/digi-icon-archive.entry.js +1 -1
  866. package/dist/esm/digi-icon-arrow-back.entry.js +1 -1
  867. package/dist/esm/digi-icon-arrow-down.entry.js +1 -1
  868. package/dist/esm/digi-icon-arrow-left.entry.js +1 -1
  869. package/dist/esm/digi-icon-arrow-right.entry.js +1 -1
  870. package/dist/esm/digi-icon-arrow-sign-in.entry.js +1 -1
  871. package/dist/esm/digi-icon-arrow-sign-out.entry.js +1 -1
  872. package/dist/esm/digi-icon-arrow-up.entry.js +1 -1
  873. package/dist/esm/digi-icon-at.entry.js +1 -1
  874. package/dist/esm/digi-icon-bell.entry.js +1 -1
  875. package/dist/esm/digi-icon-book.entry.js +1 -1
  876. package/dist/esm/digi-icon-bookmark-outline.entry.js +1 -1
  877. package/dist/esm/digi-icon-bookmark-solid.entry.js +1 -1
  878. package/dist/esm/digi-icon-bubble-ellipsis.entry.js +1 -1
  879. package/dist/esm/digi-icon-bubble.entry.js +1 -1
  880. package/dist/esm/digi-icon-building-outline.entry.js +1 -1
  881. package/dist/esm/digi-icon-building-solid.entry.js +1 -1
  882. package/dist/esm/digi-icon-bullseye.entry.js +1 -1
  883. package/dist/esm/digi-icon-calculator-solid.entry.js +1 -1
  884. package/dist/esm/digi-icon-calendar-alt-alert.entry.js +1 -1
  885. package/dist/esm/digi-icon-calendar.entry.js +1 -1
  886. package/dist/esm/digi-icon-caret-circle-right.entry.js +1 -1
  887. package/dist/esm/digi-icon-caret-down_2.entry.js +1 -1
  888. package/dist/esm/digi-icon-caret-left.entry.js +1 -1
  889. package/dist/esm/digi-icon-caret-right.entry.js +1 -1
  890. package/dist/esm/digi-icon-chart_2.entry.js +1 -1
  891. package/dist/esm/digi-icon-chat.entry.js +1 -1
  892. package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +1 -1
  893. package/dist/esm/digi-icon-checklist.entry.js +1 -1
  894. package/dist/esm/digi-icon-chevron-up.entry.js +1 -1
  895. package/dist/esm/digi-icon-clock.entry.js +1 -1
  896. package/dist/esm/digi-icon-communication-play-solid.entry.js +1 -1
  897. package/dist/esm/digi-icon-compress-alt.entry.js +1 -1
  898. package/dist/esm/digi-icon-comunication-case.entry.js +1 -1
  899. package/dist/esm/digi-icon-comunication-flag.entry.js +1 -1
  900. package/dist/esm/digi-icon-comunication-graduate.entry.js +1 -1
  901. package/dist/esm/digi-icon-comunication-play.entry.js +1 -1
  902. package/dist/esm/digi-icon-cooperation.entry.js +1 -1
  903. package/dist/esm/digi-icon-danger-outline.entry.js +1 -1
  904. package/dist/esm/digi-icon-download.entry.js +1 -1
  905. package/dist/esm/digi-icon-dxa.entry.js +1 -1
  906. package/dist/esm/digi-icon-edit.entry.js +1 -1
  907. package/dist/esm/digi-icon-ellipsis.entry.js +1 -1
  908. package/dist/esm/digi-icon-envelope-filled.entry.js +1 -1
  909. package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +1 -1
  910. package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +1 -1
  911. package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +1 -1
  912. package/dist/esm/digi-icon-exclamation-triangle.entry.js +1 -1
  913. package/dist/esm/digi-icon-expand-alt.entry.js +1 -1
  914. package/dist/esm/digi-icon-eye-slash.entry.js +1 -1
  915. package/dist/esm/digi-icon-eye.entry.js +1 -1
  916. package/dist/esm/digi-icon-facebook-square.entry.js +1 -1
  917. package/dist/esm/digi-icon-file-add.entry.js +1 -1
  918. package/dist/esm/digi-icon-file-document.entry.js +1 -1
  919. package/dist/esm/digi-icon-file-excel.entry.js +1 -1
  920. package/dist/esm/digi-icon-file-export.entry.js +1 -1
  921. package/dist/esm/digi-icon-file-governing.entry.js +1 -1
  922. package/dist/esm/digi-icon-file-pdf.entry.js +1 -1
  923. package/dist/esm/digi-icon-file-powerpoint.entry.js +1 -1
  924. package/dist/esm/digi-icon-file-remove.entry.js +1 -1
  925. package/dist/esm/digi-icon-file-word.entry.js +1 -1
  926. package/dist/esm/digi-icon-film.entry.js +1 -1
  927. package/dist/esm/digi-icon-filter.entry.js +1 -1
  928. package/dist/esm/digi-icon-folder-add.entry.js +1 -1
  929. package/dist/esm/digi-icon-folder-directory.entry.js +1 -1
  930. package/dist/esm/digi-icon-folder-open.entry.js +1 -1
  931. package/dist/esm/digi-icon-folder.entry.js +1 -1
  932. package/dist/esm/digi-icon-globe-filled.entry.js +1 -1
  933. package/dist/esm/digi-icon-headphones.entry.js +1 -1
  934. package/dist/esm/digi-icon-heart-solid.entry.js +1 -1
  935. package/dist/esm/digi-icon-heart.entry.js +1 -1
  936. package/dist/esm/digi-icon-history.entry.js +1 -1
  937. package/dist/esm/digi-icon-home.entry.js +1 -1
  938. package/dist/esm/digi-icon-image.entry.js +1 -1
  939. package/dist/esm/digi-icon-info-circle-solid.entry.js +1 -1
  940. package/dist/esm/digi-icon-instagram.entry.js +1 -1
  941. package/dist/esm/digi-icon-job-suggestion.entry.js +1 -1
  942. package/dist/esm/digi-icon-language-outline.entry.js +1 -1
  943. package/dist/esm/digi-icon-language.entry.js +1 -1
  944. package/dist/esm/digi-icon-laptop-phone.entry.js +1 -1
  945. package/dist/esm/digi-icon-lattlast.entry.js +1 -1
  946. package/dist/esm/digi-icon-licence-bus.entry.js +1 -1
  947. package/dist/esm/digi-icon-licence-car.entry.js +1 -1
  948. package/dist/esm/digi-icon-licence-motorcycle.entry.js +1 -1
  949. package/dist/esm/digi-icon-licence-truck.entry.js +1 -1
  950. package/dist/esm/digi-icon-lightbulb.entry.js +1 -1
  951. package/dist/esm/digi-icon-linkedin-in.entry.js +1 -1
  952. package/dist/esm/digi-icon-lock.entry.js +1 -1
  953. package/dist/esm/digi-icon-marker-filled.entry.js +1 -1
  954. package/dist/esm/digi-icon-marker.entry.js +1 -1
  955. package/dist/esm/digi-icon-media-course.entry.js +1 -1
  956. package/dist/esm/digi-icon-media-podcast.entry.js +1 -1
  957. package/dist/esm/digi-icon-microphone-off.entry.js +1 -1
  958. package/dist/esm/digi-icon-microphone.entry.js +1 -1
  959. package/dist/esm/digi-icon-move.entry.js +1 -1
  960. package/dist/esm/digi-icon-online-interview.entry.js +1 -1
  961. package/dist/esm/digi-icon-online-meeting.entry.js +1 -1
  962. package/dist/esm/digi-icon-online-task.entry.js +1 -1
  963. package/dist/esm/digi-icon-open-source.entry.js +1 -1
  964. package/dist/esm/digi-icon-palette.entry.js +1 -1
  965. package/dist/esm/digi-icon-paste.entry.js +1 -1
  966. package/dist/esm/digi-icon-pen.entry.js +1 -1
  967. package/dist/esm/digi-icon-phone-hangup.entry.js +1 -1
  968. package/dist/esm/digi-icon-phone.entry.js +1 -1
  969. package/dist/esm/digi-icon-print.entry.js +1 -1
  970. package/dist/esm/digi-icon-read.entry.js +1 -1
  971. package/dist/esm/digi-icon-redo.entry.js +1 -1
  972. package/dist/esm/digi-icon-scale.entry.js +1 -1
  973. package/dist/esm/digi-icon-screensharing-off.entry.js +1 -1
  974. package/dist/esm/digi-icon-screensharing.entry.js +1 -1
  975. package/dist/esm/digi-icon-search.entry.js +1 -1
  976. package/dist/esm/digi-icon-send-outline.entry.js +1 -1
  977. package/dist/esm/digi-icon-send-solid.entry.js +1 -1
  978. package/dist/esm/digi-icon-settings.entry.js +1 -1
  979. package/dist/esm/digi-icon-share-alt.entry.js +1 -1
  980. package/dist/esm/digi-icon-share-chain.entry.js +1 -1
  981. package/dist/esm/digi-icon-sliders-h.entry.js +1 -1
  982. package/dist/esm/digi-icon-sokkandidat.entry.js +1 -1
  983. package/dist/esm/digi-icon-sort-down.entry.js +1 -1
  984. package/dist/esm/digi-icon-sort-up.entry.js +1 -1
  985. package/dist/esm/digi-icon-sort.entry.js +1 -1
  986. package/dist/esm/digi-icon-star-reg.entry.js +1 -1
  987. package/dist/esm/digi-icon-star.entry.js +1 -1
  988. package/dist/esm/digi-icon-suitcase-outline.entry.js +1 -1
  989. package/dist/esm/digi-icon-suitcase-solid.entry.js +1 -1
  990. package/dist/esm/digi-icon-system-assistance.entry.js +1 -1
  991. package/dist/esm/digi-icon-table-column.entry.js +1 -1
  992. package/dist/esm/digi-icon-table-row.entry.js +1 -1
  993. package/dist/esm/digi-icon-task-done.entry.js +1 -1
  994. package/dist/esm/digi-icon-toggle-off.entry.js +1 -1
  995. package/dist/esm/digi-icon-toggle-on.entry.js +1 -1
  996. package/dist/esm/digi-icon-twitter.entry.js +1 -1
  997. package/dist/esm/digi-icon-tyck-till.entry.js +1 -1
  998. package/dist/esm/digi-icon-unlock.entry.js +1 -1
  999. package/dist/esm/digi-icon-update.entry.js +1 -1
  1000. package/dist/esm/digi-icon-upload.entry.js +1 -1
  1001. package/dist/esm/digi-icon-user-add.entry.js +1 -1
  1002. package/dist/esm/digi-icon-user-alt.entry.js +1 -1
  1003. package/dist/esm/digi-icon-user-edit.entry.js +1 -1
  1004. package/dist/esm/digi-icon-users-solid.entry.js +1 -1
  1005. package/dist/esm/digi-icon-videocamera-off.entry.js +1 -1
  1006. package/dist/esm/digi-icon-videocamera.entry.js +1 -1
  1007. package/dist/esm/digi-icon-volume.entry.js +1 -1
  1008. package/dist/esm/digi-icon-web-tv.entry.js +1 -1
  1009. package/dist/esm/digi-icon-wifi-signal0.entry.js +1 -1
  1010. package/dist/esm/digi-icon-wifi-signal1.entry.js +1 -1
  1011. package/dist/esm/digi-icon-wifi-signal2.entry.js +1 -1
  1012. package/dist/esm/digi-icon-wifi-signal3.entry.js +1 -1
  1013. package/dist/esm/digi-icon-window.entry.js +1 -1
  1014. package/dist/esm/digi-icon-x-button.entry.js +1 -1
  1015. package/dist/esm/digi-icon-youtube.entry.js +1 -1
  1016. package/dist/esm/digi-list.entry.js +1 -1
  1017. package/dist/esm/digi-loader-skeleton.entry.js +1 -1
  1018. package/dist/esm/digi-loader-spinner.entry.js +1 -1
  1019. package/dist/esm/digi-media-figure.entry.js +1 -1
  1020. package/dist/esm/digi-navigation-breadcrumbs.entry.js +1 -1
  1021. package/dist/esm/digi-navigation-pagination.entry.js +7 -26
  1022. package/dist/esm/digi-navigation-sidebar.entry.js +1 -1
  1023. package/dist/esm/digi-notification-error-page.entry.js +7 -26
  1024. package/dist/esm/digi-progress-circle.entry.js +1 -1
  1025. package/dist/esm/digi-progress-list-item.entry.js +2 -2
  1026. package/dist/esm/digi-progress-list.entry.js +1 -1
  1027. package/dist/esm/digi-progressbar.entry.js +1 -1
  1028. package/dist/esm/digi-quote.entry.js +1 -1
  1029. package/dist/esm/digi-table.entry.js +1 -1
  1030. package/dist/esm/digi-tablist-panel.entry.js +18 -0
  1031. package/dist/esm/digi-tablist.entry.js +310 -0
  1032. package/dist/esm/digi-tag.entry.js +1 -1
  1033. package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
  1034. package/dist/esm/digi-tools-feedback-rating.entry.js +1 -1
  1035. package/dist/esm/digi-tools-feedback.entry.js +7 -26
  1036. package/dist/esm/digi-typography-meta.entry.js +1 -1
  1037. package/dist/esm/digi-typography-time.entry.js +1 -1
  1038. package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
  1039. package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
  1040. package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
  1041. package/dist/esm/digi-util-mutation-observer.entry.js +1 -1
  1042. package/dist/esm/digi-util-resize-observer.entry.js +1 -1
  1043. package/dist/esm/{form-input-type.enum-BSJH8Lpg.js → form-input-type.enum-CN1mgrt1.js} +15 -1
  1044. package/dist/esm/{index-BnKuq1L7.js → index-CS9j_cSH.js} +17 -233
  1045. package/dist/esm/{index-B1Je6g2n.js → index-Cnyfh_8_.js} +170 -3
  1046. package/dist/esm/index.js +6 -25
  1047. package/dist/esm/loader.js +3 -3
  1048. package/dist/esm/typography-variation.enum-CC1-vxoR.js +511 -0
  1049. package/dist/types/components/_info-card/info-card/info-card.d.ts +2 -2
  1050. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  1051. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  1052. package/dist/types/components.d.ts +17 -4
  1053. package/dist/types/enums.d.ts +1 -0
  1054. package/hydrate/index.js +89 -57
  1055. package/hydrate/index.mjs +89 -57
  1056. package/package.json +1 -1
  1057. package/components/p-BYefdyRg.js +0 -187
  1058. package/components/p-BxG1tqmk.js +0 -172
  1059. package/components/p-DTbZcA8e.js +0 -72
  1060. package/components/p-DpDyNuVC.js +0 -7
  1061. package/dist/cjs/button-type.enum-2UH0KkO-.js +0 -8
  1062. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2670
  1063. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -490
  1064. package/dist/cjs/digi-context-menu.cjs.entry.js +0 -241
  1065. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -119
  1066. package/dist/cjs/digi-footer-card.cjs.entry.js +0 -30
  1067. package/dist/cjs/digi-footer.cjs.entry.js +0 -78
  1068. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -152
  1069. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -141
  1070. package/dist/cjs/digi-form-file-upload.cjs.entry.js +0 -633
  1071. package/dist/cjs/digi-form-filter.cjs.entry.js +0 -257
  1072. package/dist/cjs/digi-form-input.cjs.entry.js +0 -205
  1073. package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -147
  1074. package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -648
  1075. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -201
  1076. package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -98
  1077. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -23
  1078. package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -235
  1079. package/dist/cjs/digi-header-notification.cjs.entry.js +0 -19
  1080. package/dist/cjs/digi-header.cjs.entry.js +0 -114
  1081. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +0 -28
  1082. package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -28
  1083. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -28
  1084. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +0 -97
  1085. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -28
  1086. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -28
  1087. package/dist/cjs/digi-icon-copy.cjs.entry.js +0 -28
  1088. package/dist/cjs/digi-icon-envelope.cjs.entry.js +0 -28
  1089. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +0 -52
  1090. package/dist/cjs/digi-icon-globe.cjs.entry.js +0 -28
  1091. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +0 -143
  1092. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -51
  1093. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +0 -97
  1094. package/dist/cjs/digi-icon-sign.cjs.entry.js +0 -28
  1095. package/dist/cjs/digi-icon-spinner.cjs.entry.js +0 -29
  1096. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +0 -51
  1097. package/dist/cjs/digi-icon-x.cjs.entry.js +0 -28
  1098. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +0 -17
  1099. package/dist/cjs/digi-info-card-multi.cjs.entry.js +0 -60
  1100. package/dist/cjs/digi-info-card.cjs.entry.js +0 -90
  1101. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -101
  1102. package/dist/cjs/digi-layout-columns.cjs.entry.js +0 -37
  1103. package/dist/cjs/digi-link-button.cjs.entry.js +0 -69
  1104. package/dist/cjs/digi-link-internal.cjs.entry.js +0 -39
  1105. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  1106. package/dist/cjs/digi-logo.cjs.entry.js +0 -54
  1107. package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -180
  1108. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +0 -29
  1109. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -167
  1110. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -200
  1111. package/dist/cjs/digi-notification-alert.cjs.entry.js +0 -135
  1112. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -153
  1113. package/dist/cjs/digi-tag-media.cjs.entry.js +0 -47
  1114. package/dist/cjs/digi-title-logo.cjs.entry.js +0 -128
  1115. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -29
  1116. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -46
  1117. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -17
  1118. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -45
  1119. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -81
  1120. package/dist/cjs/expandable-faq-item-variation.enum-aKkYAQgd.js +0 -18
  1121. package/dist/cjs/footer-card-variation.enum-BPnpkC45.js +0 -8
  1122. package/dist/cjs/form-checkbox-variation.enum-BfOGU4Qt.js +0 -19
  1123. package/dist/cjs/form-file-upload-variation.enum-xcEOoggr.js +0 -24
  1124. package/dist/cjs/form-input-search-variation.enum-VVfvlVeM.js +0 -8
  1125. package/dist/cjs/form-input-variation.enum-kpoXNUuI.js +0 -29
  1126. package/dist/cjs/form-select-variation.enum-e6wjWyaS.js +0 -16
  1127. package/dist/cjs/form-validation-message-variation.enum-BA5nmCiw.js +0 -8
  1128. package/dist/cjs/index-Snltmefx.js +0 -174
  1129. package/dist/cjs/index-r0sb9TCr.js +0 -66
  1130. package/dist/cjs/info-card-multi-type.enum-pqhvdrsN.js +0 -8
  1131. package/dist/cjs/info-card-variation.enum-B1cqmknX.js +0 -24
  1132. package/dist/cjs/layout-columns-variation.enum-OgD-hvRN.js +0 -23
  1133. package/dist/cjs/layout-container-max-width.enum-DqWtU7WK.js +0 -21
  1134. package/dist/cjs/link-button-variation.enum-03cHZQxx.js +0 -9
  1135. package/dist/cjs/logo-color.enum-BJZv-f6R.js +0 -7
  1136. package/dist/cjs/navigation-vertical-menu-variation.enum-7IUICId3.js +0 -13
  1137. package/dist/cjs/progress-indicator-heading-level.enum-CNarUduE.js +0 -23
  1138. package/dist/cjs/tag-media-icon.enum-DzhiwvjI.js +0 -11
  1139. package/dist/cjs/tools-theme-provider.brand.enum-BzduvCUY.js +0 -7
  1140. package/dist/cjs/typography-heading-jumbo-variation.enum-Di1Jeh0G.js +0 -17
  1141. package/dist/cjs/typography-variation.enum-BDSt7CVI.js +0 -238
  1142. package/dist/digi-arbetsformedlingen/p-037a35bd.entry.js +0 -1
  1143. package/dist/digi-arbetsformedlingen/p-0476f89d.entry.js +0 -1
  1144. package/dist/digi-arbetsformedlingen/p-0d72dd25.entry.js +0 -1
  1145. package/dist/digi-arbetsformedlingen/p-0e4c3542.entry.js +0 -1
  1146. package/dist/digi-arbetsformedlingen/p-0f7e995a.entry.js +0 -1
  1147. package/dist/digi-arbetsformedlingen/p-10581b5d.entry.js +0 -1
  1148. package/dist/digi-arbetsformedlingen/p-2346e439.entry.js +0 -1
  1149. package/dist/digi-arbetsformedlingen/p-267a1c32.entry.js +0 -1
  1150. package/dist/digi-arbetsformedlingen/p-26f6a310.entry.js +0 -1
  1151. package/dist/digi-arbetsformedlingen/p-2957148d.entry.js +0 -1
  1152. package/dist/digi-arbetsformedlingen/p-296301d4.entry.js +0 -1
  1153. package/dist/digi-arbetsformedlingen/p-2ca1bcdd.entry.js +0 -1
  1154. package/dist/digi-arbetsformedlingen/p-322ff73a.entry.js +0 -1
  1155. package/dist/digi-arbetsformedlingen/p-3239fb1a.entry.js +0 -1
  1156. package/dist/digi-arbetsformedlingen/p-375ea6f8.entry.js +0 -1
  1157. package/dist/digi-arbetsformedlingen/p-3b42582a.entry.js +0 -1
  1158. package/dist/digi-arbetsformedlingen/p-3bdcc894.entry.js +0 -1
  1159. package/dist/digi-arbetsformedlingen/p-3c1f9629.entry.js +0 -1
  1160. package/dist/digi-arbetsformedlingen/p-41b2fd4b.entry.js +0 -1
  1161. package/dist/digi-arbetsformedlingen/p-4384644b.entry.js +0 -1
  1162. package/dist/digi-arbetsformedlingen/p-47513f97.entry.js +0 -1
  1163. package/dist/digi-arbetsformedlingen/p-4ddcae7b.entry.js +0 -1
  1164. package/dist/digi-arbetsformedlingen/p-4smNltRI.js +0 -1
  1165. package/dist/digi-arbetsformedlingen/p-569c628c.entry.js +0 -1
  1166. package/dist/digi-arbetsformedlingen/p-5be00cb0.entry.js +0 -1
  1167. package/dist/digi-arbetsformedlingen/p-6-MpaVf8.js +0 -1
  1168. package/dist/digi-arbetsformedlingen/p-62c7ee21.entry.js +0 -1
  1169. package/dist/digi-arbetsformedlingen/p-668d38d9.entry.js +0 -1
  1170. package/dist/digi-arbetsformedlingen/p-66f34ca5.entry.js +0 -1
  1171. package/dist/digi-arbetsformedlingen/p-6931825c.entry.js +0 -1
  1172. package/dist/digi-arbetsformedlingen/p-6cb1c6ea.entry.js +0 -1
  1173. package/dist/digi-arbetsformedlingen/p-6f1671ed.entry.js +0 -1
  1174. package/dist/digi-arbetsformedlingen/p-71a36a21.entry.js +0 -1
  1175. package/dist/digi-arbetsformedlingen/p-71a8478d.entry.js +0 -1
  1176. package/dist/digi-arbetsformedlingen/p-7688502e.entry.js +0 -1
  1177. package/dist/digi-arbetsformedlingen/p-7d59ccc3.entry.js +0 -1
  1178. package/dist/digi-arbetsformedlingen/p-8a01b372.entry.js +0 -1
  1179. package/dist/digi-arbetsformedlingen/p-91265ee0.entry.js +0 -1
  1180. package/dist/digi-arbetsformedlingen/p-99f6ee4e.entry.js +0 -1
  1181. package/dist/digi-arbetsformedlingen/p-9a4eecde.entry.js +0 -1
  1182. package/dist/digi-arbetsformedlingen/p-9df345c4.entry.js +0 -1
  1183. package/dist/digi-arbetsformedlingen/p-B8hpiXmh.js +0 -1
  1184. package/dist/digi-arbetsformedlingen/p-BBOpiDGx.js +0 -1
  1185. package/dist/digi-arbetsformedlingen/p-BMQm4N5I.js +0 -1
  1186. package/dist/digi-arbetsformedlingen/p-BSJH8Lpg.js +0 -1
  1187. package/dist/digi-arbetsformedlingen/p-BfyJgcLA.js +0 -1
  1188. package/dist/digi-arbetsformedlingen/p-BixPaBHw.js +0 -1
  1189. package/dist/digi-arbetsformedlingen/p-BnKuq1L7.js +0 -3
  1190. package/dist/digi-arbetsformedlingen/p-BvWKyXb_.js +0 -1
  1191. package/dist/digi-arbetsformedlingen/p-BvcVTm_t.js +0 -1
  1192. package/dist/digi-arbetsformedlingen/p-C6B2KRZo.js +0 -1
  1193. package/dist/digi-arbetsformedlingen/p-CPzcg9n3.js +0 -1
  1194. package/dist/digi-arbetsformedlingen/p-CgSR-RTl.js +0 -1
  1195. package/dist/digi-arbetsformedlingen/p-Chk3GCYK.js +0 -1
  1196. package/dist/digi-arbetsformedlingen/p-CkIb3cUS.js +0 -1
  1197. package/dist/digi-arbetsformedlingen/p-CuhrrYGE.js +0 -1
  1198. package/dist/digi-arbetsformedlingen/p-DCS1KcvC.js +0 -1
  1199. package/dist/digi-arbetsformedlingen/p-DE6sqPn9.js +0 -1
  1200. package/dist/digi-arbetsformedlingen/p-DGI7Jkg2.js +0 -1
  1201. package/dist/digi-arbetsformedlingen/p-DJCufAhy.js +0 -1
  1202. package/dist/digi-arbetsformedlingen/p-DNjGvZvz.js +0 -1
  1203. package/dist/digi-arbetsformedlingen/p-DPkRL9Bv.js +0 -1
  1204. package/dist/digi-arbetsformedlingen/p-DShzaNrQ.js +0 -1
  1205. package/dist/digi-arbetsformedlingen/p-DfWZa2Wv.js +0 -1
  1206. package/dist/digi-arbetsformedlingen/p-DpDyNuVC.js +0 -1
  1207. package/dist/digi-arbetsformedlingen/p-DzSu1-K0.js +0 -1
  1208. package/dist/digi-arbetsformedlingen/p-_ycZeBN4.js +0 -1
  1209. package/dist/digi-arbetsformedlingen/p-a0ad3ada.entry.js +0 -1
  1210. package/dist/digi-arbetsformedlingen/p-a3f3f306.entry.js +0 -1
  1211. package/dist/digi-arbetsformedlingen/p-a5118bc8.entry.js +0 -1
  1212. package/dist/digi-arbetsformedlingen/p-a75b1e3b.entry.js +0 -1
  1213. package/dist/digi-arbetsformedlingen/p-a9a1bf57.entry.js +0 -1
  1214. package/dist/digi-arbetsformedlingen/p-ad329338.entry.js +0 -1
  1215. package/dist/digi-arbetsformedlingen/p-ae8cda59.entry.js +0 -1
  1216. package/dist/digi-arbetsformedlingen/p-af474b8b.entry.js +0 -1
  1217. package/dist/digi-arbetsformedlingen/p-beebbc90.entry.js +0 -1
  1218. package/dist/digi-arbetsformedlingen/p-c7ade486.entry.js +0 -1
  1219. package/dist/digi-arbetsformedlingen/p-c7fcf4c0.entry.js +0 -1
  1220. package/dist/digi-arbetsformedlingen/p-d065e751.entry.js +0 -1
  1221. package/dist/digi-arbetsformedlingen/p-d07a1377.entry.js +0 -1
  1222. package/dist/digi-arbetsformedlingen/p-d0b3c35b.entry.js +0 -1
  1223. package/dist/digi-arbetsformedlingen/p-d150094c.entry.js +0 -1
  1224. package/dist/digi-arbetsformedlingen/p-d1e0380b.entry.js +0 -1
  1225. package/dist/digi-arbetsformedlingen/p-d55fca6c.entry.js +0 -1
  1226. package/dist/digi-arbetsformedlingen/p-d9f05bc7.entry.js +0 -1
  1227. package/dist/digi-arbetsformedlingen/p-df8efa59.entry.js +0 -1
  1228. package/dist/digi-arbetsformedlingen/p-e2b0b070.entry.js +0 -1
  1229. package/dist/digi-arbetsformedlingen/p-e376ef67.entry.js +0 -1
  1230. package/dist/digi-arbetsformedlingen/p-e52b0375.entry.js +0 -1
  1231. package/dist/digi-arbetsformedlingen/p-e7b311da.entry.js +0 -1
  1232. package/dist/digi-arbetsformedlingen/p-e867c5e1.entry.js +0 -1
  1233. package/dist/digi-arbetsformedlingen/p-eab48785.entry.js +0 -1
  1234. package/dist/digi-arbetsformedlingen/p-ebfcc08b.entry.js +0 -1
  1235. package/dist/digi-arbetsformedlingen/p-f63550f1.entry.js +0 -1
  1236. package/dist/digi-arbetsformedlingen/p-f866ad1f.entry.js +0 -1
  1237. package/dist/digi-arbetsformedlingen/p-fbea2a99.entry.js +0 -1
  1238. package/dist/digi-arbetsformedlingen/p-ff94e924.entry.js +0 -1
  1239. package/dist/digi-arbetsformedlingen/p-ffe8578c.entry.js +0 -1
  1240. package/dist/digi-arbetsformedlingen/p-xwICssEK.js +0 -1
  1241. package/dist/esm/button-type.enum-DShzaNrQ.js +0 -8
  1242. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2668
  1243. package/dist/esm/digi-calendar_2.entry.js +0 -487
  1244. package/dist/esm/digi-context-menu.entry.js +0 -239
  1245. package/dist/esm/digi-expandable-faq-item.entry.js +0 -117
  1246. package/dist/esm/digi-footer-card.entry.js +0 -28
  1247. package/dist/esm/digi-footer.entry.js +0 -76
  1248. package/dist/esm/digi-form-category-filter.entry.js +0 -150
  1249. package/dist/esm/digi-form-checkbox.entry.js +0 -139
  1250. package/dist/esm/digi-form-file-upload.entry.js +0 -631
  1251. package/dist/esm/digi-form-filter.entry.js +0 -255
  1252. package/dist/esm/digi-form-input.entry.js +0 -203
  1253. package/dist/esm/digi-form-label_3.entry.js +0 -143
  1254. package/dist/esm/digi-form-select-filter.entry.js +0 -646
  1255. package/dist/esm/digi-form-select_2.entry.js +0 -198
  1256. package/dist/esm/digi-header-avatar.entry.js +0 -96
  1257. package/dist/esm/digi-header-navigation-item.entry.js +0 -21
  1258. package/dist/esm/digi-header-navigation.entry.js +0 -233
  1259. package/dist/esm/digi-header-notification.entry.js +0 -17
  1260. package/dist/esm/digi-header.entry.js +0 -112
  1261. package/dist/esm/digi-icon-accessibility-universal.entry.js +0 -26
  1262. package/dist/esm/digi-icon-bars.entry.js +0 -26
  1263. package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
  1264. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +0 -92
  1265. package/dist/esm/digi-icon-check.entry.js +0 -26
  1266. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  1267. package/dist/esm/digi-icon-copy.entry.js +0 -26
  1268. package/dist/esm/digi-icon-envelope.entry.js +0 -26
  1269. package/dist/esm/digi-icon-external-link-alt_2.entry.js +0 -49
  1270. package/dist/esm/digi-icon-globe.entry.js +0 -26
  1271. package/dist/esm/digi-icon-list-ul_6.entry.js +0 -136
  1272. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  1273. package/dist/esm/digi-icon-notification-error_4.entry.js +0 -92
  1274. package/dist/esm/digi-icon-sign.entry.js +0 -26
  1275. package/dist/esm/digi-icon-spinner.entry.js +0 -27
  1276. package/dist/esm/digi-icon-validation-error_2.entry.js +0 -48
  1277. package/dist/esm/digi-icon-x.entry.js +0 -26
  1278. package/dist/esm/digi-info-card-multi-container.entry.js +0 -15
  1279. package/dist/esm/digi-info-card-multi.entry.js +0 -58
  1280. package/dist/esm/digi-info-card.entry.js +0 -88
  1281. package/dist/esm/digi-layout-block_2.entry.js +0 -98
  1282. package/dist/esm/digi-layout-columns.entry.js +0 -35
  1283. package/dist/esm/digi-link-button.entry.js +0 -67
  1284. package/dist/esm/digi-link-internal.entry.js +0 -37
  1285. package/dist/esm/digi-link.entry.js +0 -73
  1286. package/dist/esm/digi-logo.entry.js +0 -52
  1287. package/dist/esm/digi-media-image_2.entry.js +0 -177
  1288. package/dist/esm/digi-navigation-sidebar-button.entry.js +0 -27
  1289. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -165
  1290. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -198
  1291. package/dist/esm/digi-notification-alert.entry.js +0 -133
  1292. package/dist/esm/digi-progress-indicator.entry.js +0 -151
  1293. package/dist/esm/digi-tag-media.entry.js +0 -45
  1294. package/dist/esm/digi-title-logo.entry.js +0 -126
  1295. package/dist/esm/digi-tools-theme-provider.entry.js +0 -27
  1296. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -44
  1297. package/dist/esm/digi-typography-preamble.entry.js +0 -15
  1298. package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -43
  1299. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  1300. package/dist/esm/expandable-faq-item-variation.enum-C6B2KRZo.js +0 -18
  1301. package/dist/esm/footer-card-variation.enum-DzSu1-K0.js +0 -8
  1302. package/dist/esm/form-checkbox-variation.enum-6-MpaVf8.js +0 -19
  1303. package/dist/esm/form-file-upload-variation.enum-BfyJgcLA.js +0 -24
  1304. package/dist/esm/form-input-search-variation.enum-BvWKyXb_.js +0 -8
  1305. package/dist/esm/form-input-variation.enum-DfWZa2Wv.js +0 -29
  1306. package/dist/esm/form-select-variation.enum-DCS1KcvC.js +0 -16
  1307. package/dist/esm/form-validation-message-variation.enum-B8hpiXmh.js +0 -8
  1308. package/dist/esm/index-BixPaBHw.js +0 -170
  1309. package/dist/esm/index-BsIL3T_0.js +0 -63
  1310. package/dist/esm/info-card-multi-type.enum-CkIb3cUS.js +0 -8
  1311. package/dist/esm/info-card-variation.enum-_ycZeBN4.js +0 -24
  1312. package/dist/esm/layout-columns-variation.enum-DJCufAhy.js +0 -23
  1313. package/dist/esm/layout-container-max-width.enum-CuhrrYGE.js +0 -21
  1314. package/dist/esm/link-button-variation.enum-CPzcg9n3.js +0 -9
  1315. package/dist/esm/logo-color.enum-Chk3GCYK.js +0 -7
  1316. package/dist/esm/navigation-vertical-menu-variation.enum-DPkRL9Bv.js +0 -13
  1317. package/dist/esm/progress-indicator-heading-level.enum-DE6sqPn9.js +0 -23
  1318. package/dist/esm/tag-media-icon.enum-BvcVTm_t.js +0 -11
  1319. package/dist/esm/tools-theme-provider.brand.enum-DpDyNuVC.js +0 -7
  1320. package/dist/esm/typography-heading-jumbo-variation.enum-DNjGvZvz.js +0 -17
  1321. package/dist/esm/typography-variation.enum-4smNltRI.js +0 -238
@@ -1,2668 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, d as getElement } from './index-BnKuq1L7.js';
2
- import { _ as _t } from './text-DsO1BTml.js';
3
- import './calendar-week-view-heading-level.enum-BBOpiDGx.js';
4
- import { C as CalendarDatepickerValidation } from './typography-variation.enum-4smNltRI.js';
5
- import './badge-status-variation.enum-C0A-p3cU.js';
6
- import './button-variation.enum-BMQm4N5I.js';
7
- import './button-type.enum-DShzaNrQ.js';
8
- import './bar-chart-variation.enum-DPeoHh1J.js';
9
- import './code-example-variation.enum-DGI7Jkg2.js';
10
- import './code-variation.enum-qc6KRZue.js';
11
- import './expandable-accordion-header-level.enum-DwNlf6Sh.js';
12
- import './expandable-faq-item-variation.enum-C6B2KRZo.js';
13
- import './expandable-faq-variation.enum-CES5gUEo.js';
14
- import './footer-card-variation.enum-DzSu1-K0.js';
15
- import './form-checkbox-variation.enum-6-MpaVf8.js';
16
- import './form-file-upload-variation.enum-BfyJgcLA.js';
17
- import './form-input-search-variation.enum-BvWKyXb_.js';
18
- import './form-input-type.enum-BSJH8Lpg.js';
19
- import { a as FormInputValidation } from './form-input-variation.enum-DfWZa2Wv.js';
20
- import './form-radiogroup-validation.enum-DcnvI7UR.js';
21
- import './form-select-variation.enum-DCS1KcvC.js';
22
- import './form-textarea-variation.enum-DogB9kfH.js';
23
- import './form-validation-message-variation.enum-B8hpiXmh.js';
24
- import './info-card-multi-type.enum-CkIb3cUS.js';
25
- import './info-card-variation.enum-_ycZeBN4.js';
26
- import './layout-container-max-width.enum-CuhrrYGE.js';
27
- import './layout-block-variation.enum-CWFirwyE.js';
28
- import './layout-columns-variation.enum-DJCufAhy.js';
29
- import './link-button-variation.enum-CPzcg9n3.js';
30
- import './list-type.enum-CsNHGpkJ.js';
31
- import './loader-skeleton-variation.enum-D_VIx0pC.js';
32
- import './loader-spinner-size.enum-ArGkfrXt.js';
33
- import './logo-color.enum-Chk3GCYK.js';
34
- import './media-figure-alignment.enum-evtVuhQt.js';
35
- import './navigation-sidebar-variation.enum-V-HTxO5a.js';
36
- import './navigation-vertical-menu-variation.enum-DPkRL9Bv.js';
37
- import './progress-circle-heading-level.enum-D0CENVum.js';
38
- import './progress-indicator-heading-level.enum-DE6sqPn9.js';
39
- import './progress-list-item-variation.enum-DXqRzyRP.js';
40
- import './progress-list-variation.enum-DoZkBEe8.js';
41
- import './progressbar-variation.enum-m9xS70Ez.js';
42
- import './quote-image-inner-position.enum-CmH9mJ43.js';
43
- import './table-variation.enum-DBcU_EnL.js';
44
- import './tag-media-icon.enum-BvcVTm_t.js';
45
- import './tag-size.enum-bQJ38En_.js';
46
- import './tools-feedback-banner-type.enum-DrVSK7Ws.js';
47
- import './tools-feedback-rating-variation.enum-CAmn5qzb.js';
48
- import './tools-theme-provider.brand.enum-DpDyNuVC.js';
49
- import './typography-heading-jumbo-variation.enum-DNjGvZvz.js';
50
- import './typography-meta-variation.enum-CHxBAbI8.js';
51
- import './typography-time-variation.enum-rhVqmQwC.js';
52
- import './util-breakpoint-observer-breakpoints.enum-DPq588Q4.js';
53
- import { r as randomIdGenerator } from './randomIdGenerator.util-BGaIliX6.js';
54
- import { d as detectClickOutside } from './detectClickOutside.util-ROzp1Ej2.js';
55
- import { r as requiredArgs, t as toDate, i as isValid } from './index-BixPaBHw.js';
56
- import { t as toInteger, g as getUTCISOWeek, a as getUTCWeek, o as startOfUTCISOWeek, p as startOfUTCWeek, c as getUTCWeekYear, l as locale, e as longFormatters, i as isProtectedWeekYearToken, f as throwProtectedError, h as isProtectedDayOfYearToken, s as subMilliseconds, d as getTimezoneOffsetInMilliseconds } from './index-B1Je6g2n.js';
57
- import { i as isBefore, a as isAfter } from './index-BsIL3T_0.js';
58
- import './detectClosest.util-DwBvm-Nc.js';
59
-
60
- function assign(target, dirtyObject) {
61
- if (target == null) {
62
- throw new TypeError('assign requires that input parameter not be null or undefined');
63
- }
64
-
65
- dirtyObject = dirtyObject || {};
66
-
67
- for (var property in dirtyObject) {
68
- if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
69
- target[property] = dirtyObject[property];
70
- }
71
- }
72
-
73
- return target;
74
- }
75
-
76
- // See issue: https://github.com/date-fns/date-fns/issues/376
77
-
78
- function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
79
- requiredArgs(2, arguments);
80
- var options = dirtyOptions || {};
81
- var locale = options.locale;
82
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
83
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
84
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
85
-
86
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
87
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
88
- }
89
-
90
- var date = toDate(dirtyDate);
91
- var day = toInteger(dirtyDay);
92
- var currentDay = date.getUTCDay();
93
- var remainder = day % 7;
94
- var dayIndex = (remainder + 7) % 7;
95
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
96
- date.setUTCDate(date.getUTCDate() + diff);
97
- return date;
98
- }
99
-
100
- // See issue: https://github.com/date-fns/date-fns/issues/376
101
-
102
- function setUTCISODay(dirtyDate, dirtyDay) {
103
- requiredArgs(2, arguments);
104
- var day = toInteger(dirtyDay);
105
-
106
- if (day % 7 === 0) {
107
- day = day - 7;
108
- }
109
-
110
- var weekStartsOn = 1;
111
- var date = toDate(dirtyDate);
112
- var currentDay = date.getUTCDay();
113
- var remainder = day % 7;
114
- var dayIndex = (remainder + 7) % 7;
115
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
116
- date.setUTCDate(date.getUTCDate() + diff);
117
- return date;
118
- }
119
-
120
- // See issue: https://github.com/date-fns/date-fns/issues/376
121
-
122
- function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
123
- requiredArgs(2, arguments);
124
- var date = toDate(dirtyDate);
125
- var isoWeek = toInteger(dirtyISOWeek);
126
- var diff = getUTCISOWeek(date) - isoWeek;
127
- date.setUTCDate(date.getUTCDate() - diff * 7);
128
- return date;
129
- }
130
-
131
- // See issue: https://github.com/date-fns/date-fns/issues/376
132
-
133
- function setUTCWeek(dirtyDate, dirtyWeek, options) {
134
- requiredArgs(2, arguments);
135
- var date = toDate(dirtyDate);
136
- var week = toInteger(dirtyWeek);
137
- var diff = getUTCWeek(date, options) - week;
138
- date.setUTCDate(date.getUTCDate() - diff * 7);
139
- return date;
140
- }
141
-
142
- var MILLISECONDS_IN_HOUR = 3600000;
143
- var MILLISECONDS_IN_MINUTE = 60000;
144
- var MILLISECONDS_IN_SECOND = 1000;
145
- var numericPatterns = {
146
- month: /^(1[0-2]|0?\d)/,
147
- // 0 to 12
148
- date: /^(3[0-1]|[0-2]?\d)/,
149
- // 0 to 31
150
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
151
- // 0 to 366
152
- week: /^(5[0-3]|[0-4]?\d)/,
153
- // 0 to 53
154
- hour23h: /^(2[0-3]|[0-1]?\d)/,
155
- // 0 to 23
156
- hour24h: /^(2[0-4]|[0-1]?\d)/,
157
- // 0 to 24
158
- hour11h: /^(1[0-1]|0?\d)/,
159
- // 0 to 11
160
- hour12h: /^(1[0-2]|0?\d)/,
161
- // 0 to 12
162
- minute: /^[0-5]?\d/,
163
- // 0 to 59
164
- second: /^[0-5]?\d/,
165
- // 0 to 59
166
- singleDigit: /^\d/,
167
- // 0 to 9
168
- twoDigits: /^\d{1,2}/,
169
- // 0 to 99
170
- threeDigits: /^\d{1,3}/,
171
- // 0 to 999
172
- fourDigits: /^\d{1,4}/,
173
- // 0 to 9999
174
- anyDigitsSigned: /^-?\d+/,
175
- singleDigitSigned: /^-?\d/,
176
- // 0 to 9, -0 to -9
177
- twoDigitsSigned: /^-?\d{1,2}/,
178
- // 0 to 99, -0 to -99
179
- threeDigitsSigned: /^-?\d{1,3}/,
180
- // 0 to 999, -0 to -999
181
- fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
182
-
183
- };
184
- var timezonePatterns = {
185
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
186
- basic: /^([+-])(\d{2})(\d{2})|Z/,
187
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
188
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
189
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
190
- };
191
-
192
- function parseNumericPattern(pattern, string, valueCallback) {
193
- var matchResult = string.match(pattern);
194
-
195
- if (!matchResult) {
196
- return null;
197
- }
198
-
199
- var value = parseInt(matchResult[0], 10);
200
- return {
201
- value: valueCallback ? valueCallback(value) : value,
202
- rest: string.slice(matchResult[0].length)
203
- };
204
- }
205
-
206
- function parseTimezonePattern(pattern, string) {
207
- var matchResult = string.match(pattern);
208
-
209
- if (!matchResult) {
210
- return null;
211
- } // Input is 'Z'
212
-
213
-
214
- if (matchResult[0] === 'Z') {
215
- return {
216
- value: 0,
217
- rest: string.slice(1)
218
- };
219
- }
220
-
221
- var sign = matchResult[1] === '+' ? 1 : -1;
222
- var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
223
- var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
224
- var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
225
- return {
226
- value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
227
- rest: string.slice(matchResult[0].length)
228
- };
229
- }
230
-
231
- function parseAnyDigitsSigned(string, valueCallback) {
232
- return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
233
- }
234
-
235
- function parseNDigits(n, string, valueCallback) {
236
- switch (n) {
237
- case 1:
238
- return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
239
-
240
- case 2:
241
- return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
242
-
243
- case 3:
244
- return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
245
-
246
- case 4:
247
- return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
248
-
249
- default:
250
- return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
251
- }
252
- }
253
-
254
- function parseNDigitsSigned(n, string, valueCallback) {
255
- switch (n) {
256
- case 1:
257
- return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
258
-
259
- case 2:
260
- return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
261
-
262
- case 3:
263
- return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
264
-
265
- case 4:
266
- return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
267
-
268
- default:
269
- return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
270
- }
271
- }
272
-
273
- function dayPeriodEnumToHours(enumValue) {
274
- switch (enumValue) {
275
- case 'morning':
276
- return 4;
277
-
278
- case 'evening':
279
- return 17;
280
-
281
- case 'pm':
282
- case 'noon':
283
- case 'afternoon':
284
- return 12;
285
-
286
- case 'am':
287
- case 'midnight':
288
- case 'night':
289
- default:
290
- return 0;
291
- }
292
- }
293
-
294
- function normalizeTwoDigitYear(twoDigitYear, currentYear) {
295
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
296
- // 1 -> 1 AC
297
- // 0 -> 1 BC
298
- // -1 -> 2 BC
299
-
300
- var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
301
- var result;
302
-
303
- if (absCurrentYear <= 50) {
304
- result = twoDigitYear || 100;
305
- } else {
306
- var rangeEnd = absCurrentYear + 50;
307
- var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
308
- var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
309
- result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
310
- }
311
-
312
- return isCommonEra ? result : 1 - result;
313
- }
314
-
315
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
316
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
317
-
318
- function isLeapYearIndex(year) {
319
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
320
- }
321
- /*
322
- * | | Unit | | Unit |
323
- * |-----|--------------------------------|-----|--------------------------------|
324
- * | a | AM, PM | A* | Milliseconds in day |
325
- * | b | AM, PM, noon, midnight | B | Flexible day period |
326
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
327
- * | d | Day of month | D | Day of year |
328
- * | e | Local day of week | E | Day of week |
329
- * | f | | F* | Day of week in month |
330
- * | g* | Modified Julian day | G | Era |
331
- * | h | Hour [1-12] | H | Hour [0-23] |
332
- * | i! | ISO day of week | I! | ISO week of year |
333
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
334
- * | k | Hour [1-24] | K | Hour [0-11] |
335
- * | l* | (deprecated) | L | Stand-alone month |
336
- * | m | Minute | M | Month |
337
- * | n | | N | |
338
- * | o! | Ordinal number modifier | O* | Timezone (GMT) |
339
- * | p | | P | |
340
- * | q | Stand-alone quarter | Q | Quarter |
341
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
342
- * | s | Second | S | Fraction of second |
343
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
344
- * | u | Extended year | U* | Cyclic year |
345
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
346
- * | w | Local week of year | W* | Week of month |
347
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
348
- * | y | Year (abs) | Y | Local week-numbering year |
349
- * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
350
- *
351
- * Letters marked by * are not implemented but reserved by Unicode standard.
352
- *
353
- * Letters marked by ! are non-standard, but implemented by date-fns:
354
- * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
355
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
356
- * i.e. 7 for Sunday, 1 for Monday, etc.
357
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
358
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
359
- * `R` is supposed to be used in conjunction with `I` and `i`
360
- * for universal ISO week-numbering date, whereas
361
- * `Y` is supposed to be used in conjunction with `w` and `e`
362
- * for week-numbering date specific to the locale.
363
- */
364
-
365
-
366
- var parsers = {
367
- // Era
368
- G: {
369
- priority: 140,
370
- parse: function (string, token, match, _options) {
371
- switch (token) {
372
- // AD, BC
373
- case 'G':
374
- case 'GG':
375
- case 'GGG':
376
- return match.era(string, {
377
- width: 'abbreviated'
378
- }) || match.era(string, {
379
- width: 'narrow'
380
- });
381
- // A, B
382
-
383
- case 'GGGGG':
384
- return match.era(string, {
385
- width: 'narrow'
386
- });
387
- // Anno Domini, Before Christ
388
-
389
- case 'GGGG':
390
- default:
391
- return match.era(string, {
392
- width: 'wide'
393
- }) || match.era(string, {
394
- width: 'abbreviated'
395
- }) || match.era(string, {
396
- width: 'narrow'
397
- });
398
- }
399
- },
400
- set: function (date, flags, value, _options) {
401
- flags.era = value;
402
- date.setUTCFullYear(value, 0, 1);
403
- date.setUTCHours(0, 0, 0, 0);
404
- return date;
405
- },
406
- incompatibleTokens: ['R', 'u', 't', 'T']
407
- },
408
- // Year
409
- y: {
410
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
411
- // | Year | y | yy | yyy | yyyy | yyyyy |
412
- // |----------|-------|----|-------|-------|-------|
413
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
414
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
415
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
416
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
417
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
418
- priority: 130,
419
- parse: function (string, token, match, _options) {
420
- var valueCallback = function (year) {
421
- return {
422
- year: year,
423
- isTwoDigitYear: token === 'yy'
424
- };
425
- };
426
-
427
- switch (token) {
428
- case 'y':
429
- return parseNDigits(4, string, valueCallback);
430
-
431
- case 'yo':
432
- return match.ordinalNumber(string, {
433
- unit: 'year',
434
- valueCallback: valueCallback
435
- });
436
-
437
- default:
438
- return parseNDigits(token.length, string, valueCallback);
439
- }
440
- },
441
- validate: function (_date, value, _options) {
442
- return value.isTwoDigitYear || value.year > 0;
443
- },
444
- set: function (date, flags, value, _options) {
445
- var currentYear = date.getUTCFullYear();
446
-
447
- if (value.isTwoDigitYear) {
448
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
449
- date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
450
- date.setUTCHours(0, 0, 0, 0);
451
- return date;
452
- }
453
-
454
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
455
- date.setUTCFullYear(year, 0, 1);
456
- date.setUTCHours(0, 0, 0, 0);
457
- return date;
458
- },
459
- incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
460
- },
461
- // Local week-numbering year
462
- Y: {
463
- priority: 130,
464
- parse: function (string, token, match, _options) {
465
- var valueCallback = function (year) {
466
- return {
467
- year: year,
468
- isTwoDigitYear: token === 'YY'
469
- };
470
- };
471
-
472
- switch (token) {
473
- case 'Y':
474
- return parseNDigits(4, string, valueCallback);
475
-
476
- case 'Yo':
477
- return match.ordinalNumber(string, {
478
- unit: 'year',
479
- valueCallback: valueCallback
480
- });
481
-
482
- default:
483
- return parseNDigits(token.length, string, valueCallback);
484
- }
485
- },
486
- validate: function (_date, value, _options) {
487
- return value.isTwoDigitYear || value.year > 0;
488
- },
489
- set: function (date, flags, value, options) {
490
- var currentYear = getUTCWeekYear(date, options);
491
-
492
- if (value.isTwoDigitYear) {
493
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
494
- date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
495
- date.setUTCHours(0, 0, 0, 0);
496
- return startOfUTCWeek(date, options);
497
- }
498
-
499
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
500
- date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
501
- date.setUTCHours(0, 0, 0, 0);
502
- return startOfUTCWeek(date, options);
503
- },
504
- incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
505
- },
506
- // ISO week-numbering year
507
- R: {
508
- priority: 130,
509
- parse: function (string, token, _match, _options) {
510
- if (token === 'R') {
511
- return parseNDigitsSigned(4, string);
512
- }
513
-
514
- return parseNDigitsSigned(token.length, string);
515
- },
516
- set: function (_date, _flags, value, _options) {
517
- var firstWeekOfYear = new Date(0);
518
- firstWeekOfYear.setUTCFullYear(value, 0, 4);
519
- firstWeekOfYear.setUTCHours(0, 0, 0, 0);
520
- return startOfUTCISOWeek(firstWeekOfYear);
521
- },
522
- incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
523
- },
524
- // Extended year
525
- u: {
526
- priority: 130,
527
- parse: function (string, token, _match, _options) {
528
- if (token === 'u') {
529
- return parseNDigitsSigned(4, string);
530
- }
531
-
532
- return parseNDigitsSigned(token.length, string);
533
- },
534
- set: function (date, _flags, value, _options) {
535
- date.setUTCFullYear(value, 0, 1);
536
- date.setUTCHours(0, 0, 0, 0);
537
- return date;
538
- },
539
- incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
540
- },
541
- // Quarter
542
- Q: {
543
- priority: 120,
544
- parse: function (string, token, match, _options) {
545
- switch (token) {
546
- // 1, 2, 3, 4
547
- case 'Q':
548
- case 'QQ':
549
- // 01, 02, 03, 04
550
- return parseNDigits(token.length, string);
551
- // 1st, 2nd, 3rd, 4th
552
-
553
- case 'Qo':
554
- return match.ordinalNumber(string, {
555
- unit: 'quarter'
556
- });
557
- // Q1, Q2, Q3, Q4
558
-
559
- case 'QQQ':
560
- return match.quarter(string, {
561
- width: 'abbreviated',
562
- context: 'formatting'
563
- }) || match.quarter(string, {
564
- width: 'narrow',
565
- context: 'formatting'
566
- });
567
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
568
-
569
- case 'QQQQQ':
570
- return match.quarter(string, {
571
- width: 'narrow',
572
- context: 'formatting'
573
- });
574
- // 1st quarter, 2nd quarter, ...
575
-
576
- case 'QQQQ':
577
- default:
578
- return match.quarter(string, {
579
- width: 'wide',
580
- context: 'formatting'
581
- }) || match.quarter(string, {
582
- width: 'abbreviated',
583
- context: 'formatting'
584
- }) || match.quarter(string, {
585
- width: 'narrow',
586
- context: 'formatting'
587
- });
588
- }
589
- },
590
- validate: function (_date, value, _options) {
591
- return value >= 1 && value <= 4;
592
- },
593
- set: function (date, _flags, value, _options) {
594
- date.setUTCMonth((value - 1) * 3, 1);
595
- date.setUTCHours(0, 0, 0, 0);
596
- return date;
597
- },
598
- incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
599
- },
600
- // Stand-alone quarter
601
- q: {
602
- priority: 120,
603
- parse: function (string, token, match, _options) {
604
- switch (token) {
605
- // 1, 2, 3, 4
606
- case 'q':
607
- case 'qq':
608
- // 01, 02, 03, 04
609
- return parseNDigits(token.length, string);
610
- // 1st, 2nd, 3rd, 4th
611
-
612
- case 'qo':
613
- return match.ordinalNumber(string, {
614
- unit: 'quarter'
615
- });
616
- // Q1, Q2, Q3, Q4
617
-
618
- case 'qqq':
619
- return match.quarter(string, {
620
- width: 'abbreviated',
621
- context: 'standalone'
622
- }) || match.quarter(string, {
623
- width: 'narrow',
624
- context: 'standalone'
625
- });
626
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
627
-
628
- case 'qqqqq':
629
- return match.quarter(string, {
630
- width: 'narrow',
631
- context: 'standalone'
632
- });
633
- // 1st quarter, 2nd quarter, ...
634
-
635
- case 'qqqq':
636
- default:
637
- return match.quarter(string, {
638
- width: 'wide',
639
- context: 'standalone'
640
- }) || match.quarter(string, {
641
- width: 'abbreviated',
642
- context: 'standalone'
643
- }) || match.quarter(string, {
644
- width: 'narrow',
645
- context: 'standalone'
646
- });
647
- }
648
- },
649
- validate: function (_date, value, _options) {
650
- return value >= 1 && value <= 4;
651
- },
652
- set: function (date, _flags, value, _options) {
653
- date.setUTCMonth((value - 1) * 3, 1);
654
- date.setUTCHours(0, 0, 0, 0);
655
- return date;
656
- },
657
- incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
658
- },
659
- // Month
660
- M: {
661
- priority: 110,
662
- parse: function (string, token, match, _options) {
663
- var valueCallback = function (value) {
664
- return value - 1;
665
- };
666
-
667
- switch (token) {
668
- // 1, 2, ..., 12
669
- case 'M':
670
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
671
- // 01, 02, ..., 12
672
-
673
- case 'MM':
674
- return parseNDigits(2, string, valueCallback);
675
- // 1st, 2nd, ..., 12th
676
-
677
- case 'Mo':
678
- return match.ordinalNumber(string, {
679
- unit: 'month',
680
- valueCallback: valueCallback
681
- });
682
- // Jan, Feb, ..., Dec
683
-
684
- case 'MMM':
685
- return match.month(string, {
686
- width: 'abbreviated',
687
- context: 'formatting'
688
- }) || match.month(string, {
689
- width: 'narrow',
690
- context: 'formatting'
691
- });
692
- // J, F, ..., D
693
-
694
- case 'MMMMM':
695
- return match.month(string, {
696
- width: 'narrow',
697
- context: 'formatting'
698
- });
699
- // January, February, ..., December
700
-
701
- case 'MMMM':
702
- default:
703
- return match.month(string, {
704
- width: 'wide',
705
- context: 'formatting'
706
- }) || match.month(string, {
707
- width: 'abbreviated',
708
- context: 'formatting'
709
- }) || match.month(string, {
710
- width: 'narrow',
711
- context: 'formatting'
712
- });
713
- }
714
- },
715
- validate: function (_date, value, _options) {
716
- return value >= 0 && value <= 11;
717
- },
718
- set: function (date, _flags, value, _options) {
719
- date.setUTCMonth(value, 1);
720
- date.setUTCHours(0, 0, 0, 0);
721
- return date;
722
- },
723
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
724
- },
725
- // Stand-alone month
726
- L: {
727
- priority: 110,
728
- parse: function (string, token, match, _options) {
729
- var valueCallback = function (value) {
730
- return value - 1;
731
- };
732
-
733
- switch (token) {
734
- // 1, 2, ..., 12
735
- case 'L':
736
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
737
- // 01, 02, ..., 12
738
-
739
- case 'LL':
740
- return parseNDigits(2, string, valueCallback);
741
- // 1st, 2nd, ..., 12th
742
-
743
- case 'Lo':
744
- return match.ordinalNumber(string, {
745
- unit: 'month',
746
- valueCallback: valueCallback
747
- });
748
- // Jan, Feb, ..., Dec
749
-
750
- case 'LLL':
751
- return match.month(string, {
752
- width: 'abbreviated',
753
- context: 'standalone'
754
- }) || match.month(string, {
755
- width: 'narrow',
756
- context: 'standalone'
757
- });
758
- // J, F, ..., D
759
-
760
- case 'LLLLL':
761
- return match.month(string, {
762
- width: 'narrow',
763
- context: 'standalone'
764
- });
765
- // January, February, ..., December
766
-
767
- case 'LLLL':
768
- default:
769
- return match.month(string, {
770
- width: 'wide',
771
- context: 'standalone'
772
- }) || match.month(string, {
773
- width: 'abbreviated',
774
- context: 'standalone'
775
- }) || match.month(string, {
776
- width: 'narrow',
777
- context: 'standalone'
778
- });
779
- }
780
- },
781
- validate: function (_date, value, _options) {
782
- return value >= 0 && value <= 11;
783
- },
784
- set: function (date, _flags, value, _options) {
785
- date.setUTCMonth(value, 1);
786
- date.setUTCHours(0, 0, 0, 0);
787
- return date;
788
- },
789
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
790
- },
791
- // Local week of year
792
- w: {
793
- priority: 100,
794
- parse: function (string, token, match, _options) {
795
- switch (token) {
796
- case 'w':
797
- return parseNumericPattern(numericPatterns.week, string);
798
-
799
- case 'wo':
800
- return match.ordinalNumber(string, {
801
- unit: 'week'
802
- });
803
-
804
- default:
805
- return parseNDigits(token.length, string);
806
- }
807
- },
808
- validate: function (_date, value, _options) {
809
- return value >= 1 && value <= 53;
810
- },
811
- set: function (date, _flags, value, options) {
812
- return startOfUTCWeek(setUTCWeek(date, value, options), options);
813
- },
814
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
815
- },
816
- // ISO week of year
817
- I: {
818
- priority: 100,
819
- parse: function (string, token, match, _options) {
820
- switch (token) {
821
- case 'I':
822
- return parseNumericPattern(numericPatterns.week, string);
823
-
824
- case 'Io':
825
- return match.ordinalNumber(string, {
826
- unit: 'week'
827
- });
828
-
829
- default:
830
- return parseNDigits(token.length, string);
831
- }
832
- },
833
- validate: function (_date, value, _options) {
834
- return value >= 1 && value <= 53;
835
- },
836
- set: function (date, _flags, value, options) {
837
- return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
838
- },
839
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
840
- },
841
- // Day of the month
842
- d: {
843
- priority: 90,
844
- subPriority: 1,
845
- parse: function (string, token, match, _options) {
846
- switch (token) {
847
- case 'd':
848
- return parseNumericPattern(numericPatterns.date, string);
849
-
850
- case 'do':
851
- return match.ordinalNumber(string, {
852
- unit: 'date'
853
- });
854
-
855
- default:
856
- return parseNDigits(token.length, string);
857
- }
858
- },
859
- validate: function (date, value, _options) {
860
- var year = date.getUTCFullYear();
861
- var isLeapYear = isLeapYearIndex(year);
862
- var month = date.getUTCMonth();
863
-
864
- if (isLeapYear) {
865
- return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
866
- } else {
867
- return value >= 1 && value <= DAYS_IN_MONTH[month];
868
- }
869
- },
870
- set: function (date, _flags, value, _options) {
871
- date.setUTCDate(value);
872
- date.setUTCHours(0, 0, 0, 0);
873
- return date;
874
- },
875
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
876
- },
877
- // Day of year
878
- D: {
879
- priority: 90,
880
- subPriority: 1,
881
- parse: function (string, token, match, _options) {
882
- switch (token) {
883
- case 'D':
884
- case 'DD':
885
- return parseNumericPattern(numericPatterns.dayOfYear, string);
886
-
887
- case 'Do':
888
- return match.ordinalNumber(string, {
889
- unit: 'date'
890
- });
891
-
892
- default:
893
- return parseNDigits(token.length, string);
894
- }
895
- },
896
- validate: function (date, value, _options) {
897
- var year = date.getUTCFullYear();
898
- var isLeapYear = isLeapYearIndex(year);
899
-
900
- if (isLeapYear) {
901
- return value >= 1 && value <= 366;
902
- } else {
903
- return value >= 1 && value <= 365;
904
- }
905
- },
906
- set: function (date, _flags, value, _options) {
907
- date.setUTCMonth(0, value);
908
- date.setUTCHours(0, 0, 0, 0);
909
- return date;
910
- },
911
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
912
- },
913
- // Day of week
914
- E: {
915
- priority: 90,
916
- parse: function (string, token, match, _options) {
917
- switch (token) {
918
- // Tue
919
- case 'E':
920
- case 'EE':
921
- case 'EEE':
922
- return match.day(string, {
923
- width: 'abbreviated',
924
- context: 'formatting'
925
- }) || match.day(string, {
926
- width: 'short',
927
- context: 'formatting'
928
- }) || match.day(string, {
929
- width: 'narrow',
930
- context: 'formatting'
931
- });
932
- // T
933
-
934
- case 'EEEEE':
935
- return match.day(string, {
936
- width: 'narrow',
937
- context: 'formatting'
938
- });
939
- // Tu
940
-
941
- case 'EEEEEE':
942
- return match.day(string, {
943
- width: 'short',
944
- context: 'formatting'
945
- }) || match.day(string, {
946
- width: 'narrow',
947
- context: 'formatting'
948
- });
949
- // Tuesday
950
-
951
- case 'EEEE':
952
- default:
953
- return match.day(string, {
954
- width: 'wide',
955
- context: 'formatting'
956
- }) || match.day(string, {
957
- width: 'abbreviated',
958
- context: 'formatting'
959
- }) || match.day(string, {
960
- width: 'short',
961
- context: 'formatting'
962
- }) || match.day(string, {
963
- width: 'narrow',
964
- context: 'formatting'
965
- });
966
- }
967
- },
968
- validate: function (_date, value, _options) {
969
- return value >= 0 && value <= 6;
970
- },
971
- set: function (date, _flags, value, options) {
972
- date = setUTCDay(date, value, options);
973
- date.setUTCHours(0, 0, 0, 0);
974
- return date;
975
- },
976
- incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
977
- },
978
- // Local day of week
979
- e: {
980
- priority: 90,
981
- parse: function (string, token, match, options) {
982
- var valueCallback = function (value) {
983
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
984
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
985
- };
986
-
987
- switch (token) {
988
- // 3
989
- case 'e':
990
- case 'ee':
991
- // 03
992
- return parseNDigits(token.length, string, valueCallback);
993
- // 3rd
994
-
995
- case 'eo':
996
- return match.ordinalNumber(string, {
997
- unit: 'day',
998
- valueCallback: valueCallback
999
- });
1000
- // Tue
1001
-
1002
- case 'eee':
1003
- return match.day(string, {
1004
- width: 'abbreviated',
1005
- context: 'formatting'
1006
- }) || match.day(string, {
1007
- width: 'short',
1008
- context: 'formatting'
1009
- }) || match.day(string, {
1010
- width: 'narrow',
1011
- context: 'formatting'
1012
- });
1013
- // T
1014
-
1015
- case 'eeeee':
1016
- return match.day(string, {
1017
- width: 'narrow',
1018
- context: 'formatting'
1019
- });
1020
- // Tu
1021
-
1022
- case 'eeeeee':
1023
- return match.day(string, {
1024
- width: 'short',
1025
- context: 'formatting'
1026
- }) || match.day(string, {
1027
- width: 'narrow',
1028
- context: 'formatting'
1029
- });
1030
- // Tuesday
1031
-
1032
- case 'eeee':
1033
- default:
1034
- return match.day(string, {
1035
- width: 'wide',
1036
- context: 'formatting'
1037
- }) || match.day(string, {
1038
- width: 'abbreviated',
1039
- context: 'formatting'
1040
- }) || match.day(string, {
1041
- width: 'short',
1042
- context: 'formatting'
1043
- }) || match.day(string, {
1044
- width: 'narrow',
1045
- context: 'formatting'
1046
- });
1047
- }
1048
- },
1049
- validate: function (_date, value, _options) {
1050
- return value >= 0 && value <= 6;
1051
- },
1052
- set: function (date, _flags, value, options) {
1053
- date = setUTCDay(date, value, options);
1054
- date.setUTCHours(0, 0, 0, 0);
1055
- return date;
1056
- },
1057
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1058
- },
1059
- // Stand-alone local day of week
1060
- c: {
1061
- priority: 90,
1062
- parse: function (string, token, match, options) {
1063
- var valueCallback = function (value) {
1064
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1065
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1066
- };
1067
-
1068
- switch (token) {
1069
- // 3
1070
- case 'c':
1071
- case 'cc':
1072
- // 03
1073
- return parseNDigits(token.length, string, valueCallback);
1074
- // 3rd
1075
-
1076
- case 'co':
1077
- return match.ordinalNumber(string, {
1078
- unit: 'day',
1079
- valueCallback: valueCallback
1080
- });
1081
- // Tue
1082
-
1083
- case 'ccc':
1084
- return match.day(string, {
1085
- width: 'abbreviated',
1086
- context: 'standalone'
1087
- }) || match.day(string, {
1088
- width: 'short',
1089
- context: 'standalone'
1090
- }) || match.day(string, {
1091
- width: 'narrow',
1092
- context: 'standalone'
1093
- });
1094
- // T
1095
-
1096
- case 'ccccc':
1097
- return match.day(string, {
1098
- width: 'narrow',
1099
- context: 'standalone'
1100
- });
1101
- // Tu
1102
-
1103
- case 'cccccc':
1104
- return match.day(string, {
1105
- width: 'short',
1106
- context: 'standalone'
1107
- }) || match.day(string, {
1108
- width: 'narrow',
1109
- context: 'standalone'
1110
- });
1111
- // Tuesday
1112
-
1113
- case 'cccc':
1114
- default:
1115
- return match.day(string, {
1116
- width: 'wide',
1117
- context: 'standalone'
1118
- }) || match.day(string, {
1119
- width: 'abbreviated',
1120
- context: 'standalone'
1121
- }) || match.day(string, {
1122
- width: 'short',
1123
- context: 'standalone'
1124
- }) || match.day(string, {
1125
- width: 'narrow',
1126
- context: 'standalone'
1127
- });
1128
- }
1129
- },
1130
- validate: function (_date, value, _options) {
1131
- return value >= 0 && value <= 6;
1132
- },
1133
- set: function (date, _flags, value, options) {
1134
- date = setUTCDay(date, value, options);
1135
- date.setUTCHours(0, 0, 0, 0);
1136
- return date;
1137
- },
1138
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1139
- },
1140
- // ISO day of week
1141
- i: {
1142
- priority: 90,
1143
- parse: function (string, token, match, _options) {
1144
- var valueCallback = function (value) {
1145
- if (value === 0) {
1146
- return 7;
1147
- }
1148
-
1149
- return value;
1150
- };
1151
-
1152
- switch (token) {
1153
- // 2
1154
- case 'i':
1155
- case 'ii':
1156
- // 02
1157
- return parseNDigits(token.length, string);
1158
- // 2nd
1159
-
1160
- case 'io':
1161
- return match.ordinalNumber(string, {
1162
- unit: 'day'
1163
- });
1164
- // Tue
1165
-
1166
- case 'iii':
1167
- return match.day(string, {
1168
- width: 'abbreviated',
1169
- context: 'formatting',
1170
- valueCallback: valueCallback
1171
- }) || match.day(string, {
1172
- width: 'short',
1173
- context: 'formatting',
1174
- valueCallback: valueCallback
1175
- }) || match.day(string, {
1176
- width: 'narrow',
1177
- context: 'formatting',
1178
- valueCallback: valueCallback
1179
- });
1180
- // T
1181
-
1182
- case 'iiiii':
1183
- return match.day(string, {
1184
- width: 'narrow',
1185
- context: 'formatting',
1186
- valueCallback: valueCallback
1187
- });
1188
- // Tu
1189
-
1190
- case 'iiiiii':
1191
- return match.day(string, {
1192
- width: 'short',
1193
- context: 'formatting',
1194
- valueCallback: valueCallback
1195
- }) || match.day(string, {
1196
- width: 'narrow',
1197
- context: 'formatting',
1198
- valueCallback: valueCallback
1199
- });
1200
- // Tuesday
1201
-
1202
- case 'iiii':
1203
- default:
1204
- return match.day(string, {
1205
- width: 'wide',
1206
- context: 'formatting',
1207
- valueCallback: valueCallback
1208
- }) || match.day(string, {
1209
- width: 'abbreviated',
1210
- context: 'formatting',
1211
- valueCallback: valueCallback
1212
- }) || match.day(string, {
1213
- width: 'short',
1214
- context: 'formatting',
1215
- valueCallback: valueCallback
1216
- }) || match.day(string, {
1217
- width: 'narrow',
1218
- context: 'formatting',
1219
- valueCallback: valueCallback
1220
- });
1221
- }
1222
- },
1223
- validate: function (_date, value, _options) {
1224
- return value >= 1 && value <= 7;
1225
- },
1226
- set: function (date, _flags, value, options) {
1227
- date = setUTCISODay(date, value, options);
1228
- date.setUTCHours(0, 0, 0, 0);
1229
- return date;
1230
- },
1231
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1232
- },
1233
- // AM or PM
1234
- a: {
1235
- priority: 80,
1236
- parse: function (string, token, match, _options) {
1237
- switch (token) {
1238
- case 'a':
1239
- case 'aa':
1240
- case 'aaa':
1241
- return match.dayPeriod(string, {
1242
- width: 'abbreviated',
1243
- context: 'formatting'
1244
- }) || match.dayPeriod(string, {
1245
- width: 'narrow',
1246
- context: 'formatting'
1247
- });
1248
-
1249
- case 'aaaaa':
1250
- return match.dayPeriod(string, {
1251
- width: 'narrow',
1252
- context: 'formatting'
1253
- });
1254
-
1255
- case 'aaaa':
1256
- default:
1257
- return match.dayPeriod(string, {
1258
- width: 'wide',
1259
- context: 'formatting'
1260
- }) || match.dayPeriod(string, {
1261
- width: 'abbreviated',
1262
- context: 'formatting'
1263
- }) || match.dayPeriod(string, {
1264
- width: 'narrow',
1265
- context: 'formatting'
1266
- });
1267
- }
1268
- },
1269
- set: function (date, _flags, value, _options) {
1270
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1271
- return date;
1272
- },
1273
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1274
- },
1275
- // AM, PM, midnight
1276
- b: {
1277
- priority: 80,
1278
- parse: function (string, token, match, _options) {
1279
- switch (token) {
1280
- case 'b':
1281
- case 'bb':
1282
- case 'bbb':
1283
- return match.dayPeriod(string, {
1284
- width: 'abbreviated',
1285
- context: 'formatting'
1286
- }) || match.dayPeriod(string, {
1287
- width: 'narrow',
1288
- context: 'formatting'
1289
- });
1290
-
1291
- case 'bbbbb':
1292
- return match.dayPeriod(string, {
1293
- width: 'narrow',
1294
- context: 'formatting'
1295
- });
1296
-
1297
- case 'bbbb':
1298
- default:
1299
- return match.dayPeriod(string, {
1300
- width: 'wide',
1301
- context: 'formatting'
1302
- }) || match.dayPeriod(string, {
1303
- width: 'abbreviated',
1304
- context: 'formatting'
1305
- }) || match.dayPeriod(string, {
1306
- width: 'narrow',
1307
- context: 'formatting'
1308
- });
1309
- }
1310
- },
1311
- set: function (date, _flags, value, _options) {
1312
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1313
- return date;
1314
- },
1315
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1316
- },
1317
- // in the morning, in the afternoon, in the evening, at night
1318
- B: {
1319
- priority: 80,
1320
- parse: function (string, token, match, _options) {
1321
- switch (token) {
1322
- case 'B':
1323
- case 'BB':
1324
- case 'BBB':
1325
- return match.dayPeriod(string, {
1326
- width: 'abbreviated',
1327
- context: 'formatting'
1328
- }) || match.dayPeriod(string, {
1329
- width: 'narrow',
1330
- context: 'formatting'
1331
- });
1332
-
1333
- case 'BBBBB':
1334
- return match.dayPeriod(string, {
1335
- width: 'narrow',
1336
- context: 'formatting'
1337
- });
1338
-
1339
- case 'BBBB':
1340
- default:
1341
- return match.dayPeriod(string, {
1342
- width: 'wide',
1343
- context: 'formatting'
1344
- }) || match.dayPeriod(string, {
1345
- width: 'abbreviated',
1346
- context: 'formatting'
1347
- }) || match.dayPeriod(string, {
1348
- width: 'narrow',
1349
- context: 'formatting'
1350
- });
1351
- }
1352
- },
1353
- set: function (date, _flags, value, _options) {
1354
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1355
- return date;
1356
- },
1357
- incompatibleTokens: ['a', 'b', 't', 'T']
1358
- },
1359
- // Hour [1-12]
1360
- h: {
1361
- priority: 70,
1362
- parse: function (string, token, match, _options) {
1363
- switch (token) {
1364
- case 'h':
1365
- return parseNumericPattern(numericPatterns.hour12h, string);
1366
-
1367
- case 'ho':
1368
- return match.ordinalNumber(string, {
1369
- unit: 'hour'
1370
- });
1371
-
1372
- default:
1373
- return parseNDigits(token.length, string);
1374
- }
1375
- },
1376
- validate: function (_date, value, _options) {
1377
- return value >= 1 && value <= 12;
1378
- },
1379
- set: function (date, _flags, value, _options) {
1380
- var isPM = date.getUTCHours() >= 12;
1381
-
1382
- if (isPM && value < 12) {
1383
- date.setUTCHours(value + 12, 0, 0, 0);
1384
- } else if (!isPM && value === 12) {
1385
- date.setUTCHours(0, 0, 0, 0);
1386
- } else {
1387
- date.setUTCHours(value, 0, 0, 0);
1388
- }
1389
-
1390
- return date;
1391
- },
1392
- incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1393
- },
1394
- // Hour [0-23]
1395
- H: {
1396
- priority: 70,
1397
- parse: function (string, token, match, _options) {
1398
- switch (token) {
1399
- case 'H':
1400
- return parseNumericPattern(numericPatterns.hour23h, string);
1401
-
1402
- case 'Ho':
1403
- return match.ordinalNumber(string, {
1404
- unit: 'hour'
1405
- });
1406
-
1407
- default:
1408
- return parseNDigits(token.length, string);
1409
- }
1410
- },
1411
- validate: function (_date, value, _options) {
1412
- return value >= 0 && value <= 23;
1413
- },
1414
- set: function (date, _flags, value, _options) {
1415
- date.setUTCHours(value, 0, 0, 0);
1416
- return date;
1417
- },
1418
- incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1419
- },
1420
- // Hour [0-11]
1421
- K: {
1422
- priority: 70,
1423
- parse: function (string, token, match, _options) {
1424
- switch (token) {
1425
- case 'K':
1426
- return parseNumericPattern(numericPatterns.hour11h, string);
1427
-
1428
- case 'Ko':
1429
- return match.ordinalNumber(string, {
1430
- unit: 'hour'
1431
- });
1432
-
1433
- default:
1434
- return parseNDigits(token.length, string);
1435
- }
1436
- },
1437
- validate: function (_date, value, _options) {
1438
- return value >= 0 && value <= 11;
1439
- },
1440
- set: function (date, _flags, value, _options) {
1441
- var isPM = date.getUTCHours() >= 12;
1442
-
1443
- if (isPM && value < 12) {
1444
- date.setUTCHours(value + 12, 0, 0, 0);
1445
- } else {
1446
- date.setUTCHours(value, 0, 0, 0);
1447
- }
1448
-
1449
- return date;
1450
- },
1451
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1452
- },
1453
- // Hour [1-24]
1454
- k: {
1455
- priority: 70,
1456
- parse: function (string, token, match, _options) {
1457
- switch (token) {
1458
- case 'k':
1459
- return parseNumericPattern(numericPatterns.hour24h, string);
1460
-
1461
- case 'ko':
1462
- return match.ordinalNumber(string, {
1463
- unit: 'hour'
1464
- });
1465
-
1466
- default:
1467
- return parseNDigits(token.length, string);
1468
- }
1469
- },
1470
- validate: function (_date, value, _options) {
1471
- return value >= 1 && value <= 24;
1472
- },
1473
- set: function (date, _flags, value, _options) {
1474
- var hours = value <= 24 ? value % 24 : value;
1475
- date.setUTCHours(hours, 0, 0, 0);
1476
- return date;
1477
- },
1478
- incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1479
- },
1480
- // Minute
1481
- m: {
1482
- priority: 60,
1483
- parse: function (string, token, match, _options) {
1484
- switch (token) {
1485
- case 'm':
1486
- return parseNumericPattern(numericPatterns.minute, string);
1487
-
1488
- case 'mo':
1489
- return match.ordinalNumber(string, {
1490
- unit: 'minute'
1491
- });
1492
-
1493
- default:
1494
- return parseNDigits(token.length, string);
1495
- }
1496
- },
1497
- validate: function (_date, value, _options) {
1498
- return value >= 0 && value <= 59;
1499
- },
1500
- set: function (date, _flags, value, _options) {
1501
- date.setUTCMinutes(value, 0, 0);
1502
- return date;
1503
- },
1504
- incompatibleTokens: ['t', 'T']
1505
- },
1506
- // Second
1507
- s: {
1508
- priority: 50,
1509
- parse: function (string, token, match, _options) {
1510
- switch (token) {
1511
- case 's':
1512
- return parseNumericPattern(numericPatterns.second, string);
1513
-
1514
- case 'so':
1515
- return match.ordinalNumber(string, {
1516
- unit: 'second'
1517
- });
1518
-
1519
- default:
1520
- return parseNDigits(token.length, string);
1521
- }
1522
- },
1523
- validate: function (_date, value, _options) {
1524
- return value >= 0 && value <= 59;
1525
- },
1526
- set: function (date, _flags, value, _options) {
1527
- date.setUTCSeconds(value, 0);
1528
- return date;
1529
- },
1530
- incompatibleTokens: ['t', 'T']
1531
- },
1532
- // Fraction of second
1533
- S: {
1534
- priority: 30,
1535
- parse: function (string, token, _match, _options) {
1536
- var valueCallback = function (value) {
1537
- return Math.floor(value * Math.pow(10, -token.length + 3));
1538
- };
1539
-
1540
- return parseNDigits(token.length, string, valueCallback);
1541
- },
1542
- set: function (date, _flags, value, _options) {
1543
- date.setUTCMilliseconds(value);
1544
- return date;
1545
- },
1546
- incompatibleTokens: ['t', 'T']
1547
- },
1548
- // Timezone (ISO-8601. +00:00 is `'Z'`)
1549
- X: {
1550
- priority: 10,
1551
- parse: function (string, token, _match, _options) {
1552
- switch (token) {
1553
- case 'X':
1554
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1555
-
1556
- case 'XX':
1557
- return parseTimezonePattern(timezonePatterns.basic, string);
1558
-
1559
- case 'XXXX':
1560
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1561
-
1562
- case 'XXXXX':
1563
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1564
-
1565
- case 'XXX':
1566
- default:
1567
- return parseTimezonePattern(timezonePatterns.extended, string);
1568
- }
1569
- },
1570
- set: function (date, flags, value, _options) {
1571
- if (flags.timestampIsSet) {
1572
- return date;
1573
- }
1574
-
1575
- return new Date(date.getTime() - value);
1576
- },
1577
- incompatibleTokens: ['t', 'T', 'x']
1578
- },
1579
- // Timezone (ISO-8601)
1580
- x: {
1581
- priority: 10,
1582
- parse: function (string, token, _match, _options) {
1583
- switch (token) {
1584
- case 'x':
1585
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1586
-
1587
- case 'xx':
1588
- return parseTimezonePattern(timezonePatterns.basic, string);
1589
-
1590
- case 'xxxx':
1591
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1592
-
1593
- case 'xxxxx':
1594
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1595
-
1596
- case 'xxx':
1597
- default:
1598
- return parseTimezonePattern(timezonePatterns.extended, string);
1599
- }
1600
- },
1601
- set: function (date, flags, value, _options) {
1602
- if (flags.timestampIsSet) {
1603
- return date;
1604
- }
1605
-
1606
- return new Date(date.getTime() - value);
1607
- },
1608
- incompatibleTokens: ['t', 'T', 'X']
1609
- },
1610
- // Seconds timestamp
1611
- t: {
1612
- priority: 40,
1613
- parse: function (string, _token, _match, _options) {
1614
- return parseAnyDigitsSigned(string);
1615
- },
1616
- set: function (_date, _flags, value, _options) {
1617
- return [new Date(value * 1000), {
1618
- timestampIsSet: true
1619
- }];
1620
- },
1621
- incompatibleTokens: '*'
1622
- },
1623
- // Milliseconds timestamp
1624
- T: {
1625
- priority: 20,
1626
- parse: function (string, _token, _match, _options) {
1627
- return parseAnyDigitsSigned(string);
1628
- },
1629
- set: function (_date, _flags, value, _options) {
1630
- return [new Date(value), {
1631
- timestampIsSet: true
1632
- }];
1633
- },
1634
- incompatibleTokens: '*'
1635
- }
1636
- };
1637
-
1638
- var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1639
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1640
- // (one of the certain letters followed by `o`)
1641
- // - (\w)\1* matches any sequences of the same letter
1642
- // - '' matches two quote characters in a row
1643
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1644
- // except a single quote symbol, which ends the sequence.
1645
- // Two quote characters do not end the sequence.
1646
- // If there is no matching single quote
1647
- // then the sequence will continue until the end of the string.
1648
- // - . matches any single character unmatched by previous parts of the RegExps
1649
-
1650
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1651
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1652
-
1653
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1654
- var escapedStringRegExp = /^'([^]*?)'?$/;
1655
- var doubleQuoteRegExp = /''/g;
1656
- var notWhitespaceRegExp = /\S/;
1657
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1658
- /**
1659
- * @name parse
1660
- * @category Common Helpers
1661
- * @summary Parse the date.
1662
- *
1663
- * @description
1664
- * Return the date parsed from string using the given format string.
1665
- *
1666
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1667
- * > See: https://git.io/fxCyr
1668
- *
1669
- * The characters in the format string wrapped between two single quotes characters (') are escaped.
1670
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1671
- *
1672
- * Format of the format string is based on Unicode Technical Standard #35:
1673
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1674
- * with a few additions (see note 5 below the table).
1675
- *
1676
- * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1677
- * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1678
- *
1679
- * ```javascript
1680
- * parse('23 AM', 'HH a', new Date())
1681
- * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1682
- * ```
1683
- *
1684
- * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1685
- *
1686
- * Accepted format string patterns:
1687
- * | Unit |Prior| Pattern | Result examples | Notes |
1688
- * |---------------------------------|-----|---------|-----------------------------------|-------|
1689
- * | Era | 140 | G..GGG | AD, BC | |
1690
- * | | | GGGG | Anno Domini, Before Christ | 2 |
1691
- * | | | GGGGG | A, B | |
1692
- * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1693
- * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1694
- * | | | yy | 44, 01, 00, 17 | 4 |
1695
- * | | | yyy | 044, 001, 123, 999 | 4 |
1696
- * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1697
- * | | | yyyyy | ... | 2,4 |
1698
- * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1699
- * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1700
- * | | | YY | 44, 01, 00, 17 | 4,6 |
1701
- * | | | YYY | 044, 001, 123, 999 | 4 |
1702
- * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1703
- * | | | YYYYY | ... | 2,4 |
1704
- * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1705
- * | | | RR | -43, 01, 00, 17 | 4,5 |
1706
- * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1707
- * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1708
- * | | | RRRRR | ... | 2,4,5 |
1709
- * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1710
- * | | | uu | -43, 01, 99, -99 | 4 |
1711
- * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1712
- * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1713
- * | | | uuuuu | ... | 2,4 |
1714
- * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1715
- * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1716
- * | | | QQ | 01, 02, 03, 04 | |
1717
- * | | | QQQ | Q1, Q2, Q3, Q4 | |
1718
- * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1719
- * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1720
- * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1721
- * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1722
- * | | | qq | 01, 02, 03, 04 | |
1723
- * | | | qqq | Q1, Q2, Q3, Q4 | |
1724
- * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1725
- * | | | qqqqq | 1, 2, 3, 4 | 3 |
1726
- * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1727
- * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1728
- * | | | MM | 01, 02, ..., 12 | |
1729
- * | | | MMM | Jan, Feb, ..., Dec | |
1730
- * | | | MMMM | January, February, ..., December | 2 |
1731
- * | | | MMMMM | J, F, ..., D | |
1732
- * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1733
- * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1734
- * | | | LL | 01, 02, ..., 12 | |
1735
- * | | | LLL | Jan, Feb, ..., Dec | |
1736
- * | | | LLLL | January, February, ..., December | 2 |
1737
- * | | | LLLLL | J, F, ..., D | |
1738
- * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1739
- * | | | wo | 1st, 2nd, ..., 53th | 5 |
1740
- * | | | ww | 01, 02, ..., 53 | |
1741
- * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1742
- * | | | Io | 1st, 2nd, ..., 53th | 5 |
1743
- * | | | II | 01, 02, ..., 53 | 5 |
1744
- * | Day of month | 90 | d | 1, 2, ..., 31 | |
1745
- * | | | do | 1st, 2nd, ..., 31st | 5 |
1746
- * | | | dd | 01, 02, ..., 31 | |
1747
- * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1748
- * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1749
- * | | | DD | 01, 02, ..., 365, 366 | 7 |
1750
- * | | | DDD | 001, 002, ..., 365, 366 | |
1751
- * | | | DDDD | ... | 2 |
1752
- * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1753
- * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1754
- * | | | EEEEE | M, T, W, T, F, S, S | |
1755
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1756
- * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1757
- * | | | io | 1st, 2nd, ..., 7th | 5 |
1758
- * | | | ii | 01, 02, ..., 07 | 5 |
1759
- * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1760
- * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1761
- * | | | iiiii | M, T, W, T, F, S, S | 5 |
1762
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1763
- * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1764
- * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1765
- * | | | ee | 02, 03, ..., 01 | |
1766
- * | | | eee | Mon, Tue, Wed, ..., Sun | |
1767
- * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1768
- * | | | eeeee | M, T, W, T, F, S, S | |
1769
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1770
- * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1771
- * | | | co | 2nd, 3rd, ..., 1st | 5 |
1772
- * | | | cc | 02, 03, ..., 01 | |
1773
- * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1774
- * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1775
- * | | | ccccc | M, T, W, T, F, S, S | |
1776
- * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1777
- * | AM, PM | 80 | a..aaa | AM, PM | |
1778
- * | | | aaaa | a.m., p.m. | 2 |
1779
- * | | | aaaaa | a, p | |
1780
- * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1781
- * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1782
- * | | | bbbbb | a, p, n, mi | |
1783
- * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1784
- * | | | BBBB | at night, in the morning, ... | 2 |
1785
- * | | | BBBBB | at night, in the morning, ... | |
1786
- * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1787
- * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1788
- * | | | hh | 01, 02, ..., 11, 12 | |
1789
- * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1790
- * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1791
- * | | | HH | 00, 01, 02, ..., 23 | |
1792
- * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1793
- * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1794
- * | | | KK | 01, 02, ..., 11, 00 | |
1795
- * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1796
- * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1797
- * | | | kk | 24, 01, 02, ..., 23 | |
1798
- * | Minute | 60 | m | 0, 1, ..., 59 | |
1799
- * | | | mo | 0th, 1st, ..., 59th | 5 |
1800
- * | | | mm | 00, 01, ..., 59 | |
1801
- * | Second | 50 | s | 0, 1, ..., 59 | |
1802
- * | | | so | 0th, 1st, ..., 59th | 5 |
1803
- * | | | ss | 00, 01, ..., 59 | |
1804
- * | Seconds timestamp | 40 | t | 512969520 | |
1805
- * | | | tt | ... | 2 |
1806
- * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1807
- * | | | SS | 00, 01, ..., 99 | |
1808
- * | | | SSS | 000, 0001, ..., 999 | |
1809
- * | | | SSSS | ... | 2 |
1810
- * | Milliseconds timestamp | 20 | T | 512969520900 | |
1811
- * | | | TT | ... | 2 |
1812
- * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1813
- * | | | XX | -0800, +0530, Z | |
1814
- * | | | XXX | -08:00, +05:30, Z | |
1815
- * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1816
- * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1817
- * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1818
- * | | | xx | -0800, +0530, +0000 | |
1819
- * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1820
- * | | | xxxx | -0800, +0530, +0000, +123456 | |
1821
- * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1822
- * | Long localized date | NA | P | 05/29/1453 | 5,8 |
1823
- * | | | PP | May 29, 1453 | |
1824
- * | | | PPP | May 29th, 1453 | |
1825
- * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
1826
- * | Long localized time | NA | p | 12:00 AM | 5,8 |
1827
- * | | | pp | 12:00:00 AM | |
1828
- * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
1829
- * | | | PPpp | May 29, 1453, 12:00:00 AM | |
1830
- * | | | PPPpp | May 29th, 1453 at ... | |
1831
- * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
1832
- * Notes:
1833
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
1834
- * are the same as "stand-alone" units, but are different in some languages.
1835
- * "Formatting" units are declined according to the rules of the language
1836
- * in the context of a date. "Stand-alone" units are always nominative singular.
1837
- * In `format` function, they will produce different result:
1838
- *
1839
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
1840
- *
1841
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
1842
- *
1843
- * `parse` will try to match both formatting and stand-alone units interchangably.
1844
- *
1845
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
1846
- * the single quote characters (see below).
1847
- * If the sequence is longer than listed in table:
1848
- * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
1849
- * as wide as the sequence
1850
- * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
1851
- * These variations are marked with "2" in the last column of the table.
1852
- *
1853
- * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
1854
- * These tokens represent the shortest form of the quarter.
1855
- *
1856
- * 4. The main difference between `y` and `u` patterns are B.C. years:
1857
- *
1858
- * | Year | `y` | `u` |
1859
- * |------|-----|-----|
1860
- * | AC 1 | 1 | 1 |
1861
- * | BC 1 | 1 | 0 |
1862
- * | BC 2 | 2 | -1 |
1863
- *
1864
- * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
1865
- *
1866
- * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
1867
- *
1868
- * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
1869
- *
1870
- * while `uu` will just assign the year as is:
1871
- *
1872
- * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
1873
- *
1874
- * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
1875
- *
1876
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
1877
- * except local week-numbering years are dependent on `options.weekStartsOn`
1878
- * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
1879
- * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
1880
- *
1881
- * 5. These patterns are not in the Unicode Technical Standard #35:
1882
- * - `i`: ISO day of week
1883
- * - `I`: ISO week of year
1884
- * - `R`: ISO week-numbering year
1885
- * - `o`: ordinal number modifier
1886
- * - `P`: long localized date
1887
- * - `p`: long localized time
1888
- *
1889
- * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
1890
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
1891
- *
1892
- * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
1893
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
1894
- *
1895
- * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
1896
- * on the given locale.
1897
- *
1898
- * using `en-US` locale: `P` => `MM/dd/yyyy`
1899
- * using `en-US` locale: `p` => `hh:mm a`
1900
- * using `pt-BR` locale: `P` => `dd/MM/yyyy`
1901
- * using `pt-BR` locale: `p` => `HH:mm`
1902
- *
1903
- * Values will be assigned to the date in the descending order of its unit's priority.
1904
- * Units of an equal priority overwrite each other in the order of appearance.
1905
- *
1906
- * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
1907
- * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
1908
- *
1909
- * `referenceDate` must be passed for correct work of the function.
1910
- * If you're not sure which `referenceDate` to supply, create a new instance of Date:
1911
- * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
1912
- * In this case parsing will be done in the context of the current date.
1913
- * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
1914
- * then `Invalid Date` will be returned.
1915
- *
1916
- * The result may vary by locale.
1917
- *
1918
- * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
1919
- *
1920
- * If parsing failed, `Invalid Date` will be returned.
1921
- * Invalid Date is a Date, whose time value is NaN.
1922
- * Time value of Date: http://es5.github.io/#x15.9.1.1
1923
- *
1924
- * ### v2.0.0 breaking changes:
1925
- *
1926
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
1927
- *
1928
- * - Old `parse` was renamed to `toDate`.
1929
- * Now `parse` is a new function which parses a string using a provided format.
1930
- *
1931
- * ```javascript
1932
- * // Before v2.0.0
1933
- * parse('2016-01-01')
1934
- *
1935
- * // v2.0.0 onward (toDate no longer accepts a string)
1936
- * toDate(1392098430000) // Unix to timestamp
1937
- * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
1938
- * parse('2016-01-01', 'yyyy-MM-dd', new Date())
1939
- * ```
1940
- *
1941
- * @param {String} dateString - the string to parse
1942
- * @param {String} formatString - the string of tokens
1943
- * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
1944
- * @param {Object} [options] - an object with options.
1945
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
1946
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
1947
- * @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
1948
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
1949
- * see: https://git.io/fxCyr
1950
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
1951
- * see: https://git.io/fxCyr
1952
- * @returns {Date} the parsed date
1953
- * @throws {TypeError} 3 arguments required
1954
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
1955
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
1956
- * @throws {RangeError} `options.locale` must contain `match` property
1957
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
1958
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
1959
- * @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
1960
- * @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
1961
- * @throws {RangeError} format string contains an unescaped latin alphabet character
1962
- *
1963
- * @example
1964
- * // Parse 11 February 2014 from middle-endian format:
1965
- * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
1966
- * //=> Tue Feb 11 2014 00:00:00
1967
- *
1968
- * @example
1969
- * // Parse 28th of February in Esperanto locale in the context of 2010 year:
1970
- * import eo from 'date-fns/locale/eo'
1971
- * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
1972
- * locale: eo
1973
- * })
1974
- * //=> Sun Feb 28 2010 00:00:00
1975
- */
1976
-
1977
- function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
1978
- requiredArgs(3, arguments);
1979
- var dateString = String(dirtyDateString);
1980
- var formatString = String(dirtyFormatString);
1981
- var options = {};
1982
- var locale$1 = options.locale || locale;
1983
-
1984
- if (!locale$1.match) {
1985
- throw new RangeError('locale must contain match property');
1986
- }
1987
-
1988
- var localeFirstWeekContainsDate = locale$1.options && locale$1.options.firstWeekContainsDate;
1989
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
1990
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
1991
-
1992
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
1993
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
1994
- }
1995
-
1996
- var localeWeekStartsOn = locale$1.options && locale$1.options.weekStartsOn;
1997
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
1998
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
1999
-
2000
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2001
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2002
- }
2003
-
2004
- if (formatString === '') {
2005
- if (dateString === '') {
2006
- return toDate(dirtyReferenceDate);
2007
- } else {
2008
- return new Date(NaN);
2009
- }
2010
- }
2011
-
2012
- var subFnOptions = {
2013
- firstWeekContainsDate: firstWeekContainsDate,
2014
- weekStartsOn: weekStartsOn,
2015
- locale: locale$1
2016
- }; // If timezone isn't specified, it will be set to the system timezone
2017
-
2018
- var setters = [{
2019
- priority: TIMEZONE_UNIT_PRIORITY,
2020
- subPriority: -1,
2021
- set: dateToSystemTimezone,
2022
- index: 0
2023
- }];
2024
- var i;
2025
- var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2026
- var firstCharacter = substring[0];
2027
-
2028
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2029
- var longFormatter = longFormatters[firstCharacter];
2030
- return longFormatter(substring, locale$1.formatLong, subFnOptions);
2031
- }
2032
-
2033
- return substring;
2034
- }).join('').match(formattingTokensRegExp);
2035
- var usedTokens = [];
2036
-
2037
- for (i = 0; i < tokens.length; i++) {
2038
- var token = tokens[i];
2039
-
2040
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {
2041
- throwProtectedError(token, formatString, dirtyDateString);
2042
- }
2043
-
2044
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
2045
- throwProtectedError(token, formatString, dirtyDateString);
2046
- }
2047
-
2048
- var firstCharacter = token[0];
2049
- var parser = parsers[firstCharacter];
2050
-
2051
- if (parser) {
2052
- var incompatibleTokens = parser.incompatibleTokens;
2053
-
2054
- if (Array.isArray(incompatibleTokens)) {
2055
- var incompatibleToken = void 0;
2056
-
2057
- for (var _i = 0; _i < usedTokens.length; _i++) {
2058
- var usedToken = usedTokens[_i].token;
2059
-
2060
- if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2061
- incompatibleToken = usedTokens[_i];
2062
- break;
2063
- }
2064
- }
2065
-
2066
- if (incompatibleToken) {
2067
- throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2068
- }
2069
- } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2070
- throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2071
- }
2072
-
2073
- usedTokens.push({
2074
- token: firstCharacter,
2075
- fullToken: token
2076
- });
2077
- var parseResult = parser.parse(dateString, token, locale$1.match, subFnOptions);
2078
-
2079
- if (!parseResult) {
2080
- return new Date(NaN);
2081
- }
2082
-
2083
- setters.push({
2084
- priority: parser.priority,
2085
- subPriority: parser.subPriority || 0,
2086
- set: parser.set,
2087
- validate: parser.validate,
2088
- value: parseResult.value,
2089
- index: setters.length
2090
- });
2091
- dateString = parseResult.rest;
2092
- } else {
2093
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2094
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2095
- } // Replace two single quote characters with one single quote character
2096
-
2097
-
2098
- if (token === "''") {
2099
- token = "'";
2100
- } else if (firstCharacter === "'") {
2101
- token = cleanEscapedString(token);
2102
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2103
-
2104
-
2105
- if (dateString.indexOf(token) === 0) {
2106
- dateString = dateString.slice(token.length);
2107
- } else {
2108
- return new Date(NaN);
2109
- }
2110
- }
2111
- } // Check if the remaining input contains something other than whitespace
2112
-
2113
-
2114
- if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2115
- return new Date(NaN);
2116
- }
2117
-
2118
- var uniquePrioritySetters = setters.map(function (setter) {
2119
- return setter.priority;
2120
- }).sort(function (a, b) {
2121
- return b - a;
2122
- }).filter(function (priority, index, array) {
2123
- return array.indexOf(priority) === index;
2124
- }).map(function (priority) {
2125
- return setters.filter(function (setter) {
2126
- return setter.priority === priority;
2127
- }).sort(function (a, b) {
2128
- return b.subPriority - a.subPriority;
2129
- });
2130
- }).map(function (setterArray) {
2131
- return setterArray[0];
2132
- });
2133
- var date = toDate(dirtyReferenceDate);
2134
-
2135
- if (isNaN(date)) {
2136
- return new Date(NaN);
2137
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2138
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2139
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2140
-
2141
-
2142
- var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));
2143
- var flags = {};
2144
-
2145
- for (i = 0; i < uniquePrioritySetters.length; i++) {
2146
- var setter = uniquePrioritySetters[i];
2147
-
2148
- if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2149
- return new Date(NaN);
2150
- }
2151
-
2152
- var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2153
-
2154
- if (result[0]) {
2155
- utcDate = result[0];
2156
- assign(flags, result[1]); // Result is date
2157
- } else {
2158
- utcDate = result;
2159
- }
2160
- }
2161
-
2162
- return utcDate;
2163
- }
2164
-
2165
- function dateToSystemTimezone(date, flags) {
2166
- if (flags.timestampIsSet) {
2167
- return date;
2168
- }
2169
-
2170
- var convertedDate = new Date(0);
2171
- convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2172
- convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2173
- return convertedDate;
2174
- }
2175
-
2176
- function cleanEscapedString(input) {
2177
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2178
- }
2179
-
2180
- 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}`;
2181
-
2182
- const CalendarDatepicker = class {
2183
- constructor(hostRef) {
2184
- registerInstance(this, hostRef);
2185
- this.afOnDateChange = createEvent(this, "afOnDateChange", 7);
2186
- this.afOnDateChangeRawText = createEvent(this, "afOnDateChangeRawText", 7);
2187
- this.afOnValidationChange = createEvent(this, "afOnValidationChange", 7);
2188
- this.showWrongFormatError = false;
2189
- this.showDisabledDateError = false;
2190
- this.showCalendar = false;
2191
- this.futureYears = 10;
2192
- this.screenReaderUpdateTrigger = false;
2193
- this.userInput = '';
2194
- /**
2195
- * Sätter attributet id för inputfältet, och utgör basen för andra id:n i komponenten
2196
- * @en Sets an id attribute for the input field, and serves as the base for other ids in the component
2197
- */
2198
- this.afId = randomIdGenerator('digi-calendar-datepicker');
2199
- /**
2200
- * Texten till etiketten
2201
- * @en The label text
2202
- */
2203
- this.afLabel = _t.calendar.datepicker.label;
2204
- /**
2205
- * Aria-label till knappen som öppnar kalendern
2206
- * @en Aria-label for the button that opens the calendar
2207
- */
2208
- this.afOpenCalendarAriaLabel = _t.calendar.datepicker.openCalendarAriaLabel;
2209
- /**
2210
- * Aria-label till knappen som stänger kalendern
2211
- * @en Aria-label for the button that closes the calendar
2212
- */
2213
- this.afCloseCalendarAriaLabel = _t.calendar.datepicker.closeCalendarAriaLabel;
2214
- /**
2215
- * 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.
2216
- * @en Set input validation status
2217
- */
2218
- this.afValidation = CalendarDatepickerValidation.NEUTRAL;
2219
- /**
2220
- * Sätter valideringsmeddelandet för den inbyggda formatvalideringen. Default är "Fel format"
2221
- * @en Set input validation message for the built-in format validation
2222
- */
2223
- this.afValidationWrongFormat = _t.calendar.datepicker.validationWrongFormat;
2224
- /**
2225
- * Sätter valideringsmeddelandet för den inbyggda valideringen när man anger datum som inte är valbara. Default är "Ej valbart datum"
2226
- * @en Set input validation message for the built-in when date is not selectable
2227
- */
2228
- this.afValidationDisabledDate = _t.calendar.datepicker.validationDisabledDate;
2229
- /**
2230
- * Sätt denna till true för att stänga av komponentens egna validering
2231
- * @en Set this to true to disable internal validation
2232
- */
2233
- this.afDisableValidation = false;
2234
- /**
2235
- * Valda datum i kalendern
2236
- * @en Selected dates in calendar
2237
- */
2238
- this.afSelectedDates = [];
2239
- /**
2240
- * 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.
2241
- * @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.
2242
- */
2243
- this.afYearSelect = false;
2244
- /**
2245
- * Sätter attributet 'value'
2246
- * @en Input value attribute
2247
- * @ignore
2248
- */
2249
- this.value = [];
2250
- /**
2251
- * Visa veckonummer i kalender
2252
- * @en Show week number in the calander.
2253
- */
2254
- this.afShowWeekNumber = false;
2255
- /**
2256
- * Sätt denna till true för att kunna markera mer en ett datum i kalendern
2257
- * @en Set this to true to be able to select multiple dates in the calander
2258
- */
2259
- this.afMultipleDates = false;
2260
- /**
2261
- * Sätt denna till true om kalendern ska stängas när användaren väljer ett datum
2262
- * @en Set this to true if the calendar should close when a date is selected
2263
- */
2264
- this.afCloseOnSelect = false;
2265
- /**
2266
- * Om värdet är true får felmeddelandet attributet role="alert".
2267
- * Om felet visas tillsammans med flera andra fel (till exempel efter servervalidering) ska värdet sättas till false.
2268
- * @en If the value is true, the error message gets the attribute role="alert".
2269
- * If the error is shown together with multiple errors (for example after server-side validation), the value should be set to false.
2270
- */
2271
- this.afErrorMessageIsAlert = true;
2272
- /**
2273
- * Sätt denna till true om formuläret innehåller fler obligatoriska fält än valfria.
2274
- * @en Set this to true if the form contains more required fields than optional fields.
2275
- */
2276
- this.afAnnounceIfOptional = false;
2277
- }
2278
- afDisableValidationChangeHandler(newVal) {
2279
- if (!newVal) {
2280
- const dates = this.userInput !== ''
2281
- ? this.parseInputString(this.userInput)
2282
- : this.afSelectedDates;
2283
- this.validateInputAndShowErrors(dates);
2284
- }
2285
- else {
2286
- this.showWrongFormatError = false;
2287
- this.showDisabledDateError = false;
2288
- }
2289
- }
2290
- afSelectedDatesChangeHandler(newVal) {
2291
- if (!this.afDisableValidation && newVal.length > 0) {
2292
- this.validateInputAndShowErrors(newVal);
2293
- }
2294
- }
2295
- valueChangeHandler(newVal) {
2296
- if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2297
- this.afSelectedDates = [];
2298
- }
2299
- /**
2300
- * 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.
2301
- */
2302
- if (Array.isArray(newVal) &&
2303
- newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2304
- this.afSelectedDates = newVal;
2305
- this.userInput = '';
2306
- }
2307
- }
2308
- afMinDateChangeHandler(newVal) {
2309
- if (!this.afDisableValidation && newVal) {
2310
- this.validateInputAndShowErrors(this.afSelectedDates);
2311
- }
2312
- }
2313
- afMaxDateChangeHandler(newVal) {
2314
- if (!this.afDisableValidation && newVal) {
2315
- this.validateInputAndShowErrors(this.afSelectedDates);
2316
- }
2317
- }
2318
- afMultipleDatesChangeHandler() {
2319
- var _a;
2320
- if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2321
- this.afSelectedDates = this.afSelectedDates.slice(-1);
2322
- this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2323
- }
2324
- }
2325
- get errorMessageIsAlert() {
2326
- return (this.afErrorMessageIsAlert !== false &&
2327
- this.afErrorMessageIsAlert !== 'false');
2328
- }
2329
- clickHandler(e) {
2330
- const target = e.target;
2331
- const selector = `#${this.afId}-datepicker`;
2332
- if (detectClickOutside(target, selector)) {
2333
- this.showCalendar = false;
2334
- }
2335
- }
2336
- /**
2337
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva input-elementet.
2338
- * @en Listens for when focus is set on the custom element and propagates it down to the actual input element.
2339
- */
2340
- focusOnInput() {
2341
- this._input.focus();
2342
- }
2343
- connectedCallback() {
2344
- this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2345
- }
2346
- disconnectedCallback() {
2347
- this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2348
- }
2349
- componentDidLoad() {
2350
- var _a;
2351
- if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2352
- this.setValue(this.value);
2353
- }
2354
- }
2355
- componentDidUpdate() {
2356
- if (this.showCalendar) {
2357
- this.positionCalendar();
2358
- }
2359
- }
2360
- get cssModifiers() {
2361
- return {
2362
- 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2363
- 'digi-calendar-datepicker__show-error': this.hasBuiltInValidationError() || this.hasCustomValidationError(),
2364
- 'digi-calendar-datepicker__show-calendar': this.showCalendar
2365
- };
2366
- }
2367
- keyUpHandler(e) {
2368
- if (e.key === 'Escape' && this.showCalendar) {
2369
- this.showCalendar = false;
2370
- this.focusOnCalendarButton();
2371
- e.stopPropagation();
2372
- }
2373
- }
2374
- focusOnCalendarInput() {
2375
- const input = this.hostElement.querySelector(`#${this.afId}-datepicker input`);
2376
- input === null || input === void 0 ? void 0 : input.focus();
2377
- }
2378
- focusOnCalendarButton() {
2379
- const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2380
- calendarButton.focus();
2381
- }
2382
- positionCalendar() {
2383
- const btn = this.hostElement.querySelector(`#${this.afId}-button`);
2384
- const datepickerEl = this.hostElement.querySelector(`#${this.afId}-datepicker`);
2385
- if (!btn || !datepickerEl)
2386
- return;
2387
- const btnRect = btn.getBoundingClientRect();
2388
- const containerRect = datepickerEl.getBoundingClientRect();
2389
- datepickerEl.style.setProperty('--digi--datepicker--calendar--popup-top', `${btnRect.bottom - containerRect.top + 5}px`);
2390
- }
2391
- toggleCalendar() {
2392
- if (!this.showCalendar) {
2393
- this.positionCalendar();
2394
- }
2395
- this.showCalendar = !this.showCalendar;
2396
- if (this.showCalendar) {
2397
- this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2398
- }
2399
- }
2400
- parseInputString(value) {
2401
- return value
2402
- .split(new RegExp(`[&,]|${_t.and}`, 'g'))
2403
- .map((text) => this.parseDateString(text.trim()));
2404
- }
2405
- resetValueAndState() {
2406
- this.showWrongFormatError = false;
2407
- this.showDisabledDateError = false;
2408
- this.setValue([]);
2409
- this.afOnDateChange.emit([]);
2410
- this.afSelectedDates = [];
2411
- }
2412
- removeDuplicateDates(dates) {
2413
- const seen = new Set();
2414
- return dates.filter((date) => {
2415
- if (!(date instanceof Date) || isNaN(date.getTime())) {
2416
- return true;
2417
- }
2418
- const key = date.toISOString().split('T')[0]; // yyyy-mm-dd
2419
- if (seen.has(key)) {
2420
- return false;
2421
- }
2422
- seen.add(key);
2423
- return true;
2424
- });
2425
- }
2426
- validateInputAndShowErrors(dates) {
2427
- this.showWrongFormatError = !!dates.find((date) => !isValid(date));
2428
- this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2429
- const inputIsValid = !this.showWrongFormatError && !this.showDisabledDateError;
2430
- this.afOnValidationChange.emit({
2431
- isValid: inputIsValid,
2432
- validationText: inputIsValid
2433
- ? undefined
2434
- : this.showWrongFormatError
2435
- ? this.afValidationWrongFormat
2436
- : this.afValidationDisabledDate
2437
- });
2438
- }
2439
- setValue(value) {
2440
- this.afSelectedDates = value;
2441
- this.value = value;
2442
- }
2443
- parseInput(evt) {
2444
- let newValue = '';
2445
- if (evt.detail && typeof evt.detail.value === 'string') {
2446
- newValue = evt.detail.value;
2447
- }
2448
- else if (evt.target && evt.target.value != null) {
2449
- newValue = evt.target.value;
2450
- }
2451
- this.userInput = newValue;
2452
- if (newValue === '') {
2453
- this.resetValueAndState();
2454
- return;
2455
- }
2456
- let dates = this.parseInputString(newValue);
2457
- // Single dates - acceptera inte flera datum inskrivna
2458
- if (!this.afDisableValidation &&
2459
- !this.afMultipleDates &&
2460
- dates.length > 1) {
2461
- this.showWrongFormatError = true;
2462
- this.afOnValidationChange.emit({
2463
- isValid: false,
2464
- validationText: this.afValidationWrongFormat
2465
- });
2466
- return;
2467
- }
2468
- // Multiple dates - filtrera bort dubbletter
2469
- if (!this.afDisableValidation && this.afMultipleDates) {
2470
- const uniqueDates = this.removeDuplicateDates(dates);
2471
- if (uniqueDates.length !== dates.length) {
2472
- dates = uniqueDates;
2473
- this.userInput = this.datesToInputString(dates);
2474
- }
2475
- }
2476
- this.setValue(dates);
2477
- if (!this.afDisableValidation) {
2478
- this.validateInputAndShowErrors(dates);
2479
- }
2480
- this.afOnDateChange.emit(dates);
2481
- }
2482
- parseCalendar(evt) {
2483
- if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
2484
- return;
2485
- if (!this.afDisableValidation) {
2486
- this.showWrongFormatError = false;
2487
- this.showDisabledDateError = false;
2488
- }
2489
- this.userInput = '';
2490
- this.setValue(evt.detail);
2491
- this.afOnDateChangeRawText.emit(this.inputValue);
2492
- if (this.afCloseOnSelect) {
2493
- this.toggleCalendar();
2494
- this.focusOnCalendarButton();
2495
- }
2496
- this.afOnDateChange.emit(this.afSelectedDates);
2497
- }
2498
- /*
2499
-
2500
- 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.
2501
-
2502
- */
2503
- parseDateString(s) {
2504
- const raw = s.trim().replace(/[./]/g, '-');
2505
- // 1) yyyy-MM-dd
2506
- if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
2507
- const d = parse(raw, 'yyyy-MM-dd', new Date());
2508
- return isValid(d) ? d : new Date(NaN);
2509
- }
2510
- // 2) yyyymmdd
2511
- if (/^\d{8}$/.test(raw)) {
2512
- const yyyy = raw.slice(0, 4);
2513
- const mm = raw.slice(4, 6);
2514
- const dd = raw.slice(6, 8);
2515
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2516
- return isValid(d) ? d : new Date(NaN);
2517
- }
2518
- // 3) yymmdd (map to full year using the previous futureYears logic)
2519
- if (/^\d{6}$/.test(raw)) {
2520
- const yy = raw.slice(0, 2);
2521
- const mm = raw.slice(2, 4);
2522
- const dd = raw.slice(4, 6);
2523
- const yyyy = this.getFullYear(yy);
2524
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2525
- return isValid(d) ? d : new Date(NaN);
2526
- }
2527
- // Everything else is invalid (so "1" and "25" will now be "Fel format")
2528
- return new Date(NaN);
2529
- }
2530
- getFullYear(s) {
2531
- if (s.length === 4)
2532
- return s;
2533
- const y = new Date().getFullYear().toString();
2534
- return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
2535
- ? parseInt(y.slice(0, -2)) - 1 + s
2536
- : y.slice(0, -2) + s;
2537
- }
2538
- isDateSelectable(date) {
2539
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2540
- return false;
2541
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2542
- return false;
2543
- return true;
2544
- }
2545
- isBefore(a, b) {
2546
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2547
- }
2548
- isAfter(a, b) {
2549
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2550
- }
2551
- dateWithoutTime(date) {
2552
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2553
- }
2554
- hasBuiltInValidationError() {
2555
- return this.showWrongFormatError || this.showDisabledDateError;
2556
- }
2557
- hasCustomValidationError() {
2558
- return (this.afValidation &&
2559
- this.afValidation !== CalendarDatepickerValidation.NEUTRAL);
2560
- }
2561
- getErrorText() {
2562
- if (this.hasBuiltInValidationError()) {
2563
- return this.showWrongFormatError
2564
- ? this.afValidationWrongFormat
2565
- : this.afValidationDisabledDate;
2566
- }
2567
- if (this.hasCustomValidationError()) {
2568
- return this.afValidationText;
2569
- }
2570
- }
2571
- get inputValue() {
2572
- if (this.userInput !== '') {
2573
- return this.userInput;
2574
- }
2575
- // otherwise format your real selected dates
2576
- const sorted = this.afSelectedDates
2577
- .slice()
2578
- .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
2579
- return this.datesToInputString(sorted);
2580
- }
2581
- datesToInputString(dates) {
2582
- return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
2583
- ? dates
2584
- .map((date) => date.toLocaleDateString(_t.locale))
2585
- .flatMap((date, index, all) => {
2586
- const isLast = index == all.length - 1;
2587
- const isFirst = index === 0;
2588
- if (isFirst) {
2589
- return date;
2590
- }
2591
- else if (isLast) {
2592
- return [` ${_t.and} `, date];
2593
- }
2594
- else {
2595
- return [', ', date];
2596
- }
2597
- })
2598
- .join('')
2599
- : '';
2600
- }
2601
- get getSelectedDates() {
2602
- if (!this.afDisableValidation && this.hasBuiltInValidationError()) {
2603
- return [];
2604
- }
2605
- return this.afSelectedDates;
2606
- }
2607
- render() {
2608
- return (h(Host, { key: 'a22b366eece8bdf2a6d66ba7b4561093391ad16d', tabindex: -1 }, h("div", { key: '5ec3557df78bb012f2e10f1852252e78e2470ee3', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, h("div", { key: '1215a13021718ac98ad2a4a7a5bae3c456385124', class: "digi-calendar-datepicker__input-field" }, 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()
2609
- ? FormInputValidation.ERROR
2610
- : 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) => {
2611
- evt.stopImmediatePropagation();
2612
- this.parseInput(evt);
2613
- }, onAfOnBlur: (evt) => {
2614
- evt.stopImmediatePropagation();
2615
- this.afOnDateChangeRawText.emit(this.inputValue);
2616
- }, onKeyDown: (e) => {
2617
- // Focus trap: Catch backwards tab from input field and direct it to date button.
2618
- if (!this.showCalendar || e.key !== 'Tab' || !e.shiftKey)
2619
- return;
2620
- if (e.target.tagName !== 'INPUT')
2621
- return;
2622
- e.preventDefault();
2623
- const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
2624
- focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
2625
- } }, h("button", { key: 'c953ddf0c99cfd3b892941da7da4a887b342fd78', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
2626
- ? this.afCloseCalendarAriaLabel
2627
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, h("digi-icon-calendar-alt", { key: '46c7387d404b77911b97f31c10e7147bd436c7e3', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), h("div", { key: '91894a4219afa79d913f558f5d1cc6b410b535ce', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, h("p", { key: '989fc17ea7a95aa014a26e09f7db7f59fe53a36b', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
2628
- ? `${_t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
2629
- : ''), 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) => {
2630
- evt.stopImmediatePropagation();
2631
- this.parseCalendar(evt);
2632
- }, onKeyDown: (e) => {
2633
- // Focus trap: Catch forward tab from last focusable element in calendar and direct it to the input.
2634
- if (!this.showCalendar || e.key !== 'Tab' || e.shiftKey)
2635
- return;
2636
- if (!e.target.classList.contains('digi-calendar__date'))
2637
- return;
2638
- e.preventDefault();
2639
- this.focusOnCalendarInput();
2640
- } })), this.afCloseOnSelect && !this.afMultipleDates && (h("div", { key: 'd9f3eb470b29a0ab96134f1e4666743efacd7448', class: "digi-calendar-datepicker__selected-date-alert", role: this.errorMessageIsAlert ? 'alert' : null }, this.afSelectedDates.length > 0
2641
- ? `${_t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
2642
- : '')))));
2643
- }
2644
- get hostElement() { return getElement(this); }
2645
- static get watchers() { return {
2646
- "afDisableValidation": [{
2647
- "afDisableValidationChangeHandler": 0
2648
- }],
2649
- "afSelectedDates": [{
2650
- "afSelectedDatesChangeHandler": 0
2651
- }],
2652
- "value": [{
2653
- "valueChangeHandler": 0
2654
- }],
2655
- "afMinDate": [{
2656
- "afMinDateChangeHandler": 0
2657
- }],
2658
- "afMaxDate": [{
2659
- "afMaxDateChangeHandler": 0
2660
- }],
2661
- "afMultipleDates": [{
2662
- "afMultipleDatesChangeHandler": 0
2663
- }]
2664
- }; }
2665
- };
2666
- CalendarDatepicker.style = calendarDatepickerCss();
2667
-
2668
- export { CalendarDatepicker as digi_calendar_datepicker };