@designsystem-se/af 35.2.1-beta.1 → 35.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1812) hide show
  1. package/components/digi-badge-notification.d.ts +1 -1
  2. package/components/digi-badge-notification.js +1 -1
  3. package/components/digi-badge-status.d.ts +1 -1
  4. package/components/digi-badge-status.js +1 -1
  5. package/components/digi-bar-chart.d.ts +1 -1
  6. package/components/digi-bar-chart.js +9 -9
  7. package/components/digi-button.d.ts +1 -1
  8. package/components/digi-button.js +1 -1
  9. package/components/digi-calendar-datepicker.d.ts +1 -1
  10. package/components/digi-calendar-datepicker.js +73 -159
  11. package/components/digi-calendar-week-view.d.ts +1 -1
  12. package/components/digi-calendar-week-view.js +9 -9
  13. package/components/digi-calendar.d.ts +1 -1
  14. package/components/digi-calendar.js +1 -1
  15. package/components/digi-chart-line.d.ts +1 -1
  16. package/components/digi-chart-line.js +7 -7
  17. package/components/digi-code-block.d.ts +1 -1
  18. package/components/digi-code-block.js +1 -1
  19. package/components/digi-code-example.d.ts +1 -1
  20. package/components/digi-code-example.js +19 -43
  21. package/components/digi-code.d.ts +1 -1
  22. package/components/digi-code.js +2 -2
  23. package/components/digi-context-menu.d.ts +1 -1
  24. package/components/digi-context-menu.js +7 -7
  25. package/components/digi-dialog.d.ts +1 -1
  26. package/components/digi-dialog.js +9 -12
  27. package/components/digi-expandable-accordion.d.ts +1 -1
  28. package/components/digi-expandable-accordion.js +4 -4
  29. package/components/digi-expandable-faq-item.d.ts +1 -1
  30. package/components/digi-expandable-faq-item.js +7 -7
  31. package/components/digi-expandable-faq.d.ts +1 -1
  32. package/components/digi-expandable-faq.js +3 -3
  33. package/components/digi-footer-card.d.ts +1 -1
  34. package/components/digi-footer-card.js +2 -2
  35. package/components/digi-footer.d.ts +1 -1
  36. package/components/digi-footer.js +7 -10
  37. package/components/digi-form-category-filter.d.ts +1 -1
  38. package/components/digi-form-category-filter.js +6 -6
  39. package/components/digi-form-checkbox.d.ts +1 -1
  40. package/components/digi-form-checkbox.js +1 -1
  41. package/components/digi-form-error-list.d.ts +1 -1
  42. package/components/digi-form-error-list.js +17 -20
  43. package/components/digi-form-fieldset.d.ts +1 -1
  44. package/components/digi-form-fieldset.js +1 -1
  45. package/components/digi-form-file-upload.d.ts +1 -1
  46. package/components/digi-form-file-upload.js +20 -20
  47. package/components/digi-form-filter.d.ts +1 -1
  48. package/components/digi-form-filter.js +9 -9
  49. package/components/digi-form-input-search.d.ts +1 -1
  50. package/components/digi-form-input-search.js +11 -11
  51. package/components/digi-form-input.d.ts +1 -1
  52. package/components/digi-form-input.js +1 -1
  53. package/components/digi-form-label.d.ts +1 -1
  54. package/components/digi-form-label.js +1 -1
  55. package/components/digi-form-radiobutton.d.ts +1 -1
  56. package/components/digi-form-radiobutton.js +1 -1
  57. package/components/digi-form-radiogroup.d.ts +1 -1
  58. package/components/digi-form-radiogroup.js +5 -36
  59. package/components/digi-form-receipt.d.ts +1 -1
  60. package/components/digi-form-receipt.js +5 -8
  61. package/components/digi-form-select-filter.d.ts +1 -1
  62. package/components/digi-form-select-filter.js +19 -22
  63. package/components/digi-form-select.d.ts +1 -1
  64. package/components/digi-form-select.js +1 -1
  65. package/components/digi-form-textarea.d.ts +1 -1
  66. package/components/digi-form-textarea.js +11 -14
  67. package/components/digi-form-validation-message.d.ts +1 -1
  68. package/components/digi-form-validation-message.js +1 -1
  69. package/components/digi-header-avatar.d.ts +1 -1
  70. package/components/digi-header-avatar.js +4 -4
  71. package/components/digi-header-navigation-item.d.ts +1 -1
  72. package/components/digi-header-navigation-item.js +2 -2
  73. package/components/digi-header-navigation.d.ts +1 -1
  74. package/components/digi-header-navigation.js +13 -15
  75. package/components/digi-header-notification.d.ts +1 -1
  76. package/components/digi-header-notification.js +3 -3
  77. package/components/digi-header.d.ts +1 -1
  78. package/components/digi-header.js +74 -33
  79. package/components/digi-icon-accessibility-deaf.d.ts +1 -1
  80. package/components/digi-icon-accessibility-deaf.js +3 -3
  81. package/components/digi-icon-accessibility-universal.d.ts +1 -1
  82. package/components/digi-icon-accessibility-universal.js +3 -3
  83. package/components/digi-icon-apple.d.ts +1 -1
  84. package/components/digi-icon-apple.js +3 -3
  85. package/components/digi-icon-archive-outline.d.ts +1 -1
  86. package/components/digi-icon-archive-outline.js +3 -3
  87. package/components/digi-icon-archive.d.ts +1 -1
  88. package/components/digi-icon-archive.js +3 -3
  89. package/components/digi-icon-arrow-back.d.ts +1 -1
  90. package/components/digi-icon-arrow-back.js +3 -3
  91. package/components/digi-icon-arrow-down.d.ts +1 -1
  92. package/components/digi-icon-arrow-down.js +3 -3
  93. package/components/digi-icon-arrow-left.d.ts +1 -1
  94. package/components/digi-icon-arrow-left.js +3 -3
  95. package/components/digi-icon-arrow-right.d.ts +1 -1
  96. package/components/digi-icon-arrow-right.js +1 -1
  97. package/components/digi-icon-arrow-sign-in.d.ts +1 -1
  98. package/components/digi-icon-arrow-sign-in.js +3 -3
  99. package/components/digi-icon-arrow-sign-out.d.ts +1 -1
  100. package/components/digi-icon-arrow-sign-out.js +3 -3
  101. package/components/digi-icon-arrow-up.d.ts +1 -1
  102. package/components/digi-icon-arrow-up.js +3 -3
  103. package/components/digi-icon-at.d.ts +1 -1
  104. package/components/digi-icon-at.js +3 -3
  105. package/components/digi-icon-bars.d.ts +1 -1
  106. package/components/digi-icon-bars.js +1 -1
  107. package/components/digi-icon-bell-filled.d.ts +1 -1
  108. package/components/digi-icon-bell-filled.js +3 -3
  109. package/components/digi-icon-bell.d.ts +1 -1
  110. package/components/digi-icon-bell.js +3 -3
  111. package/components/digi-icon-book.d.ts +1 -1
  112. package/components/digi-icon-book.js +3 -3
  113. package/components/digi-icon-bookmark-outline.d.ts +1 -1
  114. package/components/digi-icon-bookmark-outline.js +3 -3
  115. package/components/digi-icon-bookmark-solid.d.ts +1 -1
  116. package/components/digi-icon-bookmark-solid.js +3 -3
  117. package/components/digi-icon-bubble-ellipsis.d.ts +1 -1
  118. package/components/digi-icon-bubble-ellipsis.js +3 -3
  119. package/components/digi-icon-bubble.d.ts +1 -1
  120. package/components/digi-icon-bubble.js +3 -3
  121. package/components/digi-icon-building-outline.d.ts +1 -1
  122. package/components/digi-icon-building-outline.js +3 -3
  123. package/components/digi-icon-building-solid.d.ts +1 -1
  124. package/components/digi-icon-building-solid.js +3 -3
  125. package/components/digi-icon-bullseye.d.ts +1 -1
  126. package/components/digi-icon-bullseye.js +3 -3
  127. package/components/digi-icon-calculator-solid.d.ts +1 -1
  128. package/components/digi-icon-calculator-solid.js +3 -3
  129. package/components/digi-icon-calendar-alt-alert.d.ts +1 -1
  130. package/components/digi-icon-calendar-alt-alert.js +3 -3
  131. package/components/digi-icon-calendar-alt.d.ts +1 -1
  132. package/components/digi-icon-calendar-alt.js +1 -1
  133. package/components/digi-icon-calendar.d.ts +1 -1
  134. package/components/digi-icon-calendar.js +3 -3
  135. package/components/digi-icon-caret-circle-right.d.ts +1 -1
  136. package/components/digi-icon-caret-circle-right.js +3 -3
  137. package/components/digi-icon-caret-down.d.ts +1 -1
  138. package/components/digi-icon-caret-down.js +1 -1
  139. package/components/digi-icon-caret-left.d.ts +1 -1
  140. package/components/digi-icon-caret-left.js +3 -3
  141. package/components/digi-icon-caret-right.d.ts +1 -1
  142. package/components/digi-icon-caret-right.js +3 -3
  143. package/components/digi-icon-caret-up.d.ts +1 -1
  144. package/components/digi-icon-caret-up.js +1 -1
  145. package/components/digi-icon-chart.d.ts +1 -1
  146. package/components/digi-icon-chart.js +1 -1
  147. package/components/digi-icon-chat.d.ts +1 -1
  148. package/components/digi-icon-chat.js +3 -3
  149. package/components/digi-icon-check-circle-reg-alt.d.ts +1 -1
  150. package/components/digi-icon-check-circle-reg-alt.js +3 -3
  151. package/components/digi-icon-check-circle-solid.d.ts +1 -1
  152. package/components/digi-icon-check-circle-solid.js +1 -1
  153. package/components/digi-icon-check.d.ts +1 -1
  154. package/components/digi-icon-check.js +1 -1
  155. package/components/digi-icon-checklist.d.ts +1 -1
  156. package/components/digi-icon-checklist.js +3 -3
  157. package/components/digi-icon-chevron-down.d.ts +1 -1
  158. package/components/digi-icon-chevron-down.js +1 -1
  159. package/components/digi-icon-chevron-left.d.ts +1 -1
  160. package/components/digi-icon-chevron-left.js +1 -1
  161. package/components/digi-icon-chevron-right.d.ts +1 -1
  162. package/components/digi-icon-chevron-right.js +1 -1
  163. package/components/digi-icon-chevron-up.d.ts +1 -1
  164. package/components/digi-icon-chevron-up.js +3 -3
  165. package/components/digi-icon-clock.d.ts +1 -1
  166. package/components/digi-icon-clock.js +3 -3
  167. package/components/digi-icon-communication-play-solid.d.ts +1 -1
  168. package/components/digi-icon-communication-play-solid.js +3 -3
  169. package/components/digi-icon-compress-alt.d.ts +1 -1
  170. package/components/digi-icon-compress-alt.js +3 -3
  171. package/components/digi-icon-comunication-case.d.ts +1 -1
  172. package/components/digi-icon-comunication-case.js +3 -3
  173. package/components/digi-icon-comunication-flag.d.ts +1 -1
  174. package/components/digi-icon-comunication-flag.js +3 -3
  175. package/components/digi-icon-comunication-graduate.d.ts +1 -1
  176. package/components/digi-icon-comunication-graduate.js +3 -3
  177. package/components/digi-icon-comunication-play.d.ts +1 -1
  178. package/components/digi-icon-comunication-play.js +3 -3
  179. package/components/digi-icon-cooperation.d.ts +1 -1
  180. package/components/digi-icon-cooperation.js +3 -3
  181. package/components/digi-icon-copy.d.ts +1 -1
  182. package/components/digi-icon-copy.js +1 -1
  183. package/components/digi-icon-danger-outline.d.ts +1 -1
  184. package/components/digi-icon-danger-outline.js +3 -3
  185. package/components/digi-icon-download.d.ts +1 -1
  186. package/components/digi-icon-download.js +3 -3
  187. package/components/digi-icon-dxa.d.ts +1 -1
  188. package/components/digi-icon-dxa.js +3 -3
  189. package/components/digi-icon-edit.d.ts +1 -1
  190. package/components/digi-icon-edit.js +3 -3
  191. package/components/digi-icon-ellipsis.d.ts +1 -1
  192. package/components/digi-icon-ellipsis.js +3 -3
  193. package/components/digi-icon-envelope-filled.d.ts +1 -1
  194. package/components/digi-icon-envelope-filled.js +3 -3
  195. package/components/digi-icon-envelope.d.ts +1 -1
  196. package/components/digi-icon-envelope.js +3 -3
  197. package/components/digi-icon-exclamation-circle-filled.d.ts +1 -1
  198. package/components/digi-icon-exclamation-circle-filled.js +3 -3
  199. package/components/digi-icon-exclamation-triangle-filled.d.ts +1 -1
  200. package/components/digi-icon-exclamation-triangle-filled.js +3 -3
  201. package/components/digi-icon-exclamation-triangle-warning.d.ts +1 -1
  202. package/components/digi-icon-exclamation-triangle-warning.js +3 -3
  203. package/components/digi-icon-exclamation-triangle.d.ts +1 -1
  204. package/components/digi-icon-exclamation-triangle.js +3 -3
  205. package/components/digi-icon-expand-alt.d.ts +1 -1
  206. package/components/digi-icon-expand-alt.js +3 -3
  207. package/components/digi-icon-external-link-alt.d.ts +1 -1
  208. package/components/digi-icon-external-link-alt.js +1 -1
  209. package/components/digi-icon-eye-slash.d.ts +1 -1
  210. package/components/digi-icon-eye-slash.js +3 -3
  211. package/components/digi-icon-eye.d.ts +1 -1
  212. package/components/digi-icon-eye.js +3 -3
  213. package/components/digi-icon-facebook-square.d.ts +1 -1
  214. package/components/digi-icon-facebook-square.js +3 -3
  215. package/components/digi-icon-file-add.d.ts +1 -1
  216. package/components/digi-icon-file-add.js +2 -2
  217. package/components/digi-icon-file-document.d.ts +1 -1
  218. package/components/digi-icon-file-document.js +3 -3
  219. package/components/digi-icon-file-excel.d.ts +1 -1
  220. package/components/digi-icon-file-excel.js +3 -3
  221. package/components/digi-icon-file-export.d.ts +1 -1
  222. package/components/digi-icon-file-export.js +2 -2
  223. package/components/digi-icon-file-governing.d.ts +1 -1
  224. package/components/digi-icon-file-governing.js +3 -3
  225. package/components/digi-icon-file-pdf.d.ts +1 -1
  226. package/components/digi-icon-file-pdf.js +3 -3
  227. package/components/digi-icon-file-powerpoint.d.ts +1 -1
  228. package/components/digi-icon-file-powerpoint.js +3 -3
  229. package/components/digi-icon-file-remove.d.ts +1 -1
  230. package/components/digi-icon-file-remove.js +2 -2
  231. package/components/digi-icon-file-word.d.ts +1 -1
  232. package/components/digi-icon-file-word.js +3 -3
  233. package/components/digi-icon-film.d.ts +1 -1
  234. package/components/digi-icon-film.js +3 -3
  235. package/components/digi-icon-filter.d.ts +1 -1
  236. package/components/digi-icon-filter.js +3 -3
  237. package/components/digi-icon-folder-add.d.ts +1 -1
  238. package/components/digi-icon-folder-add.js +2 -2
  239. package/components/digi-icon-folder-directory.d.ts +1 -1
  240. package/components/digi-icon-folder-directory.js +2 -2
  241. package/components/digi-icon-folder-open.d.ts +1 -1
  242. package/components/digi-icon-folder-open.js +2 -2
  243. package/components/digi-icon-folder.d.ts +1 -1
  244. package/components/digi-icon-folder.js +2 -2
  245. package/components/digi-icon-globe-filled.d.ts +1 -1
  246. package/components/digi-icon-globe-filled.js +3 -3
  247. package/components/digi-icon-globe.d.ts +1 -1
  248. package/components/digi-icon-globe.js +3 -3
  249. package/components/digi-icon-headphones.d.ts +1 -1
  250. package/components/digi-icon-headphones.js +3 -3
  251. package/components/digi-icon-heart-solid.d.ts +1 -1
  252. package/components/digi-icon-heart-solid.js +3 -3
  253. package/components/digi-icon-heart.d.ts +1 -1
  254. package/components/digi-icon-heart.js +3 -3
  255. package/components/digi-icon-history.d.ts +1 -1
  256. package/components/digi-icon-history.js +3 -3
  257. package/components/digi-icon-home.d.ts +1 -1
  258. package/components/digi-icon-home.js +3 -3
  259. package/components/digi-icon-image.d.ts +1 -1
  260. package/components/digi-icon-image.js +3 -3
  261. package/components/digi-icon-info-circle-solid.d.ts +1 -1
  262. package/components/digi-icon-info-circle-solid.js +3 -3
  263. package/components/digi-icon-input-select-marker.d.ts +1 -1
  264. package/components/digi-icon-input-select-marker.js +1 -1
  265. package/components/digi-icon-instagram.d.ts +1 -1
  266. package/components/digi-icon-instagram.js +3 -3
  267. package/components/digi-icon-job-suggestion.d.ts +1 -1
  268. package/components/digi-icon-job-suggestion.js +3 -3
  269. package/components/digi-icon-language-outline.d.ts +1 -1
  270. package/components/digi-icon-language-outline.js +3 -3
  271. package/components/digi-icon-language.d.ts +1 -1
  272. package/components/digi-icon-language.js +3 -3
  273. package/components/digi-icon-laptop-phone.d.ts +1 -1
  274. package/components/digi-icon-laptop-phone.js +3 -3
  275. package/components/digi-icon-lattlast.d.ts +1 -1
  276. package/components/digi-icon-lattlast.js +3 -3
  277. package/components/digi-icon-licence-bus.d.ts +1 -1
  278. package/components/digi-icon-licence-bus.js +3 -3
  279. package/components/digi-icon-licence-car.d.ts +1 -1
  280. package/components/digi-icon-licence-car.js +3 -3
  281. package/components/digi-icon-licence-motorcycle.d.ts +1 -1
  282. package/components/digi-icon-licence-motorcycle.js +3 -3
  283. package/components/digi-icon-licence-truck.d.ts +1 -1
  284. package/components/digi-icon-licence-truck.js +3 -3
  285. package/components/digi-icon-lightbulb.d.ts +1 -1
  286. package/components/digi-icon-lightbulb.js +3 -3
  287. package/components/digi-icon-linkedin-in.d.ts +1 -1
  288. package/components/digi-icon-linkedin-in.js +3 -3
  289. package/components/digi-icon-list-ul.d.ts +1 -1
  290. package/components/digi-icon-list-ul.js +1 -1
  291. package/components/digi-icon-lock.d.ts +1 -1
  292. package/components/digi-icon-lock.js +3 -3
  293. package/components/digi-icon-marker-filled.d.ts +1 -1
  294. package/components/digi-icon-marker-filled.js +3 -3
  295. package/components/digi-icon-marker.d.ts +1 -1
  296. package/components/digi-icon-marker.js +3 -3
  297. package/components/digi-icon-media-course.d.ts +1 -1
  298. package/components/digi-icon-media-course.js +3 -3
  299. package/components/digi-icon-media-podcast.d.ts +1 -1
  300. package/components/digi-icon-media-podcast.js +3 -3
  301. package/components/digi-icon-microphone-off.d.ts +1 -1
  302. package/components/digi-icon-microphone-off.js +3 -3
  303. package/components/digi-icon-microphone.d.ts +1 -1
  304. package/components/digi-icon-microphone.js +3 -3
  305. package/components/digi-icon-minus.d.ts +1 -1
  306. package/components/digi-icon-minus.js +1 -1
  307. package/components/digi-icon-move.d.ts +1 -1
  308. package/components/digi-icon-move.js +3 -3
  309. package/components/digi-icon-news.d.ts +1 -1
  310. package/components/digi-icon-news.js +1 -1
  311. package/components/digi-icon-notification-error.d.ts +1 -1
  312. package/components/digi-icon-notification-error.js +1 -1
  313. package/components/digi-icon-notification-info.d.ts +1 -1
  314. package/components/digi-icon-notification-info.js +1 -1
  315. package/components/digi-icon-notification-succes.d.ts +1 -1
  316. package/components/digi-icon-notification-succes.js +1 -1
  317. package/components/digi-icon-notification-warning.d.ts +1 -1
  318. package/components/digi-icon-notification-warning.js +1 -1
  319. package/components/digi-icon-online-computervideo.d.ts +1 -1
  320. package/components/digi-icon-online-computervideo.js +1 -1
  321. package/components/digi-icon-online-interview.d.ts +1 -1
  322. package/components/digi-icon-online-interview.js +3 -3
  323. package/components/digi-icon-online-meeting.d.ts +1 -1
  324. package/components/digi-icon-online-meeting.js +3 -3
  325. package/components/digi-icon-online-task.d.ts +1 -1
  326. package/components/digi-icon-online-task.js +3 -3
  327. package/components/digi-icon-online-video.d.ts +1 -1
  328. package/components/digi-icon-online-video.js +1 -1
  329. package/components/digi-icon-open-source.d.ts +1 -1
  330. package/components/digi-icon-open-source.js +3 -3
  331. package/components/digi-icon-palette.d.ts +1 -1
  332. package/components/digi-icon-palette.js +3 -3
  333. package/components/digi-icon-paperclip.d.ts +1 -1
  334. package/components/digi-icon-paperclip.js +1 -1
  335. package/components/digi-icon-paste.d.ts +1 -1
  336. package/components/digi-icon-paste.js +2 -2
  337. package/components/digi-icon-pen.d.ts +1 -1
  338. package/components/digi-icon-pen.js +3 -3
  339. package/components/digi-icon-phone-hangup.d.ts +1 -1
  340. package/components/digi-icon-phone-hangup.js +3 -3
  341. package/components/digi-icon-phone.d.ts +1 -1
  342. package/components/digi-icon-phone.js +3 -3
  343. package/components/digi-icon-plus.d.ts +1 -1
  344. package/components/digi-icon-plus.js +1 -1
  345. package/components/digi-icon-pod.d.ts +1 -1
  346. package/components/digi-icon-pod.js +1 -1
  347. package/components/digi-icon-print.d.ts +1 -1
  348. package/components/digi-icon-print.js +3 -3
  349. package/components/digi-icon-read.d.ts +1 -1
  350. package/components/digi-icon-read.js +3 -3
  351. package/components/digi-icon-redo.d.ts +1 -1
  352. package/components/digi-icon-redo.js +3 -3
  353. package/components/digi-icon-scale.d.ts +1 -1
  354. package/components/digi-icon-scale.js +2 -2
  355. package/components/digi-icon-screensharing-off.d.ts +1 -1
  356. package/components/digi-icon-screensharing-off.js +3 -3
  357. package/components/digi-icon-screensharing.d.ts +1 -1
  358. package/components/digi-icon-screensharing.js +3 -3
  359. package/components/digi-icon-search.d.ts +1 -1
  360. package/components/digi-icon-search.js +1 -1
  361. package/components/digi-icon-send-outline.d.ts +1 -1
  362. package/components/digi-icon-send-outline.js +3 -3
  363. package/components/digi-icon-send-solid.d.ts +1 -1
  364. package/components/digi-icon-send-solid.js +3 -3
  365. package/components/digi-icon-settings.d.ts +1 -1
  366. package/components/digi-icon-settings.js +3 -3
  367. package/components/digi-icon-share-alt.d.ts +1 -1
  368. package/components/digi-icon-share-alt.js +3 -3
  369. package/components/digi-icon-share-chain.d.ts +1 -1
  370. package/components/digi-icon-share-chain.js +3 -3
  371. package/components/digi-icon-sign.d.ts +1 -1
  372. package/components/digi-icon-sign.js +3 -3
  373. package/components/digi-icon-sliders-h.d.ts +1 -1
  374. package/components/digi-icon-sliders-h.js +3 -3
  375. package/components/digi-icon-sokkandidat.d.ts +1 -1
  376. package/components/digi-icon-sokkandidat.js +3 -3
  377. package/components/digi-icon-sort-down.d.ts +1 -1
  378. package/components/digi-icon-sort-down.js +3 -3
  379. package/components/digi-icon-sort-up.d.ts +1 -1
  380. package/components/digi-icon-sort-up.js +3 -3
  381. package/components/digi-icon-sort.d.ts +1 -1
  382. package/components/digi-icon-sort.js +3 -3
  383. package/components/digi-icon-spinner.d.ts +1 -1
  384. package/components/digi-icon-spinner.js +1 -1
  385. package/components/digi-icon-star-reg.d.ts +1 -1
  386. package/components/digi-icon-star-reg.js +3 -3
  387. package/components/digi-icon-star.d.ts +1 -1
  388. package/components/digi-icon-star.js +3 -3
  389. package/components/digi-icon-suitcase-outline.d.ts +1 -1
  390. package/components/digi-icon-suitcase-outline.js +3 -3
  391. package/components/digi-icon-suitcase-solid.d.ts +1 -1
  392. package/components/digi-icon-suitcase-solid.js +3 -3
  393. package/components/digi-icon-system-assistance.d.ts +1 -1
  394. package/components/digi-icon-system-assistance.js +3 -3
  395. package/components/digi-icon-table-column.d.ts +1 -1
  396. package/components/digi-icon-table-column.js +3 -3
  397. package/components/digi-icon-table-row.d.ts +1 -1
  398. package/components/digi-icon-table-row.js +3 -3
  399. package/components/digi-icon-table.d.ts +1 -1
  400. package/components/digi-icon-table.js +1 -1
  401. package/components/digi-icon-task-done.d.ts +1 -1
  402. package/components/digi-icon-task-done.js +3 -3
  403. package/components/digi-icon-toggle-off.d.ts +1 -1
  404. package/components/digi-icon-toggle-off.js +3 -3
  405. package/components/digi-icon-toggle-on.d.ts +1 -1
  406. package/components/digi-icon-toggle-on.js +3 -3
  407. package/components/digi-icon-trash.d.ts +1 -1
  408. package/components/digi-icon-trash.js +1 -1
  409. package/components/digi-icon-twitter.d.ts +1 -1
  410. package/components/digi-icon-twitter.js +3 -3
  411. package/components/digi-icon-tyck-till.d.ts +1 -1
  412. package/components/digi-icon-tyck-till.js +3 -3
  413. package/components/digi-icon-unlock.d.ts +1 -1
  414. package/components/digi-icon-unlock.js +3 -3
  415. package/components/digi-icon-update.d.ts +1 -1
  416. package/components/digi-icon-update.js +3 -3
  417. package/components/digi-icon-upload.d.ts +1 -1
  418. package/components/digi-icon-upload.js +3 -3
  419. package/components/digi-icon-user-add.d.ts +1 -1
  420. package/components/digi-icon-user-add.js +2 -2
  421. package/components/digi-icon-user-alt.d.ts +1 -1
  422. package/components/digi-icon-user-alt.js +3 -3
  423. package/components/digi-icon-user-edit.d.ts +1 -1
  424. package/components/digi-icon-user-edit.js +2 -2
  425. package/components/digi-icon-users-solid.d.ts +1 -1
  426. package/components/digi-icon-users-solid.js +3 -3
  427. package/components/digi-icon-validation-error.d.ts +1 -1
  428. package/components/digi-icon-validation-error.js +1 -1
  429. package/components/digi-icon-validation-success.d.ts +1 -1
  430. package/components/digi-icon-validation-success.js +1 -1
  431. package/components/digi-icon-validation-warning.d.ts +1 -1
  432. package/components/digi-icon-validation-warning.js +1 -1
  433. package/components/digi-icon-videocamera-off.d.ts +1 -1
  434. package/components/digi-icon-videocamera-off.js +3 -3
  435. package/components/digi-icon-videocamera.d.ts +1 -1
  436. package/components/digi-icon-videocamera.js +3 -3
  437. package/components/digi-icon-volume.d.ts +1 -1
  438. package/components/digi-icon-volume.js +3 -3
  439. package/components/digi-icon-web-tv.d.ts +1 -1
  440. package/components/digi-icon-web-tv.js +3 -3
  441. package/components/digi-icon-webinar.d.ts +1 -1
  442. package/components/digi-icon-webinar.js +1 -1
  443. package/components/digi-icon-wifi-signal0.d.ts +1 -1
  444. package/components/digi-icon-wifi-signal0.js +3 -3
  445. package/components/digi-icon-wifi-signal1.d.ts +1 -1
  446. package/components/digi-icon-wifi-signal1.js +3 -3
  447. package/components/digi-icon-wifi-signal2.d.ts +1 -1
  448. package/components/digi-icon-wifi-signal2.js +3 -3
  449. package/components/digi-icon-wifi-signal3.d.ts +1 -1
  450. package/components/digi-icon-wifi-signal3.js +3 -3
  451. package/components/digi-icon-window.d.ts +1 -1
  452. package/components/digi-icon-window.js +3 -3
  453. package/components/digi-icon-x-button-outline.d.ts +1 -1
  454. package/components/digi-icon-x-button-outline.js +1 -1
  455. package/components/digi-icon-x-button.d.ts +1 -1
  456. package/components/digi-icon-x-button.js +3 -3
  457. package/components/digi-icon-x.d.ts +1 -1
  458. package/components/digi-icon-x.js +1 -1
  459. package/components/digi-icon-youtube.d.ts +1 -1
  460. package/components/digi-icon-youtube.js +3 -3
  461. package/components/digi-info-card-multi-container.d.ts +1 -1
  462. package/components/digi-info-card-multi-container.js +3 -3
  463. package/components/digi-info-card-multi.d.ts +1 -1
  464. package/components/digi-info-card-multi.js +12 -12
  465. package/components/digi-info-card.d.ts +1 -1
  466. package/components/digi-info-card.js +6 -6
  467. package/components/digi-layout-block.d.ts +1 -1
  468. package/components/digi-layout-block.js +1 -1
  469. package/components/digi-layout-columns.d.ts +1 -1
  470. package/components/digi-layout-columns.js +1 -1
  471. package/components/digi-layout-container.d.ts +1 -1
  472. package/components/digi-layout-container.js +1 -1
  473. package/components/digi-link-button.d.ts +1 -1
  474. package/components/digi-link-button.js +3 -3
  475. package/components/digi-link-external.d.ts +1 -1
  476. package/components/digi-link-external.js +1 -1
  477. package/components/digi-link-internal.d.ts +1 -1
  478. package/components/digi-link-internal.js +1 -1
  479. package/components/digi-link.d.ts +1 -1
  480. package/components/digi-link.js +1 -1
  481. package/components/digi-list.d.ts +1 -1
  482. package/components/digi-list.js +4 -4
  483. package/components/digi-loader-skeleton.d.ts +1 -1
  484. package/components/digi-loader-skeleton.js +4 -4
  485. package/components/digi-loader-spinner.d.ts +1 -1
  486. package/components/digi-loader-spinner.js +3 -3
  487. package/components/digi-logo.d.ts +1 -1
  488. package/components/digi-logo.js +100 -1
  489. package/components/digi-media-figure.d.ts +1 -1
  490. package/components/digi-media-figure.js +2 -2
  491. package/components/digi-media-image.d.ts +1 -1
  492. package/components/digi-media-image.js +1 -1
  493. package/components/digi-navigation-breadcrumbs.d.ts +1 -1
  494. package/components/digi-navigation-breadcrumbs.js +5 -5
  495. package/components/digi-navigation-pagination.d.ts +1 -1
  496. package/components/digi-navigation-pagination.js +13 -16
  497. package/components/digi-navigation-sidebar-button.d.ts +1 -1
  498. package/components/digi-navigation-sidebar-button.js +1 -1
  499. package/components/digi-navigation-sidebar.d.ts +1 -1
  500. package/components/digi-navigation-sidebar.js +7 -7
  501. package/components/digi-navigation-vertical-menu-item.d.ts +1 -1
  502. package/components/digi-navigation-vertical-menu-item.js +9 -9
  503. package/components/digi-navigation-vertical-menu.d.ts +1 -1
  504. package/components/digi-navigation-vertical-menu.js +2 -2
  505. package/components/digi-notification-alert.d.ts +1 -1
  506. package/components/digi-notification-alert.js +1 -1
  507. package/components/digi-notification-error-page.d.ts +1 -1
  508. package/components/digi-notification-error-page.js +8 -11
  509. package/components/digi-progress-circle.d.ts +1 -1
  510. package/components/digi-progress-circle.js +11 -11
  511. package/components/digi-progress-indicator.d.ts +1 -1
  512. package/components/digi-progress-indicator.js +8 -8
  513. package/components/digi-progress-list-item.d.ts +1 -1
  514. package/components/digi-progress-list-item.js +9 -9
  515. package/components/digi-progress-list.d.ts +1 -1
  516. package/components/digi-progress-list.js +3 -3
  517. package/components/digi-progressbar.d.ts +1 -1
  518. package/components/digi-progressbar.js +4 -4
  519. package/components/digi-quote.d.ts +1 -1
  520. package/components/digi-quote.js +4 -4
  521. package/components/digi-table.d.ts +1 -1
  522. package/components/digi-table.js +2 -2
  523. package/components/digi-tablist-panel.d.ts +1 -1
  524. package/components/digi-tablist-panel.js +3 -3
  525. package/components/digi-tablist.d.ts +1 -1
  526. package/components/digi-tablist.js +9 -9
  527. package/components/digi-tag-media.d.ts +1 -1
  528. package/components/digi-tag-media.js +1 -1
  529. package/components/digi-tag.d.ts +1 -1
  530. package/components/digi-tag.js +4 -4
  531. package/components/digi-title-logo.d.ts +11 -0
  532. package/components/digi-title-logo.js +6 -0
  533. package/components/digi-tools-feedback-banner.d.ts +1 -1
  534. package/components/digi-tools-feedback-banner.js +8 -8
  535. package/components/digi-tools-feedback-rating.d.ts +1 -1
  536. package/components/digi-tools-feedback-rating.js +8 -8
  537. package/components/digi-tools-feedback.d.ts +1 -1
  538. package/components/digi-tools-feedback.js +6 -9
  539. package/components/digi-tools-theme-provider.d.ts +1 -1
  540. package/components/digi-tools-theme-provider.js +2 -2
  541. package/components/digi-typography-heading-jumbo.d.ts +1 -1
  542. package/components/digi-typography-heading-jumbo.js +2 -2
  543. package/components/digi-typography-meta.d.ts +1 -1
  544. package/components/digi-typography-meta.js +2 -2
  545. package/components/digi-typography-preamble.d.ts +1 -1
  546. package/components/digi-typography-preamble.js +2 -2
  547. package/components/digi-typography-time.d.ts +1 -1
  548. package/components/digi-typography-time.js +2 -2
  549. package/components/digi-typography.d.ts +1 -1
  550. package/components/digi-typography.js +1 -1
  551. package/components/digi-util-breakpoint-observer.d.ts +1 -1
  552. package/components/digi-util-breakpoint-observer.js +1 -1
  553. package/components/digi-util-detect-click-outside.d.ts +1 -1
  554. package/components/digi-util-detect-click-outside.js +2 -2
  555. package/components/digi-util-detect-focus-outside.d.ts +1 -1
  556. package/components/digi-util-detect-focus-outside.js +2 -2
  557. package/components/digi-util-intersection-observer.d.ts +1 -1
  558. package/components/digi-util-intersection-observer.js +1 -1
  559. package/components/digi-util-keydown-handler.d.ts +1 -1
  560. package/components/digi-util-keydown-handler.js +1 -1
  561. package/components/digi-util-keyup-handler.d.ts +1 -1
  562. package/components/digi-util-keyup-handler.js +2 -2
  563. package/components/digi-util-mutation-observer.d.ts +1 -1
  564. package/components/digi-util-mutation-observer.js +1 -1
  565. package/components/digi-util-resize-observer.d.ts +1 -1
  566. package/components/digi-util-resize-observer.js +1 -1
  567. package/components/index.d.ts +285 -283
  568. package/components/index.js +3 -5
  569. package/components/{p-6bc29b39.js → p-042282c9.js} +3 -3
  570. package/components/{p-cc72fc59.js → p-0e6bb1ce.js} +3 -3
  571. package/components/{p-6bc2f864.js → p-127b0f7a.js} +3 -3
  572. package/components/{p-71172b7c.js → p-1440ff46.js} +3 -3
  573. package/components/{p-6e5c73ee.js → p-15bbce60.js} +2 -2
  574. package/components/{p-30fb34b5.js → p-291680dc.js} +3 -3
  575. package/components/{p-522414d8.js → p-299871dc.js} +3 -3
  576. package/components/{p-2d6d5d42.js → p-2a0c0c78.js} +3 -3
  577. package/components/{p-5010c1e6.js → p-2bc16106.js} +5 -8
  578. package/components/{p-13b75296.js → p-2d8b68de.js} +3 -3
  579. package/components/{p-a223734b.js → p-2f619b66.js} +1 -1
  580. package/components/{p-a3fc7580.js → p-300490fb.js} +3 -3
  581. package/components/{p-be3cec41.js → p-364d38fc.js} +3 -3
  582. package/components/{p-95690ca9.js → p-372e42fa.js} +3 -3
  583. package/components/{p-71cbe0c4.js → p-39021139.js} +3 -3
  584. package/components/{p-75659814.js → p-3cbdeea5.js} +2 -2
  585. package/components/{p-6c504a38.js → p-3ea21529.js} +3 -3
  586. package/components/{p-f1059907.js → p-42c4e18d.js} +2 -2
  587. package/components/{p-de18b1d6.js → p-4437e1a8.js} +2 -2
  588. package/components/{p-dde470f1.js → p-4458129b.js} +3 -3
  589. package/components/{p-f3e636c8.js → p-4caaef7a.js} +3 -3
  590. package/components/{p-ea2c5384.js → p-5a256d98.js} +20 -1
  591. package/components/{p-ee1fd6ad.js → p-5c935094.js} +11 -14
  592. package/components/{p-329e6541.js → p-6013f971.js} +3 -3
  593. package/components/{p-c17548a3.js → p-60394bdb.js} +3 -3
  594. package/components/{p-796665d9.js → p-61fe9d78.js} +3 -3
  595. package/components/{p-1e698eb3.js → p-64a9f915.js} +3 -3
  596. package/components/{p-93713d0c.js → p-6a652c1c.js} +3 -3
  597. package/components/{p-c28459e5.js → p-6b275dc1.js} +3 -3
  598. package/components/{p-bd19f8cd.js → p-6c7ff092.js} +3 -3
  599. package/components/{p-98765f91.js → p-71bad47e.js} +2 -2
  600. package/components/{p-e3961597.js → p-73c973fc.js} +11 -14
  601. package/components/{p-b681f6d7.js → p-7492d61e.js} +3 -3
  602. package/components/{p-c3f7a643.js → p-764c106c.js} +2 -2
  603. package/components/{p-611a745a.js → p-82085ee1.js} +4 -4
  604. package/components/{p-de5a26e5.js → p-82463cc2.js} +3 -3
  605. package/components/{p-4e3fdb06.js → p-8a2e80d2.js} +2 -2
  606. package/components/p-95dc2a66.js +152 -0
  607. package/components/{p-0dd35954.js → p-965664d4.js} +62 -73
  608. package/components/{p-7b43a6b7.js → p-96a4c4dc.js} +3 -3
  609. package/components/{p-2839514b.js → p-9bcf4599.js} +3 -3
  610. package/components/{p-8eb92ef0.js → p-9f12ac0c.js} +9 -9
  611. package/components/{p-e5abfc2d.js → p-a53686b3.js} +4 -1
  612. package/components/{p-d96a2a60.js → p-a90980f7.js} +3 -3
  613. package/components/{p-05a97800.js → p-ab1d6ae3.js} +12 -12
  614. package/components/{p-49a67d97.js → p-ad94e4f3.js} +5 -5
  615. package/components/{p-a1607b17.js → p-aed6db71.js} +3 -3
  616. package/components/{p-b54d76b7.js → p-b08505a8.js} +3 -3
  617. package/components/{p-24b1f799.js → p-b5523600.js} +3 -3
  618. package/components/{p-d6503492.js → p-b5b891f2.js} +4 -4
  619. package/components/{p-65c2673b.js → p-ba757bc9.js} +4 -4
  620. package/components/{p-0b2715fc.js → p-bbaf1285.js} +3 -3
  621. package/components/{p-40b0ebf4.js → p-c495f54e.js} +3 -3
  622. package/components/{p-9839cf46.js → p-cf527784.js} +3 -3
  623. package/components/{p-74689bb5.js → p-cfa81e91.js} +4 -33
  624. package/components/{p-11b08081.js → p-d14fe54d.js} +3 -3
  625. package/components/{p-7c894f75.js → p-d18dccc2.js} +3 -3
  626. package/components/{p-4ca3dd51.js → p-d309b91a.js} +3 -3
  627. package/components/{p-d07c5d0e.js → p-db0d140d.js} +1 -1
  628. package/components/{p-4a9363d9.js → p-e8fc33ed.js} +1 -1
  629. package/components/{p-7575d15f.js → p-f147733f.js} +3 -3
  630. package/components/{p-e795bd84.js → p-f516f6d6.js} +3 -3
  631. package/components/{p-009ccd8f.js → p-f5e13d2e.js} +2 -2
  632. package/components/{p-cf25df6f.js → p-f7fd3e36.js} +2 -2
  633. package/components/{p-b14bdfcc.js → p-f9e6f45e.js} +3 -3
  634. package/components/{p-aab9351c.js → p-fccc9322.js} +4 -4
  635. package/custom-elements.json +39 -34
  636. package/dist/cjs/digi-arbetsformedlingen.cjs.js +2 -2
  637. package/dist/cjs/digi-badge-notification.cjs.entry.js +1 -1
  638. package/dist/cjs/digi-badge-status.cjs.entry.js +1 -1
  639. package/dist/cjs/digi-bar-chart.cjs.entry.js +2 -2
  640. package/dist/cjs/digi-button_24.cjs.entry.js +1540 -0
  641. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +2496 -0
  642. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +51 -50
  643. package/dist/cjs/digi-calendar_2.cjs.entry.js +469 -0
  644. package/dist/cjs/digi-chart-line.cjs.entry.js +2 -2
  645. package/dist/cjs/digi-code-block_3.cjs.entry.js +13 -14
  646. package/dist/cjs/digi-code-example.cjs.entry.js +6 -6
  647. package/dist/cjs/digi-code.cjs.entry.js +2 -2
  648. package/dist/cjs/digi-context-menu.cjs.entry.js +4 -4
  649. package/dist/cjs/digi-dialog.cjs.entry.js +12 -11
  650. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +2 -2
  651. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +5 -5
  652. package/dist/cjs/digi-expandable-faq.cjs.entry.js +3 -3
  653. package/dist/cjs/digi-footer-card.cjs.entry.js +2 -2
  654. package/dist/cjs/digi-footer.cjs.entry.js +11 -10
  655. package/dist/cjs/digi-form-category-filter.cjs.entry.js +3 -3
  656. package/dist/cjs/digi-form-checkbox.cjs.entry.js +3 -3
  657. package/dist/cjs/digi-form-error-list.cjs.entry.js +12 -11
  658. package/dist/cjs/digi-form-file-upload.cjs.entry.js +17 -16
  659. package/dist/cjs/digi-form-filter.cjs.entry.js +6 -6
  660. package/dist/cjs/digi-form-input-search.cjs.entry.js +10 -9
  661. package/dist/cjs/digi-form-input.cjs.entry.js +177 -0
  662. package/dist/cjs/digi-form-label_5.cjs.entry.js +175 -0
  663. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +3 -7
  664. package/dist/cjs/digi-form-receipt.cjs.entry.js +10 -9
  665. package/dist/cjs/digi-form-select-filter.cjs.entry.js +16 -15
  666. package/dist/cjs/digi-form-select_2.cjs.entry.js +176 -0
  667. package/dist/cjs/digi-form-textarea.cjs.entry.js +133 -0
  668. package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +3 -3
  669. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +3 -3
  670. package/dist/cjs/digi-icon-apple.cjs.entry.js +3 -3
  671. package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +3 -3
  672. package/dist/cjs/digi-icon-archive.cjs.entry.js +3 -3
  673. package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +3 -3
  674. package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +3 -3
  675. package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +3 -3
  676. package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +3 -3
  677. package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +3 -3
  678. package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +3 -3
  679. package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +3 -3
  680. package/dist/cjs/digi-icon-at.cjs.entry.js +3 -3
  681. package/dist/cjs/digi-icon-bell.cjs.entry.js +3 -3
  682. package/dist/cjs/digi-icon-book.cjs.entry.js +3 -3
  683. package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +3 -3
  684. package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +3 -3
  685. package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +3 -3
  686. package/dist/cjs/digi-icon-bubble.cjs.entry.js +3 -3
  687. package/dist/cjs/digi-icon-building-outline.cjs.entry.js +3 -3
  688. package/dist/cjs/digi-icon-building-solid.cjs.entry.js +3 -3
  689. package/dist/cjs/digi-icon-bullseye.cjs.entry.js +3 -3
  690. package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +3 -3
  691. package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +3 -3
  692. package/dist/cjs/digi-icon-calendar.cjs.entry.js +3 -3
  693. package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +3 -3
  694. package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +5 -5
  695. package/dist/cjs/digi-icon-caret-left.cjs.entry.js +3 -3
  696. package/dist/cjs/digi-icon-caret-right.cjs.entry.js +3 -3
  697. package/dist/cjs/digi-icon-chart_2.cjs.entry.js +5 -5
  698. package/dist/cjs/digi-icon-chat.cjs.entry.js +3 -3
  699. package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +3 -3
  700. package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +9 -9
  701. package/dist/cjs/digi-icon-check.cjs.entry.js +3 -3
  702. package/dist/cjs/digi-icon-checklist.cjs.entry.js +3 -3
  703. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +3 -3
  704. package/dist/cjs/digi-icon-chevron-left.cjs.entry.js +30 -0
  705. package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +30 -0
  706. package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +3 -3
  707. package/dist/cjs/digi-icon-clock.cjs.entry.js +3 -3
  708. package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +3 -3
  709. package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +3 -3
  710. package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +3 -3
  711. package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +3 -3
  712. package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +3 -3
  713. package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +3 -3
  714. package/dist/cjs/digi-icon-cooperation.cjs.entry.js +3 -3
  715. package/dist/cjs/digi-icon-copy.cjs.entry.js +3 -3
  716. package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +3 -3
  717. package/dist/cjs/digi-icon-download.cjs.entry.js +3 -3
  718. package/dist/cjs/digi-icon-dxa.cjs.entry.js +3 -3
  719. package/dist/cjs/digi-icon-edit.cjs.entry.js +3 -3
  720. package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +3 -3
  721. package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +3 -3
  722. package/dist/cjs/digi-icon-envelope.cjs.entry.js +3 -3
  723. package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +3 -3
  724. package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +3 -3
  725. package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +3 -3
  726. package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +3 -3
  727. package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +3 -3
  728. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +4 -4
  729. package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +3 -3
  730. package/dist/cjs/digi-icon-eye.cjs.entry.js +3 -3
  731. package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +3 -3
  732. package/dist/cjs/digi-icon-file-add.cjs.entry.js +2 -2
  733. package/dist/cjs/digi-icon-file-document.cjs.entry.js +3 -3
  734. package/dist/cjs/digi-icon-file-excel.cjs.entry.js +3 -3
  735. package/dist/cjs/digi-icon-file-export.cjs.entry.js +2 -2
  736. package/dist/cjs/digi-icon-file-governing.cjs.entry.js +3 -3
  737. package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +3 -3
  738. package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +3 -3
  739. package/dist/cjs/digi-icon-file-remove.cjs.entry.js +2 -2
  740. package/dist/cjs/digi-icon-file-word.cjs.entry.js +3 -3
  741. package/dist/cjs/digi-icon-film.cjs.entry.js +3 -3
  742. package/dist/cjs/digi-icon-filter.cjs.entry.js +3 -3
  743. package/dist/cjs/digi-icon-folder-add.cjs.entry.js +2 -2
  744. package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +2 -2
  745. package/dist/cjs/digi-icon-folder-open.cjs.entry.js +2 -2
  746. package/dist/cjs/digi-icon-folder.cjs.entry.js +2 -2
  747. package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +3 -3
  748. package/dist/cjs/digi-icon-globe.cjs.entry.js +3 -3
  749. package/dist/cjs/digi-icon-headphones.cjs.entry.js +3 -3
  750. package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +3 -3
  751. package/dist/cjs/digi-icon-heart.cjs.entry.js +3 -3
  752. package/dist/cjs/digi-icon-history.cjs.entry.js +3 -3
  753. package/dist/cjs/digi-icon-home.cjs.entry.js +3 -3
  754. package/dist/cjs/digi-icon-image.cjs.entry.js +3 -3
  755. package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +3 -3
  756. package/dist/cjs/digi-icon-instagram.cjs.entry.js +3 -3
  757. package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +3 -3
  758. package/dist/cjs/digi-icon-language-outline.cjs.entry.js +3 -3
  759. package/dist/cjs/digi-icon-language.cjs.entry.js +3 -3
  760. package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +3 -3
  761. package/dist/cjs/digi-icon-lattlast.cjs.entry.js +3 -3
  762. package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +3 -3
  763. package/dist/cjs/digi-icon-licence-car.cjs.entry.js +3 -3
  764. package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +3 -3
  765. package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +3 -3
  766. package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +3 -3
  767. package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +3 -3
  768. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +13 -13
  769. package/dist/cjs/digi-icon-lock.cjs.entry.js +3 -3
  770. package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +3 -3
  771. package/dist/cjs/digi-icon-marker.cjs.entry.js +3 -3
  772. package/dist/cjs/digi-icon-media-course.cjs.entry.js +3 -3
  773. package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +3 -3
  774. package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +3 -3
  775. package/dist/cjs/digi-icon-microphone.cjs.entry.js +3 -3
  776. package/dist/cjs/digi-icon-move.cjs.entry.js +3 -3
  777. package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +9 -9
  778. package/dist/cjs/digi-icon-online-interview.cjs.entry.js +3 -3
  779. package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +3 -3
  780. package/dist/cjs/digi-icon-online-task.cjs.entry.js +3 -3
  781. package/dist/cjs/digi-icon-open-source.cjs.entry.js +3 -3
  782. package/dist/cjs/digi-icon-palette.cjs.entry.js +3 -3
  783. package/dist/cjs/digi-icon-paste.cjs.entry.js +2 -2
  784. package/dist/cjs/digi-icon-pen.cjs.entry.js +3 -3
  785. package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +3 -3
  786. package/dist/cjs/digi-icon-phone.cjs.entry.js +3 -3
  787. package/dist/cjs/digi-icon-print.cjs.entry.js +3 -3
  788. package/dist/cjs/digi-icon-read.cjs.entry.js +3 -3
  789. package/dist/cjs/digi-icon-redo.cjs.entry.js +3 -3
  790. package/dist/cjs/digi-icon-scale.cjs.entry.js +2 -2
  791. package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +3 -3
  792. package/dist/cjs/digi-icon-screensharing.cjs.entry.js +3 -3
  793. package/dist/cjs/digi-icon-search.cjs.entry.js +3 -3
  794. package/dist/cjs/digi-icon-send-outline.cjs.entry.js +3 -3
  795. package/dist/cjs/digi-icon-send-solid.cjs.entry.js +3 -3
  796. package/dist/cjs/digi-icon-settings.cjs.entry.js +3 -3
  797. package/dist/cjs/digi-icon-share-alt.cjs.entry.js +3 -3
  798. package/dist/cjs/digi-icon-share-chain.cjs.entry.js +3 -3
  799. package/dist/cjs/digi-icon-sign.cjs.entry.js +3 -3
  800. package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +3 -3
  801. package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +3 -3
  802. package/dist/cjs/digi-icon-sort-down.cjs.entry.js +3 -3
  803. package/dist/cjs/digi-icon-sort-up.cjs.entry.js +3 -3
  804. package/dist/cjs/digi-icon-sort.cjs.entry.js +3 -3
  805. package/dist/cjs/digi-icon-spinner.cjs.entry.js +3 -3
  806. package/dist/cjs/digi-icon-star-reg.cjs.entry.js +3 -3
  807. package/dist/cjs/digi-icon-star.cjs.entry.js +3 -3
  808. package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +3 -3
  809. package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +3 -3
  810. package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +3 -3
  811. package/dist/cjs/digi-icon-table-column.cjs.entry.js +3 -3
  812. package/dist/cjs/digi-icon-table-row.cjs.entry.js +3 -3
  813. package/dist/cjs/digi-icon-task-done.cjs.entry.js +3 -3
  814. package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +3 -3
  815. package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +3 -3
  816. package/dist/cjs/digi-icon-twitter.cjs.entry.js +3 -3
  817. package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +3 -3
  818. package/dist/cjs/digi-icon-unlock.cjs.entry.js +3 -3
  819. package/dist/cjs/digi-icon-update.cjs.entry.js +3 -3
  820. package/dist/cjs/digi-icon-upload.cjs.entry.js +3 -3
  821. package/dist/cjs/digi-icon-user-add.cjs.entry.js +2 -2
  822. package/dist/cjs/digi-icon-user-alt.cjs.entry.js +3 -3
  823. package/dist/cjs/digi-icon-user-edit.cjs.entry.js +2 -2
  824. package/dist/cjs/digi-icon-users-solid.cjs.entry.js +3 -3
  825. package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +3 -3
  826. package/dist/cjs/digi-icon-videocamera.cjs.entry.js +3 -3
  827. package/dist/cjs/digi-icon-volume.cjs.entry.js +3 -3
  828. package/dist/cjs/digi-icon-web-tv.cjs.entry.js +3 -3
  829. package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +3 -3
  830. package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +3 -3
  831. package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +3 -3
  832. package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +3 -3
  833. package/dist/cjs/digi-icon-window.cjs.entry.js +3 -3
  834. package/dist/cjs/digi-icon-x-button.cjs.entry.js +3 -3
  835. package/dist/cjs/digi-icon-youtube.cjs.entry.js +3 -3
  836. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +2 -2
  837. package/dist/cjs/digi-info-card-multi.cjs.entry.js +2 -2
  838. package/dist/cjs/digi-info-card.cjs.entry.js +2 -2
  839. package/dist/cjs/digi-layout-columns.cjs.entry.js +2 -2
  840. package/dist/cjs/digi-link-button.cjs.entry.js +2 -2
  841. package/dist/cjs/digi-link-internal.cjs.entry.js +2 -2
  842. package/dist/cjs/digi-link.cjs.entry.js +2 -2
  843. package/dist/cjs/digi-list.cjs.entry.js +2 -2
  844. package/dist/cjs/digi-loader-skeleton.cjs.entry.js +4 -4
  845. package/dist/cjs/digi-loader-spinner.cjs.entry.js +2 -2
  846. package/dist/cjs/digi-logo.cjs.entry.js +69 -0
  847. package/dist/cjs/digi-media-figure.cjs.entry.js +2 -2
  848. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +4 -4
  849. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +15 -14
  850. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +3 -3
  851. package/dist/cjs/digi-notification-alert.cjs.entry.js +11 -10
  852. package/dist/cjs/digi-notification-error-page.cjs.entry.js +12 -11
  853. package/dist/cjs/digi-progress-circle.cjs.entry.js +9 -9
  854. package/dist/cjs/digi-progress-indicator.cjs.entry.js +4 -4
  855. package/dist/cjs/digi-progress-list-item.cjs.entry.js +6 -6
  856. package/dist/cjs/digi-progress-list.cjs.entry.js +2 -2
  857. package/dist/cjs/digi-progressbar.cjs.entry.js +3 -3
  858. package/dist/cjs/digi-quote.cjs.entry.js +2 -2
  859. package/dist/cjs/digi-table.cjs.entry.js +2 -2
  860. package/dist/cjs/digi-tablist-panel.cjs.entry.js +3 -3
  861. package/dist/cjs/digi-tablist.cjs.entry.js +6 -6
  862. package/dist/cjs/digi-tag-media.cjs.entry.js +3 -3
  863. package/dist/cjs/digi-tag.cjs.entry.js +2 -2
  864. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +2 -2
  865. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +2 -2
  866. package/dist/cjs/digi-tools-feedback.cjs.entry.js +10 -9
  867. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +2 -2
  868. package/dist/cjs/digi-typography-meta.cjs.entry.js +2 -2
  869. package/dist/cjs/digi-typography-time.cjs.entry.js +2 -2
  870. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +2 -2
  871. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +2 -2
  872. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +2 -2
  873. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
  874. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +2 -2
  875. package/dist/cjs/{form-validation-message-variation.enum-c5ec3e2d.js → form-file-upload-variation.enum-634cfae8.js} +0 -7
  876. package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +15 -0
  877. package/dist/cjs/{form-input-type.enum-1fb2180a.js → form-input-type.enum-9c8ee12a.js} +0 -14
  878. package/dist/cjs/form-input-variation.enum-c750520c.js +29 -0
  879. package/dist/cjs/form-select-variation.enum-528c1bf0.js +16 -0
  880. package/dist/cjs/form-textarea-variation.enum-9c90d40f.js +17 -0
  881. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +8 -0
  882. package/dist/cjs/{index-81fc5a97.js → index-7a477838.js} +38 -59
  883. package/dist/cjs/{index-acb7b350.js → index-ac8e01b4.js} +19 -189
  884. package/dist/cjs/index-cad91a90.js +66 -0
  885. package/dist/cjs/index-e8333bcc.js +174 -0
  886. package/dist/cjs/index.cjs.js +105 -110
  887. package/dist/cjs/loader.cjs.js +2 -2
  888. package/dist/cjs/{typography-variation.enum-c6bb12f2.js → typography-variation.enum-9f56fd50.js} +55 -67
  889. package/dist/collection/collection-manifest.json +1 -0
  890. package/dist/collection/components/_calendar/calendar/calendar.css +0 -3
  891. package/dist/collection/components/_calendar/calendar/calendar.js +79 -67
  892. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +16 -19
  893. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +93 -207
  894. package/dist/collection/components/_calendar/week-view/calendar-week-view.js +4 -4
  895. package/dist/collection/components/_chart/bar-chart/bar-chart.js +1 -1
  896. package/dist/collection/components/_chart/chart-line/chart-line.js +1 -1
  897. package/dist/collection/components/_code/code/code.js +1 -1
  898. package/dist/collection/components/_code/code-block/code-block.js +1 -1
  899. package/dist/collection/components/_code/code-example/code-example.css +0 -1
  900. package/dist/collection/components/_code/code-example/code-example.js +4 -4
  901. package/dist/collection/components/_dialog/dialog/dialog.js +3 -3
  902. package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +1 -1
  903. package/dist/collection/components/_expandable/expandable-faq/expandable-faq.js +2 -2
  904. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +4 -4
  905. package/dist/collection/components/_footer/footer/footer.css +17 -0
  906. package/dist/collection/components/_footer/footer/footer.js +1 -1
  907. package/dist/collection/components/_footer/footer-card/footer-card.js +1 -1
  908. package/dist/collection/components/_form/form-category-filter/form-category-filter.js +2 -2
  909. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
  910. package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
  911. package/dist/collection/components/_form/form-fieldset/form-fieldset.js +5 -59
  912. package/dist/collection/components/_form/form-file-upload/form-file-upload.js +8 -8
  913. package/dist/collection/components/_form/form-filter/form-filter.js +5 -5
  914. package/dist/collection/components/_form/form-input/form-input.js +6 -9
  915. package/dist/collection/components/_form/form-input-search/form-input-search.js +2 -2
  916. package/dist/collection/components/_form/form-label/form-label.js +1 -1
  917. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
  918. package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +2 -80
  919. package/dist/collection/components/_form/form-receipt/form-receipt.js +1 -1
  920. package/dist/collection/components/_form/form-select/form-select.js +4 -4
  921. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -7
  922. package/dist/collection/components/_form/form-textarea/form-textarea.js +6 -9
  923. package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
  924. package/dist/collection/components/_header/header/header.css +37 -28
  925. package/dist/collection/components/_header/header/header.js +70 -18
  926. package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
  927. package/dist/collection/components/_header/header-navigation/header-navigation.css +10 -0
  928. package/dist/collection/components/_header/header-navigation/header-navigation.js +5 -4
  929. package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
  930. package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
  931. package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
  932. package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
  933. package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
  934. package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
  935. package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
  936. package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
  937. package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
  938. package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
  939. package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
  940. package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
  941. package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
  942. package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
  943. package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
  944. package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
  945. package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
  946. package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
  947. package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
  948. package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
  949. package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
  950. package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
  951. package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
  952. package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
  953. package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
  954. package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
  955. package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
  956. package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
  957. package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
  958. package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
  959. package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
  960. package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
  961. package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
  962. package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
  963. package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
  964. package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
  965. package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
  966. package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
  967. package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
  968. package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
  969. package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
  970. package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
  971. package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
  972. package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
  973. package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
  974. package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
  975. package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
  976. package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
  977. package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
  978. package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
  979. package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
  980. package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
  981. package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
  982. package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
  983. package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
  984. package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
  985. package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
  986. package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
  987. package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
  988. package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
  989. package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
  990. package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
  991. package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
  992. package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
  993. package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
  994. package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
  995. package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
  996. package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
  997. package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
  998. package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
  999. package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
  1000. package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
  1001. package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
  1002. package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
  1003. package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
  1004. package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
  1005. package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
  1006. package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
  1007. package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
  1008. package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
  1009. package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
  1010. package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
  1011. package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
  1012. package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
  1013. package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
  1014. package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
  1015. package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
  1016. package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
  1017. package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
  1018. package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
  1019. package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
  1020. package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
  1021. package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
  1022. package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
  1023. package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
  1024. package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
  1025. package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
  1026. package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
  1027. package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
  1028. package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
  1029. package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
  1030. package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
  1031. package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
  1032. package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
  1033. package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
  1034. package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
  1035. package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
  1036. package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
  1037. package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
  1038. package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
  1039. package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
  1040. package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
  1041. package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
  1042. package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
  1043. package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
  1044. package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
  1045. package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
  1046. package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
  1047. package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
  1048. package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
  1049. package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
  1050. package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
  1051. package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
  1052. package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
  1053. package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
  1054. package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
  1055. package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
  1056. package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
  1057. package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
  1058. package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
  1059. package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
  1060. package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
  1061. package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
  1062. package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
  1063. package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
  1064. package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
  1065. package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
  1066. package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
  1067. package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
  1068. package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
  1069. package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
  1070. package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
  1071. package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
  1072. package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
  1073. package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
  1074. package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
  1075. package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
  1076. package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
  1077. package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
  1078. package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
  1079. package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
  1080. package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
  1081. package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
  1082. package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
  1083. package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
  1084. package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
  1085. package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
  1086. package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
  1087. package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
  1088. package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
  1089. package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
  1090. package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
  1091. package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
  1092. package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
  1093. package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
  1094. package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
  1095. package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
  1096. package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
  1097. package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
  1098. package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
  1099. package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
  1100. package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
  1101. package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
  1102. package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
  1103. package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
  1104. package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
  1105. package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
  1106. package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
  1107. package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
  1108. package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
  1109. package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
  1110. package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
  1111. package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
  1112. package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
  1113. package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
  1114. package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
  1115. package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
  1116. package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
  1117. package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
  1118. package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
  1119. package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
  1120. package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
  1121. package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
  1122. package/dist/collection/components/_info-card/info-card/info-card.js +1 -1
  1123. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +1 -1
  1124. package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +1 -1
  1125. package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
  1126. package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
  1127. package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
  1128. package/dist/collection/components/_link/link/link.js +1 -1
  1129. package/dist/collection/components/_link/link-button/link-button.js +1 -1
  1130. package/dist/collection/components/_link/link-external/link-external.js +1 -1
  1131. package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
  1132. package/dist/collection/components/_list/list/list.js +1 -1
  1133. package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
  1134. package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
  1135. package/dist/collection/components/_logo/logo/logo.css +15 -85
  1136. package/dist/collection/components/_logo/logo/logo.js +78 -25
  1137. package/dist/collection/components/_logo/title-logo/title-logo-variation.enum.js +6 -0
  1138. package/dist/collection/components/_logo/title-logo/title-logo.css +78 -0
  1139. package/dist/collection/components/_logo/title-logo/title-logo.js +146 -0
  1140. package/dist/collection/components/_media/media-figure/media-figure.js +1 -1
  1141. package/dist/collection/components/_media/media-image/media-image.js +2 -2
  1142. package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.css +5 -5
  1143. package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
  1144. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +3 -3
  1145. package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
  1146. package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
  1147. package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
  1148. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  1149. package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
  1150. package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
  1151. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
  1152. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  1153. package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
  1154. package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
  1155. package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
  1156. package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
  1157. package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
  1158. package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
  1159. package/dist/collection/components/_quote/quote/quote.js +1 -1
  1160. package/dist/collection/components/_table/table/table.js +1 -1
  1161. package/dist/collection/components/_tag/tag/tag.js +1 -1
  1162. package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
  1163. package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
  1164. package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
  1165. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
  1166. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -1
  1167. package/dist/collection/components/_typography/typography/typography.js +1 -1
  1168. package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
  1169. package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
  1170. package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
  1171. package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
  1172. package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
  1173. package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
  1174. package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
  1175. package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
  1176. package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
  1177. package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
  1178. package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
  1179. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +2 -2
  1180. package/dist/collection/design-tokens/components/_footer.variables.scss +1 -0
  1181. package/dist/collection/design-tokens/components/_header.variables.scss +3 -3
  1182. package/dist/collection/design-tokens/components/_logo.variables.scss +5 -24
  1183. package/dist/collection/design-tokens/components/_navigation-breadcrumbs.variables.scss +2 -2
  1184. package/dist/collection/enums.js +1 -2
  1185. package/dist/collection/global/utils/applyStencilScope/applyStencilScope.util.js +13 -0
  1186. package/dist/collection/global/utils/applyStencilScope/index.js +1 -0
  1187. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +2 -2
  1188. package/dist/digi-arbetsformedlingen/design-tokens/components/_footer.variables.scss +1 -0
  1189. package/dist/digi-arbetsformedlingen/design-tokens/components/_header.variables.scss +3 -3
  1190. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +5 -24
  1191. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-breadcrumbs.variables.scss +2 -2
  1192. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  1193. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  1194. package/dist/digi-arbetsformedlingen/{p-f24018e3.entry.js → p-0052b03c.entry.js} +1 -1
  1195. package/dist/digi-arbetsformedlingen/{p-98b9f757.entry.js → p-014044a7.entry.js} +1 -1
  1196. package/dist/digi-arbetsformedlingen/{p-b1f046bc.entry.js → p-01c29a14.entry.js} +1 -1
  1197. package/dist/digi-arbetsformedlingen/{p-da86828e.entry.js → p-01df63d6.entry.js} +1 -1
  1198. package/dist/digi-arbetsformedlingen/p-01f5f243.entry.js +1 -0
  1199. package/dist/digi-arbetsformedlingen/{p-58a86b5f.entry.js → p-07513ee6.entry.js} +1 -1
  1200. package/dist/digi-arbetsformedlingen/{p-88d89422.entry.js → p-07b02fa8.entry.js} +1 -1
  1201. package/dist/digi-arbetsformedlingen/p-092d0e3e.entry.js +1 -0
  1202. package/dist/digi-arbetsformedlingen/{p-34eb2bfc.entry.js → p-099b1bac.entry.js} +1 -1
  1203. package/dist/digi-arbetsformedlingen/{p-578a5503.entry.js → p-0a904539.entry.js} +1 -1
  1204. package/dist/digi-arbetsformedlingen/{p-842f7414.entry.js → p-0ac9f348.entry.js} +1 -1
  1205. package/dist/digi-arbetsformedlingen/{p-a25dfae6.entry.js → p-0bc366fb.entry.js} +1 -1
  1206. package/dist/digi-arbetsformedlingen/{p-0674a72b.entry.js → p-0c210491.entry.js} +1 -1
  1207. package/dist/digi-arbetsformedlingen/{p-73358d64.entry.js → p-0c271457.entry.js} +1 -1
  1208. package/dist/digi-arbetsformedlingen/p-0d35dc92.entry.js +1 -0
  1209. package/dist/digi-arbetsformedlingen/{p-d4a3672b.entry.js → p-0e634a09.entry.js} +1 -1
  1210. package/dist/digi-arbetsformedlingen/{p-4899b39e.entry.js → p-11b5ab8d.entry.js} +1 -1
  1211. package/dist/digi-arbetsformedlingen/{p-1b568bfe.entry.js → p-16303afa.entry.js} +1 -1
  1212. package/dist/digi-arbetsformedlingen/p-16b8d192.entry.js +1 -0
  1213. package/dist/digi-arbetsformedlingen/{p-bfb78e9e.entry.js → p-16dd9b3f.entry.js} +1 -1
  1214. package/dist/digi-arbetsformedlingen/{p-db548ef5.entry.js → p-18006927.entry.js} +1 -1
  1215. package/dist/digi-arbetsformedlingen/p-18ffcb24.entry.js +1 -0
  1216. package/dist/digi-arbetsformedlingen/{p-fdddbfc8.entry.js → p-1a21de52.entry.js} +1 -1
  1217. package/dist/digi-arbetsformedlingen/{p-d997189d.entry.js → p-1bd29b6a.entry.js} +1 -1
  1218. package/dist/digi-arbetsformedlingen/{p-9f76ceae.entry.js → p-1cc801fd.entry.js} +1 -1
  1219. package/dist/digi-arbetsformedlingen/{p-a8b5f553.entry.js → p-1dc8b284.entry.js} +1 -1
  1220. package/dist/digi-arbetsformedlingen/{p-6b4f5007.entry.js → p-1e03ba21.entry.js} +1 -1
  1221. package/dist/digi-arbetsformedlingen/p-1e2a9156.entry.js +1 -0
  1222. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +1 -0
  1223. package/dist/digi-arbetsformedlingen/p-1f956af8.js +1 -0
  1224. package/dist/digi-arbetsformedlingen/{p-d3a16cd3.entry.js → p-1fcbbf5f.entry.js} +1 -1
  1225. package/dist/digi-arbetsformedlingen/{p-c571715c.entry.js → p-2062e63b.entry.js} +1 -1
  1226. package/dist/digi-arbetsformedlingen/{p-70d5b6d8.entry.js → p-20ef225a.entry.js} +1 -1
  1227. package/dist/digi-arbetsformedlingen/{p-5ffc1490.entry.js → p-21653bf9.entry.js} +1 -1
  1228. package/dist/digi-arbetsformedlingen/{p-7194b6d4.entry.js → p-218b829e.entry.js} +1 -1
  1229. package/dist/digi-arbetsformedlingen/{p-f1fa6847.entry.js → p-2196c33b.entry.js} +1 -1
  1230. package/dist/digi-arbetsformedlingen/{p-57932243.entry.js → p-2412deb9.entry.js} +1 -1
  1231. package/dist/digi-arbetsformedlingen/{p-18d4fcd2.entry.js → p-2422b0d1.entry.js} +1 -1
  1232. package/dist/digi-arbetsformedlingen/{p-afc03fe9.entry.js → p-27388bc4.entry.js} +1 -1
  1233. package/dist/digi-arbetsformedlingen/{p-df2dbad3.entry.js → p-27be8d2b.entry.js} +1 -1
  1234. package/dist/digi-arbetsformedlingen/{p-6682c011.entry.js → p-293ea71f.entry.js} +1 -1
  1235. package/dist/digi-arbetsformedlingen/{p-c2c56530.entry.js → p-2aa3ed49.entry.js} +1 -1
  1236. package/dist/digi-arbetsformedlingen/{p-210f07d5.entry.js → p-2c7d4ecf.entry.js} +1 -1
  1237. package/dist/digi-arbetsformedlingen/{p-2bc12345.entry.js → p-2f57b446.entry.js} +1 -1
  1238. package/dist/digi-arbetsformedlingen/{p-0ba0b367.entry.js → p-2ffd9c4c.entry.js} +1 -1
  1239. package/dist/digi-arbetsformedlingen/{p-f3b8ef49.entry.js → p-3212807d.entry.js} +1 -1
  1240. package/dist/digi-arbetsformedlingen/p-33425742.entry.js +1 -0
  1241. package/dist/digi-arbetsformedlingen/{p-04aa20f8.entry.js → p-34ef0baa.entry.js} +1 -1
  1242. package/dist/digi-arbetsformedlingen/{p-282615d5.entry.js → p-352712b9.entry.js} +1 -1
  1243. package/dist/digi-arbetsformedlingen/p-36229058.entry.js +1 -0
  1244. package/dist/digi-arbetsformedlingen/{p-95f0541d.entry.js → p-37459590.entry.js} +1 -1
  1245. package/dist/digi-arbetsformedlingen/{p-ffe543c2.entry.js → p-38603899.entry.js} +1 -1
  1246. package/dist/digi-arbetsformedlingen/{p-3656e551.entry.js → p-39604e43.entry.js} +1 -1
  1247. package/dist/digi-arbetsformedlingen/{p-a31b7db8.entry.js → p-3c28625a.entry.js} +1 -1
  1248. package/dist/digi-arbetsformedlingen/{p-356cd33f.entry.js → p-3e126f89.entry.js} +1 -1
  1249. package/dist/digi-arbetsformedlingen/{p-ba74fb18.entry.js → p-3eb4faff.entry.js} +1 -1
  1250. package/dist/digi-arbetsformedlingen/{p-97df6bb5.entry.js → p-40f5fda7.entry.js} +1 -1
  1251. package/dist/digi-arbetsformedlingen/p-4224f1e4.entry.js +1 -0
  1252. package/dist/digi-arbetsformedlingen/{p-ff3847ca.entry.js → p-43a43f09.entry.js} +1 -1
  1253. package/dist/digi-arbetsformedlingen/p-4477f14c.entry.js +1 -0
  1254. package/dist/digi-arbetsformedlingen/{p-0dabfbf2.entry.js → p-45af5d55.entry.js} +1 -1
  1255. package/dist/digi-arbetsformedlingen/{p-8d51bf4a.entry.js → p-4788712e.entry.js} +1 -1
  1256. package/dist/digi-arbetsformedlingen/{p-03f2c12b.entry.js → p-48113595.entry.js} +1 -1
  1257. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +1 -0
  1258. package/dist/digi-arbetsformedlingen/{p-1611b5c5.entry.js → p-4871b74a.entry.js} +1 -1
  1259. package/dist/digi-arbetsformedlingen/{p-f8460123.entry.js → p-49aeb019.entry.js} +1 -1
  1260. package/dist/digi-arbetsformedlingen/{p-f2f2ddc8.entry.js → p-4b5edc89.entry.js} +1 -1
  1261. package/dist/digi-arbetsformedlingen/{p-8b112e8e.entry.js → p-4b618926.entry.js} +1 -1
  1262. package/dist/digi-arbetsformedlingen/{p-7b077861.entry.js → p-4bb41707.entry.js} +1 -1
  1263. package/dist/digi-arbetsformedlingen/{p-fc609ae4.entry.js → p-4c69c234.entry.js} +1 -1
  1264. package/dist/digi-arbetsformedlingen/p-4df8b9e1.entry.js +1 -0
  1265. package/dist/digi-arbetsformedlingen/{p-c34defe4.entry.js → p-4e2e1902.entry.js} +1 -1
  1266. package/dist/digi-arbetsformedlingen/{p-a05d9a25.entry.js → p-4eb58cf9.entry.js} +1 -1
  1267. package/dist/digi-arbetsformedlingen/{p-a0ed9e6c.entry.js → p-4f6b2e2a.entry.js} +1 -1
  1268. package/dist/digi-arbetsformedlingen/{p-025cabb6.entry.js → p-4fe05e2f.entry.js} +1 -1
  1269. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +1 -0
  1270. package/dist/digi-arbetsformedlingen/{p-0ec8853f.entry.js → p-51c9cc1a.entry.js} +1 -1
  1271. package/dist/digi-arbetsformedlingen/{p-f1de4bf6.js → p-52e3bb32.js} +2 -2
  1272. package/dist/digi-arbetsformedlingen/{p-c1f1614f.entry.js → p-53483e1d.entry.js} +1 -1
  1273. package/dist/digi-arbetsformedlingen/{p-1a12faea.entry.js → p-5456a3bc.entry.js} +1 -1
  1274. package/dist/digi-arbetsformedlingen/{p-bba72c14.entry.js → p-5473bfea.entry.js} +1 -1
  1275. package/dist/digi-arbetsformedlingen/p-54a797ed.entry.js +1 -0
  1276. package/dist/digi-arbetsformedlingen/{p-e6313314.entry.js → p-5503d5be.entry.js} +1 -1
  1277. package/dist/digi-arbetsformedlingen/{p-3ca255fb.entry.js → p-56cb2ded.entry.js} +1 -1
  1278. package/dist/digi-arbetsformedlingen/{p-79c08614.entry.js → p-57dd2b38.entry.js} +1 -1
  1279. package/dist/digi-arbetsformedlingen/{p-cf8705ff.entry.js → p-588fe3b5.entry.js} +1 -1
  1280. package/dist/digi-arbetsformedlingen/{p-8042dd80.entry.js → p-592fd6a9.entry.js} +1 -1
  1281. package/dist/digi-arbetsformedlingen/{p-59ed9a08.entry.js → p-5acaf4b0.entry.js} +1 -1
  1282. package/dist/digi-arbetsformedlingen/{p-c01d3031.entry.js → p-5ad1a828.entry.js} +1 -1
  1283. package/dist/digi-arbetsformedlingen/{p-1991cbd6.entry.js → p-5b01d3e2.entry.js} +1 -1
  1284. package/dist/digi-arbetsformedlingen/p-5c7acd45.entry.js +1 -0
  1285. package/dist/digi-arbetsformedlingen/{p-5520c068.entry.js → p-5d0ffc80.entry.js} +1 -1
  1286. package/dist/digi-arbetsformedlingen/{p-91071734.entry.js → p-5d30475d.entry.js} +1 -1
  1287. package/dist/digi-arbetsformedlingen/{p-76dda986.entry.js → p-5e37e5aa.entry.js} +1 -1
  1288. package/dist/digi-arbetsformedlingen/{p-30fe9410.entry.js → p-5ee51a86.entry.js} +1 -1
  1289. package/dist/digi-arbetsformedlingen/{p-8f398e56.entry.js → p-60989dea.entry.js} +1 -1
  1290. package/dist/digi-arbetsformedlingen/{p-35360e65.entry.js → p-61385dc4.entry.js} +1 -1
  1291. package/dist/digi-arbetsformedlingen/{p-98aa180e.entry.js → p-63148e09.entry.js} +1 -1
  1292. package/dist/digi-arbetsformedlingen/{p-51354379.entry.js → p-649c30ed.entry.js} +1 -1
  1293. package/dist/digi-arbetsformedlingen/p-6559910e.entry.js +1 -0
  1294. package/dist/digi-arbetsformedlingen/{p-3add0508.entry.js → p-658aa433.entry.js} +1 -1
  1295. package/dist/digi-arbetsformedlingen/{p-8638aeba.entry.js → p-66483a84.entry.js} +1 -1
  1296. package/dist/digi-arbetsformedlingen/{p-c6ebe45b.entry.js → p-664de70c.entry.js} +1 -1
  1297. package/dist/digi-arbetsformedlingen/{p-f36104b8.entry.js → p-676ab6ef.entry.js} +1 -1
  1298. package/dist/digi-arbetsformedlingen/{p-a4cecc24.entry.js → p-6a33818a.entry.js} +1 -1
  1299. package/dist/digi-arbetsformedlingen/{p-a3a748b1.entry.js → p-6de493b0.entry.js} +1 -1
  1300. package/dist/digi-arbetsformedlingen/{p-61134ea0.entry.js → p-6e925e52.entry.js} +1 -1
  1301. package/dist/digi-arbetsformedlingen/{p-05fe8358.entry.js → p-726a0b56.entry.js} +1 -1
  1302. package/dist/digi-arbetsformedlingen/p-7393b76b.entry.js +1 -0
  1303. package/dist/digi-arbetsformedlingen/{p-1cd949af.entry.js → p-73f6209d.entry.js} +1 -1
  1304. package/dist/digi-arbetsformedlingen/{p-03c89967.entry.js → p-7474d7b0.entry.js} +1 -1
  1305. package/dist/digi-arbetsformedlingen/p-753987ba.entry.js +1 -0
  1306. package/dist/digi-arbetsformedlingen/{p-bfe515b0.entry.js → p-7660ba5b.entry.js} +1 -1
  1307. package/dist/digi-arbetsformedlingen/{p-2c714af4.entry.js → p-76eb331e.entry.js} +1 -1
  1308. package/dist/digi-arbetsformedlingen/{p-5d851fc7.entry.js → p-77ea6604.entry.js} +1 -1
  1309. package/dist/digi-arbetsformedlingen/{p-e4f6a021.entry.js → p-780b30f6.entry.js} +1 -1
  1310. package/dist/digi-arbetsformedlingen/{p-24fe2189.js → p-7933b555.js} +1 -1
  1311. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +1 -0
  1312. package/dist/digi-arbetsformedlingen/{p-2c657d2a.entry.js → p-7d54fe81.entry.js} +1 -1
  1313. package/dist/digi-arbetsformedlingen/{p-e0ddaa32.entry.js → p-7d597755.entry.js} +1 -1
  1314. package/dist/digi-arbetsformedlingen/{p-309cc07e.entry.js → p-7e6d699e.entry.js} +1 -1
  1315. package/dist/digi-arbetsformedlingen/{p-4b149cd0.entry.js → p-7ed49934.entry.js} +1 -1
  1316. package/dist/digi-arbetsformedlingen/{p-a6925231.entry.js → p-804cb867.entry.js} +1 -1
  1317. package/dist/digi-arbetsformedlingen/{p-99eae5f5.entry.js → p-80a77b6e.entry.js} +1 -1
  1318. package/dist/digi-arbetsformedlingen/{p-5762d73d.entry.js → p-815a97f1.entry.js} +1 -1
  1319. package/dist/digi-arbetsformedlingen/{p-deb342fa.entry.js → p-82634b60.entry.js} +1 -1
  1320. package/dist/digi-arbetsformedlingen/p-82a89ca1.entry.js +1 -0
  1321. package/dist/digi-arbetsformedlingen/{p-aa3e3eef.entry.js → p-8318562f.entry.js} +1 -1
  1322. package/dist/digi-arbetsformedlingen/{p-8fde626d.entry.js → p-83269fe6.entry.js} +1 -1
  1323. package/dist/digi-arbetsformedlingen/{p-dc571b83.entry.js → p-8328e58b.entry.js} +1 -1
  1324. package/dist/digi-arbetsformedlingen/{p-05645b1e.entry.js → p-8355c75d.entry.js} +1 -1
  1325. package/dist/digi-arbetsformedlingen/{p-133eb88c.entry.js → p-8473e21b.entry.js} +1 -1
  1326. package/dist/digi-arbetsformedlingen/{p-45d194e8.entry.js → p-87721a1f.entry.js} +1 -1
  1327. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +1 -0
  1328. package/dist/digi-arbetsformedlingen/{p-d10d9f6b.entry.js → p-89566597.entry.js} +1 -1
  1329. package/dist/digi-arbetsformedlingen/{p-afc4494d.entry.js → p-8b88c952.entry.js} +1 -1
  1330. package/dist/digi-arbetsformedlingen/{p-fefd78cb.entry.js → p-8d3cb15a.entry.js} +1 -1
  1331. package/dist/digi-arbetsformedlingen/{p-ab807393.entry.js → p-8e16d36a.entry.js} +1 -1
  1332. package/dist/digi-arbetsformedlingen/p-8ef4cf4a.entry.js +1 -0
  1333. package/dist/digi-arbetsformedlingen/{p-f80bf0cf.entry.js → p-8fa46692.entry.js} +1 -1
  1334. package/dist/digi-arbetsformedlingen/{p-e09a3a9b.entry.js → p-9045d5ff.entry.js} +1 -1
  1335. package/dist/digi-arbetsformedlingen/p-905ccb30.js +1 -0
  1336. package/dist/digi-arbetsformedlingen/{p-62908311.entry.js → p-905f3864.entry.js} +1 -1
  1337. package/dist/digi-arbetsformedlingen/{p-b7f51664.entry.js → p-90bc53dc.entry.js} +1 -1
  1338. package/dist/digi-arbetsformedlingen/{p-24cd5148.entry.js → p-93ec0277.entry.js} +1 -1
  1339. package/dist/digi-arbetsformedlingen/{p-a4f63acf.entry.js → p-9495044c.entry.js} +1 -1
  1340. package/dist/digi-arbetsformedlingen/{p-7b144af0.entry.js → p-9763005c.entry.js} +1 -1
  1341. package/dist/digi-arbetsformedlingen/{p-4898e3e1.entry.js → p-9789b001.entry.js} +1 -1
  1342. package/dist/digi-arbetsformedlingen/{p-7f5ccb4b.entry.js → p-99e4bd13.entry.js} +1 -1
  1343. package/dist/digi-arbetsformedlingen/{p-d2f05c30.entry.js → p-9a73a55d.entry.js} +1 -1
  1344. package/dist/digi-arbetsformedlingen/{p-3ae0fb97.entry.js → p-9a7e195c.entry.js} +1 -1
  1345. package/dist/digi-arbetsformedlingen/p-9c5a93d8.js +1 -0
  1346. package/dist/digi-arbetsformedlingen/{p-1443ee18.entry.js → p-9cf50217.entry.js} +1 -1
  1347. package/dist/digi-arbetsformedlingen/{p-35085329.entry.js → p-9d15493f.entry.js} +1 -1
  1348. package/dist/digi-arbetsformedlingen/{p-29c21aa2.entry.js → p-9df20034.entry.js} +1 -1
  1349. package/dist/digi-arbetsformedlingen/p-9e4a0fe4.entry.js +1 -0
  1350. package/dist/digi-arbetsformedlingen/{p-19bc2782.entry.js → p-9ea535e1.entry.js} +1 -1
  1351. package/dist/digi-arbetsformedlingen/{p-dd5d6b5b.entry.js → p-9fe345d1.entry.js} +1 -1
  1352. package/dist/digi-arbetsformedlingen/{p-bda62d83.entry.js → p-a0267f76.entry.js} +1 -1
  1353. package/dist/digi-arbetsformedlingen/{p-dfebd13b.entry.js → p-a1ae9863.entry.js} +1 -1
  1354. package/dist/digi-arbetsformedlingen/{p-b4894794.entry.js → p-a439e93f.entry.js} +1 -1
  1355. package/dist/digi-arbetsformedlingen/{p-f5ab5a6d.entry.js → p-a4895704.entry.js} +1 -1
  1356. package/dist/digi-arbetsformedlingen/{p-fb73b450.entry.js → p-a5c387e8.entry.js} +1 -1
  1357. package/dist/digi-arbetsformedlingen/p-a5c6e42e.entry.js +1 -0
  1358. package/dist/digi-arbetsformedlingen/{p-115ed01d.entry.js → p-a67b4609.entry.js} +1 -1
  1359. package/dist/digi-arbetsformedlingen/{p-716522cc.entry.js → p-a6a0a040.entry.js} +1 -1
  1360. package/dist/digi-arbetsformedlingen/{p-45caeb11.entry.js → p-a7361f39.entry.js} +1 -1
  1361. package/dist/digi-arbetsformedlingen/p-a7d97546.entry.js +1 -0
  1362. package/dist/digi-arbetsformedlingen/{p-7bc209b0.entry.js → p-a947fa52.entry.js} +1 -1
  1363. package/dist/digi-arbetsformedlingen/{p-354ee792.entry.js → p-a98df65c.entry.js} +1 -1
  1364. package/dist/digi-arbetsformedlingen/{p-1400a7db.entry.js → p-a9bfc5bd.entry.js} +1 -1
  1365. package/dist/digi-arbetsformedlingen/{p-df144f4a.entry.js → p-accb56da.entry.js} +1 -1
  1366. package/dist/digi-arbetsformedlingen/{p-82998dc8.entry.js → p-ad471fd2.entry.js} +1 -1
  1367. package/dist/digi-arbetsformedlingen/{p-ab1f9fa3.entry.js → p-af4b851e.entry.js} +1 -1
  1368. package/dist/digi-arbetsformedlingen/{p-eec05f58.entry.js → p-b10a1760.entry.js} +1 -1
  1369. package/dist/digi-arbetsformedlingen/{p-d4f972c0.entry.js → p-b21e9c0a.entry.js} +1 -1
  1370. package/dist/digi-arbetsformedlingen/{p-6079b98f.entry.js → p-b22f09f1.entry.js} +1 -1
  1371. package/dist/digi-arbetsformedlingen/{p-7c4a57bc.entry.js → p-b32df740.entry.js} +1 -1
  1372. package/dist/digi-arbetsformedlingen/{p-89266d02.entry.js → p-b48f2acd.entry.js} +1 -1
  1373. package/dist/digi-arbetsformedlingen/{p-4a1af082.entry.js → p-b63e0b2d.entry.js} +1 -1
  1374. package/dist/digi-arbetsformedlingen/{p-f0679d19.entry.js → p-b734218c.entry.js} +1 -1
  1375. package/dist/digi-arbetsformedlingen/{p-05da2430.entry.js → p-b7494943.entry.js} +1 -1
  1376. package/dist/digi-arbetsformedlingen/{p-cb694b2c.entry.js → p-b81e0aec.entry.js} +1 -1
  1377. package/dist/digi-arbetsformedlingen/p-b924bb0b.entry.js +1 -0
  1378. package/dist/digi-arbetsformedlingen/{p-48f60428.entry.js → p-ba39e14b.entry.js} +1 -1
  1379. package/dist/digi-arbetsformedlingen/{p-ab83e07e.entry.js → p-baac6e73.entry.js} +1 -1
  1380. package/dist/digi-arbetsformedlingen/{p-5ccb12cc.entry.js → p-bab6f184.entry.js} +1 -1
  1381. package/dist/digi-arbetsformedlingen/{p-1426e071.entry.js → p-bb0935fc.entry.js} +1 -1
  1382. package/dist/digi-arbetsformedlingen/p-bb1daa3b.entry.js +1 -0
  1383. package/dist/digi-arbetsformedlingen/{p-20e42b63.entry.js → p-bb554f34.entry.js} +1 -1
  1384. package/dist/digi-arbetsformedlingen/p-bd6e0b22.entry.js +1 -0
  1385. package/dist/digi-arbetsformedlingen/{p-13f62d12.entry.js → p-c04b06a2.entry.js} +1 -1
  1386. package/dist/digi-arbetsformedlingen/p-c1606b8a.entry.js +1 -0
  1387. package/dist/digi-arbetsformedlingen/{p-4efff0ca.entry.js → p-c168c84a.entry.js} +1 -1
  1388. package/dist/digi-arbetsformedlingen/{p-1b26e051.entry.js → p-c30a3366.entry.js} +1 -1
  1389. package/dist/digi-arbetsformedlingen/{p-de04fc95.entry.js → p-c566cef3.entry.js} +1 -1
  1390. package/dist/digi-arbetsformedlingen/{p-2a86430e.entry.js → p-c70ba82f.entry.js} +1 -1
  1391. package/dist/digi-arbetsformedlingen/{p-d09d6e4e.entry.js → p-c721f99a.entry.js} +1 -1
  1392. package/dist/digi-arbetsformedlingen/p-c7949525.js +1 -0
  1393. package/dist/digi-arbetsformedlingen/{p-cf22ea4c.entry.js → p-c81d1d0b.entry.js} +1 -1
  1394. package/dist/digi-arbetsformedlingen/p-c8257c8c.entry.js +1 -0
  1395. package/dist/digi-arbetsformedlingen/{p-c6ec95b6.entry.js → p-c8751075.entry.js} +1 -1
  1396. package/dist/digi-arbetsformedlingen/{p-ba1f3c21.entry.js → p-c917502e.entry.js} +1 -1
  1397. package/dist/digi-arbetsformedlingen/{p-c8012cef.entry.js → p-c92e206b.entry.js} +1 -1
  1398. package/dist/digi-arbetsformedlingen/{p-eece0f27.entry.js → p-cab53989.entry.js} +1 -1
  1399. package/dist/digi-arbetsformedlingen/{p-765c940e.entry.js → p-ccd18e1a.entry.js} +1 -1
  1400. package/dist/digi-arbetsformedlingen/{p-ad3bc89a.entry.js → p-cd770cb4.entry.js} +1 -1
  1401. package/dist/digi-arbetsformedlingen/{p-212c9b16.entry.js → p-cdbfa3d0.entry.js} +1 -1
  1402. package/dist/digi-arbetsformedlingen/p-ce8d2455.entry.js +1 -0
  1403. package/dist/digi-arbetsformedlingen/{p-2bafc4e6.entry.js → p-cfad003c.entry.js} +1 -1
  1404. package/dist/digi-arbetsformedlingen/{p-cdfc6b9e.entry.js → p-d0a8fa77.entry.js} +1 -1
  1405. package/dist/digi-arbetsformedlingen/{p-5ff83bb2.entry.js → p-d146131e.entry.js} +1 -1
  1406. package/dist/digi-arbetsformedlingen/{p-ee95a46b.entry.js → p-d1a77b0b.entry.js} +1 -1
  1407. package/dist/digi-arbetsformedlingen/{p-5bd4feb1.entry.js → p-d2799e99.entry.js} +1 -1
  1408. package/dist/digi-arbetsformedlingen/{p-51b3e6b7.entry.js → p-d2a12b86.entry.js} +1 -1
  1409. package/dist/digi-arbetsformedlingen/p-d2d0856f.js +1 -0
  1410. package/dist/digi-arbetsformedlingen/{p-29a7704c.entry.js → p-d46b426b.entry.js} +1 -1
  1411. package/dist/digi-arbetsformedlingen/p-d4d2b1a5.entry.js +1 -0
  1412. package/dist/digi-arbetsformedlingen/{p-2f57b6f7.entry.js → p-d5376b7c.entry.js} +1 -1
  1413. package/dist/digi-arbetsformedlingen/{p-5f8404ac.entry.js → p-d7cdbe75.entry.js} +1 -1
  1414. package/dist/digi-arbetsformedlingen/{p-a9364824.entry.js → p-d8b9b535.entry.js} +1 -1
  1415. package/dist/digi-arbetsformedlingen/{p-2a814ab4.entry.js → p-db7c2105.entry.js} +1 -1
  1416. package/dist/digi-arbetsformedlingen/{p-f066ad62.entry.js → p-dcaa4461.entry.js} +1 -1
  1417. package/dist/digi-arbetsformedlingen/{p-72be21a0.entry.js → p-de1e9254.entry.js} +1 -1
  1418. package/dist/digi-arbetsformedlingen/{p-c2084f44.entry.js → p-df2038b9.entry.js} +1 -1
  1419. package/dist/digi-arbetsformedlingen/p-e0db40e9.entry.js +1 -0
  1420. package/dist/digi-arbetsformedlingen/p-e10e24fc.entry.js +1 -0
  1421. package/dist/digi-arbetsformedlingen/p-e2330d9c.entry.js +1 -0
  1422. package/dist/digi-arbetsformedlingen/p-e54f5b28.entry.js +1 -0
  1423. package/dist/digi-arbetsformedlingen/{p-91bd565a.entry.js → p-e55d3abf.entry.js} +1 -1
  1424. package/dist/digi-arbetsformedlingen/{p-9d07a6b7.entry.js → p-e627abeb.entry.js} +1 -1
  1425. package/dist/digi-arbetsformedlingen/{p-9acaa089.entry.js → p-e69d2e1c.entry.js} +1 -1
  1426. package/dist/digi-arbetsformedlingen/{p-07527c31.entry.js → p-e8fd0aed.entry.js} +1 -1
  1427. package/dist/digi-arbetsformedlingen/{p-14565bc4.entry.js → p-e917904e.entry.js} +1 -1
  1428. package/dist/digi-arbetsformedlingen/p-ea09368a.entry.js +1 -0
  1429. package/dist/digi-arbetsformedlingen/{p-79c6ecc6.entry.js → p-edfdf8e9.entry.js} +1 -1
  1430. package/dist/digi-arbetsformedlingen/{p-2e622d7a.entry.js → p-eeec1cf1.entry.js} +1 -1
  1431. package/dist/digi-arbetsformedlingen/{p-4a92afba.entry.js → p-ef9a3ddc.entry.js} +1 -1
  1432. package/dist/digi-arbetsformedlingen/{p-693e33b2.entry.js → p-f1a6524e.entry.js} +1 -1
  1433. package/dist/digi-arbetsformedlingen/{p-ef5ef502.entry.js → p-f2eb8ee5.entry.js} +1 -1
  1434. package/dist/digi-arbetsformedlingen/p-f447b984.js +1 -0
  1435. package/dist/digi-arbetsformedlingen/{p-a69d8ad3.entry.js → p-f6476365.entry.js} +1 -1
  1436. package/dist/digi-arbetsformedlingen/{p-d974fef4.entry.js → p-f69dbfcf.entry.js} +1 -1
  1437. package/dist/digi-arbetsformedlingen/{p-8186b82c.entry.js → p-f6b2d484.entry.js} +1 -1
  1438. package/dist/digi-arbetsformedlingen/p-f70535e3.entry.js +1 -0
  1439. package/dist/digi-arbetsformedlingen/{p-385e1afb.entry.js → p-f7628391.entry.js} +1 -1
  1440. package/dist/digi-arbetsformedlingen/{p-2c063933.entry.js → p-f9315403.entry.js} +1 -1
  1441. package/dist/digi-arbetsformedlingen/{p-26983270.entry.js → p-fc252a02.entry.js} +1 -1
  1442. package/dist/digi-arbetsformedlingen/{p-ca226329.entry.js → p-fc945ec1.entry.js} +1 -1
  1443. package/dist/digi-arbetsformedlingen/{p-cb94f90d.entry.js → p-fe235598.entry.js} +1 -1
  1444. package/dist/esm/digi-arbetsformedlingen.js +3 -3
  1445. package/dist/esm/digi-badge-notification.entry.js +1 -1
  1446. package/dist/esm/digi-badge-status.entry.js +1 -1
  1447. package/dist/esm/digi-bar-chart.entry.js +2 -2
  1448. package/dist/esm/digi-button_24.entry.js +1513 -0
  1449. package/dist/esm/digi-calendar-datepicker.entry.js +2492 -0
  1450. package/dist/esm/digi-calendar-week-view.entry.js +7 -6
  1451. package/dist/esm/digi-calendar_2.entry.js +464 -0
  1452. package/dist/esm/digi-chart-line.entry.js +2 -2
  1453. package/dist/esm/digi-code-block_3.entry.js +13 -14
  1454. package/dist/esm/digi-code-example.entry.js +6 -6
  1455. package/dist/esm/digi-code.entry.js +2 -2
  1456. package/dist/esm/digi-context-menu.entry.js +4 -4
  1457. package/dist/esm/digi-dialog.entry.js +12 -11
  1458. package/dist/esm/digi-expandable-accordion.entry.js +2 -2
  1459. package/dist/esm/digi-expandable-faq-item.entry.js +5 -5
  1460. package/dist/esm/digi-expandable-faq.entry.js +3 -3
  1461. package/dist/esm/digi-footer-card.entry.js +2 -2
  1462. package/dist/esm/digi-footer.entry.js +11 -10
  1463. package/dist/esm/digi-form-category-filter.entry.js +3 -3
  1464. package/dist/esm/digi-form-checkbox.entry.js +3 -3
  1465. package/dist/esm/digi-form-error-list.entry.js +12 -11
  1466. package/dist/esm/digi-form-file-upload.entry.js +11 -10
  1467. package/dist/esm/digi-form-filter.entry.js +6 -6
  1468. package/dist/esm/digi-form-input-search.entry.js +5 -4
  1469. package/dist/esm/digi-form-input.entry.js +173 -0
  1470. package/dist/esm/digi-form-label_5.entry.js +167 -0
  1471. package/dist/esm/digi-form-radiogroup.entry.js +3 -7
  1472. package/dist/esm/digi-form-receipt.entry.js +10 -9
  1473. package/dist/esm/digi-form-select-filter.entry.js +16 -15
  1474. package/dist/esm/digi-form-select_2.entry.js +171 -0
  1475. package/dist/esm/digi-form-textarea.entry.js +129 -0
  1476. package/dist/esm/digi-icon-accessibility-deaf.entry.js +3 -3
  1477. package/dist/esm/digi-icon-accessibility-universal.entry.js +3 -3
  1478. package/dist/esm/digi-icon-apple.entry.js +3 -3
  1479. package/dist/esm/digi-icon-archive-outline.entry.js +3 -3
  1480. package/dist/esm/digi-icon-archive.entry.js +3 -3
  1481. package/dist/esm/digi-icon-arrow-back.entry.js +3 -3
  1482. package/dist/esm/digi-icon-arrow-down.entry.js +3 -3
  1483. package/dist/esm/digi-icon-arrow-left.entry.js +3 -3
  1484. package/dist/esm/digi-icon-arrow-right.entry.js +3 -3
  1485. package/dist/esm/digi-icon-arrow-sign-in.entry.js +3 -3
  1486. package/dist/esm/digi-icon-arrow-sign-out.entry.js +3 -3
  1487. package/dist/esm/digi-icon-arrow-up.entry.js +3 -3
  1488. package/dist/esm/digi-icon-at.entry.js +3 -3
  1489. package/dist/esm/digi-icon-bell.entry.js +3 -3
  1490. package/dist/esm/digi-icon-book.entry.js +3 -3
  1491. package/dist/esm/digi-icon-bookmark-outline.entry.js +3 -3
  1492. package/dist/esm/digi-icon-bookmark-solid.entry.js +3 -3
  1493. package/dist/esm/digi-icon-bubble-ellipsis.entry.js +3 -3
  1494. package/dist/esm/digi-icon-bubble.entry.js +3 -3
  1495. package/dist/esm/digi-icon-building-outline.entry.js +3 -3
  1496. package/dist/esm/digi-icon-building-solid.entry.js +3 -3
  1497. package/dist/esm/digi-icon-bullseye.entry.js +3 -3
  1498. package/dist/esm/digi-icon-calculator-solid.entry.js +3 -3
  1499. package/dist/esm/digi-icon-calendar-alt-alert.entry.js +3 -3
  1500. package/dist/esm/digi-icon-calendar.entry.js +3 -3
  1501. package/dist/esm/digi-icon-caret-circle-right.entry.js +3 -3
  1502. package/dist/esm/digi-icon-caret-down_2.entry.js +5 -5
  1503. package/dist/esm/digi-icon-caret-left.entry.js +3 -3
  1504. package/dist/esm/digi-icon-caret-right.entry.js +3 -3
  1505. package/dist/esm/digi-icon-chart_2.entry.js +5 -5
  1506. package/dist/esm/digi-icon-chat.entry.js +3 -3
  1507. package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +3 -3
  1508. package/dist/esm/digi-icon-check-circle-solid_4.entry.js +9 -9
  1509. package/dist/esm/digi-icon-check.entry.js +3 -3
  1510. package/dist/esm/digi-icon-checklist.entry.js +3 -3
  1511. package/dist/esm/digi-icon-chevron-down.entry.js +3 -3
  1512. package/dist/esm/digi-icon-chevron-left.entry.js +26 -0
  1513. package/dist/esm/digi-icon-chevron-right.entry.js +26 -0
  1514. package/dist/esm/digi-icon-chevron-up.entry.js +3 -3
  1515. package/dist/esm/digi-icon-clock.entry.js +3 -3
  1516. package/dist/esm/digi-icon-communication-play-solid.entry.js +3 -3
  1517. package/dist/esm/digi-icon-compress-alt.entry.js +3 -3
  1518. package/dist/esm/digi-icon-comunication-case.entry.js +3 -3
  1519. package/dist/esm/digi-icon-comunication-flag.entry.js +3 -3
  1520. package/dist/esm/digi-icon-comunication-graduate.entry.js +3 -3
  1521. package/dist/esm/digi-icon-comunication-play.entry.js +3 -3
  1522. package/dist/esm/digi-icon-cooperation.entry.js +3 -3
  1523. package/dist/esm/digi-icon-copy.entry.js +3 -3
  1524. package/dist/esm/digi-icon-danger-outline.entry.js +3 -3
  1525. package/dist/esm/digi-icon-download.entry.js +3 -3
  1526. package/dist/esm/digi-icon-dxa.entry.js +3 -3
  1527. package/dist/esm/digi-icon-edit.entry.js +3 -3
  1528. package/dist/esm/digi-icon-ellipsis.entry.js +3 -3
  1529. package/dist/esm/digi-icon-envelope-filled.entry.js +3 -3
  1530. package/dist/esm/digi-icon-envelope.entry.js +3 -3
  1531. package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +3 -3
  1532. package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +3 -3
  1533. package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +3 -3
  1534. package/dist/esm/digi-icon-exclamation-triangle.entry.js +3 -3
  1535. package/dist/esm/digi-icon-expand-alt.entry.js +3 -3
  1536. package/dist/esm/digi-icon-external-link-alt_2.entry.js +4 -4
  1537. package/dist/esm/digi-icon-eye-slash.entry.js +3 -3
  1538. package/dist/esm/digi-icon-eye.entry.js +3 -3
  1539. package/dist/esm/digi-icon-facebook-square.entry.js +3 -3
  1540. package/dist/esm/digi-icon-file-add.entry.js +2 -2
  1541. package/dist/esm/digi-icon-file-document.entry.js +3 -3
  1542. package/dist/esm/digi-icon-file-excel.entry.js +3 -3
  1543. package/dist/esm/digi-icon-file-export.entry.js +2 -2
  1544. package/dist/esm/digi-icon-file-governing.entry.js +3 -3
  1545. package/dist/esm/digi-icon-file-pdf.entry.js +3 -3
  1546. package/dist/esm/digi-icon-file-powerpoint.entry.js +3 -3
  1547. package/dist/esm/digi-icon-file-remove.entry.js +2 -2
  1548. package/dist/esm/digi-icon-file-word.entry.js +3 -3
  1549. package/dist/esm/digi-icon-film.entry.js +3 -3
  1550. package/dist/esm/digi-icon-filter.entry.js +3 -3
  1551. package/dist/esm/digi-icon-folder-add.entry.js +2 -2
  1552. package/dist/esm/digi-icon-folder-directory.entry.js +2 -2
  1553. package/dist/esm/digi-icon-folder-open.entry.js +2 -2
  1554. package/dist/esm/digi-icon-folder.entry.js +2 -2
  1555. package/dist/esm/digi-icon-globe-filled.entry.js +3 -3
  1556. package/dist/esm/digi-icon-globe.entry.js +3 -3
  1557. package/dist/esm/digi-icon-headphones.entry.js +3 -3
  1558. package/dist/esm/digi-icon-heart-solid.entry.js +3 -3
  1559. package/dist/esm/digi-icon-heart.entry.js +3 -3
  1560. package/dist/esm/digi-icon-history.entry.js +3 -3
  1561. package/dist/esm/digi-icon-home.entry.js +3 -3
  1562. package/dist/esm/digi-icon-image.entry.js +3 -3
  1563. package/dist/esm/digi-icon-info-circle-solid.entry.js +3 -3
  1564. package/dist/esm/digi-icon-instagram.entry.js +3 -3
  1565. package/dist/esm/digi-icon-job-suggestion.entry.js +3 -3
  1566. package/dist/esm/digi-icon-language-outline.entry.js +3 -3
  1567. package/dist/esm/digi-icon-language.entry.js +3 -3
  1568. package/dist/esm/digi-icon-laptop-phone.entry.js +3 -3
  1569. package/dist/esm/digi-icon-lattlast.entry.js +3 -3
  1570. package/dist/esm/digi-icon-licence-bus.entry.js +3 -3
  1571. package/dist/esm/digi-icon-licence-car.entry.js +3 -3
  1572. package/dist/esm/digi-icon-licence-motorcycle.entry.js +3 -3
  1573. package/dist/esm/digi-icon-licence-truck.entry.js +3 -3
  1574. package/dist/esm/digi-icon-lightbulb.entry.js +3 -3
  1575. package/dist/esm/digi-icon-linkedin-in.entry.js +3 -3
  1576. package/dist/esm/digi-icon-list-ul_6.entry.js +13 -13
  1577. package/dist/esm/digi-icon-lock.entry.js +3 -3
  1578. package/dist/esm/digi-icon-marker-filled.entry.js +3 -3
  1579. package/dist/esm/digi-icon-marker.entry.js +3 -3
  1580. package/dist/esm/digi-icon-media-course.entry.js +3 -3
  1581. package/dist/esm/digi-icon-media-podcast.entry.js +3 -3
  1582. package/dist/esm/digi-icon-microphone-off.entry.js +3 -3
  1583. package/dist/esm/digi-icon-microphone.entry.js +3 -3
  1584. package/dist/esm/digi-icon-move.entry.js +3 -3
  1585. package/dist/esm/digi-icon-notification-error_4.entry.js +9 -9
  1586. package/dist/esm/digi-icon-online-interview.entry.js +3 -3
  1587. package/dist/esm/digi-icon-online-meeting.entry.js +3 -3
  1588. package/dist/esm/digi-icon-online-task.entry.js +3 -3
  1589. package/dist/esm/digi-icon-open-source.entry.js +3 -3
  1590. package/dist/esm/digi-icon-palette.entry.js +3 -3
  1591. package/dist/esm/digi-icon-paste.entry.js +2 -2
  1592. package/dist/esm/digi-icon-pen.entry.js +3 -3
  1593. package/dist/esm/digi-icon-phone-hangup.entry.js +3 -3
  1594. package/dist/esm/digi-icon-phone.entry.js +3 -3
  1595. package/dist/esm/digi-icon-print.entry.js +3 -3
  1596. package/dist/esm/digi-icon-read.entry.js +3 -3
  1597. package/dist/esm/digi-icon-redo.entry.js +3 -3
  1598. package/dist/esm/digi-icon-scale.entry.js +2 -2
  1599. package/dist/esm/digi-icon-screensharing-off.entry.js +3 -3
  1600. package/dist/esm/digi-icon-screensharing.entry.js +3 -3
  1601. package/dist/esm/digi-icon-search.entry.js +3 -3
  1602. package/dist/esm/digi-icon-send-outline.entry.js +3 -3
  1603. package/dist/esm/digi-icon-send-solid.entry.js +3 -3
  1604. package/dist/esm/digi-icon-settings.entry.js +3 -3
  1605. package/dist/esm/digi-icon-share-alt.entry.js +3 -3
  1606. package/dist/esm/digi-icon-share-chain.entry.js +3 -3
  1607. package/dist/esm/digi-icon-sign.entry.js +3 -3
  1608. package/dist/esm/digi-icon-sliders-h.entry.js +3 -3
  1609. package/dist/esm/digi-icon-sokkandidat.entry.js +3 -3
  1610. package/dist/esm/digi-icon-sort-down.entry.js +3 -3
  1611. package/dist/esm/digi-icon-sort-up.entry.js +3 -3
  1612. package/dist/esm/digi-icon-sort.entry.js +3 -3
  1613. package/dist/esm/digi-icon-spinner.entry.js +3 -3
  1614. package/dist/esm/digi-icon-star-reg.entry.js +3 -3
  1615. package/dist/esm/digi-icon-star.entry.js +3 -3
  1616. package/dist/esm/digi-icon-suitcase-outline.entry.js +3 -3
  1617. package/dist/esm/digi-icon-suitcase-solid.entry.js +3 -3
  1618. package/dist/esm/digi-icon-system-assistance.entry.js +3 -3
  1619. package/dist/esm/digi-icon-table-column.entry.js +3 -3
  1620. package/dist/esm/digi-icon-table-row.entry.js +3 -3
  1621. package/dist/esm/digi-icon-task-done.entry.js +3 -3
  1622. package/dist/esm/digi-icon-toggle-off.entry.js +3 -3
  1623. package/dist/esm/digi-icon-toggle-on.entry.js +3 -3
  1624. package/dist/esm/digi-icon-twitter.entry.js +3 -3
  1625. package/dist/esm/digi-icon-tyck-till.entry.js +3 -3
  1626. package/dist/esm/digi-icon-unlock.entry.js +3 -3
  1627. package/dist/esm/digi-icon-update.entry.js +3 -3
  1628. package/dist/esm/digi-icon-upload.entry.js +3 -3
  1629. package/dist/esm/digi-icon-user-add.entry.js +2 -2
  1630. package/dist/esm/digi-icon-user-alt.entry.js +3 -3
  1631. package/dist/esm/digi-icon-user-edit.entry.js +2 -2
  1632. package/dist/esm/digi-icon-users-solid.entry.js +3 -3
  1633. package/dist/esm/digi-icon-videocamera-off.entry.js +3 -3
  1634. package/dist/esm/digi-icon-videocamera.entry.js +3 -3
  1635. package/dist/esm/digi-icon-volume.entry.js +3 -3
  1636. package/dist/esm/digi-icon-web-tv.entry.js +3 -3
  1637. package/dist/esm/digi-icon-wifi-signal0.entry.js +3 -3
  1638. package/dist/esm/digi-icon-wifi-signal1.entry.js +3 -3
  1639. package/dist/esm/digi-icon-wifi-signal2.entry.js +3 -3
  1640. package/dist/esm/digi-icon-wifi-signal3.entry.js +3 -3
  1641. package/dist/esm/digi-icon-window.entry.js +3 -3
  1642. package/dist/esm/digi-icon-x-button.entry.js +3 -3
  1643. package/dist/esm/digi-icon-youtube.entry.js +3 -3
  1644. package/dist/esm/digi-info-card-multi-container.entry.js +2 -2
  1645. package/dist/esm/digi-info-card-multi.entry.js +2 -2
  1646. package/dist/esm/digi-info-card.entry.js +2 -2
  1647. package/dist/esm/digi-layout-columns.entry.js +2 -2
  1648. package/dist/esm/digi-link-button.entry.js +2 -2
  1649. package/dist/esm/digi-link-internal.entry.js +2 -2
  1650. package/dist/esm/digi-link.entry.js +2 -2
  1651. package/dist/esm/digi-list.entry.js +2 -2
  1652. package/dist/esm/digi-loader-skeleton.entry.js +4 -4
  1653. package/dist/esm/digi-loader-spinner.entry.js +2 -2
  1654. package/dist/esm/digi-logo.entry.js +65 -0
  1655. package/dist/esm/digi-media-figure.entry.js +2 -2
  1656. package/dist/esm/digi-navigation-breadcrumbs.entry.js +4 -4
  1657. package/dist/esm/digi-navigation-pagination.entry.js +15 -14
  1658. package/dist/esm/digi-navigation-sidebar.entry.js +3 -3
  1659. package/dist/esm/digi-notification-alert.entry.js +11 -10
  1660. package/dist/esm/digi-notification-error-page.entry.js +12 -11
  1661. package/dist/esm/digi-progress-circle.entry.js +9 -9
  1662. package/dist/esm/digi-progress-indicator.entry.js +4 -4
  1663. package/dist/esm/digi-progress-list-item.entry.js +6 -6
  1664. package/dist/esm/digi-progress-list.entry.js +2 -2
  1665. package/dist/esm/digi-progressbar.entry.js +3 -3
  1666. package/dist/esm/digi-quote.entry.js +2 -2
  1667. package/dist/esm/digi-table.entry.js +2 -2
  1668. package/dist/esm/digi-tablist-panel.entry.js +3 -3
  1669. package/dist/esm/digi-tablist.entry.js +6 -6
  1670. package/dist/esm/digi-tag-media.entry.js +3 -3
  1671. package/dist/esm/digi-tag.entry.js +2 -2
  1672. package/dist/esm/digi-tools-feedback-banner.entry.js +2 -2
  1673. package/dist/esm/digi-tools-feedback-rating.entry.js +2 -2
  1674. package/dist/esm/digi-tools-feedback.entry.js +10 -9
  1675. package/dist/esm/digi-tools-theme-provider.entry.js +2 -2
  1676. package/dist/esm/digi-typography-meta.entry.js +2 -2
  1677. package/dist/esm/digi-typography-time.entry.js +2 -2
  1678. package/dist/esm/digi-util-detect-click-outside.entry.js +2 -2
  1679. package/dist/esm/digi-util-detect-focus-outside.entry.js +2 -2
  1680. package/dist/esm/digi-util-keyup-handler.entry.js +2 -2
  1681. package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
  1682. package/dist/esm/digi-util-resize-observer.entry.js +2 -2
  1683. package/dist/esm/{form-validation-message-variation.enum-f7835fc5.js → form-file-upload-variation.enum-9c49ec5e.js} +1 -8
  1684. package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +15 -0
  1685. package/dist/esm/{form-input-type.enum-a6bba983.js → form-input-type.enum-3da3db27.js} +1 -15
  1686. package/dist/esm/form-input-variation.enum-64d9450f.js +29 -0
  1687. package/dist/esm/form-select-variation.enum-f2f6098d.js +16 -0
  1688. package/dist/esm/form-textarea-variation.enum-05017e8e.js +17 -0
  1689. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +8 -0
  1690. package/dist/esm/{index-bfea2cc5.js → index-148a7577.js} +38 -59
  1691. package/dist/esm/{index-dc6b83f7.js → index-2fce392f.js} +3 -170
  1692. package/dist/esm/index-5b6c95c6.js +63 -0
  1693. package/dist/esm/index-8685f88d.js +170 -0
  1694. package/dist/esm/index.js +8 -7
  1695. package/dist/esm/loader.js +3 -3
  1696. package/dist/esm/{typography-variation.enum-dea0fe69.js → typography-variation.enum-8ba40d15.js} +56 -68
  1697. package/dist/types/components/_calendar/calendar/calendar.d.ts +13 -9
  1698. package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +15 -36
  1699. package/dist/types/components/_form/form-fieldset/form-fieldset.d.ts +4 -15
  1700. package/dist/types/components/_form/form-input/form-input.d.ts +0 -1
  1701. package/dist/types/components/_form/form-radiogroup/form-radiogroup.d.ts +0 -16
  1702. package/dist/types/components/_form/form-textarea/form-textarea.d.ts +0 -1
  1703. package/dist/types/components/_header/header/header.d.ts +35 -2
  1704. package/dist/types/components/_header/header-navigation/header-navigation.d.ts +1 -0
  1705. package/dist/types/components/_logo/logo/logo.d.ts +19 -7
  1706. package/dist/types/components/_logo/title-logo/title-logo-variation.enum.d.ts +5 -0
  1707. package/dist/types/components/_logo/title-logo/title-logo.d.ts +52 -0
  1708. package/dist/types/components.d.ts +145 -120
  1709. package/dist/types/enums.d.ts +1 -2
  1710. package/dist/types/global/utils/applyStencilScope/applyStencilScope.util.d.ts +5 -0
  1711. package/dist/types/global/utils/applyStencilScope/index.d.ts +1 -0
  1712. package/hydrate/index.js +859 -784
  1713. package/hydrate/index.mjs +859 -784
  1714. package/package.json +1 -1
  1715. package/components/p-24fe2189.js +0 -9
  1716. package/components/p-290d1746.js +0 -13
  1717. package/components/p-82193a3f.js +0 -60
  1718. package/components/p-9a1bec0e.js +0 -9
  1719. package/dist/cjs/digi-button_19.cjs.entry.js +0 -4066
  1720. package/dist/cjs/digi-header-avatar.cjs.entry.js +0 -114
  1721. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +0 -27
  1722. package/dist/cjs/digi-header-navigation.cjs.entry.js +0 -224
  1723. package/dist/cjs/digi-header-notification.cjs.entry.js +0 -23
  1724. package/dist/cjs/digi-header.cjs.entry.js +0 -92
  1725. package/dist/cjs/digi-icon-bars.cjs.entry.js +0 -30
  1726. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +0 -30
  1727. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  1728. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  1729. package/dist/cjs/digi-logo_2.cjs.entry.js +0 -64
  1730. package/dist/cjs/digi-media-image_2.cjs.entry.js +0 -167
  1731. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  1732. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  1733. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  1734. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  1735. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +0 -48
  1736. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  1737. package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
  1738. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  1739. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  1740. package/dist/collection/components/_form/form-fieldset/form-fieldset-validation.enum.js +0 -7
  1741. package/dist/collection/components/_form/form-radiogroup/form-radiogroup-validation.enum.js +0 -7
  1742. package/dist/digi-arbetsformedlingen/p-02a6c3e6.entry.js +0 -1
  1743. package/dist/digi-arbetsformedlingen/p-0db17f9e.entry.js +0 -1
  1744. package/dist/digi-arbetsformedlingen/p-11035a85.entry.js +0 -1
  1745. package/dist/digi-arbetsformedlingen/p-1e7ead36.entry.js +0 -1
  1746. package/dist/digi-arbetsformedlingen/p-2242582b.entry.js +0 -1
  1747. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  1748. package/dist/digi-arbetsformedlingen/p-38380fae.entry.js +0 -1
  1749. package/dist/digi-arbetsformedlingen/p-3887bb40.js +0 -1
  1750. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  1751. package/dist/digi-arbetsformedlingen/p-4101f8a9.entry.js +0 -1
  1752. package/dist/digi-arbetsformedlingen/p-460572d9.entry.js +0 -1
  1753. package/dist/digi-arbetsformedlingen/p-4659accd.entry.js +0 -1
  1754. package/dist/digi-arbetsformedlingen/p-4b87e336.entry.js +0 -1
  1755. package/dist/digi-arbetsformedlingen/p-4f68f34d.entry.js +0 -1
  1756. package/dist/digi-arbetsformedlingen/p-580403f8.entry.js +0 -1
  1757. package/dist/digi-arbetsformedlingen/p-5990798b.entry.js +0 -1
  1758. package/dist/digi-arbetsformedlingen/p-5c6726e4.entry.js +0 -1
  1759. package/dist/digi-arbetsformedlingen/p-5f8a3b26.entry.js +0 -1
  1760. package/dist/digi-arbetsformedlingen/p-614d0764.entry.js +0 -1
  1761. package/dist/digi-arbetsformedlingen/p-62ff3ed7.entry.js +0 -1
  1762. package/dist/digi-arbetsformedlingen/p-648ed420.entry.js +0 -1
  1763. package/dist/digi-arbetsformedlingen/p-6c701c64.entry.js +0 -1
  1764. package/dist/digi-arbetsformedlingen/p-70cd00fd.entry.js +0 -1
  1765. package/dist/digi-arbetsformedlingen/p-7899fdd3.entry.js +0 -1
  1766. package/dist/digi-arbetsformedlingen/p-7f574281.entry.js +0 -1
  1767. package/dist/digi-arbetsformedlingen/p-871eb27f.entry.js +0 -1
  1768. package/dist/digi-arbetsformedlingen/p-8a89811e.entry.js +0 -1
  1769. package/dist/digi-arbetsformedlingen/p-8dde1275.entry.js +0 -1
  1770. package/dist/digi-arbetsformedlingen/p-903cd4b7.entry.js +0 -1
  1771. package/dist/digi-arbetsformedlingen/p-94170a0d.entry.js +0 -1
  1772. package/dist/digi-arbetsformedlingen/p-9eed8e11.entry.js +0 -1
  1773. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +0 -1
  1774. package/dist/digi-arbetsformedlingen/p-a2c089de.entry.js +0 -1
  1775. package/dist/digi-arbetsformedlingen/p-aa63b05a.entry.js +0 -1
  1776. package/dist/digi-arbetsformedlingen/p-aa7b3a21.entry.js +0 -1
  1777. package/dist/digi-arbetsformedlingen/p-b2258360.entry.js +0 -1
  1778. package/dist/digi-arbetsformedlingen/p-bb92f2eb.js +0 -1
  1779. package/dist/digi-arbetsformedlingen/p-c1da0c35.entry.js +0 -1
  1780. package/dist/digi-arbetsformedlingen/p-c3cda078.entry.js +0 -1
  1781. package/dist/digi-arbetsformedlingen/p-c4363e1e.entry.js +0 -1
  1782. package/dist/digi-arbetsformedlingen/p-c64b4626.js +0 -1
  1783. package/dist/digi-arbetsformedlingen/p-cf66e56b.entry.js +0 -1
  1784. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  1785. package/dist/digi-arbetsformedlingen/p-db5a83cf.entry.js +0 -1
  1786. package/dist/digi-arbetsformedlingen/p-db5be953.entry.js +0 -1
  1787. package/dist/digi-arbetsformedlingen/p-e2fe3edf.entry.js +0 -1
  1788. package/dist/digi-arbetsformedlingen/p-e9f759f9.entry.js +0 -1
  1789. package/dist/digi-arbetsformedlingen/p-f6ceba96.entry.js +0 -1
  1790. package/dist/esm/digi-button_19.entry.js +0 -4044
  1791. package/dist/esm/digi-header-avatar.entry.js +0 -110
  1792. package/dist/esm/digi-header-navigation-item.entry.js +0 -23
  1793. package/dist/esm/digi-header-navigation.entry.js +0 -220
  1794. package/dist/esm/digi-header-notification.entry.js +0 -19
  1795. package/dist/esm/digi-header.entry.js +0 -88
  1796. package/dist/esm/digi-icon-bars.entry.js +0 -26
  1797. package/dist/esm/digi-icon-bell-filled.entry.js +0 -26
  1798. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  1799. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  1800. package/dist/esm/digi-logo_2.entry.js +0 -59
  1801. package/dist/esm/digi-media-image_2.entry.js +0 -162
  1802. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  1803. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  1804. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  1805. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  1806. package/dist/esm/digi-util-breakpoint-observer.entry.js +0 -44
  1807. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  1808. package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
  1809. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  1810. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
  1811. package/dist/types/components/_form/form-fieldset/form-fieldset-validation.enum.d.ts +0 -6
  1812. package/dist/types/components/_form/form-radiogroup/form-radiogroup-validation.enum.d.ts +0 -6
@@ -1,4044 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-bfea2cc5.js';
2
- import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
3
- import { B as ButtonSize } from './code-example-variation.enum-e656d235.js';
4
- import { B as ButtonType, b as FormInputType, a as FormInputButtonVariation } from './form-input-type.enum-a6bba983.js';
5
- import { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
6
- import { d as detectClickOutside } from './detectClickOutside.util-72594957.js';
7
- import { d as detectFocusOutside } from './detectFocusOutside.util-a8676bee.js';
8
- import { l as logger } from './logger.util-ede3c48a.js';
9
- import { _ as _t } from './text-26e02c8d.js';
10
- import { r as requiredArgs, t as toDate, a as toInteger, g as getUTCISOWeek, b as getUTCWeek, c as getUTCWeekYear, s as startOfUTCWeek, d as startOfUTCISOWeek, i as isProtectedWeekYearToken, e as throwProtectedError, f as isProtectedDayOfYearToken, h as subMilliseconds, j as getTimezoneOffsetInMilliseconds, k as defaultLocale, l as longFormatters, m as isValid } from './index-dc6b83f7.js';
11
- import './badge-notification-shape.enum-e15a6245.js';
12
- import { C as CalendarDatepickerValidation, f as FormInputValidation, e as FormInputMode, g as FormInputVariation, q as FormSelectVariation, p as FormSelectValidation, s as FormTextareaVariation, r as FormTextareaValidation } from './typography-variation.enum-dea0fe69.js';
13
- import './badge-status-variation.enum-8d6370ff.js';
14
- import './calendar-week-view-heading-level.enum-6774297c.js';
15
- import './bar-chart-variation.enum-97c0b47f.js';
16
- import './code-variation.enum-1eee7c7a.js';
17
- import './expandable-accordion-header-level.enum-85681e2f.js';
18
- import './expandable-faq-item-variation.enum-a8cb225b.js';
19
- import './expandable-faq-variation.enum-6934c367.js';
20
- import './footer-card-variation.enum-cc732148.js';
21
- import './form-checkbox-variation.enum-83e906fc.js';
22
- import { c as FormValidationMessageVariation } from './form-validation-message-variation.enum-f7835fc5.js';
23
- import './form-radiogroup-validation.enum-d790fc66.js';
24
- import './info-card-multi-type.enum-07ee124f.js';
25
- import './info-card-variation.enum-2ccc52c1.js';
26
- import './layout-container-max-width.enum-c40018ac.js';
27
- import './layout-block-variation.enum-b7a20db4.js';
28
- import './layout-columns-variation.enum-34f7754e.js';
29
- import './link-button-variation.enum-84d4976f.js';
30
- import './list-type.enum-fbb331ad.js';
31
- import './loader-skeleton-variation.enum-f9f867b4.js';
32
- import './loader-spinner-size.enum-0b246fa0.js';
33
- import './logo-variation.enum-5b68b79f.js';
34
- import './media-figure-alignment.enum-a1d36567.js';
35
- import './navigation-sidebar-variation.enum-8fead764.js';
36
- import './navigation-vertical-menu-variation.enum-c30b0ea9.js';
37
- import './progress-indicator-variation.enum-b12ba50a.js';
38
- import './progress-list-item-variation.enum-384b9a3a.js';
39
- import './progress-list-variation.enum-300bd89d.js';
40
- import './progressbar-variation.enum-40adaab4.js';
41
- import './quote-image-inner-position.enum-8e9b1e65.js';
42
- import './table-variation.enum-dd9366b6.js';
43
- import './tag-media-icon.enum-fefa191c.js';
44
- import './tag-size.enum-403e0cd8.js';
45
- import './tools-feedback-banner-type.enum-74b4e580.js';
46
- import './tools-feedback-rating-variation.enum-29058ff2.js';
47
- import './tools-theme-provider.brand.enum-8c5a98c9.js';
48
- import './typography-heading-jumbo-variation.enum-eb737f1b.js';
49
- import './typography-meta-variation.enum-1f7c2878.js';
50
- import './typography-time-variation.enum-34c830ef.js';
51
- import './util-breakpoint-observer-breakpoints.enum-6d004731.js';
52
- import { K as KEY_CODE, k as keyboardHandler } from './keyboardHandler.util-383c0054.js';
53
- import './detectClosest.util-58a7504f.js';
54
-
55
- const buttonCss = ".sc-digi-button-h{--digi--button--color--background--primary--default:var(--digi--color--background--interactive--default--primary);--digi--button--color--background--primary--hover:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--primary--focus:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--primary--active:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--secondary--default:var(--digi--color--background--interactive--default--secondary);--digi--button--color--background--secondary--hover:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--secondary--focus:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--secondary--active:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--function--default:transparent;--digi--button--color--background--function--hover:transparent;--digi--button--color--background--function--focus:transparent;--digi--button--color--background--function--active:transparent;--digi--button--color--text--primary--default:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--hover:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--focus:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--active:var(--digi--color--text--interactive--secondary);--digi--button--color--text--secondary--default:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--hover:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--focus:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--active:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--function--default:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--hover:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--focus:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--active:var(--digi--color--text--interactive--primary);--digi--button--color--border--primary--default:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--primary--hover:var(--digi--color--background--interactive--hover--primary);--digi--button--color--border--primary--focus:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--primary--active:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--secondary--default:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--secondary--hover:var(--digi--color--border--interactive--hover--secondary);--digi--button--color--border--secondary--focus:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--secondary--active:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--function--default:initial;--digi--button--color--border--function--hover:initial;--digi--button--color--border--function--focus:initial;--digi--button--color--border--function--active:initial;--digi--button--color--icon--primary--default:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--hover:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--focus:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--active:var(--digi--color--icon--secondary);--digi--button--color--icon--secondary--default:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--hover:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--focus:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--active:var(--digi--color--icon--brand-primary);--digi--button--color--icon--function--default:var(--digi--color--icon--cta);--digi--button--color--icon--function--hover:var(--digi--color--icon--cta);--digi--button--color--icon--function--focus:var(--digi--color--icon--cta);--digi--button--color--icon--function--active:var(--digi--color--icon--cta);--digi--button--border-width--primary--default:var(--digi--border-width--primary);--digi--button--border-width--primary--hover:var(--digi--border-width--primary);--digi--button--border-width--secondary--default:var(--digi--border-width--primary);--digi--button--border-width--secondary--hover:var(--digi--border-width--primary);--digi--button--border-width--function--default:initial;--digi--button--border-width--function--hover:initial;--digi--button--border-style--primary--default:var(--digi--border-style--primary);--digi--button--border-style--primary--hover:var(--digi--border-style--primary);--digi--button--border-style--primary--focus:var(--digi--border-style--primary);--digi--button--border-style--primary--active:var(--digi--border-style--primary);--digi--button--border-style--secondary--default:var(--digi--border-style--primary);--digi--button--border-style--secondary--hover:var(--digi--border-style--primary);--digi--button--border-style--secondary--focus:var(--digi--border-style--primary);--digi--button--border-style--secondary--active:var(--digi--border-style--primary);--digi--button--border-style--function--default:var(--digi--border-style--secondary);--digi--button--border-style--function--hover:var(--digi--border-style--secondary);--digi--button--border-style--function--focus:var(--digi--border-style--secondary);--digi--button--border-style--function--active:var(--digi--border-style--secondary);--digi--button--border-radius--primary--default:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--hover:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--focus:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--active:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--default:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--hover:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--focus:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--active:var(--digi--border-radius--secondary);--digi--button--border-radius--function--default:initial;--digi--button--border-radius--function--hover:initial;--digi--button--border-radius--function--focus:initial;--digi--button--border-radius--function--active:initial;--digi--button--padding--small:var(--digi--gutter--button-block-small) var(--digi--gutter--button-inline-small);--digi--button--padding--medium:var(--digi--gutter--button-block-medium) var(--digi--gutter--button-inline-medium);--digi--button--font-size--small:var(--digi--global--typography--font-size--interaction-small);--digi--button--font-size--medium:var(--digi--global--typography--font-size--interaction-medium);--digi--button--font-family:var(--digi--global--typography--font-family--default);--digi--button--font-weight--default:var(--digi--typography--button--font-weight--desktop);--digi--button--font-weight--function:var(--digi--typography--label--font-weight--desktop);--digi--button--width:initial;--digi--button--display:initial;--digi--button--justify-content--default:initial;--digi--button--justify-content--full-width:center;--digi--button--align-items:center;--digi--button--text-align--default:initial;--digi--button--text-align--full-width:center;--digi--button--outline--default:initial;--digi--button--outline--focus:initial;--digi--button--cursor:pointer;--digi--button--icon--spacing:var(--digi--gutter--large);--digi--button--min-height--small:unset}.sc-digi-button-h .digi-button.sc-digi-button{font-family:var(--digi--button--font-family);background:var(--COLOR--BACKGROUND--DEFAULT);color:var(--COLOR--TEXT--DEFAULT);padding:var(--PADDING);border-radius:var(--BORDER-RADIUS--DEFAULT);border-width:var(--BORDER-WIDTH--DEFAULT);border-style:var(--BORDER-STYLE--DEFAULT);border-color:var(--COLOR--BORDER--DEFAULT);font-weight:var(--FONT-WEIGHT);font-size:var(--FONT-SIZE);outline:var(--digi--button--outline--default);text-align:var(--digi--button--text-align--default);width:var(--digi--button--width);display:var(--digi--button--display);justify-content:var(--digi--button--justify-content--default);cursor:var(--digi--button--cursor);min-height:var(--MIN-HEIGHT);align-items:var(--digi--button--align-items);white-space:nowrap}.sc-digi-button-h .digi-button--variation-primary.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--primary--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--primary--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--primary--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--primary--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--primary--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--primary--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--primary--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--primary--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--primary--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--primary--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--primary--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--primary--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--primary--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--primary--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--primary--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--primary--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--primary--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--primary--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--primary--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--primary--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--primary--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--primary--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--primary--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--primary--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--primary--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--primary--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--primary--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--primary--active);--FONT-WEIGHT:var(--digi--button--font-weight--default)}.sc-digi-button-h .digi-button--variation-secondary.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--secondary--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--secondary--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--secondary--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--secondary--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--secondary--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--secondary--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--secondary--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--secondary--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--secondary--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--secondary--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--secondary--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--secondary--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--secondary--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--secondary--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--secondary--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--secondary--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--secondary--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--secondary--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--secondary--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--secondary--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--secondary--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--secondary--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--secondary--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--secondary--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--secondary--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--secondary--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--secondary--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--secondary--active);--FONT-WEIGHT:var(--digi--button--font-weight--default)}.sc-digi-button-h .digi-button--variation-function.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--function--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--function--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--function--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--function--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--function--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--function--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--function--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--function--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--function--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--function--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--function--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--function--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--function--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--function--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--function--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--function--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--function--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--function--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--function--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--function--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--function--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--function--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--function--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--function--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--function--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--function--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--function--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--function--active);--FONT-WEIGHT:var(--digi--button--font-weight--function)}.sc-digi-button-h .digi-button--variation-function.sc-digi-button:hover,.sc-digi-button-h .digi-button--variation-function.sc-digi-button:focus{text-decoration:underline}.sc-digi-button-h .digi-button--size-small.sc-digi-button{--FONT-SIZE:var(--digi--button--font-size--small);--PADDING:var(--digi--button--padding--small);--MIN-HEIGHT:var(--digi--button--min-height--small)}.sc-digi-button-h .digi-button--size-medium.sc-digi-button{--FONT-SIZE:var(--digi--button--font-size--medium);--PADDING:var(--digi--button--padding--medium);--MIN-HEIGHT:var(--digi--button--min-height--small)}.sc-digi-button-h .digi-button.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button .sc-digi-button-s>[slot^=icon]{--digi--icon--height:1em;--digi--icon--width:1em;--digi--icon--color:var(--COLOR--ICON--DEFAULT);min-height:0}@media (any-hover: hover){.sc-digi-button-h .digi-button.sc-digi-button:hover{background:var(--COLOR--BACKGROUND--HOVER);border-radius:var(--BORDER-RADIUS--HOVER);border-width:var(--BORDER-WIDTH--HOVER);border-style:var(--BORDER-STYLE--HOVER);border-color:var(--COLOR--BORDER--HOVER);color:var(--COLOR--TEXT--HOVER)}.sc-digi-button-h .digi-button:hover.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:hover .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--HOVER)}}.sc-digi-button-h .digi-button.sc-digi-button:focus-visible{background:var(--COLOR--BACKGROUND--FOCUS);color:var(--COLOR--TEXT--FOCUS);border-style:var(--BORDER-STYLE--FOCUS);border-color:var(--COLOR--BORDER--FOCUS);outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-button-h .digi-button:focus-visible.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:focus-visible .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--FOCUS)}.sc-digi-button-h .digi-button.sc-digi-button:active{background:var(--COLOR--BACKGROUND--ACTIVE);color:var(--COLOR--TEXT--ACTIVE)}.sc-digi-button-h .digi-button:active.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:active .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--ACTIVE)}.sc-digi-button-h .digi-button--icon.sc-digi-button,.sc-digi-button-h .digi-button--icon-secondary.sc-digi-button{--digi--button--display:flex;align-items:center;justify-content:var(--digi--button--justify-content--default);gap:var(--digi--button--icon--spacing)}.sc-digi-button-h .digi-button--full-width.sc-digi-button{--digi--button--width:100%;--digi--button--text-align--default:var(--digi--button--text-align--full-width);--digi--button--justify-content--default:var(--digi--button--justify-content--full-width)}";
56
- const DigiButtonStyle0 = buttonCss;
57
-
58
- const Button = class {
59
- constructor(hostRef) {
60
- registerInstance(this, hostRef);
61
- this.afOnClick = createEvent(this, "afOnClick", 7);
62
- this.afOnFocus = createEvent(this, "afOnFocus", 7);
63
- this.afOnBlur = createEvent(this, "afOnBlur", 7);
64
- this.afOnReady = createEvent(this, "afOnReady", 3);
65
- this.hasIcon = undefined;
66
- this.hasIconSecondary = undefined;
67
- this.isFullSize = undefined;
68
- this.afSize = ButtonSize.MEDIUM;
69
- this.afTabindex = undefined;
70
- this.afVariation = ButtonVariation.PRIMARY;
71
- this.afType = ButtonType.BUTTON;
72
- this.afId = randomIdGenerator('digi-button');
73
- this.afAriaLabel = undefined;
74
- this.afAriaLabelledby = undefined;
75
- this.afAriaControls = undefined;
76
- this.afForm = undefined;
77
- this.afAriaPressed = undefined;
78
- this.afAriaExpanded = undefined;
79
- this.afAriaHaspopup = undefined;
80
- this.afAriaCurrent = undefined;
81
- this.afRole = undefined;
82
- this.afAriaChecked = undefined;
83
- this.afLang = undefined;
84
- this.afDir = undefined;
85
- this.afFullWidth = false;
86
- this.afAutofocus = undefined;
87
- this.afInputRef = undefined;
88
- }
89
- fullWidthHandler() {
90
- this.isFullSize = this.afFullWidth;
91
- }
92
- /**
93
- * Hämta en referens till buttonelementet. Bra för att t.ex. sätta fokus programmatiskt.
94
- * @en Returns a reference to the button element. Handy for setting focus programmatically.
95
- */
96
- async afMGetButtonElement() {
97
- return this._button;
98
- }
99
- componentWillLoad() {
100
- this.setHasIcon();
101
- this.fullWidthHandler();
102
- }
103
- componentWillUpdate() {
104
- this.setHasIcon();
105
- }
106
- componentDidLoad() {
107
- this.afOnReady.emit();
108
- }
109
- setHasIcon() {
110
- const icon = !!this.hostElement.querySelector('[slot="icon"]');
111
- const iconSecondary = !!this.hostElement.querySelector('[slot="icon-secondary"]');
112
- if (icon) {
113
- this.hasIcon = icon;
114
- }
115
- if (iconSecondary) {
116
- this.hasIconSecondary = iconSecondary;
117
- }
118
- }
119
- get cssModifiers() {
120
- return {
121
- [`digi-button--variation-${this.afVariation}`]: !!this.afVariation,
122
- [`digi-button--size-${this.afSize}`]: !!this.afSize,
123
- 'digi-button--icon': this.hasIcon,
124
- 'digi-button--icon-secondary': this.hasIconSecondary,
125
- 'digi-button--full-width': this.isFullSize
126
- };
127
- }
128
- get pressedState() {
129
- if (this.afAriaPressed === null || this.afAriaPressed === undefined) {
130
- return;
131
- }
132
- return this.afAriaPressed ? 'true' : 'false';
133
- }
134
- get expandedState() {
135
- if (this.afAriaExpanded === null || this.afAriaExpanded === undefined) {
136
- return;
137
- }
138
- return this.afAriaExpanded ? 'true' : 'false';
139
- }
140
- get hasPopup() {
141
- if (this.afAriaHaspopup === null || this.afAriaHaspopup === undefined) {
142
- return;
143
- }
144
- return this.afAriaHaspopup ? 'true' : 'false';
145
- }
146
- clickHandler(e) {
147
- this.afOnClick.emit(e);
148
- }
149
- focusHandler(e) {
150
- this.afOnFocus.emit(e);
151
- }
152
- blurHandler(e) {
153
- this.afOnBlur.emit(e);
154
- }
155
- render() {
156
- return (h(Host, { key: '3a398d75ad83e3caa9ec54928544d5bf8315d30f' }, h("button", { key: '2159552d7e8064acbb6da5c02c28ead3d4985e85', class: Object.assign({ 'digi-button': true }, this.cssModifiers), type: this.afType, role: this.afRole, ref: (el) => {
157
- var _a, _b, _c;
158
- this._button = el;
159
- (_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
160
- // Stencil has a bug wiith form attribute so we need to set it like this
161
- // https://github.com/ionic-team/stencil/issues/2703
162
- this.afForm
163
- ? (_b = this._button) === null || _b === void 0 ? void 0 : _b.setAttribute('form', this.afForm)
164
- : (_c = this._button) === null || _c === void 0 ? void 0 : _c.removeAttribute('form');
165
- }, id: this.afId, tabindex: this.afTabindex, "aria-label": this.afAriaLabel, "aria-labelledby": this.afAriaLabelledby, "aria-controls": this.afAriaControls, "aria-pressed": this.pressedState, "aria-expanded": this.expandedState, "aria-haspopup": this.hasPopup, "aria-current": this.afAriaCurrent, "aria-checked": this.afAriaChecked, onClick: (e) => this.clickHandler(e), onFocus: (e) => this.focusHandler(e), onBlur: (e) => this.blurHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null, form: this.afForm, lang: this.afLang, dir: this.afDir }, this.hasIcon && (h("span", { key: '1188d5cb005a51e4e065b70663d06877db3a1477', class: "digi-button__icon" }, h("slot", { key: 'f90319563c18e1f82fa13f478b4d4d13ce3e9bf7', name: "icon" }))), h("span", { key: '17dce8eed2e845ca6166cf85a1c0252c2c0b8037', class: "digi-button__text" }, h("slot", { key: '2f637e48b837ecd0f0f2333349f328c497aee650' })), this.hasIconSecondary && (h("span", { key: '49ffd3361b0cc00c074e1ce332dab2de33127fcc', class: "digi-button__icon digi-button__icon--secondary" }, h("slot", { key: '367d3ba37e2fd0b7e83d600f35d02d4df303c1c0', name: "icon-secondary" }))))));
166
- }
167
- get hostElement() { return getElement(this); }
168
- static get watchers() { return {
169
- "afFullWidth": ["fullWidthHandler"]
170
- }; }
171
- };
172
- Button.style = DigiButtonStyle0;
173
-
174
- function assign(target, dirtyObject) {
175
- if (target == null) {
176
- throw new TypeError('assign requires that input parameter not be null or undefined');
177
- }
178
-
179
- dirtyObject = dirtyObject || {};
180
-
181
- for (var property in dirtyObject) {
182
- if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
183
- target[property] = dirtyObject[property];
184
- }
185
- }
186
-
187
- return target;
188
- }
189
-
190
- /**
191
- * @name isAfter
192
- * @category Common Helpers
193
- * @summary Is the first date after the second one?
194
- *
195
- * @description
196
- * Is the first date after the second one?
197
- *
198
- * ### v2.0.0 breaking changes:
199
- *
200
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
201
- *
202
- * @param {Date|Number} date - the date that should be after the other one to return true
203
- * @param {Date|Number} dateToCompare - the date to compare with
204
- * @returns {Boolean} the first date is after the second date
205
- * @throws {TypeError} 2 arguments required
206
- *
207
- * @example
208
- * // Is 10 July 1989 after 11 February 1987?
209
- * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
210
- * //=> true
211
- */
212
-
213
- function isAfter(dirtyDate, dirtyDateToCompare) {
214
- requiredArgs(2, arguments);
215
- var date = toDate(dirtyDate);
216
- var dateToCompare = toDate(dirtyDateToCompare);
217
- return date.getTime() > dateToCompare.getTime();
218
- }
219
-
220
- /**
221
- * @name isBefore
222
- * @category Common Helpers
223
- * @summary Is the first date before the second one?
224
- *
225
- * @description
226
- * Is the first date before the second one?
227
- *
228
- * ### v2.0.0 breaking changes:
229
- *
230
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
231
- *
232
- * @param {Date|Number} date - the date that should be before the other one to return true
233
- * @param {Date|Number} dateToCompare - the date to compare with
234
- * @returns {Boolean} the first date is before the second date
235
- * @throws {TypeError} 2 arguments required
236
- *
237
- * @example
238
- * // Is 10 July 1989 before 11 February 1987?
239
- * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
240
- * //=> false
241
- */
242
-
243
- function isBefore(dirtyDate, dirtyDateToCompare) {
244
- requiredArgs(2, arguments);
245
- var date = toDate(dirtyDate);
246
- var dateToCompare = toDate(dirtyDateToCompare);
247
- return date.getTime() < dateToCompare.getTime();
248
- }
249
-
250
- // See issue: https://github.com/date-fns/date-fns/issues/376
251
-
252
- function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
253
- requiredArgs(2, arguments);
254
- var options = dirtyOptions || {};
255
- var locale = options.locale;
256
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
257
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
258
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
259
-
260
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
261
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
262
- }
263
-
264
- var date = toDate(dirtyDate);
265
- var day = toInteger(dirtyDay);
266
- var currentDay = date.getUTCDay();
267
- var remainder = day % 7;
268
- var dayIndex = (remainder + 7) % 7;
269
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
270
- date.setUTCDate(date.getUTCDate() + diff);
271
- return date;
272
- }
273
-
274
- // See issue: https://github.com/date-fns/date-fns/issues/376
275
-
276
- function setUTCISODay(dirtyDate, dirtyDay) {
277
- requiredArgs(2, arguments);
278
- var day = toInteger(dirtyDay);
279
-
280
- if (day % 7 === 0) {
281
- day = day - 7;
282
- }
283
-
284
- var weekStartsOn = 1;
285
- var date = toDate(dirtyDate);
286
- var currentDay = date.getUTCDay();
287
- var remainder = day % 7;
288
- var dayIndex = (remainder + 7) % 7;
289
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
290
- date.setUTCDate(date.getUTCDate() + diff);
291
- return date;
292
- }
293
-
294
- // See issue: https://github.com/date-fns/date-fns/issues/376
295
-
296
- function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
297
- requiredArgs(2, arguments);
298
- var date = toDate(dirtyDate);
299
- var isoWeek = toInteger(dirtyISOWeek);
300
- var diff = getUTCISOWeek(date) - isoWeek;
301
- date.setUTCDate(date.getUTCDate() - diff * 7);
302
- return date;
303
- }
304
-
305
- // See issue: https://github.com/date-fns/date-fns/issues/376
306
-
307
- function setUTCWeek(dirtyDate, dirtyWeek, options) {
308
- requiredArgs(2, arguments);
309
- var date = toDate(dirtyDate);
310
- var week = toInteger(dirtyWeek);
311
- var diff = getUTCWeek(date, options) - week;
312
- date.setUTCDate(date.getUTCDate() - diff * 7);
313
- return date;
314
- }
315
-
316
- var MILLISECONDS_IN_HOUR = 3600000;
317
- var MILLISECONDS_IN_MINUTE = 60000;
318
- var MILLISECONDS_IN_SECOND = 1000;
319
- var numericPatterns = {
320
- month: /^(1[0-2]|0?\d)/,
321
- // 0 to 12
322
- date: /^(3[0-1]|[0-2]?\d)/,
323
- // 0 to 31
324
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
325
- // 0 to 366
326
- week: /^(5[0-3]|[0-4]?\d)/,
327
- // 0 to 53
328
- hour23h: /^(2[0-3]|[0-1]?\d)/,
329
- // 0 to 23
330
- hour24h: /^(2[0-4]|[0-1]?\d)/,
331
- // 0 to 24
332
- hour11h: /^(1[0-1]|0?\d)/,
333
- // 0 to 11
334
- hour12h: /^(1[0-2]|0?\d)/,
335
- // 0 to 12
336
- minute: /^[0-5]?\d/,
337
- // 0 to 59
338
- second: /^[0-5]?\d/,
339
- // 0 to 59
340
- singleDigit: /^\d/,
341
- // 0 to 9
342
- twoDigits: /^\d{1,2}/,
343
- // 0 to 99
344
- threeDigits: /^\d{1,3}/,
345
- // 0 to 999
346
- fourDigits: /^\d{1,4}/,
347
- // 0 to 9999
348
- anyDigitsSigned: /^-?\d+/,
349
- singleDigitSigned: /^-?\d/,
350
- // 0 to 9, -0 to -9
351
- twoDigitsSigned: /^-?\d{1,2}/,
352
- // 0 to 99, -0 to -99
353
- threeDigitsSigned: /^-?\d{1,3}/,
354
- // 0 to 999, -0 to -999
355
- fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
356
-
357
- };
358
- var timezonePatterns = {
359
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
360
- basic: /^([+-])(\d{2})(\d{2})|Z/,
361
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
362
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
363
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
364
- };
365
-
366
- function parseNumericPattern(pattern, string, valueCallback) {
367
- var matchResult = string.match(pattern);
368
-
369
- if (!matchResult) {
370
- return null;
371
- }
372
-
373
- var value = parseInt(matchResult[0], 10);
374
- return {
375
- value: valueCallback ? valueCallback(value) : value,
376
- rest: string.slice(matchResult[0].length)
377
- };
378
- }
379
-
380
- function parseTimezonePattern(pattern, string) {
381
- var matchResult = string.match(pattern);
382
-
383
- if (!matchResult) {
384
- return null;
385
- } // Input is 'Z'
386
-
387
-
388
- if (matchResult[0] === 'Z') {
389
- return {
390
- value: 0,
391
- rest: string.slice(1)
392
- };
393
- }
394
-
395
- var sign = matchResult[1] === '+' ? 1 : -1;
396
- var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
397
- var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
398
- var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
399
- return {
400
- value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
401
- rest: string.slice(matchResult[0].length)
402
- };
403
- }
404
-
405
- function parseAnyDigitsSigned(string, valueCallback) {
406
- return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
407
- }
408
-
409
- function parseNDigits(n, string, valueCallback) {
410
- switch (n) {
411
- case 1:
412
- return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
413
-
414
- case 2:
415
- return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
416
-
417
- case 3:
418
- return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
419
-
420
- case 4:
421
- return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
422
-
423
- default:
424
- return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
425
- }
426
- }
427
-
428
- function parseNDigitsSigned(n, string, valueCallback) {
429
- switch (n) {
430
- case 1:
431
- return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
432
-
433
- case 2:
434
- return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
435
-
436
- case 3:
437
- return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
438
-
439
- case 4:
440
- return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
441
-
442
- default:
443
- return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
444
- }
445
- }
446
-
447
- function dayPeriodEnumToHours(enumValue) {
448
- switch (enumValue) {
449
- case 'morning':
450
- return 4;
451
-
452
- case 'evening':
453
- return 17;
454
-
455
- case 'pm':
456
- case 'noon':
457
- case 'afternoon':
458
- return 12;
459
-
460
- case 'am':
461
- case 'midnight':
462
- case 'night':
463
- default:
464
- return 0;
465
- }
466
- }
467
-
468
- function normalizeTwoDigitYear(twoDigitYear, currentYear) {
469
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
470
- // 1 -> 1 AC
471
- // 0 -> 1 BC
472
- // -1 -> 2 BC
473
-
474
- var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
475
- var result;
476
-
477
- if (absCurrentYear <= 50) {
478
- result = twoDigitYear || 100;
479
- } else {
480
- var rangeEnd = absCurrentYear + 50;
481
- var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
482
- var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
483
- result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
484
- }
485
-
486
- return isCommonEra ? result : 1 - result;
487
- }
488
-
489
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
490
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
491
-
492
- function isLeapYearIndex(year) {
493
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
494
- }
495
- /*
496
- * | | Unit | | Unit |
497
- * |-----|--------------------------------|-----|--------------------------------|
498
- * | a | AM, PM | A* | Milliseconds in day |
499
- * | b | AM, PM, noon, midnight | B | Flexible day period |
500
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
501
- * | d | Day of month | D | Day of year |
502
- * | e | Local day of week | E | Day of week |
503
- * | f | | F* | Day of week in month |
504
- * | g* | Modified Julian day | G | Era |
505
- * | h | Hour [1-12] | H | Hour [0-23] |
506
- * | i! | ISO day of week | I! | ISO week of year |
507
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
508
- * | k | Hour [1-24] | K | Hour [0-11] |
509
- * | l* | (deprecated) | L | Stand-alone month |
510
- * | m | Minute | M | Month |
511
- * | n | | N | |
512
- * | o! | Ordinal number modifier | O* | Timezone (GMT) |
513
- * | p | | P | |
514
- * | q | Stand-alone quarter | Q | Quarter |
515
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
516
- * | s | Second | S | Fraction of second |
517
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
518
- * | u | Extended year | U* | Cyclic year |
519
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
520
- * | w | Local week of year | W* | Week of month |
521
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
522
- * | y | Year (abs) | Y | Local week-numbering year |
523
- * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
524
- *
525
- * Letters marked by * are not implemented but reserved by Unicode standard.
526
- *
527
- * Letters marked by ! are non-standard, but implemented by date-fns:
528
- * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
529
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
530
- * i.e. 7 for Sunday, 1 for Monday, etc.
531
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
532
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
533
- * `R` is supposed to be used in conjunction with `I` and `i`
534
- * for universal ISO week-numbering date, whereas
535
- * `Y` is supposed to be used in conjunction with `w` and `e`
536
- * for week-numbering date specific to the locale.
537
- */
538
-
539
-
540
- var parsers = {
541
- // Era
542
- G: {
543
- priority: 140,
544
- parse: function (string, token, match, _options) {
545
- switch (token) {
546
- // AD, BC
547
- case 'G':
548
- case 'GG':
549
- case 'GGG':
550
- return match.era(string, {
551
- width: 'abbreviated'
552
- }) || match.era(string, {
553
- width: 'narrow'
554
- });
555
- // A, B
556
-
557
- case 'GGGGG':
558
- return match.era(string, {
559
- width: 'narrow'
560
- });
561
- // Anno Domini, Before Christ
562
-
563
- case 'GGGG':
564
- default:
565
- return match.era(string, {
566
- width: 'wide'
567
- }) || match.era(string, {
568
- width: 'abbreviated'
569
- }) || match.era(string, {
570
- width: 'narrow'
571
- });
572
- }
573
- },
574
- set: function (date, flags, value, _options) {
575
- flags.era = value;
576
- date.setUTCFullYear(value, 0, 1);
577
- date.setUTCHours(0, 0, 0, 0);
578
- return date;
579
- },
580
- incompatibleTokens: ['R', 'u', 't', 'T']
581
- },
582
- // Year
583
- y: {
584
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
585
- // | Year | y | yy | yyy | yyyy | yyyyy |
586
- // |----------|-------|----|-------|-------|-------|
587
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
588
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
589
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
590
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
591
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
592
- priority: 130,
593
- parse: function (string, token, match, _options) {
594
- var valueCallback = function (year) {
595
- return {
596
- year: year,
597
- isTwoDigitYear: token === 'yy'
598
- };
599
- };
600
-
601
- switch (token) {
602
- case 'y':
603
- return parseNDigits(4, string, valueCallback);
604
-
605
- case 'yo':
606
- return match.ordinalNumber(string, {
607
- unit: 'year',
608
- valueCallback: valueCallback
609
- });
610
-
611
- default:
612
- return parseNDigits(token.length, string, valueCallback);
613
- }
614
- },
615
- validate: function (_date, value, _options) {
616
- return value.isTwoDigitYear || value.year > 0;
617
- },
618
- set: function (date, flags, value, _options) {
619
- var currentYear = date.getUTCFullYear();
620
-
621
- if (value.isTwoDigitYear) {
622
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
623
- date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
624
- date.setUTCHours(0, 0, 0, 0);
625
- return date;
626
- }
627
-
628
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
629
- date.setUTCFullYear(year, 0, 1);
630
- date.setUTCHours(0, 0, 0, 0);
631
- return date;
632
- },
633
- incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
634
- },
635
- // Local week-numbering year
636
- Y: {
637
- priority: 130,
638
- parse: function (string, token, match, _options) {
639
- var valueCallback = function (year) {
640
- return {
641
- year: year,
642
- isTwoDigitYear: token === 'YY'
643
- };
644
- };
645
-
646
- switch (token) {
647
- case 'Y':
648
- return parseNDigits(4, string, valueCallback);
649
-
650
- case 'Yo':
651
- return match.ordinalNumber(string, {
652
- unit: 'year',
653
- valueCallback: valueCallback
654
- });
655
-
656
- default:
657
- return parseNDigits(token.length, string, valueCallback);
658
- }
659
- },
660
- validate: function (_date, value, _options) {
661
- return value.isTwoDigitYear || value.year > 0;
662
- },
663
- set: function (date, flags, value, options) {
664
- var currentYear = getUTCWeekYear(date, options);
665
-
666
- if (value.isTwoDigitYear) {
667
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
668
- date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
669
- date.setUTCHours(0, 0, 0, 0);
670
- return startOfUTCWeek(date, options);
671
- }
672
-
673
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
674
- date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
675
- date.setUTCHours(0, 0, 0, 0);
676
- return startOfUTCWeek(date, options);
677
- },
678
- incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
679
- },
680
- // ISO week-numbering year
681
- R: {
682
- priority: 130,
683
- parse: function (string, token, _match, _options) {
684
- if (token === 'R') {
685
- return parseNDigitsSigned(4, string);
686
- }
687
-
688
- return parseNDigitsSigned(token.length, string);
689
- },
690
- set: function (_date, _flags, value, _options) {
691
- var firstWeekOfYear = new Date(0);
692
- firstWeekOfYear.setUTCFullYear(value, 0, 4);
693
- firstWeekOfYear.setUTCHours(0, 0, 0, 0);
694
- return startOfUTCISOWeek(firstWeekOfYear);
695
- },
696
- incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
697
- },
698
- // Extended year
699
- u: {
700
- priority: 130,
701
- parse: function (string, token, _match, _options) {
702
- if (token === 'u') {
703
- return parseNDigitsSigned(4, string);
704
- }
705
-
706
- return parseNDigitsSigned(token.length, string);
707
- },
708
- set: function (date, _flags, value, _options) {
709
- date.setUTCFullYear(value, 0, 1);
710
- date.setUTCHours(0, 0, 0, 0);
711
- return date;
712
- },
713
- incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
714
- },
715
- // Quarter
716
- Q: {
717
- priority: 120,
718
- parse: function (string, token, match, _options) {
719
- switch (token) {
720
- // 1, 2, 3, 4
721
- case 'Q':
722
- case 'QQ':
723
- // 01, 02, 03, 04
724
- return parseNDigits(token.length, string);
725
- // 1st, 2nd, 3rd, 4th
726
-
727
- case 'Qo':
728
- return match.ordinalNumber(string, {
729
- unit: 'quarter'
730
- });
731
- // Q1, Q2, Q3, Q4
732
-
733
- case 'QQQ':
734
- return match.quarter(string, {
735
- width: 'abbreviated',
736
- context: 'formatting'
737
- }) || match.quarter(string, {
738
- width: 'narrow',
739
- context: 'formatting'
740
- });
741
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
742
-
743
- case 'QQQQQ':
744
- return match.quarter(string, {
745
- width: 'narrow',
746
- context: 'formatting'
747
- });
748
- // 1st quarter, 2nd quarter, ...
749
-
750
- case 'QQQQ':
751
- default:
752
- return match.quarter(string, {
753
- width: 'wide',
754
- context: 'formatting'
755
- }) || match.quarter(string, {
756
- width: 'abbreviated',
757
- context: 'formatting'
758
- }) || match.quarter(string, {
759
- width: 'narrow',
760
- context: 'formatting'
761
- });
762
- }
763
- },
764
- validate: function (_date, value, _options) {
765
- return value >= 1 && value <= 4;
766
- },
767
- set: function (date, _flags, value, _options) {
768
- date.setUTCMonth((value - 1) * 3, 1);
769
- date.setUTCHours(0, 0, 0, 0);
770
- return date;
771
- },
772
- incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
773
- },
774
- // Stand-alone quarter
775
- q: {
776
- priority: 120,
777
- parse: function (string, token, match, _options) {
778
- switch (token) {
779
- // 1, 2, 3, 4
780
- case 'q':
781
- case 'qq':
782
- // 01, 02, 03, 04
783
- return parseNDigits(token.length, string);
784
- // 1st, 2nd, 3rd, 4th
785
-
786
- case 'qo':
787
- return match.ordinalNumber(string, {
788
- unit: 'quarter'
789
- });
790
- // Q1, Q2, Q3, Q4
791
-
792
- case 'qqq':
793
- return match.quarter(string, {
794
- width: 'abbreviated',
795
- context: 'standalone'
796
- }) || match.quarter(string, {
797
- width: 'narrow',
798
- context: 'standalone'
799
- });
800
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
801
-
802
- case 'qqqqq':
803
- return match.quarter(string, {
804
- width: 'narrow',
805
- context: 'standalone'
806
- });
807
- // 1st quarter, 2nd quarter, ...
808
-
809
- case 'qqqq':
810
- default:
811
- return match.quarter(string, {
812
- width: 'wide',
813
- context: 'standalone'
814
- }) || match.quarter(string, {
815
- width: 'abbreviated',
816
- context: 'standalone'
817
- }) || match.quarter(string, {
818
- width: 'narrow',
819
- context: 'standalone'
820
- });
821
- }
822
- },
823
- validate: function (_date, value, _options) {
824
- return value >= 1 && value <= 4;
825
- },
826
- set: function (date, _flags, value, _options) {
827
- date.setUTCMonth((value - 1) * 3, 1);
828
- date.setUTCHours(0, 0, 0, 0);
829
- return date;
830
- },
831
- incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
832
- },
833
- // Month
834
- M: {
835
- priority: 110,
836
- parse: function (string, token, match, _options) {
837
- var valueCallback = function (value) {
838
- return value - 1;
839
- };
840
-
841
- switch (token) {
842
- // 1, 2, ..., 12
843
- case 'M':
844
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
845
- // 01, 02, ..., 12
846
-
847
- case 'MM':
848
- return parseNDigits(2, string, valueCallback);
849
- // 1st, 2nd, ..., 12th
850
-
851
- case 'Mo':
852
- return match.ordinalNumber(string, {
853
- unit: 'month',
854
- valueCallback: valueCallback
855
- });
856
- // Jan, Feb, ..., Dec
857
-
858
- case 'MMM':
859
- return match.month(string, {
860
- width: 'abbreviated',
861
- context: 'formatting'
862
- }) || match.month(string, {
863
- width: 'narrow',
864
- context: 'formatting'
865
- });
866
- // J, F, ..., D
867
-
868
- case 'MMMMM':
869
- return match.month(string, {
870
- width: 'narrow',
871
- context: 'formatting'
872
- });
873
- // January, February, ..., December
874
-
875
- case 'MMMM':
876
- default:
877
- return match.month(string, {
878
- width: 'wide',
879
- context: 'formatting'
880
- }) || match.month(string, {
881
- width: 'abbreviated',
882
- context: 'formatting'
883
- }) || match.month(string, {
884
- width: 'narrow',
885
- context: 'formatting'
886
- });
887
- }
888
- },
889
- validate: function (_date, value, _options) {
890
- return value >= 0 && value <= 11;
891
- },
892
- set: function (date, _flags, value, _options) {
893
- date.setUTCMonth(value, 1);
894
- date.setUTCHours(0, 0, 0, 0);
895
- return date;
896
- },
897
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
898
- },
899
- // Stand-alone month
900
- L: {
901
- priority: 110,
902
- parse: function (string, token, match, _options) {
903
- var valueCallback = function (value) {
904
- return value - 1;
905
- };
906
-
907
- switch (token) {
908
- // 1, 2, ..., 12
909
- case 'L':
910
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
911
- // 01, 02, ..., 12
912
-
913
- case 'LL':
914
- return parseNDigits(2, string, valueCallback);
915
- // 1st, 2nd, ..., 12th
916
-
917
- case 'Lo':
918
- return match.ordinalNumber(string, {
919
- unit: 'month',
920
- valueCallback: valueCallback
921
- });
922
- // Jan, Feb, ..., Dec
923
-
924
- case 'LLL':
925
- return match.month(string, {
926
- width: 'abbreviated',
927
- context: 'standalone'
928
- }) || match.month(string, {
929
- width: 'narrow',
930
- context: 'standalone'
931
- });
932
- // J, F, ..., D
933
-
934
- case 'LLLLL':
935
- return match.month(string, {
936
- width: 'narrow',
937
- context: 'standalone'
938
- });
939
- // January, February, ..., December
940
-
941
- case 'LLLL':
942
- default:
943
- return match.month(string, {
944
- width: 'wide',
945
- context: 'standalone'
946
- }) || match.month(string, {
947
- width: 'abbreviated',
948
- context: 'standalone'
949
- }) || match.month(string, {
950
- width: 'narrow',
951
- context: 'standalone'
952
- });
953
- }
954
- },
955
- validate: function (_date, value, _options) {
956
- return value >= 0 && value <= 11;
957
- },
958
- set: function (date, _flags, value, _options) {
959
- date.setUTCMonth(value, 1);
960
- date.setUTCHours(0, 0, 0, 0);
961
- return date;
962
- },
963
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
964
- },
965
- // Local week of year
966
- w: {
967
- priority: 100,
968
- parse: function (string, token, match, _options) {
969
- switch (token) {
970
- case 'w':
971
- return parseNumericPattern(numericPatterns.week, string);
972
-
973
- case 'wo':
974
- return match.ordinalNumber(string, {
975
- unit: 'week'
976
- });
977
-
978
- default:
979
- return parseNDigits(token.length, string);
980
- }
981
- },
982
- validate: function (_date, value, _options) {
983
- return value >= 1 && value <= 53;
984
- },
985
- set: function (date, _flags, value, options) {
986
- return startOfUTCWeek(setUTCWeek(date, value, options), options);
987
- },
988
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
989
- },
990
- // ISO week of year
991
- I: {
992
- priority: 100,
993
- parse: function (string, token, match, _options) {
994
- switch (token) {
995
- case 'I':
996
- return parseNumericPattern(numericPatterns.week, string);
997
-
998
- case 'Io':
999
- return match.ordinalNumber(string, {
1000
- unit: 'week'
1001
- });
1002
-
1003
- default:
1004
- return parseNDigits(token.length, string);
1005
- }
1006
- },
1007
- validate: function (_date, value, _options) {
1008
- return value >= 1 && value <= 53;
1009
- },
1010
- set: function (date, _flags, value, options) {
1011
- return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
1012
- },
1013
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
1014
- },
1015
- // Day of the month
1016
- d: {
1017
- priority: 90,
1018
- subPriority: 1,
1019
- parse: function (string, token, match, _options) {
1020
- switch (token) {
1021
- case 'd':
1022
- return parseNumericPattern(numericPatterns.date, string);
1023
-
1024
- case 'do':
1025
- return match.ordinalNumber(string, {
1026
- unit: 'date'
1027
- });
1028
-
1029
- default:
1030
- return parseNDigits(token.length, string);
1031
- }
1032
- },
1033
- validate: function (date, value, _options) {
1034
- var year = date.getUTCFullYear();
1035
- var isLeapYear = isLeapYearIndex(year);
1036
- var month = date.getUTCMonth();
1037
-
1038
- if (isLeapYear) {
1039
- return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
1040
- } else {
1041
- return value >= 1 && value <= DAYS_IN_MONTH[month];
1042
- }
1043
- },
1044
- set: function (date, _flags, value, _options) {
1045
- date.setUTCDate(value);
1046
- date.setUTCHours(0, 0, 0, 0);
1047
- return date;
1048
- },
1049
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
1050
- },
1051
- // Day of year
1052
- D: {
1053
- priority: 90,
1054
- subPriority: 1,
1055
- parse: function (string, token, match, _options) {
1056
- switch (token) {
1057
- case 'D':
1058
- case 'DD':
1059
- return parseNumericPattern(numericPatterns.dayOfYear, string);
1060
-
1061
- case 'Do':
1062
- return match.ordinalNumber(string, {
1063
- unit: 'date'
1064
- });
1065
-
1066
- default:
1067
- return parseNDigits(token.length, string);
1068
- }
1069
- },
1070
- validate: function (date, value, _options) {
1071
- var year = date.getUTCFullYear();
1072
- var isLeapYear = isLeapYearIndex(year);
1073
-
1074
- if (isLeapYear) {
1075
- return value >= 1 && value <= 366;
1076
- } else {
1077
- return value >= 1 && value <= 365;
1078
- }
1079
- },
1080
- set: function (date, _flags, value, _options) {
1081
- date.setUTCMonth(0, value);
1082
- date.setUTCHours(0, 0, 0, 0);
1083
- return date;
1084
- },
1085
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
1086
- },
1087
- // Day of week
1088
- E: {
1089
- priority: 90,
1090
- parse: function (string, token, match, _options) {
1091
- switch (token) {
1092
- // Tue
1093
- case 'E':
1094
- case 'EE':
1095
- case 'EEE':
1096
- return match.day(string, {
1097
- width: 'abbreviated',
1098
- context: 'formatting'
1099
- }) || match.day(string, {
1100
- width: 'short',
1101
- context: 'formatting'
1102
- }) || match.day(string, {
1103
- width: 'narrow',
1104
- context: 'formatting'
1105
- });
1106
- // T
1107
-
1108
- case 'EEEEE':
1109
- return match.day(string, {
1110
- width: 'narrow',
1111
- context: 'formatting'
1112
- });
1113
- // Tu
1114
-
1115
- case 'EEEEEE':
1116
- return match.day(string, {
1117
- width: 'short',
1118
- context: 'formatting'
1119
- }) || match.day(string, {
1120
- width: 'narrow',
1121
- context: 'formatting'
1122
- });
1123
- // Tuesday
1124
-
1125
- case 'EEEE':
1126
- default:
1127
- return match.day(string, {
1128
- width: 'wide',
1129
- context: 'formatting'
1130
- }) || match.day(string, {
1131
- width: 'abbreviated',
1132
- context: 'formatting'
1133
- }) || match.day(string, {
1134
- width: 'short',
1135
- context: 'formatting'
1136
- }) || match.day(string, {
1137
- width: 'narrow',
1138
- context: 'formatting'
1139
- });
1140
- }
1141
- },
1142
- validate: function (_date, value, _options) {
1143
- return value >= 0 && value <= 6;
1144
- },
1145
- set: function (date, _flags, value, options) {
1146
- date = setUTCDay(date, value, options);
1147
- date.setUTCHours(0, 0, 0, 0);
1148
- return date;
1149
- },
1150
- incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
1151
- },
1152
- // Local day of week
1153
- e: {
1154
- priority: 90,
1155
- parse: function (string, token, match, options) {
1156
- var valueCallback = function (value) {
1157
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1158
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1159
- };
1160
-
1161
- switch (token) {
1162
- // 3
1163
- case 'e':
1164
- case 'ee':
1165
- // 03
1166
- return parseNDigits(token.length, string, valueCallback);
1167
- // 3rd
1168
-
1169
- case 'eo':
1170
- return match.ordinalNumber(string, {
1171
- unit: 'day',
1172
- valueCallback: valueCallback
1173
- });
1174
- // Tue
1175
-
1176
- case 'eee':
1177
- return match.day(string, {
1178
- width: 'abbreviated',
1179
- context: 'formatting'
1180
- }) || match.day(string, {
1181
- width: 'short',
1182
- context: 'formatting'
1183
- }) || match.day(string, {
1184
- width: 'narrow',
1185
- context: 'formatting'
1186
- });
1187
- // T
1188
-
1189
- case 'eeeee':
1190
- return match.day(string, {
1191
- width: 'narrow',
1192
- context: 'formatting'
1193
- });
1194
- // Tu
1195
-
1196
- case 'eeeeee':
1197
- return match.day(string, {
1198
- width: 'short',
1199
- context: 'formatting'
1200
- }) || match.day(string, {
1201
- width: 'narrow',
1202
- context: 'formatting'
1203
- });
1204
- // Tuesday
1205
-
1206
- case 'eeee':
1207
- default:
1208
- return match.day(string, {
1209
- width: 'wide',
1210
- context: 'formatting'
1211
- }) || match.day(string, {
1212
- width: 'abbreviated',
1213
- context: 'formatting'
1214
- }) || match.day(string, {
1215
- width: 'short',
1216
- context: 'formatting'
1217
- }) || match.day(string, {
1218
- width: 'narrow',
1219
- context: 'formatting'
1220
- });
1221
- }
1222
- },
1223
- validate: function (_date, value, _options) {
1224
- return value >= 0 && value <= 6;
1225
- },
1226
- set: function (date, _flags, value, options) {
1227
- date = setUTCDay(date, value, options);
1228
- date.setUTCHours(0, 0, 0, 0);
1229
- return date;
1230
- },
1231
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1232
- },
1233
- // Stand-alone local day of week
1234
- c: {
1235
- priority: 90,
1236
- parse: function (string, token, match, options) {
1237
- var valueCallback = function (value) {
1238
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1239
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1240
- };
1241
-
1242
- switch (token) {
1243
- // 3
1244
- case 'c':
1245
- case 'cc':
1246
- // 03
1247
- return parseNDigits(token.length, string, valueCallback);
1248
- // 3rd
1249
-
1250
- case 'co':
1251
- return match.ordinalNumber(string, {
1252
- unit: 'day',
1253
- valueCallback: valueCallback
1254
- });
1255
- // Tue
1256
-
1257
- case 'ccc':
1258
- return match.day(string, {
1259
- width: 'abbreviated',
1260
- context: 'standalone'
1261
- }) || match.day(string, {
1262
- width: 'short',
1263
- context: 'standalone'
1264
- }) || match.day(string, {
1265
- width: 'narrow',
1266
- context: 'standalone'
1267
- });
1268
- // T
1269
-
1270
- case 'ccccc':
1271
- return match.day(string, {
1272
- width: 'narrow',
1273
- context: 'standalone'
1274
- });
1275
- // Tu
1276
-
1277
- case 'cccccc':
1278
- return match.day(string, {
1279
- width: 'short',
1280
- context: 'standalone'
1281
- }) || match.day(string, {
1282
- width: 'narrow',
1283
- context: 'standalone'
1284
- });
1285
- // Tuesday
1286
-
1287
- case 'cccc':
1288
- default:
1289
- return match.day(string, {
1290
- width: 'wide',
1291
- context: 'standalone'
1292
- }) || match.day(string, {
1293
- width: 'abbreviated',
1294
- context: 'standalone'
1295
- }) || match.day(string, {
1296
- width: 'short',
1297
- context: 'standalone'
1298
- }) || match.day(string, {
1299
- width: 'narrow',
1300
- context: 'standalone'
1301
- });
1302
- }
1303
- },
1304
- validate: function (_date, value, _options) {
1305
- return value >= 0 && value <= 6;
1306
- },
1307
- set: function (date, _flags, value, options) {
1308
- date = setUTCDay(date, value, options);
1309
- date.setUTCHours(0, 0, 0, 0);
1310
- return date;
1311
- },
1312
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1313
- },
1314
- // ISO day of week
1315
- i: {
1316
- priority: 90,
1317
- parse: function (string, token, match, _options) {
1318
- var valueCallback = function (value) {
1319
- if (value === 0) {
1320
- return 7;
1321
- }
1322
-
1323
- return value;
1324
- };
1325
-
1326
- switch (token) {
1327
- // 2
1328
- case 'i':
1329
- case 'ii':
1330
- // 02
1331
- return parseNDigits(token.length, string);
1332
- // 2nd
1333
-
1334
- case 'io':
1335
- return match.ordinalNumber(string, {
1336
- unit: 'day'
1337
- });
1338
- // Tue
1339
-
1340
- case 'iii':
1341
- return match.day(string, {
1342
- width: 'abbreviated',
1343
- context: 'formatting',
1344
- valueCallback: valueCallback
1345
- }) || match.day(string, {
1346
- width: 'short',
1347
- context: 'formatting',
1348
- valueCallback: valueCallback
1349
- }) || match.day(string, {
1350
- width: 'narrow',
1351
- context: 'formatting',
1352
- valueCallback: valueCallback
1353
- });
1354
- // T
1355
-
1356
- case 'iiiii':
1357
- return match.day(string, {
1358
- width: 'narrow',
1359
- context: 'formatting',
1360
- valueCallback: valueCallback
1361
- });
1362
- // Tu
1363
-
1364
- case 'iiiiii':
1365
- return match.day(string, {
1366
- width: 'short',
1367
- context: 'formatting',
1368
- valueCallback: valueCallback
1369
- }) || match.day(string, {
1370
- width: 'narrow',
1371
- context: 'formatting',
1372
- valueCallback: valueCallback
1373
- });
1374
- // Tuesday
1375
-
1376
- case 'iiii':
1377
- default:
1378
- return match.day(string, {
1379
- width: 'wide',
1380
- context: 'formatting',
1381
- valueCallback: valueCallback
1382
- }) || match.day(string, {
1383
- width: 'abbreviated',
1384
- context: 'formatting',
1385
- valueCallback: valueCallback
1386
- }) || match.day(string, {
1387
- width: 'short',
1388
- context: 'formatting',
1389
- valueCallback: valueCallback
1390
- }) || match.day(string, {
1391
- width: 'narrow',
1392
- context: 'formatting',
1393
- valueCallback: valueCallback
1394
- });
1395
- }
1396
- },
1397
- validate: function (_date, value, _options) {
1398
- return value >= 1 && value <= 7;
1399
- },
1400
- set: function (date, _flags, value, options) {
1401
- date = setUTCISODay(date, value, options);
1402
- date.setUTCHours(0, 0, 0, 0);
1403
- return date;
1404
- },
1405
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1406
- },
1407
- // AM or PM
1408
- a: {
1409
- priority: 80,
1410
- parse: function (string, token, match, _options) {
1411
- switch (token) {
1412
- case 'a':
1413
- case 'aa':
1414
- case 'aaa':
1415
- return match.dayPeriod(string, {
1416
- width: 'abbreviated',
1417
- context: 'formatting'
1418
- }) || match.dayPeriod(string, {
1419
- width: 'narrow',
1420
- context: 'formatting'
1421
- });
1422
-
1423
- case 'aaaaa':
1424
- return match.dayPeriod(string, {
1425
- width: 'narrow',
1426
- context: 'formatting'
1427
- });
1428
-
1429
- case 'aaaa':
1430
- default:
1431
- return match.dayPeriod(string, {
1432
- width: 'wide',
1433
- context: 'formatting'
1434
- }) || match.dayPeriod(string, {
1435
- width: 'abbreviated',
1436
- context: 'formatting'
1437
- }) || match.dayPeriod(string, {
1438
- width: 'narrow',
1439
- context: 'formatting'
1440
- });
1441
- }
1442
- },
1443
- set: function (date, _flags, value, _options) {
1444
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1445
- return date;
1446
- },
1447
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1448
- },
1449
- // AM, PM, midnight
1450
- b: {
1451
- priority: 80,
1452
- parse: function (string, token, match, _options) {
1453
- switch (token) {
1454
- case 'b':
1455
- case 'bb':
1456
- case 'bbb':
1457
- return match.dayPeriod(string, {
1458
- width: 'abbreviated',
1459
- context: 'formatting'
1460
- }) || match.dayPeriod(string, {
1461
- width: 'narrow',
1462
- context: 'formatting'
1463
- });
1464
-
1465
- case 'bbbbb':
1466
- return match.dayPeriod(string, {
1467
- width: 'narrow',
1468
- context: 'formatting'
1469
- });
1470
-
1471
- case 'bbbb':
1472
- default:
1473
- return match.dayPeriod(string, {
1474
- width: 'wide',
1475
- context: 'formatting'
1476
- }) || match.dayPeriod(string, {
1477
- width: 'abbreviated',
1478
- context: 'formatting'
1479
- }) || match.dayPeriod(string, {
1480
- width: 'narrow',
1481
- context: 'formatting'
1482
- });
1483
- }
1484
- },
1485
- set: function (date, _flags, value, _options) {
1486
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1487
- return date;
1488
- },
1489
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1490
- },
1491
- // in the morning, in the afternoon, in the evening, at night
1492
- B: {
1493
- priority: 80,
1494
- parse: function (string, token, match, _options) {
1495
- switch (token) {
1496
- case 'B':
1497
- case 'BB':
1498
- case 'BBB':
1499
- return match.dayPeriod(string, {
1500
- width: 'abbreviated',
1501
- context: 'formatting'
1502
- }) || match.dayPeriod(string, {
1503
- width: 'narrow',
1504
- context: 'formatting'
1505
- });
1506
-
1507
- case 'BBBBB':
1508
- return match.dayPeriod(string, {
1509
- width: 'narrow',
1510
- context: 'formatting'
1511
- });
1512
-
1513
- case 'BBBB':
1514
- default:
1515
- return match.dayPeriod(string, {
1516
- width: 'wide',
1517
- context: 'formatting'
1518
- }) || match.dayPeriod(string, {
1519
- width: 'abbreviated',
1520
- context: 'formatting'
1521
- }) || match.dayPeriod(string, {
1522
- width: 'narrow',
1523
- context: 'formatting'
1524
- });
1525
- }
1526
- },
1527
- set: function (date, _flags, value, _options) {
1528
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1529
- return date;
1530
- },
1531
- incompatibleTokens: ['a', 'b', 't', 'T']
1532
- },
1533
- // Hour [1-12]
1534
- h: {
1535
- priority: 70,
1536
- parse: function (string, token, match, _options) {
1537
- switch (token) {
1538
- case 'h':
1539
- return parseNumericPattern(numericPatterns.hour12h, string);
1540
-
1541
- case 'ho':
1542
- return match.ordinalNumber(string, {
1543
- unit: 'hour'
1544
- });
1545
-
1546
- default:
1547
- return parseNDigits(token.length, string);
1548
- }
1549
- },
1550
- validate: function (_date, value, _options) {
1551
- return value >= 1 && value <= 12;
1552
- },
1553
- set: function (date, _flags, value, _options) {
1554
- var isPM = date.getUTCHours() >= 12;
1555
-
1556
- if (isPM && value < 12) {
1557
- date.setUTCHours(value + 12, 0, 0, 0);
1558
- } else if (!isPM && value === 12) {
1559
- date.setUTCHours(0, 0, 0, 0);
1560
- } else {
1561
- date.setUTCHours(value, 0, 0, 0);
1562
- }
1563
-
1564
- return date;
1565
- },
1566
- incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1567
- },
1568
- // Hour [0-23]
1569
- H: {
1570
- priority: 70,
1571
- parse: function (string, token, match, _options) {
1572
- switch (token) {
1573
- case 'H':
1574
- return parseNumericPattern(numericPatterns.hour23h, string);
1575
-
1576
- case 'Ho':
1577
- return match.ordinalNumber(string, {
1578
- unit: 'hour'
1579
- });
1580
-
1581
- default:
1582
- return parseNDigits(token.length, string);
1583
- }
1584
- },
1585
- validate: function (_date, value, _options) {
1586
- return value >= 0 && value <= 23;
1587
- },
1588
- set: function (date, _flags, value, _options) {
1589
- date.setUTCHours(value, 0, 0, 0);
1590
- return date;
1591
- },
1592
- incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1593
- },
1594
- // Hour [0-11]
1595
- K: {
1596
- priority: 70,
1597
- parse: function (string, token, match, _options) {
1598
- switch (token) {
1599
- case 'K':
1600
- return parseNumericPattern(numericPatterns.hour11h, string);
1601
-
1602
- case 'Ko':
1603
- return match.ordinalNumber(string, {
1604
- unit: 'hour'
1605
- });
1606
-
1607
- default:
1608
- return parseNDigits(token.length, string);
1609
- }
1610
- },
1611
- validate: function (_date, value, _options) {
1612
- return value >= 0 && value <= 11;
1613
- },
1614
- set: function (date, _flags, value, _options) {
1615
- var isPM = date.getUTCHours() >= 12;
1616
-
1617
- if (isPM && value < 12) {
1618
- date.setUTCHours(value + 12, 0, 0, 0);
1619
- } else {
1620
- date.setUTCHours(value, 0, 0, 0);
1621
- }
1622
-
1623
- return date;
1624
- },
1625
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1626
- },
1627
- // Hour [1-24]
1628
- k: {
1629
- priority: 70,
1630
- parse: function (string, token, match, _options) {
1631
- switch (token) {
1632
- case 'k':
1633
- return parseNumericPattern(numericPatterns.hour24h, string);
1634
-
1635
- case 'ko':
1636
- return match.ordinalNumber(string, {
1637
- unit: 'hour'
1638
- });
1639
-
1640
- default:
1641
- return parseNDigits(token.length, string);
1642
- }
1643
- },
1644
- validate: function (_date, value, _options) {
1645
- return value >= 1 && value <= 24;
1646
- },
1647
- set: function (date, _flags, value, _options) {
1648
- var hours = value <= 24 ? value % 24 : value;
1649
- date.setUTCHours(hours, 0, 0, 0);
1650
- return date;
1651
- },
1652
- incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1653
- },
1654
- // Minute
1655
- m: {
1656
- priority: 60,
1657
- parse: function (string, token, match, _options) {
1658
- switch (token) {
1659
- case 'm':
1660
- return parseNumericPattern(numericPatterns.minute, string);
1661
-
1662
- case 'mo':
1663
- return match.ordinalNumber(string, {
1664
- unit: 'minute'
1665
- });
1666
-
1667
- default:
1668
- return parseNDigits(token.length, string);
1669
- }
1670
- },
1671
- validate: function (_date, value, _options) {
1672
- return value >= 0 && value <= 59;
1673
- },
1674
- set: function (date, _flags, value, _options) {
1675
- date.setUTCMinutes(value, 0, 0);
1676
- return date;
1677
- },
1678
- incompatibleTokens: ['t', 'T']
1679
- },
1680
- // Second
1681
- s: {
1682
- priority: 50,
1683
- parse: function (string, token, match, _options) {
1684
- switch (token) {
1685
- case 's':
1686
- return parseNumericPattern(numericPatterns.second, string);
1687
-
1688
- case 'so':
1689
- return match.ordinalNumber(string, {
1690
- unit: 'second'
1691
- });
1692
-
1693
- default:
1694
- return parseNDigits(token.length, string);
1695
- }
1696
- },
1697
- validate: function (_date, value, _options) {
1698
- return value >= 0 && value <= 59;
1699
- },
1700
- set: function (date, _flags, value, _options) {
1701
- date.setUTCSeconds(value, 0);
1702
- return date;
1703
- },
1704
- incompatibleTokens: ['t', 'T']
1705
- },
1706
- // Fraction of second
1707
- S: {
1708
- priority: 30,
1709
- parse: function (string, token, _match, _options) {
1710
- var valueCallback = function (value) {
1711
- return Math.floor(value * Math.pow(10, -token.length + 3));
1712
- };
1713
-
1714
- return parseNDigits(token.length, string, valueCallback);
1715
- },
1716
- set: function (date, _flags, value, _options) {
1717
- date.setUTCMilliseconds(value);
1718
- return date;
1719
- },
1720
- incompatibleTokens: ['t', 'T']
1721
- },
1722
- // Timezone (ISO-8601. +00:00 is `'Z'`)
1723
- X: {
1724
- priority: 10,
1725
- parse: function (string, token, _match, _options) {
1726
- switch (token) {
1727
- case 'X':
1728
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1729
-
1730
- case 'XX':
1731
- return parseTimezonePattern(timezonePatterns.basic, string);
1732
-
1733
- case 'XXXX':
1734
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1735
-
1736
- case 'XXXXX':
1737
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1738
-
1739
- case 'XXX':
1740
- default:
1741
- return parseTimezonePattern(timezonePatterns.extended, string);
1742
- }
1743
- },
1744
- set: function (date, flags, value, _options) {
1745
- if (flags.timestampIsSet) {
1746
- return date;
1747
- }
1748
-
1749
- return new Date(date.getTime() - value);
1750
- },
1751
- incompatibleTokens: ['t', 'T', 'x']
1752
- },
1753
- // Timezone (ISO-8601)
1754
- x: {
1755
- priority: 10,
1756
- parse: function (string, token, _match, _options) {
1757
- switch (token) {
1758
- case 'x':
1759
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1760
-
1761
- case 'xx':
1762
- return parseTimezonePattern(timezonePatterns.basic, string);
1763
-
1764
- case 'xxxx':
1765
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1766
-
1767
- case 'xxxxx':
1768
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1769
-
1770
- case 'xxx':
1771
- default:
1772
- return parseTimezonePattern(timezonePatterns.extended, string);
1773
- }
1774
- },
1775
- set: function (date, flags, value, _options) {
1776
- if (flags.timestampIsSet) {
1777
- return date;
1778
- }
1779
-
1780
- return new Date(date.getTime() - value);
1781
- },
1782
- incompatibleTokens: ['t', 'T', 'X']
1783
- },
1784
- // Seconds timestamp
1785
- t: {
1786
- priority: 40,
1787
- parse: function (string, _token, _match, _options) {
1788
- return parseAnyDigitsSigned(string);
1789
- },
1790
- set: function (_date, _flags, value, _options) {
1791
- return [new Date(value * 1000), {
1792
- timestampIsSet: true
1793
- }];
1794
- },
1795
- incompatibleTokens: '*'
1796
- },
1797
- // Milliseconds timestamp
1798
- T: {
1799
- priority: 20,
1800
- parse: function (string, _token, _match, _options) {
1801
- return parseAnyDigitsSigned(string);
1802
- },
1803
- set: function (_date, _flags, value, _options) {
1804
- return [new Date(value), {
1805
- timestampIsSet: true
1806
- }];
1807
- },
1808
- incompatibleTokens: '*'
1809
- }
1810
- };
1811
- const parsers$1 = parsers;
1812
-
1813
- var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1814
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1815
- // (one of the certain letters followed by `o`)
1816
- // - (\w)\1* matches any sequences of the same letter
1817
- // - '' matches two quote characters in a row
1818
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1819
- // except a single quote symbol, which ends the sequence.
1820
- // Two quote characters do not end the sequence.
1821
- // If there is no matching single quote
1822
- // then the sequence will continue until the end of the string.
1823
- // - . matches any single character unmatched by previous parts of the RegExps
1824
-
1825
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1826
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1827
-
1828
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1829
- var escapedStringRegExp = /^'([^]*?)'?$/;
1830
- var doubleQuoteRegExp = /''/g;
1831
- var notWhitespaceRegExp = /\S/;
1832
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1833
- /**
1834
- * @name parse
1835
- * @category Common Helpers
1836
- * @summary Parse the date.
1837
- *
1838
- * @description
1839
- * Return the date parsed from string using the given format string.
1840
- *
1841
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1842
- * > See: https://git.io/fxCyr
1843
- *
1844
- * The characters in the format string wrapped between two single quotes characters (') are escaped.
1845
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1846
- *
1847
- * Format of the format string is based on Unicode Technical Standard #35:
1848
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1849
- * with a few additions (see note 5 below the table).
1850
- *
1851
- * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1852
- * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1853
- *
1854
- * ```javascript
1855
- * parse('23 AM', 'HH a', new Date())
1856
- * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1857
- * ```
1858
- *
1859
- * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1860
- *
1861
- * Accepted format string patterns:
1862
- * | Unit |Prior| Pattern | Result examples | Notes |
1863
- * |---------------------------------|-----|---------|-----------------------------------|-------|
1864
- * | Era | 140 | G..GGG | AD, BC | |
1865
- * | | | GGGG | Anno Domini, Before Christ | 2 |
1866
- * | | | GGGGG | A, B | |
1867
- * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1868
- * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1869
- * | | | yy | 44, 01, 00, 17 | 4 |
1870
- * | | | yyy | 044, 001, 123, 999 | 4 |
1871
- * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1872
- * | | | yyyyy | ... | 2,4 |
1873
- * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1874
- * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1875
- * | | | YY | 44, 01, 00, 17 | 4,6 |
1876
- * | | | YYY | 044, 001, 123, 999 | 4 |
1877
- * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1878
- * | | | YYYYY | ... | 2,4 |
1879
- * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1880
- * | | | RR | -43, 01, 00, 17 | 4,5 |
1881
- * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1882
- * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1883
- * | | | RRRRR | ... | 2,4,5 |
1884
- * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1885
- * | | | uu | -43, 01, 99, -99 | 4 |
1886
- * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1887
- * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1888
- * | | | uuuuu | ... | 2,4 |
1889
- * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1890
- * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1891
- * | | | QQ | 01, 02, 03, 04 | |
1892
- * | | | QQQ | Q1, Q2, Q3, Q4 | |
1893
- * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1894
- * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1895
- * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1896
- * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1897
- * | | | qq | 01, 02, 03, 04 | |
1898
- * | | | qqq | Q1, Q2, Q3, Q4 | |
1899
- * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1900
- * | | | qqqqq | 1, 2, 3, 4 | 3 |
1901
- * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1902
- * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1903
- * | | | MM | 01, 02, ..., 12 | |
1904
- * | | | MMM | Jan, Feb, ..., Dec | |
1905
- * | | | MMMM | January, February, ..., December | 2 |
1906
- * | | | MMMMM | J, F, ..., D | |
1907
- * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1908
- * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1909
- * | | | LL | 01, 02, ..., 12 | |
1910
- * | | | LLL | Jan, Feb, ..., Dec | |
1911
- * | | | LLLL | January, February, ..., December | 2 |
1912
- * | | | LLLLL | J, F, ..., D | |
1913
- * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1914
- * | | | wo | 1st, 2nd, ..., 53th | 5 |
1915
- * | | | ww | 01, 02, ..., 53 | |
1916
- * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1917
- * | | | Io | 1st, 2nd, ..., 53th | 5 |
1918
- * | | | II | 01, 02, ..., 53 | 5 |
1919
- * | Day of month | 90 | d | 1, 2, ..., 31 | |
1920
- * | | | do | 1st, 2nd, ..., 31st | 5 |
1921
- * | | | dd | 01, 02, ..., 31 | |
1922
- * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1923
- * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1924
- * | | | DD | 01, 02, ..., 365, 366 | 7 |
1925
- * | | | DDD | 001, 002, ..., 365, 366 | |
1926
- * | | | DDDD | ... | 2 |
1927
- * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1928
- * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1929
- * | | | EEEEE | M, T, W, T, F, S, S | |
1930
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1931
- * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1932
- * | | | io | 1st, 2nd, ..., 7th | 5 |
1933
- * | | | ii | 01, 02, ..., 07 | 5 |
1934
- * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1935
- * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1936
- * | | | iiiii | M, T, W, T, F, S, S | 5 |
1937
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1938
- * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1939
- * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1940
- * | | | ee | 02, 03, ..., 01 | |
1941
- * | | | eee | Mon, Tue, Wed, ..., Sun | |
1942
- * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1943
- * | | | eeeee | M, T, W, T, F, S, S | |
1944
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1945
- * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1946
- * | | | co | 2nd, 3rd, ..., 1st | 5 |
1947
- * | | | cc | 02, 03, ..., 01 | |
1948
- * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1949
- * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1950
- * | | | ccccc | M, T, W, T, F, S, S | |
1951
- * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1952
- * | AM, PM | 80 | a..aaa | AM, PM | |
1953
- * | | | aaaa | a.m., p.m. | 2 |
1954
- * | | | aaaaa | a, p | |
1955
- * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1956
- * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1957
- * | | | bbbbb | a, p, n, mi | |
1958
- * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1959
- * | | | BBBB | at night, in the morning, ... | 2 |
1960
- * | | | BBBBB | at night, in the morning, ... | |
1961
- * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1962
- * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1963
- * | | | hh | 01, 02, ..., 11, 12 | |
1964
- * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1965
- * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1966
- * | | | HH | 00, 01, 02, ..., 23 | |
1967
- * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1968
- * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1969
- * | | | KK | 01, 02, ..., 11, 00 | |
1970
- * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1971
- * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1972
- * | | | kk | 24, 01, 02, ..., 23 | |
1973
- * | Minute | 60 | m | 0, 1, ..., 59 | |
1974
- * | | | mo | 0th, 1st, ..., 59th | 5 |
1975
- * | | | mm | 00, 01, ..., 59 | |
1976
- * | Second | 50 | s | 0, 1, ..., 59 | |
1977
- * | | | so | 0th, 1st, ..., 59th | 5 |
1978
- * | | | ss | 00, 01, ..., 59 | |
1979
- * | Seconds timestamp | 40 | t | 512969520 | |
1980
- * | | | tt | ... | 2 |
1981
- * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1982
- * | | | SS | 00, 01, ..., 99 | |
1983
- * | | | SSS | 000, 0001, ..., 999 | |
1984
- * | | | SSSS | ... | 2 |
1985
- * | Milliseconds timestamp | 20 | T | 512969520900 | |
1986
- * | | | TT | ... | 2 |
1987
- * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1988
- * | | | XX | -0800, +0530, Z | |
1989
- * | | | XXX | -08:00, +05:30, Z | |
1990
- * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1991
- * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1992
- * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1993
- * | | | xx | -0800, +0530, +0000 | |
1994
- * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1995
- * | | | xxxx | -0800, +0530, +0000, +123456 | |
1996
- * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1997
- * | Long localized date | NA | P | 05/29/1453 | 5,8 |
1998
- * | | | PP | May 29, 1453 | |
1999
- * | | | PPP | May 29th, 1453 | |
2000
- * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
2001
- * | Long localized time | NA | p | 12:00 AM | 5,8 |
2002
- * | | | pp | 12:00:00 AM | |
2003
- * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
2004
- * | | | PPpp | May 29, 1453, 12:00:00 AM | |
2005
- * | | | PPPpp | May 29th, 1453 at ... | |
2006
- * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
2007
- * Notes:
2008
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2009
- * are the same as "stand-alone" units, but are different in some languages.
2010
- * "Formatting" units are declined according to the rules of the language
2011
- * in the context of a date. "Stand-alone" units are always nominative singular.
2012
- * In `format` function, they will produce different result:
2013
- *
2014
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2015
- *
2016
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2017
- *
2018
- * `parse` will try to match both formatting and stand-alone units interchangably.
2019
- *
2020
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2021
- * the single quote characters (see below).
2022
- * If the sequence is longer than listed in table:
2023
- * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
2024
- * as wide as the sequence
2025
- * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
2026
- * These variations are marked with "2" in the last column of the table.
2027
- *
2028
- * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2029
- * These tokens represent the shortest form of the quarter.
2030
- *
2031
- * 4. The main difference between `y` and `u` patterns are B.C. years:
2032
- *
2033
- * | Year | `y` | `u` |
2034
- * |------|-----|-----|
2035
- * | AC 1 | 1 | 1 |
2036
- * | BC 1 | 1 | 0 |
2037
- * | BC 2 | 2 | -1 |
2038
- *
2039
- * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
2040
- *
2041
- * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
2042
- *
2043
- * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
2044
- *
2045
- * while `uu` will just assign the year as is:
2046
- *
2047
- * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
2048
- *
2049
- * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
2050
- *
2051
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2052
- * except local week-numbering years are dependent on `options.weekStartsOn`
2053
- * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
2054
- * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
2055
- *
2056
- * 5. These patterns are not in the Unicode Technical Standard #35:
2057
- * - `i`: ISO day of week
2058
- * - `I`: ISO week of year
2059
- * - `R`: ISO week-numbering year
2060
- * - `o`: ordinal number modifier
2061
- * - `P`: long localized date
2062
- * - `p`: long localized time
2063
- *
2064
- * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2065
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
2066
- *
2067
- * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
2068
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
2069
- *
2070
- * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
2071
- * on the given locale.
2072
- *
2073
- * using `en-US` locale: `P` => `MM/dd/yyyy`
2074
- * using `en-US` locale: `p` => `hh:mm a`
2075
- * using `pt-BR` locale: `P` => `dd/MM/yyyy`
2076
- * using `pt-BR` locale: `p` => `HH:mm`
2077
- *
2078
- * Values will be assigned to the date in the descending order of its unit's priority.
2079
- * Units of an equal priority overwrite each other in the order of appearance.
2080
- *
2081
- * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
2082
- * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
2083
- *
2084
- * `referenceDate` must be passed for correct work of the function.
2085
- * If you're not sure which `referenceDate` to supply, create a new instance of Date:
2086
- * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
2087
- * In this case parsing will be done in the context of the current date.
2088
- * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
2089
- * then `Invalid Date` will be returned.
2090
- *
2091
- * The result may vary by locale.
2092
- *
2093
- * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
2094
- *
2095
- * If parsing failed, `Invalid Date` will be returned.
2096
- * Invalid Date is a Date, whose time value is NaN.
2097
- * Time value of Date: http://es5.github.io/#x15.9.1.1
2098
- *
2099
- * ### v2.0.0 breaking changes:
2100
- *
2101
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
2102
- *
2103
- * - Old `parse` was renamed to `toDate`.
2104
- * Now `parse` is a new function which parses a string using a provided format.
2105
- *
2106
- * ```javascript
2107
- * // Before v2.0.0
2108
- * parse('2016-01-01')
2109
- *
2110
- * // v2.0.0 onward (toDate no longer accepts a string)
2111
- * toDate(1392098430000) // Unix to timestamp
2112
- * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
2113
- * parse('2016-01-01', 'yyyy-MM-dd', new Date())
2114
- * ```
2115
- *
2116
- * @param {String} dateString - the string to parse
2117
- * @param {String} formatString - the string of tokens
2118
- * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
2119
- * @param {Object} [options] - an object with options.
2120
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2121
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2122
- * @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
2123
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2124
- * see: https://git.io/fxCyr
2125
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2126
- * see: https://git.io/fxCyr
2127
- * @returns {Date} the parsed date
2128
- * @throws {TypeError} 3 arguments required
2129
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2130
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2131
- * @throws {RangeError} `options.locale` must contain `match` property
2132
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2133
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2134
- * @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
2135
- * @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
2136
- * @throws {RangeError} format string contains an unescaped latin alphabet character
2137
- *
2138
- * @example
2139
- * // Parse 11 February 2014 from middle-endian format:
2140
- * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
2141
- * //=> Tue Feb 11 2014 00:00:00
2142
- *
2143
- * @example
2144
- * // Parse 28th of February in Esperanto locale in the context of 2010 year:
2145
- * import eo from 'date-fns/locale/eo'
2146
- * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
2147
- * locale: eo
2148
- * })
2149
- * //=> Sun Feb 28 2010 00:00:00
2150
- */
2151
-
2152
- function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
2153
- requiredArgs(3, arguments);
2154
- var dateString = String(dirtyDateString);
2155
- var formatString = String(dirtyFormatString);
2156
- var options = dirtyOptions || {};
2157
- var locale = options.locale || defaultLocale;
2158
-
2159
- if (!locale.match) {
2160
- throw new RangeError('locale must contain match property');
2161
- }
2162
-
2163
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
2164
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
2165
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2166
-
2167
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2168
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2169
- }
2170
-
2171
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
2172
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
2173
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2174
-
2175
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2176
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2177
- }
2178
-
2179
- if (formatString === '') {
2180
- if (dateString === '') {
2181
- return toDate(dirtyReferenceDate);
2182
- } else {
2183
- return new Date(NaN);
2184
- }
2185
- }
2186
-
2187
- var subFnOptions = {
2188
- firstWeekContainsDate: firstWeekContainsDate,
2189
- weekStartsOn: weekStartsOn,
2190
- locale: locale
2191
- }; // If timezone isn't specified, it will be set to the system timezone
2192
-
2193
- var setters = [{
2194
- priority: TIMEZONE_UNIT_PRIORITY,
2195
- subPriority: -1,
2196
- set: dateToSystemTimezone,
2197
- index: 0
2198
- }];
2199
- var i;
2200
- var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2201
- var firstCharacter = substring[0];
2202
-
2203
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2204
- var longFormatter = longFormatters[firstCharacter];
2205
- return longFormatter(substring, locale.formatLong, subFnOptions);
2206
- }
2207
-
2208
- return substring;
2209
- }).join('').match(formattingTokensRegExp);
2210
- var usedTokens = [];
2211
-
2212
- for (i = 0; i < tokens.length; i++) {
2213
- var token = tokens[i];
2214
-
2215
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {
2216
- throwProtectedError(token, formatString, dirtyDateString);
2217
- }
2218
-
2219
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
2220
- throwProtectedError(token, formatString, dirtyDateString);
2221
- }
2222
-
2223
- var firstCharacter = token[0];
2224
- var parser = parsers$1[firstCharacter];
2225
-
2226
- if (parser) {
2227
- var incompatibleTokens = parser.incompatibleTokens;
2228
-
2229
- if (Array.isArray(incompatibleTokens)) {
2230
- var incompatibleToken = void 0;
2231
-
2232
- for (var _i = 0; _i < usedTokens.length; _i++) {
2233
- var usedToken = usedTokens[_i].token;
2234
-
2235
- if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2236
- incompatibleToken = usedTokens[_i];
2237
- break;
2238
- }
2239
- }
2240
-
2241
- if (incompatibleToken) {
2242
- throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2243
- }
2244
- } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2245
- throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2246
- }
2247
-
2248
- usedTokens.push({
2249
- token: firstCharacter,
2250
- fullToken: token
2251
- });
2252
- var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
2253
-
2254
- if (!parseResult) {
2255
- return new Date(NaN);
2256
- }
2257
-
2258
- setters.push({
2259
- priority: parser.priority,
2260
- subPriority: parser.subPriority || 0,
2261
- set: parser.set,
2262
- validate: parser.validate,
2263
- value: parseResult.value,
2264
- index: setters.length
2265
- });
2266
- dateString = parseResult.rest;
2267
- } else {
2268
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2269
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2270
- } // Replace two single quote characters with one single quote character
2271
-
2272
-
2273
- if (token === "''") {
2274
- token = "'";
2275
- } else if (firstCharacter === "'") {
2276
- token = cleanEscapedString(token);
2277
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2278
-
2279
-
2280
- if (dateString.indexOf(token) === 0) {
2281
- dateString = dateString.slice(token.length);
2282
- } else {
2283
- return new Date(NaN);
2284
- }
2285
- }
2286
- } // Check if the remaining input contains something other than whitespace
2287
-
2288
-
2289
- if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2290
- return new Date(NaN);
2291
- }
2292
-
2293
- var uniquePrioritySetters = setters.map(function (setter) {
2294
- return setter.priority;
2295
- }).sort(function (a, b) {
2296
- return b - a;
2297
- }).filter(function (priority, index, array) {
2298
- return array.indexOf(priority) === index;
2299
- }).map(function (priority) {
2300
- return setters.filter(function (setter) {
2301
- return setter.priority === priority;
2302
- }).sort(function (a, b) {
2303
- return b.subPriority - a.subPriority;
2304
- });
2305
- }).map(function (setterArray) {
2306
- return setterArray[0];
2307
- });
2308
- var date = toDate(dirtyReferenceDate);
2309
-
2310
- if (isNaN(date)) {
2311
- return new Date(NaN);
2312
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2313
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2314
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2315
-
2316
-
2317
- var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));
2318
- var flags = {};
2319
-
2320
- for (i = 0; i < uniquePrioritySetters.length; i++) {
2321
- var setter = uniquePrioritySetters[i];
2322
-
2323
- if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2324
- return new Date(NaN);
2325
- }
2326
-
2327
- var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2328
-
2329
- if (result[0]) {
2330
- utcDate = result[0];
2331
- assign(flags, result[1]); // Result is date
2332
- } else {
2333
- utcDate = result;
2334
- }
2335
- }
2336
-
2337
- return utcDate;
2338
- }
2339
-
2340
- function dateToSystemTimezone(date, flags) {
2341
- if (flags.timestampIsSet) {
2342
- return date;
2343
- }
2344
-
2345
- var convertedDate = new Date(0);
2346
- convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2347
- convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2348
- return convertedDate;
2349
- }
2350
-
2351
- function cleanEscapedString(input) {
2352
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2353
- }
2354
-
2355
- const calendarCss = ".sc-digi-calendar-h{--digi--calendar--display:inline-block;--digi--calendar--header--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--header--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--header--display:flex;--digi--calendar--header--align-items:center;--digi--calendar--header--justify-content:space-between;--digi--calendar--header--text-align:center;--digi--calendar--header--button--padding:var(--digi--gutter--medium) var(--digi--gutter--largest);--digi--calendar--header--button--background:transparent;--digi--calendar--header--button--box-shadow:none;--digi--calendar--header--button--background--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--table--border-spacing:0;--digi--calendar--table--border-collapse:collapse;--digi--calendar--table--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--table--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--table-header--padding:var(--digi--gutter--larger) 0;--digi--calendar--table-header--font-weight-normal:var(--digi--typography--body--font-weight--desktop);--digi--calendar--date--border-color:none;--digi--calendar--date--box-shadow:none;--digi--calendar--date--background-color:var(--digi--color--background--interactive--default--secondary);--digi--calendar--date--background-color--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--padding:var(--digi--gutter--large);--digi--calendar--date--color:var(--digi--color--text--primary);--digi--calendar--date--focused--background-color:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--today--circle-border:2px solid var(--digi--color--marking--indication--secondary);--digi--calendar--date--today--circle-margin:10%;--digi--calendar--date--selected--color:var(--digi--color--text--interactive--secondary);--digi--calendar--date--selected--background-color:var(--digi--color--background--interactive--selected--primary);--digi--calendar--date--not-selectable-strike--color:var(--digi--color--marking--indication--tertiary);--digi--calendar--week--font-style:italic;--digi--calendar--week--font-size:var(--digi--global--typography--font-size--small);--digi--calendar--week--border-color:var(--digi--color--divider--primary);--digi--calendar--week--border-width:var(--digi--border-width--primary)}.sc-digi-calendar-h .digi-calendar.sc-digi-calendar{display:var(--digi--calendar--display);background:var(--digi--calendar--header--button--background);padding:0px 1px 3px 1px;overflow:hidden;max-width:23.4375rem}.sc-digi-calendar-h .digi-calendar--hide.sc-digi-calendar{--digi--calendar--display:none}.sc-digi-calendar-h .digi-calendar__header.sc-digi-calendar{display:var(--digi--calendar--header--display);align-items:var(--digi--calendar--header--align-items);justify-content:var(--digi--calendar--header--justify-content);text-align:var(--digi--calendar--header--text-align);font-size:var(--digi--global--typography--font-size--base);font-family:var(--digi--calendar--header--font-family);font-weight:var(--digi--calendar--header--font-weight)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar{display:inherit;justify-content:center;margin:0 auto}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:first-child{margin-right:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:last-child{width:5rem}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar select.sc-digi-calendar{padding-inline-end:2rem}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar{flex:auto;display:inherit;align-items:inherit;justify-content:inherit}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-name.sc-digi-calendar{padding-inline:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar{font-family:inherit;font-size:inherit;font-weight:inherit;color:var(--digi--calendar--date--color);display:flex;align-items:center;background:var(--digi--calendar--header--button--background);border:var(--digi--calendar--date--box-shadow);padding:var(--digi--calendar--header--button--padding)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:last-child{border-radius:0 4px 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:first-child{border-radius:4px 0 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible:not(.digi-calendar__date--not-selectable),.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:active:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}@media (any-hover: hover){.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__table.sc-digi-calendar{border-collapse:var(--digi--calendar--table--border-collapse);border-spacing:var(--digi--calendar--table--border-spacing);font-family:var(--digi--calendar--table--font-family);table-layout:fixed;margin-bottom:var(--digi--margin--medium)}.sc-digi-calendar-h .digi-calendar__table-header-week.sc-digi-calendar{font-style:italic;padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table-header--font-weight-normal);width:50px}.sc-digi-calendar-h .digi-calendar__table-header.sc-digi-calendar{padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table--font-weight);width:46px}.sc-digi-calendar-h .digi-calendar__td-week.sc-digi-calendar{border-right:var(--digi--calendar--week--border-width) solid var(--digi--calendar--week--border-color)}.sc-digi-calendar-h .digi-calendar__td.sc-digi-calendar{text-align:right}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar{font-style:var(--digi--calendar--week--font-style);font-size:var(--digi--calendar--week--font-size);display:table-cell;text-align:center}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar:hover{cursor:default}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar{position:relative;padding:var(--digi--calendar--date--padding);color:var(--digi--calendar--date--color);background-color:var(--digi--calendar--date--background-color);border-color:var(--digi--calendar--date--border-color);border-radius:var(--digi--border-radius--secondary);font-family:inherit;font-size:inherit;font-weight:inherit;text-align:center;border:none;width:44px;height:44px}.sc-digi-calendar-h .digi-calendar__date--disabled.sc-digi-calendar{--digi--calendar--date--color:transparent;pointer-events:none}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar{position:relative}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar::after{display:block;content:\" \";position:absolute;top:var(--digi--calendar--date--today--circle-margin);bottom:var(--digi--calendar--date--today--circle-margin);left:var(--digi--calendar--date--today--circle-margin);right:var(--digi--calendar--date--today--circle-margin);border:var(--digi--calendar--date--today--circle-border);border-radius:50%}.sc-digi-calendar-h .digi-calendar__date--today.digi-calendar__date--selected.sc-digi-calendar::after{border-color:var(--digi--color--icon--secondary)}@media (any-hover: hover){.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){cursor:pointer}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable):not(.digi-calendar__date--selected){--digi--calendar--date--box-shadow:var(--digi--calendar--date--box-shadow--hover);--digi--calendar--date--background-color:var(--digi--calendar--date--background-color--hover)}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable) span.sc-digi-calendar{text-decoration:underline}}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar{--digi--calendar--date--background-color:var(--digi--calendar--date--selected--background-color);--digi--calendar--date--color:var(--digi--calendar--date--selected--color)}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover{--digi--calendar--date--background-color:var(--digi--calendar--date--selected--background-color)}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover span.sc-digi-calendar{text-decoration:none}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar{cursor:not-allowed}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar::after{display:block;content:\" \";width:0px;height:100%;border:1px solid #757575;transform:rotate(-45deg);position:absolute;top:0%;left:50%}.sc-digi-calendar-h .digi-calendar__date--focused.sc-digi-calendar:focus-visible:not(.digi-calendar__date--selected):not(.digi-calendar__date--not-selectable){--digi--calendar--date--background-color:var(--digi--calendar--date--focused--background-color);outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-s digi-form-label{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
2356
- const DigiCalendarStyle0 = calendarCss;
2357
-
2358
- const Calendar = class {
2359
- constructor(hostRef) {
2360
- registerInstance(this, hostRef);
2361
- this.afOnDateSelectedChange = createEvent(this, "afOnDateSelectedChange", 7);
2362
- this.afOnFocusOutside = createEvent(this, "afOnFocusOutside", 7);
2363
- this.afOnClickOutside = createEvent(this, "afOnClickOutside", 7);
2364
- this.afOnDirty = createEvent(this, "afOnDirty", 7);
2365
- var _a;
2366
- this.locale = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.lang) || 'sv-SE';
2367
- this.activeCalendar = [];
2368
- this.months = [];
2369
- this.selectedDates = [];
2370
- this.focusedDate = undefined;
2371
- this.dirty = false;
2372
- this.afId = randomIdGenerator('digi-calendar');
2373
- this.afInitFocusDate = undefined;
2374
- this.afShowWeekNumber = false;
2375
- this.afSelectedDate = undefined;
2376
- this.afSelectedDates = [];
2377
- this.afActive = true;
2378
- this.afMinDate = undefined;
2379
- this.afMaxDate = undefined;
2380
- this.afMultipleDates = false;
2381
- this.afYearSelect = false;
2382
- }
2383
- afSelectedDateChangeHandler() {
2384
- this.afSelectedDates = isValid(this.afSelectedDate)
2385
- ? [this.afSelectedDate]
2386
- : [];
2387
- }
2388
- afSelectedDatesChangeHandler() {
2389
- if (this.afSelectedDates.length > 0) {
2390
- if (this.afMultipleDates) {
2391
- const invalidDate = this.afSelectedDates.find((date) => !isValid(date));
2392
- if (invalidDate === undefined) {
2393
- this.selectedDates = this.afSelectedDates;
2394
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
2395
- this.focusedDate = this.afInitFocusDate;
2396
- }
2397
- else {
2398
- this.focusedDate = new Date(this.afSelectedDates
2399
- .slice()
2400
- .sort((a, b) => a.getTime() - b.getTime())[0]);
2401
- }
2402
- }
2403
- }
2404
- else if (isValid(this.afSelectedDates[0])) {
2405
- this.selectedDates = [this.afSelectedDates[0]];
2406
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
2407
- this.focusedDate = this.afInitFocusDate;
2408
- }
2409
- else {
2410
- this.focusedDate = new Date(this.afSelectedDates[0]);
2411
- }
2412
- }
2413
- }
2414
- else {
2415
- this.selectedDates = [];
2416
- }
2417
- }
2418
- focusoutHandler(e) {
2419
- const target = e.target;
2420
- const selector = `#${this.afId}-calendar`;
2421
- if (detectFocusOutside(target, selector)) {
2422
- this.afOnFocusOutside.emit(e);
2423
- }
2424
- }
2425
- clickHandler(e) {
2426
- const target = e.target;
2427
- const selector = `#${this.afId}-calendar`;
2428
- if (detectClickOutside(target, selector)) {
2429
- this.afOnClickOutside.emit(e);
2430
- }
2431
- }
2432
- drawCalendar(focusedDate) {
2433
- const date = {
2434
- year: focusedDate.getFullYear(),
2435
- month: focusedDate.getMonth()
2436
- };
2437
- this.lastWeekOfPreviousMonth = this.getWeekDays(this.getLastDayOfPrevMonth(date));
2438
- this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
2439
- this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
2440
- this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
2441
- this.months = [
2442
- 'januari',
2443
- 'februari',
2444
- 'mars',
2445
- 'april',
2446
- 'maj',
2447
- 'juni',
2448
- 'juli',
2449
- 'augusti',
2450
- 'september',
2451
- 'oktober',
2452
- 'november',
2453
- 'december'
2454
- ];
2455
- this.activeCalendar = this.appendFirstWeekOfNextMonth()
2456
- ? [
2457
- this.lastWeekOfPreviousMonth,
2458
- ...this.weekDaysbetween,
2459
- this.appendFirstWeekOfNextMonth()
2460
- ]
2461
- : [this.lastWeekOfPreviousMonth, ...this.weekDaysbetween];
2462
- this.appendFirstWeekOfNextMonth();
2463
- if (this.afShowWeekNumber) {
2464
- this.activeCalendar.forEach((el, i) => {
2465
- this.activeCalendar[i].unshift(this.getWeekNumbers(el[0]));
2466
- });
2467
- }
2468
- }
2469
- appendFirstWeekOfNextMonth() {
2470
- const lastArray = JSON.stringify(this.weekDaysbetween.slice(-1)[0]);
2471
- const stringFirstweek = JSON.stringify(this.firstWeekOfNextMonth);
2472
- if (!this.firstWeekOfNextMonth.some((date) => this.isSameMonth(date, this.focusedDate))) {
2473
- return;
2474
- }
2475
- else if (lastArray !== stringFirstweek) {
2476
- return this.firstWeekOfNextMonth;
2477
- }
2478
- }
2479
- getLastDayOfPrevMonth(date) {
2480
- return new Date(date.year, date.month, 0);
2481
- }
2482
- getWeekDays(date) {
2483
- const today = date || new Date();
2484
- const week = [];
2485
- for (let i = 1; i <= 7; i++) {
2486
- const first = today.getDate() - today.getDay() + i;
2487
- const day = new Date(today.setDate(first));
2488
- week.push(day);
2489
- }
2490
- return week;
2491
- }
2492
- getFirstDayOfNextMonth(date) {
2493
- return new Date(date.year, date.month + 1, 1);
2494
- }
2495
- getWeeksBetween(lastDayOfPrevMonth, firstDayOnNextMonth) {
2496
- const week = 7 * 24 * 60 * 60 * 1000;
2497
- const d1ms = lastDayOfPrevMonth.getTime();
2498
- const d2ms = firstDayOnNextMonth.getTime();
2499
- const diff = Math.abs(d2ms - d1ms);
2500
- return Math.floor(diff / week);
2501
- }
2502
- getWeekdaysOfMonth(weeksBetween) {
2503
- let weeks = [];
2504
- for (let i = 1; i <= weeksBetween; i++) {
2505
- weeks = [...weeks, this.getWeekDays(this.getUpcoming(i))];
2506
- }
2507
- return weeks;
2508
- }
2509
- getUpcoming(weeks) {
2510
- return new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 7 * weeks);
2511
- }
2512
- onDirty() {
2513
- if (!this.dirty) {
2514
- this.dirty = true;
2515
- this.afOnDirty.emit(this.dirty);
2516
- }
2517
- }
2518
- selectDateHandler(dateSelected) {
2519
- this.onDirty();
2520
- if (!this.isDateSelectable(dateSelected))
2521
- return;
2522
- if (this.isDateSelected(dateSelected)) {
2523
- this.selectedDates = this.afMultipleDates
2524
- ? this.selectedDates.filter((d) => {
2525
- return !this.isSameDate(d, dateSelected);
2526
- })
2527
- : [];
2528
- }
2529
- else {
2530
- this.selectedDates = this.afMultipleDates
2531
- ? [...this.selectedDates, dateSelected]
2532
- : [dateSelected];
2533
- }
2534
- this.focusedDate = new Date(dateSelected);
2535
- this.afOnDateSelectedChange.emit(this.selectedDates);
2536
- }
2537
- getMonthName(monthNumber) {
2538
- return new Date(1992, monthNumber, 1)
2539
- .toLocaleDateString(this.locale, {
2540
- month: 'short'
2541
- })
2542
- .replace('.', '');
2543
- }
2544
- getFullMonthName(monthNumber) {
2545
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(this.locale, {
2546
- month: 'long',
2547
- year: 'numeric'
2548
- });
2549
- }
2550
- // Get the week number of a specific date. Taken from https://weeknumber.com/how-to/javascript
2551
- getWeekNumbers(dateInput) {
2552
- const date = new Date(dateInput);
2553
- date.getTime();
2554
- date.setHours(0, 0, 0, 0);
2555
- date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
2556
- const week1 = new Date(date.getFullYear(), 0, 4);
2557
- return (1 +
2558
- Math.round(((date.getTime() - week1.getTime()) / 86400000 -
2559
- 3 +
2560
- ((week1.getDay() + 6) % 7)) /
2561
- 7));
2562
- }
2563
- isSameMonth(date, currentDate) {
2564
- if (date instanceof Date && date instanceof Date) {
2565
- return (`${date.getFullYear()}${date.getMonth()}` ===
2566
- `${currentDate.getFullYear()}${currentDate.getMonth()}`);
2567
- }
2568
- return false;
2569
- }
2570
- isSameDate(date, newDate) {
2571
- return this.getDateString(date) === this.getDateString(newDate);
2572
- }
2573
- getDateString(date) {
2574
- return `${date.getDate()}${date.getMonth()}${date.getFullYear()}`;
2575
- }
2576
- isDateSelected(date) {
2577
- return !!this.selectedDates.find((d) => this.isSameDate(date, d));
2578
- }
2579
- isDateSelectable(date) {
2580
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2581
- return false;
2582
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2583
- return false;
2584
- return true;
2585
- }
2586
- isBefore(a, b) {
2587
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2588
- }
2589
- isAfter(a, b) {
2590
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2591
- }
2592
- dateWithoutTime(date) {
2593
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2594
- }
2595
- isInAnotherMonth(date) {
2596
- return !this.isSameMonth(date, this.focusedDate);
2597
- }
2598
- subtractMonth() {
2599
- this.onDirty();
2600
- const month = new Date(this.focusedDate);
2601
- const currentDay = month.getDate();
2602
- month.setMonth(month.getMonth() - 1, 1);
2603
- const lastDayOfPrevMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2604
- month.setDate(Math.min(currentDay, lastDayOfPrevMonth));
2605
- this.focusedDate = month;
2606
- }
2607
- addMonth() {
2608
- this.onDirty();
2609
- const month = new Date(this.focusedDate);
2610
- const currentDay = month.getDate();
2611
- month.setMonth(month.getMonth() + 1, 1);
2612
- const lastDayOfNextMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2613
- month.setDate(Math.min(currentDay, lastDayOfNextMonth));
2614
- this.focusedDate = month;
2615
- }
2616
- getCurrent(date) {
2617
- return this.isSameDate(date, new Date()) ? 'date' : null;
2618
- }
2619
- setTabIndex(date) {
2620
- return this.isFocused(date) ? 0 : -1;
2621
- }
2622
- navigateHandler(e, daysToAdd) {
2623
- !!e.detail && e.detail.preventDefault();
2624
- if (e.detail.key === 'Tab') {
2625
- return;
2626
- }
2627
- this.onDirty();
2628
- const date = new Date(e.detail.target.dataset.date);
2629
- const newDate = new Date(date.setDate(date.getDate() + daysToAdd));
2630
- this.focusedDate = newDate;
2631
- this.resetFocus();
2632
- }
2633
- resetFocus() {
2634
- setTimeout(() => {
2635
- const dates = this._tbody.querySelectorAll('.digi-calendar__date');
2636
- if (dates.length <= 0) {
2637
- logger.warn(`Could not find an element with data-date attribute matching navigated date.`, this._tbody);
2638
- return;
2639
- }
2640
- Array.from(dates).map((date) => {
2641
- const d = date;
2642
- d.tabIndex = -1;
2643
- d.classList.remove('digi-calendar__date--focused');
2644
- if (d.dataset.date === this.getFullDate(this.focusedDate)) {
2645
- d.focus();
2646
- d.tabIndex = 0;
2647
- d.classList.add('digi-calendar__date--focused');
2648
- }
2649
- });
2650
- }, 100);
2651
- }
2652
- getFullDate(date) {
2653
- return date.toLocaleString(_t.locale, {
2654
- day: 'numeric',
2655
- month: 'numeric',
2656
- year: 'numeric'
2657
- });
2658
- }
2659
- getDateName(date) {
2660
- return date.toLocaleString(_t.locale, {
2661
- year: 'numeric',
2662
- month: 'long',
2663
- day: 'numeric'
2664
- });
2665
- }
2666
- isFocused(date) {
2667
- if (this.dirty) {
2668
- return this.isSameDate(date, this.focusedDate);
2669
- }
2670
- if (this.afInitFocusDate) {
2671
- return this.isSameDate(date, this.afInitFocusDate);
2672
- }
2673
- return this.isSameMonth(date, new Date())
2674
- ? this.isSameDate(date, new Date())
2675
- : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1;
2676
- }
2677
- ariaPressed(date) {
2678
- return this.selectedDates.length > 0 &&
2679
- !!this.selectedDates.find((d) => this.isSameDate(d, date))
2680
- ? 'true'
2681
- : 'false';
2682
- }
2683
- selectMonth(evt) {
2684
- this.onDirty();
2685
- const tempDate = new Date(this.focusedDate);
2686
- const selectedMonth = parseInt(evt.target.value, 10);
2687
- const currentDay = tempDate.getDate();
2688
- tempDate.setMonth(selectedMonth, 1);
2689
- const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
2690
- tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
2691
- this.focusedDate = tempDate;
2692
- this.drawCalendar(this.focusedDate);
2693
- }
2694
- selectYear(evt) {
2695
- this.onDirty();
2696
- const tempDate = this.focusedDate;
2697
- tempDate.setFullYear(evt.target.value);
2698
- this.focusedDate = tempDate;
2699
- this.drawCalendar(this.focusedDate);
2700
- }
2701
- earliestSelectableYear() {
2702
- if (this.afMinDate)
2703
- return this.afMinDate.getFullYear();
2704
- return 1900;
2705
- }
2706
- latestSelectableYear() {
2707
- if (this.afMaxDate)
2708
- return this.afMaxDate.getFullYear();
2709
- return new Date(Date.now()).getFullYear() + 10;
2710
- }
2711
- allSelectableYears() {
2712
- const allYears = [];
2713
- let currentYear = this.earliestSelectableYear();
2714
- while (currentYear <= this.latestSelectableYear()) {
2715
- allYears.push(currentYear++);
2716
- }
2717
- return allYears;
2718
- }
2719
- componentWillLoad() {
2720
- var _a;
2721
- if (isValid(this.afSelectedDate)) {
2722
- this.selectedDates = [this.afSelectedDate];
2723
- }
2724
- else if (((_a = this.afSelectedDates) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2725
- const valid = this.afSelectedDates.filter((d) => isValid(d));
2726
- if (valid.length > 0)
2727
- this.selectedDates = valid;
2728
- }
2729
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
2730
- this.focusedDate = this.afInitFocusDate;
2731
- }
2732
- else if (this.selectedDates.length > 0) {
2733
- this.focusedDate = this.selectedDates
2734
- .slice()
2735
- .sort((a, b) => a.getTime() - b.getTime())[0];
2736
- }
2737
- else {
2738
- this.focusedDate = new Date();
2739
- }
2740
- this.drawCalendar(this.focusedDate);
2741
- }
2742
- componentWillUpdate() {
2743
- this.drawCalendar(this.focusedDate);
2744
- }
2745
- async componentDidLoad() {
2746
- if (isValid(this.afSelectedDate))
2747
- this.selectedDates = [this.afSelectedDate];
2748
- else
2749
- this.afSelectedDatesChangeHandler();
2750
- await customElements.whenDefined('digi-form-select');
2751
- }
2752
- cssDateModifiers(date) {
2753
- const shownMonth = this.focusedDate.getMonth();
2754
- return {
2755
- 'digi-calendar__date--today': this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date),
2756
- 'digi-calendar__date--disabled': this.isInAnotherMonth(date),
2757
- 'digi-calendar__date--focused': this.isFocused(date),
2758
- 'digi-calendar__date--selected': this.isDateSelected(date) && date.getMonth() === shownMonth,
2759
- 'digi-calendar__date--not-selectable': !this.isInAnotherMonth(date) && !this.isDateSelectable(date)
2760
- };
2761
- }
2762
- render() {
2763
- return (h("div", { key: 'a65aa1b63553ff82c432a81fa9fd9821b88a39ab', class: {
2764
- 'digi-calendar': true,
2765
- 'digi-calendar--hide': !this.afActive
2766
- }, id: `${this.afId}-calendar` }, this.afYearSelect && (h("div", { key: '9cdea2a354a094a7dbe68bc7dd796143ed21acb6', class: "digi-calendar__header" }, h("div", { key: '3731070e6c432b2bed6985034db41b141a27214e', class: "digi-calendar__header--year-select" }, h("digi-form-select", { key: '06e3d06b3ef6d7ad262f9eeb927a12167ca8a48b', afLabel: "M\u00E5nad", "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
2767
- this.selectMonth(evt);
2768
- } }, this.months.map((month, index) => {
2769
- return h("option", { value: index }, month);
2770
- })), h("digi-form-select", { key: '60bde04287db50b5d887ddcb31839f1fe159b09a', afLabel: "\u00C5r", "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
2771
- this.selectYear(evt);
2772
- } }, this.allSelectableYears().map((year) => (h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (h("div", { key: '75b68570a03ee6f921a4b36f3fa08d6c7b52c277', class: "digi-calendar__header" }, h("div", { key: 'c4a4f28576b93368e1eca7a0fab5f88866b98cf7', class: "digi-calendar__header--month-step" }, h("button", { key: '69058f8bd1eff3d2e54a6436c36e5c4b8441422e', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() - 1) +
2773
- ', föregående månad', onClick: () => this.subtractMonth() }, h("digi-icon-chevron-left", { key: 'af76697caee12f4f88920cd0fdb869b02f2b9ce5', slot: "icon", "aria-hidden": "true" }), h("span", { key: '6a0692868882f344f0a32f9d73c0c0a0ddd2b826', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() - 1))), h("div", { key: '9224acc84fc325ff9d15dbfc8a9dd6592f11e9f8', class: "digi-calendar__month" }, this.getFullMonthName(this.focusedDate.getMonth())), h("button", { key: '15346caa9359c8eed3c14315b7fd862ed4786bf6', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() + 1) +
2774
- ', nästa månad', onClick: () => this.addMonth() }, h("span", { key: '69046c2421fc47d7e840ce79a30ea201846872b1', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() + 1)), h("digi-icon-chevron-right", { key: '0c08338d76c0137d4a001cef22d2eff8d8b347ea', slot: "icon", "aria-hidden": "true" }))))), h("digi-util-keydown-handler", { key: 'f49051c6fe7d5f9aa922988a681c6fc6ed981ff8', onAfOnDown: (e) => this.navigateHandler(e, 7), onAfOnUp: (e) => this.navigateHandler(e, -7), onAfOnLeft: (e) => this.navigateHandler(e, -1), onAfOnRight: (e) => this.navigateHandler(e, 1) }, h("table", { key: 'e1b09f2fb0c93c46804dfce34ac2e9e367a9d79d', role: "grid", class: "digi-calendar__table" }, h("thead", { key: 'bc8915a5cbf3093cab17fb2778f892e1fd099d9a' }, h("tr", { key: '1b72c4136c864d3af56b1ab9db8b2963a7b0fbca', role: "row" }, this.afShowWeekNumber && (h("th", { key: 'ab422d5c5e5a23b9debdb9225a53430d4f8ec302', role: "columnheader", abbr: _t.calendar.week, class: "digi-calendar__table-header-week" }, _t.calendar.week.toLowerCase())), Object.keys(_t.calendar.weekdays).map((day) => (h("th", { role: "columnheader", "aria-label": _t.calendar.weekdays[day], abbr: _t.calendar.weekdays[day], class: "digi-calendar__table-header" }, _t.calendar.weekdays_short[day].toLowerCase()))))), h("tbody", { key: 'af2273dae429b8d3d67f5df853d49f6508fe8f41', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
2775
- return (h("tr", null, week.map((day, i) => {
2776
- if (this.afShowWeekNumber && i === 0) {
2777
- return (h("th", { role: "rowheader", "aria-label": _t.calendar.week + ' ' + day, class: "digi-calendar__td-week digi-calendar__date--week-number", id: 'digi-calendar__week-' + day }, day));
2778
- }
2779
- else {
2780
- return this.isInAnotherMonth(day) ? (h("td", null)) : (h("td", { role: "gridcell", class: "digi-calendar__td" }, h("button", { key: this.getFullDate(day), type: "button", class: Object.assign(Object.assign({}, this.cssDateModifiers(day)), { 'digi-calendar__date': true }), onClick: () => this.selectDateHandler(day), "aria-current": this.isSameDate(day, new Date()) ? 'date' : null, "aria-label": `
2781
- ${!this.isDateSelectable(day)
2782
- ? _t.calendar.disabledDate
2783
- : ''} ${this.getDateName(day)}
2784
- `, "aria-disabled": !this.isDateSelectable(day) ? 'true' : null, tabindex: this.setTabIndex(day), "data-date": this.getFullDate(day), "aria-pressed": this.isDateSelectable(day)
2785
- ? this.ariaPressed(day)
2786
- : null }, h("span", { "aria-hidden": "true" }, day.getDate()))));
2787
- }
2788
- })));
2789
- })))), h("slot", { key: '081dffb3256ce8febd43fc0842bed7bee26cd228', name: "calendar-footer" })));
2790
- }
2791
- static get watchers() { return {
2792
- "afSelectedDate": ["afSelectedDateChangeHandler"],
2793
- "afSelectedDates": ["afSelectedDatesChangeHandler"]
2794
- }; }
2795
- };
2796
- Calendar.style = DigiCalendarStyle0;
2797
-
2798
- 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}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker{position:relative;max-width:var(--digi--datepicker--max-width)}.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{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}.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}";
2799
- const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
2800
-
2801
- const CalendarDatepicker = class {
2802
- constructor(hostRef) {
2803
- registerInstance(this, hostRef);
2804
- this.afOnDateChange = createEvent(this, "afOnDateChange", 7);
2805
- this.afOnDisplayChange = createEvent(this, "afOnDisplayChange", 7);
2806
- this.afOnValidationChange = createEvent(this, "afOnValidationChange", 7);
2807
- this.futureYears = 10;
2808
- this.screenReaderUpdateTrigger = false;
2809
- this.showWrongFormatError = false;
2810
- this.showDisabledDateError = false;
2811
- this.showCalendar = false;
2812
- this.userInput = '';
2813
- this.isEditing = false;
2814
- this.afId = randomIdGenerator('digi-calendar-datepicker');
2815
- this.afLabel = _t.calendar.datepicker.label;
2816
- this.afLabelDescription = _t.calendar.datepicker.description;
2817
- this.afName = undefined;
2818
- this.afOpenCalendarAriaLabel = _t.calendar.datepicker.openCalendarAriaLabel;
2819
- this.afCloseCalendarAriaLabel = _t.calendar.datepicker.closeCalendarAriaLabel;
2820
- this.afValidation = CalendarDatepickerValidation.NEUTRAL;
2821
- this.afValidationText = undefined;
2822
- this.afValidationWrongFormat = _t.calendar.datepicker.validationWrongFormat;
2823
- this.afValidationDisabledDate = _t.calendar.datepicker.validationDisabledDate;
2824
- this.afRequired = undefined;
2825
- this.afDisableValidation = undefined;
2826
- this.afRequiredText = undefined;
2827
- this.afSelectedDates = [];
2828
- this.afYearSelect = false;
2829
- this.value = [];
2830
- this.afMinDate = undefined;
2831
- this.afMaxDate = undefined;
2832
- this.afShowWeekNumber = false;
2833
- this.afMultipleDates = false;
2834
- this.afCloseOnSelect = false;
2835
- }
2836
- afDisableValidationChangeHandler(newVal) {
2837
- if (!newVal) {
2838
- const dates = this.userInput !== ''
2839
- ? this.parseInputString(this.userInput)
2840
- : this.afSelectedDates;
2841
- this.validateInputAndShowErrors(dates);
2842
- }
2843
- else {
2844
- this.showWrongFormatError = false;
2845
- this.showDisabledDateError = false;
2846
- }
2847
- }
2848
- afSelectedDatesChangeHandler(newVal) {
2849
- if (!this.afDisableValidation && newVal.length > 0) {
2850
- this.validateInputAndShowErrors(newVal);
2851
- }
2852
- }
2853
- valueChangeHandler(newVal) {
2854
- if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2855
- this.afSelectedDates = [];
2856
- }
2857
- /**
2858
- * 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.
2859
- */
2860
- if (Array.isArray(newVal) &&
2861
- newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2862
- this.afSelectedDates = newVal;
2863
- this.userInput = '';
2864
- }
2865
- }
2866
- afMinDateChangeHandler(newVal) {
2867
- if (!this.afDisableValidation && newVal) {
2868
- this.validateInputAndShowErrors(this.afSelectedDates);
2869
- }
2870
- }
2871
- afMaxDateChangeHandler(newVal) {
2872
- if (!this.afDisableValidation && newVal) {
2873
- this.validateInputAndShowErrors(this.afSelectedDates);
2874
- }
2875
- }
2876
- afMultipleDatesChangeHandler() {
2877
- var _a;
2878
- if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2879
- this.afSelectedDates = this.afSelectedDates.slice(-1);
2880
- this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2881
- }
2882
- }
2883
- clickHandler(e) {
2884
- const target = e.target;
2885
- const selector = `#${this.afId}-datepicker`;
2886
- if (detectClickOutside(target, selector)) {
2887
- this.showCalendar = false;
2888
- }
2889
- }
2890
- connectedCallback() {
2891
- this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2892
- }
2893
- disconnectedCallback() {
2894
- this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2895
- }
2896
- componentDidLoad() {
2897
- var _a;
2898
- if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2899
- this.setValue(this.value);
2900
- }
2901
- }
2902
- componentDidUpdate() {
2903
- if (this.showCalendar) {
2904
- this.positionCalendar();
2905
- }
2906
- }
2907
- get cssModifiers() {
2908
- return {
2909
- 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2910
- 'digi-calendar-datepicker__show-error': this.hasBuiltInValidationError() || this.hasCustomValidationError(),
2911
- 'digi-calendar-datepicker__show-calendar': this.showCalendar
2912
- };
2913
- }
2914
- keyUpHandler(e) {
2915
- if (e.key === 'Escape' && this.showCalendar) {
2916
- this.showCalendar = false;
2917
- this.focusOnCalendarButton();
2918
- e.stopPropagation();
2919
- }
2920
- }
2921
- focusOnCalendarButton() {
2922
- const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2923
- calendarButton.focus();
2924
- }
2925
- positionCalendar() {
2926
- const btn = this.hostElement.querySelector(`#${this.afId}-button`);
2927
- const datepickerEl = this.hostElement.querySelector(`#${this.afId}-datepicker`);
2928
- if (!btn || !datepickerEl)
2929
- return;
2930
- const btnRect = btn.getBoundingClientRect();
2931
- const containerRect = datepickerEl.getBoundingClientRect();
2932
- datepickerEl.style.setProperty('--digi--datepicker--calendar--popup-top', `${btnRect.bottom - containerRect.top + 5}px`);
2933
- }
2934
- toggleCalendar() {
2935
- if (!this.showCalendar) {
2936
- this.positionCalendar();
2937
- }
2938
- this.showCalendar = !this.showCalendar;
2939
- if (this.showCalendar) {
2940
- this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2941
- }
2942
- }
2943
- parseInputString(value) {
2944
- return value
2945
- .split(/[&,]|och/g)
2946
- .map((text) => this.parseDateString(text.trim()));
2947
- }
2948
- resetValueAndState() {
2949
- this.showWrongFormatError = false;
2950
- this.showDisabledDateError = false;
2951
- this.setValue([]);
2952
- this.afOnDateChange.emit([]);
2953
- this.afSelectedDates = [];
2954
- }
2955
- removeDuplicateDates(dates) {
2956
- const seen = new Set();
2957
- return dates.filter((date) => {
2958
- if (!(date instanceof Date) || isNaN(date.getTime())) {
2959
- return true;
2960
- }
2961
- const key = date.toISOString().split('T')[0]; // yyyy-mm-dd
2962
- if (seen.has(key)) {
2963
- return false;
2964
- }
2965
- seen.add(key);
2966
- return true;
2967
- });
2968
- }
2969
- validateInputAndShowErrors(dates) {
2970
- this.showWrongFormatError = !!dates.find((date) => !isValid(date));
2971
- this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2972
- this.afOnValidationChange.emit({
2973
- valid: !this.showWrongFormatError && !this.showDisabledDateError
2974
- });
2975
- }
2976
- setValue(value) {
2977
- this.afSelectedDates = value;
2978
- this.value = value;
2979
- }
2980
- parseInput(evt) {
2981
- let newValue = '';
2982
- if (evt.detail && typeof evt.detail.value === 'string') {
2983
- newValue = evt.detail.value;
2984
- }
2985
- else if (evt.target && evt.target.value != null) {
2986
- newValue = evt.target.value;
2987
- }
2988
- this.userInput = newValue;
2989
- if (newValue === '') {
2990
- this.resetValueAndState();
2991
- return;
2992
- }
2993
- let dates = this.parseInputString(newValue);
2994
- if (this.afMultipleDates) {
2995
- const uniqueDates = this.removeDuplicateDates(dates);
2996
- if (uniqueDates.length !== dates.length) {
2997
- dates = this.removeDuplicateDates(uniqueDates);
2998
- this.userInput = this.datesToInputString(dates);
2999
- }
3000
- }
3001
- this.setValue(dates);
3002
- if (!this.afDisableValidation) {
3003
- this.validateInputAndShowErrors(dates);
3004
- }
3005
- this.afOnDateChange.emit(dates);
3006
- }
3007
- parseCalendar(evt) {
3008
- if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
3009
- return;
3010
- if (!this.afDisableValidation) {
3011
- this.showWrongFormatError = false;
3012
- this.showDisabledDateError = false;
3013
- }
3014
- this.userInput = '';
3015
- this.setValue(evt.detail);
3016
- this.afOnDisplayChange.emit(this.inputValue);
3017
- if (this.afCloseOnSelect) {
3018
- this.toggleCalendar();
3019
- this.focusOnCalendarButton();
3020
- }
3021
- this.afOnDateChange.emit(this.afSelectedDates);
3022
- }
3023
- /*
3024
-
3025
- 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.
3026
-
3027
- */
3028
- parseDateString(s) {
3029
- const raw = s.trim().replace(/[./]/g, '-');
3030
- // 1) yyyy-MM-dd
3031
- if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
3032
- const d = parse(raw, 'yyyy-MM-dd', new Date());
3033
- return isValid(d) ? d : new Date(NaN);
3034
- }
3035
- // 2) yyyymmdd
3036
- if (/^\d{8}$/.test(raw)) {
3037
- const yyyy = raw.slice(0, 4);
3038
- const mm = raw.slice(4, 6);
3039
- const dd = raw.slice(6, 8);
3040
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
3041
- return isValid(d) ? d : new Date(NaN);
3042
- }
3043
- // 3) yymmdd (map to full year using the previous futureYears logic)
3044
- if (/^\d{6}$/.test(raw)) {
3045
- const yy = raw.slice(0, 2);
3046
- const mm = raw.slice(2, 4);
3047
- const dd = raw.slice(4, 6);
3048
- const yyyy = this.getFullYear(yy);
3049
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
3050
- return isValid(d) ? d : new Date(NaN);
3051
- }
3052
- // Everything else is invalid (so "1" and "25" will now be "Fel format")
3053
- return new Date(NaN);
3054
- }
3055
- getFullYear(s) {
3056
- if (s.length === 4)
3057
- return s;
3058
- const y = new Date().getFullYear().toString();
3059
- return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
3060
- ? parseInt(y.slice(0, -2)) - 1 + s
3061
- : y.slice(0, -2) + s;
3062
- }
3063
- isDateSelectable(date) {
3064
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
3065
- return false;
3066
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
3067
- return false;
3068
- return true;
3069
- }
3070
- isBefore(a, b) {
3071
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
3072
- }
3073
- isAfter(a, b) {
3074
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
3075
- }
3076
- dateWithoutTime(date) {
3077
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
3078
- }
3079
- hasBuiltInValidationError() {
3080
- return this.showWrongFormatError || this.showDisabledDateError;
3081
- }
3082
- hasCustomValidationError() {
3083
- return (this.afValidation &&
3084
- this.afValidation !== CalendarDatepickerValidation.NEUTRAL);
3085
- }
3086
- getErrorText() {
3087
- if (this.hasBuiltInValidationError()) {
3088
- return this.showWrongFormatError
3089
- ? this.afValidationWrongFormat
3090
- : this.afValidationDisabledDate;
3091
- }
3092
- if (this.hasCustomValidationError()) {
3093
- return this.afValidationText;
3094
- }
3095
- }
3096
- get inputValue() {
3097
- if (this.userInput !== '') {
3098
- return this.userInput;
3099
- }
3100
- // otherwise format your real selected dates
3101
- const sorted = this.afSelectedDates
3102
- .slice()
3103
- .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
3104
- return this.datesToInputString(sorted);
3105
- }
3106
- datesToInputString(dates) {
3107
- return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
3108
- ? dates
3109
- .map((date) => date.toLocaleDateString('sv-SE'))
3110
- .flatMap((date, index, all) => {
3111
- const isLast = index == all.length - 1;
3112
- const isFirst = index === 0;
3113
- if (isFirst) {
3114
- return date;
3115
- }
3116
- else if (isLast) {
3117
- return [' och ', date];
3118
- }
3119
- else {
3120
- return [', ', date];
3121
- }
3122
- })
3123
- .join('')
3124
- : '';
3125
- }
3126
- get getSelectedDates() {
3127
- if (!this.afDisableValidation && this.hasBuiltInValidationError()) {
3128
- return [];
3129
- }
3130
- return this.afSelectedDates;
3131
- }
3132
- render() {
3133
- return (h(Host, { key: '7498df7cd58780209c33cadaa0e65d8a935aa253' }, h("div", { key: 'edcf1672bb743fae4e802a8f73e30401139d89a1', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, h("div", { key: '8df4d331ce09fa8df6b333cd3a56f3dfd1b57af7', class: "digi-calendar-datepicker__input-field" }, h("digi-form-input", { key: 'cc59e5a03540fe01340f7ce46817f160868234e0', class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afName: this.afName, afValue: this.inputValue, afValidation: this.isEditing
3134
- ? FormInputValidation.NEUTRAL
3135
- : this.hasBuiltInValidationError()
3136
- ? FormInputValidation.ERROR
3137
- : this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
3138
- evt.stopImmediatePropagation();
3139
- this.isEditing = true;
3140
- this.parseInput(evt);
3141
- }, onAfOnBlur: (evt) => {
3142
- evt.stopImmediatePropagation();
3143
- this.isEditing = false;
3144
- this.afOnDisplayChange.emit(this.inputValue);
3145
- }, onKeyDown: () => {
3146
- this.isEditing = true;
3147
- } }, h("button", { key: '4a1200715cc96e9cf53a0fb07db6038031cf35cd', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
3148
- ? this.afCloseCalendarAriaLabel
3149
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, this.showCalendar ? (h("digi-icon-x", { class: "digi-calendar-datepicker__button-icon", slot: "icon" })) : (h("digi-icon-calendar-alt", { class: "digi-calendar-datepicker__button-icon", slot: "icon" }))))), h("div", { key: '5db4a77bf061632b589721796236f802f6d9b479', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, h("p", { key: '830aa34e80ddd1c73bfc8c8592f3903b925703e5', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
3150
- ? `${_t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
3151
- : ''), h("digi-calendar", { key: '12a2735b8811e53b618087004e9288fe2e9b8af2', 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, onAfOnDateSelectedChange: (evt) => {
3152
- evt.stopImmediatePropagation();
3153
- this.parseCalendar(evt);
3154
- }, onAfOnFocusOutside: (evt) => {
3155
- if (this.showCalendar) {
3156
- const relatedTarget = evt.detail.relatedTarget;
3157
- if (!relatedTarget)
3158
- return;
3159
- evt.preventDefault();
3160
- const isDateButton = relatedTarget.classList.contains('digi-calendar__date');
3161
- const isToggleButton = relatedTarget.id === `${this.afId}-button`;
3162
- if (isDateButton) {
3163
- this.focusOnCalendarButton();
3164
- }
3165
- else if (isToggleButton) {
3166
- const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
3167
- focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
3168
- }
3169
- }
3170
- } })), this.afCloseOnSelect && !this.afMultipleDates && (h("div", { key: 'e05fb1b11b44ad4c4f5c7ad452aa7f7e548f8db5', class: "digi-calendar-datepicker__selected-date-alert", role: "alert" }, this.afSelectedDates.length > 0
3171
- ? `${_t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
3172
- : '')))));
3173
- }
3174
- get hostElement() { return getElement(this); }
3175
- static get watchers() { return {
3176
- "afDisableValidation": ["afDisableValidationChangeHandler"],
3177
- "afSelectedDates": ["afSelectedDatesChangeHandler"],
3178
- "value": ["valueChangeHandler"],
3179
- "afMinDate": ["afMinDateChangeHandler"],
3180
- "afMaxDate": ["afMaxDateChangeHandler"],
3181
- "afMultipleDates": ["afMultipleDatesChangeHandler"]
3182
- }; }
3183
- };
3184
- CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
3185
-
3186
- const formInputCss = ".sc-digi-form-input-h{--digi--form-input--height--small:var(--digi--input-height--small);--digi--form-input--height--medium:var(--digi--input-height--medium);--digi--form-input--height--large:var(--digi--input-height--large);--digi--form-input--border-radius:var(--digi--border-radius--input);--digi--form-input--padding:0 var(--digi--gutter--medium);--digi--form-input--background--empty:var(--digi--color--background--interactive--default--input-elements);--digi--form-input--background--neutral:var(--digi--color--background--interactive--default--input-elements);--digi--form-input--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-input--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-input--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-input--border--neutral:var(--digi--border-width--input-regular) solid;--digi--form-input--border--error:var(--digi--border-width--input-validation) solid;--digi--form-input--border--success:var(--digi--border-width--input-validation) solid;--digi--form-input--border--warning:var(--digi--border-width--input-validation) solid;--digi--form-input--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-input--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-input--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-input--border-color--error:var(--digi--color--border--interactive--validation--error)}.sc-digi-form-input-h .digi-form-input.sc-digi-form-input{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-input-h .digi-form-input--small.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--small)}.sc-digi-form-input-h .digi-form-input--medium.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--medium)}.sc-digi-form-input-h .digi-form-input--large.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--large)}.sc-digi-form-input-h .digi-form-input--neutral.sc-digi-form-input{--BORDER:var(--digi--form-input--border--neutral);--BORDER-COLOR:var(--digi--form-input--border-color--neutral);--BACKGROUND:var(--digi--form-input--background--neutral)}.sc-digi-form-input-h .digi-form-input--empty.sc-digi-form-input:not(:focus-within){--BACKGROUND:var(--digi--form-input--background--empty)}.sc-digi-form-input-h .digi-form-input--success.sc-digi-form-input{--BORDER:var(--digi--form-input--border--success);--BORDER-COLOR:var(--digi--form-input--border-color--success);--BACKGROUND:var(--digi--form-input--background--success)}.sc-digi-form-input-h .digi-form-input--warning.sc-digi-form-input{--BORDER:var(--digi--form-input--border--warning);--BORDER-COLOR:var(--digi--form-input--border-color--warning);--BACKGROUND:var(--digi--form-input--background--warning)}.sc-digi-form-input-h .digi-form-input--error.sc-digi-form-input{--BORDER:var(--digi--form-input--border--error);--BORDER-COLOR:var(--digi--form-input--border-color--error);--BACKGROUND:var(--digi--form-input--background--error)}.digi-form-input__input-wrapper.sc-digi-form-input{position:relative;display:flex}.digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{--MIN-HEIGHT:100%}.digi-form-input--button-variation-primary .digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{border-start-start-radius:0;border-end-start-radius:0}.digi-form-input--button-variation-secondary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input-wrapper.sc-digi-form-input{gap:var(--digi--gutter--medium);flex-wrap:wrap}.digi-form-input__input.sc-digi-form-input{flex:1;height:var(--HEIGHT);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--body--font-size--desktop);padding:var(--digi--form-input--padding);color:var(--digi--color--text--primary);background:var(--BACKGROUND);border:var(--BORDER);border-color:var(--BORDER-COLOR);border-radius:var(--digi--form-input--border-radius);box-sizing:border-box}.digi-form-input__input.sc-digi-form-input:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-form-input--button-variation-primary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input.sc-digi-form-input{border-end-end-radius:0;border-start-end-radius:0}";
3187
- const DigiFormInputStyle0 = formInputCss;
3188
-
3189
- const FormInput = class {
3190
- constructor(hostRef) {
3191
- registerInstance(this, hostRef);
3192
- this.afOnChange = createEvent(this, "afOnChange", 7);
3193
- this.afOnBlur = createEvent(this, "afOnBlur", 7);
3194
- this.afOnKeyup = createEvent(this, "afOnKeyup", 7);
3195
- this.afOnFocus = createEvent(this, "afOnFocus", 7);
3196
- this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
3197
- this.afOnInput = createEvent(this, "afOnInput", 7);
3198
- this.afOnDirty = createEvent(this, "afOnDirty", 7);
3199
- this.afOnTouched = createEvent(this, "afOnTouched", 7);
3200
- this.afOnReady = createEvent(this, "afOnReady", 3);
3201
- this.hasActiveValidationMessage = false;
3202
- this.hasButton = undefined;
3203
- this.dirty = false;
3204
- this.touched = false;
3205
- this.isEditing = false;
3206
- this.afLabel = undefined;
3207
- this.afLabelDescription = undefined;
3208
- this.afType = FormInputType.TEXT;
3209
- this.afInputmode = FormInputMode.DEFAULT;
3210
- this.afButtonVariation = FormInputButtonVariation.PRIMARY;
3211
- this.afAutofocus = undefined;
3212
- this.afVariation = FormInputVariation.MEDIUM;
3213
- this.afName = undefined;
3214
- this.afId = randomIdGenerator('digi-form-input');
3215
- this.afMaxlength = undefined;
3216
- this.afMinlength = undefined;
3217
- this.afRequired = undefined;
3218
- this.afRequiredText = undefined;
3219
- this.afAnnounceIfOptional = false;
3220
- this.afAnnounceIfOptionalText = undefined;
3221
- this.value = undefined;
3222
- this.afValue = undefined;
3223
- this.afValidation = FormInputValidation.NEUTRAL;
3224
- this.afValidationText = undefined;
3225
- this.afRole = undefined;
3226
- this.afAutocomplete = undefined;
3227
- this.afMin = undefined;
3228
- this.afMax = undefined;
3229
- this.afList = undefined;
3230
- this.afStep = undefined;
3231
- this.afDirname = undefined;
3232
- this.afAriaAutocomplete = undefined;
3233
- this.afAriaActivedescendant = undefined;
3234
- this.afAriaLabelledby = undefined;
3235
- this.afAriaDescribedby = undefined;
3236
- this.afAriaControls = undefined;
3237
- this.afTrimValue = undefined;
3238
- }
3239
- onValueChanged(value) {
3240
- this.afValue = value;
3241
- }
3242
- onAfValueChanged(value) {
3243
- this.value = value;
3244
- }
3245
- afValidationTextWatch() {
3246
- this.setActiveValidationMessage();
3247
- }
3248
- /**
3249
- * Hämtar en referens till inputelementet. Bra för att t.ex. sätta fokus programmatiskt.
3250
- * @en Returns a reference to the input element. Handy for setting focus programmatically.
3251
- */
3252
- async afMGetFormControlElement() {
3253
- return this._input;
3254
- }
3255
- componentWillLoad() {
3256
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3257
- this.setActiveValidationMessage();
3258
- this.setHasButton();
3259
- }
3260
- componentWillUpdate() {
3261
- this.setHasButton();
3262
- }
3263
- componentDidLoad() {
3264
- this.afOnReady.emit();
3265
- }
3266
- setActiveValidationMessage() {
3267
- this.hasActiveValidationMessage = !!this.afValidationText;
3268
- }
3269
- get cssModifiers() {
3270
- return {
3271
- 'digi-form-input--small': this.afVariation === FormInputVariation.SMALL,
3272
- 'digi-form-input--medium': this.afVariation === FormInputVariation.MEDIUM,
3273
- 'digi-form-input--large': this.afVariation === FormInputVariation.LARGE,
3274
- 'digi-form-input--neutral': this.afValidation === FormInputValidation.NEUTRAL,
3275
- 'digi-form-input--success': this.afValidation === FormInputValidation.SUCCESS,
3276
- 'digi-form-input--error': !this.isEditing && this.afValidation === FormInputValidation.ERROR,
3277
- 'digi-form-input--warning': !this.isEditing && this.afValidation === FormInputValidation.WARNING,
3278
- [`digi-form-input--button-variation-${this.afButtonVariation}`]: !!this.afButtonVariation,
3279
- [`digi-form-input--has-button-${this.hasButton}`]: true,
3280
- 'digi-form-input--empty': !this.afValue &&
3281
- (!this.afValidation ||
3282
- this.afValidation === FormInputValidation.NEUTRAL)
3283
- };
3284
- }
3285
- blurHandler(e) {
3286
- const trimableTypes = [
3287
- FormInputType.TEXT,
3288
- FormInputType.EMAIL,
3289
- FormInputType.SEARCH,
3290
- FormInputType.TEL,
3291
- FormInputType.URL
3292
- ];
3293
- const shouldTrim = this.afTrimValue && trimableTypes.includes(this.afType);
3294
- if (shouldTrim && typeof e.target.value === 'string') {
3295
- const trimmedValue = e.target.value.trim();
3296
- if (trimmedValue !== e.target.value) {
3297
- this.afValue = this.value = trimmedValue;
3298
- if (this._input) {
3299
- this._input.value = trimmedValue;
3300
- }
3301
- // Emittar afOnInput så Angulars value accessor får det trimmade värdet
3302
- this.afOnInput.emit(e);
3303
- }
3304
- }
3305
- if (!this.touched) {
3306
- this.afOnTouched.emit(e);
3307
- this.touched = true;
3308
- }
3309
- this.isEditing = false;
3310
- this.afOnBlur.emit(e);
3311
- }
3312
- changeHandler(e) {
3313
- this.setActiveValidationMessage();
3314
- this.afOnChange.emit(e);
3315
- }
3316
- focusHandler(e) {
3317
- this.afOnFocus.emit(e);
3318
- }
3319
- focusoutHandler(e) {
3320
- this.afOnFocusout.emit(e);
3321
- }
3322
- keyupHandler(e) {
3323
- this.afOnKeyup.emit(e);
3324
- }
3325
- inputHandler(e) {
3326
- this.afValue = this.value =
3327
- this.afType === FormInputType.NUMBER
3328
- ? parseFloat(e.target.value)
3329
- : e.target.value;
3330
- if (!this.dirty) {
3331
- this.afOnDirty.emit(e);
3332
- this.dirty = true;
3333
- }
3334
- this.setActiveValidationMessage();
3335
- this.afOnInput.emit(e);
3336
- }
3337
- setHasButton() {
3338
- this.hasButton = !!this.hostElement.querySelector('[slot="button"]');
3339
- }
3340
- render() {
3341
- return (h("div", { key: 'def034db4be8dcec58d6ee59c6ad9f5638cbc476', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, h("digi-form-label", { key: 'e461f9dd36690fc2aa08914972adcb8805121479', class: "digi-form-input__label", afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), h("div", { key: 'a986a18060e89a646e68e2e45bbc73d189bd5573', class: "digi-form-input__input-wrapper" }, h("input", Object.assign({ key: 'cb5e252a4bd3dab8f408c110ad0c37b0c5997129', class: "digi-form-input__input", ref: (el) => (this._input = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyDown: () => this.isEditing = true, onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-autocomplete": this.afAriaAutocomplete, "aria-invalid": this.afValidation === FormInputValidation.ERROR ? 'true' : 'false', "aria-controls": this.afAriaControls, autocomplete: this.afAutocomplete, autofocus: this.afAutofocus ? this.afAutofocus : null, maxLength: this.afMaxlength, minLength: this.afMinlength, max: this.afMax, min: this.afMin, step: this.afStep, list: this.afList, role: this.afRole, dirName: this.afDirname, required: this.afRequired, id: this.afId, name: this.afName, type: this.afType, value: this.afValue }, (this.afInputmode == FormInputMode.DEFAULT
3342
- ? {}
3343
- : { inputmode: this.afInputmode }))), h("slot", { key: '8a16fed00c0d4b8be2bb3f6e42cb11a920439e8c', name: "button" })), h("div", { key: '02415ad4300e58dfc8693fe4f16738cf822936a7', class: "digi-form-input__footer" }, h("div", { key: '8c3ffd5dfefa5303897d832b204d6b14a0a11f30', class: "digi-form-input__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, !this.isEditing && this.hasActiveValidationMessage &&
3344
- this.afValidation != FormInputValidation.NEUTRAL && (h("digi-form-validation-message", { key: '931d4f21777a7013164adeb51e3008d9aeebce6a', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
3345
- }
3346
- get hostElement() { return getElement(this); }
3347
- static get watchers() { return {
3348
- "value": ["onValueChanged"],
3349
- "afValue": ["onAfValueChanged"],
3350
- "afValidationText": ["afValidationTextWatch"]
3351
- }; }
3352
- };
3353
- FormInput.style = DigiFormInputStyle0;
3354
-
3355
- const formLabelCss = ".sc-digi-form-label-h .digi-form-label.sc-digi-form-label{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);color:var(--digi--color--text--primary);display:flex;flex-direction:column}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label{font-weight:var(--digi--typography--label--font-weight--desktop)}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label,.sc-digi-form-label-h .digi-form-label__label--description.sc-digi-form-label{line-height:var(--digi--typography--label--line-height--desktop);cursor:pointer;display:block}.sc-digi-form-label-h .digi-form-label__label-group.sc-digi-form-label{display:inline-flex;align-items:center;gap:var(--digi--gutter--icon)}.sc-digi-form-label-h .digi-form-label__description.sc-digi-form-label{max-width:var(--digi--paragraph-width--medium);line-height:var(--digi--typography--label-description--line-height--desktop);font-size:var(--digi--typography--label-description--font-size--desktop)}";
3356
- const DigiFormLabelStyle0 = formLabelCss;
3357
-
3358
- const FormLabel = class {
3359
- constructor(hostRef) {
3360
- registerInstance(this, hostRef);
3361
- this.labelText = undefined;
3362
- this.hasActionSlot = undefined;
3363
- this.afLabel = undefined;
3364
- this.afId = randomIdGenerator('digi-form-label');
3365
- this.afFor = undefined;
3366
- this.afDescription = undefined;
3367
- this.afRequired = undefined;
3368
- this.afAnnounceIfOptional = false;
3369
- this.afRequiredText = _t.required.toLowerCase();
3370
- this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
3371
- }
3372
- componentWillLoad() {
3373
- this.setLabelText();
3374
- this.validateFor();
3375
- this.handleSlotVisibility();
3376
- }
3377
- validateFor() {
3378
- if (this.afFor == null) {
3379
- logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
3380
- }
3381
- }
3382
- setLabelText() {
3383
- this.labelText = `${this.afLabel} ${this.requiredText}`;
3384
- if (!this.afLabel) {
3385
- logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
3386
- }
3387
- }
3388
- handleSlotVisibility() {
3389
- this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
3390
- }
3391
- get requiredText() {
3392
- if (this.afRequired && !this.afAnnounceIfOptional) {
3393
- return this.afRequiredText ? ` (${this.afRequiredText})` : '';
3394
- }
3395
- else if (!this.afRequired && this.afAnnounceIfOptional) {
3396
- return this.afAnnounceIfOptionalText
3397
- ? ` (${this.afAnnounceIfOptionalText})`
3398
- : '';
3399
- }
3400
- else {
3401
- return '';
3402
- }
3403
- }
3404
- render() {
3405
- return (h("div", { key: '01e206691f77e812de51faf2b01497335fe6f649', class: "digi-form-label" }, h("div", { key: 'a2a451ab29e0b5e94a4d4d3ed6d05ed326bdc713', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: '25840b00bd54a23867afafcc4b49f1abdadfb207', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: '7ef08e051d2323d2704aebf0527e9127dd2a413b', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (h("span", { key: 'b03334e5a943a080cf5077847aee90bceadf8fe8', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: '37135ca88e673eb213d410055d3574c6f0e5e43d', class: "digi-form-label__actions" }, h("slot", { key: 'c7b62819bb01f867511d19ce776e4780b2f94a97', name: "actions" }))))));
3406
- }
3407
- get hostElement() { return getElement(this); }
3408
- static get watchers() { return {
3409
- "afFor": ["validateFor"],
3410
- "afLabel": ["setLabelText"],
3411
- "afRequired": ["setLabelText"],
3412
- "afAnnounceIfOptional": ["setLabelText"]
3413
- }; }
3414
- };
3415
- FormLabel.style = DigiFormLabelStyle0;
3416
-
3417
- const formSelectCss = ".sc-digi-form-select-h{--digi--form-select--background--empty:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--neutral:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-select--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-select--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-select--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-select--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-select--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-select--border-color--error:var(--digi--color--border--interactive--validation--error);--digi--form-select--select-wrapper--position:relative;--digi--form-select--select--height--small:var(--digi--input-height--small);--digi--form-select--select--height--medium:var(--digi--input-height--medium);--digi--form-select--select--height--large:var(--digi--input-height--large);--digi--form-select--select--border-radius:var(--digi--border-radius--input);--digi--form-select--select--padding:0 var(--digi--gutter--medium);--digi--form-select--select--padding--inline-end:var(--digi--padding--large);--digi--form-select--select--border-width--neutral:var(--digi--border-width--input-regular);--digi--form-select--select--border-width--success:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--error:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--warning:var(--digi--border-width--input-validation);--digi--form-select--select--width:100%;--digi--form-select--select--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--select-option--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--label--margin-bottom:var(--digi--gutter--medium);--digi--form-select--icon--inline-end:0.75rem;--digi--form-select--icon--top:50%;--digi--form-select--icon--transform:translateY(-50%);--digi--form-select--icon--color:var(--digi--color--icon--primary);--digi--form-select--footer--margin-top:var(--digi--gutter--medium)}.sc-digi-form-select-h .digi-form-select.sc-digi-form-select{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-select-h .digi-form-select--neutral.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--neutral);--BORDER-COLOR:var(--digi--form-select--border-color--neutral);--BACKGROUND:var(--digi--form-select--background--neutral)}.sc-digi-form-select-h .digi-form-select--success.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--success);--BORDER-COLOR:var(--digi--form-select--border-color--success);--BACKGROUND:var(--digi--form-select--background--success)}.sc-digi-form-select-h .digi-form-select--warning.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--warning);--BORDER-COLOR:var(--digi--form-select--border-color--warning);--BACKGROUND:var(--digi--form-select--background--warning)}.sc-digi-form-select-h .digi-form-select--error.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--error);--BORDER-COLOR:var(--digi--form-select--border-color--error);--BACKGROUND:var(--digi--form-select--background--error)}.sc-digi-form-select-h .digi-form-select--small.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--small)}.sc-digi-form-select-h .digi-form-select--medium.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--medium)}.sc-digi-form-select-h .digi-form-select--large.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--large)}.sc-digi-form-select-h .digi-form-select--empty.sc-digi-form-select:not(:focus-within){--BACKGROUND:var(--digi--form-select--background--empty)}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select{appearance:none;width:var(--digi--form-select--select--width);padding:var(--digi--form-select--select--padding);padding-inline-end:var(--digi--form-select--select--padding--inline-end);height:var(--HEIGHT);border:var(--BORDER-WIDTH) solid;border-radius:var(--digi--form-select--select--border-radius);border-color:var(--BORDER-COLOR);cursor:pointer;font-size:var(--digi--form-select--select--font-size);color:var(--digi--color--text--primary);background:var(--BACKGROUND);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-form-select-h .digi-form-select__select-wrapper.sc-digi-form-select{position:var(--digi--form-select--select-wrapper--position)}.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{font-size:var(--digi--form-select--select-option--font-size)}@media (min-width: 48rem){.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{--digi--form-select--select-option--font-size:var(--digi--typography--font-size--l)}}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select::-ms-expand{display:none}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-form-select-h .digi-form-select__icon.sc-digi-form-select{position:absolute;inset-inline-end:var(--digi--form-select--icon--inline-end);inset-block-start:var(--digi--form-select--icon--top);transform:var(--digi--form-select--icon--transform);pointer-events:none;color:var(--digi--form-select--icon--color)}.digi-form-select--neutral.sc-digi-form-select .digi-form-select__footer.sc-digi-form-select{position:absolute}";
3418
- const DigiFormSelectStyle0 = formSelectCss;
3419
-
3420
- const FormSelect = class {
3421
- constructor(hostRef) {
3422
- registerInstance(this, hostRef);
3423
- this.afOnChange = createEvent(this, "afOnChange", 7);
3424
- this.afOnSelect = createEvent(this, "afOnSelect", 7);
3425
- this.afOnFocus = createEvent(this, "afOnFocus", 7);
3426
- this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
3427
- this.afOnBlur = createEvent(this, "afOnBlur", 7);
3428
- this.afOnDirty = createEvent(this, "afOnDirty", 7);
3429
- this.afOnReady = createEvent(this, "afOnReady", 3);
3430
- this.optionItems = [];
3431
- this.dirty = false;
3432
- this.touched = false;
3433
- this.hasPlaceholder = false;
3434
- this.afLabel = undefined;
3435
- this.afAriaLabel = undefined;
3436
- this.afRequired = undefined;
3437
- this.afRequiredText = undefined;
3438
- this.afPlaceholder = undefined;
3439
- this.afAnnounceIfOptional = false;
3440
- this.afAnnounceIfOptionalText = undefined;
3441
- this.afId = randomIdGenerator('digi-form-select');
3442
- this.afName = undefined;
3443
- this.afDescription = undefined;
3444
- this.value = undefined;
3445
- this.afValue = undefined;
3446
- this.afDisableValidation = undefined;
3447
- this.afVariation = FormSelectVariation.MEDIUM;
3448
- this.afValidation = FormSelectValidation.NEUTRAL;
3449
- this.afValidationText = undefined;
3450
- this.afStartSelected = undefined;
3451
- this.afAutofocus = undefined;
3452
- }
3453
- onValueChanged(value) {
3454
- this.afValue = value;
3455
- }
3456
- onAfValueChanged(value) {
3457
- this.value = value;
3458
- }
3459
- getOptions() {
3460
- this.checkIfPlaceholder();
3461
- const options = this._observer.children;
3462
- if (!options || options.length <= 0) {
3463
- logger.warn(`The slot contains no option elements.`, this.hostElement);
3464
- return;
3465
- }
3466
- this.optionItems = [...Array.from(options)]
3467
- .filter((el) => el.tagName.toLowerCase() === 'option')
3468
- .map((el) => {
3469
- return {
3470
- value: el['value'],
3471
- text: el['text']
3472
- };
3473
- });
3474
- }
3475
- checkIfPlaceholder() {
3476
- this.hasPlaceholder = !!this.afPlaceholder;
3477
- }
3478
- componentWillLoad() {
3479
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3480
- }
3481
- componentDidLoad() {
3482
- this.getOptions();
3483
- this.afStartSelected &&
3484
- (this.afValue = this.optionItems[this.afStartSelected].value);
3485
- this.afOnReady.emit();
3486
- }
3487
- /**
3488
- * Returnerar en referens till formulärkontrollelementet.
3489
- * @en Returns a reference to the form control element.
3490
- */
3491
- async afMGetFormControlElement() {
3492
- return this._select;
3493
- }
3494
- get cssModifiers() {
3495
- return {
3496
- 'digi-form-select--small': this.afVariation === FormSelectVariation.SMALL,
3497
- 'digi-form-select--medium': this.afVariation === FormSelectVariation.MEDIUM,
3498
- 'digi-form-select--large': this.afVariation === FormSelectVariation.LARGE,
3499
- 'digi-form-select--neutral': this.afValidation === FormSelectValidation.NEUTRAL,
3500
- 'digi-form-select--success': this.afValidation === FormSelectValidation.SUCCESS,
3501
- 'digi-form-select--warning': this.afValidation === FormSelectValidation.WARNING,
3502
- 'digi-form-select--error': this.afValidation === FormSelectValidation.ERROR,
3503
- 'digi-form-select--empty': !this.afValue &&
3504
- (!this.afValidation ||
3505
- this.afValidation === FormSelectValidation.NEUTRAL)
3506
- };
3507
- }
3508
- changeHandler(e) {
3509
- if (!this.dirty) {
3510
- this.afOnDirty.emit(e);
3511
- this.dirty = true;
3512
- }
3513
- this.value = this.afValue = e.target.value;
3514
- this.afOnChange.emit(e);
3515
- }
3516
- selectHandler(e) {
3517
- this.value = this.afValue = e.target.value;
3518
- this.afOnSelect.emit(e);
3519
- }
3520
- focusHandler(e) {
3521
- this.afOnFocus.emit(e);
3522
- }
3523
- focusoutHandler(e) {
3524
- this.afOnFocusout.emit(e);
3525
- }
3526
- blurHandler(e) {
3527
- this.afOnBlur.emit(e);
3528
- }
3529
- getSelectedItem(option) {
3530
- return this.afValue == option.value;
3531
- }
3532
- showValidation() {
3533
- return !this.afDisableValidation &&
3534
- this.afValidation !== FormSelectValidation.NEUTRAL &&
3535
- this.afValidationText
3536
- ? true
3537
- : false;
3538
- }
3539
- render() {
3540
- return (h("div", { key: '383eae4d2e740bd424d76a095abe09e98602c0a0', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '9cd23532e83bbd843f6c6480562cbffcbe1780a2', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '58ea8cf5d755a8ba5b84e9010097ad3d2b6f8576', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '7c8a35e191cde25892e107415b453a6787a9ab23', class: "digi-form-select__select-wrapper" }, h("select", { key: 'ad62a59613e26f44eaaec5725174e0256028d886', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
3541
- ? 'true'
3542
- : 'false', ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '83b51b96cc3f59fa33ca7233a887e19466aadd1a', class: {
3543
- 'digi-form-select__select-option': true,
3544
- 'digi-form-select__select-option--initial-value': true
3545
- }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
3546
- return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
3547
- })), h("digi-icon-input-select-marker", { key: 'f2556cbc4c38b65ce652511b03acb59f5082c577', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: '619dfa80c868526ed3ff28d120f3798743f9c011', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
3548
- e.stopImmediatePropagation();
3549
- this.getOptions();
3550
- } }, h("slot", { key: 'f29d471016704b271008e81fa06320ada1ecfb4f' })), h("div", { key: '4393c0e4fcf3a36bcd034f60ec6bbe49eedac057', class: "digi-form-select__footer" }, h("div", { key: '579755d6a2a9c3c5a9573beae36454cdb3d2bd3f', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '53f717a8fdce19710c9e1761476e522f7151e24a', "af-variation": this.afValidation }, this.afValidationText))))));
3551
- }
3552
- get hostElement() { return getElement(this); }
3553
- static get watchers() { return {
3554
- "value": ["onValueChanged"],
3555
- "afValue": ["onAfValueChanged"]
3556
- }; }
3557
- };
3558
- FormSelect.style = DigiFormSelectStyle0;
3559
-
3560
- const formTextareaCss = ".sc-digi-form-textarea-h{--digi--form-textarea--height--small:4.6875rem;--digi--form-textarea--height--medium:8.4375rem;--digi--form-textarea--height--large:10.3125rem;--digi--form-textarea--height--auto:auto;--digi--form-textarea--border-radius:var(--digi--border-radius--input);--digi--form-textarea--padding:calc(var(--digi--gutter--medium) / 2) var(--digi--gutter--medium);--digi--form-textarea--background--empty:var(--digi--color--background--interactive--default--input-elements);--digi--form-textarea--background--neutral:var(--digi--color--background--interactive--default--input-elements);--digi--form-textarea--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-textarea--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-textarea--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-textarea--border--neutral:var(--digi--border-width--input-regular) solid;--digi--form-textarea--border--error:var(--digi--border-width--input-validation) solid;--digi--form-textarea--border--success:var(--digi--border-width--input-validation) solid;--digi--form-textarea--border--warning:var(--digi--border-width--input-validation) solid;--digi--form-textarea--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-textarea--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-textarea--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-textarea--border-color--error:var(--digi--color--border--interactive--validation--error)}.sc-digi-form-textarea-h .digi-form-textarea.sc-digi-form-textarea{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-textarea-h .digi-form-textarea--small.sc-digi-form-textarea{--HEIGHT:var(--digi--form-textarea--height--small)}.sc-digi-form-textarea-h .digi-form-textarea--medium.sc-digi-form-textarea{--HEIGHT:var(--digi--form-textarea--height--medium)}.sc-digi-form-textarea-h .digi-form-textarea--large.sc-digi-form-textarea{--HEIGHT:var(--digi--form-textarea--height--large)}.sc-digi-form-textarea-h .digi-form-textarea--neutral.sc-digi-form-textarea{--BORDER:var(--digi--form-textarea--border--neutral);--BORDER-COLOR:var(--digi--form-textarea--border-color--neutral);--BACKGROUND:var(--digi--form-textarea--background--neutral)}.sc-digi-form-textarea-h .digi-form-textarea--empty.sc-digi-form-textarea:not(:focus-within){--BACKGROUND:var(--digi--form-textarea--background--empty)}.sc-digi-form-textarea-h .digi-form-textarea--success.sc-digi-form-textarea{--BORDER:var(--digi--form-textarea--border--success);--BORDER-COLOR:var(--digi--form-textarea--border-color--success);--BACKGROUND:var(--digi--form-textarea--background--success)}.sc-digi-form-textarea-h .digi-form-textarea--warning.sc-digi-form-textarea{--BORDER:var(--digi--form-textarea--border--warning);--BORDER-COLOR:var(--digi--form-textarea--border-color--warning);--BACKGROUND:var(--digi--form-textarea--background--warning)}.sc-digi-form-textarea-h .digi-form-textarea--error.sc-digi-form-textarea{--BORDER:var(--digi--form-textarea--border--error);--BORDER-COLOR:var(--digi--form-textarea--border-color--error);--BACKGROUND:var(--digi--form-textarea--background--error)}.sc-digi-form-textarea-h .digi-form-textarea__content.sc-digi-form-textarea{width:100%}.sc-digi-form-textarea-h .digi-form-textarea__textarea.sc-digi-form-textarea{height:var(--HEIGHT);width:inherit;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--body--font-size--desktop);padding:var(--digi--form-textarea--padding);color:var(--digi--color--text--primary);background:var(--BACKGROUND);border:var(--BORDER);border-color:var(--BORDER-COLOR);border-radius:var(--digi--form-textarea--border-radius);box-sizing:border-box}.sc-digi-form-textarea-h .digi-form-textarea__textarea.sc-digi-form-textarea:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}";
3561
- const DigiFormTextareaStyle0 = formTextareaCss;
3562
-
3563
- const FormTextarea = class {
3564
- constructor(hostRef) {
3565
- registerInstance(this, hostRef);
3566
- this.afOnChange = createEvent(this, "afOnChange", 7);
3567
- this.afOnBlur = createEvent(this, "afOnBlur", 7);
3568
- this.afOnKeyup = createEvent(this, "afOnKeyup", 7);
3569
- this.afOnFocus = createEvent(this, "afOnFocus", 7);
3570
- this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
3571
- this.afOnInput = createEvent(this, "afOnInput", 7);
3572
- this.afOnDirty = createEvent(this, "afOnDirty", 7);
3573
- this.afOnTouched = createEvent(this, "afOnTouched", 7);
3574
- this.afOnReady = createEvent(this, "afOnReady", 3);
3575
- this.hasActiveValidationMessage = false;
3576
- this.dirty = false;
3577
- this.touched = false;
3578
- this.isEditing = false;
3579
- this.afLabel = undefined;
3580
- this.afLabelDescription = undefined;
3581
- this.afVariation = FormTextareaVariation.MEDIUM;
3582
- this.afName = undefined;
3583
- this.afId = randomIdGenerator('digi-form-textarea');
3584
- this.afMaxlength = undefined;
3585
- this.afMinlength = undefined;
3586
- this.afRequired = undefined;
3587
- this.afRequiredText = undefined;
3588
- this.afAnnounceIfOptional = false;
3589
- this.afAnnounceIfOptionalText = undefined;
3590
- this.value = undefined;
3591
- this.afValue = undefined;
3592
- this.afValidation = FormTextareaValidation.NEUTRAL;
3593
- this.afValidationText = undefined;
3594
- this.afRole = undefined;
3595
- this.afAriaActivedescendant = undefined;
3596
- this.afAriaLabelledby = undefined;
3597
- this.afAriaDescribedby = undefined;
3598
- this.afAutofocus = undefined;
3599
- }
3600
- onValueChanged(value) {
3601
- this.afValue = value;
3602
- }
3603
- onAfValueChanged(value) {
3604
- this.value = value;
3605
- }
3606
- afValidationTextWatch() {
3607
- this.setActiveValidationMessage();
3608
- }
3609
- /**
3610
- * Hämtar en referens till textareaelementet. Bra för att t.ex. sätta fokus programmatiskt.
3611
- * @en Returns a reference to the textarea element. Handy for setting focus programmatically.
3612
- */
3613
- async afMGetFormControlElement() {
3614
- return this._textarea;
3615
- }
3616
- componentWillLoad() {
3617
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3618
- this.setActiveValidationMessage();
3619
- }
3620
- componentDidLoad() {
3621
- this.afOnReady.emit();
3622
- }
3623
- setActiveValidationMessage() {
3624
- this.hasActiveValidationMessage = !!this.afValidationText;
3625
- }
3626
- get cssModifiers() {
3627
- return {
3628
- 'digi-form-textarea--small': this.afVariation === FormTextareaVariation.SMALL,
3629
- 'digi-form-textarea--medium': this.afVariation === FormTextareaVariation.MEDIUM,
3630
- 'digi-form-textarea--large': this.afVariation === FormTextareaVariation.LARGE,
3631
- 'digi-form-textarea--auto': this.afVariation === FormTextareaVariation.AUTO,
3632
- 'digi-form-textarea--neutral': this.afValidation === FormTextareaValidation.NEUTRAL,
3633
- 'digi-form-textarea--success': this.afValidation === FormTextareaValidation.SUCCESS,
3634
- 'digi-form-textarea--error': !this.isEditing && this.afValidation === FormTextareaValidation.ERROR,
3635
- 'digi-form-textarea--warning': !this.isEditing && this.afValidation === FormTextareaValidation.WARNING,
3636
- 'digi-form-textarea--empty': !this.afValue &&
3637
- (!this.afValidation ||
3638
- this.afValidation === FormTextareaValidation.NEUTRAL)
3639
- };
3640
- }
3641
- blurHandler(e) {
3642
- this.isEditing = false;
3643
- if (!this.touched) {
3644
- this.afOnTouched.emit(e);
3645
- this.touched = true;
3646
- }
3647
- this.setActiveValidationMessage();
3648
- this.afOnBlur.emit(e);
3649
- }
3650
- changeHandler(e) {
3651
- this.afOnChange.emit(e);
3652
- }
3653
- focusHandler(e) {
3654
- this.afOnFocus.emit(e);
3655
- }
3656
- focusoutHandler(e) {
3657
- this.afOnFocusout.emit(e);
3658
- }
3659
- keyupHandler(e) {
3660
- this.afOnKeyup.emit(e);
3661
- }
3662
- inputHandler(e) {
3663
- this.afValue = this.value = e.target.value;
3664
- if (!this.dirty) {
3665
- this.afOnDirty.emit(e);
3666
- this.dirty = true;
3667
- }
3668
- this.setActiveValidationMessage();
3669
- this.afOnInput.emit(e);
3670
- }
3671
- render() {
3672
- return (h("div", { key: 'ca77f5d62dc794ff17223c0c914ef00d070d4845', class: Object.assign({ 'digi-form-textarea': true }, this.cssModifiers) }, h("div", { key: 'd155dcb5c0cb754cd76c557e9bc382836e3ef76a', class: "digi-form-textarea__label" }, h("digi-form-label", { key: '5c8d3b5b19417aa280812c2770cbb4cad2692969', afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: 'dcddec6e31b9e97b9ba1d4109adf112af0a07b29', class: "digi-form-textarea__content" }, h("textarea", { key: 'c399e1aa0ef714c2a356edf6b538a71df1b27994', class: "digi-form-textarea__textarea", ref: (el) => (this._textarea = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyDown: () => this.isEditing = true, onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-invalid": this.afValidation === FormTextareaValidation.ERROR
3673
- ? 'true'
3674
- : 'false', maxLength: this.afMaxlength, minLength: this.afMinlength, role: this.afRole, required: this.afRequired, id: this.afId, name: this.afName, value: this.afValue, autofocus: this.afAutofocus ? this.afAutofocus : null })), h("div", { key: '8954b122a04e741550553e5b5dc29145346501b3', class: "digi-form-textarea__footer" }, h("div", { key: '9540eee3c9c2aa70e0139b4b84f035494e9aee21', class: "digi-form-textarea__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, !this.isEditing && this.hasActiveValidationMessage &&
3675
- this.afValidation != FormTextareaValidation.NEUTRAL && (h("digi-form-validation-message", { key: '350b51a7cd29627a53f2267a1726ad4917657cef', class: "digi-form-textarea__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
3676
- }
3677
- get hostElement() { return getElement(this); }
3678
- static get watchers() { return {
3679
- "value": ["onValueChanged"],
3680
- "afValue": ["onAfValueChanged"],
3681
- "afValidationText": ["afValidationTextWatch"]
3682
- }; }
3683
- };
3684
- FormTextarea.style = DigiFormTextareaStyle0;
3685
-
3686
- const formValidationMessageCss = ".sc-digi-form-validation-message-h{--digi--form-validation-message--icon-color--success:var(--digi--color--icon--validation--success);--digi--form-validation-message--icon-color--warning:var(--digi--color--icon--validation--warning);--digi--form-validation-message--icon-color--error:var(--digi--color--icon--validation--error)}.sc-digi-form-validation-message-h .digi-form-validation-message.sc-digi-form-validation-message{display:flex;flex-wrap:wrap;align-items:center}.sc-digi-form-validation-message-h .digi-form-validation-message--success.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--success)}.sc-digi-form-validation-message-h .digi-form-validation-message--warning.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--warning)}.sc-digi-form-validation-message-h .digi-form-validation-message--error.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--error)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message{color:var(--ICON-COLOR);margin-inline-end:var(--digi--gutter--icon)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message>*.sc-digi-form-validation-message{--digi--icon--width:1.25em;--digi--icon--height:1.25em;--digi--icon--color:var(--ICON-COLOR);display:flex}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message .warning.sc-digi-form-validation-message{top:3px;position:relative}.sc-digi-form-validation-message-h .digi-form-validation-message__text.sc-digi-form-validation-message{flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);color:var(--digi--color--text--primary)}";
3687
- const DigiFormValidationMessageStyle0 = formValidationMessageCss;
3688
-
3689
- const FormValidationMessage = class {
3690
- constructor(hostRef) {
3691
- registerInstance(this, hostRef);
3692
- this.afVariation = FormValidationMessageVariation.SUCCESS;
3693
- }
3694
- get cssModifiers() {
3695
- return {
3696
- 'digi-form-validation-message--success': this.afVariation === FormValidationMessageVariation.SUCCESS,
3697
- 'digi-form-validation-message--error': this.afVariation === FormValidationMessageVariation.ERROR,
3698
- 'digi-form-validation-message--warning': this.afVariation === FormValidationMessageVariation.WARNING
3699
- };
3700
- }
3701
- get icon() {
3702
- switch (this.afVariation) {
3703
- case FormValidationMessageVariation.SUCCESS:
3704
- return h("digi-icon-validation-success", null);
3705
- case FormValidationMessageVariation.ERROR:
3706
- return h("digi-icon-validation-error", null);
3707
- case FormValidationMessageVariation.WARNING:
3708
- return h("digi-icon-validation-warning", { class: "warning" });
3709
- }
3710
- }
3711
- render() {
3712
- return (h("div", { key: '1d765a8f3ab31e6140d0cf1b38c16df16125ab86', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, h("div", { key: 'd72919b3424c3c93cf4027b45a97141d4d25c12a', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), h("span", { key: '94f63d1b27caff2d4901a0c865b05214569e8423', class: "digi-form-validation-message__text" }, h("slot", { key: 'a1f927cc629d752f7885cb6dc063ebef24feed78' }))));
3713
- }
3714
- get hostElement() { return getElement(this); }
3715
- };
3716
- FormValidationMessage.style = DigiFormValidationMessageStyle0;
3717
-
3718
- const iconCalendarAltCss = ".sc-digi-icon-calendar-alt-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-calendar-alt-h svg.sc-digi-icon-calendar-alt{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3719
- const DigiIconCalendarAltStyle0 = iconCalendarAltCss;
3720
-
3721
- const IconCalendarAlt = class {
3722
- constructor(hostRef) {
3723
- registerInstance(this, hostRef);
3724
- this.afTitle = undefined;
3725
- this.afDesc = undefined;
3726
- this.afSvgAriaHidden = true;
3727
- this.afSvgAriaLabelledby = undefined;
3728
- this.titleId = randomIdGenerator('icontitle');
3729
- }
3730
- render() {
3731
- return (h("svg", { key: 'fd6b08fb5ea743051c0b16099197ec3e9bf39f9f', class: "digi-icon-calendar-alt", width: "22", height: "26", viewBox: "0 0 22 26", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3732
- ? this.afSvgAriaLabelledby
3733
- : this.afTitle
3734
- ? this.titleId
3735
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '5b427f5678e47dbbb79f021a3dbb5c5bdebf3210', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'cfd51c6007132d9d7999883ec2f30749d22e6f9a' }, this.afDesc), h("path", { key: 'e87a72c3bc9c0fa4c93b325aae5e80e591b59698', class: "digi-icon-calendar-alt__shape", d: "M21.41 8.125H.59a.601.601 0 01-.59-.61V5.689C0 4.341 1.056 3.25 2.357 3.25h2.357V.61c0-.336.265-.61.59-.61h1.964c.324 0 .59.274.59.61v2.64h6.285V.61c0-.336.265-.61.59-.61h1.963c.325 0 .59.274.59.61v2.64h2.357C20.944 3.25 22 4.342 22 5.688v1.828c0 .335-.265.609-.59.609zM.59 9.75h20.82c.325 0 .59.274.59.61v13.203C22 24.907 20.944 26 19.643 26H2.357C1.056 26 0 24.908 0 23.562V10.36c0-.335.265-.609.59-.609zm5.696 10.36a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm6.285 6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm6.286 6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03z", fill: "currentColor", "fill-rule": "nonzero" })));
3736
- }
3737
- };
3738
- IconCalendarAlt.style = DigiIconCalendarAltStyle0;
3739
-
3740
- const iconChevronLeftCss = ".sc-digi-icon-chevron-left-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-left-h svg.sc-digi-icon-chevron-left{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3741
- const DigiIconChevronLeftStyle0 = iconChevronLeftCss;
3742
-
3743
- const IconChevronLeft = class {
3744
- constructor(hostRef) {
3745
- registerInstance(this, hostRef);
3746
- this.afTitle = undefined;
3747
- this.afDesc = undefined;
3748
- this.afSvgAriaHidden = true;
3749
- this.afSvgAriaLabelledby = undefined;
3750
- this.titleId = randomIdGenerator('icontitle');
3751
- }
3752
- render() {
3753
- return (h("svg", { key: 'b88f989a94d17792a9d1e5889f05f2a426b22d7d', class: "digi-icon-chevron-left", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3754
- ? this.afSvgAriaLabelledby
3755
- : this.afTitle
3756
- ? this.titleId
3757
- : undefined }, this.afTitle && h("title", { key: '6a2458cc2ead4e8681a9ecb558b5a86750089e00', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'b273c58c4707a98787d86900b8f1fcc99b1bd5b8' }, this.afDesc), h("path", { key: '19d2e3a426a6ab279281e1e43ecdc3dfb42e4adc', class: "digi-icon-chevron-left__shape", d: "M8 13L2 6.926 7.853 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3758
- }
3759
- };
3760
- IconChevronLeft.style = DigiIconChevronLeftStyle0;
3761
-
3762
- const iconChevronRightCss = ".sc-digi-icon-chevron-right-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-right-h svg.sc-digi-icon-chevron-right{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3763
- const DigiIconChevronRightStyle0 = iconChevronRightCss;
3764
-
3765
- const IconChevronRight = class {
3766
- constructor(hostRef) {
3767
- registerInstance(this, hostRef);
3768
- this.afTitle = undefined;
3769
- this.afDesc = undefined;
3770
- this.afSvgAriaHidden = true;
3771
- this.afSvgAriaLabelledby = undefined;
3772
- this.titleId = randomIdGenerator('icontitle');
3773
- }
3774
- render() {
3775
- return (h("svg", { key: '879dc9a26dda3271d06221075c0d73cf784c155b', class: "digi-icon-chevron-right", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3776
- ? this.afSvgAriaLabelledby
3777
- : this.afTitle
3778
- ? this.titleId
3779
- : undefined }, this.afTitle && h("title", { key: '5a650f83b25b5bf1fe63516a9c09017528cbfeaa', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '8576be21c6efe68c5b51c5b869024eb5f80732ab' }, this.afDesc), h("path", { key: '468f6444a428061234e1198f9f95c6937bef7951', class: "digi-icon-chevron-right__shape", d: "M1 13l6-6.074L1.147 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3780
- }
3781
- };
3782
- IconChevronRight.style = DigiIconChevronRightStyle0;
3783
-
3784
- const iconInputSelectMarkerCss = ".sc-digi-icon-input-select-marker-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-input-select-marker-h svg.sc-digi-icon-input-select-marker{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3785
- const DigiIconInputSelectMarkerStyle0 = iconInputSelectMarkerCss;
3786
-
3787
- const IconInputSelectMarker = class {
3788
- constructor(hostRef) {
3789
- registerInstance(this, hostRef);
3790
- this.afTitle = undefined;
3791
- this.afDesc = undefined;
3792
- this.afSvgAriaHidden = true;
3793
- this.afSvgAriaLabelledby = undefined;
3794
- this.titleId = randomIdGenerator('icon-input-select-marker');
3795
- }
3796
- render() {
3797
- return (h("svg", { key: '1e02a2f3a08ac40255417454a74f0a5df27de52a', class: "digi-icon-input-select-marker", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3798
- ? this.afSvgAriaLabelledby
3799
- : this.afTitle
3800
- ? this.titleId
3801
- : undefined }, this.afTitle && h("title", { key: 'fc483316cd294aa2ac7cd5aefe543ad96ed25193', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '0114d9cb9b14b52311bc44806e02b13ea6a4cd09' }, this.afDesc), h("path", { key: '31d5c77559631ef0d07fc324f981af0368a5e25a', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3802
- }
3803
- };
3804
- IconInputSelectMarker.style = DigiIconInputSelectMarkerStyle0;
3805
-
3806
- const iconValidationErrorCss = ".sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3807
- const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
3808
-
3809
- const IconValidationError = class {
3810
- constructor(hostRef) {
3811
- registerInstance(this, hostRef);
3812
- this.afTitle = undefined;
3813
- this.afDesc = undefined;
3814
- this.afSvgAriaHidden = true;
3815
- this.afSvgAriaLabelledby = undefined;
3816
- this.titleId = randomIdGenerator('icontitle');
3817
- }
3818
- render() {
3819
- return (h("svg", { key: '9bcffd70d15bac51ac40d626d32ed3fee3a3cf8a', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3820
- ? this.afSvgAriaLabelledby
3821
- : this.afTitle
3822
- ? this.titleId
3823
- : undefined }, this.afTitle && h("title", { key: '699395c6cd6c8819c8d8b37418edd7b7f13c50b3', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'ee5fe058a625f08847b75cce380317966ff460f7' }, this.afDesc), h("path", { key: '12fc387b08d6d562ccd7a7d6135b515ad69567f2', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
3824
- }
3825
- };
3826
- IconValidationError.style = DigiIconValidationErrorStyle0;
3827
-
3828
- const iconValidationSuccessCss = ".sc-digi-icon-validation-success-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-success-h svg.sc-digi-icon-validation-success{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3829
- const DigiIconValidationSuccessStyle0 = iconValidationSuccessCss;
3830
-
3831
- const IconCheckCircle = class {
3832
- constructor(hostRef) {
3833
- registerInstance(this, hostRef);
3834
- this.afTitle = undefined;
3835
- this.afDesc = undefined;
3836
- this.afSvgAriaHidden = true;
3837
- this.afSvgAriaLabelledby = undefined;
3838
- this.titleId = randomIdGenerator('icontitle');
3839
- }
3840
- render() {
3841
- return (h("svg", { key: '93e5e89d400ac61cfd72a19b1d9c41845ed0e529', class: "digi-icon-validation-success", width: "25", height: "25", viewBox: "0 0 25 25", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3842
- ? this.afSvgAriaLabelledby
3843
- : this.afTitle
3844
- ? this.titleId
3845
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '106c694331991a41fba7b9e0bc868687a866ee76', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '200dd89c03ccded526d1882dc883c4b0ba11318b' }, this.afDesc), h("path", { key: 'c9bdf2d2a029f4910e1d90ae33d8fd92ea9f28fb', class: "digi-icon-validation-success__shape", d: "M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z", fill: "currentColor", "fill-rule": "nonzero" })));
3846
- }
3847
- };
3848
- IconCheckCircle.style = DigiIconValidationSuccessStyle0;
3849
-
3850
- const iconValidationWarningCss = ".sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3851
- const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
3852
-
3853
- const IconValidationWarning = class {
3854
- constructor(hostRef) {
3855
- registerInstance(this, hostRef);
3856
- this.afTitle = undefined;
3857
- this.afDesc = undefined;
3858
- this.afSvgAriaHidden = true;
3859
- this.afSvgAriaLabelledby = undefined;
3860
- this.titleId = randomIdGenerator('icontitle');
3861
- }
3862
- render() {
3863
- return (h("div", { key: '2946355e5e95978f5719d070333a890c0bfb5d55' }, h("svg", { key: 'f5eb51220fd9acb37eff03e4c758731498ca3697', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3864
- ? this.afSvgAriaLabelledby
3865
- : this.afTitle
3866
- ? this.titleId
3867
- : undefined }, this.afTitle && h("title", { key: '08370e29e04c815421408b98c2cb2a4a41d06b33', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'bf5fd56abbfb0eb182e0d2b9fda93226ad09fa26' }, this.afDesc), h("g", { key: 'bb1be9aecdb4c76395e408a6dcb0cbb6aa82b41f', fill: "none", "fill-rule": "evenodd" }, h("circle", { key: '52b3bca3201cc1c1e2f42a8ae7c6d361679cdbe5', cx: "9", cy: "9", r: "6.75", fill: "#333" }), h("path", { key: '249091506e8315e092b799a7595e872effc0c807', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
3868
- }
3869
- };
3870
- IconValidationWarning.style = DigiIconValidationWarningStyle0;
3871
-
3872
- const iconXCss = ".sc-digi-icon-x-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-x-h svg.sc-digi-icon-x{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3873
- const DigiIconXStyle0 = iconXCss;
3874
-
3875
- const IconX = class {
3876
- constructor(hostRef) {
3877
- registerInstance(this, hostRef);
3878
- this.afTitle = undefined;
3879
- this.afDesc = undefined;
3880
- this.afSvgAriaHidden = true;
3881
- this.afSvgAriaLabelledby = undefined;
3882
- this.titleId = randomIdGenerator('icontitle');
3883
- }
3884
- render() {
3885
- return (h("svg", { key: '3cce0ffd3de94a550e4c58a04d43e91e7472148b', class: "digi-icon-x", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3886
- ? this.afSvgAriaLabelledby
3887
- : this.afTitle
3888
- ? this.titleId
3889
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: 'b2b80f2c79ffd7a41944f91754ff56666fd646c6', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '2a431cdb4add28c27f3c232ad391460d04320385' }, this.afDesc), h("g", { key: '15088afc072d9a3233f363a0601f38f0d5130b19', class: "digi-icon-x__shape", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "square" }, h("path", { key: '9343259e78002f12582799c35094b3ccff440ad2', d: "M2 2l7.986 7.986M9.986 2L2 9.986" }))));
3890
- }
3891
- };
3892
- IconX.style = DigiIconXStyle0;
3893
-
3894
- const typographyCss = "digi-typography{--digi--typography--h1--margin--small:var(--digi--margin--h1-small);--digi--typography--h1--margin--medium:var(--digi--margin--h1-medium);--digi--typography--h1--margin--large:var(--digi--margin--h1-large);--digi--typography--h2--margin--small:var(--digi--margin--h2-small);--digi--typography--h2--margin--large:var(--digi--margin--h2-large);--digi--typography--h3--margin--small:var(--digi--margin--h3-small);--digi--typography--h3--margin--large:var(--digi--margin--h3-large);--digi--typography--h4--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h4--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--h5--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h6--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--paragraph--margin--small:var(--digi--margin--text-small);--digi--typography--paragraph--margin--large:var(--digi--margin--text-large);--digi--typography--paragraph--margin-top:initial;--digi--typography--color--text:var(--digi--color--text--primary);--digi--typography--text-decoration-thickness--hover:0.156em;--digi--typography--text-decoration-thickness--default:0.05em;--digi--typography--text-underline-offset:3px;font-family:var(--digi--global--typography--font-family--default);color:var(--digi--typography--color--text);--FONT-SIZE--BODY:var(--digi--typography--body--font-size--mobile);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--mobile);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--mobile);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--mobile\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--mobile);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--mobile);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--mobile);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--mobile\n );--FONT-SIZE--HEADING-1:var(--digi--typography--heading-1--font-size--mobile);--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--mobile\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--mobile\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--mobile\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--small);--FONT-SIZE--HEADING-2:var(--digi--typography--heading-2--font-size--mobile);--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--mobile\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--mobile\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--mobile\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(--digi--typography--heading-3--font-size--mobile);--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--mobile\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--mobile\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--mobile\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-5:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-6:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-6:var(--digi--typography--h4--margin--small);font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY)}@media (min-width: 61.9375rem){digi-typography{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}}digi-typography h1,digi-typography h2,digi-typography h3,digi-typography h4,digi-typography h5,digi-typography h6{margin-top:0;}digi-typography h1,digi-typography .digi-h1{font-size:var(--FONT-SIZE--HEADING-1);line-height:var(--LINE-HEIGHT--HEADING-1);font-weight:var(--FONT-WEIGHT--HEADING-1);text-decoration:var(--TEXT-DECORATION--HEADING-1);margin-bottom:var(--MARGIN--HEADING-1)}digi-typography h2,digi-typography .digi-h2{font-size:var(--FONT-SIZE--HEADING-2);line-height:var(--LINE-HEIGHT--HEADING-2);font-weight:var(--FONT-WEIGHT--HEADING-2);text-decoration:var(--TEXT-DECORATION--HEADING-2);margin-bottom:var(--MARGIN--HEADING-2)}digi-typography h3,digi-typography .digi-h3{font-size:var(--FONT-SIZE--HEADING-3);line-height:var(--LINE-HEIGHT--HEADING-3);font-weight:var(--FONT-WEIGHT--HEADING-3);text-decoration:var(--TEXT-DECORATION--HEADING-3);margin-bottom:var(--MARGIN--HEADING-3)}digi-typography h4,digi-typography .digi-h4{font-size:var(--FONT-SIZE--HEADING-4);line-height:var(--LINE-HEIGHT--HEADING-4);font-weight:var(--FONT-WEIGHT--HEADING-4);text-decoration:var(--TEXT-DECORATION--HEADING-4);margin-bottom:var(--MARGIN--HEADING-4)}digi-typography h5,digi-typography .digi-h5{font-size:var(--FONT-SIZE--HEADING-5);line-height:var(--LINE-HEIGHT--HEADING-5);font-weight:var(--FONT-WEIGHT--HEADING-5);text-decoration:var(--TEXT-DECORATION--HEADING-5);margin-bottom:var(--MARGIN--HEADING-5)}digi-typography h6,digi-typography .digi-h6{font-size:var(--FONT-SIZE--HEADING-6);line-height:var(--LINE-HEIGHT--HEADING-6);font-weight:var(--FONT-WEIGHT--HEADING-6);text-decoration:var(--TEXT-DECORATION--HEADING-6);margin-bottom:var(--MARGIN--HEADING-6)}digi-typography p,digi-typography blockquote{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);margin-top:initial;margin-bottom:var(--MARGIN--BODY);max-width:var(--digi--paragraph-width--medium)}digi-typography p:last-child,digi-typography blockquote:last-child{margin-bottom:0}digi-typography blockquote{margin-inline:0}digi-typography digi-typography-preamble{display:block;margin-bottom:var(--MARGIN--BODY)}digi-typography digi-typography-preamble:last-child{margin-bottom:0}digi-typography ul,digi-typography ol,digi-typography dl{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);max-width:var(--digi--paragraph-width--medium);margin-bottom:var(--MARGIN--BODY)}digi-typography ul,digi-typography ol{margin:0 0 var(--MARGIN--BODY) 0;padding-inline-start:1.5rem}digi-typography ul li,digi-typography ol li{margin-top:initial;margin-bottom:0.5rem;box-sizing:border-box;width:100%;padding-left:0}digi-typography ul li:last-child,digi-typography ol li:last-child{margin-bottom:0}digi-typography a{font-size:1em;line-height:var(--LINE-HEIGHT--LINK);font-weight:inherit;text-decoration:var(--TEXT-DECORATION--LINK);color:var(--digi--color--text--interactive--primary);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--default);text-underline-offset:var(--digi--typography--text-underline-offset)}digi-typography a:hover{text-decoration:var(--TEXT-DECORATION--LINK);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--hover)}digi-typography a:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}digi-typography a:visited{color:var(--digi--color--text--interactive--visited)}digi-typography .digi-typography--hide-visited a:visited{color:var(--digi--color--text--interactive--primary)}digi-typography strong{font-weight:var(--digi--typography--label--font-weight--desktop)}";
3895
- const DigiTypographyStyle0 = typographyCss;
3896
-
3897
- const Typography = class {
3898
- constructor(hostRef) {
3899
- registerInstance(this, hostRef);
3900
- this.hideVisitedColor = undefined;
3901
- }
3902
- get cssModifiers() {
3903
- return {
3904
- 'digi-typography--hide-visited': this.hideVisitedColor
3905
- };
3906
- }
3907
- render() {
3908
- return (h("div", { key: '0a53e415d6ac45f689b60eed07395369e17f4d70', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, h("slot", { key: '42d3601d815402494c54be1029bb2aa1f81750ee' })));
3909
- }
3910
- };
3911
- Typography.style = DigiTypographyStyle0;
3912
-
3913
- const UtilKeydownHandler = class {
3914
- constructor(hostRef) {
3915
- registerInstance(this, hostRef);
3916
- this.afOnEsc = createEvent(this, "afOnEsc", 7);
3917
- this.afOnEnter = createEvent(this, "afOnEnter", 7);
3918
- this.afOnTab = createEvent(this, "afOnTab", 7);
3919
- this.afOnSpace = createEvent(this, "afOnSpace", 7);
3920
- this.afOnShiftTab = createEvent(this, "afOnShiftTab", 7);
3921
- this.afOnUp = createEvent(this, "afOnUp", 7);
3922
- this.afOnDown = createEvent(this, "afOnDown", 7);
3923
- this.afOnLeft = createEvent(this, "afOnLeft", 7);
3924
- this.afOnRight = createEvent(this, "afOnRight", 7);
3925
- this.afOnHome = createEvent(this, "afOnHome", 7);
3926
- this.afOnEnd = createEvent(this, "afOnEnd", 7);
3927
- this.afOnKeyDown = createEvent(this, "afOnKeyDown", 7);
3928
- }
3929
- keydownHandler(e) {
3930
- const key = keyboardHandler(e);
3931
- switch (key) {
3932
- case KEY_CODE.SHIFT_TAB:
3933
- this.afOnShiftTab.emit(e);
3934
- break;
3935
- case KEY_CODE.DOWN_ARROW:
3936
- this.afOnDown.emit(e);
3937
- this.afOnKeyDown.emit(e);
3938
- break;
3939
- case KEY_CODE.UP_ARROW:
3940
- this.afOnUp.emit(e);
3941
- this.afOnKeyDown.emit(e);
3942
- break;
3943
- case KEY_CODE.LEFT_ARROW:
3944
- this.afOnLeft.emit(e);
3945
- this.afOnKeyDown.emit(e);
3946
- break;
3947
- case KEY_CODE.RIGHT_ARROW:
3948
- this.afOnRight.emit(e);
3949
- this.afOnKeyDown.emit(e);
3950
- break;
3951
- case KEY_CODE.ENTER:
3952
- this.afOnEnter.emit(e);
3953
- this.afOnKeyDown.emit(e);
3954
- break;
3955
- case KEY_CODE.ESCAPE:
3956
- this.afOnEsc.emit(e);
3957
- this.afOnKeyDown.emit(e);
3958
- break;
3959
- case KEY_CODE.TAB:
3960
- this.afOnTab.emit(e);
3961
- this.afOnKeyDown.emit(e);
3962
- break;
3963
- case KEY_CODE.SPACE:
3964
- this.afOnSpace.emit(e);
3965
- this.afOnKeyDown.emit(e);
3966
- break;
3967
- case KEY_CODE.HOME:
3968
- this.afOnHome.emit(e);
3969
- this.afOnKeyDown.emit(e);
3970
- break;
3971
- case KEY_CODE.END:
3972
- this.afOnEnd.emit(e);
3973
- this.afOnKeyDown.emit(e);
3974
- break;
3975
- case KEY_CODE.ANY:
3976
- this.afOnKeyDown.emit(e);
3977
- break;
3978
- default:
3979
- this.afOnKeyDown.emit(e);
3980
- return;
3981
- }
3982
- }
3983
- render() {
3984
- return h("slot", { key: 'c005ab4f415b2b68811263ad16350be67b0d08fd' });
3985
- }
3986
- };
3987
-
3988
- const UtilMutationObserver = class {
3989
- constructor(hostRef) {
3990
- registerInstance(this, hostRef);
3991
- this.afOnChange = createEvent(this, "afOnChange", 7);
3992
- this._observer = null;
3993
- this._isObserving = false;
3994
- this.afId = randomIdGenerator('digi-util-mutation-observer');
3995
- this.afOptions = {
3996
- attributes: false,
3997
- childList: true,
3998
- subtree: false,
3999
- characterData: false
4000
- };
4001
- }
4002
- afOptionsWatcher(newValue) {
4003
- this._afOptions =
4004
- typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
4005
- }
4006
- componentWillLoad() {
4007
- this.afOptionsWatcher(this.afOptions);
4008
- this.initObserver();
4009
- }
4010
- disconnectedCallback() {
4011
- if (this._isObserving) {
4012
- this.removeObserver();
4013
- }
4014
- }
4015
- initObserver() {
4016
- this._observer = new MutationObserver((mutationsList) => {
4017
- for (const mutation of mutationsList) {
4018
- if (mutation.type === 'childList' ||
4019
- mutation.type === 'attributes' ||
4020
- mutation.type === 'characterData') {
4021
- this.changeHandler(mutation);
4022
- }
4023
- }
4024
- });
4025
- this._observer.observe(this.$el, this._afOptions);
4026
- this._isObserving = true;
4027
- }
4028
- removeObserver() {
4029
- this._observer.disconnect();
4030
- this._isObserving = false;
4031
- }
4032
- changeHandler(e) {
4033
- this.afOnChange.emit(e);
4034
- }
4035
- render() {
4036
- h("div", { id: this.afId, ref: (el) => (this.$el = el) }, h("slot", null));
4037
- }
4038
- get $el() { return getElement(this); }
4039
- static get watchers() { return {
4040
- "afOptions": ["afOptionsWatcher"]
4041
- }; }
4042
- };
4043
-
4044
- export { Button as digi_button, Calendar as digi_calendar, CalendarDatepicker as digi_calendar_datepicker, FormInput as digi_form_input, FormLabel as digi_form_label, FormSelect as digi_form_select, FormTextarea as digi_form_textarea, FormValidationMessage as digi_form_validation_message, IconCalendarAlt as digi_icon_calendar_alt, IconChevronLeft as digi_icon_chevron_left, IconChevronRight as digi_icon_chevron_right, IconInputSelectMarker as digi_icon_input_select_marker, IconValidationError as digi_icon_validation_error, IconCheckCircle as digi_icon_validation_success, IconValidationWarning as digi_icon_validation_warning, IconX as digi_icon_x, Typography as digi_typography, UtilKeydownHandler as digi_util_keydown_handler, UtilMutationObserver as digi_util_mutation_observer };