@designsystem-se/af 36.0.2-beta.1 → 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 (401) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-button.js +1 -1
  3. package/components/digi-calendar-datepicker.js +10 -10
  4. package/components/digi-calendar-week-view.js +1 -1
  5. package/components/digi-calendar.js +1 -1
  6. package/components/digi-chart-line.js +1 -1
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +4 -4
  9. package/components/digi-context-menu.js +1 -1
  10. package/components/digi-dialog.js +3 -3
  11. package/components/digi-expandable-faq-item.js +1 -1
  12. package/components/digi-footer.js +1 -1
  13. package/components/digi-form-category-filter.js +1 -1
  14. package/components/digi-form-checkbox.js +1 -1
  15. package/components/digi-form-error-list.js +3 -3
  16. package/components/digi-form-file-upload.js +1 -1
  17. package/components/digi-form-filter.js +2 -2
  18. package/components/digi-form-input-search.js +4 -4
  19. package/components/digi-form-input.js +1 -1
  20. package/components/digi-form-radiobutton.js +1 -1
  21. package/components/digi-form-radiogroup.js +2 -2
  22. package/components/digi-form-receipt.js +1 -1
  23. package/components/digi-form-select-filter.js +11 -11
  24. package/components/digi-form-select.js +1 -1
  25. package/components/digi-form-textarea.js +3 -3
  26. package/components/digi-header-avatar.js +1 -1
  27. package/components/digi-header-navigation.js +2 -2
  28. package/components/digi-header.js +3 -3
  29. package/components/digi-info-card.js +3 -3
  30. package/components/digi-link-button.js +1 -1
  31. package/components/digi-link-external.js +1 -1
  32. package/components/digi-link-internal.js +1 -1
  33. package/components/digi-link.js +1 -1
  34. package/components/digi-logo.js +1 -1
  35. package/components/digi-navigation-pagination.js +2 -2
  36. package/components/digi-navigation-sidebar-button.js +1 -1
  37. package/components/digi-navigation-sidebar.js +1 -1
  38. package/components/digi-navigation-vertical-menu-item.js +1 -1
  39. package/components/digi-notification-alert.js +1 -1
  40. package/components/digi-notification-error-page.js +1 -1
  41. package/components/digi-progress-indicator.js +1 -1
  42. package/components/digi-quote.js +1 -1
  43. package/components/digi-tag.js +1 -1
  44. package/components/digi-title-logo.js +1 -1
  45. package/components/digi-tools-feedback-banner.js +2 -2
  46. package/components/digi-tools-feedback-rating.js +2 -2
  47. package/components/digi-tools-feedback.js +3 -3
  48. package/components/digi-tools-theme-provider.js +18 -5
  49. package/components/index.js +1 -1
  50. package/components/{p-6f595199.js → p-0c919531.js} +1 -1
  51. package/components/{p-779eecac.js → p-117e7b18.js} +5 -5
  52. package/components/{p-c65795d8.js → p-358965ba.js} +2 -2
  53. package/components/{p-fb2fd84c.js → p-36dad6f1.js} +9 -9
  54. package/components/{p-cd0370eb.js → p-3fad7281.js} +2 -2
  55. package/components/{p-f18dbbea.js → p-5fd00d55.js} +2 -2
  56. package/components/p-606ba731.js +165 -0
  57. package/components/p-8fee3d97.js +163 -0
  58. package/components/{p-ad4aaaaf.js → p-a79e144f.js} +2 -2
  59. package/components/p-b8c862c0.js +66 -0
  60. package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
  61. package/components/p-d7ef9cb1.js +13 -0
  62. package/components/{p-bb0ffb59.js → p-dedeb670.js} +3 -3
  63. package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
  64. package/custom-elements.json +4 -0
  65. package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
  66. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  67. package/dist/cjs/digi-button_37.cjs.entry.js +5254 -0
  68. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  69. package/dist/cjs/digi-code-block.cjs.entry.js +89 -0
  70. package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
  71. package/dist/cjs/digi-dialog.cjs.entry.js +6 -20
  72. package/dist/cjs/digi-footer.cjs.entry.js +4 -18
  73. package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -18
  74. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
  75. package/dist/cjs/digi-form-input-search.cjs.entry.js +8 -10
  76. package/dist/cjs/digi-form-receipt.cjs.entry.js +4 -18
  77. package/dist/cjs/digi-form-select-filter.cjs.entry.js +12 -26
  78. package/dist/cjs/digi-form-textarea.cjs.entry.js +3 -3
  79. package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
  80. package/dist/cjs/digi-header-navigation.cjs.entry.js +4 -18
  81. package/dist/cjs/digi-header.cjs.entry.js +5 -19
  82. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +1 -1
  83. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  84. package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
  85. package/dist/cjs/digi-link-internal.cjs.entry.js +2 -2
  86. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +4 -18
  87. package/dist/cjs/digi-notification-alert.cjs.entry.js +4 -18
  88. package/dist/cjs/digi-notification-error-page.cjs.entry.js +4 -18
  89. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  90. package/dist/cjs/digi-title-logo.cjs.entry.js +5 -19
  91. package/dist/cjs/digi-tools-feedback.cjs.entry.js +7 -21
  92. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  93. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  94. package/dist/cjs/index-7a477838.js +4 -92
  95. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  96. package/dist/cjs/index.cjs.js +158 -166
  97. package/dist/cjs/loader.cjs.js +1 -1
  98. package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-e41bd69d.js} +158 -0
  99. package/dist/collection/components/_button/button/button.css +6 -6
  100. package/dist/collection/components/_calendar/calendar/calendar.css +5 -0
  101. package/dist/collection/components/_calendar/calendar/calendar.js +7 -7
  102. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +339 -102
  103. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +6 -5
  104. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  105. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  106. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  107. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +339 -102
  108. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +3 -2
  109. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
  110. package/dist/collection/components/_form/form-input/form-input.js +4 -3
  111. package/dist/collection/components/_form/form-input-search/form-input-search.js +3 -2
  112. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +3 -2
  113. package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +3 -2
  114. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  115. package/dist/collection/components/_form/form-select/form-select.js +5 -4
  116. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  117. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +8 -7
  118. package/dist/collection/components/_form/form-textarea/form-textarea.js +4 -3
  119. package/dist/collection/components/_header/header-avatar/header-avatar.css +338 -101
  120. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  121. package/dist/collection/components/_link/link/link.js +2 -2
  122. package/dist/collection/components/_link/link-button/link-button.js +2 -2
  123. package/dist/collection/components/_link/link-external/link-external.js +2 -2
  124. package/dist/collection/components/_link/link-internal/link-internal.css +338 -101
  125. package/dist/collection/components/_link/link-internal/link-internal.js +2 -2
  126. package/dist/collection/components/_logo/title-logo/title-logo.js +1 -1
  127. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  128. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  129. package/dist/collection/components/_quote/quote/quote.css +2 -2
  130. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  131. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +105 -2
  132. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  133. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  134. package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
  135. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  136. package/dist/collection/design-tokens/components/_calendar.variables.scss +1 -0
  137. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  138. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  139. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  140. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  141. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
  142. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  143. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  144. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  145. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  146. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  147. package/dist/collection/enums.js +1 -0
  148. package/dist/collection/styles/src/_alias.mixin.scss +270 -128
  149. package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
  150. package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +139 -0
  151. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
  152. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
  153. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  154. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +1 -0
  155. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  156. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  157. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  158. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  159. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
  160. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  161. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  162. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  163. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  164. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  165. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  166. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  167. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  168. package/dist/digi-arbetsformedlingen/p-014a7047.entry.js +1 -0
  169. package/dist/digi-arbetsformedlingen/{p-c30f5cbf.entry.js → p-030e608e.entry.js} +1 -1
  170. package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
  171. package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
  172. package/dist/digi-arbetsformedlingen/p-158037f8.entry.js +1 -0
  173. package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
  174. package/dist/digi-arbetsformedlingen/p-1887ef59.entry.js +1 -0
  175. package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
  176. package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
  177. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  178. package/dist/digi-arbetsformedlingen/p-53d9556b.js +1 -0
  179. package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
  180. package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
  181. package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
  182. package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
  183. package/dist/digi-arbetsformedlingen/p-6bf36a39.entry.js +1 -0
  184. package/dist/digi-arbetsformedlingen/p-7a6a447c.entry.js +1 -0
  185. package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
  186. package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
  187. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  188. package/dist/digi-arbetsformedlingen/p-a7372448.entry.js +1 -0
  189. package/dist/digi-arbetsformedlingen/{p-eada91bf.entry.js → p-c0b39654.entry.js} +1 -1
  190. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  191. package/dist/digi-arbetsformedlingen/{p-864542b1.entry.js → p-cc9a96ff.entry.js} +1 -1
  192. package/dist/digi-arbetsformedlingen/p-cd77a916.entry.js +1 -0
  193. package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
  194. package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
  195. package/dist/digi-arbetsformedlingen/p-f358d8b2.entry.js +1 -0
  196. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  197. package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
  198. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +270 -128
  199. package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
  200. package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +139 -0
  201. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
  202. package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
  203. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  204. package/dist/esm/digi-button_37.entry.js +5214 -0
  205. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  206. package/dist/esm/digi-code-block.entry.js +85 -0
  207. package/dist/esm/digi-code-example.entry.js +2 -3
  208. package/dist/esm/digi-dialog.entry.js +5 -19
  209. package/dist/esm/digi-footer.entry.js +4 -18
  210. package/dist/esm/digi-form-error-list.entry.js +4 -18
  211. package/dist/esm/digi-form-file-upload.entry.js +2 -3
  212. package/dist/esm/digi-form-input-search.entry.js +3 -5
  213. package/dist/esm/digi-form-receipt.entry.js +4 -18
  214. package/dist/esm/digi-form-select-filter.entry.js +12 -26
  215. package/dist/esm/digi-form-textarea.entry.js +3 -3
  216. package/dist/esm/digi-header-avatar.entry.js +1 -1
  217. package/dist/esm/digi-header-navigation.entry.js +4 -18
  218. package/dist/esm/digi-header.entry.js +4 -18
  219. package/dist/esm/digi-icon-external-link-alt_2.entry.js +1 -1
  220. package/dist/esm/digi-info-card.entry.js +1 -1
  221. package/dist/esm/digi-link-button.entry.js +1 -1
  222. package/dist/esm/digi-link-internal.entry.js +2 -2
  223. package/dist/esm/digi-navigation-pagination.entry.js +4 -18
  224. package/dist/esm/digi-notification-alert.entry.js +4 -18
  225. package/dist/esm/digi-notification-error-page.entry.js +4 -18
  226. package/dist/esm/digi-quote.entry.js +1 -1
  227. package/dist/esm/digi-title-logo.entry.js +5 -19
  228. package/dist/esm/digi-tools-feedback.entry.js +5 -19
  229. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  230. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  231. package/dist/esm/index-148a7577.js +4 -92
  232. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  233. package/dist/esm/index.js +4 -18
  234. package/dist/esm/loader.js +1 -1
  235. package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-b07f76c9.js} +159 -1
  236. package/dist/types/components/_calendar/calendar/calendar.d.ts +1 -1
  237. package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +1 -0
  238. package/dist/types/components/_form/form-checkbox/form-checkbox.d.ts +1 -0
  239. package/dist/types/components/_form/form-input/form-input.d.ts +1 -0
  240. package/dist/types/components/_form/form-input-search/form-input-search.d.ts +1 -0
  241. package/dist/types/components/_form/form-radiobutton/form-radiobutton.d.ts +1 -0
  242. package/dist/types/components/_form/form-radiogroup/form-radiogroup.d.ts +1 -0
  243. package/dist/types/components/_form/form-select/form-select.d.ts +1 -0
  244. package/dist/types/components/_form/form-select-filter/form-select-filter.d.ts +1 -0
  245. package/dist/types/components/_form/form-textarea/form-textarea.d.ts +1 -0
  246. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  247. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  248. package/dist/types/components.d.ts +52 -4
  249. package/dist/types/enums.d.ts +1 -0
  250. package/hydrate/index.js +91 -63
  251. package/hydrate/index.mjs +91 -63
  252. package/package.json +1 -1
  253. package/components/p-4bad4fb0.js +0 -7
  254. package/components/p-93e21f44.js +0 -66
  255. package/components/p-c236a69d.js +0 -163
  256. package/components/p-e8fc33ed.js +0 -165
  257. package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
  258. package/dist/cjs/button-type.enum-406723db.js +0 -8
  259. package/dist/cjs/digi-button_9.cjs.entry.js +0 -533
  260. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2603
  261. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  262. package/dist/cjs/digi-code-block_3.cjs.entry.js +0 -232
  263. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  264. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  265. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
  266. package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
  267. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
  268. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  269. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  270. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  271. package/dist/cjs/digi-icon-copy.cjs.entry.js +0 -30
  272. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  273. package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
  274. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  275. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  276. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  277. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  278. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  279. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  280. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  281. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  282. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
  283. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  284. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  285. package/dist/cjs/form-input-search-variation.enum-c50239bc.js +0 -8
  286. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  287. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  288. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  289. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  290. package/dist/cjs/index-cad91a90.js +0 -66
  291. package/dist/cjs/index-e8333bcc.js +0 -174
  292. package/dist/cjs/layout-container-max-width.enum-7e637f44.js +0 -21
  293. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  294. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  295. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  296. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  297. package/dist/digi-arbetsformedlingen/p-011d5a78.entry.js +0 -1
  298. package/dist/digi-arbetsformedlingen/p-0436c516.entry.js +0 -1
  299. package/dist/digi-arbetsformedlingen/p-04413bed.entry.js +0 -1
  300. package/dist/digi-arbetsformedlingen/p-0461e19a.entry.js +0 -1
  301. package/dist/digi-arbetsformedlingen/p-14731327.entry.js +0 -1
  302. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  303. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  304. package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
  305. package/dist/digi-arbetsformedlingen/p-2698dd2a.entry.js +0 -1
  306. package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
  307. package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
  308. package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
  309. package/dist/digi-arbetsformedlingen/p-38627816.entry.js +0 -1
  310. package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
  311. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  312. package/dist/digi-arbetsformedlingen/p-3d0c3803.entry.js +0 -1
  313. package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
  314. package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
  315. package/dist/digi-arbetsformedlingen/p-43178277.entry.js +0 -1
  316. package/dist/digi-arbetsformedlingen/p-4452f871.entry.js +0 -1
  317. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  318. package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
  319. package/dist/digi-arbetsformedlingen/p-501697cd.entry.js +0 -1
  320. package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
  321. package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
  322. package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
  323. package/dist/digi-arbetsformedlingen/p-67d28f76.entry.js +0 -1
  324. package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
  325. package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
  326. package/dist/digi-arbetsformedlingen/p-6efa0bd8.entry.js +0 -1
  327. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  328. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  329. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  330. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  331. package/dist/digi-arbetsformedlingen/p-89b457e8.entry.js +0 -1
  332. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  333. package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
  334. package/dist/digi-arbetsformedlingen/p-95330112.entry.js +0 -1
  335. package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
  336. package/dist/digi-arbetsformedlingen/p-98eece1b.entry.js +0 -1
  337. package/dist/digi-arbetsformedlingen/p-9dcedec5.entry.js +0 -1
  338. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  339. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  340. package/dist/digi-arbetsformedlingen/p-a3cea8b4.entry.js +0 -1
  341. package/dist/digi-arbetsformedlingen/p-b6048dc7.entry.js +0 -1
  342. package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
  343. package/dist/digi-arbetsformedlingen/p-bf53daba.entry.js +0 -1
  344. package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
  345. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  346. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  347. package/dist/digi-arbetsformedlingen/p-cdf86efc.js +0 -1
  348. package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
  349. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  350. package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
  351. package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
  352. package/dist/digi-arbetsformedlingen/p-dc13eeeb.entry.js +0 -1
  353. package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
  354. package/dist/digi-arbetsformedlingen/p-e9656bf8.entry.js +0 -1
  355. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  356. package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
  357. package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
  358. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  359. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  360. package/dist/digi-arbetsformedlingen/p-f8391f37.entry.js +0 -1
  361. package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
  362. package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
  363. package/dist/esm/button-type.enum-5250ae0b.js +0 -8
  364. package/dist/esm/digi-button_9.entry.js +0 -521
  365. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2599
  366. package/dist/esm/digi-calendar_2.entry.js +0 -459
  367. package/dist/esm/digi-code-block_3.entry.js +0 -226
  368. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  369. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  370. package/dist/esm/digi-form-checkbox.entry.js +0 -123
  371. package/dist/esm/digi-form-input.entry.js +0 -190
  372. package/dist/esm/digi-form-radiogroup.entry.js +0 -76
  373. package/dist/esm/digi-icon-check.entry.js +0 -26
  374. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  375. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  376. package/dist/esm/digi-icon-copy.entry.js +0 -26
  377. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  378. package/dist/esm/digi-layout-block_2.entry.js +0 -87
  379. package/dist/esm/digi-link.entry.js +0 -71
  380. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  381. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  382. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  383. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  384. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  385. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  386. package/dist/esm/digi-typography.entry.js +0 -22
  387. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  388. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  389. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  390. package/dist/esm/form-input-search-variation.enum-f9d669f2.js +0 -8
  391. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  392. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  393. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  394. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  395. package/dist/esm/index-5b6c95c6.js +0 -63
  396. package/dist/esm/index-8685f88d.js +0 -170
  397. package/dist/esm/layout-container-max-width.enum-c40018ac.js +0 -21
  398. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  399. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  400. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  401. 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: '564278041d6661785372ce699def75ecae69c1e7', tabindex: -1 }, h("div", { key: 'd406ba753d7a692dd4fef12028c6e582c0729237', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '57a815c752617b0189a0a451dfd9ac0b3140c4fc', class: "digi-form-select__label-group" }, h("digi-form-label", { key: 'ab54ac3e2dadbc98decb669df1b95d1a8bce6881', 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: '390f1562456c469c970e39223aaccd5d6f2e7bb8', class: "digi-form-select__select-wrapper" }, h("select", { key: '3583ca126d1aac3b4ea0b84aaf19eb2352b9dbfc', 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: 'b8018bae71f5a61781a3d29e76a551f5761d338c', 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: '9858368762d4c40784a2d0d41f708224d739784f', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: '5f2a46ed7cab5279361bf7c6f5b010c23d60c79a', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
333
- e.stopImmediatePropagation();
334
- this.getOptions();
335
- } }, h("slot", { key: 'ed720f6760ffc1875712705218b6049018ef0f62' })), h("div", { key: 'fef47d914b0133b26b6a945aa7297a78a06f1ce5', class: "digi-form-select__footer" }, h("div", { key: 'b20834a4be9b1e3711f8ff9c3766ffb2eeb42a4a', "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '7f13b2333b5cf62006c727648c3a22776dd44b7e', "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 };