@designsystem-se/af 36.0.2 → 36.0.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) 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-button.js +1 -1
  7. package/components/digi-calendar-datepicker.d.ts +1 -1
  8. package/components/digi-calendar-datepicker.js +4 -4
  9. package/components/digi-calendar-week-view.d.ts +1 -1
  10. package/components/digi-calendar-week-view.js +1 -1
  11. package/components/digi-calendar.d.ts +1 -1
  12. package/components/digi-calendar.js +1 -1
  13. package/components/digi-chart-line.d.ts +1 -1
  14. package/components/digi-chart-line.js +1 -1
  15. package/components/digi-code-block.d.ts +1 -1
  16. package/components/digi-code-block.js +1 -1
  17. package/components/digi-code-example.d.ts +1 -1
  18. package/components/digi-code-example.js +3 -3
  19. package/components/digi-code.d.ts +1 -1
  20. package/components/digi-context-menu.d.ts +1 -1
  21. package/components/digi-context-menu.js +1 -1
  22. package/components/digi-dialog.d.ts +1 -1
  23. package/components/digi-dialog.js +3 -3
  24. package/components/digi-expandable-accordion.d.ts +1 -1
  25. package/components/digi-expandable-faq-item.d.ts +1 -1
  26. package/components/digi-expandable-faq-item.js +1 -1
  27. package/components/digi-expandable-faq.d.ts +1 -1
  28. package/components/digi-footer-card.d.ts +1 -1
  29. package/components/digi-footer.d.ts +1 -1
  30. package/components/digi-footer.js +1 -1
  31. package/components/digi-form-category-filter.d.ts +1 -1
  32. package/components/digi-form-category-filter.js +1 -1
  33. package/components/digi-form-checkbox.d.ts +1 -1
  34. package/components/digi-form-checkbox.js +1 -1
  35. package/components/digi-form-error-list.d.ts +1 -1
  36. package/components/digi-form-error-list.js +3 -3
  37. package/components/digi-form-fieldset.d.ts +1 -1
  38. package/components/digi-form-file-upload.d.ts +1 -1
  39. package/components/digi-form-file-upload.js +1 -1
  40. package/components/digi-form-filter.d.ts +1 -1
  41. package/components/digi-form-filter.js +2 -2
  42. package/components/digi-form-input-search.d.ts +1 -1
  43. package/components/digi-form-input-search.js +1 -1
  44. package/components/digi-form-input.d.ts +1 -1
  45. package/components/digi-form-label.d.ts +1 -1
  46. package/components/digi-form-radiobutton.d.ts +1 -1
  47. package/components/digi-form-radiogroup.d.ts +1 -1
  48. package/components/digi-form-receipt.d.ts +1 -1
  49. package/components/digi-form-receipt.js +1 -1
  50. package/components/digi-form-select-filter.d.ts +1 -1
  51. package/components/digi-form-select-filter.js +3 -3
  52. package/components/digi-form-select.d.ts +1 -1
  53. package/components/digi-form-select.js +1 -1
  54. package/components/digi-form-textarea.d.ts +1 -1
  55. package/components/digi-form-validation-message.d.ts +1 -1
  56. package/components/digi-header-avatar.d.ts +1 -1
  57. package/components/digi-header-avatar.js +1 -1
  58. package/components/digi-header-navigation-item.d.ts +1 -1
  59. package/components/digi-header-navigation.d.ts +1 -1
  60. package/components/digi-header-navigation.js +2 -2
  61. package/components/digi-header-notification.d.ts +1 -1
  62. package/components/digi-header.d.ts +1 -1
  63. package/components/digi-header.js +3 -3
  64. package/components/digi-icon-accessibility-deaf.d.ts +1 -1
  65. package/components/digi-icon-accessibility-universal.d.ts +1 -1
  66. package/components/digi-icon-apple.d.ts +1 -1
  67. package/components/digi-icon-archive-outline.d.ts +1 -1
  68. package/components/digi-icon-archive.d.ts +1 -1
  69. package/components/digi-icon-arrow-back.d.ts +1 -1
  70. package/components/digi-icon-arrow-down.d.ts +1 -1
  71. package/components/digi-icon-arrow-left.d.ts +1 -1
  72. package/components/digi-icon-arrow-right.d.ts +1 -1
  73. package/components/digi-icon-arrow-sign-in.d.ts +1 -1
  74. package/components/digi-icon-arrow-sign-out.d.ts +1 -1
  75. package/components/digi-icon-arrow-up.d.ts +1 -1
  76. package/components/digi-icon-at.d.ts +1 -1
  77. package/components/digi-icon-bars.d.ts +1 -1
  78. package/components/digi-icon-bell-filled.d.ts +1 -1
  79. package/components/digi-icon-bell.d.ts +1 -1
  80. package/components/digi-icon-book.d.ts +1 -1
  81. package/components/digi-icon-bookmark-outline.d.ts +1 -1
  82. package/components/digi-icon-bookmark-solid.d.ts +1 -1
  83. package/components/digi-icon-bubble-ellipsis.d.ts +1 -1
  84. package/components/digi-icon-bubble.d.ts +1 -1
  85. package/components/digi-icon-building-outline.d.ts +1 -1
  86. package/components/digi-icon-building-solid.d.ts +1 -1
  87. package/components/digi-icon-bullseye.d.ts +1 -1
  88. package/components/digi-icon-calculator-solid.d.ts +1 -1
  89. package/components/digi-icon-calendar-alt-alert.d.ts +1 -1
  90. package/components/digi-icon-calendar-alt.d.ts +1 -1
  91. package/components/digi-icon-calendar.d.ts +1 -1
  92. package/components/digi-icon-caret-circle-right.d.ts +1 -1
  93. package/components/digi-icon-caret-down.d.ts +1 -1
  94. package/components/digi-icon-caret-left.d.ts +1 -1
  95. package/components/digi-icon-caret-right.d.ts +1 -1
  96. package/components/digi-icon-caret-up.d.ts +1 -1
  97. package/components/digi-icon-chart.d.ts +1 -1
  98. package/components/digi-icon-chat.d.ts +1 -1
  99. package/components/digi-icon-check-circle-reg-alt.d.ts +1 -1
  100. package/components/digi-icon-check-circle-solid.d.ts +1 -1
  101. package/components/digi-icon-check.d.ts +1 -1
  102. package/components/digi-icon-checklist.d.ts +1 -1
  103. package/components/digi-icon-chevron-down.d.ts +1 -1
  104. package/components/digi-icon-chevron-left.d.ts +1 -1
  105. package/components/digi-icon-chevron-right.d.ts +1 -1
  106. package/components/digi-icon-chevron-up.d.ts +1 -1
  107. package/components/digi-icon-clock.d.ts +1 -1
  108. package/components/digi-icon-communication-play-solid.d.ts +1 -1
  109. package/components/digi-icon-compress-alt.d.ts +1 -1
  110. package/components/digi-icon-comunication-case.d.ts +1 -1
  111. package/components/digi-icon-comunication-flag.d.ts +1 -1
  112. package/components/digi-icon-comunication-graduate.d.ts +1 -1
  113. package/components/digi-icon-comunication-play.d.ts +1 -1
  114. package/components/digi-icon-cooperation.d.ts +1 -1
  115. package/components/digi-icon-copy.d.ts +1 -1
  116. package/components/digi-icon-danger-outline.d.ts +1 -1
  117. package/components/digi-icon-download.d.ts +1 -1
  118. package/components/digi-icon-dxa.d.ts +1 -1
  119. package/components/digi-icon-edit.d.ts +1 -1
  120. package/components/digi-icon-ellipsis.d.ts +1 -1
  121. package/components/digi-icon-envelope-filled.d.ts +1 -1
  122. package/components/digi-icon-envelope.d.ts +1 -1
  123. package/components/digi-icon-exclamation-circle-filled.d.ts +1 -1
  124. package/components/digi-icon-exclamation-triangle-filled.d.ts +1 -1
  125. package/components/digi-icon-exclamation-triangle-warning.d.ts +1 -1
  126. package/components/digi-icon-exclamation-triangle.d.ts +1 -1
  127. package/components/digi-icon-expand-alt.d.ts +1 -1
  128. package/components/digi-icon-external-link-alt.d.ts +1 -1
  129. package/components/digi-icon-eye-slash.d.ts +1 -1
  130. package/components/digi-icon-eye.d.ts +1 -1
  131. package/components/digi-icon-facebook-square.d.ts +1 -1
  132. package/components/digi-icon-file-add.d.ts +1 -1
  133. package/components/digi-icon-file-document.d.ts +1 -1
  134. package/components/digi-icon-file-excel.d.ts +1 -1
  135. package/components/digi-icon-file-export.d.ts +1 -1
  136. package/components/digi-icon-file-governing.d.ts +1 -1
  137. package/components/digi-icon-file-pdf.d.ts +1 -1
  138. package/components/digi-icon-file-powerpoint.d.ts +1 -1
  139. package/components/digi-icon-file-remove.d.ts +1 -1
  140. package/components/digi-icon-file-word.d.ts +1 -1
  141. package/components/digi-icon-film.d.ts +1 -1
  142. package/components/digi-icon-filter.d.ts +1 -1
  143. package/components/digi-icon-folder-add.d.ts +1 -1
  144. package/components/digi-icon-folder-directory.d.ts +1 -1
  145. package/components/digi-icon-folder-open.d.ts +1 -1
  146. package/components/digi-icon-folder.d.ts +1 -1
  147. package/components/digi-icon-globe-filled.d.ts +1 -1
  148. package/components/digi-icon-globe.d.ts +1 -1
  149. package/components/digi-icon-headphones.d.ts +1 -1
  150. package/components/digi-icon-heart-solid.d.ts +1 -1
  151. package/components/digi-icon-heart.d.ts +1 -1
  152. package/components/digi-icon-history.d.ts +1 -1
  153. package/components/digi-icon-home.d.ts +1 -1
  154. package/components/digi-icon-image.d.ts +1 -1
  155. package/components/digi-icon-info-circle-solid.d.ts +1 -1
  156. package/components/digi-icon-input-select-marker.d.ts +1 -1
  157. package/components/digi-icon-instagram.d.ts +1 -1
  158. package/components/digi-icon-job-suggestion.d.ts +1 -1
  159. package/components/digi-icon-language-outline.d.ts +1 -1
  160. package/components/digi-icon-language.d.ts +1 -1
  161. package/components/digi-icon-laptop-phone.d.ts +1 -1
  162. package/components/digi-icon-lattlast.d.ts +1 -1
  163. package/components/digi-icon-licence-bus.d.ts +1 -1
  164. package/components/digi-icon-licence-car.d.ts +1 -1
  165. package/components/digi-icon-licence-motorcycle.d.ts +1 -1
  166. package/components/digi-icon-licence-truck.d.ts +1 -1
  167. package/components/digi-icon-lightbulb.d.ts +1 -1
  168. package/components/digi-icon-linkedin-in.d.ts +1 -1
  169. package/components/digi-icon-list-ul.d.ts +1 -1
  170. package/components/digi-icon-lock.d.ts +1 -1
  171. package/components/digi-icon-marker-filled.d.ts +1 -1
  172. package/components/digi-icon-marker.d.ts +1 -1
  173. package/components/digi-icon-media-course.d.ts +1 -1
  174. package/components/digi-icon-media-podcast.d.ts +1 -1
  175. package/components/digi-icon-microphone-off.d.ts +1 -1
  176. package/components/digi-icon-microphone.d.ts +1 -1
  177. package/components/digi-icon-minus.d.ts +1 -1
  178. package/components/digi-icon-move.d.ts +1 -1
  179. package/components/digi-icon-news.d.ts +1 -1
  180. package/components/digi-icon-notification-error.d.ts +1 -1
  181. package/components/digi-icon-notification-info.d.ts +1 -1
  182. package/components/digi-icon-notification-succes.d.ts +1 -1
  183. package/components/digi-icon-notification-warning.d.ts +1 -1
  184. package/components/digi-icon-online-computervideo.d.ts +1 -1
  185. package/components/digi-icon-online-interview.d.ts +1 -1
  186. package/components/digi-icon-online-meeting.d.ts +1 -1
  187. package/components/digi-icon-online-task.d.ts +1 -1
  188. package/components/digi-icon-online-video.d.ts +1 -1
  189. package/components/digi-icon-open-source.d.ts +1 -1
  190. package/components/digi-icon-palette.d.ts +1 -1
  191. package/components/digi-icon-paperclip.d.ts +1 -1
  192. package/components/digi-icon-paste.d.ts +1 -1
  193. package/components/digi-icon-pen.d.ts +1 -1
  194. package/components/digi-icon-phone-hangup.d.ts +1 -1
  195. package/components/digi-icon-phone.d.ts +1 -1
  196. package/components/digi-icon-plus.d.ts +1 -1
  197. package/components/digi-icon-pod.d.ts +1 -1
  198. package/components/digi-icon-print.d.ts +1 -1
  199. package/components/digi-icon-read.d.ts +1 -1
  200. package/components/digi-icon-redo.d.ts +1 -1
  201. package/components/digi-icon-scale.d.ts +1 -1
  202. package/components/digi-icon-screensharing-off.d.ts +1 -1
  203. package/components/digi-icon-screensharing.d.ts +1 -1
  204. package/components/digi-icon-search.d.ts +1 -1
  205. package/components/digi-icon-send-outline.d.ts +1 -1
  206. package/components/digi-icon-send-solid.d.ts +1 -1
  207. package/components/digi-icon-settings.d.ts +1 -1
  208. package/components/digi-icon-share-alt.d.ts +1 -1
  209. package/components/digi-icon-share-chain.d.ts +1 -1
  210. package/components/digi-icon-sign.d.ts +1 -1
  211. package/components/digi-icon-sliders-h.d.ts +1 -1
  212. package/components/digi-icon-sokkandidat.d.ts +1 -1
  213. package/components/digi-icon-sort-down.d.ts +1 -1
  214. package/components/digi-icon-sort-up.d.ts +1 -1
  215. package/components/digi-icon-sort.d.ts +1 -1
  216. package/components/digi-icon-spinner.d.ts +1 -1
  217. package/components/digi-icon-star-reg.d.ts +1 -1
  218. package/components/digi-icon-star.d.ts +1 -1
  219. package/components/digi-icon-suitcase-outline.d.ts +1 -1
  220. package/components/digi-icon-suitcase-solid.d.ts +1 -1
  221. package/components/digi-icon-system-assistance.d.ts +1 -1
  222. package/components/digi-icon-table-column.d.ts +1 -1
  223. package/components/digi-icon-table-row.d.ts +1 -1
  224. package/components/digi-icon-table.d.ts +1 -1
  225. package/components/digi-icon-task-done.d.ts +1 -1
  226. package/components/digi-icon-toggle-off.d.ts +1 -1
  227. package/components/digi-icon-toggle-on.d.ts +1 -1
  228. package/components/digi-icon-trash.d.ts +1 -1
  229. package/components/digi-icon-twitter.d.ts +1 -1
  230. package/components/digi-icon-tyck-till.d.ts +1 -1
  231. package/components/digi-icon-unlock.d.ts +1 -1
  232. package/components/digi-icon-update.d.ts +1 -1
  233. package/components/digi-icon-upload.d.ts +1 -1
  234. package/components/digi-icon-user-add.d.ts +1 -1
  235. package/components/digi-icon-user-alt.d.ts +1 -1
  236. package/components/digi-icon-user-edit.d.ts +1 -1
  237. package/components/digi-icon-users-solid.d.ts +1 -1
  238. package/components/digi-icon-validation-error.d.ts +1 -1
  239. package/components/digi-icon-validation-success.d.ts +1 -1
  240. package/components/digi-icon-validation-warning.d.ts +1 -1
  241. package/components/digi-icon-videocamera-off.d.ts +1 -1
  242. package/components/digi-icon-videocamera.d.ts +1 -1
  243. package/components/digi-icon-volume.d.ts +1 -1
  244. package/components/digi-icon-web-tv.d.ts +1 -1
  245. package/components/digi-icon-webinar.d.ts +1 -1
  246. package/components/digi-icon-wifi-signal0.d.ts +1 -1
  247. package/components/digi-icon-wifi-signal1.d.ts +1 -1
  248. package/components/digi-icon-wifi-signal2.d.ts +1 -1
  249. package/components/digi-icon-wifi-signal3.d.ts +1 -1
  250. package/components/digi-icon-window.d.ts +1 -1
  251. package/components/digi-icon-x-button-outline.d.ts +1 -1
  252. package/components/digi-icon-x-button.d.ts +1 -1
  253. package/components/digi-icon-x.d.ts +1 -1
  254. package/components/digi-icon-youtube.d.ts +1 -1
  255. package/components/digi-info-card-multi-container.d.ts +1 -1
  256. package/components/digi-info-card-multi.d.ts +1 -1
  257. package/components/digi-info-card.d.ts +1 -1
  258. package/components/digi-info-card.js +2 -2
  259. package/components/digi-layout-block.d.ts +1 -1
  260. package/components/digi-layout-columns.d.ts +1 -1
  261. package/components/digi-layout-container.d.ts +1 -1
  262. package/components/digi-link-button.d.ts +1 -1
  263. package/components/digi-link-external.d.ts +1 -1
  264. package/components/digi-link-internal.d.ts +1 -1
  265. package/components/digi-link-internal.js +1 -1
  266. package/components/digi-link.d.ts +1 -1
  267. package/components/digi-list.d.ts +1 -1
  268. package/components/digi-loader-skeleton.d.ts +1 -1
  269. package/components/digi-loader-spinner.d.ts +1 -1
  270. package/components/digi-logo.d.ts +1 -1
  271. package/components/digi-logo.js +1 -1
  272. package/components/digi-media-figure.d.ts +1 -1
  273. package/components/digi-media-image.d.ts +1 -1
  274. package/components/digi-navigation-breadcrumbs.d.ts +1 -1
  275. package/components/digi-navigation-pagination.d.ts +1 -1
  276. package/components/digi-navigation-pagination.js +2 -2
  277. package/components/digi-navigation-sidebar-button.d.ts +1 -1
  278. package/components/digi-navigation-sidebar-button.js +1 -1
  279. package/components/digi-navigation-sidebar.d.ts +1 -1
  280. package/components/digi-navigation-sidebar.js +1 -1
  281. package/components/digi-navigation-vertical-menu-item.d.ts +1 -1
  282. package/components/digi-navigation-vertical-menu-item.js +1 -1
  283. package/components/digi-navigation-vertical-menu.d.ts +1 -1
  284. package/components/digi-notification-alert.d.ts +1 -1
  285. package/components/digi-notification-alert.js +1 -1
  286. package/components/digi-notification-error-page.d.ts +1 -1
  287. package/components/digi-notification-error-page.js +1 -1
  288. package/components/digi-progress-circle.d.ts +1 -1
  289. package/components/digi-progress-indicator.d.ts +1 -1
  290. package/components/digi-progress-indicator.js +1 -1
  291. package/components/digi-progress-list-item.d.ts +1 -1
  292. package/components/digi-progress-list.d.ts +1 -1
  293. package/components/digi-progressbar.d.ts +1 -1
  294. package/components/digi-quote.d.ts +1 -1
  295. package/components/digi-quote.js +1 -1
  296. package/components/digi-table.d.ts +1 -1
  297. package/components/digi-tablist-panel.d.ts +1 -1
  298. package/components/digi-tablist.d.ts +1 -1
  299. package/components/digi-tag-media.d.ts +1 -1
  300. package/components/digi-tag.d.ts +1 -1
  301. package/components/digi-tag.js +1 -1
  302. package/components/digi-title-logo.d.ts +1 -1
  303. package/components/digi-title-logo.js +1 -1
  304. package/components/digi-tools-feedback-banner.d.ts +1 -1
  305. package/components/digi-tools-feedback-rating.d.ts +1 -1
  306. package/components/digi-tools-feedback.d.ts +1 -1
  307. package/components/digi-tools-feedback.js +3 -3
  308. package/components/digi-tools-theme-provider.d.ts +1 -1
  309. package/components/digi-tools-theme-provider.js +18 -5
  310. package/components/digi-typography-heading-jumbo.d.ts +1 -1
  311. package/components/digi-typography-meta.d.ts +1 -1
  312. package/components/digi-typography-preamble.d.ts +1 -1
  313. package/components/digi-typography-time.d.ts +1 -1
  314. package/components/digi-typography.d.ts +1 -1
  315. package/components/digi-util-breakpoint-observer.d.ts +1 -1
  316. package/components/digi-util-detect-click-outside.d.ts +1 -1
  317. package/components/digi-util-detect-focus-outside.d.ts +1 -1
  318. package/components/digi-util-intersection-observer.d.ts +1 -1
  319. package/components/digi-util-keydown-handler.d.ts +1 -1
  320. package/components/digi-util-keyup-handler.d.ts +1 -1
  321. package/components/digi-util-mutation-observer.d.ts +1 -1
  322. package/components/digi-util-resize-observer.d.ts +1 -1
  323. package/components/index.d.ts +284 -284
  324. package/components/index.js +1 -1
  325. package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
  326. package/components/{p-44f143ea.js → p-36dad6f1.js} +2 -2
  327. package/components/{p-cd0370eb.js → p-3fad7281.js} +2 -2
  328. package/components/p-606ba731.js +165 -0
  329. package/components/p-8fee3d97.js +163 -0
  330. package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
  331. package/components/p-b8c862c0.js +66 -0
  332. package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
  333. package/components/p-d7ef9cb1.js +13 -0
  334. package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
  335. package/custom-elements.json +4 -0
  336. package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
  337. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  338. package/dist/cjs/digi-button_37.cjs.entry.js +5254 -0
  339. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  340. package/dist/cjs/digi-code-block.cjs.entry.js +89 -0
  341. package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
  342. package/dist/cjs/digi-dialog.cjs.entry.js +6 -20
  343. package/dist/cjs/digi-footer.cjs.entry.js +4 -18
  344. package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -18
  345. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
  346. package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -8
  347. package/dist/cjs/digi-form-receipt.cjs.entry.js +4 -18
  348. package/dist/cjs/digi-form-select-filter.cjs.entry.js +6 -20
  349. package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
  350. package/dist/cjs/digi-header-navigation.cjs.entry.js +4 -18
  351. package/dist/cjs/digi-header.cjs.entry.js +5 -19
  352. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  353. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  354. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +4 -18
  355. package/dist/cjs/digi-notification-alert.cjs.entry.js +4 -18
  356. package/dist/cjs/digi-notification-error-page.cjs.entry.js +4 -18
  357. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  358. package/dist/cjs/digi-title-logo.cjs.entry.js +4 -18
  359. package/dist/cjs/digi-tools-feedback.cjs.entry.js +7 -21
  360. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  361. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  362. package/dist/cjs/index-7a477838.js +4 -92
  363. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  364. package/dist/cjs/index.cjs.js +158 -166
  365. package/dist/cjs/loader.cjs.js +1 -1
  366. package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-e41bd69d.js} +158 -0
  367. package/dist/collection/components/_button/button/button.css +6 -6
  368. package/dist/collection/components/_calendar/calendar/calendar.css +5 -0
  369. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +339 -102
  370. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  371. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  372. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  373. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +339 -102
  374. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
  375. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  376. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  377. package/dist/collection/components/_header/header-avatar/header-avatar.css +338 -101
  378. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  379. package/dist/collection/components/_link/link-internal/link-internal.css +338 -101
  380. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  381. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  382. package/dist/collection/components/_quote/quote/quote.css +2 -2
  383. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  384. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +105 -2
  385. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  386. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  387. package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
  388. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  389. package/dist/collection/design-tokens/components/_calendar.variables.scss +1 -0
  390. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  391. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  392. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  393. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  394. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
  395. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  396. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  397. package/dist/collection/design-tokens/components/_logo.variables.scss +19 -16
  398. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  399. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  400. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  401. package/dist/collection/enums.js +1 -0
  402. package/dist/collection/styles/src/_alias.mixin.scss +270 -128
  403. package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
  404. package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +139 -0
  405. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
  406. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
  407. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  408. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +1 -0
  409. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  410. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  411. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  412. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  413. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
  414. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  415. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  416. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  417. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  418. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  419. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  420. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  421. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  422. package/dist/digi-arbetsformedlingen/p-014a7047.entry.js +1 -0
  423. package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
  424. package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
  425. package/dist/digi-arbetsformedlingen/p-158037f8.entry.js +1 -0
  426. package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
  427. package/dist/digi-arbetsformedlingen/p-1887ef59.entry.js +1 -0
  428. package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
  429. package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
  430. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  431. package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
  432. package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
  433. package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
  434. package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
  435. package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
  436. package/dist/digi-arbetsformedlingen/p-6bf36a39.entry.js +1 -0
  437. package/dist/digi-arbetsformedlingen/p-7a6a447c.entry.js +1 -0
  438. package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
  439. package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
  440. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  441. package/dist/digi-arbetsformedlingen/p-a7372448.entry.js +1 -0
  442. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  443. package/dist/digi-arbetsformedlingen/p-cd77a916.entry.js +1 -0
  444. package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
  445. package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
  446. package/dist/digi-arbetsformedlingen/p-f358d8b2.entry.js +1 -0
  447. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  448. package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
  449. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +270 -128
  450. package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
  451. package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +139 -0
  452. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
  453. package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
  454. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  455. package/dist/esm/digi-button_37.entry.js +5214 -0
  456. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  457. package/dist/esm/digi-code-block.entry.js +85 -0
  458. package/dist/esm/digi-code-example.entry.js +2 -3
  459. package/dist/esm/digi-dialog.entry.js +5 -19
  460. package/dist/esm/digi-footer.entry.js +4 -18
  461. package/dist/esm/digi-form-error-list.entry.js +4 -18
  462. package/dist/esm/digi-form-file-upload.entry.js +2 -3
  463. package/dist/esm/digi-form-input-search.entry.js +1 -3
  464. package/dist/esm/digi-form-receipt.entry.js +4 -18
  465. package/dist/esm/digi-form-select-filter.entry.js +5 -19
  466. package/dist/esm/digi-header-avatar.entry.js +1 -1
  467. package/dist/esm/digi-header-navigation.entry.js +4 -18
  468. package/dist/esm/digi-header.entry.js +4 -18
  469. package/dist/esm/digi-info-card.entry.js +1 -1
  470. package/dist/esm/digi-link-internal.entry.js +1 -1
  471. package/dist/esm/digi-navigation-pagination.entry.js +4 -18
  472. package/dist/esm/digi-notification-alert.entry.js +4 -18
  473. package/dist/esm/digi-notification-error-page.entry.js +4 -18
  474. package/dist/esm/digi-quote.entry.js +1 -1
  475. package/dist/esm/digi-title-logo.entry.js +4 -18
  476. package/dist/esm/digi-tools-feedback.entry.js +5 -19
  477. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  478. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  479. package/dist/esm/index-148a7577.js +4 -92
  480. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  481. package/dist/esm/index.js +4 -18
  482. package/dist/esm/loader.js +1 -1
  483. package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-b07f76c9.js} +159 -1
  484. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  485. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  486. package/dist/types/components.d.ts +12 -0
  487. package/dist/types/enums.d.ts +1 -0
  488. package/hydrate/index.js +40 -21
  489. package/hydrate/index.mjs +40 -21
  490. package/package.json +1 -1
  491. package/components/p-4bad4fb0.js +0 -7
  492. package/components/p-85633f84.js +0 -66
  493. package/components/p-e8fc33ed.js +0 -165
  494. package/components/p-f22b488a.js +0 -163
  495. package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
  496. package/dist/cjs/button-type.enum-406723db.js +0 -8
  497. package/dist/cjs/digi-button_9.cjs.entry.js +0 -533
  498. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2603
  499. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  500. package/dist/cjs/digi-code-block_3.cjs.entry.js +0 -232
  501. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  502. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  503. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
  504. package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
  505. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
  506. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  507. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  508. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  509. package/dist/cjs/digi-icon-copy.cjs.entry.js +0 -30
  510. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  511. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  512. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  513. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  514. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  515. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  516. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  517. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  518. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  519. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  520. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
  521. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  522. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  523. package/dist/cjs/form-input-search-variation.enum-c50239bc.js +0 -8
  524. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  525. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  526. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  527. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  528. package/dist/cjs/index-cad91a90.js +0 -66
  529. package/dist/cjs/index-e8333bcc.js +0 -174
  530. package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
  531. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  532. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  533. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  534. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  535. package/dist/digi-arbetsformedlingen/p-0436c516.entry.js +0 -1
  536. package/dist/digi-arbetsformedlingen/p-14731327.entry.js +0 -1
  537. package/dist/digi-arbetsformedlingen/p-19c30198.entry.js +0 -1
  538. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  539. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  540. package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
  541. package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
  542. package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
  543. package/dist/digi-arbetsformedlingen/p-2b7b69cd.entry.js +0 -1
  544. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  545. package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
  546. package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
  547. package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
  548. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  549. package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
  550. package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
  551. package/dist/digi-arbetsformedlingen/p-4452f871.entry.js +0 -1
  552. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  553. package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
  554. package/dist/digi-arbetsformedlingen/p-501697cd.entry.js +0 -1
  555. package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
  556. package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
  557. package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
  558. package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
  559. package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
  560. package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
  561. package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
  562. package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
  563. package/dist/digi-arbetsformedlingen/p-76022084.entry.js +0 -1
  564. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  565. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  566. package/dist/digi-arbetsformedlingen/p-7d49df06.entry.js +0 -1
  567. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  568. package/dist/digi-arbetsformedlingen/p-832cbd71.entry.js +0 -1
  569. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  570. package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
  571. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  572. package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
  573. package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
  574. package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
  575. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  576. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  577. package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
  578. package/dist/digi-arbetsformedlingen/p-bf53daba.entry.js +0 -1
  579. package/dist/digi-arbetsformedlingen/p-c24aab43.entry.js +0 -1
  580. package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
  581. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  582. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  583. package/dist/digi-arbetsformedlingen/p-c799009f.entry.js +0 -1
  584. package/dist/digi-arbetsformedlingen/p-c8e29e68.entry.js +0 -1
  585. package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
  586. package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
  587. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  588. package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
  589. package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
  590. package/dist/digi-arbetsformedlingen/p-e6b65415.entry.js +0 -1
  591. package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
  592. package/dist/digi-arbetsformedlingen/p-e9656bf8.entry.js +0 -1
  593. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  594. package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
  595. package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
  596. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  597. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  598. package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
  599. package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
  600. package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
  601. package/dist/esm/button-type.enum-5250ae0b.js +0 -8
  602. package/dist/esm/digi-button_9.entry.js +0 -521
  603. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2599
  604. package/dist/esm/digi-calendar_2.entry.js +0 -459
  605. package/dist/esm/digi-code-block_3.entry.js +0 -226
  606. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  607. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  608. package/dist/esm/digi-form-checkbox.entry.js +0 -123
  609. package/dist/esm/digi-form-input.entry.js +0 -190
  610. package/dist/esm/digi-form-radiogroup.entry.js +0 -76
  611. package/dist/esm/digi-icon-check.entry.js +0 -26
  612. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  613. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  614. package/dist/esm/digi-icon-copy.entry.js +0 -26
  615. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  616. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  617. package/dist/esm/digi-link.entry.js +0 -71
  618. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  619. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  620. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  621. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  622. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  623. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  624. package/dist/esm/digi-typography.entry.js +0 -22
  625. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  626. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  627. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  628. package/dist/esm/form-input-search-variation.enum-f9d669f2.js +0 -8
  629. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  630. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  631. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  632. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  633. package/dist/esm/index-5b6c95c6.js +0 -63
  634. package/dist/esm/index-8685f88d.js +0 -170
  635. package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
  636. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  637. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  638. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  639. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
@@ -1,521 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-148a7577.js';
2
- import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
3
- import { B as ButtonSize } from './button-size.enum-d5ff6ff3.js';
4
- import { B as ButtonType } from './button-type.enum-5250ae0b.js';
5
- import { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
6
- import { l as logger } from './logger.util-ede3c48a.js';
7
- import { _ as _t } from './text-8f88c0f6.js';
8
- import { a as FormSelectVariation, F as FormSelectValidation } from './form-select-variation.enum-f2f6098d.js';
9
- import { F as FormValidationMessageVariation } from './form-validation-message-variation.enum-bcef8a9d.js';
10
-
11
- const buttonCss = ".sc-digi-button-h{--digi--button--color--background--primary--default:var(--digi--color--background--interactive--default--primary);--digi--button--color--background--primary--hover:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--primary--focus:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--primary--active:var(--digi--color--background--interactive--hover--primary);--digi--button--color--background--secondary--default:var(--digi--color--background--interactive--default--secondary);--digi--button--color--background--secondary--hover:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--secondary--focus:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--secondary--active:var(--digi--color--background--interactive--hover--secondary);--digi--button--color--background--function--default:transparent;--digi--button--color--background--function--hover:transparent;--digi--button--color--background--function--focus:transparent;--digi--button--color--background--function--active:transparent;--digi--button--color--text--primary--default:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--hover:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--focus:var(--digi--color--text--interactive--secondary);--digi--button--color--text--primary--active:var(--digi--color--text--interactive--secondary);--digi--button--color--text--secondary--default:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--hover:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--focus:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--secondary--active:var(--digi--color--text--interactive--brand-primary);--digi--button--color--text--function--default:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--hover:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--focus:var(--digi--color--text--interactive--primary);--digi--button--color--text--function--active:var(--digi--color--text--interactive--primary);--digi--button--color--border--primary--default:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--primary--hover:var(--digi--color--background--interactive--hover--primary);--digi--button--color--border--primary--focus:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--primary--active:var(--digi--color--background--interactive--default--primary);--digi--button--color--border--secondary--default:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--secondary--hover:var(--digi--color--border--interactive--hover--secondary);--digi--button--color--border--secondary--focus:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--secondary--active:var(--digi--color--border--interactive--default--primary);--digi--button--color--border--function--default:initial;--digi--button--color--border--function--hover:initial;--digi--button--color--border--function--focus:initial;--digi--button--color--border--function--active:initial;--digi--button--color--icon--primary--default:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--hover:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--focus:var(--digi--color--icon--secondary);--digi--button--color--icon--primary--active:var(--digi--color--icon--secondary);--digi--button--color--icon--secondary--default:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--hover:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--focus:var(--digi--color--icon--brand-primary);--digi--button--color--icon--secondary--active:var(--digi--color--icon--brand-primary);--digi--button--color--icon--function--default:var(--digi--color--icon--cta);--digi--button--color--icon--function--hover:var(--digi--color--icon--cta);--digi--button--color--icon--function--focus:var(--digi--color--icon--cta);--digi--button--color--icon--function--active:var(--digi--color--icon--cta);--digi--button--border-width--primary--default:var(--digi--border-width--primary);--digi--button--border-width--primary--hover:var(--digi--border-width--primary);--digi--button--border-width--secondary--default:var(--digi--border-width--primary);--digi--button--border-width--secondary--hover:var(--digi--border-width--primary);--digi--button--border-width--function--default:initial;--digi--button--border-width--function--hover:initial;--digi--button--border-style--primary--default:var(--digi--border-style--primary);--digi--button--border-style--primary--hover:var(--digi--border-style--primary);--digi--button--border-style--primary--focus:var(--digi--border-style--primary);--digi--button--border-style--primary--active:var(--digi--border-style--primary);--digi--button--border-style--secondary--default:var(--digi--border-style--primary);--digi--button--border-style--secondary--hover:var(--digi--border-style--primary);--digi--button--border-style--secondary--focus:var(--digi--border-style--primary);--digi--button--border-style--secondary--active:var(--digi--border-style--primary);--digi--button--border-style--function--default:var(--digi--border-style--secondary);--digi--button--border-style--function--hover:var(--digi--border-style--secondary);--digi--button--border-style--function--focus:var(--digi--border-style--secondary);--digi--button--border-style--function--active:var(--digi--border-style--secondary);--digi--button--border-radius--primary--default:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--hover:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--focus:var(--digi--border-radius--secondary);--digi--button--border-radius--primary--active:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--default:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--hover:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--focus:var(--digi--border-radius--secondary);--digi--button--border-radius--secondary--active:var(--digi--border-radius--secondary);--digi--button--border-radius--function--default:initial;--digi--button--border-radius--function--hover:initial;--digi--button--border-radius--function--focus:initial;--digi--button--border-radius--function--active:initial;--digi--button--padding--small:var(--digi--gutter--button-block-small) var(--digi--gutter--button-inline-small);--digi--button--padding--medium:var(--digi--gutter--button-block-medium) var(--digi--gutter--button-inline-medium);--digi--button--font-size--small:var(--digi--global--typography--font-size--interaction-small);--digi--button--font-size--medium:var(--digi--global--typography--font-size--interaction-medium);--digi--button--font-family:var(--digi--global--typography--font-family--default);--digi--button--font-weight--default:var(--digi--typography--button--font-weight--desktop);--digi--button--font-weight--function:var(--digi--typography--label--font-weight--desktop);--digi--button--width:initial;--digi--button--display:initial;--digi--button--justify-content--default:initial;--digi--button--justify-content--full-width:center;--digi--button--align-items:center;--digi--button--text-align--default:initial;--digi--button--text-align--full-width:center;--digi--button--outline--default:initial;--digi--button--outline--focus:initial;--digi--button--cursor:pointer;--digi--button--icon--spacing:var(--digi--gutter--large);--digi--button--min-height--small:unset}.sc-digi-button-h .digi-button.sc-digi-button{font-family:var(--digi--button--font-family);background:var(--COLOR--BACKGROUND--DEFAULT);color:var(--COLOR--TEXT--DEFAULT);padding:var(--PADDING);border-radius:var(--BORDER-RADIUS--DEFAULT);border-width:var(--BORDER-WIDTH--DEFAULT);border-style:var(--BORDER-STYLE--DEFAULT);border-color:var(--COLOR--BORDER--DEFAULT);font-weight:var(--FONT-WEIGHT);font-size:var(--FONT-SIZE);outline:var(--digi--button--outline--default);text-align:var(--digi--button--text-align--default);width:var(--digi--button--width);display:var(--digi--button--display);justify-content:var(--digi--button--justify-content--default);cursor:var(--digi--button--cursor);min-height:var(--MIN-HEIGHT);align-items:var(--digi--button--align-items);white-space:nowrap}.sc-digi-button-h .digi-button--variation-primary.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--primary--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--primary--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--primary--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--primary--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--primary--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--primary--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--primary--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--primary--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--primary--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--primary--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--primary--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--primary--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--primary--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--primary--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--primary--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--primary--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--primary--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--primary--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--primary--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--primary--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--primary--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--primary--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--primary--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--primary--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--primary--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--primary--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--primary--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--primary--active);--FONT-WEIGHT:var(--digi--button--font-weight--default)}.sc-digi-button-h .digi-button--variation-secondary.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--secondary--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--secondary--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--secondary--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--secondary--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--secondary--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--secondary--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--secondary--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--secondary--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--secondary--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--secondary--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--secondary--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--secondary--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--secondary--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--secondary--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--secondary--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--secondary--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--secondary--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--secondary--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--secondary--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--secondary--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--secondary--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--secondary--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--secondary--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--secondary--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--secondary--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--secondary--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--secondary--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--secondary--active);--FONT-WEIGHT:var(--digi--button--font-weight--default)}.sc-digi-button-h .digi-button--variation-function.sc-digi-button{--COLOR--BACKGROUND--DEFAULT:var(--digi--button--color--background--function--default);--COLOR--BACKGROUND--HOVER:var(--digi--button--color--background--function--hover);--COLOR--BACKGROUND--FOCUS:var(--digi--button--color--background--function--focus);--COLOR--BACKGROUND--ACTIVE:var(--digi--button--color--background--function--active);--COLOR--TEXT--DEFAULT:var(--digi--button--color--text--function--default);--COLOR--TEXT--HOVER:var(--digi--button--color--text--function--hover);--COLOR--TEXT--FOCUS:var(--digi--button--color--text--function--focus);--COLOR--TEXT--ACTIVE:var(--digi--button--color--text--function--active);--COLOR--ICON--DEFAULT:var(--digi--button--color--icon--function--default);--COLOR--ICON--HOVER:var(--digi--button--color--icon--function--hover);--COLOR--ICON--FOCUS:var(--digi--button--color--icon--function--focus);--COLOR--ICON--ACTIVE:var(--digi--button--color--icon--function--active);--COLOR--BORDER--DEFAULT:var(--digi--button--color--border--function--default);--COLOR--BORDER--HOVER:var(--digi--button--color--border--function--hover);--COLOR--BORDER--FOCUS:var(--digi--button--color--border--function--focus);--COLOR--BORDER--ACTIVE:var(--digi--button--color--border--function--active);--BORDER-RADIUS--DEFAULT:var(--digi--button--border-radius--function--default);--BORDER-RADIUS--HOVER:var(--digi--button--border-radius--function--hover);--BORDER-RADIUS--FOCUS:var(--digi--button--border-radius--function--focus);--BORDER-RADIUS--ACTIVE:var(--digi--button--border-radius--function--active);--BORDER-WIDTH--DEFAULT:var(--digi--button--border-width--function--default);--BORDER-WIDTH--HOVER:var(--digi--button--border-width--function--hover);--BORDER-WIDTH--FOCUS:var(--digi--button--border-width--function--focus);--BORDER-WIDTH--ACTIVE:var(--digi--button--border-width--function--active);--BORDER-STYLE--DEFAULT:var(--digi--button--border-style--function--default);--BORDER-STYLE--HOVER:var(--digi--button--border-style--function--hover);--BORDER-STYLE--FOCUS:var(--digi--button--border-style--function--focus);--BORDER-STYLE--ACTIVE:var(--digi--button--border-style--function--active);--FONT-WEIGHT:var(--digi--button--font-weight--function)}.sc-digi-button-h .digi-button--variation-function.sc-digi-button:hover,.sc-digi-button-h .digi-button--variation-function.sc-digi-button:focus{text-decoration:underline}.sc-digi-button-h .digi-button--size-small.sc-digi-button{--FONT-SIZE:var(--digi--button--font-size--small);--PADDING:var(--digi--button--padding--small);--MIN-HEIGHT:var(--digi--button--min-height--small)}.sc-digi-button-h .digi-button--size-medium.sc-digi-button{--FONT-SIZE:var(--digi--button--font-size--medium);--PADDING:var(--digi--button--padding--medium);--MIN-HEIGHT:var(--digi--button--min-height--small)}.sc-digi-button-h .digi-button.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button .sc-digi-button-s>[slot^=icon]{--digi--icon--height:1em;--digi--icon--width:1em;--digi--icon--color:var(--COLOR--ICON--DEFAULT);min-height:0}@media (any-hover: hover){.sc-digi-button-h .digi-button.sc-digi-button:hover{background:var(--COLOR--BACKGROUND--HOVER);border-radius:var(--BORDER-RADIUS--HOVER);border-width:var(--BORDER-WIDTH--HOVER);border-style:var(--BORDER-STYLE--HOVER);border-color:var(--COLOR--BORDER--HOVER);color:var(--COLOR--TEXT--HOVER)}.sc-digi-button-h .digi-button:hover.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:hover .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--HOVER)}}.sc-digi-button-h .digi-button.sc-digi-button:focus-visible{background:var(--COLOR--BACKGROUND--FOCUS);color:var(--COLOR--TEXT--FOCUS);border-style:var(--BORDER-STYLE--FOCUS);border-color:var(--COLOR--BORDER--FOCUS);outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-button-h .digi-button:focus-visible.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:focus-visible .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--FOCUS)}.sc-digi-button-h .digi-button.sc-digi-button:active{background:var(--COLOR--BACKGROUND--ACTIVE);color:var(--COLOR--TEXT--ACTIVE)}.sc-digi-button-h .digi-button:active.sc-digi-button-s>[slot^=icon],.sc-digi-button-h .digi-button:active .sc-digi-button-s>[slot^=icon]{--digi--icon--color:var(--COLOR--ICON--ACTIVE)}.sc-digi-button-h .digi-button--icon.sc-digi-button,.sc-digi-button-h .digi-button--icon-secondary.sc-digi-button{--digi--button--display:flex;align-items:center;justify-content:var(--digi--button--justify-content--default);gap:var(--digi--button--icon--spacing)}.sc-digi-button-h .digi-button--full-width.sc-digi-button{--digi--button--width:100%;--digi--button--text-align--default:var(--digi--button--text-align--full-width);--digi--button--justify-content--default:var(--digi--button--justify-content--full-width)}";
12
- const DigiButtonStyle0 = buttonCss;
13
-
14
- const Button = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- this.afOnClick = createEvent(this, "afOnClick", 7);
18
- this.afOnFocus = createEvent(this, "afOnFocus", 7);
19
- this.afOnBlur = createEvent(this, "afOnBlur", 7);
20
- this.afOnReady = createEvent(this, "afOnReady", 3);
21
- this.hasIcon = undefined;
22
- this.hasIconSecondary = undefined;
23
- this.isFullSize = undefined;
24
- this.afSize = ButtonSize.MEDIUM;
25
- this.afTabindex = undefined;
26
- this.afVariation = ButtonVariation.PRIMARY;
27
- this.afType = ButtonType.BUTTON;
28
- this.afId = randomIdGenerator('digi-button');
29
- this.afAriaLabel = undefined;
30
- this.afAriaLabelledby = undefined;
31
- this.afAriaControls = undefined;
32
- this.afForm = undefined;
33
- this.afAriaPressed = undefined;
34
- this.afAriaExpanded = undefined;
35
- this.afAriaHaspopup = undefined;
36
- this.afAriaCurrent = undefined;
37
- this.afRole = undefined;
38
- this.afAriaChecked = undefined;
39
- this.afLang = undefined;
40
- this.afDir = undefined;
41
- this.afFullWidth = false;
42
- this.afAutofocus = undefined;
43
- this.afInputRef = undefined;
44
- }
45
- fullWidthHandler() {
46
- this.isFullSize = this.afFullWidth;
47
- }
48
- /**
49
- * Hämta en referens till buttonelementet. Bra för att t.ex. sätta fokus programmatiskt.
50
- * @en Returns a reference to the button element. Handy for setting focus programmatically.
51
- */
52
- async afMGetButtonElement() {
53
- return this._button;
54
- }
55
- componentWillLoad() {
56
- this.setHasIcon();
57
- this.fullWidthHandler();
58
- }
59
- componentWillUpdate() {
60
- this.setHasIcon();
61
- }
62
- componentDidLoad() {
63
- this.afOnReady.emit();
64
- }
65
- setHasIcon() {
66
- const icon = !!this.hostElement.querySelector('[slot="icon"]');
67
- const iconSecondary = !!this.hostElement.querySelector('[slot="icon-secondary"]');
68
- if (icon) {
69
- this.hasIcon = icon;
70
- }
71
- if (iconSecondary) {
72
- this.hasIconSecondary = iconSecondary;
73
- }
74
- }
75
- get cssModifiers() {
76
- return {
77
- [`digi-button--variation-${this.afVariation}`]: !!this.afVariation,
78
- [`digi-button--size-${this.afSize}`]: !!this.afSize,
79
- 'digi-button--icon': this.hasIcon,
80
- 'digi-button--icon-secondary': this.hasIconSecondary,
81
- 'digi-button--full-width': this.isFullSize
82
- };
83
- }
84
- get pressedState() {
85
- if (this.afAriaPressed === null || this.afAriaPressed === undefined) {
86
- return;
87
- }
88
- return this.afAriaPressed ? 'true' : 'false';
89
- }
90
- get expandedState() {
91
- if (this.afAriaExpanded === null || this.afAriaExpanded === undefined) {
92
- return;
93
- }
94
- return this.afAriaExpanded ? 'true' : 'false';
95
- }
96
- get hasPopup() {
97
- if (this.afAriaHaspopup === null || this.afAriaHaspopup === undefined) {
98
- return;
99
- }
100
- return this.afAriaHaspopup ? 'true' : 'false';
101
- }
102
- clickHandler(e) {
103
- this.afOnClick.emit(e);
104
- }
105
- focusHandler(e) {
106
- this.afOnFocus.emit(e);
107
- }
108
- blurHandler(e) {
109
- this.afOnBlur.emit(e);
110
- }
111
- render() {
112
- return (h(Host, { key: '3a398d75ad83e3caa9ec54928544d5bf8315d30f' }, h("button", { key: '2159552d7e8064acbb6da5c02c28ead3d4985e85', class: Object.assign({ 'digi-button': true }, this.cssModifiers), type: this.afType, role: this.afRole, ref: (el) => {
113
- var _a, _b, _c;
114
- this._button = el;
115
- (_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
116
- // Stencil has a bug wiith form attribute so we need to set it like this
117
- // https://github.com/ionic-team/stencil/issues/2703
118
- this.afForm
119
- ? (_b = this._button) === null || _b === void 0 ? void 0 : _b.setAttribute('form', this.afForm)
120
- : (_c = this._button) === null || _c === void 0 ? void 0 : _c.removeAttribute('form');
121
- }, id: this.afId, tabindex: this.afTabindex, "aria-label": this.afAriaLabel, "aria-labelledby": this.afAriaLabelledby, "aria-controls": this.afAriaControls, "aria-pressed": this.pressedState, "aria-expanded": this.expandedState, "aria-haspopup": this.hasPopup, "aria-current": this.afAriaCurrent, "aria-checked": this.afAriaChecked, onClick: (e) => this.clickHandler(e), onFocus: (e) => this.focusHandler(e), onBlur: (e) => this.blurHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null, form: this.afForm, lang: this.afLang, dir: this.afDir }, this.hasIcon && (h("span", { key: '1188d5cb005a51e4e065b70663d06877db3a1477', class: "digi-button__icon" }, h("slot", { key: 'f90319563c18e1f82fa13f478b4d4d13ce3e9bf7', name: "icon" }))), h("span", { key: '17dce8eed2e845ca6166cf85a1c0252c2c0b8037', class: "digi-button__text" }, h("slot", { key: '2f637e48b837ecd0f0f2333349f328c497aee650' })), this.hasIconSecondary && (h("span", { key: '49ffd3361b0cc00c074e1ce332dab2de33127fcc', class: "digi-button__icon digi-button__icon--secondary" }, h("slot", { key: '367d3ba37e2fd0b7e83d600f35d02d4df303c1c0', name: "icon-secondary" }))))));
122
- }
123
- get hostElement() { return getElement(this); }
124
- static get watchers() { return {
125
- "afFullWidth": ["fullWidthHandler"]
126
- }; }
127
- };
128
- Button.style = DigiButtonStyle0;
129
-
130
- 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)}";
131
- const DigiFormLabelStyle0 = formLabelCss;
132
-
133
- const FormLabel = class {
134
- constructor(hostRef) {
135
- registerInstance(this, hostRef);
136
- this.labelText = undefined;
137
- this.hasActionSlot = undefined;
138
- this.afLabel = undefined;
139
- this.afId = randomIdGenerator('digi-form-label');
140
- this.afFor = undefined;
141
- this.afDescription = undefined;
142
- this.afRequired = undefined;
143
- this.afAnnounceIfOptional = false;
144
- this.afRequiredText = _t.required.toLowerCase();
145
- this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
146
- }
147
- componentWillLoad() {
148
- this.setLabelText();
149
- this.validateFor();
150
- this.handleSlotVisibility();
151
- }
152
- validateFor() {
153
- if (this.afFor == null) {
154
- logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
155
- }
156
- }
157
- setLabelText() {
158
- this.labelText = `${this.afLabel} ${this.requiredText}`;
159
- if (!this.afLabel) {
160
- logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
161
- }
162
- }
163
- handleSlotVisibility() {
164
- this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
165
- }
166
- get requiredText() {
167
- if (this.afRequired && !this.afAnnounceIfOptional) {
168
- return this.afRequiredText ? ` (${this.afRequiredText})` : '';
169
- }
170
- else if (!this.afRequired && this.afAnnounceIfOptional) {
171
- return this.afAnnounceIfOptionalText
172
- ? ` (${this.afAnnounceIfOptionalText})`
173
- : '';
174
- }
175
- else {
176
- return '';
177
- }
178
- }
179
- render() {
180
- return (h("div", { key: '24ae333ab5edc928ce4d26e6e4da0f642617792a', class: "digi-form-label" }, h("div", { key: 'b1a5073a7c9883b13a86f741b865c3b368c1d02b', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: '4dd98d11699d82e0e6b5f1127ca0e97382dc45d1', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: 'a8c1b2cf89d24625e3c13a93bac5fd144d95a3cb', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (h("span", { key: '4a82c714e6b4f3189772d44bd5748c830252a8d5', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: 'd07f90e8e0a8ba9061686bf7cc331480091fbb33', class: "digi-form-label__actions" }, h("slot", { key: '7c5f1750217d9666a6543044e6dbb29ee4839940', name: "actions" }))))));
181
- }
182
- get hostElement() { return getElement(this); }
183
- static get watchers() { return {
184
- "afFor": ["validateFor"],
185
- "afLabel": ["setLabelText"],
186
- "afRequired": ["setLabelText"],
187
- "afAnnounceIfOptional": ["setLabelText"]
188
- }; }
189
- };
190
- FormLabel.style = DigiFormLabelStyle0;
191
-
192
- const formSelectCss = ".sc-digi-form-select-h{--digi--form-select--background--empty:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--neutral:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-select--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-select--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-select--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-select--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-select--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-select--border-color--error:var(--digi--color--border--interactive--validation--error);--digi--form-select--select-wrapper--position:relative;--digi--form-select--select--height--small:var(--digi--input-height--small);--digi--form-select--select--height--medium:var(--digi--input-height--medium);--digi--form-select--select--height--large:var(--digi--input-height--large);--digi--form-select--select--border-radius:var(--digi--border-radius--input);--digi--form-select--select--padding:0 var(--digi--gutter--medium);--digi--form-select--select--padding--inline-end:var(--digi--padding--large);--digi--form-select--select--border-width--neutral:var(--digi--border-width--input-regular);--digi--form-select--select--border-width--success:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--error:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--warning:var(--digi--border-width--input-validation);--digi--form-select--select--width:100%;--digi--form-select--select--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--select-option--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--label--margin-bottom:var(--digi--gutter--medium);--digi--form-select--icon--inline-end:0.75rem;--digi--form-select--icon--top:50%;--digi--form-select--icon--transform:translateY(-50%);--digi--form-select--icon--color:var(--digi--color--icon--primary);--digi--form-select--footer--margin-top:var(--digi--gutter--medium)}.sc-digi-form-select-h .digi-form-select.sc-digi-form-select{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-select-h .digi-form-select--neutral.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--neutral);--BORDER-COLOR:var(--digi--form-select--border-color--neutral);--BACKGROUND:var(--digi--form-select--background--neutral)}.sc-digi-form-select-h .digi-form-select--success.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--success);--BORDER-COLOR:var(--digi--form-select--border-color--success);--BACKGROUND:var(--digi--form-select--background--success)}.sc-digi-form-select-h .digi-form-select--warning.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--warning);--BORDER-COLOR:var(--digi--form-select--border-color--warning);--BACKGROUND:var(--digi--form-select--background--warning)}.sc-digi-form-select-h .digi-form-select--error.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--error);--BORDER-COLOR:var(--digi--form-select--border-color--error);--BACKGROUND:var(--digi--form-select--background--error)}.sc-digi-form-select-h .digi-form-select--small.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--small)}.sc-digi-form-select-h .digi-form-select--medium.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--medium)}.sc-digi-form-select-h .digi-form-select--large.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--large)}.sc-digi-form-select-h .digi-form-select--empty.sc-digi-form-select:not(:focus-within){--BACKGROUND:var(--digi--form-select--background--empty)}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select{appearance:none;width:var(--digi--form-select--select--width);padding:var(--digi--form-select--select--padding);padding-inline-end:var(--digi--form-select--select--padding--inline-end);height:var(--HEIGHT);border:var(--BORDER-WIDTH) solid;border-radius:var(--digi--form-select--select--border-radius);border-color:var(--BORDER-COLOR);cursor:pointer;font-size:var(--digi--form-select--select--font-size);color:var(--digi--color--text--primary);background:var(--BACKGROUND);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-form-select-h .digi-form-select__select-wrapper.sc-digi-form-select{position:var(--digi--form-select--select-wrapper--position)}.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{font-size:var(--digi--form-select--select-option--font-size)}@media (min-width: 48rem){.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{--digi--form-select--select-option--font-size:var(--digi--typography--font-size--l)}}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select::-ms-expand{display:none}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-form-select-h .digi-form-select__icon.sc-digi-form-select{position:absolute;inset-inline-end:var(--digi--form-select--icon--inline-end);inset-block-start:var(--digi--form-select--icon--top);transform:var(--digi--form-select--icon--transform);pointer-events:none;color:var(--digi--form-select--icon--color)}.digi-form-select--neutral.sc-digi-form-select .digi-form-select__footer.sc-digi-form-select{position:absolute}";
193
- const DigiFormSelectStyle0 = formSelectCss;
194
-
195
- const FormSelect = class {
196
- constructor(hostRef) {
197
- registerInstance(this, hostRef);
198
- this.afOnChange = createEvent(this, "afOnChange", 7);
199
- this.afOnSelect = createEvent(this, "afOnSelect", 7);
200
- this.afOnFocus = createEvent(this, "afOnFocus", 7);
201
- this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
202
- this.afOnBlur = createEvent(this, "afOnBlur", 7);
203
- this.afOnDirty = createEvent(this, "afOnDirty", 7);
204
- this.afOnReady = createEvent(this, "afOnReady", 3);
205
- this.optionItems = [];
206
- this.dirty = false;
207
- this.touched = false;
208
- this.hasPlaceholder = false;
209
- this.afLabel = undefined;
210
- this.afAriaLabel = undefined;
211
- this.afRequired = undefined;
212
- this.afRequiredText = undefined;
213
- this.afPlaceholder = undefined;
214
- this.afAnnounceIfOptional = false;
215
- this.afAnnounceIfOptionalText = undefined;
216
- this.afId = randomIdGenerator('digi-form-select');
217
- this.afName = undefined;
218
- this.afDescription = undefined;
219
- this.value = undefined;
220
- this.afValue = undefined;
221
- this.afDisableValidation = undefined;
222
- this.afVariation = FormSelectVariation.MEDIUM;
223
- this.afValidation = FormSelectValidation.NEUTRAL;
224
- this.afValidationText = undefined;
225
- this.afAutofocus = undefined;
226
- this.afErrorMessageIsAlert = true;
227
- }
228
- onValueChanged(value) {
229
- this.afValue = value;
230
- }
231
- onAfValueChanged(value) {
232
- this.value = value;
233
- }
234
- get errorMessageIsAlert() {
235
- return (this.afErrorMessageIsAlert !== false &&
236
- this.afErrorMessageIsAlert !== 'false');
237
- }
238
- getOptions() {
239
- this.checkIfPlaceholder();
240
- const options = this._observer.children;
241
- if (!options || options.length <= 0) {
242
- logger.warn(`The slot contains no option elements.`, this.hostElement);
243
- return;
244
- }
245
- this.optionItems = [...Array.from(options)]
246
- .filter((el) => el.tagName.toLowerCase() === 'option')
247
- .map((el) => {
248
- return {
249
- value: el['value'],
250
- text: el['text']
251
- };
252
- });
253
- }
254
- checkIfPlaceholder() {
255
- this.hasPlaceholder = !!this.afPlaceholder;
256
- }
257
- componentWillLoad() {
258
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
259
- }
260
- componentDidLoad() {
261
- this.getOptions();
262
- this.afOnReady.emit();
263
- }
264
- /**
265
- * Returnerar en referens till formulärkontrollelementet.
266
- * @en Returns a reference to the form control element.
267
- */
268
- async afMGetFormControlElement() {
269
- return this._select;
270
- }
271
- /**
272
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva select-elementet.
273
- * @en Listens for when focus is set on the custom element and propagates it down to the actual select element.
274
- */
275
- focusOnInput() {
276
- var _a;
277
- (_a = this._select) === null || _a === void 0 ? void 0 : _a.focus();
278
- }
279
- get cssModifiers() {
280
- return {
281
- 'digi-form-select--small': this.afVariation === FormSelectVariation.SMALL,
282
- 'digi-form-select--medium': this.afVariation === FormSelectVariation.MEDIUM,
283
- 'digi-form-select--large': this.afVariation === FormSelectVariation.LARGE,
284
- 'digi-form-select--neutral': this.afValidation === FormSelectValidation.NEUTRAL,
285
- 'digi-form-select--success': this.afValidation === FormSelectValidation.SUCCESS,
286
- 'digi-form-select--warning': this.afValidation === FormSelectValidation.WARNING,
287
- 'digi-form-select--error': this.afValidation === FormSelectValidation.ERROR,
288
- 'digi-form-select--empty': !this.afValue &&
289
- (!this.afValidation ||
290
- this.afValidation === FormSelectValidation.NEUTRAL)
291
- };
292
- }
293
- changeHandler(e) {
294
- if (!this.dirty) {
295
- this.afOnDirty.emit(e);
296
- this.dirty = true;
297
- }
298
- this.value = this.afValue = e.target.value;
299
- this.afOnChange.emit(e);
300
- }
301
- selectHandler(e) {
302
- this.value = this.afValue = e.target.value;
303
- this.afOnSelect.emit(e);
304
- }
305
- focusHandler(e) {
306
- this.afOnFocus.emit(e);
307
- }
308
- focusoutHandler(e) {
309
- this.afOnFocusout.emit(e);
310
- }
311
- blurHandler(e) {
312
- this.afOnBlur.emit(e);
313
- }
314
- getSelectedItem(option) {
315
- return this.afValue == option.value;
316
- }
317
- showValidation() {
318
- return !this.afDisableValidation &&
319
- this.afValidation !== FormSelectValidation.NEUTRAL &&
320
- this.afValidationText
321
- ? true
322
- : false;
323
- }
324
- render() {
325
- return (h(Host, { key: 'd0422f1a779704cd2e9192f81199c58738c6f4db', tabindex: -1 }, h("div", { key: 'f6a49628a7d5d3d2d633e816aaf260242478fc4c', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '755b1b576bb8847570426d982d1a3445fb44edff', class: "digi-form-select__label-group" }, h("digi-form-label", { key: 'eda13cccb65792193b318bf9c21bd0b52384dbc5', 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: '0ae5338fd5aa2b7fffe60935ddae9fec0cbaf379', class: "digi-form-select__select-wrapper" }, h("select", { key: 'bd758e92e3fb977be5bad8530062d9b5c71f7e11', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
326
- ? 'true'
327
- : 'false', "aria-describedby": `${this.afId}--validation-message`, 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: '85d60c1b04d3a48773d7a25e79d6e6896abc4334', class: {
328
- 'digi-form-select__select-option': true,
329
- 'digi-form-select__select-option--initial-value': true
330
- }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
331
- return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
332
- })), h("digi-icon-input-select-marker", { key: 'e9ab4ef12562679223aaa7f60e20936d2a1e078e', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: '188b27eb0a27f9bb81eb8211e67df8d8c54b7485', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
333
- e.stopImmediatePropagation();
334
- this.getOptions();
335
- } }, h("slot", { key: '70b2eeb015a08bfc2379f30eb4cf7e6281066d56' })), h("div", { key: 'd8aa1c5d5de3e847136d29b14a236d6cf73ecad4', class: "digi-form-select__footer" }, h("div", { key: '27f8450662d599b55aa22a3a82f268de8ecd7cbc', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: 'e7f512be5ea01c8bb2c6a1e20bacafd43acf2770', "af-variation": this.afValidation }, this.afValidationText)))))));
336
- }
337
- get hostElement() { return getElement(this); }
338
- static get watchers() { return {
339
- "value": ["onValueChanged"],
340
- "afValue": ["onAfValueChanged"]
341
- }; }
342
- };
343
- FormSelect.style = DigiFormSelectStyle0;
344
-
345
- const formValidationMessageCss = ".sc-digi-form-validation-message-h{--digi--form-validation-message--icon-color--success:var(--digi--color--icon--validation--success);--digi--form-validation-message--icon-color--warning:var(--digi--color--icon--validation--warning);--digi--form-validation-message--icon-color--error:var(--digi--color--icon--validation--error)}.sc-digi-form-validation-message-h .digi-form-validation-message.sc-digi-form-validation-message{display:flex;flex-wrap:wrap;align-items:center}.sc-digi-form-validation-message-h .digi-form-validation-message--success.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--success)}.sc-digi-form-validation-message-h .digi-form-validation-message--warning.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--warning)}.sc-digi-form-validation-message-h .digi-form-validation-message--error.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--error)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message{color:var(--ICON-COLOR);margin-inline-end:var(--digi--gutter--icon)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message>*.sc-digi-form-validation-message{--digi--icon--width:1.25em;--digi--icon--height:1.25em;--digi--icon--color:var(--ICON-COLOR);display:flex}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message .warning.sc-digi-form-validation-message{top:3px;position:relative}.sc-digi-form-validation-message-h .digi-form-validation-message__text.sc-digi-form-validation-message{flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);color:var(--digi--color--text--primary)}";
346
- const DigiFormValidationMessageStyle0 = formValidationMessageCss;
347
-
348
- const FormValidationMessage = class {
349
- constructor(hostRef) {
350
- registerInstance(this, hostRef);
351
- this.afVariation = FormValidationMessageVariation.SUCCESS;
352
- }
353
- get cssModifiers() {
354
- return {
355
- 'digi-form-validation-message--success': this.afVariation === FormValidationMessageVariation.SUCCESS,
356
- 'digi-form-validation-message--error': this.afVariation === FormValidationMessageVariation.ERROR,
357
- 'digi-form-validation-message--warning': this.afVariation === FormValidationMessageVariation.WARNING
358
- };
359
- }
360
- get icon() {
361
- switch (this.afVariation) {
362
- case FormValidationMessageVariation.SUCCESS:
363
- return h("digi-icon-validation-success", null);
364
- case FormValidationMessageVariation.ERROR:
365
- return h("digi-icon-validation-error", null);
366
- case FormValidationMessageVariation.WARNING:
367
- return h("digi-icon-validation-warning", { class: "warning" });
368
- }
369
- }
370
- render() {
371
- return (h("div", { key: 'b15c3cca06f4e015c7006bae470876b246b6ce06', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, h("div", { key: '1e9378eb8b193c35e24e700ef865fb44ae4fb28b', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), h("span", { key: '6e72b4f07b641d63603914a33720d6b09a5bd44f', class: "digi-form-validation-message__text" }, h("slot", { key: '74cfa597bf12b19fb2dbef039eac148358ff2635' }))));
372
- }
373
- get hostElement() { return getElement(this); }
374
- };
375
- FormValidationMessage.style = DigiFormValidationMessageStyle0;
376
-
377
- const iconInputSelectMarkerCss = ".sc-digi-icon-input-select-marker-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-input-select-marker-h svg.sc-digi-icon-input-select-marker{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
378
- const DigiIconInputSelectMarkerStyle0 = iconInputSelectMarkerCss;
379
-
380
- const IconInputSelectMarker = class {
381
- constructor(hostRef) {
382
- registerInstance(this, hostRef);
383
- this.afTitle = undefined;
384
- this.afDesc = undefined;
385
- this.afSvgAriaHidden = true;
386
- this.afSvgAriaLabelledby = undefined;
387
- this.titleId = randomIdGenerator('icon-input-select-marker');
388
- }
389
- render() {
390
- return (h("svg", { key: '041c1a9468d8fd9340a556b7f0b063f4f3cf738d', class: "digi-icon-input-select-marker", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
391
- ? this.afSvgAriaLabelledby
392
- : this.afTitle
393
- ? this.titleId
394
- : undefined }, this.afTitle && h("title", { key: 'a0542c18fdc7e871d91a495af884aa65e1ea0cd5', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'da9171b347e0af9afe8fd5c5d49d7179c2798e84' }, this.afDesc), h("path", { key: '9f5352b7e70c2a4a19d94fe9786b1629dac338f5', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
395
- }
396
- };
397
- IconInputSelectMarker.style = DigiIconInputSelectMarkerStyle0;
398
-
399
- const iconValidationErrorCss = ".sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
400
- const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
401
-
402
- const IconValidationError = class {
403
- constructor(hostRef) {
404
- registerInstance(this, hostRef);
405
- this.afTitle = undefined;
406
- this.afDesc = undefined;
407
- this.afSvgAriaHidden = true;
408
- this.afSvgAriaLabelledby = undefined;
409
- this.titleId = randomIdGenerator('icontitle');
410
- }
411
- render() {
412
- return (h("svg", { key: 'f499f42be0fc0b08203aa5f5f737d24dd637f2b2', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
413
- ? this.afSvgAriaLabelledby
414
- : this.afTitle
415
- ? this.titleId
416
- : undefined }, this.afTitle && h("title", { key: 'fe9028dc6ef29fb411f3527f803f970fb200cbc7', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '602b904ee4e87ccd75c0fccbb1015f2e50a89c3d' }, this.afDesc), h("path", { key: 'c3e66974c35dd1405f668f9eb1c0c3ce65d57d16', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
417
- }
418
- };
419
- IconValidationError.style = DigiIconValidationErrorStyle0;
420
-
421
- const iconValidationSuccessCss = ".sc-digi-icon-validation-success-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-success-h svg.sc-digi-icon-validation-success{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
422
- const DigiIconValidationSuccessStyle0 = iconValidationSuccessCss;
423
-
424
- const IconCheckCircle = class {
425
- constructor(hostRef) {
426
- registerInstance(this, hostRef);
427
- this.afTitle = undefined;
428
- this.afDesc = undefined;
429
- this.afSvgAriaHidden = true;
430
- this.afSvgAriaLabelledby = undefined;
431
- this.titleId = randomIdGenerator('icontitle');
432
- }
433
- render() {
434
- return (h("svg", { key: '8e17bc8da17af20998fb67b64fc24b40461b176c', class: "digi-icon-validation-success", width: "25", height: "25", viewBox: "0 0 25 25", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
435
- ? this.afSvgAriaLabelledby
436
- : this.afTitle
437
- ? this.titleId
438
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '6f56caf229cfb9e2d8f6f54eaeaa4f86c9881eaf', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'f7fa4c25a72c4ef312a8f6daedf31ce199979bc2' }, this.afDesc), h("path", { key: 'f90d6e4c93085c88e81ef6935289f437a6a26aa6', class: "digi-icon-validation-success__shape", d: "M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z", fill: "currentColor", "fill-rule": "nonzero" })));
439
- }
440
- };
441
- IconCheckCircle.style = DigiIconValidationSuccessStyle0;
442
-
443
- const iconValidationWarningCss = ".sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
444
- const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
445
-
446
- const IconValidationWarning = class {
447
- constructor(hostRef) {
448
- registerInstance(this, hostRef);
449
- this.afTitle = undefined;
450
- this.afDesc = undefined;
451
- this.afSvgAriaHidden = true;
452
- this.afSvgAriaLabelledby = undefined;
453
- this.titleId = randomIdGenerator('icontitle');
454
- }
455
- render() {
456
- return (h("div", { key: 'eab65818fc925a1ff0b96f4c61897dbb21431375' }, h("svg", { key: '80fccf36625c7ad8899c656d6fd43e9c646ef941', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
457
- ? this.afSvgAriaLabelledby
458
- : this.afTitle
459
- ? this.titleId
460
- : undefined }, this.afTitle && h("title", { key: '0b147bec8b5bb42bf03cf64f0c16fd8977738f17', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '250acb28819b3636883bc03da56a4228480e6fcb' }, this.afDesc), h("g", { key: 'a032d119a67df159ecf24e457ea87ce6399281f9', fill: "none", "fill-rule": "evenodd" }, h("circle", { key: 'de82de664348aca5dafef8991aff9beb1b6501d1', cx: "9", cy: "9", r: "6.75", fill: "#333" }), h("path", { key: 'e49d8e1173a1e0ce268977c08139bc275fd761e0', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
461
- }
462
- };
463
- IconValidationWarning.style = DigiIconValidationWarningStyle0;
464
-
465
- const UtilMutationObserver = class {
466
- constructor(hostRef) {
467
- registerInstance(this, hostRef);
468
- this.afOnChange = createEvent(this, "afOnChange", 7);
469
- this._observer = null;
470
- this._isObserving = false;
471
- this.afId = randomIdGenerator('digi-util-mutation-observer');
472
- this.afOptions = {
473
- attributes: false,
474
- childList: true,
475
- subtree: false,
476
- characterData: false
477
- };
478
- }
479
- afOptionsWatcher(newValue) {
480
- this._afOptions =
481
- typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
482
- }
483
- componentWillLoad() {
484
- this.afOptionsWatcher(this.afOptions);
485
- this.initObserver();
486
- }
487
- disconnectedCallback() {
488
- if (this._isObserving) {
489
- this.removeObserver();
490
- }
491
- }
492
- initObserver() {
493
- this._observer = new MutationObserver((mutationsList) => {
494
- for (const mutation of mutationsList) {
495
- if (mutation.type === 'childList' ||
496
- mutation.type === 'attributes' ||
497
- mutation.type === 'characterData') {
498
- this.changeHandler(mutation);
499
- }
500
- }
501
- });
502
- this._observer.observe(this.$el, this._afOptions);
503
- this._isObserving = true;
504
- }
505
- removeObserver() {
506
- this._observer.disconnect();
507
- this._isObserving = false;
508
- }
509
- changeHandler(e) {
510
- this.afOnChange.emit(e);
511
- }
512
- render() {
513
- h("div", { id: this.afId, ref: (el) => (this.$el = el) }, h("slot", null));
514
- }
515
- get $el() { return getElement(this); }
516
- static get watchers() { return {
517
- "afOptions": ["afOptionsWatcher"]
518
- }; }
519
- };
520
-
521
- export { Button as digi_button, FormLabel as digi_form_label, FormSelect as digi_form_select, FormValidationMessage as digi_form_validation_message, IconInputSelectMarker as digi_icon_input_select_marker, IconValidationError as digi_icon_validation_error, IconCheckCircle as digi_icon_validation_success, IconValidationWarning as digi_icon_validation_warning, UtilMutationObserver as digi_util_mutation_observer };