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

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 (462) hide show
  1. package/components/digi-badge-notification.d.ts +1 -1
  2. package/components/digi-badge-status.d.ts +1 -1
  3. package/components/digi-bar-chart.d.ts +1 -1
  4. package/components/digi-bar-chart.js +1 -1
  5. package/components/digi-button.d.ts +1 -1
  6. package/components/digi-calendar-datepicker.d.ts +1 -1
  7. package/components/digi-calendar-datepicker.js +63 -48
  8. package/components/digi-calendar-week-view.d.ts +1 -1
  9. package/components/digi-calendar-week-view.js +1 -1
  10. package/components/digi-calendar.d.ts +1 -1
  11. package/components/digi-calendar.js +1 -1
  12. package/components/digi-chart-line.d.ts +1 -1
  13. package/components/digi-chart-line.js +1 -1
  14. package/components/digi-code-block.d.ts +1 -1
  15. package/components/digi-code-block.js +1 -1
  16. package/components/digi-code-example.d.ts +1 -1
  17. package/components/digi-code-example.js +2 -2
  18. package/components/digi-code.d.ts +1 -1
  19. package/components/digi-context-menu.d.ts +1 -1
  20. package/components/digi-dialog.d.ts +1 -1
  21. package/components/digi-expandable-accordion.d.ts +1 -1
  22. package/components/digi-expandable-accordion.js +1 -1
  23. package/components/digi-expandable-faq-item.d.ts +1 -1
  24. package/components/digi-expandable-faq.d.ts +1 -1
  25. package/components/digi-footer-card.d.ts +1 -1
  26. package/components/digi-footer.d.ts +1 -1
  27. package/components/digi-form-category-filter.d.ts +1 -1
  28. package/components/digi-form-category-filter.js +2 -2
  29. package/components/digi-form-checkbox.d.ts +1 -1
  30. package/components/digi-form-error-list.d.ts +1 -1
  31. package/components/digi-form-fieldset.d.ts +1 -1
  32. package/components/digi-form-file-upload.d.ts +1 -1
  33. package/components/digi-form-file-upload.js +8 -8
  34. package/components/digi-form-filter.d.ts +1 -1
  35. package/components/digi-form-filter.js +1 -1
  36. package/components/digi-form-input-search.d.ts +1 -1
  37. package/components/digi-form-input-search.js +2 -2
  38. package/components/digi-form-input.d.ts +1 -1
  39. package/components/digi-form-input.js +1 -1
  40. package/components/digi-form-label.d.ts +1 -1
  41. package/components/digi-form-label.js +1 -1
  42. package/components/digi-form-radiobutton.d.ts +1 -1
  43. package/components/digi-form-radiogroup.d.ts +1 -1
  44. package/components/digi-form-receipt.d.ts +1 -1
  45. package/components/digi-form-select-filter.d.ts +1 -1
  46. package/components/digi-form-select-filter.js +10 -10
  47. package/components/digi-form-select.d.ts +1 -1
  48. package/components/digi-form-select.js +1 -1
  49. package/components/digi-form-textarea.d.ts +1 -1
  50. package/components/digi-form-textarea.js +6 -9
  51. package/components/digi-form-validation-message.d.ts +1 -1
  52. package/components/digi-header-avatar.d.ts +1 -1
  53. package/components/digi-header-navigation-item.d.ts +1 -1
  54. package/components/digi-header-navigation.d.ts +1 -1
  55. package/components/digi-header-notification.d.ts +1 -1
  56. package/components/digi-header.d.ts +1 -1
  57. package/components/digi-icon-accessibility-deaf.d.ts +1 -1
  58. package/components/digi-icon-accessibility-universal.d.ts +1 -1
  59. package/components/digi-icon-apple.d.ts +1 -1
  60. package/components/digi-icon-archive-outline.d.ts +1 -1
  61. package/components/digi-icon-archive.d.ts +1 -1
  62. package/components/digi-icon-arrow-back.d.ts +1 -1
  63. package/components/digi-icon-arrow-down.d.ts +1 -1
  64. package/components/digi-icon-arrow-left.d.ts +1 -1
  65. package/components/digi-icon-arrow-right.d.ts +1 -1
  66. package/components/digi-icon-arrow-sign-in.d.ts +1 -1
  67. package/components/digi-icon-arrow-sign-out.d.ts +1 -1
  68. package/components/digi-icon-arrow-up.d.ts +1 -1
  69. package/components/digi-icon-at.d.ts +1 -1
  70. package/components/digi-icon-bars.d.ts +1 -1
  71. package/components/digi-icon-bell-filled.d.ts +1 -1
  72. package/components/digi-icon-bell.d.ts +1 -1
  73. package/components/digi-icon-book.d.ts +1 -1
  74. package/components/digi-icon-bookmark-outline.d.ts +1 -1
  75. package/components/digi-icon-bookmark-solid.d.ts +1 -1
  76. package/components/digi-icon-bubble-ellipsis.d.ts +1 -1
  77. package/components/digi-icon-bubble.d.ts +1 -1
  78. package/components/digi-icon-building-outline.d.ts +1 -1
  79. package/components/digi-icon-building-solid.d.ts +1 -1
  80. package/components/digi-icon-bullseye.d.ts +1 -1
  81. package/components/digi-icon-calculator-solid.d.ts +1 -1
  82. package/components/digi-icon-calendar-alt-alert.d.ts +1 -1
  83. package/components/digi-icon-calendar-alt.d.ts +1 -1
  84. package/components/digi-icon-calendar.d.ts +1 -1
  85. package/components/digi-icon-caret-circle-right.d.ts +1 -1
  86. package/components/digi-icon-caret-down.d.ts +1 -1
  87. package/components/digi-icon-caret-left.d.ts +1 -1
  88. package/components/digi-icon-caret-right.d.ts +1 -1
  89. package/components/digi-icon-caret-up.d.ts +1 -1
  90. package/components/digi-icon-chart.d.ts +1 -1
  91. package/components/digi-icon-chat.d.ts +1 -1
  92. package/components/digi-icon-check-circle-reg-alt.d.ts +1 -1
  93. package/components/digi-icon-check-circle-solid.d.ts +1 -1
  94. package/components/digi-icon-check.d.ts +1 -1
  95. package/components/digi-icon-checklist.d.ts +1 -1
  96. package/components/digi-icon-chevron-down.d.ts +1 -1
  97. package/components/digi-icon-chevron-left.d.ts +1 -1
  98. package/components/digi-icon-chevron-right.d.ts +1 -1
  99. package/components/digi-icon-chevron-up.d.ts +1 -1
  100. package/components/digi-icon-clock.d.ts +1 -1
  101. package/components/digi-icon-communication-play-solid.d.ts +1 -1
  102. package/components/digi-icon-compress-alt.d.ts +1 -1
  103. package/components/digi-icon-comunication-case.d.ts +1 -1
  104. package/components/digi-icon-comunication-flag.d.ts +1 -1
  105. package/components/digi-icon-comunication-graduate.d.ts +1 -1
  106. package/components/digi-icon-comunication-play.d.ts +1 -1
  107. package/components/digi-icon-cooperation.d.ts +1 -1
  108. package/components/digi-icon-copy.d.ts +1 -1
  109. package/components/digi-icon-danger-outline.d.ts +1 -1
  110. package/components/digi-icon-download.d.ts +1 -1
  111. package/components/digi-icon-dxa.d.ts +1 -1
  112. package/components/digi-icon-edit.d.ts +1 -1
  113. package/components/digi-icon-ellipsis.d.ts +1 -1
  114. package/components/digi-icon-envelope-filled.d.ts +1 -1
  115. package/components/digi-icon-envelope.d.ts +1 -1
  116. package/components/digi-icon-exclamation-circle-filled.d.ts +1 -1
  117. package/components/digi-icon-exclamation-triangle-filled.d.ts +1 -1
  118. package/components/digi-icon-exclamation-triangle-warning.d.ts +1 -1
  119. package/components/digi-icon-exclamation-triangle.d.ts +1 -1
  120. package/components/digi-icon-expand-alt.d.ts +1 -1
  121. package/components/digi-icon-external-link-alt.d.ts +1 -1
  122. package/components/digi-icon-eye-slash.d.ts +1 -1
  123. package/components/digi-icon-eye.d.ts +1 -1
  124. package/components/digi-icon-facebook-square.d.ts +1 -1
  125. package/components/digi-icon-file-add.d.ts +1 -1
  126. package/components/digi-icon-file-document.d.ts +1 -1
  127. package/components/digi-icon-file-excel.d.ts +1 -1
  128. package/components/digi-icon-file-export.d.ts +1 -1
  129. package/components/digi-icon-file-governing.d.ts +1 -1
  130. package/components/digi-icon-file-pdf.d.ts +1 -1
  131. package/components/digi-icon-file-powerpoint.d.ts +1 -1
  132. package/components/digi-icon-file-remove.d.ts +1 -1
  133. package/components/digi-icon-file-word.d.ts +1 -1
  134. package/components/digi-icon-film.d.ts +1 -1
  135. package/components/digi-icon-filter.d.ts +1 -1
  136. package/components/digi-icon-folder-add.d.ts +1 -1
  137. package/components/digi-icon-folder-directory.d.ts +1 -1
  138. package/components/digi-icon-folder-open.d.ts +1 -1
  139. package/components/digi-icon-folder.d.ts +1 -1
  140. package/components/digi-icon-globe-filled.d.ts +1 -1
  141. package/components/digi-icon-globe.d.ts +1 -1
  142. package/components/digi-icon-headphones.d.ts +1 -1
  143. package/components/digi-icon-heart-solid.d.ts +1 -1
  144. package/components/digi-icon-heart.d.ts +1 -1
  145. package/components/digi-icon-history.d.ts +1 -1
  146. package/components/digi-icon-home.d.ts +1 -1
  147. package/components/digi-icon-image.d.ts +1 -1
  148. package/components/digi-icon-info-circle-solid.d.ts +1 -1
  149. package/components/digi-icon-input-select-marker.d.ts +1 -1
  150. package/components/digi-icon-instagram.d.ts +1 -1
  151. package/components/digi-icon-job-suggestion.d.ts +1 -1
  152. package/components/digi-icon-language-outline.d.ts +1 -1
  153. package/components/digi-icon-language.d.ts +1 -1
  154. package/components/digi-icon-laptop-phone.d.ts +1 -1
  155. package/components/digi-icon-lattlast.d.ts +1 -1
  156. package/components/digi-icon-licence-bus.d.ts +1 -1
  157. package/components/digi-icon-licence-car.d.ts +1 -1
  158. package/components/digi-icon-licence-motorcycle.d.ts +1 -1
  159. package/components/digi-icon-licence-truck.d.ts +1 -1
  160. package/components/digi-icon-lightbulb.d.ts +1 -1
  161. package/components/digi-icon-linkedin-in.d.ts +1 -1
  162. package/components/digi-icon-list-ul.d.ts +1 -1
  163. package/components/digi-icon-lock.d.ts +1 -1
  164. package/components/digi-icon-marker-filled.d.ts +1 -1
  165. package/components/digi-icon-marker.d.ts +1 -1
  166. package/components/digi-icon-media-course.d.ts +1 -1
  167. package/components/digi-icon-media-podcast.d.ts +1 -1
  168. package/components/digi-icon-microphone-off.d.ts +1 -1
  169. package/components/digi-icon-microphone.d.ts +1 -1
  170. package/components/digi-icon-minus.d.ts +1 -1
  171. package/components/digi-icon-move.d.ts +1 -1
  172. package/components/digi-icon-news.d.ts +1 -1
  173. package/components/digi-icon-notification-error.d.ts +1 -1
  174. package/components/digi-icon-notification-info.d.ts +1 -1
  175. package/components/digi-icon-notification-succes.d.ts +1 -1
  176. package/components/digi-icon-notification-warning.d.ts +1 -1
  177. package/components/digi-icon-online-computervideo.d.ts +1 -1
  178. package/components/digi-icon-online-interview.d.ts +1 -1
  179. package/components/digi-icon-online-meeting.d.ts +1 -1
  180. package/components/digi-icon-online-task.d.ts +1 -1
  181. package/components/digi-icon-online-video.d.ts +1 -1
  182. package/components/digi-icon-open-source.d.ts +1 -1
  183. package/components/digi-icon-palette.d.ts +1 -1
  184. package/components/digi-icon-paperclip.d.ts +1 -1
  185. package/components/digi-icon-paste.d.ts +1 -1
  186. package/components/digi-icon-pen.d.ts +1 -1
  187. package/components/digi-icon-phone-hangup.d.ts +1 -1
  188. package/components/digi-icon-phone.d.ts +1 -1
  189. package/components/digi-icon-plus.d.ts +1 -1
  190. package/components/digi-icon-pod.d.ts +1 -1
  191. package/components/digi-icon-print.d.ts +1 -1
  192. package/components/digi-icon-read.d.ts +1 -1
  193. package/components/digi-icon-redo.d.ts +1 -1
  194. package/components/digi-icon-scale.d.ts +1 -1
  195. package/components/digi-icon-screensharing-off.d.ts +1 -1
  196. package/components/digi-icon-screensharing.d.ts +1 -1
  197. package/components/digi-icon-search.d.ts +1 -1
  198. package/components/digi-icon-send-outline.d.ts +1 -1
  199. package/components/digi-icon-send-solid.d.ts +1 -1
  200. package/components/digi-icon-settings.d.ts +1 -1
  201. package/components/digi-icon-share-alt.d.ts +1 -1
  202. package/components/digi-icon-share-chain.d.ts +1 -1
  203. package/components/digi-icon-sign.d.ts +1 -1
  204. package/components/digi-icon-sliders-h.d.ts +1 -1
  205. package/components/digi-icon-sokkandidat.d.ts +1 -1
  206. package/components/digi-icon-sort-down.d.ts +1 -1
  207. package/components/digi-icon-sort-up.d.ts +1 -1
  208. package/components/digi-icon-sort.d.ts +1 -1
  209. package/components/digi-icon-spinner.d.ts +1 -1
  210. package/components/digi-icon-star-reg.d.ts +1 -1
  211. package/components/digi-icon-star.d.ts +1 -1
  212. package/components/digi-icon-suitcase-outline.d.ts +1 -1
  213. package/components/digi-icon-suitcase-solid.d.ts +1 -1
  214. package/components/digi-icon-system-assistance.d.ts +1 -1
  215. package/components/digi-icon-table-column.d.ts +1 -1
  216. package/components/digi-icon-table-row.d.ts +1 -1
  217. package/components/digi-icon-table.d.ts +1 -1
  218. package/components/digi-icon-task-done.d.ts +1 -1
  219. package/components/digi-icon-toggle-off.d.ts +1 -1
  220. package/components/digi-icon-toggle-on.d.ts +1 -1
  221. package/components/digi-icon-trash.d.ts +1 -1
  222. package/components/digi-icon-twitter.d.ts +1 -1
  223. package/components/digi-icon-tyck-till.d.ts +1 -1
  224. package/components/digi-icon-unlock.d.ts +1 -1
  225. package/components/digi-icon-update.d.ts +1 -1
  226. package/components/digi-icon-upload.d.ts +1 -1
  227. package/components/digi-icon-user-add.d.ts +1 -1
  228. package/components/digi-icon-user-alt.d.ts +1 -1
  229. package/components/digi-icon-user-edit.d.ts +1 -1
  230. package/components/digi-icon-users-solid.d.ts +1 -1
  231. package/components/digi-icon-validation-error.d.ts +1 -1
  232. package/components/digi-icon-validation-success.d.ts +1 -1
  233. package/components/digi-icon-validation-warning.d.ts +1 -1
  234. package/components/digi-icon-videocamera-off.d.ts +1 -1
  235. package/components/digi-icon-videocamera.d.ts +1 -1
  236. package/components/digi-icon-volume.d.ts +1 -1
  237. package/components/digi-icon-web-tv.d.ts +1 -1
  238. package/components/digi-icon-webinar.d.ts +1 -1
  239. package/components/digi-icon-wifi-signal0.d.ts +1 -1
  240. package/components/digi-icon-wifi-signal1.d.ts +1 -1
  241. package/components/digi-icon-wifi-signal2.d.ts +1 -1
  242. package/components/digi-icon-wifi-signal3.d.ts +1 -1
  243. package/components/digi-icon-window.d.ts +1 -1
  244. package/components/digi-icon-x-button-outline.d.ts +1 -1
  245. package/components/digi-icon-x-button.d.ts +1 -1
  246. package/components/digi-icon-x.d.ts +1 -1
  247. package/components/digi-icon-youtube.d.ts +1 -1
  248. package/components/digi-info-card-multi-container.d.ts +1 -1
  249. package/components/digi-info-card-multi.d.ts +1 -1
  250. package/components/digi-info-card.d.ts +1 -1
  251. package/components/digi-layout-block.d.ts +1 -1
  252. package/components/digi-layout-columns.d.ts +1 -1
  253. package/components/digi-layout-container.d.ts +1 -1
  254. package/components/digi-link-button.d.ts +1 -1
  255. package/components/digi-link-external.d.ts +1 -1
  256. package/components/digi-link-internal.d.ts +1 -1
  257. package/components/digi-link.d.ts +1 -1
  258. package/components/digi-list.d.ts +1 -1
  259. package/components/digi-loader-skeleton.d.ts +1 -1
  260. package/components/digi-loader-spinner.d.ts +1 -1
  261. package/components/digi-logo.d.ts +1 -1
  262. package/components/digi-media-figure.d.ts +1 -1
  263. package/components/digi-media-image.d.ts +1 -1
  264. package/components/digi-navigation-breadcrumbs.d.ts +1 -1
  265. package/components/digi-navigation-breadcrumbs.js +1 -1
  266. package/components/digi-navigation-pagination.d.ts +1 -1
  267. package/components/digi-navigation-sidebar-button.d.ts +1 -1
  268. package/components/digi-navigation-sidebar.d.ts +1 -1
  269. package/components/digi-navigation-vertical-menu-item.d.ts +1 -1
  270. package/components/digi-navigation-vertical-menu.d.ts +1 -1
  271. package/components/digi-notification-alert.d.ts +1 -1
  272. package/components/digi-notification-error-page.d.ts +1 -1
  273. package/components/digi-progress-circle.d.ts +1 -1
  274. package/components/digi-progress-circle.js +1 -1
  275. package/components/digi-progress-indicator.d.ts +1 -1
  276. package/components/digi-progress-indicator.js +1 -1
  277. package/components/digi-progress-list-item.d.ts +1 -1
  278. package/components/digi-progress-list-item.js +1 -1
  279. package/components/digi-progress-list.d.ts +1 -1
  280. package/components/digi-progressbar.d.ts +1 -1
  281. package/components/digi-progressbar.js +1 -1
  282. package/components/digi-quote.d.ts +1 -1
  283. package/components/digi-table.d.ts +1 -1
  284. package/components/digi-tablist-panel.d.ts +1 -1
  285. package/components/digi-tablist.d.ts +1 -1
  286. package/components/digi-tag-media.d.ts +1 -1
  287. package/components/digi-tag.d.ts +1 -1
  288. package/components/digi-tag.js +1 -1
  289. package/components/digi-tools-feedback-banner.d.ts +1 -1
  290. package/components/digi-tools-feedback-rating.d.ts +1 -1
  291. package/components/digi-tools-feedback.d.ts +1 -1
  292. package/components/digi-tools-theme-provider.d.ts +1 -1
  293. package/components/digi-typography-heading-jumbo.d.ts +1 -1
  294. package/components/digi-typography-meta.d.ts +1 -1
  295. package/components/digi-typography-preamble.d.ts +1 -1
  296. package/components/digi-typography-time.d.ts +1 -1
  297. package/components/digi-typography-time.js +1 -1
  298. package/components/digi-typography.d.ts +1 -1
  299. package/components/digi-util-breakpoint-observer.d.ts +1 -1
  300. package/components/digi-util-detect-click-outside.d.ts +1 -1
  301. package/components/digi-util-detect-focus-outside.d.ts +1 -1
  302. package/components/digi-util-intersection-observer.d.ts +1 -1
  303. package/components/digi-util-keydown-handler.d.ts +1 -1
  304. package/components/digi-util-keyup-handler.d.ts +1 -1
  305. package/components/digi-util-mutation-observer.d.ts +1 -1
  306. package/components/digi-util-resize-observer.d.ts +1 -1
  307. package/components/index.d.ts +283 -283
  308. package/components/{p-98765f91.js → p-504118d4.js} +1 -1
  309. package/components/{p-0dd35954.js → p-669e7c83.js} +54 -72
  310. package/components/{p-08cf2c0e.js → p-903a27d9.js} +19 -0
  311. package/components/{p-e3961597.js → p-9cbf7565.js} +9 -9
  312. package/components/{p-5010c1e6.js → p-aa63b60e.js} +1 -1
  313. package/components/{p-05a97800.js → p-cb20ea78.js} +5 -5
  314. package/custom-elements.json +23 -23
  315. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  316. package/dist/cjs/digi-bar-chart.cjs.entry.js +1 -1
  317. package/dist/cjs/{digi-button_19.cjs.entry.js → digi-button_17.cjs.entry.js} +117 -268
  318. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +1 -1
  319. package/dist/cjs/digi-chart-line.cjs.entry.js +1 -1
  320. package/dist/cjs/digi-code-block_3.cjs.entry.js +3 -2
  321. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  322. package/dist/cjs/digi-dialog.cjs.entry.js +2 -1
  323. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +1 -1
  324. package/dist/cjs/digi-footer.cjs.entry.js +2 -1
  325. package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
  326. package/dist/cjs/digi-form-error-list.cjs.entry.js +2 -1
  327. package/dist/cjs/digi-form-file-upload.cjs.entry.js +7 -7
  328. package/dist/cjs/digi-form-filter.cjs.entry.js +1 -1
  329. package/dist/cjs/digi-form-receipt.cjs.entry.js +2 -1
  330. package/dist/cjs/digi-form-select-filter.cjs.entry.js +10 -9
  331. package/dist/cjs/digi-form-textarea.cjs.entry.js +133 -0
  332. package/dist/cjs/digi-header-navigation.cjs.entry.js +2 -1
  333. package/dist/cjs/digi-header.cjs.entry.js +2 -1
  334. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +1 -1
  335. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +2 -1
  336. package/dist/cjs/digi-notification-alert.cjs.entry.js +2 -1
  337. package/dist/cjs/digi-notification-error-page.cjs.entry.js +2 -1
  338. package/dist/cjs/digi-progress-circle.cjs.entry.js +1 -1
  339. package/dist/cjs/digi-progress-indicator.cjs.entry.js +1 -1
  340. package/dist/cjs/digi-progress-list-item.cjs.entry.js +1 -1
  341. package/dist/cjs/digi-progressbar.cjs.entry.js +1 -1
  342. package/dist/cjs/digi-tag.cjs.entry.js +1 -1
  343. package/dist/cjs/digi-tools-feedback.cjs.entry.js +2 -1
  344. package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
  345. package/dist/cjs/digi-typography.cjs.entry.js +26 -0
  346. package/dist/cjs/form-textarea-variation.enum-9c90d40f.js +17 -0
  347. package/dist/cjs/index-81fc5a97.js +10 -2
  348. package/dist/cjs/index.cjs.js +14 -13
  349. package/dist/cjs/loader.cjs.js +1 -1
  350. package/dist/cjs/{text-3157012b.js → text-65b1b58c.js} +19 -0
  351. package/dist/cjs/{typography-variation.enum-c6bb12f2.js → typography-variation.enum-6077eba3.js} +0 -16
  352. package/dist/collection/components/_calendar/calendar/calendar.js +61 -77
  353. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +4 -1
  354. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +115 -75
  355. package/dist/collection/components/_form/form-category-filter/form-category-filter.js +13 -13
  356. package/dist/collection/components/_form/form-file-upload/form-file-upload.js +6 -6
  357. package/dist/collection/components/_form/form-input/form-input.js +9 -9
  358. package/dist/collection/components/_form/form-select/form-select.js +6 -6
  359. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +27 -15
  360. package/dist/collection/components/_form/form-textarea/form-textarea.js +6 -9
  361. package/dist/collection/text/locale/sv/text.js +19 -0
  362. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  363. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  364. package/dist/digi-arbetsformedlingen/{p-460572d9.entry.js → p-038a6f4d.entry.js} +1 -1
  365. package/dist/digi-arbetsformedlingen/p-03e35369.entry.js +1 -0
  366. package/dist/digi-arbetsformedlingen/{p-5ffc1490.entry.js → p-04b9fcfc.entry.js} +1 -1
  367. package/dist/digi-arbetsformedlingen/p-086ef192.entry.js +1 -0
  368. package/dist/digi-arbetsformedlingen/{p-58a86b5f.entry.js → p-1472371d.entry.js} +1 -1
  369. package/dist/digi-arbetsformedlingen/p-19f13b56.entry.js +1 -0
  370. package/dist/digi-arbetsformedlingen/p-220c63f6.entry.js +1 -0
  371. package/dist/digi-arbetsformedlingen/p-365e6558.entry.js +1 -0
  372. package/dist/digi-arbetsformedlingen/{p-693e33b2.entry.js → p-3d0c0083.entry.js} +1 -1
  373. package/dist/digi-arbetsformedlingen/{p-48f60428.entry.js → p-41e16393.entry.js} +1 -1
  374. package/dist/digi-arbetsformedlingen/{p-4a1af082.entry.js → p-4e81efad.entry.js} +1 -1
  375. package/dist/digi-arbetsformedlingen/p-59bf3077.js +1 -0
  376. package/dist/digi-arbetsformedlingen/p-64067f33.entry.js +1 -0
  377. package/dist/digi-arbetsformedlingen/{p-73358d64.entry.js → p-6ea62ad2.entry.js} +1 -1
  378. package/dist/digi-arbetsformedlingen/p-7bdbb8b4.entry.js +1 -0
  379. package/dist/digi-arbetsformedlingen/p-903a27d9.js +1 -0
  380. package/dist/digi-arbetsformedlingen/{p-e2fe3edf.entry.js → p-954b1a74.entry.js} +1 -1
  381. package/dist/digi-arbetsformedlingen/p-9c5a93d8.js +1 -0
  382. package/dist/digi-arbetsformedlingen/{p-bfb78e9e.entry.js → p-9ebefb9c.entry.js} +1 -1
  383. package/dist/digi-arbetsformedlingen/p-9ed7d731.entry.js +1 -0
  384. package/dist/digi-arbetsformedlingen/p-ac812f71.entry.js +1 -0
  385. package/dist/digi-arbetsformedlingen/p-b21ccf7c.entry.js +1 -0
  386. package/dist/digi-arbetsformedlingen/p-b4c9f295.entry.js +1 -0
  387. package/dist/digi-arbetsformedlingen/p-d0465354.entry.js +1 -0
  388. package/dist/digi-arbetsformedlingen/{p-3ae0fb97.entry.js → p-d24cebf9.entry.js} +1 -1
  389. package/dist/digi-arbetsformedlingen/p-d6cc9061.entry.js +1 -0
  390. package/dist/digi-arbetsformedlingen/p-df0dfa95.entry.js +1 -0
  391. package/dist/digi-arbetsformedlingen/{p-79c6ecc6.entry.js → p-dff9777b.entry.js} +1 -1
  392. package/dist/digi-arbetsformedlingen/{p-1a12faea.entry.js → p-e03b9727.entry.js} +1 -1
  393. package/dist/digi-arbetsformedlingen/{p-1443ee18.entry.js → p-e955c7bd.entry.js} +1 -1
  394. package/dist/digi-arbetsformedlingen/p-ed3db5d0.entry.js +1 -0
  395. package/dist/digi-arbetsformedlingen/p-fb17bf4b.entry.js +1 -0
  396. package/dist/digi-arbetsformedlingen/p-fd32cb7c.entry.js +1 -0
  397. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  398. package/dist/esm/digi-bar-chart.entry.js +1 -1
  399. package/dist/esm/{digi-button_19.entry.js → digi-button_17.entry.js} +118 -267
  400. package/dist/esm/digi-calendar-week-view.entry.js +1 -1
  401. package/dist/esm/digi-chart-line.entry.js +1 -1
  402. package/dist/esm/digi-code-block_3.entry.js +3 -2
  403. package/dist/esm/digi-code-example.entry.js +1 -1
  404. package/dist/esm/digi-dialog.entry.js +2 -1
  405. package/dist/esm/digi-expandable-accordion.entry.js +1 -1
  406. package/dist/esm/digi-footer.entry.js +2 -1
  407. package/dist/esm/digi-form-category-filter.entry.js +2 -2
  408. package/dist/esm/digi-form-error-list.entry.js +2 -1
  409. package/dist/esm/digi-form-file-upload.entry.js +7 -7
  410. package/dist/esm/digi-form-filter.entry.js +1 -1
  411. package/dist/esm/digi-form-receipt.entry.js +2 -1
  412. package/dist/esm/digi-form-select-filter.entry.js +10 -9
  413. package/dist/esm/digi-form-textarea.entry.js +129 -0
  414. package/dist/esm/digi-header-navigation.entry.js +2 -1
  415. package/dist/esm/digi-header.entry.js +2 -1
  416. package/dist/esm/digi-navigation-breadcrumbs.entry.js +1 -1
  417. package/dist/esm/digi-navigation-pagination.entry.js +2 -1
  418. package/dist/esm/digi-notification-alert.entry.js +2 -1
  419. package/dist/esm/digi-notification-error-page.entry.js +2 -1
  420. package/dist/esm/digi-progress-circle.entry.js +1 -1
  421. package/dist/esm/digi-progress-indicator.entry.js +1 -1
  422. package/dist/esm/digi-progress-list-item.entry.js +1 -1
  423. package/dist/esm/digi-progressbar.entry.js +1 -1
  424. package/dist/esm/digi-tag.entry.js +1 -1
  425. package/dist/esm/digi-tools-feedback.entry.js +2 -1
  426. package/dist/esm/digi-typography-time.entry.js +1 -1
  427. package/dist/esm/digi-typography.entry.js +22 -0
  428. package/dist/esm/form-textarea-variation.enum-05017e8e.js +17 -0
  429. package/dist/esm/index-bfea2cc5.js +10 -2
  430. package/dist/esm/index.js +2 -1
  431. package/dist/esm/loader.js +1 -1
  432. package/dist/esm/{text-26e02c8d.js → text-8f88c0f6.js} +19 -0
  433. package/dist/esm/{typography-variation.enum-dea0fe69.js → typography-variation.enum-04944af5.js} +1 -17
  434. package/dist/types/components/_calendar/calendar/calendar.d.ts +12 -12
  435. package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +38 -32
  436. package/dist/types/components/_form/form-category-filter/form-category-filter.d.ts +10 -10
  437. package/dist/types/components/_form/form-input/form-input.d.ts +0 -1
  438. package/dist/types/components/_form/form-select/form-select.d.ts +2 -2
  439. package/dist/types/components/_form/form-select-filter/form-select-filter.d.ts +4 -4
  440. package/dist/types/components/_form/form-textarea/form-textarea.d.ts +0 -1
  441. package/dist/types/components.d.ts +126 -110
  442. package/dist/types/text/locale/sv/text.d.ts +6 -0
  443. package/hydrate/index.js +158 -147
  444. package/hydrate/index.mjs +158 -147
  445. package/package.json +1 -1
  446. package/dist/digi-arbetsformedlingen/p-02a6c3e6.entry.js +0 -1
  447. package/dist/digi-arbetsformedlingen/p-08cf2c0e.js +0 -1
  448. package/dist/digi-arbetsformedlingen/p-11035a85.entry.js +0 -1
  449. package/dist/digi-arbetsformedlingen/p-2242582b.entry.js +0 -1
  450. package/dist/digi-arbetsformedlingen/p-4f68f34d.entry.js +0 -1
  451. package/dist/digi-arbetsformedlingen/p-5990798b.entry.js +0 -1
  452. package/dist/digi-arbetsformedlingen/p-5bd4feb1.entry.js +0 -1
  453. package/dist/digi-arbetsformedlingen/p-5c6726e4.entry.js +0 -1
  454. package/dist/digi-arbetsformedlingen/p-648ed420.entry.js +0 -1
  455. package/dist/digi-arbetsformedlingen/p-6c701c64.entry.js +0 -1
  456. package/dist/digi-arbetsformedlingen/p-70cd00fd.entry.js +0 -1
  457. package/dist/digi-arbetsformedlingen/p-871eb27f.entry.js +0 -1
  458. package/dist/digi-arbetsformedlingen/p-8dde1275.entry.js +0 -1
  459. package/dist/digi-arbetsformedlingen/p-903cd4b7.entry.js +0 -1
  460. package/dist/digi-arbetsformedlingen/p-94170a0d.entry.js +0 -1
  461. package/dist/digi-arbetsformedlingen/p-aa63b05a.entry.js +0 -1
  462. package/dist/digi-arbetsformedlingen/p-bb92f2eb.js +0 -1
@@ -165,22 +165,6 @@ exports.FormSelectVariation = void 0;
165
165
  FormSelectVariation["LARGE"] = "large";
166
166
  })(exports.FormSelectVariation || (exports.FormSelectVariation = {}));
167
167
 
168
- exports.FormTextareaValidation = void 0;
169
- (function (FormTextareaValidation) {
170
- FormTextareaValidation["SUCCESS"] = "success";
171
- FormTextareaValidation["ERROR"] = "error";
172
- FormTextareaValidation["WARNING"] = "warning";
173
- FormTextareaValidation["NEUTRAL"] = "neutral";
174
- })(exports.FormTextareaValidation || (exports.FormTextareaValidation = {}));
175
-
176
- exports.FormTextareaVariation = void 0;
177
- (function (FormTextareaVariation) {
178
- FormTextareaVariation["SMALL"] = "small";
179
- FormTextareaVariation["MEDIUM"] = "medium";
180
- FormTextareaVariation["LARGE"] = "large";
181
- FormTextareaVariation["AUTO"] = "auto";
182
- })(exports.FormTextareaVariation || (exports.FormTextareaVariation = {}));
183
-
184
168
  exports.HeaderCenterContentWidth = void 0;
185
169
  (function (HeaderCenterContentWidth) {
186
170
  HeaderCenterContentWidth["DEFAULT"] = "none";
@@ -10,15 +10,11 @@ import { _t } from "../../../text";
10
10
  */
11
11
  export class Calendar {
12
12
  constructor() {
13
- var _a;
14
- this.locale = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.lang) || 'sv-SE';
15
- this.activeCalendar = [];
16
- this.months = [];
17
13
  this.selectedDates = [];
18
14
  this.focusedDate = undefined;
19
15
  this.dirty = false;
20
16
  this.afId = randomIdGenerator('digi-calendar');
21
- this.afInitFocusDate = undefined;
17
+ this.afOpenCalendarTo = undefined;
22
18
  this.afShowWeekNumber = false;
23
19
  this.afSelectedDate = undefined;
24
20
  this.afSelectedDates = [];
@@ -27,6 +23,13 @@ export class Calendar {
27
23
  this.afMaxDate = undefined;
28
24
  this.afMultipleDates = false;
29
25
  this.afYearSelect = false;
26
+ this.activeCalendar = [];
27
+ }
28
+ focusedDateChanged() {
29
+ this.drawCalendar(this.focusedDate);
30
+ }
31
+ afOpenCalendarToChangeHandler() {
32
+ this.determineFocusedDate();
30
33
  }
31
34
  afSelectedDateChangeHandler() {
32
35
  this.afSelectedDates = isValid(this.afSelectedDate)
@@ -39,24 +42,12 @@ export class Calendar {
39
42
  const invalidDate = this.afSelectedDates.find((date) => !isValid(date));
40
43
  if (invalidDate === undefined) {
41
44
  this.selectedDates = this.afSelectedDates;
42
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
43
- this.focusedDate = this.afInitFocusDate;
44
- }
45
- else {
46
- this.focusedDate = new Date(this.afSelectedDates
47
- .slice()
48
- .sort((a, b) => a.getTime() - b.getTime())[0]);
49
- }
45
+ this.determineFocusedDate();
50
46
  }
51
47
  }
52
48
  else if (isValid(this.afSelectedDates[0])) {
53
49
  this.selectedDates = [this.afSelectedDates[0]];
54
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
55
- this.focusedDate = this.afInitFocusDate;
56
- }
57
- else {
58
- this.focusedDate = new Date(this.afSelectedDates[0]);
59
- }
50
+ this.determineFocusedDate();
60
51
  }
61
52
  }
62
53
  else {
@@ -77,6 +68,20 @@ export class Calendar {
77
68
  this.afOnClickOutside.emit(e);
78
69
  }
79
70
  }
71
+ determineFocusedDate() {
72
+ if (this.dirty) {
73
+ return; // Don't change focused date if user has already interacted with the calendar
74
+ }
75
+ else if (this.afOpenCalendarTo && isValid(this.afOpenCalendarTo)) {
76
+ this.focusedDate = this.afOpenCalendarTo;
77
+ }
78
+ else if (this.selectedDates.length > 0) {
79
+ this.focusedDate = this.selectedDates[0];
80
+ }
81
+ else {
82
+ this.focusedDate = new Date();
83
+ }
84
+ }
80
85
  drawCalendar(focusedDate) {
81
86
  const date = {
82
87
  year: focusedDate.getFullYear(),
@@ -86,20 +91,6 @@ export class Calendar {
86
91
  this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
87
92
  this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
88
93
  this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
89
- this.months = [
90
- 'januari',
91
- 'februari',
92
- 'mars',
93
- 'april',
94
- 'maj',
95
- 'juni',
96
- 'juli',
97
- 'augusti',
98
- 'september',
99
- 'oktober',
100
- 'november',
101
- 'december'
102
- ];
103
94
  this.activeCalendar = this.appendFirstWeekOfNextMonth()
104
95
  ? [
105
96
  this.lastWeekOfPreviousMonth,
@@ -130,10 +121,9 @@ export class Calendar {
130
121
  getWeekDays(date) {
131
122
  const today = date || new Date();
132
123
  const week = [];
124
+ const dayOffset = today.getDay(); // 0=söndag
133
125
  for (let i = 1; i <= 7; i++) {
134
- const first = today.getDate() - today.getDay() + i;
135
- const day = new Date(today.setDate(first));
136
- week.push(day);
126
+ week.push(new Date(today.getFullYear(), today.getMonth(), today.getDate() - dayOffset + i));
137
127
  }
138
128
  return week;
139
129
  }
@@ -184,13 +174,13 @@ export class Calendar {
184
174
  }
185
175
  getMonthName(monthNumber) {
186
176
  return new Date(1992, monthNumber, 1)
187
- .toLocaleDateString(this.locale, {
177
+ .toLocaleDateString(_t.locale, {
188
178
  month: 'short'
189
179
  })
190
180
  .replace('.', '');
191
181
  }
192
182
  getFullMonthName(monthNumber) {
193
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(this.locale, {
183
+ return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(_t.locale, {
194
184
  month: 'long',
195
185
  year: 'numeric'
196
186
  });
@@ -315,8 +305,8 @@ export class Calendar {
315
305
  if (this.dirty) {
316
306
  return this.isSameDate(date, this.focusedDate);
317
307
  }
318
- if (this.afInitFocusDate) {
319
- return this.isSameDate(date, this.afInitFocusDate);
308
+ if (this.afOpenCalendarTo) {
309
+ return this.isSameDate(date, this.afOpenCalendarTo);
320
310
  }
321
311
  return this.isSameMonth(date, new Date())
322
312
  ? this.isSameDate(date, new Date())
@@ -337,14 +327,14 @@ export class Calendar {
337
327
  const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
338
328
  tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
339
329
  this.focusedDate = tempDate;
340
- this.drawCalendar(this.focusedDate);
341
330
  }
342
331
  selectYear(evt) {
343
332
  this.onDirty();
344
- const tempDate = this.focusedDate;
345
- tempDate.setFullYear(evt.target.value);
346
- this.focusedDate = tempDate;
347
- this.drawCalendar(this.focusedDate);
333
+ const selectedYear = parseInt(evt.target.value, 10);
334
+ // Skydda mot ogiltiga datum som 29 februari
335
+ const day = Math.min(this.focusedDate.getDate(), new Date(selectedYear, this.focusedDate.getMonth() + 1, 0).getDate());
336
+ const newDate = new Date(selectedYear, this.focusedDate.getMonth(), day);
337
+ this.focusedDate = newDate;
348
338
  }
349
339
  earliestSelectableYear() {
350
340
  if (this.afMinDate)
@@ -374,20 +364,7 @@ export class Calendar {
374
364
  if (valid.length > 0)
375
365
  this.selectedDates = valid;
376
366
  }
377
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
378
- this.focusedDate = this.afInitFocusDate;
379
- }
380
- else if (this.selectedDates.length > 0) {
381
- this.focusedDate = this.selectedDates
382
- .slice()
383
- .sort((a, b) => a.getTime() - b.getTime())[0];
384
- }
385
- else {
386
- this.focusedDate = new Date();
387
- }
388
- this.drawCalendar(this.focusedDate);
389
- }
390
- componentWillUpdate() {
367
+ this.determineFocusedDate();
391
368
  this.drawCalendar(this.focusedDate);
392
369
  }
393
370
  async componentDidLoad() {
@@ -408,18 +385,18 @@ export class Calendar {
408
385
  };
409
386
  }
410
387
  render() {
411
- return (h("div", { key: 'a65aa1b63553ff82c432a81fa9fd9821b88a39ab', class: {
388
+ return (h("div", { key: '2951c3cb75fbace29267998e7e17ed48fd7c934f', class: {
412
389
  'digi-calendar': true,
413
390
  'digi-calendar--hide': !this.afActive
414
- }, id: `${this.afId}-calendar` }, this.afYearSelect && (h("div", { key: '9cdea2a354a094a7dbe68bc7dd796143ed21acb6', class: "digi-calendar__header" }, h("div", { key: '3731070e6c432b2bed6985034db41b141a27214e', class: "digi-calendar__header--year-select" }, h("digi-form-select", { key: '06e3d06b3ef6d7ad262f9eeb927a12167ca8a48b', afLabel: "M\u00E5nad", "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
391
+ }, id: `${this.afId}-calendar` }, this.afYearSelect && (h("div", { key: '0afa63be62669edd3ecef28953711892810a308b', class: "digi-calendar__header" }, h("div", { key: '37d19ca99a173d0195179a361d7460c18e3e75db', class: "digi-calendar__header--year-select" }, h("digi-form-select", { key: '6c5cde1508e7948b675d4495190f04a69c321570', afLabel: _t.calendar.month, "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
415
392
  this.selectMonth(evt);
416
- } }, this.months.map((month, index) => {
393
+ } }, _t.calendar.months.map((month, index) => {
417
394
  return h("option", { value: index }, month);
418
- })), h("digi-form-select", { key: '60bde04287db50b5d887ddcb31839f1fe159b09a', afLabel: "\u00C5r", "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
395
+ })), h("digi-form-select", { key: '2ac58393e542efb8dab01da4aa3367107646f524', afLabel: _t.calendar.year, "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
419
396
  this.selectYear(evt);
420
- } }, this.allSelectableYears().map((year) => (h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (h("div", { key: '75b68570a03ee6f921a4b36f3fa08d6c7b52c277', class: "digi-calendar__header" }, h("div", { key: 'c4a4f28576b93368e1eca7a0fab5f88866b98cf7', class: "digi-calendar__header--month-step" }, h("button", { key: '69058f8bd1eff3d2e54a6436c36e5c4b8441422e', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() - 1) +
421
- ', föregående månad', onClick: () => this.subtractMonth() }, h("digi-icon-chevron-left", { key: 'af76697caee12f4f88920cd0fdb869b02f2b9ce5', slot: "icon", "aria-hidden": "true" }), h("span", { key: '6a0692868882f344f0a32f9d73c0c0a0ddd2b826', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() - 1))), h("div", { key: '9224acc84fc325ff9d15dbfc8a9dd6592f11e9f8', class: "digi-calendar__month" }, this.getFullMonthName(this.focusedDate.getMonth())), h("button", { key: '15346caa9359c8eed3c14315b7fd862ed4786bf6', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() + 1) +
422
- ', nästa månad', onClick: () => this.addMonth() }, h("span", { key: '69046c2421fc47d7e840ce79a30ea201846872b1', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() + 1)), h("digi-icon-chevron-right", { key: '0c08338d76c0137d4a001cef22d2eff8d8b347ea', slot: "icon", "aria-hidden": "true" }))))), h("digi-util-keydown-handler", { key: 'f49051c6fe7d5f9aa922988a681c6fc6ed981ff8', onAfOnDown: (e) => this.navigateHandler(e, 7), onAfOnUp: (e) => this.navigateHandler(e, -7), onAfOnLeft: (e) => this.navigateHandler(e, -1), onAfOnRight: (e) => this.navigateHandler(e, 1) }, h("table", { key: 'e1b09f2fb0c93c46804dfce34ac2e9e367a9d79d', role: "grid", class: "digi-calendar__table" }, h("thead", { key: 'bc8915a5cbf3093cab17fb2778f892e1fd099d9a' }, h("tr", { key: '1b72c4136c864d3af56b1ab9db8b2963a7b0fbca', role: "row" }, this.afShowWeekNumber && (h("th", { key: 'ab422d5c5e5a23b9debdb9225a53430d4f8ec302', role: "columnheader", abbr: _t.calendar.week, class: "digi-calendar__table-header-week" }, _t.calendar.week.toLowerCase())), Object.keys(_t.calendar.weekdays).map((day) => (h("th", { role: "columnheader", "aria-label": _t.calendar.weekdays[day], abbr: _t.calendar.weekdays[day], class: "digi-calendar__table-header" }, _t.calendar.weekdays_short[day].toLowerCase()))))), h("tbody", { key: 'af2273dae429b8d3d67f5df853d49f6508fe8f41', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
397
+ } }, this.allSelectableYears().map((year) => (h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (h("div", { key: '0c715aeece50ada4c13173e95a431b4bf3b2d584', class: "digi-calendar__header" }, h("div", { key: '7183e490dbfe41f705b06e525907c63a11d13c7d', class: "digi-calendar__header--month-step" }, h("button", { key: '1ac729938041d87ee0a2588211c09ff8eaedafae', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() - 1) +
398
+ ', ' + _t.calendar.previousMonth, onClick: () => this.subtractMonth() }, h("digi-icon-chevron-left", { key: '2fc849f377c0d817d2c03b2f365f5f35ae2ae422', slot: "icon", "aria-hidden": "true" }), h("span", { key: '9a454f6a75c8525d0559013f420083461e59e38c', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() - 1))), h("div", { key: 'fe11bd1a3e7fe57152136e6cd05763735d64c164', class: "digi-calendar__month" }, this.getFullMonthName(this.focusedDate.getMonth())), h("button", { key: '1b46134446f5fb21be57b3d9b492a227c732aded', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.focusedDate.getMonth() + 1) +
399
+ ', ' + _t.calendar.nextMonth, onClick: () => this.addMonth() }, h("span", { key: '07efeb5a1b3341814e6a9fd3cbe9c81fdf8d55fb', class: "digi-calendar__month-select-name" }, this.getMonthName(this.focusedDate.getMonth() + 1)), h("digi-icon-chevron-right", { key: 'f16b49b2d05d06a928b944f515b9706d21a860d7', slot: "icon", "aria-hidden": "true" }))))), h("digi-util-keydown-handler", { key: 'dc86ed3df6e5f70384b9e2ada473f4af2a11ccca', onAfOnDown: (e) => this.navigateHandler(e, 7), onAfOnUp: (e) => this.navigateHandler(e, -7), onAfOnLeft: (e) => this.navigateHandler(e, -1), onAfOnRight: (e) => this.navigateHandler(e, 1) }, h("table", { key: 'f493df85506b3482066bc542e19630311180d224', role: "grid", class: "digi-calendar__table" }, h("thead", { key: 'b2f33f1dc3b75c4406df209e0cd37ff6e915dfa4' }, h("tr", { key: '74baa5b744116ad187f5cb04ff5b160117698adc', role: "row" }, this.afShowWeekNumber && (h("th", { key: '4cd7f3261eb3fb270a0299a23f4ced5d21301270', role: "columnheader", abbr: _t.calendar.week, class: "digi-calendar__table-header-week" }, _t.calendar.week.toLowerCase())), Object.keys(_t.calendar.weekdays).map((day) => (h("th", { role: "columnheader", "aria-label": _t.calendar.weekdays[day], abbr: _t.calendar.weekdays[day], class: "digi-calendar__table-header" }, _t.calendar.weekdays_short[day].toLowerCase()))))), h("tbody", { key: '40266516692ee0a3b67781ff51881bf71fa325ba', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
423
400
  return (h("tr", null, week.map((day, i) => {
424
401
  if (this.afShowWeekNumber && i === 0) {
425
402
  return (h("th", { role: "rowheader", "aria-label": _t.calendar.week + ' ' + day, class: "digi-calendar__td-week digi-calendar__date--week-number", id: 'digi-calendar__week-' + day }, day));
@@ -434,7 +411,7 @@ export class Calendar {
434
411
  : null }, h("span", { "aria-hidden": "true" }, day.getDate()))));
435
412
  }
436
413
  })));
437
- })))), h("slot", { key: '081dffb3256ce8febd43fc0842bed7bee26cd228', name: "calendar-footer" })));
414
+ })))), h("slot", { key: 'a1d6061116378a7f60fbc8d779999db45cf04b86', name: "calendar-footer" })));
438
415
  }
439
416
  static get is() { return "digi-calendar"; }
440
417
  static get encapsulation() { return "scoped"; }
@@ -473,7 +450,7 @@ export class Calendar {
473
450
  "reflect": false,
474
451
  "defaultValue": "randomIdGenerator('digi-calendar')"
475
452
  },
476
- "afInitFocusDate": {
453
+ "afOpenCalendarTo": {
477
454
  "type": "unknown",
478
455
  "mutable": false,
479
456
  "complexType": {
@@ -491,9 +468,9 @@ export class Calendar {
491
468
  "docs": {
492
469
  "tags": [{
493
470
  "name": "en",
494
- "text": "Controls which month is shown from start, and which date button is the entry point for keyboard navigation. If not provided, selected date, today's date or the first day of the month is used."
471
+ "text": "Controls which month is shown from start, and which date button is the entry point for keyboard navigation. If not provided, selected date or today's date is used."
495
472
  }],
496
- "text": "Styr vilken m\u00E5nad som visas fr\u00E5n start, samt vilken datumknapp som \u00E4r ing\u00E5ngspunkt f\u00F6r tangentbordsnavigering. Om inte angiven anv\u00E4nds valt datum, dagens datum eller m\u00E5nadens f\u00F6rsta dag."
473
+ "text": "Styr vilken m\u00E5nad som visas fr\u00E5n start, samt vilken datumknapp som \u00E4r ing\u00E5ngspunkt f\u00F6r tangentbordsnavigering. Om inte angiven anv\u00E4nds valt datum eller dagens datum."
497
474
  },
498
475
  "getter": false,
499
476
  "setter": false
@@ -511,9 +488,9 @@ export class Calendar {
511
488
  "docs": {
512
489
  "tags": [{
513
490
  "name": "en",
514
- "text": "Show week number in the calander. Default is false"
491
+ "text": "Show week number in the calendar"
515
492
  }],
516
- "text": "Visa veckonummer i kalender. F\u00F6rvalt \u00E4r false"
493
+ "text": "Visa veckonummer i kalender"
517
494
  },
518
495
  "getter": false,
519
496
  "setter": false,
@@ -658,9 +635,9 @@ export class Calendar {
658
635
  "docs": {
659
636
  "tags": [{
660
637
  "name": "en",
661
- "text": "Set this to true to be able to select multiple dates in the calander. Default is false"
638
+ "text": "Set this to true to be able to allow selection of multiple dates"
662
639
  }],
663
- "text": "S\u00E4tt denna till true f\u00F6r att kunna markera mer en ett datum i kalendern. F\u00F6rvalt \u00E4r false"
640
+ "text": "S\u00E4tt denna till true f\u00F6r att till\u00E5ta val av flera datum"
664
641
  },
665
642
  "getter": false,
666
643
  "setter": false,
@@ -681,9 +658,9 @@ export class Calendar {
681
658
  "docs": {
682
659
  "tags": [{
683
660
  "name": "en",
684
- "text": "Set this to true to be able to select year through a select component. Default is false"
661
+ "text": "Set this to true to be show year selector"
685
662
  }],
686
- "text": "S\u00E4tt denna till true f\u00F6r att kunna v\u00E4lja \u00E5r genom en v\u00E4ljare. F\u00F6rvalt \u00E4r false"
663
+ "text": "S\u00E4tt denna till true f\u00F6r att visa v\u00E4ljare f\u00F6r \u00E5r"
687
664
  },
688
665
  "getter": false,
689
666
  "setter": false,
@@ -697,7 +674,8 @@ export class Calendar {
697
674
  return {
698
675
  "selectedDates": {},
699
676
  "focusedDate": {},
700
- "dirty": {}
677
+ "dirty": {},
678
+ "activeCalendar": {}
701
679
  };
702
680
  }
703
681
  static get events() {
@@ -777,6 +755,12 @@ export class Calendar {
777
755
  }
778
756
  static get watchers() {
779
757
  return [{
758
+ "propName": "focusedDate",
759
+ "methodName": "focusedDateChanged"
760
+ }, {
761
+ "propName": "afOpenCalendarTo",
762
+ "methodName": "afOpenCalendarToChangeHandler"
763
+ }, {
780
764
  "propName": "afSelectedDate",
781
765
  "methodName": "afSelectedDateChangeHandler"
782
766
  }, {
@@ -745,10 +745,12 @@ body {
745
745
  }
746
746
  :host .digi-calendar-datepicker {
747
747
  position: relative;
748
+ pointer-events: none;
748
749
  }
749
750
  :host .digi-calendar-datepicker__input-field {
750
751
  position: relative;
751
752
  max-width: var(--digi--datepicker--max-width);
753
+ pointer-events: auto;
752
754
  }
753
755
  :host .digi-calendar-datepicker__input-field .digi-calendar-datepicker__inactive {
754
756
  --digi--form-input--background--empty: var(--digi--datepicker--input--inactive-background);
@@ -777,7 +779,7 @@ body {
777
779
  outline-offset: 2px;
778
780
  box-shadow: 0px 0px 0px 5px white;
779
781
  }
780
- :host .digi-calendar-datepicker__input-field .digi-calendar-datepicker__input-button:hover {
782
+ :host .digi-calendar-datepicker__input-field .digi-calendar-datepicker__input-button:hover, :host .digi-calendar-datepicker__input-field .digi-calendar-datepicker__input-button:focus {
781
783
  background: var(--digi--color--background--interactive--hover--secondary);
782
784
  }
783
785
  :host .digi-calendar-datepicker__calendar {
@@ -797,6 +799,7 @@ body {
797
799
  position: absolute;
798
800
  top: var(--digi--datepicker--calendar--popup-top);
799
801
  left: 0;
802
+ pointer-events: auto;
800
803
  }
801
804
  :host .digi-calendar-datepicker__input-component {
802
805
  --digi--form-input--padding: 0 var(--digi--datepicker--input--inline-end) 0 var(--digi--datepicker--input--inline-start);