@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
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, h } from './p-e5abfc2d.js';
2
2
  import { r as randomIdGenerator } from './p-ffe5c0e8.js';
3
3
  import { l as logger } from './p-e3d2e899.js';
4
- import { _ as _t } from './p-08cf2c0e.js';
4
+ import { _ as _t } from './p-903a27d9.js';
5
5
 
6
6
  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)}";
7
7
  const DigiFormLabelStyle0 = formLabelCss;
@@ -3,9 +3,9 @@ import { r as randomIdGenerator } from './p-ffe5c0e8.js';
3
3
  import { d as detectClickOutside } from './p-430607cb.js';
4
4
  import { d as detectFocusOutside } from './p-ee33960b.js';
5
5
  import { l as logger } from './p-e3d2e899.js';
6
- import { _ as _t } from './p-08cf2c0e.js';
7
- import { d as defineCustomElement$b } from './p-98765f91.js';
8
- import { d as defineCustomElement$a } from './p-05a97800.js';
6
+ import { _ as _t } from './p-903a27d9.js';
7
+ import { d as defineCustomElement$b } from './p-504118d4.js';
8
+ import { d as defineCustomElement$a } from './p-cb20ea78.js';
9
9
  import { d as defineCustomElement$9 } from './p-49a67d97.js';
10
10
  import { d as defineCustomElement$8 } from './p-be3cec41.js';
11
11
  import { d as defineCustomElement$7 } from './p-b54d76b7.js';
@@ -88,15 +88,11 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
88
88
  this.afOnFocusOutside = createEvent(this, "afOnFocusOutside", 7);
89
89
  this.afOnClickOutside = createEvent(this, "afOnClickOutside", 7);
90
90
  this.afOnDirty = createEvent(this, "afOnDirty", 7);
91
- var _a;
92
- this.locale = ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.lang) || 'sv-SE';
93
- this.activeCalendar = [];
94
- this.months = [];
95
91
  this.selectedDates = [];
96
92
  this.focusedDate = undefined;
97
93
  this.dirty = false;
98
94
  this.afId = randomIdGenerator('digi-calendar');
99
- this.afInitFocusDate = undefined;
95
+ this.afOpenCalendarTo = undefined;
100
96
  this.afShowWeekNumber = false;
101
97
  this.afSelectedDate = undefined;
102
98
  this.afSelectedDates = [];
@@ -105,6 +101,13 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
105
101
  this.afMaxDate = undefined;
106
102
  this.afMultipleDates = false;
107
103
  this.afYearSelect = false;
104
+ this.activeCalendar = [];
105
+ }
106
+ focusedDateChanged() {
107
+ this.drawCalendar(this.focusedDate);
108
+ }
109
+ afOpenCalendarToChangeHandler() {
110
+ this.determineFocusedDate();
108
111
  }
109
112
  afSelectedDateChangeHandler() {
110
113
  this.afSelectedDates = isValid(this.afSelectedDate)
@@ -117,24 +120,12 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
117
120
  const invalidDate = this.afSelectedDates.find((date) => !isValid(date));
118
121
  if (invalidDate === undefined) {
119
122
  this.selectedDates = this.afSelectedDates;
120
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
121
- this.focusedDate = this.afInitFocusDate;
122
- }
123
- else {
124
- this.focusedDate = new Date(this.afSelectedDates
125
- .slice()
126
- .sort((a, b) => a.getTime() - b.getTime())[0]);
127
- }
123
+ this.determineFocusedDate();
128
124
  }
129
125
  }
130
126
  else if (isValid(this.afSelectedDates[0])) {
131
127
  this.selectedDates = [this.afSelectedDates[0]];
132
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
133
- this.focusedDate = this.afInitFocusDate;
134
- }
135
- else {
136
- this.focusedDate = new Date(this.afSelectedDates[0]);
137
- }
128
+ this.determineFocusedDate();
138
129
  }
139
130
  }
140
131
  else {
@@ -155,6 +146,20 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
155
146
  this.afOnClickOutside.emit(e);
156
147
  }
157
148
  }
149
+ determineFocusedDate() {
150
+ if (this.dirty) {
151
+ return; // Don't change focused date if user has already interacted with the calendar
152
+ }
153
+ else if (this.afOpenCalendarTo && isValid(this.afOpenCalendarTo)) {
154
+ this.focusedDate = this.afOpenCalendarTo;
155
+ }
156
+ else if (this.selectedDates.length > 0) {
157
+ this.focusedDate = this.selectedDates[0];
158
+ }
159
+ else {
160
+ this.focusedDate = new Date();
161
+ }
162
+ }
158
163
  drawCalendar(focusedDate) {
159
164
  const date = {
160
165
  year: focusedDate.getFullYear(),
@@ -164,20 +169,6 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
164
169
  this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
165
170
  this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
166
171
  this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
167
- this.months = [
168
- 'januari',
169
- 'februari',
170
- 'mars',
171
- 'april',
172
- 'maj',
173
- 'juni',
174
- 'juli',
175
- 'augusti',
176
- 'september',
177
- 'oktober',
178
- 'november',
179
- 'december'
180
- ];
181
172
  this.activeCalendar = this.appendFirstWeekOfNextMonth()
182
173
  ? [
183
174
  this.lastWeekOfPreviousMonth,
@@ -208,10 +199,9 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
208
199
  getWeekDays(date) {
209
200
  const today = date || new Date();
210
201
  const week = [];
202
+ const dayOffset = today.getDay(); // 0=söndag
211
203
  for (let i = 1; i <= 7; i++) {
212
- const first = today.getDate() - today.getDay() + i;
213
- const day = new Date(today.setDate(first));
214
- week.push(day);
204
+ week.push(new Date(today.getFullYear(), today.getMonth(), today.getDate() - dayOffset + i));
215
205
  }
216
206
  return week;
217
207
  }
@@ -262,13 +252,13 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
262
252
  }
263
253
  getMonthName(monthNumber) {
264
254
  return new Date(1992, monthNumber, 1)
265
- .toLocaleDateString(this.locale, {
255
+ .toLocaleDateString(_t.locale, {
266
256
  month: 'short'
267
257
  })
268
258
  .replace('.', '');
269
259
  }
270
260
  getFullMonthName(monthNumber) {
271
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(this.locale, {
261
+ return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString(_t.locale, {
272
262
  month: 'long',
273
263
  year: 'numeric'
274
264
  });
@@ -393,8 +383,8 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
393
383
  if (this.dirty) {
394
384
  return this.isSameDate(date, this.focusedDate);
395
385
  }
396
- if (this.afInitFocusDate) {
397
- return this.isSameDate(date, this.afInitFocusDate);
386
+ if (this.afOpenCalendarTo) {
387
+ return this.isSameDate(date, this.afOpenCalendarTo);
398
388
  }
399
389
  return this.isSameMonth(date, new Date())
400
390
  ? this.isSameDate(date, new Date())
@@ -415,14 +405,14 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
415
405
  const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
416
406
  tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
417
407
  this.focusedDate = tempDate;
418
- this.drawCalendar(this.focusedDate);
419
408
  }
420
409
  selectYear(evt) {
421
410
  this.onDirty();
422
- const tempDate = this.focusedDate;
423
- tempDate.setFullYear(evt.target.value);
424
- this.focusedDate = tempDate;
425
- this.drawCalendar(this.focusedDate);
411
+ const selectedYear = parseInt(evt.target.value, 10);
412
+ // Skydda mot ogiltiga datum som 29 februari
413
+ const day = Math.min(this.focusedDate.getDate(), new Date(selectedYear, this.focusedDate.getMonth() + 1, 0).getDate());
414
+ const newDate = new Date(selectedYear, this.focusedDate.getMonth(), day);
415
+ this.focusedDate = newDate;
426
416
  }
427
417
  earliestSelectableYear() {
428
418
  if (this.afMinDate)
@@ -452,20 +442,7 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
452
442
  if (valid.length > 0)
453
443
  this.selectedDates = valid;
454
444
  }
455
- if (this.afInitFocusDate && isValid(this.afInitFocusDate)) {
456
- this.focusedDate = this.afInitFocusDate;
457
- }
458
- else if (this.selectedDates.length > 0) {
459
- this.focusedDate = this.selectedDates
460
- .slice()
461
- .sort((a, b) => a.getTime() - b.getTime())[0];
462
- }
463
- else {
464
- this.focusedDate = new Date();
465
- }
466
- this.drawCalendar(this.focusedDate);
467
- }
468
- componentWillUpdate() {
445
+ this.determineFocusedDate();
469
446
  this.drawCalendar(this.focusedDate);
470
447
  }
471
448
  async componentDidLoad() {
@@ -486,18 +463,18 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
486
463
  };
487
464
  }
488
465
  render() {
489
- return (h("div", { key: 'a65aa1b63553ff82c432a81fa9fd9821b88a39ab', class: {
466
+ return (h("div", { key: '2951c3cb75fbace29267998e7e17ed48fd7c934f', class: {
490
467
  'digi-calendar': true,
491
468
  'digi-calendar--hide': !this.afActive
492
- }, 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) => {
469
+ }, 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) => {
493
470
  this.selectMonth(evt);
494
- } }, this.months.map((month, index) => {
471
+ } }, _t.calendar.months.map((month, index) => {
495
472
  return h("option", { value: index }, month);
496
- })), h("digi-form-select", { key: '60bde04287db50b5d887ddcb31839f1fe159b09a', afLabel: "\u00C5r", "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
473
+ })), h("digi-form-select", { key: '2ac58393e542efb8dab01da4aa3367107646f524', afLabel: _t.calendar.year, "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
497
474
  this.selectYear(evt);
498
- } }, 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) +
499
- ', 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) +
500
- ', 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) => {
475
+ } }, 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) +
476
+ ', ' + _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) +
477
+ ', ' + _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) => {
501
478
  return (h("tr", null, week.map((day, i) => {
502
479
  if (this.afShowWeekNumber && i === 0) {
503
480
  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));
@@ -512,16 +489,18 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
512
489
  : null }, h("span", { "aria-hidden": "true" }, day.getDate()))));
513
490
  }
514
491
  })));
515
- })))), h("slot", { key: '081dffb3256ce8febd43fc0842bed7bee26cd228', name: "calendar-footer" })));
492
+ })))), h("slot", { key: 'a1d6061116378a7f60fbc8d779999db45cf04b86', name: "calendar-footer" })));
516
493
  }
517
494
  static get watchers() { return {
495
+ "focusedDate": ["focusedDateChanged"],
496
+ "afOpenCalendarTo": ["afOpenCalendarToChangeHandler"],
518
497
  "afSelectedDate": ["afSelectedDateChangeHandler"],
519
498
  "afSelectedDates": ["afSelectedDatesChangeHandler"]
520
499
  }; }
521
500
  static get style() { return DigiCalendarStyle0; }
522
501
  }, [6, "digi-calendar", {
523
502
  "afId": [1, "af-id"],
524
- "afInitFocusDate": [16],
503
+ "afOpenCalendarTo": [16],
525
504
  "afShowWeekNumber": [4, "af-show-week-number"],
526
505
  "afSelectedDate": [16],
527
506
  "afSelectedDates": [16],
@@ -532,8 +511,11 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
532
511
  "afYearSelect": [4, "af-year-select"],
533
512
  "selectedDates": [32],
534
513
  "focusedDate": [32],
535
- "dirty": [32]
514
+ "dirty": [32],
515
+ "activeCalendar": [32]
536
516
  }, [[4, "focusin", "focusoutHandler"], [8, "click", "clickHandler"]], {
517
+ "focusedDate": ["focusedDateChanged"],
518
+ "afOpenCalendarTo": ["afOpenCalendarToChangeHandler"],
537
519
  "afSelectedDate": ["afSelectedDateChangeHandler"],
538
520
  "afSelectedDates": ["afSelectedDatesChangeHandler"]
539
521
  }]);
@@ -11,6 +11,7 @@ const common = {
11
11
  required: 'Obligatoriskt',
12
12
  optional: 'Frivilligt',
13
13
  of: 'av',
14
+ and: 'och',
14
15
  today: 'Idag',
15
16
  cancel: 'Avbryt',
16
17
  canceled: 'Avbruten',
@@ -26,6 +27,24 @@ const common = {
26
27
  };
27
28
  const calendar = {
28
29
  screenReaderInstructions: 'För navigering mellan månader med piltangenterna, använd inte den virtuella markören.',
30
+ year: 'År',
31
+ month: 'Månad',
32
+ months: [
33
+ 'januari',
34
+ 'februari',
35
+ 'mars',
36
+ 'april',
37
+ 'maj',
38
+ 'juni',
39
+ 'juli',
40
+ 'augusti',
41
+ 'september',
42
+ 'oktober',
43
+ 'november',
44
+ 'december'
45
+ ],
46
+ previousMonth: 'föregående månad',
47
+ nextMonth: 'nästa månad',
29
48
  week: 'Vecka',
30
49
  weekdays: {
31
50
  mon: 'Måndag',
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h } from './p-e5abfc2d.js';
2
2
  import { r as randomIdGenerator } from './p-ffe5c0e8.js';
3
3
  import { b as FormInputType, a as FormInputMode, F as FormInputButtonVariation, d as FormInputVariation, c as FormInputValidation } from './p-c8429245.js';
4
- import { d as defineCustomElement$5 } from './p-98765f91.js';
4
+ import { d as defineCustomElement$5 } from './p-504118d4.js';
5
5
  import { d as defineCustomElement$4 } from './p-49a67d97.js';
6
6
  import { d as defineCustomElement$3 } from './p-bd19f8cd.js';
7
7
  import { d as defineCustomElement$2 } from './p-e795bd84.js';
@@ -27,7 +27,6 @@ const FormInput = /*@__PURE__*/ proxyCustomElement(class FormInput extends H {
27
27
  this.hasButton = undefined;
28
28
  this.dirty = false;
29
29
  this.touched = false;
30
- this.isEditing = false;
31
30
  this.afLabel = undefined;
32
31
  this.afLabelDescription = undefined;
33
32
  this.afType = FormInputType.TEXT;
@@ -66,6 +65,9 @@ const FormInput = /*@__PURE__*/ proxyCustomElement(class FormInput extends H {
66
65
  }
67
66
  onAfValueChanged(value) {
68
67
  this.value = value;
68
+ if (this._input && this._input.value !== String(value !== null && value !== void 0 ? value : '')) {
69
+ this._input.value = String(value !== null && value !== void 0 ? value : '');
70
+ }
69
71
  }
70
72
  afValidationTextWatch() {
71
73
  this.setActiveValidationMessage();
@@ -98,8 +100,8 @@ const FormInput = /*@__PURE__*/ proxyCustomElement(class FormInput extends H {
98
100
  'digi-form-input--large': this.afVariation === FormInputVariation.LARGE,
99
101
  'digi-form-input--neutral': this.afValidation === FormInputValidation.NEUTRAL,
100
102
  'digi-form-input--success': this.afValidation === FormInputValidation.SUCCESS,
101
- 'digi-form-input--error': !this.isEditing && this.afValidation === FormInputValidation.ERROR,
102
- 'digi-form-input--warning': !this.isEditing && this.afValidation === FormInputValidation.WARNING,
103
+ 'digi-form-input--error': this.afValidation === FormInputValidation.ERROR,
104
+ 'digi-form-input--warning': this.afValidation === FormInputValidation.WARNING,
103
105
  [`digi-form-input--button-variation-${this.afButtonVariation}`]: !!this.afButtonVariation,
104
106
  [`digi-form-input--has-button-${this.hasButton}`]: true,
105
107
  'digi-form-input--empty': !this.afValue &&
@@ -131,7 +133,6 @@ const FormInput = /*@__PURE__*/ proxyCustomElement(class FormInput extends H {
131
133
  this.afOnTouched.emit(e);
132
134
  this.touched = true;
133
135
  }
134
- this.isEditing = false;
135
136
  this.afOnBlur.emit(e);
136
137
  }
137
138
  changeHandler(e) {
@@ -163,10 +164,10 @@ const FormInput = /*@__PURE__*/ proxyCustomElement(class FormInput extends H {
163
164
  this.hasButton = !!this.hostElement.querySelector('[slot="button"]');
164
165
  }
165
166
  render() {
166
- return (h("div", { key: 'def034db4be8dcec58d6ee59c6ad9f5638cbc476', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, h("digi-form-label", { key: 'e461f9dd36690fc2aa08914972adcb8805121479', class: "digi-form-input__label", afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), h("div", { key: 'a986a18060e89a646e68e2e45bbc73d189bd5573', class: "digi-form-input__input-wrapper" }, h("input", Object.assign({ key: 'cb5e252a4bd3dab8f408c110ad0c37b0c5997129', class: "digi-form-input__input", ref: (el) => (this._input = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyDown: () => this.isEditing = true, onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-autocomplete": this.afAriaAutocomplete, "aria-invalid": this.afValidation === FormInputValidation.ERROR ? 'true' : 'false', "aria-controls": this.afAriaControls, autocomplete: this.afAutocomplete, autofocus: this.afAutofocus ? this.afAutofocus : null, maxLength: this.afMaxlength, minLength: this.afMinlength, max: this.afMax, min: this.afMin, step: this.afStep, list: this.afList, role: this.afRole, dirName: this.afDirname, required: this.afRequired, id: this.afId, name: this.afName, type: this.afType, value: this.afValue }, (this.afInputmode == FormInputMode.DEFAULT
167
+ return (h("div", { key: '6309c6b61d95e8a96c724c1493daac592aa79f81', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, h("digi-form-label", { key: '3ef5a2a1251e0e3c1c99a761482c4ec5ff634430', class: "digi-form-input__label", afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), h("div", { key: 'ebcb01079c78738339e5317cf9239f1a89e31921', class: "digi-form-input__input-wrapper" }, h("input", Object.assign({ key: '6ec3288227014624b27d7d10797fb7fde4c47f26', 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), onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-autocomplete": this.afAriaAutocomplete, "aria-invalid": this.afValidation === FormInputValidation.ERROR ? 'true' : 'false', "aria-controls": this.afAriaControls, autocomplete: this.afAutocomplete, autofocus: this.afAutofocus ? this.afAutofocus : null, maxLength: this.afMaxlength, minLength: this.afMinlength, max: this.afMax, min: this.afMin, step: this.afStep, list: this.afList, role: this.afRole, dirName: this.afDirname, required: this.afRequired, id: this.afId, name: this.afName, type: this.afType, value: this.afValue }, (this.afInputmode == FormInputMode.DEFAULT
167
168
  ? {}
168
- : { inputmode: this.afInputmode }))), h("slot", { key: '8a16fed00c0d4b8be2bb3f6e42cb11a920439e8c', name: "button" })), h("div", { key: '02415ad4300e58dfc8693fe4f16738cf822936a7', class: "digi-form-input__footer" }, h("div", { key: '8c3ffd5dfefa5303897d832b204d6b14a0a11f30', class: "digi-form-input__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, !this.isEditing && this.hasActiveValidationMessage &&
169
- this.afValidation != FormInputValidation.NEUTRAL && (h("digi-form-validation-message", { key: '931d4f21777a7013164adeb51e3008d9aeebce6a', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
169
+ : { inputmode: this.afInputmode }))), h("slot", { key: '0da5dfcd73e997a16bf3be18b4cbd3651cab7ebb', name: "button" })), h("div", { key: '4f24b7c3b070e5f8fbe4396d38865c1afa59709e', class: "digi-form-input__footer" }, h("div", { key: 'f0b6ee56051886efbecf82c136338c42130d80d8', class: "digi-form-input__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.hasActiveValidationMessage &&
170
+ this.afValidation != FormInputValidation.NEUTRAL && (h("digi-form-validation-message", { key: '0f00497d0bf3c0da8a11f60fbdb302c11b41e8aa', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
170
171
  }
171
172
  get hostElement() { return this; }
172
173
  static get watchers() { return {
@@ -212,7 +213,6 @@ const FormInput = /*@__PURE__*/ proxyCustomElement(class FormInput extends H {
212
213
  "hasButton": [32],
213
214
  "dirty": [32],
214
215
  "touched": [32],
215
- "isEditing": [32],
216
216
  "afMGetFormControlElement": [64]
217
217
  }, undefined, {
218
218
  "value": ["onValueChanged"],
@@ -49,7 +49,7 @@ import './p-d1886fff.js';
49
49
  import './p-a6ca40fc.js';
50
50
  import './p-b0e88537.js';
51
51
  import './p-cdcaf0eb.js';
52
- import { _ as _t } from './p-08cf2c0e.js';
52
+ import { _ as _t } from './p-903a27d9.js';
53
53
  import { d as defineCustomElement$2 } from './p-4a9363d9.js';
54
54
  import { d as defineCustomElement$1 } from './p-71172b7c.js';
55
55
 
@@ -2,7 +2,7 @@ import { p as proxyCustomElement, H, c as createEvent, h } from './p-e5abfc2d.js
2
2
  import { r as randomIdGenerator } from './p-ffe5c0e8.js';
3
3
  import { l as logger } from './p-e3d2e899.js';
4
4
  import { a as FormSelectVariation, F as FormSelectValidation } from './p-f447b984.js';
5
- import { d as defineCustomElement$7 } from './p-98765f91.js';
5
+ import { d as defineCustomElement$7 } from './p-504118d4.js';
6
6
  import { d as defineCustomElement$6 } from './p-49a67d97.js';
7
7
  import { d as defineCustomElement$5 } from './p-1e698eb3.js';
8
8
  import { d as defineCustomElement$4 } from './p-bd19f8cd.js';
@@ -134,17 +134,17 @@ const FormSelect = /*@__PURE__*/ proxyCustomElement(class FormSelect extends H {
134
134
  : false;
135
135
  }
136
136
  render() {
137
- return (h("div", { key: '383eae4d2e740bd424d76a095abe09e98602c0a0', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '9cd23532e83bbd843f6c6480562cbffcbe1780a2', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '58ea8cf5d755a8ba5b84e9010097ad3d2b6f8576', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '7c8a35e191cde25892e107415b453a6787a9ab23', class: "digi-form-select__select-wrapper" }, h("select", { key: 'ad62a59613e26f44eaaec5725174e0256028d886', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
137
+ return (h("div", { key: '09b309b4f5b1397162fa1b398f58d1696ebd2479', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: 'e2d824232a6630111b87f325e3e5583d2dd08bd3', class: "digi-form-select__label-group" }, h("digi-form-label", { key: 'f60f04f30a9594d39b439239230441241d4fbe6c', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '621062b207232904aa2a6a6fbaa93ebedb146210', class: "digi-form-select__select-wrapper" }, h("select", { key: 'd199ce9bf648952a1309f8ac8914b9da59f15f98', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
138
138
  ? 'true'
139
- : 'false', ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '83b51b96cc3f59fa33ca7233a887e19466aadd1a', class: {
139
+ : 'false', ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: '1537f5bbf4d76e607663b241913912e034af2006', class: {
140
140
  'digi-form-select__select-option': true,
141
141
  'digi-form-select__select-option--initial-value': true
142
142
  }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
143
143
  return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
144
- })), h("digi-icon-input-select-marker", { key: 'f2556cbc4c38b65ce652511b03acb59f5082c577', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: '619dfa80c868526ed3ff28d120f3798743f9c011', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
144
+ })), h("digi-icon-input-select-marker", { key: '43cc5722be7b769a59661c6128c3bd3149172adc', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: '74e420460572eeb8d9ca308190dc33191b608b4e', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
145
145
  e.stopImmediatePropagation();
146
146
  this.getOptions();
147
- } }, h("slot", { key: 'f29d471016704b271008e81fa06320ada1ecfb4f' })), h("div", { key: '4393c0e4fcf3a36bcd034f60ec6bbe49eedac057', class: "digi-form-select__footer" }, h("div", { key: '579755d6a2a9c3c5a9573beae36454cdb3d2bd3f', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '53f717a8fdce19710c9e1761476e522f7151e24a', "af-variation": this.afValidation }, this.afValidationText))))));
147
+ } }, h("slot", { key: 'd77e562c340452ec68c7dedda478c4d66933324a' })), h("div", { key: '81a982666ecded6b8b614bff3598b4dcaf91b2af', class: "digi-form-select__footer" }, h("div", { key: '5d6c5b802eba0c2238dec9930a6655f3ce57342c', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: 'f2c347f0404db61bace89dd4aa7e98c50b7ac30d', "af-variation": this.afValidation }, this.afValidationText))))));
148
148
  }
149
149
  get hostElement() { return this; }
150
150
  static get watchers() { return {
@@ -207,15 +207,15 @@
207
207
  },
208
208
  {
209
209
  "name": "af-multiple-dates",
210
- "description": "Sätt denna till true för att kunna markera mer en ett datum i kalendern. Förvalt är false"
210
+ "description": "Sätt denna till true för att tillåta val av flera datum"
211
211
  },
212
212
  {
213
213
  "name": "af-show-week-number",
214
- "description": "Visa veckonummer i kalender. Förvalt är false"
214
+ "description": "Visa veckonummer i kalender"
215
215
  },
216
216
  {
217
217
  "name": "af-year-select",
218
- "description": "Sätt denna till true för att kunna välja år genom en väljare. Förvalt är false"
218
+ "description": "Sätt denna till true för att visa väljare för år"
219
219
  }
220
220
  ]
221
221
  },
@@ -232,31 +232,31 @@
232
232
  },
233
233
  {
234
234
  "name": "af-close-on-select",
235
- "description": "Sätt denna till true om kalendern ska stängas när användaren väljer ett datum. Förvalt är false"
235
+ "description": "Sätt denna till true om kalendern ska stängas när användaren väljer ett datum"
236
236
  },
237
237
  {
238
238
  "name": "af-disable-validation",
239
- "description": "Sätt denna till true för att stänga av komponentens egna validering."
239
+ "description": "Sätt denna till true för att stänga av komponentens egna validering"
240
240
  },
241
241
  {
242
242
  "name": "af-id",
243
- "description": "Sätter ett id attribut."
243
+ "description": "Sätter attributet id för inputfältet, och utgör basen för andra id:n i komponenten"
244
244
  },
245
245
  {
246
246
  "name": "af-label",
247
- "description": "Texten till labelelementet"
247
+ "description": "Texten till etiketten"
248
248
  },
249
249
  {
250
250
  "name": "af-label-description",
251
- "description": "Valfri beskrivande text"
251
+ "description": "Beskrivande text som bör beskriva det förväntade formatet och/eller andra krav"
252
252
  },
253
253
  {
254
254
  "name": "af-multiple-dates",
255
- "description": "Sätt denna till true för att kunna markera mer en ett datum i kalendern. Förvalt är false"
255
+ "description": "Sätt denna till true för att kunna markera mer en ett datum i kalendern"
256
256
  },
257
257
  {
258
258
  "name": "af-name",
259
- "description": "Sätter attributet 'name' på det inre input-elementet."
259
+ "description": "Sätter attributet 'name' på det inre input-elementet"
260
260
  },
261
261
  {
262
262
  "name": "af-open-calendar-aria-label",
@@ -264,15 +264,15 @@
264
264
  },
265
265
  {
266
266
  "name": "af-required",
267
- "description": "Sätter attributet 'required'."
267
+ "description": "Sätter attributet 'required'"
268
268
  },
269
269
  {
270
270
  "name": "af-required-text",
271
- "description": "Sätter text för afRequired."
271
+ "description": "Sätter text för afRequired"
272
272
  },
273
273
  {
274
274
  "name": "af-show-week-number",
275
- "description": "Visa veckonummer i kalender. Förvalt är false"
275
+ "description": "Visa veckonummer i kalender"
276
276
  },
277
277
  {
278
278
  "name": "af-validation",
@@ -280,15 +280,15 @@
280
280
  },
281
281
  {
282
282
  "name": "af-validation-disabled-date",
283
- "description": "Sätter valideringsmeddelandet"
283
+ "description": "Sätter valideringsmeddelandet för den inbyggda valideringen av min/max-datum"
284
284
  },
285
285
  {
286
286
  "name": "af-validation-text",
287
- "description": "Sätter valideringsmeddelandet"
287
+ "description": "Sätter valideringsmeddelandet för egen validering"
288
288
  },
289
289
  {
290
290
  "name": "af-validation-wrong-format",
291
- "description": "Sätter valideringsmeddelandet"
291
+ "description": "Sätter valideringsmeddelandet för den inbyggda formatvalideringen"
292
292
  },
293
293
  {
294
294
  "name": "af-year-select",
@@ -683,19 +683,19 @@
683
683
  "attributes": [
684
684
  {
685
685
  "name": "af-all-categories",
686
- "description": "Ifall listan ska börja med en 'Alla kategorier' kategori"
686
+ "description": "Ifall listan ska börja med en knapp för 'Alla kategorier'"
687
687
  },
688
688
  {
689
689
  "name": "af-all-categories-selected",
690
- "description": "Ifall 'Alla kategorier' kategorin ska börja vald"
690
+ "description": "Ifall 'Alla kategorier' kategorin ska vara vald från start"
691
691
  },
692
692
  {
693
693
  "name": "af-all-categories-text",
694
- "description": "Namnet på 'Alla kategorier' kategorin"
694
+ "description": "Namnet på 'Alla kategorier'-kategorin"
695
695
  },
696
696
  {
697
697
  "name": "af-hide-toggle",
698
- "description": "Visa alla kategorier och dölj knappen för att \"visa fler/visa färre"
698
+ "description": "Visa alla kategorier och dölj knappen för att visa fler/färre"
699
699
  },
700
700
  {
701
701
  "name": "af-multiselect",
@@ -703,7 +703,7 @@
703
703
  },
704
704
  {
705
705
  "name": "af-start-collapsed",
706
- "description": "Ifall listan ska var kollapsad från början"
706
+ "description": "Ifall listan ska vara kollapsad från början"
707
707
  },
708
708
  {
709
709
  "name": "af-visible-collapsed",
@@ -1427,7 +1427,7 @@
1427
1427
  },
1428
1428
  {
1429
1429
  "name": "af-disable-validation",
1430
- "description": "Inaktiverar valideringen"
1430
+ "description": "Döljer valideringsmeddelandet."
1431
1431
  },
1432
1432
  {
1433
1433
  "name": "af-id",
@@ -1504,7 +1504,7 @@
1504
1504
  },
1505
1505
  {
1506
1506
  "name": "af-disable-validation",
1507
- "description": "Inaktiverar valideringen"
1507
+ "description": "Döljer valideringsmeddelandet."
1508
1508
  },
1509
1509
  {
1510
1510
  "name": "af-empty-search-message",