@gov-design-system-ce/components 4.1.0-rc04 → 4.1.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 (830) hide show
  1. package/dist/cjs/{colors-976f6dff.js → colors-f7c8eadd.js} +7 -9
  2. package/dist/cjs/colors-f7c8eadd.js.map +1 -0
  3. package/dist/cjs/{constants-e2807da6.js → constants-49f0efa6.js} +2 -2
  4. package/dist/cjs/{constants-e2807da6.js.map → constants-49f0efa6.js.map} +1 -1
  5. package/dist/cjs/{constants-43c0c51b.js → constants-4dfa23e3.js} +2 -2
  6. package/dist/cjs/{constants-43c0c51b.js.map → constants-4dfa23e3.js.map} +1 -1
  7. package/dist/cjs/{constants-441d1af4.js → constants-82929d01.js} +2 -2
  8. package/dist/cjs/{constants-441d1af4.js.map → constants-82929d01.js.map} +1 -1
  9. package/dist/cjs/{constants-bd0d66ac.js → constants-b9fece07.js} +2 -2
  10. package/dist/cjs/{constants-bd0d66ac.js.map → constants-b9fece07.js.map} +1 -1
  11. package/dist/cjs/{constants-5037cdc9.js → constants-c0886404.js} +2 -2
  12. package/dist/cjs/{constants-5037cdc9.js.map → constants-c0886404.js.map} +1 -1
  13. package/dist/cjs/{constants-861428a4.js → constants-f464dc4c.js} +2 -2
  14. package/dist/cjs/{constants-861428a4.js.map → constants-f464dc4c.js.map} +1 -1
  15. package/dist/cjs/core.cjs.js +1 -1
  16. package/dist/cjs/{form-c1aec07a.js → form-4e66039a.js} +4 -3
  17. package/dist/cjs/form-4e66039a.js.map +1 -0
  18. package/dist/cjs/gov-accordion-item.cjs.entry.js +4 -5
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-accordion.cjs.entry.js +3 -4
  21. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-attachments_3.cjs.entry.js +11 -12
  23. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-backdrop.cjs.entry.js +4 -5
  25. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +5 -6
  27. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-button.cjs.entry.js +10 -11
  29. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-card.cjs.entry.js +5 -6
  31. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-chip.cjs.entry.js +11 -12
  33. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-container.cjs.entry.js +2 -10
  35. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-control-group.cjs.entry.js +4 -5
  37. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-dialog.cjs.entry.js +5 -6
  40. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  42. package/dist/cjs/gov-empty.cjs.entry.js +3 -4
  43. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-flex_4.cjs.entry.js +322 -0
  46. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +4 -6
  48. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +5 -6
  50. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-checkbox.cjs.entry.js +7 -8
  52. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-control.cjs.entry.js +5 -5
  54. package/dist/cjs/gov-form-file.cjs.entry.js +5 -6
  55. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-group.cjs.entry.js +4 -5
  57. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-form-input_2.cjs.entry.js +12 -11
  59. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-form-multi-select.cjs.entry.js +9 -10
  61. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  63. package/dist/cjs/gov-form-radio-group.cjs.entry.js +5 -6
  64. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-form-radio.cjs.entry.js +6 -7
  66. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  68. package/dist/cjs/gov-form-select.cjs.entry.js +8 -9
  69. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-form-switch.cjs.entry.js +7 -8
  71. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
  73. package/dist/cjs/gov-grid.cjs.entry.js +2 -2
  74. package/dist/cjs/gov-infobar.cjs.entry.js +6 -7
  75. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  77. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  78. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  79. package/dist/cjs/gov-link.cjs.entry.js +51 -0
  80. package/dist/cjs/gov-link.cjs.entry.js.map +1 -0
  81. package/dist/cjs/gov-loading.cjs.entry.js +4 -5
  82. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-message.cjs.entry.js +5 -6
  84. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-pagination.cjs.entry.js +5 -6
  86. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  87. package/dist/cjs/gov-spacer.cjs.entry.js +4 -5
  88. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-stepper-item.cjs.entry.js +6 -7
  90. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  91. package/dist/cjs/gov-stepper.cjs.entry.js +6 -7
  92. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  93. package/dist/cjs/gov-tabs-item.cjs.entry.js +4 -4
  94. package/dist/cjs/gov-tabs.cjs.entry.js +6 -7
  95. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  96. package/dist/cjs/gov-tag.cjs.entry.js +10 -11
  97. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  98. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  99. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  100. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  101. package/dist/cjs/gov-toast.cjs.entry.js +6 -6
  102. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  103. package/dist/cjs/gov-tooltip-content.cjs.entry.js +4 -4
  104. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  105. package/dist/cjs/gov-tooltip.cjs.entry.js +10 -11
  106. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-wizard-item.cjs.entry.js +8 -9
  108. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-wizard.cjs.entry.js +8 -9
  110. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  111. package/dist/cjs/{win-587f4614.js → gov.log-bfea3151.js} +16 -4
  112. package/dist/cjs/gov.log-bfea3151.js.map +1 -0
  113. package/dist/cjs/index-7ff4447c.js +6 -14
  114. package/dist/cjs/loader.cjs.js +1 -1
  115. package/dist/cjs/{props-b8a955b2.js → props-d189860c.js} +2 -2
  116. package/dist/cjs/{props-b8a955b2.js.map → props-d189860c.js.map} +1 -1
  117. package/dist/cjs/{template-b070338f.js → template-39939fd6.js} +1 -20
  118. package/dist/cjs/template-39939fd6.js.map +1 -0
  119. package/dist/cjs/{wcag-b8d80c7d.js → wcag-2927ff73.js} +4 -5
  120. package/dist/cjs/wcag-2927ff73.js.map +1 -0
  121. package/dist/collection/collection-manifest.json +1 -0
  122. package/dist/collection/components/gov-accordion/gov-accordion-item.js +1 -1
  123. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  124. package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -35
  125. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  126. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  127. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  128. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  129. package/dist/collection/components/gov-button/button/gov-button.js +9 -9
  130. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  131. package/dist/collection/components/gov-card/gov-card.js +1 -1
  132. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  133. package/dist/collection/components/gov-chip/gov-chip.js +16 -16
  134. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  135. package/dist/collection/components/gov-container/gov-container.js +2 -38
  136. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  137. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  138. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  139. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -20
  140. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  141. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  142. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  143. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  144. package/dist/collection/components/gov-form/file/gov-form-file.js +1 -20
  145. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  146. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  147. package/dist/collection/components/gov-form/group/gov-form-group.css +7 -36
  148. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  149. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  150. package/dist/collection/components/gov-form/input/constants.js +1 -0
  151. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  152. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -3
  153. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  154. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  155. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  156. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  157. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  158. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  159. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  160. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  161. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  162. package/dist/collection/components/gov-form/switch/constants.js +1 -1
  163. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  164. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  165. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  166. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  167. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  168. package/dist/collection/components/gov-icon/constants.js +8 -7
  169. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  170. package/dist/collection/components/gov-icon/gov-icon.js +38 -6
  171. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  172. package/dist/collection/components/gov-icon/list.js +37 -151
  173. package/dist/collection/components/gov-icon/list.js.map +1 -1
  174. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  175. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  176. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  177. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  178. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  179. package/dist/collection/components/gov-link/constants.js +7 -0
  180. package/dist/collection/components/gov-link/constants.js.map +1 -0
  181. package/dist/collection/components/gov-link/gov-link.js +129 -0
  182. package/dist/collection/components/gov-link/gov-link.js.map +1 -0
  183. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  184. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  185. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  186. package/dist/collection/components/gov-message/gov-message.js +1 -1
  187. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  188. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  189. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  190. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  191. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  192. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  193. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  194. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  195. package/dist/collection/components/gov-tag/gov-tag.js +9 -9
  196. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  197. package/dist/collection/components/gov-theme-switch/constants.js +9 -1
  198. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  199. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +134 -10
  200. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  201. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  202. package/dist/collection/components/gov-tile/gov-tile.js +7 -7
  203. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  204. package/dist/collection/components/gov-toast/constants.js +1 -0
  205. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  206. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  207. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  208. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  209. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  210. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  211. package/dist/collection/components/gov-wizard/gov-wizard-item.js +3 -3
  212. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  213. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  214. package/dist/collection/core/constants/colors.js +6 -8
  215. package/dist/collection/core/constants/colors.js.map +1 -1
  216. package/dist/collection/data/color-definitions.js +359 -172
  217. package/dist/collection/helpers/Dom/document.js +28 -0
  218. package/dist/collection/helpers/Dom/document.js.map +1 -0
  219. package/dist/collection/helpers/Dom/template.js +0 -18
  220. package/dist/collection/helpers/Dom/template.js.map +1 -1
  221. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  222. package/dist/collection/pages/Accordion.js +30 -30
  223. package/dist/collection/pages/Accordion.js.map +1 -1
  224. package/dist/collection/pages/Button.js +383 -383
  225. package/dist/collection/pages/Button.js.map +1 -1
  226. package/dist/collection/pages/Chip.js +53 -53
  227. package/dist/collection/pages/Chip.js.map +1 -1
  228. package/dist/collection/pages/ControlGroup.js +18 -18
  229. package/dist/collection/pages/ControlGroup.js.map +1 -1
  230. package/dist/collection/pages/Dialog.js +1 -1
  231. package/dist/collection/pages/Dialog.js.map +1 -1
  232. package/dist/collection/pages/Forms.js +47 -37
  233. package/dist/collection/pages/Forms.js.map +1 -1
  234. package/dist/collection/pages/Icon.js +10 -0
  235. package/dist/collection/pages/Icon.js.map +1 -1
  236. package/dist/collection/pages/Infobar.js +16 -16
  237. package/dist/collection/pages/Infobar.js.map +1 -1
  238. package/dist/collection/pages/Message.js +20 -20
  239. package/dist/collection/pages/Message.js.map +1 -1
  240. package/dist/collection/pages/Stepper.js +15 -15
  241. package/dist/collection/pages/Stepper.js.map +1 -1
  242. package/dist/collection/pages/Tag.js +23 -23
  243. package/dist/collection/pages/Tag.js.map +1 -1
  244. package/dist/collection/pages/ToastMessage.js +4 -4
  245. package/dist/collection/pages/ToastMessage.js.map +1 -1
  246. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  247. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  248. package/dist/collection/pages/Tooltip.js +2 -2
  249. package/dist/collection/pages/Tooltip.js.map +1 -1
  250. package/dist/collection/pages/Typography.js +20 -0
  251. package/dist/collection/pages/Typography.js.map +1 -1
  252. package/dist/collection/pages/Wizard.js +1 -1
  253. package/dist/collection/pages/Wizard.js.map +1 -1
  254. package/dist/components/gov-accordion-item.js +1 -1
  255. package/dist/components/gov-accordion-item.js.map +1 -1
  256. package/dist/components/gov-accordion.js +1 -1
  257. package/dist/components/gov-attachments-item.js +1 -1
  258. package/dist/components/gov-attachments.js +1 -1
  259. package/dist/components/gov-backdrop.js +1 -1
  260. package/dist/components/gov-breadcrumbs.js +1 -1
  261. package/dist/components/gov-breadcrumbs.js.map +1 -1
  262. package/dist/components/gov-button.js +1 -1
  263. package/dist/components/gov-card.js +1 -1
  264. package/dist/components/gov-card.js.map +1 -1
  265. package/dist/components/gov-chip.js +1 -1
  266. package/dist/components/gov-container.js +1 -1
  267. package/dist/components/gov-container.js.map +1 -1
  268. package/dist/components/gov-control-group.js +1 -1
  269. package/dist/components/gov-cookiebar.js +1 -1
  270. package/dist/components/gov-dialog.js +1 -1
  271. package/dist/components/gov-dialog.js.map +1 -1
  272. package/dist/components/gov-dropdown.js +1 -1
  273. package/dist/components/gov-empty.js +1 -1
  274. package/dist/components/gov-error-code.js +1 -1
  275. package/dist/components/gov-flex.js +1 -1
  276. package/dist/components/gov-form-autocomplete.js +1 -1
  277. package/dist/components/gov-form-checkbox-group.js +1 -1
  278. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  279. package/dist/components/gov-form-checkbox.js +1 -1
  280. package/dist/components/gov-form-checkbox.js.map +1 -1
  281. package/dist/components/gov-form-control.js +1 -1
  282. package/dist/components/gov-form-file.js +1 -1
  283. package/dist/components/gov-form-file.js.map +1 -1
  284. package/dist/components/gov-form-group.js +1 -1
  285. package/dist/components/gov-form-input.js +1 -1
  286. package/dist/components/gov-form-label.js +1 -1
  287. package/dist/components/gov-form-label.js.map +1 -1
  288. package/dist/components/gov-form-message.js +1 -1
  289. package/dist/components/gov-form-multi-select.js +1 -1
  290. package/dist/components/gov-form-multi-select.js.map +1 -1
  291. package/dist/components/gov-form-password-power.js +1 -1
  292. package/dist/components/gov-form-password-power.js.map +1 -1
  293. package/dist/components/gov-form-radio-group.js +1 -1
  294. package/dist/components/gov-form-radio-group.js.map +1 -1
  295. package/dist/components/gov-form-radio.js +1 -1
  296. package/dist/components/gov-form-radio.js.map +1 -1
  297. package/dist/components/gov-form-search.js +1 -1
  298. package/dist/components/gov-form-select.js +1 -1
  299. package/dist/components/gov-form-switch.js +1 -1
  300. package/dist/components/gov-form-switch.js.map +1 -1
  301. package/dist/components/gov-grid-item.js +1 -1
  302. package/dist/components/gov-grid.js +1 -1
  303. package/dist/components/gov-icon.js +1 -1
  304. package/dist/components/gov-infobar.js +1 -1
  305. package/dist/components/gov-infobar.js.map +1 -1
  306. package/dist/components/gov-layout-column.js +1 -1
  307. package/dist/components/gov-layout.js +1 -1
  308. package/dist/components/gov-lifecycle.js +1 -1
  309. package/dist/components/gov-link.d.ts +11 -0
  310. package/dist/components/gov-link.js +2 -0
  311. package/dist/components/gov-link.js.map +1 -0
  312. package/dist/components/gov-loading.js +1 -1
  313. package/dist/components/gov-loading.js.map +1 -1
  314. package/dist/components/gov-message.js +1 -1
  315. package/dist/components/gov-pagination.js +1 -1
  316. package/dist/components/gov-pagination.js.map +1 -1
  317. package/dist/components/gov-skeleton.js +1 -1
  318. package/dist/components/gov-spacer.js +1 -1
  319. package/dist/components/gov-stepper-item.js +1 -1
  320. package/dist/components/gov-stepper.js +1 -1
  321. package/dist/components/gov-tabs-item.js +1 -1
  322. package/dist/components/gov-tabs.js +1 -1
  323. package/dist/components/gov-tabs.js.map +1 -1
  324. package/dist/components/gov-tag.js +1 -1
  325. package/dist/components/gov-tag.js.map +1 -1
  326. package/dist/components/gov-theme-switch.js +1 -1
  327. package/dist/components/gov-theme-switch.js.map +1 -1
  328. package/dist/components/gov-tile.js +1 -1
  329. package/dist/components/gov-tile.js.map +1 -1
  330. package/dist/components/gov-tiles.js +1 -1
  331. package/dist/components/gov-toast.js +1 -1
  332. package/dist/components/gov-toast.js.map +1 -1
  333. package/dist/components/gov-tooltip-content.js +1 -1
  334. package/dist/components/gov-tooltip-content.js.map +1 -1
  335. package/dist/components/gov-tooltip.js +1 -1
  336. package/dist/components/gov-tooltip.js.map +1 -1
  337. package/dist/components/gov-wizard-item.js +1 -1
  338. package/dist/components/gov-wizard-item.js.map +1 -1
  339. package/dist/components/gov-wizard.js +1 -1
  340. package/dist/components/p-20c2203a.js +2 -0
  341. package/dist/components/p-20c2203a.js.map +1 -0
  342. package/dist/components/p-227eb30d.js +2 -0
  343. package/dist/components/{p-dcee21ca.js.map → p-227eb30d.js.map} +1 -1
  344. package/dist/components/p-2b87c27b.js +2 -0
  345. package/dist/components/{p-3b807239.js.map → p-2b87c27b.js.map} +1 -1
  346. package/dist/components/p-31a99bfc.js +2 -0
  347. package/dist/components/{p-bd22e21d.js → p-4149f195.js} +2 -2
  348. package/dist/components/p-44a8a668.js +2 -0
  349. package/dist/components/p-45097b4c.js +2 -0
  350. package/dist/components/p-45097b4c.js.map +1 -0
  351. package/dist/components/{p-1f3bb41d.js → p-5952a5d0.js} +2 -2
  352. package/dist/components/p-5aad3497.js +2 -0
  353. package/dist/components/p-5aad3497.js.map +1 -0
  354. package/dist/components/p-68a1aaec.js +2 -0
  355. package/dist/components/p-68a1aaec.js.map +1 -0
  356. package/dist/components/p-76d604c6.js +2 -0
  357. package/dist/components/p-7d4f2214.js +2 -0
  358. package/dist/components/{p-6ea84137.js.map → p-7d4f2214.js.map} +1 -1
  359. package/dist/components/p-7f3becc5.js +2 -0
  360. package/dist/components/p-859a4f0d.js +2 -0
  361. package/dist/components/{p-820b66c0.js.map → p-859a4f0d.js.map} +1 -1
  362. package/dist/components/{p-7f8a24a7.js → p-860520b0.js} +2 -2
  363. package/dist/components/p-929ebfb5.js +2 -0
  364. package/dist/components/p-929ebfb5.js.map +1 -0
  365. package/dist/components/p-9908b9f0.js +2 -0
  366. package/dist/components/p-9908b9f0.js.map +1 -0
  367. package/dist/components/{p-19c681a3.js → p-a2435993.js} +2 -2
  368. package/dist/components/{p-59737af9.js → p-a521c59a.js} +2 -2
  369. package/dist/components/{p-0c93dd39.js → p-c61a5830.js} +2 -2
  370. package/dist/components/p-dc952cc2.js +2 -0
  371. package/dist/components/p-dc952cc2.js.map +1 -0
  372. package/dist/components/{p-23b7e680.js → p-dfb5794a.js} +2 -2
  373. package/dist/components/p-ea7fdd2e.js +2 -0
  374. package/dist/components/p-ea7fdd2e.js.map +1 -0
  375. package/dist/components/p-f44899e1.js +2 -0
  376. package/dist/components/p-f44899e1.js.map +1 -0
  377. package/dist/core/core.css +7985 -7198
  378. package/dist/core/core.esm.js +1 -1
  379. package/dist/core/core.esm.js.map +1 -1
  380. package/dist/core/p-00d153bf.entry.js +2 -0
  381. package/dist/core/p-019e967c.entry.js +2 -0
  382. package/dist/core/{p-83aa4327.entry.js.map → p-019e967c.entry.js.map} +1 -1
  383. package/dist/core/p-0be19b89.entry.js +2 -0
  384. package/dist/core/p-1abdcb62.entry.js +2 -0
  385. package/dist/core/p-1abdcb62.entry.js.map +1 -0
  386. package/dist/core/p-1ac9544f.entry.js +2 -0
  387. package/dist/core/{p-f963bb2f.entry.js.map → p-1ac9544f.entry.js.map} +1 -1
  388. package/dist/core/p-1b3c808d.entry.js +2 -0
  389. package/dist/core/p-1b3c808d.entry.js.map +1 -0
  390. package/dist/core/p-20c2203a.js +2 -0
  391. package/dist/core/p-20c2203a.js.map +1 -0
  392. package/dist/core/p-22fa411d.entry.js +2 -0
  393. package/dist/core/p-2c290fe5.entry.js +2 -0
  394. package/dist/core/p-2c290fe5.entry.js.map +1 -0
  395. package/dist/core/p-2c59483f.entry.js +2 -0
  396. package/dist/core/p-2c59483f.entry.js.map +1 -0
  397. package/dist/core/p-30eaeeec.entry.js +2 -0
  398. package/dist/core/p-3bbb77a0.js +2 -0
  399. package/dist/core/p-3fc3c26b.entry.js +2 -0
  400. package/dist/core/{p-212759be.entry.js.map → p-3fc3c26b.entry.js.map} +1 -1
  401. package/dist/core/p-40d764ac.entry.js +2 -0
  402. package/dist/core/{p-0d2c4d31.entry.js.map → p-40d764ac.entry.js.map} +1 -1
  403. package/dist/core/p-410ec0dd.entry.js +2 -0
  404. package/dist/core/{p-10f9bf55.entry.js.map → p-410ec0dd.entry.js.map} +1 -1
  405. package/dist/core/p-439b66a5.entry.js +2 -0
  406. package/dist/core/{p-92e13f9d.entry.js.map → p-439b66a5.entry.js.map} +1 -1
  407. package/dist/core/p-443a813a.entry.js +2 -0
  408. package/dist/core/{p-eebf7ad8.entry.js.map → p-443a813a.entry.js.map} +1 -1
  409. package/dist/core/p-48c93ac0.entry.js +2 -0
  410. package/dist/core/p-48c93ac0.entry.js.map +1 -0
  411. package/dist/core/p-52ca31be.entry.js +2 -0
  412. package/dist/core/{p-378e0723.entry.js.map → p-52ca31be.entry.js.map} +1 -1
  413. package/dist/core/p-535316b4.entry.js +2 -0
  414. package/dist/core/{p-b822b9ff.entry.js → p-5396935e.entry.js} +2 -2
  415. package/dist/core/{p-42d9924c.js → p-56efd4a2.js} +2 -2
  416. package/dist/core/p-5aad3497.js +2 -0
  417. package/dist/core/p-5aad3497.js.map +1 -0
  418. package/dist/core/p-5b2131c1.entry.js +2 -0
  419. package/dist/core/p-5ed63e9c.entry.js +2 -0
  420. package/dist/core/{p-1fdc2457.entry.js.map → p-5ed63e9c.entry.js.map} +1 -1
  421. package/dist/core/{p-60658ae9.js → p-5f1000da.js} +2 -2
  422. package/dist/core/p-6454af62.entry.js +2 -0
  423. package/dist/core/{p-56f9e026.entry.js.map → p-6454af62.entry.js.map} +1 -1
  424. package/dist/core/p-74458da3.entry.js +2 -0
  425. package/dist/core/p-74458da3.entry.js.map +1 -0
  426. package/dist/core/p-76d604c6.js +2 -0
  427. package/dist/core/{p-a21dc94f.js.map → p-76d604c6.js.map} +1 -1
  428. package/dist/core/p-773f71f6.entry.js +2 -0
  429. package/dist/core/{p-67200095.entry.js.map → p-773f71f6.entry.js.map} +1 -1
  430. package/dist/core/p-783a6b5b.entry.js +2 -0
  431. package/dist/core/{p-0a24806a.entry.js.map → p-783a6b5b.entry.js.map} +1 -1
  432. package/dist/core/p-7b7e502b.entry.js +2 -0
  433. package/dist/core/p-7ba4daf4.js +2 -0
  434. package/dist/core/p-7bf52eb9.entry.js +2 -0
  435. package/dist/core/p-7bf52eb9.entry.js.map +1 -0
  436. package/dist/core/p-7d6073aa.entry.js +2 -0
  437. package/dist/core/{p-fb0df3a5.entry.js.map → p-7d6073aa.entry.js.map} +1 -1
  438. package/dist/core/p-7f3becc5.js +2 -0
  439. package/dist/core/{p-e9a6cd71.js → p-860520b0.js} +2 -2
  440. package/dist/core/p-8701c28e.entry.js +2 -0
  441. package/dist/core/p-8701c28e.entry.js.map +1 -0
  442. package/dist/core/p-951823cb.entry.js +2 -0
  443. package/dist/core/{p-75ea368b.entry.js.map → p-951823cb.entry.js.map} +1 -1
  444. package/dist/core/p-9da91318.entry.js +2 -0
  445. package/dist/core/{p-1f1895c0.entry.js.map → p-9da91318.entry.js.map} +1 -1
  446. package/dist/core/p-a218e2eb.entry.js +2 -0
  447. package/dist/core/{p-d3963396.entry.js.map → p-a218e2eb.entry.js.map} +1 -1
  448. package/dist/core/{p-169b67af.js → p-a2435993.js} +2 -2
  449. package/dist/core/p-a521c59a.js +2 -0
  450. package/dist/core/p-b1efeb41.entry.js +2 -0
  451. package/dist/core/p-b1efeb41.entry.js.map +1 -0
  452. package/dist/core/p-b4af0bec.entry.js +2 -0
  453. package/dist/core/p-b4af0bec.entry.js.map +1 -0
  454. package/dist/core/p-bc966c46.entry.js +2 -0
  455. package/dist/core/p-bdc51179.entry.js +2 -0
  456. package/dist/core/p-bdc51179.entry.js.map +1 -0
  457. package/dist/core/p-c20fe3da.entry.js +2 -0
  458. package/dist/core/{p-8f10919c.entry.js.map → p-c20fe3da.entry.js.map} +1 -1
  459. package/dist/core/p-c4ffcc37.entry.js +2 -0
  460. package/dist/core/p-c4ffcc37.entry.js.map +1 -0
  461. package/dist/core/p-c52afdfc.js +2 -0
  462. package/dist/core/{p-842cb87f.js.map → p-c52afdfc.js.map} +1 -1
  463. package/dist/core/{p-c990d746.js → p-c61a5830.js} +2 -2
  464. package/dist/core/p-cb557873.entry.js +2 -0
  465. package/dist/core/{p-3844a27d.entry.js.map → p-cb557873.entry.js.map} +1 -1
  466. package/dist/core/p-d24710ff.entry.js +2 -0
  467. package/dist/core/p-d24710ff.entry.js.map +1 -0
  468. package/dist/core/p-d65cef62.entry.js +2 -0
  469. package/dist/core/{p-4cb4de7b.entry.js.map → p-d65cef62.entry.js.map} +1 -1
  470. package/dist/core/p-da1db6fd.js +2 -0
  471. package/dist/core/p-da1db6fd.js.map +1 -0
  472. package/dist/core/p-db22d51c.entry.js +2 -0
  473. package/dist/core/{p-f1c8a96b.entry.js.map → p-db22d51c.entry.js.map} +1 -1
  474. package/dist/core/p-dec3f948.entry.js +2 -0
  475. package/dist/core/{p-7b48b1b8.entry.js.map → p-dec3f948.entry.js.map} +1 -1
  476. package/dist/core/{p-45a30859.js → p-e0e2e9c1.js} +2 -2
  477. package/dist/core/p-e2517a72.entry.js +2 -0
  478. package/dist/core/{p-57b0e670.entry.js.map → p-e2517a72.entry.js.map} +1 -1
  479. package/dist/core/p-e44a0fee.js +2 -0
  480. package/dist/core/{p-58dc3ec3.entry.js → p-e834ee73.entry.js} +2 -2
  481. package/dist/core/p-ea7fdd2e.js +2 -0
  482. package/dist/core/p-ea7fdd2e.js.map +1 -0
  483. package/dist/core/p-ed1131cb.entry.js +2 -0
  484. package/dist/core/{p-c5b5fd69.entry.js.map → p-ed1131cb.entry.js.map} +1 -1
  485. package/dist/core/p-f1056a83.entry.js +2 -0
  486. package/dist/core/{p-32bba4e7.entry.js.map → p-f1056a83.entry.js.map} +1 -1
  487. package/dist/core/p-f1fa5e1e.entry.js +2 -0
  488. package/dist/core/{p-1600c1fb.entry.js.map → p-f1fa5e1e.entry.js.map} +1 -1
  489. package/dist/core/p-f4bcf817.entry.js +2 -0
  490. package/dist/core/p-f4bcf817.entry.js.map +1 -0
  491. package/dist/core/p-f6709826.entry.js +2 -0
  492. package/dist/core/p-f6709826.entry.js.map +1 -0
  493. package/dist/core/{p-5ad3097c.entry.js → p-f7a4da9d.entry.js} +2 -2
  494. package/dist/core/p-fca60e04.entry.js +2 -0
  495. package/dist/core/{p-8fe36a5b.entry.js.map → p-fca60e04.entry.js.map} +1 -1
  496. package/dist/core/p-fe6fed11.entry.js +2 -0
  497. package/dist/core/p-fe6fed11.entry.js.map +1 -0
  498. package/dist/esm/{colors-02c1ea96.js → colors-4cf64720.js} +7 -9
  499. package/dist/esm/colors-4cf64720.js.map +1 -0
  500. package/dist/esm/{constants-6d727976.js → constants-085f9943.js} +2 -2
  501. package/dist/esm/{constants-6d727976.js.map → constants-085f9943.js.map} +1 -1
  502. package/dist/esm/{constants-990365f1.js → constants-372455eb.js} +3 -3
  503. package/dist/esm/{constants-990365f1.js.map → constants-372455eb.js.map} +1 -1
  504. package/dist/esm/{constants-d6418889.js → constants-3ab65c42.js} +2 -2
  505. package/dist/esm/{constants-d6418889.js.map → constants-3ab65c42.js.map} +1 -1
  506. package/dist/esm/{constants-48177684.js → constants-3b914c35.js} +3 -3
  507. package/dist/esm/{constants-48177684.js.map → constants-3b914c35.js.map} +1 -1
  508. package/dist/esm/{constants-d42abf99.js → constants-43f10674.js} +2 -2
  509. package/dist/esm/{constants-d42abf99.js.map → constants-43f10674.js.map} +1 -1
  510. package/dist/esm/{constants-501eb756.js → constants-4da2b3c0.js} +2 -2
  511. package/dist/esm/{constants-501eb756.js.map → constants-4da2b3c0.js.map} +1 -1
  512. package/dist/esm/{constants-c716fa44.js → constants-51f51588.js} +3 -3
  513. package/dist/esm/{constants-c716fa44.js.map → constants-51f51588.js.map} +1 -1
  514. package/dist/esm/{constants-f4e4ede6.js → constants-8429b68f.js} +3 -3
  515. package/dist/esm/{constants-f4e4ede6.js.map → constants-8429b68f.js.map} +1 -1
  516. package/dist/esm/{constants-47e20524.js → constants-9177ea52.js} +3 -3
  517. package/dist/esm/{constants-47e20524.js.map → constants-9177ea52.js.map} +1 -1
  518. package/dist/esm/{constants-7307438d.js → constants-bc210662.js} +3 -3
  519. package/dist/esm/{constants-7307438d.js.map → constants-bc210662.js.map} +1 -1
  520. package/dist/esm/core.js +1 -1
  521. package/dist/esm/{form-472e078d.js → form-713f26fd.js} +7 -6
  522. package/dist/esm/form-713f26fd.js.map +1 -0
  523. package/dist/esm/gov-accordion-item.entry.js +6 -7
  524. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  525. package/dist/esm/gov-accordion.entry.js +5 -6
  526. package/dist/esm/gov-accordion.entry.js.map +1 -1
  527. package/dist/esm/gov-attachments_3.entry.js +10 -11
  528. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  529. package/dist/esm/gov-backdrop.entry.js +4 -5
  530. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  531. package/dist/esm/gov-breadcrumbs.entry.js +5 -6
  532. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  533. package/dist/esm/gov-button.entry.js +10 -11
  534. package/dist/esm/gov-button.entry.js.map +1 -1
  535. package/dist/esm/gov-card.entry.js +5 -6
  536. package/dist/esm/gov-card.entry.js.map +1 -1
  537. package/dist/esm/gov-chip.entry.js +12 -13
  538. package/dist/esm/gov-chip.entry.js.map +1 -1
  539. package/dist/esm/gov-container.entry.js +2 -10
  540. package/dist/esm/gov-container.entry.js.map +1 -1
  541. package/dist/esm/gov-control-group.entry.js +5 -6
  542. package/dist/esm/gov-control-group.entry.js.map +1 -1
  543. package/dist/esm/gov-cookiebar.entry.js +1 -1
  544. package/dist/esm/gov-dialog.entry.js +5 -6
  545. package/dist/esm/gov-dialog.entry.js.map +1 -1
  546. package/dist/esm/gov-dropdown.entry.js +4 -4
  547. package/dist/esm/gov-empty.entry.js +5 -6
  548. package/dist/esm/gov-empty.entry.js.map +1 -1
  549. package/dist/esm/gov-error-code.entry.js +1 -1
  550. package/dist/esm/gov-flex_4.entry.js +315 -0
  551. package/dist/esm/gov-flex_4.entry.js.map +1 -0
  552. package/dist/esm/gov-form-autocomplete.entry.js +6 -8
  553. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  554. package/dist/esm/gov-form-checkbox-group.entry.js +7 -8
  555. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  556. package/dist/esm/gov-form-checkbox.entry.js +10 -11
  557. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  558. package/dist/esm/gov-form-control.entry.js +8 -8
  559. package/dist/esm/gov-form-file.entry.js +8 -9
  560. package/dist/esm/gov-form-file.entry.js.map +1 -1
  561. package/dist/esm/gov-form-group.entry.js +6 -7
  562. package/dist/esm/gov-form-group.entry.js.map +1 -1
  563. package/dist/esm/gov-form-input_2.entry.js +15 -14
  564. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  565. package/dist/esm/gov-form-multi-select.entry.js +12 -13
  566. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  567. package/dist/esm/gov-form-password-power.entry.js +1 -1
  568. package/dist/esm/gov-form-radio-group.entry.js +7 -8
  569. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  570. package/dist/esm/gov-form-radio.entry.js +9 -10
  571. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  572. package/dist/esm/gov-form-search.entry.js +3 -3
  573. package/dist/esm/gov-form-select.entry.js +11 -12
  574. package/dist/esm/gov-form-select.entry.js.map +1 -1
  575. package/dist/esm/gov-form-switch.entry.js +10 -11
  576. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  577. package/dist/esm/gov-grid-item.entry.js +2 -2
  578. package/dist/esm/gov-grid.entry.js +2 -2
  579. package/dist/esm/gov-infobar.entry.js +7 -8
  580. package/dist/esm/gov-infobar.entry.js.map +1 -1
  581. package/dist/esm/gov-layout-column.entry.js +2 -2
  582. package/dist/esm/gov-layout.entry.js +2 -2
  583. package/dist/esm/gov-lifecycle.entry.js +1 -1
  584. package/dist/esm/gov-link.entry.js +47 -0
  585. package/dist/esm/gov-link.entry.js.map +1 -0
  586. package/dist/esm/gov-loading.entry.js +5 -6
  587. package/dist/esm/gov-loading.entry.js.map +1 -1
  588. package/dist/esm/gov-message.entry.js +6 -7
  589. package/dist/esm/gov-message.entry.js.map +1 -1
  590. package/dist/esm/gov-pagination.entry.js +6 -7
  591. package/dist/esm/gov-pagination.entry.js.map +1 -1
  592. package/dist/esm/gov-spacer.entry.js +5 -6
  593. package/dist/esm/gov-spacer.entry.js.map +1 -1
  594. package/dist/esm/gov-stepper-item.entry.js +7 -8
  595. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  596. package/dist/esm/gov-stepper.entry.js +7 -8
  597. package/dist/esm/gov-stepper.entry.js.map +1 -1
  598. package/dist/esm/gov-tabs-item.entry.js +5 -5
  599. package/dist/esm/gov-tabs.entry.js +7 -8
  600. package/dist/esm/gov-tabs.entry.js.map +1 -1
  601. package/dist/esm/gov-tag.entry.js +11 -12
  602. package/dist/esm/gov-tag.entry.js.map +1 -1
  603. package/dist/esm/gov-tile.entry.js +3 -3
  604. package/dist/esm/gov-tile.entry.js.map +1 -1
  605. package/dist/esm/gov-tiles.entry.js +2 -2
  606. package/dist/esm/gov-toast.entry.js +7 -7
  607. package/dist/esm/gov-toast.entry.js.map +1 -1
  608. package/dist/esm/gov-tooltip-content.entry.js +5 -5
  609. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  610. package/dist/esm/gov-tooltip.entry.js +8 -9
  611. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  612. package/dist/esm/gov-wizard-item.entry.js +9 -10
  613. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  614. package/dist/esm/gov-wizard.entry.js +8 -9
  615. package/dist/esm/gov-wizard.entry.js.map +1 -1
  616. package/dist/esm/{win-cec370ad.js → gov.log-066c3139.js} +17 -3
  617. package/dist/esm/gov.log-066c3139.js.map +1 -0
  618. package/dist/esm/index-c263e031.js +6 -14
  619. package/dist/esm/loader.js +1 -1
  620. package/dist/esm/{props-c82e1abf.js → props-fb6587c3.js} +2 -2
  621. package/dist/esm/{props-c82e1abf.js.map → props-fb6587c3.js.map} +1 -1
  622. package/dist/esm/{template-3d84d705.js → template-7ecee4d1.js} +2 -20
  623. package/dist/esm/template-7ecee4d1.js.map +1 -0
  624. package/dist/esm/{utils-2b4ef320.js → utils-e10e994d.js} +2 -2
  625. package/dist/esm/{utils-2b4ef320.js.map → utils-e10e994d.js.map} +1 -1
  626. package/dist/esm/{wcag-d7c6c252.js → wcag-de9a3dc6.js} +2 -3
  627. package/dist/esm/wcag-de9a3dc6.js.map +1 -0
  628. package/dist/hydrate/index.js +224 -138
  629. package/dist/hydrate/index.mjs +224 -138
  630. package/dist/stencil.config.js +6 -4
  631. package/dist/stencil.config.js.map +1 -1
  632. package/dist/types/components/gov-button/button/gov-button.d.ts +1 -1
  633. package/dist/types/components/gov-chip/gov-chip.d.ts +3 -3
  634. package/dist/types/components/gov-container/gov-container.d.ts +0 -6
  635. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -4
  636. package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -4
  637. package/dist/types/components/gov-form/input/constants.d.ts +1 -0
  638. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  639. package/dist/types/components/gov-icon/constants.d.ts +4 -1
  640. package/dist/types/components/gov-icon/gov-icon.d.ts +8 -2
  641. package/dist/types/components/gov-icon/list.d.ts +1 -1
  642. package/dist/types/components/gov-link/constants.d.ts +7 -0
  643. package/dist/types/components/gov-link/gov-link.d.ts +30 -0
  644. package/dist/types/components/gov-tag/gov-tag.d.ts +2 -2
  645. package/dist/types/components/gov-theme-switch/constants.d.ts +9 -0
  646. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +26 -2
  647. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
  648. package/dist/types/components/gov-toast/constants.d.ts +1 -0
  649. package/dist/types/components.d.ts +117 -37
  650. package/dist/types/core/constants/colors.d.ts +6 -8
  651. package/dist/types/helpers/Dom/document.d.ts +3 -0
  652. package/dist/types/helpers/Dom/template.d.ts +0 -1
  653. package/dist/types/helpers/Dom/template.types.d.ts +0 -1
  654. package/package.json +3 -3
  655. package/dist/cjs/colors-976f6dff.js.map +0 -1
  656. package/dist/cjs/form-c1aec07a.js.map +0 -1
  657. package/dist/cjs/gov-flex.cjs.entry.js +0 -31
  658. package/dist/cjs/gov-flex.cjs.entry.js.map +0 -1
  659. package/dist/cjs/gov-form-label.cjs.entry.js +0 -27
  660. package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
  661. package/dist/cjs/gov-icon.cjs.entry.js +0 -161
  662. package/dist/cjs/gov-icon.cjs.entry.js.map +0 -1
  663. package/dist/cjs/gov-theme-switch.cjs.entry.js +0 -73
  664. package/dist/cjs/gov-theme-switch.cjs.entry.js.map +0 -1
  665. package/dist/cjs/gov.log-1e8bab6e.js +0 -21
  666. package/dist/cjs/gov.log-1e8bab6e.js.map +0 -1
  667. package/dist/cjs/template-b070338f.js.map +0 -1
  668. package/dist/cjs/wcag-b8d80c7d.js.map +0 -1
  669. package/dist/cjs/win-587f4614.js.map +0 -1
  670. package/dist/components/p-0075138f.js +0 -2
  671. package/dist/components/p-0075138f.js.map +0 -1
  672. package/dist/components/p-02da2aee.js +0 -2
  673. package/dist/components/p-02da2aee.js.map +0 -1
  674. package/dist/components/p-08621bdf.js +0 -2
  675. package/dist/components/p-1a0b3b4f.js +0 -2
  676. package/dist/components/p-1a0b3b4f.js.map +0 -1
  677. package/dist/components/p-1d3019f3.js +0 -2
  678. package/dist/components/p-255d0471.js +0 -2
  679. package/dist/components/p-255d0471.js.map +0 -1
  680. package/dist/components/p-387052e1.js +0 -2
  681. package/dist/components/p-387052e1.js.map +0 -1
  682. package/dist/components/p-3b807239.js +0 -2
  683. package/dist/components/p-565120d5.js +0 -2
  684. package/dist/components/p-5cc316bc.js +0 -2
  685. package/dist/components/p-5cc316bc.js.map +0 -1
  686. package/dist/components/p-6ea84137.js +0 -2
  687. package/dist/components/p-7501abe8.js +0 -2
  688. package/dist/components/p-7501abe8.js.map +0 -1
  689. package/dist/components/p-820b66c0.js +0 -2
  690. package/dist/components/p-c211c3e1.js +0 -2
  691. package/dist/components/p-c211c3e1.js.map +0 -1
  692. package/dist/components/p-dcee21ca.js +0 -2
  693. package/dist/components/p-e3aeaca0.js +0 -2
  694. package/dist/components/p-e3aeaca0.js.map +0 -1
  695. package/dist/components/p-edd1417b.js +0 -2
  696. package/dist/core/p-0075138f.js +0 -2
  697. package/dist/core/p-0075138f.js.map +0 -1
  698. package/dist/core/p-052cc573.js +0 -2
  699. package/dist/core/p-0a24806a.entry.js +0 -2
  700. package/dist/core/p-0d2c4d31.entry.js +0 -2
  701. package/dist/core/p-10f9bf55.entry.js +0 -2
  702. package/dist/core/p-12680890.entry.js +0 -2
  703. package/dist/core/p-12680890.entry.js.map +0 -1
  704. package/dist/core/p-1600c1fb.entry.js +0 -2
  705. package/dist/core/p-18025823.entry.js +0 -2
  706. package/dist/core/p-18025823.entry.js.map +0 -1
  707. package/dist/core/p-18dbe177.entry.js +0 -2
  708. package/dist/core/p-18dbe177.entry.js.map +0 -1
  709. package/dist/core/p-1a550eee.entry.js +0 -2
  710. package/dist/core/p-1a550eee.entry.js.map +0 -1
  711. package/dist/core/p-1f1895c0.entry.js +0 -2
  712. package/dist/core/p-1fdc2457.entry.js +0 -2
  713. package/dist/core/p-212759be.entry.js +0 -2
  714. package/dist/core/p-215504c1.entry.js +0 -2
  715. package/dist/core/p-2614044c.js +0 -2
  716. package/dist/core/p-2c3ddc57.entry.js +0 -2
  717. package/dist/core/p-31e7d262.entry.js +0 -2
  718. package/dist/core/p-31e7d262.entry.js.map +0 -1
  719. package/dist/core/p-32bba4e7.entry.js +0 -2
  720. package/dist/core/p-378e0723.entry.js +0 -2
  721. package/dist/core/p-3844a27d.entry.js +0 -2
  722. package/dist/core/p-4bce896c.js +0 -2
  723. package/dist/core/p-4cb4de7b.entry.js +0 -2
  724. package/dist/core/p-56f9e026.entry.js +0 -2
  725. package/dist/core/p-57b0e670.entry.js +0 -2
  726. package/dist/core/p-668ca722.entry.js +0 -2
  727. package/dist/core/p-67200095.entry.js +0 -2
  728. package/dist/core/p-69d56f17.js +0 -2
  729. package/dist/core/p-6aa40794.js +0 -2
  730. package/dist/core/p-731fe7d8.entry.js +0 -2
  731. package/dist/core/p-731fe7d8.entry.js.map +0 -1
  732. package/dist/core/p-7591976a.entry.js +0 -2
  733. package/dist/core/p-75ea368b.entry.js +0 -2
  734. package/dist/core/p-7b48b1b8.entry.js +0 -2
  735. package/dist/core/p-7de47344.entry.js +0 -2
  736. package/dist/core/p-7de47344.entry.js.map +0 -1
  737. package/dist/core/p-83aa4327.entry.js +0 -2
  738. package/dist/core/p-842cb87f.js +0 -2
  739. package/dist/core/p-89b69743.entry.js +0 -2
  740. package/dist/core/p-89b69743.entry.js.map +0 -1
  741. package/dist/core/p-8a796fbe.entry.js +0 -2
  742. package/dist/core/p-8f10919c.entry.js +0 -2
  743. package/dist/core/p-8fe36a5b.entry.js +0 -2
  744. package/dist/core/p-915e53ac.entry.js +0 -2
  745. package/dist/core/p-915e53ac.entry.js.map +0 -1
  746. package/dist/core/p-92e13f9d.entry.js +0 -2
  747. package/dist/core/p-a21dc94f.js +0 -2
  748. package/dist/core/p-a274cdaa.entry.js +0 -2
  749. package/dist/core/p-a274cdaa.entry.js.map +0 -1
  750. package/dist/core/p-a693ffbf.js +0 -2
  751. package/dist/core/p-a693ffbf.js.map +0 -1
  752. package/dist/core/p-a9a095c2.entry.js +0 -2
  753. package/dist/core/p-a9a095c2.entry.js.map +0 -1
  754. package/dist/core/p-ab68c0b7.entry.js +0 -2
  755. package/dist/core/p-ab68c0b7.entry.js.map +0 -1
  756. package/dist/core/p-b48a4aa0.js +0 -2
  757. package/dist/core/p-b48a4aa0.js.map +0 -1
  758. package/dist/core/p-b50ffab3.entry.js +0 -2
  759. package/dist/core/p-b70cc248.entry.js +0 -2
  760. package/dist/core/p-c0a5a3f7.entry.js +0 -2
  761. package/dist/core/p-c0a5a3f7.entry.js.map +0 -1
  762. package/dist/core/p-c5b5fd69.entry.js +0 -2
  763. package/dist/core/p-d1c4eb91.entry.js +0 -2
  764. package/dist/core/p-d3963396.entry.js +0 -2
  765. package/dist/core/p-d4fbc249.entry.js +0 -2
  766. package/dist/core/p-d4fbc249.entry.js.map +0 -1
  767. package/dist/core/p-d949aac7.entry.js +0 -2
  768. package/dist/core/p-d949aac7.entry.js.map +0 -1
  769. package/dist/core/p-e0d428c9.js +0 -2
  770. package/dist/core/p-e0d428c9.js.map +0 -1
  771. package/dist/core/p-e3aeaca0.js +0 -2
  772. package/dist/core/p-e3aeaca0.js.map +0 -1
  773. package/dist/core/p-e6af4c58.entry.js +0 -2
  774. package/dist/core/p-e6af4c58.entry.js.map +0 -1
  775. package/dist/core/p-ede7af0a.entry.js +0 -2
  776. package/dist/core/p-ede7af0a.entry.js.map +0 -1
  777. package/dist/core/p-eebc9e71.entry.js +0 -2
  778. package/dist/core/p-eebc9e71.entry.js.map +0 -1
  779. package/dist/core/p-eebf7ad8.entry.js +0 -2
  780. package/dist/core/p-f1c8a96b.entry.js +0 -2
  781. package/dist/core/p-f963bb2f.entry.js +0 -2
  782. package/dist/core/p-fb0df3a5.entry.js +0 -2
  783. package/dist/esm/colors-02c1ea96.js.map +0 -1
  784. package/dist/esm/form-472e078d.js.map +0 -1
  785. package/dist/esm/gov-flex.entry.js +0 -27
  786. package/dist/esm/gov-flex.entry.js.map +0 -1
  787. package/dist/esm/gov-form-label.entry.js +0 -23
  788. package/dist/esm/gov-form-label.entry.js.map +0 -1
  789. package/dist/esm/gov-icon.entry.js +0 -157
  790. package/dist/esm/gov-icon.entry.js.map +0 -1
  791. package/dist/esm/gov-theme-switch.entry.js +0 -69
  792. package/dist/esm/gov-theme-switch.entry.js.map +0 -1
  793. package/dist/esm/gov.log-6e9faad2.js +0 -19
  794. package/dist/esm/gov.log-6e9faad2.js.map +0 -1
  795. package/dist/esm/template-3d84d705.js.map +0 -1
  796. package/dist/esm/wcag-d7c6c252.js.map +0 -1
  797. package/dist/esm/win-cec370ad.js.map +0 -1
  798. /package/dist/components/{p-1d3019f3.js.map → p-31a99bfc.js.map} +0 -0
  799. /package/dist/components/{p-bd22e21d.js.map → p-4149f195.js.map} +0 -0
  800. /package/dist/components/{p-08621bdf.js.map → p-44a8a668.js.map} +0 -0
  801. /package/dist/components/{p-1f3bb41d.js.map → p-5952a5d0.js.map} +0 -0
  802. /package/dist/components/{p-565120d5.js.map → p-76d604c6.js.map} +0 -0
  803. /package/dist/components/{p-edd1417b.js.map → p-7f3becc5.js.map} +0 -0
  804. /package/dist/components/{p-7f8a24a7.js.map → p-860520b0.js.map} +0 -0
  805. /package/dist/components/{p-19c681a3.js.map → p-a2435993.js.map} +0 -0
  806. /package/dist/components/{p-59737af9.js.map → p-a521c59a.js.map} +0 -0
  807. /package/dist/components/{p-0c93dd39.js.map → p-c61a5830.js.map} +0 -0
  808. /package/dist/components/{p-23b7e680.js.map → p-dfb5794a.js.map} +0 -0
  809. /package/dist/core/{p-b50ffab3.entry.js.map → p-00d153bf.entry.js.map} +0 -0
  810. /package/dist/core/{p-d1c4eb91.entry.js.map → p-0be19b89.entry.js.map} +0 -0
  811. /package/dist/core/{p-215504c1.entry.js.map → p-22fa411d.entry.js.map} +0 -0
  812. /package/dist/core/{p-668ca722.entry.js.map → p-30eaeeec.entry.js.map} +0 -0
  813. /package/dist/core/{p-69d56f17.js.map → p-3bbb77a0.js.map} +0 -0
  814. /package/dist/core/{p-7591976a.entry.js.map → p-535316b4.entry.js.map} +0 -0
  815. /package/dist/core/{p-b822b9ff.entry.js.map → p-5396935e.entry.js.map} +0 -0
  816. /package/dist/core/{p-42d9924c.js.map → p-56efd4a2.js.map} +0 -0
  817. /package/dist/core/{p-8a796fbe.entry.js.map → p-5b2131c1.entry.js.map} +0 -0
  818. /package/dist/core/{p-60658ae9.js.map → p-5f1000da.js.map} +0 -0
  819. /package/dist/core/{p-b70cc248.entry.js.map → p-7b7e502b.entry.js.map} +0 -0
  820. /package/dist/core/{p-2614044c.js.map → p-7ba4daf4.js.map} +0 -0
  821. /package/dist/core/{p-6aa40794.js.map → p-7f3becc5.js.map} +0 -0
  822. /package/dist/core/{p-e9a6cd71.js.map → p-860520b0.js.map} +0 -0
  823. /package/dist/core/{p-169b67af.js.map → p-a2435993.js.map} +0 -0
  824. /package/dist/core/{p-4bce896c.js.map → p-a521c59a.js.map} +0 -0
  825. /package/dist/core/{p-2c3ddc57.entry.js.map → p-bc966c46.entry.js.map} +0 -0
  826. /package/dist/core/{p-c990d746.js.map → p-c61a5830.js.map} +0 -0
  827. /package/dist/core/{p-45a30859.js.map → p-e0e2e9c1.js.map} +0 -0
  828. /package/dist/core/{p-052cc573.js.map → p-e44a0fee.js.map} +0 -0
  829. /package/dist/core/{p-58dc3ec3.entry.js.map → p-e834ee73.entry.js.map} +0 -0
  830. /package/dist/core/{p-5ad3097c.entry.js.map → p-f7a4da9d.entry.js.map} +0 -0
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy(JSON.parse("[[\"gov-form-file.cjs\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"resetAfterPick\":[4,\"reset-after-pick\"],\"ignoreFileDuplicationCheck\":[4,\"ignore-file-duplication-check\"],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleAttachmentsLabel\":[1,\"accessible-attachments-label\"],\"files\":[32],\"inheritedAttributes\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"reset\":[64]},null,{\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-multi-select.cjs\",[[4,\"gov-form-multi-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"placeholder\":[1],\"size\":[1],\"name\":[1],\"hideSelectedList\":[4,\"hide-selected-list\"],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"success\":[4],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"focused\":[32],\"valueState\":[32],\"selectedOptionsState\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"]}]]],[\"gov-dialog.cjs\",[[4,\"gov-dialog\",{\"open\":[1540],\"blockClose\":[4,\"block-close\"],\"blockBackdropClose\":[4,\"block-backdrop-close\"],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"accessibleLabelledBy\":[1,\"accessible-labelled-by\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleCloseLabelledBy\":[1,\"accessible-close-labelled-by\"],\"setFocus\":[64],\"validateAccessibility\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-pagination.cjs\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"selectIdentifier\":[1,\"select-identifier\"],\"size\":[1],\"color\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"accessibleSelectLabel\":[1,\"accessible-select-label\"],\"accessiblePageLabel\":[1,\"accessible-page-label\"],\"labelPrev\":[1,\"label-prev\"],\"labelStart\":[1,\"label-start\"],\"labelNext\":[1,\"label-next\"],\"labelEnd\":[1,\"label-end\"],\"pagination\":[32],\"inheritedAttributes\":[32]},null,{\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"current\":[\"recalculate\"],\"total\":[\"recalculate\"],\"pageSize\":[\"recalculate\"],\"maxPages\":[\"recalculate\"]}]]],[\"gov-breadcrumbs.cjs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"expanded\":[32],\"toggleOption\":[32],\"validateAccessibility\":[64]}]]],[\"gov-infobar.cjs\",[[4,\"gov-infobar\",{\"color\":[1],\"type\":[1],\"role\":[1],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"inheritedAttributes\":[32]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-loading.cjs\",[[4,\"gov-loading\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tabs.cjs\",[[4,\"gov-tabs\",{\"type\":[1],\"size\":[1],\"color\":[1],\"orientation\":[1],\"direction\":[513],\"controllers\":[32],\"focusIndex\":[32],\"inheritedAttributes\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"rerender\":[64]},null,{\"type\":[\"validateType\"],\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-toast.cjs\",[[4,\"gov-toast\",{\"color\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"inheritedAttributes\":[32],\"destroy\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tooltip-content.cjs\",[[4,\"gov-tooltip-content\",{\"color\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item.cjs\",[[4,\"gov-accordion-item\",{\"identifier\":[1],\"size\":[1025],\"disabled\":[4],\"open\":[1028],\"openState\":[32],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-card.cjs\",[[4,\"gov-card\",{\"promotion\":[4],\"collapsible\":[4],\"open\":[1540],\"accessibleTriggerLabel\":[1,\"accessible-label\"],\"accessibleTriggerLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-form-checkbox.cjs\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"indeterminate\":[516],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-switch.cjs\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchDisabled\"],\"disabled\":[\"watchDisabled\"],\"invalid\":[\"watchDisabled\"]}]]],[\"gov-tag.cjs\",[[4,\"gov-tag\",{\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[513],\"color\":[513],\"type\":[513]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile.cjs\",[[4,\"gov-tile\",{\"size\":[513],\"orientation\":[1],\"noBorder\":[4,\"no-border\"],\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item.cjs\",[[4,\"gov-wizard-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-accordion.cjs\",[[4,\"gov-accordion\",{\"size\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-container.cjs\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-control-group.cjs\",[[4,\"gov-control-group\",{\"color\":[1],\"noBorder\":[4,\"no-border\"],\"fitContent\":[4,\"fit-content\"]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-cookiebar.cjs\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown.cjs\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"toggle\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-empty.cjs\",[[4,\"gov-empty\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-error-code.cjs\",[[4,\"gov-error-code\"]]],[\"gov-flex.cjs\",[[4,\"gov-flex\",{\"direction\":[1],\"justifyContent\":[513,\"justify-content\"],\"alignItems\":[513,\"align-items\"],\"wrap\":[513],\"alignContent\":[513,\"align-content\"],\"alignSelf\":[513,\"align-self\"]}]]],[\"gov-form-checkbox-group.cjs\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control.cjs\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group.cjs\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label.cjs\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power.cjs\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio.cjs\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-radio-group.cjs\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search.cjs\",[[4,\"gov-form-search\",{\"size\":[1],\"color\":[513]}]]],[\"gov-grid.cjs\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item.cjs\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout.cjs\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column.cjs\",[[4,\"gov-layout-column\"]]],[\"gov-lifecycle.cjs\",[[0,\"gov-lifecycle\"]]],[\"gov-message.cjs\",[[4,\"gov-message\",{\"color\":[1],\"type\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-spacer.cjs\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-stepper.cjs\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item.cjs\",[[4,\"gov-stepper-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tabs-item.cjs\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[513],\"disabled\":[516],\"iconStart\":[513,\"icon-start\"],\"iconEnd\":[513,\"icon-end\"],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"getDisableState\":[64],\"setActiveStatus\":[64]},null,{\"label\":[\"rerenderParent\"],\"disabled\":[\"rerenderParent\"]}]]],[\"gov-theme-switch.cjs\",[[0,\"gov-theme-switch\",{\"theme\":[32]}]]],[\"gov-tiles.cjs\",[[4,\"gov-tiles\",{\"columns\":[514]}]]],[\"gov-tooltip.cjs\",[[4,\"gov-tooltip\",{\"color\":[1],\"size\":[1],\"position\":[1025],\"message\":[1],\"identifier\":[1],\"icon\":[516],\"persist\":[32],\"show\":[64],\"hide\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"],\"position\":[\"validatePosition\"],\"message\":[\"rerenderMessage\"]}]]],[\"gov-wizard.cjs\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-icon.cjs\",[[0,\"gov-icon\",{\"color\":[513],\"name\":[513],\"type\":[513],\"visible\":[32],\"error\":[32]},null,{\"color\":[\"validateColor\"],\"name\":[\"loadIconPathData\"]}]]],[\"gov-button.cjs\",[[4,\"gov-button\",{\"color\":[513],\"size\":[513],\"type\":[513],\"expanded\":[516],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64],\"validateAccessibility\":[64]},null,{\"color\":[\"validateColor\"],\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"nativeType\":[\"validateNativeType\"]}]]],[\"gov-form-autocomplete.cjs\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"throttleTime\":[2,\"throttle-time\"],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setBlur\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"]}]]],[\"gov-chip.cjs\",[[4,\"gov-chip\",{\"disabled\":[516],\"href\":[1],\"target\":[1],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[1],\"tag\":[1],\"color\":[1],\"type\":[513],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"geRef\":[64],\"setFocus\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-form-select.cjs\",[[4,\"gov-form-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"success\":[4],\"disabled\":[4],\"invalid\":[4],\"focused\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"],\"value\":[\"watchValue\"]}]]],[\"gov-backdrop.cjs\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"disabled\":[1540],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-attachments_3.cjs\",[[4,\"gov-attachments-item\",{\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleRemoveLabelledBy\":[1,\"accessible-remove-labelledby\"],\"validateAccessibility\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"color\":[1],\"size\":[1],\"identifier\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-form-input_2.cjs\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"success\":[516],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[516],\"disabled\":[516],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"spellcheck\":[4],\"inputLang\":[1,\"input-lang\"],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[516],\"accessibleShowPasswordLabel\":[1,\"accessible-show-password-label\"],\"accessibleHidePasswordLabel\":[1,\"accessible-hide-password-label\"],\"focused\":[32],\"showPassword\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}],[0,\"gov-skeleton\",{\"size\":[1],\"color\":[1],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"],\"shape\":[\"validateShape\"],\"animation\":[\"validateAnimation\"]}]]]]"), options);
11
+ return index.bootstrapLazy(JSON.parse("[[\"gov-form-file.cjs\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"resetAfterPick\":[4,\"reset-after-pick\"],\"ignoreFileDuplicationCheck\":[4,\"ignore-file-duplication-check\"],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleAttachmentsLabel\":[1,\"accessible-attachments-label\"],\"files\":[32],\"inheritedAttributes\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"reset\":[64]},null,{\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-multi-select.cjs\",[[4,\"gov-form-multi-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"placeholder\":[1],\"size\":[1],\"name\":[1],\"hideSelectedList\":[4,\"hide-selected-list\"],\"required\":[4],\"disabled\":[4],\"invalid\":[516],\"success\":[4],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"focused\":[32],\"valueState\":[32],\"selectedOptionsState\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"]}]]],[\"gov-dialog.cjs\",[[4,\"gov-dialog\",{\"open\":[1540],\"blockClose\":[4,\"block-close\"],\"blockBackdropClose\":[4,\"block-backdrop-close\"],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"accessibleLabelledBy\":[1,\"accessible-labelled-by\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleCloseLabelledBy\":[1,\"accessible-close-labelled-by\"],\"setFocus\":[64],\"validateAccessibility\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-pagination.cjs\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"selectIdentifier\":[1,\"select-identifier\"],\"size\":[1],\"color\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"accessibleSelectLabel\":[1,\"accessible-select-label\"],\"accessiblePageLabel\":[1,\"accessible-page-label\"],\"labelPrev\":[1,\"label-prev\"],\"labelStart\":[1,\"label-start\"],\"labelNext\":[1,\"label-next\"],\"labelEnd\":[1,\"label-end\"],\"pagination\":[32],\"inheritedAttributes\":[32]},null,{\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"current\":[\"recalculate\"],\"total\":[\"recalculate\"],\"pageSize\":[\"recalculate\"],\"maxPages\":[\"recalculate\"]}]]],[\"gov-breadcrumbs.cjs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"expanded\":[32],\"toggleOption\":[32],\"validateAccessibility\":[64]}]]],[\"gov-infobar.cjs\",[[4,\"gov-infobar\",{\"color\":[1],\"type\":[1],\"role\":[1],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"inheritedAttributes\":[32]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-loading.cjs\",[[4,\"gov-loading\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tabs.cjs\",[[4,\"gov-tabs\",{\"type\":[1],\"size\":[1],\"color\":[1],\"orientation\":[1],\"direction\":[513],\"controllers\":[32],\"focusIndex\":[32],\"inheritedAttributes\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"rerender\":[64]},null,{\"type\":[\"validateType\"],\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-toast.cjs\",[[4,\"gov-toast\",{\"color\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"inheritedAttributes\":[32],\"destroy\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tooltip-content.cjs\",[[4,\"gov-tooltip-content\",{\"color\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item.cjs\",[[4,\"gov-accordion-item\",{\"identifier\":[1],\"size\":[1025],\"disabled\":[4],\"open\":[1028],\"openState\":[32],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-card.cjs\",[[4,\"gov-card\",{\"promotion\":[4],\"collapsible\":[4],\"open\":[1540],\"accessibleTriggerLabel\":[1,\"accessible-label\"],\"accessibleTriggerLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-form-checkbox.cjs\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"indeterminate\":[516],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-switch.cjs\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchDisabled\"],\"disabled\":[\"watchDisabled\"],\"invalid\":[\"watchDisabled\"]}]]],[\"gov-link.cjs\",[[4,\"gov-link\",{\"size\":[1],\"external\":[4],\"href\":[1],\"target\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tag.cjs\",[[4,\"gov-tag\",{\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"size\":[513],\"color\":[513],\"type\":[513]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile.cjs\",[[4,\"gov-tile\",{\"size\":[513],\"orientation\":[1],\"noBorder\":[4,\"no-border\"],\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item.cjs\",[[4,\"gov-wizard-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-accordion.cjs\",[[4,\"gov-accordion\",{\"size\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-container.cjs\",[[4,\"gov-container\"]]],[\"gov-control-group.cjs\",[[4,\"gov-control-group\",{\"color\":[1],\"noBorder\":[4,\"no-border\"],\"fitContent\":[4,\"fit-content\"]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-cookiebar.cjs\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown.cjs\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"toggle\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-empty.cjs\",[[4,\"gov-empty\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-error-code.cjs\",[[4,\"gov-error-code\"]]],[\"gov-form-checkbox-group.cjs\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control.cjs\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group.cjs\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-password-power.cjs\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio.cjs\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-radio-group.cjs\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search.cjs\",[[4,\"gov-form-search\",{\"size\":[1],\"color\":[513]}]]],[\"gov-grid.cjs\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item.cjs\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout.cjs\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column.cjs\",[[4,\"gov-layout-column\"]]],[\"gov-lifecycle.cjs\",[[0,\"gov-lifecycle\"]]],[\"gov-message.cjs\",[[4,\"gov-message\",{\"color\":[1],\"type\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-spacer.cjs\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-stepper.cjs\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item.cjs\",[[4,\"gov-stepper-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tabs-item.cjs\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[513],\"disabled\":[516],\"iconStart\":[513,\"icon-start\"],\"iconEnd\":[513,\"icon-end\"],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"getDisableState\":[64],\"setActiveStatus\":[64]},null,{\"label\":[\"rerenderParent\"],\"disabled\":[\"rerenderParent\"]}]]],[\"gov-tiles.cjs\",[[4,\"gov-tiles\",{\"columns\":[514]}]]],[\"gov-tooltip.cjs\",[[4,\"gov-tooltip\",{\"color\":[1],\"size\":[1],\"position\":[1025],\"message\":[1],\"identifier\":[1],\"icon\":[516],\"persist\":[32],\"show\":[64],\"hide\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"],\"position\":[\"validatePosition\"],\"message\":[\"rerenderMessage\"]}]]],[\"gov-wizard.cjs\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-flex_4.cjs\",[[0,\"gov-theme-switch\",{\"size\":[1],\"ariaLabelLight\":[1,\"aria-label-light\"],\"ariaLabelDark\":[1,\"aria-label-dark\"],\"labelLight\":[1,\"label-light\"],\"labelDark\":[1,\"label-dark\"],\"theme\":[32]},null,{\"size\":[\"validateSize\"],\"theme\":[\"watchTheme\"]}],[4,\"gov-flex\",{\"direction\":[1],\"justifyContent\":[513,\"justify-content\"],\"alignItems\":[513,\"align-items\"],\"wrap\":[513],\"alignContent\":[513,\"align-content\"],\"alignSelf\":[513,\"align-self\"]}],[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}],[0,\"gov-icon\",{\"size\":[513],\"color\":[513],\"name\":[513],\"type\":[513],\"visible\":[32],\"error\":[32]},null,{\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"name\":[\"loadIconPathData\"]}]]],[\"gov-button.cjs\",[[4,\"gov-button\",{\"color\":[513],\"size\":[513],\"type\":[513],\"expanded\":[516],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64],\"validateAccessibility\":[64]},null,{\"color\":[\"validateColor\"],\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"nativeType\":[\"validateNativeType\"]}]]],[\"gov-form-autocomplete.cjs\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"throttleTime\":[2,\"throttle-time\"],\"messageEmpty\":[1,\"message-empty\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setBlur\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"]}]]],[\"gov-chip.cjs\",[[4,\"gov-chip\",{\"disabled\":[516],\"href\":[1],\"target\":[1],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"size\":[1],\"tag\":[1],\"color\":[1],\"type\":[513],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"geRef\":[64],\"setFocus\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-form-select.cjs\",[[4,\"gov-form-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"success\":[4],\"disabled\":[4],\"invalid\":[4],\"focused\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"],\"value\":[\"watchValue\"]}]]],[\"gov-backdrop.cjs\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"disabled\":[1540],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-attachments_3.cjs\",[[4,\"gov-attachments-item\",{\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleRemoveLabelledBy\":[1,\"accessible-remove-labelledby\"],\"validateAccessibility\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"color\":[1],\"size\":[1],\"identifier\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-form-input_2.cjs\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"success\":[516],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[516],\"disabled\":[516],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"spellcheck\":[4],\"inputLang\":[1,\"input-lang\"],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[516],\"accessibleShowPasswordLabel\":[1,\"accessible-show-password-label\"],\"accessibleHidePasswordLabel\":[1,\"accessible-hide-password-label\"],\"focused\":[32],\"showPassword\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}],[0,\"gov-skeleton\",{\"size\":[1],\"color\":[1],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"],\"shape\":[\"validateShape\"],\"animation\":[\"validateAnimation\"]}]]]]"), options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const gov_log = require('./gov.log-1e8bab6e.js');
3
+ const gov_log = require('./gov.log-bfea3151.js');
4
4
 
5
5
  // @TODO: deal with optional values
6
6
  const validateProp = (valueEnum, value, component) => {
@@ -13,4 +13,4 @@ const validateProp = (valueEnum, value, component) => {
13
13
 
14
14
  exports.validateProp = validateProp;
15
15
 
16
- //# sourceMappingURL=props-b8a955b2.js.map
16
+ //# sourceMappingURL=props-d189860c.js.map
@@ -1 +1 @@
1
- {"file":"props-b8a955b2.js","mappings":";;;;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACbA,qBAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":["govWarningLog"],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
1
+ {"file":"props-d189860c.js","mappings":";;;;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACbA,qBAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":["govWarningLog"],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
@@ -8,15 +8,6 @@ const prepareClasses = (classes) => {
8
8
  .join(' ')
9
9
  .trim();
10
10
  };
11
- const slottedChildren = (host) => {
12
- const slotted = host.querySelector('slot');
13
- if (slotted) {
14
- return slotted.assignedNodes().filter(node => {
15
- return node.nodeName !== '#text';
16
- });
17
- }
18
- return [];
19
- };
20
11
  const booleanString = (value) => {
21
12
  return value ? 'true' : 'false';
22
13
  };
@@ -65,15 +56,6 @@ const govHost = (host) => {
65
56
  this.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name));
66
57
  }
67
58
  },
68
- get slottedChildren() {
69
- const slotted = this.hostElement.shadowRoot.querySelector('slot');
70
- if (slotted) {
71
- return slotted.assignedNodes().filter(node => {
72
- return node.nodeName !== '#text';
73
- });
74
- }
75
- return [];
76
- },
77
59
  classes(classes) {
78
60
  const clearClasses = Array.isArray(classes) ? classes.join(' ') : classes;
79
61
  if (this.hostElement) {
@@ -125,9 +107,8 @@ exports.boolToFocusValue = boolToFocusValue;
125
107
  exports.booleanString = booleanString;
126
108
  exports.govHost = govHost;
127
109
  exports.prepareClasses = prepareClasses;
128
- exports.slottedChildren = slottedChildren;
129
110
  exports.toBoolAttr = toBoolAttr;
130
111
  exports.toBoolAttrIfDefined = toBoolAttrIfDefined;
131
112
  exports.toOnOffAttrIfDefined = toOnOffAttrIfDefined;
132
113
 
133
- //# sourceMappingURL=template-b070338f.js.map
114
+ //# sourceMappingURL=template-39939fd6.js.map
@@ -0,0 +1 @@
1
+ {"file":"template-39939fd6.js","mappings":";;MAIa,cAAc,GAAG,CAAC,OAAiB;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,KAAK;QAAE,OAAM;IAC5C,OAAO,OAAO;SACZ,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS,CAAC;SAChC,IAAI,CAAC,GAAG,CAAC;SACT,IAAI,EAAE,CAAA;AACT,EAAC;MAEY,aAAa,GAAG,CAAC,KAAc;IAC3C,OAAO,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;AAChC,EAAC;MAEY,OAAO,GAAG,CAAC,IAAwB;IAC/C,OAAO;QACN,IAAI,WAAW;YACd,OAAO,IAAI,CAAA;SACX;QACD,IAAI,IAAI;YACP,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAA;SAC9C;QACD,OAAO,CAAC,IAAY;YACnB,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;SAC3B;QACD,WAAW,CAAC,IAAY;YACvB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YAC/B,IAAI,IAAI,EAAE;gBACT,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,CAAA;aACnC;YACD,OAAO,KAAK,CAAA;SACZ;QACD,OAAO,CAAC,IAAY;YACnB,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,IAAI,IAAI,CAAC,CAAkB,CAAC;YAC3G,OAAO,eAAe,CAAC,MAAM,GAAG,CAAC,GAAG,eAAe,CAAC,CAA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AmB,GAAG,CAAC,KAAmD;IACtF,OAAO,OAAO,KAAK,KAAK,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;AACpE,EAAC;MAEY,oBAAoB,GAAG,CAAC,KAAmD;IACvF,OAAO,OAAO,KAAK,KAAK,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,CAAA;AACrE,EAAC;MAEY,gBAAgB,GAAG,CAAC,KAAc;IAC9C,OAAO,KAAK,GAAG,GAAG,GAAG,IAAI,CAAA;AAC1B;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/helpers/Dom/template.ts"],"sourcesContent":["import {HTMLStencilElement} from '@stencil/core/internal'\nimport {GovHost} from './template.types'\nimport {Nullable} from '../../types/interfaces'\n\nexport const prepareClasses = (classes: string[]): string => {\n\tif (Array.isArray(classes) === false) return\n\treturn classes\n\t\t.filter(classname => !!classname)\n\t\t.join(' ')\n\t\t.trim()\n}\n\nexport const booleanString = (value: boolean): string => {\n\treturn value ? 'true' : 'false'\n}\n\nexport const govHost = (host: HTMLStencilElement): GovHost => {\n\treturn {\n\t\tget hostElement(): HTMLStencilElement {\n\t\t\treturn host\n\t\t},\n\t\tget name(): string {\n\t\t\treturn this.hostElement.nodeName.toLowerCase()\n\t\t},\n\t\thasSlot(name: string): boolean {\n\t\t\treturn !!this.getSlot(name)\n\t\t},\n\t\tisSlotEmpty(name: string): boolean {\n\t\t\tconst slot = this.getSlot(name)\n\t\t\tif (slot) {\n\t\t\t\treturn slot.childNodes.length === 0\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tgetSlot(name: string): HTMLElement {\n\t\t\tconst slottedElements = Array.from(this.hostElement.querySelectorAll(`[slot=\"${name}\"]`)) as HTMLElement[];\n\t\t\treturn slottedElements.length > 0 ? slottedElements[0] : null;\n\t\t},\n\t\tgetParent(element): Nullable<HTMLElement> {\n\t\t\treturn this.hostElement.closest(element)\n\t\t},\n\t\tpassChildAttr(selector: string | string[], name: string, value: any): void {\n\t\t\tif (Array.isArray(selector)) {\n\t\t\t\tselector.forEach(selector => {\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\n\t\t\t}\n\t\t},\n\t\tremoveChildAttr(selector: string | string[], name: string): void {\n\t\t\tif (Array.isArray(selector)) {\n\t\t\t\tselector.forEach(selector => {\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\n\t\t\t}\n\t\t},\n\t\tclasses(classes: string | string[]): string {\n\t\t\tconst clearClasses = Array.isArray(classes) ? classes.join(' ') : classes\n\t\t\tif (this.hostElement) {\n\t\t\t\treturn this.hostElement.classList.toString() + ' ' + clearClasses\n\t\t\t}\n\t\t\treturn clearClasses\n\t\t},\n\t}\n}\n\nexport const toBoolAttr = (value: boolean | string | number): string => {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1 ? 'true' : 'false'\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0 ? 'true' : 'false'\n\t} else if (typeof value === 'boolean') {\n\t\treturn value ? 'true' : 'false'\n\t} else {\n\t\treturn value ? 'true' : 'false'\n\t}\n}\n\nexport const toOnOffAttr = (value: boolean | string | number): string => {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1', 'On', 'on', 'ON'].indexOf(value) !== -1 ? 'on' : 'off'\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0 ? 'on' : 'off'\n\t} else if (typeof value === 'boolean') {\n\t\treturn value ? 'on' : 'off'\n\t} else {\n\t\treturn value ? 'on' : 'off'\n\t}\n}\n\nexport const toBoolAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\n\treturn typeof value === 'undefined' ? undefined : toBoolAttr(value)\n}\n\nexport const toOnOffAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\n\treturn typeof value === 'undefined' ? undefined : toOnOffAttr(value)\n}\n\nexport const boolToFocusValue = (value: boolean): undefined | string => {\n\treturn value ? '0' : '-1'\n}\n"],"version":3}
@@ -1,8 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const gov_log = require('./gov.log-1e8bab6e.js');
3
+ const gov_log = require('./gov.log-bfea3151.js');
4
4
  const string_utils = require('./string.utils-b84c81cf.js');
5
- const win = require('./win-587f4614.js');
6
5
  const helpers_types = require('./helpers.types-ff60c9bd.js');
7
6
 
8
7
  const validateWcagProp = (value, propName, component) => {
@@ -26,7 +25,7 @@ const validateWcagRef = (referenceId, name, component) => {
26
25
  });
27
26
  }
28
27
  return !!strings.filter(referenceId => {
29
- if (win.documentNode().getElementById(referenceId) === null) {
28
+ if (gov_log.documentNode().getElementById(referenceId) === null) {
30
29
  //govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)
31
30
  return false;
32
31
  }
@@ -40,7 +39,7 @@ const validateAccessibleLabel = (label, labelledBy, component, el = undefined) =
40
39
  return true;
41
40
  }
42
41
  if (typeof labelledBy === 'string' && labelledBy.length > 0) {
43
- const labelledByEl = win.documentNode().getElementById(labelledBy);
42
+ const labelledByEl = gov_log.documentNode().getElementById(labelledBy);
44
43
  if (labelledByEl) {
45
44
  return true;
46
45
  }
@@ -53,4 +52,4 @@ exports.validateAccessibleLabel = validateAccessibleLabel;
53
52
  exports.validateWcagProp = validateWcagProp;
54
53
  exports.validateWcagRef = validateWcagRef;
55
54
 
56
- //# sourceMappingURL=wcag-b8d80c7d.js.map
55
+ //# sourceMappingURL=wcag-2927ff73.js.map
@@ -0,0 +1 @@
1
+ {"file":"wcag-2927ff73.js","mappings":";;;;;;MAKa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,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UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5D,MAAM,YAAY,GAAGD,oBAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACDF,qBAAa,CAAC,IAAI,SAAS,wEAAwE,EAAE,EAAE,CAAC,CAAA;IACxG,OAAO,KAAK,CAAA;AACb;;;;;;","names":["govWarningLog","splitByWhitespace","documentNode","isString"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\nimport {splitByWhitespace} from '../../utils/string.utils'\nimport {documentNode} from '../Dom/win'\nimport {isString} from \"../../utils/helpers.types\";\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\n\tif (isString(label) && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\n\treturn false\n}\n"],"version":3}
@@ -40,6 +40,7 @@
40
40
  "components/gov-layout/gov-layout-column.js",
41
41
  "components/gov-layout/gov-layout.js",
42
42
  "components/gov-lifecycle-tester/gov-lifecycle-tester.js",
43
+ "components/gov-link/gov-link.js",
43
44
  "components/gov-loading/loading/gov-loading.js",
44
45
  "components/gov-loading/skeleton/gov-skeleton.js",
45
46
  "components/gov-message/gov-message.js",
@@ -37,7 +37,7 @@ export class GovAccordionItem {
37
37
  e.preventDefault();
38
38
  !this.disabled && this.toggle().finally();
39
39
  }, class: AccordionItemClass.summary, tabIndex: this.disabled ? -1 : 0, "aria-expanded": booleanString(this.open) }, this.inheritedAttributes), this.h.hasSlot('icon') &&
40
- h("span", { key: '19254947c22fa2b1a2fa4e26eacb22c0c89b40c9', class: AccordionItemClass.icon }, h("slot", { key: '262be1640f250fabf9918f4162c071bb68dc4fb3', name: "icon" })), h("span", { key: 'ebb5ef762ef51921b68a8063fd09c979d7d0d32d', class: AccordionItemClass.title }, h("slot", { key: '75783345d2276f06e53c401761cb4e57d241e5e0', name: "label" }), h("slot", { key: 'f2d9cdff693edbcae6293921fde7996d1b1251b6', name: "annotation" })), h("span", { key: 'f7e28ea54455756c7d146c7b88be7001e80b07a8', class: AccordionItemClass.right }, h("slot", { key: 'e76b31bf1c349a8a86d4b91ec1cfa650a75edf60', name: "suffix" }), h("span", { key: '87ea99c9862deb3ff9820fa383cec52956b4655a', class: AccordionItemClass.arrow }, h("slot", { key: 'c8b64a90455a731f359e12550664ba5aa905abbc', name: "toggle-icon" }, h("gov-icon", { key: '5e1024ed8c001dcdef87e5615d787091b1a3e9c6', name: "chevron-down" }))))), h("div", { key: '49651d2a78afe9318464aead657a0e544e2e2d4e', class: AccordionItemClass.content }, h("slot", { key: '4f3d3af2d6f3c357663d0a3c1e1433b55d7814bc' })))));
40
+ h("span", { key: '19254947c22fa2b1a2fa4e26eacb22c0c89b40c9', class: AccordionItemClass.icon }, h("slot", { key: '262be1640f250fabf9918f4162c071bb68dc4fb3', name: "icon" })), h("span", { key: 'ebb5ef762ef51921b68a8063fd09c979d7d0d32d', class: AccordionItemClass.title }, h("slot", { key: '75783345d2276f06e53c401761cb4e57d241e5e0', name: "label" }), h("slot", { key: 'f2d9cdff693edbcae6293921fde7996d1b1251b6', name: "annotation" })), h("span", { key: 'f7e28ea54455756c7d146c7b88be7001e80b07a8', class: AccordionItemClass.right }, h("slot", { key: 'e76b31bf1c349a8a86d4b91ec1cfa650a75edf60', name: "suffix" }), h("span", { key: '87ea99c9862deb3ff9820fa383cec52956b4655a', class: AccordionItemClass.arrow }, h("slot", { key: 'c8b64a90455a731f359e12550664ba5aa905abbc', name: "toggle-icon" }, h("gov-icon", { key: '867406c5634d6446683529f5f647492b9b289a31', name: "chevron-down", type: "components" }))))), h("div", { key: '2adf7441dd470ae1b32a08fb374cd1d9e2d1f789', class: AccordionItemClass.content }, h("slot", { key: '8eb27d0b33689933b6e71850324c35c89d71c4c0' })))));
41
41
  }
42
42
  /**
43
43
  * Accordion switch
@@ -1 +1 @@
1
- {"version":3,"file":"gov-accordion-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-accordion/gov-accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,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B,iEAAU,IAAI,EAAC,cAAc,GAAY,CACnC,CACD,CACD,CACE;gBACV,4DAAK,KAAK,EAAE,kBAAkB,CAAC,OAAO;oBACrC,8DAAO,CACF,CACG,CACJ,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,kBAAkB,CAAC,IAAI;YAClC,GAAG,EAAE,IAAI,CAAC,IAAI;SACd,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,IAAI,CAAA;IACjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {AccordionClass, AccordionItemClass, AccordionSizes, AccordionSizeType,} from \"./constants\"\nimport {booleanString, govHost, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\nimport {AccordionItemEvent} from \"./gov-accordion.types\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-accordion-item\",\n})\nexport class GovAccordionItem {\n\tprivate h: GovHost\n\tprivate inheritedAttributes: Attributes = {};\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAccordionItemElement\n\t@State() openState: boolean\n\n\t/**\n\t * Custom accordion item identifier.\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Accordion’s size.\n\t */\n\t@Prop({ mutable: true }) size?: AccordionSizeType\n\t/**\n\t * Makes the button component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({attribute: \"open\", mutable: true}) open = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<AccordionItemEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(AccordionSizes, newValue, AccordionItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.getPropsFromParents())\n\t}\n\n\tprivate getPropsFromParents() {\n\t\tconst accordion = this.h.getParent(AccordionClass.root)\n\t\tif (accordion) {\n\t\t\tthis.size = accordion.getAttribute(\"size\") as AccordionSizeType\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([AccordionItemClass.root,\n\t\t\t\tthis.disabled && AccordionItemClass.disabled])}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\">\n\t\t\t\t<details\n\t\t\t\t\tclass={AccordionItemClass.details}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\topen={this.open}\n\t\t\t\t>\n\t\t\t\t\t<summary\n\t\t\t\t\t\tonClick={(e: Event) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t!this.disabled && this.toggle().finally()\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tclass={AccordionItemClass.summary}\n\t\t\t\t\t\ttabIndex={this.disabled ? -1 : 0}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.h.hasSlot('icon') &&\n\t\t\t\t\t\t\t<span class={AccordionItemClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<span class={AccordionItemClass.title}>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t<span class={AccordionItemClass.right}>\n\t\t\t\t\t\t\t<slot name=\"suffix\"/>\n\t\t\t\t\t\t\t<span class={AccordionItemClass.arrow}>\n\t\t\t\t\t\t\t\t<slot name=\"toggle-icon\">\n\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div class={AccordionItemClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Accordion switch\n\t */\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tthis.open = !this.open\n\t\tthis.govChange.emit({\n\t\t\topen: this.open,\n\t\t\tcomponent: AccordionItemClass.root,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.open\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-accordion-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-accordion/gov-accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAA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Aa;gCACvB,iEAAU,IAAI,EAAC,cAAc,EAAC,IAAI,EAAC,YAAY,GAAY,CACrD,CACD,CACD,CACE;gBACV,4DAAK,KAAK,EAAE,kBAAkB,CAAC,OAAO;oBACrC,8DAAO,CACF,CACG,CACJ,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,kBAAkB,CAAC,IAAI;YAClC,GAAG,EAAE,IAAI,CAAC,IAAI;SACd,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,IAAI,CAAA;IACjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {AccordionClass, AccordionItemClass, AccordionSizes, AccordionSizeType,} from \"./constants\"\nimport {booleanString, govHost, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\nimport {AccordionItemEvent} from \"./gov-accordion.types\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-accordion-item\",\n})\nexport class GovAccordionItem {\n\tprivate h: GovHost\n\tprivate inheritedAttributes: Attributes = {};\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAccordionItemElement\n\t@State() openState: boolean\n\n\t/**\n\t * Custom accordion item identifier.\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Accordion’s size.\n\t */\n\t@Prop({ mutable: true }) size?: AccordionSizeType\n\t/**\n\t * Makes the button component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({attribute: \"open\", mutable: true}) open = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<AccordionItemEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(AccordionSizes, newValue, AccordionItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.getPropsFromParents())\n\t}\n\n\tprivate getPropsFromParents() {\n\t\tconst accordion = this.h.getParent(AccordionClass.root)\n\t\tif (accordion) {\n\t\t\tthis.size = accordion.getAttribute(\"size\") as AccordionSizeType\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([AccordionItemClass.root,\n\t\t\t\tthis.disabled && AccordionItemClass.disabled])}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\">\n\t\t\t\t<details\n\t\t\t\t\tclass={AccordionItemClass.details}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\topen={this.open}\n\t\t\t\t>\n\t\t\t\t\t<summary\n\t\t\t\t\t\tonClick={(e: Event) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t!this.disabled && this.toggle().finally()\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tclass={AccordionItemClass.summary}\n\t\t\t\t\t\ttabIndex={this.disabled ? -1 : 0}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.h.hasSlot('icon') &&\n\t\t\t\t\t\t\t<span class={AccordionItemClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<span class={AccordionItemClass.title}>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t<span class={AccordionItemClass.right}>\n\t\t\t\t\t\t\t<slot name=\"suffix\"/>\n\t\t\t\t\t\t\t<span class={AccordionItemClass.arrow}>\n\t\t\t\t\t\t\t\t<slot name=\"toggle-icon\">\n\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div class={AccordionItemClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Accordion switch\n\t */\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tthis.open = !this.open\n\t\tthis.govChange.emit({\n\t\t\topen: this.open,\n\t\t\tcomponent: AccordionItemClass.root,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.open\n\t}\n}\n"]}
@@ -10,42 +10,13 @@
10
10
  /* stylelint-enable order/order */
11
11
  /* stylelint-disable order/order */
12
12
  /* stylelint-enable order/order */
13
- /* Variables - breakpoints */ /* Variables - Colors */ /* Variables - Sizes */ /* Variables - General */ /* Variables - Typography */ /* Variables - Container */ /* Variables - Forms */ /* Variables - shadows */ /* Variables - z-index */ /* stylelint-disable order/order */
14
- /* stylelint-enable order/order */
15
- .gov-spin-animation,
16
- .gov-pseudo-spin-animation::before {
17
- animation: spin 4s linear infinite;
13
+ /* Variables - breakpoints */ /* Variables - Colors */ /* Variables - Sizes */ /* Variables - General */
14
+ :root {
15
+ --roboto: Roboto, sans-serif;
18
16
  }
19
17
 
20
- @keyframes spin {
21
- 100% {
22
- transform: rotate(360deg);
23
- }
24
- }
25
- @keyframes countdown {
26
- to {
27
- transform: scaleX(0);
28
- }
29
- }
30
- @keyframes progress {
31
- 0% {
32
- background-position: -200px 0;
33
- }
34
- 100% {
35
- background-position: calc(200px + 100%) 0;
36
- }
37
- }
38
- @keyframes pulse {
39
- 0% {
40
- opacity: 1;
41
- }
42
- 50% {
43
- opacity: 0.4;
44
- }
45
- 100% {
46
- opacity: 1;
47
- }
48
- }
18
+ /* Variables - Typography */ /* Variables - Container */ /* Variables - Forms */ /* Variables - shadows */ /* Variables - z-index */ /* stylelint-disable order/order */
19
+ /* stylelint-enable order/order */
49
20
  /* Attachments - Item */
50
21
  gov-attachments-item, .gov-attachments-item {
51
22
  /* Variables - Attachments */
@@ -55,7 +26,7 @@ gov-attachments-item, .gov-attachments-item {
55
26
  gap: var(--spacing-s);
56
27
  }
57
28
  gov-attachments-item__messages > *:last-child, .gov-attachments-item__messages > *:last-child {
58
- margin-bottom: 0;
29
+ margin-bottom: 0 !important;
59
30
  }
60
31
  gov-attachments-item__file, .gov-attachments-item__file {
61
32
  display: flex;
@@ -17,7 +17,7 @@ export class GovAttachmentsItem {
17
17
  }
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'a8fffc03fb890c1aaae5a1d63240747f5fcb013e', class: this.h.classes(AttachmentsItemClass.root), role: "listitem" }, h("div", { key: '0aa555d1c5b3bdf089cf020db1271e40389522f9', class: AttachmentsItemClass.file }, h("p", { key: '46014b9e9d9a46fea6f813ef271815be6ab6dfc4', class: AttachmentsItemClass.name }, h("slot", { key: '806f9dc2b2ee44248f7fe613e8362d92ed938ba8' }), h("slot", { key: '97d69e72afd5063f41ea7b41e50012893ee5027c', name: "info" })), h("gov-button", { key: '6c40ff9ae6be99cde30fde276db287a3d14dccd1', color: "primary", type: "base", size: "s", "aria-label": this.accessibleRemoveLabel, "aria-labelledby": this.accessibleRemoveLabelledBy, "on-gov-click": this.govRemove.emit }, h("gov-icon", { key: '5a5107c516953ff7f7b6989aaee0679b3867c663', slot: "left-icon", name: "x-lg" }))), this.h.hasSlot('message') && (h("div", { key: '81a17d690a175affeec4207443c7bb64d1a19606', class: AttachmentsItemClass.messages }, h("slot", { key: '72d39130e0e6bc60079b480f4e1c94e8bc7d6ab7', name: "message" })))));
20
+ return (h(Host, { key: 'a8fffc03fb890c1aaae5a1d63240747f5fcb013e', class: this.h.classes(AttachmentsItemClass.root), role: "listitem" }, h("div", { key: '0aa555d1c5b3bdf089cf020db1271e40389522f9', class: AttachmentsItemClass.file }, h("p", { key: '46014b9e9d9a46fea6f813ef271815be6ab6dfc4', class: AttachmentsItemClass.name }, h("slot", { key: '806f9dc2b2ee44248f7fe613e8362d92ed938ba8' }), h("slot", { key: '97d69e72afd5063f41ea7b41e50012893ee5027c', name: "info" })), h("gov-button", { key: '6c40ff9ae6be99cde30fde276db287a3d14dccd1', color: "primary", type: "base", size: "s", "aria-label": this.accessibleRemoveLabel, "aria-labelledby": this.accessibleRemoveLabelledBy, "on-gov-click": this.govRemove.emit }, h("gov-icon", { key: '24871273b10ca807811acd15dabb49c6a45d76d1', slot: "icon-start", name: "x-lg", type: "components" }))), this.h.hasSlot('message') && (h("div", { key: '7683c6c6bfd1ca4b9660ee56ec190472970d0ac8', class: AttachmentsItemClass.messages }, h("slot", { key: '20b46c868809d19f9c67105a4c4774df9688a2c1', name: "message" })))));
21
21
  }
22
22
  /**
23
23
  * Validate the accessible attributes of the component
@@ -1 +1 @@
1
- {"version":3,"file":"gov-attachments-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-attachments/gov-attachments-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAA;AAChD,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAA;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAOlD,MAAM,OAAO,kBAAkB;IAG9B;;;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAiBD,KAAK,CAAC,kBAAkB;QACvB,IAAI,uBAAuB,EAAE,EAAE,CAAC;YAC/B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;YAChB,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;QACnC,CAAC;IACF,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,UAAU;YACtE,4DAAK,KAAK,EAAE,oBAAoB,CAAC,IAAI;gBACpC,0DAAG,KAAK,EAAE,oBAAoB,CAAC,IAAI;oBAClC,8DAAO;oBACP,6DAAM,IAAI,EAAC,MAAM,GAAE,CAChB;gBACJ,mEACC,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,GAAG,gBACI,IAAI,CAAC,qBAAqB,qBACrB,IAAI,CAAC,0BAA0B,kBAClC,IAAI,CAAC,SAAS,CAAC,IAAI;oBAEjC,iEAAU,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,GAAY,CACtC,CACR;YAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAC7B,4DAAK,KAAK,EAAE,oBAAoB,CAAC,QAAQ;gBACxC,6DAAM,IAAI,EAAC,SAAS,GAAE,CACjB,CACN,CACK,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"x-lg\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-attachments-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-attachments/gov-attachments-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC5F,OAAO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AAC,SAAS,GAAE,CACjB,CACN,CACK,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n"]}
@@ -40,7 +40,7 @@ export class GovBreadcrumbs {
40
40
  this.toggleOption = sumOfWidths > hostWidth;
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: '81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: 'dc37fa314f5d84c6c517f64229ef601b256f3ad5', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: '4ead548352e642c0994360d74a98123782790a04' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down' }))) : null));
43
+ return (h(Host, { key: '81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: 'dc37fa314f5d84c6c517f64229ef601b256f3ad5', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: '4ead548352e642c0994360d74a98123782790a04' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
44
44
  }
45
45
  /**
46
46
  * Validate the WCAG attributes of the component
@@ -1 +1 @@
1
- {"version":3,"file":"gov-breadcrumbs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,IAAI,EAAC,MAAM,2BAA2B,CAAC;AAK/C,MAAM,OAAO,cAAc;IAI1B;QAHQ,WAAM,GAAG,KAAK,CAAC;2BAWiB,KAAK;0BAIoB,KAAK;;;qCAYiB,4BAA4B;wBAM/F,KAAK;4BACD,KAAK;QA9B5B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,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AAC,qBAAqB,kBACxB,IAAI,CAAC,QAAQ,mBACZ,IAAI,CAAC,QAAQ,kBACd,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;gBAElD,gBAAU,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAa,CAC9D,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;IACF,CAAC;IAGD;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1G,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACjG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State} from '@stencil/core'\nimport {BreadcrumbsClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {GovBreadcrumbsChangeEvent} from './gov-breadcrumbs.d'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n})\nexport class GovBreadcrumbs {\n\tprivate inited = false;\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines whether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by button\n\t */\n\t@Prop({attribute: 'is-expanded'}) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\t/**\n\t * Adds an accessible label to display the full breadcrumb navigation that only screen readers can see.\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit či skrýt navigaci'\n\t/**\n\t * Called when the Breadcrumbs state changes\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\n\n\t@State() expanded = false;\n\t@State() toggleOption = false;\n\n\tasync componentDidRender() {\n\t\tthis.scheduleContentVerification()\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\tprivate scheduleContentVerification() {\n\t\tif (this.inited) return;\n\t\tthis.inited = true;\n\t\ttick(() => {\n\t\t\tthis.calculateWidthOfItems();\n\t\t\tthis.inited = false;\n\t\t});\n\t}\n\n\tprivate calculateWidthOfItems() {\n\t\tconst hostWidth = this.host.getBoundingClientRect().width;\n\t\tlet sumOfWidths = 0;\n\t\tthis.host.querySelectorAll('li').forEach((li) => {\n\t\t\tsumOfWidths += li.getBoundingClientRect().width\n\t\t})\n\t\tthis.toggleOption = sumOfWidths > hostWidth;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BreadcrumbsClass.root)} expanded={this.expanded}>\n\t\t\t\t<nav aria-label={this.accessibleLabel} aria-labelledby={this.accessibleLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t\t{this.toggleOption ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tsize={'xs'}\n\t\t\t\t\t\tcolor={'primary'}\n\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\taria-pressed={this.expanded}\n\t\t\t\t\t\taria-expanded={this.expanded}\n\t\t\t\t\t\ton-gov-click={() => this.expanded = !this.expanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon name={this.expanded ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BreadcrumbsClass.root, this.host)\n\t\tvalidateAccessibleLabel(this.accessibleToggleLabel, undefined, BreadcrumbsClass.root, this.host)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-breadcrumbs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,IAAI,EAAC,MAAM,2BAA2B,CAAC;AAK/C,MAAM,OAAO,cAAc;IAI1B;QAHQ,WAAM,GAAG,KAAK,CAAC;2BAWiB,KAAK;0BAIoB,KAAK;;;qCA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CAAC,CACpB,kBACC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,gBACA,IAAI,CAAC,qBAAqB,kBACxB,IAAI,CAAC,QAAQ,mBACZ,IAAI,CAAC,QAAQ,kBACd,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;gBAElD,gBAAU,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,EAAC,YAAY,GAAY,CAChF,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;IACF,CAAC;IAGD;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1G,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACjG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State} from '@stencil/core'\nimport {BreadcrumbsClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {GovBreadcrumbsChangeEvent} from './gov-breadcrumbs.d'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n})\nexport class GovBreadcrumbs {\n\tprivate inited = false;\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines whether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by button\n\t */\n\t@Prop({attribute: 'is-expanded'}) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\t/**\n\t * Adds an accessible label to display the full breadcrumb navigation that only screen readers can see.\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit či skrýt navigaci'\n\t/**\n\t * Called when the Breadcrumbs state changes\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\n\n\t@State() expanded = false;\n\t@State() toggleOption = false;\n\n\tasync componentDidRender() {\n\t\tthis.scheduleContentVerification()\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\tprivate scheduleContentVerification() {\n\t\tif (this.inited) return;\n\t\tthis.inited = true;\n\t\ttick(() => {\n\t\t\tthis.calculateWidthOfItems();\n\t\t\tthis.inited = false;\n\t\t});\n\t}\n\n\tprivate calculateWidthOfItems() {\n\t\tconst hostWidth = this.host.getBoundingClientRect().width;\n\t\tlet sumOfWidths = 0;\n\t\tthis.host.querySelectorAll('li').forEach((li) => {\n\t\t\tsumOfWidths += li.getBoundingClientRect().width\n\t\t})\n\t\tthis.toggleOption = sumOfWidths > hostWidth;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BreadcrumbsClass.root)} expanded={this.expanded}>\n\t\t\t\t<nav aria-label={this.accessibleLabel} aria-labelledby={this.accessibleLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t\t{this.toggleOption ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tsize={'xs'}\n\t\t\t\t\t\tcolor={'primary'}\n\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\taria-pressed={this.expanded}\n\t\t\t\t\t\taria-expanded={this.expanded}\n\t\t\t\t\t\ton-gov-click={() => this.expanded = !this.expanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon name={this.expanded ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BreadcrumbsClass.root, this.host)\n\t\tvalidateAccessibleLabel(this.accessibleToggleLabel, undefined, BreadcrumbsClass.root, this.host)\n\t}\n}\n"]}
@@ -81,9 +81,9 @@ export class GovButton {
81
81
  render() {
82
82
  const Tag = this.href ? Tags.A : Tags.BUTTON;
83
83
  const nativeType = Tag === Tags.A ? undefined : this.nativeType;
84
- return (h(Host, { key: '4e5ef3fbf897b81b07452a9383985353d673fdd6', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: 'd0689b6c773257059fa9334d4bb1d003a0ec58c3', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("right-icon") &&
85
- h("gov-icon", { key: 'be89312696bdc6842d2717df100d5b790e20694f', name: "loader", class: "gov-spin-animation" }), this.h.hasSlot("left-icon") && h("slot", { key: '6ccce190fa47027c603e008e37717c927dabd0b6', name: "left-icon" }), h("slot", { key: 'd6eb7343fc7ad6f389743d7bbae3b0ab8d2f8e93' }), this.h.hasSlot("right-icon") && h("slot", { key: '74736acdc5bec2f315c9cea45009b1d1b6ab6c8b', name: "right-icon" }), toBool(this.loading) && this.h.hasSlot("right-icon") &&
86
- h("gov-icon", { key: '885f29b2d141823731e56ca50c6c89661c014322', name: "loader", class: "gov-spin-animation" }))));
84
+ return (h(Host, { key: '4e5ef3fbf897b81b07452a9383985353d673fdd6', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: 'd0689b6c773257059fa9334d4bb1d003a0ec58c3', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
85
+ h("gov-icon", { key: '16a969ee29897508924e61d70b40589d0410f649', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && h("slot", { key: '7d208cc950fedd5b6bbf376152a0c641d8885846', name: "icon-start" }), h("slot", { key: '7c43309c657363dbcc1df14ae3c21d977ec3eb20' }), this.h.hasSlot("icon-end") && h("slot", { key: 'd90b7831900331fe8482757f33847295207f73d2', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
86
+ h("gov-icon", { key: 'd23e2000e5bf5b78a81e78d6c3e30aa0e1f3f42c', name: "loader", class: "gov-spin-animation", type: "components" }))));
87
87
  }
88
88
  onClickHandler(e) {
89
89
  e.stopPropagation();
@@ -556,23 +556,23 @@ export class GovButton {
556
556
  },
557
557
  "getRef": {
558
558
  "complexType": {
559
- "signature": "() => Promise<HTMLLinkElement | HTMLButtonElement>",
559
+ "signature": "() => Promise<HTMLButtonElement | HTMLLinkElement>",
560
560
  "parameters": [],
561
561
  "references": {
562
562
  "Promise": {
563
563
  "location": "global",
564
564
  "id": "global::Promise"
565
565
  },
566
- "HTMLLinkElement": {
567
- "location": "global",
568
- "id": "global::HTMLLinkElement"
569
- },
570
566
  "HTMLButtonElement": {
571
567
  "location": "global",
572
568
  "id": "global::HTMLButtonElement"
569
+ },
570
+ "HTMLLinkElement": {
571
+ "location": "global",
572
+ "id": "global::HTMLLinkElement"
573
573
  }
574
574
  },
575
- "return": "Promise<HTMLLinkElement | HTMLButtonElement>"
575
+ "return": "Promise<HTMLButtonElement | HTMLLinkElement>"
576
576
  },
577
577
  "docs": {
578
578
  "text": "Returns a clickable element instance",
@@ -1 +1 @@
1
- {"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,WAAW,EACX,YAAY,EAIZ,UAAU,EAEV,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAE1E,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAC,KA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C,IAAI;SACd,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ;QACb,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA;IACxB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,OAAO,IAAI,CAAC,UAAU,CAAA;IACvB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClJ,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : \"0\"}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,WAAW,EACX,YAAY,EAIZ,UAAU,EAEV,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAE1E,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAA;AACnD,OAAO,EAAC,uBAAuB,EAAC,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAC,KAAK,E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AAA;IACxB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,OAAO,IAAI,CAAC,UAAU,CAAA;IACvB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClJ,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : \"0\"}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
@@ -27,7 +27,7 @@ export class GovCard {
27
27
  this.hydrated = true;
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: 'c7dd00e1eee01b7005b98b39ddfccf784dc2808e', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), promotion: this.promotion, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: 'dae87fe02926ed1772c4164c19e7e6f540510bec', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { key: '7ef4bcc939fa3d84fb1a6dedc0e62c0d2612f8ec', class: CardClass.img }, h("slot", { key: '4f05366b5bc0c2e6117ed8cfcb17cf107fec6499', name: "img" }))), h("div", { key: '4a25ad0d3002079fa4a35b5f7af10a05e3f5b45f', class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { key: '6b16961ed892fed347a69d18d5482bccf0247f12', class: CardClass.icon }, h("slot", { key: '5720427d2bbea01f6d24911d4d208e743ec453ce', name: "icon" }))), h("slot", { key: '6f2efa36533f9d06365ad828766cb7956daf7e90' }), this.h.hasSlot('btn') && this.promotion && (h("div", { key: '5b79f8832d6cc39f709fb0d656eec383261971ce', class: CardClass.btns }, h("slot", { key: '93486120fcc840a0812325c881538d4174bedd84', name: "btn" })))), this.h.hasSlot('footer') && (h("div", { key: 'efaa342aa2d43418b33492296c8b6c2928004af9', class: CardClass.footer }, h("slot", { key: '502c7c7609d28290e601ef6c71eb050f12380f8b', name: "footer" }))))));
30
+ return (h(Host, { key: 'c7dd00e1eee01b7005b98b39ddfccf784dc2808e', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), promotion: this.promotion, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: '369364ba24e3d93c1ac78a584dd1fd48c44b892b', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { key: '813afe326da050fc90039355853617f267505fab', class: CardClass.img }, h("slot", { key: '5817f673e65eeb32c5740c7524518d726a98364c', name: "img" }))), h("div", { key: 'd47df9920b2ce96f2c535bb0bfd3723c2a7b7a9e', class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { key: 'c2649f05b9e7c25b7d77a02f692d45f0e30caa60', class: CardClass.icon }, h("slot", { key: '9c5c54d2bf6c4a83bd6490b2ad7ef7a1ca9d53d5', name: "icon" }))), h("slot", { key: '49608def955a9fa5f5c1ed957ca63bc698b9aeab' }), this.h.hasSlot('btn') && this.promotion && (h("div", { key: '2bfc4a6c551fe33c4da625f800a796eb619746d3', class: CardClass.btns }, h("slot", { key: '050552b970e6d16586f57ed3dab46e6fcff9d95b', name: "btn" })))), this.h.hasSlot('footer') && (h("div", { key: '364cdbd90941b2e93cecc9742ff08479f82d0c14', class: CardClass.footer }, h("slot", { key: '0352680a92293ddfe93c055b1d7e5555967f870b', name: "footer" }))))));
31
31
  }
32
32
  onClickHandler(e) {
33
33
  e.stopPropagation();