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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-button.js +1 -1
  3. package/components/digi-calendar-datepicker.js +4 -4
  4. package/components/digi-calendar-week-view.js +1 -1
  5. package/components/digi-calendar.js +1 -1
  6. package/components/digi-chart-line.js +1 -1
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +3 -3
  9. package/components/digi-context-menu.js +1 -1
  10. package/components/digi-dialog.js +3 -3
  11. package/components/digi-expandable-faq-item.js +1 -1
  12. package/components/digi-footer.js +1 -1
  13. package/components/digi-form-category-filter.js +1 -1
  14. package/components/digi-form-checkbox.js +1 -1
  15. package/components/digi-form-error-list.js +3 -3
  16. package/components/digi-form-file-upload.js +1 -1
  17. package/components/digi-form-filter.js +2 -2
  18. package/components/digi-form-input-search.js +1 -1
  19. package/components/digi-form-receipt.js +1 -1
  20. package/components/digi-form-select-filter.js +3 -3
  21. package/components/digi-form-select.js +1 -1
  22. package/components/digi-header-avatar.js +1 -1
  23. package/components/digi-header-navigation.js +2 -2
  24. package/components/digi-header.js +3 -3
  25. package/components/digi-info-card.js +2 -2
  26. package/components/digi-link-internal.js +1 -1
  27. package/components/digi-logo.js +1 -1
  28. package/components/digi-navigation-pagination.js +2 -2
  29. package/components/digi-navigation-sidebar-button.js +1 -1
  30. package/components/digi-navigation-sidebar.js +1 -1
  31. package/components/digi-navigation-vertical-menu-item.js +1 -1
  32. package/components/digi-notification-alert.js +1 -1
  33. package/components/digi-notification-error-page.js +1 -1
  34. package/components/digi-progress-indicator.js +1 -1
  35. package/components/digi-quote.js +1 -1
  36. package/components/digi-tag.js +1 -1
  37. package/components/digi-title-logo.js +1 -1
  38. package/components/digi-tools-feedback.js +3 -3
  39. package/components/digi-tools-theme-provider.js +18 -5
  40. package/components/index.js +1 -1
  41. package/components/p-0d568c4b.js +66 -0
  42. package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
  43. package/components/{p-7ff04204.js → p-29f63312.js} +2 -2
  44. package/components/p-606ba731.js +165 -0
  45. package/components/{p-44f143ea.js → p-7d3fb535.js} +2 -2
  46. package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
  47. package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
  48. package/components/p-d7ef9cb1.js +13 -0
  49. package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
  50. package/components/p-f77cb7ae.js +163 -0
  51. package/custom-elements.json +4 -0
  52. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  53. package/dist/cjs/digi-button_38.cjs.entry.js +5759 -0
  54. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  55. package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block.cjs.entry.js} +3 -143
  56. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  57. package/dist/cjs/digi-dialog.cjs.entry.js +4 -15
  58. package/dist/cjs/digi-footer.cjs.entry.js +3 -14
  59. package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -14
  60. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
  61. package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -7
  62. package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -14
  63. package/dist/cjs/digi-header-avatar.cjs.entry.js +114 -0
  64. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
  65. package/dist/cjs/digi-header-navigation.cjs.entry.js +218 -0
  66. package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
  67. package/dist/cjs/digi-header.cjs.entry.js +134 -0
  68. package/dist/cjs/{digi-icon-copy.cjs.entry.js → digi-icon-bars.cjs.entry.js} +7 -7
  69. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
  70. package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
  71. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  72. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  73. package/dist/cjs/digi-media-image_2.cjs.entry.js +167 -0
  74. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -14
  75. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +30 -0
  76. package/dist/cjs/digi-notification-alert.cjs.entry.js +3 -14
  77. package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -14
  78. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  79. package/dist/cjs/digi-title-logo.cjs.entry.js +121 -0
  80. package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -15
  81. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
  82. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  83. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  84. package/dist/cjs/index-7a477838.js +44 -96
  85. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  86. package/dist/cjs/index.cjs.js +136 -141
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/cjs/{typography-variation.enum-118ff8e5.js → typography-variation.enum-e41bd69d.js} +138 -0
  89. package/dist/collection/components/_button/button/button.css +6 -6
  90. package/dist/collection/components/_calendar/calendar/calendar.css +7 -2
  91. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +347 -102
  92. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  93. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  94. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  95. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +347 -102
  96. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
  97. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  98. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  99. package/dist/collection/components/_header/header-avatar/header-avatar.css +346 -101
  100. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  101. package/dist/collection/components/_link/link-internal/link-internal.css +346 -101
  102. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  103. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  104. package/dist/collection/components/_quote/quote/quote.css +2 -2
  105. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  106. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +113 -2
  107. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  108. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  109. package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
  110. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  111. package/dist/collection/design-tokens/components/_calendar.variables.scss +3 -2
  112. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  113. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  114. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  115. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  116. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
  117. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  118. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  119. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  120. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  121. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  122. package/dist/collection/enums.js +1 -0
  123. package/dist/collection/styles/src/_alias.mixin.scss +274 -128
  124. package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
  125. package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +143 -0
  126. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
  127. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
  128. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  129. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +3 -2
  130. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  131. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  132. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  133. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  134. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
  135. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  136. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  137. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  138. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  139. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  140. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  141. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  142. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  143. package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
  144. package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
  145. package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
  146. package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
  147. package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +1 -0
  148. package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
  149. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  150. package/dist/digi-arbetsformedlingen/p-52a3c86a.entry.js +1 -0
  151. package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
  152. package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
  153. package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
  154. package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
  155. package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +1 -0
  156. package/dist/digi-arbetsformedlingen/p-76ec3619.entry.js +1 -0
  157. package/dist/digi-arbetsformedlingen/p-780519ec.entry.js +1 -0
  158. package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
  159. package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
  160. package/dist/digi-arbetsformedlingen/p-84719680.entry.js +1 -0
  161. package/dist/digi-arbetsformedlingen/p-920aee36.entry.js +1 -0
  162. package/dist/digi-arbetsformedlingen/p-9b6e8cf8.entry.js +1 -0
  163. package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +1 -0
  164. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  165. package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +1 -0
  166. package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +1 -0
  167. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  168. package/dist/digi-arbetsformedlingen/p-d9bcab5f.entry.js +1 -0
  169. package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +1 -0
  170. package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
  171. package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
  172. package/dist/digi-arbetsformedlingen/p-e7ee9bea.entry.js +1 -0
  173. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  174. package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
  175. package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +1 -0
  176. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +274 -128
  177. package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
  178. package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +143 -0
  179. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
  180. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  181. package/dist/esm/digi-button_38.entry.js +5718 -0
  182. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  183. package/dist/esm/digi-code-block.entry.js +85 -0
  184. package/dist/esm/digi-code-example.entry.js +1 -1
  185. package/dist/esm/digi-dialog.entry.js +4 -15
  186. package/dist/esm/digi-footer.entry.js +3 -14
  187. package/dist/esm/digi-form-error-list.entry.js +3 -14
  188. package/dist/esm/digi-form-file-upload.entry.js +2 -3
  189. package/dist/esm/digi-form-input-search.entry.js +1 -2
  190. package/dist/esm/digi-form-receipt.entry.js +3 -14
  191. package/dist/esm/digi-header-avatar.entry.js +110 -0
  192. package/dist/esm/digi-header-navigation-item.entry.js +23 -0
  193. package/dist/esm/digi-header-navigation.entry.js +214 -0
  194. package/dist/esm/digi-header-notification.entry.js +19 -0
  195. package/dist/esm/digi-header.entry.js +130 -0
  196. package/dist/esm/digi-icon-bars.entry.js +26 -0
  197. package/dist/esm/digi-icon-bell-filled.entry.js +26 -0
  198. package/dist/esm/digi-icon-x.entry.js +26 -0
  199. package/dist/esm/digi-info-card.entry.js +1 -1
  200. package/dist/esm/digi-link-internal.entry.js +1 -1
  201. package/dist/esm/digi-media-image_2.entry.js +162 -0
  202. package/dist/esm/digi-navigation-pagination.entry.js +3 -14
  203. package/dist/esm/digi-navigation-sidebar-button.entry.js +26 -0
  204. package/dist/esm/digi-notification-alert.entry.js +3 -14
  205. package/dist/esm/digi-notification-error-page.entry.js +3 -14
  206. package/dist/esm/digi-quote.entry.js +1 -1
  207. package/dist/esm/digi-title-logo.entry.js +117 -0
  208. package/dist/esm/digi-tools-feedback.entry.js +4 -15
  209. package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
  210. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  211. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  212. package/dist/esm/index-148a7577.js +44 -96
  213. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  214. package/dist/esm/index.js +3 -14
  215. package/dist/esm/loader.js +1 -1
  216. package/dist/esm/{typography-variation.enum-23eeecd2.js → typography-variation.enum-b07f76c9.js} +139 -1
  217. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  218. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  219. package/dist/types/components.d.ts +12 -0
  220. package/dist/types/enums.d.ts +1 -0
  221. package/hydrate/index.js +40 -21
  222. package/hydrate/index.mjs +40 -21
  223. package/package.json +1 -1
  224. package/components/p-4bad4fb0.js +0 -7
  225. package/components/p-b57677c1.js +0 -66
  226. package/components/p-e8fc33ed.js +0 -165
  227. package/components/p-ff4f4fb8.js +0 -163
  228. package/dist/cjs/digi-button_17.cjs.entry.js +0 -1120
  229. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2600
  230. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  231. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  232. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  233. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
  234. package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
  235. package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -129
  236. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
  237. package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -565
  238. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -186
  239. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  240. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  241. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  242. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  243. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +0 -53
  244. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  245. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  246. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  247. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  248. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  249. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  250. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  251. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  252. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
  253. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  254. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  255. package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +0 -15
  256. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  257. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  258. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  259. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  260. package/dist/cjs/index-cad91a90.js +0 -66
  261. package/dist/cjs/index-e8333bcc.js +0 -174
  262. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  263. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  264. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  265. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  266. package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +0 -1
  267. package/dist/digi-arbetsformedlingen/p-07985aef.entry.js +0 -1
  268. package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +0 -1
  269. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  270. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  271. package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
  272. package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +0 -1
  273. package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +0 -1
  274. package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
  275. package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
  276. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  277. package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
  278. package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
  279. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
  280. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  281. package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
  282. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +0 -1
  283. package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +0 -1
  284. package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
  285. package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +0 -1
  286. package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +0 -1
  287. package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
  288. package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
  289. package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
  290. package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
  291. package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +0 -1
  292. package/dist/digi-arbetsformedlingen/p-7327f45d.entry.js +0 -1
  293. package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
  294. package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
  295. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  296. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  297. package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +0 -1
  298. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  299. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  300. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  301. package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
  302. package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
  303. package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
  304. package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +0 -1
  305. package/dist/digi-arbetsformedlingen/p-9be9a291.js +0 -1
  306. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  307. package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +0 -1
  308. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  309. package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +0 -1
  310. package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
  311. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  312. package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +0 -1
  313. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  314. package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +0 -1
  315. package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
  316. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  317. package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
  318. package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
  319. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  320. package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +0 -1
  321. package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +0 -1
  322. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  323. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  324. package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +0 -1
  325. package/dist/esm/digi-button_17.entry.js +0 -1100
  326. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2596
  327. package/dist/esm/digi-calendar_2.entry.js +0 -459
  328. package/dist/esm/digi-code-block_3.entry.js +0 -223
  329. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  330. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  331. package/dist/esm/digi-form-checkbox.entry.js +0 -123
  332. package/dist/esm/digi-form-input.entry.js +0 -190
  333. package/dist/esm/digi-form-label_3.entry.js +0 -123
  334. package/dist/esm/digi-form-radiogroup.entry.js +0 -76
  335. package/dist/esm/digi-form-select-filter.entry.js +0 -561
  336. package/dist/esm/digi-form-select_2.entry.js +0 -181
  337. package/dist/esm/digi-icon-check.entry.js +0 -26
  338. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  339. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  340. package/dist/esm/digi-icon-copy.entry.js +0 -26
  341. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  342. package/dist/esm/digi-icon-validation-error_2.entry.js +0 -48
  343. package/dist/esm/digi-link.entry.js +0 -71
  344. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  345. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  346. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  347. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  348. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  349. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  350. package/dist/esm/digi-typography.entry.js +0 -22
  351. package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
  352. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  353. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  354. package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +0 -15
  355. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  356. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  357. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  358. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  359. package/dist/esm/index-5b6c95c6.js +0 -63
  360. package/dist/esm/index-8685f88d.js +0 -170
  361. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  362. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  363. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  364. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
@@ -1,2596 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-148a7577.js';
2
- import { _ as _t } from './text-8f88c0f6.js';
3
- import './badge-notification-shape.enum-e15a6245.js';
4
- import { C as CalendarDatepickerValidation } from './typography-variation.enum-23eeecd2.js';
5
- import './badge-status-variation.enum-8d6370ff.js';
6
- import './code-example-variation.enum-e656d235.js';
7
- import './form-input-search-variation.enum-6d8dc10a.js';
8
- import './button-variation.enum-94fffdd6.js';
9
- import './calendar-week-view-heading-level.enum-6774297c.js';
10
- import './bar-chart-variation.enum-97c0b47f.js';
11
- import './code-variation.enum-1eee7c7a.js';
12
- import './expandable-accordion-header-level.enum-85681e2f.js';
13
- import './expandable-faq-item-variation.enum-a8cb225b.js';
14
- import './expandable-faq-variation.enum-6934c367.js';
15
- import './footer-card-variation.enum-cc732148.js';
16
- import './form-checkbox-variation.enum-83e906fc.js';
17
- import './form-file-upload-variation.enum-9c49ec5e.js';
18
- import './form-input-type.enum-3da3db27.js';
19
- import { a as FormInputValidation } from './form-input-variation.enum-64d9450f.js';
20
- import './form-radiogroup-validation.enum-d790fc66.js';
21
- import './form-select-variation.enum-f2f6098d.js';
22
- import './form-textarea-variation.enum-05017e8e.js';
23
- import './form-validation-message-variation.enum-bcef8a9d.js';
24
- import './info-card-multi-type.enum-07ee124f.js';
25
- import './info-card-variation.enum-2ccc52c1.js';
26
- import './layout-block-variation.enum-b7a20db4.js';
27
- import './layout-columns-variation.enum-34f7754e.js';
28
- import './link-button-variation.enum-84d4976f.js';
29
- import './list-type.enum-fbb331ad.js';
30
- import './loader-skeleton-variation.enum-f9f867b4.js';
31
- import './loader-spinner-size.enum-0b246fa0.js';
32
- import './logo-variation.enum-5b68b79f.js';
33
- import './media-figure-alignment.enum-a1d36567.js';
34
- import './navigation-sidebar-variation.enum-8fead764.js';
35
- import './navigation-vertical-menu-variation.enum-c30b0ea9.js';
36
- import './progress-indicator-variation.enum-b12ba50a.js';
37
- import './progress-list-item-variation.enum-384b9a3a.js';
38
- import './progress-list-variation.enum-300bd89d.js';
39
- import './progressbar-variation.enum-40adaab4.js';
40
- import './quote-image-inner-position.enum-8e9b1e65.js';
41
- import './table-variation.enum-dd9366b6.js';
42
- import './tag-media-icon.enum-fefa191c.js';
43
- import './tag-size.enum-403e0cd8.js';
44
- import './tools-feedback-banner-type.enum-74b4e580.js';
45
- import './tools-feedback-rating-variation.enum-29058ff2.js';
46
- import './tools-theme-provider.brand.enum-8c5a98c9.js';
47
- import './typography-heading-jumbo-variation.enum-eb737f1b.js';
48
- import './typography-meta-variation.enum-1f7c2878.js';
49
- import './typography-time-variation.enum-34c830ef.js';
50
- import './util-breakpoint-observer-breakpoints.enum-6d004731.js';
51
- import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
52
- import { d as detectClickOutside } from './detectClickOutside.util-72594957.js';
53
- import { r as requiredArgs, t as toDate, i as isValid } from './index-8685f88d.js';
54
- import { t as toInteger, g as getUTCISOWeek, a as getUTCWeek, b as getUTCWeekYear, s as startOfUTCWeek, c as startOfUTCISOWeek, i as isProtectedWeekYearToken, d as throwProtectedError, e as isProtectedDayOfYearToken, f as subMilliseconds, h as getTimezoneOffsetInMilliseconds, j as defaultLocale, l as longFormatters } from './index-2fce392f.js';
55
- import { i as isBefore, a as isAfter } from './index-5b6c95c6.js';
56
- import './detectClosest.util-58a7504f.js';
57
-
58
- function assign(target, dirtyObject) {
59
- if (target == null) {
60
- throw new TypeError('assign requires that input parameter not be null or undefined');
61
- }
62
-
63
- dirtyObject = dirtyObject || {};
64
-
65
- for (var property in dirtyObject) {
66
- if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
67
- target[property] = dirtyObject[property];
68
- }
69
- }
70
-
71
- return target;
72
- }
73
-
74
- // See issue: https://github.com/date-fns/date-fns/issues/376
75
-
76
- function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
77
- requiredArgs(2, arguments);
78
- var options = dirtyOptions || {};
79
- var locale = options.locale;
80
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
81
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
82
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
83
-
84
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
85
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
86
- }
87
-
88
- var date = toDate(dirtyDate);
89
- var day = toInteger(dirtyDay);
90
- var currentDay = date.getUTCDay();
91
- var remainder = day % 7;
92
- var dayIndex = (remainder + 7) % 7;
93
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
94
- date.setUTCDate(date.getUTCDate() + diff);
95
- return date;
96
- }
97
-
98
- // See issue: https://github.com/date-fns/date-fns/issues/376
99
-
100
- function setUTCISODay(dirtyDate, dirtyDay) {
101
- requiredArgs(2, arguments);
102
- var day = toInteger(dirtyDay);
103
-
104
- if (day % 7 === 0) {
105
- day = day - 7;
106
- }
107
-
108
- var weekStartsOn = 1;
109
- var date = toDate(dirtyDate);
110
- var currentDay = date.getUTCDay();
111
- var remainder = day % 7;
112
- var dayIndex = (remainder + 7) % 7;
113
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
114
- date.setUTCDate(date.getUTCDate() + diff);
115
- return date;
116
- }
117
-
118
- // See issue: https://github.com/date-fns/date-fns/issues/376
119
-
120
- function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
121
- requiredArgs(2, arguments);
122
- var date = toDate(dirtyDate);
123
- var isoWeek = toInteger(dirtyISOWeek);
124
- var diff = getUTCISOWeek(date) - isoWeek;
125
- date.setUTCDate(date.getUTCDate() - diff * 7);
126
- return date;
127
- }
128
-
129
- // See issue: https://github.com/date-fns/date-fns/issues/376
130
-
131
- function setUTCWeek(dirtyDate, dirtyWeek, options) {
132
- requiredArgs(2, arguments);
133
- var date = toDate(dirtyDate);
134
- var week = toInteger(dirtyWeek);
135
- var diff = getUTCWeek(date, options) - week;
136
- date.setUTCDate(date.getUTCDate() - diff * 7);
137
- return date;
138
- }
139
-
140
- var MILLISECONDS_IN_HOUR = 3600000;
141
- var MILLISECONDS_IN_MINUTE = 60000;
142
- var MILLISECONDS_IN_SECOND = 1000;
143
- var numericPatterns = {
144
- month: /^(1[0-2]|0?\d)/,
145
- // 0 to 12
146
- date: /^(3[0-1]|[0-2]?\d)/,
147
- // 0 to 31
148
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
149
- // 0 to 366
150
- week: /^(5[0-3]|[0-4]?\d)/,
151
- // 0 to 53
152
- hour23h: /^(2[0-3]|[0-1]?\d)/,
153
- // 0 to 23
154
- hour24h: /^(2[0-4]|[0-1]?\d)/,
155
- // 0 to 24
156
- hour11h: /^(1[0-1]|0?\d)/,
157
- // 0 to 11
158
- hour12h: /^(1[0-2]|0?\d)/,
159
- // 0 to 12
160
- minute: /^[0-5]?\d/,
161
- // 0 to 59
162
- second: /^[0-5]?\d/,
163
- // 0 to 59
164
- singleDigit: /^\d/,
165
- // 0 to 9
166
- twoDigits: /^\d{1,2}/,
167
- // 0 to 99
168
- threeDigits: /^\d{1,3}/,
169
- // 0 to 999
170
- fourDigits: /^\d{1,4}/,
171
- // 0 to 9999
172
- anyDigitsSigned: /^-?\d+/,
173
- singleDigitSigned: /^-?\d/,
174
- // 0 to 9, -0 to -9
175
- twoDigitsSigned: /^-?\d{1,2}/,
176
- // 0 to 99, -0 to -99
177
- threeDigitsSigned: /^-?\d{1,3}/,
178
- // 0 to 999, -0 to -999
179
- fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
180
-
181
- };
182
- var timezonePatterns = {
183
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
184
- basic: /^([+-])(\d{2})(\d{2})|Z/,
185
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
186
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
187
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
188
- };
189
-
190
- function parseNumericPattern(pattern, string, valueCallback) {
191
- var matchResult = string.match(pattern);
192
-
193
- if (!matchResult) {
194
- return null;
195
- }
196
-
197
- var value = parseInt(matchResult[0], 10);
198
- return {
199
- value: valueCallback ? valueCallback(value) : value,
200
- rest: string.slice(matchResult[0].length)
201
- };
202
- }
203
-
204
- function parseTimezonePattern(pattern, string) {
205
- var matchResult = string.match(pattern);
206
-
207
- if (!matchResult) {
208
- return null;
209
- } // Input is 'Z'
210
-
211
-
212
- if (matchResult[0] === 'Z') {
213
- return {
214
- value: 0,
215
- rest: string.slice(1)
216
- };
217
- }
218
-
219
- var sign = matchResult[1] === '+' ? 1 : -1;
220
- var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
221
- var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
222
- var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
223
- return {
224
- value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
225
- rest: string.slice(matchResult[0].length)
226
- };
227
- }
228
-
229
- function parseAnyDigitsSigned(string, valueCallback) {
230
- return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
231
- }
232
-
233
- function parseNDigits(n, string, valueCallback) {
234
- switch (n) {
235
- case 1:
236
- return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
237
-
238
- case 2:
239
- return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
240
-
241
- case 3:
242
- return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
243
-
244
- case 4:
245
- return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
246
-
247
- default:
248
- return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
249
- }
250
- }
251
-
252
- function parseNDigitsSigned(n, string, valueCallback) {
253
- switch (n) {
254
- case 1:
255
- return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
256
-
257
- case 2:
258
- return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
259
-
260
- case 3:
261
- return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
262
-
263
- case 4:
264
- return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
265
-
266
- default:
267
- return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
268
- }
269
- }
270
-
271
- function dayPeriodEnumToHours(enumValue) {
272
- switch (enumValue) {
273
- case 'morning':
274
- return 4;
275
-
276
- case 'evening':
277
- return 17;
278
-
279
- case 'pm':
280
- case 'noon':
281
- case 'afternoon':
282
- return 12;
283
-
284
- case 'am':
285
- case 'midnight':
286
- case 'night':
287
- default:
288
- return 0;
289
- }
290
- }
291
-
292
- function normalizeTwoDigitYear(twoDigitYear, currentYear) {
293
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
294
- // 1 -> 1 AC
295
- // 0 -> 1 BC
296
- // -1 -> 2 BC
297
-
298
- var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
299
- var result;
300
-
301
- if (absCurrentYear <= 50) {
302
- result = twoDigitYear || 100;
303
- } else {
304
- var rangeEnd = absCurrentYear + 50;
305
- var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
306
- var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
307
- result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
308
- }
309
-
310
- return isCommonEra ? result : 1 - result;
311
- }
312
-
313
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
314
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
315
-
316
- function isLeapYearIndex(year) {
317
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
318
- }
319
- /*
320
- * | | Unit | | Unit |
321
- * |-----|--------------------------------|-----|--------------------------------|
322
- * | a | AM, PM | A* | Milliseconds in day |
323
- * | b | AM, PM, noon, midnight | B | Flexible day period |
324
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
325
- * | d | Day of month | D | Day of year |
326
- * | e | Local day of week | E | Day of week |
327
- * | f | | F* | Day of week in month |
328
- * | g* | Modified Julian day | G | Era |
329
- * | h | Hour [1-12] | H | Hour [0-23] |
330
- * | i! | ISO day of week | I! | ISO week of year |
331
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
332
- * | k | Hour [1-24] | K | Hour [0-11] |
333
- * | l* | (deprecated) | L | Stand-alone month |
334
- * | m | Minute | M | Month |
335
- * | n | | N | |
336
- * | o! | Ordinal number modifier | O* | Timezone (GMT) |
337
- * | p | | P | |
338
- * | q | Stand-alone quarter | Q | Quarter |
339
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
340
- * | s | Second | S | Fraction of second |
341
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
342
- * | u | Extended year | U* | Cyclic year |
343
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
344
- * | w | Local week of year | W* | Week of month |
345
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
346
- * | y | Year (abs) | Y | Local week-numbering year |
347
- * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
348
- *
349
- * Letters marked by * are not implemented but reserved by Unicode standard.
350
- *
351
- * Letters marked by ! are non-standard, but implemented by date-fns:
352
- * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
353
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
354
- * i.e. 7 for Sunday, 1 for Monday, etc.
355
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
356
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
357
- * `R` is supposed to be used in conjunction with `I` and `i`
358
- * for universal ISO week-numbering date, whereas
359
- * `Y` is supposed to be used in conjunction with `w` and `e`
360
- * for week-numbering date specific to the locale.
361
- */
362
-
363
-
364
- var parsers = {
365
- // Era
366
- G: {
367
- priority: 140,
368
- parse: function (string, token, match, _options) {
369
- switch (token) {
370
- // AD, BC
371
- case 'G':
372
- case 'GG':
373
- case 'GGG':
374
- return match.era(string, {
375
- width: 'abbreviated'
376
- }) || match.era(string, {
377
- width: 'narrow'
378
- });
379
- // A, B
380
-
381
- case 'GGGGG':
382
- return match.era(string, {
383
- width: 'narrow'
384
- });
385
- // Anno Domini, Before Christ
386
-
387
- case 'GGGG':
388
- default:
389
- return match.era(string, {
390
- width: 'wide'
391
- }) || match.era(string, {
392
- width: 'abbreviated'
393
- }) || match.era(string, {
394
- width: 'narrow'
395
- });
396
- }
397
- },
398
- set: function (date, flags, value, _options) {
399
- flags.era = value;
400
- date.setUTCFullYear(value, 0, 1);
401
- date.setUTCHours(0, 0, 0, 0);
402
- return date;
403
- },
404
- incompatibleTokens: ['R', 'u', 't', 'T']
405
- },
406
- // Year
407
- y: {
408
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
409
- // | Year | y | yy | yyy | yyyy | yyyyy |
410
- // |----------|-------|----|-------|-------|-------|
411
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
412
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
413
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
414
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
415
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
416
- priority: 130,
417
- parse: function (string, token, match, _options) {
418
- var valueCallback = function (year) {
419
- return {
420
- year: year,
421
- isTwoDigitYear: token === 'yy'
422
- };
423
- };
424
-
425
- switch (token) {
426
- case 'y':
427
- return parseNDigits(4, string, valueCallback);
428
-
429
- case 'yo':
430
- return match.ordinalNumber(string, {
431
- unit: 'year',
432
- valueCallback: valueCallback
433
- });
434
-
435
- default:
436
- return parseNDigits(token.length, string, valueCallback);
437
- }
438
- },
439
- validate: function (_date, value, _options) {
440
- return value.isTwoDigitYear || value.year > 0;
441
- },
442
- set: function (date, flags, value, _options) {
443
- var currentYear = date.getUTCFullYear();
444
-
445
- if (value.isTwoDigitYear) {
446
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
447
- date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
448
- date.setUTCHours(0, 0, 0, 0);
449
- return date;
450
- }
451
-
452
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
453
- date.setUTCFullYear(year, 0, 1);
454
- date.setUTCHours(0, 0, 0, 0);
455
- return date;
456
- },
457
- incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
458
- },
459
- // Local week-numbering year
460
- Y: {
461
- priority: 130,
462
- parse: function (string, token, match, _options) {
463
- var valueCallback = function (year) {
464
- return {
465
- year: year,
466
- isTwoDigitYear: token === 'YY'
467
- };
468
- };
469
-
470
- switch (token) {
471
- case 'Y':
472
- return parseNDigits(4, string, valueCallback);
473
-
474
- case 'Yo':
475
- return match.ordinalNumber(string, {
476
- unit: 'year',
477
- valueCallback: valueCallback
478
- });
479
-
480
- default:
481
- return parseNDigits(token.length, string, valueCallback);
482
- }
483
- },
484
- validate: function (_date, value, _options) {
485
- return value.isTwoDigitYear || value.year > 0;
486
- },
487
- set: function (date, flags, value, options) {
488
- var currentYear = getUTCWeekYear(date, options);
489
-
490
- if (value.isTwoDigitYear) {
491
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
492
- date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
493
- date.setUTCHours(0, 0, 0, 0);
494
- return startOfUTCWeek(date, options);
495
- }
496
-
497
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
498
- date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
499
- date.setUTCHours(0, 0, 0, 0);
500
- return startOfUTCWeek(date, options);
501
- },
502
- incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
503
- },
504
- // ISO week-numbering year
505
- R: {
506
- priority: 130,
507
- parse: function (string, token, _match, _options) {
508
- if (token === 'R') {
509
- return parseNDigitsSigned(4, string);
510
- }
511
-
512
- return parseNDigitsSigned(token.length, string);
513
- },
514
- set: function (_date, _flags, value, _options) {
515
- var firstWeekOfYear = new Date(0);
516
- firstWeekOfYear.setUTCFullYear(value, 0, 4);
517
- firstWeekOfYear.setUTCHours(0, 0, 0, 0);
518
- return startOfUTCISOWeek(firstWeekOfYear);
519
- },
520
- incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
521
- },
522
- // Extended year
523
- u: {
524
- priority: 130,
525
- parse: function (string, token, _match, _options) {
526
- if (token === 'u') {
527
- return parseNDigitsSigned(4, string);
528
- }
529
-
530
- return parseNDigitsSigned(token.length, string);
531
- },
532
- set: function (date, _flags, value, _options) {
533
- date.setUTCFullYear(value, 0, 1);
534
- date.setUTCHours(0, 0, 0, 0);
535
- return date;
536
- },
537
- incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
538
- },
539
- // Quarter
540
- Q: {
541
- priority: 120,
542
- parse: function (string, token, match, _options) {
543
- switch (token) {
544
- // 1, 2, 3, 4
545
- case 'Q':
546
- case 'QQ':
547
- // 01, 02, 03, 04
548
- return parseNDigits(token.length, string);
549
- // 1st, 2nd, 3rd, 4th
550
-
551
- case 'Qo':
552
- return match.ordinalNumber(string, {
553
- unit: 'quarter'
554
- });
555
- // Q1, Q2, Q3, Q4
556
-
557
- case 'QQQ':
558
- return match.quarter(string, {
559
- width: 'abbreviated',
560
- context: 'formatting'
561
- }) || match.quarter(string, {
562
- width: 'narrow',
563
- context: 'formatting'
564
- });
565
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
566
-
567
- case 'QQQQQ':
568
- return match.quarter(string, {
569
- width: 'narrow',
570
- context: 'formatting'
571
- });
572
- // 1st quarter, 2nd quarter, ...
573
-
574
- case 'QQQQ':
575
- default:
576
- return match.quarter(string, {
577
- width: 'wide',
578
- context: 'formatting'
579
- }) || match.quarter(string, {
580
- width: 'abbreviated',
581
- context: 'formatting'
582
- }) || match.quarter(string, {
583
- width: 'narrow',
584
- context: 'formatting'
585
- });
586
- }
587
- },
588
- validate: function (_date, value, _options) {
589
- return value >= 1 && value <= 4;
590
- },
591
- set: function (date, _flags, value, _options) {
592
- date.setUTCMonth((value - 1) * 3, 1);
593
- date.setUTCHours(0, 0, 0, 0);
594
- return date;
595
- },
596
- incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
597
- },
598
- // Stand-alone quarter
599
- q: {
600
- priority: 120,
601
- parse: function (string, token, match, _options) {
602
- switch (token) {
603
- // 1, 2, 3, 4
604
- case 'q':
605
- case 'qq':
606
- // 01, 02, 03, 04
607
- return parseNDigits(token.length, string);
608
- // 1st, 2nd, 3rd, 4th
609
-
610
- case 'qo':
611
- return match.ordinalNumber(string, {
612
- unit: 'quarter'
613
- });
614
- // Q1, Q2, Q3, Q4
615
-
616
- case 'qqq':
617
- return match.quarter(string, {
618
- width: 'abbreviated',
619
- context: 'standalone'
620
- }) || match.quarter(string, {
621
- width: 'narrow',
622
- context: 'standalone'
623
- });
624
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
625
-
626
- case 'qqqqq':
627
- return match.quarter(string, {
628
- width: 'narrow',
629
- context: 'standalone'
630
- });
631
- // 1st quarter, 2nd quarter, ...
632
-
633
- case 'qqqq':
634
- default:
635
- return match.quarter(string, {
636
- width: 'wide',
637
- context: 'standalone'
638
- }) || match.quarter(string, {
639
- width: 'abbreviated',
640
- context: 'standalone'
641
- }) || match.quarter(string, {
642
- width: 'narrow',
643
- context: 'standalone'
644
- });
645
- }
646
- },
647
- validate: function (_date, value, _options) {
648
- return value >= 1 && value <= 4;
649
- },
650
- set: function (date, _flags, value, _options) {
651
- date.setUTCMonth((value - 1) * 3, 1);
652
- date.setUTCHours(0, 0, 0, 0);
653
- return date;
654
- },
655
- incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
656
- },
657
- // Month
658
- M: {
659
- priority: 110,
660
- parse: function (string, token, match, _options) {
661
- var valueCallback = function (value) {
662
- return value - 1;
663
- };
664
-
665
- switch (token) {
666
- // 1, 2, ..., 12
667
- case 'M':
668
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
669
- // 01, 02, ..., 12
670
-
671
- case 'MM':
672
- return parseNDigits(2, string, valueCallback);
673
- // 1st, 2nd, ..., 12th
674
-
675
- case 'Mo':
676
- return match.ordinalNumber(string, {
677
- unit: 'month',
678
- valueCallback: valueCallback
679
- });
680
- // Jan, Feb, ..., Dec
681
-
682
- case 'MMM':
683
- return match.month(string, {
684
- width: 'abbreviated',
685
- context: 'formatting'
686
- }) || match.month(string, {
687
- width: 'narrow',
688
- context: 'formatting'
689
- });
690
- // J, F, ..., D
691
-
692
- case 'MMMMM':
693
- return match.month(string, {
694
- width: 'narrow',
695
- context: 'formatting'
696
- });
697
- // January, February, ..., December
698
-
699
- case 'MMMM':
700
- default:
701
- return match.month(string, {
702
- width: 'wide',
703
- context: 'formatting'
704
- }) || match.month(string, {
705
- width: 'abbreviated',
706
- context: 'formatting'
707
- }) || match.month(string, {
708
- width: 'narrow',
709
- context: 'formatting'
710
- });
711
- }
712
- },
713
- validate: function (_date, value, _options) {
714
- return value >= 0 && value <= 11;
715
- },
716
- set: function (date, _flags, value, _options) {
717
- date.setUTCMonth(value, 1);
718
- date.setUTCHours(0, 0, 0, 0);
719
- return date;
720
- },
721
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
722
- },
723
- // Stand-alone month
724
- L: {
725
- priority: 110,
726
- parse: function (string, token, match, _options) {
727
- var valueCallback = function (value) {
728
- return value - 1;
729
- };
730
-
731
- switch (token) {
732
- // 1, 2, ..., 12
733
- case 'L':
734
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
735
- // 01, 02, ..., 12
736
-
737
- case 'LL':
738
- return parseNDigits(2, string, valueCallback);
739
- // 1st, 2nd, ..., 12th
740
-
741
- case 'Lo':
742
- return match.ordinalNumber(string, {
743
- unit: 'month',
744
- valueCallback: valueCallback
745
- });
746
- // Jan, Feb, ..., Dec
747
-
748
- case 'LLL':
749
- return match.month(string, {
750
- width: 'abbreviated',
751
- context: 'standalone'
752
- }) || match.month(string, {
753
- width: 'narrow',
754
- context: 'standalone'
755
- });
756
- // J, F, ..., D
757
-
758
- case 'LLLLL':
759
- return match.month(string, {
760
- width: 'narrow',
761
- context: 'standalone'
762
- });
763
- // January, February, ..., December
764
-
765
- case 'LLLL':
766
- default:
767
- return match.month(string, {
768
- width: 'wide',
769
- context: 'standalone'
770
- }) || match.month(string, {
771
- width: 'abbreviated',
772
- context: 'standalone'
773
- }) || match.month(string, {
774
- width: 'narrow',
775
- context: 'standalone'
776
- });
777
- }
778
- },
779
- validate: function (_date, value, _options) {
780
- return value >= 0 && value <= 11;
781
- },
782
- set: function (date, _flags, value, _options) {
783
- date.setUTCMonth(value, 1);
784
- date.setUTCHours(0, 0, 0, 0);
785
- return date;
786
- },
787
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
788
- },
789
- // Local week of year
790
- w: {
791
- priority: 100,
792
- parse: function (string, token, match, _options) {
793
- switch (token) {
794
- case 'w':
795
- return parseNumericPattern(numericPatterns.week, string);
796
-
797
- case 'wo':
798
- return match.ordinalNumber(string, {
799
- unit: 'week'
800
- });
801
-
802
- default:
803
- return parseNDigits(token.length, string);
804
- }
805
- },
806
- validate: function (_date, value, _options) {
807
- return value >= 1 && value <= 53;
808
- },
809
- set: function (date, _flags, value, options) {
810
- return startOfUTCWeek(setUTCWeek(date, value, options), options);
811
- },
812
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
813
- },
814
- // ISO week of year
815
- I: {
816
- priority: 100,
817
- parse: function (string, token, match, _options) {
818
- switch (token) {
819
- case 'I':
820
- return parseNumericPattern(numericPatterns.week, string);
821
-
822
- case 'Io':
823
- return match.ordinalNumber(string, {
824
- unit: 'week'
825
- });
826
-
827
- default:
828
- return parseNDigits(token.length, string);
829
- }
830
- },
831
- validate: function (_date, value, _options) {
832
- return value >= 1 && value <= 53;
833
- },
834
- set: function (date, _flags, value, options) {
835
- return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
836
- },
837
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
838
- },
839
- // Day of the month
840
- d: {
841
- priority: 90,
842
- subPriority: 1,
843
- parse: function (string, token, match, _options) {
844
- switch (token) {
845
- case 'd':
846
- return parseNumericPattern(numericPatterns.date, string);
847
-
848
- case 'do':
849
- return match.ordinalNumber(string, {
850
- unit: 'date'
851
- });
852
-
853
- default:
854
- return parseNDigits(token.length, string);
855
- }
856
- },
857
- validate: function (date, value, _options) {
858
- var year = date.getUTCFullYear();
859
- var isLeapYear = isLeapYearIndex(year);
860
- var month = date.getUTCMonth();
861
-
862
- if (isLeapYear) {
863
- return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
864
- } else {
865
- return value >= 1 && value <= DAYS_IN_MONTH[month];
866
- }
867
- },
868
- set: function (date, _flags, value, _options) {
869
- date.setUTCDate(value);
870
- date.setUTCHours(0, 0, 0, 0);
871
- return date;
872
- },
873
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
874
- },
875
- // Day of year
876
- D: {
877
- priority: 90,
878
- subPriority: 1,
879
- parse: function (string, token, match, _options) {
880
- switch (token) {
881
- case 'D':
882
- case 'DD':
883
- return parseNumericPattern(numericPatterns.dayOfYear, string);
884
-
885
- case 'Do':
886
- return match.ordinalNumber(string, {
887
- unit: 'date'
888
- });
889
-
890
- default:
891
- return parseNDigits(token.length, string);
892
- }
893
- },
894
- validate: function (date, value, _options) {
895
- var year = date.getUTCFullYear();
896
- var isLeapYear = isLeapYearIndex(year);
897
-
898
- if (isLeapYear) {
899
- return value >= 1 && value <= 366;
900
- } else {
901
- return value >= 1 && value <= 365;
902
- }
903
- },
904
- set: function (date, _flags, value, _options) {
905
- date.setUTCMonth(0, value);
906
- date.setUTCHours(0, 0, 0, 0);
907
- return date;
908
- },
909
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
910
- },
911
- // Day of week
912
- E: {
913
- priority: 90,
914
- parse: function (string, token, match, _options) {
915
- switch (token) {
916
- // Tue
917
- case 'E':
918
- case 'EE':
919
- case 'EEE':
920
- return match.day(string, {
921
- width: 'abbreviated',
922
- context: 'formatting'
923
- }) || match.day(string, {
924
- width: 'short',
925
- context: 'formatting'
926
- }) || match.day(string, {
927
- width: 'narrow',
928
- context: 'formatting'
929
- });
930
- // T
931
-
932
- case 'EEEEE':
933
- return match.day(string, {
934
- width: 'narrow',
935
- context: 'formatting'
936
- });
937
- // Tu
938
-
939
- case 'EEEEEE':
940
- return match.day(string, {
941
- width: 'short',
942
- context: 'formatting'
943
- }) || match.day(string, {
944
- width: 'narrow',
945
- context: 'formatting'
946
- });
947
- // Tuesday
948
-
949
- case 'EEEE':
950
- default:
951
- return match.day(string, {
952
- width: 'wide',
953
- context: 'formatting'
954
- }) || match.day(string, {
955
- width: 'abbreviated',
956
- context: 'formatting'
957
- }) || match.day(string, {
958
- width: 'short',
959
- context: 'formatting'
960
- }) || match.day(string, {
961
- width: 'narrow',
962
- context: 'formatting'
963
- });
964
- }
965
- },
966
- validate: function (_date, value, _options) {
967
- return value >= 0 && value <= 6;
968
- },
969
- set: function (date, _flags, value, options) {
970
- date = setUTCDay(date, value, options);
971
- date.setUTCHours(0, 0, 0, 0);
972
- return date;
973
- },
974
- incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
975
- },
976
- // Local day of week
977
- e: {
978
- priority: 90,
979
- parse: function (string, token, match, options) {
980
- var valueCallback = function (value) {
981
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
982
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
983
- };
984
-
985
- switch (token) {
986
- // 3
987
- case 'e':
988
- case 'ee':
989
- // 03
990
- return parseNDigits(token.length, string, valueCallback);
991
- // 3rd
992
-
993
- case 'eo':
994
- return match.ordinalNumber(string, {
995
- unit: 'day',
996
- valueCallback: valueCallback
997
- });
998
- // Tue
999
-
1000
- case 'eee':
1001
- return match.day(string, {
1002
- width: 'abbreviated',
1003
- context: 'formatting'
1004
- }) || match.day(string, {
1005
- width: 'short',
1006
- context: 'formatting'
1007
- }) || match.day(string, {
1008
- width: 'narrow',
1009
- context: 'formatting'
1010
- });
1011
- // T
1012
-
1013
- case 'eeeee':
1014
- return match.day(string, {
1015
- width: 'narrow',
1016
- context: 'formatting'
1017
- });
1018
- // Tu
1019
-
1020
- case 'eeeeee':
1021
- return match.day(string, {
1022
- width: 'short',
1023
- context: 'formatting'
1024
- }) || match.day(string, {
1025
- width: 'narrow',
1026
- context: 'formatting'
1027
- });
1028
- // Tuesday
1029
-
1030
- case 'eeee':
1031
- default:
1032
- return match.day(string, {
1033
- width: 'wide',
1034
- context: 'formatting'
1035
- }) || match.day(string, {
1036
- width: 'abbreviated',
1037
- context: 'formatting'
1038
- }) || match.day(string, {
1039
- width: 'short',
1040
- context: 'formatting'
1041
- }) || match.day(string, {
1042
- width: 'narrow',
1043
- context: 'formatting'
1044
- });
1045
- }
1046
- },
1047
- validate: function (_date, value, _options) {
1048
- return value >= 0 && value <= 6;
1049
- },
1050
- set: function (date, _flags, value, options) {
1051
- date = setUTCDay(date, value, options);
1052
- date.setUTCHours(0, 0, 0, 0);
1053
- return date;
1054
- },
1055
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1056
- },
1057
- // Stand-alone local day of week
1058
- c: {
1059
- priority: 90,
1060
- parse: function (string, token, match, options) {
1061
- var valueCallback = function (value) {
1062
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1063
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1064
- };
1065
-
1066
- switch (token) {
1067
- // 3
1068
- case 'c':
1069
- case 'cc':
1070
- // 03
1071
- return parseNDigits(token.length, string, valueCallback);
1072
- // 3rd
1073
-
1074
- case 'co':
1075
- return match.ordinalNumber(string, {
1076
- unit: 'day',
1077
- valueCallback: valueCallback
1078
- });
1079
- // Tue
1080
-
1081
- case 'ccc':
1082
- return match.day(string, {
1083
- width: 'abbreviated',
1084
- context: 'standalone'
1085
- }) || match.day(string, {
1086
- width: 'short',
1087
- context: 'standalone'
1088
- }) || match.day(string, {
1089
- width: 'narrow',
1090
- context: 'standalone'
1091
- });
1092
- // T
1093
-
1094
- case 'ccccc':
1095
- return match.day(string, {
1096
- width: 'narrow',
1097
- context: 'standalone'
1098
- });
1099
- // Tu
1100
-
1101
- case 'cccccc':
1102
- return match.day(string, {
1103
- width: 'short',
1104
- context: 'standalone'
1105
- }) || match.day(string, {
1106
- width: 'narrow',
1107
- context: 'standalone'
1108
- });
1109
- // Tuesday
1110
-
1111
- case 'cccc':
1112
- default:
1113
- return match.day(string, {
1114
- width: 'wide',
1115
- context: 'standalone'
1116
- }) || match.day(string, {
1117
- width: 'abbreviated',
1118
- context: 'standalone'
1119
- }) || match.day(string, {
1120
- width: 'short',
1121
- context: 'standalone'
1122
- }) || match.day(string, {
1123
- width: 'narrow',
1124
- context: 'standalone'
1125
- });
1126
- }
1127
- },
1128
- validate: function (_date, value, _options) {
1129
- return value >= 0 && value <= 6;
1130
- },
1131
- set: function (date, _flags, value, options) {
1132
- date = setUTCDay(date, value, options);
1133
- date.setUTCHours(0, 0, 0, 0);
1134
- return date;
1135
- },
1136
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1137
- },
1138
- // ISO day of week
1139
- i: {
1140
- priority: 90,
1141
- parse: function (string, token, match, _options) {
1142
- var valueCallback = function (value) {
1143
- if (value === 0) {
1144
- return 7;
1145
- }
1146
-
1147
- return value;
1148
- };
1149
-
1150
- switch (token) {
1151
- // 2
1152
- case 'i':
1153
- case 'ii':
1154
- // 02
1155
- return parseNDigits(token.length, string);
1156
- // 2nd
1157
-
1158
- case 'io':
1159
- return match.ordinalNumber(string, {
1160
- unit: 'day'
1161
- });
1162
- // Tue
1163
-
1164
- case 'iii':
1165
- return match.day(string, {
1166
- width: 'abbreviated',
1167
- context: 'formatting',
1168
- valueCallback: valueCallback
1169
- }) || match.day(string, {
1170
- width: 'short',
1171
- context: 'formatting',
1172
- valueCallback: valueCallback
1173
- }) || match.day(string, {
1174
- width: 'narrow',
1175
- context: 'formatting',
1176
- valueCallback: valueCallback
1177
- });
1178
- // T
1179
-
1180
- case 'iiiii':
1181
- return match.day(string, {
1182
- width: 'narrow',
1183
- context: 'formatting',
1184
- valueCallback: valueCallback
1185
- });
1186
- // Tu
1187
-
1188
- case 'iiiiii':
1189
- return match.day(string, {
1190
- width: 'short',
1191
- context: 'formatting',
1192
- valueCallback: valueCallback
1193
- }) || match.day(string, {
1194
- width: 'narrow',
1195
- context: 'formatting',
1196
- valueCallback: valueCallback
1197
- });
1198
- // Tuesday
1199
-
1200
- case 'iiii':
1201
- default:
1202
- return match.day(string, {
1203
- width: 'wide',
1204
- context: 'formatting',
1205
- valueCallback: valueCallback
1206
- }) || match.day(string, {
1207
- width: 'abbreviated',
1208
- context: 'formatting',
1209
- valueCallback: valueCallback
1210
- }) || match.day(string, {
1211
- width: 'short',
1212
- context: 'formatting',
1213
- valueCallback: valueCallback
1214
- }) || match.day(string, {
1215
- width: 'narrow',
1216
- context: 'formatting',
1217
- valueCallback: valueCallback
1218
- });
1219
- }
1220
- },
1221
- validate: function (_date, value, _options) {
1222
- return value >= 1 && value <= 7;
1223
- },
1224
- set: function (date, _flags, value, options) {
1225
- date = setUTCISODay(date, value, options);
1226
- date.setUTCHours(0, 0, 0, 0);
1227
- return date;
1228
- },
1229
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1230
- },
1231
- // AM or PM
1232
- a: {
1233
- priority: 80,
1234
- parse: function (string, token, match, _options) {
1235
- switch (token) {
1236
- case 'a':
1237
- case 'aa':
1238
- case 'aaa':
1239
- return match.dayPeriod(string, {
1240
- width: 'abbreviated',
1241
- context: 'formatting'
1242
- }) || match.dayPeriod(string, {
1243
- width: 'narrow',
1244
- context: 'formatting'
1245
- });
1246
-
1247
- case 'aaaaa':
1248
- return match.dayPeriod(string, {
1249
- width: 'narrow',
1250
- context: 'formatting'
1251
- });
1252
-
1253
- case 'aaaa':
1254
- default:
1255
- return match.dayPeriod(string, {
1256
- width: 'wide',
1257
- context: 'formatting'
1258
- }) || match.dayPeriod(string, {
1259
- width: 'abbreviated',
1260
- context: 'formatting'
1261
- }) || match.dayPeriod(string, {
1262
- width: 'narrow',
1263
- context: 'formatting'
1264
- });
1265
- }
1266
- },
1267
- set: function (date, _flags, value, _options) {
1268
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1269
- return date;
1270
- },
1271
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1272
- },
1273
- // AM, PM, midnight
1274
- b: {
1275
- priority: 80,
1276
- parse: function (string, token, match, _options) {
1277
- switch (token) {
1278
- case 'b':
1279
- case 'bb':
1280
- case 'bbb':
1281
- return match.dayPeriod(string, {
1282
- width: 'abbreviated',
1283
- context: 'formatting'
1284
- }) || match.dayPeriod(string, {
1285
- width: 'narrow',
1286
- context: 'formatting'
1287
- });
1288
-
1289
- case 'bbbbb':
1290
- return match.dayPeriod(string, {
1291
- width: 'narrow',
1292
- context: 'formatting'
1293
- });
1294
-
1295
- case 'bbbb':
1296
- default:
1297
- return match.dayPeriod(string, {
1298
- width: 'wide',
1299
- context: 'formatting'
1300
- }) || match.dayPeriod(string, {
1301
- width: 'abbreviated',
1302
- context: 'formatting'
1303
- }) || match.dayPeriod(string, {
1304
- width: 'narrow',
1305
- context: 'formatting'
1306
- });
1307
- }
1308
- },
1309
- set: function (date, _flags, value, _options) {
1310
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1311
- return date;
1312
- },
1313
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1314
- },
1315
- // in the morning, in the afternoon, in the evening, at night
1316
- B: {
1317
- priority: 80,
1318
- parse: function (string, token, match, _options) {
1319
- switch (token) {
1320
- case 'B':
1321
- case 'BB':
1322
- case 'BBB':
1323
- return match.dayPeriod(string, {
1324
- width: 'abbreviated',
1325
- context: 'formatting'
1326
- }) || match.dayPeriod(string, {
1327
- width: 'narrow',
1328
- context: 'formatting'
1329
- });
1330
-
1331
- case 'BBBBB':
1332
- return match.dayPeriod(string, {
1333
- width: 'narrow',
1334
- context: 'formatting'
1335
- });
1336
-
1337
- case 'BBBB':
1338
- default:
1339
- return match.dayPeriod(string, {
1340
- width: 'wide',
1341
- context: 'formatting'
1342
- }) || match.dayPeriod(string, {
1343
- width: 'abbreviated',
1344
- context: 'formatting'
1345
- }) || match.dayPeriod(string, {
1346
- width: 'narrow',
1347
- context: 'formatting'
1348
- });
1349
- }
1350
- },
1351
- set: function (date, _flags, value, _options) {
1352
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1353
- return date;
1354
- },
1355
- incompatibleTokens: ['a', 'b', 't', 'T']
1356
- },
1357
- // Hour [1-12]
1358
- h: {
1359
- priority: 70,
1360
- parse: function (string, token, match, _options) {
1361
- switch (token) {
1362
- case 'h':
1363
- return parseNumericPattern(numericPatterns.hour12h, string);
1364
-
1365
- case 'ho':
1366
- return match.ordinalNumber(string, {
1367
- unit: 'hour'
1368
- });
1369
-
1370
- default:
1371
- return parseNDigits(token.length, string);
1372
- }
1373
- },
1374
- validate: function (_date, value, _options) {
1375
- return value >= 1 && value <= 12;
1376
- },
1377
- set: function (date, _flags, value, _options) {
1378
- var isPM = date.getUTCHours() >= 12;
1379
-
1380
- if (isPM && value < 12) {
1381
- date.setUTCHours(value + 12, 0, 0, 0);
1382
- } else if (!isPM && value === 12) {
1383
- date.setUTCHours(0, 0, 0, 0);
1384
- } else {
1385
- date.setUTCHours(value, 0, 0, 0);
1386
- }
1387
-
1388
- return date;
1389
- },
1390
- incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1391
- },
1392
- // Hour [0-23]
1393
- H: {
1394
- priority: 70,
1395
- parse: function (string, token, match, _options) {
1396
- switch (token) {
1397
- case 'H':
1398
- return parseNumericPattern(numericPatterns.hour23h, string);
1399
-
1400
- case 'Ho':
1401
- return match.ordinalNumber(string, {
1402
- unit: 'hour'
1403
- });
1404
-
1405
- default:
1406
- return parseNDigits(token.length, string);
1407
- }
1408
- },
1409
- validate: function (_date, value, _options) {
1410
- return value >= 0 && value <= 23;
1411
- },
1412
- set: function (date, _flags, value, _options) {
1413
- date.setUTCHours(value, 0, 0, 0);
1414
- return date;
1415
- },
1416
- incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1417
- },
1418
- // Hour [0-11]
1419
- K: {
1420
- priority: 70,
1421
- parse: function (string, token, match, _options) {
1422
- switch (token) {
1423
- case 'K':
1424
- return parseNumericPattern(numericPatterns.hour11h, string);
1425
-
1426
- case 'Ko':
1427
- return match.ordinalNumber(string, {
1428
- unit: 'hour'
1429
- });
1430
-
1431
- default:
1432
- return parseNDigits(token.length, string);
1433
- }
1434
- },
1435
- validate: function (_date, value, _options) {
1436
- return value >= 0 && value <= 11;
1437
- },
1438
- set: function (date, _flags, value, _options) {
1439
- var isPM = date.getUTCHours() >= 12;
1440
-
1441
- if (isPM && value < 12) {
1442
- date.setUTCHours(value + 12, 0, 0, 0);
1443
- } else {
1444
- date.setUTCHours(value, 0, 0, 0);
1445
- }
1446
-
1447
- return date;
1448
- },
1449
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1450
- },
1451
- // Hour [1-24]
1452
- k: {
1453
- priority: 70,
1454
- parse: function (string, token, match, _options) {
1455
- switch (token) {
1456
- case 'k':
1457
- return parseNumericPattern(numericPatterns.hour24h, string);
1458
-
1459
- case 'ko':
1460
- return match.ordinalNumber(string, {
1461
- unit: 'hour'
1462
- });
1463
-
1464
- default:
1465
- return parseNDigits(token.length, string);
1466
- }
1467
- },
1468
- validate: function (_date, value, _options) {
1469
- return value >= 1 && value <= 24;
1470
- },
1471
- set: function (date, _flags, value, _options) {
1472
- var hours = value <= 24 ? value % 24 : value;
1473
- date.setUTCHours(hours, 0, 0, 0);
1474
- return date;
1475
- },
1476
- incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1477
- },
1478
- // Minute
1479
- m: {
1480
- priority: 60,
1481
- parse: function (string, token, match, _options) {
1482
- switch (token) {
1483
- case 'm':
1484
- return parseNumericPattern(numericPatterns.minute, string);
1485
-
1486
- case 'mo':
1487
- return match.ordinalNumber(string, {
1488
- unit: 'minute'
1489
- });
1490
-
1491
- default:
1492
- return parseNDigits(token.length, string);
1493
- }
1494
- },
1495
- validate: function (_date, value, _options) {
1496
- return value >= 0 && value <= 59;
1497
- },
1498
- set: function (date, _flags, value, _options) {
1499
- date.setUTCMinutes(value, 0, 0);
1500
- return date;
1501
- },
1502
- incompatibleTokens: ['t', 'T']
1503
- },
1504
- // Second
1505
- s: {
1506
- priority: 50,
1507
- parse: function (string, token, match, _options) {
1508
- switch (token) {
1509
- case 's':
1510
- return parseNumericPattern(numericPatterns.second, string);
1511
-
1512
- case 'so':
1513
- return match.ordinalNumber(string, {
1514
- unit: 'second'
1515
- });
1516
-
1517
- default:
1518
- return parseNDigits(token.length, string);
1519
- }
1520
- },
1521
- validate: function (_date, value, _options) {
1522
- return value >= 0 && value <= 59;
1523
- },
1524
- set: function (date, _flags, value, _options) {
1525
- date.setUTCSeconds(value, 0);
1526
- return date;
1527
- },
1528
- incompatibleTokens: ['t', 'T']
1529
- },
1530
- // Fraction of second
1531
- S: {
1532
- priority: 30,
1533
- parse: function (string, token, _match, _options) {
1534
- var valueCallback = function (value) {
1535
- return Math.floor(value * Math.pow(10, -token.length + 3));
1536
- };
1537
-
1538
- return parseNDigits(token.length, string, valueCallback);
1539
- },
1540
- set: function (date, _flags, value, _options) {
1541
- date.setUTCMilliseconds(value);
1542
- return date;
1543
- },
1544
- incompatibleTokens: ['t', 'T']
1545
- },
1546
- // Timezone (ISO-8601. +00:00 is `'Z'`)
1547
- X: {
1548
- priority: 10,
1549
- parse: function (string, token, _match, _options) {
1550
- switch (token) {
1551
- case 'X':
1552
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1553
-
1554
- case 'XX':
1555
- return parseTimezonePattern(timezonePatterns.basic, string);
1556
-
1557
- case 'XXXX':
1558
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1559
-
1560
- case 'XXXXX':
1561
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1562
-
1563
- case 'XXX':
1564
- default:
1565
- return parseTimezonePattern(timezonePatterns.extended, string);
1566
- }
1567
- },
1568
- set: function (date, flags, value, _options) {
1569
- if (flags.timestampIsSet) {
1570
- return date;
1571
- }
1572
-
1573
- return new Date(date.getTime() - value);
1574
- },
1575
- incompatibleTokens: ['t', 'T', 'x']
1576
- },
1577
- // Timezone (ISO-8601)
1578
- x: {
1579
- priority: 10,
1580
- parse: function (string, token, _match, _options) {
1581
- switch (token) {
1582
- case 'x':
1583
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1584
-
1585
- case 'xx':
1586
- return parseTimezonePattern(timezonePatterns.basic, string);
1587
-
1588
- case 'xxxx':
1589
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1590
-
1591
- case 'xxxxx':
1592
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1593
-
1594
- case 'xxx':
1595
- default:
1596
- return parseTimezonePattern(timezonePatterns.extended, string);
1597
- }
1598
- },
1599
- set: function (date, flags, value, _options) {
1600
- if (flags.timestampIsSet) {
1601
- return date;
1602
- }
1603
-
1604
- return new Date(date.getTime() - value);
1605
- },
1606
- incompatibleTokens: ['t', 'T', 'X']
1607
- },
1608
- // Seconds timestamp
1609
- t: {
1610
- priority: 40,
1611
- parse: function (string, _token, _match, _options) {
1612
- return parseAnyDigitsSigned(string);
1613
- },
1614
- set: function (_date, _flags, value, _options) {
1615
- return [new Date(value * 1000), {
1616
- timestampIsSet: true
1617
- }];
1618
- },
1619
- incompatibleTokens: '*'
1620
- },
1621
- // Milliseconds timestamp
1622
- T: {
1623
- priority: 20,
1624
- parse: function (string, _token, _match, _options) {
1625
- return parseAnyDigitsSigned(string);
1626
- },
1627
- set: function (_date, _flags, value, _options) {
1628
- return [new Date(value), {
1629
- timestampIsSet: true
1630
- }];
1631
- },
1632
- incompatibleTokens: '*'
1633
- }
1634
- };
1635
- const parsers$1 = parsers;
1636
-
1637
- var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1638
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1639
- // (one of the certain letters followed by `o`)
1640
- // - (\w)\1* matches any sequences of the same letter
1641
- // - '' matches two quote characters in a row
1642
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1643
- // except a single quote symbol, which ends the sequence.
1644
- // Two quote characters do not end the sequence.
1645
- // If there is no matching single quote
1646
- // then the sequence will continue until the end of the string.
1647
- // - . matches any single character unmatched by previous parts of the RegExps
1648
-
1649
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1650
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1651
-
1652
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1653
- var escapedStringRegExp = /^'([^]*?)'?$/;
1654
- var doubleQuoteRegExp = /''/g;
1655
- var notWhitespaceRegExp = /\S/;
1656
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1657
- /**
1658
- * @name parse
1659
- * @category Common Helpers
1660
- * @summary Parse the date.
1661
- *
1662
- * @description
1663
- * Return the date parsed from string using the given format string.
1664
- *
1665
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1666
- * > See: https://git.io/fxCyr
1667
- *
1668
- * The characters in the format string wrapped between two single quotes characters (') are escaped.
1669
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1670
- *
1671
- * Format of the format string is based on Unicode Technical Standard #35:
1672
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1673
- * with a few additions (see note 5 below the table).
1674
- *
1675
- * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1676
- * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1677
- *
1678
- * ```javascript
1679
- * parse('23 AM', 'HH a', new Date())
1680
- * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1681
- * ```
1682
- *
1683
- * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1684
- *
1685
- * Accepted format string patterns:
1686
- * | Unit |Prior| Pattern | Result examples | Notes |
1687
- * |---------------------------------|-----|---------|-----------------------------------|-------|
1688
- * | Era | 140 | G..GGG | AD, BC | |
1689
- * | | | GGGG | Anno Domini, Before Christ | 2 |
1690
- * | | | GGGGG | A, B | |
1691
- * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1692
- * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1693
- * | | | yy | 44, 01, 00, 17 | 4 |
1694
- * | | | yyy | 044, 001, 123, 999 | 4 |
1695
- * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1696
- * | | | yyyyy | ... | 2,4 |
1697
- * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1698
- * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1699
- * | | | YY | 44, 01, 00, 17 | 4,6 |
1700
- * | | | YYY | 044, 001, 123, 999 | 4 |
1701
- * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1702
- * | | | YYYYY | ... | 2,4 |
1703
- * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1704
- * | | | RR | -43, 01, 00, 17 | 4,5 |
1705
- * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1706
- * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1707
- * | | | RRRRR | ... | 2,4,5 |
1708
- * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1709
- * | | | uu | -43, 01, 99, -99 | 4 |
1710
- * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1711
- * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1712
- * | | | uuuuu | ... | 2,4 |
1713
- * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1714
- * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1715
- * | | | QQ | 01, 02, 03, 04 | |
1716
- * | | | QQQ | Q1, Q2, Q3, Q4 | |
1717
- * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1718
- * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1719
- * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1720
- * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1721
- * | | | qq | 01, 02, 03, 04 | |
1722
- * | | | qqq | Q1, Q2, Q3, Q4 | |
1723
- * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1724
- * | | | qqqqq | 1, 2, 3, 4 | 3 |
1725
- * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1726
- * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1727
- * | | | MM | 01, 02, ..., 12 | |
1728
- * | | | MMM | Jan, Feb, ..., Dec | |
1729
- * | | | MMMM | January, February, ..., December | 2 |
1730
- * | | | MMMMM | J, F, ..., D | |
1731
- * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1732
- * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1733
- * | | | LL | 01, 02, ..., 12 | |
1734
- * | | | LLL | Jan, Feb, ..., Dec | |
1735
- * | | | LLLL | January, February, ..., December | 2 |
1736
- * | | | LLLLL | J, F, ..., D | |
1737
- * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1738
- * | | | wo | 1st, 2nd, ..., 53th | 5 |
1739
- * | | | ww | 01, 02, ..., 53 | |
1740
- * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1741
- * | | | Io | 1st, 2nd, ..., 53th | 5 |
1742
- * | | | II | 01, 02, ..., 53 | 5 |
1743
- * | Day of month | 90 | d | 1, 2, ..., 31 | |
1744
- * | | | do | 1st, 2nd, ..., 31st | 5 |
1745
- * | | | dd | 01, 02, ..., 31 | |
1746
- * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1747
- * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1748
- * | | | DD | 01, 02, ..., 365, 366 | 7 |
1749
- * | | | DDD | 001, 002, ..., 365, 366 | |
1750
- * | | | DDDD | ... | 2 |
1751
- * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1752
- * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1753
- * | | | EEEEE | M, T, W, T, F, S, S | |
1754
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1755
- * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1756
- * | | | io | 1st, 2nd, ..., 7th | 5 |
1757
- * | | | ii | 01, 02, ..., 07 | 5 |
1758
- * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1759
- * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1760
- * | | | iiiii | M, T, W, T, F, S, S | 5 |
1761
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1762
- * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1763
- * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1764
- * | | | ee | 02, 03, ..., 01 | |
1765
- * | | | eee | Mon, Tue, Wed, ..., Sun | |
1766
- * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1767
- * | | | eeeee | M, T, W, T, F, S, S | |
1768
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1769
- * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1770
- * | | | co | 2nd, 3rd, ..., 1st | 5 |
1771
- * | | | cc | 02, 03, ..., 01 | |
1772
- * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1773
- * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1774
- * | | | ccccc | M, T, W, T, F, S, S | |
1775
- * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1776
- * | AM, PM | 80 | a..aaa | AM, PM | |
1777
- * | | | aaaa | a.m., p.m. | 2 |
1778
- * | | | aaaaa | a, p | |
1779
- * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1780
- * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1781
- * | | | bbbbb | a, p, n, mi | |
1782
- * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1783
- * | | | BBBB | at night, in the morning, ... | 2 |
1784
- * | | | BBBBB | at night, in the morning, ... | |
1785
- * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1786
- * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1787
- * | | | hh | 01, 02, ..., 11, 12 | |
1788
- * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1789
- * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1790
- * | | | HH | 00, 01, 02, ..., 23 | |
1791
- * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1792
- * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1793
- * | | | KK | 01, 02, ..., 11, 00 | |
1794
- * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1795
- * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1796
- * | | | kk | 24, 01, 02, ..., 23 | |
1797
- * | Minute | 60 | m | 0, 1, ..., 59 | |
1798
- * | | | mo | 0th, 1st, ..., 59th | 5 |
1799
- * | | | mm | 00, 01, ..., 59 | |
1800
- * | Second | 50 | s | 0, 1, ..., 59 | |
1801
- * | | | so | 0th, 1st, ..., 59th | 5 |
1802
- * | | | ss | 00, 01, ..., 59 | |
1803
- * | Seconds timestamp | 40 | t | 512969520 | |
1804
- * | | | tt | ... | 2 |
1805
- * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1806
- * | | | SS | 00, 01, ..., 99 | |
1807
- * | | | SSS | 000, 0001, ..., 999 | |
1808
- * | | | SSSS | ... | 2 |
1809
- * | Milliseconds timestamp | 20 | T | 512969520900 | |
1810
- * | | | TT | ... | 2 |
1811
- * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1812
- * | | | XX | -0800, +0530, Z | |
1813
- * | | | XXX | -08:00, +05:30, Z | |
1814
- * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1815
- * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1816
- * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1817
- * | | | xx | -0800, +0530, +0000 | |
1818
- * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1819
- * | | | xxxx | -0800, +0530, +0000, +123456 | |
1820
- * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1821
- * | Long localized date | NA | P | 05/29/1453 | 5,8 |
1822
- * | | | PP | May 29, 1453 | |
1823
- * | | | PPP | May 29th, 1453 | |
1824
- * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
1825
- * | Long localized time | NA | p | 12:00 AM | 5,8 |
1826
- * | | | pp | 12:00:00 AM | |
1827
- * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
1828
- * | | | PPpp | May 29, 1453, 12:00:00 AM | |
1829
- * | | | PPPpp | May 29th, 1453 at ... | |
1830
- * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
1831
- * Notes:
1832
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
1833
- * are the same as "stand-alone" units, but are different in some languages.
1834
- * "Formatting" units are declined according to the rules of the language
1835
- * in the context of a date. "Stand-alone" units are always nominative singular.
1836
- * In `format` function, they will produce different result:
1837
- *
1838
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
1839
- *
1840
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
1841
- *
1842
- * `parse` will try to match both formatting and stand-alone units interchangably.
1843
- *
1844
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
1845
- * the single quote characters (see below).
1846
- * If the sequence is longer than listed in table:
1847
- * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
1848
- * as wide as the sequence
1849
- * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
1850
- * These variations are marked with "2" in the last column of the table.
1851
- *
1852
- * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
1853
- * These tokens represent the shortest form of the quarter.
1854
- *
1855
- * 4. The main difference between `y` and `u` patterns are B.C. years:
1856
- *
1857
- * | Year | `y` | `u` |
1858
- * |------|-----|-----|
1859
- * | AC 1 | 1 | 1 |
1860
- * | BC 1 | 1 | 0 |
1861
- * | BC 2 | 2 | -1 |
1862
- *
1863
- * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
1864
- *
1865
- * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
1866
- *
1867
- * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
1868
- *
1869
- * while `uu` will just assign the year as is:
1870
- *
1871
- * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
1872
- *
1873
- * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
1874
- *
1875
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
1876
- * except local week-numbering years are dependent on `options.weekStartsOn`
1877
- * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
1878
- * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
1879
- *
1880
- * 5. These patterns are not in the Unicode Technical Standard #35:
1881
- * - `i`: ISO day of week
1882
- * - `I`: ISO week of year
1883
- * - `R`: ISO week-numbering year
1884
- * - `o`: ordinal number modifier
1885
- * - `P`: long localized date
1886
- * - `p`: long localized time
1887
- *
1888
- * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
1889
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
1890
- *
1891
- * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
1892
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
1893
- *
1894
- * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
1895
- * on the given locale.
1896
- *
1897
- * using `en-US` locale: `P` => `MM/dd/yyyy`
1898
- * using `en-US` locale: `p` => `hh:mm a`
1899
- * using `pt-BR` locale: `P` => `dd/MM/yyyy`
1900
- * using `pt-BR` locale: `p` => `HH:mm`
1901
- *
1902
- * Values will be assigned to the date in the descending order of its unit's priority.
1903
- * Units of an equal priority overwrite each other in the order of appearance.
1904
- *
1905
- * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
1906
- * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
1907
- *
1908
- * `referenceDate` must be passed for correct work of the function.
1909
- * If you're not sure which `referenceDate` to supply, create a new instance of Date:
1910
- * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
1911
- * In this case parsing will be done in the context of the current date.
1912
- * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
1913
- * then `Invalid Date` will be returned.
1914
- *
1915
- * The result may vary by locale.
1916
- *
1917
- * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
1918
- *
1919
- * If parsing failed, `Invalid Date` will be returned.
1920
- * Invalid Date is a Date, whose time value is NaN.
1921
- * Time value of Date: http://es5.github.io/#x15.9.1.1
1922
- *
1923
- * ### v2.0.0 breaking changes:
1924
- *
1925
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
1926
- *
1927
- * - Old `parse` was renamed to `toDate`.
1928
- * Now `parse` is a new function which parses a string using a provided format.
1929
- *
1930
- * ```javascript
1931
- * // Before v2.0.0
1932
- * parse('2016-01-01')
1933
- *
1934
- * // v2.0.0 onward (toDate no longer accepts a string)
1935
- * toDate(1392098430000) // Unix to timestamp
1936
- * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
1937
- * parse('2016-01-01', 'yyyy-MM-dd', new Date())
1938
- * ```
1939
- *
1940
- * @param {String} dateString - the string to parse
1941
- * @param {String} formatString - the string of tokens
1942
- * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
1943
- * @param {Object} [options] - an object with options.
1944
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
1945
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
1946
- * @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
1947
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
1948
- * see: https://git.io/fxCyr
1949
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
1950
- * see: https://git.io/fxCyr
1951
- * @returns {Date} the parsed date
1952
- * @throws {TypeError} 3 arguments required
1953
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
1954
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
1955
- * @throws {RangeError} `options.locale` must contain `match` property
1956
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
1957
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
1958
- * @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
1959
- * @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
1960
- * @throws {RangeError} format string contains an unescaped latin alphabet character
1961
- *
1962
- * @example
1963
- * // Parse 11 February 2014 from middle-endian format:
1964
- * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
1965
- * //=> Tue Feb 11 2014 00:00:00
1966
- *
1967
- * @example
1968
- * // Parse 28th of February in Esperanto locale in the context of 2010 year:
1969
- * import eo from 'date-fns/locale/eo'
1970
- * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
1971
- * locale: eo
1972
- * })
1973
- * //=> Sun Feb 28 2010 00:00:00
1974
- */
1975
-
1976
- function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
1977
- requiredArgs(3, arguments);
1978
- var dateString = String(dirtyDateString);
1979
- var formatString = String(dirtyFormatString);
1980
- var options = dirtyOptions || {};
1981
- var locale = options.locale || defaultLocale;
1982
-
1983
- if (!locale.match) {
1984
- throw new RangeError('locale must contain match property');
1985
- }
1986
-
1987
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
1988
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
1989
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
1990
-
1991
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
1992
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
1993
- }
1994
-
1995
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
1996
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
1997
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
1998
-
1999
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2000
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2001
- }
2002
-
2003
- if (formatString === '') {
2004
- if (dateString === '') {
2005
- return toDate(dirtyReferenceDate);
2006
- } else {
2007
- return new Date(NaN);
2008
- }
2009
- }
2010
-
2011
- var subFnOptions = {
2012
- firstWeekContainsDate: firstWeekContainsDate,
2013
- weekStartsOn: weekStartsOn,
2014
- locale: locale
2015
- }; // If timezone isn't specified, it will be set to the system timezone
2016
-
2017
- var setters = [{
2018
- priority: TIMEZONE_UNIT_PRIORITY,
2019
- subPriority: -1,
2020
- set: dateToSystemTimezone,
2021
- index: 0
2022
- }];
2023
- var i;
2024
- var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2025
- var firstCharacter = substring[0];
2026
-
2027
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2028
- var longFormatter = longFormatters[firstCharacter];
2029
- return longFormatter(substring, locale.formatLong, subFnOptions);
2030
- }
2031
-
2032
- return substring;
2033
- }).join('').match(formattingTokensRegExp);
2034
- var usedTokens = [];
2035
-
2036
- for (i = 0; i < tokens.length; i++) {
2037
- var token = tokens[i];
2038
-
2039
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {
2040
- throwProtectedError(token, formatString, dirtyDateString);
2041
- }
2042
-
2043
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
2044
- throwProtectedError(token, formatString, dirtyDateString);
2045
- }
2046
-
2047
- var firstCharacter = token[0];
2048
- var parser = parsers$1[firstCharacter];
2049
-
2050
- if (parser) {
2051
- var incompatibleTokens = parser.incompatibleTokens;
2052
-
2053
- if (Array.isArray(incompatibleTokens)) {
2054
- var incompatibleToken = void 0;
2055
-
2056
- for (var _i = 0; _i < usedTokens.length; _i++) {
2057
- var usedToken = usedTokens[_i].token;
2058
-
2059
- if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2060
- incompatibleToken = usedTokens[_i];
2061
- break;
2062
- }
2063
- }
2064
-
2065
- if (incompatibleToken) {
2066
- throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2067
- }
2068
- } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2069
- throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2070
- }
2071
-
2072
- usedTokens.push({
2073
- token: firstCharacter,
2074
- fullToken: token
2075
- });
2076
- var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
2077
-
2078
- if (!parseResult) {
2079
- return new Date(NaN);
2080
- }
2081
-
2082
- setters.push({
2083
- priority: parser.priority,
2084
- subPriority: parser.subPriority || 0,
2085
- set: parser.set,
2086
- validate: parser.validate,
2087
- value: parseResult.value,
2088
- index: setters.length
2089
- });
2090
- dateString = parseResult.rest;
2091
- } else {
2092
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2093
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2094
- } // Replace two single quote characters with one single quote character
2095
-
2096
-
2097
- if (token === "''") {
2098
- token = "'";
2099
- } else if (firstCharacter === "'") {
2100
- token = cleanEscapedString(token);
2101
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2102
-
2103
-
2104
- if (dateString.indexOf(token) === 0) {
2105
- dateString = dateString.slice(token.length);
2106
- } else {
2107
- return new Date(NaN);
2108
- }
2109
- }
2110
- } // Check if the remaining input contains something other than whitespace
2111
-
2112
-
2113
- if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2114
- return new Date(NaN);
2115
- }
2116
-
2117
- var uniquePrioritySetters = setters.map(function (setter) {
2118
- return setter.priority;
2119
- }).sort(function (a, b) {
2120
- return b - a;
2121
- }).filter(function (priority, index, array) {
2122
- return array.indexOf(priority) === index;
2123
- }).map(function (priority) {
2124
- return setters.filter(function (setter) {
2125
- return setter.priority === priority;
2126
- }).sort(function (a, b) {
2127
- return b.subPriority - a.subPriority;
2128
- });
2129
- }).map(function (setterArray) {
2130
- return setterArray[0];
2131
- });
2132
- var date = toDate(dirtyReferenceDate);
2133
-
2134
- if (isNaN(date)) {
2135
- return new Date(NaN);
2136
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2137
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2138
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2139
-
2140
-
2141
- var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));
2142
- var flags = {};
2143
-
2144
- for (i = 0; i < uniquePrioritySetters.length; i++) {
2145
- var setter = uniquePrioritySetters[i];
2146
-
2147
- if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2148
- return new Date(NaN);
2149
- }
2150
-
2151
- var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2152
-
2153
- if (result[0]) {
2154
- utcDate = result[0];
2155
- assign(flags, result[1]); // Result is date
2156
- } else {
2157
- utcDate = result;
2158
- }
2159
- }
2160
-
2161
- return utcDate;
2162
- }
2163
-
2164
- function dateToSystemTimezone(date, flags) {
2165
- if (flags.timestampIsSet) {
2166
- return date;
2167
- }
2168
-
2169
- var convertedDate = new Date(0);
2170
- convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2171
- convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2172
- return convertedDate;
2173
- }
2174
-
2175
- function cleanEscapedString(input) {
2176
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2177
- }
2178
-
2179
- const calendarDatepickerCss = ".sc-digi-calendar-datepicker:root{--digi--grayscale--0:#ffffff;--digi--grayscale--50:#fbfbfb;--digi--grayscale--100:#f4f4f4;--digi--grayscale--200:#ededed;--digi--grayscale--300:#e4e4e4;--digi--grayscale--400:#dddddd;--digi--grayscale--500:#cacaca;--digi--grayscale--600:#acacac;--digi--grayscale--700:#757575;--digi--grayscale--800:#5c5c5c;--digi--grayscale--900:#333333;--digi--grayscale--1000:#000000;--digi--sentiment--informative--200:#e9e9ff;--digi--sentiment--informative--500:#0A4DD1;--digi--sentiment--informative--700:#0058a3;--digi--sentiment--error--200:#fdeded;--digi--sentiment--error--500:#da0000;--digi--sentiment--error--700:#c7311a;--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--misc--transparent:#ffffff00;--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:.3s;--digi--global--animation--duration--short:.2s;--digi--global--animation--duration--shorter:.1s;--digi--global--animation--duration--shortest:.01s;--digi--global--animation--duration--long:.4s;--digi--global--animation--duration--longer:.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--logotype-color:var(--digi--color--logotype-color--light);--digi--color--infographic--lineart:var(--digi--color--infographic--lineart--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--secondary:var(--digi--color--infographic--brand--secondary--light);--digi--color--infographic--brand--tertiary:var(--digi--color--infographic--brand--tertiary--light);--digi--color--text--primary:var(--digi--color--text--primary--light);--digi--color--text--secondary:var(--digi--color--text--secondary--light);--digi--color--text--description:var(--digi--color--text--description--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--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--visited:var(--digi--color--text--interactive--visited--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-muted:var(--digi--color--background--secondary-muted--light);--digi--color--background--secondary-accent:var(--digi--color--background--secondary-accent--light);--digi--color--background--pop-out:var(--digi--color--background--pop-out--light);--digi--color--background--brand-primary:var(--digi--color--background--brand-primary--light);--digi--color--background--transparent:var(--digi--color--background--transparent--light);--digi--color--background--notification:var(--digi--color--background--notification--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--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--default--quaternary:var(--digi--color--background--interactive--default--quaternary--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--hover--primary:var(--digi--color--background--interactive--hover--primary--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--hover--quarternary:var(--digi--color--background--interactive--hover--quarternary--light);--digi--color--background--interactive--hover--inverted:var(--digi--color--background--interactive--hover--inverted--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--selected--on-menu-minus-button:var(--digi--color--background--interactive--selected--on-menu-minus-button--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--interactive--validation--error:var(--digi--color--background--interactive--validation--error--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--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--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--sentiment--warning--quarternary:var(--digi--color--background--sentiment--warning--quarternary--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--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--border--notification:var(--digi--color--border--notification--light);--digi--color--border--transparent:var(--digi--color--border--transparent--light);--digi--color--border--interactive--default--primary:var(--digi--color--border--interactive--default--primary--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--inverted:var(--digi--color--border--interactive--default--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--hover--inverted:var(--digi--color--border--interactive--hover--inverted--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--interactive--validation--error:var(--digi--color--border--interactive--validation--error--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--sentiment--error:var(--digi--color--border--sentiment--error--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--sentiment--info:var(--digi--color--border--sentiment--info--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--marking--navigation--selected:var(--digi--color--marking--navigation--selected--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--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--divider--primary:var(--digi--color--divider--primary--light);--digi--color--divider--secondary:var(--digi--color--divider--secondary--light);--digi--color--divider--on-brand-primary:var(--digi--color--divider--on-brand-primary--light);--digi--color--divider--cta:var(--digi--color--divider--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--cta:var(--digi--color--icon--cta--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--validation--success:var(--digi--color--icon--validation--success--light);--digi--color--icon--validation--warning:var(--digi--color--icon--validation--warning--light);--digi--color--icon--validation--error:var(--digi--color--icon--validation--error--light);--digi--color--misc--spinner-path:var(--digi--color--misc--spinner-path--light);--digi--color--misc--skeleton:var(--digi--color--misc--skeleton--light);--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--logotype-color--light:var(--digi--granskott--700);--digi--color--infographic--lineart--light:var(--digi--grayscale--900);--digi--color--infographic--background--light:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light:var(--digi--granskott--700);--digi--color--infographic--brand--secondary--light:var(--digi--granskott--250);--digi--color--infographic--brand--tertiary--light:var(--digi--rallarros--500);--digi--color--text--primary--light:var(--digi--grayscale--900);--digi--color--text--secondary--light:var(--digi--grayscale--0);--digi--color--text--description--light:var(--digi--grayscale--800);--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--brand-primary--light:var(--digi--natthimmel--800);--digi--color--text--interactive--brand-secondary--light:var(--digi--norrsken--500);--digi--color--text--interactive--visited--light:var(--digi--amethyst--500);--digi--color--background--primary--light:var(--digi--grayscale--0);--digi--color--background--secondary--light:var(--digi--grayscale--100);--digi--color--background--secondary-muted--light:var(--digi--grayscale--50);--digi--color--background--secondary-accent--light:var(--digi--grayscale--400);--digi--color--background--pop-out--light:var(--digi--granskott--200);--digi--color--background--brand-primary--light:var(--digi--natthimmel--800);--digi--color--background--transparent--light:var(--digi--misc--transparent);--digi--color--background--notification--light:var(--digi--sentiment--error--500);--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--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--default--quaternary--light:var(--digi--grayscale--100);--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--hover--primary--light:var(--digi--natthimmel--700);--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--hover--quarternary--light:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light:var(--digi--norrsken--400);--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--selected--on-menu-minus-button--light:var(--digi--granskott--250);--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--interactive--validation--error--light:var(--digi--sentiment--error--200);--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--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--secondary--light:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light:var(--digi--sentiment--warning--200);--digi--color--background--sentiment--warning--quarternary--light:var(--digi--sentiment--warning--50);--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--beta--primary--light:var(--digi--rallarros--500);--digi--color--background--sentiment--beta--secondary--light:var(--digi--rallarros--300);--digi--color--border--notification--light:var(--digi--grayscale--0);--digi--color--border--transparent--light:var(--digi--misc--transparent);--digi--color--border--interactive--default--primary--light:var(--digi--natthimmel--800);--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--inverted--light:var(--digi--norrsken--500);--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--hover--inverted--light:var(--digi--norrsken--400);--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--interactive--validation--error--light:var(--digi--sentiment--error--500);--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--sentiment--error--light:var(--digi--sentiment--error--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--sentiment--info--light:var(--digi--sentiment--informative--500);--digi--color--border--accent--primary--light:var(--digi--natthimmel--800);--digi--color--border--accent--secondary--light:var(--digi--granskott--700);--digi--color--marking--navigation--selected--light:var(--digi--granskott--700);--digi--color--marking--navigation--level-active--light:var(--digi--granskott--250);--digi--color--marking--navigation--level-inactive--light:var(--digi--grayscale--100);--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--divider--primary--light:var(--digi--grayscale--400);--digi--color--divider--secondary--light:var(--digi--grayscale--200);--digi--color--divider--on-brand-primary--light:var(--digi--natthimmel--350);--digi--color--divider--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--cta--light:var(--digi--sapphire--500);--digi--color--icon--brand-primary--light:var(--digi--natthimmel--800);--digi--color--icon--brand-secondary--light:var(--digi--granskott--700);--digi--color--icon--validation--success--light:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light:var(--digi--sentiment--warning--500);--digi--color--icon--validation--error--light:var(--digi--sentiment--error--500);--digi--color--misc--spinner-path--light:var(--digi--grayscale--400);--digi--color--misc--skeleton--light:var(--digi--grayscale--400);--digi--color--amber--200:#fff398;--digi--color--amber--50:#fffbdd;--digi--color--amber--500:#ffe200;--digi--color--amber--700:#ffc108;--digi--color--amber--900:#664d00;--digi--color--amethyst--500:#822998;--digi--color--forest--200:#e9f6ec;--digi--color--forest--500:#009322;--digi--color--forest--700:#02703c;--digi--color--indigo--200:#e9e9ff;--digi--color--indigo--500:#0000ff;--digi--color--indigo--700:#0058a3;--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--moon--0:#ffffff;--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--ruby--200:#fdeded;--digi--color--ruby--500:#da0000;--digi--color--ruby--700:#c7311a;--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--logotype-color--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--lineart--light--af18:var(--digi--grayscale--900);--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--secondary--light--af18:var(--digi--color--leaf--200);--digi--color--infographic--brand--tertiary--light--af18:var(--digi--color--rose--500);--digi--color--text--primary--light--af18:var(--digi--grayscale--900);--digi--color--text--secondary--light--af18:var(--digi--grayscale--0);--digi--color--text--description--light--af18:var(--digi--grayscale--800);--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--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--visited--light--af18:var(--digi--color--amethyst--500);--digi--color--background--primary--light--af18:var(--digi--grayscale--0);--digi--color--background--secondary--light--af18:var(--digi--grayscale--100);--digi--color--background--secondary-muted--light--af18:var(--digi--grayscale--50);--digi--color--background--secondary-accent--light--af18:var(--digi--grayscale--400);--digi--color--background--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--transparent--light--af18:var(--digi--misc--transparent);--digi--color--background--notification--light--af18:var(--digi--sentiment--error--500);--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--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--default--quaternary--light--af18:var(--digi--grayscale--100);--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--hover--primary--light--af18:var(--digi--color--water--700);--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--hover--quarternary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--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--selected--on-menu-minus-button--light--af18:var(--digi--color--leaf--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--interactive--validation--error--light--af18:var(--digi--sentiment--error--200);--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--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--secondary--light--af18:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light--af18:var(--digi--sentiment--warning--200);--digi--color--background--sentiment--warning--quarternary--light--af18:var(--digi--sentiment--warning--50);--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--beta--primary--light--af18:var(--digi--color--rose--500);--digi--color--background--sentiment--beta--secondary--light--af18:var(--digi--color--rose--100);--digi--color--border--notification--light--af18:var(--digi--grayscale--0);--digi--color--border--transparent--light--af18:var(--digi--misc--transparent);--digi--color--border--interactive--default--primary--light--af18:var(--digi--color--stratos--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--inverted--light--af18:var(--digi--color--leaf--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--hover--inverted--light--af18:var(--digi--color--pear--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--interactive--validation--error--light--af18:var(--digi--sentiment--error--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--sentiment--error--light--af18:var(--digi--sentiment--error--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--sentiment--info--light--af18:var(--digi--sentiment--informative--500);--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--marking--navigation--selected--light--af18:var(--digi--color--leaf--500);--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--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--divider--primary--light--af18:var(--digi--grayscale--400);--digi--color--divider--secondary--light--af18:var(--digi--grayscale--200);--digi--color--divider--on-brand-primary--light--af18:var(--digi--color--stratos--400);--digi--color--divider--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--cta--light--af18:var(--digi--color--sapphire--500);--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--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--icon--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--misc--spinner-path--light--af18:var(--digi--grayscale--400);--digi--color--misc--skeleton--light--af18:var(--digi--grayscale--400)}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}";
2180
- const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
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.futureYears = 10;
2189
- this.screenReaderUpdateTrigger = false;
2190
- this.showWrongFormatError = false;
2191
- this.showDisabledDateError = false;
2192
- this.showCalendar = false;
2193
- this.userInput = '';
2194
- this.afId = randomIdGenerator('digi-calendar-datepicker');
2195
- this.afLabel = _t.calendar.datepicker.label;
2196
- this.afLabelDescription = undefined;
2197
- this.afName = undefined;
2198
- this.afOpenCalendarAriaLabel = _t.calendar.datepicker.openCalendarAriaLabel;
2199
- this.afCloseCalendarAriaLabel = _t.calendar.datepicker.closeCalendarAriaLabel;
2200
- this.afValidation = CalendarDatepickerValidation.NEUTRAL;
2201
- this.afValidationText = undefined;
2202
- this.afValidationWrongFormat = _t.calendar.datepicker.validationWrongFormat;
2203
- this.afValidationDisabledDate = _t.calendar.datepicker.validationDisabledDate;
2204
- this.afRequired = undefined;
2205
- this.afDisableValidation = false;
2206
- this.afRequiredText = undefined;
2207
- this.afSelectedDates = [];
2208
- this.afYearSelect = false;
2209
- this.value = [];
2210
- this.afMinDate = undefined;
2211
- this.afMaxDate = undefined;
2212
- this.afShowWeekNumber = false;
2213
- this.afMultipleDates = false;
2214
- this.afCloseOnSelect = false;
2215
- this.afOpenCalendarTo = undefined;
2216
- this.afErrorMessageIsAlert = true;
2217
- }
2218
- afDisableValidationChangeHandler(newVal) {
2219
- if (!newVal) {
2220
- const dates = this.userInput !== ''
2221
- ? this.parseInputString(this.userInput)
2222
- : this.afSelectedDates;
2223
- this.validateInputAndShowErrors(dates);
2224
- }
2225
- else {
2226
- this.showWrongFormatError = false;
2227
- this.showDisabledDateError = false;
2228
- }
2229
- }
2230
- afSelectedDatesChangeHandler(newVal) {
2231
- if (!this.afDisableValidation && newVal.length > 0) {
2232
- this.validateInputAndShowErrors(newVal);
2233
- }
2234
- }
2235
- valueChangeHandler(newVal) {
2236
- if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2237
- this.afSelectedDates = [];
2238
- }
2239
- /**
2240
- * 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.
2241
- */
2242
- if (Array.isArray(newVal) &&
2243
- newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2244
- this.afSelectedDates = newVal;
2245
- this.userInput = '';
2246
- }
2247
- }
2248
- afMinDateChangeHandler(newVal) {
2249
- if (!this.afDisableValidation && newVal) {
2250
- this.validateInputAndShowErrors(this.afSelectedDates);
2251
- }
2252
- }
2253
- afMaxDateChangeHandler(newVal) {
2254
- if (!this.afDisableValidation && newVal) {
2255
- this.validateInputAndShowErrors(this.afSelectedDates);
2256
- }
2257
- }
2258
- afMultipleDatesChangeHandler() {
2259
- var _a;
2260
- if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2261
- this.afSelectedDates = this.afSelectedDates.slice(-1);
2262
- this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2263
- }
2264
- }
2265
- get errorMessageIsAlert() {
2266
- return (this.afErrorMessageIsAlert !== false &&
2267
- this.afErrorMessageIsAlert !== 'false');
2268
- }
2269
- clickHandler(e) {
2270
- const target = e.target;
2271
- const selector = `#${this.afId}-datepicker`;
2272
- if (detectClickOutside(target, selector)) {
2273
- this.showCalendar = false;
2274
- }
2275
- }
2276
- /**
2277
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva input-elementet.
2278
- * @en Listens for when focus is set on the custom element and propagates it down to the actual input element.
2279
- */
2280
- focusOnInput() {
2281
- this._input.focus();
2282
- }
2283
- connectedCallback() {
2284
- this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2285
- }
2286
- disconnectedCallback() {
2287
- this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2288
- }
2289
- componentDidLoad() {
2290
- var _a;
2291
- if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2292
- this.setValue(this.value);
2293
- }
2294
- }
2295
- componentDidUpdate() {
2296
- if (this.showCalendar) {
2297
- this.positionCalendar();
2298
- }
2299
- }
2300
- get cssModifiers() {
2301
- return {
2302
- 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2303
- 'digi-calendar-datepicker__show-error': this.hasBuiltInValidationError() || this.hasCustomValidationError(),
2304
- 'digi-calendar-datepicker__show-calendar': this.showCalendar
2305
- };
2306
- }
2307
- keyUpHandler(e) {
2308
- if (e.key === 'Escape' && this.showCalendar) {
2309
- this.showCalendar = false;
2310
- this.focusOnCalendarButton();
2311
- e.stopPropagation();
2312
- }
2313
- }
2314
- focusOnCalendarInput() {
2315
- const input = this.hostElement.querySelector(`#${this.afId}-datepicker input`);
2316
- input === null || input === void 0 ? void 0 : input.focus();
2317
- }
2318
- focusOnCalendarButton() {
2319
- const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2320
- calendarButton.focus();
2321
- }
2322
- positionCalendar() {
2323
- const btn = this.hostElement.querySelector(`#${this.afId}-button`);
2324
- const datepickerEl = this.hostElement.querySelector(`#${this.afId}-datepicker`);
2325
- if (!btn || !datepickerEl)
2326
- return;
2327
- const btnRect = btn.getBoundingClientRect();
2328
- const containerRect = datepickerEl.getBoundingClientRect();
2329
- datepickerEl.style.setProperty('--digi--datepicker--calendar--popup-top', `${btnRect.bottom - containerRect.top + 5}px`);
2330
- }
2331
- toggleCalendar() {
2332
- if (!this.showCalendar) {
2333
- this.positionCalendar();
2334
- }
2335
- this.showCalendar = !this.showCalendar;
2336
- if (this.showCalendar) {
2337
- this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2338
- }
2339
- }
2340
- parseInputString(value) {
2341
- return value
2342
- .split(new RegExp(`[&,]|${_t.and}`, 'g'))
2343
- .map((text) => this.parseDateString(text.trim()));
2344
- }
2345
- resetValueAndState() {
2346
- this.showWrongFormatError = false;
2347
- this.showDisabledDateError = false;
2348
- this.setValue([]);
2349
- this.afOnDateChange.emit([]);
2350
- this.afSelectedDates = [];
2351
- }
2352
- removeDuplicateDates(dates) {
2353
- const seen = new Set();
2354
- return dates.filter((date) => {
2355
- if (!(date instanceof Date) || isNaN(date.getTime())) {
2356
- return true;
2357
- }
2358
- const key = date.toISOString().split('T')[0]; // yyyy-mm-dd
2359
- if (seen.has(key)) {
2360
- return false;
2361
- }
2362
- seen.add(key);
2363
- return true;
2364
- });
2365
- }
2366
- validateInputAndShowErrors(dates) {
2367
- this.showWrongFormatError = !!dates.find((date) => !isValid(date));
2368
- this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2369
- const inputIsValid = !this.showWrongFormatError && !this.showDisabledDateError;
2370
- this.afOnValidationChange.emit({
2371
- isValid: inputIsValid,
2372
- validationText: inputIsValid
2373
- ? undefined
2374
- : this.showWrongFormatError
2375
- ? this.afValidationWrongFormat
2376
- : this.afValidationDisabledDate
2377
- });
2378
- }
2379
- setValue(value) {
2380
- this.afSelectedDates = value;
2381
- this.value = value;
2382
- }
2383
- parseInput(evt) {
2384
- let newValue = '';
2385
- if (evt.detail && typeof evt.detail.value === 'string') {
2386
- newValue = evt.detail.value;
2387
- }
2388
- else if (evt.target && evt.target.value != null) {
2389
- newValue = evt.target.value;
2390
- }
2391
- this.userInput = newValue;
2392
- if (newValue === '') {
2393
- this.resetValueAndState();
2394
- return;
2395
- }
2396
- let dates = this.parseInputString(newValue);
2397
- // Single dates - acceptera inte flera datum inskrivna
2398
- if (!this.afDisableValidation &&
2399
- !this.afMultipleDates &&
2400
- dates.length > 1) {
2401
- this.showWrongFormatError = true;
2402
- this.afOnValidationChange.emit({
2403
- isValid: false,
2404
- validationText: this.afValidationWrongFormat
2405
- });
2406
- return;
2407
- }
2408
- // Multiple dates - filtrera bort dubbletter
2409
- if (!this.afDisableValidation && this.afMultipleDates) {
2410
- const uniqueDates = this.removeDuplicateDates(dates);
2411
- if (uniqueDates.length !== dates.length) {
2412
- dates = uniqueDates;
2413
- this.userInput = this.datesToInputString(dates);
2414
- }
2415
- }
2416
- this.setValue(dates);
2417
- if (!this.afDisableValidation) {
2418
- this.validateInputAndShowErrors(dates);
2419
- }
2420
- this.afOnDateChange.emit(dates);
2421
- }
2422
- parseCalendar(evt) {
2423
- if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
2424
- return;
2425
- if (!this.afDisableValidation) {
2426
- this.showWrongFormatError = false;
2427
- this.showDisabledDateError = false;
2428
- }
2429
- this.userInput = '';
2430
- this.setValue(evt.detail);
2431
- this.afOnDateChangeRawText.emit(this.inputValue);
2432
- if (this.afCloseOnSelect) {
2433
- this.toggleCalendar();
2434
- this.focusOnCalendarButton();
2435
- }
2436
- this.afOnDateChange.emit(this.afSelectedDates);
2437
- }
2438
- /*
2439
-
2440
- 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.
2441
-
2442
- */
2443
- parseDateString(s) {
2444
- const raw = s.trim().replace(/[./]/g, '-');
2445
- // 1) yyyy-MM-dd
2446
- if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
2447
- const d = parse(raw, 'yyyy-MM-dd', new Date());
2448
- return isValid(d) ? d : new Date(NaN);
2449
- }
2450
- // 2) yyyymmdd
2451
- if (/^\d{8}$/.test(raw)) {
2452
- const yyyy = raw.slice(0, 4);
2453
- const mm = raw.slice(4, 6);
2454
- const dd = raw.slice(6, 8);
2455
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2456
- return isValid(d) ? d : new Date(NaN);
2457
- }
2458
- // 3) yymmdd (map to full year using the previous futureYears logic)
2459
- if (/^\d{6}$/.test(raw)) {
2460
- const yy = raw.slice(0, 2);
2461
- const mm = raw.slice(2, 4);
2462
- const dd = raw.slice(4, 6);
2463
- const yyyy = this.getFullYear(yy);
2464
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2465
- return isValid(d) ? d : new Date(NaN);
2466
- }
2467
- // Everything else is invalid (so "1" and "25" will now be "Fel format")
2468
- return new Date(NaN);
2469
- }
2470
- getFullYear(s) {
2471
- if (s.length === 4)
2472
- return s;
2473
- const y = new Date().getFullYear().toString();
2474
- return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
2475
- ? parseInt(y.slice(0, -2)) - 1 + s
2476
- : y.slice(0, -2) + s;
2477
- }
2478
- isDateSelectable(date) {
2479
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2480
- return false;
2481
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2482
- return false;
2483
- return true;
2484
- }
2485
- isBefore(a, b) {
2486
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2487
- }
2488
- isAfter(a, b) {
2489
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2490
- }
2491
- dateWithoutTime(date) {
2492
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2493
- }
2494
- hasBuiltInValidationError() {
2495
- return this.showWrongFormatError || this.showDisabledDateError;
2496
- }
2497
- hasCustomValidationError() {
2498
- return (this.afValidation &&
2499
- this.afValidation !== CalendarDatepickerValidation.NEUTRAL);
2500
- }
2501
- getErrorText() {
2502
- if (this.hasBuiltInValidationError()) {
2503
- return this.showWrongFormatError
2504
- ? this.afValidationWrongFormat
2505
- : this.afValidationDisabledDate;
2506
- }
2507
- if (this.hasCustomValidationError()) {
2508
- return this.afValidationText;
2509
- }
2510
- }
2511
- get inputValue() {
2512
- if (this.userInput !== '') {
2513
- return this.userInput;
2514
- }
2515
- // otherwise format your real selected dates
2516
- const sorted = this.afSelectedDates
2517
- .slice()
2518
- .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
2519
- return this.datesToInputString(sorted);
2520
- }
2521
- datesToInputString(dates) {
2522
- return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
2523
- ? dates
2524
- .map((date) => date.toLocaleDateString(_t.locale))
2525
- .flatMap((date, index, all) => {
2526
- const isLast = index == all.length - 1;
2527
- const isFirst = index === 0;
2528
- if (isFirst) {
2529
- return date;
2530
- }
2531
- else if (isLast) {
2532
- return [` ${_t.and} `, date];
2533
- }
2534
- else {
2535
- return [', ', date];
2536
- }
2537
- })
2538
- .join('')
2539
- : '';
2540
- }
2541
- get getSelectedDates() {
2542
- if (!this.afDisableValidation && this.hasBuiltInValidationError()) {
2543
- return [];
2544
- }
2545
- return this.afSelectedDates;
2546
- }
2547
- render() {
2548
- return (h(Host, { key: 'e6dcf21e94a0cf58081b2cc351291a9489eadcb6', tabindex: -1 }, h("div", { key: '4040e430dd3c55e9ed0a0e6ed5aa69dea906e7c3', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, h("div", { key: '823f9480cb8a77c1e3cecdc1f3982e426ab2e658', class: "digi-calendar-datepicker__input-field" }, h("digi-form-input", { key: '454ca3d0a8d489826891da25bba8d9e0359c1df0', 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()
2549
- ? FormInputValidation.ERROR
2550
- : this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
2551
- evt.stopImmediatePropagation();
2552
- this.parseInput(evt);
2553
- }, onAfOnBlur: (evt) => {
2554
- evt.stopImmediatePropagation();
2555
- this.afOnDateChangeRawText.emit(this.inputValue);
2556
- }, onKeyDown: (e) => {
2557
- // Focus trap: Catch backwards tab from input field and direct it to date button.
2558
- if (!this.showCalendar || e.key !== 'Tab' || !e.shiftKey)
2559
- return;
2560
- if (e.target.tagName !== 'INPUT')
2561
- return;
2562
- e.preventDefault();
2563
- const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
2564
- focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
2565
- } }, h("button", { key: '0ea8d3a9092c41f96a0cf24a2cdc4aa764e40bce', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
2566
- ? this.afCloseCalendarAriaLabel
2567
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, h("digi-icon-calendar-alt", { key: '31ceefc7f2be65159840b1ba6d998a71ba0c5543', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), h("div", { key: 'f8105569c6065a353300f87d1eabd88a10227081', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, h("p", { key: 'b7e3556711de8ddb43a17874dada58193341ffcc', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
2568
- ? `${_t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
2569
- : ''), h("digi-calendar", { key: '55286f75c9ff74bb5f11a5098d06aac6f5120017', 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) => {
2570
- evt.stopImmediatePropagation();
2571
- this.parseCalendar(evt);
2572
- }, onKeyDown: (e) => {
2573
- // Focus trap: Catch forward tab from last focusable element in calendar and direct it to the input.
2574
- if (!this.showCalendar || e.key !== 'Tab' || e.shiftKey)
2575
- return;
2576
- if (!e.target.classList.contains('digi-calendar__date'))
2577
- return;
2578
- e.preventDefault();
2579
- this.focusOnCalendarInput();
2580
- } })), this.afCloseOnSelect && !this.afMultipleDates && (h("div", { key: 'f3d56c38d789cb0874ef1510e9ddd3e618255a76', class: "digi-calendar-datepicker__selected-date-alert", role: this.errorMessageIsAlert ? 'alert' : null }, this.afSelectedDates.length > 0
2581
- ? `${_t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
2582
- : '')))));
2583
- }
2584
- get hostElement() { return getElement(this); }
2585
- static get watchers() { return {
2586
- "afDisableValidation": ["afDisableValidationChangeHandler"],
2587
- "afSelectedDates": ["afSelectedDatesChangeHandler"],
2588
- "value": ["valueChangeHandler"],
2589
- "afMinDate": ["afMinDateChangeHandler"],
2590
- "afMaxDate": ["afMaxDateChangeHandler"],
2591
- "afMultipleDates": ["afMultipleDatesChangeHandler"]
2592
- }; }
2593
- };
2594
- CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
2595
-
2596
- export { CalendarDatepicker as digi_calendar_datepicker };