@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,4066 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-81fc5a97.js');
6
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
7
- const codeExampleVariation_enum = require('./code-example-variation.enum-1611825e.js');
8
- const formInputType_enum = require('./form-input-type.enum-1fb2180a.js');
9
- const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
10
- const detectClickOutside_util = require('./detectClickOutside.util-3e764eb3.js');
11
- const detectFocusOutside_util = require('./detectFocusOutside.util-03c62976.js');
12
- const logger_util = require('./logger.util-fdafc086.js');
13
- const text = require('./text-3157012b.js');
14
- const index$1 = require('./index-acb7b350.js');
15
- require('./badge-notification-shape.enum-ff802554.js');
16
- const typographyVariation_enum = require('./typography-variation.enum-c6bb12f2.js');
17
- require('./badge-status-variation.enum-0a5adc21.js');
18
- require('./calendar-week-view-heading-level.enum-fd0c841b.js');
19
- require('./bar-chart-variation.enum-a4e866b6.js');
20
- require('./code-variation.enum-c4a4e6fd.js');
21
- require('./expandable-accordion-header-level.enum-45483252.js');
22
- require('./expandable-faq-item-variation.enum-89427195.js');
23
- require('./expandable-faq-variation.enum-af923f49.js');
24
- require('./footer-card-variation.enum-99555edc.js');
25
- require('./form-checkbox-variation.enum-d2ca879e.js');
26
- const formValidationMessageVariation_enum = require('./form-validation-message-variation.enum-c5ec3e2d.js');
27
- require('./form-radiogroup-validation.enum-03a17d4d.js');
28
- require('./info-card-multi-type.enum-14746572.js');
29
- require('./info-card-variation.enum-64cef637.js');
30
- require('./layout-container-max-width.enum-7e637f44.js');
31
- require('./layout-block-variation.enum-f6102119.js');
32
- require('./layout-columns-variation.enum-65675649.js');
33
- require('./link-button-variation.enum-137785e3.js');
34
- require('./list-type.enum-aea4d012.js');
35
- require('./loader-skeleton-variation.enum-d52ba55e.js');
36
- require('./loader-spinner-size.enum-db2973f0.js');
37
- require('./logo-variation.enum-607fadb4.js');
38
- require('./media-figure-alignment.enum-3885aba5.js');
39
- require('./navigation-sidebar-variation.enum-1c0c3064.js');
40
- require('./navigation-vertical-menu-variation.enum-c237edd3.js');
41
- require('./progress-indicator-variation.enum-7cf8e0e4.js');
42
- require('./progress-list-item-variation.enum-90e4c874.js');
43
- require('./progress-list-variation.enum-06d5ce27.js');
44
- require('./progressbar-variation.enum-aff9fa80.js');
45
- require('./quote-image-inner-position.enum-e64e7a6d.js');
46
- require('./table-variation.enum-25df2ad7.js');
47
- require('./tag-media-icon.enum-372563c5.js');
48
- require('./tag-size.enum-387c516c.js');
49
- require('./tools-feedback-banner-type.enum-de373ba0.js');
50
- require('./tools-feedback-rating-variation.enum-2f71e84d.js');
51
- require('./tools-theme-provider.brand.enum-bc855272.js');
52
- require('./typography-heading-jumbo-variation.enum-8677e099.js');
53
- require('./typography-meta-variation.enum-13ac3538.js');
54
- require('./typography-time-variation.enum-bce1d87e.js');
55
- require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
56
- const keyboardHandler_util = require('./keyboardHandler.util-d8600adb.js');
57
- require('./detectClosest.util-85b3507b.js');
58
-
59
- 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)}";
60
- const DigiButtonStyle0 = buttonCss;
61
-
62
- const Button = class {
63
- constructor(hostRef) {
64
- index.registerInstance(this, hostRef);
65
- this.afOnClick = index.createEvent(this, "afOnClick", 7);
66
- this.afOnFocus = index.createEvent(this, "afOnFocus", 7);
67
- this.afOnBlur = index.createEvent(this, "afOnBlur", 7);
68
- this.afOnReady = index.createEvent(this, "afOnReady", 3);
69
- this.hasIcon = undefined;
70
- this.hasIconSecondary = undefined;
71
- this.isFullSize = undefined;
72
- this.afSize = codeExampleVariation_enum.ButtonSize.MEDIUM;
73
- this.afTabindex = undefined;
74
- this.afVariation = buttonVariation_enum.ButtonVariation.PRIMARY;
75
- this.afType = formInputType_enum.ButtonType.BUTTON;
76
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-button');
77
- this.afAriaLabel = undefined;
78
- this.afAriaLabelledby = undefined;
79
- this.afAriaControls = undefined;
80
- this.afForm = undefined;
81
- this.afAriaPressed = undefined;
82
- this.afAriaExpanded = undefined;
83
- this.afAriaHaspopup = undefined;
84
- this.afAriaCurrent = undefined;
85
- this.afRole = undefined;
86
- this.afAriaChecked = undefined;
87
- this.afLang = undefined;
88
- this.afDir = undefined;
89
- this.afFullWidth = false;
90
- this.afAutofocus = undefined;
91
- this.afInputRef = undefined;
92
- }
93
- fullWidthHandler() {
94
- this.isFullSize = this.afFullWidth;
95
- }
96
- /**
97
- * Hämta en referens till buttonelementet. Bra för att t.ex. sätta fokus programmatiskt.
98
- * @en Returns a reference to the button element. Handy for setting focus programmatically.
99
- */
100
- async afMGetButtonElement() {
101
- return this._button;
102
- }
103
- componentWillLoad() {
104
- this.setHasIcon();
105
- this.fullWidthHandler();
106
- }
107
- componentWillUpdate() {
108
- this.setHasIcon();
109
- }
110
- componentDidLoad() {
111
- this.afOnReady.emit();
112
- }
113
- setHasIcon() {
114
- const icon = !!this.hostElement.querySelector('[slot="icon"]');
115
- const iconSecondary = !!this.hostElement.querySelector('[slot="icon-secondary"]');
116
- if (icon) {
117
- this.hasIcon = icon;
118
- }
119
- if (iconSecondary) {
120
- this.hasIconSecondary = iconSecondary;
121
- }
122
- }
123
- get cssModifiers() {
124
- return {
125
- [`digi-button--variation-${this.afVariation}`]: !!this.afVariation,
126
- [`digi-button--size-${this.afSize}`]: !!this.afSize,
127
- 'digi-button--icon': this.hasIcon,
128
- 'digi-button--icon-secondary': this.hasIconSecondary,
129
- 'digi-button--full-width': this.isFullSize
130
- };
131
- }
132
- get pressedState() {
133
- if (this.afAriaPressed === null || this.afAriaPressed === undefined) {
134
- return;
135
- }
136
- return this.afAriaPressed ? 'true' : 'false';
137
- }
138
- get expandedState() {
139
- if (this.afAriaExpanded === null || this.afAriaExpanded === undefined) {
140
- return;
141
- }
142
- return this.afAriaExpanded ? 'true' : 'false';
143
- }
144
- get hasPopup() {
145
- if (this.afAriaHaspopup === null || this.afAriaHaspopup === undefined) {
146
- return;
147
- }
148
- return this.afAriaHaspopup ? 'true' : 'false';
149
- }
150
- clickHandler(e) {
151
- this.afOnClick.emit(e);
152
- }
153
- focusHandler(e) {
154
- this.afOnFocus.emit(e);
155
- }
156
- blurHandler(e) {
157
- this.afOnBlur.emit(e);
158
- }
159
- render() {
160
- return (index.h(index.Host, { key: '3a398d75ad83e3caa9ec54928544d5bf8315d30f' }, index.h("button", { key: '2159552d7e8064acbb6da5c02c28ead3d4985e85', class: Object.assign({ 'digi-button': true }, this.cssModifiers), type: this.afType, role: this.afRole, ref: (el) => {
161
- var _a, _b, _c;
162
- this._button = el;
163
- (_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
164
- // Stencil has a bug wiith form attribute so we need to set it like this
165
- // https://github.com/ionic-team/stencil/issues/2703
166
- this.afForm
167
- ? (_b = this._button) === null || _b === void 0 ? void 0 : _b.setAttribute('form', this.afForm)
168
- : (_c = this._button) === null || _c === void 0 ? void 0 : _c.removeAttribute('form');
169
- }, 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 && (index.h("span", { key: '1188d5cb005a51e4e065b70663d06877db3a1477', class: "digi-button__icon" }, index.h("slot", { key: 'f90319563c18e1f82fa13f478b4d4d13ce3e9bf7', name: "icon" }))), index.h("span", { key: '17dce8eed2e845ca6166cf85a1c0252c2c0b8037', class: "digi-button__text" }, index.h("slot", { key: '2f637e48b837ecd0f0f2333349f328c497aee650' })), this.hasIconSecondary && (index.h("span", { key: '49ffd3361b0cc00c074e1ce332dab2de33127fcc', class: "digi-button__icon digi-button__icon--secondary" }, index.h("slot", { key: '367d3ba37e2fd0b7e83d600f35d02d4df303c1c0', name: "icon-secondary" }))))));
170
- }
171
- get hostElement() { return index.getElement(this); }
172
- static get watchers() { return {
173
- "afFullWidth": ["fullWidthHandler"]
174
- }; }
175
- };
176
- Button.style = DigiButtonStyle0;
177
-
178
- function assign(target, dirtyObject) {
179
- if (target == null) {
180
- throw new TypeError('assign requires that input parameter not be null or undefined');
181
- }
182
-
183
- dirtyObject = dirtyObject || {};
184
-
185
- for (var property in dirtyObject) {
186
- if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
187
- target[property] = dirtyObject[property];
188
- }
189
- }
190
-
191
- return target;
192
- }
193
-
194
- /**
195
- * @name isAfter
196
- * @category Common Helpers
197
- * @summary Is the first date after the second one?
198
- *
199
- * @description
200
- * Is the first date after the second one?
201
- *
202
- * ### v2.0.0 breaking changes:
203
- *
204
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
205
- *
206
- * @param {Date|Number} date - the date that should be after the other one to return true
207
- * @param {Date|Number} dateToCompare - the date to compare with
208
- * @returns {Boolean} the first date is after the second date
209
- * @throws {TypeError} 2 arguments required
210
- *
211
- * @example
212
- * // Is 10 July 1989 after 11 February 1987?
213
- * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
214
- * //=> true
215
- */
216
-
217
- function isAfter(dirtyDate, dirtyDateToCompare) {
218
- index$1.requiredArgs(2, arguments);
219
- var date = index$1.toDate(dirtyDate);
220
- var dateToCompare = index$1.toDate(dirtyDateToCompare);
221
- return date.getTime() > dateToCompare.getTime();
222
- }
223
-
224
- /**
225
- * @name isBefore
226
- * @category Common Helpers
227
- * @summary Is the first date before the second one?
228
- *
229
- * @description
230
- * Is the first date before the second one?
231
- *
232
- * ### v2.0.0 breaking changes:
233
- *
234
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
235
- *
236
- * @param {Date|Number} date - the date that should be before the other one to return true
237
- * @param {Date|Number} dateToCompare - the date to compare with
238
- * @returns {Boolean} the first date is before the second date
239
- * @throws {TypeError} 2 arguments required
240
- *
241
- * @example
242
- * // Is 10 July 1989 before 11 February 1987?
243
- * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
244
- * //=> false
245
- */
246
-
247
- function isBefore(dirtyDate, dirtyDateToCompare) {
248
- index$1.requiredArgs(2, arguments);
249
- var date = index$1.toDate(dirtyDate);
250
- var dateToCompare = index$1.toDate(dirtyDateToCompare);
251
- return date.getTime() < dateToCompare.getTime();
252
- }
253
-
254
- // See issue: https://github.com/date-fns/date-fns/issues/376
255
-
256
- function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
257
- index$1.requiredArgs(2, arguments);
258
- var options = dirtyOptions || {};
259
- var locale = options.locale;
260
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
261
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index$1.toInteger(localeWeekStartsOn);
262
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index$1.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
263
-
264
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
265
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
266
- }
267
-
268
- var date = index$1.toDate(dirtyDate);
269
- var day = index$1.toInteger(dirtyDay);
270
- var currentDay = date.getUTCDay();
271
- var remainder = day % 7;
272
- var dayIndex = (remainder + 7) % 7;
273
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
274
- date.setUTCDate(date.getUTCDate() + diff);
275
- return date;
276
- }
277
-
278
- // See issue: https://github.com/date-fns/date-fns/issues/376
279
-
280
- function setUTCISODay(dirtyDate, dirtyDay) {
281
- index$1.requiredArgs(2, arguments);
282
- var day = index$1.toInteger(dirtyDay);
283
-
284
- if (day % 7 === 0) {
285
- day = day - 7;
286
- }
287
-
288
- var weekStartsOn = 1;
289
- var date = index$1.toDate(dirtyDate);
290
- var currentDay = date.getUTCDay();
291
- var remainder = day % 7;
292
- var dayIndex = (remainder + 7) % 7;
293
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
294
- date.setUTCDate(date.getUTCDate() + diff);
295
- return date;
296
- }
297
-
298
- // See issue: https://github.com/date-fns/date-fns/issues/376
299
-
300
- function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
301
- index$1.requiredArgs(2, arguments);
302
- var date = index$1.toDate(dirtyDate);
303
- var isoWeek = index$1.toInteger(dirtyISOWeek);
304
- var diff = index$1.getUTCISOWeek(date) - isoWeek;
305
- date.setUTCDate(date.getUTCDate() - diff * 7);
306
- return date;
307
- }
308
-
309
- // See issue: https://github.com/date-fns/date-fns/issues/376
310
-
311
- function setUTCWeek(dirtyDate, dirtyWeek, options) {
312
- index$1.requiredArgs(2, arguments);
313
- var date = index$1.toDate(dirtyDate);
314
- var week = index$1.toInteger(dirtyWeek);
315
- var diff = index$1.getUTCWeek(date, options) - week;
316
- date.setUTCDate(date.getUTCDate() - diff * 7);
317
- return date;
318
- }
319
-
320
- var MILLISECONDS_IN_HOUR = 3600000;
321
- var MILLISECONDS_IN_MINUTE = 60000;
322
- var MILLISECONDS_IN_SECOND = 1000;
323
- var numericPatterns = {
324
- month: /^(1[0-2]|0?\d)/,
325
- // 0 to 12
326
- date: /^(3[0-1]|[0-2]?\d)/,
327
- // 0 to 31
328
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
329
- // 0 to 366
330
- week: /^(5[0-3]|[0-4]?\d)/,
331
- // 0 to 53
332
- hour23h: /^(2[0-3]|[0-1]?\d)/,
333
- // 0 to 23
334
- hour24h: /^(2[0-4]|[0-1]?\d)/,
335
- // 0 to 24
336
- hour11h: /^(1[0-1]|0?\d)/,
337
- // 0 to 11
338
- hour12h: /^(1[0-2]|0?\d)/,
339
- // 0 to 12
340
- minute: /^[0-5]?\d/,
341
- // 0 to 59
342
- second: /^[0-5]?\d/,
343
- // 0 to 59
344
- singleDigit: /^\d/,
345
- // 0 to 9
346
- twoDigits: /^\d{1,2}/,
347
- // 0 to 99
348
- threeDigits: /^\d{1,3}/,
349
- // 0 to 999
350
- fourDigits: /^\d{1,4}/,
351
- // 0 to 9999
352
- anyDigitsSigned: /^-?\d+/,
353
- singleDigitSigned: /^-?\d/,
354
- // 0 to 9, -0 to -9
355
- twoDigitsSigned: /^-?\d{1,2}/,
356
- // 0 to 99, -0 to -99
357
- threeDigitsSigned: /^-?\d{1,3}/,
358
- // 0 to 999, -0 to -999
359
- fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
360
-
361
- };
362
- var timezonePatterns = {
363
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
364
- basic: /^([+-])(\d{2})(\d{2})|Z/,
365
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
366
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
367
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
368
- };
369
-
370
- function parseNumericPattern(pattern, string, valueCallback) {
371
- var matchResult = string.match(pattern);
372
-
373
- if (!matchResult) {
374
- return null;
375
- }
376
-
377
- var value = parseInt(matchResult[0], 10);
378
- return {
379
- value: valueCallback ? valueCallback(value) : value,
380
- rest: string.slice(matchResult[0].length)
381
- };
382
- }
383
-
384
- function parseTimezonePattern(pattern, string) {
385
- var matchResult = string.match(pattern);
386
-
387
- if (!matchResult) {
388
- return null;
389
- } // Input is 'Z'
390
-
391
-
392
- if (matchResult[0] === 'Z') {
393
- return {
394
- value: 0,
395
- rest: string.slice(1)
396
- };
397
- }
398
-
399
- var sign = matchResult[1] === '+' ? 1 : -1;
400
- var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
401
- var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
402
- var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
403
- return {
404
- value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
405
- rest: string.slice(matchResult[0].length)
406
- };
407
- }
408
-
409
- function parseAnyDigitsSigned(string, valueCallback) {
410
- return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
411
- }
412
-
413
- function parseNDigits(n, string, valueCallback) {
414
- switch (n) {
415
- case 1:
416
- return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
417
-
418
- case 2:
419
- return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
420
-
421
- case 3:
422
- return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
423
-
424
- case 4:
425
- return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
426
-
427
- default:
428
- return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
429
- }
430
- }
431
-
432
- function parseNDigitsSigned(n, string, valueCallback) {
433
- switch (n) {
434
- case 1:
435
- return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
436
-
437
- case 2:
438
- return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
439
-
440
- case 3:
441
- return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
442
-
443
- case 4:
444
- return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
445
-
446
- default:
447
- return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
448
- }
449
- }
450
-
451
- function dayPeriodEnumToHours(enumValue) {
452
- switch (enumValue) {
453
- case 'morning':
454
- return 4;
455
-
456
- case 'evening':
457
- return 17;
458
-
459
- case 'pm':
460
- case 'noon':
461
- case 'afternoon':
462
- return 12;
463
-
464
- case 'am':
465
- case 'midnight':
466
- case 'night':
467
- default:
468
- return 0;
469
- }
470
- }
471
-
472
- function normalizeTwoDigitYear(twoDigitYear, currentYear) {
473
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
474
- // 1 -> 1 AC
475
- // 0 -> 1 BC
476
- // -1 -> 2 BC
477
-
478
- var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
479
- var result;
480
-
481
- if (absCurrentYear <= 50) {
482
- result = twoDigitYear || 100;
483
- } else {
484
- var rangeEnd = absCurrentYear + 50;
485
- var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
486
- var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
487
- result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
488
- }
489
-
490
- return isCommonEra ? result : 1 - result;
491
- }
492
-
493
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
494
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
495
-
496
- function isLeapYearIndex(year) {
497
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
498
- }
499
- /*
500
- * | | Unit | | Unit |
501
- * |-----|--------------------------------|-----|--------------------------------|
502
- * | a | AM, PM | A* | Milliseconds in day |
503
- * | b | AM, PM, noon, midnight | B | Flexible day period |
504
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
505
- * | d | Day of month | D | Day of year |
506
- * | e | Local day of week | E | Day of week |
507
- * | f | | F* | Day of week in month |
508
- * | g* | Modified Julian day | G | Era |
509
- * | h | Hour [1-12] | H | Hour [0-23] |
510
- * | i! | ISO day of week | I! | ISO week of year |
511
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
512
- * | k | Hour [1-24] | K | Hour [0-11] |
513
- * | l* | (deprecated) | L | Stand-alone month |
514
- * | m | Minute | M | Month |
515
- * | n | | N | |
516
- * | o! | Ordinal number modifier | O* | Timezone (GMT) |
517
- * | p | | P | |
518
- * | q | Stand-alone quarter | Q | Quarter |
519
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
520
- * | s | Second | S | Fraction of second |
521
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
522
- * | u | Extended year | U* | Cyclic year |
523
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
524
- * | w | Local week of year | W* | Week of month |
525
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
526
- * | y | Year (abs) | Y | Local week-numbering year |
527
- * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
528
- *
529
- * Letters marked by * are not implemented but reserved by Unicode standard.
530
- *
531
- * Letters marked by ! are non-standard, but implemented by date-fns:
532
- * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
533
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
534
- * i.e. 7 for Sunday, 1 for Monday, etc.
535
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
536
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
537
- * `R` is supposed to be used in conjunction with `I` and `i`
538
- * for universal ISO week-numbering date, whereas
539
- * `Y` is supposed to be used in conjunction with `w` and `e`
540
- * for week-numbering date specific to the locale.
541
- */
542
-
543
-
544
- var parsers = {
545
- // Era
546
- G: {
547
- priority: 140,
548
- parse: function (string, token, match, _options) {
549
- switch (token) {
550
- // AD, BC
551
- case 'G':
552
- case 'GG':
553
- case 'GGG':
554
- return match.era(string, {
555
- width: 'abbreviated'
556
- }) || match.era(string, {
557
- width: 'narrow'
558
- });
559
- // A, B
560
-
561
- case 'GGGGG':
562
- return match.era(string, {
563
- width: 'narrow'
564
- });
565
- // Anno Domini, Before Christ
566
-
567
- case 'GGGG':
568
- default:
569
- return match.era(string, {
570
- width: 'wide'
571
- }) || match.era(string, {
572
- width: 'abbreviated'
573
- }) || match.era(string, {
574
- width: 'narrow'
575
- });
576
- }
577
- },
578
- set: function (date, flags, value, _options) {
579
- flags.era = value;
580
- date.setUTCFullYear(value, 0, 1);
581
- date.setUTCHours(0, 0, 0, 0);
582
- return date;
583
- },
584
- incompatibleTokens: ['R', 'u', 't', 'T']
585
- },
586
- // Year
587
- y: {
588
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
589
- // | Year | y | yy | yyy | yyyy | yyyyy |
590
- // |----------|-------|----|-------|-------|-------|
591
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
592
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
593
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
594
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
595
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
596
- priority: 130,
597
- parse: function (string, token, match, _options) {
598
- var valueCallback = function (year) {
599
- return {
600
- year: year,
601
- isTwoDigitYear: token === 'yy'
602
- };
603
- };
604
-
605
- switch (token) {
606
- case 'y':
607
- return parseNDigits(4, string, valueCallback);
608
-
609
- case 'yo':
610
- return match.ordinalNumber(string, {
611
- unit: 'year',
612
- valueCallback: valueCallback
613
- });
614
-
615
- default:
616
- return parseNDigits(token.length, string, valueCallback);
617
- }
618
- },
619
- validate: function (_date, value, _options) {
620
- return value.isTwoDigitYear || value.year > 0;
621
- },
622
- set: function (date, flags, value, _options) {
623
- var currentYear = date.getUTCFullYear();
624
-
625
- if (value.isTwoDigitYear) {
626
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
627
- date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
628
- date.setUTCHours(0, 0, 0, 0);
629
- return date;
630
- }
631
-
632
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
633
- date.setUTCFullYear(year, 0, 1);
634
- date.setUTCHours(0, 0, 0, 0);
635
- return date;
636
- },
637
- incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
638
- },
639
- // Local week-numbering year
640
- Y: {
641
- priority: 130,
642
- parse: function (string, token, match, _options) {
643
- var valueCallback = function (year) {
644
- return {
645
- year: year,
646
- isTwoDigitYear: token === 'YY'
647
- };
648
- };
649
-
650
- switch (token) {
651
- case 'Y':
652
- return parseNDigits(4, string, valueCallback);
653
-
654
- case 'Yo':
655
- return match.ordinalNumber(string, {
656
- unit: 'year',
657
- valueCallback: valueCallback
658
- });
659
-
660
- default:
661
- return parseNDigits(token.length, string, valueCallback);
662
- }
663
- },
664
- validate: function (_date, value, _options) {
665
- return value.isTwoDigitYear || value.year > 0;
666
- },
667
- set: function (date, flags, value, options) {
668
- var currentYear = index$1.getUTCWeekYear(date, options);
669
-
670
- if (value.isTwoDigitYear) {
671
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
672
- date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
673
- date.setUTCHours(0, 0, 0, 0);
674
- return index$1.startOfUTCWeek(date, options);
675
- }
676
-
677
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
678
- date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
679
- date.setUTCHours(0, 0, 0, 0);
680
- return index$1.startOfUTCWeek(date, options);
681
- },
682
- incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
683
- },
684
- // ISO week-numbering year
685
- R: {
686
- priority: 130,
687
- parse: function (string, token, _match, _options) {
688
- if (token === 'R') {
689
- return parseNDigitsSigned(4, string);
690
- }
691
-
692
- return parseNDigitsSigned(token.length, string);
693
- },
694
- set: function (_date, _flags, value, _options) {
695
- var firstWeekOfYear = new Date(0);
696
- firstWeekOfYear.setUTCFullYear(value, 0, 4);
697
- firstWeekOfYear.setUTCHours(0, 0, 0, 0);
698
- return index$1.startOfUTCISOWeek(firstWeekOfYear);
699
- },
700
- incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
701
- },
702
- // Extended year
703
- u: {
704
- priority: 130,
705
- parse: function (string, token, _match, _options) {
706
- if (token === 'u') {
707
- return parseNDigitsSigned(4, string);
708
- }
709
-
710
- return parseNDigitsSigned(token.length, string);
711
- },
712
- set: function (date, _flags, value, _options) {
713
- date.setUTCFullYear(value, 0, 1);
714
- date.setUTCHours(0, 0, 0, 0);
715
- return date;
716
- },
717
- incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
718
- },
719
- // Quarter
720
- Q: {
721
- priority: 120,
722
- parse: function (string, token, match, _options) {
723
- switch (token) {
724
- // 1, 2, 3, 4
725
- case 'Q':
726
- case 'QQ':
727
- // 01, 02, 03, 04
728
- return parseNDigits(token.length, string);
729
- // 1st, 2nd, 3rd, 4th
730
-
731
- case 'Qo':
732
- return match.ordinalNumber(string, {
733
- unit: 'quarter'
734
- });
735
- // Q1, Q2, Q3, Q4
736
-
737
- case 'QQQ':
738
- return match.quarter(string, {
739
- width: 'abbreviated',
740
- context: 'formatting'
741
- }) || match.quarter(string, {
742
- width: 'narrow',
743
- context: 'formatting'
744
- });
745
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
746
-
747
- case 'QQQQQ':
748
- return match.quarter(string, {
749
- width: 'narrow',
750
- context: 'formatting'
751
- });
752
- // 1st quarter, 2nd quarter, ...
753
-
754
- case 'QQQQ':
755
- default:
756
- return match.quarter(string, {
757
- width: 'wide',
758
- context: 'formatting'
759
- }) || match.quarter(string, {
760
- width: 'abbreviated',
761
- context: 'formatting'
762
- }) || match.quarter(string, {
763
- width: 'narrow',
764
- context: 'formatting'
765
- });
766
- }
767
- },
768
- validate: function (_date, value, _options) {
769
- return value >= 1 && value <= 4;
770
- },
771
- set: function (date, _flags, value, _options) {
772
- date.setUTCMonth((value - 1) * 3, 1);
773
- date.setUTCHours(0, 0, 0, 0);
774
- return date;
775
- },
776
- incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
777
- },
778
- // Stand-alone quarter
779
- q: {
780
- priority: 120,
781
- parse: function (string, token, match, _options) {
782
- switch (token) {
783
- // 1, 2, 3, 4
784
- case 'q':
785
- case 'qq':
786
- // 01, 02, 03, 04
787
- return parseNDigits(token.length, string);
788
- // 1st, 2nd, 3rd, 4th
789
-
790
- case 'qo':
791
- return match.ordinalNumber(string, {
792
- unit: 'quarter'
793
- });
794
- // Q1, Q2, Q3, Q4
795
-
796
- case 'qqq':
797
- return match.quarter(string, {
798
- width: 'abbreviated',
799
- context: 'standalone'
800
- }) || match.quarter(string, {
801
- width: 'narrow',
802
- context: 'standalone'
803
- });
804
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
805
-
806
- case 'qqqqq':
807
- return match.quarter(string, {
808
- width: 'narrow',
809
- context: 'standalone'
810
- });
811
- // 1st quarter, 2nd quarter, ...
812
-
813
- case 'qqqq':
814
- default:
815
- return match.quarter(string, {
816
- width: 'wide',
817
- context: 'standalone'
818
- }) || match.quarter(string, {
819
- width: 'abbreviated',
820
- context: 'standalone'
821
- }) || match.quarter(string, {
822
- width: 'narrow',
823
- context: 'standalone'
824
- });
825
- }
826
- },
827
- validate: function (_date, value, _options) {
828
- return value >= 1 && value <= 4;
829
- },
830
- set: function (date, _flags, value, _options) {
831
- date.setUTCMonth((value - 1) * 3, 1);
832
- date.setUTCHours(0, 0, 0, 0);
833
- return date;
834
- },
835
- incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
836
- },
837
- // Month
838
- M: {
839
- priority: 110,
840
- parse: function (string, token, match, _options) {
841
- var valueCallback = function (value) {
842
- return value - 1;
843
- };
844
-
845
- switch (token) {
846
- // 1, 2, ..., 12
847
- case 'M':
848
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
849
- // 01, 02, ..., 12
850
-
851
- case 'MM':
852
- return parseNDigits(2, string, valueCallback);
853
- // 1st, 2nd, ..., 12th
854
-
855
- case 'Mo':
856
- return match.ordinalNumber(string, {
857
- unit: 'month',
858
- valueCallback: valueCallback
859
- });
860
- // Jan, Feb, ..., Dec
861
-
862
- case 'MMM':
863
- return match.month(string, {
864
- width: 'abbreviated',
865
- context: 'formatting'
866
- }) || match.month(string, {
867
- width: 'narrow',
868
- context: 'formatting'
869
- });
870
- // J, F, ..., D
871
-
872
- case 'MMMMM':
873
- return match.month(string, {
874
- width: 'narrow',
875
- context: 'formatting'
876
- });
877
- // January, February, ..., December
878
-
879
- case 'MMMM':
880
- default:
881
- return match.month(string, {
882
- width: 'wide',
883
- context: 'formatting'
884
- }) || match.month(string, {
885
- width: 'abbreviated',
886
- context: 'formatting'
887
- }) || match.month(string, {
888
- width: 'narrow',
889
- context: 'formatting'
890
- });
891
- }
892
- },
893
- validate: function (_date, value, _options) {
894
- return value >= 0 && value <= 11;
895
- },
896
- set: function (date, _flags, value, _options) {
897
- date.setUTCMonth(value, 1);
898
- date.setUTCHours(0, 0, 0, 0);
899
- return date;
900
- },
901
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
902
- },
903
- // Stand-alone month
904
- L: {
905
- priority: 110,
906
- parse: function (string, token, match, _options) {
907
- var valueCallback = function (value) {
908
- return value - 1;
909
- };
910
-
911
- switch (token) {
912
- // 1, 2, ..., 12
913
- case 'L':
914
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
915
- // 01, 02, ..., 12
916
-
917
- case 'LL':
918
- return parseNDigits(2, string, valueCallback);
919
- // 1st, 2nd, ..., 12th
920
-
921
- case 'Lo':
922
- return match.ordinalNumber(string, {
923
- unit: 'month',
924
- valueCallback: valueCallback
925
- });
926
- // Jan, Feb, ..., Dec
927
-
928
- case 'LLL':
929
- return match.month(string, {
930
- width: 'abbreviated',
931
- context: 'standalone'
932
- }) || match.month(string, {
933
- width: 'narrow',
934
- context: 'standalone'
935
- });
936
- // J, F, ..., D
937
-
938
- case 'LLLLL':
939
- return match.month(string, {
940
- width: 'narrow',
941
- context: 'standalone'
942
- });
943
- // January, February, ..., December
944
-
945
- case 'LLLL':
946
- default:
947
- return match.month(string, {
948
- width: 'wide',
949
- context: 'standalone'
950
- }) || match.month(string, {
951
- width: 'abbreviated',
952
- context: 'standalone'
953
- }) || match.month(string, {
954
- width: 'narrow',
955
- context: 'standalone'
956
- });
957
- }
958
- },
959
- validate: function (_date, value, _options) {
960
- return value >= 0 && value <= 11;
961
- },
962
- set: function (date, _flags, value, _options) {
963
- date.setUTCMonth(value, 1);
964
- date.setUTCHours(0, 0, 0, 0);
965
- return date;
966
- },
967
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
968
- },
969
- // Local week of year
970
- w: {
971
- priority: 100,
972
- parse: function (string, token, match, _options) {
973
- switch (token) {
974
- case 'w':
975
- return parseNumericPattern(numericPatterns.week, string);
976
-
977
- case 'wo':
978
- return match.ordinalNumber(string, {
979
- unit: 'week'
980
- });
981
-
982
- default:
983
- return parseNDigits(token.length, string);
984
- }
985
- },
986
- validate: function (_date, value, _options) {
987
- return value >= 1 && value <= 53;
988
- },
989
- set: function (date, _flags, value, options) {
990
- return index$1.startOfUTCWeek(setUTCWeek(date, value, options), options);
991
- },
992
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
993
- },
994
- // ISO week of year
995
- I: {
996
- priority: 100,
997
- parse: function (string, token, match, _options) {
998
- switch (token) {
999
- case 'I':
1000
- return parseNumericPattern(numericPatterns.week, string);
1001
-
1002
- case 'Io':
1003
- return match.ordinalNumber(string, {
1004
- unit: 'week'
1005
- });
1006
-
1007
- default:
1008
- return parseNDigits(token.length, string);
1009
- }
1010
- },
1011
- validate: function (_date, value, _options) {
1012
- return value >= 1 && value <= 53;
1013
- },
1014
- set: function (date, _flags, value, options) {
1015
- return index$1.startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
1016
- },
1017
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
1018
- },
1019
- // Day of the month
1020
- d: {
1021
- priority: 90,
1022
- subPriority: 1,
1023
- parse: function (string, token, match, _options) {
1024
- switch (token) {
1025
- case 'd':
1026
- return parseNumericPattern(numericPatterns.date, string);
1027
-
1028
- case 'do':
1029
- return match.ordinalNumber(string, {
1030
- unit: 'date'
1031
- });
1032
-
1033
- default:
1034
- return parseNDigits(token.length, string);
1035
- }
1036
- },
1037
- validate: function (date, value, _options) {
1038
- var year = date.getUTCFullYear();
1039
- var isLeapYear = isLeapYearIndex(year);
1040
- var month = date.getUTCMonth();
1041
-
1042
- if (isLeapYear) {
1043
- return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
1044
- } else {
1045
- return value >= 1 && value <= DAYS_IN_MONTH[month];
1046
- }
1047
- },
1048
- set: function (date, _flags, value, _options) {
1049
- date.setUTCDate(value);
1050
- date.setUTCHours(0, 0, 0, 0);
1051
- return date;
1052
- },
1053
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
1054
- },
1055
- // Day of year
1056
- D: {
1057
- priority: 90,
1058
- subPriority: 1,
1059
- parse: function (string, token, match, _options) {
1060
- switch (token) {
1061
- case 'D':
1062
- case 'DD':
1063
- return parseNumericPattern(numericPatterns.dayOfYear, string);
1064
-
1065
- case 'Do':
1066
- return match.ordinalNumber(string, {
1067
- unit: 'date'
1068
- });
1069
-
1070
- default:
1071
- return parseNDigits(token.length, string);
1072
- }
1073
- },
1074
- validate: function (date, value, _options) {
1075
- var year = date.getUTCFullYear();
1076
- var isLeapYear = isLeapYearIndex(year);
1077
-
1078
- if (isLeapYear) {
1079
- return value >= 1 && value <= 366;
1080
- } else {
1081
- return value >= 1 && value <= 365;
1082
- }
1083
- },
1084
- set: function (date, _flags, value, _options) {
1085
- date.setUTCMonth(0, value);
1086
- date.setUTCHours(0, 0, 0, 0);
1087
- return date;
1088
- },
1089
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
1090
- },
1091
- // Day of week
1092
- E: {
1093
- priority: 90,
1094
- parse: function (string, token, match, _options) {
1095
- switch (token) {
1096
- // Tue
1097
- case 'E':
1098
- case 'EE':
1099
- case 'EEE':
1100
- return match.day(string, {
1101
- width: 'abbreviated',
1102
- context: 'formatting'
1103
- }) || match.day(string, {
1104
- width: 'short',
1105
- context: 'formatting'
1106
- }) || match.day(string, {
1107
- width: 'narrow',
1108
- context: 'formatting'
1109
- });
1110
- // T
1111
-
1112
- case 'EEEEE':
1113
- return match.day(string, {
1114
- width: 'narrow',
1115
- context: 'formatting'
1116
- });
1117
- // Tu
1118
-
1119
- case 'EEEEEE':
1120
- return match.day(string, {
1121
- width: 'short',
1122
- context: 'formatting'
1123
- }) || match.day(string, {
1124
- width: 'narrow',
1125
- context: 'formatting'
1126
- });
1127
- // Tuesday
1128
-
1129
- case 'EEEE':
1130
- default:
1131
- return match.day(string, {
1132
- width: 'wide',
1133
- context: 'formatting'
1134
- }) || match.day(string, {
1135
- width: 'abbreviated',
1136
- context: 'formatting'
1137
- }) || match.day(string, {
1138
- width: 'short',
1139
- context: 'formatting'
1140
- }) || match.day(string, {
1141
- width: 'narrow',
1142
- context: 'formatting'
1143
- });
1144
- }
1145
- },
1146
- validate: function (_date, value, _options) {
1147
- return value >= 0 && value <= 6;
1148
- },
1149
- set: function (date, _flags, value, options) {
1150
- date = setUTCDay(date, value, options);
1151
- date.setUTCHours(0, 0, 0, 0);
1152
- return date;
1153
- },
1154
- incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
1155
- },
1156
- // Local day of week
1157
- e: {
1158
- priority: 90,
1159
- parse: function (string, token, match, options) {
1160
- var valueCallback = function (value) {
1161
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1162
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1163
- };
1164
-
1165
- switch (token) {
1166
- // 3
1167
- case 'e':
1168
- case 'ee':
1169
- // 03
1170
- return parseNDigits(token.length, string, valueCallback);
1171
- // 3rd
1172
-
1173
- case 'eo':
1174
- return match.ordinalNumber(string, {
1175
- unit: 'day',
1176
- valueCallback: valueCallback
1177
- });
1178
- // Tue
1179
-
1180
- case 'eee':
1181
- return match.day(string, {
1182
- width: 'abbreviated',
1183
- context: 'formatting'
1184
- }) || match.day(string, {
1185
- width: 'short',
1186
- context: 'formatting'
1187
- }) || match.day(string, {
1188
- width: 'narrow',
1189
- context: 'formatting'
1190
- });
1191
- // T
1192
-
1193
- case 'eeeee':
1194
- return match.day(string, {
1195
- width: 'narrow',
1196
- context: 'formatting'
1197
- });
1198
- // Tu
1199
-
1200
- case 'eeeeee':
1201
- return match.day(string, {
1202
- width: 'short',
1203
- context: 'formatting'
1204
- }) || match.day(string, {
1205
- width: 'narrow',
1206
- context: 'formatting'
1207
- });
1208
- // Tuesday
1209
-
1210
- case 'eeee':
1211
- default:
1212
- return match.day(string, {
1213
- width: 'wide',
1214
- context: 'formatting'
1215
- }) || match.day(string, {
1216
- width: 'abbreviated',
1217
- context: 'formatting'
1218
- }) || match.day(string, {
1219
- width: 'short',
1220
- context: 'formatting'
1221
- }) || match.day(string, {
1222
- width: 'narrow',
1223
- context: 'formatting'
1224
- });
1225
- }
1226
- },
1227
- validate: function (_date, value, _options) {
1228
- return value >= 0 && value <= 6;
1229
- },
1230
- set: function (date, _flags, value, options) {
1231
- date = setUTCDay(date, value, options);
1232
- date.setUTCHours(0, 0, 0, 0);
1233
- return date;
1234
- },
1235
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1236
- },
1237
- // Stand-alone local day of week
1238
- c: {
1239
- priority: 90,
1240
- parse: function (string, token, match, options) {
1241
- var valueCallback = function (value) {
1242
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1243
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1244
- };
1245
-
1246
- switch (token) {
1247
- // 3
1248
- case 'c':
1249
- case 'cc':
1250
- // 03
1251
- return parseNDigits(token.length, string, valueCallback);
1252
- // 3rd
1253
-
1254
- case 'co':
1255
- return match.ordinalNumber(string, {
1256
- unit: 'day',
1257
- valueCallback: valueCallback
1258
- });
1259
- // Tue
1260
-
1261
- case 'ccc':
1262
- return match.day(string, {
1263
- width: 'abbreviated',
1264
- context: 'standalone'
1265
- }) || match.day(string, {
1266
- width: 'short',
1267
- context: 'standalone'
1268
- }) || match.day(string, {
1269
- width: 'narrow',
1270
- context: 'standalone'
1271
- });
1272
- // T
1273
-
1274
- case 'ccccc':
1275
- return match.day(string, {
1276
- width: 'narrow',
1277
- context: 'standalone'
1278
- });
1279
- // Tu
1280
-
1281
- case 'cccccc':
1282
- return match.day(string, {
1283
- width: 'short',
1284
- context: 'standalone'
1285
- }) || match.day(string, {
1286
- width: 'narrow',
1287
- context: 'standalone'
1288
- });
1289
- // Tuesday
1290
-
1291
- case 'cccc':
1292
- default:
1293
- return match.day(string, {
1294
- width: 'wide',
1295
- context: 'standalone'
1296
- }) || match.day(string, {
1297
- width: 'abbreviated',
1298
- context: 'standalone'
1299
- }) || match.day(string, {
1300
- width: 'short',
1301
- context: 'standalone'
1302
- }) || match.day(string, {
1303
- width: 'narrow',
1304
- context: 'standalone'
1305
- });
1306
- }
1307
- },
1308
- validate: function (_date, value, _options) {
1309
- return value >= 0 && value <= 6;
1310
- },
1311
- set: function (date, _flags, value, options) {
1312
- date = setUTCDay(date, value, options);
1313
- date.setUTCHours(0, 0, 0, 0);
1314
- return date;
1315
- },
1316
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1317
- },
1318
- // ISO day of week
1319
- i: {
1320
- priority: 90,
1321
- parse: function (string, token, match, _options) {
1322
- var valueCallback = function (value) {
1323
- if (value === 0) {
1324
- return 7;
1325
- }
1326
-
1327
- return value;
1328
- };
1329
-
1330
- switch (token) {
1331
- // 2
1332
- case 'i':
1333
- case 'ii':
1334
- // 02
1335
- return parseNDigits(token.length, string);
1336
- // 2nd
1337
-
1338
- case 'io':
1339
- return match.ordinalNumber(string, {
1340
- unit: 'day'
1341
- });
1342
- // Tue
1343
-
1344
- case 'iii':
1345
- return match.day(string, {
1346
- width: 'abbreviated',
1347
- context: 'formatting',
1348
- valueCallback: valueCallback
1349
- }) || match.day(string, {
1350
- width: 'short',
1351
- context: 'formatting',
1352
- valueCallback: valueCallback
1353
- }) || match.day(string, {
1354
- width: 'narrow',
1355
- context: 'formatting',
1356
- valueCallback: valueCallback
1357
- });
1358
- // T
1359
-
1360
- case 'iiiii':
1361
- return match.day(string, {
1362
- width: 'narrow',
1363
- context: 'formatting',
1364
- valueCallback: valueCallback
1365
- });
1366
- // Tu
1367
-
1368
- case 'iiiiii':
1369
- return match.day(string, {
1370
- width: 'short',
1371
- context: 'formatting',
1372
- valueCallback: valueCallback
1373
- }) || match.day(string, {
1374
- width: 'narrow',
1375
- context: 'formatting',
1376
- valueCallback: valueCallback
1377
- });
1378
- // Tuesday
1379
-
1380
- case 'iiii':
1381
- default:
1382
- return match.day(string, {
1383
- width: 'wide',
1384
- context: 'formatting',
1385
- valueCallback: valueCallback
1386
- }) || match.day(string, {
1387
- width: 'abbreviated',
1388
- context: 'formatting',
1389
- valueCallback: valueCallback
1390
- }) || match.day(string, {
1391
- width: 'short',
1392
- context: 'formatting',
1393
- valueCallback: valueCallback
1394
- }) || match.day(string, {
1395
- width: 'narrow',
1396
- context: 'formatting',
1397
- valueCallback: valueCallback
1398
- });
1399
- }
1400
- },
1401
- validate: function (_date, value, _options) {
1402
- return value >= 1 && value <= 7;
1403
- },
1404
- set: function (date, _flags, value, options) {
1405
- date = setUTCISODay(date, value, options);
1406
- date.setUTCHours(0, 0, 0, 0);
1407
- return date;
1408
- },
1409
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1410
- },
1411
- // AM or PM
1412
- a: {
1413
- priority: 80,
1414
- parse: function (string, token, match, _options) {
1415
- switch (token) {
1416
- case 'a':
1417
- case 'aa':
1418
- case 'aaa':
1419
- return match.dayPeriod(string, {
1420
- width: 'abbreviated',
1421
- context: 'formatting'
1422
- }) || match.dayPeriod(string, {
1423
- width: 'narrow',
1424
- context: 'formatting'
1425
- });
1426
-
1427
- case 'aaaaa':
1428
- return match.dayPeriod(string, {
1429
- width: 'narrow',
1430
- context: 'formatting'
1431
- });
1432
-
1433
- case 'aaaa':
1434
- default:
1435
- return match.dayPeriod(string, {
1436
- width: 'wide',
1437
- context: 'formatting'
1438
- }) || match.dayPeriod(string, {
1439
- width: 'abbreviated',
1440
- context: 'formatting'
1441
- }) || match.dayPeriod(string, {
1442
- width: 'narrow',
1443
- context: 'formatting'
1444
- });
1445
- }
1446
- },
1447
- set: function (date, _flags, value, _options) {
1448
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1449
- return date;
1450
- },
1451
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1452
- },
1453
- // AM, PM, midnight
1454
- b: {
1455
- priority: 80,
1456
- parse: function (string, token, match, _options) {
1457
- switch (token) {
1458
- case 'b':
1459
- case 'bb':
1460
- case 'bbb':
1461
- return match.dayPeriod(string, {
1462
- width: 'abbreviated',
1463
- context: 'formatting'
1464
- }) || match.dayPeriod(string, {
1465
- width: 'narrow',
1466
- context: 'formatting'
1467
- });
1468
-
1469
- case 'bbbbb':
1470
- return match.dayPeriod(string, {
1471
- width: 'narrow',
1472
- context: 'formatting'
1473
- });
1474
-
1475
- case 'bbbb':
1476
- default:
1477
- return match.dayPeriod(string, {
1478
- width: 'wide',
1479
- context: 'formatting'
1480
- }) || match.dayPeriod(string, {
1481
- width: 'abbreviated',
1482
- context: 'formatting'
1483
- }) || match.dayPeriod(string, {
1484
- width: 'narrow',
1485
- context: 'formatting'
1486
- });
1487
- }
1488
- },
1489
- set: function (date, _flags, value, _options) {
1490
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1491
- return date;
1492
- },
1493
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1494
- },
1495
- // in the morning, in the afternoon, in the evening, at night
1496
- B: {
1497
- priority: 80,
1498
- parse: function (string, token, match, _options) {
1499
- switch (token) {
1500
- case 'B':
1501
- case 'BB':
1502
- case 'BBB':
1503
- return match.dayPeriod(string, {
1504
- width: 'abbreviated',
1505
- context: 'formatting'
1506
- }) || match.dayPeriod(string, {
1507
- width: 'narrow',
1508
- context: 'formatting'
1509
- });
1510
-
1511
- case 'BBBBB':
1512
- return match.dayPeriod(string, {
1513
- width: 'narrow',
1514
- context: 'formatting'
1515
- });
1516
-
1517
- case 'BBBB':
1518
- default:
1519
- return match.dayPeriod(string, {
1520
- width: 'wide',
1521
- context: 'formatting'
1522
- }) || match.dayPeriod(string, {
1523
- width: 'abbreviated',
1524
- context: 'formatting'
1525
- }) || match.dayPeriod(string, {
1526
- width: 'narrow',
1527
- context: 'formatting'
1528
- });
1529
- }
1530
- },
1531
- set: function (date, _flags, value, _options) {
1532
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1533
- return date;
1534
- },
1535
- incompatibleTokens: ['a', 'b', 't', 'T']
1536
- },
1537
- // Hour [1-12]
1538
- h: {
1539
- priority: 70,
1540
- parse: function (string, token, match, _options) {
1541
- switch (token) {
1542
- case 'h':
1543
- return parseNumericPattern(numericPatterns.hour12h, string);
1544
-
1545
- case 'ho':
1546
- return match.ordinalNumber(string, {
1547
- unit: 'hour'
1548
- });
1549
-
1550
- default:
1551
- return parseNDigits(token.length, string);
1552
- }
1553
- },
1554
- validate: function (_date, value, _options) {
1555
- return value >= 1 && value <= 12;
1556
- },
1557
- set: function (date, _flags, value, _options) {
1558
- var isPM = date.getUTCHours() >= 12;
1559
-
1560
- if (isPM && value < 12) {
1561
- date.setUTCHours(value + 12, 0, 0, 0);
1562
- } else if (!isPM && value === 12) {
1563
- date.setUTCHours(0, 0, 0, 0);
1564
- } else {
1565
- date.setUTCHours(value, 0, 0, 0);
1566
- }
1567
-
1568
- return date;
1569
- },
1570
- incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1571
- },
1572
- // Hour [0-23]
1573
- H: {
1574
- priority: 70,
1575
- parse: function (string, token, match, _options) {
1576
- switch (token) {
1577
- case 'H':
1578
- return parseNumericPattern(numericPatterns.hour23h, string);
1579
-
1580
- case 'Ho':
1581
- return match.ordinalNumber(string, {
1582
- unit: 'hour'
1583
- });
1584
-
1585
- default:
1586
- return parseNDigits(token.length, string);
1587
- }
1588
- },
1589
- validate: function (_date, value, _options) {
1590
- return value >= 0 && value <= 23;
1591
- },
1592
- set: function (date, _flags, value, _options) {
1593
- date.setUTCHours(value, 0, 0, 0);
1594
- return date;
1595
- },
1596
- incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1597
- },
1598
- // Hour [0-11]
1599
- K: {
1600
- priority: 70,
1601
- parse: function (string, token, match, _options) {
1602
- switch (token) {
1603
- case 'K':
1604
- return parseNumericPattern(numericPatterns.hour11h, string);
1605
-
1606
- case 'Ko':
1607
- return match.ordinalNumber(string, {
1608
- unit: 'hour'
1609
- });
1610
-
1611
- default:
1612
- return parseNDigits(token.length, string);
1613
- }
1614
- },
1615
- validate: function (_date, value, _options) {
1616
- return value >= 0 && value <= 11;
1617
- },
1618
- set: function (date, _flags, value, _options) {
1619
- var isPM = date.getUTCHours() >= 12;
1620
-
1621
- if (isPM && value < 12) {
1622
- date.setUTCHours(value + 12, 0, 0, 0);
1623
- } else {
1624
- date.setUTCHours(value, 0, 0, 0);
1625
- }
1626
-
1627
- return date;
1628
- },
1629
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1630
- },
1631
- // Hour [1-24]
1632
- k: {
1633
- priority: 70,
1634
- parse: function (string, token, match, _options) {
1635
- switch (token) {
1636
- case 'k':
1637
- return parseNumericPattern(numericPatterns.hour24h, string);
1638
-
1639
- case 'ko':
1640
- return match.ordinalNumber(string, {
1641
- unit: 'hour'
1642
- });
1643
-
1644
- default:
1645
- return parseNDigits(token.length, string);
1646
- }
1647
- },
1648
- validate: function (_date, value, _options) {
1649
- return value >= 1 && value <= 24;
1650
- },
1651
- set: function (date, _flags, value, _options) {
1652
- var hours = value <= 24 ? value % 24 : value;
1653
- date.setUTCHours(hours, 0, 0, 0);
1654
- return date;
1655
- },
1656
- incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1657
- },
1658
- // Minute
1659
- m: {
1660
- priority: 60,
1661
- parse: function (string, token, match, _options) {
1662
- switch (token) {
1663
- case 'm':
1664
- return parseNumericPattern(numericPatterns.minute, string);
1665
-
1666
- case 'mo':
1667
- return match.ordinalNumber(string, {
1668
- unit: 'minute'
1669
- });
1670
-
1671
- default:
1672
- return parseNDigits(token.length, string);
1673
- }
1674
- },
1675
- validate: function (_date, value, _options) {
1676
- return value >= 0 && value <= 59;
1677
- },
1678
- set: function (date, _flags, value, _options) {
1679
- date.setUTCMinutes(value, 0, 0);
1680
- return date;
1681
- },
1682
- incompatibleTokens: ['t', 'T']
1683
- },
1684
- // Second
1685
- s: {
1686
- priority: 50,
1687
- parse: function (string, token, match, _options) {
1688
- switch (token) {
1689
- case 's':
1690
- return parseNumericPattern(numericPatterns.second, string);
1691
-
1692
- case 'so':
1693
- return match.ordinalNumber(string, {
1694
- unit: 'second'
1695
- });
1696
-
1697
- default:
1698
- return parseNDigits(token.length, string);
1699
- }
1700
- },
1701
- validate: function (_date, value, _options) {
1702
- return value >= 0 && value <= 59;
1703
- },
1704
- set: function (date, _flags, value, _options) {
1705
- date.setUTCSeconds(value, 0);
1706
- return date;
1707
- },
1708
- incompatibleTokens: ['t', 'T']
1709
- },
1710
- // Fraction of second
1711
- S: {
1712
- priority: 30,
1713
- parse: function (string, token, _match, _options) {
1714
- var valueCallback = function (value) {
1715
- return Math.floor(value * Math.pow(10, -token.length + 3));
1716
- };
1717
-
1718
- return parseNDigits(token.length, string, valueCallback);
1719
- },
1720
- set: function (date, _flags, value, _options) {
1721
- date.setUTCMilliseconds(value);
1722
- return date;
1723
- },
1724
- incompatibleTokens: ['t', 'T']
1725
- },
1726
- // Timezone (ISO-8601. +00:00 is `'Z'`)
1727
- X: {
1728
- priority: 10,
1729
- parse: function (string, token, _match, _options) {
1730
- switch (token) {
1731
- case 'X':
1732
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1733
-
1734
- case 'XX':
1735
- return parseTimezonePattern(timezonePatterns.basic, string);
1736
-
1737
- case 'XXXX':
1738
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1739
-
1740
- case 'XXXXX':
1741
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1742
-
1743
- case 'XXX':
1744
- default:
1745
- return parseTimezonePattern(timezonePatterns.extended, string);
1746
- }
1747
- },
1748
- set: function (date, flags, value, _options) {
1749
- if (flags.timestampIsSet) {
1750
- return date;
1751
- }
1752
-
1753
- return new Date(date.getTime() - value);
1754
- },
1755
- incompatibleTokens: ['t', 'T', 'x']
1756
- },
1757
- // Timezone (ISO-8601)
1758
- x: {
1759
- priority: 10,
1760
- parse: function (string, token, _match, _options) {
1761
- switch (token) {
1762
- case 'x':
1763
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1764
-
1765
- case 'xx':
1766
- return parseTimezonePattern(timezonePatterns.basic, string);
1767
-
1768
- case 'xxxx':
1769
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1770
-
1771
- case 'xxxxx':
1772
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1773
-
1774
- case 'xxx':
1775
- default:
1776
- return parseTimezonePattern(timezonePatterns.extended, string);
1777
- }
1778
- },
1779
- set: function (date, flags, value, _options) {
1780
- if (flags.timestampIsSet) {
1781
- return date;
1782
- }
1783
-
1784
- return new Date(date.getTime() - value);
1785
- },
1786
- incompatibleTokens: ['t', 'T', 'X']
1787
- },
1788
- // Seconds timestamp
1789
- t: {
1790
- priority: 40,
1791
- parse: function (string, _token, _match, _options) {
1792
- return parseAnyDigitsSigned(string);
1793
- },
1794
- set: function (_date, _flags, value, _options) {
1795
- return [new Date(value * 1000), {
1796
- timestampIsSet: true
1797
- }];
1798
- },
1799
- incompatibleTokens: '*'
1800
- },
1801
- // Milliseconds timestamp
1802
- T: {
1803
- priority: 20,
1804
- parse: function (string, _token, _match, _options) {
1805
- return parseAnyDigitsSigned(string);
1806
- },
1807
- set: function (_date, _flags, value, _options) {
1808
- return [new Date(value), {
1809
- timestampIsSet: true
1810
- }];
1811
- },
1812
- incompatibleTokens: '*'
1813
- }
1814
- };
1815
- const parsers$1 = parsers;
1816
-
1817
- var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1818
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1819
- // (one of the certain letters followed by `o`)
1820
- // - (\w)\1* matches any sequences of the same letter
1821
- // - '' matches two quote characters in a row
1822
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1823
- // except a single quote symbol, which ends the sequence.
1824
- // Two quote characters do not end the sequence.
1825
- // If there is no matching single quote
1826
- // then the sequence will continue until the end of the string.
1827
- // - . matches any single character unmatched by previous parts of the RegExps
1828
-
1829
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1830
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1831
-
1832
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1833
- var escapedStringRegExp = /^'([^]*?)'?$/;
1834
- var doubleQuoteRegExp = /''/g;
1835
- var notWhitespaceRegExp = /\S/;
1836
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1837
- /**
1838
- * @name parse
1839
- * @category Common Helpers
1840
- * @summary Parse the date.
1841
- *
1842
- * @description
1843
- * Return the date parsed from string using the given format string.
1844
- *
1845
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1846
- * > See: https://git.io/fxCyr
1847
- *
1848
- * The characters in the format string wrapped between two single quotes characters (') are escaped.
1849
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1850
- *
1851
- * Format of the format string is based on Unicode Technical Standard #35:
1852
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1853
- * with a few additions (see note 5 below the table).
1854
- *
1855
- * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1856
- * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1857
- *
1858
- * ```javascript
1859
- * parse('23 AM', 'HH a', new Date())
1860
- * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1861
- * ```
1862
- *
1863
- * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1864
- *
1865
- * Accepted format string patterns:
1866
- * | Unit |Prior| Pattern | Result examples | Notes |
1867
- * |---------------------------------|-----|---------|-----------------------------------|-------|
1868
- * | Era | 140 | G..GGG | AD, BC | |
1869
- * | | | GGGG | Anno Domini, Before Christ | 2 |
1870
- * | | | GGGGG | A, B | |
1871
- * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1872
- * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1873
- * | | | yy | 44, 01, 00, 17 | 4 |
1874
- * | | | yyy | 044, 001, 123, 999 | 4 |
1875
- * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1876
- * | | | yyyyy | ... | 2,4 |
1877
- * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1878
- * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1879
- * | | | YY | 44, 01, 00, 17 | 4,6 |
1880
- * | | | YYY | 044, 001, 123, 999 | 4 |
1881
- * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1882
- * | | | YYYYY | ... | 2,4 |
1883
- * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1884
- * | | | RR | -43, 01, 00, 17 | 4,5 |
1885
- * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1886
- * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1887
- * | | | RRRRR | ... | 2,4,5 |
1888
- * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1889
- * | | | uu | -43, 01, 99, -99 | 4 |
1890
- * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1891
- * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1892
- * | | | uuuuu | ... | 2,4 |
1893
- * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1894
- * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1895
- * | | | QQ | 01, 02, 03, 04 | |
1896
- * | | | QQQ | Q1, Q2, Q3, Q4 | |
1897
- * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1898
- * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1899
- * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1900
- * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1901
- * | | | qq | 01, 02, 03, 04 | |
1902
- * | | | qqq | Q1, Q2, Q3, Q4 | |
1903
- * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1904
- * | | | qqqqq | 1, 2, 3, 4 | 3 |
1905
- * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1906
- * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1907
- * | | | MM | 01, 02, ..., 12 | |
1908
- * | | | MMM | Jan, Feb, ..., Dec | |
1909
- * | | | MMMM | January, February, ..., December | 2 |
1910
- * | | | MMMMM | J, F, ..., D | |
1911
- * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1912
- * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1913
- * | | | LL | 01, 02, ..., 12 | |
1914
- * | | | LLL | Jan, Feb, ..., Dec | |
1915
- * | | | LLLL | January, February, ..., December | 2 |
1916
- * | | | LLLLL | J, F, ..., D | |
1917
- * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1918
- * | | | wo | 1st, 2nd, ..., 53th | 5 |
1919
- * | | | ww | 01, 02, ..., 53 | |
1920
- * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1921
- * | | | Io | 1st, 2nd, ..., 53th | 5 |
1922
- * | | | II | 01, 02, ..., 53 | 5 |
1923
- * | Day of month | 90 | d | 1, 2, ..., 31 | |
1924
- * | | | do | 1st, 2nd, ..., 31st | 5 |
1925
- * | | | dd | 01, 02, ..., 31 | |
1926
- * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1927
- * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1928
- * | | | DD | 01, 02, ..., 365, 366 | 7 |
1929
- * | | | DDD | 001, 002, ..., 365, 366 | |
1930
- * | | | DDDD | ... | 2 |
1931
- * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1932
- * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1933
- * | | | EEEEE | M, T, W, T, F, S, S | |
1934
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1935
- * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1936
- * | | | io | 1st, 2nd, ..., 7th | 5 |
1937
- * | | | ii | 01, 02, ..., 07 | 5 |
1938
- * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1939
- * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1940
- * | | | iiiii | M, T, W, T, F, S, S | 5 |
1941
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1942
- * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1943
- * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1944
- * | | | ee | 02, 03, ..., 01 | |
1945
- * | | | eee | Mon, Tue, Wed, ..., Sun | |
1946
- * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1947
- * | | | eeeee | M, T, W, T, F, S, S | |
1948
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1949
- * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1950
- * | | | co | 2nd, 3rd, ..., 1st | 5 |
1951
- * | | | cc | 02, 03, ..., 01 | |
1952
- * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1953
- * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1954
- * | | | ccccc | M, T, W, T, F, S, S | |
1955
- * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1956
- * | AM, PM | 80 | a..aaa | AM, PM | |
1957
- * | | | aaaa | a.m., p.m. | 2 |
1958
- * | | | aaaaa | a, p | |
1959
- * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1960
- * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1961
- * | | | bbbbb | a, p, n, mi | |
1962
- * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1963
- * | | | BBBB | at night, in the morning, ... | 2 |
1964
- * | | | BBBBB | at night, in the morning, ... | |
1965
- * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1966
- * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1967
- * | | | hh | 01, 02, ..., 11, 12 | |
1968
- * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1969
- * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1970
- * | | | HH | 00, 01, 02, ..., 23 | |
1971
- * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1972
- * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1973
- * | | | KK | 01, 02, ..., 11, 00 | |
1974
- * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1975
- * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1976
- * | | | kk | 24, 01, 02, ..., 23 | |
1977
- * | Minute | 60 | m | 0, 1, ..., 59 | |
1978
- * | | | mo | 0th, 1st, ..., 59th | 5 |
1979
- * | | | mm | 00, 01, ..., 59 | |
1980
- * | Second | 50 | s | 0, 1, ..., 59 | |
1981
- * | | | so | 0th, 1st, ..., 59th | 5 |
1982
- * | | | ss | 00, 01, ..., 59 | |
1983
- * | Seconds timestamp | 40 | t | 512969520 | |
1984
- * | | | tt | ... | 2 |
1985
- * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1986
- * | | | SS | 00, 01, ..., 99 | |
1987
- * | | | SSS | 000, 0001, ..., 999 | |
1988
- * | | | SSSS | ... | 2 |
1989
- * | Milliseconds timestamp | 20 | T | 512969520900 | |
1990
- * | | | TT | ... | 2 |
1991
- * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1992
- * | | | XX | -0800, +0530, Z | |
1993
- * | | | XXX | -08:00, +05:30, Z | |
1994
- * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1995
- * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1996
- * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1997
- * | | | xx | -0800, +0530, +0000 | |
1998
- * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1999
- * | | | xxxx | -0800, +0530, +0000, +123456 | |
2000
- * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
2001
- * | Long localized date | NA | P | 05/29/1453 | 5,8 |
2002
- * | | | PP | May 29, 1453 | |
2003
- * | | | PPP | May 29th, 1453 | |
2004
- * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
2005
- * | Long localized time | NA | p | 12:00 AM | 5,8 |
2006
- * | | | pp | 12:00:00 AM | |
2007
- * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
2008
- * | | | PPpp | May 29, 1453, 12:00:00 AM | |
2009
- * | | | PPPpp | May 29th, 1453 at ... | |
2010
- * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
2011
- * Notes:
2012
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2013
- * are the same as "stand-alone" units, but are different in some languages.
2014
- * "Formatting" units are declined according to the rules of the language
2015
- * in the context of a date. "Stand-alone" units are always nominative singular.
2016
- * In `format` function, they will produce different result:
2017
- *
2018
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2019
- *
2020
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2021
- *
2022
- * `parse` will try to match both formatting and stand-alone units interchangably.
2023
- *
2024
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2025
- * the single quote characters (see below).
2026
- * If the sequence is longer than listed in table:
2027
- * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
2028
- * as wide as the sequence
2029
- * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
2030
- * These variations are marked with "2" in the last column of the table.
2031
- *
2032
- * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2033
- * These tokens represent the shortest form of the quarter.
2034
- *
2035
- * 4. The main difference between `y` and `u` patterns are B.C. years:
2036
- *
2037
- * | Year | `y` | `u` |
2038
- * |------|-----|-----|
2039
- * | AC 1 | 1 | 1 |
2040
- * | BC 1 | 1 | 0 |
2041
- * | BC 2 | 2 | -1 |
2042
- *
2043
- * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
2044
- *
2045
- * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
2046
- *
2047
- * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
2048
- *
2049
- * while `uu` will just assign the year as is:
2050
- *
2051
- * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
2052
- *
2053
- * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
2054
- *
2055
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2056
- * except local week-numbering years are dependent on `options.weekStartsOn`
2057
- * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
2058
- * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
2059
- *
2060
- * 5. These patterns are not in the Unicode Technical Standard #35:
2061
- * - `i`: ISO day of week
2062
- * - `I`: ISO week of year
2063
- * - `R`: ISO week-numbering year
2064
- * - `o`: ordinal number modifier
2065
- * - `P`: long localized date
2066
- * - `p`: long localized time
2067
- *
2068
- * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2069
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
2070
- *
2071
- * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
2072
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
2073
- *
2074
- * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
2075
- * on the given locale.
2076
- *
2077
- * using `en-US` locale: `P` => `MM/dd/yyyy`
2078
- * using `en-US` locale: `p` => `hh:mm a`
2079
- * using `pt-BR` locale: `P` => `dd/MM/yyyy`
2080
- * using `pt-BR` locale: `p` => `HH:mm`
2081
- *
2082
- * Values will be assigned to the date in the descending order of its unit's priority.
2083
- * Units of an equal priority overwrite each other in the order of appearance.
2084
- *
2085
- * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
2086
- * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
2087
- *
2088
- * `referenceDate` must be passed for correct work of the function.
2089
- * If you're not sure which `referenceDate` to supply, create a new instance of Date:
2090
- * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
2091
- * In this case parsing will be done in the context of the current date.
2092
- * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
2093
- * then `Invalid Date` will be returned.
2094
- *
2095
- * The result may vary by locale.
2096
- *
2097
- * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
2098
- *
2099
- * If parsing failed, `Invalid Date` will be returned.
2100
- * Invalid Date is a Date, whose time value is NaN.
2101
- * Time value of Date: http://es5.github.io/#x15.9.1.1
2102
- *
2103
- * ### v2.0.0 breaking changes:
2104
- *
2105
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
2106
- *
2107
- * - Old `parse` was renamed to `toDate`.
2108
- * Now `parse` is a new function which parses a string using a provided format.
2109
- *
2110
- * ```javascript
2111
- * // Before v2.0.0
2112
- * parse('2016-01-01')
2113
- *
2114
- * // v2.0.0 onward (toDate no longer accepts a string)
2115
- * toDate(1392098430000) // Unix to timestamp
2116
- * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
2117
- * parse('2016-01-01', 'yyyy-MM-dd', new Date())
2118
- * ```
2119
- *
2120
- * @param {String} dateString - the string to parse
2121
- * @param {String} formatString - the string of tokens
2122
- * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
2123
- * @param {Object} [options] - an object with options.
2124
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2125
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2126
- * @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
2127
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2128
- * see: https://git.io/fxCyr
2129
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2130
- * see: https://git.io/fxCyr
2131
- * @returns {Date} the parsed date
2132
- * @throws {TypeError} 3 arguments required
2133
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2134
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2135
- * @throws {RangeError} `options.locale` must contain `match` property
2136
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2137
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2138
- * @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
2139
- * @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
2140
- * @throws {RangeError} format string contains an unescaped latin alphabet character
2141
- *
2142
- * @example
2143
- * // Parse 11 February 2014 from middle-endian format:
2144
- * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
2145
- * //=> Tue Feb 11 2014 00:00:00
2146
- *
2147
- * @example
2148
- * // Parse 28th of February in Esperanto locale in the context of 2010 year:
2149
- * import eo from 'date-fns/locale/eo'
2150
- * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
2151
- * locale: eo
2152
- * })
2153
- * //=> Sun Feb 28 2010 00:00:00
2154
- */
2155
-
2156
- function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
2157
- index$1.requiredArgs(3, arguments);
2158
- var dateString = String(dirtyDateString);
2159
- var formatString = String(dirtyFormatString);
2160
- var options = dirtyOptions || {};
2161
- var locale = options.locale || index$1.defaultLocale;
2162
-
2163
- if (!locale.match) {
2164
- throw new RangeError('locale must contain match property');
2165
- }
2166
-
2167
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
2168
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index$1.toInteger(localeFirstWeekContainsDate);
2169
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index$1.toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2170
-
2171
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2172
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2173
- }
2174
-
2175
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
2176
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index$1.toInteger(localeWeekStartsOn);
2177
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index$1.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2178
-
2179
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2180
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2181
- }
2182
-
2183
- if (formatString === '') {
2184
- if (dateString === '') {
2185
- return index$1.toDate(dirtyReferenceDate);
2186
- } else {
2187
- return new Date(NaN);
2188
- }
2189
- }
2190
-
2191
- var subFnOptions = {
2192
- firstWeekContainsDate: firstWeekContainsDate,
2193
- weekStartsOn: weekStartsOn,
2194
- locale: locale
2195
- }; // If timezone isn't specified, it will be set to the system timezone
2196
-
2197
- var setters = [{
2198
- priority: TIMEZONE_UNIT_PRIORITY,
2199
- subPriority: -1,
2200
- set: dateToSystemTimezone,
2201
- index: 0
2202
- }];
2203
- var i;
2204
- var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2205
- var firstCharacter = substring[0];
2206
-
2207
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2208
- var longFormatter = index$1.longFormatters[firstCharacter];
2209
- return longFormatter(substring, locale.formatLong, subFnOptions);
2210
- }
2211
-
2212
- return substring;
2213
- }).join('').match(formattingTokensRegExp);
2214
- var usedTokens = [];
2215
-
2216
- for (i = 0; i < tokens.length; i++) {
2217
- var token = tokens[i];
2218
-
2219
- if (!options.useAdditionalWeekYearTokens && index$1.isProtectedWeekYearToken(token)) {
2220
- index$1.throwProtectedError(token, formatString, dirtyDateString);
2221
- }
2222
-
2223
- if (!options.useAdditionalDayOfYearTokens && index$1.isProtectedDayOfYearToken(token)) {
2224
- index$1.throwProtectedError(token, formatString, dirtyDateString);
2225
- }
2226
-
2227
- var firstCharacter = token[0];
2228
- var parser = parsers$1[firstCharacter];
2229
-
2230
- if (parser) {
2231
- var incompatibleTokens = parser.incompatibleTokens;
2232
-
2233
- if (Array.isArray(incompatibleTokens)) {
2234
- var incompatibleToken = void 0;
2235
-
2236
- for (var _i = 0; _i < usedTokens.length; _i++) {
2237
- var usedToken = usedTokens[_i].token;
2238
-
2239
- if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2240
- incompatibleToken = usedTokens[_i];
2241
- break;
2242
- }
2243
- }
2244
-
2245
- if (incompatibleToken) {
2246
- throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2247
- }
2248
- } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2249
- throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2250
- }
2251
-
2252
- usedTokens.push({
2253
- token: firstCharacter,
2254
- fullToken: token
2255
- });
2256
- var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
2257
-
2258
- if (!parseResult) {
2259
- return new Date(NaN);
2260
- }
2261
-
2262
- setters.push({
2263
- priority: parser.priority,
2264
- subPriority: parser.subPriority || 0,
2265
- set: parser.set,
2266
- validate: parser.validate,
2267
- value: parseResult.value,
2268
- index: setters.length
2269
- });
2270
- dateString = parseResult.rest;
2271
- } else {
2272
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2273
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2274
- } // Replace two single quote characters with one single quote character
2275
-
2276
-
2277
- if (token === "''") {
2278
- token = "'";
2279
- } else if (firstCharacter === "'") {
2280
- token = cleanEscapedString(token);
2281
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2282
-
2283
-
2284
- if (dateString.indexOf(token) === 0) {
2285
- dateString = dateString.slice(token.length);
2286
- } else {
2287
- return new Date(NaN);
2288
- }
2289
- }
2290
- } // Check if the remaining input contains something other than whitespace
2291
-
2292
-
2293
- if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2294
- return new Date(NaN);
2295
- }
2296
-
2297
- var uniquePrioritySetters = setters.map(function (setter) {
2298
- return setter.priority;
2299
- }).sort(function (a, b) {
2300
- return b - a;
2301
- }).filter(function (priority, index, array) {
2302
- return array.indexOf(priority) === index;
2303
- }).map(function (priority) {
2304
- return setters.filter(function (setter) {
2305
- return setter.priority === priority;
2306
- }).sort(function (a, b) {
2307
- return b.subPriority - a.subPriority;
2308
- });
2309
- }).map(function (setterArray) {
2310
- return setterArray[0];
2311
- });
2312
- var date = index$1.toDate(dirtyReferenceDate);
2313
-
2314
- if (isNaN(date)) {
2315
- return new Date(NaN);
2316
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2317
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2318
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2319
-
2320
-
2321
- var utcDate = index$1.subMilliseconds(date, index$1.getTimezoneOffsetInMilliseconds(date));
2322
- var flags = {};
2323
-
2324
- for (i = 0; i < uniquePrioritySetters.length; i++) {
2325
- var setter = uniquePrioritySetters[i];
2326
-
2327
- if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2328
- return new Date(NaN);
2329
- }
2330
-
2331
- var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2332
-
2333
- if (result[0]) {
2334
- utcDate = result[0];
2335
- assign(flags, result[1]); // Result is date
2336
- } else {
2337
- utcDate = result;
2338
- }
2339
- }
2340
-
2341
- return utcDate;
2342
- }
2343
-
2344
- function dateToSystemTimezone(date, flags) {
2345
- if (flags.timestampIsSet) {
2346
- return date;
2347
- }
2348
-
2349
- var convertedDate = new Date(0);
2350
- convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2351
- convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2352
- return convertedDate;
2353
- }
2354
-
2355
- function cleanEscapedString(input) {
2356
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2357
- }
2358
-
2359
- 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}";
2360
- const DigiCalendarStyle0 = calendarCss;
2361
-
2362
- const Calendar = class {
2363
- constructor(hostRef) {
2364
- index.registerInstance(this, hostRef);
2365
- this.afOnDateSelectedChange = index.createEvent(this, "afOnDateSelectedChange", 7);
2366
- this.afOnFocusOutside = index.createEvent(this, "afOnFocusOutside", 7);
2367
- this.afOnClickOutside = index.createEvent(this, "afOnClickOutside", 7);
2368
- this.afOnDirty = index.createEvent(this, "afOnDirty", 7);
2369
- var _a;
2370
- this.locale = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.lang) || 'sv-SE';
2371
- this.activeCalendar = [];
2372
- this.months = [];
2373
- this.selectedDates = [];
2374
- this.focusedDate = undefined;
2375
- this.dirty = false;
2376
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar');
2377
- this.afInitFocusDate = undefined;
2378
- this.afShowWeekNumber = false;
2379
- this.afSelectedDate = undefined;
2380
- this.afSelectedDates = [];
2381
- this.afActive = true;
2382
- this.afMinDate = undefined;
2383
- this.afMaxDate = undefined;
2384
- this.afMultipleDates = false;
2385
- this.afYearSelect = false;
2386
- }
2387
- afSelectedDateChangeHandler() {
2388
- this.afSelectedDates = index$1.isValid(this.afSelectedDate)
2389
- ? [this.afSelectedDate]
2390
- : [];
2391
- }
2392
- afSelectedDatesChangeHandler() {
2393
- if (this.afSelectedDates.length > 0) {
2394
- if (this.afMultipleDates) {
2395
- const invalidDate = this.afSelectedDates.find((date) => !index$1.isValid(date));
2396
- if (invalidDate === undefined) {
2397
- this.selectedDates = this.afSelectedDates;
2398
- if (this.afInitFocusDate && index$1.isValid(this.afInitFocusDate)) {
2399
- this.focusedDate = this.afInitFocusDate;
2400
- }
2401
- else {
2402
- this.focusedDate = new Date(this.afSelectedDates
2403
- .slice()
2404
- .sort((a, b) => a.getTime() - b.getTime())[0]);
2405
- }
2406
- }
2407
- }
2408
- else if (index$1.isValid(this.afSelectedDates[0])) {
2409
- this.selectedDates = [this.afSelectedDates[0]];
2410
- if (this.afInitFocusDate && index$1.isValid(this.afInitFocusDate)) {
2411
- this.focusedDate = this.afInitFocusDate;
2412
- }
2413
- else {
2414
- this.focusedDate = new Date(this.afSelectedDates[0]);
2415
- }
2416
- }
2417
- }
2418
- else {
2419
- this.selectedDates = [];
2420
- }
2421
- }
2422
- focusoutHandler(e) {
2423
- const target = e.target;
2424
- const selector = `#${this.afId}-calendar`;
2425
- if (detectFocusOutside_util.detectFocusOutside(target, selector)) {
2426
- this.afOnFocusOutside.emit(e);
2427
- }
2428
- }
2429
- clickHandler(e) {
2430
- const target = e.target;
2431
- const selector = `#${this.afId}-calendar`;
2432
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
2433
- this.afOnClickOutside.emit(e);
2434
- }
2435
- }
2436
- drawCalendar(focusedDate) {
2437
- const date = {
2438
- year: focusedDate.getFullYear(),
2439
- month: focusedDate.getMonth()
2440
- };
2441
- this.lastWeekOfPreviousMonth = this.getWeekDays(this.getLastDayOfPrevMonth(date));
2442
- this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
2443
- this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
2444
- this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
2445
- this.months = [
2446
- 'januari',
2447
- 'februari',
2448
- 'mars',
2449
- 'april',
2450
- 'maj',
2451
- 'juni',
2452
- 'juli',
2453
- 'augusti',
2454
- 'september',
2455
- 'oktober',
2456
- 'november',
2457
- 'december'
2458
- ];
2459
- this.activeCalendar = this.appendFirstWeekOfNextMonth()
2460
- ? [
2461
- this.lastWeekOfPreviousMonth,
2462
- ...this.weekDaysbetween,
2463
- this.appendFirstWeekOfNextMonth()
2464
- ]
2465
- : [this.lastWeekOfPreviousMonth, ...this.weekDaysbetween];
2466
- this.appendFirstWeekOfNextMonth();
2467
- if (this.afShowWeekNumber) {
2468
- this.activeCalendar.forEach((el, i) => {
2469
- this.activeCalendar[i].unshift(this.getWeekNumbers(el[0]));
2470
- });
2471
- }
2472
- }
2473
- appendFirstWeekOfNextMonth() {
2474
- const lastArray = JSON.stringify(this.weekDaysbetween.slice(-1)[0]);
2475
- const stringFirstweek = JSON.stringify(this.firstWeekOfNextMonth);
2476
- if (!this.firstWeekOfNextMonth.some((date) => this.isSameMonth(date, this.focusedDate))) {
2477
- return;
2478
- }
2479
- else if (lastArray !== stringFirstweek) {
2480
- return this.firstWeekOfNextMonth;
2481
- }
2482
- }
2483
- getLastDayOfPrevMonth(date) {
2484
- return new Date(date.year, date.month, 0);
2485
- }
2486
- getWeekDays(date) {
2487
- const today = date || new Date();
2488
- const week = [];
2489
- for (let i = 1; i <= 7; i++) {
2490
- const first = today.getDate() - today.getDay() + i;
2491
- const day = new Date(today.setDate(first));
2492
- week.push(day);
2493
- }
2494
- return week;
2495
- }
2496
- getFirstDayOfNextMonth(date) {
2497
- return new Date(date.year, date.month + 1, 1);
2498
- }
2499
- getWeeksBetween(lastDayOfPrevMonth, firstDayOnNextMonth) {
2500
- const week = 7 * 24 * 60 * 60 * 1000;
2501
- const d1ms = lastDayOfPrevMonth.getTime();
2502
- const d2ms = firstDayOnNextMonth.getTime();
2503
- const diff = Math.abs(d2ms - d1ms);
2504
- return Math.floor(diff / week);
2505
- }
2506
- getWeekdaysOfMonth(weeksBetween) {
2507
- let weeks = [];
2508
- for (let i = 1; i <= weeksBetween; i++) {
2509
- weeks = [...weeks, this.getWeekDays(this.getUpcoming(i))];
2510
- }
2511
- return weeks;
2512
- }
2513
- getUpcoming(weeks) {
2514
- return new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 7 * weeks);
2515
- }
2516
- onDirty() {
2517
- if (!this.dirty) {
2518
- this.dirty = true;
2519
- this.afOnDirty.emit(this.dirty);
2520
- }
2521
- }
2522
- selectDateHandler(dateSelected) {
2523
- this.onDirty();
2524
- if (!this.isDateSelectable(dateSelected))
2525
- return;
2526
- if (this.isDateSelected(dateSelected)) {
2527
- this.selectedDates = this.afMultipleDates
2528
- ? this.selectedDates.filter((d) => {
2529
- return !this.isSameDate(d, dateSelected);
2530
- })
2531
- : [];
2532
- }
2533
- else {
2534
- this.selectedDates = this.afMultipleDates
2535
- ? [...this.selectedDates, dateSelected]
2536
- : [dateSelected];
2537
- }
2538
- this.focusedDate = new Date(dateSelected);
2539
- this.afOnDateSelectedChange.emit(this.selectedDates);
2540
- }
2541
- getMonthName(monthNumber) {
2542
- return new Date(1992, monthNumber, 1)
2543
- .toLocaleDateString(this.locale, {
2544
- month: 'short'
2545
- })
2546
- .replace('.', '');
2547
- }
2548
- getFullMonthName(monthNumber) {
2549
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(this.locale, {
2550
- month: 'long',
2551
- year: 'numeric'
2552
- });
2553
- }
2554
- // Get the week number of a specific date. Taken from https://weeknumber.com/how-to/javascript
2555
- getWeekNumbers(dateInput) {
2556
- const date = new Date(dateInput);
2557
- date.getTime();
2558
- date.setHours(0, 0, 0, 0);
2559
- date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
2560
- const week1 = new Date(date.getFullYear(), 0, 4);
2561
- return (1 +
2562
- Math.round(((date.getTime() - week1.getTime()) / 86400000 -
2563
- 3 +
2564
- ((week1.getDay() + 6) % 7)) /
2565
- 7));
2566
- }
2567
- isSameMonth(date, currentDate) {
2568
- if (date instanceof Date && date instanceof Date) {
2569
- return (`${date.getFullYear()}${date.getMonth()}` ===
2570
- `${currentDate.getFullYear()}${currentDate.getMonth()}`);
2571
- }
2572
- return false;
2573
- }
2574
- isSameDate(date, newDate) {
2575
- return this.getDateString(date) === this.getDateString(newDate);
2576
- }
2577
- getDateString(date) {
2578
- return `${date.getDate()}${date.getMonth()}${date.getFullYear()}`;
2579
- }
2580
- isDateSelected(date) {
2581
- return !!this.selectedDates.find((d) => this.isSameDate(date, d));
2582
- }
2583
- isDateSelectable(date) {
2584
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2585
- return false;
2586
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2587
- return false;
2588
- return true;
2589
- }
2590
- isBefore(a, b) {
2591
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2592
- }
2593
- isAfter(a, b) {
2594
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2595
- }
2596
- dateWithoutTime(date) {
2597
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2598
- }
2599
- isInAnotherMonth(date) {
2600
- return !this.isSameMonth(date, this.focusedDate);
2601
- }
2602
- subtractMonth() {
2603
- this.onDirty();
2604
- const month = new Date(this.focusedDate);
2605
- const currentDay = month.getDate();
2606
- month.setMonth(month.getMonth() - 1, 1);
2607
- const lastDayOfPrevMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2608
- month.setDate(Math.min(currentDay, lastDayOfPrevMonth));
2609
- this.focusedDate = month;
2610
- }
2611
- addMonth() {
2612
- this.onDirty();
2613
- const month = new Date(this.focusedDate);
2614
- const currentDay = month.getDate();
2615
- month.setMonth(month.getMonth() + 1, 1);
2616
- const lastDayOfNextMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2617
- month.setDate(Math.min(currentDay, lastDayOfNextMonth));
2618
- this.focusedDate = month;
2619
- }
2620
- getCurrent(date) {
2621
- return this.isSameDate(date, new Date()) ? 'date' : null;
2622
- }
2623
- setTabIndex(date) {
2624
- return this.isFocused(date) ? 0 : -1;
2625
- }
2626
- navigateHandler(e, daysToAdd) {
2627
- !!e.detail && e.detail.preventDefault();
2628
- if (e.detail.key === 'Tab') {
2629
- return;
2630
- }
2631
- this.onDirty();
2632
- const date = new Date(e.detail.target.dataset.date);
2633
- const newDate = new Date(date.setDate(date.getDate() + daysToAdd));
2634
- this.focusedDate = newDate;
2635
- this.resetFocus();
2636
- }
2637
- resetFocus() {
2638
- setTimeout(() => {
2639
- const dates = this._tbody.querySelectorAll('.digi-calendar__date');
2640
- if (dates.length <= 0) {
2641
- logger_util.logger.warn(`Could not find an element with data-date attribute matching navigated date.`, this._tbody);
2642
- return;
2643
- }
2644
- Array.from(dates).map((date) => {
2645
- const d = date;
2646
- d.tabIndex = -1;
2647
- d.classList.remove('digi-calendar__date--focused');
2648
- if (d.dataset.date === this.getFullDate(this.focusedDate)) {
2649
- d.focus();
2650
- d.tabIndex = 0;
2651
- d.classList.add('digi-calendar__date--focused');
2652
- }
2653
- });
2654
- }, 100);
2655
- }
2656
- getFullDate(date) {
2657
- return date.toLocaleString(text._t.locale, {
2658
- day: 'numeric',
2659
- month: 'numeric',
2660
- year: 'numeric'
2661
- });
2662
- }
2663
- getDateName(date) {
2664
- return date.toLocaleString(text._t.locale, {
2665
- year: 'numeric',
2666
- month: 'long',
2667
- day: 'numeric'
2668
- });
2669
- }
2670
- isFocused(date) {
2671
- if (this.dirty) {
2672
- return this.isSameDate(date, this.focusedDate);
2673
- }
2674
- if (this.afInitFocusDate) {
2675
- return this.isSameDate(date, this.afInitFocusDate);
2676
- }
2677
- return this.isSameMonth(date, new Date())
2678
- ? this.isSameDate(date, new Date())
2679
- : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1;
2680
- }
2681
- ariaPressed(date) {
2682
- return this.selectedDates.length > 0 &&
2683
- !!this.selectedDates.find((d) => this.isSameDate(d, date))
2684
- ? 'true'
2685
- : 'false';
2686
- }
2687
- selectMonth(evt) {
2688
- this.onDirty();
2689
- const tempDate = new Date(this.focusedDate);
2690
- const selectedMonth = parseInt(evt.target.value, 10);
2691
- const currentDay = tempDate.getDate();
2692
- tempDate.setMonth(selectedMonth, 1);
2693
- const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
2694
- tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
2695
- this.focusedDate = tempDate;
2696
- this.drawCalendar(this.focusedDate);
2697
- }
2698
- selectYear(evt) {
2699
- this.onDirty();
2700
- const tempDate = this.focusedDate;
2701
- tempDate.setFullYear(evt.target.value);
2702
- this.focusedDate = tempDate;
2703
- this.drawCalendar(this.focusedDate);
2704
- }
2705
- earliestSelectableYear() {
2706
- if (this.afMinDate)
2707
- return this.afMinDate.getFullYear();
2708
- return 1900;
2709
- }
2710
- latestSelectableYear() {
2711
- if (this.afMaxDate)
2712
- return this.afMaxDate.getFullYear();
2713
- return new Date(Date.now()).getFullYear() + 10;
2714
- }
2715
- allSelectableYears() {
2716
- const allYears = [];
2717
- let currentYear = this.earliestSelectableYear();
2718
- while (currentYear <= this.latestSelectableYear()) {
2719
- allYears.push(currentYear++);
2720
- }
2721
- return allYears;
2722
- }
2723
- componentWillLoad() {
2724
- var _a;
2725
- if (index$1.isValid(this.afSelectedDate)) {
2726
- this.selectedDates = [this.afSelectedDate];
2727
- }
2728
- else if (((_a = this.afSelectedDates) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2729
- const valid = this.afSelectedDates.filter((d) => index$1.isValid(d));
2730
- if (valid.length > 0)
2731
- this.selectedDates = valid;
2732
- }
2733
- if (this.afInitFocusDate && index$1.isValid(this.afInitFocusDate)) {
2734
- this.focusedDate = this.afInitFocusDate;
2735
- }
2736
- else if (this.selectedDates.length > 0) {
2737
- this.focusedDate = this.selectedDates
2738
- .slice()
2739
- .sort((a, b) => a.getTime() - b.getTime())[0];
2740
- }
2741
- else {
2742
- this.focusedDate = new Date();
2743
- }
2744
- this.drawCalendar(this.focusedDate);
2745
- }
2746
- componentWillUpdate() {
2747
- this.drawCalendar(this.focusedDate);
2748
- }
2749
- async componentDidLoad() {
2750
- if (index$1.isValid(this.afSelectedDate))
2751
- this.selectedDates = [this.afSelectedDate];
2752
- else
2753
- this.afSelectedDatesChangeHandler();
2754
- await customElements.whenDefined('digi-form-select');
2755
- }
2756
- cssDateModifiers(date) {
2757
- const shownMonth = this.focusedDate.getMonth();
2758
- return {
2759
- 'digi-calendar__date--today': this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date),
2760
- 'digi-calendar__date--disabled': this.isInAnotherMonth(date),
2761
- 'digi-calendar__date--focused': this.isFocused(date),
2762
- 'digi-calendar__date--selected': this.isDateSelected(date) && date.getMonth() === shownMonth,
2763
- 'digi-calendar__date--not-selectable': !this.isInAnotherMonth(date) && !this.isDateSelectable(date)
2764
- };
2765
- }
2766
- render() {
2767
- return (index.h("div", { key: 'a65aa1b63553ff82c432a81fa9fd9821b88a39ab', class: {
2768
- 'digi-calendar': true,
2769
- 'digi-calendar--hide': !this.afActive
2770
- }, id: `${this.afId}-calendar` }, this.afYearSelect && (index.h("div", { key: '9cdea2a354a094a7dbe68bc7dd796143ed21acb6', class: "digi-calendar__header" }, index.h("div", { key: '3731070e6c432b2bed6985034db41b141a27214e', class: "digi-calendar__header--year-select" }, index.h("digi-form-select", { key: '06e3d06b3ef6d7ad262f9eeb927a12167ca8a48b', afLabel: "M\u00E5nad", "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
2771
- this.selectMonth(evt);
2772
- } }, this.months.map((month, index$1) => {
2773
- return index.h("option", { value: index$1 }, month);
2774
- })), index.h("digi-form-select", { key: '60bde04287db50b5d887ddcb31839f1fe159b09a', afLabel: "\u00C5r", "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
2775
- this.selectYear(evt);
2776
- } }, this.allSelectableYears().map((year) => (index.h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (index.h("div", { key: '75b68570a03ee6f921a4b36f3fa08d6c7b52c277', class: "digi-calendar__header" }, index.h("div", { key: 'c4a4f28576b93368e1eca7a0fab5f88866b98cf7', class: "digi-calendar__header--month-step" }, index.h("button", { key: '69058f8bd1eff3d2e54a6436c36e5c4b8441422e', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() - 1) +
2777
- ', föregående månad', onClick: () => this.subtractMonth() }, index.h("digi-icon-chevron-left", { key: 'af76697caee12f4f88920cd0fdb869b02f2b9ce5', slot: "icon", "aria-hidden": "true" }), index.h("span", { key: '6a0692868882f344f0a32f9d73c0c0a0ddd2b826', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() - 1))), index.h("div", { key: '9224acc84fc325ff9d15dbfc8a9dd6592f11e9f8', class: "digi-calendar__month" }, this.getFullMonthName(this.focusedDate.getMonth())), index.h("button", { key: '15346caa9359c8eed3c14315b7fd862ed4786bf6', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() + 1) +
2778
- ', nästa månad', onClick: () => this.addMonth() }, index.h("span", { key: '69046c2421fc47d7e840ce79a30ea201846872b1', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() + 1)), index.h("digi-icon-chevron-right", { key: '0c08338d76c0137d4a001cef22d2eff8d8b347ea', slot: "icon", "aria-hidden": "true" }))))), index.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) }, index.h("table", { key: 'e1b09f2fb0c93c46804dfce34ac2e9e367a9d79d', role: "grid", class: "digi-calendar__table" }, index.h("thead", { key: 'bc8915a5cbf3093cab17fb2778f892e1fd099d9a' }, index.h("tr", { key: '1b72c4136c864d3af56b1ab9db8b2963a7b0fbca', role: "row" }, this.afShowWeekNumber && (index.h("th", { key: 'ab422d5c5e5a23b9debdb9225a53430d4f8ec302', role: "columnheader", abbr: text._t.calendar.week, class: "digi-calendar__table-header-week" }, text._t.calendar.week.toLowerCase())), Object.keys(text._t.calendar.weekdays).map((day) => (index.h("th", { role: "columnheader", "aria-label": text._t.calendar.weekdays[day], abbr: text._t.calendar.weekdays[day], class: "digi-calendar__table-header" }, text._t.calendar.weekdays_short[day].toLowerCase()))))), index.h("tbody", { key: 'af2273dae429b8d3d67f5df853d49f6508fe8f41', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
2779
- return (index.h("tr", null, week.map((day, i) => {
2780
- if (this.afShowWeekNumber && i === 0) {
2781
- return (index.h("th", { role: "rowheader", "aria-label": text._t.calendar.week + ' ' + day, class: "digi-calendar__td-week digi-calendar__date--week-number", id: 'digi-calendar__week-' + day }, day));
2782
- }
2783
- else {
2784
- return this.isInAnotherMonth(day) ? (index.h("td", null)) : (index.h("td", { role: "gridcell", class: "digi-calendar__td" }, index.h("button", { key: this.getFullDate(day), type: "button", class: Object.assign(Object.assign({}, this.cssDateModifiers(day)), { 'digi-calendar__date': true }), onClick: () => this.selectDateHandler(day), "aria-current": this.isSameDate(day, new Date()) ? 'date' : null, "aria-label": `
2785
- ${!this.isDateSelectable(day)
2786
- ? text._t.calendar.disabledDate
2787
- : ''} ${this.getDateName(day)}
2788
- `, "aria-disabled": !this.isDateSelectable(day) ? 'true' : null, tabindex: this.setTabIndex(day), "data-date": this.getFullDate(day), "aria-pressed": this.isDateSelectable(day)
2789
- ? this.ariaPressed(day)
2790
- : null }, index.h("span", { "aria-hidden": "true" }, day.getDate()))));
2791
- }
2792
- })));
2793
- })))), index.h("slot", { key: '081dffb3256ce8febd43fc0842bed7bee26cd228', name: "calendar-footer" })));
2794
- }
2795
- static get watchers() { return {
2796
- "afSelectedDate": ["afSelectedDateChangeHandler"],
2797
- "afSelectedDates": ["afSelectedDatesChangeHandler"]
2798
- }; }
2799
- };
2800
- Calendar.style = DigiCalendarStyle0;
2801
-
2802
- 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}";
2803
- const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
2804
-
2805
- const CalendarDatepicker = class {
2806
- constructor(hostRef) {
2807
- index.registerInstance(this, hostRef);
2808
- this.afOnDateChange = index.createEvent(this, "afOnDateChange", 7);
2809
- this.afOnDisplayChange = index.createEvent(this, "afOnDisplayChange", 7);
2810
- this.afOnValidationChange = index.createEvent(this, "afOnValidationChange", 7);
2811
- this.futureYears = 10;
2812
- this.screenReaderUpdateTrigger = false;
2813
- this.showWrongFormatError = false;
2814
- this.showDisabledDateError = false;
2815
- this.showCalendar = false;
2816
- this.userInput = '';
2817
- this.isEditing = false;
2818
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar-datepicker');
2819
- this.afLabel = text._t.calendar.datepicker.label;
2820
- this.afLabelDescription = text._t.calendar.datepicker.description;
2821
- this.afName = undefined;
2822
- this.afOpenCalendarAriaLabel = text._t.calendar.datepicker.openCalendarAriaLabel;
2823
- this.afCloseCalendarAriaLabel = text._t.calendar.datepicker.closeCalendarAriaLabel;
2824
- this.afValidation = typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL;
2825
- this.afValidationText = undefined;
2826
- this.afValidationWrongFormat = text._t.calendar.datepicker.validationWrongFormat;
2827
- this.afValidationDisabledDate = text._t.calendar.datepicker.validationDisabledDate;
2828
- this.afRequired = undefined;
2829
- this.afDisableValidation = undefined;
2830
- this.afRequiredText = undefined;
2831
- this.afSelectedDates = [];
2832
- this.afYearSelect = false;
2833
- this.value = [];
2834
- this.afMinDate = undefined;
2835
- this.afMaxDate = undefined;
2836
- this.afShowWeekNumber = false;
2837
- this.afMultipleDates = false;
2838
- this.afCloseOnSelect = false;
2839
- }
2840
- afDisableValidationChangeHandler(newVal) {
2841
- if (!newVal) {
2842
- const dates = this.userInput !== ''
2843
- ? this.parseInputString(this.userInput)
2844
- : this.afSelectedDates;
2845
- this.validateInputAndShowErrors(dates);
2846
- }
2847
- else {
2848
- this.showWrongFormatError = false;
2849
- this.showDisabledDateError = false;
2850
- }
2851
- }
2852
- afSelectedDatesChangeHandler(newVal) {
2853
- if (!this.afDisableValidation && newVal.length > 0) {
2854
- this.validateInputAndShowErrors(newVal);
2855
- }
2856
- }
2857
- valueChangeHandler(newVal) {
2858
- if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2859
- this.afSelectedDates = [];
2860
- }
2861
- /**
2862
- * 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.
2863
- */
2864
- if (Array.isArray(newVal) &&
2865
- newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2866
- this.afSelectedDates = newVal;
2867
- this.userInput = '';
2868
- }
2869
- }
2870
- afMinDateChangeHandler(newVal) {
2871
- if (!this.afDisableValidation && newVal) {
2872
- this.validateInputAndShowErrors(this.afSelectedDates);
2873
- }
2874
- }
2875
- afMaxDateChangeHandler(newVal) {
2876
- if (!this.afDisableValidation && newVal) {
2877
- this.validateInputAndShowErrors(this.afSelectedDates);
2878
- }
2879
- }
2880
- afMultipleDatesChangeHandler() {
2881
- var _a;
2882
- if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2883
- this.afSelectedDates = this.afSelectedDates.slice(-1);
2884
- this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2885
- }
2886
- }
2887
- clickHandler(e) {
2888
- const target = e.target;
2889
- const selector = `#${this.afId}-datepicker`;
2890
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
2891
- this.showCalendar = false;
2892
- }
2893
- }
2894
- connectedCallback() {
2895
- this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2896
- }
2897
- disconnectedCallback() {
2898
- this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2899
- }
2900
- componentDidLoad() {
2901
- var _a;
2902
- if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2903
- this.setValue(this.value);
2904
- }
2905
- }
2906
- componentDidUpdate() {
2907
- if (this.showCalendar) {
2908
- this.positionCalendar();
2909
- }
2910
- }
2911
- get cssModifiers() {
2912
- return {
2913
- 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2914
- 'digi-calendar-datepicker__show-error': this.hasBuiltInValidationError() || this.hasCustomValidationError(),
2915
- 'digi-calendar-datepicker__show-calendar': this.showCalendar
2916
- };
2917
- }
2918
- keyUpHandler(e) {
2919
- if (e.key === 'Escape' && this.showCalendar) {
2920
- this.showCalendar = false;
2921
- this.focusOnCalendarButton();
2922
- e.stopPropagation();
2923
- }
2924
- }
2925
- focusOnCalendarButton() {
2926
- const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2927
- calendarButton.focus();
2928
- }
2929
- positionCalendar() {
2930
- const btn = this.hostElement.querySelector(`#${this.afId}-button`);
2931
- const datepickerEl = this.hostElement.querySelector(`#${this.afId}-datepicker`);
2932
- if (!btn || !datepickerEl)
2933
- return;
2934
- const btnRect = btn.getBoundingClientRect();
2935
- const containerRect = datepickerEl.getBoundingClientRect();
2936
- datepickerEl.style.setProperty('--digi--datepicker--calendar--popup-top', `${btnRect.bottom - containerRect.top + 5}px`);
2937
- }
2938
- toggleCalendar() {
2939
- if (!this.showCalendar) {
2940
- this.positionCalendar();
2941
- }
2942
- this.showCalendar = !this.showCalendar;
2943
- if (this.showCalendar) {
2944
- this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2945
- }
2946
- }
2947
- parseInputString(value) {
2948
- return value
2949
- .split(/[&,]|och/g)
2950
- .map((text) => this.parseDateString(text.trim()));
2951
- }
2952
- resetValueAndState() {
2953
- this.showWrongFormatError = false;
2954
- this.showDisabledDateError = false;
2955
- this.setValue([]);
2956
- this.afOnDateChange.emit([]);
2957
- this.afSelectedDates = [];
2958
- }
2959
- removeDuplicateDates(dates) {
2960
- const seen = new Set();
2961
- return dates.filter((date) => {
2962
- if (!(date instanceof Date) || isNaN(date.getTime())) {
2963
- return true;
2964
- }
2965
- const key = date.toISOString().split('T')[0]; // yyyy-mm-dd
2966
- if (seen.has(key)) {
2967
- return false;
2968
- }
2969
- seen.add(key);
2970
- return true;
2971
- });
2972
- }
2973
- validateInputAndShowErrors(dates) {
2974
- this.showWrongFormatError = !!dates.find((date) => !index$1.isValid(date));
2975
- this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2976
- this.afOnValidationChange.emit({
2977
- valid: !this.showWrongFormatError && !this.showDisabledDateError
2978
- });
2979
- }
2980
- setValue(value) {
2981
- this.afSelectedDates = value;
2982
- this.value = value;
2983
- }
2984
- parseInput(evt) {
2985
- let newValue = '';
2986
- if (evt.detail && typeof evt.detail.value === 'string') {
2987
- newValue = evt.detail.value;
2988
- }
2989
- else if (evt.target && evt.target.value != null) {
2990
- newValue = evt.target.value;
2991
- }
2992
- this.userInput = newValue;
2993
- if (newValue === '') {
2994
- this.resetValueAndState();
2995
- return;
2996
- }
2997
- let dates = this.parseInputString(newValue);
2998
- if (this.afMultipleDates) {
2999
- const uniqueDates = this.removeDuplicateDates(dates);
3000
- if (uniqueDates.length !== dates.length) {
3001
- dates = this.removeDuplicateDates(uniqueDates);
3002
- this.userInput = this.datesToInputString(dates);
3003
- }
3004
- }
3005
- this.setValue(dates);
3006
- if (!this.afDisableValidation) {
3007
- this.validateInputAndShowErrors(dates);
3008
- }
3009
- this.afOnDateChange.emit(dates);
3010
- }
3011
- parseCalendar(evt) {
3012
- if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
3013
- return;
3014
- if (!this.afDisableValidation) {
3015
- this.showWrongFormatError = false;
3016
- this.showDisabledDateError = false;
3017
- }
3018
- this.userInput = '';
3019
- this.setValue(evt.detail);
3020
- this.afOnDisplayChange.emit(this.inputValue);
3021
- if (this.afCloseOnSelect) {
3022
- this.toggleCalendar();
3023
- this.focusOnCalendarButton();
3024
- }
3025
- this.afOnDateChange.emit(this.afSelectedDates);
3026
- }
3027
- /*
3028
-
3029
- 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.
3030
-
3031
- */
3032
- parseDateString(s) {
3033
- const raw = s.trim().replace(/[./]/g, '-');
3034
- // 1) yyyy-MM-dd
3035
- if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
3036
- const d = parse(raw, 'yyyy-MM-dd', new Date());
3037
- return index$1.isValid(d) ? d : new Date(NaN);
3038
- }
3039
- // 2) yyyymmdd
3040
- if (/^\d{8}$/.test(raw)) {
3041
- const yyyy = raw.slice(0, 4);
3042
- const mm = raw.slice(4, 6);
3043
- const dd = raw.slice(6, 8);
3044
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
3045
- return index$1.isValid(d) ? d : new Date(NaN);
3046
- }
3047
- // 3) yymmdd (map to full year using the previous futureYears logic)
3048
- if (/^\d{6}$/.test(raw)) {
3049
- const yy = raw.slice(0, 2);
3050
- const mm = raw.slice(2, 4);
3051
- const dd = raw.slice(4, 6);
3052
- const yyyy = this.getFullYear(yy);
3053
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
3054
- return index$1.isValid(d) ? d : new Date(NaN);
3055
- }
3056
- // Everything else is invalid (so "1" and "25" will now be "Fel format")
3057
- return new Date(NaN);
3058
- }
3059
- getFullYear(s) {
3060
- if (s.length === 4)
3061
- return s;
3062
- const y = new Date().getFullYear().toString();
3063
- return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
3064
- ? parseInt(y.slice(0, -2)) - 1 + s
3065
- : y.slice(0, -2) + s;
3066
- }
3067
- isDateSelectable(date) {
3068
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
3069
- return false;
3070
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
3071
- return false;
3072
- return true;
3073
- }
3074
- isBefore(a, b) {
3075
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
3076
- }
3077
- isAfter(a, b) {
3078
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
3079
- }
3080
- dateWithoutTime(date) {
3081
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
3082
- }
3083
- hasBuiltInValidationError() {
3084
- return this.showWrongFormatError || this.showDisabledDateError;
3085
- }
3086
- hasCustomValidationError() {
3087
- return (this.afValidation &&
3088
- this.afValidation !== typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL);
3089
- }
3090
- getErrorText() {
3091
- if (this.hasBuiltInValidationError()) {
3092
- return this.showWrongFormatError
3093
- ? this.afValidationWrongFormat
3094
- : this.afValidationDisabledDate;
3095
- }
3096
- if (this.hasCustomValidationError()) {
3097
- return this.afValidationText;
3098
- }
3099
- }
3100
- get inputValue() {
3101
- if (this.userInput !== '') {
3102
- return this.userInput;
3103
- }
3104
- // otherwise format your real selected dates
3105
- const sorted = this.afSelectedDates
3106
- .slice()
3107
- .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
3108
- return this.datesToInputString(sorted);
3109
- }
3110
- datesToInputString(dates) {
3111
- return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
3112
- ? dates
3113
- .map((date) => date.toLocaleDateString('sv-SE'))
3114
- .flatMap((date, index, all) => {
3115
- const isLast = index == all.length - 1;
3116
- const isFirst = index === 0;
3117
- if (isFirst) {
3118
- return date;
3119
- }
3120
- else if (isLast) {
3121
- return [' och ', date];
3122
- }
3123
- else {
3124
- return [', ', date];
3125
- }
3126
- })
3127
- .join('')
3128
- : '';
3129
- }
3130
- get getSelectedDates() {
3131
- if (!this.afDisableValidation && this.hasBuiltInValidationError()) {
3132
- return [];
3133
- }
3134
- return this.afSelectedDates;
3135
- }
3136
- render() {
3137
- return (index.h(index.Host, { key: '7498df7cd58780209c33cadaa0e65d8a935aa253' }, index.h("div", { key: 'edcf1672bb743fae4e802a8f73e30401139d89a1', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, index.h("div", { key: '8df4d331ce09fa8df6b333cd3a56f3dfd1b57af7', class: "digi-calendar-datepicker__input-field" }, index.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
3138
- ? typographyVariation_enum.FormInputValidation.NEUTRAL
3139
- : this.hasBuiltInValidationError()
3140
- ? typographyVariation_enum.FormInputValidation.ERROR
3141
- : this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
3142
- evt.stopImmediatePropagation();
3143
- this.isEditing = true;
3144
- this.parseInput(evt);
3145
- }, onAfOnBlur: (evt) => {
3146
- evt.stopImmediatePropagation();
3147
- this.isEditing = false;
3148
- this.afOnDisplayChange.emit(this.inputValue);
3149
- }, onKeyDown: () => {
3150
- this.isEditing = true;
3151
- } }, index.h("button", { key: '4a1200715cc96e9cf53a0fb07db6038031cf35cd', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
3152
- ? this.afCloseCalendarAriaLabel
3153
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, this.showCalendar ? (index.h("digi-icon-x", { class: "digi-calendar-datepicker__button-icon", slot: "icon" })) : (index.h("digi-icon-calendar-alt", { class: "digi-calendar-datepicker__button-icon", slot: "icon" }))))), index.h("div", { key: '5db4a77bf061632b589721796236f802f6d9b479', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, index.h("p", { key: '830aa34e80ddd1c73bfc8c8592f3903b925703e5', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
3154
- ? `${text._t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
3155
- : ''), index.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) => {
3156
- evt.stopImmediatePropagation();
3157
- this.parseCalendar(evt);
3158
- }, onAfOnFocusOutside: (evt) => {
3159
- if (this.showCalendar) {
3160
- const relatedTarget = evt.detail.relatedTarget;
3161
- if (!relatedTarget)
3162
- return;
3163
- evt.preventDefault();
3164
- const isDateButton = relatedTarget.classList.contains('digi-calendar__date');
3165
- const isToggleButton = relatedTarget.id === `${this.afId}-button`;
3166
- if (isDateButton) {
3167
- this.focusOnCalendarButton();
3168
- }
3169
- else if (isToggleButton) {
3170
- const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
3171
- focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
3172
- }
3173
- }
3174
- } })), this.afCloseOnSelect && !this.afMultipleDates && (index.h("div", { key: 'e05fb1b11b44ad4c4f5c7ad452aa7f7e548f8db5', class: "digi-calendar-datepicker__selected-date-alert", role: "alert" }, this.afSelectedDates.length > 0
3175
- ? `${text._t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
3176
- : '')))));
3177
- }
3178
- get hostElement() { return index.getElement(this); }
3179
- static get watchers() { return {
3180
- "afDisableValidation": ["afDisableValidationChangeHandler"],
3181
- "afSelectedDates": ["afSelectedDatesChangeHandler"],
3182
- "value": ["valueChangeHandler"],
3183
- "afMinDate": ["afMinDateChangeHandler"],
3184
- "afMaxDate": ["afMaxDateChangeHandler"],
3185
- "afMultipleDates": ["afMultipleDatesChangeHandler"]
3186
- }; }
3187
- };
3188
- CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
3189
-
3190
- 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}";
3191
- const DigiFormInputStyle0 = formInputCss;
3192
-
3193
- const FormInput = class {
3194
- constructor(hostRef) {
3195
- index.registerInstance(this, hostRef);
3196
- this.afOnChange = index.createEvent(this, "afOnChange", 7);
3197
- this.afOnBlur = index.createEvent(this, "afOnBlur", 7);
3198
- this.afOnKeyup = index.createEvent(this, "afOnKeyup", 7);
3199
- this.afOnFocus = index.createEvent(this, "afOnFocus", 7);
3200
- this.afOnFocusout = index.createEvent(this, "afOnFocusout", 7);
3201
- this.afOnInput = index.createEvent(this, "afOnInput", 7);
3202
- this.afOnDirty = index.createEvent(this, "afOnDirty", 7);
3203
- this.afOnTouched = index.createEvent(this, "afOnTouched", 7);
3204
- this.afOnReady = index.createEvent(this, "afOnReady", 3);
3205
- this.hasActiveValidationMessage = false;
3206
- this.hasButton = undefined;
3207
- this.dirty = false;
3208
- this.touched = false;
3209
- this.isEditing = false;
3210
- this.afLabel = undefined;
3211
- this.afLabelDescription = undefined;
3212
- this.afType = formInputType_enum.FormInputType.TEXT;
3213
- this.afInputmode = typographyVariation_enum.FormInputMode.DEFAULT;
3214
- this.afButtonVariation = formInputType_enum.FormInputButtonVariation.PRIMARY;
3215
- this.afAutofocus = undefined;
3216
- this.afVariation = typographyVariation_enum.FormInputVariation.MEDIUM;
3217
- this.afName = undefined;
3218
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-input');
3219
- this.afMaxlength = undefined;
3220
- this.afMinlength = undefined;
3221
- this.afRequired = undefined;
3222
- this.afRequiredText = undefined;
3223
- this.afAnnounceIfOptional = false;
3224
- this.afAnnounceIfOptionalText = undefined;
3225
- this.value = undefined;
3226
- this.afValue = undefined;
3227
- this.afValidation = typographyVariation_enum.FormInputValidation.NEUTRAL;
3228
- this.afValidationText = undefined;
3229
- this.afRole = undefined;
3230
- this.afAutocomplete = undefined;
3231
- this.afMin = undefined;
3232
- this.afMax = undefined;
3233
- this.afList = undefined;
3234
- this.afStep = undefined;
3235
- this.afDirname = undefined;
3236
- this.afAriaAutocomplete = undefined;
3237
- this.afAriaActivedescendant = undefined;
3238
- this.afAriaLabelledby = undefined;
3239
- this.afAriaDescribedby = undefined;
3240
- this.afAriaControls = undefined;
3241
- this.afTrimValue = undefined;
3242
- }
3243
- onValueChanged(value) {
3244
- this.afValue = value;
3245
- }
3246
- onAfValueChanged(value) {
3247
- this.value = value;
3248
- }
3249
- afValidationTextWatch() {
3250
- this.setActiveValidationMessage();
3251
- }
3252
- /**
3253
- * Hämtar en referens till inputelementet. Bra för att t.ex. sätta fokus programmatiskt.
3254
- * @en Returns a reference to the input element. Handy for setting focus programmatically.
3255
- */
3256
- async afMGetFormControlElement() {
3257
- return this._input;
3258
- }
3259
- componentWillLoad() {
3260
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3261
- this.setActiveValidationMessage();
3262
- this.setHasButton();
3263
- }
3264
- componentWillUpdate() {
3265
- this.setHasButton();
3266
- }
3267
- componentDidLoad() {
3268
- this.afOnReady.emit();
3269
- }
3270
- setActiveValidationMessage() {
3271
- this.hasActiveValidationMessage = !!this.afValidationText;
3272
- }
3273
- get cssModifiers() {
3274
- return {
3275
- 'digi-form-input--small': this.afVariation === typographyVariation_enum.FormInputVariation.SMALL,
3276
- 'digi-form-input--medium': this.afVariation === typographyVariation_enum.FormInputVariation.MEDIUM,
3277
- 'digi-form-input--large': this.afVariation === typographyVariation_enum.FormInputVariation.LARGE,
3278
- 'digi-form-input--neutral': this.afValidation === typographyVariation_enum.FormInputValidation.NEUTRAL,
3279
- 'digi-form-input--success': this.afValidation === typographyVariation_enum.FormInputValidation.SUCCESS,
3280
- 'digi-form-input--error': !this.isEditing && this.afValidation === typographyVariation_enum.FormInputValidation.ERROR,
3281
- 'digi-form-input--warning': !this.isEditing && this.afValidation === typographyVariation_enum.FormInputValidation.WARNING,
3282
- [`digi-form-input--button-variation-${this.afButtonVariation}`]: !!this.afButtonVariation,
3283
- [`digi-form-input--has-button-${this.hasButton}`]: true,
3284
- 'digi-form-input--empty': !this.afValue &&
3285
- (!this.afValidation ||
3286
- this.afValidation === typographyVariation_enum.FormInputValidation.NEUTRAL)
3287
- };
3288
- }
3289
- blurHandler(e) {
3290
- const trimableTypes = [
3291
- formInputType_enum.FormInputType.TEXT,
3292
- formInputType_enum.FormInputType.EMAIL,
3293
- formInputType_enum.FormInputType.SEARCH,
3294
- formInputType_enum.FormInputType.TEL,
3295
- formInputType_enum.FormInputType.URL
3296
- ];
3297
- const shouldTrim = this.afTrimValue && trimableTypes.includes(this.afType);
3298
- if (shouldTrim && typeof e.target.value === 'string') {
3299
- const trimmedValue = e.target.value.trim();
3300
- if (trimmedValue !== e.target.value) {
3301
- this.afValue = this.value = trimmedValue;
3302
- if (this._input) {
3303
- this._input.value = trimmedValue;
3304
- }
3305
- // Emittar afOnInput så Angulars value accessor får det trimmade värdet
3306
- this.afOnInput.emit(e);
3307
- }
3308
- }
3309
- if (!this.touched) {
3310
- this.afOnTouched.emit(e);
3311
- this.touched = true;
3312
- }
3313
- this.isEditing = false;
3314
- this.afOnBlur.emit(e);
3315
- }
3316
- changeHandler(e) {
3317
- this.setActiveValidationMessage();
3318
- this.afOnChange.emit(e);
3319
- }
3320
- focusHandler(e) {
3321
- this.afOnFocus.emit(e);
3322
- }
3323
- focusoutHandler(e) {
3324
- this.afOnFocusout.emit(e);
3325
- }
3326
- keyupHandler(e) {
3327
- this.afOnKeyup.emit(e);
3328
- }
3329
- inputHandler(e) {
3330
- this.afValue = this.value =
3331
- this.afType === formInputType_enum.FormInputType.NUMBER
3332
- ? parseFloat(e.target.value)
3333
- : e.target.value;
3334
- if (!this.dirty) {
3335
- this.afOnDirty.emit(e);
3336
- this.dirty = true;
3337
- }
3338
- this.setActiveValidationMessage();
3339
- this.afOnInput.emit(e);
3340
- }
3341
- setHasButton() {
3342
- this.hasButton = !!this.hostElement.querySelector('[slot="button"]');
3343
- }
3344
- render() {
3345
- return (index.h("div", { key: 'def034db4be8dcec58d6ee59c6ad9f5638cbc476', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, index.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 }), index.h("div", { key: 'a986a18060e89a646e68e2e45bbc73d189bd5573', class: "digi-form-input__input-wrapper" }, index.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 === typographyVariation_enum.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 == typographyVariation_enum.FormInputMode.DEFAULT
3346
- ? {}
3347
- : { inputmode: this.afInputmode }))), index.h("slot", { key: '8a16fed00c0d4b8be2bb3f6e42cb11a920439e8c', name: "button" })), index.h("div", { key: '02415ad4300e58dfc8693fe4f16738cf822936a7', class: "digi-form-input__footer" }, index.h("div", { key: '8c3ffd5dfefa5303897d832b204d6b14a0a11f30', class: "digi-form-input__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, !this.isEditing && this.hasActiveValidationMessage &&
3348
- this.afValidation != typographyVariation_enum.FormInputValidation.NEUTRAL && (index.h("digi-form-validation-message", { key: '931d4f21777a7013164adeb51e3008d9aeebce6a', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
3349
- }
3350
- get hostElement() { return index.getElement(this); }
3351
- static get watchers() { return {
3352
- "value": ["onValueChanged"],
3353
- "afValue": ["onAfValueChanged"],
3354
- "afValidationText": ["afValidationTextWatch"]
3355
- }; }
3356
- };
3357
- FormInput.style = DigiFormInputStyle0;
3358
-
3359
- 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)}";
3360
- const DigiFormLabelStyle0 = formLabelCss;
3361
-
3362
- const FormLabel = class {
3363
- constructor(hostRef) {
3364
- index.registerInstance(this, hostRef);
3365
- this.labelText = undefined;
3366
- this.hasActionSlot = undefined;
3367
- this.afLabel = undefined;
3368
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-label');
3369
- this.afFor = undefined;
3370
- this.afDescription = undefined;
3371
- this.afRequired = undefined;
3372
- this.afAnnounceIfOptional = false;
3373
- this.afRequiredText = text._t.required.toLowerCase();
3374
- this.afAnnounceIfOptionalText = text._t.optional.toLowerCase();
3375
- }
3376
- componentWillLoad() {
3377
- this.setLabelText();
3378
- this.validateFor();
3379
- this.handleSlotVisibility();
3380
- }
3381
- validateFor() {
3382
- if (this.afFor == null) {
3383
- logger_util.logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
3384
- }
3385
- }
3386
- setLabelText() {
3387
- this.labelText = `${this.afLabel} ${this.requiredText}`;
3388
- if (!this.afLabel) {
3389
- logger_util.logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
3390
- }
3391
- }
3392
- handleSlotVisibility() {
3393
- this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
3394
- }
3395
- get requiredText() {
3396
- if (this.afRequired && !this.afAnnounceIfOptional) {
3397
- return this.afRequiredText ? ` (${this.afRequiredText})` : '';
3398
- }
3399
- else if (!this.afRequired && this.afAnnounceIfOptional) {
3400
- return this.afAnnounceIfOptionalText
3401
- ? ` (${this.afAnnounceIfOptionalText})`
3402
- : '';
3403
- }
3404
- else {
3405
- return '';
3406
- }
3407
- }
3408
- render() {
3409
- return (index.h("div", { key: '01e206691f77e812de51faf2b01497335fe6f649', class: "digi-form-label" }, index.h("div", { key: 'a2a451ab29e0b5e94a4d4d3ed6d05ed326bdc713', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (index.h("label", { key: '25840b00bd54a23867afafcc4b49f1abdadfb207', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, index.h("span", { key: '7ef08e051d2323d2704aebf0527e9127dd2a413b', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (index.h("span", { key: 'b03334e5a943a080cf5077847aee90bceadf8fe8', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (index.h("div", { key: '37135ca88e673eb213d410055d3574c6f0e5e43d', class: "digi-form-label__actions" }, index.h("slot", { key: 'c7b62819bb01f867511d19ce776e4780b2f94a97', name: "actions" }))))));
3410
- }
3411
- get hostElement() { return index.getElement(this); }
3412
- static get watchers() { return {
3413
- "afFor": ["validateFor"],
3414
- "afLabel": ["setLabelText"],
3415
- "afRequired": ["setLabelText"],
3416
- "afAnnounceIfOptional": ["setLabelText"]
3417
- }; }
3418
- };
3419
- FormLabel.style = DigiFormLabelStyle0;
3420
-
3421
- 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}";
3422
- const DigiFormSelectStyle0 = formSelectCss;
3423
-
3424
- const FormSelect = class {
3425
- constructor(hostRef) {
3426
- index.registerInstance(this, hostRef);
3427
- this.afOnChange = index.createEvent(this, "afOnChange", 7);
3428
- this.afOnSelect = index.createEvent(this, "afOnSelect", 7);
3429
- this.afOnFocus = index.createEvent(this, "afOnFocus", 7);
3430
- this.afOnFocusout = index.createEvent(this, "afOnFocusout", 7);
3431
- this.afOnBlur = index.createEvent(this, "afOnBlur", 7);
3432
- this.afOnDirty = index.createEvent(this, "afOnDirty", 7);
3433
- this.afOnReady = index.createEvent(this, "afOnReady", 3);
3434
- this.optionItems = [];
3435
- this.dirty = false;
3436
- this.touched = false;
3437
- this.hasPlaceholder = false;
3438
- this.afLabel = undefined;
3439
- this.afAriaLabel = undefined;
3440
- this.afRequired = undefined;
3441
- this.afRequiredText = undefined;
3442
- this.afPlaceholder = undefined;
3443
- this.afAnnounceIfOptional = false;
3444
- this.afAnnounceIfOptionalText = undefined;
3445
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-select');
3446
- this.afName = undefined;
3447
- this.afDescription = undefined;
3448
- this.value = undefined;
3449
- this.afValue = undefined;
3450
- this.afDisableValidation = undefined;
3451
- this.afVariation = typographyVariation_enum.FormSelectVariation.MEDIUM;
3452
- this.afValidation = typographyVariation_enum.FormSelectValidation.NEUTRAL;
3453
- this.afValidationText = undefined;
3454
- this.afStartSelected = undefined;
3455
- this.afAutofocus = undefined;
3456
- }
3457
- onValueChanged(value) {
3458
- this.afValue = value;
3459
- }
3460
- onAfValueChanged(value) {
3461
- this.value = value;
3462
- }
3463
- getOptions() {
3464
- this.checkIfPlaceholder();
3465
- const options = this._observer.children;
3466
- if (!options || options.length <= 0) {
3467
- logger_util.logger.warn(`The slot contains no option elements.`, this.hostElement);
3468
- return;
3469
- }
3470
- this.optionItems = [...Array.from(options)]
3471
- .filter((el) => el.tagName.toLowerCase() === 'option')
3472
- .map((el) => {
3473
- return {
3474
- value: el['value'],
3475
- text: el['text']
3476
- };
3477
- });
3478
- }
3479
- checkIfPlaceholder() {
3480
- this.hasPlaceholder = !!this.afPlaceholder;
3481
- }
3482
- componentWillLoad() {
3483
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3484
- }
3485
- componentDidLoad() {
3486
- this.getOptions();
3487
- this.afStartSelected &&
3488
- (this.afValue = this.optionItems[this.afStartSelected].value);
3489
- this.afOnReady.emit();
3490
- }
3491
- /**
3492
- * Returnerar en referens till formulärkontrollelementet.
3493
- * @en Returns a reference to the form control element.
3494
- */
3495
- async afMGetFormControlElement() {
3496
- return this._select;
3497
- }
3498
- get cssModifiers() {
3499
- return {
3500
- 'digi-form-select--small': this.afVariation === typographyVariation_enum.FormSelectVariation.SMALL,
3501
- 'digi-form-select--medium': this.afVariation === typographyVariation_enum.FormSelectVariation.MEDIUM,
3502
- 'digi-form-select--large': this.afVariation === typographyVariation_enum.FormSelectVariation.LARGE,
3503
- 'digi-form-select--neutral': this.afValidation === typographyVariation_enum.FormSelectValidation.NEUTRAL,
3504
- 'digi-form-select--success': this.afValidation === typographyVariation_enum.FormSelectValidation.SUCCESS,
3505
- 'digi-form-select--warning': this.afValidation === typographyVariation_enum.FormSelectValidation.WARNING,
3506
- 'digi-form-select--error': this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR,
3507
- 'digi-form-select--empty': !this.afValue &&
3508
- (!this.afValidation ||
3509
- this.afValidation === typographyVariation_enum.FormSelectValidation.NEUTRAL)
3510
- };
3511
- }
3512
- changeHandler(e) {
3513
- if (!this.dirty) {
3514
- this.afOnDirty.emit(e);
3515
- this.dirty = true;
3516
- }
3517
- this.value = this.afValue = e.target.value;
3518
- this.afOnChange.emit(e);
3519
- }
3520
- selectHandler(e) {
3521
- this.value = this.afValue = e.target.value;
3522
- this.afOnSelect.emit(e);
3523
- }
3524
- focusHandler(e) {
3525
- this.afOnFocus.emit(e);
3526
- }
3527
- focusoutHandler(e) {
3528
- this.afOnFocusout.emit(e);
3529
- }
3530
- blurHandler(e) {
3531
- this.afOnBlur.emit(e);
3532
- }
3533
- getSelectedItem(option) {
3534
- return this.afValue == option.value;
3535
- }
3536
- showValidation() {
3537
- return !this.afDisableValidation &&
3538
- this.afValidation !== typographyVariation_enum.FormSelectValidation.NEUTRAL &&
3539
- this.afValidationText
3540
- ? true
3541
- : false;
3542
- }
3543
- render() {
3544
- return (index.h("div", { key: '383eae4d2e740bd424d76a095abe09e98602c0a0', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, index.h("div", { key: '9cd23532e83bbd843f6c6480562cbffcbe1780a2', class: "digi-form-select__label-group" }, index.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 })), index.h("div", { key: '7c8a35e191cde25892e107415b453a6787a9ab23', class: "digi-form-select__select-wrapper" }, index.h("select", { key: 'ad62a59613e26f44eaaec5725174e0256028d886', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR
3545
- ? 'true'
3546
- : '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 && (index.h("option", { key: '83b51b96cc3f59fa33ca7233a887e19466aadd1a', class: {
3547
- 'digi-form-select__select-option': true,
3548
- 'digi-form-select__select-option--initial-value': true
3549
- }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index$1) => {
3550
- return (index.h("option", { key: index$1, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
3551
- })), index.h("digi-icon-input-select-marker", { key: 'f2556cbc4c38b65ce652511b03acb59f5082c577', class: "digi-form-select__icon", slot: "icon" })), index.h("digi-util-mutation-observer", { key: '619dfa80c868526ed3ff28d120f3798743f9c011', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
3552
- e.stopImmediatePropagation();
3553
- this.getOptions();
3554
- } }, index.h("slot", { key: 'f29d471016704b271008e81fa06320ada1ecfb4f' })), index.h("div", { key: '4393c0e4fcf3a36bcd034f60ec6bbe49eedac057', class: "digi-form-select__footer" }, index.h("div", { key: '579755d6a2a9c3c5a9573beae36454cdb3d2bd3f', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (index.h("digi-form-validation-message", { key: '53f717a8fdce19710c9e1761476e522f7151e24a', "af-variation": this.afValidation }, this.afValidationText))))));
3555
- }
3556
- get hostElement() { return index.getElement(this); }
3557
- static get watchers() { return {
3558
- "value": ["onValueChanged"],
3559
- "afValue": ["onAfValueChanged"]
3560
- }; }
3561
- };
3562
- FormSelect.style = DigiFormSelectStyle0;
3563
-
3564
- 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}";
3565
- const DigiFormTextareaStyle0 = formTextareaCss;
3566
-
3567
- const FormTextarea = class {
3568
- constructor(hostRef) {
3569
- index.registerInstance(this, hostRef);
3570
- this.afOnChange = index.createEvent(this, "afOnChange", 7);
3571
- this.afOnBlur = index.createEvent(this, "afOnBlur", 7);
3572
- this.afOnKeyup = index.createEvent(this, "afOnKeyup", 7);
3573
- this.afOnFocus = index.createEvent(this, "afOnFocus", 7);
3574
- this.afOnFocusout = index.createEvent(this, "afOnFocusout", 7);
3575
- this.afOnInput = index.createEvent(this, "afOnInput", 7);
3576
- this.afOnDirty = index.createEvent(this, "afOnDirty", 7);
3577
- this.afOnTouched = index.createEvent(this, "afOnTouched", 7);
3578
- this.afOnReady = index.createEvent(this, "afOnReady", 3);
3579
- this.hasActiveValidationMessage = false;
3580
- this.dirty = false;
3581
- this.touched = false;
3582
- this.isEditing = false;
3583
- this.afLabel = undefined;
3584
- this.afLabelDescription = undefined;
3585
- this.afVariation = typographyVariation_enum.FormTextareaVariation.MEDIUM;
3586
- this.afName = undefined;
3587
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-textarea');
3588
- this.afMaxlength = undefined;
3589
- this.afMinlength = undefined;
3590
- this.afRequired = undefined;
3591
- this.afRequiredText = undefined;
3592
- this.afAnnounceIfOptional = false;
3593
- this.afAnnounceIfOptionalText = undefined;
3594
- this.value = undefined;
3595
- this.afValue = undefined;
3596
- this.afValidation = typographyVariation_enum.FormTextareaValidation.NEUTRAL;
3597
- this.afValidationText = undefined;
3598
- this.afRole = undefined;
3599
- this.afAriaActivedescendant = undefined;
3600
- this.afAriaLabelledby = undefined;
3601
- this.afAriaDescribedby = undefined;
3602
- this.afAutofocus = undefined;
3603
- }
3604
- onValueChanged(value) {
3605
- this.afValue = value;
3606
- }
3607
- onAfValueChanged(value) {
3608
- this.value = value;
3609
- }
3610
- afValidationTextWatch() {
3611
- this.setActiveValidationMessage();
3612
- }
3613
- /**
3614
- * Hämtar en referens till textareaelementet. Bra för att t.ex. sätta fokus programmatiskt.
3615
- * @en Returns a reference to the textarea element. Handy for setting focus programmatically.
3616
- */
3617
- async afMGetFormControlElement() {
3618
- return this._textarea;
3619
- }
3620
- componentWillLoad() {
3621
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3622
- this.setActiveValidationMessage();
3623
- }
3624
- componentDidLoad() {
3625
- this.afOnReady.emit();
3626
- }
3627
- setActiveValidationMessage() {
3628
- this.hasActiveValidationMessage = !!this.afValidationText;
3629
- }
3630
- get cssModifiers() {
3631
- return {
3632
- 'digi-form-textarea--small': this.afVariation === typographyVariation_enum.FormTextareaVariation.SMALL,
3633
- 'digi-form-textarea--medium': this.afVariation === typographyVariation_enum.FormTextareaVariation.MEDIUM,
3634
- 'digi-form-textarea--large': this.afVariation === typographyVariation_enum.FormTextareaVariation.LARGE,
3635
- 'digi-form-textarea--auto': this.afVariation === typographyVariation_enum.FormTextareaVariation.AUTO,
3636
- 'digi-form-textarea--neutral': this.afValidation === typographyVariation_enum.FormTextareaValidation.NEUTRAL,
3637
- 'digi-form-textarea--success': this.afValidation === typographyVariation_enum.FormTextareaValidation.SUCCESS,
3638
- 'digi-form-textarea--error': !this.isEditing && this.afValidation === typographyVariation_enum.FormTextareaValidation.ERROR,
3639
- 'digi-form-textarea--warning': !this.isEditing && this.afValidation === typographyVariation_enum.FormTextareaValidation.WARNING,
3640
- 'digi-form-textarea--empty': !this.afValue &&
3641
- (!this.afValidation ||
3642
- this.afValidation === typographyVariation_enum.FormTextareaValidation.NEUTRAL)
3643
- };
3644
- }
3645
- blurHandler(e) {
3646
- this.isEditing = false;
3647
- if (!this.touched) {
3648
- this.afOnTouched.emit(e);
3649
- this.touched = true;
3650
- }
3651
- this.setActiveValidationMessage();
3652
- this.afOnBlur.emit(e);
3653
- }
3654
- changeHandler(e) {
3655
- this.afOnChange.emit(e);
3656
- }
3657
- focusHandler(e) {
3658
- this.afOnFocus.emit(e);
3659
- }
3660
- focusoutHandler(e) {
3661
- this.afOnFocusout.emit(e);
3662
- }
3663
- keyupHandler(e) {
3664
- this.afOnKeyup.emit(e);
3665
- }
3666
- inputHandler(e) {
3667
- this.afValue = this.value = e.target.value;
3668
- if (!this.dirty) {
3669
- this.afOnDirty.emit(e);
3670
- this.dirty = true;
3671
- }
3672
- this.setActiveValidationMessage();
3673
- this.afOnInput.emit(e);
3674
- }
3675
- render() {
3676
- return (index.h("div", { key: 'ca77f5d62dc794ff17223c0c914ef00d070d4845', class: Object.assign({ 'digi-form-textarea': true }, this.cssModifiers) }, index.h("div", { key: 'd155dcb5c0cb754cd76c557e9bc382836e3ef76a', class: "digi-form-textarea__label" }, index.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 })), index.h("div", { key: 'dcddec6e31b9e97b9ba1d4109adf112af0a07b29', class: "digi-form-textarea__content" }, index.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 === typographyVariation_enum.FormTextareaValidation.ERROR
3677
- ? 'true'
3678
- : '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 })), index.h("div", { key: '8954b122a04e741550553e5b5dc29145346501b3', class: "digi-form-textarea__footer" }, index.h("div", { key: '9540eee3c9c2aa70e0139b4b84f035494e9aee21', class: "digi-form-textarea__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, !this.isEditing && this.hasActiveValidationMessage &&
3679
- this.afValidation != typographyVariation_enum.FormTextareaValidation.NEUTRAL && (index.h("digi-form-validation-message", { key: '350b51a7cd29627a53f2267a1726ad4917657cef', class: "digi-form-textarea__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
3680
- }
3681
- get hostElement() { return index.getElement(this); }
3682
- static get watchers() { return {
3683
- "value": ["onValueChanged"],
3684
- "afValue": ["onAfValueChanged"],
3685
- "afValidationText": ["afValidationTextWatch"]
3686
- }; }
3687
- };
3688
- FormTextarea.style = DigiFormTextareaStyle0;
3689
-
3690
- 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)}";
3691
- const DigiFormValidationMessageStyle0 = formValidationMessageCss;
3692
-
3693
- const FormValidationMessage = class {
3694
- constructor(hostRef) {
3695
- index.registerInstance(this, hostRef);
3696
- this.afVariation = formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS;
3697
- }
3698
- get cssModifiers() {
3699
- return {
3700
- 'digi-form-validation-message--success': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS,
3701
- 'digi-form-validation-message--error': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.ERROR,
3702
- 'digi-form-validation-message--warning': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.WARNING
3703
- };
3704
- }
3705
- get icon() {
3706
- switch (this.afVariation) {
3707
- case formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS:
3708
- return index.h("digi-icon-validation-success", null);
3709
- case formValidationMessageVariation_enum.FormValidationMessageVariation.ERROR:
3710
- return index.h("digi-icon-validation-error", null);
3711
- case formValidationMessageVariation_enum.FormValidationMessageVariation.WARNING:
3712
- return index.h("digi-icon-validation-warning", { class: "warning" });
3713
- }
3714
- }
3715
- render() {
3716
- return (index.h("div", { key: '1d765a8f3ab31e6140d0cf1b38c16df16125ab86', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, index.h("div", { key: 'd72919b3424c3c93cf4027b45a97141d4d25c12a', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), index.h("span", { key: '94f63d1b27caff2d4901a0c865b05214569e8423', class: "digi-form-validation-message__text" }, index.h("slot", { key: 'a1f927cc629d752f7885cb6dc063ebef24feed78' }))));
3717
- }
3718
- get hostElement() { return index.getElement(this); }
3719
- };
3720
- FormValidationMessage.style = DigiFormValidationMessageStyle0;
3721
-
3722
- 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)}";
3723
- const DigiIconCalendarAltStyle0 = iconCalendarAltCss;
3724
-
3725
- const IconCalendarAlt = class {
3726
- constructor(hostRef) {
3727
- index.registerInstance(this, hostRef);
3728
- this.afTitle = undefined;
3729
- this.afDesc = undefined;
3730
- this.afSvgAriaHidden = true;
3731
- this.afSvgAriaLabelledby = undefined;
3732
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3733
- }
3734
- render() {
3735
- return (index.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
3736
- ? this.afSvgAriaLabelledby
3737
- : this.afTitle
3738
- ? this.titleId
3739
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index.h("title", { key: '5b427f5678e47dbbb79f021a3dbb5c5bdebf3210', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'cfd51c6007132d9d7999883ec2f30749d22e6f9a' }, this.afDesc), index.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" })));
3740
- }
3741
- };
3742
- IconCalendarAlt.style = DigiIconCalendarAltStyle0;
3743
-
3744
- 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)}";
3745
- const DigiIconChevronLeftStyle0 = iconChevronLeftCss;
3746
-
3747
- const IconChevronLeft = class {
3748
- constructor(hostRef) {
3749
- index.registerInstance(this, hostRef);
3750
- this.afTitle = undefined;
3751
- this.afDesc = undefined;
3752
- this.afSvgAriaHidden = true;
3753
- this.afSvgAriaLabelledby = undefined;
3754
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3755
- }
3756
- render() {
3757
- return (index.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
3758
- ? this.afSvgAriaLabelledby
3759
- : this.afTitle
3760
- ? this.titleId
3761
- : undefined }, this.afTitle && index.h("title", { key: '6a2458cc2ead4e8681a9ecb558b5a86750089e00', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'b273c58c4707a98787d86900b8f1fcc99b1bd5b8' }, this.afDesc), index.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" })));
3762
- }
3763
- };
3764
- IconChevronLeft.style = DigiIconChevronLeftStyle0;
3765
-
3766
- 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)}";
3767
- const DigiIconChevronRightStyle0 = iconChevronRightCss;
3768
-
3769
- const IconChevronRight = class {
3770
- constructor(hostRef) {
3771
- index.registerInstance(this, hostRef);
3772
- this.afTitle = undefined;
3773
- this.afDesc = undefined;
3774
- this.afSvgAriaHidden = true;
3775
- this.afSvgAriaLabelledby = undefined;
3776
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3777
- }
3778
- render() {
3779
- return (index.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
3780
- ? this.afSvgAriaLabelledby
3781
- : this.afTitle
3782
- ? this.titleId
3783
- : undefined }, this.afTitle && index.h("title", { key: '5a650f83b25b5bf1fe63516a9c09017528cbfeaa', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '8576be21c6efe68c5b51c5b869024eb5f80732ab' }, this.afDesc), index.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" })));
3784
- }
3785
- };
3786
- IconChevronRight.style = DigiIconChevronRightStyle0;
3787
-
3788
- 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)}";
3789
- const DigiIconInputSelectMarkerStyle0 = iconInputSelectMarkerCss;
3790
-
3791
- const IconInputSelectMarker = class {
3792
- constructor(hostRef) {
3793
- index.registerInstance(this, hostRef);
3794
- this.afTitle = undefined;
3795
- this.afDesc = undefined;
3796
- this.afSvgAriaHidden = true;
3797
- this.afSvgAriaLabelledby = undefined;
3798
- this.titleId = randomIdGenerator_util.randomIdGenerator('icon-input-select-marker');
3799
- }
3800
- render() {
3801
- return (index.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
3802
- ? this.afSvgAriaLabelledby
3803
- : this.afTitle
3804
- ? this.titleId
3805
- : undefined }, this.afTitle && index.h("title", { key: 'fc483316cd294aa2ac7cd5aefe543ad96ed25193', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '0114d9cb9b14b52311bc44806e02b13ea6a4cd09' }, this.afDesc), index.h("path", { key: '31d5c77559631ef0d07fc324f981af0368a5e25a', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3806
- }
3807
- };
3808
- IconInputSelectMarker.style = DigiIconInputSelectMarkerStyle0;
3809
-
3810
- 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)}";
3811
- const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
3812
-
3813
- const IconValidationError = class {
3814
- constructor(hostRef) {
3815
- index.registerInstance(this, hostRef);
3816
- this.afTitle = undefined;
3817
- this.afDesc = undefined;
3818
- this.afSvgAriaHidden = true;
3819
- this.afSvgAriaLabelledby = undefined;
3820
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3821
- }
3822
- render() {
3823
- return (index.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
3824
- ? this.afSvgAriaLabelledby
3825
- : this.afTitle
3826
- ? this.titleId
3827
- : undefined }, this.afTitle && index.h("title", { key: '699395c6cd6c8819c8d8b37418edd7b7f13c50b3', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'ee5fe058a625f08847b75cce380317966ff460f7' }, this.afDesc), index.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" })));
3828
- }
3829
- };
3830
- IconValidationError.style = DigiIconValidationErrorStyle0;
3831
-
3832
- 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)}";
3833
- const DigiIconValidationSuccessStyle0 = iconValidationSuccessCss;
3834
-
3835
- const IconCheckCircle = class {
3836
- constructor(hostRef) {
3837
- index.registerInstance(this, hostRef);
3838
- this.afTitle = undefined;
3839
- this.afDesc = undefined;
3840
- this.afSvgAriaHidden = true;
3841
- this.afSvgAriaLabelledby = undefined;
3842
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3843
- }
3844
- render() {
3845
- return (index.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
3846
- ? this.afSvgAriaLabelledby
3847
- : this.afTitle
3848
- ? this.titleId
3849
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index.h("title", { key: '106c694331991a41fba7b9e0bc868687a866ee76', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '200dd89c03ccded526d1882dc883c4b0ba11318b' }, this.afDesc), index.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" })));
3850
- }
3851
- };
3852
- IconCheckCircle.style = DigiIconValidationSuccessStyle0;
3853
-
3854
- 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)}";
3855
- const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
3856
-
3857
- const IconValidationWarning = class {
3858
- constructor(hostRef) {
3859
- index.registerInstance(this, hostRef);
3860
- this.afTitle = undefined;
3861
- this.afDesc = undefined;
3862
- this.afSvgAriaHidden = true;
3863
- this.afSvgAriaLabelledby = undefined;
3864
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3865
- }
3866
- render() {
3867
- return (index.h("div", { key: '2946355e5e95978f5719d070333a890c0bfb5d55' }, index.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
3868
- ? this.afSvgAriaLabelledby
3869
- : this.afTitle
3870
- ? this.titleId
3871
- : undefined }, this.afTitle && index.h("title", { key: '08370e29e04c815421408b98c2cb2a4a41d06b33', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'bf5fd56abbfb0eb182e0d2b9fda93226ad09fa26' }, this.afDesc), index.h("g", { key: 'bb1be9aecdb4c76395e408a6dcb0cbb6aa82b41f', fill: "none", "fill-rule": "evenodd" }, index.h("circle", { key: '52b3bca3201cc1c1e2f42a8ae7c6d361679cdbe5', cx: "9", cy: "9", r: "6.75", fill: "#333" }), index.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" })))));
3872
- }
3873
- };
3874
- IconValidationWarning.style = DigiIconValidationWarningStyle0;
3875
-
3876
- 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)}";
3877
- const DigiIconXStyle0 = iconXCss;
3878
-
3879
- const IconX = class {
3880
- constructor(hostRef) {
3881
- index.registerInstance(this, hostRef);
3882
- this.afTitle = undefined;
3883
- this.afDesc = undefined;
3884
- this.afSvgAriaHidden = true;
3885
- this.afSvgAriaLabelledby = undefined;
3886
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3887
- }
3888
- render() {
3889
- return (index.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
3890
- ? this.afSvgAriaLabelledby
3891
- : this.afTitle
3892
- ? this.titleId
3893
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index.h("title", { key: 'b2b80f2c79ffd7a41944f91754ff56666fd646c6', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '2a431cdb4add28c27f3c232ad391460d04320385' }, this.afDesc), index.h("g", { key: '15088afc072d9a3233f363a0601f38f0d5130b19', class: "digi-icon-x__shape", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "square" }, index.h("path", { key: '9343259e78002f12582799c35094b3ccff440ad2', d: "M2 2l7.986 7.986M9.986 2L2 9.986" }))));
3894
- }
3895
- };
3896
- IconX.style = DigiIconXStyle0;
3897
-
3898
- 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)}";
3899
- const DigiTypographyStyle0 = typographyCss;
3900
-
3901
- const Typography = class {
3902
- constructor(hostRef) {
3903
- index.registerInstance(this, hostRef);
3904
- this.hideVisitedColor = undefined;
3905
- }
3906
- get cssModifiers() {
3907
- return {
3908
- 'digi-typography--hide-visited': this.hideVisitedColor
3909
- };
3910
- }
3911
- render() {
3912
- return (index.h("div", { key: '0a53e415d6ac45f689b60eed07395369e17f4d70', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, index.h("slot", { key: '42d3601d815402494c54be1029bb2aa1f81750ee' })));
3913
- }
3914
- };
3915
- Typography.style = DigiTypographyStyle0;
3916
-
3917
- const UtilKeydownHandler = class {
3918
- constructor(hostRef) {
3919
- index.registerInstance(this, hostRef);
3920
- this.afOnEsc = index.createEvent(this, "afOnEsc", 7);
3921
- this.afOnEnter = index.createEvent(this, "afOnEnter", 7);
3922
- this.afOnTab = index.createEvent(this, "afOnTab", 7);
3923
- this.afOnSpace = index.createEvent(this, "afOnSpace", 7);
3924
- this.afOnShiftTab = index.createEvent(this, "afOnShiftTab", 7);
3925
- this.afOnUp = index.createEvent(this, "afOnUp", 7);
3926
- this.afOnDown = index.createEvent(this, "afOnDown", 7);
3927
- this.afOnLeft = index.createEvent(this, "afOnLeft", 7);
3928
- this.afOnRight = index.createEvent(this, "afOnRight", 7);
3929
- this.afOnHome = index.createEvent(this, "afOnHome", 7);
3930
- this.afOnEnd = index.createEvent(this, "afOnEnd", 7);
3931
- this.afOnKeyDown = index.createEvent(this, "afOnKeyDown", 7);
3932
- }
3933
- keydownHandler(e) {
3934
- const key = keyboardHandler_util.keyboardHandler(e);
3935
- switch (key) {
3936
- case keyboardHandler_util.KEY_CODE.SHIFT_TAB:
3937
- this.afOnShiftTab.emit(e);
3938
- break;
3939
- case keyboardHandler_util.KEY_CODE.DOWN_ARROW:
3940
- this.afOnDown.emit(e);
3941
- this.afOnKeyDown.emit(e);
3942
- break;
3943
- case keyboardHandler_util.KEY_CODE.UP_ARROW:
3944
- this.afOnUp.emit(e);
3945
- this.afOnKeyDown.emit(e);
3946
- break;
3947
- case keyboardHandler_util.KEY_CODE.LEFT_ARROW:
3948
- this.afOnLeft.emit(e);
3949
- this.afOnKeyDown.emit(e);
3950
- break;
3951
- case keyboardHandler_util.KEY_CODE.RIGHT_ARROW:
3952
- this.afOnRight.emit(e);
3953
- this.afOnKeyDown.emit(e);
3954
- break;
3955
- case keyboardHandler_util.KEY_CODE.ENTER:
3956
- this.afOnEnter.emit(e);
3957
- this.afOnKeyDown.emit(e);
3958
- break;
3959
- case keyboardHandler_util.KEY_CODE.ESCAPE:
3960
- this.afOnEsc.emit(e);
3961
- this.afOnKeyDown.emit(e);
3962
- break;
3963
- case keyboardHandler_util.KEY_CODE.TAB:
3964
- this.afOnTab.emit(e);
3965
- this.afOnKeyDown.emit(e);
3966
- break;
3967
- case keyboardHandler_util.KEY_CODE.SPACE:
3968
- this.afOnSpace.emit(e);
3969
- this.afOnKeyDown.emit(e);
3970
- break;
3971
- case keyboardHandler_util.KEY_CODE.HOME:
3972
- this.afOnHome.emit(e);
3973
- this.afOnKeyDown.emit(e);
3974
- break;
3975
- case keyboardHandler_util.KEY_CODE.END:
3976
- this.afOnEnd.emit(e);
3977
- this.afOnKeyDown.emit(e);
3978
- break;
3979
- case keyboardHandler_util.KEY_CODE.ANY:
3980
- this.afOnKeyDown.emit(e);
3981
- break;
3982
- default:
3983
- this.afOnKeyDown.emit(e);
3984
- return;
3985
- }
3986
- }
3987
- render() {
3988
- return index.h("slot", { key: 'c005ab4f415b2b68811263ad16350be67b0d08fd' });
3989
- }
3990
- };
3991
-
3992
- const UtilMutationObserver = class {
3993
- constructor(hostRef) {
3994
- index.registerInstance(this, hostRef);
3995
- this.afOnChange = index.createEvent(this, "afOnChange", 7);
3996
- this._observer = null;
3997
- this._isObserving = false;
3998
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-util-mutation-observer');
3999
- this.afOptions = {
4000
- attributes: false,
4001
- childList: true,
4002
- subtree: false,
4003
- characterData: false
4004
- };
4005
- }
4006
- afOptionsWatcher(newValue) {
4007
- this._afOptions =
4008
- typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
4009
- }
4010
- componentWillLoad() {
4011
- this.afOptionsWatcher(this.afOptions);
4012
- this.initObserver();
4013
- }
4014
- disconnectedCallback() {
4015
- if (this._isObserving) {
4016
- this.removeObserver();
4017
- }
4018
- }
4019
- initObserver() {
4020
- this._observer = new MutationObserver((mutationsList) => {
4021
- for (const mutation of mutationsList) {
4022
- if (mutation.type === 'childList' ||
4023
- mutation.type === 'attributes' ||
4024
- mutation.type === 'characterData') {
4025
- this.changeHandler(mutation);
4026
- }
4027
- }
4028
- });
4029
- this._observer.observe(this.$el, this._afOptions);
4030
- this._isObserving = true;
4031
- }
4032
- removeObserver() {
4033
- this._observer.disconnect();
4034
- this._isObserving = false;
4035
- }
4036
- changeHandler(e) {
4037
- this.afOnChange.emit(e);
4038
- }
4039
- render() {
4040
- index.h("div", { id: this.afId, ref: (el) => (this.$el = el) }, index.h("slot", null));
4041
- }
4042
- get $el() { return index.getElement(this); }
4043
- static get watchers() { return {
4044
- "afOptions": ["afOptionsWatcher"]
4045
- }; }
4046
- };
4047
-
4048
- exports.digi_button = Button;
4049
- exports.digi_calendar = Calendar;
4050
- exports.digi_calendar_datepicker = CalendarDatepicker;
4051
- exports.digi_form_input = FormInput;
4052
- exports.digi_form_label = FormLabel;
4053
- exports.digi_form_select = FormSelect;
4054
- exports.digi_form_textarea = FormTextarea;
4055
- exports.digi_form_validation_message = FormValidationMessage;
4056
- exports.digi_icon_calendar_alt = IconCalendarAlt;
4057
- exports.digi_icon_chevron_left = IconChevronLeft;
4058
- exports.digi_icon_chevron_right = IconChevronRight;
4059
- exports.digi_icon_input_select_marker = IconInputSelectMarker;
4060
- exports.digi_icon_validation_error = IconValidationError;
4061
- exports.digi_icon_validation_success = IconCheckCircle;
4062
- exports.digi_icon_validation_warning = IconValidationWarning;
4063
- exports.digi_icon_x = IconX;
4064
- exports.digi_typography = Typography;
4065
- exports.digi_util_keydown_handler = UtilKeydownHandler;
4066
- exports.digi_util_mutation_observer = UtilMutationObserver;